diff --git a/.gitignore b/.gitignore index e561c86..6dea9ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,2 @@ AssemblyInfo.cs Solution.sln -.vs -**/bin/ -**/obj/ diff --git a/FatePaths/FatePaths.csproj b/FatePaths/FatePaths.csproj deleted file mode 100644 index 1f0d80c..0000000 --- a/FatePaths/FatePaths.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - FatePaths - False - netcoreapp1.0 - - - 12.0 - True - - - - - - - - - - - ..\..\Questionable.Model.dll - - - \ No newline at end of file diff --git a/FatePaths/Questionable.FatePaths.FateDefinitionSchema b/FatePaths/Questionable.FatePaths.FateDefinitionSchema deleted file mode 100644 index c8cef80..0000000 --- a/FatePaths/Questionable.FatePaths.FateDefinitionSchema +++ /dev/null @@ -1,186 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/FatePaths/fatedefinition-v1.json", - "title": "FATE Definition V1", - "description": "A FATE farming definition", - "type": "object", - "properties": { - "$schema": { - "type": "string", - "const": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/FatePaths/fatedefinition-v1.json" - }, - "Name": { - "description": "Display name of the FATE", - "type": "string" - }, - "Description": { - "description": "Description of the FATE activity", - "type": "string" - }, - "TerritoryId": { - "description": "Territory ID where the FATE takes place", - "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" - }, - "Position": { - "description": "Position to navigate to for the FATE", - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - }, - "Targets": { - "description": "List of FATE targets and actions to perform on them", - "type": "array", - "items": { - "type": "object", - "properties": { - "DataId": { - "type": "integer", - "minimum": 1 - }, - "Action": { - "type": "string" - } - }, - "required": [ - "DataId", - "Action" - ], - "additionalProperties": false - }, - "minItems": 1 - }, - "RequiredQuestId": { - "description": "Quest ID that must be completed before this FATE can be farmed", - "type": "integer", - "minimum": 1 - }, - "RequiredStatusId": { - "description": "Status effect required to participate in the FATE", - "type": "string" - }, - "TransformNpcDataId": { - "description": "NPC to interact with to obtain the required status", - "type": "integer", - "minimum": 1 - }, - "TransformNpcPosition": { - "description": "Position of the transform NPC", - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - }, - "StopAction": { - "description": "Action to use when stopping FATE farming (e.g. to remove a transformation debuff). Only used if the player has RequiredStatusId.", - "type": "string" - }, - "EventExpiry": { - "description": "If this is a seasonal/event FATE, the date and time (in UTC) when it is no longer available. Date-only values are treated as ending at daily reset (14:59:59 UTC).", - "format": "date-time", - "type": [ - "string", - "null" - ] - }, - "TransformDialogueChoices": { - "description": "Dialogue choices when interacting with the transform NPC", - "type": "array", - "items": { - "type": "object", - "properties": { - "Type": { - "type": "string", - "enum": [ - "YesNo", - "List" - ] - }, - "ExcelSheet": { - "type": "string" - } - }, - "required": [ - "Type" - ], - "allOf": [ - { - "if": { - "properties": { - "Type": { - "const": "YesNo" - } - } - }, - "then": { - "properties": { - "Prompt": { - "type": [ - "string", - "integer" - ] - }, - "PromptIsRegularExpression": { - "type": "boolean" - }, - "Yes": { - "type": "boolean", - "default": true - } - }, - "required": [ - "Prompt", - "Yes" - ] - } - }, - { - "if": { - "properties": { - "Type": { - "const": "List" - } - } - }, - "then": { - "properties": { - "Prompt": { - "type": [ - "string", - "integer", - "null" - ] - }, - "PromptIsRegularExpression": { - "type": "boolean" - }, - "Answer": { - "type": [ - "string", - "integer" - ] - }, - "AnswerIsRegularExpression": { - "type": "boolean" - } - }, - "required": [ - "Prompt", - "Answer" - ] - } - } - ] - } - } - }, - "required": [ - "$schema", - "Name", - "Description", - "TerritoryId", - "Aetheryte", - "Position", - "Targets" - ], - "additionalProperties": false -} diff --git a/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs b/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs deleted file mode 100644 index 3e2bfcb..0000000 --- a/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Numerics; -using System.Runtime.InteropServices; -using Questionable.Model.Common; -using Questionable.Model.Questing; - -namespace Questionable.FatePaths; - -public static class AssemblyFateDefinitionLoader -{ - private static Dictionary? _definitions; - - public static Stream FateDefinitionSchema => typeof(AssemblyFateDefinitionLoader).Assembly.GetManifestResourceStream("Questionable.FatePaths.FateDefinitionSchema"); - - public static IReadOnlyDictionary GetDefinitions() - { - if (_definitions == null) - { - _definitions = new Dictionary(); - LoadDefinitions(); - } - return _definitions ?? throw new InvalidOperationException("fate definition data is not initialized"); - } - - private static void AddDefinition(ushort id, FateDefinition definition) - { - _definitions[id] = definition; - } - - private static void LoadDefinitions() - { - LoadDefinition0(); - } - - private static void LoadDefinition0() - { - FateDefinition obj = new FateDefinition - { - Name = "Little Ladies' Day (2026)", - Description = "Cheer Rhythm FATE in Ul'dah - Steps of Nald", - TerritoryId = 130, - Aetheryte = EAetheryteLocation.Uldah, - Position = new Vector3(-38.322124f, 3.9999998f, -144.23155f) - }; - int num = 4; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - span[0] = new FateActionTarget - { - DataId = 18862u, - Action = EAction.CheerRhythmYellow - }; - span[1] = new FateActionTarget - { - DataId = 18860u, - Action = EAction.CheerRhythmBlue - }; - span[2] = new FateActionTarget - { - DataId = 18861u, - Action = EAction.CheerRhythmGreen - }; - span[3] = new FateActionTarget - { - DataId = 18859u, - Action = EAction.CheerRhythmRed - }; - obj.Targets = list; - obj.RequiredStatusId = EStatus.FaceInTheCrowd; - obj.TransformNpcDataId = 1055771u; - obj.TransformNpcPosition = new Vector3(-37.369385f, 5.0000005f, -130.14423f); - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span2 = CollectionsMarshal.AsSpan(list2); - 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") - }; - 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") - }; - 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/GatheringPaths.csproj b/GatheringPaths/GatheringPaths.csproj index 0e020f6..8649f4c 100644 --- a/GatheringPaths/GatheringPaths.csproj +++ b/GatheringPaths/GatheringPaths.csproj @@ -3,7 +3,7 @@ GatheringPaths False - netcoreapp1.0 + netcoreapp9.0 12.0 diff --git a/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs b/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs index 53d688c..d420199 100644 --- a/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs +++ b/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs @@ -53,12 +53,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 154) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -73,13 +77,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 30016u @@ -87,20 +94,23 @@ public static class AssemblyGatheringLocationLoader int num3 = 3; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(395.0683f, -4.213107f, 235.0844f), MinimumAngle = -200, MaximumAngle = 15 }; - span2[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(404.3488f, -2.116929f, 216.968f), MinimumAngle = -125, MaximumAngle = 10 }; - span2[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(388.5088f, -1.260179f, 222.3745f), MinimumAngle = -145, @@ -110,33 +120,39 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span4 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span4[num2]; GatheringNode obj2 = new GatheringNode { DataId = 30018u }; - num3 = 3; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new GatheringLocation + num4 = 3; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(361.0402f, -6.135924f, 266.7503f), MinimumAngle = -155, MaximumAngle = 10 }; - span3[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(368.0511f, -6.085522f, 262.3561f), MinimumAngle = -135, MaximumAngle = 10 }; - span3[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(352.1197f, -2.546567f, 262.7847f), MinimumAngle = 250, @@ -146,12 +162,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + span4 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span4[index2]; GatheringNode obj3 = new GatheringNode { DataId = 30081u @@ -159,20 +178,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(404.6927f, -3.737513f, 283.6237f), MinimumAngle = 55, MaximumAngle = 255 }; - span4[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(406.1155f, -4.338434f, 271.2292f), MinimumAngle = 0, MaximumAngle = 190 }; - span4[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(394.464f, -3.775356f, 286.3456f), MinimumAngle = 105, @@ -182,33 +204,39 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list8; reference5 = gatheringNodeGroup3; - ref GatheringNodeGroup reference7 = ref span[3]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list10)[0]; + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span4 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref GatheringNode reference8 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 30017u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(443.0036f, -1.818904f, 251.6805f), MinimumAngle = 0, MaximumAngle = 145 }; - span5[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(459.7153f, -1.026285f, 263.6502f), MinimumAngle = 50, MaximumAngle = 235 }; - span5[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(468.4217f, -1.290563f, 262.4874f), MinimumAngle = 15, @@ -221,15 +249,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(12, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span = CollectionsMarshal.AsSpan(list12); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list12; num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.None, null, null, 154) + span2 = CollectionsMarshal.AsSpan(list13); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -241,16 +273,19 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot2.Steps = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span6 = CollectionsMarshal.AsSpan(list14); - ref GatheringNodeGroup reference9 = ref span6[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span3 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref GatheringNodeGroup reference9 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + span4 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span4[index2]; GatheringNode obj5 = new GatheringNode { DataId = 30020u @@ -258,20 +293,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span7 = CollectionsMarshal.AsSpan(list16); - span7[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(279.9662f, -9.225774f, 318.6275f), MinimumAngle = 50, MaximumAngle = 240 }; - span7[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(295.7656f, -8.987611f, 311.5129f), MinimumAngle = 0, MaximumAngle = 190 }; - span7[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(283.9807f, -11.68445f, 310.4038f), MinimumAngle = 0, @@ -281,33 +319,39 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span6[1]; + num++; + ref GatheringNodeGroup reference11 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span4 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj6 = new GatheringNode { DataId = 30019u }; - num3 = 3; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new GatheringLocation + num4 = 3; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(238.5998f, -22.81126f, 254.0548f), MinimumAngle = -85, MaximumAngle = 55 }; - span8[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(234.2172f, -22.83841f, 265.2955f), MinimumAngle = -160, MaximumAngle = 0 }; - span8[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(257.4443f, -20.59358f, 246.4006f), MinimumAngle = -115, @@ -317,12 +361,15 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list17; reference11 = gatheringNodeGroup6; - ref GatheringNodeGroup reference13 = ref span6[2]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + span4 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref GatheringNode reference14 = ref span4[index2]; GatheringNode obj7 = new GatheringNode { DataId = 30082u @@ -330,20 +377,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(221.3946f, -27.69197f, 317.5874f), MinimumAngle = 0, MaximumAngle = 125 }; - span9[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(209.7868f, -29.03308f, 317.4061f), MinimumAngle = 130, MaximumAngle = 295 }; - span9[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(216.8077f, -28.68546f, 320.5408f), MinimumAngle = 45, @@ -353,27 +403,32 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list19; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span6[3]; + num++; + ref GatheringNodeGroup reference15 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span4 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref GatheringNode reference16 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 30021u }; - num3 = 3; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = new GatheringLocation + num4 = 3; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span5 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(250.3709f, -20.9966f, 296.2364f), MinimumAngle = 105, MaximumAngle = 265 }; - span10[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(247.4017f, -21.53168f, 284.9166f), MinimumAngle = -40, @@ -381,7 +436,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - span10[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(255.3057f, -17.90455f, 302.6251f), MinimumAngle = 145, @@ -397,12 +453,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list23; - num = 1; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.None, null, null, 148) + index = 1; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -417,13 +477,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span11 = CollectionsMarshal.AsSpan(list25); - ref GatheringNodeGroup reference17 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list25); + index = 0; + ref GatheringNodeGroup reference17 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; + span4 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref GatheringNode reference18 = ref span4[index2]; GatheringNode obj9 = new GatheringNode { DataId = 30028u @@ -431,20 +494,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(225.8048f, -5.26357f, -71.51706f), MinimumAngle = -60, MaximumAngle = 105 }; - span12[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(229.0866f, -7.037199f, -62.40871f), MinimumAngle = 0, MaximumAngle = 175 }; - span12[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(210.4522f, -5.798344f, -69.99769f), MinimumAngle = 180, @@ -454,33 +520,39 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list26; reference17 = gatheringNodeGroup9; - ref GatheringNodeGroup reference19 = ref span11[1]; + index++; + ref GatheringNodeGroup reference19 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list28)[0]; + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span4 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + ref GatheringNode reference20 = ref span4[num2]; GatheringNode obj10 = new GatheringNode { DataId = 30030u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span13 = CollectionsMarshal.AsSpan(list29); - span13[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(205.3417f, -7.402449f, -46.44062f), MinimumAngle = 70, MaximumAngle = 320 }; - span13[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(204.9178f, -8.416177f, -24.97287f), MinimumAngle = 50, MaximumAngle = 260 }; - span13[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(196.8121f, -7.515049f, -31.74415f), MinimumAngle = 115, @@ -490,12 +562,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list28; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span11[2]; + index++; + ref GatheringNodeGroup reference21 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list30)[0]; + span4 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref GatheringNode reference22 = ref span4[index2]; GatheringNode obj11 = new GatheringNode { DataId = 30027u @@ -503,14 +578,16 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(263.5084f, -7.83625f, -28.76189f), MinimumAngle = 220, MaximumAngle = 360 }; - span14[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(275.0262f, -6.339698f, -42.46669f), MinimumAngle = 30, @@ -518,7 +595,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.9f, MaximumDistance = 3f }; - span14[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(248.5661f, -8.912354f, -5.168106f), MinimumAngle = 0, @@ -528,21 +606,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list30; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span11[3]; + index++; + ref GatheringNodeGroup reference23 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span4 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 30029u }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = new GatheringLocation + num4 = 3; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(278.9887f, -6.181031f, -100.3401f), MinimumAngle = 0, @@ -550,13 +632,15 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.8f, MaximumDistance = 3f }; - span15[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(281.2963f, -6.572734f, -72.80408f), MinimumAngle = -5, MaximumAngle = 165 }; - span15[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(282.8807f, -5.350755f, -91.96065f), MinimumAngle = -30, @@ -571,15 +655,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list25; AddLocation(16, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + index = 1; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span = CollectionsMarshal.AsSpan(list34); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list34; num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.None, null, null, 148) + span2 = CollectionsMarshal.AsSpan(list35); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -591,16 +679,19 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot4.Steps = list35; - num = 4; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref GatheringNodeGroup reference25 = ref span16[0]; + index = 4; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span3 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref GatheringNodeGroup reference25 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; + span4 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + ref GatheringNode reference26 = ref span4[index2]; GatheringNode obj13 = new GatheringNode { DataId = 30034u @@ -608,20 +699,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span17 = CollectionsMarshal.AsSpan(list38); - span17[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-105.3941f, 2.85339f, -121.8738f), MinimumAngle = -20, MaximumAngle = 165 }; - span17[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-97.9409f, 3.064394f, -126.5676f), MinimumAngle = 115, MaximumAngle = 340 }; - span17[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-125.5794f, 5.63143f, -133.3981f) }; @@ -629,31 +723,37 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list37; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span16[1]; + num++; + ref GatheringNodeGroup reference27 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list39)[0]; + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span4 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref GatheringNode reference28 = ref span4[num2]; GatheringNode obj14 = new GatheringNode { DataId = 30035u }; - num3 = 3; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span18 = CollectionsMarshal.AsSpan(list40); - span18[0] = new GatheringLocation + num4 = 3; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-154.1009f, 4.5624f, -131.7312f), MinimumAngle = -270, MaximumAngle = 40 }; - span18[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(-128.832f, 9.71995f, -145.739f) }; - span18[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(-117.9702f, 9.59642f, -173.7937f), MinimumAngle = -155, @@ -663,12 +763,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list39; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span16[2]; + num++; + ref GatheringNodeGroup reference29 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; + span4 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref GatheringNode reference30 = ref span4[index2]; GatheringNode obj15 = new GatheringNode { DataId = 30036u @@ -676,20 +779,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span19 = CollectionsMarshal.AsSpan(list42); - span19[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-182.3201f, 3.129771f, -91.56992f), MinimumAngle = -190, MaximumAngle = 65 }; - span19[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-177.8435f, 2.23569f, -67.93159f), MinimumAngle = -160, MaximumAngle = 30 }; - span19[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-163.9663f, 1.91069f, -52.19678f), MinimumAngle = 135, @@ -699,31 +805,37 @@ public static class AssemblyGatheringLocationLoader reference30 = obj15; gatheringNodeGroup15.Nodes = list41; reference29 = gatheringNodeGroup15; - ref GatheringNodeGroup reference31 = ref span16[3]; + num++; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span4 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref GatheringNode reference32 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 30320u }; - num3 = 3; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = new GatheringLocation + num4 = 3; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-131.0494f, 0.2034574f, -82.93172f), MinimumAngle = -155, MaximumAngle = 45 }; - span20[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(-121.5437f, -1.821766f, -74.98891f) }; - span20[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(-114.8504f, -1.186134f, -88.04849f), MinimumAngle = -210, @@ -739,12 +851,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list45; - num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.None, null, null, 138) + index = 1; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -759,13 +875,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span21 = CollectionsMarshal.AsSpan(list47); - ref GatheringNodeGroup reference33 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list47); + index = 0; + ref GatheringNodeGroup reference33 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list48)[0]; + span4 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref GatheringNode reference34 = ref span4[index2]; GatheringNode obj17 = new GatheringNode { DataId = 30098u @@ -773,20 +892,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span22 = CollectionsMarshal.AsSpan(list49); - span22[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list49); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(300.7484f, -15.4861f, 153.9048f), MinimumAngle = 175, MaximumAngle = 360 }; - span22[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(297.8418f, -20.09089f, 166.8599f), MinimumAngle = 95, MaximumAngle = 265 }; - span22[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(312.9494f, -14.81517f, 145.3793f), MinimumAngle = 110, @@ -796,33 +918,39 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list48; reference33 = gatheringNodeGroup17; - ref GatheringNodeGroup reference35 = ref span21[1]; + index++; + ref GatheringNodeGroup reference35 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span4 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj18 = new GatheringNode { DataId = 30099u }; - num3 = 3; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span23 = CollectionsMarshal.AsSpan(list51); - span23[0] = new GatheringLocation + num4 = 3; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + span5 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(317.6309f, 0.3300658f, 98.40825f), MinimumAngle = 15, MaximumAngle = 190 }; - span23[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(300.7116f, -9.200176f, 128.1148f), MinimumAngle = 20, MaximumAngle = 205 }; - span23[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(313.6669f, -5.031699f, 119.2471f), MinimumAngle = 0, @@ -832,12 +960,15 @@ public static class AssemblyGatheringLocationLoader reference36 = obj18; gatheringNodeGroup18.Nodes = list50; reference35 = gatheringNodeGroup18; - ref GatheringNodeGroup reference37 = ref span21[2]; + index++; + ref GatheringNodeGroup reference37 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - ref GatheringNode reference38 = ref CollectionsMarshal.AsSpan(list52)[0]; + span4 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref GatheringNode reference38 = ref span4[index2]; GatheringNode obj19 = new GatheringNode { DataId = 30100u @@ -845,20 +976,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(222.8638f, -1.971927f, 82.03091f), MinimumAngle = -115, MaximumAngle = 25 }; - span24[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(274.0746f, 6.008316f, 65.73824f), MinimumAngle = -115, MaximumAngle = 75 }; - span24[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(252.9545f, 5.45654f, 50.69089f), MinimumAngle = 225, @@ -868,33 +1002,39 @@ public static class AssemblyGatheringLocationLoader reference38 = obj19; gatheringNodeGroup19.Nodes = list52; reference37 = gatheringNodeGroup19; - ref GatheringNodeGroup reference39 = ref span21[3]; + index++; + ref GatheringNodeGroup reference39 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - ref GatheringNode reference40 = ref CollectionsMarshal.AsSpan(list54)[0]; + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span4 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref GatheringNode reference40 = ref span4[num2]; GatheringNode obj20 = new GatheringNode { DataId = 30101u }; - num3 = 3; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span25 = CollectionsMarshal.AsSpan(list55); - span25[0] = new GatheringLocation + num4 = 3; + List list55 = new List(num4); + CollectionsMarshal.SetCount(list55, num4); + span5 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(254.374f, -17.77545f, 174.2901f), MinimumAngle = 115, MaximumAngle = 265 }; - span25[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(240.5732f, -17.28173f, 176.6604f), MinimumAngle = 80, MaximumAngle = 255 }; - span25[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(256.3937f, -16.40165f, 164.8165f), MinimumAngle = 90, @@ -914,12 +1054,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 140) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; @@ -927,13 +1071,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 30414u @@ -941,20 +1088,23 @@ public static class AssemblyGatheringLocationLoader int num3 = 3; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(249.8601f, 55.12077f, 178.5377f), MinimumAngle = 125, MaximumAngle = 270 }; - span2[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(253.9519f, 55.95691f, 181.4238f), MinimumAngle = 180, MaximumAngle = 285 }; - span2[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(244.4912f, 53.49751f, 169.9265f), MinimumAngle = 150, @@ -964,33 +1114,39 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span4 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span4[num2]; GatheringNode obj2 = new GatheringNode { DataId = 30413u }; - num3 = 3; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new GatheringLocation + num4 = 3; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(292.9385f, 59.79165f, 187.855f), MinimumAngle = 45, MaximumAngle = 165 }; - span3[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(300.3293f, 63.1124f, 175.0616f), MinimumAngle = 65, MaximumAngle = 155 }; - span3[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(296.3942f, 61.46834f, 182.3181f), MinimumAngle = 70, @@ -1000,12 +1156,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + span4 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span4[index2]; GatheringNode obj3 = new GatheringNode { DataId = 30415u @@ -1013,20 +1172,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(262.1395f, 58.70948f, 239.3097f), MinimumAngle = 105, MaximumAngle = 210 }; - span4[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(284.4424f, 59.78878f, 222.5899f), MinimumAngle = 65, MaximumAngle = 240 }; - span4[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(278.6144f, 59.63044f, 231.8303f), MinimumAngle = 95, @@ -1036,33 +1198,39 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list8; reference5 = gatheringNodeGroup3; - ref GatheringNodeGroup reference7 = ref span[3]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list10)[0]; + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span4 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref GatheringNode reference8 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 30416u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(222.244f, 58.86799f, 244.9212f), MinimumAngle = 135, MaximumAngle = 275 }; - span5[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(212.3073f, 58.06055f, 245.9091f), MinimumAngle = 80, MaximumAngle = 220 }; - span5[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(235.9484f, 58.30469f, 249.0489f), MinimumAngle = 80, @@ -1075,29 +1243,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(154, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span = CollectionsMarshal.AsSpan(list12); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list12; num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.None, null, null, 141) + span2 = CollectionsMarshal.AsSpan(list13); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; gatheringRoot2.Steps = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span6 = CollectionsMarshal.AsSpan(list14); - ref GatheringNodeGroup reference9 = ref span6[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span3 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref GatheringNodeGroup reference9 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + span4 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span4[index2]; GatheringNode obj5 = new GatheringNode { DataId = 30425u @@ -1105,20 +1280,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span7 = CollectionsMarshal.AsSpan(list16); - span7[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(118.6389f, 7.583679f, 262.4399f), MinimumAngle = 60, MaximumAngle = 170 }; - span7[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(113.4342f, 4.562373f, 271.4816f), MinimumAngle = 80, MaximumAngle = 190 }; - span7[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(116.9106f, 2.964557f, 285.8209f), MinimumAngle = 0, @@ -1128,33 +1306,39 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span6[1]; + num++; + ref GatheringNodeGroup reference11 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span4 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj6 = new GatheringNode { DataId = 30427u }; - num3 = 3; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new GatheringLocation + num4 = 3; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(127.2449f, 15.54889f, 240.1923f), MinimumAngle = 15, MaximumAngle = 115 }; - span8[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(122.0915f, 14.071f, 225.1131f), MinimumAngle = 0, MaximumAngle = 110 }; - span8[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(120.8954f, 15.9651f, 213.8515f), MinimumAngle = 30, @@ -1164,12 +1348,15 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list17; reference11 = gatheringNodeGroup6; - ref GatheringNodeGroup reference13 = ref span6[2]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + span4 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref GatheringNode reference14 = ref span4[index2]; GatheringNode obj7 = new GatheringNode { DataId = 30426u @@ -1177,20 +1364,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(148.7842f, 16.44447f, 292.8037f), MinimumAngle = 30, MaximumAngle = 135 }; - span9[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(144.9166f, 18.86193f, 264.833f), MinimumAngle = 15, MaximumAngle = 95 }; - span9[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(152.6806f, 16.58945f, 300.3315f), MinimumAngle = 0, @@ -1200,33 +1390,39 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list19; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span6[3]; + num++; + ref GatheringNodeGroup reference15 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span4 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref GatheringNode reference16 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 30428u }; - num3 = 3; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = new GatheringLocation + num4 = 3; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span5 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(137.6659f, 6.65416f, 311.1226f), MinimumAngle = 15, MaximumAngle = 135 }; - span10[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(141.0331f, 5.844177f, 325.063f), MinimumAngle = 0, MaximumAngle = 150 }; - span10[2] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(130.6749f, 5.736229f, 300.4703f), MinimumAngle = -5, @@ -1242,12 +1438,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "Censored"; gatheringRoot3.Author = list23; - num = 1; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.None, null, null, 155) + index = 1; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -1255,20 +1455,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = 2001424u; - span11[1] = 2001425u; + Span span6 = CollectionsMarshal.AsSpan(list25); + index = 0; + span6[index] = 2001424u; + index++; + span6[index] = 2001425u; gatheringRoot3.ExtraQuestItems = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span12 = CollectionsMarshal.AsSpan(list26); - ref GatheringNodeGroup reference17 = ref span12[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span3 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref GatheringNodeGroup reference17 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list27)[0]; + span4 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref GatheringNode reference18 = ref span4[index2]; GatheringNode obj9 = new GatheringNode { DataId = 31046u @@ -1276,12 +1481,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span13 = CollectionsMarshal.AsSpan(list28); - span13[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(268.635f, 299.8158f, -114.4274f) }; - span13[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(284.4186f, 309.0771f, -128.535f) }; @@ -1289,25 +1496,30 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list27; reference17 = gatheringNodeGroup9; - ref GatheringNodeGroup reference19 = ref span12[1]; + num++; + ref GatheringNodeGroup reference19 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list29)[0]; + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span4 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref GatheringNode reference20 = ref span4[num2]; GatheringNode obj10 = new GatheringNode { DataId = 31045u }; - num3 = 2; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span14 = CollectionsMarshal.AsSpan(list30); - span14[0] = new GatheringLocation + num4 = 2; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span5 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(198.4182f, 288.6254f, -93.58918f) }; - span14[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(206.082f, 279.446f, -57.03315f) }; @@ -1315,12 +1527,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list29; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span12[2]; + num++; + ref GatheringNodeGroup reference21 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; + span4 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref GatheringNode reference22 = ref span4[index2]; GatheringNode obj11 = new GatheringNode { DataId = 31047u @@ -1328,12 +1543,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(270.5842f, 291.5777f, -57.16897f) }; - span15[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(242.9548f, 283.3405f, -56.95627f) }; @@ -1341,25 +1558,30 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list31; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span12[3]; + num++; + ref GatheringNodeGroup reference23 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list33)[0]; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span4 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 31048u }; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = new GatheringLocation + num4 = 2; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + span5 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(297.2305f, 305.3402f, -78.08051f) }; - span16[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(310.8341f, 307.6252f, -72.68935f) }; @@ -1373,12 +1595,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "Censored"; gatheringRoot4.Author = list35; - num = 1; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.None, null, null, 154) + index = 1; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -1386,20 +1612,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = 2001391u; - span17[1] = 2001392u; + span6 = CollectionsMarshal.AsSpan(list37); + index = 0; + span6[index] = 2001391u; + index++; + span6[index] = 2001392u; gatheringRoot4.ExtraQuestItems = list37; - num = 4; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span18 = CollectionsMarshal.AsSpan(list38); - ref GatheringNodeGroup reference25 = ref span18[0]; + index = 4; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span3 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref GatheringNodeGroup reference25 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list39)[0]; + span4 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref GatheringNode reference26 = ref span4[index2]; GatheringNode obj13 = new GatheringNode { DataId = 31049u @@ -1407,14 +1638,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span19 = CollectionsMarshal.AsSpan(list40); - span19[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(232.6686f, -2.063462f, -13.87066f), MinimumAngle = -75, MaximumAngle = 85 }; - span19[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(208.5002f, -1.21151f, -8.481951f), MinimumAngle = -105, @@ -1424,27 +1657,32 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list39; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span18[1]; + num++; + ref GatheringNodeGroup reference27 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list41)[0]; + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span4 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref GatheringNode reference28 = ref span4[num2]; GatheringNode obj14 = new GatheringNode { DataId = 31051u }; - num3 = 2; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span20 = CollectionsMarshal.AsSpan(list42); - span20[0] = new GatheringLocation + num4 = 2; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + span5 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(174.384f, -0.4081409f, 40.32799f), MinimumAngle = -155, MaximumAngle = 50 }; - span20[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(180.6999f, 0.5284532f, 43.46334f), MinimumAngle = -350, @@ -1454,12 +1692,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list41; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span18[2]; + num++; + ref GatheringNodeGroup reference29 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list43)[0]; + span4 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref GatheringNode reference30 = ref span4[index2]; GatheringNode obj15 = new GatheringNode { DataId = 31052u @@ -1467,14 +1708,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span21 = CollectionsMarshal.AsSpan(list44); - span21[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(239.2585f, -10.81729f, 85.37144f), MinimumAngle = -260, MaximumAngle = -70 }; - span21[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(219.6392f, -8.915615f, 78.84674f), MinimumAngle = -255, @@ -1484,27 +1727,32 @@ public static class AssemblyGatheringLocationLoader reference30 = obj15; gatheringNodeGroup15.Nodes = list43; reference29 = gatheringNodeGroup15; - ref GatheringNodeGroup reference31 = ref span18[3]; + num++; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list45)[0]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span4 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref GatheringNode reference32 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 31050u }; - num3 = 2; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span22 = CollectionsMarshal.AsSpan(list46); - span22[0] = new GatheringLocation + num4 = 2; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(172.7773f, -0.5520306f, -24.73335f), MinimumAngle = -65, MaximumAngle = 145 }; - span22[1] = new GatheringLocation + num3++; + span5[num3] = new GatheringLocation { Position = new Vector3(158.3542f, 0.1226652f, -17.62734f), MinimumAngle = -180, @@ -1524,12 +1772,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 156) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -1544,20 +1796,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - span[0] = 2001415u; - span[1] = 2001416u; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + span3[index] = 2001415u; + index++; + span3[index] = 2001416u; gatheringRoot.ExtraQuestItems = list3; - num = 4; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNodeGroup reference = ref span2[0]; + index = 4; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span4 = CollectionsMarshal.AsSpan(list4); + num = 0; + ref GatheringNodeGroup reference = ref span4[num]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + ref GatheringNode reference2 = ref span5[index2]; GatheringNode obj = new GatheringNode { DataId = 30452u @@ -1565,14 +1822,16 @@ public static class AssemblyGatheringLocationLoader int num3 = 2; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new GatheringLocation + Span span6 = CollectionsMarshal.AsSpan(list6); + int num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-333.5713f, -15.49291f, -326.9827f), MinimumAngle = -250, MaximumAngle = -115 }; - span3[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-353.6776f, -15.7935f, -321.7334f), MinimumAngle = -190, @@ -1582,21 +1841,25 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list5; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span2[1]; + num++; + ref GatheringNodeGroup reference3 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list7)[0]; + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span5 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference4 = ref span5[num2]; GatheringNode obj2 = new GatheringNode { DataId = 30449u }; - num3 = 2; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = new GatheringLocation + num4 = 2; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span6 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-308.8034f, -13.83647f, -329.9288f), MinimumAngle = -55, @@ -1604,7 +1867,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.4f, MaximumDistance = 3f }; - span4[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-290.5811f, -11.39756f, -323.1493f), MinimumAngle = -65, @@ -1614,12 +1878,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list7; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span2[2]; + num++; + ref GatheringNodeGroup reference5 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; + span5 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref GatheringNode reference6 = ref span5[index2]; GatheringNode obj3 = new GatheringNode { DataId = 30450u @@ -1627,14 +1894,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list10); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-281.3932f, -8.5558f, -326.8167f), MinimumAngle = -135, MaximumAngle = 5 }; - span5[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-266.9396f, -6.345774f, -325.4775f), MinimumAngle = 135, @@ -1646,27 +1915,32 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list9; reference5 = gatheringNodeGroup3; - ref GatheringNodeGroup reference7 = ref span2[3]; + num++; + ref GatheringNodeGroup reference7 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span5 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref GatheringNode reference8 = ref span5[num2]; GatheringNode obj4 = new GatheringNode { DataId = 30451u }; - num3 = 2; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = new GatheringLocation + num4 = 2; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + span6 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-254.5719f, -5.395673f, -317.087f), MinimumAngle = 180, MaximumAngle = 275 }; - span6[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-249.4642f, -5.140871f, -324.9326f), MinimumAngle = -10, @@ -1684,12 +1958,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "Censored"; gatheringRoot2.Author = list13; - num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 155) + index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -1704,20 +1982,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = 2001426u; - span7[1] = 2001427u; + span3 = CollectionsMarshal.AsSpan(list15); + index = 0; + span3[index] = 2001426u; + index++; + span3[index] = 2001427u; gatheringRoot2.ExtraQuestItems = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref GatheringNodeGroup reference9 = ref span8[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span4 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref GatheringNodeGroup reference9 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list17)[0]; + span5 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref GatheringNode reference10 = ref span5[index2]; GatheringNode obj5 = new GatheringNode { DataId = 30510u @@ -1725,12 +2008,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(334.4322f, 307.1861f, -252.2396f) }; - span9[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(318.1049f, 305.9586f, -236.1029f), MinimumAngle = -270, @@ -1742,27 +2027,32 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list17; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span8[1]; + num++; + ref GatheringNodeGroup reference11 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list19)[0]; + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span5 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref GatheringNode reference12 = ref span5[num2]; GatheringNode obj6 = new GatheringNode { DataId = 30511u }; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span10 = CollectionsMarshal.AsSpan(list20); - span10[0] = new GatheringLocation + num4 = 2; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span6 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(347.1616f, 316.7778f, -231.3722f), MinimumAngle = -45, MaximumAngle = 190 }; - span10[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(355.554f, 321.804f, -231.1056f), MinimumAngle = -285, @@ -1772,12 +2062,15 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list19; reference11 = gatheringNodeGroup6; - ref GatheringNodeGroup reference13 = ref span8[2]; + num++; + ref GatheringNodeGroup reference13 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; + span5 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref GatheringNode reference14 = ref span5[index2]; GatheringNode obj7 = new GatheringNode { DataId = 30508u @@ -1785,14 +2078,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list22); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(298.5091f, 309.1797f, -201.3309f), MinimumAngle = 105, MaximumAngle = 220 }; - span11[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(291.6585f, 305.774f, -206.6072f), MinimumAngle = -220, @@ -1802,27 +2097,32 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list21; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span8[3]; + num++; + ref GatheringNodeGroup reference15 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span5 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref GatheringNode reference16 = ref span5[num2]; GatheringNode obj8 = new GatheringNode { DataId = 30509u }; - num3 = 2; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = new GatheringLocation + num4 = 2; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + span6 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(325.9026f, 306.1053f, -278.1509f), MinimumAngle = -350, MaximumAngle = -55 }; - span12[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(289.1882f, 302.4524f, -261.3322f), MinimumAngle = -240, @@ -1838,12 +2138,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "Censored"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 154) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -1851,20 +2155,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = 2001388u; - span13[1] = 2001389u; + span3 = CollectionsMarshal.AsSpan(list27); + index = 0; + span3[index] = 2001388u; + index++; + span3[index] = 2001389u; gatheringRoot3.ExtraQuestItems = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span14 = CollectionsMarshal.AsSpan(list28); - ref GatheringNodeGroup reference17 = ref span14[0]; + index = 4; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span4 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref GatheringNodeGroup reference17 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list29)[0]; + span5 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref GatheringNode reference18 = ref span5[index2]; GatheringNode obj9 = new GatheringNode { DataId = 31037u @@ -1872,12 +2181,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span15 = CollectionsMarshal.AsSpan(list30); - span15[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(37.26512f, -5.35672f, -17.14218f) }; - span15[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(38.57137f, -5.615489f, -22.79385f), MinimumAngle = -175, @@ -1887,27 +2198,32 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list29; reference17 = gatheringNodeGroup9; - ref GatheringNodeGroup reference19 = ref span14[1]; + num++; + ref GatheringNodeGroup reference19 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span5 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference20 = ref span5[num2]; GatheringNode obj10 = new GatheringNode { DataId = 31040u }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span16 = CollectionsMarshal.AsSpan(list32); - span16[0] = new GatheringLocation + num4 = 2; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span6 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(31.95057f, -6.724361f, -2.002786f), MinimumAngle = -140, MaximumAngle = 140 }; - span16[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(29.91186f, -7.849501f, -8.288407f), MinimumAngle = -310, @@ -1917,12 +2233,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span14[2]; + num++; + ref GatheringNodeGroup reference21 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; + span5 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref GatheringNode reference22 = ref span5[index2]; GatheringNode obj11 = new GatheringNode { DataId = 31038u @@ -1930,14 +2249,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span17 = CollectionsMarshal.AsSpan(list34); - span17[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(78.76174f, -11.8893f, 3.8787f), MinimumAngle = 45, MaximumAngle = 220 }; - span17[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(81.825f, -12.01711f, -3.642704f), MinimumAngle = 0, @@ -1947,27 +2268,32 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span14[3]; + num++; + ref GatheringNodeGroup reference23 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span5 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference24 = ref span5[num2]; GatheringNode obj12 = new GatheringNode { DataId = 31039u }; - num3 = 2; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span18 = CollectionsMarshal.AsSpan(list36); - span18[0] = new GatheringLocation + num4 = 2; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + span6 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(61.52108f, -11.51824f, -20.57552f), MinimumAngle = -145, MaximumAngle = 85 }; - span18[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(53.08001f, -11.09225f, -27.17002f), MinimumAngle = -50, @@ -1983,12 +2309,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "Censored"; gatheringRoot4.Author = list37; - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 156) + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -2003,20 +2333,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = 2001412u; - span19[1] = 2001413u; + span3 = CollectionsMarshal.AsSpan(list39); + index = 0; + span3[index] = 2001412u; + index++; + span3[index] = 2001413u; gatheringRoot4.ExtraQuestItems = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span20 = CollectionsMarshal.AsSpan(list40); - ref GatheringNodeGroup reference25 = ref span20[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span4 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref GatheringNodeGroup reference25 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list41)[0]; + span5 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref GatheringNode reference26 = ref span5[index2]; GatheringNode obj13 = new GatheringNode { DataId = 31043u @@ -2024,14 +2359,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span21 = CollectionsMarshal.AsSpan(list42); - span21[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-371.8556f, -15.86567f, -363.9182f), MinimumAngle = -145, MaximumAngle = -35 }; - span21[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-372.1209f, -16.00947f, -351.6216f), MinimumAngle = -125, @@ -2041,28 +2378,32 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list41; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span20[1]; + num++; + ref GatheringNodeGroup reference27 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span22 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference28 = ref span22[0]; + index2 = 2; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span5 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref GatheringNode reference28 = ref span5[num2]; GatheringNode obj14 = new GatheringNode { DataId = 31044u }; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span23 = CollectionsMarshal.AsSpan(list44); - span23[0] = new GatheringLocation + num4 = 2; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span6 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-344.8759f, -16.46771f, -338.7833f), MinimumAngle = -90, MaximumAngle = 75 }; - span23[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-332.5748f, -16.07329f, -337.0371f), MinimumAngle = -65, @@ -2070,7 +2411,8 @@ public static class AssemblyGatheringLocationLoader }; obj14.Locations = list44; reference28 = obj14; - ref GatheringNode reference29 = ref span22[1]; + num2++; + ref GatheringNode reference29 = ref span5[num2]; GatheringNode obj15 = new GatheringNode { DataId = 31042u @@ -2078,7 +2420,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-317.5309f, -16.18071f, -338.7262f), MinimumAngle = -35, @@ -2088,27 +2432,32 @@ public static class AssemblyGatheringLocationLoader reference29 = obj15; gatheringNodeGroup14.Nodes = list43; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference30 = ref span20[2]; + num++; + ref GatheringNodeGroup reference30 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - ref GatheringNode reference31 = ref CollectionsMarshal.AsSpan(list46)[0]; + span5 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + ref GatheringNode reference31 = ref span5[index2]; GatheringNode obj16 = new GatheringNode { DataId = 31041u }; - num3 = 2; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span24 = CollectionsMarshal.AsSpan(list47); - span24[0] = new GatheringLocation + num4 = 2; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + span6 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-347.2882f, -15.12936f, -346.8752f), MinimumAngle = -195, MaximumAngle = -110 }; - span24[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-348.3911f, -16.14678f, -363.7992f), MinimumAngle = -20, @@ -2128,12 +2477,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 397) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -2141,47 +2494,55 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 31406u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-501.2244f, 118.0477f, -443.4114f) }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 31407u }; - num3 = 3; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new GatheringLocation + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-468.6656f, 120.7944f, -420.1442f) }; - span3[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-523.499f, 117.4618f, -449.0883f), MinimumAngle = -160, MaximumAngle = 65 }; - span3[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-482.4585f, 120.3927f, -442.2994f) }; @@ -2189,46 +2550,54 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 31408u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-685.595f, 122.3003f, -379.202f) }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 31409u }; - num3 = 3; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new GatheringLocation + index2 = 3; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-691.5064f, 123.4536f, -354.5497f), MinimumAngle = 95, MaximumAngle = 325 }; - span5[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-673.4897f, 122.1564f, -378.4789f) }; - span5[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-664.5702f, 121.697f, -394.0817f), MinimumAngle = 0, @@ -2238,48 +2607,56 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 31410u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-496.1503f, 121.0539f, -272.0342f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 31411u }; - num3 = 3; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span7 = CollectionsMarshal.AsSpan(list12); - span7[0] = new GatheringLocation + index2 = 3; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-459.1924f, 121.1919f, -280.8376f), MinimumAngle = -105, MaximumAngle = 55 }; - span7[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-472.298f, 121.4754f, -306.8053f), MinimumAngle = 30, MaximumAngle = 235 }; - span7[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-486.2957f, 120.9394f, -257.3133f) }; @@ -2290,50 +2667,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(300, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list13; num = 2; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span8 = CollectionsMarshal.AsSpan(list14); - ref QuestStep reference10 = ref span8[0]; + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + ref QuestStep reference10 = ref span2[index]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = 1073; + num3 = 1; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + Span span6 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span6[num2] = 1073; skipStepConditions.InTerritory = list15; skipConditions.StepIf = skipStepConditions; obj7.SkipConditions = skipConditions; reference10 = obj7; - span8[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot2.Steps = list14; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref GatheringNodeGroup reference11 = ref span9[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span3 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref GatheringNodeGroup reference11 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + span4 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + ref GatheringNode reference12 = ref span4[num3]; GatheringNode obj8 = new GatheringNode { DataId = 31819u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span5 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-5.492728f, 499.6548f, 37.58726f), MinimumAngle = 145, @@ -2343,20 +2731,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list17; reference11 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span9[1]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + span4 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref GatheringNode reference14 = ref span4[num2]; GatheringNode obj9 = new GatheringNode { DataId = 31700u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span5 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(27.22863f, 499.8322f, 2.94655f), MinimumAngle = -15, @@ -2366,20 +2759,25 @@ public static class AssemblyGatheringLocationLoader reference14 = obj9; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference15 = ref span9[2]; + num++; + ref GatheringNodeGroup reference15 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + span4 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + ref GatheringNode reference16 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 31489u }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new GatheringLocation + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span5 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(28.38036f, 500.019f, -0.7058061f), MinimumAngle = 0, @@ -2395,47 +2793,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list23; - num = 2; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span10 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference17 = ref span10[0]; + index = 2; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestStep reference17 = ref span2[num]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = 1073; + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + span6 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span6[num2] = 1073; skipStepConditions2.InTerritory = list25; skipConditions2.StepIf = skipStepConditions2; obj11.SkipConditions = skipConditions2; reference17 = obj11; - span10[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot3.Steps = list24; num = 3; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span11 = CollectionsMarshal.AsSpan(list26); - ref GatheringNodeGroup reference18 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list26); + index = 0; + ref GatheringNodeGroup reference18 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - ref GatheringNode reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + span4 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + ref GatheringNode reference19 = ref span4[num3]; GatheringNode obj12 = new GatheringNode { DataId = 31822u }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new GatheringLocation + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span5 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-4.054798f, 494.3483f, -54.37905f) }; @@ -2443,20 +2852,25 @@ public static class AssemblyGatheringLocationLoader reference19 = obj12; gatheringNodeGroup7.Nodes = list27; reference18 = gatheringNodeGroup7; - ref GatheringNodeGroup reference20 = ref span11[1]; + index++; + ref GatheringNodeGroup reference20 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + span4 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref GatheringNode reference21 = ref span4[num2]; GatheringNode obj13 = new GatheringNode { DataId = 31821u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + num4 = 1; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span5 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-5.287843f, 494.2204f, -66.80152f) }; @@ -2464,20 +2878,25 @@ public static class AssemblyGatheringLocationLoader reference21 = obj13; gatheringNodeGroup8.Nodes = list29; reference20 = gatheringNodeGroup8; - ref GatheringNodeGroup reference22 = ref span11[2]; + index++; + ref GatheringNodeGroup reference22 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference23 = ref CollectionsMarshal.AsSpan(list31)[0]; + span4 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + ref GatheringNode reference23 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 31820u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span5 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-9.143447f, 494.1166f, -82.62958f), MinimumAngle = -75, @@ -2490,50 +2909,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list26; AddLocation(317, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + index = 1; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span = CollectionsMarshal.AsSpan(list33); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list33; num = 2; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference24 = ref span12[0]; + span2 = CollectionsMarshal.AsSpan(list34); + index = 0; + ref QuestStep reference24 = ref span2[index]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = 1073; + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + span6 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span6[num2] = 1073; skipStepConditions3.InTerritory = list35; skipConditions3.StepIf = skipStepConditions3; obj15.SkipConditions = skipConditions3; reference24 = obj15; - span12[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot4.Steps = list34; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref GatheringNodeGroup reference25 = ref span13[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span3 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref GatheringNodeGroup reference25 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; + span4 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + ref GatheringNode reference26 = ref span4[num3]; GatheringNode obj16 = new GatheringNode { DataId = 33840u }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new GatheringLocation + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span5 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(10.28351f, 486.144f, -136.9586f) }; @@ -2541,20 +2971,25 @@ public static class AssemblyGatheringLocationLoader reference26 = obj16; gatheringNodeGroup10.Nodes = list37; reference25 = gatheringNodeGroup10; - ref GatheringNodeGroup reference27 = ref span13[1]; + num++; + ref GatheringNodeGroup reference27 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list39)[0]; + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + span4 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref GatheringNode reference28 = ref span4[num2]; GatheringNode obj17 = new GatheringNode { DataId = 33841u }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheringLocation + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span5 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(19.46428f, 485.9226f, -136.738f) }; @@ -2562,20 +2997,25 @@ public static class AssemblyGatheringLocationLoader reference28 = obj17; gatheringNodeGroup11.Nodes = list39; reference27 = gatheringNodeGroup11; - ref GatheringNodeGroup reference29 = ref span13[2]; + num++; + ref GatheringNodeGroup reference29 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; + span4 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + ref GatheringNode reference30 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 33643u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + num4 = 1; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + span5 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(14.21117f, 486.0551f, -143.435f) }; @@ -2589,47 +3029,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list43; - num = 2; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestStep reference31 = ref span14[0]; + index = 2; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestStep reference31 = ref span2[num]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = 1073; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + span6 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span6[num2] = 1073; skipStepConditions4.InTerritory = list45; skipConditions4.StepIf = skipStepConditions4; obj19.SkipConditions = skipConditions4; reference31 = obj19; - span14[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot5.Steps = list44; num = 3; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span15 = CollectionsMarshal.AsSpan(list46); - ref GatheringNodeGroup reference32 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list46); + index = 0; + ref GatheringNodeGroup reference32 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref GatheringNode reference33 = ref CollectionsMarshal.AsSpan(list47)[0]; + span4 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + ref GatheringNode reference33 = ref span4[num3]; GatheringNode obj20 = new GatheringNode { DataId = 33842u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span5 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-71.72573f, 495.8044f, -23.42241f), MinimumAngle = -15, @@ -2639,20 +3090,25 @@ public static class AssemblyGatheringLocationLoader reference33 = obj20; gatheringNodeGroup13.Nodes = list47; reference32 = gatheringNodeGroup13; - ref GatheringNodeGroup reference34 = ref span15[1]; + index++; + ref GatheringNodeGroup reference34 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref GatheringNode reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + span4 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref GatheringNode reference35 = ref span4[num2]; GatheringNode obj21 = new GatheringNode { DataId = 33846u }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation + num4 = 1; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + span5 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-85.765f, 493.9822f, -11.33734f), MinimumAngle = -185, @@ -2662,20 +3118,25 @@ public static class AssemblyGatheringLocationLoader reference35 = obj21; gatheringNodeGroup14.Nodes = list49; reference34 = gatheringNodeGroup14; - ref GatheringNodeGroup reference36 = ref span15[2]; + index++; + ref GatheringNodeGroup reference36 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref GatheringNode reference37 = ref CollectionsMarshal.AsSpan(list51)[0]; + span4 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + ref GatheringNode reference37 = ref span4[num3]; GatheringNode obj22 = new GatheringNode { DataId = 33847u }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span5 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-100.52f, 493.6702f, -9.731167f), MinimumAngle = -185, @@ -2688,50 +3149,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list46; AddLocation(322, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + index = 1; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span = CollectionsMarshal.AsSpan(list53); + num = 0; + span[num] = "liza"; gatheringRoot6.Author = list53; num = 2; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span16 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference38 = ref span16[0]; + span2 = CollectionsMarshal.AsSpan(list54); + index = 0; + ref QuestStep reference38 = ref span2[index]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = 1073; + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span6 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span6[num2] = 1073; skipStepConditions5.InTerritory = list55; skipConditions5.StepIf = skipStepConditions5; obj23.SkipConditions = skipConditions5; reference38 = obj23; - span16[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot6.Steps = list54; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span17 = CollectionsMarshal.AsSpan(list56); - ref GatheringNodeGroup reference39 = ref span17[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span3 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref GatheringNodeGroup reference39 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref GatheringNode reference40 = ref CollectionsMarshal.AsSpan(list57)[0]; + span4 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + ref GatheringNode reference40 = ref span4[num3]; GatheringNode obj24 = new GatheringNode { DataId = 33848u }; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new GatheringLocation + num4 = 1; + List list58 = new List(num4); + CollectionsMarshal.SetCount(list58, num4); + span5 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-109.0629f, 491.0458f, 34.78553f), MinimumAngle = -110, @@ -2741,20 +3213,25 @@ public static class AssemblyGatheringLocationLoader reference40 = obj24; gatheringNodeGroup16.Nodes = list57; reference39 = gatheringNodeGroup16; - ref GatheringNodeGroup reference41 = ref span17[1]; + num++; + ref GatheringNodeGroup reference41 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - ref GatheringNode reference42 = ref CollectionsMarshal.AsSpan(list59)[0]; + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + span4 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref GatheringNode reference42 = ref span4[num2]; GatheringNode obj25 = new GatheringNode { DataId = 33849u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span5 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-110.2371f, 491.0116f, 54.68977f), MinimumAngle = -170, @@ -2764,20 +3241,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj25; gatheringNodeGroup17.Nodes = list59; reference41 = gatheringNodeGroup17; - ref GatheringNodeGroup reference43 = ref span17[2]; + num++; + ref GatheringNodeGroup reference43 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - ref GatheringNode reference44 = ref CollectionsMarshal.AsSpan(list61)[0]; + span4 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + ref GatheringNode reference44 = ref span4[num3]; GatheringNode obj26 = new GatheringNode { DataId = 33850u }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new GatheringLocation + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span5 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-101.4737f, 490.7073f, 54.9267f), MinimumAngle = 90, @@ -2793,12 +3275,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "liza"; gatheringRoot7.Author = list63; - num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.None, null, null, 397) + index = 1; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -2806,22 +3292,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span18 = CollectionsMarshal.AsSpan(list65); - ref GatheringNodeGroup reference45 = ref span18[0]; + span3 = CollectionsMarshal.AsSpan(list65); + index = 0; + ref GatheringNodeGroup reference45 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); - num2 = 2; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span19 = CollectionsMarshal.AsSpan(list66); - ref GatheringNode reference46 = ref span19[0]; + num3 = 2; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + span4 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref GatheringNode reference46 = ref span4[num2]; GatheringNode obj27 = new GatheringNode { DataId = 31344u }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span5 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(40.36132f, 217.3049f, 405.1829f), MinimumAngle = 100, @@ -2831,17 +3321,19 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list67; reference46 = obj27; - ref GatheringNode reference47 = ref span19[1]; + num2++; + ref GatheringNode reference47 = ref span4[num2]; GatheringNode obj28 = new GatheringNode { DataId = 31345u, Fly = false }; - num3 = 3; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span20 = CollectionsMarshal.AsSpan(list68); - span20[0] = new GatheringLocation + num4 = 3; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span5 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(20.19547f, 216.5585f, 412.4353f), MinimumAngle = 75, @@ -2849,7 +3341,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - span20[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(17.58205f, 216.0664f, 421.5481f), MinimumAngle = 0, @@ -2857,7 +3350,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - span20[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(51.50931f, 217.6516f, 408.2164f), MinimumAngle = 155, @@ -2869,21 +3363,25 @@ public static class AssemblyGatheringLocationLoader reference47 = obj28; gatheringNodeGroup19.Nodes = list66; reference45 = gatheringNodeGroup19; - ref GatheringNodeGroup reference48 = ref span18[1]; + index++; + ref GatheringNodeGroup reference48 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); num2 = 3; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span21 = CollectionsMarshal.AsSpan(list69); - ref GatheringNode reference49 = ref span21[0]; + span4 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + ref GatheringNode reference49 = ref span4[num3]; GatheringNode obj29 = new GatheringNode { DataId = 31340u }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheringLocation + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span5 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(56.06712f, 216.6702f, 225.849f), MinimumAngle = -20, @@ -2891,28 +3389,32 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list70; reference49 = obj29; - ref GatheringNode reference50 = ref span21[1]; + num3++; + ref GatheringNode reference50 = ref span4[num3]; GatheringNode obj30 = new GatheringNode { DataId = 31341u }; - num3 = 3; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span22 = CollectionsMarshal.AsSpan(list71); - span22[0] = new GatheringLocation + num4 = 3; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span5 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(85.05425f, 218.7078f, 220.0463f), MinimumAngle = -110, MaximumAngle = 25 }; - span22[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(78.99079f, 215.9441f, 228.9527f), MinimumAngle = -110, MaximumAngle = 40 }; - span22[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(67.29195f, 216.4685f, 228.7955f), MinimumAngle = -35, @@ -2920,15 +3422,18 @@ public static class AssemblyGatheringLocationLoader }; obj30.Locations = list71; reference50 = obj30; - ref GatheringNode reference51 = ref span21[2]; + num3++; + ref GatheringNode reference51 = ref span4[num3]; GatheringNode obj31 = new GatheringNode { DataId = 31342u }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span5 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-124.1629f, 221.9654f, 197.8645f), MinimumAngle = -15, @@ -2938,33 +3443,39 @@ public static class AssemblyGatheringLocationLoader reference51 = obj31; gatheringNodeGroup20.Nodes = list69; reference48 = gatheringNodeGroup20; - ref GatheringNodeGroup reference52 = ref span18[2]; + index++; + ref GatheringNodeGroup reference52 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list73)[0]; + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + span4 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref GatheringNode reference53 = ref span4[num2]; GatheringNode obj32 = new GatheringNode { DataId = 31343u }; - num3 = 3; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span23 = CollectionsMarshal.AsSpan(list74); - span23[0] = new GatheringLocation + num4 = 3; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + span5 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-138.4112f, 220.679f, 204.6822f), MinimumAngle = -20, MaximumAngle = 20 }; - span23[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-90.40117f, 223.687f, 202.5069f), MinimumAngle = -90, MaximumAngle = 45 }; - span23[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-50.76083f, 222.9418f, 217.8322f), MinimumAngle = 50, @@ -2977,38 +3488,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list65; AddLocation(351, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + index = 1; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span = CollectionsMarshal.AsSpan(list75); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list75; num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.None, null, null, 398) + span2 = CollectionsMarshal.AsSpan(list76); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot8.Steps = list76; - num = 3; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span24 = CollectionsMarshal.AsSpan(list77); - ref GatheringNodeGroup reference54 = ref span24[0]; + index = 3; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span3 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref GatheringNodeGroup reference54 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span25 = CollectionsMarshal.AsSpan(list78); - ref GatheringNode reference55 = ref span25[0]; + span4 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + ref GatheringNode reference55 = ref span4[num3]; GatheringNode obj33 = new GatheringNode { DataId = 31350u }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new GatheringLocation + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span5 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-115.4501f, -44.90735f, 211.8084f), MinimumAngle = -5, @@ -3016,28 +3535,32 @@ public static class AssemblyGatheringLocationLoader }; obj33.Locations = list79; reference55 = obj33; - ref GatheringNode reference56 = ref span25[1]; + num3++; + ref GatheringNode reference56 = ref span4[num3]; GatheringNode obj34 = new GatheringNode { DataId = 31351u }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span26 = CollectionsMarshal.AsSpan(list80); - span26[0] = new GatheringLocation + num4 = 3; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span5 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-94.4983f, -46.65615f, 219.4642f), MinimumAngle = -90, MaximumAngle = 65 }; - span26[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-133.4304f, -45.47835f, 211.6268f), MinimumAngle = -50, MaximumAngle = 80 }; - span26[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-81.5194f, -52.42267f, 241.2021f), MinimumAngle = -35, @@ -3047,21 +3570,25 @@ public static class AssemblyGatheringLocationLoader reference56 = obj34; gatheringNodeGroup22.Nodes = list78; reference54 = gatheringNodeGroup22; - ref GatheringNodeGroup reference57 = ref span24[1]; + num++; + ref GatheringNodeGroup reference57 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); - num2 = 2; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - Span span27 = CollectionsMarshal.AsSpan(list81); - ref GatheringNode reference58 = ref span27[0]; + num3 = 2; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + span4 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref GatheringNode reference58 = ref span4[num2]; GatheringNode obj35 = new GatheringNode { DataId = 31346u }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span5 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-154.299f, -70.63795f, 399.4617f), MinimumAngle = 110, @@ -3069,28 +3596,32 @@ public static class AssemblyGatheringLocationLoader }; obj35.Locations = list82; reference58 = obj35; - ref GatheringNode reference59 = ref span27[1]; + num2++; + ref GatheringNode reference59 = ref span4[num2]; GatheringNode obj36 = new GatheringNode { DataId = 31347u }; - num3 = 3; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span28 = CollectionsMarshal.AsSpan(list83); - span28[0] = new GatheringLocation + num4 = 3; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span5 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-167.7846f, -70.11265f, 418.7766f), MinimumAngle = 90, MaximumAngle = 235 }; - span28[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-152.9678f, -68.49996f, 365.0086f), MinimumAngle = -30, MaximumAngle = 70 }; - span28[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-189.6693f, -68.18973f, 377.6652f), MinimumAngle = 205, @@ -3100,34 +3631,39 @@ public static class AssemblyGatheringLocationLoader reference59 = obj36; gatheringNodeGroup23.Nodes = list81; reference57 = gatheringNodeGroup23; - ref GatheringNodeGroup reference60 = ref span24[2]; + num++; + ref GatheringNodeGroup reference60 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span29 = CollectionsMarshal.AsSpan(list84); - ref GatheringNode reference61 = ref span29[0]; + span4 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref GatheringNode reference61 = ref span4[num3]; GatheringNode obj37 = new GatheringNode { DataId = 31349u }; - num3 = 3; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span30 = CollectionsMarshal.AsSpan(list85); - span30[0] = new GatheringLocation + index2 = 3; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span5 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-312.3143f, -54.81182f, 331.0543f), MinimumAngle = -145, MaximumAngle = 5 }; - span30[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-296.8107f, -51.96982f, 310.6086f), MinimumAngle = 235, MaximumAngle = 330 }; - span30[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-299.3094f, -46.30565f, 293.9169f), MinimumAngle = 165, @@ -3135,15 +3671,18 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list85; reference61 = obj37; - ref GatheringNode reference62 = ref span29[1]; + num3++; + ref GatheringNode reference62 = ref span4[num3]; GatheringNode obj38 = new GatheringNode { DataId = 31348u }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = new GatheringLocation + num4 = 1; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + span5 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-311.9997f, -53.59439f, 326.8317f), MinimumAngle = -75, @@ -3159,12 +3698,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "liza"; gatheringRoot9.Author = list87; - num = 1; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list88)[0]; + index = 1; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestStep reference63 = ref span2[num]; QuestStep obj39 = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -3176,10 +3719,12 @@ public static class AssemblyGatheringLocationLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = 399; + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + span6 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span6[num2] = 399; skipAetheryteCondition.InTerritory = list89; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition; obj39.SkipConditions = skipConditions6; @@ -3188,22 +3733,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span31 = CollectionsMarshal.AsSpan(list90); - ref GatheringNodeGroup reference64 = ref span31[0]; + span3 = CollectionsMarshal.AsSpan(list90); + index = 0; + ref GatheringNodeGroup reference64 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span32 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference65 = ref span32[0]; + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference65 = ref span4[num3]; GatheringNode obj40 = new GatheringNode { DataId = 31356u }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span5 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(120.1556f, 70.42133f, 30.73328f), MinimumAngle = -95, @@ -3211,28 +3760,32 @@ public static class AssemblyGatheringLocationLoader }; obj40.Locations = list92; reference65 = obj40; - ref GatheringNode reference66 = ref span32[1]; + num3++; + ref GatheringNode reference66 = ref span4[num3]; GatheringNode obj41 = new GatheringNode { DataId = 31357u }; - num3 = 3; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span33 = CollectionsMarshal.AsSpan(list93); - span33[0] = new GatheringLocation + num4 = 3; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + span5 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(137.7684f, 70.04282f, 64.77115f), MinimumAngle = 30, MaximumAngle = 130 }; - span33[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(132.1863f, 70.08203f, 57.67828f), MinimumAngle = -10, MaximumAngle = 105 }; - span33[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(145.684f, 70.47159f, 45.05047f), MinimumAngle = 80, @@ -3242,34 +3795,39 @@ public static class AssemblyGatheringLocationLoader reference66 = obj41; gatheringNodeGroup25.Nodes = list91; reference64 = gatheringNodeGroup25; - ref GatheringNodeGroup reference67 = ref span31[1]; + index++; + ref GatheringNodeGroup reference67 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span34 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference68 = ref span34[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + span4 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference68 = ref span4[num2]; GatheringNode obj42 = new GatheringNode { DataId = 31355u }; - num3 = 3; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span35 = CollectionsMarshal.AsSpan(list95); - span35[0] = new GatheringLocation + index2 = 3; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span5 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(59.4164f, 54.40149f, 160.6752f), MinimumAngle = 155, MaximumAngle = 285 }; - span35[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(66.6783f, 53.80389f, 177.1926f), MinimumAngle = -90, MaximumAngle = 0 }; - span35[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(47.04347f, 53.91698f, 164.1816f), MinimumAngle = 0, @@ -3277,15 +3835,18 @@ public static class AssemblyGatheringLocationLoader }; obj42.Locations = list95; reference68 = obj42; - ref GatheringNode reference69 = ref span34[1]; + num2++; + ref GatheringNode reference69 = ref span4[num2]; GatheringNode obj43 = new GatheringNode { DataId = 31354u }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + num4 = 1; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + span5 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(31.89844f, 54.71996f, 173.864f), MinimumAngle = 105, @@ -3295,21 +3856,25 @@ public static class AssemblyGatheringLocationLoader reference69 = obj43; gatheringNodeGroup26.Nodes = list94; reference67 = gatheringNodeGroup26; - ref GatheringNodeGroup reference70 = ref span31[2]; + index++; + ref GatheringNodeGroup reference70 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span36 = CollectionsMarshal.AsSpan(list97); - ref GatheringNode reference71 = ref span36[0]; + span4 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + ref GatheringNode reference71 = ref span4[num3]; GatheringNode obj44 = new GatheringNode { DataId = 31352u }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new GatheringLocation + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span5 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(231.3517f, 74.23511f, 112.9807f), MinimumAngle = 130, @@ -3317,28 +3882,32 @@ public static class AssemblyGatheringLocationLoader }; obj44.Locations = list98; reference71 = obj44; - ref GatheringNode reference72 = ref span36[1]; + num3++; + ref GatheringNode reference72 = ref span4[num3]; GatheringNode obj45 = new GatheringNode { DataId = 31353u }; - num3 = 3; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span37 = CollectionsMarshal.AsSpan(list99); - span37[0] = new GatheringLocation + num4 = 3; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span5 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(239.051f, 80.42557f, 192.2325f), MinimumAngle = 140, MaximumAngle = 235 }; - span37[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(237.4622f, 74.67197f, 150.8143f), MinimumAngle = 60, MaximumAngle = 225 }; - span37[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(211.4673f, 75.37302f, 169.3396f), MinimumAngle = 145, @@ -3351,38 +3920,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list90; AddLocation(353, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + index = 1; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span = CollectionsMarshal.AsSpan(list100); + num = 0; + span[num] = "liza"; gatheringRoot10.Author = list100; num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.None, null, null, 401) + span2 = CollectionsMarshal.AsSpan(list101); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; gatheringRoot10.Steps = list101; - num = 3; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span38 = CollectionsMarshal.AsSpan(list102); - ref GatheringNodeGroup reference73 = ref span38[0]; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span3 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref GatheringNodeGroup reference73 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span39 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference74 = ref span39[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span4 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference74 = ref span4[num2]; GatheringNode obj46 = new GatheringNode { DataId = 31366u }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span5 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(529.0662f, -110.3256f, 434.3149f), MinimumAngle = 15, @@ -3390,28 +3967,32 @@ public static class AssemblyGatheringLocationLoader }; obj46.Locations = list104; reference74 = obj46; - ref GatheringNode reference75 = ref span39[1]; + num2++; + ref GatheringNode reference75 = ref span4[num2]; GatheringNode obj47 = new GatheringNode { DataId = 31367u }; - num3 = 3; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span40 = CollectionsMarshal.AsSpan(list105); - span40[0] = new GatheringLocation + num4 = 3; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + span5 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(541.8505f, -111.128f, 452.5471f), MinimumAngle = -45, MaximumAngle = 40 }; - span40[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(517.9747f, -109.2984f, 417.9554f), MinimumAngle = -45, MaximumAngle = 55 }; - span40[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(499.3676f, -108.7323f, 410.8949f), MinimumAngle = -5, @@ -3421,34 +4002,39 @@ public static class AssemblyGatheringLocationLoader reference75 = obj47; gatheringNodeGroup28.Nodes = list103; reference73 = gatheringNodeGroup28; - ref GatheringNodeGroup reference76 = ref span38[1]; + num++; + ref GatheringNodeGroup reference76 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span41 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference77 = ref span41[0]; + span4 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference77 = ref span4[num3]; GatheringNode obj48 = new GatheringNode { DataId = 31365u }; - num3 = 3; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span42 = CollectionsMarshal.AsSpan(list107); - span42[0] = new GatheringLocation + index2 = 3; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span5 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(625.9688f, -115.6856f, 344.535f), MinimumAngle = 125, MaximumAngle = 185 }; - span42[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(678.5617f, -122.8687f, 356.7407f), MinimumAngle = 190, MaximumAngle = 290 }; - span42[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(644.1035f, -122.3688f, 334.0371f), MinimumAngle = 105, @@ -3456,15 +4042,18 @@ public static class AssemblyGatheringLocationLoader }; obj48.Locations = list107; reference77 = obj48; - ref GatheringNode reference78 = ref span41[1]; + num3++; + ref GatheringNode reference78 = ref span4[num3]; GatheringNode obj49 = new GatheringNode { DataId = 31364u }; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + span5 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(661.9959f, -122.6855f, 333.0707f), MinimumAngle = 140, @@ -3474,21 +4063,25 @@ public static class AssemblyGatheringLocationLoader reference78 = obj49; gatheringNodeGroup29.Nodes = list106; reference76 = gatheringNodeGroup29; - ref GatheringNodeGroup reference79 = ref span38[2]; + num++; + ref GatheringNodeGroup reference79 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span43 = CollectionsMarshal.AsSpan(list109); - ref GatheringNode reference80 = ref span43[0]; + num3 = 2; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + span4 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref GatheringNode reference80 = ref span4[num2]; GatheringNode obj50 = new GatheringNode { DataId = 31369u }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span5 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(730.9626f, -96.64706f, 449.485f), MinimumAngle = 45, @@ -3496,15 +4089,18 @@ public static class AssemblyGatheringLocationLoader }; obj50.Locations = list110; reference80 = obj50; - ref GatheringNode reference81 = ref span43[1]; + num2++; + ref GatheringNode reference81 = ref span4[num2]; GatheringNode obj51 = new GatheringNode { DataId = 31368u }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new GatheringLocation + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + span5 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(727.2908f, -95.47571f, 460.3798f), MinimumAngle = 25, @@ -3520,12 +4116,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list112); + index = 0; + span[index] = "liza"; gatheringRoot11.Author = list112; - num = 1; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.None, null, null, 400) + index = 1; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + span2 = CollectionsMarshal.AsSpan(list113); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -3533,35 +4133,40 @@ public static class AssemblyGatheringLocationLoader num = 2; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span44 = CollectionsMarshal.AsSpan(list114); - ref GatheringNodeGroup reference82 = ref span44[0]; + span3 = CollectionsMarshal.AsSpan(list114); + index = 0; + ref GatheringNodeGroup reference82 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span45 = CollectionsMarshal.AsSpan(list115); - ref GatheringNode reference83 = ref span45[0]; + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + ref GatheringNode reference83 = ref span4[num3]; GatheringNode obj52 = new GatheringNode { DataId = 31363u }; - num3 = 3; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span46 = CollectionsMarshal.AsSpan(list116); - span46[0] = new GatheringLocation + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span5 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(338.6716f, -29.70343f, -89.65448f), MinimumAngle = 145, MaximumAngle = 275 }; - span46[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(285.6898f, -32.99854f, -100.1466f), MinimumAngle = 115, MaximumAngle = 275 }; - span46[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(326.7051f, -27.26759f, -89.31528f), MinimumAngle = 110, @@ -3569,15 +4174,18 @@ public static class AssemblyGatheringLocationLoader }; obj52.Locations = list116; reference83 = obj52; - ref GatheringNode reference84 = ref span45[1]; + num3++; + ref GatheringNode reference84 = ref span4[num3]; GatheringNode obj53 = new GatheringNode { DataId = 31362u }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + span5 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(299.2141f, -33.21008f, -103.5859f), MinimumAngle = 75, @@ -3587,21 +4195,25 @@ public static class AssemblyGatheringLocationLoader reference84 = obj53; gatheringNodeGroup31.Nodes = list115; reference82 = gatheringNodeGroup31; - ref GatheringNodeGroup reference85 = ref span44[1]; + index++; + ref GatheringNodeGroup reference85 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span47 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference86 = ref span47[0]; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span4 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference86 = ref span4[num2]; GatheringNode obj54 = new GatheringNode { DataId = 31358u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span5 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(316.6238f, -30.77305f, -230.0326f), MinimumAngle = -35, @@ -3609,28 +4221,32 @@ public static class AssemblyGatheringLocationLoader }; obj54.Locations = list119; reference86 = obj54; - ref GatheringNode reference87 = ref span47[1]; + num2++; + ref GatheringNode reference87 = ref span4[num2]; GatheringNode obj55 = new GatheringNode { DataId = 31359u }; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span48 = CollectionsMarshal.AsSpan(list120); - span48[0] = new GatheringLocation + num4 = 3; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + span5 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(297.7187f, -32.66696f, -234.9031f), MinimumAngle = 15, MaximumAngle = 135 }; - span48[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(288.7547f, -33.61605f, -239.764f), MinimumAngle = -30, MaximumAngle = 65 }; - span48[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(324.8526f, -28.45777f, -209.4378f), MinimumAngle = -5, @@ -3643,61 +4259,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list114; AddLocation(355, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + index = 1; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span = CollectionsMarshal.AsSpan(list121); + num = 0; + span[num] = "liza"; gatheringRoot12.Author = list121; num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 398) + span2 = CollectionsMarshal.AsSpan(list122); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot12.Steps = list122; - num = 3; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span49 = CollectionsMarshal.AsSpan(list123); - ref GatheringNodeGroup reference88 = ref span49[0]; + index = 3; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + span3 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref GatheringNodeGroup reference88 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span50 = CollectionsMarshal.AsSpan(list124); - ref GatheringNode reference89 = ref span50[0]; + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference89 = ref span4[num3]; GatheringNode obj56 = new GatheringNode { DataId = 31413u }; - num3 = 3; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span51 = CollectionsMarshal.AsSpan(list125); - span51[0] = new GatheringLocation + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span5 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-513.1596f, -85.63485f, 434.7382f) }; - span51[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-562.0517f, -89.33559f, 445.0961f) }; - span51[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-523.4441f, -81.67991f, 408.9826f) }; obj56.Locations = list125; reference89 = obj56; - ref GatheringNode reference90 = ref span50[1]; + num3++; + ref GatheringNode reference90 = ref span4[num3]; GatheringNode obj57 = new GatheringNode { DataId = 31412u }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + span5 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-553.9171f, -84.75874f, 419.2539f) }; @@ -3705,44 +4333,52 @@ public static class AssemblyGatheringLocationLoader reference90 = obj57; gatheringNodeGroup33.Nodes = list124; reference88 = gatheringNodeGroup33; - ref GatheringNodeGroup reference91 = ref span49[1]; + num++; + ref GatheringNodeGroup reference91 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span52 = CollectionsMarshal.AsSpan(list127); - ref GatheringNode reference92 = ref span52[0]; + num3 = 2; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + span4 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref GatheringNode reference92 = ref span4[num2]; GatheringNode obj58 = new GatheringNode { DataId = 31416u }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new GatheringLocation + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span5 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-569.6527f, -96.50298f, 547.1465f) }; obj58.Locations = list128; reference92 = obj58; - ref GatheringNode reference93 = ref span52[1]; + num2++; + ref GatheringNode reference93 = ref span4[num2]; GatheringNode obj59 = new GatheringNode { DataId = 31417u }; - num3 = 3; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span53 = CollectionsMarshal.AsSpan(list129); - span53[0] = new GatheringLocation + num4 = 3; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + span5 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-623.1743f, -101.8206f, 574.6146f) }; - span53[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-562.2545f, -95.6534f, 545.6004f) }; - span53[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-601.669f, -100.0121f, 559.5313f) }; @@ -3750,44 +4386,52 @@ public static class AssemblyGatheringLocationLoader reference93 = obj59; gatheringNodeGroup34.Nodes = list127; reference91 = gatheringNodeGroup34; - ref GatheringNodeGroup reference94 = ref span49[2]; + num++; + ref GatheringNodeGroup reference94 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span54 = CollectionsMarshal.AsSpan(list130); - ref GatheringNode reference95 = ref span54[0]; + span4 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + ref GatheringNode reference95 = ref span4[num3]; GatheringNode obj60 = new GatheringNode { DataId = 31415u }; - num3 = 3; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span55 = CollectionsMarshal.AsSpan(list131); - span55[0] = new GatheringLocation + index2 = 3; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span5 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-680.4672f, -103.4997f, 624.0101f) }; - span55[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-700.5361f, -107.5581f, 597.0253f) }; - span55[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-715.8123f, -105.2011f, 622.3116f) }; obj60.Locations = list131; reference95 = obj60; - ref GatheringNode reference96 = ref span54[1]; + num3++; + ref GatheringNode reference96 = ref span4[num3]; GatheringNode obj61 = new GatheringNode { DataId = 31414u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + num4 = 1; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + span5 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-714.2946f, -113.8825f, 557.3662f) }; @@ -3801,12 +4445,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "liza"; gatheringRoot13.Author = list133; - num = 1; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 400) + index = 1; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; @@ -3814,47 +4462,55 @@ public static class AssemblyGatheringLocationLoader num = 3; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span56 = CollectionsMarshal.AsSpan(list135); - ref GatheringNodeGroup reference97 = ref span56[0]; + span3 = CollectionsMarshal.AsSpan(list135); + index = 0; + ref GatheringNodeGroup reference97 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span57 = CollectionsMarshal.AsSpan(list136); - ref GatheringNode reference98 = ref span57[0]; + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + span4 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference98 = ref span4[num2]; GatheringNode obj62 = new GatheringNode { DataId = 31419u }; - num3 = 3; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span58 = CollectionsMarshal.AsSpan(list137); - span58[0] = new GatheringLocation + index2 = 3; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span5 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-204.7827f, -18.18443f, 272.0514f) }; - span58[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-187.8667f, -18.16559f, 260.4704f), MinimumAngle = -85, MaximumAngle = 105 }; - span58[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-219.7478f, -18.66556f, 279.3036f) }; obj62.Locations = list137; reference98 = obj62; - ref GatheringNode reference99 = ref span57[1]; + num2++; + ref GatheringNode reference99 = ref span4[num2]; GatheringNode obj63 = new GatheringNode { DataId = 31418u }; - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new GatheringLocation + num4 = 1; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + span5 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-216.0198f, -14.66686f, 263.2452f) }; @@ -3862,34 +4518,39 @@ public static class AssemblyGatheringLocationLoader reference99 = obj63; gatheringNodeGroup36.Nodes = list136; reference97 = gatheringNodeGroup36; - ref GatheringNodeGroup reference100 = ref span56[1]; + index++; + ref GatheringNodeGroup reference100 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span59 = CollectionsMarshal.AsSpan(list139); - ref GatheringNode reference101 = ref span59[0]; + span4 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + ref GatheringNode reference101 = ref span4[num3]; GatheringNode obj64 = new GatheringNode { DataId = 31423u }; - num3 = 3; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span60 = CollectionsMarshal.AsSpan(list140); - span60[0] = new GatheringLocation + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span5 = CollectionsMarshal.AsSpan(list140); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-125.676f, -13.40994f, 434.1913f), MinimumAngle = 25, MaximumAngle = 260 }; - span60[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-99.86462f, -11.67334f, 437.7415f), MinimumAngle = 85, MaximumAngle = 300 }; - span60[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-71.04668f, -8.40571f, 445.0867f), MinimumAngle = -40, @@ -3897,15 +4558,18 @@ public static class AssemblyGatheringLocationLoader }; obj64.Locations = list140; reference101 = obj64; - ref GatheringNode reference102 = ref span59[1]; + num3++; + ref GatheringNode reference102 = ref span4[num3]; GatheringNode obj65 = new GatheringNode { DataId = 31422u }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation + num4 = 1; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + span5 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-88.15926f, -8.882813f, 447.7102f), MinimumAngle = 155, @@ -3915,44 +4579,52 @@ public static class AssemblyGatheringLocationLoader reference102 = obj65; gatheringNodeGroup37.Nodes = list139; reference100 = gatheringNodeGroup37; - ref GatheringNodeGroup reference103 = ref span56[2]; + index++; + ref GatheringNodeGroup reference103 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span61 = CollectionsMarshal.AsSpan(list142); - ref GatheringNode reference104 = ref span61[0]; + num3 = 2; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span4 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref GatheringNode reference104 = ref span4[num2]; GatheringNode obj66 = new GatheringNode { DataId = 31420u }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new GatheringLocation + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span5 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(12.52414f, -14.81244f, 375.4579f) }; obj66.Locations = list143; reference104 = obj66; - ref GatheringNode reference105 = ref span61[1]; + num2++; + ref GatheringNode reference105 = ref span4[num2]; GatheringNode obj67 = new GatheringNode { DataId = 31421u }; - num3 = 3; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span62 = CollectionsMarshal.AsSpan(list144); - span62[0] = new GatheringLocation + num4 = 3; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + span5 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-11.31142f, -19.80939f, 383.9503f) }; - span62[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(4.771156f, -17.64155f, 386.0074f) }; - span62[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(9.879506f, -13.13191f, 358.7252f) }; @@ -3963,43 +4635,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list135; AddLocation(359, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + index = 1; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + span = CollectionsMarshal.AsSpan(list145); + num = 0; + span[num] = "liza"; gatheringRoot14.Author = list145; num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.None, null, null, 401) + span2 = CollectionsMarshal.AsSpan(list146); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; gatheringRoot14.Steps = list146; - num = 3; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span63 = CollectionsMarshal.AsSpan(list147); - ref GatheringNodeGroup reference106 = ref span63[0]; + index = 3; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span3 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref GatheringNodeGroup reference106 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref GatheringNode reference107 = ref span64[0]; + span4 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref GatheringNode reference107 = ref span4[num3]; GatheringNode obj68 = new GatheringNode { DataId = 31425u }; - num3 = 2; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span65 = CollectionsMarshal.AsSpan(list149); - span65[0] = new GatheringLocation + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span5 = CollectionsMarshal.AsSpan(list149); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-63.97195f, 13.48263f, -559.9897f) }; - span65[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-47.75371f, 13.66347f, -571.2774f), MinimumAngle = -80, @@ -4007,15 +4687,18 @@ public static class AssemblyGatheringLocationLoader }; obj68.Locations = list149; reference107 = obj68; - ref GatheringNode reference108 = ref span64[1]; + num3++; + ref GatheringNode reference108 = ref span4[num3]; GatheringNode obj69 = new GatheringNode { DataId = 31424u }; - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new GatheringLocation + num4 = 1; + List list150 = new List(num4); + CollectionsMarshal.SetCount(list150, num4); + span5 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-26.91866f, 12.14502f, -554.869f) }; @@ -4023,40 +4706,47 @@ public static class AssemblyGatheringLocationLoader reference108 = obj69; gatheringNodeGroup39.Nodes = list148; reference106 = gatheringNodeGroup39; - ref GatheringNodeGroup reference109 = ref span63[1]; + num++; + ref GatheringNodeGroup reference109 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span66 = CollectionsMarshal.AsSpan(list151); - ref GatheringNode reference110 = ref span66[0]; + num3 = 2; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span4 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref GatheringNode reference110 = ref span4[num2]; GatheringNode obj70 = new GatheringNode { DataId = 31426u }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new GatheringLocation + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span5 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-26.56338f, 12.41532f, -442.6965f) }; obj70.Locations = list152; reference110 = obj70; - ref GatheringNode reference111 = ref span66[1]; + num2++; + ref GatheringNode reference111 = ref span4[num2]; GatheringNode obj71 = new GatheringNode { DataId = 31427u }; - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span67 = CollectionsMarshal.AsSpan(list153); - span67[0] = new GatheringLocation + num4 = 2; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + span5 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(2.215849f, 12.32494f, -434.0038f) }; - span67[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-18.38633f, 12.4451f, -427.6107f) }; @@ -4064,42 +4754,49 @@ public static class AssemblyGatheringLocationLoader reference111 = obj71; gatheringNodeGroup40.Nodes = list151; reference109 = gatheringNodeGroup40; - ref GatheringNodeGroup reference112 = ref span63[2]; + num++; + ref GatheringNodeGroup reference112 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span68 = CollectionsMarshal.AsSpan(list154); - ref GatheringNode reference113 = ref span68[0]; + span4 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + ref GatheringNode reference113 = ref span4[num3]; GatheringNode obj72 = new GatheringNode { DataId = 31429u }; - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span69 = CollectionsMarshal.AsSpan(list155); - span69[0] = new GatheringLocation + index2 = 2; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span5 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(70.59737f, 13.45543f, -599.2373f), MinimumAngle = -60, MaximumAngle = 125 }; - span69[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(50.8525f, 13.158f, -646.834f) }; obj72.Locations = list155; reference113 = obj72; - ref GatheringNode reference114 = ref span68[1]; + num3++; + ref GatheringNode reference114 = ref span4[num3]; GatheringNode obj73 = new GatheringNode { DataId = 31428u }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation + num4 = 1; + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + span5 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(85.6145f, 12.69149f, -629.3397f) }; @@ -4113,12 +4810,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "liza"; gatheringRoot15.Author = list157; - num = 1; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list158)[0]; + index = 1; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestStep reference115 = ref span2[num]; QuestStep obj74 = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -4130,10 +4831,12 @@ public static class AssemblyGatheringLocationLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = 399; + num3 = 1; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + span6 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span6[num2] = 399; skipAetheryteCondition2.InTerritory = list159; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; obj74.SkipConditions = skipConditions7; @@ -4142,35 +4845,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span70 = CollectionsMarshal.AsSpan(list160); - ref GatheringNodeGroup reference116 = ref span70[0]; + span3 = CollectionsMarshal.AsSpan(list160); + index = 0; + ref GatheringNodeGroup reference116 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); num2 = 2; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span71 = CollectionsMarshal.AsSpan(list161); - ref GatheringNode reference117 = ref span71[0]; + span4 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + ref GatheringNode reference117 = ref span4[num3]; GatheringNode obj75 = new GatheringNode { DataId = 31431u }; - num3 = 3; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span72 = CollectionsMarshal.AsSpan(list162); - span72[0] = new GatheringLocation + index2 = 3; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span5 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-494.1652f, 142.7381f, -287.4084f), MinimumAngle = 0, MaximumAngle = 270 }; - span72[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-485.4606f, 142.9737f, -290.856f), MinimumAngle = 65, MaximumAngle = 310 }; - span72[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-533.1213f, 142.5874f, -262.2948f), MinimumAngle = -255, @@ -4178,15 +4886,18 @@ public static class AssemblyGatheringLocationLoader }; obj75.Locations = list162; reference117 = obj75; - ref GatheringNode reference118 = ref span71[1]; + num3++; + ref GatheringNode reference118 = ref span4[num3]; GatheringNode obj76 = new GatheringNode { DataId = 31430u }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new GatheringLocation + num4 = 1; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + span5 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-510.6404f, 141.9014f, -280.1611f) }; @@ -4194,44 +4905,52 @@ public static class AssemblyGatheringLocationLoader reference118 = obj76; gatheringNodeGroup42.Nodes = list161; reference116 = gatheringNodeGroup42; - ref GatheringNodeGroup reference119 = ref span70[1]; + index++; + ref GatheringNodeGroup reference119 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span73 = CollectionsMarshal.AsSpan(list164); - ref GatheringNode reference120 = ref span73[0]; + num3 = 2; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + span4 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + ref GatheringNode reference120 = ref span4[num2]; GatheringNode obj77 = new GatheringNode { DataId = 31434u }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = new GatheringLocation + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span5 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-562.8221f, 148.9451f, -104.9014f) }; obj77.Locations = list165; reference120 = obj77; - ref GatheringNode reference121 = ref span73[1]; + num2++; + ref GatheringNode reference121 = ref span4[num2]; GatheringNode obj78 = new GatheringNode { DataId = 31435u }; - num3 = 3; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span74 = CollectionsMarshal.AsSpan(list166); - span74[0] = new GatheringLocation + num4 = 3; + List list166 = new List(num4); + CollectionsMarshal.SetCount(list166, num4); + span5 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-520.0394f, 148.7521f, -97.8f) }; - span74[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-570.4307f, 148.103f, -130.9921f) }; - span74[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-573.738f, 148.4877f, -158.4798f), MinimumAngle = 130, @@ -4241,46 +4960,54 @@ public static class AssemblyGatheringLocationLoader reference121 = obj78; gatheringNodeGroup43.Nodes = list164; reference119 = gatheringNodeGroup43; - ref GatheringNodeGroup reference122 = ref span70[2]; + index++; + ref GatheringNodeGroup reference122 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span75 = CollectionsMarshal.AsSpan(list167); - ref GatheringNode reference123 = ref span75[0]; + span4 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + ref GatheringNode reference123 = ref span4[num3]; GatheringNode obj79 = new GatheringNode { DataId = 31432u }; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheringLocation + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span5 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-388.4753f, 147.345f, -177.1972f) }; obj79.Locations = list168; reference123 = obj79; - ref GatheringNode reference124 = ref span75[1]; + num3++; + ref GatheringNode reference124 = ref span4[num3]; GatheringNode obj80 = new GatheringNode { DataId = 31433u }; - num3 = 3; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span76 = CollectionsMarshal.AsSpan(list169); - span76[0] = new GatheringLocation + num4 = 3; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + span5 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-349.5501f, 144.6325f, -185.3442f) }; - span76[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-398.145f, 145.7528f, -198.2334f), MinimumAngle = 155, MaximumAngle = 360 }; - span76[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-374.5566f, 145.3827f, -194.8224f) }; @@ -4291,50 +5018,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list160; AddLocation(361, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + index = 1; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span = CollectionsMarshal.AsSpan(list170); + num = 0; + span[num] = "liza"; gatheringRoot16.Author = list170; num = 2; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span77 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference125 = ref span77[0]; + span2 = CollectionsMarshal.AsSpan(list171); + index = 0; + ref QuestStep reference125 = ref span2[index]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = 1073; + num3 = 1; + List list172 = new List(num3); + CollectionsMarshal.SetCount(list172, num3); + span6 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span6[num2] = 1073; skipStepConditions6.InTerritory = list172; skipConditions8.StepIf = skipStepConditions6; obj81.SkipConditions = skipConditions8; reference125 = obj81; - span77[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot16.Steps = list171; - num = 3; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span78 = CollectionsMarshal.AsSpan(list173); - ref GatheringNodeGroup reference126 = ref span78[0]; + index = 3; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span3 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref GatheringNodeGroup reference126 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - ref GatheringNode reference127 = ref CollectionsMarshal.AsSpan(list174)[0]; + span4 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + ref GatheringNode reference127 = ref span4[num3]; GatheringNode obj82 = new GatheringNode { DataId = 33851u }; - num3 = 1; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = new GatheringLocation + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span5 = CollectionsMarshal.AsSpan(list175); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-10.66682f, 499.3763f, 34.01145f) }; @@ -4342,20 +5080,25 @@ public static class AssemblyGatheringLocationLoader reference127 = obj82; gatheringNodeGroup45.Nodes = list174; reference126 = gatheringNodeGroup45; - ref GatheringNodeGroup reference128 = ref span78[1]; + num++; + ref GatheringNodeGroup reference128 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - ref GatheringNode reference129 = ref CollectionsMarshal.AsSpan(list176)[0]; + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + span4 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + ref GatheringNode reference129 = ref span4[num2]; GatheringNode obj83 = new GatheringNode { DataId = 32269u }; - num3 = 1; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new GatheringLocation + num4 = 1; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + span5 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-16.14751f, 499.7353f, 22.38433f) }; @@ -4363,20 +5106,25 @@ public static class AssemblyGatheringLocationLoader reference129 = obj83; gatheringNodeGroup46.Nodes = list176; reference128 = gatheringNodeGroup46; - ref GatheringNodeGroup reference130 = ref span78[2]; + num++; + ref GatheringNodeGroup reference130 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref GatheringNode reference131 = ref CollectionsMarshal.AsSpan(list178)[0]; + span4 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + ref GatheringNode reference131 = ref span4[num3]; GatheringNode obj84 = new GatheringNode { DataId = 32766u }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new GatheringLocation + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span5 = CollectionsMarshal.AsSpan(list179); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-28.72828f, 499.5391f, 33.41306f), MinimumAngle = 125, @@ -4392,47 +5140,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "liza"; gatheringRoot17.Author = list180; - num = 2; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span79 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference132 = ref span79[0]; + index = 2; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestStep reference132 = ref span2[num]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = 1073; + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + span6 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span6[num2] = 1073; skipStepConditions7.InTerritory = list182; skipConditions9.StepIf = skipStepConditions7; obj85.SkipConditions = skipConditions9; reference132 = obj85; - span79[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot17.Steps = list181; num = 3; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span80 = CollectionsMarshal.AsSpan(list183); - ref GatheringNodeGroup reference133 = ref span80[0]; + span3 = CollectionsMarshal.AsSpan(list183); + index = 0; + ref GatheringNodeGroup reference133 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref GatheringNode reference134 = ref CollectionsMarshal.AsSpan(list184)[0]; + span4 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + ref GatheringNode reference134 = ref span4[num3]; GatheringNode obj86 = new GatheringNode { DataId = 34347u }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span5 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-13.64273f, 493.9979f, -58.21632f), MinimumAngle = -5, @@ -4442,20 +5201,25 @@ public static class AssemblyGatheringLocationLoader reference134 = obj86; gatheringNodeGroup48.Nodes = list184; reference133 = gatheringNodeGroup48; - ref GatheringNodeGroup reference135 = ref span80[1]; + index++; + ref GatheringNodeGroup reference135 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - ref GatheringNode reference136 = ref CollectionsMarshal.AsSpan(list186)[0]; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + span4 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref GatheringNode reference136 = ref span4[num2]; GatheringNode obj87 = new GatheringNode { DataId = 34348u }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new GatheringLocation + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span5 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-22.23647f, 494.0945f, -59.94842f), MinimumAngle = 125, @@ -4465,20 +5229,25 @@ public static class AssemblyGatheringLocationLoader reference136 = obj87; gatheringNodeGroup49.Nodes = list186; reference135 = gatheringNodeGroup49; - ref GatheringNodeGroup reference137 = ref span80[2]; + index++; + ref GatheringNodeGroup reference137 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - ref GatheringNode reference138 = ref CollectionsMarshal.AsSpan(list188)[0]; + span4 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + ref GatheringNode reference138 = ref span4[num3]; GatheringNode obj88 = new GatheringNode { DataId = 34334u }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation + num4 = 1; + List list189 = new List(num4); + CollectionsMarshal.SetCount(list189, num4); + span5 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-20.58942f, 494.25f, -77.68658f), MinimumAngle = -45, @@ -4491,50 +5260,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list183; AddLocation(394, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + index = 1; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + span = CollectionsMarshal.AsSpan(list190); + num = 0; + span[num] = "liza"; gatheringRoot18.Author = list190; num = 2; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span81 = CollectionsMarshal.AsSpan(list191); - ref QuestStep reference139 = ref span81[0]; + span2 = CollectionsMarshal.AsSpan(list191); + index = 0; + ref QuestStep reference139 = ref span2[index]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = 1073; + num3 = 1; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + span6 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span6[num2] = 1073; skipStepConditions8.InTerritory = list192; skipConditions10.StepIf = skipStepConditions8; obj89.SkipConditions = skipConditions10; reference139 = obj89; - span81[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot18.Steps = list191; - num = 3; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span82 = CollectionsMarshal.AsSpan(list193); - ref GatheringNodeGroup reference140 = ref span82[0]; + index = 3; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span3 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref GatheringNodeGroup reference140 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - ref GatheringNode reference141 = ref CollectionsMarshal.AsSpan(list194)[0]; + span4 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + ref GatheringNode reference141 = ref span4[num3]; GatheringNode obj90 = new GatheringNode { DataId = 34350u }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheringLocation + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span5 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(18.9518f, 485.9131f, -133.3762f) }; @@ -4542,20 +5322,25 @@ public static class AssemblyGatheringLocationLoader reference141 = obj90; gatheringNodeGroup51.Nodes = list194; reference140 = gatheringNodeGroup51; - ref GatheringNodeGroup reference142 = ref span82[1]; + num++; + ref GatheringNodeGroup reference142 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - ref GatheringNode reference143 = ref CollectionsMarshal.AsSpan(list196)[0]; + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + span4 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + ref GatheringNode reference143 = ref span4[num2]; GatheringNode obj91 = new GatheringNode { DataId = 34351u }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + span5 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(15.71416f, 486.0302f, -136.2497f) }; @@ -4563,20 +5348,25 @@ public static class AssemblyGatheringLocationLoader reference143 = obj91; gatheringNodeGroup52.Nodes = list196; reference142 = gatheringNodeGroup52; - ref GatheringNodeGroup reference144 = ref span82[2]; + num++; + ref GatheringNodeGroup reference144 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list198)[0]; + span4 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + ref GatheringNode reference145 = ref span4[num3]; GatheringNode obj92 = new GatheringNode { DataId = 34349u }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new GatheringLocation + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span5 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(9.524881f, 486.2234f, -142.2316f) }; @@ -4590,47 +5380,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; gatheringRoot19.Author = list200; - num = 2; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span83 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference146 = ref span83[0]; + index = 2; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestStep reference146 = ref span2[num]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = 1073; + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + span6 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span6[num2] = 1073; skipStepConditions9.InTerritory = list202; skipConditions11.StepIf = skipStepConditions9; obj93.SkipConditions = skipConditions11; reference146 = obj93; - span83[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot19.Steps = list201; num = 3; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span84 = CollectionsMarshal.AsSpan(list203); - ref GatheringNodeGroup reference147 = ref span84[0]; + span3 = CollectionsMarshal.AsSpan(list203); + index = 0; + ref GatheringNodeGroup reference147 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref GatheringNode reference148 = ref CollectionsMarshal.AsSpan(list204)[0]; + span4 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + ref GatheringNode reference148 = ref span4[num3]; GatheringNode obj94 = new GatheringNode { DataId = 34353u }; - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new GatheringLocation + num4 = 1; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + span5 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-59.17508f, 494.132f, -1.865536f), MinimumAngle = -35, @@ -4640,20 +5441,25 @@ public static class AssemblyGatheringLocationLoader reference148 = obj94; gatheringNodeGroup54.Nodes = list204; reference147 = gatheringNodeGroup54; - ref GatheringNodeGroup reference149 = ref span84[1]; + index++; + ref GatheringNodeGroup reference149 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref GatheringNode reference150 = ref CollectionsMarshal.AsSpan(list206)[0]; + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + span4 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref GatheringNode reference150 = ref span4[num2]; GatheringNode obj95 = new GatheringNode { DataId = 34352u }; - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = new GatheringLocation + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span5 = CollectionsMarshal.AsSpan(list207); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-61.05396f, 495.2124f, -22.16576f), MinimumAngle = -30, @@ -4663,20 +5469,25 @@ public static class AssemblyGatheringLocationLoader reference150 = obj95; gatheringNodeGroup55.Nodes = list206; reference149 = gatheringNodeGroup55; - ref GatheringNodeGroup reference151 = ref span84[2]; + index++; + ref GatheringNodeGroup reference151 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - ref GatheringNode reference152 = ref CollectionsMarshal.AsSpan(list208)[0]; + span4 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + ref GatheringNode reference152 = ref span4[num3]; GatheringNode obj96 = new GatheringNode { DataId = 34354u }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + span5 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-90.96052f, 493.2197f, -20.74431f), MinimumAngle = -70, @@ -4689,50 +5500,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list203; AddLocation(398, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + index = 1; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + span = CollectionsMarshal.AsSpan(list210); + num = 0; + span[num] = "liza"; gatheringRoot20.Author = list210; num = 2; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span85 = CollectionsMarshal.AsSpan(list211); - ref QuestStep reference153 = ref span85[0]; + span2 = CollectionsMarshal.AsSpan(list211); + index = 0; + ref QuestStep reference153 = ref span2[index]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = 1073; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + span6 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span6[num2] = 1073; skipStepConditions10.InTerritory = list212; skipConditions12.StepIf = skipStepConditions10; obj97.SkipConditions = skipConditions12; reference153 = obj97; - span85[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot20.Steps = list211; - num = 3; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span86 = CollectionsMarshal.AsSpan(list213); - ref GatheringNodeGroup reference154 = ref span86[0]; + index = 3; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + span3 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref GatheringNodeGroup reference154 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + ref GatheringNode reference155 = ref span4[num3]; GatheringNode obj98 = new GatheringNode { DataId = 34357u }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span5 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-91.21072f, 490.3782f, 41.27306f), MinimumAngle = 140, @@ -4742,20 +5564,25 @@ public static class AssemblyGatheringLocationLoader reference155 = obj98; gatheringNodeGroup57.Nodes = list214; reference154 = gatheringNodeGroup57; - ref GatheringNodeGroup reference156 = ref span86[1]; + num++; + ref GatheringNodeGroup reference156 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list216)[0]; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + span4 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + ref GatheringNode reference157 = ref span4[num2]; GatheringNode obj99 = new GatheringNode { DataId = 34355u }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new GatheringLocation + num4 = 1; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + span5 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-118.7086f, 490.4538f, 34.37638f), MinimumAngle = 40, @@ -4765,20 +5592,25 @@ public static class AssemblyGatheringLocationLoader reference157 = obj99; gatheringNodeGroup58.Nodes = list216; reference156 = gatheringNodeGroup58; - ref GatheringNodeGroup reference158 = ref span86[2]; + num++; + ref GatheringNodeGroup reference158 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; + span4 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + ref GatheringNode reference159 = ref span4[num3]; GatheringNode obj100 = new GatheringNode { DataId = 34356u }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new GatheringLocation + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span5 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-105.7026f, 490.5684f, 58.49864f), MinimumAngle = 0, @@ -4798,12 +5630,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 612) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -4811,22 +5647,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 32125u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-317.5445f, 80.03535f, -449.2276f), MinimumAngle = -80, @@ -4834,28 +5674,32 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 32126u }; - num3 = 3; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new GatheringLocation + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-301.3254f, 69.71587f, -485.7171f), MinimumAngle = -125, MaximumAngle = 30 }; - span3[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-311.9155f, 76.91404f, -467.1509f), MinimumAngle = 160, MaximumAngle = 290 }; - span3[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-311.1216f, 77.83449f, -454.2029f), MinimumAngle = -110, @@ -4865,34 +5709,39 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 32124u }; - num3 = 3; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new GatheringLocation + num4 = 3; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-262.2596f, 62.06842f, -550.8122f), MinimumAngle = 185, MaximumAngle = 335 }; - span5[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-266.0078f, 62.03654f, -564.1611f), MinimumAngle = 180, MaximumAngle = 340 }; - span5[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-255.8366f, 62.63577f, -588.0093f), MinimumAngle = 245, @@ -4900,15 +5749,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 32123u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-264.8189f, 62.61843f, -558.4091f), MinimumAngle = 175, @@ -4918,35 +5770,42 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 32127u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-108.2628f, 64.1357f, -485.6675f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 32128u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-103.2401f, 59.26093f, -463.1485f) }; @@ -4957,51 +5816,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(485, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 612) + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span7[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span3 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span8[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span4 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span4[num2]; GatheringNode obj7 = new GatheringNode { DataId = 32132u }; - num3 = 3; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new GatheringLocation + num4 = 3; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(101.0199f, 50.70325f, -410.8297f), MinimumAngle = -55, MaximumAngle = 25 }; - span9[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(78.0303f, 48.68632f, -401.5028f), MinimumAngle = -50, MaximumAngle = 5 }; - span9[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(115.4548f, 51.50989f, -415.8416f), MinimumAngle = -115, @@ -5009,15 +5877,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span8[1]; + num2++; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 32131u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span5 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(90.52106f, 49.82163f, -409.1239f), MinimumAngle = -35, @@ -5027,34 +5898,39 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span7[1]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span10[0]; + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span4[num3]; GatheringNode obj9 = new GatheringNode { DataId = 32134u }; - num3 = 3; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = new GatheringLocation + num4 = 3; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span5 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(84.90259f, 44.58842f, -324.1541f), MinimumAngle = -10, MaximumAngle = 105 }; - span11[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(82.56047f, 44.08657f, -269.3104f), MinimumAngle = -5, MaximumAngle = 80 }; - span11[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(98.20293f, 43.59855f, -299.3164f), MinimumAngle = 95, @@ -5062,15 +5938,18 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span10[1]; + num3++; + ref GatheringNode reference15 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 32133u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span5 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(82.94646f, 42.55737f, -292.9016f), MinimumAngle = 105, @@ -5080,21 +5959,25 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span7[2]; + num++; + ref GatheringNodeGroup reference16 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span12[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span4 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span4[num2]; GatheringNode obj11 = new GatheringNode { DataId = 32129u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span5 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(240.5221f, 43.60987f, -301.7685f), MinimumAngle = 155, @@ -5102,28 +5985,32 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span12[1]; + num2++; + ref GatheringNode reference18 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 32130u }; - num3 = 3; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new GatheringLocation + index2 = 3; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span5 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(265.4354f, 43.19557f, -283.7873f), MinimumAngle = -155, MaximumAngle = -15 }; - span13[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(246.9251f, 43.54385f, -296.2532f), MinimumAngle = 170, MaximumAngle = 225 }; - span13[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(213.1443f, 43.26488f, -308.4924f), MinimumAngle = 110, @@ -5139,12 +6026,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -5157,35 +6048,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span14[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span15 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span15[0]; + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span4[num3]; GatheringNode obj13 = new GatheringNode { DataId = 32140u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span5 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(210.5032f, 28.51213f, 718.0732f), MinimumAngle = 210, MaximumAngle = 325 }; - span16[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(202.0474f, 30.18633f, 700.0951f), MinimumAngle = 160, MaximumAngle = 295 }; - span16[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(195.6331f, 33.43727f, 695.2228f), MinimumAngle = 150, @@ -5193,15 +6089,18 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span15[1]; + num3++; + ref GatheringNode reference21 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 32139u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(208.3533f, 28.65312f, 706.8864f), MinimumAngle = 180, @@ -5211,21 +6110,25 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span14[1]; + index++; + ref GatheringNodeGroup reference22 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span17 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span17[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span4[num2]; GatheringNode obj15 = new GatheringNode { DataId = 32135u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span5 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(67.65472f, 25.89518f, 652.348f), MinimumAngle = -105, @@ -5233,28 +6136,32 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span17[1]; + num2++; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 32136u }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span18 = CollectionsMarshal.AsSpan(list33); - span18[0] = new GatheringLocation + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span5 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(41.55281f, 27.65364f, 654.9735f), MinimumAngle = -115, MaximumAngle = 35 }; - span18[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(52.98101f, 27.03981f, 652.5334f), MinimumAngle = -45, MaximumAngle = 55 }; - span18[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(71.80375f, 26.55341f, 644.8627f), MinimumAngle = 205, @@ -5264,21 +6171,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span14[2]; + index++; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span19 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span19[0]; + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span4[num3]; GatheringNode obj17 = new GatheringNode { DataId = 32137u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(136.1673f, 35.7457f, 802.5483f), MinimumAngle = 175, @@ -5286,28 +6197,32 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span19[1]; + num3++; + ref GatheringNode reference27 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 32138u }; - num3 = 3; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = new GatheringLocation + index2 = 3; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span5 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(120.3011f, 33.62519f, 797.1313f), MinimumAngle = 100, MaximumAngle = 215 }; - span20[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(137.5746f, 35.89635f, 805.4796f), MinimumAngle = 195, MaximumAngle = 325 }; - span20[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(136.7552f, 38.41375f, 817.2667f), MinimumAngle = 215, @@ -5320,51 +6235,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(487, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span = CollectionsMarshal.AsSpan(list37); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 614) + span2 = CollectionsMarshal.AsSpan(list38); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span21 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span21[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span3 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span22 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span22[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + span4 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span4[num2]; GatheringNode obj19 = new GatheringNode { DataId = 32144u }; - num3 = 3; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span23 = CollectionsMarshal.AsSpan(list41); - span23[0] = new GatheringLocation + num4 = 3; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + span5 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(407.4102f, 68.66914f, 19.0117f), MinimumAngle = 105, MaximumAngle = 255 }; - span23[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(376.4243f, 61.81466f, 5.657309f), MinimumAngle = 170, MaximumAngle = 275 }; - span23[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(441.2355f, 75.06916f, 17.49573f), MinimumAngle = 110, @@ -5372,15 +6296,18 @@ public static class AssemblyGatheringLocationLoader }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span22[1]; + num2++; + ref GatheringNode reference30 = ref span4[num2]; GatheringNode obj20 = new GatheringNode { DataId = 32143u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span5 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(417.9466f, 70.24178f, 19.50875f), MinimumAngle = 140, @@ -5392,32 +6319,37 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span21[1]; + num++; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span24 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span24[0]; + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span4[num3]; GatheringNode obj21 = new GatheringNode { DataId = 32142u }; - num3 = 3; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new GatheringLocation + num4 = 3; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(606.259f, 93.63981f, 85.09741f), MinimumAngle = 65, MaximumAngle = 185 }; - span25[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(594.0188f, 87.54358f, 51.05505f) }; - span25[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(576.0488f, 91.74075f, 114.4922f), MinimumAngle = 75, @@ -5425,15 +6357,18 @@ public static class AssemblyGatheringLocationLoader }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span24[1]; + num3++; + ref GatheringNode reference33 = ref span4[num3]; GatheringNode obj22 = new GatheringNode { DataId = 32141u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span5 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(608.4475f, 94.5528f, 80.633f), MinimumAngle = 45, @@ -5443,34 +6378,39 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span21[2]; + num++; + ref GatheringNodeGroup reference34 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span26 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span26[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + span4 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span4[num2]; GatheringNode obj23 = new GatheringNode { DataId = 32146u }; - num3 = 3; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span27 = CollectionsMarshal.AsSpan(list47); - span27[0] = new GatheringLocation + num4 = 3; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + span5 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(519.749f, 46.5653f, -59.9632f), MinimumAngle = 25, MaximumAngle = 125 }; - span27[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(532.2807f, 41.75984f, -85.99076f), MinimumAngle = 55, MaximumAngle = 190 }; - span27[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(519.0377f, 44.42293f, -67.19048f), MinimumAngle = 30, @@ -5478,15 +6418,18 @@ public static class AssemblyGatheringLocationLoader }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span26[1]; + num2++; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj24 = new GatheringNode { DataId = 32145u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span5 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(520.0951f, 43.35083f, -70.45672f), MinimumAngle = 40, @@ -5502,12 +6445,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list49; - num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -5515,22 +6462,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span28[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span29 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span29[0]; + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span4[num3]; GatheringNode obj25 = new GatheringNode { DataId = 32147u }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span5 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(112.743f, 115.1324f, -511.142f), MinimumAngle = -165, @@ -5538,28 +6489,32 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span29[1]; + num3++; + ref GatheringNode reference39 = ref span4[num3]; GatheringNode obj26 = new GatheringNode { DataId = 32148u }; - num3 = 3; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span30 = CollectionsMarshal.AsSpan(list54); - span30[0] = new GatheringLocation + index2 = 3; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(101.6789f, 114.9711f, -506.4506f), MinimumAngle = 20, MaximumAngle = 225 }; - span30[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(122.53f, 116.4095f, -533.6536f), MinimumAngle = -80, MaximumAngle = 75 }; - span30[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(108.0162f, 115.2875f, -509.5858f), MinimumAngle = -20, @@ -5569,34 +6524,39 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span28[1]; + index++; + ref GatheringNodeGroup reference40 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span31 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span31[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span4 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span4[num2]; GatheringNode obj27 = new GatheringNode { DataId = 32152u }; - num3 = 3; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span32 = CollectionsMarshal.AsSpan(list56); - span32[0] = new GatheringLocation + num4 = 3; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span5 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-6.542124f, 113.9997f, -406.9197f), MinimumAngle = 80, MaximumAngle = 150 }; - span32[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-4.06374f, 113.4698f, -413.3034f), MinimumAngle = 80, MaximumAngle = 200 }; - span32[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-13.96204f, 113.9696f, -383.4135f), MinimumAngle = 45, @@ -5604,15 +6564,18 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span31[1]; + num2++; + ref GatheringNode reference42 = ref span4[num2]; GatheringNode obj28 = new GatheringNode { DataId = 32151u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span5 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-11.21539f, 114.1222f, -392.7825f), MinimumAngle = 70, @@ -5622,21 +6585,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span28[2]; + index++; + ref GatheringNodeGroup reference43 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span33 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span33[0]; + span4 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span4[num3]; GatheringNode obj29 = new GatheringNode { DataId = 32149u }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + span5 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(167.207f, 137.3464f, -336.0433f), MinimumAngle = 85, @@ -5644,28 +6611,32 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span33[1]; + num3++; + ref GatheringNode reference45 = ref span4[num3]; GatheringNode obj30 = new GatheringNode { DataId = 32150u }; - num3 = 3; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span34 = CollectionsMarshal.AsSpan(list60); - span34[0] = new GatheringLocation + index2 = 3; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span5 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(176.9339f, 138.3656f, -335.729f), MinimumAngle = 115, MaximumAngle = 220 }; - span34[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(182.5719f, 138.795f, -333.3691f), MinimumAngle = 195, MaximumAngle = 290 }; - span34[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(198.0379f, 136.6125f, -337.0126f), MinimumAngle = 60, @@ -5678,64 +6649,76 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(489, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span = CollectionsMarshal.AsSpan(list61); + num = 0; + span[num] = "liza"; gatheringRoot6.Author = list61; num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span35 = CollectionsMarshal.AsSpan(list62); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span2 = CollectionsMarshal.AsSpan(list62); + index = 0; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span35[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span36 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span36[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span3 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span37 = CollectionsMarshal.AsSpan(list64); - ref GatheringNode reference47 = ref span37[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span4 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span4[num2]; GatheringNode obj31 = new GatheringNode { DataId = 32153u }; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span5 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-373.2205f, -136.6522f, -274.8914f) }; obj31.Locations = list65; reference47 = obj31; - ref GatheringNode reference48 = ref span37[1]; + num2++; + ref GatheringNode reference48 = ref span4[num2]; GatheringNode obj32 = new GatheringNode { DataId = 32154u }; - num3 = 3; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span38 = CollectionsMarshal.AsSpan(list66); - span38[0] = new GatheringLocation + index2 = 3; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span5 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-448.4877f, -116.7225f, -302.5894f) }; - span38[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-367.8707f, -141.2844f, -234.9824f) }; - span38[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-410.8549f, -118.3526f, -327.6413f) }; @@ -5743,44 +6726,52 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference49 = ref span36[1]; + num++; + ref GatheringNodeGroup reference49 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span39 = CollectionsMarshal.AsSpan(list67); - ref GatheringNode reference50 = ref span39[0]; + span4 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + ref GatheringNode reference50 = ref span4[num3]; GatheringNode obj33 = new GatheringNode { DataId = 32158u }; - num3 = 3; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span40 = CollectionsMarshal.AsSpan(list68); - span40[0] = new GatheringLocation + num4 = 3; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span5 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-541.3218f, -110.9725f, -162.0661f) }; - span40[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-541.0571f, -101.0088f, -238.4313f) }; - span40[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-557.3869f, -91.38704f, -232.6365f) }; obj33.Locations = list68; reference50 = obj33; - ref GatheringNode reference51 = ref span39[1]; + num3++; + ref GatheringNode reference51 = ref span4[num3]; GatheringNode obj34 = new GatheringNode { DataId = 32157u }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span5 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-527.4707f, -125.4386f, -165.366f) }; @@ -5788,44 +6779,52 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - ref GatheringNodeGroup reference52 = ref span36[2]; + num++; + ref GatheringNodeGroup reference52 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span41 = CollectionsMarshal.AsSpan(list70); - ref GatheringNode reference53 = ref span41[0]; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + span4 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference53 = ref span4[num2]; GatheringNode obj35 = new GatheringNode { DataId = 32155u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span5 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-460.3799f, -154.5827f, -110.9484f) }; obj35.Locations = list71; reference53 = obj35; - ref GatheringNode reference54 = ref span41[1]; + num2++; + ref GatheringNode reference54 = ref span4[num2]; GatheringNode obj36 = new GatheringNode { DataId = 32156u }; - num3 = 3; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span42 = CollectionsMarshal.AsSpan(list72); - span42[0] = new GatheringLocation + index2 = 3; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span5 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-399.089f, -145.1425f, -6.001478f) }; - span42[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-474.2804f, -142.6447f, -92.2213f) }; - span42[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-474.9154f, -132.8651f, -73.47042f) }; @@ -5839,12 +6838,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; gatheringRoot7.Author = list73; - num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 614) + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -5852,35 +6855,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span43 = CollectionsMarshal.AsSpan(list75); - ref GatheringNodeGroup reference55 = ref span43[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index = 0; + ref GatheringNodeGroup reference55 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span44 = CollectionsMarshal.AsSpan(list76); - ref GatheringNode reference56 = ref span44[0]; + span4 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref GatheringNode reference56 = ref span4[num3]; GatheringNode obj37 = new GatheringNode { DataId = 32160u }; - num3 = 3; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span45 = CollectionsMarshal.AsSpan(list77); - span45[0] = new GatheringLocation + num4 = 3; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + span5 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(708.6117f, 111.2374f, -117.7716f), MinimumAngle = -65, MaximumAngle = 45 }; - span45[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(719.1514f, 103.8884f, -115.8518f), MinimumAngle = 170, MaximumAngle = 240 }; - span45[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(719.6881f, 103.6927f, -122.8691f), MinimumAngle = -85, @@ -5888,15 +6896,18 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list77; reference56 = obj37; - ref GatheringNode reference57 = ref span44[1]; + num3++; + ref GatheringNode reference57 = ref span4[num3]; GatheringNode obj38 = new GatheringNode { DataId = 32159u }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span5 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(728.5063f, 104.6812f, -115.4031f), MinimumAngle = 160, @@ -5906,34 +6917,39 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - ref GatheringNodeGroup reference58 = ref span43[1]; + index++; + ref GatheringNodeGroup reference58 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span46 = CollectionsMarshal.AsSpan(list79); - ref GatheringNode reference59 = ref span46[0]; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span4 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref GatheringNode reference59 = ref span4[num2]; GatheringNode obj39 = new GatheringNode { DataId = 32162u }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span47 = CollectionsMarshal.AsSpan(list80); - span47[0] = new GatheringLocation + num4 = 3; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span5 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(786.5566f, 127.8859f, 12.83276f), MinimumAngle = 200, MaximumAngle = 280 }; - span47[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(843.5591f, 136.583f, 25.3552f), MinimumAngle = 150, MaximumAngle = 205 }; - span47[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(822.8708f, 132.8188f, 15.71949f), MinimumAngle = 120, @@ -5941,15 +6957,18 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list80; reference59 = obj39; - ref GatheringNode reference60 = ref span46[1]; + num2++; + ref GatheringNode reference60 = ref span4[num2]; GatheringNode obj40 = new GatheringNode { DataId = 32161u }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span5 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(814.1754f, 132.0118f, 22.69431f), MinimumAngle = 70, @@ -5959,21 +6978,25 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - ref GatheringNodeGroup reference61 = ref span43[2]; + index++; + ref GatheringNodeGroup reference61 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span48 = CollectionsMarshal.AsSpan(list82); - ref GatheringNode reference62 = ref span48[0]; + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + ref GatheringNode reference62 = ref span4[num3]; GatheringNode obj41 = new GatheringNode { DataId = 32163u }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span5 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(893.1265f, 141.6431f, -143.2574f), MinimumAngle = 25, @@ -5981,28 +7004,32 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - ref GatheringNode reference63 = ref span48[1]; + num3++; + ref GatheringNode reference63 = ref span4[num3]; GatheringNode obj42 = new GatheringNode { DataId = 32164u }; - num3 = 3; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span49 = CollectionsMarshal.AsSpan(list84); - span49[0] = new GatheringLocation + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span5 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(885.5841f, 139.7701f, -160.253f), MinimumAngle = 35, MaximumAngle = 110 }; - span49[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(894.9779f, 147.4415f, -128.2257f), MinimumAngle = 20, MaximumAngle = 190 }; - span49[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(893.0733f, 142.1001f, -140.2642f), MinimumAngle = 30, @@ -6015,51 +7042,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(491, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span = CollectionsMarshal.AsSpan(list85); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 621) + span2 = CollectionsMarshal.AsSpan(list86); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; gatheringRoot8.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span50 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference64 = ref span50[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span3 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference64 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span51 = CollectionsMarshal.AsSpan(list88); - ref GatheringNode reference65 = ref span51[0]; + num3 = 2; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span4 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference65 = ref span4[num2]; GatheringNode obj43 = new GatheringNode { DataId = 32167u }; - num3 = 3; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span52 = CollectionsMarshal.AsSpan(list89); - span52[0] = new GatheringLocation + num4 = 3; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span5 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-569.6677f, 17.29578f, -148.952f), MinimumAngle = 175, MaximumAngle = 300 }; - span52[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-575.41f, 18.57019f, -160.1905f), MinimumAngle = -90, MaximumAngle = 15 }; - span52[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-569.3643f, 15.97435f, -170.2152f), MinimumAngle = 225, @@ -6067,15 +7103,18 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - ref GatheringNode reference66 = ref span51[1]; + num2++; + ref GatheringNode reference66 = ref span4[num2]; GatheringNode obj44 = new GatheringNode { DataId = 32166u }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new GatheringLocation + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span5 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-578.1491f, 20.07928f, -153.1853f), MinimumAngle = 205, @@ -6085,21 +7124,25 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - ref GatheringNodeGroup reference67 = ref span50[1]; + num++; + ref GatheringNodeGroup reference67 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span53 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference68 = ref span53[0]; + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference68 = ref span4[num3]; GatheringNode obj45 = new GatheringNode { DataId = 32170u }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation + num4 = 1; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + span5 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-542.444f, 15.60992f, -299.645f), MinimumAngle = 245, @@ -6107,28 +7150,32 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - ref GatheringNode reference69 = ref span53[1]; + num3++; + ref GatheringNode reference69 = ref span4[num3]; GatheringNode obj46 = new GatheringNode { DataId = 32171u }; - num3 = 3; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span54 = CollectionsMarshal.AsSpan(list93); - span54[0] = new GatheringLocation + index2 = 3; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span5 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-540.2715f, 16.96567f, -304.0383f), MinimumAngle = 220, MaximumAngle = 350 }; - span54[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-516.496f, 21.84032f, -346.177f), MinimumAngle = -55, MaximumAngle = 75 }; - span54[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-507.6519f, 9.185992f, -287.0281f), MinimumAngle = 30, @@ -6138,21 +7185,25 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - ref GatheringNodeGroup reference70 = ref span50[2]; + num++; + ref GatheringNodeGroup reference70 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span55 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference71 = ref span55[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + span4 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference71 = ref span4[num2]; GatheringNode obj47 = new GatheringNode { DataId = 32168u }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new GatheringLocation + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span5 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-404.0753f, 14.02301f, -270.8308f), MinimumAngle = 195, @@ -6160,28 +7211,32 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - ref GatheringNode reference72 = ref span55[1]; + num2++; + ref GatheringNode reference72 = ref span4[num2]; GatheringNode obj48 = new GatheringNode { DataId = 32169u }; - num3 = 3; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span56 = CollectionsMarshal.AsSpan(list96); - span56[0] = new GatheringLocation + index2 = 3; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span5 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-393.6106f, 13.93396f, -262.3799f), MinimumAngle = 15, MaximumAngle = 130 }; - span56[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-406.0579f, 12.16138f, -255.3292f), MinimumAngle = -145, MaximumAngle = 20 }; - span56[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-394.2554f, 13.38954f, -275.8168f), MinimumAngle = 60, @@ -6197,12 +7252,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; gatheringRoot9.Author = list97; - num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 622) + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; @@ -6210,35 +7269,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span57 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference73 = ref span57[0]; + span3 = CollectionsMarshal.AsSpan(list99); + index = 0; + ref GatheringNodeGroup reference73 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span58 = CollectionsMarshal.AsSpan(list100); - ref GatheringNode reference74 = ref span58[0]; + span4 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + ref GatheringNode reference74 = ref span4[num3]; GatheringNode obj49 = new GatheringNode { DataId = 32176u }; - num3 = 3; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span59 = CollectionsMarshal.AsSpan(list101); - span59[0] = new GatheringLocation + num4 = 3; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span5 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(411.0592f, 2.207043f, -174.1382f), MinimumAngle = -45, MaximumAngle = 130 }; - span59[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(382.993f, 13.25345f, -207.7346f), MinimumAngle = 130, MaximumAngle = 295 }; - span59[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(361.387f, 14.51455f, -203.9765f), MinimumAngle = 90, @@ -6246,15 +7310,18 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - ref GatheringNode reference75 = ref span58[1]; + num3++; + ref GatheringNode reference75 = ref span4[num3]; GatheringNode obj50 = new GatheringNode { DataId = 32175u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span5 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(364.0281f, 14.81319f, -208.0434f), MinimumAngle = 65, @@ -6264,21 +7331,25 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - ref GatheringNodeGroup reference76 = ref span57[1]; + index++; + ref GatheringNodeGroup reference76 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span60 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference77 = ref span60[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span4 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference77 = ref span4[num2]; GatheringNode obj51 = new GatheringNode { DataId = 32177u }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span5 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(326.783f, 27.22089f, -328.1715f), MinimumAngle = -130, @@ -6286,28 +7357,32 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - ref GatheringNode reference78 = ref span60[1]; + num2++; + ref GatheringNode reference78 = ref span4[num2]; GatheringNode obj52 = new GatheringNode { DataId = 32178u }; - num3 = 3; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span61 = CollectionsMarshal.AsSpan(list105); - span61[0] = new GatheringLocation + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span5 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(352.0781f, 33.91527f, -369.394f), MinimumAngle = -55, MaximumAngle = 110 }; - span61[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(319.4689f, 30.05529f, -341.346f), MinimumAngle = 50, MaximumAngle = 215 }; - span61[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(340.3498f, 34.56527f, -374.391f), MinimumAngle = -90, @@ -6317,21 +7392,25 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - ref GatheringNodeGroup reference79 = ref span57[2]; + index++; + ref GatheringNodeGroup reference79 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span62 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference80 = ref span62[0]; + span4 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference80 = ref span4[num3]; GatheringNode obj53 = new GatheringNode { DataId = 32173u }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + span5 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(460.0648f, 32.44811f, -382.8145f), MinimumAngle = 30, @@ -6339,28 +7418,32 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - ref GatheringNode reference81 = ref span62[1]; + num3++; + ref GatheringNode reference81 = ref span4[num3]; GatheringNode obj54 = new GatheringNode { DataId = 32174u }; - num3 = 3; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span63 = CollectionsMarshal.AsSpan(list108); - span63[0] = new GatheringLocation + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(488.255f, 26.08804f, -365.4641f), MinimumAngle = 0, MaximumAngle = 195 }; - span63[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(460.4979f, 30.90669f, -376.0688f), MinimumAngle = 55, MaximumAngle = 180 }; - span63[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(438.8477f, 38.51477f, -413.352f), MinimumAngle = -70, @@ -6380,12 +7463,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 612) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -6393,33 +7480,38 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 32193u }; - int num3 = 3; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new GatheringLocation + int num4 = 3; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-249.9619f, 61.05618f, -604.3008f) }; - span3[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-238.5267f, 60.51727f, -560.746f), MinimumAngle = -25, MaximumAngle = 120 }; - span3[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-263.4823f, 61.9943f, -566.3988f), MinimumAngle = 115, @@ -6427,15 +7519,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 32192u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-261.7163f, 61.86325f, -574.8586f), MinimumAngle = -140, @@ -6445,34 +7540,39 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 32189u }; - num3 = 3; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new GatheringLocation + num4 = 3; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-260.6172f, 70.60548f, -685.7728f), MinimumAngle = 55, MaximumAngle = 265 }; - span5[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-293.3862f, 75.88585f, -675.9405f), MinimumAngle = -235, MaximumAngle = 10 }; - span5[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-289.601f, 73.41101f, -659.3271f), MinimumAngle = 135, @@ -6480,15 +7580,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 32188u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + num5 = 1; + List list9 = new List(num5); + CollectionsMarshal.SetCount(list9, num5); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-267.9963f, 75.16626f, -708.2614f), MinimumAngle = 150, @@ -6498,46 +7601,54 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 32191u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-97.48006f, 61.31205f, -668.7775f), MinimumAngle = -50, MaximumAngle = 30 }; - span7[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-36.55207f, 61.9393f, -606.5457f) }; - span7[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-79.96028f, 61.16011f, -625.305f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 32190u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-88.68313f, 61.06887f, -653.9121f) }; @@ -6548,38 +7659,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(505, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 613) + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span8 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span8[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span3 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span9[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span4 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span4[num2]; GatheringNode obj7 = new GatheringNode { DataId = 32205u }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(58.18178f, 2.700867f, -778.6965f), MinimumAngle = 45, @@ -6587,15 +7706,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span9[1]; + num2++; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 32204u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span5 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(72.41409f, 3.151178f, -776.8186f), MinimumAngle = 80, @@ -6605,21 +7727,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span8[1]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span10[0]; + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span4[num3]; GatheringNode obj9 = new GatheringNode { DataId = 32200u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span5 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-69.36879f, 3.296089f, -821.5594f), MinimumAngle = -120, @@ -6627,28 +7753,32 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span10[1]; + num3++; + ref GatheringNode reference15 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 32201u }; - num3 = 3; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = new GatheringLocation + num5 = 3; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + span5 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-69.29061f, 3.013922f, -803.5723f), MinimumAngle = 30, MaximumAngle = 185 }; - span11[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-58.63464f, 2.637568f, -819.6691f), MinimumAngle = 0, MaximumAngle = 195 }; - span11[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-58.09113f, 3.463745f, -787.4418f) }; @@ -6656,21 +7786,25 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span8[2]; + num++; + ref GatheringNodeGroup reference16 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span12[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span4 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span4[num2]; GatheringNode obj11 = new GatheringNode { DataId = 32202u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span5 = CollectionsMarshal.AsSpan(list23); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-73.56532f, 2.819433f, -633.0066f), MinimumAngle = 195, @@ -6678,28 +7812,32 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span12[1]; + num2++; + ref GatheringNode reference18 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 32203u }; - num3 = 3; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new GatheringLocation + num5 = 3; + List list24 = new List(num5); + CollectionsMarshal.SetCount(list24, num5); + span5 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-22.5884f, 3.535999f, -617.6862f), MinimumAngle = 35, MaximumAngle = 225 }; - span13[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-84.8622f, 3.222104f, -642.1901f), MinimumAngle = 75, MaximumAngle = 305 }; - span13[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-74.18819f, 2.731044f, -645.1037f), MinimumAngle = 20, @@ -6715,12 +7853,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 614) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -6728,33 +7870,38 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span14[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span15 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span15[0]; + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span4[num3]; GatheringNode obj13 = new GatheringNode { DataId = 32209u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span5 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(631.2573f, 127.0901f, -332.0291f), MinimumAngle = 155, MaximumAngle = 300 }; - span16[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(622.622f, 131.7365f, -383.0027f) }; - span16[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(652.4154f, 136.6543f, -419.1716f), MinimumAngle = -25, @@ -6762,15 +7909,18 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span15[1]; + num3++; + ref GatheringNode reference21 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 32208u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + num5 = 1; + List list30 = new List(num5); + CollectionsMarshal.SetCount(list30, num5); + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(629.0482f, 138.9971f, -423.2108f), MinimumAngle = 240, @@ -6780,28 +7930,32 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span14[1]; + index++; + ref GatheringNodeGroup reference22 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span17 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span17[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span4[num2]; GatheringNode obj15 = new GatheringNode { DataId = 32207u }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span18 = CollectionsMarshal.AsSpan(list32); - span18[0] = new GatheringLocation + num4 = 2; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span5 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(708.5831f, 127.3671f, -351.2474f), MinimumAngle = 0, MaximumAngle = 100 }; - span18[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(684.129f, 126.6719f, -335.2414f), MinimumAngle = 80, @@ -6809,15 +7963,18 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span17[1]; + num2++; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 32206u }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + num5 = 1; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + span5 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(705.5267f, 125.35f, -370.0978f), MinimumAngle = -35, @@ -6827,21 +7984,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span14[2]; + index++; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span19 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span19[0]; + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span4[num3]; GatheringNode obj17 = new GatheringNode { DataId = 32210u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(791.947f, 101.7719f, -288.1637f), MinimumAngle = 0, @@ -6849,28 +8010,32 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span19[1]; + num3++; + ref GatheringNode reference27 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 32211u }; - num3 = 3; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = new GatheringLocation + num5 = 3; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + span5 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(788.803f, 103.5642f, -240.686f), MinimumAngle = 75, MaximumAngle = 270 }; - span20[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(809.0134f, 110.9159f, -306.1294f), MinimumAngle = 120, MaximumAngle = 255 }; - span20[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(760.2955f, 98.77714f, -209.9551f), MinimumAngle = 0, @@ -6883,63 +8048,75 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(508, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span = CollectionsMarshal.AsSpan(list37); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 612) + span2 = CollectionsMarshal.AsSpan(list38); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span21 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span21[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span3 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span22 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span22[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + span4 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span4[num2]; GatheringNode obj19 = new GatheringNode { DataId = 32217u }; - num3 = 3; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span23 = CollectionsMarshal.AsSpan(list41); - span23[0] = new GatheringLocation + num4 = 3; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + span5 = CollectionsMarshal.AsSpan(list41); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-492.6537f, 52.48105f, 114.5392f) }; - span23[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-523.8553f, 58.91578f, 174.0902f), MinimumAngle = -185, MaximumAngle = 115 }; - span23[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-499.2416f, 54.9705f, 144.132f) }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span22[1]; + num2++; + ref GatheringNode reference30 = ref span4[num2]; GatheringNode obj20 = new GatheringNode { DataId = 32216u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + num5 = 1; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + span5 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-510.2239f, 55.62017f, 137.6676f) }; @@ -6947,46 +8124,54 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span21[1]; + num++; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span24 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span24[0]; + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span4[num3]; GatheringNode obj21 = new GatheringNode { DataId = 32215u }; - num3 = 3; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new GatheringLocation + num4 = 3; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-498.1188f, 57.86262f, 230.4597f) }; - span25[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-513.0305f, 56.18323f, 239.2122f), MinimumAngle = -35, MaximumAngle = 235 }; - span25[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-506.6473f, 56.30998f, 258.2175f) }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span24[1]; + num3++; + ref GatheringNode reference33 = ref span4[num3]; GatheringNode obj22 = new GatheringNode { DataId = 32214u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + num5 = 1; + List list45 = new List(num5); + CollectionsMarshal.SetCount(list45, num5); + span5 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-509.9459f, 56.21313f, 252.2773f) }; @@ -6994,40 +8179,47 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span21[2]; + num++; + ref GatheringNodeGroup reference34 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span26 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span26[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + span4 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span4[num2]; GatheringNode obj23 = new GatheringNode { DataId = 32213u }; - num3 = 2; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span27 = CollectionsMarshal.AsSpan(list47); - span27[0] = new GatheringLocation + num4 = 2; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + span5 = CollectionsMarshal.AsSpan(list47); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-391.9599f, 50.21202f, 184.0853f) }; - span27[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-419.9665f, 48.34329f, 125.2942f) }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span26[1]; + num2++; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj24 = new GatheringNode { DataId = 32212u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + num5 = 1; + List list48 = new List(num5); + CollectionsMarshal.SetCount(list48, num5); + span5 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-391.2807f, 47.10617f, 153.422f) }; @@ -7041,12 +8233,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list49; - num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -7054,41 +8250,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span28[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span29 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span29[0]; + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span4[num3]; GatheringNode obj25 = new GatheringNode { DataId = 32223u }; - num3 = 2; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span30 = CollectionsMarshal.AsSpan(list53); - span30[0] = new GatheringLocation + num4 = 2; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span5 = CollectionsMarshal.AsSpan(list53); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-741.6174f, 6.276045f, -639.2435f) }; - span30[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-724.2017f, 2.514658f, -647.5651f) }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span29[1]; + num3++; + ref GatheringNode reference39 = ref span4[num3]; GatheringNode obj26 = new GatheringNode { DataId = 32222u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + num5 = 1; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-719.345f, 2.520793f, -645.692f) }; @@ -7096,21 +8299,25 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span28[1]; + index++; + ref GatheringNodeGroup reference40 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span31 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span31[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span4 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span4[num2]; GatheringNode obj27 = new GatheringNode { DataId = 32218u }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new GatheringLocation + num4 = 1; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span5 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-664.7355f, 15.23751f, -801.2688f), MinimumAngle = -60, @@ -7118,24 +8325,28 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span31[1]; + num2++; + ref GatheringNode reference42 = ref span4[num2]; GatheringNode obj28 = new GatheringNode { DataId = 32219u }; - num3 = 3; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span32 = CollectionsMarshal.AsSpan(list57); - span32[0] = new GatheringLocation + num5 = 3; + List list57 = new List(num5); + CollectionsMarshal.SetCount(list57, num5); + span5 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-673.4941f, 16.74037f, -818.1156f) }; - span32[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-677.8458f, 15.77772f, -809.6718f) }; - span32[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-663.3188f, 14.57053f, -797.132f) }; @@ -7143,30 +8354,35 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span28[2]; + index++; + ref GatheringNodeGroup reference43 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span33 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span33[0]; + span4 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span4[num3]; GatheringNode obj29 = new GatheringNode { DataId = 32221u }; - num3 = 3; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span34 = CollectionsMarshal.AsSpan(list59); - span34[0] = new GatheringLocation + num4 = 3; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + span5 = CollectionsMarshal.AsSpan(list59); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-502.177f, 36.7399f, -724.8087f) }; - span34[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-508.0492f, 33.89026f, -703.5477f) }; - span34[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-490.3923f, 36.73062f, -685.7646f), MinimumAngle = -40, @@ -7174,15 +8390,18 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span33[1]; + num3++; + ref GatheringNode reference45 = ref span4[num3]; GatheringNode obj30 = new GatheringNode { DataId = 32220u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + span5 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-493.5531f, 36.08752f, -687.7089f), MinimumAngle = -70, @@ -7195,64 +8414,76 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(510, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span = CollectionsMarshal.AsSpan(list61); + num = 0; + span[num] = "liza"; gatheringRoot6.Author = list61; num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span35 = CollectionsMarshal.AsSpan(list62); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span2 = CollectionsMarshal.AsSpan(list62); + index = 0; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span35[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span36 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span36[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span3 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span37 = CollectionsMarshal.AsSpan(list64); - ref GatheringNode reference47 = ref span37[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span4 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span4[num2]; GatheringNode obj31 = new GatheringNode { DataId = 32225u }; - num3 = 3; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span38 = CollectionsMarshal.AsSpan(list65); - span38[0] = new GatheringLocation + num4 = 3; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span5 = CollectionsMarshal.AsSpan(list65); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(283.2321f, -105.8964f, -89.553f) }; - span38[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(251.241f, -112.7794f, -103.9756f) }; - span38[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(338.0264f, -86.76475f, -30.31015f) }; obj31.Locations = list65; reference47 = obj31; - ref GatheringNode reference48 = ref span37[1]; + num2++; + ref GatheringNode reference48 = ref span4[num2]; GatheringNode obj32 = new GatheringNode { DataId = 32224u }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + num5 = 1; + List list66 = new List(num5); + CollectionsMarshal.SetCount(list66, num5); + span5 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(304.9474f, -98.91968f, -59.39315f) }; @@ -7260,44 +8491,52 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference49 = ref span36[1]; + num++; + ref GatheringNodeGroup reference49 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span39 = CollectionsMarshal.AsSpan(list67); - ref GatheringNode reference50 = ref span39[0]; + span4 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + ref GatheringNode reference50 = ref span4[num3]; GatheringNode obj33 = new GatheringNode { DataId = 32228u }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = new GatheringLocation + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span5 = CollectionsMarshal.AsSpan(list68); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(260.0728f, -124.0964f, 68.48814f) }; obj33.Locations = list68; reference50 = obj33; - ref GatheringNode reference51 = ref span39[1]; + num3++; + ref GatheringNode reference51 = ref span4[num3]; GatheringNode obj34 = new GatheringNode { DataId = 32229u }; - num3 = 3; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span40 = CollectionsMarshal.AsSpan(list69); - span40[0] = new GatheringLocation + num5 = 3; + List list69 = new List(num5); + CollectionsMarshal.SetCount(list69, num5); + span5 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(265.4464f, -128.0422f, 88.30737f) }; - span40[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(256.5239f, -113.9164f, -3.19258f) }; - span40[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(237.8169f, -122.1193f, -35.11102f) }; @@ -7305,44 +8544,52 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - ref GatheringNodeGroup reference52 = ref span36[2]; + num++; + ref GatheringNodeGroup reference52 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span41 = CollectionsMarshal.AsSpan(list70); - ref GatheringNode reference53 = ref span41[0]; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + span4 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference53 = ref span4[num2]; GatheringNode obj35 = new GatheringNode { DataId = 32226u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span5 = CollectionsMarshal.AsSpan(list71); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(318.7197f, -88.4566f, 91.66042f) }; obj35.Locations = list71; reference53 = obj35; - ref GatheringNode reference54 = ref span41[1]; + num2++; + ref GatheringNode reference54 = ref span4[num2]; GatheringNode obj36 = new GatheringNode { DataId = 32227u }; - num3 = 3; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span42 = CollectionsMarshal.AsSpan(list72); - span42[0] = new GatheringLocation + num5 = 3; + List list72 = new List(num5); + CollectionsMarshal.SetCount(list72, num5); + span5 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(281.2504f, -113.1205f, 176.6557f) }; - span42[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(309.1248f, -88.04077f, 109.5688f) }; - span42[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(312.3843f, -95.51873f, 79.94166f) }; @@ -7356,12 +8603,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; gatheringRoot7.Author = list73; - num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -7369,45 +8620,53 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span43 = CollectionsMarshal.AsSpan(list75); - ref GatheringNodeGroup reference55 = ref span43[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index = 0; + ref GatheringNodeGroup reference55 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span44 = CollectionsMarshal.AsSpan(list76); - ref GatheringNode reference56 = ref span44[0]; + span4 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref GatheringNode reference56 = ref span4[num3]; GatheringNode obj37 = new GatheringNode { DataId = 32234u }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new GatheringLocation + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + span5 = CollectionsMarshal.AsSpan(list77); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-381.2856f, 66.03626f, -548.9689f) }; obj37.Locations = list77; reference56 = obj37; - ref GatheringNode reference57 = ref span44[1]; + num3++; + ref GatheringNode reference57 = ref span4[num3]; GatheringNode obj38 = new GatheringNode { DataId = 32235u }; - num3 = 3; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span45 = CollectionsMarshal.AsSpan(list78); - span45[0] = new GatheringLocation + num5 = 3; + List list78 = new List(num5); + CollectionsMarshal.SetCount(list78, num5); + span5 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-421.8894f, 69.34563f, -520.4478f) }; - span45[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-376.2228f, 66.67438f, -545.8188f) }; - span45[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-355.3144f, 66.57961f, -545.7592f) }; @@ -7415,46 +8674,54 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - ref GatheringNodeGroup reference58 = ref span43[1]; + index++; + ref GatheringNodeGroup reference58 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span46 = CollectionsMarshal.AsSpan(list79); - ref GatheringNode reference59 = ref span46[0]; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span4 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref GatheringNode reference59 = ref span4[num2]; GatheringNode obj39 = new GatheringNode { DataId = 32232u }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new GatheringLocation + num4 = 1; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span5 = CollectionsMarshal.AsSpan(list80); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-517.0562f, 63.73144f, -477.6884f) }; obj39.Locations = list80; reference59 = obj39; - ref GatheringNode reference60 = ref span46[1]; + num2++; + ref GatheringNode reference60 = ref span4[num2]; GatheringNode obj40 = new GatheringNode { DataId = 32233u }; - num3 = 3; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span47 = CollectionsMarshal.AsSpan(list81); - span47[0] = new GatheringLocation + num5 = 3; + List list81 = new List(num5); + CollectionsMarshal.SetCount(list81, num5); + span5 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-550.7997f, 69.32131f, -449.5795f), MinimumAngle = 0, MaximumAngle = 230 }; - span47[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-507.8166f, 66.39982f, -470.319f) }; - span47[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-494.5092f, 63.5919f, -497.5369f) }; @@ -7462,21 +8729,25 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - ref GatheringNodeGroup reference61 = ref span43[2]; + index++; + ref GatheringNodeGroup reference61 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span48 = CollectionsMarshal.AsSpan(list82); - ref GatheringNode reference62 = ref span48[0]; + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + ref GatheringNode reference62 = ref span4[num3]; GatheringNode obj41 = new GatheringNode { DataId = 32230u }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span5 = CollectionsMarshal.AsSpan(list83); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-402.3759f, 95.33111f, -371.9796f), MinimumAngle = -15, @@ -7484,26 +8755,30 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - ref GatheringNode reference63 = ref span48[1]; + num3++; + ref GatheringNode reference63 = ref span4[num3]; GatheringNode obj42 = new GatheringNode { DataId = 32231u }; - num3 = 3; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span49 = CollectionsMarshal.AsSpan(list84); - span49[0] = new GatheringLocation + num5 = 3; + List list84 = new List(num5); + CollectionsMarshal.SetCount(list84, num5); + span5 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-398.7086f, 95.14203f, -377.1731f), MinimumAngle = 30, MaximumAngle = 230 }; - span49[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-427.5446f, 90.42126f, -391.9806f) }; - span49[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-398.5008f, 98.82507f, -351.0829f) }; @@ -7514,38 +8789,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(512, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span = CollectionsMarshal.AsSpan(list85); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 612) + span2 = CollectionsMarshal.AsSpan(list86); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot8.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span50 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference64 = ref span50[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span3 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference64 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span51 = CollectionsMarshal.AsSpan(list88); - ref GatheringNode reference65 = ref span51[0]; + num3 = 2; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span4 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference65 = ref span4[num2]; GatheringNode obj43 = new GatheringNode { DataId = 32236u }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span5 = CollectionsMarshal.AsSpan(list89); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-590.3985f, 37.74836f, 392.8004f), MinimumAngle = 60, @@ -7553,22 +8836,25 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - ref GatheringNode reference66 = ref span51[1]; + num2++; + ref GatheringNode reference66 = ref span4[num2]; GatheringNode obj44 = new GatheringNode { DataId = 32237u }; - num3 = 2; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span52 = CollectionsMarshal.AsSpan(list90); - span52[0] = new GatheringLocation + num5 = 2; + List list90 = new List(num5); + CollectionsMarshal.SetCount(list90, num5); + span5 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-713.7814f, 51.18425f, 365.8188f), MinimumAngle = 145, MaximumAngle = 275 }; - span52[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-674.6958f, 44.06395f, 347.5866f), MinimumAngle = -70, @@ -7578,28 +8864,32 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - ref GatheringNodeGroup reference67 = ref span50[1]; + num++; + ref GatheringNodeGroup reference67 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span53 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference68 = ref span53[0]; + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference68 = ref span4[num3]; GatheringNode obj45 = new GatheringNode { DataId = 32239u }; - num3 = 2; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span54 = CollectionsMarshal.AsSpan(list92); - span54[0] = new GatheringLocation + num4 = 2; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + span5 = CollectionsMarshal.AsSpan(list92); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-625.3124f, 36.73846f, 442.5669f), MinimumAngle = 140, MaximumAngle = 235 }; - span54[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-655.4194f, 40.51354f, 402.2708f), MinimumAngle = -95, @@ -7607,15 +8897,18 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - ref GatheringNode reference69 = ref span53[1]; + num3++; + ref GatheringNode reference69 = ref span4[num3]; GatheringNode obj46 = new GatheringNode { DataId = 32238u }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + num5 = 1; + List list93 = new List(num5); + CollectionsMarshal.SetCount(list93, num5); + span5 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-628.1135f, 36.66908f, 480.3016f), MinimumAngle = 85, @@ -7625,21 +8918,25 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - ref GatheringNodeGroup reference70 = ref span50[2]; + num++; + ref GatheringNodeGroup reference70 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span55 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference71 = ref span55[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + span4 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference71 = ref span4[num2]; GatheringNode obj47 = new GatheringNode { DataId = 32240u }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new GatheringLocation + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span5 = CollectionsMarshal.AsSpan(list95); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-575.3094f, 36.61243f, 500.9136f), MinimumAngle = 15, @@ -7647,22 +8944,25 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - ref GatheringNode reference72 = ref span55[1]; + num2++; + ref GatheringNode reference72 = ref span4[num2]; GatheringNode obj48 = new GatheringNode { DataId = 32241u }; - num3 = 2; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span56 = CollectionsMarshal.AsSpan(list96); - span56[0] = new GatheringLocation + num5 = 2; + List list96 = new List(num5); + CollectionsMarshal.SetCount(list96, num5); + span5 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-560.735f, 37.00333f, 439.5417f), MinimumAngle = -15, MaximumAngle = 95 }; - span56[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-586.5652f, 37.77999f, 459.6001f), MinimumAngle = 40, @@ -7678,12 +8978,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; gatheringRoot9.Author = list97; - num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 621) + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; @@ -7691,35 +8995,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span57 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference73 = ref span57[0]; + span3 = CollectionsMarshal.AsSpan(list99); + index = 0; + ref GatheringNodeGroup reference73 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span58 = CollectionsMarshal.AsSpan(list100); - ref GatheringNode reference74 = ref span58[0]; + span4 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + ref GatheringNode reference74 = ref span4[num3]; GatheringNode obj49 = new GatheringNode { DataId = 32245u }; - num3 = 3; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span59 = CollectionsMarshal.AsSpan(list101); - span59[0] = new GatheringLocation + num4 = 3; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span5 = CollectionsMarshal.AsSpan(list101); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(333.1211f, 20.88004f, -522.5363f), MinimumAngle = 160, MaximumAngle = 335 }; - span59[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(338.3687f, 21.54188f, -512.1134f), MinimumAngle = 120, MaximumAngle = 275 }; - span59[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(374.9138f, 25.00688f, -515.2723f), MinimumAngle = -85, @@ -7727,15 +9036,18 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - ref GatheringNode reference75 = ref span58[1]; + num3++; + ref GatheringNode reference75 = ref span4[num3]; GatheringNode obj50 = new GatheringNode { DataId = 32244u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + num5 = 1; + List list102 = new List(num5); + CollectionsMarshal.SetCount(list102, num5); + span5 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(368.5785f, 24.38493f, -507.3824f), MinimumAngle = 65, @@ -7745,34 +9057,39 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - ref GatheringNodeGroup reference76 = ref span57[1]; + index++; + ref GatheringNodeGroup reference76 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span60 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference77 = ref span60[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span4 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference77 = ref span4[num2]; GatheringNode obj51 = new GatheringNode { DataId = 32243u }; - num3 = 3; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span61 = CollectionsMarshal.AsSpan(list104); - span61[0] = new GatheringLocation + num4 = 3; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span5 = CollectionsMarshal.AsSpan(list104); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(426.1108f, 25.12664f, -607.2003f), MinimumAngle = -20, MaximumAngle = 145 }; - span61[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(400.1029f, 25.21572f, -648.0899f), MinimumAngle = 190, MaximumAngle = 325 }; - span61[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(463.1597f, 24.9486f, -602.0026f), MinimumAngle = 0, @@ -7780,15 +9097,18 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - ref GatheringNode reference78 = ref span60[1]; + num2++; + ref GatheringNode reference78 = ref span4[num2]; GatheringNode obj52 = new GatheringNode { DataId = 32242u }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation + num5 = 1; + List list105 = new List(num5); + CollectionsMarshal.SetCount(list105, num5); + span5 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(396.3124f, 25.41136f, -663.1417f), MinimumAngle = 20, @@ -7798,34 +9118,39 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - ref GatheringNodeGroup reference79 = ref span57[2]; + index++; + ref GatheringNodeGroup reference79 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span62 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference80 = ref span62[0]; + span4 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference80 = ref span4[num3]; GatheringNode obj53 = new GatheringNode { DataId = 32247u }; - num3 = 3; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span63 = CollectionsMarshal.AsSpan(list107); - span63[0] = new GatheringLocation + num4 = 3; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + span5 = CollectionsMarshal.AsSpan(list107); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(274.2476f, 18.49642f, -627.4052f), MinimumAngle = -95, MaximumAngle = 100 }; - span63[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(248.6237f, 10.63078f, -592.5243f), MinimumAngle = -145, MaximumAngle = 35 }; - span63[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(259.3484f, 11.24844f, -586.5854f), MinimumAngle = -120, @@ -7833,15 +9158,18 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - ref GatheringNode reference81 = ref span62[1]; + num3++; + ref GatheringNode reference81 = ref span4[num3]; GatheringNode obj54 = new GatheringNode { DataId = 32246u }; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation + num5 = 1; + List list108 = new List(num5); + CollectionsMarshal.SetCount(list108, num5); + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(266.4147f, 18.26739f, -620.2316f), MinimumAngle = 135, @@ -7854,38 +9182,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list99; AddLocation(514, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + index = 1; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span = CollectionsMarshal.AsSpan(list109); + num = 0; + span[num] = "liza"; gatheringRoot10.Author = list109; num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.None, null, null, 622) + span2 = CollectionsMarshal.AsSpan(list110); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot10.Steps = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span64 = CollectionsMarshal.AsSpan(list111); - ref GatheringNodeGroup reference82 = ref span64[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span3 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref GatheringNodeGroup reference82 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span65 = CollectionsMarshal.AsSpan(list112); - ref GatheringNode reference83 = ref span65[0]; + num3 = 2; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span4 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref GatheringNode reference83 = ref span4[num2]; GatheringNode obj55 = new GatheringNode { DataId = 32264u }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span5 = CollectionsMarshal.AsSpan(list113); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-166.6597f, 3.616752f, 361.2099f), MinimumAngle = -95, @@ -7893,26 +9229,30 @@ public static class AssemblyGatheringLocationLoader }; obj55.Locations = list113; reference83 = obj55; - ref GatheringNode reference84 = ref span65[1]; + num2++; + ref GatheringNode reference84 = ref span4[num2]; GatheringNode obj56 = new GatheringNode { DataId = 32265u }; - num3 = 3; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span66 = CollectionsMarshal.AsSpan(list114); - span66[0] = new GatheringLocation + num5 = 3; + List list114 = new List(num5); + CollectionsMarshal.SetCount(list114, num5); + span5 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-191.0201f, 4.361521f, 354.6401f) }; - span66[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-162.6655f, 3.441799f, 363.0803f), MinimumAngle = -95, MaximumAngle = 150 }; - span66[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-167.5898f, 2.5177f, 377.1267f) }; @@ -7920,44 +9260,52 @@ public static class AssemblyGatheringLocationLoader reference84 = obj56; gatheringNodeGroup28.Nodes = list112; reference82 = gatheringNodeGroup28; - ref GatheringNodeGroup reference85 = ref span64[1]; + num++; + ref GatheringNodeGroup reference85 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span67 = CollectionsMarshal.AsSpan(list115); - ref GatheringNode reference86 = ref span67[0]; + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + ref GatheringNode reference86 = ref span4[num3]; GatheringNode obj57 = new GatheringNode { DataId = 32267u }; - num3 = 3; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span68 = CollectionsMarshal.AsSpan(list116); - span68[0] = new GatheringLocation + num4 = 3; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + span5 = CollectionsMarshal.AsSpan(list116); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-271.2292f, 3.341675f, 401.9989f) }; - span68[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-349.3433f, 11.88452f, 378.1435f) }; - span68[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-298.7296f, 5.809261f, 414.3437f) }; obj57.Locations = list116; reference86 = obj57; - ref GatheringNode reference87 = ref span67[1]; + num3++; + ref GatheringNode reference87 = ref span4[num3]; GatheringNode obj58 = new GatheringNode { DataId = 32266u }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation + num5 = 1; + List list117 = new List(num5); + CollectionsMarshal.SetCount(list117, num5); + span5 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-317.19f, 7.863516f, 397.5005f) }; @@ -7965,44 +9313,52 @@ public static class AssemblyGatheringLocationLoader reference87 = obj58; gatheringNodeGroup29.Nodes = list115; reference85 = gatheringNodeGroup29; - ref GatheringNodeGroup reference88 = ref span64[2]; + num++; + ref GatheringNodeGroup reference88 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span69 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference89 = ref span69[0]; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span4 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference89 = ref span4[num2]; GatheringNode obj59 = new GatheringNode { DataId = 32262u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + span5 = CollectionsMarshal.AsSpan(list119); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-350.0407f, 22.68479f, 230.4606f) }; obj59.Locations = list119; reference89 = obj59; - ref GatheringNode reference90 = ref span69[1]; + num2++; + ref GatheringNode reference90 = ref span4[num2]; GatheringNode obj60 = new GatheringNode { DataId = 32263u }; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span70 = CollectionsMarshal.AsSpan(list120); - span70[0] = new GatheringLocation + num5 = 3; + List list120 = new List(num5); + CollectionsMarshal.SetCount(list120, num5); + span5 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-352.7808f, 23.99817f, 203.1617f) }; - span70[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-345.5888f, 22.30608f, 229.8253f) }; - span70[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-377.2188f, 22.65303f, 221.3997f) }; @@ -8016,12 +9372,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "liza"; gatheringRoot11.Author = list121; - num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 621) + index = 1; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -8029,29 +9389,36 @@ public static class AssemblyGatheringLocationLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - ref GatheringNodeGroup reference91 = ref CollectionsMarshal.AsSpan(list123)[0]; + span3 = CollectionsMarshal.AsSpan(list123); + index = 0; + ref GatheringNodeGroup reference91 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - ref GatheringNode reference92 = ref CollectionsMarshal.AsSpan(list124)[0]; + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference92 = ref span4[num3]; GatheringNode obj61 = new GatheringNode { DataId = 32274u }; - num3 = 3; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span71 = CollectionsMarshal.AsSpan(list125); - span71[0] = new GatheringLocation + num4 = 3; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + span5 = CollectionsMarshal.AsSpan(list125); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-737.3265f, 76.50858f, -591.2296f) }; - span71[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-787.0406f, 78.22382f, -640.0532f) }; - span71[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-670.0129f, 70.42876f, -645.2087f) }; @@ -8062,60 +9429,71 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list123; AddLocation(526, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + index = 1; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span = CollectionsMarshal.AsSpan(list126); + num = 0; + span[num] = "liza"; gatheringRoot12.Author = list126; num = 2; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span72 = CollectionsMarshal.AsSpan(list127); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span2 = CollectionsMarshal.AsSpan(list127); + index = 0; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span72[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot12.Steps = list127; - num = 3; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span73 = CollectionsMarshal.AsSpan(list128); - ref GatheringNodeGroup reference93 = ref span73[0]; + index = 3; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span3 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref GatheringNodeGroup reference93 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 2; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span74 = CollectionsMarshal.AsSpan(list129); - ref GatheringNode reference94 = ref span74[0]; + num3 = 2; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + span4 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref GatheringNode reference94 = ref span4[num2]; GatheringNode obj62 = new GatheringNode { DataId = 32282u }; - num3 = 2; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span75 = CollectionsMarshal.AsSpan(list130); - span75[0] = new GatheringLocation + num5 = 2; + List list130 = new List(num5); + CollectionsMarshal.SetCount(list130, num5); + span5 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-332.5556f, -139.5151f, -276.7727f) }; - span75[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-398.5437f, -137.4753f, -264.6068f) }; obj62.Locations = list130; reference94 = obj62; - ref GatheringNode reference95 = ref span74[1]; + num2++; + ref GatheringNode reference95 = ref span4[num2]; GatheringNode obj63 = new GatheringNode { DataId = 32281u }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new GatheringLocation + num4 = 1; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + span5 = CollectionsMarshal.AsSpan(list131); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-377.4165f, -151.0521f, -211.4394f) }; @@ -8123,44 +9501,52 @@ public static class AssemblyGatheringLocationLoader reference95 = obj63; gatheringNodeGroup32.Nodes = list129; reference93 = gatheringNodeGroup32; - ref GatheringNodeGroup reference96 = ref span73[1]; + num++; + ref GatheringNodeGroup reference96 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span76 = CollectionsMarshal.AsSpan(list132); - ref GatheringNode reference97 = ref span76[0]; + span4 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + ref GatheringNode reference97 = ref span4[num3]; GatheringNode obj64 = new GatheringNode { DataId = 32277u }; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new GatheringLocation + num5 = 1; + List list133 = new List(num5); + CollectionsMarshal.SetCount(list133, num5); + span5 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-509.283f, -107.1854f, -389.3152f) }; obj64.Locations = list133; reference97 = obj64; - ref GatheringNode reference98 = ref span76[1]; + num3++; + ref GatheringNode reference98 = ref span4[num3]; GatheringNode obj65 = new GatheringNode { DataId = 32278u }; - num3 = 3; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span77 = CollectionsMarshal.AsSpan(list134); - span77[0] = new GatheringLocation + num4 = 3; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + span5 = CollectionsMarshal.AsSpan(list134); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-470.5726f, -93.28533f, -430.0346f) }; - span77[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-549.3453f, -103.2194f, -352.9945f) }; - span77[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-548.5269f, -99.45416f, -459.6198f) }; @@ -8168,21 +9554,25 @@ public static class AssemblyGatheringLocationLoader reference98 = obj65; gatheringNodeGroup33.Nodes = list132; reference96 = gatheringNodeGroup33; - ref GatheringNodeGroup reference99 = ref span73[2]; + num++; + ref GatheringNodeGroup reference99 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span78 = CollectionsMarshal.AsSpan(list135); - ref GatheringNode reference100 = ref span78[0]; + num3 = 2; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + span4 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref GatheringNode reference100 = ref span4[num2]; GatheringNode obj66 = new GatheringNode { DataId = 32279u }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new GatheringLocation + num5 = 1; + List list136 = new List(num5); + CollectionsMarshal.SetCount(list136, num5); + span5 = CollectionsMarshal.AsSpan(list136); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-347.0872f, -72.09894f, -420.7435f), MinimumAngle = -80, @@ -8190,24 +9580,28 @@ public static class AssemblyGatheringLocationLoader }; obj66.Locations = list136; reference100 = obj66; - ref GatheringNode reference101 = ref span78[1]; + num2++; + ref GatheringNode reference101 = ref span4[num2]; GatheringNode obj67 = new GatheringNode { DataId = 32280u }; - num3 = 3; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span79 = CollectionsMarshal.AsSpan(list137); - span79[0] = new GatheringLocation + num4 = 3; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + span5 = CollectionsMarshal.AsSpan(list137); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-410.6145f, -86.76735f, -432.2196f) }; - span79[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-407.9324f, -108.0931f, -384.4449f) }; - span79[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-341.0429f, -89.68655f, -396.5815f), MinimumAngle = -45, @@ -8223,12 +9617,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; gatheringRoot13.Author = list138; - num = 1; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -8236,22 +9634,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span80 = CollectionsMarshal.AsSpan(list140); - ref GatheringNodeGroup reference102 = ref span80[0]; + span3 = CollectionsMarshal.AsSpan(list140); + index = 0; + ref GatheringNodeGroup reference102 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span81 = CollectionsMarshal.AsSpan(list141); - ref GatheringNode reference103 = ref span81[0]; + span4 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + ref GatheringNode reference103 = ref span4[num3]; GatheringNode obj68 = new GatheringNode { DataId = 32286u }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new GatheringLocation + num5 = 1; + List list142 = new List(num5); + CollectionsMarshal.SetCount(list142, num5); + span5 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(720.7598f, 247.8707f, -571.472f), MinimumAngle = 115, @@ -8259,22 +9661,25 @@ public static class AssemblyGatheringLocationLoader }; obj68.Locations = list142; reference103 = obj68; - ref GatheringNode reference104 = ref span81[1]; + num3++; + ref GatheringNode reference104 = ref span4[num3]; GatheringNode obj69 = new GatheringNode { DataId = 32287u }; - num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span82 = CollectionsMarshal.AsSpan(list143); - span82[0] = new GatheringLocation + num4 = 2; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + span5 = CollectionsMarshal.AsSpan(list143); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(749.6198f, 250.0555f, -569.6151f), MinimumAngle = 160, MaximumAngle = 280 }; - span82[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(700.801f, 248.3289f, -569.3172f), MinimumAngle = 185, @@ -8284,28 +9689,32 @@ public static class AssemblyGatheringLocationLoader reference104 = obj69; gatheringNodeGroup35.Nodes = list141; reference102 = gatheringNodeGroup35; - ref GatheringNodeGroup reference105 = ref span80[1]; + index++; + ref GatheringNodeGroup reference105 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span83 = CollectionsMarshal.AsSpan(list144); - ref GatheringNode reference106 = ref span83[0]; + num3 = 2; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + span4 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + ref GatheringNode reference106 = ref span4[num2]; GatheringNode obj70 = new GatheringNode { DataId = 32285u }; - num3 = 2; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span84 = CollectionsMarshal.AsSpan(list145); - span84[0] = new GatheringLocation + num5 = 2; + List list145 = new List(num5); + CollectionsMarshal.SetCount(list145, num5); + span5 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(792.5579f, 257.8186f, -661.4872f), MinimumAngle = 80, MaximumAngle = 155 }; - span84[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(773.1775f, 253.9753f, -671.3119f), MinimumAngle = -80, @@ -8313,15 +9722,18 @@ public static class AssemblyGatheringLocationLoader }; obj70.Locations = list145; reference106 = obj70; - ref GatheringNode reference107 = ref span83[1]; + num2++; + ref GatheringNode reference107 = ref span4[num2]; GatheringNode obj71 = new GatheringNode { DataId = 32284u }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation + num4 = 1; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + span5 = CollectionsMarshal.AsSpan(list146); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(788.1879f, 257.4255f, -669.3115f), MinimumAngle = -50, @@ -8333,28 +9745,32 @@ public static class AssemblyGatheringLocationLoader reference107 = obj71; gatheringNodeGroup36.Nodes = list144; reference105 = gatheringNodeGroup36; - ref GatheringNodeGroup reference108 = ref span80[2]; + index++; + ref GatheringNodeGroup reference108 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span85 = CollectionsMarshal.AsSpan(list147); - ref GatheringNode reference109 = ref span85[0]; + span4 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + ref GatheringNode reference109 = ref span4[num3]; GatheringNode obj72 = new GatheringNode { DataId = 32289u }; - num3 = 2; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span86 = CollectionsMarshal.AsSpan(list148); - span86[0] = new GatheringLocation + num5 = 2; + List list148 = new List(num5); + CollectionsMarshal.SetCount(list148, num5); + span5 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(846.4332f, 262.9354f, -500.6171f), MinimumAngle = 40, MaximumAngle = 155 }; - span86[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(838.9346f, 262.0732f, -527.0631f), MinimumAngle = 60, @@ -8362,15 +9778,18 @@ public static class AssemblyGatheringLocationLoader }; obj72.Locations = list148; reference109 = obj72; - ref GatheringNode reference110 = ref span85[1]; + num3++; + ref GatheringNode reference110 = ref span4[num3]; GatheringNode obj73 = new GatheringNode { DataId = 32288u }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation + num4 = 1; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span5 = CollectionsMarshal.AsSpan(list149); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(845.8228f, 263.8849f, -511.0472f), MinimumAngle = -30, @@ -8383,57 +9802,68 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list140; AddLocation(531, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + index = 1; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span = CollectionsMarshal.AsSpan(list150); + num = 0; + span[num] = "liza"; gatheringRoot14.Author = list150; num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.None, null, null, 620) + span2 = CollectionsMarshal.AsSpan(list151); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; gatheringRoot14.Steps = list151; - num = 3; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span87 = CollectionsMarshal.AsSpan(list152); - ref GatheringNodeGroup reference111 = ref span87[0]; + index = 3; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span3 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref GatheringNodeGroup reference111 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span88 = CollectionsMarshal.AsSpan(list153); - ref GatheringNode reference112 = ref span88[0]; + num3 = 2; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + span4 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref GatheringNode reference112 = ref span4[num2]; GatheringNode obj74 = new GatheringNode { DataId = 32292u }; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new GatheringLocation + num5 = 1; + List list154 = new List(num5); + CollectionsMarshal.SetCount(list154, num5); + span5 = CollectionsMarshal.AsSpan(list154); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-276.0765f, 74.99889f, -751.7645f) }; obj74.Locations = list154; reference112 = obj74; - ref GatheringNode reference113 = ref span88[1]; + num2++; + ref GatheringNode reference113 = ref span4[num2]; GatheringNode obj75 = new GatheringNode { DataId = 32293u }; - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span89 = CollectionsMarshal.AsSpan(list155); - span89[0] = new GatheringLocation + num4 = 2; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + span5 = CollectionsMarshal.AsSpan(list155); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-291.6779f, 75.03039f, -740.0215f) }; - span89[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-309.4909f, 74.66329f, -746.8633f) }; @@ -8441,40 +9871,47 @@ public static class AssemblyGatheringLocationLoader reference113 = obj75; gatheringNodeGroup38.Nodes = list153; reference111 = gatheringNodeGroup38; - ref GatheringNodeGroup reference114 = ref span87[1]; + num++; + ref GatheringNodeGroup reference114 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span90 = CollectionsMarshal.AsSpan(list156); - ref GatheringNode reference115 = ref span90[0]; + span4 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + ref GatheringNode reference115 = ref span4[num3]; GatheringNode obj76 = new GatheringNode { DataId = 32290u }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new GatheringLocation + num5 = 1; + List list157 = new List(num5); + CollectionsMarshal.SetCount(list157, num5); + span5 = CollectionsMarshal.AsSpan(list157); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-377.3709f, 59.22021f, -721.5839f) }; obj76.Locations = list157; reference115 = obj76; - ref GatheringNode reference116 = ref span90[1]; + num3++; + ref GatheringNode reference116 = ref span4[num3]; GatheringNode obj77 = new GatheringNode { DataId = 32291u }; - num3 = 2; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span91 = CollectionsMarshal.AsSpan(list158); - span91[0] = new GatheringLocation + num4 = 2; + List list158 = new List(num4); + CollectionsMarshal.SetCount(list158, num4); + span5 = CollectionsMarshal.AsSpan(list158); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-385.6718f, 59.15918f, -741.5427f) }; - span91[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-409.1402f, 56.75652f, -746.273f) }; @@ -8482,40 +9919,47 @@ public static class AssemblyGatheringLocationLoader reference116 = obj77; gatheringNodeGroup39.Nodes = list156; reference114 = gatheringNodeGroup39; - ref GatheringNodeGroup reference117 = ref span87[2]; + num++; + ref GatheringNodeGroup reference117 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span92 = CollectionsMarshal.AsSpan(list159); - ref GatheringNode reference118 = ref span92[0]; + num3 = 2; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + span4 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref GatheringNode reference118 = ref span4[num2]; GatheringNode obj78 = new GatheringNode { DataId = 32295u }; - num3 = 2; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span93 = CollectionsMarshal.AsSpan(list160); - span93[0] = new GatheringLocation + num5 = 2; + List list160 = new List(num5); + CollectionsMarshal.SetCount(list160, num5); + span5 = CollectionsMarshal.AsSpan(list160); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-456.0745f, 57.47042f, -804.0213f) }; - span93[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-455.9548f, 57.93848f, -785.8549f) }; obj78.Locations = list160; reference118 = obj78; - ref GatheringNode reference119 = ref span92[1]; + num2++; + ref GatheringNode reference119 = ref span4[num2]; GatheringNode obj79 = new GatheringNode { DataId = 32294u }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new GatheringLocation + num4 = 1; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + span5 = CollectionsMarshal.AsSpan(list161); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-472.6482f, 57.45007f, -798.8556f) }; @@ -8529,12 +9973,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "liza"; gatheringRoot15.Author = list162; - num = 1; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -8548,22 +9996,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span94 = CollectionsMarshal.AsSpan(list164); - ref GatheringNodeGroup reference120 = ref span94[0]; + span3 = CollectionsMarshal.AsSpan(list164); + index = 0; + ref GatheringNodeGroup reference120 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span95 = CollectionsMarshal.AsSpan(list165); - ref GatheringNode reference121 = ref span95[0]; + span4 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + ref GatheringNode reference121 = ref span4[num3]; GatheringNode obj80 = new GatheringNode { DataId = 32296u }; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new GatheringLocation + num5 = 1; + List list166 = new List(num5); + CollectionsMarshal.SetCount(list166, num5); + span5 = CollectionsMarshal.AsSpan(list166); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-216.1387f, 0.6300181f, 616.7697f), MinimumAngle = 180, @@ -8571,16 +10023,18 @@ public static class AssemblyGatheringLocationLoader }; obj80.Locations = list166; reference121 = obj80; - ref GatheringNode reference122 = ref span95[1]; + num3++; + ref GatheringNode reference122 = ref span4[num3]; GatheringNode obj81 = new GatheringNode { DataId = 32297u }; - num3 = 2; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - Span span96 = CollectionsMarshal.AsSpan(list167); - span96[0] = new GatheringLocation + num4 = 2; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + span5 = CollectionsMarshal.AsSpan(list167); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-236.5302f, 0.503479f, 634.821f), MinimumAngle = 45, @@ -8588,7 +10042,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.6f, MaximumDistance = 3f }; - span96[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-242.0282f, 1.464991f, 649.7866f), MinimumAngle = -20, @@ -8598,21 +10053,25 @@ public static class AssemblyGatheringLocationLoader reference122 = obj81; gatheringNodeGroup41.Nodes = list165; reference120 = gatheringNodeGroup41; - ref GatheringNodeGroup reference123 = ref span94[1]; + index++; + ref GatheringNodeGroup reference123 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span97 = CollectionsMarshal.AsSpan(list168); - ref GatheringNode reference124 = ref span97[0]; + num3 = 2; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + span4 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref GatheringNode reference124 = ref span4[num2]; GatheringNode obj82 = new GatheringNode { DataId = 32298u }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new GatheringLocation + num5 = 1; + List list169 = new List(num5); + CollectionsMarshal.SetCount(list169, num5); + span5 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-267.9128f, 0.6036554f, 722.319f), MinimumAngle = 230, @@ -8620,22 +10079,25 @@ public static class AssemblyGatheringLocationLoader }; obj82.Locations = list169; reference124 = obj82; - ref GatheringNode reference125 = ref span97[1]; + num2++; + ref GatheringNode reference125 = ref span4[num2]; GatheringNode obj83 = new GatheringNode { DataId = 32299u }; - num3 = 2; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span98 = CollectionsMarshal.AsSpan(list170); - span98[0] = new GatheringLocation + num4 = 2; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + span5 = CollectionsMarshal.AsSpan(list170); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-275.2201f, 1.438162f, 727.0667f), MinimumAngle = 0, MaximumAngle = 105 }; - span98[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-277.8375f, 2.060616f, 721.6605f), MinimumAngle = 20, @@ -8645,21 +10107,25 @@ public static class AssemblyGatheringLocationLoader reference125 = obj83; gatheringNodeGroup42.Nodes = list168; reference123 = gatheringNodeGroup42; - ref GatheringNodeGroup reference126 = ref span94[2]; + index++; + ref GatheringNodeGroup reference126 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span99 = CollectionsMarshal.AsSpan(list171); - ref GatheringNode reference127 = ref span99[0]; + span4 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + ref GatheringNode reference127 = ref span4[num3]; GatheringNode obj84 = new GatheringNode { DataId = 32300u }; - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new GatheringLocation + num5 = 1; + List list172 = new List(num5); + CollectionsMarshal.SetCount(list172, num5); + span5 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-148.4246f, 11.42871f, 776.8299f), MinimumAngle = 105, @@ -8667,22 +10133,25 @@ public static class AssemblyGatheringLocationLoader }; obj84.Locations = list172; reference127 = obj84; - ref GatheringNode reference128 = ref span99[1]; + num3++; + ref GatheringNode reference128 = ref span4[num3]; GatheringNode obj85 = new GatheringNode { DataId = 32301u }; - num3 = 2; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span100 = CollectionsMarshal.AsSpan(list173); - span100[0] = new GatheringLocation + num4 = 2; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + span5 = CollectionsMarshal.AsSpan(list173); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-135.4789f, 11.61927f, 765.4382f), MinimumAngle = 45, MaximumAngle = 155 }; - span100[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-169.3294f, 11.36792f, 784.0237f), MinimumAngle = 85, @@ -8695,57 +10164,68 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list164; AddLocation(533, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + index = 1; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + span = CollectionsMarshal.AsSpan(list174); + num = 0; + span[num] = "liza"; gatheringRoot16.Author = list174; num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.None, null, null, 613) + span2 = CollectionsMarshal.AsSpan(list175); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; gatheringRoot16.Steps = list175; - num = 3; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span101 = CollectionsMarshal.AsSpan(list176); - ref GatheringNodeGroup reference129 = ref span101[0]; + index = 3; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span3 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref GatheringNodeGroup reference129 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span102 = CollectionsMarshal.AsSpan(list177); - ref GatheringNode reference130 = ref span102[0]; + num3 = 2; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + span4 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + ref GatheringNode reference130 = ref span4[num2]; GatheringNode obj86 = new GatheringNode { DataId = 32302u }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new GatheringLocation + num5 = 1; + List list178 = new List(num5); + CollectionsMarshal.SetCount(list178, num5); + span5 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(831.4452f, 48.62377f, -131.4108f) }; obj86.Locations = list178; reference130 = obj86; - ref GatheringNode reference131 = ref span102[1]; + num2++; + ref GatheringNode reference131 = ref span4[num2]; GatheringNode obj87 = new GatheringNode { DataId = 32303u }; - num3 = 2; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span103 = CollectionsMarshal.AsSpan(list179); - span103[0] = new GatheringLocation + num4 = 2; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + span5 = CollectionsMarshal.AsSpan(list179); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(865.9036f, 46.76892f, -129.9611f) }; - span103[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(822.6691f, 48.57434f, -130.6889f) }; @@ -8753,40 +10233,47 @@ public static class AssemblyGatheringLocationLoader reference131 = obj87; gatheringNodeGroup44.Nodes = list177; reference129 = gatheringNodeGroup44; - ref GatheringNodeGroup reference132 = ref span101[1]; + num++; + ref GatheringNodeGroup reference132 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span104 = CollectionsMarshal.AsSpan(list180); - ref GatheringNode reference133 = ref span104[0]; + span4 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + ref GatheringNode reference133 = ref span4[num3]; GatheringNode obj88 = new GatheringNode { DataId = 32305u }; - num3 = 2; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span105 = CollectionsMarshal.AsSpan(list181); - span105[0] = new GatheringLocation + num5 = 2; + List list181 = new List(num5); + CollectionsMarshal.SetCount(list181, num5); + span5 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(780.787f, 51.3394f, -265.6496f) }; - span105[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(824.1245f, 40.93994f, -250.4464f) }; obj88.Locations = list181; reference133 = obj88; - ref GatheringNode reference134 = ref span104[1]; + num3++; + ref GatheringNode reference134 = ref span4[num3]; GatheringNode obj89 = new GatheringNode { DataId = 32304u }; - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = new GatheringLocation + num4 = 1; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + span5 = CollectionsMarshal.AsSpan(list182); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(816.6475f, 41.2146f, -263.6606f) }; @@ -8794,21 +10281,25 @@ public static class AssemblyGatheringLocationLoader reference134 = obj89; gatheringNodeGroup45.Nodes = list180; reference132 = gatheringNodeGroup45; - ref GatheringNodeGroup reference135 = ref span101[2]; + num++; + ref GatheringNodeGroup reference135 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span106 = CollectionsMarshal.AsSpan(list183); - ref GatheringNode reference136 = ref span106[0]; + num3 = 2; + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + span4 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref GatheringNode reference136 = ref span4[num2]; GatheringNode obj90 = new GatheringNode { DataId = 32306u }; - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new GatheringLocation + num5 = 1; + List list184 = new List(num5); + CollectionsMarshal.SetCount(list184, num5); + span5 = CollectionsMarshal.AsSpan(list184); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(648.2073f, 75.29906f, -226.7926f), MinimumAngle = 25, @@ -8816,20 +10307,23 @@ public static class AssemblyGatheringLocationLoader }; obj90.Locations = list184; reference136 = obj90; - ref GatheringNode reference137 = ref span106[1]; + num2++; + ref GatheringNode reference137 = ref span4[num2]; GatheringNode obj91 = new GatheringNode { DataId = 32307u }; - num3 = 2; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span107 = CollectionsMarshal.AsSpan(list185); - span107[0] = new GatheringLocation + num4 = 2; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span5 = CollectionsMarshal.AsSpan(list185); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(652.0435f, 71.82505f, -241.2778f) }; - span107[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(645.0362f, 69.79202f, -255.1373f) }; @@ -8843,12 +10337,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; gatheringRoot17.Author = list186; - num = 1; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -8856,33 +10354,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - ref GatheringNodeGroup reference138 = ref CollectionsMarshal.AsSpan(list188)[0]; + span3 = CollectionsMarshal.AsSpan(list188); + index = 0; + ref GatheringNodeGroup reference138 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - ref GatheringNode reference139 = ref CollectionsMarshal.AsSpan(list189)[0]; + span4 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + ref GatheringNode reference139 = ref span4[num3]; GatheringNode obj92 = new GatheringNode { DataId = 32308u }; - num3 = 3; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span108 = CollectionsMarshal.AsSpan(list190); - span108[0] = new GatheringLocation + num5 = 3; + List list190 = new List(num5); + CollectionsMarshal.SetCount(list190, num5); + span5 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-531.8166f, 16.39526f, 34.16671f), MinimumAngle = 245, MaximumAngle = 325 }; - span108[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-532.9277f, 15.60621f, 50.29741f), MinimumAngle = 190, MaximumAngle = 330 }; - span108[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-520.6714f, 14.15115f, 73.84262f), MinimumAngle = 105, @@ -8895,34 +10400,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list188; AddLocation(535, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "Theo"; + index = 1; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span = CollectionsMarshal.AsSpan(list191); + num = 0; + span[num] = "Theo"; gatheringRoot18.Author = list191; num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.None, null, null, 622); + span2 = CollectionsMarshal.AsSpan(list192); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 622); gatheringRoot18.Steps = list192; - num = 1; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - ref GatheringNodeGroup reference140 = ref CollectionsMarshal.AsSpan(list193)[0]; + index = 1; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span3 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref GatheringNodeGroup reference140 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span109 = CollectionsMarshal.AsSpan(list194); - ref GatheringNode reference141 = ref span109[0]; + num3 = 3; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + span4 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref GatheringNode reference141 = ref span4[num2]; GatheringNode obj93 = new GatheringNode { DataId = 32314u }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheringLocation + num4 = 1; + List list195 = new List(num4); + CollectionsMarshal.SetCount(list195, num4); + span5 = CollectionsMarshal.AsSpan(list195); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-506.7959f, 67.50204f, -406.9001f), MinimumAngle = 5, @@ -8932,15 +10446,18 @@ public static class AssemblyGatheringLocationLoader }; obj93.Locations = list195; reference141 = obj93; - ref GatheringNode reference142 = ref span109[1]; + num2++; + ref GatheringNode reference142 = ref span4[num2]; GatheringNode obj94 = new GatheringNode { DataId = 32315u }; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new GatheringLocation + num5 = 1; + List list196 = new List(num5); + CollectionsMarshal.SetCount(list196, num5); + span5 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-505.4885f, 67.502f, -397.644f), MinimumAngle = -20, @@ -8950,15 +10467,18 @@ public static class AssemblyGatheringLocationLoader }; obj94.Locations = list196; reference142 = obj94; - ref GatheringNode reference143 = ref span109[2]; + num2++; + ref GatheringNode reference143 = ref span4[num2]; GatheringNode obj95 = new GatheringNode { DataId = 32316u }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + span5 = CollectionsMarshal.AsSpan(list197); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-501.4457f, 67.48835f, -391.6048f), MinimumAngle = -50, @@ -8976,31 +10496,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "Theo"; gatheringRoot19.Author = list198; - num = 1; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.None, null, null, 622); + index = 1; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 622); gatheringRoot19.Steps = list199; num = 3; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span110 = CollectionsMarshal.AsSpan(list200); - ref GatheringNodeGroup reference144 = ref span110[0]; + span3 = CollectionsMarshal.AsSpan(list200); + index = 0; + ref GatheringNodeGroup reference144 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list201)[0]; + span4 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + ref GatheringNode reference145 = ref span4[num3]; GatheringNode obj96 = new GatheringNode { DataId = 32320u }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new GatheringLocation + num5 = 1; + List list202 = new List(num5); + CollectionsMarshal.SetCount(list202, num5); + span5 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(609.3118f, -21.51083f, 558.524f), MinimumAngle = 90, @@ -9011,20 +10540,25 @@ public static class AssemblyGatheringLocationLoader reference145 = obj96; gatheringNodeGroup49.Nodes = list201; reference144 = gatheringNodeGroup49; - ref GatheringNodeGroup reference146 = ref span110[1]; + index++; + ref GatheringNodeGroup reference146 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - ref GatheringNode reference147 = ref CollectionsMarshal.AsSpan(list203)[0]; + num3 = 1; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + span4 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + ref GatheringNode reference147 = ref span4[num2]; GatheringNode obj97 = new GatheringNode { DataId = 32321u }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation + num4 = 1; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + span5 = CollectionsMarshal.AsSpan(list204); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(609.9794f, -21.53052f, 579.6443f), MinimumAngle = 90, @@ -9035,20 +10569,25 @@ public static class AssemblyGatheringLocationLoader reference147 = obj97; gatheringNodeGroup50.Nodes = list203; reference146 = gatheringNodeGroup50; - ref GatheringNodeGroup reference148 = ref span110[2]; + index++; + ref GatheringNodeGroup reference148 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - ref GatheringNode reference149 = ref CollectionsMarshal.AsSpan(list205)[0]; + span4 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + ref GatheringNode reference149 = ref span4[num3]; GatheringNode obj98 = new GatheringNode { DataId = 32322u }; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new GatheringLocation + num5 = 1; + List list206 = new List(num5); + CollectionsMarshal.SetCount(list206, num5); + span5 = CollectionsMarshal.AsSpan(list206); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(588.3865f, -20.42655f, 561.5663f), MinimumAngle = 45, @@ -9062,37 +10601,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list200; AddLocation(543, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "plogon_enjoyer"; + index = 1; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span = CollectionsMarshal.AsSpan(list207); + num = 0; + span[num] = "plogon_enjoyer"; gatheringRoot20.Author = list207; num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.None, null, null, 622) + span2 = CollectionsMarshal.AsSpan(list208); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot20.Steps = list208; - num = 3; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span111 = CollectionsMarshal.AsSpan(list209); - ref GatheringNodeGroup reference150 = ref span111[0]; + index = 3; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + span3 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref GatheringNodeGroup reference150 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - ref GatheringNode reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + span4 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref GatheringNode reference151 = ref span4[num2]; GatheringNode obj99 = new GatheringNode { DataId = 32323u }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheringLocation + num4 = 1; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + span5 = CollectionsMarshal.AsSpan(list211); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-54.36381f, 55.83623f, -357.2043f) }; @@ -9100,20 +10648,25 @@ public static class AssemblyGatheringLocationLoader reference151 = obj99; gatheringNodeGroup52.Nodes = list210; reference150 = gatheringNodeGroup52; - ref GatheringNodeGroup reference152 = ref span111[1]; + num++; + ref GatheringNodeGroup reference152 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - ref GatheringNode reference153 = ref CollectionsMarshal.AsSpan(list212)[0]; + span4 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + ref GatheringNode reference153 = ref span4[num3]; GatheringNode obj100 = new GatheringNode { DataId = 32325u }; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheringLocation + num5 = 1; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + span5 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-56.99122f, 59.4855f, -368.9053f) }; @@ -9121,20 +10674,25 @@ public static class AssemblyGatheringLocationLoader reference153 = obj100; gatheringNodeGroup53.Nodes = list212; reference152 = gatheringNodeGroup53; - ref GatheringNodeGroup reference154 = ref span111[2]; + num++; + ref GatheringNodeGroup reference154 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; + num3 = 1; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + span4 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref GatheringNode reference155 = ref span4[num2]; GatheringNode obj101 = new GatheringNode { DataId = 32324u }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + num4 = 1; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + span5 = CollectionsMarshal.AsSpan(list215); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-83.84797f, 60.70433f, -366.7615f) }; @@ -9148,12 +10706,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "plogon_enjoyer"; gatheringRoot21.Author = list216; - num = 1; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.None, null, null, 622) + index = 1; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; @@ -9161,21 +10723,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span112 = CollectionsMarshal.AsSpan(list218); - ref GatheringNodeGroup reference156 = ref span112[0]; + span3 = CollectionsMarshal.AsSpan(list218); + index = 0; + ref GatheringNodeGroup reference156 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list219)[0]; + span4 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + ref GatheringNode reference157 = ref span4[num3]; GatheringNode obj102 = new GatheringNode { DataId = 32335u }; - num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new GatheringLocation + num5 = 1; + List list220 = new List(num5); + CollectionsMarshal.SetCount(list220, num5); + span5 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-80.14488f, 58.18221f, -358.3333f) }; @@ -9183,20 +10750,25 @@ public static class AssemblyGatheringLocationLoader reference157 = obj102; gatheringNodeGroup55.Nodes = list219; reference156 = gatheringNodeGroup55; - ref GatheringNodeGroup reference158 = ref span112[1]; + index++; + ref GatheringNodeGroup reference158 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list221)[0]; + num3 = 1; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + span4 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref GatheringNode reference159 = ref span4[num2]; GatheringNode obj103 = new GatheringNode { DataId = 32336u }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new GatheringLocation + num4 = 1; + List list222 = new List(num4); + CollectionsMarshal.SetCount(list222, num4); + span5 = CollectionsMarshal.AsSpan(list222); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-58.9046f, 52.59887f, -350.7942f) }; @@ -9204,20 +10776,25 @@ public static class AssemblyGatheringLocationLoader reference159 = obj103; gatheringNodeGroup56.Nodes = list221; reference158 = gatheringNodeGroup56; - ref GatheringNodeGroup reference160 = ref span112[2]; + index++; + ref GatheringNodeGroup reference160 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - ref GatheringNode reference161 = ref CollectionsMarshal.AsSpan(list223)[0]; + span4 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + ref GatheringNode reference161 = ref span4[num3]; GatheringNode obj104 = new GatheringNode { DataId = 32337u }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation + num5 = 1; + List list224 = new List(num5); + CollectionsMarshal.SetCount(list224, num5); + span5 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-81.5958f, 51.05495f, -334.9854f) }; @@ -9228,45 +10805,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list218; AddLocation(548, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - num = 1; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + index = 1; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + span = CollectionsMarshal.AsSpan(list225); + num = 0; + span[num] = "liza"; gatheringRoot22.Author = list225; num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.None, null, null, 397) + span2 = CollectionsMarshal.AsSpan(list226); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; gatheringRoot22.Steps = list226; - num = 3; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span113 = CollectionsMarshal.AsSpan(list227); - ref GatheringNodeGroup reference162 = ref span113[0]; + index = 3; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span3 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref GatheringNodeGroup reference162 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span114 = CollectionsMarshal.AsSpan(list228); - ref GatheringNode reference163 = ref span114[0]; + num3 = 2; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + span4 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref GatheringNode reference163 = ref span4[num2]; GatheringNode obj105 = new GatheringNode { DataId = 32349u }; - num3 = 2; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - Span span115 = CollectionsMarshal.AsSpan(list229); - span115[0] = new GatheringLocation + num4 = 2; + List list229 = new List(num4); + CollectionsMarshal.SetCount(list229, num4); + span5 = CollectionsMarshal.AsSpan(list229); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(63.68f, 227.89f, 570.31f), MinimumAngle = 140, MaximumAngle = 275 }; - span115[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(100.3585f, 236.1064f, 551.248f), MinimumAngle = 110, @@ -9274,15 +10859,18 @@ public static class AssemblyGatheringLocationLoader }; obj105.Locations = list229; reference163 = obj105; - ref GatheringNode reference164 = ref span114[1]; + num2++; + ref GatheringNode reference164 = ref span4[num2]; GatheringNode obj106 = new GatheringNode { DataId = 32348u }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = new GatheringLocation + num5 = 1; + List list230 = new List(num5); + CollectionsMarshal.SetCount(list230, num5); + span5 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(68.42817f, 226.018f, 558.3953f), MinimumAngle = -15, @@ -9292,21 +10880,25 @@ public static class AssemblyGatheringLocationLoader reference164 = obj106; gatheringNodeGroup58.Nodes = list228; reference162 = gatheringNodeGroup58; - ref GatheringNodeGroup reference165 = ref span113[1]; + num++; + ref GatheringNodeGroup reference165 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span116 = CollectionsMarshal.AsSpan(list231); - ref GatheringNode reference166 = ref span116[0]; + span4 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + ref GatheringNode reference166 = ref span4[num3]; GatheringNode obj107 = new GatheringNode { DataId = 32346u }; - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = new GatheringLocation + num4 = 1; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + span5 = CollectionsMarshal.AsSpan(list232); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-19.27065f, 219.13f, 618.5656f), MinimumAngle = 70, @@ -9314,22 +10906,25 @@ public static class AssemblyGatheringLocationLoader }; obj107.Locations = list232; reference166 = obj107; - ref GatheringNode reference167 = ref span116[1]; + num3++; + ref GatheringNode reference167 = ref span4[num3]; GatheringNode obj108 = new GatheringNode { DataId = 32347u }; - num3 = 2; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span117 = CollectionsMarshal.AsSpan(list233); - span117[0] = new GatheringLocation + num5 = 2; + List list233 = new List(num5); + CollectionsMarshal.SetCount(list233, num5); + span5 = CollectionsMarshal.AsSpan(list233); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-11.97839f, 222.4612f, 613.5499f), MinimumAngle = 80, MaximumAngle = 235 }; - span117[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-9.830506f, 220.8649f, 596.9268f), MinimumAngle = 70, @@ -9339,21 +10934,25 @@ public static class AssemblyGatheringLocationLoader reference167 = obj108; gatheringNodeGroup59.Nodes = list231; reference165 = gatheringNodeGroup59; - ref GatheringNodeGroup reference168 = ref span113[2]; + num++; + ref GatheringNodeGroup reference168 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span118 = CollectionsMarshal.AsSpan(list234); - ref GatheringNode reference169 = ref span118[0]; + num3 = 2; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + span4 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + ref GatheringNode reference169 = ref span4[num2]; GatheringNode obj109 = new GatheringNode { DataId = 32344u }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new GatheringLocation + num4 = 1; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + span5 = CollectionsMarshal.AsSpan(list235); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-60.89f, 241.99f, 692.56f), MinimumAngle = 60, @@ -9361,22 +10960,25 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list235; reference169 = obj109; - ref GatheringNode reference170 = ref span118[1]; + num2++; + ref GatheringNode reference170 = ref span4[num2]; GatheringNode obj110 = new GatheringNode { DataId = 32345u }; - num3 = 2; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - Span span119 = CollectionsMarshal.AsSpan(list236); - span119[0] = new GatheringLocation + num5 = 2; + List list236 = new List(num5); + CollectionsMarshal.SetCount(list236, num5); + span5 = CollectionsMarshal.AsSpan(list236); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-70.72009f, 242.5652f, 704.0363f), MinimumAngle = 70, MaximumAngle = 225 }; - span119[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-49.4545f, 241.67f, 686.183f), MinimumAngle = 100, @@ -9392,12 +10994,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list237); + index = 0; + span[index] = "liza"; gatheringRoot23.Author = list237; - num = 1; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.None, null, null, 397) + index = 1; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + span2 = CollectionsMarshal.AsSpan(list238); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -9405,27 +11011,31 @@ public static class AssemblyGatheringLocationLoader num = 3; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span120 = CollectionsMarshal.AsSpan(list239); - ref GatheringNodeGroup reference171 = ref span120[0]; + span3 = CollectionsMarshal.AsSpan(list239); + index = 0; + ref GatheringNodeGroup reference171 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span121 = CollectionsMarshal.AsSpan(list240); - ref GatheringNode reference172 = ref span121[0]; + span4 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + ref GatheringNode reference172 = ref span4[num3]; GatheringNode obj111 = new GatheringNode { DataId = 32355u }; - num3 = 2; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span122 = CollectionsMarshal.AsSpan(list241); - span122[0] = new GatheringLocation + num4 = 2; + List list241 = new List(num4); + CollectionsMarshal.SetCount(list241, num4); + span5 = CollectionsMarshal.AsSpan(list241); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(484.6112f, 160.7014f, -339.9558f) }; - span122[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(479.6101f, 160.8177f, -328.4199f), MinimumAngle = 160, @@ -9433,15 +11043,18 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list241; reference172 = obj111; - ref GatheringNode reference173 = ref span121[1]; + num3++; + ref GatheringNode reference173 = ref span4[num3]; GatheringNode obj112 = new GatheringNode { DataId = 32354u }; - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = new GatheringLocation + num5 = 1; + List list242 = new List(num5); + CollectionsMarshal.SetCount(list242, num5); + span5 = CollectionsMarshal.AsSpan(list242); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(481.3153f, 160.57f, -339.8337f), MinimumAngle = -150, @@ -9451,40 +11064,47 @@ public static class AssemblyGatheringLocationLoader reference173 = obj112; gatheringNodeGroup61.Nodes = list240; reference171 = gatheringNodeGroup61; - ref GatheringNodeGroup reference174 = ref span120[1]; + index++; + ref GatheringNodeGroup reference174 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span123 = CollectionsMarshal.AsSpan(list243); - ref GatheringNode reference175 = ref span123[0]; + num3 = 2; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + span4 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref GatheringNode reference175 = ref span4[num2]; GatheringNode obj113 = new GatheringNode { DataId = 32351u }; - num3 = 2; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span124 = CollectionsMarshal.AsSpan(list244); - span124[0] = new GatheringLocation + num4 = 2; + List list244 = new List(num4); + CollectionsMarshal.SetCount(list244, num4); + span5 = CollectionsMarshal.AsSpan(list244); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(602.9045f, 172.9519f, -376.0714f) }; - span124[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(610.5079f, 174.6463f, -380.3387f) }; obj113.Locations = list244; reference175 = obj113; - ref GatheringNode reference176 = ref span123[1]; + num2++; + ref GatheringNode reference176 = ref span4[num2]; GatheringNode obj114 = new GatheringNode { DataId = 32350u }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation + num5 = 1; + List list245 = new List(num5); + CollectionsMarshal.SetCount(list245, num5); + span5 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(609.4385f, 174.6537f, -376.958f) }; @@ -9492,40 +11112,47 @@ public static class AssemblyGatheringLocationLoader reference176 = obj114; gatheringNodeGroup62.Nodes = list243; reference174 = gatheringNodeGroup62; - ref GatheringNodeGroup reference177 = ref span120[2]; + index++; + ref GatheringNodeGroup reference177 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span125 = CollectionsMarshal.AsSpan(list246); - ref GatheringNode reference178 = ref span125[0]; + span4 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + ref GatheringNode reference178 = ref span4[num3]; GatheringNode obj115 = new GatheringNode { DataId = 32353u }; - num3 = 2; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - Span span126 = CollectionsMarshal.AsSpan(list247); - span126[0] = new GatheringLocation + num4 = 2; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + span5 = CollectionsMarshal.AsSpan(list247); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(457.2875f, 160.5861f, -451.3749f) }; - span126[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(471.3904f, 159.7412f, -441.1613f) }; obj115.Locations = list247; reference178 = obj115; - ref GatheringNode reference179 = ref span125[1]; + num3++; + ref GatheringNode reference179 = ref span4[num3]; GatheringNode obj116 = new GatheringNode { DataId = 32352u }; - num3 = 1; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = new GatheringLocation + num5 = 1; + List list248 = new List(num5); + CollectionsMarshal.SetCount(list248, num5); + span5 = CollectionsMarshal.AsSpan(list248); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(478.0674f, 161.2902f, -449.485f), MinimumAngle = 0, @@ -9538,45 +11165,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot23.Groups = list239; AddLocation(552, gatheringRoot23); GatheringRoot gatheringRoot24 = new GatheringRoot(); - num = 1; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "liza"; + index = 1; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + span = CollectionsMarshal.AsSpan(list249); + num = 0; + span[num] = "liza"; gatheringRoot24.Author = list249; num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.None, null, null, 400) + span2 = CollectionsMarshal.AsSpan(list250); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; gatheringRoot24.Steps = list250; - num = 3; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span127 = CollectionsMarshal.AsSpan(list251); - ref GatheringNodeGroup reference180 = ref span127[0]; + index = 3; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + span3 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref GatheringNodeGroup reference180 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span128 = CollectionsMarshal.AsSpan(list252); - ref GatheringNode reference181 = ref span128[0]; + num3 = 2; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + span4 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + ref GatheringNode reference181 = ref span4[num2]; GatheringNode obj117 = new GatheringNode { DataId = 32357u }; - num3 = 2; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span129 = CollectionsMarshal.AsSpan(list253); - span129[0] = new GatheringLocation + num4 = 2; + List list253 = new List(num4); + CollectionsMarshal.SetCount(list253, num4); + span5 = CollectionsMarshal.AsSpan(list253); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(557.625f, 5.119438f, 180.6541f), MinimumAngle = -70, MaximumAngle = 55 }; - span129[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(570.8357f, 11.89507f, 164.9729f), MinimumAngle = 55, @@ -9584,15 +11219,18 @@ public static class AssemblyGatheringLocationLoader }; obj117.Locations = list253; reference181 = obj117; - ref GatheringNode reference182 = ref span128[1]; + num2++; + ref GatheringNode reference182 = ref span4[num2]; GatheringNode obj118 = new GatheringNode { DataId = 32356u }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new GatheringLocation + num5 = 1; + List list254 = new List(num5); + CollectionsMarshal.SetCount(list254, num5); + span5 = CollectionsMarshal.AsSpan(list254); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(572.8384f, 11.68007f, 155.6572f), MinimumAngle = 70, @@ -9602,21 +11240,25 @@ public static class AssemblyGatheringLocationLoader reference182 = obj118; gatheringNodeGroup64.Nodes = list252; reference180 = gatheringNodeGroup64; - ref GatheringNodeGroup reference183 = ref span127[1]; + num++; + ref GatheringNodeGroup reference183 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span130 = CollectionsMarshal.AsSpan(list255); - ref GatheringNode reference184 = ref span130[0]; + span4 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + ref GatheringNode reference184 = ref span4[num3]; GatheringNode obj119 = new GatheringNode { DataId = 32358u }; - num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = new GatheringLocation + num4 = 1; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + span5 = CollectionsMarshal.AsSpan(list256); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(665.114f, 43.93011f, 151.3629f), MinimumAngle = -80, @@ -9624,22 +11266,25 @@ public static class AssemblyGatheringLocationLoader }; obj119.Locations = list256; reference184 = obj119; - ref GatheringNode reference185 = ref span130[1]; + num3++; + ref GatheringNode reference185 = ref span4[num3]; GatheringNode obj120 = new GatheringNode { DataId = 32359u }; - num3 = 2; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span131 = CollectionsMarshal.AsSpan(list257); - span131[0] = new GatheringLocation + num5 = 2; + List list257 = new List(num5); + CollectionsMarshal.SetCount(list257, num5); + span5 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(697.7376f, 41.87314f, 124.1553f), MinimumAngle = -125, MaximumAngle = 30 }; - span131[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(681.178f, 41.71732f, 147.9972f), MinimumAngle = -15, @@ -9649,21 +11294,25 @@ public static class AssemblyGatheringLocationLoader reference185 = obj120; gatheringNodeGroup65.Nodes = list255; reference183 = gatheringNodeGroup65; - ref GatheringNodeGroup reference186 = ref span127[2]; + num++; + ref GatheringNodeGroup reference186 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num2 = 2; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span132 = CollectionsMarshal.AsSpan(list258); - ref GatheringNode reference187 = ref span132[0]; + num3 = 2; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + span4 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + ref GatheringNode reference187 = ref span4[num2]; GatheringNode obj121 = new GatheringNode { DataId = 32360u }; - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = new GatheringLocation + num4 = 1; + List list259 = new List(num4); + CollectionsMarshal.SetCount(list259, num4); + span5 = CollectionsMarshal.AsSpan(list259); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(755.3978f, 20.37826f, 201.3921f), MinimumAngle = -30, @@ -9671,22 +11320,25 @@ public static class AssemblyGatheringLocationLoader }; obj121.Locations = list259; reference187 = obj121; - ref GatheringNode reference188 = ref span132[1]; + num2++; + ref GatheringNode reference188 = ref span4[num2]; GatheringNode obj122 = new GatheringNode { DataId = 32361u }; - num3 = 2; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span133 = CollectionsMarshal.AsSpan(list260); - span133[0] = new GatheringLocation + num5 = 2; + List list260 = new List(num5); + CollectionsMarshal.SetCount(list260, num5); + span5 = CollectionsMarshal.AsSpan(list260); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(771.5975f, 20.41353f, 204.8761f), MinimumAngle = -45, MaximumAngle = 65 }; - span133[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(739.1428f, 23.87582f, 196.4766f), MinimumAngle = -40, @@ -9702,12 +11354,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; gatheringRoot25.Author = list261; - num = 1; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.None, null, null, 400) + index = 1; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; @@ -9715,41 +11371,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span134 = CollectionsMarshal.AsSpan(list263); - ref GatheringNodeGroup reference189 = ref span134[0]; + span3 = CollectionsMarshal.AsSpan(list263); + index = 0; + ref GatheringNodeGroup reference189 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 2; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span135 = CollectionsMarshal.AsSpan(list264); - ref GatheringNode reference190 = ref span135[0]; + span4 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + ref GatheringNode reference190 = ref span4[num3]; GatheringNode obj123 = new GatheringNode { DataId = 32366u }; - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheringLocation + num4 = 1; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + span5 = CollectionsMarshal.AsSpan(list265); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-699.5319f, 91.18189f, -362.7602f) }; obj123.Locations = list265; reference190 = obj123; - ref GatheringNode reference191 = ref span135[1]; + num3++; + ref GatheringNode reference191 = ref span4[num3]; GatheringNode obj124 = new GatheringNode { DataId = 32367u }; - num3 = 2; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - Span span136 = CollectionsMarshal.AsSpan(list266); - span136[0] = new GatheringLocation + num5 = 2; + List list266 = new List(num5); + CollectionsMarshal.SetCount(list266, num5); + span5 = CollectionsMarshal.AsSpan(list266); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-681.9284f, 91.30399f, -363.0468f) }; - span136[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-709.8129f, 91.42828f, -361.5186f), MinimumAngle = 85, @@ -9759,21 +11422,25 @@ public static class AssemblyGatheringLocationLoader reference191 = obj124; gatheringNodeGroup67.Nodes = list264; reference189 = gatheringNodeGroup67; - ref GatheringNodeGroup reference192 = ref span134[1]; + index++; + ref GatheringNodeGroup reference192 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span137 = CollectionsMarshal.AsSpan(list267); - ref GatheringNode reference193 = ref span137[0]; + num3 = 2; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + span4 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + ref GatheringNode reference193 = ref span4[num2]; GatheringNode obj125 = new GatheringNode { DataId = 32364u }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new GatheringLocation + num4 = 1; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + span5 = CollectionsMarshal.AsSpan(list268); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-680.1304f, 91.30952f, -479.2773f), MinimumAngle = 50, @@ -9781,22 +11448,25 @@ public static class AssemblyGatheringLocationLoader }; obj125.Locations = list268; reference193 = obj125; - ref GatheringNode reference194 = ref span137[1]; + num2++; + ref GatheringNode reference194 = ref span4[num2]; GatheringNode obj126 = new GatheringNode { DataId = 32365u }; - num3 = 2; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span138 = CollectionsMarshal.AsSpan(list269); - span138[0] = new GatheringLocation + num5 = 2; + List list269 = new List(num5); + CollectionsMarshal.SetCount(list269, num5); + span5 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-691.5847f, 91.2657f, -491.8746f), MinimumAngle = -115, MaximumAngle = 90 }; - span138[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-685.3473f, 91.26568f, -474.3657f), MinimumAngle = 0, @@ -9806,21 +11476,25 @@ public static class AssemblyGatheringLocationLoader reference194 = obj126; gatheringNodeGroup68.Nodes = list267; reference192 = gatheringNodeGroup68; - ref GatheringNodeGroup reference195 = ref span134[2]; + index++; + ref GatheringNodeGroup reference195 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span139 = CollectionsMarshal.AsSpan(list270); - ref GatheringNode reference196 = ref span139[0]; + span4 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + ref GatheringNode reference196 = ref span4[num3]; GatheringNode obj127 = new GatheringNode { DataId = 32362u }; - num3 = 1; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new GatheringLocation + num4 = 1; + List list271 = new List(num4); + CollectionsMarshal.SetCount(list271, num4); + span5 = CollectionsMarshal.AsSpan(list271); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-764.3091f, 91.5154f, -554.3649f), MinimumAngle = -125, @@ -9828,22 +11502,25 @@ public static class AssemblyGatheringLocationLoader }; obj127.Locations = list271; reference196 = obj127; - ref GatheringNode reference197 = ref span139[1]; + num3++; + ref GatheringNode reference197 = ref span4[num3]; GatheringNode obj128 = new GatheringNode { DataId = 32363u }; - num3 = 2; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span140 = CollectionsMarshal.AsSpan(list272); - span140[0] = new GatheringLocation + num5 = 2; + List list272 = new List(num5); + CollectionsMarshal.SetCount(list272, num5); + span5 = CollectionsMarshal.AsSpan(list272); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-763.1495f, 91.37257f, -542.7809f), MinimumAngle = 70, MaximumAngle = 305 }; - span140[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-776.5944f, 91.16921f, -566.8766f), MinimumAngle = -95, @@ -9856,34 +11533,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot25.Groups = list263; AddLocation(554, gatheringRoot25); GatheringRoot gatheringRoot26 = new GatheringRoot(); - num = 1; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + index = 1; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span = CollectionsMarshal.AsSpan(list273); + num = 0; + span[num] = "liza"; gatheringRoot26.Author = list273; num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.None, null, null, 814); + span2 = CollectionsMarshal.AsSpan(list274); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 814); gatheringRoot26.Steps = list274; - num = 6; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span141 = CollectionsMarshal.AsSpan(list275); - ref GatheringNodeGroup reference198 = ref span141[0]; + index = 6; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + span3 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref GatheringNodeGroup reference198 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref GatheringNode reference199 = ref CollectionsMarshal.AsSpan(list276)[0]; + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + span4 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref GatheringNode reference199 = ref span4[num2]; GatheringNode obj129 = new GatheringNode { DataId = 32512u }; - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new GatheringLocation + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + span5 = CollectionsMarshal.AsSpan(list277); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-221.5365f, 88.75751f, 36.51096f), MinimumAngle = -100, @@ -9893,20 +11579,25 @@ public static class AssemblyGatheringLocationLoader reference199 = obj129; gatheringNodeGroup70.Nodes = list276; reference198 = gatheringNodeGroup70; - ref GatheringNodeGroup reference200 = ref span141[1]; + num++; + ref GatheringNodeGroup reference200 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - ref GatheringNode reference201 = ref CollectionsMarshal.AsSpan(list278)[0]; + span4 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + ref GatheringNode reference201 = ref span4[num3]; GatheringNode obj130 = new GatheringNode { DataId = 32513u }; - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new GatheringLocation + num5 = 1; + List list279 = new List(num5); + CollectionsMarshal.SetCount(list279, num5); + span5 = CollectionsMarshal.AsSpan(list279); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-227.0897f, 89.90434f, 37.42806f), MinimumAngle = -20, @@ -9916,20 +11607,25 @@ public static class AssemblyGatheringLocationLoader reference201 = obj130; gatheringNodeGroup71.Nodes = list278; reference200 = gatheringNodeGroup71; - ref GatheringNodeGroup reference202 = ref span141[2]; + num++; + ref GatheringNodeGroup reference202 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup72 = new GatheringNodeGroup(); - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - ref GatheringNode reference203 = ref CollectionsMarshal.AsSpan(list280)[0]; + num3 = 1; + List list280 = new List(num3); + CollectionsMarshal.SetCount(list280, num3); + span4 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + ref GatheringNode reference203 = ref span4[num2]; GatheringNode obj131 = new GatheringNode { DataId = 32514u }; - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new GatheringLocation + num4 = 1; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + span5 = CollectionsMarshal.AsSpan(list281); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-233.9371f, 89.18435f, 42.91663f), MinimumAngle = -110, @@ -9939,20 +11635,25 @@ public static class AssemblyGatheringLocationLoader reference203 = obj131; gatheringNodeGroup72.Nodes = list280; reference202 = gatheringNodeGroup72; - ref GatheringNodeGroup reference204 = ref span141[3]; + num++; + ref GatheringNodeGroup reference204 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup73 = new GatheringNodeGroup(); num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - ref GatheringNode reference205 = ref CollectionsMarshal.AsSpan(list282)[0]; + span4 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + ref GatheringNode reference205 = ref span4[num3]; GatheringNode obj132 = new GatheringNode { DataId = 32515u }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheringLocation + num5 = 1; + List list283 = new List(num5); + CollectionsMarshal.SetCount(list283, num5); + span5 = CollectionsMarshal.AsSpan(list283); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-243.0384f, 88.70179f, 48.95438f), MinimumAngle = -70, @@ -9962,20 +11663,25 @@ public static class AssemblyGatheringLocationLoader reference205 = obj132; gatheringNodeGroup73.Nodes = list282; reference204 = gatheringNodeGroup73; - ref GatheringNodeGroup reference206 = ref span141[4]; + num++; + ref GatheringNodeGroup reference206 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup74 = new GatheringNodeGroup(); - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - ref GatheringNode reference207 = ref CollectionsMarshal.AsSpan(list284)[0]; + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + span4 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + ref GatheringNode reference207 = ref span4[num2]; GatheringNode obj133 = new GatheringNode { DataId = 32516u }; - num3 = 1; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheringLocation + num4 = 1; + List list285 = new List(num4); + CollectionsMarshal.SetCount(list285, num4); + span5 = CollectionsMarshal.AsSpan(list285); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-256.5147f, 90.32328f, 51.07351f), MinimumAngle = -75, @@ -9985,20 +11691,25 @@ public static class AssemblyGatheringLocationLoader reference207 = obj133; gatheringNodeGroup74.Nodes = list284; reference206 = gatheringNodeGroup74; - ref GatheringNodeGroup reference208 = ref span141[5]; + num++; + ref GatheringNodeGroup reference208 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup75 = new GatheringNodeGroup(); num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - ref GatheringNode reference209 = ref CollectionsMarshal.AsSpan(list286)[0]; + span4 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + ref GatheringNode reference209 = ref span4[num3]; GatheringNode obj134 = new GatheringNode { DataId = 32517u }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = new GatheringLocation + num5 = 1; + List list287 = new List(num5); + CollectionsMarshal.SetCount(list287, num5); + span5 = CollectionsMarshal.AsSpan(list287); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-265.2769f, 90.43383f, 45.49376f), MinimumAngle = -40, @@ -10014,12 +11725,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - CollectionsMarshal.AsSpan(list288)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list288); + index = 0; + span[index] = "liza"; gatheringRoot27.Author = list288; - num = 1; - List list289 = new List(num); - CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list289 = new List(index); + CollectionsMarshal.SetCount(list289, index); + span2 = CollectionsMarshal.AsSpan(list289); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; @@ -10027,29 +11742,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span142 = CollectionsMarshal.AsSpan(list290); - ref GatheringNodeGroup reference210 = ref span142[0]; + span3 = CollectionsMarshal.AsSpan(list290); + index = 0; + ref GatheringNodeGroup reference210 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup76 = new GatheringNodeGroup(); - num2 = 2; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span143 = CollectionsMarshal.AsSpan(list291); - ref GatheringNode reference211 = ref span143[0]; + num3 = 2; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + span4 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + ref GatheringNode reference211 = ref span4[num2]; GatheringNode obj135 = new GatheringNode { DataId = 32625u }; - num3 = 2; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span144 = CollectionsMarshal.AsSpan(list292); - span144[0] = new GatheringLocation + num4 = 2; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + span5 = CollectionsMarshal.AsSpan(list292); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(451.1189f, -40.18039f, 184.7025f), MinimumAngle = 95, MaximumAngle = 245 }; - span144[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(471.4881f, -41.63216f, 185.0577f), MinimumAngle = 160, @@ -10057,15 +11776,18 @@ public static class AssemblyGatheringLocationLoader }; obj135.Locations = list292; reference211 = obj135; - ref GatheringNode reference212 = ref span143[1]; + num2++; + ref GatheringNode reference212 = ref span4[num2]; GatheringNode obj136 = new GatheringNode { DataId = 32624u }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new GatheringLocation + num5 = 1; + List list293 = new List(num5); + CollectionsMarshal.SetCount(list293, num5); + span5 = CollectionsMarshal.AsSpan(list293); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(463.4016f, -41.51461f, 181.6076f), MinimumAngle = 90, @@ -10075,21 +11797,25 @@ public static class AssemblyGatheringLocationLoader reference212 = obj136; gatheringNodeGroup76.Nodes = list291; reference210 = gatheringNodeGroup76; - ref GatheringNodeGroup reference213 = ref span142[1]; + index++; + ref GatheringNodeGroup reference213 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup77 = new GatheringNodeGroup(); num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span145 = CollectionsMarshal.AsSpan(list294); - ref GatheringNode reference214 = ref span145[0]; + span4 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + ref GatheringNode reference214 = ref span4[num3]; GatheringNode obj137 = new GatheringNode { DataId = 32622u }; - num3 = 1; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = new GatheringLocation + num4 = 1; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + span5 = CollectionsMarshal.AsSpan(list295); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(507.8041f, -33.50595f, 26.54234f), MinimumAngle = 60, @@ -10099,22 +11825,25 @@ public static class AssemblyGatheringLocationLoader }; obj137.Locations = list295; reference214 = obj137; - ref GatheringNode reference215 = ref span145[1]; + num3++; + ref GatheringNode reference215 = ref span4[num3]; GatheringNode obj138 = new GatheringNode { DataId = 32623u }; - num3 = 2; - List list296 = new List(num3); - CollectionsMarshal.SetCount(list296, num3); - Span span146 = CollectionsMarshal.AsSpan(list296); - span146[0] = new GatheringLocation + num5 = 2; + List list296 = new List(num5); + CollectionsMarshal.SetCount(list296, num5); + span5 = CollectionsMarshal.AsSpan(list296); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(509.3797f, -30.43971f, -2.22134f), MinimumAngle = -55, MaximumAngle = 30 }; - span146[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(490.9295f, -30.41992f, -0.7659363f), MinimumAngle = -70, @@ -10124,28 +11853,32 @@ public static class AssemblyGatheringLocationLoader reference215 = obj138; gatheringNodeGroup77.Nodes = list294; reference213 = gatheringNodeGroup77; - ref GatheringNodeGroup reference216 = ref span142[2]; + index++; + ref GatheringNodeGroup reference216 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup78 = new GatheringNodeGroup(); - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span147 = CollectionsMarshal.AsSpan(list297); - ref GatheringNode reference217 = ref span147[0]; + num3 = 2; + List list297 = new List(num3); + CollectionsMarshal.SetCount(list297, num3); + span4 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + ref GatheringNode reference217 = ref span4[num2]; GatheringNode obj139 = new GatheringNode { DataId = 32621u }; - num3 = 2; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span148 = CollectionsMarshal.AsSpan(list298); - span148[0] = new GatheringLocation + num4 = 2; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + span5 = CollectionsMarshal.AsSpan(list298); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(378.5f, -29.83888f, 25.41485f), MinimumAngle = -65, MaximumAngle = 30 }; - span148[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(358.2361f, -30f, 26.45336f), MinimumAngle = -40, @@ -10153,15 +11886,18 @@ public static class AssemblyGatheringLocationLoader }; obj139.Locations = list298; reference217 = obj139; - ref GatheringNode reference218 = ref span147[1]; + num2++; + ref GatheringNode reference218 = ref span4[num2]; GatheringNode obj140 = new GatheringNode { DataId = 32620u }; - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = new GatheringLocation + num5 = 1; + List list299 = new List(num5); + CollectionsMarshal.SetCount(list299, num5); + span5 = CollectionsMarshal.AsSpan(list299); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(365.5395f, -34.4827f, 42.98462f), MinimumAngle = 190, @@ -10181,12 +11917,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; @@ -10194,43 +11934,50 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 32686u }; - int num3 = 2; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new GatheringLocation + int num4 = 2; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(486.6385f, -28.30028f, -161.7677f), MinimumAngle = 155, MaximumAngle = 335 }; - span3[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(494.8945f, -21.52249f, -137.1469f) }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 32685u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(503.6436f, -23.70927f, -142.2979f) }; @@ -10238,21 +11985,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 32689u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(657.1875f, -26.81644f, -235.4547f), MinimumAngle = 65, @@ -10260,22 +12011,25 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 32690u }; - num3 = 2; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new GatheringLocation + num5 = 2; + List list9 = new List(num5); + CollectionsMarshal.SetCount(list9, num5); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(655.8629f, -27.85928f, -256.156f), MinimumAngle = 65, MaximumAngle = 235 }; - span5[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(656.6887f, -26.66475f, -230.172f), MinimumAngle = -75, @@ -10285,28 +12039,32 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 32688u }; - num3 = 2; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new GatheringLocation + num4 = 2; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(487.4965f, -33.01668f, -304.6423f), MinimumAngle = 150, MaximumAngle = 330 }; - span7[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(477.8194f, -31.87613f, -320.6989f), MinimumAngle = 180, @@ -10314,15 +12072,18 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 32687u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(481.1932f, -32.4591f, -313.7588f), MinimumAngle = 170, @@ -10335,43 +12096,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(611, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 814) + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span8 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span8[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span3 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span9[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span4 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span4[num2]; GatheringNode obj7 = new GatheringNode { DataId = 32816u }; - num3 = 2; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = new GatheringLocation + num4 = 2; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-210.0211f, 27.87489f, 244.1517f) }; - span10[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-184.2966f, 33.53575f, 220.416f), MinimumAngle = -70, @@ -10379,15 +12148,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span9[1]; + num2++; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 32815u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span5 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-194.756f, 30.00866f, 235.5003f), MinimumAngle = 85, @@ -10397,21 +12169,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span8[1]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span11 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span11[0]; + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span4[num3]; GatheringNode obj9 = new GatheringNode { DataId = 32819u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span5 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-184.1455f, 44.3671f, 162.0892f), MinimumAngle = -90, @@ -10419,22 +12195,25 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span11[1]; + num3++; + ref GatheringNode reference15 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 32820u }; - num3 = 2; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = new GatheringLocation + num5 = 2; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + span5 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-164.9459f, 43.40527f, 153.1118f), MinimumAngle = -100, MaximumAngle = 75 }; - span12[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-167.3752f, 47.25292f, 136.0359f), MinimumAngle = -105, @@ -10444,28 +12223,32 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span8[2]; + num++; + ref GatheringNodeGroup reference16 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span13 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span13[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span4 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span4[num2]; GatheringNode obj11 = new GatheringNode { DataId = 32818u }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span14 = CollectionsMarshal.AsSpan(list23); - span14[0] = new GatheringLocation + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span5 = CollectionsMarshal.AsSpan(list23); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-246.385f, 72.55199f, 90.56253f), MinimumAngle = -85, MaximumAngle = 80 }; - span14[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-208.7709f, 77.46264f, 68.17573f), MinimumAngle = -105, @@ -10473,15 +12256,18 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span13[1]; + num2++; + ref GatheringNode reference18 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 32817u }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation + num5 = 1; + List list24 = new List(num5); + CollectionsMarshal.SetCount(list24, num5); + span5 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-243.0861f, 79.1743f, 75.10091f), MinimumAngle = -120, @@ -10497,12 +12283,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 814) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; @@ -10510,22 +12300,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span15 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span16 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span16[0]; + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span4[num3]; GatheringNode obj13 = new GatheringNode { DataId = 32825u }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new GatheringLocation + num4 = 1; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span5 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-482.4797f, 39.54587f, 243.9857f), MinimumAngle = -95, @@ -10533,22 +12327,25 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span16[1]; + num3++; + ref GatheringNode reference21 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 32826u }; - num3 = 2; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span17 = CollectionsMarshal.AsSpan(list30); - span17[0] = new GatheringLocation + num5 = 2; + List list30 = new List(num5); + CollectionsMarshal.SetCount(list30, num5); + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-479.1443f, 39.79183f, 240.7795f), MinimumAngle = -75, MaximumAngle = 15 }; - span17[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-486.3334f, 39.4147f, 246.6178f), MinimumAngle = -105, @@ -10558,28 +12355,32 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span15[1]; + index++; + ref GatheringNodeGroup reference22 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span18 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span18[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span4[num2]; GatheringNode obj15 = new GatheringNode { DataId = 32824u }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = new GatheringLocation + num4 = 2; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span5 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-591.8113f, 26.1771f, 413.057f), MinimumAngle = 165, MaximumAngle = 265 }; - span19[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-583.5104f, 26.20471f, 419.7504f), MinimumAngle = 180, @@ -10587,15 +12388,18 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span18[1]; + num2++; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 32823u }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + num5 = 1; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + span5 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-587.8331f, 26.20816f, 416.5177f), MinimumAngle = 155, @@ -10605,21 +12409,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span15[2]; + index++; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span20 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span20[0]; + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span4[num3]; GatheringNode obj17 = new GatheringNode { DataId = 32821u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-667.9664f, 24.58142f, 365.2537f), MinimumAngle = 165, @@ -10627,22 +12435,25 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span20[1]; + num3++; + ref GatheringNode reference27 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 32822u }; - num3 = 2; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span21 = CollectionsMarshal.AsSpan(list36); - span21[0] = new GatheringLocation + num5 = 2; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + span5 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-672.0605f, 24.69111f, 363.4729f), MinimumAngle = 115, MaximumAngle = 215 }; - span21[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-663.9247f, 24.84755f, 366.6812f), MinimumAngle = 170, @@ -10655,16 +12466,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(650, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span = CollectionsMarshal.AsSpan(list37); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list37; num = 2; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span22 = CollectionsMarshal.AsSpan(list38); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(329.38184f, 9.586891f, 749.2314f), 816) + span2 = CollectionsMarshal.AsSpan(list38); + index = 0; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(329.38184f, 9.586891f, 749.2314f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -10676,54 +12490,63 @@ public static class AssemblyGatheringLocationLoader } } }; - span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.29465f, -38.275272f, 763.0457f), 816) + index++; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.29465f, -38.275272f, 763.0457f), 816) { DisableNavmesh = true, Fly = true }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span23 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span23[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span3 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span24 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span24[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + span4 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span4[num2]; GatheringNode obj19 = new GatheringNode { DataId = 32832u }; - num3 = 3; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span25 = CollectionsMarshal.AsSpan(list41); - span25[0] = new GatheringLocation + num4 = 3; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + span5 = CollectionsMarshal.AsSpan(list41); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(382.7488f, -72.47251f, 794.3513f) }; - span25[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(388.7861f, -74.19925f, 801.0947f) }; - span25[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(386.1797f, -73.5009f, 787.0967f) }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span24[1]; + num2++; + ref GatheringNode reference30 = ref span4[num2]; GatheringNode obj20 = new GatheringNode { DataId = 32831u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + num5 = 1; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + span5 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(396.5799f, -76.29187f, 790.9022f) }; @@ -10731,40 +12554,47 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span23[1]; + num++; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span26 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span26[0]; + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span4[num3]; GatheringNode obj21 = new GatheringNode { DataId = 32830u }; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span27 = CollectionsMarshal.AsSpan(list44); - span27[0] = new GatheringLocation + num4 = 2; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(492.6384f, -82.73045f, 804.714f) }; - span27[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(482.808f, -82.61642f, 802.591f) }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span26[1]; + num3++; + ref GatheringNode reference33 = ref span4[num3]; GatheringNode obj22 = new GatheringNode { DataId = 32829u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + num5 = 1; + List list45 = new List(num5); + CollectionsMarshal.SetCount(list45, num5); + span5 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(493.5814f, -82.43644f, 790.831f) }; @@ -10772,35 +12602,42 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span23[2]; + num++; + ref GatheringNodeGroup reference34 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span28 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span28[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + span4 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span4[num2]; GatheringNode obj23 = new GatheringNode { DataId = 32827u }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new GatheringLocation + num4 = 1; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + span5 = CollectionsMarshal.AsSpan(list47); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(490.9451f, -97.88062f, 636.6115f) }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span28[1]; + num2++; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj24 = new GatheringNode { DataId = 32828u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + num5 = 1; + List list48 = new List(num5); + CollectionsMarshal.SetCount(list48, num5); + span5 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(491.5274f, -100.762f, 626.6958f) }; @@ -10814,13 +12651,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list49; - num = 2; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span29 = CollectionsMarshal.AsSpan(list50); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(491.82068f, 3.9304812f, 487.9401f), 816) + index = 2; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + span2[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(491.82068f, 3.9304812f, 487.9401f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -10832,7 +12672,8 @@ public static class AssemblyGatheringLocationLoader } } }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(506.00256f, -37.76961f, 485.49347f), 816) + num++; + span2[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(506.00256f, -37.76961f, 485.49347f), 816) { DisableNavmesh = true, Fly = true @@ -10841,35 +12682,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span30 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span31 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span31[0]; + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span4[num3]; GatheringNode obj25 = new GatheringNode { DataId = 32836u }; - num3 = 3; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span32 = CollectionsMarshal.AsSpan(list53); - span32[0] = new GatheringLocation + num4 = 3; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span5 = CollectionsMarshal.AsSpan(list53); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(539.5437f, -81.62054f, 520.1647f), MinimumAngle = -30, MaximumAngle = 165 }; - span32[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(555.8599f, -73.65717f, 494.6164f), MinimumAngle = 35, MaximumAngle = 240 }; - span32[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(576.4164f, -69.75835f, 512.9263f), MinimumAngle = -75, @@ -10877,15 +12723,18 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span31[1]; + num3++; + ref GatheringNode reference39 = ref span4[num3]; GatheringNode obj26 = new GatheringNode { DataId = 32835u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + num5 = 1; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(552.5504f, -78.23183f, 512.429f), MinimumAngle = -30, @@ -10895,28 +12744,32 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span30[1]; + index++; + ref GatheringNodeGroup reference40 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span33 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span33[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span4 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span4[num2]; GatheringNode obj27 = new GatheringNode { DataId = 32838u }; - num3 = 2; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span34 = CollectionsMarshal.AsSpan(list56); - span34[0] = new GatheringLocation + num4 = 2; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span5 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(652.7063f, -46.64378f, 488.4543f), MinimumAngle = 0, MaximumAngle = 120 }; - span34[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(669.2959f, -47.14824f, 513.9606f), MinimumAngle = -20, @@ -10924,15 +12777,18 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span33[1]; + num2++; + ref GatheringNode reference42 = ref span4[num2]; GatheringNode obj28 = new GatheringNode { DataId = 32837u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + num5 = 1; + List list57 = new List(num5); + CollectionsMarshal.SetCount(list57, num5); + span5 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(659.1685f, -46.65159f, 499.8015f), MinimumAngle = 0, @@ -10942,21 +12798,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span30[2]; + index++; + ref GatheringNodeGroup reference43 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span35 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span35[0]; + span4 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span4[num3]; GatheringNode obj29 = new GatheringNode { DataId = 32834u }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + span5 = CollectionsMarshal.AsSpan(list59); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(576.1583f, -46.68682f, 375.5306f), MinimumAngle = -40, @@ -10964,15 +12824,18 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span35[1]; + num3++; + ref GatheringNode reference45 = ref span4[num3]; GatheringNode obj30 = new GatheringNode { DataId = 32833u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + span5 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(571.1834f, -46.41214f, 360.5112f), MinimumAngle = 0, @@ -10985,37 +12848,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(652, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span = CollectionsMarshal.AsSpan(list61); + num = 0; + span[num] = "liza"; gatheringRoot6.Author = list61; num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.None, null, null, 817) + span2 = CollectionsMarshal.AsSpan(list62); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span36 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span36[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span3 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - ref GatheringNode reference47 = ref CollectionsMarshal.AsSpan(list64)[0]; + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span4 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span4[num2]; GatheringNode obj31 = new GatheringNode { DataId = 32993u }; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span5 = CollectionsMarshal.AsSpan(list65); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-704.8221f, 2.162976f, 563.2257f), MinimumAngle = 35, @@ -11027,20 +12899,25 @@ public static class AssemblyGatheringLocationLoader reference47 = obj31; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference48 = ref span36[1]; + num++; + ref GatheringNodeGroup reference48 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref GatheringNode reference49 = ref CollectionsMarshal.AsSpan(list66)[0]; + span4 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + ref GatheringNode reference49 = ref span4[num3]; GatheringNode obj32 = new GatheringNode { DataId = 32991u }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation + num5 = 1; + List list67 = new List(num5); + CollectionsMarshal.SetCount(list67, num5); + span5 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-702.9366f, 3.147394f, 580.9824f), MinimumAngle = 20, @@ -11050,20 +12927,25 @@ public static class AssemblyGatheringLocationLoader reference49 = obj32; gatheringNodeGroup17.Nodes = list66; reference48 = gatheringNodeGroup17; - ref GatheringNodeGroup reference50 = ref span36[2]; + num++; + ref GatheringNodeGroup reference50 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - ref GatheringNode reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + span4 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref GatheringNode reference51 = ref span4[num2]; GatheringNode obj33 = new GatheringNode { DataId = 32992u }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span5 = CollectionsMarshal.AsSpan(list69); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-731.9697f, 2.883299f, 562.4577f), MinimumAngle = 100, @@ -11079,42 +12961,52 @@ public static class AssemblyGatheringLocationLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list70); + index = 0; + span[index] = "liza"; gatheringRoot7.Author = list70; - num = 3; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span37 = CollectionsMarshal.AsSpan(list71); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) + index = 3; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + span2 = CollectionsMarshal.AsSpan(list71); + num = 0; + span2[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) + num++; + span2[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) { DisableNavmesh = true, Fly = true }; - span37[2] = new QuestStep(EInteractionType.None, null, null, 817); + num++; + span2[num] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot7.Steps = list71; num = 3; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span38 = CollectionsMarshal.AsSpan(list72); - ref GatheringNodeGroup reference52 = ref span38[0]; + span3 = CollectionsMarshal.AsSpan(list72); + index = 0; + ref GatheringNodeGroup reference52 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list73)[0]; + span4 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + ref GatheringNode reference53 = ref span4[num3]; GatheringNode obj34 = new GatheringNode { DataId = 32996u }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new GatheringLocation + num5 = 1; + List list74 = new List(num5); + CollectionsMarshal.SetCount(list74, num5); + span5 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-831.8083f, -41.57311f, 115.2932f), MinimumAngle = 40, @@ -11126,20 +13018,25 @@ public static class AssemblyGatheringLocationLoader reference53 = obj34; gatheringNodeGroup19.Nodes = list73; reference52 = gatheringNodeGroup19; - ref GatheringNodeGroup reference54 = ref span38[1]; + index++; + ref GatheringNodeGroup reference54 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref GatheringNode reference55 = ref CollectionsMarshal.AsSpan(list75)[0]; + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span4 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref GatheringNode reference55 = ref span4[num2]; GatheringNode obj35 = new GatheringNode { DataId = 32994u }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new GatheringLocation + num4 = 1; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + span5 = CollectionsMarshal.AsSpan(list76); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-874.5662f, -38.51086f, 112.2362f), MinimumAngle = -75, @@ -11149,20 +13046,25 @@ public static class AssemblyGatheringLocationLoader reference55 = obj35; gatheringNodeGroup20.Nodes = list75; reference54 = gatheringNodeGroup20; - ref GatheringNodeGroup reference56 = ref span38[2]; + index++; + ref GatheringNodeGroup reference56 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref GatheringNode reference57 = ref CollectionsMarshal.AsSpan(list77)[0]; + span4 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + ref GatheringNode reference57 = ref span4[num3]; GatheringNode obj36 = new GatheringNode { DataId = 32995u }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation + num5 = 1; + List list78 = new List(num5); + CollectionsMarshal.SetCount(list78, num5); + span5 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-885.0585f, -37.47266f, 140.9555f), MinimumAngle = 225, @@ -11175,34 +13077,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list72; AddLocation(686, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + index = 1; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span = CollectionsMarshal.AsSpan(list79); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list79; num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.None, null, null, 817); + span2 = CollectionsMarshal.AsSpan(list80); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot8.Steps = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span39 = CollectionsMarshal.AsSpan(list81); - ref GatheringNodeGroup reference58 = ref span39[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span3 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref GatheringNodeGroup reference58 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref GatheringNode reference59 = ref CollectionsMarshal.AsSpan(list82)[0]; + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + span4 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + ref GatheringNode reference59 = ref span4[num2]; GatheringNode obj37 = new GatheringNode { DataId = 32997u }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span5 = CollectionsMarshal.AsSpan(list83); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(476.9907f, -2.17159f, -464.3045f), MinimumAngle = -10, @@ -11212,20 +13123,25 @@ public static class AssemblyGatheringLocationLoader reference59 = obj37; gatheringNodeGroup22.Nodes = list82; reference58 = gatheringNodeGroup22; - ref GatheringNodeGroup reference60 = ref span39[1]; + num++; + ref GatheringNodeGroup reference60 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref GatheringNode reference61 = ref CollectionsMarshal.AsSpan(list84)[0]; + span4 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref GatheringNode reference61 = ref span4[num3]; GatheringNode obj38 = new GatheringNode { DataId = 32999u }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new GatheringLocation + num5 = 1; + List list85 = new List(num5); + CollectionsMarshal.SetCount(list85, num5); + span5 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(447.1716f, -0.6280748f, -467.6738f), MinimumAngle = -120, @@ -11235,20 +13151,25 @@ public static class AssemblyGatheringLocationLoader reference61 = obj38; gatheringNodeGroup23.Nodes = list84; reference60 = gatheringNodeGroup23; - ref GatheringNodeGroup reference62 = ref span39[2]; + num++; + ref GatheringNodeGroup reference62 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref GatheringNode reference63 = ref CollectionsMarshal.AsSpan(list86)[0]; + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + span4 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref GatheringNode reference63 = ref span4[num2]; GatheringNode obj39 = new GatheringNode { DataId = 32998u }; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new GatheringLocation + num4 = 1; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + span5 = CollectionsMarshal.AsSpan(list87); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(438.931f, -1.880641f, -455.9972f), MinimumAngle = -80, @@ -11264,31 +13185,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "liza"; gatheringRoot9.Author = list88; - num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.None, null, null, 817); + index = 1; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot9.Steps = list89; num = 3; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span40 = CollectionsMarshal.AsSpan(list90); - ref GatheringNodeGroup reference64 = ref span40[0]; + span3 = CollectionsMarshal.AsSpan(list90); + index = 0; + ref GatheringNodeGroup reference64 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref GatheringNode reference65 = ref CollectionsMarshal.AsSpan(list91)[0]; + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference65 = ref span4[num3]; GatheringNode obj40 = new GatheringNode { DataId = 33002u }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation + num5 = 1; + List list92 = new List(num5); + CollectionsMarshal.SetCount(list92, num5); + span5 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(164.1997f, 24.4362f, 58.99305f), MinimumAngle = 85, @@ -11298,20 +13228,25 @@ public static class AssemblyGatheringLocationLoader reference65 = obj40; gatheringNodeGroup25.Nodes = list91; reference64 = gatheringNodeGroup25; - ref GatheringNodeGroup reference66 = ref span40[1]; + index++; + ref GatheringNodeGroup reference66 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref GatheringNode reference67 = ref CollectionsMarshal.AsSpan(list93)[0]; + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + span4 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref GatheringNode reference67 = ref span4[num2]; GatheringNode obj41 = new GatheringNode { DataId = 33001u }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new GatheringLocation + num4 = 1; + List list94 = new List(num4); + CollectionsMarshal.SetCount(list94, num4); + span5 = CollectionsMarshal.AsSpan(list94); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(131.2174f, 27.21391f, 45.33313f), MinimumAngle = 160, @@ -11321,20 +13256,25 @@ public static class AssemblyGatheringLocationLoader reference67 = obj41; gatheringNodeGroup26.Nodes = list93; reference66 = gatheringNodeGroup26; - ref GatheringNodeGroup reference68 = ref span40[2]; + index++; + ref GatheringNodeGroup reference68 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - ref GatheringNode reference69 = ref CollectionsMarshal.AsSpan(list95)[0]; + span4 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + ref GatheringNode reference69 = ref span4[num3]; GatheringNode obj42 = new GatheringNode { DataId = 33000u }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + num5 = 1; + List list96 = new List(num5); + CollectionsMarshal.SetCount(list96, num5); + span5 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(65.9342f, 22.4589f, 45.68196f), MinimumAngle = 180, @@ -11347,37 +13287,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list90; AddLocation(688, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + index = 1; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span = CollectionsMarshal.AsSpan(list97); + num = 0; + span[num] = "liza"; gatheringRoot10.Author = list97; num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 817) + span2 = CollectionsMarshal.AsSpan(list98); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; gatheringRoot10.Steps = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span41 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference70 = ref span41[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span3 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref GatheringNodeGroup reference70 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref GatheringNode reference71 = ref CollectionsMarshal.AsSpan(list100)[0]; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + span4 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref GatheringNode reference71 = ref span4[num2]; GatheringNode obj43 = new GatheringNode { DataId = 33005u }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new GatheringLocation + num4 = 1; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span5 = CollectionsMarshal.AsSpan(list101); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(214.7744f, -19.57758f, 623.6767f), MinimumAngle = -15, @@ -11387,20 +13336,25 @@ public static class AssemblyGatheringLocationLoader reference71 = obj43; gatheringNodeGroup28.Nodes = list100; reference70 = gatheringNodeGroup28; - ref GatheringNodeGroup reference72 = ref span41[1]; + num++; + ref GatheringNodeGroup reference72 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - ref GatheringNode reference73 = ref CollectionsMarshal.AsSpan(list102)[0]; + span4 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + ref GatheringNode reference73 = ref span4[num3]; GatheringNode obj44 = new GatheringNode { DataId = 33004u }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new GatheringLocation + num5 = 1; + List list103 = new List(num5); + CollectionsMarshal.SetCount(list103, num5); + span5 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(235.4031f, -17.474f, 645.2612f), MinimumAngle = -75, @@ -11410,20 +13364,25 @@ public static class AssemblyGatheringLocationLoader reference73 = obj44; gatheringNodeGroup29.Nodes = list102; reference72 = gatheringNodeGroup29; - ref GatheringNodeGroup reference74 = ref span41[2]; + num++; + ref GatheringNodeGroup reference74 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref GatheringNode reference75 = ref CollectionsMarshal.AsSpan(list104)[0]; + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + span4 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref GatheringNode reference75 = ref span4[num2]; GatheringNode obj45 = new GatheringNode { DataId = 33003u }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation + num4 = 1; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + span5 = CollectionsMarshal.AsSpan(list105); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(263.691f, -15.7453f, 659.6932f), MinimumAngle = 5, @@ -11439,12 +13398,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "liza"; gatheringRoot11.Author = list106; - num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.None, null, null, 817) + index = 1; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -11452,21 +13415,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span42 = CollectionsMarshal.AsSpan(list108); - ref GatheringNodeGroup reference76 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list108); + index = 0; + ref GatheringNodeGroup reference76 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref GatheringNode reference77 = ref CollectionsMarshal.AsSpan(list109)[0]; + span4 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + ref GatheringNode reference77 = ref span4[num3]; GatheringNode obj46 = new GatheringNode { DataId = 33007u }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation + num5 = 1; + List list110 = new List(num5); + CollectionsMarshal.SetCount(list110, num5); + span5 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-643.0819f, 1.715566f, 600.3007f) }; @@ -11474,20 +13442,25 @@ public static class AssemblyGatheringLocationLoader reference77 = obj46; gatheringNodeGroup31.Nodes = list109; reference76 = gatheringNodeGroup31; - ref GatheringNodeGroup reference78 = ref span42[1]; + index++; + ref GatheringNodeGroup reference78 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref GatheringNode reference79 = ref CollectionsMarshal.AsSpan(list111)[0]; + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + span4 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref GatheringNode reference79 = ref span4[num2]; GatheringNode obj47 = new GatheringNode { DataId = 33006u }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new GatheringLocation + num4 = 1; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + span5 = CollectionsMarshal.AsSpan(list112); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-664.0663f, 4.130917f, 608.2639f), MinimumAngle = 100, @@ -11497,20 +13470,25 @@ public static class AssemblyGatheringLocationLoader reference79 = obj47; gatheringNodeGroup32.Nodes = list111; reference78 = gatheringNodeGroup32; - ref GatheringNodeGroup reference80 = ref span42[2]; + index++; + ref GatheringNodeGroup reference80 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - ref GatheringNode reference81 = ref CollectionsMarshal.AsSpan(list113)[0]; + span4 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + ref GatheringNode reference81 = ref span4[num3]; GatheringNode obj48 = new GatheringNode { DataId = 33008u }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new GatheringLocation + num5 = 1; + List list114 = new List(num5); + CollectionsMarshal.SetCount(list114, num5); + span5 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-689.2495f, 4.592032f, 603.05f), MinimumAngle = -95, @@ -11523,45 +13501,55 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list108; AddLocation(690, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + index = 1; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span = CollectionsMarshal.AsSpan(list115); + num = 0; + span[num] = "liza"; gatheringRoot12.Author = list115; num = 3; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span43 = CollectionsMarshal.AsSpan(list116); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) + span2 = CollectionsMarshal.AsSpan(list116); + index = 0; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) + index++; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) { DisableNavmesh = true, Fly = true }; - span43[2] = new QuestStep(EInteractionType.None, null, null, 817); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot12.Steps = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span44 = CollectionsMarshal.AsSpan(list117); - ref GatheringNodeGroup reference82 = ref span44[0]; + index = 3; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span3 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref GatheringNodeGroup reference82 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref GatheringNode reference83 = ref CollectionsMarshal.AsSpan(list118)[0]; + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span4 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference83 = ref span4[num2]; GatheringNode obj49 = new GatheringNode { DataId = 33011u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + span5 = CollectionsMarshal.AsSpan(list119); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-833.2918f, -44.18139f, 229.6708f) }; @@ -11569,20 +13557,25 @@ public static class AssemblyGatheringLocationLoader reference83 = obj49; gatheringNodeGroup34.Nodes = list118; reference82 = gatheringNodeGroup34; - ref GatheringNodeGroup reference84 = ref span44[1]; + num++; + ref GatheringNodeGroup reference84 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref GatheringNode reference85 = ref CollectionsMarshal.AsSpan(list120)[0]; + span4 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + ref GatheringNode reference85 = ref span4[num3]; GatheringNode obj50 = new GatheringNode { DataId = 33010u }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new GatheringLocation + num5 = 1; + List list121 = new List(num5); + CollectionsMarshal.SetCount(list121, num5); + span5 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-869.9858f, -41.20595f, 221.9869f) }; @@ -11590,20 +13583,25 @@ public static class AssemblyGatheringLocationLoader reference85 = obj50; gatheringNodeGroup35.Nodes = list120; reference84 = gatheringNodeGroup35; - ref GatheringNodeGroup reference86 = ref span44[2]; + num++; + ref GatheringNodeGroup reference86 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref GatheringNode reference87 = ref CollectionsMarshal.AsSpan(list122)[0]; + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + span4 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref GatheringNode reference87 = ref span4[num2]; GatheringNode obj51 = new GatheringNode { DataId = 33009u }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new GatheringLocation + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + span5 = CollectionsMarshal.AsSpan(list123); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-847.5519f, -41.43839f, 195.9766f) }; @@ -11617,31 +13615,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "liza"; gatheringRoot13.Author = list124; - num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.None, null, null, 817); + index = 1; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot13.Steps = list125; num = 3; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span45 = CollectionsMarshal.AsSpan(list126); - ref GatheringNodeGroup reference88 = ref span45[0]; + span3 = CollectionsMarshal.AsSpan(list126); + index = 0; + ref GatheringNodeGroup reference88 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref GatheringNode reference89 = ref CollectionsMarshal.AsSpan(list127)[0]; + span4 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + ref GatheringNode reference89 = ref span4[num3]; GatheringNode obj52 = new GatheringNode { DataId = 33013u }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new GatheringLocation + num5 = 1; + List list128 = new List(num5); + CollectionsMarshal.SetCount(list128, num5); + span5 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(471.6041f, 0.1209641f, -476.659f), MinimumAngle = 0, @@ -11651,20 +13658,25 @@ public static class AssemblyGatheringLocationLoader reference89 = obj52; gatheringNodeGroup37.Nodes = list127; reference88 = gatheringNodeGroup37; - ref GatheringNodeGroup reference90 = ref span45[1]; + index++; + ref GatheringNodeGroup reference90 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - ref GatheringNode reference91 = ref CollectionsMarshal.AsSpan(list129)[0]; + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + span4 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref GatheringNode reference91 = ref span4[num2]; GatheringNode obj53 = new GatheringNode { DataId = 33012u }; - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new GatheringLocation + num4 = 1; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + span5 = CollectionsMarshal.AsSpan(list130); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(448.4756f, 2.033593f, -482.1674f), MinimumAngle = 155, @@ -11674,20 +13686,25 @@ public static class AssemblyGatheringLocationLoader reference91 = obj53; gatheringNodeGroup38.Nodes = list129; reference90 = gatheringNodeGroup38; - ref GatheringNodeGroup reference92 = ref span45[2]; + index++; + ref GatheringNodeGroup reference92 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref GatheringNode reference93 = ref CollectionsMarshal.AsSpan(list131)[0]; + span4 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + ref GatheringNode reference93 = ref span4[num3]; GatheringNode obj54 = new GatheringNode { DataId = 33014u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + num5 = 1; + List list132 = new List(num5); + CollectionsMarshal.SetCount(list132, num5); + span5 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(433.1882f, 10.99631f, -517.6039f) }; @@ -11698,34 +13715,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list126; AddLocation(692, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + index = 1; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span = CollectionsMarshal.AsSpan(list133); + num = 0; + span[num] = "liza"; gatheringRoot14.Author = list133; num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 817); + span2 = CollectionsMarshal.AsSpan(list134); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot14.Steps = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span46 = CollectionsMarshal.AsSpan(list135); - ref GatheringNodeGroup reference94 = ref span46[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span3 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref GatheringNodeGroup reference94 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - ref GatheringNode reference95 = ref CollectionsMarshal.AsSpan(list136)[0]; + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + span4 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference95 = ref span4[num2]; GatheringNode obj55 = new GatheringNode { DataId = 33015u }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation + num4 = 1; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + span5 = CollectionsMarshal.AsSpan(list137); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(301.3512f, 8.535884f, 8.796566f), MinimumAngle = 55, @@ -11735,20 +13761,25 @@ public static class AssemblyGatheringLocationLoader reference95 = obj55; gatheringNodeGroup40.Nodes = list136; reference94 = gatheringNodeGroup40; - ref GatheringNodeGroup reference96 = ref span46[1]; + num++; + ref GatheringNodeGroup reference96 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - ref GatheringNode reference97 = ref CollectionsMarshal.AsSpan(list138)[0]; + span4 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + ref GatheringNode reference97 = ref span4[num3]; GatheringNode obj56 = new GatheringNode { DataId = 33016u }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new GatheringLocation + num5 = 1; + List list139 = new List(num5); + CollectionsMarshal.SetCount(list139, num5); + span5 = CollectionsMarshal.AsSpan(list139); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(273.905f, 10.59709f, 19.72124f), MinimumAngle = 135, @@ -11758,20 +13789,25 @@ public static class AssemblyGatheringLocationLoader reference97 = obj56; gatheringNodeGroup41.Nodes = list138; reference96 = gatheringNodeGroup41; - ref GatheringNodeGroup reference98 = ref span46[2]; + num++; + ref GatheringNodeGroup reference98 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - ref GatheringNode reference99 = ref CollectionsMarshal.AsSpan(list140)[0]; + num3 = 1; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + span4 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref GatheringNode reference99 = ref span4[num2]; GatheringNode obj57 = new GatheringNode { DataId = 33017u }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation + num4 = 1; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + span5 = CollectionsMarshal.AsSpan(list141); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(271.7985f, 7.424402f, -29.68495f), MinimumAngle = -165, @@ -11787,12 +13823,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "liza"; gatheringRoot15.Author = list142; - num = 1; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.None, null, null, 817) + index = 1; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -11800,21 +13840,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span47 = CollectionsMarshal.AsSpan(list144); - ref GatheringNodeGroup reference100 = ref span47[0]; + span3 = CollectionsMarshal.AsSpan(list144); + index = 0; + ref GatheringNodeGroup reference100 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref GatheringNode reference101 = ref CollectionsMarshal.AsSpan(list145)[0]; + span4 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + ref GatheringNode reference101 = ref span4[num3]; GatheringNode obj58 = new GatheringNode { DataId = 33020u }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation + num5 = 1; + List list146 = new List(num5); + CollectionsMarshal.SetCount(list146, num5); + span5 = CollectionsMarshal.AsSpan(list146); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(226.1767f, -20.10281f, 643.5543f), MinimumAngle = -50, @@ -11824,20 +13869,25 @@ public static class AssemblyGatheringLocationLoader reference101 = obj58; gatheringNodeGroup43.Nodes = list145; reference100 = gatheringNodeGroup43; - ref GatheringNodeGroup reference102 = ref span47[1]; + index++; + ref GatheringNodeGroup reference102 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - ref GatheringNode reference103 = ref CollectionsMarshal.AsSpan(list147)[0]; + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + span4 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + ref GatheringNode reference103 = ref span4[num2]; GatheringNode obj59 = new GatheringNode { DataId = 33018u }; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = new GatheringLocation + num4 = 1; + List list148 = new List(num4); + CollectionsMarshal.SetCount(list148, num4); + span5 = CollectionsMarshal.AsSpan(list148); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(248.9525f, -17.98949f, 657.4498f), MinimumAngle = -55, @@ -11849,20 +13899,25 @@ public static class AssemblyGatheringLocationLoader reference103 = obj59; gatheringNodeGroup44.Nodes = list147; reference102 = gatheringNodeGroup44; - ref GatheringNodeGroup reference104 = ref span47[2]; + index++; + ref GatheringNodeGroup reference104 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref GatheringNode reference105 = ref CollectionsMarshal.AsSpan(list149)[0]; + span4 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + ref GatheringNode reference105 = ref span4[num3]; GatheringNode obj60 = new GatheringNode { DataId = 33019u }; - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new GatheringLocation + num5 = 1; + List list150 = new List(num5); + CollectionsMarshal.SetCount(list150, num5); + span5 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(209.0277f, -25.56828f, 701.8604f) }; @@ -11880,12 +13935,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestStep reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestStep reference = ref span2[num]; QuestStep obj = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -11900,7 +13959,9 @@ public static class AssemblyGatheringLocationLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = 399; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = 399; skipAetheryteCondition.InTerritory = list3; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj.SkipConditions = skipConditions; @@ -11909,14 +13970,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - Span span = CollectionsMarshal.AsSpan(list4); - ref GatheringNodeGroup reference2 = ref span[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + index = 0; + ref GatheringNodeGroup reference2 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref GatheringNode reference3 = ref span2[0]; + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + ref GatheringNode reference3 = ref span5[num2]; GatheringNode obj2 = new GatheringNode { DataId = 33285u @@ -11924,26 +13987,31 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-426.4134f, 137.5601f, 514.3357f) }; obj2.Locations = list6; reference3 = obj2; - ref GatheringNode reference4 = ref span2[1]; + num2++; + ref GatheringNode reference4 = ref span5[num2]; GatheringNode obj3 = new GatheringNode { DataId = 33286u }; - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new GatheringLocation + index3 = 2; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + span6 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-448.7838f, 137.5986f, 514.3243f) }; - span3[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-433.5015f, 137.6451f, 487.8173f) }; @@ -11951,13 +14019,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj3; gatheringNodeGroup.Nodes = list5; reference2 = gatheringNodeGroup; - ref GatheringNodeGroup reference5 = ref span[1]; + index++; + ref GatheringNodeGroup reference5 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); num2 = 2; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref GatheringNode reference6 = ref span4[0]; + span5 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span5[index2]; GatheringNode obj4 = new GatheringNode { DataId = 33288u @@ -11965,21 +14035,26 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-354.5423f, 137.5715f, 638.9959f) }; obj4.Locations = list9; reference6 = obj4; - ref GatheringNode reference7 = ref span4[1]; + index2++; + ref GatheringNode reference7 = ref span5[index2]; GatheringNode obj5 = new GatheringNode { DataId = 33287u }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new GatheringLocation + index3 = 1; + List list10 = new List(index3); + CollectionsMarshal.SetCount(list10, index3); + span6 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-352.4377f, 137.5906f, 604.364f) }; @@ -11987,13 +14062,15 @@ public static class AssemblyGatheringLocationLoader reference7 = obj5; gatheringNodeGroup2.Nodes = list8; reference5 = gatheringNodeGroup2; - ref GatheringNodeGroup reference8 = ref span[2]; + index++; + ref GatheringNodeGroup reference8 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref GatheringNode reference9 = ref span5[0]; + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span5 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref GatheringNode reference9 = ref span5[num2]; GatheringNode obj6 = new GatheringNode { DataId = 33284u @@ -12001,7 +14078,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-254.4776f, 137.97f, 591.0092f), MinimumAngle = -20, @@ -12009,15 +14088,18 @@ public static class AssemblyGatheringLocationLoader }; obj6.Locations = list12; reference9 = obj6; - ref GatheringNode reference10 = ref span5[1]; + num2++; + ref GatheringNode reference10 = ref span5[num2]; GatheringNode obj7 = new GatheringNode { DataId = 33283u }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new GatheringLocation + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + span6 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-263.1079f, 137.4419f, 569.8724f), MinimumAngle = -10, @@ -12030,30 +14112,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list4; AddLocation(723, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span = CollectionsMarshal.AsSpan(list14); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list14; num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.None, null, null, 397) + span2 = CollectionsMarshal.AsSpan(list15); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; gatheringRoot2.Steps = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref GatheringNodeGroup reference11 = ref span6[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span4 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref GatheringNodeGroup reference11 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span7 = CollectionsMarshal.AsSpan(list17); - ref GatheringNode reference12 = ref span7[0]; + span5 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref GatheringNode reference12 = ref span5[index2]; GatheringNode obj8 = new GatheringNode { DataId = 33290u @@ -12061,14 +14149,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-409.5019f, 171.5775f, 49.79576f), MinimumAngle = -40, MaximumAngle = 115 }; - span8[1] = new GatheringLocation + index3++; + span6[index3] = new GatheringLocation { Position = new Vector3(-418.5088f, 168.7132f, 33.29783f), MinimumAngle = 10, @@ -12076,15 +14166,18 @@ public static class AssemblyGatheringLocationLoader }; obj8.Locations = list18; reference12 = obj8; - ref GatheringNode reference13 = ref span7[1]; + index2++; + ref GatheringNode reference13 = ref span5[index2]; GatheringNode obj9 = new GatheringNode { DataId = 33289u }; - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new GatheringLocation + index3 = 1; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + span6 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-413.911f, 170.7656f, 43.01591f), MinimumAngle = 0, @@ -12094,13 +14187,15 @@ public static class AssemblyGatheringLocationLoader reference13 = obj9; gatheringNodeGroup4.Nodes = list17; reference11 = gatheringNodeGroup4; - ref GatheringNodeGroup reference14 = ref span6[1]; + num++; + ref GatheringNodeGroup reference14 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref GatheringNode reference15 = ref span9[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span5 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref GatheringNode reference15 = ref span5[num2]; GatheringNode obj10 = new GatheringNode { DataId = 33292u @@ -12108,7 +14203,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-510.636f, 169.9518f, 119.9934f), MinimumAngle = 150, @@ -12116,15 +14213,18 @@ public static class AssemblyGatheringLocationLoader }; obj10.Locations = list21; reference15 = obj10; - ref GatheringNode reference16 = ref span9[1]; + num2++; + ref GatheringNode reference16 = ref span5[num2]; GatheringNode obj11 = new GatheringNode { DataId = 33291u }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new GatheringLocation + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span6 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-519.3103f, 169.0242f, 111.3145f), MinimumAngle = 125, @@ -12134,13 +14234,15 @@ public static class AssemblyGatheringLocationLoader reference16 = obj11; gatheringNodeGroup5.Nodes = list20; reference14 = gatheringNodeGroup5; - ref GatheringNodeGroup reference17 = ref span6[2]; + num++; + ref GatheringNodeGroup reference17 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span10 = CollectionsMarshal.AsSpan(list23); - ref GatheringNode reference18 = ref span10[0]; + span5 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref GatheringNode reference18 = ref span5[index2]; GatheringNode obj12 = new GatheringNode { DataId = 33293u @@ -12148,7 +14250,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-563.8201f, 159.5121f, -11.58269f), MinimumAngle = -100, @@ -12156,15 +14260,18 @@ public static class AssemblyGatheringLocationLoader }; obj12.Locations = list24; reference18 = obj12; - ref GatheringNode reference19 = ref span10[1]; + index2++; + ref GatheringNode reference19 = ref span5[index2]; GatheringNode obj13 = new GatheringNode { DataId = 33294u }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation + index3 = 1; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span6 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-555.6268f, 159.594f, -17.77679f), MinimumAngle = -145, @@ -12180,12 +14287,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list26; - num = 1; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.None, null, null, 398) + index = 1; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -12193,14 +14304,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span11 = CollectionsMarshal.AsSpan(list28); - ref GatheringNodeGroup reference20 = ref span11[0]; + span4 = CollectionsMarshal.AsSpan(list28); + index = 0; + ref GatheringNodeGroup reference20 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span12 = CollectionsMarshal.AsSpan(list29); - ref GatheringNode reference21 = ref span12[0]; + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span5 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref GatheringNode reference21 = ref span5[num2]; GatheringNode obj14 = new GatheringNode { DataId = 33300u @@ -12208,14 +14321,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(560.8948f, -19.68621f, -534.3345f), MinimumAngle = -75, MaximumAngle = 30 }; - span13[1] = new GatheringLocation + index3++; + span6[index3] = new GatheringLocation { Position = new Vector3(557.1625f, -19.65358f, -547.1852f), MinimumAngle = 60, @@ -12223,15 +14338,18 @@ public static class AssemblyGatheringLocationLoader }; obj14.Locations = list30; reference21 = obj14; - ref GatheringNode reference22 = ref span12[1]; + num2++; + ref GatheringNode reference22 = ref span5[num2]; GatheringNode obj15 = new GatheringNode { DataId = 33299u }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new GatheringLocation + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span6 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(571.0399f, -19.2677f, -544.8133f), MinimumAngle = 200, @@ -12241,13 +14359,15 @@ public static class AssemblyGatheringLocationLoader reference22 = obj15; gatheringNodeGroup7.Nodes = list29; reference20 = gatheringNodeGroup7; - ref GatheringNodeGroup reference23 = ref span11[1]; + index++; + ref GatheringNodeGroup reference23 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span14 = CollectionsMarshal.AsSpan(list32); - ref GatheringNode reference24 = ref span14[0]; + span5 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref GatheringNode reference24 = ref span5[index2]; GatheringNode obj16 = new GatheringNode { DataId = 33297u @@ -12255,7 +14375,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(630.7735f, -18.70739f, -566.2144f), MinimumAngle = 85, @@ -12263,22 +14385,25 @@ public static class AssemblyGatheringLocationLoader }; obj16.Locations = list33; reference24 = obj16; - ref GatheringNode reference25 = ref span14[1]; + index2++; + ref GatheringNode reference25 = ref span5[index2]; GatheringNode obj17 = new GatheringNode { DataId = 33298u }; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = new GatheringLocation + index3 = 2; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + span6 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(639.3101f, -18.78794f, -559.5169f), MinimumAngle = -175, MaximumAngle = 0 }; - span15[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(618.4453f, -18.9477f, -559.1786f), MinimumAngle = 60, @@ -12288,13 +14413,15 @@ public static class AssemblyGatheringLocationLoader reference25 = obj17; gatheringNodeGroup8.Nodes = list32; reference23 = gatheringNodeGroup8; - ref GatheringNodeGroup reference26 = ref span11[2]; + index++; + ref GatheringNodeGroup reference26 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref GatheringNode reference27 = ref span16[0]; + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span5 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference27 = ref span5[num2]; GatheringNode obj18 = new GatheringNode { DataId = 33295u @@ -12302,7 +14429,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list36); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(731.6483f, -20.17027f, -614.199f), MinimumAngle = -35, @@ -12310,22 +14439,25 @@ public static class AssemblyGatheringLocationLoader }; obj18.Locations = list36; reference27 = obj18; - ref GatheringNode reference28 = ref span16[1]; + num2++; + ref GatheringNode reference28 = ref span5[num2]; GatheringNode obj19 = new GatheringNode { DataId = 33296u }; - num3 = 2; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = new GatheringLocation + index3 = 2; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + span6 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(743.4034f, -19.02f, -621.8422f), MinimumAngle = 195, MaximumAngle = 325 }; - span17[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(727.6966f, -20.47985f, -627.8105f), MinimumAngle = 60, @@ -12338,30 +14470,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list28; AddLocation(725, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span = CollectionsMarshal.AsSpan(list38); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list38; num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.None, null, null, 400) + span2 = CollectionsMarshal.AsSpan(list39); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; gatheringRoot4.Steps = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span18 = CollectionsMarshal.AsSpan(list40); - ref GatheringNodeGroup reference29 = ref span18[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span4 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref GatheringNodeGroup reference29 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); num2 = 2; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span19 = CollectionsMarshal.AsSpan(list41); - ref GatheringNode reference30 = ref span19[0]; + span5 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref GatheringNode reference30 = ref span5[index2]; GatheringNode obj20 = new GatheringNode { DataId = 33305u @@ -12369,7 +14507,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-560.7639f, 266.9573f, -744.8922f), MinimumAngle = -45, @@ -12377,15 +14517,18 @@ public static class AssemblyGatheringLocationLoader }; obj20.Locations = list42; reference30 = obj20; - ref GatheringNode reference31 = ref span19[1]; + index2++; + ref GatheringNode reference31 = ref span5[index2]; GatheringNode obj21 = new GatheringNode { DataId = 33306u }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span6 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-547.9997f, 268.3711f, -737.2209f), MinimumAngle = 0, @@ -12395,13 +14538,15 @@ public static class AssemblyGatheringLocationLoader reference31 = obj21; gatheringNodeGroup10.Nodes = list41; reference29 = gatheringNodeGroup10; - ref GatheringNodeGroup reference32 = ref span18[1]; + num++; + ref GatheringNodeGroup reference32 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span20 = CollectionsMarshal.AsSpan(list44); - ref GatheringNode reference33 = ref span20[0]; + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span5 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref GatheringNode reference33 = ref span5[num2]; GatheringNode obj22 = new GatheringNode { DataId = 33304u @@ -12409,7 +14554,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-682.6185f, 261.1417f, -778.2869f), MinimumAngle = -50, @@ -12419,15 +14566,18 @@ public static class AssemblyGatheringLocationLoader }; obj22.Locations = list45; reference33 = obj22; - ref GatheringNode reference34 = ref span20[1]; + num2++; + ref GatheringNode reference34 = ref span5[num2]; GatheringNode obj23 = new GatheringNode { DataId = 33303u }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new GatheringLocation + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + span6 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-696.5138f, 261.6092f, -759.7711f), MinimumAngle = 215, @@ -12437,13 +14587,15 @@ public static class AssemblyGatheringLocationLoader reference34 = obj23; gatheringNodeGroup11.Nodes = list44; reference32 = gatheringNodeGroup11; - ref GatheringNodeGroup reference35 = ref span18[2]; + num++; + ref GatheringNodeGroup reference35 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); num2 = 2; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span21 = CollectionsMarshal.AsSpan(list47); - ref GatheringNode reference36 = ref span21[0]; + span5 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref GatheringNode reference36 = ref span5[index2]; GatheringNode obj24 = new GatheringNode { DataId = 33301u @@ -12451,7 +14603,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-792.3468f, 271.3054f, -737.431f), MinimumAngle = 280, @@ -12461,15 +14615,18 @@ public static class AssemblyGatheringLocationLoader }; obj24.Locations = list48; reference36 = obj24; - ref GatheringNode reference37 = ref span21[1]; + index2++; + ref GatheringNode reference37 = ref span5[index2]; GatheringNode obj25 = new GatheringNode { DataId = 33302u }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new GatheringLocation + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + span6 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-800.0043f, 269.2748f, -729.5305f), MinimumAngle = 230, @@ -12485,12 +14642,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list50; - num = 1; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.None, null, null, 401) + index = 1; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; @@ -12498,14 +14659,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span22 = CollectionsMarshal.AsSpan(list52); - ref GatheringNodeGroup reference38 = ref span22[0]; + span4 = CollectionsMarshal.AsSpan(list52); + index = 0; + ref GatheringNodeGroup reference38 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span23 = CollectionsMarshal.AsSpan(list53); - ref GatheringNode reference39 = ref span23[0]; + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span5 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref GatheringNode reference39 = ref span5[num2]; GatheringNode obj26 = new GatheringNode { DataId = 33308u @@ -12513,7 +14676,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(612.0084f, -154.126f, 721.6054f), MinimumAngle = -220, @@ -12521,15 +14686,18 @@ public static class AssemblyGatheringLocationLoader }; obj26.Locations = list54; reference39 = obj26; - ref GatheringNode reference40 = ref span23[1]; + num2++; + ref GatheringNode reference40 = ref span5[num2]; GatheringNode obj27 = new GatheringNode { DataId = 33307u }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new GatheringLocation + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + span6 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(601.7455f, -154.7067f, 734.4706f), MinimumAngle = -120, @@ -12539,13 +14707,15 @@ public static class AssemblyGatheringLocationLoader reference40 = obj27; gatheringNodeGroup13.Nodes = list53; reference38 = gatheringNodeGroup13; - ref GatheringNodeGroup reference41 = ref span22[1]; + index++; + ref GatheringNodeGroup reference41 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); num2 = 2; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span24 = CollectionsMarshal.AsSpan(list56); - ref GatheringNode reference42 = ref span24[0]; + span5 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref GatheringNode reference42 = ref span5[index2]; GatheringNode obj28 = new GatheringNode { DataId = 33311u @@ -12553,21 +14723,26 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(654.2362f, -159.8305f, 820.9418f) }; obj28.Locations = list57; reference42 = obj28; - ref GatheringNode reference43 = ref span24[1]; + index2++; + ref GatheringNode reference43 = ref span5[index2]; GatheringNode obj29 = new GatheringNode { DataId = 33312u }; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new GatheringLocation + index3 = 1; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + span6 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(656.2291f, -160.4766f, 826.9885f), MinimumAngle = 100, @@ -12577,13 +14752,15 @@ public static class AssemblyGatheringLocationLoader reference43 = obj29; gatheringNodeGroup14.Nodes = list56; reference41 = gatheringNodeGroup14; - ref GatheringNodeGroup reference44 = ref span22[2]; + index++; + ref GatheringNodeGroup reference44 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span25 = CollectionsMarshal.AsSpan(list59); - ref GatheringNode reference45 = ref span25[0]; + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span5 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref GatheringNode reference45 = ref span5[num2]; GatheringNode obj30 = new GatheringNode { DataId = 33309u @@ -12591,7 +14768,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(739.0756f, -158.0396f, 642.5712f), MinimumAngle = 110, @@ -12601,15 +14780,18 @@ public static class AssemblyGatheringLocationLoader }; obj30.Locations = list60; reference45 = obj30; - ref GatheringNode reference46 = ref span25[1]; + num2++; + ref GatheringNode reference46 = ref span5[num2]; GatheringNode obj31 = new GatheringNode { DataId = 33310u }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new GatheringLocation + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span6 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(723.027f, -157.7834f, 626.666f), MinimumAngle = -170, @@ -12622,30 +14804,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list52; AddLocation(727, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + index = 1; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span = CollectionsMarshal.AsSpan(list62); + num = 0; + span[num] = "liza"; gatheringRoot6.Author = list62; num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.None, null, null, 401) + span2 = CollectionsMarshal.AsSpan(list63); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; gatheringRoot6.Steps = list63; - num = 3; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span26 = CollectionsMarshal.AsSpan(list64); - ref GatheringNodeGroup reference47 = ref span26[0]; + index = 3; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span4 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref GatheringNodeGroup reference47 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span27 = CollectionsMarshal.AsSpan(list65); - ref GatheringNode reference48 = ref span27[0]; + span5 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref GatheringNode reference48 = ref span5[index2]; GatheringNode obj32 = new GatheringNode { DataId = 33313u @@ -12653,7 +14841,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(284.0225f, -40.41348f, -766.5984f), MinimumAngle = 160, @@ -12663,15 +14853,18 @@ public static class AssemblyGatheringLocationLoader }; obj32.Locations = list66; reference48 = obj32; - ref GatheringNode reference49 = ref span27[1]; + index2++; + ref GatheringNode reference49 = ref span5[index2]; GatheringNode obj33 = new GatheringNode { DataId = 33314u }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation + index3 = 1; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + span6 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(291.4046f, -40.37925f, -758.5402f), MinimumAngle = 210, @@ -12681,13 +14874,15 @@ public static class AssemblyGatheringLocationLoader reference49 = obj33; gatheringNodeGroup16.Nodes = list65; reference47 = gatheringNodeGroup16; - ref GatheringNodeGroup reference50 = ref span26[1]; + num++; + ref GatheringNodeGroup reference50 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span28 = CollectionsMarshal.AsSpan(list68); - ref GatheringNode reference51 = ref span28[0]; + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span5 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref GatheringNode reference51 = ref span5[num2]; GatheringNode obj34 = new GatheringNode { DataId = 33315u @@ -12695,7 +14890,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(358.8156f, -41.42974f, -734.5118f), MinimumAngle = 115, @@ -12703,15 +14900,18 @@ public static class AssemblyGatheringLocationLoader }; obj34.Locations = list69; reference51 = obj34; - ref GatheringNode reference52 = ref span28[1]; + num2++; + ref GatheringNode reference52 = ref span5[num2]; GatheringNode obj35 = new GatheringNode { DataId = 33316u }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheringLocation + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + span6 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(367.6869f, -41.54303f, -735.3597f), MinimumAngle = 70, @@ -12721,13 +14921,15 @@ public static class AssemblyGatheringLocationLoader reference52 = obj35; gatheringNodeGroup17.Nodes = list68; reference50 = gatheringNodeGroup17; - ref GatheringNodeGroup reference53 = ref span26[2]; + num++; + ref GatheringNodeGroup reference53 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span29 = CollectionsMarshal.AsSpan(list71); - ref GatheringNode reference54 = ref span29[0]; + span5 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref GatheringNode reference54 = ref span5[index2]; GatheringNode obj36 = new GatheringNode { DataId = 33317u @@ -12735,7 +14937,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(452.3558f, -47.13874f, -752.6805f), MinimumAngle = 150, @@ -12743,15 +14947,18 @@ public static class AssemblyGatheringLocationLoader }; obj36.Locations = list72; reference54 = obj36; - ref GatheringNode reference55 = ref span29[1]; + index2++; + ref GatheringNode reference55 = ref span5[index2]; GatheringNode obj37 = new GatheringNode { DataId = 33318u }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new GatheringLocation + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span6 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(465.9165f, -47.82627f, -756.4039f), MinimumAngle = 35, @@ -12769,12 +14976,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "liza"; gatheringRoot7.Author = list74; - num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -12782,14 +14993,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span30 = CollectionsMarshal.AsSpan(list76); - ref GatheringNodeGroup reference56 = ref span30[0]; + span4 = CollectionsMarshal.AsSpan(list76); + index = 0; + ref GatheringNodeGroup reference56 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span31 = CollectionsMarshal.AsSpan(list77); - ref GatheringNode reference57 = ref span31[0]; + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span5 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref GatheringNode reference57 = ref span5[num2]; GatheringNode obj38 = new GatheringNode { DataId = 33321u @@ -12797,7 +15010,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(518.1079f, 218.4718f, -593.7597f), MinimumAngle = -140, @@ -12805,22 +15020,25 @@ public static class AssemblyGatheringLocationLoader }; obj38.Locations = list78; reference57 = obj38; - ref GatheringNode reference58 = ref span31[1]; + num2++; + ref GatheringNode reference58 = ref span5[num2]; GatheringNode obj39 = new GatheringNode { DataId = 33322u }; - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span32 = CollectionsMarshal.AsSpan(list79); - span32[0] = new GatheringLocation + index3 = 2; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span6 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(543.8551f, 223.6571f, -583.9418f), MinimumAngle = 175, MaximumAngle = 290 }; - span32[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(513.8116f, 218.4708f, -580.1434f), MinimumAngle = 0, @@ -12830,13 +15048,15 @@ public static class AssemblyGatheringLocationLoader reference58 = obj39; gatheringNodeGroup19.Nodes = list77; reference56 = gatheringNodeGroup19; - ref GatheringNodeGroup reference59 = ref span30[1]; + index++; + ref GatheringNodeGroup reference59 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span33 = CollectionsMarshal.AsSpan(list80); - ref GatheringNode reference60 = ref span33[0]; + span5 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref GatheringNode reference60 = ref span5[index2]; GatheringNode obj40 = new GatheringNode { DataId = 33323u @@ -12844,7 +15064,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(648.0388f, 230.7679f, -678.8027f), MinimumAngle = 225, @@ -12852,15 +15074,18 @@ public static class AssemblyGatheringLocationLoader }; obj40.Locations = list81; reference60 = obj40; - ref GatheringNode reference61 = ref span33[1]; + index2++; + ref GatheringNode reference61 = ref span5[index2]; GatheringNode obj41 = new GatheringNode { DataId = 33324u }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span6 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(675.1682f, 234.6712f, -675.749f), MinimumAngle = -55, @@ -12870,13 +15095,15 @@ public static class AssemblyGatheringLocationLoader reference61 = obj41; gatheringNodeGroup20.Nodes = list80; reference59 = gatheringNodeGroup20; - ref GatheringNodeGroup reference62 = ref span30[2]; + index++; + ref GatheringNodeGroup reference62 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); - num2 = 2; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span34 = CollectionsMarshal.AsSpan(list83); - ref GatheringNode reference63 = ref span34[0]; + index2 = 2; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span5 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref GatheringNode reference63 = ref span5[num2]; GatheringNode obj42 = new GatheringNode { DataId = 33320u @@ -12884,7 +15111,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(722.4699f, 242.8886f, -598.9974f), MinimumAngle = 65, @@ -12892,15 +15121,18 @@ public static class AssemblyGatheringLocationLoader }; obj42.Locations = list84; reference63 = obj42; - ref GatheringNode reference64 = ref span34[1]; + num2++; + ref GatheringNode reference64 = ref span5[num2]; GatheringNode obj43 = new GatheringNode { DataId = 33319u }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new GatheringLocation + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span6 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(718.4479f, 244.6019f, -583.6996f), MinimumAngle = 45, @@ -12913,33 +15145,39 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list76; AddLocation(729, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + index = 1; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span = CollectionsMarshal.AsSpan(list86); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list86; num = 2; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span35 = CollectionsMarshal.AsSpan(list87); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span2 = CollectionsMarshal.AsSpan(list87); + index = 0; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span35[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span2[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot8.Steps = list87; - num = 3; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span36 = CollectionsMarshal.AsSpan(list88); - ref GatheringNodeGroup reference65 = ref span36[0]; + index = 3; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span4 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref GatheringNodeGroup reference65 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span37 = CollectionsMarshal.AsSpan(list89); - ref GatheringNode reference66 = ref span37[0]; + span5 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref GatheringNode reference66 = ref span5[index2]; GatheringNode obj44 = new GatheringNode { DataId = 33325u @@ -12947,7 +15185,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(953.1041f, -127.1716f, -816.3145f), MinimumAngle = -25, @@ -12955,22 +15195,25 @@ public static class AssemblyGatheringLocationLoader }; obj44.Locations = list90; reference66 = obj44; - ref GatheringNode reference67 = ref span37[1]; + index2++; + ref GatheringNode reference67 = ref span5[index2]; GatheringNode obj45 = new GatheringNode { DataId = 33326u }; - num3 = 2; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span38 = CollectionsMarshal.AsSpan(list91); - span38[0] = new GatheringLocation + index3 = 2; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + span6 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(956.8734f, -129.366f, -843.1625f), MinimumAngle = 75, MaximumAngle = 210 }; - span38[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(976.0558f, -131.5356f, -813.2305f), MinimumAngle = -65, @@ -12982,13 +15225,15 @@ public static class AssemblyGatheringLocationLoader reference67 = obj45; gatheringNodeGroup22.Nodes = list89; reference65 = gatheringNodeGroup22; - ref GatheringNodeGroup reference68 = ref span36[1]; + num++; + ref GatheringNodeGroup reference68 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); - num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span39 = CollectionsMarshal.AsSpan(list92); - ref GatheringNode reference69 = ref span39[0]; + index2 = 2; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span5 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref GatheringNode reference69 = ref span5[num2]; GatheringNode obj46 = new GatheringNode { DataId = 33327u @@ -12996,7 +15241,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(887.1607f, -141.6279f, -863.3355f), MinimumAngle = 185, @@ -13004,22 +15251,25 @@ public static class AssemblyGatheringLocationLoader }; obj46.Locations = list93; reference69 = obj46; - ref GatheringNode reference70 = ref span39[1]; + num2++; + ref GatheringNode reference70 = ref span5[num2]; GatheringNode obj47 = new GatheringNode { DataId = 33328u }; - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span40 = CollectionsMarshal.AsSpan(list94); - span40[0] = new GatheringLocation + index3 = 2; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span6 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(874.0369f, -135.9791f, -848.3512f), MinimumAngle = -80, MaximumAngle = 60 }; - span40[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(895.865f, -144.0468f, -890.5269f), MinimumAngle = 195, @@ -13029,13 +15279,15 @@ public static class AssemblyGatheringLocationLoader reference70 = obj47; gatheringNodeGroup23.Nodes = list92; reference68 = gatheringNodeGroup23; - ref GatheringNodeGroup reference71 = ref span36[2]; + num++; + ref GatheringNodeGroup reference71 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span41 = CollectionsMarshal.AsSpan(list95); - ref GatheringNode reference72 = ref span41[0]; + span5 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + ref GatheringNode reference72 = ref span5[index2]; GatheringNode obj48 = new GatheringNode { DataId = 33329u @@ -13043,7 +15295,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list96); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(836.5433f, -140.1729f, -948.7974f), MinimumAngle = 130, @@ -13051,16 +15305,18 @@ public static class AssemblyGatheringLocationLoader }; obj48.Locations = list96; reference72 = obj48; - ref GatheringNode reference73 = ref span41[1]; + index2++; + ref GatheringNode reference73 = ref span5[index2]; GatheringNode obj49 = new GatheringNode { DataId = 33330u }; - num3 = 2; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span42 = CollectionsMarshal.AsSpan(list97); - span42[0] = new GatheringLocation + index3 = 2; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + span6 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(843.2012f, -139.2853f, -961.9124f), MinimumAngle = -95, @@ -13068,7 +15324,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - span42[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(856.3994f, -142.4276f, -941.0324f), MinimumAngle = 115, @@ -13084,12 +15341,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "liza"; gatheringRoot9.Author = list98; - num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.None, null, null, 614) + index = 1; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -13097,14 +15358,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span43 = CollectionsMarshal.AsSpan(list100); - ref GatheringNodeGroup reference74 = ref span43[0]; + span4 = CollectionsMarshal.AsSpan(list100); + index = 0; + ref GatheringNodeGroup reference74 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); - num2 = 2; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span44 = CollectionsMarshal.AsSpan(list101); - ref GatheringNode reference75 = ref span44[0]; + index2 = 2; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span5 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref GatheringNode reference75 = ref span5[num2]; GatheringNode obj50 = new GatheringNode { DataId = 33334u @@ -13112,26 +15375,31 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span45 = CollectionsMarshal.AsSpan(list102); - span45[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-222.386f, 23.28162f, 425.76f) }; - span45[1] = new GatheringLocation + index3++; + span6[index3] = new GatheringLocation { Position = new Vector3(-209.1725f, 22.35068f, 425.5524f) }; obj50.Locations = list102; reference75 = obj50; - ref GatheringNode reference76 = ref span44[1]; + num2++; + ref GatheringNode reference76 = ref span5[num2]; GatheringNode obj51 = new GatheringNode { DataId = 33333u }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new GatheringLocation + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span6 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-219.9592f, 22.78741f, 431.5036f) }; @@ -13139,13 +15407,15 @@ public static class AssemblyGatheringLocationLoader reference76 = obj51; gatheringNodeGroup25.Nodes = list101; reference74 = gatheringNodeGroup25; - ref GatheringNodeGroup reference77 = ref span43[1]; + index++; + ref GatheringNodeGroup reference77 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span46 = CollectionsMarshal.AsSpan(list104); - ref GatheringNode reference78 = ref span46[0]; + span5 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + ref GatheringNode reference78 = ref span5[index2]; GatheringNode obj52 = new GatheringNode { DataId = 33335u @@ -13153,7 +15423,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-349.8553f, 33.90925f, 452.5893f), MinimumAngle = -90, @@ -13161,20 +15433,23 @@ public static class AssemblyGatheringLocationLoader }; obj52.Locations = list105; reference78 = obj52; - ref GatheringNode reference79 = ref span46[1]; + index2++; + ref GatheringNode reference79 = ref span5[index2]; GatheringNode obj53 = new GatheringNode { DataId = 33336u }; - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span47 = CollectionsMarshal.AsSpan(list106); - span47[0] = new GatheringLocation + index3 = 2; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + span6 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-361.5062f, 33.49068f, 453.4639f) }; - span47[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-359.826f, 35.47207f, 442.164f) }; @@ -13182,13 +15457,15 @@ public static class AssemblyGatheringLocationLoader reference79 = obj53; gatheringNodeGroup26.Nodes = list104; reference77 = gatheringNodeGroup26; - ref GatheringNodeGroup reference80 = ref span43[2]; + index++; + ref GatheringNodeGroup reference80 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span48 = CollectionsMarshal.AsSpan(list107); - ref GatheringNode reference81 = ref span48[0]; + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span5 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + ref GatheringNode reference81 = ref span5[num2]; GatheringNode obj54 = new GatheringNode { DataId = 33331u @@ -13196,26 +15473,31 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-231.3864f, 17.74118f, 511.0694f) }; obj54.Locations = list108; reference81 = obj54; - ref GatheringNode reference82 = ref span48[1]; + num2++; + ref GatheringNode reference82 = ref span5[num2]; GatheringNode obj55 = new GatheringNode { DataId = 33332u }; - num3 = 2; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span49 = CollectionsMarshal.AsSpan(list109); - span49[0] = new GatheringLocation + index3 = 2; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + span6 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(-219.0789f, 18.05494f, 525.418f) }; - span49[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(-220.9139f, 17.97838f, 514.0063f) }; @@ -13226,30 +15508,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list100; AddLocation(731, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + index = 1; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span = CollectionsMarshal.AsSpan(list110); + num = 0; + span[num] = "liza"; gatheringRoot10.Author = list110; num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.None, null, null, 621) + span2 = CollectionsMarshal.AsSpan(list111); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; gatheringRoot10.Steps = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span50 = CollectionsMarshal.AsSpan(list112); - ref GatheringNodeGroup reference83 = ref span50[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span4 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref GatheringNodeGroup reference83 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); num2 = 2; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span51 = CollectionsMarshal.AsSpan(list113); - ref GatheringNode reference84 = ref span51[0]; + span5 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref GatheringNode reference84 = ref span5[index2]; GatheringNode obj56 = new GatheringNode { DataId = 33339u @@ -13257,7 +15545,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(440.6299f, 74.86803f, -205.3779f), MinimumAngle = 85, @@ -13265,16 +15555,18 @@ public static class AssemblyGatheringLocationLoader }; obj56.Locations = list114; reference84 = obj56; - ref GatheringNode reference85 = ref span51[1]; + index2++; + ref GatheringNode reference85 = ref span5[index2]; GatheringNode obj57 = new GatheringNode { DataId = 33340u }; - num3 = 2; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span52 = CollectionsMarshal.AsSpan(list115); - span52[0] = new GatheringLocation + index3 = 2; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + span6 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(426.4497f, 70.57706f, -198.046f), MinimumAngle = 95, @@ -13282,7 +15574,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - span52[1] = new GatheringLocation + num3++; + span6[num3] = new GatheringLocation { Position = new Vector3(453.1248f, 77.29013f, -211.6347f), MinimumAngle = 85, @@ -13292,13 +15585,15 @@ public static class AssemblyGatheringLocationLoader reference85 = obj57; gatheringNodeGroup28.Nodes = list113; reference83 = gatheringNodeGroup28; - ref GatheringNodeGroup reference86 = ref span50[1]; + num++; + ref GatheringNodeGroup reference86 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span53 = CollectionsMarshal.AsSpan(list116); - ref GatheringNode reference87 = ref span53[0]; + index2 = 2; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span5 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref GatheringNode reference87 = ref span5[num2]; GatheringNode obj58 = new GatheringNode { DataId = 33337u @@ -13306,7 +15601,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(561.2196f, 94.65154f, -315.6258f), MinimumAngle = 50, @@ -13314,15 +15611,18 @@ public static class AssemblyGatheringLocationLoader }; obj58.Locations = list117; reference87 = obj58; - ref GatheringNode reference88 = ref span53[1]; + num2++; + ref GatheringNode reference88 = ref span5[num2]; GatheringNode obj59 = new GatheringNode { DataId = 33338u }; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new GatheringLocation + index3 = 1; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + span6 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(563.1749f, 93.41929f, -335.4834f), MinimumAngle = -25, @@ -13332,13 +15632,15 @@ public static class AssemblyGatheringLocationLoader reference88 = obj59; gatheringNodeGroup29.Nodes = list116; reference86 = gatheringNodeGroup29; - ref GatheringNodeGroup reference89 = ref span50[2]; + num++; + ref GatheringNodeGroup reference89 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span54 = CollectionsMarshal.AsSpan(list119); - ref GatheringNode reference90 = ref span54[0]; + span5 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref GatheringNode reference90 = ref span5[index2]; GatheringNode obj60 = new GatheringNode { DataId = 33341u @@ -13346,7 +15648,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(388.9345f, 54.85489f, -350.8919f), MinimumAngle = 55, @@ -13354,15 +15658,18 @@ public static class AssemblyGatheringLocationLoader }; obj60.Locations = list120; reference90 = obj60; - ref GatheringNode reference91 = ref span54[1]; + index2++; + ref GatheringNode reference91 = ref span5[index2]; GatheringNode obj61 = new GatheringNode { DataId = 33342u }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new GatheringLocation + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span6 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span6[num3] = new GatheringLocation { Position = new Vector3(394.7824f, 51.66671f, -369.6645f), MinimumAngle = 70, @@ -13378,12 +15685,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list122); + index = 0; + span[index] = "liza"; gatheringRoot11.Author = list122; - num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + span2 = CollectionsMarshal.AsSpan(list123); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -13391,12 +15702,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - ref GatheringNodeGroup reference92 = ref CollectionsMarshal.AsSpan(list124)[0]; + span4 = CollectionsMarshal.AsSpan(list124); + index = 0; + ref GatheringNodeGroup reference92 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - ref GatheringNode reference93 = ref CollectionsMarshal.AsSpan(list125)[0]; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span5 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref GatheringNode reference93 = ref span5[num2]; GatheringNode obj62 = new GatheringNode { DataId = 33028u @@ -13404,7 +15719,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + span6 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(454.6367f, 227.1414f, -731.7471f), MinimumAngle = -120, @@ -13424,12 +15741,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 399) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -13442,22 +15763,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 33856u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-395.4635f, 144.1793f, -249.5864f), MinimumAngle = -190, @@ -13465,15 +15790,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 33855u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-398.5591f, 144.6183f, -241.8769f), MinimumAngle = -140, @@ -13483,21 +15811,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span3[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 33857u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-407.5786f, 149.6453f, -93.85593f), MinimumAngle = 185, @@ -13507,15 +15839,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span3[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 33858u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-413.9488f, 148.9834f, -71.42188f), MinimumAngle = 165, @@ -13525,21 +15860,25 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span4[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 33860u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-254.579f, 147.4603f, -91.96173f), MinimumAngle = 30, @@ -13547,15 +15886,18 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span4[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 33859u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-254.9425f, 146.4598f, -105.2472f), MinimumAngle = 35, @@ -13568,15 +15910,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(808, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 399) + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -13586,25 +15932,29 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span5[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span3 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span6[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span4 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span4[num2]; GatheringNode obj7 = new GatheringNode { DataId = 33866u }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(679.6339f, 116.0614f, 134.6795f), MinimumAngle = 200, @@ -13612,15 +15962,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span6[1]; + num2++; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 33865u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span5 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(697.5129f, 122.1484f, 146.8725f), MinimumAngle = -205, @@ -13630,21 +15983,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span5[1]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span7[0]; + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span4[num3]; GatheringNode obj9 = new GatheringNode { DataId = 33862u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span5 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(809.8756f, 152.7643f, 205.2242f), MinimumAngle = -95, @@ -13652,15 +16009,18 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span7[1]; + num3++; + ref GatheringNode reference15 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 33861u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span5 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(834.4771f, 154.8756f, 206.0541f), MinimumAngle = 35, @@ -13670,21 +16030,25 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span5[2]; + num++; + ref GatheringNodeGroup reference16 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span8[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span4 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span4[num2]; GatheringNode obj11 = new GatheringNode { DataId = 33863u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span5 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(781.7728f, 134.6856f, -22.00103f), MinimumAngle = 0, @@ -13692,15 +16056,18 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span8[1]; + num2++; + ref GatheringNode reference18 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 33864u }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span5 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(774.9854f, 134.3857f, -27.45042f), MinimumAngle = -25, @@ -13716,12 +16083,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 612) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -13729,22 +16100,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span9[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span10 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span10[0]; + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span4[num3]; GatheringNode obj13 = new GatheringNode { DataId = 33871u }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new GatheringLocation + num4 = 1; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span5 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(556.8531f, 73.44064f, 99.57761f), MinimumAngle = 35, @@ -13752,15 +16127,18 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span10[1]; + num3++; + ref GatheringNode reference21 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 33872u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(561.7782f, 73.45153f, 72.6368f), MinimumAngle = 15, @@ -13772,21 +16150,25 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span9[1]; + index++; + ref GatheringNodeGroup reference22 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span11 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span11[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span4[num2]; GatheringNode obj15 = new GatheringNode { DataId = 33867u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span5 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(498.26f, 76.74628f, -46.34168f), MinimumAngle = -65, @@ -13794,15 +16176,18 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span11[1]; + num2++; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 33868u }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span5 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(473.011f, 76.55681f, -47.70556f), MinimumAngle = -45, @@ -13814,21 +16199,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span9[2]; + index++; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span12[0]; + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span4[num3]; GatheringNode obj17 = new GatheringNode { DataId = 33870u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(361.4784f, 70.79905f, 146.1887f), MinimumAngle = -55, @@ -13838,15 +16227,18 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span12[1]; + num3++; + ref GatheringNode reference27 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 33869u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span5 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(364.7684f, 70.90228f, 167.3831f), MinimumAngle = 105, @@ -13859,38 +16251,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(810, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span = CollectionsMarshal.AsSpan(list37); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 612) + span2 = CollectionsMarshal.AsSpan(list38); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span13 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span13[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span3 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span14 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span14[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + span4 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span4[num2]; GatheringNode obj19 = new GatheringNode { DataId = 33875u }; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation + num4 = 1; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + span5 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(567.9412f, 50.43103f, 373.1152f), MinimumAngle = 200, @@ -13898,15 +16298,18 @@ public static class AssemblyGatheringLocationLoader }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span14[1]; + num2++; + ref GatheringNode reference30 = ref span4[num2]; GatheringNode obj20 = new GatheringNode { DataId = 33876u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span5 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(578.4171f, 48.36443f, 365.4806f), MinimumAngle = -45, @@ -13916,21 +16319,25 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span13[1]; + num++; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span15 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span15[0]; + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span4[num3]; GatheringNode obj21 = new GatheringNode { DataId = 33873u }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new GatheringLocation + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(599.5352f, 75.60928f, 244.3069f), MinimumAngle = -80, @@ -13938,15 +16345,18 @@ public static class AssemblyGatheringLocationLoader }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span15[1]; + num3++; + ref GatheringNode reference33 = ref span4[num3]; GatheringNode obj22 = new GatheringNode { DataId = 33874u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span5 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(592.9609f, 75.62624f, 268.9515f), MinimumAngle = 110, @@ -13956,21 +16366,25 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span13[2]; + num++; + ref GatheringNodeGroup reference34 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span16 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span16[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + span4 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span4[num2]; GatheringNode obj23 = new GatheringNode { DataId = 33878u }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new GatheringLocation + num4 = 1; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + span5 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(753.3094f, 72.73058f, 364.073f), MinimumAngle = 95, @@ -13978,15 +16392,18 @@ public static class AssemblyGatheringLocationLoader }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span16[1]; + num2++; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj24 = new GatheringNode { DataId = 33877u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span5 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(764.3023f, 74.18732f, 337.2563f), MinimumAngle = -70, @@ -14002,12 +16419,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list49; - num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 622) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -14015,22 +16436,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span17 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span18 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span18[0]; + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span4[num3]; GatheringNode obj25 = new GatheringNode { DataId = 33883u }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span5 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(128.0255f, -1.00095f, 322.0047f), MinimumAngle = -120, @@ -14038,15 +16463,18 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span18[1]; + num3++; + ref GatheringNode reference39 = ref span4[num3]; GatheringNode obj26 = new GatheringNode { DataId = 33884u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(116.5815f, -1.584854f, 321.8561f), MinimumAngle = -65, @@ -14056,21 +16484,25 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span17[1]; + index++; + ref GatheringNodeGroup reference40 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span19 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span19[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span4 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span4[num2]; GatheringNode obj27 = new GatheringNode { DataId = 33882u }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new GatheringLocation + num4 = 1; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span5 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-31.5303f, -2.218102f, 328.7178f), MinimumAngle = 110, @@ -14078,15 +16510,18 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span19[1]; + num2++; + ref GatheringNode reference42 = ref span4[num2]; GatheringNode obj28 = new GatheringNode { DataId = 33881u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span5 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-44.53269f, -1.966054f, 332.6949f), MinimumAngle = 120, @@ -14096,21 +16531,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span17[2]; + index++; + ref GatheringNodeGroup reference43 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span20[0]; + span4 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span4[num3]; GatheringNode obj29 = new GatheringNode { DataId = 33880u }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + span5 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(37.46276f, -4.431953f, 425.0844f), MinimumAngle = 140, @@ -14118,15 +16557,18 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span20[1]; + num3++; + ref GatheringNode reference45 = ref span4[num3]; GatheringNode obj30 = new GatheringNode { DataId = 33879u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span5 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(46.12198f, -5.283945f, 426.5148f), MinimumAngle = 115, @@ -14141,52 +16583,63 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(812, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span = CollectionsMarshal.AsSpan(list61); + num = 0; + span[num] = "liza"; gatheringRoot6.Author = list61; num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.None, null, null, 622) + span2 = CollectionsMarshal.AsSpan(list62); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span21 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span21[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span3 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span22 = CollectionsMarshal.AsSpan(list64); - ref GatheringNode reference47 = ref span22[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span4 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span4[num2]; GatheringNode obj31 = new GatheringNode { DataId = 33885u }; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span5 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(288.2408f, 23.61323f, -234.9867f) }; obj31.Locations = list65; reference47 = obj31; - ref GatheringNode reference48 = ref span22[1]; + num2++; + ref GatheringNode reference48 = ref span4[num2]; GatheringNode obj32 = new GatheringNode { DataId = 33886u }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span5 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(281.9221f, 23.03055f, -231.9227f) }; @@ -14194,21 +16647,25 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference49 = ref span21[1]; + num++; + ref GatheringNodeGroup reference49 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span23 = CollectionsMarshal.AsSpan(list67); - ref GatheringNode reference50 = ref span23[0]; + span4 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + ref GatheringNode reference50 = ref span4[num3]; GatheringNode obj33 = new GatheringNode { DataId = 33887u }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = new GatheringLocation + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span5 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(407.1815f, 26.86968f, -325.3348f), MinimumAngle = -60, @@ -14216,15 +16673,18 @@ public static class AssemblyGatheringLocationLoader }; obj33.Locations = list68; reference50 = obj33; - ref GatheringNode reference51 = ref span23[1]; + num3++; + ref GatheringNode reference51 = ref span4[num3]; GatheringNode obj34 = new GatheringNode { DataId = 33888u }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span5 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(413.6349f, 25.90826f, -320.5389f) }; @@ -14232,35 +16692,42 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - ref GatheringNodeGroup reference52 = ref span21[2]; + num++; + ref GatheringNodeGroup reference52 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span24 = CollectionsMarshal.AsSpan(list70); - ref GatheringNode reference53 = ref span24[0]; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + span4 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference53 = ref span4[num2]; GatheringNode obj35 = new GatheringNode { DataId = 33889u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span5 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(451.9882f, 8.707673f, -136.5769f) }; obj35.Locations = list71; reference53 = obj35; - ref GatheringNode reference54 = ref span24[1]; + num2++; + ref GatheringNode reference54 = ref span4[num2]; GatheringNode obj36 = new GatheringNode { DataId = 33890u }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span5 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(458.5264f, 8.823095f, -132.5937f) }; @@ -14274,12 +16741,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; gatheringRoot7.Author = list73; - num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 956) + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; @@ -14287,22 +16758,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span25 = CollectionsMarshal.AsSpan(list75); - ref GatheringNodeGroup reference55 = ref span25[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index = 0; + ref GatheringNodeGroup reference55 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span26 = CollectionsMarshal.AsSpan(list76); - ref GatheringNode reference56 = ref span26[0]; + span4 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref GatheringNode reference56 = ref span4[num3]; GatheringNode obj37 = new GatheringNode { DataId = 33894u }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new GatheringLocation + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + span5 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(458.9456f, 161.3972f, -602.1197f), MinimumAngle = 140, @@ -14310,28 +16785,32 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list77; reference56 = obj37; - ref GatheringNode reference57 = ref span26[1]; + num3++; + ref GatheringNode reference57 = ref span4[num3]; GatheringNode obj38 = new GatheringNode { DataId = 33895u }; - num3 = 3; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span27 = CollectionsMarshal.AsSpan(list78); - span27[0] = new GatheringLocation + index2 = 3; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span5 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(443.0363f, 161.2974f, -616.2661f), MinimumAngle = 205, MaximumAngle = 345 }; - span27[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(444.8557f, 161.3728f, -600.3932f), MinimumAngle = 145, MaximumAngle = 275 }; - span27[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(454.163f, 161.1728f, -629.1985f), MinimumAngle = -125, @@ -14341,34 +16820,39 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - ref GatheringNodeGroup reference58 = ref span25[1]; + index++; + ref GatheringNodeGroup reference58 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span28 = CollectionsMarshal.AsSpan(list79); - ref GatheringNode reference59 = ref span28[0]; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span4 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref GatheringNode reference59 = ref span4[num2]; GatheringNode obj39 = new GatheringNode { DataId = 33899u }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span29 = CollectionsMarshal.AsSpan(list80); - span29[0] = new GatheringLocation + num4 = 3; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span5 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(570.556f, 161.4453f, -670.7103f), MinimumAngle = -30, MaximumAngle = 95 }; - span29[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(581.0989f, 161.3507f, -660.939f), MinimumAngle = 0, MaximumAngle = 110 }; - span29[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(594.2559f, 163.7275f, -639.3449f), MinimumAngle = 0, @@ -14376,15 +16860,18 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list80; reference59 = obj39; - ref GatheringNode reference60 = ref span28[1]; + num2++; + ref GatheringNode reference60 = ref span4[num2]; GatheringNode obj40 = new GatheringNode { DataId = 33898u }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span5 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(584.6903f, 161.4933f, -649.8119f), MinimumAngle = 70, @@ -14394,34 +16881,39 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - ref GatheringNodeGroup reference61 = ref span25[2]; + index++; + ref GatheringNodeGroup reference61 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span30 = CollectionsMarshal.AsSpan(list82); - ref GatheringNode reference62 = ref span30[0]; + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + ref GatheringNode reference62 = ref span4[num3]; GatheringNode obj41 = new GatheringNode { DataId = 33897u }; - num3 = 3; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span31 = CollectionsMarshal.AsSpan(list83); - span31[0] = new GatheringLocation + num4 = 3; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span5 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(607.6349f, 161.3022f, -502.1884f), MinimumAngle = 0, MaximumAngle = 130 }; - span31[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(604.954f, 161.3468f, -508.9037f), MinimumAngle = 0, MaximumAngle = 125 }; - span31[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(589.7828f, 161.4424f, -519.1625f), MinimumAngle = 175, @@ -14429,15 +16921,18 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - ref GatheringNode reference63 = ref span30[1]; + num3++; + ref GatheringNode reference63 = ref span4[num3]; GatheringNode obj42 = new GatheringNode { DataId = 33896u }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span5 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(603.6301f, 161.3214f, -520.9421f), MinimumAngle = 20, @@ -14450,38 +16945,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(815, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span = CollectionsMarshal.AsSpan(list85); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 956) + span2 = CollectionsMarshal.AsSpan(list86); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; gatheringRoot8.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span32 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference64 = ref span32[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span3 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference64 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span33 = CollectionsMarshal.AsSpan(list88); - ref GatheringNode reference65 = ref span33[0]; + num3 = 2; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span4 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference65 = ref span4[num2]; GatheringNode obj43 = new GatheringNode { DataId = 33902u }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span5 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(88.60914f, 73.62239f, -402.4773f), MinimumAngle = 80, @@ -14489,28 +16992,32 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - ref GatheringNode reference66 = ref span33[1]; + num2++; + ref GatheringNode reference66 = ref span4[num2]; GatheringNode obj44 = new GatheringNode { DataId = 33903u }; - num3 = 3; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span34 = CollectionsMarshal.AsSpan(list90); - span34[0] = new GatheringLocation + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span5 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(85.61829f, 73.2991f, -400.5821f), MinimumAngle = 35, MaximumAngle = 225 }; - span34[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(93.23958f, 73.67628f, -393.219f), MinimumAngle = -80, MaximumAngle = 80 }; - span34[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(98.62136f, 74.0167f, -394.248f), MinimumAngle = -140, @@ -14520,34 +17027,39 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - ref GatheringNodeGroup reference67 = ref span32[1]; + num++; + ref GatheringNodeGroup reference67 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span35 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference68 = ref span35[0]; + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference68 = ref span4[num3]; GatheringNode obj45 = new GatheringNode { DataId = 33905u }; - num3 = 3; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span36 = CollectionsMarshal.AsSpan(list92); - span36[0] = new GatheringLocation + num4 = 3; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + span5 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(120.6405f, 84.99234f, -556.7947f), MinimumAngle = -10, MaximumAngle = 155 }; - span36[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(90.8064f, 80.4303f, -549.3706f), MinimumAngle = -45, MaximumAngle = 90 }; - span36[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(108.5405f, 82.52325f, -552.4589f), MinimumAngle = -115, @@ -14555,15 +17067,18 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - ref GatheringNode reference69 = ref span35[1]; + num3++; + ref GatheringNode reference69 = ref span4[num3]; GatheringNode obj46 = new GatheringNode { DataId = 33904u }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span5 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(102.0981f, 81.4679f, -550.4082f), MinimumAngle = -90, @@ -14573,34 +17088,39 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - ref GatheringNodeGroup reference70 = ref span32[2]; + num++; + ref GatheringNodeGroup reference70 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span37 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference71 = ref span37[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + span4 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference71 = ref span4[num2]; GatheringNode obj47 = new GatheringNode { DataId = 33901u }; - num3 = 3; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span38 = CollectionsMarshal.AsSpan(list95); - span38[0] = new GatheringLocation + num4 = 3; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span5 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(2.243042f, 70.71661f, -453.1277f), MinimumAngle = 85, MaximumAngle = 215 }; - span38[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-18.2041f, 69.83583f, -464.331f), MinimumAngle = -120, MaximumAngle = 50 }; - span38[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(1.110765f, 71.56169f, -477.9129f), MinimumAngle = -135, @@ -14608,15 +17128,18 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - ref GatheringNode reference72 = ref span37[1]; + num2++; + ref GatheringNode reference72 = ref span4[num2]; GatheringNode obj48 = new GatheringNode { DataId = 33900u }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span5 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-8.431995f, 70.52238f, -470.8453f), MinimumAngle = -125, @@ -14632,12 +17155,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; gatheringRoot9.Author = list97; - num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 957) + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; @@ -14645,35 +17172,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span39 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference73 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list99); + index = 0; + ref GatheringNodeGroup reference73 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span40 = CollectionsMarshal.AsSpan(list100); - ref GatheringNode reference74 = ref span40[0]; + span4 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + ref GatheringNode reference74 = ref span4[num3]; GatheringNode obj49 = new GatheringNode { DataId = 33914u }; - num3 = 3; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span41 = CollectionsMarshal.AsSpan(list101); - span41[0] = new GatheringLocation + num4 = 3; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span5 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-12.16765f, 20.89473f, 506.2973f), MinimumAngle = -35, MaximumAngle = 60 }; - span41[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(38.53326f, 21.61461f, 494.6865f), MinimumAngle = -100, MaximumAngle = 35 }; - span41[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(11.01325f, 20.33474f, 505.0459f), MinimumAngle = -80, @@ -14681,15 +17213,18 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - ref GatheringNode reference75 = ref span40[1]; + num3++; + ref GatheringNode reference75 = ref span4[num3]; GatheringNode obj50 = new GatheringNode { DataId = 33913u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span5 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(21.21178f, 20.57622f, 500.2734f), MinimumAngle = -75, @@ -14699,21 +17234,25 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - ref GatheringNodeGroup reference76 = ref span39[1]; + index++; + ref GatheringNodeGroup reference76 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span42 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference77 = ref span42[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span4 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference77 = ref span4[num2]; GatheringNode obj51 = new GatheringNode { DataId = 33909u }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span5 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-138.8536f, 28.9297f, 406.4425f), MinimumAngle = -25, @@ -14721,28 +17260,32 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - ref GatheringNode reference78 = ref span42[1]; + num2++; + ref GatheringNode reference78 = ref span4[num2]; GatheringNode obj52 = new GatheringNode { DataId = 33910u }; - num3 = 3; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span43 = CollectionsMarshal.AsSpan(list105); - span43[0] = new GatheringLocation + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span5 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-151.642f, 28.40338f, 389.8896f), MinimumAngle = 0, MaximumAngle = 120 }; - span43[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-153.7647f, 28.03966f, 372.3844f), MinimumAngle = 40, MaximumAngle = 165 }; - span43[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-122.402f, 28.91794f, 415.5278f), MinimumAngle = -25, @@ -14752,21 +17295,25 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - ref GatheringNodeGroup reference79 = ref span39[2]; + index++; + ref GatheringNodeGroup reference79 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span44 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference80 = ref span44[0]; + span4 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference80 = ref span4[num3]; GatheringNode obj53 = new GatheringNode { DataId = 33911u }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + span5 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-178.974f, 22.0284f, 509.5606f), MinimumAngle = -145, @@ -14774,28 +17321,32 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - ref GatheringNode reference81 = ref span44[1]; + num3++; + ref GatheringNode reference81 = ref span4[num3]; GatheringNode obj54 = new GatheringNode { DataId = 33912u }; - num3 = 3; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = new GatheringLocation + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-180.526f, 25.92117f, 532.3414f), MinimumAngle = 175, MaximumAngle = 295 }; - span45[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-162.8302f, 16.1582f, 523.17f), MinimumAngle = -115, MaximumAngle = -10 }; - span45[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-180.8041f, 27.12615f, 522.0873f), MinimumAngle = -155, @@ -14808,38 +17359,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list99; AddLocation(818, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + index = 1; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span = CollectionsMarshal.AsSpan(list109); + num = 0; + span[num] = "liza"; gatheringRoot10.Author = list109; num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.None, null, null, 957) + span2 = CollectionsMarshal.AsSpan(list110); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; gatheringRoot10.Steps = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span46 = CollectionsMarshal.AsSpan(list111); - ref GatheringNodeGroup reference82 = ref span46[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span3 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref GatheringNodeGroup reference82 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span47 = CollectionsMarshal.AsSpan(list112); - ref GatheringNode reference83 = ref span47[0]; + num3 = 2; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span4 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref GatheringNode reference83 = ref span4[num2]; GatheringNode obj55 = new GatheringNode { DataId = 33918u }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span5 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-582.5132f, 40.54578f, -426.0171f), MinimumAngle = -50, @@ -14847,28 +17406,32 @@ public static class AssemblyGatheringLocationLoader }; obj55.Locations = list113; reference83 = obj55; - ref GatheringNode reference84 = ref span47[1]; + num2++; + ref GatheringNode reference84 = ref span4[num2]; GatheringNode obj56 = new GatheringNode { DataId = 33919u }; - num3 = 3; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span48 = CollectionsMarshal.AsSpan(list114); - span48[0] = new GatheringLocation + index2 = 3; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span5 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-578.2101f, 41.27147f, -447.6376f), MinimumAngle = 130, MaximumAngle = 220 }; - span48[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-546.2882f, 44.52267f, -435.8184f), MinimumAngle = 200, MaximumAngle = 360 }; - span48[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-606.7445f, 38.37634f, -425.5284f), MinimumAngle = -80, @@ -14878,21 +17441,25 @@ public static class AssemblyGatheringLocationLoader reference84 = obj56; gatheringNodeGroup28.Nodes = list112; reference82 = gatheringNodeGroup28; - ref GatheringNodeGroup reference85 = ref span46[1]; + num++; + ref GatheringNodeGroup reference85 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span49 = CollectionsMarshal.AsSpan(list115); - ref GatheringNode reference86 = ref span49[0]; + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + ref GatheringNode reference86 = ref span4[num3]; GatheringNode obj57 = new GatheringNode { DataId = 33920u }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new GatheringLocation + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + span5 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-488.2276f, 34.71221f, -359.6945f), MinimumAngle = 20, @@ -14901,28 +17468,32 @@ public static class AssemblyGatheringLocationLoader }; obj57.Locations = list116; reference86 = obj57; - ref GatheringNode reference87 = ref span49[1]; + num3++; + ref GatheringNode reference87 = ref span4[num3]; GatheringNode obj58 = new GatheringNode { DataId = 33921u }; - num3 = 3; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span50 = CollectionsMarshal.AsSpan(list117); - span50[0] = new GatheringLocation + index2 = 3; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span5 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-498.8687f, 31.08014f, -351.9397f), MinimumAngle = 40, MaximumAngle = 190 }; - span50[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-490.7759f, 28.70215f, -344.4114f), MinimumAngle = -110, MaximumAngle = 60 }; - span50[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-494.1286f, 32.89971f, -355.0208f), MinimumAngle = 80, @@ -14932,21 +17503,25 @@ public static class AssemblyGatheringLocationLoader reference87 = obj58; gatheringNodeGroup29.Nodes = list115; reference85 = gatheringNodeGroup29; - ref GatheringNodeGroup reference88 = ref span46[2]; + num++; + ref GatheringNodeGroup reference88 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span51 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference89 = ref span51[0]; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span4 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference89 = ref span4[num2]; GatheringNode obj59 = new GatheringNode { DataId = 33922u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + span5 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-304.0609f, 68.76999f, -479.1875f), MinimumAngle = -110, @@ -14954,28 +17529,32 @@ public static class AssemblyGatheringLocationLoader }; obj59.Locations = list119; reference89 = obj59; - ref GatheringNode reference90 = ref span51[1]; + num2++; + ref GatheringNode reference90 = ref span4[num2]; GatheringNode obj60 = new GatheringNode { DataId = 33923u }; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span52 = CollectionsMarshal.AsSpan(list120); - span52[0] = new GatheringLocation + index2 = 3; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span5 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-293.6989f, 68.77935f, -484.2256f), MinimumAngle = -30, MaximumAngle = 110 }; - span52[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-295.0806f, 69.12621f, -498.1898f), MinimumAngle = 10, MaximumAngle = 200 }; - span52[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-281.4858f, 67.64153f, -477.6673f), MinimumAngle = -105, @@ -14991,12 +17570,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "liza"; gatheringRoot11.Author = list121; - num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 959) + index = 1; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; @@ -15004,35 +17587,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span53 = CollectionsMarshal.AsSpan(list123); - ref GatheringNodeGroup reference91 = ref span53[0]; + span3 = CollectionsMarshal.AsSpan(list123); + index = 0; + ref GatheringNodeGroup reference91 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span54 = CollectionsMarshal.AsSpan(list124); - ref GatheringNode reference92 = ref span54[0]; + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference92 = ref span4[num3]; GatheringNode obj61 = new GatheringNode { DataId = 33929u }; - num3 = 3; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span55 = CollectionsMarshal.AsSpan(list125); - span55[0] = new GatheringLocation + num4 = 3; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + span5 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(304.4121f, 118.8077f, 673.4494f), MinimumAngle = 50, MaximumAngle = 230 }; - span55[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(297.7666f, 119.4976f, 679.5604f), MinimumAngle = 50, MaximumAngle = 220 }; - span55[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(322.163f, 119.0883f, 657.4384f), MinimumAngle = 55, @@ -15040,15 +17628,18 @@ public static class AssemblyGatheringLocationLoader }; obj61.Locations = list125; reference92 = obj61; - ref GatheringNode reference93 = ref span54[1]; + num3++; + ref GatheringNode reference93 = ref span4[num3]; GatheringNode obj62 = new GatheringNode { DataId = 33928u }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span5 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(313.72f, 118.3442f, 664.8668f), MinimumAngle = 60, @@ -15058,34 +17649,39 @@ public static class AssemblyGatheringLocationLoader reference93 = obj62; gatheringNodeGroup31.Nodes = list124; reference91 = gatheringNodeGroup31; - ref GatheringNodeGroup reference94 = ref span53[1]; + index++; + ref GatheringNodeGroup reference94 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span56 = CollectionsMarshal.AsSpan(list127); - ref GatheringNode reference95 = ref span56[0]; + num3 = 2; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + span4 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref GatheringNode reference95 = ref span4[num2]; GatheringNode obj63 = new GatheringNode { DataId = 33927u }; - num3 = 3; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span57 = CollectionsMarshal.AsSpan(list128); - span57[0] = new GatheringLocation + num4 = 3; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + span5 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(394.3838f, 144.7951f, 820.7851f), MinimumAngle = 75, MaximumAngle = 250 }; - span57[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(421.0549f, 143.6111f, 805.9457f), MinimumAngle = 60, MaximumAngle = 225 }; - span57[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(414.2961f, 143.2405f, 811.3884f), MinimumAngle = 65, @@ -15093,15 +17689,18 @@ public static class AssemblyGatheringLocationLoader }; obj63.Locations = list128; reference95 = obj63; - ref GatheringNode reference96 = ref span56[1]; + num2++; + ref GatheringNode reference96 = ref span4[num2]; GatheringNode obj64 = new GatheringNode { DataId = 33926u }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new GatheringLocation + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span5 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(405.2481f, 143.6621f, 816.6496f), MinimumAngle = 75, @@ -15111,34 +17710,39 @@ public static class AssemblyGatheringLocationLoader reference96 = obj64; gatheringNodeGroup32.Nodes = list127; reference94 = gatheringNodeGroup32; - ref GatheringNodeGroup reference97 = ref span53[2]; + index++; + ref GatheringNodeGroup reference97 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span58 = CollectionsMarshal.AsSpan(list130); - ref GatheringNode reference98 = ref span58[0]; + span4 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + ref GatheringNode reference98 = ref span4[num3]; GatheringNode obj65 = new GatheringNode { DataId = 33925u }; - num3 = 3; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span59 = CollectionsMarshal.AsSpan(list131); - span59[0] = new GatheringLocation + num4 = 3; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + span5 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(474.679f, 143.4776f, 698.5961f), MinimumAngle = 20, MaximumAngle = 170 }; - span59[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(474.8585f, 144.2588f, 685.7468f), MinimumAngle = 0, MaximumAngle = 155 }; - span59[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(467.506f, 144.9235f, 654.2f), MinimumAngle = 0, @@ -15146,15 +17750,18 @@ public static class AssemblyGatheringLocationLoader }; obj65.Locations = list131; reference98 = obj65; - ref GatheringNode reference99 = ref span58[1]; + num3++; + ref GatheringNode reference99 = ref span4[num3]; GatheringNode obj66 = new GatheringNode { DataId = 33924u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span5 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(470.7754f, 144.8793f, 672.114f), MinimumAngle = -5, @@ -15167,38 +17774,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list123; AddLocation(821, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + index = 1; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span = CollectionsMarshal.AsSpan(list133); + num = 0; + span[num] = "liza"; gatheringRoot12.Author = list133; num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 958) + span2 = CollectionsMarshal.AsSpan(list134); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; gatheringRoot12.Steps = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span60 = CollectionsMarshal.AsSpan(list135); - ref GatheringNodeGroup reference100 = ref span60[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span3 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref GatheringNodeGroup reference100 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span61 = CollectionsMarshal.AsSpan(list136); - ref GatheringNode reference101 = ref span61[0]; + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + span4 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference101 = ref span4[num2]; GatheringNode obj67 = new GatheringNode { DataId = 33932u }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation + num4 = 1; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + span5 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-80.95969f, -9.810837f, 462.2579f), MinimumAngle = 130, @@ -15206,28 +17821,32 @@ public static class AssemblyGatheringLocationLoader }; obj67.Locations = list137; reference101 = obj67; - ref GatheringNode reference102 = ref span61[1]; + num2++; + ref GatheringNode reference102 = ref span4[num2]; GatheringNode obj68 = new GatheringNode { DataId = 33933u }; - num3 = 3; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span62 = CollectionsMarshal.AsSpan(list138); - span62[0] = new GatheringLocation + index2 = 3; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span5 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-72.11935f, -10.90324f, 471.2258f), MinimumAngle = 105, MaximumAngle = 250 }; - span62[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-98.97565f, -5.664787f, 463.9966f), MinimumAngle = 60, MaximumAngle = 230 }; - span62[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-63.49503f, -11.21235f, 469.3839f), MinimumAngle = 80, @@ -15237,34 +17856,39 @@ public static class AssemblyGatheringLocationLoader reference102 = obj68; gatheringNodeGroup34.Nodes = list136; reference100 = gatheringNodeGroup34; - ref GatheringNodeGroup reference103 = ref span60[1]; + num++; + ref GatheringNodeGroup reference103 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span63 = CollectionsMarshal.AsSpan(list139); - ref GatheringNode reference104 = ref span63[0]; + span4 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + ref GatheringNode reference104 = ref span4[num3]; GatheringNode obj69 = new GatheringNode { DataId = 33931u }; - num3 = 3; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span64 = CollectionsMarshal.AsSpan(list140); - span64[0] = new GatheringLocation + num4 = 3; + List list140 = new List(num4); + CollectionsMarshal.SetCount(list140, num4); + span5 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-61.34306f, 6.11244f, 318.3409f), MinimumAngle = -120, MaximumAngle = 70 }; - span64[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-61.47854f, 6.076105f, 281.4938f), MinimumAngle = 65, MaximumAngle = 240 }; - span64[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-73.25829f, 6.108262f, 302.9926f), MinimumAngle = 50, @@ -15272,15 +17896,18 @@ public static class AssemblyGatheringLocationLoader }; obj69.Locations = list140; reference104 = obj69; - ref GatheringNode reference105 = ref span63[1]; + num3++; + ref GatheringNode reference105 = ref span4[num3]; GatheringNode obj70 = new GatheringNode { DataId = 33930u }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span5 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-51.28564f, 6.088318f, 318.0529f), MinimumAngle = -65, @@ -15290,34 +17917,39 @@ public static class AssemblyGatheringLocationLoader reference105 = obj70; gatheringNodeGroup35.Nodes = list139; reference103 = gatheringNodeGroup35; - ref GatheringNodeGroup reference106 = ref span60[2]; + num++; + ref GatheringNodeGroup reference106 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span65 = CollectionsMarshal.AsSpan(list142); - ref GatheringNode reference107 = ref span65[0]; + num3 = 2; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span4 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref GatheringNode reference107 = ref span4[num2]; GatheringNode obj71 = new GatheringNode { DataId = 33935u }; - num3 = 3; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span66 = CollectionsMarshal.AsSpan(list143); - span66[0] = new GatheringLocation + num4 = 3; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + span5 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(72.58704f, -11.59895f, 354.757f), MinimumAngle = 75, MaximumAngle = 235 }; - span66[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(65.33016f, -11.61111f, 358.7321f), MinimumAngle = 65, MaximumAngle = 235 }; - span66[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(68.21196f, -11.81954f, 366.5172f), MinimumAngle = 5, @@ -15325,15 +17957,18 @@ public static class AssemblyGatheringLocationLoader }; obj71.Locations = list143; reference107 = obj71; - ref GatheringNode reference108 = ref span65[1]; + num2++; + ref GatheringNode reference108 = ref span4[num2]; GatheringNode obj72 = new GatheringNode { DataId = 33934u }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheringLocation + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span5 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(81.30492f, -11.53227f, 347.9922f), MinimumAngle = 50, @@ -15349,12 +17984,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; gatheringRoot13.Author = list145; - num = 1; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.None, null, null, 961) + index = 1; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -15362,22 +18001,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span67 = CollectionsMarshal.AsSpan(list147); - ref GatheringNodeGroup reference109 = ref span67[0]; + span3 = CollectionsMarshal.AsSpan(list147); + index = 0; + ref GatheringNodeGroup reference109 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span68 = CollectionsMarshal.AsSpan(list148); - ref GatheringNode reference110 = ref span68[0]; + span4 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref GatheringNode reference110 = ref span4[num3]; GatheringNode obj73 = new GatheringNode { DataId = 33938u }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation + num4 = 1; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span5 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(44.65063f, 100.2818f, -531.6971f), MinimumAngle = 150, @@ -15385,28 +18028,32 @@ public static class AssemblyGatheringLocationLoader }; obj73.Locations = list149; reference110 = obj73; - ref GatheringNode reference111 = ref span68[1]; + num3++; + ref GatheringNode reference111 = ref span4[num3]; GatheringNode obj74 = new GatheringNode { DataId = 33939u }; - num3 = 3; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span69 = CollectionsMarshal.AsSpan(list150); - span69[0] = new GatheringLocation + index2 = 3; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span5 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(33.19277f, 104.5029f, -555.932f), MinimumAngle = 190, MaximumAngle = 350 }; - span69[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(65.9342f, 97.38677f, -524.9155f), MinimumAngle = 125, MaximumAngle = 295 }; - span69[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(74.52164f, 98.45871f, -489.864f), MinimumAngle = 165, @@ -15416,34 +18063,39 @@ public static class AssemblyGatheringLocationLoader reference111 = obj74; gatheringNodeGroup37.Nodes = list148; reference109 = gatheringNodeGroup37; - ref GatheringNodeGroup reference112 = ref span67[1]; + index++; + ref GatheringNodeGroup reference112 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span70 = CollectionsMarshal.AsSpan(list151); - ref GatheringNode reference113 = ref span70[0]; + num3 = 2; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span4 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref GatheringNode reference113 = ref span4[num2]; GatheringNode obj75 = new GatheringNode { DataId = 33941u }; - num3 = 3; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span71 = CollectionsMarshal.AsSpan(list152); - span71[0] = new GatheringLocation + num4 = 3; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + span5 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(279.4078f, 101.9103f, -511.9555f), MinimumAngle = 80, MaximumAngle = 215 }; - span71[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(265.2476f, 100.4918f, -491.8746f), MinimumAngle = 110, MaximumAngle = 180 }; - span71[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(290.6152f, 102.41f, -549.2336f), MinimumAngle = 40, @@ -15451,15 +18103,18 @@ public static class AssemblyGatheringLocationLoader }; obj75.Locations = list152; reference113 = obj75; - ref GatheringNode reference114 = ref span70[1]; + num2++; + ref GatheringNode reference114 = ref span4[num2]; GatheringNode obj76 = new GatheringNode { DataId = 33940u }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new GatheringLocation + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span5 = CollectionsMarshal.AsSpan(list153); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(288.9601f, 101.2474f, -520.9278f), MinimumAngle = 35, @@ -15469,34 +18124,39 @@ public static class AssemblyGatheringLocationLoader reference114 = obj76; gatheringNodeGroup38.Nodes = list151; reference112 = gatheringNodeGroup38; - ref GatheringNodeGroup reference115 = ref span67[2]; + index++; + ref GatheringNodeGroup reference115 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span72 = CollectionsMarshal.AsSpan(list154); - ref GatheringNode reference116 = ref span72[0]; + span4 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + ref GatheringNode reference116 = ref span4[num3]; GatheringNode obj77 = new GatheringNode { DataId = 33937u }; - num3 = 3; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span73 = CollectionsMarshal.AsSpan(list155); - span73[0] = new GatheringLocation + num4 = 3; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + span5 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(124.7882f, 105.6518f, -712.3575f), MinimumAngle = -45, MaximumAngle = 70 }; - span73[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(94.71277f, 105.52f, -696.7798f), MinimumAngle = -60, MaximumAngle = 80 }; - span73[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(172.8746f, 102.9022f, -700.0879f), MinimumAngle = -50, @@ -15504,15 +18164,18 @@ public static class AssemblyGatheringLocationLoader }; obj77.Locations = list155; reference116 = obj77; - ref GatheringNode reference117 = ref span72[1]; + num3++; + ref GatheringNode reference117 = ref span4[num3]; GatheringNode obj78 = new GatheringNode { DataId = 33936u }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span5 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(156.3894f, 103.6386f, -707.1092f), MinimumAngle = -85, @@ -15525,45 +18188,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list147; AddLocation(823, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + index = 1; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span = CollectionsMarshal.AsSpan(list157); + num = 0; + span[num] = "liza"; gatheringRoot14.Author = list157; num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.None, null, null, 961) + span2 = CollectionsMarshal.AsSpan(list158); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; gatheringRoot14.Steps = list158; - num = 3; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span74 = CollectionsMarshal.AsSpan(list159); - ref GatheringNodeGroup reference118 = ref span74[0]; + index = 3; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span3 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref GatheringNodeGroup reference118 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span75 = CollectionsMarshal.AsSpan(list160); - ref GatheringNode reference119 = ref span75[0]; + num3 = 2; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + span4 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref GatheringNode reference119 = ref span4[num2]; GatheringNode obj79 = new GatheringNode { DataId = 33945u }; - num3 = 3; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span76 = CollectionsMarshal.AsSpan(list161); - span76[0] = new GatheringLocation + num4 = 3; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + span5 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-478.091f, 136.505f, -144.7721f), MinimumAngle = 185, MaximumAngle = 360 }; - span76[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-472.7283f, 136.9691f, -153.0142f), MinimumAngle = -105, @@ -15571,7 +18242,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.6f, MaximumDistance = 3f }; - span76[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-457.2324f, 136.2298f, -153.2787f), MinimumAngle = 70, @@ -15579,15 +18251,18 @@ public static class AssemblyGatheringLocationLoader }; obj79.Locations = list161; reference119 = obj79; - ref GatheringNode reference120 = ref span75[1]; + num2++; + ref GatheringNode reference120 = ref span4[num2]; GatheringNode obj80 = new GatheringNode { DataId = 33944u }; - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = new GatheringLocation + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span5 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-477.1867f, 137.1741f, -150.0524f), MinimumAngle = -95, @@ -15597,21 +18272,25 @@ public static class AssemblyGatheringLocationLoader reference120 = obj80; gatheringNodeGroup40.Nodes = list160; reference118 = gatheringNodeGroup40; - ref GatheringNodeGroup reference121 = ref span74[1]; + num++; + ref GatheringNodeGroup reference121 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span77 = CollectionsMarshal.AsSpan(list163); - ref GatheringNode reference122 = ref span77[0]; + span4 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + ref GatheringNode reference122 = ref span4[num3]; GatheringNode obj81 = new GatheringNode { DataId = 33946u }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new GatheringLocation + num4 = 1; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + span5 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-335.5337f, 148.5269f, -83.30743f), MinimumAngle = 140, @@ -15619,28 +18298,32 @@ public static class AssemblyGatheringLocationLoader }; obj81.Locations = list164; reference122 = obj81; - ref GatheringNode reference123 = ref span77[1]; + num3++; + ref GatheringNode reference123 = ref span4[num3]; GatheringNode obj82 = new GatheringNode { DataId = 33947u }; - num3 = 3; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span78 = CollectionsMarshal.AsSpan(list165); - span78[0] = new GatheringLocation + index2 = 3; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span5 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-333.4615f, 148.59f, -78.42037f), MinimumAngle = -160, MaximumAngle = -15 }; - span78[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-342.3078f, 145.4429f, -109.3348f), MinimumAngle = 210, MaximumAngle = 355 }; - span78[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-327.4102f, 143.6382f, -118.3601f), MinimumAngle = -30, @@ -15650,21 +18333,25 @@ public static class AssemblyGatheringLocationLoader reference123 = obj82; gatheringNodeGroup41.Nodes = list163; reference121 = gatheringNodeGroup41; - ref GatheringNodeGroup reference124 = ref span74[2]; + num++; + ref GatheringNodeGroup reference124 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span79 = CollectionsMarshal.AsSpan(list166); - ref GatheringNode reference125 = ref span79[0]; + num3 = 2; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + span4 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref GatheringNode reference125 = ref span4[num2]; GatheringNode obj83 = new GatheringNode { DataId = 33942u }; - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new GatheringLocation + num4 = 1; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + span5 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-291.2093f, 136.4047f, -228.9244f), MinimumAngle = 120, @@ -15672,28 +18359,32 @@ public static class AssemblyGatheringLocationLoader }; obj83.Locations = list167; reference125 = obj83; - ref GatheringNode reference126 = ref span79[1]; + num2++; + ref GatheringNode reference126 = ref span4[num2]; GatheringNode obj84 = new GatheringNode { DataId = 33943u }; - num3 = 3; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span80 = CollectionsMarshal.AsSpan(list168); - span80[0] = new GatheringLocation + index2 = 3; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span5 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-343.5337f, 140.0085f, -243.2652f), MinimumAngle = 115, MaximumAngle = 255 }; - span80[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-337.3867f, 136.3985f, -237.7285f), MinimumAngle = -130, MaximumAngle = 10 }; - span80[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-304.9684f, 136.2381f, -229.2424f), MinimumAngle = 115, @@ -15709,12 +18400,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; gatheringRoot15.Author = list169; - num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.None, null, null, 956) + index = 1; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -15727,22 +18422,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span81 = CollectionsMarshal.AsSpan(list171); - ref GatheringNodeGroup reference127 = ref span81[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index = 0; + ref GatheringNodeGroup reference127 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span82 = CollectionsMarshal.AsSpan(list172); - ref GatheringNode reference128 = ref span82[0]; + span4 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + ref GatheringNode reference128 = ref span4[num3]; GatheringNode obj85 = new GatheringNode { DataId = 33974u }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new GatheringLocation + num4 = 1; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + span5 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-218.7686f, 166.4283f, -723.4156f), MinimumAngle = 85, @@ -15750,28 +18449,32 @@ public static class AssemblyGatheringLocationLoader }; obj85.Locations = list173; reference128 = obj85; - ref GatheringNode reference129 = ref span82[1]; + num3++; + ref GatheringNode reference129 = ref span4[num3]; GatheringNode obj86 = new GatheringNode { DataId = 33975u }; - num3 = 3; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span83 = CollectionsMarshal.AsSpan(list174); - span83[0] = new GatheringLocation + index2 = 3; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span5 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-212.9429f, 165.4075f, -702.5071f), MinimumAngle = 80, MaximumAngle = 230 }; - span83[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-230.457f, 166.878f, -708.8349f), MinimumAngle = 115, MaximumAngle = 235 }; - span83[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-211.0781f, 165.8331f, -732.723f), MinimumAngle = 60, @@ -15781,21 +18484,25 @@ public static class AssemblyGatheringLocationLoader reference129 = obj86; gatheringNodeGroup43.Nodes = list172; reference127 = gatheringNodeGroup43; - ref GatheringNodeGroup reference130 = ref span81[1]; + index++; + ref GatheringNodeGroup reference130 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span84 = CollectionsMarshal.AsSpan(list175); - ref GatheringNode reference131 = ref span84[0]; + num3 = 2; + List list175 = new List(num3); + CollectionsMarshal.SetCount(list175, num3); + span4 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref GatheringNode reference131 = ref span4[num2]; GatheringNode obj87 = new GatheringNode { DataId = 33972u }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new GatheringLocation + num4 = 1; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + span5 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-281.8436f, 181.3823f, -815.8576f), MinimumAngle = 230, @@ -15803,28 +18510,32 @@ public static class AssemblyGatheringLocationLoader }; obj87.Locations = list176; reference131 = obj87; - ref GatheringNode reference132 = ref span84[1]; + num2++; + ref GatheringNode reference132 = ref span4[num2]; GatheringNode obj88 = new GatheringNode { DataId = 33973u }; - num3 = 3; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span85 = CollectionsMarshal.AsSpan(list177); - span85[0] = new GatheringLocation + index2 = 3; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span5 = CollectionsMarshal.AsSpan(list177); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-268.4985f, 181.0501f, -829.9652f), MinimumAngle = -115, MaximumAngle = 45 }; - span85[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-290.0164f, 182.6228f, -817.2674f), MinimumAngle = -145, MaximumAngle = 35 }; - span85[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-264.0305f, 180.8218f, -837.3401f), MinimumAngle = -40, @@ -15834,34 +18545,39 @@ public static class AssemblyGatheringLocationLoader reference132 = obj88; gatheringNodeGroup44.Nodes = list175; reference130 = gatheringNodeGroup44; - ref GatheringNodeGroup reference133 = ref span81[2]; + index++; + ref GatheringNodeGroup reference133 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span86 = CollectionsMarshal.AsSpan(list178); - ref GatheringNode reference134 = ref span86[0]; + span4 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + ref GatheringNode reference134 = ref span4[num3]; GatheringNode obj89 = new GatheringNode { DataId = 33971u }; - num3 = 3; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span87 = CollectionsMarshal.AsSpan(list179); - span87[0] = new GatheringLocation + num4 = 3; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + span5 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-385.0122f, 189.0781f, -711.0446f), MinimumAngle = -30, MaximumAngle = 100 }; - span87[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-407.4641f, 187.9986f, -684.2576f), MinimumAngle = 180, MaximumAngle = 310 }; - span87[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-395.5105f, 187.897f, -687.5342f), MinimumAngle = 0, @@ -15869,15 +18585,18 @@ public static class AssemblyGatheringLocationLoader }; obj89.Locations = list179; reference134 = obj89; - ref GatheringNode reference135 = ref span86[1]; + num3++; + ref GatheringNode reference135 = ref span4[num3]; GatheringNode obj90 = new GatheringNode { DataId = 33970u }; - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new GatheringLocation + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span5 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-400.513f, 188.9934f, -695.2208f), MinimumAngle = 165, @@ -15890,61 +18609,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list171; AddLocation(837, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + index = 1; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span = CollectionsMarshal.AsSpan(list181); + num = 0; + span[num] = "liza"; gatheringRoot16.Author = list181; num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.None, null, null, 956) + span2 = CollectionsMarshal.AsSpan(list182); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; gatheringRoot16.Steps = list182; - num = 3; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span88 = CollectionsMarshal.AsSpan(list183); - ref GatheringNodeGroup reference136 = ref span88[0]; + index = 3; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + span3 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref GatheringNodeGroup reference136 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span89 = CollectionsMarshal.AsSpan(list184); - ref GatheringNode reference137 = ref span89[0]; + num3 = 2; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + span4 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref GatheringNode reference137 = ref span4[num2]; GatheringNode obj91 = new GatheringNode { DataId = 33980u }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span5 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(331.2026f, 86.06693f, -318.6516f) }; obj91.Locations = list185; reference137 = obj91; - ref GatheringNode reference138 = ref span89[1]; + num2++; + ref GatheringNode reference138 = ref span4[num2]; GatheringNode obj92 = new GatheringNode { DataId = 33981u }; - num3 = 3; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span90 = CollectionsMarshal.AsSpan(list186); - span90[0] = new GatheringLocation + index2 = 3; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span5 = CollectionsMarshal.AsSpan(list186); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(334.0037f, 85.40742f, -300.7174f) }; - span90[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(355.6456f, 86.62501f, -308.6764f) }; - span90[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(340.9933f, 86.25529f, -324.239f) }; @@ -15952,44 +18683,52 @@ public static class AssemblyGatheringLocationLoader reference138 = obj92; gatheringNodeGroup46.Nodes = list184; reference136 = gatheringNodeGroup46; - ref GatheringNodeGroup reference139 = ref span88[1]; + num++; + ref GatheringNodeGroup reference139 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span91 = CollectionsMarshal.AsSpan(list187); - ref GatheringNode reference140 = ref span91[0]; + span4 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + ref GatheringNode reference140 = ref span4[num3]; GatheringNode obj93 = new GatheringNode { DataId = 33979u }; - num3 = 3; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span92 = CollectionsMarshal.AsSpan(list188); - span92[0] = new GatheringLocation + num4 = 3; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + span5 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(255.936f, 70.96983f, -233.1732f) }; - span92[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(239.4902f, 69.74259f, -224.506f) }; - span92[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(265.0269f, 70.56706f, -208.2487f) }; obj93.Locations = list188; reference140 = obj93; - ref GatheringNode reference141 = ref span91[1]; + num3++; + ref GatheringNode reference141 = ref span4[num3]; GatheringNode obj94 = new GatheringNode { DataId = 33978u }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span5 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(262.5149f, 69.96209f, -200.2567f), MinimumAngle = 55, @@ -15999,44 +18738,52 @@ public static class AssemblyGatheringLocationLoader reference141 = obj94; gatheringNodeGroup47.Nodes = list187; reference139 = gatheringNodeGroup47; - ref GatheringNodeGroup reference142 = ref span88[2]; + num++; + ref GatheringNodeGroup reference142 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span93 = CollectionsMarshal.AsSpan(list190); - ref GatheringNode reference143 = ref span93[0]; + num3 = 2; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + span4 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref GatheringNode reference143 = ref span4[num2]; GatheringNode obj95 = new GatheringNode { DataId = 33976u }; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new GatheringLocation + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + span5 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(375.1279f, 67.35788f, -150.6431f) }; obj95.Locations = list191; reference143 = obj95; - ref GatheringNode reference144 = ref span93[1]; + num2++; + ref GatheringNode reference144 = ref span4[num2]; GatheringNode obj96 = new GatheringNode { DataId = 33977u }; - num3 = 3; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span94 = CollectionsMarshal.AsSpan(list192); - span94[0] = new GatheringLocation + index2 = 3; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span5 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(392.5393f, 65.98527f, -141.6628f) }; - span94[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(368.5759f, 67.33283f, -140.4326f) }; - span94[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(383.0393f, 67.01035f, -158.8207f) }; @@ -16050,12 +18797,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; gatheringRoot17.Author = list193; - num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.None, null, null, 957) + index = 1; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -16063,22 +18814,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span95 = CollectionsMarshal.AsSpan(list195); - ref GatheringNodeGroup reference145 = ref span95[0]; + span3 = CollectionsMarshal.AsSpan(list195); + index = 0; + ref GatheringNodeGroup reference145 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 2; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span96 = CollectionsMarshal.AsSpan(list196); - ref GatheringNode reference146 = ref span96[0]; + span4 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + ref GatheringNode reference146 = ref span4[num3]; GatheringNode obj97 = new GatheringNode { DataId = 33982u }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + span5 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-274.8412f, 17.35062f, 118.8987f), MinimumAngle = 175, @@ -16086,28 +18841,32 @@ public static class AssemblyGatheringLocationLoader }; obj97.Locations = list197; reference146 = obj97; - ref GatheringNode reference147 = ref span96[1]; + num3++; + ref GatheringNode reference147 = ref span4[num3]; GatheringNode obj98 = new GatheringNode { DataId = 33983u }; - num3 = 3; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span97 = CollectionsMarshal.AsSpan(list198); - span97[0] = new GatheringLocation + index2 = 3; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span5 = CollectionsMarshal.AsSpan(list198); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-267.3967f, 17.7139f, 123.6814f), MinimumAngle = 40, MaximumAngle = 245 }; - span97[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-287.5207f, 18.51543f, 101.9367f), MinimumAngle = 155, MaximumAngle = 325 }; - span97[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-268.33f, 19.74485f, 102.5864f), MinimumAngle = -150, @@ -16117,21 +18876,25 @@ public static class AssemblyGatheringLocationLoader reference147 = obj98; gatheringNodeGroup49.Nodes = list196; reference145 = gatheringNodeGroup49; - ref GatheringNodeGroup reference148 = ref span95[1]; + index++; + ref GatheringNodeGroup reference148 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num2 = 2; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span98 = CollectionsMarshal.AsSpan(list199); - ref GatheringNode reference149 = ref span98[0]; + num3 = 2; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + span4 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + ref GatheringNode reference149 = ref span4[num2]; GatheringNode obj99 = new GatheringNode { DataId = 33984u }; - num3 = 1; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheringLocation + num4 = 1; + List list200 = new List(num4); + CollectionsMarshal.SetCount(list200, num4); + span5 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-152.7941f, 38.65108f, 20.30975f), MinimumAngle = 0, @@ -16139,28 +18902,32 @@ public static class AssemblyGatheringLocationLoader }; obj99.Locations = list200; reference149 = obj99; - ref GatheringNode reference150 = ref span98[1]; + num2++; + ref GatheringNode reference150 = ref span4[num2]; GatheringNode obj100 = new GatheringNode { DataId = 33985u }; - num3 = 3; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - Span span99 = CollectionsMarshal.AsSpan(list201); - span99[0] = new GatheringLocation + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span5 = CollectionsMarshal.AsSpan(list201); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-142.8687f, 41.0236f, 21.84206f), MinimumAngle = -65, MaximumAngle = 85 }; - span99[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-146.3786f, 40.56817f, 29.28198f), MinimumAngle = -10, MaximumAngle = 140 }; - span99[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-147.6553f, 41.60496f, -0.04698198f), MinimumAngle = -130, @@ -16170,28 +18937,32 @@ public static class AssemblyGatheringLocationLoader reference150 = obj100; gatheringNodeGroup50.Nodes = list199; reference148 = gatheringNodeGroup50; - ref GatheringNodeGroup reference151 = ref span95[2]; + index++; + ref GatheringNodeGroup reference151 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 2; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span100 = CollectionsMarshal.AsSpan(list202); - ref GatheringNode reference152 = ref span100[0]; + span4 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + ref GatheringNode reference152 = ref span4[num3]; GatheringNode obj101 = new GatheringNode { DataId = 33987u }; - num3 = 2; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span101 = CollectionsMarshal.AsSpan(list203); - span101[0] = new GatheringLocation + num4 = 2; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + span5 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-270.0331f, 35.83369f, -29.07548f), MinimumAngle = 200, MaximumAngle = 330 }; - span101[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-274.9584f, 35.26747f, -31.89327f), MinimumAngle = 90, @@ -16199,15 +18970,18 @@ public static class AssemblyGatheringLocationLoader }; obj101.Locations = list203; reference152 = obj101; - ref GatheringNode reference153 = ref span100[1]; + num3++; + ref GatheringNode reference153 = ref span4[num3]; GatheringNode obj102 = new GatheringNode { DataId = 33986u }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span5 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-267.6438f, 35.07198f, -44.49979f), MinimumAngle = -100, @@ -16220,61 +18994,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list195; AddLocation(839, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + index = 1; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span = CollectionsMarshal.AsSpan(list205); + num = 0; + span[num] = "liza"; gatheringRoot18.Author = list205; num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.None, null, null, 957) + span2 = CollectionsMarshal.AsSpan(list206); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; gatheringRoot18.Steps = list206; - num = 3; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span102 = CollectionsMarshal.AsSpan(list207); - ref GatheringNodeGroup reference154 = ref span102[0]; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span3 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref GatheringNodeGroup reference154 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 2; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span103 = CollectionsMarshal.AsSpan(list208); - ref GatheringNode reference155 = ref span103[0]; + num3 = 2; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + span4 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref GatheringNode reference155 = ref span4[num2]; GatheringNode obj103 = new GatheringNode { DataId = 33993u }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + span5 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-97.85602f, 91.39626f, -562.7067f) }; obj103.Locations = list209; reference155 = obj103; - ref GatheringNode reference156 = ref span103[1]; + num2++; + ref GatheringNode reference156 = ref span4[num2]; GatheringNode obj104 = new GatheringNode { DataId = 33992u }; - num3 = 3; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span104 = CollectionsMarshal.AsSpan(list210); - span104[0] = new GatheringLocation + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span5 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-91.53894f, 91.14209f, -520.9888f) }; - span104[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-82.73576f, 91.15034f, -532.2811f) }; - span104[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-119.5286f, 89.67725f, -601.3649f) }; @@ -16282,44 +19068,52 @@ public static class AssemblyGatheringLocationLoader reference156 = obj104; gatheringNodeGroup52.Nodes = list208; reference154 = gatheringNodeGroup52; - ref GatheringNodeGroup reference157 = ref span102[1]; + num++; + ref GatheringNodeGroup reference157 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span105 = CollectionsMarshal.AsSpan(list211); - ref GatheringNode reference158 = ref span105[0]; + span4 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + ref GatheringNode reference158 = ref span4[num3]; GatheringNode obj105 = new GatheringNode { DataId = 33990u }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new GatheringLocation + num4 = 1; + List list212 = new List(num4); + CollectionsMarshal.SetCount(list212, num4); + span5 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(105.0951f, 75.30056f, -581.8511f) }; obj105.Locations = list212; reference158 = obj105; - ref GatheringNode reference159 = ref span105[1]; + num3++; + ref GatheringNode reference159 = ref span4[num3]; GatheringNode obj106 = new GatheringNode { DataId = 33991u }; - num3 = 3; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span106 = CollectionsMarshal.AsSpan(list213); - span106[0] = new GatheringLocation + index2 = 3; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span5 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(113.0813f, 72.75166f, -575.8746f) }; - span106[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(133.7231f, 67.87361f, -567.9795f) }; - span106[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(109.7108f, 71.64627f, -562.0082f) }; @@ -16327,44 +19121,52 @@ public static class AssemblyGatheringLocationLoader reference159 = obj106; gatheringNodeGroup53.Nodes = list211; reference157 = gatheringNodeGroup53; - ref GatheringNodeGroup reference160 = ref span102[2]; + num++; + ref GatheringNodeGroup reference160 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span107 = CollectionsMarshal.AsSpan(list214); - ref GatheringNode reference161 = ref span107[0]; + num3 = 2; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + span4 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref GatheringNode reference161 = ref span4[num2]; GatheringNode obj107 = new GatheringNode { DataId = 33988u }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + num4 = 1; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + span5 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(53.25103f, 92.24804f, -643.022f) }; obj107.Locations = list215; reference161 = obj107; - ref GatheringNode reference162 = ref span107[1]; + num2++; + ref GatheringNode reference162 = ref span4[num2]; GatheringNode obj108 = new GatheringNode { DataId = 33989u }; - num3 = 3; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span108 = CollectionsMarshal.AsSpan(list216); - span108[0] = new GatheringLocation + index2 = 3; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span5 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(59.02333f, 93.08621f, -646.8438f) }; - span108[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(8.818645f, 90.40326f, -640.8149f) }; - span108[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(41.15356f, 96.41193f, -676.5558f), MinimumAngle = -85, @@ -16380,12 +19182,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; gatheringRoot19.Author = list217; - num = 1; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.None, null, null, 958) + index = 1; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -16393,29 +19199,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span109 = CollectionsMarshal.AsSpan(list219); - ref GatheringNodeGroup reference163 = ref span109[0]; + span3 = CollectionsMarshal.AsSpan(list219); + index = 0; + ref GatheringNodeGroup reference163 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span110 = CollectionsMarshal.AsSpan(list220); - ref GatheringNode reference164 = ref span110[0]; + span4 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + ref GatheringNode reference164 = ref span4[num3]; GatheringNode obj109 = new GatheringNode { DataId = 34002u }; - num3 = 2; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span111 = CollectionsMarshal.AsSpan(list221); - span111[0] = new GatheringLocation + num4 = 2; + List list221 = new List(num4); + CollectionsMarshal.SetCount(list221, num4); + span5 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-278.0806f, 23.49333f, 457.1718f), MinimumAngle = 155, MaximumAngle = 360 }; - span111[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-247.303f, 24.73875f, 431.0542f), MinimumAngle = 55, @@ -16423,15 +19233,18 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list221; reference164 = obj109; - ref GatheringNode reference165 = ref span110[1]; + num3++; + ref GatheringNode reference165 = ref span4[num3]; GatheringNode obj110 = new GatheringNode { DataId = 34001u }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new GatheringLocation + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span5 = CollectionsMarshal.AsSpan(list222); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-231.6437f, 23.05049f, 438.9474f), MinimumAngle = 135, @@ -16441,21 +19254,25 @@ public static class AssemblyGatheringLocationLoader reference165 = obj110; gatheringNodeGroup55.Nodes = list220; reference163 = gatheringNodeGroup55; - ref GatheringNodeGroup reference166 = ref span109[1]; + index++; + ref GatheringNodeGroup reference166 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span112 = CollectionsMarshal.AsSpan(list223); - ref GatheringNode reference167 = ref span112[0]; + num3 = 2; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + span4 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref GatheringNode reference167 = ref span4[num2]; GatheringNode obj111 = new GatheringNode { DataId = 33999u }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation + num4 = 1; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + span5 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-224.5309f, 18.15879f, 302.212f), MinimumAngle = -20, @@ -16463,22 +19280,25 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list224; reference167 = obj111; - ref GatheringNode reference168 = ref span112[1]; + num2++; + ref GatheringNode reference168 = ref span4[num2]; GatheringNode obj112 = new GatheringNode { DataId = 34000u }; - num3 = 2; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span113 = CollectionsMarshal.AsSpan(list225); - span113[0] = new GatheringLocation + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span5 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-201.1902f, 17.46593f, 293.0554f), MinimumAngle = -20, MaximumAngle = 180 }; - span113[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-206.8405f, 21.01518f, 327.3298f), MinimumAngle = 0, @@ -16488,28 +19308,32 @@ public static class AssemblyGatheringLocationLoader reference168 = obj112; gatheringNodeGroup56.Nodes = list223; reference166 = gatheringNodeGroup56; - ref GatheringNodeGroup reference169 = ref span109[2]; + index++; + ref GatheringNodeGroup reference169 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span114 = CollectionsMarshal.AsSpan(list226); - ref GatheringNode reference170 = ref span114[0]; + span4 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + ref GatheringNode reference170 = ref span4[num3]; GatheringNode obj113 = new GatheringNode { DataId = 33998u }; - num3 = 2; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span115 = CollectionsMarshal.AsSpan(list227); - span115[0] = new GatheringLocation + num4 = 2; + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + span5 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-356.6845f, 25.77399f, 371.3325f), MinimumAngle = -245, MaximumAngle = -55 }; - span115[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-378.934f, 21.82056f, 365.7343f), MinimumAngle = -160, @@ -16517,15 +19341,18 @@ public static class AssemblyGatheringLocationLoader }; obj113.Locations = list227; reference170 = obj113; - ref GatheringNode reference171 = ref span114[1]; + num3++; + ref GatheringNode reference171 = ref span4[num3]; GatheringNode obj114 = new GatheringNode { DataId = 33997u }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new GatheringLocation + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span5 = CollectionsMarshal.AsSpan(list228); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-365.8535f, 18.70865f, 339.1927f), MinimumAngle = -180, @@ -16538,61 +19365,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list219; AddLocation(842, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + index = 1; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span = CollectionsMarshal.AsSpan(list229); + num = 0; + span[num] = "liza"; gatheringRoot20.Author = list229; num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.None, null, null, 958) + span2 = CollectionsMarshal.AsSpan(list230); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; gatheringRoot20.Steps = list230; - num = 3; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span116 = CollectionsMarshal.AsSpan(list231); - ref GatheringNodeGroup reference172 = ref span116[0]; + index = 3; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + span3 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref GatheringNodeGroup reference172 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 2; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span117 = CollectionsMarshal.AsSpan(list232); - ref GatheringNode reference173 = ref span117[0]; + num3 = 2; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + span4 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref GatheringNode reference173 = ref span4[num2]; GatheringNode obj115 = new GatheringNode { DataId = 34004u }; - num3 = 3; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span118 = CollectionsMarshal.AsSpan(list233); - span118[0] = new GatheringLocation + num4 = 3; + List list233 = new List(num4); + CollectionsMarshal.SetCount(list233, num4); + span5 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(121.8413f, -6.651628f, 246.5624f) }; - span118[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(118.1294f, -6.603673f, 242.6448f) }; - span118[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(104.2039f, -10.52542f, 266.5598f) }; obj115.Locations = list233; reference173 = obj115; - ref GatheringNode reference174 = ref span117[1]; + num2++; + ref GatheringNode reference174 = ref span4[num2]; GatheringNode obj116 = new GatheringNode { DataId = 34003u }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new GatheringLocation + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span5 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(98.86316f, -9.970013f, 257.6278f) }; @@ -16600,44 +19439,52 @@ public static class AssemblyGatheringLocationLoader reference174 = obj116; gatheringNodeGroup58.Nodes = list232; reference172 = gatheringNodeGroup58; - ref GatheringNodeGroup reference175 = ref span116[1]; + num++; + ref GatheringNodeGroup reference175 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span119 = CollectionsMarshal.AsSpan(list235); - ref GatheringNode reference176 = ref span119[0]; + span4 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + ref GatheringNode reference176 = ref span4[num3]; GatheringNode obj117 = new GatheringNode { DataId = 34005u }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new GatheringLocation + num4 = 1; + List list236 = new List(num4); + CollectionsMarshal.SetCount(list236, num4); + span5 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(215.6167f, 1.599456f, 144.3346f) }; obj117.Locations = list236; reference176 = obj117; - ref GatheringNode reference177 = ref span119[1]; + num3++; + ref GatheringNode reference177 = ref span4[num3]; GatheringNode obj118 = new GatheringNode { DataId = 34006u }; - num3 = 3; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span120 = CollectionsMarshal.AsSpan(list237); - span120[0] = new GatheringLocation + index2 = 3; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span5 = CollectionsMarshal.AsSpan(list237); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(215.9073f, 1.613284f, 136.584f) }; - span120[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(191.0582f, 2.43164f, 147.7836f) }; - span120[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(185.1617f, 2.402756f, 138.276f) }; @@ -16645,44 +19492,52 @@ public static class AssemblyGatheringLocationLoader reference177 = obj118; gatheringNodeGroup59.Nodes = list235; reference175 = gatheringNodeGroup59; - ref GatheringNodeGroup reference178 = ref span116[2]; + num++; + ref GatheringNodeGroup reference178 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span121 = CollectionsMarshal.AsSpan(list238); - ref GatheringNode reference179 = ref span121[0]; + num3 = 2; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + span4 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref GatheringNode reference179 = ref span4[num2]; GatheringNode obj119 = new GatheringNode { DataId = 34007u }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = new GatheringLocation + num4 = 1; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + span5 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(264.295f, -11.52659f, 306.4464f) }; obj119.Locations = list239; reference179 = obj119; - ref GatheringNode reference180 = ref span121[1]; + num2++; + ref GatheringNode reference180 = ref span4[num2]; GatheringNode obj120 = new GatheringNode { DataId = 34008u }; - num3 = 3; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span122 = CollectionsMarshal.AsSpan(list240); - span122[0] = new GatheringLocation + index2 = 3; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span5 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(280.1551f, -11.53278f, 301.5915f) }; - span122[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(257.884f, -12.02824f, 296.5428f) }; - span122[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(271.8952f, -12.7945f, 320.4683f) }; @@ -16696,12 +19551,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "liza"; gatheringRoot21.Author = list241; - num = 1; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.None, null, null, 961) + index = 1; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; @@ -16709,41 +19568,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span123 = CollectionsMarshal.AsSpan(list243); - ref GatheringNodeGroup reference181 = ref span123[0]; + span3 = CollectionsMarshal.AsSpan(list243); + index = 0; + ref GatheringNodeGroup reference181 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span124 = CollectionsMarshal.AsSpan(list244); - ref GatheringNode reference182 = ref span124[0]; + span4 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + ref GatheringNode reference182 = ref span4[num3]; GatheringNode obj121 = new GatheringNode { DataId = 34020u }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation + num4 = 1; + List list245 = new List(num4); + CollectionsMarshal.SetCount(list245, num4); + span5 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(44.78436f, 7.229512f, 98.57001f) }; obj121.Locations = list245; reference182 = obj121; - ref GatheringNode reference183 = ref span124[1]; + num3++; + ref GatheringNode reference183 = ref span4[num3]; GatheringNode obj122 = new GatheringNode { DataId = 34021u }; - num3 = 2; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span125 = CollectionsMarshal.AsSpan(list246); - span125[0] = new GatheringLocation + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span5 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(46.74728f, 7.877012f, 88.79111f) }; - span125[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(34.40783f, 3.908499f, 67.13975f) }; @@ -16751,40 +19617,47 @@ public static class AssemblyGatheringLocationLoader reference183 = obj122; gatheringNodeGroup61.Nodes = list244; reference181 = gatheringNodeGroup61; - ref GatheringNodeGroup reference184 = ref span123[1]; + index++; + ref GatheringNodeGroup reference184 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num2 = 2; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span126 = CollectionsMarshal.AsSpan(list247); - ref GatheringNode reference185 = ref span126[0]; + num3 = 2; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + span4 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + ref GatheringNode reference185 = ref span4[num2]; GatheringNode obj123 = new GatheringNode { DataId = 34023u }; - num3 = 2; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span127 = CollectionsMarshal.AsSpan(list248); - span127[0] = new GatheringLocation + num4 = 2; + List list248 = new List(num4); + CollectionsMarshal.SetCount(list248, num4); + span5 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-91.27831f, -8.489767f, 69.08894f) }; - span127[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-117.3572f, -11.70367f, 38.49854f) }; obj123.Locations = list248; reference185 = obj123; - ref GatheringNode reference186 = ref span126[1]; + num2++; + ref GatheringNode reference186 = ref span4[num2]; GatheringNode obj124 = new GatheringNode { DataId = 34022u }; - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = new GatheringLocation + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span5 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-124.86f, -11.29384f, 89.80068f) }; @@ -16792,40 +19665,47 @@ public static class AssemblyGatheringLocationLoader reference186 = obj124; gatheringNodeGroup62.Nodes = list247; reference184 = gatheringNodeGroup62; - ref GatheringNodeGroup reference187 = ref span123[2]; + index++; + ref GatheringNodeGroup reference187 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span128 = CollectionsMarshal.AsSpan(list250); - ref GatheringNode reference188 = ref span128[0]; + span4 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + ref GatheringNode reference188 = ref span4[num3]; GatheringNode obj125 = new GatheringNode { DataId = 34019u }; - num3 = 2; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span129 = CollectionsMarshal.AsSpan(list251); - span129[0] = new GatheringLocation + num4 = 2; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + span5 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-13.48685f, 4.629431f, 208.5452f) }; - span129[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-65.74567f, -2.738637f, 195.961f) }; obj125.Locations = list251; reference188 = obj125; - ref GatheringNode reference189 = ref span128[1]; + num3++; + ref GatheringNode reference189 = ref span4[num3]; GatheringNode obj126 = new GatheringNode { DataId = 34018u }; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new GatheringLocation + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span5 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-41.94958f, -0.697382f, 173.7239f) }; @@ -16836,35 +19716,44 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list243; AddLocation(846, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - num = 1; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + index = 1; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + span = CollectionsMarshal.AsSpan(list253); + num = 0; + span[num] = "liza"; gatheringRoot22.Author = list253; num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.None, null, null, 956); + span2 = CollectionsMarshal.AsSpan(list254); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 956); gatheringRoot22.Steps = list254; gatheringRoot22.FlyBetweenNodes = false; - num = 8; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span130 = CollectionsMarshal.AsSpan(list255); - ref GatheringNodeGroup reference190 = ref span130[0]; + index = 8; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span3 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref GatheringNodeGroup reference190 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - ref GatheringNode reference191 = ref CollectionsMarshal.AsSpan(list256)[0]; + num3 = 1; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + span4 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + ref GatheringNode reference191 = ref span4[num2]; GatheringNode obj127 = new GatheringNode { DataId = 34281u }; - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = new GatheringLocation + num4 = 1; + List list257 = new List(num4); + CollectionsMarshal.SetCount(list257, num4); + span5 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-510.2663f, -20.72923f, -119.9257f), MinimumAngle = -120, @@ -16874,20 +19763,25 @@ public static class AssemblyGatheringLocationLoader reference191 = obj127; gatheringNodeGroup64.Nodes = list256; reference190 = gatheringNodeGroup64; - ref GatheringNodeGroup reference192 = ref span130[1]; + num++; + ref GatheringNodeGroup reference192 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - ref GatheringNode reference193 = ref CollectionsMarshal.AsSpan(list258)[0]; + span4 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + ref GatheringNode reference193 = ref span4[num3]; GatheringNode obj128 = new GatheringNode { DataId = 34283u }; - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = new GatheringLocation + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span5 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-502.4525f, -18.55583f, -139.683f), MinimumAngle = -95, @@ -16899,20 +19793,25 @@ public static class AssemblyGatheringLocationLoader reference193 = obj128; gatheringNodeGroup65.Nodes = list258; reference192 = gatheringNodeGroup65; - ref GatheringNodeGroup reference194 = ref span130[2]; + num++; + ref GatheringNodeGroup reference194 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - ref GatheringNode reference195 = ref CollectionsMarshal.AsSpan(list260)[0]; + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + span4 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref GatheringNode reference195 = ref span4[num2]; GatheringNode obj129 = new GatheringNode { DataId = 34284u }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = new GatheringLocation + num4 = 1; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + span5 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-499.3535f, -18.75164f, -141.9256f), MinimumAngle = -75, @@ -16924,20 +19823,25 @@ public static class AssemblyGatheringLocationLoader reference195 = obj129; gatheringNodeGroup66.Nodes = list260; reference194 = gatheringNodeGroup66; - ref GatheringNodeGroup reference196 = ref span130[3]; + num++; + ref GatheringNodeGroup reference196 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - ref GatheringNode reference197 = ref CollectionsMarshal.AsSpan(list262)[0]; + span4 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + ref GatheringNode reference197 = ref span4[num3]; GatheringNode obj130 = new GatheringNode { DataId = 34285u }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new GatheringLocation + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span5 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-495.1168f, -18.65139f, -142.5636f), MinimumAngle = -85, @@ -16947,20 +19851,25 @@ public static class AssemblyGatheringLocationLoader reference197 = obj130; gatheringNodeGroup67.Nodes = list262; reference196 = gatheringNodeGroup67; - ref GatheringNodeGroup reference198 = ref span130[4]; + num++; + ref GatheringNodeGroup reference198 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - ref GatheringNode reference199 = ref CollectionsMarshal.AsSpan(list264)[0]; + num3 = 1; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + span4 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + ref GatheringNode reference199 = ref span4[num2]; GatheringNode obj131 = new GatheringNode { DataId = 34286u }; - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheringLocation + num4 = 1; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + span5 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-491.4826f, -19.44574f, -144.2088f), MinimumAngle = -105, @@ -16970,20 +19879,25 @@ public static class AssemblyGatheringLocationLoader reference199 = obj131; gatheringNodeGroup68.Nodes = list264; reference198 = gatheringNodeGroup68; - ref GatheringNodeGroup reference200 = ref span130[5]; + num++; + ref GatheringNodeGroup reference200 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - ref GatheringNode reference201 = ref CollectionsMarshal.AsSpan(list266)[0]; + span4 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + ref GatheringNode reference201 = ref span4[num3]; GatheringNode obj132 = new GatheringNode { DataId = 34287u }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheringLocation + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span5 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-488.8665f, -19.70717f, -147.403f), MinimumAngle = 230, @@ -16993,20 +19907,25 @@ public static class AssemblyGatheringLocationLoader reference201 = obj132; gatheringNodeGroup69.Nodes = list266; reference200 = gatheringNodeGroup69; - ref GatheringNodeGroup reference202 = ref span130[6]; + num++; + ref GatheringNodeGroup reference202 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - ref GatheringNode reference203 = ref CollectionsMarshal.AsSpan(list268)[0]; + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + span4 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + ref GatheringNode reference203 = ref span4[num2]; GatheringNode obj133 = new GatheringNode { DataId = 34289u }; - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new GatheringLocation + num4 = 1; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + span5 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-489.1829f, -19.91622f, -153.7781f), MinimumAngle = 200, @@ -17016,20 +19935,25 @@ public static class AssemblyGatheringLocationLoader reference203 = obj133; gatheringNodeGroup70.Nodes = list268; reference202 = gatheringNodeGroup70; - ref GatheringNodeGroup reference204 = ref span130[7]; + num++; + ref GatheringNodeGroup reference204 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - ref GatheringNode reference205 = ref CollectionsMarshal.AsSpan(list270)[0]; + span4 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + ref GatheringNode reference205 = ref span4[num3]; GatheringNode obj134 = new GatheringNode { DataId = 34291u }; - num3 = 1; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new GatheringLocation + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span5 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-490.1324f, -18.06493f, -164.4281f), MinimumAngle = 210, @@ -17049,12 +19973,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 959) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; @@ -17062,22 +19990,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 34337u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(531.9888f, 133.5777f, 288.7549f), MinimumAngle = 190, @@ -17085,15 +20017,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 34338u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(562.9013f, 134.3907f, 254.6339f), MinimumAngle = -75, @@ -17103,21 +20038,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span3[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 34339u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(685.4268f, 130.6815f, 267.9914f), MinimumAngle = -75, @@ -17125,15 +20064,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span3[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 34340u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(720.4895f, 139.9972f, 239.97f), MinimumAngle = -30, @@ -17143,21 +20085,25 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span4[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 34335u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(629.7982f, 144.0473f, 418.6548f), MinimumAngle = 120, @@ -17165,15 +20111,18 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span4[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 34336u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(712.2249f, 149.0579f, 390.7473f), MinimumAngle = 35, @@ -17186,37 +20135,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(902, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "plogon_enjoyer"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "plogon_enjoyer"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 960) + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span5[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span3 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - ref GatheringNode reference11 = ref CollectionsMarshal.AsSpan(list16)[0]; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span4 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span4[num2]; GatheringNode obj7 = new GatheringNode { DataId = 34364u }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-470.5523f, 79.49631f, 259.4856f), MinimumAngle = 0, @@ -17226,20 +20184,25 @@ public static class AssemblyGatheringLocationLoader reference11 = obj7; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference12 = ref span5[1]; + num++; + ref GatheringNodeGroup reference12 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - ref GatheringNode reference13 = ref CollectionsMarshal.AsSpan(list18)[0]; + span4 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + ref GatheringNode reference13 = ref span4[num3]; GatheringNode obj8 = new GatheringNode { DataId = 34365u }; - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new GatheringLocation + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span5 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-493.5432f, 73.7095f, 288.547f), MinimumAngle = 15, @@ -17249,20 +20212,25 @@ public static class AssemblyGatheringLocationLoader reference13 = obj8; gatheringNodeGroup5.Nodes = list18; reference12 = gatheringNodeGroup5; - ref GatheringNodeGroup reference14 = ref span5[2]; + num++; + ref GatheringNodeGroup reference14 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref GatheringNode reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + span4 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref GatheringNode reference15 = ref span4[num2]; GatheringNode obj9 = new GatheringNode { DataId = 34366u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + num4 = 1; + List list21 = new List(num4); + CollectionsMarshal.SetCount(list21, num4); + span5 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-478.8098f, 76.21393f, 280.0947f), MinimumAngle = 50, @@ -17278,12 +20246,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list22; - num = 1; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -17291,21 +20263,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span6 = CollectionsMarshal.AsSpan(list24); - ref GatheringNodeGroup reference16 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list24); + index = 0; + ref GatheringNodeGroup reference16 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - ref GatheringNode reference17 = ref CollectionsMarshal.AsSpan(list25)[0]; + span4 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + ref GatheringNode reference17 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 34369u }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = new GatheringLocation + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span5 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-381.6697f, 246.9727f, -221.478f), MinimumAngle = 0, @@ -17315,20 +20292,25 @@ public static class AssemblyGatheringLocationLoader reference17 = obj10; gatheringNodeGroup7.Nodes = list25; reference16 = gatheringNodeGroup7; - ref GatheringNodeGroup reference18 = ref span6[1]; + index++; + ref GatheringNodeGroup reference18 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - ref GatheringNode reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + span4 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref GatheringNode reference19 = ref span4[num2]; GatheringNode obj11 = new GatheringNode { DataId = 34367u }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new GatheringLocation + num4 = 1; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span5 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-384.7752f, 246.2142f, -220.8562f) }; @@ -17336,20 +20318,25 @@ public static class AssemblyGatheringLocationLoader reference19 = obj11; gatheringNodeGroup8.Nodes = list27; reference18 = gatheringNodeGroup8; - ref GatheringNodeGroup reference20 = ref span6[2]; + index++; + ref GatheringNodeGroup reference20 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; + span4 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + ref GatheringNode reference21 = ref span4[num3]; GatheringNode obj12 = new GatheringNode { DataId = 34368u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-396.0184f, 245.9229f, -236.488f) }; @@ -17360,37 +20347,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list24; AddLocation(906, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "plogon_enjoyer"; + index = 1; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span = CollectionsMarshal.AsSpan(list31); + num = 0; + span[num] = "plogon_enjoyer"; gatheringRoot4.Author = list31; num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.None, null, null, 960) + span2 = CollectionsMarshal.AsSpan(list32); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot4.Steps = list32; - num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span7 = CollectionsMarshal.AsSpan(list33); - ref GatheringNodeGroup reference22 = ref span7[0]; + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span3 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref GatheringNodeGroup reference22 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref GatheringNode reference23 = ref CollectionsMarshal.AsSpan(list34)[0]; + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + span4 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref GatheringNode reference23 = ref span4[num2]; GatheringNode obj13 = new GatheringNode { DataId = 34370u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-614.3087f, 81.96295f, 262.5681f), MinimumAngle = -150, @@ -17400,20 +20396,25 @@ public static class AssemblyGatheringLocationLoader reference23 = obj13; gatheringNodeGroup10.Nodes = list34; reference22 = gatheringNodeGroup10; - ref GatheringNodeGroup reference24 = ref span7[1]; + num++; + ref GatheringNodeGroup reference24 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref GatheringNode reference25 = ref CollectionsMarshal.AsSpan(list36)[0]; + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + ref GatheringNode reference25 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 34371u }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new GatheringLocation + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span5 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-624.2021f, 79.12945f, 278.3768f) }; @@ -17421,20 +20422,25 @@ public static class AssemblyGatheringLocationLoader reference25 = obj14; gatheringNodeGroup11.Nodes = list36; reference24 = gatheringNodeGroup11; - ref GatheringNodeGroup reference26 = ref span7[2]; + num++; + ref GatheringNodeGroup reference26 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - ref GatheringNode reference27 = ref CollectionsMarshal.AsSpan(list38)[0]; + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + span4 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref GatheringNode reference27 = ref span4[num2]; GatheringNode obj15 = new GatheringNode { DataId = 34372u }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = new GatheringLocation + num4 = 1; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + span5 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-639.8513f, 78.34773f, 274.0034f), MinimumAngle = -60, @@ -17450,12 +20456,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list40; - num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -17463,21 +20473,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span8 = CollectionsMarshal.AsSpan(list42); - ref GatheringNodeGroup reference28 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list42); + index = 0; + ref GatheringNodeGroup reference28 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref GatheringNode reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference29 = ref span4[num3]; GatheringNode obj16 = new GatheringNode { DataId = 34375u }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new GatheringLocation + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span5 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-408.5904f, 259.0197f, -361.8408f), MinimumAngle = -120, @@ -17487,20 +20502,25 @@ public static class AssemblyGatheringLocationLoader reference29 = obj16; gatheringNodeGroup13.Nodes = list43; reference28 = gatheringNodeGroup13; - ref GatheringNodeGroup reference30 = ref span8[1]; + index++; + ref GatheringNodeGroup reference30 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref GatheringNode reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + span4 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref GatheringNode reference31 = ref span4[num2]; GatheringNode obj17 = new GatheringNode { DataId = 34374u }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new GatheringLocation + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + span5 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-410.1218f, 261.0269f, -364.9317f), MinimumAngle = -120, @@ -17510,20 +20530,25 @@ public static class AssemblyGatheringLocationLoader reference31 = obj17; gatheringNodeGroup14.Nodes = list45; reference30 = gatheringNodeGroup14; - ref GatheringNodeGroup reference32 = ref span8[2]; + index++; + ref GatheringNodeGroup reference32 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref GatheringNode reference33 = ref CollectionsMarshal.AsSpan(list47)[0]; + span4 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + ref GatheringNode reference33 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 34373u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span5 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-421.3381f, 263.4496f, -366.897f), MinimumAngle = -105, @@ -17536,37 +20561,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list42; AddLocation(908, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "plogon_enjoyer"; + index = 1; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span = CollectionsMarshal.AsSpan(list49); + num = 0; + span[num] = "plogon_enjoyer"; gatheringRoot6.Author = list49; num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 960) + span2 = CollectionsMarshal.AsSpan(list50); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot6.Steps = list50; - num = 3; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span9 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference34 = ref span9[0]; + index = 3; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span3 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref GatheringNodeGroup reference34 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref GatheringNode reference35 = ref CollectionsMarshal.AsSpan(list52)[0]; + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + span4 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref GatheringNode reference35 = ref span4[num2]; GatheringNode obj19 = new GatheringNode { DataId = 34376u }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span5 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-586.0029f, 84.39367f, 568.1448f), MinimumAngle = -60, @@ -17578,20 +20612,25 @@ public static class AssemblyGatheringLocationLoader reference35 = obj19; gatheringNodeGroup16.Nodes = list52; reference34 = gatheringNodeGroup16; - ref GatheringNodeGroup reference36 = ref span9[1]; + num++; + ref GatheringNodeGroup reference36 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - ref GatheringNode reference37 = ref CollectionsMarshal.AsSpan(list54)[0]; + span4 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + ref GatheringNode reference37 = ref span4[num3]; GatheringNode obj20 = new GatheringNode { DataId = 34377u }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new GatheringLocation + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span5 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-578.2748f, 86.34826f, 567.2876f), MinimumAngle = -80, @@ -17601,20 +20640,25 @@ public static class AssemblyGatheringLocationLoader reference37 = obj20; gatheringNodeGroup17.Nodes = list54; reference36 = gatheringNodeGroup17; - ref GatheringNodeGroup reference38 = ref span9[2]; + num++; + ref GatheringNodeGroup reference38 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref GatheringNode reference39 = ref CollectionsMarshal.AsSpan(list56)[0]; + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + span4 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref GatheringNode reference39 = ref span4[num2]; GatheringNode obj21 = new GatheringNode { DataId = 34378u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + num4 = 1; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + span5 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-600.2446f, 86.01588f, 557.4477f), MinimumAngle = -35, @@ -17630,12 +20674,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "plogon_enjoyer"; gatheringRoot7.Author = list58; - num = 1; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -17643,21 +20691,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span10 = CollectionsMarshal.AsSpan(list60); - ref GatheringNodeGroup reference40 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list60); + index = 0; + ref GatheringNodeGroup reference40 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - ref GatheringNode reference41 = ref CollectionsMarshal.AsSpan(list61)[0]; + span4 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + ref GatheringNode reference41 = ref span4[num3]; GatheringNode obj22 = new GatheringNode { DataId = 34379u }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new GatheringLocation + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span5 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(454.8535f, 307.5555f, -590.8547f), MinimumAngle = -105, @@ -17669,20 +20722,25 @@ public static class AssemblyGatheringLocationLoader reference41 = obj22; gatheringNodeGroup19.Nodes = list61; reference40 = gatheringNodeGroup19; - ref GatheringNodeGroup reference42 = ref span10[1]; + index++; + ref GatheringNodeGroup reference42 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref GatheringNode reference43 = ref CollectionsMarshal.AsSpan(list63)[0]; + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + span4 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref GatheringNode reference43 = ref span4[num2]; GatheringNode obj23 = new GatheringNode { DataId = 34380u }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new GatheringLocation + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span5 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(447.787f, 300.8405f, -597.8972f), MinimumAngle = 45, @@ -17692,20 +20750,25 @@ public static class AssemblyGatheringLocationLoader reference43 = obj23; gatheringNodeGroup20.Nodes = list63; reference42 = gatheringNodeGroup20; - ref GatheringNodeGroup reference44 = ref span10[2]; + index++; + ref GatheringNodeGroup reference44 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref GatheringNode reference45 = ref CollectionsMarshal.AsSpan(list65)[0]; + span4 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + ref GatheringNode reference45 = ref span4[num3]; GatheringNode obj24 = new GatheringNode { DataId = 34381u }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span5 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(448.707f, 305.0525f, -591.1053f), MinimumAngle = 30, @@ -17718,37 +20781,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list60; AddLocation(910, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + index = 1; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span = CollectionsMarshal.AsSpan(list67); + num = 0; + span[num] = "liza"; gatheringRoot8.Author = list67; num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.None, null, null, 398) + span2 = CollectionsMarshal.AsSpan(list68); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot8.Steps = list68; - num = 3; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span11 = CollectionsMarshal.AsSpan(list69); - ref GatheringNodeGroup reference46 = ref span11[0]; + index = 3; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span3 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref GatheringNodeGroup reference46 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref GatheringNode reference47 = ref CollectionsMarshal.AsSpan(list70)[0]; + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + span4 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference47 = ref span4[num2]; GatheringNode obj25 = new GatheringNode { DataId = 34382u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span5 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-528.8412f, -89.70924f, 458.582f), MinimumAngle = -10, @@ -17760,20 +20832,25 @@ public static class AssemblyGatheringLocationLoader reference47 = obj25; gatheringNodeGroup22.Nodes = list70; reference46 = gatheringNodeGroup22; - ref GatheringNodeGroup reference48 = ref span11[1]; + num++; + ref GatheringNodeGroup reference48 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref GatheringNode reference49 = ref CollectionsMarshal.AsSpan(list72)[0]; + span4 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + ref GatheringNode reference49 = ref span4[num3]; GatheringNode obj26 = new GatheringNode { DataId = 34383u }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new GatheringLocation + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span5 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-636.4533f, -100.1258f, 484.7436f), MinimumAngle = -75, @@ -17783,20 +20860,25 @@ public static class AssemblyGatheringLocationLoader reference49 = obj26; gatheringNodeGroup23.Nodes = list72; reference48 = gatheringNodeGroup23; - ref GatheringNodeGroup reference50 = ref span11[2]; + num++; + ref GatheringNodeGroup reference50 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - ref GatheringNode reference51 = ref CollectionsMarshal.AsSpan(list74)[0]; + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + span4 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref GatheringNode reference51 = ref span4[num2]; GatheringNode obj27 = new GatheringNode { DataId = 34384u }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new GatheringLocation + num4 = 1; + List list75 = new List(num4); + CollectionsMarshal.SetCount(list75, num4); + span5 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-589.4542f, -100.4852f, 528.1926f), MinimumAngle = -25, @@ -17812,12 +20894,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "plogon_enjoyer"; gatheringRoot9.Author = list76; - num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; @@ -17825,21 +20911,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span12 = CollectionsMarshal.AsSpan(list78); - ref GatheringNodeGroup reference52 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list78); + index = 0; + ref GatheringNodeGroup reference52 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list79)[0]; + span4 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + ref GatheringNode reference53 = ref span4[num3]; GatheringNode obj28 = new GatheringNode { DataId = 34385u }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new GatheringLocation + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span5 = CollectionsMarshal.AsSpan(list80); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(27.77994f, 73.57088f, 695.2364f), MinimumAngle = 0, @@ -17849,20 +20940,25 @@ public static class AssemblyGatheringLocationLoader reference53 = obj28; gatheringNodeGroup25.Nodes = list79; reference52 = gatheringNodeGroup25; - ref GatheringNodeGroup reference54 = ref span12[1]; + index++; + ref GatheringNodeGroup reference54 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref GatheringNode reference55 = ref CollectionsMarshal.AsSpan(list81)[0]; + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + span4 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref GatheringNode reference55 = ref span4[num2]; GatheringNode obj29 = new GatheringNode { DataId = 34386u }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation + num4 = 1; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + span5 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(23.20134f, 70.90392f, 698.6194f), MinimumAngle = -10, @@ -17872,20 +20968,25 @@ public static class AssemblyGatheringLocationLoader reference55 = obj29; gatheringNodeGroup26.Nodes = list81; reference54 = gatheringNodeGroup26; - ref GatheringNodeGroup reference56 = ref span12[2]; + index++; + ref GatheringNodeGroup reference56 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref GatheringNode reference57 = ref CollectionsMarshal.AsSpan(list83)[0]; + span4 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + ref GatheringNode reference57 = ref span4[num3]; GatheringNode obj30 = new GatheringNode { DataId = 34387u }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span5 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(30.69294f, 75.43362f, 688.8371f), MinimumAngle = -5, @@ -17898,37 +20999,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list78; AddLocation(912, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "plogon_enjoyer"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span = CollectionsMarshal.AsSpan(list85); + num = 0; + span[num] = "plogon_enjoyer"; gatheringRoot10.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 960) + span2 = CollectionsMarshal.AsSpan(list86); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; gatheringRoot10.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span13 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference58 = ref span13[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span3 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference58 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref GatheringNode reference59 = ref CollectionsMarshal.AsSpan(list88)[0]; + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span4 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference59 = ref span4[num2]; GatheringNode obj31 = new GatheringNode { DataId = 34388u }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span5 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(398.7177f, 292.5112f, -462.82f), MinimumAngle = -65, @@ -17938,20 +21048,25 @@ public static class AssemblyGatheringLocationLoader reference59 = obj31; gatheringNodeGroup28.Nodes = list88; reference58 = gatheringNodeGroup28; - ref GatheringNodeGroup reference60 = ref span13[1]; + num++; + ref GatheringNodeGroup reference60 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - ref GatheringNode reference61 = ref CollectionsMarshal.AsSpan(list90)[0]; + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + ref GatheringNode reference61 = ref span4[num3]; GatheringNode obj32 = new GatheringNode { DataId = 34389u }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = new GatheringLocation + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span5 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(373.1678f, 290.8189f, -442.4228f), MinimumAngle = 160, @@ -17961,20 +21076,25 @@ public static class AssemblyGatheringLocationLoader reference61 = obj32; gatheringNodeGroup29.Nodes = list90; reference60 = gatheringNodeGroup29; - ref GatheringNodeGroup reference62 = ref span13[2]; + num++; + ref GatheringNodeGroup reference62 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - ref GatheringNode reference63 = ref CollectionsMarshal.AsSpan(list92)[0]; + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + span4 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref GatheringNode reference63 = ref span4[num2]; GatheringNode obj33 = new GatheringNode { DataId = 34390u }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + num4 = 1; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + span5 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(383.5671f, 289.9682f, -392.3997f), MinimumAngle = 65, @@ -17992,12 +21112,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "liza"; gatheringRoot11.Author = list94; - num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.None, null, null, 398) + index = 1; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; @@ -18005,21 +21129,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span14 = CollectionsMarshal.AsSpan(list96); - ref GatheringNodeGroup reference64 = ref span14[0]; + span3 = CollectionsMarshal.AsSpan(list96); + index = 0; + ref GatheringNodeGroup reference64 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - ref GatheringNode reference65 = ref CollectionsMarshal.AsSpan(list97)[0]; + span4 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + ref GatheringNode reference65 = ref span4[num3]; GatheringNode obj34 = new GatheringNode { DataId = 34391u }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new GatheringLocation + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span5 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-49.75243f, -31.70323f, -171.6977f) }; @@ -18027,20 +21156,25 @@ public static class AssemblyGatheringLocationLoader reference65 = obj34; gatheringNodeGroup31.Nodes = list97; reference64 = gatheringNodeGroup31; - ref GatheringNodeGroup reference66 = ref span14[1]; + index++; + ref GatheringNodeGroup reference66 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref GatheringNode reference67 = ref CollectionsMarshal.AsSpan(list99)[0]; + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + span4 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref GatheringNode reference67 = ref span4[num2]; GatheringNode obj35 = new GatheringNode { DataId = 34392u }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = new GatheringLocation + num4 = 1; + List list100 = new List(num4); + CollectionsMarshal.SetCount(list100, num4); + span5 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-44.89702f, -32.39204f, -153.4274f) }; @@ -18048,20 +21182,25 @@ public static class AssemblyGatheringLocationLoader reference67 = obj35; gatheringNodeGroup32.Nodes = list99; reference66 = gatheringNodeGroup32; - ref GatheringNodeGroup reference68 = ref span14[2]; + index++; + ref GatheringNodeGroup reference68 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref GatheringNode reference69 = ref CollectionsMarshal.AsSpan(list101)[0]; + span4 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + ref GatheringNode reference69 = ref span4[num3]; GatheringNode obj36 = new GatheringNode { DataId = 34393u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span5 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-36.6049f, -31.32222f, -134.1001f) }; @@ -18072,38 +21211,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list96; AddLocation(914, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + index = 1; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span = CollectionsMarshal.AsSpan(list103); + num = 0; + span[num] = "liza"; gatheringRoot12.Author = list103; num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.None, null, null, 816) + span2 = CollectionsMarshal.AsSpan(list104); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; gatheringRoot12.Steps = list104; - num = 3; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span15 = CollectionsMarshal.AsSpan(list105); - ref GatheringNodeGroup reference70 = ref span15[0]; + index = 3; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span3 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref GatheringNodeGroup reference70 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span16 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference71 = ref span16[0]; + num3 = 2; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + span4 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref GatheringNode reference71 = ref span4[num2]; GatheringNode obj37 = new GatheringNode { DataId = 34407u }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + span5 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(398.7715f, 58.00708f, -1682f / (float)Math.PI), MinimumAngle = 95, @@ -18111,16 +21258,18 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list107; reference71 = obj37; - ref GatheringNode reference72 = ref span16[1]; + num2++; + ref GatheringNode reference72 = ref span4[num2]; GatheringNode obj38 = new GatheringNode { DataId = 34408u }; - num3 = 2; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span17 = CollectionsMarshal.AsSpan(list108); - span17[0] = new GatheringLocation + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(395.787f, 57.58823f, -532.1421f), MinimumAngle = 105, @@ -18128,7 +21277,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - span17[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(403.3334f, 58.56588f, -533.6083f), MinimumAngle = 185, @@ -18140,21 +21290,25 @@ public static class AssemblyGatheringLocationLoader reference72 = obj38; gatheringNodeGroup34.Nodes = list106; reference70 = gatheringNodeGroup34; - ref GatheringNodeGroup reference73 = ref span15[1]; + num++; + ref GatheringNodeGroup reference73 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span18 = CollectionsMarshal.AsSpan(list109); - ref GatheringNode reference74 = ref span18[0]; + span4 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + ref GatheringNode reference74 = ref span4[num3]; GatheringNode obj39 = new GatheringNode { DataId = 34405u }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation + num4 = 1; + List list110 = new List(num4); + CollectionsMarshal.SetCount(list110, num4); + span5 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(563.6605f, 96.62567f, -409.83f), MinimumAngle = 60, @@ -18162,20 +21316,23 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list110; reference74 = obj39; - ref GatheringNode reference75 = ref span18[1]; + num3++; + ref GatheringNode reference75 = ref span4[num3]; GatheringNode obj40 = new GatheringNode { DataId = 34406u }; - num3 = 2; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span19 = CollectionsMarshal.AsSpan(list111); - span19[0] = new GatheringLocation + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span5 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(584.2038f, 97.61217f, -429.3185f) }; - span19[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(541.3574f, 95.33327f, -385.5562f) }; @@ -18183,21 +21340,25 @@ public static class AssemblyGatheringLocationLoader reference75 = obj40; gatheringNodeGroup35.Nodes = list109; reference73 = gatheringNodeGroup35; - ref GatheringNodeGroup reference76 = ref span15[2]; + num++; + ref GatheringNodeGroup reference76 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span20 = CollectionsMarshal.AsSpan(list112); - ref GatheringNode reference77 = ref span20[0]; + num3 = 2; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span4 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref GatheringNode reference77 = ref span4[num2]; GatheringNode obj41 = new GatheringNode { DataId = 34403u }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span5 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(569.0512f, 96.43839f, -571.2072f), MinimumAngle = 45, @@ -18205,22 +21366,25 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list113; reference77 = obj41; - ref GatheringNode reference78 = ref span20[1]; + num2++; + ref GatheringNode reference78 = ref span4[num2]; GatheringNode obj42 = new GatheringNode { DataId = 34404u }; - num3 = 2; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span21 = CollectionsMarshal.AsSpan(list114); - span21[0] = new GatheringLocation + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span5 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(557.5918f, 92.0403f, -582.1814f), MinimumAngle = 70, MaximumAngle = 200 }; - span21[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(573.9432f, 96.50874f, -575.4167f), MinimumAngle = 85, @@ -18236,12 +21400,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; gatheringRoot13.Author = list115; - num = 1; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -18249,22 +21417,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span22 = CollectionsMarshal.AsSpan(list117); - ref GatheringNodeGroup reference79 = ref span22[0]; + span3 = CollectionsMarshal.AsSpan(list117); + index = 0; + ref GatheringNodeGroup reference79 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span23 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference80 = ref span23[0]; + span4 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + ref GatheringNode reference80 = ref span4[num3]; GatheringNode obj43 = new GatheringNode { DataId = 34411u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + span5 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-418.0731f, 16.25609f, -127.4739f), MinimumAngle = 240, @@ -18272,22 +21444,25 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list119; reference80 = obj43; - ref GatheringNode reference81 = ref span23[1]; + num3++; + ref GatheringNode reference81 = ref span4[num3]; GatheringNode obj44 = new GatheringNode { DataId = 34412u }; - num3 = 2; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span24 = CollectionsMarshal.AsSpan(list120); - span24[0] = new GatheringLocation + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span5 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-436.8404f, 18.18649f, -121.9686f), MinimumAngle = -80, MaximumAngle = 75 }; - span24[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-412.7203f, 17.72583f, -144.2871f), MinimumAngle = -145, @@ -18297,21 +21472,25 @@ public static class AssemblyGatheringLocationLoader reference81 = obj44; gatheringNodeGroup37.Nodes = list118; reference79 = gatheringNodeGroup37; - ref GatheringNodeGroup reference82 = ref span22[1]; + index++; + ref GatheringNodeGroup reference82 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span25 = CollectionsMarshal.AsSpan(list121); - ref GatheringNode reference83 = ref span25[0]; + num3 = 2; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + span4 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref GatheringNode reference83 = ref span4[num2]; GatheringNode obj45 = new GatheringNode { DataId = 34409u }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new GatheringLocation + num4 = 1; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + span5 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-309.9351f, 22.43881f, -196.324f), MinimumAngle = -70, @@ -18319,22 +21498,25 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list122; reference83 = obj45; - ref GatheringNode reference84 = ref span25[1]; + num2++; + ref GatheringNode reference84 = ref span4[num2]; GatheringNode obj46 = new GatheringNode { DataId = 34410u }; - num3 = 2; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span26 = CollectionsMarshal.AsSpan(list123); - span26[0] = new GatheringLocation + index2 = 2; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span5 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-301.4662f, 22.08392f, -205.1306f), MinimumAngle = -145, MaximumAngle = -20 }; - span26[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-318.3467f, 23.1723f, -198.7676f), MinimumAngle = -45, @@ -18344,28 +21526,32 @@ public static class AssemblyGatheringLocationLoader reference84 = obj46; gatheringNodeGroup38.Nodes = list121; reference82 = gatheringNodeGroup38; - ref GatheringNodeGroup reference85 = ref span22[2]; + index++; + ref GatheringNodeGroup reference85 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span27 = CollectionsMarshal.AsSpan(list124); - ref GatheringNode reference86 = ref span27[0]; + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference86 = ref span4[num3]; GatheringNode obj47 = new GatheringNode { DataId = 34414u }; - num3 = 2; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span28 = CollectionsMarshal.AsSpan(list125); - span28[0] = new GatheringLocation + num4 = 2; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + span5 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-229.6105f, 5.158276f, -103.3359f), MinimumAngle = -40, MaximumAngle = 170 }; - span28[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-247.2413f, 9.6758f, -128.0531f), MinimumAngle = 30, @@ -18373,15 +21559,18 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list125; reference86 = obj47; - ref GatheringNode reference87 = ref span27[1]; + num3++; + ref GatheringNode reference87 = ref span4[num3]; GatheringNode obj48 = new GatheringNode { DataId = 34413u }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span5 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-248.8988f, 7.998118f, -121.8732f), MinimumAngle = 0, @@ -18394,57 +21583,68 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list117; AddLocation(919, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "liza"; + index = 1; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span = CollectionsMarshal.AsSpan(list127); + num = 0; + span[num] = "liza"; gatheringRoot14.Author = list127; num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.None, null, null, 816) + span2 = CollectionsMarshal.AsSpan(list128); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; gatheringRoot14.Steps = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span29 = CollectionsMarshal.AsSpan(list129); - ref GatheringNodeGroup reference88 = ref span29[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span3 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref GatheringNodeGroup reference88 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span30 = CollectionsMarshal.AsSpan(list130); - ref GatheringNode reference89 = ref span30[0]; + num3 = 2; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + span4 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + ref GatheringNode reference89 = ref span4[num2]; GatheringNode obj49 = new GatheringNode { DataId = 34422u }; - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span31 = CollectionsMarshal.AsSpan(list131); - span31[0] = new GatheringLocation + num4 = 2; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + span5 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-161.9915f, 60.04895f, -647.3901f) }; - span31[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-179.2945f, 60.84981f, -630.9084f) }; obj49.Locations = list131; reference89 = obj49; - ref GatheringNode reference90 = ref span30[1]; + num2++; + ref GatheringNode reference90 = ref span4[num2]; GatheringNode obj50 = new GatheringNode { DataId = 34421u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span5 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-182.311f, 60.81965f, -640.2197f) }; @@ -18452,40 +21652,47 @@ public static class AssemblyGatheringLocationLoader reference90 = obj50; gatheringNodeGroup40.Nodes = list130; reference88 = gatheringNodeGroup40; - ref GatheringNodeGroup reference91 = ref span29[1]; + num++; + ref GatheringNodeGroup reference91 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span32 = CollectionsMarshal.AsSpan(list133); - ref GatheringNode reference92 = ref span32[0]; + span4 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + ref GatheringNode reference92 = ref span4[num3]; GatheringNode obj51 = new GatheringNode { DataId = 34423u }; - num3 = 1; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new GatheringLocation + num4 = 1; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + span5 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-182.0749f, 60.70063f, -567.6271f) }; obj51.Locations = list134; reference92 = obj51; - ref GatheringNode reference93 = ref span32[1]; + num3++; + ref GatheringNode reference93 = ref span4[num3]; GatheringNode obj52 = new GatheringNode { DataId = 34424u }; - num3 = 2; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span33 = CollectionsMarshal.AsSpan(list135); - span33[0] = new GatheringLocation + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span5 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-184.7115f, 59.23207f, -573.9592f) }; - span33[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-171.0273f, 62.20385f, -576.3321f) }; @@ -18493,42 +21700,49 @@ public static class AssemblyGatheringLocationLoader reference93 = obj52; gatheringNodeGroup41.Nodes = list133; reference91 = gatheringNodeGroup41; - ref GatheringNodeGroup reference94 = ref span29[2]; + num++; + ref GatheringNodeGroup reference94 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span34 = CollectionsMarshal.AsSpan(list136); - ref GatheringNode reference95 = ref span34[0]; + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + span4 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference95 = ref span4[num2]; GatheringNode obj53 = new GatheringNode { DataId = 34425u }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation + num4 = 1; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + span5 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-333.3387f, 82.66466f, -505.7937f) }; obj53.Locations = list137; reference95 = obj53; - ref GatheringNode reference96 = ref span34[1]; + num2++; + ref GatheringNode reference96 = ref span4[num2]; GatheringNode obj54 = new GatheringNode { DataId = 34426u }; - num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span35 = CollectionsMarshal.AsSpan(list138); - span35[0] = new GatheringLocation + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span5 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-333.0683f, 82.72758f, -501.5885f), MinimumAngle = 75, MaximumAngle = 265 }; - span35[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-349.0388f, 89.44427f, -512.492f) }; @@ -18542,12 +21756,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; gatheringRoot15.Author = list139; - num = 1; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -18555,41 +21773,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span36 = CollectionsMarshal.AsSpan(list141); - ref GatheringNodeGroup reference97 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list141); + index = 0; + ref GatheringNodeGroup reference97 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span37 = CollectionsMarshal.AsSpan(list142); - ref GatheringNode reference98 = ref span37[0]; + span4 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + ref GatheringNode reference98 = ref span4[num3]; GatheringNode obj55 = new GatheringNode { DataId = 34430u }; - num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span38 = CollectionsMarshal.AsSpan(list143); - span38[0] = new GatheringLocation + num4 = 2; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + span5 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-449.9385f, -1.370689f, -409.258f) }; - span38[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-445.7757f, -0.7637522f, -415.8121f) }; obj55.Locations = list143; reference98 = obj55; - ref GatheringNode reference99 = ref span37[1]; + num3++; + ref GatheringNode reference99 = ref span4[num3]; GatheringNode obj56 = new GatheringNode { DataId = 34429u }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheringLocation + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span5 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-451.2528f, -1.577711f, -414.294f) }; @@ -18597,42 +21822,49 @@ public static class AssemblyGatheringLocationLoader reference99 = obj56; gatheringNodeGroup43.Nodes = list142; reference97 = gatheringNodeGroup43; - ref GatheringNodeGroup reference100 = ref span36[1]; + index++; + ref GatheringNodeGroup reference100 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span39 = CollectionsMarshal.AsSpan(list145); - ref GatheringNode reference101 = ref span39[0]; + num3 = 2; + List list145 = new List(num3); + CollectionsMarshal.SetCount(list145, num3); + span4 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref GatheringNode reference101 = ref span4[num2]; GatheringNode obj57 = new GatheringNode { DataId = 34427u }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation + num4 = 1; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + span5 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-346.0392f, 0.6433533f, -541.9421f) }; obj57.Locations = list146; reference101 = obj57; - ref GatheringNode reference102 = ref span39[1]; + num2++; + ref GatheringNode reference102 = ref span4[num2]; GatheringNode obj58 = new GatheringNode { DataId = 34428u }; - num3 = 2; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span40 = CollectionsMarshal.AsSpan(list147); - span40[0] = new GatheringLocation + index2 = 2; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span5 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-326.9622f, 1.097262f, -537.5435f), MinimumAngle = 0, MaximumAngle = 220 }; - span40[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-357.2281f, 0.4458784f, -513.3207f) }; @@ -18640,40 +21872,47 @@ public static class AssemblyGatheringLocationLoader reference102 = obj58; gatheringNodeGroup44.Nodes = list145; reference100 = gatheringNodeGroup44; - ref GatheringNodeGroup reference103 = ref span36[2]; + index++; + ref GatheringNodeGroup reference103 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span41 = CollectionsMarshal.AsSpan(list148); - ref GatheringNode reference104 = ref span41[0]; + span4 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref GatheringNode reference104 = ref span4[num3]; GatheringNode obj59 = new GatheringNode { DataId = 34431u }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation + num4 = 1; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span5 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-441.0019f, -5.337227f, -636.1525f) }; obj59.Locations = list149; reference104 = obj59; - ref GatheringNode reference105 = ref span41[1]; + num3++; + ref GatheringNode reference105 = ref span4[num3]; GatheringNode obj60 = new GatheringNode { DataId = 34432u }; - num3 = 2; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span42 = CollectionsMarshal.AsSpan(list150); - span42[0] = new GatheringLocation + index2 = 2; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span5 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-464.1121f, -5.420424f, -649.8243f) }; - span42[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-436.4872f, -5.205373f, -638.8244f), MinimumAngle = -95, @@ -18686,45 +21925,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list141; AddLocation(922, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + index = 1; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span = CollectionsMarshal.AsSpan(list151); + num = 0; + span[num] = "liza"; gatheringRoot16.Author = list151; num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.None, null, null, 818) + span2 = CollectionsMarshal.AsSpan(list152); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; gatheringRoot16.Steps = list152; - num = 3; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span43 = CollectionsMarshal.AsSpan(list153); - ref GatheringNodeGroup reference106 = ref span43[0]; + index = 3; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span3 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref GatheringNodeGroup reference106 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span44 = CollectionsMarshal.AsSpan(list154); - ref GatheringNode reference107 = ref span44[0]; + num3 = 2; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + span4 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref GatheringNode reference107 = ref span4[num2]; GatheringNode obj61 = new GatheringNode { DataId = 34458u }; - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span45 = CollectionsMarshal.AsSpan(list155); - span45[0] = new GatheringLocation + num4 = 2; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + span5 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(44.00173f, 428.2346f, -656.6179f), MinimumAngle = -65, MaximumAngle = 10 }; - span45[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(16.55597f, 426.627f, -670.5577f), MinimumAngle = -25, @@ -18732,15 +21979,18 @@ public static class AssemblyGatheringLocationLoader }; obj61.Locations = list155; reference107 = obj61; - ref GatheringNode reference108 = ref span44[1]; + num2++; + ref GatheringNode reference108 = ref span4[num2]; GatheringNode obj62 = new GatheringNode { DataId = 34457u }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span5 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(37.23584f, 427.2601f, -653.0619f), MinimumAngle = 245, @@ -18750,42 +22000,49 @@ public static class AssemblyGatheringLocationLoader reference108 = obj62; gatheringNodeGroup46.Nodes = list154; reference106 = gatheringNodeGroup46; - ref GatheringNodeGroup reference109 = ref span43[1]; + num++; + ref GatheringNodeGroup reference109 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span46 = CollectionsMarshal.AsSpan(list157); - ref GatheringNode reference110 = ref span46[0]; + span4 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + ref GatheringNode reference110 = ref span4[num3]; GatheringNode obj63 = new GatheringNode { DataId = 34461u }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new GatheringLocation + num4 = 1; + List list158 = new List(num4); + CollectionsMarshal.SetCount(list158, num4); + span5 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-65.51347f, 400.3132f, -539.7745f) }; obj63.Locations = list158; reference110 = obj63; - ref GatheringNode reference111 = ref span46[1]; + num3++; + ref GatheringNode reference111 = ref span4[num3]; GatheringNode obj64 = new GatheringNode { DataId = 34462u }; - num3 = 2; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span47 = CollectionsMarshal.AsSpan(list159); - span47[0] = new GatheringLocation + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span5 = CollectionsMarshal.AsSpan(list159); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-67.70384f, 400.7841f, -542.4638f), MinimumAngle = -85, MaximumAngle = 55 }; - span47[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-55.10947f, 399.0878f, -536.9024f), MinimumDistance = 1f, @@ -18795,42 +22052,49 @@ public static class AssemblyGatheringLocationLoader reference111 = obj64; gatheringNodeGroup47.Nodes = list157; reference109 = gatheringNodeGroup47; - ref GatheringNodeGroup reference112 = ref span43[2]; + num++; + ref GatheringNodeGroup reference112 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span48 = CollectionsMarshal.AsSpan(list160); - ref GatheringNode reference113 = ref span48[0]; + num3 = 2; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + span4 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref GatheringNode reference113 = ref span4[num2]; GatheringNode obj65 = new GatheringNode { DataId = 34459u }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new GatheringLocation + num4 = 1; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + span5 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-216.086f, 426.8226f, -649.2361f) }; obj65.Locations = list161; reference113 = obj65; - ref GatheringNode reference114 = ref span48[1]; + num2++; + ref GatheringNode reference114 = ref span4[num2]; GatheringNode obj66 = new GatheringNode { DataId = 34460u }; - num3 = 2; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span49 = CollectionsMarshal.AsSpan(list162); - span49[0] = new GatheringLocation + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span5 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-215.228f, 427.4708f, -653.9598f), MinimumAngle = -55, MaximumAngle = 135 }; - span49[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-201.5463f, 427.882f, -655.0467f), MinimumAngle = -70, @@ -18846,12 +22110,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "liza"; gatheringRoot17.Author = list163; - num = 1; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.None, null, null, 818) + index = 1; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -18859,29 +22127,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span50 = CollectionsMarshal.AsSpan(list165); - ref GatheringNodeGroup reference115 = ref span50[0]; + span3 = CollectionsMarshal.AsSpan(list165); + index = 0; + ref GatheringNodeGroup reference115 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span51 = CollectionsMarshal.AsSpan(list166); - ref GatheringNode reference116 = ref span51[0]; + span4 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + ref GatheringNode reference116 = ref span4[num3]; GatheringNode obj67 = new GatheringNode { DataId = 34466u }; - num3 = 2; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - Span span52 = CollectionsMarshal.AsSpan(list167); - span52[0] = new GatheringLocation + num4 = 2; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + span5 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(403.2184f, 408.0598f, -755.5223f), MinimumAngle = 80, MaximumAngle = 190 }; - span52[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(438.6136f, 416.6389f, -758.985f), MinimumAngle = 110, @@ -18889,15 +22161,18 @@ public static class AssemblyGatheringLocationLoader }; obj67.Locations = list167; reference116 = obj67; - ref GatheringNode reference117 = ref span51[1]; + num3++; + ref GatheringNode reference117 = ref span4[num3]; GatheringNode obj68 = new GatheringNode { DataId = 34465u }; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheringLocation + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span5 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(415.5816f, 412.4482f, -758.7325f), MinimumAngle = 90, @@ -18907,21 +22182,25 @@ public static class AssemblyGatheringLocationLoader reference117 = obj68; gatheringNodeGroup49.Nodes = list166; reference115 = gatheringNodeGroup49; - ref GatheringNodeGroup reference118 = ref span50[1]; + index++; + ref GatheringNodeGroup reference118 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num2 = 2; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span53 = CollectionsMarshal.AsSpan(list169); - ref GatheringNode reference119 = ref span53[0]; + num3 = 2; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + span4 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref GatheringNode reference119 = ref span4[num2]; GatheringNode obj69 = new GatheringNode { DataId = 34463u }; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = new GatheringLocation + num4 = 1; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + span5 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(415.8845f, 431.2351f, -896.2997f), MinimumAngle = -65, @@ -18929,22 +22208,25 @@ public static class AssemblyGatheringLocationLoader }; obj69.Locations = list170; reference119 = obj69; - ref GatheringNode reference120 = ref span53[1]; + num2++; + ref GatheringNode reference120 = ref span4[num2]; GatheringNode obj70 = new GatheringNode { DataId = 34464u }; - num3 = 2; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - Span span54 = CollectionsMarshal.AsSpan(list171); - span54[0] = new GatheringLocation + index2 = 2; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span5 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(400.7106f, 428.3826f, -893.9595f), MinimumAngle = -40, MaximumAngle = 50 }; - span54[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(431.8092f, 434.546f, -902.1445f), MinimumAngle = -95, @@ -18954,21 +22236,25 @@ public static class AssemblyGatheringLocationLoader reference120 = obj70; gatheringNodeGroup50.Nodes = list169; reference118 = gatheringNodeGroup50; - ref GatheringNodeGroup reference121 = ref span50[2]; + index++; + ref GatheringNodeGroup reference121 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span55 = CollectionsMarshal.AsSpan(list172); - ref GatheringNode reference122 = ref span55[0]; + span4 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + ref GatheringNode reference122 = ref span4[num3]; GatheringNode obj71 = new GatheringNode { DataId = 34467u }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new GatheringLocation + num4 = 1; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + span5 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(284.0778f, 433.4644f, -916.6171f), MinimumAngle = -75, @@ -18976,22 +22262,25 @@ public static class AssemblyGatheringLocationLoader }; obj71.Locations = list173; reference122 = obj71; - ref GatheringNode reference123 = ref span55[1]; + num3++; + ref GatheringNode reference123 = ref span4[num3]; GatheringNode obj72 = new GatheringNode { DataId = 34468u }; - num3 = 2; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span56 = CollectionsMarshal.AsSpan(list174); - span56[0] = new GatheringLocation + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span5 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(278.6176f, 428.9509f, -904.3234f), MinimumAngle = 220, MaximumAngle = 345 }; - span56[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(305.7502f, 432.027f, -912.7272f), MinimumAngle = -80, @@ -19004,38 +22293,47 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list165; AddLocation(928, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + index = 1; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span = CollectionsMarshal.AsSpan(list175); + num = 0; + span[num] = "liza"; gatheringRoot18.Author = list175; num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.None, null, null, 1188) + span2 = CollectionsMarshal.AsSpan(list176); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; gatheringRoot18.Steps = list176; gatheringRoot18.FlyBetweenNodes = true; - num = 6; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span57 = CollectionsMarshal.AsSpan(list177); - ref GatheringNodeGroup reference124 = ref span57[0]; + index = 6; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span3 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref GatheringNodeGroup reference124 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - ref GatheringNode reference125 = ref CollectionsMarshal.AsSpan(list178)[0]; + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + span4 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref GatheringNode reference125 = ref span4[num2]; GatheringNode obj73 = new GatheringNode { DataId = 34520u }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new GatheringLocation + num4 = 1; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + span5 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(759.8123f, 26.14559f, -561.7435f) }; @@ -19043,20 +22341,25 @@ public static class AssemblyGatheringLocationLoader reference125 = obj73; gatheringNodeGroup52.Nodes = list178; reference124 = gatheringNodeGroup52; - ref GatheringNodeGroup reference126 = ref span57[1]; + num++; + ref GatheringNodeGroup reference126 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - ref GatheringNode reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; + span4 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + ref GatheringNode reference127 = ref span4[num3]; GatheringNode obj74 = new GatheringNode { DataId = 34521u }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new GatheringLocation + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span5 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(791.0515f, 25.74059f, -545.9295f) }; @@ -19064,20 +22367,25 @@ public static class AssemblyGatheringLocationLoader reference127 = obj74; gatheringNodeGroup53.Nodes = list180; reference126 = gatheringNodeGroup53; - ref GatheringNodeGroup reference128 = ref span57[2]; + num++; + ref GatheringNodeGroup reference128 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - ref GatheringNode reference129 = ref CollectionsMarshal.AsSpan(list182)[0]; + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + span4 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref GatheringNode reference129 = ref span4[num2]; GatheringNode obj75 = new GatheringNode { DataId = 34522u }; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new GatheringLocation + num4 = 1; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + span5 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(821.4519f, 28.47348f, -533.9607f) }; @@ -19085,20 +22393,25 @@ public static class AssemblyGatheringLocationLoader reference129 = obj75; gatheringNodeGroup54.Nodes = list182; reference128 = gatheringNodeGroup54; - ref GatheringNodeGroup reference130 = ref span57[3]; + num++; + ref GatheringNodeGroup reference130 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref GatheringNode reference131 = ref CollectionsMarshal.AsSpan(list184)[0]; + span4 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + ref GatheringNode reference131 = ref span4[num3]; GatheringNode obj76 = new GatheringNode { DataId = 34517u }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span5 = CollectionsMarshal.AsSpan(list185); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(840.8483f, 34.05744f, -586.0533f) }; @@ -19106,20 +22419,25 @@ public static class AssemblyGatheringLocationLoader reference131 = obj76; gatheringNodeGroup55.Nodes = list184; reference130 = gatheringNodeGroup55; - ref GatheringNodeGroup reference132 = ref span57[4]; + num++; + ref GatheringNodeGroup reference132 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - ref GatheringNode reference133 = ref CollectionsMarshal.AsSpan(list186)[0]; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + span4 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref GatheringNode reference133 = ref span4[num2]; GatheringNode obj77 = new GatheringNode { DataId = 34518u }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new GatheringLocation + num4 = 1; + List list187 = new List(num4); + CollectionsMarshal.SetCount(list187, num4); + span5 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(837.7969f, 33.55795f, -619.7623f) }; @@ -19127,20 +22445,25 @@ public static class AssemblyGatheringLocationLoader reference133 = obj77; gatheringNodeGroup56.Nodes = list186; reference132 = gatheringNodeGroup56; - ref GatheringNodeGroup reference134 = ref span57[5]; + num++; + ref GatheringNodeGroup reference134 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - ref GatheringNode reference135 = ref CollectionsMarshal.AsSpan(list188)[0]; + span4 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + ref GatheringNode reference135 = ref span4[num3]; GatheringNode obj78 = new GatheringNode { DataId = 34519u }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span5 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(784.021f, 24.16835f, -598.9781f) }; @@ -19154,12 +22477,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; gatheringRoot19.Author = list190; - num = 1; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -19168,21 +22495,26 @@ public static class AssemblyGatheringLocationLoader num = 6; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span58 = CollectionsMarshal.AsSpan(list192); - ref GatheringNodeGroup reference136 = ref span58[0]; + span3 = CollectionsMarshal.AsSpan(list192); + index = 0; + ref GatheringNodeGroup reference136 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - ref GatheringNode reference137 = ref CollectionsMarshal.AsSpan(list193)[0]; + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + span4 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref GatheringNode reference137 = ref span4[num2]; GatheringNode obj79 = new GatheringNode { DataId = 34601u }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = new GatheringLocation + num4 = 1; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + span5 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(484.1779f, 16.59889f, -304.2079f), MinimumAngle = -185, @@ -19192,20 +22524,25 @@ public static class AssemblyGatheringLocationLoader reference137 = obj79; gatheringNodeGroup58.Nodes = list193; reference136 = gatheringNodeGroup58; - ref GatheringNodeGroup reference138 = ref span58[1]; + index++; + ref GatheringNodeGroup reference138 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - ref GatheringNode reference139 = ref CollectionsMarshal.AsSpan(list195)[0]; + span4 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + ref GatheringNode reference139 = ref span4[num3]; GatheringNode obj80 = new GatheringNode { DataId = 34599u }; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new GatheringLocation + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span5 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(509.181f, 21.64949f, -349.9709f), MinimumAngle = -25, @@ -19215,20 +22552,25 @@ public static class AssemblyGatheringLocationLoader reference139 = obj80; gatheringNodeGroup59.Nodes = list195; reference138 = gatheringNodeGroup59; - ref GatheringNodeGroup reference140 = ref span58[2]; + index++; + ref GatheringNodeGroup reference140 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - ref GatheringNode reference141 = ref CollectionsMarshal.AsSpan(list197)[0]; + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + span4 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref GatheringNode reference141 = ref span4[num2]; GatheringNode obj81 = new GatheringNode { DataId = 34597u }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new GatheringLocation + num4 = 1; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + span5 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(534.7657f, 19.33411f, -333.3713f), MinimumAngle = 155, @@ -19238,20 +22580,25 @@ public static class AssemblyGatheringLocationLoader reference141 = obj81; gatheringNodeGroup60.Nodes = list197; reference140 = gatheringNodeGroup60; - ref GatheringNodeGroup reference142 = ref span58[3]; + index++; + ref GatheringNodeGroup reference142 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - ref GatheringNode reference143 = ref CollectionsMarshal.AsSpan(list199)[0]; + span4 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + ref GatheringNode reference143 = ref span4[num3]; GatheringNode obj82 = new GatheringNode { DataId = 34600u }; - num3 = 1; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheringLocation + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span5 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(525.0291f, 11.97125f, -252.6589f), MinimumAngle = 145, @@ -19261,20 +22608,25 @@ public static class AssemblyGatheringLocationLoader reference143 = obj82; gatheringNodeGroup61.Nodes = list199; reference142 = gatheringNodeGroup61; - ref GatheringNodeGroup reference144 = ref span58[4]; + index++; + ref GatheringNodeGroup reference144 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list201)[0]; + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + span4 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref GatheringNode reference145 = ref span4[num2]; GatheringNode obj83 = new GatheringNode { DataId = 34598u }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new GatheringLocation + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + span5 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(518.5205f, 9.694121f, -223.9382f), MinimumAngle = 65, @@ -19284,20 +22636,25 @@ public static class AssemblyGatheringLocationLoader reference145 = obj83; gatheringNodeGroup62.Nodes = list201; reference144 = gatheringNodeGroup62; - ref GatheringNodeGroup reference146 = ref span58[5]; + index++; + ref GatheringNodeGroup reference146 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref GatheringNode reference147 = ref CollectionsMarshal.AsSpan(list203)[0]; + span4 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + ref GatheringNode reference147 = ref span4[num3]; GatheringNode obj84 = new GatheringNode { DataId = 34602u }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span5 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(480.2552f, 10.94543f, -234.4949f), MinimumAngle = 95, @@ -19310,38 +22667,47 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list192; AddLocation(955, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + index = 1; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span = CollectionsMarshal.AsSpan(list205); + num = 0; + span[num] = "liza"; gatheringRoot20.Author = list205; num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + span2 = CollectionsMarshal.AsSpan(list206); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot20.Steps = list206; gatheringRoot20.FlyBetweenNodes = false; - num = 6; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span59 = CollectionsMarshal.AsSpan(list207); - ref GatheringNodeGroup reference148 = ref span59[0]; + index = 6; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span3 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref GatheringNodeGroup reference148 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref GatheringNode reference149 = ref CollectionsMarshal.AsSpan(list208)[0]; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + span4 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref GatheringNode reference149 = ref span4[num2]; GatheringNode obj85 = new GatheringNode { DataId = 34646u }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + span5 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(227.4615f, -89.93336f, -225.4792f), MinimumAngle = 150, @@ -19351,20 +22717,25 @@ public static class AssemblyGatheringLocationLoader reference149 = obj85; gatheringNodeGroup64.Nodes = list208; reference148 = gatheringNodeGroup64; - ref GatheringNodeGroup reference150 = ref span59[1]; + num++; + ref GatheringNodeGroup reference150 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - ref GatheringNode reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; + span4 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + ref GatheringNode reference151 = ref span4[num3]; GatheringNode obj86 = new GatheringNode { DataId = 34641u }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheringLocation + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span5 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(249.5856f, -97.79176f, -217.3474f), MinimumAngle = 135, @@ -19374,20 +22745,25 @@ public static class AssemblyGatheringLocationLoader reference151 = obj86; gatheringNodeGroup65.Nodes = list210; reference150 = gatheringNodeGroup65; - ref GatheringNodeGroup reference152 = ref span59[2]; + num++; + ref GatheringNodeGroup reference152 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref GatheringNode reference153 = ref CollectionsMarshal.AsSpan(list212)[0]; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + span4 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref GatheringNode reference153 = ref span4[num2]; GatheringNode obj87 = new GatheringNode { DataId = 34642u }; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheringLocation + num4 = 1; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + span5 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(257.8141f, -99.51778f, -217.7757f), MinimumAngle = 130, @@ -19397,21 +22773,26 @@ public static class AssemblyGatheringLocationLoader reference153 = obj87; gatheringNodeGroup66.Nodes = list212; reference152 = gatheringNodeGroup66; - ref GatheringNodeGroup reference154 = ref span59[3]; + num++; + ref GatheringNodeGroup reference154 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + ref GatheringNode reference155 = ref span4[num3]; GatheringNode obj88 = new GatheringNode { DataId = 34643u, Fly = true }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span5 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(274.7205f, -99.65348f, -201.6824f), MinimumAngle = 220, @@ -19421,20 +22802,25 @@ public static class AssemblyGatheringLocationLoader reference155 = obj88; gatheringNodeGroup67.Nodes = list214; reference154 = gatheringNodeGroup67; - ref GatheringNodeGroup reference156 = ref span59[4]; + num++; + ref GatheringNodeGroup reference156 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list216)[0]; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + span4 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + ref GatheringNode reference157 = ref span4[num2]; GatheringNode obj89 = new GatheringNode { DataId = 34644u }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new GatheringLocation + num4 = 1; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + span5 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(278.0735f, -101.2599f, -194.8121f), MinimumAngle = 200, @@ -19444,20 +22830,25 @@ public static class AssemblyGatheringLocationLoader reference157 = obj89; gatheringNodeGroup68.Nodes = list216; reference156 = gatheringNodeGroup68; - ref GatheringNodeGroup reference158 = ref span59[5]; + num++; + ref GatheringNodeGroup reference158 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; + span4 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + ref GatheringNode reference159 = ref span4[num3]; GatheringNode obj90 = new GatheringNode { DataId = 34645u }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new GatheringLocation + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span5 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(308.4911f, -100.6525f, -174.6859f), MinimumAngle = 145, @@ -19473,12 +22864,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list220); + index = 0; + span[index] = "liza"; gatheringRoot21.Author = list220; - num = 1; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + span2 = CollectionsMarshal.AsSpan(list221); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; @@ -19486,21 +22881,26 @@ public static class AssemblyGatheringLocationLoader num = 6; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span60 = CollectionsMarshal.AsSpan(list222); - ref GatheringNodeGroup reference160 = ref span60[0]; + span3 = CollectionsMarshal.AsSpan(list222); + index = 0; + ref GatheringNodeGroup reference160 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - ref GatheringNode reference161 = ref CollectionsMarshal.AsSpan(list223)[0]; + num3 = 1; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + span4 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref GatheringNode reference161 = ref span4[num2]; GatheringNode obj91 = new GatheringNode { DataId = 34721u }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation + num4 = 1; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + span5 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(663.934f, 25.09505f, -87.81284f), MinimumAngle = -30, @@ -19510,20 +22910,25 @@ public static class AssemblyGatheringLocationLoader reference161 = obj91; gatheringNodeGroup70.Nodes = list223; reference160 = gatheringNodeGroup70; - ref GatheringNodeGroup reference162 = ref span60[1]; + index++; + ref GatheringNodeGroup reference162 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - ref GatheringNode reference163 = ref CollectionsMarshal.AsSpan(list225)[0]; + span4 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + ref GatheringNode reference163 = ref span4[num3]; GatheringNode obj92 = new GatheringNode { DataId = 34722u }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = new GatheringLocation + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span5 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(652.5192f, 21.87234f, -111.9597f), MinimumAngle = 195, @@ -19533,20 +22938,25 @@ public static class AssemblyGatheringLocationLoader reference163 = obj92; gatheringNodeGroup71.Nodes = list225; reference162 = gatheringNodeGroup71; - ref GatheringNodeGroup reference164 = ref span60[2]; + index++; + ref GatheringNodeGroup reference164 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup72 = new GatheringNodeGroup(); - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - ref GatheringNode reference165 = ref CollectionsMarshal.AsSpan(list227)[0]; + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + span4 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref GatheringNode reference165 = ref span4[num2]; GatheringNode obj93 = new GatheringNode { DataId = 34723u }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new GatheringLocation + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span5 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(605.4673f, 22.40212f, -91.82993f), MinimumAngle = 220, @@ -19556,20 +22966,25 @@ public static class AssemblyGatheringLocationLoader reference165 = obj93; gatheringNodeGroup72.Nodes = list227; reference164 = gatheringNodeGroup72; - ref GatheringNodeGroup reference166 = ref span60[3]; + index++; + ref GatheringNodeGroup reference166 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup73 = new GatheringNodeGroup(); num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - ref GatheringNode reference167 = ref CollectionsMarshal.AsSpan(list229)[0]; + span4 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + ref GatheringNode reference167 = ref span4[num3]; GatheringNode obj94 = new GatheringNode { DataId = 34724u }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = new GatheringLocation + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span5 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(547.7242f, 17.74087f, -106.2755f), MinimumAngle = 45, @@ -19579,20 +22994,25 @@ public static class AssemblyGatheringLocationLoader reference167 = obj94; gatheringNodeGroup73.Nodes = list229; reference166 = gatheringNodeGroup73; - ref GatheringNodeGroup reference168 = ref span60[4]; + index++; + ref GatheringNodeGroup reference168 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup74 = new GatheringNodeGroup(); - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - ref GatheringNode reference169 = ref CollectionsMarshal.AsSpan(list231)[0]; + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + span4 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + ref GatheringNode reference169 = ref span4[num2]; GatheringNode obj95 = new GatheringNode { DataId = 34725u }; - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = new GatheringLocation + num4 = 1; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + span5 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(534.3469f, 18.59627f, -78.46846f), MinimumAngle = -20, @@ -19602,20 +23022,25 @@ public static class AssemblyGatheringLocationLoader reference169 = obj95; gatheringNodeGroup74.Nodes = list231; reference168 = gatheringNodeGroup74; - ref GatheringNodeGroup reference170 = ref span60[5]; + index++; + ref GatheringNodeGroup reference170 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup75 = new GatheringNodeGroup(); num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref GatheringNode reference171 = ref CollectionsMarshal.AsSpan(list233)[0]; + span4 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + ref GatheringNode reference171 = ref span4[num3]; GatheringNode obj96 = new GatheringNode { DataId = 34726u }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new GatheringLocation + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span5 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(485.1973f, 17.44523f, -79.501f), MinimumAngle = -55, @@ -19628,38 +23053,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list222; AddLocation(970, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - num = 1; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + index = 1; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span = CollectionsMarshal.AsSpan(list235); + num = 0; + span[num] = "liza"; gatheringRoot22.Author = list235; num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + span2 = CollectionsMarshal.AsSpan(list236); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot22.Steps = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span61 = CollectionsMarshal.AsSpan(list237); - ref GatheringNodeGroup reference172 = ref span61[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span3 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref GatheringNodeGroup reference172 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup76 = new GatheringNodeGroup(); - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span62 = CollectionsMarshal.AsSpan(list238); - ref GatheringNode reference173 = ref span62[0]; + num3 = 2; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + span4 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref GatheringNode reference173 = ref span4[num2]; GatheringNode obj97 = new GatheringNode { DataId = 34749u }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = new GatheringLocation + num4 = 1; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + span5 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-392.813f, -47.04364f, -386.862f), MinimumAngle = -10, @@ -19667,28 +23100,32 @@ public static class AssemblyGatheringLocationLoader }; obj97.Locations = list239; reference173 = obj97; - ref GatheringNode reference174 = ref span62[1]; + num2++; + ref GatheringNode reference174 = ref span4[num2]; GatheringNode obj98 = new GatheringNode { DataId = 34750u }; - num3 = 3; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span63 = CollectionsMarshal.AsSpan(list240); - span63[0] = new GatheringLocation + index2 = 3; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span5 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-402.8987f, -45.59287f, -390.7613f), MinimumAngle = 220, MaximumAngle = 305 }; - span63[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-388.9036f, -46.86702f, -381.3985f), MinimumAngle = -50, MaximumAngle = 210 }; - span63[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-394.2657f, -47.86026f, -394.9654f), MinimumAngle = -145, @@ -19698,21 +23135,25 @@ public static class AssemblyGatheringLocationLoader reference174 = obj98; gatheringNodeGroup76.Nodes = list238; reference172 = gatheringNodeGroup76; - ref GatheringNodeGroup reference175 = ref span61[1]; + num++; + ref GatheringNodeGroup reference175 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup77 = new GatheringNodeGroup(); num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span64 = CollectionsMarshal.AsSpan(list241); - ref GatheringNode reference176 = ref span64[0]; + span4 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + ref GatheringNode reference176 = ref span4[num3]; GatheringNode obj99 = new GatheringNode { DataId = 34753u }; - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = new GatheringLocation + num4 = 1; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + span5 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-541.7726f, -22.952f, -517.8604f), MinimumAngle = 215, @@ -19720,28 +23161,32 @@ public static class AssemblyGatheringLocationLoader }; obj99.Locations = list242; reference176 = obj99; - ref GatheringNode reference177 = ref span64[1]; + num3++; + ref GatheringNode reference177 = ref span4[num3]; GatheringNode obj100 = new GatheringNode { DataId = 34754u }; - num3 = 3; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span65 = CollectionsMarshal.AsSpan(list243); - span65[0] = new GatheringLocation + index2 = 3; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span5 = CollectionsMarshal.AsSpan(list243); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-522.9433f, -25.87319f, -537.3257f), MinimumAngle = 225, MaximumAngle = 360 }; - span65[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-532.3487f, -22.79275f, -510.8069f), MinimumAngle = 135, MaximumAngle = 270 }; - span65[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-536.2922f, -23.79476f, -526.0406f), MinimumAngle = -110, @@ -19751,21 +23196,25 @@ public static class AssemblyGatheringLocationLoader reference177 = obj100; gatheringNodeGroup77.Nodes = list241; reference175 = gatheringNodeGroup77; - ref GatheringNodeGroup reference178 = ref span61[2]; + num++; + ref GatheringNodeGroup reference178 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup78 = new GatheringNodeGroup(); - num2 = 2; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span66 = CollectionsMarshal.AsSpan(list244); - ref GatheringNode reference179 = ref span66[0]; + num3 = 2; + List list244 = new List(num3); + CollectionsMarshal.SetCount(list244, num3); + span4 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref GatheringNode reference179 = ref span4[num2]; GatheringNode obj101 = new GatheringNode { DataId = 34751u }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation + num4 = 1; + List list245 = new List(num4); + CollectionsMarshal.SetCount(list245, num4); + span5 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-448.8079f, -14.9586f, -658.0133f), MinimumAngle = -45, @@ -19773,28 +23222,32 @@ public static class AssemblyGatheringLocationLoader }; obj101.Locations = list245; reference179 = obj101; - ref GatheringNode reference180 = ref span66[1]; + num2++; + ref GatheringNode reference180 = ref span4[num2]; GatheringNode obj102 = new GatheringNode { DataId = 34752u }; - num3 = 3; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span67 = CollectionsMarshal.AsSpan(list246); - span67[0] = new GatheringLocation + index2 = 3; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span5 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-452.2813f, -12.43015f, -665.0275f), MinimumAngle = 0, MaximumAngle = 150 }; - span67[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-431.5875f, -16.68724f, -656.528f), MinimumAngle = -35, MaximumAngle = 90 }; - span67[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-439.8079f, -16.67447f, -654.6749f), MinimumAngle = -45, @@ -19810,12 +23263,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "liza"; gatheringRoot23.Author = list247; - num = 1; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + index = 1; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -19823,22 +23280,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span68 = CollectionsMarshal.AsSpan(list249); - ref GatheringNodeGroup reference181 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list249); + index = 0; + ref GatheringNodeGroup reference181 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup79 = new GatheringNodeGroup(); num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span69 = CollectionsMarshal.AsSpan(list250); - ref GatheringNode reference182 = ref span69[0]; + span4 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + ref GatheringNode reference182 = ref span4[num3]; GatheringNode obj103 = new GatheringNode { DataId = 34759u }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new GatheringLocation + num4 = 1; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + span5 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-120.3785f, 30.38074f, 396.7192f), MinimumAngle = 125, @@ -19846,28 +23307,32 @@ public static class AssemblyGatheringLocationLoader }; obj103.Locations = list251; reference182 = obj103; - ref GatheringNode reference183 = ref span69[1]; + num3++; + ref GatheringNode reference183 = ref span4[num3]; GatheringNode obj104 = new GatheringNode { DataId = 34760u }; - num3 = 3; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span70 = CollectionsMarshal.AsSpan(list252); - span70[0] = new GatheringLocation + index2 = 3; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span5 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-133.0528f, 32.64423f, 399.1742f), MinimumAngle = 85, MaximumAngle = 235 }; - span70[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-108.2323f, 32.42883f, 407.0955f), MinimumAngle = 150, MaximumAngle = 290 }; - span70[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-102.1287f, 35.23303f, 416.1898f), MinimumAngle = 155, @@ -19877,21 +23342,25 @@ public static class AssemblyGatheringLocationLoader reference183 = obj104; gatheringNodeGroup79.Nodes = list250; reference181 = gatheringNodeGroup79; - ref GatheringNodeGroup reference184 = ref span68[1]; + index++; + ref GatheringNodeGroup reference184 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup80 = new GatheringNodeGroup(); - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span71 = CollectionsMarshal.AsSpan(list253); - ref GatheringNode reference185 = ref span71[0]; + num3 = 2; + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + span4 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref GatheringNode reference185 = ref span4[num2]; GatheringNode obj105 = new GatheringNode { DataId = 34755u }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new GatheringLocation + num4 = 1; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + span5 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-171.2521f, 46.49414f, 142.4124f), MinimumAngle = -80, @@ -19899,28 +23368,32 @@ public static class AssemblyGatheringLocationLoader }; obj105.Locations = list254; reference185 = obj105; - ref GatheringNode reference186 = ref span71[1]; + num2++; + ref GatheringNode reference186 = ref span4[num2]; GatheringNode obj106 = new GatheringNode { DataId = 34756u }; - num3 = 3; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - Span span72 = CollectionsMarshal.AsSpan(list255); - span72[0] = new GatheringLocation + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span5 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-150.6633f, 47.30524f, 116.4768f), MinimumAngle = -135, MaximumAngle = 0 }; - span72[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-164.8948f, 47.17537f, 138.1664f), MinimumAngle = -60, MaximumAngle = 20 }; - span72[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-157.4637f, 46.7111f, 126.0358f), MinimumAngle = -90, @@ -19930,21 +23403,25 @@ public static class AssemblyGatheringLocationLoader reference186 = obj106; gatheringNodeGroup80.Nodes = list253; reference184 = gatheringNodeGroup80; - ref GatheringNodeGroup reference187 = ref span68[2]; + index++; + ref GatheringNodeGroup reference187 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup81 = new GatheringNodeGroup(); num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span73 = CollectionsMarshal.AsSpan(list256); - ref GatheringNode reference188 = ref span73[0]; + span4 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + ref GatheringNode reference188 = ref span4[num3]; GatheringNode obj107 = new GatheringNode { DataId = 34757u }; - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = new GatheringLocation + num4 = 1; + List list257 = new List(num4); + CollectionsMarshal.SetCount(list257, num4); + span5 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-313.222f, 62.79089f, 335.1643f), MinimumAngle = 195, @@ -19952,28 +23429,32 @@ public static class AssemblyGatheringLocationLoader }; obj107.Locations = list257; reference188 = obj107; - ref GatheringNode reference189 = ref span73[1]; + num3++; + ref GatheringNode reference189 = ref span4[num3]; GatheringNode obj108 = new GatheringNode { DataId = 34758u }; - num3 = 3; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span74 = CollectionsMarshal.AsSpan(list258); - span74[0] = new GatheringLocation + index2 = 3; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span5 = CollectionsMarshal.AsSpan(list258); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-309.2621f, 71.25529f, 367.5573f), MinimumAngle = 190, MaximumAngle = 300 }; - span74[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-323.9727f, 58.3564f, 295.3081f), MinimumAngle = 205, MaximumAngle = 325 }; - span74[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-305.3915f, 72.10517f, 385.1654f), MinimumAngle = 210, @@ -19986,38 +23467,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot23.Groups = list249; AddLocation(975, gatheringRoot23); GatheringRoot gatheringRoot24 = new GatheringRoot(); - num = 1; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + index = 1; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span = CollectionsMarshal.AsSpan(list259); + num = 0; + span[num] = "liza"; gatheringRoot24.Author = list259; num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.None, null, null, 1188) + span2 = CollectionsMarshal.AsSpan(list260); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; gatheringRoot24.Steps = list260; - num = 3; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span75 = CollectionsMarshal.AsSpan(list261); - ref GatheringNodeGroup reference190 = ref span75[0]; + index = 3; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + span3 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref GatheringNodeGroup reference190 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup82 = new GatheringNodeGroup(); - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span76 = CollectionsMarshal.AsSpan(list262); - ref GatheringNode reference191 = ref span76[0]; + num3 = 2; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + span4 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref GatheringNode reference191 = ref span4[num2]; GatheringNode obj109 = new GatheringNode { DataId = 34763u }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new GatheringLocation + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + span5 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-628.5966f, 3.089153f, -417.3812f), MinimumAngle = -80, @@ -20025,28 +23514,32 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list263; reference191 = obj109; - ref GatheringNode reference192 = ref span76[1]; + num2++; + ref GatheringNode reference192 = ref span4[num2]; GatheringNode obj110 = new GatheringNode { DataId = 34764u }; - num3 = 3; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - Span span77 = CollectionsMarshal.AsSpan(list264); - span77[0] = new GatheringLocation + index2 = 3; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span5 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-644.7781f, 2.261729f, -416.9234f), MinimumAngle = -70, MaximumAngle = 100 }; - span77[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-621.8856f, 3.151928f, -418.6934f), MinimumAngle = -85, MaximumAngle = 75 }; - span77[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-632.9135f, 2.716663f, -417.9657f), MinimumAngle = -55, @@ -20056,34 +23549,39 @@ public static class AssemblyGatheringLocationLoader reference192 = obj110; gatheringNodeGroup82.Nodes = list262; reference190 = gatheringNodeGroup82; - ref GatheringNodeGroup reference193 = ref span75[1]; + num++; + ref GatheringNodeGroup reference193 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup83 = new GatheringNodeGroup(); num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span78 = CollectionsMarshal.AsSpan(list265); - ref GatheringNode reference194 = ref span78[0]; + span4 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + ref GatheringNode reference194 = ref span4[num3]; GatheringNode obj111 = new GatheringNode { DataId = 34766u }; - num3 = 3; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - Span span79 = CollectionsMarshal.AsSpan(list266); - span79[0] = new GatheringLocation + num4 = 3; + List list266 = new List(num4); + CollectionsMarshal.SetCount(list266, num4); + span5 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-823.1537f, 7.570713f, -344.0435f), MinimumAngle = -150, MaximumAngle = -10 }; - span79[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-824.2916f, 8.34999f, -311.9117f), MinimumAngle = 215, MaximumAngle = 345 }; - span79[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-825.0306f, 9.265428f, -279.9193f), MinimumAngle = 205, @@ -20091,15 +23589,18 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list266; reference194 = obj111; - ref GatheringNode reference195 = ref span78[1]; + num3++; + ref GatheringNode reference195 = ref span4[num3]; GatheringNode obj112 = new GatheringNode { DataId = 34765u }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheringLocation + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span5 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-824.3366f, 7.884955f, -327.8148f), MinimumAngle = 205, @@ -20109,21 +23610,25 @@ public static class AssemblyGatheringLocationLoader reference195 = obj112; gatheringNodeGroup83.Nodes = list265; reference193 = gatheringNodeGroup83; - ref GatheringNodeGroup reference196 = ref span75[2]; + num++; + ref GatheringNodeGroup reference196 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup84 = new GatheringNodeGroup(); - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span80 = CollectionsMarshal.AsSpan(list268); - ref GatheringNode reference197 = ref span80[0]; + num3 = 2; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + span4 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + ref GatheringNode reference197 = ref span4[num2]; GatheringNode obj113 = new GatheringNode { DataId = 34761u }; - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new GatheringLocation + num4 = 1; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + span5 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-593.9269f, 3.169262f, -223.1938f), MinimumAngle = 65, @@ -20131,28 +23636,32 @@ public static class AssemblyGatheringLocationLoader }; obj113.Locations = list269; reference197 = obj113; - ref GatheringNode reference198 = ref span80[1]; + num2++; + ref GatheringNode reference198 = ref span4[num2]; GatheringNode obj114 = new GatheringNode { DataId = 34762u }; - num3 = 3; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span81 = CollectionsMarshal.AsSpan(list270); - span81[0] = new GatheringLocation + index2 = 3; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span5 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-584.8643f, 3.320522f, -227.3047f), MinimumAngle = 110, MaximumAngle = 245 }; - span81[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-602.5651f, 3.251461f, -217.1539f), MinimumAngle = 70, MaximumAngle = 210 }; - span81[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-613.296f, 2.557324f, -205.7018f), MinimumAngle = 50, @@ -20168,12 +23677,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list271); + index = 0; + span[index] = "liza"; gatheringRoot25.Author = list271; - num = 1; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + span2 = CollectionsMarshal.AsSpan(list272); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -20181,35 +23694,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span82 = CollectionsMarshal.AsSpan(list273); - ref GatheringNodeGroup reference199 = ref span82[0]; + span3 = CollectionsMarshal.AsSpan(list273); + index = 0; + ref GatheringNodeGroup reference199 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup85 = new GatheringNodeGroup(); num2 = 2; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span83 = CollectionsMarshal.AsSpan(list274); - ref GatheringNode reference200 = ref span83[0]; + span4 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + ref GatheringNode reference200 = ref span4[num3]; GatheringNode obj115 = new GatheringNode { DataId = 34768u }; - num3 = 3; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - Span span84 = CollectionsMarshal.AsSpan(list275); - span84[0] = new GatheringLocation + num4 = 3; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + span5 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-488.7683f, 7.979174f, -200.5838f), MinimumAngle = -35, MaximumAngle = 155 }; - span84[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-482.2286f, 5.531401f, -196.1891f), MinimumAngle = -45, MaximumAngle = 85 }; - span84[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-471.8323f, 5.569422f, -196.5274f), MinimumAngle = -95, @@ -20217,15 +23735,18 @@ public static class AssemblyGatheringLocationLoader }; obj115.Locations = list275; reference200 = obj115; - ref GatheringNode reference201 = ref span83[1]; + num3++; + ref GatheringNode reference201 = ref span4[num3]; GatheringNode obj116 = new GatheringNode { DataId = 34767u }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new GatheringLocation + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span5 = CollectionsMarshal.AsSpan(list276); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-476.9659f, 6.191905f, -196.2125f), MinimumAngle = -70, @@ -20235,34 +23756,39 @@ public static class AssemblyGatheringLocationLoader reference201 = obj116; gatheringNodeGroup85.Nodes = list274; reference199 = gatheringNodeGroup85; - ref GatheringNodeGroup reference202 = ref span82[1]; + index++; + ref GatheringNodeGroup reference202 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup86 = new GatheringNodeGroup(); - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span85 = CollectionsMarshal.AsSpan(list277); - ref GatheringNode reference203 = ref span85[0]; + num3 = 2; + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + span4 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref GatheringNode reference203 = ref span4[num2]; GatheringNode obj117 = new GatheringNode { DataId = 34772u }; - num3 = 3; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span86 = CollectionsMarshal.AsSpan(list278); - span86[0] = new GatheringLocation + num4 = 3; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + span5 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-484.7457f, -11.7739f, -35.59686f), MinimumAngle = 115, MaximumAngle = 270 }; - span86[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-490.1306f, -12.35526f, -37.11329f), MinimumAngle = 105, MaximumAngle = 280 }; - span86[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-465.1013f, -11.11267f, -37.65248f), MinimumAngle = 70, @@ -20272,15 +23798,18 @@ public static class AssemblyGatheringLocationLoader }; obj117.Locations = list278; reference203 = obj117; - ref GatheringNode reference204 = ref span85[1]; + num2++; + ref GatheringNode reference204 = ref span4[num2]; GatheringNode obj118 = new GatheringNode { DataId = 34771u }; - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new GatheringLocation + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span5 = CollectionsMarshal.AsSpan(list279); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-474.0215f, -11.19864f, -33.31685f), MinimumAngle = 105, @@ -20292,21 +23821,25 @@ public static class AssemblyGatheringLocationLoader reference204 = obj118; gatheringNodeGroup86.Nodes = list277; reference202 = gatheringNodeGroup86; - ref GatheringNodeGroup reference205 = ref span82[2]; + index++; + ref GatheringNodeGroup reference205 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup87 = new GatheringNodeGroup(); num2 = 2; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span87 = CollectionsMarshal.AsSpan(list280); - ref GatheringNode reference206 = ref span87[0]; + span4 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + ref GatheringNode reference206 = ref span4[num3]; GatheringNode obj119 = new GatheringNode { DataId = 34769u }; - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new GatheringLocation + num4 = 1; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + span5 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-359.9215f, 7.800453f, -75.53547f), MinimumAngle = -5, @@ -20314,28 +23847,32 @@ public static class AssemblyGatheringLocationLoader }; obj119.Locations = list281; reference206 = obj119; - ref GatheringNode reference207 = ref span87[1]; + num3++; + ref GatheringNode reference207 = ref span4[num3]; GatheringNode obj120 = new GatheringNode { DataId = 34770u }; - num3 = 3; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - Span span88 = CollectionsMarshal.AsSpan(list282); - span88[0] = new GatheringLocation + index2 = 3; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span5 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-357.9739f, 6.927034f, -74.45865f), MinimumAngle = -20, MaximumAngle = 80 }; - span88[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-362.3269f, 8.58064f, -80.35127f), MinimumAngle = 45, MaximumAngle = 105 }; - span88[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-362.3572f, 9.697624f, -82.81331f), MinimumAngle = 25, @@ -20348,38 +23885,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot25.Groups = list273; AddLocation(977, gatheringRoot25); GatheringRoot gatheringRoot26 = new GatheringRoot(); - num = 1; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - CollectionsMarshal.AsSpan(list283)[0] = "liza"; + index = 1; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + span = CollectionsMarshal.AsSpan(list283); + num = 0; + span[num] = "liza"; gatheringRoot26.Author = list283; num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.None, null, null, 1190) + span2 = CollectionsMarshal.AsSpan(list284); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; gatheringRoot26.Steps = list284; - num = 3; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span89 = CollectionsMarshal.AsSpan(list285); - ref GatheringNodeGroup reference208 = ref span89[0]; + index = 3; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span3 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref GatheringNodeGroup reference208 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup88 = new GatheringNodeGroup(); - num2 = 2; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span90 = CollectionsMarshal.AsSpan(list286); - ref GatheringNode reference209 = ref span90[0]; + num3 = 2; + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + span4 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref GatheringNode reference209 = ref span4[num2]; GatheringNode obj121 = new GatheringNode { DataId = 34777u }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = new GatheringLocation + num4 = 1; + List list287 = new List(num4); + CollectionsMarshal.SetCount(list287, num4); + span5 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(395.7766f, -15.0432f, -793.4127f), MinimumAngle = 265, @@ -20387,28 +23932,32 @@ public static class AssemblyGatheringLocationLoader }; obj121.Locations = list287; reference209 = obj121; - ref GatheringNode reference210 = ref span90[1]; + num2++; + ref GatheringNode reference210 = ref span4[num2]; GatheringNode obj122 = new GatheringNode { DataId = 34778u }; - num3 = 3; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span91 = CollectionsMarshal.AsSpan(list288); - span91[0] = new GatheringLocation + index2 = 3; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span5 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(372.0282f, -16.77722f, -785.652f), MinimumAngle = 255, MaximumAngle = 360 }; - span91[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(419.309f, -10.25133f, -784.8259f), MinimumAngle = -25, MaximumAngle = 85 }; - span91[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(410.6989f, -10.9656f, -790.8315f), MinimumAngle = -20, @@ -20418,34 +23967,39 @@ public static class AssemblyGatheringLocationLoader reference210 = obj122; gatheringNodeGroup88.Nodes = list286; reference208 = gatheringNodeGroup88; - ref GatheringNodeGroup reference211 = ref span89[1]; + num++; + ref GatheringNodeGroup reference211 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup89 = new GatheringNodeGroup(); num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span92 = CollectionsMarshal.AsSpan(list289); - ref GatheringNode reference212 = ref span92[0]; + span4 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + ref GatheringNode reference212 = ref span4[num3]; GatheringNode obj123 = new GatheringNode { DataId = 34774u }; - num3 = 3; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span93 = CollectionsMarshal.AsSpan(list290); - span93[0] = new GatheringLocation + num4 = 3; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + span5 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(594.6921f, -6.424452f, -826.2967f), MinimumAngle = -90, MaximumAngle = 40 }; - span93[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(618.4105f, -4.948164f, -824.438f), MinimumAngle = -60, MaximumAngle = 60 }; - span93[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(625.7259f, -4.734236f, -825.9003f), MinimumAngle = -55, @@ -20453,15 +24007,18 @@ public static class AssemblyGatheringLocationLoader }; obj123.Locations = list290; reference212 = obj123; - ref GatheringNode reference213 = ref span92[1]; + num3++; + ref GatheringNode reference213 = ref span4[num3]; GatheringNode obj124 = new GatheringNode { DataId = 34773u }; - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = new GatheringLocation + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span5 = CollectionsMarshal.AsSpan(list291); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(606.1035f, -5.781946f, -827.3289f), MinimumAngle = -40, @@ -20471,34 +24028,39 @@ public static class AssemblyGatheringLocationLoader reference213 = obj124; gatheringNodeGroup89.Nodes = list289; reference211 = gatheringNodeGroup89; - ref GatheringNodeGroup reference214 = ref span89[2]; + num++; + ref GatheringNodeGroup reference214 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup90 = new GatheringNodeGroup(); - num2 = 2; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span94 = CollectionsMarshal.AsSpan(list292); - ref GatheringNode reference215 = ref span94[0]; + num3 = 2; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + span4 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + ref GatheringNode reference215 = ref span4[num2]; GatheringNode obj125 = new GatheringNode { DataId = 34776u }; - num3 = 3; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span95 = CollectionsMarshal.AsSpan(list293); - span95[0] = new GatheringLocation + num4 = 3; + List list293 = new List(num4); + CollectionsMarshal.SetCount(list293, num4); + span5 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(729.9794f, -6.851574f, -746.845f), MinimumAngle = 0, MaximumAngle = 155 }; - span95[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(730.2341f, -6.406585f, -724.3364f), MinimumAngle = 0, MaximumAngle = 165 }; - span95[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(732.0835f, -6.737461f, -738.1154f), MinimumAngle = 35, @@ -20506,15 +24068,18 @@ public static class AssemblyGatheringLocationLoader }; obj125.Locations = list293; reference215 = obj125; - ref GatheringNode reference216 = ref span94[1]; + num2++; + ref GatheringNode reference216 = ref span4[num2]; GatheringNode obj126 = new GatheringNode { DataId = 34775u }; - num3 = 1; - List list294 = new List(num3); - CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = new GatheringLocation + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span5 = CollectionsMarshal.AsSpan(list294); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(730.0588f, -6.698792f, -733.2113f), MinimumAngle = 25, @@ -20530,12 +24095,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; gatheringRoot27.Author = list295; - num = 1; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -20543,22 +24112,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span96 = CollectionsMarshal.AsSpan(list297); - ref GatheringNodeGroup reference217 = ref span96[0]; + span3 = CollectionsMarshal.AsSpan(list297); + index = 0; + ref GatheringNodeGroup reference217 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup91 = new GatheringNodeGroup(); num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span97 = CollectionsMarshal.AsSpan(list298); - ref GatheringNode reference218 = ref span97[0]; + span4 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + ref GatheringNode reference218 = ref span4[num3]; GatheringNode obj127 = new GatheringNode { DataId = 34783u }; - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = new GatheringLocation + num4 = 1; + List list299 = new List(num4); + CollectionsMarshal.SetCount(list299, num4); + span5 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-273.0702f, 15.09387f, -443.001f), MinimumAngle = -15, @@ -20566,28 +24139,32 @@ public static class AssemblyGatheringLocationLoader }; obj127.Locations = list299; reference218 = obj127; - ref GatheringNode reference219 = ref span97[1]; + num3++; + ref GatheringNode reference219 = ref span4[num3]; GatheringNode obj128 = new GatheringNode { DataId = 34784u }; - num3 = 3; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - Span span98 = CollectionsMarshal.AsSpan(list300); - span98[0] = new GatheringLocation + index2 = 3; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span5 = CollectionsMarshal.AsSpan(list300); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-268.5216f, 15.18526f, -438.1259f), MinimumAngle = -160, MaximumAngle = 100 }; - span98[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-282.2694f, 15.46158f, -437.156f), MinimumAngle = 200, MaximumAngle = 350 }; - span98[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-284.5246f, 15.61228f, -445.3587f), MinimumAngle = 155, @@ -20597,34 +24174,39 @@ public static class AssemblyGatheringLocationLoader reference219 = obj128; gatheringNodeGroup91.Nodes = list298; reference217 = gatheringNodeGroup91; - ref GatheringNodeGroup reference220 = ref span96[1]; + index++; + ref GatheringNodeGroup reference220 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup92 = new GatheringNodeGroup(); - num2 = 2; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span99 = CollectionsMarshal.AsSpan(list301); - ref GatheringNode reference221 = ref span99[0]; + num3 = 2; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + span4 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref GatheringNode reference221 = ref span4[num2]; GatheringNode obj129 = new GatheringNode { DataId = 34782u }; - num3 = 3; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span100 = CollectionsMarshal.AsSpan(list302); - span100[0] = new GatheringLocation + num4 = 3; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + span5 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-431.8761f, 34.533f, -654.7189f), MinimumAngle = -100, MaximumAngle = 30 }; - span100[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-430.493f, 32.50696f, -679.2305f), MinimumAngle = 170, MaximumAngle = 295 }; - span100[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-435.1992f, 35.77378f, -649.1482f), MinimumAngle = -145, @@ -20632,15 +24214,18 @@ public static class AssemblyGatheringLocationLoader }; obj129.Locations = list302; reference221 = obj129; - ref GatheringNode reference222 = ref span99[1]; + num2++; + ref GatheringNode reference222 = ref span4[num2]; GatheringNode obj130 = new GatheringNode { DataId = 34781u }; - num3 = 1; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - CollectionsMarshal.AsSpan(list303)[0] = new GatheringLocation + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span5 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-427.0237f, 33.4935f, -668.6351f), MinimumAngle = 200, @@ -20650,21 +24235,25 @@ public static class AssemblyGatheringLocationLoader reference222 = obj130; gatheringNodeGroup92.Nodes = list301; reference220 = gatheringNodeGroup92; - ref GatheringNodeGroup reference223 = ref span96[2]; + index++; + ref GatheringNodeGroup reference223 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup93 = new GatheringNodeGroup(); num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span101 = CollectionsMarshal.AsSpan(list304); - ref GatheringNode reference224 = ref span101[0]; + span4 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + ref GatheringNode reference224 = ref span4[num3]; GatheringNode obj131 = new GatheringNode { DataId = 34779u }; - num3 = 1; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = new GatheringLocation + num4 = 1; + List list305 = new List(num4); + CollectionsMarshal.SetCount(list305, num4); + span5 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-524.4308f, 33.95129f, -578.9917f), MinimumAngle = 250, @@ -20672,28 +24261,32 @@ public static class AssemblyGatheringLocationLoader }; obj131.Locations = list305; reference224 = obj131; - ref GatheringNode reference225 = ref span101[1]; + num3++; + ref GatheringNode reference225 = ref span4[num3]; GatheringNode obj132 = new GatheringNode { DataId = 34780u }; - num3 = 3; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span102 = CollectionsMarshal.AsSpan(list306); - span102[0] = new GatheringLocation + index2 = 3; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span5 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-533.9852f, 31.36117f, -558.8026f), MinimumAngle = -140, MaximumAngle = 0 }; - span102[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-522.1197f, 36.22581f, -597.019f), MinimumAngle = 170, MaximumAngle = 320 }; - span102[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-549.8734f, 28.65267f, -533.7023f), MinimumAngle = -130, @@ -20706,16 +24299,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot27.Groups = list297; AddLocation(979, gatheringRoot27); GatheringRoot gatheringRoot28 = new GatheringRoot(); - num = 1; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "liza"; + index = 1; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span = CollectionsMarshal.AsSpan(list307); + num = 0; + span[num] = "liza"; gatheringRoot28.Author = list307; num = 3; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - Span span103 = CollectionsMarshal.AsSpan(list308); - span103[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) + span2 = CollectionsMarshal.AsSpan(list308); + index = 0; + span2[index] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -20730,7 +24326,8 @@ public static class AssemblyGatheringLocationLoader } } }; - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) + index++; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -20741,31 +24338,36 @@ public static class AssemblyGatheringLocationLoader } } }; - span103[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) + index++; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) { DisableNavmesh = true, Fly = true }; gatheringRoot28.Steps = list308; - num = 3; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span104 = CollectionsMarshal.AsSpan(list309); - ref GatheringNodeGroup reference226 = ref span104[0]; + index = 3; + List list309 = new List(index); + CollectionsMarshal.SetCount(list309, index); + span3 = CollectionsMarshal.AsSpan(list309); + num = 0; + ref GatheringNodeGroup reference226 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup94 = new GatheringNodeGroup(); - num2 = 2; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - Span span105 = CollectionsMarshal.AsSpan(list310); - ref GatheringNode reference227 = ref span105[0]; + num3 = 2; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + span4 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref GatheringNode reference227 = ref span4[num2]; GatheringNode obj133 = new GatheringNode { DataId = 34787u }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new GatheringLocation + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + span5 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(482.7197f, -38.14573f, -612.8046f), MinimumAngle = 100, @@ -20773,28 +24375,32 @@ public static class AssemblyGatheringLocationLoader }; obj133.Locations = list311; reference227 = obj133; - ref GatheringNode reference228 = ref span105[1]; + num2++; + ref GatheringNode reference228 = ref span4[num2]; GatheringNode obj134 = new GatheringNode { DataId = 34788u }; - num3 = 3; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span106 = CollectionsMarshal.AsSpan(list312); - span106[0] = new GatheringLocation + index2 = 3; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span5 = CollectionsMarshal.AsSpan(list312); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(503.5652f, -41.40348f, -600.9512f), MinimumAngle = 185, MaximumAngle = 275 }; - span106[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(441.1733f, -36.58192f, -610.3331f), MinimumAngle = 120, MaximumAngle = 265 }; - span106[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(457.5484f, -40.0437f, -608.3312f), MinimumAngle = 115, @@ -20804,32 +24410,37 @@ public static class AssemblyGatheringLocationLoader reference228 = obj134; gatheringNodeGroup94.Nodes = list310; reference226 = gatheringNodeGroup94; - ref GatheringNodeGroup reference229 = ref span104[1]; + num++; + ref GatheringNodeGroup reference229 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup95 = new GatheringNodeGroup(); num2 = 2; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span107 = CollectionsMarshal.AsSpan(list313); - ref GatheringNode reference230 = ref span107[0]; + span4 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + ref GatheringNode reference230 = ref span4[num3]; GatheringNode obj135 = new GatheringNode { DataId = 34790u }; - num3 = 3; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span108 = CollectionsMarshal.AsSpan(list314); - span108[0] = new GatheringLocation + num4 = 3; + List list314 = new List(num4); + CollectionsMarshal.SetCount(list314, num4); + span5 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(584.035f, -49.84215f, -759.925f), MinimumAngle = 115, MaximumAngle = 240 }; - span108[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(624.3585f, -61.07853f, -748.2542f) }; - span108[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(605.4849f, -59.0002f, -772.6049f), MinimumAngle = 175, @@ -20837,15 +24448,18 @@ public static class AssemblyGatheringLocationLoader }; obj135.Locations = list314; reference230 = obj135; - ref GatheringNode reference231 = ref span107[1]; + num3++; + ref GatheringNode reference231 = ref span4[num3]; GatheringNode obj136 = new GatheringNode { DataId = 34789u }; - num3 = 1; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - CollectionsMarshal.AsSpan(list315)[0] = new GatheringLocation + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span5 = CollectionsMarshal.AsSpan(list315); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(601.6854f, -53.68699f, -741.3439f), MinimumAngle = 185, @@ -20855,21 +24469,25 @@ public static class AssemblyGatheringLocationLoader reference231 = obj136; gatheringNodeGroup95.Nodes = list313; reference229 = gatheringNodeGroup95; - ref GatheringNodeGroup reference232 = ref span104[2]; + num++; + ref GatheringNodeGroup reference232 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup96 = new GatheringNodeGroup(); - num2 = 2; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - Span span109 = CollectionsMarshal.AsSpan(list316); - ref GatheringNode reference233 = ref span109[0]; + num3 = 2; + List list316 = new List(num3); + CollectionsMarshal.SetCount(list316, num3); + span4 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + ref GatheringNode reference233 = ref span4[num2]; GatheringNode obj137 = new GatheringNode { DataId = 34785u }; - num3 = 1; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = new GatheringLocation + num4 = 1; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + span5 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(754.1298f, -57.09224f, -571.5818f), MinimumAngle = 100, @@ -20877,28 +24495,32 @@ public static class AssemblyGatheringLocationLoader }; obj137.Locations = list317; reference233 = obj137; - ref GatheringNode reference234 = ref span109[1]; + num2++; + ref GatheringNode reference234 = ref span4[num2]; GatheringNode obj138 = new GatheringNode { DataId = 34786u }; - num3 = 3; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span110 = CollectionsMarshal.AsSpan(list318); - span110[0] = new GatheringLocation + index2 = 3; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span5 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(734.2795f, -55.15427f, -573.6763f), MinimumAngle = 90, MaximumAngle = 260 }; - span110[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(714.931f, -53.3118f, -569.4072f), MinimumAngle = 115, MaximumAngle = 250 }; - span110[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(773.049f, -55.97124f, -569.7167f), MinimumAngle = 105, @@ -20914,12 +24536,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - CollectionsMarshal.AsSpan(list319)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list319); + index = 0; + span[index] = "liza"; gatheringRoot29.Author = list319; - num = 1; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + index = 1; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + span2 = CollectionsMarshal.AsSpan(list320); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -20927,22 +24553,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span111 = CollectionsMarshal.AsSpan(list321); - ref GatheringNodeGroup reference235 = ref span111[0]; + span3 = CollectionsMarshal.AsSpan(list321); + index = 0; + ref GatheringNodeGroup reference235 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup97 = new GatheringNodeGroup(); num2 = 2; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span112 = CollectionsMarshal.AsSpan(list322); - ref GatheringNode reference236 = ref span112[0]; + span4 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + ref GatheringNode reference236 = ref span4[num3]; GatheringNode obj139 = new GatheringNode { DataId = 34809u }; - num3 = 1; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - CollectionsMarshal.AsSpan(list323)[0] = new GatheringLocation + num4 = 1; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + span5 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(503.1253f, 113.6339f, 332.9355f), MinimumAngle = 35, @@ -20950,28 +24580,32 @@ public static class AssemblyGatheringLocationLoader }; obj139.Locations = list323; reference236 = obj139; - ref GatheringNode reference237 = ref span112[1]; + num3++; + ref GatheringNode reference237 = ref span4[num3]; GatheringNode obj140 = new GatheringNode { DataId = 34810u }; - num3 = 3; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span113 = CollectionsMarshal.AsSpan(list324); - span113[0] = new GatheringLocation + index2 = 3; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span5 = CollectionsMarshal.AsSpan(list324); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(516.6899f, 116.4842f, 326.5524f), MinimumAngle = 20, MaximumAngle = 160 }; - span113[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(505.7916f, 114.2773f, 342.2974f), MinimumAngle = 0, MaximumAngle = 100 }; - span113[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(515.9227f, 114.58f, 317.4333f), MinimumAngle = 0, @@ -20981,21 +24615,25 @@ public static class AssemblyGatheringLocationLoader reference237 = obj140; gatheringNodeGroup97.Nodes = list322; reference235 = gatheringNodeGroup97; - ref GatheringNodeGroup reference238 = ref span111[1]; + index++; + ref GatheringNodeGroup reference238 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup98 = new GatheringNodeGroup(); - num2 = 2; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - Span span114 = CollectionsMarshal.AsSpan(list325); - ref GatheringNode reference239 = ref span114[0]; + num3 = 2; + List list325 = new List(num3); + CollectionsMarshal.SetCount(list325, num3); + span4 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + ref GatheringNode reference239 = ref span4[num2]; GatheringNode obj141 = new GatheringNode { DataId = 34813u }; - num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = new GatheringLocation + num4 = 1; + List list326 = new List(num4); + CollectionsMarshal.SetCount(list326, num4); + span5 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(370.5957f, 64.7135f, 158.4955f), MinimumAngle = -45, @@ -21003,28 +24641,32 @@ public static class AssemblyGatheringLocationLoader }; obj141.Locations = list326; reference239 = obj141; - ref GatheringNode reference240 = ref span114[1]; + num2++; + ref GatheringNode reference240 = ref span4[num2]; GatheringNode obj142 = new GatheringNode { DataId = 34814u }; - num3 = 3; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - Span span115 = CollectionsMarshal.AsSpan(list327); - span115[0] = new GatheringLocation + index2 = 3; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span5 = CollectionsMarshal.AsSpan(list327); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(363.6682f, 64.62195f, 152.1782f), MinimumAngle = 20, MaximumAngle = 140 }; - span115[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(394.519f, 63.70097f, 168.7538f), MinimumAngle = -125, MaximumAngle = 15 }; - span115[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(386.34f, 63.7528f, 166.915f), MinimumAngle = 15, @@ -21034,34 +24676,39 @@ public static class AssemblyGatheringLocationLoader reference240 = obj142; gatheringNodeGroup98.Nodes = list325; reference238 = gatheringNodeGroup98; - ref GatheringNodeGroup reference241 = ref span111[2]; + index++; + ref GatheringNodeGroup reference241 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup99 = new GatheringNodeGroup(); num2 = 2; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span116 = CollectionsMarshal.AsSpan(list328); - ref GatheringNode reference242 = ref span116[0]; + span4 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + ref GatheringNode reference242 = ref span4[num3]; GatheringNode obj143 = new GatheringNode { DataId = 34812u }; - num3 = 3; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - Span span117 = CollectionsMarshal.AsSpan(list329); - span117[0] = new GatheringLocation + num4 = 3; + List list329 = new List(num4); + CollectionsMarshal.SetCount(list329, num4); + span5 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(328.846f, 79.13469f, 434.0204f), MinimumAngle = 175, MaximumAngle = 280 }; - span117[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(352.4181f, 81.39249f, 446.0517f), MinimumAngle = 180, MaximumAngle = 260 }; - span117[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(336.5682f, 80.73547f, 443.9305f), MinimumAngle = 120, @@ -21069,15 +24716,18 @@ public static class AssemblyGatheringLocationLoader }; obj143.Locations = list329; reference242 = obj143; - ref GatheringNode reference243 = ref span116[1]; + num3++; + ref GatheringNode reference243 = ref span4[num3]; GatheringNode obj144 = new GatheringNode { DataId = 34811u }; - num3 = 1; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new GatheringLocation + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span5 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(341.6647f, 80.125f, 436.6368f), MinimumAngle = 100, @@ -21090,35 +24740,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot29.Groups = list321; AddLocation(984, gatheringRoot29); GatheringRoot gatheringRoot30 = new GatheringRoot(); - num = 1; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + index = 1; + List list331 = new List(index); + CollectionsMarshal.SetCount(list331, index); + span = CollectionsMarshal.AsSpan(list331); + num = 0; + span[num] = "liza"; gatheringRoot30.Author = list331; num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.None, null, null, 1190); + span2 = CollectionsMarshal.AsSpan(list332); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1190); gatheringRoot30.Steps = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span118 = CollectionsMarshal.AsSpan(list333); - ref GatheringNodeGroup reference244 = ref span118[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span3 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref GatheringNodeGroup reference244 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup100 = new GatheringNodeGroup(); - num2 = 2; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span119 = CollectionsMarshal.AsSpan(list334); - ref GatheringNode reference245 = ref span119[0]; + num3 = 2; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + span4 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + ref GatheringNode reference245 = ref span4[num2]; GatheringNode obj145 = new GatheringNode { DataId = 34819u }; - num3 = 1; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = new GatheringLocation + num4 = 1; + List list335 = new List(num4); + CollectionsMarshal.SetCount(list335, num4); + span5 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-86.69859f, -8.177663f, 572.7712f), MinimumAngle = 45, @@ -21126,28 +24784,32 @@ public static class AssemblyGatheringLocationLoader }; obj145.Locations = list335; reference245 = obj145; - ref GatheringNode reference246 = ref span119[1]; + num2++; + ref GatheringNode reference246 = ref span4[num2]; GatheringNode obj146 = new GatheringNode { DataId = 34820u }; - num3 = 3; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span120 = CollectionsMarshal.AsSpan(list336); - span120[0] = new GatheringLocation + index2 = 3; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span5 = CollectionsMarshal.AsSpan(list336); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-83.81214f, -8.291362f, 581.595f), MinimumAngle = 80, MaximumAngle = 175 }; - span120[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-88.70462f, -8.511888f, 578.6565f), MinimumAngle = 35, MaximumAngle = 150 }; - span120[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-81.00482f, -7.330131f, 574.7444f), MinimumAngle = 150, @@ -21157,21 +24819,25 @@ public static class AssemblyGatheringLocationLoader reference246 = obj146; gatheringNodeGroup100.Nodes = list334; reference244 = gatheringNodeGroup100; - ref GatheringNodeGroup reference247 = ref span118[1]; + num++; + ref GatheringNodeGroup reference247 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup101 = new GatheringNodeGroup(); num2 = 2; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span121 = CollectionsMarshal.AsSpan(list337); - ref GatheringNode reference248 = ref span121[0]; + span4 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + ref GatheringNode reference248 = ref span4[num3]; GatheringNode obj147 = new GatheringNode { DataId = 34817u }; - num3 = 1; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - CollectionsMarshal.AsSpan(list338)[0] = new GatheringLocation + num4 = 1; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + span5 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-264.2871f, -21.57944f, 593.6306f), MinimumAngle = 130, @@ -21181,28 +24847,32 @@ public static class AssemblyGatheringLocationLoader }; obj147.Locations = list338; reference248 = obj147; - ref GatheringNode reference249 = ref span121[1]; + num3++; + ref GatheringNode reference249 = ref span4[num3]; GatheringNode obj148 = new GatheringNode { DataId = 34818u }; - num3 = 3; - List list339 = new List(num3); - CollectionsMarshal.SetCount(list339, num3); - Span span122 = CollectionsMarshal.AsSpan(list339); - span122[0] = new GatheringLocation + index2 = 3; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + span5 = CollectionsMarshal.AsSpan(list339); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-266.9412f, -21.20901f, 593.9532f), MinimumAngle = 70, MaximumAngle = 225 }; - span122[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-268.0496f, -21.79604f, 598.2532f), MinimumAngle = -45, MaximumAngle = 160 }; - span122[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-260.2841f, -22.10003f, 595.726f), MinimumAngle = 160, @@ -21212,44 +24882,52 @@ public static class AssemblyGatheringLocationLoader reference249 = obj148; gatheringNodeGroup101.Nodes = list337; reference247 = gatheringNodeGroup101; - ref GatheringNodeGroup reference250 = ref span118[2]; + num++; + ref GatheringNodeGroup reference250 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup102 = new GatheringNodeGroup(); - num2 = 2; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - Span span123 = CollectionsMarshal.AsSpan(list340); - ref GatheringNode reference251 = ref span123[0]; + num3 = 2; + List list340 = new List(num3); + CollectionsMarshal.SetCount(list340, num3); + span4 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + ref GatheringNode reference251 = ref span4[num2]; GatheringNode obj149 = new GatheringNode { DataId = 34815u }; - num3 = 1; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - CollectionsMarshal.AsSpan(list341)[0] = new GatheringLocation + num4 = 1; + List list341 = new List(num4); + CollectionsMarshal.SetCount(list341, num4); + span5 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-276.2859f, -3.218076f, 437.6798f) }; obj149.Locations = list341; reference251 = obj149; - ref GatheringNode reference252 = ref span123[1]; + num2++; + ref GatheringNode reference252 = ref span4[num2]; GatheringNode obj150 = new GatheringNode { DataId = 34816u }; - num3 = 3; - List list342 = new List(num3); - CollectionsMarshal.SetCount(list342, num3); - Span span124 = CollectionsMarshal.AsSpan(list342); - span124[0] = new GatheringLocation + index2 = 3; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span5 = CollectionsMarshal.AsSpan(list342); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-277.8067f, -2.664376f, 433.8469f) }; - span124[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-273.7089f, -2.972111f, 434.3939f) }; - span124[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-281.1727f, -2.682134f, 433.9476f) }; @@ -21263,12 +24941,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list343); + index = 0; + span[index] = "liza"; gatheringRoot31.Author = list343; - num = 1; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.None, null, null, 1188) + index = 1; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + span2 = CollectionsMarshal.AsSpan(list344); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -21276,22 +24958,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list345 = new List(num); CollectionsMarshal.SetCount(list345, num); - Span span125 = CollectionsMarshal.AsSpan(list345); - ref GatheringNodeGroup reference253 = ref span125[0]; + span3 = CollectionsMarshal.AsSpan(list345); + index = 0; + ref GatheringNodeGroup reference253 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup103 = new GatheringNodeGroup(); num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span126 = CollectionsMarshal.AsSpan(list346); - ref GatheringNode reference254 = ref span126[0]; + span4 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + ref GatheringNode reference254 = ref span4[num3]; GatheringNode obj151 = new GatheringNode { DataId = 34821u }; - num3 = 1; - List list347 = new List(num3); - CollectionsMarshal.SetCount(list347, num3); - CollectionsMarshal.AsSpan(list347)[0] = new GatheringLocation + num4 = 1; + List list347 = new List(num4); + CollectionsMarshal.SetCount(list347, num4); + span5 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-114.9673f, 9.311809f, -638.1873f), MinimumAngle = -125, @@ -21299,22 +24985,25 @@ public static class AssemblyGatheringLocationLoader }; obj151.Locations = list347; reference254 = obj151; - ref GatheringNode reference255 = ref span126[1]; + num3++; + ref GatheringNode reference255 = ref span4[num3]; GatheringNode obj152 = new GatheringNode { DataId = 34822u }; - num3 = 2; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - Span span127 = CollectionsMarshal.AsSpan(list348); - span127[0] = new GatheringLocation + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span5 = CollectionsMarshal.AsSpan(list348); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-139.9428f, 17.33419f, -662.0339f), MinimumAngle = -175, MaximumAngle = 10 }; - span127[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-98.84892f, 8.927668f, -645.7149f), MinimumAngle = 165, @@ -21324,28 +25013,32 @@ public static class AssemblyGatheringLocationLoader reference255 = obj152; gatheringNodeGroup103.Nodes = list346; reference253 = gatheringNodeGroup103; - ref GatheringNodeGroup reference256 = ref span125[1]; + index++; + ref GatheringNodeGroup reference256 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup104 = new GatheringNodeGroup(); - num2 = 2; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - Span span128 = CollectionsMarshal.AsSpan(list349); - ref GatheringNode reference257 = ref span128[0]; + num3 = 2; + List list349 = new List(num3); + CollectionsMarshal.SetCount(list349, num3); + span4 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + ref GatheringNode reference257 = ref span4[num2]; GatheringNode obj153 = new GatheringNode { DataId = 34826u }; - num3 = 2; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - Span span129 = CollectionsMarshal.AsSpan(list350); - span129[0] = new GatheringLocation + num4 = 2; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + span5 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(60.64223f, 4.514977f, -535.9874f), MinimumAngle = 20, MaximumAngle = 200 }; - span129[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(22.99263f, 3.71779f, -519.9791f), MinimumAngle = 110, @@ -21353,15 +25046,18 @@ public static class AssemblyGatheringLocationLoader }; obj153.Locations = list350; reference257 = obj153; - ref GatheringNode reference258 = ref span128[1]; + num2++; + ref GatheringNode reference258 = ref span4[num2]; GatheringNode obj154 = new GatheringNode { DataId = 34825u }; - num3 = 1; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = new GatheringLocation + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span5 = CollectionsMarshal.AsSpan(list351); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(56.54757f, 4.987343f, -486.204f), MinimumAngle = 40, @@ -21371,28 +25067,32 @@ public static class AssemblyGatheringLocationLoader reference258 = obj154; gatheringNodeGroup104.Nodes = list349; reference256 = gatheringNodeGroup104; - ref GatheringNodeGroup reference259 = ref span125[2]; + index++; + ref GatheringNodeGroup reference259 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup105 = new GatheringNodeGroup(); num2 = 2; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span130 = CollectionsMarshal.AsSpan(list352); - ref GatheringNode reference260 = ref span130[0]; + span4 = CollectionsMarshal.AsSpan(list352); + num3 = 0; + ref GatheringNode reference260 = ref span4[num3]; GatheringNode obj155 = new GatheringNode { DataId = 34824u }; - num3 = 2; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - Span span131 = CollectionsMarshal.AsSpan(list353); - span131[0] = new GatheringLocation + num4 = 2; + List list353 = new List(num4); + CollectionsMarshal.SetCount(list353, num4); + span5 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(110.7947f, 6.466304f, -633.701f), MinimumAngle = 20, MaximumAngle = 205 }; - span131[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(78.47705f, 8.072021f, -627.9545f), MinimumAngle = 130, @@ -21400,15 +25100,18 @@ public static class AssemblyGatheringLocationLoader }; obj155.Locations = list353; reference260 = obj155; - ref GatheringNode reference261 = ref span130[1]; + num3++; + ref GatheringNode reference261 = ref span4[num3]; GatheringNode obj156 = new GatheringNode { DataId = 34823u }; - num3 = 1; - List list354 = new List(num3); - CollectionsMarshal.SetCount(list354, num3); - CollectionsMarshal.AsSpan(list354)[0] = new GatheringLocation + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span5 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(91.40367f, 7.397814f, -659.1525f), MinimumAngle = -40, @@ -21421,35 +25124,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot31.Groups = list345; AddLocation(986, gatheringRoot31); GatheringRoot gatheringRoot32 = new GatheringRoot(); - num = 1; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + index = 1; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + span = CollectionsMarshal.AsSpan(list355); + num = 0; + span[num] = "liza"; gatheringRoot32.Author = list355; num = 1; List list356 = new List(num); CollectionsMarshal.SetCount(list356, num); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.None, null, null, 1188); + span2 = CollectionsMarshal.AsSpan(list356); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1188); gatheringRoot32.Steps = list356; - num = 3; - List list357 = new List(num); - CollectionsMarshal.SetCount(list357, num); - Span span132 = CollectionsMarshal.AsSpan(list357); - ref GatheringNodeGroup reference262 = ref span132[0]; + index = 3; + List list357 = new List(index); + CollectionsMarshal.SetCount(list357, index); + span3 = CollectionsMarshal.AsSpan(list357); + num = 0; + ref GatheringNodeGroup reference262 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup106 = new GatheringNodeGroup(); - num2 = 2; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span133 = CollectionsMarshal.AsSpan(list358); - ref GatheringNode reference263 = ref span133[0]; + num3 = 2; + List list358 = new List(num3); + CollectionsMarshal.SetCount(list358, num3); + span4 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + ref GatheringNode reference263 = ref span4[num2]; GatheringNode obj157 = new GatheringNode { DataId = 34831u }; - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - CollectionsMarshal.AsSpan(list359)[0] = new GatheringLocation + num4 = 1; + List list359 = new List(num4); + CollectionsMarshal.SetCount(list359, num4); + span5 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(654.7989f, 121.8574f, 518.8689f), MinimumAngle = -65, @@ -21457,22 +25168,25 @@ public static class AssemblyGatheringLocationLoader }; obj157.Locations = list359; reference263 = obj157; - ref GatheringNode reference264 = ref span133[1]; + num2++; + ref GatheringNode reference264 = ref span4[num2]; GatheringNode obj158 = new GatheringNode { DataId = 34832u }; - num3 = 2; - List list360 = new List(num3); - CollectionsMarshal.SetCount(list360, num3); - Span span134 = CollectionsMarshal.AsSpan(list360); - span134[0] = new GatheringLocation + index2 = 2; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span5 = CollectionsMarshal.AsSpan(list360); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(638.961f, 119.4446f, 467.7013f), MinimumAngle = -110, MaximumAngle = 25 }; - span134[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(690.0587f, 115.8617f, 496.8795f), MinimumAngle = 0, @@ -21482,21 +25196,25 @@ public static class AssemblyGatheringLocationLoader reference264 = obj158; gatheringNodeGroup106.Nodes = list358; reference262 = gatheringNodeGroup106; - ref GatheringNodeGroup reference265 = ref span132[1]; + num++; + ref GatheringNodeGroup reference265 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup107 = new GatheringNodeGroup(); num2 = 2; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span135 = CollectionsMarshal.AsSpan(list361); - ref GatheringNode reference266 = ref span135[0]; + span4 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + ref GatheringNode reference266 = ref span4[num3]; GatheringNode obj159 = new GatheringNode { DataId = 34828u }; - num3 = 1; - List list362 = new List(num3); - CollectionsMarshal.SetCount(list362, num3); - CollectionsMarshal.AsSpan(list362)[0] = new GatheringLocation + num4 = 1; + List list362 = new List(num4); + CollectionsMarshal.SetCount(list362, num4); + span5 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(599.3455f, 121.5376f, 694.2341f), MinimumAngle = -125, @@ -21504,15 +25222,18 @@ public static class AssemblyGatheringLocationLoader }; obj159.Locations = list362; reference266 = obj159; - ref GatheringNode reference267 = ref span135[1]; + num3++; + ref GatheringNode reference267 = ref span4[num3]; GatheringNode obj160 = new GatheringNode { DataId = 34827u }; - num3 = 1; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - CollectionsMarshal.AsSpan(list363)[0] = new GatheringLocation + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span5 = CollectionsMarshal.AsSpan(list363); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(600.5253f, 124.8645f, 751.1969f), MinimumAngle = -240, @@ -21522,28 +25243,32 @@ public static class AssemblyGatheringLocationLoader reference267 = obj160; gatheringNodeGroup107.Nodes = list361; reference265 = gatheringNodeGroup107; - ref GatheringNodeGroup reference268 = ref span132[2]; + num++; + ref GatheringNodeGroup reference268 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup108 = new GatheringNodeGroup(); - num2 = 2; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - Span span136 = CollectionsMarshal.AsSpan(list364); - ref GatheringNode reference269 = ref span136[0]; + num3 = 2; + List list364 = new List(num3); + CollectionsMarshal.SetCount(list364, num3); + span4 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + ref GatheringNode reference269 = ref span4[num2]; GatheringNode obj161 = new GatheringNode { DataId = 34830u }; - num3 = 2; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span137 = CollectionsMarshal.AsSpan(list365); - span137[0] = new GatheringLocation + num4 = 2; + List list365 = new List(num4); + CollectionsMarshal.SetCount(list365, num4); + span5 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(762.9977f, 123.3409f, 718.8274f), MinimumAngle = 75, MaximumAngle = 215 }; - span137[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(800.252f, 124.2032f, 656.793f), MinimumAngle = -25, @@ -21551,15 +25276,18 @@ public static class AssemblyGatheringLocationLoader }; obj161.Locations = list365; reference269 = obj161; - ref GatheringNode reference270 = ref span136[1]; + num2++; + ref GatheringNode reference270 = ref span4[num2]; GatheringNode obj162 = new GatheringNode { DataId = 34829u }; - num3 = 1; - List list366 = new List(num3); - CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = new GatheringLocation + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span5 = CollectionsMarshal.AsSpan(list366); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(793.8721f, 127.6419f, 696.0015f), MinimumAngle = 25, @@ -21575,12 +25303,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - CollectionsMarshal.AsSpan(list367)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list367); + index = 0; + span[index] = "liza"; gatheringRoot33.Author = list367; - num = 1; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list368 = new List(index); + CollectionsMarshal.SetCount(list368, index); + span2 = CollectionsMarshal.AsSpan(list368); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -21588,29 +25320,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - Span span138 = CollectionsMarshal.AsSpan(list369); - ref GatheringNodeGroup reference271 = ref span138[0]; + span3 = CollectionsMarshal.AsSpan(list369); + index = 0; + ref GatheringNodeGroup reference271 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup109 = new GatheringNodeGroup(); num2 = 2; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span139 = CollectionsMarshal.AsSpan(list370); - ref GatheringNode reference272 = ref span139[0]; + span4 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + ref GatheringNode reference272 = ref span4[num3]; GatheringNode obj163 = new GatheringNode { DataId = 34836u }; - num3 = 2; - List list371 = new List(num3); - CollectionsMarshal.SetCount(list371, num3); - Span span140 = CollectionsMarshal.AsSpan(list371); - span140[0] = new GatheringLocation + num4 = 2; + List list371 = new List(num4); + CollectionsMarshal.SetCount(list371, num4); + span5 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(70.75072f, -156.9112f, -15.01749f), MinimumAngle = 125, MaximumAngle = 320 }; - span140[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(49.44211f, -157.3086f, -8.53495f), MinimumAngle = 45, @@ -21618,15 +25354,18 @@ public static class AssemblyGatheringLocationLoader }; obj163.Locations = list371; reference272 = obj163; - ref GatheringNode reference273 = ref span139[1]; + num3++; + ref GatheringNode reference273 = ref span4[num3]; GatheringNode obj164 = new GatheringNode { DataId = 34835u }; - num3 = 1; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = new GatheringLocation + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span5 = CollectionsMarshal.AsSpan(list372); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(56.47234f, -157.5328f, -17.13855f), MinimumAngle = 105, @@ -21636,28 +25375,32 @@ public static class AssemblyGatheringLocationLoader reference273 = obj164; gatheringNodeGroup109.Nodes = list370; reference271 = gatheringNodeGroup109; - ref GatheringNodeGroup reference274 = ref span138[1]; + index++; + ref GatheringNodeGroup reference274 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup110 = new GatheringNodeGroup(); - num2 = 2; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span141 = CollectionsMarshal.AsSpan(list373); - ref GatheringNode reference275 = ref span141[0]; + num3 = 2; + List list373 = new List(num3); + CollectionsMarshal.SetCount(list373, num3); + span4 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref GatheringNode reference275 = ref span4[num2]; GatheringNode obj165 = new GatheringNode { DataId = 34838u }; - num3 = 2; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - Span span142 = CollectionsMarshal.AsSpan(list374); - span142[0] = new GatheringLocation + num4 = 2; + List list374 = new List(num4); + CollectionsMarshal.SetCount(list374, num4); + span5 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-146.5889f, -142.4388f, 111.3271f), MinimumAngle = 95, MaximumAngle = 260 }; - span142[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-132.7688f, -145.5672f, 122.179f), MinimumAngle = 175, @@ -21667,15 +25410,18 @@ public static class AssemblyGatheringLocationLoader }; obj165.Locations = list374; reference275 = obj165; - ref GatheringNode reference276 = ref span141[1]; + num2++; + ref GatheringNode reference276 = ref span4[num2]; GatheringNode obj166 = new GatheringNode { DataId = 34837u }; - num3 = 1; - List list375 = new List(num3); - CollectionsMarshal.SetCount(list375, num3); - CollectionsMarshal.AsSpan(list375)[0] = new GatheringLocation + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + span5 = CollectionsMarshal.AsSpan(list375); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-138.1429f, -143.8643f, 114.8867f), MinimumAngle = 150, @@ -21685,21 +25431,25 @@ public static class AssemblyGatheringLocationLoader reference276 = obj166; gatheringNodeGroup110.Nodes = list373; reference274 = gatheringNodeGroup110; - ref GatheringNodeGroup reference277 = ref span138[2]; + index++; + ref GatheringNodeGroup reference277 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup111 = new GatheringNodeGroup(); num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span143 = CollectionsMarshal.AsSpan(list376); - ref GatheringNode reference278 = ref span143[0]; + span4 = CollectionsMarshal.AsSpan(list376); + num3 = 0; + ref GatheringNode reference278 = ref span4[num3]; GatheringNode obj167 = new GatheringNode { DataId = 34833u }; - num3 = 1; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - CollectionsMarshal.AsSpan(list377)[0] = new GatheringLocation + num4 = 1; + List list377 = new List(num4); + CollectionsMarshal.SetCount(list377, num4); + span5 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-33.75101f, -160.675f, -94.77893f), MinimumAngle = -45, @@ -21707,22 +25457,25 @@ public static class AssemblyGatheringLocationLoader }; obj167.Locations = list377; reference278 = obj167; - ref GatheringNode reference279 = ref span143[1]; + num3++; + ref GatheringNode reference279 = ref span4[num3]; GatheringNode obj168 = new GatheringNode { DataId = 34834u }; - num3 = 2; - List list378 = new List(num3); - CollectionsMarshal.SetCount(list378, num3); - Span span144 = CollectionsMarshal.AsSpan(list378); - span144[0] = new GatheringLocation + index2 = 2; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + span5 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-38.13882f, -159.4724f, -105.7621f), MinimumAngle = 10, MaximumAngle = 170 }; - span144[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-22.27635f, -161.6958f, -92.39622f), MinimumAngle = -80, @@ -21735,63 +25488,75 @@ public static class AssemblyGatheringLocationLoader gatheringRoot33.Groups = list369; AddLocation(988, gatheringRoot33); GatheringRoot gatheringRoot34 = new GatheringRoot(); - num = 1; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - CollectionsMarshal.AsSpan(list379)[0] = "liza"; + index = 1; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + span = CollectionsMarshal.AsSpan(list379); + num = 0; + span[num] = "liza"; gatheringRoot34.Author = list379; num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + span2 = CollectionsMarshal.AsSpan(list380); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot34.Steps = list380; - num = 3; - List list381 = new List(num); - CollectionsMarshal.SetCount(list381, num); - Span span145 = CollectionsMarshal.AsSpan(list381); - ref GatheringNodeGroup reference280 = ref span145[0]; + index = 3; + List list381 = new List(index); + CollectionsMarshal.SetCount(list381, index); + span3 = CollectionsMarshal.AsSpan(list381); + num = 0; + ref GatheringNodeGroup reference280 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup112 = new GatheringNodeGroup(); - num2 = 2; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - Span span146 = CollectionsMarshal.AsSpan(list382); - ref GatheringNode reference281 = ref span146[0]; + num3 = 2; + List list382 = new List(num3); + CollectionsMarshal.SetCount(list382, num3); + span4 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + ref GatheringNode reference281 = ref span4[num2]; GatheringNode obj169 = new GatheringNode { DataId = 34857u }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - CollectionsMarshal.AsSpan(list383)[0] = new GatheringLocation + num4 = 1; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + span5 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-12.48859f, -133.2091f, -427.7497f) }; obj169.Locations = list383; reference281 = obj169; - ref GatheringNode reference282 = ref span146[1]; + num2++; + ref GatheringNode reference282 = ref span4[num2]; GatheringNode obj170 = new GatheringNode { DataId = 34858u }; - num3 = 3; - List list384 = new List(num3); - CollectionsMarshal.SetCount(list384, num3); - Span span147 = CollectionsMarshal.AsSpan(list384); - span147[0] = new GatheringLocation + index2 = 3; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + span5 = CollectionsMarshal.AsSpan(list384); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-22.41956f, -129.3952f, -396.6573f) }; - span147[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-16.08351f, -137.6674f, -464.35f), MinimumAngle = -65, MaximumAngle = 145 }; - span147[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-9.000858f, -134.9256f, -439.0332f), MinimumAngle = -125, @@ -21801,21 +25566,25 @@ public static class AssemblyGatheringLocationLoader reference282 = obj170; gatheringNodeGroup112.Nodes = list382; reference280 = gatheringNodeGroup112; - ref GatheringNodeGroup reference283 = ref span145[1]; + num++; + ref GatheringNodeGroup reference283 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup113 = new GatheringNodeGroup(); num2 = 2; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span148 = CollectionsMarshal.AsSpan(list385); - ref GatheringNode reference284 = ref span148[0]; + span4 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + ref GatheringNode reference284 = ref span4[num3]; GatheringNode obj171 = new GatheringNode { DataId = 34861u }; - num3 = 1; - List list386 = new List(num3); - CollectionsMarshal.SetCount(list386, num3); - CollectionsMarshal.AsSpan(list386)[0] = new GatheringLocation + num4 = 1; + List list386 = new List(num4); + CollectionsMarshal.SetCount(list386, num4); + span5 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-234.8222f, -99.01237f, -376.7287f), MinimumAngle = -180, @@ -21823,28 +25592,32 @@ public static class AssemblyGatheringLocationLoader }; obj171.Locations = list386; reference284 = obj171; - ref GatheringNode reference285 = ref span148[1]; + num3++; + ref GatheringNode reference285 = ref span4[num3]; GatheringNode obj172 = new GatheringNode { DataId = 34862u }; - num3 = 3; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span149 = CollectionsMarshal.AsSpan(list387); - span149[0] = new GatheringLocation + index2 = 3; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + span5 = CollectionsMarshal.AsSpan(list387); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-236.0182f, -97.50027f, -372.1523f), MinimumAngle = -180, MaximumAngle = 45 }; - span149[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-249.7221f, -96.55618f, -386.2397f), MinimumAngle = 35, MaximumAngle = 280 }; - span149[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-241.8424f, -99.37369f, -386.2889f), MinimumAngle = -300, @@ -21854,32 +25627,37 @@ public static class AssemblyGatheringLocationLoader reference285 = obj172; gatheringNodeGroup113.Nodes = list385; reference283 = gatheringNodeGroup113; - ref GatheringNodeGroup reference286 = ref span145[2]; + num++; + ref GatheringNodeGroup reference286 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup114 = new GatheringNodeGroup(); - num2 = 2; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span150 = CollectionsMarshal.AsSpan(list388); - ref GatheringNode reference287 = ref span150[0]; + num3 = 2; + List list388 = new List(num3); + CollectionsMarshal.SetCount(list388, num3); + span4 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + ref GatheringNode reference287 = ref span4[num2]; GatheringNode obj173 = new GatheringNode { DataId = 34860u }; - num3 = 3; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - Span span151 = CollectionsMarshal.AsSpan(list389); - span151[0] = new GatheringLocation + num4 = 3; + List list389 = new List(num4); + CollectionsMarshal.SetCount(list389, num4); + span5 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-169.8177f, -85.61841f, -240.1007f) }; - span151[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-116.6446f, -93.99508f, -274.6102f), MinimumAngle = -140, MaximumAngle = 150 }; - span151[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-133.936f, -91.54122f, -273.3963f), MinimumAngle = -155, @@ -21887,15 +25665,18 @@ public static class AssemblyGatheringLocationLoader }; obj173.Locations = list389; reference287 = obj173; - ref GatheringNode reference288 = ref span150[1]; + num2++; + ref GatheringNode reference288 = ref span4[num2]; GatheringNode obj174 = new GatheringNode { DataId = 34859u }; - num3 = 1; - List list390 = new List(num3); - CollectionsMarshal.SetCount(list390, num3); - CollectionsMarshal.AsSpan(list390)[0] = new GatheringLocation + index2 = 1; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + span5 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-131.9198f, -89.88039f, -249.5422f) }; @@ -21909,12 +25690,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list391 = new List(num); CollectionsMarshal.SetCount(list391, num); - CollectionsMarshal.AsSpan(list391)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list391); + index = 0; + span[index] = "liza"; gatheringRoot35.Author = list391; - num = 1; - List list392 = new List(num); - CollectionsMarshal.SetCount(list392, num); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + index = 1; + List list392 = new List(index); + CollectionsMarshal.SetCount(list392, index); + span2 = CollectionsMarshal.AsSpan(list392); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -21922,49 +25707,57 @@ public static class AssemblyGatheringLocationLoader num = 3; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - Span span152 = CollectionsMarshal.AsSpan(list393); - ref GatheringNodeGroup reference289 = ref span152[0]; + span3 = CollectionsMarshal.AsSpan(list393); + index = 0; + ref GatheringNodeGroup reference289 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup115 = new GatheringNodeGroup(); num2 = 2; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span153 = CollectionsMarshal.AsSpan(list394); - ref GatheringNode reference290 = ref span153[0]; + span4 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + ref GatheringNode reference290 = ref span4[num3]; GatheringNode obj175 = new GatheringNode { DataId = 34866u }; - num3 = 3; - List list395 = new List(num3); - CollectionsMarshal.SetCount(list395, num3); - Span span154 = CollectionsMarshal.AsSpan(list395); - span154[0] = new GatheringLocation + num4 = 3; + List list395 = new List(num4); + CollectionsMarshal.SetCount(list395, num4); + span5 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(242.7737f, -135.9734f, -431.2313f), MinimumAngle = -55, MaximumAngle = 100 }; - span154[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(302.1836f, -135.4149f, -359.7965f), MinimumAngle = 5, MaximumAngle = 155 }; - span154[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(256.1657f, -135.744f, -414.7577f) }; obj175.Locations = list395; reference290 = obj175; - ref GatheringNode reference291 = ref span153[1]; + num3++; + ref GatheringNode reference291 = ref span4[num3]; GatheringNode obj176 = new GatheringNode { DataId = 34865u }; - num3 = 1; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = new GatheringLocation + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + span5 = CollectionsMarshal.AsSpan(list396); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(269.7338f, -134.0488f, -381.6242f), MinimumAngle = -85, @@ -21974,34 +25767,39 @@ public static class AssemblyGatheringLocationLoader reference291 = obj176; gatheringNodeGroup115.Nodes = list394; reference289 = gatheringNodeGroup115; - ref GatheringNodeGroup reference292 = ref span152[1]; + index++; + ref GatheringNodeGroup reference292 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup116 = new GatheringNodeGroup(); - num2 = 2; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - Span span155 = CollectionsMarshal.AsSpan(list397); - ref GatheringNode reference293 = ref span155[0]; + num3 = 2; + List list397 = new List(num3); + CollectionsMarshal.SetCount(list397, num3); + span4 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + ref GatheringNode reference293 = ref span4[num2]; GatheringNode obj177 = new GatheringNode { DataId = 34868u }; - num3 = 3; - List list398 = new List(num3); - CollectionsMarshal.SetCount(list398, num3); - Span span156 = CollectionsMarshal.AsSpan(list398); - span156[0] = new GatheringLocation + num4 = 3; + List list398 = new List(num4); + CollectionsMarshal.SetCount(list398, num4); + span5 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(389.1952f, -154.3099f, -368.3658f), MinimumAngle = 105, MaximumAngle = 345 }; - span156[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(401.9319f, -150.0004f, -408.114f), MinimumAngle = -70, MaximumAngle = 85 }; - span156[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(406.1098f, -152.2166f, -364.7227f), MinimumAngle = -210, @@ -22009,15 +25807,18 @@ public static class AssemblyGatheringLocationLoader }; obj177.Locations = list398; reference293 = obj177; - ref GatheringNode reference294 = ref span155[1]; + num2++; + ref GatheringNode reference294 = ref span4[num2]; GatheringNode obj178 = new GatheringNode { DataId = 34867u }; - num3 = 1; - List list399 = new List(num3); - CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new GatheringLocation + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span5 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(399.1297f, -152.1141f, -394.71f), MinimumAngle = 120, @@ -22027,44 +25828,52 @@ public static class AssemblyGatheringLocationLoader reference294 = obj178; gatheringNodeGroup116.Nodes = list397; reference292 = gatheringNodeGroup116; - ref GatheringNodeGroup reference295 = ref span152[2]; + index++; + ref GatheringNodeGroup reference295 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup117 = new GatheringNodeGroup(); num2 = 2; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span157 = CollectionsMarshal.AsSpan(list400); - ref GatheringNode reference296 = ref span157[0]; + span4 = CollectionsMarshal.AsSpan(list400); + num3 = 0; + ref GatheringNode reference296 = ref span4[num3]; GatheringNode obj179 = new GatheringNode { DataId = 34864u }; - num3 = 3; - List list401 = new List(num3); - CollectionsMarshal.SetCount(list401, num3); - Span span158 = CollectionsMarshal.AsSpan(list401); - span158[0] = new GatheringLocation + num4 = 3; + List list401 = new List(num4); + CollectionsMarshal.SetCount(list401, num4); + span5 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(359.517f, -161.1972f, -644.0471f) }; - span158[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(307.4235f, -159.1669f, -622.6444f) }; - span158[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(348.5925f, -165.3805f, -671.4193f) }; obj179.Locations = list401; reference296 = obj179; - ref GatheringNode reference297 = ref span157[1]; + num3++; + ref GatheringNode reference297 = ref span4[num3]; GatheringNode obj180 = new GatheringNode { DataId = 34863u }; - num3 = 1; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - CollectionsMarshal.AsSpan(list402)[0] = new GatheringLocation + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + span5 = CollectionsMarshal.AsSpan(list402); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(323.8758f, -162.9682f, -648.8156f) }; @@ -22075,63 +25884,75 @@ public static class AssemblyGatheringLocationLoader gatheringRoot35.Groups = list393; AddLocation(993, gatheringRoot35); GatheringRoot gatheringRoot36 = new GatheringRoot(); - num = 1; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + index = 1; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + span = CollectionsMarshal.AsSpan(list403); + num = 0; + span[num] = "liza"; gatheringRoot36.Author = list403; num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + span2 = CollectionsMarshal.AsSpan(list404); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; gatheringRoot36.Steps = list404; - num = 3; - List list405 = new List(num); - CollectionsMarshal.SetCount(list405, num); - Span span159 = CollectionsMarshal.AsSpan(list405); - ref GatheringNodeGroup reference298 = ref span159[0]; + index = 3; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + span3 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref GatheringNodeGroup reference298 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup118 = new GatheringNodeGroup(); - num2 = 2; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - Span span160 = CollectionsMarshal.AsSpan(list406); - ref GatheringNode reference299 = ref span160[0]; + num3 = 2; + List list406 = new List(num3); + CollectionsMarshal.SetCount(list406, num3); + span4 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + ref GatheringNode reference299 = ref span4[num2]; GatheringNode obj181 = new GatheringNode { DataId = 34869u }; - num3 = 1; - List list407 = new List(num3); - CollectionsMarshal.SetCount(list407, num3); - CollectionsMarshal.AsSpan(list407)[0] = new GatheringLocation + num4 = 1; + List list407 = new List(num4); + CollectionsMarshal.SetCount(list407, num4); + span5 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-604.6953f, 59.64062f, 5.50073f) }; obj181.Locations = list407; reference299 = obj181; - ref GatheringNode reference300 = ref span160[1]; + num2++; + ref GatheringNode reference300 = ref span4[num2]; GatheringNode obj182 = new GatheringNode { DataId = 34870u }; - num3 = 3; - List list408 = new List(num3); - CollectionsMarshal.SetCount(list408, num3); - Span span161 = CollectionsMarshal.AsSpan(list408); - span161[0] = new GatheringLocation + index2 = 3; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span5 = CollectionsMarshal.AsSpan(list408); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-618.7993f, 59.13951f, 17.80936f) }; - span161[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-615.0759f, 59.08474f, -4.837158f), MinimumAngle = 115, MaximumAngle = 325 }; - span161[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(-593.0486f, 60.01728f, 15.20686f) }; @@ -22139,30 +25960,35 @@ public static class AssemblyGatheringLocationLoader reference300 = obj182; gatheringNodeGroup118.Nodes = list406; reference298 = gatheringNodeGroup118; - ref GatheringNodeGroup reference301 = ref span159[1]; + num++; + ref GatheringNodeGroup reference301 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup119 = new GatheringNodeGroup(); num2 = 2; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span162 = CollectionsMarshal.AsSpan(list409); - ref GatheringNode reference302 = ref span162[0]; + span4 = CollectionsMarshal.AsSpan(list409); + num3 = 0; + ref GatheringNode reference302 = ref span4[num3]; GatheringNode obj183 = new GatheringNode { DataId = 34872u }; - num3 = 3; - List list410 = new List(num3); - CollectionsMarshal.SetCount(list410, num3); - Span span163 = CollectionsMarshal.AsSpan(list410); - span163[0] = new GatheringLocation + num4 = 3; + List list410 = new List(num4); + CollectionsMarshal.SetCount(list410, num4); + span5 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-812.0394f, 55.42165f, 118.3947f) }; - span163[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-821.9205f, 56.51463f, 121.8448f) }; - span163[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-837.9932f, 57.59847f, 104.7306f), MinimumAngle = -100, @@ -22170,15 +25996,18 @@ public static class AssemblyGatheringLocationLoader }; obj183.Locations = list410; reference302 = obj183; - ref GatheringNode reference303 = ref span162[1]; + num3++; + ref GatheringNode reference303 = ref span4[num3]; GatheringNode obj184 = new GatheringNode { DataId = 34871u }; - num3 = 1; - List list411 = new List(num3); - CollectionsMarshal.SetCount(list411, num3); - CollectionsMarshal.AsSpan(list411)[0] = new GatheringLocation + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span5 = CollectionsMarshal.AsSpan(list411); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-818.8149f, 55.11676f, 112.5509f) }; @@ -22186,48 +26015,56 @@ public static class AssemblyGatheringLocationLoader reference303 = obj184; gatheringNodeGroup119.Nodes = list409; reference301 = gatheringNodeGroup119; - ref GatheringNodeGroup reference304 = ref span159[2]; + num++; + ref GatheringNodeGroup reference304 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup120 = new GatheringNodeGroup(); - num2 = 2; - List list412 = new List(num2); - CollectionsMarshal.SetCount(list412, num2); - Span span164 = CollectionsMarshal.AsSpan(list412); - ref GatheringNode reference305 = ref span164[0]; + num3 = 2; + List list412 = new List(num3); + CollectionsMarshal.SetCount(list412, num3); + span4 = CollectionsMarshal.AsSpan(list412); + num2 = 0; + ref GatheringNode reference305 = ref span4[num2]; GatheringNode obj185 = new GatheringNode { DataId = 34874u }; - num3 = 3; - List list413 = new List(num3); - CollectionsMarshal.SetCount(list413, num3); - Span span165 = CollectionsMarshal.AsSpan(list413); - span165[0] = new GatheringLocation + num4 = 3; + List list413 = new List(num4); + CollectionsMarshal.SetCount(list413, num4); + span5 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-672.2305f, 76.87632f, 257.5817f), MinimumAngle = 85, MaximumAngle = 265 }; - span165[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-625.6287f, 71.04436f, 234.6465f), MinimumAngle = -95, MaximumAngle = 140 }; - span165[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(-635.3436f, 74.07207f, 244.9178f) }; obj185.Locations = list413; reference305 = obj185; - ref GatheringNode reference306 = ref span164[1]; + num2++; + ref GatheringNode reference306 = ref span4[num2]; GatheringNode obj186 = new GatheringNode { DataId = 34873u }; - num3 = 1; - List list414 = new List(num3); - CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = new GatheringLocation + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + span5 = CollectionsMarshal.AsSpan(list414); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(-654.1213f, 74.65144f, 254.1959f) }; @@ -22241,12 +26078,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - CollectionsMarshal.AsSpan(list415)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list415); + index = 0; + span[index] = "liza"; gatheringRoot37.Author = list415; - num = 1; - List list416 = new List(num); - CollectionsMarshal.SetCount(list416, num); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.None, null, null, 1190) + index = 1; + List list416 = new List(index); + CollectionsMarshal.SetCount(list416, index); + span2 = CollectionsMarshal.AsSpan(list416); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; @@ -22254,45 +26095,53 @@ public static class AssemblyGatheringLocationLoader num = 3; List list417 = new List(num); CollectionsMarshal.SetCount(list417, num); - Span span166 = CollectionsMarshal.AsSpan(list417); - ref GatheringNodeGroup reference307 = ref span166[0]; + span3 = CollectionsMarshal.AsSpan(list417); + index = 0; + ref GatheringNodeGroup reference307 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup121 = new GatheringNodeGroup(); num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span167 = CollectionsMarshal.AsSpan(list418); - ref GatheringNode reference308 = ref span167[0]; + span4 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + ref GatheringNode reference308 = ref span4[num3]; GatheringNode obj187 = new GatheringNode { DataId = 34901u }; - num3 = 1; - List list419 = new List(num3); - CollectionsMarshal.SetCount(list419, num3); - CollectionsMarshal.AsSpan(list419)[0] = new GatheringLocation + num4 = 1; + List list419 = new List(num4); + CollectionsMarshal.SetCount(list419, num4); + span5 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(343.0447f, 0.1167868f, 146.4354f) }; obj187.Locations = list419; reference308 = obj187; - ref GatheringNode reference309 = ref span167[1]; + num3++; + ref GatheringNode reference309 = ref span4[num3]; GatheringNode obj188 = new GatheringNode { DataId = 34902u }; - num3 = 3; - List list420 = new List(num3); - CollectionsMarshal.SetCount(list420, num3); - Span span168 = CollectionsMarshal.AsSpan(list420); - span168[0] = new GatheringLocation + index2 = 3; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + span5 = CollectionsMarshal.AsSpan(list420); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(350.1042f, -2.02238f, 133.0248f) }; - span168[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(349.9641f, 2.9944f, 166.7519f) }; - span168[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(358.951f, 1.226612f, 152.3553f) }; @@ -22300,44 +26149,52 @@ public static class AssemblyGatheringLocationLoader reference309 = obj188; gatheringNodeGroup121.Nodes = list418; reference307 = gatheringNodeGroup121; - ref GatheringNodeGroup reference310 = ref span166[1]; + index++; + ref GatheringNodeGroup reference310 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup122 = new GatheringNodeGroup(); - num2 = 2; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - Span span169 = CollectionsMarshal.AsSpan(list421); - ref GatheringNode reference311 = ref span169[0]; + num3 = 2; + List list421 = new List(num3); + CollectionsMarshal.SetCount(list421, num3); + span4 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + ref GatheringNode reference311 = ref span4[num2]; GatheringNode obj189 = new GatheringNode { DataId = 34903u }; - num3 = 1; - List list422 = new List(num3); - CollectionsMarshal.SetCount(list422, num3); - CollectionsMarshal.AsSpan(list422)[0] = new GatheringLocation + num4 = 1; + List list422 = new List(num4); + CollectionsMarshal.SetCount(list422, num4); + span5 = CollectionsMarshal.AsSpan(list422); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(530.04f, 6.585761f, 243.3026f) }; obj189.Locations = list422; reference311 = obj189; - ref GatheringNode reference312 = ref span169[1]; + num2++; + ref GatheringNode reference312 = ref span4[num2]; GatheringNode obj190 = new GatheringNode { DataId = 34904u }; - num3 = 3; - List list423 = new List(num3); - CollectionsMarshal.SetCount(list423, num3); - Span span170 = CollectionsMarshal.AsSpan(list423); - span170[0] = new GatheringLocation + index2 = 3; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + span5 = CollectionsMarshal.AsSpan(list423); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(534.63f, 7.40439f, 261.0851f) }; - span170[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(537.3219f, 6.59951f, 234.4762f) }; - span170[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(510.6736f, 5.43621f, 247.2418f), MinimumAngle = -135, @@ -22347,44 +26204,52 @@ public static class AssemblyGatheringLocationLoader reference312 = obj190; gatheringNodeGroup122.Nodes = list421; reference310 = gatheringNodeGroup122; - ref GatheringNodeGroup reference313 = ref span166[2]; + index++; + ref GatheringNodeGroup reference313 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup123 = new GatheringNodeGroup(); num2 = 2; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span171 = CollectionsMarshal.AsSpan(list424); - ref GatheringNode reference314 = ref span171[0]; + span4 = CollectionsMarshal.AsSpan(list424); + num3 = 0; + ref GatheringNode reference314 = ref span4[num3]; GatheringNode obj191 = new GatheringNode { DataId = 34900u }; - num3 = 3; - List list425 = new List(num3); - CollectionsMarshal.SetCount(list425, num3); - Span span172 = CollectionsMarshal.AsSpan(list425); - span172[0] = new GatheringLocation + num4 = 3; + List list425 = new List(num4); + CollectionsMarshal.SetCount(list425, num4); + span5 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(571.4374f, 5.934396f, 93.85439f) }; - span172[1] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(580.9511f, 4.927295f, 64.64209f) }; - span172[2] = new GatheringLocation + index2++; + span5[index2] = new GatheringLocation { Position = new Vector3(595.0986f, 9.620093f, 81.96783f) }; obj191.Locations = list425; reference314 = obj191; - ref GatheringNode reference315 = ref span171[1]; + num3++; + ref GatheringNode reference315 = ref span4[num3]; GatheringNode obj192 = new GatheringNode { DataId = 34899u }; - num3 = 1; - List list426 = new List(num3); - CollectionsMarshal.SetCount(list426, num3); - CollectionsMarshal.AsSpan(list426)[0] = new GatheringLocation + index2 = 1; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + span5 = CollectionsMarshal.AsSpan(list426); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(578.6227f, 5.976591f, 76.53668f) }; @@ -22402,12 +26267,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -22415,31 +26284,36 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 34906u }; - int num3 = 3; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new GatheringLocation + int num4 = 3; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(236.4964f, -5.339633f, -346.5587f) }; - span3[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(252.2469f, -4.50562f, -352.3626f) }; - span3[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(270.0348f, 4.734006f, -370.3f), MinimumAngle = -5, @@ -22447,15 +26321,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 34905u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + span5 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(291.2657f, 16.76923f, -372.8286f) }; @@ -22463,21 +26340,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span4 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span4[num2]; GatheringNode obj3 = new GatheringNode { DataId = 34909u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(452.2735f, 19.0634f, -350.683f), MinimumAngle = -55, @@ -22485,24 +26366,28 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 34910u }; - num3 = 3; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new GatheringLocation + num5 = 3; + List list9 = new List(num5); + CollectionsMarshal.SetCount(list9, num5); + span5 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(451.7433f, 18.42068f, -333.2723f) }; - span5[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(425.1651f, 19.24389f, -388.6381f) }; - span5[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(425.4706f, 18.96692f, -371.645f), MinimumAngle = -190, @@ -22512,44 +26397,52 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span4[num3]; GatheringNode obj5 = new GatheringNode { DataId = 34908u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span5 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(268.0552f, -4.003453f, -173.8766f) }; - span7[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(244.3824f, -8.541841f, -212.8872f) }; - span7[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(236.6972f, -13.99463f, -189.6181f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span4[num3]; GatheringNode obj6 = new GatheringNode { DataId = 34907u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(269.0605f, -6.302063f, -193.4243f) }; @@ -22560,16 +26453,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1000, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span = CollectionsMarshal.AsSpan(list13); + num = 0; + span[num] = "liza"; gatheringRoot2.Author = list13; num = 3; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) + span2 = CollectionsMarshal.AsSpan(list14); + index = 0; + span2[index] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -22584,7 +26480,8 @@ public static class AssemblyGatheringLocationLoader } } }; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) + index++; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -22595,54 +26492,63 @@ public static class AssemblyGatheringLocationLoader } } }; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) + index++; + span2[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) { DisableNavmesh = true, Fly = true }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span9 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span9[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span3 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span10 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span10[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span4 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span4[num2]; GatheringNode obj7 = new GatheringNode { DataId = 34912u }; - num3 = 3; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span11 = CollectionsMarshal.AsSpan(list17); - span11[0] = new GatheringLocation + num4 = 3; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(458.8916f, -51.02777f, -689.8627f) }; - span11[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(430.228f, -56.21914f, -693.9346f) }; - span11[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(462.8787f, -58.29268f, -704.244f) }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span10[1]; + num2++; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 34911u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span5 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(448.169f, -53.1458f, -696.1208f) }; @@ -22650,44 +26556,52 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span9[1]; + num++; + ref GatheringNodeGroup reference13 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span12 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span12[0]; + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span4[num3]; GatheringNode obj9 = new GatheringNode { DataId = 34914u }; - num3 = 3; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span13 = CollectionsMarshal.AsSpan(list20); - span13[0] = new GatheringLocation + num4 = 3; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span5 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(453.7438f, -59.20442f, -884.0787f) }; - span13[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(399.0516f, -48.41589f, -900.1575f) }; - span13[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(470.4918f, -54.81378f, -912.1257f) }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span12[1]; + num3++; + ref GatheringNode reference15 = ref span4[num3]; GatheringNode obj10 = new GatheringNode { DataId = 34913u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + num5 = 1; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + span5 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(433.2036f, -56.63199f, -898.0532f) }; @@ -22695,44 +26609,52 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span9[2]; + num++; + ref GatheringNodeGroup reference16 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span14 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span14[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span4 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span4[num2]; GatheringNode obj11 = new GatheringNode { DataId = 34915u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span5 = CollectionsMarshal.AsSpan(list23); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(263.8979f, -44.71192f, -873.9875f) }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span14[1]; + num2++; + ref GatheringNode reference18 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 34916u }; - num3 = 3; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span15 = CollectionsMarshal.AsSpan(list24); - span15[0] = new GatheringLocation + num5 = 3; + List list24 = new List(num5); + CollectionsMarshal.SetCount(list24, num5); + span5 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(287.7073f, -43.04572f, -886.5245f) }; - span15[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(266.3744f, -47.55014f, -846.1501f) }; - span15[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(259.2106f, -44.82758f, -817.9664f) }; @@ -22746,55 +26668,67 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 1190); + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1190); gatheringRoot3.Steps = list26; num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span16 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span17 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span17[0]; + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span4[num3]; GatheringNode obj13 = new GatheringNode { DataId = 34920u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span18 = CollectionsMarshal.AsSpan(list29); - span18[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span5 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(192.6021f, 12.31054f, 631.2545f) }; - span18[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(194.8373f, 12.50387f, 646.5401f) }; - span18[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(180.8447f, 12.43262f, 610.7131f) }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span17[1]; + num3++; + ref GatheringNode reference21 = ref span4[num3]; GatheringNode obj14 = new GatheringNode { DataId = 34919u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + num5 = 1; + List list30 = new List(num5); + CollectionsMarshal.SetCount(list30, num5); + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(186.171f, 12.54104f, 634.9042f) }; @@ -22802,44 +26736,52 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span16[1]; + index++; + ref GatheringNodeGroup reference22 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span19 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span19[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span4[num2]; GatheringNode obj15 = new GatheringNode { DataId = 34917u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span5 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(39.45634f, -0.06042051f, 502.3853f) }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span19[1]; + num2++; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 34918u }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = new GatheringLocation + num5 = 3; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + span5 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(46.03248f, -0.7049216f, 491.6059f) }; - span20[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(36.15481f, -0.0501074f, 505.9388f) }; - span20[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(24.72226f, 0.5922582f, 528.0809f) }; @@ -22847,44 +26789,52 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span16[2]; + index++; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span21 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span21[0]; + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span4[num3]; GatheringNode obj17 = new GatheringNode { DataId = 34922u }; - num3 = 3; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = new GatheringLocation + num4 = 3; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(2.302937f, -4.586716f, 687.4797f) }; - span22[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(30.02284f, -2.447479f, 704.4326f) }; - span22[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(41.59287f, -0.8454803f, 692.0099f) }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span21[1]; + num3++; + ref GatheringNode reference27 = ref span4[num3]; GatheringNode obj18 = new GatheringNode { DataId = 34921u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + num5 = 1; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + span5 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(18.47237f, -2.987581f, 690.8011f) }; @@ -22902,23 +26852,30 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot.Steps = list2; num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 35244u @@ -22926,7 +26883,9 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(89.145f, -188.3096f, 261.9594f), MinimumAngle = -160, @@ -22936,20 +26895,25 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span4 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span4[num2]; GatheringNode obj2 = new GatheringNode { DataId = 35243u }; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new GatheringLocation + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(86.21152f, -188.234f, 255.0701f), MinimumAngle = -190, @@ -22959,12 +26923,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + span4 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span4[index2]; GatheringNode obj3 = new GatheringNode { DataId = 35245u @@ -22972,7 +26939,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(81.46383f, -187.1622f, 251.1194f), MinimumAngle = -185, @@ -22985,34 +26954,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1194, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "Theo"; + index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span = CollectionsMarshal.AsSpan(list10); + num = 0; + span[num] = "Theo"; gatheringRoot2.Author = list10; num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + span2 = CollectionsMarshal.AsSpan(list11); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot2.Steps = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref GatheringNodeGroup reference7 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span3 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref GatheringNodeGroup reference7 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span4 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref GatheringNode reference8 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 35246u }; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new GatheringLocation + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + span5 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-664.2164f, -174.1682f, 370.6607f), MinimumAngle = -230, @@ -23022,12 +27000,15 @@ public static class AssemblyGatheringLocationLoader reference8 = obj4; gatheringNodeGroup4.Nodes = list13; reference7 = gatheringNodeGroup4; - ref GatheringNodeGroup reference9 = ref span2[1]; + num++; + ref GatheringNodeGroup reference9 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + span4 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span4[index2]; GatheringNode obj5 = new GatheringNode { DataId = 35247u @@ -23035,7 +27016,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-646.3196f, -171.4666f, 393.6898f), MinimumAngle = 30, @@ -23045,20 +27028,25 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span2[2]; + num++; + ref GatheringNodeGroup reference11 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span4 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj6 = new GatheringNode { DataId = 35248u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-669.3735f, -177.0724f, 354.7159f), MinimumAngle = -225, @@ -23074,23 +27062,30 @@ public static class AssemblyGatheringLocationLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list19; - num = 1; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot3.Steps = list20; num = 3; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span3 = CollectionsMarshal.AsSpan(list21); - ref GatheringNodeGroup reference13 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list21); + index = 0; + ref GatheringNodeGroup reference13 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; + span4 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref GatheringNode reference14 = ref span4[index2]; GatheringNode obj7 = new GatheringNode { DataId = 35251u @@ -23098,7 +27093,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-120.962f, -214.1182f, 349.0067f), MinimumAngle = -65, @@ -23108,20 +27105,25 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list22; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span3[1]; + index++; + ref GatheringNodeGroup reference15 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span4 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref GatheringNode reference16 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 35249u }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation + index3 = 1; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span5 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-151.3246f, -213.9648f, 361.8845f), MinimumAngle = 145, @@ -23131,12 +27133,15 @@ public static class AssemblyGatheringLocationLoader reference16 = obj8; gatheringNodeGroup8.Nodes = list24; reference15 = gatheringNodeGroup8; - ref GatheringNodeGroup reference17 = ref span3[2]; + index++; + ref GatheringNodeGroup reference17 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; + span4 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref GatheringNode reference18 = ref span4[index2]; GatheringNode obj9 = new GatheringNode { DataId = 35250u @@ -23144,7 +27149,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-164.6348f, -214.1782f, 337.2287f), MinimumAngle = -135, @@ -23157,34 +27164,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list21; AddLocation(1196, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + index = 1; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span = CollectionsMarshal.AsSpan(list28); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list28; num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + span2 = CollectionsMarshal.AsSpan(list29); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot4.Steps = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span4 = CollectionsMarshal.AsSpan(list30); - ref GatheringNodeGroup reference19 = ref span4[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span3 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref GatheringNodeGroup reference19 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference20 = ref span4[num2]; GatheringNode obj10 = new GatheringNode { DataId = 35254u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span5 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(649.5298f, 14.19326f, -222.9378f) }; @@ -23192,12 +27208,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span4[1]; + num++; + ref GatheringNodeGroup reference21 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; + span4 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref GatheringNode reference22 = ref span4[index2]; GatheringNode obj11 = new GatheringNode { DataId = 35252u @@ -23205,7 +27224,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(652.2325f, 13.41525f, -227.1611f) }; @@ -23213,20 +27234,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span4[2]; + num++; + ref GatheringNodeGroup reference23 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span4 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 35253u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span5 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(657.8542f, 13.34004f, -225.5971f) }; @@ -23240,12 +27266,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list37; - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23265,13 +27295,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span5 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference25 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index = 0; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list40)[0]; + span4 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref GatheringNode reference26 = ref span4[index2]; GatheringNode obj13 = new GatheringNode { DataId = 35256u @@ -23279,7 +27312,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(23.8063f, 17.44395f, -861.3718f), MinimumAngle = -80, @@ -23289,20 +27324,25 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list40; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span5[1]; + index++; + ref GatheringNodeGroup reference27 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span4 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref GatheringNode reference28 = ref span4[num2]; GatheringNode obj14 = new GatheringNode { DataId = 35257u }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span5 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(31.8484f, 17.91638f, -864.6296f), MinimumAngle = -90, @@ -23312,12 +27352,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list42; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span5[2]; + index++; + ref GatheringNodeGroup reference29 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list44)[0]; + span4 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref GatheringNode reference30 = ref span4[index2]; GatheringNode obj15 = new GatheringNode { DataId = 35255u @@ -23325,7 +27368,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(37.64392f, 17.34943f, -865.3544f), MinimumAngle = -75, @@ -23338,15 +27383,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list39; AddLocation(1198, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "Censored"; + index = 1; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span = CollectionsMarshal.AsSpan(list46); + num = 0; + span[num] = "Censored"; gatheringRoot6.Author = list46; num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + span2 = CollectionsMarshal.AsSpan(list47); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23363,24 +27412,29 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot6.Steps = list47; - num = 3; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span6 = CollectionsMarshal.AsSpan(list48); - ref GatheringNodeGroup reference31 = ref span6[0]; + index = 3; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span3 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span4 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref GatheringNode reference32 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 35260u }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span5 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-601.0465f, 10.95519f, -366.7967f), MinimumAngle = -215, @@ -23390,12 +27444,15 @@ public static class AssemblyGatheringLocationLoader reference32 = obj16; gatheringNodeGroup16.Nodes = list49; reference31 = gatheringNodeGroup16; - ref GatheringNodeGroup reference33 = ref span6[1]; + num++; + ref GatheringNodeGroup reference33 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; + span4 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref GatheringNode reference34 = ref span4[index2]; GatheringNode obj17 = new GatheringNode { DataId = 35259u @@ -23403,7 +27460,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-606.3102f, 11.02901f, -372.3002f), MinimumAngle = -240, @@ -23413,20 +27472,25 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list51; reference33 = gatheringNodeGroup17; - ref GatheringNodeGroup reference35 = ref span6[2]; + num++; + ref GatheringNodeGroup reference35 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span4 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj18 = new GatheringNode { DataId = 35258u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-612.5112f, 11.75366f, -374.3395f), MinimumAngle = -235, @@ -23446,23 +27510,30 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot.Steps = list2; num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 35262u @@ -23470,7 +27541,9 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(217.4239f, -190.3947f, 299.83f), MinimumAngle = -100, @@ -23480,20 +27553,25 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span4 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span4[num2]; GatheringNode obj2 = new GatheringNode { DataId = 35263u }; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new GatheringLocation + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(208.6546f, -191.3975f, 297.5333f), MinimumAngle = 0, @@ -23503,12 +27581,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + span4 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span4[index2]; GatheringNode obj3 = new GatheringNode { DataId = 35261u @@ -23516,7 +27597,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(212.4513f, -192.6452f, 292.6832f), MinimumAngle = 85, @@ -23529,34 +27612,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1200, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "Theo"; + index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span = CollectionsMarshal.AsSpan(list10); + num = 0; + span[num] = "Theo"; gatheringRoot2.Author = list10; num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + span2 = CollectionsMarshal.AsSpan(list11); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot2.Steps = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref GatheringNodeGroup reference7 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span3 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref GatheringNodeGroup reference7 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span4 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref GatheringNode reference8 = ref span4[num2]; GatheringNode obj4 = new GatheringNode { DataId = 35264u }; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new GatheringLocation + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + span5 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-594.4667f, -169.826f, 379.3596f), MinimumAngle = -360, @@ -23566,12 +27658,15 @@ public static class AssemblyGatheringLocationLoader reference8 = obj4; gatheringNodeGroup4.Nodes = list13; reference7 = gatheringNodeGroup4; - ref GatheringNodeGroup reference9 = ref span2[1]; + num++; + ref GatheringNodeGroup reference9 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + span4 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span4[index2]; GatheringNode obj5 = new GatheringNode { DataId = 35265u @@ -23579,7 +27674,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-611.1483f, -174.4638f, 343.6277f), MinimumAngle = -360, @@ -23589,20 +27686,25 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span2[2]; + num++; + ref GatheringNodeGroup reference11 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span4 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span4[num2]; GatheringNode obj6 = new GatheringNode { DataId = 35266u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-639.3258f, -171.871f, 388.8273f), MinimumAngle = -360, @@ -23618,23 +27720,30 @@ public static class AssemblyGatheringLocationLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "liza"; gatheringRoot3.Author = list19; - num = 1; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot3.Steps = list20; num = 3; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span3 = CollectionsMarshal.AsSpan(list21); - ref GatheringNodeGroup reference13 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list21); + index = 0; + ref GatheringNodeGroup reference13 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; + span4 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref GatheringNode reference14 = ref span4[index2]; GatheringNode obj7 = new GatheringNode { DataId = 35267u @@ -23642,7 +27751,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-136.4091f, -213.3115f, 348.263f), MinimumAngle = -115, @@ -23654,20 +27765,25 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list22; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span3[1]; + index++; + ref GatheringNodeGroup reference15 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span4 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref GatheringNode reference16 = ref span4[num2]; GatheringNode obj8 = new GatheringNode { DataId = 35269u }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation + index3 = 1; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span5 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-138.786f, -213.2544f, 335.4114f), MinimumAngle = -220, @@ -23679,12 +27795,15 @@ public static class AssemblyGatheringLocationLoader reference16 = obj8; gatheringNodeGroup8.Nodes = list24; reference15 = gatheringNodeGroup8; - ref GatheringNodeGroup reference17 = ref span3[2]; + index++; + ref GatheringNodeGroup reference17 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; + span4 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref GatheringNode reference18 = ref span4[index2]; GatheringNode obj9 = new GatheringNode { DataId = 35268u @@ -23692,7 +27811,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-147.5682f, -212.363f, 348.0441f), MinimumAngle = 30, @@ -23707,34 +27828,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list21; AddLocation(1202, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + index = 1; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span = CollectionsMarshal.AsSpan(list28); + num = 0; + span[num] = "liza"; gatheringRoot4.Author = list28; num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + span2 = CollectionsMarshal.AsSpan(list29); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot4.Steps = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span4 = CollectionsMarshal.AsSpan(list30); - ref GatheringNodeGroup reference19 = ref span4[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span3 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref GatheringNodeGroup reference19 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span4 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference20 = ref span4[num2]; GatheringNode obj10 = new GatheringNode { DataId = 35272u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span5 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(712.1951f, 19.23321f, -299.8495f), MinimumAngle = 195, @@ -23744,12 +27874,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span4[1]; + num++; + ref GatheringNodeGroup reference21 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; + span4 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref GatheringNode reference22 = ref span4[index2]; GatheringNode obj11 = new GatheringNode { DataId = 35270u @@ -23757,7 +27890,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(740.6464f, 23.75824f, -303.4917f), MinimumAngle = -20, @@ -23767,20 +27902,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span4[2]; + num++; + ref GatheringNodeGroup reference23 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span4 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference24 = ref span4[num2]; GatheringNode obj12 = new GatheringNode { DataId = 35271u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span5 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(702.0139f, 21.35347f, -331.0941f), MinimumAngle = -140, @@ -23796,12 +27936,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; gatheringRoot5.Author = list37; - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23821,13 +27965,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span5 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference25 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index = 0; + ref GatheringNodeGroup reference25 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list40)[0]; + span4 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref GatheringNode reference26 = ref span4[index2]; GatheringNode obj13 = new GatheringNode { DataId = 35273u @@ -23835,7 +27982,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-104.9523f, 10.90963f, -784.3555f), MinimumAngle = 185, @@ -23845,20 +27994,25 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list40; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span5[1]; + index++; + ref GatheringNodeGroup reference27 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span4 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref GatheringNode reference28 = ref span4[num2]; GatheringNode obj14 = new GatheringNode { DataId = 35275u }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span5 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-93.91187f, 2.599666f, -756.9727f), MinimumAngle = 75, @@ -23868,12 +28022,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list42; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span5[2]; + index++; + ref GatheringNodeGroup reference29 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list44)[0]; + span4 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref GatheringNode reference30 = ref span4[index2]; GatheringNode obj15 = new GatheringNode { DataId = 35274u @@ -23881,7 +28038,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-78.69253f, 14.48961f, -810.1029f), MinimumAngle = -85, @@ -23894,15 +28053,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list39; AddLocation(1204, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "Censored"; + index = 1; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span = CollectionsMarshal.AsSpan(list46); + num = 0; + span[num] = "Censored"; gatheringRoot6.Author = list46; num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + span2 = CollectionsMarshal.AsSpan(list47); + index = 0; + span2[index] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23919,24 +28082,29 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot6.Steps = list47; - num = 3; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span6 = CollectionsMarshal.AsSpan(list48); - ref GatheringNodeGroup reference31 = ref span6[0]; + index = 3; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span3 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref GatheringNodeGroup reference31 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span4 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref GatheringNode reference32 = ref span4[num2]; GatheringNode obj16 = new GatheringNode { DataId = 35278u }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span5 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-576.3171f, 4.257174f, -398.7203f) }; @@ -23944,12 +28112,15 @@ public static class AssemblyGatheringLocationLoader reference32 = obj16; gatheringNodeGroup16.Nodes = list49; reference31 = gatheringNodeGroup16; - ref GatheringNodeGroup reference33 = ref span6[1]; + num++; + ref GatheringNodeGroup reference33 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; + span4 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref GatheringNode reference34 = ref span4[index2]; GatheringNode obj17 = new GatheringNode { DataId = 35277u @@ -23957,7 +28128,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation + span5 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(-578.7101f, 3.045597f, -403.618f) }; @@ -23965,20 +28138,25 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list51; reference33 = gatheringNodeGroup17; - ref GatheringNodeGroup reference35 = ref span6[2]; + num++; + ref GatheringNodeGroup reference35 = ref span3[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span4 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref GatheringNode reference36 = ref span4[num2]; GatheringNode obj18 = new GatheringNode { DataId = 35276u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = new GatheringLocation { Position = new Vector3(-576.8013f, 3.518943f, -406.4176f) }; diff --git a/LLib/LLib.Gear/ExtendedBaseParam.cs b/LLib/LLib.Gear/ExtendedBaseParam.cs index 31ecdd8..4eb276c 100644 --- a/LLib/LLib.Gear/ExtendedBaseParam.cs +++ b/LLib/LLib.Gear/ExtendedBaseParam.cs @@ -10,10 +10,6 @@ public readonly struct ExtendedBaseParam : IExcelRow public uint RowId => _003Crow_003EP; - public ExcelPage ExcelPage => _003Cpage_003EP; - - public uint RowOffset => _003Coffset_003EP; - public BaseParam BaseParam => new BaseParam(_003Cpage_003EP, _003Coffset_003EP, _003Crow_003EP); public unsafe Collection EquipSlotCategoryPct => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&EquipSlotCategoryPctCtor), 23); diff --git a/LLib/LLib.Gear/GearStatsCalculator.cs b/LLib/LLib.Gear/GearStatsCalculator.cs index b63fba6..d75d136 100644 --- a/LLib/LLib.Gear/GearStatsCalculator.cs +++ b/LLib/LLib.Gear/GearStatsCalculator.cs @@ -207,7 +207,7 @@ public sealed class GearStatsCalculator num2--; continue; } - if (i == 0 && !((ReadOnlySpan)CanHaveOffhand).Contains(rowOrDefault.Value.ItemUICategory.RowId)) + if (i == 0 && !CanHaveOffhand.Contains(rowOrDefault.Value.ItemUICategory.RowId)) { num += rowOrDefault.Value.LevelItem.RowId; i++; diff --git a/LLib/LLib.ImGui/LWindow.cs b/LLib/LLib.ImGui/LWindow.cs index a355121..16df614 100644 --- a/LLib/LLib.ImGui/LWindow.cs +++ b/LLib/LLib.ImGui/LWindow.cs @@ -33,7 +33,7 @@ public abstract class LWindow : Window } } - protected new bool IsPinned + protected bool IsPinned { get { @@ -45,7 +45,7 @@ public abstract class LWindow : Window } } - protected new bool IsClickthrough + protected bool IsClickthrough { get { diff --git a/LLib/LLib.Shop.Model/GrandCompanyItem.cs b/LLib/LLib.Shop.Model/GrandCompanyItem.cs deleted file mode 100644 index 24ee7e6..0000000 --- a/LLib/LLib.Shop.Model/GrandCompanyItem.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace LLib.Shop.Model; - -public sealed class GrandCompanyItem -{ - public required int Index { get; init; } - - public required uint ItemId { get; init; } - - public required uint IconId { get; init; } - - public required uint SealCost { get; init; } -} diff --git a/LLib/LLib.Shop/GrandCompanyShop.cs b/LLib/LLib.Shop/GrandCompanyShop.cs deleted file mode 100644 index a4cea2c..0000000 --- a/LLib/LLib.Shop/GrandCompanyShop.cs +++ /dev/null @@ -1,288 +0,0 @@ -using System; -using Dalamud.Game.Addon.Lifecycle; -using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using FFXIVClientStructs.FFXIV.Component.GUI; -using LLib.GameUI; -using LLib.Shop.Model; - -namespace LLib.Shop; - -public sealed class GrandCompanyShop : IDisposable -{ - private sealed class GrandCompanyPurchaseRequest - { - public required uint ItemId { get; init; } - - public required int RankTabIndex { get; init; } - - public required int CategoryTabIndex { get; init; } - } - - private const string AddonName = "GrandCompanyExchange"; - - private const string SelectYesNoAddonName = "SelectYesno"; - - private readonly IPluginLog _pluginLog; - - private readonly IGameGui _gameGui; - - private readonly IAddonLifecycle _addonLifecycle; - - private int _navigationStep; - - private DateTime _lastActionTime = DateTime.MinValue; - - private GrandCompanyPurchaseRequest? _pendingPurchase; - - public bool IsOpen { get; private set; } - - public bool IsPurchaseInProgress => _pendingPurchase != null; - - public bool IsAwaitingConfirmation { get; private set; } - - public event EventHandler? PurchaseCompleted; - - public event EventHandler? ShopOpened; - - public event EventHandler? ShopClosed; - - public GrandCompanyShop(IPluginLog pluginLog, IGameGui gameGui, IAddonLifecycle addonLifecycle) - { - _pluginLog = pluginLog; - _gameGui = gameGui; - _addonLifecycle = addonLifecycle; - _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "GrandCompanyExchange", OnShopPostSetup); - _addonLifecycle.RegisterListener(AddonEvent.PreFinalize, "GrandCompanyExchange", OnShopPreFinalize); - _addonLifecycle.RegisterListener(AddonEvent.PostUpdate, "SelectYesno", OnSelectYesNoPostUpdate); - } - - private void OnShopPostSetup(AddonEvent type, AddonArgs args) - { - IsOpen = true; - _navigationStep = 0; - _pluginLog.Debug("[GCShop] Shop opened"); - this.ShopOpened?.Invoke(this, EventArgs.Empty); - } - - private void OnShopPreFinalize(AddonEvent type, AddonArgs args) - { - IsOpen = false; - _pendingPurchase = null; - IsAwaitingConfirmation = false; - _pluginLog.Debug("[GCShop] Shop closed"); - this.ShopClosed?.Invoke(this, EventArgs.Empty); - } - - private unsafe void OnSelectYesNoPostUpdate(AddonEvent type, AddonArgs args) - { - if (_pendingPurchase != null && IsAwaitingConfirmation) - { - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - if (LAddon.IsAddonReady(address)) - { - _pluginLog.Information("[GCShop] Confirming purchase dialog"); - ClickYes(address); - address->Close(fireCallback: true); - IsAwaitingConfirmation = false; - } - } - } - - public bool StartPurchase(uint itemId, int rankTabIndex, int categoryTabIndex) - { - if (!IsOpen || _pendingPurchase != null) - { - return false; - } - _pendingPurchase = new GrandCompanyPurchaseRequest - { - ItemId = itemId, - RankTabIndex = rankTabIndex, - CategoryTabIndex = categoryTabIndex - }; - _navigationStep = 0; - _lastActionTime = DateTime.MinValue; - _pluginLog.Information($"[GCShop] Starting purchase of item {itemId}"); - return true; - } - - public void CancelPurchase() - { - _pendingPurchase = null; - IsAwaitingConfirmation = false; - _navigationStep = 0; - } - - public unsafe bool ProcessPurchase() - { - if (_pendingPurchase == null || !IsOpen) - { - return false; - } - if ((DateTime.Now - _lastActionTime).TotalMilliseconds < 600.0) - { - return false; - } - if (InventoryManager.Instance()->GetInventoryItemCount(_pendingPurchase.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0) - { - _pluginLog.Information($"[GCShop] Item {_pendingPurchase.ItemId} already in inventory"); - uint itemId = _pendingPurchase.ItemId; - _pendingPurchase = null; - this.PurchaseCompleted?.Invoke(this, new PurchaseCompletedEventArgs(itemId, success: true)); - return true; - } - if (!_gameGui.TryGetAddonByName("GrandCompanyExchange", out var addonPtr) || !LAddon.IsAddonReady(addonPtr)) - { - return false; - } - switch (_navigationStep) - { - case 0: - FireCallback(addonPtr, 1, _pendingPurchase.RankTabIndex); - _navigationStep++; - _lastActionTime = DateTime.Now; - break; - case 1: - FireCallback(addonPtr, 2, _pendingPurchase.CategoryTabIndex); - _navigationStep++; - _lastActionTime = DateTime.Now; - break; - case 2: - { - GrandCompanyItem grandCompanyItem = FindItemInShop(addonPtr, _pendingPurchase.ItemId); - if (grandCompanyItem != null) - { - _pluginLog.Information($"[GCShop] Found item {grandCompanyItem.ItemId} at index {grandCompanyItem.Index}, purchasing..."); - FirePurchaseCallback(addonPtr, grandCompanyItem); - IsAwaitingConfirmation = true; - _navigationStep++; - _lastActionTime = DateTime.Now; - } - else - { - _pluginLog.Warning($"[GCShop] Item {_pendingPurchase.ItemId} not found in shop"); - _lastActionTime = DateTime.Now; - } - break; - } - case 3: - if (!IsAwaitingConfirmation && InventoryManager.Instance()->GetInventoryItemCount(_pendingPurchase.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0) - { - _pluginLog.Information($"[GCShop] Purchase of {_pendingPurchase.ItemId} completed"); - uint itemId2 = _pendingPurchase.ItemId; - _pendingPurchase = null; - _navigationStep = 0; - this.PurchaseCompleted?.Invoke(this, new PurchaseCompletedEventArgs(itemId2, success: true)); - return true; - } - break; - } - return false; - } - - public unsafe void CloseShop() - { - if (IsOpen && _gameGui.TryGetAddonByName("GrandCompanyExchange", out var addonPtr)) - { - addonPtr->Close(fireCallback: true); - } - } - - public unsafe static int GetCompanySeals() - { - return (int)InventoryManager.Instance()->GetCompanySeals(PlayerState.Instance()->GrandCompany); - } - - private unsafe static GrandCompanyItem? FindItemInShop(AtkUnitBase* addon, uint targetItemId) - { - int atkValueInt = GetAtkValueInt(addon, 1); - if (atkValueInt <= 0) - { - return null; - } - for (int i = 0; i < atkValueInt; i++) - { - int atkValueInt2 = GetAtkValueInt(addon, 317 + i); - if (atkValueInt2 == (int)targetItemId) - { - return new GrandCompanyItem - { - Index = i, - ItemId = (uint)atkValueInt2, - IconId = (uint)GetAtkValueInt(addon, 167 + i), - SealCost = (uint)GetAtkValueInt(addon, 67 + i) - }; - } - } - return null; - } - - private unsafe void FireCallback(AtkUnitBase* addon, params int[] args) - { - AtkValue* ptr = stackalloc AtkValue[args.Length]; - for (int i = 0; i < args.Length; i++) - { - ptr[i].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr[i].Int = args[i]; - } - addon->FireCallback((uint)args.Length, ptr); - } - - private unsafe void FirePurchaseCallback(AtkUnitBase* addon, GrandCompanyItem item) - { - AtkValue* ptr = stackalloc AtkValue[9]; - ptr->Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr->Int = 0; - ptr[1].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr[1].Int = item.Index; - ptr[2].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr[2].Int = 1; - ptr[3].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr[3].Int = 0; - ptr[4].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr[4].Int = 0; - ptr[5].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr[5].Int = 0; - ptr[6].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.UInt; - ptr[6].UInt = item.ItemId; - ptr[7].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.UInt; - ptr[7].UInt = item.IconId; - ptr[8].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.UInt; - ptr[8].UInt = item.SealCost; - addon->FireCallback(9u, ptr); - } - - private unsafe static void ClickYes(AtkUnitBase* addon) - { - AtkValue* ptr = stackalloc AtkValue[1]; - ptr->Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr->Int = 0; - addon->FireCallback(1u, ptr); - } - - private unsafe static int GetAtkValueInt(AtkUnitBase* addon, int index) - { - if (addon == null || addon->AtkValues == null || index < 0 || index >= addon->AtkValuesCount) - { - return -1; - } - AtkValue atkValue = addon->AtkValues[index]; - return atkValue.Type switch - { - FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int => atkValue.Int, - FFXIVClientStructs.FFXIV.Component.GUI.ValueType.UInt => (int)atkValue.UInt, - FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Bool => (atkValue.Byte != 0) ? 1 : 0, - _ => -1, - }; - } - - public void Dispose() - { - _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "GrandCompanyExchange", OnShopPostSetup); - _addonLifecycle.UnregisterListener(AddonEvent.PreFinalize, "GrandCompanyExchange", OnShopPreFinalize); - _addonLifecycle.UnregisterListener(AddonEvent.PostUpdate, "SelectYesno", OnSelectYesNoPostUpdate); - } -} diff --git a/LLib/LLib.Shop/PurchaseCompletedEventArgs.cs b/LLib/LLib.Shop/PurchaseCompletedEventArgs.cs deleted file mode 100644 index fe57d42..0000000 --- a/LLib/LLib.Shop/PurchaseCompletedEventArgs.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace LLib.Shop; - -public sealed class PurchaseCompletedEventArgs : EventArgs -{ - public uint ItemId { get; } - - public bool Success { get; } - - public PurchaseCompletedEventArgs(uint itemId, bool success) - { - ItemId = itemId; - Success = success; - } -} diff --git a/LLib/LLib.csproj b/LLib/LLib.csproj index 96585ea..7df612f 100644 --- a/LLib/LLib.csproj +++ b/LLib/LLib.csproj @@ -3,7 +3,7 @@ LLib False - netcoreapp1.0 + netcoreapp9.0 x64 diff --git a/LLib/LLib/DataManagerExtensions.cs b/LLib/LLib/DataManagerExtensions.cs index 029aeaf..74e4d2e 100644 --- a/LLib/LLib/DataManagerExtensions.cs +++ b/LLib/LLib/DataManagerExtensions.cs @@ -18,7 +18,9 @@ public static class DataManagerExtensions public static string? GetString(this IDataManager dataManager, string key, IPluginLog? pluginLog) where T : struct, IQuestDialogueText, IExcelRow { - return dataManager.GetSeString(key)?.WithCertainMacroCodeReplacements(); + string text = dataManager.GetSeString(key)?.WithCertainMacroCodeReplacements(); + pluginLog?.Verbose($"{typeof(T).Name}.{key} => {text}"); + return text; } public static Regex? GetRegex(this IDataManager dataManager, string key, IPluginLog? pluginLog) where T : struct, IQuestDialogueText, IExcelRow @@ -28,7 +30,9 @@ public static class DataManagerExtensions { return null; } - return new Regex(string.Join("", seString.Select((ReadOnlySePayload payload) => (payload.Type == ReadOnlySePayloadType.Text) ? Regex.Escape(payload.ToString()) : "(.*)"))); + string text = string.Join("", seString.Select((ReadOnlySePayload payload) => (payload.Type == ReadOnlySePayloadType.Text) ? Regex.Escape(payload.ToString()) : "(.*)")); + pluginLog?.Verbose($"{typeof(T).Name}.{key} => /{text}/"); + return new Regex(text); } public static ReadOnlySeString? GetSeString(this IDataManager dataManager, uint rowId, Func mapper) where T : struct, IExcelRow @@ -45,7 +49,9 @@ public static class DataManagerExtensions public static string? GetString(this IDataManager dataManager, uint rowId, Func mapper, IPluginLog? pluginLog = null) where T : struct, IExcelRow { - return dataManager.GetSeString(rowId, mapper)?.WithCertainMacroCodeReplacements(); + string text = dataManager.GetSeString(rowId, mapper)?.WithCertainMacroCodeReplacements(); + pluginLog?.Verbose($"{typeof(T).Name}.{rowId} => {text}"); + return text; } public static Regex? GetRegex(this IDataManager dataManager, uint rowId, Func mapper, IPluginLog? pluginLog = null) where T : struct, IExcelRow @@ -55,7 +61,9 @@ public static class DataManagerExtensions { return null; } - return seString.ToRegex(); + Regex regex = seString.ToRegex(); + pluginLog?.Verbose($"{typeof(T).Name}.{rowId} => /{regex}/"); + return regex; } public static Regex? GetRegex(this T excelRow, Func mapper, IPluginLog? pluginLog) where T : struct, IExcelRow @@ -66,7 +74,9 @@ public static class DataManagerExtensions { return null; } - return text.ToRegex(); + Regex regex = text.ToRegex(); + pluginLog?.Verbose($"{typeof(T).Name}.regex => /{regex}/"); + return regex; } public static Regex ToRegex(this ReadOnlySeString? text) @@ -82,7 +92,7 @@ public static class DataManagerExtensions ReadOnlySePayloadType.Text => payload.ToString(), ReadOnlySePayloadType.Macro => payload.MacroCode switch { - MacroCode.NewLine => Environment.NewLine, + MacroCode.NewLine => "", MacroCode.NonBreakingSpace => " ", MacroCode.Hyphen => "-", MacroCode.SoftHyphen => "", diff --git a/LLib/LLib/QuestDialogueText.cs b/LLib/LLib/QuestDialogueText.cs index 054f28d..95f8b5d 100644 --- a/LLib/LLib/QuestDialogueText.cs +++ b/LLib/LLib/QuestDialogueText.cs @@ -8,10 +8,6 @@ public readonly struct QuestDialogueText : IQuestDialogueText, IExcelRow _003Crow_003EP; - public ExcelPage ExcelPage => _003Cpage_003EP; - - public uint RowOffset => _003Coffset_003EP; - public ReadOnlySeString Key => _003Cpage_003EP.ReadString(_003Coffset_003EP, _003Coffset_003EP); public ReadOnlySeString Value => _003Cpage_003EP.ReadString(_003Coffset_003EP + 4, _003Coffset_003EP); diff --git a/NotificationMasterAPI/NotificationMasterAPI.csproj b/NotificationMasterAPI/NotificationMasterAPI.csproj deleted file mode 100644 index d516cfc..0000000 --- a/NotificationMasterAPI/NotificationMasterAPI.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - NotificationMasterAPI - False - netcoreapp9.0 - - - 12.0 - True - - - - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\Dalamud.dll - - - \ No newline at end of file diff --git a/NotificationMasterAPI/NotificationMasterAPI/Data.cs b/NotificationMasterAPI/NotificationMasterAPI/Data.cs deleted file mode 100644 index 3623dde..0000000 --- a/NotificationMasterAPI/NotificationMasterAPI/Data.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace NotificationMasterAPI; - -public static class Data -{ - public const string MFAudioFormats = "*.3g2;*.3gp;*.3gp2;*.3gpp;*.asf;*.wma;*.wmv;*.aac;*.adts;*.avi;*.mp3;*.m4a;*.m4v;*.mov;*.mp4;*.sami;*.smi;*.wav;*.aiff"; -} diff --git a/NotificationMasterAPI/NotificationMasterAPI/NMAPINames.cs b/NotificationMasterAPI/NotificationMasterAPI/NMAPINames.cs deleted file mode 100644 index 4ff0134..0000000 --- a/NotificationMasterAPI/NotificationMasterAPI/NMAPINames.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace NotificationMasterAPI; - -public static class NMAPINames -{ - public const string DisplayToastNotification = "NotificationMasterAPI.DisplayToastNotification"; - - public const string FlashTaskbarIcon = "NotificationMasterAPI.FlashTaskbarIcon"; - - public const string PlaySound = "NotificationMasterAPI.PlaySound"; - - public const string BringGameForeground = "NotificationMasterAPI.BringGameForeground"; - - public const string StopSound = "NotificationMasterAPI.StopSound"; - - public const string Active = "NotificationMasterAPI.Active"; -} diff --git a/NotificationMasterAPI/NotificationMasterAPI/NotificationMasterApi.cs b/NotificationMasterAPI/NotificationMasterAPI/NotificationMasterApi.cs deleted file mode 100644 index 6b9235c..0000000 --- a/NotificationMasterAPI/NotificationMasterAPI/NotificationMasterApi.cs +++ /dev/null @@ -1,146 +0,0 @@ -using System; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc.Exceptions; - -namespace NotificationMasterAPI; - -public class NotificationMasterApi -{ - private IDalamudPluginInterface PluginInterface; - - /// - /// Creates an instance of NotificationMaster API. You do not need to check if NotificationMaster plugin is installed. - /// - /// Plugin interface reference - public NotificationMasterApi(IDalamudPluginInterface dalamudPluginInterface) - { - PluginInterface = dalamudPluginInterface; - } - - private void Validate() - { - if (PluginInterface == null) - { - throw new NullReferenceException("NotificationMaster API was called before it was initialized"); - } - } - - /// - /// Checks if IPC is ready. You DO NOT need to call this method before invoking any of API functions unless you specifically want to check if plugin is installed and ready to accept requests. - /// - /// - public bool IsIPCReady() - { - Validate(); - try - { - PluginInterface.GetIpcSubscriber("NotificationMasterAPI.Active").InvokeAction(); - return true; - } - catch (IpcNotReadyError) - { - } - return false; - } - - /// - /// Displays tray notification. This function does not throws an exception or displays an error if NotificationMaster is not installed. - /// - /// Text of tray notification - /// Whether operation succeed. - public bool DisplayTrayNotification(string text) - { - return DisplayTrayNotification(null, text); - } - - /// - /// Displays tray notification. This function does not throws an exception or displays an error if NotificationMaster is not installed. - /// - /// Title of tray notification - /// Text of tray notification - /// Whether operation succeed. - public bool DisplayTrayNotification(string? title, string text) - { - Validate(); - try - { - return PluginInterface.GetIpcSubscriber("NotificationMasterAPI.DisplayToastNotification").InvokeFunc(PluginInterface.InternalName, title, text); - } - catch (IpcNotReadyError) - { - } - return false; - } - - /// - /// Flashes game's taskbar icon. This function does not throws an exception or displays an error if NotificationMaster is not installed. - /// - /// Whether operation succeeded - public bool FlashTaskbarIcon() - { - Validate(); - try - { - return PluginInterface.GetIpcSubscriber("NotificationMasterAPI.FlashTaskbarIcon").InvokeFunc(PluginInterface.InternalName); - } - catch (IpcNotReadyError) - { - } - return false; - } - - /// - /// Attempts to bring game's window foreground. Due to Windows inconsistencies, it's not guaranteed to work. This function does not throws an exception or displays an error if NotificationMaster is not installed. - /// - /// Whether operation succeeded - public bool TryBringGameForeground() - { - Validate(); - try - { - return PluginInterface.GetIpcSubscriber("NotificationMasterAPI.BringGameForeground").InvokeFunc(PluginInterface.InternalName); - } - catch (IpcNotReadyError) - { - } - return false; - } - - /// - /// Begins to play a sound file. If another sound file is already playing, stops previous file and begins playing specified. This function does not throws an exception or displays an error if NotificationMaster is not installed. - /// - /// Path to local file. Can not be web URL. See for supported formats. - /// Volume between 0.0 and 1.0 - /// Whether to repeat sound file. - /// Whether to stop file once game is focused. - /// Whether operation succeeded - public bool PlaySound(string pathOnDisk, float volume = 1f, bool repeat = false, bool stopOnGameFocus = true) - { - Validate(); - try - { - return PluginInterface.GetIpcSubscriber("NotificationMasterAPI.PlaySound").InvokeFunc(PluginInterface.InternalName, pathOnDisk, volume, repeat, stopOnGameFocus); - } - catch (IpcNotReadyError) - { - } - return false; - } - - /// - /// Stops playing sound. This function does not throws an exception or displays an error if NotificationMaster is not installed. - /// - /// Whether operation succeeded - public bool StopSound() - { - Validate(); - try - { - return PluginInterface.GetIpcSubscriber("NotificationMasterAPI.StopSound").InvokeFunc(PluginInterface.InternalName); - } - catch (IpcNotReadyError) - { - } - return false; - } -} diff --git a/QuestPaths/QuestPaths.csproj b/QuestPaths/QuestPaths.csproj index 8a86757..3e1923c 100644 --- a/QuestPaths/QuestPaths.csproj +++ b/QuestPaths/QuestPaths.csproj @@ -3,7 +3,7 @@ QuestPaths False - netcoreapp1.0 + netcoreapp9.0 12.0 diff --git a/QuestPaths/Questionable.QuestPaths.QuestSchema b/QuestPaths/Questionable.QuestPaths.QuestSchema index 6edb122..6a369b9 100644 --- a/QuestPaths/Questionable.QuestPaths.QuestSchema +++ b/QuestPaths/Questionable.QuestPaths.QuestSchema @@ -90,21 +90,6 @@ "description": "The data id of the NPC/Object/Aetheryte/Aether Current", "exclusiveMinimum": 0 }, - "DataIds": { - "type": "array", - "description": "Multiple data ids to search for (e.g. for clearing randomly spawned objects)", - "items": { - "type": "integer", - "exclusiveMinimum": 0 - } - }, - "WaypointPositions": { - "type": "array", - "description": "Exit/waypoint positions to walk to after clearing all DataIds objects (e.g. doors between zones in a looping duty)", - "items": { - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - } - }, "Position": { "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" }, @@ -120,9 +105,6 @@ "type": "boolean", "description": "Most interactions with objects are checked for a Y (height) difference of 2 in-game units. If set to true, the game won't attempt to get any closer if the height difference is larger than this." }, - "IgnoreQuestMarker": { - "type": "boolean" - }, "RestartNavigationIfCancelled": { "type": "boolean", "description": "For some specific loading screen transitions (e.g. when entering/leaving the water through the portals in the ruby sea), setting this to 'false' means it won't re-attempt to move to the portal after the loading animation" @@ -171,8 +153,7 @@ "Instruction", "AcceptQuest", "CompleteQuest", - "InitiateLeve", - "FateAction" + "InitiateLeve" ] }, "Disabled": { @@ -238,9 +219,6 @@ "CompletionQuestVariablesFlags": { "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-completionflags.json" }, - "RequiredQuestVariables": { - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-requiredvariables.json" - }, "Flying": { "type": "string", "enum": [ @@ -279,22 +257,14 @@ "Item": { "type": "object", "properties": { - "InInventory": { - "type": "boolean" - }, "NotInInventory": { "type": "boolean" - }, - "BetterOrEqualItemEquipped": { - "type": "boolean", - "description": "Skip this step if a better or equal item (by item level) is already equipped" } - }, - "additionalProperties": false + } }, "MinimumLevel": { "type": "integer", - "description": "Skip this step if the player level is greater than or equal to this value", + "description": "Skip this step if the player level is greater than or equal to this value. Useful for steps that should only be done once at low levels (e.g., early aetheryte attunements).", "minimum": 1, "maximum": 100 }, @@ -307,15 +277,6 @@ ] } }, - "QuestsCompleted": { - "type": "array", - "items": { - "type": [ - "number", - "string" - ] - } - }, "NotNamePlateIconId": { "type": "array", "items": { @@ -603,26 +564,6 @@ "properties": { "PickUpItemId": { "type": "number" - }, - "GCPurchase": { - "type": "object", - "description": "Configuration for purchasing an item from the Grand Company Exchange shop", - "properties": { - "ItemId": { - "type": "number", - "description": "The item ID to purchase from the GC shop" - }, - "RankTab": { - "type": "integer", - "description": "The rank tab index (0-based)" - }, - "CategoryTab": { - "type": "integer", - "description": "The category tab index (0-based)" - } - }, - "required": ["ItemId"], - "additionalProperties": false } }, "required": [ @@ -639,9 +580,8 @@ } }, "then": { - "anyOf": [ - { "required": ["Position"] }, - { "required": ["DataId"] } + "required": [ + "Position" ] } }, @@ -810,34 +750,6 @@ "additionalProperties": false } }, - "FateActionTargets": { - "description": "List of targets with per-target actions for FateAction steps", - "type": "array", - "items": { - "type": "object", - "properties": { - "DataId": { - "description": "The NPC data id to use the action on", - "type": "integer" - }, - "Action": { - "description": "The action to use on this target", - "type": "string", - "enum": [ - "Cheer Rhythm: Red", - "Cheer Rhythm: Blue", - "Cheer Rhythm: Green", - "Cheer Rhythm: Yellow" - ] - } - }, - "required": [ - "DataId", - "Action" - ], - "additionalProperties": false - } - }, "CombatItemUse": { "description": "Unlike the 'AfterItemUse' condition that is used for spawning an enemy in the first place, interacting with an item at a certain stage of combat is required", "type": "object", @@ -1428,14 +1340,7 @@ "Shrouded Luminescence", "Big Sneeze", "Trickster's Treat", - "Treater's Trick", - "Cheer Rhythm: Red", - "Cheer Rhythm: Blue", - "Cheer Rhythm: Green", - "Cheer Rhythm: Yellow", - "Pruning Pirouette", - "Roaring Eggscapade", - "The Spriganator" + "Treater's Trick" ] } }, @@ -1444,20 +1349,6 @@ ] } }, - { - "if": { - "properties": { - "InteractionType": { - "const": "FateAction" - } - } - }, - "then": { - "required": [ - "FateActionTargets" - ] - } - }, { "if": { "properties": { @@ -1695,11 +1586,6 @@ "type": "string" } }, - "DutyMode": { - "type": "integer", - "description": "Overrides the default duty mode for this specific duty. 0 = Duty Support, 1 = Unsync (Solo), 2 = Unsync (Party). If not specified, uses the global configuration setting.", - "enum": [0, 1, 2] - }, "TestedAutoDutyVersion": { "type": "string", "pattern": "^0\\.\\d+\\.\\d+\\.\\d+$" @@ -1719,8 +1605,7 @@ "required": [ "ContentFinderConditionId", "Enabled" - ], - "additionalProperties": false + ] }, "DataId": { "type": "null" @@ -1878,10 +1763,6 @@ "properties": { "ItemCount": { "type": "number" - }, - "RequireHq": { - "type": "boolean", - "description": "If true, only HQ items will be counted towards completion." } }, "required": [ diff --git a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs index 491c956..44a62c7 100644 --- a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs +++ b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs @@ -149,12 +149,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "WigglyMuffin"; questRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -162,8 +166,9 @@ public static class AssemblyQuestLoader int num2 = 8; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span = CollectionsMarshal.AsSpan(list3); - span[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -175,16 +180,19 @@ public static class AssemblyQuestLoader } } }; - span[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley, AetheryteShortcut = EAetheryteLocation.Limsa }; - span[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -193,7 +201,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -203,15 +212,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; @@ -224,39 +236,48 @@ public static class AssemblyQuestLoader num = 1; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list4); + index = 0; + span[index] = "liza"; questRoot2.Author = list4; - num = 2; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestSequence reference2 = ref span2[0]; + index = 2; + List list5 = new List(index); + CollectionsMarshal.SetCount(list5, index); + span2 = CollectionsMarshal.AsSpan(list5); + num = 0; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) + num3 = 4; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) { TargetClass = EExtendedClassJob.BlueMage }; - span3[1] = new QuestStep(EInteractionType.Gather, null, null, 478); - span3[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.31451f, 206.56206f, 29.3684f), 478) + num2++; + span3[num2] = new QuestStep(EInteractionType.Gather, null, null, 478); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.31451f, 206.56206f, 29.3684f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; - ref QuestStep reference3 = ref span3[3]; + num2++; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) { StopDistance = 5f }; - int num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + int num4 = 1; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span4 = CollectionsMarshal.AsSpan(list7); + int index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/003/CtsSfsCharacter1_00386", @@ -268,7 +289,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list6; reference2 = obj2; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 @@ -276,12 +298,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list8)[0]; + span3 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + ref QuestStep reference5 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span4 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/003/CtsSfsCharacter1_00386", @@ -299,21 +325,26 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "WigglyMuffin"; questRoot3.Author = list10; - num = 1; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list11)[0]; + index = 1; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 10; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + num3 = 10; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -325,24 +356,30 @@ public static class AssemblyQuestLoader } } }; - span4[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span4[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span4[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span4[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span4[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -351,12 +388,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span4[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span4[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span4[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -374,13 +414,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; questRoot4.Author = list13; - num = 2; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference7 = ref span5[0]; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -388,13 +431,16 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 635) + span3 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 635) { TargetClass = EExtendedClassJob.BlueMage }; - span6[1] = new QuestStep(EInteractionType.Gather, null, null, 635); - ref QuestStep reference8 = ref span6[2]; + num3++; + span3[num3] = new QuestStep(EInteractionType.Gather, null, null, 635); + num3++; + ref QuestStep reference8 = ref span3[num3]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -404,10 +450,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachNorthEast } }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + span4 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter2_00434", @@ -419,20 +467,25 @@ public static class AssemblyQuestLoader reference8 = obj7; obj6.Steps = list15; reference7 = obj6; - ref QuestSequence reference9 = ref span5[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list17)[0]; - QuestStep questStep2 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; + QuestStep questStep2 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span4 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter2_00434", @@ -450,12 +503,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "WigglyMuffin"; questRoot5.Author = list19; - num = 1; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - ref QuestSequence reference11 = ref CollectionsMarshal.AsSpan(list20)[0]; + index = 1; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -463,8 +520,9 @@ public static class AssemblyQuestLoader num2 = 10; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span7 = CollectionsMarshal.AsSpan(list21); - span7[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) + span3 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -476,33 +534,42 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span7[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - span7[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span7[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span7[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span7[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span7[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span7[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span7[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; @@ -515,21 +582,26 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "Cacahuetes"; questRoot6.Author = list22; - num = 2; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span8 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference12 = ref span8[0]; + index = 2; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list24)[0]; + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -544,17 +616,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 133; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span5 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span5[index2] = 133; obj12.InTerritory = list25; skipConditions.AetheryteShortcutIf = obj12; obj11.SkipConditions = skipConditions; reference13 = obj11; obj10.Steps = list24; reference12 = obj10; - ref QuestSequence reference14 = ref span8[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -562,12 +637,16 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list26)[0]; + span3 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + ref QuestStep reference15 = ref span3[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span4 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSHRV001_00003_Q1_000_1") @@ -584,35 +663,43 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot7.Author = list28; - num = 2; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span9 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference16 = ref span9[0]; + index = 2; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span10 = CollectionsMarshal.AsSpan(list30); - span10[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 613) + num3 = 3; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 613) { TargetClass = EExtendedClassJob.BlueMage }; - span10[1] = new QuestStep(EInteractionType.Gather, null, null, 613); - ref QuestStep reference17 = ref span10[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Gather, null, null, 613); + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + num4 = 1; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + span4 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter3_00481", @@ -624,7 +711,8 @@ public static class AssemblyQuestLoader reference17 = obj15; obj14.Steps = list30; reference16 = obj14; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -632,12 +720,16 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list32)[0]; + span3 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + ref QuestStep reference19 = ref span3[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.None, null, null, 613); - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span4 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter3_00481", @@ -655,21 +747,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "WigglyMuffin"; questRoot8.Author = list34; - num = 1; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - ref QuestSequence reference20 = ref CollectionsMarshal.AsSpan(list35)[0]; + index = 1; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 15; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span11 = CollectionsMarshal.AsSpan(list36); - span11[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) + num3 = 15; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) { Aetheryte = EAetheryteLocation.GoldSaucer, AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -681,26 +778,31 @@ public static class AssemblyQuestLoader } } }; - span11[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEntranceCardSquares }; - span11[2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) { TargetTerritoryId = (ushort)388 }; - span11[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 5f, AethernetShard = EAetheryteLocation.GoldSaucerMinionSquare }; - span11[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerChocoboSquare }; - span11[5] = new QuestStep(EInteractionType.None, null, null, 388) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 388) { AethernetShortcut = new AethernetShortcut { @@ -708,18 +810,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - span11[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); - span11[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareWest }; - span11[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareEast }; - span11[9] = new QuestStep(EInteractionType.None, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -727,18 +833,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span11[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEventSquare }; - span11[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144); - span11[12] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerCactpotBoard }; - span11[13] = new QuestStep(EInteractionType.None, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -746,7 +856,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span11[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerRoundSquare @@ -760,13 +871,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; questRoot9.Author = list37; - num = 2; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span12 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference21 = ref span12[0]; + index = 2; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -774,7 +888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list39)[0]; + span3 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + ref QuestStep reference22 = ref span3[num3]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -789,39 +905,47 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 133; + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + span5 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span5[index2] = 133; obj20.InTerritory = list40; skipConditions2.AetheryteShortcutIf = obj20; obj19.SkipConditions = skipConditions2; reference22 = obj19; obj18.Steps = list39; reference21 = obj18; - ref QuestSequence reference23 = ref span12[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span13 = CollectionsMarshal.AsSpan(list41); - span13[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); - ref QuestStep reference24 = ref span13[1]; + num3 = 3; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); + num2++; + ref QuestStep reference24 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 154); - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheredItem + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span6 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span6[num4] = new GatheredItem { ItemId = 5498u, ItemCount = 10 }; questStep5.ItemsToGather = list42; reference24 = questStep5; - span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -840,13 +964,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "liza"; questRoot10.Author = list43; - num = 2; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference25 = ref span14[0]; + index = 2; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -854,21 +981,26 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span15 = CollectionsMarshal.AsSpan(list45); - span15[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) + span3 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) { TargetClass = EExtendedClassJob.BlueMage }; - span15[1] = new QuestStep(EInteractionType.Gather, null, null, 478); - ref QuestStep reference26 = ref span15[2]; + num3++; + span3[num3] = new QuestStep(EInteractionType.Gather, null, null, 478); + num3++; + ref QuestStep reference26 = ref span3[num3]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + span4 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/005/CtsSfsCharacter4_00541", @@ -880,20 +1012,25 @@ public static class AssemblyQuestLoader reference26 = obj23; obj22.Steps = list45; reference25 = obj22; - ref QuestSequence reference27 = ref span14[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list47)[0]; - QuestStep questStep6 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; + QuestStep questStep6 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span4 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/005/CtsSfsCharacter4_00541", @@ -911,13 +1048,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot11.Author = list49; - num = 2; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span16 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference29 = ref span16[0]; + index = 2; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -925,7 +1065,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list51)[0]; + span3 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + ref QuestStep reference30 = ref span3[num3]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -940,39 +1082,47 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 133; + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + span5 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span5[index2] = 133; obj27.InTerritory = list52; skipConditions3.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions3; reference30 = obj26; obj25.Steps = list51; reference29 = obj25; - ref QuestSequence reference31 = ref span16[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span17 = CollectionsMarshal.AsSpan(list53); - span17[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); - ref QuestStep reference32 = ref span17[1]; + num3 = 3; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 148); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheredItem + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span6 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span6[num4] = new GatheredItem { ItemId = 5352u, ItemCount = 10 }; questStep7.ItemsToGather = list54; reference32 = questStep7; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -991,12 +1141,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "WigglyMuffin"; questRoot12.Author = list55; - num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - ref QuestSequence reference33 = ref CollectionsMarshal.AsSpan(list56)[0]; + index = 1; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -1004,8 +1158,9 @@ public static class AssemblyQuestLoader num2 = 10; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) + span3 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) { Aetheryte = EAetheryteLocation.Ishgard, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1017,11 +1172,13 @@ public static class AssemblyQuestLoader } } }; - span18[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardSkysteelManufactory }; - span18[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardBrume, AethernetShortcut = new AethernetShortcut @@ -1030,31 +1187,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Ishgard } }; - span18[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardForgottenKnight }; - span18[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) { TargetTerritoryId = (ushort)419 }; - span18[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardAthenaeumAstrologicum }; - span18[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardTribunal }; - span18[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardSaintReymanaudsCathedral }; - span18[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardJeweledCrozier }; - span18[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardLastVigil }; @@ -1067,35 +1231,43 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; questRoot13.Author = list58; - num = 2; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span19 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference34 = ref span19[0]; + index = 2; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span20 = CollectionsMarshal.AsSpan(list60); - span20[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 820) + num3 = 3; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 820) { TargetClass = EExtendedClassJob.BlueMage }; - span20[1] = new QuestStep(EInteractionType.Gather, null, null, 820); - ref QuestStep reference35 = ref span20[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Gather, null, null, 820); + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + num4 = 1; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + span4 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter5_00640", @@ -1107,7 +1279,8 @@ public static class AssemblyQuestLoader reference35 = obj31; obj30.Steps = list60; reference34 = obj30; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -1115,12 +1288,16 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list62)[0]; + span3 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + ref QuestStep reference37 = ref span3[num3]; QuestStep questStep8 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span4 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter5_00640", @@ -1138,21 +1315,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot14.Author = list64; - num = 4; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span21 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference38 = ref span21[0]; + index = 4; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list66)[0]; + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1167,17 +1349,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 133; + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + span5 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span5[index2] = 133; obj35.InTerritory = list67; skipConditions4.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions4; reference39 = obj34; obj33.Steps = list66; reference38 = obj33; - ref QuestSequence reference40 = ref span21[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -1185,7 +1370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) + span3 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) { AethernetShortcut = new AethernetShortcut { @@ -1195,29 +1382,35 @@ public static class AssemblyQuestLoader }; obj36.Steps = list68; reference40 = obj36; - ref QuestSequence reference41 = ref span21[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span22 = CollectionsMarshal.AsSpan(list69); - span22[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); - ref QuestStep reference42 = ref span22[1]; + num3 = 3; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 148); - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span6 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span6[num4] = new GatheredItem { ItemId = 4832u, ItemCount = 10 }; questStep9.ItemsToGather = list70; reference42 = questStep9; - span22[2] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1228,7 +1421,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list69; reference41 = obj37; - ref QuestSequence reference43 = ref span21[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -1236,7 +1430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + span3 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AethernetShortcut = new AethernetShortcut { @@ -1254,21 +1450,26 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "WigglyMuffin"; questRoot15.Author = list72; - num = 1; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - ref QuestSequence reference44 = ref CollectionsMarshal.AsSpan(list73)[0]; + index = 1; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span23 = CollectionsMarshal.AsSpan(list74); - span23[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) + num3 = 2; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) { Aetheryte = EAetheryteLocation.Idyllshire, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -1280,7 +1481,8 @@ public static class AssemblyQuestLoader } } }; - span23[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) { AethernetShard = EAetheryteLocation.IdyllshireWest }; @@ -1293,13 +1495,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "liza"; questRoot16.Author = list75; - num = 2; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span24 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference45 = ref span24[0]; + index = 2; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -1307,13 +1512,16 @@ public static class AssemblyQuestLoader num2 = 4; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span25 = CollectionsMarshal.AsSpan(list77); - span25[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) + span3 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) { TargetClass = EExtendedClassJob.BlueMage }; - span25[1] = new QuestStep(EInteractionType.Gather, null, null, 886); - ref QuestStep reference46 = ref span25[2]; + num3++; + span3[num3] = new QuestStep(EInteractionType.Gather, null, null, 886); + num3++; + ref QuestStep reference46 = ref span3[num3]; QuestStep obj41 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1325,10 +1533,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 886; + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span5 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span5[index2] = 886; skipAetheryteCondition.InTerritory = list78; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; skipConditions5.AethernetShortcutIf = new SkipAetheryteCondition @@ -1337,7 +1547,8 @@ public static class AssemblyQuestLoader }; obj41.SkipConditions = skipConditions5; reference46 = obj41; - ref QuestStep reference47 = ref span25[3]; + num3++; + ref QuestStep reference47 = ref span3[num3]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut @@ -1346,10 +1557,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMattock } }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span4 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter6_00674", @@ -1361,20 +1574,25 @@ public static class AssemblyQuestLoader reference47 = obj42; obj40.Steps = list77; reference45 = obj40; - ref QuestSequence reference48 = ref span24[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list80)[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; + QuestStep questStep10 = new QuestStep(EInteractionType.None, null, null, 635); + num4 = 1; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + span4 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter6_00674", @@ -1392,13 +1610,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; questRoot17.Author = list82; - num = 2; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span26 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference50 = ref span26[0]; + index = 2; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -1406,7 +1627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list84)[0]; + span3 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref QuestStep reference51 = ref span3[num3]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1421,39 +1644,47 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 133; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span5 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span5[num4] = 133; obj46.InTerritory = list85; skipConditions6.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions6; reference51 = obj45; obj44.Steps = list84; reference50 = obj44; - ref QuestSequence reference52 = ref span26[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span27 = CollectionsMarshal.AsSpan(list86); - span27[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 138); - ref QuestStep reference53 = ref span27[1]; + num3 = 3; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 138); + num2++; + ref QuestStep reference53 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 138); - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new GatheredItem + num4 = 1; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + span6 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span6[index2] = new GatheredItem { ItemId = 5599u, ItemCount = 15 }; questStep11.ItemsToGather = list87; reference53 = questStep11; - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1000292u, new Vector3(-233.99713f, 8f, -146.86816f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000292u, new Vector3(-233.99713f, 8f, -146.86816f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1471,12 +1702,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "WigglyMuffin"; questRoot18.Author = list88; - num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - ref QuestSequence reference54 = ref CollectionsMarshal.AsSpan(list89)[0]; + index = 1; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -1484,8 +1719,9 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span28 = CollectionsMarshal.AsSpan(list90); - span28[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) + span3 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) { Aetheryte = EAetheryteLocation.RhalgrsReach, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -1497,11 +1733,13 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachWest }; - span28[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachNorthEast, AethernetShortcut = new AethernetShortcut @@ -1519,27 +1757,33 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; questRoot19.Author = list91; - num = 2; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span29 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference55 = ref span29[0]; + index = 2; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 5; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span30 = CollectionsMarshal.AsSpan(list93); - span30[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) + num3 = 5; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) { TargetClass = EExtendedClassJob.BlueMage }; - span30[1] = new QuestStep(EInteractionType.Gather, null, null, 886); - ref QuestStep reference56 = ref span30[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Gather, null, null, 886); + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1551,10 +1795,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 886; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span5 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span5[num4] = 886; skipAetheryteCondition2.InTerritory = list94; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -1563,7 +1809,8 @@ public static class AssemblyQuestLoader }; obj50.SkipConditions = skipConditions7; reference56 = obj50; - span30[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.51667f, 0f, -134.36552f), 886) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.51667f, 0f, -134.36552f), 886) { AethernetShortcut = new AethernetShortcut { @@ -1571,15 +1818,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentWesternRisensongQuarter } }; - ref QuestStep reference57 = ref span30[4]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 1035211u, new Vector3(-116.96039f, 0f, -133.95898f), 886) { StopDistance = 7f }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span4 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter7_00710", @@ -1591,7 +1841,8 @@ public static class AssemblyQuestLoader reference57 = obj51; obj49.Steps = list93; reference55 = obj49; - ref QuestSequence reference58 = ref span29[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -1599,12 +1850,16 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list96)[0]; + span3 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + ref QuestStep reference59 = ref span3[num3]; QuestStep questStep12 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span4 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter7_00710", @@ -1622,21 +1877,26 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "WigglyMuffin"; questRoot20.Author = list98; - num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list99)[0]; + index = 1; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 12; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span31 = CollectionsMarshal.AsSpan(list100); - span31[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) + num3 = 12; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) { Aetheryte = EAetheryteLocation.Kugane, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -1648,19 +1908,23 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeShiokazeHostelry }; - span31[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeMarkets }; - span31[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRubyBazaar }; - span31[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRakuzaDistrict, AethernetShortcut = new AethernetShortcut @@ -1669,7 +1933,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - span31[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeBokairoInn, AethernetShortcut = new AethernetShortcut @@ -1678,7 +1943,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - span31[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -1687,24 +1953,29 @@ public static class AssemblyQuestLoader StopDistance = 0.5f } }; - span31[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) { DisableNavmesh = true }; - span31[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) { DisableNavmesh = true }; - span31[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { DisableNavmesh = true, AethernetShard = EAetheryteLocation.KuganePier1 }; - span31[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeThavnairianConsulate }; - span31[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeSekiseigumiBarracks, AethernetShortcut = new AethernetShortcut @@ -1722,13 +1993,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "liza"; questRoot21.Author = list101; - num = 2; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span32 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference61 = ref span32[0]; + index = 2; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -1736,13 +2010,16 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span33 = CollectionsMarshal.AsSpan(list103); - span33[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) + span3 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) { TargetClass = EExtendedClassJob.BlueMage }; - span33[1] = new QuestStep(EInteractionType.Gather, null, null, 962); - ref QuestStep reference62 = ref span33[2]; + num3++; + span3[num3] = new QuestStep(EInteractionType.Gather, null, null, 962); + num3++; + ref QuestStep reference62 = ref span3[num3]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1042241u, new Vector3(222.85791f, 24.942732f, -197.77222f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -1752,10 +2029,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanLeveilleurEstate } }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span4 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -1767,20 +2046,25 @@ public static class AssemblyQuestLoader reference62 = obj55; obj54.Steps = list103; reference61 = obj54; - ref QuestSequence reference63 = ref span32[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list105)[0]; - QuestStep questStep13 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + ref QuestStep reference64 = ref span3[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span4 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -1798,12 +2082,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "WigglyMuffin"; questRoot22.Author = list107; - num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - ref QuestSequence reference65 = ref CollectionsMarshal.AsSpan(list108)[0]; + index = 1; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -1811,8 +2099,9 @@ public static class AssemblyQuestLoader num2 = 4; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span34 = CollectionsMarshal.AsSpan(list109); - span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) + span3 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) { Aetheryte = EAetheryteLocation.DomanEnclave, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -1824,15 +2113,18 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveDocks }; - span34[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveSouthern }; - span34[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveNorthern }; @@ -1845,36 +2137,44 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "liza"; questRoot23.Author = list110; - num = 2; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span35 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference66 = ref span35[0]; + index = 2; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 816) + num3 = 3; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 816) { TargetClass = EExtendedClassJob.BlueMage }; - span36[1] = new QuestStep(EInteractionType.Gather, null, null, 816); - ref QuestStep reference67 = ref span36[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Gather, null, null, 816); + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1044547u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span4 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter9_00815", @@ -1886,7 +2186,8 @@ public static class AssemblyQuestLoader reference67 = obj59; obj58.Steps = list112; reference66 = obj58; - ref QuestSequence reference68 = ref span35[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -1894,12 +2195,16 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list114)[0]; + span3 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + ref QuestStep reference69 = ref span3[num3]; QuestStep questStep14 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span4 = CollectionsMarshal.AsSpan(list115); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter9_00815", @@ -1917,21 +2222,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "WigglyMuffin"; questRoot24.Author = list116; - num = 1; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - ref QuestSequence reference70 = ref CollectionsMarshal.AsSpan(list117)[0]; + index = 1; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 8; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span37 = CollectionsMarshal.AsSpan(list118); - span37[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) + num3 = 8; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) { Aetheryte = EAetheryteLocation.Crystarium, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -1943,15 +2253,18 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCrystallineMean }; - span37[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumAmaroLaunch }; - span37[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCabinetOfCuriosity, AethernetShortcut = new AethernetShortcut @@ -1960,7 +2273,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span37[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumMarkets, AethernetShortcut = new AethernetShortcut @@ -1969,7 +2283,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span37[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumDossalGate, AethernetShortcut = new AethernetShortcut @@ -1978,11 +2293,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span37[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumPendants }; - span37[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumTemenosRookery, AetheryteShortcut = EAetheryteLocation.Crystarium @@ -1996,13 +2313,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "liza"; questRoot25.Author = list119; - num = 2; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span38 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference71 = ref span38[0]; + index = 2; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -2010,23 +2330,29 @@ public static class AssemblyQuestLoader num2 = 4; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span39 = CollectionsMarshal.AsSpan(list121); - span39[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 956) + span3 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 956) { TargetClass = EExtendedClassJob.BlueMage }; - span39[1] = new QuestStep(EInteractionType.Gather, null, null, 956); - span39[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.066154f, -29.530005f, -55.85129f), 956) + num3++; + span3[num3] = new QuestStep(EInteractionType.Gather, null, null, 956); + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.066154f, -29.530005f, -55.85129f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - ref QuestStep reference72 = ref span39[3]; + num3++; + ref QuestStep reference72 = ref span3[num3]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956); - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new DialogueChoice + num4 = 1; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + span4 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter10_00842", @@ -2038,20 +2364,25 @@ public static class AssemblyQuestLoader reference72 = questStep15; obj62.Steps = list121; reference71 = obj62; - ref QuestSequence reference73 = ref span38[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list123)[0]; - QuestStep questStep16 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; + QuestStep questStep16 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span4 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter10_00842", @@ -2069,12 +2400,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "WigglyMuffin"; questRoot26.Author = list125; - num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - ref QuestSequence reference75 = ref CollectionsMarshal.AsSpan(list126)[0]; + index = 1; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -2082,8 +2417,9 @@ public static class AssemblyQuestLoader num2 = 5; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span40 = CollectionsMarshal.AsSpan(list127); - span40[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) + span3 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) { Aetheryte = EAetheryteLocation.Eulmore, AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -2095,15 +2431,18 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreGloryGate }; - span40[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreMainstay }; - span40[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreSoutheastDerelict, AethernetShortcut = new AethernetShortcut @@ -2112,7 +2451,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - span40[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreNightsoilPots }; @@ -2125,36 +2465,44 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot27.Author = list128; - num = 2; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span41 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference76 = ref span41[0]; + index = 2; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span42 = CollectionsMarshal.AsSpan(list130); - span42[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) + num3 = 3; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) { TargetClass = EExtendedClassJob.BlueMage }; - span42[1] = new QuestStep(EInteractionType.Gather, null, null, 962); - ref QuestStep reference77 = ref span42[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Gather, null, null, 962); + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice + num4 = 1; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + span4 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/CtsSfsCharacter11_00909", @@ -2166,7 +2514,8 @@ public static class AssemblyQuestLoader reference77 = obj66; obj65.Steps = list130; reference76 = obj65; - ref QuestSequence reference78 = ref span41[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -2174,12 +2523,16 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list132)[0]; + span3 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + ref QuestStep reference79 = ref span3[num3]; QuestStep questStep17 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span4 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -2197,21 +2550,26 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "WigglyMuffin"; questRoot28.Author = list134; - num = 1; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - ref QuestSequence reference80 = ref CollectionsMarshal.AsSpan(list135)[0]; + index = 1; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 8; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span43 = CollectionsMarshal.AsSpan(list136); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + num3 = 8; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -2223,27 +2581,33 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanScholarsHarbor }; - span43[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan }; - span43[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanRostra }; - span43[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanLeveilleurEstate }; - span43[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanJourneysEnd }; - span43[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanBaldesionAnnex, AethernetShortcut = new AethernetShortcut @@ -2252,7 +2616,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayan } }; - span43[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanStudium }; @@ -2265,12 +2630,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "WigglyMuffin"; questRoot29.Author = list137; - num = 1; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - ref QuestSequence reference81 = ref CollectionsMarshal.AsSpan(list138)[0]; + index = 1; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -2278,8 +2647,9 @@ public static class AssemblyQuestLoader num2 = 9; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span44 = CollectionsMarshal.AsSpan(list139); - span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) + span3 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) { Aetheryte = EAetheryteLocation.RadzAtHan, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -2291,23 +2661,28 @@ public static class AssemblyQuestLoader } } }; - span44[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAlzadaalsPeace }; - span44[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAirship }; - span44[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMeghaduta }; - span44[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanRuveydahFibers }; - span44[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHighCrucible, AethernetShortcut = new AethernetShortcut @@ -2316,7 +2691,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - span44[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMehrydesMeyhane, AethernetShortcut = new AethernetShortcut @@ -2325,7 +2701,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - span44[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanKama, AethernetShortcut = new AethernetShortcut @@ -2334,7 +2711,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - span44[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost, AethernetShortcut = new AethernetShortcut @@ -2352,21 +2730,26 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "WigglyMuffin"; questRoot30.Author = list140; - num = 1; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - ref QuestSequence reference82 = ref CollectionsMarshal.AsSpan(list141)[0]; + index = 1; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 10; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span45 = CollectionsMarshal.AsSpan(list142); - span45[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) + num3 = 10; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) { Aetheryte = EAetheryteLocation.Tuliyollal, AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -2378,12 +2761,15 @@ public static class AssemblyQuestLoader } } }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); - span45[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBrightploomPost }; - span45[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheResplendentQuarter, AethernetShortcut = new AethernetShortcut @@ -2392,12 +2778,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Tuliyollal } }; - span45[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { Comment = "Dirigible Landing", AethernetShard = EAetheryteLocation.TuliyollalDirigibleLanding }; - span45[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheForardCabins, AethernetShortcut = new AethernetShortcut @@ -2406,11 +2794,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - span45[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBaysideBevyMarketplace }; - span45[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) { Comment = "Resplendent Quarter Lamp nav", AethernetShortcut = new AethernetShortcut @@ -2419,11 +2809,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - span45[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalVollokShoonsa }; - span45[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalWachumeqimeqi, AethernetShortcut = new AethernetShortcut @@ -2441,12 +2833,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "WigglyMuffin"; questRoot31.Author = list143; - num = 1; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - ref QuestSequence reference83 = ref CollectionsMarshal.AsSpan(list144)[0]; + index = 1; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -2454,8 +2850,9 @@ public static class AssemblyQuestLoader num2 = 11; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span46 = CollectionsMarshal.AsSpan(list145); - span46[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) + span3 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.SolutionNine, @@ -2468,7 +2865,8 @@ public static class AssemblyQuestLoader } } }; - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.08527276f, 7.785223f, 28.881784f), 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.08527276f, 7.785223f, 28.881784f), 1186) { SkipConditions = new SkipConditions { @@ -2483,11 +2881,13 @@ public static class AssemblyQuestLoader } } }; - span46[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineInformationCenter }; - span46[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNexusArcade, AethernetShortcut = new AethernetShortcut @@ -2496,11 +2896,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - span46[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResidentialSector }; - span46[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -2509,11 +2911,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - span46[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResolution }; - span46[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.50943f, 0.5499997f, 4.953261f), 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.50943f, 0.5499997f, 4.953261f), 1186) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -2522,15 +2926,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - span46[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTrueVue }; - span46[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNeonStein }; - span46[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTheArcadion }; @@ -2543,21 +2950,26 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "Cacahuetes"; questRoot32.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span47 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference84 = ref span47[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -2575,7 +2987,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list148; reference84 = obj72; - ref QuestSequence reference85 = ref span47[1]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -2583,12 +2996,16 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list149)[0]; + span3 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + ref QuestStep reference86 = ref span3[num3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + num4 = 1; + List list150 = new List(num4); + CollectionsMarshal.SetCount(list150, num4); + span4 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC000_00021_Q1_000_1") @@ -2597,16 +3014,18 @@ public static class AssemblyQuestLoader reference86 = questStep18; obj73.Steps = list149; reference85 = obj73; - ref QuestSequence reference87 = ref span47[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span48 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference88 = ref span48[0]; + num3 = 3; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -2616,121 +3035,166 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - ref ComplexCombatData reference89 = ref CollectionsMarshal.AsSpan(list152)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span7 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + ref ComplexCombatData reference89 = ref span7[num4]; ComplexCombatData obj76 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - int num4 = 6; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span49 = CollectionsMarshal.AsSpan(list153); - span49[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = null; + int num5 = 6; + List list153 = new List(num5); + CollectionsMarshal.SetCount(list153, num5); + Span span8 = CollectionsMarshal.AsSpan(list153); + int num6 = 0; + span8[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj76.CompletionQuestVariablesFlags = list153; reference89 = obj76; obj75.ComplexCombatData = list152; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span50 = CollectionsMarshal.AsSpan(list154); - span50[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = null; + num4 = 6; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + span8 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span8[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj75.CompletionQuestVariablesFlags = list154; reference88 = obj75; - ref QuestStep reference90 = ref span48[1]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - ref ComplexCombatData reference91 = ref CollectionsMarshal.AsSpan(list155)[0]; + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span7 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + ref ComplexCombatData reference91 = ref span7[num4]; ComplexCombatData obj78 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list156 = new List(num4); - CollectionsMarshal.SetCount(list156, num4); - Span span51 = CollectionsMarshal.AsSpan(list156); - span51[0] = null; - span51[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = null; + num6 = 6; + List list156 = new List(num6); + CollectionsMarshal.SetCount(list156, num6); + span8 = CollectionsMarshal.AsSpan(list156); + num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj78.CompletionQuestVariablesFlags = list156; reference91 = obj78; obj77.ComplexCombatData = list155; - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span52 = CollectionsMarshal.AsSpan(list157); - span52[0] = null; - span52[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = null; + num4 = 6; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + span8 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj77.CompletionQuestVariablesFlags = list157; reference90 = obj77; - ref QuestStep reference92 = ref span48[2]; + num2++; + ref QuestStep reference92 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - ref ComplexCombatData reference93 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span7 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + ref ComplexCombatData reference93 = ref span7[num4]; ComplexCombatData obj80 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list159 = new List(num4); - CollectionsMarshal.SetCount(list159, num4); - Span span53 = CollectionsMarshal.AsSpan(list159); - span53[0] = null; - span53[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = null; + num5 = 6; + List list159 = new List(num5); + CollectionsMarshal.SetCount(list159, num5); + span8 = CollectionsMarshal.AsSpan(list159); + num6 = 0; + span8[num6] = null; + num6++; + span8[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj80.CompletionQuestVariablesFlags = list159; reference93 = obj80; obj79.ComplexCombatData = list158; - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span54 = CollectionsMarshal.AsSpan(list160); - span54[0] = null; - span54[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = null; + num4 = 6; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + span8 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj79.CompletionQuestVariablesFlags = list160; reference92 = obj79; obj74.Steps = list151; reference87 = obj74; - ref QuestSequence reference94 = ref span47[3]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -2738,7 +3202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + span3 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -2747,13 +3213,6 @@ public static class AssemblyQuestLoader From = EAetheryteLocation.Gridania, To = EAetheryteLocation.GridaniaArcher }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - }, NextQuestId = new QuestId(46) }; obj81.Steps = list161; @@ -2765,21 +3224,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "Cacahuetes"; questRoot33.Author = list162; - num = 4; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span55 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference95 = ref span55[0]; + index = 4; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list164)[0]; + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -2794,17 +3258,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = 133; + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span5 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span5[num4] = 133; obj84.InTerritory = list165; skipConditions8.AetheryteShortcutIf = obj84; obj83.SkipConditions = skipConditions8; reference96 = obj83; obj82.Steps = list164; reference95 = obj82; - ref QuestSequence reference97 = ref span55[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -2812,12 +3279,16 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list166)[0]; + span3 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + ref QuestStep reference98 = ref span3[num3]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + num4 = 1; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + span4 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ000_00022_Q1_000_1") @@ -2826,16 +3297,18 @@ public static class AssemblyQuestLoader reference98 = questStep19; obj85.Steps = list166; reference97 = obj85; - ref QuestSequence reference99 = ref span55[2]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span56 = CollectionsMarshal.AsSpan(list168); - ref QuestStep reference100 = ref span56[0]; + num3 = 3; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -2845,121 +3318,166 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - ref ComplexCombatData reference101 = ref CollectionsMarshal.AsSpan(list169)[0]; + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span7 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + ref ComplexCombatData reference101 = ref span7[num4]; ComplexCombatData obj88 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - num4 = 6; - List list170 = new List(num4); - CollectionsMarshal.SetCount(list170, num4); - Span span57 = CollectionsMarshal.AsSpan(list170); - span57[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + num6 = 6; + List list170 = new List(num6); + CollectionsMarshal.SetCount(list170, num6); + span8 = CollectionsMarshal.AsSpan(list170); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj88.CompletionQuestVariablesFlags = list170; reference101 = obj88; obj87.ComplexCombatData = list169; - num3 = 6; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - Span span58 = CollectionsMarshal.AsSpan(list171); - span58[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + num4 = 6; + List list171 = new List(num4); + CollectionsMarshal.SetCount(list171, num4); + span8 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span8[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj87.CompletionQuestVariablesFlags = list171; reference100 = obj87; - ref QuestStep reference102 = ref span56[1]; + num2++; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj89 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - ref ComplexCombatData reference103 = ref CollectionsMarshal.AsSpan(list172)[0]; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span7 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + ref ComplexCombatData reference103 = ref span7[num4]; ComplexCombatData obj90 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list173 = new List(num4); - CollectionsMarshal.SetCount(list173, num4); - Span span59 = CollectionsMarshal.AsSpan(list173); - span59[0] = null; - span59[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num5 = 6; + List list173 = new List(num5); + CollectionsMarshal.SetCount(list173, num5); + span8 = CollectionsMarshal.AsSpan(list173); + num6 = 0; + span8[num6] = null; + num6++; + span8[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj90.CompletionQuestVariablesFlags = list173; reference103 = obj90; obj89.ComplexCombatData = list172; - num3 = 6; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span60 = CollectionsMarshal.AsSpan(list174); - span60[0] = null; - span60[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = null; + num4 = 6; + List list174 = new List(num4); + CollectionsMarshal.SetCount(list174, num4); + span8 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj89.CompletionQuestVariablesFlags = list174; reference102 = obj89; - ref QuestStep reference104 = ref span56[2]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - ref ComplexCombatData reference105 = ref CollectionsMarshal.AsSpan(list175)[0]; + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span7 = CollectionsMarshal.AsSpan(list175); + num4 = 0; + ref ComplexCombatData reference105 = ref span7[num4]; ComplexCombatData obj92 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list176 = new List(num4); - CollectionsMarshal.SetCount(list176, num4); - Span span61 = CollectionsMarshal.AsSpan(list176); - span61[0] = null; - span61[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = null; + num6 = 6; + List list176 = new List(num6); + CollectionsMarshal.SetCount(list176, num6); + span8 = CollectionsMarshal.AsSpan(list176); + num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj92.CompletionQuestVariablesFlags = list176; reference105 = obj92; obj91.ComplexCombatData = list175; - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span62 = CollectionsMarshal.AsSpan(list177); - span62[0] = null; - span62[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = null; + num4 = 6; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + span8 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj91.CompletionQuestVariablesFlags = list177; reference104 = obj91; obj86.Steps = list168; reference99 = obj86; - ref QuestSequence reference106 = ref span55[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -2967,7 +3485,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + span3 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -2986,21 +3506,26 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "Cacahuetes"; questRoot34.Author = list179; - num = 4; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span63 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference107 = ref span63[0]; + index = 4; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list181)[0]; + num3 = 1; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3015,17 +3540,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = 132; + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span5 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span5[num4] = 132; obj96.InTerritory = list182; skipConditions9.AetheryteShortcutIf = obj96; obj95.SkipConditions = skipConditions9; reference108 = obj95; obj94.Steps = list181; reference107 = obj94; - ref QuestSequence reference109 = ref span63[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -3033,12 +3561,16 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list183)[0]; + span3 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + ref QuestStep reference110 = ref span3[num3]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + num4 = 1; + List list184 = new List(num4); + CollectionsMarshal.SetCount(list184, num4); + span4 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC000_00023_Q1_000_1") @@ -3047,16 +3579,18 @@ public static class AssemblyQuestLoader reference110 = questStep20; obj97.Steps = list183; reference109 = obj97; - ref QuestSequence reference111 = ref span63[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span64 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference112 = ref span64[0]; + num3 = 3; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -3066,121 +3600,166 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - ref ComplexCombatData reference113 = ref CollectionsMarshal.AsSpan(list186)[0]; + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span7 = CollectionsMarshal.AsSpan(list186); + num4 = 0; + ref ComplexCombatData reference113 = ref span7[num4]; ComplexCombatData obj100 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - num4 = 6; - List list187 = new List(num4); - CollectionsMarshal.SetCount(list187, num4); - Span span65 = CollectionsMarshal.AsSpan(list187); - span65[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = null; + num5 = 6; + List list187 = new List(num5); + CollectionsMarshal.SetCount(list187, num5); + span8 = CollectionsMarshal.AsSpan(list187); + num6 = 0; + span8[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj100.CompletionQuestVariablesFlags = list187; reference113 = obj100; obj99.ComplexCombatData = list186; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span66 = CollectionsMarshal.AsSpan(list188); - span66[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = null; + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + span8 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span8[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj99.CompletionQuestVariablesFlags = list188; reference112 = obj99; - ref QuestStep reference114 = ref span64[1]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - ref ComplexCombatData reference115 = ref CollectionsMarshal.AsSpan(list189)[0]; + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span7 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + ref ComplexCombatData reference115 = ref span7[num4]; ComplexCombatData obj102 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list190 = new List(num4); - CollectionsMarshal.SetCount(list190, num4); - Span span67 = CollectionsMarshal.AsSpan(list190); - span67[0] = null; - span67[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = null; + num6 = 6; + List list190 = new List(num6); + CollectionsMarshal.SetCount(list190, num6); + span8 = CollectionsMarshal.AsSpan(list190); + num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj102.CompletionQuestVariablesFlags = list190; reference115 = obj102; obj101.ComplexCombatData = list189; - num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span68 = CollectionsMarshal.AsSpan(list191); - span68[0] = null; - span68[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = null; + num4 = 6; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + span8 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj101.CompletionQuestVariablesFlags = list191; reference114 = obj101; - ref QuestStep reference116 = ref span64[2]; + num2++; + ref QuestStep reference116 = ref span3[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - ref ComplexCombatData reference117 = ref CollectionsMarshal.AsSpan(list192)[0]; + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span7 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + ref ComplexCombatData reference117 = ref span7[num4]; ComplexCombatData obj104 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list193 = new List(num4); - CollectionsMarshal.SetCount(list193, num4); - Span span69 = CollectionsMarshal.AsSpan(list193); - span69[0] = null; - span69[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = null; + num5 = 6; + List list193 = new List(num5); + CollectionsMarshal.SetCount(list193, num5); + span8 = CollectionsMarshal.AsSpan(list193); + num6 = 0; + span8[num6] = null; + num6++; + span8[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj104.CompletionQuestVariablesFlags = list193; reference117 = obj104; obj103.ComplexCombatData = list192; - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span70 = CollectionsMarshal.AsSpan(list194); - span70[0] = null; - span70[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = null; + num4 = 6; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + span8 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj103.CompletionQuestVariablesFlags = list194; reference116 = obj103; obj98.Steps = list185; reference111 = obj98; - ref QuestSequence reference118 = ref span63[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -3188,7 +3767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + span3 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3207,24 +3788,30 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; questRoot35.Author = list196; - num = 2; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span71 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference119 = ref span71[0]; + index = 2; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000206u, new Vector3(193.59119f, -0.015319824f, 42.160645f), 132); + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000206u, new Vector3(193.59119f, -0.015319824f, 42.160645f), 132); obj106.Steps = list198; reference119 = obj106; - ref QuestSequence reference120 = ref span71[1]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -3232,7 +3819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) + span3 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3249,24 +3838,30 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; questRoot36.Author = list200; - num = 3; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span72 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference121 = ref span72[0]; + index = 3; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133); + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133); obj108.Steps = list202; reference121 = obj108; - ref QuestSequence reference122 = ref span72[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -3274,7 +3869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list203)[0]; + span3 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + ref QuestStep reference123 = ref span3[num3]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, null, new Vector3(112.12561f, 16.504576f, -268.8553f), 148) { AethernetShortcut = new AethernetShortcut @@ -3284,45 +3881,56 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - ref ComplexCombatData reference124 = ref CollectionsMarshal.AsSpan(list204)[0]; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span7 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + ref ComplexCombatData reference124 = ref span7[num4]; ComplexCombatData obj111 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 6u }; - num4 = 6; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span73 = CollectionsMarshal.AsSpan(list205); - span73[0] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = null; + num6 = 6; + List list205 = new List(num6); + CollectionsMarshal.SetCount(list205, num6); + span8 = CollectionsMarshal.AsSpan(list205); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj111.CompletionQuestVariablesFlags = list205; reference124 = obj111; obj110.ComplexCombatData = list204; reference123 = obj110; obj109.Steps = list203; reference122 = obj109; - ref QuestSequence reference125 = ref span72[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span74 = CollectionsMarshal.AsSpan(list206); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.21268f, 25.16017f, -318.4288f), 148) + num3 = 2; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.21268f, 25.16017f, -318.4288f), 148) { TargetTerritoryId = (ushort)132 }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3339,13 +3947,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "UcanPatates"; questRoot37.Author = list207; - num = 3; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span75 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference126 = ref span75[0]; + index = 3; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -3353,7 +3964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000194u, new Vector3(-16.281433f, -3.2499998f, 41.000854f), 132) + span3 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000194u, new Vector3(-16.281433f, -3.2499998f, 41.000854f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -3366,15 +3979,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list209; reference126 = obj113; - ref QuestSequence reference127 = ref span75[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1000686u, new Vector3(-66.36151f, -3.896366f, 67.00232f), 132) + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000686u, new Vector3(-66.36151f, -3.896366f, 67.00232f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -3387,7 +4003,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list210; reference127 = obj114; - ref QuestSequence reference128 = ref span75[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -3395,7 +4012,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list211)[0]; + span3 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + ref QuestStep reference129 = ref span3[num3]; QuestStep obj116 = new QuestStep(EInteractionType.CompleteQuest, 1000789u, new Vector3(-33.76825f, 7.3172073f, -117.052f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3410,10 +4029,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 132; + num4 = 1; + List list212 = new List(num4); + CollectionsMarshal.SetCount(list212, num4); + span5 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span5[index2] = 132; obj117.InTerritory = list212; skipConditions10.AetheryteShortcutIf = obj117; obj116.SkipConditions = skipConditions10; @@ -3427,38 +4048,46 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "liza"; questRoot38.Author = list213; - num = 2; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span76 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference130 = ref span76[0]; + index = 2; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list215)[0]; + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference131 = ref span3[num2]; QuestStep obj119 = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 132; + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span5 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span5[num4] = 132; skipStepConditions.NotInTerritory = list216; skipConditions11.StepIf = skipStepConditions; obj119.SkipConditions = skipConditions11; reference131 = obj119; obj118.Steps = list215; reference130 = obj118; - ref QuestSequence reference132 = ref span76[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -3466,12 +4095,14 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span77 = CollectionsMarshal.AsSpan(list217); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(158.06026f, -12.97808f, 158.08466f), 132) + span3 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(158.06026f, -12.97808f, 158.08466f), 132) { TargetTerritoryId = (ushort)148 }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj120.Steps = list217; reference132 = obj120; questRoot38.QuestSequence = list214; @@ -3481,21 +4112,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot39.Author = list218; - num = 10; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span78 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference133 = ref span78[0]; + index = 10; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + num3 = 1; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -3508,7 +4144,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list220; reference133 = obj121; - ref QuestSequence reference134 = ref span78[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -3516,7 +4153,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1009949u, new Vector3(-325.70386f, 7.228748f, -215.16754f), 133) + span3 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009949u, new Vector3(-325.70386f, 7.228748f, -215.16754f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3527,15 +4166,18 @@ public static class AssemblyQuestLoader }; obj122.Steps = list221; reference134 = obj122; - ref QuestSequence reference135 = ref span78[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133) + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3545,7 +4187,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list222; reference135 = obj123; - ref QuestSequence reference136 = ref span78[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -3553,66 +4196,91 @@ public static class AssemblyQuestLoader num2 = 3; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span79 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference137 = ref span79[0]; + span3 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + ref QuestStep reference137 = ref span3[num3]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span80 = CollectionsMarshal.AsSpan(list224); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + span8 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list224; reference137 = questStep21; - ref QuestStep reference138 = ref span79[1]; + num3++; + ref QuestStep reference138 = ref span3[num3]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1000227u, new Vector3(168.62744f, 15.699999f, -65.690125f), 133); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span81 = CollectionsMarshal.AsSpan(list225); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span8 = CollectionsMarshal.AsSpan(list225); + 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); questStep22.CompletionQuestVariablesFlags = list225; reference138 = questStep22; - ref QuestStep reference139 = ref span79[2]; + num3++; + ref QuestStep reference139 = ref span3[num3]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 1000228u, new Vector3(168.20007f, 15.69998f, -64.83563f), 133) { StopDistance = 5f }; - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span82 = CollectionsMarshal.AsSpan(list226); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + span8 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list226; reference139 = obj125; obj124.Steps = list223; reference136 = obj124; - ref QuestSequence reference140 = ref span78[4]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); obj126.Steps = list227; reference140 = obj126; - ref QuestSequence reference141 = ref span78[5]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 5 @@ -3620,21 +4288,27 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1000243u, new Vector3(170.03125f, 15.699999f, -127.03143f), 133); + span3 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000243u, new Vector3(170.03125f, 15.699999f, -127.03143f), 133); obj127.Steps = list228; reference141 = obj127; - ref QuestSequence reference142 = ref span78[6]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); + num3 = 1; + List list229 = new List(num3); + CollectionsMarshal.SetCount(list229, num3); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); obj128.Steps = list229; reference142 = obj128; - ref QuestSequence reference143 = ref span78[7]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 7 @@ -3642,7 +4316,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list230)[0]; + span3 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + ref QuestStep reference144 = ref span3[num3]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-374.96555f, 63.686344f, -206.74146f), 148) { StopDistance = 0.5f, @@ -3654,29 +4330,35 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 2863u; + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span9 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span9[num4] = 2863u; obj130.KillEnemyDataIds = list231; reference144 = obj130; obj129.Steps = list230; reference143 = obj129; - ref QuestSequence reference145 = ref span78[8]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132) + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj131.Steps = list232; reference145 = obj131; - ref QuestSequence reference146 = ref span78[9]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -3684,7 +4366,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009953u, new Vector3(31.5708f, -19.000002f, 100.48059f), 132) + span3 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1009953u, new Vector3(31.5708f, -19.000002f, 100.48059f), 132) { AethernetShortcut = new AethernetShortcut { @@ -3702,21 +4386,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "Cacahuetes"; questRoot40.Author = list234; - num = 4; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span83 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference147 = ref span83[0]; + index = 4; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list236)[0]; + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + ref QuestStep reference148 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3731,17 +4420,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = 133; + num4 = 1; + List list237 = new List(num4); + CollectionsMarshal.SetCount(list237, num4); + span5 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span5[index2] = 133; obj135.InTerritory = list237; skipConditions12.AetheryteShortcutIf = obj135; obj134.SkipConditions = skipConditions12; reference148 = obj134; obj133.Steps = list236; reference147 = obj133; - ref QuestSequence reference149 = ref span83[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -3749,8 +4441,9 @@ public static class AssemblyQuestLoader num2 = 3; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span84 = CollectionsMarshal.AsSpan(list238); - span84[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) + span3 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -3760,70 +4453,92 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference150 = ref span84[1]; + num3++; + ref QuestStep reference150 = ref span3[num3]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 142u, new Vector3(514.06104f, 44.169823f, -42.008118f), 148) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 142u; + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span9 = CollectionsMarshal.AsSpan(list239); + num4 = 0; + span9[num4] = 142u; obj137.KillEnemyDataIds = list239; - num3 = 6; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + num4 = 6; + List list240 = new List(num4); + CollectionsMarshal.SetCount(list240, num4); + span8 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span8[index2] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj137.CompletionQuestVariablesFlags = list240; reference150 = obj137; - span84[2] = new QuestStep(EInteractionType.Interact, 2000966u, new Vector3(514.8546f, 43.778076f, -48.66101f), 148); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2000966u, new Vector3(514.8546f, 43.778076f, -48.66101f), 148); obj136.Steps = list238; reference149 = obj136; - ref QuestSequence reference151 = ref span83[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span86 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference152 = ref span86[0]; + num3 = 2; + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(211.82294f, 23.458103f, 157.57333f), 148) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = 21u; + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span9 = CollectionsMarshal.AsSpan(list242); + num4 = 0; + span9[num4] = 21u; obj139.KillEnemyDataIds = list242; - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span87 = CollectionsMarshal.AsSpan(list243); - span87[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + num4 = 6; + List list243 = new List(num4); + CollectionsMarshal.SetCount(list243, num4); + span8 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span8[index2] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj139.CompletionQuestVariablesFlags = list243; reference152 = obj139; - span86[1] = new QuestStep(EInteractionType.Interact, 2000917u, new Vector3(215.99133f, 23.5141f, 153.1853f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2000917u, new Vector3(215.99133f, 23.5141f, 153.1853f), 148); obj138.Steps = list241; reference151 = obj138; - ref QuestSequence reference153 = ref span83[3]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -3831,7 +4546,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + span3 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3850,21 +4567,26 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "liza"; questRoot41.Author = list245; - num = 9; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span88 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference154 = ref span88[0]; + index = 9; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -3877,7 +4599,8 @@ public static class AssemblyQuestLoader }; obj141.Steps = list247; reference154 = obj141; - ref QuestSequence reference155 = ref span88[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -3885,7 +4608,9 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1009781u, new Vector3(-89.829956f, 5.2000036f, 45.426025f), 131) + span3 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009781u, new Vector3(-89.829956f, 5.2000036f, 45.426025f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -3896,83 +4621,114 @@ public static class AssemblyQuestLoader }; obj142.Steps = list248; reference155 = obj142; - ref QuestSequence reference156 = ref span88[2]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span89 = CollectionsMarshal.AsSpan(list249); - ref QuestStep reference157 = ref span89[0]; + num3 = 5; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 2004614u, new Vector3(-80.76605f, 8.895996f, -16.739136f), 131) { IgnoreDistanceToObject = true, ItemId = 2001459u }; - num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span90 = CollectionsMarshal.AsSpan(list250); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span8 = CollectionsMarshal.AsSpan(list250); + 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); obj144.CompletionQuestVariablesFlags = list250; reference157 = obj144; - ref QuestStep reference158 = ref span89[1]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj145 = new QuestStep(EInteractionType.UseItem, 2004616u, new Vector3(-98.1308f, 8.987488f, -16.617126f), 131) { IgnoreDistanceToObject = true, ItemId = 2001459u }; - num3 = 6; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span91 = CollectionsMarshal.AsSpan(list251); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + span8 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list251; reference158 = obj145; - span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.42244f, 7.9935846f, -8.936225f), 131); - ref QuestStep reference159 = ref span89[3]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.42244f, 7.9935846f, -8.936225f), 131); + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1001859u, new Vector3(-142.71765f, 11.999999f, -15.610046f), 130); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span92 = CollectionsMarshal.AsSpan(list252); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span8 = CollectionsMarshal.AsSpan(list252); + 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)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list252; reference159 = questStep23; - ref QuestStep reference160 = ref span89[4]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1009789u, new Vector3(-159.68573f, 12.596368f, 0.869751f), 130); - num3 = 6; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span93 = CollectionsMarshal.AsSpan(list253); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list253 = new List(num4); + CollectionsMarshal.SetCount(list253, num4); + span8 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list253; reference160 = questStep24; obj143.Steps = list249; reference156 = obj143; - ref QuestSequence reference161 = ref span88[3]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 @@ -3980,26 +4736,32 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span94 = CollectionsMarshal.AsSpan(list254); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.18245f, 9.232903f, 9.133285f), 130); - span94[1] = new QuestStep(EInteractionType.Interact, 1009785u, new Vector3(-88.15143f, 5.200004f, 45.303955f), 131); + span3 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.18245f, 9.232903f, 9.133285f), 130); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009785u, new Vector3(-88.15143f, 5.200004f, 45.303955f), 131); obj146.Steps = list254; reference161 = obj146; - ref QuestSequence reference162 = ref span88[4]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Emote, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131) + num3 = 1; + List list255 = new List(num3); + CollectionsMarshal.SetCount(list255, num3); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131) { Emote = EEmote.Welcome }; obj147.Steps = list255; reference162 = obj147; - ref QuestSequence reference163 = ref span88[5]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 5 @@ -4007,23 +4769,29 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span95 = CollectionsMarshal.AsSpan(list256); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.38632f, 7.6503563f, 9.034383f), 131); - span95[1] = new QuestStep(EInteractionType.Interact, 1009792u, new Vector3(-135.36285f, 10.9999895f, 0.015197754f), 130); + span3 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.38632f, 7.6503563f, 9.034383f), 131); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009792u, new Vector3(-135.36285f, 10.9999895f, 0.015197754f), 130); obj148.Steps = list256; reference163 = obj148; - ref QuestSequence reference164 = ref span88[6]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1009791u, new Vector3(-13.778931f, 3.9999998f, -151.4458f), 130); + num3 = 1; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009791u, new Vector3(-13.778931f, 3.9999998f, -151.4458f), 130); obj149.Steps = list257; reference164 = obj149; - ref QuestSequence reference165 = ref span88[7]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 7 @@ -4031,33 +4799,40 @@ public static class AssemblyQuestLoader num2 = 2; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span96 = CollectionsMarshal.AsSpan(list258); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.151344f, 4.0195827f, -165.77715f), 130); - ref QuestStep reference166 = ref span96[1]; + span3 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.151344f, 4.0195827f, -165.77715f), 130); + num3++; + ref QuestStep reference166 = ref span3[num3]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(-172.42809f, 16.059729f, 276.30084f), 141) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span97 = CollectionsMarshal.AsSpan(list259); - span97[0] = 2853u; - span97[1] = 3120u; + index2 = 2; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span9 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span9[num4] = 2853u; + num4++; + span9[num4] = 3120u; obj151.KillEnemyDataIds = list259; reference166 = obj151; obj150.Steps = list258; reference165 = obj150; - ref QuestSequence reference167 = ref span88[8]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009794u, new Vector3(-174.45642f, 16.149345f, 275.6847f), 141) + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009794u, new Vector3(-174.45642f, 16.149345f, 275.6847f), 141) { NextQuestId = new QuestId(1573) }; @@ -4070,13 +4845,16 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; questRoot42.Author = list261; - num = 3; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span98 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference168 = ref span98[0]; + index = 3; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -4084,102 +4862,141 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); + span3 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); obj153.Steps = list263; reference168 = obj153; - ref QuestSequence reference169 = ref span98[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span99 = CollectionsMarshal.AsSpan(list264); - ref QuestStep reference170 = ref span99[0]; + num3 = 5; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.92119f, 15.700001f, -122.177925f), 133); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span100 = CollectionsMarshal.AsSpan(list265); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + span8 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list265; skipConditions13.StepIf = skipStepConditions2; questStep25.SkipConditions = skipConditions13; reference170 = questStep25; - ref QuestStep reference171 = ref span99[1]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1000238u, new Vector3(155.41309f, 15.700001f, -121.812805f), 133); - num3 = 6; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - Span span101 = CollectionsMarshal.AsSpan(list266); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span8 = CollectionsMarshal.AsSpan(list266); + 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); questStep26.CompletionQuestVariablesFlags = list266; reference171 = questStep26; - ref QuestStep reference172 = ref span99[2]; + num2++; + ref QuestStep reference172 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(162.74281f, 15.699926f, -59.43834f), 133); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span102 = CollectionsMarshal.AsSpan(list267); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list267 = new List(num4); + CollectionsMarshal.SetCount(list267, num4); + span8 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list267; skipConditions14.StepIf = skipStepConditions3; questStep27.SkipConditions = skipConditions14; reference172 = questStep27; - ref QuestStep reference173 = ref span99[3]; + num2++; + ref QuestStep reference173 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1000218u, new Vector3(164.72107f, 15.699947f, -58.18268f), 133); - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span103 = CollectionsMarshal.AsSpan(list268); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span8 = CollectionsMarshal.AsSpan(list268); + 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)4, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list268; reference173 = questStep28; - ref QuestStep reference174 = ref span99[4]; + num2++; + ref QuestStep reference174 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1000214u, new Vector3(151.4762f, 15.699964f, -63.920105f), 133) { StopDistance = 5f }; - num3 = 6; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span104 = CollectionsMarshal.AsSpan(list269); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + span8 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj155.CompletionQuestVariablesFlags = list269; reference174 = obj155; obj154.Steps = list264; reference169 = obj154; - ref QuestSequence reference175 = ref span98[2]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -4187,7 +5004,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) + span3 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut { @@ -4204,26 +5023,33 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list271); + index = 0; + span[index] = "liza"; questRoot43.Author = list271; - num = 2; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span105 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference176 = ref span105[0]; + index = 2; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + span2 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list273)[0]; - QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1001148u, new Vector3(117.112915f, -12.506256f, 143.63306f), 183); num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new DialogueChoice + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference177 = ref span3[num2]; + QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1001148u, new Vector3(117.112915f, -12.506256f, 143.63306f), 183); + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span4 = CollectionsMarshal.AsSpan(list274); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningGridania", @@ -4234,7 +5060,8 @@ public static class AssemblyQuestLoader reference177 = questStep29; obj157.Steps = list273; reference176 = obj157; - ref QuestSequence reference178 = ref span105[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -4242,7 +5069,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + span3 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj158.Steps = list275; reference178 = obj158; questRoot43.QuestSequence = list272; @@ -4252,24 +5081,30 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "liza"; questRoot44.Author = list276; - num = 3; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span106 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference179 = ref span106[0]; + index = 3; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); obj159.Steps = list278; reference179 = obj159; - ref QuestSequence reference180 = ref span106[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -4277,102 +5112,147 @@ public static class AssemblyQuestLoader num2 = 6; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span107 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference181 = ref span107[0]; + span3 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + ref QuestStep reference181 = ref span3[num3]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2000022u, new Vector3(-52.71997f, 6.7596436f, -109.9718f), 133); - num3 = 6; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span108 = CollectionsMarshal.AsSpan(list280); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + span8 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list280; reference181 = questStep30; - ref QuestStep reference182 = ref span107[1]; + num3++; + ref QuestStep reference182 = ref span3[num3]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2000020u, new Vector3(-63.09613f, 6.94281f, -110.85681f), 133); - num3 = 6; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - Span span109 = CollectionsMarshal.AsSpan(list281); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span8 = CollectionsMarshal.AsSpan(list281); + 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)8, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list281; reference182 = questStep31; - ref QuestStep reference183 = ref span107[2]; + num3++; + ref QuestStep reference183 = ref span3[num3]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2000021u, new Vector3(-37.979797f, 5.996765f, -101.76245f), 133); - num3 = 6; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - Span span110 = CollectionsMarshal.AsSpan(list282); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list282 = new List(num4); + CollectionsMarshal.SetCount(list282, num4); + span8 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list282; reference183 = questStep32; - ref QuestStep reference184 = ref span107[3]; + num3++; + ref QuestStep reference184 = ref span3[num3]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 2000025u, new Vector3(-47.80658f, 5.722107f, -99.4126f), 133); - num3 = 6; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - Span span111 = CollectionsMarshal.AsSpan(list283); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index2 = 6; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span8 = CollectionsMarshal.AsSpan(list283); + 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(0, (byte)4, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list283; reference184 = questStep33; - ref QuestStep reference185 = ref span107[4]; + num3++; + ref QuestStep reference185 = ref span3[num3]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 2000024u, new Vector3(-53.75763f, 6.4850464f, -89.52472f), 133); - num3 = 6; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - Span span112 = CollectionsMarshal.AsSpan(list284); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + span8 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep34.CompletionQuestVariablesFlags = list284; reference185 = questStep34; - ref QuestStep reference186 = ref span107[5]; + num3++; + ref QuestStep reference186 = ref span3[num3]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 2000023u, new Vector3(-43.808716f, 6.4850464f, -85.80151f), 133); - num3 = 6; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - Span span113 = CollectionsMarshal.AsSpan(list285); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span8 = CollectionsMarshal.AsSpan(list285); + 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); questStep35.CompletionQuestVariablesFlags = list285; reference186 = questStep35; obj160.Steps = list279; reference180 = obj160; - ref QuestSequence reference187 = ref span106[2]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); + num3 = 1; + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); obj161.Steps = list286; reference187 = obj161; questRoot44.QuestSequence = list277; @@ -4382,14 +5262,17 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "liza"; questRoot45.Author = list287; questRoot45.Comment = "Only Turn 13 is required for the next quest to unlock"; - num = 6; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span114 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference188 = ref span114[0]; + index = 6; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -4397,8 +5280,9 @@ public static class AssemblyQuestLoader num2 = 4; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span115 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference189 = ref span115[0]; + span3 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + ref QuestStep reference189 = ref span3[num3]; QuestStep obj163 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -4406,67 +5290,80 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 2; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span116 = CollectionsMarshal.AsSpan(list290); - span116[0] = 140; - span116[1] = 212; + num4 = 2; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + span5 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span5[index2] = 140; + index2++; + span5[index2] = 212; skipStepConditions4.InTerritory = list290; skipConditions15.StepIf = skipStepConditions4; obj163.SkipConditions = skipConditions15; reference189 = obj163; - ref QuestStep reference190 = ref span115[1]; + num3++; + ref QuestStep reference190 = ref span3[num3]; QuestStep questStep36 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 212; + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span5 = CollectionsMarshal.AsSpan(list291); + num4 = 0; + span5[num4] = 212; skipStepConditions5.InTerritory = list291; skipConditions16.StepIf = skipStepConditions5; questStep36.SkipConditions = skipConditions16; reference190 = questStep36; - ref QuestStep reference191 = ref span115[2]; + num3++; + ref QuestStep reference191 = ref span3[num3]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions17 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = 212; + num4 = 1; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + span5 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span5[index2] = 212; skipStepConditions6.InTerritory = list292; skipConditions17.StepIf = skipStepConditions6; obj164.SkipConditions = skipConditions17; reference191 = obj164; - span115[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj162.Steps = list289; reference188 = obj162; - ref QuestSequence reference192 = ref span114[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span117 = CollectionsMarshal.AsSpan(list293); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(430.20032f, 3.6547468f, 168.62611f), 145) + num3 = 2; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(430.20032f, 3.6547468f, 168.62611f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span117[1] = new QuestStep(EInteractionType.Interact, 1009769u, new Vector3(430.6858f, 3.26411f, 171.58765f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009769u, new Vector3(430.6858f, 3.26411f, 171.58765f), 145) { StopDistance = 5f }; obj165.Steps = list293; reference192 = obj165; - ref QuestSequence reference193 = ref span114[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 @@ -4474,28 +5371,34 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1009770u, new Vector3(469.5963f, -3.4332886f, -781.1856f), 156) + span3 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009770u, new Vector3(469.5963f, -3.4332886f, -781.1856f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj166.Steps = list294; reference193 = obj166; - ref QuestSequence reference194 = ref span114[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) + num3 = 1; + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj167.Steps = list295; reference194 = obj167; - ref QuestSequence reference195 = ref span114[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 @@ -4503,23 +5406,28 @@ public static class AssemblyQuestLoader num2 = 2; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span118 = CollectionsMarshal.AsSpan(list296); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.2906f, 71.11877f, -189.74506f), 147) + span3 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.2906f, 71.11877f, -189.74506f), 147) { Fly = true }; - span118[1] = new QuestStep(EInteractionType.Interact, 1009772u, new Vector3(-67.12445f, 71.293205f, -190.96667f), 147); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009772u, new Vector3(-67.12445f, 71.293205f, -190.96667f), 147); obj168.Steps = list296; reference195 = obj168; - ref QuestSequence reference196 = ref span114[5]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009768u, new Vector3(-103.868225f, 51.873333f, -58.365784f), 147) + num3 = 1; + List list297 = new List(num3); + CollectionsMarshal.SetCount(list297, num3); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009768u, new Vector3(-103.868225f, 51.873333f, -58.365784f), 147) { Fly = true, NextQuestId = new QuestId(44) @@ -4533,13 +5441,16 @@ public static class AssemblyQuestLoader num = 1; List list298 = new List(num); CollectionsMarshal.SetCount(list298, num); - CollectionsMarshal.AsSpan(list298)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list298); + index = 0; + span[index] = "liza"; questRoot46.Author = list298; - num = 2; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - Span span119 = CollectionsMarshal.AsSpan(list299); - ref QuestSequence reference197 = ref span119[0]; + index = 2; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + span2 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -4547,16 +5458,20 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list300)[0]; + span3 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + ref QuestStep reference198 = ref span3[num3]; QuestStep obj171 = new QuestStep(EInteractionType.AcceptQuest, 1009777u, new Vector3(-59.983215f, 76.798584f, -204.0589f), 147) { StopDistance = 1f, Fly = true }; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span4 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD502_00044_Q1_000_000"), @@ -4566,15 +5481,18 @@ public static class AssemblyQuestLoader reference198 = obj171; obj170.Steps = list300; reference197 = obj170; - ref QuestSequence reference199 = ref span119[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) + num3 = 1; + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) { Fly = true }; @@ -4587,13 +5505,16 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list303); + index = 0; + span[index] = "liza"; questRoot47.Author = list303; - num = 8; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span120 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference200 = ref span120[0]; + index = 8; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + span2 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -4601,7 +5522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) + span3 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -4614,24 +5537,29 @@ public static class AssemblyQuestLoader }; obj173.Steps = list305; reference200 = obj173; - ref QuestSequence reference201 = ref span120[1]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - Span span121 = CollectionsMarshal.AsSpan(list306); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + num3 = 3; + List list306 = new List(num3); + CollectionsMarshal.SetCount(list306, num3); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span121[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj174.Steps = list306; reference201 = obj174; - ref QuestSequence reference202 = ref span120[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -4639,24 +5567,30 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 2004628u, new Vector3(50.614136f, 31.143677f, -748.40924f), 156); + span3 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2004628u, new Vector3(50.614136f, 31.143677f, -748.40924f), 156); obj175.Steps = list307; reference202 = obj175; - ref QuestSequence reference203 = ref span120[3]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 2004631u, new Vector3(-127.55017f, -1.9379272f, -638.4833f), 156) + num3 = 1; + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004631u, new Vector3(-127.55017f, -1.9379272f, -638.4833f), 156) { Fly = true }; obj176.Steps = list308; reference203 = obj176; - ref QuestSequence reference204 = ref span120[4]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 4 @@ -4664,29 +5598,35 @@ public static class AssemblyQuestLoader num2 = 2; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span122 = CollectionsMarshal.AsSpan(list309); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.20372f, 11.28438f, -619.29504f), 156) + span3 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.20372f, 11.28438f, -619.29504f), 156) { Fly = true }; - span122[1] = new QuestStep(EInteractionType.Interact, 2004629u, new Vector3(-166.79645f, 12.283508f, -619.8978f), 156); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2004629u, new Vector3(-166.79645f, 12.283508f, -619.8978f), 156); obj177.Steps = list309; reference204 = obj177; - ref QuestSequence reference205 = ref span120[5]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1009817u, new Vector3(-130.1748f, -0.85852593f, -645.2583f), 156) + num3 = 1; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009817u, new Vector3(-130.1748f, -0.85852593f, -645.2583f), 156) { Fly = true }; obj178.Steps = list310; reference205 = obj178; - ref QuestSequence reference206 = ref span120[6]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 6 @@ -4694,21 +5634,26 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + span3 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj179.Steps = list311; reference206 = obj179; - ref QuestSequence reference207 = ref span120[7]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + num3 = 1; + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true, NextQuestId = new QuestId(50) @@ -4722,13 +5667,16 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list313); + index = 0; + span[index] = "pot0to"; questRoot48.Author = list313; - num = 5; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span123 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference208 = ref span123[0]; + index = 5; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + span2 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -4736,7 +5684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + span3 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -4755,216 +5705,295 @@ public static class AssemblyQuestLoader }; obj181.Steps = list315; reference208 = obj181; - ref QuestSequence reference209 = ref span123[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 11; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - Span span124 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference210 = ref span124[0]; + num3 = 11; + List list316 = new List(num3); + CollectionsMarshal.SetCount(list316, num3); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + ref QuestStep reference210 = ref span3[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Action, 2000925u, new Vector3(187.18237f, -2.7314453f, 79.087524f), 132) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span125 = CollectionsMarshal.AsSpan(list317); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + span8 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj183.CompletionQuestVariablesFlags = list317; reference210 = obj183; - ref QuestStep reference211 = ref span124[1]; + num2++; + ref QuestStep reference211 = ref span3[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.01592f, 0.14552212f, 57.230045f), 132); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span126 = CollectionsMarshal.AsSpan(list318); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span8 = CollectionsMarshal.AsSpan(list318); + 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)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list318; skipConditions18.StepIf = skipStepConditions7; questStep37.SkipConditions = skipConditions18; reference211 = questStep37; - ref QuestStep reference212 = ref span124[2]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep obj184 = new QuestStep(EInteractionType.Action, 2000926u, new Vector3(113.42029f, 4.6539917f, 54.306763f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span127 = CollectionsMarshal.AsSpan(list319); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list319 = new List(num4); + CollectionsMarshal.SetCount(list319, num4); + span8 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj184.CompletionQuestVariablesFlags = list319; reference212 = obj184; - ref QuestStep reference213 = ref span124[3]; + num2++; + ref QuestStep reference213 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.66375f, 2.5499606f, 15.033528f), 132); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span128 = CollectionsMarshal.AsSpan(list320); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index2 = 6; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span8 = CollectionsMarshal.AsSpan(list320); + 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(0, (byte)2, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list320; skipConditions19.StepIf = skipStepConditions8; questStep38.SkipConditions = skipConditions19; reference213 = questStep38; - ref QuestStep reference214 = ref span124[4]; + num2++; + ref QuestStep reference214 = ref span3[num2]; QuestStep obj185 = new QuestStep(EInteractionType.Action, 2000931u, new Vector3(36.453735f, 7.248047f, 10.879639f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - Span span129 = CollectionsMarshal.AsSpan(list321); - span129[0] = null; - span129[1] = null; - span129[2] = null; - span129[3] = null; - span129[4] = null; - span129[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list321 = new List(num4); + CollectionsMarshal.SetCount(list321, num4); + span8 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list321; reference214 = obj185; - ref QuestStep reference215 = ref span124[5]; + num2++; + ref QuestStep reference215 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.75964f, -3.0942674f, 21.23782f), 132); SkipConditions skipConditions20 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span130 = CollectionsMarshal.AsSpan(list322); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index2 = 6; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span8 = CollectionsMarshal.AsSpan(list322); + 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(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list322; skipConditions20.StepIf = skipStepConditions9; questStep39.SkipConditions = skipConditions20; reference215 = questStep39; - ref QuestStep reference216 = ref span124[6]; + num2++; + ref QuestStep reference216 = ref span3[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Action, 2000929u, new Vector3(-5.7526855f, 2.0598755f, 30.655273f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span131 = CollectionsMarshal.AsSpan(list323); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + span8 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj186.CompletionQuestVariablesFlags = list323; reference216 = obj186; - ref QuestStep reference217 = ref span124[7]; + num2++; + ref QuestStep reference217 = ref span3[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.96446f, -1.5349445f, 60.44494f), 132); SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span132 = CollectionsMarshal.AsSpan(list324); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span8 = CollectionsMarshal.AsSpan(list324); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list324; skipConditions21.StepIf = skipStepConditions10; questStep40.SkipConditions = skipConditions21; reference217 = questStep40; - ref QuestStep reference218 = ref span124[8]; + num2++; + ref QuestStep reference218 = ref span3[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Action, 2000928u, new Vector3(33.24939f, 5.4473877f, 70.63391f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span133 = CollectionsMarshal.AsSpan(list325); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list325 = new List(num4); + CollectionsMarshal.SetCount(list325, num4); + span8 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj187.CompletionQuestVariablesFlags = list325; reference218 = obj187; - ref QuestStep reference219 = ref span124[9]; + num2++; + ref QuestStep reference219 = ref span3[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39101f, -3.7351668f, 88.24835f), 132); SkipConditions skipConditions22 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span134 = CollectionsMarshal.AsSpan(list326); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span8 = CollectionsMarshal.AsSpan(list326); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list326; skipConditions22.StepIf = skipStepConditions11; questStep41.SkipConditions = skipConditions22; reference219 = questStep41; - ref QuestStep reference220 = ref span124[10]; + num2++; + ref QuestStep reference220 = ref span3[num2]; QuestStep obj188 = new QuestStep(EInteractionType.Action, 2000930u, new Vector3(56.595703f, -3.7385254f, 96.97107f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - Span span135 = CollectionsMarshal.AsSpan(list327); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list327 = new List(num4); + CollectionsMarshal.SetCount(list327, num4); + span8 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list327; reference220 = obj188; obj182.Steps = list316; reference209 = obj182; - ref QuestSequence reference221 = ref span123[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -4972,7 +6001,9 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + span3 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { AethernetShortcut = new AethernetShortcut { @@ -4982,16 +6013,18 @@ public static class AssemblyQuestLoader }; obj189.Steps = list328; reference221 = obj189; - ref QuestSequence reference222 = ref span123[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - Span span136 = CollectionsMarshal.AsSpan(list329); - ref QuestStep reference223 = ref span136[0]; + num3 = 2; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(303.89548f, -21.916101f, 210.33368f), 154) { StopDistance = 0.5f, @@ -5003,58 +6036,76 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new ComplexCombatData + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span7 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 5u, MinimumKillCount = 8u }; obj191.ComplexCombatData = list330; - num3 = 6; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - Span span137 = CollectionsMarshal.AsSpan(list331); - span137[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = null; + num4 = 6; + List list331 = new List(num4); + CollectionsMarshal.SetCount(list331, num4); + span8 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span8[index2] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj191.CompletionQuestVariablesFlags = list331; reference223 = obj191; - ref QuestStep reference224 = ref span136[1]; + num2++; + ref QuestStep reference224 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(250.70682f, -11.9244995f, 40.554157f), 154) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = new ComplexCombatData + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span7 = CollectionsMarshal.AsSpan(list332); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 32u, MinimumKillCount = 8u }; obj192.ComplexCombatData = list332; - num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span138 = CollectionsMarshal.AsSpan(list333); - span138[0] = null; - span138[1] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num4 = 6; + List list333 = new List(num4); + CollectionsMarshal.SetCount(list333, num4); + span8 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span8[index2] = null; + index2++; + span8[index2] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; + index2++; + span8[index2] = null; obj192.CompletionQuestVariablesFlags = list333; reference224 = obj192; obj190.Steps = list329; reference222 = obj190; - ref QuestSequence reference225 = ref span123[4]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -5062,7 +6113,9 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + span3 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5089,21 +6142,26 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list335); + index = 0; + span[index] = "Cacahuetes"; questRoot49.Author = list335; - num = 6; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span139 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference226 = ref span139[0]; + index = 6; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + span2 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list337)[0]; + num3 = 1; + List list337 = new List(num3); + CollectionsMarshal.SetCount(list337, num3); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + ref QuestStep reference227 = ref span3[num2]; QuestStep obj195 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5118,17 +6176,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - CollectionsMarshal.AsSpan(list338)[0] = 133; + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span5 = CollectionsMarshal.AsSpan(list338); + num4 = 0; + span5[num4] = 133; obj196.InTerritory = list338; skipConditions23.AetheryteShortcutIf = obj196; obj195.SkipConditions = skipConditions23; reference227 = obj195; obj194.Steps = list337; reference226 = obj194; - ref QuestSequence reference228 = ref span139[1]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -5136,8 +6197,9 @@ public static class AssemblyQuestLoader num2 = 3; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span140 = CollectionsMarshal.AsSpan(list339); - span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.13162f, -11.982115f, -159.64388f), 148) + span3 = CollectionsMarshal.AsSpan(list339); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.13162f, -11.982115f, -159.64388f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -5146,63 +6208,84 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - ref QuestStep reference229 = ref span140[1]; + num3++; + ref QuestStep reference229 = ref span3[num3]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 2000911u, new Vector3(261.82947f, -11.795227f, -161.36414f), 148) { ItemId = 2000230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = 42u; + num4 = 1; + List list340 = new List(num4); + CollectionsMarshal.SetCount(list340, num4); + span9 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span9[index2] = 42u; obj198.KillEnemyDataIds = list340; - num3 = 6; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - Span span141 = CollectionsMarshal.AsSpan(list341); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span8 = CollectionsMarshal.AsSpan(list341); + 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); obj198.CompletionQuestVariablesFlags = list341; reference229 = obj198; - ref QuestStep reference230 = ref span140[2]; + num3++; + ref QuestStep reference230 = ref span3[num3]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 2000910u, new Vector3(266.31567f, -11.795227f, -174.88367f), 148) { ItemId = 2000230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list342 = new List(num3); - CollectionsMarshal.SetCount(list342, num3); - CollectionsMarshal.AsSpan(list342)[0] = 42u; + num4 = 1; + List list342 = new List(num4); + CollectionsMarshal.SetCount(list342, num4); + span9 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span9[index2] = 42u; obj199.KillEnemyDataIds = list342; - num3 = 6; - List list343 = new List(num3); - CollectionsMarshal.SetCount(list343, num3); - Span span142 = CollectionsMarshal.AsSpan(list343); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span8 = CollectionsMarshal.AsSpan(list343); + 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); obj199.CompletionQuestVariablesFlags = list343; reference230 = obj199; obj197.Steps = list339; reference228 = obj197; - ref QuestSequence reference231 = ref span139[2]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + num3 = 1; + List list344 = new List(num3); + CollectionsMarshal.SetCount(list344, num3); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -5213,7 +6296,8 @@ public static class AssemblyQuestLoader }; obj200.Steps = list344; reference231 = obj200; - ref QuestSequence reference232 = ref span139[3]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -5221,8 +6305,9 @@ public static class AssemblyQuestLoader num2 = 4; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span143 = CollectionsMarshal.AsSpan(list345); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.2214f, 1.4752781f, 87.94056f), 148) + span3 = CollectionsMarshal.AsSpan(list345); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.2214f, 1.4752781f, 87.94056f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -5231,83 +6316,113 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - ref QuestStep reference233 = ref span143[1]; + num3++; + ref QuestStep reference233 = ref span3[num3]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2000914u, new Vector3(302.2965f, 2.090454f, 88.0293f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 41u; + num4 = 1; + List list346 = new List(num4); + CollectionsMarshal.SetCount(list346, num4); + span9 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span9[index2] = 41u; obj202.KillEnemyDataIds = list346; - num3 = 6; - List list347 = new List(num3); - CollectionsMarshal.SetCount(list347, num3); - Span span144 = CollectionsMarshal.AsSpan(list347); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span8 = CollectionsMarshal.AsSpan(list347); + 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)8, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list347; reference233 = obj202; - ref QuestStep reference234 = ref span143[2]; + num3++; + ref QuestStep reference234 = ref span3[num3]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2000916u, new Vector3(305.4093f, 4.501404f, 103.990234f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 26u; + num4 = 1; + List list348 = new List(num4); + CollectionsMarshal.SetCount(list348, num4); + span9 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span9[index2] = 26u; obj203.KillEnemyDataIds = list348; - num3 = 6; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - Span span145 = CollectionsMarshal.AsSpan(list349); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + span8 = CollectionsMarshal.AsSpan(list349); + 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); obj203.CompletionQuestVariablesFlags = list349; reference234 = obj203; - ref QuestStep reference235 = ref span143[3]; + num3++; + ref QuestStep reference235 = ref span3[num3]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, 2000915u, new Vector3(327.10767f, 3.7078857f, 93.64453f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = 41u; + num4 = 1; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + span9 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span9[index2] = 41u; obj204.KillEnemyDataIds = list350; - num3 = 6; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span146 = CollectionsMarshal.AsSpan(list351); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span8 = CollectionsMarshal.AsSpan(list351); + 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)4, 0, EQuestWorkMode.Bitwise); obj204.CompletionQuestVariablesFlags = list351; reference235 = obj204; obj201.Steps = list345; reference232 = obj201; - ref QuestSequence reference236 = ref span139[4]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + num3 = 1; + List list352 = new List(num3); + CollectionsMarshal.SetCount(list352, num3); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -5322,7 +6437,8 @@ public static class AssemblyQuestLoader }; obj205.Steps = list352; reference236 = obj205; - ref QuestSequence reference237 = ref span139[5]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -5330,7 +6446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + span3 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { NextQuestId = new QuestId(35) }; @@ -5343,21 +6461,26 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list354); + index = 0; + span[index] = "Cacahuetes"; questRoot50.Author = list354; - num = 5; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span147 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference238 = ref span147[0]; + index = 5; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + span2 = CollectionsMarshal.AsSpan(list355); + num = 0; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list356)[0]; + num3 = 1; + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + span3 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + ref QuestStep reference239 = ref span3[num2]; QuestStep obj208 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5372,17 +6495,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - CollectionsMarshal.AsSpan(list357)[0] = 133; + num4 = 1; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + span5 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span5[index2] = 133; obj209.InTerritory = list357; skipConditions24.AetheryteShortcutIf = obj209; obj208.SkipConditions = skipConditions24; reference239 = obj208; obj207.Steps = list356; reference238 = obj207; - ref QuestSequence reference240 = ref span147[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -5390,8 +6516,9 @@ public static class AssemblyQuestLoader num2 = 2; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span148 = CollectionsMarshal.AsSpan(list358); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) + span3 = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -5400,32 +6527,39 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - span148[1] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); obj210.Steps = list358; reference240 = obj210; - ref QuestSequence reference241 = ref span147[2]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list359)[0]; + num3 = 1; + List list359 = new List(num3); + CollectionsMarshal.SetCount(list359, num3); + span3 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + ref QuestStep reference242 = ref span3[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2000883u, new Vector3(325.1848f, -5.217115f, 390.488f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list360 = new List(num3); - CollectionsMarshal.SetCount(list360, num3); - CollectionsMarshal.AsSpan(list360)[0] = 294u; + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span9 = CollectionsMarshal.AsSpan(list360); + num4 = 0; + span9[num4] = 294u; obj212.KillEnemyDataIds = list360; reference242 = obj212; obj211.Steps = list359; reference241 = obj211; - ref QuestSequence reference243 = ref span147[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -5433,8 +6567,9 @@ public static class AssemblyQuestLoader num2 = 2; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span149 = CollectionsMarshal.AsSpan(list361); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) + span3 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) { Fly = true, SkipConditions = new SkipConditions @@ -5445,18 +6580,22 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); obj213.Steps = list361; reference243 = obj213; - ref QuestSequence reference244 = ref span147[4]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + num3 = 1; + List list362 = new List(num3); + CollectionsMarshal.SetCount(list362, num3); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -5475,13 +6614,16 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list363); + index = 0; + span[index] = "liza"; questRoot51.Author = list363; - num = 2; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span150 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference245 = ref span150[0]; + index = 2; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + span2 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -5489,18 +6631,23 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000788u, new Vector3(-43.90027f, 7.0877223f, -136.70563f), 133); + span3 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000788u, new Vector3(-43.90027f, 7.0877223f, -136.70563f), 133); obj215.Steps = list365; reference245 = obj215; - ref QuestSequence reference246 = ref span150[1]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000429u, new Vector3(56.50415f, 7.9990244f, -132.12793f), 133); + num3 = 1; + List list366 = new List(num3); + CollectionsMarshal.SetCount(list366, num3); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000429u, new Vector3(56.50415f, 7.9990244f, -132.12793f), 133); obj216.Steps = list366; reference246 = obj216; questRoot51.QuestSequence = list364; @@ -5514,13 +6661,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -5528,7 +6678,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -5541,21 +6693,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -5563,22 +6719,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 7; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span2[0]; + index2 = 7; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1009825u, new Vector3(86.07605f, 28.34813f, -622.18665f), 156) { StopDistance = 0.5f, @@ -5587,109 +6747,152 @@ public static class AssemblyQuestLoader int num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - ref QuestStep reference6 = ref span2[1]; + num2++; + ref QuestStep reference6 = ref span3[num2]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span4 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list8; skipConditions.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions; reference6 = obj6; - ref QuestStep reference7 = ref span2[2]; + num2++; + ref QuestStep reference7 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1009826u, new Vector3(29.160034f, 21.252728f, -642.51166f), 156); num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list9; reference7 = questStep; - span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - ref QuestStep reference8 = ref span2[4]; + num2++; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.883974f, 53.583996f, -702.24194f), 156) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list10; skipConditions2.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions2; reference8 = obj7; - ref QuestStep reference9 = ref span2[5]; + num2++; + ref QuestStep reference9 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1009823u, new Vector3(16.983276f, 53.614998f, -703.3341f), 156); num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list11; reference9 = questStep2; - ref QuestStep reference10 = ref span2[6]; + num2++; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1009824u, new Vector3(22.262878f, 28.999968f, -780.85f), 156) { Fly = true }; - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span8 = CollectionsMarshal.AsSpan(list12); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + span4 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list12; reference10 = obj8; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference11 = ref span[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -5697,7 +6900,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true, NextQuestId = new QuestId(100) @@ -5711,27 +6916,33 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list14; - num = 4; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span9 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span9[0]; + index = 4; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) { StopDistance = 7f }; obj10.Steps = list16; reference12 = obj10; - ref QuestSequence reference13 = ref span9[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -5739,26 +6950,32 @@ public static class AssemblyQuestLoader num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span10[1] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); obj11.Steps = list17; reference13 = obj11; - ref QuestSequence reference14 = ref span9[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1009959u, new Vector3(3.5248413f, 0.009977884f, -4.4404297f), 351); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009959u, new Vector3(3.5248413f, 0.009977884f, -4.4404297f), 351); obj12.Steps = list18; reference14 = obj12; - ref QuestSequence reference15 = ref span9[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -5766,7 +6983,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -5779,21 +6998,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span11 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span11[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009961u, new Vector3(-131.88379f, 4.1f, -109.63611f), 130) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009961u, new Vector3(-131.88379f, 4.1f, -109.63611f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -5806,7 +7030,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list22; reference16 = obj14; - ref QuestSequence reference17 = ref span11[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -5814,331 +7039,370 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); - span12[2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); obj15.Steps = list23; reference17 = obj15; - ref QuestSequence reference18 = ref span11[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference19 = ref span13[0]; - QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); - SkipConditions skipConditions3 = new SkipConditions(); - SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 156; - skipStepConditions3.InTerritory = list25; - skipConditions3.StepIf = skipStepConditions3; - questStep3.SkipConditions = skipConditions3; - reference19 = questStep3; - ref QuestStep reference20 = ref span13[1]; - QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2 = 4; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 156; - skipStepConditions4.InTerritory = list26; - skipConditions4.StepIf = skipStepConditions4; - obj17.SkipConditions = skipConditions4; - reference20 = obj17; - span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { - Mount = true, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NearPosition = new NearPositionCondition - { - Position = new Vector3(-354.60443f, -15.981883f, -477.4395f), - MaximumDistance = 300f, - TerritoryId = 156 - } - } - } + Mount = true }; - span13[3] = new QuestStep(EInteractionType.Interact, 1009962u, new Vector3(-354.60443f, -15.981883f, -477.4395f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009962u, new Vector3(-354.60443f, -15.981883f, -477.4395f), 156) { Fly = true }; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference21 = ref span11[3]; - QuestSequence obj18 = new QuestSequence + num++; + ref QuestSequence reference19 = ref span2[num]; + QuestSequence obj17 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference22 = ref span14[0]; - QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.26733f, -4.2369456f, -300.13348f), 156) + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + ref QuestStep reference20 = ref span3[index2]; + QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.26733f, -4.2369456f, -300.13348f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = 61u; - span15[1] = 62u; - span15[2] = 63u; - obj19.KillEnemyDataIds = list28; - reference22 = obj19; - span14[1] = new QuestStep(EInteractionType.Interact, 1009966u, new Vector3(-455.89386f, -4.098249f, -302.72375f), 156); - obj18.Steps = list27; - reference21 = obj18; - ref QuestSequence reference23 = ref span11[4]; - QuestSequence obj20 = new QuestSequence + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + Span span5 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span5[num4] = 61u; + num4++; + span5[num4] = 62u; + num4++; + span5[num4] = 63u; + obj18.KillEnemyDataIds = list26; + reference20 = obj18; + index2++; + span3[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 span2[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span16 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference24 = ref span16[0]; - QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(-464.29688f, -3.2168088f, -231.61989f), 156) + index2 = 3; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference22 = ref span3[num2]; + QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-464.29688f, -3.2168088f, -231.61989f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span17 = CollectionsMarshal.AsSpan(list30); - span17[0] = 63u; - span17[1] = 64u; - span17[2] = 3566u; + num4 = 3; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span5 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span5[num3] = 63u; + num3++; + span5[num3] = 64u; + num3++; + span5[num3] = 3566u; + obj20.KillEnemyDataIds = list28; + num3 = 6; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + span4 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj20.CompletionQuestVariablesFlags = list29; + reference22 = obj20; + num2++; + ref QuestStep reference23 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span5[num3] = 55u; + num3++; + span5[num3] = 3566u; obj21.KillEnemyDataIds = list30; num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list31; - reference24 = obj21; - ref QuestStep reference25 = ref span16[1]; - QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-542.5233f, -1.7329574f, -291.1239f), 156) + reference23 = obj21; + num2++; + ref QuestStep reference24 = ref span3[num2]; + QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-598.8258f, -3.216822f, -398.18915f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = 55u; - span19[1] = 3566u; + num4 = 4; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span5 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span5[num3] = 61u; + num3++; + span5[num3] = 62u; + num3++; + span5[num3] = 55u; + num3++; + span5[num3] = 64u; obj22.KillEnemyDataIds = list32; num3 = 6; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list33; - reference25 = obj22; - ref QuestStep reference26 = ref span16[2]; - QuestStep obj23 = new QuestStep(EInteractionType.Combat, null, new Vector3(-598.8258f, -3.216822f, -398.18915f), 156) - { - StopDistance = 0.5f, - Fly = true, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; - num3 = 4; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span21 = CollectionsMarshal.AsSpan(list34); - span21[0] = 61u; - span21[1] = 62u; - span21[2] = 55u; - span21[3] = 64u; - obj23.KillEnemyDataIds = list34; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj23.CompletionQuestVariablesFlags = list35; - reference26 = obj23; - obj20.Steps = list29; - reference23 = obj20; - ref QuestSequence reference27 = ref span11[5]; - QuestSequence obj24 = new QuestSequence + reference24 = obj22; + obj19.Steps = list27; + reference21 = obj19; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1009112u, new Vector3(-355.45898f, -16.030567f, -477.04285f), 156) + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009112u, new Vector3(-355.45898f, -16.030567f, -477.04285f), 156) { Fly = true }; - obj24.Steps = list36; - reference27 = obj24; - ref QuestSequence reference28 = ref span11[6]; - QuestSequence obj25 = new QuestSequence + obj23.Steps = list34; + reference25 = obj23; + num++; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span23 = CollectionsMarshal.AsSpan(list37); - span23[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); - span23[2] = new QuestStep(EInteractionType.CompleteQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); - obj25.Steps = list37; - reference28 = obj25; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + obj24.Steps = list35; + reference26 = obj24; questRoot3.QuestSequence = list21; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(54); QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; - questRoot4.Author = list38; - num = 4; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span24 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference29 = ref span24[0]; - QuestSequence obj26 = new QuestSequence + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "JerryWester"; + questRoot4.Author = list36; + index = 4; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference27 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); - obj26.Steps = list40; - reference29 = obj26; - ref QuestSequence reference30 = ref span24[1]; - QuestSequence obj27 = new QuestSequence + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + obj25.Steps = list38; + reference27 = obj25; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span25 = CollectionsMarshal.AsSpan(list41); - span25[0] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span25[1] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj27.Steps = list41; - reference30 = obj27; - ref QuestSequence reference31 = ref span24[2]; - QuestSequence obj28 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span26 = CollectionsMarshal.AsSpan(list42); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span26[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj28.Steps = list42; - reference31 = obj28; - ref QuestSequence reference32 = ref span24[3]; - QuestSequence obj29 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list43)[0]; - QuestStep obj30 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; + QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice + num4 = 1; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span6 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE403_00054_FORTEMPSGUARD00054_Q1_000_1") }; - obj30.DialogueChoices = list44; - reference33 = obj30; - obj29.Steps = list43; - reference32 = obj29; - questRoot4.QuestSequence = list39; + obj29.DialogueChoices = list42; + reference31 = obj29; + obj28.Steps = list41; + reference30 = obj28; + questRoot4.QuestSequence = list37; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(55); QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "Cacahuetes"; - questRoot5.Author = list45; - num = 6; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span27 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference34 = ref span27[0]; - QuestSequence obj31 = new QuestSequence + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "Cacahuetes"; + questRoot5.Author = list43; + index = 6; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list47)[0]; - QuestStep obj32 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; + QuestStep obj31 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6147,113 +7411,134 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions5 = new SkipConditions(); - SkipAetheryteCondition obj33 = new SkipAetheryteCondition + SkipConditions skipConditions3 = new SkipConditions(); + SkipAetheryteCondition obj32 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 133; - obj33.InTerritory = list48; - skipConditions5.AetheryteShortcutIf = obj33; - obj32.SkipConditions = skipConditions5; - reference35 = obj32; - obj31.Steps = list47; - reference34 = obj31; - ref QuestSequence reference36 = ref span27[1]; - QuestSequence obj34 = new QuestSequence + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span7 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span7[num4] = 133; + obj32.InTerritory = list46; + skipConditions3.AetheryteShortcutIf = obj32; + obj31.SkipConditions = skipConditions3; + reference33 = obj31; + obj30.Steps = list45; + reference32 = obj30; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span28 = CollectionsMarshal.AsSpan(list49); - span28[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152 }; - ref QuestStep reference37 = ref span28[1]; - QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152) + num2++; + ref QuestStep reference35 = ref span3[num2]; + QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152) { Fly = true }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + num4 = 1; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + span6 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSLNC003_00055_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSLNC003_00055_A1_000_1") }; - obj35.DialogueChoices = list50; - reference37 = obj35; - obj34.Steps = list49; - reference36 = obj34; - ref QuestSequence reference38 = ref span27[2]; - QuestSequence obj36 = new QuestSequence + obj34.DialogueChoices = list48; + reference35 = obj34; + obj33.Steps = list47; + reference34 = obj33; + num++; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list51)[0]; - QuestStep obj37 = new QuestStep(EInteractionType.Combat, 2000919u, new Vector3(-418.60077f, 0.289917f, 127.06189f), 152) + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference37 = ref span3[index2]; + QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2000919u, new Vector3(-418.60077f, 0.289917f, 127.06189f), 152) { ItemId = 2000235u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 24u; - obj37.KillEnemyDataIds = list52; - reference39 = obj37; - obj36.Steps = list51; - reference38 = obj36; - ref QuestSequence reference40 = ref span27[3]; - QuestSequence obj38 = new QuestSequence + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + span5 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span5[num4] = 24u; + obj36.KillEnemyDataIds = list50; + reference37 = obj36; + obj35.Steps = list49; + reference36 = obj35; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152); - obj38.Steps = list53; - reference40 = obj38; - ref QuestSequence reference41 = ref span27[4]; - QuestSequence obj39 = new QuestSequence + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span29 = CollectionsMarshal.AsSpan(list54); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-514.83344f, 19.223053f, 284.89175f), 152) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-514.83344f, 19.223053f, 284.89175f), 152) { Fly = true }; - span29[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000920u, new Vector3(267.5669f, -0.5951538f, -253.83386f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000920u, new Vector3(267.5669f, -0.5951538f, -253.83386f), 148) { Fly = true }; - obj39.Steps = list54; - reference41 = obj39; - ref QuestSequence reference42 = ref span27[5]; - QuestSequence obj40 = new QuestSequence + obj38.Steps = list52; + reference39 = obj38; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6263,31 +7548,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(56) }; - obj40.Steps = list55; - reference42 = obj40; - questRoot5.QuestSequence = list46; + obj39.Steps = list53; + reference40 = obj39; + questRoot5.QuestSequence = list44; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(56); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; - questRoot6.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span30 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference43 = ref span30[0]; - QuestSequence obj41 = new QuestSequence + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "Cacahuetes"; + questRoot6.Author = list54; + index = 7; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list58)[0]; - QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference42 = ref span3[index2]; + QuestStep obj41 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6296,30 +7586,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions6 = new SkipConditions(); - SkipAetheryteCondition obj43 = new SkipAetheryteCondition + SkipConditions skipConditions4 = new SkipConditions(); + SkipAetheryteCondition obj42 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 133; - obj43.InTerritory = list59; - skipConditions6.AetheryteShortcutIf = obj43; - obj42.SkipConditions = skipConditions6; - reference44 = obj42; - obj41.Steps = list58; - reference43 = obj41; - ref QuestSequence reference45 = ref span30[1]; - QuestSequence obj44 = new QuestSequence + num4 = 1; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + span7 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span7[num3] = 133; + obj42.InTerritory = list57; + skipConditions4.AetheryteShortcutIf = obj42; + obj41.SkipConditions = skipConditions4; + reference42 = obj41; + obj40.Steps = list56; + reference41 = obj40; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000977u, new Vector3(157.5188f, 16.189758f, -273.64008f), 133) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000977u, new Vector3(157.5188f, 16.189758f, -273.64008f), 133) { StopDistance = 4f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -6327,43 +7622,50 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj44.Steps = list60; - reference45 = obj44; - ref QuestSequence reference46 = ref span30[2]; - QuestSequence obj45 = new QuestSequence + obj43.Steps = list58; + reference43 = obj43; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list61)[0]; - QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; + QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { StopDistance = 7f }; num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + span6 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC004_00056_Q1_000_1") }; - obj46.DialogueChoices = list62; - reference47 = obj46; - obj45.Steps = list61; - reference46 = obj45; - ref QuestSequence reference48 = ref span30[3]; - QuestSequence obj47 = new QuestSequence + obj45.DialogueChoices = list60; + reference45 = obj45; + obj44.Steps = list59; + reference44 = obj44; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span31 = CollectionsMarshal.AsSpan(list63); - span31[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, SkipConditions = new SkipConditions @@ -6374,55 +7676,64 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference49 = ref span31[1]; - QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.39551f, -1.8032382f, 173.32715f), 152) + num2++; + ref QuestStep reference47 = ref span3[num2]; + QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.39551f, -1.8032382f, 173.32715f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new ComplexCombatData + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span8 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 15u, MinimumKillCount = 10u }; - obj48.ComplexCombatData = list64; - obj48.SkipConditions = new SkipConditions + obj47.ComplexCombatData = list62; + obj47.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true } }; - reference49 = obj48; - obj47.Steps = list63; - reference48 = obj47; - ref QuestSequence reference50 = ref span30[4]; - QuestSequence obj49 = new QuestSequence + reference47 = obj47; + obj46.Steps = list61; + reference46 = obj46; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 2000089u, new Vector3(-238.66644f, 11.856201f, 29.007324f), 152) + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000089u, new Vector3(-238.66644f, 11.856201f, 29.007324f), 152) { Fly = true }; - obj49.Steps = list65; - reference50 = obj49; - ref QuestSequence reference51 = ref span30[5]; - QuestSequence obj50 = new QuestSequence + obj48.Steps = list63; + reference48 = obj48; + num++; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000978u, new Vector3(-238.94104f, 11.550964f, 29.06836f), 152) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000978u, new Vector3(-238.94104f, 11.550964f, 29.06836f), 152) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -6430,17 +7741,20 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj50.Steps = list66; - reference51 = obj50; - ref QuestSequence reference52 = ref span30[6]; - QuestSequence obj51 = new QuestSequence + obj49.Steps = list64; + reference49 = obj49; + num++; + ref QuestSequence reference50 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6450,30 +7764,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(438) }; - obj51.Steps = list67; - reference52 = obj51; - questRoot6.QuestSequence = list57; + obj50.Steps = list65; + reference50 = obj50; + questRoot6.QuestSequence = list55; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(57); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; - questRoot7.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span32 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference53 = ref span32[0]; - QuestSequence obj52 = new QuestSequence + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "JerryWester"; + questRoot7.Author = list66; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -6485,136 +7804,116 @@ public static class AssemblyQuestLoader } } }; - obj52.Steps = list70; - reference53 = obj52; - ref QuestSequence reference54 = ref span32[1]; - QuestSequence obj53 = new QuestSequence + obj51.Steps = list68; + reference51 = obj51; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { Mount = true }; - obj53.Steps = list71; - reference54 = obj53; - ref QuestSequence reference55 = ref span32[2]; - QuestSequence obj54 = new QuestSequence + obj52.Steps = list69; + reference52 = obj52; + num++; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span33 = CollectionsMarshal.AsSpan(list72); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) { Mount = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1009979u, new Vector3(-281.48322f, 225.50882f, 556.115f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009979u, new Vector3(-281.48322f, 225.50882f, 556.115f), 155) { Fly = true }; - obj54.Steps = list72; - reference55 = obj54; - ref QuestSequence reference56 = ref span32[3]; - QuestSequence obj55 = new QuestSequence + obj53.Steps = list70; + reference53 = obj53; + num++; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span34 = CollectionsMarshal.AsSpan(list73); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.60997f, 228.96082f, 327.83392f), 155) + List list71 = new List(num2); + CollectionsMarshal.SetCount(list71, num2); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.60997f, 228.96082f, 327.83392f), 155) { Fly = true }; - span34[1] = new QuestStep(EInteractionType.Interact, 1009982u, new Vector3(208.88062f, 229.04996f, 322.4994f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009982u, new Vector3(208.88062f, 229.04996f, 322.4994f), 155) { StopDistance = 5f }; - obj55.Steps = list73; - reference56 = obj55; - ref QuestSequence reference57 = ref span32[4]; - QuestSequence obj56 = new QuestSequence + obj54.Steps = list71; + reference54 = obj54; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span35 = CollectionsMarshal.AsSpan(list74); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155); - obj56.Steps = list74; - reference57 = obj56; - questRoot7.QuestSequence = list69; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155); + obj55.Steps = list72; + reference55 = obj55; + questRoot7.QuestSequence = list67; AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(59); + AlliedSocietyDailyId questId8 = new AlliedSocietyDailyId(6, 0); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "Wigglez"; - questRoot8.Author = list75; - num = 2; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span36 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference58 = ref span36[0]; - QuestSequence obj57 = new QuestSequence + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; + questRoot8.Author = list73; + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001788u, new Vector3(669.1843f, 9.198655f, 512.9929f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch - }; - obj57.Steps = list77; - reference58 = obj57; - ref QuestSequence reference59 = ref span36[1]; - QuestSequence obj58 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004745u, new Vector3(647.0282f, 9.588856f, 487.66296f), 138); - obj58.Steps = list78; - reference59 = obj58; - questRoot8.QuestSequence = list76; - AddQuest(questId8, questRoot8); - AlliedSocietyDailyId questId9 = new AlliedSocietyDailyId(6, 0); - QuestRoot questRoot9 = new QuestRoot(); - num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; - questRoot9.Author = list79; - num = 1; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list80)[0]; - QuestSequence obj59 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.WalkTo, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { StopDistance = 3f, Fly = true, @@ -6627,30 +7926,35 @@ public static class AssemblyQuestLoader } } }; - obj59.Steps = list81; - reference60 = obj59; - questRoot9.QuestSequence = list80; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(62); - QuestRoot questRoot10 = new QuestRoot(); + obj56.Steps = list75; + reference56 = obj56; + questRoot8.QuestSequence = list74; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(62); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "JerryWester"; - questRoot10.Author = list82; - num = 2; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span37 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference61 = ref span37[0]; - QuestSequence obj60 = new QuestSequence + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "JerryWester"; + questRoot9.Author = list76; + index = 2; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -6661,50 +7965,59 @@ public static class AssemblyQuestLoader } } }; - obj60.Steps = list84; - reference61 = obj60; - ref QuestSequence reference62 = ref span37[1]; - QuestSequence obj61 = new QuestSequence + obj57.Steps = list78; + reference57 = obj57; + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span38 = CollectionsMarshal.AsSpan(list85); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) { Mount = true }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj61.Steps = list85; - reference62 = obj61; - questRoot10.QuestSequence = list83; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(67); - QuestRoot questRoot11 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj58.Steps = list79; + reference58 = obj58; + questRoot9.QuestSequence = list77; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(67); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "Cacahuetes"; - questRoot11.Author = list86; - num = 7; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span39 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference63 = ref span39[0]; - QuestSequence obj62 = new QuestSequence + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "Cacahuetes"; + questRoot10.Author = list80; + index = 7; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -6721,35 +8034,191 @@ public static class AssemblyQuestLoader } } }; - obj62.Steps = list88; - reference63 = obj62; - ref QuestSequence reference64 = ref span39[1]; - QuestSequence obj63 = new QuestSequence + obj59.Steps = list82; + reference59 = obj59; + num++; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); - obj63.Steps = list89; - reference64 = obj63; - ref QuestSequence reference65 = ref span39[2]; - QuestSequence obj64 = new QuestSequence + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 12; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span40 = CollectionsMarshal.AsSpan(list90); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) + index2 = 12; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - ref QuestStep reference66 = ref span40[1]; - QuestStep obj65 = new QuestStep(EInteractionType.Action, 2001173u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) + num2++; + ref QuestStep reference62 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + obj62.CompletionQuestVariablesFlags = list85; + reference62 = obj62; + num2++; + ref QuestStep reference63 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + skipStepConditions3.CompletionQuestVariablesFlags = list86; + skipConditions5.StepIf = skipStepConditions3; + questStep3.SkipConditions = skipConditions5; + reference63 = questStep3; + num2++; + ref QuestStep reference64 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + obj63.CompletionQuestVariablesFlags = list87; + reference64 = obj63; + num2++; + ref QuestStep reference65 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + skipStepConditions4.CompletionQuestVariablesFlags = list88; + skipConditions6.StepIf = skipStepConditions4; + questStep4.SkipConditions = skipConditions6; + reference65 = questStep4; + num2++; + ref QuestStep reference66 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + obj64.CompletionQuestVariablesFlags = list89; + reference66 = obj64; + num2++; + ref QuestStep reference67 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + skipStepConditions5.CompletionQuestVariablesFlags = list90; + skipConditions7.StepIf = skipStepConditions5; + questStep5.SkipConditions = skipConditions7; + reference67 = questStep5; + num2++; + ref QuestStep reference68 = ref span3[num2]; + QuestStep obj65 = new QuestStep(EInteractionType.Action, 2000939u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) { StopDistance = 15f, Action = EAction.HeavyShot @@ -6757,35 +8226,49 @@ public static class AssemblyQuestLoader num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span41 = CollectionsMarshal.AsSpan(list91); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list91; - reference66 = obj65; - ref QuestStep reference67 = ref span40[2]; - QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.806755f, -3.824695f, -61.20561f), 148); - SkipConditions skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span42 = CollectionsMarshal.AsSpan(list92); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - skipStepConditions5.CompletionQuestVariablesFlags = list92; - skipConditions7.StepIf = skipStepConditions5; - questStep4.SkipConditions = skipConditions7; - reference67 = questStep4; - ref QuestStep reference68 = ref span40[3]; - QuestStep obj66 = new QuestStep(EInteractionType.Action, 2001171u, new Vector3(-115.58716f, -3.402832f, -51.07196f), 148) + reference68 = obj65; + num2++; + ref QuestStep reference69 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions6.CompletionQuestVariablesFlags = list92; + skipConditions8.StepIf = skipStepConditions6; + questStep6.SkipConditions = skipConditions8; + reference69 = questStep6; + num2++; + ref QuestStep reference70 = ref span3[num2]; + QuestStep obj66 = new QuestStep(EInteractionType.Action, 2000938u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) { StopDistance = 15f, Action = EAction.HeavyShot @@ -6793,140 +8276,43 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span43 = CollectionsMarshal.AsSpan(list93); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list93; - reference68 = obj66; - ref QuestStep reference69 = ref span40[4]; - QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.90863f, -1.355497f, -69.45994f), 148); - SkipConditions skipConditions8 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - skipStepConditions6.CompletionQuestVariablesFlags = list94; - skipConditions8.StepIf = skipStepConditions6; - questStep5.SkipConditions = skipConditions8; - reference69 = questStep5; - ref QuestStep reference70 = ref span40[5]; - QuestStep obj67 = new QuestStep(EInteractionType.Action, 2000940u, new Vector3(-143.32806f, -0.41204834f, -58.884644f), 148) + reference70 = obj66; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2000937u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span45 = CollectionsMarshal.AsSpan(list95); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - obj67.CompletionQuestVariablesFlags = list95; - reference70 = obj67; - ref QuestStep reference71 = ref span40[6]; - QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-154.95493f, 4.0352364f, -132.85217f), 148); - SkipConditions skipConditions9 = new SkipConditions(); - SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span46 = CollectionsMarshal.AsSpan(list96); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - skipStepConditions7.CompletionQuestVariablesFlags = list96; - skipConditions9.StepIf = skipStepConditions7; - questStep6.SkipConditions = skipConditions9; - reference71 = questStep6; - ref QuestStep reference72 = ref span40[7]; - QuestStep obj68 = new QuestStep(EInteractionType.Action, 2000939u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) - { - StopDistance = 15f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span47 = CollectionsMarshal.AsSpan(list97); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj68.CompletionQuestVariablesFlags = list97; - reference72 = obj68; - ref QuestStep reference73 = ref span40[8]; - QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.08684f, 7.6589117f, -173.19547f), 148); - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span48 = CollectionsMarshal.AsSpan(list98); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions8.CompletionQuestVariablesFlags = list98; - skipConditions10.StepIf = skipStepConditions8; - questStep7.SkipConditions = skipConditions10; - reference73 = questStep7; - ref QuestStep reference74 = ref span40[9]; - QuestStep obj69 = new QuestStep(EInteractionType.Action, 2000938u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) - { - StopDistance = 15f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span49 = CollectionsMarshal.AsSpan(list99); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj69.CompletionQuestVariablesFlags = list99; - reference74 = obj69; - span40[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); - span40[11] = new QuestStep(EInteractionType.Action, 2000937u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) - { - StopDistance = 15f, - Action = EAction.HeavyShot - }; - obj64.Steps = list90; - reference65 = obj64; - ref QuestSequence reference75 = ref span39[3]; - QuestSequence obj70 = new QuestSequence + obj61.Steps = list84; + reference61 = obj61; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6935,18 +8321,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj70.Steps = list100; - reference75 = obj70; - ref QuestSequence reference76 = ref span39[4]; - QuestSequence obj71 = new QuestSequence + obj67.Steps = list94; + reference71 = obj67; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span50 = CollectionsMarshal.AsSpan(list101); - span50[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 3; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -6962,60 +8350,76 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut }; - ref QuestStep reference77 = ref span50[2]; - QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) + num2++; + ref QuestStep reference73 = ref span3[num2]; + QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span51 = CollectionsMarshal.AsSpan(list102); - ref ComplexCombatData reference78 = ref span51[0]; - ComplexCombatData obj73 = new ComplexCombatData + num4 = 2; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + span8 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + ref ComplexCombatData reference74 = ref span8[num3]; + ComplexCombatData obj70 = new ComplexCombatData { DataId = 12u, MinimumKillCount = 8u }; - int num4 = 6; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span52 = CollectionsMarshal.AsSpan(list103); - span52[0] = null; - span52[1] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = null; - obj73.CompletionQuestVariablesFlags = list103; - reference78 = obj73; - ref ComplexCombatData reference79 = ref span51[1]; - ComplexCombatData obj74 = new ComplexCombatData + int num5 = 6; + List list97 = new List(num5); + CollectionsMarshal.SetCount(list97, num5); + span4 = CollectionsMarshal.AsSpan(list97); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + obj70.CompletionQuestVariablesFlags = list97; + reference74 = obj70; + num3++; + ref ComplexCombatData reference75 = ref span8[num3]; + ComplexCombatData obj71 = new ComplexCombatData { DataId = 39u, MinimumKillCount = 8u }; - num4 = 6; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span53 = CollectionsMarshal.AsSpan(list104); - span53[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = null; - obj74.CompletionQuestVariablesFlags = list104; - reference79 = obj74; - obj72.ComplexCombatData = list102; - obj72.SkipConditions = new SkipConditions + num6 = 6; + List list98 = new List(num6); + CollectionsMarshal.SetCount(list98, num6); + span4 = CollectionsMarshal.AsSpan(list98); + num5 = 0; + span4[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + obj71.CompletionQuestVariablesFlags = list98; + reference75 = obj71; + obj69.ComplexCombatData = list96; + obj69.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { @@ -7023,18 +8427,21 @@ public static class AssemblyQuestLoader AetheryteLocked = EAetheryteLocation.EastShroudHawthorneHut } }; - reference77 = obj72; - obj71.Steps = list101; - reference76 = obj71; - ref QuestSequence reference80 = ref span39[5]; - QuestSequence obj75 = new QuestSequence + reference73 = obj69; + obj68.Steps = list95; + reference72 = obj68; + num++; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7043,56 +8450,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj75.Steps = list105; - reference80 = obj75; - ref QuestSequence reference81 = ref span39[6]; - QuestSequence obj76 = new QuestSequence + obj72.Steps = list99; + reference76 = obj72; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list106)[0]; - QuestStep obj77 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference78 = ref span3[num2]; + QuestStep obj74 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f }; num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new DialogueChoice + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + span6 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC002_00067_Q1_000_1") }; - obj77.DialogueChoices = list107; - obj77.NextQuestId = new QuestId(68); - reference82 = obj77; - obj76.Steps = list106; - reference81 = obj76; - questRoot11.QuestSequence = list87; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(68); - QuestRoot questRoot12 = new QuestRoot(); + obj74.DialogueChoices = list101; + obj74.NextQuestId = new QuestId(68); + reference78 = obj74; + obj73.Steps = list100; + reference77 = obj73; + questRoot10.QuestSequence = list81; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(68); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "pot0to"; - questRoot12.Author = list108; - num = 7; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span54 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference83 = ref span54[0]; - QuestSequence obj78 = new QuestSequence + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "pot0to"; + questRoot11.Author = list102; + index = 7; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7109,29 +8526,34 @@ public static class AssemblyQuestLoader } } }; - obj78.Steps = list110; - reference83 = obj78; - ref QuestSequence reference84 = ref span54[1]; - QuestSequence obj79 = new QuestSequence + obj75.Steps = list104; + reference79 = obj75; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132); - obj79.Steps = list111; - reference84 = obj79; - ref QuestSequence reference85 = ref span54[2]; - QuestSequence obj80 = new QuestSequence + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 2 }; num2 = 14; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span55 = CollectionsMarshal.AsSpan(list112); - span55[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -7147,7 +8569,8 @@ public static class AssemblyQuestLoader } } }; - span55[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -7158,34 +8581,192 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference86 = ref span55[2]; - QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.03064f, 9.169003f, 323.19617f), 152) + index2++; + ref QuestStep reference82 = ref span3[index2]; + QuestStep obj78 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.03064f, 9.169003f, 323.19617f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - SkipConditions skipConditions11 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span56 = CollectionsMarshal.AsSpan(list113); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - skipStepConditions9.CompletionQuestVariablesFlags = list113; - skipConditions11.StepIf = skipStepConditions9; - skipConditions11.AetheryteShortcutIf = new SkipAetheryteCondition + SkipConditions skipConditions9 = new SkipConditions(); + SkipStepConditions skipStepConditions7 = new SkipStepConditions(); + num4 = 6; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + span4 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + skipStepConditions7.CompletionQuestVariablesFlags = list107; + skipConditions9.StepIf = skipStepConditions7; + skipConditions9.AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - obj81.SkipConditions = skipConditions11; - reference86 = obj81; - ref QuestStep reference87 = ref span55[3]; - QuestStep obj82 = new QuestStep(EInteractionType.Action, 2000944u, new Vector3(-330.12903f, 16.708557f, 329.67102f), 152) + obj78.SkipConditions = skipConditions9; + reference82 = obj78; + index2++; + ref QuestStep reference83 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj79.CompletionQuestVariablesFlags = list108; + reference83 = obj79; + index2++; + ref QuestStep reference84 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions8.CompletionQuestVariablesFlags = list109; + skipConditions10.StepIf = skipStepConditions8; + questStep7.SkipConditions = skipConditions10; + reference84 = questStep7; + index2++; + ref QuestStep reference85 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj80.CompletionQuestVariablesFlags = list110; + reference85 = obj80; + index2++; + ref QuestStep reference86 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + skipStepConditions9.CompletionQuestVariablesFlags = list111; + skipConditions11.StepIf = skipStepConditions9; + questStep8.SkipConditions = skipConditions11; + reference86 = questStep8; + index2++; + ref QuestStep reference87 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + obj81.CompletionQuestVariablesFlags = list112; + reference87 = obj81; + index2++; + ref QuestStep reference88 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + skipStepConditions10.CompletionQuestVariablesFlags = list113; + skipConditions12.StepIf = skipStepConditions10; + questStep9.SkipConditions = skipConditions12; + reference88 = questStep9; + index2++; + ref QuestStep reference89 = ref span3[index2]; + QuestStep obj82 = new QuestStep(EInteractionType.Action, 2000942u, new Vector3(-378.53058f, 9.048584f, 262.68408f), 152) { StopDistance = 20f, Action = EAction.HeavyShot @@ -7193,35 +8774,49 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span57 = CollectionsMarshal.AsSpan(list114); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list114; - reference87 = obj82; - ref QuestStep reference88 = ref span55[4]; - QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-321.1917f, 0.22361445f, 297.61597f), 152); - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span58 = CollectionsMarshal.AsSpan(list115); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions10.CompletionQuestVariablesFlags = list115; - skipConditions12.StepIf = skipStepConditions10; - questStep8.SkipConditions = skipConditions12; - reference88 = questStep8; - ref QuestStep reference89 = ref span55[5]; - QuestStep obj83 = new QuestStep(EInteractionType.Action, 2000943u, new Vector3(-330.73932f, 9.262146f, 290.1808f), 152) + reference89 = obj82; + index2++; + ref QuestStep reference90 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + skipStepConditions11.CompletionQuestVariablesFlags = list115; + skipConditions13.StepIf = skipStepConditions11; + questStep10.SkipConditions = skipConditions13; + reference90 = questStep10; + index2++; + ref QuestStep reference91 = ref span3[index2]; + QuestStep obj83 = new QuestStep(EInteractionType.Action, 2001179u, new Vector3(-297.29156f, 5.996765f, 250.96509f), 152) { StopDistance = 20f, Action = EAction.HeavyShot @@ -7229,140 +8824,43 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span59 = CollectionsMarshal.AsSpan(list116); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list116; - reference89 = obj83; - ref QuestStep reference90 = ref span55[6]; - QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.00266f, 6.9801626f, 306.18744f), 152); - SkipConditions skipConditions13 = new SkipConditions(); - SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span60 = CollectionsMarshal.AsSpan(list117); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - skipStepConditions11.CompletionQuestVariablesFlags = list117; - skipConditions13.StepIf = skipStepConditions11; - questStep9.SkipConditions = skipConditions13; - reference90 = questStep9; - ref QuestStep reference91 = ref span55[7]; - QuestStep obj84 = new QuestStep(EInteractionType.Action, 2000945u, new Vector3(-364.55334f, 14.480774f, 307.60657f), 152) + reference91 = obj83; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.77237f, -3.2272563f, 240.00267f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2000946u, new Vector3(-269.00134f, 4.2266846f, 230.45691f), 152) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span61 = CollectionsMarshal.AsSpan(list118); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - obj84.CompletionQuestVariablesFlags = list118; - reference91 = obj84; - ref QuestStep reference92 = ref span55[8]; - QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.32364f, 6.10847f, 269.35767f), 152); - SkipConditions skipConditions14 = new SkipConditions(); - SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 6; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span62 = CollectionsMarshal.AsSpan(list119); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - skipStepConditions12.CompletionQuestVariablesFlags = list119; - skipConditions14.StepIf = skipStepConditions12; - questStep10.SkipConditions = skipConditions14; - reference92 = questStep10; - ref QuestStep reference93 = ref span55[9]; - QuestStep obj85 = new QuestStep(EInteractionType.Action, 2000942u, new Vector3(-378.53058f, 9.048584f, 262.68408f), 152) - { - StopDistance = 20f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span63 = CollectionsMarshal.AsSpan(list120); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj85.CompletionQuestVariablesFlags = list120; - reference93 = obj85; - ref QuestStep reference94 = ref span55[10]; - QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-301.42407f, 0.17268503f, 257.9185f), 152); - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span64 = CollectionsMarshal.AsSpan(list121); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - skipStepConditions13.CompletionQuestVariablesFlags = list121; - skipConditions15.StepIf = skipStepConditions13; - questStep11.SkipConditions = skipConditions15; - reference94 = questStep11; - ref QuestStep reference95 = ref span55[11]; - QuestStep obj86 = new QuestStep(EInteractionType.Action, 2001179u, new Vector3(-297.29156f, 5.996765f, 250.96509f), 152) - { - StopDistance = 20f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span65 = CollectionsMarshal.AsSpan(list122); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - obj86.CompletionQuestVariablesFlags = list122; - reference95 = obj86; - span55[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.77237f, -3.2272563f, 240.00267f), 152); - span55[13] = new QuestStep(EInteractionType.Action, 2000946u, new Vector3(-269.00134f, 4.2266846f, 230.45691f), 152) - { - StopDistance = 20f, - Action = EAction.HeavyShot - }; - obj80.Steps = list112; - reference85 = obj80; - ref QuestSequence reference96 = ref span54[3]; - QuestSequence obj87 = new QuestSequence + obj77.Steps = list106; + reference81 = obj77; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7371,17 +8869,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj87.Steps = list123; - reference96 = obj87; - ref QuestSequence reference97 = ref span54[4]; - QuestSequence obj88 = new QuestSequence + obj84.Steps = list117; + reference92 = obj84; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000962u, new Vector3(288.56335f, -11.306946f, 52.384155f), 154) + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000962u, new Vector3(288.56335f, -11.306946f, 52.384155f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -7390,17 +8891,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - obj88.Steps = list124; - reference97 = obj88; - ref QuestSequence reference98 = ref span54[5]; - QuestSequence obj89 = new QuestSequence + obj85.Steps = list118; + reference93 = obj85; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7409,151 +8913,180 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj89.Steps = list125; - reference98 = obj89; - ref QuestSequence reference99 = ref span54[6]; - QuestSequence obj90 = new QuestSequence + obj86.Steps = list119; + reference94 = obj86; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { NextQuestId = new QuestId(70) }; - obj90.Steps = list126; - reference99 = obj90; - questRoot12.QuestSequence = list109; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(69); - QuestRoot questRoot13 = new QuestRoot(); + obj87.Steps = list120; + reference95 = obj87; + questRoot11.QuestSequence = list103; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(69); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; - questRoot13.Author = list127; - num = 6; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span66 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference100 = ref span66[0]; - QuestSequence obj91 = new QuestSequence + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "JerryWester"; + questRoot12.Author = list121; + index = 6; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj91.Steps = list129; - reference100 = obj91; - ref QuestSequence reference101 = ref span66[1]; - QuestSequence obj92 = new QuestSequence + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span67 = CollectionsMarshal.AsSpan(list130); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); - span67[2] = new QuestStep(EInteractionType.Interact, 2004652u, new Vector3(-440.6301f, 211f, -263.6248f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004652u, new Vector3(-440.6301f, 211f, -263.6248f), 155) { Fly = true }; - obj92.Steps = list130; - reference101 = obj92; - ref QuestSequence reference102 = ref span66[2]; - QuestSequence obj93 = new QuestSequence + obj89.Steps = list124; + reference97 = obj89; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 2004653u, new Vector3(-451.89594f, 221.6372f, -149.27905f), 155) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004653u, new Vector3(-451.89594f, 221.6372f, -149.27905f), 155) { Fly = true }; - obj93.Steps = list131; - reference102 = obj93; - ref QuestSequence reference103 = ref span66[3]; - QuestSequence obj94 = new QuestSequence + obj90.Steps = list125; + reference98 = obj90; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 2004654u, new Vector3(-345.14386f, 254.4137f, -95.384155f), 155) + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004654u, new Vector3(-345.14386f, 254.4137f, -95.384155f), 155) { Fly = true }; - obj94.Steps = list132; - reference103 = obj94; - ref QuestSequence reference104 = ref span66[4]; - QuestSequence obj95 = new QuestSequence + obj91.Steps = list126; + reference99 = obj91; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span68 = CollectionsMarshal.AsSpan(list133); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.60776f, 259.52878f, 58.521606f), 155) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.60776f, 259.52878f, 58.521606f), 155) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.Interact, 2004655u, new Vector3(-386.1906f, 270.46606f, 77.62268f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004655u, new Vector3(-386.1906f, 270.46606f, 77.62268f), 155) { Fly = true }; - obj95.Steps = list133; - reference104 = obj95; - ref QuestSequence reference105 = ref span66[5]; - QuestSequence obj96 = new QuestSequence + obj92.Steps = list127; + reference100 = obj92; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span69 = CollectionsMarshal.AsSpan(list134); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj96.Steps = list134; - reference105 = obj96; - questRoot13.QuestSequence = list128; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(70); - QuestRoot questRoot14 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj93.Steps = list128; + reference101 = obj93; + questRoot12.QuestSequence = list122; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(70); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "pot0to"; - questRoot14.Author = list135; - num = 7; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span70 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference106 = ref span70[0]; - QuestSequence obj97 = new QuestSequence + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + span = CollectionsMarshal.AsSpan(list129); + index = 0; + span[index] = "pot0to"; + questRoot13.Author = list129; + index = 7; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + span2 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7570,18 +9103,20 @@ public static class AssemblyQuestLoader } } }; - obj97.Steps = list137; - reference106 = obj97; - ref QuestSequence reference107 = ref span70[1]; - QuestSequence obj98 = new QuestSequence + obj94.Steps = list131; + reference102 = obj94; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span71 = CollectionsMarshal.AsSpan(list138); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -7593,125 +9128,162 @@ public static class AssemblyQuestLoader } } }; - span71[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj98.Steps = list138; - reference107 = obj98; - ref QuestSequence reference108 = ref span70[2]; - QuestSequence obj99 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span72 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference109 = ref span72[0]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2000949u, new Vector3(-258.9914f, 10.330261f, -46.00598f), 153); + index2 = 3; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference105 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list134; + reference105 = questStep11; + num2++; + ref QuestStep reference106 = ref span3[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2000948u, new Vector3(-270.00848f, 15.487854f, -91.17267f), 153); num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span73 = CollectionsMarshal.AsSpan(list140); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list140; - reference109 = questStep12; - ref QuestStep reference110 = ref span72[1]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2000948u, new Vector3(-270.00848f, 15.487854f, -91.17267f), 153); - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span74 = CollectionsMarshal.AsSpan(list141); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list141; - reference110 = questStep13; - ref QuestStep reference111 = ref span72[2]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2000947u, new Vector3(-318.07434f, 18.936401f, -165.11792f), 153); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span75 = CollectionsMarshal.AsSpan(list142); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list142; - reference111 = questStep14; - obj99.Steps = list139; - reference108 = obj99; - ref QuestSequence reference112 = ref span70[3]; - QuestSequence obj100 = new QuestSequence + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + span4 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list135; + reference106 = questStep12; + num2++; + ref QuestStep reference107 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list136; + reference107 = questStep13; + obj96.Steps = list133; + reference104 = obj96; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list143)[0]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001105u, new Vector3(-173.02203f, 9.872559f, -78.690796f), 153); + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + ref QuestStep reference109 = ref span3[index2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001105u, new Vector3(-173.02203f, 9.872559f, -78.690796f), 153); num3 = 2; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span76 = CollectionsMarshal.AsSpan(list144); - span76[0] = new DialogueChoice + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + span6 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC004_00070_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSARC004_00070_A1_000_1") }; - span76[1] = new DialogueChoice + num4++; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC004_00070_Q2_000_1"), Answer = new ExcelRef("TEXT_CLSARC004_00070_A2_000_3") }; - questStep15.DialogueChoices = list144; - reference113 = questStep15; - obj100.Steps = list143; - reference112 = obj100; - ref QuestSequence reference114 = ref span70[4]; - QuestSequence obj101 = new QuestSequence + questStep14.DialogueChoices = list138; + reference109 = questStep14; + obj97.Steps = list137; + reference108 = obj97; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span77 = CollectionsMarshal.AsSpan(list145); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.12004f, 8.180927f, -65.00513f), 153); - span77[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000136u, new Vector3(-295.85718f, 23.575134f, -192.34003f), 153); - obj101.Steps = list145; - reference114 = obj101; - ref QuestSequence reference115 = ref span70[5]; - QuestSequence obj102 = new QuestSequence + index2 = 2; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.12004f, 8.180927f, -65.00513f), 153); + num2++; + span3[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 span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj102.Steps = list146; - reference115 = obj102; - ref QuestSequence reference116 = ref span70[6]; - QuestSequence obj103 = new QuestSequence + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7722,29 +9294,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(71) }; - obj103.Steps = list147; - reference116 = obj103; - questRoot14.QuestSequence = list136; - AddQuest(questId14, questRoot14); - AlliedSocietyDailyId questId15 = new AlliedSocietyDailyId(7, 0); - QuestRoot questRoot15 = new QuestRoot(); + obj100.Steps = list141; + reference112 = obj100; + questRoot13.QuestSequence = list130; + AddQuest(questId13, questRoot13); + AlliedSocietyDailyId questId14 = new AlliedSocietyDailyId(7, 0); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; - questRoot15.Author = list148; - num = 1; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - ref QuestSequence reference117 = ref CollectionsMarshal.AsSpan(list149)[0]; - QuestSequence obj104 = new QuestSequence + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "liza"; + questRoot14.Author = list142; + index = 1; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -7756,30 +9334,35 @@ public static class AssemblyQuestLoader } } }; - obj104.Steps = list150; - reference117 = obj104; - questRoot15.QuestSequence = list149; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(71); - QuestRoot questRoot16 = new QuestRoot(); + obj101.Steps = list144; + reference113 = obj101; + questRoot14.QuestSequence = list143; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(71); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "pot0to"; - questRoot16.Author = list151; - num = 6; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span78 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference118 = ref span78[0]; - QuestSequence obj105 = new QuestSequence + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "pot0to"; + questRoot15.Author = list145; + index = 6; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7796,67 +9379,80 @@ public static class AssemblyQuestLoader } } }; - obj105.Steps = list153; - reference118 = obj105; - ref QuestSequence reference119 = ref span78[1]; - QuestSequence obj106 = new QuestSequence + obj102.Steps = list147; + reference114 = obj102; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132); - obj106.Steps = list154; - reference119 = obj106; - ref QuestSequence reference120 = ref span78[2]; - QuestSequence obj107 = new QuestSequence + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032133E-05f, 28.580078f), 132); - obj107.Steps = list155; - reference120 = obj107; - ref QuestSequence reference121 = ref span78[3]; - QuestSequence obj108 = new QuestSequence + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list156)[0]; - QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2000951u, new Vector3(-1.8158569f, 6.9122925f, -93.0343f), 153) + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + ref QuestStep reference118 = ref span3[index2]; + QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2000951u, new Vector3(-1.8158569f, 6.9122925f, -93.0343f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + num4 = 1; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + span6 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC005_00071_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSARC005_00071_A1_000_1") }; - obj109.DialogueChoices = list157; - reference122 = obj109; - obj108.Steps = list156; - reference121 = obj108; - ref QuestSequence reference123 = ref span78[4]; - QuestSequence obj110 = new QuestSequence + obj106.DialogueChoices = list151; + reference118 = obj106; + obj105.Steps = list150; + reference117 = obj105; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - Span span79 = CollectionsMarshal.AsSpan(list158); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.130726f, -5.9999475f, 63.516415f), 148) + index2 = 2; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.130726f, -5.9999475f, 63.516415f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -7867,21 +9463,25 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000534u, new Vector3(134.47766f, -7f, -69.993164f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000534u, new Vector3(134.47766f, -7f, -69.993164f), 148) { Fly = true }; - obj110.Steps = list158; - reference123 = obj110; - ref QuestSequence reference124 = ref span78[5]; - QuestSequence obj111 = new QuestSequence + obj107.Steps = list152; + reference119 = obj107; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7892,182 +9492,222 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(76) }; - obj111.Steps = list159; - reference124 = obj111; - questRoot16.QuestSequence = list152; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(74); - QuestRoot questRoot17 = new QuestRoot(); + obj108.Steps = list153; + reference120 = obj108; + questRoot15.QuestSequence = list146; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(74); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; - questRoot17.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span80 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference125 = ref span80[0]; - QuestSequence obj112 = new QuestSequence + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list154; + index = 4; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj112.Steps = list162; - reference125 = obj112; - ref QuestSequence reference126 = ref span80[1]; - QuestSequence obj113 = new QuestSequence + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span81 = CollectionsMarshal.AsSpan(list163); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) { Fly = true }; - span81[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); - span81[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - span81[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - ref QuestStep reference127 = ref span81[4]; - QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.5987f, 231.30257f, 306.35776f), 155) + index2++; + ref QuestStep reference123 = ref span3[index2]; + QuestStep obj111 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.5987f, 231.30257f, 306.35776f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span82 = CollectionsMarshal.AsSpan(list164); - span82[0] = 724u; - span82[1] = 725u; - span82[2] = 726u; - obj114.KillEnemyDataIds = list164; - reference127 = obj114; - obj113.Steps = list163; - reference126 = obj113; - ref QuestSequence reference128 = ref span80[2]; - QuestSequence obj115 = new QuestSequence + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + span5 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span5[num4] = 724u; + num4++; + span5[num4] = 725u; + num4++; + span5[num4] = 726u; + obj111.KillEnemyDataIds = list158; + reference123 = obj111; + obj110.Steps = list157; + reference122 = obj110; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 2005002u, new Vector3(-381.7655f, 230.82312f, 303.57812f), 155); - obj115.Steps = list165; - reference128 = obj115; - ref QuestSequence reference129 = ref span80[3]; - QuestSequence obj116 = new QuestSequence + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 4; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span83 = CollectionsMarshal.AsSpan(list166); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - span83[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - span83[3] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj116.Steps = list166; - reference129 = obj116; - questRoot17.QuestSequence = list161; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(75); - QuestRoot questRoot18 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj113.Steps = list160; + reference125 = obj113; + questRoot16.QuestSequence = list155; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(75); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "JerryWester"; - questRoot18.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span84 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference130 = ref span84[0]; - QuestSequence obj117 = new QuestSequence + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "JerryWester"; + questRoot17.Author = list161; + index = 7; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj117.Steps = list169; - reference130 = obj117; - ref QuestSequence reference131 = ref span84[1]; - QuestSequence obj118 = new QuestSequence + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span85 = CollectionsMarshal.AsSpan(list170); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) { Fly = true }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); - span85[2] = new QuestStep(EInteractionType.Interact, 1010001u, new Vector3(-915.2514f, 229.35544f, -3.1586914f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010001u, new Vector3(-915.2514f, 229.35544f, -3.1586914f), 155) { Fly = true }; - obj118.Steps = list170; - reference131 = obj118; - ref QuestSequence reference132 = ref span84[2]; - QuestSequence obj119 = new QuestSequence + obj115.Steps = list164; + reference127 = obj115; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj119.Steps = list171; - reference132 = obj119; - ref QuestSequence reference133 = ref span84[3]; - QuestSequence obj120 = new QuestSequence + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155); - obj120.Steps = list172; - reference133 = obj120; - ref QuestSequence reference134 = ref span84[4]; - QuestSequence obj121 = new QuestSequence + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -8075,45 +9715,54 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 27u } }; - obj121.Steps = list173; - reference134 = obj121; - span84[5] = new QuestSequence + obj118.Steps = list167; + reference130 = obj118; + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference135 = ref span84[6]; - QuestSequence obj122 = new QuestSequence + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj122.Steps = list174; - reference135 = obj122; - questRoot18.QuestSequence = list168; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(76); - QuestRoot questRoot19 = new QuestRoot(); + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); + obj119.Steps = list168; + reference131 = obj119; + questRoot17.QuestSequence = list162; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(76); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "pot0to"; - questRoot19.Author = list175; - num = 4; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span86 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference136 = ref span86[0]; - QuestSequence obj123 = new QuestSequence + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "pot0to"; + questRoot18.Author = list169; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -8130,32 +9779,38 @@ public static class AssemblyQuestLoader } } }; - obj123.Steps = list177; - reference136 = obj123; - ref QuestSequence reference137 = ref span86[1]; - QuestSequence obj124 = new QuestSequence + obj120.Steps = list171; + reference132 = obj120; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000795u, new Vector3(278.61438f, 8.346143f, -38.223938f), 153) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000795u, new Vector3(278.61438f, 8.346143f, -38.223938f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj124.Steps = list178; - reference137 = obj124; - ref QuestSequence reference138 = ref span86[2]; - QuestSequence obj125 = new QuestSequence + obj121.Steps = list172; + reference133 = obj121; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000709u, new Vector3(-90.74542f, 0.015197754f, 61.08191f), 153) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000709u, new Vector3(-90.74542f, 0.015197754f, 61.08191f), 153) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -8163,17 +9818,20 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj125.Steps = list179; - reference138 = obj125; - ref QuestSequence reference139 = ref span86[3]; - QuestSequence obj126 = new QuestSequence + obj122.Steps = list173; + reference134 = obj122; + num++; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -8184,199 +9842,242 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1085) }; - obj126.Steps = list180; - reference139 = obj126; - questRoot19.QuestSequence = list176; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(77); - QuestRoot questRoot20 = new QuestRoot(); + obj123.Steps = list174; + reference135 = obj123; + questRoot18.QuestSequence = list170; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(77); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "JerryWester"; - questRoot20.Author = list181; - num = 9; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span87 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference140 = ref span87[0]; - QuestSequence obj127 = new QuestSequence + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; + questRoot19.Author = list175; + index = 9; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj127.Steps = list183; - reference140 = obj127; - ref QuestSequence reference141 = ref span87[1]; - QuestSequence obj128 = new QuestSequence + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1009997u, new Vector3(-897.1847f, 230.48358f, -17.502136f), 155); - obj128.Steps = list184; - reference141 = obj128; - ref QuestSequence reference142 = ref span87[2]; - QuestSequence obj129 = new QuestSequence + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1010148u, new Vector3(-427.1153f, 235.91968f, -119.76807f), 155) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010148u, new Vector3(-427.1153f, 235.91968f, -119.76807f), 155) { Fly = true }; - obj129.Steps = list185; - reference142 = obj129; - ref QuestSequence reference143 = ref span87[3]; - QuestSequence obj130 = new QuestSequence + obj126.Steps = list179; + reference138 = obj126; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span88 = CollectionsMarshal.AsSpan(list186); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - span88[2] = new QuestStep(EInteractionType.Interact, 2004657u, new Vector3(-395.31555f, 239.61243f, 343.83154f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004657u, new Vector3(-395.31555f, 239.61243f, 343.83154f), 155) { Fly = true }; - obj130.Steps = list186; - reference143 = obj130; - ref QuestSequence reference144 = ref span87[4]; - QuestSequence obj131 = new QuestSequence + obj127.Steps = list180; + reference139 = obj127; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1010149u, new Vector3(-302.05237f, 233.08154f, 406.05774f), 155) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010149u, new Vector3(-302.05237f, 233.08154f, 406.05774f), 155) { Fly = true }; - obj131.Steps = list187; - reference144 = obj131; - ref QuestSequence reference145 = ref span87[5]; - QuestSequence obj132 = new QuestSequence + obj128.Steps = list181; + reference140 = obj128; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list188)[0]; - QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.44443f, 221.34477f, 438.09082f), 155) + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + ref QuestStep reference142 = ref span3[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.44443f, 221.34477f, 438.09082f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span89 = CollectionsMarshal.AsSpan(list189); - span89[0] = 726u; - span89[1] = 3122u; - obj133.KillEnemyDataIds = list189; - reference146 = obj133; - obj132.Steps = list188; - reference145 = obj132; - ref QuestSequence reference147 = ref span87[6]; - QuestSequence obj134 = new QuestSequence + num4 = 2; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + span5 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span5[num3] = 726u; + num3++; + span5[num3] = 3122u; + obj130.KillEnemyDataIds = list183; + reference142 = obj130; + obj129.Steps = list182; + reference141 = obj129; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1010150u, new Vector3(-190.11218f, 221.13583f, 438.83423f), 155); - obj134.Steps = list190; - reference147 = obj134; - ref QuestSequence reference148 = ref span87[7]; - QuestSequence obj135 = new QuestSequence + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1010151u, new Vector3(158.73962f, 222.43689f, 302.96777f), 155) + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010151u, new Vector3(158.73962f, 222.43689f, 302.96777f), 155) { Fly = true }; - obj135.Steps = list191; - reference148 = obj135; - ref QuestSequence reference149 = ref span87[8]; - QuestSequence obj136 = new QuestSequence + obj132.Steps = list185; + reference144 = obj132; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); - obj136.Steps = list192; - reference149 = obj136; - questRoot20.QuestSequence = list182; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(78); - QuestRoot questRoot21 = new QuestRoot(); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); + obj133.Steps = list186; + reference145 = obj133; + questRoot19.QuestSequence = list176; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(78); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; - questRoot21.Author = list193; - num = 6; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span90 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference150 = ref span90[0]; - QuestSequence obj137 = new QuestSequence + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "JerryWester"; + questRoot20.Author = list187; + index = 6; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); - obj137.Steps = list195; - reference150 = obj137; - ref QuestSequence reference151 = ref span90[1]; - QuestSequence obj138 = new QuestSequence + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); + obj134.Steps = list189; + reference146 = obj134; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); - obj138.Steps = list196; - reference151 = obj138; - ref QuestSequence reference152 = ref span90[2]; - QuestSequence obj139 = new QuestSequence + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); + obj135.Steps = list190; + reference147 = obj135; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -8385,336 +10086,411 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj139.Steps = list197; - reference152 = obj139; - ref QuestSequence reference153 = ref span90[3]; - QuestSequence obj140 = new QuestSequence + obj136.Steps = list191; + reference148 = obj136; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list198)[0]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + ref QuestStep reference150 = ref span3[num2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new DialogueChoice + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + span6 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE410_00078_Q1_000_1") }; - questStep16.DialogueChoices = list199; - reference154 = questStep16; - obj140.Steps = list198; - reference153 = obj140; - ref QuestSequence reference155 = ref span90[4]; - QuestSequence obj141 = new QuestSequence + questStep15.DialogueChoices = list193; + reference150 = questStep15; + obj137.Steps = list192; + reference149 = obj137; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133); - obj141.Steps = list200; - reference155 = obj141; - ref QuestSequence reference156 = ref span90[5]; - QuestSequence obj142 = new QuestSequence + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133); + obj138.Steps = list194; + reference151 = obj138; + num++; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span91 = CollectionsMarshal.AsSpan(list201); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.33281f, 5.385648f, -34.441406f), 133) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.33281f, 5.385648f, -34.441406f), 133) { TargetTerritoryId = (ushort)132 }; - span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132); - obj142.Steps = list201; - reference156 = obj142; - questRoot21.QuestSequence = list194; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132); + obj139.Steps = list195; + reference152 = obj139; + questRoot20.QuestSequence = list188; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(82); + QuestRoot questRoot21 = new QuestRoot(); + num = 1; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "JerryWester"; + questRoot21.Author = list196; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj140 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + obj140.Steps = list198; + reference153 = obj140; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj141 = new QuestSequence + { + Sequence = 1 + }; + index2 = 5; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + { + TargetTerritoryId = (ushort)351 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + { + TargetTerritoryId = (ushort)156 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + { + Mount = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.74144f, 31.209013f, -740.77594f), 156) + { + Fly = true + }; + num2++; + span3[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 span2[num]; + QuestSequence obj142 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list200 = new List(num2); + CollectionsMarshal.SetCount(list200, num2); + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj143 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 4; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + { + TargetTerritoryId = (ushort)351 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + { + TargetTerritoryId = (ushort)351 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + obj143.Steps = list201; + reference156 = obj143; + questRoot21.QuestSequence = list197; AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(82); + QuestId questId22 = new QuestId(84); QuestRoot questRoot22 = new QuestRoot(); num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list202; - num = 4; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span92 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference157 = ref span92[0]; - QuestSequence obj143 = new QuestSequence + index = 7; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 0 }; num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); - obj143.Steps = list204; - reference157 = obj143; - ref QuestSequence reference158 = ref span92[1]; - QuestSequence obj144 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span93 = CollectionsMarshal.AsSpan(list205); - span93[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155) { - TargetTerritoryId = (ushort)351 + Fly = true, + AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span93[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) - { - TargetTerritoryId = (ushort)156 - }; - span93[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) - { - Mount = true - }; - span93[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.74144f, 31.209013f, -740.77594f), 156) - { - Fly = true - }; - span93[4] = new QuestStep(EInteractionType.Interact, 2004661u, new Vector3(83.14636f, 31.204712f, -741.1765f), 156); - obj144.Steps = list205; - reference158 = obj144; - ref QuestSequence reference159 = ref span92[2]; - QuestSequence obj145 = new QuestSequence + obj145.Steps = list205; + reference158 = obj145; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 2 }; num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1010039u, new Vector3(83.81775f, 31.216015f, -744.6555f), 156) - { - StopDistance = 7f - }; - obj145.Steps = list206; - reference159 = obj145; - ref QuestSequence reference160 = ref span92[3]; - QuestSequence obj146 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 4; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span94 = CollectionsMarshal.AsSpan(list207); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) - { - Fly = true - }; - span94[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) - { - TargetTerritoryId = (ushort)351 - }; - span94[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) - { - TargetTerritoryId = (ushort)351 - }; - span94[3] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); - obj146.Steps = list207; - reference160 = obj146; - questRoot22.QuestSequence = list203; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(84); - QuestRoot questRoot23 = new QuestRoot(); - num = 1; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; - questRoot23.Author = list208; - num = 7; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span95 = CollectionsMarshal.AsSpan(list209); - ref QuestSequence reference161 = ref span95[0]; + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[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 span2[num]; QuestSequence obj147 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj147.Steps = list210; - reference161 = obj147; - ref QuestSequence reference162 = ref span95[1]; - QuestSequence obj148 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead - }; - obj148.Steps = list211; - reference162 = obj148; - ref QuestSequence reference163 = ref span95[2]; - QuestSequence obj149 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj149.Steps = list212; - reference163 = obj149; - ref QuestSequence reference164 = ref span95[3]; - QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155); - obj150.Steps = list213; - reference164 = obj150; - ref QuestSequence reference165 = ref span95[4]; - QuestSequence obj151 = new QuestSequence + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 79u } }; - obj151.Steps = list214; - reference165 = obj151; - span95[5] = new QuestSequence + obj148.Steps = list208; + reference161 = obj148; + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference166 = ref span95[6]; - QuestSequence obj152 = new QuestSequence + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); - obj152.Steps = list215; - reference166 = obj152; - questRoot23.QuestSequence = list209; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(85); - QuestRoot questRoot24 = new QuestRoot(); + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); + obj149.Steps = list209; + reference162 = obj149; + questRoot22.QuestSequence = list203; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(85); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; - questRoot24.Author = list216; - num = 3; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span96 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference167 = ref span96[0]; - QuestSequence obj153 = new QuestSequence + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; + questRoot23.Author = list210; + index = 3; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); - obj153.Steps = list218; - reference167 = obj153; - ref QuestSequence reference168 = ref span96[1]; - QuestSequence obj154 = new QuestSequence + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + obj150.Steps = list212; + reference163 = obj150; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span97 = CollectionsMarshal.AsSpan(list219); - ref QuestStep reference169 = ref span97[0]; - QuestStep obj155 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + index2 = 9; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; + QuestStep obj152 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span98 = CollectionsMarshal.AsSpan(list220); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj155.CompletionQuestVariablesFlags = list220; - reference169 = obj155; - span97[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num4 = 6; + List list214 = new List(num4); + CollectionsMarshal.SetCount(list214, num4); + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj152.CompletionQuestVariablesFlags = list214; + reference165 = obj152; + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span97[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span97[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span97[4] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; - span97[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span97[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span97[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span97[8] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { Comment = "Lancer Receptionist" }; - obj154.Steps = list219; - reference168 = obj154; - ref QuestSequence reference170 = ref span96[2]; - QuestSequence obj156 = new QuestSequence + obj151.Steps = list213; + reference164 = obj151; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 8; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span99 = CollectionsMarshal.AsSpan(list221); - span99[0] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { Disabled = true, Comment = "Pick up Class Quest" }; - span99[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -8723,12 +10499,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span99[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span99[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span99[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -8737,7 +10516,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span99[5] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -8750,7 +10530,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span99[6] = new QuestStep(EInteractionType.None, null, null, 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -8758,7 +10539,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span99[7] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -8766,112 +10548,133 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj156.Steps = list221; - reference170 = obj156; - questRoot24.QuestSequence = list217; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(86); - QuestRoot questRoot25 = new QuestRoot(); + obj153.Steps = list215; + reference166 = obj153; + questRoot23.QuestSequence = list211; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(86); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "JerryWester"; - questRoot25.Author = list222; - num = 4; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span100 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference171 = ref span100[0]; - QuestSequence obj157 = new QuestSequence + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "JerryWester"; + questRoot24.Author = list216; + index = 4; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); - obj157.Steps = list224; - reference171 = obj157; - ref QuestSequence reference172 = ref span100[1]; - QuestSequence obj158 = new QuestSequence + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span101 = CollectionsMarshal.AsSpan(list225); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.21158f, 265.1f, -212.42732f), 155) + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.21158f, 265.1f, -212.42732f), 155) { Fly = true }; - span101[1] = new QuestStep(EInteractionType.Interact, 1009984u, new Vector3(-431.1742f, 233.47266f, -201.00714f), 155); - obj158.Steps = list225; - reference172 = obj158; - ref QuestSequence reference173 = ref span100[2]; - QuestSequence obj159 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span102 = CollectionsMarshal.AsSpan(list226); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.2761f, 302.6276f, -199.78418f), 155) + index2 = 2; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.2761f, 302.6276f, -199.78418f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span102[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj159.Steps = list226; - reference173 = obj159; - ref QuestSequence reference174 = ref span100[3]; - QuestSequence obj160 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list227)[0]; - QuestStep obj161 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference171 = ref span3[index2]; + QuestStep obj158 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new DialogueChoice + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + span6 = CollectionsMarshal.AsSpan(list222); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE416_00086_FORTEMPSGUARD00054_Q1_000_1") }; - obj161.DialogueChoices = list228; - reference175 = obj161; - obj160.Steps = list227; - reference174 = obj160; - questRoot25.QuestSequence = list223; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(87); - QuestRoot questRoot26 = new QuestRoot(); + obj158.DialogueChoices = list222; + reference171 = obj158; + obj157.Steps = list221; + reference170 = obj157; + questRoot24.QuestSequence = list217; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(87); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "JerryWester"; - questRoot26.Author = list229; - num = 2; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span103 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference176 = ref span103[0]; - QuestSequence obj162 = new QuestSequence + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "JerryWester"; + questRoot25.Author = list223; + index = 2; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -8882,148 +10685,176 @@ public static class AssemblyQuestLoader } } }; - obj162.Steps = list231; - reference176 = obj162; - ref QuestSequence reference177 = ref span103[1]; - QuestSequence obj163 = new QuestSequence + obj159.Steps = list225; + reference172 = obj159; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span104 = CollectionsMarshal.AsSpan(list232); - span104[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span104[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span104[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj163.Steps = list232; - reference177 = obj163; - questRoot26.QuestSequence = list230; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(88); - QuestRoot questRoot27 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj160.Steps = list226; + reference173 = obj160; + questRoot25.QuestSequence = list224; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(88); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "JerryWester"; - questRoot27.Author = list233; - num = 5; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span105 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference178 = ref span105[0]; - QuestSequence obj164 = new QuestSequence + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "JerryWester"; + questRoot26.Author = list227; + index = 5; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj164.Steps = list235; - reference178 = obj164; - ref QuestSequence reference179 = ref span105[1]; - QuestSequence obj165 = new QuestSequence + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span106 = CollectionsMarshal.AsSpan(list236); - span106[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + List list230 = new List(num2); + CollectionsMarshal.SetCount(list230, num2); + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span106[1] = new QuestStep(EInteractionType.Interact, 1010045u, new Vector3(-1.9990234f, 0f, -7.1260376f), 351); - obj165.Steps = list236; - reference179 = obj165; - ref QuestSequence reference180 = ref span105[2]; - QuestSequence obj166 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010045u, new Vector3(-1.9990234f, 0f, -7.1260376f), 351); + obj162.Steps = list230; + reference175 = obj162; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1010533u, new Vector3(47.287598f, 4f, 453.97107f), 147) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010533u, new Vector3(47.287598f, 4f, 453.97107f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; - obj166.Steps = list237; - reference180 = obj166; - ref QuestSequence reference181 = ref span105[3]; - QuestSequence obj167 = new QuestSequence + obj163.Steps = list231; + reference176 = obj163; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list238)[0]; - QuestStep obj168 = new QuestStep(EInteractionType.SinglePlayerDuty, 1010046u, new Vector3(-140.1236f, 58.32732f, -82.07831f), 147) + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference178 = ref span3[index2]; + QuestStep obj165 = new QuestStep(EInteractionType.SinglePlayerDuty, 1010046u, new Vector3(-140.1236f, 58.32732f, -82.07831f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - SinglePlayerDutyOptions obj169 = new SinglePlayerDutyOptions + SinglePlayerDutyOptions obj166 = new SinglePlayerDutyOptions { Enabled = true }; - num3 = 2; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span107 = CollectionsMarshal.AsSpan(list239); - span107[0] = "Will target Eline first (other NPCs later), and move to some -other- group of NPCs; only re-targets once they're at 1 HP (for Eline) or die"; - span107[1] = "If the target isn't in melee range but other NPCs are, whether any AOEs are used for nearby enemies seems random"; - obj169.Notes = list239; - obj168.SinglePlayerDutyOptions = obj169; - reference182 = obj168; - obj167.Steps = list238; - reference181 = obj167; - ref QuestSequence reference183 = ref span105[4]; - QuestSequence obj170 = new QuestSequence + num4 = 2; + List list233 = new List(num4); + CollectionsMarshal.SetCount(list233, num4); + span = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span[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++; + span[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 span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) { StopDistance = 5f }; - obj170.Steps = list240; - reference183 = obj170; - questRoot27.QuestSequence = list234; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(89); - QuestRoot questRoot28 = new QuestRoot(); + obj167.Steps = list234; + reference179 = obj167; + questRoot26.QuestSequence = list228; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(89); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "JerryWester"; - questRoot28.Author = list241; - num = 2; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span108 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference184 = ref span108[0]; - QuestSequence obj171 = new QuestSequence + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + span = CollectionsMarshal.AsSpan(list235); + index = 0; + span[index] = "JerryWester"; + questRoot27.Author = list235; + index = 2; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + span2 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -9035,120 +10866,141 @@ public static class AssemblyQuestLoader } } }; - obj171.Steps = list243; - reference184 = obj171; - ref QuestSequence reference185 = ref span108[1]; - QuestSequence obj172 = new QuestSequence + obj168.Steps = list237; + reference180 = obj168; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span109 = CollectionsMarshal.AsSpan(list244); - span109[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span109[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj172.Steps = list244; - reference185 = obj172; - questRoot28.QuestSequence = list242; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(90); - QuestRoot questRoot29 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj169.Steps = list238; + reference181 = obj169; + questRoot27.QuestSequence = list236; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(90); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; - questRoot29.Author = list245; - num = 6; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span110 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference186 = ref span110[0]; - QuestSequence obj173 = new QuestSequence + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "liza"; + questRoot28.Author = list239; + index = 6; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj173.Steps = list247; - reference186 = obj173; - ref QuestSequence reference187 = ref span110[1]; - QuestSequence obj174 = new QuestSequence + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span111 = CollectionsMarshal.AsSpan(list248); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span111[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj174.Steps = list248; - reference187 = obj174; - ref QuestSequence reference188 = ref span110[2]; - QuestSequence obj175 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span112 = CollectionsMarshal.AsSpan(list249); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) { Fly = true }; - span112[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) { Fly = false }; - span112[2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155) { Fly = true }; - obj175.Steps = list249; - reference188 = obj175; - ref QuestSequence reference189 = ref span110[3]; - QuestSequence obj176 = new QuestSequence + obj172.Steps = list243; + reference184 = obj172; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 80u } }; - obj176.Steps = list250; - reference189 = obj176; - ref QuestSequence reference190 = ref span110[4]; - QuestSequence obj177 = new QuestSequence + obj173.Steps = list244; + reference185 = obj173; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - Span span113 = CollectionsMarshal.AsSpan(list251); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -9160,54 +11012,65 @@ public static class AssemblyQuestLoader } } }; - span113[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj177.Steps = list251; - reference190 = obj177; - ref QuestSequence reference191 = ref span110[5]; - QuestSequence obj178 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span114 = CollectionsMarshal.AsSpan(list252); - span114[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span114[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span114[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj178.Steps = list252; - reference191 = obj178; - questRoot29.QuestSequence = list246; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(91); - QuestRoot questRoot30 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj175.Steps = list246; + reference187 = obj175; + questRoot28.QuestSequence = list240; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(91); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Cacahuetes"; - questRoot30.Author = list253; - num = 7; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span115 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference192 = ref span115[0]; - QuestSequence obj179 = new QuestSequence + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "Cacahuetes"; + questRoot29.Author = list247; + index = 7; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list255)[0]; - QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference189 = ref span3[index2]; + QuestStep obj177 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9216,31 +11079,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipAetheryteCondition obj181 = new SkipAetheryteCondition + SkipConditions skipConditions14 = new SkipConditions(); + SkipAetheryteCondition obj178 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = 133; - obj181.InTerritory = list256; - skipConditions16.AetheryteShortcutIf = obj181; - obj180.SkipConditions = skipConditions16; - reference193 = obj180; - obj179.Steps = list255; - reference192 = obj179; - ref QuestSequence reference194 = ref span115[1]; - QuestSequence obj182 = new QuestSequence + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + span7 = CollectionsMarshal.AsSpan(list250); + num4 = 0; + span7[num4] = 133; + obj178.InTerritory = list250; + skipConditions14.AetheryteShortcutIf = obj178; + obj177.SkipConditions = skipConditions14; + reference189 = obj177; + obj176.Steps = list249; + reference188 = obj176; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span116 = CollectionsMarshal.AsSpan(list257); - span116[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -9256,7 +11123,8 @@ public static class AssemblyQuestLoader } } }; - span116[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -9268,77 +11136,94 @@ public static class AssemblyQuestLoader } } }; - obj182.Steps = list257; - reference194 = obj182; - ref QuestSequence reference195 = ref span115[2]; - QuestSequence obj183 = new QuestSequence + obj179.Steps = list251; + reference190 = obj179; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - ref QuestStep reference196 = ref CollectionsMarshal.AsSpan(list258)[0]; - QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2000885u, new Vector3(-510.6655f, 5.8422394f, 35.87895f), 152) + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference192 = ref span3[index2]; + QuestStep obj181 = new QuestStep(EInteractionType.Combat, 2000885u, new Vector3(-510.6655f, 5.8422394f, 35.87895f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 295u; - obj184.KillEnemyDataIds = list259; - reference196 = obj184; - obj183.Steps = list258; - reference195 = obj183; - ref QuestSequence reference197 = ref span115[3]; - QuestSequence obj185 = new QuestSequence + num4 = 1; + List list253 = new List(num4); + CollectionsMarshal.SetCount(list253, num4); + span5 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span5[num3] = 295u; + obj181.KillEnemyDataIds = list253; + reference192 = obj181; + obj180.Steps = list252; + reference191 = obj180; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); - obj185.Steps = list260; - reference197 = obj185; - ref QuestSequence reference198 = ref span115[4]; - QuestSequence obj186 = new QuestSequence + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000887u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000887u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj186.Steps = list261; - reference198 = obj186; - ref QuestSequence reference199 = ref span115[5]; - QuestSequence obj187 = new QuestSequence + obj183.Steps = list255; + reference194 = obj183; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); - obj187.Steps = list262; - reference199 = obj187; - ref QuestSequence reference200 = ref span115[6]; - QuestSequence obj188 = new QuestSequence + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9348,31 +11233,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(92) }; - obj188.Steps = list263; - reference200 = obj188; - questRoot30.QuestSequence = list254; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(92); - QuestRoot questRoot31 = new QuestRoot(); + obj185.Steps = list257; + reference196 = obj185; + questRoot29.QuestSequence = list248; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(92); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "Cacahuetes"; - questRoot31.Author = list264; - num = 9; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span117 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference201 = ref span117[0]; - QuestSequence obj189 = new QuestSequence + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + span = CollectionsMarshal.AsSpan(list258); + index = 0; + span[index] = "Cacahuetes"; + questRoot30.Author = list258; + index = 9; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span2 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list266)[0]; - QuestStep obj190 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference198 = ref span3[num2]; + QuestStep obj187 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9381,32 +11271,36 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipAetheryteCondition obj191 = new SkipAetheryteCondition + SkipConditions skipConditions15 = new SkipConditions(); + SkipAetheryteCondition obj188 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 133; - obj191.InTerritory = list267; - skipConditions17.AetheryteShortcutIf = obj191; - obj190.SkipConditions = skipConditions17; - reference202 = obj190; - obj189.Steps = list266; - reference201 = obj189; - ref QuestSequence reference203 = ref span117[1]; - QuestSequence obj192 = new QuestSequence + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + span7 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span7[num4] = 133; + obj188.InTerritory = list261; + skipConditions15.AetheryteShortcutIf = obj188; + obj187.SkipConditions = skipConditions15; + reference198 = obj187; + obj186.Steps = list260; + reference197 = obj186; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span118 = CollectionsMarshal.AsSpan(list268); - ref QuestStep reference204 = ref span118[0]; - QuestStep obj193 = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference200 = ref span3[index2]; + QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -9415,18 +11309,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions18 = new SkipConditions(); - SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = 152; - skipStepConditions14.InTerritory = list269; - skipStepConditions14.AetheryteUnlocked = EAetheryteLocation.EastShroudHawthorneHut; - skipConditions18.StepIf = skipStepConditions14; - obj193.SkipConditions = skipConditions18; - reference204 = obj193; - span118[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + SkipConditions skipConditions16 = new SkipConditions(); + SkipStepConditions skipStepConditions12 = new SkipStepConditions(); + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + span7 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span7[num3] = 152; + skipStepConditions12.InTerritory = list263; + skipStepConditions12.AetheryteUnlocked = EAetheryteLocation.EastShroudHawthorneHut; + skipConditions16.StepIf = skipStepConditions12; + obj190.SkipConditions = skipConditions16; + reference200 = obj190; + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -9437,7 +11334,8 @@ public static class AssemblyQuestLoader } } }; - span118[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-276.804f, 11.2529f, 366.10303f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-276.804f, 11.2529f, 366.10303f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -9449,104 +11347,128 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference205 = ref span118[3]; - QuestStep obj194 = new QuestStep(EInteractionType.Combat, 2000889u, new Vector3(-276.93604f, 11.734131f, 367.20825f), 152) + index2++; + ref QuestStep reference201 = ref span3[index2]; + QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2000889u, new Vector3(-276.93604f, 11.734131f, 367.20825f), 152) { ItemId = 2000121u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 297u; - obj194.KillEnemyDataIds = list270; - reference205 = obj194; - obj192.Steps = list268; - reference203 = obj192; - ref QuestSequence reference206 = ref span117[2]; - QuestSequence obj195 = new QuestSequence + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + span5 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span5[num4] = 297u; + obj191.KillEnemyDataIds = list264; + reference201 = obj191; + obj189.Steps = list262; + reference199 = obj189; + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span119 = CollectionsMarshal.AsSpan(list271); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.35493f, 3.539142f, 293.25888f), 152) + index2 = 5; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.35493f, 3.539142f, 293.25888f), 152) { Fly = true }; - span119[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152); - span119[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) { DisableNavmesh = true }; - span119[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.65686f, 3.5446393f, 279.4041f), 152); - span119[4] = new QuestStep(EInteractionType.Interact, 1000561u, new Vector3(-230.18237f, 3.544826f, 279.07214f), 152); - obj195.Steps = list271; - reference206 = obj195; - ref QuestSequence reference207 = ref span117[3]; - QuestSequence obj196 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.65686f, 3.5446393f, 279.4041f), 152); + num2++; + span3[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 span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 3 }; num2 = 5; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span120 = CollectionsMarshal.AsSpan(list272); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) { Mount = true }; - span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152) { DisableNavmesh = true }; - span120[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.5985f, 0.9818871f, 287.17072f), 152); - span120[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-220.44954f, 22.910912f, 243.81f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.5985f, 0.9818871f, 287.17072f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-220.44954f, 22.910912f, 243.81f), 152) { Fly = true }; - span120[4] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); - obj196.Steps = list272; - reference207 = obj196; - ref QuestSequence reference208 = ref span117[4]; - QuestSequence obj197 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Action, 1003001u, new Vector3(-234.33282f, 18.310072f, 245.68542f), 152) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1003001u, new Vector3(-234.33282f, 18.310072f, 245.68542f), 152) { Action = EAction.Cure }; - obj197.Steps = list273; - reference208 = obj197; - ref QuestSequence reference209 = ref span117[5]; - QuestSequence obj198 = new QuestSequence + obj194.Steps = list267; + reference204 = obj194; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1003057u, new Vector3(-237.6593f, 17.850079f, 243.48816f), 152) + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003057u, new Vector3(-237.6593f, 17.850079f, 243.48816f), 152) { StopDistance = 7f }; - obj198.Steps = list274; - reference209 = obj198; - ref QuestSequence reference210 = ref span117[6]; - QuestSequence obj199 = new QuestSequence + obj195.Steps = list268; + reference205 = obj195; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1001213u, new Vector3(-66.056335f, -7.982843f, 231.15894f), 152) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1001213u, new Vector3(-66.056335f, -7.982843f, 231.15894f), 152) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -9554,28 +11476,34 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj199.Steps = list275; - reference210 = obj199; - ref QuestSequence reference211 = ref span117[7]; - QuestSequence obj200 = new QuestSequence + obj196.Steps = list269; + reference206 = obj196; + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1003006u, new Vector3(-76.64612f, -9.205922f, 283.22266f), 152); - obj200.Steps = list276; - reference211 = obj200; - ref QuestSequence reference212 = ref span117[8]; - QuestSequence obj201 = new QuestSequence + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9585,31 +11513,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(93) }; - obj201.Steps = list277; - reference212 = obj201; - questRoot31.QuestSequence = list265; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(93); - QuestRoot questRoot32 = new QuestRoot(); + obj198.Steps = list271; + reference208 = obj198; + questRoot30.QuestSequence = list259; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(93); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "Cacahuetes"; - questRoot32.Author = list278; - num = 8; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span121 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference213 = ref span121[0]; - QuestSequence obj202 = new QuestSequence + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "Cacahuetes"; + questRoot31.Author = list272; + index = 8; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list280)[0]; - QuestStep obj203 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; + QuestStep obj200 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9618,130 +11551,159 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions19 = new SkipConditions(); - SkipAetheryteCondition obj204 = new SkipAetheryteCondition + SkipConditions skipConditions17 = new SkipConditions(); + SkipAetheryteCondition obj201 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = 133; - obj204.InTerritory = list281; - skipConditions19.AetheryteShortcutIf = obj204; - obj203.SkipConditions = skipConditions19; - reference214 = obj203; - obj202.Steps = list280; - reference213 = obj202; - ref QuestSequence reference215 = ref span121[1]; - QuestSequence obj205 = new QuestSequence + num4 = 1; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + span7 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span7[num3] = 133; + obj201.InTerritory = list275; + skipConditions17.AetheryteShortcutIf = obj201; + obj200.SkipConditions = skipConditions17; + reference210 = obj200; + obj199.Steps = list274; + reference209 = obj199; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list282)[0]; - QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2000891u, new Vector3(-74.50989f, 1.449585f, -32.76117f), 148) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference212 = ref span3[num2]; + QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2000891u, new Vector3(-74.50989f, 1.449585f, -32.76117f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = 294u; - obj206.KillEnemyDataIds = list283; - reference216 = obj206; - obj205.Steps = list282; - reference215 = obj205; - ref QuestSequence reference217 = ref span121[2]; - QuestSequence obj207 = new QuestSequence + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + span5 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span5[num4] = 294u; + obj203.KillEnemyDataIds = list277; + reference212 = obj203; + obj202.Steps = list276; + reference211 = obj202; + num++; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1002961u, new Vector3(-66.7583f, 0.9667693f, -38.4375f), 148); - obj207.Steps = list284; - reference217 = obj207; - ref QuestSequence reference218 = ref span121[3]; - QuestSequence obj208 = new QuestSequence + List list278 = new List(num2); + CollectionsMarshal.SetCount(list278, num2); + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list285)[0]; - QuestStep obj209 = new QuestStep(EInteractionType.Combat, 2000893u, new Vector3(147.02063f, -5.6916504f, -35.50775f), 148) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference215 = ref span3[num2]; + QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2000893u, new Vector3(147.02063f, -5.6916504f, -35.50775f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - CollectionsMarshal.AsSpan(list286)[0] = 299u; - obj209.KillEnemyDataIds = list286; - reference219 = obj209; - obj208.Steps = list285; - reference218 = obj208; - ref QuestSequence reference220 = ref span121[4]; - QuestSequence obj210 = new QuestSequence + num4 = 1; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + span5 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span5[num3] = 299u; + obj206.KillEnemyDataIds = list280; + reference215 = obj206; + obj205.Steps = list279; + reference214 = obj205; + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1002962u, new Vector3(155.9624f, -6.358468f, -35.53833f), 148); - obj210.Steps = list287; - reference220 = obj210; - ref QuestSequence reference221 = ref span121[5]; - QuestSequence obj211 = new QuestSequence + List list281 = new List(num2); + CollectionsMarshal.SetCount(list281, num2); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - ref QuestStep reference222 = ref CollectionsMarshal.AsSpan(list288)[0]; - QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2000895u, new Vector3(332.3567f, -31.540405f, 414.69434f), 148) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + ref QuestStep reference218 = ref span3[num2]; + QuestStep obj209 = new QuestStep(EInteractionType.Combat, 2000895u, new Vector3(332.3567f, -31.540405f, 414.69434f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 297u; - obj212.KillEnemyDataIds = list289; - reference222 = obj212; - obj211.Steps = list288; - reference221 = obj211; - ref QuestSequence reference223 = ref span121[6]; - QuestSequence obj213 = new QuestSequence + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + span5 = CollectionsMarshal.AsSpan(list283); + num4 = 0; + span5[num4] = 297u; + obj209.KillEnemyDataIds = list283; + reference218 = obj209; + obj208.Steps = list282; + reference217 = obj208; + num++; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1002963u, new Vector3(335.95776f, -31.68247f, 423.63623f), 148); - obj213.Steps = list290; - reference223 = obj213; - ref QuestSequence reference224 = ref span121[7]; - QuestSequence obj214 = new QuestSequence + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9751,10 +11713,10 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(440) }; - obj214.Steps = list291; - reference224 = obj214; - questRoot32.QuestSequence = list279; - AddQuest(questId32, questRoot32); + obj211.Steps = list285; + reference220 = obj211; + questRoot31.QuestSequence = list273; + AddQuest(questId31, questRoot31); } private static void LoadQuests2() @@ -9764,13 +11726,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -9778,7 +11743,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -9791,21 +11758,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1009828u, new Vector3(64.95764f, 20.487333f, -641.01624f), 156) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009828u, new Vector3(64.95764f, 20.487333f, -641.01624f), 156) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -9813,21 +11784,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1009831u, new Vector3(-58.487915f, 3.4366195f, -645.655f), 156) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009831u, new Vector3(-58.487915f, 3.4366195f, -645.655f), 156) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -9835,15 +11811,19 @@ public static class AssemblyQuestLoader int num3 = 3; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = 3565u; - span2[1] = 4619u; - span2[2] = 5044u; + Span span4 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span4[num4] = 3565u; + num4++; + span4[num4] = 4619u; + num4++; + span4[num4] = 5044u; obj5.KillEnemyDataIds = list7; reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -9851,21 +11831,27 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 2004633u, new Vector3(-98.74121f, -0.015319824f, -616.5408f), 156); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004633u, new Vector3(-98.74121f, -0.015319824f, -616.5408f), 156); obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 6 @@ -9873,18 +11859,23 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1009839u, new Vector3(-95.780945f, -0.42092213f, -625.6962f), 156); + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009839u, new Vector3(-95.780945f, -0.42092213f, -625.6962f), 156); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[7]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; @@ -9897,12 +11888,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "Cacahuetes"; questRoot2.Author = list12; - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - ref QuestSequence reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -9910,7 +11905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference11 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -9927,10 +11924,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice + num4 = 1; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span5 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSROG001_00101_Q1_000_040") @@ -9947,24 +11946,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "Cacahuetes"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span3 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span3[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span3[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -9972,12 +11977,14 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span4 = CollectionsMarshal.AsSpan(list19); - span4[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129 }; - ref QuestStep reference14 = ref span4[1]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f @@ -9985,7 +11992,9 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSROG011_00102_Q1_000_030") @@ -10002,22 +12011,26 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "liza"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span5 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span5[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span6 = CollectionsMarshal.AsSpan(list23); - span6[0] = new QuestStep(EInteractionType.EquipItem, null, null, 129) + index2 = 4; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 129) { AetheryteShortcut = EAetheryteLocation.Limsa, ItemId = 7952u, @@ -10036,8 +12049,10 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); - span6[2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -10053,13 +12068,15 @@ public static class AssemblyQuestLoader } } }; - span6[3] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span5[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -10067,24 +12084,28 @@ public static class AssemblyQuestLoader num2 = 4; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference17 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 134; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span6 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span6[num3] = 134; skipStepConditions.InTerritory = list25; skipStepConditions.ExtraCondition = EExtraSkipCondition.NotRoguesGuild; skipConditions.StepIf = skipStepConditions; obj17.SkipConditions = skipConditions; reference17 = obj17; - ref QuestStep reference18 = ref span7[1]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -10097,38 +12118,53 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span7 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + ref ComplexCombatData reference19 = ref span7[num4]; ComplexCombatData obj19 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - int num4 = 6; - List list27 = new List(num4); - CollectionsMarshal.SetCount(list27, num4); + int num5 = 6; + List list27 = new List(num5); + CollectionsMarshal.SetCount(list27, num5); Span span8 = CollectionsMarshal.AsSpan(list27); - span8[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + int num6 = 0; + span8[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj19.CompletionQuestVariablesFlags = list27; reference19 = obj19; obj18.ComplexCombatData = list26; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span9 = CollectionsMarshal.AsSpan(list28); - span9[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span8 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span8[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj18.CompletionQuestVariablesFlags = list28; reference18 = obj18; - ref QuestStep reference20 = ref span7[2]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -10136,38 +12172,53 @@ public static class AssemblyQuestLoader num3 = 1; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; + span7 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + ref ComplexCombatData reference21 = ref span7[num4]; ComplexCombatData obj21 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 3u }; - num4 = 6; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - Span span10 = CollectionsMarshal.AsSpan(list30); - span10[0] = null; - span10[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + num6 = 6; + List list30 = new List(num6); + CollectionsMarshal.SetCount(list30, num6); + span8 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj21.CompletionQuestVariablesFlags = list30; reference21 = obj21; obj20.ComplexCombatData = list29; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span11 = CollectionsMarshal.AsSpan(list31); - span11[0] = null; - span11[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + span8 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj20.CompletionQuestVariablesFlags = list31; reference20 = obj20; - ref QuestStep reference22 = ref span7[3]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(5.6626997f, 42.625427f, 55.983746f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -10175,49 +12226,65 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - ref ComplexCombatData reference23 = ref CollectionsMarshal.AsSpan(list32)[0]; + span7 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + ref ComplexCombatData reference23 = ref span7[num4]; ComplexCombatData obj23 = new ComplexCombatData { DataId = 383u, MinimumKillCount = 3u }; - num4 = 6; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span12 = CollectionsMarshal.AsSpan(list33); - span12[0] = null; - span12[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + num5 = 6; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + span8 = CollectionsMarshal.AsSpan(list33); + num6 = 0; + span8[num6] = null; + num6++; + span8[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj23.CompletionQuestVariablesFlags = list33; reference23 = obj23; obj22.ComplexCombatData = list32; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span13 = CollectionsMarshal.AsSpan(list34); - span13[0] = null; - span13[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + num4 = 6; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + span8 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj22.CompletionQuestVariablesFlags = list34; reference22 = obj22; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference24 = ref span5[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span14 = CollectionsMarshal.AsSpan(list35); - span14[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10227,7 +12294,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(110) @@ -10241,13 +12309,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "Cacahuetes"; questRoot5.Author = list36; - num = 2; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span15 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span15[0]; + index = 2; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -10255,23 +12326,30 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133); obj25.Steps = list38; reference25 = obj25; - ref QuestSequence reference26 = ref span15[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133); num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTAN000_00105_Q1_000_1") @@ -10287,13 +12365,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot6.Author = list41; - num = 3; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span16 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference28 = ref span16[0]; + index = 3; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -10301,12 +12382,16 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1001028u, new Vector3(-39.84137f, 19.999994f, -4.9592285f), 181); - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningLimsaLominsa", @@ -10317,20 +12402,25 @@ public static class AssemblyQuestLoader reference29 = questStep2; obj27.Steps = list43; reference28 = obj27; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1002732u, new Vector3(11.184814f, 20.999336f, 13.321045f), 181); num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA001_00107_Q1_000_1") @@ -10339,7 +12429,8 @@ public static class AssemblyQuestLoader reference31 = questStep3; obj28.Steps = list45; reference30 = obj28; - ref QuestSequence reference32 = ref span16[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -10347,7 +12438,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj29.Steps = list47; reference32 = obj29; questRoot6.QuestSequence = list42; @@ -10357,24 +12450,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot7.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span17 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference33 = ref span17[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj30.Steps = list50; reference33 = obj30; - ref QuestSequence reference34 = ref span17[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -10382,55 +12481,74 @@ public static class AssemblyQuestLoader num2 = 11; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span18 = CollectionsMarshal.AsSpan(list51); - span18[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) { PickUpQuestId = new QuestId(111) }; - ref QuestStep reference35 = ref span18[1]; + index2++; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span19 = CollectionsMarshal.AsSpan(list52); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + span8 = CollectionsMarshal.AsSpan(list52); + 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)8, 0, EQuestWorkMode.Bitwise); obj32.CompletionQuestVariablesFlags = list52; reference35 = obj32; - span18[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - ref QuestStep reference36 = ref span18[3]; + index2++; + ref QuestStep reference36 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span20 = CollectionsMarshal.AsSpan(list53); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list53); + 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)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list53; reference36 = questStep4; - span18[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span18[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span18[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -10439,7 +12557,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -10449,48 +12568,60 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span18[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span18[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - ref QuestStep reference37 = ref span18[10]; + index2++; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { Comment = "MRD Receptionist" }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span21 = CollectionsMarshal.AsSpan(list54); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + span8 = CollectionsMarshal.AsSpan(list54); + 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); obj33.CompletionQuestVariablesFlags = list54; reference37 = obj33; obj31.Steps = list51; reference34 = obj31; - ref QuestSequence reference38 = ref span17[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span22 = CollectionsMarshal.AsSpan(list55); - span22[0] = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) + index2 = 6; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { Disabled = true, Comment = "Pick up Class Quest" }; - span22[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle, SkipConditions = new SkipConditions @@ -10498,7 +12629,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -10511,7 +12643,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[3] = new QuestStep(EInteractionType.None, null, null, 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 134) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -10519,7 +12652,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[4] = new QuestStep(EInteractionType.None, null, null, 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 129) { AethernetShortcut = new AethernetShortcut { @@ -10531,7 +12665,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[5] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj34.Steps = list55; reference38 = obj34; questRoot7.QuestSequence = list49; @@ -10541,13 +12676,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot8.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span23 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference39 = ref span23[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -10555,23 +12693,28 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj35.Steps = list58; reference39 = obj35; - ref QuestSequence reference40 = ref span23[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span24 = CollectionsMarshal.AsSpan(list59); - span24[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) + index2 = 7; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) { PickUpQuestId = new QuestId(111) }; - ref QuestStep reference41 = ref span24[1]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa @@ -10579,42 +12722,59 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span25 = CollectionsMarshal.AsSpan(list60); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list60); + 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)8, 0, EQuestWorkMode.Bitwise); obj37.CompletionQuestVariablesFlags = list60; reference41 = obj37; - span24[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - ref QuestStep reference42 = ref span24[3]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span26 = CollectionsMarshal.AsSpan(list61); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + span8 = CollectionsMarshal.AsSpan(list61); + 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); questStep5.CompletionQuestVariablesFlags = list61; reference42 = questStep5; - span24[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span24[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - ref QuestStep reference43 = ref span24[6]; + num2++; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { Comment = "ACN Receptionist" @@ -10622,18 +12782,25 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span27 = CollectionsMarshal.AsSpan(list62); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list62); + 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); obj38.CompletionQuestVariablesFlags = list62; reference43 = obj38; obj36.Steps = list59; reference40 = obj36; - ref QuestSequence reference44 = ref span23[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -10641,13 +12808,15 @@ public static class AssemblyQuestLoader num2 = 10; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span28 = CollectionsMarshal.AsSpan(list63); - span28[0] = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { Disabled = true, Comment = "Pick up Class Quest" }; - span28[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -10656,7 +12825,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -10666,15 +12836,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span28[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span28[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span28[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle, SkipConditions = new SkipConditions @@ -10682,7 +12855,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -10695,7 +12869,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[7] = new QuestStep(EInteractionType.None, null, null, 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 134) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -10703,7 +12878,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[8] = new QuestStep(EInteractionType.None, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 129) { AethernetShortcut = new AethernetShortcut { @@ -10715,7 +12891,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[9] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj39.Steps = list63; reference44 = obj39; questRoot8.QuestSequence = list57; @@ -10725,22 +12902,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot9.Author = list64; - num = 10; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span29 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference45 = ref span29[0]; + index = 10; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span30 = CollectionsMarshal.AsSpan(list66); - span30[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10761,13 +12942,15 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj40.Steps = list66; reference45 = obj40; - ref QuestSequence reference46 = ref span29[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -10775,37 +12958,44 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) { StopDistance = 7f }; obj41.Steps = list67; reference46 = obj41; - ref QuestSequence reference47 = ref span29[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span31 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference48 = ref span31[0]; + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 135; + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span6 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span6[num3] = 135; skipStepConditions2.InTerritory = list69; skipConditions2.StepIf = skipStepConditions2; obj43.SkipConditions = skipConditions2; reference48 = obj43; - ref QuestStep reference49 = ref span31[1]; + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(174.3623f, 39.811382f, 52.27733f), 135) { Fly = true, @@ -10819,12 +13009,15 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 324u; + span4 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span4[num4] = 324u; obj44.KillEnemyDataIds = list70; reference49 = obj44; obj42.Steps = list68; reference47 = obj42; - ref QuestSequence reference50 = ref span29[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -10832,8 +13025,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10854,22 +13048,25 @@ public static class AssemblyQuestLoader } } }; - span32[1] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) { StopDistance = 7f }; obj45.Steps = list71; reference50 = obj45; - ref QuestSequence reference51 = ref span29[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span33 = CollectionsMarshal.AsSpan(list72); - span33[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129, SkipConditions = new SkipConditions @@ -10880,7 +13077,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference52 = ref span33[1]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128) { AethernetShortcut = new AethernetShortcut @@ -10889,10 +13087,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice + num4 = 1; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + span5 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSROG050_00110_Q1_000_061"), @@ -10902,7 +13102,8 @@ public static class AssemblyQuestLoader reference52 = obj47; obj46.Steps = list72; reference51 = obj46; - ref QuestSequence reference53 = ref span29[5]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -10910,7 +13111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -10921,15 +13124,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list74; reference53 = obj48; - ref QuestSequence reference54 = ref span29[6]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(101.76026f, 48.69752f, 10.89893f), 134) { Fly = true, @@ -10938,12 +13144,15 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 769u; + span4 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span4[num4] = 769u; obj50.KillEnemyDataIds = list76; reference55 = obj50; obj49.Steps = list75; reference54 = obj49; - ref QuestSequence reference56 = ref span29[7]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 7 @@ -10951,19 +13160,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134); obj51.Steps = list77; reference56 = obj51; - ref QuestSequence reference57 = ref span29[8]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span34 = CollectionsMarshal.AsSpan(list78); - span34[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10984,13 +13197,15 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj52.Steps = list78; reference57 = obj52; - ref QuestSequence reference58 = ref span29[9]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -10998,7 +13213,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(126) @@ -11012,24 +13229,30 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot10.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span35 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference59 = ref span35[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181); obj54.Steps = list82; reference59 = obj54; - ref QuestSequence reference60 = ref span35[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -11037,12 +13260,16 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list83)[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference61 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000969u, new Vector3(7.9193726f, 40.000175f, 17.471558f), 181); - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice + num4 = 1; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + span5 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "quest/001/ManSea001_00107", @@ -11052,102 +13279,146 @@ public static class AssemblyQuestLoader reference61 = questStep6; obj55.Steps = list83; reference60 = obj55; - ref QuestSequence reference62 = ref span35[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span36 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference63 = ref span36[0]; + index2 = 6; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001563u, new Vector3(3.616333f, 20.004517f, 9.750427f), 129); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span37 = CollectionsMarshal.AsSpan(list86); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list86); + 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)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list86; reference63 = questStep7; - ref QuestStep reference64 = ref span36[1]; + num2++; + ref QuestStep reference64 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001564u, new Vector3(-3.0671387f, 20.004517f, 9.964111f), 129); - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span38 = CollectionsMarshal.AsSpan(list87); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + span8 = CollectionsMarshal.AsSpan(list87); + 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); questStep8.CompletionQuestVariablesFlags = list87; reference64 = questStep8; - ref QuestStep reference65 = ref span36[2]; + num2++; + ref QuestStep reference65 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2001565u, new Vector3(-11.39856f, 19.97406f, 6.6376343f), 129); num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span39 = CollectionsMarshal.AsSpan(list88); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list88); + 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); questStep9.CompletionQuestVariablesFlags = list88; reference65 = questStep9; - ref QuestStep reference66 = ref span36[3]; + num2++; + ref QuestStep reference66 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2001566u, new Vector3(-18.32611f, 20.004517f, 1.7241821f), 129); - num3 = 6; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span40 = CollectionsMarshal.AsSpan(list89); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span8 = CollectionsMarshal.AsSpan(list89); + 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); questStep10.CompletionQuestVariablesFlags = list89; reference66 = questStep10; - ref QuestStep reference67 = ref span36[4]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001567u, new Vector3(-30.47229f, 19.97406f, 0.8086548f), 129); num3 = 6; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span41 = CollectionsMarshal.AsSpan(list90); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list90); + 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(0, (byte)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list90; reference67 = questStep11; - ref QuestStep reference68 = ref span36[5]; + num2++; + ref QuestStep reference68 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2001568u, new Vector3(-44.724243f, 20.004517f, -0.5036011f), 129); - num3 = 6; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span42 = CollectionsMarshal.AsSpan(list91); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list91 = new List(num4); + CollectionsMarshal.SetCount(list91, num4); + span8 = CollectionsMarshal.AsSpan(list91); + 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)4, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list91; reference68 = questStep12; obj56.Steps = list85; reference62 = obj56; - ref QuestSequence reference69 = ref span35[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -11155,7 +13426,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); obj57.Steps = list92; reference69 = obj57; questRoot10.QuestSequence = list81; @@ -11165,24 +13438,30 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "liza"; questRoot11.Author = list93; - num = 3; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span43 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference70 = ref span43[0]; + index = 3; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); obj58.Steps = list95; reference70 = obj58; - ref QuestSequence reference71 = ref span43[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -11190,18 +13469,23 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1003274u, new Vector3(-110.46008f, 18f, 15.701477f), 129); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003274u, new Vector3(-110.46008f, 18f, 15.701477f), 129); obj59.Steps = list96; reference71 = obj59; - ref QuestSequence reference72 = ref span43[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129); obj60.Steps = list97; reference72 = obj60; questRoot11.QuestSequence = list94; @@ -11211,13 +13495,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "liza"; questRoot12.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span44 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference73 = ref span44[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -11225,18 +13512,23 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129); obj61.Steps = list100; reference73 = obj61; - ref QuestSequence reference74 = ref span44[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129) { AethernetShortcut = new AethernetShortcut { @@ -11246,7 +13538,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list101; reference74 = obj62; - ref QuestSequence reference75 = ref span44[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -11254,7 +13547,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129) { AethernetShortcut = new AethernetShortcut { @@ -11271,24 +13566,30 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "liza"; questRoot13.Author = list103; - num = 3; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span45 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference76 = ref span45[0]; + index = 3; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); obj64.Steps = list105; reference76 = obj64; - ref QuestSequence reference77 = ref span45[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -11296,60 +13597,84 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span46 = CollectionsMarshal.AsSpan(list106); - ref QuestStep reference78 = ref span46[0]; + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1001203u, new Vector3(-156.6034f, 18.2f, 20.920044f), 129); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span47 = CollectionsMarshal.AsSpan(list107); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list107); + 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)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list107; reference78 = questStep13; - ref QuestStep reference79 = ref span46[1]; + index2++; + ref QuestStep reference79 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - num3 = 6; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span48 = CollectionsMarshal.AsSpan(list108); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + span8 = CollectionsMarshal.AsSpan(list108); + 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); questStep14.CompletionQuestVariablesFlags = list108; reference79 = questStep14; - ref QuestStep reference80 = ref span46[2]; + index2++; + ref QuestStep reference80 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1003254u, new Vector3(-246.60114f, 16.199999f, 37.125122f), 129); num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span49 = CollectionsMarshal.AsSpan(list109); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list109); + 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); questStep15.CompletionQuestVariablesFlags = list109; reference80 = questStep15; obj65.Steps = list106; reference77 = obj65; - ref QuestSequence reference81 = ref span45[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); obj66.Steps = list110; reference81 = obj66; questRoot13.QuestSequence = list104; @@ -11359,13 +13684,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "liza"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span50 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference82 = ref span50[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -11373,18 +13701,23 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129); obj67.Steps = list113; reference82 = obj67; - ref QuestSequence reference83 = ref span50[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) { AethernetShortcut = new AethernetShortcut { @@ -11394,7 +13727,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list114; reference83 = obj68; - ref QuestSequence reference84 = ref span50[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -11402,7 +13736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) { AethernetShortcut = new AethernetShortcut { @@ -11419,21 +13755,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "UcanPatates"; questRoot15.Author = list116; - num = 4; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span51 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference85 = ref span51[0]; + index = 4; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list118)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference86 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1000959u, new Vector3(-65.62909f, 41.999985f, -139.45221f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11445,19 +13786,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span52 = CollectionsMarshal.AsSpan(list119); - span52[0] = 129; - span52[1] = 128; + num4 = 2; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + span6 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span6[num3] = 129; + num3++; + span6[num3] = 128; skipAetheryteCondition.InTerritory = list119; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; obj71.SkipConditions = skipConditions3; reference86 = obj71; obj70.Steps = list118; reference85 = obj70; - ref QuestSequence reference87 = ref span51[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -11465,7 +13809,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list120)[0]; + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1003603u, new Vector3(20.34021f, 20f, 4.3182373f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11480,9 +13826,11 @@ public static class AssemblyQuestLoader num3 = 2; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span53 = CollectionsMarshal.AsSpan(list121); - span53[0] = 129; - span53[1] = 128; + span6 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span6[num4] = 129; + num4++; + span6[num4] = 128; skipAetheryteCondition2.InTerritory = list121; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions4.AethernetShortcutIf = new SkipAetheryteCondition @@ -11493,82 +13841,104 @@ public static class AssemblyQuestLoader reference88 = obj73; obj72.Steps = list120; reference87 = obj72; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span54 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference90 = ref span54[0]; + index2 = 2; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.20255f, 19.94936f, 1.0639327f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 134; + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + span6 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span6[num3] = 134; skipStepConditions3.InTerritory = list123; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 2; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span55 = CollectionsMarshal.AsSpan(list124); - span55[0] = 134; - span55[1] = 129; + span6 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span6[num4] = 134; + num4++; + span6[num4] = 129; skipAetheryteCondition3.InTerritory = list124; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition3; obj75.SkipConditions = skipConditions5; reference90 = obj75; - ref QuestStep reference91 = ref span54[1]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 338u, new Vector3(130.05261f, 51.719154f, 185.6565f), 134) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - ref ComplexCombatData reference92 = ref CollectionsMarshal.AsSpan(list125)[0]; + num4 = 1; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + span7 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + ref ComplexCombatData reference92 = ref span7[num3]; ComplexCombatData obj77 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 4u }; - num4 = 6; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - Span span56 = CollectionsMarshal.AsSpan(list126); - span56[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = null; + num6 = 6; + List list126 = new List(num6); + CollectionsMarshal.SetCount(list126, num6); + span8 = CollectionsMarshal.AsSpan(list126); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj77.CompletionQuestVariablesFlags = list126; reference92 = obj77; obj76.ComplexCombatData = list125; num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span57 = CollectionsMarshal.AsSpan(list127); - span57[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + span8 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span8[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj76.CompletionQuestVariablesFlags = list127; reference91 = obj76; obj74.Steps = list122; reference89 = obj74; - ref QuestSequence reference93 = ref span51[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -11576,23 +13946,27 @@ public static class AssemblyQuestLoader num2 = 2; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span58 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference94 = ref span58[0]; + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-57.281883f, 33.088005f, 160.24603f), 134) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 134; + num4 = 1; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + span6 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span6[num3] = 134; skipStepConditions4.NotInTerritory = list129; skipConditions6.StepIf = skipStepConditions4; obj79.SkipConditions = skipConditions6; reference94 = obj79; - ref QuestStep reference95 = ref span58[1]; + index2++; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj80 = new QuestStep(EInteractionType.CompleteQuest, 1000959u, new Vector3(-65.62909f, 41.999985f, -139.45221f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11607,9 +13981,11 @@ public static class AssemblyQuestLoader num3 = 2; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span59 = CollectionsMarshal.AsSpan(list130); - span59[0] = 129; - span59[1] = 128; + span6 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span6[num4] = 129; + num4++; + span6[num4] = 128; skipAetheryteCondition4.InTerritory = list130; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition4; obj80.SkipConditions = skipConditions7; @@ -11623,21 +13999,26 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "UcanPatates"; questRoot16.Author = list131; - num = 4; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span60 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference96 = ref span60[0]; + index = 4; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list133)[0]; + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11649,19 +14030,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - num3 = 2; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span61 = CollectionsMarshal.AsSpan(list134); - span61[0] = 129; - span61[1] = 128; + num4 = 2; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + span6 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span6[num3] = 129; + num3++; + span6[num3] = 128; skipAetheryteCondition5.InTerritory = list134; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition5; obj82.SkipConditions = skipConditions8; reference97 = obj82; obj81.Steps = list133; reference96 = obj81; - ref QuestSequence reference98 = ref span60[1]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -11669,7 +14053,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list135)[0]; + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1000957u, new Vector3(-49.271423f, 43.999977f, -146.37988f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11684,24 +14070,29 @@ public static class AssemblyQuestLoader num3 = 2; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span62 = CollectionsMarshal.AsSpan(list136); - span62[0] = 129; - span62[1] = 128; + span6 = CollectionsMarshal.AsSpan(list136); + num4 = 0; + span6[num4] = 129; + num4++; + span6[num4] = 128; skipAetheryteCondition6.InTerritory = list136; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition6; obj84.SkipConditions = skipConditions9; reference99 = obj84; obj83.Steps = list135; reference98 = obj83; - ref QuestSequence reference100 = ref span60[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list137)[0]; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1000937u, new Vector3(-12.222534f, 44.99988f, -251.88074f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11713,19 +14104,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition7 = new SkipAetheryteCondition(); - num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span63 = CollectionsMarshal.AsSpan(list138); - span63[0] = 129; - span63[1] = 128; + num4 = 2; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + span6 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span6[num3] = 129; + num3++; + span6[num3] = 128; skipAetheryteCondition7.InTerritory = list138; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition7; obj86.SkipConditions = skipConditions10; reference101 = obj86; obj85.Steps = list137; reference100 = obj85; - ref QuestSequence reference102 = ref span60[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -11733,7 +14127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list139)[0]; + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj88 = new QuestStep(EInteractionType.CompleteQuest, 1000957u, new Vector3(-49.271423f, 43.999977f, -146.37988f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11748,9 +14144,11 @@ public static class AssemblyQuestLoader num3 = 2; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span64 = CollectionsMarshal.AsSpan(list140); - span64[0] = 129; - span64[1] = 128; + span6 = CollectionsMarshal.AsSpan(list140); + num4 = 0; + span6[num4] = 129; + num4++; + span6[num4] = 128; skipAetheryteCondition8.InTerritory = list140; skipConditions11.AetheryteShortcutIf = skipAetheryteCondition8; obj88.SkipConditions = skipConditions11; @@ -11764,24 +14162,30 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot17.Author = list141; - num = 2; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span65 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference104 = ref span65[0]; + index = 2; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); obj89.Steps = list143; reference104 = obj89; - ref QuestSequence reference105 = ref span65[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -11789,7 +14193,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AethernetShortcut = new AethernetShortcut { @@ -11806,24 +14212,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; questRoot18.Author = list145; - num = 3; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span66 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference106 = ref span66[0]; + index = 3; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj91.Steps = list147; reference106 = obj91; - ref QuestSequence reference107 = ref span66[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -11831,70 +14243,88 @@ public static class AssemblyQuestLoader num2 = 7; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span67 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference108 = ref span67[0]; + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span68 = CollectionsMarshal.AsSpan(list149); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span8 = CollectionsMarshal.AsSpan(list149); + 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)8, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list149; reference108 = obj93; - span67[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span67[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span67[3] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { Comment = "Archer Receptionist" }; - span67[4] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { Disabled = true, Comment = "Pick up Class Quest" }; - span67[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span67[6] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; obj92.Steps = list148; reference107 = obj92; - ref QuestSequence reference109 = ref span66[2]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 10; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span69 = CollectionsMarshal.AsSpan(list150); - span69[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2 = 10; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span69[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span69[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span69[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -11903,12 +14333,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span69[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span69[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span69[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -11917,7 +14350,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span69[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -11930,7 +14364,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span69[8] = new QuestStep(EInteractionType.None, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -11938,7 +14373,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span69[9] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -11955,13 +14391,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; questRoot19.Author = list151; - num = 3; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span70 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference110 = ref span70[0]; + index = 3; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 @@ -11969,19 +14408,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj95.Steps = list153; reference110 = obj95; - ref QuestSequence reference111 = ref span70[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 }; - num2 = 13; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span71 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference112 = ref span71[0]; + index2 = 13; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj97 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania @@ -11989,41 +14432,55 @@ public static class AssemblyQuestLoader num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span72 = CollectionsMarshal.AsSpan(list155); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list155); + 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)8, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list155; reference112 = obj97; - span71[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span71[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span71[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span71[4] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; - span71[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span71[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span71[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span71[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -12032,12 +14489,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span71[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span71[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span71[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -12046,13 +14506,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span71[12] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { Comment = "Conjurer Receptionist" }; obj96.Steps = list154; reference111 = obj96; - ref QuestSequence reference113 = ref span70[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -12060,13 +14522,15 @@ public static class AssemblyQuestLoader num2 = 4; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span73 = CollectionsMarshal.AsSpan(list156); - span73[0] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { Disabled = true, Comment = "Pick up Class Quest" }; - span73[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -12079,7 +14543,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span73[2] = new QuestStep(EInteractionType.None, null, null, 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -12087,7 +14552,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span73[3] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -12104,22 +14570,26 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "liza"; questRoot20.Author = list157; - num = 9; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span74 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference114 = ref span74[0]; + index = 9; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span75 = CollectionsMarshal.AsSpan(list159); - span75[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -12140,13 +14610,15 @@ public static class AssemblyQuestLoader } } }; - span75[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj99.Steps = list159; reference114 = obj99; - ref QuestSequence reference115 = ref span74[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -12154,37 +14626,44 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1010198u, new Vector3(-152.11719f, -129.4397f, 267.10913f), 129) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010198u, new Vector3(-152.11719f, -129.4397f, 267.10913f), 129) { StopDistance = 7f }; obj100.Steps = list160; reference115 = obj100; - ref QuestSequence reference116 = ref span74[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span76 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference117 = ref span76[0]; + index2 = 2; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.8734f, -128.1446f, 256.8712f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 128; + num4 = 1; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + span6 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span6[num3] = 128; skipStepConditions5.InTerritory = list162; skipConditions12.StepIf = skipStepConditions5; obj102.SkipConditions = skipConditions12; reference117 = obj102; - span76[1] = new QuestStep(EInteractionType.Interact, 1010212u, new Vector3(-50.8584f, 40f, 111.40613f), 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010212u, new Vector3(-50.8584f, 40f, 111.40613f), 128) { AethernetShortcut = new AethernetShortcut { @@ -12194,7 +14673,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list161; reference116 = obj101; - ref QuestSequence reference118 = ref span74[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -12202,19 +14682,23 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1010211u, new Vector3(-42.22174f, 42.249126f, 115.89221f), 128); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010211u, new Vector3(-42.22174f, 42.249126f, 115.89221f), 128); obj103.Steps = list163; reference118 = obj103; - ref QuestSequence reference119 = ref span74[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - num2 = 8; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span77 = CollectionsMarshal.AsSpan(list164); - ref QuestStep reference120 = ref span77[0]; + index2 = 8; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + ref QuestStep reference120 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Action, null, new Vector3(-62.300663f, 42.300003f, -151.94725f), 128) { StopDistance = 0.5f, @@ -12230,40 +14714,55 @@ public static class AssemblyQuestLoader num3 = 6; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span78 = CollectionsMarshal.AsSpan(list165); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list165); + 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)8, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list165; skipConditions13.StepIf = skipStepConditions6; obj105.SkipConditions = skipConditions13; reference120 = obj105; - ref QuestStep reference121 = ref span77[1]; + num2++; + ref QuestStep reference121 = ref span3[num2]; QuestStep obj106 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.962505f, 42.300007f, -158.14607f), 128) { StopDistance = 0.5f, DisableNavmesh = true }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span79 = CollectionsMarshal.AsSpan(list166); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list166 = new List(num4); + CollectionsMarshal.SetCount(list166, num4); + span8 = CollectionsMarshal.AsSpan(list166); + 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)8, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list166; reference121 = obj106; - span77[2] = new QuestStep(EInteractionType.StatusOff, null, null, 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 128) { Status = EStatus.Hidden }; - ref QuestStep reference122 = ref span77[3]; + num2++; + ref QuestStep reference122 = ref span3[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Action, null, new Vector3(-155.25468f, 18f, 28.882175f), 129) { StopDistance = 0.5f, @@ -12279,39 +14778,54 @@ public static class AssemblyQuestLoader num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span80 = CollectionsMarshal.AsSpan(list167); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list167); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list167; skipConditions14.StepIf = skipStepConditions7; obj107.SkipConditions = skipConditions14; reference122 = obj107; - ref QuestStep reference123 = ref span77[4]; + num2++; + ref QuestStep reference123 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.91245f, 18.2f, 34.06711f), 129) { StopDistance = 0.5f }; - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span81 = CollectionsMarshal.AsSpan(list168); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list168 = new List(num4); + CollectionsMarshal.SetCount(list168, num4); + span8 = CollectionsMarshal.AsSpan(list168); + 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); obj108.CompletionQuestVariablesFlags = list168; reference123 = obj108; - span77[5] = new QuestStep(EInteractionType.StatusOff, null, null, 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 129) { Status = EStatus.Hidden }; - ref QuestStep reference124 = ref span77[6]; + num2++; + ref QuestStep reference124 = ref span3[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Action, null, new Vector3(-187.95581f, 1.2697256f, 208.46738f), 129) { StopDistance = 0.5f, @@ -12327,34 +14841,48 @@ public static class AssemblyQuestLoader num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span82 = CollectionsMarshal.AsSpan(list169); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list169); + 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)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list169; skipConditions15.StepIf = skipStepConditions8; obj109.SkipConditions = skipConditions15; reference124 = obj109; - ref QuestStep reference125 = ref span77[7]; + num2++; + ref QuestStep reference125 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-190.81572f, 0.9999907f, 210.59836f), 129); - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span83 = CollectionsMarshal.AsSpan(list170); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + span8 = CollectionsMarshal.AsSpan(list170); + 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); questStep16.CompletionQuestVariablesFlags = list170; reference125 = questStep16; obj104.Steps = list164; reference119 = obj104; - ref QuestSequence reference126 = ref span74[5]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 5 @@ -12362,39 +14890,49 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span84 = CollectionsMarshal.AsSpan(list171); - span84[0] = new QuestStep(EInteractionType.StatusOff, null, null, 129) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 129) { Status = EStatus.Hidden }; - span84[1] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); obj110.Steps = list171; reference126 = obj110; - ref QuestSequence reference127 = ref span74[6]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list172)[0]; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference128 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.SinglePlayerDuty, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 4; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span85 = CollectionsMarshal.AsSpan(list173); - span85[0] = "(phase 1) AI doesn't move or pick up the stolen firearms"; - span85[1] = "(phase 1 + 2) AI automatically removes Hidden status"; - span85[2] = "(phase 2) AI only moves while targeted enemies are in range + gets stuck on corners while trying to get to irrelevant enemies"; - span85[3] = "(phase 2) AI doesn't even attempt to navigate to the end of the quest"; + span = CollectionsMarshal.AsSpan(list173); + num4 = 0; + span[num4] = "(phase 1) AI doesn't move or pick up the stolen firearms"; + num4++; + span[num4] = "(phase 1 + 2) AI automatically removes Hidden status"; + num4++; + span[num4] = "(phase 2) AI only moves while targeted enemies are in range + gets stuck on corners while trying to get to irrelevant enemies"; + num4++; + span[num4] = "(phase 2) AI doesn't even attempt to navigate to the end of the quest"; singlePlayerDutyOptions.Notes = list173; questStep17.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference128 = questStep17; obj111.Steps = list172; reference127 = obj111; - ref QuestSequence reference129 = ref span74[7]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 7 @@ -12402,7 +14940,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129) { AethernetShortcut = new AethernetShortcut { @@ -12412,20 +14952,23 @@ public static class AssemblyQuestLoader }; obj112.Steps = list174; reference129 = obj112; - ref QuestSequence reference130 = ref span74[8]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span86 = CollectionsMarshal.AsSpan(list175); - span86[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129 }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(144) @@ -12439,13 +14982,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "liza"; questRoot21.Author = list176; - num = 7; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span87 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference131 = ref span87[0]; + index = 7; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -12453,21 +14999,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj114.Steps = list178; reference131 = obj114; - ref QuestSequence reference132 = ref span87[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); obj115.Steps = list179; reference132 = obj115; - ref QuestSequence reference133 = ref span87[2]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 @@ -12475,88 +15027,126 @@ public static class AssemblyQuestLoader num2 = 5; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span88 = CollectionsMarshal.AsSpan(list180); - ref QuestStep reference134 = ref span88[0]; + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference134 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1000512u, new Vector3(311.69592f, 14.8470745f, 164.47693f), 148); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span89 = CollectionsMarshal.AsSpan(list181); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + span8 = CollectionsMarshal.AsSpan(list181); + 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)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list181; reference134 = questStep18; - ref QuestStep reference135 = ref span88[1]; + index2++; + ref QuestStep reference135 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1000513u, new Vector3(303.8833f, 15.899703f, 160.87585f), 148); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span90 = CollectionsMarshal.AsSpan(list182); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list182); + 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)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list182; reference135 = questStep19; - ref QuestStep reference136 = ref span88[2]; + index2++; + ref QuestStep reference136 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1000514u, new Vector3(296.1012f, 15.999987f, 171.4961f), 148); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span91 = CollectionsMarshal.AsSpan(list183); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + span8 = CollectionsMarshal.AsSpan(list183); + 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); questStep20.CompletionQuestVariablesFlags = list183; reference136 = questStep20; - ref QuestStep reference137 = ref span88[3]; + index2++; + ref QuestStep reference137 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1000515u, new Vector3(291.21838f, 19.86808f, 175.21924f), 148); num3 = 6; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span92 = CollectionsMarshal.AsSpan(list184); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list184); + 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); questStep21.CompletionQuestVariablesFlags = list184; reference137 = questStep21; - ref QuestStep reference138 = ref span88[4]; + index2++; + ref QuestStep reference138 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1000516u, new Vector3(284.65698f, 21.97319f, 188.18945f), 148); - num3 = 6; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span93 = CollectionsMarshal.AsSpan(list185); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span8 = CollectionsMarshal.AsSpan(list185); + 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); questStep22.CompletionQuestVariablesFlags = list185; reference138 = questStep22; obj116.Steps = list180; reference133 = obj116; - ref QuestSequence reference139 = ref span87[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000740u, new Vector3(260.18152f, 24.000002f, 192.2179f), 148) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000740u, new Vector3(260.18152f, 24.000002f, 192.2179f), 148) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -12565,11 +15155,13 @@ public static class AssemblyQuestLoader }; obj117.Steps = list186; reference139 = obj117; - span87[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference140 = ref span87[5]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -12577,33 +15169,31 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span94 = CollectionsMarshal.AsSpan(list187); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(319.9492f, 13.866494f, 156.2647f), 148); - span94[1] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(319.9492f, 13.866494f, 156.2647f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); obj118.Steps = list187; reference140 = obj118; - ref QuestSequence reference141 = ref span87[6]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.Gridania, To = EAetheryteLocation.GridaniaAirship - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } } }; obj119.Steps = list188; @@ -12615,13 +15205,16 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list189); + index = 0; + span[index] = "Cacahuetes"; questRoot22.Author = list189; - num = 2; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span95 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference142 = ref span95[0]; + index = 2; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + span2 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -12629,18 +15222,23 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132); obj120.Steps = list191; reference142 = obj120; - ref QuestSequence reference143 = ref span95[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list192)[0]; + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + ref QuestStep reference144 = ref span3[num2]; QuestStep obj122 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 5f @@ -12648,7 +15246,9 @@ public static class AssemblyQuestLoader num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC998_00131_Q1_000_1") @@ -12664,13 +15264,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "Cacahuetes"; questRoot23.Author = list194; - num = 2; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span96 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference145 = ref span96[0]; + index = 2; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -12678,7 +15281,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list196)[0]; + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + ref QuestStep reference146 = ref span3[index2]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -12693,30 +15298,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = 133; + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + span6 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span6[num3] = 133; obj125.InTerritory = list197; skipConditions16.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions16; reference146 = obj124; obj123.Steps = list196; reference145 = obj123; - ref QuestSequence reference147 = ref span96[1]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list198)[0]; + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + ref QuestStep reference148 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); num3 = 1; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC998_00132_Q1_000_1") @@ -12733,13 +15345,16 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; questRoot24.Author = list200; - num = 2; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span97 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference149 = ref span97[0]; + index = 2; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -12747,7 +15362,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list202)[0]; + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + ref QuestStep reference150 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -12762,30 +15379,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 133; + num4 = 1; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + span6 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span6[num3] = 133; obj129.InTerritory = list203; skipConditions17.AetheryteShortcutIf = obj129; obj128.SkipConditions = skipConditions17; reference150 = obj128; obj127.Steps = list202; reference149 = obj127; - ref QuestSequence reference151 = ref span97[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list204)[0]; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ998_00133_Q1_000_1") @@ -12801,13 +15425,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "Cacahuetes"; questRoot25.Author = list206; - num = 7; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span98 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference153 = ref span98[0]; + index = 7; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -12815,7 +15442,9 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -12834,18 +15463,22 @@ public static class AssemblyQuestLoader }; obj131.Steps = list208; reference153 = obj131; - ref QuestSequence reference154 = ref span98[1]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); obj132.Steps = list209; reference154 = obj132; - ref QuestSequence reference155 = ref span98[2]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -12853,191 +15486,260 @@ public static class AssemblyQuestLoader num2 = 12; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span99 = CollectionsMarshal.AsSpan(list210); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - ref QuestStep reference156 = ref span99[1]; + index2++; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Action, 2001177u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span100 = CollectionsMarshal.AsSpan(list211); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + span8 = CollectionsMarshal.AsSpan(list211); + 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)2, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list211; reference156 = obj134; - ref QuestStep reference157 = ref span99[2]; + index2++; + ref QuestStep reference157 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.806755f, -3.824695f, -61.20561f), 148); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span101 = CollectionsMarshal.AsSpan(list212); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list212); + 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(0, (byte)4, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list212; skipConditions18.StepIf = skipStepConditions9; questStep25.SkipConditions = skipConditions18; reference157 = questStep25; - ref QuestStep reference158 = ref span99[3]; + index2++; + ref QuestStep reference158 = ref span3[index2]; QuestStep obj135 = new QuestStep(EInteractionType.Action, 2001175u, new Vector3(-115.58716f, -3.402832f, -51.07196f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span102 = CollectionsMarshal.AsSpan(list213); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + span8 = CollectionsMarshal.AsSpan(list213); + 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)4, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list213; reference158 = obj135; - ref QuestStep reference159 = ref span99[4]; + index2++; + ref QuestStep reference159 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.90863f, -1.355497f, -69.45994f), 148); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span103 = CollectionsMarshal.AsSpan(list214); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list214); + 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(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list214; skipConditions19.StepIf = skipStepConditions10; questStep26.SkipConditions = skipConditions19; reference159 = questStep26; - ref QuestStep reference160 = ref span99[5]; + index2++; + ref QuestStep reference160 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Action, 2000959u, new Vector3(-143.32806f, -0.41204834f, -58.884644f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span104 = CollectionsMarshal.AsSpan(list215); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + span8 = CollectionsMarshal.AsSpan(list215); + 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); obj136.CompletionQuestVariablesFlags = list215; reference160 = obj136; - ref QuestStep reference161 = ref span99[6]; + index2++; + ref QuestStep reference161 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-154.95493f, 4.0352364f, -132.85217f), 148); SkipConditions skipConditions20 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span105 = CollectionsMarshal.AsSpan(list216); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list216); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list216; skipConditions20.StepIf = skipStepConditions11; questStep27.SkipConditions = skipConditions20; reference161 = questStep27; - ref QuestStep reference162 = ref span99[7]; + index2++; + ref QuestStep reference162 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Action, 2000958u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span106 = CollectionsMarshal.AsSpan(list217); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + span8 = CollectionsMarshal.AsSpan(list217); + 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); obj137.CompletionQuestVariablesFlags = list217; reference162 = obj137; - ref QuestStep reference163 = ref span99[8]; + index2++; + ref QuestStep reference163 = ref span3[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.08684f, 7.6589117f, -173.19547f), 148); SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span107 = CollectionsMarshal.AsSpan(list218); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list218); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list218; skipConditions21.StepIf = skipStepConditions12; questStep28.SkipConditions = skipConditions21; reference163 = questStep28; - ref QuestStep reference164 = ref span99[9]; + index2++; + ref QuestStep reference164 = ref span3[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Action, 2000957u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span108 = CollectionsMarshal.AsSpan(list219); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list219 = new List(num4); + CollectionsMarshal.SetCount(list219, num4); + span8 = CollectionsMarshal.AsSpan(list219); + 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); obj138.CompletionQuestVariablesFlags = list219; reference164 = obj138; - span99[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); - span99[11] = new QuestStep(EInteractionType.Action, 2000956u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2000956u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; obj133.Steps = list210; reference155 = obj133; - ref QuestSequence reference165 = ref span98[3]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13048,7 +15750,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list220; reference165 = obj139; - ref QuestSequence reference166 = ref span98[4]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -13056,8 +15759,9 @@ public static class AssemblyQuestLoader num2 = 3; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span109 = CollectionsMarshal.AsSpan(list221); - span109[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -13073,11 +15777,13 @@ public static class AssemblyQuestLoader } } }; - span109[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut }; - ref QuestStep reference167 = ref span109[2]; + index2++; + ref QuestStep reference167 = ref span3[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) { StopDistance = 0.5f, @@ -13088,41 +15794,55 @@ public static class AssemblyQuestLoader num3 = 2; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span110 = CollectionsMarshal.AsSpan(list222); - ref ComplexCombatData reference168 = ref span110[0]; + span7 = CollectionsMarshal.AsSpan(list222); + num4 = 0; + ref ComplexCombatData reference168 = ref span7[num4]; ComplexCombatData obj142 = new ComplexCombatData { DataId = 12u, MinimumKillCount = 8u }; - num4 = 6; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span111 = CollectionsMarshal.AsSpan(list223); - span111[0] = null; - span111[1] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num5 = 6; + List list223 = new List(num5); + CollectionsMarshal.SetCount(list223, num5); + span8 = CollectionsMarshal.AsSpan(list223); + num6 = 0; + span8[num6] = null; + num6++; + span8[num6] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; + num6++; + span8[num6] = null; obj142.CompletionQuestVariablesFlags = list223; reference168 = obj142; - ref ComplexCombatData reference169 = ref span110[1]; + num4++; + ref ComplexCombatData reference169 = ref span7[num4]; ComplexCombatData obj143 = new ComplexCombatData { DataId = 39u, MinimumKillCount = 8u }; - num4 = 6; - List list224 = new List(num4); - CollectionsMarshal.SetCount(list224, num4); - Span span112 = CollectionsMarshal.AsSpan(list224); - span112[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = null; + num6 = 6; + List list224 = new List(num6); + CollectionsMarshal.SetCount(list224, num6); + span8 = CollectionsMarshal.AsSpan(list224); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj143.CompletionQuestVariablesFlags = list224; reference169 = obj143; obj141.ComplexCombatData = list222; @@ -13137,15 +15857,18 @@ public static class AssemblyQuestLoader reference167 = obj141; obj140.Steps = list221; reference166 = obj140; - ref QuestSequence reference170 = ref span98[5]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13156,7 +15879,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list225; reference170 = obj144; - ref QuestSequence reference171 = ref span98[6]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -13164,15 +15888,19 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list226)[0]; + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference172 = ref span3[index2]; QuestStep obj146 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new DialogueChoice + num4 = 1; + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + span5 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC997_00134_Q1_000_1") @@ -13189,24 +15917,30 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "liza"; questRoot26.Author = list228; - num = 2; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span113 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference173 = ref span113[0]; + index = 2; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span2 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132); obj147.Steps = list230; reference173 = obj147; - ref QuestSequence reference174 = ref span113[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -13214,12 +15948,16 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list231)[0]; + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + ref QuestStep reference175 = ref span3[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); num3 = 1; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list232); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWDK000_00138_Q1_000_1") @@ -13235,23 +15973,28 @@ public static class AssemblyQuestLoader num = 2; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span114 = CollectionsMarshal.AsSpan(list233); - span114[0] = "Cacahuetes"; - span114[1] = "liza"; + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "Cacahuetes"; + index++; + span[index] = "liza"; questRoot27.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span115 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference176 = ref span115[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list235)[0]; + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference177 = ref span3[num2]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -13266,17 +16009,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = 133; + num4 = 1; + List list236 = new List(num4); + CollectionsMarshal.SetCount(list236, num4); + span6 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span6[num3] = 133; obj151.InTerritory = list236; skipConditions22.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions22; reference177 = obj150; obj149.Steps = list235; reference176 = obj149; - ref QuestSequence reference178 = ref span115[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 @@ -13284,8 +16030,9 @@ public static class AssemblyQuestLoader num2 = 3; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span116 = CollectionsMarshal.AsSpan(list237); - span116[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -13295,7 +16042,8 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference179 = ref span116[1]; + index2++; + ref QuestStep reference179 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 142u, new Vector3(514.06104f, 44.169823f, -42.008118f), 148) { StopDistance = 0.5f, @@ -13305,33 +16053,44 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 142u; + span4 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span4[num4] = 142u; obj153.KillEnemyDataIds = list238; - num3 = 6; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span117 = CollectionsMarshal.AsSpan(list239); - span117[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num4 = 6; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + span8 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span8[num3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj153.CompletionQuestVariablesFlags = list239; reference179 = obj153; - span116[2] = new QuestStep(EInteractionType.Interact, 2000967u, new Vector3(514.8546f, 43.808594f, -48.630554f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000967u, new Vector3(514.8546f, 43.808594f, -48.630554f), 148); obj152.Steps = list237; reference178 = obj152; - ref QuestSequence reference180 = ref span115[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span118 = CollectionsMarshal.AsSpan(list240); - ref QuestStep reference181 = ref span118[0]; + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + ref QuestStep reference181 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, null, new Vector3(211.82294f, 23.458103f, 157.57333f), 148) { StopDistance = 0.5f, @@ -13341,24 +16100,34 @@ public static class AssemblyQuestLoader num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = 21u; + span4 = CollectionsMarshal.AsSpan(list241); + num4 = 0; + span4[num4] = 21u; obj155.KillEnemyDataIds = list241; - num3 = 6; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - Span span119 = CollectionsMarshal.AsSpan(list242); - span119[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = null; + num4 = 6; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + span8 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span8[num3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj155.CompletionQuestVariablesFlags = list242; reference181 = obj155; - span118[1] = new QuestStep(EInteractionType.Interact, 2000918u, new Vector3(215.99133f, 23.575134f, 153.2157f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2000918u, new Vector3(215.99133f, 23.575134f, 153.2157f), 148); obj154.Steps = list240; reference180 = obj154; - ref QuestSequence reference182 = ref span115[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -13366,7 +16135,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13385,22 +16156,26 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "liza"; questRoot28.Author = list244; - num = 7; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span120 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference183 = ref span120[0]; + index = 7; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + span2 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span121 = CollectionsMarshal.AsSpan(list246); - span121[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13421,13 +16196,15 @@ public static class AssemblyQuestLoader } } }; - span121[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj157.Steps = list246; reference183 = obj157; - ref QuestSequence reference184 = ref span120[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -13435,28 +16212,34 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj158.Steps = list247; reference184 = obj158; - ref QuestSequence reference185 = ref span120[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1010199u, new Vector3(256.12268f, 21.097961f, 581.3839f), 135) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010199u, new Vector3(256.12268f, 21.097961f, 581.3839f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj159.Steps = list248; reference185 = obj159; - ref QuestSequence reference186 = ref span120[3]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -13464,28 +16247,34 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 2004861u, new Vector3(-131.63965f, 0.503479f, 729.9762f), 135) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004861u, new Vector3(-131.63965f, 0.503479f, 729.9762f), 135) { Fly = true }; obj160.Steps = list249; reference186 = obj160; - ref QuestSequence reference187 = ref span120[4]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj161.Steps = list250; reference187 = obj161; - ref QuestSequence reference188 = ref span120[5]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 5 @@ -13493,18 +16282,23 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138); + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138); obj162.Steps = list251; reference188 = obj162; - ref QuestSequence reference189 = ref span120[6]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { StopDistance = 5f, NextQuestId = new QuestId(145) @@ -13518,13 +16312,16 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list253); + index = 0; + span[index] = "liza"; questRoot29.Author = list253; - num = 4; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span122 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference190 = ref span122[0]; + index = 3; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + span2 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -13532,7 +16329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -13546,30 +16345,30 @@ public static class AssemblyQuestLoader }; obj164.Steps = list255; reference190 = obj164; - ref QuestSequence reference191 = ref span122[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span123 = CollectionsMarshal.AsSpan(list256); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(593.2056f, 43.88314f, 304.65137f), 138) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(593.2056f, 43.88314f, 304.65137f), 138) { Fly = true }; - span123[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010228u, new Vector3(594.1709f, 43.893982f, 303.76135f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010228u, new Vector3(594.1709f, 43.893982f, 303.76135f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions() }; obj165.Steps = list256; reference191 = obj165; - span122[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference192 = ref span122[3]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -13577,8 +16376,9 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span124 = CollectionsMarshal.AsSpan(list257); - span124[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13588,7 +16388,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(146) @@ -13602,22 +16403,26 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list258); + index = 0; + span[index] = "liza"; questRoot30.Author = list258; - num = 10; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span125 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference193 = ref span125[0]; + index = 10; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span2 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span126 = CollectionsMarshal.AsSpan(list260); - span126[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13638,13 +16443,15 @@ public static class AssemblyQuestLoader } } }; - span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj167.Steps = list260; reference193 = obj167; - ref QuestSequence reference194 = ref span125[1]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -13652,12 +16459,14 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span127 = CollectionsMarshal.AsSpan(list261); - span127[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; - span127[1] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -13668,24 +16477,28 @@ public static class AssemblyQuestLoader }; obj168.Steps = list261; reference194 = obj168; - ref QuestSequence reference195 = ref span125[2]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span128 = CollectionsMarshal.AsSpan(list262); - span128[0] = new QuestStep(EInteractionType.Action, null, new Vector3(168.34132f, 69.5f, 327.67975f), 134) + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, null, new Vector3(168.34132f, 69.5f, 327.67975f), 134) { StopDistance = 0.5f, Action = EAction.Hide }; - span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.24341f, 69.5f, 328.4606f), 134); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.24341f, 69.5f, 328.4606f), 134); obj169.Steps = list262; reference195 = obj169; - ref QuestSequence reference196 = ref span125[3]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -13693,26 +16506,31 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span129 = CollectionsMarshal.AsSpan(list263); - span129[0] = new QuestStep(EInteractionType.StatusOff, null, null, 134) + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 134) { Status = EStatus.Hidden }; - span129[1] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) { Fly = true }; obj170.Steps = list263; reference196 = obj170; - ref QuestSequence reference197 = ref span125[4]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list264)[0]; + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + ref QuestStep reference198 = ref span3[num2]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134) { Fly = true, @@ -13722,14 +16540,17 @@ public static class AssemblyQuestLoader num3 = 2; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - Span span130 = CollectionsMarshal.AsSpan(list265); - span130[0] = 3567u; - span130[1] = 3568u; + span4 = CollectionsMarshal.AsSpan(list265); + num4 = 0; + span4[num4] = 3567u; + num4++; + span4[num4] = 3568u; obj172.KillEnemyDataIds = list265; reference198 = obj172; obj171.Steps = list264; reference197 = obj171; - ref QuestSequence reference199 = ref span125[5]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 @@ -13737,19 +16558,23 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134); + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134); obj173.Steps = list266; reference199 = obj173; - ref QuestSequence reference200 = ref span125[6]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span131 = CollectionsMarshal.AsSpan(list267); - span131[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13759,13 +16584,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span131[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj174.Steps = list267; reference200 = obj174; - ref QuestSequence reference201 = ref span125[7]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 7 @@ -13773,28 +16600,34 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj175.Steps = list268; reference201 = obj175; - ref QuestSequence reference202 = ref span125[8]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) { StopDistance = 7f }; obj176.Steps = list269; reference202 = obj176; - ref QuestSequence reference203 = ref span125[9]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -13802,8 +16635,9 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span132 = CollectionsMarshal.AsSpan(list270); - span132[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13813,7 +16647,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(148) @@ -13827,23 +16662,28 @@ public static class AssemblyQuestLoader num = 2; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span133 = CollectionsMarshal.AsSpan(list271); - span133[0] = "Cacahuetes"; - span133[1] = "liza"; + span = CollectionsMarshal.AsSpan(list271); + index = 0; + span[index] = "Cacahuetes"; + index++; + span[index] = "liza"; questRoot31.Author = list271; - num = 7; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span134 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference204 = ref span134[0]; + index = 7; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + span2 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list273)[0]; + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference205 = ref span3[num2]; QuestStep obj179 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -13858,17 +16698,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = 133; + num4 = 1; + List list274 = new List(num4); + CollectionsMarshal.SetCount(list274, num4); + span6 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span6[num3] = 133; obj180.InTerritory = list274; skipConditions23.AetheryteShortcutIf = obj180; obj179.SkipConditions = skipConditions23; reference205 = obj179; obj178.Steps = list273; reference204 = obj178; - ref QuestSequence reference206 = ref span134[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -13876,24 +16719,29 @@ public static class AssemblyQuestLoader num2 = 2; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span135 = CollectionsMarshal.AsSpan(list275); - span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - span135[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj181.Steps = list275; reference206 = obj181; - ref QuestSequence reference207 = ref span134[2]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list276)[0]; + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference208 = ref span3[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2001229u, new Vector3(-510.6432f, 6.301941f, 35.78235f), 152) { Fly = true, @@ -13902,12 +16750,15 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 295u; + span4 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span4[num4] = 295u; obj183.KillEnemyDataIds = list277; reference208 = obj183; obj182.Steps = list276; reference207 = obj182; - ref QuestSequence reference209 = ref span134[3]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -13915,23 +16766,28 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span136 = CollectionsMarshal.AsSpan(list278); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true }; - span136[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj184.Steps = list278; reference209 = obj184; - ref QuestSequence reference210 = ref span134[4]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001230u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001230u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -13941,7 +16797,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list279; reference210 = obj185; - ref QuestSequence reference211 = ref span134[5]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 5 @@ -13949,23 +16806,28 @@ public static class AssemblyQuestLoader num2 = 2; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span137 = CollectionsMarshal.AsSpan(list280); - span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true }; - span137[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj186.Steps = list280; reference211 = obj186; - ref QuestSequence reference212 = ref span134[6]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13984,13 +16846,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list282); + index = 0; + span[index] = "liza"; questRoot32.Author = list282; - num = 8; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span138 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference213 = ref span138[0]; + index = 8; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + span2 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -13998,8 +16863,9 @@ public static class AssemblyQuestLoader num2 = 2; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span139 = CollectionsMarshal.AsSpan(list284); - span139[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14020,39 +16886,45 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj188.Steps = list284; reference213 = obj188; - ref QuestSequence reference214 = ref span138[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span140 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference215 = ref span140[0]; + index2 = 3; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + ref QuestStep reference215 = ref span3[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions24 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 2; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span141 = CollectionsMarshal.AsSpan(list286); - span141[0] = 134; - span141[1] = 135; + num4 = 2; + List list286 = new List(num4); + CollectionsMarshal.SetCount(list286, num4); + span6 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span6[num3] = 134; + num3++; + span6[num3] = 135; skipStepConditions13.InTerritory = list286; skipConditions24.StepIf = skipStepConditions13; obj190.SkipConditions = skipConditions24; reference215 = obj190; - ref QuestStep reference216 = ref span140[1]; + num2++; + ref QuestStep reference216 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.54845f, 65.80573f, 285.71436f), 134) { Fly = true, @@ -14067,30 +16939,37 @@ public static class AssemblyQuestLoader num3 = 1; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 135; + span6 = CollectionsMarshal.AsSpan(list287); + num4 = 0; + span6[num4] = 135; skipStepConditions14.InTerritory = list287; skipConditions25.StepIf = skipStepConditions14; obj191.SkipConditions = skipConditions25; reference216 = obj191; - ref QuestStep reference217 = ref span140[2]; + num2++; + ref QuestStep reference217 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(509.26575f, 95.90476f, -446.11078f), 135) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span142 = CollectionsMarshal.AsSpan(list288); - span142[0] = 2864u; - span142[1] = 2865u; - span142[2] = 2866u; + num4 = 3; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + span4 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span4[num3] = 2864u; + num3++; + span4[num3] = 2865u; + num3++; + span4[num3] = 2866u; obj192.KillEnemyDataIds = list288; reference217 = obj192; obj189.Steps = list285; reference214 = obj189; - ref QuestSequence reference218 = ref span138[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -14098,19 +16977,23 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1010252u, new Vector3(508.23218f, 95.95811f, -449.82074f), 135); + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010252u, new Vector3(508.23218f, 95.95811f, -449.82074f), 135); obj193.Steps = list289; reference218 = obj193; - ref QuestSequence reference219 = ref span138[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span143 = CollectionsMarshal.AsSpan(list290); - span143[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14120,13 +17003,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span143[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj194.Steps = list290; reference219 = obj194; - ref QuestSequence reference220 = ref span138[4]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 4 @@ -14134,8 +17019,9 @@ public static class AssemblyQuestLoader num2 = 5; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span144 = CollectionsMarshal.AsSpan(list291); - span144[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129, SkipConditions = new SkipConditions @@ -14146,7 +17032,8 @@ public static class AssemblyQuestLoader } } }; - span144[1] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -14157,7 +17044,8 @@ public static class AssemblyQuestLoader } } }; - span144[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -14168,7 +17056,8 @@ public static class AssemblyQuestLoader } } }; - span144[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.17413f, 16.072088f, 406.06335f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.17413f, 16.072088f, 406.06335f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -14180,21 +17069,26 @@ public static class AssemblyQuestLoader } } }; - span144[4] = new QuestStep(EInteractionType.Interact, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); obj195.Steps = list291; reference220 = obj195; - ref QuestSequence reference221 = ref span138[5]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); obj196.Steps = list292; reference221 = obj196; - ref QuestSequence reference222 = ref span138[6]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 6 @@ -14202,19 +17096,23 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1010250u, new Vector3(448.47778f, 16.154829f, 408.77393f), 137); + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010250u, new Vector3(448.47778f, 16.154829f, 408.77393f), 137); obj197.Steps = list293; reference222 = obj197; - ref QuestSequence reference223 = ref span138[7]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span145 = CollectionsMarshal.AsSpan(list294); - span145[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14224,7 +17122,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span145[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(154) @@ -14237,87 +17136,31 @@ public static class AssemblyQuestLoader private static void LoadQuests3() { - QuestId questId = new QuestId(152); + QuestId questId = new QuestId(154); QuestRoot questRoot = new QuestRoot(); int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 }; - int num2 = 1; + int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Uldah, - To = EAetheryteLocation.UldahSapphireAvenue - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj.Steps = list3; - reference = obj; - ref QuestSequence reference2 = ref span[1]; - QuestSequence obj2 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009295u, new Vector3(97.09314f, 27.238445f, -352.55975f), 141) - { - AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj2.Steps = list4; - reference2 = obj2; - questRoot.QuestSequence = list2; - AddQuest(questId, questRoot); - QuestId questId2 = new QuestId(154); - QuestRoot questRoot2 = new QuestRoot(); - num = 1; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "liza"; - questRoot2.Author = list5; - num = 6; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; - QuestSequence obj3 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14338,94 +17181,112 @@ public static class AssemblyQuestLoader } } }; - span3[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; - obj3.Steps = list7; - reference3 = obj3; - ref QuestSequence reference4 = ref span2[1]; - QuestSequence obj4 = new QuestSequence + obj.Steps = list3; + reference = obj; + num++; + ref QuestSequence reference2 = ref span2[num]; + QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) + num3 = 2; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) { TargetTerritoryId = (ushort)139, Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - ref QuestStep reference5 = ref span4[1]; - QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.69995f, -2.0159357f, 48.819775f), 139) + num2++; + ref QuestStep reference3 = ref span3[num2]; + QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.69995f, -2.0159357f, 48.819775f), 139) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - int num3 = 3; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = 3569u; - span5[1] = 3570u; - span5[2] = 3571u; - obj5.KillEnemyDataIds = list9; - reference5 = obj5; - obj4.Steps = list8; - reference4 = obj4; - ref QuestSequence reference6 = ref span2[2]; - QuestSequence obj6 = new QuestSequence + int num4 = 3; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span4[num5] = 3569u; + num5++; + span4[num5] = 3570u; + num5++; + span4[num5] = 3571u; + obj3.KillEnemyDataIds = list5; + reference3 = obj3; + obj2.Steps = list4; + reference2 = obj2; + num++; + ref QuestSequence reference4 = ref span2[num]; + QuestSequence obj4 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 2004916u, new Vector3(-436.02655f, -1.9379272f, 48.569458f), 139); - obj6.Steps = list10; - reference6 = obj6; - ref QuestSequence reference7 = ref span2[3]; - QuestSequence obj7 = new QuestSequence + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + span3 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2004916u, new Vector3(-436.02655f, -1.9379272f, 48.569458f), 139); + obj4.Steps = list6; + reference4 = obj4; + num++; + ref QuestSequence reference5 = ref span2[num]; + QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1010261u, new Vector3(-437.3694f, -2.369183f, 55.954834f), 139) + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010261u, new Vector3(-437.3694f, -2.369183f, 55.954834f), 139) { StopDistance = 7f }; - obj7.Steps = list11; - reference7 = obj7; - ref QuestSequence reference8 = ref span2[4]; - QuestSequence obj8 = new QuestSequence + obj5.Steps = list7; + reference5 = obj5; + num++; + ref QuestSequence reference6 = ref span2[num]; + QuestSequence obj6 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1010267u, new Vector3(-449.08832f, 21.634577f, -327.93164f), 134) + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1010267u, new Vector3(-449.08832f, 21.634577f, -327.93164f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - obj8.Steps = list12; - reference8 = obj8; - ref QuestSequence reference9 = ref span2[5]; - QuestSequence obj9 = new QuestSequence + obj6.Steps = list8; + reference6 = obj6; + num++; + ref QuestSequence reference7 = ref span2[num]; + QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + num3 = 2; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14435,36 +17296,41 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(155) }; - obj9.Steps = list13; - reference9 = obj9; - questRoot2.QuestSequence = list6; - AddQuest(questId2, questRoot2); - QuestId questId3 = new QuestId(155); - QuestRoot questRoot3 = new QuestRoot(); + obj7.Steps = list9; + reference7 = obj7; + questRoot.QuestSequence = list2; + AddQuest(questId, questRoot); + QuestId questId2 = new QuestId(155); + QuestRoot questRoot2 = new QuestRoot(); num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; - questRoot3.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span7[0]; - QuestSequence obj10 = new QuestSequence + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "liza"; + questRoot2.Author = list10; + index = 3; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; + QuestSequence obj8 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - span8[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + span3 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14485,26 +17351,30 @@ public static class AssemblyQuestLoader } } }; - span8[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; - obj10.Steps = list16; - reference10 = obj10; - ref QuestSequence reference11 = ref span7[1]; - QuestSequence obj11 = new QuestSequence + obj8.Steps = list12; + reference8 = obj8; + num++; + ref QuestSequence reference9 = ref span2[num]; + QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + num3 = 2; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; - span9[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004863u, new Vector3(4.4403076f, 44.47998f, 121.29382f), 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004863u, new Vector3(4.4403076f, 44.47998f, 121.29382f), 128) { AethernetShortcut = new AethernetShortcut { @@ -14512,18 +17382,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj11.Steps = list17; - reference11 = obj11; - ref QuestSequence reference12 = ref span7[2]; - QuestSequence obj12 = new QuestSequence + obj9.Steps = list13; + reference9 = obj9; + num++; + ref QuestSequence reference10 = ref span2[num]; + QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + List list14 = new List(num2); + CollectionsMarshal.SetCount(list14, num2); + span3 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -14532,184 +17404,234 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(212) }; - obj12.Steps = list18; - reference12 = obj12; - questRoot3.QuestSequence = list15; - AddQuest(questId3, questRoot3); - QuestId questId4 = new QuestId(161); - QuestRoot questRoot4 = new QuestRoot(); + obj10.Steps = list14; + reference10 = obj10; + questRoot2.QuestSequence = list11; + AddQuest(questId2, questRoot2); + QuestId questId3 = new QuestId(161); + QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; - questRoot4.Author = list19; - num = 7; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span11[0]; - QuestSequence obj13 = new QuestSequence + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; + questRoot3.Author = list15; + index = 7; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; + QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - obj13.Steps = list21; - reference13 = obj13; - ref QuestSequence reference14 = ref span11[1]; - QuestSequence obj14 = new QuestSequence + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + obj11.Steps = list17; + reference11 = obj11; + num++; + ref QuestSequence reference12 = ref span2[num]; + QuestSequence obj12 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference15 = ref span12[0]; + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); + span3 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + ref QuestStep reference13 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000484u, new Vector3(2.0598755f, -7.9139543f, -22.171448f), 148); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep.CompletionQuestVariablesFlags = list23; - reference15 = questStep; - ref QuestStep reference16 = ref span12[1]; + num5 = 6; + List list19 = new List(num5); + CollectionsMarshal.SetCount(list19, num5); + Span span5 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep.CompletionQuestVariablesFlags = list19; + reference13 = questStep; + num3++; + ref QuestStep reference14 = ref span3[num3]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000476u, new Vector3(27.0542f, -6.881897f, 14.145081f), 148); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list24; - reference16 = questStep2; - ref QuestStep reference17 = ref span12[2]; + num4 = 6; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span5 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list20; + reference14 = questStep2; + num3++; + ref QuestStep reference15 = ref span3[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span15 = CollectionsMarshal.AsSpan(list25); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list25; - reference17 = questStep3; - obj14.Steps = list22; - reference14 = obj14; - ref QuestSequence reference18 = ref span11[2]; - QuestSequence obj15 = new QuestSequence + num5 = 6; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + span5 = CollectionsMarshal.AsSpan(list21); + 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); + questStep3.CompletionQuestVariablesFlags = list21; + reference15 = questStep3; + obj12.Steps = list18; + reference12 = obj12; + num++; + ref QuestSequence reference16 = ref span2[num]; + QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - obj15.Steps = list26; - reference18 = obj15; - ref QuestSequence reference19 = ref span11[3]; - QuestSequence obj16 = new QuestSequence + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + obj13.Steps = list22; + reference16 = obj13; + num++; + ref QuestSequence reference17 = ref span2[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.630515f, -22.580793f, 242.32327f), 148); - ref QuestStep reference20 = ref span16[1]; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + span3 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.630515f, -22.580793f, 242.32327f), 148); + num3++; + ref QuestStep reference18 = ref span3[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.SinglePlayerDuty, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); - SinglePlayerDutyOptions obj17 = new SinglePlayerDutyOptions + SinglePlayerDutyOptions obj15 = new SinglePlayerDutyOptions { Enabled = true }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = "Healer NPC is only killed after the boss dies; all NPCs need to be killed for the duty to complete"; - obj17.Notes = list28; - questStep4.SinglePlayerDutyOptions = obj17; - reference20 = questStep4; - obj16.Steps = list27; - reference19 = obj16; - ref QuestSequence reference21 = ref span11[4]; - QuestSequence obj18 = new QuestSequence + num4 = 1; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + span = CollectionsMarshal.AsSpan(list24); + num5 = 0; + span[num5] = "Healer NPC is only killed after the boss dies; all NPCs need to be killed for the duty to complete"; + obj15.Notes = list24; + questStep4.SinglePlayerDutyOptions = obj15; + reference18 = questStep4; + obj14.Steps = list23; + reference17 = obj14; + num++; + ref QuestSequence reference19 = ref span2[num]; + QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); - obj18.Steps = list29; - reference21 = obj18; - ref QuestSequence reference22 = ref span11[5]; - QuestSequence obj19 = new QuestSequence + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); + obj16.Steps = list25; + reference19 = obj16; + num++; + ref QuestSequence reference20 = ref span2[num]; + QuestSequence obj17 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + span3 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj19.Steps = list30; - reference22 = obj19; - ref QuestSequence reference23 = ref span11[6]; - QuestSequence obj20 = new QuestSequence + obj17.Steps = list26; + reference20 = obj17; + num++; + ref QuestSequence reference21 = ref span2[num]; + QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - obj20.Steps = list31; - reference23 = obj20; - questRoot4.QuestSequence = list20; - AddQuest(questId4, questRoot4); - QuestId questId5 = new QuestId(166); - QuestRoot questRoot5 = new QuestRoot(); + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + obj18.Steps = list27; + reference21 = obj18; + questRoot3.QuestSequence = list16; + AddQuest(questId3, questRoot3); + QuestId questId4 = new QuestId(166); + QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "FalconTaterz"; - questRoot5.Author = list32; - num = 7; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span17 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference24 = ref span17[0]; - QuestSequence obj21 = new QuestSequence + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "FalconTaterz"; + questRoot4.Author = list28; + index = 7; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference22 = ref span2[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009357u, new Vector3(528.95386f, 17.44805f, 448.69153f), 137) + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + span3 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1009357u, new Vector3(528.95386f, 17.44805f, 448.69153f), 137) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -14721,18 +17643,20 @@ public static class AssemblyQuestLoader } } }; - obj21.Steps = list34; - reference24 = obj21; - ref QuestSequence reference25 = ref span17[1]; - QuestSequence obj22 = new QuestSequence + obj19.Steps = list30; + reference22 = obj19; + num++; + ref QuestSequence reference23 = ref span2[num]; + QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span18 = CollectionsMarshal.AsSpan(list35); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -14741,20 +17665,24 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span18[1] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); - obj22.Steps = list35; - reference25 = obj22; - ref QuestSequence reference26 = ref span17[2]; - QuestSequence obj23 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); + obj20.Steps = list31; + reference23 = obj20; + num++; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj21 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span19 = CollectionsMarshal.AsSpan(list36); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); - span19[1] = new QuestStep(EInteractionType.Interact, 1001857u, new Vector3(-46.76892f, 10f, -12.741333f), 131) + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + span3 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1001857u, new Vector3(-46.76892f, 10f, -12.741333f), 131) { AethernetShortcut = new AethernetShortcut { @@ -14762,18 +17690,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - obj23.Steps = list36; - reference26 = obj23; - ref QuestSequence reference27 = ref span17[3]; - QuestSequence obj24 = new QuestSequence + obj21.Steps = list32; + reference24 = obj21; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span20 = CollectionsMarshal.AsSpan(list37); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + num3 = 2; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AethernetShortcut = new AethernetShortcut { @@ -14781,33 +17711,40 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span20[1] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); - obj24.Steps = list37; - reference27 = obj24; - ref QuestSequence reference28 = ref span17[4]; - QuestSequence obj25 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); + obj22.Steps = list33; + reference25 = obj22; + num++; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span21 = CollectionsMarshal.AsSpan(list38); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.24249f, 7.999999f, -55.6639f), 130); - span21[1] = new QuestStep(EInteractionType.Interact, 1010188u, new Vector3(-106.523315f, 4.2265673f, -82.16986f), 130); - obj25.Steps = list38; - reference28 = obj25; - ref QuestSequence reference29 = ref span17[5]; - QuestSequence obj26 = new QuestSequence + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + span3 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.24249f, 7.999999f, -55.6639f), 130); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1010188u, new Vector3(-106.523315f, 4.2265673f, -82.16986f), 130); + obj23.Steps = list34; + reference26 = obj23; + num++; + ref QuestSequence reference27 = ref span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span22 = CollectionsMarshal.AsSpan(list39); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.05803f, 1.363661f, -142.65125f), 130); - span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + num3 = 3; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.05803f, 1.363661f, -142.65125f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AethernetShortcut = new AethernetShortcut { @@ -14815,23 +17752,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - span22[2] = new QuestStep(EInteractionType.Interact, 1010281u, new Vector3(-70.96979f, 6.9839683f, 3.982544f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010281u, new Vector3(-70.96979f, 6.9839683f, 3.982544f), 131) { StopDistance = 7f, DisableNavmesh = true }; - obj26.Steps = list39; - reference29 = obj26; - ref QuestSequence reference30 = ref span17[6]; - QuestSequence obj27 = new QuestSequence + obj24.Steps = list35; + reference27 = obj24; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span23 = CollectionsMarshal.AsSpan(list40); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + span3 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AethernetShortcut = new AethernetShortcut { @@ -14839,154 +17779,201 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span23[1] = new QuestStep(EInteractionType.CompleteQuest, 1010287u, new Vector3(-142.71765f, 12f, -3.9215698f), 130) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1010287u, new Vector3(-142.71765f, 12f, -3.9215698f), 130) { NextQuestId = new QuestId(202) }; - obj27.Steps = list40; - reference30 = obj27; - questRoot5.QuestSequence = list33; - AddQuest(questId5, questRoot5); - QuestId questId6 = new QuestId(175); - QuestRoot questRoot6 = new QuestRoot(); + obj25.Steps = list36; + reference28 = obj25; + questRoot4.QuestSequence = list29; + AddQuest(questId4, questRoot4); + QuestId questId5 = new QuestId(175); + QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; - questRoot6.Author = list41; - num = 3; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span24 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span24[0]; - QuestSequence obj28 = new QuestSequence + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; + questRoot5.Author = list37; + index = 3; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); - obj28.Steps = list43; - reference31 = obj28; - ref QuestSequence reference32 = ref span24[1]; - QuestSequence obj29 = new QuestSequence + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); + obj26.Steps = list39; + reference29 = obj26; + num++; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 1, Comment = "Very likely this needs manual combat and/or manual continues" }; num2 = 6; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.07129f, -12.000001f, 38.204f), 148); - span25[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(190.28528f, -12f, 77.53861f), 148) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + span3 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.07129f, -12.000001f, 38.204f), 148); + num3++; + span3[num3] = new QuestStep(EInteractionType.Combat, null, new Vector3(190.28528f, -12f, 77.53861f), 148) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference33 = ref span25[2]; + num3++; + ref QuestStep reference31 = ref span3[num3]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2000141u, new Vector3(179.4613f, -10.666138f, 99.56506f), 148); - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span26 = CollectionsMarshal.AsSpan(list45); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list45; - reference33 = questStep5; - ref QuestStep reference34 = ref span25[3]; + num5 = 6; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + span5 = CollectionsMarshal.AsSpan(list41); + 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); + questStep5.CompletionQuestVariablesFlags = list41; + reference31 = questStep5; + num3++; + ref QuestStep reference32 = ref span3[num3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2000147u, new Vector3(168.07812f, -12.008911f, 120.80554f), 148); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span27 = CollectionsMarshal.AsSpan(list46); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list46; - reference34 = questStep6; - ref QuestStep reference35 = ref span25[4]; + num4 = 6; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + span5 = CollectionsMarshal.AsSpan(list42); + 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)4, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list42; + reference32 = questStep6; + num3++; + ref QuestStep reference33 = ref span3[num3]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2000149u, new Vector3(154.0398f, -10.75769f, 120.3479f), 148); - num3 = 6; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span28 = CollectionsMarshal.AsSpan(list47); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list47; - reference35 = questStep7; - ref QuestStep reference36 = ref span25[5]; + num5 = 6; + List list43 = new List(num5); + CollectionsMarshal.SetCount(list43, num5); + span5 = CollectionsMarshal.AsSpan(list43); + 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); + questStep7.CompletionQuestVariablesFlags = list43; + reference33 = questStep7; + num3++; + ref QuestStep reference34 = ref span3[num3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2000148u, new Vector3(126.14636f, -12.008911f, 142.35144f), 148); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span29 = CollectionsMarshal.AsSpan(list48); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list48; - reference36 = questStep8; - obj29.Steps = list44; - reference32 = obj29; - ref QuestSequence reference37 = ref span24[2]; - QuestSequence obj30 = new QuestSequence + num4 = 6; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + 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)2, 0, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list44; + reference34 = questStep8; + obj27.Steps = list40; + reference30 = obj27; + num++; + ref QuestSequence reference35 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); - obj30.Steps = list49; - reference37 = obj30; - questRoot6.QuestSequence = list42; - AddQuest(questId6, questRoot6); - QuestId questId7 = new QuestId(176); - QuestRoot questRoot7 = new QuestRoot(); + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); + obj28.Steps = list45; + reference35 = obj28; + questRoot5.QuestSequence = list38; + AddQuest(questId5, questRoot5); + QuestId questId6 = new QuestId(176); + QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; - questRoot7.Author = list50; - num = 2; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span30 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference38 = ref span30[0]; - QuestSequence obj31 = new QuestSequence + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; + questRoot6.Author = list46; + index = 2; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); - obj31.Steps = list52; - reference38 = obj31; - ref QuestSequence reference39 = ref span30[1]; - QuestSequence obj32 = new QuestSequence + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + span3 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + obj29.Steps = list48; + reference36 = obj29; + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span31 = CollectionsMarshal.AsSpan(list53); - span31[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + num3 = 4; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -14995,39 +17982,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - span31[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows }; - span31[2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) { TaxiStandId = (byte)9 }; - span31[3] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); - obj32.Steps = list53; - reference39 = obj32; - questRoot7.QuestSequence = list51; - AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(177); - QuestRoot questRoot8 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + obj30.Steps = list49; + reference37 = obj30; + questRoot6.QuestSequence = list47; + AddQuest(questId6, questRoot6); + QuestId questId7 = new QuestId(177); + QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; - questRoot8.Author = list54; - num = 1; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - ref QuestSequence reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; - QuestSequence obj33 = new QuestSequence + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "liza"; + questRoot7.Author = list50; + index = 1; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list56)[0]; - QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + span3 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref QuestStep reference39 = ref span3[num3]; + QuestStep obj32 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -15037,51 +18033,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj35 = new SkipAetheryteCondition + SkipAetheryteCondition obj33 = new SkipAetheryteCondition { InSameTerritory = true }; - 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); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + num5 = 1; + List list53 = new List(num5); + CollectionsMarshal.SetCount(list53, num5); + Span span6 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span6[num4] = 131; + obj33.InTerritory = list53; + skipConditions.AetheryteShortcutIf = obj33; + obj32.SkipConditions = skipConditions; + num4 = 1; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + Span span7 = CollectionsMarshal.AsSpan(list54); + num5 = 0; + span7[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA001_00177_Q1_000_1") }; - obj34.DialogueChoices = list58; - reference41 = obj34; - obj33.Steps = list56; - reference40 = obj33; - questRoot8.QuestSequence = list55; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(178); - QuestRoot questRoot9 = new QuestRoot(); + obj32.DialogueChoices = list54; + reference39 = obj32; + obj31.Steps = list52; + reference38 = obj31; + questRoot7.QuestSequence = list51; + AddQuest(questId7, questRoot7); + QuestId questId8 = new QuestId(178); + QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; - questRoot9.Author = list59; - num = 1; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - ref QuestSequence reference42 = ref CollectionsMarshal.AsSpan(list60)[0]; - QuestSequence obj36 = new QuestSequence + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "Cacahuetes"; + questRoot8.Author = list55; + index = 1; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; + QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -15092,40 +18098,48 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + num5 = 1; + List list58 = new List(num5); + CollectionsMarshal.SetCount(list58, num5); + span7 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL001_00178_Q1_000_1") }; - obj37.DialogueChoices = list62; - reference43 = obj37; - obj36.Steps = list61; - reference42 = obj36; - questRoot9.QuestSequence = list60; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(179); - QuestRoot questRoot10 = new QuestRoot(); + obj35.DialogueChoices = list58; + reference41 = obj35; + obj34.Steps = list57; + reference40 = obj34; + questRoot8.QuestSequence = list56; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(179); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "Cacahuetes"; - questRoot10.Author = list63; - num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - ref QuestSequence reference44 = ref CollectionsMarshal.AsSpan(list64)[0]; - QuestSequence obj38 = new QuestSequence + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "Cacahuetes"; + questRoot9.Author = list59; + index = 1; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list65)[0]; - QuestStep obj39 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + span3 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + ref QuestStep reference43 = ref span3[num3]; + QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -15135,51 +18149,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj40 = new SkipAetheryteCondition + SkipAetheryteCondition obj38 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 128; - obj40.InTerritory = list66; - skipConditions2.AetheryteShortcutIf = obj40; - obj39.SkipConditions = skipConditions2; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span6 = CollectionsMarshal.AsSpan(list62); + num5 = 0; + span6[num5] = 128; + obj38.InTerritory = list62; + skipConditions2.AetheryteShortcutIf = obj38; + obj37.SkipConditions = skipConditions2; + num5 = 1; + List list63 = new List(num5); + CollectionsMarshal.SetCount(list63, num5); + span7 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC001_00179_Q1_000_1") }; - obj39.DialogueChoices = list67; - reference45 = obj39; - obj38.Steps = list65; - reference44 = obj38; - questRoot10.QuestSequence = list64; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(180); - QuestRoot questRoot11 = new QuestRoot(); + obj37.DialogueChoices = list63; + reference43 = obj37; + obj36.Steps = list61; + reference42 = obj36; + questRoot9.QuestSequence = list60; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(180); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; - questRoot11.Author = list68; - num = 1; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - ref QuestSequence reference46 = ref CollectionsMarshal.AsSpan(list69)[0]; - QuestSequence obj41 = new QuestSequence + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "Cacahuetes"; + questRoot10.Author = list64; + index = 1; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference45 = ref span3[num2]; + QuestStep obj40 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AethernetShortcut = new AethernetShortcut { @@ -15187,40 +18211,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + span7 = CollectionsMarshal.AsSpan(list67); + num5 = 0; + span7[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC999_00180_Q1_000_1") }; - obj42.DialogueChoices = list71; - reference47 = obj42; - obj41.Steps = list70; - reference46 = obj41; - questRoot11.QuestSequence = list69; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(181); - QuestRoot questRoot12 = new QuestRoot(); + obj40.DialogueChoices = list67; + reference45 = obj40; + obj39.Steps = list66; + reference44 = obj39; + questRoot10.QuestSequence = list65; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(181); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "Cacahuetes"; - questRoot12.Author = list72; - num = 1; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - ref QuestSequence reference48 = ref CollectionsMarshal.AsSpan(list73)[0]; - QuestSequence obj43 = new QuestSequence + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "Cacahuetes"; + questRoot11.Author = list68; + index = 1; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj41 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - 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) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + ref QuestStep reference47 = ref span3[num3]; + QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15236,40 +18268,48 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + num5 = 1; + List list71 = new List(num5); + CollectionsMarshal.SetCount(list71, num5); + span7 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC999_00181_Q1_000_1") }; - obj44.DialogueChoices = list75; - reference49 = obj44; - obj43.Steps = list74; - reference48 = obj43; - questRoot12.QuestSequence = list73; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(182); - QuestRoot questRoot13 = new QuestRoot(); + obj42.DialogueChoices = list71; + reference47 = obj42; + obj41.Steps = list70; + reference46 = obj41; + questRoot11.QuestSequence = list69; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(182); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; - questRoot13.Author = list76; - num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - ref QuestSequence reference50 = ref CollectionsMarshal.AsSpan(list77)[0]; - QuestSequence obj45 = new QuestSequence + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; + questRoot12.Author = list72; + index = 1; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; + QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15279,51 +18319,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition obj47 = new SkipAetheryteCondition + SkipAetheryteCondition obj45 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = 133; - obj47.InTerritory = list79; - skipConditions3.AetheryteShortcutIf = obj47; - obj46.SkipConditions = skipConditions3; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + num4 = 1; + List list75 = new List(num4); + CollectionsMarshal.SetCount(list75, num4); + span6 = CollectionsMarshal.AsSpan(list75); + num5 = 0; + span6[num5] = 133; + obj45.InTerritory = list75; + skipConditions3.AetheryteShortcutIf = obj45; + obj44.SkipConditions = skipConditions3; + num5 = 1; + List list76 = new List(num5); + CollectionsMarshal.SetCount(list76, num5); + span7 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ999_00182_Q1_000_1") }; - obj46.DialogueChoices = list80; - reference51 = obj46; - obj45.Steps = list78; - reference50 = obj45; - questRoot13.QuestSequence = list77; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(183); - QuestRoot questRoot14 = new QuestRoot(); + obj44.DialogueChoices = list76; + reference49 = obj44; + obj43.Steps = list74; + reference48 = obj43; + questRoot12.QuestSequence = list73; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(183); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "Cacahuetes"; - questRoot14.Author = list81; - num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - ref QuestSequence reference52 = ref CollectionsMarshal.AsSpan(list82)[0]; - QuestSequence obj48 = new QuestSequence + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "Cacahuetes"; + questRoot13.Author = list77; + index = 1; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference50 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list83)[0]; - QuestStep obj49 = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + ref QuestStep reference51 = ref span3[num3]; + QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -15339,40 +18389,48 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice + num4 = 1; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span7 = CollectionsMarshal.AsSpan(list80); + num5 = 0; + span7[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM001_00183_Q1_000_1") }; - obj49.DialogueChoices = list84; - reference53 = obj49; - obj48.Steps = list83; - reference52 = obj48; - questRoot14.QuestSequence = list82; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(184); - QuestRoot questRoot15 = new QuestRoot(); + obj47.DialogueChoices = list80; + reference51 = obj47; + obj46.Steps = list79; + reference50 = obj46; + questRoot13.QuestSequence = list78; + AddQuest(questId13, questRoot13); + QuestId questId14 = new QuestId(184); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "Cacahuetes"; - questRoot15.Author = list85; - num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - ref QuestSequence reference54 = ref CollectionsMarshal.AsSpan(list86)[0]; - QuestSequence obj50 = new QuestSequence + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "Cacahuetes"; + questRoot14.Author = list81; + index = 1; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref QuestStep reference53 = ref span3[num2]; + QuestStep obj49 = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -15383,40 +18441,48 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice + num5 = 1; + List list84 = new List(num5); + CollectionsMarshal.SetCount(list84, num5); + span7 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWDK999_00184_Q1_000_1") }; - obj51.DialogueChoices = list88; - reference55 = obj51; - obj50.Steps = list87; - reference54 = obj50; - questRoot15.QuestSequence = list86; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(185); - QuestRoot questRoot16 = new QuestRoot(); + obj49.DialogueChoices = list84; + reference53 = obj49; + obj48.Steps = list83; + reference52 = obj48; + questRoot14.QuestSequence = list82; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(185); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "Cacahuetes"; - questRoot16.Author = list89; - num = 1; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - ref QuestSequence reference56 = ref CollectionsMarshal.AsSpan(list90)[0]; - QuestSequence obj52 = new QuestSequence + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "Cacahuetes"; + questRoot15.Author = list85; + index = 1; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list91)[0]; - QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + span3 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + ref QuestStep reference55 = ref span3[num3]; + QuestStep obj51 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -15426,52 +18492,62 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions4 = new SkipConditions(); - SkipAetheryteCondition obj54 = new SkipAetheryteCondition + SkipAetheryteCondition obj52 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 128; - obj54.InTerritory = list92; - skipConditions4.AetheryteShortcutIf = obj54; - obj53.SkipConditions = skipConditions4; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + num4 = 1; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span6 = CollectionsMarshal.AsSpan(list88); + num5 = 0; + span6[num5] = 128; + obj52.InTerritory = list88; + skipConditions4.AetheryteShortcutIf = obj52; + obj51.SkipConditions = skipConditions4; + num5 = 1; + List list89 = new List(num5); + CollectionsMarshal.SetCount(list89, num5); + span7 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM001_00185_Q1_000_1") }; - obj53.DialogueChoices = list93; - obj53.NextQuestId = new QuestId(291); - reference57 = obj53; - obj52.Steps = list91; - reference56 = obj52; - questRoot16.QuestSequence = list90; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(186); - QuestRoot questRoot17 = new QuestRoot(); + obj51.DialogueChoices = list89; + obj51.NextQuestId = new QuestId(291); + reference55 = obj51; + obj50.Steps = list87; + reference54 = obj50; + questRoot15.QuestSequence = list86; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(186); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "Cacahuetes"; - questRoot17.Author = list94; - num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - ref QuestSequence reference58 = ref CollectionsMarshal.AsSpan(list95)[0]; - QuestSequence obj55 = new QuestSequence + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "Cacahuetes"; + questRoot16.Author = list90; + index = 1; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; + QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -15481,51 +18557,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions5 = new SkipConditions(); - SkipAetheryteCondition obj57 = new SkipAetheryteCondition + SkipAetheryteCondition obj55 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 128; - obj57.InTerritory = list97; - skipConditions5.AetheryteShortcutIf = obj57; - obj56.SkipConditions = skipConditions5; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + num4 = 1; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + span6 = CollectionsMarshal.AsSpan(list93); + num5 = 0; + span6[num5] = 128; + obj55.InTerritory = list93; + skipConditions5.AetheryteShortcutIf = obj55; + obj54.SkipConditions = skipConditions5; + num5 = 1; + List list94 = new List(num5); + CollectionsMarshal.SetCount(list94, num5); + span7 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARM001_00186_Q1_000_1") }; - obj56.DialogueChoices = list98; - reference59 = obj56; - obj55.Steps = list96; - reference58 = obj55; - questRoot17.QuestSequence = list95; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(187); - QuestRoot questRoot18 = new QuestRoot(); + obj54.DialogueChoices = list94; + reference57 = obj54; + obj53.Steps = list92; + reference56 = obj53; + questRoot16.QuestSequence = list91; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(187); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "Cacahuetes"; - questRoot18.Author = list99; - num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list100)[0]; - QuestSequence obj58 = new QuestSequence + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "Cacahuetes"; + questRoot17.Author = list95; + index = 1; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list101)[0]; - QuestStep obj59 = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131) + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + span3 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + ref QuestStep reference59 = ref span3[num3]; + QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -15535,51 +18621,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions6 = new SkipConditions(); - SkipAetheryteCondition obj60 = new SkipAetheryteCondition + SkipAetheryteCondition obj58 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 131; - obj60.InTerritory = list102; - skipConditions6.AetheryteShortcutIf = obj60; - obj59.SkipConditions = skipConditions6; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + span6 = CollectionsMarshal.AsSpan(list98); + num5 = 0; + span6[num5] = 131; + obj58.InTerritory = list98; + skipConditions6.AetheryteShortcutIf = obj58; + obj57.SkipConditions = skipConditions6; + num5 = 1; + List list99 = new List(num5); + CollectionsMarshal.SetCount(list99, num5); + span7 = CollectionsMarshal.AsSpan(list99); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLD001_00187_Q1_000_1") }; - obj59.DialogueChoices = list103; - reference61 = obj59; - obj58.Steps = list101; - reference60 = obj58; - questRoot18.QuestSequence = list100; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(188); - QuestRoot questRoot19 = new QuestRoot(); + obj57.DialogueChoices = list99; + reference59 = obj57; + obj56.Steps = list97; + reference58 = obj56; + questRoot17.QuestSequence = list96; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(188); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "Cacahuetes"; - questRoot19.Author = list104; - num = 1; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - ref QuestSequence reference62 = ref CollectionsMarshal.AsSpan(list105)[0]; - QuestSequence obj61 = new QuestSequence + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "Cacahuetes"; + questRoot18.Author = list100; + index = 1; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference61 = ref span3[num2]; + QuestStep obj60 = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15589,51 +18685,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions7 = new SkipConditions(); - SkipAetheryteCondition obj63 = new SkipAetheryteCondition + SkipAetheryteCondition obj61 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = 133; - obj63.InTerritory = list107; - skipConditions7.AetheryteShortcutIf = obj63; - obj62.SkipConditions = skipConditions7; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span6 = CollectionsMarshal.AsSpan(list103); + num5 = 0; + span6[num5] = 133; + obj61.InTerritory = list103; + skipConditions7.AetheryteShortcutIf = obj61; + obj60.SkipConditions = skipConditions7; + num5 = 1; + List list104 = new List(num5); + CollectionsMarshal.SetCount(list104, num5); + span7 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTAN999_00188_Q1_000_1") }; - obj62.DialogueChoices = list108; - reference63 = obj62; - obj61.Steps = list106; - reference62 = obj61; - questRoot19.QuestSequence = list105; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(189); - QuestRoot questRoot20 = new QuestRoot(); + obj60.DialogueChoices = list104; + reference61 = obj60; + obj59.Steps = list102; + reference60 = obj59; + questRoot18.QuestSequence = list101; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(189); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "Cacahuetes"; - questRoot20.Author = list109; - num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - ref QuestSequence reference64 = ref CollectionsMarshal.AsSpan(list110)[0]; - QuestSequence obj64 = new QuestSequence + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "Cacahuetes"; + questRoot19.Author = list105; + index = 1; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list111)[0]; - QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131) + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + ref QuestStep reference63 = ref span3[num3]; + QuestStep obj63 = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -15643,51 +18749,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions8 = new SkipConditions(); - SkipAetheryteCondition obj66 = new SkipAetheryteCondition + SkipAetheryteCondition obj64 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = 131; - obj66.InTerritory = list112; - skipConditions8.AetheryteShortcutIf = obj66; - obj65.SkipConditions = skipConditions8; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + span6 = CollectionsMarshal.AsSpan(list108); + num5 = 0; + span6[num5] = 131; + obj64.InTerritory = list108; + skipConditions8.AetheryteShortcutIf = obj64; + obj63.SkipConditions = skipConditions8; + num5 = 1; + List list109 = new List(num5); + CollectionsMarshal.SetCount(list109, num5); + span7 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWVR001_00189_Q1_000_1") }; - obj65.DialogueChoices = list113; - reference65 = obj65; - obj64.Steps = list111; - reference64 = obj64; - questRoot20.QuestSequence = list110; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(190); - QuestRoot questRoot21 = new QuestRoot(); + obj63.DialogueChoices = list109; + reference63 = obj63; + obj62.Steps = list107; + reference62 = obj62; + questRoot19.QuestSequence = list106; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(190); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "Cacahuetes"; - questRoot21.Author = list114; - num = 1; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - ref QuestSequence reference66 = ref CollectionsMarshal.AsSpan(list115)[0]; - QuestSequence obj67 = new QuestSequence + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "Cacahuetes"; + questRoot20.Author = list110; + index = 1; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; + QuestStep obj66 = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -15697,51 +18813,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions9 = new SkipConditions(); - SkipAetheryteCondition obj69 = new SkipAetheryteCondition + SkipAetheryteCondition obj67 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 131; - obj69.InTerritory = list117; - skipConditions9.AetheryteShortcutIf = obj69; - obj68.SkipConditions = skipConditions9; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span6 = CollectionsMarshal.AsSpan(list113); + num5 = 0; + span6[num5] = 131; + obj67.InTerritory = list113; + skipConditions9.AetheryteShortcutIf = obj67; + obj66.SkipConditions = skipConditions9; + num5 = 1; + List list114 = new List(num5); + CollectionsMarshal.SetCount(list114, num5); + span7 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSALC001_00190_Q1_1") }; - obj68.DialogueChoices = list118; - reference67 = obj68; - obj67.Steps = list116; - reference66 = obj67; - questRoot21.QuestSequence = list115; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(191); - QuestRoot questRoot22 = new QuestRoot(); + obj66.DialogueChoices = list114; + reference65 = obj66; + obj65.Steps = list112; + reference64 = obj65; + questRoot20.QuestSequence = list111; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(191); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "Cacahuetes"; - questRoot22.Author = list119; - num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - ref QuestSequence reference68 = ref CollectionsMarshal.AsSpan(list120)[0]; - QuestSequence obj70 = new QuestSequence + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "Cacahuetes"; + questRoot21.Author = list115; + index = 1; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list121)[0]; - QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128) + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + span3 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + ref QuestStep reference67 = ref span3[num3]; + QuestStep obj69 = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -15751,51 +18877,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions10 = new SkipConditions(); - SkipAetheryteCondition obj72 = new SkipAetheryteCondition + SkipAetheryteCondition obj70 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 128; - obj72.InTerritory = list122; - skipConditions10.AetheryteShortcutIf = obj72; - obj71.SkipConditions = skipConditions10; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + num4 = 1; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + span6 = CollectionsMarshal.AsSpan(list118); + num5 = 0; + span6[num5] = 128; + obj70.InTerritory = list118; + skipConditions10.AetheryteShortcutIf = obj70; + obj69.SkipConditions = skipConditions10; + num5 = 1; + List list119 = new List(num5); + CollectionsMarshal.SetCount(list119, num5); + span7 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCUL001_00191_Q1_000_1") }; - obj71.DialogueChoices = list123; - reference69 = obj71; - obj70.Steps = list121; - reference68 = obj70; - questRoot22.QuestSequence = list120; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(192); - QuestRoot questRoot23 = new QuestRoot(); + obj69.DialogueChoices = list119; + reference67 = obj69; + obj68.Steps = list117; + reference66 = obj68; + questRoot21.QuestSequence = list116; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(192); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; - questRoot23.Author = list124; - num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - ref QuestSequence reference70 = ref CollectionsMarshal.AsSpan(list125)[0]; - QuestSequence obj73 = new QuestSequence + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; + questRoot22.Author = list120; + index = 1; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference69 = ref span3[num2]; + QuestStep obj72 = new QuestStep(EInteractionType.AcceptQuest, 1002282u, new Vector3(3.5552979f, 7.5999613f, 153.2157f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -15805,51 +18941,61 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions11 = new SkipConditions(); - SkipAetheryteCondition obj75 = new SkipAetheryteCondition + SkipAetheryteCondition obj73 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 131; - obj75.InTerritory = list127; - skipConditions11.AetheryteShortcutIf = obj75; - obj74.SkipConditions = skipConditions11; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + span6 = CollectionsMarshal.AsSpan(list123); + num5 = 0; + span6[num5] = 131; + obj73.InTerritory = list123; + skipConditions11.AetheryteShortcutIf = obj73; + obj72.SkipConditions = skipConditions11; + num5 = 1; + List list124 = new List(num5); + CollectionsMarshal.SetCount(list124, num5); + span7 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSMIN001_00192_Q1_000_1") }; - obj74.DialogueChoices = list128; - reference71 = obj74; - obj73.Steps = list126; - reference70 = obj73; - questRoot23.QuestSequence = list125; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(193); - QuestRoot questRoot24 = new QuestRoot(); + obj72.DialogueChoices = list124; + reference69 = obj72; + obj71.Steps = list122; + reference68 = obj71; + questRoot22.QuestSequence = list121; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(193); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "Cacahuetes"; - questRoot24.Author = list129; - num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - ref QuestSequence reference72 = ref CollectionsMarshal.AsSpan(list130)[0]; - QuestSequence obj76 = new QuestSequence + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "Cacahuetes"; + questRoot23.Author = list125; + index = 1; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list131)[0]; - QuestStep obj77 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + span3 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + ref QuestStep reference71 = ref span3[num3]; + QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15859,31 +19005,35 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions12 = new SkipConditions(); - SkipAetheryteCondition obj78 = new SkipAetheryteCondition + SkipAetheryteCondition obj76 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 133; - obj78.InTerritory = list132; - skipConditions12.AetheryteShortcutIf = obj78; - obj77.SkipConditions = skipConditions12; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + span6 = CollectionsMarshal.AsSpan(list128); + num5 = 0; + span6[num5] = 133; + obj76.InTerritory = list128; + skipConditions12.AetheryteShortcutIf = obj76; + obj75.SkipConditions = skipConditions12; + num5 = 1; + List list129 = new List(num5); + CollectionsMarshal.SetCount(list129, num5); + span7 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSHRV999_00193_Q1_000_1") }; - obj77.DialogueChoices = list133; - reference73 = obj77; - obj76.Steps = list131; - reference72 = obj76; - questRoot24.QuestSequence = list130; - AddQuest(questId24, questRoot24); + obj75.DialogueChoices = list129; + reference71 = obj75; + obj74.Steps = list127; + reference70 = obj74; + questRoot23.QuestSequence = list126; + AddQuest(questId23, questRoot23); } private static void LoadQuests4() @@ -15893,13 +19043,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -15907,20 +19060,25 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); - ref QuestStep reference3 = ref span2[1]; + index2 = 6; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); + num2++; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.PurchaseItem, 1000396u, new Vector3(82.597046f, -7.893894f, -103.349365f), 148) { ItemId = 2653u, @@ -15936,7 +19094,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = EExtendedClassJob.DoW; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = EExtendedClassJob.DoW; obj3.RequiredCurrentJob = list5; obj3.PurchaseMenu = new PurchaseMenu { @@ -15944,16 +19104,19 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262227u) }; reference3 = obj3; - ref QuestStep reference4 = ref span2[2]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.PurchaseItem, 1000396u, new Vector3(82.597046f, -7.893894f, -103.349365f), 148) { ItemId = 2655u, ItemCount = 1 }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = EExtendedClassJob.DoM; + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = EExtendedClassJob.DoM; obj4.RequiredCurrentJob = list6; obj4.PurchaseMenu = new PurchaseMenu { @@ -15961,7 +19124,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262227u) }; reference4 = obj4; - span2[3] = new QuestStep(EInteractionType.EquipItem, null, null, 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 148) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -15975,7 +19139,8 @@ public static class AssemblyQuestLoader } } }; - span2[4] = new QuestStep(EInteractionType.EquipItem, null, null, 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 148) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -15989,7 +19154,8 @@ public static class AssemblyQuestLoader } } }; - span2[5] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148) { Comment = "All starting gear (except the hat) is ilvl 5 already" }; @@ -16002,13 +19168,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "FalconTaterz"; questRoot2.Author = list7; - num = 6; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 6; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -16016,20 +19185,25 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010279u, new Vector3(-143.60266f, 11.999999f, -3.8911133f), 130); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010279u, new Vector3(-143.60266f, 11.999999f, -3.8911133f), 130); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); - span4[1] = new QuestStep(EInteractionType.Interact, 1010523u, new Vector3(-53.48291f, 9.999997f, -4.0742188f), 131) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010523u, new Vector3(-53.48291f, 9.999997f, -4.0742188f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16039,7 +19213,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -16047,30 +19222,36 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.649715f, -11.872707f, -61.934204f), 141) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.649715f, -11.872707f, -61.934204f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span5[1] = new QuestStep(EInteractionType.Interact, 1010293u, new Vector3(-61.387024f, -11.84896f, -63.126587f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010293u, new Vector3(-61.387024f, -11.84896f, -63.126587f), 141); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1010298u, new Vector3(19.851929f, 19.020214f, -421.37793f), 141) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010298u, new Vector3(19.851929f, 19.020214f, -421.37793f), 141) { Fly = true }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 @@ -16078,7 +19259,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1010310u, new Vector3(-55.436035f, 3.4680986f, 260.57825f), 141) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010310u, new Vector3(-55.436035f, 3.4680986f, 260.57825f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -16090,16 +19273,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -16108,7 +19293,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130) { NextQuestId = new QuestId(203) }; @@ -16121,13 +19307,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "FalconTaterz"; questRoot3.Author = list15; - num = 6; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 6; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -16135,20 +19324,25 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); - span8[1] = new QuestStep(EInteractionType.Interact, 1010169u, new Vector3(-47.501343f, 9.999995f, -11.886841f), 131) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010169u, new Vector3(-47.501343f, 9.999995f, -11.886841f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16158,7 +19352,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span7[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -16166,8 +19361,9 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-45.67461f, 11.927631f, -16.919664f), 131) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-45.67461f, 11.927631f, -16.919664f), 131) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -16175,22 +19371,25 @@ public static class AssemblyQuestLoader Position = new Vector3(-48.14437f, 9.999995f, -10.52473f) } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) { StopDistance = 7f }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span7[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span10 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span10[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2004901u, new Vector3(103.50195f, 7.9804688f, 8.255066f), 131) { AethernetShortcut = new AethernetShortcut @@ -16202,47 +19401,69 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list21; reference15 = obj15; - span10[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(108.07826f, 8f, 8.036793f), 131); - ref QuestStep reference16 = ref span10[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(108.07826f, 8f, 8.036793f), 131); + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2004900u, new Vector3(103.715576f, 7.9804688f, -35.233154f), 131); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span5 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list22; reference16 = questStep; - ref QuestStep reference17 = ref span10[3]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2004899u, new Vector3(68.0094f, 7.9804688f, -74.05206f), 131); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list23; reference17 = questStep2; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference18 = ref span7[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -16250,9 +19471,11 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(98.252335f, 8.000075f, -38.319664f), 131); - span14[1] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(98.252335f, 8.000075f, -38.319664f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16262,16 +19485,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference19 = ref span7[5]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span15 = CollectionsMarshal.AsSpan(list25); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) + index2 = 2; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16279,7 +19504,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { StopDistance = 5f, NextQuestId = new QuestId(204) @@ -16293,13 +19519,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "FalconTaterz"; questRoot4.Author = list26; - num = 7; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span16 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span16[0]; + index = 7; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -16307,19 +19536,23 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010317u, new Vector3(139.78784f, 4.0099993f, -57.114563f), 131); + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010317u, new Vector3(139.78784f, 4.0099993f, -57.114563f), 131); obj18.Steps = list28; reference20 = obj18; - ref QuestSequence reference21 = ref span16[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16327,15 +19560,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - ref QuestStep reference22 = ref span17[1]; + num2++; + ref QuestStep reference22 = ref span3[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) { DisableNavmesh = true }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span6 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB404_00204_Q1_000_000") @@ -16344,7 +19580,8 @@ public static class AssemblyQuestLoader reference22 = obj20; obj19.Steps = list29; reference21 = obj19; - ref QuestSequence reference23 = ref span16[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -16352,28 +19589,34 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1010772u, new Vector3(-72.40405f, 6.9839687f, -0.045776367f), 131) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010772u, new Vector3(-72.40405f, 6.9839687f, -0.045776367f), 131) { StopDistance = 5f }; obj21.Steps = list31; reference23 = obj21; - ref QuestSequence reference24 = ref span16[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1010161u, new Vector3(-338.3994f, -22.360315f, 434.3175f), 145) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010161u, new Vector3(-338.3994f, -22.360315f, 434.3175f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj22.Steps = list32; reference24 = obj22; - ref QuestSequence reference25 = ref span16[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -16381,7 +19624,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 145) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 145) { DutyOptions = new DutyOptions { @@ -16390,18 +19635,22 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference25 = obj23; - ref QuestSequence reference26 = ref span16[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1010329u, new Vector3(-334.21838f, -22.463528f, 432.9746f), 145); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010329u, new Vector3(-334.21838f, -22.463528f, 432.9746f), 145); obj24.Steps = list34; reference26 = obj24; - ref QuestSequence reference27 = ref span16[6]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -16409,8 +19658,9 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span18 = CollectionsMarshal.AsSpan(list35); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -16419,7 +19669,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) { DisableNavmesh = true, NextQuestId = new QuestId(490) @@ -16433,29 +19684,35 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot5.Author = list36; - num = 2; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span19 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span19[0]; + index = 2; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span20 = CollectionsMarshal.AsSpan(list38); - span20[0] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 2314u }; - span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj26.Steps = list38; reference28 = obj26; - ref QuestSequence reference29 = ref span19[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -16463,7 +19720,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj27.Steps = list39; reference29 = obj27; questRoot5.QuestSequence = list37; @@ -16473,22 +19732,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot6.Author = list40; - num = 2; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span21 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span21[0]; + index = 2; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span22 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference31 = ref span22[0]; + index2 = 3; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -16516,16 +19779,21 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = 133; + Span span7 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span7[index3] = 133; obj31.InTerritory = list43; obj30.AetheryteShortcutIf = obj31; obj29.SkipConditions = obj30; reference31 = obj29; - span22[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); - span22[2] = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); obj28.Steps = list42; reference30 = obj28; - ref QuestSequence reference32 = ref span21[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -16533,20 +19801,24 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span23 = CollectionsMarshal.AsSpan(list44); - ref QuestStep reference33 = ref span23[0]; + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 154); - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheredItem + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span8 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 5509u, ItemCount = 10 }; questStep3.ItemsToGather = list45; reference33 = questStep3; - span23[1] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -16565,21 +19837,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot7.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span24 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span24[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -16597,14 +19874,17 @@ public static class AssemblyQuestLoader num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 133; + span7 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + span7[index3] = 133; obj35.InTerritory = list49; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; reference35 = obj34; obj33.Steps = list48; reference34 = obj33; - ref QuestSequence reference36 = ref span24[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -16612,8 +19892,9 @@ public static class AssemblyQuestLoader num2 = 3; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span25 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference37 = ref span25[0]; + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -16623,10 +19904,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - ref ComplexCombatData reference38 = ref CollectionsMarshal.AsSpan(list51)[0]; + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span9 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + ref ComplexCombatData reference38 = ref span9[num3]; ComplexCombatData obj38 = new ComplexCombatData { DataId = 37u, @@ -16635,76 +19918,106 @@ public static class AssemblyQuestLoader int num4 = 6; List list52 = new List(num4); CollectionsMarshal.SetCount(list52, num4); - Span span26 = CollectionsMarshal.AsSpan(list52); - span26[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = null; + span5 = CollectionsMarshal.AsSpan(list52); + int num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj38.CompletionQuestVariablesFlags = list52; reference38 = obj38; obj37.ComplexCombatData = list51; num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span27 = CollectionsMarshal.AsSpan(list53); - span27[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = null; + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj37.CompletionQuestVariablesFlags = list53; reference37 = obj37; - ref QuestStep reference39 = ref span25[1]; + index2++; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - ref ComplexCombatData reference40 = ref CollectionsMarshal.AsSpan(list54)[0]; + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span9 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + ref ComplexCombatData reference40 = ref span9[num3]; ComplexCombatData obj40 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list55 = new List(num4); - CollectionsMarshal.SetCount(list55, num4); - Span span28 = CollectionsMarshal.AsSpan(list55); - span28[0] = null; - span28[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = null; + num5 = 6; + List list55 = new List(num5); + CollectionsMarshal.SetCount(list55, num5); + span5 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj40.CompletionQuestVariablesFlags = list55; reference40 = obj40; obj39.ComplexCombatData = list54; num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span29 = CollectionsMarshal.AsSpan(list56); - span29[0] = null; - span29[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + span5 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj39.CompletionQuestVariablesFlags = list56; reference39 = obj39; - ref QuestStep reference41 = ref span25[2]; + index2++; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - ref ComplexCombatData reference42 = ref CollectionsMarshal.AsSpan(list57)[0]; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span9 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + ref ComplexCombatData reference42 = ref span9[num3]; ComplexCombatData obj42 = new ComplexCombatData { DataId = 47u, @@ -16713,39 +20026,54 @@ public static class AssemblyQuestLoader num4 = 6; List list58 = new List(num4); CollectionsMarshal.SetCount(list58, num4); - Span span30 = CollectionsMarshal.AsSpan(list58); - span30[0] = null; - span30[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = null; + span5 = CollectionsMarshal.AsSpan(list58); + num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj42.CompletionQuestVariablesFlags = list58; reference42 = obj42; obj41.ComplexCombatData = list57; num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span31 = CollectionsMarshal.AsSpan(list59); - span31[0] = null; - span31[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + span5 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; obj36.Steps = list50; reference36 = obj36; - ref QuestSequence reference43 = ref span24[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -16764,13 +20092,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "xan"; questRoot8.Author = list61; - num = 8; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span32 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference44 = ref span32[0]; + index = 8; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -16778,8 +20109,9 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span33 = CollectionsMarshal.AsSpan(list63); - span33[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16800,21 +20132,25 @@ public static class AssemblyQuestLoader } } }; - span33[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj44.Steps = list63; reference44 = obj44; - ref QuestSequence reference45 = ref span32[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1010602u, new Vector3(-1.449646f, 66.48521f, 46.28064f), 137) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010602u, new Vector3(-1.449646f, 66.48521f, 46.28064f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -16827,7 +20163,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference45 = obj45; - ref QuestSequence reference46 = ref span32[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -16835,12 +20172,16 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1010603u, new Vector3(-67.36859f, 70.39888f, 11.032227f), 137); - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span6 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q1_000_000"), @@ -16850,21 +20191,25 @@ public static class AssemblyQuestLoader reference47 = questStep4; obj46.Steps = list65; reference46 = obj46; - ref QuestSequence reference48 = ref span32[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1010607u, new Vector3(97.42883f, 68.34448f, -2.3651733f), 137) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010607u, new Vector3(97.42883f, 68.34448f, -2.3651733f), 137) { Fly = true }; obj47.Steps = list67; reference48 = obj47; - ref QuestSequence reference49 = ref span32[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -16872,7 +20217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1010611u, new Vector3(585.1987f, -2.4988298f, 221.85083f), 139) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010611u, new Vector3(585.1987f, -2.4988298f, 221.85083f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -16886,15 +20233,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list68; reference49 = obj48; - ref QuestSequence reference50 = ref span32[5]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list69)[0]; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137) { Fly = true, @@ -16910,7 +20260,9 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q2_000_000") @@ -16919,7 +20271,8 @@ public static class AssemblyQuestLoader reference51 = obj50; obj49.Steps = list69; reference50 = obj49; - ref QuestSequence reference52 = ref span32[6]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 6 @@ -16927,15 +20280,19 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list71)[0]; + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference53 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137 }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span6 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q3_000_000"), @@ -16945,15 +20302,18 @@ public static class AssemblyQuestLoader reference53 = obj52; obj51.Steps = list71; reference52 = obj51; - ref QuestSequence reference54 = ref span32[7]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(213) }; @@ -16966,13 +20326,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "xan"; questRoot9.Author = list74; - num = 6; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span34 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference55 = ref span34[0]; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -16980,8 +20343,9 @@ public static class AssemblyQuestLoader num2 = 3; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span35 = CollectionsMarshal.AsSpan(list76); - span35[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, Comment = "Gatekeep", @@ -16998,23 +20362,27 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 7886u }; - span35[2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj54.Steps = list76; reference55 = obj54; - ref QuestSequence reference56 = ref span34[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -17030,13 +20398,15 @@ public static class AssemblyQuestLoader } } }; - span36[1] = new QuestStep(EInteractionType.Action, 2004927u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2004927u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { Action = EAction.FumaShuriken }; obj55.Steps = list77; reference56 = obj55; - ref QuestSequence reference57 = ref span34[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -17044,25 +20414,32 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); obj56.Steps = list78; reference57 = obj56; - ref QuestSequence reference58 = ref span34[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); obj57.Steps = list79; reference58 = obj57; - span34[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference59 = ref span34[5]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -17070,7 +20447,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137) { NextQuestId = new QuestId(214) }; @@ -17083,21 +20462,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "xan"; questRoot10.Author = list81; - num = 2; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span37 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference60 = ref span37[0]; + index = 2; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010140u, new Vector3(-8.712891f, 39.590378f, 255.23767f), 137) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010140u, new Vector3(-8.712891f, 39.590378f, 255.23767f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -17110,7 +20494,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list83; reference60 = obj59; - ref QuestSequence reference61 = ref span37[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -17118,12 +20503,14 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span38 = CollectionsMarshal.AsSpan(list84); - span38[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137 }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(215) }; @@ -17136,22 +20523,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "xan"; questRoot11.Author = list85; - num = 8; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span39 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference62 = ref span39[0]; + index = 8; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span40 = CollectionsMarshal.AsSpan(list87); - span40[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17167,10 +20558,12 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj61.Steps = list87; reference62 = obj61; - ref QuestSequence reference63 = ref span39[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -17178,8 +20571,9 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span41 = CollectionsMarshal.AsSpan(list88); - span41[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -17195,24 +20589,29 @@ public static class AssemblyQuestLoader } } }; - span41[1] = new QuestStep(EInteractionType.Action, 2004928u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2004928u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { Action = EAction.Raiton }; obj62.Steps = list88; reference63 = obj62; - ref QuestSequence reference64 = ref span39[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); obj63.Steps = list89; reference64 = obj63; - ref QuestSequence reference65 = ref span39[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -17220,25 +20619,31 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Action, 2004929u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2004929u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { StopDistance = 7f, Action = EAction.Katon }; obj64.Steps = list90; reference65 = obj64; - ref QuestSequence reference66 = ref span39[4]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); obj65.Steps = list91; reference66 = obj65; - ref QuestSequence reference67 = ref span39[5]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 @@ -17246,8 +20651,9 @@ public static class AssemblyQuestLoader num2 = 2; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span42 = CollectionsMarshal.AsSpan(list92); - ref QuestStep reference68 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj67 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.71924f, 32.11566f, -14.989758f), 138) { TargetTerritoryId = (ushort)139, @@ -17259,36 +20665,45 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 139; + span7 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span7[index3] = 139; skipStepConditions.InTerritory = list93; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 139; + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span7 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span7[num3] = 139; skipAetheryteCondition.InTerritory = list94; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj67.SkipConditions = skipConditions2; reference68 = obj67; - span42[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) { Fly = true }; obj66.Steps = list92; reference67 = obj66; - ref QuestSequence reference69 = ref span39[6]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139); obj68.Steps = list95; reference69 = obj68; - ref QuestSequence reference70 = ref span39[7]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -17296,8 +20711,9 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span43 = CollectionsMarshal.AsSpan(list96); - span43[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17313,7 +20729,8 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(216) }; @@ -17326,22 +20743,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "xan"; questRoot12.Author = list97; - num = 2; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span44 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference71 = ref span44[0]; + index = 2; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span45 = CollectionsMarshal.AsSpan(list99); - span45[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17357,12 +20778,15 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference72 = ref span45[1]; + num2++; + ref QuestStep reference72 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN400_00216_Q1_000_000"), @@ -17372,7 +20796,8 @@ public static class AssemblyQuestLoader reference72 = questStep5; obj70.Steps = list99; reference71 = obj70; - ref QuestSequence reference73 = ref span44[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -17380,7 +20805,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -17401,21 +20828,26 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "xan"; questRoot13.Author = list102; - num = 7; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span46 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference74 = ref span46[0]; + index = 7; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -17428,7 +20860,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list104; reference74 = obj72; - ref QuestSequence reference75 = ref span46[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -17436,45 +20869,53 @@ public static class AssemblyQuestLoader num2 = 4; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span47 = CollectionsMarshal.AsSpan(list105); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) { Mount = false }; - span47[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(463.8162f, 12.86743f, 59.443794f) } }; - span47[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(456.10245f, 12.277541f, 65.88876f) } }; - span47[3] = new QuestStep(EInteractionType.Interact, 2004930u, new Vector3(439.78027f, 12.161377f, 70.54236f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004930u, new Vector3(439.78027f, 12.161377f, 70.54236f), 139); obj73.Steps = list105; reference75 = obj73; - ref QuestSequence reference76 = ref span46[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span48 = CollectionsMarshal.AsSpan(list106); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(441.9759f, 4.122239f, 81.76867f), 139) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(441.9759f, 4.122239f, 81.76867f), 139) { DisableNavmesh = true }; - span48[1] = new QuestStep(EInteractionType.Interact, 1010622u, new Vector3(488.365f, 16.907331f, 86.71704f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010622u, new Vector3(488.365f, 16.907331f, 86.71704f), 139); obj74.Steps = list106; reference76 = obj74; - ref QuestSequence reference77 = ref span46[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -17482,40 +20923,48 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1010623u, new Vector3(413.47375f, 3.6090105f, 76.21875f), 139); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010623u, new Vector3(413.47375f, 3.6090105f, 76.21875f), 139); obj75.Steps = list107; reference77 = obj75; - ref QuestSequence reference78 = ref span46[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span49 = CollectionsMarshal.AsSpan(list108); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) + index2 = 4; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) { Mount = false }; - span49[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(463.8162f, 12.86743f, 59.443794f) } }; - span49[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(456.10245f, 12.277541f, 65.88876f) } }; - span49[3] = new QuestStep(EInteractionType.Interact, 1010621u, new Vector3(441.94702f, 15.396649f, 65.659546f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010621u, new Vector3(441.94702f, 15.396649f, 65.659546f), 139); obj76.Steps = list108; reference78 = obj76; - ref QuestSequence reference79 = ref span46[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -17523,7 +20972,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004931u, new Vector3(305.5924f, -25.0401f, 229.63293f), 138) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004931u, new Vector3(305.5924f, -25.0401f, 229.63293f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -17536,16 +20987,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list109; reference79 = obj77; - ref QuestSequence reference80 = ref span46[6]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span50 = CollectionsMarshal.AsSpan(list110); - span50[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17561,7 +21014,8 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(232) }; @@ -17574,13 +21028,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "Cacahuetes"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span51 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference81 = ref span51[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -17588,8 +21045,9 @@ public static class AssemblyQuestLoader num2 = 3; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span52 = CollectionsMarshal.AsSpan(list113); - ref QuestStep reference82 = ref span52[0]; + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj80 = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -17605,28 +21063,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 133; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span7 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span7[num3] = 133; obj81.InTerritory = list114; skipConditions3.AetheryteShortcutIf = obj81; obj80.SkipConditions = skipConditions3; reference82 = obj80; - span52[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); - span52[2] = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); obj79.Steps = list113; reference81 = obj79; - ref QuestSequence reference83 = ref span51[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span53 = CollectionsMarshal.AsSpan(list115); - ref QuestStep reference84 = ref span53[0]; + index2 = 3; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -17639,38 +21103,53 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - ref ComplexCombatData reference85 = ref CollectionsMarshal.AsSpan(list116)[0]; + span9 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + ref ComplexCombatData reference85 = ref span9[index3]; ComplexCombatData obj84 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - num4 = 6; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span54 = CollectionsMarshal.AsSpan(list117); - span54[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = null; + num5 = 6; + List list117 = new List(num5); + CollectionsMarshal.SetCount(list117, num5); + span5 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj84.CompletionQuestVariablesFlags = list117; reference85 = obj84; obj83.ComplexCombatData = list116; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span55 = CollectionsMarshal.AsSpan(list118); - span55[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = null; + index3 = 6; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + span5 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span5[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj83.CompletionQuestVariablesFlags = list118; reference84 = obj83; - ref QuestStep reference86 = ref span53[1]; + num2++; + ref QuestStep reference86 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -17678,7 +21157,9 @@ public static class AssemblyQuestLoader num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - ref ComplexCombatData reference87 = ref CollectionsMarshal.AsSpan(list119)[0]; + span9 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + ref ComplexCombatData reference87 = ref span9[index3]; ComplexCombatData obj86 = new ComplexCombatData { DataId = 49u, @@ -17687,29 +21168,42 @@ public static class AssemblyQuestLoader num4 = 6; List list120 = new List(num4); CollectionsMarshal.SetCount(list120, num4); - Span span56 = CollectionsMarshal.AsSpan(list120); - span56[0] = null; - span56[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = null; + span5 = CollectionsMarshal.AsSpan(list120); + num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj86.CompletionQuestVariablesFlags = list120; reference87 = obj86; obj85.ComplexCombatData = list119; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span57 = CollectionsMarshal.AsSpan(list121); - span57[0] = null; - span57[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span5 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj85.CompletionQuestVariablesFlags = list121; reference86 = obj85; - ref QuestStep reference88 = ref span53[2]; + num2++; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -17717,40 +21211,55 @@ public static class AssemblyQuestLoader num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - ref ComplexCombatData reference89 = ref CollectionsMarshal.AsSpan(list122)[0]; + span9 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + ref ComplexCombatData reference89 = ref span9[index3]; ComplexCombatData obj88 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span58 = CollectionsMarshal.AsSpan(list123); - span58[0] = null; - span58[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + num5 = 6; + List list123 = new List(num5); + CollectionsMarshal.SetCount(list123, num5); + span5 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj88.CompletionQuestVariablesFlags = list123; reference89 = obj88; obj87.ComplexCombatData = list122; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span59 = CollectionsMarshal.AsSpan(list124); - span59[0] = null; - span59[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span5 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj87.CompletionQuestVariablesFlags = list124; reference88 = obj87; obj82.Steps = list115; reference83 = obj82; - ref QuestSequence reference90 = ref span51[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -17758,7 +21267,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -17777,21 +21288,26 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "pot0to"; questRoot15.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span60 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference91 = ref span60[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -17809,7 +21325,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list128; reference91 = obj90; - ref QuestSequence reference92 = ref span60[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -17817,8 +21334,9 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span61 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference93 = ref span61[0]; + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(117.47766f, 17.661993f, -247.24017f), 148) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -17832,8 +21350,9 @@ public static class AssemblyQuestLoader num3 = 2; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span62 = CollectionsMarshal.AsSpan(list130); - ref ComplexCombatData reference94 = ref span62[0]; + span9 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + ref ComplexCombatData reference94 = ref span9[index3]; ComplexCombatData obj93 = new ComplexCombatData { DataId = 37u, @@ -17842,31 +21361,44 @@ public static class AssemblyQuestLoader num4 = 6; List list131 = new List(num4); CollectionsMarshal.SetCount(list131, num4); - Span span63 = CollectionsMarshal.AsSpan(list131); - span63[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = null; + span5 = CollectionsMarshal.AsSpan(list131); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj93.CompletionQuestVariablesFlags = list131; reference94 = obj93; - ref ComplexCombatData reference95 = ref span62[1]; + index3++; + ref ComplexCombatData reference95 = ref span9[index3]; ComplexCombatData obj94 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list132 = new List(num4); - CollectionsMarshal.SetCount(list132, num4); - Span span64 = CollectionsMarshal.AsSpan(list132); - span64[0] = null; - span64[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = null; + num5 = 6; + List list132 = new List(num5); + CollectionsMarshal.SetCount(list132, num5); + span5 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj94.CompletionQuestVariablesFlags = list132; reference95 = obj94; obj92.ComplexCombatData = list130; @@ -17875,34 +21407,45 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = 148; + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span7 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span7[num3] = 148; obj95.InTerritory = list133; skipConditions4.AetheryteShortcutIf = obj95; obj92.SkipConditions = skipConditions4; num3 = 6; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span65 = CollectionsMarshal.AsSpan(list134); - span65[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span65[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = null; + span5 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj92.CompletionQuestVariablesFlags = list134; reference93 = obj92; - ref QuestStep reference96 = ref span61[1]; + index2++; + ref QuestStep reference96 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new ComplexCombatData + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + span9 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span9[num3] = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u @@ -17911,26 +21454,35 @@ public static class AssemblyQuestLoader num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span66 = CollectionsMarshal.AsSpan(list136); - span66[0] = null; - span66[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = null; + span5 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj96.CompletionQuestVariablesFlags = list136; reference96 = obj96; obj91.Steps = list129; reference92 = obj91; - ref QuestSequence reference97 = ref span60[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -17957,13 +21509,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "xan"; questRoot16.Author = list138; - num = 12; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span67 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference98 = ref span67[0]; + index = 12; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -17971,8 +21526,9 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span68 = CollectionsMarshal.AsSpan(list140); - span68[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17988,19 +21544,22 @@ public static class AssemblyQuestLoader } } }; - span68[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj98.Steps = list140; reference98 = obj98; - ref QuestSequence reference99 = ref span67[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span69 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference100 = ref span69[0]; + index2 = 2; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-116.833f, 70.279f, 47.983f), 137) { TargetTerritoryId = (ushort)134, @@ -18009,36 +21568,44 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 134; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span7 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span7[num3] = 134; skipStepConditions2.InTerritory = list142; skipConditions5.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = 134; + span7 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span7[index3] = 134; skipAetheryteCondition2.InTerritory = list143; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition2; obj100.SkipConditions = skipConditions5; reference100 = obj100; - ref QuestStep reference101 = ref span69[1]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, 1010573u, new Vector3(-188.46423f, 30.723186f, -685.1759f), 134) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = 3572u; + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span10 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span10[num3] = 3572u; obj101.KillEnemyDataIds = list144; reference101 = obj101; obj99.Steps = list141; reference99 = obj99; - ref QuestSequence reference102 = ref span67[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -18046,19 +21613,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1010627u, new Vector3(-189.65442f, 30.837437f, -685.298f), 134); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010627u, new Vector3(-189.65442f, 30.837437f, -685.298f), 134); obj102.Steps = list145; reference102 = obj102; - ref QuestSequence reference103 = ref span67[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span70 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference104 = ref span70[0]; + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj104 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(246.007f, 56.384f, 839.334f), 137) { TargetTerritoryId = (ushort)135, @@ -18070,22 +21641,27 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = 135; + span7 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span7[index3] = 135; skipStepConditions3.InTerritory = list147; skipConditions6.StepIf = skipStepConditions3; SkipAetheryteCondition obj105 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = 135; + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span7 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span7[num3] = 135; obj105.InTerritory = list148; skipConditions6.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions6; reference104 = obj104; - ref QuestStep reference105 = ref span70[1]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 1010571u, new Vector3(491.05054f, 68.14364f, -198.50464f), 135) { Fly = true, @@ -18094,12 +21670,15 @@ public static class AssemblyQuestLoader num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = 3573u; + span10 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span10[index3] = 3573u; obj106.KillEnemyDataIds = list149; reference105 = obj106; obj103.Steps = list146; reference103 = obj103; - ref QuestSequence reference106 = ref span67[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -18107,28 +21686,35 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 2005006u, new Vector3(492.88147f, 68.955444f, -197.58905f), 135); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005006u, new Vector3(492.88147f, 68.955444f, -197.58905f), 135); obj107.Steps = list150; reference106 = obj107; - ref QuestSequence reference107 = ref span67[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, 1010575u, new Vector3(516.68555f, 9.414734f, 351.12524f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = 3572u; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span10 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span10[num3] = 3572u; obj109.KillEnemyDataIds = list152; obj109.SkipConditions = new SkipConditions { @@ -18140,7 +21726,8 @@ public static class AssemblyQuestLoader reference108 = obj109; obj108.Steps = list151; reference107 = obj108; - ref QuestSequence reference109 = ref span67[6]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 @@ -18148,18 +21735,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2005007u, new Vector3(515.5565f, 9.47583f, 349.93518f), 137); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005007u, new Vector3(515.5565f, 9.47583f, 349.93518f), 137); obj110.Steps = list153; reference109 = obj110; - ref QuestSequence reference110 = ref span67[7]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, 1010572u, new Vector3(209.21643f, -2.0700505f, 260.3036f), 139) { Fly = true, @@ -18169,7 +21761,9 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 3573u; + span10 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span10[index3] = 3573u; obj112.KillEnemyDataIds = list155; obj112.SkipConditions = new SkipConditions { @@ -18181,7 +21775,8 @@ public static class AssemblyQuestLoader reference111 = obj112; obj111.Steps = list154; reference110 = obj111; - ref QuestSequence reference112 = ref span67[8]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 8 @@ -18189,27 +21784,34 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 2005008u, new Vector3(208.27039f, -2.0905762f, 259.84583f), 139); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005008u, new Vector3(208.27039f, -2.0905762f, 259.84583f), 139); obj113.Steps = list156; reference112 = obj113; - ref QuestSequence reference113 = ref span67[9]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list157)[0]; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference114 = ref span3[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, 1010574u, new Vector3(-76.98181f, 64.50076f, -241.56561f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 3572u; + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span10 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span10[num3] = 3572u; obj115.KillEnemyDataIds = list158; obj115.SkipConditions = new SkipConditions { @@ -18221,7 +21823,8 @@ public static class AssemblyQuestLoader reference114 = obj115; obj114.Steps = list157; reference113 = obj114; - ref QuestSequence reference115 = ref span67[10]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 10 @@ -18229,19 +21832,23 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 2005009u, new Vector3(-77.195435f, 64.49988f, -240.71112f), 180); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005009u, new Vector3(-77.195435f, 64.49988f, -240.71112f), 180); obj116.Steps = list159; reference115 = obj116; - ref QuestSequence reference116 = ref span67[11]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span71 = CollectionsMarshal.AsSpan(list160); - ref QuestStep reference117 = ref span71[0]; + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep obj118 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-116.833f, 70.279f, 47.983f), 137) { TargetTerritoryId = (ushort)134, @@ -18253,22 +21860,27 @@ public static class AssemblyQuestLoader num3 = 1; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = 134; + span7 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span7[index3] = 134; skipStepConditions4.InTerritory = list161; skipConditions7.StepIf = skipStepConditions4; SkipAetheryteCondition obj119 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 134; + index3 = 1; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + span7 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span7[num3] = 134; obj119.InTerritory = list162; skipConditions7.AetheryteShortcutIf = obj119; obj118.SkipConditions = skipConditions7; reference117 = obj118; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 2004932u, new Vector3(-182.81836f, 30.533203f, -684.93176f), 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2004932u, new Vector3(-182.81836f, 30.533203f, -684.93176f), 134) { Fly = true, NextQuestId = new QuestId(233) @@ -18282,13 +21894,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "xan"; questRoot17.Author = list163; - num = 5; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span72 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference118 = ref span72[0]; + index = 5; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -18296,7 +21911,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010628u, new Vector3(-189.01355f, 30.937378f, -687.2816f), 134) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010628u, new Vector3(-189.01355f, 30.937378f, -687.2816f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, @@ -18310,15 +21927,18 @@ public static class AssemblyQuestLoader }; obj120.Steps = list165; reference118 = obj120; - ref QuestSequence reference119 = ref span72[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1010629u, new Vector3(-8.712891f, 39.580772f, 258.2589f), 137) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010629u, new Vector3(-8.712891f, 39.580772f, 258.2589f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18332,7 +21952,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list166; reference119 = obj121; - ref QuestSequence reference120 = ref span72[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -18340,24 +21961,30 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010630u, new Vector3(-70.93927f, 36.04747f, 475.66956f), 137) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010630u, new Vector3(-70.93927f, 36.04747f, 475.66956f), 137) { Fly = true }; obj122.Steps = list167; reference120 = obj122; - ref QuestSequence reference121 = ref span72[3]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1010631u, new Vector3(-68.95557f, 36.05801f, 471.4275f), 137); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010631u, new Vector3(-68.95557f, 36.05801f, 471.4275f), 137); obj123.Steps = list168; reference121 = obj123; - ref QuestSequence reference122 = ref span72[4]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -18365,8 +21992,9 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span73 = CollectionsMarshal.AsSpan(list169); - span73[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18382,7 +22010,8 @@ public static class AssemblyQuestLoader } } }; - span73[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(234) }; @@ -18395,22 +22024,26 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "xan"; questRoot18.Author = list170; - num = 7; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span74 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference123 = ref span74[0]; + index = 7; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span75 = CollectionsMarshal.AsSpan(list172); - span75[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18426,10 +22059,12 @@ public static class AssemblyQuestLoader } } }; - span75[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj125.Steps = list172; reference123 = obj125; - ref QuestSequence reference124 = ref span74[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -18437,12 +22072,16 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list173)[0]; + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference125 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1010632u, new Vector3(-33.76825f, -24.674442f, 250.32422f), 137); num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN500_00234_Q1_000_000"), @@ -18452,16 +22091,18 @@ public static class AssemblyQuestLoader reference125 = questStep6; obj126.Steps = list173; reference124 = obj126; - ref QuestSequence reference126 = ref span74[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span76 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference127 = ref span76[0]; + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference127 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.71924f, 32.11566f, -14.989758f), 138) { TargetTerritoryId = (ushort)139, @@ -18470,30 +22111,37 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 139; + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + span7 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span7[num3] = 139; skipStepConditions5.InTerritory = list176; skipConditions8.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = 139; + span7 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span7[index3] = 139; skipAetheryteCondition3.InTerritory = list177; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition3; obj128.SkipConditions = skipConditions8; reference127 = obj128; - ref QuestStep reference128 = ref span76[1]; + num2++; + ref QuestStep reference128 = ref span3[num2]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1010633u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) { Fly = true }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + span6 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN500_00234_Q2_000_000"), @@ -18503,7 +22151,8 @@ public static class AssemblyQuestLoader reference128 = obj129; obj127.Steps = list175; reference126 = obj127; - ref QuestSequence reference129 = ref span74[3]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 @@ -18511,18 +22160,23 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1010634u, new Vector3(-560.0519f, -1.7964863f, -14.572449f), 139); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010634u, new Vector3(-560.0519f, -1.7964863f, -14.572449f), 139); obj130.Steps = list179; reference129 = obj130; - ref QuestSequence reference130 = ref span74[4]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1002515u, new Vector3(-10.421997f, 8.921356f, 831.6013f), 135) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002515u, new Vector3(-10.421997f, 8.921356f, 831.6013f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -18536,7 +22190,8 @@ public static class AssemblyQuestLoader }; obj131.Steps = list180; reference130 = obj131; - ref QuestSequence reference131 = ref span74[5]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 @@ -18544,22 +22199,26 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004935u, new Vector3(19.943481f, 42.923584f, 855.46655f), 135) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004935u, new Vector3(19.943481f, 42.923584f, 855.46655f), 135) { Fly = true }; obj132.Steps = list181; reference131 = obj132; - ref QuestSequence reference132 = ref span74[6]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span77 = CollectionsMarshal.AsSpan(list182); - span77[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18575,7 +22234,8 @@ public static class AssemblyQuestLoader } } }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(235) }; @@ -18588,13 +22248,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "xan"; questRoot19.Author = list183; - num = 8; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span78 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference133 = ref span78[0]; + index = 8; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -18602,8 +22265,9 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span79 = CollectionsMarshal.AsSpan(list185); - span79[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18619,19 +22283,22 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj134.Steps = list185; reference133 = obj134; - ref QuestSequence reference134 = ref span78[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span80 = CollectionsMarshal.AsSpan(list186); - span80[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -18662,10 +22329,12 @@ public static class AssemblyQuestLoader } } }; - span80[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj135.Steps = list186; reference134 = obj135; - ref QuestSequence reference135 = ref span78[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -18673,7 +22342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1013884u, new Vector3(172.8999f, 95.27325f, -202.92981f), 134) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013884u, new Vector3(172.8999f, 95.27325f, -202.92981f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, SkipConditions = new SkipConditions @@ -18686,18 +22357,22 @@ public static class AssemblyQuestLoader }; obj136.Steps = list187; reference135 = obj136; - ref QuestSequence reference136 = ref span78[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 2005921u, new Vector3(30.990967f, 60.65454f, -205.40173f), 134); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005921u, new Vector3(30.990967f, 60.65454f, -205.40173f), 134); obj137.Steps = list188; reference136 = obj137; - ref QuestSequence reference137 = ref span78[4]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 @@ -18705,21 +22380,27 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 2005922u, new Vector3(-90.37921f, 43.045654f, -308.30853f), 134); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005922u, new Vector3(-90.37921f, 43.045654f, -308.30853f), 134); obj138.Steps = list189; reference137 = obj138; - ref QuestSequence reference138 = ref span78[5]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 2005923u, new Vector3(-148.02783f, 20.309753f, -339.40643f), 134); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005923u, new Vector3(-148.02783f, 20.309753f, -339.40643f), 134); obj139.Steps = list190; reference138 = obj139; - ref QuestSequence reference139 = ref span78[6]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 6 @@ -18727,19 +22408,23 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1013892u, new Vector3(-19.241638f, 12.516694f, -462.66882f), 134); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013892u, new Vector3(-19.241638f, 12.516694f, -462.66882f), 134); obj140.Steps = list191; reference139 = obj140; - ref QuestSequence reference140 = ref span78[7]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span81 = CollectionsMarshal.AsSpan(list192); - span81[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18755,7 +22440,8 @@ public static class AssemblyQuestLoader } } }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1684) }; @@ -18768,13 +22454,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; questRoot20.Author = list193; - num = 12; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span82 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference141 = ref span82[0]; + index = 12; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -18782,7 +22471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -18795,21 +22486,25 @@ public static class AssemblyQuestLoader }; obj142.Steps = list195; reference141 = obj142; - ref QuestSequence reference142 = ref span82[1]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj143.Steps = list196; reference142 = obj143; - ref QuestSequence reference143 = ref span82[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -18817,30 +22512,36 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span83 = CollectionsMarshal.AsSpan(list197); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.4774f, 62.89536f, -207.31602f), 140) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.4774f, 62.89536f, -207.31602f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - span83[1] = new QuestStep(EInteractionType.Interact, 2004847u, new Vector3(323.62854f, 62.974f, -207.90424f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004847u, new Vector3(323.62854f, 62.974f, -207.90424f), 140); obj144.Steps = list197; reference143 = obj144; - ref QuestSequence reference144 = ref span82[3]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj145.Steps = list198; reference144 = obj145; - ref QuestSequence reference145 = ref span82[4]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 4 @@ -18848,7 +22549,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131) + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131) { AethernetShortcut = new AethernetShortcut { @@ -18858,18 +22561,22 @@ public static class AssemblyQuestLoader }; obj146.Steps = list199; reference145 = obj146; - ref QuestSequence reference146 = ref span82[5]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131); obj147.Steps = list200; reference146 = obj147; - ref QuestSequence reference147 = ref span82[6]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 6 @@ -18877,7 +22584,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -18887,24 +22596,28 @@ public static class AssemblyQuestLoader }; obj148.Steps = list201; reference147 = obj148; - ref QuestSequence reference148 = ref span82[7]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span84 = CollectionsMarshal.AsSpan(list202); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span84[1] = new QuestStep(EInteractionType.Interact, 1010341u, new Vector3(-89.40265f, -11.35f, -40.146484f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010341u, new Vector3(-89.40265f, -11.35f, -40.146484f), 141); obj149.Steps = list202; reference148 = obj149; - ref QuestSequence reference149 = ref span82[8]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 8 @@ -18912,28 +22625,34 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj150.Steps = list203; reference149 = obj150; - ref QuestSequence reference150 = ref span82[9]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1010342u, new Vector3(-189.50183f, 16.85818f, -418.8449f), 141) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010342u, new Vector3(-189.50183f, 16.85818f, -418.8449f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj151.Steps = list204; reference150 = obj151; - ref QuestSequence reference151 = ref span82[10]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 10 @@ -18941,7 +22660,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1010346u, new Vector3(-207.44641f, 18.499998f, 73.899414f), 130) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010346u, new Vector3(-207.44641f, 18.499998f, 73.899414f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -18952,15 +22673,18 @@ public static class AssemblyQuestLoader }; obj152.Steps = list205; reference151 = obj152; - ref QuestSequence reference152 = ref span82[11]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -18978,13 +22702,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot21.Author = list207; - num = 6; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span85 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference153 = ref span85[0]; + index = 6; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -18992,7 +22719,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -19010,24 +22739,28 @@ public static class AssemblyQuestLoader }; obj154.Steps = list209; reference153 = obj154; - ref QuestSequence reference154 = ref span85[1]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span86 = CollectionsMarshal.AsSpan(list210); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span86[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj155.Steps = list210; reference154 = obj155; - ref QuestSequence reference155 = ref span85[2]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -19035,35 +22768,42 @@ public static class AssemblyQuestLoader num2 = 3; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span87 = CollectionsMarshal.AsSpan(list211); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Mount = true }; - span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.51706f, 48.854584f, 462.12476f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.51706f, 48.854584f, 462.12476f), 137) { Fly = true }; - span87[2] = new QuestStep(EInteractionType.Interact, 2004858u, new Vector3(-252.76575f, 49.66809f, 460.71558f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004858u, new Vector3(-252.76575f, 49.66809f, 460.71558f), 137); obj156.Steps = list211; reference155 = obj156; - ref QuestSequence reference156 = ref span85[3]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span88 = CollectionsMarshal.AsSpan(list212); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - span88[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj157.Steps = list212; reference156 = obj157; - ref QuestSequence reference157 = ref span85[4]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -19071,32 +22811,37 @@ public static class AssemblyQuestLoader num2 = 3; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span89 = CollectionsMarshal.AsSpan(list213); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Mount = true }; - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.36604f, 70.192245f, 746.02716f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.36604f, 70.192245f, 746.02716f), 137) { Fly = true }; - span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.5895f, 95.61268f, -497.8778f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.5895f, 95.61268f, -497.8778f), 135) { Fly = true, RestartNavigationIfCancelled = true }; obj158.Steps = list213; reference157 = obj158; - ref QuestSequence reference158 = ref span85[5]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span90 = CollectionsMarshal.AsSpan(list214); - ref QuestStep reference159 = ref span90[0]; + index2 = 2; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(569.87854f, 95.62417f, -498.10028f), 135) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -19104,18 +22849,24 @@ public static class AssemblyQuestLoader num3 = 3; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span91 = CollectionsMarshal.AsSpan(list215); - span91[0] = 2861u; - span91[1] = 3563u; - span91[2] = 3562u; + span10 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span10[index3] = 2861u; + index3++; + span10[index3] = 3563u; + index3++; + span10[index3] = 3562u; obj160.KillEnemyDataIds = list215; reference159 = obj160; - ref QuestStep reference160 = ref span90[1]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1010370u, new Vector3(569.87854f, 95.62417f, -498.10028f), 135); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = new DialogueChoice + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + span6 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST021_00241_Q1_000_000"), @@ -19133,13 +22884,16 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; questRoot22.Author = list217; - num = 9; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span92 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference161 = ref span92[0]; + index = 9; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 @@ -19147,7 +22901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -19165,15 +22921,18 @@ public static class AssemblyQuestLoader }; obj161.Steps = list219; reference161 = obj161; - ref QuestSequence reference162 = ref span92[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -19184,7 +22943,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list220; reference162 = obj162; - ref QuestSequence reference163 = ref span92[2]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -19192,21 +22952,27 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); obj163.Steps = list221; reference163 = obj163; - ref QuestSequence reference164 = ref span92[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj164.Steps = list222; reference164 = obj164; - ref QuestSequence reference165 = ref span92[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 4 @@ -19214,77 +22980,109 @@ public static class AssemblyQuestLoader num2 = 4; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span93 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference166 = ref span93[0]; + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference166 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); num3 = 6; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span94 = CollectionsMarshal.AsSpan(list224); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list224; reference166 = questStep8; - ref QuestStep reference167 = ref span93[1]; + index2++; + ref QuestStep reference167 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1001294u, new Vector3(-214.22144f, 18.5f, 72.129395f), 130); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span95 = CollectionsMarshal.AsSpan(list225); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + span5 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list225; reference167 = questStep9; - ref QuestStep reference168 = ref span93[2]; + index2++; + ref QuestStep reference168 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001289u, new Vector3(-207.90424f, 18.5f, 70.7865f), 130); num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span96 = CollectionsMarshal.AsSpan(list226); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list226; reference168 = questStep10; - ref QuestStep reference169 = ref span93[3]; + index2++; + ref QuestStep reference169 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); - num3 = 6; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span97 = CollectionsMarshal.AsSpan(list227); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span5 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list227; reference169 = questStep11; obj165.Steps = list223; reference165 = obj165; - ref QuestSequence reference170 = ref span92[5]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj166.Steps = list228; reference170 = obj166; - ref QuestSequence reference171 = ref span92[6]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 6 @@ -19292,80 +23090,112 @@ public static class AssemblyQuestLoader num2 = 4; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span98 = CollectionsMarshal.AsSpan(list229); - ref QuestStep reference172 = ref span98[0]; + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + ref QuestStep reference172 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2004886u, new Vector3(-245.19727f, 19.150085f, 63.67578f), 130); num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span99 = CollectionsMarshal.AsSpan(list230); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list230; reference172 = questStep12; - ref QuestStep reference173 = ref span98[1]; + index2++; + ref QuestStep reference173 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2004885u, new Vector3(-206.50043f, 19.180542f, 49.94275f), 130); - num3 = 6; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span100 = CollectionsMarshal.AsSpan(list231); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + span5 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list231; reference173 = questStep13; - ref QuestStep reference174 = ref span98[2]; + index2++; + ref QuestStep reference174 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2004887u, new Vector3(-194.11005f, 19.150085f, 91.325195f), 130); num3 = 6; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - Span span101 = CollectionsMarshal.AsSpan(list232); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list232; reference174 = questStep14; - ref QuestStep reference175 = ref span98[3]; + index2++; + ref QuestStep reference175 = ref span3[index2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2004888u, new Vector3(-243.64087f, 20.065613f, 104.41736f), 130) { IgnoreDistanceToObject = true }; - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span102 = CollectionsMarshal.AsSpan(list233); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list233 = new List(index3); + CollectionsMarshal.SetCount(list233, index3); + span5 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list233; reference175 = obj168; obj167.Steps = list229; reference171 = obj167; - ref QuestSequence reference176 = ref span92[7]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj169.Steps = list234; reference176 = obj169; - ref QuestSequence reference177 = ref span92[8]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -19373,7 +23203,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004889u, new Vector3(-136.55304f, 11.9782715f, 23.5141f), 130) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2004889u, new Vector3(-136.55304f, 11.9782715f, 23.5141f), 130) { NextQuestId = new QuestId(1574) }; @@ -19386,21 +23218,26 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "liza"; questRoot23.Author = list236; - num = 8; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span103 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference178 = ref span103[0]; + index = 8; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -19413,7 +23250,8 @@ public static class AssemblyQuestLoader }; obj171.Steps = list238; reference178 = obj171; - ref QuestSequence reference179 = ref span103[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -19421,27 +23259,33 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1001787u, new Vector3(-62.119568f, 18.000334f, 9.414734f), 129); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001787u, new Vector3(-62.119568f, 18.000334f, 9.414734f), 129); obj172.Steps = list239; reference179 = obj172; - ref QuestSequence reference180 = ref span103[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span104 = CollectionsMarshal.AsSpan(list240); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span104[1] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); obj173.Steps = list240; reference180 = obj173; - ref QuestSequence reference181 = ref span103[3]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -19449,29 +23293,35 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span105 = CollectionsMarshal.AsSpan(list241); - span105[0] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) { TargetTerritoryId = (ushort)139 }; - span105[1] = new QuestStep(EInteractionType.Interact, 1010434u, new Vector3(241.74866f, -0.96623325f, 257.12976f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010434u, new Vector3(241.74866f, -0.96623325f, 257.12976f), 139); obj174.Steps = list241; reference181 = obj174; - ref QuestSequence reference182 = ref span103[4]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) { Fly = true }; obj175.Steps = list242; reference182 = obj175; - ref QuestSequence reference183 = ref span103[5]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 @@ -19479,8 +23329,9 @@ public static class AssemblyQuestLoader num2 = 2; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span106 = CollectionsMarshal.AsSpan(list243); - ref QuestStep reference184 = ref span106[0]; + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + ref QuestStep reference184 = ref span3[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -19488,34 +23339,41 @@ public static class AssemblyQuestLoader num3 = 2; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span107 = CollectionsMarshal.AsSpan(list244); - span107[0] = 3559u; - span107[1] = 3560u; + span10 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span10[index3] = 3559u; + index3++; + span10[index3] = 3560u; obj177.KillEnemyDataIds = list244; reference184 = obj177; - span106[1] = new QuestStep(EInteractionType.Interact, 1010437u, new Vector3(271.59534f, 25.732939f, -100.35864f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010437u, new Vector3(271.59534f, 25.732939f, -100.35864f), 139) { Fly = true }; obj176.Steps = list243; reference183 = obj176; - ref QuestSequence reference185 = ref span103[6]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span108 = CollectionsMarshal.AsSpan(list245); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) + index2 = 2; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) { Fly = true }; - span108[1] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); obj178.Steps = list245; reference185 = obj178; - ref QuestSequence reference186 = ref span103[7]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -19523,12 +23381,14 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span109 = CollectionsMarshal.AsSpan(list246); - span109[0] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) { TargetTerritoryId = (ushort)139 }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1010438u, new Vector3(275.28796f, -0.93098116f, 231.61658f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010438u, new Vector3(275.28796f, -0.93098116f, 231.61658f), 139) { Fly = true, NextQuestId = new QuestId(244) @@ -19542,21 +23402,26 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "liza"; questRoot24.Author = list247; - num = 10; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span110 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference187 = ref span110[0]; + index = 10; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -19569,7 +23434,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list249; reference187 = obj180; - ref QuestSequence reference188 = ref span110[1]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -19577,27 +23443,33 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj181.Steps = list250; reference188 = obj181; - ref QuestSequence reference189 = ref span110[2]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.UseItem, 2004864u, new Vector3(-381.70447f, -58.42682f, 167.74243f), 145) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2004864u, new Vector3(-381.70447f, -58.42682f, 167.74243f), 145) { ItemId = 2001487u }; obj182.Steps = list251; reference189 = obj182; - ref QuestSequence reference190 = ref span110[3]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -19605,34 +23477,40 @@ public static class AssemblyQuestLoader num2 = 2; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span111 = CollectionsMarshal.AsSpan(list252); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) { Mount = true }; - span111[1] = new QuestStep(EInteractionType.Interact, 2004877u, new Vector3(-299.48883f, -40.665344f, 7.095398f), 145) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004877u, new Vector3(-299.48883f, -40.665344f, 7.095398f), 145) { Fly = true }; obj183.Steps = list252; reference190 = obj183; - ref QuestSequence reference191 = ref span110[4]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span112 = CollectionsMarshal.AsSpan(list253); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-422.0606f, -55.802967f, 107.502235f), 145) + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-422.0606f, -55.802967f, 107.502235f), 145) { Fly = true }; - span112[1] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145); obj184.Steps = list253; reference191 = obj184; - ref QuestSequence reference192 = ref span110[5]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -19640,30 +23518,37 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2004866u, new Vector3(-382.22327f, -58.42682f, 168.65796f), 145); + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004866u, new Vector3(-382.22327f, -58.42682f, 168.65796f), 145); obj185.Steps = list254; reference192 = obj185; - ref QuestSequence reference193 = ref span110[6]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span113 = CollectionsMarshal.AsSpan(list255); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) { Mount = true }; - span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.83288f, -17.544205f, 23.35826f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.83288f, -17.544205f, 23.35826f), 145) { Fly = true }; - span113[2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); obj186.Steps = list255; reference193 = obj186; - ref QuestSequence reference194 = ref span110[7]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 7 @@ -19671,36 +23556,43 @@ public static class AssemblyQuestLoader num2 = 3; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span114 = CollectionsMarshal.AsSpan(list256); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.4535733f, -8.0592985f, 1.7329537f), 145) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.4535733f, -8.0592985f, 1.7329537f), 145) { Mount = true }; - span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(435.9292f, 9.87471f, 143.03693f), 145) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(435.9292f, 9.87471f, 143.03693f), 145) { Fly = true }; - span114[2] = new QuestStep(EInteractionType.UseItem, 2004868u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2004868u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) { ItemId = 2001489u }; obj187.Steps = list256; reference194 = obj187; - ref QuestSequence reference195 = ref span110[8]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.UseItem, 2004869u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2004869u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) { ItemId = 2001488u }; obj188.Steps = list257; reference195 = obj188; - ref QuestSequence reference196 = ref span110[9]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -19708,7 +23600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010377u, new Vector3(-382.83362f, -59.300003f, 169.75659f), 145) + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010377u, new Vector3(-382.83362f, -59.300003f, 169.75659f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, NextQuestId = new QuestId(240) @@ -19722,24 +23616,30 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list259); + index = 0; + span[index] = "liza"; questRoot25.Author = list259; - num = 6; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span115 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference197 = ref span115[0]; + index = 6; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + span2 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj190.Steps = list261; reference197 = obj190; - ref QuestSequence reference198 = ref span115[1]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -19747,21 +23647,25 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span116 = CollectionsMarshal.AsSpan(list262); - ref QuestStep reference199 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference199 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = 129; + index3 = 1; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + span7 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span7[num3] = 129; skipStepConditions6.InTerritory = list263; skipConditions9.StepIf = skipStepConditions6; questStep15.SkipConditions = skipConditions9; questStep15.PickUpQuestId = new QuestId(1431); reference199 = questStep15; - span116[1] = new QuestStep(EInteractionType.Interact, 1003621u, new Vector3(-192.0653f, 0.9999907f, 208.66711f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003621u, new Vector3(-192.0653f, 0.9999907f, 208.66711f), 129) { AethernetShortcut = new AethernetShortcut { @@ -19778,32 +23682,38 @@ public static class AssemblyQuestLoader }; obj191.Steps = list262; reference198 = obj191; - ref QuestSequence reference200 = ref span115[2]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span117 = CollectionsMarshal.AsSpan(list264); - span117[0] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + index2 = 4; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)138 }; - span117[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaAleport }; - span117[2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002723u, new Vector3(298.63428f, -25.004364f, 233.14258f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002723u, new Vector3(298.63428f, -25.004364f, 233.14258f), 138) { TaxiStandId = (byte)24 }; - span117[3] = new QuestStep(EInteractionType.Interact, 1017075u, new Vector3(356.5575f, -15.97664f, 136.73608f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017075u, new Vector3(356.5575f, -15.97664f, 136.73608f), 138); obj192.Steps = list264; reference200 = obj192; - ref QuestSequence reference201 = ref span115[3]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 @@ -19811,7 +23721,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1004472u, new Vector3(335.40857f, 9.635179f, 17.135864f), 138) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004472u, new Vector3(335.40857f, 9.635179f, 17.135864f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -19824,15 +23736,18 @@ public static class AssemblyQuestLoader }; obj193.Steps = list265; reference201 = obj193; - ref QuestSequence reference202 = ref span115[4]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Duty, null, null, 138) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 138) { DutyOptions = new DutyOptions { @@ -19842,7 +23757,8 @@ public static class AssemblyQuestLoader }; obj194.Steps = list266; reference202 = obj194; - ref QuestSequence reference203 = ref span115[5]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -19850,7 +23766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -19869,18 +23787,19 @@ public static class AssemblyQuestLoader { QuestId questId = new QuestId(253); QuestRoot questRoot = new QuestRoot(); - int num = 2; + int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = "liza"; - span[1] = "Wigglez"; + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); Span span2 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span2[0]; + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -19888,73 +23807,78 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { - AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut { - From = EAetheryteLocation.Uldah, + From = EAetheryteLocation.UldahAdventurers, To = EAetheryteLocation.UldahGladiator + }, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } } }; - SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj3 = new SkipAetheryteCondition - { - InSameTerritory = true - }; int num3 = 1; - List list4 = new List(num3); + List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 131; - obj3.InTerritory = list4; - skipConditions.AetheryteShortcutIf = obj3; - obj2.SkipConditions = skipConditions; - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA020_00253_Q1_000_1") }; - obj2.DialogueChoices = list5; + obj2.DialogueChoices = list4; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span2[1]; - QuestSequence obj4 = new QuestSequence + num++; + ref QuestSequence reference3 = ref span2[num]; + QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA020_00253_Q2_000_1") }; - questStep.DialogueChoices = list7; + questStep.DialogueChoices = list6; reference4 = questStep; - obj4.Steps = list6; - reference3 = obj4; - ref QuestSequence reference5 = ref span2[2]; - QuestSequence obj5 = new QuestSequence + obj3.Steps = list5; + reference3 = obj3; + num++; + ref QuestSequence reference5 = ref span2[num]; + QuestSequence obj4 = new QuestSequence { Sequence = 2 }; num2 = 4; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference6 = ref span3[0]; - QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; + QuestStep obj5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) { AethernetShortcut = new AethernetShortcut { @@ -19962,154 +23886,180 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - SkipConditions skipConditions2 = new SkipConditions(); + SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); 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; - ref QuestStep reference7 = ref span3[1]; - QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-74.7536f, 9.131219f, 278.35217f), 141) + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span5 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span5[index3] = 141; + skipStepConditions.InTerritory = list8; + skipConditions.StepIf = skipStepConditions; + obj5.SkipConditions = skipConditions; + reference6 = obj5; + index2++; + ref QuestStep reference7 = ref span3[index2]; + QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(-116.10664f, 10.801613f, 276.979f), 141) { - DelaySecondsAtStart = 2f, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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(); - 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; + index3 = 2; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span6 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + ref ComplexCombatData reference8 = ref span6[num3]; + ComplexCombatData obj7 = new ComplexCombatData + { + DataId = 351u, + MinimumKillCount = 3u + }; + int num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span7 = CollectionsMarshal.AsSpan(list10); + int num5 = 0; + span7[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + obj7.CompletionQuestVariablesFlags = list10; + reference8 = obj7; + num3++; + ref ComplexCombatData reference9 = ref span6[num3]; + ComplexCombatData obj8 = new ComplexCombatData + { + DataId = 141u, + MinimumKillCount = 3u + }; + num5 = 6; + List list11 = new List(num5); + CollectionsMarshal.SetCount(list11, num5); + span7 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + obj8.CompletionQuestVariablesFlags = list11; + reference9 = obj8; + obj6.ComplexCombatData = list9; 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; - ref QuestStep reference8 = ref span3[2]; - QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(-74.7536f, 9.131219f, 278.35217f), 141) + span7 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span7[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + obj6.CompletionQuestVariablesFlags = list12; + reference7 = obj6; + index2++; + ref QuestStep reference10 = ref span3[index2]; + QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.635372f, 3.2401803f, 273.41232f), 141) { - DelaySecondsAtStart = 2f, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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(); - 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; + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + span6 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + ref ComplexCombatData reference11 = ref span6[num3]; + ComplexCombatData obj10 = new ComplexCombatData + { + DataId = 205u, + MinimumKillCount = 3u + }; + num4 = 6; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + span7 = CollectionsMarshal.AsSpan(list14); + num5 = 0; + span7[num5] = null; + num5++; + span7[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + obj10.CompletionQuestVariablesFlags = list14; + reference11 = obj10; + obj9.ComplexCombatData = list13; 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; - 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 - }; - 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(); - 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; - 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; - ref QuestSequence reference10 = ref span2[3]; - QuestSequence obj10 = new QuestSequence + span7 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + obj9.CompletionQuestVariablesFlags = list15; + reference10 = obj9; + index2++; + ref QuestStep reference12 = ref span3[index2]; + QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.17538f, 18.35357f, 341.3039f), 141); + SkipConditions skipConditions2 = new SkipConditions(); + SkipStepConditions skipStepConditions2 = new SkipStepConditions(); + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = 141; + skipStepConditions2.NotInTerritory = list16; + skipConditions2.StepIf = skipStepConditions2; + questStep2.SkipConditions = skipConditions2; + reference12 = questStep2; + obj4.Steps = list7; + reference5 = obj4; + num++; + ref QuestSequence reference13 = ref span2[num]; + QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference11 = ref span10[0]; - QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.17538f, 18.35357f, 341.3039f), 141); - SkipConditions skipConditions6 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 141; - skipStepConditions5.NotInTerritory = list20; - skipConditions6.StepIf = skipStepConditions5; - questStep2.SkipConditions = skipConditions6; - reference11 = questStep2; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -20118,31 +24068,668 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(256) }; - obj10.Steps = list19; - reference10 = obj10; + obj11.Steps = list17; + reference13 = obj11; questRoot.QuestSequence = list2; AddQuest(questId, questRoot); QuestId questId2 = new QuestId(256); QuestRoot questRoot2 = new QuestRoot(); num = 1; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; - questRoot2.Author = list21; - num = 9; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span11 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference12 = ref span11[0]; - QuestSequence obj11 = new QuestSequence + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; + questRoot2.Author = list18; + index = 9; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span2[num]; + QuestSequence obj12 = new QuestSequence { Sequence = 0 }; 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) + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; + QuestStep obj13 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + { + AetheryteShortcut = EAetheryteLocation.Uldah, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Uldah, + To = EAetheryteLocation.UldahGladiator + } + }; + SkipConditions skipConditions3 = new SkipConditions(); + SkipAetheryteCondition obj14 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + span5 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span5[index3] = 131; + obj14.InTerritory = list21; + skipConditions3.AetheryteShortcutIf = obj14; + obj13.SkipConditions = skipConditions3; + reference15 = obj13; + obj12.Steps = list20; + reference14 = obj12; + num++; + ref QuestSequence reference16 = ref span2[num]; + QuestSequence obj15 = new QuestSequence + { + Sequence = 1 + }; + index2 = 4; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference17 = ref span3[num2]; + QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1003990u, new Vector3(77.25635f, 4.0999947f, -138.62823f), 130) + { + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.UldahGladiator, + To = EAetheryteLocation.UldahAdventurers + }, + Emote = EEmote.Me + }; + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span7 = CollectionsMarshal.AsSpan(list23); + 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); + obj16.CompletionQuestVariablesFlags = list23; + reference17 = obj16; + num2++; + ref QuestStep reference18 = ref span3[num2]; + QuestStep obj17 = new QuestStep(EInteractionType.Emote, 1003984u, new Vector3(45.029297f, 3.9999998f, -128.16058f), 130) + { + Emote = EEmote.Me + }; + num3 = 6; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + span7 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj17.CompletionQuestVariablesFlags = list24; + reference18 = obj17; + num2++; + ref QuestStep reference19 = ref span3[num2]; + QuestStep obj18 = new QuestStep(EInteractionType.Emote, 1003992u, new Vector3(12.191956f, 4.0999947f, -155.53528f), 130) + { + Emote = EEmote.Me + }; + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span7 = CollectionsMarshal.AsSpan(list25); + 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); + obj18.CompletionQuestVariablesFlags = list25; + reference19 = obj18; + num2++; + ref QuestStep reference20 = ref span3[num2]; + QuestStep obj19 = new QuestStep(EInteractionType.Emote, 1003994u, new Vector3(15.976135f, 7.9999995f, -124.071106f), 130) + { + Emote = EEmote.Me + }; + num3 = 6; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + span7 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj19.CompletionQuestVariablesFlags = list26; + reference20 = obj19; + obj15.Steps = list22; + reference16 = obj15; + num++; + ref QuestSequence reference21 = ref span2[num]; + QuestSequence obj20 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1004222u, new Vector3(21.927185f, 7.1999974f, -97.39838f), 130) + { + Emote = EEmote.Me + }; + obj20.Steps = list27; + reference21 = obj20; + num++; + ref QuestSequence reference22 = ref span2[num]; + QuestSequence obj21 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + obj21.Steps = list28; + reference22 = obj21; + num++; + ref QuestSequence reference23 = ref span2[num]; + QuestSequence obj22 = new QuestSequence + { + Sequence = 4 + }; + num2 = 1; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + { + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.UldahAdventurers, + To = EAetheryteLocation.UldahGladiator + } + }; + obj22.Steps = list29; + reference23 = obj22; + num++; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj23 = new QuestSequence + { + Sequence = 5 + }; + index2 = 3; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.70276f, 7.7544775f, 9.123527f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.00035f, 13.958975f, -13.998203f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); + obj23.Steps = list30; + reference24 = obj23; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj24 = new QuestSequence + { + Sequence = 6 + }; + num2 = 2; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference26 = ref span3[index2]; + QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2001408u, new Vector3(154.37549f, 52.536743f, 200.91553f), 140) + { + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span8 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span8[num3] = 1246u; + obj25.KillEnemyDataIds = list32; + num3 = 6; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + span7 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj25.CompletionQuestVariablesFlags = list33; + reference26 = obj25; + index2++; + ref QuestStep reference27 = ref span3[index2]; + QuestStep obj26 = new QuestStep(EInteractionType.Combat, 2001409u, new Vector3(141.83252f, 52.994507f, 221.54565f), 140) + { + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + index3 = 1; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + span8 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span8[num3] = 1390u; + obj26.KillEnemyDataIds = list34; + num3 = 6; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + span7 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj26.CompletionQuestVariablesFlags = list35; + reference27 = obj26; + obj24.Steps = list31; + reference25 = obj24; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj27 = new QuestSequence + { + Sequence = 7 + }; + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); + obj27.Steps = list36; + reference28 = obj27; + num++; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj28 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 3; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.74796f, 96.62057f, 159.993f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.06801f, 9.195247f, 9.181297f), 130); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); + obj28.Steps = list37; + reference29 = obj28; + questRoot2.QuestSequence = list19; + AddQuest(questId2, questRoot2); + QuestId questId3 = new QuestId(261); + QuestRoot questRoot3 = new QuestRoot(); + num = 1; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "Cacahuetes"; + questRoot3.Author = list38; + index = 7; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj29 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; + QuestStep obj30 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + { + AetheryteShortcut = EAetheryteLocation.Uldah, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Uldah, + To = EAetheryteLocation.UldahGladiator + } + }; + SkipConditions skipConditions4 = new SkipConditions(); + SkipAetheryteCondition obj31 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 1; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + span5 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span5[num3] = 131; + obj31.InTerritory = list41; + skipConditions4.AetheryteShortcutIf = obj31; + obj30.SkipConditions = skipConditions4; + reference31 = obj30; + obj29.Steps = list40; + reference30 = obj29; + num++; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj32 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; + QuestStep obj33 = new QuestStep(EInteractionType.Combat, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141) + { + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.UldahGladiator, + To = EAetheryteLocation.UldahGateOfNald + }, + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + span8 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span8[index3] = 1245u; + obj33.KillEnemyDataIds = list43; + reference33 = obj33; + obj32.Steps = list42; + reference32 = obj32; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj34 = new QuestSequence + { + Sequence = 2 + }; + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); + obj34.Steps = list44; + reference34 = obj34; + num++; + ref QuestSequence reference35 = ref span2[num]; + QuestSequence obj35 = new QuestSequence + { + Sequence = 3 + }; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference36 = ref span3[index2]; + QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + { + AetheryteShortcut = EAetheryteLocation.Uldah, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Uldah, + To = EAetheryteLocation.UldahGladiator + } + }; + SkipConditions skipConditions5 = new SkipConditions(); + SkipAetheryteCondition obj37 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = 131; + obj37.InTerritory = list46; + skipConditions5.AetheryteShortcutIf = obj37; + obj36.SkipConditions = skipConditions5; + reference36 = obj36; + obj35.Steps = list45; + reference35 = obj35; + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj38 = new QuestSequence + { + Sequence = 4 + }; + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001426u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) + { + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.UldahGladiator, + To = EAetheryteLocation.UldahGateOfNald + } + }; + obj38.Steps = list47; + reference37 = obj38; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj39 = new QuestSequence + { + Sequence = 5 + }; + num2 = 1; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) + { + StopDistance = 5f + }; + obj39.Steps = list48; + reference38 = obj39; + num++; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj40 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + { + AetheryteShortcut = EAetheryteLocation.Uldah, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Uldah, + To = EAetheryteLocation.UldahGladiator + } + }; + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + span4 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span4[index3] = new DialogueChoice + { + Type = EDialogChoiceType.List, + Prompt = new ExcelRef("TEXT_CLSGLA100_00261_Q1_000_160"), + Answer = new ExcelRef("TEXT_CLSGLA100_00261_A1_000_161") + }; + obj41.DialogueChoices = list50; + obj41.NextQuestId = new QuestId(262); + reference40 = obj41; + obj40.Steps = list49; + reference39 = obj40; + questRoot3.QuestSequence = list39; + AddQuest(questId3, questRoot3); + QuestId questId4 = new QuestId(262); + QuestRoot questRoot4 = new QuestRoot(); + num = 1; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "Cacahuetes"; + questRoot4.Author = list51; + index = 6; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj42 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference42 = ref span3[index2]; + QuestStep obj43 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + { + AetheryteShortcut = EAetheryteLocation.Uldah, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Uldah, + To = EAetheryteLocation.UldahGladiator + } + }; + SkipConditions skipConditions6 = new SkipConditions(); + SkipAetheryteCondition obj44 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = 131; + obj44.InTerritory = list54; + skipConditions6.AetheryteShortcutIf = obj44; + obj43.SkipConditions = skipConditions6; + reference42 = obj43; + obj42.Steps = list53; + reference41 = obj42; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj45 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref QuestStep reference44 = ref span3[num2]; + QuestStep obj46 = new QuestStep(EInteractionType.Combat, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145) + { + AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + span8 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span8[index3] = 1244u; + obj46.KillEnemyDataIds = list56; + reference44 = obj46; + obj45.Steps = list55; + reference43 = obj45; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj47 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list57 = new List(num2); + CollectionsMarshal.SetCount(list57, num2); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145); + obj47.Steps = list57; + reference45 = obj47; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj48 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference47 = ref span3[num2]; + QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -20152,264 +24739,93 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions7 = new SkipConditions(); - SkipAetheryteCondition obj13 = new SkipAetheryteCondition + SkipAetheryteCondition obj50 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference14 = ref span11[1]; - QuestSequence obj14 = new QuestSequence + index3 = 1; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + span5 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span5[num3] = 131; + obj50.InTerritory = list59; + skipConditions7.AetheryteShortcutIf = obj50; + obj49.SkipConditions = skipConditions7; + reference47 = obj49; + obj48.Steps = list58; + reference46 = obj48; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { - Sequence = 1 + Sequence = 4 }; - 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) + num2 = 1; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004091u, new Vector3(24.12439f, 7.1999984f, -102.76953f), 130) { AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.UldahGladiator, To = EAetheryteLocation.UldahAdventurers - }, - Emote = EEmote.Me + } }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span13 = CollectionsMarshal.AsSpan(list26); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj15.CompletionQuestVariablesFlags = list26; - reference15 = obj15; - ref QuestStep reference16 = ref span12[1]; - QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1003984u, new Vector3(45.029297f, 3.9999998f, -128.16058f), 130) + obj51.Steps = list60; + reference48 = obj51; + num++; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { - Emote = EEmote.Me + Sequence = byte.MaxValue }; - 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; - 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 - }; - 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; - 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 - }; - 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; - ref QuestSequence reference19 = ref span11[2]; - QuestSequence obj19 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Emote, 1004222u, new Vector3(21.927185f, 7.1999974f, -97.39838f), 130) - { - Emote = EEmote.Me - }; - obj19.Steps = list30; - reference19 = obj19; - ref QuestSequence reference20 = ref span11[3]; - QuestSequence obj20 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); - obj20.Steps = list31; - reference20 = obj20; - ref QuestSequence reference21 = ref span11[4]; - QuestSequence obj21 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.UldahAdventurers, To = EAetheryteLocation.UldahGladiator - } + }, + NextQuestId = new QuestId(263) }; - obj21.Steps = list32; - reference21 = obj21; - ref QuestSequence reference22 = ref span11[5]; - QuestSequence obj22 = new QuestSequence - { - Sequence = 5 - }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span17 = CollectionsMarshal.AsSpan(list33); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.70276f, 7.7544775f, 9.123527f), 131); - span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.00035f, 13.958975f, -13.998203f), 130); - span17[2] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); - obj22.Steps = list33; - reference22 = obj22; - ref QuestSequence reference23 = ref span11[6]; - QuestSequence obj23 = new QuestSequence - { - Sequence = 6 - }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span18 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference24 = ref span18[0]; - QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2001408u, new Vector3(154.37549f, 52.536743f, 200.91553f), 140) - { - EnemySpawnType = EEnemySpawnType.AfterInteraction - }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 1246u; - obj24.KillEnemyDataIds = list35; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span19 = CollectionsMarshal.AsSpan(list36); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj24.CompletionQuestVariablesFlags = list36; - reference24 = obj24; - 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 - }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 1390u; - obj25.KillEnemyDataIds = list37; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span20 = CollectionsMarshal.AsSpan(list38); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj25.CompletionQuestVariablesFlags = list38; - reference25 = obj25; - obj23.Steps = list34; - reference23 = obj23; - ref QuestSequence reference26 = ref span11[7]; - QuestSequence obj26 = new QuestSequence - { - Sequence = 7 - }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); - obj26.Steps = list39; - reference26 = obj26; - ref QuestSequence reference27 = ref span11[8]; - QuestSequence obj27 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 3; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span21 = CollectionsMarshal.AsSpan(list40); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.74796f, 96.62057f, 159.993f), 140); - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.06801f, 9.195247f, 9.181297f), 130); - span21[2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - obj27.Steps = list40; - reference27 = obj27; - questRoot2.QuestSequence = list22; - AddQuest(questId2, questRoot2); - QuestId questId3 = new QuestId(261); - QuestRoot questRoot3 = new QuestRoot(); + obj52.Steps = list61; + reference49 = obj52; + questRoot4.QuestSequence = list52; + AddQuest(questId4, questRoot4); + QuestId questId5 = new QuestId(263); + QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "Cacahuetes"; - questRoot3.Author = list41; - num = 7; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span22 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference28 = ref span22[0]; - QuestSequence obj28 = new QuestSequence + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "Cacahuetes"; + questRoot5.Author = list62; + index = 8; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference50 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 0 }; 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) + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; + QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -20419,451 +24835,158 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions8 = new SkipConditions(); - SkipAetheryteCondition obj30 = new SkipAetheryteCondition + SkipAetheryteCondition obj55 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference30 = ref span22[1]; - QuestSequence obj31 = new QuestSequence + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + span5 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span5[index3] = 131; + obj55.InTerritory = list65; + skipConditions8.AetheryteShortcutIf = obj55; + obj54.SkipConditions = skipConditions8; + reference51 = obj54; + obj53.Steps = list64; + reference50 = obj53; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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 - { - From = EAetheryteLocation.UldahGladiator, - To = EAetheryteLocation.UldahGateOfNald - }, - EnemySpawnType = EEnemySpawnType.AfterInteraction - }; - 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; - ref QuestSequence reference32 = ref span22[2]; - QuestSequence obj33 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); - obj33.Steps = list47; - reference32 = obj33; - ref QuestSequence reference33 = ref span22[3]; - QuestSequence obj34 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list48)[0]; - QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Uldah, - To = EAetheryteLocation.UldahGladiator - } - }; - SkipConditions skipConditions9 = new SkipConditions(); - SkipAetheryteCondition obj36 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference35 = ref span22[4]; - QuestSequence obj37 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001426u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.UldahGladiator, - To = EAetheryteLocation.UldahGateOfNald - } - }; - obj37.Steps = list50; - reference35 = obj37; - ref QuestSequence reference36 = ref span22[5]; - QuestSequence obj38 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) - { - StopDistance = 5f - }; - obj38.Steps = list51; - reference36 = obj38; - ref QuestSequence reference37 = ref span22[6]; - QuestSequence obj39 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list52)[0]; - QuestStep obj40 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Uldah, - To = EAetheryteLocation.UldahGladiator - } - }; - 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"), - Answer = new ExcelRef("TEXT_CLSGLA100_00261_A1_000_161") - }; - obj40.DialogueChoices = list53; - obj40.NextQuestId = new QuestId(262); - reference38 = obj40; - obj39.Steps = list52; - reference37 = obj39; - questRoot3.QuestSequence = list42; - AddQuest(questId3, questRoot3); - QuestId questId4 = new QuestId(262); - QuestRoot questRoot4 = new QuestRoot(); - num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "Cacahuetes"; - questRoot4.Author = list54; - num = 6; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span23 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference39 = ref span23[0]; - QuestSequence obj41 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list56)[0]; - QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Uldah, - To = EAetheryteLocation.UldahGladiator - } - }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipAetheryteCondition obj43 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference41 = ref span23[1]; - QuestSequence obj44 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list58)[0]; - QuestStep obj45 = new QuestStep(EInteractionType.Combat, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145) - { - AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, - EnemySpawnType = EEnemySpawnType.AfterInteraction - }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 1244u; - obj45.KillEnemyDataIds = list59; - reference42 = obj45; - obj44.Steps = list58; - reference41 = obj44; - ref QuestSequence reference43 = ref span23[2]; - QuestSequence obj46 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145); - obj46.Steps = list60; - reference43 = obj46; - ref QuestSequence reference44 = ref span23[3]; - QuestSequence obj47 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list61)[0]; - QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Uldah, - To = EAetheryteLocation.UldahGladiator - } - }; - SkipConditions skipConditions11 = new SkipConditions(); - SkipAetheryteCondition obj49 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference46 = ref span23[4]; - QuestSequence obj50 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004091u, new Vector3(24.12439f, 7.1999984f, -102.76953f), 130) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.UldahGladiator, - To = EAetheryteLocation.UldahAdventurers - } - }; - obj50.Steps = list63; - reference46 = obj50; - ref QuestSequence reference47 = ref span23[5]; - QuestSequence obj51 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.UldahAdventurers, - To = EAetheryteLocation.UldahGladiator - }, - NextQuestId = new QuestId(263) - }; - obj51.Steps = list64; - reference47 = obj51; - questRoot4.QuestSequence = list55; - AddQuest(questId4, questRoot4); - QuestId questId5 = new QuestId(263); - QuestRoot questRoot5 = new QuestRoot(); - num = 1; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Cacahuetes"; - questRoot5.Author = list65; - num = 8; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span24 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference48 = ref span24[0]; - QuestSequence obj52 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list67)[0]; - QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Uldah, - To = EAetheryteLocation.UldahGladiator - } - }; - SkipConditions skipConditions12 = new SkipConditions(); - SkipAetheryteCondition obj54 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference50 = ref span24[1]; - QuestSequence obj55 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - obj55.Steps = list69; - reference50 = obj55; - ref QuestSequence reference51 = ref span24[2]; - QuestSequence obj56 = new QuestSequence + obj56.Steps = list66; + reference52 = obj56; + num++; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span25 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference52 = ref span25[0]; + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1001462u, new Vector3(-93.33948f, -11.367981f, -41.397766f), 141); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span26 = CollectionsMarshal.AsSpan(list71); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list71; - reference52 = questStep3; - ref QuestStep reference53 = ref span25[1]; + index3 = 6; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + span7 = CollectionsMarshal.AsSpan(list68); + 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); + questStep3.CompletionQuestVariablesFlags = list68; + reference54 = questStep3; + index2++; + ref QuestStep reference55 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1001438u, new Vector3(-30.838562f, -1.0332576f, -145.67792f), 141); num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span27 = CollectionsMarshal.AsSpan(list72); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list72; - reference53 = questStep4; - ref QuestStep reference54 = ref span25[2]; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + span7 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list69; + reference55 = questStep4; + index2++; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001434u, new Vector3(-115.77026f, 0.015197754f, -149.24854f), 141); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span28 = CollectionsMarshal.AsSpan(list73); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list73; - reference54 = questStep5; - obj56.Steps = list70; - reference51 = obj56; - ref QuestSequence reference55 = ref span24[3]; - QuestSequence obj57 = new QuestSequence + index3 = 6; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + span7 = CollectionsMarshal.AsSpan(list70); + 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); + questStep5.CompletionQuestVariablesFlags = list70; + reference56 = questStep5; + obj57.Steps = list67; + reference53 = obj57; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141); - obj57.Steps = list74; - reference55 = obj57; - ref QuestSequence reference56 = ref span24[4]; - QuestSequence obj58 = new QuestSequence + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141); + obj58.Steps = list71; + reference57 = obj58; + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - obj58.Steps = list75; - reference56 = obj58; - ref QuestSequence reference57 = ref span24[5]; - QuestSequence obj59 = new QuestSequence + obj59.Steps = list72; + reference58 = obj59; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 5 }; - 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) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; + QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -20872,27 +24995,32 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + span4 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA200_00263_Q1_000_124"), Answer = new ExcelRef("TEXT_CLSGLA200_00263_A1_000_125") }; - obj60.DialogueChoices = list77; - reference58 = obj60; - obj59.Steps = list76; - reference57 = obj59; - ref QuestSequence reference59 = ref span24[6]; - QuestSequence obj61 = new QuestSequence + obj61.DialogueChoices = list74; + reference60 = obj61; + obj60.Steps = list73; + reference59 = obj60; + num++; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004092u, new Vector3(-241.16882f, 32.47634f, 398.9165f), 140) + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004092u, new Vector3(-241.16882f, 32.47634f, 398.9165f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -20901,17 +25029,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfTheSultana } }; - obj61.Steps = list78; - reference59 = obj61; - ref QuestSequence reference60 = ref span24[7]; - QuestSequence obj62 = new QuestSequence + obj62.Steps = list75; + reference61 = obj62; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -20921,31 +25052,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(264) }; - obj62.Steps = list79; - reference60 = obj62; - questRoot5.QuestSequence = list66; + obj63.Steps = list76; + reference62 = obj63; + questRoot5.QuestSequence = list63; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(264); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "Cacahuetes"; - questRoot6.Author = list80; - num = 7; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span29 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference61 = ref span29[0]; - QuestSequence obj63 = new QuestSequence + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "Cacahuetes"; + questRoot6.Author = list77; + index = 7; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 0 }; 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) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; + QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -20954,31 +25090,36 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - SkipConditions skipConditions13 = new SkipConditions(); - SkipAetheryteCondition obj65 = new SkipAetheryteCondition + SkipConditions skipConditions9 = new SkipConditions(); + SkipAetheryteCondition obj66 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference63 = ref span29[1]; - QuestSequence obj66 = new QuestSequence + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span5 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span5[num3] = 131; + obj66.InTerritory = list80; + skipConditions9.AetheryteShortcutIf = obj66; + obj65.SkipConditions = skipConditions9; + reference64 = obj65; + obj64.Steps = list79; + reference63 = obj64; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; + QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -20989,33 +25130,41 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; 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; - ref QuestSequence reference65 = ref span29[2]; - QuestSequence obj68 = new QuestSequence + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + span8 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span8[index3] = 1243u; + obj68.KillEnemyDataIds = list82; + reference66 = obj68; + obj67.Steps = list81; + reference65 = obj67; + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140); - obj68.Steps = list86; - reference65 = obj68; - ref QuestSequence reference66 = ref span29[3]; - QuestSequence obj69 = new QuestSequence + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140); + obj69.Steps = list83; + reference67 = obj69; + num++; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21024,54 +25173,65 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - obj69.Steps = list87; - reference66 = obj69; - ref QuestSequence reference67 = ref span29[4]; - QuestSequence obj70 = new QuestSequence + obj70.Steps = list84; + reference68 = obj70; + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); - obj70.Steps = list88; - reference67 = obj70; - ref QuestSequence reference68 = ref span29[5]; - QuestSequence obj71 = new QuestSequence + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); + obj71.Steps = list85; + reference69 = obj71; + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - 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) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; + QuestStep obj73 = new QuestStep(EInteractionType.SinglePlayerDuty, 1004141u, new Vector3(-520.5005f, -21.460285f, 123.46069f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span4 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA250_00264_Q1_000_170"), Answer = new ExcelRef("TEXT_CLSGLA250_00264_A1_000_180") }; - obj72.DialogueChoices = list90; - reference69 = obj72; - obj71.Steps = list89; - reference68 = obj71; - ref QuestSequence reference70 = ref span29[6]; - QuestSequence obj73 = new QuestSequence + obj73.DialogueChoices = list87; + reference71 = obj73; + obj72.Steps = list86; + reference70 = obj72; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21081,31 +25241,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(265) }; - obj73.Steps = list91; - reference70 = obj73; - questRoot6.QuestSequence = list81; + obj74.Steps = list88; + reference72 = obj74; + questRoot6.QuestSequence = list78; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(265); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "Cacahuetes"; - questRoot7.Author = list92; - num = 6; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span30 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference71 = ref span30[0]; - QuestSequence obj74 = new QuestSequence + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "Cacahuetes"; + questRoot7.Author = list89; + index = 6; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; + QuestStep obj76 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21114,31 +25279,36 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipAetheryteCondition obj76 = new SkipAetheryteCondition + SkipConditions skipConditions10 = new SkipConditions(); + SkipAetheryteCondition obj77 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference73 = ref span30[1]; - QuestSequence obj77 = new QuestSequence + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + span5 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span5[index3] = 131; + obj77.InTerritory = list92; + skipConditions10.AetheryteShortcutIf = obj77; + obj76.SkipConditions = skipConditions10; + reference74 = obj76; + obj75.Steps = list91; + reference73 = obj75; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 1 }; 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) + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference76 = ref span3[index2]; + QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -21146,29 +25316,33 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Uldah } }; - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span4 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA300_00265_Q1_000_40"), Answer = new ExcelRef("TEXT_CLSGLA300_00265_A1_000_50") }; - obj78.DialogueChoices = list97; - reference74 = obj78; - obj77.Steps = list96; - reference73 = obj77; - ref QuestSequence reference75 = ref span30[2]; - QuestSequence obj79 = new QuestSequence + obj79.DialogueChoices = list94; + reference76 = obj79; + obj78.Steps = list93; + reference75 = obj78; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span31 = CollectionsMarshal.AsSpan(list98); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.23369f, 2.747214f, 673.64215f), 141) + index2 = 5; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.23369f, 2.747214f, 673.64215f), 141) { AethernetShortcut = new AethernetShortcut { @@ -21183,7 +25357,8 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -21194,7 +25369,8 @@ public static class AssemblyQuestLoader } } }; - span31[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.30618f, 4.2185926f, -585.2695f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.30618f, 4.2185926f, -585.2695f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -21205,47 +25381,64 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference76 = ref span31[3]; + num2++; + ref QuestStep reference78 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2001455u, new Vector3(28.091797f, 6.9733276f, -611.2917f), 146); num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span32 = CollectionsMarshal.AsSpan(list99); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list99; - reference76 = questStep6; - ref QuestStep reference77 = ref span31[4]; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + span7 = CollectionsMarshal.AsSpan(list96); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list96; + reference78 = questStep6; + num2++; + ref QuestStep reference79 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001435u, new Vector3(101.823364f, 7.248047f, -534.56934f), 146); - num3 = 6; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span33 = CollectionsMarshal.AsSpan(list100); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list100; - reference77 = questStep7; - obj79.Steps = list98; - reference75 = obj79; - ref QuestSequence reference78 = ref span30[3]; - QuestSequence obj80 = new QuestSequence + index3 = 6; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + span7 = CollectionsMarshal.AsSpan(list97); + 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); + questStep7.CompletionQuestVariablesFlags = list97; + reference79 = questStep7; + obj80.Steps = list95; + reference77 = obj80; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span34 = CollectionsMarshal.AsSpan(list101); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.75665f, 3.3963587f, -585.49005f), 146); - span34[1] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.75665f, 3.3963587f, -585.49005f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21254,35 +25447,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - obj80.Steps = list101; - reference78 = obj80; - ref QuestSequence reference79 = ref span30[4]; - QuestSequence obj81 = new QuestSequence + obj81.Steps = list98; + reference80 = obj81; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004142u, new Vector3(-19.97406f, -30.999985f, -33.951355f), 145) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004142u, new Vector3(-19.97406f, -30.999985f, -33.951355f), 145) { - AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, - SinglePlayerDutyOptions = new SinglePlayerDutyOptions - { - Enabled = true - } + AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - obj81.Steps = list102; - reference79 = obj81; - ref QuestSequence reference80 = ref span30[5]; - QuestSequence obj82 = new QuestSequence + obj82.Steps = list99; + reference81 = obj82; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21292,88 +25487,105 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1055) }; - obj82.Steps = list103; - reference80 = obj82; - questRoot7.QuestSequence = list93; + obj83.Steps = list100; + reference82 = obj83; + questRoot7.QuestSequence = list90; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(271); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "Cacahuetes"; - questRoot8.Author = list104; - num = 2; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span35 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference81 = ref span35[0]; - QuestSequence obj83 = new QuestSequence + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "Cacahuetes"; + questRoot8.Author = list101; + index = 2; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128); - obj83.Steps = list106; - reference81 = obj83; - ref QuestSequence reference82 = ref span35[1]; - QuestSequence obj84 = new QuestSequence + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128); + obj84.Steps = list103; + reference83 = obj84; + num++; + ref QuestSequence reference84 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list107)[0]; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + ref QuestStep reference85 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1000947u, new Vector3(-54.64258f, 44f, -151.23218f), 128); num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + span4 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCUL011_00271_Q1_000_1") }; - questStep8.DialogueChoices = list108; - reference83 = questStep8; - obj84.Steps = list107; - reference82 = obj84; - questRoot8.QuestSequence = list105; + questStep8.DialogueChoices = list105; + reference85 = questStep8; + obj85.Steps = list104; + reference84 = obj85; + questRoot8.QuestSequence = list102; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(272); QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; - questRoot9.Author = list109; - num = 3; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span36 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference84 = ref span36[0]; - QuestSequence obj85 = new QuestSequence + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "liza"; + questRoot9.Author = list106; + index = 3; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj85.Steps = list111; - reference84 = obj85; - ref QuestSequence reference85 = ref span36[1]; - QuestSequence obj86 = new QuestSequence + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj86.Steps = list108; + reference86 = obj86; + num++; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span37 = CollectionsMarshal.AsSpan(list112); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.7922537f, 8.206551f, -274.32318f), 141) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.7922537f, 8.206551f, -274.32318f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -21393,167 +25605,202 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141) { PickUpQuestId = new QuestId(638) }; - span37[2] = new QuestStep(EInteractionType.Interact, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); - obj86.Steps = list112; - reference85 = obj86; - ref QuestSequence reference86 = ref span36[2]; - QuestSequence obj87 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); + obj87.Steps = list109; + reference87 = obj87; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span38 = CollectionsMarshal.AsSpan(list113); - span38[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 5; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span38[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span38[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span38[4] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj87.Steps = list113; - reference86 = obj87; - questRoot9.QuestSequence = list110; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj88.Steps = list110; + reference88 = obj88; + questRoot9.QuestSequence = list107; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(273); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "Cacahuetes"; - questRoot10.Author = list114; - num = 2; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span39 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference87 = ref span39[0]; - QuestSequence obj88 = new QuestSequence + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "Cacahuetes"; + questRoot10.Author = list111; + index = 2; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128); - obj88.Steps = list116; - reference87 = obj88; - ref QuestSequence reference88 = ref span39[1]; - QuestSequence obj89 = new QuestSequence + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128); + obj89.Steps = list113; + reference89 = obj89; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list117)[0]; + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + index3 = 1; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARM011_00273_Q1_000_1") }; - questStep9.DialogueChoices = list118; - reference89 = questStep9; - obj89.Steps = list117; - reference88 = obj89; - questRoot10.QuestSequence = list115; + questStep9.DialogueChoices = list115; + reference91 = questStep9; + obj90.Steps = list114; + reference90 = obj90; + questRoot10.QuestSequence = list112; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(285); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; - questRoot11.Author = list119; - num = 2; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span40 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference90 = ref span40[0]; - QuestSequence obj90 = new QuestSequence + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "liza"; + questRoot11.Author = list116; + index = 2; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); - obj90.Steps = list121; - reference90 = obj90; - ref QuestSequence reference91 = ref span40[1]; - QuestSequence obj91 = new QuestSequence + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); + obj91.Steps = list118; + reference92 = obj91; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list122)[0]; + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + span4 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA011_00285_Q2_000_1") }; - questStep10.DialogueChoices = list123; + questStep10.DialogueChoices = list120; questStep10.NextQuestId = new QuestId(286); - reference92 = questStep10; - obj91.Steps = list122; - reference91 = obj91; - questRoot11.QuestSequence = list120; + reference94 = questStep10; + obj92.Steps = list119; + reference93 = obj92; + questRoot11.QuestSequence = list117; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(286); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; - questRoot12.Author = list124; - num = 3; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span41 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference93 = ref span41[0]; - QuestSequence obj92 = new QuestSequence + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "liza"; + questRoot12.Author = list121; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - obj92.Steps = list126; - reference93 = obj92; - ref QuestSequence reference94 = ref span41[1]; - QuestSequence obj93 = new QuestSequence + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); + obj93.Steps = list123; + reference95 = obj93; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span42 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference95 = ref span42[0]; - QuestStep obj94 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) + index2 = 3; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; + QuestStep obj95 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) { AethernetShortcut = new AethernetShortcut { @@ -21561,124 +25808,165 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - 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; - ref QuestStep reference96 = ref span42[1]; - QuestStep obj95 = new QuestStep(EInteractionType.Combat, null, new Vector3(-116.10664f, 10.801613f, 276.979f), 141) + SkipConditions skipConditions11 = new SkipConditions(); + SkipStepConditions skipStepConditions3 = new SkipStepConditions(); + index3 = 1; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span5 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span5[num3] = 141; + skipStepConditions3.InTerritory = list125; + skipConditions11.StepIf = skipStepConditions3; + obj95.SkipConditions = skipConditions11; + reference97 = obj95; + num2++; + ref QuestStep reference98 = ref span3[num2]; + QuestStep obj96 = new QuestStep(EInteractionType.Combat, null, new Vector3(-116.10664f, 10.801613f, 276.979f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 2; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span43 = CollectionsMarshal.AsSpan(list129); - ref ComplexCombatData reference97 = ref span43[0]; - ComplexCombatData obj96 = new ComplexCombatData + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + span6 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + ref ComplexCombatData reference99 = ref span6[index3]; + ComplexCombatData obj97 = new ComplexCombatData { DataId = 351u, MinimumKillCount = 3u }; - int num4 = 6; - List list130 = new List(num4); - CollectionsMarshal.SetCount(list130, num4); - Span span44 = CollectionsMarshal.AsSpan(list130); - span44[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = null; - obj96.CompletionQuestVariablesFlags = list130; - reference97 = obj96; - ref ComplexCombatData reference98 = ref span43[1]; - ComplexCombatData obj97 = new ComplexCombatData + num5 = 6; + List list127 = new List(num5); + CollectionsMarshal.SetCount(list127, num5); + span7 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + obj97.CompletionQuestVariablesFlags = list127; + reference99 = obj97; + index3++; + ref ComplexCombatData reference100 = ref span6[index3]; + ComplexCombatData obj98 = new ComplexCombatData { DataId = 141u, MinimumKillCount = 3u }; num4 = 6; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span45 = CollectionsMarshal.AsSpan(list131); - span45[0] = null; - span45[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = null; - obj97.CompletionQuestVariablesFlags = list131; - reference98 = obj97; - obj95.ComplexCombatData = list129; - num3 = 6; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span46 = CollectionsMarshal.AsSpan(list132); - span46[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span46[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = null; - obj95.CompletionQuestVariablesFlags = list132; - reference96 = obj95; - ref QuestStep reference99 = ref span42[2]; - QuestStep obj98 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.635372f, 3.2401803f, 273.41232f), 141) + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + span7 = CollectionsMarshal.AsSpan(list128); + num5 = 0; + span7[num5] = null; + num5++; + span7[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + obj98.CompletionQuestVariablesFlags = list128; + reference100 = obj98; + obj96.ComplexCombatData = list126; + index3 = 6; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span7 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span7[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + obj96.CompletionQuestVariablesFlags = list129; + reference98 = obj96; + num2++; + ref QuestStep reference101 = ref span3[num2]; + QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.635372f, 3.2401803f, 273.41232f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - ref ComplexCombatData reference100 = ref CollectionsMarshal.AsSpan(list133)[0]; - ComplexCombatData obj99 = new ComplexCombatData + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + span6 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + ref ComplexCombatData reference102 = ref span6[index3]; + ComplexCombatData obj100 = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; - num4 = 6; - List list134 = new List(num4); - CollectionsMarshal.SetCount(list134, num4); - Span span47 = CollectionsMarshal.AsSpan(list134); - span47[0] = null; - span47[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = null; - obj99.CompletionQuestVariablesFlags = list134; - reference100 = obj99; - obj98.ComplexCombatData = list133; - num3 = 6; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span48 = CollectionsMarshal.AsSpan(list135); - span48[0] = null; - span48[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = null; - obj98.CompletionQuestVariablesFlags = list135; - reference99 = obj98; - obj93.Steps = list127; - reference94 = obj93; - ref QuestSequence reference101 = ref span41[2]; - QuestSequence obj100 = new QuestSequence + num5 = 6; + List list131 = new List(num5); + CollectionsMarshal.SetCount(list131, num5); + span7 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + obj100.CompletionQuestVariablesFlags = list131; + reference102 = obj100; + obj99.ComplexCombatData = list130; + index3 = 6; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + span7 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + obj99.CompletionQuestVariablesFlags = list132; + reference101 = obj99; + obj94.Steps = list124; + reference96 = obj94; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21687,31 +25975,36 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - obj100.Steps = list136; - reference101 = obj100; - questRoot12.QuestSequence = list125; + obj101.Steps = list133; + reference103 = obj101; + questRoot12.QuestSequence = list122; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(288); QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "Cacahuetes"; - questRoot13.Author = list137; - num = 7; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span49 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference102 = ref span49[0]; - QuestSequence obj101 = new QuestSequence + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "Cacahuetes"; + questRoot13.Author = list134; + index = 7; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref QuestStep reference105 = ref span3[num2]; + QuestStep obj103 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21720,31 +26013,36 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipAetheryteCondition obj103 = new SkipAetheryteCondition + SkipConditions skipConditions12 = new SkipConditions(); + SkipAetheryteCondition obj104 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference104 = ref span49[1]; - QuestSequence obj104 = new QuestSequence + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + span5 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span5[index3] = 131; + obj104.InTerritory = list137; + skipConditions12.AetheryteShortcutIf = obj104; + obj103.SkipConditions = skipConditions12; + reference105 = obj103; + obj102.Steps = list136; + reference104 = obj102; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 1 }; 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) + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference107 = ref span3[index2]; + QuestStep obj106 = new QuestStep(EInteractionType.Combat, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141) { AethernetShortcut = new AethernetShortcut { @@ -21753,35 +26051,43 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; - ref QuestSequence reference106 = ref span49[2]; - QuestSequence obj106 = new QuestSequence + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + span8 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span8[num3] = 1245u; + obj106.KillEnemyDataIds = list139; + reference107 = obj106; + obj105.Steps = list138; + reference106 = obj105; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); - obj106.Steps = list143; - reference106 = obj106; - ref QuestSequence reference107 = ref span49[3]; - QuestSequence obj107 = new QuestSequence + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); + obj107.Steps = list140; + reference108 = obj107; + num++; + ref QuestSequence reference109 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 3 }; 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) + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; + QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21790,30 +26096,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipAetheryteCondition obj109 = new SkipAetheryteCondition + SkipConditions skipConditions13 = new SkipConditions(); + SkipAetheryteCondition obj110 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference109 = ref span49[4]; - QuestSequence obj110 = new QuestSequence + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span5 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span5[index3] = 131; + obj110.InTerritory = list142; + skipConditions13.AetheryteShortcutIf = obj110; + obj109.SkipConditions = skipConditions13; + reference110 = obj109; + obj108.Steps = list141; + reference109 = obj108; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001756u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001756u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) { AethernetShortcut = new AethernetShortcut { @@ -21821,32 +26132,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - obj110.Steps = list146; - reference109 = obj110; - ref QuestSequence reference110 = ref span49[5]; - QuestSequence obj111 = new QuestSequence + obj111.Steps = list143; + reference111 = obj111; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) { StopDistance = 5f }; - obj111.Steps = list147; - reference110 = obj111; - ref QuestSequence reference111 = ref span49[6]; - QuestSequence obj112 = new QuestSequence + obj112.Steps = list144; + reference112 = obj112; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference114 = ref span3[num2]; + QuestStep obj114 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21855,43 +26172,50 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + index3 = 1; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span4 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA101_00288_Q1_000_160"), Answer = new ExcelRef("TEXT_CLSGLA101_00288_A1_000_161") }; - obj113.DialogueChoices = list149; - obj113.NextQuestId = new QuestId(262); - reference112 = obj113; - obj112.Steps = list148; - reference111 = obj112; - questRoot13.QuestSequence = list138; + obj114.DialogueChoices = list146; + obj114.NextQuestId = new QuestId(262); + reference114 = obj114; + obj113.Steps = list145; + reference113 = obj113; + questRoot13.QuestSequence = list135; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(291); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "Cacahuetes"; - questRoot14.Author = list150; - num = 2; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span50 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference113 = ref span50[0]; - QuestSequence obj114 = new QuestSequence + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + span = CollectionsMarshal.AsSpan(list147); + index = 0; + span[index] = "Cacahuetes"; + questRoot14.Author = list147; + index = 2; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + span2 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 0 }; 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) + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference116 = ref span3[index2]; + QuestStep obj116 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -21900,54 +26224,63 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - SkipConditions skipConditions18 = new SkipConditions(); - SkipAetheryteCondition obj116 = new SkipAetheryteCondition + SkipConditions skipConditions14 = new SkipConditions(); + SkipAetheryteCondition obj117 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + span5 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span5[index3] = 128; + obj117.InTerritory = list150; + skipConditions14.AetheryteShortcutIf = obj117; + obj116.SkipConditions = skipConditions14; + index3 = 1; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + span4 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM011_00291_Q1_000_1") }; - obj115.DialogueChoices = list154; - reference114 = obj115; - obj114.Steps = list152; - reference113 = obj114; - ref QuestSequence reference115 = ref span50[1]; - QuestSequence obj117 = new QuestSequence + obj116.DialogueChoices = list151; + reference116 = obj116; + obj115.Steps = list149; + reference115 = obj115; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list155)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference118 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.CompleteQuest, 1000997u, new Vector3(-31.265808f, 44.49997f, 185.53442f), 128); num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new DialogueChoice + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + span4 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM011_00291_Q1_000_1") }; - questStep11.DialogueChoices = list156; + questStep11.DialogueChoices = list153; questStep11.NextQuestId = new QuestId(292); - reference116 = questStep11; - obj117.Steps = list155; - reference115 = obj117; - questRoot14.QuestSequence = list151; + reference118 = questStep11; + obj118.Steps = list152; + reference117 = obj118; + questRoot14.QuestSequence = list148; AddQuest(questId14, questRoot14); } @@ -21958,13 +26291,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -21972,19 +26308,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001500u, new Vector3(81.77307f, 1.051391f, 311.23828f), 141); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001500u, new Vector3(81.77307f, 1.051391f, 311.23828f), 141); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(60.20499f, 0.9387207f, 265.01544f), 141) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(60.20499f, 0.9387207f, 265.01544f), 141) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -21992,14 +26332,16 @@ public static class AssemblyQuestLoader Position = new Vector3(59.662186f, 0.9387207f, 258.3517f) } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) { StopDistance = 7f, DelaySecondsAtStart = 2f }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -22007,12 +26349,14 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.070023f, -3.6582303f, 160.2097f), 141) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.070023f, -3.6582303f, 160.2097f), 141) { Sprint = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -22022,24 +26366,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span4[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span4[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -22047,12 +26397,14 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new QuestStep(EInteractionType.UseItem, 2000268u, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2000268u, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) { ItemId = 2000212u }; - ref QuestStep reference6 = ref span5[1]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -22060,20 +26412,25 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 187u; + Span span4 = CollectionsMarshal.AsSpan(list10); + int index3 = 0; + span4[index3] = 187u; obj6.KillEnemyDataIds = list10; reference6 = obj6; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference7 = ref span4[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj7.Steps = list11; reference7 = obj7; questRoot2.QuestSequence = list7; @@ -22083,13 +26440,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "Cacahuetes"; questRoot3.Author = list12; - num = 2; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span6 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span6[0]; + index = 2; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -22097,23 +26457,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128); obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span6[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC011_00310_Q2_000_1") @@ -22127,18 +26494,19 @@ public static class AssemblyQuestLoader AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(311); QuestRoot questRoot4 = new QuestRoot(); - num = 2; + num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = "liza"; - span7[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot4.Author = list17; - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span8 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span8[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -22146,7 +26514,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list19)[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22164,27 +26534,34 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 128; + Span span6 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span6[index3] = 128; obj12.InTerritory = list20; skipConditions.AetheryteShortcutIf = obj12; obj11.SkipConditions = skipConditions; reference12 = obj11; obj10.Steps = list19; reference11 = obj10; - ref QuestSequence reference13 = ref span8[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128); - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span5 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC020_00311_Q2_000_1") @@ -22193,7 +26570,8 @@ public static class AssemblyQuestLoader reference14 = questStep2; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference15 = ref span8[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -22201,8 +26579,9 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference16 = ref span9[0]; + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -22215,7 +26594,9 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + Span span7 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + ref ComplexCombatData reference17 = ref span7[index3]; ComplexCombatData obj16 = new ComplexCombatData { DataId = 347u, @@ -22224,29 +26605,42 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + Span span8 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj16.CompletionQuestVariablesFlags = list25; reference17 = obj16; obj15.ComplexCombatData = list24; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span11 = CollectionsMarshal.AsSpan(list26); - span11[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + span8 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span8[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj15.CompletionQuestVariablesFlags = list26; reference16 = obj15; - ref QuestStep reference18 = ref span9[1]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -22254,38 +26648,53 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + span7 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + ref ComplexCombatData reference19 = ref span7[index3]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span12 = CollectionsMarshal.AsSpan(list28); - span12[0] = null; - span12[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + num5 = 6; + List list28 = new List(num5); + CollectionsMarshal.SetCount(list28, num5); + span8 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj18.CompletionQuestVariablesFlags = list28; reference19 = obj18; obj17.ComplexCombatData = list27; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span13 = CollectionsMarshal.AsSpan(list29); - span13[0] = null; - span13[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span8 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj17.CompletionQuestVariablesFlags = list29; reference18 = obj17; - ref QuestStep reference20 = ref span9[2]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -22293,7 +26702,9 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + span7 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + ref ComplexCombatData reference21 = ref span7[index3]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 338u, @@ -22302,45 +26713,56 @@ public static class AssemblyQuestLoader num4 = 6; List list31 = new List(num4); CollectionsMarshal.SetCount(list31, num4); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = null; + span8 = CollectionsMarshal.AsSpan(list31); + num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj20.CompletionQuestVariablesFlags = list31; reference21 = obj20; obj19.ComplexCombatData = list30; - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + index3 = 6; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span8 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj19.CompletionQuestVariablesFlags = list32; reference20 = obj19; obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference22 = ref span8[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span16 = CollectionsMarshal.AsSpan(list33); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.5555f, 34.0616f, 163.5555f), 134) - { - TargetTerritoryId = (ushort)128 - }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { + AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.Limsa, @@ -22357,13 +26779,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot5.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span17 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference23 = ref span17[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -22371,7 +26796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list36)[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22389,23 +26816,27 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 128; + span6 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span6[index3] = 128; obj24.InTerritory = list37; skipConditions2.AetheryteShortcutIf = obj24; obj23.SkipConditions = skipConditions2; reference24 = obj23; obj22.Steps = list36; reference23 = obj22; - ref QuestSequence reference25 = ref span17[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span18 = CollectionsMarshal.AsSpan(list38); - ref QuestStep reference26 = ref span18[0]; + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -22415,49 +26846,66 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - ref ComplexCombatData reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; + index3 = 1; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + span7 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + ref ComplexCombatData reference27 = ref span7[num3]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - num4 = 6; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span19 = CollectionsMarshal.AsSpan(list40); - span19[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = null; + num5 = 6; + List list40 = new List(num5); + CollectionsMarshal.SetCount(list40, num5); + span8 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span8[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj27.CompletionQuestVariablesFlags = list40; reference27 = obj27; obj26.ComplexCombatData = list39; num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span20 = CollectionsMarshal.AsSpan(list41); - span20[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = null; + span8 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span8[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj26.CompletionQuestVariablesFlags = list41; reference26 = obj26; - ref QuestStep reference28 = ref span18[1]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - ref ComplexCombatData reference29 = ref CollectionsMarshal.AsSpan(list42)[0]; + index3 = 1; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span7 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + ref ComplexCombatData reference29 = ref span7[num3]; ComplexCombatData obj29 = new ComplexCombatData { DataId = 49u, @@ -22466,70 +26914,98 @@ public static class AssemblyQuestLoader num4 = 6; List list43 = new List(num4); CollectionsMarshal.SetCount(list43, num4); - Span span21 = CollectionsMarshal.AsSpan(list43); - span21[0] = null; - span21[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + span8 = CollectionsMarshal.AsSpan(list43); + num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj29.CompletionQuestVariablesFlags = list43; reference29 = obj29; obj28.ComplexCombatData = list42; num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span22 = CollectionsMarshal.AsSpan(list44); - span22[0] = null; - span22[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = null; + span8 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj28.CompletionQuestVariablesFlags = list44; reference28 = obj28; - ref QuestStep reference30 = ref span18[2]; + num2++; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - ref ComplexCombatData reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span7 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + ref ComplexCombatData reference31 = ref span7[num3]; ComplexCombatData obj31 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 3u }; - num4 = 6; - List list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span23 = CollectionsMarshal.AsSpan(list46); - span23[0] = null; - span23[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = null; + num5 = 6; + List list46 = new List(num5); + CollectionsMarshal.SetCount(list46, num5); + span8 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj31.CompletionQuestVariablesFlags = list46; reference31 = obj31; obj30.ComplexCombatData = list45; num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span24 = CollectionsMarshal.AsSpan(list47); - span24[0] = null; - span24[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = null; + span8 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj30.CompletionQuestVariablesFlags = list47; reference30 = obj30; obj25.Steps = list38; reference25 = obj25; - ref QuestSequence reference32 = ref span17[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -22537,7 +27013,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22556,21 +27034,26 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot6.Author = list49; - num = 12; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span25 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span25[0]; + index = 12; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22585,17 +27068,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 128; + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span6 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span6[num3] = 128; obj35.InTerritory = list52; skipConditions3.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions3; reference34 = obj34; obj33.Steps = list51; reference33 = obj33; - ref QuestSequence reference35 = ref span25[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -22603,18 +27089,23 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128); obj36.Steps = list53; reference35 = obj36; - ref QuestSequence reference36 = ref span25[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134) { AethernetShortcut = new AethernetShortcut { @@ -22624,7 +27115,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference36 = obj37; - ref QuestSequence reference37 = ref span25[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -22632,8 +27124,9 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span26 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference38 = ref span26[0]; + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Action, 2001481u, new Vector3(-52.140076f, 46.158447f, 15.823547f), 134) { Action = EAction.HeavySwing @@ -22641,33 +27134,47 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span27 = CollectionsMarshal.AsSpan(list56); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list56); + 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); obj39.CompletionQuestVariablesFlags = list56; reference38 = obj39; - ref QuestStep reference39 = ref span26[1]; + index2++; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 2001482u, new Vector3(-73.80792f, 43.259277f, 4.623413f), 134) { Action = EAction.HeavySwing }; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span28 = CollectionsMarshal.AsSpan(list57); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span8 = CollectionsMarshal.AsSpan(list57); + 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); obj40.CompletionQuestVariablesFlags = list57; reference39 = obj40; - ref QuestStep reference40 = ref span26[2]; + index2++; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Action, 2001480u, new Vector3(-68.467285f, 43.503418f, 20.248657f), 134) { Action = EAction.HeavySwing @@ -22675,29 +27182,39 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span29 = CollectionsMarshal.AsSpan(list58); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list58); + 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); obj41.CompletionQuestVariablesFlags = list58; reference40 = obj41; obj38.Steps = list55; reference37 = obj38; - ref QuestSequence reference41 = ref span25[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); obj42.Steps = list59; reference41 = obj42; - ref QuestSequence reference42 = ref span25[5]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -22705,25 +27222,33 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span30 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference43 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference43 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Action, 2001483u, new Vector3(-12.314087f, 46.402588f, 31.47937f), 134) { Action = EAction.HeavySwing }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span31 = CollectionsMarshal.AsSpan(list61); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span8 = CollectionsMarshal.AsSpan(list61); + 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)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list61; reference43 = obj44; - ref QuestStep reference44 = ref span30[1]; + index2++; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Action, 2001485u, new Vector3(1.663208f, 48.2948f, 9.597839f), 134) { Action = EAction.HeavySwing @@ -22731,46 +27256,63 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span32 = CollectionsMarshal.AsSpan(list62); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list62); + 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)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list62; reference44 = obj45; - ref QuestStep reference45 = ref span30[2]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Action, 2001484u, new Vector3(-14.572449f, 47.40979f, 12.344482f), 134) { Action = EAction.HeavySwing }; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span33 = CollectionsMarshal.AsSpan(list63); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span8 = CollectionsMarshal.AsSpan(list63); + 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); obj46.CompletionQuestVariablesFlags = list63; reference45 = obj46; obj43.Steps = list60; reference42 = obj43; - ref QuestSequence reference46 = ref span25[6]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); obj47.Steps = list64; reference46 = obj47; - ref QuestSequence reference47 = ref span25[7]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 7 @@ -22778,7 +27320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22789,18 +27333,22 @@ public static class AssemblyQuestLoader }; obj48.Steps = list65; reference47 = obj48; - ref QuestSequence reference48 = ref span25[8]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1002679u, new Vector3(-5.2339478f, 31.475597f, -256.97723f), 128); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002679u, new Vector3(-5.2339478f, 31.475597f, -256.97723f), 128); obj49.Steps = list66; reference48 = obj49; - ref QuestSequence reference49 = ref span25[9]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 9 @@ -22808,9 +27356,11 @@ public static class AssemblyQuestLoader num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span34 = CollectionsMarshal.AsSpan(list67); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.175059f, 32.473015f, -264.02353f), 128); - span34[1] = new QuestStep(EInteractionType.Interact, 2000284u, new Vector3(130.84607f, 35.99597f, 28.519043f), 135) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.175059f, 32.473015f, -264.02353f), 128); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000284u, new Vector3(130.84607f, 35.99597f, 28.519043f), 135) { AethernetShortcut = new AethernetShortcut { @@ -22820,15 +27370,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list67; reference49 = obj50; - ref QuestSequence reference50 = ref span25[10]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(157.25027f, 33.93623f, 91.90441f), 135) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(157.25027f, 33.93623f, 91.90441f), 135) { StopDistance = 0.5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -22838,7 +27391,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list68; reference50 = obj51; - ref QuestSequence reference51 = ref span25[11]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -22846,7 +27400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22865,21 +27421,26 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list70); + index = 0; + span[index] = "liza"; questRoot7.Author = list70; - num = 5; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span35 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference52 = ref span35[0]; + index = 5; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + span2 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference53 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22897,14 +27458,17 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 128; + span6 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span6[index3] = 128; obj55.InTerritory = list73; skipConditions4.AetheryteShortcutIf = obj55; obj54.SkipConditions = skipConditions4; reference53 = obj54; obj53.Steps = list72; reference52 = obj53; - ref QuestSequence reference54 = ref span35[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -22912,7 +27476,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list74)[0]; + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.3196f, 73.47712f, -313.9601f), 135) { Fly = true, @@ -22923,10 +27489,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - ref ComplexCombatData reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + ref ComplexCombatData reference56 = ref span7[num3]; ComplexCombatData obj58 = new ComplexCombatData { DataId = 5u, @@ -22935,28 +27503,37 @@ public static class AssemblyQuestLoader num4 = 6; List list76 = new List(num4); CollectionsMarshal.SetCount(list76, num4); - Span span36 = CollectionsMarshal.AsSpan(list76); - span36[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + span8 = CollectionsMarshal.AsSpan(list76); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj58.CompletionQuestVariablesFlags = list76; reference56 = obj58; obj57.ComplexCombatData = list75; reference55 = obj57; obj56.Steps = list74; reference54 = obj56; - ref QuestSequence reference57 = ref span35[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22967,7 +27544,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list77; reference57 = obj59; - ref QuestSequence reference58 = ref span35[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -22975,7 +27553,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list78)[0]; + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + ref QuestStep reference59 = ref span3[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2000286u, new Vector3(-88.60913f, 43.564453f, -303.05945f), 134) { Fly = true, @@ -22990,7 +27570,9 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = 2u; + span4 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span4[index3] = 2u; obj61.KillEnemyDataIds = list79; obj61.SkipConditions = new SkipConditions { @@ -23002,15 +27584,18 @@ public static class AssemblyQuestLoader reference59 = obj61; obj60.Steps = list78; reference58 = obj60; - ref QuestSequence reference60 = ref span35[4]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23029,13 +27614,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; questRoot8.Author = list81; - num = 5; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span37 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference61 = ref span37[0]; + index = 5; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -23043,7 +27631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list83)[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference62 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23058,25 +27648,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 128; + index3 = 1; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + span6 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span6[num3] = 128; obj65.InTerritory = list84; skipConditions5.AetheryteShortcutIf = obj65; obj64.SkipConditions = skipConditions5; reference62 = obj64; obj63.Steps = list83; reference61 = obj63; - ref QuestSequence reference63 = ref span37[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference64 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.3196f, 73.47712f, -313.9601f), 135) { Fly = true, @@ -23090,29 +27685,38 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - ref ComplexCombatData reference65 = ref CollectionsMarshal.AsSpan(list86)[0]; + span7 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + ref ComplexCombatData reference65 = ref span7[index3]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 5u, MinimumKillCount = 3u }; - num4 = 6; - List list87 = new List(num4); - CollectionsMarshal.SetCount(list87, num4); - Span span38 = CollectionsMarshal.AsSpan(list87); - span38[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = null; + num5 = 6; + List list87 = new List(num5); + CollectionsMarshal.SetCount(list87, num5); + span8 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span8[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj68.CompletionQuestVariablesFlags = list87; reference65 = obj68; obj67.ComplexCombatData = list86; reference64 = obj67; obj66.Steps = list85; reference63 = obj66; - ref QuestSequence reference66 = ref span37[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -23120,7 +27724,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23131,15 +27737,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list88; reference66 = obj69; - ref QuestSequence reference67 = ref span37[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2000287u, new Vector3(-88.60913f, 43.564453f, -303.05945f), 134) { Fly = true, @@ -23151,10 +27760,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 2u; + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span4[num3] = 2u; obj71.KillEnemyDataIds = list90; obj71.SkipConditions = new SkipConditions { @@ -23166,7 +27777,8 @@ public static class AssemblyQuestLoader reference68 = obj71; obj70.Steps = list89; reference67 = obj70; - ref QuestSequence reference69 = ref span37[4]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -23174,7 +27786,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23193,21 +27807,26 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "liza"; questRoot9.Author = list92; - num = 8; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span39 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference70 = ref span39[0]; + index = 8; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list94)[0]; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23225,14 +27844,17 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = 128; + span6 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span6[index3] = 128; obj75.InTerritory = list95; skipConditions6.AetheryteShortcutIf = obj75; obj74.SkipConditions = skipConditions6; reference71 = obj74; obj73.Steps = list94; reference70 = obj73; - ref QuestSequence reference72 = ref span39[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -23240,8 +27862,9 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span40 = CollectionsMarshal.AsSpan(list96); - span40[0] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)138, @@ -23251,23 +27874,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1002110u, new Vector3(319.84436f, -31.898647f, 273.51794f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002110u, new Vector3(319.84436f, -31.898647f, 273.51794f), 138); obj76.Steps = list96; reference72 = obj76; - ref QuestSequence reference73 = ref span39[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span41 = CollectionsMarshal.AsSpan(list97); - span41[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaAleport }; - span41[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(139.18224f, -20.931536f, 139.35034f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(139.18224f, -20.931536f, 139.35034f), 138) { SkipConditions = new SkipConditions { @@ -23277,21 +27904,25 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference74 = ref span41[2]; + num2++; + ref QuestStep reference74 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2000288u, new Vector3(99.22937f, -14.2977295f, 141.86316f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 28u; + index3 = 1; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + span4 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span4[num3] = 28u; obj78.KillEnemyDataIds = list98; reference74 = obj78; obj77.Steps = list97; reference73 = obj77; - ref QuestSequence reference75 = ref span39[3]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -23299,7 +27930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23310,16 +27943,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list99; reference75 = obj79; - ref QuestSequence reference76 = ref span39[4]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span42 = CollectionsMarshal.AsSpan(list100); - span42[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-182.58467f, 39.786213f, -46.777275f), 134) + index2 = 2; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-182.58467f, 39.786213f, -46.777275f), 134) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -23339,7 +27974,8 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -23350,7 +27986,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list100; reference76 = obj80; - ref QuestSequence reference77 = ref span39[5]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -23358,24 +27995,30 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Action, 2001486u, new Vector3(-225.33002f, 42.191162f, -35.202576f), 134) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2001486u, new Vector3(-225.33002f, 42.191162f, -35.202576f), 134) { Action = EAction.HeavySwing }; obj81.Steps = list101; reference77 = obj81; - ref QuestSequence reference78 = ref span39[6]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134); obj82.Steps = list102; reference78 = obj82; - ref QuestSequence reference79 = ref span39[7]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -23383,7 +28026,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23402,21 +28047,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; questRoot10.Author = list104; - num = 9; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span43 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference80 = ref span43[0]; + index = 9; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23434,7 +28084,9 @@ public static class AssemblyQuestLoader num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = 128; + span6 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span6[index3] = 128; obj86.InTerritory = list107; skipConditions7.AetheryteShortcutIf = obj86; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -23445,7 +28097,8 @@ public static class AssemblyQuestLoader reference81 = obj85; obj84.Steps = list106; reference80 = obj84; - ref QuestSequence reference82 = ref span43[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -23453,7 +28106,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) { AethernetShortcut = new AethernetShortcut { @@ -23463,15 +28118,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list108; reference82 = obj87; - ref QuestSequence reference83 = ref span43[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -23482,7 +28140,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list109; reference83 = obj88; - ref QuestSequence reference84 = ref span43[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 @@ -23490,24 +28149,30 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1002683u, new Vector3(559.6245f, 89.783f, -80.1557f), 135); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002683u, new Vector3(559.6245f, 89.783f, -80.1557f), 135); obj89.Steps = list110; reference84 = obj89; - ref QuestSequence reference85 = ref span43[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1002113u, new Vector3(312.45886f, -24.483091f, 212.84802f), 138) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002113u, new Vector3(312.45886f, -24.483091f, 212.84802f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj90.Steps = list111; reference85 = obj90; - ref QuestSequence reference86 = ref span43[5]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -23515,23 +28180,32 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span44 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference87 = ref span44[0]; + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2000289u, new Vector3(348.34814f, -18.60083f, 168.3833f), 138); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span45 = CollectionsMarshal.AsSpan(list113); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span8 = CollectionsMarshal.AsSpan(list113); + 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)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list113; reference87 = questStep3; - span44[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138); - ref QuestStep reference88 = ref span44[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138); + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2000290u, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138) { DelaySecondsAtStart = 5f @@ -23539,26 +28213,35 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span46 = CollectionsMarshal.AsSpan(list114); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list114); + 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); obj92.CompletionQuestVariablesFlags = list114; reference88 = obj92; obj91.Steps = list112; reference86 = obj91; - ref QuestSequence reference89 = ref span43[6]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002684u, new Vector3(299.1836f, 0.7139131f, 86.10657f), 138) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002684u, new Vector3(299.1836f, 0.7139131f, 86.10657f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -23567,7 +28250,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list115; reference89 = obj93; - ref QuestSequence reference90 = ref span43[7]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 7 @@ -23575,7 +28259,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23587,15 +28273,18 @@ public static class AssemblyQuestLoader }; obj94.Steps = list116; reference90 = obj94; - ref QuestSequence reference91 = ref span43[8]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23614,13 +28303,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot11.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span47 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference92 = ref span47[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -23628,7 +28320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list120)[0]; + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23643,10 +28337,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 128; + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span6 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span6[num3] = 128; obj98.InTerritory = list121; skipConditions8.AetheryteShortcutIf = obj98; skipConditions8.AethernetShortcutIf = new SkipAetheryteCondition @@ -23657,15 +28353,18 @@ public static class AssemblyQuestLoader reference93 = obj97; obj96.Steps = list120; reference92 = obj96; - ref QuestSequence reference94 = ref span47[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) { AethernetShortcut = new AethernetShortcut { @@ -23675,7 +28374,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list122; reference94 = obj99; - ref QuestSequence reference95 = ref span47[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -23683,7 +28383,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002685u, new Vector3(-235.33997f, -0.28636882f, 675.349f), 135) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002685u, new Vector3(-235.33997f, -0.28636882f, 675.349f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -23694,15 +28396,18 @@ public static class AssemblyQuestLoader }; obj100.Steps = list123; reference95 = obj100; - ref QuestSequence reference96 = ref span47[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23721,13 +28426,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot12.Author = list125; - num = 9; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span48 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference97 = ref span48[0]; + index = 9; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -23735,7 +28443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list127)[0]; + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; QuestStep obj103 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23753,7 +28463,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 128; + span6 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span6[index3] = 128; obj104.InTerritory = list128; skipConditions9.AetheryteShortcutIf = obj104; skipConditions9.AethernetShortcutIf = new SkipAetheryteCondition @@ -23764,15 +28476,18 @@ public static class AssemblyQuestLoader reference98 = obj103; obj102.Steps = list127; reference97 = obj102; - ref QuestSequence reference99 = ref span48[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1002115u, new Vector3(562.3406f, 89.86035f, -80.216736f), 135) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002115u, new Vector3(562.3406f, 89.86035f, -80.216736f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -23783,7 +28498,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list129; reference99 = obj105; - ref QuestSequence reference100 = ref span48[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -23791,49 +28507,67 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span49 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference101 = ref span49[0]; + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference101 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1002713u, new Vector3(554.4059f, 89.783f, -67.979004f), 135); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span8 = CollectionsMarshal.AsSpan(list131); + 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); questStep4.CompletionQuestVariablesFlags = list131; reference101 = questStep4; - ref QuestStep reference102 = ref span49[1]; + index2++; + ref QuestStep reference102 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1002686u, new Vector3(554.2838f, 89.78309f, -72.43463f), 135); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list132); + 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); questStep5.CompletionQuestVariablesFlags = list132; reference102 = questStep5; obj106.Steps = list130; reference100 = obj106; - ref QuestSequence reference103 = ref span48[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2000296u, new Vector3(565.1482f, 66.666626f, -215.2591f), 135); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2000296u, new Vector3(565.1482f, 66.666626f, -215.2591f), 135); obj107.Steps = list133; reference103 = obj107; - ref QuestSequence reference104 = ref span48[4]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -23841,30 +28575,36 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2000297u, new Vector3(590.8141f, 72.40405f, -272.08368f), 135) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000297u, new Vector3(590.8141f, 72.40405f, -272.08368f), 135) { StopDistance = 1f, Mount = false }; obj108.Steps = list134; reference104 = obj108; - ref QuestSequence reference105 = ref span48[5]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span52 = CollectionsMarshal.AsSpan(list135); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(565.94104f, 85.81174f, -322.61465f), 135) + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(565.94104f, 85.81174f, -322.61465f), 135) { Mount = false }; - span52[1] = new QuestStep(EInteractionType.Interact, 2000298u, new Vector3(566.8268f, 85.52673f, -320.82092f), 135); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2000298u, new Vector3(566.8268f, 85.52673f, -320.82092f), 135); obj109.Steps = list135; reference105 = obj109; - ref QuestSequence reference106 = ref span48[6]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 @@ -23872,7 +28612,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000299u, new Vector3(574.0901f, 90.440186f, -429.06842f), 135) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000299u, new Vector3(574.0901f, 90.440186f, -429.06842f), 135) { Mount = false, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -23882,30 +28624,39 @@ public static class AssemblyQuestLoader }; obj110.Steps = list136; reference106 = obj110; - ref QuestSequence reference107 = ref span48[7]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span53 = CollectionsMarshal.AsSpan(list137); - ref QuestStep reference108 = ref span53[0]; + index2 = 3; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002689u, new Vector3(569.6345f, 86.253204f, -363.94293f), 135); - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span54 = CollectionsMarshal.AsSpan(list138); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span8 = CollectionsMarshal.AsSpan(list138); + 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)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list138; reference108 = questStep6; - ref QuestStep reference109 = ref span53[1]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1002714u, new Vector3(572.5946f, 86.366455f, -365.3468f), 135) { StopDistance = 5f @@ -23913,35 +28664,49 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span55 = CollectionsMarshal.AsSpan(list139); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list139); + 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); obj112.CompletionQuestVariablesFlags = list139; reference109 = obj112; - ref QuestStep reference110 = ref span53[2]; + num2++; + ref QuestStep reference110 = ref span3[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1002715u, new Vector3(566.4302f, 86.2767f, -364.95007f), 135) { StopDistance = 5f }; - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span56 = CollectionsMarshal.AsSpan(list140); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + span8 = CollectionsMarshal.AsSpan(list140); + 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); obj113.CompletionQuestVariablesFlags = list140; reference110 = obj113; obj111.Steps = list137; reference107 = obj111; - ref QuestSequence reference111 = ref span48[8]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -23949,7 +28714,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23968,24 +28735,30 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "liza"; questRoot13.Author = list142; - num = 8; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span57 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference112 = ref span57[0]; + index = 8; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141); obj115.Steps = list144; reference112 = obj115; - ref QuestSequence reference113 = ref span57[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -23993,19 +28766,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj116.Steps = list145; reference113 = obj116; - ref QuestSequence reference114 = ref span57[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span58 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference115 = ref span58[0]; + index2 = 4; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference115 = ref span3[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1002949u, new Vector3(-82.71924f, -11.350104f, -36.66742f), 141) { StopDistance = 2f @@ -24013,33 +28790,47 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span59 = CollectionsMarshal.AsSpan(list147); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list147); + 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); obj118.CompletionQuestVariablesFlags = list147; reference115 = obj118; - ref QuestStep reference116 = ref span58[1]; + num2++; + ref QuestStep reference116 = ref span3[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1002948u, new Vector3(-80.46088f, -12.785964f, -39.44464f), 141) { StopDistance = 7f }; - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span60 = CollectionsMarshal.AsSpan(list148); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span8 = CollectionsMarshal.AsSpan(list148); + 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)8, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list148; reference116 = obj119; - ref QuestStep reference117 = ref span58[2]; + num2++; + ref QuestStep reference117 = ref span3[num2]; QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1002950u, new Vector3(-80.76605f, -12.819771f, -34.439636f), 141) { StopDistance = 7f @@ -24047,35 +28838,49 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span61 = CollectionsMarshal.AsSpan(list149); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list149); + 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)2, 0, EQuestWorkMode.Bitwise); obj120.CompletionQuestVariablesFlags = list149; reference117 = obj120; - ref QuestStep reference118 = ref span58[3]; + num2++; + ref QuestStep reference118 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1002951u, new Vector3(-80.094604f, -12.790767f, -33.463074f), 141) { StopDistance = 7f }; - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span62 = CollectionsMarshal.AsSpan(list150); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span8 = CollectionsMarshal.AsSpan(list150); + 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); obj121.CompletionQuestVariablesFlags = list150; reference118 = obj121; obj117.Steps = list146; reference114 = obj117; - ref QuestSequence reference119 = ref span57[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -24083,24 +28888,30 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj122.Steps = list151; reference119 = obj122; - ref QuestSequence reference120 = ref span57[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span63 = CollectionsMarshal.AsSpan(list152); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.35687f, -2.8170738f, 57.860172f), 141); - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-215.15814f, -30.64667f, 96.92529f), 141) + index2 = 3; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.35687f, -2.8170738f, 57.860172f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-215.15814f, -30.64667f, 96.92529f), 141) { DisableNavmesh = true }; - span63[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002955u, new Vector3(-228.47339f, -30.853842f, 117.29602f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002955u, new Vector3(-228.47339f, -30.853842f, 117.29602f), 141) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -24109,11 +28920,13 @@ public static class AssemblyQuestLoader }; obj123.Steps = list152; reference120 = obj123; - span57[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference121 = ref span57[6]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 @@ -24121,18 +28934,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj124.Steps = list153; reference121 = obj124; - ref QuestSequence reference122 = ref span57[7]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24150,13 +28968,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot14.Author = list155; - num = 3; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span64 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference123 = ref span64[0]; + index = 3; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -24164,18 +28985,23 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); obj126.Steps = list157; reference123 = obj126; - ref QuestSequence reference124 = ref span64[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { AethernetShortcut = new AethernetShortcut { @@ -24185,7 +29011,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list158; reference124 = obj127; - ref QuestSequence reference125 = ref span64[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -24193,7 +29020,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129) { AethernetShortcut = new AethernetShortcut { @@ -24210,24 +29039,30 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot15.Author = list160; - num = 2; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span65 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference126 = ref span65[0]; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); obj129.Steps = list162; reference126 = obj129; - ref QuestSequence reference127 = ref span65[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -24235,7 +29070,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj130.Steps = list163; reference127 = obj130; questRoot15.QuestSequence = list161; @@ -24245,24 +29082,30 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list164); + index = 0; + span[index] = "liza"; questRoot16.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span66 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference128 = ref span66[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + span2 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj131.Steps = list166; reference128 = obj131; - ref QuestSequence reference129 = ref span66[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -24270,7 +29113,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference130 = ref CollectionsMarshal.AsSpan(list167)[0]; + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference130 = ref span3[index2]; QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(203.66704f, 51.853172f, -150.48145f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -24278,7 +29123,9 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 136u, MinimumKillCount = 4u @@ -24287,15 +29134,18 @@ public static class AssemblyQuestLoader reference130 = obj133; obj132.Steps = list167; reference129 = obj132; - ref QuestSequence reference131 = ref span66[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj134.Steps = list169; reference131 = obj134; questRoot16.QuestSequence = list165; @@ -24305,13 +29155,16 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "liza"; questRoot17.Author = list170; - num = 3; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span67 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference132 = ref span67[0]; + index = 3; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -24319,23 +29172,29 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj135.Steps = list172; reference132 = obj135; - ref QuestSequence reference133 = ref span67[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span68 = CollectionsMarshal.AsSpan(list173); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(263.7443f, 53.7287f, -12.175757f), 140); - span68[1] = new QuestStep(EInteractionType.Interact, 1001604u, new Vector3(-257.64862f, -0.28353235f, 25.223145f), 141); + index2 = 2; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(263.7443f, 53.7287f, -12.175757f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001604u, new Vector3(-257.64862f, -0.28353235f, 25.223145f), 141); obj136.Steps = list173; reference133 = obj136; - ref QuestSequence reference134 = ref span67[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -24343,7 +29202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; @@ -24356,24 +29217,30 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "liza"; questRoot18.Author = list175; - num = 2; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span69 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference135 = ref span69[0]; + index = 2; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj138.Steps = list177; reference135 = obj138; - ref QuestSequence reference136 = ref span69[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -24381,7 +29248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; @@ -24394,24 +29263,30 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; questRoot19.Author = list179; - num = 2; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span70 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference137 = ref span70[0]; + index = 2; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj140.Steps = list181; reference137 = obj140; - ref QuestSequence reference138 = ref span70[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -24419,7 +29294,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002066u, new Vector3(-176.95892f, 15.652092f, -270.98505f), 140); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002066u, new Vector3(-176.95892f, 15.652092f, -270.98505f), 140); obj141.Steps = list182; reference138 = obj141; questRoot19.QuestSequence = list180; @@ -24429,27 +29306,33 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot20.Author = list183; - num = 2; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span71 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference139 = ref span71[0]; + index = 2; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002067u, new Vector3(-178.94263f, 15.632084f, -269.9779f), 140) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002067u, new Vector3(-178.94263f, 15.632084f, -269.9779f), 140) { StopDistance = 7f }; obj142.Steps = list185; reference139 = obj142; - ref QuestSequence reference140 = ref span71[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -24457,10 +29340,13 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span72 = CollectionsMarshal.AsSpan(list186); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.73444f, 15.450659f, -266.76144f), 140); - span72[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.1099f, 15.249638f, -209.01831f), 140); - span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1002068u, new Vector3(-284.50446f, 13.480675f, -144.9455f), 140); + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.73444f, 15.450659f, -266.76144f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.1099f, 15.249638f, -209.01831f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002068u, new Vector3(-284.50446f, 13.480675f, -144.9455f), 140); obj143.Steps = list186; reference140 = obj143; questRoot20.QuestSequence = list184; @@ -24470,24 +29356,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "liza"; questRoot21.Author = list187; - num = 3; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span73 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference141 = ref span73[0]; + index = 3; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002071u, new Vector3(-324.78827f, 17.58331f, -127.61127f), 140); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002071u, new Vector3(-324.78827f, 17.58331f, -127.61127f), 140); obj144.Steps = list189; reference141 = obj144; - ref QuestSequence reference142 = ref span73[1]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -24495,9 +29387,11 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span74 = CollectionsMarshal.AsSpan(list190); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.01067f, 15.438055f, -256.949f), 140); - span74[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003816u, new Vector3(-235.21783f, 15.910468f, -293.1411f), 140) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.01067f, 15.438055f, -256.949f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003816u, new Vector3(-235.21783f, 15.910468f, -293.1411f), 140) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -24506,15 +29400,18 @@ public static class AssemblyQuestLoader }; obj145.Steps = list190; reference142 = obj145; - ref QuestSequence reference143 = ref span73[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj146.Steps = list191; reference143 = obj146; questRoot21.QuestSequence = list188; @@ -24524,13 +29421,16 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "liza"; questRoot22.Author = list192; - num = 7; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span75 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference144 = ref span75[0]; + index = 7; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -24538,24 +29438,30 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj147.Steps = list194; reference144 = obj147; - ref QuestSequence reference145 = ref span75[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1004584u, new Vector3(-360.83014f, -55.35f, 145.49475f), 145) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004584u, new Vector3(-360.83014f, -55.35f, 145.49475f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj148.Steps = list195; reference145 = obj148; - ref QuestSequence reference146 = ref span75[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -24563,7 +29469,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001592u, new Vector3(-356.71014f, -10.421997f, -242.51166f), 145) + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001592u, new Vector3(-356.71014f, -10.421997f, -242.51166f), 145) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -24572,21 +29480,25 @@ public static class AssemblyQuestLoader }; obj149.Steps = list196; reference146 = obj149; - ref QuestSequence reference147 = ref span75[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1005017u, new Vector3(-63.157104f, -25.215523f, -554.6502f), 146) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005017u, new Vector3(-63.157104f, -25.215523f, -554.6502f), 146) { DisableNavmesh = true }; obj150.Steps = list197; reference147 = obj150; - ref QuestSequence reference148 = ref span75[4]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -24594,7 +29506,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Duty, null, null, 146) + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions { @@ -24604,18 +29518,22 @@ public static class AssemblyQuestLoader }; obj151.Steps = list198; reference148 = obj151; - ref QuestSequence reference149 = ref span75[5]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1005156u, new Vector3(-372.73218f, -57.07999f, 151.04907f), 145); + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005156u, new Vector3(-372.73218f, -57.07999f, 151.04907f), 145); obj152.Steps = list199; reference149 = obj152; - ref QuestSequence reference150 = ref span75[6]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -24623,18 +29541,22 @@ public static class AssemblyQuestLoader num2 = 4; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span76 = CollectionsMarshal.AsSpan(list200); - span76[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span76[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span76[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj153.Steps = list200; reference150 = obj153; questRoot22.QuestSequence = list193; @@ -24644,24 +29566,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "Cacahuetes"; questRoot23.Author = list201; - num = 2; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span77 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference151 = ref span77[0]; + index = 2; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); obj154.Steps = list203; reference151 = obj154; - ref QuestSequence reference152 = ref span77[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -24669,12 +29597,16 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list204)[0]; + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + span5 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM011_00344_Q1_001_1") @@ -24691,21 +29623,26 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "liza"; questRoot24.Author = list206; - num = 4; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span78 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference154 = ref span78[0]; + index = 4; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24723,7 +29660,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list208; reference154 = obj156; - ref QuestSequence reference155 = ref span78[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -24731,12 +29669,16 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list209)[0]; + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference156 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM020_00345_Q1_001_1") @@ -24746,16 +29688,18 @@ public static class AssemblyQuestLoader reference156 = questStep8; obj157.Steps = list209; reference155 = obj157; - ref QuestSequence reference157 = ref span78[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span79 = CollectionsMarshal.AsSpan(list211); - ref QuestStep reference158 = ref span79[0]; + index2 = 2; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, null, new Vector3(-71.92632f, 9.839797f, 283.98495f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24766,11 +29710,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span80 = CollectionsMarshal.AsSpan(list212); - ref ComplexCombatData reference159 = ref span80[0]; + index3 = 2; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span7 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + ref ComplexCombatData reference159 = ref span7[num3]; ComplexCombatData obj160 = new ComplexCombatData { DataId = 351u, @@ -24779,31 +29724,44 @@ public static class AssemblyQuestLoader num4 = 6; List list213 = new List(num4); CollectionsMarshal.SetCount(list213, num4); - Span span81 = CollectionsMarshal.AsSpan(list213); - span81[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = null; + span8 = CollectionsMarshal.AsSpan(list213); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj160.CompletionQuestVariablesFlags = list213; reference159 = obj160; - ref ComplexCombatData reference160 = ref span80[1]; + num3++; + ref ComplexCombatData reference160 = ref span7[num3]; ComplexCombatData obj161 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list214 = new List(num4); - CollectionsMarshal.SetCount(list214, num4); - Span span82 = CollectionsMarshal.AsSpan(list214); - span82[0] = null; - span82[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = null; + num5 = 6; + List list214 = new List(num5); + CollectionsMarshal.SetCount(list214, num5); + span8 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj161.CompletionQuestVariablesFlags = list214; reference160 = obj161; obj159.ComplexCombatData = list212; @@ -24815,23 +29773,32 @@ public static class AssemblyQuestLoader num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 141; + span6 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span6[index3] = 141; obj162.InTerritory = list215; skipConditions10.AetheryteShortcutIf = obj162; obj159.SkipConditions = skipConditions10; - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span83 = CollectionsMarshal.AsSpan(list216); - span83[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span83[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = null; + index3 = 6; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + span8 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span8[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj159.CompletionQuestVariablesFlags = list216; reference158 = obj159; - ref QuestStep reference161 = ref span79[1]; + num2++; + ref QuestStep reference161 = ref span3[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.449f, 3.082914f, 272.46896f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -24839,27 +29806,36 @@ public static class AssemblyQuestLoader num3 = 1; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list217); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; obj163.ComplexCombatData = list217; - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span84 = CollectionsMarshal.AsSpan(list218); - span84[0] = null; - span84[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = null; + index3 = 6; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + span8 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj163.CompletionQuestVariablesFlags = list218; reference161 = obj163; obj158.Steps = list211; reference157 = obj158; - ref QuestSequence reference162 = ref span78[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -24867,7 +29843,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24886,21 +29864,26 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list220); + index = 0; + span[index] = "pot0to"; questRoot25.Author = list220; - num = 3; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span85 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference163 = ref span85[0]; + index = 3; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + span2 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24918,7 +29901,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list222; reference163 = obj165; - ref QuestSequence reference164 = ref span85[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -24926,8 +29910,9 @@ public static class AssemblyQuestLoader num2 = 2; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span86 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference165 = ref span86[0]; + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference165 = ref span3[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-71.92632f, 9.839797f, 283.98495f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24941,8 +29926,9 @@ public static class AssemblyQuestLoader num3 = 2; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span87 = CollectionsMarshal.AsSpan(list224); - ref ComplexCombatData reference166 = ref span87[0]; + span7 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + ref ComplexCombatData reference166 = ref span7[index3]; ComplexCombatData obj168 = new ComplexCombatData { DataId = 351u, @@ -24951,31 +29937,44 @@ public static class AssemblyQuestLoader num4 = 6; List list225 = new List(num4); CollectionsMarshal.SetCount(list225, num4); - Span span88 = CollectionsMarshal.AsSpan(list225); - span88[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = null; + span8 = CollectionsMarshal.AsSpan(list225); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj168.CompletionQuestVariablesFlags = list225; reference166 = obj168; - ref ComplexCombatData reference167 = ref span87[1]; + index3++; + ref ComplexCombatData reference167 = ref span7[index3]; ComplexCombatData obj169 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list226 = new List(num4); - CollectionsMarshal.SetCount(list226, num4); - Span span89 = CollectionsMarshal.AsSpan(list226); - span89[0] = null; - span89[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = null; + num5 = 6; + List list226 = new List(num5); + CollectionsMarshal.SetCount(list226, num5); + span8 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj169.CompletionQuestVariablesFlags = list226; reference167 = obj169; obj167.ComplexCombatData = list224; @@ -24984,34 +29983,45 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 141; + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span6 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span6[num3] = 141; obj170.InTerritory = list227; skipConditions11.AetheryteShortcutIf = obj170; obj167.SkipConditions = skipConditions11; num3 = 6; List list228 = new List(num3); CollectionsMarshal.SetCount(list228, num3); - Span span90 = CollectionsMarshal.AsSpan(list228); - span90[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = null; + span8 = CollectionsMarshal.AsSpan(list228); + index3 = 0; + span8[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj167.CompletionQuestVariablesFlags = list228; reference165 = obj167; - ref QuestStep reference168 = ref span86[1]; + index2++; + ref QuestStep reference168 = ref span3[index2]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.449f, 3.082914f, 272.46896f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new ComplexCombatData + index3 = 1; + List list229 = new List(index3); + CollectionsMarshal.SetCount(list229, index3); + span7 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u @@ -25020,26 +30030,35 @@ public static class AssemblyQuestLoader num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span91 = CollectionsMarshal.AsSpan(list230); - span91[0] = null; - span91[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = null; + span8 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj171.CompletionQuestVariablesFlags = list230; reference168 = obj171; obj166.Steps = list223; reference164 = obj166; - ref QuestSequence reference169 = ref span85[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25058,13 +30077,16 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "pot0to"; questRoot26.Author = list232; - num = 6; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span92 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference170 = ref span92[0]; + index = 6; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -25072,7 +30094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25090,18 +30114,22 @@ public static class AssemblyQuestLoader }; obj173.Steps = list234; reference170 = obj173; - ref QuestSequence reference171 = ref span92[1]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); obj174.Steps = list235; reference171 = obj174; - ref QuestSequence reference172 = ref span92[2]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -25109,7 +30137,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list236)[0]; + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference173 = ref span3[index2]; QuestStep obj176 = new QuestStep(EInteractionType.UseItem, 2001468u, new Vector3(-87.38843f, 50.614136f, 315.6023f), 140) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25125,25 +30155,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = 140; + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span6 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span6[num3] = 140; obj177.InTerritory = list237; skipConditions12.AetheryteShortcutIf = obj177; obj176.SkipConditions = skipConditions12; reference173 = obj176; obj175.Steps = list236; reference172 = obj175; - ref QuestSequence reference174 = ref span92[3]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list238)[0]; + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference175 = ref span3[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2001469u, new Vector3(-74.96759f, 53.238647f, 336.78186f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -25151,12 +30186,15 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 12u; + span4 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span4[index3] = 12u; obj179.KillEnemyDataIds = list239; reference175 = obj179; obj178.Steps = list238; reference174 = obj178; - ref QuestSequence reference176 = ref span92[4]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 4 @@ -25164,23 +30202,28 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span93 = CollectionsMarshal.AsSpan(list240); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-253.97243f, 33.2412f, 408.68488f), 140) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-253.97243f, 33.2412f, 408.68488f), 140) { Fly = true }; - span93[1] = new QuestStep(EInteractionType.Interact, 1002027u, new Vector3(-255.23767f, 33.238777f, 407.27856f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002027u, new Vector3(-255.23767f, 33.238777f, 407.27856f), 140); obj180.Steps = list240; reference176 = obj180; - ref QuestSequence reference177 = ref span92[5]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25199,15 +30242,18 @@ public static class AssemblyQuestLoader num = 2; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span94 = CollectionsMarshal.AsSpan(list242); - span94[0] = "liza"; - span94[1] = "pot0to"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "liza"; + index++; + span[index] = "pot0to"; questRoot27.Author = list242; - num = 8; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span95 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference178 = ref span95[0]; + index = 8; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 @@ -25215,7 +30261,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25233,18 +30281,22 @@ public static class AssemblyQuestLoader }; obj182.Steps = list244; reference178 = obj182; - ref QuestSequence reference179 = ref span95[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); obj183.Steps = list245; reference179 = obj183; - ref QuestSequence reference180 = ref span95[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -25252,8 +30304,9 @@ public static class AssemblyQuestLoader num2 = 3; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span96 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference181 = ref span96[0]; + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + ref QuestStep reference181 = ref span3[index2]; QuestStep obj185 = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25268,10 +30321,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = 141; + index3 = 1; + List list247 = new List(index3); + CollectionsMarshal.SetCount(list247, index3); + span6 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span6[num3] = 141; obj186.InTerritory = list247; obj186.AetheryteUnlocked = EAetheryteLocation.CentralThanalanBlackBrushStation; skipConditions13.AetheryteShortcutIf = obj186; @@ -25281,7 +30336,8 @@ public static class AssemblyQuestLoader }; obj185.SkipConditions = skipConditions13; reference181 = obj185; - span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) { SkipConditions = new SkipConditions { @@ -25292,7 +30348,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference182 = ref span96[2]; + index2++; + ref QuestStep reference182 = ref span3[index2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.07747f, -2f, -225.21188f), 141) { Fly = true, @@ -25302,7 +30359,9 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - ref ComplexCombatData reference183 = ref CollectionsMarshal.AsSpan(list248)[0]; + span7 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + ref ComplexCombatData reference183 = ref span7[index3]; ComplexCombatData obj188 = new ComplexCombatData { DataId = 160u, @@ -25311,13 +30370,19 @@ public static class AssemblyQuestLoader num4 = 6; List list249 = new List(num4); CollectionsMarshal.SetCount(list249, num4); - Span span97 = CollectionsMarshal.AsSpan(list249); - span97[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + span8 = CollectionsMarshal.AsSpan(list249); + num5 = 0; + span8[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj188.CompletionQuestVariablesFlags = list249; reference183 = obj188; obj187.ComplexCombatData = list248; @@ -25331,15 +30396,18 @@ public static class AssemblyQuestLoader reference182 = obj187; obj184.Steps = list246; reference180 = obj184; - ref QuestSequence reference184 = ref span95[3]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list250)[0]; + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + ref QuestStep reference185 = ref span3[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25356,10 +30424,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new DialogueChoice + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + span5 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM100_00348_Q_000_1"), @@ -25369,7 +30439,8 @@ public static class AssemblyQuestLoader reference185 = obj190; obj189.Steps = list250; reference184 = obj189; - ref QuestSequence reference186 = ref span95[4]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -25377,7 +30448,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list252)[0]; + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference187 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2001511u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145) { Fly = true, @@ -25387,9 +30460,11 @@ public static class AssemblyQuestLoader num3 = 2; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span98 = CollectionsMarshal.AsSpan(list253); - span98[0] = 166u; - span98[1] = 1238u; + span4 = CollectionsMarshal.AsSpan(list253); + index3 = 0; + span4[index3] = 166u; + index3++; + span4[index3] = 1238u; obj192.KillEnemyDataIds = list253; obj192.SkipConditions = new SkipConditions { @@ -25401,18 +30476,22 @@ public static class AssemblyQuestLoader reference187 = obj192; obj191.Steps = list252; reference186 = obj191; - ref QuestSequence reference188 = ref span95[5]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2001498u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001498u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); obj193.Steps = list254; reference188 = obj193; - ref QuestSequence reference189 = ref span95[6]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 6 @@ -25420,7 +30499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25431,15 +30512,18 @@ public static class AssemblyQuestLoader }; obj194.Steps = list255; reference189 = obj194; - ref QuestSequence reference190 = ref span95[7]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { NextQuestId = new QuestId(350) }; @@ -25452,13 +30536,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "pot0to"; questRoot28.Author = list257; - num = 7; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span99 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference191 = ref span99[0]; + index = 7; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -25466,7 +30553,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25484,18 +30573,22 @@ public static class AssemblyQuestLoader }; obj196.Steps = list259; reference191 = obj196; - ref QuestSequence reference192 = ref span99[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); obj197.Steps = list260; reference192 = obj197; - ref QuestSequence reference193 = ref span99[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -25503,8 +30596,9 @@ public static class AssemblyQuestLoader num2 = 3; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span100 = CollectionsMarshal.AsSpan(list261); - ref QuestStep reference194 = ref span100[0]; + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + ref QuestStep reference194 = ref span3[index2]; QuestStep obj199 = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25519,10 +30613,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 141; + index3 = 1; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + span6 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span6[num3] = 141; obj200.InTerritory = list262; obj200.AetheryteUnlocked = EAetheryteLocation.CentralThanalanBlackBrushStation; skipConditions14.AetheryteShortcutIf = obj200; @@ -25532,7 +30628,8 @@ public static class AssemblyQuestLoader }; obj199.SkipConditions = skipConditions14; reference194 = obj199; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) { SkipConditions = new SkipConditions { @@ -25543,7 +30640,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference195 = ref span100[2]; + index2++; + ref QuestStep reference195 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.07747f, -2f, -225.21188f), 141) { Fly = true, @@ -25553,22 +30651,30 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - ref ComplexCombatData reference196 = ref CollectionsMarshal.AsSpan(list263)[0]; + span7 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + ref ComplexCombatData reference196 = ref span7[index3]; ComplexCombatData obj202 = new ComplexCombatData { DataId = 160u, MinimumKillCount = 8u }; - num4 = 6; - List list264 = new List(num4); - CollectionsMarshal.SetCount(list264, num4); - Span span101 = CollectionsMarshal.AsSpan(list264); - span101[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + num5 = 6; + List list264 = new List(num5); + CollectionsMarshal.SetCount(list264, num5); + span8 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span8[num4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; obj202.CompletionQuestVariablesFlags = list264; reference196 = obj202; obj201.ComplexCombatData = list263; @@ -25582,15 +30688,18 @@ public static class AssemblyQuestLoader reference195 = obj201; obj198.Steps = list261; reference193 = obj198; - ref QuestSequence reference197 = ref span99[3]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list265)[0]; + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + ref QuestStep reference198 = ref span3[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25607,10 +30716,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = new DialogueChoice + index3 = 1; + List list266 = new List(index3); + CollectionsMarshal.SetCount(list266, index3); + span5 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM101_00349_Q_000_1"), @@ -25620,7 +30731,8 @@ public static class AssemblyQuestLoader reference198 = obj204; obj203.Steps = list265; reference197 = obj203; - ref QuestSequence reference199 = ref span99[4]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -25628,7 +30740,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list267)[0]; + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference200 = ref span3[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2001512u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145) { Fly = true, @@ -25638,9 +30752,11 @@ public static class AssemblyQuestLoader num3 = 2; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span102 = CollectionsMarshal.AsSpan(list268); - span102[0] = 166u; - span102[1] = 1238u; + span4 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span4[index3] = 166u; + index3++; + span4[index3] = 1238u; obj206.KillEnemyDataIds = list268; obj206.SkipConditions = new SkipConditions { @@ -25652,18 +30768,22 @@ public static class AssemblyQuestLoader reference200 = obj206; obj205.Steps = list267; reference199 = obj205; - ref QuestSequence reference201 = ref span99[5]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2001499u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001499u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); obj207.Steps = list269; reference201 = obj207; - ref QuestSequence reference202 = ref span99[6]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -25671,7 +30791,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25694,13 +30816,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "pot0to"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "pot0to"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -25708,7 +30833,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25726,18 +30853,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -25745,33 +30876,40 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.Emote, 1002301u, new Vector3(-178.2102f, 18f, 61.41748f), 130) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1002301u, new Vector3(-178.2102f, 18f, 61.41748f), 130) { Emote = EEmote.Cry }; - span2[1] = new QuestStep(EInteractionType.Emote, 1002300u, new Vector3(-176.9284f, 18f, 62.363525f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, 1002300u, new Vector3(-176.9284f, 18f, 62.363525f), 130) { Emote = EEmote.Cry }; - span2[2] = new QuestStep(EInteractionType.Emote, 1002302u, new Vector3(-176.71478f, 18f, 64.34729f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, 1002302u, new Vector3(-176.71478f, 18f, 64.34729f), 130) { Emote = EEmote.Cry }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -25779,7 +30917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001470u, new Vector3(-24.887512f, -25.345276f, 321.94995f), 145) { Fly = true, @@ -25789,9 +30929,11 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = "vbm doesn't move to the enemies automatically"; - span3[1] = "vbm doesn't interact with the urn"; + span = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span[num4] = "vbm doesn't move to the enemies automatically"; + num4++; + span[num4] = "vbm doesn't interact with the urn"; singlePlayerDutyOptions.Notes = list8; obj6.SinglePlayerDutyOptions = singlePlayerDutyOptions; obj6.SkipConditions = new SkipConditions @@ -25804,15 +30946,18 @@ public static class AssemblyQuestLoader reference6 = obj6; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list9)[0]; + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.CompleteQuest, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25822,10 +30967,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice + num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM150_00350_Q1_000_1"), @@ -25843,14 +30990,17 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "pot0to"; questRoot2.Author = list11; questRoot2.Comment = "TODO Fix pathing if flying is locked"; - num = 10; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span4 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span4[0]; + index = 10; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -25858,7 +31008,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25876,25 +31028,31 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 130; + Span span5 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span5[num4] = 130; obj11.InTerritory = list14; skipConditions.AetheryteShortcutIf = obj11; obj10.SkipConditions = skipConditions; reference10 = obj10; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference11 = ref span4[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130); obj12.Steps = list15; reference11 = obj12; - ref QuestSequence reference12 = ref span4[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -25902,7 +31060,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true, @@ -25913,34 +31073,41 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 140; + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + span5 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span5[num3] = 140; obj15.InTerritory = list17; skipConditions2.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions2; reference13 = obj14; obj13.Steps = list16; reference12 = obj13; - ref QuestSequence reference14 = ref span4[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span5 = CollectionsMarshal.AsSpan(list18); - span5[0] = new QuestStep(EInteractionType.Interact, 1002324u, new Vector3(112.80994f, 17.536886f, 31.296265f), 140) + index2 = 3; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002324u, new Vector3(112.80994f, 17.536886f, 31.296265f), 140) { Fly = true }; - span5[1] = new QuestStep(EInteractionType.Interact, 1002322u, new Vector3(116.89929f, 17.536886f, 12.954895f), 140); - span5[2] = new QuestStep(EInteractionType.Interact, 1002323u, new Vector3(132.43298f, 21.104982f, 9.018005f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002322u, new Vector3(116.89929f, 17.536886f, 12.954895f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002323u, new Vector3(132.43298f, 21.104982f, 9.018005f), 140); obj16.Steps = list18; reference14 = obj16; - ref QuestSequence reference15 = ref span4[4]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 @@ -25948,21 +31115,26 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true }; obj17.Steps = list19; reference15 = obj17; - ref QuestSequence reference16 = ref span4[5]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list20)[0]; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001472u, new Vector3(150.71338f, 18.783813f, -5.7526855f), 140) { Fly = true @@ -25971,13 +31143,16 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = "Duty somewhat expects you to put the boss to sleep, vbm doesn't and lets the friendly NPC die"; + span = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span[num4] = "Duty somewhat expects you to put the boss to sleep, vbm doesn't and lets the friendly NPC die"; singlePlayerDutyOptions2.Notes = list21; obj19.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference17 = obj19; obj18.Steps = list20; reference16 = obj18; - ref QuestSequence reference18 = ref span4[6]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 6 @@ -25985,27 +31160,33 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true }; obj20.Steps = list22; reference18 = obj20; - ref QuestSequence reference19 = ref span4[7]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2001474u, new Vector3(96.238525f, 16.952698f, 188.83032f), 140) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001474u, new Vector3(96.238525f, 16.952698f, 188.83032f), 140) { Fly = true }; obj21.Steps = list23; reference19 = obj21; - ref QuestSequence reference20 = ref span4[8]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 8 @@ -26013,7 +31194,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list24)[0]; + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26028,25 +31211,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 130; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + span5 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span5[num3] = 130; obj24.InTerritory = list25; skipConditions3.AetheryteShortcutIf = obj24; obj23.SkipConditions = skipConditions3; reference21 = obj23; obj22.Steps = list24; reference20 = obj22; - ref QuestSequence reference22 = ref span4[9]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { NextQuestId = new QuestId(352) }; @@ -26059,13 +31247,16 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "pot0to"; questRoot3.Author = list27; - num = 7; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span6 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference23 = ref span6[0]; + index = 7; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -26073,7 +31264,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list29)[0]; + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj27 = new QuestStep(EInteractionType.AcceptQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26091,25 +31284,31 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = 130; + span5 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span5[num4] = 130; obj28.InTerritory = list30; skipConditions4.AetheryteShortcutIf = obj28; obj27.SkipConditions = skipConditions4; reference24 = obj27; obj26.Steps = list29; reference23 = obj26; - ref QuestSequence reference25 = ref span6[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj29.Steps = list31; reference25 = obj29; - ref QuestSequence reference26 = ref span6[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -26117,8 +31316,9 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span7 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference27 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1002309u, new Vector3(-374.28857f, -57.079987f, 144.12134f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -26128,27 +31328,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 145; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = 145; obj32.InTerritory = list33; skipConditions5.AetheryteShortcutIf = obj32; obj31.SkipConditions = skipConditions5; reference27 = obj31; - span7[1] = new QuestStep(EInteractionType.Interact, 1002308u, new Vector3(-386.7094f, -59.300003f, 166.39954f), 145); - span7[2] = new QuestStep(EInteractionType.Interact, 1002307u, new Vector3(-396.65833f, -48.15f, 99.68713f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002308u, new Vector3(-386.7094f, -59.300003f, 166.39954f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002307u, new Vector3(-396.65833f, -48.15f, 99.68713f), 145); obj30.Steps = list32; reference26 = obj30; - ref QuestSequence reference28 = ref span6[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list34)[0]; + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference29 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26166,14 +31373,17 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 130; + span5 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span5[num4] = 130; obj35.InTerritory = list35; skipConditions6.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions6; reference29 = obj34; obj33.Steps = list34; reference28 = obj33; - ref QuestSequence reference30 = ref span6[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -26181,19 +31391,23 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); obj36.Steps = list36; reference30 = obj36; - ref QuestSequence reference31 = ref span6[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span8 = CollectionsMarshal.AsSpan(list37); - ref QuestStep reference32 = ref span8[0]; + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.64497f, 5.099169f, -265.77835f), 145) { Fly = true, @@ -26204,18 +31418,22 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 145; + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = 145; obj39.InTerritory = list38; skipConditions7.AetheryteShortcutIf = obj39; obj38.SkipConditions = skipConditions7; reference32 = obj38; - span8[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002310u, new Vector3(184.89343f, 3.1809213f, -338.64355f), 145); + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002310u, new Vector3(184.89343f, 3.1809213f, -338.64355f), 145); obj37.Steps = list37; reference31 = obj37; - ref QuestSequence reference33 = ref span6[6]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -26223,7 +31441,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list39)[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26241,7 +31461,9 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 130; + span5 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span5[num4] = 130; obj42.InTerritory = list40; skipConditions8.AetheryteShortcutIf = obj42; obj41.SkipConditions = skipConditions8; @@ -26256,21 +31478,26 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "pot0to"; questRoot4.Author = list41; - num = 7; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span9 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference35 = ref span9[0]; + index = 7; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26285,17 +31512,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 130; + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span5 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span5[num3] = 130; obj45.InTerritory = list44; skipConditions9.AetheryteShortcutIf = obj45; obj44.SkipConditions = skipConditions9; reference36 = obj44; obj43.Steps = list43; reference35 = obj43; - ref QuestSequence reference37 = ref span9[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -26303,8 +31533,9 @@ public static class AssemblyQuestLoader num2 = 4; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span10 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference38 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, @@ -26315,28 +31546,37 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 140; + span5 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span5[num4] = 140; skipStepConditions.InTerritory = list46; skipConditions10.StepIf = skipStepConditions; obj47.SkipConditions = skipConditions10; reference38 = obj47; - span10[1] = new QuestStep(EInteractionType.Interact, 1004070u, new Vector3(-455.86328f, 23.11398f, -326.92456f), 140); - span10[2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); - span10[3] = new QuestStep(EInteractionType.Interact, 1004094u, new Vector3(-413.47375f, 23.113977f, -383.71863f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004070u, new Vector3(-455.86328f, 23.11398f, -326.92456f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004094u, new Vector3(-413.47375f, 23.113977f, -383.71863f), 140); obj46.Steps = list45; reference37 = obj46; - ref QuestSequence reference39 = ref span9[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1002316u, new Vector3(-436.72852f, 23.774809f, -350.8202f), 140); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002316u, new Vector3(-436.72852f, 23.774809f, -350.8202f), 140); obj48.Steps = list47; reference39 = obj48; - ref QuestSequence reference40 = ref span9[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -26344,32 +31584,40 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list48)[0]; + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 1239u; + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span6 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span6[num3] = 1239u; obj50.KillEnemyDataIds = list49; reference41 = obj50; obj49.Steps = list48; reference40 = obj49; - ref QuestSequence reference42 = ref span9[4]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140); obj51.Steps = list50; reference42 = obj51; - ref QuestSequence reference43 = ref span9[5]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 @@ -26377,7 +31625,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list51)[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002317u, new Vector3(-269.85577f, 15.346575f, -718.1354f), 140) { Fly = true @@ -26385,7 +31635,9 @@ public static class AssemblyQuestLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM300_00353_Q_000_1"), @@ -26395,15 +31647,18 @@ public static class AssemblyQuestLoader reference44 = obj53; obj52.Steps = list51; reference43 = obj52; - ref QuestSequence reference45 = ref span9[6]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26418,10 +31673,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 130; + num4 = 1; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = 130; obj56.InTerritory = list54; skipConditions11.AetheryteShortcutIf = obj56; obj55.SkipConditions = skipConditions11; @@ -26435,13 +31692,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot5.Author = list55; - num = 7; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span11 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference47 = ref span11[0]; + index = 7; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -26449,18 +31709,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156); obj57.Steps = list57; reference47 = obj57; - ref QuestSequence reference48 = ref span11[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26474,7 +31739,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list58; reference48 = obj58; - ref QuestSequence reference49 = ref span11[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -26482,8 +31748,9 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span12 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference50 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj60 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26495,16 +31762,23 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span13 = CollectionsMarshal.AsSpan(list60); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list60); + 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); obj60.CompletionQuestVariablesFlags = list60; reference50 = obj60; - ref QuestStep reference51 = ref span12[1]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26513,29 +31787,38 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 20u } }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span14 = CollectionsMarshal.AsSpan(list61); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + span7 = CollectionsMarshal.AsSpan(list61); + 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); obj61.CompletionQuestVariablesFlags = list61; reference51 = obj61; obj59.Steps = list59; reference49 = obj59; - ref QuestSequence reference52 = ref span11[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26549,7 +31832,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list62; reference52 = obj62; - ref QuestSequence reference53 = ref span11[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -26557,8 +31841,9 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span15 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference54 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26570,16 +31855,23 @@ public static class AssemblyQuestLoader num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span16 = CollectionsMarshal.AsSpan(list64); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list64); + 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); obj64.CompletionQuestVariablesFlags = list64; reference54 = obj64; - ref QuestStep reference55 = ref span15[1]; + index2++; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26588,29 +31880,38 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 27u } }; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span17 = CollectionsMarshal.AsSpan(list65); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span7 = CollectionsMarshal.AsSpan(list65); + 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); obj65.CompletionQuestVariablesFlags = list65; reference55 = obj65; obj63.Steps = list63; reference53 = obj63; - ref QuestSequence reference56 = ref span11[5]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26624,7 +31925,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list66; reference56 = obj66; - ref QuestSequence reference57 = ref span11[6]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -26632,7 +31934,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26653,22 +31957,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "liza"; questRoot6.Author = list68; - num = 8; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span18 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference58 = ref span18[0]; + index = 8; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span19 = CollectionsMarshal.AsSpan(list70); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26680,13 +31988,15 @@ public static class AssemblyQuestLoader } } }; - span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj68.Steps = list70; reference58 = obj68; - ref QuestSequence reference59 = ref span18[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -26694,8 +32004,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span20 = CollectionsMarshal.AsSpan(list71); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26707,22 +32018,25 @@ public static class AssemblyQuestLoader } } }; - span20[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj69.Steps = list71; reference59 = obj69; - ref QuestSequence reference60 = ref span18[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span21 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference61 = ref span21[0]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26734,16 +32048,23 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span22 = CollectionsMarshal.AsSpan(list73); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list73); + 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); obj71.CompletionQuestVariablesFlags = list73; reference61 = obj71; - ref QuestStep reference62 = ref span21[1]; + num2++; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26752,21 +32073,28 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 19u } }; - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span23 = CollectionsMarshal.AsSpan(list74); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + span7 = CollectionsMarshal.AsSpan(list74); + 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); obj72.CompletionQuestVariablesFlags = list74; reference62 = obj72; obj70.Steps = list72; reference60 = obj70; - ref QuestSequence reference63 = ref span18[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 @@ -26774,8 +32102,9 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span24 = CollectionsMarshal.AsSpan(list75); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26787,22 +32116,25 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj73.Steps = list75; reference63 = obj73; - ref QuestSequence reference64 = ref span18[4]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span25 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference65 = ref span25[0]; + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26814,16 +32146,23 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span26 = CollectionsMarshal.AsSpan(list77); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list77); + 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); obj75.CompletionQuestVariablesFlags = list77; reference65 = obj75; - ref QuestStep reference66 = ref span25[1]; + num2++; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26832,21 +32171,28 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 28u } }; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span27 = CollectionsMarshal.AsSpan(list78); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span7 = CollectionsMarshal.AsSpan(list78); + 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); obj76.CompletionQuestVariablesFlags = list78; reference66 = obj76; obj74.Steps = list76; reference64 = obj74; - ref QuestSequence reference67 = ref span18[5]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -26854,8 +32200,9 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span28 = CollectionsMarshal.AsSpan(list79); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26867,22 +32214,25 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj77.Steps = list79; reference67 = obj77; - ref QuestSequence reference68 = ref span18[6]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span29 = CollectionsMarshal.AsSpan(list80); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26894,13 +32244,15 @@ public static class AssemblyQuestLoader } } }; - span29[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj78.Steps = list80; reference68 = obj78; - ref QuestSequence reference69 = ref span18[7]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -26908,8 +32260,9 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span30 = CollectionsMarshal.AsSpan(list81); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26921,7 +32274,8 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; @@ -26934,24 +32288,30 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; questRoot7.Author = list82; - num = 11; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span31 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference70 = ref span31[0]; + index = 11; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141); obj80.Steps = list84; reference70 = obj80; - ref QuestSequence reference71 = ref span31[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -26959,7 +32319,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -26969,15 +32331,18 @@ public static class AssemblyQuestLoader }; obj81.Steps = list85; reference71 = obj81; - ref QuestSequence reference72 = ref span31[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -26991,7 +32356,8 @@ public static class AssemblyQuestLoader }; obj82.Steps = list86; reference72 = obj82; - ref QuestSequence reference73 = ref span31[3]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -26999,7 +32365,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -27009,15 +32377,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list87; reference73 = obj83; - ref QuestSequence reference74 = ref span31[4]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27031,7 +32402,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list88; reference74 = obj84; - ref QuestSequence reference75 = ref span31[5]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 @@ -27039,7 +32411,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -27049,15 +32423,18 @@ public static class AssemblyQuestLoader }; obj85.Steps = list89; reference75 = obj85; - ref QuestSequence reference76 = ref span31[6]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27071,7 +32448,8 @@ public static class AssemblyQuestLoader }; obj86.Steps = list90; reference76 = obj86; - ref QuestSequence reference77 = ref span31[7]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 7 @@ -27079,7 +32457,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -27089,15 +32469,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list91; reference77 = obj87; - ref QuestSequence reference78 = ref span31[8]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27111,7 +32494,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list92; reference78 = obj88; - ref QuestSequence reference79 = ref span31[9]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 9 @@ -27119,7 +32503,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27133,15 +32519,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list93; reference79 = obj89; - ref QuestSequence reference80 = ref span31[10]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, SkipConditions = new SkipConditions @@ -27161,13 +32550,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "liza"; questRoot8.Author = list95; - num = 8; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span32 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference81 = ref span32[0]; + index = 8; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -27175,18 +32567,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156); obj91.Steps = list97; reference81 = obj91; - ref QuestSequence reference82 = ref span32[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -27200,7 +32597,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list98; reference82 = obj92; - ref QuestSequence reference83 = ref span32[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -27208,7 +32606,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -27222,16 +32622,18 @@ public static class AssemblyQuestLoader }; obj93.Steps = list99; reference83 = obj93; - ref QuestSequence reference84 = ref span32[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span33 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference85 = ref span33[0]; + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference85 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -27243,16 +32645,23 @@ public static class AssemblyQuestLoader num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span34 = CollectionsMarshal.AsSpan(list101); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list101); + 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); obj95.CompletionQuestVariablesFlags = list101; reference85 = obj95; - ref QuestStep reference86 = ref span33[1]; + num2++; + ref QuestStep reference86 = ref span3[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -27261,19 +32670,26 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 17u } }; - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span35 = CollectionsMarshal.AsSpan(list102); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + span7 = CollectionsMarshal.AsSpan(list102); + 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); obj96.CompletionQuestVariablesFlags = list102; reference86 = obj96; - ref QuestStep reference87 = ref span33[2]; + num2++; + ref QuestStep reference87 = ref span3[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -27285,18 +32701,25 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span36 = CollectionsMarshal.AsSpan(list103); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list103); + 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); obj97.CompletionQuestVariablesFlags = list103; reference87 = obj97; obj94.Steps = list100; reference84 = obj94; - ref QuestSequence reference88 = ref span32[4]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -27304,7 +32727,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -27318,15 +32743,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list104; reference88 = obj98; - ref QuestSequence reference89 = ref span32[5]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -27336,7 +32764,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list105; reference89 = obj99; - ref QuestSequence reference90 = ref span32[6]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 @@ -27344,7 +32773,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -27358,15 +32789,18 @@ public static class AssemblyQuestLoader }; obj100.Steps = list106; reference90 = obj100; - ref QuestSequence reference91 = ref span32[7]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -27387,13 +32821,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot9.Author = list108; - num = 9; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span37 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference92 = ref span37[0]; + index = 9; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -27401,7 +32838,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -27414,24 +32853,28 @@ public static class AssemblyQuestLoader }; obj102.Steps = list110; reference92 = obj102; - ref QuestSequence reference93 = ref span37[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span38 = CollectionsMarshal.AsSpan(list111); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span38[1] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj103.Steps = list111; reference93 = obj103; - ref QuestSequence reference94 = ref span37[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -27439,29 +32882,35 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Emote, 1010813u, new Vector3(218.92114f, 10.293846f, -75.12018f), 153) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1010813u, new Vector3(218.92114f, 10.293846f, -75.12018f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, Emote = EEmote.Rally }; obj104.Steps = list112; reference94 = obj104; - ref QuestSequence reference95 = ref span37[3]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Emote, 1010814u, new Vector3(-47.837036f, 3.0947418f, -44.663208f), 153) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1010814u, new Vector3(-47.837036f, 3.0947418f, -44.663208f), 153) { Fly = true, Emote = EEmote.Cheer }; obj105.Steps = list113; reference95 = obj105; - ref QuestSequence reference96 = ref span37[4]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 @@ -27469,17 +32918,21 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span39 = CollectionsMarshal.AsSpan(list114); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true }; - ref QuestStep reference97 = ref span39[1]; + index2++; + ref QuestStep reference97 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1010815u, new Vector3(-168.26129f, 9.869229f, -79.54535f), 153); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + num4 = 1; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST030_00362_Q1_000_000"), @@ -27489,15 +32942,18 @@ public static class AssemblyQuestLoader reference97 = questStep; obj106.Steps = list114; reference96 = obj106; - ref QuestSequence reference98 = ref span37[5]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1010816u, new Vector3(22.079773f, -19.000006f, 106.1875f), 132) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010816u, new Vector3(22.079773f, -19.000006f, 106.1875f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -27508,7 +32964,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list116; reference98 = obj107; - ref QuestSequence reference99 = ref span37[6]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 @@ -27516,34 +32973,41 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span40 = CollectionsMarshal.AsSpan(list117); - span40[0] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { TargetTerritoryId = (ushort)128 }; - span40[1] = new QuestStep(EInteractionType.Interact, 1010818u, new Vector3(-13.01593f, 91.5f, -18.234558f), 128); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010818u, new Vector3(-13.01593f, 91.5f, -18.234558f), 128); obj108.Steps = list117; reference99 = obj108; - ref QuestSequence reference100 = ref span37[7]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span41 = CollectionsMarshal.AsSpan(list118); - span41[0] = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { StopDistance = 7f, TargetTerritoryId = (ushort)128 }; - ref QuestStep reference101 = ref span41[1]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1010819u, new Vector3(17.013733f, 40.216007f, -3.8605957f), 128); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST030_00362_Q2_000_000"), @@ -27553,7 +33017,8 @@ public static class AssemblyQuestLoader reference101 = questStep2; obj109.Steps = list118; reference100 = obj109; - ref QuestSequence reference102 = ref span37[8]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -27561,7 +33026,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010822u, new Vector3(-209.88788f, 54.829185f, -196.03265f), 152) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010822u, new Vector3(-209.88788f, 54.829185f, -196.03265f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -27575,22 +33042,26 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span42 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference103 = ref span42[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span43 = CollectionsMarshal.AsSpan(list123); - ref QuestStep reference104 = ref span43[0]; + index2 = 3; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -27598,22 +33069,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 351; + num4 = 1; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + span5 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span5[num3] = 351; skipStepConditions2.InTerritory = list124; skipConditions12.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = 351; + span5 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span5[num4] = 351; skipAetheryteCondition.InTerritory = list125; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition; obj112.SkipConditions = skipConditions12; reference104 = obj112; - span43[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -27624,10 +33100,12 @@ public static class AssemblyQuestLoader } } }; - span43[2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj111.Steps = list123; reference103 = obj111; - ref QuestSequence reference105 = ref span42[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -27635,23 +33113,28 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span44 = CollectionsMarshal.AsSpan(list126); - span44[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span44[1] = new QuestStep(EInteractionType.Interact, 1010844u, new Vector3(3.0670166f, 0.009977885f, -4.287842f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010844u, new Vector3(3.0670166f, 0.009977885f, -4.287842f), 351); obj113.Steps = list126; reference105 = obj113; - ref QuestSequence reference106 = ref span42[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -27665,13 +33148,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list128; - num = 5; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span45 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference107 = ref span45[0]; + index = 5; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -27679,7 +33165,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -27692,21 +33180,25 @@ public static class AssemblyQuestLoader }; obj115.Steps = list130; reference107 = obj115; - ref QuestSequence reference108 = ref span45[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1010846u, new Vector3(349.08057f, 23.131361f, 103.80713f), 145) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010846u, new Vector3(349.08057f, 23.131361f, 103.80713f), 145) { Fly = true }; obj116.Steps = list131; reference108 = obj116; - ref QuestSequence reference109 = ref span45[2]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -27714,39 +33206,49 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list132)[0]; + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Combat, 1010847u, new Vector3(333.6079f, -11.123097f, 141.55786f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 4; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span46 = CollectionsMarshal.AsSpan(list133); - span46[0] = 363u; - span46[1] = 372u; - span46[2] = 364u; - span46[3] = 2844u; + num4 = 4; + List list133 = new List(num4); + CollectionsMarshal.SetCount(list133, num4); + span6 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span6[num3] = 363u; + num3++; + span6[num3] = 372u; + num3++; + span6[num3] = 364u; + num3++; + span6[num3] = 2844u; obj118.KillEnemyDataIds = list133; reference110 = obj118; obj117.Steps = list132; reference109 = obj117; - ref QuestSequence reference111 = ref span45[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2005112u, new Vector3(199.6947f, -14.725037f, 162.46277f), 145) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005112u, new Vector3(199.6947f, -14.725037f, 162.46277f), 145) { Fly = true }; obj119.Steps = list134; reference111 = obj119; - ref QuestSequence reference112 = ref span45[4]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -27754,7 +33256,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); obj120.Steps = list135; reference112 = obj120; questRoot11.QuestSequence = list129; @@ -27764,24 +33268,30 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list136; - num = 5; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span47 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference113 = ref span47[0]; + index = 5; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); obj121.Steps = list138; reference113 = obj121; - ref QuestSequence reference114 = ref span47[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -27789,18 +33299,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2005113u, new Vector3(192.88928f, -26.657532f, 203.60107f), 145); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005113u, new Vector3(192.88928f, -26.657532f, 203.60107f), 145); obj122.Steps = list139; reference114 = obj122; - ref QuestSequence reference115 = ref span47[2]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1010850u, new Vector3(53.3302f, 10.000122f, -10.208313f), 131) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010850u, new Vector3(53.3302f, 10.000122f, -10.208313f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -27811,7 +33326,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list140; reference115 = obj123; - ref QuestSequence reference116 = ref span47[3]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -27819,7 +33335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1010853u, new Vector3(137.25476f, 4f, -20.584473f), 131) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010853u, new Vector3(137.25476f, 4f, -20.584473f), 131) { AethernetShortcut = new AethernetShortcut { @@ -27829,21 +33347,24 @@ public static class AssemblyQuestLoader }; obj124.Steps = list141; reference116 = obj124; - ref QuestSequence reference117 = ref span47[4]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span48 = CollectionsMarshal.AsSpan(list142); - span48[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); obj125.Steps = list142; reference117 = obj125; questRoot12.QuestSequence = list137; @@ -27853,13 +33374,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list143; - num = 8; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span49 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference118 = ref span49[0]; + index = 8; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -27867,26 +33391,32 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); obj126.Steps = list145; reference118 = obj126; - ref QuestSequence reference119 = ref span49[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span50 = CollectionsMarshal.AsSpan(list146); - span50[0] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span50[1] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj127.Steps = list146; reference119 = obj127; - ref QuestSequence reference120 = ref span49[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -27894,35 +33424,43 @@ public static class AssemblyQuestLoader num2 = 5; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span51 = CollectionsMarshal.AsSpan(list147); - span51[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span51[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.01373f, -27.808102f, -369.0958f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.01373f, -27.808102f, -369.0958f), 156) { Fly = true }; - span51[4] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156); obj128.Steps = list147; reference120 = obj128; - ref QuestSequence reference121 = ref span49[3]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -27932,11 +33470,13 @@ public static class AssemblyQuestLoader }; obj129.Steps = list148; reference121 = obj129; - span49[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference122 = ref span49[5]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 5 @@ -27944,34 +33484,41 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156) { StopDistance = 7f }; obj130.Steps = list149; reference122 = obj130; - ref QuestSequence reference123 = ref span49[6]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span52 = CollectionsMarshal.AsSpan(list150); - span52[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span52[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span52[2] = new QuestStep(EInteractionType.Interact, 1010857u, new Vector3(2.5481567f, -1.9957249f, -42.008118f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010857u, new Vector3(2.5481567f, -1.9957249f, -42.008118f), 351); obj131.Steps = list150; reference123 = obj131; - ref QuestSequence reference124 = ref span49[7]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -27979,7 +33526,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) { StopDistance = 7f }; @@ -27992,27 +33541,33 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list152; - num = 7; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span53 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference125 = ref span53[0]; + index = 7; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 5f }; obj133.Steps = list154; reference125 = obj133; - ref QuestSequence reference126 = ref span53[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 @@ -28020,27 +33575,33 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1010924u, new Vector3(-72.129456f, 47f, -8.86554f), 147) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010924u, new Vector3(-72.129456f, 47f, -8.86554f), 147) { Fly = true }; obj134.Steps = list155; reference126 = obj134; - ref QuestSequence reference127 = ref span53[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1010867u, new Vector3(-133.92847f, 59.668938f, -94.22449f), 147) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010867u, new Vector3(-133.92847f, 59.668938f, -94.22449f), 147) { Fly = true }; obj135.Steps = list156; reference127 = obj135; - ref QuestSequence reference128 = ref span53[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -28048,7 +33609,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list157)[0]; + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, null, new Vector3(-255.52438f, 60.28413f, -65.027f), 147) { StopDistance = 1f, @@ -28058,41 +33621,51 @@ public static class AssemblyQuestLoader num3 = 3; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span54 = CollectionsMarshal.AsSpan(list158); - span54[0] = 55u; - span54[1] = 64u; - span54[2] = 3566u; + span6 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span6[num4] = 55u; + num4++; + span6[num4] = 64u; + num4++; + span6[num4] = 3566u; obj137.KillEnemyDataIds = list158; reference129 = obj137; obj136.Steps = list157; reference128 = obj136; - ref QuestSequence reference130 = ref span53[4]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list159)[0]; + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference131 = ref span3[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-264.6515f, 82.28975f, -178.98473f), 147) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span55 = CollectionsMarshal.AsSpan(list160); - span55[0] = 62u; - span55[1] = 3657u; - span55[2] = 3566u; + num4 = 3; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + span6 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span6[num3] = 62u; + num3++; + span6[num3] = 3657u; + num3++; + span6[num3] = 3566u; obj139.KillEnemyDataIds = list160; reference131 = obj139; obj138.Steps = list159; reference130 = obj138; - ref QuestSequence reference132 = ref span53[5]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 @@ -28100,26 +33673,31 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1010876u, new Vector3(-110.36853f, 64.861916f, -127.27557f), 147) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010876u, new Vector3(-110.36853f, 64.861916f, -127.27557f), 147) { Fly = true }; obj140.Steps = list161; reference132 = obj140; - ref QuestSequence reference133 = ref span53[6]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span56 = CollectionsMarshal.AsSpan(list162); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.703922f, 46.983063f, 31.031008f), 147) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.703922f, 46.983063f, 31.031008f), 147) { Fly = true }; - span56[1] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147); obj141.Steps = list162; reference133 = obj141; questRoot14.QuestSequence = list153; @@ -28129,13 +33707,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list163; - num = 6; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span57 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference134 = ref span57[0]; + index = 6; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -28143,7 +33724,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, SkipConditions = new SkipConditions @@ -28156,23 +33739,27 @@ public static class AssemblyQuestLoader }; obj142.Steps = list165; reference134 = obj142; - ref QuestSequence reference135 = ref span57[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span58 = CollectionsMarshal.AsSpan(list166); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.28381f, 31.425474f, 23.662958f), 147) + index2 = 2; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.28381f, 31.425474f, 23.662958f), 147) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.Interact, 1010879u, new Vector3(136.33923f, 31.9962f, 16.098267f), 147); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010879u, new Vector3(136.33923f, 31.9962f, 16.098267f), 147); obj143.Steps = list166; reference135 = obj143; - ref QuestSequence reference136 = ref span57[2]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -28180,22 +33767,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj144.Steps = list167; reference136 = obj144; - ref QuestSequence reference137 = ref span57[3]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Duty, null, null, 351) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 351) { DutyOptions = new DutyOptions { @@ -28204,11 +33796,13 @@ public static class AssemblyQuestLoader }; obj145.Steps = list168; reference137 = obj145; - span57[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference138 = ref span57[5]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -28216,7 +33810,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); obj146.Steps = list169; reference138 = obj146; questRoot15.QuestSequence = list164; @@ -28226,24 +33822,30 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list170; - num = 5; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span59 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference139 = ref span59[0]; + index = 5; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj147.Steps = list172; reference139 = obj147; - ref QuestSequence reference140 = ref span59[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -28251,40 +33853,49 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span60 = CollectionsMarshal.AsSpan(list173); - span60[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span60[1] = new QuestStep(EInteractionType.Interact, 1010903u, new Vector3(24.887451f, -1f, -1.0223389f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010903u, new Vector3(24.887451f, -1f, -1.0223389f), 351); obj148.Steps = list173; reference140 = obj148; - ref QuestSequence reference141 = ref span59[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span61 = CollectionsMarshal.AsSpan(list174); - span61[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2 = 5; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span61[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span61[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span61[4] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj149.Steps = list174; reference141 = obj149; - ref QuestSequence reference142 = ref span59[3]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -28292,37 +33903,44 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span62 = CollectionsMarshal.AsSpan(list175); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-145.66704f, 43.906273f, -189.70813f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-145.66704f, 43.906273f, -189.70813f), 156) { Fly = true }; - span62[2] = new QuestStep(EInteractionType.Interact, 1010929u, new Vector3(-146.80713f, 43.495255f, -187.39612f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010929u, new Vector3(-146.80713f, 43.495255f, -187.39612f), 156); obj150.Steps = list175; reference142 = obj150; - ref QuestSequence reference143 = ref span59[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span63 = CollectionsMarshal.AsSpan(list176); - span63[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span63[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span63[2] = new QuestStep(EInteractionType.CompleteQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); obj151.Steps = list176; reference143 = obj151; questRoot16.QuestSequence = list171; @@ -28332,13 +33950,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list177); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span64 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference144 = ref span64[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + span2 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -28346,25 +33967,31 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); obj152.Steps = list179; reference144 = obj152; - ref QuestSequence reference145 = ref span64[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1010931u, new Vector3(232.50171f, 302f, -190.93622f), 155) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010931u, new Vector3(232.50171f, 302f, -190.93622f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj153.Steps = list180; reference145 = obj153; - ref QuestSequence reference146 = ref span64[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 @@ -28372,65 +33999,91 @@ public static class AssemblyQuestLoader num2 = 5; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span65 = CollectionsMarshal.AsSpan(list181); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) { Fly = true }; - ref QuestStep reference147 = ref span65[1]; + index2++; + ref QuestStep reference147 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1010942u, new Vector3(-132.12793f, 304.28772f, -298.3902f), 155); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span66 = CollectionsMarshal.AsSpan(list182); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list182); + 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); questStep3.CompletionQuestVariablesFlags = list182; reference147 = questStep3; - ref QuestStep reference148 = ref span65[2]; + index2++; + ref QuestStep reference148 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1010940u, new Vector3(-143.23651f, 304.15378f, -289.35687f), 155); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span67 = CollectionsMarshal.AsSpan(list183); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + span7 = CollectionsMarshal.AsSpan(list183); + 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); questStep4.CompletionQuestVariablesFlags = list183; reference148 = questStep4; - ref QuestStep reference149 = ref span65[3]; + index2++; + ref QuestStep reference149 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1010941u, new Vector3(-157.00012f, 304.1538f, -308.1255f), 155); num3 = 6; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span68 = CollectionsMarshal.AsSpan(list184); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list184); + 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); questStep5.CompletionQuestVariablesFlags = list184; reference149 = questStep5; - span65[4] = new QuestStep(EInteractionType.Interact, 1010939u, new Vector3(-152.69702f, 304.1538f, -321.21765f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010939u, new Vector3(-152.69702f, 304.1538f, -321.21765f), 155); obj154.Steps = list181; reference146 = obj154; - ref QuestSequence reference150 = ref span64[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); obj155.Steps = list185; reference150 = obj155; questRoot17.QuestSequence = list178; @@ -28440,13 +34093,16 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span69 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference151 = ref span69[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -28454,27 +34110,33 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); obj156.Steps = list188; reference151 = obj156; - ref QuestSequence reference152 = ref span69[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span70 = CollectionsMarshal.AsSpan(list189); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6446f, 303.12494f, -199.8039f), 155) + index2 = 2; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6446f, 303.12494f, -199.8039f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span70[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj157.Steps = list189; reference152 = obj157; - ref QuestSequence reference153 = ref span69[2]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -28482,41 +34144,50 @@ public static class AssemblyQuestLoader num2 = 3; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span71 = CollectionsMarshal.AsSpan(list190); - ref QuestStep reference154 = ref span71[0]; + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference154 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155); - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + span4 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE603_00372_FORTEMPSGUARD00054_Q1_000_1") }; questStep6.DialogueChoices = list191; reference154 = questStep6; - span71[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0611796f, 0.0149827f, 4.914047f), 395) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0611796f, 0.0149827f, 4.914047f), 395) { DisableNavmesh = true }; - span71[2] = new QuestStep(EInteractionType.Interact, 1009974u, new Vector3(3.8604736f, 0.014982708f, -0.015319824f), 395) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009974u, new Vector3(3.8604736f, 0.014982708f, -0.015319824f), 395) { DisableNavmesh = true }; obj158.Steps = list190; reference153 = obj158; - ref QuestSequence reference155 = ref span69[3]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span72 = CollectionsMarshal.AsSpan(list192); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0818396f, 0f, 6.262639f), 395); - span72[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.7646873f, 0.0149827f, 6.104938f), 395); - span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); + index2 = 3; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0818396f, 0f, 6.262639f), 395); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.7646873f, 0.0149827f, 6.104938f), 395); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); obj159.Steps = list192; reference155 = obj159; questRoot18.QuestSequence = list187; @@ -28526,13 +34197,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list193; - num = 2; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span73 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference156 = ref span73[0]; + index = 2; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -28540,28 +34214,34 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); obj160.Steps = list195; reference156 = obj160; - ref QuestSequence reference157 = ref span73[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span74 = CollectionsMarshal.AsSpan(list196); - span74[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span74[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span74[2] = new QuestStep(EInteractionType.CompleteQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); obj161.Steps = list196; reference157 = obj161; questRoot19.QuestSequence = list194; @@ -28571,13 +34251,16 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list197); + index = 0; + span[index] = "liza"; questRoot20.Author = list197; - num = 4; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span75 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference158 = ref span75[0]; + index = 4; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + span2 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -28585,19 +34268,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj162.Steps = list199; reference158 = obj162; - ref QuestSequence reference159 = ref span75[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - Span span76 = CollectionsMarshal.AsSpan(list200); - span76[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-61.749943f, 0.9481318f, -38.52144f), 148) + index2 = 2; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-61.749943f, 0.9481318f, -38.52144f), 148) { JumpDestination = new JumpDestination { @@ -28605,10 +34292,12 @@ public static class AssemblyQuestLoader StopDistance = 3f } }; - span76[1] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj163.Steps = list200; reference159 = obj163; - ref QuestSequence reference160 = ref span75[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -28616,7 +34305,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list201)[0]; + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-171.87439f, 1.7183347f, -70.586975f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -28624,36 +34315,47 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - ref ComplexCombatData reference162 = ref CollectionsMarshal.AsSpan(list202)[0]; + Span span8 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + ref ComplexCombatData reference162 = ref span8[num4]; ComplexCombatData obj166 = new ComplexCombatData { DataId = 771u }; - int num4 = 6; - List list203 = new List(num4); - CollectionsMarshal.SetCount(list203, num4); - Span span77 = CollectionsMarshal.AsSpan(list203); - span77[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = null; + int num5 = 6; + List list203 = new List(num5); + CollectionsMarshal.SetCount(list203, num5); + span7 = CollectionsMarshal.AsSpan(list203); + int num6 = 0; + span7[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span7[num6] = null; + num6++; + span7[num6] = null; + num6++; + span7[num6] = null; + num6++; + span7[num6] = null; + num6++; + span7[num6] = null; obj166.CompletionQuestVariablesFlags = list203; reference162 = obj166; obj165.ComplexCombatData = list202; reference161 = obj165; obj164.Steps = list201; reference160 = obj164; - ref QuestSequence reference163 = ref span75[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj167.Steps = list204; reference163 = obj167; questRoot20.QuestSequence = list198; @@ -28663,13 +34365,16 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list205); + index = 0; + span[index] = "liza"; questRoot21.Author = list205; - num = 3; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span78 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference164 = ref span78[0]; + index = 3; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + span2 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -28677,68 +34382,93 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000435u, new Vector3(-127.06189f, 4.1490583f, -44.296997f), 148) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000435u, new Vector3(-127.06189f, 4.1490583f, -44.296997f), 148) { StopDistance = 5f }; obj168.Steps = list207; reference164 = obj168; - ref QuestSequence reference165 = ref span78[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 8; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span79 = CollectionsMarshal.AsSpan(list208); - ref QuestStep reference166 = ref span79[0]; + index2 = 8; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2000750u, new Vector3(-151.26276f, 14.358704f, -73.014465f), 148); - num3 = 6; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span80 = CollectionsMarshal.AsSpan(list209); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + span7 = CollectionsMarshal.AsSpan(list209); + 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); questStep7.CompletionQuestVariablesFlags = list209; reference166 = questStep7; - ref QuestStep reference167 = ref span79[1]; + num2++; + ref QuestStep reference167 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2000749u, new Vector3(-164.11078f, 23.025818f, -86.167725f), 148); num3 = 6; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span81 = CollectionsMarshal.AsSpan(list210); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list210); + 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); questStep8.CompletionQuestVariablesFlags = list210; reference167 = questStep8; - ref QuestStep reference168 = ref span79[2]; + num2++; + ref QuestStep reference168 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.18181f, 31.66525f, -91.84381f), 148); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span82 = CollectionsMarshal.AsSpan(list211); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + span7 = CollectionsMarshal.AsSpan(list211); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list211; skipConditions13.StepIf = skipStepConditions3; questStep9.SkipConditions = skipConditions13; reference168 = questStep9; - ref QuestStep reference169 = ref span79[3]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep obj170 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-184.41872f, 29.940958f, -93.809525f), 148) { DisableNavmesh = true @@ -28748,35 +34478,49 @@ public static class AssemblyQuestLoader num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span83 = CollectionsMarshal.AsSpan(list212); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list212); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list212; skipConditions14.StepIf = skipStepConditions4; obj170.SkipConditions = skipConditions14; reference169 = obj170; - ref QuestStep reference170 = ref span79[4]; + num2++; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 2000748u, new Vector3(-189.25769f, 30.44165f, -98.83276f), 148) { DisableNavmesh = true }; - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span84 = CollectionsMarshal.AsSpan(list213); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + span7 = CollectionsMarshal.AsSpan(list213); + 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); obj171.CompletionQuestVariablesFlags = list213; reference170 = obj171; - ref QuestStep reference171 = ref span79[5]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj172 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.84062f, 31.476957f, -91.05707f), 148) { DisableNavmesh = true @@ -28786,36 +34530,50 @@ public static class AssemblyQuestLoader num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span85 = CollectionsMarshal.AsSpan(list214); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list214); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list214; skipConditions15.StepIf = skipStepConditions5; obj172.SkipConditions = skipConditions15; reference171 = obj172; - ref QuestStep reference172 = ref span79[6]; + num2++; + ref QuestStep reference172 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.76294f, 23.022184f, -76.32822f), 148); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span86 = CollectionsMarshal.AsSpan(list215); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + span7 = CollectionsMarshal.AsSpan(list215); + 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)1, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list215; skipConditions16.StepIf = skipStepConditions6; questStep10.SkipConditions = skipConditions16; reference172 = questStep10; - ref QuestStep reference173 = ref span79[7]; + num2++; + ref QuestStep reference173 = ref span3[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 2000751u, new Vector3(-169.3294f, 18.600708f, -72.129456f), 148) { DisableNavmesh = true @@ -28823,18 +34581,25 @@ public static class AssemblyQuestLoader num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span87 = CollectionsMarshal.AsSpan(list216); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list216); + 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); obj173.CompletionQuestVariablesFlags = list216; reference173 = obj173; obj169.Steps = list208; reference165 = obj169; - ref QuestSequence reference174 = ref span78[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -28842,13 +34607,15 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span88 = CollectionsMarshal.AsSpan(list217); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.56161f, 0.63666093f, -61.089085f), 148) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.56161f, 0.63666093f, -61.089085f), 148) { DisableNavmesh = true, Comment = "Jumping back up isn't trivial" }; - span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); obj174.Steps = list217; reference174 = obj174; questRoot21.QuestSequence = list206; @@ -28858,24 +34625,30 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot22.Author = list218; - num = 4; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span89 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference175 = ref span89[0]; + index = 4; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); obj175.Steps = list220; reference175 = obj175; - ref QuestSequence reference176 = ref span89[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -28883,21 +34656,27 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj176.Steps = list221; reference176 = obj176; - ref QuestSequence reference177 = ref span89[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2000689u, new Vector3(-95.47571f, 3.4942627f, -150.80493f), 148); + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2000689u, new Vector3(-95.47571f, 3.4942627f, -150.80493f), 148); obj177.Steps = list222; reference177 = obj177; - ref QuestSequence reference178 = ref span89[3]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -28905,7 +34684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj178.Steps = list223; reference178 = obj178; questRoot22.QuestSequence = list219; @@ -28915,24 +34696,30 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list224); + index = 0; + span[index] = "liza"; questRoot23.Author = list224; - num = 4; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span90 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference179 = ref span90[0]; + index = 4; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + span2 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj179.Steps = list226; reference179 = obj179; - ref QuestSequence reference180 = ref span90[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 @@ -28940,21 +34727,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1001280u, new Vector3(89.28052f, -6.351089f, -121.96539f), 148); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001280u, new Vector3(89.28052f, -6.351089f, -121.96539f), 148); obj180.Steps = list227; reference180 = obj180; - ref QuestSequence reference181 = ref span90[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); obj181.Steps = list228; reference181 = obj181; - ref QuestSequence reference182 = ref span90[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -28962,7 +34755,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); obj182.Steps = list229; reference182 = obj182; questRoot23.QuestSequence = list225; @@ -28972,24 +34767,30 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list230); + index = 0; + span[index] = "liza"; questRoot24.Author = list230; - num = 3; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span91 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference183 = ref span91[0]; + index = 3; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + span2 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); obj183.Steps = list232; reference183 = obj183; - ref QuestSequence reference184 = ref span91[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -28997,28 +34798,35 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list233)[0]; + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference185 = ref span3[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2001006u, new Vector3(99.65662f, -15.732117f, 193.01135f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 12u; + num4 = 1; + List list234 = new List(num4); + CollectionsMarshal.SetCount(list234, num4); + span6 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span6[num3] = 12u; obj185.KillEnemyDataIds = list234; reference185 = obj185; obj184.Steps = list233; reference184 = obj184; - ref QuestSequence reference186 = ref span91[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); obj186.Steps = list235; reference186 = obj186; questRoot24.QuestSequence = list231; @@ -29028,13 +34836,16 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "liza"; questRoot25.Author = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span92 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference187 = ref span92[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -29042,21 +34853,27 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); obj187.Steps = list238; reference187 = obj187; - ref QuestSequence reference188 = ref span92[1]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1002932u, new Vector3(-65.049255f, -36.79766f, 477.59204f), 148); + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002932u, new Vector3(-65.049255f, -36.79766f, 477.59204f), 148); obj188.Steps = list239; reference188 = obj188; - ref QuestSequence reference189 = ref span92[2]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -29064,7 +34881,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); obj189.Steps = list240; reference189 = obj189; questRoot25.QuestSequence = list237; @@ -29074,24 +34893,30 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "liza"; questRoot26.Author = list241; - num = 3; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span93 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference190 = ref span93[0]; + index = 3; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); obj190.Steps = list243; reference190 = obj190; - ref QuestSequence reference191 = ref span93[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -29099,8 +34924,9 @@ public static class AssemblyQuestLoader num2 = 3; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span94 = CollectionsMarshal.AsSpan(list244); - ref QuestStep reference192 = ref span94[0]; + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + ref QuestStep reference192 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2001018u, new Vector3(155.47412f, -23.66681f, 490.74524f), 148) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -29108,48 +34934,67 @@ public static class AssemblyQuestLoader num3 = 1; List list245 = new List(num3); CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 26u; + span6 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span6[num4] = 26u; obj192.KillEnemyDataIds = list245; reference192 = obj192; - ref QuestStep reference193 = ref span94[1]; + index2++; + ref QuestStep reference193 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001016u, new Vector3(152.60547f, -23.758362f, 494.71265f), 148); - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span95 = CollectionsMarshal.AsSpan(list246); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + span7 = CollectionsMarshal.AsSpan(list246); + 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); questStep11.CompletionQuestVariablesFlags = list246; reference193 = questStep11; - ref QuestStep reference194 = ref span94[2]; + index2++; + ref QuestStep reference194 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2001018u, new Vector3(155.47412f, -23.66681f, 490.74524f), 148); num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span96 = CollectionsMarshal.AsSpan(list247); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list247); + 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); questStep12.CompletionQuestVariablesFlags = list247; reference194 = questStep12; obj191.Steps = list244; reference191 = obj191; - ref QuestSequence reference195 = ref span93[2]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -29162,13 +35007,16 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list249); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list249; - num = 6; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span97 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference196 = ref span97[0]; + index = 6; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + span2 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -29176,26 +35024,32 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); obj194.Steps = list251; reference196 = obj194; - ref QuestSequence reference197 = ref span97[1]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span98 = CollectionsMarshal.AsSpan(list252); - span98[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span98[1] = new QuestStep(EInteractionType.Interact, 1010911u, new Vector3(-3.7385254f, 0.01804012f, -9.353821f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010911u, new Vector3(-3.7385254f, 0.01804012f, -9.353821f), 351); obj195.Steps = list252; reference197 = obj195; - ref QuestSequence reference198 = ref span97[2]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -29203,26 +35057,32 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span99 = CollectionsMarshal.AsSpan(list253); - span99[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span99[1] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj196.Steps = list253; reference198 = obj196; - ref QuestSequence reference199 = ref span97[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156); obj197.Steps = list254; reference199 = obj197; - ref QuestSequence reference200 = ref span97[4]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -29230,25 +35090,33 @@ public static class AssemblyQuestLoader num2 = 6; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span100 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference201 = ref span100[0]; + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + ref QuestStep reference201 = ref span3[index2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1010958u, new Vector3(47.745483f, 20.665741f, -685.1759f), 156) { Fly = true }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span101 = CollectionsMarshal.AsSpan(list256); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + span7 = CollectionsMarshal.AsSpan(list256); + 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)1, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list256; reference201 = obj199; - ref QuestStep reference202 = ref span100[1]; + index2++; + ref QuestStep reference202 = ref span3[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1010955u, new Vector3(103.440796f, 31.606796f, -739.559f), 156) { Fly = true @@ -29256,67 +35124,92 @@ public static class AssemblyQuestLoader num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span102 = CollectionsMarshal.AsSpan(list257); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list257); + 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); obj200.CompletionQuestVariablesFlags = list257; reference202 = obj200; - span100[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.349144f, 50f, -776.29706f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.349144f, 50f, -776.29706f), 156) { Fly = true }; - ref QuestStep reference203 = ref span100[3]; + index2++; + ref QuestStep reference203 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1010956u, new Vector3(68.86389f, 50f, -774.3496f), 156); - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span103 = CollectionsMarshal.AsSpan(list258); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list258 = new List(num4); + CollectionsMarshal.SetCount(list258, num4); + span7 = CollectionsMarshal.AsSpan(list258); + 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); questStep13.CompletionQuestVariablesFlags = list258; reference203 = questStep13; - span100[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) { Fly = true }; - ref QuestStep reference204 = ref span100[5]; + index2++; + ref QuestStep reference204 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1010957u, new Vector3(33.676636f, 29f, -789.08984f), 156); num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span104 = CollectionsMarshal.AsSpan(list259); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list259); + 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); questStep14.CompletionQuestVariablesFlags = list259; reference204 = questStep14; obj198.Steps = list255; reference200 = obj198; - ref QuestSequence reference205 = ref span97[5]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span105 = CollectionsMarshal.AsSpan(list260); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) + index2 = 2; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) { Mount = true }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) { Fly = true }; @@ -29329,13 +35222,16 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; questRoot28.Author = list261; - num = 2; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span106 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference206 = ref span106[0]; + index = 2; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -29343,24 +35239,29 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj202.Steps = list263; reference206 = obj202; - ref QuestSequence reference207 = ref span106[1]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span107 = CollectionsMarshal.AsSpan(list264); - span107[0] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002721u, new Vector3(187.9148f, 98.5214f, -193.19452f), 134) + index2 = 2; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002721u, new Vector3(187.9148f, 98.5214f, -193.19452f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, TaxiStandId = (byte)22 }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); obj203.Steps = list264; reference207 = obj203; questRoot28.QuestSequence = list262; @@ -29374,13 +35275,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -29388,25 +35292,31 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2001255u, new Vector3(-320.57678f, 25.833496f, -527.5502f), 134) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001255u, new Vector3(-320.57678f, 25.833496f, -527.5502f), 134) { PickUpItemId = 2000342u, Comment = "Technically triggers combat, but can be ignored" }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -29414,21 +35324,26 @@ public static class AssemblyQuestLoader num2 = 5; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-380.10605f, 32.598312f, -608.40186f), 134) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-380.10605f, 32.598312f, -608.40186f), 134) { TargetTerritoryId = (ushort)138 }; - span2[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002722u, new Vector3(667.68884f, 9.882242f, 487.32727f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002722u, new Vector3(667.68884f, 9.882242f, 487.32727f), 138) { TaxiStandId = (byte)23 }; - span2[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaSwiftperch }; - span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(652.74164f, 8.129893f, 522.6646f), 138); - span2[4] = new QuestStep(EInteractionType.CompleteQuest, 1003244u, new Vector3(650.72095f, 7.856781f, 527.21436f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(652.74164f, 8.129893f, 522.6646f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003244u, new Vector3(650.72095f, 7.856781f, 527.21436f), 138) { StopDistance = 6f }; @@ -29441,27 +35356,33 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 7; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span3[0]; + index = 7; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138) { StopDistance = 7f }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span3[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -29469,24 +35390,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.UseItem, 2001260u, new Vector3(602.50244f, 28.94629f, 361.01306f), 138) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2001260u, new Vector3(602.50244f, 28.94629f, 361.01306f), 138) { ItemId = 2000343u }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 @@ -29494,7 +35421,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2001261u, new Vector3(602.50244f, 28.976807f, 361.0437f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -29502,23 +35431,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 17u; + Span span4 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span4[index3] = 17u; obj8.KillEnemyDataIds = list12; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span3[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 5 @@ -29526,18 +35461,23 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span3[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -29555,13 +35495,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -29569,47 +35512,57 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span5 = CollectionsMarshal.AsSpan(list19); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.438343f, 44.499928f, 183.94363f), 128) + index2 = 4; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.438343f, 44.499928f, 183.94363f), 128) { TargetTerritoryId = (ushort)135 }; - span5[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002720u, new Vector3(49.271362f, 29.315498f, 605.27954f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002720u, new Vector3(49.271362f, 29.315498f, 605.27954f), 135) { TaxiStandId = (byte)27 }; - span5[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span5[3] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list17; AddQuest(questId3, questRoot3); - QuestId questId4 = new QuestId(407); + QuestId questId4 = new QuestId(412); QuestRoot questRoot4 = new QuestRoot(); num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot4.Author = list20; - num = 5; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span6 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span6[0]; + index = 2; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -29617,476 +35570,410 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span6[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { - Sequence = 1 + Sequence = byte.MaxValue + }; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135) + { + Emote = EEmote.Doubt }; - 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; - ref QuestSequence reference16 = ref span6[2]; + questRoot4.QuestSequence = list21; + AddQuest(questId4, questRoot4); + QuestId questId5 = new QuestId(413); + QuestRoot questRoot5 = new QuestRoot(); + num = 1; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; + questRoot5.Author = list24; + index = 5; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { - Sequence = 2 - }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - span7[0] = new QuestStep(EInteractionType.Emote, 1002450u, new Vector3(42.83203f, 71.30162f, 389.0287f), 135) - { - Emote = EEmote.Soothe - }; - span7[1] = new QuestStep(EInteractionType.Emote, 1002449u, new Vector3(41.7334f, 71.30162f, 389.63904f), 135) - { - Emote = EEmote.Soothe - }; - obj16.Steps = list24; - reference16 = obj16; - ref QuestSequence reference17 = ref span6[3]; - QuestSequence obj17 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1002447u, new Vector3(113.54236f, 68.15523f, 376.21106f), 135); - obj17.Steps = list25; - reference17 = obj17; - ref QuestSequence reference18 = ref span6[4]; - QuestSequence obj18 = new QuestSequence - { - Sequence = byte.MaxValue + Sequence = 0 }; num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); - obj18.Steps = list26; - reference18 = obj18; - questRoot4.QuestSequence = list21; - AddQuest(questId4, questRoot4); - QuestId questId5 = new QuestId(411); - QuestRoot questRoot5 = new QuestRoot(); - num = 1; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "CryoTechnic"; - questRoot5.Author = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span8 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference19 = ref span8[0]; - QuestSequence obj19 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135); - obj19.Steps = list29; - reference19 = obj19; - ref QuestSequence reference20 = ref span8[1]; - QuestSequence obj20 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + obj16.Steps = list26; + reference16 = obj16; + num++; + ref QuestSequence reference17 = ref span2[num]; + QuestSequence obj17 = new QuestSequence { Sequence = 1 }; + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + obj17.Steps = list27; + reference17 = obj17; + num++; + ref QuestSequence reference18 = ref span2[num]; + QuestSequence obj18 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); + obj18.Steps = list28; + reference18 = obj18; + num++; + ref QuestSequence reference19 = ref span2[num]; + QuestSequence obj19 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002463u, new Vector3(249.89697f, 6.194409f, 773.12866f), 135); + obj19.Steps = list29; + reference19 = obj19; + num++; + ref QuestSequence reference20 = ref span2[num]; + QuestSequence obj20 = new QuestSequence + { + Sequence = byte.MaxValue + }; 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, null, new Vector3(63.34564f, 57.438232f, 719.98425f), 135) - { - EnemySpawnType = EEnemySpawnType.OverworldEnemies - }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new ComplexCombatData - { - DataId = 138u, - NameId = 399u, - MinimumKillCount = 4u - }; - obj21.ComplexCombatData = list31; - reference21 = obj21; + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference22 = ref span8[2]; + questRoot5.QuestSequence = list25; + AddQuest(questId5, questRoot5); + QuestId questId6 = new QuestId(414); + QuestRoot questRoot6 = new QuestRoot(); + num = 1; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; + questRoot6.Author = list31; + index = 6; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference21 = ref span2[num]; + QuestSequence obj21 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + obj21.Steps = list33; + reference21 = obj21; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); + obj22.Steps = list34; + reference22 = obj22; + num++; + ref QuestSequence reference23 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135); - obj22.Steps = list32; - reference22 = obj22; - ref QuestSequence reference23 = ref span8[3]; - QuestSequence obj23 = new QuestSequence + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.18569f, 53.59632f, 674.99817f), 135); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002651u, new Vector3(107.65234f, 54.64395f, 674.9523f), 135) { - Sequence = byte.MaxValue + StopDistance = 5f }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135) - { - AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks - }; - obj23.Steps = list33; + obj23.Steps = list35; reference23 = obj23; - questRoot5.QuestSequence = list28; - AddQuest(questId5, questRoot5); - QuestId questId6 = new QuestId(412); - QuestRoot questRoot6 = new QuestRoot(); - num = 1; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; - questRoot6.Author = list34; - num = 2; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span9 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference24 = ref span9[0]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { - Sequence = 0 + Sequence = 3 }; 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; - ref QuestSequence reference25 = ref span9[1]; - QuestSequence obj25 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135) - { - Emote = EEmote.Doubt - }; - obj25.Steps = list37; - reference25 = obj25; - questRoot6.QuestSequence = list35; - AddQuest(questId6, questRoot6); - QuestId questId7 = new QuestId(413); - QuestRoot questRoot7 = new QuestRoot(); - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; - questRoot7.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span10 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span10[0]; - QuestSequence obj26 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); - obj26.Steps = list40; - reference26 = obj26; - ref QuestSequence reference27 = ref span10[1]; - QuestSequence obj27 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); - obj27.Steps = list41; - reference27 = obj27; - ref QuestSequence reference28 = ref span10[2]; - QuestSequence obj28 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); - obj28.Steps = list42; - reference28 = obj28; - ref QuestSequence reference29 = ref span10[3]; - QuestSequence obj29 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1002463u, new Vector3(249.89697f, 6.194409f, 773.12866f), 135); - obj29.Steps = list43; - reference29 = obj29; - ref QuestSequence reference30 = ref span10[4]; - QuestSequence obj30 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); - obj30.Steps = list44; - reference30 = obj30; - questRoot7.QuestSequence = list39; - AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(414); - QuestRoot questRoot8 = new QuestRoot(); - num = 1; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; - questRoot8.Author = list45; - num = 6; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span11 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference31 = ref span11[0]; - QuestSequence obj31 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); - obj31.Steps = list47; - reference31 = obj31; - ref QuestSequence reference32 = ref span11[1]; - QuestSequence obj32 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); - obj32.Steps = list48; - reference32 = obj32; - ref QuestSequence reference33 = ref span11[2]; - QuestSequence obj33 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span12 = CollectionsMarshal.AsSpan(list49); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.18569f, 53.59632f, 674.99817f), 135); - span12[1] = new QuestStep(EInteractionType.Interact, 1002651u, new Vector3(107.65234f, 54.64395f, 674.9523f), 135) - { - StopDistance = 5f - }; - obj33.Steps = list49; - reference33 = obj33; - ref QuestSequence reference34 = ref span11[3]; - QuestSequence obj34 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list50)[0]; - QuestStep obj35 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; + QuestStep obj25 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = "(Phase 1, second enemy group) Stuck with enemy being out of sight -- but still able to attack you (tested on ACN)"; - singlePlayerDutyOptions.Notes = list51; - obj35.SinglePlayerDutyOptions = singlePlayerDutyOptions; - reference35 = obj35; - obj34.Steps = list50; - reference34 = obj34; - ref QuestSequence reference36 = ref span11[4]; - QuestSequence obj36 = new QuestSequence + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + span = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span[num3] = "(Phase 1, second enemy group) Stuck with enemy being out of sight -- but still able to attack you (tested on ACN)"; + singlePlayerDutyOptions.Notes = list37; + obj25.SinglePlayerDutyOptions = singlePlayerDutyOptions; + reference25 = obj25; + obj24.Steps = list36; + reference24 = obj24; + num++; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); - obj36.Steps = list52; - reference36 = obj36; - ref QuestSequence reference37 = ref span11[5]; - QuestSequence obj37 = new QuestSequence + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + obj26.Steps = list38; + reference26 = obj26; + num++; + ref QuestSequence reference27 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); - obj37.Steps = list53; - reference37 = obj37; - questRoot8.QuestSequence = list46; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(415); - QuestRoot questRoot9 = new QuestRoot(); + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + obj27.Steps = list39; + reference27 = obj27; + questRoot6.QuestSequence = list32; + AddQuest(questId6, questRoot6); + QuestId questId7 = new QuestId(415); + QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; - questRoot9.Author = list54; - num = 5; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span13 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference38 = ref span13[0]; - QuestSequence obj38 = new QuestSequence + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; + questRoot7.Author = list40; + index = 5; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135); - obj38.Steps = list56; - reference38 = obj38; - ref QuestSequence reference39 = ref span13[1]; - QuestSequence obj39 = new QuestSequence + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135); + obj28.Steps = list42; + reference28 = obj28; + num++; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); - obj39.Steps = list57; - reference39 = obj39; - ref QuestSequence reference40 = ref span13[2]; - QuestSequence obj40 = new QuestSequence + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); + obj29.Steps = list43; + reference29 = obj29; + num++; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - 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) + index2 = 3; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; + QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2000769u, new Vector3(-145.09808f, 1.0527954f, 709.10205f), 135) { StopDistance = 4f }; num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span15 = CollectionsMarshal.AsSpan(list59); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj41.CompletionQuestVariablesFlags = list59; - reference41 = obj41; - ref QuestStep reference42 = ref span14[1]; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + Span span5 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj31.CompletionQuestVariablesFlags = list45; + reference31 = obj31; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2000770u, new Vector3(-185.68707f, -0.13739014f, 694.6669f), 135); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span16 = CollectionsMarshal.AsSpan(list60); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep.CompletionQuestVariablesFlags = list60; - reference42 = questStep; - ref QuestStep reference43 = ref span14[2]; + index3 = 6; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep.CompletionQuestVariablesFlags = list46; + reference32 = questStep; + num2++; + ref QuestStep reference33 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2000771u, new Vector3(-168.84113f, 1.9683228f, 659.327f), 135); num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span17 = CollectionsMarshal.AsSpan(list61); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list61; - reference43 = questStep2; - obj40.Steps = list58; - reference40 = obj40; - ref QuestSequence reference44 = ref span13[3]; - QuestSequence obj42 = new QuestSequence + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + span5 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list47; + reference33 = questStep2; + obj30.Steps = list44; + reference30 = obj30; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj32 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); - obj42.Steps = list62; - reference44 = obj42; - ref QuestSequence reference45 = ref span13[4]; - QuestSequence obj43 = new QuestSequence + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); + obj32.Steps = list48; + reference34 = obj32; + num++; + ref QuestSequence reference35 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - obj43.Steps = list63; - reference45 = obj43; - questRoot9.QuestSequence = list55; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(418); - QuestRoot questRoot10 = new QuestRoot(); + obj33.Steps = list49; + reference35 = obj33; + questRoot7.QuestSequence = list41; + AddQuest(questId7, questRoot7); + QuestId questId8 = new QuestId(418); + QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; - questRoot10.Author = list64; - num = 7; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span18 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference46 = ref span18[0]; - QuestSequence obj44 = new QuestSequence + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "JerryWester"; + questRoot8.Author = list50; + index = 7; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -30097,17 +35984,20 @@ public static class AssemblyQuestLoader } } }; - obj44.Steps = list66; - reference46 = obj44; - ref QuestSequence reference47 = ref span18[1]; - QuestSequence obj45 = new QuestSequence + obj34.Steps = list52; + reference36 = obj34; + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30116,239 +36006,286 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj45.Steps = list67; - reference47 = obj45; - ref QuestSequence reference48 = ref span18[2]; - QuestSequence obj46 = new QuestSequence + obj35.Steps = list53; + reference37 = obj35; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); - obj46.Steps = list68; - reference48 = obj46; - ref QuestSequence reference49 = ref span18[3]; - QuestSequence obj47 = new QuestSequence + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); + obj36.Steps = list54; + reference38 = obj36; + num++; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span19 = CollectionsMarshal.AsSpan(list69); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span19[1] = new QuestStep(EInteractionType.Interact, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) { Fly = true }; - obj47.Steps = list69; - reference49 = obj47; - ref QuestSequence reference50 = ref span18[4]; - QuestSequence obj48 = new QuestSequence + obj37.Steps = list55; + reference39 = obj37; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 4 }; 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) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; + QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(-497.33295f, 206.35991f, -363.85968f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span20 = CollectionsMarshal.AsSpan(list71); - span20[0] = 387u; - span20[1] = 3659u; - obj49.KillEnemyDataIds = list71; - reference51 = obj49; - obj48.Steps = list70; - reference50 = obj48; - ref QuestSequence reference52 = ref span18[5]; - QuestSequence obj50 = new QuestSequence + index3 = 2; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span4 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span4[num3] = 387u; + num3++; + span4[num3] = 3659u; + obj39.KillEnemyDataIds = list57; + reference41 = obj39; + obj38.Steps = list56; + reference40 = obj38; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; - QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(127.06116f, 373.5079f, -653.1907f), 155) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference43 = ref span3[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(127.06116f, 373.5079f, -653.1907f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span21 = CollectionsMarshal.AsSpan(list73); - span21[0] = 398u; - span21[1] = 3658u; - obj51.KillEnemyDataIds = list73; - reference53 = obj51; - obj50.Steps = list72; - reference52 = obj50; - ref QuestSequence reference54 = ref span18[6]; - QuestSequence obj52 = new QuestSequence + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + span4 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span4[index3] = 398u; + index3++; + span4[index3] = 3658u; + obj41.KillEnemyDataIds = list59; + reference43 = obj41; + obj40.Steps = list58; + reference42 = obj40; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span22 = CollectionsMarshal.AsSpan(list74); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) { Fly = true }; - obj52.Steps = list74; - reference54 = obj52; - questRoot10.QuestSequence = list65; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(420); - QuestRoot questRoot11 = new QuestRoot(); + obj42.Steps = list60; + reference44 = obj42; + questRoot8.QuestSequence = list51; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(420); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; - questRoot11.Author = list75; - num = 5; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span23 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference55 = ref span23[0]; - QuestSequence obj53 = new QuestSequence + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "JerryWester"; + questRoot9.Author = list61; + index = 5; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj53.Steps = list77; - reference55 = obj53; - ref QuestSequence reference56 = ref span23[1]; - QuestSequence obj54 = new QuestSequence + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj43.Steps = list63; + reference45 = obj43; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span24 = CollectionsMarshal.AsSpan(list78); - span24[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span24[1] = new QuestStep(EInteractionType.Interact, 2005060u, new Vector3(-4.135254f, 0.015197754f, -9.628479f), 351); - obj54.Steps = list78; - reference56 = obj54; - ref QuestSequence reference57 = ref span23[2]; - QuestSequence obj55 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005060u, new Vector3(-4.135254f, 0.015197754f, -9.628479f), 351); + obj44.Steps = list64; + reference46 = obj44; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1011612u, new Vector3(7.736328f, 0f, -8.438293f), 351); - obj55.Steps = list79; - reference57 = obj55; - ref QuestSequence reference58 = ref span23[3]; - QuestSequence obj56 = new QuestSequence + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011612u, new Vector3(7.736328f, 0f, -8.438293f), 351); + obj45.Steps = list65; + reference47 = obj45; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span25 = CollectionsMarshal.AsSpan(list80); - span25[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) { Mount = true }; - span25[2] = new QuestStep(EInteractionType.Interact, 1010979u, new Vector3(27.023682f, 32.412476f, -697.35254f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010979u, new Vector3(27.023682f, 32.412476f, -697.35254f), 156) { StopDistance = 1f, Fly = true }; - obj56.Steps = list80; - reference58 = obj56; - ref QuestSequence reference59 = ref span23[4]; - QuestSequence obj57 = new QuestSequence + obj46.Steps = list66; + reference48 = obj46; + num++; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - Span span26 = CollectionsMarshal.AsSpan(list81); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) + index2 = 4; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span26[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span26[3] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj57.Steps = list81; - reference59 = obj57; - questRoot11.QuestSequence = list76; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(421); - QuestRoot questRoot12 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj47.Steps = list67; + reference49 = obj47; + questRoot9.QuestSequence = list62; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(421); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "JerryWester"; - questRoot12.Author = list82; - num = 6; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference60 = ref span27[0]; - QuestSequence obj58 = new QuestSequence + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "JerryWester"; + questRoot10.Author = list68; + index = 6; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference50 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj58.Steps = list84; - reference60 = obj58; - ref QuestSequence reference61 = ref span27[1]; - QuestSequence obj59 = new QuestSequence + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj48.Steps = list70; + reference50 = obj48; + num++; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1010980u, new Vector3(-341.6648f, -2.3744712f, 10.696533f), 129) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010980u, new Vector3(-341.6648f, -2.3744712f, 10.696533f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -30357,28 +36294,34 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaArcanist } }; - obj59.Steps = list85; - reference61 = obj59; - ref QuestSequence reference62 = ref span27[2]; - QuestSequence obj60 = new QuestSequence + obj49.Steps = list71; + reference51 = obj49; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); - obj60.Steps = list86; - reference62 = obj60; - ref QuestSequence reference63 = ref span27[3]; - QuestSequence obj61 = new QuestSequence + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); + obj50.Steps = list72; + reference52 = obj50; + num++; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 2005073u, new Vector3(-1.0223389f, 29.55664f, 172.96094f), 134) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005073u, new Vector3(-1.0223389f, 29.55664f, 172.96094f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -30387,31 +36330,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - obj61.Steps = list87; - reference63 = obj61; - ref QuestSequence reference64 = ref span27[4]; - QuestSequence obj62 = new QuestSequence + obj51.Steps = list73; + reference53 = obj51; + num++; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1010981u, new Vector3(124.74243f, 45.74832f, 135.7594f), 134) + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010981u, new Vector3(124.74243f, 45.74832f, 135.7594f), 134) { Fly = true }; - obj62.Steps = list88; - reference64 = obj62; - ref QuestSequence reference65 = ref span27[5]; - QuestSequence obj63 = new QuestSequence + obj52.Steps = list74; + reference54 = obj52; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -30420,344 +36369,419 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaArcanist } }; - obj63.Steps = list89; - reference65 = obj63; - questRoot12.QuestSequence = list83; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(422); - QuestRoot questRoot13 = new QuestRoot(); + obj53.Steps = list75; + reference55 = obj53; + questRoot10.QuestSequence = list69; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(422); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "JerryWester"; - questRoot13.Author = list90; - num = 6; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span28 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference66 = ref span28[0]; - QuestSequence obj64 = new QuestSequence + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "JerryWester"; + questRoot11.Author = list76; + index = 6; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011020u, new Vector3(-329.09137f, 12.899738f, 12.039368f), 129); - obj64.Steps = list92; - reference66 = obj64; - ref QuestSequence reference67 = ref span28[1]; - QuestSequence obj65 = new QuestSequence + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011020u, new Vector3(-329.09137f, 12.899738f, 12.039368f), 129); + obj54.Steps = list78; + reference56 = obj54; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1010982u, new Vector3(570.18384f, 20.637413f, 490.6233f), 137) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010982u, new Vector3(570.18384f, 20.637413f, 490.6233f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - obj65.Steps = list93; - reference67 = obj65; - ref QuestSequence reference68 = ref span28[2]; - QuestSequence obj66 = new QuestSequence + obj55.Steps = list79; + reference57 = obj55; + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137) + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137) { Fly = true }; - obj66.Steps = list94; - reference68 = obj66; - ref QuestSequence reference69 = ref span28[3]; - QuestSequence obj67 = new QuestSequence + obj56.Steps = list80; + reference58 = obj56; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list95)[0]; - QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2005064u, new Vector3(602.9907f, 8.987488f, 577.66077f), 137) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; + QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2005064u, new Vector3(602.9907f, 8.987488f, 577.66077f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 3660u; - obj68.KillEnemyDataIds = list96; - reference70 = obj68; - obj67.Steps = list95; - reference69 = obj67; - ref QuestSequence reference71 = ref span28[4]; - QuestSequence obj69 = new QuestSequence + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span4[num3] = 3660u; + obj58.KillEnemyDataIds = list82; + reference60 = obj58; + obj57.Steps = list81; + reference59 = obj57; + num++; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137); - obj69.Steps = list97; - reference71 = obj69; - ref QuestSequence reference72 = ref span28[5]; - QuestSequence obj70 = new QuestSequence + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137); + obj59.Steps = list83; + reference61 = obj59; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span29 = CollectionsMarshal.AsSpan(list98); - span29[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span29[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span29[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj70.Steps = list98; - reference72 = obj70; - questRoot13.QuestSequence = list91; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(423); - QuestRoot questRoot14 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj60.Steps = list84; + reference62 = obj60; + questRoot11.QuestSequence = list77; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(423); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "JerryWester"; - questRoot14.Author = list99; - num = 13; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span30 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference73 = ref span30[0]; - QuestSequence obj71 = new QuestSequence + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "JerryWester"; + questRoot12.Author = list85; + index = 13; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj71.Steps = list101; - reference73 = obj71; - ref QuestSequence reference74 = ref span30[1]; - QuestSequence obj72 = new QuestSequence + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj61.Steps = list87; + reference63 = obj61; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span31 = CollectionsMarshal.AsSpan(list102); - span31[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span31[1] = new QuestStep(EInteractionType.Interact, 1011615u, new Vector3(-1.3275757f, 0f, -2.7008667f), 351); - obj72.Steps = list102; - reference74 = obj72; - ref QuestSequence reference75 = ref span30[2]; - QuestSequence obj73 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011615u, new Vector3(-1.3275757f, 0f, -2.7008667f), 351); + obj62.Steps = list88; + reference64 = obj62; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - obj73.Steps = list103; - reference75 = obj73; - ref QuestSequence reference76 = ref span30[3]; - QuestSequence obj74 = new QuestSequence + obj63.Steps = list89; + reference65 = obj63; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153) { Fly = true }; - obj74.Steps = list104; - reference76 = obj74; - ref QuestSequence reference77 = ref span30[4]; - QuestSequence obj75 = new QuestSequence + obj64.Steps = list90; + reference66 = obj64; + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 4 }; 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) + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; + QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2005065u, new Vector3(-225.26898f, 13.137939f, 56.90088f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = 23u; - obj76.KillEnemyDataIds = list106; - reference78 = obj76; - obj75.Steps = list105; - reference77 = obj75; - ref QuestSequence reference79 = ref span30[5]; - QuestSequence obj77 = new QuestSequence + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + span4 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span4[index3] = 23u; + obj66.KillEnemyDataIds = list92; + reference68 = obj66; + obj65.Steps = list91; + reference67 = obj65; + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153); - obj77.Steps = list107; - reference79 = obj77; - ref QuestSequence reference80 = ref span30[6]; - QuestSequence obj78 = new QuestSequence + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153); + obj67.Steps = list93; + reference69 = obj67; + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153) + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153) { Fly = true }; - obj78.Steps = list108; - reference80 = obj78; - ref QuestSequence reference81 = ref span30[7]; - QuestSequence obj79 = new QuestSequence + obj68.Steps = list94; + reference70 = obj68; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list109)[0]; - QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2005066u, new Vector3(109.666504f, 24.15503f, 174.7616f), 153) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; + QuestStep obj70 = new QuestStep(EInteractionType.Combat, 2005066u, new Vector3(109.666504f, 24.15503f, 174.7616f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span32 = CollectionsMarshal.AsSpan(list110); - span32[0] = 24u; - span32[1] = 130u; - obj80.KillEnemyDataIds = list110; - reference82 = obj80; - obj79.Steps = list109; - reference81 = obj79; - ref QuestSequence reference83 = ref span30[8]; - QuestSequence obj81 = new QuestSequence + index3 = 2; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span4 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span4[num3] = 24u; + num3++; + span4[num3] = 130u; + obj70.KillEnemyDataIds = list96; + reference72 = obj70; + obj69.Steps = list95; + reference71 = obj69; + num++; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153); - obj81.Steps = list111; - reference83 = obj81; - ref QuestSequence reference84 = ref span30[9]; - QuestSequence obj82 = new QuestSequence + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153); + obj71.Steps = list97; + reference73 = obj71; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153) { Fly = true }; - obj82.Steps = list112; - reference84 = obj82; - ref QuestSequence reference85 = ref span30[10]; - QuestSequence obj83 = new QuestSequence + obj72.Steps = list98; + reference74 = obj72; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 10 }; 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) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference76 = ref span3[index2]; + QuestStep obj74 = new QuestStep(EInteractionType.Combat, 2005067u, new Vector3(-338.42987f, -0.07635498f, 453.4828f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 305u; - obj84.KillEnemyDataIds = list114; - reference86 = obj84; - obj83.Steps = list113; - reference85 = obj83; - ref QuestSequence reference87 = ref span30[11]; - QuestSequence obj85 = new QuestSequence + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + span4 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span4[index3] = 305u; + obj74.KillEnemyDataIds = list100; + reference76 = obj74; + obj73.Steps = list99; + reference75 = obj73; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153); - obj85.Steps = list115; - reference87 = obj85; - ref QuestSequence reference88 = ref span30[12]; - QuestSequence obj86 = new QuestSequence + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153); + obj75.Steps = list101; + reference77 = obj75; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { Fly = true }; - obj86.Steps = list116; - reference88 = obj86; - questRoot14.QuestSequence = list100; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(424); - QuestRoot questRoot15 = new QuestRoot(); + obj76.Steps = list102; + reference78 = obj76; + questRoot12.QuestSequence = list86; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(424); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "JerryWester"; - questRoot15.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span33 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference89 = ref span33[0]; - QuestSequence obj87 = new QuestSequence + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "JerryWester"; + questRoot13.Author = list103; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -30768,101 +36792,120 @@ public static class AssemblyQuestLoader } } }; - obj87.Steps = list119; - reference89 = obj87; - ref QuestSequence reference90 = ref span33[1]; - QuestSequence obj88 = new QuestSequence + obj77.Steps = list105; + reference79 = obj77; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1010988u, new Vector3(618.40234f, 22.52846f, 105.63818f), 153) + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010988u, new Vector3(618.40234f, 22.52846f, 105.63818f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj88.Steps = list120; - reference90 = obj88; - ref QuestSequence reference91 = ref span33[2]; - QuestSequence obj89 = new QuestSequence + obj78.Steps = list106; + reference80 = obj78; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2005068u, new Vector3(604.57764f, 24.032959f, 105.119385f), 153); - obj89.Steps = list121; - reference91 = obj89; - ref QuestSequence reference92 = ref span33[3]; - QuestSequence obj90 = new QuestSequence + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005068u, new Vector3(604.57764f, 24.032959f, 105.119385f), 153); + obj79.Steps = list107; + reference81 = obj79; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span34 = CollectionsMarshal.AsSpan(list122); - span34[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span34[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span34[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj90.Steps = list122; - reference92 = obj90; - questRoot15.QuestSequence = list118; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(425); - QuestRoot questRoot16 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj80.Steps = list108; + reference82 = obj80; + questRoot13.QuestSequence = list104; + AddQuest(questId13, questRoot13); + QuestId questId14 = new QuestId(425); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; - questRoot16.Author = list123; - num = 2; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span35 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span35[0]; - QuestSequence obj91 = new QuestSequence + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "JerryWester"; + questRoot14.Author = list109; + index = 2; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - 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) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; + QuestStep obj82 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 351; - skipStepConditions.InTerritory = list126; + index3 = 1; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span6 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span6[num3] = 351; + skipStepConditions.InTerritory = list112; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 351; - skipAetheryteCondition.InTerritory = list127; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + span6 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span6[index3] = 351; + skipAetheryteCondition.InTerritory = list113; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; - obj92.SkipConditions = skipConditions; - reference94 = obj92; - span36[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + obj82.SkipConditions = skipConditions; + reference84 = obj82; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -30873,18 +36916,22 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj91.Steps = list125; - reference93 = obj91; - ref QuestSequence reference95 = ref span35[1]; - QuestSequence obj93 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj81.Steps = list111; + reference83 = obj81; + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131) + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30893,41 +36940,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj93.Steps = list128; - reference95 = obj93; - questRoot16.QuestSequence = list124; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(426); - QuestRoot questRoot17 = new QuestRoot(); + obj83.Steps = list114; + reference85 = obj83; + questRoot14.QuestSequence = list110; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(426); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "JerryWester"; - questRoot17.Author = list129; - num = 6; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span37 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference96 = ref span37[0]; - QuestSequence obj94 = new QuestSequence + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "JerryWester"; + questRoot15.Author = list115; + index = 6; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131); - obj94.Steps = list131; - reference96 = obj94; - ref QuestSequence reference97 = ref span37[1]; - QuestSequence obj95 = new QuestSequence + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131); + obj84.Steps = list117; + reference86 = obj84; + num++; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -30935,54 +36990,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj95.Steps = list132; - reference97 = obj95; - ref QuestSequence reference98 = ref span37[2]; - QuestSequence obj96 = new QuestSequence + obj85.Steps = list118; + reference87 = obj85; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2005069u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005069u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - obj96.Steps = list133; - reference98 = obj96; - ref QuestSequence reference99 = ref span37[3]; - QuestSequence obj97 = new QuestSequence + obj86.Steps = list119; + reference88 = obj86; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2005070u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141); - obj97.Steps = list134; - reference99 = obj97; - ref QuestSequence reference100 = ref span37[4]; - QuestSequence obj98 = new QuestSequence + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005070u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141); + obj87.Steps = list120; + reference89 = obj87; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2005072u, new Vector3(-289.72308f, 22.812195f, -56.321106f), 141); - obj98.Steps = list135; - reference100 = obj98; - ref QuestSequence reference101 = ref span37[5]; - QuestSequence obj99 = new QuestSequence + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005072u, new Vector3(-289.72308f, 22.812195f, -56.321106f), 141); + obj88.Steps = list121; + reference90 = obj88; + num++; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30991,42 +37058,50 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj99.Steps = list136; - reference101 = obj99; - questRoot17.QuestSequence = list130; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(427); - QuestRoot questRoot18 = new QuestRoot(); + obj89.Steps = list122; + reference91 = obj89; + questRoot15.QuestSequence = list116; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(427); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; - questRoot18.Author = list137; - num = 4; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span38 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference102 = ref span38[0]; - QuestSequence obj100 = new QuestSequence + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list123; + index = 4; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); - obj100.Steps = list139; - reference102 = obj100; - ref QuestSequence reference103 = ref span38[1]; - QuestSequence obj101 = new QuestSequence + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + obj90.Steps = list125; + reference92 = obj90; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 1 }; 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) + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; + QuestStep obj92 = new QuestStep(EInteractionType.Interact, 1010997u, new Vector3(-22.354492f, 38.010006f, 83.42102f), 131) { AethernetShortcut = new AethernetShortcut { @@ -31034,71 +37109,84 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice + index3 = 1; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + Span span7 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE615_00427_Q1_000_012") }; - obj102.DialogueChoices = list141; - reference104 = obj102; - obj101.Steps = list140; - reference103 = obj101; - ref QuestSequence reference105 = ref span38[2]; - QuestSequence obj103 = new QuestSequence + obj92.DialogueChoices = list127; + reference94 = obj92; + obj91.Steps = list126; + reference93 = obj91; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1010998u, new Vector3(78.416016f, -0.63573146f, -166.33862f), 141) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010998u, new Vector3(78.416016f, -0.63573146f, -166.33862f), 141) { StopDistance = 5f }; - obj103.Steps = list142; - reference105 = obj103; - ref QuestSequence reference106 = ref span38[3]; - QuestSequence obj104 = new QuestSequence + obj93.Steps = list128; + reference95 = obj93; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - Span span39 = CollectionsMarshal.AsSpan(list143); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj104.Steps = list143; - reference106 = obj104; - questRoot18.QuestSequence = list138; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(428); - QuestRoot questRoot19 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + obj94.Steps = list129; + reference96 = obj94; + questRoot16.QuestSequence = list124; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(428); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; - questRoot19.Author = list144; - num = 2; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span40 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference107 = ref span40[0]; - QuestSequence obj105 = new QuestSequence + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "JerryWester"; + questRoot17.Author = list130; + index = 2; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -31109,209 +37197,250 @@ public static class AssemblyQuestLoader } } }; - obj105.Steps = list146; - reference107 = obj105; - ref QuestSequence reference108 = ref span40[1]; - QuestSequence obj106 = new QuestSequence + obj95.Steps = list132; + reference97 = obj95; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; 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) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; + QuestStep obj97 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = new DialogueChoice + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + span7 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE616_00428_FORTEMPSGUARD00428_Q1_000_000") }; - obj107.DialogueChoices = list148; - reference109 = obj107; - obj106.Steps = list147; - reference108 = obj106; - questRoot19.QuestSequence = list145; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(429); - QuestRoot questRoot20 = new QuestRoot(); + obj97.DialogueChoices = list134; + reference99 = obj97; + obj96.Steps = list133; + reference98 = obj96; + questRoot17.QuestSequence = list131; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(429); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; - questRoot20.Author = list149; - num = 3; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span41 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference110 = ref span41[0]; - QuestSequence obj108 = new QuestSequence + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "JerryWester"; + questRoot18.Author = list135; + index = 3; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); - obj108.Steps = list151; - reference110 = obj108; - ref QuestSequence reference111 = ref span41[1]; - QuestSequence obj109 = new QuestSequence + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); + obj98.Steps = list137; + reference100 = obj98; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span42 = CollectionsMarshal.AsSpan(list152); - span42[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span42[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span42[3] = new QuestStep(EInteractionType.Interact, 2005045u, new Vector3(-146.44086f, 43.656006f, -188.61682f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005045u, new Vector3(-146.44086f, 43.656006f, -188.61682f), 156) { Fly = true }; - obj109.Steps = list152; - reference111 = obj109; - ref QuestSequence reference112 = ref span41[2]; - QuestSequence obj110 = new QuestSequence + obj99.Steps = list138; + reference101 = obj99; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span43 = CollectionsMarshal.AsSpan(list153); - span43[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span43[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span43[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); - obj110.Steps = list153; - reference112 = obj110; - questRoot20.QuestSequence = list150; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(433); - QuestRoot questRoot21 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + obj100.Steps = list139; + reference102 = obj100; + questRoot18.QuestSequence = list136; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(433); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; - questRoot21.Author = list154; - num = 4; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - Span span44 = CollectionsMarshal.AsSpan(list155); - ref QuestSequence reference113 = ref span44[0]; - QuestSequence obj111 = new QuestSequence + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "liza"; + questRoot19.Author = list140; + index = 4; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj111.Steps = list156; - reference113 = obj111; - ref QuestSequence reference114 = ref span44[1]; - QuestSequence obj112 = new QuestSequence + obj101.Steps = list142; + reference103 = obj101; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj112.Steps = list157; - reference114 = obj112; - ref QuestSequence reference115 = ref span44[2]; - QuestSequence obj113 = new QuestSequence + obj102.Steps = list143; + reference104 = obj102; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { ContentFinderConditionId = 82u } }; - obj113.Steps = list158; - reference115 = obj113; - ref QuestSequence reference116 = ref span44[3]; - QuestSequence obj114 = new QuestSequence + obj103.Steps = list144; + reference105 = obj103; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153); - obj114.Steps = list159; - reference116 = obj114; - questRoot21.QuestSequence = list155; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(434); - QuestRoot questRoot22 = new QuestRoot(); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153); + obj104.Steps = list145; + reference106 = obj104; + questRoot19.QuestSequence = list141; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(434); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; - questRoot22.Author = list160; - num = 2; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span45 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference117 = ref span45[0]; - QuestSequence obj115 = new QuestSequence + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "liza"; + questRoot20.Author = list146; + index = 2; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130); - obj115.Steps = list162; - reference117 = obj115; - ref QuestSequence reference118 = ref span45[1]; - QuestSequence obj116 = new QuestSequence + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130); + obj105.Steps = list148; + reference107 = obj105; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list163)[0]; - QuestStep obj117 = new QuestStep(EInteractionType.CompleteQuest, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + ref QuestStep reference109 = ref span3[num2]; + QuestStep obj107 = new QuestStep(EInteractionType.CompleteQuest, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { AethernetShortcut = new AethernetShortcut { @@ -31319,117 +37448,138 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAirship } }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span7 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC001_00434_Q1_000_000") }; - obj117.DialogueChoices = list164; - obj117.NextQuestId = new QuestId(435); - reference119 = obj117; - obj116.Steps = list163; - reference118 = obj116; - questRoot22.QuestSequence = list161; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(435); - QuestRoot questRoot23 = new QuestRoot(); + obj107.DialogueChoices = list150; + obj107.NextQuestId = new QuestId(435); + reference109 = obj107; + obj106.Steps = list149; + reference108 = obj106; + questRoot20.QuestSequence = list147; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(435); + QuestRoot questRoot21 = new QuestRoot(); num = 2; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span46 = CollectionsMarshal.AsSpan(list165); - span46[0] = "liza"; - span46[1] = "JerryWester"; - questRoot23.Author = list165; - num = 8; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span47 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference120 = ref span47[0]; - QuestSequence obj118 = new QuestSequence + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; + index++; + span[index] = "JerryWester"; + questRoot21.Author = list151; + index = 8; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) { StopDistance = 7f }; - obj118.Steps = list167; - reference120 = obj118; - ref QuestSequence reference121 = ref span47[1]; - QuestSequence obj119 = new QuestSequence + obj108.Steps = list153; + reference110 = obj108; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span48 = CollectionsMarshal.AsSpan(list168); - span48[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEntranceCardSquares }; - span48[1] = new QuestStep(EInteractionType.Interact, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) { StopDistance = 5f }; - obj119.Steps = list168; - reference121 = obj119; - ref QuestSequence reference122 = ref span47[2]; - QuestSequence obj120 = new QuestSequence + obj109.Steps = list154; + reference111 = obj109; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1011038u, new Vector3(-58.884644f, 1.6000003f, 27.634033f), 144) + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011038u, new Vector3(-58.884644f, 1.6000003f, 27.634033f), 144) { StopDistance = 5f }; - obj120.Steps = list169; - reference122 = obj120; - ref QuestSequence reference123 = ref span47[3]; - QuestSequence obj121 = new QuestSequence + obj110.Steps = list155; + reference112 = obj110; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1010478u, new Vector3(-99.19891f, -0.86297023f, 66.11731f), 144); - obj121.Steps = list170; - reference123 = obj121; - ref QuestSequence reference124 = ref span47[4]; - QuestSequence obj122 = new QuestSequence + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010478u, new Vector3(-99.19891f, -0.86297023f, 66.11731f), 144); + obj111.Steps = list156; + reference113 = obj111; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 4 }; num2 = 6; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - Span span49 = CollectionsMarshal.AsSpan(list171); - span49[0] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) { TargetTerritoryId = (ushort)388 }; - span49[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 5f, AethernetShard = EAetheryteLocation.GoldSaucerMinionSquare }; - span49[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerChocoboSquare }; - span49[3] = new QuestStep(EInteractionType.None, null, null, 388) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 388) { AethernetShortcut = new AethernetShortcut { @@ -31437,36 +37587,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - span49[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) { DelaySecondsAtStart = 3f, Aetheryte = EAetheryteLocation.GoldSaucer }; - span49[5] = new QuestStep(EInteractionType.Interact, 1011080u, new Vector3(21.530457f, 3.9997296f, 39.902344f), 144); - obj122.Steps = list171; - reference124 = obj122; - ref QuestSequence reference125 = ref span47[5]; - QuestSequence obj123 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011080u, new Vector3(21.530457f, 3.9997296f, 39.902344f), 144); + obj112.Steps = list157; + reference114 = obj112; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 5 }; - num2 = 9; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span50 = CollectionsMarshal.AsSpan(list172); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); - span50[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + index2 = 9; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, DelaySecondsAtStart = 3f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareWest }; - span50[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareEast }; - span50[3] = new QuestStep(EInteractionType.None, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -31474,39 +37631,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span50[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, DelaySecondsAtStart = 3f, AethernetShard = EAetheryteLocation.GoldSaucerEventSquare }; - span50[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144) { DelaySecondsAtStart = 3f }; - span50[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerCactpotBoard }; - span50[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); - span50[8] = new QuestStep(EInteractionType.Interact, 1011079u, new Vector3(125.078125f, 13.000635f, -13.778931f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011079u, new Vector3(125.078125f, 13.000635f, -13.778931f), 144) { StopDistance = 4f }; - obj123.Steps = list172; - reference125 = obj123; - ref QuestSequence reference126 = ref span47[6]; - QuestSequence obj124 = new QuestSequence + obj113.Steps = list158; + reference115 = obj113; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 6 }; num2 = 3; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span51 = CollectionsMarshal.AsSpan(list173); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); - span51[1] = new QuestStep(EInteractionType.None, null, null, 144) + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -31514,27 +37679,31 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span51[2] = new QuestStep(EInteractionType.Interact, 1011084u, new Vector3(-12.527649f, 3.2546434f, -73.16705f), 144) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011084u, new Vector3(-12.527649f, 3.2546434f, -73.16705f), 144) { DelaySecondsAtStart = 3f }; - obj124.Steps = list173; - reference126 = obj124; - ref QuestSequence reference127 = ref span47[7]; - QuestSequence obj125 = new QuestSequence + obj114.Steps = list159; + reference116 = obj114; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span52 = CollectionsMarshal.AsSpan(list174); - span52[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + index2 = 3; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerRoundSquare }; - span52[1] = new QuestStep(EInteractionType.None, null, null, 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -31542,36 +37711,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - span52[2] = new QuestStep(EInteractionType.CompleteQuest, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - obj125.Steps = list174; - reference127 = obj125; - questRoot23.QuestSequence = list166; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(436); - QuestRoot questRoot24 = new QuestRoot(); + obj115.Steps = list160; + reference117 = obj115; + questRoot21.QuestSequence = list152; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(436); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "Starr"; - questRoot24.Author = list175; - num = 2; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span53 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference128 = ref span53[0]; - QuestSequence obj126 = new QuestSequence + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "Starr"; + questRoot22.Author = list161; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 0 }; 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) + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference119 = ref span3[index2]; + QuestStep obj117 = new QuestStep(EInteractionType.AcceptQuest, 1010464u, new Vector3(-0.015319824f, -1.8903663E-06f, -65.61273f), 388) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -31581,29 +37756,34 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj128 = new SkipAetheryteCondition + SkipAetheryteCondition obj118 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference130 = ref span53[1]; - QuestSequence obj129 = new QuestSequence + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + span6 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span6[index3] = 144; + obj118.InTerritory = list164; + skipConditions2.AetheryteShortcutIf = obj118; + obj117.SkipConditions = skipConditions2; + reference119 = obj117; + obj116.Steps = list163; + reference118 = obj116; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -31616,30 +37796,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(565) }; - obj129.Steps = list179; - reference130 = obj129; - questRoot24.QuestSequence = list176; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(437); - QuestRoot questRoot25 = new QuestRoot(); + obj119.Steps = list165; + reference120 = obj119; + questRoot22.QuestSequence = list162; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(437); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "Starr"; - questRoot25.Author = list180; - num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - ref QuestSequence reference131 = ref CollectionsMarshal.AsSpan(list181)[0]; - QuestSequence obj130 = new QuestSequence + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "Starr"; + questRoot23.Author = list166; + index = 1; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; 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) + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference122 = ref span3[index2]; + QuestStep obj121 = new QuestStep(EInteractionType.AcceptQuest, 1011060u, new Vector3(-96.87958f, -0.86297023f, 67.826294f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -31650,41 +37836,48 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + index3 = 1; + List list169 = new List(index3); + CollectionsMarshal.SetCount(list169, index3); + span7 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC102_00437_Q1_000_000") }; - obj131.DialogueChoices = list183; - reference132 = obj131; - obj130.Steps = list182; - reference131 = obj130; - questRoot25.QuestSequence = list181; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(438); - QuestRoot questRoot26 = new QuestRoot(); + obj121.DialogueChoices = list169; + reference122 = obj121; + obj120.Steps = list168; + reference121 = obj120; + questRoot23.QuestSequence = list167; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(438); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "Cacahuetes"; - questRoot26.Author = list184; - num = 12; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span54 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference133 = ref span54[0]; - QuestSequence obj132 = new QuestSequence + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "Cacahuetes"; + questRoot24.Author = list170; + index = 12; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list186)[0]; - QuestStep obj133 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference124 = ref span3[num2]; + QuestStep obj123 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -31694,46 +37887,53 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition obj134 = new SkipAetheryteCondition + SkipAetheryteCondition obj124 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference135 = ref span54[1]; - QuestSequence obj135 = new QuestSequence + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + span6 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span6[index3] = 133; + obj124.InTerritory = list173; + skipConditions3.AetheryteShortcutIf = obj124; + obj123.SkipConditions = skipConditions3; + reference124 = obj123; + obj122.Steps = list172; + reference123 = obj122; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) { StopDistance = 2f, Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - obj135.Steps = list188; - reference135 = obj135; - ref QuestSequence reference136 = ref span54[2]; - QuestSequence obj136 = new QuestSequence + obj125.Steps = list174; + reference125 = obj125; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span55 = CollectionsMarshal.AsSpan(list189); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.875587f, -1.4320529f, 335.96927f), 152) + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.875587f, -1.4320529f, 335.96927f), 152) { Fly = true, SkipConditions = new SkipConditions @@ -31744,45 +37944,53 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference137 = ref span55[1]; - QuestStep obj137 = new QuestStep(EInteractionType.Combat, 2000963u, new Vector3(39.230957f, -0.5036011f, 337.3922f), 152) + num2++; + ref QuestStep reference127 = ref span3[num2]; + QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2000963u, new Vector3(39.230957f, -0.5036011f, 337.3922f), 152) { ItemId = 2000243u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 38u; - obj137.KillEnemyDataIds = list190; - reference137 = obj137; - obj136.Steps = list189; - reference136 = obj136; - ref QuestSequence reference138 = ref span54[3]; - QuestSequence obj138 = new QuestSequence + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + span4 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span4[num3] = 38u; + obj127.KillEnemyDataIds = list176; + reference127 = obj127; + obj126.Steps = list175; + reference126 = obj126; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) { StopDistance = 2f, Fly = true }; - obj138.Steps = list191; - reference138 = obj138; - ref QuestSequence reference139 = ref span54[4]; - QuestSequence obj139 = new QuestSequence + obj128.Steps = list177; + reference128 = obj128; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span56 = CollectionsMarshal.AsSpan(list192); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + index2 = 2; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -31793,19 +38001,22 @@ public static class AssemblyQuestLoader } } }; - span56[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj139.Steps = list192; - reference139 = obj139; - ref QuestSequence reference140 = ref span54[5]; - QuestSequence obj140 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj129.Steps = list178; + reference129 = obj129; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 5 }; num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span57 = CollectionsMarshal.AsSpan(list193); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { SkipConditions = new SkipConditions { @@ -31815,23 +38026,26 @@ public static class AssemblyQuestLoader } } }; - span57[1] = new QuestStep(EInteractionType.UseItem, 2000921u, new Vector3(-103.71564f, 6.42395f, 101.60974f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2000921u, new Vector3(-103.71564f, 6.42395f, 101.60974f), 153) { Fly = true, ItemId = 2000232u }; - obj140.Steps = list193; - reference140 = obj140; - ref QuestSequence reference141 = ref span54[6]; - QuestSequence obj141 = new QuestSequence + obj130.Steps = list179; + reference130 = obj130; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span58 = CollectionsMarshal.AsSpan(list194); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + index2 = 2; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -31842,95 +38056,115 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj141.Steps = list194; - reference141 = obj141; - ref QuestSequence reference142 = ref span54[7]; - QuestSequence obj142 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj131.Steps = list180; + reference131 = obj131; + num++; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj142.Steps = list195; - reference142 = obj142; - ref QuestSequence reference143 = ref span54[8]; - QuestSequence obj143 = new QuestSequence + obj132.Steps = list181; + reference132 = obj132; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list196)[0]; - QuestStep obj144 = new QuestStep(EInteractionType.Combat, null, new Vector3(-39.98818f, -46.837822f, 403.3237f), 154) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference134 = ref span3[num2]; + QuestStep obj134 = new QuestStep(EInteractionType.Combat, null, new Vector3(-39.98818f, -46.837822f, 403.3237f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new ComplexCombatData + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + Span span8 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span8[index3] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 6u }; - obj144.ComplexCombatData = list197; - reference144 = obj144; - obj143.Steps = list196; - reference143 = obj143; - ref QuestSequence reference145 = ref span54[9]; - QuestSequence obj145 = new QuestSequence + obj134.ComplexCombatData = list183; + reference134 = obj134; + obj133.Steps = list182; + reference133 = obj133; + num++; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 9 }; 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) + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; + QuestStep obj136 = new QuestStep(EInteractionType.Combat, 2000922u, new Vector3(28.244385f, -54.337463f, 512.932f), 154) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = 18u; - obj146.KillEnemyDataIds = list199; - obj146.CombatDelaySecondsAtStart = 3f; - reference146 = obj146; - obj145.Steps = list198; - reference145 = obj145; - ref QuestSequence reference147 = ref span54[10]; - QuestSequence obj147 = new QuestSequence + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span4 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span4[num3] = 18u; + obj136.KillEnemyDataIds = list185; + obj136.CombatDelaySecondsAtStart = 3f; + reference136 = obj136; + obj135.Steps = list184; + reference135 = obj135; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) { Fly = true }; - obj147.Steps = list200; - reference147 = obj147; - ref QuestSequence reference148 = ref span54[11]; - QuestSequence obj148 = new QuestSequence + obj137.Steps = list186; + reference137 = obj137; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -31940,31 +38174,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(439) }; - obj148.Steps = list201; - reference148 = obj148; - questRoot26.QuestSequence = list185; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(439); - QuestRoot questRoot27 = new QuestRoot(); + obj138.Steps = list187; + reference138 = obj138; + questRoot24.QuestSequence = list171; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(439); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "Cacahuetes"; - questRoot27.Author = list202; - num = 4; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span59 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference149 = ref span59[0]; - QuestSequence obj149 = new QuestSequence + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "Cacahuetes"; + questRoot25.Author = list188; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list204)[0]; - QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference140 = ref span3[num2]; + QuestStep obj140 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -31974,29 +38213,34 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions4 = new SkipConditions(); - SkipAetheryteCondition obj151 = new SkipAetheryteCondition + SkipAetheryteCondition obj141 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference151 = ref span59[1]; - QuestSequence obj152 = new QuestSequence + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + span6 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span6[index3] = 133; + obj141.InTerritory = list191; + skipConditions4.AetheryteShortcutIf = obj141; + obj140.SkipConditions = skipConditions4; + reference140 = obj140; + obj139.Steps = list190; + reference139 = obj139; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000924u, new Vector3(-389.24243f, 65.537476f, -186.57214f), 148) + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000924u, new Vector3(-389.24243f, 65.537476f, -186.57214f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -32005,17 +38249,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaWhiteWolfGate } }; - obj152.Steps = list206; - reference151 = obj152; - ref QuestSequence reference152 = ref span59[2]; - QuestSequence obj153 = new QuestSequence + obj142.Steps = list192; + reference141 = obj142; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000448u, new Vector3(-287.00696f, -54.431038f, 289.99768f), 154) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000448u, new Vector3(-287.00696f, -54.431038f, 289.99768f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -32024,17 +38271,20 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj153.Steps = list207; - reference152 = obj153; - ref QuestSequence reference153 = ref span59[3]; - QuestSequence obj154 = new QuestSequence + obj143.Steps = list193; + reference142 = obj143; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32044,31 +38294,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1067) }; - obj154.Steps = list208; - reference153 = obj154; - questRoot27.QuestSequence = list203; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(440); - QuestRoot questRoot28 = new QuestRoot(); + obj144.Steps = list194; + reference143 = obj144; + questRoot25.QuestSequence = list189; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(440); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Cacahuetes"; - questRoot28.Author = list209; - num = 6; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span60 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference154 = ref span60[0]; - QuestSequence obj155 = new QuestSequence + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "Cacahuetes"; + questRoot26.Author = list195; + index = 6; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list211)[0]; - QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference145 = ref span3[num2]; + QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32078,80 +38333,97 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions5 = new SkipConditions(); - SkipAetheryteCondition obj157 = new SkipAetheryteCondition + SkipAetheryteCondition obj147 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 133; - obj157.InTerritory = list212; - skipConditions5.AetheryteShortcutIf = obj157; - obj156.SkipConditions = skipConditions5; - reference155 = obj156; - obj155.Steps = list211; - reference154 = obj155; - ref QuestSequence reference156 = ref span60[1]; - QuestSequence obj158 = new QuestSequence + index3 = 1; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span6 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span6[num3] = 133; + obj147.InTerritory = list198; + skipConditions5.AetheryteShortcutIf = obj147; + obj146.SkipConditions = skipConditions5; + reference145 = obj146; + obj145.Steps = list197; + reference144 = obj145; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1008149u, new Vector3(-172.83899f, 8.492639f, -55.222473f), 153) + List list199 = new List(num2); + CollectionsMarshal.SetCount(list199, num2); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008149u, new Vector3(-172.83899f, 8.492639f, -55.222473f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj158.Steps = list213; - reference156 = obj158; - ref QuestSequence reference157 = ref span60[2]; - QuestSequence obj159 = new QuestSequence + obj148.Steps = list199; + reference146 = obj148; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1008146u, new Vector3(-183.43082f, 9.869224f, -76.830215f), 153); - obj159.Steps = list214; - reference157 = obj159; - ref QuestSequence reference158 = ref span60[3]; - QuestSequence obj160 = new QuestSequence + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008146u, new Vector3(-183.43082f, 9.869224f, -76.830215f), 153); + obj149.Steps = list200; + reference147 = obj149; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1008150u, new Vector3(28.30542f, 3.6544461f, 35.38562f), 153) + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1008150u, new Vector3(28.30542f, 3.6544461f, 35.38562f), 153) { Fly = true }; - obj160.Steps = list215; - reference158 = obj160; - ref QuestSequence reference159 = ref span60[4]; - QuestSequence obj161 = new QuestSequence + obj150.Steps = list201; + reference148 = obj150; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1008157u, new Vector3(42.404785f, 3.2469568f, 32.88318f), 153); - obj161.Steps = list216; - reference159 = obj161; - ref QuestSequence reference160 = ref span60[5]; - QuestSequence obj162 = new QuestSequence + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008157u, new Vector3(42.404785f, 3.2469568f, 32.88318f), 153); + obj151.Steps = list202; + reference149 = obj151; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list203 = new List(num2); + CollectionsMarshal.SetCount(list203, num2); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32161,31 +38433,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(441) }; - obj162.Steps = list217; - reference160 = obj162; - questRoot28.QuestSequence = list210; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(441); - QuestRoot questRoot29 = new QuestRoot(); + obj152.Steps = list203; + reference150 = obj152; + questRoot26.QuestSequence = list196; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(441); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "Cacahuetes"; - questRoot29.Author = list218; - num = 9; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span61 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference161 = ref span61[0]; - QuestSequence obj163 = new QuestSequence + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + span = CollectionsMarshal.AsSpan(list204); + index = 0; + span[index] = "Cacahuetes"; + questRoot27.Author = list204; + index = 9; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span2 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list220)[0]; - QuestStep obj164 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; + QuestStep obj154 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32195,152 +38472,184 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions6 = new SkipConditions(); - SkipAetheryteCondition obj165 = new SkipAetheryteCondition + SkipAetheryteCondition obj155 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - ref QuestSequence reference163 = ref span61[1]; - QuestSequence obj166 = new QuestSequence + List list207 = new List(num3); + CollectionsMarshal.SetCount(list207, num3); + span6 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span6[index3] = 133; + obj155.InTerritory = list207; + skipConditions6.AetheryteShortcutIf = obj155; + obj154.SkipConditions = skipConditions6; + reference152 = obj154; + obj153.Steps = list206; + reference151 = obj153; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 1 }; 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) + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + ref QuestStep reference154 = ref span3[index2]; + QuestStep obj157 = new QuestStep(EInteractionType.Combat, 2000899u, new Vector3(43.900146f, 6.5460815f, -1.9379272f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = 294u; - obj167.KillEnemyDataIds = list223; - reference164 = obj167; - obj166.Steps = list222; - reference163 = obj166; - ref QuestSequence reference165 = ref span61[2]; - QuestSequence obj168 = new QuestSequence + index3 = 1; + List list209 = new List(index3); + CollectionsMarshal.SetCount(list209, index3); + span4 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span4[num3] = 294u; + obj157.KillEnemyDataIds = list209; + reference154 = obj157; + obj156.Steps = list208; + reference153 = obj156; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1002965u, new Vector3(51.181263f, 6.6893935f, -3.2490644f), 153) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002965u, new Vector3(51.181263f, 6.6893935f, -3.2490644f), 153) { StopDistance = 7f }; - obj168.Steps = list224; - reference165 = obj168; - ref QuestSequence reference166 = ref span61[3]; - QuestSequence obj169 = new QuestSequence + obj158.Steps = list210; + reference155 = obj158; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 3 }; 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) + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + ref QuestStep reference157 = ref span3[index2]; + QuestStep obj160 = new QuestStep(EInteractionType.Combat, 2000901u, new Vector3(122.36206f, 17.898804f, -136.85822f), 153) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 294u; - obj170.KillEnemyDataIds = list226; - reference167 = obj170; - obj169.Steps = list225; - reference166 = obj169; - ref QuestSequence reference168 = ref span61[4]; - QuestSequence obj171 = new QuestSequence + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + span4 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span4[index3] = 294u; + obj160.KillEnemyDataIds = list212; + reference157 = obj160; + obj159.Steps = list211; + reference156 = obj159; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1002966u, new Vector3(124.193115f, 17.550354f, -129.90009f), 153) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002966u, new Vector3(124.193115f, 17.550354f, -129.90009f), 153) { StopDistance = 7f }; - obj171.Steps = list227; - reference168 = obj171; - ref QuestSequence reference169 = ref span61[5]; - QuestSequence obj172 = new QuestSequence + obj161.Steps = list213; + reference158 = obj161; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 5 }; 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) + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + ref QuestStep reference160 = ref span3[index2]; + QuestStep obj163 = new QuestStep(EInteractionType.Combat, 2000906u, new Vector3(292.04236f, 15.365784f, -107.286194f), 153) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = 294u; - obj173.KillEnemyDataIds = list229; - reference170 = obj173; - obj172.Steps = list228; - reference169 = obj172; - ref QuestSequence reference171 = ref span61[6]; - QuestSequence obj174 = new QuestSequence + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + span4 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span4[num3] = 294u; + obj163.KillEnemyDataIds = list215; + reference160 = obj163; + obj162.Steps = list214; + reference159 = obj162; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1002967u, new Vector3(293.29358f, 16.181925f, -112.68793f), 153) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002967u, new Vector3(293.29358f, 16.181925f, -112.68793f), 153) { StopDistance = 7f }; - obj174.Steps = list230; - reference171 = obj174; - ref QuestSequence reference172 = ref span61[7]; - QuestSequence obj175 = new QuestSequence + obj164.Steps = list216; + reference161 = obj164; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002968u, new Vector3(332.14307f, 4.1362643f, -85.648926f), 153) + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002968u, new Vector3(332.14307f, 4.1362643f, -85.648926f), 153) { Fly = true }; - obj175.Steps = list231; - reference172 = obj175; - ref QuestSequence reference173 = ref span61[8]; - QuestSequence obj176 = new QuestSequence + obj165.Steps = list217; + reference162 = obj165; + num++; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32350,111 +38659,136 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1079) }; - obj176.Steps = list232; - reference173 = obj176; - questRoot29.QuestSequence = list219; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(445); - QuestRoot questRoot30 = new QuestRoot(); + obj166.Steps = list218; + reference163 = obj166; + questRoot27.QuestSequence = list205; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(445); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; - questRoot30.Author = list233; - num = 5; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span62 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference174 = ref span62[0]; - QuestSequence obj177 = new QuestSequence + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "liza"; + questRoot28.Author = list219; + index = 5; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); - obj177.Steps = list235; - reference174 = obj177; - ref QuestSequence reference175 = ref span62[1]; - QuestSequence obj178 = new QuestSequence + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + obj167.Steps = list221; + reference164 = obj167; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list236)[0]; + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.SinglePlayerDuty, 2000953u, new Vector3(323.5979f, 0.3508911f, -309.55975f), 148); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = "AI doesn't automatically target newly spawning adds until after the boss died, and dies (tested on CNJ)"; - singlePlayerDutyOptions2.Notes = list237; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + span = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span[index3] = "AI doesn't automatically target newly spawning adds until after the boss died, and dies (tested on CNJ)"; + singlePlayerDutyOptions2.Notes = list223; questStep3.SinglePlayerDutyOptions = singlePlayerDutyOptions2; - reference176 = questStep3; - obj178.Steps = list236; - reference175 = obj178; - span62[2] = new QuestSequence + reference166 = questStep3; + obj168.Steps = list222; + reference165 = obj168; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference177 = ref span62[3]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2001194u, new Vector3(323.627f, 0.3168333f, -309.5412f), 148); - obj179.Steps = list238; - reference177 = obj179; - ref QuestSequence reference178 = ref span62[4]; - QuestSequence obj180 = new QuestSequence + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001194u, new Vector3(323.627f, 0.3168333f, -309.5412f), 148); + obj169.Steps = list224; + reference167 = obj169; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); - obj180.Steps = list239; - reference178 = obj180; - questRoot30.QuestSequence = list234; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(446); - QuestRoot questRoot31 = new QuestRoot(); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + obj170.Steps = list225; + reference168 = obj170; + questRoot28.QuestSequence = list220; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(446); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; - questRoot31.Author = list240; - num = 2; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span63 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference179 = ref span63[0]; - QuestSequence obj181 = new QuestSequence + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "liza"; + questRoot29.Author = list226; + index = 2; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span2 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - obj181.Steps = list242; - reference179 = obj181; - ref QuestSequence reference180 = ref span63[1]; - QuestSequence obj182 = new QuestSequence + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + obj171.Steps = list228; + reference169 = obj171; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32463,43 +38797,50 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj182.Steps = list243; - reference180 = obj182; - questRoot31.QuestSequence = list241; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(447); - QuestRoot questRoot32 = new QuestRoot(); + obj172.Steps = list229; + reference170 = obj172; + questRoot29.QuestSequence = list227; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(447); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; - questRoot32.Author = list244; - num = 5; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span64 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference181 = ref span64[0]; - QuestSequence obj183 = new QuestSequence + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + span = CollectionsMarshal.AsSpan(list230); + index = 0; + span[index] = "liza"; + questRoot30.Author = list230; + index = 5; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + span2 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); - obj183.Steps = list246; - reference181 = obj183; - ref QuestSequence reference182 = ref span64[1]; - QuestSequence obj184 = new QuestSequence + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + obj173.Steps = list232; + reference171 = obj173; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - 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) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + ref QuestStep reference173 = ref span3[num2]; + QuestStep obj175 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { AethernetShortcut = new AethernetShortcut { @@ -32507,64 +38848,75 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - num3 = 1; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = new DialogueChoice + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + span7 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST007_00447_Q1_000_1") }; - obj185.DialogueChoices = list248; - reference183 = obj185; - span65[1] = new QuestStep(EInteractionType.Interact, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + obj175.DialogueChoices = list234; + reference173 = obj175; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f, DisableNavmesh = true }; - obj184.Steps = list247; - reference182 = obj184; - ref QuestSequence reference184 = ref span64[2]; - QuestSequence obj186 = new QuestSequence + obj174.Steps = list233; + reference172 = obj174; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 2 }; 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) + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + ref QuestStep reference175 = ref span3[index2]; + QuestStep obj177 = new QuestStep(EInteractionType.SinglePlayerDuty, 1000456u, new Vector3(-303.5172f, 21.902342f, 127.45862f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - SinglePlayerDutyOptions obj188 = new SinglePlayerDutyOptions + SinglePlayerDutyOptions obj178 = new SinglePlayerDutyOptions { Enabled = true }; num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; - obj188.Notes = list250; - obj187.SinglePlayerDutyOptions = obj188; - reference185 = obj187; - obj186.Steps = list249; - reference184 = obj186; - span64[3] = new QuestSequence + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + span = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span[index3] = "(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"; + obj178.Notes = list236; + obj177.SinglePlayerDutyOptions = obj178; + reference175 = obj177; + obj176.Steps = list235; + reference174 = obj176; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference186 = ref span64[4]; - QuestSequence obj189 = new QuestSequence + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - 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) + index2 = 2; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + ref QuestStep reference177 = ref span3[num2]; + QuestStep obj180 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32573,64 +38925,75 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice + index3 = 1; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + span7 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST007_00447_Q1_000_1") }; - obj190.DialogueChoices = list252; - reference187 = obj190; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + obj180.DialogueChoices = list238; + reference177 = obj180; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f, DisableNavmesh = true }; - obj189.Steps = list251; - reference186 = obj189; - questRoot32.QuestSequence = list245; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(448); - QuestRoot questRoot33 = new QuestRoot(); + obj179.Steps = list237; + reference176 = obj179; + questRoot30.QuestSequence = list231; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(448); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; - questRoot33.Author = list253; - num = 4; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span67 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference188 = ref span67[0]; - QuestSequence obj191 = new QuestSequence + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "liza"; + questRoot31.Author = list239; + index = 4; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f }; - obj191.Steps = list255; - reference188 = obj191; - ref QuestSequence reference189 = ref span67[1]; - QuestSequence obj192 = new QuestSequence + obj181.Steps = list241; + reference178 = obj181; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span68 = CollectionsMarshal.AsSpan(list256); - span68[0] = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) { TargetTerritoryId = (ushort)132 }; - span68[1] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -32638,68 +39001,82 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj192.Steps = list256; - reference189 = obj192; - ref QuestSequence reference190 = ref span67[2]; - QuestSequence obj193 = new QuestSequence + obj182.Steps = list242; + reference179 = obj182; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); - obj193.Steps = list257; - reference190 = obj193; - ref QuestSequence reference191 = ref span67[3]; - QuestSequence obj194 = new QuestSequence + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + obj183.Steps = list243; + reference180 = obj183; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); - obj194.Steps = list258; - reference191 = obj194; - questRoot33.QuestSequence = list254; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(449); - QuestRoot questRoot34 = new QuestRoot(); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + obj184.Steps = list244; + reference181 = obj184; + questRoot31.QuestSequence = list240; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(449); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; - questRoot34.Author = list259; - num = 3; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span69 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference192 = ref span69[0]; - QuestSequence obj195 = new QuestSequence + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "liza"; + questRoot32.Author = list245; + index = 3; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); - obj195.Steps = list261; - reference192 = obj195; - ref QuestSequence reference193 = ref span69[1]; - QuestSequence obj196 = new QuestSequence + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + obj185.Steps = list247; + reference182 = obj185; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span70 = CollectionsMarshal.AsSpan(list262); - span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + index2 = 2; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 2651u }; - span70[1] = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133) { AethernetShortcut = new AethernetShortcut { @@ -32707,24 +39084,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj196.Steps = list262; - reference193 = obj196; - ref QuestSequence reference194 = ref span69[2]; - QuestSequence obj197 = new QuestSequence + obj186.Steps = list248; + reference183 = obj186; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 4; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span71 = CollectionsMarshal.AsSpan(list263); - span71[0] = new QuestStep(EInteractionType.Interact, 2000087u, new Vector3(0.015197754f, 1.449585f, 7.7057495f), 179) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000087u, new Vector3(0.015197754f, 1.449585f, 7.7057495f), 179) { TargetTerritoryId = (ushort)132 }; - span71[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.596844f, -8f, 103.85207f), 132); - ref QuestStep reference195 = ref span71[2]; - QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.596844f, -8f, 103.85207f), 132); + index2++; + ref QuestStep reference185 = ref span3[index2]; + QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AethernetShortcut = new AethernetShortcut { @@ -32733,20 +39114,23 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = new DialogueChoice + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + span7 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST009_00449_Q2_000_1") }; - obj198.DialogueChoices = list264; - reference195 = obj198; - span71[3] = new QuestStep(EInteractionType.CompleteQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); - obj197.Steps = list263; - reference194 = obj197; - questRoot34.QuestSequence = list260; - AddQuest(questId34, questRoot34); + obj188.DialogueChoices = list250; + reference185 = obj188; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj187.Steps = list249; + reference184 = obj187; + questRoot32.QuestSequence = list246; + AddQuest(questId32, questRoot32); } private static void LoadQuests9() @@ -32756,12 +39140,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Cacahuetes"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Cacahuetes"; questRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -32769,7 +39157,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -32789,7 +39179,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN001_00451_Q1_000_000") @@ -32806,22 +39198,26 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list5); + index = 0; + span[index] = "Cacahuetes"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + span2 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -32837,10 +39233,12 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span[1]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -32848,12 +39246,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list8)[0]; + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference5 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span4 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN011_00452_Q1_000_000") @@ -32870,22 +39272,26 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "liza"; questRoot3.Author = list10; - num = 4; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference6 = ref span3[0]; + index = 4; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) + index2 = 2; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -32901,10 +39307,12 @@ public static class AssemblyQuestLoader } } }; - span4[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); obj5.Steps = list12; reference6 = obj5; - ref QuestSequence reference7 = ref span3[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -32912,12 +39320,16 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN020_00453_Q1_000_000") @@ -32926,16 +39338,18 @@ public static class AssemblyQuestLoader reference8 = questStep2; obj6.Steps = list13; reference7 = obj6; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span5[0]; + index2 = 2; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.5568014f, 66.12121f, 102.35001f), 135) { AethernetShortcut = new AethernetShortcut @@ -32945,11 +39359,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref ComplexCombatData reference11 = ref span6[0]; + index3 = 2; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + ref ComplexCombatData reference11 = ref span5[num3]; ComplexCombatData obj9 = new ComplexCombatData { DataId = 347u, @@ -32958,56 +39373,78 @@ public static class AssemblyQuestLoader int num4 = 6; List list17 = new List(num4); CollectionsMarshal.SetCount(list17, num4); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + Span span6 = CollectionsMarshal.AsSpan(list17); + int num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj9.CompletionQuestVariablesFlags = list17; reference11 = obj9; - ref ComplexCombatData reference12 = ref span6[1]; + num3++; + ref ComplexCombatData reference12 = ref span5[num3]; ComplexCombatData obj10 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = null; - span8[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num5 = 6; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span6 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj10.CompletionQuestVariablesFlags = list18; reference12 = obj10; obj8.ComplexCombatData = list16; num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + span6 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj8.CompletionQuestVariablesFlags = list19; reference10 = obj8; - ref QuestStep reference13 = ref span5[1]; + num2++; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(157.63565f, 38.01287f, 48.92973f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - ref ComplexCombatData reference14 = ref CollectionsMarshal.AsSpan(list20)[0]; + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + span5 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + ref ComplexCombatData reference14 = ref span5[num3]; ComplexCombatData obj12 = new ComplexCombatData { DataId = 324u, @@ -33016,31 +39453,44 @@ public static class AssemblyQuestLoader num4 = 6; List list21 = new List(num4); CollectionsMarshal.SetCount(list21, num4); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = null; - span10[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + span6 = CollectionsMarshal.AsSpan(list21); + num5 = 0; + span6[num5] = null; + num5++; + span6[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj12.CompletionQuestVariablesFlags = list21; reference14 = obj12; obj11.ComplexCombatData = list20; num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = null; - span11[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + span6 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj11.CompletionQuestVariablesFlags = list22; reference13 = obj11; obj7.Steps = list15; reference9 = obj7; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -33048,7 +39498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33067,21 +39519,26 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot4.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span12 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference16 = ref span12[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33099,7 +39556,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list26; reference16 = obj14; - ref QuestSequence reference17 = ref span12[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -33107,8 +39565,9 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span13 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference18 = ref span13[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.5568014f, 66.12121f, 102.35001f), 135) { AethernetShortcut = new AethernetShortcut @@ -33118,29 +39577,37 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span14 = CollectionsMarshal.AsSpan(list28); - ref ComplexCombatData reference19 = ref span14[0]; + index3 = 2; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + span5 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref ComplexCombatData reference19 = ref span5[num3]; ComplexCombatData obj17 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - num4 = 6; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span15 = CollectionsMarshal.AsSpan(list29); - span15[0] = null; - span15[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + num5 = 6; + List list29 = new List(num5); + CollectionsMarshal.SetCount(list29, num5); + span6 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj17.CompletionQuestVariablesFlags = list29; reference19 = obj17; - ref ComplexCombatData reference20 = ref span14[1]; + num3++; + ref ComplexCombatData reference20 = ref span5[num3]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 49u, @@ -33149,79 +39616,109 @@ public static class AssemblyQuestLoader num4 = 6; List list30 = new List(num4); CollectionsMarshal.SetCount(list30, num4); - Span span16 = CollectionsMarshal.AsSpan(list30); - span16[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = null; + span6 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj18.CompletionQuestVariablesFlags = list30; reference20 = obj18; obj16.ComplexCombatData = list28; num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span17 = CollectionsMarshal.AsSpan(list31); - span17[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span17[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = null; + span6 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj16.CompletionQuestVariablesFlags = list31; reference18 = obj16; - ref QuestStep reference21 = ref span13[1]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(157.63565f, 38.01287f, 48.92973f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - ref ComplexCombatData reference22 = ref CollectionsMarshal.AsSpan(list32)[0]; + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span5 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + ref ComplexCombatData reference22 = ref span5[num3]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 324u, MinimumKillCount = 3u }; - num4 = 6; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span18 = CollectionsMarshal.AsSpan(list33); - span18[0] = null; - span18[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = null; + num5 = 6; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + span6 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj20.CompletionQuestVariablesFlags = list33; reference22 = obj20; obj19.ComplexCombatData = list32; num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span19 = CollectionsMarshal.AsSpan(list34); - span19[0] = null; - span19[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = null; + span6 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj19.CompletionQuestVariablesFlags = list34; reference21 = obj19; obj15.Steps = list27; reference17 = obj15; - ref QuestSequence reference23 = ref span12[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33240,13 +39737,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span20 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference24 = ref span20[0]; + index = 6; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -33254,7 +39754,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33272,16 +39774,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list38; reference24 = obj22; - ref QuestSequence reference25 = ref span20[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span21 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference26 = ref span21[0]; + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(368.87418f, 61.448803f, -69.13581f), 135) { Fly = true, @@ -33292,10 +39796,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - ref ComplexCombatData reference27 = ref CollectionsMarshal.AsSpan(list40)[0]; + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + ref ComplexCombatData reference27 = ref span5[num3]; ComplexCombatData obj25 = new ComplexCombatData { DataId = 339u, @@ -33304,70 +39810,98 @@ public static class AssemblyQuestLoader num4 = 6; List list41 = new List(num4); CollectionsMarshal.SetCount(list41, num4); - Span span22 = CollectionsMarshal.AsSpan(list41); - span22[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = null; + span6 = CollectionsMarshal.AsSpan(list41); + num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj25.CompletionQuestVariablesFlags = list41; reference27 = obj25; obj24.ComplexCombatData = list40; num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span23 = CollectionsMarshal.AsSpan(list42); - span23[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = null; + span6 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj24.CompletionQuestVariablesFlags = list42; reference26 = obj24; - ref QuestStep reference28 = ref span21[1]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(381.1583f, 68.00773f, -114.15414f), 135) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - ref ComplexCombatData reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span5 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref ComplexCombatData reference29 = ref span5[num3]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 118u, MinimumKillCount = 3u }; - num4 = 6; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span24 = CollectionsMarshal.AsSpan(list44); - span24[0] = null; - span24[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num5 = 6; + List list44 = new List(num5); + CollectionsMarshal.SetCount(list44, num5); + span6 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj27.CompletionQuestVariablesFlags = list44; reference29 = obj27; obj26.ComplexCombatData = list43; num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span25 = CollectionsMarshal.AsSpan(list45); - span25[0] = null; - span25[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = null; + span6 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj26.CompletionQuestVariablesFlags = list45; reference28 = obj26; obj23.Steps = list39; reference25 = obj23; - ref QuestSequence reference30 = ref span20[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -33375,7 +39909,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33386,15 +39922,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list46; reference30 = obj28; - ref QuestSequence reference31 = ref span20[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list47)[0]; + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002266u, new Vector3(-0.13739014f, 26.077637f, 196.52087f), 134) { AethernetShortcut = new AethernetShortcut @@ -33404,15 +39943,18 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 39u; + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span7 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span7[num3] = 39u; obj30.KillEnemyDataIds = list48; reference32 = obj30; obj29.Steps = list47; reference31 = obj29; - ref QuestSequence reference33 = ref span20[4]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -33420,12 +39962,16 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list49)[0]; + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2002476u, new Vector3(-0.10687256f, 25.955566f, 196.55139f), 134); num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN050_00455_Q1_000_000"), @@ -33435,15 +39981,18 @@ public static class AssemblyQuestLoader reference34 = questStep3; obj31.Steps = list49; reference33 = obj31; - ref QuestSequence reference35 = ref span20[5]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33462,13 +40011,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot6.Author = list52; - num = 7; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span26 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference36 = ref span26[0]; + index = 7; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -33476,7 +40028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33494,63 +40048,83 @@ public static class AssemblyQuestLoader }; obj33.Steps = list54; reference36 = obj33; - ref QuestSequence reference37 = ref span26[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span27 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference38 = ref span27[0]; + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(667.4784f, 15.36824f, 443.4379f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 22u; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span7 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span7[num3] = 22u; obj35.KillEnemyDataIds = list56; num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span28 = CollectionsMarshal.AsSpan(list57); - span28[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = null; + span6 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj35.CompletionQuestVariablesFlags = list57; reference38 = obj35; - ref QuestStep reference39 = ref span27[1]; + num2++; + ref QuestStep reference39 = ref span3[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(686.6034f, 23.682272f, 422.78772f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = 138u; + index3 = 1; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + span7 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span7[num3] = 138u; obj36.KillEnemyDataIds = list58; num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span29 = CollectionsMarshal.AsSpan(list59); - span29[0] = null; - span29[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + span6 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj36.CompletionQuestVariablesFlags = list59; reference39 = obj36; obj34.Steps = list55; reference37 = obj34; - ref QuestSequence reference40 = ref span26[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -33558,7 +40132,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33569,18 +40145,22 @@ public static class AssemblyQuestLoader }; obj37.Steps = list60; reference40 = obj37; - ref QuestSequence reference41 = ref span26[3]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); obj38.Steps = list61; reference41 = obj38; - ref QuestSequence reference42 = ref span26[4]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -33588,30 +40168,37 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj39.Steps = list62; reference42 = obj39; - ref QuestSequence reference43 = ref span26[5]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference44 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1005201u, new Vector3(-98.49707f, 47.27536f, -262.31793f), 134) { StopDistance = 5f }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + index3 = 1; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + span4 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN100_00456_Q1_000_000"), @@ -33621,7 +40208,8 @@ public static class AssemblyQuestLoader reference44 = obj41; obj40.Steps = list63; reference43 = obj40; - ref QuestSequence reference45 = ref span26[6]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -33629,7 +40217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33648,21 +40238,26 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot7.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span30 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span30[0]; + index = 7; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33680,7 +40275,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list68; reference46 = obj43; - ref QuestSequence reference47 = ref span30[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -33688,8 +40284,9 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span31 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference48 = ref span31[0]; + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(667.4784f, 15.36824f, 443.4379f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -33698,21 +40295,30 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 22u; + span7 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span7[index3] = 22u; obj45.KillEnemyDataIds = list70; - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = null; + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + span6 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span6[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj45.CompletionQuestVariablesFlags = list71; reference48 = obj45; - ref QuestStep reference49 = ref span31[1]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(686.6034f, 23.682272f, 422.78772f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -33720,31 +40326,42 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 138u; + span7 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span7[index3] = 138u; obj46.KillEnemyDataIds = list72; - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span33 = CollectionsMarshal.AsSpan(list73); - span33[0] = null; - span33[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = null; + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span6 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj46.CompletionQuestVariablesFlags = list73; reference49 = obj46; obj44.Steps = list69; reference47 = obj44; - ref QuestSequence reference50 = ref span30[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33755,7 +40372,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list74; reference50 = obj47; - ref QuestSequence reference51 = ref span30[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -33763,25 +40381,31 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); obj48.Steps = list75; reference51 = obj48; - ref QuestSequence reference52 = ref span30[4]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj49.Steps = list76; reference52 = obj49; - ref QuestSequence reference53 = ref span30[5]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -33789,7 +40413,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 1005201u, new Vector3(-98.49707f, 47.27536f, -262.31793f), 134) { StopDistance = 5f @@ -33797,7 +40423,9 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN101_00457_Q1_000_000"), @@ -33807,15 +40435,18 @@ public static class AssemblyQuestLoader reference54 = obj51; obj50.Steps = list77; reference53 = obj50; - ref QuestSequence reference55 = ref span30[6]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33834,13 +40465,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot8.Author = list80; - num = 6; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span34 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference56 = ref span34[0]; + index = 6; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -33848,7 +40482,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33866,21 +40502,25 @@ public static class AssemblyQuestLoader }; obj53.Steps = list82; reference56 = obj53; - ref QuestSequence reference57 = ref span34[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1005208u, new Vector3(316.02954f, -24.136772f, 211.20007f), 138) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005208u, new Vector3(316.02954f, -24.136772f, 211.20007f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj54.Steps = list83; reference57 = obj54; - ref QuestSequence reference58 = ref span34[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -33888,34 +40528,42 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list84)[0]; + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference59 = ref span3[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span35 = CollectionsMarshal.AsSpan(list85); - span35[0] = 317u; - span35[1] = 318u; + index3 = 2; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span7 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span7[num3] = 317u; + num3++; + span7[num3] = 318u; obj56.KillEnemyDataIds = list85; reference59 = obj56; obj55.Steps = list84; reference58 = obj55; - ref QuestSequence reference60 = ref span34[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138); obj57.Steps = list86; reference60 = obj57; - ref QuestSequence reference61 = ref span34[4]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -33923,18 +40571,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002009u, new Vector3(173.81543f, -41.36731f, 280.7201f), 138); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002009u, new Vector3(173.81543f, -41.36731f, 280.7201f), 138); obj58.Steps = list87; reference61 = obj58; - ref QuestSequence reference62 = ref span34[5]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33953,13 +40606,16 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "liza"; questRoot9.Author = list89; - num = 8; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span36 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference63 = ref span36[0]; + index = 8; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -33967,7 +40623,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33985,15 +40643,18 @@ public static class AssemblyQuestLoader }; obj60.Steps = list91; reference63 = obj60; - ref QuestSequence reference64 = ref span36[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) { AethernetShortcut = new AethernetShortcut { @@ -34003,7 +40664,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list92; reference64 = obj61; - ref QuestSequence reference65 = ref span36[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -34011,7 +40673,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1000938u, new Vector3(-4.654114f, 44.999847f, -241.84027f), 128) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000938u, new Vector3(-4.654114f, 44.999847f, -241.84027f), 128) { AethernetShortcut = new AethernetShortcut { @@ -34021,15 +40685,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list93; reference65 = obj62; - ref QuestSequence reference66 = ref span36[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AethernetShortcut = new AethernetShortcut { @@ -34039,7 +40706,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference66 = obj63; - ref QuestSequence reference67 = ref span36[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 4 @@ -34047,24 +40715,29 @@ public static class AssemblyQuestLoader num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span37 = CollectionsMarshal.AsSpan(list95); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.58797f, -41.12709f, 260.26315f), 138) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.58797f, -41.12709f, 260.26315f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span37[1] = new QuestStep(EInteractionType.Interact, 1005215u, new Vector3(178.66785f, -41.140213f, 261.61597f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005215u, new Vector3(178.66785f, -41.140213f, 261.61597f), 138); obj64.Steps = list95; reference67 = obj64; - ref QuestSequence reference68 = ref span36[5]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1005217u, new Vector3(103.74609f, 68.15523f, 329.45752f), 135) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005217u, new Vector3(103.74609f, 68.15523f, 329.45752f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -34076,7 +40749,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list96; reference68 = obj65; - ref QuestSequence reference69 = ref span36[6]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 6 @@ -34084,18 +40758,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002010u, new Vector3(108.384766f, 68.13147f, 351.61353f), 135); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002010u, new Vector3(108.384766f, 68.13147f, 351.61353f), 135); obj66.Steps = list97; reference69 = obj66; - ref QuestSequence reference70 = ref span36[7]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34114,13 +40793,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot10.Author = list99; - num = 12; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span38 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference71 = ref span38[0]; + index = 12; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -34128,7 +40810,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34146,27 +40830,31 @@ public static class AssemblyQuestLoader }; obj68.Steps = list101; reference71 = obj68; - ref QuestSequence reference72 = ref span38[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span39 = CollectionsMarshal.AsSpan(list102); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.82263f, 31.185892f, -11.729958f), 138) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.82263f, 31.185892f, -11.729958f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span39[1] = new QuestStep(EInteractionType.Interact, 1005227u, new Vector3(-311.32983f, -1.5234554f, 127.336426f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005227u, new Vector3(-311.32983f, -1.5234554f, 127.336426f), 139) { Fly = true }; obj69.Steps = list102; reference72 = obj69; - ref QuestSequence reference73 = ref span38[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -34174,8 +40862,9 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span40 = CollectionsMarshal.AsSpan(list103); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) { SkipConditions = new SkipConditions { @@ -34185,73 +40874,99 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Fly = true }; - span40[2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); obj70.Steps = list103; reference73 = obj70; - ref QuestSequence reference74 = ref span38[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - num2 = 6; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span41 = CollectionsMarshal.AsSpan(list104); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + index2 = 6; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Mount = true }; - ref QuestStep reference75 = ref span41[1]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001892u, new Vector3(-457.7249f, 29.19043f, 58.335205f), 139); num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span42 = CollectionsMarshal.AsSpan(list105); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list105; reference75 = questStep4; - ref QuestStep reference76 = ref span41[2]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001894u, new Vector3(-393.4234f, 42.557373f, -2.975586f), 139); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span43 = CollectionsMarshal.AsSpan(list106); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + span6 = CollectionsMarshal.AsSpan(list106); + 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); questStep5.CompletionQuestVariablesFlags = list106; reference76 = questStep5; - ref QuestStep reference77 = ref span41[3]; + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-373.06784f, 38.31673f, 36.456448f), 139); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span44 = CollectionsMarshal.AsSpan(list107); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list107; skipConditions.StepIf = skipStepConditions; questStep6.SkipConditions = skipConditions; reference77 = questStep6; - ref QuestStep reference78 = ref span41[4]; + num2++; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.3377f, 27.109692f, 40.748257f), 139) { DisableNavmesh = true, @@ -34259,37 +40974,51 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + span6 = CollectionsMarshal.AsSpan(list108); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list108; skipConditions2.StepIf = skipStepConditions2; obj72.SkipConditions = skipConditions2; reference78 = obj72; - ref QuestStep reference79 = ref span41[5]; + num2++; + ref QuestStep reference79 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001893u, new Vector3(-388.72363f, 27.023682f, 45.578613f), 139); num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span46 = CollectionsMarshal.AsSpan(list109); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list109; reference79 = questStep7; obj71.Steps = list104; reference74 = obj71; - ref QuestSequence reference80 = ref span38[4]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -34297,43 +41026,52 @@ public static class AssemblyQuestLoader num2 = 4; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span47 = CollectionsMarshal.AsSpan(list110); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.99802f, 19.50849f, 60.498474f), 139) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.99802f, 19.50849f, 60.498474f), 139) { Mount = true }; - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.06293f, -1.8700926f, 65.585f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.06293f, -1.8700926f, 65.585f), 139) { DisableNavmesh = true }; - span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139); - span47[3] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); obj73.Steps = list110; reference80 = obj73; - ref QuestSequence reference81 = ref span38[5]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span48 = CollectionsMarshal.AsSpan(list111); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Mount = true }; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-599.5244f, -3.3999999f, -51.651997f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-599.5244f, -3.3999999f, -51.651997f), 139) { Fly = true }; - span48[2] = new QuestStep(EInteractionType.Emote, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) { Emote = EEmote.Dance }; obj74.Steps = list111; reference81 = obj74; - ref QuestSequence reference82 = ref span38[6]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 6 @@ -34341,35 +41079,54 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139); obj75.Steps = list112; reference82 = obj75; - ref QuestSequence reference83 = ref span38[7]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span49 = CollectionsMarshal.AsSpan(list113); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-512.61053f, -3.4000013f, 0.97738916f), 139); - span49[1] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; + QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) + { + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span7 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span7[num3] = 39u; + obj77.KillEnemyDataIds = list114; + reference84 = obj77; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) { DelaySecondsAtStart = 5f }; obj76.Steps = list113; reference83 = obj76; - ref QuestSequence reference84 = ref span38[8]; - QuestSequence obj77 = new QuestSequence + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 8 }; num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span50 = CollectionsMarshal.AsSpan(list114); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) { SkipConditions = new SkipConditions { @@ -34379,23 +41136,26 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.Emote, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139) { Fly = true, Emote = EEmote.Dance }; - obj77.Steps = list114; - reference84 = obj77; - ref QuestSequence reference85 = ref span38[9]; - QuestSequence obj78 = new QuestSequence + obj78.Steps = list115; + reference85 = obj78; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span51 = CollectionsMarshal.AsSpan(list115); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.68823f, 39.999985f, 154.54538f), 128) + index2 = 2; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.68823f, 39.999985f, 154.54538f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34404,43 +41164,52 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - ref QuestStep reference86 = ref span51[1]; - QuestStep obj79 = new QuestStep(EInteractionType.Emote, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128) + num2++; + ref QuestStep reference87 = ref span3[num2]; + QuestStep obj80 = new QuestStep(EInteractionType.Emote, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128) { Emote = EEmote.Dance }; num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + span4 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN250_00460_Q1_000_000") }; - obj79.DialogueChoices = list116; + obj80.DialogueChoices = list117; + reference87 = obj80; + obj79.Steps = list116; reference86 = obj79; - obj78.Steps = list115; - reference85 = obj78; - ref QuestSequence reference87 = ref span38[10]; - QuestSequence obj80 = new QuestSequence + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 10 }; num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128); - obj80.Steps = list117; - reference87 = obj80; - ref QuestSequence reference88 = ref span38[11]; - QuestSequence obj81 = new QuestSequence + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128); + obj81.Steps = list118; + reference88 = obj81; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34450,30 +41219,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(461) }; - obj81.Steps = list118; - reference88 = obj81; + obj82.Steps = list119; + reference89 = obj82; questRoot10.QuestSequence = list100; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(461); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; - questRoot11.Author = list119; - num = 10; - List list120 = new List(num); + List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span52 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference89 = ref span52[0]; - QuestSequence obj82 = new QuestSequence + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; + questRoot11.Author = list120; + index = 10; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34489,96 +41263,43 @@ public static class AssemblyQuestLoader } } }; - obj82.Steps = list121; - reference89 = obj82; - ref QuestSequence reference90 = ref span52[1]; - QuestSequence obj83 = new QuestSequence + obj83.Steps = list122; + reference90 = obj83; + num++; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span53 = CollectionsMarshal.AsSpan(list122); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + index2 = 4; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(540.5525f, 10.00537f, 215.53333f), 137) { - AethernetShortcut = new AethernetShortcut + AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, + SkipConditions = new SkipConditions { - From = EAetheryteLocation.LimsaArcanist, - To = EAetheryteLocation.LimsaFisher + StepIf = new SkipStepConditions + { + Flying = ELockedSkipCondition.Unlocked + } } }; - span53[1] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.74445f, 11.959542f, 214.24825f), 137) { - StopDistance = 7f, - TargetTerritoryId = (ushort)137 + SkipConditions = new SkipConditions + { + StepIf = new SkipStepConditions + { + Flying = ELockedSkipCondition.Unlocked + } + } }; - span53[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) - { - Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol - }; - span53[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.1713f, 9.74752f, 217.08224f), 137) - { - Fly = true - }; - span53[4] = new QuestStep(EInteractionType.Interact, 1005251u, new Vector3(550.46924f, 12.147732f, 220.9353f), 137) - { - StopDistance = 5f - }; - obj83.Steps = list122; - reference90 = obj83; - ref QuestSequence reference91 = ref span52[2]; - QuestSequence obj84 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span54 = CollectionsMarshal.AsSpan(list123); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.48083f, 8.70027f, 398.26666f), 137) - { - AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol - }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(585.3419f, 14.562424f, 379.80997f), 137); - span54[2] = new QuestStep(EInteractionType.Interact, 1005252u, new Vector3(586.0226f, 14.562427f, 376.21106f), 137) - { - StopDistance = 5f - }; - obj84.Steps = list123; - reference91 = obj84; - ref QuestSequence reference92 = ref span52[3]; - QuestSequence obj85 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); - obj85.Steps = list124; - reference92 = obj85; - ref QuestSequence reference93 = ref span52[4]; - QuestSequence obj86 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1005253u, new Vector3(564.35486f, 20.617891f, 504.32593f), 137); - obj86.Steps = list125; - reference93 = obj86; - ref QuestSequence reference94 = ref span52[5]; - QuestSequence obj87 = new QuestSequence - { - Sequence = 5 - }; - num2 = 3; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span55 = CollectionsMarshal.AsSpan(list126); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.26044f, 27.708418f, 469.322f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.48584f, 12.640512f, 220.15768f), 137) { Fly = true, SkipConditions = new SkipConditions @@ -34589,62 +41310,156 @@ public static class AssemblyQuestLoader } } }; - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.59036f, 15.174555f, 377.2856f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005251u, new Vector3(550.46924f, 12.147732f, 220.9353f), 137) + { + StopDistance = 5f + }; + obj84.Steps = list123; + reference91 = obj84; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj85 = new QuestSequence + { + Sequence = 2 + }; + num2 = 3; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.48083f, 8.70027f, 398.26666f), 137) + { + AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(585.3419f, 14.562424f, 379.80997f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005252u, new Vector3(586.0226f, 14.562427f, 376.21106f), 137) + { + StopDistance = 5f + }; + obj85.Steps = list124; + reference92 = obj85; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj86 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); + obj86.Steps = list125; + reference93 = obj86; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj87 = new QuestSequence + { + Sequence = 4 + }; + num2 = 1; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005253u, new Vector3(564.35486f, 20.617891f, 504.32593f), 137); + obj87.Steps = list126; + reference94 = obj87; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj88 = new QuestSequence + { + Sequence = 5 + }; + index2 = 3; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.26044f, 27.708418f, 469.322f), 137) + { + Fly = true, + SkipConditions = new SkipConditions + { + StepIf = new SkipStepConditions + { + Flying = ELockedSkipCondition.Locked + } + } + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.59036f, 15.174555f, 377.2856f), 137) { Fly = true }; - span55[2] = new QuestStep(EInteractionType.Interact, 1005254u, new Vector3(442.00806f, 15.793267f, 370.32104f), 137); - obj87.Steps = list126; - reference94 = obj87; - ref QuestSequence reference95 = ref span52[6]; - QuestSequence obj88 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005254u, new Vector3(442.00806f, 15.793267f, 370.32104f), 137); + obj88.Steps = list127; + reference95 = obj88; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list127)[0]; - QuestStep obj89 = new QuestStep(EInteractionType.Interact, 1005229u, new Vector3(522.9114f, 17.448051f, 456.35156f), 137) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference97 = ref span3[index2]; + QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1005229u, new Vector3(522.9114f, 17.448051f, 456.35156f), 137) { Fly = true }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + index3 = 1; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span4 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN300_00461_Q1_000_001") }; - obj89.DialogueChoices = list128; + obj90.DialogueChoices = list129; + reference97 = obj90; + obj89.Steps = list128; reference96 = obj89; - obj88.Steps = list127; - reference95 = obj88; - ref QuestSequence reference97 = ref span52[7]; - QuestSequence obj90 = new QuestSequence + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005235u, new Vector3(684.3823f, 11.594438f, 411.94775f), 137) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005235u, new Vector3(684.3823f, 11.594438f, 411.94775f), 137) { StopDistance = 1f, Fly = true }; - obj90.Steps = list129; - reference97 = obj90; - ref QuestSequence reference98 = ref span52[8]; - QuestSequence obj91 = new QuestSequence + obj91.Steps = list130; + reference98 = obj91; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34653,79 +41468,86 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaArcanist } }; - obj91.Steps = list130; - reference98 = obj91; - ref QuestSequence reference99 = ref span52[9]; - QuestSequence obj92 = new QuestSequence + obj92.Steps = list131; + reference99 = obj92; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { NextQuestId = new QuestId(1091) }; - obj92.Steps = list131; - reference99 = obj92; - questRoot11.QuestSequence = list120; + obj93.Steps = list132; + reference100 = obj93; + questRoot11.QuestSequence = list121; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(462); QuestRoot questRoot12 = new QuestRoot(); - num = 2; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span56 = CollectionsMarshal.AsSpan(list132); - span56[0] = "liza"; - span56[1] = "Wigglez"; - questRoot12.Author = list132; - num = 2; - List list133 = new List(num); + num = 1; + List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span57 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference100 = ref span57[0]; - QuestSequence obj93 = new QuestSequence + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "liza"; + questRoot12.Author = list133; + index = 2; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list134)[0]; - QuestStep obj94 = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { - AetheryteShortcut = EAetheryteLocation.Limsa + AetheryteShortcut = EAetheryteLocation.Limsa, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Limsa, + To = EAetheryteLocation.LimsaCulinarian + }, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } }; - SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition obj95 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; + obj94.Steps = list135; reference101 = obj94; - obj93.Steps = list134; - reference100 = obj93; - ref QuestSequence reference102 = ref span57[1]; - QuestSequence obj96 = new QuestSequence + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span58 = CollectionsMarshal.AsSpan(list136); - span58[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2 = 4; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - span58[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -34734,49 +41556,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - span58[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span58[3] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj96.Steps = list136; - reference102 = obj96; - questRoot12.QuestSequence = list133; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj95.Steps = list136; + reference102 = obj95; + questRoot12.QuestSequence = list134; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(463); QuestRoot questRoot13 = new QuestRoot(); num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "liza"; questRoot13.Author = list137; - num = 2; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span59 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span59[0]; - QuestSequence obj97 = new QuestSequence + index = 2; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 0 }; num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj97.Steps = list139; - reference103 = obj97; - ref QuestSequence reference104 = ref span59[1]; - QuestSequence obj98 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj96.Steps = list139; + reference103 = obj96; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span60 = CollectionsMarshal.AsSpan(list140); - span60[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 134); - ref QuestStep reference105 = ref span60[1]; - QuestStep obj99 = new QuestStep(EInteractionType.PurchaseItem, 1003257u, new Vector3(201.70898f, 98.422874f, -206.10364f), 134) + index2 = 6; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 134); + num2++; + ref QuestStep reference105 = ref span3[num2]; + QuestStep obj98 = new QuestStep(EInteractionType.PurchaseItem, 1003257u, new Vector3(201.70898f, 98.422874f, -206.10364f), 134) { ItemId = 2653u, ItemCount = 1, @@ -34791,32 +41623,38 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.DoW; - obj99.RequiredCurrentJob = list141; + Span span8 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span8[index3] = EExtendedClassJob.DoW; + obj98.RequiredCurrentJob = list141; + obj98.PurchaseMenu = new PurchaseMenu + { + ExcelSheet = "GilShop", + Key = new ExcelRef(262292u) + }; + reference105 = obj98; + num2++; + ref QuestStep reference106 = ref span3[num2]; + QuestStep obj99 = 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); + span8 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span8[num3] = EExtendedClassJob.DoM; + obj99.RequiredCurrentJob = list142; obj99.PurchaseMenu = new PurchaseMenu { ExcelSheet = "GilShop", Key = new ExcelRef(262292u) }; - reference105 = obj99; - 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 - }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = EExtendedClassJob.DoM; - obj100.RequiredCurrentJob = list142; - obj100.PurchaseMenu = new PurchaseMenu - { - ExcelSheet = "GilShop", - Key = new ExcelRef(262292u) - }; - reference106 = obj100; - span60[3] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + reference106 = obj99; + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -34830,7 +41668,8 @@ public static class AssemblyQuestLoader } } }; - span60[4] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -34844,12 +41683,13 @@ public static class AssemblyQuestLoader } } }; - span60[5] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134) { Comment = "All starting gear (except the hat) is ilvl 5 already" }; - obj98.Steps = list140; - reference104 = obj98; + obj97.Steps = list140; + reference104 = obj97; questRoot13.QuestSequence = list138; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(465); @@ -34857,34 +41697,41 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot14.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span61 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference107 = ref span61[0]; - QuestSequence obj101 = new QuestSequence + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 0 }; num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj101.Steps = list145; - reference107 = obj101; - ref QuestSequence reference108 = ref span61[1]; - QuestSequence obj102 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj100.Steps = list145; + reference107 = obj100; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span62 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference109 = ref span62[0]; - QuestStep obj103 = new QuestStep(EInteractionType.Jump, null, new Vector3(200.59262f, 109.63514f, -268.2013f), 134) + index2 = 6; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference109 = ref span3[num2]; + QuestStep obj102 = new QuestStep(EInteractionType.Jump, null, new Vector3(200.59262f, 109.63514f, -268.2013f), 134) { JumpDestination = new JumpDestination { @@ -34892,67 +41739,91 @@ public static class AssemblyQuestLoader StopDistance = 3f } }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list147; - skipConditions4.StepIf = skipStepConditions3; - obj103.SkipConditions = skipConditions4; - reference109 = obj103; - ref QuestStep reference110 = ref span62[1]; - QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1002639u, new Vector3(197.16174f, 101.098366f, -273.57898f), 134) + skipConditions3.StepIf = skipStepConditions3; + obj102.SkipConditions = skipConditions3; + reference109 = obj102; + num2++; + ref QuestStep reference110 = ref span3[num2]; + QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1002639u, new Vector3(197.16174f, 101.098366f, -273.57898f), 134) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span64 = CollectionsMarshal.AsSpan(list148); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - obj104.CompletionQuestVariablesFlags = list148; + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span6 = CollectionsMarshal.AsSpan(list148); + 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)8, EQuestWorkMode.Bitwise); + obj103.CompletionQuestVariablesFlags = list148; num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q4_000_1"), Answer = new ExcelRef("TEXT_SUBSEA053_00465_A4_000_2") }; - obj104.DialogueChoices = list149; - reference110 = obj104; - ref QuestStep reference111 = ref span62[2]; + obj103.DialogueChoices = list149; + reference110 = obj103; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1002638u, new Vector3(169.35986f, 93.96625f, -191.36346f), 134); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span65 = CollectionsMarshal.AsSpan(list150); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span6 = CollectionsMarshal.AsSpan(list150); + 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); questStep8.CompletionQuestVariablesFlags = list150; num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q3_000_1"), @@ -34960,23 +41831,32 @@ public static class AssemblyQuestLoader }; questStep8.DialogueChoices = list151; reference111 = questStep8; - ref QuestStep reference112 = ref span62[3]; + num2++; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1002637u, new Vector3(94.46863f, 66.13388f, -257.52655f), 134); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span66 = CollectionsMarshal.AsSpan(list152); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span6 = CollectionsMarshal.AsSpan(list152); + 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); questStep9.CompletionQuestVariablesFlags = list152; num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q2_000_1"), @@ -34984,23 +41864,32 @@ public static class AssemblyQuestLoader }; questStep9.DialogueChoices = list153; reference112 = questStep9; - ref QuestStep reference113 = ref span62[4]; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1002636u, new Vector3(17.746216f, 60.791252f, -269.91687f), 134); - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span67 = CollectionsMarshal.AsSpan(list154); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + span6 = CollectionsMarshal.AsSpan(list154); + 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); questStep10.CompletionQuestVariablesFlags = list154; num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q1_000_1"), @@ -35008,33 +41897,43 @@ public static class AssemblyQuestLoader }; questStep10.DialogueChoices = list155; reference113 = questStep10; - ref QuestStep reference114 = ref span62[5]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1002635u, new Vector3(33.829224f, 54.646034f, -150.31665f), 134); - num3 = 6; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - Span span68 = CollectionsMarshal.AsSpan(list156); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list156 = new List(index3); + CollectionsMarshal.SetCount(list156, index3); + span6 = CollectionsMarshal.AsSpan(list156); + 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); questStep11.CompletionQuestVariablesFlags = list156; reference114 = questStep11; - obj102.Steps = list146; - reference108 = obj102; - ref QuestSequence reference115 = ref span61[2]; - QuestSequence obj105 = new QuestSequence + obj101.Steps = list146; + reference108 = obj101; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj105.Steps = list157; - reference115 = obj105; + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj104.Steps = list157; + reference115 = obj104; questRoot14.QuestSequence = list144; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(466); @@ -35042,160 +41941,205 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "liza"; questRoot15.Author = list158; - num = 7; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span69 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference116 = ref span69[0]; - QuestSequence obj106 = new QuestSequence + index = 7; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj106.Steps = list160; - reference116 = obj106; - ref QuestSequence reference117 = ref span69[1]; - QuestSequence obj107 = new QuestSequence + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj105.Steps = list160; + reference116 = obj105; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 1 }; num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Emote, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134) { Emote = EEmote.Doubt }; - obj107.Steps = list161; - reference117 = obj107; - ref QuestSequence reference118 = ref span69[2]; - QuestSequence obj108 = new QuestSequence + obj106.Steps = list161; + reference117 = obj106; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span70 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference119 = ref span70[0]; - QuestStep obj109 = new QuestStep(EInteractionType.Combat, null, new Vector3(189.7694f, 46.25815f, 121.13219f), 134) + index2 = 4; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference119 = ref span3[num2]; + QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(189.7694f, 46.25815f, 121.13219f), 134) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 52u, IgnoreQuestMarker = true }; - obj109.ComplexCombatData = list163; - reference119 = obj109; - ref QuestStep reference120 = ref span70[1]; + obj108.ComplexCombatData = list163; + reference119 = obj108; + num2++; + ref QuestStep reference120 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1002643u, new Vector3(194.44568f, 46.41682f, 119.21863f), 134); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span71 = CollectionsMarshal.AsSpan(list164); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span6 = CollectionsMarshal.AsSpan(list164); + 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); questStep12.CompletionQuestVariablesFlags = list164; reference120 = questStep12; - ref QuestStep reference121 = ref span70[2]; - QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1002642u, new Vector3(192.52307f, 46.299305f, 122.11792f), 134) + num2++; + ref QuestStep reference121 = ref span3[num2]; + QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1002642u, new Vector3(192.52307f, 46.299305f, 122.11792f), 134) { StopDistance = 7f }; 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); - obj110.CompletionQuestVariablesFlags = list165; - reference121 = obj110; - ref QuestStep reference122 = ref span70[3]; - QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1002641u, new Vector3(190.875f, 46.324783f, 118.30322f), 134) + span6 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj109.CompletionQuestVariablesFlags = list165; + reference121 = obj109; + num2++; + ref QuestStep reference122 = ref span3[num2]; + QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1002641u, new Vector3(190.875f, 46.324783f, 118.30322f), 134) { StopDistance = 7f }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span73 = CollectionsMarshal.AsSpan(list166); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj111.CompletionQuestVariablesFlags = list166; - reference122 = obj111; - obj108.Steps = list162; - reference118 = obj108; - ref QuestSequence reference123 = ref span69[3]; - QuestSequence obj112 = new QuestSequence + index3 = 6; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + span6 = CollectionsMarshal.AsSpan(list166); + 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); + obj110.CompletionQuestVariablesFlags = list166; + reference122 = obj110; + obj107.Steps = list162; + reference118 = obj107; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 3 }; num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134); - obj112.Steps = list167; - reference123 = obj112; - ref QuestSequence reference124 = ref span69[4]; - QuestSequence obj113 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134); + obj111.Steps = list167; + reference123 = obj111; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2001279u, new Vector3(132.7992f, 45.76172f, 134.93542f), 134); - obj113.Steps = list168; - reference124 = obj113; - ref QuestSequence reference125 = ref span69[5]; - QuestSequence obj114 = new QuestSequence + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001279u, new Vector3(132.7992f, 45.76172f, 134.93542f), 134); + obj112.Steps = list168; + reference124 = obj112; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 5 }; num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1002630u, new Vector3(179.85803f, 64.61002f, 294.75854f), 134); - obj114.Steps = list169; - reference125 = obj114; - ref QuestSequence reference126 = ref span69[6]; - QuestSequence obj115 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002630u, new Vector3(179.85803f, 64.61002f, 294.75854f), 134); + obj113.Steps = list169; + reference125 = obj113; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span74 = CollectionsMarshal.AsSpan(list170); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) + index2 = 2; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj115.Steps = list170; - reference126 = obj115; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj114.Steps = list170; + reference126 = obj114; questRoot15.QuestSequence = list159; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(467); @@ -35203,33 +42147,40 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; questRoot16.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span75 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference127 = ref span75[0]; - QuestSequence obj116 = new QuestSequence + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 0 }; num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002627u, new Vector3(203.32642f, 111.72371f, -213.91626f), 134); - obj116.Steps = list173; - reference127 = obj116; - ref QuestSequence reference128 = ref span75[1]; - QuestSequence obj117 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002627u, new Vector3(203.32642f, 111.72371f, -213.91626f), 134); + obj115.Steps = list173; + reference127 = obj115; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span76 = CollectionsMarshal.AsSpan(list174); - span76[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(202.80931f, 111.89438f, -216.29411f), 134) + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(202.80931f, 111.89438f, -216.29411f), 134) { JumpDestination = new JumpDestination { @@ -35237,73 +42188,105 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - span76[1] = new QuestStep(EInteractionType.Interact, 1002629u, new Vector3(52.750366f, 64.48143f, -185.71759f), 134); - obj117.Steps = list174; - reference128 = obj117; - ref QuestSequence reference129 = ref span75[2]; - QuestSequence obj118 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002629u, new Vector3(52.750366f, 64.48143f, -185.71759f), 134); + obj116.Steps = list174; + reference128 = obj116; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 2 }; num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span77 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference130 = ref span77[0]; + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2001239u, new Vector3(-132.9519f, 45.365112f, -228.93109f), 134); num3 = 6; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span78 = CollectionsMarshal.AsSpan(list176); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list176; reference130 = questStep13; - ref QuestStep reference131 = ref span77[1]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001238u, new Vector3(-121.78229f, 45.97534f, -210.83392f), 134); - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span79 = CollectionsMarshal.AsSpan(list177); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list177; - reference131 = questStep14; - ref QuestStep reference132 = ref span77[2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001237u, new Vector3(-129.38129f, 46.67737f, -192.52313f), 134); + index2++; + ref QuestStep reference131 = ref span3[index2]; + QuestStep obj118 = new QuestStep(EInteractionType.Interact, 2001238u, new Vector3(-121.78229f, 45.97534f, -210.83392f), 134) + { + DisableNavmesh = true + }; + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + span6 = CollectionsMarshal.AsSpan(list177); + 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); + obj118.CompletionQuestVariablesFlags = list177; + reference131 = obj118; + index2++; + ref QuestStep reference132 = ref span3[index2]; + QuestStep obj119 = new QuestStep(EInteractionType.Interact, 2001237u, new Vector3(-129.38129f, 46.67737f, -192.52313f), 134) + { + DisableNavmesh = true + }; num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span80 = CollectionsMarshal.AsSpan(list178); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list178; - reference132 = questStep15; - obj118.Steps = list175; - reference129 = obj118; - ref QuestSequence reference133 = ref span75[3]; - QuestSequence obj119 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj119.CompletionQuestVariablesFlags = list178; + reference132 = obj119; + obj117.Steps = list175; + reference129 = obj117; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); - obj119.Steps = list179; - reference133 = obj119; + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + obj120.Steps = list179; + reference133 = obj120; questRoot16.QuestSequence = list172; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(468); @@ -35311,84 +42294,106 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "liza"; questRoot17.Author = list180; - num = 4; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span81 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference134 = ref span81[0]; - QuestSequence obj120 = new QuestSequence + index = 4; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 0 }; num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); - obj120.Steps = list182; - reference134 = obj120; - ref QuestSequence reference135 = ref span81[1]; - QuestSequence obj121 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + obj121.Steps = list182; + reference134 = obj121; + num++; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference136 = ref span3[num2]; + QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(-42.099247f, 54.599857f, -262.0961f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span82 = CollectionsMarshal.AsSpan(list184); - span82[0] = 348u; - span82[1] = 349u; - obj122.KillEnemyDataIds = list184; + index3 = 2; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + span7 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span7[num3] = 348u; + num3++; + span7[num3] = 349u; + obj123.KillEnemyDataIds = list184; num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span83 = CollectionsMarshal.AsSpan(list185); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj122.CompletionQuestVariablesFlags = list185; - reference136 = obj122; - obj121.Steps = list183; - reference135 = obj121; - ref QuestSequence reference137 = ref span81[2]; - QuestSequence obj123 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj123.CompletionQuestVariablesFlags = list185; + reference136 = obj123; + obj122.Steps = list183; + reference135 = obj122; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 2 }; num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); - obj123.Steps = list186; - reference137 = obj123; - ref QuestSequence reference138 = ref span81[3]; - QuestSequence obj124 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + obj124.Steps = list186; + reference137 = obj124; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span84 = CollectionsMarshal.AsSpan(list187); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj124.Steps = list187; - reference138 = obj124; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj125.Steps = list187; + reference138 = obj125; questRoot17.QuestSequence = list181; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(469); @@ -35396,113 +42401,140 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot18.Author = list188; - num = 9; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span85 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference139 = ref span85[0]; - QuestSequence obj125 = new QuestSequence + index = 9; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 0 }; num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj125.Steps = list190; - reference139 = obj125; - ref QuestSequence reference140 = ref span85[1]; - QuestSequence obj126 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj126.Steps = list190; + reference139 = obj126; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1002633u, new Vector3(232.56274f, 113.07393f, -240.2533f), 134); - obj126.Steps = list191; - reference140 = obj126; - ref QuestSequence reference141 = ref span85[2]; - QuestSequence obj127 = new QuestSequence + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002633u, new Vector3(232.56274f, 113.07393f, -240.2533f), 134); + obj127.Steps = list191; + reference140 = obj127; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 2 }; num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1002645u, new Vector3(-144.27411f, 20.32f, -336.32416f), 134); - obj127.Steps = list192; - reference141 = obj127; - ref QuestSequence reference142 = ref span85[3]; - QuestSequence obj128 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002645u, new Vector3(-144.27411f, 20.32f, -336.32416f), 134); + obj128.Steps = list192; + reference141 = obj128; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1002646u, new Vector3(-58.762512f, 12.537111f, -410.94073f), 134); - obj128.Steps = list193; - reference142 = obj128; - ref QuestSequence reference143 = ref span85[4]; - QuestSequence obj129 = new QuestSequence + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002646u, new Vector3(-58.762512f, 12.537111f, -410.94073f), 134); + obj129.Steps = list193; + reference142 = obj129; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 4 }; num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002647u, new Vector3(-34.866882f, 10.902258f, -432.15082f), 134) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002647u, new Vector3(-34.866882f, 10.902258f, -432.15082f), 134) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj129.Steps = list194; - reference143 = obj129; - span85[5] = new QuestSequence + obj130.Steps = list194; + reference143 = obj130; + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference144 = ref span85[6]; - QuestSequence obj130 = new QuestSequence + num++; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span86 = CollectionsMarshal.AsSpan(list195); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span86[1] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj130.Steps = list195; - reference144 = obj130; - ref QuestSequence reference145 = ref span85[7]; - QuestSequence obj131 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj131.Steps = list195; + reference144 = obj131; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 7 }; num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj131.Steps = list196; - reference145 = obj131; - ref QuestSequence reference146 = ref span85[8]; - QuestSequence obj132 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj132.Steps = list196; + reference145 = obj132; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -35511,8 +42543,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj132.Steps = list197; - reference146 = obj132; + obj133.Steps = list197; + reference146 = obj133; questRoot18.QuestSequence = list189; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(490); @@ -35520,34 +42552,42 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "FalconTaterz"; questRoot19.Author = list198; - num = 5; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span87 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference147 = ref span87[0]; - QuestSequence obj133 = new QuestSequence + index = 5; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 0 }; num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010708u, new Vector3(-70.237305f, 6.9839683f, 1.9073486f), 131); - obj133.Steps = list200; - reference147 = obj133; - ref QuestSequence reference148 = ref span87[1]; - QuestSequence obj134 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010708u, new Vector3(-70.237305f, 6.9839683f, 1.9073486f), 131); + obj134.Steps = list200; + reference147 = obj134; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span88 = CollectionsMarshal.AsSpan(list201); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.76394f, 6.9845715f, 6.476269f), 131); - span88[1] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 2; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.76394f, 6.9845715f, 6.476269f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -35555,17 +42595,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Uldah } }; - obj134.Steps = list201; - reference148 = obj134; - ref QuestSequence reference149 = ref span87[2]; - QuestSequence obj135 = new QuestSequence + obj135.Steps = list201; + reference148 = obj135; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 2 }; num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1011620u, new Vector3(-118.69995f, 40f, 95.23157f), 131) + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011620u, new Vector3(-118.69995f, 40f, 95.23157f), 131) { AethernetShortcut = new AethernetShortcut { @@ -35573,31 +42616,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAlchemist } }; - obj135.Steps = list202; - reference149 = obj135; - ref QuestSequence reference150 = ref span87[3]; - QuestSequence obj136 = new QuestSequence + obj136.Steps = list202; + reference149 = obj136; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1011672u, new Vector3(-118.21167f, 40f, 92.11865f), 131) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011672u, new Vector3(-118.21167f, 40f, 92.11865f), 131) { StopDistance = 5f }; - obj136.Steps = list203; - reference150 = obj136; - ref QuestSequence reference151 = ref span87[4]; - QuestSequence obj137 = new QuestSequence + obj137.Steps = list203; + reference150 = obj137; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140) { AethernetShortcut = new AethernetShortcut { @@ -35606,8 +42655,8 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(491) }; - obj137.Steps = list204; - reference151 = obj137; + obj138.Steps = list204; + reference151 = obj138; questRoot19.QuestSequence = list199; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(491); @@ -35615,33 +42664,40 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list205); + index = 0; + span[index] = "FalconTaterz"; questRoot20.Author = list205; - num = 6; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span89 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference152 = ref span89[0]; - QuestSequence obj138 = new QuestSequence + index = 6; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + span2 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140); - obj138.Steps = list207; - reference152 = obj138; - ref QuestSequence reference153 = ref span89[1]; - QuestSequence obj139 = new QuestSequence + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140); + obj139.Steps = list207; + reference152 = obj139; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 1 }; num2 = 5; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span90 = CollectionsMarshal.AsSpan(list208); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.53638f, 17.999998f, 66.511505f), 130) + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.53638f, 17.999998f, 66.511505f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -35650,112 +42706,152 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - ref QuestStep reference154 = ref span90[1]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1011681u, new Vector3(-182.29956f, 18f, 56.90088f), 130); - num3 = 6; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span91 = CollectionsMarshal.AsSpan(list209); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list209; - reference154 = questStep16; - ref QuestStep reference155 = ref span90[2]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1003897u, new Vector3(-195.45282f, 18f, 60.53247f), 130); + index2++; + ref QuestStep reference154 = ref span3[index2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1011681u, new Vector3(-182.29956f, 18f, 56.90088f), 130); + index3 = 6; + List list209 = new List(index3); + CollectionsMarshal.SetCount(list209, index3); + span6 = CollectionsMarshal.AsSpan(list209); + 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); + questStep14.CompletionQuestVariablesFlags = list209; + reference154 = questStep14; + index2++; + ref QuestStep reference155 = ref span3[index2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1003897u, new Vector3(-195.45282f, 18f, 60.53247f), 130); num3 = 6; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span92 = CollectionsMarshal.AsSpan(list210); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list210; - reference155 = questStep17; - ref QuestStep reference156 = ref span90[3]; - QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1001294u, new Vector3(-214.22144f, 18.5f, 72.129395f), 130); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span93 = CollectionsMarshal.AsSpan(list211); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list211; - reference156 = questStep18; - ref QuestStep reference157 = ref span90[4]; - QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + span6 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list210; + reference155 = questStep15; + index2++; + ref QuestStep reference156 = ref span3[index2]; + QuestStep questStep16 = 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); + span6 = CollectionsMarshal.AsSpan(list211); + 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); + questStep16.CompletionQuestVariablesFlags = list211; + reference156 = questStep16; + index2++; + ref QuestStep reference157 = ref span3[index2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span94 = CollectionsMarshal.AsSpan(list212); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list212; - reference157 = questStep19; - obj139.Steps = list208; - reference153 = obj139; - ref QuestSequence reference158 = ref span89[2]; - QuestSequence obj140 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list212; + reference157 = questStep17; + obj140.Steps = list208; + reference153 = obj140; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1011682u, new Vector3(-200.763f, 17.999998f, 59.189697f), 130); - obj140.Steps = list213; - reference158 = obj140; - ref QuestSequence reference159 = ref span89[3]; - QuestSequence obj141 = new QuestSequence + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011682u, new Vector3(-200.763f, 17.999998f, 59.189697f), 130); + obj141.Steps = list213; + reference158 = obj141; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 3 }; num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1011683u, new Vector3(76.8291f, 45f, -218.28033f), 140) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011683u, new Vector3(76.8291f, 45f, -218.28033f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - obj141.Steps = list214; - reference159 = obj141; - ref QuestSequence reference160 = ref span89[4]; - QuestSequence obj142 = new QuestSequence + obj142.Steps = list214; + reference159 = obj142; + num++; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-345.65482f, 23f, -352.02484f), 140) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-345.65482f, 23f, -352.02484f), 140) { Fly = true }; - obj142.Steps = list215; - reference160 = obj142; - ref QuestSequence reference161 = ref span89[5]; - QuestSequence obj143 = new QuestSequence + obj143.Steps = list215; + reference160 = obj143; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011675u, new Vector3(-118.150635f, 40f, 96.29968f), 131) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011675u, new Vector3(-118.150635f, 40f, 96.29968f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -35765,8 +42861,8 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(492) }; - obj143.Steps = list216; - reference161 = obj143; + obj144.Steps = list216; + reference161 = obj144; questRoot20.QuestSequence = list206; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(492); @@ -35774,163 +42870,208 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "FalconTaterz"; questRoot21.Author = list217; - num = 7; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span95 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference162 = ref span95[0]; - QuestSequence obj144 = new QuestSequence + index = 7; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011691u, new Vector3(40.878906f, 33.999985f, 27.939209f), 131); - obj144.Steps = list219; - reference162 = obj144; - ref QuestSequence reference163 = ref span95[1]; - QuestSequence obj145 = new QuestSequence + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011691u, new Vector3(40.878906f, 33.999985f, 27.939209f), 131); + obj145.Steps = list219; + reference162 = obj145; + num++; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 1 }; num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span96 = CollectionsMarshal.AsSpan(list220); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.860275f, 34.02289f, -12.268097f), 131); - span96[1] = new QuestStep(EInteractionType.Interact, 2005164u, new Vector3(43.07617f, 33.98181f, -13.962036f), 131); - obj145.Steps = list220; - reference163 = obj145; - ref QuestSequence reference164 = ref span95[2]; - QuestSequence obj146 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.860275f, 34.02289f, -12.268097f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005164u, new Vector3(43.07617f, 33.98181f, -13.962036f), 131); + obj146.Steps = list220; + reference163 = obj146; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span97 = CollectionsMarshal.AsSpan(list221); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131); - span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.565746f, 33.999992f, -25.594622f), 131) + index2 = 3; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.565746f, 33.999992f, -25.594622f), 131) { DisableNavmesh = true }; - span97[2] = new QuestStep(EInteractionType.Interact, 2005165u, new Vector3(60.16626f, 33.98181f, -21.316895f), 131); - obj146.Steps = list221; - reference164 = obj146; - ref QuestSequence reference165 = ref span95[3]; - QuestSequence obj147 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005165u, new Vector3(60.16626f, 33.98181f, -21.316895f), 131); + obj147.Steps = list221; + reference164 = obj147; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 3 }; num2 = 3; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span98 = CollectionsMarshal.AsSpan(list222); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15642f, 33.999992f, -25.133741f), 131); - span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15642f, 33.999992f, -25.133741f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131) { DisableNavmesh = true }; - span98[2] = new QuestStep(EInteractionType.Interact, 2005166u, new Vector3(74.96753f, 28.976807f, -29.007446f), 131); - obj147.Steps = list222; - reference165 = obj147; - ref QuestSequence reference166 = ref span95[4]; - QuestSequence obj148 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005166u, new Vector3(74.96753f, 28.976807f, -29.007446f), 131); + obj148.Steps = list222; + reference165 = obj148; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span99 = CollectionsMarshal.AsSpan(list223); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131); - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131) + index2 = 3; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131) { DisableNavmesh = true }; - span99[2] = new QuestStep(EInteractionType.Interact, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131); - obj148.Steps = list223; - reference166 = obj148; - ref QuestSequence reference167 = ref span95[5]; - QuestSequence obj149 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131); + obj149.Steps = list223; + reference166 = obj149; + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 5 }; num2 = 3; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + ref QuestStep reference168 = ref span3[index2]; + QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1011693u, new Vector3(39.444458f, 34f, 29.984009f), 131) { StopDistance = 7f }; - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span101 = CollectionsMarshal.AsSpan(list225); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj150.CompletionQuestVariablesFlags = list225; - reference168 = obj150; - ref QuestStep reference169 = ref span100[1]; - QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1011694u, new Vector3(41.367188f, 33.999992f, 29.43457f), 131) + index3 = 6; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + span6 = CollectionsMarshal.AsSpan(list225); + 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); + obj151.CompletionQuestVariablesFlags = list225; + reference168 = obj151; + index2++; + ref QuestStep reference169 = ref span3[index2]; + QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1011694u, new Vector3(41.367188f, 33.999992f, 29.43457f), 131) { StopDistance = 7f }; num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span102 = CollectionsMarshal.AsSpan(list226); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj151.CompletionQuestVariablesFlags = list226; - reference169 = obj151; - ref QuestStep reference170 = ref span100[2]; - QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1011695u, new Vector3(41.916504f, 33.999992f, 30.044922f), 131) + span6 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj152.CompletionQuestVariablesFlags = list226; + reference169 = obj152; + index2++; + ref QuestStep reference170 = ref span3[index2]; + QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1011695u, new Vector3(41.916504f, 33.999992f, 30.044922f), 131) { StopDistance = 7f }; - num3 = 6; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span103 = CollectionsMarshal.AsSpan(list227); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj152.CompletionQuestVariablesFlags = list227; - reference170 = obj152; - obj149.Steps = list224; - reference167 = obj149; - ref QuestSequence reference171 = ref span95[6]; - QuestSequence obj153 = new QuestSequence + index3 = 6; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span6 = CollectionsMarshal.AsSpan(list227); + 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); + obj153.CompletionQuestVariablesFlags = list227; + reference170 = obj153; + obj150.Steps = list224; + reference167 = obj150; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131) { NextQuestId = new QuestId(493) }; - obj153.Steps = list228; - reference171 = obj153; + obj154.Steps = list228; + reference171 = obj154; questRoot21.QuestSequence = list218; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(493); @@ -35938,50 +43079,60 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "FalconTaterz"; questRoot22.Author = list229; - num = 5; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span104 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference172 = ref span104[0]; - QuestSequence obj154 = new QuestSequence + index = 5; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 0 }; num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011699u, new Vector3(39.81079f, 34f, 30.22815f), 131) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011699u, new Vector3(39.81079f, 34f, 30.22815f), 131) { StopDistance = 7f }; - obj154.Steps = list231; - reference172 = obj154; - ref QuestSequence reference173 = ref span104[1]; - QuestSequence obj155 = new QuestSequence + obj155.Steps = list231; + reference172 = obj155; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) { StopDistance = 7f }; - obj155.Steps = list232; - reference173 = obj155; - ref QuestSequence reference174 = ref span104[2]; - QuestSequence obj156 = new QuestSequence + obj156.Steps = list232; + reference173 = obj156; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 2 }; num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span105 = CollectionsMarshal.AsSpan(list233); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) { AethernetShortcut = new AethernetShortcut { @@ -35989,21 +43140,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - span105[1] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { StopDistance = 5f }; - obj156.Steps = list233; - reference174 = obj156; - ref QuestSequence reference175 = ref span104[3]; - QuestSequence obj157 = new QuestSequence + obj157.Steps = list233; + reference174 = obj157; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1011712u, new Vector3(-43.86969f, 30.000008f, 7.8583374f), 131) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011712u, new Vector3(-43.86969f, 30.000008f, 7.8583374f), 131) { AethernetShortcut = new AethernetShortcut { @@ -36011,49 +43166,56 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj157.Steps = list234; - reference175 = obj157; - ref QuestSequence reference176 = ref span104[4]; - QuestSequence obj158 = new QuestSequence + obj158.Steps = list234; + reference175 = obj158; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span106 = CollectionsMarshal.AsSpan(list235); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.47297f, 33.999996f, -40.833565f), 131); - span106[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.41606f, 34f, -32.54854f), 131); - span106[2] = new QuestStep(EInteractionType.CompleteQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.47297f, 33.999996f, -40.833565f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.41606f, 34f, -32.54854f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) { NextQuestId = new QuestId(502) }; - obj158.Steps = list235; - reference176 = obj158; + obj159.Steps = list235; + reference176 = obj159; questRoot22.QuestSequence = list230; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(494); QuestRoot questRoot23 = new QuestRoot(); - num = 2; + num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span107 = CollectionsMarshal.AsSpan(list236); - span107[0] = "JerryWester"; - span107[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list236; - num = 5; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span108 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference177 = ref span108[0]; - QuestSequence obj159 = new QuestSequence + index = 5; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -36064,60 +43226,61 @@ public static class AssemblyQuestLoader } } }; - obj159.Steps = list238; - reference177 = obj159; - ref QuestSequence reference178 = ref span108[1]; - QuestSequence obj160 = new QuestSequence + obj160.Steps = list238; + reference177 = obj160; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 5; + num2 = 3; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span109 = CollectionsMarshal.AsSpan(list239); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) - { - Fly = true - }; - span109[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) - { - DelaySecondsAtStart = 1f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span109[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - span109[4] = new QuestStep(EInteractionType.Interact, 1011638u, new Vector3(664.8203f, -1.1951543f, -106.523315f), 156); - obj160.Steps = list239; - reference178 = obj160; - ref QuestSequence reference179 = ref span108[2]; - QuestSequence obj161 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011638u, new Vector3(664.8203f, -1.1951543f, -106.523315f), 156); + obj161.Steps = list239; + reference178 = obj161; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011640u, new Vector3(732.0515f, 15.33271f, -68.65039f), 156) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011640u, new Vector3(732.0515f, 15.33271f, -68.65039f), 156) { StopDistance = 7f }; - obj161.Steps = list240; - reference179 = obj161; - ref QuestSequence reference180 = ref span108[3]; - QuestSequence obj162 = new QuestSequence + obj162.Steps = list240; + reference179 = obj162; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 3 }; num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -36125,52 +43288,58 @@ public static class AssemblyQuestLoader LowPriority = true } }; - obj162.Steps = list241; - reference180 = obj162; - ref QuestSequence reference181 = ref span108[4]; - QuestSequence obj163 = new QuestSequence + obj163.Steps = list241; + reference180 = obj163; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span110 = CollectionsMarshal.AsSpan(list242); - span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span110[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(495) }; - obj163.Steps = list242; - reference181 = obj163; + obj164.Steps = list242; + reference181 = obj164; questRoot23.QuestSequence = list237; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(495); QuestRoot questRoot24 = new QuestRoot(); - num = 2; + num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span111 = CollectionsMarshal.AsSpan(list243); - span111[0] = "JerryWester"; - span111[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list243); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list243; - num = 3; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span112 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference182 = ref span112[0]; - QuestSequence obj164 = new QuestSequence + index = 3; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + span2 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -36181,54 +43350,52 @@ public static class AssemblyQuestLoader } } }; - obj164.Steps = list245; - reference182 = obj164; - ref QuestSequence reference183 = ref span112[1]; - QuestSequence obj165 = new QuestSequence + obj165.Steps = list245; + reference182 = obj165; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span113 = CollectionsMarshal.AsSpan(list246); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + index2 = 3; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) - { - Fly = true - }; - span113[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) - { - DelaySecondsAtStart = 1f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span113[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - span113[4] = new QuestStep(EInteractionType.Interact, 1011641u, new Vector3(706.4468f, 15.332714f, -71.27496f), 156); - obj165.Steps = list246; - reference183 = obj165; - ref QuestSequence reference184 = ref span112[2]; - QuestSequence obj166 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011641u, new Vector3(706.4468f, 15.332714f, -71.27496f), 156); + obj166.Steps = list246; + reference183 = obj166; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span114 = CollectionsMarshal.AsSpan(list247); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); - obj166.Steps = list247; - reference184 = obj166; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + obj167.Steps = list247; + reference184 = obj167; questRoot24.QuestSequence = list244; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(496); @@ -36236,21 +43403,26 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list248); + index = 0; + span[index] = "liza"; questRoot25.Author = list248; - num = 6; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span115 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference185 = ref span115[0]; - QuestSequence obj167 = new QuestSequence + index = 6; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + span2 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -36261,92 +43433,109 @@ public static class AssemblyQuestLoader } } }; - obj167.Steps = list250; - reference185 = obj167; - ref QuestSequence reference186 = ref span115[1]; - QuestSequence obj168 = new QuestSequence + obj168.Steps = list250; + reference185 = obj168; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 1 }; num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - obj168.Steps = list251; - reference186 = obj168; - ref QuestSequence reference187 = ref span115[2]; - QuestSequence obj169 = new QuestSequence + obj169.Steps = list251; + reference186 = obj169; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - obj169.Steps = list252; - reference187 = obj169; - ref QuestSequence reference188 = ref span115[3]; - QuestSequence obj170 = new QuestSequence + obj170.Steps = list252; + reference187 = obj170; + num++; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 3 }; num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Emote, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) { Emote = EEmote.Soothe }; - obj170.Steps = list253; - reference188 = obj170; - ref QuestSequence reference189 = ref span115[4]; - QuestSequence obj171 = new QuestSequence + obj171.Steps = list253; + reference188 = obj171; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 4 }; - 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) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + ref QuestStep reference190 = ref span3[num2]; + QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1011651u, new Vector3(8.804443f, 71.18964f, -15.182739f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; num3 = 1; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list255); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST026_00496_Q1_000_000"), Answer = new ExcelRef("TEXT_SUBPST026_00496_A1_000_001") }; - obj172.DialogueChoices = list255; - reference190 = obj172; - obj171.Steps = list254; - reference189 = obj171; - ref QuestSequence reference191 = ref span115[5]; - QuestSequence obj173 = new QuestSequence + obj173.DialogueChoices = list255; + reference190 = obj173; + obj172.Steps = list254; + reference189 = obj172; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011652u, new Vector3(532.9823f, 44.02837f, 540.3982f), 137) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011652u, new Vector3(532.9823f, 44.02837f, 540.3982f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(362) }; - obj173.Steps = list256; - reference191 = obj173; + obj174.Steps = list256; + reference191 = obj174; questRoot25.QuestSequence = list249; AddQuest(questId25, questRoot25); } @@ -36358,13 +43547,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "FalconTaterz"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "FalconTaterz"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -36372,25 +43564,31 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1011714u, new Vector3(-223.19379f, -3.7199955f, 52.32312f), 141) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011714u, new Vector3(-223.19379f, -3.7199955f, 52.32312f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -36398,7 +43596,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Say, 2005188u, new Vector3(-314.07648f, -1.083435f, 43.9917f), 141) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 2005188u, new Vector3(-314.07648f, -1.083435f, 43.9917f), 141) { ChatMessage = new ChatMessage { @@ -36407,24 +43607,28 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.84998f, 37.381317f, 174.60776f), 153) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.84998f, 37.381317f, 174.60776f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - span2[1] = new QuestStep(EInteractionType.Interact, 1011722u, new Vector3(159.68555f, 37.432796f, 177.69128f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011722u, new Vector3(159.68555f, 37.432796f, 177.69128f), 153); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -36432,7 +43636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -36441,15 +43647,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011723u, new Vector3(141.06958f, 29.64365f, 173.72388f), 153) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011723u, new Vector3(141.06958f, 29.64365f, 173.72388f), 153) { NextQuestId = new QuestId(2226) }; @@ -36462,13 +43671,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -36476,19 +43688,23 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span4[0]; + index2 = 3; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 2001368u, new Vector3(297.56616f, 62.546753f, -194.04901f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36496,21 +43712,30 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 187u; + Span span4 = CollectionsMarshal.AsSpan(list13); + int index3 = 0; + span4[index3] = 187u; obj9.KillEnemyDataIds = list13; - num3 = 6; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); + index3 = 6; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); 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); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list14; reference9 = obj9; - ref QuestStep reference10 = ref span4[1]; + num2++; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 2001735u, new Vector3(318.31836f, 63.523315f, -200.9461f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36518,21 +43743,30 @@ public static class AssemblyQuestLoader num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = 187u; + span4 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span4[index3] = 187u; obj10.KillEnemyDataIds = list15; - num3 = 6; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj10.CompletionQuestVariablesFlags = list16; reference10 = obj10; - ref QuestStep reference11 = ref span4[2]; + num2++; + ref QuestStep reference11 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 2001369u, new Vector3(293.01892f, 63.46228f, -236.16394f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36540,23 +43774,32 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 187u; + span4 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span4[index3] = 187u; obj11.KillEnemyDataIds = list17; - num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span7 = CollectionsMarshal.AsSpan(list18); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj11.CompletionQuestVariablesFlags = list18; reference11 = obj11; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference12 = ref span3[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -36564,7 +43807,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj12.Steps = list19; reference12 = obj12; questRoot2.QuestSequence = list10; @@ -36574,22 +43819,28 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; questRoot3.IsSeasonalQuest = true; questRoot3.SeasonalQuestExpiry = new DateTime(2025, 8, 5, 0, 0, 0, DateTimeKind.Utc); - num = 1; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - ref QuestSequence reference13 = ref CollectionsMarshal.AsSpan(list21)[0]; + index = 1; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1052475u, new Vector3(-22.354492f, 10.13581f, -241.41296f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -36607,7 +43858,9 @@ public static class AssemblyQuestLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 133; + Span span6 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span6[index3] = 133; obj15.InTerritory = list23; skipConditions.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions; @@ -36621,13 +43874,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot4.Author = list24; - num = 10; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span8 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference15 = ref span8[0]; + index = 10; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -36635,23 +43891,28 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj16.Steps = list26; reference15 = obj16; - ref QuestSequence reference16 = ref span8[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span9 = CollectionsMarshal.AsSpan(list27); - span9[0] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) { TargetTerritoryId = (ushort)133 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -36661,7 +43922,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference16 = obj17; - ref QuestSequence reference17 = ref span8[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -36669,12 +43931,16 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list28)[0]; + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132); - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span7 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q1_000_1") @@ -36683,20 +43949,25 @@ public static class AssemblyQuestLoader reference18 = questStep; obj18.Steps = list28; reference17 = obj18; - ref QuestSequence reference19 = ref span8[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2001666u, new Vector3(7.179191f, -21.93796f, 124.1005f), 132); num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q2_000_1") @@ -36705,7 +43976,8 @@ public static class AssemblyQuestLoader reference20 = questStep2; obj19.Steps = list30; reference19 = obj19; - ref QuestSequence reference21 = ref span8[4]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 @@ -36713,35 +43985,41 @@ public static class AssemblyQuestLoader num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference22 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1002703u, new Vector3(-12.375122f, 91.499985f, -0.5340576f), 128) { Comment = "Limsa Arrivals Attendant" }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + span7 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q5_000_1") }; obj21.DialogueChoices = list33; reference22 = obj21; - span10[1] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); obj20.Steps = list32; reference21 = obj20; - ref QuestSequence reference23 = ref span8[5]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span11 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference24 = ref span11[0]; + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference24 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { TargetTerritoryId = (ushort)129 @@ -36749,7 +44027,9 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -36757,10 +44037,12 @@ public static class AssemblyQuestLoader }; obj23.DialogueChoices = list35; reference24 = obj23; - span11[1] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj22.Steps = list34; reference23 = obj22; - ref QuestSequence reference25 = ref span8[6]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -36768,24 +44050,29 @@ public static class AssemblyQuestLoader num2 = 10; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span12[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span12[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span12[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span12[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -36794,7 +44081,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span12[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -36804,19 +44092,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span12[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span12[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span12[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - ref QuestStep reference26 = ref span12[9]; + index2++; + ref QuestStep reference26 = ref span3[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { AethernetShortcut = new AethernetShortcut @@ -36825,10 +44117,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + span7 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q6_000_1") @@ -36837,20 +44131,25 @@ public static class AssemblyQuestLoader reference26 = obj25; obj24.Steps = list36; reference25 = obj24; - ref QuestSequence reference27 = ref span8[7]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list38)[0]; + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001669u, new Vector3(-11.12384f, 92.0271f, 17.166382f), 128); num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q4_000_1") @@ -36859,7 +44158,8 @@ public static class AssemblyQuestLoader reference28 = questStep3; obj26.Steps = list38; reference27 = obj26; - ref QuestSequence reference29 = ref span8[8]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -36867,35 +44167,41 @@ public static class AssemblyQuestLoader num2 = 2; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span13 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference30 = ref span13[0]; + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1004434u, new Vector3(-27.17633f, 83.19998f, 2.304016f), 130) { Comment = "Ul'dah Arrivals Attendant" }; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + index3 = 1; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + span7 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q7_000_1") }; obj28.DialogueChoices = list41; reference30 = obj28; - span13[1] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); obj27.Steps = list40; reference29 = obj27; - ref QuestSequence reference31 = ref span8[9]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span14 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference32 = ref span14[0]; + index2 = 3; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 @@ -36903,7 +44209,9 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -36911,11 +44219,13 @@ public static class AssemblyQuestLoader }; obj30.DialogueChoices = list43; reference32 = obj30; - span14[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - span14[2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj29.Steps = list42; reference31 = obj29; questRoot4.QuestSequence = list25; @@ -36925,13 +44235,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot5.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span15 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference33 = ref span15[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -36939,31 +44252,39 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj31.Steps = list46; reference33 = obj31; - ref QuestSequence reference34 = ref span15[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span16 = CollectionsMarshal.AsSpan(list47); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.29608f, 23.44405f, -345.24487f), 140) + index2 = 4; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.29608f, 23.44405f, -345.24487f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-396.50018f, 23f, -351.0944f), 140); - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-396.50018f, 23f, -351.0944f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true }; - span16[3] = new QuestStep(EInteractionType.Interact, 1004603u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004603u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj32.Steps = list47; reference34 = obj32; - ref QuestSequence reference35 = ref span15[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -36971,13 +44292,16 @@ public static class AssemblyQuestLoader num2 = 3; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span17 = CollectionsMarshal.AsSpan(list48); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-493.3852f, 21f, -382.50455f), 140); - span17[1] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-493.3852f, 21f, -382.50455f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj33.Steps = list48; reference35 = obj33; questRoot5.QuestSequence = list45; @@ -36987,29 +44311,36 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot6.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span18 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference36 = ref span18[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1003783u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) { StopDistance = 5f }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span7 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST207_00510_Q1_000_1"), @@ -37019,7 +44350,8 @@ public static class AssemblyQuestLoader reference37 = obj35; obj34.Steps = list51; reference36 = obj34; - ref QuestSequence reference38 = ref span18[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -37027,19 +44359,23 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1005119u, new Vector3(33.37146f, 1.1999971f, 6.454529f), 212); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005119u, new Vector3(33.37146f, 1.1999971f, 6.454529f), 212); obj36.Steps = list53; reference38 = obj36; - ref QuestSequence reference39 = ref span18[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 9; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.84354f, -3.6581912f, 186.08156f), 141) + index2 = 9; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.84354f, -3.6581912f, 186.08156f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -37048,29 +44384,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.2836f, -3.6582258f, 144.35869f), 141); - span19[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.2836f, -3.6582258f, 144.35869f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span19[3] = new QuestStep(EInteractionType.UnlockTaxiStand, 1001607u, new Vector3(-2.7314453f, -2.055717f, -158.52606f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1001607u, new Vector3(-2.7314453f, -2.055717f, -158.52606f), 141) { TaxiStandId = (byte)14 }; - span19[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.0109f, -17.999832f, -183.1808f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.0109f, -17.999832f, -183.1808f), 141) { TargetTerritoryId = (ushort)145 }; - span19[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.0189f, -37.96352f, 176.73677f), 145); - span19[6] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003935u, new Vector3(-423.2395f, -39.060455f, 112.2301f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.0189f, -37.96352f, 176.73677f), 145); + num2++; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003935u, new Vector3(-423.2395f, -39.060455f, 112.2301f), 145) { TaxiStandId = (byte)15 }; - span19[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 145) { Aetheryte = EAetheryteLocation.EasternThanalanCampDrybone }; - span19[8] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj37.Steps = list54; reference39 = obj37; questRoot6.QuestSequence = list50; @@ -37080,13 +44424,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot7.Author = list55; - num = 4; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span20 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference40 = ref span20[0]; + index = 4; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -37094,30 +44441,37 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj38.Steps = list57; reference40 = obj38; - ref QuestSequence reference41 = ref span20[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span21 = CollectionsMarshal.AsSpan(list58); - span21[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + index2 = 3; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span21[1] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - span21[2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj39.Steps = list58; reference41 = obj39; - ref QuestSequence reference42 = ref span20[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -37125,8 +44479,9 @@ public static class AssemblyQuestLoader num2 = 3; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span22 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference43 = ref span22[0]; + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference43 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2001691u, new Vector3(-5.294922f, 29.984009f, 20.675903f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -37139,42 +44494,58 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span23 = CollectionsMarshal.AsSpan(list60); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span23[4] = null; - span23[5] = null; + span5 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj41.CompletionQuestVariablesFlags = list60; reference43 = obj41; - ref QuestStep reference44 = ref span22[1]; + index2++; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span24 = CollectionsMarshal.AsSpan(list61); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span24[4] = null; - span24[5] = null; + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span5 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj42.CompletionQuestVariablesFlags = list61; num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST300_00511_Q1_000_1") }; obj42.DialogueChoices = list62; reference44 = obj42; - ref QuestStep reference45 = ref span22[2]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2001690u, new Vector3(-49.759705f, 7.003784f, -114.82416f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -37184,44 +44555,56 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span25[4] = null; - span25[5] = null; + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span5 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj43.CompletionQuestVariablesFlags = list63; reference45 = obj43; obj40.Steps = list59; reference42 = obj40; - ref QuestSequence reference46 = ref span20[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = new QuestStep(EInteractionType.UseItem, null, null, 133) + index2 = 5; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 133) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span26[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span26[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span26[4] = new QuestStep(EInteractionType.CompleteQuest, 1005122u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005122u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj44.Steps = list64; reference46 = obj44; questRoot7.QuestSequence = list56; @@ -37231,13 +44614,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot8.Author = list65; - num = 2; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span27 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span27[0]; + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -37245,18 +44631,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005128u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005128u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj45.Steps = list67; reference47 = obj45; - ref QuestSequence reference48 = ref span27[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -37269,13 +44660,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list69; - num = 5; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference49 = ref span28[0]; + index = 5; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -37283,7 +44677,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -37296,18 +44692,22 @@ public static class AssemblyQuestLoader }; obj47.Steps = list71; reference49 = obj47; - ref QuestSequence reference50 = ref span28[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1000393u, new Vector3(-89.463684f, 3.318795f, -168.9021f), 153); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000393u, new Vector3(-89.463684f, 3.318795f, -168.9021f), 153); obj48.Steps = list72; reference50 = obj48; - ref QuestSequence reference51 = ref span28[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -37315,7 +44715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -37325,19 +44727,23 @@ public static class AssemblyQuestLoader }; obj49.Steps = list73; reference51 = obj49; - span28[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference52 = ref span28[4]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj50.Steps = list74; reference52 = obj50; questRoot9.QuestSequence = list70; @@ -37347,13 +44753,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list75; - num = 3; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span29 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference53 = ref span29[0]; + index = 3; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -37361,18 +44770,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj51.Steps = list77; reference53 = obj51; - ref QuestSequence reference54 = ref span29[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -37383,7 +44797,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list78; reference54 = obj52; - ref QuestSequence reference55 = ref span29[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -37391,7 +44806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135) { AethernetShortcut = new AethernetShortcut { @@ -37408,21 +44825,26 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list80; - num = 5; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span30 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference56 = ref span30[0]; + index = 5; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -37435,7 +44857,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list82; reference56 = obj54; - ref QuestSequence reference57 = ref span30[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -37443,7 +44866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -37454,28 +44879,33 @@ public static class AssemblyQuestLoader }; obj55.Steps = list83; reference57 = obj55; - ref QuestSequence reference58 = ref span30[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span31 = CollectionsMarshal.AsSpan(list84); - span31[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span31[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj56.Steps = list84; reference58 = obj56; - ref QuestSequence reference59 = ref span30[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -37483,23 +44913,28 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span32 = CollectionsMarshal.AsSpan(list85); - span32[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span32[1] = new QuestStep(EInteractionType.Interact, 1007467u, new Vector3(36.057007f, 0.32037354f, -1.5411987f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007467u, new Vector3(36.057007f, 0.32037354f, -1.5411987f), 212); obj57.Steps = list85; reference59 = obj57; - ref QuestSequence reference60 = ref span30[4]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list86)[0]; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -37507,7 +44942,9 @@ public static class AssemblyQuestLoader num3 = 1; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST313_00517_Q1_000_050"), @@ -37524,13 +44961,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list88; - num = 4; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span33 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference62 = ref span33[0]; + index = 4; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -37538,7 +44978,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -37551,28 +44993,34 @@ public static class AssemblyQuestLoader }; obj60.Steps = list90; reference62 = obj60; - ref QuestSequence reference63 = ref span33[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list91)[0]; + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference64 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, 2002105u, new Vector3(-444.419f, -27.237366f, 15.945618f), 145) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 1902u; + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + span4 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span4[num3] = 1902u; obj62.KillEnemyDataIds = list92; reference64 = obj62; obj61.Steps = list91; reference63 = obj61; - ref QuestSequence reference65 = ref span33[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -37580,36 +45028,42 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); obj63.Steps = list93; reference65 = obj63; - ref QuestSequence reference66 = ref span33[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj64.Steps = list94; reference66 = obj64; questRoot12.QuestSequence = list89; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(519); QuestRoot questRoot13 = new QuestRoot(); - num = 2; + num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span34 = CollectionsMarshal.AsSpan(list95); - span34[0] = "JerryWester"; - span34[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list95; - num = 5; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span35 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference67 = ref span35[0]; + index = 5; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -37617,94 +45071,37 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); obj65.Steps = list97; reference67 = obj65; - ref QuestSequence reference68 = ref span35[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span36 = CollectionsMarshal.AsSpan(list98); - ref QuestStep reference69 = ref span36[0]; - QuestStep obj67 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.821457f, -19.000002f, 103.27891f), 132) - { - AetheryteShortcut = EAetheryteLocation.Gridania - }; - SkipConditions skipConditions2 = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = 331; - skipStepConditions.InTerritory = list99; - skipConditions2.StepIf = skipStepConditions; - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 331; - skipAetheryteCondition.InTerritory = list100; - skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; - obj67.SkipConditions = skipConditions2; - reference69 = obj67; - 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); - CollectionsMarshal.AsSpan(list101)[0] = 331; - skipStepConditions2.InTerritory = list101; - skipConditions3.StepIf = skipStepConditions2; - questStep4.SkipConditions = skipConditions3; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_MANFST404_00519_Q3_000_032") - }; - questStep4.DialogueChoices = list102; - reference70 = questStep4; - 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); - CollectionsMarshal.AsSpan(list103)[0] = 331; - skipStepConditions3.InTerritory = list103; - skipConditions4.StepIf = skipStepConditions3; - questStep5.SkipConditions = skipConditions4; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_MANFST404_00519_Q2_000_031") - }; - questStep5.DialogueChoices = list104; - reference71 = questStep5; - span36[3] = new QuestStep(EInteractionType.Interact, 1007690u, new Vector3(-84.58081f, -0.6225241f, -35.568848f), 331); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007690u, new Vector3(-84.58081f, -0.6225241f, -35.568848f), 331); obj66.Steps = list98; reference68 = obj66; - ref QuestSequence reference72 = ref span35[2]; - QuestSequence obj68 = new QuestSequence + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Duty, null, null, 331) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 331) { DutyOptions = new DutyOptions { @@ -37712,340 +45109,401 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 58u } }; - obj68.Steps = list105; - reference72 = obj68; - span35[3] = new QuestSequence + obj67.Steps = list99; + reference69 = obj67; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference73 = ref span35[4]; - QuestSequence obj69 = new QuestSequence + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) { StopDistance = 7f }; - obj69.Steps = list106; - reference73 = obj69; + obj68.Steps = list100; + reference70 = obj68; questRoot13.QuestSequence = list96; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(520); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; - questRoot14.Author = list107; - num = 2; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span37 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference74 = ref span37[0]; - QuestSequence obj70 = new QuestSequence + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "JerryWester"; + questRoot14.Author = list101; + index = 2; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) { StopDistance = 7f }; - obj70.Steps = list109; - reference74 = obj70; - ref QuestSequence reference75 = ref span37[1]; - QuestSequence obj71 = new QuestSequence + obj69.Steps = list103; + reference71 = obj69; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span38 = CollectionsMarshal.AsSpan(list110); - span38[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 4; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span38[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span38[3] = new QuestStep(EInteractionType.CompleteQuest, 1007630u, new Vector3(22.812195f, 0.9999986f, 2.1820068f), 212); - obj71.Steps = list110; - reference75 = obj71; - questRoot14.QuestSequence = list108; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007630u, new Vector3(22.812195f, 0.9999986f, 2.1820068f), 212); + obj70.Steps = list104; + reference72 = obj70; + questRoot14.QuestSequence = list102; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(521); QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "JerryWester"; - questRoot15.Author = list111; - num = 8; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span39 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span39[0]; - QuestSequence obj72 = new QuestSequence + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "JerryWester"; + questRoot15.Author = list105; + index = 8; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); - obj72.Steps = list113; - reference76 = obj72; - ref QuestSequence reference77 = ref span39[1]; - QuestSequence obj73 = new QuestSequence + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + obj71.Steps = list107; + reference73 = obj71; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span40 = CollectionsMarshal.AsSpan(list114); - span40[0] = new QuestStep(EInteractionType.EquipItem, null, null, 156) + index2 = 4; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 156) { Comment = "Can be re-bought from Glaumunt in Mor Dhona", ItemId = 6223u }; - span40[1] = new QuestStep(EInteractionType.EquipItem, null, null, 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 156) { Comment = "Can be re-bought from Glaumunt in Mor Dhona", ItemId = 6224u }; - span40[2] = new QuestStep(EInteractionType.Interact, 2002502u, new Vector3(0.7476196f, -156.93909f, 16.281311f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002502u, new Vector3(0.7476196f, -156.93909f, 16.281311f), 156) { TargetTerritoryId = (ushort)156 }; - span40[3] = new QuestStep(EInteractionType.Interact, 1007537u, new Vector3(-358.23608f, -16.248493f, -481.13226f), 156); - obj73.Steps = list114; - reference77 = obj73; - ref QuestSequence reference78 = ref span39[2]; - QuestSequence obj74 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007537u, new Vector3(-358.23608f, -16.248493f, -481.13226f), 156); + obj72.Steps = list108; + reference74 = obj72; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span41 = CollectionsMarshal.AsSpan(list115); - span41[0] = new QuestStep(EInteractionType.Emote, 1006568u, new Vector3(-559.3805f, -1.9197596f, -318.349f), 335) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1006568u, new Vector3(-559.3805f, -1.9197596f, -318.349f), 335) { Emote = EEmote.ImperialSalute }; - span41[1] = new QuestStep(EInteractionType.Emote, 1006567u, new Vector3(-532.2195f, -1.9197612f, -284.50446f), 335) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, 1006567u, new Vector3(-532.2195f, -1.9197612f, -284.50446f), 335) { Emote = EEmote.ImperialSalute }; - span41[2] = new QuestStep(EInteractionType.Emote, 1006569u, new Vector3(-491.44736f, -3.9312067f, -300.8011f), 335) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, 1006569u, new Vector3(-491.44736f, -3.9312067f, -300.8011f), 335) { Emote = EEmote.ImperialSalute }; - obj74.Steps = list115; - reference78 = obj74; - ref QuestSequence reference79 = ref span39[3]; - QuestSequence obj75 = new QuestSequence + obj73.Steps = list109; + reference75 = obj73; + num++; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span42 = CollectionsMarshal.AsSpan(list116); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-530.1089f, -3.3262053f, -308.2147f), 335); - span42[1] = new QuestStep(EInteractionType.Emote, 1007611u, new Vector3(-536.4004f, -1.9197441f, -308.00336f), 335) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-530.1089f, -3.3262053f, -308.2147f), 335); + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1007611u, new Vector3(-536.4004f, -1.9197441f, -308.00336f), 335) { StopDistance = 7f, Emote = EEmote.ImperialSalute }; - obj75.Steps = list116; - reference79 = obj75; - ref QuestSequence reference80 = ref span39[4]; - QuestSequence obj76 = new QuestSequence + obj74.Steps = list110; + reference76 = obj74; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1006562u, new Vector3(-495.964f, -3.7679372f, -288.1667f), 335); - obj76.Steps = list117; - reference80 = obj76; - ref QuestSequence reference81 = ref span39[5]; - QuestSequence obj77 = new QuestSequence + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006562u, new Vector3(-495.964f, -3.7679372f, -288.1667f), 335); + obj75.Steps = list111; + reference77 = obj75; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span43 = CollectionsMarshal.AsSpan(list118); - span43[0] = new QuestStep(EInteractionType.EquipRecommended, null, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); - ref QuestStep reference82 = ref span43[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.SinglePlayerDuty, 2002376u, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); + index2 = 2; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); + num2++; + ref QuestStep reference79 = ref span3[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.SinglePlayerDuty, 2002376u, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = "(outside) Doesn't use obstacle maps or vnav to move to the shield generators, gets stuck on the big crates"; - singlePlayerDutyOptions.Notes = list119; - questStep6.SinglePlayerDutyOptions = singlePlayerDutyOptions; - reference82 = questStep6; - obj77.Steps = list118; - reference81 = obj77; - span39[6] = new QuestSequence + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + span = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span[index3] = "(outside) Doesn't use obstacle maps or vnav to move to the shield generators, gets stuck on the big crates"; + singlePlayerDutyOptions.Notes = list113; + questStep4.SinglePlayerDutyOptions = singlePlayerDutyOptions; + reference79 = questStep4; + obj76.Steps = list112; + reference78 = obj76; + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference83 = ref span39[7]; - QuestSequence obj78 = new QuestSequence + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) { StopDistance = 5f }; - obj78.Steps = list120; - reference83 = obj78; - questRoot15.QuestSequence = list112; + obj77.Steps = list114; + reference80 = obj77; + questRoot15.QuestSequence = list106; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(522); QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "JerryWester"; - questRoot16.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span44 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference84 = ref span44[0]; - QuestSequence obj79 = new QuestSequence + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list115; + index = 3; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) { StopDistance = 5f }; - obj79.Steps = list123; - reference84 = obj79; - ref QuestSequence reference85 = ref span44[1]; - QuestSequence obj80 = new QuestSequence + obj78.Steps = list117; + reference81 = obj78; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.Uldah, To = EAetheryteLocation.UldahChamberOfRule - }, - SkipConditions = new SkipConditions - { - AethernetShortcutIf = new SkipAetheryteCondition - { - Never = true - } } }; - obj80.Steps = list124; - reference85 = obj80; - ref QuestSequence reference86 = ref span44[2]; - QuestSequence obj81 = new QuestSequence + obj79.Steps = list118; + reference82 = obj79; + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span45 = CollectionsMarshal.AsSpan(list125); - span45[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span45[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span45[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span45[4] = new QuestStep(EInteractionType.CompleteQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); - obj81.Steps = list125; - reference86 = obj81; - questRoot16.QuestSequence = list122; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + obj80.Steps = list119; + reference83 = obj80; + questRoot16.QuestSequence = list116; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(528); QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; - questRoot17.Author = list126; - num = 10; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span46 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference87 = ref span46[0]; - QuestSequence obj82 = new QuestSequence + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; + questRoot17.Author = list120; + index = 10; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference84 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); - obj82.Steps = list128; - reference87 = obj82; - ref QuestSequence reference88 = ref span46[1]; - QuestSequence obj83 = new QuestSequence + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); + obj81.Steps = list122; + reference84 = obj81; + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); - obj83.Steps = list129; - reference88 = obj83; - ref QuestSequence reference89 = ref span46[2]; - QuestSequence obj84 = new QuestSequence + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + obj82.Steps = list123; + reference85 = obj82; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list130)[0]; - QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; + QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { AethernetShortcut = new AethernetShortcut { @@ -38053,118 +45511,141 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAirship } }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice + index3 = 1; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span7 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q1_000_1") }; - obj85.DialogueChoices = list131; - reference90 = obj85; - obj84.Steps = list130; - reference89 = obj84; - ref QuestSequence reference91 = ref span46[3]; - QuestSequence obj86 = new QuestSequence + obj84.DialogueChoices = list125; + reference87 = obj84; + obj83.Steps = list124; + reference86 = obj83; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - 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); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference89 = ref span3[num2]; + QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001667u, new Vector3(-45.365112f, 84.09241f, -0.80877686f), 130); num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + span7 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q2_000_1") }; - questStep7.DialogueChoices = list133; - reference92 = questStep7; - obj86.Steps = list132; - reference91 = obj86; - ref QuestSequence reference93 = ref span46[4]; - QuestSequence obj87 = new QuestSequence + questStep5.DialogueChoices = list127; + reference89 = questStep5; + obj85.Steps = list126; + reference88 = obj85; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - 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); - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference91 = ref span3[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002703u, new Vector3(-12.375122f, 91.499985f, -0.5340576f), 128); + index3 = 1; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span7 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q7_000_1") }; - questStep8.DialogueChoices = list135; - reference94 = questStep8; - span47[1] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); - obj87.Steps = list134; - reference93 = obj87; - ref QuestSequence reference95 = ref span46[5]; - QuestSequence obj88 = new QuestSequence + questStep6.DialogueChoices = list129; + reference91 = questStep6; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); + obj86.Steps = list128; + reference90 = obj86; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span48 = CollectionsMarshal.AsSpan(list136); - ref QuestStep reference96 = ref span48[0]; - QuestStep obj89 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) + index2 = 2; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; + QuestStep obj88 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { TargetTerritoryId = (ushort)129 }; num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new DialogueChoice + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + span7 = CollectionsMarshal.AsSpan(list131); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131094u) }; - obj89.DialogueChoices = list137; - reference96 = obj89; - span48[1] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); - obj88.Steps = list136; - reference95 = obj88; - ref QuestSequence reference97 = ref span46[6]; - QuestSequence obj90 = new QuestSequence + obj88.DialogueChoices = list131; + reference93 = obj88; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + obj87.Steps = list130; + reference92 = obj87; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 6 }; num2 = 10; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span49 = CollectionsMarshal.AsSpan(list138); - span49[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span49[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span49[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span49[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span49[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -38173,7 +45654,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span49[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -38183,20 +45665,24 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span49[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span49[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span49[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - ref QuestStep reference98 = ref span49[9]; - QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) + index2++; + ref QuestStep reference95 = ref span3[index2]; + QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { AethernetShortcut = new AethernetShortcut { @@ -38204,89 +45690,106 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span7 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q3_000_1") }; - obj91.DialogueChoices = list139; - reference98 = obj91; - obj90.Steps = list138; - reference97 = obj90; - ref QuestSequence reference99 = ref span46[7]; - QuestSequence obj92 = new QuestSequence + obj90.DialogueChoices = list133; + reference95 = obj90; + obj89.Steps = list132; + reference94 = obj89; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - 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); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001670u, new Vector3(-11.12384f, 92.0271f, 17.166382f), 128); num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + span7 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q4_000_1") }; - questStep9.DialogueChoices = list141; - reference100 = questStep9; - obj92.Steps = list140; - reference99 = obj92; - ref QuestSequence reference101 = ref span46[8]; - QuestSequence obj93 = new QuestSequence + questStep7.DialogueChoices = list135; + reference97 = questStep7; + obj91.Steps = list134; + reference96 = obj91; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 8 }; num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - 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) + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; + QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1000109u, new Vector3(29.770264f, -19.000002f, 114.12219f), 132) { Comment = "Gridania Arrivals Attendant" }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice + index3 = 1; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + span7 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q10_000_1") }; - obj94.DialogueChoices = list143; - reference102 = obj94; - span50[1] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); - obj93.Steps = list142; - reference101 = obj93; - ref QuestSequence reference103 = ref span46[9]; - QuestSequence obj95 = new QuestSequence + obj93.DialogueChoices = list137; + reference99 = obj93; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); + obj92.Steps = list136; + reference98 = obj92; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 12; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span51 = CollectionsMarshal.AsSpan(list144); - span51[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + index2 = 12; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span51[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span51[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) { TargetTerritoryId = (ushort)133, AethernetShortcut = new AethernetShortcut @@ -38295,16 +45798,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - span51[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span51[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span51[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span51[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -38313,12 +45820,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span51[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span51[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span51[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -38327,31 +45837,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span51[11] = new QuestStep(EInteractionType.CompleteQuest, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); - obj95.Steps = list144; - reference103 = obj95; - questRoot17.QuestSequence = list127; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + obj94.Steps = list138; + reference100 = obj94; + questRoot17.QuestSequence = list121; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(532); QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "Cacahuetes"; - questRoot18.Author = list145; - num = 2; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span52 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference104 = ref span52[0]; - QuestSequence obj96 = new QuestSequence + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "Cacahuetes"; + questRoot18.Author = list139; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -38362,56 +45878,65 @@ public static class AssemblyQuestLoader } } }; - obj96.Steps = list147; - reference104 = obj96; - ref QuestSequence reference105 = ref span52[1]; - QuestSequence obj97 = new QuestSequence + obj95.Steps = list141; + reference101 = obj95; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference103 = ref span3[num2]; + QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + span7 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL011_00532_Q1_000_1") }; - questStep10.DialogueChoices = list149; - questStep10.NextQuestId = new QuestId(553); - reference106 = questStep10; - obj97.Steps = list148; - reference105 = obj97; - questRoot18.QuestSequence = list146; + questStep8.DialogueChoices = list143; + questStep8.NextQuestId = new QuestId(553); + reference103 = questStep8; + obj96.Steps = list142; + reference102 = obj96; + questRoot18.QuestSequence = list140; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(533); QuestRoot questRoot19 = new QuestRoot(); num = 2; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span53 = CollectionsMarshal.AsSpan(list150); - span53[0] = "liza"; - span53[1] = "plogon_enjoyer"; - questRoot19.Author = list150; - num = 4; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span54 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference107 = ref span54[0]; - QuestSequence obj98 = new QuestSequence + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + span = CollectionsMarshal.AsSpan(list144); + index = 0; + span[index] = "liza"; + index++; + span[index] = "plogon_enjoyer"; + questRoot19.Author = list144; + index = 4; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + span2 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span55 = CollectionsMarshal.AsSpan(list152); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-86.589775f, 2.099846f, -51.574f), 130) + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-86.589775f, 2.099846f, -51.574f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -38422,42 +45947,50 @@ public static class AssemblyQuestLoader } } }; - span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); - obj98.Steps = list152; - reference107 = obj98; - ref QuestSequence reference108 = ref span54[1]; - QuestSequence obj99 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); + obj97.Steps = list146; + reference104 = obj97; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - 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); - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + ref QuestStep reference106 = ref span3[num2]; + QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span7 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL020_00533_Q1_000_1") }; - questStep11.DialogueChoices = list154; - reference109 = questStep11; - obj99.Steps = list153; - reference108 = obj99; - ref QuestSequence reference110 = ref span54[2]; - QuestSequence obj100 = new QuestSequence + questStep9.DialogueChoices = list148; + reference106 = questStep9; + obj98.Steps = list147; + reference105 = obj98; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - 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) + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; + QuestStep obj100 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { AethernetShortcut = new AethernetShortcut { @@ -38467,272 +46000,348 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - ref ComplexCombatData reference112 = ref CollectionsMarshal.AsSpan(list156)[0]; - ComplexCombatData obj102 = new ComplexCombatData + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + Span span8 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + ref ComplexCombatData reference109 = ref span8[index3]; + ComplexCombatData obj101 = new ComplexCombatData { DataId = 351u, MinimumKillCount = 3u }; int num4 = 6; - List list157 = new List(num4); - CollectionsMarshal.SetCount(list157, num4); - Span span57 = CollectionsMarshal.AsSpan(list157); - span57[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; - obj102.CompletionQuestVariablesFlags = list157; - reference112 = obj102; - obj101.ComplexCombatData = list156; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span58 = CollectionsMarshal.AsSpan(list158); - span58[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; - obj101.CompletionQuestVariablesFlags = list158; - reference111 = obj101; - ref QuestStep reference113 = ref span56[1]; - QuestStep obj103 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + span5 = CollectionsMarshal.AsSpan(list151); + int num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + obj101.CompletionQuestVariablesFlags = list151; + reference109 = obj101; + obj100.ComplexCombatData = list150; + index3 = 6; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span5 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span5[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + obj100.CompletionQuestVariablesFlags = list152; + reference108 = obj100; + index2++; + ref QuestStep reference110 = ref span3[index2]; + QuestStep obj102 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - ref ComplexCombatData reference114 = ref CollectionsMarshal.AsSpan(list159)[0]; - ComplexCombatData obj104 = new ComplexCombatData + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + span8 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + ref ComplexCombatData reference111 = ref span8[index3]; + ComplexCombatData obj103 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list160 = new List(num4); - CollectionsMarshal.SetCount(list160, num4); - Span span59 = CollectionsMarshal.AsSpan(list160); - span59[0] = null; - span59[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; - obj104.CompletionQuestVariablesFlags = list160; - reference114 = obj104; - obj103.ComplexCombatData = list159; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span60 = CollectionsMarshal.AsSpan(list161); - span60[0] = null; - span60[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = null; - obj103.CompletionQuestVariablesFlags = list161; - reference113 = obj103; - ref QuestStep reference115 = ref span56[2]; - QuestStep obj105 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) + num5 = 6; + List list154 = new List(num5); + CollectionsMarshal.SetCount(list154, num5); + span5 = CollectionsMarshal.AsSpan(list154); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + obj103.CompletionQuestVariablesFlags = list154; + reference111 = obj103; + obj102.ComplexCombatData = list153; + index3 = 6; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span5 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + obj102.CompletionQuestVariablesFlags = list155; + reference110 = obj102; + index2++; + ref QuestStep reference112 = ref span3[index2]; + QuestStep obj104 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - ref ComplexCombatData reference116 = ref CollectionsMarshal.AsSpan(list162)[0]; - ComplexCombatData obj106 = new ComplexCombatData + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + span8 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + ref ComplexCombatData reference113 = ref span8[index3]; + ComplexCombatData obj105 = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; num4 = 6; - List list163 = new List(num4); - CollectionsMarshal.SetCount(list163, num4); - Span span61 = CollectionsMarshal.AsSpan(list163); - span61[0] = null; - span61[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = null; - obj106.CompletionQuestVariablesFlags = list163; - reference116 = obj106; - obj105.ComplexCombatData = list162; - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span62 = CollectionsMarshal.AsSpan(list164); - span62[0] = null; - span62[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = null; - obj105.CompletionQuestVariablesFlags = list164; - reference115 = obj105; - obj100.Steps = list155; - reference110 = obj100; - ref QuestSequence reference117 = ref span54[3]; - QuestSequence obj107 = new QuestSequence + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + span5 = CollectionsMarshal.AsSpan(list157); + num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + obj105.CompletionQuestVariablesFlags = list157; + reference113 = obj105; + obj104.ComplexCombatData = list156; + index3 = 6; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span5 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + obj104.CompletionQuestVariablesFlags = list158; + reference112 = obj104; + obj99.Steps = list149; + reference107 = obj99; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(554) }; - obj107.Steps = list165; - reference117 = obj107; - questRoot19.QuestSequence = list151; + obj106.Steps = list159; + reference114 = obj106; + questRoot19.QuestSequence = list145; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(534); QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "Cacahuetes"; - questRoot20.Author = list166; - num = 2; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span63 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference118 = ref span63[0]; - QuestSequence obj108 = new QuestSequence + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "Cacahuetes"; + questRoot20.Author = list160; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131); - obj108.Steps = list168; - reference118 = obj108; - ref QuestSequence reference119 = ref span63[1]; - QuestSequence obj109 = new QuestSequence + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131); + obj107.Steps = list162; + reference115 = obj107; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; + QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1003818u, new Vector3(157.36621f, 7.7920074f, 98.924194f), 131); num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = new DialogueChoice + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + span7 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWVR011_00534_SYSTEM_Q0") }; - questStep12.DialogueChoices = list170; - reference120 = questStep12; - obj109.Steps = list169; - reference119 = obj109; - questRoot20.QuestSequence = list167; + questStep10.DialogueChoices = list164; + reference117 = questStep10; + obj108.Steps = list163; + reference116 = obj108; + questRoot20.QuestSequence = list161; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(543); QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; - questRoot21.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span64 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference121 = ref span64[0]; - QuestSequence obj110 = new QuestSequence + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; + questRoot21.Author = list165; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj110.Steps = list173; - reference121 = obj110; - ref QuestSequence reference122 = ref span64[1]; - QuestSequence obj111 = new QuestSequence + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj109.Steps = list167; + reference118 = obj109; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span65 = CollectionsMarshal.AsSpan(list174); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.400705f, 46.621056f, -70.3491f), 134); - span65[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001582u, new Vector3(-58.640503f, 27.145752f, -141.7716f), 134) + index2 = 2; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.400705f, 46.621056f, -70.3491f), 134); + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001582u, new Vector3(-58.640503f, 27.145752f, -141.7716f), 134) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj111.Steps = list174; - reference122 = obj111; - span64[2] = new QuestSequence + obj110.Steps = list168; + reference119 = obj110; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference123 = ref span64[3]; - QuestSequence obj112 = new QuestSequence + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); - obj112.Steps = list175; - reference123 = obj112; - questRoot21.QuestSequence = list172; + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + obj111.Steps = list169; + reference120 = obj111; + questRoot21.QuestSequence = list166; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(544); QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; - questRoot22.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span66 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference124 = ref span66[0]; - QuestSequence obj113 = new QuestSequence + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "liza"; + questRoot22.Author = list170; + index = 5; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); - obj113.Steps = list178; - reference124 = obj113; - ref QuestSequence reference125 = ref span66[1]; - QuestSequence obj114 = new QuestSequence + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + obj112.Steps = list172; + reference121 = obj112; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span67 = CollectionsMarshal.AsSpan(list179); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) + List list173 = new List(num2); + CollectionsMarshal.SetCount(list173, num2); + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) { AethernetShortcut = new AethernetShortcut { @@ -38740,52 +46349,61 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - span67[1] = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; - obj114.Steps = list179; - reference125 = obj114; - ref QuestSequence reference126 = ref span66[2]; - QuestSequence obj115 = new QuestSequence + obj113.Steps = list173; + reference122 = obj113; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - 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) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + ref QuestStep reference124 = ref span3[num2]; + QuestStep obj115 = new QuestStep(EInteractionType.SinglePlayerDuty, 1003283u, new Vector3(668.0552f, 7.297715f, 533.1654f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch }; - SinglePlayerDutyOptions obj117 = new SinglePlayerDutyOptions + SinglePlayerDutyOptions obj116 = new SinglePlayerDutyOptions { Enabled = true }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = "(Phase 1) Kills PGL NPCs and then the boss - allied NPCs will kill most other NPCs eventually; all NPCs need to be killed for the duty to complete"; - obj117.Notes = list181; - obj116.SinglePlayerDutyOptions = obj117; - reference127 = obj116; - obj115.Steps = list180; - reference126 = obj115; - span66[3] = new QuestSequence + index3 = 1; + List list175 = new List(index3); + CollectionsMarshal.SetCount(list175, index3); + span = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span[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"; + obj116.Notes = list175; + obj115.SinglePlayerDutyOptions = obj116; + reference124 = obj115; + obj114.Steps = list174; + reference123 = obj114; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference128 = ref span66[4]; - QuestSequence obj118 = new QuestSequence + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span68 = CollectionsMarshal.AsSpan(list182); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -38794,281 +46412,335 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; - obj118.Steps = list182; - reference128 = obj118; - questRoot22.QuestSequence = list177; + obj117.Steps = list176; + reference125 = obj117; + questRoot22.QuestSequence = list171; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(545); QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; - questRoot23.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span69 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference129 = ref span69[0]; - QuestSequence obj119 = new QuestSequence + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + span = CollectionsMarshal.AsSpan(list177); + index = 0; + span[index] = "liza"; + questRoot23.Author = list177; + index = 3; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + span2 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); - obj119.Steps = list185; - reference129 = obj119; - ref QuestSequence reference130 = ref span69[1]; - QuestSequence obj120 = new QuestSequence + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + obj118.Steps = list179; + reference126 = obj118; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span70 = CollectionsMarshal.AsSpan(list186); - span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3760u }; - ref QuestStep reference131 = ref span70[1]; - QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + index2++; + ref QuestStep reference128 = ref span3[index2]; + QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new DialogueChoice + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + span7 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131094u) }; - obj121.DialogueChoices = list187; - reference131 = obj121; - span70[2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); - obj120.Steps = list186; - reference130 = obj120; - ref QuestSequence reference132 = ref span69[2]; - QuestSequence obj122 = new QuestSequence + obj120.DialogueChoices = list181; + reference128 = obj120; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + obj119.Steps = list180; + reference127 = obj119; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span71 = CollectionsMarshal.AsSpan(list188); - span71[0] = new QuestStep(EInteractionType.Interact, 2001010u, new Vector3(-0.015319824f, 1.449585f, 7.522644f), 177) + index2 = 4; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001010u, new Vector3(-0.015319824f, 1.449585f, 7.522644f), 177) { TargetTerritoryId = (ushort)128 }; - ref QuestStep reference133 = ref span71[1]; - QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + num2++; + ref QuestStep reference130 = ref span3[num2]; + QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + index3 = 1; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + span7 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131094u) }; - obj123.DialogueChoices = list189; - reference133 = obj123; - ref QuestStep reference134 = ref span71[2]; - QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + obj122.DialogueChoices = list183; + reference130 = obj122; + num2++; + ref QuestStep reference131 = ref span3[num2]; + QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198 }; num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = new DialogueChoice + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + span7 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA009_00545_Q1_000_1") }; - obj124.DialogueChoices = list190; - reference134 = obj124; - span71[3] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); - obj122.Steps = list188; - reference132 = obj122; - questRoot23.QuestSequence = list184; + obj123.DialogueChoices = list184; + reference131 = obj123; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + obj121.Steps = list182; + reference129 = obj121; + questRoot23.QuestSequence = list178; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(546); QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; - questRoot24.Author = list191; - num = 10; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span72 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference135 = ref span72[0]; - QuestSequence obj125 = new QuestSequence + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "liza"; + questRoot24.Author = list185; + index = 10; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); - obj125.Steps = list193; - reference135 = obj125; - ref QuestSequence reference136 = ref span72[1]; - QuestSequence obj126 = new QuestSequence + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + obj124.Steps = list187; + reference132 = obj124; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span73 = CollectionsMarshal.AsSpan(list194); - span73[0] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) + index2 = 3; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) { TargetTerritoryId = (ushort)129 }; - ref QuestStep reference137 = ref span73[1]; - QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) + num2++; + ref QuestStep reference134 = ref span3[num2]; + QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new DialogueChoice + index3 = 1; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + span7 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131093u) }; - obj127.DialogueChoices = list195; - reference137 = obj127; - span73[2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); - obj126.Steps = list194; - reference136 = obj126; - ref QuestSequence reference138 = ref span72[2]; - QuestSequence obj128 = new QuestSequence + obj126.DialogueChoices = list189; + reference134 = obj126; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + obj125.Steps = list188; + reference133 = obj125; + num++; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - 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) + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; + QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)128 }; num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + span7 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131092u) }; - obj129.DialogueChoices = list197; - reference139 = obj129; - ref QuestStep reference140 = ref span74[1]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128); - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + obj128.DialogueChoices = list191; + reference136 = obj128; + index2++; + ref QuestStep reference137 = ref span3[index2]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128); + index3 = 1; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + span7 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q1_000_1") }; - questStep13.DialogueChoices = list198; - reference140 = questStep13; - obj128.Steps = list196; - reference138 = obj128; - ref QuestSequence reference141 = ref span72[3]; - QuestSequence obj130 = new QuestSequence + questStep11.DialogueChoices = list192; + reference137 = questStep11; + obj127.Steps = list190; + reference135 = obj127; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - 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); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference139 = ref span3[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2001668u, new Vector3(-11.10527f, 92.04318f, 17.18466f), 128); num3 = 1; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + span7 = CollectionsMarshal.AsSpan(list194); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q3_000_1") }; - questStep14.DialogueChoices = list200; - reference142 = questStep14; - obj130.Steps = list199; - reference141 = obj130; - ref QuestSequence reference143 = ref span72[4]; - QuestSequence obj131 = new QuestSequence + questStep12.DialogueChoices = list194; + reference139 = questStep12; + obj129.Steps = list193; + reference138 = obj129; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - 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) + List list195 = new List(num2); + CollectionsMarshal.SetCount(list195, num2); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference141 = ref span3[index2]; + QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1000109u, new Vector3(29.770264f, -19.000002f, 114.12219f), 132) { Comment = "Gridania Arrivals Attendant" }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice + index3 = 1; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + span7 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q7_000_1") }; - obj132.DialogueChoices = list202; - reference144 = obj132; - span75[1] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); - obj131.Steps = list201; - reference143 = obj131; - ref QuestSequence reference145 = ref span72[5]; - QuestSequence obj133 = new QuestSequence + obj131.DialogueChoices = list196; + reference141 = obj131; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); + obj130.Steps = list195; + reference140 = obj130; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - num2 = 12; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span76 = CollectionsMarshal.AsSpan(list203); - span76[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + index2 = 12; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span76[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span76[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) { TargetTerritoryId = (ushort)133, AethernetShortcut = new AethernetShortcut @@ -39077,16 +46749,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - span76[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span76[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span76[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span76[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -39095,12 +46771,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span76[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span76[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span76[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -39109,19 +46788,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span76[11] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); - obj133.Steps = list203; - reference145 = obj133; - ref QuestSequence reference146 = ref span72[6]; - QuestSequence obj134 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + obj132.Steps = list197; + reference142 = obj132; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list204)[0]; - QuestStep obj135 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference144 = ref span3[index2]; + QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { AethernetShortcut = new AethernetShortcut { @@ -39130,99 +46813,117 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + span7 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q5_000_1") }; - obj135.DialogueChoices = list205; - reference147 = obj135; - obj134.Steps = list204; - reference146 = obj134; - ref QuestSequence reference148 = ref span72[7]; - QuestSequence obj136 = new QuestSequence + obj134.DialogueChoices = list199; + reference144 = obj134; + obj133.Steps = list198; + reference143 = obj133; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 7 }; - 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); - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = new DialogueChoice + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + ref QuestStep reference146 = ref span3[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2001671u, new Vector3(7.156433f, -21.957764f, 123.73535f), 132); + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span7 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q3_000_1") }; - questStep15.DialogueChoices = list207; - reference149 = questStep15; - obj136.Steps = list206; - reference148 = obj136; - ref QuestSequence reference150 = ref span72[8]; - QuestSequence obj137 = new QuestSequence + questStep13.DialogueChoices = list201; + reference146 = questStep13; + obj135.Steps = list200; + reference145 = obj135; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 8 }; num2 = 2; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - 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) + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + ref QuestStep reference148 = ref span3[index2]; + QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1004434u, new Vector3(-27.17633f, 83.19998f, 2.304016f), 130) { Comment = "Ul'dah Arrivals Attendant" }; num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + span7 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q7_000_1") }; - obj138.DialogueChoices = list209; - reference151 = obj138; - span77[1] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); - obj137.Steps = list208; - reference150 = obj137; - ref QuestSequence reference152 = ref span72[9]; - QuestSequence obj139 = new QuestSequence + obj137.DialogueChoices = list203; + reference148 = obj137; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); + obj136.Steps = list202; + reference147 = obj136; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span78 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference153 = ref span78[0]; - QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) + index2 = 3; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference150 = ref span3[num2]; + QuestStep obj139 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + span7 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131096u) }; - obj140.DialogueChoices = list211; - reference153 = obj140; - span78[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + obj139.DialogueChoices = list205; + reference150 = obj139; + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - span78[2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); - obj139.Steps = list210; - reference152 = obj139; - questRoot24.QuestSequence = list192; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + obj138.Steps = list204; + reference149 = obj138; + questRoot24.QuestSequence = list186; AddQuest(questId24, questRoot24); } @@ -39233,13 +46934,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -39247,18 +46951,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003996u, new Vector3(202.65503f, 14.136861f, 536.88855f), 141) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003996u, new Vector3(202.65503f, 14.136861f, 536.88855f), 141) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -39267,11 +46976,13 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - span[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference3 = ref span[3]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -39279,7 +46990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -39289,24 +47002,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 5; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 5; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -39314,8 +47033,9 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1004005u, new Vector3(-123.88806f, 40f, 95.384155f), 131) { AethernetShortcut = new AethernetShortcut @@ -39327,25 +47047,31 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list10); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL007_00551_Q1_000_1") }; obj6.DialogueChoices = list10; reference6 = obj6; - span3[1] = new QuestStep(EInteractionType.Interact, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001427u, new Vector3(246.93665f, -17.105408f, -131.48706f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation @@ -39354,20 +47080,24 @@ public static class AssemblyQuestLoader { Enabled = true }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + span = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span[num3] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; obj9.Notes = list12; obj8.SinglePlayerDutyOptions = obj9; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - span2[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -39375,8 +47105,9 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span4[0]; + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1004005u, new Vector3(-123.88806f, 40f, 95.384155f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -39389,14 +47120,17 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL007_00551_Q1_000_1") }; obj11.DialogueChoices = list14; reference10 = obj11; - span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1004003u, new Vector3(0.015197754f, 0.014807776f, -1.6937866f), 210); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004003u, new Vector3(0.015197754f, 0.014807776f, -1.6937866f), 210); obj10.Steps = list13; reference9 = obj10; questRoot2.QuestSequence = list7; @@ -39406,24 +47140,30 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot3.Author = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span5 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span5[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj12.Steps = list17; reference11 = obj12; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -39431,12 +47171,14 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span6 = CollectionsMarshal.AsSpan(list18); - span6[0] = new QuestStep(EInteractionType.EquipItem, null, null, 130) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 130) { ItemId = 4196u }; - span6[1] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AethernetShortcut = new AethernetShortcut { @@ -39446,20 +47188,23 @@ public static class AssemblyQuestLoader }; obj13.Steps = list18; reference12 = obj13; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = new QuestStep(EInteractionType.Interact, 2001011u, new Vector3(0.015197754f, 1.9683228f, 8.132996f), 178) + index2 = 2; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001011u, new Vector3(0.015197754f, 1.9683228f, 8.132996f), 178) { TargetTerritoryId = (ushort)130 }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); obj14.Steps = list19; reference13 = obj14; questRoot3.QuestSequence = list16; @@ -39469,13 +47214,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "plogon_enjoyer"; questRoot4.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span8[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -39483,19 +47231,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj15.Steps = list22; reference14 = obj15; - ref QuestSequence reference15 = ref span8[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference16 = ref span9[0]; + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { AethernetShortcut = new AethernetShortcut @@ -39505,10 +47257,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span5 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + ref ComplexCombatData reference17 = ref span5[num3]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 351u, @@ -39517,76 +47271,106 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + Span span6 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj18.CompletionQuestVariablesFlags = list25; reference17 = obj18; obj17.ComplexCombatData = list24; num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span11 = CollectionsMarshal.AsSpan(list26); - span11[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + span6 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj17.CompletionQuestVariablesFlags = list26; reference16 = obj17; - ref QuestStep reference18 = ref span9[1]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + index3 = 1; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + span5 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + ref ComplexCombatData reference19 = ref span5[num3]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span12 = CollectionsMarshal.AsSpan(list28); - span12[0] = null; - span12[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + num5 = 6; + List list28 = new List(num5); + CollectionsMarshal.SetCount(list28, num5); + span6 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj20.CompletionQuestVariablesFlags = list28; reference19 = obj20; obj19.ComplexCombatData = list27; num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span13 = CollectionsMarshal.AsSpan(list29); - span13[0] = null; - span13[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + span6 = CollectionsMarshal.AsSpan(list29); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj19.CompletionQuestVariablesFlags = list29; reference18 = obj19; - ref QuestStep reference20 = ref span9[2]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + span5 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + ref ComplexCombatData reference21 = ref span5[num3]; ComplexCombatData obj22 = new ComplexCombatData { DataId = 205u, @@ -39595,31 +47379,44 @@ public static class AssemblyQuestLoader num4 = 6; List list31 = new List(num4); CollectionsMarshal.SetCount(list31, num4); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = null; + span6 = CollectionsMarshal.AsSpan(list31); + num5 = 0; + span6[num5] = null; + num5++; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj22.CompletionQuestVariablesFlags = list31; reference21 = obj22; obj21.ComplexCombatData = list30; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + span6 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj21.CompletionQuestVariablesFlags = list32; reference20 = obj21; obj16.Steps = list23; reference15 = obj16; - ref QuestSequence reference22 = ref span8[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -39627,7 +47424,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(554) @@ -39641,21 +47440,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "plogon_enjoyer"; questRoot5.Author = list34; - num = 5; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference23 = ref span16[0]; + index = 5; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -39668,7 +47472,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list36; reference23 = obj24; - ref QuestSequence reference24 = ref span16[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -39676,51 +47481,74 @@ public static class AssemblyQuestLoader num2 = 6; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.40663f, 0.60187495f, -59.04644f), 130); - ref QuestStep reference25 = ref span17[1]; + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.40663f, 0.60187495f, -59.04644f), 130); + index2++; + ref QuestStep reference25 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2001285u, new Vector3(-80.36932f, 0.6866455f, -59.55603f), 130); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span6 = CollectionsMarshal.AsSpan(list38); + 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)8, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list38; reference25 = questStep; - ref QuestStep reference26 = ref span17[2]; + index2++; + ref QuestStep reference26 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2001282u, new Vector3(-21.74414f, 9.994568f, -78.50769f), 130); num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list39; reference26 = questStep2; - ref QuestStep reference27 = ref span17[3]; + index2++; + ref QuestStep reference27 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001283u, new Vector3(37.03357f, 7.248047f, -98.8938f), 130); - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span20 = CollectionsMarshal.AsSpan(list40); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span6 = CollectionsMarshal.AsSpan(list40); + 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); questStep3.CompletionQuestVariablesFlags = list40; reference27 = questStep3; - ref QuestStep reference28 = ref span17[4]; + index2++; + ref QuestStep reference28 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2001280u, new Vector3(-162.46283f, 17.471558f, 60.196777f), 130) { AethernetShortcut = new AethernetShortcut @@ -39732,40 +47560,56 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span21 = CollectionsMarshal.AsSpan(list41); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list41; reference28 = obj26; - ref QuestStep reference29 = ref span17[5]; + index2++; + ref QuestStep reference29 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001281u, new Vector3(-254.74939f, 17.990356f, 67.33801f), 130); - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span22 = CollectionsMarshal.AsSpan(list42); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span6 = CollectionsMarshal.AsSpan(list42); + 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); questStep4.CompletionQuestVariablesFlags = list42; reference29 = questStep4; obj25.Steps = list37; reference24 = obj25; - ref QuestSequence reference30 = ref span16[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AethernetShortcut = new AethernetShortcut { @@ -39775,7 +47619,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list43; reference30 = obj27; - ref QuestSequence reference31 = ref span16[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -39783,8 +47628,9 @@ public static class AssemblyQuestLoader num2 = 8; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span23 = CollectionsMarshal.AsSpan(list44); - span23[0] = new QuestStep(EInteractionType.Action, 2001541u, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2001541u, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -39794,7 +47640,8 @@ public static class AssemblyQuestLoader }, Action = EAction.Bootshine }; - ref QuestStep reference32 = ref span23[1]; + index2++; + ref QuestStep reference32 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -39802,33 +47649,41 @@ public static class AssemblyQuestLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = 131u; + Span span7 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span7[index3] = 131u; obj29.KillEnemyDataIds = list45; obj29.CombatDelaySecondsAtStart = 1f; reference32 = obj29; - span23[2] = new QuestStep(EInteractionType.Action, 2001542u, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001542u, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) { Fly = true, Action = EAction.Bootshine }; - ref QuestStep reference33 = ref span23[3]; + index2++; + ref QuestStep reference33 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 131u; + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + span7 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span7[num3] = 131u; obj30.KillEnemyDataIds = list46; obj30.CombatDelaySecondsAtStart = 1f; reference33 = obj30; - span23[4] = new QuestStep(EInteractionType.Action, 2001543u, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001543u, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) { Fly = true, Action = EAction.Bootshine }; - ref QuestStep reference34 = ref span23[5]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -39836,41 +47691,49 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = 131u; + span7 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span7[index3] = 131u; obj31.KillEnemyDataIds = list47; obj31.CombatDelaySecondsAtStart = 1f; reference34 = obj31; - span23[6] = new QuestStep(EInteractionType.Action, 2001544u, new Vector3(259.05237f, 53.421753f, 25.40625f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001544u, new Vector3(259.05237f, 53.421753f, 25.40625f), 140) { Fly = true, Action = EAction.Bootshine }; - ref QuestStep reference35 = ref span23[7]; + index2++; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.4417f, 52.01455f, 23.240385f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 131u; + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + span7 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span7[num3] = 131u; obj32.KillEnemyDataIds = list48; obj32.CombatDelaySecondsAtStart = 1f; reference35 = obj32; obj28.Steps = list44; reference31 = obj28; - ref QuestSequence reference36 = ref span16[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { - AetheryteShortcut = EAetheryteLocation.Uldah, - NextQuestId = new QuestId(555) + AetheryteShortcut = EAetheryteLocation.Uldah }; obj33.Steps = list49; reference36 = obj33; @@ -39881,15 +47744,18 @@ public static class AssemblyQuestLoader num = 2; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span24 = CollectionsMarshal.AsSpan(list50); - span24[0] = "liza"; - span24[1] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "liza"; + index++; + span[index] = "plogon_enjoyer"; questRoot6.Author = list50; - num = 5; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span25 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference37 = ref span25[0]; + index = 5; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -39897,7 +47763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -39910,16 +47778,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list52; reference37 = obj34; - ref QuestSequence reference38 = ref span25[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span26 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference39 = ref span26[0]; + index2 = 5; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Action, 2001718u, new Vector3(-108.2017f, 4.989685f, -105.7603f), 130) { Action = EAction.Bootshine @@ -39927,33 +47797,47 @@ public static class AssemblyQuestLoader num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span27 = CollectionsMarshal.AsSpan(list54); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span27[4] = null; - span27[5] = null; + span6 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj36.CompletionQuestVariablesFlags = list54; reference39 = obj36; - ref QuestStep reference40 = ref span26[1]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Action, 2001719u, new Vector3(-105.9365f, 4.9655f, -107.8618f), 130) { Action = EAction.Bootshine }; - num3 = 6; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span28 = CollectionsMarshal.AsSpan(list55); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span28[4] = null; - span28[5] = null; + index3 = 6; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + span6 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj37.CompletionQuestVariablesFlags = list55; reference40 = obj37; - ref QuestStep reference41 = ref span26[2]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Action, 2001720u, new Vector3(-77.89734f, 5.0201416f, -129.19812f), 130) { Action = EAction.Bootshine @@ -39961,33 +47845,47 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span29 = CollectionsMarshal.AsSpan(list56); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span29[4] = null; - span29[5] = null; + span6 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj38.CompletionQuestVariablesFlags = list56; reference41 = obj38; - ref QuestStep reference42 = ref span26[3]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Action, 2001721u, new Vector3(-74.906555f, 4.8981323f, -130.99878f), 130) { Action = EAction.Bootshine }; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span30 = CollectionsMarshal.AsSpan(list57); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span30[4] = null; - span30[5] = null; + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span6 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj39.CompletionQuestVariablesFlags = list57; reference42 = obj39; - ref QuestStep reference43 = ref span26[4]; + num2++; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 2001722u, new Vector3(-71.732666f, 5.0201416f, -132.64673f), 130) { Action = EAction.Bootshine @@ -39995,18 +47893,25 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span31 = CollectionsMarshal.AsSpan(list58); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span31[4] = null; - span31[5] = null; + span6 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; obj40.CompletionQuestVariablesFlags = list58; reference43 = obj40; obj35.Steps = list53; reference38 = obj35; - ref QuestSequence reference44 = ref span25[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -40014,34 +47919,42 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj41.Steps = list59; reference44 = obj41; - ref QuestSequence reference45 = ref span25[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list60)[0]; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = 771u; + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span7 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span7[num3] = 771u; obj43.KillEnemyDataIds = list61; obj43.CombatDelaySecondsAtStart = 0f; reference46 = obj43; obj42.Steps = list60; reference45 = obj42; - ref QuestSequence reference47 = ref span25[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -40049,9 +47962,11 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span32 = CollectionsMarshal.AsSpan(list62); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(558) @@ -40065,21 +47980,26 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "plogon_enjoyer"; questRoot7.Author = list63; - num = 8; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span33 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference48 = ref span33[0]; + index = 8; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40092,7 +48012,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list65; reference48 = obj45; - ref QuestSequence reference49 = ref span33[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -40100,7 +48021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list66)[0]; + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(265.54178f, -19.718353f, -128.44438f), 141) { Fly = true, @@ -40110,7 +48033,9 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 26u, RewardItemId = 2000408u, @@ -40121,24 +48046,28 @@ public static class AssemblyQuestLoader reference50 = obj47; obj46.Steps = list66; reference49 = obj46; - ref QuestSequence reference51 = ref span33[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span34 = CollectionsMarshal.AsSpan(list68); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.2259f, -1.9503738f, -187.50148f), 141); - span34[1] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.2259f, -1.9503738f, -187.50148f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj48.Steps = list68; reference51 = obj48; - ref QuestSequence reference52 = ref span33[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -40146,36 +48075,43 @@ public static class AssemblyQuestLoader num2 = 3; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span35 = CollectionsMarshal.AsSpan(list69); - span35[0] = new QuestStep(EInteractionType.Interact, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141) { Mount = true }; - span35[1] = new QuestStep(EInteractionType.Interact, 1001445u, new Vector3(-13.046509f, -2.0905762f, -184.40533f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001445u, new Vector3(-13.046509f, -2.0905762f, -184.40533f), 141) { Fly = true }; - span35[2] = new QuestStep(EInteractionType.Interact, 1004148u, new Vector3(5.722107f, -1.985179f, -172.7779f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004148u, new Vector3(5.722107f, -1.985179f, -172.7779f), 141) { Fly = true }; obj49.Steps = list69; reference52 = obj49; - ref QuestSequence reference53 = ref span33[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) { Fly = true }; obj50.Steps = list70; reference53 = obj50; - ref QuestSequence reference54 = ref span33[5]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -40183,7 +48119,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001349u, new Vector3(-241.41296f, 8.0720215f, -32.24237f), 141) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001349u, new Vector3(-241.41296f, 8.0720215f, -32.24237f), 141) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -40193,21 +48131,25 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference54 = obj51; - ref QuestSequence reference55 = ref span33[6]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1004149u, new Vector3(-242.84735f, 7.405224f, -29.312622f), 141) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004149u, new Vector3(-242.84735f, 7.405224f, -29.312622f), 141) { StopDistance = 6f }; obj52.Steps = list72; reference55 = obj52; - ref QuestSequence reference56 = ref span33[7]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -40215,7 +48157,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(562) @@ -40229,21 +48173,26 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "plogon_enjoyer"; questRoot8.Author = list74; - num = 6; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span36 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference57 = ref span36[0]; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40256,7 +48205,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference57 = obj54; - ref QuestSequence reference58 = ref span36[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -40264,39 +48214,46 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); obj55.Steps = list77; reference58 = obj55; - ref QuestSequence reference59 = ref span36[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = new QuestStep(EInteractionType.Action, 2001391u, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) + index2 = 6; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2001391u, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, Action = EAction.Bootshine }; - ref QuestStep reference60 = ref span37[1]; + num2++; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span38 = CollectionsMarshal.AsSpan(list79); - span38[0] = new ComplexCombatData + index3 = 2; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span5 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 139u, MinimumKillCount = 1u }; - span38[1] = new ComplexCombatData + num3++; + span5[num3] = new ComplexCombatData { DataId = 136u, MinimumKillCount = 2u @@ -40304,12 +48261,14 @@ public static class AssemblyQuestLoader obj57.ComplexCombatData = list79; obj57.CombatDelaySecondsAtStart = 1f; reference60 = obj57; - span37[2] = new QuestStep(EInteractionType.Action, 2001389u, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2001389u, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) { Mount = true, Action = EAction.Bootshine }; - ref QuestStep reference61 = ref span37[3]; + num2++; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -40317,7 +48276,9 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 57u, MinimumKillCount = 2u @@ -40325,20 +48286,24 @@ public static class AssemblyQuestLoader obj58.ComplexCombatData = list80; obj58.CombatDelaySecondsAtStart = 1f; reference61 = obj58; - span37[4] = new QuestStep(EInteractionType.Action, 2001390u, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2001390u, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) { Mount = true, Action = EAction.Bootshine }; - ref QuestStep reference62 = ref span37[5]; + num2++; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new ComplexCombatData + index3 = 1; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + span5 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 57u, MinimumKillCount = 2u @@ -40348,7 +48313,8 @@ public static class AssemblyQuestLoader reference62 = obj59; obj56.Steps = list78; reference59 = obj56; - ref QuestSequence reference63 = ref span36[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -40356,24 +48322,30 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj60.Steps = list82; reference63 = obj60; - ref QuestSequence reference64 = ref span36[4]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj61.Steps = list83; reference64 = obj61; - ref QuestSequence reference65 = ref span36[5]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -40381,7 +48353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { NextQuestId = new QuestId(566) }; @@ -40394,21 +48368,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "Starr"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "Starr"; questRoot9.Author = list85; - num = 2; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span39 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference66 = ref span39[0]; + index = 2; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -40421,7 +48400,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list87; reference66 = obj63; - ref QuestSequence reference67 = ref span39[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -40429,7 +48409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list88)[0]; + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj65 = new QuestStep(EInteractionType.CompleteQuest, 1010464u, new Vector3(-0.015319824f, -1.8903663E-06f, -65.61273f), 388) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -40444,9 +48426,11 @@ public static class AssemblyQuestLoader num3 = 2; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span40 = CollectionsMarshal.AsSpan(list89); - span40[0] = 388; - span40[1] = 144; + Span span8 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span8[index3] = 388; + index3++; + span8[index3] = 144; skipAetheryteCondition.InTerritory = list89; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj65.SkipConditions = skipConditions; @@ -40460,21 +48444,26 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "plogon_enjoyer"; questRoot10.Author = list90; - num = 6; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span41 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference69 = ref span41[0]; + index = 6; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40487,7 +48476,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference69 = obj66; - ref QuestSequence reference70 = ref span41[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -40495,25 +48485,31 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); obj67.Steps = list93; reference70 = obj67; - ref QuestSequence reference71 = ref span41[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj68.Steps = list94; reference71 = obj68; - ref QuestSequence reference72 = ref span41[3]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 @@ -40521,33 +48517,43 @@ public static class AssemblyQuestLoader num2 = 6; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span42 = CollectionsMarshal.AsSpan(list95); - ref QuestStep reference73 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.UseItem, 2001525u, new Vector3(-203.81476f, 27.267822f, -351.76624f), 146) { ItemId = 2000409u }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span43 = CollectionsMarshal.AsSpan(list96); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span6 = CollectionsMarshal.AsSpan(list96); + 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); obj70.CompletionQuestVariablesFlags = list96; reference73 = obj70; - span42[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.89648f, 26.681297f, -322.03738f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.89648f, 26.681297f, -322.03738f), 146) { Mount = true }; - span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.12759f, 14.866777f, -187.7578f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.12759f, 14.866777f, -187.7578f), 146) { Fly = true }; - ref QuestStep reference74 = ref span42[3]; + index2++; + ref QuestStep reference74 = ref span3[index2]; QuestStep obj71 = new QuestStep(EInteractionType.UseItem, 2001523u, new Vector3(-105.57721f, 14.999573f, -185.32086f), 146) { ItemId = 2000409u @@ -40555,34 +48561,48 @@ public static class AssemblyQuestLoader num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span44 = CollectionsMarshal.AsSpan(list97); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list97; reference74 = obj71; - ref QuestStep reference75 = ref span42[4]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2001524u, new Vector3(197.4364f, 15.548889f, -450.58368f), 146) { Fly = true, ItemId = 2000409u }; - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span45 = CollectionsMarshal.AsSpan(list98); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + span6 = CollectionsMarshal.AsSpan(list98); + 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); obj72.CompletionQuestVariablesFlags = list98; reference75 = obj72; - ref QuestStep reference76 = ref span42[5]; + index2++; + ref QuestStep reference76 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2001522u, new Vector3(22.171326f, 17.868286f, -600.24414f), 146) { Fly = true, @@ -40591,33 +48611,43 @@ public static class AssemblyQuestLoader num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span46 = CollectionsMarshal.AsSpan(list99); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list99; reference76 = obj73; obj69.Steps = list95; reference72 = obj69; - ref QuestSequence reference77 = ref span41[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj74.Steps = list100; reference77 = obj74; - ref QuestSequence reference78 = ref span41[5]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -40625,7 +48655,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(567) @@ -40639,21 +48671,26 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "plogon_enjoyer"; questRoot11.Author = list102; - num = 6; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span47 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference79 = ref span47[0]; + index = 6; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40666,7 +48703,8 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference79 = obj76; - ref QuestSequence reference80 = ref span47[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -40674,31 +48712,38 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj77.Steps = list105; reference80 = obj77; - ref QuestSequence reference81 = ref span47[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(-262.6409f, 14.190942f, 594.23486f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new ComplexCombatData + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 357u, MinimumKillCount = 5u @@ -40708,7 +48753,8 @@ public static class AssemblyQuestLoader reference82 = obj79; obj78.Steps = list106; reference81 = obj78; - ref QuestSequence reference83 = ref span47[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -40716,22 +48762,27 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj80.Steps = list108; reference83 = obj80; - ref QuestSequence reference84 = ref span47[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003890u, new Vector3(-21.805176f, 3.9999993f, -145.18964f), 130) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003890u, new Vector3(-21.805176f, 3.9999993f, -145.18964f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -40741,7 +48792,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list109; reference84 = obj81; - ref QuestSequence reference85 = ref span47[5]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -40749,7 +48801,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj82.Steps = list110; reference85 = obj82; questRoot11.QuestSequence = list103; @@ -40759,24 +48813,30 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "liza"; questRoot12.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span48 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference86 = ref span48[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj83.Steps = list113; reference86 = obj83; - ref QuestSequence reference87 = ref span48[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -40784,72 +48844,97 @@ public static class AssemblyQuestLoader num2 = 17; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span49 = CollectionsMarshal.AsSpan(list114); - span49[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - ref QuestStep reference88 = ref span49[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span50 = CollectionsMarshal.AsSpan(list115); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list115; reference88 = questStep5; - span49[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span49[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span49[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span49[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span49[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - ref QuestStep reference89 = ref span49[8]; + index2++; + ref QuestStep reference89 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span51 = CollectionsMarshal.AsSpan(list116); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + span6 = CollectionsMarshal.AsSpan(list116); + 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); questStep6.CompletionQuestVariablesFlags = list116; reference89 = questStep6; - span49[9] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { Disabled = true, Comment = "Level 1 class quest isn't finished", PickUpQuestId = new QuestId(253) }; - span49[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span49[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - span49[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -40862,7 +48947,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span49[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -40870,7 +48956,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span49[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -40878,7 +48965,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - ref QuestStep reference90 = ref span49[15]; + index2++; + ref QuestStep reference90 = ref span3[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -40895,7 +48983,9 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -40903,39 +48993,49 @@ public static class AssemblyQuestLoader }; obj85.DialogueChoices = list117; reference90 = obj85; - ref QuestStep reference91 = ref span49[16]; + index2++; + ref QuestStep reference91 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span52 = CollectionsMarshal.AsSpan(list118); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + span6 = CollectionsMarshal.AsSpan(list118); + 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); obj86.CompletionQuestVariablesFlags = list118; reference91 = obj86; obj84.Steps = list114; reference87 = obj84; - ref QuestSequence reference92 = ref span48[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span53 = CollectionsMarshal.AsSpan(list119); - span53[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + index2 = 4; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span53[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -40948,7 +49048,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span53[2] = new QuestStep(EInteractionType.None, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40956,7 +49057,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span53[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -40973,14 +49075,18 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; questRoot13.Author = list120; questRoot13.IsSeasonalQuest = true; - questRoot13.SeasonalQuestExpiry = new DateTime(2025, 12, 16, 14, 59, 0, DateTimeKind.Utc); - num = 1; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - ref QuestSequence reference93 = ref CollectionsMarshal.AsSpan(list121)[0]; + questRoot13.SeasonalQuestExpiry = new DateTime(2025, 12, 23, 14, 59, 0, DateTimeKind.Utc); + index = 1; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -40988,7 +49094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list122)[0]; + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj89 = new QuestStep(EInteractionType.AcceptQuest, 1052475u, new Vector3(-22.354492f, 10.13581f, -241.41296f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -41006,7 +49114,9 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 133; + span8 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span8[index3] = 133; obj90.InTerritory = list123; skipConditions2.AetheryteShortcutIf = obj90; obj89.SkipConditions = skipConditions2; @@ -41020,24 +49130,30 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "liza"; questRoot14.Author = list124; - num = 3; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span54 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference95 = ref span54[0]; + index = 3; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj91.Steps = list126; reference95 = obj91; - ref QuestSequence reference96 = ref span54[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -41045,72 +49161,97 @@ public static class AssemblyQuestLoader num2 = 17; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span55 = CollectionsMarshal.AsSpan(list127); - span55[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - ref QuestStep reference97 = ref span55[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + index2++; + ref QuestStep reference97 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span56 = CollectionsMarshal.AsSpan(list128); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span6 = CollectionsMarshal.AsSpan(list128); + 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); questStep7.CompletionQuestVariablesFlags = list128; reference97 = questStep7; - span55[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span55[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span55[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span55[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span55[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span55[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span55[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - ref QuestStep reference98 = ref span55[10]; + index2++; + ref QuestStep reference98 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span57 = CollectionsMarshal.AsSpan(list129); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list129; reference98 = questStep8; - span55[11] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { Disabled = true, Comment = "Level 1 class quest isn't finished", PickUpQuestId = new QuestId(345) }; - span55[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -41123,7 +49264,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span55[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -41131,7 +49273,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span55[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -41139,7 +49282,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - ref QuestStep reference99 = ref span55[15]; + index2++; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -41153,10 +49297,12 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + index3 = 1; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + span4 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -41164,7 +49310,8 @@ public static class AssemblyQuestLoader }; obj93.DialogueChoices = list130; reference99 = obj93; - ref QuestStep reference100 = ref span55[16]; + index2++; + ref QuestStep reference100 = ref span3[index2]; QuestStep obj94 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah @@ -41172,31 +49319,40 @@ public static class AssemblyQuestLoader num3 = 6; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - Span span58 = CollectionsMarshal.AsSpan(list131); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list131); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list131; reference100 = obj94; obj92.Steps = list127; reference96 = obj92; - ref QuestSequence reference101 = ref span54[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span59 = CollectionsMarshal.AsSpan(list132); - span59[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + index2 = 4; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span59[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -41209,7 +49365,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span59[2] = new QuestStep(EInteractionType.None, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -41217,7 +49374,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -41234,13 +49392,16 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "liza"; questRoot15.Author = list133; - num = 3; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span60 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference102 = ref span60[0]; + index = 3; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -41248,83 +49409,111 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj96.Steps = list135; reference102 = obj96; - ref QuestSequence reference103 = ref span60[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 17; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span61 = CollectionsMarshal.AsSpan(list136); - span61[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + index2 = 17; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - ref QuestStep reference104 = ref span61[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span62 = CollectionsMarshal.AsSpan(list137); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + span6 = CollectionsMarshal.AsSpan(list137); + 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); questStep9.CompletionQuestVariablesFlags = list137; reference104 = questStep9; - span61[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span61[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span61[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span61[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span61[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span61[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span61[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - ref QuestStep reference105 = ref span61[10]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span63 = CollectionsMarshal.AsSpan(list138); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list138; reference105 = questStep10; - span61[11] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { Disabled = true, Comment = "Level 1 class quest isn't finished", PickUpQuestId = new QuestId(345) }; - span61[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -41337,7 +49526,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span61[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -41345,7 +49535,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span61[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -41353,7 +49544,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - ref QuestStep reference106 = ref span61[15]; + num2++; + ref QuestStep reference106 = ref span3[num2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -41367,10 +49559,12 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + span4 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -41378,7 +49572,8 @@ public static class AssemblyQuestLoader }; obj98.DialogueChoices = list139; reference106 = obj98; - ref QuestStep reference107 = ref span61[16]; + num2++; + ref QuestStep reference107 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah @@ -41386,18 +49581,25 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span64 = CollectionsMarshal.AsSpan(list140); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list140; reference107 = obj99; obj97.Steps = list136; reference103 = obj97; - ref QuestSequence reference108 = ref span60[2]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -41405,12 +49607,14 @@ public static class AssemblyQuestLoader num2 = 4; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span65 = CollectionsMarshal.AsSpan(list141); - span65[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span65[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -41423,7 +49627,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span65[2] = new QuestStep(EInteractionType.None, null, null, 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -41431,7 +49636,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span65[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -41448,24 +49654,30 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "liza"; questRoot16.Author = list142; - num = 5; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span66 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference109 = ref span66[0]; + index = 5; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj101.Steps = list144; reference109 = obj101; - ref QuestSequence reference110 = ref span66[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -41473,30 +49685,40 @@ public static class AssemblyQuestLoader num2 = 8; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span67 = CollectionsMarshal.AsSpan(list145); - span67[0] = new QuestStep(EInteractionType.EquipItem, null, null, 145) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 145) { ItemId = 2995u }; - span67[1] = new QuestStep(EInteractionType.EquipItem, null, null, 145) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 145) { ItemId = 3306u }; - ref QuestStep reference111 = ref span67[2]; + index2++; + ref QuestStep reference111 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1004327u, new Vector3(-412.03937f, -48.15f, 102.61682f), 145); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span68 = CollectionsMarshal.AsSpan(list146); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span6 = CollectionsMarshal.AsSpan(list146); + 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); questStep11.CompletionQuestVariablesFlags = list146; reference111 = questStep11; - ref QuestStep reference112 = ref span67[3]; + index2++; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Jump, null, new Vector3(-409.44067f, -48.15f, 101.391624f), 145) { JumpDestination = new JumpDestination @@ -41510,131 +49732,169 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span69 = CollectionsMarshal.AsSpan(list147); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list147; skipConditions3.StepIf = skipStepConditions; obj103.SkipConditions = skipConditions3; reference112 = obj103; - ref QuestStep reference113 = ref span67[4]; + index2++; + ref QuestStep reference113 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1004506u, new Vector3(-416.64764f, -54.15f, 96.42175f), 145); - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span70 = CollectionsMarshal.AsSpan(list148); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span6 = CollectionsMarshal.AsSpan(list148); + 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); questStep12.CompletionQuestVariablesFlags = list148; reference113 = questStep12; - ref QuestStep reference114 = ref span67[5]; + index2++; + ref QuestStep reference114 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1004325u, new Vector3(-402.45673f, -57.07999f, 131.82263f), 145); num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span71 = CollectionsMarshal.AsSpan(list149); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list149; reference114 = questStep13; - ref QuestStep reference115 = ref span67[6]; + index2++; + ref QuestStep reference115 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1004556u, new Vector3(-394.85773f, -57.30005f, 173.32715f), 145); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span72 = CollectionsMarshal.AsSpan(list150); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span6 = CollectionsMarshal.AsSpan(list150); + 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)8, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list150; reference115 = questStep14; - ref QuestStep reference116 = ref span67[7]; + index2++; + ref QuestStep reference116 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1003947u, new Vector3(-369.19202f, -57.079987f, 140.0625f), 145); num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span73 = CollectionsMarshal.AsSpan(list151); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list151; reference116 = questStep15; obj102.Steps = list145; reference110 = obj102; - ref QuestSequence reference117 = ref span66[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1004324u, new Vector3(-377.6761f, -55.754112f, 108.17114f), 145); + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004324u, new Vector3(-377.6761f, -55.754112f, 108.17114f), 145); obj104.Steps = list152; reference117 = obj104; - ref QuestSequence reference118 = ref span66[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 3; + num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span74 = CollectionsMarshal.AsSpan(list153); - span74[0] = new QuestStep(EInteractionType.EquipItem, null, null, 145) - { - ItemId = 2995u - }; - span74[1] = new QuestStep(EInteractionType.EquipItem, null, null, 145) - { - ItemId = 3306u - }; - span74[2] = new QuestStep(EInteractionType.Interact, 1004330u, new Vector3(-221.45422f, -30.074055f, 200.15259f), 145); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004330u, new Vector3(-221.45422f, -30.074055f, 200.15259f), 145); obj105.Steps = list153; reference118 = obj105; - ref QuestSequence reference119 = ref span66[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span75 = CollectionsMarshal.AsSpan(list154); - span75[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 6; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span75[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 140); - span75[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span75[3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span75[4] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span75[5] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj106.Steps = list154; reference119 = obj106; questRoot16.QuestSequence = list143; @@ -41644,13 +49904,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "Cacahuetes"; questRoot17.Author = list155; - num = 2; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span76 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference120 = ref span76[0]; + index = 2; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -41658,23 +49921,30 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131); obj107.Steps = list157; reference120 = obj107; - ref QuestSequence reference121 = ref span76[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference122 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131); - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + index3 = 1; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + span4 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSALC011_00575_Q1_1") @@ -41690,13 +49960,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot18.Author = list160; - num = 2; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span77 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference123 = ref span77[0]; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -41704,18 +49977,23 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011030u, new Vector3(7.522644f, -1.7667189E-06f, -68.589294f), 388); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011030u, new Vector3(7.522644f, -1.7667189E-06f, -68.589294f), 388); obj109.Steps = list162; reference123 = obj109; - ref QuestSequence reference124 = ref span77[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -41728,13 +50006,16 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list164); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list164; - num = 5; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span78 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference125 = ref span78[0]; + index = 5; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + span2 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -41742,7 +50023,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -41756,24 +50039,28 @@ public static class AssemblyQuestLoader }; obj111.Steps = list166; reference125 = obj111; - ref QuestSequence reference126 = ref span78[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span79 = CollectionsMarshal.AsSpan(list167); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span79[1] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); obj112.Steps = list167; reference126 = obj112; - ref QuestSequence reference127 = ref span78[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -41781,35 +50068,42 @@ public static class AssemblyQuestLoader num2 = 3; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span80 = CollectionsMarshal.AsSpan(list168); - span80[0] = new QuestStep(EInteractionType.Interact, 1004349u, new Vector3(444.99866f, -4.487237f, -453.02515f), 156) + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004349u, new Vector3(444.99866f, -4.487237f, -453.02515f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span80[1] = new QuestStep(EInteractionType.Interact, 1007067u, new Vector3(444.99866f, -4.3439503f, -446.00598f), 156); - span80[2] = new QuestStep(EInteractionType.Interact, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007067u, new Vector3(444.99866f, -4.3439503f, -446.00598f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) { StopDistance = 1f, Fly = true }; obj113.Steps = list168; reference127 = obj113; - ref QuestSequence reference128 = ref span78[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 2005571u, new Vector3(442.8015f, -19.516357f, -291.43213f), 156) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005571u, new Vector3(442.8015f, -19.516357f, -291.43213f), 156) { Fly = true }; obj114.Steps = list169; reference128 = obj114; - ref QuestSequence reference129 = ref span78[4]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -41817,13 +50111,15 @@ public static class AssemblyQuestLoader num2 = 2; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span81 = CollectionsMarshal.AsSpan(list170); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(586) }; @@ -41836,21 +50132,26 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list171; - num = 3; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span82 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span82[0]; + index = 3; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -41863,7 +50164,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list173; reference130 = obj116; - ref QuestSequence reference131 = ref span82[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -41871,13 +50173,15 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span83 = CollectionsMarshal.AsSpan(list174); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.77087f, 367.76678f, -658.1668f), 155) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.77087f, 367.76678f, -658.1668f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span83[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014199u, new Vector3(531.33435f, 348.49677f, -737.4227f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014199u, new Vector3(531.33435f, 348.49677f, -737.4227f), 155) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -41887,21 +50191,24 @@ public static class AssemblyQuestLoader }; obj117.Steps = list174; reference131 = obj117; - ref QuestSequence reference132 = ref span82[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span84 = CollectionsMarshal.AsSpan(list175); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(588) }; @@ -41914,13 +50221,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span85 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference133 = ref span85[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -41928,7 +50238,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -41941,16 +50253,18 @@ public static class AssemblyQuestLoader }; obj119.Steps = list178; reference133 = obj119; - ref QuestSequence reference134 = ref span85[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span86 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference135 = ref span86[0]; + index2 = 4; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference135 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1011920u, new Vector3(519.8595f, -51.071976f, 88.24292f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather @@ -41958,47 +50272,69 @@ public static class AssemblyQuestLoader num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span87 = CollectionsMarshal.AsSpan(list180); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj121.CompletionQuestVariablesFlags = list180; reference135 = obj121; - span86[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.8876f, -48.989826f, 34.93356f), 398); - ref QuestStep reference136 = ref span86[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.8876f, -48.989826f, 34.93356f), 398); + num2++; + ref QuestStep reference136 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1011919u, new Vector3(497.82556f, -49.790283f, 11.825684f), 398); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span88 = CollectionsMarshal.AsSpan(list181); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + span6 = CollectionsMarshal.AsSpan(list181); + 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); questStep17.CompletionQuestVariablesFlags = list181; reference136 = questStep17; - ref QuestStep reference137 = ref span86[3]; + num2++; + ref QuestStep reference137 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1011921u, new Vector3(453.36072f, -51.141403f, 58.579346f), 398); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span89 = CollectionsMarshal.AsSpan(list182); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list182; reference137 = questStep18; obj120.Steps = list179; reference134 = obj120; - ref QuestSequence reference138 = ref span85[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -42006,8 +50342,9 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span90 = CollectionsMarshal.AsSpan(list183); - span90[0] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) { StopDistance = 0.25f, Fly = true, @@ -42019,7 +50356,8 @@ public static class AssemblyQuestLoader } } }; - span90[1] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) { Fly = false, SkipConditions = new SkipConditions @@ -42032,17 +50370,29 @@ public static class AssemblyQuestLoader }; obj122.Steps = list183; reference138 = obj122; - ref QuestSequence reference139 = ref span85[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span91 = CollectionsMarshal.AsSpan(list184); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(423.53406f, -26.253891f, -550.60297f), 398); - ref QuestStep reference140 = ref span91[1]; + index2 = 3; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[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 span3[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2005573u, new Vector3(441.94702f, -21.530518f, -545.03705f), 398) { StopDistance = 0.25f, @@ -42050,10 +50400,12 @@ public static class AssemblyQuestLoader ItemId = 2001590u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = 4373u; + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span7 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span7[num3] = 4373u; obj124.KillEnemyDataIds = list185; obj124.SkipConditions = new SkipConditions { @@ -42063,7 +50415,8 @@ public static class AssemblyQuestLoader } }; reference140 = obj124; - ref QuestStep reference141 = ref span91[2]; + num2++; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 2005573u, new Vector3(441.94702f, -21.530518f, -545.03705f), 398) { StopDistance = 0.25f, @@ -42075,7 +50428,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 4373u; + span7 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span7[index3] = 4373u; obj125.KillEnemyDataIds = list186; obj125.SkipConditions = new SkipConditions { @@ -42087,7 +50442,8 @@ public static class AssemblyQuestLoader reference141 = obj125; obj123.Steps = list184; reference139 = obj123; - ref QuestSequence reference142 = ref span85[4]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -42095,13 +50451,15 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span92 = CollectionsMarshal.AsSpan(list187); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(596) }; @@ -42114,26 +50472,33 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot22.Author = list188; - num = 2; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span93 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference143 = ref span93[0]; + index = 2; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list190)[0]; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference144 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.AcceptQuest, 1003987u, new Vector3(33.37146f, 4.0999947f, -151.99518f), 182); - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + span4 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningUldah", @@ -42144,7 +50509,8 @@ public static class AssemblyQuestLoader reference144 = questStep19; obj127.Steps = list190; reference143 = obj127; - ref QuestSequence reference145 = ref span93[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -42152,7 +50518,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj128.Steps = list192; reference145 = obj128; questRoot22.QuestSequence = list189; @@ -42162,21 +50530,26 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; questRoot23.Author = list193; - num = 2; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span94 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference146 = ref span94[0]; + index = 2; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list195)[0]; + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj130 = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -42186,14 +50559,17 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = 130; + span8 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span8[index3] = 130; skipStepConditions2.NotInTerritory = list196; skipConditions4.StepIf = skipStepConditions2; obj130.SkipConditions = skipConditions4; reference147 = obj130; obj129.Steps = list195; reference146 = obj129; - ref QuestSequence reference148 = ref span94[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -42201,20 +50577,24 @@ public static class AssemblyQuestLoader num2 = 4; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span95 = CollectionsMarshal.AsSpan(list197); - span95[0] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131 }; - span95[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - span95[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist }; - span95[3] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { AethernetShortcut = new AethernetShortcut { @@ -42231,21 +50611,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list198; - num = 10; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span96 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference149 = ref span96[0]; + index = 10; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -42258,7 +50643,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list200; reference149 = obj132; - ref QuestSequence reference150 = ref span96[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -42266,30 +50652,36 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj133.Steps = list201; reference150 = obj133; - ref QuestSequence reference151 = ref span96[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span97 = CollectionsMarshal.AsSpan(list202); - span97[0] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) { TargetTerritoryId = (ushort)138 }; - span97[1] = new QuestStep(EInteractionType.Interact, 1013287u, new Vector3(-297.6883f, -41.69223f, 408.5603f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013287u, new Vector3(-297.6883f, -41.69223f, 408.5603f), 138); obj134.Steps = list202; reference151 = obj134; - ref QuestSequence reference152 = ref span96[3]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -42297,34 +50689,42 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list203)[0]; + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span98 = CollectionsMarshal.AsSpan(list204); - span98[0] = 4361u; - span98[1] = 4362u; + index3 = 2; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + span7 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span7[num3] = 4361u; + num3++; + span7[num3] = 4362u; obj136.KillEnemyDataIds = list204; reference153 = obj136; obj135.Steps = list203; reference152 = obj135; - ref QuestSequence reference154 = ref span96[4]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138); + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138); obj137.Steps = list205; reference154 = obj137; - ref QuestSequence reference155 = ref span96[5]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 5 @@ -42332,7 +50732,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list206)[0]; + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138) { Fly = true, @@ -42341,25 +50743,31 @@ public static class AssemblyQuestLoader num3 = 2; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span99 = CollectionsMarshal.AsSpan(list207); - span99[0] = 4361u; - span99[1] = 4362u; + span7 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span7[index3] = 4361u; + index3++; + span7[index3] = 4362u; obj139.KillEnemyDataIds = list207; reference156 = obj139; obj138.Steps = list206; reference155 = obj138; - ref QuestSequence reference157 = ref span96[6]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138); obj140.Steps = list208; reference157 = obj140; - ref QuestSequence reference158 = ref span96[7]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 7 @@ -42367,34 +50775,42 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list209)[0]; + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference159 = ref span3[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 1013338u, new Vector3(-253.25403f, -39.465584f, 661.21924f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span100 = CollectionsMarshal.AsSpan(list210); - span100[0] = 4402u; - span100[1] = 4403u; + index3 = 2; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span7 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span7[num3] = 4402u; + num3++; + span7[num3] = 4403u; obj142.KillEnemyDataIds = list210; reference159 = obj142; obj141.Steps = list209; reference158 = obj141; - ref QuestSequence reference160 = ref span96[8]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1013337u, new Vector3(-254.10852f, -39.315884f, 658.8082f), 138); + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013337u, new Vector3(-254.10852f, -39.315884f, 658.8082f), 138); obj143.Steps = list211; reference160 = obj143; - ref QuestSequence reference161 = ref span96[9]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -42402,7 +50818,9 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { NextQuestId = new QuestId(1677) }; @@ -42415,21 +50833,26 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "liza"; questRoot25.Author = list213; - num = 2; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span101 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference162 = ref span101[0]; + index = 2; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list215)[0]; + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference163 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1002282u, new Vector3(3.5552979f, 7.5999613f, 153.2157f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42447,14 +50870,17 @@ public static class AssemblyQuestLoader num3 = 1; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 131; + span8 = CollectionsMarshal.AsSpan(list216); + index3 = 0; + span8[index3] = 131; obj147.InTerritory = list216; skipConditions5.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions5; reference163 = obj146; obj145.Steps = list215; reference162 = obj145; - ref QuestSequence reference164 = ref span101[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -42462,12 +50888,16 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list217)[0]; + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + ref QuestStep reference165 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131); - num3 = 1; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + index3 = 1; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + span4 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSMIN011_00597_Q1_000_1") @@ -42484,21 +50914,26 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list219; - num = 9; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span102 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference166 = ref span102[0]; + index = 9; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -42511,7 +50946,8 @@ public static class AssemblyQuestLoader }; obj149.Steps = list221; reference166 = obj149; - ref QuestSequence reference167 = ref span102[1]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -42519,32 +50955,38 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span103 = CollectionsMarshal.AsSpan(list222); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - span103[1] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) { Fly = true }; obj150.Steps = list222; reference167 = obj150; - ref QuestSequence reference168 = ref span102[2]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) { Fly = true }; obj151.Steps = list223; reference168 = obj151; - ref QuestSequence reference169 = ref span102[3]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -42552,27 +50994,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Emote, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) { Emote = EEmote.Slap }; obj152.Steps = list224; reference169 = obj152; - ref QuestSequence reference170 = ref span102[4]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1013304u, new Vector3(347.37158f, 3.0454707f, -9.445435f), 139) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013304u, new Vector3(347.37158f, 3.0454707f, -9.445435f), 139) { Fly = true }; obj153.Steps = list225; reference170 = obj153; - ref QuestSequence reference171 = ref span102[5]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -42580,7 +51028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list226)[0]; + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference172 = ref span3[index2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139) { Fly = true, @@ -42589,25 +51039,31 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span104 = CollectionsMarshal.AsSpan(list227); - span104[0] = 4404u; - span104[1] = 4405u; + span7 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span7[index3] = 4404u; + index3++; + span7[index3] = 4405u; obj155.KillEnemyDataIds = list227; reference172 = obj155; obj154.Steps = list226; reference171 = obj154; - ref QuestSequence reference173 = ref span102[6]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139); obj156.Steps = list228; reference173 = obj156; - ref QuestSequence reference174 = ref span102[7]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 7 @@ -42615,23 +51071,28 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1013307u, new Vector3(281.69678f, 38.53493f, -176.74524f), 139); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013307u, new Vector3(281.69678f, 38.53493f, -176.74524f), 139); obj157.Steps = list229; reference174 = obj157; - ref QuestSequence reference175 = ref span102[8]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span105 = CollectionsMarshal.AsSpan(list230); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(601) }; @@ -42644,13 +51105,16 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list231); + index = 0; + span[index] = "liza"; questRoot27.Author = list231; - num = 2; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span106 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference176 = ref span106[0]; + index = 2; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + span2 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -42658,7 +51122,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list233)[0]; + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference177 = ref span3[index2]; QuestStep obj160 = new QuestStep(EInteractionType.AcceptQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42673,38 +51139,45 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 131; + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + span8 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span8[num3] = 131; obj161.InTerritory = list234; skipConditions6.AetheryteShortcutIf = obj161; obj160.SkipConditions = skipConditions6; reference177 = obj160; obj159.Steps = list233; reference176 = obj159; - ref QuestSequence reference178 = ref span106[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span107 = CollectionsMarshal.AsSpan(list235); - ref QuestStep reference179 = ref span107[0]; + index2 = 2; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference179 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 131); num3 = 1; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new GatheredItem + Span span9 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 5106u, ItemCount = 10 }; questStep21.ItemsToGather = list236; reference179 = questStep21; - ref QuestStep reference180 = ref span107[1]; + num2++; + ref QuestStep reference180 = ref span3[num2]; QuestStep obj163 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42716,12 +51189,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span108 = CollectionsMarshal.AsSpan(list237); - span108[0] = 130; - span108[1] = 131; + index3 = 2; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span8 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span8[num3] = 130; + num3++; + span8[num3] = 131; skipAetheryteCondition2.InTerritory = list237; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; obj163.SkipConditions = skipConditions7; @@ -42739,13 +51214,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -42753,7 +51231,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42771,35 +51251,42 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 131; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 131; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestStep reference4 = ref span2[0]; + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 131); - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheredItem + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + Span span5 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 5432u, ItemCount = 10 }; questStep.ItemsToGather = list6; reference4 = questStep; - ref QuestStep reference5 = ref span2[1]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42814,9 +51301,11 @@ public static class AssemblyQuestLoader num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = 130; - span3[1] = 131; + span4 = CollectionsMarshal.AsSpan(list7); + index3 = 0; + span4[index3] = 130; + index3++; + span4[index3] = 131; skipAetheryteCondition.InTerritory = list7; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj5.SkipConditions = skipConditions2; @@ -42830,13 +51319,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -42844,7 +51336,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -42857,26 +51351,30 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - span5[1] = new QuestStep(EInteractionType.Interact, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) { Fly = true }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -42884,21 +51382,26 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Emote, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) { Emote = EEmote.Slap }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[3]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { StopDistance = 1f, Fly = true, @@ -42906,7 +51409,8 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span4[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -42914,7 +51418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013312u, new Vector3(-118.88306f, -25.500666f, 42.374268f), 138) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013312u, new Vector3(-118.88306f, -25.500666f, 42.374268f), 138) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -42924,15 +51430,18 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span4[5]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013329u, new Vector3(-109.9718f, -24.72433f, 63.553833f), 138) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013329u, new Vector3(-109.9718f, -24.72433f, 63.553833f), 138) { NextQuestId = new QuestId(2900) }; @@ -42945,13 +51454,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "Cacahuetes"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span6 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span6[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -42959,23 +51471,30 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span6[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.CompleteQuest, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131); - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span6 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLD011_00608_A1_000_1") @@ -42991,13 +51510,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "liza"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span7 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span7[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -43005,19 +51527,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span8 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference17 = ref span8[0]; + index2 = 4; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-338.71124f, -37.497707f, 243.90338f), 145) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -43025,27 +51551,37 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 166u; + Span span7 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span7[index3] = 166u; obj16.KillEnemyDataIds = list25; reference17 = obj16; - ref QuestStep reference18 = ref span8[1]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1003943u, new Vector3(-335.1645f, -37.195824f, 242.20642f), 145) { StopDistance = 7f }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span8 = CollectionsMarshal.AsSpan(list26); + 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); obj17.CompletionQuestVariablesFlags = list26; reference18 = obj17; - ref QuestStep reference19 = ref span8[2]; + num2++; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1003944u, new Vector3(-335.71375f, -37.370598f, 245.31921f), 145) { StopDistance = 7f @@ -43053,35 +51589,49 @@ public static class AssemblyQuestLoader num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list27); + 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)2, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list27; reference19 = obj18; - ref QuestStep reference20 = ref span8[3]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1003942u, new Vector3(-341.81738f, -37.60504f, 243.42712f), 145) { StopDistance = 7f }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span11 = CollectionsMarshal.AsSpan(list28); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + span8 = CollectionsMarshal.AsSpan(list28); + 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)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference21 = ref span7[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -43089,13 +51639,16 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.46735f, -38.009487f, 159.38092f), 145); - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-379.3895f, -59.000004f, 147.99257f), 145) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.46735f, -38.009487f, 159.38092f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-379.3895f, -59.000004f, 147.99257f), 145) { DisableNavmesh = true }; - span12[2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj20.Steps = list29; reference21 = obj20; questRoot4.QuestSequence = list22; @@ -43105,24 +51658,30 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "liza"; questRoot5.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span13 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span13[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span13[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -43130,47 +51689,65 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference24 = ref span13[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span14 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference25 = ref span14[0]; + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1003967u, new Vector3(-392.87408f, -59f, 131.67004f), 145); num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span15 = CollectionsMarshal.AsSpan(list35); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list35); + 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)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list35; reference25 = questStep3; - ref QuestStep reference26 = ref span14[1]; + num2++; + ref QuestStep reference26 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003966u, new Vector3(-373.22046f, -56.798405f, 121.99585f), 145); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span8 = CollectionsMarshal.AsSpan(list36); + 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); questStep4.CompletionQuestVariablesFlags = list36; reference26 = questStep4; - ref QuestStep reference27 = ref span14[2]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1003965u, new Vector3(-373.89185f, -55.898407f, 97.795044f), 145) { StopDistance = 7f @@ -43178,18 +51755,25 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list37); + 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); obj24.CompletionQuestVariablesFlags = list37; reference27 = obj24; obj23.Steps = list34; reference24 = obj23; - ref QuestSequence reference28 = ref span13[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -43197,18 +51781,23 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span13[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj26.Steps = list39; reference29 = obj26; questRoot5.QuestSequence = list31; @@ -43218,13 +51807,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot6.Author = list40; - num = 7; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span18 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span18[0]; + index = 7; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -43232,21 +51824,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj27.Steps = list42; reference30 = obj27; - ref QuestSequence reference31 = ref span18[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span18[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -43254,24 +51852,30 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.UseItem, 2001657u, new Vector3(-541.16125f, -5.2644043f, 46.097534f), 145) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2001657u, new Vector3(-541.16125f, -5.2644043f, 46.097534f), 145) { ItemId = 2000517u }; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference33 = ref span18[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 2001658u, new Vector3(-541.1918f, -5.1728516f, 46.036377f), 145); + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001658u, new Vector3(-541.1918f, -5.1728516f, 46.036377f), 145); obj30.Steps = list45; reference33 = obj30; - ref QuestSequence reference34 = ref span18[4]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -43279,21 +51883,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); obj31.Steps = list46; reference34 = obj31; - ref QuestSequence reference35 = ref span18[5]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1003969u, new Vector3(-504.9363f, -16.22f, -3.7080078f), 145); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003969u, new Vector3(-504.9363f, -16.22f, -3.7080078f), 145); obj32.Steps = list47; reference35 = obj32; - ref QuestSequence reference36 = ref span18[6]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -43301,7 +51911,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj33.Steps = list48; reference36 = obj33; questRoot6.QuestSequence = list41; @@ -43311,24 +51923,30 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot7.Author = list49; - num = 4; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span19 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span19[0]; + index = 4; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference38 = ref span19[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -43336,36 +51954,44 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1003976u, new Vector3(-549.0349f, 4.824463f, -266.77356f), 145); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003976u, new Vector3(-549.0349f, 4.824463f, -266.77356f), 145); obj35.Steps = list52; reference38 = obj35; - ref QuestSequence reference39 = ref span19[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span20 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference40 = ref span20[0]; + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(-421.59717f, -0.48849356f, -278.41507f), 145) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span21 = CollectionsMarshal.AsSpan(list54); - span21[0] = 18u; - span21[1] = 19u; + index3 = 2; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span7 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span7[num3] = 18u; + num3++; + span7[num3] = 19u; obj37.KillEnemyDataIds = list54; reference40 = obj37; - span20[1] = new QuestStep(EInteractionType.Interact, 1003975u, new Vector3(-418.57025f, -0.17093202f, -280.38452f), 145); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003975u, new Vector3(-418.57025f, -0.17093202f, -280.38452f), 145); obj36.Steps = list53; reference39 = obj36; - ref QuestSequence reference41 = ref span19[3]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -43373,7 +51999,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -43386,24 +52014,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot8.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span22 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference42 = ref span22[0]; + index = 7; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj39.Steps = list58; reference42 = obj39; - ref QuestSequence reference43 = ref span22[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -43411,21 +52045,27 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); obj40.Steps = list59; reference43 = obj40; - ref QuestSequence reference44 = ref span22[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2001410u, new Vector3(-95.17059f, -27.023743f, 274.00623f), 145); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001410u, new Vector3(-95.17059f, -27.023743f, 274.00623f), 145); obj41.Steps = list60; reference44 = obj41; - ref QuestSequence reference45 = ref span22[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -43433,24 +52073,30 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); obj42.Steps = list61; reference45 = obj42; - ref QuestSequence reference46 = ref span22[4]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1004323u, new Vector3(-444.72424f, -55.558167f, 92.088135f), 145) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004323u, new Vector3(-444.72424f, -55.558167f, 92.088135f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj43.Steps = list62; reference46 = obj43; - ref QuestSequence reference47 = ref span22[5]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 5 @@ -43458,18 +52104,23 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1003978u, new Vector3(-442.6795f, -55.694504f, 90.92847f), 145); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003978u, new Vector3(-442.6795f, -55.694504f, 90.92847f), 145); obj44.Steps = list63; reference47 = obj44; - ref QuestSequence reference48 = ref span22[6]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj45.Steps = list64; reference48 = obj45; questRoot8.QuestSequence = list57; @@ -43479,13 +52130,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot9.Author = list65; - num = 2; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span23 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span23[0]; + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -43493,19 +52147,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj46.Steps = list67; reference49 = obj46; - ref QuestSequence reference50 = ref span23[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span24 = CollectionsMarshal.AsSpan(list68); - span24[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) { Aetheryte = EAetheryteLocation.WesternThanalanHorizon, AethernetShortcut = new AethernetShortcut @@ -43514,7 +52172,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfTheSultana } }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); obj47.Steps = list68; reference50 = obj47; questRoot9.QuestSequence = list66; @@ -43524,13 +52183,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot10.Author = list69; - num = 2; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span25 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference51 = ref span25[0]; + index = 2; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -43538,18 +52200,23 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj48.Steps = list71; reference51 = obj48; - ref QuestSequence reference52 = ref span25[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -43567,13 +52234,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; questRoot11.Author = list73; - num = 2; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span26 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference53 = ref span26[0]; + index = 2; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -43581,34 +52251,42 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); obj50.Steps = list75; reference53 = obj50; - ref QuestSequence reference54 = ref span26[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); obj51.Steps = list76; reference54 = obj51; questRoot11.QuestSequence = list74; AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(639); + QuestId questId12 = new QuestId(641); QuestRoot questRoot12 = new QuestRoot(); num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot12.Author = list77; - num = 2; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span27 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span27[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -43616,130 +52294,28 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) - { - AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); obj52.Steps = list79; reference55 = obj52; - ref QuestSequence reference56 = ref span27[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) - { - NextQuestId = new QuestId(640) - }; - obj53.Steps = list80; - reference56 = obj53; - questRoot12.QuestSequence = list78; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(640); - QuestRoot questRoot13 = new QuestRoot(); - num = 1; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "WigglyMuffin"; - questRoot13.Author = list81; - num = 3; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span28 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference57 = ref span28[0]; - QuestSequence obj54 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141) - { - AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj54.Steps = list83; - reference57 = obj54; - ref QuestSequence reference58 = ref span28[1]; - QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, null, 141) - { - Comment = "Meld materia before Mutamix" - }; - obj55.Steps = list84; - reference58 = obj55; - ref QuestSequence reference59 = ref span28[2]; - QuestSequence obj56 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); - obj56.Steps = list85; - reference59 = obj56; - questRoot13.QuestSequence = list82; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(641); - QuestRoot questRoot14 = new QuestRoot(); - num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; - questRoot14.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span29 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference60 = ref span29[0]; - QuestSequence obj57 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); - obj57.Steps = list88; - reference60 = obj57; - ref QuestSequence reference61 = ref span29[1]; - QuestSequence obj58 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span30 = CollectionsMarshal.AsSpan(list89); - span30[0] = new QuestStep(EInteractionType.Interact, 2001695u, new Vector3(0.0305846f, 0.92887f, 10.15652f), 210) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001695u, new Vector3(0.0305846f, 0.92887f, 10.15652f), 210) { TargetTerritoryId = (ushort)131 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -43747,17 +52323,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj58.Steps = list89; - reference61 = obj58; - ref QuestSequence reference62 = ref span29[2]; - QuestSequence obj59 = new QuestSequence + obj53.Steps = list80; + reference56 = obj53; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AethernetShortcut = new AethernetShortcut { @@ -43765,17 +52344,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - obj59.Steps = list90; - reference62 = obj59; - ref QuestSequence reference63 = ref span29[3]; - QuestSequence obj60 = new QuestSequence + obj54.Steps = list81; + reference57 = obj54; + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -43783,10 +52365,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj60.Steps = list91; - reference63 = obj60; - questRoot14.QuestSequence = list87; - AddQuest(questId14, questRoot14); + obj55.Steps = list82; + reference58 = obj55; + questRoot12.QuestSequence = list78; + AddQuest(questId12, questRoot12); } private static void LoadQuests13() @@ -43796,13 +52378,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -43810,21 +52395,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -43832,8 +52423,9 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003732u, new Vector3(63.645386f, 45.14341f, -193.59125f), 140) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003732u, new Vector3(63.645386f, 45.14341f, -193.59125f), 140) { AethernetShortcut = new AethernetShortcut { @@ -43842,22 +52434,27 @@ public static class AssemblyQuestLoader }, TaxiStandId = (byte)11 }; - span2[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) { Aetheryte = EAetheryteLocation.WesternThanalanHorizon }; - span2[2] = new QuestStep(EInteractionType.Interact, 1002285u, new Vector3(326.46667f, 63f, -231.64728f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002285u, new Vector3(326.46667f, 63f, -231.64728f), 140); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Duty, null, null, 140) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 140) { DutyOptions = new DutyOptions { @@ -43867,7 +52464,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -43875,7 +52473,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -43890,19 +52490,23 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - span[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference6 = ref span[6]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -43912,13 +52516,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "UcanPatates"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -43926,7 +52533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -43942,24 +52551,28 @@ public static class AssemblyQuestLoader List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = 129; - span4[1] = 128; + int num4 = 0; + span4[num4] = 129; + num4++; + span4[num4] = 128; skipAetheryteCondition.InTerritory = list12; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span5[0]; + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.29642f, 44.499924f, 184.26752f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -43971,24 +52584,29 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 135; + num4 = 1; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + span4 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span4[num3] = 135; skipStepConditions.InTerritory = list14; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 2; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = 129; - span6[1] = 128; + span4 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span4[num4] = 129; + num4++; + span4[num4] = 128; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj10.SkipConditions = skipConditions2; reference10 = obj10; - ref QuestStep reference11 = ref span5[1]; + num2++; + ref QuestStep reference11 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(21.738638f, 61.836372f, 139.60422f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -43999,25 +52617,33 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - ref ComplexCombatData reference12 = ref CollectionsMarshal.AsSpan(list16)[0]; + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + ref ComplexCombatData reference12 = ref span5[num3]; ComplexCombatData obj12 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 5u }; - int num4 = 6; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + int num5 = 6; + List list17 = new List(num5); + CollectionsMarshal.SetCount(list17, num5); + Span span6 = CollectionsMarshal.AsSpan(list17); + int num6 = 0; + span6[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; obj12.CompletionQuestVariablesFlags = list17; reference12 = obj12; obj11.ComplexCombatData = list16; @@ -44026,25 +52652,34 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 135; + span4 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span4[num4] = 135; skipAetheryteCondition3.InTerritory = list18; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj11.SkipConditions = skipConditions3; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num4 = 6; + List list19 = new List(num4); + CollectionsMarshal.SetCount(list19, num4); + span6 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span6[num3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj11.CompletionQuestVariablesFlags = list19; reference11 = obj11; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference13 = ref span3[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -44052,20 +52687,24 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference14 = ref span9[0]; + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.00804f, 75.84114f, 116.815384f), 135); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = 135; + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = 135; skipStepConditions2.NotInTerritory = list21; skipConditions4.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions4; reference14 = questStep; - ref QuestStep reference15 = ref span9[1]; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -44077,12 +52716,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = 129; - span10[1] = 128; + num4 = 2; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = 129; + num3++; + span4[num3] = 128; skipAetheryteCondition4.InTerritory = list22; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; obj14.SkipConditions = skipConditions5; @@ -44096,24 +52737,30 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "liza"; questRoot3.Author = list23; - num = 3; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span11 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference16 = ref span11[0]; + index = 3; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj15.Steps = list25; reference16 = obj15; - ref QuestSequence reference17 = ref span11[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -44121,78 +52768,109 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span12 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference18 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1004601u, new Vector3(-62.424683f, 4.642519f, 261.28015f), 141); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list27); + 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); questStep2.CompletionQuestVariablesFlags = list27; reference18 = questStep2; - ref QuestStep reference19 = ref span12[1]; + index2++; + ref QuestStep reference19 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004600u, new Vector3(125.993774f, 14.462202f, 278.43127f), 141); - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span14 = CollectionsMarshal.AsSpan(list28); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span6 = CollectionsMarshal.AsSpan(list28); + 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); questStep3.CompletionQuestVariablesFlags = list28; reference19 = questStep3; - ref QuestStep reference20 = ref span12[2]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(117.63772f, 1.6851518f, 296.93826f), 141); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span15 = CollectionsMarshal.AsSpan(list29); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list29); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list29; skipConditions6.StepIf = skipStepConditions3; questStep4.SkipConditions = skipConditions6; reference20 = questStep4; - ref QuestStep reference21 = ref span12[3]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1004599u, new Vector3(89.86035f, 4.6361504f, 425.40625f), 141); - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span16 = CollectionsMarshal.AsSpan(list30); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span6 = CollectionsMarshal.AsSpan(list30); + 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); questStep5.CompletionQuestVariablesFlags = list30; reference21 = questStep5; obj16.Steps = list26; reference17 = obj16; - ref QuestSequence reference22 = ref span11[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj17.Steps = list31; reference22 = obj17; questRoot3.QuestSequence = list24; @@ -44202,13 +52880,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "liza"; questRoot4.Author = list32; - num = 2; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span17 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference23 = ref span17[0]; + index = 2; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span2 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -44216,21 +52897,26 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002829u, new Vector3(-157.03064f, 4.0492578f, -2.7314453f), 133) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002829u, new Vector3(-157.03064f, 4.0492578f, -2.7314453f), 133) { StopDistance = 5f }; obj18.Steps = list34; reference23 = obj18; - ref QuestSequence reference24 = ref span17[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -44248,13 +52934,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot5.Author = list36; - num = 2; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span18 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span18[0]; + index = 2; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -44262,23 +52951,28 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj20.Steps = list38; reference25 = obj20; - ref QuestSequence reference26 = ref span18[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 13; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2 = 13; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist }; - span19[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(5.7796226f, 30f, -21.571625f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(5.7796226f, 30f, -21.571625f), 131) { AethernetShortcut = new AethernetShortcut { @@ -44291,47 +52985,58 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - span19[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span19[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span19[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span19[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span19[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span19[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.335236f, 4f, -110.905876f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.335236f, 4f, -110.905876f), 131) { TargetTerritoryId = (ushort)130 }; - span19[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span19[9] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span19[10] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span19[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - span19[12] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -44349,13 +53054,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot6.Author = list40; - num = 2; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span20 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference27 = ref span20[0]; + index = 2; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -44363,19 +53071,23 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj22.Steps = list42; reference27 = obj22; - ref QuestSequence reference28 = ref span20[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span21 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference29 = ref span21[0]; + index2 = 3; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference29 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)128 @@ -44383,7 +53095,9 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -44391,15 +53105,18 @@ public static class AssemblyQuestLoader }; obj24.DialogueChoices = list44; reference29 = obj24; - ref QuestStep reference30 = ref span21[1]; + num2++; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { TargetTerritoryId = (ushort)132 }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice + num4 = 1; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + span7 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -44407,7 +53124,8 @@ public static class AssemblyQuestLoader }; obj25.DialogueChoices = list45; reference30 = obj25; - span21[2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj23.Steps = list43; reference28 = obj23; questRoot6.QuestSequence = list41; @@ -44417,13 +53135,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot7.Author = list46; - num = 4; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span22 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference31 = ref span22[0]; + index = 4; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -44431,19 +53152,23 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj26.Steps = list48; reference31 = obj26; - ref QuestSequence reference32 = ref span22[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span23 = CollectionsMarshal.AsSpan(list49); - span23[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -44452,14 +53177,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - span23[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) { TaxiStandId = (byte)9 }; - span23[2] = new QuestStep(EInteractionType.Interact, 1004612u, new Vector3(-114.94629f, -39.702168f, 335.46948f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004612u, new Vector3(-114.94629f, -39.702168f, 335.46948f), 148); obj27.Steps = list49; reference32 = obj27; - ref QuestSequence reference33 = ref span22[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -44467,7 +53195,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Duty, null, null, 148) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 148) { DutyOptions = new DutyOptions { @@ -44477,15 +53207,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list50; reference33 = obj28; - ref QuestSequence reference34 = ref span22[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -44498,13 +53231,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot8.Author = list52; - num = 2; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span24 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference35 = ref span24[0]; + index = 2; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -44512,18 +53248,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj30.Steps = list54; reference35 = obj30; - ref QuestSequence reference36 = ref span24[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -44541,13 +53282,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot9.Author = list56; - num = 4; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span25 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference37 = ref span25[0]; + index = 4; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -44555,12 +53299,16 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list58)[0]; + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1004884u, new Vector3(38.895264f, 1.2000012f, 3.463745f), 212); num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST302_00680_Q1_000_1") @@ -44569,23 +53317,28 @@ public static class AssemblyQuestLoader reference38 = questStep6; obj32.Steps = list58; reference37 = obj32; - ref QuestSequence reference39 = ref span25[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list60)[0]; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + num4 = 1; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + span7 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST302_00680_Q2_000_1"), @@ -44595,7 +53348,8 @@ public static class AssemblyQuestLoader reference40 = obj34; obj33.Steps = list60; reference39 = obj33; - ref QuestSequence reference41 = ref span25[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -44603,8 +53357,9 @@ public static class AssemblyQuestLoader num2 = 3; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span26 = CollectionsMarshal.AsSpan(list62); - span26[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -44620,7 +53375,8 @@ public static class AssemblyQuestLoader } } }; - span26[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -44631,7 +53387,8 @@ public static class AssemblyQuestLoader } } }; - span26[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004886u, new Vector3(30.319702f, 8.422709f, 475.30322f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004886u, new Vector3(30.319702f, 8.422709f, 475.30322f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -44648,15 +53405,18 @@ public static class AssemblyQuestLoader }; obj35.Steps = list62; reference41 = obj35; - ref QuestSequence reference42 = ref span25[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -44669,13 +53429,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot10.Author = list64; - num = 4; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span27 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference43 = ref span27[0]; + index = 4; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -44683,12 +53446,16 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list66)[0]; + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1004885u, new Vector3(36.453735f, 1.2000011f, 4.6845093f), 212); num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA302_00681_Q1_000_1") @@ -44697,15 +53464,18 @@ public static class AssemblyQuestLoader reference44 = questStep7; obj37.Steps = list66; reference43 = obj37; - ref QuestSequence reference45 = ref span27[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list68)[0]; + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f, @@ -44716,10 +53486,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new DialogueChoice + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span7 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANSEA302_00681_Q2_000_1"), @@ -44729,7 +53501,8 @@ public static class AssemblyQuestLoader reference46 = obj39; obj38.Steps = list68; reference45 = obj38; - ref QuestSequence reference47 = ref span27[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -44737,7 +53510,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004888u, new Vector3(389.2423f, 78.360275f, -349.05017f), 135) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004888u, new Vector3(389.2423f, 78.360275f, -349.05017f), 135) { AethernetShortcut = new AethernetShortcut { @@ -44751,15 +53526,18 @@ public static class AssemblyQuestLoader }; obj40.Steps = list70; reference47 = obj40; - ref QuestSequence reference48 = ref span27[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -44778,13 +53556,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list72; - num = 4; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span28 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference49 = ref span28[0]; + index = 4; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -44792,12 +53573,16 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list74)[0]; + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1004883u, new Vector3(37.88806f, 1.2000012f, 4.135132f), 212); num3 = 1; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list75); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL302_00682_Q1_000_1") @@ -44806,23 +53591,28 @@ public static class AssemblyQuestLoader reference50 = questStep8; obj42.Steps = list74; reference49 = obj42; - ref QuestSequence reference51 = ref span28[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list76)[0]; + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + span7 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANWIL302_00682_Q2_000_1"), @@ -44832,7 +53622,8 @@ public static class AssemblyQuestLoader reference52 = obj44; obj43.Steps = list76; reference51 = obj43; - ref QuestSequence reference53 = ref span28[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -44840,7 +53631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004887u, new Vector3(160.7843f, 54.85158f, -45.609253f), 140) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004887u, new Vector3(160.7843f, 54.85158f, -45.609253f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -44850,15 +53643,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list78; reference53 = obj45; - ref QuestSequence reference54 = ref span28[3]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -44871,13 +53667,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot12.Author = list80; - num = 2; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span29 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference55 = ref span29[0]; + index = 2; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -44885,29 +53684,36 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132); obj47.Steps = list82; reference55 = obj47; - ref QuestSequence reference56 = ref span29[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span30 = CollectionsMarshal.AsSpan(list83); - span30[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span30[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span30[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj48.Steps = list83; reference56 = obj48; questRoot12.QuestSequence = list81; @@ -44917,13 +53723,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "liza"; questRoot13.Author = list84; - num = 2; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span31 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference57 = ref span31[0]; + index = 2; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -44931,32 +53740,39 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f }; obj49.Steps = list86; reference57 = obj49; - ref QuestSequence reference58 = ref span31[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span32 = CollectionsMarshal.AsSpan(list87); - span32[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span32[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span32[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj50.Steps = list87; reference58 = obj50; questRoot13.QuestSequence = list85; @@ -44966,13 +53782,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list88; - num = 2; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span33 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference59 = ref span33[0]; + index = 2; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -44980,7 +53799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -44993,26 +53814,31 @@ public static class AssemblyQuestLoader }; obj51.Steps = list90; reference59 = obj51; - ref QuestSequence reference60 = ref span33[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span34 = CollectionsMarshal.AsSpan(list91); - span34[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span34[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj52.Steps = list91; reference60 = obj52; questRoot14.QuestSequence = list89; @@ -45022,13 +53848,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "liza"; questRoot15.Author = list92; - num = 2; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span35 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference61 = ref span35[0]; + index = 2; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -45036,18 +53865,23 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj53.Steps = list94; reference61 = obj53; - ref QuestSequence reference62 = ref span35[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -45065,13 +53899,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot16.Author = list96; - num = 4; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span36 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference63 = ref span36[0]; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -45079,21 +53916,26 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; obj55.Steps = list98; reference63 = obj55; - ref QuestSequence reference64 = ref span36[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AethernetShortcut = new AethernetShortcut { @@ -45103,7 +53945,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list99; reference64 = obj56; - ref QuestSequence reference65 = ref span36[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -45111,8 +53954,9 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span37 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference66 = ref span37[0]; + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + ref QuestStep reference66 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -45120,7 +53964,9 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -45128,27 +53974,32 @@ public static class AssemblyQuestLoader }; obj58.DialogueChoices = list101; reference66 = obj58; - span37[1] = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); obj57.Steps = list100; reference65 = obj57; - ref QuestSequence reference67 = ref span36[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span38 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference68 = ref span38[0]; + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span7 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -45156,232 +54007,117 @@ public static class AssemblyQuestLoader }; obj60.DialogueChoices = list103; reference68 = obj60; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj59.Steps = list102; reference67 = obj59; questRoot16.QuestSequence = list97; AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(693); + QuestId questId17 = new QuestId(697); QuestRoot questRoot17 = new QuestRoot(); num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "JerryWester, Friendly"; questRoot17.Author = list104; - num = 4; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span39 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference69 = ref span39[0]; + index = 3; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; + num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000970u, new Vector3(-12.375122f, 40.00016f, -12.161499f), 128) - { - AetheryteShortcut = EAetheryteLocation.Limsa, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Limsa, - To = EAetheryteLocation.LimsaAftcastle - } - }; - obj61.Steps = list106; - reference69 = obj61; - ref QuestSequence reference70 = ref span39[1]; - QuestSequence obj62 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1001788u, new Vector3(669.1843f, 9.198655f, 512.9929f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch - }; - obj62.Steps = list107; - reference70 = obj62; - ref QuestSequence reference71 = ref span39[2]; - QuestSequence obj63 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span40 = CollectionsMarshal.AsSpan(list108); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(621.8044f, 8.93761f, 478.7172f), 138); - ref QuestStep reference72 = ref span40[1]; - QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(621.8044f, 8.93761f, 478.7172f), 138) - { - EnemySpawnType = EEnemySpawnType.OverworldEnemies - }; - num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 325u; - obj64.KillEnemyDataIds = list109; - obj64.CombatDelaySecondsAtStart = 1f; - reference72 = obj64; - obj63.Steps = list108; - reference71 = obj63; - ref QuestSequence reference73 = ref span39[3]; - QuestSequence obj65 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001788u, new Vector3(669.1843f, 9.198655f, 512.9929f), 138); - obj65.Steps = list110; - reference73 = obj65; - questRoot17.QuestSequence = list105; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(696); - QuestRoot questRoot18 = new QuestRoot(); - num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "Wigglez"; - questRoot18.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span41 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference74 = ref span41[0]; - QuestSequence obj66 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004344u, new Vector3(450.2173f, 17.748493f, 470.29822f), 137) - { - StopDistance = 5f, - AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol - }; - obj66.Steps = list113; - reference74 = obj66; - ref QuestSequence reference75 = ref span41[1]; - QuestSequence obj67 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(514.8553f, 9.702245f, 376.2111f), 137); - obj67.Steps = list114; - reference75 = obj67; - ref QuestSequence reference76 = ref span41[2]; - QuestSequence obj68 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004344u, new Vector3(450.2173f, 17.748493f, 470.29822f), 137) - { - StopDistance = 5f - }; - obj68.Steps = list115; - reference76 = obj68; - questRoot18.QuestSequence = list112; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(697); - QuestRoot questRoot19 = new QuestRoot(); - num = 1; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "JerryWester, Friendly"; - questRoot19.Author = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span42 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference77 = ref span42[0]; - QuestSequence obj69 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span43 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference78 = ref span43[0]; - QuestStep obj70 = new QuestStep(EInteractionType.UseItem, null, null, 128) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; + QuestStep obj62 = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 140; - skipStepConditions4.InTerritory = list119; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + span4 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span4[num4] = 140; + skipStepConditions4.InTerritory = list107; skipConditions7.StepIf = skipStepConditions4; - obj70.SkipConditions = skipConditions7; - reference78 = obj70; - span43[1] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); - obj69.Steps = list118; - reference77 = obj69; - ref QuestSequence reference79 = ref span42[1]; - QuestSequence obj71 = new QuestSequence + obj62.SkipConditions = skipConditions7; + reference70 = obj62; + index2++; + span3[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 span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.697464f, 44.999996f, -253.78111f), 140); - obj71.Steps = list120; - reference79 = obj71; - ref QuestSequence reference80 = ref span42[2]; - QuestSequence obj72 = new QuestSequence + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span44 = CollectionsMarshal.AsSpan(list121); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.08105f, -25.560223f, 378.66812f), 145) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.08105f, -25.560223f, 378.66812f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1004582u, new Vector3(-331.13605f, -22.476562f, 434.86682f), 145); - obj72.Steps = list121; - reference80 = obj72; - questRoot19.QuestSequence = list117; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(698); - QuestRoot questRoot20 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004582u, new Vector3(-331.13605f, -22.476562f, 434.86682f), 145); + obj64.Steps = list109; + reference72 = obj64; + questRoot17.QuestSequence = list105; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(698); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "plogon_enjoyer"; - questRoot20.Author = list122; - num = 5; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span45 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference81 = ref span45[0]; - QuestSequence obj73 = new QuestSequence + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot18.Author = list110; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -45392,157 +54128,110 @@ public static class AssemblyQuestLoader } } }; - obj73.Steps = list124; - reference81 = obj73; - ref QuestSequence reference82 = ref span45[1]; - QuestSequence obj74 = new QuestSequence + obj65.Steps = list112; + reference73 = obj65; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span46 = CollectionsMarshal.AsSpan(list125); - span46[0] = new QuestStep(EInteractionType.Action, 2001798u, new Vector3(-107.9017f, 4.989685f, -105.4603f), 130) + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2001798u, new Vector3(-107.9017f, 4.989685f, -105.4603f), 130) { Action = EAction.Bootshine }; - span46[1] = new QuestStep(EInteractionType.Action, 2001799u, new Vector3(-105.6365f, 4.9655f, -107.5618f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001799u, new Vector3(-105.6365f, 4.9655f, -107.5618f), 130) { Action = EAction.Bootshine }; - span46[2] = new QuestStep(EInteractionType.Action, 2001800u, new Vector3(-77.62268f, 5.0201416f, -128.893f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001800u, new Vector3(-77.62268f, 5.0201416f, -128.893f), 130) { Action = EAction.Bootshine }; - span46[3] = new QuestStep(EInteractionType.Action, 2001801u, new Vector3(-74.60144f, 4.8981323f, -130.69354f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001801u, new Vector3(-74.60144f, 4.8981323f, -130.69354f), 130) { Action = EAction.Bootshine }; - span46[4] = new QuestStep(EInteractionType.Action, 2001802u, new Vector3(-71.42755f, 5.0201416f, -132.34149f), 130) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2001802u, new Vector3(-71.42755f, 5.0201416f, -132.34149f), 130) { Action = EAction.Bootshine }; - obj74.Steps = list125; - reference82 = obj74; - ref QuestSequence reference83 = ref span45[2]; - QuestSequence obj75 = new QuestSequence + obj66.Steps = list113; + reference74 = obj66; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); - obj75.Steps = list126; - reference83 = obj75; - ref QuestSequence reference84 = ref span45[3]; - QuestSequence obj76 = new QuestSequence + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list127)[0]; - QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference77 = ref span3[index2]; + QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 771u; - obj77.KillEnemyDataIds = list128; - obj77.CombatDelaySecondsAtStart = 0f; - reference85 = obj77; - obj76.Steps = list127; - reference84 = obj76; - ref QuestSequence reference86 = ref span45[4]; - QuestSequence obj78 = new QuestSequence + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span8 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span8[num3] = 771u; + obj69.KillEnemyDataIds = list116; + obj69.CombatDelaySecondsAtStart = 0f; + reference77 = obj69; + obj68.Steps = list115; + reference76 = obj68; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span47 = CollectionsMarshal.AsSpan(list129); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 2; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(558) }; - obj78.Steps = list129; - reference86 = obj78; - questRoot20.QuestSequence = list123; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(699); - QuestRoot questRoot21 = new QuestRoot(); - num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "WigglyMuffin"; - questRoot21.Author = list130; - num = 2; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span48 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference87 = ref span48[0]; - QuestSequence obj79 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) - { - AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj79.Steps = list132; - reference87 = obj79; - ref QuestSequence reference88 = ref span48[1]; - QuestSequence obj80 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span49 = CollectionsMarshal.AsSpan(list133); - span49[0] = new QuestStep(EInteractionType.PurchaseItem, 1004038u, new Vector3(-466.42255f, 23.47034f, -379.87335f), 140) - { - Comment = "Buy Orange Juice", - ItemId = 4745u, - ItemCount = 1, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - }, - PurchaseMenu = new PurchaseMenu - { - ExcelSheet = "GilShop", - Key = new ExcelRef(262807u) - } - }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); - obj80.Steps = list133; - reference88 = obj80; - questRoot21.QuestSequence = list131; - AddQuest(questId21, questRoot21); + obj70.Steps = list117; + reference78 = obj70; + questRoot18.QuestSequence = list111; + AddQuest(questId18, questRoot18); } private static void LoadQuests14() @@ -45552,13 +54241,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -45566,39 +54258,32 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Interact, 1002393u, new Vector3(-67.94849f, -0.5009766f, -10.818665f), 132) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Instruction, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) { - StopDistance = 3f, - Comment = "Buy Serpent Chocobo Issuance", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Never = true - } - }, - GCPurchase = new GCPurchaseInfo - { - ItemId = 6018u, - CategoryTab = 1 - } + Comment = "Buy Serpent Chocobo Issuance" }; - span2[1] = new QuestStep(EInteractionType.Interact, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -45606,21 +54291,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006001u, new Vector3(35.38562f, -0.89902794f, 67.551636f), 132) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006001u, new Vector3(35.38562f, -0.89902794f, 67.551636f), 132) { StopDistance = 7f }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -45630,13 +54320,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 4; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -45644,7 +54337,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -45655,34 +54350,23 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.22066f, 40.275368f, 76.687836f), 128); - span4[1] = new QuestStep(EInteractionType.Interact, 1002387u, new Vector3(95.750244f, 40.250286f, 76.67651f), 128) + index2 = 3; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Instruction, 1002387u, new Vector3(95.750244f, 40.250286f, 76.67651f), 128) { - StopDistance = 3f, - Comment = "Buy Storm Chocobo Issuance", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Never = true - } - }, - GCPurchase = new GCPurchaseInfo - { - ItemId = 6017u, - CategoryTab = 1 - } + Comment = "Buy Storm Chocobo Issuance" }; - ref QuestStep reference7 = ref span4[2]; + num2++; + ref QuestStep reference7 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -45690,7 +54374,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list11); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -45698,10 +54384,12 @@ public static class AssemblyQuestLoader }; obj7.DialogueChoices = list11; reference7 = obj7; - span4[3] = new QuestStep(EInteractionType.Interact, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span3[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -45709,21 +54397,26 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1006002u, new Vector3(49.576538f, 20f, -5.722229f), 129) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006002u, new Vector3(49.576538f, 20f, -5.722229f), 129) { StopDistance = 7f }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[3]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list8; @@ -45733,13 +54426,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "liza"; questRoot3.Author = list14; - num = 4; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span5[0]; + index = 4; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -45747,44 +54443,37 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = new QuestStep(EInteractionType.Interact, 1002390u, new Vector3(-143.45007f, 4.5499268f, -108.537415f), 130) + index2 = 2; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Instruction, 1002390u, new Vector3(-143.45007f, 4.5499268f, -108.537415f), 130) { - StopDistance = 3f, - Comment = "Buy Flame Chocobo Issuance", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Never = true - } - }, - GCPurchase = new GCPurchaseInfo - { - ItemId = 6019u, - CategoryTab = 1 - } + Comment = "Buy Flame Chocobo Issuance" }; - span7[1] = new QuestStep(EInteractionType.Interact, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -45792,18 +54481,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1006003u, new Vector3(51.621216f, 4f, -142.22937f), 130); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006003u, new Vector3(51.621216f, 4f, -142.22937f), 130); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list15; @@ -45813,13 +54507,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot4.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span8[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -45827,27 +54524,34 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span8[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span9[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span8[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -45855,7 +54559,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -45874,21 +54580,26 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span10 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span10[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -45902,7 +54613,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span10[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -45910,60 +54622,84 @@ public static class AssemblyQuestLoader num2 = 3; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span11 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference19 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference19 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000615u, new Vector3(-246.44855f, 3.5452707f, 279.92664f), 152); - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list29; reference19 = questStep; - ref QuestStep reference20 = ref span11[1]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000557u, new Vector3(-206.0426f, 2.663525f, 303.94446f), 152); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list30; reference20 = questStep2; - ref QuestStep reference21 = ref span11[2]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1000553u, new Vector3(-187.48767f, 4.4436555f, 292.50012f), 152); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list31; reference21 = questStep3; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference22 = ref span10[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152); obj19.Steps = list32; reference22 = obj19; questRoot5.QuestSequence = list26; @@ -45973,13 +54709,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list33; - num = 4; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span15 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span15[0]; + index = 4; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -45987,7 +54726,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46000,18 +54741,22 @@ public static class AssemblyQuestLoader }; obj20.Steps = list35; reference23 = obj20; - ref QuestSequence reference24 = ref span15[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1000766u, new Vector3(-485.70996f, 9.170645f, 177.203f), 152); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000766u, new Vector3(-485.70996f, 9.170645f, 177.203f), 152); obj21.Steps = list36; reference24 = obj21; - ref QuestSequence reference25 = ref span15[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -46019,7 +54764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + ref QuestStep reference26 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2001902u, new Vector3(-386.6789f, -0.015319824f, 192.46204f), 152) { ItemId = 2000571u, @@ -46028,20 +54775,25 @@ public static class AssemblyQuestLoader num3 = 1; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 33u; + Span span6 = CollectionsMarshal.AsSpan(list38); + index3 = 0; + span6[index3] = 33u; obj23.KillEnemyDataIds = list38; reference26 = obj23; obj22.Steps = list37; reference25 = obj22; - ref QuestSequence reference27 = ref span15[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; @@ -46054,13 +54806,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "croizat"; questRoot7.Author = list40; - num = 5; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span16 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference28 = ref span16[0]; + index = 5; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -46068,21 +54823,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); obj25.Steps = list42; reference28 = obj25; - ref QuestSequence reference29 = ref span16[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); obj26.Steps = list43; reference29 = obj26; - ref QuestSequence reference30 = ref span16[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 @@ -46090,15 +54851,19 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list44)[0]; + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-171.7635f, 0.59028566f, 153.80334f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new ComplexCombatData + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span7 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 38u, MinimumKillCount = 6u @@ -46107,18 +54872,22 @@ public static class AssemblyQuestLoader reference31 = obj28; obj27.Steps = list44; reference30 = obj27; - ref QuestSequence reference32 = ref span16[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); obj29.Steps = list46; reference32 = obj29; - ref QuestSequence reference33 = ref span16[4]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -46126,7 +54895,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); obj30.Steps = list47; reference33 = obj30; questRoot7.QuestSequence = list41; @@ -46136,24 +54907,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "croizat"; questRoot8.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span17 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference34 = ref span17[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); obj31.Steps = list50; reference34 = obj31; - ref QuestSequence reference35 = ref span17[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -46161,30 +54938,36 @@ public static class AssemblyQuestLoader num2 = 3; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span18 = CollectionsMarshal.AsSpan(list51); - span18[0] = new QuestStep(EInteractionType.UseItem, 2000720u, new Vector3(-209.09442f, -4.654114f, 195.78845f), 152) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2000720u, new Vector3(-209.09442f, -4.654114f, 195.78845f), 152) { ItemId = 2000572u }; - span18[1] = new QuestStep(EInteractionType.UseItem, 2000721u, new Vector3(-146.04419f, -5.2644043f, 199.23706f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2000721u, new Vector3(-146.04419f, -5.2644043f, 199.23706f), 152) { ItemId = 2000572u }; - span18[2] = new QuestStep(EInteractionType.UseItem, 2000722u, new Vector3(-173.32727f, 2.1820068f, 137.68213f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2000722u, new Vector3(-173.32727f, 2.1820068f, 137.68213f), 152) { ItemId = 2000572u }; obj32.Steps = list51; reference35 = obj32; - ref QuestSequence reference36 = ref span17[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); obj33.Steps = list52; reference36 = obj33; questRoot8.QuestSequence = list49; @@ -46194,13 +54977,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list53; - num = 5; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span19 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference37 = ref span19[0]; + index = 5; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -46208,7 +54994,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46221,18 +55009,22 @@ public static class AssemblyQuestLoader }; obj34.Steps = list55; reference37 = obj34; - ref QuestSequence reference38 = ref span19[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152); obj35.Steps = list56; reference38 = obj35; - ref QuestSequence reference39 = ref span19[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -46240,25 +55032,31 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj36.Steps = list57; reference39 = obj36; - ref QuestSequence reference40 = ref span19[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Emote, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { DelaySecondsAtStart = 1f, Emote = EEmote.Dance }; obj37.Steps = list58; reference40 = obj37; - ref QuestSequence reference41 = ref span19[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -46266,7 +55064,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj38.Steps = list59; reference41 = obj38; questRoot9.QuestSequence = list54; @@ -46276,24 +55076,30 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "croizat"; questRoot10.Author = list60; - num = 4; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span20 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span20[0]; + index = 4; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); obj39.Steps = list62; reference42 = obj39; - ref QuestSequence reference43 = ref span20[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -46301,28 +55107,37 @@ public static class AssemblyQuestLoader num2 = 5; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span21 = CollectionsMarshal.AsSpan(list63); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.26903f, 11.990254f, 283.21274f), 152); - span21[1] = new QuestStep(EInteractionType.Interact, 2001911u, new Vector3(-245.65503f, 11.001709f, 280.8728f), 152); - span21[2] = new QuestStep(EInteractionType.Interact, 2001912u, new Vector3(-237.995f, 16.006714f, 289.96716f), 152); - span21[3] = new QuestStep(EInteractionType.Interact, 2001909u, new Vector3(-221.36267f, 16.006714f, 291.12683f), 152); - span21[4] = new QuestStep(EInteractionType.Interact, 2001910u, new Vector3(-230.30444f, 7.1869507f, 272.29712f), 152); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.26903f, 11.990254f, 283.21274f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001911u, new Vector3(-245.65503f, 11.001709f, 280.8728f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001912u, new Vector3(-237.995f, 16.006714f, 289.96716f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001909u, new Vector3(-221.36267f, 16.006714f, 291.12683f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001910u, new Vector3(-230.30444f, 7.1869507f, 272.29712f), 152); obj40.Steps = list63; reference43 = obj40; - ref QuestSequence reference44 = ref span20[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span22 = CollectionsMarshal.AsSpan(list64); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-224.41977f, 0.99999976f, 271.15808f), 152); - span22[1] = new QuestStep(EInteractionType.Interact, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-224.41977f, 0.99999976f, 271.15808f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); obj41.Steps = list64; reference44 = obj41; - ref QuestSequence reference45 = ref span20[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -46330,7 +55145,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152); obj42.Steps = list65; reference45 = obj42; questRoot10.QuestSequence = list61; @@ -46340,21 +55157,26 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list66; - num = 5; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span23 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span23[0]; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46367,7 +55189,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list68; reference46 = obj43; - ref QuestSequence reference47 = ref span23[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -46375,36 +55198,51 @@ public static class AssemblyQuestLoader num2 = 4; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span24 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference48 = ref span24[0]; + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1000585u, new Vector3(25.558838f, -5.7208977f, 241.62659f), 152); num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span25 = CollectionsMarshal.AsSpan(list70); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list70; reference48 = questStep4; - ref QuestStep reference49 = ref span24[1]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1000277u, new Vector3(102.76941f, 8.161999f, 187.94531f), 152); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span26 = CollectionsMarshal.AsSpan(list71); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + span5 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list71; reference49 = questStep5; - ref QuestStep reference50 = ref span24[2]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1000553u, new Vector3(-187.48767f, 4.4436555f, 292.50012f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -46412,43 +55250,60 @@ public static class AssemblyQuestLoader num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span27 = CollectionsMarshal.AsSpan(list72); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list72; reference50 = obj45; - ref QuestStep reference51 = ref span24[3]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000545u, new Vector3(-242.72534f, 3.5598407f, 286.9154f), 152); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span28 = CollectionsMarshal.AsSpan(list73); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span5 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list73; reference51 = questStep6; obj44.Steps = list69; reference47 = obj44; - ref QuestSequence reference52 = ref span23[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj46.Steps = list74; reference52 = obj46; - ref QuestSequence reference53 = ref span23[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -46456,8 +55311,9 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span29 = CollectionsMarshal.AsSpan(list75); - ref QuestStep reference54 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -46465,36 +55321,50 @@ public static class AssemblyQuestLoader num3 = 4; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span30 = CollectionsMarshal.AsSpan(list76); - span30[0] = 1895u; - span30[1] = 1896u; - span30[2] = 1897u; - span30[3] = 1898u; + span6 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span6[index3] = 1895u; + index3++; + span6[index3] = 1896u; + index3++; + span6[index3] = 1897u; + index3++; + span6[index3] = 1898u; obj48.KillEnemyDataIds = list76; - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span31 = CollectionsMarshal.AsSpan(list77); - span31[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + index3 = 6; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + span5 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span5[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj48.CompletionQuestVariablesFlags = list77; reference54 = obj48; - span29[1] = new QuestStep(EInteractionType.Interact, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152); obj47.Steps = list75; reference53 = obj47; - ref QuestSequence reference55 = ref span23[4]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj49.Steps = list78; reference55 = obj49; questRoot11.QuestSequence = list67; @@ -46504,13 +55374,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "croizat"; questRoot12.Author = list79; - num = 4; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span32 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference56 = ref span32[0]; + index = 4; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -46518,24 +55391,30 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152); + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152); obj50.Steps = list81; reference56 = obj50; - ref QuestSequence reference57 = ref span32[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.Poke }; obj51.Steps = list82; reference57 = obj51; - ref QuestSequence reference58 = ref span32[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -46543,21 +55422,26 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.ExamineSelf }; obj52.Steps = list83; reference58 = obj52; - ref QuestSequence reference59 = ref span32[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.Congratulate }; @@ -46570,13 +55454,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "croizat"; questRoot13.Author = list85; - num = 3; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span33 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference60 = ref span33[0]; + index = 3; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -46584,19 +55471,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj54.Steps = list87; reference60 = obj54; - ref QuestSequence reference61 = ref span33[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span34 = CollectionsMarshal.AsSpan(list88); - ref QuestStep reference62 = ref span34[0]; + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, 2001921u, new Vector3(-76.58508f, -1.6327515f, 191.51587f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -46604,22 +55495,27 @@ public static class AssemblyQuestLoader num3 = 1; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 1886u, MinimumKillCount = 1u }; obj56.ComplexCombatData = list89; reference62 = obj56; - ref QuestStep reference63 = ref span34[1]; + num2++; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 2001920u, new Vector3(-54.673157f, -1.083435f, 328.14514f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new ComplexCombatData + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span7 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 15u, MinimumKillCount = 2u @@ -46628,7 +55524,8 @@ public static class AssemblyQuestLoader reference63 = obj57; obj55.Steps = list88; reference61 = obj55; - ref QuestSequence reference64 = ref span33[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -46636,7 +55533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) { NextQuestId = new QuestId(723) }; @@ -46649,24 +55548,30 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "croizat"; questRoot14.Author = list92; - num = 3; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span35 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference65 = ref span35[0]; + index = 3; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj59.Steps = list94; reference65 = obj59; - ref QuestSequence reference66 = ref span35[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -46674,21 +55579,27 @@ public static class AssemblyQuestLoader num2 = 3; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span36 = CollectionsMarshal.AsSpan(list95); - span36[0] = new QuestStep(EInteractionType.Interact, 2001923u, new Vector3(-223.28534f, 1.9683228f, 129.28967f), 152); - span36[1] = new QuestStep(EInteractionType.Interact, 2001922u, new Vector3(-244.28174f, 2.8533936f, 128.52673f), 152); - span36[2] = new QuestStep(EInteractionType.Interact, 2001924u, new Vector3(-194.3847f, 11.062683f, 76.920654f), 152); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001923u, new Vector3(-223.28534f, 1.9683228f, 129.28967f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001922u, new Vector3(-244.28174f, 2.8533936f, 128.52673f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001924u, new Vector3(-194.3847f, 11.062683f, 76.920654f), 152); obj60.Steps = list95; reference66 = obj60; - ref QuestSequence reference67 = ref span35[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj61.Steps = list96; reference67 = obj61; questRoot14.QuestSequence = list93; @@ -46698,13 +55609,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list97; - num = 5; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span37 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference68 = ref span37[0]; + index = 5; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -46712,7 +55626,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46725,18 +55641,22 @@ public static class AssemblyQuestLoader }; obj62.Steps = list99; reference68 = obj62; - ref QuestSequence reference69 = ref span37[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1002937u, new Vector3(-72.22095f, -2.5420866f, 187.85376f), 152); + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002937u, new Vector3(-72.22095f, -2.5420866f, 187.85376f), 152); obj63.Steps = list100; reference69 = obj63; - ref QuestSequence reference70 = ref span37[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -46744,18 +55664,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj64.Steps = list101; reference70 = obj64; - ref QuestSequence reference71 = ref span37[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002998u, new Vector3(-283.92462f, 12.245282f, -39.383606f), 152) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002998u, new Vector3(-283.92462f, 12.245282f, -39.383606f), 152) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -46764,7 +55689,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list102; reference71 = obj65; - ref QuestSequence reference72 = ref span37[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -46772,7 +55698,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj66.Steps = list103; reference72 = obj66; questRoot15.QuestSequence = list98; @@ -46782,21 +55710,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list104; - num = 4; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span38 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference73 = ref span38[0]; + index = 4; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46809,7 +55742,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list106; reference73 = obj67; - ref QuestSequence reference74 = ref span38[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -46817,27 +55751,33 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj68.Steps = list107; reference74 = obj68; - ref QuestSequence reference75 = ref span38[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000734u, new Vector3(-2.5482788f, -1.2191527f, 39.96338f), 148) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000734u, new Vector3(-2.5482788f, -1.2191527f, 39.96338f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj69.Steps = list108; reference75 = obj69; - ref QuestSequence reference76 = ref span38[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -46845,12 +55785,14 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span39 = CollectionsMarshal.AsSpan(list109); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.6276f, -23.814985f, 551.0861f), 148) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.6276f, -23.814985f, 551.0861f), 148) { TargetTerritoryId = (ushort)153 }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj70.Steps = list109; reference76 = obj70; questRoot16.QuestSequence = list105; @@ -46860,24 +55802,30 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "croizat"; questRoot17.Author = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span40 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference77 = ref span40[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj71.Steps = list112; reference77 = obj71; - ref QuestSequence reference78 = ref span40[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -46885,7 +55833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list113)[0]; + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2187u, new Vector3(-151.47598f, 3.7521288f, 123.562065f), 153) { ItemId = 2000828u, @@ -46894,7 +55844,9 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 2187u, MinimumKillCount = 1u @@ -46909,15 +55861,18 @@ public static class AssemblyQuestLoader reference79 = obj73; obj72.Steps = list113; reference78 = obj72; - ref QuestSequence reference80 = ref span40[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153) { NextQuestId = new QuestId(728) }; @@ -46930,13 +55885,16 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "croizat"; questRoot18.Author = list116; - num = 6; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span41 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference81 = ref span41[0]; + index = 6; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -46944,27 +55902,33 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj75.Steps = list118; reference81 = obj75; - ref QuestSequence reference82 = ref span41[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span42 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference83 = ref span42[0]; + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-167.31592f, 5.486305f, 15.132226f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new ComplexCombatData + index3 = 1; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + span7 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 3u, MinimumKillCount = 4u, @@ -46975,24 +55939,33 @@ public static class AssemblyQuestLoader num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span43 = CollectionsMarshal.AsSpan(list121); - span43[0] = null; - span43[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = null; + span5 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj77.CompletionQuestVariablesFlags = list121; reference83 = obj77; - ref QuestStep reference84 = ref span42[1]; + num2++; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, null, new Vector3(-119.055f, 4.8576365f, -28.191822f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new ComplexCombatData + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + span7 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 23u, MinimumKillCount = 2u, @@ -47003,18 +55976,25 @@ public static class AssemblyQuestLoader num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span44 = CollectionsMarshal.AsSpan(list123); - span44[0] = null; - span44[1] = null; - span44[2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span44[3] = null; - span44[4] = null; - span44[5] = null; + span5 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj78.CompletionQuestVariablesFlags = list123; reference84 = obj78; obj76.Steps = list119; reference82 = obj76; - ref QuestSequence reference85 = ref span41[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -47022,21 +56002,27 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); obj79.Steps = list124; reference85 = obj79; - ref QuestSequence reference86 = ref span41[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); obj80.Steps = list125; reference86 = obj80; - ref QuestSequence reference87 = ref span41[4]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 @@ -47044,21 +56030,26 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Emote, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153) { Emote = EEmote.Kneel }; obj81.Steps = list126; reference87 = obj81; - ref QuestSequence reference88 = ref span41[5]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj82.Steps = list127; reference88 = obj82; questRoot18.QuestSequence = list117; @@ -47068,13 +56059,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot19.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span45 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference89 = ref span45[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -47082,31 +56076,39 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj83.Steps = list130; reference89 = obj83; - ref QuestSequence reference90 = ref span45[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list131)[0]; + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-108.26998f, 2.4296746f, -35.70589f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 302u; + index3 = 1; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + span6 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span6[num3] = 302u; obj85.KillEnemyDataIds = list132; reference91 = obj85; obj84.Steps = list131; reference90 = obj84; - ref QuestSequence reference92 = ref span45[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -47114,7 +56116,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj86.Steps = list133; reference92 = obj86; questRoot19.QuestSequence = list129; @@ -47124,24 +56128,30 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "croizat"; questRoot20.Author = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span46 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference93 = ref span46[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); obj87.Steps = list136; reference93 = obj87; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -47149,26 +56159,37 @@ public static class AssemblyQuestLoader num2 = 8; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span47 = CollectionsMarshal.AsSpan(list137); - span47[0] = new QuestStep(EInteractionType.Interact, 2001184u, new Vector3(-228.62598f, 13.809326f, 66.57507f), 153); - span47[1] = new QuestStep(EInteractionType.Interact, 2000728u, new Vector3(-240.4364f, 11.093262f, 52.231567f), 153); - span47[2] = new QuestStep(EInteractionType.Interact, 2000729u, new Vector3(-261.67694f, 16.403442f, 49.851196f), 153); - span47[3] = new QuestStep(EInteractionType.Interact, 2001185u, new Vector3(-251.39246f, 14.145081f, 32.242188f), 153); - span47[4] = new QuestStep(EInteractionType.Interact, 2001186u, new Vector3(-238.48328f, 15.823547f, 17.257874f), 153); - span47[5] = new QuestStep(EInteractionType.Interact, 2000727u, new Vector3(-226.48969f, 10.60498f, 16.67804f), 153); - span47[6] = new QuestStep(EInteractionType.Interact, 2001187u, new Vector3(-213.8247f, 9.170593f, 19.607788f), 153); - span47[7] = new QuestStep(EInteractionType.Interact, 2001188u, new Vector3(-198.68774f, 6.9733276f, 32.60852f), 153); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001184u, new Vector3(-228.62598f, 13.809326f, 66.57507f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000728u, new Vector3(-240.4364f, 11.093262f, 52.231567f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000729u, new Vector3(-261.67694f, 16.403442f, 49.851196f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001185u, new Vector3(-251.39246f, 14.145081f, 32.242188f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001186u, new Vector3(-238.48328f, 15.823547f, 17.257874f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2000727u, new Vector3(-226.48969f, 10.60498f, 16.67804f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001187u, new Vector3(-213.8247f, 9.170593f, 19.607788f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001188u, new Vector3(-198.68774f, 6.9733276f, 32.60852f), 153); obj88.Steps = list137; reference94 = obj88; - ref QuestSequence reference95 = ref span46[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); obj89.Steps = list138; reference95 = obj89; questRoot20.QuestSequence = list135; @@ -47178,13 +56199,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "croizat"; questRoot21.Author = list139; - num = 3; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span48 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference96 = ref span48[0]; + index = 3; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -47192,36 +56216,43 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj90.Steps = list141; reference96 = obj90; - ref QuestSequence reference97 = ref span48[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span49 = CollectionsMarshal.AsSpan(list142); - span49[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.13345f, 25.02198f, -193.98381f), 153) + index2 = 3; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.13345f, 25.02198f, -193.98381f), 153) { ItemId = 2000586u, GroundTarget = true }; - span49[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-287.41803f, 24.902437f, -193.99835f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-287.41803f, 24.902437f, -193.99835f), 153) { ItemId = 2000586u, GroundTarget = true }; - span49[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.52402f, 24.293709f, -207.5345f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.52402f, 24.293709f, -207.5345f), 153) { ItemId = 2000586u, GroundTarget = true }; obj91.Steps = list142; reference97 = obj91; - ref QuestSequence reference98 = ref span48[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -47229,7 +56260,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj92.Steps = list143; reference98 = obj92; questRoot21.QuestSequence = list140; @@ -47239,24 +56272,30 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list144); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list144; - num = 2; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span50 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference99 = ref span50[0]; + index = 2; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + span2 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj93.Steps = list146; reference99 = obj93; - ref QuestSequence reference100 = ref span50[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -47264,7 +56303,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -47277,21 +56318,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span51 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference101 = ref span51[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -47304,7 +56350,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list150; reference101 = obj95; - ref QuestSequence reference102 = ref span51[1]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -47312,8 +56359,9 @@ public static class AssemblyQuestLoader num2 = 10; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span52 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference103 = ref span52[0]; + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 2001949u, new Vector3(-142.77869f, 14.450195f, -130.11371f), 153) { Comment = "Enemy loses aggro by the next waypoint" @@ -47321,16 +56369,23 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span53 = CollectionsMarshal.AsSpan(list152); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list152; reference103 = obj97; - ref QuestStep reference104 = ref span52[1]; + index2++; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.2742f, 5.6416674f, -80.21974f), 153) { StopDistance = 0.25f, @@ -47342,21 +56397,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span54 = CollectionsMarshal.AsSpan(list153); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + span5 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list153; skipConditions.StepIf = skipStepConditions; obj98.SkipConditions = skipConditions; reference104 = obj98; - ref QuestStep reference105 = ref span52[2]; + index2++; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2001953u, new Vector3(-116.41113f, 11.032227f, -84.97754f), 153) { DisableNavmesh = true @@ -47364,34 +56426,48 @@ public static class AssemblyQuestLoader num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span55 = CollectionsMarshal.AsSpan(list154); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list154; reference105 = obj99; - ref QuestStep reference106 = ref span52[3]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.87269f, 5.116502f, -73.9041f), 153); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span56 = CollectionsMarshal.AsSpan(list155); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span5 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list155; skipConditions2.StepIf = skipStepConditions2; questStep7.SkipConditions = skipConditions2; reference106 = questStep7; - ref QuestStep reference107 = ref span52[4]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Jump, null, new Vector3(-90.467575f, 3.3634722f, -27.515985f), 153) { StopDistance = 0.25f, @@ -47406,32 +56482,46 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span57 = CollectionsMarshal.AsSpan(list156); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list156; skipConditions3.StepIf = skipStepConditions3; obj100.SkipConditions = skipConditions3; reference107 = obj100; - ref QuestStep reference108 = ref span52[5]; + index2++; + ref QuestStep reference108 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001951u, new Vector3(-83.32953f, 7.1259155f, -21.561035f), 153); - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span58 = CollectionsMarshal.AsSpan(list157); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span5 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list157; reference108 = questStep8; - ref QuestStep reference109 = ref span52[6]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj101 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.875786f, 3.9296143f, -27.107864f), 153) { DisableNavmesh = true @@ -47441,36 +56531,50 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span59 = CollectionsMarshal.AsSpan(list158); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list158; skipConditions4.StepIf = skipStepConditions4; obj101.SkipConditions = skipConditions4; reference109 = obj101; - ref QuestStep reference110 = ref span52[7]; + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.053005f, 3.8386261f, -40.758984f), 153); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span60 = CollectionsMarshal.AsSpan(list159); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + span5 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list159; skipConditions5.StepIf = skipStepConditions5; questStep9.SkipConditions = skipConditions5; reference110 = questStep9; - ref QuestStep reference111 = ref span52[8]; + index2++; + ref QuestStep reference111 = ref span3[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2001952u, new Vector3(18.722778f, 7.614197f, -43.137268f), 153) { StopDistance = 6f @@ -47478,46 +56582,62 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span61 = CollectionsMarshal.AsSpan(list160); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list160; reference111 = obj102; - ref QuestStep reference112 = ref span52[9]; + index2++; + ref QuestStep reference112 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2001950u, new Vector3(63.553833f, 13.473633f, -32.333923f), 153); - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span62 = CollectionsMarshal.AsSpan(list161); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + span5 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list161; reference112 = questStep10; obj96.Steps = list151; reference102 = obj96; - ref QuestSequence reference113 = ref span51[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span63 = CollectionsMarshal.AsSpan(list162); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.85704f, 2.712612f, -42.67677f), 153) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.85704f, 2.712612f, -42.67677f), 153) { DisableNavmesh = true, Mount = false }; - span63[1] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { Mount = false }; @@ -47530,13 +56650,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "croizat"; questRoot24.Author = list163; - num = 3; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span64 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference114 = ref span64[0]; + index = 3; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -47544,35 +56667,44 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj104.Steps = list165; reference114 = obj104; - ref QuestSequence reference115 = ref span64[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span65 = CollectionsMarshal.AsSpan(list166); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.59566f, 9.645649f, 37.61236f), 153); - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.2098f, 14.47418f, 32.58564f), 153) + index2 = 5; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.59566f, 9.645649f, 37.61236f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.2098f, 14.47418f, 32.58564f), 153) { DisableNavmesh = true }; - span65[2] = new QuestStep(EInteractionType.Interact, 1006197u, new Vector3(-151.72046f, 18.631226f, 39.53601f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006197u, new Vector3(-151.72046f, 18.631226f, 39.53601f), 153) { DisableNavmesh = true }; - span65[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.91785f, 5.4492426f, 49.70637f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.91785f, 5.4492426f, 49.70637f), 153) { DisableNavmesh = true }; - span65[4] = new QuestStep(EInteractionType.Interact, 1006198u, new Vector3(-237.17102f, 15.565003f, 104.32593f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006198u, new Vector3(-237.17102f, 15.565003f, 104.32593f), 153); obj105.Steps = list166; reference115 = obj105; - ref QuestSequence reference116 = ref span64[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -47580,7 +56712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj106.Steps = list167; reference116 = obj106; questRoot24.QuestSequence = list164; @@ -47590,24 +56724,30 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "croizat"; questRoot25.Author = list168; - num = 3; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span66 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference117 = ref span66[0]; + index = 3; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj107.Steps = list170; reference117 = obj107; - ref QuestSequence reference118 = ref span66[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -47615,8 +56755,9 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span67 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference119 = ref span67[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference119 = ref span3[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, 2001955u, new Vector3(-97.70355f, 11.673096f, -84.00098f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -47624,33 +56765,42 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = 63u; + span6 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span6[index3] = 63u; obj109.KillEnemyDataIds = list172; reference119 = obj109; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-111.3334f, 1.7872865f, -60.205475f), 153); - ref QuestStep reference120 = ref span67[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-111.3334f, 1.7872865f, -60.205475f), 153); + index2++; + ref QuestStep reference120 = ref span3[index2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2001956u, new Vector3(-110.03284f, 1.9989014f, -57.053528f), 153) { StopDistance = 5f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = 63u; + index3 = 1; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + span6 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span6[num3] = 63u; obj110.KillEnemyDataIds = list173; reference120 = obj110; obj108.Steps = list171; reference118 = obj108; - ref QuestSequence reference121 = ref span66[2]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj111.Steps = list174; reference121 = obj111; questRoot25.QuestSequence = list169; @@ -47660,13 +56810,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list175; - num = 2; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span68 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference122 = ref span68[0]; + index = 2; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -47674,7 +56827,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -47687,20 +56842,23 @@ public static class AssemblyQuestLoader }; obj112.Steps = list177; reference122 = obj112; - ref QuestSequence reference123 = ref span68[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span69 = CollectionsMarshal.AsSpan(list178); - span69[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) + index2 = 2; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) { Aetheryte = EAetheryteLocation.SouthShroudCampTranquil }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; @@ -47713,13 +56871,16 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list179; - num = 3; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span70 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference124 = ref span70[0]; + index = 3; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -47727,7 +56888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -47740,22 +56903,26 @@ public static class AssemblyQuestLoader }; obj114.Steps = list181; reference124 = obj114; - ref QuestSequence reference125 = ref span70[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(190.6642f, 8.673417f, 187.67012f), 152) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(190.6642f, 8.673417f, 187.67012f), 152) { StopDistance = 0.5f, Emote = EEmote.Lookout }; obj115.Steps = list182; reference125 = obj115; - ref QuestSequence reference126 = ref span70[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -47763,7 +56930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -47776,27 +56945,33 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list184); + index = 0; + span[index] = "skiaz"; questRoot28.Author = list184; - num = 3; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span71 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference127 = ref span71[0]; + index = 3; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + span2 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) { Fly = true }; obj117.Steps = list186; reference127 = obj117; - ref QuestSequence reference128 = ref span71[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -47804,16 +56979,19 @@ public static class AssemblyQuestLoader num2 = 3; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span72 = CollectionsMarshal.AsSpan(list187); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) { Fly = true }; - span72[1] = new QuestStep(EInteractionType.None, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) { Land = true }; - ref QuestStep reference129 = ref span72[2]; + index2++; + ref QuestStep reference129 = ref span3[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, 2264u, new Vector3(-303.8529f, 12.348698f, -40.177063f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -47821,7 +56999,9 @@ public static class AssemblyQuestLoader num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 2264u, MinimumKillCount = 3u, @@ -47838,15 +57018,18 @@ public static class AssemblyQuestLoader reference129 = obj119; obj118.Steps = list187; reference128 = obj118; - ref QuestSequence reference130 = ref span71[2]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) { Fly = true }; @@ -47859,13 +57042,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "JerryWester"; questRoot29.Author = list190; - num = 4; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span73 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference131 = ref span73[0]; + index = 4; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -47873,7 +57059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -47886,24 +57074,28 @@ public static class AssemblyQuestLoader }; obj121.Steps = list192; reference131 = obj121; - ref QuestSequence reference132 = ref span73[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span74 = CollectionsMarshal.AsSpan(list193); - span74[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 2; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span74[1] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj122.Steps = list193; reference132 = obj122; - ref QuestSequence reference133 = ref span73[2]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -47911,26 +57103,31 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj123.Steps = list194; reference133 = obj123; - ref QuestSequence reference134 = ref span73[3]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span75 = CollectionsMarshal.AsSpan(list195); - span75[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj124.Steps = list195; reference134 = obj124; questRoot29.QuestSequence = list191; @@ -47940,13 +57137,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "JerryWester"; questRoot30.Author = list196; - num = 3; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span76 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference135 = ref span76[0]; + index = 3; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -47954,26 +57154,32 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj125.Steps = list198; reference135 = obj125; - ref QuestSequence reference136 = ref span76[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span77 = CollectionsMarshal.AsSpan(list199); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + index2 = 2; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span77[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj126.Steps = list199; reference136 = obj126; - ref QuestSequence reference137 = ref span76[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -47981,7 +57187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -47994,21 +57202,26 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "JerryWester"; questRoot31.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span78 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference138 = ref span78[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -48021,7 +57234,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list203; reference138 = obj128; - ref QuestSequence reference139 = ref span78[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -48029,60 +57243,84 @@ public static class AssemblyQuestLoader num2 = 3; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span79 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference140 = ref span79[0]; + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference140 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006206u, new Vector3(-90.95911f, -29.465149f, -58.854065f), 145); - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span80 = CollectionsMarshal.AsSpan(list205); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + span5 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list205; reference140 = questStep11; - ref QuestStep reference141 = ref span79[1]; + index2++; + ref QuestStep reference141 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1006204u, new Vector3(-29.34314f, -10.500086f, -7.5532227f), 145); num3 = 6; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - Span span81 = CollectionsMarshal.AsSpan(list206); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list206; reference141 = questStep12; - ref QuestStep reference142 = ref span79[2]; + index2++; + ref QuestStep reference142 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006205u, new Vector3(14.480774f, -5.9663696f, 7.4310913f), 145); - num3 = 6; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span82 = CollectionsMarshal.AsSpan(list207); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + span5 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list207; reference142 = questStep13; obj129.Steps = list204; reference139 = obj129; - ref QuestSequence reference143 = ref span78[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); obj130.Steps = list208; reference143 = obj130; questRoot31.QuestSequence = list202; @@ -48096,13 +57334,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -48110,7 +57351,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -48123,17 +57366,20 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.09802f, 20.949646f, -263.94977f), 145); - ref QuestStep reference3 = ref span2[1]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.09802f, 20.949646f, -263.94977f), 145); + num2++; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2001965u, new Vector3(313.46606f, 23.178406f, -253.58972f), 145) { DisableNavmesh = true, @@ -48143,12 +57389,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 363u; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 363u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -48156,7 +57405,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -48166,21 +57417,26 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -48193,7 +57449,8 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -48201,29 +57458,36 @@ public static class AssemblyQuestLoader num2 = 4; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) { TargetTerritoryId = (ushort)146 }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146); - span4[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { StopDistance = 7f, Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span4[3] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj7.Steps = list11; reference7 = obj7; questRoot2.QuestSequence = list8; @@ -48233,13 +57497,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "skiaz"; questRoot3.Author = list12; - num = 3; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span5[0]; + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -48247,38 +57514,45 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146) { Fly = true }; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span5[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span6 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span6[0]; + index2 = 2; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 2259u, new Vector3(-92.27408f, 14.646322f, -233.21777f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new ComplexCombatData + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 2259u, MinimumKillCount = 1u }; obj10.ComplexCombatData = list16; reference10 = obj10; - ref QuestStep reference11 = ref span6[1]; + num2++; + ref QuestStep reference11 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 2260u, new Vector3(-92.27408f, 14.646322f, -233.21777f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -48286,7 +57560,9 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 2260u, MinimumKillCount = 1u @@ -48295,7 +57571,8 @@ public static class AssemblyQuestLoader reference11 = obj11; obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference12 = ref span5[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -48303,7 +57580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146); obj12.Steps = list18; reference12 = obj12; questRoot3.QuestSequence = list13; @@ -48313,21 +57592,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list19; - num = 3; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span7[0]; + index = 3; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -48340,7 +57624,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -48348,26 +57633,34 @@ public static class AssemblyQuestLoader num2 = 5; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference15 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.69392f, 18.008331f, -279.60886f), 146); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span9 = CollectionsMarshal.AsSpan(list23); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span6 = CollectionsMarshal.AsSpan(list23); + 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); skipStepConditions.CompletionQuestVariablesFlags = list23; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference15 = questStep; - ref QuestStep reference16 = ref span8[1]; + index2++; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-184.29613f, 3.5985415f, -246.7013f), 146) { DisableNavmesh = true @@ -48377,70 +57670,100 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span10 = CollectionsMarshal.AsSpan(list24); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list24; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference16 = obj15; - ref QuestStep reference17 = ref span8[2]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006702u, new Vector3(-186.14484f, 3.6335826f, -247.82184f), 146); - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span6 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list25; reference17 = questStep2; - ref QuestStep reference18 = ref span8[3]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006704u, new Vector3(-174.12073f, 4.3956237f, -165.45361f), 146); num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list26; reference18 = questStep3; - ref QuestStep reference19 = ref span8[4]; + index2++; + ref QuestStep reference19 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006703u, new Vector3(-187.27399f, 9.149252f, -133.22656f), 146); - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + span6 = CollectionsMarshal.AsSpan(list27); + 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); questStep4.CompletionQuestVariablesFlags = list27; reference19 = questStep4; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference20 = ref span7[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -48453,13 +57776,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list29; - num = 2; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span14[0]; + index = 2; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -48467,7 +57793,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -48480,29 +57808,35 @@ public static class AssemblyQuestLoader }; obj17.Steps = list31; reference21 = obj17; - ref QuestSequence reference22 = ref span14[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; - span15[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span15[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span15[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span15[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj18.Steps = list32; reference22 = obj18; questRoot5.QuestSequence = list30; @@ -48512,13 +57846,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span16 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span16[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -48526,26 +57863,32 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj19.Steps = list35; reference23 = obj19; - ref QuestSequence reference24 = ref span16[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span17[1] = new QuestStep(EInteractionType.Interact, 1007418u, new Vector3(9.689453f, -3.0000017f, -55.985413f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007418u, new Vector3(9.689453f, -3.0000017f, -55.985413f), 212); obj20.Steps = list36; reference24 = obj20; - ref QuestSequence reference25 = ref span16[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue @@ -48553,7 +57896,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -48566,24 +57911,28 @@ public static class AssemblyQuestLoader num = 2; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = "liza"; - span18[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot7.Author = list38; - num = 2; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span19 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span19[0]; + index = 2; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span20 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference27 = ref span20[0]; + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u @@ -48593,15 +57942,19 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 140; + Span span7 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span7[index3] = 140; skipStepConditions3.InTerritory = list41; skipConditions3.StepIf = skipStepConditions3; obj23.SkipConditions = skipConditions3; reference27 = obj23; - span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); obj22.Steps = list40; reference26 = obj22; - ref QuestSequence reference28 = ref span19[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -48609,13 +57962,15 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span21 = CollectionsMarshal.AsSpan(list42); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1006220u, new Vector3(185.74805f, 13.721187f, -443.1983f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006220u, new Vector3(185.74805f, 13.721187f, -443.1983f), 146) { Fly = true }; @@ -48628,21 +57983,26 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list43; - num = 4; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span22 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference29 = ref span22[0]; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -48655,7 +58015,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list45; reference29 = obj25; - ref QuestSequence reference30 = ref span22[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -48663,21 +58024,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); obj26.Steps = list46; reference30 = obj26; - ref QuestSequence reference31 = ref span22[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1000327u, new Vector3(177.66077f, 8.928099f, -43.01526f), 153); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000327u, new Vector3(177.66077f, 8.928099f, -43.01526f), 153); obj27.Steps = list47; reference31 = obj27; - ref QuestSequence reference32 = ref span22[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -48685,36 +58052,42 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj28.Steps = list48; reference32 = obj28; questRoot8.QuestSequence = list44; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(766); QuestRoot questRoot9 = new QuestRoot(); - num = 2; + num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span23 = CollectionsMarshal.AsSpan(list49); - span23[0] = "CryoTechnic"; - span23[1] = "croizat"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "croizat"; questRoot9.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span24 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span24[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); obj29.Steps = list51; reference33 = obj29; - ref QuestSequence reference34 = ref span24[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -48722,51 +58095,75 @@ public static class AssemblyQuestLoader num2 = 3; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span25 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference35 = ref span25[0]; + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 2001968u, new Vector3(106.370605f, 13.01593f, -9.99469f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = 79u; - obj31.KillEnemyDataIds = list53; + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + span5 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span5[num3] = new ComplexCombatData + { + DataId = 79u, + MinimumKillCount = 1u + }; + obj31.ComplexCombatData = list53; reference35 = obj31; - ref QuestStep reference36 = ref span25[1]; + index2++; + ref QuestStep reference36 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2001966u, new Vector3(115.587036f, 6.9733276f, 29.648315f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list54 = new List(num3); + List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 81u; - obj32.KillEnemyDataIds = list54; + span5 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span5[index3] = new ComplexCombatData + { + DataId = 81u, + MinimumKillCount = 1u + }; + obj32.ComplexCombatData = list54; reference36 = obj32; - ref QuestStep reference37 = ref span25[2]; + index2++; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2001967u, new Vector3(63.1875f, 7.583679f, 21.896606f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 311u; - obj33.KillEnemyDataIds = list55; + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + span5 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span5[num3] = new ComplexCombatData + { + DataId = 311u, + MinimumKillCount = 1u + }; + obj33.ComplexCombatData = list55; reference37 = obj33; obj30.Steps = list52; reference34 = obj30; - ref QuestSequence reference38 = ref span24[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); obj34.Steps = list56; reference38 = obj34; questRoot9.QuestSequence = list50; @@ -48776,13 +58173,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "croizat"; questRoot10.Author = list57; - num = 3; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span26 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference39 = ref span26[0]; + index = 3; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -48790,21 +58190,27 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); obj35.Steps = list59; reference39 = obj35; - ref QuestSequence reference40 = ref span26[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1006235u, new Vector3(168.47485f, 5.2948f, -18.997498f), 153); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006235u, new Vector3(168.47485f, 5.2948f, -18.997498f), 153); obj36.Steps = list60; reference40 = obj36; - ref QuestSequence reference41 = ref span26[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -48812,36 +58218,42 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); obj37.Steps = list61; reference41 = obj37; questRoot10.QuestSequence = list58; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(768); QuestRoot questRoot11 = new QuestRoot(); - num = 2; + num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span27 = CollectionsMarshal.AsSpan(list62); - span27[0] = "CryoTechnic"; - span27[1] = "croizat"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "croizat"; questRoot11.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span28 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference42 = ref span28[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006236u, new Vector3(156.78638f, 11.218727f, -74.26575f), 153); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006236u, new Vector3(156.78638f, 11.218727f, -74.26575f), 153); obj38.Steps = list64; reference42 = obj38; - ref QuestSequence reference43 = ref span28[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -48849,57 +58261,85 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); obj39.Steps = list65; reference43 = obj39; - ref QuestSequence reference44 = ref span28[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span29 = CollectionsMarshal.AsSpan(list66); - span29[0] = new QuestStep(EInteractionType.Interact, 2002269u, new Vector3(209.30798f, 31.72351f, -165.14844f), 153); - span29[1] = new QuestStep(EInteractionType.Interact, 2001969u, new Vector3(209.12476f, 29.373535f, -151.04907f), 153); - ref QuestStep reference45 = ref span29[2]; + index2 = 6; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002269u, new Vector3(209.30798f, 31.72351f, -165.14844f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001969u, new Vector3(209.12476f, 29.373535f, -151.04907f), 153); + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 2001970u, new Vector3(198.96228f, 31.998047f, -159.59418f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list67 = new List(num3); + List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 9u; - obj41.KillEnemyDataIds = list67; + span5 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span5[index3] = new ComplexCombatData + { + DataId = 9u, + MinimumKillCount = 1u + }; + obj41.ComplexCombatData = list67; reference45 = obj41; - span29[3] = new QuestStep(EInteractionType.Interact, 2001971u, new Vector3(199.45056f, 34.531128f, -170.33649f), 153); - ref QuestStep reference46 = ref span29[4]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001971u, new Vector3(199.45056f, 34.531128f, -170.33649f), 153); + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2001972u, new Vector3(209.70471f, 32.669556f, -171.83191f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 9u; - obj42.KillEnemyDataIds = list68; + index3 = 1; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + span5 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span5[num3] = new ComplexCombatData + { + DataId = 9u, + MinimumKillCount = 1u + }; + obj42.ComplexCombatData = list68; reference46 = obj42; - ref QuestStep reference47 = ref span29[5]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2001973u, new Vector3(218.21924f, 28.94629f, -160.63171f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list69 = new List(num3); + List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 9u; - obj43.KillEnemyDataIds = list69; + span5 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span5[index3] = new ComplexCombatData + { + DataId = 9u, + MinimumKillCount = 1u + }; + obj43.ComplexCombatData = list69; reference47 = obj43; obj40.Steps = list66; reference44 = obj40; - ref QuestSequence reference48 = ref span28[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -48907,7 +58347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153) { NextQuestId = new QuestId(769) }; @@ -48920,24 +58362,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "croizat"; questRoot12.Author = list71; - num = 3; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span30 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference49 = ref span30[0]; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); obj45.Steps = list73; reference49 = obj45; - ref QuestSequence reference50 = ref span30[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -48945,21 +58393,26 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.UseItem, 2002278u, new Vector3(42.58789f, 4.196167f, 48.844116f), 153) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2002278u, new Vector3(42.58789f, 4.196167f, 48.844116f), 153) { ItemId = 2000857u }; obj46.Steps = list74; reference50 = obj46; - ref QuestSequence reference51 = ref span30[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001186u, new Vector3(150.16394f, 8.795548f, -56.321106f), 153); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001186u, new Vector3(150.16394f, 8.795548f, -56.321106f), 153); obj47.Steps = list75; reference51 = obj47; questRoot12.QuestSequence = list72; @@ -48969,13 +58422,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "croizat"; questRoot13.Author = list76; - num = 3; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span31 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference52 = ref span31[0]; + index = 3; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -48983,27 +58439,33 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); obj48.Steps = list78; reference52 = obj48; - ref QuestSequence reference53 = ref span31[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list79)[0]; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(90.32601f, 14.940415f, -150.38887f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span32 = CollectionsMarshal.AsSpan(list80); - ref ComplexCombatData reference55 = ref span32[0]; + index3 = 3; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span5 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + ref ComplexCombatData reference55 = ref span5[num3]; ComplexCombatData obj51 = new ComplexCombatData { DataId = 87u, @@ -49012,34 +58474,48 @@ public static class AssemblyQuestLoader int num4 = 6; List list81 = new List(num4); CollectionsMarshal.SetCount(list81, num4); - Span span33 = CollectionsMarshal.AsSpan(list81); - span33[0] = null; - span33[1] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = null; + span6 = CollectionsMarshal.AsSpan(list81); + int num5 = 0; + span6[num5] = null; + num5++; + span6[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj51.CompletionQuestVariablesFlags = list81; reference55 = obj51; - ref ComplexCombatData reference56 = ref span32[1]; + num3++; + ref ComplexCombatData reference56 = ref span5[num3]; ComplexCombatData obj52 = new ComplexCombatData { DataId = 86u, MinimumKillCount = 1u }; - num4 = 6; - List list82 = new List(num4); - CollectionsMarshal.SetCount(list82, num4); - Span span34 = CollectionsMarshal.AsSpan(list82); - span34[0] = null; - span34[1] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = null; + num5 = 6; + List list82 = new List(num5); + CollectionsMarshal.SetCount(list82, num5); + span6 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj52.CompletionQuestVariablesFlags = list82; reference56 = obj52; - ref ComplexCombatData reference57 = ref span32[2]; + num3++; + ref ComplexCombatData reference57 = ref span5[num3]; ComplexCombatData obj53 = new ComplexCombatData { DataId = 84u, @@ -49048,20 +58524,27 @@ public static class AssemblyQuestLoader num4 = 6; List list83 = new List(num4); CollectionsMarshal.SetCount(list83, num4); - Span span35 = CollectionsMarshal.AsSpan(list83); - span35[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + span6 = CollectionsMarshal.AsSpan(list83); + num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj53.CompletionQuestVariablesFlags = list83; reference57 = obj53; obj50.ComplexCombatData = list80; reference54 = obj50; obj49.Steps = list79; reference53 = obj49; - ref QuestSequence reference58 = ref span31[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -49069,7 +58552,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); obj54.Steps = list84; reference58 = obj54; questRoot13.QuestSequence = list77; @@ -49079,24 +58564,30 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "croizat"; questRoot14.Author = list85; - num = 3; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span36 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference59 = ref span36[0]; + index = 3; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); obj55.Steps = list87; reference59 = obj55; - ref QuestSequence reference60 = ref span36[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -49104,18 +58595,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2001974u, new Vector3(73.258545f, 7.583679f, -109.819214f), 153); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001974u, new Vector3(73.258545f, 7.583679f, -109.819214f), 153); obj56.Steps = list88; reference60 = obj56; - ref QuestSequence reference61 = ref span36[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); obj57.Steps = list89; reference61 = obj57; questRoot14.QuestSequence = list86; @@ -49125,13 +58621,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "croizat"; questRoot15.Author = list90; - num = 2; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span37 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference62 = ref span37[0]; + index = 2; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -49139,18 +58638,23 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); obj58.Steps = list92; reference62 = obj58; - ref QuestSequence reference63 = ref span37[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153) { NextQuestId = new QuestId(773) }; @@ -49163,13 +58667,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "croizat"; questRoot16.Author = list94; - num = 5; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span38 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference64 = ref span38[0]; + index = 5; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -49177,24 +58684,31 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); obj60.Steps = list96; reference64 = obj60; - ref QuestSequence reference65 = ref span38[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span39 = CollectionsMarshal.AsSpan(list97); - span39[0] = new QuestStep(EInteractionType.Interact, 2002282u, new Vector3(270.28296f, 12.130859f, -258.44214f), 153); - span39[1] = new QuestStep(EInteractionType.Interact, 2002281u, new Vector3(261.15808f, 11.24585f, -252.49103f), 153); - span39[2] = new QuestStep(EInteractionType.Interact, 2001975u, new Vector3(248.76782f, 11.459534f, -233.23413f), 153); + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002282u, new Vector3(270.28296f, 12.130859f, -258.44214f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002281u, new Vector3(261.15808f, 11.24585f, -252.49103f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001975u, new Vector3(248.76782f, 11.459534f, -233.23413f), 153); obj61.Steps = list97; reference65 = obj61; - ref QuestSequence reference66 = ref span38[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -49202,21 +58716,27 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2001976u, new Vector3(299.8855f, 14.175598f, -249.3172f), 153); + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001976u, new Vector3(299.8855f, 14.175598f, -249.3172f), 153); obj62.Steps = list98; reference66 = obj62; - ref QuestSequence reference67 = ref span38[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000341u, new Vector3(300.09912f, 11.935754f, -247.02838f), 153); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000341u, new Vector3(300.09912f, 11.935754f, -247.02838f), 153); obj63.Steps = list99; reference67 = obj63; - ref QuestSequence reference68 = ref span38[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -49224,7 +58744,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); obj64.Steps = list100; reference68 = obj64; questRoot16.QuestSequence = list95; @@ -49234,21 +58756,26 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list101; - num = 5; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span40 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference69 = ref span40[0]; + index = 5; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -49261,7 +58788,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list103; reference69 = obj65; - ref QuestSequence reference70 = ref span40[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -49269,7 +58797,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list104)[0]; + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + ref QuestStep reference71 = ref span3[index2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(262.89966f, 11.363011f, -143.02156f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -49277,40 +58807,52 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - ref ComplexCombatData reference72 = ref CollectionsMarshal.AsSpan(list105)[0]; + span5 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + ref ComplexCombatData reference72 = ref span5[index3]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 4u, MinimumKillCount = 4u }; - num4 = 6; - List list106 = new List(num4); - CollectionsMarshal.SetCount(list106, num4); - Span span41 = CollectionsMarshal.AsSpan(list106); - span41[0] = null; - span41[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = null; + num5 = 6; + List list106 = new List(num5); + CollectionsMarshal.SetCount(list106, num5); + span6 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj68.CompletionQuestVariablesFlags = list106; reference72 = obj68; obj67.ComplexCombatData = list105; reference71 = obj67; obj66.Steps = list104; reference70 = obj66; - ref QuestSequence reference73 = ref span40[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj69.Steps = list107; reference73 = obj69; - ref QuestSequence reference74 = ref span40[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -49318,18 +58860,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj70.Steps = list108; reference74 = obj70; - ref QuestSequence reference75 = ref span40[4]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006680u, new Vector3(209.30798f, 6.1041656f, -39.932922f), 153) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006680u, new Vector3(209.30798f, 6.1041656f, -39.932922f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -49342,13 +58889,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list110; - num = 6; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span42 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference76 = ref span42[0]; + index = 6; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -49356,7 +58906,9 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -49369,18 +58921,22 @@ public static class AssemblyQuestLoader }; obj72.Steps = list112; reference76 = obj72; - ref QuestSequence reference77 = ref span42[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); obj73.Steps = list113; reference77 = obj73; - ref QuestSequence reference78 = ref span42[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -49388,31 +58944,39 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj74.Steps = list114; reference78 = obj74; - ref QuestSequence reference79 = ref span42[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference80 = ref CollectionsMarshal.AsSpan(list115)[0]; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference80 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 1909u; + index3 = 1; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + span4 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span4[num3] = 1909u; obj76.KillEnemyDataIds = list116; reference80 = obj76; obj75.Steps = list115; reference79 = obj75; - ref QuestSequence reference81 = ref span42[4]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 @@ -49420,18 +58984,23 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153); obj77.Steps = list117; reference81 = obj77; - ref QuestSequence reference82 = ref span42[5]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj78.Steps = list118; reference82 = obj78; questRoot18.QuestSequence = list111; @@ -49441,13 +59010,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list119; - num = 2; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span43 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference83 = ref span43[0]; + index = 2; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -49455,7 +59027,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -49468,15 +59042,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list121; reference83 = obj79; - ref QuestSequence reference84 = ref span43[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -49489,13 +59066,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span44 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference85 = ref span44[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -49503,7 +59083,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -49516,77 +59098,107 @@ public static class AssemblyQuestLoader }; obj81.Steps = list125; reference85 = obj81; - ref QuestSequence reference86 = ref span44[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span45 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference87 = ref span45[0]; + index2 = 4; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference87 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006221u, new Vector3(-219.65369f, 26.204851f, -337.789f), 146); num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span46 = CollectionsMarshal.AsSpan(list127); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list127; reference87 = questStep5; - ref QuestStep reference88 = ref span45[1]; + num2++; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 1006222u, new Vector3(-207.17181f, 27.31405f, -331.34973f), 146) { DisableNavmesh = true }; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span47 = CollectionsMarshal.AsSpan(list128); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span6 = CollectionsMarshal.AsSpan(list128); + 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); obj83.CompletionQuestVariablesFlags = list128; reference88 = obj83; - ref QuestStep reference89 = ref span45[2]; + num2++; + ref QuestStep reference89 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1006223u, new Vector3(-85.06909f, 26.222988f, -348.50085f), 146); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span48 = CollectionsMarshal.AsSpan(list129); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list129; reference89 = questStep6; - ref QuestStep reference90 = ref span45[3]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146); - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span49 = CollectionsMarshal.AsSpan(list130); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + span6 = CollectionsMarshal.AsSpan(list130); + 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); questStep7.CompletionQuestVariablesFlags = list130; reference90 = questStep7; obj82.Steps = list126; reference86 = obj82; - ref QuestSequence reference91 = ref span44[2]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -49594,7 +59206,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj84.Steps = list131; reference91 = obj84; questRoot20.QuestSequence = list124; @@ -49604,21 +59218,26 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span50 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference92 = ref span50[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006226u, new Vector3(-225.97089f, 26.138475f, -355.0622f), 146) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006226u, new Vector3(-225.97089f, 26.138475f, -355.0622f), 146) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -49632,7 +59251,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list134; reference92 = obj85; - ref QuestSequence reference93 = ref span50[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -49640,7 +59260,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list135)[0]; + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -49648,28 +59270,34 @@ public static class AssemblyQuestLoader num3 = 2; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span51 = CollectionsMarshal.AsSpan(list136); - span51[0] = 2257u; - span51[1] = 2258u; + span4 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span4[index3] = 2257u; + index3++; + span4[index3] = 2258u; obj87.KillEnemyDataIds = list136; reference94 = obj87; obj86.Steps = list135; reference93 = obj86; - ref QuestSequence reference95 = ref span50[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) { StopDistance = 7f }; obj88.Steps = list137; reference95 = obj88; - ref QuestSequence reference96 = ref span50[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -49677,7 +59305,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -49690,21 +59320,26 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list139; - num = 5; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span52 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference97 = ref span52[0]; + index = 5; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -49717,7 +59352,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list141; reference97 = obj90; - ref QuestSequence reference98 = ref span52[1]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -49725,112 +59361,158 @@ public static class AssemblyQuestLoader num2 = 6; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span53 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference99 = ref span53[0]; + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-225.94685f, 26.139933f, -340.8984f), 146) { Mount = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span54 = CollectionsMarshal.AsSpan(list143); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + span6 = CollectionsMarshal.AsSpan(list143); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list143; skipConditions4.StepIf = skipStepConditions4; obj92.SkipConditions = skipConditions4; reference99 = obj92; - ref QuestStep reference100 = ref span53[1]; + index2++; + ref QuestStep reference100 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001980u, new Vector3(-202.22784f, 28.122314f, -318.5016f), 146); num3 = 6; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span55 = CollectionsMarshal.AsSpan(list144); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list144; reference100 = questStep8; - ref QuestStep reference101 = ref span53[2]; + index2++; + ref QuestStep reference101 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006225u, new Vector3(-83.84839f, 39.399178f, -333.69952f), 146); - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span56 = CollectionsMarshal.AsSpan(list145); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list145 = new List(index3); + CollectionsMarshal.SetCount(list145, index3); + span6 = CollectionsMarshal.AsSpan(list145); + 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); questStep9.CompletionQuestVariablesFlags = list145; reference101 = questStep9; - ref QuestStep reference102 = ref span53[3]; + index2++; + ref QuestStep reference102 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007617u, new Vector3(-114.7937f, 39.483143f, -339.71167f), 146); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span57 = CollectionsMarshal.AsSpan(list146); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list146; reference102 = questStep10; - ref QuestStep reference103 = ref span53[4]; + index2++; + ref QuestStep reference103 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001981u, new Vector3(-78.93494f, 26.474365f, -350.08777f), 146); - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span58 = CollectionsMarshal.AsSpan(list147); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + span6 = CollectionsMarshal.AsSpan(list147); + 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)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list147; reference103 = questStep11; - ref QuestStep reference104 = ref span53[5]; + index2++; + ref QuestStep reference104 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1007616u, new Vector3(-98.77167f, 26.161106f, -341.3291f), 146); num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span59 = CollectionsMarshal.AsSpan(list148); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list148; reference104 = questStep12; obj91.Steps = list142; reference98 = obj91; - ref QuestSequence reference105 = ref span52[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj93.Steps = list149; reference105 = obj93; - ref QuestSequence reference106 = ref span52[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 @@ -49838,7 +59520,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006230u, new Vector3(34.89734f, 3.3969688f, -343.70947f), 146) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006230u, new Vector3(34.89734f, 3.3969688f, -343.70947f), 146) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -49847,15 +59531,18 @@ public static class AssemblyQuestLoader }; obj94.Steps = list150; reference106 = obj94; - ref QuestSequence reference107 = ref span52[4]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj95.Steps = list151; reference107 = obj95; questRoot22.QuestSequence = list140; @@ -49865,13 +59552,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list152; - num = 2; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span60 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference108 = ref span60[0]; + index = 2; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -49879,7 +59569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -49892,29 +59584,35 @@ public static class AssemblyQuestLoader }; obj96.Steps = list154; reference108 = obj96; - ref QuestSequence reference109 = ref span60[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span61 = CollectionsMarshal.AsSpan(list155); - span61[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span61[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span61[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span61[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj97.Steps = list155; reference109 = obj97; questRoot23.QuestSequence = list153; @@ -49924,13 +59622,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list156; - num = 3; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span62 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference110 = ref span62[0]; + index = 3; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -49938,7 +59639,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -49952,28 +59655,34 @@ public static class AssemblyQuestLoader }; obj98.Steps = list158; reference110 = obj98; - ref QuestSequence reference111 = ref span62[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list159)[0]; + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Combat, 2001982u, new Vector3(-260.0901f, -56.38214f, 307.60657f), 154) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - CollectionsMarshal.AsSpan(list160)[0] = 1899u; + index3 = 1; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + span4 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span4[num3] = 1899u; obj100.KillEnemyDataIds = list160; reference112 = obj100; obj99.Steps = list159; reference111 = obj99; - ref QuestSequence reference113 = ref span62[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -49981,7 +59690,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -49994,21 +59705,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list162; - num = 4; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span63 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference114 = ref span63[0]; + index = 4; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -50021,7 +59737,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list164; reference114 = obj102; - ref QuestSequence reference115 = ref span63[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -50029,98 +59746,138 @@ public static class AssemblyQuestLoader num2 = 3; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span64 = CollectionsMarshal.AsSpan(list165); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.058176f, -40.87435f, 233.34166f), 154); - span64[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.16211f, -63.65229f, 370.28903f), 154); - span64[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-222.67735f, -66.345436f, 396.86935f), 154) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.058176f, -40.87435f, 233.34166f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.16211f, -63.65229f, 370.28903f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-222.67735f, -66.345436f, 396.86935f), 154) { ItemId = 2000616u, GroundTarget = true }; obj103.Steps = list165; reference115 = obj103; - ref QuestSequence reference116 = ref span63[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span65 = CollectionsMarshal.AsSpan(list166); - ref QuestStep reference117 = ref span65[0]; + index2 = 5; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2001988u, new Vector3(-217.97516f, -66.086914f, 389.9137f), 154); num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span66 = CollectionsMarshal.AsSpan(list167); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list167; reference117 = questStep13; - ref QuestStep reference118 = ref span65[1]; + num2++; + ref QuestStep reference118 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001986u, new Vector3(-219.71472f, -65.90375f, 383.3523f), 154); - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span67 = CollectionsMarshal.AsSpan(list168); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + span6 = CollectionsMarshal.AsSpan(list168); + 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); questStep14.CompletionQuestVariablesFlags = list168; reference118 = questStep14; - ref QuestStep reference119 = ref span65[2]; + num2++; + ref QuestStep reference119 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001987u, new Vector3(-217.97516f, -65.20184f, 376.3026f), 154); num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span68 = CollectionsMarshal.AsSpan(list169); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list169; reference119 = questStep15; - ref QuestStep reference120 = ref span65[3]; + num2++; + ref QuestStep reference120 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2001985u, new Vector3(-233.02057f, -66.453064f, 378.95776f), 154); - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span69 = CollectionsMarshal.AsSpan(list170); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + span6 = CollectionsMarshal.AsSpan(list170); + 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); questStep16.CompletionQuestVariablesFlags = list170; reference120 = questStep16; - ref QuestStep reference121 = ref span65[4]; + num2++; + ref QuestStep reference121 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2001984u, new Vector3(-230.33496f, -66.819336f, 388.93713f), 154); num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span70 = CollectionsMarshal.AsSpan(list171); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list171; reference121 = questStep17; obj104.Steps = list166; reference116 = obj104; - ref QuestSequence reference122 = ref span63[3]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -50128,7 +59885,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -50141,24 +59900,30 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list173); + index = 0; + span[index] = "croizat"; questRoot26.Author = list173; - num = 3; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span71 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference123 = ref span71[0]; + index = 3; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + span2 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006245u, new Vector3(4.9591064f, -46.518017f, 248.49304f), 154); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006245u, new Vector3(4.9591064f, -46.518017f, 248.49304f), 154); obj106.Steps = list175; reference123 = obj106; - ref QuestSequence reference124 = ref span71[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -50166,23 +59931,28 @@ public static class AssemblyQuestLoader num2 = 2; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span72 = CollectionsMarshal.AsSpan(list176); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.82947f, -28.139849f, 261.55243f), 154); - span72[1] = new QuestStep(EInteractionType.Interact, 2001989u, new Vector3(-211.841f, -27.878296f, 261.8601f), 154) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.82947f, -28.139849f, 261.55243f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001989u, new Vector3(-211.841f, -27.878296f, 261.8601f), 154) { DisableNavmesh = true }; obj107.Steps = list176; reference124 = obj107; - ref QuestSequence reference125 = ref span71[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(792) }; @@ -50195,13 +59965,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "croizat"; questRoot27.Author = list178; - num = 2; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span73 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference126 = ref span73[0]; + index = 2; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -50209,18 +59982,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002779u, new Vector3(-34.470154f, -40.466434f, 221.02686f), 154); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002779u, new Vector3(-34.470154f, -40.466434f, 221.02686f), 154); obj109.Steps = list180; reference126 = obj109; - ref QuestSequence reference127 = ref span73[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); obj110.Steps = list181; reference127 = obj110; questRoot27.QuestSequence = list179; @@ -50230,13 +60008,16 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list182); + index = 0; + span[index] = "croizat"; questRoot28.Author = list182; - num = 3; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span74 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference128 = ref span74[0]; + index = 3; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + span2 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -50244,29 +60025,35 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj111.Steps = list184; reference128 = obj111; - ref QuestSequence reference129 = ref span74[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span75 = CollectionsMarshal.AsSpan(list185); - span75[0] = new QuestStep(EInteractionType.UseItem, 2001993u, new Vector3(-37.644104f, -39.749817f, 175.03625f), 154) + index2 = 2; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2001993u, new Vector3(-37.644104f, -39.749817f, 175.03625f), 154) { ItemId = 2000623u }; - span75[1] = new QuestStep(EInteractionType.UseItem, 2001994u, new Vector3(-35.690857f, -33.676758f, 167.80347f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2001994u, new Vector3(-35.690857f, -33.676758f, 167.80347f), 154) { ItemId = 2000623u }; obj112.Steps = list185; reference129 = obj112; - ref QuestSequence reference130 = ref span74[2]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -50274,7 +60061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(793) }; @@ -50287,24 +60076,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "croizat"; questRoot29.Author = list187; - num = 4; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span76 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference131 = ref span76[0]; + index = 4; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj114.Steps = list189; reference131 = obj114; - ref QuestSequence reference132 = ref span76[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -50312,15 +60107,19 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list190)[0]; + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference133 = ref span3[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, null, new Vector3(-106.12237f, -51.697598f, 386.2573f), 154) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new ComplexCombatData + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + span5 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 1u @@ -50329,18 +60128,22 @@ public static class AssemblyQuestLoader reference133 = obj116; obj115.Steps = list190; reference132 = obj115; - ref QuestSequence reference134 = ref span76[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1006249u, new Vector3(-107.31671f, -52.25655f, 390.49353f), 154); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006249u, new Vector3(-107.31671f, -52.25655f, 390.49353f), 154); obj117.Steps = list192; reference134 = obj117; - ref QuestSequence reference135 = ref span76[3]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -50348,7 +60151,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(796) }; @@ -50361,24 +60166,30 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "croizat"; questRoot30.Author = list194; - num = 3; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span77 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference136 = ref span77[0]; + index = 3; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj119.Steps = list196; reference136 = obj119; - ref QuestSequence reference137 = ref span77[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -50386,18 +60197,23 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1006251u, new Vector3(-56.839844f, -43.544834f, 353.5973f), 154); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006251u, new Vector3(-56.839844f, -43.544834f, 353.5973f), 154); obj120.Steps = list197; reference137 = obj120; - ref QuestSequence reference138 = ref span77[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154) { NextQuestId = new QuestId(795) }; @@ -50410,13 +60226,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "croizat"; questRoot31.Author = list199; - num = 3; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span78 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference139 = ref span78[0]; + index = 3; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -50424,21 +60243,27 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj122.Steps = list201; reference139 = obj122; - ref QuestSequence reference140 = ref span78[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2001995u, new Vector3(23.483582f, -45.609253f, 445.45654f), 154); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001995u, new Vector3(23.483582f, -45.609253f, 445.45654f), 154); obj123.Steps = list202; reference140 = obj123; - ref QuestSequence reference141 = ref span78[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -50446,7 +60271,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj124.Steps = list203; reference141 = obj124; questRoot31.QuestSequence = list200; @@ -50456,24 +60283,30 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list204); + index = 0; + span[index] = "croizat"; questRoot32.Author = list204; - num = 3; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span79 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference142 = ref span79[0]; + index = 3; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span2 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj125.Steps = list206; reference142 = obj125; - ref QuestSequence reference143 = ref span79[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -50481,21 +60314,27 @@ public static class AssemblyQuestLoader num2 = 3; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span80 = CollectionsMarshal.AsSpan(list207); - span80[0] = new QuestStep(EInteractionType.Interact, 1006253u, new Vector3(-251.6366f, -31.279873f, 383.62695f), 154); - span80[1] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); - span80[2] = new QuestStep(EInteractionType.Interact, 1006254u, new Vector3(-244.52588f, -31.265808f, 392.3551f), 154); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006253u, new Vector3(-251.6366f, -31.279873f, 383.62695f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006254u, new Vector3(-244.52588f, -31.265808f, 392.3551f), 154); obj126.Steps = list207; reference143 = obj126; - ref QuestSequence reference144 = ref span79[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj127.Steps = list208; reference144 = obj127; questRoot32.QuestSequence = list205; @@ -50505,13 +60344,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list209); + index = 0; + span[index] = "croizat"; questRoot33.Author = list209; - num = 3; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span81 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference145 = ref span81[0]; + index = 3; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + span2 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -50519,18 +60361,23 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj128.Steps = list211; reference145 = obj128; - ref QuestSequence reference146 = ref span81[1]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-218.99034f, -30.112806f, 339.3762f), 154) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -50538,7 +60385,9 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 2266u, MinimumKillCount = 2u, @@ -50554,7 +60403,8 @@ public static class AssemblyQuestLoader reference147 = obj130; obj129.Steps = list212; reference146 = obj129; - ref QuestSequence reference148 = ref span81[2]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -50562,7 +60412,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) { NextQuestId = new QuestId(798) }; @@ -50575,24 +60427,30 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list215); + index = 0; + span[index] = "croizat"; questRoot34.Author = list215; - num = 3; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span82 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference149 = ref span82[0]; + index = 3; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + span2 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj132.Steps = list217; reference149 = obj132; - ref QuestSequence reference150 = ref span82[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -50600,25 +60458,33 @@ public static class AssemblyQuestLoader num2 = 3; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span83 = CollectionsMarshal.AsSpan(list218); - ref QuestStep reference151 = ref span83[0]; + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.UseItem, 2001996u, new Vector3(-213.39746f, -37.94922f, 265.4917f), 154) { ItemId = 2000629u }; - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span84 = CollectionsMarshal.AsSpan(list219); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + span6 = CollectionsMarshal.AsSpan(list219); + 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); obj134.CompletionQuestVariablesFlags = list219; reference151 = obj134; - ref QuestStep reference152 = ref span83[1]; + index2++; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj135 = new QuestStep(EInteractionType.UseItem, 2001997u, new Vector3(-209.03339f, -42.37433f, 248.67627f), 154) { ItemId = 2000629u @@ -50626,43 +60492,59 @@ public static class AssemblyQuestLoader num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span85 = CollectionsMarshal.AsSpan(list220); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list220; reference152 = obj135; - ref QuestStep reference153 = ref span83[2]; + index2++; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.UseItem, 2001998u, new Vector3(-247.66925f, -43.38141f, 268.48242f), 154) { ItemId = 2000629u }; - num3 = 6; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span86 = CollectionsMarshal.AsSpan(list221); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + span6 = CollectionsMarshal.AsSpan(list221); + 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); obj136.CompletionQuestVariablesFlags = list221; reference153 = obj136; obj133.Steps = list218; reference150 = obj133; - ref QuestSequence reference154 = ref span82[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj137.Steps = list222; reference154 = obj137; questRoot34.QuestSequence = list216; @@ -50672,13 +60554,16 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "JerryWester"; questRoot35.Author = list223; - num = 3; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span87 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference155 = ref span87[0]; + index = 3; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -50686,7 +60571,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -50700,16 +60587,18 @@ public static class AssemblyQuestLoader }; obj138.Steps = list225; reference155 = obj138; - ref QuestSequence reference156 = ref span87[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span88 = CollectionsMarshal.AsSpan(list226); - ref QuestStep reference157 = ref span88[0]; + index2 = 2; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -50717,13 +60606,17 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 182u; + span4 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span4[index3] = 182u; obj140.KillEnemyDataIds = list227; reference157 = obj140; - span88[1] = new QuestStep(EInteractionType.Interact, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154); obj139.Steps = list226; reference156 = obj139; - ref QuestSequence reference158 = ref span87[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -50731,7 +60624,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -50748,13 +60643,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -50762,7 +60660,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -50775,21 +60675,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -50797,18 +60701,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut { @@ -50818,7 +60727,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -50826,7 +60736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -50836,24 +60748,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -50861,8 +60779,9 @@ public static class AssemblyQuestLoader num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - span3[0] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -50874,22 +60793,27 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(802) }; - span3[1] = new QuestStep(EInteractionType.Interact, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132) { TargetTerritoryId = (ushort)148 }; - span3[2] = new QuestStep(EInteractionType.Interact, 2001999u, new Vector3(-576.1349f, 68.13147f, 69.41321f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001999u, new Vector3(-576.1349f, 68.13147f, 69.41321f), 148); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + ref QuestStep reference9 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Duty, null, null, 148); DutyOptions obj9 = new DutyOptions { @@ -50898,17 +60822,21 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = "(after boss 2) Will not pick up the bloody parchment, and instead run off to open a random unrelated chest that it can't reach"; + span = CollectionsMarshal.AsSpan(list13); + int index3 = 0; + span[index3] = "(after boss 2) Will not pick up the bloody parchment, and instead run off to open a random unrelated chest that it can't reach"; obj9.Notes = list13; questStep.DutyOptions = obj9; reference9 = questStep; obj8.Steps = list12; reference8 = obj8; - span2[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference10 = ref span2[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -50916,7 +60844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -50927,29 +60857,35 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[5]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span4 = CollectionsMarshal.AsSpan(list15); - span4[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span4[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span4[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span4[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj11.Steps = list15; reference11 = obj11; questRoot2.QuestSequence = list9; @@ -50959,13 +60895,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -50973,18 +60912,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list17; @@ -50994,13 +60938,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot4.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span6 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span6[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -51008,8 +60955,9 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -51021,27 +60969,33 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span6[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-294.20667f, 61.58862f, -192.54443f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span4 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + ref ComplexCombatData reference17 = ref span4[num3]; ComplexCombatData obj17 = new ComplexCombatData { DataId = 48u @@ -51049,31 +61003,44 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = null; - span8[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + Span span5 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj17.CompletionQuestVariablesFlags = list25; reference17 = obj17; obj16.ComplexCombatData = list24; num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = null; - span9[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + span5 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj16.CompletionQuestVariablesFlags = list26; reference16 = obj16; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -51081,12 +61048,14 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(805) }; @@ -51099,22 +61068,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot5.Author = list28; - num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference19 = ref span11[0]; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span12 = CollectionsMarshal.AsSpan(list30); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -51126,10 +61099,12 @@ public static class AssemblyQuestLoader } } }; - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj19.Steps = list30; reference19 = obj19; - ref QuestSequence reference20 = ref span11[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -51137,15 +61112,19 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list31)[0]; + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(-291.6655f, 60.450222f, -163.48296f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new ComplexCombatData + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span4 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 2267u }; @@ -51159,20 +61138,23 @@ public static class AssemblyQuestLoader reference21 = obj21; obj20.Steps = list31; reference20 = obj20; - ref QuestSequence reference22 = ref span11[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span13 = CollectionsMarshal.AsSpan(list33); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(807) }; @@ -51185,13 +61167,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "croizat"; questRoot6.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span14 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference23 = ref span14[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -51199,24 +61184,31 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); obj23.Steps = list36; reference23 = obj23; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span15 = CollectionsMarshal.AsSpan(list37); - span15[0] = new QuestStep(EInteractionType.Interact, 2002003u, new Vector3(-408.80444f, 49.149292f, 12.283508f), 148); - span15[1] = new QuestStep(EInteractionType.Interact, 2002005u, new Vector3(-376.45538f, 51.0719f, 46.860474f), 148); - span15[2] = new QuestStep(EInteractionType.Interact, 2002004u, new Vector3(-399.4049f, 51.04138f, 76.00513f), 148); + index2 = 3; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002003u, new Vector3(-408.80444f, 49.149292f, 12.283508f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002005u, new Vector3(-376.45538f, 51.0719f, 46.860474f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002004u, new Vector3(-399.4049f, 51.04138f, 76.00513f), 148); obj24.Steps = list37; reference24 = obj24; - ref QuestSequence reference25 = ref span14[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -51224,7 +61216,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); obj25.Steps = list38; reference25 = obj25; questRoot6.QuestSequence = list35; @@ -51234,22 +61228,26 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot7.Author = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span16 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference26 = ref span16[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -51261,10 +61259,12 @@ public static class AssemblyQuestLoader } } }; - span17[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj26.Steps = list41; reference26 = obj26; - ref QuestSequence reference27 = ref span16[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -51272,7 +61272,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference28 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-327.70383f, 57.159073f, -13.640016f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -51280,7 +61282,9 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData + span4 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span4[index3] = new ComplexCombatData { DataId = 2193u, NameId = 2057u @@ -51295,20 +61299,23 @@ public static class AssemblyQuestLoader reference28 = obj28; obj27.Steps = list42; reference27 = obj27; - ref QuestSequence reference29 = ref span16[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span18 = CollectionsMarshal.AsSpan(list44); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(1485) }; @@ -51321,13 +61328,16 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span19 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference30 = ref span19[0]; + index = 3; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -51335,34 +61345,42 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj30.Steps = list47; reference30 = obj30; - ref QuestSequence reference31 = ref span19[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2002033u, new Vector3(671.1986f, 64.37781f, -205.24915f), 135) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span20 = CollectionsMarshal.AsSpan(list49); - span20[0] = 2239u; - span20[1] = 2240u; + index3 = 2; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span6 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span6[num3] = 2239u; + num3++; + span6[num3] = 2240u; obj32.KillEnemyDataIds = list49; reference32 = obj32; obj31.Steps = list48; reference31 = obj31; - ref QuestSequence reference33 = ref span19[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -51370,9 +61388,11 @@ public static class AssemblyQuestLoader num2 = 2; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span21 = CollectionsMarshal.AsSpan(list50); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.84393f, 64.118355f, -203.85042f), 135); - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.84393f, 64.118355f, -203.85042f), 135); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj33.Steps = list50; reference33 = obj33; questRoot8.QuestSequence = list46; @@ -51382,24 +61402,30 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list51; - num = 3; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span22 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference34 = ref span22[0]; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj34.Steps = list53; reference34 = obj34; - ref QuestSequence reference35 = ref span22[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -51407,7 +61433,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list54)[0]; + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + ref QuestStep reference36 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2002034u, new Vector3(646.1432f, 67.46008f, -263.38605f), 135) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -51415,20 +61443,25 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 1900u; + span6 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span6[index3] = 1900u; obj36.KillEnemyDataIds = list55; reference36 = obj36; obj35.Steps = list54; reference35 = obj35; - ref QuestSequence reference37 = ref span22[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj37.Steps = list56; reference37 = obj37; questRoot9.QuestSequence = list52; @@ -51438,13 +61471,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list57; - num = 3; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span23 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference38 = ref span23[0]; + index = 3; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -51452,18 +61488,23 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj38.Steps = list59; reference38 = obj38; - ref QuestSequence reference39 = ref span23[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006265u, new Vector3(703.5171f, 65.78333f, -288.77704f), 135) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006265u, new Vector3(703.5171f, 65.78333f, -288.77704f), 135) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -51472,7 +61513,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list60; reference39 = obj39; - ref QuestSequence reference40 = ref span23[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -51480,17 +61522,21 @@ public static class AssemblyQuestLoader num2 = 4; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span24 = CollectionsMarshal.AsSpan(list61); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(696.00323f, 80.20443f, -391.9752f), 135) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(696.00323f, 80.20443f, -391.9752f), 135) { TargetTerritoryId = (ushort)137 }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.54834f, 21.81276f, 478.4722f), 137); - span24[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.54834f, 21.81276f, 478.4722f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span24[3] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); obj40.Steps = list61; reference40 = obj40; questRoot10.QuestSequence = list58; @@ -51500,21 +61546,26 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span25 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference41 = ref span25[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -51527,7 +61578,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list64; reference41 = obj41; - ref QuestSequence reference42 = ref span25[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -51535,34 +61587,42 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.UseItem, 2002035u, new Vector3(666.6819f, 9.018005f, 509.6361f), 137) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2002035u, new Vector3(666.6819f, 9.018005f, 509.6361f), 137) { ItemId = 2000636u }; obj42.Steps = list65; reference42 = obj42; - ref QuestSequence reference43 = ref span25[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list66)[0]; + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference44 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2002639u, new Vector3(652.2468f, 12.039368f, 519.8595f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 1887u; + index3 = 1; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + span6 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span6[num3] = 1887u; obj44.KillEnemyDataIds = list67; reference44 = obj44; obj43.Steps = list66; reference43 = obj43; - ref QuestSequence reference45 = ref span25[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -51570,7 +61630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); obj45.Steps = list68; reference45 = obj45; questRoot11.QuestSequence = list63; @@ -51580,21 +61642,26 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list69; - num = 2; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span26 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference46 = ref span26[0]; + index = 2; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -51607,7 +61674,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list71; reference46 = obj46; - ref QuestSequence reference47 = ref span26[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -51615,7 +61683,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; @@ -51628,24 +61698,30 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "croizat"; questRoot13.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span27 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference48 = ref span27[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); obj48.Steps = list75; reference48 = obj48; - ref QuestSequence reference49 = ref span27[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -51653,8 +61729,9 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span28 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference50 = ref span28[0]; + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.93796f, 8.626011f, 640.6978f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -51662,21 +61739,27 @@ public static class AssemblyQuestLoader num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 13u; + span6 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span6[index3] = 13u; obj50.KillEnemyDataIds = list77; reference50 = obj50; - span28[1] = new QuestStep(EInteractionType.Interact, 1006284u, new Vector3(-228.62598f, 8.514692f, 641.1687f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006284u, new Vector3(-228.62598f, 8.514692f, 641.1687f), 153); obj49.Steps = list76; reference49 = obj49; - ref QuestSequence reference51 = ref span27[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); obj51.Steps = list78; reference51 = obj51; questRoot13.QuestSequence = list74; @@ -51686,13 +61769,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "croizat"; questRoot14.Author = list79; - num = 3; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span29 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference52 = ref span29[0]; + index = 3; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -51700,31 +61786,39 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); obj52.Steps = list81; reference52 = obj52; - ref QuestSequence reference53 = ref span29[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span30 = CollectionsMarshal.AsSpan(list82); - span30[0] = new QuestStep(EInteractionType.Interact, 2002040u, new Vector3(-207.38544f, 8.8349f, 372.21326f), 153); - ref QuestStep reference54 = ref span30[1]; + index2 = 3; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002040u, new Vector3(-207.38544f, 8.8349f, 372.21326f), 153); + num2++; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 2002041u, new Vector3(-188.83038f, 1.1443481f, 429.6482f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = 302u; + index3 = 1; + List list83 = new List(index3); + CollectionsMarshal.SetCount(list83, index3); + span6 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span6[num3] = 302u; obj54.KillEnemyDataIds = list83; reference54 = obj54; - ref QuestStep reference55 = ref span30[2]; + num2++; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, 2002042u, new Vector3(-204.21149f, 0.41192627f, 471.00012f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -51732,12 +61826,15 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 302u; + span6 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span6[index3] = 302u; obj55.KillEnemyDataIds = list84; reference55 = obj55; obj53.Steps = list82; reference53 = obj53; - ref QuestSequence reference56 = ref span29[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -51745,7 +61842,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); obj56.Steps = list85; reference56 = obj56; questRoot14.QuestSequence = list80; @@ -51755,21 +61854,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span31 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference57 = ref span31[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -51782,7 +61886,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list88; reference57 = obj57; - ref QuestSequence reference58 = ref span31[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -51790,34 +61895,42 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.UseItem, 2002044u, new Vector3(75.97461f, 2.090454f, 692.9884f), 146) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2002044u, new Vector3(75.97461f, 2.090454f, 692.9884f), 146) { ItemId = 2000643u }; obj58.Steps = list89; reference58 = obj58; - ref QuestSequence reference59 = ref span31[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list90)[0]; + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2002045u, new Vector3(89.066895f, 3.189148f, 673.0906f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 1889u; + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + span6 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span6[num3] = 1889u; obj60.KillEnemyDataIds = list91; reference60 = obj60; obj59.Steps = list90; reference59 = obj59; - ref QuestSequence reference61 = ref span31[3]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -51825,7 +61938,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -51838,21 +61953,26 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list93; - num = 5; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span32 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference62 = ref span32[0]; + index = 5; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -51865,7 +61985,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list95; reference62 = obj62; - ref QuestSequence reference63 = ref span32[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -51873,7 +61994,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list96)[0]; + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-44.549854f, 7.3629045f, 405.72034f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -51881,7 +62004,9 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new ComplexCombatData + span4 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span4[index3] = new ComplexCombatData { DataId = 356u }; @@ -51889,21 +62014,25 @@ public static class AssemblyQuestLoader reference64 = obj64; obj63.Steps = list96; reference63 = obj63; - ref QuestSequence reference65 = ref span32[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.UseItem, 2002046u, new Vector3(42.86255f, 18.783813f, 582.5436f), 146) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2002046u, new Vector3(42.86255f, 18.783813f, 582.5436f), 146) { ItemId = 2000645u }; obj65.Steps = list98; reference65 = obj65; - ref QuestSequence reference66 = ref span32[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -51911,28 +62040,35 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list99)[0]; + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference67 = ref span3[index2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2002576u, new Vector3(57.99951f, 21.011597f, 569.69543f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 1890u; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + span6 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span6[num3] = 1890u; obj67.KillEnemyDataIds = list100; reference67 = obj67; obj66.Steps = list99; reference66 = obj66; - ref QuestSequence reference68 = ref span32[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -51945,13 +62081,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot17.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span33 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference69 = ref span33[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -51959,7 +62098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -51972,16 +62113,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list104; reference69 = obj69; - ref QuestSequence reference70 = ref span33[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span34 = CollectionsMarshal.AsSpan(list105); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { SkipConditions = new SkipConditions { @@ -51991,7 +62134,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference71 = ref span34[1]; + num2++; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-452.6925f, 7.386449f, 579.44867f), 146) { Fly = true, @@ -52000,24 +62144,34 @@ public static class AssemblyQuestLoader num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = 356u; + span6 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span6[index3] = 356u; obj71.KillEnemyDataIds = list106; - num3 = 6; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span35 = CollectionsMarshal.AsSpan(list107); - span35[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + index3 = 6; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj71.CompletionQuestVariablesFlags = list107; reference71 = obj71; - span34[2] = new QuestStep(EInteractionType.Interact, 1006289u, new Vector3(-454.36792f, 7.3196526f, 580.3158f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006289u, new Vector3(-454.36792f, 7.3196526f, 580.3158f), 146); obj70.Steps = list105; reference70 = obj70; - ref QuestSequence reference72 = ref span33[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -52025,8 +62179,9 @@ public static class AssemblyQuestLoader num2 = 2; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span36 = CollectionsMarshal.AsSpan(list108); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -52037,7 +62192,8 @@ public static class AssemblyQuestLoader } } }; - span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj72.Steps = list108; reference72 = obj72; questRoot17.QuestSequence = list103; @@ -52047,21 +62203,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; questRoot18.Author = list109; - num = 4; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span37 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference73 = ref span37[0]; + index = 4; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -52074,7 +62235,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list111; reference73 = obj73; - ref QuestSequence reference74 = ref span37[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -52082,8 +62244,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span38 = CollectionsMarshal.AsSpan(list112); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { SkipConditions = new SkipConditions { @@ -52093,7 +62256,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference75 = ref span38[1]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(311.96396f, 7.342495f, 653.4828f), 146) { Fly = true, @@ -52102,29 +62266,36 @@ public static class AssemblyQuestLoader num3 = 3; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span39 = CollectionsMarshal.AsSpan(list113); - span39[0] = 166u; - span39[1] = 168u; - span39[2] = 169u; + span6 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span6[index3] = 166u; + index3++; + span6[index3] = 168u; + index3++; + span6[index3] = 169u; obj75.KillEnemyDataIds = list113; reference75 = obj75; obj74.Steps = list112; reference74 = obj74; - ref QuestSequence reference76 = ref span37[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Emote, 1006736u, new Vector3(300.2517f, 7.6367383f, 651.2396f), 146) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1006736u, new Vector3(300.2517f, 7.6367383f, 651.2396f), 146) { Emote = EEmote.Psych }; obj76.Steps = list114; reference76 = obj76; - ref QuestSequence reference77 = ref span37[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -52132,7 +62303,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -52145,27 +62318,33 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "skiaz"; questRoot19.Author = list116; - num = 6; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span40 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference78 = ref span40[0]; + index = 6; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj78.Steps = list118; reference78 = obj78; - ref QuestSequence reference79 = ref span40[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -52173,21 +62352,27 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj79.Steps = list119; reference79 = obj79; - ref QuestSequence reference80 = ref span40[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146); obj80.Steps = list120; reference80 = obj80; - ref QuestSequence reference81 = ref span40[3]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -52195,16 +62380,20 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list121)[0]; + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2268u, new Vector3(-192.82831f, 9.630248f, 454.79517f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new ComplexCombatData + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + span4 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 2268u, MinimumKillCount = 3u @@ -52219,21 +62408,25 @@ public static class AssemblyQuestLoader reference82 = obj82; obj81.Steps = list121; reference81 = obj81; - ref QuestSequence reference83 = ref span40[4]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146) { Fly = true }; obj83.Steps = list123; reference83 = obj83; - ref QuestSequence reference84 = ref span40[5]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -52241,7 +62434,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj84.Steps = list124; reference84 = obj84; questRoot19.QuestSequence = list117; @@ -52251,21 +62446,26 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list125; - num = 2; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span41 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference85 = ref span41[0]; + index = 2; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -52278,7 +62478,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list127; reference85 = obj85; - ref QuestSequence reference86 = ref span41[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -52286,7 +62487,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -52299,22 +62502,27 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list129); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list129; questRoot21.Interruptible = false; - num = 6; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span42 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference87 = ref span42[0]; + index = 6; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + span2 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -52327,7 +62535,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list131; reference87 = obj87; - ref QuestSequence reference88 = ref span42[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -52335,32 +62544,40 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1006267u, new Vector3(340.81018f, 34.269722f, 110.27698f), 137); + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006267u, new Vector3(340.81018f, 34.269722f, 110.27698f), 137); obj88.Steps = list132; reference88 = obj88; - ref QuestSequence reference89 = ref span42[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = new QuestStep(EInteractionType.Interact, 1003588u, new Vector3(344.6859f, 31.889465f, 89.37195f), 137) + index2 = 4; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003588u, new Vector3(344.6859f, 31.889465f, 89.37195f), 137) { TargetTerritoryId = (ushort)137 }; - span43[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { StopDistance = 5f, Aetheryte = EAetheryteLocation.EasternLaNosceaWineport }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-272.5533f, 59.7689f, 176.81541f), 137); - span43[3] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-272.5533f, 59.7689f, 176.81541f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137); obj89.Steps = list133; reference89 = obj89; - ref QuestSequence reference90 = ref span42[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -52368,7 +62585,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list134)[0]; + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + ref QuestStep reference91 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Duty, null, null, 137); DutyOptions obj91 = new DutyOptions { @@ -52377,21 +62596,26 @@ public static class AssemblyQuestLoader num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = "(boss 2) Will walk out of the boss arena to try and attack optional enemies on the upper level, thus resetting the boss and breaking the path"; + span = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span[index3] = "(boss 2) Will walk out of the boss arena to try and attack optional enemies on the upper level, thus resetting the boss and breaking the path"; obj91.Notes = list135; questStep2.DutyOptions = obj91; reference91 = questStep2; obj90.Steps = list134; reference90 = obj90; - ref QuestSequence reference92 = ref span42[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52404,7 +62628,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list136; reference92 = obj92; - ref QuestSequence reference93 = ref span42[5]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -52412,7 +62637,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -52425,21 +62652,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span44 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference94 = ref span44[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52452,7 +62684,8 @@ public static class AssemblyQuestLoader }; obj94.Steps = list140; reference94 = obj94; - ref QuestSequence reference95 = ref span44[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -52460,18 +62693,23 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); obj95.Steps = list141; reference95 = obj95; - ref QuestSequence reference96 = ref span44[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj96.Steps = list142; reference96 = obj96; questRoot22.QuestSequence = list139; @@ -52481,13 +62719,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span45 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference97 = ref span45[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -52495,7 +62736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52508,20 +62751,24 @@ public static class AssemblyQuestLoader }; obj97.Steps = list145; reference97 = obj97; - ref QuestSequence reference98 = ref span45[1]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span46 = CollectionsMarshal.AsSpan(list146); - span46[0] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); - span46[1] = new QuestStep(EInteractionType.Interact, 1006308u, new Vector3(-42.98468f, 75.575645f, -55.069885f), 137); + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006308u, new Vector3(-42.98468f, 75.575645f, -55.069885f), 137); obj98.Steps = list146; reference98 = obj98; - ref QuestSequence reference99 = ref span45[2]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -52529,7 +62776,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj99.Steps = list147; reference99 = obj99; questRoot23.QuestSequence = list144; @@ -52539,21 +62788,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span47 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference100 = ref span47[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52566,7 +62820,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list150; reference100 = obj100; - ref QuestSequence reference101 = ref span47[1]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -52574,18 +62829,23 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1006311u, new Vector3(26.504883f, 42.202568f, 251.75854f), 137); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006311u, new Vector3(26.504883f, 42.202568f, 251.75854f), 137); obj101.Steps = list151; reference101 = obj101; - ref QuestSequence reference102 = ref span47[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj102.Steps = list152; reference102 = obj102; questRoot24.QuestSequence = list149; @@ -52595,13 +62855,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list153; - num = 3; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span48 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference103 = ref span48[0]; + index = 3; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -52609,7 +62872,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52622,28 +62887,34 @@ public static class AssemblyQuestLoader }; obj103.Steps = list155; reference103 = obj103; - ref QuestSequence reference104 = ref span48[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list156)[0]; + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference105 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, null, new Vector3(-309.02634f, 44.280117f, 464.14f), 137) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 136u; + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span6 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span6[num3] = 136u; obj105.KillEnemyDataIds = list157; reference105 = obj105; obj104.Steps = list156; reference104 = obj104; - ref QuestSequence reference106 = ref span48[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -52651,7 +62922,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj106.Steps = list158; reference106 = obj106; questRoot25.QuestSequence = list154; @@ -52661,21 +62934,26 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list159; - num = 3; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span49 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference107 = ref span49[0]; + index = 3; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + span2 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52688,7 +62966,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list161; reference107 = obj107; - ref QuestSequence reference108 = ref span49[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -52696,81 +62975,112 @@ public static class AssemblyQuestLoader num2 = 4; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span50 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference109 = ref span50[0]; + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference109 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2002059u, new Vector3(-282.88702f, 33.951294f, 308.24744f), 137); num3 = 6; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span51 = CollectionsMarshal.AsSpan(list163); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list163; reference109 = questStep3; - ref QuestStep reference110 = ref span50[1]; + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2002061u, new Vector3(-248.40167f, 33.98181f, 299.39722f), 137); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span52 = CollectionsMarshal.AsSpan(list164); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span5 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list164; reference110 = questStep4; - ref QuestStep reference111 = ref span50[2]; + index2++; + ref QuestStep reference111 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-301.2062f, 35.646942f, 273.47797f), 137); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span53 = CollectionsMarshal.AsSpan(list165); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list165; skipConditions.StepIf = skipStepConditions; questStep5.SkipConditions = skipConditions; reference111 = questStep5; - ref QuestStep reference112 = ref span50[3]; + index2++; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2002060u, new Vector3(-298.2987f, 33.89026f, 276.53918f), 137) { StopDistance = 4.5f }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span54 = CollectionsMarshal.AsSpan(list166); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + span5 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj109.CompletionQuestVariablesFlags = list166; reference112 = obj109; obj108.Steps = list162; reference108 = obj108; - ref QuestSequence reference113 = ref span49[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -52787,13 +63097,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -52801,7 +63114,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52814,18 +63129,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -52833,7 +63152,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2002062u, new Vector3(-242.63379f, 45.212402f, 495.32312f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -52841,26 +63162,32 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 1910u; + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = 1910u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -52868,7 +63195,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -52881,21 +63210,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list9; - num = 5; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span2 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span2[0]; + index = 5; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -52908,7 +63242,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -52916,21 +63251,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1006314u, new Vector3(534.8439f, 17.448048f, 450.98022f), 137); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006314u, new Vector3(534.8439f, 17.448048f, 450.98022f), 137); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 2002598u, new Vector3(524.6348f, 18.16839f, 457.1489f), 137); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002598u, new Vector3(524.6348f, 18.16839f, 457.1489f), 137); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -52938,88 +63279,126 @@ public static class AssemblyQuestLoader num2 = 5; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span3 = CollectionsMarshal.AsSpan(list14); - ref QuestStep reference11 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference11 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006319u, new Vector3(523.03345f, 17.44805f, 454.5509f), 137); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span4 = CollectionsMarshal.AsSpan(list15); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span4[5] = null; + index3 = 6; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span5 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep.CompletionQuestVariablesFlags = list15; reference11 = questStep; - ref QuestStep reference12 = ref span3[1]; + index2++; + ref QuestStep reference12 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006318u, new Vector3(525.5055f, 17.448048f, 451.0719f), 137); num3 = 6; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span5 = CollectionsMarshal.AsSpan(list16); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span5[5] = null; + span5 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep2.CompletionQuestVariablesFlags = list16; reference12 = questStep2; - ref QuestStep reference13 = ref span3[2]; + index2++; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006317u, new Vector3(533.77576f, 17.654663f, 450.43103f), 137); - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span6 = CollectionsMarshal.AsSpan(list17); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span6[5] = null; + index3 = 6; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + span5 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep3.CompletionQuestVariablesFlags = list17; reference13 = questStep3; - ref QuestStep reference14 = ref span3[3]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006316u, new Vector3(560.38745f, 20.721313f, 457.02295f), 137); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span7 = CollectionsMarshal.AsSpan(list18); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span7[5] = null; + span5 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep4.CompletionQuestVariablesFlags = list18; reference14 = questStep4; - ref QuestStep reference15 = ref span3[4]; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span8[5] = null; + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + span5 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep5.CompletionQuestVariablesFlags = list19; reference15 = questStep5; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference16 = ref span2[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) { StopDistance = 7f }; @@ -53032,13 +63411,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span9 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference17 = ref span9[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -53046,7 +63428,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -53059,70 +63443,95 @@ public static class AssemblyQuestLoader }; obj12.Steps = list23; reference17 = obj12; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span10 = CollectionsMarshal.AsSpan(list24); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(76.605774f, 80.43136f, -119.52899f), 137) + index2 = 5; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(76.605774f, 80.43136f, -119.52899f), 137) { TargetTerritoryId = (ushort)139, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - ref QuestStep reference19 = ref span10[1]; + num2++; + ref QuestStep reference19 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2002085u, new Vector3(404.86768f, 4.3182373f, 88.45642f), 139); num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list25; reference19 = questStep6; - span10[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 139) { StopDistance = 5f, Aetheryte = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - ref QuestStep reference20 = ref span10[3]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2002084u, new Vector3(437.27783f, 8.194031f, 133.04333f), 139); - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + span5 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list26; reference20 = questStep7; - ref QuestStep reference21 = ref span10[4]; + num2++; + ref QuestStep reference21 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2002083u, new Vector3(402.30408f, 8.712891f, 47.196045f), 139); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list27; reference21 = questStep8; obj13.Steps = list24; reference18 = obj13; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -53130,7 +63539,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) { StopDistance = 7f }; @@ -53143,21 +63554,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list29; - num = 4; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span14[0]; + index = 4; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -53171,7 +63587,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list31; reference23 = obj15; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -53179,18 +63596,23 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 2002086u, new Vector3(382.55884f, 25.253662f, -139.02502f), 139); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002086u, new Vector3(382.55884f, 25.253662f, -139.02502f), 139); obj16.Steps = list32; reference24 = obj16; - ref QuestSequence reference25 = ref span14[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 139) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 139) { DutyOptions = new DutyOptions { @@ -53200,7 +63622,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list33; reference25 = obj17; - ref QuestSequence reference26 = ref span14[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -53208,7 +63631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139); obj18.Steps = list34; reference26 = obj18; questRoot4.QuestSequence = list30; @@ -53218,27 +63643,33 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "skiaz"; questRoot5.Author = list35; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span15 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span15[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj19.Steps = list37; reference27 = obj19; - ref QuestSequence reference28 = ref span15[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -53246,27 +63677,36 @@ public static class AssemblyQuestLoader num2 = 6; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span16 = CollectionsMarshal.AsSpan(list38); - span16[0] = new QuestStep(EInteractionType.Interact, 2002339u, new Vector3(-134.59985f, 82.81067f, -293.4768f), 180) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002339u, new Vector3(-134.59985f, 82.81067f, -293.4768f), 180) { Fly = true }; - span16[1] = new QuestStep(EInteractionType.Interact, 2002341u, new Vector3(-137.22437f, 81.19324f, -299.39728f), 180); - span16[2] = new QuestStep(EInteractionType.Interact, 2002338u, new Vector3(-148.24146f, 81.589966f, -306.5691f), 180); - span16[3] = new QuestStep(EInteractionType.Interact, 2002342u, new Vector3(-138.0484f, 81.19324f, -311.29932f), 180); - span16[4] = new QuestStep(EInteractionType.Interact, 2002343u, new Vector3(-132.03638f, 82.07825f, -321.76703f), 180); - span16[5] = new QuestStep(EInteractionType.Interact, 2002340u, new Vector3(-116.014404f, 78.87378f, -315.08362f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002341u, new Vector3(-137.22437f, 81.19324f, -299.39728f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002338u, new Vector3(-148.24146f, 81.589966f, -306.5691f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002342u, new Vector3(-138.0484f, 81.19324f, -311.29932f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002343u, new Vector3(-132.03638f, 82.07825f, -321.76703f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002340u, new Vector3(-116.014404f, 78.87378f, -315.08362f), 180); obj20.Steps = list38; reference28 = obj20; - ref QuestSequence reference29 = ref span15[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true, NextQuestId = new QuestId(863) @@ -53280,13 +63720,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "skiaz"; questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span17 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span17[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -53294,30 +63737,37 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj22.Steps = list42; reference30 = obj22; - ref QuestSequence reference31 = ref span17[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2269u, new Vector3(-268.5741f, 64.49246f, -322.04163f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 2269u; + index3 = 1; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + span4 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span4[num3] = 2269u; obj24.KillEnemyDataIds = list44; obj24.CombatItemUse = new CombatItemUse { @@ -53328,7 +63778,8 @@ public static class AssemblyQuestLoader reference32 = obj24; obj23.Steps = list43; reference31 = obj23; - ref QuestSequence reference33 = ref span17[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -53336,7 +63787,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; @@ -53349,21 +63802,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list46; - num = 7; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span18 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span18[0]; + index = 7; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -53376,7 +63834,8 @@ public static class AssemblyQuestLoader }; obj26.Steps = list48; reference34 = obj26; - ref QuestSequence reference35 = ref span18[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -53384,83 +63843,115 @@ public static class AssemblyQuestLoader num2 = 2; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span19 = CollectionsMarshal.AsSpan(list49); - span19[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span19[1] = new QuestStep(EInteractionType.Interact, 1006361u, new Vector3(-495.964f, 19.009007f, -371.72504f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006361u, new Vector3(-495.964f, 19.009007f, -371.72504f), 140); obj27.Steps = list49; reference35 = obj27; - ref QuestSequence reference36 = ref span18[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span20 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference37 = ref span20[0]; + index2 = 4; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006348u, new Vector3(-473.99103f, 19.027954f, -370.84003f), 140); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span21 = CollectionsMarshal.AsSpan(list51); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span21[5] = null; + span5 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep9.CompletionQuestVariablesFlags = list51; reference37 = questStep9; - ref QuestStep reference38 = ref span20[1]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1006347u, new Vector3(-474.6319f, 19.027954f, -371.20624f), 140); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span22 = CollectionsMarshal.AsSpan(list52); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span22[5] = null; + index3 = 6; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span5 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep10.CompletionQuestVariablesFlags = list52; reference38 = questStep10; - ref QuestStep reference39 = ref span20[2]; + num2++; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006346u, new Vector3(-475.97467f, 19.027954f, -370.65692f), 140); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span23 = CollectionsMarshal.AsSpan(list53); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span23[5] = null; + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep11.CompletionQuestVariablesFlags = list53; reference39 = questStep11; - ref QuestStep reference40 = ref span20[3]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1006345u, new Vector3(-477.34802f, 19.027954f, -370.35175f), 140); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span24 = CollectionsMarshal.AsSpan(list54); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span24[5] = null; + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep12.CompletionQuestVariablesFlags = list54; reference40 = questStep12; obj28.Steps = list50; reference36 = obj28; - ref QuestSequence reference41 = ref span18[3]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -53468,24 +63959,28 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span25 = CollectionsMarshal.AsSpan(list55); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); - span25[1] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) { DisableNavmesh = true }; obj29.Steps = list55; reference41 = obj29; - ref QuestSequence reference42 = ref span18[4]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span26 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference43 = ref span26[0]; + index2 = 5; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true, @@ -53496,76 +63991,111 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span27 = CollectionsMarshal.AsSpan(list57); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span27[5] = null; + span5 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; skipStepConditions.CompletionQuestVariablesFlags = list57; skipConditions.StepIf = skipStepConditions; obj31.SkipConditions = skipConditions; reference43 = obj31; - ref QuestStep reference44 = ref span26[1]; + num2++; + ref QuestStep reference44 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006344u, new Vector3(-474.57086f, 18.112427f, -372.5796f), 140); - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span28 = CollectionsMarshal.AsSpan(list58); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span28[5] = null; + index3 = 6; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + span5 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep13.CompletionQuestVariablesFlags = list58; reference44 = questStep13; - ref QuestStep reference45 = ref span26[2]; + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1006351u, new Vector3(-475.82214f, 18.966919f, -372.67108f), 140); num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span29 = CollectionsMarshal.AsSpan(list59); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list59; reference45 = questStep14; - ref QuestStep reference46 = ref span26[3]; + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1006350u, new Vector3(-476.55457f, 19.027954f, -372.91522f), 140); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span30 = CollectionsMarshal.AsSpan(list60); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + span5 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list60; reference46 = questStep15; - ref QuestStep reference47 = ref span26[4]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1006349u, new Vector3(-477.6532f, 19.027954f, -372.2744f), 140); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span31 = CollectionsMarshal.AsSpan(list61); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span31[5] = null; + span5 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep16.CompletionQuestVariablesFlags = list61; reference47 = questStep16; obj30.Steps = list56; reference42 = obj30; - ref QuestSequence reference48 = ref span18[5]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 @@ -53573,23 +64103,28 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span32 = CollectionsMarshal.AsSpan(list62); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); - span32[1] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) { DisableNavmesh = true }; obj32.Steps = list62; reference48 = obj32; - ref QuestSequence reference49 = ref span18[6]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -53602,13 +64137,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list64; - num = 3; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span33 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference50 = ref span33[0]; + index = 3; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -53616,7 +64154,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -53629,21 +64169,25 @@ public static class AssemblyQuestLoader }; obj34.Steps = list66; reference50 = obj34; - ref QuestSequence reference51 = ref span33[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list67; reference51 = obj35; - ref QuestSequence reference52 = ref span33[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -53651,7 +64195,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -53664,21 +64210,26 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list69; - num = 3; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span34 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference53 = ref span34[0]; + index = 3; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -53691,7 +64242,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list71; reference53 = obj37; - ref QuestSequence reference54 = ref span34[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -53699,21 +64251,26 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj38.Steps = list72; reference54 = obj38; - ref QuestSequence reference55 = ref span34[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); obj39.Steps = list73; reference55 = obj39; questRoot9.QuestSequence = list70; @@ -53723,13 +64280,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list74; - num = 2; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span35 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference56 = ref span35[0]; + index = 2; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -53737,7 +64297,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -53750,17 +64312,20 @@ public static class AssemblyQuestLoader }; obj40.Steps = list76; reference56 = obj40; - ref QuestSequence reference57 = ref span35[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-372.23636f, -2.92979f, 178.26855f), 154); - span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-372.23636f, -2.92979f, 178.26855f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); obj41.Steps = list77; reference57 = obj41; questRoot10.QuestSequence = list75; @@ -53770,13 +64335,16 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "croizat"; questRoot11.Author = list78; - num = 3; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span37 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference58 = ref span37[0]; + index = 3; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span2 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -53784,32 +64352,40 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); obj42.Steps = list80; reference58 = obj42; - ref QuestSequence reference59 = ref span37[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2002106u, new Vector3(-282.03253f, -54.24591f, 285.99976f), 154) { ItemId = 2000690u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 138u; + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span4[num3] = 138u; obj44.KillEnemyDataIds = list82; reference60 = obj44; obj43.Steps = list81; reference59 = obj43; - ref QuestSequence reference61 = ref span37[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -53817,7 +64393,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); obj45.Steps = list83; reference61 = obj45; questRoot11.QuestSequence = list79; @@ -53827,24 +64405,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span38 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span38[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); obj46.Steps = list86; reference62 = obj46; - ref QuestSequence reference63 = ref span38[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -53852,8 +64436,9 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span39 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference64 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(48.65701f, 234.78163f, 348.13953f), 155) { StopDistance = 1f, @@ -53862,26 +64447,33 @@ public static class AssemblyQuestLoader num3 = 2; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span40 = CollectionsMarshal.AsSpan(list88); - span40[0] = 724u; - span40[1] = 725u; + span4 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span4[index3] = 724u; + index3++; + span4[index3] = 725u; obj48.KillEnemyDataIds = list88; reference64 = obj48; - span39[1] = new QuestStep(EInteractionType.Interact, 1006731u, new Vector3(52.231567f, 235.30933f, 347.85986f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006731u, new Vector3(52.231567f, 235.30933f, 347.85986f), 155); obj47.Steps = list87; reference63 = obj47; - ref QuestSequence reference65 = ref span38[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); obj49.Steps = list89; reference65 = obj49; - ref QuestSequence reference66 = ref span38[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -53889,18 +64481,23 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155); obj50.Steps = list90; reference66 = obj50; - ref QuestSequence reference67 = ref span38[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155); obj51.Steps = list91; reference67 = obj51; questRoot12.QuestSequence = list85; @@ -53910,13 +64507,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list92; - num = 4; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span41 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference68 = ref span41[0]; + index = 4; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -53924,24 +64524,30 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155) { StopDistance = 7f }; obj52.Steps = list94; reference68 = obj52; - ref QuestSequence reference69 = ref span41[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1006379u, new Vector3(538.4756f, 235.2618f, 317.1587f), 155); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006379u, new Vector3(538.4756f, 235.2618f, 317.1587f), 155); obj53.Steps = list95; reference69 = obj53; - ref QuestSequence reference70 = ref span41[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -53949,18 +64555,23 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); obj54.Steps = list96; reference70 = obj54; - ref QuestSequence reference71 = ref span41[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj55.Steps = list97; reference71 = obj55; questRoot13.QuestSequence = list93; @@ -53970,13 +64581,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span42 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference72 = ref span42[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -53984,92 +64598,127 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj56.Steps = list100; reference72 = obj56; - ref QuestSequence reference73 = ref span42[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span43 = CollectionsMarshal.AsSpan(list101); - ref QuestStep reference74 = ref span43[0]; + index2 = 4; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2002111u, new Vector3(24.12439f, 207.599f, 427.35938f), 155); - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span44 = CollectionsMarshal.AsSpan(list102); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + span5 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list102; reference74 = questStep17; - ref QuestStep reference75 = ref span43[1]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2002110u, new Vector3(11.886719f, 207.20227f, 439.1698f), 155); num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span45 = CollectionsMarshal.AsSpan(list103); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list103; reference75 = questStep18; - ref QuestStep reference76 = ref span43[2]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2002261u, new Vector3(4.196167f, 206.19507f, 465.9646f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span46 = CollectionsMarshal.AsSpan(list104); - span46[0] = 724u; - span46[1] = 725u; - span46[2] = 726u; + index3 = 3; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + span4 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span4[num3] = 724u; + num3++; + span4[num3] = 725u; + num3++; + span4[num3] = 726u; obj58.KillEnemyDataIds = list104; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span47 = CollectionsMarshal.AsSpan(list105); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list105; skipConditions2.StepIf = skipStepConditions2; obj58.SkipConditions = skipConditions2; reference76 = obj58; - ref QuestStep reference77 = ref span43[3]; + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2002261u, new Vector3(4.196167f, 206.19507f, 465.9646f), 155); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span48 = CollectionsMarshal.AsSpan(list106); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + span5 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list106; reference77 = questStep19; obj57.Steps = list101; reference73 = obj57; - ref QuestSequence reference78 = ref span42[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -54077,7 +64726,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) { StopDistance = 2f }; @@ -54090,27 +64741,33 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span49 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference79 = ref span49[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155) { StopDistance = 7f }; obj60.Steps = list110; reference79 = obj60; - ref QuestSequence reference80 = ref span49[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -54118,12 +64775,16 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list111)[0]; + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + ref QuestStep reference81 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list112); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_GAIUSB608_00890_Q1_000_020"), @@ -54133,21 +64794,24 @@ public static class AssemblyQuestLoader reference81 = questStep20; obj61.Steps = list111; reference80 = obj61; - ref QuestSequence reference82 = ref span49[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span50 = CollectionsMarshal.AsSpan(list113); - span50[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 155) + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 155) { StopDistance = 5f, Aetheryte = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj62.Steps = list113; reference82 = obj62; questRoot15.QuestSequence = list109; @@ -54157,13 +64821,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list114; - num = 3; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span51 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference83 = ref span51[0]; + index = 3; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -54171,7 +64838,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54184,31 +64853,41 @@ public static class AssemblyQuestLoader }; obj63.Steps = list116; reference83 = obj63; - ref QuestSequence reference84 = ref span51[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span52 = CollectionsMarshal.AsSpan(list117); - ref QuestStep reference85 = ref span52[0]; + index2 = 7; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + ref QuestStep reference85 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1006395u, new Vector3(206.86658f, 303.115f, -296.2539f), 155); - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span53 = CollectionsMarshal.AsSpan(list118); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + span5 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list118; reference85 = questStep21; - span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155); - ref QuestStep reference86 = ref span52[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155); + num2++; + ref QuestStep reference86 = ref span3[num2]; QuestStep obj65 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) { DisableNavmesh = true @@ -54218,56 +64897,79 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span54 = CollectionsMarshal.AsSpan(list119); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list119; skipConditions3.StepIf = skipStepConditions3; obj65.SkipConditions = skipConditions3; reference86 = obj65; - ref QuestStep reference87 = ref span52[3]; + num2++; + ref QuestStep reference87 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1006396u, new Vector3(193.1029f, 257f, 57.87744f), 155); - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span55 = CollectionsMarshal.AsSpan(list120); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + span5 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list120; reference87 = questStep22; - span52[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) { Mount = true }; - span52[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155) { DisableNavmesh = true }; - ref QuestStep reference88 = ref span52[6]; + num2++; + ref QuestStep reference88 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155); num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span56 = CollectionsMarshal.AsSpan(list121); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list121; reference88 = questStep23; obj64.Steps = list117; reference84 = obj64; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -54275,7 +64977,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -54292,13 +64996,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -54306,7 +65013,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54319,15 +65028,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -54335,12 +65047,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1904u; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 1904u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -54348,63 +65063,88 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span2[0]; - QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006410u, new Vector3(232.8112f, 357.38858f, -567.4722f), 155); - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span3[index2]; + QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006410u, new Vector3(232.59314f, 359.00003f, -563.95825f), 155); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list7; reference5 = questStep; - ref QuestStep reference6 = ref span2[1]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006408u, new Vector3(212.57336f, 361.0884f, -586.9078f), 155); num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list8; reference6 = questStep2; - ref QuestStep reference7 = ref span2[2]; + index2++; + ref QuestStep reference7 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006409u, new Vector3(189.50183f, 359.89996f, -590.20374f), 155); - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span5 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list9; reference7 = questStep3; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155); obj5.Steps = list10; reference8 = obj5; - ref QuestSequence reference9 = ref span[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -54412,7 +65152,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -54425,21 +65167,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list12; - num = 6; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span6 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span6[0]; + index = 6; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54452,7 +65199,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span6[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -54460,24 +65208,30 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1006412u, new Vector3(282.30713f, 255.013f, 91.26416f), 155); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006412u, new Vector3(282.30713f, 255.013f, 91.26416f), 155); obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span6[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span6[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -54485,63 +65239,88 @@ public static class AssemblyQuestLoader num2 = 3; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span7 = CollectionsMarshal.AsSpan(list17); - ref QuestStep reference14 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2002139u, new Vector3(208.05664f, 301.9912f, -193.59125f), 155); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span8[5] = null; + span5 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep4.CompletionQuestVariablesFlags = list18; reference14 = questStep4; - ref QuestStep reference15 = ref span7[1]; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2002140u, new Vector3(210.00989f, 301.9912f, -193.22504f), 155); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span9[5] = null; + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + span5 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; questStep5.CompletionQuestVariablesFlags = list19; reference15 = questStep5; - ref QuestStep reference16 = ref span7[2]; + index2++; + ref QuestStep reference16 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2002141u, new Vector3(212.05457f, 301.9912f, -193.65228f), 155); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span10 = CollectionsMarshal.AsSpan(list20); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span10[5] = null; + span5 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; questStep6.CompletionQuestVariablesFlags = list20; reference16 = questStep6; obj10.Steps = list17; reference13 = obj10; - ref QuestSequence reference17 = ref span6[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155); obj11.Steps = list21; reference17 = obj11; - ref QuestSequence reference18 = ref span6[5]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -54549,7 +65328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj12.Steps = list22; reference18 = obj12; questRoot2.QuestSequence = list13; @@ -54559,21 +65340,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span11 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference19 = ref span11[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54586,7 +65372,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list25; reference19 = obj13; - ref QuestSequence reference20 = ref span11[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -54594,21 +65381,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1006415u, new Vector3(238.30005f, 312f, -227.00854f), 155); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006415u, new Vector3(238.30005f, 312f, -227.00854f), 155); obj14.Steps = list26; reference20 = obj14; - ref QuestSequence reference21 = ref span11[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj15.Steps = list27; reference21 = obj15; - ref QuestSequence reference22 = ref span11[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -54616,7 +65409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006416u, new Vector3(445.0598f, 304.93317f, -258.56415f), 155) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006416u, new Vector3(445.0598f, 304.93317f, -258.56415f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -54625,15 +65420,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list28; reference22 = obj16; - ref QuestSequence reference23 = ref span11[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -54646,13 +65444,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "Friendly"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "Friendly"; questRoot4.Author = list30; - num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span12 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span12[0]; + index = 3; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -54660,7 +65461,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1006440u, new Vector3(140.3982f, 4f, -54.154297f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -54675,10 +65478,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 130; + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span6 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span6[num3] = 130; obj20.InTerritory = list33; skipConditions.AetheryteShortcutIf = obj20; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -54689,22 +65494,26 @@ public static class AssemblyQuestLoader reference25 = obj19; obj18.Steps = list32; reference24 = obj18; - ref QuestSequence reference26 = ref span12[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.UseItem, 2001019u, new Vector3(-276.60034f, -3.7995605f, -368.76483f), 141) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2001019u, new Vector3(-276.60034f, -3.7995605f, -368.76483f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, ItemId = 2000715u }; obj21.Steps = list34; reference26 = obj21; - ref QuestSequence reference27 = ref span12[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -54712,7 +65521,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007818u, new Vector3(-282.88702f, -5.987557f, -372.64062f), 141); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007818u, new Vector3(-282.88702f, -5.987557f, -372.64062f), 141); obj22.Steps = list35; reference27 = obj22; questRoot4.QuestSequence = list31; @@ -54722,21 +65533,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list36; - num = 5; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span13 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span13[0]; + index = 5; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54749,7 +65565,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list38; reference28 = obj23; - ref QuestSequence reference29 = ref span13[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -54757,21 +65574,27 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); obj24.Steps = list39; reference29 = obj24; - ref QuestSequence reference30 = ref span13[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1006442u, new Vector3(-417.92938f, 224.99995f, -301.89978f), 155); + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006442u, new Vector3(-417.92938f, 224.99995f, -301.89978f), 155); obj25.Steps = list40; reference30 = obj25; - ref QuestSequence reference31 = ref span13[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -54779,18 +65602,23 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1006443u, new Vector3(-434.95844f, 224.39996f, -199.45074f), 155); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006443u, new Vector3(-434.95844f, 224.39996f, -199.45074f), 155); obj26.Steps = list41; reference31 = obj26; - ref QuestSequence reference32 = ref span13[4]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj27.Steps = list42; reference32 = obj27; questRoot5.QuestSequence = list37; @@ -54800,13 +65628,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list43; - num = 6; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span14[0]; + index = 6; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -54814,7 +65645,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -54828,15 +65661,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list45; reference33 = obj28; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002158u, new Vector3(-424.24664f, 279.0111f, 89.58569f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -54844,7 +65680,9 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 2196u }; @@ -54858,7 +65696,8 @@ public static class AssemblyQuestLoader reference35 = obj30; obj29.Steps = list46; reference34 = obj29; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -54866,66 +65705,91 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); obj31.Steps = list48; reference36 = obj31; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span15 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference38 = ref span15[0]; + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1006450u, new Vector3(-429.22107f, 211f, -201.7091f), 155) { StopDistance = 5f }; - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span16 = CollectionsMarshal.AsSpan(list50); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span5 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list50; reference38 = obj33; - ref QuestStep reference39 = ref span15[1]; + num2++; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006449u, new Vector3(-436.51483f, 211.01697f, -204.18103f), 155); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span17 = CollectionsMarshal.AsSpan(list51); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list51; reference39 = questStep7; - ref QuestStep reference40 = ref span15[2]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006451u, new Vector3(-432.2118f, 224.39995f, -197.83319f), 155); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span18 = CollectionsMarshal.AsSpan(list52); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span5 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list52; reference40 = questStep8; obj32.Steps = list49; reference37 = obj32; - ref QuestSequence reference41 = ref span14[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -54933,18 +65797,23 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); obj34.Steps = list53; reference41 = obj34; - ref QuestSequence reference42 = ref span14[5]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007567u, new Vector3(-411.64264f, 225.02267f, -304.036f), 155); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007567u, new Vector3(-411.64264f, 225.02267f, -304.036f), 155); obj35.Steps = list54; reference42 = obj35; questRoot6.QuestSequence = list44; @@ -54954,13 +65823,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list55; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span19 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference43 = ref span19[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -54968,7 +65840,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54981,16 +65855,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list57; reference43 = obj36; - ref QuestSequence reference44 = ref span19[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference45 = ref span20[0]; + index2 = 4; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155) { Mount = true @@ -54998,60 +65874,88 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span21 = CollectionsMarshal.AsSpan(list59); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj38.CompletionQuestVariablesFlags = list59; reference45 = obj38; - ref QuestStep reference46 = ref span20[1]; + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span22 = CollectionsMarshal.AsSpan(list60); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + span5 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list60; reference46 = questStep9; - ref QuestStep reference47 = ref span20[2]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007585u, new Vector3(-462.2721f, 211f, -270.43567f), 155); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span23 = CollectionsMarshal.AsSpan(list61); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list61; reference47 = questStep10; - ref QuestStep reference48 = ref span20[3]; + num2++; + ref QuestStep reference48 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + span5 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list62; reference48 = questStep11; obj37.Steps = list58; reference44 = obj37; - ref QuestSequence reference49 = ref span19[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -55059,7 +65963,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj39.Steps = list63; reference49 = obj39; questRoot7.QuestSequence = list56; @@ -55069,21 +65975,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list64; - num = 4; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span25 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference50 = ref span25[0]; + index = 4; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55096,7 +66007,8 @@ public static class AssemblyQuestLoader }; obj40.Steps = list66; reference50 = obj40; - ref QuestSequence reference51 = ref span25[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -55104,10 +66016,13 @@ public static class AssemblyQuestLoader num2 = 4; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span26 = CollectionsMarshal.AsSpan(list67); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.1833f, 193.72365f, -330.6203f), 155); - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-495.94693f, 149.93378f, -258.90088f), 155); - ref QuestStep reference52 = ref span26[2]; + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.1833f, 193.72365f, -330.6203f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-495.94693f, 149.93378f, -258.90088f), 155); + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -55115,24 +66030,31 @@ public static class AssemblyQuestLoader num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 46u; + span4 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span4[index3] = 46u; obj42.KillEnemyDataIds = list68; reference52 = obj42; - span26[3] = new QuestStep(EInteractionType.Interact, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155); obj41.Steps = list67; reference51 = obj41; - ref QuestSequence reference53 = ref span25[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 2002590u, new Vector3(-488.6702f, 150.65222f, -317.79968f), 155); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002590u, new Vector3(-488.6702f, 150.65222f, -317.79968f), 155); obj43.Steps = list69; reference53 = obj43; - ref QuestSequence reference54 = ref span25[3]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -55140,7 +66062,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj44.Steps = list70; reference54 = obj44; questRoot8.QuestSequence = list65; @@ -55150,21 +66074,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list71; - num = 7; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span27 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span27[0]; + index = 7; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55177,7 +66106,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference55 = obj45; - ref QuestSequence reference56 = ref span27[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -55185,21 +66115,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155); obj46.Steps = list74; reference56 = obj46; - ref QuestSequence reference57 = ref span27[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155); obj47.Steps = list75; reference57 = obj47; - ref QuestSequence reference58 = ref span27[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -55207,24 +66143,30 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Emote, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155) { Emote = EEmote.Doubt }; obj48.Steps = list76; reference58 = obj48; - ref QuestSequence reference59 = ref span27[4]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 2002174u, new Vector3(-391.3482f, 219.25684f, -179.43091f), 155); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002174u, new Vector3(-391.3482f, 219.25684f, -179.43091f), 155); obj49.Steps = list77; reference59 = obj49; - ref QuestSequence reference60 = ref span27[5]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -55232,18 +66174,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 2002175u, new Vector3(-391.22614f, 219.28735f, -179.49188f), 155); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002175u, new Vector3(-391.22614f, 219.28735f, -179.49188f), 155); obj50.Steps = list78; reference60 = obj50; - ref QuestSequence reference61 = ref span27[6]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj51.Steps = list79; reference61 = obj51; questRoot9.QuestSequence = list72; @@ -55253,13 +66200,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span28 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference62 = ref span28[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -55267,7 +66217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55280,15 +66232,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list82; reference62 = obj52; - ref QuestSequence reference63 = ref span28[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006469u, new Vector3(-886.2593f, 228.30641f, 1.6021729f), 155) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006469u, new Vector3(-886.2593f, 228.30641f, 1.6021729f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -55297,7 +66252,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list83; reference63 = obj53; - ref QuestSequence reference64 = ref span28[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -55305,7 +66261,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj54.Steps = list84; reference64 = obj54; questRoot10.QuestSequence = list81; @@ -55319,13 +66277,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -55333,7 +66294,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55346,18 +66309,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -55365,18 +66332,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006490u, new Vector3(-673.21277f, 205.95982f, -515.7702f), 155); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006490u, new Vector3(-673.21277f, 205.95982f, -515.7702f), 155); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Duty, null, null, 155); DutyOptions obj5 = new DutyOptions { @@ -55385,19 +66357,23 @@ public static class AssemblyQuestLoader int num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = "(boss 1) AI will not face cleaves away from healer, typically killing them"; - span2[1] = "(boss 3) AI will not face cleaves away from healer, which doesn't always kill them"; + span = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span[num4] = "(boss 1) AI will not face cleaves away from healer, typically killing them"; + num4++; + span[num4] = "(boss 3) AI will not face cleaves away from healer, which doesn't always kill them"; obj5.Notes = list7; questStep.DutyOptions = obj5; reference5 = questStep; obj4.Steps = list6; reference4 = obj4; - span[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -55405,7 +66381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006491u, new Vector3(7.248047f, -21.970922f, 119.73743f), 132) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006491u, new Vector3(7.248047f, -21.970922f, 119.73743f), 132) { StopDistance = 5f }; @@ -55418,121 +66396,75 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span4 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span4[0]; - QuestStep obj8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(28.973171f, -19.000002f, 102.00182f), 132) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAirship - } - }; - SkipConditions skipConditions = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); - CollectionsMarshal.AsSpan(list13)[0] = 132; - skipAetheryteCondition.InTerritory = list13; - skipConditions.AetheryteShortcutIf = skipAetheryteCondition; - obj8.SkipConditions = skipConditions; - reference8 = obj8; - 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(); - 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); - CollectionsMarshal.AsSpan(list15)[0] = 132; - skipAetheryteCondition2.InTerritory = list15; - skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; - obj9.SkipConditions = skipConditions2; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_GAIUSC102_00953_Q1_000_110") - }; - obj9.DialogueChoices = list16; - reference9 = obj9; - span4[2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132) { StopDistance = 5f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference10 = ref span3[1]; - QuestSequence obj10 = new QuestSequence + num++; + ref QuestSequence reference8 = ref span2[num]; + QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - obj10.Steps = list17; - reference10 = obj10; + obj8.Steps = list12; + reference8 = obj8; questRoot2.QuestSequence = list10; AddQuest(questId2, questRoot2); QuestId questId3 = new QuestId(955); QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "JerryWester"; - questRoot3.Author = list18; - num = 2; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span5 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference11 = ref span5[0]; - QuestSequence obj11 = new QuestSequence + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "JerryWester"; + questRoot3.Author = list13; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; + QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -55543,41 +66475,49 @@ public static class AssemblyQuestLoader } } }; - obj11.Steps = list20; - reference11 = obj11; - ref QuestSequence reference12 = ref span5[1]; - QuestSequence obj12 = new QuestSequence + obj9.Steps = list15; + reference9 = obj9; + num++; + ref QuestSequence reference10 = ref span2[num]; + QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); - obj12.Steps = list21; - reference12 = obj12; - questRoot3.QuestSequence = list19; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); + obj10.Steps = list16; + reference10 = obj10; + questRoot3.QuestSequence = list14; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(956); QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; - questRoot4.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference13 = ref span6[0]; - QuestSequence obj13 = new QuestSequence + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "JerryWester"; + questRoot4.Author = list17; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span2[num]; + QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -55588,141 +66528,166 @@ public static class AssemblyQuestLoader } } }; - obj13.Steps = list24; - reference13 = obj13; - ref QuestSequence reference14 = ref span6[1]; - QuestSequence obj14 = new QuestSequence + obj11.Steps = list19; + reference11 = obj11; + num++; + ref QuestSequence reference12 = ref span2[num]; + QuestSequence obj12 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.WalkTo, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { StopDistance = 3f }; - span7[1] = new QuestStep(EInteractionType.UseItem, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { DelaySecondsAtStart = 2f, ItemId = 2000742u }; - obj14.Steps = list25; - reference14 = obj14; - ref QuestSequence reference15 = ref span6[2]; - QuestSequence obj15 = new QuestSequence + obj12.Steps = list20; + reference12 = obj12; + num++; + ref QuestSequence reference13 = ref span2[num]; + QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.UseItem, 2002501u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2002501u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { DelaySecondsAtStart = 3f, ItemId = 2000837u }; - obj15.Steps = list26; - reference15 = obj15; - ref QuestSequence reference16 = ref span6[3]; - QuestSequence obj16 = new QuestSequence + obj13.Steps = list21; + reference13 = obj13; + num++; + ref QuestSequence reference14 = ref span2[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - obj16.Steps = list27; - reference16 = obj16; - ref QuestSequence reference17 = ref span6[4]; - QuestSequence obj17 = new QuestSequence + obj14.Steps = list22; + reference14 = obj14; + num++; + ref QuestSequence reference15 = ref span2[num]; + QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - obj17.Steps = list28; - reference17 = obj17; - questRoot4.QuestSequence = list23; + obj15.Steps = list23; + reference15 = obj15; + questRoot4.QuestSequence = list18; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(959); QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; - questRoot5.Author = list29; - num = 2; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference18 = ref span8[0]; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "JerryWester"; + questRoot5.Author = list24; + index = 2; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span2[num]; + QuestSequence obj16 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + { + AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj16.Steps = list26; + reference16 = obj16; + num++; + ref QuestSequence reference17 = ref span2[num]; + QuestSequence obj17 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + { + AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport + }; + obj17.Steps = list27; + reference17 = obj17; + questRoot5.QuestSequence = list25; + AddQuest(questId5, questRoot5); + QuestId questId6 = new QuestId(960); + QuestRoot questRoot6 = new QuestRoot(); + num = 1; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "JerryWester"; + questRoot6.Author = list28; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) - { - AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj18.Steps = list31; - reference18 = obj18; - ref QuestSequence reference19 = ref span8[1]; - QuestSequence obj19 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport - }; - obj19.Steps = list32; - reference19 = obj19; - questRoot5.QuestSequence = list30; - AddQuest(questId5, questRoot5); - QuestId questId6 = new QuestId(960); - QuestRoot questRoot6 = new QuestRoot(); - num = 1; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; - questRoot6.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span9 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference20 = ref span9[0]; - QuestSequence obj20 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -55733,223 +66698,185 @@ public static class AssemblyQuestLoader } } }; - obj20.Steps = list35; - reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; - QuestSequence obj21 = new QuestSequence + obj18.Steps = list30; + reference18 = obj18; + num++; + ref QuestSequence reference19 = ref span2[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference22 = ref span10[0]; - QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.43436f, -10.900522f, 254.15413f), 138); - SkipConditions skipConditions3 = new SkipConditions(); - SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions3.CompletionQuestVariablesFlags = list37; - skipConditions3.StepIf = skipStepConditions3; - questStep2.SkipConditions = skipConditions3; - reference22 = questStep2; - ref QuestStep reference23 = ref span10[1]; - QuestStep obj22 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.1029f, -12.214727f, 253.75018f), 138) + index2 = 5; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; + QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.6569f, -11.008737f, 254.36206f), 138); + SkipConditions skipConditions = new SkipConditions(); + SkipStepConditions skipStepConditions = new SkipStepConditions(); + num4 = 6; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span4 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions.CompletionQuestVariablesFlags = list32; + skipConditions.StepIf = skipStepConditions; + questStep2.SkipConditions = skipConditions; + reference20 = questStep2; + num2++; + ref QuestStep reference21 = ref span3[num2]; + QuestStep obj20 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.4823f, -15.19004f, 253.61394f), 138) { DisableNavmesh = true }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + SkipConditions skipConditions2 = new SkipConditions(); + SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span12 = CollectionsMarshal.AsSpan(list38); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions4.CompletionQuestVariablesFlags = list38; - skipConditions4.StepIf = skipStepConditions4; - obj22.SkipConditions = skipConditions4; - reference23 = obj22; - ref QuestStep reference24 = ref span10[2]; - QuestStep obj23 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.68527f, -15.189899f, 241.07025f), 138) - { - DisableNavmesh = true - }; - SkipConditions skipConditions5 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span13 = CollectionsMarshal.AsSpan(list39); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions5.CompletionQuestVariablesFlags = list39; - skipConditions5.StepIf = skipStepConditions5; - obj23.SkipConditions = skipConditions5; - reference24 = obj23; - ref QuestStep reference25 = ref span10[3]; - QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1006500u, new Vector3(321.1565f, -15.187395f, 253.52856f), 138) + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + span4 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions2.CompletionQuestVariablesFlags = list33; + skipConditions2.StepIf = skipStepConditions2; + obj20.SkipConditions = skipConditions2; + reference21 = obj20; + num2++; + ref QuestStep reference22 = ref span3[num2]; + QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1006500u, new Vector3(321.1565f, -15.187395f, 253.52856f), 138) { StopDistance = 5f }; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span14 = CollectionsMarshal.AsSpan(list40); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj24.CompletionQuestVariablesFlags = list40; - reference25 = obj24; - ref QuestStep reference26 = ref span10[4]; - QuestStep obj25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.6691f, -15.190072f, 236.13472f), 138) + num4 = 6; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj21.CompletionQuestVariablesFlags = list34; + reference22 = obj21; + num2++; + ref QuestStep reference23 = ref span3[num2]; + QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1006499u, new Vector3(260.88342f, -24.975f, 249.04248f), 138) { - DisableNavmesh = true + AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - SkipConditions skipConditions6 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span15 = CollectionsMarshal.AsSpan(list41); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - skipStepConditions6.CompletionQuestVariablesFlags = list41; - skipConditions6.StepIf = skipStepConditions6; - obj25.SkipConditions = skipConditions6; - reference26 = obj25; - ref QuestStep reference27 = ref span10[5]; - QuestStep obj26 = new QuestStep(EInteractionType.Jump, null, new Vector3(317.6691f, -15.190072f, 236.13472f), 138) - { - StopDistance = 1f, - JumpDestination = new JumpDestination - { - Position = new Vector3(311.00226f, -25.001122f, 236.11098f) - } - }; - SkipConditions skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span16 = CollectionsMarshal.AsSpan(list42); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - skipStepConditions7.CompletionQuestVariablesFlags = list42; - skipConditions7.StepIf = skipStepConditions7; - obj26.SkipConditions = skipConditions7; - reference27 = obj26; - 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 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; - ref QuestStep reference29 = ref span10[7]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006499u, new Vector3(260.88342f, -24.975f, 249.04248f), 138); - num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span18 = CollectionsMarshal.AsSpan(list44); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list44; - reference29 = questStep4; - 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 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; - ref QuestSequence reference31 = ref span9[2]; - QuestSequence obj27 = new QuestSequence + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + span4 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj22.CompletionQuestVariablesFlags = list35; + reference23 = obj22; + num2++; + ref QuestStep reference24 = ref span3[num2]; + QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006498u, new Vector3(178.78992f, -41.131824f, 257.16016f), 138); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list36; + reference24 = questStep3; + obj19.Steps = list31; + reference19 = obj19; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span20 = CollectionsMarshal.AsSpan(list46); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); - obj27.Steps = list46; - reference31 = obj27; - questRoot6.QuestSequence = list34; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + obj23.Steps = list37; + reference25 = obj23; + questRoot6.QuestSequence = list29; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(961); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; - questRoot7.Author = list47; - num = 5; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span21 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference32 = ref span21[0]; - QuestSequence obj28 = new QuestSequence + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "JerryWester"; + questRoot7.Author = list38; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -55960,348 +66887,432 @@ public static class AssemblyQuestLoader } } }; - obj28.Steps = list49; - reference32 = obj28; - ref QuestSequence reference33 = ref span21[1]; - QuestSequence obj29 = new QuestSequence + obj24.Steps = list40; + reference26 = obj24; + num++; + ref QuestSequence reference27 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span22 = CollectionsMarshal.AsSpan(list50); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); - span22[1] = new QuestStep(EInteractionType.Interact, 1006502u, new Vector3(182.39111f, -41.0828f, 260.151f), 138); - obj29.Steps = list50; - reference33 = obj29; - ref QuestSequence reference34 = ref span21[2]; - QuestSequence obj30 = new QuestSequence + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006502u, new Vector3(182.39111f, -41.0828f, 260.151f), 138); + obj25.Steps = list41; + reference27 = obj25; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span23 = CollectionsMarshal.AsSpan(list51); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); - span23[1] = new QuestStep(EInteractionType.Interact, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); - obj30.Steps = list51; - reference34 = obj30; - ref QuestSequence reference35 = ref span21[3]; - QuestSequence obj31 = new QuestSequence + index2 = 2; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + obj26.Steps = list42; + reference28 = obj26; + num++; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span24 = CollectionsMarshal.AsSpan(list52); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); - span24[1] = new QuestStep(EInteractionType.Interact, 1006501u, new Vector3(311.4214f, -36.405907f, 333.54688f), 138); - obj31.Steps = list52; - reference35 = obj31; - ref QuestSequence reference36 = ref span21[4]; - QuestSequence obj32 = new QuestSequence + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006501u, new Vector3(311.4214f, -36.405907f, 333.54688f), 138); + obj27.Steps = list43; + reference29 = obj27; + num++; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span25 = CollectionsMarshal.AsSpan(list53); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(305.6621f, -36.405907f, 320.81702f), 138) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(305.6621f, -36.405907f, 320.81702f), 138) { Mount = true }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); - obj32.Steps = list53; - reference36 = obj32; - questRoot7.QuestSequence = list48; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + obj28.Steps = list44; + reference30 = obj28; + questRoot7.QuestSequence = list39; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(962); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; - questRoot8.Author = list54; - num = 4; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span26 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference37 = ref span26[0]; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "JerryWester"; + questRoot8.Author = list45; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference31 = ref span2[num]; + QuestSequence obj29 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + { + AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj29.Steps = list47; + reference31 = obj29; + num++; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj30 = new QuestSequence + { + Sequence = 1 + }; + index2 = 2; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007640u, new Vector3(317.95215f, -40.425003f, 374.10547f), 138); + obj30.Steps = list48; + reference32 = obj30; + num++; + ref QuestSequence reference33 = ref span2[num]; + QuestSequence obj31 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007540u, new Vector3(-285.96942f, -40.868286f, 410.39136f), 138) + { + StopDistance = 7f + }; + obj31.Steps = list49; + reference33 = obj31; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj32 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + obj32.Steps = list50; + reference34 = obj32; + questRoot8.QuestSequence = list46; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(963); + QuestRoot questRoot9 = new QuestRoot(); + num = 1; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "JerryWester"; + questRoot9.Author = list51; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj33.Steps = list56; - reference37 = obj33; - ref QuestSequence reference38 = ref span26[1]; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + obj33.Steps = list53; + reference35 = obj33; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - Span span27 = CollectionsMarshal.AsSpan(list57); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); - span27[1] = new QuestStep(EInteractionType.Interact, 1007640u, new Vector3(317.95215f, -40.425003f, 374.10547f), 138); - obj34.Steps = list57; - reference38 = obj34; - ref QuestSequence reference39 = ref span26[2]; + index2 = 3; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1007639u, new Vector3(-196.82617f, -40.651188f, 499.9618f), 138); + num3 = 6; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span4 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list55; + reference37 = questStep4; + num2++; + ref QuestStep reference38 = ref span3[num2]; + QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006506u, new Vector3(-198.47418f, -40.461403f, 499.9923f), 138); + num4 = 6; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span4 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list56; + reference38 = questStep5; + num2++; + ref QuestStep reference39 = ref span3[num2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1006505u, new Vector3(-200.36627f, -40.340702f, 503.19666f), 138); + num3 = 6; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + span4 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list57; + reference39 = questStep6; + obj34.Steps = list54; + reference36 = obj34; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj35 = new QuestSequence { - Sequence = 2 + Sequence = byte.MaxValue }; num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1007540u, new Vector3(-285.96942f, -40.868286f, 410.39136f), 138) - { - StopDistance = 7f - }; + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj35.Steps = list58; - reference39 = obj35; - ref QuestSequence reference40 = ref span26[3]; - QuestSequence obj36 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); - obj36.Steps = list59; - reference40 = obj36; - questRoot8.QuestSequence = list55; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(963); - QuestRoot questRoot9 = new QuestRoot(); - num = 1; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; - questRoot9.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span28 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference41 = ref span28[0]; - QuestSequence obj37 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); - obj37.Steps = list62; - reference41 = obj37; - ref QuestSequence reference42 = ref span28[1]; - QuestSequence obj38 = new QuestSequence - { - Sequence = 1 - }; - num2 = 3; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span29 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference43 = ref span29[0]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007639u, new Vector3(-196.82617f, -40.651188f, 499.9618f), 138); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span30 = CollectionsMarshal.AsSpan(list64); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list64; - reference43 = questStep6; - 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 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; - ref QuestStep reference45 = ref span29[2]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006505u, new Vector3(-200.36627f, -40.340702f, 503.19666f), 138); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span32 = CollectionsMarshal.AsSpan(list66); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list66; - reference45 = questStep8; - obj38.Steps = list63; - reference42 = obj38; - ref QuestSequence reference46 = ref span28[2]; - QuestSequence obj39 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); - obj39.Steps = list67; - reference46 = obj39; - questRoot9.QuestSequence = list61; + reference40 = obj35; + questRoot9.QuestSequence = list52; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(967); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; - questRoot10.Author = list68; - num = 7; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span33 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference47 = ref span33[0]; - QuestSequence obj40 = new QuestSequence + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "JerryWester"; + questRoot10.Author = list59; + index = 7; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); - obj40.Steps = list70; - reference47 = obj40; - ref QuestSequence reference48 = ref span33[1]; - QuestSequence obj41 = new QuestSequence + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + obj36.Steps = list61; + reference41 = obj36; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1006507u, new Vector3(-287.22064f, -40.98314f, 407.64465f), 138); - obj41.Steps = list71; - reference48 = obj41; - ref QuestSequence reference49 = ref span33[2]; - QuestSequence obj42 = new QuestSequence + List list62 = new List(num2); + CollectionsMarshal.SetCount(list62, num2); + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006507u, new Vector3(-287.22064f, -40.98314f, 407.64465f), 138); + obj37.Steps = list62; + reference42 = obj37; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); - obj42.Steps = list72; - reference49 = obj42; - ref QuestSequence reference50 = ref span33[3]; - QuestSequence obj43 = new QuestSequence + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); + obj38.Steps = list63; + reference43 = obj38; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002189u, new Vector3(-307.75922f, -41.672424f, 695.3993f), 138) + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002189u, new Vector3(-307.75922f, -41.672424f, 695.3993f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj43.Steps = list73; - reference50 = obj43; - ref QuestSequence reference51 = ref span33[4]; - QuestSequence obj44 = new QuestSequence + obj39.Steps = list64; + reference44 = obj39; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); - obj44.Steps = list74; - reference51 = obj44; - ref QuestSequence reference52 = ref span33[5]; - QuestSequence obj45 = new QuestSequence + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); + obj40.Steps = list65; + reference45 = obj40; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj41 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); - obj45.Steps = list75; - reference52 = obj45; - ref QuestSequence reference53 = ref span33[6]; - QuestSequence obj46 = new QuestSequence + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + obj41.Steps = list66; + reference46 = obj41; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span34 = CollectionsMarshal.AsSpan(list76); - span34[0] = new QuestStep(EInteractionType.Interact, 1005239u, new Vector3(-289.9062f, -41.2455f, 406.51562f), 138) + index2 = 2; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005239u, new Vector3(-289.9062f, -41.2455f, 406.51562f), 138) { TargetTerritoryId = (ushort)138, Comment = "Ferry Skipper" }; - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); - obj46.Steps = list76; - reference53 = obj46; - questRoot10.QuestSequence = list69; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + obj42.Steps = list67; + reference47 = obj42; + questRoot10.QuestSequence = list60; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(969); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "UcanPatates"; - questRoot11.Author = list77; - num = 2; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span35 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference54 = ref span35[0]; - QuestSequence obj47 = new QuestSequence + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "UcanPatates"; + questRoot11.Author = list68; + index = 2; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list79)[0]; - QuestStep obj48 = new QuestStep(EInteractionType.AcceptQuest, 1006711u, new Vector3(-140.39832f, 7.8986163f, -142.99237f), 133) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference49 = ref span3[index2]; + QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1006711u, new Vector3(-140.39832f, 7.8986163f, -142.99237f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -56310,33 +67321,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - SkipConditions skipConditions9 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 2; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span36 = CollectionsMarshal.AsSpan(list80); - span36[0] = 132; - span36[1] = 133; - skipAetheryteCondition3.InTerritory = list80; - skipConditions9.AetheryteShortcutIf = skipAetheryteCondition3; - skipConditions9.AethernetShortcutIf = new SkipAetheryteCondition + SkipConditions skipConditions3 = new SkipConditions(); + SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); + num4 = 2; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span5 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span5[num3] = 132; + num3++; + span5[num3] = 133; + skipAetheryteCondition.InTerritory = list71; + skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; + skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - obj48.SkipConditions = skipConditions9; - reference55 = obj48; - obj47.Steps = list79; - reference54 = obj47; - ref QuestSequence reference56 = ref span35[1]; - QuestSequence obj49 = new QuestSequence + obj44.SkipConditions = skipConditions3; + reference49 = obj44; + obj43.Steps = list70; + reference48 = obj43; + num++; + ref QuestSequence reference50 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56349,30 +67365,240 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(970) }; - obj49.Steps = list81; - reference56 = obj49; - questRoot11.QuestSequence = list78; + obj45.Steps = list72; + reference50 = obj45; + questRoot11.QuestSequence = list69; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(970); QuestRoot questRoot12 = new QuestRoot(); num = 1; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "UcanPatates"; + questRoot12.Author = list73; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj46 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj46.Steps = list75; + reference51 = obj46; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj47 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) + { + AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj47.Steps = list76; + reference52 = obj47; + num++; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj48 = new QuestSequence + { + Sequence = 2 + }; + num2 = 3; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; + QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2002191u, new Vector3(189.6543f, 7.94989f, 133.65369f), 152) + { + StopDistance = 0.25f, + Fly = true, + AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + num3 = 6; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + span4 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj49.CompletionQuestVariablesFlags = list78; + reference54 = obj49; + index2++; + ref QuestStep reference55 = ref span3[index2]; + QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2002192u, new Vector3(181.04822f, 0.07623291f, 43.289795f), 152) + { + StopDistance = 0.25f, + Fly = true, + AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + num4 = 6; + List list79 = new List(num4); + CollectionsMarshal.SetCount(list79, num4); + span4 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj50.CompletionQuestVariablesFlags = list79; + reference55 = obj50; + index2++; + ref QuestStep reference56 = ref span3[index2]; + QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2002190u, new Vector3(233.66138f, 6.42395f, 199.11487f), 152) + { + StopDistance = 0.25f, + Fly = true, + AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + num3 = 6; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + span4 = CollectionsMarshal.AsSpan(list80); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj51.CompletionQuestVariablesFlags = list80; + reference56 = obj51; + obj48.Steps = list77; + reference53 = obj48; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj52 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 2; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.74073f, 6.729165f, 190.69174f), 152) + { + AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + { + Fly = true, + NextQuestId = new QuestId(972) + }; + obj52.Steps = list81; + reference57 = obj52; + questRoot12.QuestSequence = list74; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(972); + QuestRoot questRoot13 = new QuestRoot(); + num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "UcanPatates"; - questRoot12.Author = list82; - num = 4; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span37 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference57 = ref span37[0]; - QuestSequence obj50 = new QuestSequence + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "UcanPatates"; + questRoot13.Author = list82; + index = 3; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 0 }; num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56384,17 +67610,20 @@ public static class AssemblyQuestLoader } } }; - obj50.Steps = list84; - reference57 = obj50; - ref QuestSequence reference58 = ref span37[1]; - QuestSequence obj51 = new QuestSequence + obj53.Steps = list84; + reference58 = obj53; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) + index2 = 2; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-193.69008f, 55.59636f, -177.57457f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -56405,146 +67634,22 @@ public static class AssemblyQuestLoader } } }; - obj51.Steps = list85; - reference58 = obj51; - ref QuestSequence reference59 = ref span37[2]; - QuestSequence obj52 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007568u, new Vector3(-183.88647f, 57.451885f, -143.93835f), 152); + obj54.Steps = list85; + reference59 = obj54; + num++; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { - Sequence = 2 + Sequence = byte.MaxValue }; - num2 = 3; + num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - 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, - Fly = true, - AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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; - 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, - Fly = true, - AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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); - obj54.CompletionQuestVariablesFlags = list88; - reference61 = obj54; - 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, - Fly = true, - AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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; - ref QuestSequence reference63 = ref span37[3]; - QuestSequence obj56 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span42 = CollectionsMarshal.AsSpan(list90); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.74073f, 6.729165f, 190.69174f), 152) - { - AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) - { - Fly = true, - NextQuestId = new QuestId(972) - }; - obj56.Steps = list90; - reference63 = obj56; - questRoot12.QuestSequence = list83; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(972); - QuestRoot questRoot13 = new QuestRoot(); - num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "UcanPatates"; - questRoot13.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span43 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference64 = ref span43[0]; - QuestSequence obj57 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56556,137 +67661,110 @@ public static class AssemblyQuestLoader } } }; - obj57.Steps = list93; - reference64 = obj57; - ref QuestSequence reference65 = ref span43[1]; - QuestSequence obj58 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-193.69008f, 55.59636f, -177.57457f), 152) - { - AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - span44[1] = new QuestStep(EInteractionType.Interact, 1007568u, new Vector3(-183.88647f, 57.451885f, -143.93835f), 152); - obj58.Steps = list94; - reference65 = obj58; - ref QuestSequence reference66 = ref span43[2]; - QuestSequence obj59 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj59.Steps = list95; - reference66 = obj59; - questRoot13.QuestSequence = list92; + obj55.Steps = list86; + reference60 = obj55; + questRoot13.QuestSequence = list83; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(973); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "croizat"; - questRoot14.Author = list96; - num = 3; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span45 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference67 = ref span45[0]; - QuestSequence obj60 = new QuestSequence + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "croizat"; + questRoot14.Author = list87; + index = 3; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); - obj60.Steps = list98; - reference67 = obj60; - ref QuestSequence reference68 = ref span45[1]; - QuestSequence obj61 = new QuestSequence + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); + obj56.Steps = list89; + reference61 = obj56; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list99)[0]; - QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.741034f, 18.766914f, -0.8730635f), 152) + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + ref QuestStep reference63 = ref span3[index2]; + QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.741034f, 18.766914f, -0.8730635f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = new ComplexCombatData + num4 = 1; + List list91 = new List(num4); + CollectionsMarshal.SetCount(list91, num4); + Span span6 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 133u, MinimumKillCount = 4u, RewardItemId = 2000751u, RewardItemCount = 4 }; - obj62.ComplexCombatData = list100; - reference69 = obj62; - obj61.Steps = list99; - reference68 = obj61; - ref QuestSequence reference70 = ref span45[2]; - QuestSequence obj63 = new QuestSequence + obj58.ComplexCombatData = list91; + reference63 = obj58; + obj57.Steps = list90; + reference62 = obj57; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); - obj63.Steps = list101; - reference70 = obj63; - questRoot14.QuestSequence = list97; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); + obj59.Steps = list92; + reference64 = obj59; + questRoot14.QuestSequence = list88; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(975); QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "JerryWester"; - questRoot15.Author = list102; - num = 2; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span46 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference71 = ref span46[0]; - QuestSequence obj64 = new QuestSequence + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "JerryWester"; + questRoot15.Author = list93; + index = 2; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AethernetShortcut = new AethernetShortcut { @@ -56694,19 +67772,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj64.Steps = list104; - reference71 = obj64; - ref QuestSequence reference72 = ref span46[1]; - QuestSequence obj65 = new QuestSequence + obj60.Steps = list95; + reference65 = obj60; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span47 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference73 = ref span47[0]; - QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + index2 = 2; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference67 = ref span3[num2]; + QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { AethernetShortcut = new AethernetShortcut { @@ -56715,596 +67795,683 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span7 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC308_00975_Q1_000_040") }; - obj66.DialogueChoices = list106; - reference73 = obj66; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); - obj65.Steps = list105; - reference72 = obj65; - questRoot15.QuestSequence = list103; + obj62.DialogueChoices = list97; + reference67 = obj62; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); + obj61.Steps = list96; + reference66 = obj61; + questRoot15.QuestSequence = list94; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(978); QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; - questRoot16.Author = list107; - num = 2; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span48 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference74 = ref span48[0]; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list98; + index = 2; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj63 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007473u, new Vector3(37.308228f, 1.2000015f, 2.9144287f), 212) + { + StopDistance = 7f + }; + obj63.Steps = list100; + reference68 = obj63; + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj64 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) + { + AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead + }; + obj64.Steps = list101; + reference69 = obj64; + questRoot16.QuestSequence = list99; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(979); + QuestRoot questRoot17 = new QuestRoot(); + num = 1; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; + questRoot17.Author = list102; + index = 2; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj65 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155); + obj65.Steps = list104; + reference70 = obj65; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj66 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155); + obj66.Steps = list105; + reference71 = obj66; + questRoot17.QuestSequence = list103; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(980); + QuestRoot questRoot18 = new QuestRoot(); + num = 1; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "JerryWester"; + questRoot18.Author = list106; + index = 3; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007473u, new Vector3(37.308228f, 1.2000015f, 2.9144287f), 212) - { - StopDistance = 7f - }; - obj67.Steps = list109; - reference74 = obj67; - ref QuestSequence reference75 = ref span48[1]; + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + obj67.Steps = list108; + reference72 = obj67; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj68 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006517u, new Vector3(-49.607117f, 223.60161f, 350.57593f), 155); + obj68.Steps = list109; + reference73 = obj68; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) - { - AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead - }; - obj68.Steps = list110; - reference75 = obj68; - questRoot16.QuestSequence = list108; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(979); - QuestRoot questRoot17 = new QuestRoot(); - num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; - questRoot17.Author = list111; - num = 2; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span49 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span49[0]; - QuestSequence obj69 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155); - obj69.Steps = list113; - reference76 = obj69; - ref QuestSequence reference77 = ref span49[1]; - QuestSequence obj70 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155); - obj70.Steps = list114; - reference77 = obj70; - questRoot17.QuestSequence = list112; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(980); - QuestRoot questRoot18 = new QuestRoot(); - num = 1; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "JerryWester"; - questRoot18.Author = list115; - num = 3; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span50 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference78 = ref span50[0]; - QuestSequence obj71 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); - obj71.Steps = list117; - reference78 = obj71; - ref QuestSequence reference79 = ref span50[1]; - QuestSequence obj72 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1006517u, new Vector3(-49.607117f, 223.60161f, 350.57593f), 155); - obj72.Steps = list118; - reference79 = obj72; - ref QuestSequence reference80 = ref span50[2]; - QuestSequence obj73 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); - obj73.Steps = list119; - reference80 = obj73; - questRoot18.QuestSequence = list116; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); + obj69.Steps = list110; + reference74 = obj69; + questRoot18.QuestSequence = list107; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(981); QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "JerryWester"; - questRoot19.Author = list120; - num = 8; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span51 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference81 = ref span51[0]; - QuestSequence obj74 = new QuestSequence + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "JerryWester"; + questRoot19.Author = list111; + index = 8; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); - obj74.Steps = list122; - reference81 = obj74; - ref QuestSequence reference82 = ref span51[1]; - QuestSequence obj75 = new QuestSequence + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); + obj70.Steps = list113; + reference75 = obj70; + num++; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2002196u, new Vector3(-322.80463f, 216.54077f, 655.8479f), 155); - obj75.Steps = list123; - reference82 = obj75; - ref QuestSequence reference83 = ref span51[2]; - QuestSequence obj76 = new QuestSequence + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002196u, new Vector3(-322.80463f, 216.54077f, 655.8479f), 155); + obj71.Steps = list114; + reference76 = obj71; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2002197u, new Vector3(-290.9438f, 223.25464f, 590.5393f), 155); - obj76.Steps = list124; - reference83 = obj76; - ref QuestSequence reference84 = ref span51[3]; - QuestSequence obj77 = new QuestSequence + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002197u, new Vector3(-290.9438f, 223.25464f, 590.5393f), 155); + obj72.Steps = list115; + reference77 = obj72; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 2002198u, new Vector3(-316.15173f, 228.93103f, 540.917f), 155); - obj77.Steps = list125; - reference84 = obj77; - ref QuestSequence reference85 = ref span51[4]; - QuestSequence obj78 = new QuestSequence + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002198u, new Vector3(-316.15173f, 228.93103f, 540.917f), 155); + obj73.Steps = list116; + reference78 = obj73; + num++; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2002199u, new Vector3(-338.2467f, 235.21777f, 525.5664f), 155); - obj78.Steps = list126; - reference85 = obj78; - ref QuestSequence reference86 = ref span51[5]; - QuestSequence obj79 = new QuestSequence + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002199u, new Vector3(-338.2467f, 235.21777f, 525.5664f), 155); + obj74.Steps = list117; + reference79 = obj74; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2002200u, new Vector3(-358.29712f, 236.71313f, 506.27905f), 155); - obj79.Steps = list127; - reference86 = obj79; - ref QuestSequence reference87 = ref span51[6]; - QuestSequence obj80 = new QuestSequence + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002200u, new Vector3(-358.29712f, 236.71313f, 506.27905f), 155); + obj75.Steps = list118; + reference80 = obj75; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span52 = CollectionsMarshal.AsSpan(list128); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-399.05286f, 228.68446f, 445.9758f), 155); - span52[1] = new QuestStep(EInteractionType.Interact, 1006519u, new Vector3(-397.54333f, 229.15173f, 448.32532f), 155) + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-399.05286f, 228.68446f, 445.9758f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006519u, new Vector3(-397.54333f, 229.15173f, 448.32532f), 155) { StopDistance = 7f, DisableNavmesh = true }; - obj80.Steps = list128; - reference87 = obj80; - ref QuestSequence reference88 = ref span51[7]; - QuestSequence obj81 = new QuestSequence + obj76.Steps = list119; + reference81 = obj76; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span53 = CollectionsMarshal.AsSpan(list129); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155); - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - span53[2] = new QuestStep(EInteractionType.CompleteQuest, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); - obj81.Steps = list129; - reference88 = obj81; - questRoot19.QuestSequence = list121; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); + obj77.Steps = list120; + reference82 = obj77; + questRoot19.QuestSequence = list112; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(982); QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "JerryWester"; - questRoot20.Author = list130; - num = 4; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span54 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference89 = ref span54[0]; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "JerryWester"; + questRoot20.Author = list121; + index = 4; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj78 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155) + { + StopDistance = 7f + }; + obj78.Steps = list123; + reference83 = obj78; + num++; + ref QuestSequence reference84 = ref span2[num]; + QuestSequence obj79 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); + obj79.Steps = list124; + reference84 = obj79; + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj80 = new QuestSequence + { + Sequence = 2 + }; + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + { + DisableNavmesh = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002265u, new Vector3(-693.01904f, 253.86426f, 506.98096f), 155); + obj80.Steps = list125; + reference85 = obj80; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj81 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 4; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-690.43774f, 261.3325f, 433.44107f), 155) + { + Mount = false, + Comment = "Enemies lose aggro around here" + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + { + Mount = true + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + { + DisableNavmesh = true + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + obj81.Steps = list126; + reference86 = obj81; + questRoot20.QuestSequence = list122; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(983); + QuestRoot questRoot21 = new QuestRoot(); + num = 1; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "JerryWester"; + questRoot21.Author = list127; + index = 4; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155) - { - StopDistance = 7f - }; - obj82.Steps = list132; - reference89 = obj82; - ref QuestSequence reference90 = ref span54[1]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + obj82.Steps = list129; + reference87 = obj82; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); - obj83.Steps = list133; - reference90 = obj83; - ref QuestSequence reference91 = ref span54[2]; + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006522u, new Vector3(-694.42285f, 300.96927f, 372.1521f), 155); + obj83.Steps = list130; + reference88 = obj83; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span55 = CollectionsMarshal.AsSpan(list134); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + index2 = 3; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { DisableNavmesh = true }; - span55[2] = new QuestStep(EInteractionType.Interact, 2002265u, new Vector3(-693.01904f, 253.86426f, 506.98096f), 155); - obj84.Steps = list134; - reference91 = obj84; - ref QuestSequence reference92 = ref span54[3]; - QuestSequence obj85 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 4; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span56 = CollectionsMarshal.AsSpan(list135); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-690.43774f, 261.3325f, 433.44107f), 155) - { - Mount = false, - Comment = "Enemies lose aggro around here" - }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) - { - Mount = true - }; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) - { - DisableNavmesh = true - }; - span56[3] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); - obj85.Steps = list135; - reference92 = obj85; - questRoot20.QuestSequence = list131; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(983); - QuestRoot questRoot21 = new QuestRoot(); - num = 2; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span57 = CollectionsMarshal.AsSpan(list136); - span57[0] = "JerryWester"; - span57[1] = "Wigglez"; - questRoot21.Author = list136; - num = 4; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span58 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference93 = ref span58[0]; - QuestSequence obj86 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); - obj86.Steps = list138; - reference93 = obj86; - ref QuestSequence reference94 = ref span58[1]; - QuestSequence obj87 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1006522u, new Vector3(-694.42285f, 300.96927f, 372.1521f), 155); - obj87.Steps = list139; - reference94 = obj87; - ref QuestSequence reference95 = ref span58[2]; - QuestSequence obj88 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span59 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference96 = ref span59[0]; - QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 304; - skipStepConditions9.InTerritory = list141; - skipStepConditions9.NearPosition = new NearPositionCondition - { - Position = new Vector3(-478.3551f, 288.4877f, 168.01697f), - MaximumDistance = 30f, - TerritoryId = 155 - }; - skipConditions10.StepIf = skipStepConditions9; - questStep9.SkipConditions = skipConditions10; - reference96 = questStep9; - 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(); - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 304; - skipStepConditions10.InTerritory = list142; - skipStepConditions10.NearPosition = new NearPositionCondition - { - Position = new Vector3(-478.3551f, 288.4877f, 168.01697f), - MaximumDistance = 30f, - TerritoryId = 155 - }; - skipConditions11.StepIf = skipStepConditions10; - obj89.SkipConditions = skipConditions11; - reference97 = obj89; - span59[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006525u, new Vector3(-478.3551f, 288.4877f, 168.01697f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006525u, new Vector3(-478.3551f, 288.4877f, 168.01697f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj88.Steps = list140; - reference95 = obj88; - ref QuestSequence reference98 = ref span58[3]; - QuestSequence obj90 = new QuestSequence + obj84.Steps = list131; + reference89 = obj84; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - Span span60 = CollectionsMarshal.AsSpan(list143); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { Mount = true }; - span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); - obj90.Steps = list143; - reference98 = obj90; - questRoot21.QuestSequence = list137; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + obj85.Steps = list132; + reference90 = obj85; + questRoot21.QuestSequence = list128; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(984); QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; - questRoot22.Author = list144; - num = 3; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span61 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference99 = ref span61[0]; - QuestSequence obj91 = new QuestSequence + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "JerryWester"; + questRoot22.Author = list133; + index = 3; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006528u, new Vector3(-698.51227f, 242.18399f, 375.17358f), 155) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006528u, new Vector3(-698.51227f, 242.18399f, 375.17358f), 155) { StopDistance = 5f }; - obj91.Steps = list146; - reference99 = obj91; - ref QuestSequence reference100 = ref span61[1]; - QuestSequence obj92 = new QuestSequence + obj86.Steps = list135; + reference91 = obj86; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span62 = CollectionsMarshal.AsSpan(list147); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); - span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { DisableNavmesh = true }; - span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-217.57614f, 217.23946f, 706.57166f), 155); - span62[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-217.57614f, 217.23946f, 706.57166f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 156) { StopDistance = 5f, Aetheryte = EAetheryteLocation.MorDhona }; - span62[4] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); - obj92.Steps = list147; - reference100 = obj92; - ref QuestSequence reference101 = ref span61[2]; - QuestSequence obj93 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + obj87.Steps = list136; + reference92 = obj87; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); - obj93.Steps = list148; - reference101 = obj93; - questRoot22.QuestSequence = list145; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + obj88.Steps = list137; + reference93 = obj88; + questRoot22.QuestSequence = list134; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(986); QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; - questRoot23.Author = list149; - num = 5; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span63 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference102 = ref span63[0]; - QuestSequence obj94 = new QuestSequence + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "JerryWester"; + questRoot23.Author = list138; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); - obj94.Steps = list151; - reference102 = obj94; - ref QuestSequence reference103 = ref span63[1]; - QuestSequence obj95 = new QuestSequence + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + obj89.Steps = list140; + reference94 = obj89; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span64 = CollectionsMarshal.AsSpan(list152); - span64[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) + index2 = 2; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny, CombatDelaySecondsAtStart = 2f }; - ref QuestStep reference104 = ref span64[1]; - QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2002201u, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) + num2++; + ref QuestStep reference96 = ref span3[num2]; + QuestStep obj91 = new QuestStep(EInteractionType.Combat, 2002201u, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 43u; - obj96.KillEnemyDataIds = list153; - reference104 = obj96; - obj95.Steps = list152; - reference103 = obj95; - ref QuestSequence reference105 = ref span63[2]; - QuestSequence obj97 = new QuestSequence + num4 = 1; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span8 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span8[num3] = 43u; + obj91.KillEnemyDataIds = list142; + reference96 = obj91; + obj90.Steps = list141; + reference95 = obj90; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2002202u, new Vector3(-420.52344f, -16.922302f, -325.30713f), 156); - obj97.Steps = list154; - reference105 = obj97; - ref QuestSequence reference106 = ref span63[3]; - QuestSequence obj98 = new QuestSequence + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002202u, new Vector3(-420.52344f, -16.922302f, -325.30713f), 156); + obj92.Steps = list143; + reference97 = obj92; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1006534u, new Vector3(28.213867f, 20.662334f, -688.4413f), 156) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006534u, new Vector3(28.213867f, 20.662334f, -688.4413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj98.Steps = list155; - reference106 = obj98; - ref QuestSequence reference107 = ref span63[4]; - QuestSequence obj99 = new QuestSequence + obj93.Steps = list144; + reference98 = obj93; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); - obj99.Steps = list156; - reference107 = obj99; - questRoot23.QuestSequence = list150; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); + obj94.Steps = list145; + reference99 = obj94; + questRoot23.QuestSequence = list139; AddQuest(questId23, questRoot23); } @@ -57315,13 +68482,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -57329,114 +68499,155 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1, Comment = "'Invalid target' messages can just be bad positioning?" }; - num2 = 12; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 12; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-148.50606f, -0.6686005f, -615.3246f), 156); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list5; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2002232u, new Vector3(-146.92914f, 0.47296143f, -616.0525f), 156) { DelaySecondsAtStart = 2f, ItemId = 2000766u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 46u; + num4 = 1; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span5 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span5[num3] = 46u; obj3.KillEnemyDataIds = list6; num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list7; reference4 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, 2002233u, new Vector3(-202.07526f, 3.8909912f, -625.90985f), 156) { ItemId = 2000766u }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span4 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list8; reference5 = obj4; - ref QuestStep reference6 = ref span2[3]; + num2++; + ref QuestStep reference6 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-219.34567f, 4.551038f, -637.8296f), 156); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span6 = CollectionsMarshal.AsSpan(list9); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list9; skipConditions2.StepIf = skipStepConditions2; questStep2.SkipConditions = skipConditions2; reference6 = questStep2; - ref QuestStep reference7 = ref span2[4]; + num2++; + ref QuestStep reference7 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.UseItem, 2002234u, new Vector3(-216.81549f, 5.6915283f, -637.4762f), 156) { ItemId = 2000766u }; - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span7 = CollectionsMarshal.AsSpan(list10); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list10; reference7 = obj5; - ref QuestStep reference8 = ref span2[5]; + num2++; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-196.89899f, 5.426553f, -658.71454f), 156) { Comment = "Avoids pit" @@ -57446,39 +68657,53 @@ public static class AssemblyQuestLoader num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span8 = CollectionsMarshal.AsSpan(list11); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list11; skipConditions3.StepIf = skipStepConditions3; obj6.SkipConditions = skipConditions3; reference8 = obj6; - ref QuestStep reference9 = ref span2[6]; + num2++; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.45108f, 3.23747f, -656.8099f), 156) { Comment = "Move into LOS" }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span9 = CollectionsMarshal.AsSpan(list12); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + span4 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list12; skipConditions4.StepIf = skipStepConditions4; obj7.SkipConditions = skipConditions4; reference9 = obj7; - ref QuestStep reference10 = ref span2[7]; + num2++; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2002230u, new Vector3(-171.52673f, 4.0131226f, -655.787f), 156) { DelaySecondsAtStart = 2f, @@ -57488,39 +68713,52 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 46u; + span5 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span5[num4] = 46u; obj8.KillEnemyDataIds = list13; - num3 = 6; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - Span span10 = CollectionsMarshal.AsSpan(list14); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + span4 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list14; reference10 = obj8; - span2[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); - span2[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) { DisableNavmesh = true, Comment = "TODO Unsure if this can be reached without flying, or needs more nav" }; - span2[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-175.24794f, 10.096513f, -605.4419f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-175.24794f, 10.096513f, -605.4419f), 156) { DisableNavmesh = true, Mount = false }; - span2[11] = new QuestStep(EInteractionType.UseItem, 2002231u, new Vector3(-174.91425f, 10.757568f, -603.8148f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2002231u, new Vector3(-174.91425f, 10.757568f, -603.8148f), 156) { DelaySecondsAtStart = 2f, ItemId = 2000766u }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference11 = ref span[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -57528,7 +68766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -57541,24 +68781,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list16; - num = 3; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span11 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span11[0]; + index = 3; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); obj10.Steps = list18; reference12 = obj10; - ref QuestSequence reference13 = ref span11[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -57566,8 +68812,9 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span12 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference14 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -57575,22 +68822,28 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 55u; + span5 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span5[num4] = 55u; obj12.KillEnemyDataIds = list20; obj12.CombatDelaySecondsAtStart = 5f; reference14 = obj12; - span12[1] = new QuestStep(EInteractionType.Interact, 2002238u, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002238u, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156); obj11.Steps = list19; reference13 = obj11; - ref QuestSequence reference15 = ref span11[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -57603,13 +68856,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span13 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span13[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -57617,7 +68873,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -57631,21 +68889,25 @@ public static class AssemblyQuestLoader }; obj14.Steps = list24; reference16 = obj14; - ref QuestSequence reference17 = ref span13[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Emote, 1006709u, new Vector3(-428.79382f, -6.623729f, -528.6183f), 156) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1006709u, new Vector3(-428.79382f, -6.623729f, -528.6183f), 156) { Emote = EEmote.ImperialSalute }; obj15.Steps = list25; reference17 = obj15; - ref QuestSequence reference18 = ref span13[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -57653,13 +68915,16 @@ public static class AssemblyQuestLoader num2 = 3; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span14 = CollectionsMarshal.AsSpan(list26); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) { DisableNavmesh = true }; - span14[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002329u, new Vector3(-169.8482f, 14.114502f, -609.4606f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002329u, new Vector3(-169.8482f, 14.114502f, -609.4606f), 156) { ItemId = 2000771u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -57669,28 +68934,33 @@ public static class AssemblyQuestLoader }; obj16.Steps = list26; reference18 = obj16; - ref QuestSequence reference19 = ref span13[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span15 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span15[0]; + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice + num4 = 1; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span6 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC604_01004_EVENTAREA_WARP_YESNO_TITLE") }; questStep3.DialogueChoices = list28; reference20 = questStep3; - span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj17.Steps = list27; reference19 = obj17; questRoot3.QuestSequence = list23; @@ -57700,13 +68970,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list29; - num = 12; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span16 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span16[0]; + index = 12; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -57714,24 +68987,30 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj18.Steps = list31; reference21 = obj18; - ref QuestSequence reference22 = ref span16[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156) { StopDistance = 5f }; obj19.Steps = list32; reference22 = obj19; - ref QuestSequence reference23 = ref span16[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -57739,7 +69018,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -57750,16 +69031,18 @@ public static class AssemblyQuestLoader }; obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span16[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span17 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference25 = ref span17[0]; + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { TargetTerritoryId = (ushort)156, @@ -57768,17 +69051,21 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC605_01005_Q1_000_000") }; obj22.DialogueChoices = list35; reference25 = obj22; - span17[1] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156); obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference26 = ref span16[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -57786,30 +69073,37 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156) { StopDistance = 7f }; obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span16[5]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span18 = CollectionsMarshal.AsSpan(list37); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) + index2 = 3; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) { DisableNavmesh = true }; - span18[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.3748f, 13.709051f, -610.729f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.3748f, 13.709051f, -610.729f), 156); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span16[6]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 @@ -57817,26 +69111,32 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span19 = CollectionsMarshal.AsSpan(list38); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.43071f, -2.638534f, -595.8602f), 156) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.43071f, -2.638534f, -595.8602f), 156) { DisableNavmesh = true }; - span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-227.08566f, 13.4605465f, -670.02313f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-227.08566f, 13.4605465f, -670.02313f), 156); obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span16[7]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.40249f, 2.9154358f, -634.5249f), 156); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.40249f, 2.9154358f, -634.5249f), 156); obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span16[8]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -57844,24 +69144,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156); obj27.Steps = list40; reference30 = obj27; - ref QuestSequence reference31 = ref span16[9]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Emote, 1006561u, new Vector3(-59.31189f, 3.32667f, -637.7814f), 156) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1006561u, new Vector3(-59.31189f, 3.32667f, -637.7814f), 156) { Emote = EEmote.Welcome }; obj28.Steps = list41; reference31 = obj28; - ref QuestSequence reference32 = ref span16[10]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 10 @@ -57869,7 +69175,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006560u, new Vector3(-60.135864f, 3.1014364f, -641.3519f), 156) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006560u, new Vector3(-60.135864f, 3.1014364f, -641.3519f), 156) { StopDistance = 7f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -57879,15 +69187,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list42; reference32 = obj29; - ref QuestSequence reference33 = ref span16[11]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj30.Steps = list43; reference33 = obj30; questRoot4.QuestSequence = list30; @@ -57897,13 +69208,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot5.Author = list44; - num = 2; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference34 = ref span20[0]; + index = 2; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -57911,23 +69225,28 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj31.Steps = list46; reference34 = obj31; - ref QuestSequence reference35 = ref span20[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span21 = CollectionsMarshal.AsSpan(list47); - span21[0] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { TargetTerritoryId = (ushort)204 }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { DisableNavmesh = true, NextQuestId = new QuestId(1008) @@ -57941,13 +69260,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot6.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span22 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span22[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -57955,48 +69277,62 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); obj33.Steps = list50; reference36 = obj33; - ref QuestSequence reference37 = ref span22[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span23 = CollectionsMarshal.AsSpan(list51); - ref QuestStep reference38 = ref span23[0]; + index2 = 5; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) { TargetTerritoryId = (ushort)132 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 204; + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span7 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span7[num3] = 204; skipStepConditions5.NotInTerritory = list52; skipConditions5.StepIf = skipStepConditions5; obj35.SkipConditions = skipConditions5; reference38 = obj35; - ref QuestStep reference39 = ref span23[1]; + num2++; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list53; reference39 = questStep4; - ref QuestStep reference40 = ref span23[2]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1000156u, new Vector3(6.6376343f, 1.1442462f, -11.795227f), 132) { AethernetShortcut = new AethernetShortcut @@ -58005,49 +69341,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span25 = CollectionsMarshal.AsSpan(list54); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + span4 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list54; reference40 = obj36; - ref QuestStep reference41 = ref span23[3]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1000122u, new Vector3(88.60913f, -8.685379f, 128.64868f), 132); num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span26 = CollectionsMarshal.AsSpan(list55); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list55; reference41 = questStep5; - ref QuestStep reference42 = ref span23[4]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000372u, new Vector3(39.53601f, -8.041565f, 112.13855f), 132); - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span27 = CollectionsMarshal.AsSpan(list56); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span4 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list56; reference42 = questStep6; obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference43 = ref span22[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -58055,8 +69412,9 @@ public static class AssemblyQuestLoader num2 = 2; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span28 = CollectionsMarshal.AsSpan(list57); - span28[0] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { TargetTerritoryId = (ushort)204, AethernetShortcut = new AethernetShortcut @@ -58065,7 +69423,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { DisableNavmesh = true, NextQuestId = new QuestId(1009) @@ -58079,24 +69438,30 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; questRoot7.Author = list58; - num = 6; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span29 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference44 = ref span29[0]; + index = 6; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); obj38.Steps = list60; reference44 = obj38; - ref QuestSequence reference45 = ref span29[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -58104,26 +69469,31 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj39.Steps = list61; reference45 = obj39; - ref QuestSequence reference46 = ref span29[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.5126f, 22.329094f, 84.68576f), 153) + index2 = 2; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.5126f, 22.329094f, 84.68576f), 153) { Fly = true }; - ref QuestStep reference47 = ref span30[1]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 2002241u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -58131,12 +69501,15 @@ public static class AssemblyQuestLoader num3 = 1; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 2198u; + span5 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span5[num4] = 2198u; obj41.KillEnemyDataIds = list63; reference47 = obj41; obj40.Steps = list62; reference46 = obj40; - ref QuestSequence reference48 = ref span29[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -58144,24 +69517,30 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2002614u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002614u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153); obj42.Steps = list64; reference48 = obj42; - ref QuestSequence reference49 = ref span29[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj43.Steps = list65; reference49 = obj43; - ref QuestSequence reference50 = ref span29[5]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -58169,12 +69548,14 @@ public static class AssemblyQuestLoader num2 = 2; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span31 = CollectionsMarshal.AsSpan(list66); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(210.56421f, 18.119999f, -21.370262f), 153) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(210.56421f, 18.119999f, -21.370262f), 153) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153) { NextQuestId = new QuestId(1012) }; @@ -58187,24 +69568,30 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "croizat"; questRoot8.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span32 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference51 = ref span32[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); obj45.Steps = list69; reference51 = obj45; - ref QuestSequence reference52 = ref span32[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -58212,15 +69599,19 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list70)[0]; + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference53 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.67035f, -0.12984455f, 122.68336f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new ComplexCombatData + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span8 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 16u, MinimumKillCount = 5u, @@ -58231,15 +69622,18 @@ public static class AssemblyQuestLoader reference53 = obj47; obj46.Steps = list70; reference52 = obj46; - ref QuestSequence reference54 = ref span32[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); obj48.Steps = list72; reference54 = obj48; questRoot8.QuestSequence = list68; @@ -58249,13 +69643,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "croizat"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "croizat"; questRoot9.Author = list73; - num = 4; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span33 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference55 = ref span33[0]; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -58263,24 +69660,30 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); obj49.Steps = list75; reference55 = obj49; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Emote, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153) { Emote = EEmote.Kneel }; obj50.Steps = list76; reference56 = obj50; - ref QuestSequence reference57 = ref span33[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -58288,7 +69691,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list77)[0]; + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(540.6762f, 13.79814f, 162.87543f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -58296,7 +69701,9 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 8u, MinimumKillCount = 3u, @@ -58307,15 +69714,18 @@ public static class AssemblyQuestLoader reference58 = obj52; obj51.Steps = list77; reference57 = obj51; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); obj53.Steps = list79; reference59 = obj53; questRoot9.QuestSequence = list74; @@ -58325,13 +69735,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot10.Author = list80; - num = 2; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span34 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference60 = ref span34[0]; + index = 2; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -58339,29 +69752,36 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153); obj54.Steps = list82; reference60 = obj54; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span35 = CollectionsMarshal.AsSpan(list83); - span35[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span35[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span35[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(433) }; @@ -58374,13 +69794,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "Thaksin"; questRoot11.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span36 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span36[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -58388,77 +69811,109 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj56.Steps = list86; reference62 = obj56; - ref QuestSequence reference63 = ref span36[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span37 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference64 = ref span37[0]; + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference64 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006602u, new Vector3(-321.06506f, 8.830055f, 436.94202f), 146); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span38 = CollectionsMarshal.AsSpan(list88); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list88; reference64 = questStep7; - ref QuestStep reference65 = ref span37[1]; + num2++; + ref QuestStep reference65 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006600u, new Vector3(-283.5279f, 7.652629f, 423.14795f), 146); num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span39 = CollectionsMarshal.AsSpan(list89); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list89; reference65 = questStep8; - ref QuestStep reference66 = ref span37[2]; + num2++; + ref QuestStep reference66 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006599u, new Vector3(-279.98785f, 15.013981f, 373.37292f), 146); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span40 = CollectionsMarshal.AsSpan(list90); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list90; reference66 = questStep9; - ref QuestStep reference67 = ref span37[3]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1006601u, new Vector3(-293.53784f, 13.137939f, 354.63477f), 146); num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span41 = CollectionsMarshal.AsSpan(list91); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list91; reference67 = questStep10; obj57.Steps = list87; reference63 = obj57; - ref QuestSequence reference68 = ref span36[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -58466,7 +69921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj58.Steps = list92; reference68 = obj58; questRoot11.QuestSequence = list85; @@ -58476,27 +69933,33 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "Thaksin"; questRoot12.Author = list93; - num = 8; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span42 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference69 = ref span42[0]; + index = 8; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true }; obj59.Steps = list95; reference69 = obj59; - ref QuestSequence reference70 = ref span42[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -58504,29 +69967,35 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1006603u, new Vector3(-196.79565f, 78.11096f, 49.851196f), 148) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006603u, new Vector3(-196.79565f, 78.11096f, 49.851196f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj60.Steps = list96; reference70 = obj60; - ref QuestSequence reference71 = ref span42[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj61.Steps = list97; reference71 = obj61; - ref QuestSequence reference72 = ref span42[3]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -58534,42 +70003,50 @@ public static class AssemblyQuestLoader num2 = 4; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span43 = CollectionsMarshal.AsSpan(list98); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.9934f, 66.78476f, -258.7822f), 180) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.9934f, 66.78476f, -258.7822f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.89017f, 63.51318f, -255.7134f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.89017f, 63.51318f, -255.7134f), 180) { Fly = true }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.22986f, 57.972702f, -381.27402f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.22986f, 57.972702f, -381.27402f), 180) { Fly = true }; - span43[3] = new QuestStep(EInteractionType.Interact, 1006604u, new Vector3(-278.73657f, 4.1657104f, -580.04126f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006604u, new Vector3(-278.73657f, 4.1657104f, -580.04126f), 180) { Fly = true }; obj62.Steps = list98; reference72 = obj62; - ref QuestSequence reference73 = ref span42[4]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj63.Steps = list99; reference73 = obj63; - ref QuestSequence reference74 = ref span42[5]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 5 @@ -58577,7 +70054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-192.67111f, 35.175262f, 129.13567f), 146) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-192.67111f, 35.175262f, 129.13567f), 146) { Fly = true, ItemId = 2000779u, @@ -58585,21 +70064,25 @@ public static class AssemblyQuestLoader }; obj64.Steps = list100; reference74 = obj64; - ref QuestSequence reference75 = ref span42[6]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1006605u, new Vector3(-192.49261f, 35.210636f, 129.13708f), 146) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006605u, new Vector3(-192.49261f, 35.210636f, 129.13708f), 146) { Fly = true }; obj65.Steps = list101; reference75 = obj65; - ref QuestSequence reference76 = ref span42[7]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -58607,7 +70090,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true }; @@ -58620,27 +70105,33 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "skiaz"; questRoot13.Author = list103; - num = 4; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span44 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference77 = ref span44[0]; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj67.Steps = list105; reference77 = obj67; - ref QuestSequence reference78 = ref span44[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -58648,47 +70139,57 @@ public static class AssemblyQuestLoader num2 = 11; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { Fly = true }; - span45[1] = new QuestStep(EInteractionType.None, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { Land = true }; - span45[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { ItemId = 2000782u, GroundTarget = true }; - ref QuestStep reference79 = ref span45[3]; + index2++; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3941f, -40.517452f, -225.2038f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span46 = CollectionsMarshal.AsSpan(list107); - span46[0] = 2101u; - span46[1] = 2098u; + num4 = 2; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = 2101u; + num3++; + span5[num3] = 2098u; obj69.KillEnemyDataIds = list107; reference79 = obj69; - span45[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { Fly = true }; - span45[5] = new QuestStep(EInteractionType.None, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { Land = true }; - span45[6] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { ItemId = 2000782u, GroundTarget = true }; - ref QuestStep reference80 = ref span45[7]; + index2++; + ref QuestStep reference80 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -58696,59 +70197,71 @@ public static class AssemblyQuestLoader num3 = 2; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span47 = CollectionsMarshal.AsSpan(list108); - span47[0] = 2101u; - span47[1] = 2098u; + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = 2101u; + num4++; + span5[num4] = 2098u; obj70.KillEnemyDataIds = list108; reference80 = obj70; - span45[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { Fly = true }; - span45[9] = new QuestStep(EInteractionType.None, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { Land = true }; - span45[10] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { ItemId = 2000782u, GroundTarget = true }; obj68.Steps = list106; reference78 = obj68; - ref QuestSequence reference81 = ref span44[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span48 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference82 = ref span48[0]; + index2 = 3; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span49 = CollectionsMarshal.AsSpan(list110); - span49[0] = 2101u; - span49[1] = 2098u; + num4 = 2; + List list110 = new List(num4); + CollectionsMarshal.SetCount(list110, num4); + span5 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span5[num3] = 2101u; + num3++; + span5[num3] = 2098u; obj72.KillEnemyDataIds = list110; reference82 = obj72; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.49347f, -32.838806f, -234.15048f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.49347f, -32.838806f, -234.15048f), 138) { Fly = false }; - span48[2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj71.Steps = list109; reference81 = obj71; - ref QuestSequence reference83 = ref span44[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -58756,8 +70269,9 @@ public static class AssemblyQuestLoader num2 = 5; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span50 = CollectionsMarshal.AsSpan(list111); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.34997f, 17.649893f, -256.22174f), 140) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.34997f, 17.649893f, -256.22174f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -58774,16 +70288,20 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.869f, 19.009003f, -372.63593f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.869f, 19.009003f, -372.63593f), 140) { Fly = true }; - span50[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span50[3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span50[4] = new QuestStep(EInteractionType.CompleteQuest, 1007488u, new Vector3(-1.2055054f, -2.0000095f, -28.000305f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007488u, new Vector3(-1.2055054f, -2.0000095f, -28.000305f), 212); obj73.Steps = list111; reference83 = obj73; questRoot13.QuestSequence = list104; @@ -58793,27 +70311,33 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list112); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list112; - num = 2; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span51 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference84 = ref span51[0]; + index = 2; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + span2 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) { StopDistance = 7f }; obj74.Steps = list114; reference84 = obj74; - ref QuestSequence reference85 = ref span51[1]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -58821,16 +70345,19 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span52 = CollectionsMarshal.AsSpan(list115); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span52[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - span52[2] = new QuestStep(EInteractionType.CompleteQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147); obj75.Steps = list115; reference85 = obj75; questRoot14.QuestSequence = list113; @@ -58840,24 +70367,30 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list116; - num = 2; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span53 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference86 = ref span53[0]; + index = 2; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj76.Steps = list118; reference86 = obj76; - ref QuestSequence reference87 = ref span53[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -58865,12 +70398,14 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span54 = CollectionsMarshal.AsSpan(list119); - span54[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { Comment = "Next quest is picked up as part of 'Moving On'" }; @@ -58883,24 +70418,30 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list120; - num = 3; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span55 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference88 = ref span55[0]; + index = 3; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); obj78.Steps = list122; reference88 = obj78; - ref QuestSequence reference89 = ref span55[1]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -58908,39 +70449,47 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj79.Steps = list123; reference89 = obj79; - ref QuestSequence reference90 = ref span55[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span56 = CollectionsMarshal.AsSpan(list124); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) + index2 = 5; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) { Fly = true }; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) { Fly = true }; - span56[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) { Fly = true }; - span56[4] = new QuestStep(EInteractionType.CompleteQuest, 2002581u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2002581u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) { StopDistance = 5f, Mount = false, @@ -58955,13 +70504,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot17.Author = list125; - num = 5; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span57 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference91 = ref span57[0]; + index = 5; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -58969,7 +70521,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list127)[0]; + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference92 = ref span3[index2]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -58987,7 +70541,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 128; + span7 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span7[num4] = 128; obj83.InTerritory = list128; skipConditions6.AetheryteShortcutIf = obj83; skipConditions6.AethernetShortcutIf = new SkipAetheryteCondition @@ -58998,21 +70554,25 @@ public static class AssemblyQuestLoader reference92 = obj82; obj81.Steps = list127; reference91 = obj81; - ref QuestSequence reference93 = ref span57[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1006761u, new Vector3(520.2562f, 17.62488f, 470.51184f), 137) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006761u, new Vector3(520.2562f, 17.62488f, 470.51184f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj84.Steps = list129; reference93 = obj84; - ref QuestSequence reference94 = ref span57[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -59020,7 +70580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006763u, new Vector3(494.9568f, 11.450662f, 329.76257f), 137) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006763u, new Vector3(494.9568f, 11.450662f, 329.76257f), 137) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -59029,18 +70591,22 @@ public static class AssemblyQuestLoader }; obj85.Steps = list130; reference94 = obj85; - ref QuestSequence reference95 = ref span57[3]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1006762u, new Vector3(494.16345f, 12.305895f, 337.27014f), 137); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006762u, new Vector3(494.16345f, 12.305895f, 337.27014f), 137); obj86.Steps = list131; reference95 = obj86; - ref QuestSequence reference96 = ref span57[4]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -59048,7 +70614,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { NextQuestId = new QuestId(1050) }; @@ -59066,14 +70634,17 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence questSequence = new QuestSequence { Sequence = 0 @@ -59082,8 +70653,9 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, ItemId = 4544u, @@ -59095,20 +70667,23 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); questSequence2.Steps = list3; reference = questSequence; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence3 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference3 = ref span3[0]; + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004962u, new Vector3(-300.1908f, 7.2785034f, 410.94055f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, @@ -59121,51 +70696,72 @@ public static class AssemblyQuestLoader } }; QuestStep questStep2 = questStep; - int num3 = 6; - List list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); + int num4 = 6; + List list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); Span span4 = CollectionsMarshal.AsSpan(list4); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + int num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list4; reference3 = questStep; - ref QuestStep reference4 = ref span3[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1006735u, new Vector3(-316.1822f, 8.844355f, 433.82922f), 146); QuestStep questStep3 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span5 = CollectionsMarshal.AsSpan(list4); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list4; reference4 = questStep; - ref QuestStep reference5 = ref span3[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146); QuestStep questStep4 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span6 = CollectionsMarshal.AsSpan(list4); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list4; reference5 = questStep; questSequence3.Steps = list3; reference2 = questSequence; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -59174,35 +70770,41 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(156.89783f, 4.3410587f, 831.42926f), 146) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference7 = ref span3[num3]; + QuestStep obj = new QuestStep(EInteractionType.Combat, null, new Vector3(156.89783f, 4.3410587f, 831.42926f), 146) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep5 = questStep; - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1917u; - questStep5.KillEnemyDataIds = list5; - reference7 = questStep; + num5 = 1; + List list5 = new List(num5); + CollectionsMarshal.SetCount(list5, num5); + Span span5 = CollectionsMarshal.AsSpan(list5); + num4 = 0; + span5[num4] = 1917u; + obj.KillEnemyDataIds = list5; + reference7 = obj; questSequence4.Steps = list3; reference6 = questSequence; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence5 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(1051) }; - questSequence5.Steps = list3; + questSequence5.Steps = list6; reference8 = questSequence; questRoot3.QuestSequence = list2; AddQuest(questId, questRoot); @@ -59210,16 +70812,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot4 = questRoot; num = 1; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; - questRoot4.Author = list6; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; + questRoot4.Author = list7; QuestRoot questRoot5 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span7 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference9 = ref span7[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference9 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -59228,7 +70833,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59241,22 +70848,26 @@ public static class AssemblyQuestLoader }; questSequence6.Steps = list3; reference9 = questSequence; - ref QuestSequence reference10 = ref span7[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence7 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006764u, new Vector3(9.689453f, 65.05541f, 46.37207f), 137) + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006764u, new Vector3(9.689453f, 65.05541f, 46.37207f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - questSequence7.Steps = list3; + questSequence7.Steps = list8; reference10 = questSequence; - ref QuestSequence reference11 = ref span7[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -59265,62 +70876,74 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002307u, new Vector3(95.8114f, 74.143555f, -45.731323f), 137) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference12 = ref span3[num3]; + QuestStep obj2 = new QuestStep(EInteractionType.Combat, 2002307u, new Vector3(95.8114f, 74.143555f, -45.731323f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep6 = questStep; - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span8 = CollectionsMarshal.AsSpan(list7); - span8[0] = 2u; - span8[1] = 12u; - questStep6.KillEnemyDataIds = list7; - reference12 = questStep; + num4 = 2; + List list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); + span5 = CollectionsMarshal.AsSpan(list9); + num5 = 0; + span5[num5] = 2u; + num5++; + span5[num5] = 12u; + obj2.KillEnemyDataIds = list9; + reference12 = obj2; questSequence8.Steps = list3; reference11 = questSequence; - ref QuestSequence reference13 = ref span7[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence9 = questSequence; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1006768u, new Vector3(9.689453f, 65.162186f, 44.99878f), 137); - questSequence9.Steps = list8; + num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006768u, new Vector3(9.689453f, 65.162186f, 44.99878f), 137); + questSequence9.Steps = list10; reference13 = questSequence; - ref QuestSequence reference14 = ref span7[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence10 = questSequence; num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1006783u, new Vector3(-11.490112f, 69.24614f, 30.289062f), 137); - questSequence10.Steps = list9; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + span3 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006783u, new Vector3(-11.490112f, 69.24614f, 30.289062f), 137); + questSequence10.Steps = list11; reference14 = questSequence; - ref QuestSequence reference15 = ref span7[5]; + num++; + ref QuestSequence reference15 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence11 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(1052) }; - questSequence11.Steps = list3; + questSequence11.Steps = list12; reference15 = questSequence; questRoot5.QuestSequence = list2; AddQuest(questId2, questRoot); @@ -59328,16 +70951,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot6 = questRoot; num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; - questRoot6.Author = list10; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; + questRoot6.Author = list13; QuestRoot questRoot7 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span9 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference16 = ref span9[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference16 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -59346,7 +70972,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59359,254 +70987,326 @@ public static class AssemblyQuestLoader }; questSequence12.Steps = list3; reference16 = questSequence; - ref QuestSequence reference17 = ref span9[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence13 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span10 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference18 = ref span10[0]; + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference18 = ref span3[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-586.4241f, 236.18538f, 411.9264f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - QuestStep questStep7 = questStep; + QuestStep questStep5 = questStep; SkipConditions skipConditions = new SkipConditions(); SkipConditions skipConditions2 = skipConditions; SkipStepConditions skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions2 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span11 = CollectionsMarshal.AsSpan(list4); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list4; skipConditions2.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep7.SkipConditions = skipConditions; + questStep5.SkipConditions = skipConditions; reference18 = questStep; - ref QuestStep reference19 = ref span10[1]; + num2++; + ref QuestStep reference19 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-608.9161f, 247.47685f, 420.84274f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep8 = questStep; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = 1918u; - questStep8.KillEnemyDataIds = list11; - QuestStep questStep9 = questStep; + QuestStep questStep6 = questStep; + num4 = 1; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + span5 = CollectionsMarshal.AsSpan(list14); + num5 = 0; + span5[num5] = 1918u; + questStep6.KillEnemyDataIds = list14; + QuestStep questStep7 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions3 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions3 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span12 = CollectionsMarshal.AsSpan(list4); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list4; skipConditions3.StepIf = skipStepConditions; - questStep9.SkipConditions = skipConditions; + questStep7.SkipConditions = skipConditions; reference19 = questStep; - ref QuestStep reference20 = ref span10[2]; + num2++; + ref QuestStep reference20 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002308u, new Vector3(-583.82544f, 234.97363f, 410.94055f), 155); - QuestStep questStep10 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span13 = CollectionsMarshal.AsSpan(list4); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list4; + QuestStep questStep8 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list4; reference20 = questStep; - ref QuestStep reference21 = ref span10[3]; + num2++; + ref QuestStep reference21 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-52.048523f, 0.869751f, 359.39575f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep11 = questStep; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 1919u; - questStep11.KillEnemyDataIds = list12; - QuestStep questStep12 = questStep; + QuestStep questStep9 = questStep; + num5 = 1; + List list15 = new List(num5); + CollectionsMarshal.SetCount(list15, num5); + span5 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span5[num4] = 1919u; + questStep9.KillEnemyDataIds = list15; + QuestStep questStep10 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions4 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions4 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span14 = CollectionsMarshal.AsSpan(list4); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list4; skipConditions4.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep12.SkipConditions = skipConditions; + questStep10.SkipConditions = skipConditions; reference21 = questStep; - ref QuestStep reference22 = ref span10[4]; + num2++; + ref QuestStep reference22 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002309u, new Vector3(-52.048523f, 0.869751f, 359.39575f), 153); - QuestStep questStep13 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span15 = CollectionsMarshal.AsSpan(list4); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list4; + QuestStep questStep11 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list4; reference22 = questStep; - ref QuestStep reference23 = ref span10[5]; + num2++; + ref QuestStep reference23 = ref span3[num2]; questStep = new QuestStep(EInteractionType.UseItem, null, null, 153) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - QuestStep questStep14 = questStep; + QuestStep questStep12 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions5 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions5 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span16 = CollectionsMarshal.AsSpan(list4); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list4; skipConditions5.StepIf = skipStepConditions; - questStep14.SkipConditions = skipConditions; + questStep12.SkipConditions = skipConditions; reference23 = questStep; - ref QuestStep reference24 = ref span10[6]; + num2++; + ref QuestStep reference24 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-283.92462f, 15.060608f, -774.6853f), 140) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep15 = questStep; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 1920u; - questStep15.KillEnemyDataIds = list13; - QuestStep questStep16 = questStep; + QuestStep questStep13 = questStep; + num5 = 1; + List list16 = new List(num5); + CollectionsMarshal.SetCount(list16, num5); + span5 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span5[num4] = 1920u; + questStep13.KillEnemyDataIds = list16; + QuestStep questStep14 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions6 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions6 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span17 = CollectionsMarshal.AsSpan(list4); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list4; skipConditions6.StepIf = skipStepConditions; - questStep16.SkipConditions = skipConditions; + questStep14.SkipConditions = skipConditions; reference24 = questStep; - ref QuestStep reference25 = ref span10[7]; + num2++; + ref QuestStep reference25 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002310u, new Vector3(-283.92462f, 15.060608f, -774.6853f), 140); - QuestStep questStep17 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span18 = CollectionsMarshal.AsSpan(list4); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list4; + QuestStep questStep15 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list4; reference25 = questStep; questSequence13.Steps = list3; reference17 = questSequence; - ref QuestSequence reference26 = ref span9[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence14 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + span3 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - questSequence14.Steps = list3; + questSequence14.Steps = list17; reference26 = questSequence; - ref QuestSequence reference27 = ref span9[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence15 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span19 = CollectionsMarshal.AsSpan(list3); - span19[0] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + num3 = 4; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3684u }; - span19[1] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3460u }; - span19[2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3891u }; - span19[3] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); questSequence15.Steps = list3; reference27 = questSequence; - ref QuestSequence reference28 = ref span9[4]; + num++; + ref QuestSequence reference28 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 @@ -59615,57 +71315,70 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span20 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference29 = ref span20[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference29 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep18 = questStep; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - ref ComplexCombatData reference30 = ref CollectionsMarshal.AsSpan(list14)[0]; + QuestStep questStep16 = questStep; + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span6 = CollectionsMarshal.AsSpan(list18); + num5 = 0; + ref ComplexCombatData reference30 = ref span6[num5]; ComplexCombatData complexCombatData = new ComplexCombatData { DataId = 1921u }; ComplexCombatData complexCombatData2 = complexCombatData; - int num4 = 6; - list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); - Span span21 = CollectionsMarshal.AsSpan(list4); - span21[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + int num6 = 6; + list4 = new List(num6); + CollectionsMarshal.SetCount(list4, num6); + span4 = CollectionsMarshal.AsSpan(list4); + int num7 = 0; + span4[num7] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num7++; + span4[num7] = null; + num7++; + span4[num7] = null; + num7++; + span4[num7] = null; + num7++; + span4[num7] = null; + num7++; + span4[num7] = null; complexCombatData2.CompletionQuestVariablesFlags = list4; reference30 = complexCombatData; - questStep18.ComplexCombatData = list14; + questStep16.ComplexCombatData = list18; reference29 = questStep; - span20[1] = new QuestStep(EInteractionType.Interact, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137); questSequence16.Steps = list3; reference28 = questSequence; - ref QuestSequence reference31 = ref span9[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence17 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(1053) }; - questSequence17.Steps = list3; + questSequence17.Steps = list19; reference31 = questSequence; questRoot7.QuestSequence = list2; AddQuest(questId3, questRoot); @@ -59673,16 +71386,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot8 = questRoot; num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; - questRoot8.Author = list15; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; + questRoot8.Author = list20; QuestRoot questRoot9 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span22 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference32 = ref span22[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference32 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -59691,7 +71407,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59704,45 +71422,55 @@ public static class AssemblyQuestLoader }; questSequence18.Steps = list3; reference32 = questSequence; - ref QuestSequence reference33 = ref span22[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence19 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span23 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference34 = ref span23[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(573.56177f, 347.98422f, -760.73724f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep19 = questStep; - num3 = 1; - list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - ref ComplexCombatData reference35 = ref CollectionsMarshal.AsSpan(list14)[0]; + QuestStep questStep17 = questStep; + num5 = 1; + list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span6 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + ref ComplexCombatData reference35 = ref span6[num4]; complexCombatData = new ComplexCombatData { DataId = 1922u }; ComplexCombatData complexCombatData3 = complexCombatData; - num4 = 6; - list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); - Span span24 = CollectionsMarshal.AsSpan(list4); - span24[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num7 = 6; + list4 = new List(num7); + CollectionsMarshal.SetCount(list4, num7); + span4 = CollectionsMarshal.AsSpan(list4); + num6 = 0; + span4[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; complexCombatData3.CompletionQuestVariablesFlags = list4; reference35 = complexCombatData; - questStep19.ComplexCombatData = list14; + questStep17.ComplexCombatData = list18; questStep.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -59751,25 +71479,29 @@ public static class AssemblyQuestLoader } }; reference34 = questStep; - span23[1] = new QuestStep(EInteractionType.Interact, 2002312u, new Vector3(579.4918f, 347.79883f, -764.3702f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002312u, new Vector3(579.4918f, 347.79883f, -764.3702f), 155); questSequence19.Steps = list3; reference33 = questSequence; - ref QuestSequence reference36 = ref span22[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence20 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + span3 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(1054) }; - questSequence20.Steps = list3; + questSequence20.Steps = list21; reference36 = questSequence; questRoot9.QuestSequence = list2; AddQuest(questId4, questRoot); @@ -59777,25 +71509,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot10 = questRoot; num = 1; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; - questRoot10.Author = list16; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; + questRoot10.Author = list22; QuestRoot questRoot11 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span25 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference37 = ref span25[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference37 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence21 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59808,7 +71545,8 @@ public static class AssemblyQuestLoader }; questSequence21.Steps = list3; reference37 = questSequence; - ref QuestSequence reference38 = ref span25[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -59817,7 +71555,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006771u, new Vector3(89.829834f, 66.04188f, 18.753235f), 137) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006771u, new Vector3(89.829834f, 66.04188f, 18.753235f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -59828,33 +71568,39 @@ public static class AssemblyQuestLoader }; questSequence22.Steps = list3; reference38 = questSequence; - ref QuestSequence reference39 = ref span25[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence23 = questSequence; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1006774u, new Vector3(-11.367981f, 69.20081f, 30.258545f), 137); - questSequence23.Steps = list17; + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006774u, new Vector3(-11.367981f, 69.20081f, 30.258545f), 137); + questSequence23.Steps = list23; reference39 = questSequence; - ref QuestSequence reference40 = ref span25[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence24 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + span3 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - questSequence24.Steps = list3; + questSequence24.Steps = list24; reference40 = questSequence; questRoot11.QuestSequence = list2; AddQuest(questId5, questRoot); @@ -59862,25 +71608,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot12 = questRoot; num = 1; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "Cacahuetes"; - questRoot12.Author = list18; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "Cacahuetes"; + questRoot12.Author = list25; QuestRoot questRoot13 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span26 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference41 = ref span26[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference41 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence25 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference42 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -59890,34 +71641,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - QuestStep questStep20 = questStep; - skipConditions = new SkipConditions(); - SkipConditions skipConditions7 = skipConditions; - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition + QuestStep questStep18 = questStep; + SkipConditions skipConditions7 = new SkipConditions(); + SkipAetheryteCondition obj3 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition2 = skipAetheryteCondition; - 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; + num4 = 1; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + Span span7 = CollectionsMarshal.AsSpan(list26); + num5 = 0; + span7[num5] = 131; + obj3.InTerritory = list26; + skipConditions7.AetheryteShortcutIf = obj3; + questStep18.SkipConditions = skipConditions7; reference42 = questStep; questSequence25.Steps = list3; reference41 = questSequence; - ref QuestSequence reference43 = ref span26[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence26 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + span3 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AethernetShortcut = new AethernetShortcut { @@ -59925,60 +71679,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - questSequence26.Steps = list3; + questSequence26.Steps = list27; reference43 = questSequence; - ref QuestSequence reference44 = ref span26[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence27 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002344u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference45 = ref span3[num2]; + QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2002344u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep21 = questStep; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span27 = CollectionsMarshal.AsSpan(list20); - span27[0] = 18u; - span27[1] = 19u; - questStep21.KillEnemyDataIds = list20; - reference45 = questStep; + num5 = 2; + List list28 = new List(num5); + CollectionsMarshal.SetCount(list28, num5); + span5 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span5[num4] = 18u; + num4++; + span5[num4] = 19u; + obj4.KillEnemyDataIds = list28; + reference45 = obj4; questSequence27.Steps = list3; reference44 = questSequence; - ref QuestSequence reference46 = ref span26[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence28 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002345u, new Vector3(-97.39838f, 16.433899f, -188.2201f), 146) + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + span3 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 2002345u, new Vector3(-97.39838f, 16.433899f, -188.2201f), 146) { ItemId = 2000821u }; - questSequence28.Steps = list3; + questSequence28.Steps = list29; reference46 = questSequence; - ref QuestSequence reference47 = ref span26[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence29 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -59989,20 +71753,23 @@ public static class AssemblyQuestLoader }; questSequence29.Steps = list3; reference47 = questSequence; - ref QuestSequence reference48 = ref span26[5]; + num++; + ref QuestSequence reference48 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence30 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + span3 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { NextQuestId = new QuestId(1056) }; - questSequence30.Steps = list3; + questSequence30.Steps = list30; reference48 = questSequence; questRoot13.QuestSequence = list2; AddQuest(questId6, questRoot); @@ -60010,26 +71777,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot14 = questRoot; num = 1; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; - questRoot14.Author = list21; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; + questRoot14.Author = list31; QuestRoot questRoot15 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span28 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference49 = ref span28[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference49 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence31 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span29 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference50 = ref span29[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference50 = ref span3[num2]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 137) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60040,26 +71811,28 @@ public static class AssemblyQuestLoader }, ItemId = 4542u }; - QuestStep questStep22 = questStep; - skipConditions = new SkipConditions(); - SkipConditions skipConditions8 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + QuestStep questStep19 = questStep; + SkipConditions skipConditions8 = new SkipConditions(); + SkipAetheryteCondition obj5 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition3 = skipAetheryteCondition; - 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; + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span7 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span7[num5] = 131; + obj5.InTerritory = list32; + skipConditions8.AetheryteShortcutIf = obj5; + questStep19.SkipConditions = skipConditions8; reference50 = questStep; - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131); questSequence31.Steps = list3; reference49 = questSequence; - ref QuestSequence reference51 = ref span28[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -60068,8 +71841,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span30 = CollectionsMarshal.AsSpan(list3); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.72705f, 67.23717f, -293.5509f), 180) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.72705f, 67.23717f, -293.5509f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -60081,7 +71855,8 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-355.4327f, 63.813503f, -382.56308f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-355.4327f, 63.813503f, -382.56308f), 180) { Fly = true, SkipConditions = new SkipConditions @@ -60092,35 +71867,41 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference52 = ref span30[2]; + num3++; + ref QuestStep reference52 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002346u, new Vector3(-312.27594f, 32.547485f, -444.9989f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep23 = questStep; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new ComplexCombatData + QuestStep questStep20 = questStep; + num5 = 1; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + span6 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span6[num4] = new ComplexCombatData { DataId = 6u, NameId = 2020u }; - questStep23.ComplexCombatData = list23; + questStep20.ComplexCombatData = list33; reference52 = questStep; questSequence32.Steps = list3; reference51 = questSequence; - ref QuestSequence reference53 = ref span28[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence33 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60138,16 +71919,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot16 = questRoot; num = 1; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; - questRoot16.Author = list24; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; + questRoot16.Author = list34; QuestRoot questRoot17 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span31 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference54 = ref span31[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference54 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -60156,7 +71940,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference55 = ref span3[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60166,49 +71952,54 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - QuestStep questStep24 = questStep; - skipConditions = new SkipConditions(); - SkipConditions skipConditions9 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + QuestStep questStep21 = questStep; + SkipConditions skipConditions9 = new SkipConditions(); + SkipAetheryteCondition obj6 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition4 = skipAetheryteCondition; - 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; + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span7 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span7[num5] = 131; + obj6.InTerritory = list35; + skipConditions9.AetheryteShortcutIf = obj6; + questStep21.SkipConditions = skipConditions9; reference55 = questStep; questSequence34.Steps = list3; reference54 = questSequence; - ref QuestSequence reference56 = ref span31[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence35 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002347u, new Vector3(175.82971f, -10.452454f, 84.91638f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; + QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2002347u, new Vector3(175.82971f, -10.452454f, 84.91638f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep25 = questStep; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 383u; - questStep25.KillEnemyDataIds = list26; - reference57 = questStep; + num5 = 1; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + span5 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span5[num4] = 383u; + obj7.KillEnemyDataIds = list36; + reference57 = obj7; questSequence35.Steps = list3; reference56 = questSequence; - ref QuestSequence reference58 = ref span31[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -60217,7 +72008,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60235,25 +72028,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot18 = questRoot; num = 1; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza, CryoTechnic"; - questRoot18.Author = list27; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; + questRoot18.Author = list37; QuestRoot questRoot19 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span32 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference59 = ref span32[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference59 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence37 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60263,35 +72061,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - QuestStep questStep26 = questStep; - skipConditions = new SkipConditions(); - SkipConditions skipConditions10 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + QuestStep questStep22 = questStep; + SkipConditions skipConditions10 = new SkipConditions(); + SkipAetheryteCondition obj8 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition5 = skipAetheryteCondition; - 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; + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span7 = CollectionsMarshal.AsSpan(list38); + num5 = 0; + span7[num5] = 131; + obj8.InTerritory = list38; + skipConditions10.AetheryteShortcutIf = obj8; + questStep22.SkipConditions = skipConditions10; reference60 = questStep; questSequence37.Steps = list3; reference59 = questSequence; - ref QuestSequence reference61 = ref span32[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence38 = questSequence; - num2 = 16; + num2 = 10; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span33 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference62 = ref span33[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference62 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-97.65164f, 14.866778f, -189.99821f), 146) { StopDistance = 0.5f, @@ -60299,276 +72099,269 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep27 = questStep; - num3 = 2; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span34 = CollectionsMarshal.AsSpan(list29); - span34[0] = 1923u; - span34[1] = 1924u; - questStep27.KillEnemyDataIds = list29; - QuestStep questStep28 = questStep; + QuestStep questStep23 = questStep; + num5 = 2; + List list39 = new List(num5); + CollectionsMarshal.SetCount(list39, num5); + span5 = CollectionsMarshal.AsSpan(list39); + num4 = 0; + span5[num4] = 1923u; + num4++; + span5[num4] = 1924u; + questStep23.KillEnemyDataIds = list39; + QuestStep questStep24 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions11 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions7 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span35 = CollectionsMarshal.AsSpan(list4); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list4; skipConditions11.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep28.SkipConditions = skipConditions; + questStep24.SkipConditions = skipConditions; reference62 = questStep; - ref QuestStep reference63 = ref span33[1]; + num3++; + ref QuestStep reference63 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002349u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146); - QuestStep questStep29 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span36 = CollectionsMarshal.AsSpan(list4); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep29.CompletionQuestVariablesFlags = list4; + QuestStep questStep25 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep25.CompletionQuestVariablesFlags = list4; reference63 = questStep; - span33[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.88503f, 4.1472216f, -216.97708f), 146) - { - StopDistance = 0.5f, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Flying = ELockedSkipCondition.Unlocked - } - } - }; - span33[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-89.94699f, -4.7999415f, -104.621376f), 146) - { - StopDistance = 0.5f, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Flying = ELockedSkipCondition.Unlocked - } - } - }; - span33[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) - { - StopDistance = 0.5f, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Flying = ELockedSkipCondition.Unlocked - } - } - }; - span33[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-80.41123f, -14.578715f, -170.62582f), 146) - { - StopDistance = 0.5f, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Flying = ELockedSkipCondition.Unlocked - } - } - }; - ref QuestStep reference64 = ref span33[6]; + num3++; + ref QuestStep reference64 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-97.35628f, -14.397484f, -176.70825f), 146) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep30 = questStep; - num3 = 2; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span37 = CollectionsMarshal.AsSpan(list30); - span37[0] = 1923u; - span37[1] = 1924u; - questStep30.KillEnemyDataIds = list30; - QuestStep questStep31 = questStep; + QuestStep questStep26 = questStep; + num4 = 2; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + span5 = CollectionsMarshal.AsSpan(list40); + num5 = 0; + span5[num5] = 1923u; + num5++; + span5[num5] = 1924u; + questStep26.KillEnemyDataIds = list40; + QuestStep questStep27 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions12 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions8 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span38 = CollectionsMarshal.AsSpan(list4); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list4; skipConditions12.StepIf = skipStepConditions; - questStep31.SkipConditions = skipConditions; + questStep27.SkipConditions = skipConditions; reference64 = questStep; - ref QuestStep reference65 = ref span33[7]; + num3++; + ref QuestStep reference65 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002348u, new Vector3(-99.4126f, -14.4198f, -179.46143f), 146); - QuestStep questStep32 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span39 = CollectionsMarshal.AsSpan(list4); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep32.CompletionQuestVariablesFlags = list4; + QuestStep questStep28 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list4; reference65 = questStep; - span33[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) - { - StopDistance = 0.5f, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Flying = ELockedSkipCondition.Unlocked - } - } - }; - span33[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-75.59294f, -1.9464281f, -102.63653f), 146) - { - StopDistance = 0.5f, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Flying = ELockedSkipCondition.Unlocked - } - } - }; - ref QuestStep reference66 = ref span33[10]; + num3++; + ref QuestStep reference66 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(137.78966f, 10.371678f, -427.8172f), 146) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep33 = questStep; - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span40 = CollectionsMarshal.AsSpan(list31); - span40[0] = 1923u; - span40[1] = 1924u; - questStep33.KillEnemyDataIds = list31; - QuestStep questStep34 = questStep; + QuestStep questStep29 = questStep; + num5 = 2; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + span5 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span5[num4] = 1923u; + num4++; + span5[num4] = 1924u; + questStep29.KillEnemyDataIds = list41; + QuestStep questStep30 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions13 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions9 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span41 = CollectionsMarshal.AsSpan(list4); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list4; skipConditions13.StepIf = skipStepConditions; - questStep34.SkipConditions = skipConditions; + questStep30.SkipConditions = skipConditions; reference66 = questStep; - ref QuestStep reference67 = ref span33[11]; + num3++; + ref QuestStep reference67 = ref span3[num3]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.78966f, 10.371678f, -427.8172f), 146) { StopDistance = 0.5f }; - QuestStep questStep35 = questStep; + QuestStep questStep31 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions14 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions10 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span42 = CollectionsMarshal.AsSpan(list4); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list4; skipConditions14.StepIf = skipStepConditions; - questStep35.SkipConditions = skipConditions; + questStep31.SkipConditions = skipConditions; reference67 = questStep; - ref QuestStep reference68 = ref span33[12]; + num3++; + ref QuestStep reference68 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002351u, new Vector3(137.74304f, 10.60498f, -420.5539f), 146) { DisableNavmesh = true }; - QuestStep questStep36 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span43 = CollectionsMarshal.AsSpan(list4); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep36.CompletionQuestVariablesFlags = list4; + QuestStep questStep32 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep32.CompletionQuestVariablesFlags = list4; reference68 = questStep; - span33[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.70113f, 10.371678f, -427.45047f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.70113f, 10.371678f, -427.45047f), 146) { DisableNavmesh = true }; - ref QuestStep reference69 = ref span33[14]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(116.208305f, 11.091853f, -475.35126f), 146) + num3++; + ref QuestStep reference69 = ref span3[num3]; + QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(116.208305f, 11.091853f, -475.35126f), 146) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep37 = questStep; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span44 = CollectionsMarshal.AsSpan(list32); - span44[0] = 1923u; - span44[1] = 1924u; - questStep37.KillEnemyDataIds = list32; - reference69 = questStep; - span33[15] = new QuestStep(EInteractionType.Interact, 2002350u, new Vector3(115.983765f, 11.184814f, -482.7802f), 146); + num5 = 2; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + span5 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span5[num4] = 1923u; + num4++; + span5[num4] = 1924u; + obj9.KillEnemyDataIds = list42; + reference69 = obj9; + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002350u, new Vector3(115.983765f, 11.184814f, -482.7802f), 146); questSequence38.Steps = list3; reference61 = questSequence; - ref QuestSequence reference70 = ref span32[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence39 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span45 = CollectionsMarshal.AsSpan(list3); - span45[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); - span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60586,16 +72379,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot20 = questRoot; num = 1; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; - questRoot20.Author = list33; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "liza"; + questRoot20.Author = list43; QuestRoot questRoot21 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span46 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference71 = ref span46[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference71 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -60604,7 +72400,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference72 = ref span3[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60614,41 +72412,46 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - QuestStep questStep38 = questStep; + QuestStep questStep33 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions15 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj10 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition6 = skipAetheryteCondition; - 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; + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + span7 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span7[num5] = 131; + obj10.InTerritory = list44; + skipConditions15.AetheryteShortcutIf = obj10; + questStep33.SkipConditions = skipConditions; reference72 = questStep; questSequence40.Steps = list3; reference71 = questSequence; - ref QuestSequence reference73 = ref span46[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence41 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002356u, new Vector3(-407.4312f, 7.156433f, 525.6886f), 146) + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002356u, new Vector3(-407.4312f, 7.156433f, 525.6886f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - questSequence41.Steps = list3; + questSequence41.Steps = list45; reference73 = questSequence; - ref QuestSequence reference74 = ref span46[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -60657,7 +72460,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60675,25 +72480,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot22 = questRoot; num = 1; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; - questRoot22.Author = list35; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; + questRoot22.Author = list46; QuestRoot questRoot23 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span47 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference75 = ref span47[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference75 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence43 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference76 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60703,64 +72513,72 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - QuestStep questStep39 = questStep; + QuestStep questStep34 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions16 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj11 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition7 = skipAetheryteCondition; - 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; + num5 = 1; + List list47 = new List(num5); + CollectionsMarshal.SetCount(list47, num5); + span7 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span7[num4] = 131; + obj11.InTerritory = list47; + skipConditions16.AetheryteShortcutIf = obj11; + questStep34.SkipConditions = skipConditions; reference76 = questStep; questSequence43.Steps = list3; reference75 = questSequence; - ref QuestSequence reference77 = ref span47[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence44 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007829u, new Vector3(26.932129f, 13f, 44.418945f), 141) + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + span3 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007829u, new Vector3(26.932129f, 13f, 44.418945f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - questSequence44.Steps = list3; + questSequence44.Steps = list48; reference77 = questSequence; - ref QuestSequence reference78 = ref span47[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence45 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span48 = CollectionsMarshal.AsSpan(list3); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span48[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) { StopDistance = 0.5f, Mount = false }; questSequence45.Steps = list3; reference78 = questSequence; - ref QuestSequence reference79 = ref span47[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -60769,7 +72587,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60787,25 +72607,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "plogon_enjoyer"; - questRoot24.Author = list37; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot24.Author = list49; QuestRoot questRoot25 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span49 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference80 = ref span49[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference80 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence47 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -60818,16 +72643,19 @@ public static class AssemblyQuestLoader }; questSequence47.Steps = list3; reference80 = questSequence; - ref QuestSequence reference81 = ref span49[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence48 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + span3 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AethernetShortcut = new AethernetShortcut { @@ -60835,19 +72663,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - questSequence48.Steps = list3; + questSequence48.Steps = list50; reference81 = questSequence; - ref QuestSequence reference82 = ref span49[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence49 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span50 = CollectionsMarshal.AsSpan(list3); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-231.99818f, -28.997791f, 123.01078f), 141) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-231.99818f, -28.997791f, 123.01078f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -60856,34 +72686,41 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - span50[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002439u, new Vector3(-232.80695f, -28.793823f, 125.29175f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002439u, new Vector3(-232.80695f, -28.793823f, 125.29175f), 141) { ItemId = 2000951u }; questSequence49.Steps = list3; reference82 = questSequence; - ref QuestSequence reference83 = ref span49[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence50 = questSequence; num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 2002440u, new Vector3(-232.80695f, -28.946411f, 125.29175f), 141); - questSequence50.Steps = list38; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + span3 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002440u, new Vector3(-232.80695f, -28.946411f, 125.29175f), 141); + questSequence50.Steps = list51; reference83 = questSequence; - ref QuestSequence reference84 = ref span49[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence51 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60901,16 +72738,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot26 = questRoot; num = 1; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "plogon_enjoyer"; - questRoot26.Author = list39; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot26.Author = list52; QuestRoot questRoot27 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span51 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference85 = ref span51[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference85 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -60919,8 +72759,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span52 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference86 = ref span52[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference86 = ref span3[num3]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60931,76 +72772,88 @@ public static class AssemblyQuestLoader }, ItemId = 4543u }; - QuestStep questStep40 = questStep; + QuestStep questStep35 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions17 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition(); - SkipAetheryteCondition skipAetheryteCondition8 = skipAetheryteCondition; - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span53 = CollectionsMarshal.AsSpan(list40); - span53[0] = 130; - span53[1] = 131; - skipAetheryteCondition8.InTerritory = list40; + SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); + num4 = 2; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span7 = CollectionsMarshal.AsSpan(list53); + num5 = 0; + span7[num5] = 130; + num5++; + span7[num5] = 131; + skipAetheryteCondition.InTerritory = list53; skipConditions17.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep40.SkipConditions = skipConditions; + questStep35.SkipConditions = skipConditions; reference86 = questStep; - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131); questSequence52.Steps = list3; reference85 = questSequence; - ref QuestSequence reference87 = ref span51[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence53 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002441u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; + QuestStep obj12 = new QuestStep(EInteractionType.Combat, 2002441u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, ItemId = 2000817u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - QuestStep questStep41 = questStep; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 1925u; - questStep41.KillEnemyDataIds = list41; - reference88 = questStep; + num5 = 1; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = 1925u; + obj12.KillEnemyDataIds = list54; + reference88 = obj12; questSequence53.Steps = list3; reference87 = questSequence; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence54 = questSequence; num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 2002442u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137); - questSequence54.Steps = list42; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + span3 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002442u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137); + questSequence54.Steps = list55; reference89 = questSequence; - ref QuestSequence reference90 = ref span51[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence55 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61018,16 +72871,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot28 = questRoot; num = 1; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; - questRoot28.Author = list43; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot28.Author = list56; QuestRoot questRoot29 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span54 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference91 = ref span54[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference91 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -61036,7 +72892,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference92 = ref span3[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61046,44 +72904,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - QuestStep questStep42 = questStep; + QuestStep questStep36 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions18 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition(); - SkipAetheryteCondition skipAetheryteCondition9 = skipAetheryteCondition; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span55 = CollectionsMarshal.AsSpan(list44); - span55[0] = 130; - span55[1] = 131; - skipAetheryteCondition9.InTerritory = list44; - skipConditions18.AetheryteShortcutIf = skipAetheryteCondition; + SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); + num4 = 2; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + span7 = CollectionsMarshal.AsSpan(list57); + num5 = 0; + span7[num5] = 130; + num5++; + span7[num5] = 131; + skipAetheryteCondition2.InTerritory = list57; + skipConditions18.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep42.SkipConditions = skipConditions; + questStep36.SkipConditions = skipConditions; reference92 = questStep; questSequence56.Steps = list3; reference91 = questSequence; - ref QuestSequence reference93 = ref span54[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence57 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007874u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + num3 = 1; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007874u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - questSequence57.Steps = list3; + questSequence57.Steps = list58; reference93 = questSequence; - ref QuestSequence reference94 = ref span54[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -61092,41 +72955,48 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span56 = CollectionsMarshal.AsSpan(list3); - span56[0] = new QuestStep(EInteractionType.UseItem, 2002443u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 2002443u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, ItemId = 2000818u }; - ref QuestStep reference95 = ref span56[1]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) + num3++; + ref QuestStep reference95 = ref span3[num3]; + QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) { DelaySecondsAtStart = 0f, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - QuestStep questStep43 = questStep; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = 1926u; - questStep43.KillEnemyDataIds = list45; - reference95 = questStep; + num5 = 1; + List list59 = new List(num5); + CollectionsMarshal.SetCount(list59, num5); + span5 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span5[num4] = 1926u; + obj13.KillEnemyDataIds = list59; + reference95 = obj13; questSequence58.Steps = list3; reference94 = questSequence; - ref QuestSequence reference96 = ref span54[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence59 = questSequence; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2002444u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153); - questSequence59.Steps = list46; + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002444u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153); + questSequence59.Steps = list60; reference96 = questSequence; - ref QuestSequence reference97 = ref span54[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61135,7 +73005,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61153,25 +73025,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot30 = questRoot; num = 1; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "plogon_enjoyer"; - questRoot30.Author = list47; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot30.Author = list61; QuestRoot questRoot31 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span57 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference98 = ref span57[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference98 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence61 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61181,28 +73058,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - QuestStep questStep44 = questStep; + QuestStep questStep37 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions19 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition(); - SkipAetheryteCondition skipAetheryteCondition10 = skipAetheryteCondition; - num3 = 2; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span58 = CollectionsMarshal.AsSpan(list48); - span58[0] = 130; - span58[1] = 131; - skipAetheryteCondition10.InTerritory = list48; - skipConditions19.AetheryteShortcutIf = skipAetheryteCondition; + SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); + num4 = 2; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span7 = CollectionsMarshal.AsSpan(list62); + num5 = 0; + span7[num5] = 130; + num5++; + span7[num5] = 131; + skipAetheryteCondition3.InTerritory = list62; + skipConditions19.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep44.SkipConditions = skipConditions; + questStep37.SkipConditions = skipConditions; reference99 = questStep; questSequence61.Steps = list3; reference98 = questSequence; - ref QuestSequence reference100 = ref span57[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61211,41 +73090,48 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span59 = CollectionsMarshal.AsSpan(list3); - span59[0] = new QuestStep(EInteractionType.UseItem, 2002445u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 2002445u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, ItemId = 2000820u }; - ref QuestStep reference101 = ref span59[1]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) + num3++; + ref QuestStep reference101 = ref span3[num3]; + QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - QuestStep questStep45 = questStep; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 1927u; - questStep45.KillEnemyDataIds = list49; - questStep.CombatDelaySecondsAtStart = 0f; - reference101 = questStep; + num5 = 1; + List list63 = new List(num5); + CollectionsMarshal.SetCount(list63, num5); + span5 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span5[num4] = 1927u; + obj14.KillEnemyDataIds = list63; + obj14.CombatDelaySecondsAtStart = 0f; + reference101 = obj14; questSequence62.Steps = list3; reference100 = questSequence; - ref QuestSequence reference102 = ref span57[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence63 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002446u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152); - questSequence63.Steps = list3; + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002446u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152); + questSequence63.Steps = list64; reference102 = questSequence; - ref QuestSequence reference103 = ref span57[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61254,7 +73140,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61272,25 +73160,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot32 = questRoot; num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "plogon_enjoyer"; - questRoot32.Author = list50; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot32.Author = list65; QuestRoot questRoot33 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span60 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference104 = ref span60[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference104 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence65 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference105 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61300,28 +73193,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - QuestStep questStep46 = questStep; + QuestStep questStep38 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions20 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition(); - SkipAetheryteCondition skipAetheryteCondition11 = skipAetheryteCondition; - num3 = 2; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span61 = CollectionsMarshal.AsSpan(list51); - span61[0] = 130; - span61[1] = 131; - skipAetheryteCondition11.InTerritory = list51; - skipConditions20.AetheryteShortcutIf = skipAetheryteCondition; + SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); + num4 = 2; + List list66 = new List(num4); + CollectionsMarshal.SetCount(list66, num4); + span7 = CollectionsMarshal.AsSpan(list66); + num5 = 0; + span7[num5] = 130; + num5++; + span7[num5] = 131; + skipAetheryteCondition4.InTerritory = list66; + skipConditions20.AetheryteShortcutIf = skipAetheryteCondition4; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep46.SkipConditions = skipConditions; + questStep38.SkipConditions = skipConditions; reference105 = questStep; questSequence65.Steps = list3; reference104 = questSequence; - ref QuestSequence reference106 = ref span60[1]; + num++; + ref QuestSequence reference106 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61330,46 +73225,55 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference107 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - QuestStep questStep47 = questStep; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + QuestStep questStep39 = questStep; + num5 = 1; + List list67 = new List(num5); + CollectionsMarshal.SetCount(list67, num5); + Span span8 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBMNK451_01065_Q1_000_000") }; - questStep47.DialogueChoices = list52; + questStep39.DialogueChoices = list67; reference107 = questStep; questSequence66.Steps = list3; reference106 = questSequence; - ref QuestSequence reference108 = ref span60[2]; + num++; + ref QuestSequence reference108 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence67 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span62 = CollectionsMarshal.AsSpan(list3); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.66748f, 26.617363f, -320.76898f), 146) + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.66748f, 26.617363f, -320.76898f), 146) { Mount = true }; - span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.911945f, 23.511465f, -142.86761f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.911945f, 23.511465f, -142.86761f), 146) { Fly = true, Land = true }; - span62[2] = new QuestStep(EInteractionType.Interact, 2002447u, new Vector3(41.428223f, 25.101074f, -149.64526f), 146); - span62[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.038277f, 50.482662f, -578.6224f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002447u, new Vector3(41.428223f, 25.101074f, -149.64526f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.038277f, 50.482662f, -578.6224f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -61380,96 +73284,116 @@ public static class AssemblyQuestLoader } } }; - span62[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.885742f, 17.930914f, -619.7939f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.885742f, 17.930914f, -619.7939f), 146) { Fly = true }; - span62[5] = new QuestStep(EInteractionType.Interact, 2002548u, new Vector3(17.837708f, 20.523315f, -629.1448f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002548u, new Vector3(17.837708f, 20.523315f, -629.1448f), 146) { Mount = true }; - span62[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(214.89189f, 29.38419f, 59.154907f), 147) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(214.89189f, 29.38419f, 59.154907f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - span62[7] = new QuestStep(EInteractionType.Interact, 2002448u, new Vector3(213.70251f, 30.19751f, 61.020752f), 147); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002448u, new Vector3(213.70251f, 30.19751f, 61.020752f), 147); questSequence67.Steps = list3; reference108 = questSequence; - ref QuestSequence reference109 = ref span60[3]; + num++; + ref QuestSequence reference109 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence68 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + span3 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - questSequence68.Steps = list3; + questSequence68.Steps = list68; reference109 = questSequence; - ref QuestSequence reference110 = ref span60[4]; + num++; + ref QuestSequence reference110 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence69 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference111 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep48 = questStep; - num3 = 3; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span63 = CollectionsMarshal.AsSpan(list53); - span63[0] = 81u; - span63[1] = 345u; - span63[2] = 348u; - questStep48.KillEnemyDataIds = list53; + QuestStep questStep40 = questStep; + num4 = 3; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span5 = CollectionsMarshal.AsSpan(list69); + num5 = 0; + span5[num5] = 81u; + num5++; + span5[num5] = 345u; + num5++; + span5[num5] = 348u; + questStep40.KillEnemyDataIds = list69; questStep.CombatDelaySecondsAtStart = 0f; reference111 = questStep; questSequence69.Steps = list3; reference110 = questSequence; - ref QuestSequence reference112 = ref span60[5]; + num++; + ref QuestSequence reference112 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence70 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135); - questSequence70.Steps = list3; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135); + questSequence70.Steps = list70; reference112 = questSequence; - ref QuestSequence reference113 = ref span60[6]; + num++; + ref QuestSequence reference113 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence71 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - questSequence71.Steps = list3; + questSequence71.Steps = list71; reference113 = questSequence; - ref QuestSequence reference114 = ref span60[7]; + num++; + ref QuestSequence reference114 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61478,7 +73402,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61496,25 +73422,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot34 = questRoot; num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "plogon_enjoyer"; - questRoot34.Author = list54; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot34.Author = list72; QuestRoot questRoot35 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span64 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference115 = ref span64[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference115 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence73 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference116 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61524,28 +73455,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - QuestStep questStep49 = questStep; + QuestStep questStep41 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions21 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition(); - SkipAetheryteCondition skipAetheryteCondition12 = skipAetheryteCondition; - num3 = 2; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span65 = CollectionsMarshal.AsSpan(list55); - span65[0] = 130; - span65[1] = 131; - skipAetheryteCondition12.InTerritory = list55; - skipConditions21.AetheryteShortcutIf = skipAetheryteCondition; + SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); + num5 = 2; + List list73 = new List(num5); + CollectionsMarshal.SetCount(list73, num5); + span7 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span7[num4] = 130; + num4++; + span7[num4] = 131; + skipAetheryteCondition5.InTerritory = list73; + skipConditions21.AetheryteShortcutIf = skipAetheryteCondition5; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep49.SkipConditions = skipConditions; + questStep41.SkipConditions = skipConditions; reference116 = questStep; questSequence73.Steps = list3; reference115 = questSequence; - ref QuestSequence reference117 = ref span64[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61554,34 +73487,39 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span66 = CollectionsMarshal.AsSpan(list3); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.50675f, -4.574165f, -543.2282f), 156) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.50675f, -4.574165f, -543.2282f), 156) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span66[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(104.612144f, -4.931232f, -533.5191f), 156) + num3++; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(104.612144f, -4.931232f, -533.5191f), 156) { Mount = false }; questSequence74.Steps = list3; reference117 = questSequence; - ref QuestSequence reference118 = ref span64[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence75 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007899u, new Vector3(104.72266f, -4.9380107f, -533.53174f), 156) + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007899u, new Vector3(104.72266f, -4.9380107f, -533.53174f), 156) { Fly = true, NextQuestId = new QuestId(2026) }; - questSequence75.Steps = list3; + questSequence75.Steps = list74; reference118 = questSequence; questRoot35.QuestSequence = list2; AddQuest(questId17, questRoot); @@ -61589,16 +73527,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot36 = questRoot; num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; - questRoot36.Author = list56; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "Cacahuetes"; + questRoot36.Author = list75; QuestRoot questRoot37 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span67 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference119 = ref span67[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference119 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -61607,7 +73548,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference120 = ref span3[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -61617,35 +73560,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - QuestStep questStep50 = questStep; + QuestStep questStep42 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions22 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj15 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition13 = skipAetheryteCondition; - 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; + num4 = 1; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + span7 = CollectionsMarshal.AsSpan(list76); + num5 = 0; + span7[num5] = 133; + obj15.InTerritory = list76; + skipConditions22.AetheryteShortcutIf = obj15; + questStep42.SkipConditions = skipConditions; reference120 = questStep; questSequence76.Steps = list3; reference119 = questSequence; - ref QuestSequence reference121 = ref span67[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence77 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span68 = CollectionsMarshal.AsSpan(list3); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61657,93 +73603,115 @@ public static class AssemblyQuestLoader } } }; - span68[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence77.Steps = list3; reference121 = questSequence; - ref QuestSequence reference122 = ref span67[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence78 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155); - questSequence78.Steps = list3; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + span3 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155); + questSequence78.Steps = list77; reference122 = questSequence; - ref QuestSequence reference123 = ref span67[3]; + num++; + ref QuestSequence reference123 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence79 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154) + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - questSequence79.Steps = list3; + questSequence79.Steps = list78; reference123 = questSequence; - ref QuestSequence reference124 = ref span67[4]; + num++; + ref QuestSequence reference124 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence80 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - questSequence80.Steps = list3; + questSequence80.Steps = list79; reference124 = questSequence; - ref QuestSequence reference125 = ref span67[5]; + num++; + ref QuestSequence reference125 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence81 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span69 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference126 = ref span69[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference126 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(522.39246f, 234.74356f, 322.10266f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep51 = questStep; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = 1928u; - questStep51.KillEnemyDataIds = list58; - QuestStep questStep52 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span70 = CollectionsMarshal.AsSpan(list4); - span70[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = null; - questStep52.CompletionQuestVariablesFlags = list4; + QuestStep questStep43 = questStep; + num5 = 1; + List list80 = new List(num5); + CollectionsMarshal.SetCount(list80, num5); + span5 = CollectionsMarshal.AsSpan(list80); + num4 = 0; + span5[num4] = 1928u; + questStep43.KillEnemyDataIds = list80; + QuestStep questStep44 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + questStep44.CompletionQuestVariablesFlags = list4; reference126 = questStep; - span69[1] = new QuestStep(EInteractionType.Interact, 2002420u, new Vector3(524.6509f, 234.72949f, 324.08643f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002420u, new Vector3(524.6509f, 234.72949f, 324.08643f), 155); questSequence81.Steps = list3; reference125 = questSequence; - ref QuestSequence reference127 = ref span67[6]; + num++; + ref QuestSequence reference127 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61752,8 +73720,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span71 = CollectionsMarshal.AsSpan(list3); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -61764,7 +73733,8 @@ public static class AssemblyQuestLoader } } }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1068) }; @@ -61776,26 +73746,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot38 = questRoot; num = 1; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; - questRoot38.Author = list59; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "Cacahuetes"; + questRoot38.Author = list81; QuestRoot questRoot39 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span72 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference128 = ref span72[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference128 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence83 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span73 = CollectionsMarshal.AsSpan(list3); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61807,14 +73781,17 @@ public static class AssemblyQuestLoader } } }; - span73[1] = new QuestStep(EInteractionType.EquipItem, null, null, 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 155) { ItemId = 4545u }; - span73[2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence83.Steps = list3; reference128 = questSequence; - ref QuestSequence reference129 = ref span72[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61823,8 +73800,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span74 = CollectionsMarshal.AsSpan(list3); - span74[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, JumpDestination = new JumpDestination @@ -61839,7 +73817,8 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) + num3++; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) { JumpDestination = new JumpDestination { @@ -61853,49 +73832,56 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference130 = ref span74[2]; - questStep = new QuestStep(EInteractionType.Combat, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155) + num3++; + ref QuestStep reference130 = ref span3[num3]; + QuestStep obj16 = new QuestStep(EInteractionType.Combat, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep53 = questStep; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 58u; - questStep53.KillEnemyDataIds = list60; - reference130 = questStep; + num5 = 1; + List list82 = new List(num5); + CollectionsMarshal.SetCount(list82, num5); + span5 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span5[num4] = 58u; + obj16.KillEnemyDataIds = list82; + reference130 = obj16; questSequence84.Steps = list3; reference129 = questSequence; - ref QuestSequence reference131 = ref span72[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence85 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span75 = CollectionsMarshal.AsSpan(list3); - span75[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) { JumpDestination = new JumpDestination { Position = new Vector3(264.47205f, 237.91518f, -336.72607f) } }; - span75[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) { JumpDestination = new JumpDestination { Position = new Vector3(263.72516f, 239.88335f, -346.17166f) } }; - span75[2] = new QuestStep(EInteractionType.Interact, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155); questSequence85.Steps = list3; reference131 = questSequence; - ref QuestSequence reference132 = ref span72[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61904,8 +73890,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span76 = CollectionsMarshal.AsSpan(list3); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61917,7 +73904,8 @@ public static class AssemblyQuestLoader } } }; - span76[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1069) }; @@ -61929,26 +73917,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "Cacahuetes"; - questRoot40.Author = list61; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "Cacahuetes"; + questRoot40.Author = list83; QuestRoot questRoot41 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span77 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference133 = ref span77[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference133 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence87 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span78 = CollectionsMarshal.AsSpan(list3); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61960,10 +73952,12 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence87.Steps = list3; reference133 = questSequence; - ref QuestSequence reference134 = ref span77[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61972,41 +73966,48 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span79 = CollectionsMarshal.AsSpan(list3); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.85364f, 247.89886f, -269.40628f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.85364f, 247.89886f, -269.40628f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - ref QuestStep reference135 = ref span79[1]; - questStep = new QuestStep(EInteractionType.Combat, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155) + num3++; + ref QuestStep reference135 = ref span3[num3]; + QuestStep obj17 = new QuestStep(EInteractionType.Combat, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep54 = questStep; - num3 = 2; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span80 = CollectionsMarshal.AsSpan(list62); - span80[0] = 11u; - span80[1] = 1931u; - questStep54.KillEnemyDataIds = list62; - reference135 = questStep; + num4 = 2; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + span5 = CollectionsMarshal.AsSpan(list84); + num5 = 0; + span5[num5] = 11u; + num5++; + span5[num5] = 1931u; + obj17.KillEnemyDataIds = list84; + reference135 = obj17; questSequence88.Steps = list3; reference134 = questSequence; - ref QuestSequence reference136 = ref span77[2]; + num++; + ref QuestSequence reference136 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence89 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155); - questSequence89.Steps = list3; + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155); + questSequence89.Steps = list85; reference136 = questSequence; - ref QuestSequence reference137 = ref span77[3]; + num++; + ref QuestSequence reference137 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62015,8 +74016,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span81 = CollectionsMarshal.AsSpan(list3); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62028,7 +74030,8 @@ public static class AssemblyQuestLoader } } }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1070) }; @@ -62040,26 +74043,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "Cacahuetes"; - questRoot42.Author = list63; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "Cacahuetes"; + questRoot42.Author = list86; QuestRoot questRoot43 = questRoot; - num = 12; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span82 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference138 = ref span82[0]; + index = 12; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference138 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence91 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span83 = CollectionsMarshal.AsSpan(list3); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62071,35 +74078,41 @@ public static class AssemblyQuestLoader } } }; - span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence91.Steps = list3; reference138 = questSequence; - ref QuestSequence reference139 = ref span82[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence92 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002423u, new Vector3(-318.80682f, 304.64624f, 243.33557f), 155) + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + span3 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002423u, new Vector3(-318.80682f, 304.64624f, 243.33557f), 155) { Fly = true }; - questSequence92.Steps = list3; + questSequence92.Steps = list87; reference139 = questSequence; - ref QuestSequence reference140 = ref span82[2]; + num++; + ref QuestSequence reference140 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence93 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span84 = CollectionsMarshal.AsSpan(list3); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -62110,10 +74123,12 @@ public static class AssemblyQuestLoader } } }; - span84[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence93.Steps = list3; reference140 = questSequence; - ref QuestSequence reference141 = ref span82[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -62122,35 +74137,42 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference142 = ref span3[num3]; + QuestStep obj18 = new QuestStep(EInteractionType.Combat, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep55 = questStep; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = 1932u; - questStep55.KillEnemyDataIds = list64; - reference142 = questStep; + num5 = 1; + List list88 = new List(num5); + CollectionsMarshal.SetCount(list88, num5); + span5 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span5[num4] = 1932u; + obj18.KillEnemyDataIds = list88; + reference142 = obj18; questSequence94.Steps = list3; reference141 = questSequence; - ref QuestSequence reference143 = ref span82[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence95 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155); - questSequence95.Steps = list3; + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155); + questSequence95.Steps = list89; reference143 = questSequence; - ref QuestSequence reference144 = ref span82[5]; + num++; + ref QuestSequence reference144 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 @@ -62159,33 +74181,40 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference145 = ref span3[num3]; + QuestStep obj19 = new QuestStep(EInteractionType.Combat, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep56 = questStep; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = 1933u; - questStep56.KillEnemyDataIds = list65; - reference145 = questStep; + num4 = 1; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + span5 = CollectionsMarshal.AsSpan(list90); + num5 = 0; + span5[num5] = 1933u; + obj19.KillEnemyDataIds = list90; + reference145 = obj19; questSequence96.Steps = list3; reference144 = questSequence; - ref QuestSequence reference146 = ref span82[6]; + num++; + ref QuestSequence reference146 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence97 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155); - questSequence97.Steps = list3; + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155); + questSequence97.Steps = list91; reference146 = questSequence; - ref QuestSequence reference147 = ref span82[7]; + num++; + ref QuestSequence reference147 = ref span2[num]; questSequence = new QuestSequence { Sequence = 7 @@ -62194,33 +74223,40 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference148 = ref span3[num3]; + QuestStep obj20 = new QuestStep(EInteractionType.Combat, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep57 = questStep; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 1934u; - questStep57.KillEnemyDataIds = list66; - reference148 = questStep; + num5 = 1; + List list92 = new List(num5); + CollectionsMarshal.SetCount(list92, num5); + span5 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span5[num4] = 1934u; + obj20.KillEnemyDataIds = list92; + reference148 = obj20; questSequence98.Steps = list3; reference147 = questSequence; - ref QuestSequence reference149 = ref span82[8]; + num++; + ref QuestSequence reference149 = ref span2[num]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence99 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155); - questSequence99.Steps = list3; + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155); + questSequence99.Steps = list93; reference149 = questSequence; - ref QuestSequence reference150 = ref span82[9]; + num++; + ref QuestSequence reference150 = ref span2[num]; questSequence = new QuestSequence { Sequence = 9 @@ -62229,8 +74265,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span85 = CollectionsMarshal.AsSpan(list3); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62242,40 +74279,46 @@ public static class AssemblyQuestLoader } } }; - span85[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence100.Steps = list3; reference150 = questSequence; - ref QuestSequence reference151 = ref span82[10]; + num++; + ref QuestSequence reference151 = ref span2[num]; questSequence = new QuestSequence { Sequence = 10 }; QuestSequence questSequence101 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span86 = CollectionsMarshal.AsSpan(list3); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.19377f, 358.68628f, -580.35266f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.19377f, 358.68628f, -580.35266f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - ref QuestStep reference152 = ref span86[1]; - questStep = new QuestStep(EInteractionType.Combat, 2002424u, new Vector3(67.91785f, 374.77686f, -672.2057f), 155) + num2++; + ref QuestStep reference152 = ref span3[num2]; + QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2002424u, new Vector3(67.91785f, 374.77686f, -672.2057f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep58 = questStep; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 1929u; - questStep58.KillEnemyDataIds = list67; - reference152 = questStep; + num4 = 1; + List list94 = new List(num4); + CollectionsMarshal.SetCount(list94, num4); + span5 = CollectionsMarshal.AsSpan(list94); + num5 = 0; + span5[num5] = 1929u; + obj21.KillEnemyDataIds = list94; + reference152 = obj21; questSequence101.Steps = list3; reference151 = questSequence; - ref QuestSequence reference153 = ref span82[11]; + num++; + ref QuestSequence reference153 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62284,8 +74327,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span87 = CollectionsMarshal.AsSpan(list3); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62297,7 +74341,8 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1071) }; @@ -62309,26 +74354,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; - questRoot44.Author = list68; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "Cacahuetes"; + questRoot44.Author = list95; QuestRoot questRoot45 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span88 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference154 = ref span88[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference154 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence103 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span89 = CollectionsMarshal.AsSpan(list3); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62340,10 +74389,12 @@ public static class AssemblyQuestLoader } } }; - span89[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence103.Steps = list3; reference154 = questSequence; - ref QuestSequence reference155 = ref span88[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -62352,33 +74403,38 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002425u, new Vector3(96.69641f, 356.3744f, -257.2519f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference156 = ref span3[num3]; + QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2002425u, new Vector3(96.69641f, 356.3744f, -257.2519f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep59 = questStep; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 1930u; - questStep59.KillEnemyDataIds = list69; - reference156 = questStep; + num5 = 1; + List list96 = new List(num5); + CollectionsMarshal.SetCount(list96, num5); + span5 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span5[num4] = 1930u; + obj22.KillEnemyDataIds = list96; + reference156 = obj22; questSequence104.Steps = list3; reference155 = questSequence; - ref QuestSequence reference157 = ref span88[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence105 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span90 = CollectionsMarshal.AsSpan(list3); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -62389,7 +74445,8 @@ public static class AssemblyQuestLoader } } }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1072) }; @@ -62401,16 +74458,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "Cacahuetes"; - questRoot46.Author = list70; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "Cacahuetes"; + questRoot46.Author = list97; QuestRoot questRoot47 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span91 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference158 = ref span91[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference158 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -62419,8 +74479,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span92 = CollectionsMarshal.AsSpan(list3); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62432,31 +74493,36 @@ public static class AssemblyQuestLoader } } }; - span92[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence106.Steps = list3; reference158 = questSequence; - ref QuestSequence reference159 = ref span91[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence107 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span93 = CollectionsMarshal.AsSpan(list3); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.25278f, 361.89908f, -575.7137f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.25278f, 361.89908f, -575.7137f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span93[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(266.7326f, 362.4986f, -586.0155f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(266.7326f, 362.4986f, -586.0155f), 155) { Mount = false }; questSequence107.Steps = list3; reference159 = questSequence; - ref QuestSequence reference160 = ref span91[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62465,13 +74531,15 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span94 = CollectionsMarshal.AsSpan(list3); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1689) }; @@ -62483,25 +74551,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "pot0to"; - questRoot48.Author = list71; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "pot0to"; + questRoot48.Author = list98; QuestRoot questRoot49 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span95 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference161 = ref span95[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference161 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence109 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference162 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62511,25 +74584,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - QuestStep questStep60 = questStep; + QuestStep questStep45 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions23 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj23 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition14 = skipAetheryteCondition; - 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; + num4 = 1; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span7 = CollectionsMarshal.AsSpan(list99); + num5 = 0; + span7[num5] = 130; + obj23.InTerritory = list99; + skipConditions23.AetheryteShortcutIf = obj23; + questStep45.SkipConditions = skipConditions; reference162 = questStep; questSequence109.Steps = list3; reference161 = questSequence; - ref QuestSequence reference163 = ref span95[1]; + num++; + ref QuestSequence reference163 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -62538,38 +74613,45 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002533u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference164 = ref span3[num3]; + QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2002533u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep61 = questStep; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 305u; - questStep61.KillEnemyDataIds = list73; - reference164 = questStep; + num5 = 1; + List list100 = new List(num5); + CollectionsMarshal.SetCount(list100, num5); + span5 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span5[num4] = 305u; + obj24.KillEnemyDataIds = list100; + reference164 = obj24; questSequence110.Steps = list3; reference163 = questSequence; - ref QuestSequence reference165 = ref span95[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence111 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002429u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2002429u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) { ItemId = 2000954u }; - questSequence111.Steps = list3; + questSequence111.Steps = list101; reference165 = questSequence; - ref QuestSequence reference166 = ref span95[3]; + num++; + ref QuestSequence reference166 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -62578,7 +74660,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -62589,16 +74673,19 @@ public static class AssemblyQuestLoader }; questSequence112.Steps = list3; reference166 = questSequence; - ref QuestSequence reference167 = ref span95[4]; + num++; + ref QuestSequence reference167 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence113 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference168 = ref span3[num2]; questStep = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AethernetShortcut = new AethernetShortcut @@ -62607,21 +74694,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - QuestStep questStep62 = questStep; + QuestStep questStep46 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions24 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj25 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition15 = skipAetheryteCondition; - 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; + num4 = 1; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + span7 = CollectionsMarshal.AsSpan(list102); + num5 = 0; + span7[num5] = 130; + obj25.InTerritory = list102; + skipConditions24.AetheryteShortcutIf = obj25; + questStep46.SkipConditions = skipConditions; reference168 = questStep; questSequence113.Steps = list3; reference167 = questSequence; @@ -62631,16 +74719,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot50 = questRoot; num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "pot0to"; - questRoot50.Author = list75; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "pot0to"; + questRoot50.Author = list103; QuestRoot questRoot51 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span96 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference169 = ref span96[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference169 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -62649,8 +74740,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span97 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference170 = ref span97[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference170 = ref span3[num3]; questStep = new QuestStep(EInteractionType.EquipItem, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62661,77 +74753,89 @@ public static class AssemblyQuestLoader }, ItemId = 4548u }; - QuestStep questStep63 = questStep; + QuestStep questStep47 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions25 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj26 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition16 = skipAetheryteCondition; - num3 = 2; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span98 = CollectionsMarshal.AsSpan(list76); - span98[0] = 130; - span98[1] = 131; - skipAetheryteCondition16.InTerritory = list76; - skipConditions25.AetheryteShortcutIf = skipAetheryteCondition; - questStep63.SkipConditions = skipConditions; + num5 = 2; + List list104 = new List(num5); + CollectionsMarshal.SetCount(list104, num5); + span7 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span7[num4] = 130; + num4++; + span7[num4] = 131; + obj26.InTerritory = list104; + skipConditions25.AetheryteShortcutIf = obj26; + questStep47.SkipConditions = skipConditions; reference170 = questStep; - span97[1] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131); questSequence114.Steps = list3; reference169 = questSequence; - ref QuestSequence reference171 = ref span96[1]; + num++; + ref QuestSequence reference171 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence115 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002534u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference172 = ref span3[num2]; + QuestStep obj27 = new QuestStep(EInteractionType.Combat, 2002534u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep64 = questStep; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 21u; - questStep64.KillEnemyDataIds = list77; - reference172 = questStep; + num4 = 1; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + span5 = CollectionsMarshal.AsSpan(list105); + num5 = 0; + span5[num5] = 21u; + obj27.KillEnemyDataIds = list105; + reference172 = obj27; questSequence115.Steps = list3; reference171 = questSequence; - ref QuestSequence reference173 = ref span96[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence116 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002430u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + span3 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 2002430u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) { ItemId = 2000809u }; - questSequence116.Steps = list3; + questSequence116.Steps = list106; reference173 = questSequence; - ref QuestSequence reference174 = ref span96[3]; + num++; + ref QuestSequence reference174 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence117 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -62742,7 +74846,8 @@ public static class AssemblyQuestLoader }; questSequence117.Steps = list3; reference174 = questSequence; - ref QuestSequence reference175 = ref span96[4]; + num++; + ref QuestSequence reference175 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62751,7 +74856,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference176 = ref span3[num3]; questStep = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62761,21 +74868,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - QuestStep questStep65 = questStep; + QuestStep questStep48 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions26 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj28 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition17 = skipAetheryteCondition; - 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; + num5 = 1; + List list107 = new List(num5); + CollectionsMarshal.SetCount(list107, num5); + span7 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span7[num4] = 130; + obj28.InTerritory = list107; + skipConditions26.AetheryteShortcutIf = obj28; + questStep48.SkipConditions = skipConditions; reference176 = questStep; questSequence118.Steps = list3; reference175 = questSequence; @@ -62785,25 +74893,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot52 = questRoot; num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "pot0to"; - questRoot52.Author = list79; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "pot0to"; + questRoot52.Author = list108; QuestRoot questRoot53 = questRoot; - num = 12; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span99 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference177 = ref span99[0]; + index = 12; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference177 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence119 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference178 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62813,59 +74926,67 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - QuestStep questStep66 = questStep; + QuestStep questStep49 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions27 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj29 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition18 = skipAetheryteCondition; - num3 = 2; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span100 = CollectionsMarshal.AsSpan(list80); - span100[0] = 130; - span100[1] = 131; - skipAetheryteCondition18.InTerritory = list80; - skipConditions27.AetheryteShortcutIf = skipAetheryteCondition; - questStep66.SkipConditions = skipConditions; + num4 = 2; + List list109 = new List(num4); + CollectionsMarshal.SetCount(list109, num4); + span7 = CollectionsMarshal.AsSpan(list109); + num5 = 0; + span7[num5] = 130; + num5++; + span7[num5] = 131; + obj29.InTerritory = list109; + skipConditions27.AetheryteShortcutIf = obj29; + questStep49.SkipConditions = skipConditions; reference178 = questStep; questSequence119.Steps = list3; reference177 = questSequence; - ref QuestSequence reference179 = ref span99[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence120 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + span3 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - questSequence120.Steps = list3; + questSequence120.Steps = list110; reference179 = questSequence; - ref QuestSequence reference180 = ref span99[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence121 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140) + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - questSequence121.Steps = list3; + questSequence121.Steps = list111; reference180 = questSequence; - ref QuestSequence reference181 = ref span99[3]; + num++; + ref QuestSequence reference181 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -62874,63 +74995,76 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002535u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference182 = ref span3[num3]; + QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002535u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep67 = questStep; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = 182u; - questStep67.KillEnemyDataIds = list81; - reference182 = questStep; + num5 = 1; + List list112 = new List(num5); + CollectionsMarshal.SetCount(list112, num5); + span5 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span5[num4] = 182u; + obj30.KillEnemyDataIds = list112; + reference182 = obj30; questSequence122.Steps = list3; reference181 = questSequence; - ref QuestSequence reference183 = ref span99[4]; + num++; + ref QuestSequence reference183 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence123 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002431u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2002431u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) { ItemId = 2000810u }; - questSequence123.Steps = list3; + questSequence123.Steps = list113; reference183 = questSequence; - ref QuestSequence reference184 = ref span99[5]; + num++; + ref QuestSequence reference184 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence124 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140); - questSequence124.Steps = list3; + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140); + questSequence124.Steps = list114; reference184 = questSequence; - ref QuestSequence reference185 = ref span99[6]; + num++; + ref QuestSequence reference185 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence125 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140) + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140) { Fly = true }; - questSequence125.Steps = list3; + questSequence125.Steps = list115; reference185 = questSequence; - ref QuestSequence reference186 = ref span99[7]; + num++; + ref QuestSequence reference186 = ref span2[num]; questSequence = new QuestSequence { Sequence = 7 @@ -62939,74 +75073,89 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002536u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference187 = ref span3[num3]; + QuestStep obj31 = new QuestStep(EInteractionType.Combat, 2002536u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep68 = questStep; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 182u; - questStep68.KillEnemyDataIds = list82; - reference187 = questStep; + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + span5 = CollectionsMarshal.AsSpan(list116); + num5 = 0; + span5[num5] = 182u; + obj31.KillEnemyDataIds = list116; + reference187 = obj31; questSequence126.Steps = list3; reference186 = questSequence; - ref QuestSequence reference188 = ref span99[8]; + num++; + ref QuestSequence reference188 = ref span2[num]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence127 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002432u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2002432u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) { ItemId = 2000811u }; - questSequence127.Steps = list3; + questSequence127.Steps = list117; reference188 = questSequence; - ref QuestSequence reference189 = ref span99[9]; + num++; + ref QuestSequence reference189 = ref span2[num]; questSequence = new QuestSequence { Sequence = 9 }; QuestSequence questSequence128 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140); - questSequence128.Steps = list3; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + span3 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140); + questSequence128.Steps = list118; reference189 = questSequence; - ref QuestSequence reference190 = ref span99[10]; + num++; + ref QuestSequence reference190 = ref span2[num]; questSequence = new QuestSequence { Sequence = 10 }; QuestSequence questSequence129 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007863u, new Vector3(-131.70062f, 17.982016f, -278.8587f), 140); - questSequence129.Steps = list3; + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007863u, new Vector3(-131.70062f, 17.982016f, -278.8587f), 140); + questSequence129.Steps = list119; reference190 = questSequence; - ref QuestSequence reference191 = ref span99[11]; + num++; + ref QuestSequence reference191 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence130 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + span3 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - questSequence130.Steps = list3; + questSequence130.Steps = list120; reference191 = questSequence; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); @@ -63014,25 +75163,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot54 = questRoot; num = 1; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "pot0to"; - questRoot54.Author = list83; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "pot0to"; + questRoot54.Author = list121; QuestRoot questRoot55 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span101 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference192 = ref span101[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference192 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence131 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference193 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, @@ -63045,48 +75199,57 @@ public static class AssemblyQuestLoader } } }; - QuestStep questStep69 = questStep; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice + QuestStep questStep50 = questStep; + num5 = 1; + List list122 = new List(num5); + CollectionsMarshal.SetCount(list122, num5); + span8 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBLM450_01076_Q1_000_1") }; - questStep69.DialogueChoices = list84; + questStep50.DialogueChoices = list122; reference193 = questStep; questSequence131.Steps = list3; reference192 = questSequence; - ref QuestSequence reference194 = ref span101[1]; + num++; + ref QuestSequence reference194 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence132 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002433u, new Vector3(374.28845f, 3.40271f, 161.73035f), 153) + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + span3 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002433u, new Vector3(374.28845f, 3.40271f, 161.73035f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - questSequence132.Steps = list3; + questSequence132.Steps = list123; reference194 = questSequence; - ref QuestSequence reference195 = ref span101[2]; + num++; + ref QuestSequence reference195 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence133 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007866u, new Vector3(376.29065f, 2.505473f, 159.52626f), 153); - questSequence133.Steps = list3; + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007866u, new Vector3(376.29065f, 2.505473f, 159.52626f), 153); + questSequence133.Steps = list124; reference195 = questSequence; - ref QuestSequence reference196 = ref span101[3]; + num++; + ref QuestSequence reference196 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -63095,7 +75258,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007867u, new Vector3(282.39868f, 11.151184f, -6.729248f), 145) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007867u, new Vector3(282.39868f, 11.151184f, -6.729248f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63109,16 +75274,19 @@ public static class AssemblyQuestLoader }; questSequence134.Steps = list3; reference196 = questSequence; - ref QuestSequence reference197 = ref span101[4]; + num++; + ref QuestSequence reference197 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence135 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63138,16 +75306,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot56 = questRoot; num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "pot0to"; - questRoot56.Author = list85; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "pot0to"; + questRoot56.Author = list125; QuestRoot questRoot57 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span102 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference198 = ref span102[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference198 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -63156,7 +75327,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63170,145 +75343,180 @@ public static class AssemblyQuestLoader }; questSequence136.Steps = list3; reference198 = questSequence; - ref QuestSequence reference199 = ref span102[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence137 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span103 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference200 = ref span103[0]; + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2002434u, new Vector3(-101.27417f, 28.213867f, 117.234985f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, ItemId = 2000812u }; - QuestStep questStep70 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span104 = CollectionsMarshal.AsSpan(list4); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep70.CompletionQuestVariablesFlags = list4; + QuestStep questStep51 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep51.CompletionQuestVariablesFlags = list4; reference200 = questStep; - ref QuestStep reference201 = ref span103[1]; + num2++; + ref QuestStep reference201 = ref span3[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2002435u, new Vector3(-1.8158569f, -11.703674f, -37.79669f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, ItemId = 2000955u }; - QuestStep questStep71 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span105 = CollectionsMarshal.AsSpan(list4); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep71.CompletionQuestVariablesFlags = list4; + QuestStep questStep52 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep52.CompletionQuestVariablesFlags = list4; reference201 = questStep; - ref QuestStep reference202 = ref span103[2]; + num2++; + ref QuestStep reference202 = ref span3[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2002436u, new Vector3(68.680786f, 55.832764f, -503.95975f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, ItemId = 2000956u }; - QuestStep questStep72 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span106 = CollectionsMarshal.AsSpan(list4); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep72.CompletionQuestVariablesFlags = list4; + QuestStep questStep53 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep53.CompletionQuestVariablesFlags = list4; reference202 = questStep; questSequence137.Steps = list3; reference199 = questSequence; - ref QuestSequence reference203 = ref span102[2]; + num++; + ref QuestSequence reference203 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence138 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + span3 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - questSequence138.Steps = list3; + questSequence138.Steps = list126; reference203 = questSequence; - ref QuestSequence reference204 = ref span102[3]; + num++; + ref QuestSequence reference204 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence139 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002537u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference205 = ref span3[num2]; + QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2002537u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep73 = questStep; - num3 = 2; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span107 = CollectionsMarshal.AsSpan(list86); - span107[0] = 1935u; - span107[1] = 1936u; - questStep73.KillEnemyDataIds = list86; - reference205 = questStep; + num5 = 2; + List list127 = new List(num5); + CollectionsMarshal.SetCount(list127, num5); + span5 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span5[num4] = 1935u; + num4++; + span5[num4] = 1936u; + obj32.KillEnemyDataIds = list127; + reference205 = obj32; questSequence139.Steps = list3; reference204 = questSequence; - ref QuestSequence reference206 = ref span102[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence140 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002437u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + span3 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 2002437u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) { ItemId = 2000957u }; - questSequence140.Steps = list3; + questSequence140.Steps = list128; reference206 = questSequence; - ref QuestSequence reference207 = ref span102[5]; + num++; + ref QuestSequence reference207 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence141 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63328,16 +75536,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot58 = questRoot; num = 1; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "pot0to"; - questRoot58.Author = list87; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + span = CollectionsMarshal.AsSpan(list129); + index = 0; + span[index] = "pot0to"; + questRoot58.Author = list129; QuestRoot questRoot59 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span108 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference208 = ref span108[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference208 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -63346,7 +75557,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63360,16 +75573,19 @@ public static class AssemblyQuestLoader }; questSequence142.Steps = list3; reference208 = questSequence; - ref QuestSequence reference209 = ref span108[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence143 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference210 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -63379,27 +75595,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - QuestStep questStep74 = questStep; + QuestStep questStep54 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions28 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj33 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition19 = skipAetheryteCondition; - num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span109 = CollectionsMarshal.AsSpan(list88); - span109[0] = 130; - span109[1] = 131; - skipAetheryteCondition19.InTerritory = list88; - skipConditions28.AetheryteShortcutIf = skipAetheryteCondition; - questStep74.SkipConditions = skipConditions; + num4 = 2; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + span7 = CollectionsMarshal.AsSpan(list130); + num5 = 0; + span7[num5] = 130; + num5++; + span7[num5] = 131; + obj33.InTerritory = list130; + skipConditions28.AetheryteShortcutIf = obj33; + questStep54.SkipConditions = skipConditions; reference210 = questStep; questSequence143.Steps = list3; reference209 = questSequence; - ref QuestSequence reference211 = ref span108[2]; + num++; + ref QuestSequence reference211 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -63408,8 +75626,9 @@ public static class AssemblyQuestLoader num2 = 5; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span110 = CollectionsMarshal.AsSpan(list3); - span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-173.17781f, 18.28456f, -280.36884f), 146) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-173.17781f, 18.28456f, -280.36884f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -63420,7 +75639,8 @@ public static class AssemblyQuestLoader } } }; - span110[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.27478f, 3.2999475f, -243.23695f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.27478f, 3.2999475f, -243.23695f), 146) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -63431,7 +75651,8 @@ public static class AssemblyQuestLoader } } }; - span110[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.198f, 18.43726f, -104.834755f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.198f, 18.43726f, -104.834755f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -63442,75 +75663,100 @@ public static class AssemblyQuestLoader } } }; - span110[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.2874f, 5.952176f, -21.0684f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.2874f, 5.952176f, -21.0684f), 146) { Fly = true }; - span110[4] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-431.92166f, 6.5580425f, -17.561014f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-431.92166f, 6.5580425f, -17.561014f), 146) { StopDistance = 0.5f, Mount = false }; questSequence144.Steps = list3; reference211 = questSequence; - ref QuestSequence reference212 = ref span108[3]; + num++; + ref QuestSequence reference212 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence145 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span111 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference213 = ref span111[0]; + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference213 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1007872u, new Vector3(-468.925f, -3.1649342f, 59.464355f), 146); - QuestStep questStep75 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span112 = CollectionsMarshal.AsSpan(list4); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep75.CompletionQuestVariablesFlags = list4; + QuestStep questStep55 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep55.CompletionQuestVariablesFlags = list4; reference213 = questStep; - ref QuestStep reference214 = ref span111[1]; + num2++; + ref QuestStep reference214 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1007871u, new Vector3(-464.46936f, -3.1649272f, 65.415405f), 146); - QuestStep questStep76 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span113 = CollectionsMarshal.AsSpan(list4); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep76.CompletionQuestVariablesFlags = list4; + QuestStep questStep56 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep56.CompletionQuestVariablesFlags = list4; reference214 = questStep; - ref QuestStep reference215 = ref span111[2]; + num2++; + ref QuestStep reference215 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1007873u, new Vector3(-458.70148f, -3.164927f, 63.370728f), 146); - QuestStep questStep77 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span114 = CollectionsMarshal.AsSpan(list4); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep77.CompletionQuestVariablesFlags = list4; + QuestStep questStep57 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep57.CompletionQuestVariablesFlags = list4; reference215 = questStep; questSequence145.Steps = list3; reference212 = questSequence; - ref QuestSequence reference216 = ref span108[4]; + num++; + ref QuestSequence reference216 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63519,7 +75765,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63540,25 +75788,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot60 = questRoot; num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "Cacahuetes"; - questRoot60.Author = list89; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "Cacahuetes"; + questRoot60.Author = list131; QuestRoot questRoot61 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span115 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference217 = ref span115[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference217 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence147 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference218 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -63568,51 +75821,57 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - QuestStep questStep78 = questStep; + QuestStep questStep58 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions29 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj34 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition20 = skipAetheryteCondition; - 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; + num4 = 1; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + span7 = CollectionsMarshal.AsSpan(list132); + num5 = 0; + span7[num5] = 133; + obj34.InTerritory = list132; + skipConditions29.AetheryteShortcutIf = obj34; + questStep58.SkipConditions = skipConditions; reference218 = questStep; questSequence147.Steps = list3; reference217 = questSequence; - ref QuestSequence reference219 = ref span115[1]; + num++; + ref QuestSequence reference219 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence148 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007850u, new Vector3(-271.87f, 19.663366f, 97.42883f), 148) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007850u, new Vector3(-271.87f, 19.663366f, 97.42883f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - questSequence148.Steps = list3; + questSequence148.Steps = list133; reference219 = questSequence; - ref QuestSequence reference220 = ref span115[2]; + num++; + ref QuestSequence reference220 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence149 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span116 = CollectionsMarshal.AsSpan(list3); - span116[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63633,7 +75892,8 @@ public static class AssemblyQuestLoader } } }; - span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63644,7 +75904,8 @@ public static class AssemblyQuestLoader } } }; - span116[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1080) }; @@ -63656,16 +75917,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot62 = questRoot; num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "Cacahuetes"; - questRoot62.Author = list91; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "Cacahuetes"; + questRoot62.Author = list134; QuestRoot questRoot63 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span117 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference221 = ref span117[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference221 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -63674,8 +75938,9 @@ public static class AssemblyQuestLoader num2 = 4; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span118 = CollectionsMarshal.AsSpan(list3); - span118[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63702,7 +75967,8 @@ public static class AssemblyQuestLoader } } }; - span118[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63713,24 +75979,28 @@ public static class AssemblyQuestLoader } } }; - span118[2] = new QuestStep(EInteractionType.EquipItem, null, null, 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 153) { ItemId = 4547u }; - span118[3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence150.Steps = list3; reference221 = questSequence; - ref QuestSequence reference222 = ref span117[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence151 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span119 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference223 = ref span119[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148) { Fly = true, @@ -63742,29 +76012,39 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep79 = questStep; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 1937u; - questStep79.KillEnemyDataIds = list92; - QuestStep questStep80 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span120 = CollectionsMarshal.AsSpan(list4); - span120[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = null; - questStep80.CompletionQuestVariablesFlags = list4; + QuestStep questStep59 = questStep; + num5 = 1; + List list135 = new List(num5); + CollectionsMarshal.SetCount(list135, num5); + span5 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span5[num4] = 1937u; + questStep59.KillEnemyDataIds = list135; + QuestStep questStep60 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + questStep60.CompletionQuestVariablesFlags = list4; reference223 = questStep; - span119[1] = new QuestStep(EInteractionType.Interact, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148); questSequence151.Steps = list3; reference222 = questSequence; - ref QuestSequence reference224 = ref span117[2]; + num++; + ref QuestSequence reference224 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63773,8 +76053,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span121 = CollectionsMarshal.AsSpan(list3); - span121[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63801,7 +76082,8 @@ public static class AssemblyQuestLoader } } }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63812,7 +76094,8 @@ public static class AssemblyQuestLoader } } }; - span121[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1081) }; @@ -63824,26 +76107,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot64 = questRoot; num = 1; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "Cacahuetes"; - questRoot64.Author = list93; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "Cacahuetes"; + questRoot64.Author = list136; QuestRoot questRoot65 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span122 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference225 = ref span122[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference225 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence153 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span123 = CollectionsMarshal.AsSpan(list3); - span123[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63870,7 +76157,8 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63881,66 +76169,82 @@ public static class AssemblyQuestLoader } } }; - span123[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence153.Steps = list3; reference225 = questSequence; - ref QuestSequence reference226 = ref span122[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence154 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007852u, new Vector3(-272.38885f, 12.935407f, -46.28064f), 152) + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + span3 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007852u, new Vector3(-272.38885f, 12.935407f, -46.28064f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - questSequence154.Steps = list3; + questSequence154.Steps = list137; reference226 = questSequence; - ref QuestSequence reference227 = ref span122[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence155 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span124 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference228 = ref span124[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference228 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152) { StopDistance = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep81 = questStep; - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span125 = CollectionsMarshal.AsSpan(list94); - span125[0] = 1938u; - span125[1] = 1939u; - questStep81.KillEnemyDataIds = list94; - QuestStep questStep82 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span126 = CollectionsMarshal.AsSpan(list4); - span126[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = null; - questStep82.CompletionQuestVariablesFlags = list4; + QuestStep questStep61 = questStep; + num5 = 2; + List list138 = new List(num5); + CollectionsMarshal.SetCount(list138, num5); + span5 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span5[num4] = 1938u; + num4++; + span5[num4] = 1939u; + questStep61.KillEnemyDataIds = list138; + QuestStep questStep62 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + questStep62.CompletionQuestVariablesFlags = list4; reference228 = questStep; - span124[1] = new QuestStep(EInteractionType.Interact, 2002394u, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002394u, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152); questSequence155.Steps = list3; reference227 = questSequence; - ref QuestSequence reference229 = ref span122[3]; + num++; + ref QuestSequence reference229 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63949,8 +76253,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span127 = CollectionsMarshal.AsSpan(list3); - span127[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63977,7 +76282,8 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63988,7 +76294,8 @@ public static class AssemblyQuestLoader } } }; - span127[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1082) }; @@ -64000,26 +76307,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot66 = questRoot; num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "Cacahuetes"; - questRoot66.Author = list95; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "Cacahuetes"; + questRoot66.Author = list139; QuestRoot questRoot67 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span128 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference230 = ref span128[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference230 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence157 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span129 = CollectionsMarshal.AsSpan(list3); - span129[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64046,7 +76357,8 @@ public static class AssemblyQuestLoader } } }; - span129[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64057,123 +76369,152 @@ public static class AssemblyQuestLoader } } }; - span129[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence157.Steps = list3; reference230 = questSequence; - ref QuestSequence reference231 = ref span128[1]; + num++; + ref QuestSequence reference231 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence158 = questSequence; - num2 = 7; + num2 = 5; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span130 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference232 = ref span130[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference232 = ref span3[num3]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.83008f, -37.93451f, -236.64346f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - QuestStep questStep83 = questStep; + QuestStep questStep63 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions30 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions11 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span131 = CollectionsMarshal.AsSpan(list4); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list4; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions30.StepIf = skipStepConditions; - questStep83.SkipConditions = skipConditions; + questStep63.SkipConditions = skipConditions; reference232 = questStep; - ref QuestStep reference233 = ref span130[1]; + num3++; + ref QuestStep reference233 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Emote, 2002396u, new Vector3(-347.34113f, -36.240234f, -249.6529f), 138) { Emote = EEmote.Pray }; - QuestStep questStep84 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span132 = CollectionsMarshal.AsSpan(list4); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep84.CompletionQuestVariablesFlags = list4; + QuestStep questStep64 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep64.CompletionQuestVariablesFlags = list4; reference233 = questStep; - ref QuestStep reference234 = ref span130[2]; + num3++; + ref QuestStep reference234 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Emote, 2002397u, new Vector3(-339.46753f, -15.06073f, -403.21973f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, Emote = EEmote.Pray }; - QuestStep questStep85 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span133 = CollectionsMarshal.AsSpan(list4); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep85.CompletionQuestVariablesFlags = list4; + QuestStep questStep65 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep65.CompletionQuestVariablesFlags = list4; reference234 = questStep; - span130[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.17686f, 59.31324f, -44.453175f), 147) { - AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation + Fly = true, + AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - span130[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) - { - Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog - }; - span130[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.17686f, 59.31324f, -44.453175f), 147); - ref QuestStep reference235 = ref span130[6]; + num3++; + ref QuestStep reference235 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Emote, 2002398u, new Vector3(-253.46765f, 60.68506f, -43.90027f), 147) { Emote = EEmote.Pray }; - QuestStep questStep86 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span134 = CollectionsMarshal.AsSpan(list4); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep86.CompletionQuestVariablesFlags = list4; + QuestStep questStep66 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep66.CompletionQuestVariablesFlags = list4; reference235 = questStep; questSequence158.Steps = list3; reference231 = questSequence; - ref QuestSequence reference236 = ref span128[2]; + num++; + ref QuestSequence reference236 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence159 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span135 = CollectionsMarshal.AsSpan(list3); - span135[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64200,7 +76541,8 @@ public static class AssemblyQuestLoader } } }; - span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64211,10 +76553,12 @@ public static class AssemblyQuestLoader } } }; - span135[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence159.Steps = list3; reference236 = questSequence; - ref QuestSequence reference237 = ref span128[3]; + num++; + ref QuestSequence reference237 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -64223,26 +76567,30 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span136 = CollectionsMarshal.AsSpan(list3); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(109.89845f, 7.0051613f, -45.239243f), 154) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(109.89845f, 7.0051613f, -45.239243f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - span136[1] = new QuestStep(EInteractionType.Interact, 2002399u, new Vector3(107.83545f, 7.7057495f, -45.15149f), 154); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002399u, new Vector3(107.83545f, 7.7057495f, -45.15149f), 154); questSequence160.Steps = list3; reference237 = questSequence; - ref QuestSequence reference238 = ref span128[4]; + num++; + ref QuestSequence reference238 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence161 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span137 = CollectionsMarshal.AsSpan(list3); - span137[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64269,7 +76617,8 @@ public static class AssemblyQuestLoader } } }; - span137[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64280,10 +76629,12 @@ public static class AssemblyQuestLoader } } }; - span137[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence161.Steps = list3; reference238 = questSequence; - ref QuestSequence reference239 = ref span128[5]; + num++; + ref QuestSequence reference239 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 @@ -64292,8 +76643,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span138 = CollectionsMarshal.AsSpan(list3); - span138[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.73157f, 42.137627f, -202.96959f), 139) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.73157f, 42.137627f, -202.96959f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -64309,7 +76661,8 @@ public static class AssemblyQuestLoader } } }; - span138[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.0728f, 74.37976f, -248.26317f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.0728f, 74.37976f, -248.26317f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -64321,23 +76674,26 @@ public static class AssemblyQuestLoader } } }; - span138[2] = new QuestStep(EInteractionType.Emote, 2002400u, new Vector3(117.32654f, 75.394775f, -246.54004f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.Emote, 2002400u, new Vector3(117.32654f, 75.394775f, -246.54004f), 180) { Emote = EEmote.Pray }; questSequence162.Steps = list3; reference239 = questSequence; - ref QuestSequence reference240 = ref span128[6]; + num++; + ref QuestSequence reference240 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence163 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span139 = CollectionsMarshal.AsSpan(list3); - span139[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64364,7 +76720,8 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64375,7 +76732,8 @@ public static class AssemblyQuestLoader } } }; - span139[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1083) }; @@ -64387,16 +76745,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot68 = questRoot; num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "Cacahuetes"; - questRoot68.Author = list96; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "Cacahuetes"; + questRoot68.Author = list140; QuestRoot questRoot69 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span140 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference241 = ref span140[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference241 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -64405,8 +76766,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span141 = CollectionsMarshal.AsSpan(list3); - span141[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64433,7 +76795,8 @@ public static class AssemblyQuestLoader } } }; - span141[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64444,25 +76807,30 @@ public static class AssemblyQuestLoader } } }; - span141[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence164.Steps = list3; reference241 = questSequence; - ref QuestSequence reference242 = ref span140[1]; + num++; + ref QuestSequence reference242 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence165 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007861u, new Vector3(-138.59778f, 8.561184f, 281.2085f), 153) + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007861u, new Vector3(-138.59778f, 8.561184f, 281.2085f), 153) { StopDistance = 5f }; - questSequence165.Steps = list3; + questSequence165.Steps = list141; reference242 = questSequence; - ref QuestSequence reference243 = ref span140[2]; + num++; + ref QuestSequence reference243 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -64471,8 +76839,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span142 = CollectionsMarshal.AsSpan(list3); - span142[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(47.682095f, 9.470074f, -98.02502f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(47.682095f, 9.470074f, -98.02502f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64489,55 +76858,67 @@ public static class AssemblyQuestLoader } } }; - span142[1] = new QuestStep(EInteractionType.Interact, 1007853u, new Vector3(53.72693f, 8.86706f, -111.25354f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007853u, new Vector3(53.72693f, 8.86706f, -111.25354f), 153) { Fly = true }; questSequence166.Steps = list3; reference243 = questSequence; - ref QuestSequence reference244 = ref span140[3]; + num++; + ref QuestSequence reference244 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence167 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span143 = CollectionsMarshal.AsSpan(list3); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.495304f, 10.139881f, -101.576866f), 153); - span143[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.557983f, 9.440208f, -97.066605f), 153); - ref QuestStep reference245 = ref span143[2]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference245 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep87 = questStep; - num3 = 3; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span144 = CollectionsMarshal.AsSpan(list97); - span144[0] = 1940u; - span144[1] = 1941u; - span144[2] = 1942u; - questStep87.KillEnemyDataIds = list97; - QuestStep questStep88 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span145 = CollectionsMarshal.AsSpan(list4); - span145[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = null; - questStep88.CompletionQuestVariablesFlags = list4; + QuestStep questStep67 = questStep; + num5 = 3; + List list142 = new List(num5); + CollectionsMarshal.SetCount(list142, num5); + span5 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span5[num4] = 1940u; + num4++; + span5[num4] = 1941u; + num4++; + span5[num4] = 1942u; + questStep67.KillEnemyDataIds = list142; + QuestStep questStep68 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + questStep68.CompletionQuestVariablesFlags = list4; reference245 = questStep; - span143[3] = new QuestStep(EInteractionType.Interact, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153); questSequence167.Steps = list3; reference244 = questSequence; - ref QuestSequence reference246 = ref span140[4]; + num++; + ref QuestSequence reference246 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -64546,8 +76927,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span146 = CollectionsMarshal.AsSpan(list3); - span146[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64570,7 +76952,8 @@ public static class AssemblyQuestLoader } } }; - span146[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64581,7 +76964,8 @@ public static class AssemblyQuestLoader } } }; - span146[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1084) }; @@ -64593,26 +76977,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot70 = questRoot; num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "Cacahuetes"; - questRoot70.Author = list98; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "Cacahuetes"; + questRoot70.Author = list143; QuestRoot questRoot71 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span147 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference247 = ref span147[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference247 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence169 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span148 = CollectionsMarshal.AsSpan(list3); - span148[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64639,7 +77027,8 @@ public static class AssemblyQuestLoader } } }; - span148[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64650,36 +77039,42 @@ public static class AssemblyQuestLoader } } }; - span148[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence169.Steps = list3; reference247 = questSequence; - ref QuestSequence reference248 = ref span147[1]; + num++; + ref QuestSequence reference248 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence170 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002408u, new Vector3(-316.27374f, 21.194763f, 179.70544f), 148) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + span3 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002408u, new Vector3(-316.27374f, 21.194763f, 179.70544f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - questSequence170.Steps = list3; + questSequence170.Steps = list144; reference248 = questSequence; - ref QuestSequence reference249 = ref span147[2]; + num++; + ref QuestSequence reference249 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence171 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span149 = CollectionsMarshal.AsSpan(list3); - span149[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64706,7 +77101,8 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64717,7 +77113,8 @@ public static class AssemblyQuestLoader } } }; - span149[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence171.Steps = list3; reference249 = questSequence; questRoot71.QuestSequence = list2; @@ -64726,16 +77123,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot72 = questRoot; num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "pot0to"; - questRoot72.Author = list99; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "pot0to"; + questRoot72.Author = list145; QuestRoot questRoot73 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span150 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference250 = ref span150[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference250 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -64744,7 +77144,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -64763,16 +77165,19 @@ public static class AssemblyQuestLoader }; questSequence172.Steps = list3; reference250 = questSequence; - ref QuestSequence reference251 = ref span150[1]; + num++; + ref QuestSequence reference251 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence173 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64786,37 +77191,44 @@ public static class AssemblyQuestLoader }; questSequence173.Steps = list3; reference251 = questSequence; - ref QuestSequence reference252 = ref span150[2]; + num++; + ref QuestSequence reference252 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence174 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + span3 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) { Fly = true }; - questSequence174.Steps = list3; + questSequence174.Steps = list146; reference252 = questSequence; - ref QuestSequence reference253 = ref span150[3]; + num++; + ref QuestSequence reference253 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence175 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002364u, new Vector3(457.9995f, 0.44250488f, -106.73688f), 153) + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002364u, new Vector3(457.9995f, 0.44250488f, -106.73688f), 153) { Fly = true }; - questSequence175.Steps = list3; + questSequence175.Steps = list147; reference253 = questSequence; - ref QuestSequence reference254 = ref span150[4]; + num++; + ref QuestSequence reference254 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 @@ -64825,33 +77237,38 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span151 = CollectionsMarshal.AsSpan(list3); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.68686f, 2.7520387f, 24.184406f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.68686f, 2.7520387f, 24.184406f), 153) { Fly = true }; - span151[1] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) { StopDistance = 7f, Fly = false }; questSequence176.Steps = list3; reference254 = questSequence; - ref QuestSequence reference255 = ref span150[5]; + num++; + ref QuestSequence reference255 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence177 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, NextQuestId = new QuestId(1086) }; - questSequence177.Steps = list3; + questSequence177.Steps = list148; reference255 = questSequence; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); @@ -64859,16 +77276,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot74 = questRoot; num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "pot0to"; - questRoot74.Author = list100; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "pot0to"; + questRoot74.Author = list149; QuestRoot questRoot75 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span152 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference256 = ref span152[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference256 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -64877,8 +77297,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span153 = CollectionsMarshal.AsSpan(list3); - span153[0] = new QuestStep(EInteractionType.EquipItem, null, null, 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64891,21 +77312,25 @@ public static class AssemblyQuestLoader } } }; - span153[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 153); - span153[2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153); + num3++; + span3[num3] = new QuestStep(EInteractionType.EquipRecommended, null, null, 153); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153); questSequence178.Steps = list3; reference256 = questSequence; - ref QuestSequence reference257 = ref span152[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence179 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span154 = CollectionsMarshal.AsSpan(list3); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.48596f, 96.46625f, -526.59546f), 135) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.48596f, 96.46625f, -526.59546f), 135) { TargetTerritoryId = (ushort)137, Fly = true, @@ -64927,31 +77352,34 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference258 = ref span154[1]; - questStep = new QuestStep(EInteractionType.Combat, 2002366u, new Vector3(-143.0534f, 68.192505f, 586.1448f), 137) + num2++; + ref QuestStep reference258 = ref span3[num2]; + QuestStep obj35 = new QuestStep(EInteractionType.Combat, 2002366u, new Vector3(-143.0534f, 68.192505f, 586.1448f), 137) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep89 = questStep; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 1945u; - questStep89.KillEnemyDataIds = list101; - questStep.SkipConditions = new SkipConditions + num5 = 1; + List list150 = new List(num5); + CollectionsMarshal.SetCount(list150, num5); + span5 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span5[num4] = 1945u; + obj35.KillEnemyDataIds = list150; + obj35.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true } }; - reference258 = questStep; + reference258 = obj35; questSequence179.Steps = list3; reference257 = questSequence; - ref QuestSequence reference259 = ref span152[2]; + num++; + ref QuestSequence reference259 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -64960,7 +77388,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64981,25 +77411,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot76 = questRoot; num = 1; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "pot0to"; - questRoot76.Author = list102; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "pot0to"; + questRoot76.Author = list151; QuestRoot questRoot77 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span155 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference260 = ref span155[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference260 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence181 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65013,7 +77448,8 @@ public static class AssemblyQuestLoader }; questSequence181.Steps = list3; reference260 = questSequence; - ref QuestSequence reference261 = ref span155[1]; + num++; + ref QuestSequence reference261 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -65022,39 +77458,45 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 2002365u, new Vector3(272.05298f, 18.875366f, -164.53809f), 145) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference262 = ref span3[num3]; + QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2002365u, new Vector3(272.05298f, 18.875366f, -164.53809f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep90 = questStep; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 58u; - questStep90.KillEnemyDataIds = list103; - questStep.SkipConditions = new SkipConditions + num4 = 1; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + span5 = CollectionsMarshal.AsSpan(list152); + num5 = 0; + span5[num5] = 58u; + obj36.KillEnemyDataIds = list152; + obj36.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true } }; - reference262 = questStep; + reference262 = obj36; questSequence182.Steps = list3; reference261 = questSequence; - ref QuestSequence reference263 = ref span155[2]; + num++; + ref QuestSequence reference263 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence183 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65075,16 +77517,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot78 = questRoot; num = 1; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "pot0to"; - questRoot78.Author = list104; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "pot0to"; + questRoot78.Author = list153; QuestRoot questRoot79 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span156 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference264 = ref span156[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference264 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65093,7 +77538,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65107,16 +77554,19 @@ public static class AssemblyQuestLoader }; questSequence184.Steps = list3; reference264 = questSequence; - ref QuestSequence reference265 = ref span156[1]; + num++; + ref QuestSequence reference265 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence185 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002367u, new Vector3(104.32593f, -21.774658f, 171.00781f), 154) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002367u, new Vector3(104.32593f, -21.774658f, 171.00781f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -65135,7 +77585,8 @@ public static class AssemblyQuestLoader }; questSequence185.Steps = list3; reference265 = questSequence; - ref QuestSequence reference266 = ref span156[2]; + num++; + ref QuestSequence reference266 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -65144,7 +77595,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65165,25 +77618,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot80 = questRoot; num = 1; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "pot0to"; - questRoot80.Author = list105; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "pot0to"; + questRoot80.Author = list154; QuestRoot questRoot81 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span157 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference267 = ref span157[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference267 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence187 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference268 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, @@ -65196,125 +77654,157 @@ public static class AssemblyQuestLoader } } }; - QuestStep questStep91 = questStep; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + QuestStep questStep69 = questStep; + num5 = 1; + List list155 = new List(num5); + CollectionsMarshal.SetCount(list155, num5); + span8 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD451_01089_Q1_000_000") }; - questStep91.DialogueChoices = list106; + questStep69.DialogueChoices = list155; reference268 = questStep; questSequence187.Steps = list3; reference267 = questSequence; - ref QuestSequence reference269 = ref span157[1]; + num++; + ref QuestSequence reference269 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence188 = questSequence; - num2 = 8; + num2 = 6; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span158 = CollectionsMarshal.AsSpan(list3); - span158[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.4273f, 13.999936f, 142.89926f), 153); - ref QuestStep reference270 = ref span158[1]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference270 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002528u, new Vector3(512.291f, 10.482849f, 148.30237f), 153) { Fly = true }; - QuestStep questStep92 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span159 = CollectionsMarshal.AsSpan(list4); - span159[0] = null; - span159[1] = null; - span159[2] = null; - span159[3] = null; - span159[4] = null; - span159[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep92.CompletionQuestVariablesFlags = list4; + QuestStep questStep70 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep70.CompletionQuestVariablesFlags = list4; reference270 = questStep; - ref QuestStep reference271 = ref span158[2]; + num3++; + ref QuestStep reference271 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002530u, new Vector3(576.2263f, -24.002502f, -423.75836f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - QuestStep questStep93 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span160 = CollectionsMarshal.AsSpan(list4); - span160[0] = null; - span160[1] = null; - span160[2] = null; - span160[3] = null; - span160[4] = null; - span160[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep93.CompletionQuestVariablesFlags = list4; + QuestStep questStep71 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep71.CompletionQuestVariablesFlags = list4; reference271 = questStep; - span158[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-143.16391f, -25.75711f, 34.669674f), 138) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-143.16391f, -25.75711f, 34.669674f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - ref QuestStep reference272 = ref span158[4]; + num3++; + ref QuestStep reference272 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002527u, new Vector3(-168.29181f, -21.5f, 44.144287f), 138) { Fly = false }; - QuestStep questStep94 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span161 = CollectionsMarshal.AsSpan(list4); - span161[0] = null; - span161[1] = null; - span161[2] = null; - span161[3] = null; - span161[4] = null; - span161[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep94.CompletionQuestVariablesFlags = list4; + QuestStep questStep72 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep72.CompletionQuestVariablesFlags = list4; reference272 = questStep; - span158[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-324.11298f, 89.13572f, -135.54353f), 147) { - AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation + Fly = true, + AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - span158[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) - { - Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog - }; - ref QuestStep reference273 = ref span158[7]; + num3++; + ref QuestStep reference273 = ref span3[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002529u, new Vector3(-324.7273f, 87.96814f, -133.50122f), 147); - QuestStep questStep95 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span162 = CollectionsMarshal.AsSpan(list4); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep95.CompletionQuestVariablesFlags = list4; + QuestStep questStep73 = questStep; + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep73.CompletionQuestVariablesFlags = list4; reference273 = questStep; questSequence188.Steps = list3; reference269 = questSequence; - ref QuestSequence reference274 = ref span157[2]; + num++; + ref QuestSequence reference274 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence189 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65335,16 +77825,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot82 = questRoot; num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "pot0to"; - questRoot82.Author = list107; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "pot0to"; + questRoot82.Author = list156; QuestRoot questRoot83 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span163 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference275 = ref span163[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference275 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65353,7 +77846,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65367,22 +77862,25 @@ public static class AssemblyQuestLoader }; questSequence190.Steps = list3; reference275 = questSequence; - ref QuestSequence reference276 = ref span163[1]; + num++; + ref QuestSequence reference276 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence191 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span164 = CollectionsMarshal.AsSpan(list3); - span164[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.586075f, 226.66864f, 382.17618f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.586075f, 226.66864f, 382.17618f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span164[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002373u, new Vector3(72.098755f, 227.19153f, 380.84985f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002373u, new Vector3(72.098755f, 227.19153f, 380.84985f), 155) { ItemId = 2000953u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -65392,20 +77890,23 @@ public static class AssemblyQuestLoader }; questSequence191.Steps = list3; reference276 = questSequence; - ref QuestSequence reference277 = ref span163[2]; + num++; + ref QuestSequence reference277 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence192 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007891u, new Vector3(70.17627f, 226.72212f, 381.30762f), 155) + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + span3 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007891u, new Vector3(70.17627f, 226.72212f, 381.30762f), 155) { NextQuestId = new QuestId(1713) }; - questSequence192.Steps = list3; + questSequence192.Steps = list157; reference277 = questSequence; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); @@ -65413,25 +77914,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot84 = questRoot; num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; - questRoot84.Author = list108; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "liza"; + questRoot84.Author = list158; QuestRoot questRoot85 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span165 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference278 = ref span165[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference278 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence193 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -65449,7 +77955,8 @@ public static class AssemblyQuestLoader }; questSequence193.Steps = list3; reference278 = questSequence; - ref QuestSequence reference279 = ref span165[1]; + num++; + ref QuestSequence reference279 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -65458,7 +77965,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65469,134 +77978,56 @@ public static class AssemblyQuestLoader }; questSequence194.Steps = list3; reference279 = questSequence; - ref QuestSequence reference280 = ref span165[2]; + num++; + ref QuestSequence reference280 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence195 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span166 = CollectionsMarshal.AsSpan(list3); - span166[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) - { - TargetTerritoryId = (ushort)146, - AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanLittleAlaMhigo - }, - AetheryteShortcutIf = new SkipAetheryteCondition - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanLittleAlaMhigo - } - } - }; - span166[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146) - { - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanLittleAlaMhigo - } - } - }; - span166[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) - { - StopDistance = 7f, - Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanLittleAlaMhigo - } - } - }; - span166[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) - { - AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanForgottenSprings - }, - AetheryteShortcutIf = new SkipAetheryteCondition - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanForgottenSprings - } - } - }; - span166[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) - { - DisableNavmesh = true, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanForgottenSprings - } - } - }; - span166[5] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) - { - TargetTerritoryId = (ushort)146, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanForgottenSprings - } - } - }; - span166[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) - { - Aetheryte = EAetheryteLocation.SouthernThanalanForgottenSprings, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.SouthernThanalanForgottenSprings - } - } - }; - span166[7] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) + num3 = 1; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - questSequence195.Steps = list3; + questSequence195.Steps = list159; reference280 = questSequence; - ref QuestSequence reference281 = ref span165[3]; + num++; + ref QuestSequence reference281 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence196 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + span3 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) { StopDistance = 5f }; - questSequence196.Steps = list3; + questSequence196.Steps = list160; reference281 = questSequence; - ref QuestSequence reference282 = ref span165[4]; + num++; + ref QuestSequence reference282 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence197 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65614,16 +78045,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot86 = questRoot; num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; - questRoot86.Author = list109; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; + questRoot86.Author = list161; QuestRoot questRoot87 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span167 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference283 = ref span167[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference283 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65632,8 +78066,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span168 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference284 = ref span168[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference284 = ref span3[num3]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -65644,66 +78079,77 @@ public static class AssemblyQuestLoader }, ItemId = 4549u }; - QuestStep questStep96 = questStep; + QuestStep questStep74 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions31 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj37 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition21 = skipAetheryteCondition; - 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; + num4 = 1; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + span7 = CollectionsMarshal.AsSpan(list162); + num5 = 0; + span7[num5] = 133; + obj37.InTerritory = list162; + skipConditions31.AetheryteShortcutIf = obj37; + questStep74.SkipConditions = skipConditions; reference284 = questStep; - span168[1] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133); questSequence198.Steps = list3; reference283 = questSequence; - ref QuestSequence reference285 = ref span167[1]; + num++; + ref QuestSequence reference285 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence199 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) + num3 = 1; + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - questSequence199.Steps = list3; + questSequence199.Steps = list163; reference285 = questSequence; - ref QuestSequence reference286 = ref span167[2]; + num++; + ref QuestSequence reference286 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence200 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) { StopDistance = 7f }; - questSequence200.Steps = list3; + questSequence200.Steps = list164; reference286 = questSequence; - ref QuestSequence reference287 = ref span167[3]; + num++; + ref QuestSequence reference287 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence201 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65721,16 +78167,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot88 = questRoot; num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; - questRoot88.Author = list111; + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; + questRoot88.Author = list165; QuestRoot questRoot89 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span169 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference288 = ref span169[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference288 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65739,7 +78188,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference289 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference289 = ref span3[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -65749,40 +78200,45 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - QuestStep questStep97 = questStep; + QuestStep questStep75 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions32 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj38 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition22 = skipAetheryteCondition; - 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; + num5 = 1; + List list166 = new List(num5); + CollectionsMarshal.SetCount(list166, num5); + span7 = CollectionsMarshal.AsSpan(list166); + num4 = 0; + span7[num4] = 133; + obj38.InTerritory = list166; + skipConditions32.AetheryteShortcutIf = obj38; + questStep75.SkipConditions = skipConditions; reference289 = questStep; questSequence202.Steps = list3; reference288 = questSequence; - ref QuestSequence reference290 = ref span169[1]; + num++; + ref QuestSequence reference290 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence203 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006788u, new Vector3(-105.79089f, 27.83778f, -374.3191f), 146) + num3 = 1; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006788u, new Vector3(-105.79089f, 27.83778f, -374.3191f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - questSequence203.Steps = list3; + questSequence203.Steps = list167; reference290 = questSequence; - ref QuestSequence reference291 = ref span169[2]; + num++; + ref QuestSequence reference291 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -65791,9 +78247,11 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span170 = CollectionsMarshal.AsSpan(list3); - span170[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-152.77162f, 27.317062f, -400.4738f), 146); - span170[1] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-152.77162f, 27.317062f, -400.4738f), 146); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65811,25 +78269,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot90 = questRoot; num = 1; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; - questRoot90.Author = list113; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "liza"; + questRoot90.Author = list168; QuestRoot questRoot91 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span171 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference292 = ref span171[0]; + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference292 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence205 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference293 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -65839,168 +78302,197 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - QuestStep questStep98 = questStep; + QuestStep questStep76 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions33 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj39 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition23 = skipAetheryteCondition; - 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; + num4 = 1; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + span7 = CollectionsMarshal.AsSpan(list169); + num5 = 0; + span7[num5] = 133; + obj39.InTerritory = list169; + skipConditions33.AetheryteShortcutIf = obj39; + questStep76.SkipConditions = skipConditions; reference293 = questStep; questSequence205.Steps = list3; reference292 = questSequence; - ref QuestSequence reference294 = ref span171[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence206 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + List list170 = new List(num2); + CollectionsMarshal.SetCount(list170, num2); + span3 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - questSequence206.Steps = list3; + questSequence206.Steps = list170; reference294 = questSequence; - ref QuestSequence reference295 = ref span171[2]; + num++; + ref QuestSequence reference295 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence207 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference296 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference296 = ref span3[num2]; + QuestStep obj40 = new QuestStep(EInteractionType.Combat, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep99 = questStep; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 1948u; - questStep99.KillEnemyDataIds = list115; - reference296 = questStep; + num5 = 1; + List list171 = new List(num5); + CollectionsMarshal.SetCount(list171, num5); + span5 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span5[num4] = 1948u; + obj40.KillEnemyDataIds = list171; + reference296 = obj40; questSequence207.Steps = list3; reference295 = questSequence; - ref QuestSequence reference297 = ref span171[3]; + num++; + ref QuestSequence reference297 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence208 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156); - questSequence208.Steps = list3; + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156); + questSequence208.Steps = list172; reference297 = questSequence; - ref QuestSequence reference298 = ref span171[4]; + num++; + ref QuestSequence reference298 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence209 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference299 = ref CollectionsMarshal.AsSpan(list3)[0]; - questStep = new QuestStep(EInteractionType.Combat, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference299 = ref span3[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.Combat, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep100 = questStep; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 1948u; - questStep100.KillEnemyDataIds = list116; - reference299 = questStep; + num4 = 1; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + span5 = CollectionsMarshal.AsSpan(list173); + num5 = 0; + span5[num5] = 1948u; + obj41.KillEnemyDataIds = list173; + reference299 = obj41; questSequence209.Steps = list3; reference298 = questSequence; - ref QuestSequence reference300 = ref span171[5]; + num++; + ref QuestSequence reference300 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence210 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156); - questSequence210.Steps = list3; + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156); + questSequence210.Steps = list174; reference300 = questSequence; - ref QuestSequence reference301 = ref span171[6]; + num++; + ref QuestSequence reference301 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence211 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span172 = CollectionsMarshal.AsSpan(list3); - span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(372.27008f, -4.9949923f, -482.91302f), 156) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(372.27008f, -4.9949923f, -482.91302f), 156) { Fly = true }; - ref QuestStep reference302 = ref span172[1]; - questStep = new QuestStep(EInteractionType.Combat, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156) + num2++; + ref QuestStep reference302 = ref span3[num2]; + QuestStep obj42 = new QuestStep(EInteractionType.Combat, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - QuestStep questStep101 = questStep; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 1948u; - questStep101.KillEnemyDataIds = list117; - reference302 = questStep; + num5 = 1; + List list175 = new List(num5); + CollectionsMarshal.SetCount(list175, num5); + span5 = CollectionsMarshal.AsSpan(list175); + num4 = 0; + span5[num4] = 1948u; + obj42.KillEnemyDataIds = list175; + reference302 = obj42; questSequence211.Steps = list3; reference301 = questSequence; - ref QuestSequence reference303 = ref span171[7]; + num++; + ref QuestSequence reference303 = ref span2[num]; questSequence = new QuestSequence { Sequence = 7 }; QuestSequence questSequence212 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156); - questSequence212.Steps = list3; + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156); + questSequence212.Steps = list176; reference303 = questSequence; - ref QuestSequence reference304 = ref span171[8]; + num++; + ref QuestSequence reference304 = ref span2[num]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence213 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num3 = 1; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true }; - questSequence213.Steps = list3; + questSequence213.Steps = list177; reference304 = questSequence; - ref QuestSequence reference305 = ref span171[9]; + num++; + ref QuestSequence reference305 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -66009,9 +78501,11 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span173 = CollectionsMarshal.AsSpan(list3); - span173[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 156); - span173[1] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.EquipRecommended, null, null, 156); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66029,25 +78523,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot92 = questRoot; num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; - questRoot92.Author = list118; + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "liza"; + questRoot92.Author = list178; QuestRoot questRoot93 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span174 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference306 = ref span174[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference306 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence215 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference307 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference307 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -66057,105 +78556,61 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - QuestStep questStep102 = questStep; + QuestStep questStep77 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions34 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj43 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition24 = skipAetheryteCondition; - 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; + num4 = 1; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + span7 = CollectionsMarshal.AsSpan(list179); + num5 = 0; + span7[num5] = 133; + obj43.InTerritory = list179; + skipConditions34.AetheryteShortcutIf = obj43; + questStep77.SkipConditions = skipConditions; reference307 = questStep; questSequence215.Steps = list3; reference306 = questSequence; - ref QuestSequence reference308 = ref span174[1]; + num++; + ref QuestSequence reference308 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence216 = questSequence; - num2 = 6; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span175 = CollectionsMarshal.AsSpan(list3); - span175[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) + num2 = 1; + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180) { Fly = true, - AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.OuterLaNosceaCampOverlook - } - } + AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span175[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.4182f, 41.15416f, -193.03651f), 139) - { - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.OuterLaNosceaCampOverlook - } - } - }; - span175[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) - { - TargetTerritoryId = (ushort)180, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.OuterLaNosceaCampOverlook - } - } - }; - span175[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) - { - Fly = true, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.OuterLaNosceaCampOverlook - } - } - }; - span175[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) - { - Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - AetheryteUnlocked = EAetheryteLocation.OuterLaNosceaCampOverlook - } - } - }; - span175[5] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); - questSequence216.Steps = list3; + questSequence216.Steps = list180; reference308 = questSequence; - ref QuestSequence reference309 = ref span174[2]; + num++; + ref QuestSequence reference309 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence217 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); - questSequence217.Steps = list3; + num3 = 1; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); + questSequence217.Steps = list181; reference309 = questSequence; - ref QuestSequence reference310 = ref span174[3]; + num++; + ref QuestSequence reference310 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -66164,7 +78619,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66182,25 +78639,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot94 = questRoot; num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; - questRoot94.Author = list120; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + span = CollectionsMarshal.AsSpan(list182); + index = 0; + span[index] = "liza"; + questRoot94.Author = list182; QuestRoot questRoot95 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span176 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference311 = ref span176[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference311 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence219 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference312 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference312 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -66210,25 +78672,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - QuestStep questStep103 = questStep; + QuestStep questStep78 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions35 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj44 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition25 = skipAetheryteCondition; - 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; + num5 = 1; + List list183 = new List(num5); + CollectionsMarshal.SetCount(list183, num5); + span7 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span7[num4] = 133; + obj44.InTerritory = list183; + skipConditions35.AetheryteShortcutIf = obj44; + questStep78.SkipConditions = skipConditions; reference312 = questStep; questSequence219.Steps = list3; reference311 = questSequence; - ref QuestSequence reference313 = ref span176[1]; + num++; + ref QuestSequence reference313 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -66237,28 +78701,34 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span177 = CollectionsMarshal.AsSpan(list3); - span177[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.60034f, -2.1295002f, -484.951f), 156) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.60034f, -2.1295002f, -484.951f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span177[1] = new QuestStep(EInteractionType.Interact, 1006793u, new Vector3(493.09534f, -2.349111f, -484.61133f), 156); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006793u, new Vector3(493.09534f, -2.349111f, -484.61133f), 156); questSequence220.Steps = list3; reference313 = questSequence; - ref QuestSequence reference314 = ref span176[2]; + num++; + ref QuestSequence reference314 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence221 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006794u, new Vector3(493.09534f, -2.4306269f, -483.6042f), 156); - questSequence221.Steps = list3; + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006794u, new Vector3(493.09534f, -2.4306269f, -483.6042f), 156); + questSequence221.Steps = list184; reference314 = questSequence; - ref QuestSequence reference315 = ref span176[3]; + num++; + ref QuestSequence reference315 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -66267,30 +78737,36 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span178 = CollectionsMarshal.AsSpan(list3); - span178[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.36328f, -3.814063f, -770.9911f), 156) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.36328f, -3.814063f, -770.9911f), 156) { Fly = true }; - span178[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(504.98605f, -2.5969198f, -780.6112f), 156) + num3++; + span3[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(504.98605f, -2.5969198f, -780.6112f), 156) { Mount = false }; questSequence222.Steps = list3; reference315 = questSequence; - ref QuestSequence reference316 = ref span176[4]; + num++; + ref QuestSequence reference316 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence223 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006795u, new Vector3(475.0896f, 5.8291526f, -842.40485f), 156); - questSequence223.Steps = list3; + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006795u, new Vector3(475.0896f, 5.8291526f, -842.40485f), 156); + questSequence223.Steps = list185; reference316 = questSequence; - ref QuestSequence reference317 = ref span176[5]; + num++; + ref QuestSequence reference317 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -66299,7 +78775,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66316,26 +78794,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot96 = questRoot; num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; - questRoot96.Author = list122; + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; + questRoot96.Author = list186; QuestRoot questRoot97 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span179 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference318 = ref span179[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference318 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence225 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span180 = CollectionsMarshal.AsSpan(list3); - span180[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -66346,19 +78828,23 @@ public static class AssemblyQuestLoader } } }; - span180[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); questSequence225.Steps = list3; reference318 = questSequence; - ref QuestSequence reference319 = ref span179[1]; + num++; + ref QuestSequence reference319 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence226 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + span3 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AethernetShortcut = new AethernetShortcut { @@ -66366,49 +78852,58 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - questSequence226.Steps = list3; + questSequence226.Steps = list187; reference319 = questSequence; - ref QuestSequence reference320 = ref span179[2]; + num++; + ref QuestSequence reference320 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence227 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007835u, new Vector3(-8.011047f, 40.667355f, 192.76721f), 137) + num3 = 1; + List list188 = new List(num3); + CollectionsMarshal.SetCount(list188, num3); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007835u, new Vector3(-8.011047f, 40.667355f, 192.76721f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - questSequence227.Steps = list3; + questSequence227.Steps = list188; reference320 = questSequence; - ref QuestSequence reference321 = ref span179[3]; + num++; + ref QuestSequence reference321 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence228 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007836u, new Vector3(31.3573f, 34.078865f, 222.76636f), 137) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007836u, new Vector3(31.3573f, 34.078865f, 222.76636f), 137) { StopDistance = 5f }; - questSequence228.Steps = list3; + questSequence228.Steps = list189; reference321 = questSequence; - ref QuestSequence reference322 = ref span179[4]; + num++; + ref QuestSequence reference322 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence229 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66426,16 +78921,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot98 = questRoot; num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; - questRoot98.Author = list123; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; + questRoot98.Author = list190; QuestRoot questRoot99 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span181 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference323 = ref span181[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference323 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -66444,8 +78942,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span182 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference324 = ref span182[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference324 = ref span3[num3]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -66456,225 +78955,290 @@ public static class AssemblyQuestLoader }, ItemId = 4550u }; - QuestStep questStep104 = questStep; + QuestStep questStep79 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions36 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj45 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition26 = skipAetheryteCondition; - 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; + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + span7 = CollectionsMarshal.AsSpan(list191); + num5 = 0; + span7[num5] = 128; + obj45.InTerritory = list191; + skipConditions36.AetheryteShortcutIf = obj45; + questStep79.SkipConditions = skipConditions; reference324 = questStep; - span182[1] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128); questSequence230.Steps = list3; reference323 = questSequence; - ref QuestSequence reference325 = ref span181[1]; + num++; + ref QuestSequence reference325 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence231 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span183 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference326 = ref span183[0]; + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference326 = ref span3[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.73785f, 59.519302f, -120.80934f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - QuestStep questStep105 = questStep; + QuestStep questStep80 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions37 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions12 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span184 = CollectionsMarshal.AsSpan(list4); - span184[0] = null; - span184[1] = null; - span184[2] = null; - span184[3] = null; - span184[4] = null; - span184[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list4; skipConditions37.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - questStep105.SkipConditions = skipConditions; + questStep80.SkipConditions = skipConditions; reference326 = questStep; - ref QuestStep reference327 = ref span183[1]; + num2++; + ref QuestStep reference327 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002380u, new Vector3(-338.8877f, 61.722656f, -120.25641f), 180) { IgnoreDistanceToObject = true }; - QuestStep questStep106 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span185 = CollectionsMarshal.AsSpan(list4); - span185[0] = null; - span185[1] = null; - span185[2] = null; - span185[3] = null; - span185[4] = null; - span185[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep106.CompletionQuestVariablesFlags = list4; + QuestStep questStep81 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep81.CompletionQuestVariablesFlags = list4; reference327 = questStep; - ref QuestStep reference328 = ref span183[2]; + num2++; + ref QuestStep reference328 = ref span3[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.93335f, 64.09534f, -197.701f), 180) { Fly = true }; - QuestStep questStep107 = questStep; + QuestStep questStep82 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions38 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions13 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span186 = CollectionsMarshal.AsSpan(list4); - span186[0] = null; - span186[1] = null; - span186[2] = null; - span186[3] = null; - span186[4] = null; - span186[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list4; skipConditions38.StepIf = skipStepConditions; - questStep107.SkipConditions = skipConditions; + questStep82.SkipConditions = skipConditions; reference328 = questStep; - ref QuestStep reference329 = ref span183[3]; + num2++; + ref QuestStep reference329 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002379u, new Vector3(-274.28094f, 65.81213f, -196.97876f), 180); - QuestStep questStep108 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span187 = CollectionsMarshal.AsSpan(list4); - span187[0] = null; - span187[1] = null; - span187[2] = null; - span187[3] = null; - span187[4] = null; - span187[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep108.CompletionQuestVariablesFlags = list4; + QuestStep questStep83 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep83.CompletionQuestVariablesFlags = list4; reference329 = questStep; - ref QuestStep reference330 = ref span183[4]; + num2++; + ref QuestStep reference330 = ref span3[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.9142f, 64.60336f, -267.98495f), 180) { Fly = true }; - QuestStep questStep109 = questStep; + QuestStep questStep84 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions39 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions14 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span188 = CollectionsMarshal.AsSpan(list4); - span188[0] = null; - span188[1] = null; - span188[2] = null; - span188[3] = null; - span188[4] = null; - span188[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list4; skipConditions39.StepIf = skipStepConditions; - questStep109.SkipConditions = skipConditions; + questStep84.SkipConditions = skipConditions; reference330 = questStep; - ref QuestStep reference331 = ref span183[5]; + num2++; + ref QuestStep reference331 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002382u, new Vector3(-327.87067f, 65.87317f, -267.59753f), 180); - QuestStep questStep110 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span189 = CollectionsMarshal.AsSpan(list4); - span189[0] = null; - span189[1] = null; - span189[2] = null; - span189[3] = null; - span189[4] = null; - span189[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep110.CompletionQuestVariablesFlags = list4; + QuestStep questStep85 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep85.CompletionQuestVariablesFlags = list4; reference331 = questStep; - ref QuestStep reference332 = ref span183[6]; + num2++; + ref QuestStep reference332 = ref span3[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-360.0172f, 65.166664f, -312.24045f), 180) { Fly = true }; - QuestStep questStep111 = questStep; + QuestStep questStep86 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions40 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions15 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span190 = CollectionsMarshal.AsSpan(list4); - span190[0] = null; - span190[1] = null; - span190[2] = null; - span190[3] = null; - span190[4] = null; - span190[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + span4 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions15.CompletionQuestVariablesFlags = list4; skipConditions40.StepIf = skipStepConditions; - questStep111.SkipConditions = skipConditions; + questStep86.SkipConditions = skipConditions; reference332 = questStep; - ref QuestStep reference333 = ref span183[7]; + num2++; + ref QuestStep reference333 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002381u, new Vector3(-360.55542f, 66.33093f, -310.87207f), 180); - QuestStep questStep112 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span191 = CollectionsMarshal.AsSpan(list4); - span191[0] = null; - span191[1] = null; - span191[2] = null; - span191[3] = null; - span191[4] = null; - span191[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep112.CompletionQuestVariablesFlags = list4; + QuestStep questStep87 = questStep; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + span4 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep87.CompletionQuestVariablesFlags = list4; reference333 = questStep; questSequence231.Steps = list3; reference325 = questSequence; - ref QuestSequence reference334 = ref span181[2]; + num++; + ref QuestSequence reference334 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence232 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002383u, new Vector3(-437.94922f, 51.377075f, -321.24823f), 180) + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + span3 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2002383u, new Vector3(-437.94922f, 51.377075f, -321.24823f), 180) { Fly = true }; - questSequence232.Steps = list3; + questSequence232.Steps = list192; reference334 = questSequence; - ref QuestSequence reference335 = ref span181[3]; + num++; + ref QuestSequence reference335 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence233 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66692,16 +79256,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot100 = questRoot; num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; - questRoot100.Author = list125; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; + questRoot100.Author = list193; QuestRoot questRoot101 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span192 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference336 = ref span192[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference336 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 @@ -66710,7 +79277,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference337 = ref CollectionsMarshal.AsSpan(list3)[0]; + span3 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference337 = ref span3[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -66720,65 +79289,75 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - QuestStep questStep113 = questStep; + QuestStep questStep88 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions41 = skipConditions; - skipAetheryteCondition = new SkipAetheryteCondition + SkipAetheryteCondition obj46 = new SkipAetheryteCondition { InSameTerritory = true }; - SkipAetheryteCondition skipAetheryteCondition27 = skipAetheryteCondition; - 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; + num5 = 1; + List list194 = new List(num5); + CollectionsMarshal.SetCount(list194, num5); + span7 = CollectionsMarshal.AsSpan(list194); + num4 = 0; + span7[num4] = 128; + obj46.InTerritory = list194; + skipConditions41.AetheryteShortcutIf = obj46; + questStep88.SkipConditions = skipConditions; reference337 = questStep; questSequence234.Steps = list3; reference336 = questSequence; - ref QuestSequence reference338 = ref span192[1]; + num++; + ref QuestSequence reference338 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence235 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007837u, new Vector3(256.82446f, -3.0527449f, 60.9292f), 139) + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007837u, new Vector3(256.82446f, -3.0527449f, 60.9292f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - questSequence235.Steps = list3; + questSequence235.Steps = list195; reference338 = questSequence; - ref QuestSequence reference339 = ref span192[2]; + num++; + ref QuestSequence reference339 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence236 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007845u, new Vector3(256.33618f, -3.2069032f, 58.091064f), 139) + List list196 = new List(num2); + CollectionsMarshal.SetCount(list196, num2); + span3 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1007845u, new Vector3(256.33618f, -3.2069032f, 58.091064f), 139) { StopDistance = 5f }; - questSequence236.Steps = list3; + questSequence236.Steps = list196; reference339 = questSequence; - ref QuestSequence reference340 = ref span192[3]; + num++; + ref QuestSequence reference340 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence237 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + span3 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66801,13 +79380,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -66815,7 +79397,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -66833,44 +79417,52 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 128; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 128; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-260.8949f, -17.148405f, -346.92633f), 156) + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-260.8949f, -17.148405f, -346.92633f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, 2002715u, new Vector3(-259.02197f, -15.762573f, -344.71655f), 156) { StopDistance = 4.5f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = 1949u; - span3[1] = 2285u; + index3 = 2; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + Span span5 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span5[num3] = 1949u; + num3++; + span5[num3] = 2285u; obj5.KillEnemyDataIds = list6; reference4 = obj5; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference5 = ref span[2]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -66878,21 +79470,26 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 2002716u, new Vector3(-259.02197f, -15.94574f, -344.71655f), 156) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002716u, new Vector3(-259.02197f, -15.94574f, -344.71655f), 156) { StopDistance = 4.5f }; obj6.Steps = list7; reference5 = obj6; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1003818u, new Vector3(157.36621f, 7.7920074f, 98.924194f), 131) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003818u, new Vector3(157.36621f, 7.7920074f, 98.924194f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -66903,7 +79500,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list8; reference6 = obj7; - ref QuestSequence reference7 = ref span[4]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -66911,7 +79509,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AethernetShortcut = new AethernetShortcut { @@ -66921,15 +79521,18 @@ public static class AssemblyQuestLoader }; obj8.Steps = list9; reference7 = obj8; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66940,7 +79543,8 @@ public static class AssemblyQuestLoader }; obj9.Steps = list10; reference8 = obj9; - ref QuestSequence reference9 = ref span[6]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -66948,19 +79552,23 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1000357u, new Vector3(68.314575f, 8.199997f, -170.51965f), 133); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000357u, new Vector3(68.314575f, 8.199997f, -170.51965f), 133); obj10.Steps = list11; reference9 = obj10; - ref QuestSequence reference10 = ref span[7]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.EquipItem, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + index2 = 5; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66970,19 +79578,23 @@ public static class AssemblyQuestLoader }, ItemId = 2905u }; - span4[1] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3689u }; - span4[2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3466u }; - span4[3] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3897u }; - span4[4] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { NextQuestId = new QuestId(1101) }; @@ -66995,13 +79607,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; questRoot2.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference11 = ref span5[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -67009,7 +79624,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj13 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67027,29 +79644,35 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 128; + span4 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span4[index3] = 128; obj14.InTerritory = list16; skipConditions2.AetheryteShortcutIf = obj14; obj13.SkipConditions = skipConditions2; reference12 = obj13; obj12.Steps = list15; reference11 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj15.Steps = list17; reference13 = obj15; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -67057,25 +79680,33 @@ public static class AssemblyQuestLoader num2 = 7; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference15 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Action, 1007843u, new Vector3(388.08264f, 7.8583374f, 40.512573f), 139) { Action = EAction.Esuna }; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span6 = CollectionsMarshal.AsSpan(list19); + 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); obj17.CompletionQuestVariablesFlags = list19; reference15 = obj17; - ref QuestStep reference16 = ref span6[1]; + index2++; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(423.76727f, 4.109605f, 74.008965f), 139) { Mount = true @@ -67085,35 +79716,49 @@ public static class AssemblyQuestLoader num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list20; skipConditions3.StepIf = skipStepConditions; obj18.SkipConditions = skipConditions3; reference16 = obj18; - ref QuestStep reference17 = ref span6[2]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Action, 1007844u, new Vector3(417.16638f, 3.6468506f, 59.64746f), 139) { Action = EAction.Esuna }; - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span9 = CollectionsMarshal.AsSpan(list21); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + span6 = CollectionsMarshal.AsSpan(list21); + 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); obj19.CompletionQuestVariablesFlags = list21; reference17 = obj19; - ref QuestStep reference18 = ref span6[3]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Action, 1007840u, new Vector3(427.2068f, 7.6130996f, 141.34424f), 139) { Action = EAction.Esuna @@ -67121,35 +79766,49 @@ public static class AssemblyQuestLoader num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list22; reference18 = obj20; - ref QuestStep reference19 = ref span6[4]; + index2++; + ref QuestStep reference19 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(477.80576f, 10.397504f, 104.84231f), 139); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span11 = CollectionsMarshal.AsSpan(list23); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span6 = CollectionsMarshal.AsSpan(list23); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list23; skipStepConditions2.Flying = ELockedSkipCondition.Unlocked; skipConditions4.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions4; reference19 = questStep; - ref QuestStep reference20 = ref span6[5]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Action, 1007842u, new Vector3(477.25635f, 8.499207f, 108.07959f), 139) { StopDistance = 0.5f, @@ -67159,47 +79818,64 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list24; reference20 = obj21; - ref QuestStep reference21 = ref span6[6]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Action, 1007841u, new Vector3(503.04407f, 16.468494f, 72.46509f), 139) { Fly = true, Action = EAction.Esuna }; - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span13 = CollectionsMarshal.AsSpan(list25); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span6 = CollectionsMarshal.AsSpan(list25); + 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); obj22.CompletionQuestVariablesFlags = list25; reference21 = obj22; obj16.Steps = list18; reference14 = obj16; - ref QuestSequence reference22 = ref span5[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139); obj23.Steps = list26; reference22 = obj23; - ref QuestSequence reference23 = ref span5[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -67207,7 +79883,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -67226,21 +79904,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot3.Author = list28; - num = 4; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span14 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference24 = ref span14[0]; + index = 4; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67258,14 +79941,17 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 128; + span4 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span4[index3] = 128; obj27.InTerritory = list31; skipConditions5.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions5; reference25 = obj26; obj25.Steps = list30; reference24 = obj25; - ref QuestSequence reference26 = ref span14[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -67273,40 +79959,51 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj28.Steps = list32; reference26 = obj28; - ref QuestSequence reference27 = ref span14[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span15 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference28 = ref span15[0]; + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) { StopDistance = 5f }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + span6 = CollectionsMarshal.AsSpan(list34); + 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); obj30.CompletionQuestVariablesFlags = list34; reference28 = obj30; - ref QuestStep reference29 = ref span15[1]; + num2++; + ref QuestStep reference29 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1007846u, new Vector3(262.80603f, -2.852741f, 63.1875f), 139) { StopDistance = 5f @@ -67314,32 +80011,46 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span17 = CollectionsMarshal.AsSpan(list35); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list35; reference29 = obj31; - ref QuestStep reference30 = ref span15[2]; + num2++; + ref QuestStep reference30 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1007847u, new Vector3(257.98413f, -3.4f, 49.05774f), 139); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span18 = CollectionsMarshal.AsSpan(list36); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span6 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list36; reference30 = questStep2; obj29.Steps = list33; reference27 = obj29; - ref QuestSequence reference31 = ref span14[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -67347,7 +80058,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007849u, new Vector3(231.79968f, 5.18473f, 61.142822f), 139) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007849u, new Vector3(231.79968f, 5.18473f, 61.142822f), 139) { NextQuestId = new QuestId(1671) }; @@ -67360,21 +80073,26 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "liza"; questRoot4.Author = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span19 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference32 = ref span19[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -67392,7 +80110,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list40; reference32 = obj33; - ref QuestSequence reference33 = ref span19[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -67400,12 +80119,16 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list41)[0]; + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN149_01103_Q1_000_000"), @@ -67415,15 +80138,18 @@ public static class AssemblyQuestLoader reference34 = questStep3; obj34.Steps = list41; reference33 = obj34; - ref QuestSequence reference35 = ref span19[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { NextQuestId = new QuestId(458) }; @@ -67436,13 +80162,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot5.Author = list44; - num = 2; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference36 = ref span20[0]; + index = 2; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -67450,19 +80179,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span20[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span21 = CollectionsMarshal.AsSpan(list47); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + index2 = 5; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -67471,19 +80204,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span21[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span21[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - span21[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - span21[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj37.Steps = list47; reference37 = obj37; questRoot5.QuestSequence = list45; @@ -67493,13 +80230,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot6.Author = list48; - num = 2; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span22 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference38 = ref span22[0]; + index = 2; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -67507,19 +80247,23 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span22[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span23 = CollectionsMarshal.AsSpan(list51); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + index2 = 5; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67529,19 +80273,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span23[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span23[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - span23[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - span23[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj39.Steps = list51; reference39 = obj39; questRoot6.QuestSequence = list49; @@ -67551,13 +80299,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot7.Author = list52; - num = 2; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span24 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span24[0]; + index = 2; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -67565,19 +80316,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span24[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span25 = CollectionsMarshal.AsSpan(list55); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + index2 = 5; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67587,19 +80342,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span25[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span25[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - span25[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - span25[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj41.Steps = list55; reference41 = obj41; questRoot7.QuestSequence = list53; @@ -67609,13 +80368,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "Cacahuetes"; questRoot8.Author = list56; - num = 2; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span26 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference42 = ref span26[0]; + index = 2; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -67623,7 +80385,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -67641,22 +80405,29 @@ public static class AssemblyQuestLoader }; obj42.Steps = list58; reference42 = obj42; - ref QuestSequence reference43 = ref span26[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span27 = CollectionsMarshal.AsSpan(list59); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.50569f, 4.550004f, 157.5545f), 129); - ref QuestStep reference44 = ref span27[1]; + index2 = 3; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-168.20792f, 4.550005f, 167.85986f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-167.60791f, 4.550005f, 165.35986f), 129); + num2++; + ref QuestStep reference44 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new DialogueChoice + index3 = 1; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + span7 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSFSH011_01107_Q1_000_001") @@ -67673,15 +80444,18 @@ public static class AssemblyQuestLoader num = 2; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span28 = CollectionsMarshal.AsSpan(list61); - span28[0] = "Cacahuetes"; - span28[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "Cacahuetes"; + index++; + span[index] = "Friendly"; questRoot9.Author = list61; - num = 2; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span29 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference45 = ref span29[0]; + index = 2; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -67689,8 +80463,9 @@ public static class AssemblyQuestLoader num2 = 3; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span30 = CollectionsMarshal.AsSpan(list63); - span30[0] = new QuestStep(EInteractionType.EquipItem, null, null, 129) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 129) { ItemId = 2571u, SkipConditions = new SkipConditions @@ -67704,20 +80479,24 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); - span30[2] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); obj44.Steps = list63; reference45 = obj44; - ref QuestSequence reference46 = ref span29[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span31 = CollectionsMarshal.AsSpan(list64); - span31[0] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) { AethernetShortcut = new AethernetShortcut { @@ -67739,7 +80518,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262186u) } }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) { Comment = "Complete quest", AethernetShortcut = new AethernetShortcut @@ -67758,13 +80538,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "pot0to"; questRoot10.Author = list65; - num = 20; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span32 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span32[0]; + index = 20; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -67772,7 +80555,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67786,22 +80571,26 @@ public static class AssemblyQuestLoader }; obj46.Steps = list67; reference47 = obj46; - ref QuestSequence reference48 = ref span32[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2002499u, new Vector3(-319.17297f, -36.636963f, -278.73657f), 138) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002499u, new Vector3(-319.17297f, -36.636963f, -278.73657f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj47.Steps = list68; reference48 = obj47; - ref QuestSequence reference49 = ref span32[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -67809,28 +80598,33 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj48.Steps = list69; reference49 = obj48; - ref QuestSequence reference50 = ref span32[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span33 = CollectionsMarshal.AsSpan(list70); - span33[0] = new QuestStep(EInteractionType.WaitForManualProgress, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForManualProgress, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, Comment = "Craft/purchase off marketboard an erudite's picatrix of healing and meld 2 grade 3 quicktongue materia to it." }; - span33[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67844,7 +80638,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list70; reference50 = obj49; - ref QuestSequence reference51 = ref span32[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -67852,7 +80647,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) { Fly = true, Comment = "Queue for A Relic Reborn: The Chimera", @@ -67863,16 +80660,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list71; reference51 = obj50; - ref QuestSequence reference52 = ref span32[5]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span34 = CollectionsMarshal.AsSpan(list72); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67884,10 +80683,12 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj51.Steps = list72; reference52 = obj51; - ref QuestSequence reference53 = ref span32[6]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 @@ -67895,7 +80696,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -67909,15 +80712,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list73; reference53 = obj52; - ref QuestSequence reference54 = ref span32[7]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 154) { Fly = true, Comment = "Queue for Amdapor Keep", @@ -67928,7 +80734,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list74; reference54 = obj53; - ref QuestSequence reference55 = ref span32[8]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 8 @@ -67936,19 +80743,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj54.Steps = list75; reference55 = obj54; - ref QuestSequence reference56 = ref span32[9]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span35 = CollectionsMarshal.AsSpan(list76); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67960,10 +80771,12 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj55.Steps = list76; reference56 = obj55; - ref QuestSequence reference57 = ref span32[10]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 10 @@ -67971,8 +80784,9 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = new QuestStep(EInteractionType.EquipItem, null, null, 138) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, ItemId = 2192u, @@ -67984,7 +80798,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference58 = ref span36[1]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 768u, new Vector3(-317.9305f, -39.35494f, -298.3956f), 138) { Fly = true, @@ -67993,35 +80808,46 @@ public static class AssemblyQuestLoader num3 = 3; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = 766u; - span37[1] = 767u; - span37[2] = 768u; + span5 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span5[index3] = 766u; + index3++; + span5[index3] = 767u; + index3++; + span5[index3] = 768u; obj57.KillEnemyDataIds = list78; - num3 = 6; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span38 = CollectionsMarshal.AsSpan(list79); - span38[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span38[1] = new QuestWorkValue((byte)8, (byte)8, EQuestWorkMode.Bitwise); - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = null; + index3 = 6; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span6 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span6[num3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = new QuestWorkValue((byte)8, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj57.CompletionQuestVariablesFlags = list79; reference58 = obj57; obj56.Steps = list77; reference57 = obj56; - ref QuestSequence reference59 = ref span32[11]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 11 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span39 = CollectionsMarshal.AsSpan(list80); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -68033,10 +80859,12 @@ public static class AssemblyQuestLoader } } }; - span39[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj58.Steps = list80; reference59 = obj58; - ref QuestSequence reference60 = ref span32[12]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 12 @@ -68044,7 +80872,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) { Comment = "Queue for A Relic Reborn: The Hydra", DutyOptions = new DutyOptions @@ -68054,16 +80884,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list81; reference60 = obj59; - ref QuestSequence reference61 = ref span32[13]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 13 }; - num2 = 2; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span40 = CollectionsMarshal.AsSpan(list82); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -68075,10 +80907,12 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj60.Steps = list82; reference61 = obj60; - ref QuestSequence reference62 = ref span32[14]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 14 @@ -68086,20 +80920,25 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span41 = CollectionsMarshal.AsSpan(list83); - span41[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); - span41[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj61.Steps = list83; reference62 = obj61; - ref QuestSequence reference63 = ref span32[15]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 15 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -68108,7 +80947,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list84; reference63 = obj62; - ref QuestSequence reference64 = ref span32[16]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 16 @@ -68116,7 +80956,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -68125,15 +80967,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list85; reference64 = obj63; - ref QuestSequence reference65 = ref span32[17]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 17 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -68142,7 +80987,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list86; reference65 = obj64; - ref QuestSequence reference66 = ref span32[18]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 18 @@ -68150,19 +80996,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj65.Steps = list87; reference66 = obj65; - ref QuestSequence reference67 = ref span32[19]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span42 = CollectionsMarshal.AsSpan(list88); - span42[0] = new QuestStep(EInteractionType.PurchaseItem, 1008119u, new Vector3(62.333008f, 31.28805f, -739.98627f), 156) + index2 = 3; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.PurchaseItem, 1008119u, new Vector3(62.333008f, 31.28805f, -739.98627f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, ItemId = 6267u, @@ -68175,7 +81025,8 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -68187,7 +81038,8 @@ public static class AssemblyQuestLoader } } }; - span42[2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj66.Steps = list88; reference67 = obj66; questRoot10.QuestSequence = list66; @@ -68197,15 +81049,18 @@ public static class AssemblyQuestLoader num = 2; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span43 = CollectionsMarshal.AsSpan(list89); - span43[0] = "liza"; - span43[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot11.Author = list89; - num = 4; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span44 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference68 = ref span44[0]; + index = 4; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -68213,7 +81068,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list91)[0]; + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference69 = ref span3[index2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -68231,7 +81088,9 @@ public static class AssemblyQuestLoader num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 128; + span4 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span4[index3] = 128; obj69.InTerritory = list92; skipConditions6.AetheryteShortcutIf = obj69; skipConditions6.AethernetShortcutIf = new SkipAetheryteCondition @@ -68242,22 +81101,26 @@ public static class AssemblyQuestLoader reference69 = obj68; obj67.Steps = list91; reference68 = obj67; - ref QuestSequence reference70 = ref span44[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj70.Steps = list93; reference70 = obj70; - ref QuestSequence reference71 = ref span44[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -68265,7 +81128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68274,15 +81139,18 @@ public static class AssemblyQuestLoader }; obj71.Steps = list94; reference71 = obj71; - ref QuestSequence reference72 = ref span44[3]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -68300,15 +81168,18 @@ public static class AssemblyQuestLoader num = 2; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span45 = CollectionsMarshal.AsSpan(list96); - span45[0] = "liza"; - span45[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot12.Author = list96; - num = 4; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span46 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference73 = ref span46[0]; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -68316,7 +81187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -68329,22 +81202,26 @@ public static class AssemblyQuestLoader }; obj73.Steps = list98; reference73 = obj73; - ref QuestSequence reference74 = ref span46[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj74.Steps = list99; reference74 = obj74; - ref QuestSequence reference75 = ref span46[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -68352,7 +81229,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68361,15 +81240,18 @@ public static class AssemblyQuestLoader }; obj75.Steps = list100; reference75 = obj75; - ref QuestSequence reference76 = ref span46[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -68382,15 +81264,18 @@ public static class AssemblyQuestLoader num = 2; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span47 = CollectionsMarshal.AsSpan(list102); - span47[0] = "liza"; - span47[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot13.Author = list102; - num = 4; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span48 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference77 = ref span48[0]; + index = 4; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -68398,7 +81283,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -68411,22 +81298,26 @@ public static class AssemblyQuestLoader }; obj77.Steps = list104; reference77 = obj77; - ref QuestSequence reference78 = ref span48[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj78.Steps = list105; reference78 = obj78; - ref QuestSequence reference79 = ref span48[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -68434,7 +81325,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68443,15 +81336,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list106; reference79 = obj79; - ref QuestSequence reference80 = ref span48[3]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -68464,15 +81360,18 @@ public static class AssemblyQuestLoader num = 2; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span49 = CollectionsMarshal.AsSpan(list108); - span49[0] = "liza"; - span49[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot14.Author = list108; - num = 4; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span50 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference81 = ref span50[0]; + index = 4; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -68480,7 +81379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list110)[0]; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -68495,10 +81396,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 128; + index3 = 1; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + span4 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span4[num3] = 128; obj83.InTerritory = list111; skipConditions7.AetheryteShortcutIf = obj83; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -68509,16 +81412,18 @@ public static class AssemblyQuestLoader reference82 = obj82; obj81.Steps = list110; reference81 = obj81; - ref QuestSequence reference83 = ref span50[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span51 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference84 = ref span51[0]; + index2 = 3; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -68529,7 +81434,9 @@ public static class AssemblyQuestLoader num3 = 1; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = 155; + span4 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span4[index3] = 155; skipStepConditions3.InTerritory = list113; skipStepConditions3.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions8.StepIf = skipStepConditions3; @@ -68537,16 +81444,19 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 155; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span4 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span4[num3] = 155; obj86.InTerritory = list114; obj86.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions8.AetheryteShortcutIf = obj86; obj85.SkipConditions = skipConditions8; reference84 = obj85; - ref QuestStep reference85 = ref span51[1]; + num2++; + ref QuestStep reference85 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 @@ -68556,13 +81466,16 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 155; + span4 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span4[index3] = 155; skipStepConditions4.InTerritory = list115; skipStepConditions4.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions9.StepIf = skipStepConditions4; obj87.SkipConditions = skipConditions9; reference85 = obj87; - span51[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -68576,7 +81489,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list112; reference83 = obj84; - ref QuestSequence reference86 = ref span50[2]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -68584,7 +81498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68593,15 +81509,18 @@ public static class AssemblyQuestLoader }; obj88.Steps = list116; reference86 = obj88; - ref QuestSequence reference87 = ref span50[3]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -68619,15 +81538,18 @@ public static class AssemblyQuestLoader num = 2; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span52 = CollectionsMarshal.AsSpan(list118); - span52[0] = "liza"; - span52[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot15.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference88 = ref span53[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -68635,7 +81557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -68648,16 +81572,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list120; reference88 = obj90; - ref QuestSequence reference89 = ref span53[1]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span54 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference90 = ref span54[0]; + index2 = 3; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj92 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -68665,10 +81591,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 155; + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + span4 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span4[num3] = 155; skipStepConditions5.InTerritory = list122; skipStepConditions5.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions10.StepIf = skipStepConditions5; @@ -68679,29 +81607,35 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 155; + span4 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span4[index3] = 155; obj93.InTerritory = list123; obj93.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions10.AetheryteShortcutIf = obj93; obj92.SkipConditions = skipConditions10; reference90 = obj92; - ref QuestStep reference91 = ref span54[1]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 155; + index3 = 1; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span4[num3] = 155; skipStepConditions6.InTerritory = list124; skipStepConditions6.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions11.StepIf = skipStepConditions6; obj94.SkipConditions = skipConditions11; reference91 = obj94; - span54[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -68715,7 +81649,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list121; reference89 = obj91; - ref QuestSequence reference92 = ref span53[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -68723,7 +81658,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68732,15 +81669,18 @@ public static class AssemblyQuestLoader }; obj95.Steps = list125; reference92 = obj95; - ref QuestSequence reference93 = ref span53[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -68753,15 +81693,18 @@ public static class AssemblyQuestLoader num = 2; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span55 = CollectionsMarshal.AsSpan(list127); - span55[0] = "liza"; - span55[1] = "Friendly"; + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "liza"; + index++; + span[index] = "Friendly"; questRoot16.Author = list127; - num = 4; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span56 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference94 = ref span56[0]; + index = 4; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -68769,7 +81712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -68782,16 +81727,18 @@ public static class AssemblyQuestLoader }; obj97.Steps = list129; reference94 = obj97; - ref QuestSequence reference95 = ref span56[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span57 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference96 = ref span57[0]; + index2 = 3; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -68802,7 +81749,9 @@ public static class AssemblyQuestLoader num3 = 1; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = 155; + span4 = CollectionsMarshal.AsSpan(list131); + index3 = 0; + span4[index3] = 155; skipStepConditions7.InTerritory = list131; skipStepConditions7.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions12.StepIf = skipStepConditions7; @@ -68810,16 +81759,19 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 155; + index3 = 1; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + span4 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span4[num3] = 155; obj100.InTerritory = list132; obj100.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions12.AetheryteShortcutIf = obj100; obj99.SkipConditions = skipConditions12; reference96 = obj99; - ref QuestStep reference97 = ref span57[1]; + num2++; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 @@ -68829,13 +81781,16 @@ public static class AssemblyQuestLoader num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = 155; + span4 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span4[index3] = 155; skipStepConditions8.InTerritory = list133; skipStepConditions8.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions13.StepIf = skipStepConditions8; obj101.SkipConditions = skipConditions13; reference97 = obj101; - span57[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -68849,7 +81804,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list130; reference95 = obj98; - ref QuestSequence reference98 = ref span56[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -68857,7 +81813,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68866,15 +81824,18 @@ public static class AssemblyQuestLoader }; obj102.Steps = list134; reference98 = obj102; - ref QuestSequence reference99 = ref span56[3]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -68887,12 +81848,16 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "Cacahuetes"; questRoot17.Author = list136; - num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - ref QuestSequence reference100 = ref CollectionsMarshal.AsSpan(list137)[0]; + index = 1; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -68900,8 +81865,9 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span58 = CollectionsMarshal.AsSpan(list138); - ref QuestStep reference101 = ref span58[0]; + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference101 = ref span3[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -68911,17 +81877,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + span7 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSFSH001_01134_Q1_000_1") }; obj105.DialogueChoices = list139; reference101 = obj105; - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129); obj104.Steps = list138; reference100 = obj104; questRoot17.QuestSequence = list137; @@ -68932,18 +81901,19 @@ public static class AssemblyQuestLoader { QuestId questId = new QuestId(1157); QuestRoot questRoot = new QuestRoot(); - int num = 2; + int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = "JerryWester"; - span[1] = "Wigglez"; + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); Span span2 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span2[0]; + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -68952,7 +81922,8 @@ public static class AssemblyQuestLoader List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); Span span3 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference2 = ref span3[0]; + int num3 = 0; + ref QuestStep reference2 = ref span3[num3]; QuestStep obj2 = new QuestStep(EInteractionType.UseItem, null, null, 146) { TargetTerritoryId = (ushort)140, @@ -68960,173 +81931,183 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - int num3 = 1; - List list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 212; + int num4 = 1; + List list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + span4[index2] = 212; skipStepConditions.InTerritory = list4; skipConditions.StepIf = skipStepConditions; obj2.SkipConditions = skipConditions; reference2 = obj2; - ref QuestStep reference3 = ref span3[1]; + num3++; + ref QuestStep reference3 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 212; + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span4 = CollectionsMarshal.AsSpan(list5); + num4 = 0; + span4[num4] = 212; skipStepConditions2.InTerritory = list5; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference3 = questStep; - ref QuestStep reference4 = ref span3[2]; + num3++; + ref QuestStep reference4 = ref span3[num3]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 212; + num4 = 1; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span4[index2] = 212; skipStepConditions3.InTerritory = list6; skipConditions3.StepIf = skipStepConditions3; obj3.SkipConditions = skipConditions3; reference4 = obj3; - span3[3] = new QuestStep(EInteractionType.AcceptQuest, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212); obj.Steps = list3; reference = obj; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; + num2 = 2; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference7 = ref span4[0]; - QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(649.43243f, 290.48322f, 175.73515f), 155) + span3 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(649.43243f, 290.48322f, 175.73515f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 155; - skipStepConditions4.InTerritory = list9; - skipConditions4.StepIf = skipStepConditions4; - obj6.SkipConditions = skipConditions4; - reference7 = obj6; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(640.5904f, 287.48422f, 175.69055f), 155) - { - Fly = true - }; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(640.5904f, 287.48422f, 175.69055f), 155) - { - Mount = false - }; - span4[3] = new QuestStep(EInteractionType.CompleteQuest, 2002582u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 2002582u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); obj5.Steps = list8; reference6 = obj5; questRoot.QuestSequence = list2; AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1158); QuestRoot questRoot2 = new QuestRoot(); - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = "JerryWester"; - span5[1] = "Wigglez"; - questRoot2.Author = list10; - num = 3; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span6 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span6[0]; - QuestSequence obj7 = new QuestSequence + num = 1; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "JerryWester"; + questRoot2.Author = list9; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; + QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span7 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span7[0]; - QuestStep obj8 = new QuestStep(EInteractionType.UseItem, null, null, 146) + num3 = 4; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; + QuestStep obj7 = new QuestStep(EInteractionType.UseItem, null, null, 146) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions4 = new SkipConditions(); + SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span4 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span4[num4] = 212; + skipStepConditions4.InTerritory = list12; + skipConditions4.StepIf = skipStepConditions4; + obj7.SkipConditions = skipConditions4; + reference8 = obj7; + num2++; + ref QuestStep reference9 = ref span3[num2]; + QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 212; + num4 = 1; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + span4 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span4[index2] = 212; skipStepConditions5.InTerritory = list13; skipConditions5.StepIf = skipStepConditions5; - obj8.SkipConditions = skipConditions5; - reference9 = obj8; - ref QuestStep reference10 = ref span7[1]; - QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions6 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 212; - skipStepConditions6.InTerritory = list14; - skipConditions6.StepIf = skipStepConditions6; - questStep2.SkipConditions = skipConditions6; - reference10 = questStep2; - ref QuestStep reference11 = ref span7[2]; - QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep2.SkipConditions = skipConditions5; + reference9 = questStep2; + num2++; + ref QuestStep reference10 = ref span3[num2]; + QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = 212; - skipStepConditions7.InTerritory = list15; - skipConditions7.StepIf = skipStepConditions7; - obj9.SkipConditions = skipConditions7; - reference11 = obj9; - span7[3] = new QuestStep(EInteractionType.AcceptQuest, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); - obj7.Steps = list12; - reference8 = obj7; - ref QuestSequence reference12 = ref span6[1]; - QuestSequence obj10 = new QuestSequence + SkipConditions skipConditions6 = new SkipConditions(); + SkipStepConditions skipStepConditions6 = new SkipStepConditions(); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span4 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span4[num4] = 212; + skipStepConditions6.InTerritory = list14; + skipConditions6.StepIf = skipStepConditions6; + obj8.SkipConditions = skipConditions6; + reference10 = obj8; + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); + obj6.Steps = list11; + reference7 = obj6; + num++; + ref QuestSequence reference11 = ref span2[num]; + QuestSequence obj9 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + span3 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -69135,307 +82116,352 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj10.Steps = list16; - reference12 = obj10; - ref QuestSequence reference13 = ref span6[2]; - QuestSequence obj11 = new QuestSequence + obj9.Steps = list15; + reference11 = obj9; + num++; + ref QuestSequence reference12 = ref span2[num]; + QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 12; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span8 = CollectionsMarshal.AsSpan(list17); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) + num3 = 11; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180 }; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true }; - span8[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span8[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true }; - span8[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - span8[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - span8[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - span8[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - span8[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - ref QuestStep reference14 = ref span8[10]; - QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(144.05684f, 26.19276f, -625.1859f), 180) - { - DelaySecondsAtStart = 2f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 758u; - obj12.KillEnemyDataIds = list18; - reference14 = obj12; - span8[11] = new QuestStep(EInteractionType.CompleteQuest, 2002583u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); - obj11.Steps = list17; - reference13 = obj11; - questRoot2.QuestSequence = list11; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2002583u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); + obj10.Steps = list16; + reference12 = obj10; + questRoot2.QuestSequence = list10; AddQuest(questId2, questRoot2); QuestId questId3 = new QuestId(1159); QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; - questRoot3.Author = list19; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; + questRoot3.Author = list17; questRoot3.Comment = "Only Turn 5 is required for the next quest to unlock"; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span9[0]; - QuestSequence obj13 = new QuestSequence + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; + QuestSequence obj11 = new QuestSequence { Sequence = 0 }; num2 = 4; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span10 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span10[0]; - QuestStep obj14 = new QuestStep(EInteractionType.UseItem, null, null, 132) + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + span3 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref QuestStep reference14 = ref span3[num3]; + QuestStep obj12 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions7 = new SkipConditions(); + SkipStepConditions skipStepConditions7 = new SkipStepConditions(); + num4 = 2; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span4 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span4[index2] = 140; + index2++; + span4[index2] = 212; + skipStepConditions7.InTerritory = list20; + skipConditions7.StepIf = skipStepConditions7; + obj12.SkipConditions = skipConditions7; + reference14 = obj12; + num3++; + ref QuestStep reference15 = ref span3[num3]; + QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = 140; - span11[1] = 212; - skipStepConditions8.InTerritory = list22; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = 212; + skipStepConditions8.InTerritory = list21; skipConditions8.StepIf = skipStepConditions8; - obj14.SkipConditions = skipConditions8; - reference16 = obj14; - ref QuestStep reference17 = ref span10[1]; - QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions9 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 212; - skipStepConditions9.InTerritory = list23; - skipConditions9.StepIf = skipStepConditions9; - questStep3.SkipConditions = skipConditions9; - reference17 = questStep3; - ref QuestStep reference18 = ref span10[2]; - QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep3.SkipConditions = skipConditions8; + reference15 = questStep3; + num3++; + ref QuestStep reference16 = ref span3[num3]; + QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 212; - skipStepConditions10.InTerritory = list24; - skipConditions10.StepIf = skipStepConditions10; - obj15.SkipConditions = skipConditions10; - reference18 = obj15; - span10[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj13.Steps = list21; - reference15 = obj13; - ref QuestSequence reference19 = ref span9[1]; - QuestSequence obj16 = new QuestSequence + SkipConditions skipConditions9 = new SkipConditions(); + SkipStepConditions skipStepConditions9 = new SkipStepConditions(); + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span4 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span4[index2] = 212; + skipStepConditions9.InTerritory = list22; + skipConditions9.StepIf = skipStepConditions9; + obj13.SkipConditions = skipConditions9; + reference16 = obj13; + num3++; + span3[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 span2[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1007685u, new Vector3(-18.539795f, 70.50106f, 17.746216f), 137) + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007685u, new Vector3(-18.539795f, 70.50106f, 17.746216f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - obj16.Steps = list25; - reference19 = obj16; - ref QuestSequence reference20 = ref span9[2]; - QuestSequence obj17 = new QuestSequence + obj14.Steps = list23; + reference17 = obj14; + num++; + ref QuestSequence reference18 = ref span2[num]; + QuestSequence obj15 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(358.13956f, 76.42267f, -98.75324f), 137) + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + span3 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(358.13956f, 76.42267f, -98.75324f), 137) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.Interact, 2002609u, new Vector3(356.98486f, 77.71411f, -99.83978f), 137); - obj17.Steps = list26; - reference20 = obj17; - ref QuestSequence reference21 = ref span9[3]; - QuestSequence obj18 = new QuestSequence + num3++; + span3[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 span2[num]; + QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007627u, new Vector3(13.260071f, 65.04303f, 43.808594f), 137) + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007627u, new Vector3(13.260071f, 65.04303f, 43.808594f), 137) { Fly = true, NextQuestId = new QuestId(1160) }; - obj18.Steps = list27; - reference21 = obj18; - questRoot3.QuestSequence = list20; + obj16.Steps = list25; + reference19 = obj16; + questRoot3.QuestSequence = list18; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(1160); QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; - questRoot4.Author = list28; - num = 2; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span13 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference22 = ref span13[0]; - QuestSequence obj19 = new QuestSequence + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; + questRoot4.Author = list26; + index = 2; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; + QuestSequence obj17 = new QuestSequence { Sequence = 0 }; num2 = 4; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span14[0]; - QuestStep obj20 = new QuestStep(EInteractionType.UseItem, null, null, 132) + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); + span3 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref QuestStep reference21 = ref span3[num3]; + QuestStep obj18 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions10 = new SkipConditions(); + SkipStepConditions skipStepConditions10 = new SkipStepConditions(); + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span4 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span4[num4] = 140; + num4++; + span4[num4] = 212; + skipStepConditions10.InTerritory = list29; + skipConditions10.StepIf = skipStepConditions10; + obj18.SkipConditions = skipConditions10; + reference21 = obj18; + num3++; + ref QuestStep reference22 = ref span3[num3]; + QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span15 = CollectionsMarshal.AsSpan(list31); - span15[0] = 140; - span15[1] = 212; - skipStepConditions11.InTerritory = list31; + num4 = 1; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span4 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span4[index2] = 212; + skipStepConditions11.InTerritory = list30; skipConditions11.StepIf = skipStepConditions11; - obj20.SkipConditions = skipConditions11; - reference23 = obj20; - ref QuestStep reference24 = ref span14[1]; - QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = 212; - skipStepConditions12.InTerritory = list32; - skipConditions12.StepIf = skipStepConditions12; - questStep4.SkipConditions = skipConditions12; - reference24 = questStep4; - ref QuestStep reference25 = ref span14[2]; - QuestStep obj21 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep4.SkipConditions = skipConditions11; + reference22 = questStep4; + num3++; + ref QuestStep reference23 = ref span3[num3]; + QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions13 = new SkipConditions(); - SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 212; - skipStepConditions13.InTerritory = list33; - skipConditions13.StepIf = skipStepConditions13; - obj21.SkipConditions = skipConditions13; - reference25 = obj21; - ref QuestStep reference26 = ref span14[3]; + SkipConditions skipConditions12 = new SkipConditions(); + SkipStepConditions skipStepConditions12 = new SkipStepConditions(); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span4 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span4[num4] = 212; + skipStepConditions12.InTerritory = list31; + skipConditions12.StepIf = skipStepConditions12; + obj19.SkipConditions = skipConditions12; + reference23 = obj19; + num3++; + ref QuestStep reference24 = ref span3[num3]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new DialogueChoice + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span5 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span5[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD102_01160_Q1_000_000"), Yes = false }; - questStep5.DialogueChoices = list34; - reference26 = questStep5; - obj19.Steps = list30; - reference22 = obj19; - ref QuestSequence reference27 = ref span13[1]; - QuestSequence obj22 = new QuestSequence + questStep5.DialogueChoices = list32; + reference24 = questStep5; + obj17.Steps = list28; + reference20 = obj17; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007684u, new Vector3(-2.975586f, -3.000001f, -55.10034f), 212) + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007684u, new Vector3(-2.975586f, -3.000001f, -55.10034f), 212) { NextQuestId = new QuestId(1313) }; - obj22.Steps = list35; - reference27 = obj22; - questRoot4.QuestSequence = list29; + obj20.Steps = list33; + reference25 = obj20; + questRoot4.QuestSequence = list27; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(1162); QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; - questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span16 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span16[0]; - QuestSequence obj23 = new QuestSequence + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; + questRoot5.Author = list34; + index = 6; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj21 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002754u, new Vector3(-219.22644f, 20.923328f, 338.4298f), 153) + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + span3 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1002754u, new Vector3(-219.22644f, 20.923328f, 338.4298f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -69446,44 +82472,53 @@ public static class AssemblyQuestLoader } } }; - obj23.Steps = list38; - reference28 = obj23; - ref QuestSequence reference29 = ref span16[1]; - QuestSequence obj24 = new QuestSequence + obj21.Steps = list36; + reference26 = obj21; + num++; + ref QuestSequence reference27 = ref span2[num]; + QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj24.Steps = list39; - reference29 = obj24; - ref QuestSequence reference30 = ref span16[2]; - QuestSequence obj25 = new QuestSequence + obj22.Steps = list37; + reference27 = obj22; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2001467u, new Vector3(-44.419067f, 1.4190674f, -36.850586f), 148); - obj25.Steps = list40; - reference30 = obj25; - ref QuestSequence reference31 = ref span16[3]; - QuestSequence obj26 = new QuestSequence + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + span3 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span3[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 span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - span17[1] = new QuestStep(EInteractionType.PurchaseItem, 1000220u, new Vector3(16.189758f, -8.010209f, -15.640564f), 148) + num3 = 2; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + num2++; + span3[num2] = new QuestStep(EInteractionType.PurchaseItem, 1000220u, new Vector3(16.189758f, -8.010209f, -15.640564f), 148) { ItemId = 4868u, ItemCount = 1, @@ -69500,145 +82535,104 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262773u) } }; - obj26.Steps = list41; - reference31 = obj26; - ref QuestSequence reference32 = ref span16[4]; - QuestSequence obj27 = new QuestSequence + obj24.Steps = list39; + reference29 = obj24; + num++; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span18 = CollectionsMarshal.AsSpan(list42); - span18[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + span3 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) { Fly = true, ItemId = 4868u }; - ref QuestStep reference33 = ref span18[1]; - QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) + num3++; + ref QuestStep reference31 = ref span3[num3]; + QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span6 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span6[num4] = new ComplexCombatData { DataId = 178u, MinimumKillCount = 3u }; - obj28.ComplexCombatData = list43; - reference33 = obj28; - obj27.Steps = list42; - reference32 = obj27; - ref QuestSequence reference34 = ref span16[5]; - QuestSequence obj29 = new QuestSequence + obj26.ComplexCombatData = list41; + reference31 = obj26; + obj25.Steps = list40; + reference30 = obj25; + num++; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - obj29.Steps = list44; - reference34 = obj29; - questRoot5.QuestSequence = list37; + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + obj27.Steps = list42; + reference32 = obj27; + questRoot5.QuestSequence = list35; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1175); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "JerryWester"; - questRoot6.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span19 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference35 = ref span19[0]; - QuestSequence obj30 = new QuestSequence + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; + questRoot6.Author = list43; + index = 3; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 5; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span20 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference36 = ref span20[0]; - QuestStep obj31 = new QuestStep(EInteractionType.UseItem, null, null, 132) - { - TargetTerritoryId = (ushort)140, - ItemId = 30362u - }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 2; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span21 = CollectionsMarshal.AsSpan(list48); - span21[0] = 140; - span21[1] = 212; - skipStepConditions14.InTerritory = list48; - skipConditions14.StepIf = skipStepConditions14; - obj31.SkipConditions = skipConditions14; - reference36 = obj31; - ref QuestStep reference37 = ref span20[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 212; - skipStepConditions15.InTerritory = list49; - skipConditions15.StepIf = skipStepConditions15; - questStep6.SkipConditions = skipConditions15; - reference37 = questStep6; - ref QuestStep reference38 = ref span20[2]; - QuestStep obj32 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) - { - TargetTerritoryId = (ushort)212 - }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipStepConditions skipStepConditions16 = new SkipStepConditions(); - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 212; - skipStepConditions16.InTerritory = list50; - skipConditions16.StepIf = skipStepConditions16; - obj32.SkipConditions = skipConditions16; - reference38 = obj32; - span20[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) - { - TargetTerritoryId = (ushort)212, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - ExtraCondition = EExtraSkipCondition.WakingSandsSolar - } - } - }; - 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 + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + span3 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj28.Steps = list45; + reference33 = obj28; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span22 = CollectionsMarshal.AsSpan(list51); - span22[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) + num3 = 7; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) { PickUpQuestId = new QuestId(1047) }; - span22[1] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -69649,117 +82643,160 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference40 = ref span22[2]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span23 = CollectionsMarshal.AsSpan(list52); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list52; - reference40 = questStep7; - ref QuestStep reference41 = ref span22[3]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); - num3 = 6; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list53; - reference41 = questStep8; - ref QuestStep reference42 = ref span22[4]; - QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212) + num2++; + ref QuestStep reference35 = ref span3[num2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); + num4 = 6; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span7 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list47; + reference35 = questStep6; + num2++; + ref QuestStep reference36 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); + index2 = 6; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span7 = CollectionsMarshal.AsSpan(list48); + 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); + questStep7.CompletionQuestVariablesFlags = list48; + reference36 = questStep7; + num2++; + ref QuestStep reference37 = ref span3[num2]; + QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212) { StopDistance = 7f }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span25 = CollectionsMarshal.AsSpan(list54); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj34.CompletionQuestVariablesFlags = list54; - reference42 = obj34; - ref QuestStep reference43 = ref span22[5]; - QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1007530u, new Vector3(1.296936f, -3.0000012f, -52.262207f), 212) + num4 = 6; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span7 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj30.CompletionQuestVariablesFlags = list49; + reference37 = obj30; + num2++; + ref QuestStep reference38 = ref span3[num2]; + QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1007530u, new Vector3(1.296936f, -3.0000012f, -52.262207f), 212) { StopDistance = 7f }; - num3 = 6; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span26 = CollectionsMarshal.AsSpan(list55); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj35.CompletionQuestVariablesFlags = list55; - reference43 = obj35; - ref QuestStep reference44 = ref span22[6]; - QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span27 = CollectionsMarshal.AsSpan(list56); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list56; - reference44 = questStep9; - obj33.Steps = list51; - reference39 = obj33; - ref QuestSequence reference45 = ref span19[2]; - QuestSequence obj36 = new QuestSequence + index2 = 6; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span7 = CollectionsMarshal.AsSpan(list50); + 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); + obj31.CompletionQuestVariablesFlags = list50; + reference38 = obj31; + num2++; + ref QuestStep reference39 = ref span3[num2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + span7 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = null; + index2++; + span7[index2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list51; + reference39 = questStep8; + obj29.Steps = list46; + reference34 = obj29; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); - obj36.Steps = list57; - reference45 = obj36; - questRoot6.QuestSequence = list46; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + span3 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); + obj32.Steps = list52; + reference40 = obj32; + questRoot6.QuestSequence = list44; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(1189); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; - questRoot7.Author = list58; - num = 3; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span28 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference46 = ref span28[0]; - QuestSequence obj37 = new QuestSequence + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "JerryWester"; + questRoot7.Author = list53; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -69770,80 +82807,94 @@ public static class AssemblyQuestLoader } } }; - obj37.Steps = list60; - reference46 = obj37; - ref QuestSequence reference47 = ref span28[1]; - QuestSequence obj38 = new QuestSequence + obj33.Steps = list55; + reference41 = obj33; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span29 = CollectionsMarshal.AsSpan(list61); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23075f, 1.3112462f, 7.6441884f), 132) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + span3 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23075f, 1.3112462f, 7.6441884f), 132) { TargetTerritoryId = (ushort)133 }; - span29[1] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - span29[2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); - obj38.Steps = list61; - reference47 = obj38; - ref QuestSequence reference48 = ref span28[2]; - QuestSequence obj39 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj34.Steps = list56; + reference42 = obj34; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) + num3 = 2; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) { TargetTerritoryId = (ushort)133 }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - obj39.Steps = list62; - reference48 = obj39; - questRoot7.QuestSequence = list59; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); + obj35.Steps = list57; + reference43 = obj35; + questRoot7.QuestSequence = list54; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(1190); QuestRoot questRoot8 = new QuestRoot(); - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span31 = CollectionsMarshal.AsSpan(list63); - span31[0] = "JerryWester"; - span31[1] = "liza"; - span31[2] = "Wigglez"; - questRoot8.Author = list63; - num = 9; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span32 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference49 = ref span32[0]; - QuestSequence obj40 = new QuestSequence + num = 2; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "JerryWester"; + index++; + span[index] = "liza"; + questRoot8.Author = list58; + index = 9; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - obj40.Steps = list65; - reference49 = obj40; - ref QuestSequence reference50 = ref span32[1]; - QuestSequence obj41 = new QuestSequence + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + span3 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); + obj36.Steps = list60; + reference44 = obj36; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1008275u, new Vector3(180.01062f, -2.265522f, -245.50244f), 133) + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008275u, new Vector3(180.01062f, -2.265522f, -245.50244f), 133) { AethernetShortcut = new AethernetShortcut { @@ -69851,294 +82902,299 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - obj41.Steps = list66; - reference50 = obj41; - ref QuestSequence reference51 = ref span32[2]; - QuestSequence obj42 = new QuestSequence + obj37.Steps = list61; + reference45 = obj37; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span33 = CollectionsMarshal.AsSpan(list67); - span33[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list62 = new List(num2); + CollectionsMarshal.SetCount(list62, num2); + span3 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { StopDistance = 7f, TargetTerritoryId = (ushort)152 }; - span33[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.81665f, 10.813553f, 63.75964f), 152); - obj42.Steps = list67; - reference51 = obj42; - ref QuestSequence reference52 = ref span32[3]; - QuestSequence obj43 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.81665f, 10.813553f, 63.75964f), 152); + obj38.Steps = list62; + reference46 = obj38; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span34 = CollectionsMarshal.AsSpan(list68); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.9863f, 9.919454f, 66.29564f), 152); - span34[1] = new QuestStep(EInteractionType.Interact, 1008276u, new Vector3(-542.9313f, 11.20175f, 62.241577f), 152); - obj43.Steps = list68; - reference52 = obj43; - ref QuestSequence reference53 = ref span32[4]; - QuestSequence obj44 = new QuestSequence + num3 = 2; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.9863f, 9.919454f, 66.29564f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008276u, new Vector3(-542.9313f, 11.20175f, 62.241577f), 152); + obj39.Steps = list63; + reference47 = obj39; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - num2 = 19; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span35 = CollectionsMarshal.AsSpan(list69); - span35[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-507.38052f, 8.868391f, 71.95016f), 152) + num2 = 8; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + span3 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + ref QuestStep reference49 = ref span3[num3]; + QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-496.3975f, 7.8566074f, 71.93724f), 152) { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) - { - Mount = false, - Sprint = false - }; - ref QuestStep reference54 = ref span35[2]; - QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) - { - DelaySecondsAtStart = 2f, + StopDistance = 0.5f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 47u; - obj45.KillEnemyDataIds = list70; - reference54 = obj45; - span35[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-450.86685f, 1.4933968f, 83.65083f), 152) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span6 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span6[num4] = new ComplexCombatData { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false + DataId = 47u, + MinimumKillCount = 1u, + IgnoreQuestMarker = true }; - span35[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-419.417f, 0.14398265f, 83.16774f), 152) + obj41.ComplexCombatData = list65; + reference49 = obj41; + num3++; + ref QuestStep reference50 = ref span3[num3]; + QuestStep obj42 = new QuestStep(EInteractionType.Combat, null, new Vector3(-393.63492f, -0.28167063f, 72.2678f), 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 - }; - ref QuestStep reference55 = ref span35[6]; - QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(-378.81943f, 0.9094964f, 66.22969f), 152) - { - DelaySecondsAtStart = 2f, + StopDistance = 0.5f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 2483u; - obj46.KillEnemyDataIds = list71; - reference55 = obj46; - span35[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) + num4 = 1; + List list66 = new List(num4); + CollectionsMarshal.SetCount(list66, num4); + span6 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span6[index2] = new ComplexCombatData { - Mount = false, - Sprint = false + DataId = 2483u, + MinimumKillCount = 3u, + IgnoreQuestMarker = true }; - ref QuestStep reference56 = ref span35[8]; - QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) + obj42.ComplexCombatData = list66; + reference50 = obj42; + num3++; + ref QuestStep reference51 = ref span3[num3]; + QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-359.14633f, 4.4168873f, 63.1877f), 152) { - DelaySecondsAtStart = 2f, + StopDistance = 0.5f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 2484u; - obj47.KillEnemyDataIds = list72; - reference56 = obj47; - span35[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span6 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span6[num4] = new ComplexCombatData { - Mount = false, - Sprint = false + DataId = 2484u, + MinimumKillCount = 1u, + IgnoreQuestMarker = true }; - ref QuestStep reference57 = ref span35[10]; - QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) + obj43.ComplexCombatData = list67; + reference51 = obj43; + num3++; + ref QuestStep reference52 = ref span3[num3]; + QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(-324.51694f, 8.511529f, 69.76721f), 152) { - DelaySecondsAtStart = 2f, + StopDistance = 0.5f, 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) + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span6 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span6[index2] = new ComplexCombatData + { + DataId = 2485u, + MinimumKillCount = 2u, + IgnoreQuestMarker = true + }; + obj44.ComplexCombatData = list68; + reference52 = obj44; + num3++; + span3[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-238.72742f, 7.8999486f, 64.43884f), 152) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span35[12] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-267.51584f, 6.6916447f, 90.286575f), 152) + num3++; + ref QuestStep reference53 = ref span3[num3]; + QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-242.57193f, 11.837363f, 19.533478f), 152) { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-255.84544f, 11.492955f, 36.59282f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) - { - Mount = false, - Sprint = false - }; - ref QuestStep reference58 = ref span35[15]; - QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) - { - DelaySecondsAtStart = 2f, + StopDistance = 0.5f, 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) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span6 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span6[num4] = new ComplexCombatData + { + DataId = 2487u, + MinimumKillCount = 2u, + IgnoreQuestMarker = true + }; + num4++; + span6[num4] = new ComplexCombatData + { + DataId = 2488u, + MinimumKillCount = 1u, + IgnoreQuestMarker = true + }; + obj45.ComplexCombatData = list69; + obj45.CombatDelaySecondsAtStart = 3f; + reference53 = obj45; + num3++; + span3[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-315.8217f, 11.905772f, -34.105675f), 152) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span35[17] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-316.77347f, 12.01387f, -34.666443f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[18] = new QuestStep(EInteractionType.Interact, 2003347u, new Vector3(-318.62366f, 12.25293f, -35.05005f), 152) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2003347u, new Vector3(-318.62366f, 12.25293f, -35.05005f), 152) { StopDistance = 4f }; - obj44.Steps = list69; - reference53 = obj44; - ref QuestSequence reference59 = ref span32[5]; - QuestSequence obj50 = new QuestSequence + obj40.Steps = list64; + reference48 = obj40; + num++; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1008277u, new Vector3(-317.6776f, 12.293127f, -37.30841f), 152) + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008277u, new Vector3(-317.6776f, 12.293127f, -37.30841f), 152) { StopDistance = 4f, DelaySecondsAtStart = 2f }; - obj50.Steps = list75; - reference59 = obj50; - ref QuestSequence reference60 = ref span32[6]; - QuestSequence obj51 = new QuestSequence + obj46.Steps = list70; + reference54 = obj46; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2003046u, new Vector3(-318.62366f, 12.25293f, -35.080566f), 152) + List list71 = new List(num2); + CollectionsMarshal.SetCount(list71, num2); + span3 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2003046u, new Vector3(-318.62366f, 12.25293f, -35.080566f), 152) { StopDistance = 4f, DelaySecondsAtStart = 3f }; - obj51.Steps = list76; - reference60 = obj51; - ref QuestSequence reference61 = ref span32[7]; - QuestSequence obj52 = new QuestSequence + obj47.Steps = list71; + reference55 = obj47; + num++; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { ContentFinderConditionId = 66u } }; - obj52.Steps = list77; - reference61 = obj52; - ref QuestSequence reference62 = ref span32[8]; - QuestSequence obj53 = new QuestSequence + obj48.Steps = list72; + reference56 = obj48; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.69998f, 8.511277f, 279.65753f), 153) + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + span3 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.69998f, 8.511277f, 279.65753f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1007862u, new Vector3(-140.03204f, 8.647825f, 280.8728f), 153); - obj53.Steps = list78; - reference62 = obj53; - questRoot8.QuestSequence = list64; + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007862u, new Vector3(-140.03204f, 8.647825f, 280.8728f), 153); + obj49.Steps = list73; + reference57 = obj49; + questRoot8.QuestSequence = list59; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1191); QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "JerryWester"; - questRoot9.Author = list79; - num = 3; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span38 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference63 = ref span38[0]; - QuestSequence obj54 = new QuestSequence + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "JerryWester"; + questRoot9.Author = list74; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { - Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions { @@ -70148,18 +83204,20 @@ public static class AssemblyQuestLoader } } }; - obj54.Steps = list81; - reference63 = obj54; - ref QuestSequence reference64 = ref span38[1]; - QuestSequence obj55 = new QuestSequence + obj50.Steps = list76; + reference58 = obj50; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span39 = CollectionsMarshal.AsSpan(list82); - span39[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + span3 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -70169,399 +83227,483 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - span39[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); - obj55.Steps = list82; - reference64 = obj55; - ref QuestSequence reference65 = ref span38[2]; - QuestSequence obj56 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj51.Steps = list77; + reference59 = obj51; + num++; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span40 = CollectionsMarshal.AsSpan(list83); - span40[0] = new QuestStep(EInteractionType.UseItem, null, null, 205) + num3 = 5; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 205) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span40[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span40[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span40[4] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj56.Steps = list83; - reference65 = obj56; - questRoot9.QuestSequence = list80; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj52.Steps = list78; + reference60 = obj52; + questRoot9.QuestSequence = list75; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(1192); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; - questRoot10.Author = list84; - num = 9; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span41 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span41[0]; - QuestSequence obj57 = new QuestSequence + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "JerryWester"; + questRoot10.Author = list79; + index = 9; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj57.Steps = list86; - reference66 = obj57; - ref QuestSequence reference67 = ref span41[1]; - QuestSequence obj58 = new QuestSequence + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + span3 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj53.Steps = list81; + reference61 = obj53; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span42 = CollectionsMarshal.AsSpan(list87); - span42[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + num3 = 2; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span42[1] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj58.Steps = list87; - reference67 = obj58; - ref QuestSequence reference68 = ref span41[2]; - QuestSequence obj59 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj54.Steps = list82; + reference62 = obj54; + num++; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span43 = CollectionsMarshal.AsSpan(list88); - span43[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + span3 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span43[1] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-461.71686f, 23.192137f, -369.12787f), 140); - obj59.Steps = list88; - reference68 = obj59; - ref QuestSequence reference69 = ref span41[3]; - QuestSequence obj60 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-461.71686f, 23.192137f, -369.12787f), 140); + obj55.Steps = list83; + reference63 = obj55; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list89)[0]; - QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-470.87872f, 22.698383f, -439.40274f), 140) + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; + QuestStep obj57 = 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 + num4 = 1; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + Span span8 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span8[index2] = 2477u; + obj57.KillEnemyDataIds = list85; + reference65 = obj57; + obj56.Steps = list84; + reference64 = obj56; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list91)[0]; - QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-386.44818f, 24.74541f, -501.20456f), 140) + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + span3 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + ref QuestStep reference67 = ref span3[num3]; + QuestStep obj59 = 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 + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span8 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span8[num4] = 2478u; + obj59.KillEnemyDataIds = list87; + reference67 = obj59; + obj58.Steps = list86; + reference66 = obj58; + num++; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj60 = 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) + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference69 = ref span3[num2]; + QuestStep obj61 = 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 + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span8 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span8[index2] = 2479u; + obj61.KillEnemyDataIds = list89; + reference69 = obj61; + obj60.Steps = list88; + reference68 = obj60; + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list95)[0]; - QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(-327.01913f, 14.785374f, -780.03625f), 140) + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + span3 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + ref QuestStep reference71 = ref span3[num3]; + QuestStep obj63 = 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 + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span8 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span8[num4] = 2480u; + num4++; + span8[num4] = 2481u; + obj63.KillEnemyDataIds = list91; + reference71 = obj63; + obj62.Steps = list90; + reference70 = obj62; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1007751u, new Vector3(-325.185f, 14.7073965f, -784.3595f), 140); - obj68.Steps = list97; - reference77 = obj68; - ref QuestSequence reference78 = ref span41[8]; - QuestSequence obj69 = new QuestSequence + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007751u, new Vector3(-325.185f, 14.7073965f, -784.3595f), 140); + obj64.Steps = list92; + reference72 = obj64; + num++; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 5; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span45 = CollectionsMarshal.AsSpan(list98); - span45[0] = new QuestStep(EInteractionType.UseItem, null, null, 140) + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + span3 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, null, null, 140) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span45[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span45[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span45[4] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj69.Steps = list98; - reference78 = obj69; - questRoot10.QuestSequence = list85; + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj65.Steps = list93; + reference73 = obj65; + questRoot10.QuestSequence = list80; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(1194); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; - questRoot11.Author = list99; - num = 2; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span46 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference79 = ref span46[0]; - QuestSequence obj70 = new QuestSequence + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "liza"; + questRoot11.Author = list94; + index = 2; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj70.Steps = list101; - reference79 = obj70; - ref QuestSequence reference80 = ref span46[1]; - QuestSequence obj71 = new QuestSequence + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj66.Steps = list96; + reference74 = obj66; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + span3 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(1195) }; - obj71.Steps = list102; - reference80 = obj71; - questRoot11.QuestSequence = list100; + obj67.Steps = list97; + reference75 = obj67; + questRoot11.QuestSequence = list95; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(1195); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; - questRoot12.Author = list103; - num = 6; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span47 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference81 = ref span47[0]; - QuestSequence obj72 = new QuestSequence + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "liza"; + questRoot12.Author = list98; + index = 6; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); - obj72.Steps = list105; - reference81 = obj72; - ref QuestSequence reference82 = ref span47[1]; - QuestSequence obj73 = new QuestSequence + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + obj68.Steps = list100; + reference76 = obj68; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span48 = CollectionsMarshal.AsSpan(list106); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.84f, 287.48834f, 175.5028f), 155) + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + span3 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.84f, 287.48834f, 175.5028f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span48[1] = new QuestStep(EInteractionType.Interact, 2003456u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); - obj73.Steps = list106; - reference82 = obj73; - ref QuestSequence reference83 = ref span47[2]; - QuestSequence obj74 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2003456u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); + obj69.Steps = list101; + reference77 = obj69; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 65u } }; - obj74.Steps = list107; - reference83 = obj74; - span47[3] = new QuestSequence + obj70.Steps = list102; + reference78 = obj70; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference84 = ref span47[4]; - QuestSequence obj75 = new QuestSequence + num++; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + span3 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj75.Steps = list108; - reference84 = obj75; - ref QuestSequence reference85 = ref span47[5]; - QuestSequence obj76 = new QuestSequence + obj71.Steps = list103; + reference79 = obj71; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span49 = CollectionsMarshal.AsSpan(list109); - span49[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + num3 = 4; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span49[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span49[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1196) }; - obj76.Steps = list109; - reference85 = obj76; - questRoot12.QuestSequence = list104; + obj72.Steps = list104; + reference80 = obj72; + questRoot12.QuestSequence = list99; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1196); QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; - questRoot13.Author = list110; - num = 7; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span50 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference86 = ref span50[0]; - QuestSequence obj77 = new QuestSequence + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "liza"; + questRoot13.Author = list105; + index = 7; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj77.Steps = list112; - reference86 = obj77; - ref QuestSequence reference87 = ref span50[1]; - QuestSequence obj78 = new QuestSequence + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj73.Steps = list107; + reference81 = obj73; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -70570,75 +83712,90 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj78.Steps = list113; - reference87 = obj78; - ref QuestSequence reference88 = ref span50[2]; - QuestSequence obj79 = new QuestSequence + obj74.Steps = list108; + reference82 = obj74; + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 2 }; num2 = 7; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span51 = CollectionsMarshal.AsSpan(list114); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - span51[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - span51[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - span51[6] = new QuestStep(EInteractionType.Interact, 2003457u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); - obj79.Steps = list114; - reference88 = obj79; - ref QuestSequence reference89 = ref span50[3]; - QuestSequence obj80 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2003457u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); + obj75.Steps = list109; + reference83 = obj75; + num++; + ref QuestSequence reference84 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Duty, null, null, 180) + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions { ContentFinderConditionId = 64u } }; - obj80.Steps = list115; - reference89 = obj80; - span50[4] = new QuestSequence + obj76.Steps = list110; + reference84 = obj76; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference90 = ref span50[5]; - QuestSequence obj81 = new QuestSequence + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + span3 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -70647,231 +83804,274 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj81.Steps = list116; - reference90 = obj81; - ref QuestSequence reference91 = ref span50[6]; - QuestSequence obj82 = new QuestSequence + obj77.Steps = list111; + reference85 = obj77; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span52 = CollectionsMarshal.AsSpan(list117); - span52[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + num3 = 4; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span52[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span52[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1197) }; - obj82.Steps = list117; - reference91 = obj82; - questRoot13.QuestSequence = list111; + obj78.Steps = list112; + reference86 = obj78; + questRoot13.QuestSequence = list106; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1197); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; - questRoot14.Author = list118; - num = 7; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference92 = ref span53[0]; - QuestSequence obj83 = new QuestSequence + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; + questRoot14.Author = list113; + index = 7; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj83.Steps = list120; - reference92 = obj83; - ref QuestSequence reference93 = ref span53[1]; - QuestSequence obj84 = new QuestSequence + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + span3 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj79.Steps = list115; + reference87 = obj79; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span54 = CollectionsMarshal.AsSpan(list121); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + num3 = 2; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span54[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj84.Steps = list121; - reference93 = obj84; - ref QuestSequence reference94 = ref span53[2]; - QuestSequence obj85 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj80.Steps = list116; + reference88 = obj80; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; num2 = 5; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span55 = CollectionsMarshal.AsSpan(list122); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + span3 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) { Fly = true }; - span55[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) { Fly = true }; - span55[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) { Fly = true }; - span55[4] = new QuestStep(EInteractionType.Interact, 2003458u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2003458u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) { StopDistance = 5f, Mount = false, IgnoreDistanceToObject = true }; - obj85.Steps = list122; - reference94 = obj85; - ref QuestSequence reference95 = ref span53[3]; - QuestSequence obj86 = new QuestSequence + obj81.Steps = list117; + reference89 = obj81; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Duty, null, null, 146) + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions { ContentFinderConditionId = 63u } }; - obj86.Steps = list123; - reference95 = obj86; - span53[4] = new QuestSequence + obj82.Steps = list118; + reference90 = obj82; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference96 = ref span53[5]; - QuestSequence obj87 = new QuestSequence + num++; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 5 }; num2 = 2; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span56 = CollectionsMarshal.AsSpan(list124); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + span3 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span56[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj87.Steps = list124; - reference96 = obj87; - ref QuestSequence reference97 = ref span53[6]; - QuestSequence obj88 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj83.Steps = list119; + reference91 = obj83; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span57 = CollectionsMarshal.AsSpan(list125); - span57[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + num3 = 4; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span57[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span57[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span57[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1198) }; - obj88.Steps = list125; - reference97 = obj88; - questRoot14.QuestSequence = list119; + obj84.Steps = list120; + reference92 = obj84; + questRoot14.QuestSequence = list114; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1198); QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; - questRoot15.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span58 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference98 = ref span58[0]; - QuestSequence obj89 = new QuestSequence + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "liza"; + questRoot15.Author = list121; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj89.Steps = list128; - reference98 = obj89; - ref QuestSequence reference99 = ref span58[1]; - QuestSequence obj90 = new QuestSequence + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + span3 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj85.Steps = list123; + reference93 = obj85; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span59 = CollectionsMarshal.AsSpan(list129); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + num3 = 3; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span59[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); - obj90.Steps = list129; - reference99 = obj90; - ref QuestSequence reference100 = ref span58[2]; - QuestSequence obj91 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + obj86.Steps = list124; + reference94 = obj86; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span60 = CollectionsMarshal.AsSpan(list130); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + span3 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156) { Fly = true }; - obj91.Steps = list130; - reference100 = obj91; - questRoot15.QuestSequence = list127; + obj87.Steps = list125; + reference95 = obj87; + questRoot15.QuestSequence = list122; AddQuest(questId15, questRoot15); } @@ -70882,13 +84082,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -70896,7 +84099,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -70909,15 +84114,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -70928,7 +84136,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -70936,24 +84145,30 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1007755u, new Vector3(-34.62274f, 13.599951f, 99.47351f), 131); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007755u, new Vector3(-34.62274f, 13.599951f, 99.47351f), 131); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1007756u, new Vector3(4.501404f, 4.2257967f, 411.58154f), 147) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007756u, new Vector3(4.501404f, 4.2257967f, 411.58154f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -70961,35 +84176,42 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.06186f, 26.915272f, 74.2695f), 147) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.06186f, 26.915272f, 74.2695f), 147) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) + index2 = 3; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.76767f, 25f, 43.66056f), 147) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.76767f, 25f, 43.66056f), 147) { Fly = true }; - span3[2] = new QuestStep(EInteractionType.Interact, 2002892u, new Vector3(259.38806f, 24.979004f, 44.174805f), 147); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002892u, new Vector3(259.38806f, 24.979004f, 44.174805f), 147); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -70997,29 +84219,34 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) { Fly = true }; - span4[1] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[7]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1201) }; @@ -71032,13 +84259,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list11; - num = 6; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span6 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span6[0]; + index = 6; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -71046,7 +84276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -71059,15 +84291,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span6[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -71078,7 +84313,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span6[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -71086,30 +84322,35 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.32037f, 0.38625574f, 155.53741f), 153) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.32037f, 0.38625574f, 155.53741f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - span7[1] = new QuestStep(EInteractionType.Interact, 2002893u, new Vector3(467.39905f, 2.2124634f, 154.0398f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002893u, new Vector3(467.39905f, 2.2124634f, 154.0398f), 153); obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span6[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.03073f, -10.417721f, -70.72666f), 154) + index2 = 3; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.03073f, -10.417721f, -70.72666f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - ref QuestStep reference13 = ref span8[1]; + num2++; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(-153.8042f, -9.645816f, -74.48335f), 154) { StopDistance = 0.5f, @@ -71118,16 +84359,21 @@ public static class AssemblyQuestLoader int num3 = 3; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = 2448u; - span9[1] = 2449u; - span9[2] = 2450u; + Span span4 = CollectionsMarshal.AsSpan(list17); + int num4 = 0; + span4[num4] = 2448u; + num4++; + span4[num4] = 2449u; + num4++; + span4[num4] = 2450u; obj13.KillEnemyDataIds = list17; reference13 = obj13; - span8[2] = new QuestStep(EInteractionType.Interact, 2002894u, new Vector3(-152.84961f, -8.46875f, -78.50769f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002894u, new Vector3(-152.84961f, -8.46875f, -78.50769f), 154); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference14 = ref span6[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 4 @@ -71135,29 +84381,34 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.507086f, 0.7410059f, -94.81342f), 154) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.507086f, 0.7410059f, -94.81342f), 154) { Fly = true }; - span10[1] = new QuestStep(EInteractionType.Interact, 2002896u, new Vector3(28.824219f, 1.5715942f, -96.787964f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002896u, new Vector3(28.824219f, 1.5715942f, -96.787964f), 154); obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span6[5]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span11 = CollectionsMarshal.AsSpan(list19); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1202) }; @@ -71170,13 +84421,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list20; - num = 4; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span12 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span12[0]; + index = 4; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -71184,7 +84438,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -71197,23 +84453,27 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span12[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(573.29987f, -1.5839931f, -261.4353f), 156) + index2 = 2; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(573.29987f, -1.5839931f, -261.4353f), 156) { Fly = true }; - span13[1] = new QuestStep(EInteractionType.Interact, 2002897u, new Vector3(573.17444f, -1.7243042f, -262.77563f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002897u, new Vector3(573.17444f, -1.7243042f, -262.77563f), 156); obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span12[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -71221,7 +84481,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -71231,21 +84493,24 @@ public static class AssemblyQuestLoader }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span12[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { NextQuestId = new QuestId(1203) }; @@ -71258,13 +84523,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list26; - num = 2; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span15 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span15[0]; + index = 2; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -71272,7 +84540,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -71285,15 +84555,18 @@ public static class AssemblyQuestLoader }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span15[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1474) }; @@ -71306,13 +84579,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "FalconTaterz"; questRoot5.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span16 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span16[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -71320,7 +84596,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list32)[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -71332,10 +84610,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB101_01204_Q1_000_1") @@ -71344,22 +84624,26 @@ public static class AssemblyQuestLoader reference23 = obj23; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference24 = ref span16[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span16[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -71367,7 +84651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list35)[0]; + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + ref QuestStep reference26 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-273.9414f, 9.756445f, 222.65837f), 146) { Fly = true, @@ -71377,29 +84663,35 @@ public static class AssemblyQuestLoader num3 = 2; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = 2390u; - span17[1] = 2391u; + span4 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span4[num4] = 2390u; + num4++; + span4[num4] = 2391u; obj26.KillEnemyDataIds = list36; reference26 = obj26; obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference27 = ref span16[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span16[4]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -71407,16 +84699,20 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list38)[0]; + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1005710u, new Vector3(4.4403076f, 7.2767544f, 885.55725f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = new DialogueChoice + num4 = 1; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + span5 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB101_01204_Q2_000_1"), @@ -71434,24 +84730,30 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "FalconTaterz"; questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span18 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span18[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005711u, new Vector3(4.837097f, 7.4445505f, 884.70276f), 146); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005711u, new Vector3(4.837097f, 7.4445505f, 884.70276f), 146); obj30.Steps = list42; reference30 = obj30; - ref QuestSequence reference31 = ref span18[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -71459,8 +84761,9 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference32 = ref span19[0]; + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference32 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1004333u, new Vector3(-101.854004f, 4.0131226f, -98.95477f), 130) { StopDistance = 7f, @@ -71469,54 +84772,77 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list44); + 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); obj32.CompletionQuestVariablesFlags = list44; reference32 = obj32; - ref QuestStep reference33 = ref span19[1]; + index2++; + ref QuestStep reference33 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004331u, new Vector3(-20.096191f, 4.9999676f, -133.22656f), 130); - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span21 = CollectionsMarshal.AsSpan(list45); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + span6 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list45; reference33 = questStep; - ref QuestStep reference34 = ref span19[2]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1001313u, new Vector3(16.372864f, 7.9999795f, -106.21808f), 130); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span22 = CollectionsMarshal.AsSpan(list46); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list46); + 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)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list46; reference34 = questStep2; obj31.Steps = list43; reference31 = obj31; - ref QuestSequence reference35 = ref span18[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { NextQuestId = new QuestId(1206) }; @@ -71529,13 +84855,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "FalconTaterz"; questRoot7.Author = list48; - num = 7; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span23 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span23[0]; + index = 7; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -71543,7 +84872,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -71556,15 +84887,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference36 = obj34; - ref QuestSequence reference37 = ref span23[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131) { AethernetShortcut = new AethernetShortcut { @@ -71574,7 +84908,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list51; reference37 = obj35; - ref QuestSequence reference38 = ref span23[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -71582,7 +84917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1005713u, new Vector3(-72.98395f, 3.9999995f, -113.02362f), 130) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005713u, new Vector3(-72.98395f, 3.9999995f, -113.02362f), 130) { AethernetShortcut = new AethernetShortcut { @@ -71592,20 +84929,24 @@ public static class AssemblyQuestLoader }; obj36.Steps = list52; reference38 = obj36; - ref QuestSequence reference39 = ref span23[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.13564f, 11.999999f, -5.086131f), 130); - span24[1] = new QuestStep(EInteractionType.Interact, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130); + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.13564f, 11.999999f, -5.086131f), 130); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130); obj37.Steps = list53; reference39 = obj37; - ref QuestSequence reference40 = ref span23[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 4 @@ -71613,24 +84954,30 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1005717u, new Vector3(-147.17328f, 12f, -3.6469727f), 130); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005717u, new Vector3(-147.17328f, 12f, -3.6469727f), 130); obj38.Steps = list54; reference40 = obj38; - ref QuestSequence reference41 = ref span23[5]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.UseItem, 2003001u, new Vector3(-144.79291f, 11.9782715f, -3.4943848f), 130) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003001u, new Vector3(-144.79291f, 11.9782715f, -3.4943848f), 130) { ItemId = 2001126u }; obj39.Steps = list55; reference41 = obj39; - ref QuestSequence reference42 = ref span23[6]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -71638,7 +84985,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130) { StopDistance = 7f, NextQuestId = new QuestId(1207) @@ -71652,21 +85001,26 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "FalconTaterz"; questRoot8.Author = list57; - num = 13; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span25 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference43 = ref span25[0]; + index = 13; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005721u, new Vector3(-144.06049f, 12f, -5.5390625f), 130) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005721u, new Vector3(-144.06049f, 12f, -5.5390625f), 130) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -71680,7 +85034,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list59; reference43 = obj41; - ref QuestSequence reference44 = ref span25[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -71688,72 +85043,97 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1005722u, new Vector3(-550.4387f, -5.5688405f, -176.71478f), 145) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005722u, new Vector3(-550.4387f, -5.5688405f, -176.71478f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj42.Steps = list60; reference44 = obj42; - ref QuestSequence reference45 = ref span25[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span26 = CollectionsMarshal.AsSpan(list61); - ref QuestStep reference46 = ref span26[0]; + index2 = 4; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-567.424f, 5.893569f, -221.67596f), 145) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span27 = CollectionsMarshal.AsSpan(list62); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span6 = CollectionsMarshal.AsSpan(list62); + 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); skipStepConditions.CompletionQuestVariablesFlags = list62; skipConditions.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions; reference46 = obj44; - ref QuestStep reference47 = ref span26[1]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004042u, new Vector3(-568.4138f, 5.893569f, -221.27112f), 145); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span28 = CollectionsMarshal.AsSpan(list63); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list63; reference47 = questStep3; - ref QuestStep reference48 = ref span26[2]; + num2++; + ref QuestStep reference48 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003940u, new Vector3(-540.94763f, 4.134529f, -241.07733f), 145); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span29 = CollectionsMarshal.AsSpan(list64); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span6 = CollectionsMarshal.AsSpan(list64); + 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); questStep4.CompletionQuestVariablesFlags = list64; reference48 = questStep4; - ref QuestStep reference49 = ref span26[3]; + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1003939u, new Vector3(-540.09314f, 4.137387f, -240.98578f), 145) { StopDistance = 4f @@ -71761,18 +85141,25 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span30 = CollectionsMarshal.AsSpan(list65); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list65); + 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); obj45.CompletionQuestVariablesFlags = list65; reference49 = obj45; obj43.Steps = list61; reference45 = obj43; - ref QuestSequence reference50 = ref span25[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -71780,28 +85167,34 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1005724u, new Vector3(-490.44025f, 2.8072534f, -274.34198f), 145) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005724u, new Vector3(-490.44025f, 2.8072534f, -274.34198f), 145) { Fly = true }; obj46.Steps = list66; reference50 = obj46; - ref QuestSequence reference51 = ref span25[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj47.Steps = list67; reference51 = obj47; - ref QuestSequence reference52 = ref span25[5]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -71809,28 +85202,34 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.UseItem, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, ItemId = 2001150u }; obj48.Steps = list68; reference52 = obj48; - ref QuestSequence reference53 = ref span25[6]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj49.Steps = list69; reference53 = obj49; - ref QuestSequence reference54 = ref span25[7]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 7 @@ -71838,27 +85237,33 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj50.Steps = list70; reference54 = obj50; - ref QuestSequence reference55 = ref span25[8]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj51.Steps = list71; reference55 = obj51; - ref QuestSequence reference56 = ref span25[9]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 9 @@ -71866,66 +85271,91 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj52.Steps = list72; reference56 = obj52; - ref QuestSequence reference57 = ref span25[10]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 10 }; - num2 = 3; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span31 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference58 = ref span31[0]; + index2 = 3; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference58 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2003006u, new Vector3(-208.5451f, -37.9187f, 151.87305f), 145); - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span32 = CollectionsMarshal.AsSpan(list74); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + span6 = CollectionsMarshal.AsSpan(list74); + 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); questStep5.CompletionQuestVariablesFlags = list74; reference58 = questStep5; - ref QuestStep reference59 = ref span31[1]; + num2++; + ref QuestStep reference59 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2003005u, new Vector3(-220.87439f, -37.857666f, 166.0028f), 145); num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span33 = CollectionsMarshal.AsSpan(list75); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list75); + 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)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list75; reference59 = questStep6; - ref QuestStep reference60 = ref span31[2]; + num2++; + ref QuestStep reference60 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2003004u, new Vector3(-206.46985f, -37.644104f, 187.36548f), 145); - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span34 = CollectionsMarshal.AsSpan(list76); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + span6 = CollectionsMarshal.AsSpan(list76); + 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); questStep7.CompletionQuestVariablesFlags = list76; reference60 = questStep7; obj53.Steps = list73; reference57 = obj53; - ref QuestSequence reference61 = ref span25[11]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 11 @@ -71933,23 +85363,28 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1005730u, new Vector3(-222.49182f, -37.896374f, 159.3805f), 145); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005730u, new Vector3(-222.49182f, -37.896374f, 159.3805f), 145); obj54.Steps = list77; reference61 = obj54; - ref QuestSequence reference62 = ref span25[12]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span35 = CollectionsMarshal.AsSpan(list78); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-535.8004f, 5.3931885f, -252.96324f), 145) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-535.8004f, 5.3931885f, -252.96324f), 145) { Fly = true }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1005731u, new Vector3(-526.8788f, 5.404997f, -246.50952f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005731u, new Vector3(-526.8788f, 5.404997f, -246.50952f), 145) { NextQuestId = new QuestId(1315) }; @@ -71962,13 +85397,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot9.Author = list79; - num = 5; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span36 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference63 = ref span36[0]; + index = 5; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -71976,7 +85414,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list81)[0]; + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -71994,25 +85434,31 @@ public static class AssemblyQuestLoader num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 128; + Span span7 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span7[num4] = 128; obj58.InTerritory = list82; skipConditions2.AetheryteShortcutIf = obj58; obj57.SkipConditions = skipConditions2; reference64 = obj57; obj56.Steps = list81; reference63 = obj56; - ref QuestSequence reference65 = ref span36[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1005516u, new Vector3(-46.0365f, 40f, 63.767456f), 128); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005516u, new Vector3(-46.0365f, 40f, 63.767456f), 128); obj59.Steps = list83; reference65 = obj59; - ref QuestSequence reference66 = ref span36[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -72020,36 +85466,47 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) { Emote = EEmote.Doubt }; obj60.Steps = list84; reference66 = obj60; - ref QuestSequence reference67 = ref span36[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span37 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference68 = ref span37[0]; + index2 = 4; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span38 = CollectionsMarshal.AsSpan(list86); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + span6 = CollectionsMarshal.AsSpan(list86); + 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); questStep8.CompletionQuestVariablesFlags = list86; reference68 = questStep8; - ref QuestStep reference69 = ref span37[1]; + num2++; + ref QuestStep reference69 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -72057,16 +85514,23 @@ public static class AssemblyQuestLoader num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span39 = CollectionsMarshal.AsSpan(list87); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list87); + 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)4, 0, EQuestWorkMode.Bitwise); obj62.CompletionQuestVariablesFlags = list87; reference69 = obj62; - ref QuestStep reference70 = ref span37[2]; + num2++; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj63 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72078,21 +85542,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span40 = CollectionsMarshal.AsSpan(list88); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span6 = CollectionsMarshal.AsSpan(list88); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list88; skipConditions3.StepIf = skipStepConditions2; obj63.SkipConditions = skipConditions3; reference70 = obj63; - ref QuestStep reference71 = ref span37[3]; + num2++; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) { StopDistance = 7f @@ -72100,18 +85571,25 @@ public static class AssemblyQuestLoader num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span41 = CollectionsMarshal.AsSpan(list89); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list89); + 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); obj64.CompletionQuestVariablesFlags = list89; reference71 = obj64; obj61.Steps = list85; reference67 = obj61; - ref QuestSequence reference72 = ref span36[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -72119,7 +85597,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -72137,24 +85617,30 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; questRoot10.Author = list91; - num = 6; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span42 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference73 = ref span42[0]; + index = 6; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005526u, new Vector3(-17.624268f, 70.450066f, -17.71582f), 137); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005526u, new Vector3(-17.624268f, 70.450066f, -17.71582f), 137); obj66.Steps = list93; reference73 = obj66; - ref QuestSequence reference74 = ref span42[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -72162,39 +85648,45 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span43 = CollectionsMarshal.AsSpan(list94); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.69795f, 46.029457f, 178.39331f), 137) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.69795f, 46.029457f, 178.39331f), 137) { StopDistance = 0.5f, Fly = true }; - span43[1] = new QuestStep(EInteractionType.Interact, 1005527u, new Vector3(-68.2536f, 46.91121f, 178.2406f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005527u, new Vector3(-68.2536f, 46.91121f, 178.2406f), 137) { StopDistance = 5f }; obj67.Steps = list94; reference74 = obj67; - ref QuestSequence reference75 = ref span42[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - Span span44 = CollectionsMarshal.AsSpan(list95); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.93634f, 80.86577f, -124.46211f), 137) + index2 = 2; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.93634f, 80.86577f, -124.46211f), 137) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.Interact, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139) { StopDistance = 0.5f, Fly = true }; obj68.Steps = list95; reference75 = obj68; - ref QuestSequence reference76 = ref span42[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 @@ -72202,33 +85694,41 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list96)[0]; + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference77 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, 2003139u, new Vector3(600.5187f, -2.5177612f, 173.11353f), 139) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span45 = CollectionsMarshal.AsSpan(list97); - span45[0] = 2437u; - span45[1] = 2438u; + num4 = 2; + List list97 = new List(num4); + CollectionsMarshal.SetCount(list97, num4); + span4 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span4[num3] = 2437u; + num3++; + span4[num3] = 2438u; obj70.KillEnemyDataIds = list97; reference77 = obj70; obj69.Steps = list96; reference76 = obj69; - ref QuestSequence reference78 = ref span42[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2003007u, new Vector3(600.5187f, -2.3651733f, 173.11353f), 139); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003007u, new Vector3(600.5187f, -2.3651733f, 173.11353f), 139); obj71.Steps = list98; reference78 = obj71; - ref QuestSequence reference79 = ref span42[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -72236,7 +85736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139); obj72.Steps = list99; reference79 = obj72; questRoot10.QuestSequence = list92; @@ -72246,22 +85748,26 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "liza"; questRoot11.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span46 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference80 = ref span46[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span47 = CollectionsMarshal.AsSpan(list102); - span47[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -72282,7 +85788,8 @@ public static class AssemblyQuestLoader } } }; - span47[1] = new QuestStep(EInteractionType.AcceptQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -72296,7 +85803,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list102; reference80 = obj73; - ref QuestSequence reference81 = ref span46[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -72304,21 +85812,26 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1005530u, new Vector3(186.57202f, -32.23455f, 327.8706f), 148) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005530u, new Vector3(186.57202f, -32.23455f, 327.8706f), 148) { Fly = true }; obj74.Steps = list103; reference81 = obj74; - ref QuestSequence reference82 = ref span46[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list104)[0]; + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1005656u, new Vector3(200.3357f, -32.043697f, 323.7506f), 148) { TargetTerritoryId = (ushort)340 @@ -72326,7 +85839,9 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72337,7 +85852,8 @@ public static class AssemblyQuestLoader reference83 = obj76; obj75.Steps = list104; reference82 = obj75; - ref QuestSequence reference84 = ref span46[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -72345,18 +85861,23 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1005879u, new Vector3(0.8086548f, 2.8884888f, 181.99426f), 340); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005879u, new Vector3(0.8086548f, 2.8884888f, 181.99426f), 340); obj77.Steps = list106; reference84 = obj77; - ref QuestSequence reference85 = ref span46[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -72369,13 +85890,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot12.Author = list108; - num = 5; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span48 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference86 = ref span48[0]; + index = 5; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -72383,7 +85907,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list110)[0]; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj80 = new QuestStep(EInteractionType.AcceptQuest, 1002001u, new Vector3(228.47327f, 52.038116f, 133.1654f), 140) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72398,31 +85924,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 140; + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + span7 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span7[num3] = 140; obj81.InTerritory = list111; skipConditions4.AetheryteShortcutIf = obj81; obj80.SkipConditions = skipConditions4; reference87 = obj80; obj79.Steps = list110; reference86 = obj79; - ref QuestSequence reference88 = ref span48[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1005531u, new Vector3(320.88184f, 67.27533f, 232.47119f), 140) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005531u, new Vector3(320.88184f, 67.27533f, 232.47119f), 140) { Fly = true }; obj82.Steps = list112; reference88 = obj82; - ref QuestSequence reference89 = ref span48[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -72430,7 +85962,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list113)[0]; + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference90 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.94064f, 67.1549f, 237f), 140) { TargetTerritoryId = (ushort)341 @@ -72438,7 +85972,9 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72449,18 +85985,22 @@ public static class AssemblyQuestLoader reference90 = obj84; obj83.Steps = list113; reference89 = obj83; - ref QuestSequence reference91 = ref span48[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1005880u, new Vector3(5.416931f, -11.076667f, -187.94543f), 341); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005880u, new Vector3(5.416931f, -11.076667f, -187.94543f), 341); obj85.Steps = list115; reference91 = obj85; - ref QuestSequence reference92 = ref span48[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -72468,25 +86008,30 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span49 = CollectionsMarshal.AsSpan(list116); - ref QuestStep reference93 = ref span49[0]; + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-12.7114315f, -11.076661f, -199.92712f), 341) { TargetTerritoryId = (ushort)140 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 341; + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + span7 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span7[num3] = 341; skipStepConditions3.NotInTerritory = list117; skipConditions5.StepIf = skipStepConditions3; obj87.SkipConditions = skipConditions5; num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list118); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72495,7 +86040,8 @@ public static class AssemblyQuestLoader }; obj87.DialogueChoices = list118; reference93 = obj87; - ref QuestStep reference94 = ref span49[1]; + index2++; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj88 = new QuestStep(EInteractionType.CompleteQuest, 1002001u, new Vector3(228.47327f, 52.038116f, 133.1654f), 140) { DelaySecondsAtStart = 3f, @@ -72512,10 +86058,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 140; + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + span7 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span7[num3] = 140; obj89.InTerritory = list119; skipConditions6.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions6; @@ -72529,21 +86077,26 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; questRoot13.Author = list120; - num = 5; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span50 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference95 = ref span50[0]; + index = 5; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list122)[0]; + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; QuestStep obj91 = new QuestStep(EInteractionType.AcceptQuest, 1002579u, new Vector3(508.01855f, 79.171745f, -61.96692f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -72561,14 +86114,17 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 135; + span7 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span7[num4] = 135; obj92.InTerritory = list123; skipConditions7.AetheryteShortcutIf = obj92; obj91.SkipConditions = skipConditions7; reference96 = obj91; obj90.Steps = list122; reference95 = obj90; - ref QuestSequence reference97 = ref span50[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -72576,29 +86132,36 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1005529u, new Vector3(593.225f, 61.734455f, -113.96973f), 135) + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005529u, new Vector3(593.225f, 61.734455f, -113.96973f), 135) { Fly = true }; obj93.Steps = list124; reference97 = obj93; - ref QuestSequence reference98 = ref span50[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list125)[0]; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.26843f, 61.502148f, -105f), 135) { TargetTerritoryId = (ushort)339 }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new DialogueChoice + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + span5 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72609,7 +86172,8 @@ public static class AssemblyQuestLoader reference99 = obj95; obj94.Steps = list125; reference98 = obj94; - ref QuestSequence reference100 = ref span50[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 3 @@ -72617,19 +86181,23 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1005881u, new Vector3(-18.631348f, 49.025185f, -113.42035f), 339); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005881u, new Vector3(-18.631348f, 49.025185f, -113.42035f), 339); obj96.Steps = list127; reference100 = obj96; - ref QuestSequence reference101 = ref span50[4]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span51 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference102 = ref span51[0]; + index2 = 3; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj98 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.527806f, 50.23951f, -129.5499f), 339) { DisableNavmesh = true @@ -72639,12 +86207,15 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 339; + span7 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span7[num4] = 339; skipStepConditions4.NotInTerritory = list129; skipConditions8.StepIf = skipStepConditions4; obj98.SkipConditions = skipConditions8; reference102 = obj98; - ref QuestStep reference103 = ref span51[1]; + num2++; + ref QuestStep reference103 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.739164f, 48.345356f, -171f), 339) { TargetTerritoryId = (ushort)135, @@ -72652,17 +86223,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = 339; + num4 = 1; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + span7 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span7[num3] = 339; skipStepConditions5.NotInTerritory = list130; skipConditions9.StepIf = skipStepConditions5; obj99.SkipConditions = skipConditions9; num3 = 1; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72671,7 +86246,8 @@ public static class AssemblyQuestLoader }; obj99.DialogueChoices = list131; reference103 = obj99; - ref QuestStep reference104 = ref span51[2]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.CompleteQuest, 1002579u, new Vector3(508.01855f, 79.171745f, -61.96692f), 135) { Fly = true, @@ -72687,10 +86263,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 135; + num4 = 1; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + span7 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span7[num3] = 135; obj101.InTerritory = list132; skipConditions10.AetheryteShortcutIf = obj101; obj100.SkipConditions = skipConditions10; @@ -72704,13 +86282,16 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "liza"; questRoot14.Author = list133; - num = 4; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span52 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference105 = ref span52[0]; + index = 4; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -72718,24 +86299,30 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj102.Steps = list135; reference105 = obj102; - ref QuestSequence reference106 = ref span52[1]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj103.Steps = list136; reference106 = obj103; - ref QuestSequence reference107 = ref span52[2]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -72743,8 +86330,9 @@ public static class AssemblyQuestLoader num2 = 3; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span53 = CollectionsMarshal.AsSpan(list137); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.9585f, 43.717075f, -345.03116f), 146) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.9585f, 43.717075f, -345.03116f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -72755,27 +86343,32 @@ public static class AssemblyQuestLoader } } }; - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.463745f, 10.278164f, -461.99072f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.463745f, 10.278164f, -461.99072f), 146) { Fly = true }; - span53[2] = new QuestStep(EInteractionType.Interact, 2002919u, new Vector3(90.958984f, 9.994568f, -460.41046f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002919u, new Vector3(90.958984f, 9.994568f, -460.41046f), 146); obj104.Steps = list137; reference107 = obj104; - ref QuestSequence reference108 = ref span52[3]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span54 = CollectionsMarshal.AsSpan(list138); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) { NextQuestId = new QuestId(1218) }; @@ -72788,13 +86381,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot15.Author = list139; - num = 5; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span55 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference109 = ref span55[0]; + index = 5; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -72802,20 +86398,25 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); obj106.Steps = list141; reference109 = obj106; - ref QuestSequence reference110 = ref span55[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span56 = CollectionsMarshal.AsSpan(list142); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146); - ref QuestStep reference111 = ref span56[1]; + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146); + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2002931u, new Vector3(-268.54352f, 4.7455444f, -77.16492f), 146) { StopDistance = 0.5f, @@ -72825,14 +86426,17 @@ public static class AssemblyQuestLoader num3 = 2; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span57 = CollectionsMarshal.AsSpan(list143); - span57[0] = 2458u; - span57[1] = 2459u; + span4 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span4[num4] = 2458u; + num4++; + span4[num4] = 2459u; obj108.KillEnemyDataIds = list143; reference111 = obj108; obj107.Steps = list142; reference110 = obj107; - ref QuestSequence reference112 = ref span55[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -72840,24 +86444,30 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1005579u, new Vector3(-262.3789f, 4.4491196f, -75.791565f), 146); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005579u, new Vector3(-262.3789f, 4.4491196f, -75.791565f), 146); obj109.Steps = list144; reference112 = obj109; - ref QuestSequence reference113 = ref span55[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) { Fly = true }; obj110.Steps = list145; reference113 = obj110; - ref QuestSequence reference114 = ref span55[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -72865,12 +86475,16 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list146)[0]; + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference115 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); - num3 = 1; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = new DialogueChoice + num4 = 1; + List list147 = new List(num4); + CollectionsMarshal.SetCount(list147, num4); + span5 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANAMA002_01218_SYSYTEM_Q1_000_1"), @@ -72887,24 +86501,30 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list148; - num = 9; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span58 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference116 = ref span58[0]; + index = 9; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); obj112.Steps = list150; reference116 = obj112; - ref QuestSequence reference117 = ref span58[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -72912,36 +86532,43 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1005581u, new Vector3(-55.985413f, -1.6554508f, -47.56244f), 146) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005581u, new Vector3(-55.985413f, -1.6554508f, -47.56244f), 146) { Fly = true }; obj113.Steps = list151; reference117 = obj113; - ref QuestSequence reference118 = ref span58[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span59 = CollectionsMarshal.AsSpan(list152); - span59[0] = new QuestStep(EInteractionType.Action, 2002949u, new Vector3(-70.17627f, 11.36792f, 97.0625f), 146) + index2 = 3; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2002949u, new Vector3(-70.17627f, 11.36792f, 97.0625f), 146) { Action = EAction.FieryBreath }; - span59[1] = new QuestStep(EInteractionType.Action, 2002956u, new Vector3(-199.96954f, 5.661072f, 101.823364f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2002956u, new Vector3(-199.96954f, 5.661072f, 101.823364f), 146) { Action = EAction.FieryBreath }; - span59[2] = new QuestStep(EInteractionType.Action, 2002950u, new Vector3(-118.0896f, 27.695068f, 126.97034f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2002950u, new Vector3(-118.0896f, 27.695068f, 126.97034f), 146) { Action = EAction.FieryBreath }; obj114.Steps = list152; reference118 = obj114; - ref QuestSequence reference119 = ref span58[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -72949,21 +86576,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1005585u, new Vector3(-114.64105f, 7.539109f, 308.82727f), 146); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005585u, new Vector3(-114.64105f, 7.539109f, 308.82727f), 146); obj115.Steps = list153; reference119 = obj115; - ref QuestSequence reference120 = ref span58[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1005583u, new Vector3(-114.27484f, 7.6587763f, 310.01746f), 146); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005583u, new Vector3(-114.27484f, 7.6587763f, 310.01746f), 146); obj116.Steps = list154; reference120 = obj116; - ref QuestSequence reference121 = ref span58[5]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 @@ -72971,41 +86604,50 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1005584u, new Vector3(-261.55493f, 7.084492f, 412.28345f), 146) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005584u, new Vector3(-261.55493f, 7.084492f, 412.28345f), 146) { Fly = true }; obj117.Steps = list155; reference121 = obj117; - ref QuestSequence reference122 = ref span58[6]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - Span span60 = CollectionsMarshal.AsSpan(list156); - span60[0] = new QuestStep(EInteractionType.Interact, 1008284u, new Vector3(-306.44696f, 6.321288f, 392.5078f), 146) + index2 = 5; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008284u, new Vector3(-306.44696f, 6.321288f, 392.5078f), 146) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-365.44217f, 6.691126f, 395.09555f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-365.44217f, 6.691126f, 395.09555f), 146) { Fly = true }; - span60[2] = new QuestStep(EInteractionType.Interact, 1008287u, new Vector3(-366.10974f, 6.9095497f, 394.64404f), 146); - span60[3] = new QuestStep(EInteractionType.Interact, 1008285u, new Vector3(-319.50867f, 8.2855835f, 428.18335f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008287u, new Vector3(-366.10974f, 6.9095497f, 394.64404f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008285u, new Vector3(-319.50867f, 8.2855835f, 428.18335f), 146) { Fly = true }; - span60[4] = new QuestStep(EInteractionType.Interact, 1008286u, new Vector3(-330.5562f, 8.096848f, 480.0641f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008286u, new Vector3(-330.5562f, 8.096848f, 480.0641f), 146) { Fly = true }; obj118.Steps = list156; reference122 = obj118; - ref QuestSequence reference123 = ref span58[7]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 7 @@ -73013,26 +86655,31 @@ public static class AssemblyQuestLoader num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span61 = CollectionsMarshal.AsSpan(list157); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.56685f, 23.290625f, -334.22568f), 146) + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.56685f, 23.290625f, -334.22568f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span61[1] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) { Fly = true }; obj119.Steps = list157; reference123 = obj119; - ref QuestSequence reference124 = ref span58[8]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) { Fly = true }; @@ -73045,13 +86692,16 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list159; - num = 3; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span62 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference125 = ref span62[0]; + index = 3; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + span2 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -73059,19 +86709,23 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj121.Steps = list161; reference125 = obj121; - ref QuestSequence reference126 = ref span62[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span63 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference127 = ref span63[0]; + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference127 = ref span3[num2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(-84.12953f, -14.744684f, -148.0814f), 146) { Fly = true, @@ -73080,23 +86734,28 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new ComplexCombatData + Span span8 = CollectionsMarshal.AsSpan(list163); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 134u, MinimumKillCount = 2u }; obj123.ComplexCombatData = list163; reference127 = obj123; - ref QuestStep reference128 = ref span63[1]; + num2++; + ref QuestStep reference128 = ref span3[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, null, new Vector3(-253.56975f, 6.8785334f, 162.0949f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new ComplexCombatData + num4 = 1; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + span8 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 358u, MinimumKillCount = 1u @@ -73105,7 +86764,8 @@ public static class AssemblyQuestLoader reference128 = obj124; obj122.Steps = list162; reference126 = obj122; - ref QuestSequence reference129 = ref span62[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -73113,7 +86773,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73126,24 +86788,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list166; - num = 3; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span64 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference130 = ref span64[0]; + index = 3; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj126.Steps = list168; reference130 = obj126; - ref QuestSequence reference131 = ref span64[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -73151,7 +86819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list169)[0]; + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + ref QuestStep reference132 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, null, new Vector3(38.26816f, 2.6207216f, -275.37003f), 146) { Fly = true, @@ -73160,13 +86830,15 @@ public static class AssemblyQuestLoader num3 = 2; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span65 = CollectionsMarshal.AsSpan(list170); - span65[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list170); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 742u, MinimumKillCount = 2u }; - span65[1] = new ComplexCombatData + num4++; + span8[num4] = new ComplexCombatData { DataId = 739u, MinimumKillCount = 2u @@ -73175,15 +86847,18 @@ public static class AssemblyQuestLoader reference132 = obj128; obj127.Steps = list169; reference131 = obj127; - ref QuestSequence reference133 = ref span64[2]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73196,13 +86871,16 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list172; - num = 3; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span66 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference134 = ref span66[0]; + index = 3; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -73210,44 +86888,57 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj130.Steps = list174; reference134 = obj130; - ref QuestSequence reference135 = ref span66[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span67 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference136 = ref span67[0]; + index2 = 5; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference136 = ref span3[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2002979u, new Vector3(-180.68213f, 6.301941f, -136.21735f), 146) { Fly = true, Land = true }; - num3 = 6; - List> list176 = new List>(num3); - CollectionsMarshal.SetCount(list176, num3); - Span> span68 = CollectionsMarshal.AsSpan(list176); - span68[0] = null; - ref List reference137 = ref span68[1]; - int num4 = 2; - List list177 = new List(num4); - CollectionsMarshal.SetCount(list177, num4); - Span span69 = CollectionsMarshal.AsSpan(list177); - span69[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span69[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list176 = new List>(num4); + CollectionsMarshal.SetCount(list176, num4); + Span> span9 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span9[num3] = null; + num3++; + ref List reference137 = ref span9[num3]; + int num5 = 2; + List list177 = new List(num5); + CollectionsMarshal.SetCount(list177, num5); + span6 = CollectionsMarshal.AsSpan(list177); + int num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference137 = list177; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj132.RequiredQuestVariables = list176; reference136 = obj132; - ref QuestStep reference138 = ref span67[1]; + num2++; + ref QuestStep reference138 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2002981u, new Vector3(-30.655396f, 8.651855f, -87.02222f), 146) { Fly = true, @@ -73256,48 +86947,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list178 = new List>(num3); CollectionsMarshal.SetCount(list178, num3); - Span> span70 = CollectionsMarshal.AsSpan(list178); - span70[0] = null; - ref List reference139 = ref span70[1]; - num4 = 2; - List list179 = new List(num4); - CollectionsMarshal.SetCount(list179, num4); - Span span71 = CollectionsMarshal.AsSpan(list179); - span71[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span71[1] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span9[num4] = null; + num4++; + ref List reference139 = ref span9[num4]; + num6 = 2; + List list179 = new List(num6); + CollectionsMarshal.SetCount(list179, num6); + span6 = CollectionsMarshal.AsSpan(list179); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference139 = list179; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj133.RequiredQuestVariables = list178; reference138 = obj133; - ref QuestStep reference140 = ref span67[2]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2002982u, new Vector3(-116.44165f, -0.3204956f, -34.40918f), 146) { Fly = true, Land = true }; - num3 = 6; - List> list180 = new List>(num3); - CollectionsMarshal.SetCount(list180, num3); - Span> span72 = CollectionsMarshal.AsSpan(list180); - span72[0] = null; - ref List reference141 = ref span72[1]; - num4 = 2; - List list181 = new List(num4); - CollectionsMarshal.SetCount(list181, num4); - Span span73 = CollectionsMarshal.AsSpan(list181); - span73[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span73[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list180 = new List>(num4); + CollectionsMarshal.SetCount(list180, num4); + span9 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span9[num3] = null; + num3++; + ref List reference141 = ref span9[num3]; + num5 = 2; + List list181 = new List(num5); + CollectionsMarshal.SetCount(list181, num5); + span6 = CollectionsMarshal.AsSpan(list181); + num6 = 0; + span6[num6] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference141 = list181; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj134.RequiredQuestVariables = list180; reference140 = obj134; - ref QuestStep reference142 = ref span67[3]; + num2++; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2002985u, new Vector3(-41.031555f, 0.16778564f, 15.915161f), 146) { Fly = true, @@ -73306,52 +87015,72 @@ public static class AssemblyQuestLoader num3 = 6; List> list182 = new List>(num3); CollectionsMarshal.SetCount(list182, num3); - Span> span74 = CollectionsMarshal.AsSpan(list182); - span74[0] = null; - ref List reference143 = ref span74[1]; - num4 = 3; - List list183 = new List(num4); - CollectionsMarshal.SetCount(list183, num4); - Span span75 = CollectionsMarshal.AsSpan(list183); - span75[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span75[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span75[2] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span9[num4] = null; + num4++; + ref List reference143 = ref span9[num4]; + num6 = 3; + List list183 = new List(num6); + CollectionsMarshal.SetCount(list183, num6); + span6 = CollectionsMarshal.AsSpan(list183); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); reference143 = list183; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj135.RequiredQuestVariables = list182; reference142 = obj135; - ref QuestStep reference144 = ref span67[4]; + num2++; + ref QuestStep reference144 = ref span3[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2002986u, new Vector3(-78.81293f, -1.083435f, 44.052734f), 146) { Fly = true, Land = true }; - num3 = 6; - List> list184 = new List>(num3); - CollectionsMarshal.SetCount(list184, num3); - Span> span76 = CollectionsMarshal.AsSpan(list184); - span76[0] = null; - ref List reference145 = ref span76[1]; - num4 = 3; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span77 = CollectionsMarshal.AsSpan(list185); - span77[0] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span77[1] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span77[2] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list184 = new List>(num4); + CollectionsMarshal.SetCount(list184, num4); + span9 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span9[num3] = null; + num3++; + ref List reference145 = ref span9[num3]; + num5 = 3; + List list185 = new List(num5); + CollectionsMarshal.SetCount(list185, num5); + span6 = CollectionsMarshal.AsSpan(list185); + num6 = 0; + span6[num6] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); reference145 = list185; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj136.RequiredQuestVariables = list184; reference144 = obj136; obj131.Steps = list175; reference135 = obj131; - ref QuestSequence reference146 = ref span66[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -73359,7 +87088,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73372,24 +87103,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "plogon_enjoyer"; questRoot20.Author = list187; - num = 3; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span78 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference147 = ref span78[0]; + index = 3; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj138.Steps = list189; reference147 = obj138; - ref QuestSequence reference148 = ref span78[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -73397,7 +87134,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list190)[0]; + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference149 = ref span3[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(-40.402416f, -1.1266766f, 0.71999836f), 146) { Fly = true, @@ -73406,13 +87145,15 @@ public static class AssemblyQuestLoader num3 = 2; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span79 = CollectionsMarshal.AsSpan(list191); - span79[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 358u, MinimumKillCount = 3u }; - span79[1] = new ComplexCombatData + num4++; + span8[num4] = new ComplexCombatData { DataId = 2451u, MinimumKillCount = 1u @@ -73421,15 +87162,18 @@ public static class AssemblyQuestLoader reference149 = obj140; obj139.Steps = list190; reference148 = obj139; - ref QuestSequence reference150 = ref span78[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73442,13 +87186,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "plogon_enjoyer"; questRoot21.Author = list193; - num = 4; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span80 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference151 = ref span80[0]; + index = 3; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -73456,28 +87203,30 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj142.Steps = list195; reference151 = obj142; - ref QuestSequence reference152 = ref span80[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1008327u, new Vector3(45.303955f, 4f, -345.11334f), 146) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008327u, new Vector3(45.303955f, 4f, -345.11334f), 146) { Fly = true }; obj143.Steps = list196; reference152 = obj143; - span80[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference153 = ref span80[3]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -73485,7 +87234,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73503,24 +87254,30 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "plogon_enjoyer"; questRoot22.Author = list198; - num = 3; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span81 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference154 = ref span81[0]; + index = 3; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj145.Steps = list200; reference154 = obj145; - ref QuestSequence reference155 = ref span81[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -73528,24 +87285,29 @@ public static class AssemblyQuestLoader num2 = 6; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span82 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference156 = ref span82[0]; + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj147 = new QuestStep(EInteractionType.Combat, 2003169u, new Vector3(-191.18036f, 3.6774292f, -162.00513f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 80u; + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + span4 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span4[num3] = 80u; obj147.KillEnemyDataIds = list202; reference156 = obj147; - span82[1] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-198.6194f, 4.4395595f, -156.7357f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-198.6194f, 4.4395595f, -156.7357f), 146) { ItemId = 2001191u }; - ref QuestStep reference157 = ref span82[2]; + index2++; + ref QuestStep reference157 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2003168u, new Vector3(-155.44366f, 3.8604736f, -132.21948f), 146) { Fly = true, @@ -73554,40 +87316,50 @@ public static class AssemblyQuestLoader num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 80u; + span4 = CollectionsMarshal.AsSpan(list203); + num4 = 0; + span4[num4] = 80u; obj148.KillEnemyDataIds = list203; reference157 = obj148; - span82[3] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-159.83832f, 4.2440715f, -136.43097f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-159.83832f, 4.2440715f, -136.43097f), 146) { ItemId = 2001191u }; - ref QuestStep reference158 = ref span82[4]; + index2++; + ref QuestStep reference158 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2003172u, new Vector3(-19.36377f, 0.47296143f, 15.182739f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 80u; + num4 = 1; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + span4 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span4[num3] = 80u; obj149.KillEnemyDataIds = list204; reference158 = obj149; - span82[5] = new QuestStep(EInteractionType.UseItem, 81u, new Vector3(-19.760498f, 0.97421986f, 19.790894f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 81u, new Vector3(-19.760498f, 0.97421986f, 19.790894f), 146) { ItemId = 2001191u }; obj146.Steps = list201; reference155 = obj146; - ref QuestSequence reference159 = ref span81[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73600,13 +87372,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "plogon_enjoyer"; questRoot23.Author = list206; - num = 3; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span83 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference160 = ref span83[0]; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -73614,19 +87389,23 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj151.Steps = list208; reference160 = obj151; - ref QuestSequence reference161 = ref span83[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span84 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference162 = ref span84[0]; + index2 = 6; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 2003141u, new Vector3(-22.537598f, 3.616333f, -44.663208f), 146) { Fly = true @@ -73634,49 +87413,69 @@ public static class AssemblyQuestLoader num3 = 6; List> list210 = new List>(num3); CollectionsMarshal.SetCount(list210, num3); - Span> span85 = CollectionsMarshal.AsSpan(list210); - span85[0] = null; - span85[1] = null; - span85[2] = null; - ref List reference163 = ref span85[3]; - num4 = 3; - List list211 = new List(num4); - CollectionsMarshal.SetCount(list211, num4); - Span span86 = CollectionsMarshal.AsSpan(list211); - span86[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span86[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span86[2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference163 = ref span9[num4]; + num6 = 3; + List list211 = new List(num6); + CollectionsMarshal.SetCount(list211, num6); + span6 = CollectionsMarshal.AsSpan(list211); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference163 = list211; - span85[4] = null; - span85[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj153.RequiredQuestVariables = list210; reference162 = obj153; - ref QuestStep reference164 = ref span84[1]; + num2++; + ref QuestStep reference164 = ref span3[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 2003148u, new Vector3(15.27417f, 2.1820068f, 22.9953f), 146) { Fly = true }; - num3 = 6; - List> list212 = new List>(num3); - CollectionsMarshal.SetCount(list212, num3); - Span> span87 = CollectionsMarshal.AsSpan(list212); - span87[0] = null; - span87[1] = null; - span87[2] = null; - ref List reference165 = ref span87[3]; - num4 = 3; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span88 = CollectionsMarshal.AsSpan(list213); - span88[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span88[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span88[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list212 = new List>(num4); + CollectionsMarshal.SetCount(list212, num4); + span9 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference165 = ref span9[num3]; + num5 = 3; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + span6 = CollectionsMarshal.AsSpan(list213); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference165 = list213; - span87[4] = null; - span87[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj154.RequiredQuestVariables = list212; reference164 = obj154; - ref QuestStep reference166 = ref span84[2]; + num2++; + ref QuestStep reference166 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 2003147u, new Vector3(25.192627f, 2.8533936f, 10.788086f), 146) { Fly = true @@ -73684,48 +87483,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list214 = new List>(num3); CollectionsMarshal.SetCount(list214, num3); - Span> span89 = CollectionsMarshal.AsSpan(list214); - span89[0] = null; - span89[1] = null; - span89[2] = null; - ref List reference167 = ref span89[3]; - num4 = 3; - List list215 = new List(num4); - CollectionsMarshal.SetCount(list215, num4); - Span span90 = CollectionsMarshal.AsSpan(list215); - span90[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span90[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference167 = ref span9[num4]; + num6 = 3; + List list215 = new List(num6); + CollectionsMarshal.SetCount(list215, num6); + span6 = CollectionsMarshal.AsSpan(list215); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference167 = list215; - span89[4] = null; - span89[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj155.RequiredQuestVariables = list214; reference166 = obj155; - ref QuestStep reference168 = ref span84[3]; + num2++; + ref QuestStep reference168 = ref span3[num2]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2003140u, new Vector3(-37.094727f, -0.5340576f, 14.90802f), 146) { Fly = true }; - num3 = 6; - List> list216 = new List>(num3); - CollectionsMarshal.SetCount(list216, num3); - Span> span91 = CollectionsMarshal.AsSpan(list216); - span91[0] = null; - span91[1] = null; - span91[2] = null; - ref List reference169 = ref span91[3]; - num4 = 2; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span92 = CollectionsMarshal.AsSpan(list217); - span92[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span92[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list216 = new List>(num4); + CollectionsMarshal.SetCount(list216, num4); + span9 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference169 = ref span9[num3]; + num5 = 2; + List list217 = new List(num5); + CollectionsMarshal.SetCount(list217, num5); + span6 = CollectionsMarshal.AsSpan(list217); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference169 = list217; - span91[4] = null; - span91[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj156.RequiredQuestVariables = list216; reference168 = obj156; - ref QuestStep reference170 = ref span84[4]; + num2++; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2003136u, new Vector3(-52.99463f, -1.2055054f, 17.532532f), 146) { Fly = true @@ -73733,39 +87551,52 @@ public static class AssemblyQuestLoader num3 = 6; List> list218 = new List>(num3); CollectionsMarshal.SetCount(list218, num3); - Span> span93 = CollectionsMarshal.AsSpan(list218); - span93[0] = null; - span93[1] = null; - span93[2] = null; - ref List reference171 = ref span93[3]; - num4 = 4; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span94 = CollectionsMarshal.AsSpan(list219); - span94[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span94[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span94[2] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span94[3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list218); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference171 = ref span9[num4]; + num6 = 4; + List list219 = new List(num6); + CollectionsMarshal.SetCount(list219, num6); + span6 = CollectionsMarshal.AsSpan(list219); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference171 = list219; - span93[4] = null; - span93[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj157.RequiredQuestVariables = list218; reference170 = obj157; - ref QuestStep reference172 = ref span84[5]; + num2++; + ref QuestStep reference172 = ref span3[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, null, new Vector3(-52.99463f, -1.2055054f, 17.532532f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span95 = CollectionsMarshal.AsSpan(list220); - span95[0] = new ComplexCombatData + num4 = 2; + List list220 = new List(num4); + CollectionsMarshal.SetCount(list220, num4); + span8 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 740u, MinimumKillCount = 1u }; - span95[1] = new ComplexCombatData + num3++; + span8[num3] = new ComplexCombatData { DataId = 741u, MinimumKillCount = 1u @@ -73774,7 +87605,8 @@ public static class AssemblyQuestLoader reference172 = obj158; obj152.Steps = list209; reference161 = obj152; - ref QuestSequence reference173 = ref span83[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -73782,9 +87614,11 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span96 = CollectionsMarshal.AsSpan(list221); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.393555f, -2.04119f, 36.344994f), 146); - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.393555f, -2.04119f, 36.344994f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { DelaySecondsAtStart = 3f, Fly = true @@ -73798,24 +87632,30 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "plogon_enjoyer"; questRoot24.Author = list222; - num = 3; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span97 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference174 = ref span97[0]; + index = 3; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj160.Steps = list224; reference174 = obj160; - ref QuestSequence reference175 = ref span97[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -73823,7 +87663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list225)[0]; + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + ref QuestStep reference176 = ref span3[index2]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.631764f, 4.530592f, -52.115612f), 146) { Fly = true, @@ -73832,7 +87674,9 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 2452u, MinimumKillCount = 2u @@ -73841,17 +87685,20 @@ public static class AssemblyQuestLoader reference176 = obj162; obj161.Steps = list225; reference175 = obj161; - ref QuestSequence reference177 = ref span97[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span98 = CollectionsMarshal.AsSpan(list227); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.8761f, -1.9533517f, -51.731575f), 146); - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.8761f, -1.9533517f, -51.731575f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73875,13 +87722,16 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "plogon_enjoyer"; questRoot25.Author = list228; - num = 4; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span99 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference178 = ref span99[0]; + index = 4; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span2 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -73889,25 +87739,31 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj164.Steps = list230; reference178 = obj164; - ref QuestSequence reference179 = ref span99[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1005848u, new Vector3(-101.487854f, 8.097177f, 403.28064f), 146) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005848u, new Vector3(-101.487854f, 8.097177f, 403.28064f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj165.Steps = list231; reference179 = obj165; - ref QuestSequence reference180 = ref span99[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 @@ -73915,30 +87771,40 @@ public static class AssemblyQuestLoader num2 = 4; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span100 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference181 = ref span100[0]; + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference181 = ref span3[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Action, 2003353u, new Vector3(-248.0965f, 2.8533936f, 675.95935f), 146) { Action = EAction.FieryBreath }; - num3 = 6; - List> list233 = new List>(num3); - CollectionsMarshal.SetCount(list233, num3); - Span> span101 = CollectionsMarshal.AsSpan(list233); - span101[0] = null; - span101[1] = null; - span101[2] = null; - ref List reference182 = ref span101[3]; - num4 = 1; - List list234 = new List(num4); - CollectionsMarshal.SetCount(list234, num4); - CollectionsMarshal.AsSpan(list234)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list233 = new List>(num4); + CollectionsMarshal.SetCount(list233, num4); + span9 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference182 = ref span9[num3]; + num5 = 1; + List list234 = new List(num5); + CollectionsMarshal.SetCount(list234, num5); + span6 = CollectionsMarshal.AsSpan(list234); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference182 = list234; - span101[4] = null; - span101[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj167.RequiredQuestVariables = list233; reference181 = obj167; - ref QuestStep reference183 = ref span100[1]; + index2++; + ref QuestStep reference183 = ref span3[index2]; QuestStep obj168 = new QuestStep(EInteractionType.Action, 2003354u, new Vector3(-132.03638f, -1.449646f, 778.8052f), 146) { Action = EAction.FieryBreath @@ -73946,47 +87812,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list235 = new List>(num3); CollectionsMarshal.SetCount(list235, num3); - Span> span102 = CollectionsMarshal.AsSpan(list235); - span102[0] = null; - span102[1] = null; - span102[2] = null; - ref List reference184 = ref span102[3]; - num4 = 2; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span103 = CollectionsMarshal.AsSpan(list236); - span103[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span103[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list235); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference184 = ref span9[num4]; + num6 = 2; + List list236 = new List(num6); + CollectionsMarshal.SetCount(list236, num6); + span6 = CollectionsMarshal.AsSpan(list236); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference184 = list236; - span102[4] = null; - span102[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj168.RequiredQuestVariables = list235; reference183 = obj168; - ref QuestStep reference185 = ref span100[2]; + index2++; + ref QuestStep reference185 = ref span3[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Action, 2003356u, new Vector3(78.446655f, 14.328186f, 589.9595f), 146) { Action = EAction.FieryBreath }; - num3 = 6; - List> list237 = new List>(num3); - CollectionsMarshal.SetCount(list237, num3); - Span> span104 = CollectionsMarshal.AsSpan(list237); - span104[0] = null; - span104[1] = null; - span104[2] = null; - ref List reference186 = ref span104[3]; - num4 = 2; - List list238 = new List(num4); - CollectionsMarshal.SetCount(list238, num4); - Span span105 = CollectionsMarshal.AsSpan(list238); - span105[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span105[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list237 = new List>(num4); + CollectionsMarshal.SetCount(list237, num4); + span9 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference186 = ref span9[num3]; + num5 = 2; + List list238 = new List(num5); + CollectionsMarshal.SetCount(list238, num5); + span6 = CollectionsMarshal.AsSpan(list238); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference186 = list238; - span104[4] = null; - span104[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj169.RequiredQuestVariables = list237; reference185 = obj169; - ref QuestStep reference187 = ref span100[3]; + index2++; + ref QuestStep reference187 = ref span3[index2]; QuestStep obj170 = new QuestStep(EInteractionType.Action, 2003357u, new Vector3(179.9801f, 6.6376343f, 601.15967f), 146) { Action = EAction.FieryBreath @@ -73994,37 +87878,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list239 = new List>(num3); CollectionsMarshal.SetCount(list239, num3); - Span> span106 = CollectionsMarshal.AsSpan(list239); - span106[0] = null; - span106[1] = null; - span106[2] = null; - ref List reference188 = ref span106[3]; - num4 = 1; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - CollectionsMarshal.AsSpan(list240)[0] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list239); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference188 = ref span9[num4]; + num6 = 1; + List list240 = new List(num6); + CollectionsMarshal.SetCount(list240, num6); + span6 = CollectionsMarshal.AsSpan(list240); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference188 = list240; - span106[4] = null; - span106[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj170.RequiredQuestVariables = list239; reference187 = obj170; obj166.Steps = list232; reference180 = obj166; - ref QuestSequence reference189 = ref span99[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span107 = CollectionsMarshal.AsSpan(list241); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.11375f, 25.301596f, -391.2648f), 146) + index2 = 2; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.11375f, 25.301596f, -391.2648f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -74037,13 +87932,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "plogon_enjoyer"; questRoot26.Author = list242; - num = 5; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span108 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference190 = ref span108[0]; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -74051,24 +87949,30 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj172.Steps = list244; reference190 = obj172; - ref QuestSequence reference191 = ref span108[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) { Fly = true }; obj173.Steps = list245; reference191 = obj173; - ref QuestSequence reference192 = ref span108[2]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -74076,36 +87980,47 @@ public static class AssemblyQuestLoader num2 = 11; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span109 = CollectionsMarshal.AsSpan(list246); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-126.48953f, 27.57419f, 138.61473f), 146) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-126.48953f, 27.57419f, 138.61473f), 146) { Fly = true }; - ref QuestStep reference193 = ref span109[1]; + index2++; + ref QuestStep reference193 = ref span3[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2003048u, new Vector3(-136.85822f, 18.753235f, 116.50256f), 146) { Mount = true }; - num3 = 6; - List> list247 = new List>(num3); - CollectionsMarshal.SetCount(list247, num3); - Span> span110 = CollectionsMarshal.AsSpan(list247); - span110[0] = null; - span110[1] = null; - ref List reference194 = ref span110[2]; - num4 = 2; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - Span span111 = CollectionsMarshal.AsSpan(list248); - span111[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span111[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list247 = new List>(num4); + CollectionsMarshal.SetCount(list247, num4); + span9 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference194 = ref span9[num3]; + num5 = 2; + List list248 = new List(num5); + CollectionsMarshal.SetCount(list248, num5); + span6 = CollectionsMarshal.AsSpan(list248); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference194 = list248; - span110[3] = null; - span110[4] = null; - span110[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj175.RequiredQuestVariables = list247; reference193 = obj175; - ref QuestStep reference195 = ref span109[2]; + index2++; + ref QuestStep reference195 = ref span3[index2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2003049u, new Vector3(-121.78229f, 28.732666f, 140.33716f), 146) { Mount = true @@ -74113,43 +88028,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list249 = new List>(num3); CollectionsMarshal.SetCount(list249, num3); - Span> span112 = CollectionsMarshal.AsSpan(list249); - span112[0] = null; - span112[1] = null; - ref List reference196 = ref span112[2]; - num4 = 1; - List list250 = new List(num4); - CollectionsMarshal.SetCount(list250, num4); - CollectionsMarshal.AsSpan(list250)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference196 = ref span9[num4]; + num6 = 1; + List list250 = new List(num6); + CollectionsMarshal.SetCount(list250, num6); + span6 = CollectionsMarshal.AsSpan(list250); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference196 = list250; - span112[3] = null; - span112[4] = null; - span112[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj176.RequiredQuestVariables = list249; reference195 = obj176; - ref QuestStep reference197 = ref span109[3]; + index2++; + ref QuestStep reference197 = ref span3[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2003050u, new Vector3(-91.96619f, 43.07617f, 156.84741f), 146) { Mount = true }; - num3 = 6; - List> list251 = new List>(num3); - CollectionsMarshal.SetCount(list251, num3); - Span> span113 = CollectionsMarshal.AsSpan(list251); - span113[0] = null; - span113[1] = null; - ref List reference198 = ref span113[2]; - num4 = 1; - List list252 = new List(num4); - CollectionsMarshal.SetCount(list252, num4); - CollectionsMarshal.AsSpan(list252)[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list251 = new List>(num4); + CollectionsMarshal.SetCount(list251, num4); + span9 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference198 = ref span9[num3]; + num5 = 1; + List list252 = new List(num5); + CollectionsMarshal.SetCount(list252, num5); + span6 = CollectionsMarshal.AsSpan(list252); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference198 = list252; - span113[3] = null; - span113[4] = null; - span113[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj177.RequiredQuestVariables = list251; reference197 = obj177; - ref QuestStep reference199 = ref span109[4]; + index2++; + ref QuestStep reference199 = ref span3[index2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2003051u, new Vector3(-55.40558f, 42.526855f, 192.18738f), 146) { Mount = true @@ -74157,46 +88090,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list253 = new List>(num3); CollectionsMarshal.SetCount(list253, num3); - Span> span114 = CollectionsMarshal.AsSpan(list253); - span114[0] = null; - span114[1] = null; - ref List reference200 = ref span114[2]; - num4 = 3; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span115 = CollectionsMarshal.AsSpan(list254); - span115[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span115[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span115[2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference200 = ref span9[num4]; + num6 = 3; + List list254 = new List(num6); + CollectionsMarshal.SetCount(list254, num6); + span6 = CollectionsMarshal.AsSpan(list254); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference200 = list254; - span114[3] = null; - span114[4] = null; - span114[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj178.RequiredQuestVariables = list253; reference199 = obj178; - ref QuestStep reference201 = ref span109[5]; + index2++; + ref QuestStep reference201 = ref span3[index2]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 2003052u, new Vector3(6.668152f, 36.9115f, 207.01917f), 146) { Mount = true }; - num3 = 6; - List> list255 = new List>(num3); - CollectionsMarshal.SetCount(list255, num3); - Span> span116 = CollectionsMarshal.AsSpan(list255); - span116[0] = null; - span116[1] = null; - ref List reference202 = ref span116[2]; - num4 = 1; - List list256 = new List(num4); - CollectionsMarshal.SetCount(list256, num4); - CollectionsMarshal.AsSpan(list256)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list255 = new List>(num4); + CollectionsMarshal.SetCount(list255, num4); + span9 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference202 = ref span9[num3]; + num5 = 1; + List list256 = new List(num5); + CollectionsMarshal.SetCount(list256, num5); + span6 = CollectionsMarshal.AsSpan(list256); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference202 = list256; - span116[3] = null; - span116[4] = null; - span116[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj179.RequiredQuestVariables = list255; reference201 = obj179; - ref QuestStep reference203 = ref span109[6]; + index2++; + ref QuestStep reference203 = ref span3[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2003053u, new Vector3(73.31958f, 31.784546f, 153.76514f), 146) { Mount = true @@ -74204,45 +88156,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list257 = new List>(num3); CollectionsMarshal.SetCount(list257, num3); - Span> span117 = CollectionsMarshal.AsSpan(list257); - span117[0] = null; - span117[1] = null; - ref List reference204 = ref span117[2]; - num4 = 1; - List list258 = new List(num4); - CollectionsMarshal.SetCount(list258, num4); - CollectionsMarshal.AsSpan(list258)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference204 = ref span9[num4]; + num6 = 1; + List list258 = new List(num6); + CollectionsMarshal.SetCount(list258, num6); + span6 = CollectionsMarshal.AsSpan(list258); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference204 = list258; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj180.RequiredQuestVariables = list257; reference203 = obj180; - ref QuestStep reference205 = ref span109[7]; + index2++; + ref QuestStep reference205 = ref span3[index2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2003054u, new Vector3(79.42322f, 25.802979f, 208.66711f), 146) { Mount = true }; - num3 = 6; - List> list259 = new List>(num3); - CollectionsMarshal.SetCount(list259, num3); - Span> span118 = CollectionsMarshal.AsSpan(list259); - span118[0] = null; - span118[1] = null; - ref List reference206 = ref span118[2]; - num4 = 2; - List list260 = new List(num4); - CollectionsMarshal.SetCount(list260, num4); - Span span119 = CollectionsMarshal.AsSpan(list260); - span119[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span119[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list259 = new List>(num4); + CollectionsMarshal.SetCount(list259, num4); + span9 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + ref List reference206 = ref span9[num3]; + num5 = 2; + List list260 = new List(num5); + CollectionsMarshal.SetCount(list260, num5); + span6 = CollectionsMarshal.AsSpan(list260); + num6 = 0; + span6[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference206 = list260; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; obj181.RequiredQuestVariables = list259; reference205 = obj181; - ref QuestStep reference207 = ref span109[8]; + index2++; + ref QuestStep reference207 = ref span3[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 2003055u, new Vector3(106.889404f, 14.602844f, 147.53943f), 146) { Mount = true @@ -74250,56 +88220,72 @@ public static class AssemblyQuestLoader num3 = 6; List> list261 = new List>(num3); CollectionsMarshal.SetCount(list261, num3); - Span> span120 = CollectionsMarshal.AsSpan(list261); - span120[0] = null; - span120[1] = null; - ref List reference208 = ref span120[2]; - num4 = 1; - List list262 = new List(num4); - CollectionsMarshal.SetCount(list262, num4); - CollectionsMarshal.AsSpan(list262)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span9 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference208 = ref span9[num4]; + num6 = 1; + List list262 = new List(num6); + CollectionsMarshal.SetCount(list262, num6); + span6 = CollectionsMarshal.AsSpan(list262); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference208 = list262; - span120[3] = null; - span120[4] = null; - span120[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj182.RequiredQuestVariables = list261; reference207 = obj182; - ref QuestStep reference209 = ref span109[9]; + index2++; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, null, new Vector3(135.42383f, 8.102478f, 178.36267f), 146) { Mount = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = 2456u; + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + span4 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span4[num3] = 2456u; obj183.KillEnemyDataIds = list263; reference209 = obj183; - span109[10] = new QuestStep(EInteractionType.Interact, 2003056u, new Vector3(135.42383f, 8.102478f, 178.36267f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003056u, new Vector3(135.42383f, 8.102478f, 178.36267f), 146); obj174.Steps = list246; reference192 = obj174; - ref QuestSequence reference210 = ref span108[3]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span121 = CollectionsMarshal.AsSpan(list264); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.849556f, 26.409807f, -383.9894f), 146) + index2 = 2; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.849556f, 26.409807f, -383.9894f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span121[1] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) { Fly = true }; obj184.Steps = list264; reference210 = obj184; - ref QuestSequence reference211 = ref span108[4]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -74307,7 +88293,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -74320,24 +88308,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "plogon_enjoyer"; questRoot27.Author = list266; - num = 3; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span122 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference212 = ref span122[0]; + index = 3; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj186.Steps = list268; reference212 = obj186; - ref QuestSequence reference213 = ref span122[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -74345,7 +88339,9 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list269)[0]; + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + ref QuestStep reference214 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Combat, null, new Vector3(-38.375584f, 8.492833f, 156.09068f), 146) { Fly = true, @@ -74354,7 +88350,9 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 2452u, MinimumKillCount = 2u @@ -74363,15 +88361,18 @@ public static class AssemblyQuestLoader reference214 = obj188; obj187.Steps = list269; reference213 = obj187; - ref QuestSequence reference215 = ref span122[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -74384,13 +88385,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "skiaz"; questRoot28.Author = list272; - num = 3; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span123 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference216 = ref span123[0]; + index = 3; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -74398,32 +88402,38 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj190.Steps = list274; reference216 = obj190; - ref QuestSequence reference217 = ref span123[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1, Comment = "Probably better to make here single steps for each enemy, since they are spread across a larger area" }; - num2 = 2; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - Span span124 = CollectionsMarshal.AsSpan(list275); - ref QuestStep reference218 = ref span124[0]; + index2 = 2; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + ref QuestStep reference218 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(72.098755f, 12.723299f, 23.544617f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new ComplexCombatData + num4 = 1; + List list276 = new List(num4); + CollectionsMarshal.SetCount(list276, num4); + span8 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 741u, NameId = 1838u, @@ -74431,7 +88441,8 @@ public static class AssemblyQuestLoader }; obj192.ComplexCombatData = list276; reference218 = obj192; - ref QuestStep reference219 = ref span124[1]; + num2++; + ref QuestStep reference219 = ref span3[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.87158f, 7.586792f, -30.533386f), 146) { Fly = true, @@ -74440,7 +88451,9 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 739u, NameId = 1837u, @@ -74450,7 +88463,8 @@ public static class AssemblyQuestLoader reference219 = obj193; obj191.Steps = list275; reference217 = obj191; - ref QuestSequence reference220 = ref span123[2]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue @@ -74458,7 +88472,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74472,27 +88488,33 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list279); + index = 0; + span[index] = "skiaz"; questRoot29.Author = list279; - num = 3; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span125 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference221 = ref span125[0]; + index = 3; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + span2 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj195.Steps = list281; reference221 = obj195; - ref QuestSequence reference222 = ref span125[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1, @@ -74501,17 +88523,20 @@ public static class AssemblyQuestLoader num2 = 2; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span126 = CollectionsMarshal.AsSpan(list282); - ref QuestStep reference223 = ref span126[0]; + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + ref QuestStep reference223 = ref span3[index2]; QuestStep obj197 = new QuestStep(EInteractionType.Combat, null, new Vector3(103.1051f, 15.034634f, 20.46234f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new ComplexCombatData + num4 = 1; + List list283 = new List(num4); + CollectionsMarshal.SetCount(list283, num4); + span8 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 742u, NameId = 1840u, @@ -74519,7 +88544,8 @@ public static class AssemblyQuestLoader }; obj197.ComplexCombatData = list283; reference223 = obj197; - ref QuestStep reference224 = ref span126[1]; + index2++; + ref QuestStep reference224 = ref span3[index2]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 740u, new Vector3(103.1051f, 15.034634f, 20.46234f), 146) { Fly = true, @@ -74528,7 +88554,9 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list284); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 740u, NameId = 1839u, @@ -74538,15 +88566,18 @@ public static class AssemblyQuestLoader reference224 = obj198; obj196.Steps = list282; reference222 = obj196; - ref QuestSequence reference225 = ref span125[2]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74560,13 +88591,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "skiaz"; questRoot30.Author = list286; - num = 3; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span127 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference226 = ref span127[0]; + index = 3; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -74574,33 +88608,43 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj200.Steps = list288; reference226 = obj200; - ref QuestSequence reference227 = ref span127[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span128 = CollectionsMarshal.AsSpan(list289); - span128[0] = new QuestStep(EInteractionType.Interact, 2003024u, new Vector3(345.23523f, 8.590759f, -24.399231f), 146) + index2 = 6; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003024u, new Vector3(345.23523f, 8.590759f, -24.399231f), 146) { Fly = true }; - span128[1] = new QuestStep(EInteractionType.Interact, 2003027u, new Vector3(501.0299f, 7.614197f, -144.39618f), 146); - span128[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8477f, 7.5996237f, -156.95335f), 146); - span128[3] = new QuestStep(EInteractionType.Interact, 2003030u, new Vector3(552.20874f, 7.614197f, -175.18884f), 146); - span128[4] = new QuestStep(EInteractionType.Interact, 2003031u, new Vector3(558.5259f, 7.583679f, -166.79645f), 146); - span128[5] = new QuestStep(EInteractionType.Interact, 2003029u, new Vector3(546.68494f, 10.543945f, -141.86316f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003027u, new Vector3(501.0299f, 7.614197f, -144.39618f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8477f, 7.5996237f, -156.95335f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003030u, new Vector3(552.20874f, 7.614197f, -175.18884f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003031u, new Vector3(558.5259f, 7.583679f, -166.79645f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003029u, new Vector3(546.68494f, 10.543945f, -141.86316f), 146); obj201.Steps = list289; reference227 = obj201; - ref QuestSequence reference228 = ref span127[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -74608,7 +88652,9 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74622,27 +88668,33 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list291); + index = 0; + span[index] = "skiaz"; questRoot31.Author = list291; - num = 3; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span129 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference229 = ref span129[0]; + index = 3; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + span2 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj203.Steps = list293; reference229 = obj203; - ref QuestSequence reference230 = ref span129[1]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -74650,24 +88702,28 @@ public static class AssemblyQuestLoader num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span130 = CollectionsMarshal.AsSpan(list294); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146); - ref QuestStep reference231 = ref span130[1]; + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146); + index2++; + ref QuestStep reference231 = ref span3[index2]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146) { EnemySpawnType = EEnemySpawnType.FateEnemies }; - num3 = 2; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span131 = CollectionsMarshal.AsSpan(list295); - span131[0] = new ComplexCombatData + num4 = 2; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + span8 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 740u, NameId = 2369u, MinimumKillCount = 3u }; - span131[1] = new ComplexCombatData + num3++; + span8[num3] = new ComplexCombatData { DataId = 2501u, MinimumKillCount = 1u @@ -74676,15 +88732,18 @@ public static class AssemblyQuestLoader reference231 = obj205; obj204.Steps = list294; reference230 = obj204; - ref QuestSequence reference232 = ref span129[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74707,13 +88766,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -74721,27 +88783,33 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - span2[1] = new QuestStep(EInteractionType.Interact, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -74749,26 +88817,31 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152) { NextQuestId = new QuestId(1253) }; @@ -74781,13 +88854,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 5; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span4[0]; + index = 5; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -74795,24 +88871,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span4[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 2002864u, new Vector3(270.28296f, -0.25946045f, 168.53589f), 152) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002864u, new Vector3(270.28296f, -0.25946045f, 168.53589f), 152) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -74820,27 +88902,33 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1005570u, new Vector3(292.77478f, -0.00153354f, 145.12854f), 152) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005570u, new Vector3(292.77478f, -0.00153354f, 145.12854f), 152) { StopDistance = 7f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1005565u, new Vector3(22.47644f, -6.2105103f, 252.552f), 152) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005565u, new Vector3(22.47644f, -6.2105103f, 252.552f), 152) { Fly = true }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -74848,17 +88936,21 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span5 = CollectionsMarshal.AsSpan(list13); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true }; - ref QuestStep reference10 = ref span5[1]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); int num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list14); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANSYL002_01253_SYSYTEM_Q1_000_1"), @@ -74875,21 +88967,26 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "Censored"; questRoot3.Author = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span6[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -74903,7 +89000,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list17; reference11 = obj10; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -74911,25 +89009,33 @@ public static class AssemblyQuestLoader num2 = 5; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference13 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference13 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 2003073u, new Vector3(180.98718f, -0.38153076f, 68.03992f), 152) { Fly = true }; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span5 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj12.CompletionQuestVariablesFlags = list19; reference13 = obj12; - ref QuestStep reference14 = ref span7[1]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2003069u, new Vector3(327.65686f, -6.088379f, -7.9194946f), 152) { Fly = true @@ -74937,56 +89043,79 @@ public static class AssemblyQuestLoader num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list20; reference14 = obj13; - ref QuestStep reference15 = ref span7[2]; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2003068u, new Vector3(323.81165f, -5.783203f, -17.898865f), 152); - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + span5 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list21; reference15 = questStep2; - ref QuestStep reference16 = ref span7[3]; + index2++; + ref QuestStep reference16 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2003070u, new Vector3(328.08423f, -4.867676f, -31.296265f), 152); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; - span7[4] = new QuestStep(EInteractionType.Interact, 2003067u, new Vector3(354.57385f, -4.623535f, -11.39856f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003067u, new Vector3(354.57385f, -4.623535f, -11.39856f), 152); obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference17 = ref span6[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + index2 = 2; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75003,7 +89132,8 @@ public static class AssemblyQuestLoader } } }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj14.Steps = list23; reference17 = obj14; questRoot3.QuestSequence = list16; @@ -75013,13 +89143,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "Censored"; questRoot4.Author = list24; - num = 4; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span13[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -75027,7 +89160,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -75041,50 +89176,67 @@ public static class AssemblyQuestLoader }; obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span13[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span14[0]; + index2 = 3; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2003228u, new Vector3(286.2439f, -4.5319824f, 57.114502f), 152) { Fly = true }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + span5 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list28; reference20 = obj17; - ref QuestStep reference21 = ref span14[1]; + num2++; + ref QuestStep reference21 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003221u, new Vector3(254.19995f, -6.363098f, 41.428223f), 152); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list29); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list29; reference21 = questStep4; - span14[2] = new QuestStep(EInteractionType.Interact, 2003222u, new Vector3(253.52856f, -5.5390625f, 22.262878f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003222u, new Vector3(253.52856f, -5.5390625f, 22.262878f), 152); obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference22 = ref span13[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -75092,25 +89244,33 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span17 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.UseItem, 2003234u, new Vector3(231.1283f, -3.2197266f, -16.281433f), 152) { ItemId = 2001178u }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list31; reference23 = obj19; - ref QuestStep reference24 = ref span17[1]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.UseItem, 2003233u, new Vector3(245.59387f, -5.203369f, -41.672424f), 152) { ItemId = 2001178u @@ -75118,31 +89278,40 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list32; reference24 = obj20; - span17[2] = new QuestStep(EInteractionType.UseItem, 2003231u, new Vector3(211.56628f, -4.501404f, -51.499268f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2003231u, new Vector3(211.56628f, -4.501404f, -51.499268f), 152) { ItemId = 2001178u }; obj18.Steps = list30; reference22 = obj18; - ref QuestSequence reference25 = ref span13[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75159,7 +89328,8 @@ public static class AssemblyQuestLoader } } }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj21.Steps = list33; reference25 = obj21; questRoot4.QuestSequence = list25; @@ -75169,13 +89339,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "Censored"; questRoot5.Author = list34; - num = 4; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span21 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span21[0]; + index = 4; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -75183,7 +89356,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -75197,21 +89372,25 @@ public static class AssemblyQuestLoader }; obj22.Steps = list36; reference26 = obj22; - ref QuestSequence reference27 = ref span21[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1008329u, new Vector3(175.86023f, 8.627428f, 204.18091f), 152) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008329u, new Vector3(175.86023f, 8.627428f, 204.18091f), 152) { Fly = true }; obj23.Steps = list37; reference27 = obj23; - ref QuestSequence reference28 = ref span21[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -75219,55 +89398,75 @@ public static class AssemblyQuestLoader num2 = 6; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span22 = CollectionsMarshal.AsSpan(list38); - ref QuestStep reference29 = ref span22[0]; + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2003079u, new Vector3(225.78772f, 5.996765f, 181.78064f), 152); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span23 = CollectionsMarshal.AsSpan(list39); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + span5 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list39; skipConditions.StepIf = skipStepConditions; questStep5.SkipConditions = skipConditions; reference29 = questStep5; - ref QuestStep reference30 = ref span22[1]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2003303u, new Vector3(267.96362f, -0.16790771f, 168.9325f), 152); num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span24 = CollectionsMarshal.AsSpan(list40); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list40; reference30 = questStep6; - span22[2] = new QuestStep(EInteractionType.Interact, 2003301u, new Vector3(220.29443f, -1.4801636f, 100.48059f), 152); - span22[3] = new QuestStep(EInteractionType.Interact, 2003081u, new Vector3(175.24988f, -0.22894287f, 57.328125f), 152); - span22[4] = new QuestStep(EInteractionType.Interact, 2003082u, new Vector3(97.67297f, 7.1259155f, -7.9194946f), 152); - span22[5] = new QuestStep(EInteractionType.Interact, 2003076u, new Vector3(-19.150085f, 19.33313f, -11.490112f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003301u, new Vector3(220.29443f, -1.4801636f, 100.48059f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003081u, new Vector3(175.24988f, -0.22894287f, 57.328125f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003082u, new Vector3(97.67297f, 7.1259155f, -7.9194946f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003076u, new Vector3(-19.150085f, 19.33313f, -11.490112f), 152); obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference31 = ref span21[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span25 = CollectionsMarshal.AsSpan(list41); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75284,7 +89483,8 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj25.Steps = list41; reference31 = obj25; questRoot5.QuestSequence = list35; @@ -75300,13 +89500,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "Censored"; questRoot6.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span26 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference32 = ref span26[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -75314,7 +89517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -75328,24 +89533,29 @@ public static class AssemblyQuestLoader }; obj26.Steps = list44; reference32 = obj26; - ref QuestSequence reference33 = ref span26[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list45)[0]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(220.62901f, 4.888098f, 163.73048f), 152) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new ComplexCombatData + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span6 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 2660u, NameId = 2314u, @@ -75355,7 +89565,8 @@ public static class AssemblyQuestLoader reference34 = obj28; obj27.Steps = list45; reference33 = obj27; - ref QuestSequence reference35 = ref span26[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -75363,8 +89574,9 @@ public static class AssemblyQuestLoader num2 = 2; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span27 = CollectionsMarshal.AsSpan(list47); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75381,7 +89593,8 @@ public static class AssemblyQuestLoader } } }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj29.Steps = list47; reference35 = obj29; questRoot6.QuestSequence = list43; @@ -75391,24 +89604,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot7.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span28 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span28[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj30.Steps = list50; reference36 = obj30; - ref QuestSequence reference37 = ref span28[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -75416,8 +89635,9 @@ public static class AssemblyQuestLoader num2 = 4; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span29 = CollectionsMarshal.AsSpan(list51); - ref QuestStep reference38 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(321.08926f, -17.347095f, -201.61072f), 152) { Fly = true @@ -75427,18 +89647,25 @@ public static class AssemblyQuestLoader num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span30 = CollectionsMarshal.AsSpan(list52); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list52; skipConditions2.StepIf = skipStepConditions2; obj32.SkipConditions = skipConditions2; reference38 = obj32; - ref QuestStep reference39 = ref span29[1]; + index2++; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2003494u, new Vector3(319.44763f, -17.227417f, -200.88507f), 152) { Fly = true, @@ -75446,24 +89673,33 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = 764u; + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + Span span7 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span7[num3] = 764u; obj33.KillEnemyDataIds = list53; num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span31 = CollectionsMarshal.AsSpan(list54); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list54; reference39 = obj33; - ref QuestStep reference40 = ref span29[2]; + index2++; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj34 = new QuestStep(EInteractionType.Combat, 2003041u, new Vector3(386.099f, -20.187744f, -200.763f), 152) { Fly = true, @@ -75471,24 +89707,33 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 764u; + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + span7 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span7[num3] = 764u; obj34.KillEnemyDataIds = list55; num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span32 = CollectionsMarshal.AsSpan(list56); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list56; reference40 = obj34; - ref QuestStep reference41 = ref span29[3]; + index2++; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, 2003040u, new Vector3(326.77185f, -18.112549f, -235.95032f), 152) { Fly = true, @@ -75496,23 +89741,28 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 764u; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span7 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span7[num3] = 764u; obj35.KillEnemyDataIds = list57; reference41 = obj35; obj31.Steps = list51; reference37 = obj31; - ref QuestSequence reference42 = ref span28[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -75526,13 +89776,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "liza"; questRoot8.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span33 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference43 = ref span33[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -75540,24 +89793,30 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj37.Steps = list61; reference43 = obj37; - ref QuestSequence reference44 = ref span33[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 2003307u, new Vector3(261.82947f, -9.323303f, -72.80078f), 152) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003307u, new Vector3(261.82947f, -9.323303f, -72.80078f), 152) { Fly = true }; obj38.Steps = list62; reference44 = obj38; - ref QuestSequence reference45 = ref span33[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -75565,20 +89824,25 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span34 = CollectionsMarshal.AsSpan(list63); - span34[0] = new QuestStep(EInteractionType.Interact, 2003487u, new Vector3(429.89233f, -14.2977295f, -257.61804f), 152); - span34[1] = new QuestStep(EInteractionType.Interact, 2003310u, new Vector3(551.812f, -22.537598f, -352.13245f), 152); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003487u, new Vector3(429.89233f, -14.2977295f, -257.61804f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003310u, new Vector3(551.812f, -22.537598f, -352.13245f), 152); obj39.Steps = list63; reference45 = obj39; - ref QuestSequence reference46 = ref span33[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -75592,13 +89856,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot9.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span35 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span35[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -75606,18 +89873,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj41.Steps = list67; reference47 = obj41; - ref QuestSequence reference48 = ref span35[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list68)[0]; + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(336.78577f, -17.169508f, -252.20335f), 152) { Fly = true, @@ -75626,12 +89898,15 @@ public static class AssemblyQuestLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 2464u; + span7 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span7[index3] = 2464u; obj43.KillEnemyDataIds = list69; reference49 = obj43; obj42.Steps = list68; reference48 = obj42; - ref QuestSequence reference50 = ref span35[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -75639,7 +89914,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -75653,21 +89930,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "alydev"; questRoot10.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span36 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference51 = ref span36[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75685,7 +89967,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference51 = obj45; - ref QuestSequence reference52 = ref span36[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -75693,31 +89976,39 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); obj46.Steps = list74; reference52 = obj46; - ref QuestSequence reference53 = ref span36[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(219.21672f, -36.40546f, 321.90988f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 1390u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span7 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span7[num3] = 1390u; obj48.KillEnemyDataIds = list76; reference54 = obj48; obj47.Steps = list75; reference53 = obj47; - ref QuestSequence reference55 = ref span36[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -75725,18 +90016,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1005393u, new Vector3(221.14893f, -36.405968f, 323.5675f), 138); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005393u, new Vector3(221.14893f, -36.405968f, 323.5675f), 138); obj49.Steps = list77; reference55 = obj49; - ref QuestSequence reference56 = ref span36[4]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75761,13 +90057,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "alydev"; questRoot11.Author = list79; - num = 5; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span37 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference57 = ref span37[0]; + index = 5; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -75775,7 +90074,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75793,18 +90094,22 @@ public static class AssemblyQuestLoader }; obj51.Steps = list81; reference57 = obj51; - ref QuestSequence reference58 = ref span37[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); obj52.Steps = list82; reference58 = obj52; - ref QuestSequence reference59 = ref span37[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -75812,27 +90117,33 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.UseItem, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) { ItemId = 2001083u }; obj53.Steps = list83; reference59 = obj53; - ref QuestSequence reference60 = ref span37[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) { Emote = EEmote.Soothe }; obj54.Steps = list84; reference60 = obj54; - ref QuestSequence reference61 = ref span37[4]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -75840,7 +90151,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75865,21 +90178,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "alydev"; questRoot12.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span38 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference62 = ref span38[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75897,7 +90215,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list88; reference62 = obj56; - ref QuestSequence reference63 = ref span38[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -75905,7 +90224,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list89)[0]; + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(209.67606f, -16.937475f, 117.99471f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -75913,23 +90234,29 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 2447u; + span7 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span7[index3] = 2447u; obj58.KillEnemyDataIds = list90; reference64 = obj58; obj57.Steps = list89; reference63 = obj57; - ref QuestSequence reference65 = ref span38[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1005396u, new Vector3(209.52148f, -16.919422f, 114.457886f), 138); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005396u, new Vector3(209.52148f, -16.919422f, 114.457886f), 138); obj59.Steps = list91; reference65 = obj59; - ref QuestSequence reference66 = ref span38[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -75937,7 +90264,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75966,13 +90295,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -75980,19 +90312,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions @@ -76003,16 +90339,23 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions @@ -76020,19 +90363,26 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 64u } }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions @@ -76043,18 +90393,25 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -76062,7 +90419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -76072,24 +90431,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006381u, new Vector3(172.99146f, 222.00034f, 314.35107f), 155); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006381u, new Vector3(172.99146f, 222.00034f, 314.35107f), 155); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -76097,12 +90462,14 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span7 = CollectionsMarshal.AsSpan(list12); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.65878f, 222.21414f, 327.51016f), 155) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.65878f, 222.21414f, 327.51016f), 155) { Fly = true }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1006385u, new Vector3(241.50452f, 222.25885f, 325.45972f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006385u, new Vector3(241.50452f, 222.25885f, 325.45972f), 155); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list10; @@ -76112,23 +90479,27 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; questRoot3.Author = list13; questRoot3.Comment = "Only Turn 9 is required for the next quest to unlock"; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span8 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span8[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span9 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span9[0]; + index2 = 4; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -76136,47 +90507,57 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span10 = CollectionsMarshal.AsSpan(list16); - span10[0] = 140; - span10[1] = 212; + num4 = 2; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = 140; + num3++; + span5[num3] = 212; skipStepConditions.InTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - ref QuestStep reference11 = ref span9[1]; + num2++; + ref QuestStep reference11 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 212; + span5 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span5[num4] = 212; skipStepConditions2.InTerritory = list17; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference11 = questStep; - ref QuestStep reference12 = ref span9[2]; + num2++; + ref QuestStep reference12 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 212; + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = 212; skipStepConditions3.InTerritory = list18; skipConditions3.StepIf = skipStepConditions3; obj11.SkipConditions = skipConditions3; reference12 = obj11; - span9[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference13 = ref span8[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -76184,33 +90565,40 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) + index2 = 3; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) { Mount = true }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.82307f, -75.39517f, 422.71375f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.82307f, -75.39517f, 422.71375f), 154) { Fly = true }; - span11[2] = new QuestStep(EInteractionType.Interact, 1008539u, new Vector3(-236.74377f, -75.699936f, 423.0868f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008539u, new Vector3(-236.74377f, -75.699936f, 423.0868f), 154); obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span8[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -76218,12 +90606,14 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) { NextQuestId = new QuestId(1314) }; @@ -76236,22 +90626,26 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot4.Author = list22; - num = 2; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span13 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span13[0]; + index = 2; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.93238f, 77.08961f, -204.68428f), 147) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.93238f, 77.08961f, -204.68428f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -76263,12 +90657,15 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference17 = ref span14[1]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1008540u, new Vector3(-60.31891f, 76.76807f, -203.23492f), 147); num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD302_01314_Q1_000_000"), @@ -76278,7 +90675,8 @@ public static class AssemblyQuestLoader reference17 = questStep2; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference18 = ref span13[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -76286,18 +90684,22 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span15 = CollectionsMarshal.AsSpan(list26); - span15[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span15[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span15[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span15[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj16.Steps = list26; reference18 = obj16; questRoot4.QuestSequence = list23; @@ -76307,21 +90709,26 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "FalconTaterz"; questRoot5.Author = list27; - num = 7; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span16 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference19 = ref span16[0]; + index = 7; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005884u, new Vector3(-526.26843f, 5.4049973f, -249.25616f), 145) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005884u, new Vector3(-526.26843f, 5.4049973f, -249.25616f), 145) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76335,7 +90742,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list29; reference19 = obj17; - ref QuestSequence reference20 = ref span16[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -76343,30 +90751,36 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj18.Steps = list30; reference20 = obj18; - ref QuestSequence reference21 = ref span16[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span17 = CollectionsMarshal.AsSpan(list31); - span17[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span17[1] = new QuestStep(EInteractionType.Interact, 1008709u, new Vector3(-431.7846f, 28.038658f, -383.1693f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008709u, new Vector3(-431.7846f, 28.038658f, -383.1693f), 140); obj19.Steps = list31; reference21 = obj19; - ref QuestSequence reference22 = ref span16[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -76374,26 +90788,34 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span18 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference23 = ref span18[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1008713u, new Vector3(108.99512f, 57.816406f, 12.191956f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span19 = CollectionsMarshal.AsSpan(list33); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span4 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list33; reference23 = obj21; - ref QuestStep reference24 = ref span18[1]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1002022u, new Vector3(12.039368f, 22.144684f, 65.384766f), 140) { Fly = true @@ -76401,46 +90823,63 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span20 = CollectionsMarshal.AsSpan(list34); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list34; reference24 = obj22; - ref QuestStep reference25 = ref span18[2]; + index2++; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1008715u, new Vector3(-69.90167f, 13.38208f, 158.73962f), 140) { Fly = true }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span21 = CollectionsMarshal.AsSpan(list35); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span4 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list35; reference25 = obj23; obj20.Steps = list32; reference22 = obj20; - ref QuestSequence reference26 = ref span16[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 2003654u, new Vector3(-68.55884f, 13.809326f, 159.16675f), 140); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003654u, new Vector3(-68.55884f, 13.809326f, 159.16675f), 140); obj24.Steps = list36; reference26 = obj24; - ref QuestSequence reference27 = ref span16[5]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -76448,39 +90887,54 @@ public static class AssemblyQuestLoader num2 = 4; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span22 = CollectionsMarshal.AsSpan(list37); - ref QuestStep reference28 = ref span22[0]; + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + ref QuestStep reference28 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2003658u, new Vector3(-71.06128f, 13.443176f, 155.9624f), 140); num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span23 = CollectionsMarshal.AsSpan(list38); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list38; reference28 = questStep3; - ref QuestStep reference29 = ref span22[1]; + index2++; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2003656u, new Vector3(-72.95343f, 13.504211f, 159.19727f), 140) { StopDistance = 4.5f }; - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span24 = CollectionsMarshal.AsSpan(list39); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + span4 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list39; reference29 = obj26; - ref QuestStep reference30 = ref span22[2]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2003657u, new Vector3(-80.18622f, 13.412659f, 158.12915f), 140) { StopDistance = 4.5f @@ -76488,40 +90942,56 @@ public static class AssemblyQuestLoader num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span25 = CollectionsMarshal.AsSpan(list40); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list40; reference30 = obj27; - ref QuestStep reference31 = ref span22[3]; + index2++; + ref QuestStep reference31 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003659u, new Vector3(-76.15784f, 13.443176f, 155.90137f), 140); - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span26 = CollectionsMarshal.AsSpan(list41); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + span4 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list41; reference31 = questStep4; obj25.Steps = list37; reference27 = obj25; - ref QuestSequence reference32 = ref span16[6]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140) { NextQuestId = new QuestId(1316) }; @@ -76534,13 +91004,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "FalconTaterz"; questRoot6.Author = list43; - num = 4; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span27 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span27[0]; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -76548,25 +91021,31 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140); obj29.Steps = list45; reference33 = obj29; - ref QuestSequence reference34 = ref span27[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2003664u, new Vector3(11.337402f, 2.670288f, 320.943f), 147) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003664u, new Vector3(11.337402f, 2.670288f, 320.943f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj30.Steps = list46; reference34 = obj30; - ref QuestSequence reference35 = ref span27[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -76574,26 +91053,31 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 2003665u, new Vector3(34.50061f, 12.191956f, 254.13892f), 147) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003665u, new Vector3(34.50061f, 12.191956f, 254.13892f), 147) { Fly = true }; obj31.Steps = list47; reference35 = obj31; - ref QuestSequence reference36 = ref span27[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span28 = CollectionsMarshal.AsSpan(list48); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.67165f, 18.372795f, 122.4577f), 147) + index2 = 2; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.67165f, 18.372795f, 122.4577f), 147) { Fly = true }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 2003666u, new Vector3(111.192505f, 19.424683f, 121.20239f), 147) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2003666u, new Vector3(111.192505f, 19.424683f, 121.20239f), 147) { NextQuestId = new QuestId(1317) }; @@ -76606,13 +91090,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "FalconTaterz"; questRoot7.Author = list49; - num = 4; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span29 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span29[0]; + index = 4; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -76620,21 +91107,27 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008722u, new Vector3(109.7887f, 18.36741f, 121.72119f), 147); + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008722u, new Vector3(109.7887f, 18.36741f, 121.72119f), 147); obj33.Steps = list51; reference37 = obj33; - ref QuestSequence reference38 = ref span29[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2003667u, new Vector3(139.48267f, 20.279175f, 102.92212f), 147); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003667u, new Vector3(139.48267f, 20.279175f, 102.92212f), 147); obj34.Steps = list52; reference38 = obj34; - ref QuestSequence reference39 = ref span29[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -76642,24 +91135,29 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span30 = CollectionsMarshal.AsSpan(list53); - span30[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span30[1] = new QuestStep(EInteractionType.Interact, 1008730u, new Vector3(-431.26575f, 28.038658f, -381.4298f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008730u, new Vector3(-431.26575f, 28.038658f, -381.4298f), 140); obj35.Steps = list53; reference39 = obj35; - ref QuestSequence reference40 = ref span29[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008735u, new Vector3(-420.2793f, 23.113977f, -367.17786f), 140) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008735u, new Vector3(-420.2793f, 23.113977f, -367.17786f), 140) { NextQuestId = new QuestId(1318) }; @@ -76672,13 +91170,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "FalconTaterz"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "FalconTaterz"; questRoot8.Author = list55; - num = 9; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span31 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference41 = ref span31[0]; + index = 9; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -76686,28 +91187,34 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008736u, new Vector3(-418.44818f, 23.113976f, -367.8188f), 140) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008736u, new Vector3(-418.44818f, 23.113976f, -367.8188f), 140) { StopDistance = 5f }; obj37.Steps = list57; reference41 = obj37; - ref QuestSequence reference42 = ref span31[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1008739u, new Vector3(176.71472f, 222.1357f, 347.219f), 155) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008739u, new Vector3(176.71472f, 222.1357f, 347.219f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj38.Steps = list58; reference42 = obj38; - ref QuestSequence reference43 = ref span31[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -76715,21 +91222,27 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1008741u, new Vector3(249.50024f, 222.36392f, 353.6278f), 155); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008741u, new Vector3(249.50024f, 222.36392f, 353.6278f), 155); obj39.Steps = list59; reference43 = obj39; - ref QuestSequence reference44 = ref span31[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1008746u, new Vector3(261.46326f, 222.27127f, 320.2411f), 155); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008746u, new Vector3(261.46326f, 222.27127f, 320.2411f), 155); obj40.Steps = list60; reference44 = obj40; - ref QuestSequence reference45 = ref span31[4]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 @@ -76737,27 +91250,33 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2003741u, new Vector3(394.7965f, 225.0553f, 378.80518f), 155) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003741u, new Vector3(394.7965f, 225.0553f, 378.80518f), 155) { Fly = true }; obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span31[5]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1008752u, new Vector3(487.81555f, 206.95914f, 479.69775f), 155) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008752u, new Vector3(487.81555f, 206.95914f, 479.69775f), 155) { Fly = true }; obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference47 = ref span31[6]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 6 @@ -76765,7 +91284,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -76774,21 +91295,25 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference48 = ref span31[7]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1008756u, new Vector3(480.12512f, 207.33582f, 475.33374f), 155) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008756u, new Vector3(480.12512f, 207.33582f, 475.33374f), 155) { StopDistance = 7f }; obj44.Steps = list64; reference48 = obj44; - ref QuestSequence reference49 = ref span31[8]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -76796,13 +91321,15 @@ public static class AssemblyQuestLoader num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span32 = CollectionsMarshal.AsSpan(list65); - span32[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1008788u, new Vector3(-421.46948f, 23.113977f, -367.57465f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008788u, new Vector3(-421.46948f, 23.113977f, -367.57465f), 140) { Fly = true, NextQuestId = new QuestId(1438) @@ -76816,24 +91343,30 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot9.Author = list66; - num = 8; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span33 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span33[0]; + index = 8; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); obj46.Steps = list68; reference50 = obj46; - ref QuestSequence reference51 = ref span33[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -76841,24 +91374,30 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch }; obj47.Steps = list69; reference51 = obj47; - ref QuestSequence reference52 = ref span33[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2003711u, new Vector3(629.0836f, 9.719971f, 496.33008f), 138); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003711u, new Vector3(629.0836f, 9.719971f, 496.33008f), 138); obj48.Steps = list70; reference52 = obj48; - ref QuestSequence reference53 = ref span33[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -76866,12 +91405,16 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list71)[0]; + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138); num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB001_01320_Q1_000_000"), @@ -76881,21 +91424,25 @@ public static class AssemblyQuestLoader reference54 = questStep5; obj49.Steps = list71; reference53 = obj49; - ref QuestSequence reference55 = ref span33[4]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj50.Steps = list73; reference55 = obj50; - ref QuestSequence reference56 = ref span33[5]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -76903,24 +91450,30 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.274828f, 16.260347f, -199.21056f), 180) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.274828f, 16.260347f, -199.21056f), 180) { Fly = true }; obj51.Steps = list74; reference56 = obj51; - ref QuestSequence reference57 = ref span33[6]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1007950u, new Vector3(19.485779f, 16.159302f, -196.42938f), 180); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007950u, new Vector3(19.485779f, 16.159302f, -196.42938f), 180); obj52.Steps = list75; reference57 = obj52; - ref QuestSequence reference58 = ref span33[7]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -76928,7 +91481,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { NextQuestId = new QuestId(1321) }; @@ -76941,24 +91496,30 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot10.Author = list77; - num = 6; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span34 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference59 = ref span34[0]; + index = 6; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); obj54.Steps = list79; reference59 = obj54; - ref QuestSequence reference60 = ref span34[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -76966,98 +91527,137 @@ public static class AssemblyQuestLoader num2 = 5; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span35 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference61 = ref span35[0]; + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref QuestStep reference61 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(155.47716f, 68.658165f, -256.36594f), 180); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span36 = CollectionsMarshal.AsSpan(list81); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + span4 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list81; skipConditions4.StepIf = skipStepConditions4; questStep6.SkipConditions = skipConditions4; reference61 = questStep6; - ref QuestStep reference62 = ref span35[1]; + index2++; + ref QuestStep reference62 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2003715u, new Vector3(154.49756f, 69.047f, -254.32214f), 180); num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span37 = CollectionsMarshal.AsSpan(list82); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list82; reference62 = questStep7; - ref QuestStep reference63 = ref span35[2]; + index2++; + ref QuestStep reference63 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2003713u, new Vector3(181.47546f, 64.59143f, -282.42926f), 180); - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span38 = CollectionsMarshal.AsSpan(list83); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span4 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list83; reference63 = questStep8; - ref QuestStep reference64 = ref span35[3]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2003716u, new Vector3(180.28528f, 64.62195f, -255.17664f), 180); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span39 = CollectionsMarshal.AsSpan(list84); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list84; reference64 = questStep9; - ref QuestStep reference65 = ref span35[4]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2003714u, new Vector3(197.00916f, 64.042114f, -225.60468f), 180); - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span40 = CollectionsMarshal.AsSpan(list85); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + span4 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list85; reference65 = questStep10; obj55.Steps = list80; reference60 = obj55; - ref QuestSequence reference66 = ref span34[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj56.Steps = list86; reference66 = obj56; - ref QuestSequence reference67 = ref span34[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -77065,24 +91665,30 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 2003717u, new Vector3(0.38146973f, 16.433899f, -177.47778f), 180); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003717u, new Vector3(0.38146973f, 16.433899f, -177.47778f), 180); obj57.Steps = list87; reference67 = obj57; - ref QuestSequence reference68 = ref span34[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { StopDistance = 5f }; obj58.Steps = list88; reference68 = obj58; - ref QuestSequence reference69 = ref span34[5]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -77090,7 +91696,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list89)[0]; + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; QuestStep obj60 = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { StopDistance = 5f @@ -77098,7 +91706,9 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB002_01321_Q1_000_000"), @@ -77115,21 +91725,26 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "Censored"; questRoot11.Author = list91; - num = 11; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span41 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference71 = ref span41[0]; + index = 11; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77143,7 +91758,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list93; reference71 = obj61; - ref QuestSequence reference72 = ref span41[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -77151,27 +91767,33 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1007936u, new Vector3(-89.12799f, 64.1947f, -246.84528f), 180) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007936u, new Vector3(-89.12799f, 64.1947f, -246.84528f), 180) { Fly = true }; obj62.Steps = list94; reference72 = obj62; - ref QuestSequence reference73 = ref span41[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj63.Steps = list95; reference73 = obj63; - ref QuestSequence reference74 = ref span41[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -77179,27 +91801,34 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj64.Steps = list96; reference74 = obj64; - ref QuestSequence reference75 = ref span41[4]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list97)[0]; + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference76 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + span6 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB003_01322_Q1_000_000"), @@ -77209,7 +91838,8 @@ public static class AssemblyQuestLoader reference76 = obj66; obj65.Steps = list97; reference75 = obj65; - ref QuestSequence reference77 = ref span41[5]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 @@ -77217,18 +91847,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); obj67.Steps = list99; reference77 = obj67; - ref QuestSequence reference78 = ref span41[6]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list100)[0]; + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2003719u, new Vector3(182.5741f, 24.734863f, -622.33923f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -77236,14 +91871,17 @@ public static class AssemblyQuestLoader num3 = 2; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span42 = CollectionsMarshal.AsSpan(list101); - span42[0] = 2854u; - span42[1] = 2855u; + Span span7 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span7[num4] = 2854u; + num4++; + span7[num4] = 2855u; obj69.KillEnemyDataIds = list101; reference79 = obj69; obj68.Steps = list100; reference78 = obj68; - ref QuestSequence reference80 = ref span41[7]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 7 @@ -77251,26 +91889,32 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); obj70.Steps = list102; reference80 = obj70; - ref QuestSequence reference81 = ref span41[8]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span43 = CollectionsMarshal.AsSpan(list103); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(224.7802f, 21.375952f, -579.86096f), 180); - span43[1] = new QuestStep(EInteractionType.UseItem, 2003720u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) + index2 = 2; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(224.7802f, 21.375952f, -579.86096f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003720u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) { ItemId = 2001234u }; obj71.Steps = list103; reference81 = obj71; - ref QuestSequence reference82 = ref span41[9]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 9 @@ -77278,18 +91922,23 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1008883u, new Vector3(150.19446f, 26.489233f, -555.1385f), 180); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008883u, new Vector3(150.19446f, 26.489233f, -555.1385f), 180); obj72.Steps = list104; reference82 = obj72; - ref QuestSequence reference83 = ref span41[10]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -77303,13 +91952,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "Censored"; questRoot12.Author = list106; - num = 9; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span44 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference84 = ref span44[0]; + index = 9; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -77317,7 +91969,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77336,21 +91990,25 @@ public static class AssemblyQuestLoader }; obj74.Steps = list108; reference84 = obj74; - ref QuestSequence reference85 = ref span44[1]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj75.Steps = list109; reference85 = obj75; - ref QuestSequence reference86 = ref span44[2]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -77358,28 +92016,34 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) { Fly = true }; obj76.Steps = list110; reference86 = obj76; - ref QuestSequence reference87 = ref span44[3]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) { Fly = true, Land = true }; obj77.Steps = list111; reference87 = obj77; - ref QuestSequence reference88 = ref span44[4]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 @@ -77387,36 +92051,45 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span45 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference89 = ref span45[0]; + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference89 = ref span3[index2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span46 = CollectionsMarshal.AsSpan(list113); - span46[0] = 2864u; - span46[1] = 2865u; - span46[2] = 2866u; + num4 = 3; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span7 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span7[num3] = 2864u; + num3++; + span7[num3] = 2865u; + num3++; + span7[num3] = 2866u; obj79.KillEnemyDataIds = list113; reference89 = obj79; - span45[1] = new QuestStep(EInteractionType.Interact, 1007941u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007941u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); obj78.Steps = list112; reference88 = obj78; - ref QuestSequence reference90 = ref span44[5]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 2003722u, new Vector3(189.53223f, 64.25574f, -287.5868f), 180); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003722u, new Vector3(189.53223f, 64.25574f, -287.5868f), 180); obj80.Steps = list114; reference90 = obj80; - ref QuestSequence reference91 = ref span44[6]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 6 @@ -77424,24 +92097,30 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1008947u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008947u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); obj81.Steps = list115; reference91 = obj81; - ref QuestSequence reference92 = ref span44[7]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj82.Steps = list116; reference92 = obj82; - ref QuestSequence reference93 = ref span44[8]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -77449,7 +92128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180); obj83.Steps = list117; reference93 = obj83; questRoot12.QuestSequence = list107; @@ -77459,21 +92140,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "Censored"; questRoot13.Author = list118; - num = 13; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span47 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference94 = ref span47[0]; + index = 13; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77492,7 +92178,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list120; reference94 = obj84; - ref QuestSequence reference95 = ref span47[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -77500,21 +92187,27 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1007949u, new Vector3(14.633362f, 16.165525f, -184.31378f), 180); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007949u, new Vector3(14.633362f, 16.165525f, -184.31378f), 180); obj85.Steps = list121; reference95 = obj85; - ref QuestSequence reference96 = ref span47[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); obj86.Steps = list122; reference96 = obj86; - ref QuestSequence reference97 = ref span47[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -77522,22 +92215,26 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj87.Steps = list123; reference97 = obj87; - ref QuestSequence reference98 = ref span47[4]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span48 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference99 = ref span48[0]; + index2 = 3; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 2003723u, new Vector3(87.08313f, 22.018738f, -635.5535f), 180) { Fly = true, @@ -77546,39 +92243,54 @@ public static class AssemblyQuestLoader num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span49 = CollectionsMarshal.AsSpan(list125); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list125; reference99 = obj89; - ref QuestStep reference100 = ref span48[1]; + num2++; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj90 = new QuestStep(EInteractionType.UseItem, 2003724u, new Vector3(96.11658f, 21.896606f, -644.9531f), 180) { ItemId = 2001237u }; - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span50 = CollectionsMarshal.AsSpan(list126); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + span4 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list126; reference100 = obj90; - span48[2] = new QuestStep(EInteractionType.UseItem, 2003725u, new Vector3(92.94263f, 25.833496f, -655.0851f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003725u, new Vector3(92.94263f, 25.833496f, -655.0851f), 180) { ItemId = 2001237u }; obj88.Steps = list124; reference98 = obj88; - ref QuestSequence reference101 = ref span47[5]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -77586,19 +92298,23 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1007942u, new Vector3(74.93701f, 24.490723f, -665.5528f), 180); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007942u, new Vector3(74.93701f, 24.490723f, -665.5528f), 180); obj91.Steps = list127; reference101 = obj91; - ref QuestSequence reference102 = ref span47[6]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span51 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference103 = ref span51[0]; + index2 = 3; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + ref QuestStep reference103 = ref span3[num2]; QuestStep obj93 = new QuestStep(EInteractionType.UseItem, 2003727u, new Vector3(157.7019f, 22.11029f, -713.28296f), 180) { ItemId = 2001237u @@ -77606,39 +92322,54 @@ public static class AssemblyQuestLoader num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span52 = CollectionsMarshal.AsSpan(list129); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list129; reference103 = obj93; - ref QuestStep reference104 = ref span51[1]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.UseItem, 2003728u, new Vector3(167.65088f, 21.927185f, -707.5151f), 180) { ItemId = 2001237u }; - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span53 = CollectionsMarshal.AsSpan(list130); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + span4 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list130; reference104 = obj94; - span51[2] = new QuestStep(EInteractionType.UseItem, 2003726u, new Vector3(163.53088f, 25.925049f, -688.38025f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003726u, new Vector3(163.53088f, 25.925049f, -688.38025f), 180) { ItemId = 2001237u }; obj92.Steps = list128; reference102 = obj92; - ref QuestSequence reference105 = ref span47[7]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 7 @@ -77646,23 +92377,30 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1007943u, new Vector3(176.98938f, 24.795776f, -688.53284f), 180); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007943u, new Vector3(176.98938f, 24.795776f, -688.53284f), 180); obj95.Steps = list131; reference105 = obj95; - ref QuestSequence reference106 = ref span47[8]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list132)[0]; + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference107 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1007944u, new Vector3(178.45422f, 23.483582f, -641.01624f), 180); num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB005_01324_Q1_000_000"), @@ -77672,7 +92410,8 @@ public static class AssemblyQuestLoader reference107 = questStep11; obj96.Steps = list132; reference106 = obj96; - ref QuestSequence reference108 = ref span47[9]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 9 @@ -77680,21 +92419,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1007946u, new Vector3(220.66064f, 21.481783f, -592.64514f), 180); + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007946u, new Vector3(220.66064f, 21.481783f, -592.64514f), 180); obj97.Steps = list134; reference108 = obj97; - ref QuestSequence reference109 = ref span47[10]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1007947u, new Vector3(150.86597f, 26.382812f, -551.751f), 180); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007947u, new Vector3(150.86597f, 26.382812f, -551.751f), 180); obj98.Steps = list135; reference109 = obj98; - ref QuestSequence reference110 = ref span47[11]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 11 @@ -77702,21 +92447,26 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj99.Steps = list136; reference110 = obj99; - ref QuestSequence reference111 = ref span47[12]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -77734,13 +92484,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "Censored"; questRoot14.Author = list138; - num = 4; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span54 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference112 = ref span54[0]; + index = 4; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -77748,7 +92501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77767,53 +92522,70 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference112 = obj101; - ref QuestSequence reference113 = ref span54[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span55 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference114 = ref span55[0]; + index2 = 3; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference114 = ref span3[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 2003769u, new Vector3(-18.539795f, 48.447266f, -294.2398f), 180) { Fly = true }; - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span56 = CollectionsMarshal.AsSpan(list142); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + span4 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list142; reference114 = obj103; - ref QuestStep reference115 = ref span55[1]; + num2++; + ref QuestStep reference115 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2003770u, new Vector3(-5.996826f, 48.41687f, -322.2553f), 180); num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span57 = CollectionsMarshal.AsSpan(list143); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list143; reference115 = questStep12; - span55[2] = new QuestStep(EInteractionType.Interact, 2003773u, new Vector3(79.17908f, 57.51123f, -305.745f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003773u, new Vector3(79.17908f, 57.51123f, -305.745f), 180) { Fly = true }; obj102.Steps = list141; reference113 = obj102; - ref QuestSequence reference116 = ref span54[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -77821,21 +92593,26 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1007957u, new Vector3(-101.76245f, 64.49596f, -225.08588f), 180) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007957u, new Vector3(-101.76245f, 64.49596f, -225.08588f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj104.Steps = list144; reference116 = obj104; - ref QuestSequence reference117 = ref span54[3]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -77848,13 +92625,16 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "liza"; questRoot15.Author = list146; - num = 3; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span58 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference118 = ref span58[0]; + index = 3; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -77862,71 +92642,97 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); obj106.Steps = list148; reference118 = obj106; - ref QuestSequence reference119 = ref span58[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span59 = CollectionsMarshal.AsSpan(list149); - ref QuestStep reference120 = ref span59[0]; + index2 = 4; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + ref QuestStep reference120 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.243606f, 49.8394f, -374.39398f), 180) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span60 = CollectionsMarshal.AsSpan(list150); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list150 = new List(num4); + CollectionsMarshal.SetCount(list150, num4); + span4 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list150; skipConditions5.StepIf = skipStepConditions5; obj108.SkipConditions = skipConditions5; reference120 = obj108; - ref QuestStep reference121 = ref span59[1]; + num2++; + ref QuestStep reference121 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2003774u, new Vector3(10.269287f, 49.82068f, -375.5398f), 180); num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span61 = CollectionsMarshal.AsSpan(list151); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list151; reference121 = questStep13; - ref QuestStep reference122 = ref span59[2]; + num2++; + ref QuestStep reference122 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2004022u, new Vector3(39.139404f, 48.2948f, -342.33618f), 180); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span62 = CollectionsMarshal.AsSpan(list152); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + span4 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list152; reference122 = questStep14; - span59[3] = new QuestStep(EInteractionType.Interact, 2004020u, new Vector3(51.102417f, 48.2948f, -349.50793f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004020u, new Vector3(51.102417f, 48.2948f, -349.50793f), 180); obj107.Steps = list149; reference119 = obj107; - ref QuestSequence reference123 = ref span58[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -77934,7 +92740,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -77947,21 +92755,26 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "liza"; questRoot16.Author = list154; - num = 4; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - Span span63 = CollectionsMarshal.AsSpan(list155); - ref QuestSequence reference124 = ref span63[0]; + index = 4; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77980,7 +92793,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list156; reference124 = obj110; - ref QuestSequence reference125 = ref span63[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -77988,7 +92802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list157)[0]; + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference126 = ref span3[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.668298f, 48.422268f, -312.28842f), 180) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -77996,7 +92812,9 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new ComplexCombatData + Span span8 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 327u, MinimumKillCount = 3u, @@ -78007,21 +92825,25 @@ public static class AssemblyQuestLoader reference126 = obj112; obj111.Steps = list157; reference125 = obj111; - ref QuestSequence reference127 = ref span63[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj113.Steps = list159; reference127 = obj113; - ref QuestSequence reference128 = ref span63[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -78029,7 +92851,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78042,24 +92866,30 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot17.Author = list161; - num = 3; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span64 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference129 = ref span64[0]; + index = 3; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); obj115.Steps = list163; reference129 = obj115; - ref QuestSequence reference130 = ref span64[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -78067,31 +92897,38 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list164)[0]; + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference131 = ref span3[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, null, new Vector3(65.98078f, 57.753456f, -310.697f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span65 = CollectionsMarshal.AsSpan(list165); - span65[0] = 755u; - span65[1] = 2881u; + num4 = 2; + List list165 = new List(num4); + CollectionsMarshal.SetCount(list165, num4); + span7 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span7[num3] = 755u; + num3++; + span7[num3] = 2881u; obj117.KillEnemyDataIds = list165; reference131 = obj117; obj116.Steps = list164; reference130 = obj116; - ref QuestSequence reference132 = ref span64[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78109,13 +92946,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "Censored"; questRoot18.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span66 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference133 = ref span66[0]; + index = 7; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -78123,7 +92963,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78142,18 +92984,22 @@ public static class AssemblyQuestLoader }; obj119.Steps = list169; reference133 = obj119; - ref QuestSequence reference134 = ref span66[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj120.Steps = list170; reference134 = obj120; - ref QuestSequence reference135 = ref span66[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -78161,8 +93007,9 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span67 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference136 = ref span67[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2003785u, new Vector3(-53.330322f, 64.46936f, -302.54065f), 180) { Fly = true, @@ -78172,7 +93019,9 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -78181,21 +93030,28 @@ public static class AssemblyQuestLoader obj122.ComplexCombatData = list172; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span68 = CollectionsMarshal.AsSpan(list173); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + span4 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list173; skipConditions6.StepIf = skipStepConditions6; obj122.SkipConditions = skipConditions6; reference136 = obj122; - ref QuestStep reference137 = ref span67[1]; + index2++; + ref QuestStep reference137 = ref span3[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, 2003784u, new Vector3(-57.90808f, 64.74402f, -301.68616f), 180) { ItemId = 2001257u, @@ -78204,7 +93060,9 @@ public static class AssemblyQuestLoader num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -78213,21 +93071,28 @@ public static class AssemblyQuestLoader obj123.ComplexCombatData = list174; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - Span span69 = CollectionsMarshal.AsSpan(list175); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list175 = new List(num4); + CollectionsMarshal.SetCount(list175, num4); + span4 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list175; skipConditions7.StepIf = skipStepConditions7; obj123.SkipConditions = skipConditions7; reference137 = obj123; - ref QuestStep reference138 = ref span67[2]; + index2++; + ref QuestStep reference138 = ref span3[index2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2003786u, new Vector3(-63.46228f, 64.83557f, -298.60382f), 180) { ItemId = 2001257u, @@ -78236,7 +93101,9 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list176); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -78246,21 +93113,25 @@ public static class AssemblyQuestLoader reference138 = obj124; obj121.Steps = list171; reference135 = obj121; - ref QuestSequence reference139 = ref span66[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.UseItem, 2003793u, new Vector3(-54.398438f, 64.49988f, -288.8075f), 180) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003793u, new Vector3(-54.398438f, 64.49988f, -288.8075f), 180) { ItemId = 2001258u }; obj125.Steps = list177; reference139 = obj125; - ref QuestSequence reference140 = ref span66[4]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -78268,15 +93139,19 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list178)[0]; + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference141 = ref span3[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2003797u, new Vector3(-49.912292f, 64.46936f, -303.5783f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new ComplexCombatData + num4 = 1; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + span8 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 1u @@ -78285,21 +93160,25 @@ public static class AssemblyQuestLoader reference141 = obj127; obj126.Steps = list178; reference140 = obj126; - ref QuestSequence reference142 = ref span66[5]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj128.Steps = list180; reference142 = obj128; - ref QuestSequence reference143 = ref span66[6]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -78307,7 +93186,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78320,21 +93201,26 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list182); + index = 0; + span[index] = "Censored"; questRoot19.Author = list182; - num = 5; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span70 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference144 = ref span70[0]; + index = 5; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + span2 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78353,7 +93239,8 @@ public static class AssemblyQuestLoader }; obj130.Steps = list184; reference144 = obj130; - ref QuestSequence reference145 = ref span70[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -78361,19 +93248,23 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj131.Steps = list185; reference145 = obj131; - ref QuestSequence reference146 = ref span70[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span71 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference147 = ref span71[0]; + index2 = 3; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.UseItem, 2003805u, new Vector3(176.10437f, 64.530396f, -273.39594f), 180) { Fly = true, @@ -78382,39 +93273,54 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span72 = CollectionsMarshal.AsSpan(list187); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list187; reference147 = obj133; - ref QuestStep reference148 = ref span71[1]; + num2++; + ref QuestStep reference148 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.UseItem, 2003806u, new Vector3(178.45422f, 64.62195f, -271.2292f), 180) { ItemId = 2001260u }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span73 = CollectionsMarshal.AsSpan(list188); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + span4 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list188; reference148 = obj134; - span71[2] = new QuestStep(EInteractionType.UseItem, 2003807u, new Vector3(180.37683f, 64.43884f, -268.17737f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003807u, new Vector3(180.37683f, 64.43884f, -268.17737f), 180) { ItemId = 2001260u }; obj132.Steps = list186; reference146 = obj132; - ref QuestSequence reference149 = ref span70[3]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -78422,21 +93328,26 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.UseItem, 2003808u, new Vector3(169.39038f, 65.50696f, -263.72174f), 180) + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2003808u, new Vector3(169.39038f, 65.50696f, -263.72174f), 180) { ItemId = 2001261u }; obj135.Steps = list189; reference149 = obj135; - ref QuestSequence reference150 = ref span70[4]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78449,13 +93360,16 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "Censored"; questRoot20.Author = list191; - num = 3; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span74 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference151 = ref span74[0]; + index = 3; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 @@ -78463,7 +93377,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78482,16 +93398,18 @@ public static class AssemblyQuestLoader }; obj137.Steps = list193; reference151 = obj137; - ref QuestSequence reference152 = ref span74[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span75 = CollectionsMarshal.AsSpan(list194); - ref QuestStep reference153 = ref span75[0]; + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref QuestStep reference153 = ref span3[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Interact, 2003553u, new Vector3(181.3534f, 64.7135f, -251.05676f), 180) { Fly = true @@ -78499,33 +93417,48 @@ public static class AssemblyQuestLoader num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span76 = CollectionsMarshal.AsSpan(list195); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj139.CompletionQuestVariablesFlags = list195; reference153 = obj139; - ref QuestStep reference154 = ref span75[1]; + num2++; + ref QuestStep reference154 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2003557u, new Vector3(194.10999f, 64.80505f, -262.3484f), 180); - num3 = 6; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span77 = CollectionsMarshal.AsSpan(list196); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list196 = new List(num4); + CollectionsMarshal.SetCount(list196, num4); + span4 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list196; reference154 = questStep15; - span75[2] = new QuestStep(EInteractionType.Interact, 2003556u, new Vector3(206.74438f, 64.56079f, -251.78918f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003556u, new Vector3(206.74438f, 64.56079f, -251.78918f), 180); obj138.Steps = list194; reference152 = obj138; - ref QuestSequence reference155 = ref span74[2]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -78533,7 +93466,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78546,21 +93481,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "Censored"; questRoot21.Author = list198; - num = 5; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span78 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference156 = ref span78[0]; + index = 5; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78579,7 +93519,8 @@ public static class AssemblyQuestLoader }; obj141.Steps = list200; reference156 = obj141; - ref QuestSequence reference157 = ref span78[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -78587,19 +93528,23 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj142.Steps = list201; reference157 = obj142; - ref QuestSequence reference158 = ref span78[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span79 = CollectionsMarshal.AsSpan(list202); - ref QuestStep reference159 = ref span79[0]; + index2 = 5; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Emote, 1005950u, new Vector3(-11.7647705f, 49.2008f, -289.2348f), 180) { Fly = true, @@ -78609,33 +93554,47 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span80 = CollectionsMarshal.AsSpan(list203); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list203); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list203; reference159 = obj144; - ref QuestStep reference160 = ref span79[1]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep obj145 = new QuestStep(EInteractionType.Emote, 1005951u, new Vector3(-24.673828f, 49.15637f, -331.50226f), 180) { Emote = EEmote.Soothe }; - num3 = 6; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span81 = CollectionsMarshal.AsSpan(list204); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + span4 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list204; reference160 = obj145; - ref QuestStep reference161 = ref span79[2]; + num2++; + ref QuestStep reference161 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Emote, 1005947u, new Vector3(-16.159302f, 50.30896f, -351.85785f), 180) { Emote = EEmote.Soothe @@ -78643,39 +93602,54 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span82 = CollectionsMarshal.AsSpan(list205); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj146.CompletionQuestVariablesFlags = list205; reference161 = obj146; - ref QuestStep reference162 = ref span79[3]; + num2++; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj147 = new QuestStep(EInteractionType.Emote, 1005949u, new Vector3(15.42688f, 48.41687f, -324.02533f), 180) { Emote = EEmote.Soothe }; - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span83 = CollectionsMarshal.AsSpan(list206); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list206 = new List(num4); + CollectionsMarshal.SetCount(list206, num4); + span4 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj147.CompletionQuestVariablesFlags = list206; reference162 = obj147; - span79[4] = new QuestStep(EInteractionType.Emote, 1005948u, new Vector3(50.125854f, 48.75892f, -326.55835f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1005948u, new Vector3(50.125854f, 48.75892f, -326.55835f), 180) { Emote = EEmote.Soothe }; obj143.Steps = list202; reference158 = obj143; - ref QuestSequence reference163 = ref span78[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 3 @@ -78683,21 +93657,26 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj148.Steps = list207; reference163 = obj148; - ref QuestSequence reference164 = ref span78[4]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78710,13 +93689,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list209); + index = 0; + span[index] = "Censored"; questRoot22.Author = list209; - num = 6; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span84 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference165 = ref span84[0]; + index = 6; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + span2 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -78724,7 +93706,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78743,20 +93727,25 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference165 = obj150; - ref QuestSequence reference166 = ref span84[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference167 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB110_01334_Q1_000_000"), @@ -78766,7 +93755,8 @@ public static class AssemblyQuestLoader reference167 = questStep16; obj151.Steps = list212; reference166 = obj151; - ref QuestSequence reference168 = ref span84[2]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -78774,30 +93764,37 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2003950u, new Vector3(49.973267f, 49.332397f, -342.67188f), 180); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003950u, new Vector3(49.973267f, 49.332397f, -342.67188f), 180); obj152.Steps = list214; reference168 = obj152; - ref QuestSequence reference169 = ref span84[3]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span85 = CollectionsMarshal.AsSpan(list215); - ref QuestStep reference170 = ref span85[0]; + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2003954u, new Vector3(48.081177f, 48.599854f, -346.21198f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 2871u; + num4 = 1; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + span7 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span7[num3] = 2871u; obj154.KillEnemyDataIds = list216; reference170 = obj154; - ref QuestStep reference171 = ref span85[1]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 2003954u, new Vector3(48.081177f, 48.599854f, -346.21198f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -78805,12 +93802,15 @@ public static class AssemblyQuestLoader num3 = 1; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = 17u; + span7 = CollectionsMarshal.AsSpan(list217); + num4 = 0; + span7[num4] = 17u; obj155.KillEnemyDataIds = list217; reference171 = obj155; obj153.Steps = list215; reference169 = obj153; - ref QuestSequence reference172 = ref span84[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 4 @@ -78818,21 +93818,26 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj156.Steps = list218; reference172 = obj156; - ref QuestSequence reference173 = ref span84[5]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78845,13 +93850,16 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list220); + index = 0; + span[index] = "Censored"; questRoot23.Author = list220; - num = 3; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span86 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference174 = ref span86[0]; + index = 3; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + span2 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -78859,7 +93867,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78878,54 +93888,68 @@ public static class AssemblyQuestLoader }; obj158.Steps = list222; reference174 = obj158; - ref QuestSequence reference175 = ref span86[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span87 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference176 = ref span87[0]; + index2 = 2; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference176 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, 2003782u, new Vector3(65.35437f, 55.61914f, -450.7973f), 180) { Fly = true, ItemId = 2001256u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 756u; + num4 = 1; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + span7 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span7[num3] = 756u; obj160.KillEnemyDataIds = list224; num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span88 = CollectionsMarshal.AsSpan(list225); - span88[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = null; + span4 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj160.CompletionQuestVariablesFlags = list225; reference176 = obj160; - ref QuestStep reference177 = ref span87[1]; + num2++; + ref QuestStep reference177 = ref span3[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Combat, 2003781u, new Vector3(78.446655f, 55.61914f, -470.0542f), 180) { ItemId = 2001256u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 756u; + num4 = 1; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + span7 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span7[num3] = 756u; obj161.KillEnemyDataIds = list226; reference177 = obj161; obj159.Steps = list223; reference175 = obj159; - ref QuestSequence reference178 = ref span86[2]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -78933,7 +93957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -78946,22 +93972,27 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "Censored"; questRoot24.Author = list228; questRoot24.Comment = "FATE"; - num = 2; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span89 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference179 = ref span89[0]; + index = 2; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span2 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78980,7 +94011,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list230; reference179 = obj163; - ref QuestSequence reference180 = ref span89[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -78988,13 +94020,15 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span90 = CollectionsMarshal.AsSpan(list231); - span90[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(92.81918f, 55.511665f, -464.93253f), 180) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(92.81918f, 55.511665f, -464.93253f), 180) { Fly = true, Comment = "Do the FATE" }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79007,21 +94041,26 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "liza"; questRoot25.Author = list232; - num = 5; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span91 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference181 = ref span91[0]; + index = 5; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79040,7 +94079,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list234; reference181 = obj165; - ref QuestSequence reference182 = ref span91[1]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -79048,21 +94088,26 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj166.Steps = list235; reference182 = obj166; - ref QuestSequence reference183 = ref span91[2]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list236)[0]; + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + ref QuestStep reference184 = ref span3[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Combat, 2003686u, new Vector3(57.602783f, 48.111572f, -388.29633f), 180) { Fly = true, @@ -79072,15 +94117,19 @@ public static class AssemblyQuestLoader num3 = 3; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); - Span span92 = CollectionsMarshal.AsSpan(list237); - span92[0] = 2899u; - span92[1] = 2900u; - span92[2] = 2901u; + span7 = CollectionsMarshal.AsSpan(list237); + num4 = 0; + span7[num4] = 2899u; + num4++; + span7[num4] = 2900u; + num4++; + span7[num4] = 2901u; obj168.KillEnemyDataIds = list237; reference184 = obj168; obj167.Steps = list236; reference183 = obj167; - ref QuestSequence reference185 = ref span91[3]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -79088,21 +94137,26 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj169.Steps = list238; reference185 = obj169; - ref QuestSequence reference186 = ref span91[4]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79115,13 +94169,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list240); + index = 0; + span[index] = "liza"; questRoot26.Author = list240; - num = 3; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span93 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference187 = ref span93[0]; + index = 3; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + span2 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -79129,27 +94186,34 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); obj171.Steps = list242; reference187 = obj171; - ref QuestSequence reference188 = ref span93[1]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list243)[0]; + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref QuestStep reference189 = ref span3[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, null, new Vector3(51.48164f, 55.599014f, -491.209f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - CollectionsMarshal.AsSpan(list244)[0] = new ComplexCombatData + num4 = 1; + List list244 = new List(num4); + CollectionsMarshal.SetCount(list244, num4); + span8 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 2833u, MinimumKillCount = 2u @@ -79158,7 +94222,8 @@ public static class AssemblyQuestLoader reference189 = obj173; obj172.Steps = list243; reference188 = obj172; - ref QuestSequence reference190 = ref span93[2]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -79166,7 +94231,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79179,24 +94246,30 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list246); + index = 0; + span[index] = "liza"; questRoot27.Author = list246; - num = 8; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span94 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference191 = ref span94[0]; + index = 8; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + span2 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); obj175.Steps = list248; reference191 = obj175; - ref QuestSequence reference192 = ref span94[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -79204,39 +94277,47 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span95 = CollectionsMarshal.AsSpan(list249); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.21657f, 55.28576f, -500.41245f), 180) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.21657f, 55.28576f, -500.41245f), 180) { Fly = true }; - span95[1] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); obj176.Steps = list249; reference192 = obj176; - ref QuestSequence reference193 = ref span94[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span96 = CollectionsMarshal.AsSpan(list250); - ref QuestStep reference194 = ref span96[0]; + index2 = 2; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + ref QuestStep reference194 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); num3 = 1; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list251); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB205_01339_SCENE00008_EVENTAREA_WARP_YESNO_TITLE") }; questStep17.DialogueChoices = list251; reference194 = questStep17; - span96[1] = new QuestStep(EInteractionType.Interact, 2003743u, new Vector3(227.00842f, 22.75116f, -582.81836f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003743u, new Vector3(227.00842f, 22.75116f, -582.81836f), 180); obj177.Steps = list250; reference193 = obj177; - ref QuestSequence reference195 = ref span94[3]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 @@ -79244,113 +94325,153 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.UseItem, 2003744u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2003744u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) { IgnoreDistanceToObject = true, ItemId = 2001244u }; obj178.Steps = list252; reference195 = obj178; - ref QuestSequence reference196 = ref span94[4]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span97 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference197 = ref span97[0]; + index2 = 4; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref QuestStep reference197 = ref span3[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 2880u; + num4 = 1; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + span7 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span7[num3] = 2880u; obj180.KillEnemyDataIds = list254; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span98 = CollectionsMarshal.AsSpan(list255); - span98[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = null; + span4 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span4[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj180.CompletionQuestVariablesFlags = list255; reference197 = obj180; - ref QuestStep reference198 = ref span97[1]; + num2++; + ref QuestStep reference198 = ref span3[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Combat, 2003745u, new Vector3(242.8778f, 22.507019f, -584.37476f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = 2880u; + num4 = 1; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + span7 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span7[num3] = 2880u; obj181.KillEnemyDataIds = list256; num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span99 = CollectionsMarshal.AsSpan(list257); - span99[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + span4 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span4[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj181.CompletionQuestVariablesFlags = list257; reference198 = obj181; - ref QuestStep reference199 = ref span97[2]; + num2++; + ref QuestStep reference199 = ref span3[num2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 2880u; + num4 = 1; + List list258 = new List(num4); + CollectionsMarshal.SetCount(list258, num4); + span7 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span7[num3] = 2880u; obj182.KillEnemyDataIds = list258; num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span100 = CollectionsMarshal.AsSpan(list259); - span100[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = null; + span4 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span4[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj182.CompletionQuestVariablesFlags = list259; reference199 = obj182; - ref QuestStep reference200 = ref span97[3]; + num2++; + ref QuestStep reference200 = ref span3[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2003745u, new Vector3(242.8778f, 22.507019f, -584.37476f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 2880u; + num4 = 1; + List list260 = new List(num4); + CollectionsMarshal.SetCount(list260, num4); + span7 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span7[num3] = 2880u; obj183.KillEnemyDataIds = list260; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span101 = CollectionsMarshal.AsSpan(list261); - span101[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + span4 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span4[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj183.CompletionQuestVariablesFlags = list261; reference200 = obj183; obj179.Steps = list253; reference196 = obj179; - ref QuestSequence reference201 = ref span94[5]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 5 @@ -79358,35 +94479,43 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list262)[0]; + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference202 = ref span3[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = 2883u; + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + span7 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span7[num3] = 2883u; obj185.KillEnemyDataIds = list263; reference202 = obj185; obj184.Steps = list262; reference201 = obj184; - ref QuestSequence reference203 = ref span94[6]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj186.Steps = list264; reference203 = obj186; - ref QuestSequence reference204 = ref span94[7]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -79394,7 +94523,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79407,21 +94538,26 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "Censored"; questRoot28.Author = list266; - num = 5; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span102 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference205 = ref span102[0]; + index = 5; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79440,7 +94576,8 @@ public static class AssemblyQuestLoader }; obj188.Steps = list268; reference205 = obj188; - ref QuestSequence reference206 = ref span102[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -79448,23 +94585,27 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; obj189.Steps = list269; reference206 = obj189; - ref QuestSequence reference207 = ref span102[2]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span103 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference208 = ref span103[0]; + index2 = 5; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference208 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -79485,93 +94626,126 @@ public static class AssemblyQuestLoader num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB206_01340_SCENE00023_EVENTAREA_WARP_YESNO_TITLE") }; obj191.DialogueChoices = list271; reference208 = obj191; - ref QuestStep reference209 = ref span103[1]; + num2++; + ref QuestStep reference209 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(206.34064f, 26.164192f, -610.01776f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - CollectionsMarshal.AsSpan(list272)[0] = 2849u; + num4 = 1; + List list272 = new List(num4); + CollectionsMarshal.SetCount(list272, num4); + span7 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span7[num3] = 2849u; obj192.KillEnemyDataIds = list272; num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span104 = CollectionsMarshal.AsSpan(list273); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list273); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj192.CompletionQuestVariablesFlags = list273; reference209 = obj192; - ref QuestStep reference210 = ref span103[2]; + num2++; + ref QuestStep reference210 = ref span3[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(214.34813f, 22.582228f, -620.98737f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = 2849u; + num4 = 1; + List list274 = new List(num4); + CollectionsMarshal.SetCount(list274, num4); + span7 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span7[num3] = 2849u; obj193.KillEnemyDataIds = list274; num3 = 6; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - Span span105 = CollectionsMarshal.AsSpan(list275); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list275); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list275; reference210 = obj193; - ref QuestStep reference211 = ref span103[3]; + num2++; + ref QuestStep reference211 = ref span3[num2]; QuestStep obj194 = new QuestStep(EInteractionType.Combat, null, new Vector3(217.2839f, 21.428452f, -603.1931f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = 2849u; + num4 = 1; + List list276 = new List(num4); + CollectionsMarshal.SetCount(list276, num4); + span7 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span7[num3] = 2849u; obj194.KillEnemyDataIds = list276; num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span106 = CollectionsMarshal.AsSpan(list277); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj194.CompletionQuestVariablesFlags = list277; reference211 = obj194; - ref QuestStep reference212 = ref span103[4]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Combat, null, new Vector3(230.32195f, 21.387749f, -600.7312f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = 2849u; + num4 = 1; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + span7 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span7[num3] = 2849u; obj195.KillEnemyDataIds = list278; reference212 = obj195; obj190.Steps = list270; reference207 = obj190; - ref QuestSequence reference213 = ref span102[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 @@ -79579,21 +94753,26 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.UseItem, 2003647u, new Vector3(223.43774f, 21.469421f, -612.32935f), 180) + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2003647u, new Vector3(223.43774f, 21.469421f, -612.32935f), 180) { ItemId = 2001222u }; obj196.Steps = list279; reference213 = obj196; - ref QuestSequence reference214 = ref span102[4]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79619,13 +94798,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list281); + index = 0; + span[index] = "Censored"; questRoot29.Author = list281; - num = 7; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span107 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference215 = ref span107[0]; + index = 7; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + span2 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 0 @@ -79633,7 +94815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79652,21 +94836,25 @@ public static class AssemblyQuestLoader }; obj198.Steps = list283; reference215 = obj198; - ref QuestSequence reference216 = ref span107[1]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj199.Steps = list284; reference216 = obj199; - ref QuestSequence reference217 = ref span107[2]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -79674,8 +94862,9 @@ public static class AssemblyQuestLoader num2 = 4; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span108 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference218 = ref span108[0]; + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + ref QuestStep reference218 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -79696,96 +94885,123 @@ public static class AssemblyQuestLoader num3 = 1; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - CollectionsMarshal.AsSpan(list286)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list286); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB207_01341_SCENE00018_EVENTAREA_WARP_YESNO_TITLE") }; obj201.DialogueChoices = list286; reference218 = obj201; - ref QuestStep reference219 = ref span108[1]; + index2++; + ref QuestStep reference219 = ref span3[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2003885u, new Vector3(167.68127f, 21.438904f, -564.66016f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 755u; + num4 = 1; + List list287 = new List(num4); + CollectionsMarshal.SetCount(list287, num4); + span7 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span7[num3] = 755u; obj202.KillEnemyDataIds = list287; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 6; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - Span span109 = CollectionsMarshal.AsSpan(list288); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list288; skipConditions8.StepIf = skipStepConditions8; obj202.SkipConditions = skipConditions8; reference219 = obj202; - ref QuestStep reference220 = ref span108[2]; + index2++; + ref QuestStep reference220 = ref span3[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2003886u, new Vector3(170.8247f, 21.499878f, -565.17896f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 755u; + num4 = 1; + List list289 = new List(num4); + CollectionsMarshal.SetCount(list289, num4); + span7 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + span7[num3] = 755u; obj203.KillEnemyDataIds = list289; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 6; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span110 = CollectionsMarshal.AsSpan(list290); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list290); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list290; skipConditions9.StepIf = skipStepConditions9; obj203.SkipConditions = skipConditions9; reference220 = obj203; - ref QuestStep reference221 = ref span108[3]; + index2++; + ref QuestStep reference221 = ref span3[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, 2003887u, new Vector3(174.05957f, 21.438904f, -565.301f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 755u; + num4 = 1; + List list291 = new List(num4); + CollectionsMarshal.SetCount(list291, num4); + span7 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span7[num3] = 755u; obj204.KillEnemyDataIds = list291; reference221 = obj204; obj200.Steps = list285; reference217 = obj200; - ref QuestSequence reference222 = ref span107[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.UseItem, 2003888u, new Vector3(172.74731f, 21.377869f, -549.0654f), 180) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003888u, new Vector3(172.74731f, 21.377869f, -549.0654f), 180) { ItemId = 2001275u }; obj205.Steps = list292; reference222 = obj205; - ref QuestSequence reference223 = ref span107[4]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 4 @@ -79793,7 +95009,9 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list293)[0]; + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference224 = ref span3[index2]; QuestStep obj207 = new QuestStep(EInteractionType.Combat, 2003892u, new Vector3(163.07312f, 21.499878f, -571.2215f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79801,20 +95019,25 @@ public static class AssemblyQuestLoader num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = 2845u; + span7 = CollectionsMarshal.AsSpan(list294); + num4 = 0; + span7[num4] = 2845u; obj207.KillEnemyDataIds = list294; reference224 = obj207; obj206.Steps = list293; reference223 = obj206; - ref QuestSequence reference225 = ref span107[5]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79833,7 +95056,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list295; reference225 = obj208; - ref QuestSequence reference226 = ref span107[6]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -79841,7 +95065,9 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79859,21 +95085,26 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list297); + index = 0; + span[index] = "Censored"; questRoot30.Author = list297; - num = 3; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span111 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference227 = ref span111[0]; + index = 3; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + span2 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79892,7 +95123,8 @@ public static class AssemblyQuestLoader }; obj210.Steps = list299; reference227 = obj210; - ref QuestSequence reference228 = ref span111[1]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -79900,8 +95132,9 @@ public static class AssemblyQuestLoader num2 = 7; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span112 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference229 = ref span112[0]; + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + ref QuestStep reference229 = ref span3[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -79919,17 +95152,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + num4 = 1; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + span6 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB209_01343_SCENE00009_EVENTAREA_WARP_YESNO_TITLE") }; obj212.DialogueChoices = list301; reference229 = obj212; - ref QuestStep reference230 = ref span112[1]; + index2++; + ref QuestStep reference230 = ref span3[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, 1008786u, new Vector3(229.29724f, 21.671387f, -592.4315f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79937,21 +95173,30 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 757u; + span7 = CollectionsMarshal.AsSpan(list302); + num4 = 0; + span7[num4] = 757u; obj213.KillEnemyDataIds = list302; - num3 = 6; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span113 = CollectionsMarshal.AsSpan(list303); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list303 = new List(num4); + CollectionsMarshal.SetCount(list303, num4); + span4 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj213.CompletionQuestVariablesFlags = list303; reference230 = obj213; - ref QuestStep reference231 = ref span112[2]; + index2++; + ref QuestStep reference231 = ref span3[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1008784u, new Vector3(233.875f, 21.66776f, -605.2186f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79959,21 +95204,30 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = 757u; + span7 = CollectionsMarshal.AsSpan(list304); + num4 = 0; + span7[num4] = 757u; obj214.KillEnemyDataIds = list304; - num3 = 6; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - Span span114 = CollectionsMarshal.AsSpan(list305); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list305 = new List(num4); + CollectionsMarshal.SetCount(list305, num4); + span4 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj214.CompletionQuestVariablesFlags = list305; reference231 = obj214; - ref QuestStep reference232 = ref span112[3]; + index2++; + ref QuestStep reference232 = ref span3[index2]; QuestStep obj215 = new QuestStep(EInteractionType.Combat, 1008782u, new Vector3(215.96094f, 21.603994f, -613.3364f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79981,21 +95235,30 @@ public static class AssemblyQuestLoader num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = 757u; + span7 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span7[num4] = 757u; obj215.KillEnemyDataIds = list306; - num3 = 6; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - Span span115 = CollectionsMarshal.AsSpan(list307); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list307 = new List(num4); + CollectionsMarshal.SetCount(list307, num4); + span4 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj215.CompletionQuestVariablesFlags = list307; reference232 = obj215; - ref QuestStep reference233 = ref span112[4]; + index2++; + ref QuestStep reference233 = ref span3[index2]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, 1008781u, new Vector3(228.29016f, 22.010138f, -616.083f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80003,21 +95266,30 @@ public static class AssemblyQuestLoader num3 = 1; List list308 = new List(num3); CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = 758u; + span7 = CollectionsMarshal.AsSpan(list308); + num4 = 0; + span7[num4] = 758u; obj216.KillEnemyDataIds = list308; - num3 = 6; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - Span span116 = CollectionsMarshal.AsSpan(list309); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + span4 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj216.CompletionQuestVariablesFlags = list309; reference233 = obj216; - ref QuestStep reference234 = ref span112[5]; + index2++; + ref QuestStep reference234 = ref span3[index2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 1008785u, new Vector3(239.52087f, 25.649525f, -614.2825f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80025,21 +95297,30 @@ public static class AssemblyQuestLoader num3 = 1; List list310 = new List(num3); CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 758u; + span7 = CollectionsMarshal.AsSpan(list310); + num4 = 0; + span7[num4] = 758u; obj217.KillEnemyDataIds = list310; - num3 = 6; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - Span span117 = CollectionsMarshal.AsSpan(list311); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + span4 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj217.CompletionQuestVariablesFlags = list311; reference234 = obj217; - ref QuestStep reference235 = ref span112[6]; + index2++; + ref QuestStep reference235 = ref span3[index2]; QuestStep obj218 = new QuestStep(EInteractionType.Combat, 1008783u, new Vector3(240.80249f, 26.19751f, -598.50464f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80047,20 +95328,25 @@ public static class AssemblyQuestLoader num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = 758u; + span7 = CollectionsMarshal.AsSpan(list312); + num4 = 0; + span7[num4] = 758u; obj218.KillEnemyDataIds = list312; reference235 = obj218; obj211.Steps = list300; reference228 = obj211; - ref QuestSequence reference236 = ref span111[2]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -80086,13 +95372,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list314); + index = 0; + span[index] = "liza"; questRoot31.Author = list314; - num = 4; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span118 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference237 = ref span118[0]; + index = 4; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + span2 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -80100,7 +95389,9 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -80119,23 +95410,28 @@ public static class AssemblyQuestLoader }; obj220.Steps = list316; reference237 = obj220; - ref QuestSequence reference238 = ref span118[1]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list317)[0]; + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference239 = ref span3[num2]; QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice + num4 = 1; + List list318 = new List(num4); + CollectionsMarshal.SetCount(list318, num4); + span6 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB210_01344_Q1_000_000"), @@ -80145,7 +95441,8 @@ public static class AssemblyQuestLoader reference239 = obj222; obj221.Steps = list317; reference238 = obj221; - ref QuestSequence reference240 = ref span118[2]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -80153,21 +95450,26 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 2003963u, new Vector3(91.203125f, 55.74109f, -483.299f), 180) + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003963u, new Vector3(91.203125f, 55.74109f, -483.299f), 180) { Comment = "Spawns enemy that we ignore" }; obj223.Steps = list319; reference240 = obj223; - ref QuestSequence reference241 = ref span118[3]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -80180,13 +95482,16 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list321); + index = 0; + span[index] = "JerryWester"; questRoot32.Author = list321; - num = 5; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span119 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference242 = ref span119[0]; + index = 5; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + span2 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -80194,7 +95499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -80207,21 +95514,25 @@ public static class AssemblyQuestLoader }; obj225.Steps = list323; reference242 = obj225; - ref QuestSequence reference243 = ref span119[1]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { StopDistance = 7f }; obj226.Steps = list324; reference243 = obj226; - ref QuestSequence reference244 = ref span119[2]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -80229,12 +95540,14 @@ public static class AssemblyQuestLoader num2 = 2; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span120 = CollectionsMarshal.AsSpan(list325); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.90674f, 52.66078f, -53.850098f), 140) + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.90674f, 52.66078f, -53.850098f), 140) { Fly = true }; - ref QuestStep reference245 = ref span120[1]; + index2++; + ref QuestStep reference245 = ref span3[index2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2003561u, new Vector3(175.06665f, 52.628296f, -51.651794f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80242,25 +95555,31 @@ public static class AssemblyQuestLoader num3 = 2; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span121 = CollectionsMarshal.AsSpan(list326); - span121[0] = 2853u; - span121[1] = 2877u; + span7 = CollectionsMarshal.AsSpan(list326); + num4 = 0; + span7[num4] = 2853u; + num4++; + span7[num4] = 2877u; obj228.KillEnemyDataIds = list326; reference245 = obj228; obj227.Steps = list325; reference244 = obj227; - ref QuestSequence reference246 = ref span119[3]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1008598u, new Vector3(140.45923f, 55.321606f, -33.066345f), 140); + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008598u, new Vector3(140.45923f, 55.321606f, -33.066345f), 140); obj229.Steps = list327; reference246 = obj229; - ref QuestSequence reference247 = ref span119[4]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue @@ -80268,7 +95587,9 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { Fly = true }; @@ -80281,21 +95602,26 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list329); + index = 0; + span[index] = "JerryWester"; questRoot33.Author = list329; - num = 10; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span122 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference248 = ref span122[0]; + index = 10; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + span2 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -80309,7 +95635,8 @@ public static class AssemblyQuestLoader }; obj231.Steps = list331; reference248 = obj231; - ref QuestSequence reference249 = ref span122[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 @@ -80317,24 +95644,29 @@ public static class AssemblyQuestLoader num2 = 2; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span123 = CollectionsMarshal.AsSpan(list332); - span123[0] = new QuestStep(EInteractionType.UseItem, null, null, 140) + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 140) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span123[1] = new QuestStep(EInteractionType.Interact, 1008600u, new Vector3(-516.35004f, 14.956879f, -370.47382f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008600u, new Vector3(-516.35004f, 14.956879f, -370.47382f), 140); obj232.Steps = list332; reference249 = obj232; - ref QuestSequence reference250 = ref span122[2]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.823868f, 37.760002f, 80.06303f), 131) + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.823868f, 37.760002f, 80.06303f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -80345,7 +95677,8 @@ public static class AssemblyQuestLoader }; obj233.Steps = list333; reference250 = obj233; - ref QuestSequence reference251 = ref span122[3]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 @@ -80353,7 +95686,9 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1008604u, new Vector3(34.77527f, 7.1999946f, -93.91931f), 130) + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008604u, new Vector3(34.77527f, 7.1999946f, -93.91931f), 130) { AethernetShortcut = new AethernetShortcut { @@ -80363,18 +95698,22 @@ public static class AssemblyQuestLoader }; obj234.Steps = list334; reference251 = obj234; - ref QuestSequence reference252 = ref span122[4]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); obj235.Steps = list335; reference252 = obj235; - ref QuestSequence reference253 = ref span122[5]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 @@ -80382,19 +95721,23 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + span3 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj236.Steps = list336; reference253 = obj236; - ref QuestSequence reference254 = ref span122[6]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - Span span124 = CollectionsMarshal.AsSpan(list337); - ref QuestStep reference255 = ref span124[0]; + index2 = 2; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + ref QuestStep reference255 = ref span3[num2]; QuestStep obj238 = new QuestStep(EInteractionType.Interact, 1001968u, new Vector3(136.0647f, 4.0099874f, -67.85687f), 131) { AethernetShortcut = new AethernetShortcut @@ -80403,35 +95746,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - Span span125 = CollectionsMarshal.AsSpan(list338); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + span4 = CollectionsMarshal.AsSpan(list338); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj238.CompletionQuestVariablesFlags = list338; reference255 = obj238; - ref QuestStep reference256 = ref span124[1]; + num2++; + ref QuestStep reference256 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1001966u, new Vector3(126.7262f, 4.01f, -83.84839f), 131); num3 = 6; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - Span span126 = CollectionsMarshal.AsSpan(list339); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list339); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list339; reference256 = questStep18; obj237.Steps = list337; reference254 = obj237; - ref QuestSequence reference257 = ref span122[7]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 7 @@ -80439,7 +95796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -80449,18 +95808,22 @@ public static class AssemblyQuestLoader }; obj239.Steps = list340; reference257 = obj239; - ref QuestSequence reference258 = ref span122[8]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); obj240.Steps = list341; reference258 = obj240; - ref QuestSequence reference259 = ref span122[9]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = byte.MaxValue @@ -80468,7 +95831,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131) { AethernetShortcut = new AethernetShortcut { @@ -80489,13 +95854,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -80503,7 +95871,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -80516,23 +95886,27 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-406.26895f, 23.167036f, -351.92947f), 140) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-406.26895f, 23.167036f, -351.92947f), 140) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1008632u, new Vector3(-388.6931f, 23f, -350.94226f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008632u, new Vector3(-388.6931f, 23f, -350.94226f), 140); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -80540,7 +95914,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2003573u, new Vector3(184.64929f, 52.140015f, 29.06836f), 140) { StopDistance = 0.25f, @@ -80551,27 +95927,33 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 2848u; + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = 2848u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1008640u, new Vector3(126.17676f, 49.276558f, -173.23572f), 140) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008640u, new Vector3(126.17676f, 49.276558f, -173.23572f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -80579,7 +95961,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -80597,24 +95981,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008542u, new Vector3(0.8086548f, -1.9957249f, -42.557434f), 351); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008542u, new Vector3(0.8086548f, -1.9957249f, -42.557434f), 351); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -80622,45 +96012,53 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span4[0]; + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198, AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new DialogueChoice + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span5 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE212_01356_Q1_000_1") }; obj9.DialogueChoices = list13; reference9 = obj9; - span4[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span5 = CollectionsMarshal.AsSpan(list14); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.67426f, 1.7067826f, 216.63573f), 138) + index2 = 3; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.67426f, 1.7067826f, 216.63573f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.872204f, -3.1182384f, 61.10103f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.872204f, -3.1182384f, 61.10103f), 138) { Fly = true }; - span5[2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list10; @@ -80670,13 +96068,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list15; - num = 5; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span6[0]; + index = 5; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -80684,29 +96085,35 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span7 = CollectionsMarshal.AsSpan(list18); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.63104f, -38.72321f, -114.53675f), 138) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.63104f, -38.72321f, -114.53675f), 138) { Fly = true }; - span7[1] = new QuestStep(EInteractionType.UseItem, 1008683u, new Vector3(-208.45355f, -38.993774f, -113.29828f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1008683u, new Vector3(-208.45355f, -38.993774f, -113.29828f), 138) { ItemId = 2001214u }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span6[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -80714,7 +96121,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-450.67154f, -41.88713f, -238.96031f), 138) { Fly = true, @@ -80723,57 +96132,76 @@ public static class AssemblyQuestLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = 2861u; - span8[1] = 2862u; - span8[2] = 2863u; + span4 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span4[index3] = 2861u; + index3++; + span4[index3] = 2862u; + index3++; + span4[index3] = 2863u; obj14.KillEnemyDataIds = list20; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span6[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span9 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span9[0]; + index2 = 2; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1008684u, new Vector3(-451.77386f, -41.985073f, -237.72034f), 138) { StopDistance = 0.25f }; - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span6 = CollectionsMarshal.AsSpan(list22); + 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); obj16.CompletionQuestVariablesFlags = list22; reference16 = obj16; - ref QuestStep reference17 = ref span9[1]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1008685u, new Vector3(-450.33954f, -41.83395f, -240.13129f), 138); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span11 = CollectionsMarshal.AsSpan(list23); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list23; reference17 = questStep; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference18 = ref span6[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -80781,89 +96209,88 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.72484f, -3.1182368f, 60.3442f), 138) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.72484f, -3.1182368f, 60.3442f), 138) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj17.Steps = list24; reference18 = obj17; questRoot3.QuestSequence = list16; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(1359); QuestRoot questRoot4 = new QuestRoot(); - num = 2; + num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - span13[0] = "JerryWester"; - span13[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list25; - num = 6; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span14 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span14[0]; + index = 6; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj18.Steps = list27; reference19 = obj18; - ref QuestSequence reference20 = ref span14[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 2; + num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.9162f, -16.555008f, -246.89261f), 138) - { - Fly = true - }; - ref QuestStep reference21 = ref span15[1]; - QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-203.74379f, -42.300938f, -250.68587f), 138) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; + QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-203.21945f, -42.30963f, -253.10411f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = 2890u; - span16[1] = 2891u; + index3 = 2; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span4 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span4[num3] = 2890u; + num3++; + span4[num3] = 2891u; obj20.KillEnemyDataIds = list29; reference21 = obj20; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference22 = ref span14[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span17 = CollectionsMarshal.AsSpan(list30); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.74171f, -7.5191383f, -282.04623f), 138) - { - Fly = true - }; - span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-194.43138f, -30.8899f, -322.80032f), 138) - { - Fly = true - }; - ref QuestStep reference23 = ref span17[2]; - QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.43138f, -40.785873f, -322.80032f), 138) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; + QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.26031f, -40.771305f, -323.02054f), 138) { StopDistance = 0.25f, Fly = true, @@ -80872,70 +96299,72 @@ public static class AssemblyQuestLoader num3 = 4; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = 2892u; - span18[1] = 2893u; - span18[2] = 2894u; - span18[3] = 2895u; + span4 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span4[index3] = 2892u; + index3++; + span4[index3] = 2893u; + index3++; + span4[index3] = 2894u; + index3++; + span4[index3] = 2895u; obj22.KillEnemyDataIds = list31; reference23 = obj22; obj21.Steps = list30; reference22 = obj21; - ref QuestSequence reference24 = ref span14[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 2; + num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-310.84634f, -17.898666f, -338.26837f), 138) - { - Fly = true - }; - ref QuestStep reference25 = ref span19[1]; - QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-298.15454f, -41.646805f, -328.1372f), 138) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; + QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-301.09625f, -41.52895f, -327.2867f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = 2896u; - span20[1] = 2897u; - span20[2] = 2898u; + index3 = 3; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + span4 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span4[num3] = 2896u; + num3++; + span4[num3] = 2897u; + num3++; + span4[num3] = 2898u; obj24.KillEnemyDataIds = list33; reference25 = obj24; obj23.Steps = list32; reference24 = obj23; - ref QuestSequence reference26 = ref span14[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span21 = CollectionsMarshal.AsSpan(list34); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-328.71237f, -8.106506f, -314.975f), 138) - { - Fly = true - }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.59018f, -8.778947f, -299.32205f), 138) - { - Fly = true - }; - span21[2] = new QuestStep(EInteractionType.Interact, 1008706u, new Vector3(-404.8371f, -32.810974f, -297.23047f), 138) + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.274f, -32.782516f, -296.08218f), 138) { Fly = true }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008706u, new Vector3(-404.8371f, -32.810974f, -297.23047f), 138); obj25.Steps = list34; reference26 = obj25; - ref QuestSequence reference27 = ref span14[5]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -80943,7 +96372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) { StopDistance = 5f }; @@ -80956,27 +96387,33 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list36; - num = 5; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span22 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span22[0]; + index = 5; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) { StopDistance = 5f }; obj27.Steps = list38; reference28 = obj27; - ref QuestSequence reference29 = ref span22[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -80984,8 +96421,9 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span23 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference30 = ref span23[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -80993,28 +96431,35 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE216_01360_Q1_000_1") }; obj29.DialogueChoices = list40; reference30 = obj29; - span23[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj28.Steps = list39; reference29 = obj28; - ref QuestSequence reference31 = ref span22[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1008679u, new Vector3(-1.2055054f, 1.6041331f, -3.830017f), 198); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008679u, new Vector3(-1.2055054f, 1.6041331f, -3.830017f), 198); obj30.Steps = list41; reference31 = obj30; - ref QuestSequence reference32 = ref span22[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 @@ -81022,12 +96467,14 @@ public static class AssemblyQuestLoader num2 = 3; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span24 = CollectionsMarshal.AsSpan(list42); - span24[0] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) { TargetTerritoryId = (ushort)129 }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(709.16064f, 66.00693f, -285.91016f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(709.16064f, 66.00693f, -285.91016f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -81036,19 +96483,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span24[2] = new QuestStep(EInteractionType.Interact, 1008692u, new Vector3(712.8556f, 66.027f, -279.07227f), 135); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008692u, new Vector3(712.8556f, 66.027f, -279.07227f), 135); obj31.Steps = list42; reference32 = obj31; - ref QuestSequence reference33 = ref span22[4]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span25 = CollectionsMarshal.AsSpan(list43); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(706.98395f, 66.00693f, -286.78662f), 135) + index2 = 5; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(706.98395f, 66.00693f, -286.78662f), 135) { Mount = true, SkipConditions = new SkipConditions @@ -81059,7 +96509,8 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, SkipConditions = new SkipConditions @@ -81070,7 +96521,8 @@ public static class AssemblyQuestLoader } } }; - span25[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SkipConditions = new SkipConditions @@ -81081,7 +96533,8 @@ public static class AssemblyQuestLoader } } }; - span25[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.7082f, 8.973654f, 584.51135f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.7082f, 8.973654f, 584.51135f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -81093,7 +96546,8 @@ public static class AssemblyQuestLoader } } }; - span25[4] = new QuestStep(EInteractionType.CompleteQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135); obj32.Steps = list43; reference33 = obj32; questRoot5.QuestSequence = list37; @@ -81103,13 +96557,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span26 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference34 = ref span26[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -81117,7 +96574,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SkipConditions = new SkipConditions @@ -81130,15 +96589,18 @@ public static class AssemblyQuestLoader }; obj33.Steps = list46; reference34 = obj33; - ref QuestSequence reference35 = ref span26[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Duty, null, null, 135) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 135) { DutyOptions = new DutyOptions { @@ -81147,7 +96609,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list47; reference35 = obj34; - ref QuestSequence reference36 = ref span26[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -81155,23 +96618,27 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span27 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference37 = ref span27[0]; + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + span5 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE217_01361_Q1_000_1") }; obj36.DialogueChoices = list49; reference37 = obj36; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj35.Steps = list48; reference36 = obj35; questRoot6.QuestSequence = list45; @@ -81181,21 +96648,26 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list50; - num = 2; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference38 = ref span28[0]; + index = 2; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -81208,7 +96680,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference38 = obj37; - ref QuestSequence reference39 = ref span28[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -81216,7 +96689,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008694u, new Vector3(-117.265625f, 9.999865f, 154.7417f), 129); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008694u, new Vector3(-117.265625f, 9.999865f, 154.7417f), 129); obj38.Steps = list53; reference39 = obj38; questRoot7.QuestSequence = list51; @@ -81226,21 +96701,26 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list54; - num = 2; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span29 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference40 = ref span29[0]; + index = 2; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008696u, new Vector3(-115.58716f, 9.999781f, 156.08447f), 129) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008696u, new Vector3(-115.58716f, 9.999781f, 156.08447f), 129) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -81254,7 +96734,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference40 = obj39; - ref QuestSequence reference41 = ref span29[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -81262,17 +96743,20 @@ public static class AssemblyQuestLoader num2 = 3; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span30 = CollectionsMarshal.AsSpan(list57); - span30[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span30[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span30[2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj40.Steps = list57; reference41 = obj40; questRoot8.QuestSequence = list55; @@ -81282,22 +96766,27 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "Censored"; questRoot9.Author = list58; questRoot9.Comment = "FATE"; - num = 2; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span31 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference42 = ref span31[0]; + index = 2; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81316,7 +96805,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference42 = obj41; - ref QuestSequence reference43 = ref span31[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -81324,13 +96814,15 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span32 = CollectionsMarshal.AsSpan(list61); - span32[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(147.42166f, 24.300901f, -751.06976f), 180) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(147.42166f, 24.300901f, -751.06976f), 180) { Fly = true, Comment = "Do the FATE" }; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81356,21 +96848,26 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "Censored"; questRoot10.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span33 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference44 = ref span33[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81389,7 +96886,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list64; reference44 = obj43; - ref QuestSequence reference45 = ref span33[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -81397,7 +96895,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list65)[0]; + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference46 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(161.17926f, 21.418877f, -703.57477f), 180) { Fly = true, @@ -81406,23 +96906,29 @@ public static class AssemblyQuestLoader num3 = 3; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span34 = CollectionsMarshal.AsSpan(list66); - span34[0] = 756u; - span34[1] = 757u; - span34[2] = 758u; + span4 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span4[index3] = 756u; + index3++; + span4[index3] = 757u; + index3++; + span4[index3] = 758u; obj45.KillEnemyDataIds = list66; reference46 = obj45; obj44.Steps = list65; reference45 = obj44; - ref QuestSequence reference47 = ref span33[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81448,13 +96954,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "liza"; questRoot11.Author = list68; - num = 3; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span35 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference48 = ref span35[0]; + index = 3; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -81462,87 +96971,114 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); obj47.Steps = list70; reference48 = obj47; - ref QuestSequence reference49 = ref span35[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span36 = CollectionsMarshal.AsSpan(list71); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.19494f, 23.602901f, -611.7208f), 180) + index2 = 5; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.19494f, 23.602901f, -611.7208f), 180) { Fly = true }; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.632976f, 21.54334f, -769.12134f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.632976f, 21.54334f, -769.12134f), 180) { Fly = true }; - ref QuestStep reference50 = ref span36[2]; + num2++; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, 2003699u, new Vector3(7.94989f, 21.713562f, -769.06995f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 2841u; + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span4 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span4[num3] = 2841u; obj49.KillEnemyDataIds = list72; num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span37 = CollectionsMarshal.AsSpan(list73); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list73; reference50 = obj49; - ref QuestStep reference51 = ref span36[3]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, 2003701u, new Vector3(5.142273f, 23.75824f, -803.9216f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = 2841u; + index3 = 1; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + span4 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span4[num3] = 2841u; obj50.KillEnemyDataIds = list74; num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span38 = CollectionsMarshal.AsSpan(list75); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list75; reference51 = obj50; - ref QuestStep reference52 = ref span36[4]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2003702u, new Vector3(0.47296143f, 24.551636f, -795.74274f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 2841u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span4 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span4[num3] = 2841u; obj51.KillEnemyDataIds = list76; reference52 = obj51; obj48.Steps = list71; reference49 = obj48; - ref QuestSequence reference53 = ref span35[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -81550,7 +97086,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -81564,21 +97102,26 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "Censored"; questRoot12.Author = list78; - num = 4; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span39 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference54 = ref span39[0]; + index = 4; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span2 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81597,7 +97140,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list80; reference54 = obj53; - ref QuestSequence reference55 = ref span39[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -81605,8 +97149,9 @@ public static class AssemblyQuestLoader num2 = 5; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span40 = CollectionsMarshal.AsSpan(list81); - ref QuestStep reference56 = ref span40[0]; + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2003753u, new Vector3(18.875366f, 25.558838f, -594.11005f), 180) { Fly = true, @@ -81615,76 +97160,108 @@ public static class AssemblyQuestLoader num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span41 = CollectionsMarshal.AsSpan(list82); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list82; reference56 = obj55; - ref QuestStep reference57 = ref span40[1]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2003755u, new Vector3(15.854065f, 26.810059f, -648.188f), 180); - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span42 = CollectionsMarshal.AsSpan(list83); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list83 = new List(index3); + CollectionsMarshal.SetCount(list83, index3); + span6 = CollectionsMarshal.AsSpan(list83); + 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); questStep2.CompletionQuestVariablesFlags = list83; reference57 = questStep2; - ref QuestStep reference58 = ref span40[2]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2003752u, new Vector3(-2.2125854f, 24.2771f, -722.31635f), 180); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span43 = CollectionsMarshal.AsSpan(list84); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list84; reference58 = questStep3; - ref QuestStep reference59 = ref span40[3]; + index2++; + ref QuestStep reference59 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003754u, new Vector3(86.56433f, 24.215942f, -822.1714f), 180); - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span44 = CollectionsMarshal.AsSpan(list85); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span6 = CollectionsMarshal.AsSpan(list85); + 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); questStep4.CompletionQuestVariablesFlags = list85; reference59 = questStep4; - span40[4] = new QuestStep(EInteractionType.Interact, 2003756u, new Vector3(167.22351f, 24.76538f, -814.48083f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003756u, new Vector3(167.22351f, 24.76538f, -814.48083f), 180); obj54.Steps = list81; reference55 = obj54; - ref QuestSequence reference60 = ref span39[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj56.Steps = list86; reference60 = obj56; - ref QuestSequence reference61 = ref span39[3]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -81692,7 +97269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true }; @@ -81710,21 +97289,26 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "Censored"; questRoot13.Author = list88; - num = 7; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span45 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference62 = ref span45[0]; + index = 7; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81743,7 +97327,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list90; reference62 = obj58; - ref QuestSequence reference63 = ref span45[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -81751,22 +97336,27 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; obj59.Steps = list91; reference63 = obj59; - ref QuestSequence reference64 = ref span45[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list92)[0]; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2003920u, new Vector3(75.24219f, 28.000244f, -753.5668f), 180) { Fly = true, @@ -81776,12 +97366,15 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 2846u; + span4 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span4[index3] = 2846u; obj61.KillEnemyDataIds = list93; reference65 = obj61; obj60.Steps = list92; reference64 = obj60; - ref QuestSequence reference66 = ref span45[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -81789,31 +97382,39 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2003930u, new Vector3(75.24219f, 27.969727f, -753.5363f), 180); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003930u, new Vector3(75.24219f, 27.969727f, -753.5363f), 180); obj62.Steps = list94; reference66 = obj62; - ref QuestSequence reference67 = ref span45[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2003937u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 2846u; + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span4 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span4[num3] = 2846u; obj64.KillEnemyDataIds = list96; reference68 = obj64; obj63.Steps = list95; reference67 = obj63; - ref QuestSequence reference69 = ref span45[5]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 @@ -81821,21 +97422,26 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.UseItem, 2003947u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2003947u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) { ItemId = 2001282u }; obj65.Steps = list97; reference69 = obj65; - ref QuestSequence reference70 = ref span45[6]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81861,13 +97467,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot14.Author = list99; - num = 5; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span46 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference71 = ref span46[0]; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -81875,24 +97484,30 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); obj67.Steps = list101; reference71 = obj67; - ref QuestSequence reference72 = ref span46[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj68.Steps = list102; reference72 = obj68; - ref QuestSequence reference73 = ref span46[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -81900,8 +97515,9 @@ public static class AssemblyQuestLoader num2 = 5; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span47 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference74 = ref span47[0]; + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference74 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.UseItem, 2003911u, new Vector3(296.5896f, 21.499878f, -722.13324f), 180) { Fly = true, @@ -81910,31 +97526,41 @@ public static class AssemblyQuestLoader num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span48 = CollectionsMarshal.AsSpan(list104); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj70.CompletionQuestVariablesFlags = list104; reference74 = obj70; - ref QuestStep reference75 = ref span47[1]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(296.5896f, 21.499878f, -722.13324f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new ComplexCombatData + index3 = 1; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span7 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj71.ComplexCombatData = list105; reference75 = obj71; - ref QuestStep reference76 = ref span47[2]; + index2++; + ref QuestStep reference76 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2003910u, new Vector3(293.41565f, 21.499878f, -721.91956f), 180) { ItemId = 2001278u @@ -81942,31 +97568,41 @@ public static class AssemblyQuestLoader num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span49 = CollectionsMarshal.AsSpan(list106); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list106; reference76 = obj72; - ref QuestStep reference77 = ref span47[3]; + index2++; + ref QuestStep reference77 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, null, new Vector3(293.41565f, 21.499878f, -721.91956f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new ComplexCombatData + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span7 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj73.ComplexCombatData = list107; reference77 = obj73; - ref QuestStep reference78 = ref span47[4]; + index2++; + ref QuestStep reference78 = ref span3[index2]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2003909u, new Vector3(290.0282f, 21.530457f, -721.3397f), 180) { ItemId = 2001278u @@ -81974,48 +97610,60 @@ public static class AssemblyQuestLoader num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span50 = CollectionsMarshal.AsSpan(list108); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list108; reference78 = obj74; obj69.Steps = list103; reference73 = obj69; - ref QuestSequence reference79 = ref span46[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span51 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference80 = ref span51[0]; + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference80 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.0282f, 21.530457f, -721.3397f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new ComplexCombatData + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span7 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj76.ComplexCombatData = list110; reference80 = obj76; - span51[1] = new QuestStep(EInteractionType.UseItem, 2003912u, new Vector3(295.76562f, 21.469421f, -711.9402f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2003912u, new Vector3(295.76562f, 21.469421f, -711.9402f), 180) { ItemId = 2001279u }; obj75.Steps = list109; reference79 = obj75; - ref QuestSequence reference81 = ref span46[4]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -82023,7 +97671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { DelaySecondsAtStart = 3f, Fly = true, @@ -82048,21 +97698,26 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list112); + index = 0; + span[index] = "Censored"; questRoot15.Author = list112; - num = 10; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span52 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference82 = ref span52[0]; + index = 10; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + span2 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -82081,7 +97736,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list114; reference82 = obj78; - ref QuestSequence reference83 = ref span52[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -82089,21 +97745,26 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj79.Steps = list115; reference83 = obj79; - ref QuestSequence reference84 = ref span52[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list116)[0]; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference85 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1008890u, new Vector3(19.516235f, 24.284801f, -559.7772f), 180) { Fly = true @@ -82111,7 +97772,9 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB310_01373_Q1_000_000"), @@ -82121,7 +97784,8 @@ public static class AssemblyQuestLoader reference85 = obj81; obj80.Steps = list116; reference84 = obj80; - ref QuestSequence reference86 = ref span52[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -82129,31 +97793,38 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 2003971u, new Vector3(99.168335f, 21.591492f, -639.7345f), 180); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003971u, new Vector3(99.168335f, 21.591492f, -639.7345f), 180); obj82.Steps = list118; reference86 = obj82; - ref QuestSequence reference87 = ref span52[4]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference88 = ref span53[0]; + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.544685f, 21.545254f, -637.22314f), 180) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = 2870u; + index3 = 1; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + span4 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span4[num3] = 2870u; obj84.KillEnemyDataIds = list120; reference88 = obj84; - ref QuestStep reference89 = ref span53[1]; + num2++; + ref QuestStep reference89 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2003974u, new Vector3(97.00159f, 21.591492f, -637.4762f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -82161,12 +97832,15 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 2872u; + span4 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span4[index3] = 2872u; obj85.KillEnemyDataIds = list121; reference89 = obj85; obj83.Steps = list119; reference87 = obj83; - ref QuestSequence reference90 = ref span52[5]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 5 @@ -82174,12 +97848,16 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list122)[0]; + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference91 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1008890u, new Vector3(19.516235f, 24.284801f, -559.7772f), 180); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span5 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB310_01373_Q1_000_000"), @@ -82189,18 +97867,22 @@ public static class AssemblyQuestLoader reference91 = questStep5; obj86.Steps = list122; reference90 = obj86; - ref QuestSequence reference92 = ref span52[6]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2003979u, new Vector3(152.78857f, 22.171326f, -698.32916f), 180); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2003979u, new Vector3(152.78857f, 22.171326f, -698.32916f), 180); obj87.Steps = list124; reference92 = obj87; - ref QuestSequence reference93 = ref span52[7]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 7 @@ -82208,8 +97890,9 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span54 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference94 = ref span54[0]; + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj89 = new QuestStep(EInteractionType.Combat, null, new Vector3(147.60046f, 23.544617f, -705.2567f), 180) { DelaySecondsAtStart = 2f, @@ -82218,38 +97901,47 @@ public static class AssemblyQuestLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 2870u; + span4 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span4[index3] = 2870u; obj89.KillEnemyDataIds = list126; reference94 = obj89; - ref QuestStep reference95 = ref span54[1]; + index2++; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2003983u, new Vector3(147.60046f, 23.544617f, -705.2567f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 2872u; + index3 = 1; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + span4 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span4[num3] = 2872u; obj90.KillEnemyDataIds = list127; reference95 = obj90; obj88.Steps = list125; reference93 = obj88; - ref QuestSequence reference96 = ref span52[8]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj91.Steps = list128; reference96 = obj91; - ref QuestSequence reference97 = ref span52[9]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -82257,7 +97949,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true }; @@ -82270,24 +97964,30 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot16.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span55 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference98 = ref span55[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); obj93.Steps = list132; reference98 = obj93; - ref QuestSequence reference99 = ref span55[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -82295,23 +97995,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj94.Steps = list133; reference99 = obj94; - ref QuestSequence reference100 = ref span55[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span56 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference101 = ref span56[0]; + index2 = 4; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1008832u, new Vector3(510.97888f, 8.979649f, 259.38806f), 137) { StopDistance = 7f @@ -82319,33 +98023,47 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span57 = CollectionsMarshal.AsSpan(list135); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list135; reference101 = obj96; - ref QuestStep reference102 = ref span56[1]; + num2++; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1008831u, new Vector3(514.42737f, 8.931801f, 254.32202f), 137) { StopDistance = 7f }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span58 = CollectionsMarshal.AsSpan(list136); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span6 = CollectionsMarshal.AsSpan(list136); + 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); obj97.CompletionQuestVariablesFlags = list136; reference102 = obj97; - ref QuestStep reference103 = ref span56[2]; + num2++; + ref QuestStep reference103 = ref span3[num2]; QuestStep obj98 = new QuestStep(EInteractionType.UseItem, 1008830u, new Vector3(519.24915f, 8.867149f, 245.8075f), 137) { ItemId = 2001288u @@ -82353,35 +98071,49 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span59 = CollectionsMarshal.AsSpan(list137); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list137; reference103 = obj98; - ref QuestStep reference104 = ref span56[3]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 1008829u, new Vector3(497.15417f, 12.65078f, 245.07507f), 137) { ItemId = 2001288u }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span60 = CollectionsMarshal.AsSpan(list138); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span6 = CollectionsMarshal.AsSpan(list138); + 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); obj99.CompletionQuestVariablesFlags = list138; reference104 = obj99; obj95.Steps = list134; reference100 = obj95; - ref QuestSequence reference105 = ref span55[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -82389,21 +98121,27 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137); obj100.Steps = list139; reference105 = obj100; - ref QuestSequence reference106 = ref span55[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1008827u, new Vector3(508.35413f, 9.910819f, 250.26318f), 137); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008827u, new Vector3(508.35413f, 9.910819f, 250.26318f), 137); obj101.Steps = list140; reference106 = obj101; - ref QuestSequence reference107 = ref span55[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 5 @@ -82411,27 +98149,32 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span61 = CollectionsMarshal.AsSpan(list141); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.7492f, -41.732693f, 21.867413f), 138) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.7492f, -41.732693f, 21.867413f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span61[1] = new QuestStep(EInteractionType.Interact, 1008916u, new Vector3(-207.44641f, -42.06953f, 22.140747f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008916u, new Vector3(-207.44641f, -42.06953f, 22.140747f), 138) { StopDistance = 5f }; obj102.Steps = list141; reference107 = obj102; - ref QuestSequence reference108 = ref span55[6]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, NextQuestId = new QuestId(1375) @@ -82445,13 +98188,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot17.Author = list143; - num = 5; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span62 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference109 = ref span62[0]; + index = 5; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -82459,24 +98205,30 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj104.Steps = list145; reference109 = obj104; - ref QuestSequence reference110 = ref span62[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj105.Steps = list146; reference110 = obj105; - ref QuestSequence reference111 = ref span62[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -82484,29 +98236,33 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { StopDistance = 0.5f, Fly = true }; - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { StopDistance = 0.5f, Mount = false }; obj106.Steps = list147; reference111 = obj106; - ref QuestSequence reference112 = ref span62[3]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference113 = ref span64[0]; + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + ref QuestStep reference113 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -82514,28 +98270,33 @@ public static class AssemblyQuestLoader num3 = 3; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span65 = CollectionsMarshal.AsSpan(list149); - span65[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 2867u, IgnoreQuestMarker = true }; - span65[1] = new ComplexCombatData + index3++; + span7[index3] = new ComplexCombatData { DataId = 2868u, IgnoreQuestMarker = true }; - span65[2] = new ComplexCombatData + index3++; + span7[index3] = new ComplexCombatData { DataId = 2869u, IgnoreQuestMarker = true }; obj108.ComplexCombatData = list149; reference113 = obj108; - span64[1] = new QuestStep(EInteractionType.Interact, 1008897u, new Vector3(-38.31543f, -23.036211f, -88.85327f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008897u, new Vector3(-38.31543f, -23.036211f, -88.85327f), 138); obj107.Steps = list148; reference112 = obj107; - ref QuestSequence reference114 = ref span62[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -82543,15 +98304,19 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list150)[0]; + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + ref QuestStep reference115 = ref span3[index2]; QuestStep obj110 = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + index3 = 1; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + span5 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANSAH002_01375_Q1_000_000"), @@ -82568,21 +98333,26 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "Censored"; questRoot18.Author = list152; - num = 7; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span66 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference116 = ref span66[0]; + index = 7; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -82601,7 +98371,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list154; reference116 = obj111; - ref QuestSequence reference117 = ref span66[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -82609,12 +98380,16 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list155)[0]; + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference118 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH003_01376_Q1_000_000") @@ -82623,18 +98398,22 @@ public static class AssemblyQuestLoader reference118 = questStep6; obj112.Steps = list155; reference117 = obj112; - ref QuestSequence reference119 = ref span66[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); obj113.Steps = list157; reference119 = obj113; - ref QuestSequence reference120 = ref span66[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -82642,33 +98421,41 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list158)[0]; + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + ref QuestStep reference121 = ref span3[index2]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, null, new Vector3(-864.2374f, -25.652748f, 928.6218f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span67 = CollectionsMarshal.AsSpan(list159); - span67[0] = 767u; - span67[1] = 2832u; + index3 = 2; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + span4 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span4[num3] = 767u; + num3++; + span4[num3] = 2832u; obj115.KillEnemyDataIds = list159; reference121 = obj115; obj114.Steps = list158; reference120 = obj114; - ref QuestSequence reference122 = ref span66[4]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); obj116.Steps = list160; reference122 = obj116; - ref QuestSequence reference123 = ref span66[5]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 @@ -82676,20 +98463,25 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1008918u, new Vector3(317.1892f, -31.89867f, 273.73157f), 138); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008918u, new Vector3(317.1892f, -31.89867f, 273.73157f), 138); obj117.Steps = list161; reference123 = obj117; - ref QuestSequence reference124 = ref span66[6]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span68 = CollectionsMarshal.AsSpan(list162); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(312.55045f, -31.875002f, 281.11264f), 138); - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(312.55045f, -31.875002f, 281.11264f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; @@ -82702,13 +98494,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "Censored"; questRoot19.Author = list163; - num = 6; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span69 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference125 = ref span69[0]; + index = 6; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -82716,7 +98511,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -82735,18 +98532,22 @@ public static class AssemblyQuestLoader }; obj119.Steps = list165; reference125 = obj119; - ref QuestSequence reference126 = ref span69[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj120.Steps = list166; reference126 = obj120; - ref QuestSequence reference127 = ref span69[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -82754,21 +98555,28 @@ public static class AssemblyQuestLoader num2 = 5; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span70 = CollectionsMarshal.AsSpan(list167); - ref QuestStep reference128 = ref span70[0]; + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference128 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span71 = CollectionsMarshal.AsSpan(list168); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list168; skipStepConditions.NearPosition = new NearPositionCondition { @@ -82778,31 +98586,41 @@ public static class AssemblyQuestLoader }; skipConditions.StepIf = skipStepConditions; questStep7.SkipConditions = skipConditions; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice + index3 = 1; + List list169 = new List(index3); + CollectionsMarshal.SetCount(list169, index3); + span5 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH004_01377_Q1_000_000") }; questStep7.DialogueChoices = list169; reference128 = questStep7; - ref QuestStep reference129 = ref span70[1]; + index2++; + ref QuestStep reference129 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1008904u, new Vector3(-792.2637f, -39.012253f, 716.21265f), 138); num3 = 6; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span72 = CollectionsMarshal.AsSpan(list170); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list170); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list170; reference129 = questStep8; - span70[2] = new QuestStep(EInteractionType.Interact, 1008802u, new Vector3(-814.84705f, -42.154568f, 694.3312f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008802u, new Vector3(-814.84705f, -42.154568f, 694.3312f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -82818,24 +98636,32 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference130 = ref span70[3]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1008902u, new Vector3(-150.2251f, -41.378696f, -295.58252f), 138) { Fly = true }; - num3 = 6; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - Span span73 = CollectionsMarshal.AsSpan(list171); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + span6 = CollectionsMarshal.AsSpan(list171); + 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); obj122.CompletionQuestVariablesFlags = list171; reference130 = obj122; - ref QuestStep reference131 = ref span70[4]; + index2++; + ref QuestStep reference131 = ref span3[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1008903u, new Vector3(-357.5647f, -35.210495f, -425.2232f), 138) { Fly = true, @@ -82844,32 +98670,42 @@ public static class AssemblyQuestLoader num3 = 6; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span74 = CollectionsMarshal.AsSpan(list172); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj123.CompletionQuestVariablesFlags = list172; reference131 = obj123; obj121.Steps = list167; reference127 = obj121; - ref QuestSequence reference132 = ref span69[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; obj124.Steps = list173; reference132 = obj124; - ref QuestSequence reference133 = ref span69[4]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -82877,22 +98713,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2003989u, new Vector3(-364.9806f, -38.254395f, -242.81683f), 138) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2003989u, new Vector3(-364.9806f, -38.254395f, -242.81683f), 138) { Fly = true, Land = true }; obj125.Steps = list174; reference133 = obj125; - ref QuestSequence reference134 = ref span69[5]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; @@ -82905,13 +98746,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "Censored"; questRoot20.Author = list176; - num = 11; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span75 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference135 = ref span75[0]; + index = 11; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -82919,7 +98763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -82938,21 +98784,25 @@ public static class AssemblyQuestLoader }; obj127.Steps = list178; reference135 = obj127; - ref QuestSequence reference136 = ref span75[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj128.Steps = list179; reference136 = obj128; - ref QuestSequence reference137 = ref span75[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -82960,27 +98810,33 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj129.Steps = list180; reference137 = obj129; - ref QuestSequence reference138 = ref span75[3]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 2004024u, new Vector3(-412.95496f, -39.047913f, -229.72461f), 138) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004024u, new Vector3(-412.95496f, -39.047913f, -229.72461f), 138) { Fly = true }; obj130.Steps = list181; reference138 = obj130; - ref QuestSequence reference139 = ref span75[4]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -82988,26 +98844,33 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj131.Steps = list182; reference139 = obj131; - ref QuestSequence reference140 = ref span75[5]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list183)[0]; + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference141 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + index3 = 1; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + span5 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH005_01378_Q1_000_000") @@ -83016,7 +98879,8 @@ public static class AssemblyQuestLoader reference141 = questStep9; obj132.Steps = list183; reference140 = obj132; - ref QuestSequence reference142 = ref span75[6]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 6 @@ -83024,7 +98888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list185)[0]; + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference143 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, null, new Vector3(-919.11914f, -31.760002f, 820.28955f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -83032,28 +98898,34 @@ public static class AssemblyQuestLoader num3 = 2; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span76 = CollectionsMarshal.AsSpan(list186); - span76[0] = 765u; - span76[1] = 775u; + span4 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span4[index3] = 765u; + index3++; + span4[index3] = 775u; obj134.KillEnemyDataIds = list186; reference143 = obj134; obj133.Steps = list185; reference142 = obj133; - ref QuestSequence reference144 = ref span75[7]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.UseItem, 1008922u, new Vector3(-914.8852f, -31.75f, 811.6426f), 138) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1008922u, new Vector3(-914.8852f, -31.75f, 811.6426f), 138) { ItemId = 2001295u }; obj135.Steps = list187; reference144 = obj135; - ref QuestSequence reference145 = ref span75[8]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 8 @@ -83061,24 +98933,30 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1008923u, new Vector3(321.85852f, -36.32501f, 350.1792f), 138); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008923u, new Vector3(321.85852f, -36.32501f, 350.1792f), 138); obj136.Steps = list188; reference145 = obj136; - ref QuestSequence reference146 = ref span75[9]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj137.Steps = list189; reference146 = obj137; - ref QuestSequence reference147 = ref span75[10]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -83086,7 +98964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -83104,22 +98984,27 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "Censored"; questRoot21.Author = list191; questRoot21.Comment = "FATE"; - num = 2; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span77 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference148 = ref span77[0]; + index = 2; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83138,7 +99023,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list193; reference148 = obj139; - ref QuestSequence reference149 = ref span77[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -83146,13 +99032,15 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span78 = CollectionsMarshal.AsSpan(list194); - span78[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-143.67775f, -32.78761f, -122.891304f), 138) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-143.67775f, -32.78761f, -122.891304f), 138) { Fly = true, Comment = "Do the FATE" }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83165,21 +99053,26 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "Censored"; questRoot22.Author = list195; - num = 3; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span79 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference150 = ref span79[0]; + index = 3; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83198,7 +99091,8 @@ public static class AssemblyQuestLoader }; obj141.Steps = list197; reference150 = obj141; - ref QuestSequence reference151 = ref span79[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -83206,26 +99100,34 @@ public static class AssemblyQuestLoader num2 = 2; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span80 = CollectionsMarshal.AsSpan(list198); - ref QuestStep reference152 = ref span80[0]; + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj143 = new QuestStep(EInteractionType.UseItem, 2003871u, new Vector3(-126.93988f, -27.084778f, 29.800781f), 138) { Fly = true, ItemId = 2001273u }; - num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span81 = CollectionsMarshal.AsSpan(list199); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + span6 = CollectionsMarshal.AsSpan(list199); + 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); obj143.CompletionQuestVariablesFlags = list199; reference152 = obj143; - ref QuestStep reference153 = ref span80[1]; + index2++; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 2003872u, new Vector3(-22.354492f, -14.999634f, -101.51831f), 138) { Fly = true, @@ -83234,31 +99136,42 @@ public static class AssemblyQuestLoader num3 = 6; List> list200 = new List>(num3); CollectionsMarshal.SetCount(list200, num3); - Span> span82 = CollectionsMarshal.AsSpan(list200); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - ref List reference154 = ref span82[5]; + Span> span8 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference154 = ref span8[index3]; int num4 = 1; List list201 = new List(num4); CollectionsMarshal.SetCount(list201, num4); - CollectionsMarshal.AsSpan(list201)[0] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list201); + int index4 = 0; + span6[index4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference154 = list201; obj144.RequiredQuestVariables = list200; reference153 = obj144; obj142.Steps = list198; reference151 = obj142; - ref QuestSequence reference155 = ref span79[2]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83271,13 +99184,16 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "Censored"; questRoot23.Author = list203; - num = 3; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span83 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference156 = ref span83[0]; + index = 3; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -83285,7 +99201,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83304,29 +99222,35 @@ public static class AssemblyQuestLoader }; obj146.Steps = list205; reference156 = obj146; - ref QuestSequence reference157 = ref span83[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference158 = ref CollectionsMarshal.AsSpan(list206)[0]; + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(-93.46076f, -30.563955f, -116.52818f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 2835u; + index3 = 1; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + span4 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span4[num3] = 2835u; obj148.KillEnemyDataIds = list207; reference158 = obj148; obj147.Steps = list206; reference157 = obj147; - ref QuestSequence reference159 = ref span83[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -83334,7 +99258,9 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83347,21 +99273,26 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list209); + index = 0; + span[index] = "Censored"; questRoot24.Author = list209; - num = 4; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span84 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference160 = ref span84[0]; + index = 4; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + span2 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83380,7 +99311,8 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference160 = obj150; - ref QuestSequence reference161 = ref span84[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -83388,8 +99320,9 @@ public static class AssemblyQuestLoader num2 = 3; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span85 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference162 = ref span85[0]; + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + ref QuestStep reference162 = ref span3[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 1008818u, new Vector3(-188.89148f, -41.164997f, -42.832153f), 138) { Fly = true, @@ -83399,21 +99332,27 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = 767u; + span4 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span4[index3] = 767u; obj152.KillEnemyDataIds = list213; reference162 = obj152; - ref QuestStep reference163 = ref span85[1]; + index2++; + ref QuestStep reference163 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 1008819u, new Vector3(-156.35925f, -38.790955f, -49.302002f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = 767u; + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span4[num3] = 767u; obj153.KillEnemyDataIds = list214; reference163 = obj153; - ref QuestStep reference164 = ref span85[2]; + index2++; + ref QuestStep reference164 = ref span3[index2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 1008820u, new Vector3(-153.27692f, -35.290905f, -72.70929f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -83421,35 +99360,42 @@ public static class AssemblyQuestLoader num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 767u; + span4 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span4[index3] = 767u; obj154.KillEnemyDataIds = list215; reference164 = obj154; obj151.Steps = list212; reference161 = obj151; - ref QuestSequence reference165 = ref span84[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span86 = CollectionsMarshal.AsSpan(list216); - span86[0] = new QuestStep(EInteractionType.UseItem, 1008825u, new Vector3(-212.72601f, -40.03688f, -102.80011f), 138) + index2 = 3; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1008825u, new Vector3(-212.72601f, -40.03688f, -102.80011f), 138) { ItemId = 2001254u }; - span86[1] = new QuestStep(EInteractionType.UseItem, 1008823u, new Vector3(-213.58057f, -40.036037f, -103.593506f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1008823u, new Vector3(-213.58057f, -40.036037f, -103.593506f), 138) { ItemId = 2001254u }; - span86[2] = new QuestStep(EInteractionType.UseItem, 1008824u, new Vector3(-212.75659f, -40.002003f, -104.631165f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1008824u, new Vector3(-212.75659f, -40.002003f, -104.631165f), 138) { ItemId = 2001254u }; obj155.Steps = list216; reference165 = obj155; - ref QuestSequence reference166 = ref span84[3]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -83457,7 +99403,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83470,21 +99418,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "Censored"; questRoot25.Author = list218; - num = 3; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span87 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference167 = ref span87[0]; + index = 3; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83503,7 +99456,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list220; reference167 = obj157; - ref QuestSequence reference168 = ref span87[1]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -83511,8 +99465,9 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span88 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference169 = ref span88[0]; + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference169 = ref span3[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -83528,17 +99483,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH108_01386_01376_Q1_000_000") }; obj159.DialogueChoices = list222; reference169 = obj159; - ref QuestStep reference170 = ref span88[1]; + index2++; + ref QuestStep reference170 = ref span3[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(-830.20886f, -25.652752f, 889.1423f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -83546,24 +99504,29 @@ public static class AssemblyQuestLoader num3 = 3; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span89 = CollectionsMarshal.AsSpan(list223); - span89[0] = 765u; - span89[1] = 775u; - span89[2] = 776u; + span4 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span4[index3] = 765u; + index3++; + span4[index3] = 775u; + index3++; + span4[index3] = 776u; obj160.KillEnemyDataIds = list223; reference170 = obj160; obj158.Steps = list221; reference168 = obj158; - ref QuestSequence reference171 = ref span87[2]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span90 = CollectionsMarshal.AsSpan(list224); - span90[0] = new QuestStep(EInteractionType.Interact, 2004012u, new Vector3(-847.50134f, -29.34314f, 887.0526f), 138) + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004012u, new Vector3(-847.50134f, -29.34314f, 887.0526f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -83579,7 +99542,8 @@ public static class AssemblyQuestLoader } } }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138); obj161.Steps = list224; reference171 = obj161; questRoot25.QuestSequence = list219; @@ -83589,13 +99553,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "Censored"; questRoot26.Author = list225; - num = 3; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span91 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference172 = ref span91[0]; + index = 3; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -83603,7 +99570,9 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83622,16 +99591,18 @@ public static class AssemblyQuestLoader }; obj162.Steps = list227; reference172 = obj162; - ref QuestSequence reference173 = ref span91[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span92 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference174 = ref span92[0]; + index2 = 7; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -83647,17 +99618,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new DialogueChoice + index3 = 1; + List list229 = new List(index3); + CollectionsMarshal.SetCount(list229, index3); + span5 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH109_01387_Q1_000_000") }; obj164.DialogueChoices = list229; reference174 = obj164; - ref QuestStep reference175 = ref span92[1]; + num2++; + ref QuestStep reference175 = ref span3[num2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-847.4226f, -25.652754f, 886.75653f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -83665,23 +99639,31 @@ public static class AssemblyQuestLoader num3 = 1; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 2839u; + span4 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span4[index3] = 2839u; obj165.KillEnemyDataIds = list230; reference175 = obj165; - span92[2] = new QuestStep(EInteractionType.Interact, 2004006u, new Vector3(-845.79236f, -25.650513f, 887.6019f), 138); - ref QuestStep reference176 = ref span92[3]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004006u, new Vector3(-845.79236f, -25.650513f, 887.6019f), 138); + num2++; + ref QuestStep reference176 = ref span3[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Combat, null, new Vector3(-834.959f, -25.652752f, 881.4168f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 2839u; + index3 = 1; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + span4 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span4[num3] = 2839u; obj166.KillEnemyDataIds = list231; reference176 = obj166; - span92[4] = new QuestStep(EInteractionType.Interact, 2004005u, new Vector3(-833.2799f, -25.68097f, 880.70483f), 138); - ref QuestStep reference177 = ref span92[5]; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004005u, new Vector3(-833.2799f, -25.68097f, 880.70483f), 138); + num2++; + ref QuestStep reference177 = ref span3[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-830.6505f, -25.647753f, 896.4246f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -83689,13 +99671,17 @@ public static class AssemblyQuestLoader num3 = 1; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = 2839u; + span4 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span4[index3] = 2839u; obj167.KillEnemyDataIds = list232; reference177 = obj167; - span92[6] = new QuestStep(EInteractionType.Interact, 2004004u, new Vector3(-830.1366f, -25.68097f, 897.48975f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004004u, new Vector3(-830.1366f, -25.68097f, 897.48975f), 138); obj163.Steps = list228; reference173 = obj163; - ref QuestSequence reference178 = ref span91[2]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -83703,7 +99689,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83729,21 +99717,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "Censored"; questRoot27.Author = list234; - num = 3; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span93 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference179 = ref span93[0]; + index = 3; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83762,7 +99755,8 @@ public static class AssemblyQuestLoader }; obj169.Steps = list236; reference179 = obj169; - ref QuestSequence reference180 = ref span93[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -83770,20 +99764,24 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span94 = CollectionsMarshal.AsSpan(list237); - ref QuestStep reference181 = ref span94[0]; + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference181 = ref span3[index2]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, 1008793u, new Vector3(-55.436035f, -24.903355f, 36.75891f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 2903u; + index3 = 1; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + span4 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span4[num3] = 2903u; obj171.KillEnemyDataIds = list238; reference181 = obj171; - ref QuestStep reference182 = ref span94[1]; + index2++; + ref QuestStep reference182 = ref span3[index2]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 1008796u, new Vector3(46.066895f, -14.420642f, 55.008667f), 138) { Fly = true, @@ -83792,20 +99790,25 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 2903u; + span4 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span4[index3] = 2903u; obj172.KillEnemyDataIds = list239; reference182 = obj172; obj170.Steps = list237; reference180 = obj170; - ref QuestSequence reference183 = ref span93[2]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83818,13 +99821,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "Censored"; questRoot28.Author = list241; - num = 3; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span95 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference184 = ref span95[0]; + index = 3; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -83832,7 +99838,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83851,24 +99859,29 @@ public static class AssemblyQuestLoader }; obj174.Steps = list243; reference184 = obj174; - ref QuestSequence reference185 = ref span95[1]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list244)[0]; + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref QuestStep reference186 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.4717f, -42.561234f, -222.34785f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new ComplexCombatData + index3 = 1; + List list245 = new List(index3); + CollectionsMarshal.SetCount(list245, index3); + span7 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 768u, MinimumKillCount = 3u @@ -83877,7 +99890,8 @@ public static class AssemblyQuestLoader reference186 = obj176; obj175.Steps = list244; reference185 = obj175; - ref QuestSequence reference187 = ref span95[2]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -83885,8 +99899,9 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span96 = CollectionsMarshal.AsSpan(list246); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -83902,7 +99917,8 @@ public static class AssemblyQuestLoader } } }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj177.Steps = list246; reference187 = obj177; questRoot28.QuestSequence = list242; @@ -83912,21 +99928,26 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "Censored"; questRoot29.Author = list247; - num = 3; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span97 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference188 = ref span97[0]; + index = 3; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83945,7 +99966,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list249; reference188 = obj178; - ref QuestSequence reference189 = ref span97[1]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -83953,7 +99975,9 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list250)[0]; + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + ref QuestStep reference190 = ref span3[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.0164f, -42.30825f, -278.38858f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -83961,26 +99985,34 @@ public static class AssemblyQuestLoader num3 = 2; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span98 = CollectionsMarshal.AsSpan(list251); - ref ComplexCombatData reference191 = ref span98[0]; + span7 = CollectionsMarshal.AsSpan(list251); + index3 = 0; + ref ComplexCombatData reference191 = ref span7[index3]; ComplexCombatData obj181 = new ComplexCombatData { DataId = 2832u, MinimumKillCount = 2u }; - num4 = 6; - List list252 = new List(num4); - CollectionsMarshal.SetCount(list252, num4); - Span span99 = CollectionsMarshal.AsSpan(list252); - span99[0] = null; - span99[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + index4 = 6; + List list252 = new List(index4); + CollectionsMarshal.SetCount(list252, index4); + span6 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj181.CompletionQuestVariablesFlags = list252; reference191 = obj181; - span98[1] = new ComplexCombatData + index3++; + span7[index3] = new ComplexCombatData { DataId = 2889u, MinimumKillCount = 1u @@ -83989,16 +100021,18 @@ public static class AssemblyQuestLoader reference190 = obj180; obj179.Steps = list250; reference189 = obj179; - ref QuestSequence reference192 = ref span97[2]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span100 = CollectionsMarshal.AsSpan(list253); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84014,7 +100048,8 @@ public static class AssemblyQuestLoader } } }; - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj182.Steps = list253; reference192 = obj182; questRoot29.QuestSequence = list248; @@ -84024,13 +100059,16 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "Censored"; questRoot30.Author = list254; - num = 3; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span101 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference193 = ref span101[0]; + index = 3; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -84038,7 +100076,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84057,74 +100097,97 @@ public static class AssemblyQuestLoader }; obj183.Steps = list256; reference193 = obj183; - ref QuestSequence reference194 = ref span101[1]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span102 = CollectionsMarshal.AsSpan(list257); - ref QuestStep reference195 = ref span102[0]; + index2 = 3; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2003764u, new Vector3(-236.56067f, -41.001038f, -176.0434f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 2843u; + index3 = 1; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + span4 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span4[num3] = 2843u; obj185.KillEnemyDataIds = list258; num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span103 = CollectionsMarshal.AsSpan(list259); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list259; reference195 = obj185; - ref QuestStep reference196 = ref span102[1]; + num2++; + ref QuestStep reference196 = ref span3[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2003765u, new Vector3(-223.65149f, -41.36731f, -185.47345f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 2843u; + index3 = 1; + List list260 = new List(index3); + CollectionsMarshal.SetCount(list260, index3); + span4 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span4[num3] = 2843u; obj186.KillEnemyDataIds = list260; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span104 = CollectionsMarshal.AsSpan(list261); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj186.CompletionQuestVariablesFlags = list261; reference196 = obj186; - ref QuestStep reference197 = ref span102[2]; + num2++; + ref QuestStep reference197 = ref span3[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, 2003767u, new Vector3(-212.75659f, -41.672424f, -198.07745f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 2843u; + index3 = 1; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + span4 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span4[num3] = 2843u; obj187.KillEnemyDataIds = list262; reference197 = obj187; obj184.Steps = list257; reference194 = obj184; - ref QuestSequence reference198 = ref span101[2]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -84132,8 +100195,9 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span105 = CollectionsMarshal.AsSpan(list263); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84149,7 +100213,8 @@ public static class AssemblyQuestLoader } } }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj188.Steps = list263; reference198 = obj188; questRoot30.QuestSequence = list255; @@ -84159,21 +100224,26 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list264); + index = 0; + span[index] = "Censored"; questRoot31.Author = list264; - num = 3; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span106 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference199 = ref span106[0]; + index = 3; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + span2 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84192,7 +100262,8 @@ public static class AssemblyQuestLoader }; obj189.Steps = list266; reference199 = obj189; - ref QuestSequence reference200 = ref span106[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -84200,7 +100271,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list267)[0]; + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference201 = ref span3[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(-289.73663f, -41.544178f, -358.22406f), 138) { Fly = true, @@ -84209,21 +100282,25 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 2836u; + span4 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span4[index3] = 2836u; obj191.KillEnemyDataIds = list268; reference201 = obj191; obj190.Steps = list267; reference200 = obj190; - ref QuestSequence reference202 = ref span106[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - Span span107 = CollectionsMarshal.AsSpan(list269); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + index2 = 2; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84239,7 +100316,8 @@ public static class AssemblyQuestLoader } } }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj192.Steps = list269; reference202 = obj192; questRoot31.QuestSequence = list265; @@ -84249,14 +100327,17 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list270); + index = 0; + span[index] = "Censored"; questRoot32.Author = list270; questRoot32.Comment = "FATE"; - num = 2; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span108 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference203 = ref span108[0]; + index = 2; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + span2 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -84264,7 +100345,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84283,21 +100366,24 @@ public static class AssemblyQuestLoader }; obj193.Steps = list272; reference203 = obj193; - ref QuestSequence reference204 = ref span108[1]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span109 = CollectionsMarshal.AsSpan(list273); - span109[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-184.54332f, -42.06609f, -259.07843f), 138) + index2 = 3; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-184.54332f, -42.06609f, -259.07843f), 138) { Fly = true, Comment = "Do the FATE" }; - span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84313,7 +100399,8 @@ public static class AssemblyQuestLoader } } }; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj194.Steps = list273; reference204 = obj194; questRoot32.QuestSequence = list271; @@ -84323,13 +100410,16 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list274); + index = 0; + span[index] = "Censored"; questRoot33.Author = list274; - num = 3; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span110 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference205 = ref span110[0]; + index = 3; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + span2 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -84337,7 +100427,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84356,115 +100448,147 @@ public static class AssemblyQuestLoader }; obj195.Steps = list276; reference205 = obj195; - ref QuestSequence reference206 = ref span110[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span111 = CollectionsMarshal.AsSpan(list277); - ref QuestStep reference207 = ref span111[0]; + index2 = 4; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference207 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Combat, 2003830u, new Vector3(-270.1305f, -43.2594f, -260.3647f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = 766u; + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + span4 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span4[num3] = 766u; obj197.KillEnemyDataIds = list278; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span112 = CollectionsMarshal.AsSpan(list279); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list279; skipConditions2.StepIf = skipStepConditions2; obj197.SkipConditions = skipConditions2; reference207 = obj197; - ref QuestStep reference208 = ref span111[1]; + num2++; + ref QuestStep reference208 = ref span3[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 2003829u, new Vector3(-218.49402f, -39.414062f, -332.29572f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 766u; + index3 = 1; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + span4 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span4[num3] = 766u; obj198.KillEnemyDataIds = list280; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span113 = CollectionsMarshal.AsSpan(list281); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list281; skipConditions3.StepIf = skipStepConditions3; obj198.SkipConditions = skipConditions3; reference208 = obj198; - ref QuestStep reference209 = ref span111[2]; + num2++; + ref QuestStep reference209 = ref span3[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 2003828u, new Vector3(-159.53314f, -41.397766f, -269.70325f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = 766u; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + span4 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span4[num3] = 766u; obj199.KillEnemyDataIds = list282; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span114 = CollectionsMarshal.AsSpan(list283); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list283; skipConditions4.StepIf = skipStepConditions4; obj199.SkipConditions = skipConditions4; reference209 = obj199; - ref QuestStep reference210 = ref span111[3]; + num2++; + ref QuestStep reference210 = ref span3[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2003831u, new Vector3(-192.82831f, -40.756897f, -211.53589f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = 766u; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + span4 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span4[num3] = 766u; obj200.KillEnemyDataIds = list284; reference210 = obj200; obj196.Steps = list277; reference206 = obj196; - ref QuestSequence reference211 = ref span110[2]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue @@ -84472,8 +100596,9 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span115 = CollectionsMarshal.AsSpan(list285); - span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84489,7 +100614,8 @@ public static class AssemblyQuestLoader } } }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj201.Steps = list285; reference211 = obj201; questRoot33.QuestSequence = list275; @@ -84499,21 +100625,26 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "Censored"; questRoot34.Author = list286; - num = 3; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span116 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference212 = ref span116[0]; + index = 3; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84532,7 +100663,8 @@ public static class AssemblyQuestLoader }; obj202.Steps = list288; reference212 = obj202; - ref QuestSequence reference213 = ref span116[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 @@ -84540,8 +100672,9 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span117 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference214 = ref span117[0]; + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference214 = ref span3[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -84560,36 +100693,43 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH210_01399_Q1_000_000") }; obj204.DialogueChoices = list290; reference214 = obj204; - ref QuestStep reference215 = ref span117[1]; + index2++; + ref QuestStep reference215 = ref span3[index2]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, null, new Vector3(-864.4419f, -25.652748f, 928.53f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 767u; + index3 = 1; + List list291 = new List(index3); + CollectionsMarshal.SetCount(list291, index3); + span4 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span4[num3] = 767u; obj205.KillEnemyDataIds = list291; reference215 = obj205; obj203.Steps = list289; reference213 = obj203; - ref QuestSequence reference216 = ref span116[2]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span118 = CollectionsMarshal.AsSpan(list292); - span118[0] = new QuestStep(EInteractionType.Interact, 2004013u, new Vector3(-883.36005f, -29.251587f, 929.2285f), 138) + index2 = 2; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004013u, new Vector3(-883.36005f, -29.251587f, 929.2285f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -84605,7 +100745,8 @@ public static class AssemblyQuestLoader } } }; - span118[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj206.Steps = list292; reference216 = obj206; questRoot34.QuestSequence = list287; @@ -84619,13 +100760,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -84633,19 +100777,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 1f, @@ -84655,31 +100803,40 @@ public static class AssemblyQuestLoader int num3 = 2; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new ComplexCombatData + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = new ComplexCombatData { DataId = 765u, MinimumKillCount = 1u }; - span3[1] = new ComplexCombatData + num4++; + span4[num4] = new ComplexCombatData { DataId = 2887u, MinimumKillCount = 1u }; obj3.ComplexCombatData = list5; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span5 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list6; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 20f, @@ -84688,31 +100845,40 @@ public static class AssemblyQuestLoader num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = new ComplexCombatData + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = new ComplexCombatData { DataId = 766u, MinimumKillCount = 1u }; - span5[1] = new ComplexCombatData + num4++; + span4[num4] = new ComplexCombatData { DataId = 2886u, MinimumKillCount = 1u }; obj4.ComplexCombatData = list7; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span5 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list8; reference4 = obj4; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 20f, @@ -84721,33 +100887,42 @@ public static class AssemblyQuestLoader num3 = 2; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = new ComplexCombatData + span4 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span4[num4] = new ComplexCombatData { DataId = 768u, MinimumKillCount = 1u }; - span7[1] = new ComplexCombatData + num4++; + span4[num4] = new ComplexCombatData { DataId = 2888u, MinimumKillCount = 1u }; obj5.ComplexCombatData = list9; - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span8 = CollectionsMarshal.AsSpan(list10); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + span5 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list10; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -84755,7 +100930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -84768,21 +100945,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "Censored"; questRoot2.Author = list12; - num = 3; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span9 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference7 = ref span9[0]; + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84801,7 +100983,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list14; reference7 = obj7; - ref QuestSequence reference8 = ref span9[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -84809,7 +100992,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list15)[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(-385.82654f, -38.97124f, -341.03537f), 138) { Fly = true, @@ -84818,20 +101003,25 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 2837u; + Span span6 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span6[num4] = 2837u; obj9.KillEnemyDataIds = list16; reference9 = obj9; obj8.Steps = list15; reference8 = obj8; - ref QuestSequence reference10 = ref span9[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -84850,13 +101040,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "Censored"; questRoot3.Author = list18; - num = 3; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference11 = ref span10[0]; + index = 3; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -84864,7 +101057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84883,30 +101078,34 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference11 = obj11; - ref QuestSequence reference12 = ref span10[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span11 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference13 = ref span11[0]; + index2 = 3; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new ComplexCombatData + num4 = 2; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 773u, MinimumKillCount = 1u }; - span12[1] = new ComplexCombatData + num3++; + span4[num3] = new ComplexCombatData { DataId = 2878u, MinimumKillCount = 1u @@ -84915,30 +101114,39 @@ public static class AssemblyQuestLoader num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list23); + 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); obj13.CompletionQuestVariablesFlags = list23; reference13 = obj13; - ref QuestStep reference14 = ref span11[1]; + num2++; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new ComplexCombatData + num4 = 2; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + span4 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 776u, MinimumKillCount = 1u }; - span14[1] = new ComplexCombatData + num3++; + span4[num3] = new ComplexCombatData { DataId = 2879u, MinimumKillCount = 1u @@ -84947,30 +101155,39 @@ public static class AssemblyQuestLoader num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span15 = CollectionsMarshal.AsSpan(list25); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list25); + 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); obj14.CompletionQuestVariablesFlags = list25; reference14 = obj14; - ref QuestStep reference15 = ref span11[2]; + num2++; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span16 = CollectionsMarshal.AsSpan(list26); - span16[0] = new ComplexCombatData + num4 = 2; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + span4 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 774u, MinimumKillCount = 1u }; - span16[1] = new ComplexCombatData + num3++; + span4[num3] = new ComplexCombatData { DataId = 2880u, MinimumKillCount = 1u @@ -84979,7 +101196,8 @@ public static class AssemblyQuestLoader reference15 = obj15; obj12.Steps = list21; reference12 = obj12; - ref QuestSequence reference16 = ref span10[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -84987,7 +101205,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -85000,21 +101220,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "Censored"; questRoot4.Author = list28; - num = 5; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span17 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference17 = ref span17[0]; + index = 5; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85033,7 +101258,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list30; reference17 = obj17; - ref QuestSequence reference18 = ref span17[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -85041,7 +101267,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list31)[0]; + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference19 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-379.54794f, -36.814743f, -295.2606f), 138) { Fly = true, @@ -85050,37 +101278,46 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = 139u; + span6 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span6[num4] = 139u; obj19.KillEnemyDataIds = list32; reference19 = obj19; obj18.Steps = list31; reference18 = obj18; - ref QuestSequence reference20 = ref span17[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list33)[0]; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2003833u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span18 = CollectionsMarshal.AsSpan(list34); - span18[0] = 2907u; - span18[1] = 2908u; - span18[2] = 2909u; + num4 = 3; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + span6 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span6[num3] = 2907u; + num3++; + span6[num3] = 2908u; + num3++; + span6[num3] = 2909u; obj21.KillEnemyDataIds = list34; reference21 = obj21; obj20.Steps = list33; reference20 = obj20; - ref QuestSequence reference22 = ref span17[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 @@ -85088,21 +101325,26 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.UseItem, 2003864u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2003864u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) { ItemId = 2001272u }; obj22.Steps = list35; reference22 = obj22; - ref QuestSequence reference23 = ref span17[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -85115,13 +101357,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "Censored"; questRoot5.Author = list37; - num = 3; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span19 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference24 = ref span19[0]; + index = 3; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -85129,7 +101374,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85148,16 +101395,18 @@ public static class AssemblyQuestLoader }; obj24.Steps = list39; reference24 = obj24; - ref QuestSequence reference25 = ref span19[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span20 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference26 = ref span20[0]; + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -85176,28 +101425,33 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH307_01406_Q1_000_000") }; obj26.DialogueChoices = list41; reference26 = obj26; - ref QuestStep reference27 = ref span20[1]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-812.7521f, -25.647753f, 975.4917f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span21 = CollectionsMarshal.AsSpan(list42); - span21[0] = new ComplexCombatData + num4 = 2; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + span4 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 773u, MinimumKillCount = 1u }; - span21[1] = new ComplexCombatData + num3++; + span4[num3] = new ComplexCombatData { DataId = 2910u, MinimumKillCount = 1u @@ -85206,7 +101460,8 @@ public static class AssemblyQuestLoader reference27 = obj27; obj25.Steps = list40; reference25 = obj25; - ref QuestSequence reference28 = ref span19[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -85214,8 +101469,9 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span22 = CollectionsMarshal.AsSpan(list43); - span22[0] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -85231,7 +101487,8 @@ public static class AssemblyQuestLoader } } }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj28.Steps = list43; reference28 = obj28; questRoot5.QuestSequence = list38; @@ -85241,21 +101498,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "Censored"; questRoot6.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span23 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference29 = ref span23[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85274,7 +101536,8 @@ public static class AssemblyQuestLoader }; obj29.Steps = list46; reference29 = obj29; - ref QuestSequence reference30 = ref span23[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -85282,8 +101545,9 @@ public static class AssemblyQuestLoader num2 = 5; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span24 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference31 = ref span24[0]; + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -85302,68 +101566,94 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH308_01407_Q1_000_000") }; obj31.DialogueChoices = list48; reference31 = obj31; - ref QuestStep reference32 = ref span24[1]; + index2++; + ref QuestStep reference32 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1008914u, new Vector3(-846.8605f, -25.652748f, 962.0354f), 138); - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span25 = CollectionsMarshal.AsSpan(list49); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span5 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list49; reference32 = questStep; - ref QuestStep reference33 = ref span24[2]; + index2++; + ref QuestStep reference33 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1008915u, new Vector3(-862.8214f, -20.652752f, 966.308f), 138); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span26 = CollectionsMarshal.AsSpan(list50); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list50); + 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); questStep2.CompletionQuestVariablesFlags = list50; reference33 = questStep2; - ref QuestStep reference34 = ref span24[3]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1008912u, new Vector3(-821.40845f, -25.647757f, 974.853f), 138); - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span27 = CollectionsMarshal.AsSpan(list51); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + span5 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list51; reference34 = questStep3; - span24[4] = new QuestStep(EInteractionType.Interact, 1008913u, new Vector3(-795.4986f, -23.649637f, 972.3506f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008913u, new Vector3(-795.4986f, -23.649637f, 972.3506f), 138); obj30.Steps = list47; reference30 = obj30; - ref QuestSequence reference35 = ref span23[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span28 = CollectionsMarshal.AsSpan(list52); - span28[0] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -85379,7 +101669,8 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj32.Steps = list52; reference35 = obj32; questRoot6.QuestSequence = list45; @@ -85389,14 +101680,17 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "Censored"; questRoot7.Author = list53; questRoot7.Comment = "FATE"; - num = 2; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span29 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference36 = ref span29[0]; + index = 2; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -85404,7 +101698,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85423,21 +101719,24 @@ public static class AssemblyQuestLoader }; obj33.Steps = list55; reference36 = obj33; - ref QuestSequence reference37 = ref span29[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span30 = CollectionsMarshal.AsSpan(list56); - span30[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-396.18066f, -40.36498f, -220.00629f), 138) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-396.18066f, -40.36498f, -220.00629f), 138) { Fly = true, Comment = "Do the FATE" }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -85450,13 +101749,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot8.Author = list57; - num = 3; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span31 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference38 = ref span31[0]; + index = 3; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -85464,24 +101766,30 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj35.Steps = list59; reference38 = obj35; - ref QuestSequence reference39 = ref span31[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj36.Steps = list60; reference39 = obj36; - ref QuestSequence reference40 = ref span31[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -85489,7 +101797,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008544u, new Vector3(-316.42633f, 12.050298f, -35.385742f), 152) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008544u, new Vector3(-316.42633f, 12.050298f, -35.385742f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -85503,24 +101813,30 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "liza"; questRoot9.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span32 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference41 = ref span32[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj38.Steps = list64; reference41 = obj38; - ref QuestSequence reference42 = ref span32[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -85528,7 +101844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -85539,15 +101857,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list65; reference42 = obj39; - ref QuestSequence reference43 = ref span32[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005409u, new Vector3(159.62463f, 8.974117f, 582.7573f), 135) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005409u, new Vector3(159.62463f, 8.974117f, 582.7573f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -85561,14 +101882,17 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "liza"; questRoot10.Author = list67; questRoot10.Comment = "Unlocks Mastercraft I/II books"; - num = 2; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span33 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference44 = ref span33[0]; + index = 2; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -85576,8 +101900,9 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span34 = CollectionsMarshal.AsSpan(list69); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.076426f, 28.999966f, -729.6976f), 156) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.076426f, 28.999966f, -729.6976f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -85588,18 +101913,22 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); obj41.Steps = list69; reference44 = obj41; - ref QuestSequence reference45 = ref span33[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); obj42.Steps = list70; reference45 = obj42; questRoot10.QuestSequence = list68; @@ -85609,13 +101938,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "kaiser"; questRoot11.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span35 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference46 = ref span35[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -85623,8 +101955,9 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span36 = CollectionsMarshal.AsSpan(list73); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(54.415092f, -8.047034f, 104.69259f), 132) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(54.415092f, -8.047034f, 104.69259f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -85635,7 +101968,8 @@ public static class AssemblyQuestLoader } } }; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.72773f, -8f, 104.152405f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.72773f, -8f, 104.152405f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -85646,7 +101980,8 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1000375u, new Vector3(42.313232f, -8f, 96.54382f), 132) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000375u, new Vector3(42.313232f, -8f, 96.54382f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -85660,16 +101995,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list73; reference46 = obj43; - ref QuestSequence reference47 = ref span35[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span37 = CollectionsMarshal.AsSpan(list74); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.8096f, -8f, 104.92199f), 132) + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.8096f, -8f, 104.92199f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -85689,7 +102026,8 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.Interact, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -85703,7 +102041,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list74; reference47 = obj44; - ref QuestSequence reference48 = ref span35[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -85711,7 +102050,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -85725,16 +102066,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list75; reference48 = obj45; - ref QuestSequence reference49 = ref span35[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span38 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference50 = ref span38[0]; + index2 = 3; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1007795u, new Vector3(28.94629f, 8.45142f, -96.421814f), 133) { StopDistance = 5f, @@ -85755,16 +102098,23 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span39 = CollectionsMarshal.AsSpan(list77); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list77); + 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); obj47.CompletionQuestVariablesFlags = list77; reference50 = obj47; - ref QuestStep reference51 = ref span38[1]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1007794u, new Vector3(-124.864624f, 6.567382f, -120.74469f), 133) { StopDistance = 5f, @@ -85774,19 +102124,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span40 = CollectionsMarshal.AsSpan(list78); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list78; reference51 = obj48; - ref QuestStep reference52 = ref span38[2]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1007793u, new Vector3(-143.3891f, 4.123518f, -29.312622f), 133) { StopDistance = 5f, @@ -85799,18 +102156,25 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span41 = CollectionsMarshal.AsSpan(list79); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list79); + 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); obj49.CompletionQuestVariablesFlags = list79; reference52 = obj49; obj46.Steps = list76; reference49 = obj46; - ref QuestSequence reference53 = ref span35[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -85818,9 +102182,11 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span42 = CollectionsMarshal.AsSpan(list80); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.09769f, 5.6480865f, -36.499104f), 133); - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.09769f, 5.6480865f, -36.499104f), 133); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -85845,24 +102211,30 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; questRoot12.Author = list81; - num = 4; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span43 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference54 = ref span43[0]; + index = 4; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129); obj51.Steps = list83; reference54 = obj51; - ref QuestSequence reference55 = ref span43[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -85870,8 +102242,9 @@ public static class AssemblyQuestLoader num2 = 3; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span44 = CollectionsMarshal.AsSpan(list84); - ref QuestStep reference56 = ref span44[0]; + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1007961u, new Vector3(-189.83752f, 0.9999907f, 205.61523f), 129) { AethernetShortcut = new AethernetShortcut @@ -85880,66 +102253,91 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span45 = CollectionsMarshal.AsSpan(list85); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + span5 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list85; reference56 = obj53; - ref QuestStep reference57 = ref span44[1]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1007962u, new Vector3(-170.39752f, 4f, 180.80408f), 129); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span46 = CollectionsMarshal.AsSpan(list86); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list86); + 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); questStep4.CompletionQuestVariablesFlags = list86; reference57 = questStep4; - ref QuestStep reference58 = ref span44[2]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1007960u, new Vector3(-154.16199f, 3.9999826f, 186.26685f), 129); - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span47 = CollectionsMarshal.AsSpan(list87); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + span5 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list87; reference58 = questStep5; obj52.Steps = list84; reference55 = obj52; - ref QuestSequence reference59 = ref span43[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span48 = CollectionsMarshal.AsSpan(list88); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-268.3206f, 11.852169f, 189.21284f), 129) + index2 = 3; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-268.3206f, 11.852169f, 189.21284f), 129) { DisableNavmesh = true }; - span48[2] = new QuestStep(EInteractionType.Interact, 1007797u, new Vector3(-260.73096f, 16.35222f, 194.17102f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007797u, new Vector3(-260.73096f, 16.35222f, 194.17102f), 129); obj54.Steps = list88; reference59 = obj54; - ref QuestSequence reference60 = ref span43[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -85947,9 +102345,11 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span49 = CollectionsMarshal.AsSpan(list89); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) { AethernetShortcut = new AethernetShortcut { @@ -85961,207 +102361,59 @@ public static class AssemblyQuestLoader reference60 = obj55; questRoot12.QuestSequence = list82; AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(1427); + QuestId questId13 = new QuestId(1431); QuestRoot questRoot13 = new QuestRoot(); num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "liza"; questRoot13.Author = list90; - num = 4; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span50 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference61 = ref span50[0]; + index = 3; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007799u, new Vector3(-21.042236f, 10.020653f, -70.603516f), 130) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); obj56.Steps = list92; reference61 = obj56; - ref QuestSequence reference62 = ref span50[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 4; + num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - 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 - }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "Warp", - Answer = new ExcelRef(131096u) - }; - obj58.DialogueChoices = list94; - reference63 = obj58; - ref QuestStep reference64 = ref span51[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007801u, new Vector3(50.247925f, 34f, -35.568848f), 131); - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span52 = CollectionsMarshal.AsSpan(list95); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list95; - reference64 = questStep6; - 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 - { - From = EAetheryteLocation.UldahChamberOfRule, - To = EAetheryteLocation.UldahWeaver - } - }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span53 = CollectionsMarshal.AsSpan(list96); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); - obj59.CompletionQuestVariablesFlags = list96; - reference65 = obj59; - span51[3] = new QuestStep(EInteractionType.Interact, 1007800u, new Vector3(6.5460815f, 15.000006f, -1.3275757f), 131) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.UldahWeaver, - To = EAetheryteLocation.UldahGladiator - } - }; + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); obj57.Steps = list93; reference62 = obj57; - ref QuestSequence reference66 = ref span50[2]; - QuestSequence obj60 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.UldahGladiator, - To = EAetheryteLocation.UldahChamberOfRule - } - }; - obj60.Steps = list97; - reference66 = obj60; - ref QuestSequence reference67 = ref span50[3]; - QuestSequence obj61 = new QuestSequence + num++; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) - { - Emote = EEmote.Dance - }; - obj61.Steps = list98; - reference67 = obj61; - questRoot13.QuestSequence = list91; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(1431); - QuestRoot questRoot14 = new QuestRoot(); - num = 2; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span54 = CollectionsMarshal.AsSpan(list99); - span54[0] = "liza"; - span54[1] = "Wigglez"; - questRoot14.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span55 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference68 = ref span55[0]; - QuestSequence obj62 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); - obj62.Steps = list101; - reference68 = obj62; - ref QuestSequence reference69 = ref span55[1]; - QuestSequence obj63 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.LimsaFisher, - To = EAetheryteLocation.LimsaAftcastle - } - }; - SkipConditions skipConditions = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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; - span56[1] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); - obj63.Steps = list102; - reference69 = obj63; - ref QuestSequence reference71 = ref span55[2]; - QuestSequence obj65 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005410u, new Vector3(-182.45215f, 1.9999955f, 208.75867f), 129) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005410u, new Vector3(-182.45215f, 1.9999955f, 208.75867f), 129) { AethernetShortcut = new AethernetShortcut { @@ -86169,30 +102421,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - obj65.Steps = list104; - reference71 = obj65; - questRoot14.QuestSequence = list100; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(1432); - QuestRoot questRoot15 = new QuestRoot(); + obj58.Steps = list94; + reference63 = obj58; + questRoot13.QuestSequence = list91; + AddQuest(questId13, questRoot13); + QuestId questId14 = new QuestId(1432); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; - questRoot15.Author = list105; - num = 3; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span57 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference72 = ref span57[0]; - QuestSequence obj66 = new QuestSequence + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "liza"; + questRoot14.Author = list95; + index = 3; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008950u, new Vector3(29.19043f, -1.4123198f, 52.658813f), 132) + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008950u, new Vector3(29.19043f, -1.4123198f, 52.658813f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -86203,18 +102460,20 @@ public static class AssemblyQuestLoader } } }; - obj66.Steps = list107; - reference72 = obj66; - ref QuestSequence reference73 = ref span57[1]; - QuestSequence obj67 = new QuestSequence + obj59.Steps = list97; + reference64 = obj59; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span58 = CollectionsMarshal.AsSpan(list108); - span58[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 4; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -86230,7 +102489,8 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -86241,37 +102501,44 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference74 = ref span58[2]; - QuestStep obj68 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.214554f, -8.980761f, 297.15152f), 152) + num2++; + ref QuestStep reference66 = ref span3[num2]; + QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.214554f, -8.980761f, 297.15152f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 12u; - obj68.KillEnemyDataIds = list109; - obj68.SkipConditions = new SkipConditions + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + span6 = CollectionsMarshal.AsSpan(list99); + num4 = 0; + span6[num4] = 12u; + obj61.KillEnemyDataIds = list99; + obj61.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true } }; - reference74 = obj68; - span58[3] = new QuestStep(EInteractionType.Interact, 1008951u, new Vector3(-51.651794f, -8.992504f, 296.9253f), 152); - obj67.Steps = list108; - reference73 = obj67; - ref QuestSequence reference75 = ref span57[2]; - QuestSequence obj69 = new QuestSequence + reference66 = obj61; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008951u, new Vector3(-51.651794f, -8.992504f, 296.9253f), 152); + obj60.Steps = list98; + reference65 = obj60; + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -86281,30 +102548,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - obj69.Steps = list110; - reference75 = obj69; - questRoot15.QuestSequence = list106; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(1433); - QuestRoot questRoot16 = new QuestRoot(); + obj62.Steps = list100; + reference67 = obj62; + questRoot14.QuestSequence = list96; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(1433); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "Cacahuetes"; - questRoot16.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span59 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span59[0]; - QuestSequence obj70 = new QuestSequence + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "Cacahuetes"; + questRoot15.Author = list101; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005412u, new Vector3(-108.14075f, 18.000334f, -0.22894287f), 129) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005412u, new Vector3(-108.14075f, 18.000334f, -0.22894287f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -86315,68 +102587,81 @@ public static class AssemblyQuestLoader } } }; - obj70.Steps = list113; - reference76 = obj70; - ref QuestSequence reference77 = ref span59[1]; - QuestSequence obj71 = new QuestSequence + obj63.Steps = list103; + reference68 = obj63; + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - 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) + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; + QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(248.49304f, -11.838913f, 97.45935f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 397u; - obj72.KillEnemyDataIds = list115; - reference78 = obj72; - span60[1] = new QuestStep(EInteractionType.Interact, 1005413u, new Vector3(248.49304f, -11.838913f, 97.45935f), 138); - obj71.Steps = list114; - reference77 = obj71; - ref QuestSequence reference79 = ref span59[2]; - QuestSequence obj73 = new QuestSequence + num4 = 1; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + span6 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span6[num3] = 397u; + obj65.KillEnemyDataIds = list105; + reference70 = obj65; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005413u, new Vector3(248.49304f, -11.838913f, 97.45935f), 138); + obj64.Steps = list104; + reference69 = obj64; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - obj73.Steps = list116; - reference79 = obj73; - questRoot16.QuestSequence = list112; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(1434); - QuestRoot questRoot17 = new QuestRoot(); + obj66.Steps = list106; + reference71 = obj66; + questRoot15.QuestSequence = list102; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(1434); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; - questRoot17.Author = list117; - num = 3; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span61 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference80 = ref span61[0]; - QuestSequence obj74 = new QuestSequence + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; + questRoot16.Author = list107; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008798u, new Vector3(-93.06476f, 4f, -124.712036f), 130) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008798u, new Vector3(-93.06476f, 4f, -124.712036f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -86387,42 +102672,50 @@ public static class AssemblyQuestLoader } } }; - obj74.Steps = list119; - reference80 = obj74; - ref QuestSequence reference81 = ref span61[1]; - QuestSequence obj75 = new QuestSequence + obj67.Steps = list109; + reference72 = obj67; + num++; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span62 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference82 = ref span62[0]; - QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-240.09776f, -37.803402f, 105.18645f), 145) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; + QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-240.09776f, -37.803402f, 105.18645f), 145) { StopDistance = 0.5f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 138u; - obj76.KillEnemyDataIds = list121; - reference82 = obj76; - span62[1] = new QuestStep(EInteractionType.Interact, 1008799u, new Vector3(-237.72034f, -37.77224f, 103.4104f), 145); - obj75.Steps = list120; - reference81 = obj75; - ref QuestSequence reference83 = ref span61[2]; - QuestSequence obj77 = new QuestSequence + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + span6 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span6[num4] = 138u; + obj69.KillEnemyDataIds = list111; + reference74 = obj69; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008799u, new Vector3(-237.72034f, -37.77224f, 103.4104f), 145); + obj68.Steps = list110; + reference73 = obj68; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001963u, new Vector3(106.06543f, 4.642026f, -72.007385f), 131) + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001963u, new Vector3(106.06543f, 4.642026f, -72.007385f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -86431,30 +102724,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - obj77.Steps = list122; - reference83 = obj77; - questRoot17.QuestSequence = list118; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(1438); - QuestRoot questRoot18 = new QuestRoot(); + obj70.Steps = list112; + reference75 = obj70; + questRoot16.QuestSequence = list108; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(1438); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "FalconTaterz"; - questRoot18.Author = list123; - num = 8; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span63 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference84 = ref span63[0]; - QuestSequence obj78 = new QuestSequence + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "FalconTaterz"; + questRoot17.Author = list113; + index = 8; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008757u, new Vector3(-422.5376f, 23.113976f, -367.7882f), 140) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008757u, new Vector3(-422.5376f, 23.113976f, -367.7882f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -86465,565 +102763,692 @@ public static class AssemblyQuestLoader } } }; - obj78.Steps = list125; - reference84 = obj78; - ref QuestSequence reference85 = ref span63[1]; - QuestSequence obj79 = new QuestSequence + obj71.Steps = list115; + reference76 = obj71; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1009305u, new Vector3(562.4321f, 17.654663f, 421.7135f), 137) + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009305u, new Vector3(562.4321f, 17.654663f, 421.7135f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - obj79.Steps = list126; - reference85 = obj79; - ref QuestSequence reference86 = ref span63[2]; - QuestSequence obj80 = new QuestSequence + obj72.Steps = list116; + reference77 = obj72; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; + QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1009307u, new Vector3(498.89368f, 10.079935f, 418.265f), 137) { Fly = true }; - num3 = 2; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span64 = CollectionsMarshal.AsSpan(list128); - span64[0] = new DialogueChoice + num4 = 2; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + span7 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB301_01438_Q1_000_000"), Answer = new ExcelRef("TEXT_CHRHDB301_01438_A1_000_030") }; - span64[1] = new DialogueChoice + num3++; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB301_01438_Q2_000_000"), Answer = new ExcelRef("TEXT_CHRHDB301_01438_A2_000_030") }; - obj81.DialogueChoices = list128; - reference87 = obj81; - obj80.Steps = list127; - reference86 = obj80; - ref QuestSequence reference88 = ref span63[3]; + obj74.DialogueChoices = list118; + reference79 = obj74; + obj73.Steps = list117; + reference78 = obj73; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj75 = new QuestSequence + { + Sequence = 3 + }; + num2 = 1; + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009310u, new Vector3(471.18323f, 9.96334f, 794.6135f), 137) + { + Fly = true + }; + obj75.Steps = list119; + reference80 = obj75; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj76 = new QuestSequence + { + Sequence = 4 + }; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009308u, new Vector3(560.32654f, 17.707417f, 421.01147f), 137) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol + }; + obj76.Steps = list120; + reference81 = obj76; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj77 = new QuestSequence + { + Sequence = 5 + }; + num2 = 1; + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009311u, new Vector3(531.2123f, 17.448051f, 454.1847f), 137); + obj77.Steps = list121; + reference82 = obj77; + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj78 = new QuestSequence + { + Sequence = 6 + }; + index2 = 2; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(582.44116f, 14.587065f, 394.23407f), 137) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009317u, new Vector3(583.88635f, 14.587067f, 394.70508f), 137); + obj78.Steps = list122; + reference83 = obj78; + num++; + ref QuestSequence reference84 = ref span2[num]; + QuestSequence obj79 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2004317u, new Vector3(515.98376f, 9.384277f, 525.81055f), 137) + { + Fly = true, + NextQuestId = new QuestId(1439) + }; + obj79.Steps = list123; + reference84 = obj79; + questRoot17.QuestSequence = list114; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(1439); + QuestRoot questRoot18 = new QuestRoot(); + num = 1; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "FalconTaterz"; + questRoot18.Author = list124; + index = 5; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj80 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009326u, new Vector3(526.2073f, 8.84578f, 556.54236f), 137); + obj80.Steps = list126; + reference85 = obj80; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj81 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009328u, new Vector3(515.0376f, 9.192075f, 524.834f), 137); + obj81.Steps = list127; + reference86 = obj81; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence + { + Sequence = 2 + }; + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.1095f, 14.587067f, 394.20828f), 137) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); + obj82.Steps = list128; + reference87 = obj82; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 3 }; num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1009310u, new Vector3(471.18323f, 9.96334f, 794.6135f), 137) - { - Fly = true - }; - obj82.Steps = list129; - reference88 = obj82; - ref QuestSequence reference89 = ref span63[4]; - QuestSequence obj83 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1009308u, new Vector3(560.32654f, 17.707417f, 421.01147f), 137) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol - }; - obj83.Steps = list130; - reference89 = obj83; - ref QuestSequence reference90 = ref span63[5]; - QuestSequence obj84 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1009311u, new Vector3(531.2123f, 17.448051f, 454.1847f), 137); - obj84.Steps = list131; - reference90 = obj84; - ref QuestSequence reference91 = ref span63[6]; - QuestSequence obj85 = new QuestSequence - { - Sequence = 6 - }; - num2 = 2; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span65 = CollectionsMarshal.AsSpan(list132); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(582.44116f, 14.587065f, 394.23407f), 137) - { - Fly = true - }; - span65[1] = new QuestStep(EInteractionType.Interact, 1009317u, new Vector3(583.88635f, 14.587067f, 394.70508f), 137); - obj85.Steps = list132; - reference91 = obj85; - ref QuestSequence reference92 = ref span63[7]; - QuestSequence obj86 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004317u, new Vector3(515.98376f, 9.384277f, 525.81055f), 137) - { - Fly = true, - NextQuestId = new QuestId(1439) - }; - obj86.Steps = list133; - reference92 = obj86; - questRoot18.QuestSequence = list124; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(1439); - QuestRoot questRoot19 = new QuestRoot(); - num = 1; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "FalconTaterz"; - questRoot19.Author = list134; - num = 5; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span66 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference93 = ref span66[0]; - QuestSequence obj87 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009326u, new Vector3(526.2073f, 8.84578f, 556.54236f), 137); - obj87.Steps = list136; - reference93 = obj87; - ref QuestSequence reference94 = ref span66[1]; - QuestSequence obj88 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1009328u, new Vector3(515.0376f, 9.192075f, 524.834f), 137); - obj88.Steps = list137; - reference94 = obj88; - ref QuestSequence reference95 = ref span66[2]; - QuestSequence obj89 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span67 = CollectionsMarshal.AsSpan(list138); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.1095f, 14.587067f, 394.20828f), 137) - { - Fly = true - }; - span67[1] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); - obj89.Steps = list138; - reference95 = obj89; - ref QuestSequence reference96 = ref span66[3]; - QuestSequence obj90 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - obj90.Steps = list139; - reference96 = obj90; - ref QuestSequence reference97 = ref span66[4]; - QuestSequence obj91 = new QuestSequence + obj83.Steps = list129; + reference88 = obj83; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, NextQuestId = new QuestId(1440) }; - obj91.Steps = list140; - reference97 = obj91; - questRoot19.QuestSequence = list135; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(1440); - QuestRoot questRoot20 = new QuestRoot(); + obj84.Steps = list130; + reference89 = obj84; + questRoot18.QuestSequence = list125; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(1440); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "FalconTaterz"; - questRoot20.Author = list141; - num = 6; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span68 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference98 = ref span68[0]; - QuestSequence obj92 = new QuestSequence + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "FalconTaterz"; + questRoot19.Author = list131; + index = 6; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list143)[0]; - QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138); + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference91 = ref span3[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138); num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + span7 = CollectionsMarshal.AsSpan(list134); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB303_01440_Q1_000_010") }; - questStep7.DialogueChoices = list144; - reference99 = questStep7; - obj92.Steps = list143; - reference98 = obj92; - ref QuestSequence reference100 = ref span68[1]; - QuestSequence obj93 = new QuestSequence + questStep6.DialogueChoices = list134; + reference91 = questStep6; + obj85.Steps = list133; + reference90 = obj85; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span69 = CollectionsMarshal.AsSpan(list145); - ref QuestStep reference101 = ref span69[0]; - QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) + index2 = 4; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; + QuestStep obj87 = 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(); + SkipConditions skipConditions = new SkipConditions(); + SkipStepConditions skipStepConditions = new SkipStepConditions(); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + span5 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + skipStepConditions.CompletionQuestVariablesFlags = list136; + skipConditions.StepIf = skipStepConditions; + obj87.SkipConditions = skipConditions; + reference93 = obj87; + num2++; + ref QuestStep reference94 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2004324u, new Vector3(-283.0091f, -40.634766f, 425.58936f), 138); 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; - 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 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; - ref QuestStep reference103 = ref span69[2]; - QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2004325u, new Vector3(-242.60321f, -38.68164f, 514.7324f), 138) + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + span5 = CollectionsMarshal.AsSpan(list137); + 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); + questStep7.CompletionQuestVariablesFlags = list137; + reference94 = questStep7; + num2++; + ref QuestStep reference95 = ref span3[num2]; + QuestStep obj88 = new QuestStep(EInteractionType.Interact, 2004325u, new Vector3(-242.60321f, -38.68164f, 514.7324f), 138) + { + Fly = true + }; + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + span5 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj88.CompletionQuestVariablesFlags = list138; + reference95 = obj88; + num2++; + ref QuestStep reference96 = ref span3[num2]; + QuestStep obj89 = new QuestStep(EInteractionType.Interact, 2004326u, new Vector3(-291.06586f, -38.07129f, 596.765f), 138) { Fly = true }; num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span72 = CollectionsMarshal.AsSpan(list148); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj95.CompletionQuestVariablesFlags = list148; - reference103 = obj95; - ref QuestStep reference104 = ref span69[3]; - QuestStep obj96 = new QuestStep(EInteractionType.Interact, 2004326u, new Vector3(-291.06586f, -38.07129f, 596.765f), 138) - { - Fly = true - }; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span73 = CollectionsMarshal.AsSpan(list149); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj96.CompletionQuestVariablesFlags = list149; - reference104 = obj96; - obj93.Steps = list145; - reference100 = obj93; - ref QuestSequence reference105 = ref span68[2]; - QuestSequence obj97 = new QuestSequence + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + span5 = CollectionsMarshal.AsSpan(list139); + 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); + obj89.CompletionQuestVariablesFlags = list139; + reference96 = obj89; + obj86.Steps = list135; + reference92 = obj86; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - 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) + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; + QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1009335u, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) { Fly = true, Comment = "Commence \"The Mandragoras\"" }; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + num4 = 1; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + span7 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "Addon", Prompt = new ExcelRef(102445u), PromptIsRegularExpression = true }; - obj98.DialogueChoices = list151; - reference106 = obj98; - ref QuestStep reference107 = ref span74[1]; - QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) + obj91.DialogueChoices = list141; + reference98 = obj91; + index2++; + ref QuestStep reference99 = ref span3[index2]; + QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) { Comment = "Fight some Mandragoras", EnemySpawnType = EEnemySpawnType.FateEnemies }; num3 = 5; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span75 = CollectionsMarshal.AsSpan(list152); - span75[0] = 2950u; - span75[1] = 2951u; - span75[2] = 2952u; - span75[3] = 2953u; - span75[4] = 2954u; - obj99.KillEnemyDataIds = list152; - reference107 = obj99; - obj97.Steps = list150; - reference105 = obj97; - ref QuestSequence reference108 = ref span68[3]; - QuestSequence obj100 = new QuestSequence + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span6 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span6[num4] = 2950u; + num4++; + span6[num4] = 2951u; + num4++; + span6[num4] = 2952u; + num4++; + span6[num4] = 2953u; + num4++; + span6[num4] = 2954u; + obj92.KillEnemyDataIds = list142; + reference99 = obj92; + obj90.Steps = list140; + reference97 = obj90; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span76 = CollectionsMarshal.AsSpan(list153); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.46533f, 14.587067f, 393.86594f), 137) + index2 = 2; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.46533f, 14.587067f, 393.86594f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span76[1] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); - obj100.Steps = list153; - reference108 = obj100; - ref QuestSequence reference109 = ref span68[4]; - QuestSequence obj101 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); + obj93.Steps = list143; + reference100 = obj93; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1009336u, new Vector3(494.49902f, 11.323204f, 210.3761f), 137) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009336u, new Vector3(494.49902f, 11.323204f, 210.3761f), 137) { Fly = true }; - obj101.Steps = list154; - reference109 = obj101; - ref QuestSequence reference110 = ref span68[5]; - QuestSequence obj102 = new QuestSequence + obj94.Steps = list144; + reference101 = obj94; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009337u, new Vector3(-46.860474f, 75.95114f, 10.879639f), 137) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009337u, new Vector3(-46.860474f, 75.95114f, 10.879639f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, NextQuestId = new QuestId(1441) }; - obj102.Steps = list155; - reference110 = obj102; - questRoot20.QuestSequence = list142; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(1441); - QuestRoot questRoot21 = new QuestRoot(); + obj95.Steps = list145; + reference102 = obj95; + questRoot19.QuestSequence = list132; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(1441); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "FalconTaterz"; - questRoot21.Author = list156; - num = 6; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span77 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference111 = ref span77[0]; - QuestSequence obj103 = new QuestSequence + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "FalconTaterz"; + questRoot20.Author = list146; + index = 6; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009341u, new Vector3(-48.44745f, 75.95115f, 9.079041f), 137); - obj103.Steps = list158; - reference111 = obj103; - ref QuestSequence reference112 = ref span77[1]; - QuestSequence obj104 = new QuestSequence + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009341u, new Vector3(-48.44745f, 75.95115f, 9.079041f), 137); + obj96.Steps = list148; + reference103 = obj96; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1009351u, new Vector3(524.28467f, 17.448048f, 449.08826f), 137) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009351u, new Vector3(524.28467f, 17.448048f, 449.08826f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - obj104.Steps = list159; - reference112 = obj104; - ref QuestSequence reference113 = ref span77[2]; - QuestSequence obj105 = new QuestSequence + obj97.Steps = list149; + reference104 = obj97; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1009347u, new Vector3(442.77087f, 15.823447f, 375.17358f), 137) + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009347u, new Vector3(442.77087f, 15.823447f, 375.17358f), 137) { Fly = true }; - obj105.Steps = list160; - reference113 = obj105; - ref QuestSequence reference114 = ref span77[3]; - QuestSequence obj106 = new QuestSequence + obj98.Steps = list150; + reference105 = obj98; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1009348u, new Vector3(386.19055f, 29.58076f, 350.3623f), 137) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009348u, new Vector3(386.19055f, 29.58076f, 350.3623f), 137) { Fly = true }; - obj106.Steps = list161; - reference114 = obj106; - ref QuestSequence reference115 = ref span77[4]; - QuestSequence obj107 = new QuestSequence + obj99.Steps = list151; + reference106 = obj99; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1009345u, new Vector3(523.76587f, 17.448044f, 447.13513f), 137) + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009345u, new Vector3(523.76587f, 17.448044f, 447.13513f), 137) { Fly = true }; - obj107.Steps = list162; - reference115 = obj107; - ref QuestSequence reference116 = ref span77[5]; - QuestSequence obj108 = new QuestSequence + obj100.Steps = list152; + reference107 = obj100; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004328u, new Vector3(523.4607f, 17.837708f, 455.2528f), 137) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2004328u, new Vector3(523.4607f, 17.837708f, 455.2528f), 137) { NextQuestId = new QuestId(166) }; - obj108.Steps = list163; - reference116 = obj108; - questRoot21.QuestSequence = list157; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(1442); - QuestRoot questRoot22 = new QuestRoot(); + obj101.Steps = list153; + reference108 = obj101; + questRoot20.QuestSequence = list147; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(1442); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "JerryWester"; - questRoot22.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span78 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference117 = ref span78[0]; - QuestSequence obj109 = new QuestSequence + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "JerryWester"; + questRoot21.Author = list154; + index = 3; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference109 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); - obj109.Steps = list166; - reference117 = obj109; - ref QuestSequence reference118 = ref span78[1]; - QuestSequence obj110 = new QuestSequence + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + obj102.Steps = list156; + reference109 = obj102; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span79 = CollectionsMarshal.AsSpan(list167); - span79[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + index2 = 3; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span79[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span79[2] = new QuestStep(EInteractionType.Interact, 1009239u, new Vector3(18.32605f, 21.252728f, -639.7345f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009239u, new Vector3(18.32605f, 21.252728f, -639.7345f), 156) { StopDistance = 7f }; - obj110.Steps = list167; - reference118 = obj110; - ref QuestSequence reference119 = ref span78[2]; - QuestSequence obj111 = new QuestSequence + obj103.Steps = list157; + reference110 = obj103; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -87032,30 +103457,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj111.Steps = list168; - reference119 = obj111; - questRoot22.QuestSequence = list165; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(1443); - QuestRoot questRoot23 = new QuestRoot(); + obj104.Steps = list158; + reference111 = obj104; + questRoot21.QuestSequence = list155; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(1443); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; - questRoot23.Author = list169; - num = 7; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span80 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference120 = ref span80[0]; - QuestSequence obj112 = new QuestSequence + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "JerryWester"; + questRoot22.Author = list159; + index = 7; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + span2 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -87066,17 +103496,20 @@ public static class AssemblyQuestLoader } } }; - obj112.Steps = list171; - reference120 = obj112; - ref QuestSequence reference121 = ref span80[1]; - QuestSequence obj113 = new QuestSequence + obj105.Steps = list161; + reference112 = obj105; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AethernetShortcut = new AethernetShortcut { @@ -87084,125 +103517,157 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Uldah } }; - obj113.Steps = list172; - reference121 = obj113; - ref QuestSequence reference122 = ref span80[2]; - QuestSequence obj114 = new QuestSequence + obj106.Steps = list162; + reference113 = obj106; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj114.Steps = list173; - reference122 = obj114; - ref QuestSequence reference123 = ref span80[3]; - QuestSequence obj115 = new QuestSequence + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj107.Steps = list163; + reference114 = obj107; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - 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) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference116 = ref span3[index2]; + QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1001484u, new Vector3(93.247925f, 0.34075317f, -272.60242f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; + num4 = 6; + List list165 = new List(num4); + CollectionsMarshal.SetCount(list165, num4); + span5 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj109.CompletionQuestVariablesFlags = list165; + reference116 = obj109; + index2++; + ref QuestStep reference117 = ref span3[index2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); 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; - 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 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; - ref QuestSequence reference126 = ref span80[4]; - QuestSequence obj117 = new QuestSequence + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + span5 = CollectionsMarshal.AsSpan(list166); + 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); + questStep8.CompletionQuestVariablesFlags = list166; + reference117 = questStep8; + obj108.Steps = list164; + reference115 = obj108; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span84 = CollectionsMarshal.AsSpan(list177); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.75328f, -1f, -316.30814f), 141) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.75328f, -1f, -316.30814f), 141) { Fly = true }; - span84[1] = new QuestStep(EInteractionType.Interact, 1006359u, new Vector3(177.203f, -1f, -317.86072f), 141); - obj117.Steps = list177; - reference126 = obj117; - ref QuestSequence reference127 = ref span80[5]; - QuestSequence obj118 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006359u, new Vector3(177.203f, -1f, -317.86072f), 141); + obj110.Steps = list167; + reference118 = obj110; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); - obj118.Steps = list178; - reference127 = obj118; - ref QuestSequence reference128 = ref span80[6]; - QuestSequence obj119 = new QuestSequence + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); + obj111.Steps = list168; + reference119 = obj111; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { Emote = EEmote.Soothe }; - obj119.Steps = list179; - reference128 = obj119; - questRoot23.QuestSequence = list170; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(1446); - QuestRoot questRoot24 = new QuestRoot(); + obj112.Steps = list169; + reference120 = obj112; + questRoot22.QuestSequence = list160; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(1446); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "JerryWester"; - questRoot24.Author = list180; - num = 2; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span85 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference129 = ref span85[0]; - QuestSequence obj120 = new QuestSequence + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "JerryWester"; + questRoot23.Author = list170; + index = 2; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -87213,17 +103678,20 @@ public static class AssemblyQuestLoader } } }; - obj120.Steps = list182; - reference129 = obj120; - ref QuestSequence reference130 = ref span85[1]; - QuestSequence obj121 = new QuestSequence + obj113.Steps = list172; + reference121 = obj113; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -87232,42 +103700,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj121.Steps = list183; - reference130 = obj121; - questRoot24.QuestSequence = list181; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(1447); - QuestRoot questRoot25 = new QuestRoot(); + obj114.Steps = list173; + reference122 = obj114; + questRoot23.QuestSequence = list171; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(1447); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "JerryWester"; - questRoot25.Author = list184; - num = 2; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span86 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference131 = ref span86[0]; - QuestSequence obj122 = new QuestSequence + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + span = CollectionsMarshal.AsSpan(list174); + index = 0; + span[index] = "JerryWester"; + questRoot24.Author = list174; + index = 2; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span2 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); - obj122.Steps = list186; - reference131 = obj122; - ref QuestSequence reference132 = ref span86[1]; - QuestSequence obj123 = new QuestSequence + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); + obj115.Steps = list176; + reference123 = obj115; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span87 = CollectionsMarshal.AsSpan(list187); - span87[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -87279,88 +103754,105 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span87[2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); - obj123.Steps = list187; - reference132 = obj123; - questRoot25.QuestSequence = list185; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(1448); - QuestRoot questRoot26 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + obj116.Steps = list177; + reference124 = obj116; + questRoot24.QuestSequence = list175; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(1448); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; - questRoot26.Author = list188; - num = 4; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span88 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference133 = ref span88[0]; - QuestSequence obj124 = new QuestSequence + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "JerryWester"; + questRoot25.Author = list178; + index = 4; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); - obj124.Steps = list190; - reference133 = obj124; - ref QuestSequence reference134 = ref span88[1]; - QuestSequence obj125 = new QuestSequence + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + obj117.Steps = list180; + reference125 = obj117; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj125.Steps = list191; - reference134 = obj125; - ref QuestSequence reference135 = ref span88[2]; - QuestSequence obj126 = new QuestSequence + obj118.Steps = list181; + reference126 = obj118; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span89 = CollectionsMarshal.AsSpan(list192); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.118355f, 1.308924f, 8.009593f), 132) + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.118355f, 1.308924f, 8.009593f), 132) { TargetTerritoryId = (ushort)133 }; - span89[1] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - span89[2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); - obj126.Steps = list192; - reference135 = obj126; - ref QuestSequence reference136 = ref span88[3]; - QuestSequence obj127 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj119.Steps = list182; + reference127 = obj119; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - obj127.Steps = list193; - reference136 = obj127; - questRoot26.QuestSequence = list189; - AddQuest(questId26, questRoot26); + obj120.Steps = list183; + reference128 = obj120; + questRoot25.QuestSequence = list179; + AddQuest(questId25, questRoot25); } private static void LoadQuests29() @@ -87370,13 +103862,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -87384,7 +103879,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -87397,16 +103894,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -87416,10 +103915,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -87427,19 +103928,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1009096u, new Vector3(-158.12933f, 4.1921f, -17.013855f), 133); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009096u, new Vector3(-158.12933f, 4.1921f, -17.013855f), 133); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -87451,11 +103956,13 @@ public static class AssemblyQuestLoader } } }; - span3[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span3[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -87465,13 +103972,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list7; - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span4[0]; + index = 4; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -87479,130 +103989,150 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span4[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span5[1] = new QuestStep(EInteractionType.Interact, 1008980u, new Vector3(8.712891f, 0.009977885f, -3.8911133f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008980u, new Vector3(8.712891f, 0.009977885f, -3.8911133f), 351); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; + num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; - QuestStep obj8 = new QuestStep(EInteractionType.SinglePlayerDuty, 1009282u, new Vector3(132.95178f, -2.2044632f, -556.2372f), 156) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + { + TargetTerritoryId = (ushort)156 + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + { + Mount = true + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1009282u, new Vector3(132.95178f, -2.2044632f, -556.2372f), 156) { StopDistance = 1f, - TargetTerritoryId = (ushort)156, Fly = true, - AetheryteShortcut = EAetheryteLocation.MorDhona, SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - int num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 156; - skipAetheryteCondition.InTerritory = list12; - skipConditions.AetheryteShortcutIf = skipAetheryteCondition; - obj8.SkipConditions = skipConditions; - reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span4[3]; - QuestSequence obj9 = new QuestSequence + num++; + ref QuestSequence reference8 = ref span2[num]; + QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2 = 4; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - span6[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span6[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span6[3] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); - obj9.Steps = list13; - reference9 = obj9; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + obj8.Steps = list12; + reference8 = obj8; questRoot2.QuestSequence = list8; AddQuest(questId2, questRoot2); QuestId questId3 = new QuestId(1457); QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; - questRoot3.Author = list14; - num = 11; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span7[0]; - QuestSequence obj10 = new QuestSequence + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "JerryWester"; + questRoot3.Author = list13; + index = 11; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; + QuestSequence obj9 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); - obj10.Steps = list16; - reference10 = obj10; - ref QuestSequence reference11 = ref span7[1]; - QuestSequence obj11 = new QuestSequence + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + obj9.Steps = list15; + reference9 = obj9; + num++; + ref QuestSequence reference10 = ref span2[num]; + QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1009128u, new Vector3(1.1443481f, 19.999985f, -15.640564f), 129) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009128u, new Vector3(1.1443481f, 19.999985f, -15.640564f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - obj11.Steps = list17; - reference11 = obj11; - ref QuestSequence reference12 = ref span7[2]; - QuestSequence obj12 = new QuestSequence + obj10.Steps = list16; + reference10 = obj10; + num++; + ref QuestSequence reference11 = ref span2[num]; + QuestSequence obj11 = new QuestSequence { Sequence = 2 }; num2 = 6; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - 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) + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; + QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { AethernetShortcut = new AethernetShortcut { @@ -87610,34 +104140,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj13.CompletionQuestVariablesFlags = list19; - reference13 = obj13; - ref QuestStep reference14 = ref span8[1]; + int num3 = 6; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + Span span4 = CollectionsMarshal.AsSpan(list18); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj12.CompletionQuestVariablesFlags = list18; + reference12 = obj12; + index2++; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); - num3 = 6; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span10 = CollectionsMarshal.AsSpan(list20); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep.CompletionQuestVariablesFlags = list20; - reference14 = questStep; - ref QuestStep reference15 = ref span8[2]; - QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) + num4 = 6; + List list19 = new List(num4); + CollectionsMarshal.SetCount(list19, num4); + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep.CompletionQuestVariablesFlags = list19; + reference13 = questStep; + index2++; + ref QuestStep reference14 = ref span3[index2]; + QuestStep obj13 = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) { AethernetShortcut = new AethernetShortcut { @@ -87646,57 +104190,81 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj14.CompletionQuestVariablesFlags = list21; - reference15 = obj14; - ref QuestStep reference16 = ref span8[3]; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + span4 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj13.CompletionQuestVariablesFlags = list20; + reference14 = obj13; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); + num4 = 6; + List list21 = new List(num4); + CollectionsMarshal.SetCount(list21, num4); + span4 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list21; + reference15 = questStep2; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.77458f, 39.99999f, 155.4174f), 128); + index2++; + ref QuestStep reference16 = ref span3[index2]; + QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1009133u, new Vector3(-189.13562f, 41.249943f, 179.40027f), 128); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list22; - reference16 = questStep2; - span8[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.77458f, 39.99999f, 155.4174f), 128); - ref QuestStep reference17 = ref span8[5]; - QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1009133u, new Vector3(-189.13562f, 41.249943f, 179.40027f), 128); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list23; - reference17 = questStep3; - obj12.Steps = list18; - reference12 = obj12; - ref QuestSequence reference18 = ref span7[3]; - QuestSequence obj15 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list22); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list22; + reference16 = questStep3; + obj11.Steps = list17; + reference11 = obj11; + num++; + ref QuestSequence reference17 = ref span2[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1009129u, new Vector3(-22.110352f, 91.999985f, -11.6427f), 128) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009129u, new Vector3(-22.110352f, 91.999985f, -11.6427f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -87705,22 +104273,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - obj15.Steps = list24; - reference18 = obj15; - ref QuestSequence reference19 = ref span7[4]; - QuestSequence obj16 = new QuestSequence + obj14.Steps = list23; + reference17 = obj14; + num++; + ref QuestSequence reference18 = ref span2[num]; + QuestSequence obj15 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { TargetTerritoryId = (ushort)132 }; - span14[1] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -87729,19 +104300,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj16.Steps = list25; - reference19 = obj16; - ref QuestSequence reference20 = ref span7[5]; - QuestSequence obj17 = new QuestSequence + obj15.Steps = list24; + reference18 = obj15; + num++; + ref QuestSequence reference19 = ref span2[num]; + QuestSequence obj16 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span15 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference21 = ref span15[0]; - QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1009138u, new Vector3(-35.324707f, 7.117063f, -110.76526f), 133) + index2 = 4; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; + QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1009138u, new Vector3(-35.324707f, 7.117063f, -110.76526f), 133) { AethernetShortcut = new AethernetShortcut { @@ -87749,30 +104322,39 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj18.CompletionQuestVariablesFlags = list27; + num4 = 6; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + span4 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj17.CompletionQuestVariablesFlags = list26; num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + Span span5 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_GAIUSE316_01457_Q1_000_142"), Answer = new ExcelRef("TEXT_GAIUSE316_01457_A1_000_143") }; - obj18.DialogueChoices = list28; - reference21 = obj18; - ref QuestStep reference22 = ref span15[1]; - QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) + obj17.DialogueChoices = list27; + reference20 = obj17; + num2++; + ref QuestStep reference21 = ref span3[num2]; + QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut { @@ -87780,57 +104362,80 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj18.CompletionQuestVariablesFlags = list28; + reference21 = obj18; + num2++; + ref QuestStep reference22 = ref span3[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj19.CompletionQuestVariablesFlags = list29; - reference22 = obj19; - ref QuestStep reference23 = ref span15[2]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list30; - reference23 = questStep4; - ref QuestStep reference24 = ref span15[3]; + span4 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list29; + reference22 = questStep4; + num2++; + ref QuestStep reference23 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1009139u, new Vector3(-14.328308f, 9.999907f, -262.68408f), 133); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list31; - reference24 = questStep5; - obj17.Steps = list26; - reference20 = obj17; - ref QuestSequence reference25 = ref span7[6]; - QuestSequence obj20 = new QuestSequence + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span4 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list30; + reference23 = questStep5; + obj16.Steps = list25; + reference19 = obj16; + num++; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1009131u, new Vector3(25.864014f, -19.000002f, 98.68005f), 132) + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009131u, new Vector3(25.864014f, -19.000002f, 98.68005f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -87839,39 +104444,45 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj20.Steps = list32; - reference25 = obj20; - ref QuestSequence reference26 = ref span7[7]; - QuestSequence obj21 = new QuestSequence + obj19.Steps = list31; + reference24 = obj19; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj20 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + index2 = 3; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { TargetTerritoryId = (ushort)130 }; - span20[1] = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 }; - span20[2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131); - obj21.Steps = list33; - reference26 = obj21; - ref QuestSequence reference27 = ref span7[8]; - QuestSequence obj22 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131); + obj20.Steps = list32; + reference25 = obj20; + num++; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj21 = new QuestSequence { Sequence = 8 }; num2 = 5; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - 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) + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; + QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1009135u, new Vector3(-89.3111f, 7.008094f, -10.025269f), 131) { AethernetShortcut = new AethernetShortcut { @@ -87880,19 +104491,26 @@ public static class AssemblyQuestLoader } }; 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; - ref QuestStep reference29 = ref span21[1]; - QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1009136u, new Vector3(65.35437f, 14.005002f, 102.46423f), 131) + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + span4 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj22.CompletionQuestVariablesFlags = list34; + reference27 = obj22; + index2++; + ref QuestStep reference28 = ref span3[index2]; + QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1009136u, new Vector3(65.35437f, 14.005002f, 102.46423f), 131) { AethernetShortcut = new AethernetShortcut { @@ -87900,34 +104518,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahMiner } }; + num4 = 6; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span4 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj23.CompletionQuestVariablesFlags = list35; + reference28 = obj23; + index2++; + ref QuestStep reference29 = ref span3[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131); num3 = 6; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span23 = CollectionsMarshal.AsSpan(list36); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj24.CompletionQuestVariablesFlags = list36; - reference29 = obj24; - ref QuestStep reference30 = ref span21[2]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131); - num3 = 6; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span24 = CollectionsMarshal.AsSpan(list37); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list37; - reference30 = questStep6; - ref QuestStep reference31 = ref span21[3]; - QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + span4 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list36; + reference29 = questStep6; + index2++; + ref QuestStep reference30 = ref span3[index2]; + QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { AethernetShortcut = new AethernetShortcut { @@ -87935,30 +104567,40 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span25 = CollectionsMarshal.AsSpan(list38); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj25.CompletionQuestVariablesFlags = list38; - reference31 = obj25; - span21[4] = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131); - obj22.Steps = list34; - reference27 = obj22; - ref QuestSequence reference32 = ref span7[9]; - QuestSequence obj26 = new QuestSequence + num4 = 6; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + span4 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj24.CompletionQuestVariablesFlags = list37; + reference30 = obj24; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131); + obj21.Steps = list33; + reference26 = obj21; + num++; + ref QuestSequence reference31 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131) { AethernetShortcut = new AethernetShortcut { @@ -87966,115 +104608,136 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj26.Steps = list39; - reference32 = obj26; - ref QuestSequence reference33 = ref span7[10]; - QuestSequence obj27 = new QuestSequence + obj25.Steps = list38; + reference31 = obj25; + num++; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span26 = CollectionsMarshal.AsSpan(list40); - span26[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span26[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span26[2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); - obj27.Steps = list40; - reference33 = obj27; - questRoot3.QuestSequence = list15; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + obj26.Steps = list39; + reference32 = obj26; + questRoot3.QuestSequence = list14; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(1458); QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "JerryWester"; - questRoot4.Author = list41; - num = 3; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span27 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference34 = ref span27[0]; - QuestSequence obj28 = new QuestSequence + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "JerryWester"; + questRoot4.Author = list40; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference33 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) { StopDistance = 7f }; - obj28.Steps = list43; - reference34 = obj28; - ref QuestSequence reference35 = ref span27[1]; - QuestSequence obj29 = new QuestSequence + obj27.Steps = list42; + reference33 = obj27; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span28 = CollectionsMarshal.AsSpan(list44); - span28[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span28[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span28[2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); - obj29.Steps = list44; - reference35 = obj29; - ref QuestSequence reference36 = ref span27[2]; - QuestSequence obj30 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + obj28.Steps = list43; + reference34 = obj28; + num++; + ref QuestSequence reference35 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span29 = CollectionsMarshal.AsSpan(list45); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj30.Steps = list45; - reference36 = obj30; - questRoot4.QuestSequence = list42; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + obj29.Steps = list44; + reference35 = obj29; + questRoot4.QuestSequence = list41; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(1459); QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; - questRoot5.Author = list46; - num = 9; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span30 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference37 = ref span30[0]; - QuestSequence obj31 = new QuestSequence + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "JerryWester"; + questRoot5.Author = list45; + index = 9; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -88085,176 +104748,210 @@ public static class AssemblyQuestLoader } } }; - obj31.Steps = list48; - reference37 = obj31; - ref QuestSequence reference38 = ref span30[1]; - QuestSequence obj32 = new QuestSequence + obj30.Steps = list47; + reference36 = obj30; + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span31 = CollectionsMarshal.AsSpan(list49); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.43533f, 303.94617f, -200.04732f), 155) + index2 = 3; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.43533f, 303.94617f, -200.04732f), 155) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6362f, 266.62988f, -205.92511f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6362f, 266.62988f, -205.92511f), 155) { Fly = true }; - span31[2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj32.Steps = list49; - reference38 = obj32; - ref QuestSequence reference39 = ref span30[2]; - QuestSequence obj33 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj31.Steps = list48; + reference37 = obj31; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj32 = new QuestSequence { Sequence = 2 }; num2 = 4; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span32 = CollectionsMarshal.AsSpan(list50); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) { Fly = true }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) { Fly = false }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.45197f, 217.99948f, -296.54102f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.45197f, 217.99948f, -296.54102f), 155) { Fly = true }; - span32[3] = new QuestStep(EInteractionType.Interact, 1009081u, new Vector3(-413.93152f, 224.99988f, -298.2987f), 155); - obj33.Steps = list50; - reference39 = obj33; - ref QuestSequence reference40 = ref span30[3]; - QuestSequence obj34 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009081u, new Vector3(-413.93152f, 224.99988f, -298.2987f), 155); + obj32.Steps = list49; + reference38 = obj32; + num++; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span33 = CollectionsMarshal.AsSpan(list51); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.70523f, 217.9995f, -297.22086f), 155) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.70523f, 217.9995f, -297.22086f), 155) { Mount = true }; - ref QuestStep reference41 = ref span33[1]; - QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.3538f, 224.22969f, -31.912737f), 155) + num2++; + ref QuestStep reference40 = ref span3[num2]; + QuestStep obj34 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.3538f, 224.22969f, -31.912737f), 155) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span34 = CollectionsMarshal.AsSpan(list52); - span34[0] = 3119u; - span34[1] = 3120u; - obj35.KillEnemyDataIds = list52; - reference41 = obj35; - obj34.Steps = list51; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + Span span6 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span6[num4] = 3119u; + num4++; + span6[num4] = 3120u; + obj34.KillEnemyDataIds = list51; reference40 = obj34; - ref QuestSequence reference42 = ref span30[4]; - QuestSequence obj36 = new QuestSequence + obj33.Steps = list50; + reference39 = obj33; + num++; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155) { Fly = true }; - obj36.Steps = list53; - reference42 = obj36; - ref QuestSequence reference43 = ref span30[5]; - QuestSequence obj37 = new QuestSequence + obj35.Steps = list52; + reference41 = obj35; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155); - obj37.Steps = list54; - reference43 = obj37; - ref QuestSequence reference44 = ref span30[6]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155); + obj36.Steps = list53; + reference42 = obj36; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 6 }; num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span35 = CollectionsMarshal.AsSpan(list55); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.42563f, 265.09998f, -211.80003f), 155) + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.42563f, 265.09998f, -211.80003f), 155) { Fly = true }; - span35[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj38.Steps = list55; - reference44 = obj38; - ref QuestSequence reference45 = ref span30[7]; - QuestSequence obj39 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj37.Steps = list54; + reference43 = obj37; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span36 = CollectionsMarshal.AsSpan(list56); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.14075f, 303f, -200.08086f), 155) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.14075f, 303f, -200.08086f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span36[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj39.Steps = list56; - reference45 = obj39; - ref QuestSequence reference46 = ref span30[8]; - QuestSequence obj40 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + obj38.Steps = list55; + reference44 = obj38; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj40.Steps = list57; - reference46 = obj40; - questRoot5.QuestSequence = list47; + obj39.Steps = list56; + reference45 = obj39; + questRoot5.QuestSequence = list46; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1460); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; - questRoot6.Author = list58; - num = 5; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span37 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference47 = ref span37[0]; - QuestSequence obj41 = new QuestSequence + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "JerryWester"; + questRoot6.Author = list57; + index = 5; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -88265,18 +104962,20 @@ public static class AssemblyQuestLoader } } }; - obj41.Steps = list60; - reference47 = obj41; - ref QuestSequence reference48 = ref span37[1]; - QuestSequence obj42 = new QuestSequence + obj40.Steps = list59; + reference46 = obj40; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj41 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span38 = CollectionsMarshal.AsSpan(list61); - span38[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -88288,305 +104987,345 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.Interact, 1008997u, new Vector3(-5.8442383f, 0.51025796f, -9.628479f), 351); - obj42.Steps = list61; - reference48 = obj42; - ref QuestSequence reference49 = ref span37[2]; - QuestSequence obj43 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008997u, new Vector3(-5.8442383f, 0.51025796f, -9.628479f), 351); + obj41.Steps = list60; + reference47 = obj41; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - num2 = 12; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span39 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference50 = ref span39[0]; - QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2 = 12; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; + QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - SkipConditions skipConditions2 = new SkipConditions(); + SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span4 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + skipStepConditions.CompletionQuestVariablesFlags = list62; + skipConditions.StepIf = skipStepConditions; + obj43.SkipConditions = skipConditions; + reference49 = obj43; + num2++; + ref QuestStep reference50 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1009147u, new Vector3(41.153564f, 20.495003f, -650.44635f), 156); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span40 = CollectionsMarshal.AsSpan(list63); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - skipStepConditions.CompletionQuestVariablesFlags = list63; - skipConditions2.StepIf = skipStepConditions; - obj44.SkipConditions = skipConditions2; - reference50 = obj44; - ref QuestStep reference51 = ref span39[1]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1009147u, new Vector3(41.153564f, 20.495003f, -650.44635f), 156); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span41 = CollectionsMarshal.AsSpan(list64); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list64; - reference51 = questStep7; - ref QuestStep reference52 = ref span39[2]; - QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.662384f, 28.34813f, -627.5218f), 156) + span4 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list63; + reference50 = questStep7; + num2++; + ref QuestStep reference51 = ref span3[num2]; + QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.662384f, 28.34813f, -627.5218f), 156) { Fly = true }; - SkipConditions skipConditions3 = new SkipConditions(); + SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span4 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions2.CompletionQuestVariablesFlags = list64; + skipConditions2.StepIf = skipStepConditions2; + obj44.SkipConditions = skipConditions2; + reference51 = obj44; + num2++; + ref QuestStep reference52 = ref span3[num2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1009143u, new Vector3(86.778076f, 28.34813f, -625.94037f), 156); num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span42 = CollectionsMarshal.AsSpan(list65); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions2.CompletionQuestVariablesFlags = list65; - skipConditions3.StepIf = skipStepConditions2; - obj45.SkipConditions = skipConditions3; - reference52 = obj45; - ref QuestStep reference53 = ref span39[3]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1009143u, new Vector3(86.778076f, 28.34813f, -625.94037f), 156); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span43 = CollectionsMarshal.AsSpan(list66); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list66; - reference53 = questStep8; - ref QuestStep reference54 = ref span39[4]; - QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1009148u, new Vector3(71.091675f, 33.06652f, -698.3597f), 156) + span4 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list65; + reference52 = questStep8; + num2++; + ref QuestStep reference53 = ref span3[num2]; + QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1009148u, new Vector3(71.091675f, 33.06652f, -698.3597f), 156) + { + Fly = true + }; + num4 = 6; + List list66 = new List(num4); + CollectionsMarshal.SetCount(list66, num4); + span4 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + obj45.CompletionQuestVariablesFlags = list66; + reference53 = obj45; + num2++; + ref QuestStep reference54 = ref span3[num2]; + QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1009145u, new Vector3(55.832764f, 25.5776f, -703.6698f), 156) { Fly = true }; num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span44 = CollectionsMarshal.AsSpan(list67); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list67; reference54 = obj46; - ref QuestStep reference55 = ref span39[5]; - QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1009145u, new Vector3(55.832764f, 25.5776f, -703.6698f), 156) - { - Fly = true - }; - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span45 = CollectionsMarshal.AsSpan(list68); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - obj47.CompletionQuestVariablesFlags = list68; - reference55 = obj47; - ref QuestStep reference56 = ref span39[6]; - QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1009146u, new Vector3(47.80652f, 31.164318f, -744.9912f), 156) + num2++; + ref QuestStep reference55 = ref span3[num2]; + QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1009146u, new Vector3(47.80652f, 31.164318f, -744.9912f), 156) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span46 = CollectionsMarshal.AsSpan(list69); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - obj48.CompletionQuestVariablesFlags = list69; - reference56 = obj48; - ref QuestStep reference57 = ref span39[7]; - QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1009142u, new Vector3(22.384888f, 29.024387f, -735.4696f), 156) + num4 = 6; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span4 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + obj47.CompletionQuestVariablesFlags = list68; + reference55 = obj47; + num2++; + ref QuestStep reference56 = ref span3[num2]; + QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1009142u, new Vector3(22.384888f, 29.024387f, -735.4696f), 156) { Mount = true }; num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span47 = CollectionsMarshal.AsSpan(list70); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj49.CompletionQuestVariablesFlags = list70; - reference57 = obj49; - span39[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(20.33117f, 32.412514f, -710.2311f), 156) + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + span4 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj48.CompletionQuestVariablesFlags = list69; + reference56 = obj48; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(20.33117f, 32.412514f, -710.2311f), 156) { Fly = true }; - ref QuestStep reference58 = ref span39[9]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1009141u, new Vector3(22.171326f, 32.41251f, -711.4214f), 156); + num4 = 6; + List list70 = new List(num4); + CollectionsMarshal.SetCount(list70, num4); + span4 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list70; + reference57 = questStep9; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.0689f, 28.620823f, -687.8293f), 156) + { + Fly = true + }; + num2++; + ref QuestStep reference58 = ref span3[num2]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1009144u, new Vector3(20.61493f, 28.620823f, -688.38025f), 156); num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span48 = CollectionsMarshal.AsSpan(list71); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list71; - reference58 = questStep9; - span39[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.0689f, 28.620823f, -687.8293f), 156) - { - Fly = true - }; - ref QuestStep reference59 = ref span39[11]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1009144u, new Vector3(20.61493f, 28.620823f, -688.38025f), 156); - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span49 = CollectionsMarshal.AsSpan(list72); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list72; - reference59 = questStep10; - obj43.Steps = list62; - reference49 = obj43; - ref QuestSequence reference60 = ref span37[3]; - QuestSequence obj50 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list71; + reference58 = questStep10; + obj42.Steps = list61; + reference48 = obj42; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 3 }; num2 = 4; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span50 = CollectionsMarshal.AsSpan(list73); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - span50[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span50[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span50[3] = new QuestStep(EInteractionType.Interact, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351) + { + StopDistance = 7f + }; + obj49.Steps = list72; + reference59 = obj49; + num++; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj50 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) { StopDistance = 7f }; obj50.Steps = list73; reference60 = obj50; - ref QuestSequence reference61 = ref span37[4]; - QuestSequence obj51 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) - { - StopDistance = 7f - }; - obj51.Steps = list74; - reference61 = obj51; - questRoot6.QuestSequence = list59; + questRoot6.QuestSequence = list58; AddQuest(questId6, questRoot6); - QuestId questId7 = new QuestId(1463); + QuestId questId7 = new QuestId(1474); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "WigglyMuffin"; - questRoot7.Author = list75; - num = 2; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span51 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference62 = ref span51[0]; - QuestSequence obj52 = new QuestSequence + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "JerryWester"; + questRoot7.Author = list74; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) - { - AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj52.Steps = list77; - reference62 = obj52; - ref QuestSequence reference63 = ref span51[1]; - QuestSequence obj53 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); - obj53.Steps = list78; - reference63 = obj53; - questRoot7.QuestSequence = list76; - AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(1474); - QuestRoot questRoot8 = new QuestRoot(); - num = 2; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span52 = CollectionsMarshal.AsSpan(list79); - span52[0] = "JerryWester"; - span52[1] = "Wigglez"; - questRoot8.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span53 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference64 = ref span53[0]; - QuestSequence obj54 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -88597,74 +105336,78 @@ public static class AssemblyQuestLoader } } }; - obj54.Steps = list81; - reference64 = obj54; - ref QuestSequence reference65 = ref span53[1]; - QuestSequence obj55 = new QuestSequence + obj51.Steps = list76; + reference61 = obj51; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span54 = CollectionsMarshal.AsSpan(list82); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + index2 = 3; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) - { - Fly = true - }; - span54[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) - { - DelaySecondsAtStart = 1f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span54[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - span54[4] = new QuestStep(EInteractionType.Interact, 1009372u, new Vector3(640.1312f, -1.08248f, -137.59064f), 156); - obj55.Steps = list82; - reference65 = obj55; - ref QuestSequence reference66 = ref span53[2]; - QuestSequence obj56 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009372u, new Vector3(640.1312f, -1.08248f, -137.59064f), 156); + obj52.Steps = list77; + reference62 = obj52; + num++; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1009374u, new Vector3(734.15735f, 15.330521f, -55.832825f), 156) + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009374u, new Vector3(734.15735f, 15.330521f, -55.832825f), 156) { StopDistance = 7f }; - obj56.Steps = list83; - reference66 = obj56; - ref QuestSequence reference67 = ref span53[3]; - QuestSequence obj57 = new QuestSequence + obj53.Steps = list78; + reference63 = obj53; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1009376u, new Vector3(730.73914f, 15.428448f, -56.168518f), 156) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009376u, new Vector3(730.73914f, 15.428448f, -56.168518f), 156) { StopDistance = 7f }; - obj57.Steps = list84; - reference67 = obj57; - ref QuestSequence reference68 = ref span53[4]; - QuestSequence obj58 = new QuestSequence + obj54.Steps = list79; + reference64 = obj54; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -88672,52 +105415,59 @@ public static class AssemblyQuestLoader LowPriority = true } }; - obj58.Steps = list85; - reference68 = obj58; - ref QuestSequence reference69 = ref span53[5]; - QuestSequence obj59 = new QuestSequence + obj55.Steps = list80; + reference65 = obj55; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span55 = CollectionsMarshal.AsSpan(list86); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(494) }; - obj59.Steps = list86; - reference69 = obj59; - questRoot8.QuestSequence = list80; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(1475); - QuestRoot questRoot9 = new QuestRoot(); + obj56.Steps = list81; + reference66 = obj56; + questRoot7.QuestSequence = list75; + AddQuest(questId7, questRoot7); + QuestId questId8 = new QuestId(1475); + QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; - questRoot9.Author = list87; - num = 9; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span56 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference70 = ref span56[0]; - QuestSequence obj60 = new QuestSequence + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; + questRoot8.Author = list82; + index = 9; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - 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) + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; + QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -88727,56 +105477,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 433; - skipStepConditions3.InTerritory = list90; - skipConditions4.StepIf = skipStepConditions3; - SkipAetheryteCondition obj62 = new SkipAetheryteCondition + num4 = 1; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + Span span7 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span7[num3] = 433; + skipStepConditions3.InTerritory = list85; + skipConditions3.StepIf = skipStepConditions3; + SkipAetheryteCondition obj59 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span58 = CollectionsMarshal.AsSpan(list91); - span58[0] = 419; - span58[1] = 433; - obj62.InTerritory = list91; - skipConditions4.AetheryteShortcutIf = obj62; - obj61.SkipConditions = skipConditions4; - reference71 = obj61; - span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1012337u, new Vector3(-5.874817f, -9.313226E-10f, -5.783203f), 433); - obj60.Steps = list89; - reference70 = obj60; - ref QuestSequence reference72 = ref span56[1]; - QuestSequence obj63 = new QuestSequence + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + span7 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span7[num4] = 419; + num4++; + span7[num4] = 433; + obj59.InTerritory = list86; + skipConditions3.AetheryteShortcutIf = obj59; + obj58.SkipConditions = skipConditions3; + reference68 = obj58; + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012337u, new Vector3(-5.874817f, -9.313226E-10f, -5.783203f), 433); + obj57.Steps = list84; + reference67 = obj57; + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span59 = CollectionsMarshal.AsSpan(list92); - ref QuestStep reference73 = ref span59[0]; - QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + index2 = 2; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; + QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - SkipConditions skipConditions5 = new SkipConditions(); + SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 419; - skipStepConditions4.InTerritory = list93; - skipConditions5.StepIf = skipStepConditions4; - obj64.SkipConditions = skipConditions5; - reference73 = obj64; - span59[1] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + num4 = 1; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span7 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span7[num3] = 419; + skipStepConditions4.InTerritory = list88; + skipConditions4.StepIf = skipStepConditions4; + obj61.SkipConditions = skipConditions4; + reference70 = obj61; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -88784,17 +105544,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - obj63.Steps = list92; - reference72 = obj63; - ref QuestSequence reference74 = ref span56[2]; - QuestSequence obj65 = new QuestSequence + obj60.Steps = list87; + reference69 = obj60; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -88802,47 +105565,56 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj65.Steps = list94; - reference74 = obj65; - ref QuestSequence reference75 = ref span56[3]; - QuestSequence obj66 = new QuestSequence + obj62.Steps = list89; + reference71 = obj62; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - obj66.Steps = list95; - reference75 = obj66; - ref QuestSequence reference76 = ref span56[4]; - QuestSequence obj67 = new QuestSequence + obj63.Steps = list90; + reference72 = obj63; + num++; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj67.Steps = list96; - reference76 = obj67; - ref QuestSequence reference77 = ref span56[5]; - QuestSequence obj68 = new QuestSequence + obj64.Steps = list91; + reference73 = obj64; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 2007017u, new Vector3(120.62256f, 14.938599f, -156.6034f), 419) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007017u, new Vector3(120.62256f, 14.938599f, -156.6034f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -88851,76 +105623,90 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - obj68.Steps = list97; - reference77 = obj68; - ref QuestSequence reference78 = ref span56[6]; - QuestSequence obj69 = new QuestSequence + obj65.Steps = list92; + reference74 = obj65; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2007018u, new Vector3(23.025818f, 27.939209f, -145.73895f), 419); - obj69.Steps = list98; - reference78 = obj69; - ref QuestSequence reference79 = ref span56[7]; - QuestSequence obj70 = new QuestSequence + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007018u, new Vector3(23.025818f, 27.939209f, -145.73895f), 419); + obj66.Steps = list93; + reference75 = obj66; + num++; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198, AetheryteShortcut = EAetheryteLocation.Limsa }; - obj70.Steps = list99; - reference79 = obj70; - ref QuestSequence reference80 = ref span56[8]; - QuestSequence obj71 = new QuestSequence + obj67.Steps = list94; + reference76 = obj67; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span60 = CollectionsMarshal.AsSpan(list100); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.714342f, 50.98988f, -779.1884f), 156) + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.714342f, 50.98988f, -779.1884f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) { NextQuestId = new QuestId(1476) }; - obj71.Steps = list100; - reference80 = obj71; - questRoot9.QuestSequence = list88; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(1476); - QuestRoot questRoot10 = new QuestRoot(); + obj68.Steps = list95; + reference77 = obj68; + questRoot8.QuestSequence = list83; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(1476); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; - questRoot10.Author = list101; - num = 6; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span61 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference81 = ref span61[0]; - QuestSequence obj72 = new QuestSequence + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; + questRoot9.Author = list96; + index = 6; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -88931,119 +105717,141 @@ public static class AssemblyQuestLoader } } }; - obj72.Steps = list103; - reference81 = obj72; - ref QuestSequence reference82 = ref span61[1]; - QuestSequence obj73 = new QuestSequence + obj69.Steps = list98; + reference78 = obj69; + num++; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span62 = CollectionsMarshal.AsSpan(list104); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span62[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj73.Steps = list104; - reference82 = obj73; - ref QuestSequence reference83 = ref span61[2]; - QuestSequence obj74 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj70.Steps = list99; + reference79 = obj70; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1012345u, new Vector3(460.16626f, 162.5073f, -527.0314f), 397) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012345u, new Vector3(460.16626f, 162.5073f, -527.0314f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj74.Steps = list105; - reference83 = obj74; - ref QuestSequence reference84 = ref span61[3]; - QuestSequence obj75 = new QuestSequence + obj71.Steps = list100; + reference80 = obj71; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span63 = CollectionsMarshal.AsSpan(list106); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { Mount = true }; - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - span63[2] = new QuestStep(EInteractionType.Interact, 1017119u, new Vector3(450.7362f, 157.40831f, -545.0675f), 397); - obj75.Steps = list106; - reference84 = obj75; - ref QuestSequence reference85 = ref span61[4]; - QuestSequence obj76 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017119u, new Vector3(450.7362f, 157.40831f, -545.0675f), 397); + obj72.Steps = list101; + reference81 = obj72; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span64 = CollectionsMarshal.AsSpan(list107); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2 = 3; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { Mount = true }; - span64[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { DisableNavmesh = true }; - span64[2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true }; - obj76.Steps = list107; - reference85 = obj76; - ref QuestSequence reference86 = ref span61[5]; - QuestSequence obj77 = new QuestSequence + obj73.Steps = list102; + reference82 = obj73; + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1477) }; - obj77.Steps = list108; - reference86 = obj77; - questRoot10.QuestSequence = list102; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(1477); - QuestRoot questRoot11 = new QuestRoot(); + obj74.Steps = list103; + reference83 = obj74; + questRoot9.QuestSequence = list97; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(1477); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; - questRoot11.Author = list109; - num = 7; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span65 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference87 = ref span65[0]; - QuestSequence obj78 = new QuestSequence + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; + questRoot10.Author = list104; + index = 7; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference84 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -89054,85 +105862,100 @@ public static class AssemblyQuestLoader } } }; - obj78.Steps = list111; - reference87 = obj78; - ref QuestSequence reference88 = ref span65[1]; - QuestSequence obj79 = new QuestSequence + obj75.Steps = list106; + reference84 = obj75; + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span66 = CollectionsMarshal.AsSpan(list112); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(470.88556f, -51.141403f, 36.143986f), 398) + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(470.88556f, -51.141403f, 36.143986f), 398) { Mount = true }; - span66[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; - obj79.Steps = list112; - reference88 = obj79; - ref QuestSequence reference89 = ref span65[2]; - QuestSequence obj80 = new QuestSequence + obj76.Steps = list107; + reference85 = obj76; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - obj80.Steps = list113; - reference89 = obj80; - ref QuestSequence reference90 = ref span65[3]; - QuestSequence obj81 = new QuestSequence + obj77.Steps = list108; + reference86 = obj77; + num++; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span67 = CollectionsMarshal.AsSpan(list114); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj81.Steps = list114; - reference90 = obj81; - ref QuestSequence reference91 = ref span65[4]; - QuestSequence obj82 = new QuestSequence + obj78.Steps = list109; + reference87 = obj78; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2007019u, new Vector3(-261.03613f, 30.350098f, 559.0447f), 400) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007019u, new Vector3(-261.03613f, 30.350098f, 559.0447f), 400) { Fly = true }; - obj82.Steps = list115; - reference91 = obj82; - ref QuestSequence reference92 = ref span65[5]; - QuestSequence obj83 = new QuestSequence + obj79.Steps = list110; + reference88 = obj79; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 2007020u, new Vector3(-6.2714844f, 30.014404f, 23.453125f), 131) + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007020u, new Vector3(-6.2714844f, 30.014404f, 23.453125f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -89141,69 +105964,83 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj83.Steps = list116; - reference92 = obj83; - ref QuestSequence reference93 = ref span65[6]; - QuestSequence obj84 = new QuestSequence + obj80.Steps = list111; + reference89 = obj80; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131) { NextQuestId = new QuestId(1478) }; - obj84.Steps = list117; - reference93 = obj84; - questRoot11.QuestSequence = list110; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(1478); - QuestRoot questRoot12 = new QuestRoot(); + obj81.Steps = list112; + reference90 = obj81; + questRoot10.QuestSequence = list105; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(1478); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; - questRoot12.Author = list118; - num = 8; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span68 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference94 = ref span68[0]; - QuestSequence obj85 = new QuestSequence + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; + questRoot11.Author = list113; + index = 8; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131); - obj85.Steps = list120; - reference94 = obj85; - ref QuestSequence reference95 = ref span68[1]; - QuestSequence obj86 = new QuestSequence + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131); + obj82.Steps = list115; + reference91 = obj82; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1017118u, new Vector3(34.37854f, 20.495003f, -652.1554f), 156) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017118u, new Vector3(34.37854f, 20.495003f, -652.1554f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj86.Steps = list121; - reference95 = obj86; - ref QuestSequence reference96 = ref span68[2]; - QuestSequence obj87 = new QuestSequence + obj83.Steps = list116; + reference92 = obj83; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 2007061u, new Vector3(-158.22083f, 17.04425f, -55.13086f), 418) + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007061u, new Vector3(-158.22083f, 17.04425f, -55.13086f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -89212,32 +106049,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj87.Steps = list122; - reference96 = obj87; - ref QuestSequence reference97 = ref span68[3]; - QuestSequence obj88 = new QuestSequence + obj84.Steps = list117; + reference93 = obj84; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2007062u, new Vector3(570.1532f, -1.2055054f, -369.95502f), 400) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007062u, new Vector3(570.1532f, -1.2055054f, -369.95502f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - obj88.Steps = list123; - reference97 = obj88; - ref QuestSequence reference98 = ref span68[4]; - QuestSequence obj89 = new QuestSequence + obj85.Steps = list118; + reference94 = obj85; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -89246,31 +106089,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - obj89.Steps = list124; - reference98 = obj89; - ref QuestSequence reference99 = ref span68[5]; - QuestSequence obj90 = new QuestSequence + obj86.Steps = list119; + reference95 = obj86; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1012065u, new Vector3(-594.62885f, -51.05185f, -389.79175f), 401) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012065u, new Vector3(-594.62885f, -51.05185f, -389.79175f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - obj90.Steps = list125; - reference99 = obj90; - ref QuestSequence reference100 = ref span68[6]; - QuestSequence obj91 = new QuestSequence + obj87.Steps = list120; + reference96 = obj87; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -89279,57 +106128,67 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj91.Steps = list126; - reference100 = obj91; - ref QuestSequence reference101 = ref span68[7]; - QuestSequence obj92 = new QuestSequence + obj88.Steps = list121; + reference97 = obj88; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(1479) }; - obj92.Steps = list127; - reference101 = obj92; - questRoot12.QuestSequence = list119; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(1479); - QuestRoot questRoot13 = new QuestRoot(); + obj89.Steps = list122; + reference98 = obj89; + questRoot11.QuestSequence = list114; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(1479); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; - questRoot13.Author = list128; - num = 7; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span69 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference102 = ref span69[0]; - QuestSequence obj93 = new QuestSequence + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; + questRoot12.Author = list123; + index = 7; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); - obj93.Steps = list130; - reference102 = obj93; - ref QuestSequence reference103 = ref span69[1]; - QuestSequence obj94 = new QuestSequence + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + obj90.Steps = list125; + reference99 = obj90; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - Span span70 = CollectionsMarshal.AsSpan(list131); - span70[0] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463, Fly = true, @@ -89339,97 +106198,199 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IdyllshirePrologueGate } }; - span70[1] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); - obj94.Steps = list131; - reference103 = obj94; - ref QuestSequence reference104 = ref span69[2]; - QuestSequence obj95 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + obj91.Steps = list126; + reference100 = obj91; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 2007063u, new Vector3(-867.3381f, -184.31378f, -661.0056f), 402) + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007063u, new Vector3(-867.3381f, -184.31378f, -661.0056f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; - obj95.Steps = list132; - reference104 = obj95; - ref QuestSequence reference105 = ref span69[3]; - QuestSequence obj96 = new QuestSequence + obj92.Steps = list127; + reference101 = obj92; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2007068u, new Vector3(-916.7773f, -184.31378f, -678.645f), 402); - obj96.Steps = list133; - reference105 = obj96; - ref QuestSequence reference106 = ref span69[4]; - QuestSequence obj97 = new QuestSequence + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007068u, new Vector3(-916.7773f, -184.31378f, -678.645f), 402); + obj93.Steps = list128; + reference102 = obj93; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2007064u, new Vector3(-696.0708f, -37.094727f, 432.33386f), 402) + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007064u, new Vector3(-696.0708f, -37.094727f, 432.33386f), 402) { Fly = true }; - obj97.Steps = list134; - reference106 = obj97; - ref QuestSequence reference107 = ref span69[5]; - QuestSequence obj98 = new QuestSequence + obj94.Steps = list129; + reference103 = obj94; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2007065u, new Vector3(-64.2558f, 271.229f, -4.2268066f), 402) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007065u, new Vector3(-64.2558f, 271.229f, -4.2268066f), 402) { Fly = true }; - obj98.Steps = list135; - reference107 = obj98; - ref QuestSequence reference108 = ref span69[6]; - QuestSequence obj99 = new QuestSequence + obj95.Steps = list130; + reference104 = obj95; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span71 = CollectionsMarshal.AsSpan(list136); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(174.36705f, 393.17496f, -569.3414f), 155) + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(174.36705f, 393.17496f, -569.3414f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 2007066u, new Vector3(50.339478f, 374.47156f, -676.5088f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2007066u, new Vector3(50.339478f, 374.47156f, -676.5088f), 155) { Fly = true }; + obj96.Steps = list131; + reference105 = obj96; + questRoot12.QuestSequence = list124; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(1480); + QuestRoot questRoot13 = new QuestRoot(); + num = 1; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; + questRoot13.Author = list132; + index = 3; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj97 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) + { + AetheryteShortcut = EAetheryteLocation.Idyllshire, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj97.Steps = list134; + reference106 = obj97; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj98 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 478) + { + DutyOptions = new DutyOptions + { + ContentFinderConditionId = 220u + } + }; + obj98.Steps = list135; + reference107 = obj98; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj99 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) + { + AetheryteShortcut = EAetheryteLocation.Idyllshire, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; obj99.Steps = list136; reference108 = obj99; - questRoot13.QuestSequence = list129; + questRoot13.QuestSequence = list133; AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(1480); + QuestId questId14 = new QuestId(1481); QuestRoot questRoot14 = new QuestRoot(); num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "liza"; questRoot14.Author = list137; - num = 3; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span72 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference109 = ref span72[0]; + index = 2; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -89437,9 +106398,12 @@ public static class AssemblyQuestLoader 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) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) { - AetheryteShortcut = EAetheryteLocation.Idyllshire, + Fly = true, + AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -89450,58 +106414,55 @@ public static class AssemblyQuestLoader }; obj100.Steps = list139; reference109 = obj100; - ref QuestSequence reference110 = ref span72[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj101 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Duty, null, null, 478) - { - DutyOptions = new DutyOptions - { - ContentFinderConditionId = 220u - } - }; - obj101.Steps = list140; - reference110 = obj101; - ref QuestSequence reference111 = ref span72[2]; - QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference111 = ref span3[num2]; + QuestStep obj102 = new QuestStep(EInteractionType.CompleteQuest, 1003596u, new Vector3(-41.428284f, 20f, -5.661133f), 129) { - AetheryteShortcut = EAetheryteLocation.Idyllshire, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } + AetheryteShortcut = EAetheryteLocation.Limsa }; - obj102.Steps = list141; + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + span5 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span5[num4] = new DialogueChoice + { + Type = EDialogChoiceType.YesNo, + Prompt = new ExcelRef("TEXT_SUBPST000_01481_Q1_000_000"), + PromptIsRegularExpression = true + }; + obj102.DialogueChoices = list141; + obj102.NextQuestId = new QuestId(1483); reference111 = obj102; + obj101.Steps = list140; + reference110 = obj101; questRoot14.QuestSequence = list138; AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(1481); + QuestId questId15 = new QuestId(1482); QuestRoot questRoot15 = new QuestRoot(); num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "liza"; questRoot15.Author = list142; - num = 2; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span73 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference112 = ref span73[0]; + index = 6; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -89509,10 +106470,11 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { - Fly = true, - AetheryteShortcut = EAetheryteLocation.MorDhona, + AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -89523,76 +106485,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list144; reference112 = obj103; - ref QuestSequence reference113 = ref span73[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj104 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list145)[0]; - QuestStep obj105 = new QuestStep(EInteractionType.CompleteQuest, 1003596u, new Vector3(-41.428284f, 20f, -5.661133f), 129) - { - AetheryteShortcut = EAetheryteLocation.Limsa - }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_SUBPST000_01481_Q1_000_000"), - PromptIsRegularExpression = true - }; - obj105.DialogueChoices = list146; - obj105.NextQuestId = new QuestId(1483); - reference114 = obj105; - obj104.Steps = list145; - reference113 = obj104; - questRoot15.QuestSequence = list143; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(1482); - QuestRoot questRoot16 = new QuestRoot(); - num = 1; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; - questRoot16.Author = list147; - num = 6; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span74 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference115 = ref span74[0]; - QuestSequence obj106 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) - { - AetheryteShortcut = EAetheryteLocation.Limsa, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj106.Steps = list149; - reference115 = obj106; - ref QuestSequence reference116 = ref span74[1]; - QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -89601,47 +106505,63 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj107.Steps = list150; - reference116 = obj107; - ref QuestSequence reference117 = ref span74[2]; - QuestSequence obj108 = new QuestSequence + obj104.Steps = list145; + reference113 = obj104; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 2 }; num2 = 4; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span75 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference118 = ref span75[0]; + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference115 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2004266u, new Vector3(103.715576f, 1.2664795f, 46.92151f), 132); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span76 = CollectionsMarshal.AsSpan(list152); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list152; - reference118 = questStep11; - ref QuestStep reference119 = ref span75[1]; + num4 = 6; + List list147 = new List(num4); + CollectionsMarshal.SetCount(list147, num4); + span4 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list147; + reference115 = questStep11; + index2++; + ref QuestStep reference116 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2004267u, new Vector3(-67.216064f, -3.4332886f, 35.26355f), 132); num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span77 = CollectionsMarshal.AsSpan(list153); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list153; - reference119 = questStep12; - ref QuestStep reference120 = ref span75[2]; - QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2004269u, new Vector3(-141.2528f, 7.827881f, -190.53949f), 133) + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + span4 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list148; + reference116 = questStep12; + index2++; + ref QuestStep reference117 = ref span3[index2]; + QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2004269u, new Vector3(-141.2528f, 7.827881f, -190.53949f), 133) { AethernetShortcut = new AethernetShortcut { @@ -89649,20 +106569,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span78 = CollectionsMarshal.AsSpan(list154); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj109.CompletionQuestVariablesFlags = list154; - reference120 = obj109; - ref QuestStep reference121 = ref span75[3]; - QuestStep obj110 = new QuestStep(EInteractionType.Interact, 2004268u, new Vector3(123.91846f, 14.145081f, -275.83734f), 133) + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span4 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj106.CompletionQuestVariablesFlags = list149; + reference117 = obj106; + index2++; + ref QuestStep reference118 = ref span3[index2]; + QuestStep obj107 = new QuestStep(EInteractionType.Interact, 2004268u, new Vector3(123.91846f, 14.145081f, -275.83734f), 133) { AethernetShortcut = new AethernetShortcut { @@ -89671,28 +106598,37 @@ public static class AssemblyQuestLoader } }; 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; - ref QuestSequence reference122 = ref span74[3]; - QuestSequence obj111 = new QuestSequence + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + span4 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj107.CompletionQuestVariablesFlags = list150; + reference118 = obj107; + obj105.Steps = list146; + reference114 = obj105; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -89700,17 +106636,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj111.Steps = list156; - reference122 = obj111; - ref QuestSequence reference123 = ref span74[4]; - QuestSequence obj112 = new QuestSequence + obj108.Steps = list151; + reference119 = obj108; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 2004270u, new Vector3(7.1869507f, 4.7455444f, -262.98932f), 148) + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004270u, new Vector3(7.1869507f, 4.7455444f, -262.98932f), 148) { StopDistance = 1f, Fly = true, @@ -89720,17 +106659,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - obj112.Steps = list157; - reference123 = obj112; - ref QuestSequence reference124 = ref span74[5]; - QuestSequence obj113 = new QuestSequence + obj109.Steps = list152; + reference120 = obj109; + num++; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -89740,30 +106682,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1484) }; - obj113.Steps = list158; - reference124 = obj113; - questRoot16.QuestSequence = list148; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(1483); - QuestRoot questRoot17 = new QuestRoot(); + obj110.Steps = list153; + reference121 = obj110; + questRoot15.QuestSequence = list143; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(1483); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "liza"; - questRoot17.Author = list159; - num = 11; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span80 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference125 = ref span80[0]; - QuestSequence obj114 = new QuestSequence + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "liza"; + questRoot16.Author = list154; + index = 11; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -89774,67 +106721,80 @@ public static class AssemblyQuestLoader } } }; - obj114.Steps = list161; - reference125 = obj114; - ref QuestSequence reference126 = ref span80[1]; - QuestSequence obj115 = new QuestSequence + obj111.Steps = list156; + reference122 = obj111; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span81 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference127 = ref span81[0]; - QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) + index2 = 2; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference124 = ref span3[num2]; + QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice + num4 = 1; + List list158 = new List(num4); + CollectionsMarshal.SetCount(list158, num4); + span5 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", Answer = new ExcelRef(131093u) }; - obj116.DialogueChoices = list163; - reference127 = obj116; - ref QuestStep reference128 = ref span81[1]; + obj113.DialogueChoices = list158; + reference124 = obj113; + num2++; + ref QuestStep reference125 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + span5 = CollectionsMarshal.AsSpan(list159); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBPST002_01483_Q1_000_000") }; - questStep13.DialogueChoices = list164; - reference128 = questStep13; - obj115.Steps = list162; - reference126 = obj115; - ref QuestSequence reference129 = ref span80[2]; - QuestSequence obj117 = new QuestSequence + questStep13.DialogueChoices = list159; + reference125 = questStep13; + obj112.Steps = list157; + reference123 = obj112; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128); - obj117.Steps = list165; - reference129 = obj117; - ref QuestSequence reference130 = ref span80[3]; - QuestSequence obj118 = new QuestSequence + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128); + obj114.Steps = list160; + reference126 = obj114; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -89843,70 +106803,85 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - obj118.Steps = list166; - reference130 = obj118; - ref QuestSequence reference131 = ref span80[4]; - QuestSequence obj119 = new QuestSequence + obj115.Steps = list161; + reference127 = obj115; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.UseItem, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) { ItemId = 2001324u }; - obj119.Steps = list167; - reference131 = obj119; - ref QuestSequence reference132 = ref span80[5]; - QuestSequence obj120 = new QuestSequence + obj116.Steps = list162; + reference128 = obj116; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1009666u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009666u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) { Fly = true }; - obj120.Steps = list168; - reference132 = obj120; - ref QuestSequence reference133 = ref span80[6]; - QuestSequence obj121 = new QuestSequence + obj117.Steps = list163; + reference129 = obj117; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.86037f, -222.43079f), 134) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.86037f, -222.43079f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - obj121.Steps = list169; - reference133 = obj121; - ref QuestSequence reference134 = ref span80[7]; - QuestSequence obj122 = new QuestSequence + obj118.Steps = list164; + reference130 = obj118; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 2004272u, new Vector3(224.2008f, 114.3053f, -223.40735f), 134); - obj122.Steps = list170; - reference134 = obj122; - ref QuestSequence reference135 = ref span80[8]; - QuestSequence obj123 = new QuestSequence + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004272u, new Vector3(224.2008f, 114.3053f, -223.40735f), 134); + obj119.Steps = list165; + reference131 = obj119; + num++; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1009184u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009184u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -89915,17 +106890,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - obj123.Steps = list171; - reference135 = obj123; - ref QuestSequence reference136 = ref span80[9]; - QuestSequence obj124 = new QuestSequence + obj120.Steps = list166; + reference132 = obj120; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -89934,49 +106912,57 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj124.Steps = list172; - reference136 = obj124; - ref QuestSequence reference137 = ref span80[10]; - QuestSequence obj125 = new QuestSequence + obj121.Steps = list167; + reference133 = obj121; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span82 = CollectionsMarshal.AsSpan(list173); - span82[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { NextQuestId = new QuestId(1482) }; - obj125.Steps = list173; - reference137 = obj125; - questRoot17.QuestSequence = list160; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(1484); - QuestRoot questRoot18 = new QuestRoot(); + obj122.Steps = list168; + reference134 = obj122; + questRoot16.QuestSequence = list155; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(1484); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; - questRoot18.Author = list174; - num = 5; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span83 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference138 = ref span83[0]; - QuestSequence obj126 = new QuestSequence + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; + questRoot17.Author = list169; + index = 5; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -89987,17 +106973,20 @@ public static class AssemblyQuestLoader } } }; - obj126.Steps = list176; - reference138 = obj126; - ref QuestSequence reference139 = ref span83[1]; - QuestSequence obj127 = new QuestSequence + obj123.Steps = list171; + reference135 = obj123; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -90006,17 +106995,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj127.Steps = list177; - reference139 = obj127; - ref QuestSequence reference140 = ref span83[2]; - QuestSequence obj128 = new QuestSequence + obj124.Steps = list172; + reference136 = obj124; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1006357u, new Vector3(-28.854858f, 13.799997f, 118.66931f), 131) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006357u, new Vector3(-28.854858f, 13.799997f, 118.66931f), 131) { AethernetShortcut = new AethernetShortcut { @@ -90024,34 +107016,40 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - obj128.Steps = list178; - reference140 = obj128; - ref QuestSequence reference141 = ref span83[3]; - QuestSequence obj129 = new QuestSequence + obj125.Steps = list173; + reference137 = obj125; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span84 = CollectionsMarshal.AsSpan(list179); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-282.37943f, 13.480675f, -155.46162f), 140) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-282.37943f, 13.480675f, -155.46162f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - span84[1] = new QuestStep(EInteractionType.Interact, 1009186u, new Vector3(-281.94098f, 13.480675f, -156.4508f), 140); - obj129.Steps = list179; - reference141 = obj129; - ref QuestSequence reference142 = ref span83[4]; - QuestSequence obj130 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009186u, new Vector3(-281.94098f, 13.480675f, -156.4508f), 140); + obj126.Steps = list174; + reference138 = obj126; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -90061,30 +107059,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1531) }; - obj130.Steps = list180; - reference142 = obj130; - questRoot18.QuestSequence = list175; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(1485); - QuestRoot questRoot19 = new QuestRoot(); + obj127.Steps = list175; + reference139 = obj127; + questRoot17.QuestSequence = list170; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(1485); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; - questRoot19.Author = list181; - num = 7; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span85 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference143 = ref span85[0]; - QuestSequence obj131 = new QuestSequence + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "liza"; + questRoot18.Author = list176; + index = 7; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -90095,18 +107098,20 @@ public static class AssemblyQuestLoader } } }; - obj131.Steps = list183; - reference143 = obj131; - ref QuestSequence reference144 = ref span85[1]; - QuestSequence obj132 = new QuestSequence + obj128.Steps = list178; + reference140 = obj128; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span86 = CollectionsMarshal.AsSpan(list184); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -90118,18 +107123,22 @@ public static class AssemblyQuestLoader } } }; - span86[1] = new QuestStep(EInteractionType.Interact, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); - obj132.Steps = list184; - reference144 = obj132; - ref QuestSequence reference145 = ref span85[2]; - QuestSequence obj133 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + obj129.Steps = list179; + reference141 = obj129; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -90139,106 +107148,126 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - obj133.Steps = list185; - reference145 = obj133; - ref QuestSequence reference146 = ref span85[3]; - QuestSequence obj134 = new QuestSequence + obj130.Steps = list180; + reference142 = obj130; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.UseItem, 2004276u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2004276u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { ItemId = 2001329u }; - obj134.Steps = list186; - reference146 = obj134; - ref QuestSequence reference147 = ref span85[4]; - QuestSequence obj135 = new QuestSequence + obj131.Steps = list181; + reference143 = obj131; + num++; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.UseItem, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { DelaySecondsAtStart = 3f, ItemId = 2001328u }; - obj135.Steps = list187; - reference147 = obj135; - ref QuestSequence reference148 = ref span85[5]; - QuestSequence obj136 = new QuestSequence + obj132.Steps = list182; + reference144 = obj132; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span87 = CollectionsMarshal.AsSpan(list188); - span87[0] = new QuestStep(EInteractionType.Combat, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Combat, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span87[1] = new QuestStep(EInteractionType.Interact, 1009187u, new Vector3(70.573f, 1.5015054f, 251.39233f), 141); - obj136.Steps = list188; - reference148 = obj136; - ref QuestSequence reference149 = ref span85[6]; - QuestSequence obj137 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009187u, new Vector3(70.573f, 1.5015054f, 251.39233f), 141); + obj133.Steps = list183; + reference145 = obj133; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span88 = CollectionsMarshal.AsSpan(list189); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(1570) }; - obj137.Steps = list189; - reference149 = obj137; - questRoot19.QuestSequence = list182; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(1486); - QuestRoot questRoot20 = new QuestRoot(); + obj134.Steps = list184; + reference146 = obj134; + questRoot18.QuestSequence = list177; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(1486); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; - questRoot20.Author = list190; - num = 6; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span89 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference150 = ref span89[0]; - QuestSequence obj138 = new QuestSequence + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "liza"; + questRoot19.Author = list185; + index = 6; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); - obj138.Steps = list192; - reference150 = obj138; - ref QuestSequence reference151 = ref span89[1]; - QuestSequence obj139 = new QuestSequence + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); + obj135.Steps = list187; + reference147 = obj135; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -90247,215 +107276,258 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - obj139.Steps = list193; - reference151 = obj139; - ref QuestSequence reference152 = ref span89[2]; - QuestSequence obj140 = new QuestSequence + obj136.Steps = list188; + reference148 = obj136; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span90 = CollectionsMarshal.AsSpan(list194); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(264.54797f, -14.2467f, 56.094566f), 154) + index2 = 2; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(264.54797f, -14.2467f, 56.094566f), 154) { Fly = true }; - span90[1] = new QuestStep(EInteractionType.Interact, 2004442u, new Vector3(265.00342f, -13.931519f, 58.457275f), 154); - obj140.Steps = list194; - reference152 = obj140; - ref QuestSequence reference153 = ref span89[3]; - QuestSequence obj141 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004442u, new Vector3(265.00342f, -13.931519f, 58.457275f), 154); + obj137.Steps = list189; + reference149 = obj137; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) { Fly = true }; - obj141.Steps = list195; - reference153 = obj141; - ref QuestSequence reference154 = ref span89[4]; - QuestSequence obj142 = new QuestSequence + obj138.Steps = list190; + reference150 = obj138; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 2004443u, new Vector3(211.9325f, -4.928711f, 27.572998f), 154) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004443u, new Vector3(211.9325f, -4.928711f, 27.572998f), 154) { Fly = true }; - obj142.Steps = list196; - reference154 = obj142; - ref QuestSequence reference155 = ref span89[5]; - QuestSequence obj143 = new QuestSequence + obj139.Steps = list191; + reference151 = obj139; + num++; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, NextQuestId = new QuestId(1487) }; - obj143.Steps = list197; - reference155 = obj143; - questRoot20.QuestSequence = list191; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(1487); - QuestRoot questRoot21 = new QuestRoot(); + obj140.Steps = list192; + reference152 = obj140; + questRoot19.QuestSequence = list186; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(1487); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; - questRoot21.Author = list198; - num = 6; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span91 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference156 = ref span91[0]; - QuestSequence obj144 = new QuestSequence + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; + questRoot20.Author = list193; + index = 6; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list200)[0]; + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + ref QuestStep reference154 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + num4 = 1; + List list196 = new List(num4); + CollectionsMarshal.SetCount(list196, num4); + span5 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q1_000_000"), Answer = new ExcelRef("TEXT_BANIXA002_01487_A1_000_001") }; - questStep14.DialogueChoices = list201; - reference157 = questStep14; - obj144.Steps = list200; - reference156 = obj144; - ref QuestSequence reference158 = ref span91[1]; - QuestSequence obj145 = new QuestSequence + questStep14.DialogueChoices = list196; + reference154 = questStep14; + obj141.Steps = list195; + reference153 = obj141; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1009594u, new Vector3(-22.568176f, -48.098206f, 289.66187f), 154) + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009594u, new Vector3(-22.568176f, -48.098206f, 289.66187f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj145.Steps = list202; - reference158 = obj145; - ref QuestSequence reference159 = ref span91[2]; - QuestSequence obj146 = new QuestSequence + obj142.Steps = list197; + reference155 = obj142; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span92 = CollectionsMarshal.AsSpan(list203); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.085219f, -40.94998f, 179.05669f), 154) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.085219f, -40.94998f, 179.05669f), 154) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154); - obj146.Steps = list203; - reference159 = obj146; - ref QuestSequence reference160 = ref span91[3]; - QuestSequence obj147 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154); + obj143.Steps = list198; + reference156 = obj143; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list204)[0]; + List list199 = new List(num2); + CollectionsMarshal.SetCount(list199, num2); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + ref QuestStep reference158 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1009595u, new Vector3(-2.8534546f, -40.94998f, 178.72888f), 154); num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + span5 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q2_000_000"), Answer = new ExcelRef("TEXT_BANIXA002_01487_A2_000_001") }; - questStep15.DialogueChoices = list205; - reference161 = questStep15; - obj147.Steps = list204; - reference160 = obj147; - ref QuestSequence reference162 = ref span91[4]; - QuestSequence obj148 = new QuestSequence + questStep15.DialogueChoices = list200; + reference158 = questStep15; + obj144.Steps = list199; + reference157 = obj144; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; - obj148.Steps = list206; - reference162 = obj148; - ref QuestSequence reference163 = ref span91[5]; - QuestSequence obj149 = new QuestSequence + obj145.Steps = list201; + reference159 = obj145; + num++; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list207)[0]; + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = new DialogueChoice + num4 = 1; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + span5 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q3_000_000"), Answer = new ExcelRef("TEXT_BANIXA002_01487_A3_000_001") }; - questStep16.DialogueChoices = list208; - reference164 = questStep16; - obj149.Steps = list207; - reference163 = obj149; - questRoot21.QuestSequence = list199; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(1488); - QuestRoot questRoot22 = new QuestRoot(); + questStep16.DialogueChoices = list203; + reference161 = questStep16; + obj146.Steps = list202; + reference160 = obj146; + questRoot20.QuestSequence = list194; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(1488); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Censored"; - questRoot22.Author = list209; - num = 5; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span93 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference165 = ref span93[0]; - QuestSequence obj150 = new QuestSequence + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + span = CollectionsMarshal.AsSpan(list204); + index = 0; + span[index] = "Censored"; + questRoot21.Author = list204; + index = 5; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span2 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90472,57 +107544,68 @@ public static class AssemblyQuestLoader } } }; - obj150.Steps = list211; - reference165 = obj150; - ref QuestSequence reference166 = ref span93[1]; - QuestSequence obj151 = new QuestSequence + obj147.Steps = list206; + reference162 = obj147; + num++; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154) + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154) { Fly = true }; - obj151.Steps = list212; - reference166 = obj151; - ref QuestSequence reference167 = ref span93[2]; - QuestSequence obj152 = new QuestSequence + obj148.Steps = list207; + reference163 = obj148; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154); - obj152.Steps = list213; - reference167 = obj152; - ref QuestSequence reference168 = ref span93[3]; - QuestSequence obj153 = new QuestSequence + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154); + obj149.Steps = list208; + reference164 = obj149; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; - obj153.Steps = list214; - reference168 = obj153; - ref QuestSequence reference169 = ref span93[4]; - QuestSequence obj154 = new QuestSequence + obj150.Steps = list209; + reference165 = obj150; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span94 = CollectionsMarshal.AsSpan(list215); - span94[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8130u, ItemCount = 1, @@ -90534,34 +107617,40 @@ public static class AssemblyQuestLoader } } }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; - obj154.Steps = list215; - reference169 = obj154; - questRoot22.QuestSequence = list210; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(1489); - QuestRoot questRoot23 = new QuestRoot(); + obj151.Steps = list210; + reference166 = obj151; + questRoot21.QuestSequence = list205; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(1489); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "Censored"; - questRoot23.Author = list216; - num = 6; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span95 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference170 = ref span95[0]; - QuestSequence obj155 = new QuestSequence + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "Censored"; + questRoot22.Author = list211; + index = 6; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + List list213 = new List(num2); + CollectionsMarshal.SetCount(list213, num2); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90578,31 +107667,37 @@ public static class AssemblyQuestLoader } } }; - obj155.Steps = list218; - reference170 = obj155; - ref QuestSequence reference171 = ref span95[1]; - QuestSequence obj156 = new QuestSequence + obj152.Steps = list213; + reference167 = obj152; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj156.Steps = list219; - reference171 = obj156; - ref QuestSequence reference172 = ref span95[2]; - QuestSequence obj157 = new QuestSequence + obj153.Steps = list214; + reference168 = obj153; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -90611,56 +107706,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj157.Steps = list220; - reference172 = obj157; - ref QuestSequence reference173 = ref span95[3]; - QuestSequence obj158 = new QuestSequence + obj154.Steps = list215; + reference169 = obj154; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list221)[0]; + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + ref QuestStep reference171 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1009607u, new Vector3(191.05823f, -3.1634123E-15f, 46.341675f), 132); num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + span5 = CollectionsMarshal.AsSpan(list217); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA004_01489_Q1_000_001"), Answer = new ExcelRef("TEXT_BANIXA004_01489_A1_000_001") }; - questStep17.DialogueChoices = list222; - reference174 = questStep17; - obj158.Steps = list221; - reference173 = obj158; - ref QuestSequence reference175 = ref span95[4]; - QuestSequence obj159 = new QuestSequence + questStep17.DialogueChoices = list217; + reference171 = questStep17; + obj155.Steps = list216; + reference170 = obj155; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + List list218 = new List(num2); + CollectionsMarshal.SetCount(list218, num2); + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj159.Steps = list223; - reference175 = obj159; - ref QuestSequence reference176 = ref span95[5]; - QuestSequence obj160 = new QuestSequence + obj156.Steps = list218; + reference172 = obj156; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span96 = CollectionsMarshal.AsSpan(list224); - ref QuestStep reference177 = ref span96[0]; - QuestStep obj161 = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; + QuestStep obj158 = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8131u, ItemCount = 1, @@ -90672,40 +107777,48 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = EExtendedClassJob.DoH; - obj161.RequiredCurrentJob = list225; - reference177 = obj161; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + num4 = 1; + List list220 = new List(num4); + CollectionsMarshal.SetCount(list220, num4); + Span span8 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span8[num3] = EExtendedClassJob.DoH; + obj158.RequiredCurrentJob = list220; + reference174 = obj158; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true }; - obj160.Steps = list224; - reference176 = obj160; - questRoot23.QuestSequence = list217; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(1490); - QuestRoot questRoot24 = new QuestRoot(); + obj157.Steps = list219; + reference173 = obj157; + questRoot22.QuestSequence = list212; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(1490); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "Censored"; - questRoot24.Author = list226; - num = 6; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span97 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference178 = ref span97[0]; - QuestSequence obj162 = new QuestSequence + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + span = CollectionsMarshal.AsSpan(list221); + index = 0; + span[index] = "Censored"; + questRoot23.Author = list221; + index = 6; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + span2 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90722,96 +107835,116 @@ public static class AssemblyQuestLoader } } }; - obj162.Steps = list228; - reference178 = obj162; - ref QuestSequence reference179 = ref span97[1]; - QuestSequence obj163 = new QuestSequence + obj159.Steps = list223; + reference175 = obj159; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); - obj163.Steps = list229; - reference179 = obj163; - ref QuestSequence reference180 = ref span97[2]; - QuestSequence obj164 = new QuestSequence + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); + obj160.Steps = list224; + reference176 = obj160; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1009610u, new Vector3(25.986084f, -8.047037f, 135.42383f), 132) + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009610u, new Vector3(25.986084f, -8.047037f, 135.42383f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj164.Steps = list230; - reference180 = obj164; - ref QuestSequence reference181 = ref span97[3]; - QuestSequence obj165 = new QuestSequence + obj161.Steps = list225; + reference177 = obj161; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj165.Steps = list231; - reference181 = obj165; - ref QuestSequence reference182 = ref span97[4]; - QuestSequence obj166 = new QuestSequence + obj162.Steps = list226; + reference178 = obj162; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 2004543u, new Vector3(-35.996094f, -40.57379f, 160.63171f), 154); - obj166.Steps = list232; - reference182 = obj166; - ref QuestSequence reference183 = ref span97[5]; - QuestSequence obj167 = new QuestSequence + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004543u, new Vector3(-35.996094f, -40.57379f, 160.63171f), 154); + obj163.Steps = list227; + reference179 = obj163; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span98 = CollectionsMarshal.AsSpan(list233); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.151138f, -40.708473f, 195.69182f), 154); - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.151138f, -40.708473f, 195.69182f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; - obj167.Steps = list233; - reference183 = obj167; - questRoot24.QuestSequence = list227; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(1491); - QuestRoot questRoot25 = new QuestRoot(); + obj164.Steps = list228; + reference180 = obj164; + questRoot23.QuestSequence = list222; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(1491); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Censored"; - questRoot25.Author = list234; - num = 6; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span99 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference184 = ref span99[0]; - QuestSequence obj168 = new QuestSequence + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "Censored"; + questRoot24.Author = list229; + index = 6; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90828,43 +107961,51 @@ public static class AssemblyQuestLoader } } }; - obj168.Steps = list236; - reference184 = obj168; - ref QuestSequence reference185 = ref span99[1]; - QuestSequence obj169 = new QuestSequence + obj165.Steps = list231; + reference181 = obj165; + num++; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true }; - obj169.Steps = list237; - reference185 = obj169; - ref QuestSequence reference186 = ref span99[2]; - QuestSequence obj170 = new QuestSequence + obj166.Steps = list232; + reference182 = obj166; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154); - obj170.Steps = list238; - reference186 = obj170; - ref QuestSequence reference187 = ref span99[3]; - QuestSequence obj171 = new QuestSequence + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154); + obj167.Steps = list233; + reference183 = obj167; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span100 = CollectionsMarshal.AsSpan(list239); - span100[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8132u, ItemCount = 4, @@ -90876,56 +108017,68 @@ public static class AssemblyQuestLoader } } }; - span100[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); - obj171.Steps = list239; - reference187 = obj171; - ref QuestSequence reference188 = ref span99[4]; - QuestSequence obj172 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + obj168.Steps = list234; + reference184 = obj168; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true }; - obj172.Steps = list240; - reference188 = obj172; - ref QuestSequence reference189 = ref span99[5]; - QuestSequence obj173 = new QuestSequence + obj169.Steps = list235; + reference185 = obj169; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); - obj173.Steps = list241; - reference189 = obj173; - questRoot25.QuestSequence = list235; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(1492); - QuestRoot questRoot26 = new QuestRoot(); + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); + obj170.Steps = list236; + reference186 = obj170; + questRoot24.QuestSequence = list230; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(1492); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "Censored"; - questRoot26.Author = list242; - num = 9; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span101 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference190 = ref span101[0]; - QuestSequence obj174 = new QuestSequence + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + span = CollectionsMarshal.AsSpan(list237); + index = 0; + span[index] = "Censored"; + questRoot25.Author = list237; + index = 9; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + span2 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90942,17 +108095,20 @@ public static class AssemblyQuestLoader } } }; - obj174.Steps = list244; - reference190 = obj174; - ref QuestSequence reference191 = ref span101[1]; - QuestSequence obj175 = new QuestSequence + obj171.Steps = list239; + reference187 = obj171; + num++; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1009615u, new Vector3(26.443848f, -19.000004f, 111.528076f), 132) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009615u, new Vector3(26.443848f, -19.000004f, 111.528076f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -90961,121 +108117,147 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj175.Steps = list245; - reference191 = obj175; - ref QuestSequence reference192 = ref span101[2]; - QuestSequence obj176 = new QuestSequence + obj172.Steps = list240; + reference188 = obj172; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span102 = CollectionsMarshal.AsSpan(list246); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.1545f, 222.61827f, 354.20248f), 155) + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.1545f, 222.61827f, 354.20248f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span102[1] = new QuestStep(EInteractionType.Interact, 1009616u, new Vector3(168.81055f, 223.03535f, 363.08838f), 155); - obj176.Steps = list246; - reference192 = obj176; - ref QuestSequence reference193 = ref span101[3]; - QuestSequence obj177 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009616u, new Vector3(168.81055f, 223.03535f, 363.08838f), 155); + obj173.Steps = list241; + reference189 = obj173; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); - obj177.Steps = list247; - reference193 = obj177; - ref QuestSequence reference194 = ref span101[4]; - QuestSequence obj178 = new QuestSequence + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); + obj174.Steps = list242; + reference190 = obj174; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); - obj178.Steps = list248; - reference194 = obj178; - ref QuestSequence reference195 = ref span101[5]; - QuestSequence obj179 = new QuestSequence + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + obj175.Steps = list243; + reference191 = obj175; + num++; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.UseItem, 2004447u, new Vector3(172.93042f, 229.72449f, 331.8379f), 155) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2004447u, new Vector3(172.93042f, 229.72449f, 331.8379f), 155) { ItemId = 2001370u }; - obj179.Steps = list249; - reference195 = obj179; - ref QuestSequence reference196 = ref span101[6]; - QuestSequence obj180 = new QuestSequence + obj176.Steps = list244; + reference192 = obj176; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); - obj180.Steps = list250; - reference196 = obj180; - ref QuestSequence reference197 = ref span101[7]; - QuestSequence obj181 = new QuestSequence + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); + obj177.Steps = list245; + reference193 = obj177; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1009618u, new Vector3(161.39453f, 222.02899f, 340.81018f), 155); - obj181.Steps = list251; - reference197 = obj181; - ref QuestSequence reference198 = ref span101[8]; - QuestSequence obj182 = new QuestSequence + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009618u, new Vector3(161.39453f, 222.02899f, 340.81018f), 155); + obj178.Steps = list246; + reference194 = obj178; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj182.Steps = list252; - reference198 = obj182; - questRoot26.QuestSequence = list243; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(1493); - QuestRoot questRoot27 = new QuestRoot(); + obj179.Steps = list247; + reference195 = obj179; + questRoot25.QuestSequence = list238; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(1493); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Censored"; - questRoot27.Author = list253; - num = 16; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span103 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference199 = ref span103[0]; - QuestSequence obj183 = new QuestSequence + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + span = CollectionsMarshal.AsSpan(list248); + index = 0; + span[index] = "Censored"; + questRoot26.Author = list248; + index = 16; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + span2 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91092,32 +108274,37 @@ public static class AssemblyQuestLoader } } }; - obj183.Steps = list255; - reference199 = obj183; - ref QuestSequence reference200 = ref span103[1]; - QuestSequence obj184 = new QuestSequence + obj180.Steps = list250; + reference196 = obj180; + num++; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + List list251 = new List(num2); + CollectionsMarshal.SetCount(list251, num2); + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj184.Steps = list256; - reference200 = obj184; - ref QuestSequence reference201 = ref span103[2]; - QuestSequence obj185 = new QuestSequence + obj181.Steps = list251; + reference197 = obj181; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span104 = CollectionsMarshal.AsSpan(list257); - span104[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8133u, ItemCount = 1, @@ -91129,179 +108316,218 @@ public static class AssemblyQuestLoader } } }; - span104[1] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; - obj185.Steps = list257; - reference201 = obj185; - ref QuestSequence reference202 = ref span103[3]; - QuestSequence obj186 = new QuestSequence + obj182.Steps = list252; + reference198 = obj182; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj186.Steps = list258; - reference202 = obj186; - ref QuestSequence reference203 = ref span103[4]; - QuestSequence obj187 = new QuestSequence + obj183.Steps = list253; + reference199 = obj183; + num++; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.UseItem, 2004448u, new Vector3(588.9829f, 302.08276f, -165.75879f), 155) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2004448u, new Vector3(588.9829f, 302.08276f, -165.75879f), 155) { ItemId = 2001439u }; - obj187.Steps = list259; - reference203 = obj187; - ref QuestSequence reference204 = ref span103[5]; - QuestSequence obj188 = new QuestSequence + obj184.Steps = list254; + reference200 = obj184; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155); - obj188.Steps = list260; - reference204 = obj188; - ref QuestSequence reference205 = ref span103[6]; - QuestSequence obj189 = new QuestSequence + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155); + obj185.Steps = list255; + reference201 = obj185; + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - Span span105 = CollectionsMarshal.AsSpan(list261); - ref QuestStep reference206 = ref span105[0]; - QuestStep obj190 = new QuestStep(EInteractionType.UseItem, 2004449u, new Vector3(708.7357f, 287.52563f, 109.97168f), 155) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + ref QuestStep reference203 = ref span3[num2]; + QuestStep obj187 = new QuestStep(EInteractionType.UseItem, 2004449u, new Vector3(708.7357f, 287.52563f, 109.97168f), 155) { Fly = true, ItemId = 2001439u }; num3 = 6; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - Span span106 = CollectionsMarshal.AsSpan(list262); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj190.CompletionQuestVariablesFlags = list262; - reference206 = obj190; - span105[1] = new QuestStep(EInteractionType.UseItem, 2004450u, new Vector3(589.9595f, 286.51855f, 183.00134f), 155) + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + span4 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj187.CompletionQuestVariablesFlags = list257; + reference203 = obj187; + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2004450u, new Vector3(589.9595f, 286.51855f, 183.00134f), 155) { Fly = true, ItemId = 2001439u }; - obj189.Steps = list261; - reference205 = obj189; - ref QuestSequence reference207 = ref span103[7]; - QuestSequence obj191 = new QuestSequence + obj186.Steps = list256; + reference202 = obj186; + num++; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.UseItem, 2004451u, new Vector3(574.15125f, 302.7848f, 33.6156f), 155) + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2004451u, new Vector3(574.15125f, 302.7848f, 33.6156f), 155) { Fly = true, ItemId = 2001439u }; - obj191.Steps = list263; - reference207 = obj191; - ref QuestSequence reference208 = ref span103[8]; - QuestSequence obj192 = new QuestSequence + obj188.Steps = list258; + reference204 = obj188; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) { Fly = true }; - obj192.Steps = list264; - reference208 = obj192; - ref QuestSequence reference209 = ref span103[9]; - QuestSequence obj193 = new QuestSequence + obj189.Steps = list259; + reference205 = obj189; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = 9 }; num2 = 2; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - Span span107 = CollectionsMarshal.AsSpan(list265); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.04178f, 307.86307f, 411.6528f), 155) + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.04178f, 307.86307f, 411.6528f), 155) { Fly = true, Land = true }; - span107[1] = new QuestStep(EInteractionType.Interact, 1009693u, new Vector3(203.50952f, 297.2045f, 425.37573f), 155); - obj193.Steps = list265; - reference209 = obj193; - ref QuestSequence reference210 = ref span103[10]; - QuestSequence obj194 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009693u, new Vector3(203.50952f, 297.2045f, 425.37573f), 155); + obj190.Steps = list260; + reference206 = obj190; + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj194.Steps = list266; - reference210 = obj194; - ref QuestSequence reference211 = ref span103[11]; - QuestSequence obj195 = new QuestSequence + obj191.Steps = list261; + reference207 = obj191; + num++; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 11 }; num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); - obj195.Steps = list267; - reference211 = obj195; - ref QuestSequence reference212 = ref span103[12]; - QuestSequence obj196 = new QuestSequence + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); + obj192.Steps = list262; + reference208 = obj192; + num++; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 12 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); - obj196.Steps = list268; - reference212 = obj196; - ref QuestSequence reference213 = ref span103[13]; - QuestSequence obj197 = new QuestSequence + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); + obj193.Steps = list263; + reference209 = obj193; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 13 }; num2 = 2; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - Span span108 = CollectionsMarshal.AsSpan(list269); - span108[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8134u, ItemCount = 1, @@ -91313,68 +108539,82 @@ public static class AssemblyQuestLoader } } }; - span108[1] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); - obj197.Steps = list269; - reference213 = obj197; - ref QuestSequence reference214 = ref span103[14]; - QuestSequence obj198 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); + obj194.Steps = list264; + reference210 = obj194; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 14 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list270)[0]; + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + ref QuestStep reference212 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); - num3 = 1; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice + num4 = 1; + List list266 = new List(num4); + CollectionsMarshal.SetCount(list266, num4); + span5 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA008_01493_Q1_000_000"), Answer = new ExcelRef("TEXT_BANIXA008_01493_A1_000_001") }; - questStep18.DialogueChoices = list271; - reference215 = questStep18; - obj198.Steps = list270; - reference214 = obj198; - ref QuestSequence reference216 = ref span103[15]; - QuestSequence obj199 = new QuestSequence + questStep18.DialogueChoices = list266; + reference212 = questStep18; + obj195.Steps = list265; + reference211 = obj195; + num++; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj199.Steps = list272; - reference216 = obj199; - questRoot27.QuestSequence = list254; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(1494); - QuestRoot questRoot28 = new QuestRoot(); + obj196.Steps = list267; + reference213 = obj196; + questRoot26.QuestSequence = list249; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(1494); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "Censored"; - questRoot28.Author = list273; - num = 5; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span109 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference217 = ref span109[0]; - QuestSequence obj200 = new QuestSequence + List list268 = new List(num); + CollectionsMarshal.SetCount(list268, num); + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "Censored"; + questRoot27.Author = list268; + index = 5; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference214 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91391,38 +108631,44 @@ public static class AssemblyQuestLoader } } }; - obj200.Steps = list275; - reference217 = obj200; - ref QuestSequence reference218 = ref span109[1]; - QuestSequence obj201 = new QuestSequence + obj197.Steps = list270; + reference214 = obj197; + num++; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + List list271 = new List(num2); + CollectionsMarshal.SetCount(list271, num2); + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true, Land = true }; - obj201.Steps = list276; - reference218 = obj201; - ref QuestSequence reference219 = ref span109[2]; - QuestSequence obj202 = new QuestSequence + obj198.Steps = list271; + reference215 = obj198; + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span110 = CollectionsMarshal.AsSpan(list277); - span110[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 2; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference220 = ref span110[1]; - QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2004452u, new Vector3(324.6051f, -14.206177f, 181.13977f), 154) + num2++; + ref QuestStep reference217 = ref span3[num2]; + QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2004452u, new Vector3(324.6051f, -14.206177f, 181.13977f), 154) { Fly = true, Land = true, @@ -91430,37 +108676,44 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterItemUse }; 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; - ref QuestSequence reference221 = ref span109[3]; - QuestSequence obj204 = new QuestSequence + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + span6 = CollectionsMarshal.AsSpan(list273); + num4 = 0; + span6[num4] = 3239u; + obj200.KillEnemyDataIds = list273; + reference217 = obj200; + obj199.Steps = list272; + reference216 = obj199; + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true }; - obj204.Steps = list279; - reference221 = obj204; - ref QuestSequence reference222 = ref span109[4]; - QuestSequence obj205 = new QuestSequence + obj201.Steps = list274; + reference218 = obj201; + num++; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span111 = CollectionsMarshal.AsSpan(list280); - span111[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8091u, ItemCount = 1, @@ -91472,34 +108725,40 @@ public static class AssemblyQuestLoader } } }; - span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; - obj205.Steps = list280; - reference222 = obj205; - questRoot28.QuestSequence = list274; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(1495); - QuestRoot questRoot29 = new QuestRoot(); + obj202.Steps = list275; + reference219 = obj202; + questRoot27.QuestSequence = list269; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(1495); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "Censored"; - questRoot29.Author = list281; - num = 5; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span112 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference223 = ref span112[0]; - QuestSequence obj206 = new QuestSequence + List list276 = new List(num); + CollectionsMarshal.SetCount(list276, num); + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "Censored"; + questRoot28.Author = list276; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + List list278 = new List(num2); + CollectionsMarshal.SetCount(list278, num2); + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91516,61 +108775,72 @@ public static class AssemblyQuestLoader } } }; - obj206.Steps = list283; - reference223 = obj206; - ref QuestSequence reference224 = ref span112[1]; - QuestSequence obj207 = new QuestSequence + obj203.Steps = list278; + reference220 = obj203; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true, Land = true }; - obj207.Steps = list284; - reference224 = obj207; - ref QuestSequence reference225 = ref span112[2]; - QuestSequence obj208 = new QuestSequence + obj204.Steps = list279; + reference221 = obj204; + num++; + ref QuestSequence reference222 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1000172u, new Vector3(358.96838f, 8.934157f, 231.25049f), 154) + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000172u, new Vector3(358.96838f, 8.934157f, 231.25049f), 154) { Fly = true }; - obj208.Steps = list285; - reference225 = obj208; - ref QuestSequence reference226 = ref span112[3]; - QuestSequence obj209 = new QuestSequence + obj205.Steps = list280; + reference222 = obj205; + num++; + ref QuestSequence reference223 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true }; - obj209.Steps = list286; - reference226 = obj209; - ref QuestSequence reference227 = ref span112[4]; - QuestSequence obj210 = new QuestSequence + obj206.Steps = list281; + reference223 = obj206; + num++; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - Span span113 = CollectionsMarshal.AsSpan(list287); - span113[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + List list282 = new List(num2); + CollectionsMarshal.SetCount(list282, num2); + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8092u, ItemCount = 1, @@ -91582,34 +108852,40 @@ public static class AssemblyQuestLoader } } }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; - obj210.Steps = list287; - reference227 = obj210; - questRoot29.QuestSequence = list282; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(1496); - QuestRoot questRoot30 = new QuestRoot(); + obj207.Steps = list282; + reference224 = obj207; + questRoot28.QuestSequence = list277; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(1496); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - CollectionsMarshal.AsSpan(list288)[0] = "Censored"; - questRoot30.Author = list288; - num = 4; - List list289 = new List(num); - CollectionsMarshal.SetCount(list289, num); - Span span114 = CollectionsMarshal.AsSpan(list289); - ref QuestSequence reference228 = ref span114[0]; - QuestSequence obj211 = new QuestSequence + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + span = CollectionsMarshal.AsSpan(list283); + index = 0; + span[index] = "Censored"; + questRoot29.Author = list283; + index = 4; + List list284 = new List(index); + CollectionsMarshal.SetCount(list284, index); + span2 = CollectionsMarshal.AsSpan(list284); + num = 0; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91626,71 +108902,88 @@ public static class AssemblyQuestLoader } } }; - obj211.Steps = list290; - reference228 = obj211; - ref QuestSequence reference229 = ref span114[1]; - QuestSequence obj212 = new QuestSequence + obj208.Steps = list285; + reference225 = obj208; + num++; + ref QuestSequence reference226 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span115 = CollectionsMarshal.AsSpan(list291); - span115[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference230 = ref span115[1]; - QuestStep obj213 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.67094f, -27.914522f, 211.52048f), 154) + index2++; + ref QuestStep reference227 = ref span3[index2]; + QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.67094f, -27.914522f, 211.52048f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = 749u; - obj213.KillEnemyDataIds = list292; + num4 = 1; + List list287 = new List(num4); + CollectionsMarshal.SetCount(list287, num4); + span6 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span6[num3] = 749u; + obj210.KillEnemyDataIds = list287; 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; - span115[2] = new QuestStep(EInteractionType.Interact, 2004457u, new Vector3(217.15112f, -27.420471f, 209.88782f), 154); - obj212.Steps = list291; - reference229 = obj212; - ref QuestSequence reference231 = ref span114[2]; - QuestSequence obj214 = new QuestSequence + List list288 = new List(num3); + CollectionsMarshal.SetCount(list288, num3); + span4 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj210.CompletionQuestVariablesFlags = list288; + reference227 = obj210; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004457u, new Vector3(217.15112f, -27.420471f, 209.88782f), 154); + obj209.Steps = list286; + reference226 = obj209; + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; - obj214.Steps = list294; - reference231 = obj214; - ref QuestSequence reference232 = ref span114[3]; - QuestSequence obj215 = new QuestSequence + obj211.Steps = list289; + reference228 = obj211; + num++; + ref QuestSequence reference229 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - Span span117 = CollectionsMarshal.AsSpan(list295); - span117[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + List list290 = new List(num2); + CollectionsMarshal.SetCount(list290, num2); + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8093u, ItemCount = 2, @@ -91702,34 +108995,40 @@ public static class AssemblyQuestLoader } } }; - span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; - obj215.Steps = list295; - reference232 = obj215; - questRoot30.QuestSequence = list289; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(1497); - QuestRoot questRoot31 = new QuestRoot(); + obj212.Steps = list290; + reference229 = obj212; + questRoot29.QuestSequence = list284; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(1497); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "Censored"; - questRoot31.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span118 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference233 = ref span118[0]; - QuestSequence obj216 = new QuestSequence + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + span = CollectionsMarshal.AsSpan(list291); + index = 0; + span[index] = "Censored"; + questRoot30.Author = list291; + index = 4; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + span2 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91746,17 +109045,20 @@ public static class AssemblyQuestLoader } } }; - obj216.Steps = list298; - reference233 = obj216; - ref QuestSequence reference234 = ref span118[1]; - QuestSequence obj217 = new QuestSequence + obj213.Steps = list293; + reference230 = obj213; + num++; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Say, 1009633u, new Vector3(254.77979f, -20.989405f, 351.76624f), 154) + List list294 = new List(num2); + CollectionsMarshal.SetCount(list294, num2); + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1009633u, new Vector3(254.77979f, -20.989405f, 351.76624f), 154) { Fly = true, ChatMessage = new ChatMessage @@ -91764,32 +109066,37 @@ public static class AssemblyQuestLoader Key = "TEXT_BANIXA104_01497_SYSTEM_100_062" } }; - obj217.Steps = list299; - reference234 = obj217; - ref QuestSequence reference235 = ref span118[2]; - QuestSequence obj218 = new QuestSequence + obj214.Steps = list294; + reference231 = obj214; + num++; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; - obj218.Steps = list300; - reference235 = obj218; - ref QuestSequence reference236 = ref span118[3]; - QuestSequence obj219 = new QuestSequence + obj215.Steps = list295; + reference232 = obj215; + num++; + ref QuestSequence reference233 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span119 = CollectionsMarshal.AsSpan(list301); - span119[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + List list296 = new List(num2); + CollectionsMarshal.SetCount(list296, num2); + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8094u, ItemCount = 3, @@ -91801,34 +109108,40 @@ public static class AssemblyQuestLoader } } }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; - obj219.Steps = list301; - reference236 = obj219; - questRoot31.QuestSequence = list297; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(1498); - QuestRoot questRoot32 = new QuestRoot(); + obj216.Steps = list296; + reference233 = obj216; + questRoot30.QuestSequence = list292; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(1498); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "Censored"; - questRoot32.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span120 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference237 = ref span120[0]; - QuestSequence obj220 = new QuestSequence + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + span = CollectionsMarshal.AsSpan(list297); + index = 0; + span[index] = "Censored"; + questRoot31.Author = list297; + index = 5; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + span2 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference234 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -91844,83 +109157,96 @@ public static class AssemblyQuestLoader } } }; - obj220.Steps = list304; - reference237 = obj220; - ref QuestSequence reference238 = ref span120[1]; - QuestSequence obj221 = new QuestSequence + obj217.Steps = list299; + reference234 = obj217; + num++; + ref QuestSequence reference235 = ref span2[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span121 = CollectionsMarshal.AsSpan(list305); - span121[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) { TargetClass = EExtendedClassJob.Botanist }; - ref QuestStep reference239 = ref span121[1]; - QuestStep obj222 = new QuestStep(EInteractionType.Gather, null, null, 154) + index2++; + ref QuestStep reference236 = ref span3[index2]; + QuestStep obj219 = new QuestStep(EInteractionType.Gather, null, null, 154) { Fly = true }; - num3 = 2; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span122 = CollectionsMarshal.AsSpan(list306); - span122[0] = new GatheredItem + num4 = 2; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + Span span9 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 2001388u, ItemCount = 15 }; - span122[1] = new GatheredItem + num3++; + span9[num3] = new GatheredItem { ItemId = 2001389u, ItemCount = 5 }; - obj222.ItemsToGather = list306; - reference239 = obj222; - obj221.Steps = list305; - reference238 = obj221; - ref QuestSequence reference240 = ref span120[2]; - QuestSequence obj223 = new QuestSequence + obj219.ItemsToGather = list301; + reference236 = obj219; + obj218.Steps = list300; + reference235 = obj218; + num++; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1009635u, new Vector3(12.49707f, -46.518524f, 234.24121f), 154) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009635u, new Vector3(12.49707f, -46.518524f, 234.24121f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj223.Steps = list307; - reference240 = obj223; - ref QuestSequence reference241 = ref span120[3]; - QuestSequence obj224 = new QuestSequence + obj220.Steps = list302; + reference237 = obj220; + num++; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + List list303 = new List(num2); + CollectionsMarshal.SetCount(list303, num2); + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; - obj224.Steps = list308; - reference241 = obj224; - ref QuestSequence reference242 = ref span120[4]; - QuestSequence obj225 = new QuestSequence + obj221.Steps = list303; + reference238 = obj221; + num++; + ref QuestSequence reference239 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span123 = CollectionsMarshal.AsSpan(list309); - span123[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8105u, ItemCount = 4, @@ -91932,35 +109258,41 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true }; - obj225.Steps = list309; - reference242 = obj225; - questRoot32.QuestSequence = list303; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(1499); - QuestRoot questRoot33 = new QuestRoot(); + obj222.Steps = list304; + reference239 = obj222; + questRoot31.QuestSequence = list298; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(1499); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "Censored"; - questRoot33.Author = list310; - num = 5; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span124 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference243 = ref span124[0]; - QuestSequence obj226 = new QuestSequence + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + span = CollectionsMarshal.AsSpan(list305); + index = 0; + span[index] = "Censored"; + questRoot32.Author = list305; + index = 5; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + span2 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference240 = ref span2[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + List list307 = new List(num2); + CollectionsMarshal.SetCount(list307, num2); + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -91976,83 +109308,96 @@ public static class AssemblyQuestLoader } } }; - obj226.Steps = list312; - reference243 = obj226; - ref QuestSequence reference244 = ref span124[1]; - QuestSequence obj227 = new QuestSequence + obj223.Steps = list307; + reference240 = obj223; + num++; + ref QuestSequence reference241 = ref span2[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span125 = CollectionsMarshal.AsSpan(list313); - span125[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) + index2 = 2; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) { TargetClass = EExtendedClassJob.Miner }; - ref QuestStep reference245 = ref span125[1]; - QuestStep obj228 = new QuestStep(EInteractionType.Gather, null, null, 154) + num2++; + ref QuestStep reference242 = ref span3[num2]; + QuestStep obj225 = new QuestStep(EInteractionType.Gather, null, null, 154) { Fly = true }; num3 = 2; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span126 = CollectionsMarshal.AsSpan(list314); - span126[0] = new GatheredItem + List list309 = new List(num3); + CollectionsMarshal.SetCount(list309, num3); + span9 = CollectionsMarshal.AsSpan(list309); + num4 = 0; + span9[num4] = new GatheredItem { ItemId = 2001391u, ItemCount = 15 }; - span126[1] = new GatheredItem + num4++; + span9[num4] = new GatheredItem { ItemId = 2001392u, ItemCount = 5 }; - obj228.ItemsToGather = list314; - reference245 = obj228; - obj227.Steps = list313; - reference244 = obj227; - ref QuestSequence reference246 = ref span124[2]; - QuestSequence obj229 = new QuestSequence + obj225.ItemsToGather = list309; + reference242 = obj225; + obj224.Steps = list308; + reference241 = obj224; + num++; + ref QuestSequence reference243 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1009636u, new Vector3(0.015197754f, -46.4906f, 246.1737f), 154) + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009636u, new Vector3(0.015197754f, -46.4906f, 246.1737f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj229.Steps = list315; - reference246 = obj229; - ref QuestSequence reference247 = ref span124[3]; - QuestSequence obj230 = new QuestSequence + obj226.Steps = list310; + reference243 = obj226; + num++; + ref QuestSequence reference244 = ref span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; - obj230.Steps = list316; - reference247 = obj230; - ref QuestSequence reference248 = ref span124[4]; - QuestSequence obj231 = new QuestSequence + obj227.Steps = list311; + reference244 = obj227; + num++; + ref QuestSequence reference245 = ref span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span127 = CollectionsMarshal.AsSpan(list317); - span127[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8106u, ItemCount = 4, @@ -92064,15 +109409,16 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true }; - obj231.Steps = list317; - reference248 = obj231; - questRoot33.QuestSequence = list311; - AddQuest(questId33, questRoot33); + obj228.Steps = list312; + reference245 = obj228; + questRoot32.QuestSequence = list306; + AddQuest(questId32, questRoot32); } private static void LoadQuests30() @@ -92082,13 +109428,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -92096,7 +109445,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92115,16 +109466,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2004478u, new Vector3(-108.293274f, -7.2786255f, -51.377197f), 154) { Fly = true, @@ -92133,33 +109486,48 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2004475u, new Vector3(-91.44739f, -5.2644043f, -100.93848f), 154); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list6; reference4 = questStep; - span2[2] = new QuestStep(EInteractionType.Interact, 2004476u, new Vector3(-123.91852f, -7.736328f, -118.24219f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004476u, new Vector3(-123.91852f, -7.736328f, -118.24219f), 154); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference5 = ref span[2]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -92167,22 +109535,26 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8107u, ItemCount = 1, @@ -92194,7 +109566,8 @@ public static class AssemblyQuestLoader } } }; - span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92208,13 +109581,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "Censored"; questRoot2.Author = list9; - num = 4; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 4; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -92222,7 +109598,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92241,15 +109619,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Say, 1009637u, new Vector3(-156.11511f, -9.924311f, -92.5155f), 154) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1009637u, new Vector3(-156.11511f, -9.924311f, -92.5155f), 154) { Fly = true, Land = true, @@ -92260,7 +109641,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span6[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -92268,22 +109650,26 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span6[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8108u, ItemCount = 3, @@ -92295,7 +109681,8 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92309,13 +109696,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "Censored"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span8[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -92323,7 +109713,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92342,20 +109734,23 @@ public static class AssemblyQuestLoader }; obj10.Steps = list17; reference11 = obj10; - ref QuestSequence reference12 = ref span8[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference13 = ref span9[1]; + num2++; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.630516f, 7.3852587f, -54.13745f), 154) { Fly = true, @@ -92364,12 +109759,15 @@ public static class AssemblyQuestLoader num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = 29u; + Span span5 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span5[num4] = 29u; obj12.KillEnemyDataIds = list19; reference13 = obj12; obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -92377,23 +109775,27 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154) { Fly = true, Land = true }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span8[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8110u, ItemCount = 4, @@ -92405,7 +109807,8 @@ public static class AssemblyQuestLoader } } }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92419,13 +109822,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "Censored"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span11 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span11[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -92433,7 +109839,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92452,46 +109860,59 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference17 = ref span11[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span12 = CollectionsMarshal.AsSpan(list25); - span12[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 3; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference18 = ref span12[1]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(83.55191f, -42.160282f, 359.22104f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 747u; + num4 = 1; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + span5 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span5[num3] = 747u; obj17.KillEnemyDataIds = list26; num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + span4 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj17.CompletionQuestVariablesFlags = list27; reference18 = obj17; - span12[2] = new QuestStep(EInteractionType.Interact, 2004461u, new Vector3(82.993774f, -41.519836f, 362.2339f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004461u, new Vector3(82.993774f, -41.519836f, 362.2339f), 154); obj16.Steps = list25; reference17 = obj16; - ref QuestSequence reference19 = ref span11[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -92499,23 +109920,27 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj18.Steps = list28; reference19 = obj18; - ref QuestSequence reference20 = ref span11[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span14 = CollectionsMarshal.AsSpan(list29); - span14[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8095u, ItemCount = 3, @@ -92527,7 +109952,8 @@ public static class AssemblyQuestLoader } } }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92540,13 +109966,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "Censored"; questRoot5.Author = list30; - num = 4; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span15 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference21 = ref span15[0]; + index = 4; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -92554,7 +109983,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92573,21 +110004,25 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference21 = obj20; - ref QuestSequence reference22 = ref span15[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 2004464u, new Vector3(25.741943f, -43.442444f, 441.12292f), 154) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004464u, new Vector3(25.741943f, -43.442444f, 441.12292f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj21.Steps = list33; reference22 = obj21; - ref QuestSequence reference23 = ref span15[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -92595,23 +110030,27 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj22.Steps = list34; reference23 = obj22; - ref QuestSequence reference24 = ref span15[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - span16[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8096u, ItemCount = 2, @@ -92623,7 +110062,8 @@ public static class AssemblyQuestLoader } } }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92636,13 +110076,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "Censored"; questRoot6.Author = list36; - num = 4; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span17 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span17[0]; + index = 4; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -92650,7 +110093,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92669,48 +110114,59 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference25 = obj24; - ref QuestSequence reference26 = ref span17[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span18 = CollectionsMarshal.AsSpan(list39); - span18[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference27 = ref span18[1]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-180.06154f, -60.916454f, 355.63138f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span19 = CollectionsMarshal.AsSpan(list40); - ref ComplexCombatData reference28 = ref span19[0]; + num4 = 2; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span6 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + ref ComplexCombatData reference28 = ref span6[num3]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 30u, MinimumKillCount = 1u }; - int num4 = 6; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span20 = CollectionsMarshal.AsSpan(list41); - span20[0] = null; - span20[1] = null; - span20[2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span20[3] = null; - span20[4] = null; - span20[5] = null; + int num5 = 6; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + span4 = CollectionsMarshal.AsSpan(list41); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; obj27.CompletionQuestVariablesFlags = list41; reference28 = obj27; - span19[1] = new ComplexCombatData + num3++; + span6[num3] = new ComplexCombatData { DataId = 3240u, MinimumKillCount = 1u @@ -92719,7 +110175,8 @@ public static class AssemblyQuestLoader reference27 = obj26; obj25.Steps = list39; reference26 = obj25; - ref QuestSequence reference29 = ref span17[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -92727,22 +110184,26 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj28.Steps = list42; reference29 = obj28; - ref QuestSequence reference30 = ref span17[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span21 = CollectionsMarshal.AsSpan(list43); - span21[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8097u, ItemCount = 1, @@ -92754,7 +110215,8 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92767,13 +110229,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "Censored"; questRoot7.Author = list44; - num = 4; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span22 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference31 = ref span22[0]; + index = 4; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -92781,7 +110246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92800,16 +110267,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list46; reference31 = obj30; - ref QuestSequence reference32 = ref span22[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span23 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference33 = ref span23[0]; + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.913702f, -50.22517f, 533.0378f), 154) { TargetTerritoryId = (ushort)148, @@ -92820,12 +110289,15 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 148; + Span span7 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span7[num4] = 148; skipStepConditions.InTerritory = list48; skipConditions.StepIf = skipStepConditions; obj32.SkipConditions = skipConditions; reference33 = obj32; - span23[1] = new QuestStep(EInteractionType.Say, 1009634u, new Vector3(-410.1778f, 64.43958f, -244.00702f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.Say, 1009634u, new Vector3(-410.1778f, 64.43958f, -244.00702f), 148) { Fly = true, ChatMessage = new ChatMessage @@ -92835,7 +110307,8 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference32 = obj31; - ref QuestSequence reference34 = ref span22[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -92843,22 +110316,26 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj33.Steps = list49; reference34 = obj33; - ref QuestSequence reference35 = ref span22[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span24 = CollectionsMarshal.AsSpan(list50); - span24[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8098u, ItemCount = 1, @@ -92870,7 +110347,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92883,13 +110361,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "Censored"; questRoot8.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span25 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference36 = ref span25[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -92897,7 +110378,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92916,22 +110399,26 @@ public static class AssemblyQuestLoader }; obj35.Steps = list53; reference36 = obj35; - ref QuestSequence reference37 = ref span25[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) { Fly = true, Land = true }; obj36.Steps = list54; reference37 = obj36; - ref QuestSequence reference38 = ref span25[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -92939,22 +110426,26 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj37.Steps = list55; reference38 = obj37; - ref QuestSequence reference39 = ref span25[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span26 = CollectionsMarshal.AsSpan(list56); - span26[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8099u, ItemCount = 2, @@ -92966,7 +110457,8 @@ public static class AssemblyQuestLoader } } }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92979,13 +110471,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "Censored"; questRoot9.Author = list57; - num = 5; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span27 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference40 = ref span27[0]; + index = 5; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -92993,7 +110488,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93013,16 +110510,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list59; reference40 = obj39; - ref QuestSequence reference41 = ref span27[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span28 = CollectionsMarshal.AsSpan(list60); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93038,10 +110537,12 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj40.Steps = list60; reference41 = obj40; - ref QuestSequence reference42 = ref span27[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -93049,23 +110550,27 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span29 = CollectionsMarshal.AsSpan(list61); - span29[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.Botanist }; - ref QuestStep reference43 = ref span29[1]; + index2++; + ref QuestStep reference43 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 156); - num3 = 2; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = new GatheredItem + num4 = 2; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span8 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 2001412u, ItemCount = 15 }; - span30[1] = new GatheredItem + num3++; + span8[num3] = new GatheredItem { ItemId = 2001413u, ItemCount = 5 @@ -93074,16 +110579,18 @@ public static class AssemblyQuestLoader reference43 = questStep2; obj41.Steps = list61; reference42 = obj41; - ref QuestSequence reference44 = ref span27[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span31 = CollectionsMarshal.AsSpan(list63); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93099,10 +110606,12 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj42.Steps = list63; reference44 = obj42; - ref QuestSequence reference45 = ref span27[4]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -93110,8 +110619,9 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span32 = CollectionsMarshal.AsSpan(list64); - span32[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8113u, ItemCount = 2, @@ -93123,7 +110633,8 @@ public static class AssemblyQuestLoader } } }; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93150,21 +110661,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "Censored"; questRoot10.Author = list65; - num = 5; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span33 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference46 = ref span33[0]; + index = 5; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93184,7 +110700,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list67; reference46 = obj44; - ref QuestSequence reference47 = ref span33[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -93192,8 +110709,9 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span34 = CollectionsMarshal.AsSpan(list68); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93209,34 +110727,40 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj45.Steps = list68; reference47 = obj45; - ref QuestSequence reference48 = ref span33[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span35 = CollectionsMarshal.AsSpan(list69); - span35[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.Miner }; - ref QuestStep reference49 = ref span35[1]; + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 156); num3 = 2; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span36 = CollectionsMarshal.AsSpan(list70); - span36[0] = new GatheredItem + span8 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span8[num4] = new GatheredItem { ItemId = 2001415u, ItemCount = 15 }; - span36[1] = new GatheredItem + num4++; + span8[num4] = new GatheredItem { ItemId = 2001416u, ItemCount = 5 @@ -93245,7 +110769,8 @@ public static class AssemblyQuestLoader reference49 = questStep3; obj46.Steps = list69; reference48 = obj46; - ref QuestSequence reference50 = ref span33[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -93253,8 +110778,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span37 = CollectionsMarshal.AsSpan(list71); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93270,19 +110796,22 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj47.Steps = list71; reference50 = obj47; - ref QuestSequence reference51 = ref span33[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span38 = CollectionsMarshal.AsSpan(list72); - span38[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8114u, ItemCount = 1, @@ -93294,7 +110823,8 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93321,13 +110851,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "Censored"; questRoot11.Author = list73; - num = 5; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span39 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference52 = ref span39[0]; + index = 5; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -93335,7 +110868,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93355,16 +110890,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference52 = obj49; - ref QuestSequence reference53 = ref span39[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span40 = CollectionsMarshal.AsSpan(list76); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93380,10 +110917,12 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj50.Steps = list76; reference53 = obj50; - ref QuestSequence reference54 = ref span39[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -93391,22 +110930,26 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span41 = CollectionsMarshal.AsSpan(list77); - span41[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference55 = ref span41[1]; + index2++; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(-339.69962f, -17.148405f, -433.59454f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 140u; + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = 140u; obj52.KillEnemyDataIds = list78; obj52.SkipConditions = new SkipConditions { @@ -93423,16 +110966,18 @@ public static class AssemblyQuestLoader reference55 = obj52; obj51.Steps = list77; reference54 = obj51; - ref QuestSequence reference56 = ref span39[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span42 = CollectionsMarshal.AsSpan(list79); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93448,10 +110993,12 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj53.Steps = list79; reference56 = obj53; - ref QuestSequence reference57 = ref span39[4]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -93459,8 +111006,9 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span43 = CollectionsMarshal.AsSpan(list80); - span43[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8115u, ItemCount = 2, @@ -93472,7 +111020,8 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93499,21 +111048,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "Censored"; questRoot12.Author = list81; - num = 5; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span44 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference58 = ref span44[0]; + index = 5; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93533,7 +111087,8 @@ public static class AssemblyQuestLoader }; obj55.Steps = list83; reference58 = obj55; - ref QuestSequence reference59 = ref span44[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -93541,8 +111096,9 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span45 = CollectionsMarshal.AsSpan(list84); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93558,23 +111114,27 @@ public static class AssemblyQuestLoader } } }; - span45[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj56.Steps = list84; reference59 = obj56; - ref QuestSequence reference60 = ref span44[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span46 = CollectionsMarshal.AsSpan(list85); - span46[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 3; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference61 = ref span46[1]; + num2++; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-512.7902f, -4.0678735f, -442.46564f), 156) { Fly = true, @@ -93584,22 +111144,30 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - ref ComplexCombatData reference62 = ref CollectionsMarshal.AsSpan(list86)[0]; + span6 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + ref ComplexCombatData reference62 = ref span6[num4]; ComplexCombatData obj59 = new ComplexCombatData { DataId = 2983u, MinimumKillCount = 1u }; - num4 = 6; - List list87 = new List(num4); - CollectionsMarshal.SetCount(list87, num4); - Span span47 = CollectionsMarshal.AsSpan(list87); - span47[0] = null; - span47[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = null; + num6 = 6; + List list87 = new List(num6); + CollectionsMarshal.SetCount(list87, num6); + span4 = CollectionsMarshal.AsSpan(list87); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; obj59.CompletionQuestVariablesFlags = list87; reference62 = obj59; obj58.ComplexCombatData = list86; @@ -93615,22 +111183,30 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span48 = CollectionsMarshal.AsSpan(list88); - span48[0] = null; - span48[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = null; + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj58.CompletionQuestVariablesFlags = list88; reference61 = obj58; - span46[2] = new QuestStep(EInteractionType.Interact, 2004479u, new Vector3(-513.0541f, -4.043701f, -442.46588f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004479u, new Vector3(-513.0541f, -4.043701f, -442.46588f), 156); obj57.Steps = list85; reference60 = obj57; - ref QuestSequence reference63 = ref span44[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -93638,8 +111214,9 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span49 = CollectionsMarshal.AsSpan(list89); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93655,19 +111232,22 @@ public static class AssemblyQuestLoader } } }; - span49[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj60.Steps = list89; reference63 = obj60; - ref QuestSequence reference64 = ref span44[4]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span50 = CollectionsMarshal.AsSpan(list90); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8117u, ItemCount = 1, @@ -93679,7 +111259,8 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93706,13 +111287,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "Censored"; questRoot13.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span51 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference65 = ref span51[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -93720,8 +111304,9 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span52 = CollectionsMarshal.AsSpan(list93); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93739,19 +111324,22 @@ public static class AssemblyQuestLoader } } }; - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj62.Steps = list93; reference65 = obj62; - ref QuestSequence reference66 = ref span51[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span53 = CollectionsMarshal.AsSpan(list94); - ref QuestStep reference67 = ref span53[0]; + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1000776u, new Vector3(115.342896f, 287.02945f, 142.1377f), 155) { Fly = true, @@ -93767,16 +111355,23 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span54 = CollectionsMarshal.AsSpan(list95); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list95; reference67 = obj64; - span53[1] = new QuestStep(EInteractionType.Say, 1009639u, new Vector3(59.952637f, 298.56396f, 176.25696f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Say, 1009639u, new Vector3(59.952637f, 298.56396f, 176.25696f), 155) { Fly = true, ChatMessage = new ChatMessage @@ -93786,7 +111381,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference66 = obj63; - ref QuestSequence reference68 = ref span51[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -93794,25 +111390,29 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span55 = CollectionsMarshal.AsSpan(list96); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - span55[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj65.Steps = list96; reference68 = obj65; - ref QuestSequence reference69 = ref span51[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span56 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference70 = ref span56[0]; + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8101u, @@ -93825,13 +111425,16 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + Span span9 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span9[num3] = EExtendedClassJob.DoH; obj67.RequiredCurrentJob = list98; reference70 = obj67; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93849,7 +111452,8 @@ public static class AssemblyQuestLoader } } }; - span56[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj66.Steps = list97; reference69 = obj66; questRoot13.QuestSequence = list92; @@ -93864,13 +111468,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "Censored"; questRoot14.Author = list99; - num = 4; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span57 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference71 = ref span57[0]; + index = 4; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -93878,8 +111485,9 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span58 = CollectionsMarshal.AsSpan(list101); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93897,23 +111505,27 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj68.Steps = list101; reference71 = obj68; - ref QuestSequence reference72 = ref span57[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span59 = CollectionsMarshal.AsSpan(list102); - span59[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference73 = ref span59[1]; + num2++; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-238.96973f, 225.51239f, 425.29025f), 155) { Fly = true, @@ -93923,7 +111535,9 @@ public static class AssemblyQuestLoader num3 = 1; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 191u; + span5 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span5[num4] = 191u; obj70.KillEnemyDataIds = list103; obj70.SkipConditions = new SkipConditions { @@ -93935,7 +111549,8 @@ public static class AssemblyQuestLoader reference73 = obj70; obj69.Steps = list102; reference72 = obj69; - ref QuestSequence reference74 = ref span57[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -93943,25 +111558,29 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span60 = CollectionsMarshal.AsSpan(list104); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - span60[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj71.Steps = list104; reference74 = obj71; - ref QuestSequence reference75 = ref span57[3]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span61 = CollectionsMarshal.AsSpan(list105); - span61[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8103u, ItemCount = 1, @@ -93973,7 +111592,8 @@ public static class AssemblyQuestLoader } } }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93991,7 +111611,8 @@ public static class AssemblyQuestLoader } } }; - span61[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj72.Steps = list105; reference75 = obj72; questRoot14.QuestSequence = list100; @@ -94001,13 +111622,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "Censored"; questRoot15.Author = list106; - num = 5; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span62 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference76 = ref span62[0]; + index = 5; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -94015,8 +111639,9 @@ public static class AssemblyQuestLoader num2 = 2; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span63 = CollectionsMarshal.AsSpan(list108); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -94034,19 +111659,22 @@ public static class AssemblyQuestLoader } } }; - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj73.Steps = list108; reference76 = obj73; - ref QuestSequence reference77 = ref span62[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span64 = CollectionsMarshal.AsSpan(list109); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true, @@ -94059,10 +111687,12 @@ public static class AssemblyQuestLoader } } }; - span64[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj74.Steps = list109; reference77 = obj74; - ref QuestSequence reference78 = ref span62[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -94070,38 +111700,46 @@ public static class AssemblyQuestLoader num2 = 3; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span65 = CollectionsMarshal.AsSpan(list110); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155); - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) { Fly = true, Land = true }; - span65[2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); obj75.Steps = list110; reference78 = obj75; - ref QuestSequence reference79 = ref span62[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span66 = CollectionsMarshal.AsSpan(list111); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) { Mount = true }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - span66[2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj76.Steps = list111; reference79 = obj76; - ref QuestSequence reference80 = ref span62[4]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -94109,8 +111747,9 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span67 = CollectionsMarshal.AsSpan(list112); - span67[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8104u, ItemCount = 1, @@ -94122,7 +111761,8 @@ public static class AssemblyQuestLoader } } }; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -94140,7 +111780,8 @@ public static class AssemblyQuestLoader } } }; - span67[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj77.Steps = list112; reference80 = obj77; questRoot15.QuestSequence = list107; @@ -94150,21 +111791,26 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "Censored"; questRoot16.Author = list113; - num = 5; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span68 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference81 = ref span68[0]; + index = 5; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -94184,7 +111830,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list115; reference81 = obj78; - ref QuestSequence reference82 = ref span68[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -94192,8 +111839,9 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span69 = CollectionsMarshal.AsSpan(list116); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -94209,33 +111857,39 @@ public static class AssemblyQuestLoader } } }; - span69[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj79.Steps = list116; reference82 = obj79; - ref QuestSequence reference83 = ref span68[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span70 = CollectionsMarshal.AsSpan(list117); - span70[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + index2 = 4; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference84 = ref span70[1]; + num2++; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 1009669u, new Vector3(-134.47784f, -1.2726249f, -637.7814f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = 725u; + num4 = 1; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + span5 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span5[num3] = 725u; obj81.KillEnemyDataIds = list118; obj81.SkipConditions = new SkipConditions { @@ -94252,51 +111906,70 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span71 = CollectionsMarshal.AsSpan(list119); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list119; reference84 = obj81; - ref QuestStep reference85 = ref span70[2]; + num2++; + ref QuestStep reference85 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 1009640u, new Vector3(-143.45007f, 3.3107295f, -663.99634f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = 725u; + num4 = 1; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + span5 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span5[num3] = 725u; obj82.KillEnemyDataIds = list120; num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span72 = CollectionsMarshal.AsSpan(list121); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list121; reference85 = obj82; - ref QuestStep reference86 = ref span70[3]; + num2++; + ref QuestStep reference86 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 1009670u, new Vector3(-189.28821f, 4.6535096f, -654.9325f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 725u; + num4 = 1; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + span5 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span5[num3] = 725u; obj83.KillEnemyDataIds = list122; reference86 = obj83; obj80.Steps = list117; reference83 = obj80; - ref QuestSequence reference87 = ref span68[3]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 3 @@ -94304,8 +111977,9 @@ public static class AssemblyQuestLoader num2 = 2; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span73 = CollectionsMarshal.AsSpan(list123); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -94321,19 +111995,22 @@ public static class AssemblyQuestLoader } } }; - span73[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj84.Steps = list123; reference87 = obj84; - ref QuestSequence reference88 = ref span68[4]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span74 = CollectionsMarshal.AsSpan(list124); - span74[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8118u, ItemCount = 2, @@ -94345,7 +112022,8 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -94372,13 +112050,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "Censored"; questRoot17.Author = list125; - num = 5; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span75 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference89 = ref span75[0]; + index = 5; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -94386,7 +112067,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94406,31 +112089,36 @@ public static class AssemblyQuestLoader }; obj86.Steps = list127; reference89 = obj86; - ref QuestSequence reference90 = ref span75[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span76 = CollectionsMarshal.AsSpan(list128); - span76[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.Botanist }; - ref QuestStep reference91 = ref span76[1]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 155); num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span77 = CollectionsMarshal.AsSpan(list129); - span77[0] = new GatheredItem + span8 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span8[num4] = new GatheredItem { ItemId = 2001424u, ItemCount = 15 }; - span77[1] = new GatheredItem + num4++; + span8[num4] = new GatheredItem { ItemId = 2001425u, ItemCount = 5 @@ -94439,7 +112127,8 @@ public static class AssemblyQuestLoader reference91 = questStep4; obj87.Steps = list128; reference90 = obj87; - ref QuestSequence reference92 = ref span75[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -94447,24 +112136,30 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1009646u, new Vector3(246.78406f, 302f, -256.64148f), 155) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009646u, new Vector3(246.78406f, 302f, -256.64148f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj88.Steps = list130; reference92 = obj88; - ref QuestSequence reference93 = ref span75[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); obj89.Steps = list131; reference93 = obj89; - ref QuestSequence reference94 = ref span75[4]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -94472,8 +112167,9 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span78 = CollectionsMarshal.AsSpan(list132); - span78[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8121u, ItemCount = 2, @@ -94485,7 +112181,8 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94512,21 +112209,26 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "Censored"; questRoot18.Author = list133; - num = 5; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span79 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference95 = ref span79[0]; + index = 5; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94546,7 +112248,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list135; reference95 = obj91; - ref QuestSequence reference96 = ref span79[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -94554,23 +112257,27 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span80 = CollectionsMarshal.AsSpan(list136); - span80[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.Miner }; - ref QuestStep reference97 = ref span80[1]; + index2++; + ref QuestStep reference97 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 155); - num3 = 2; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span81 = CollectionsMarshal.AsSpan(list137); - span81[0] = new GatheredItem + num4 = 2; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + span8 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 2001426u, ItemCount = 15 }; - span81[1] = new GatheredItem + num3++; + span8[num3] = new GatheredItem { ItemId = 2001427u, ItemCount = 5 @@ -94579,21 +112286,25 @@ public static class AssemblyQuestLoader reference97 = questStep5; obj92.Steps = list136; reference96 = obj92; - ref QuestSequence reference98 = ref span79[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1009647u, new Vector3(204.97437f, 302.26498f, -250.84308f), 155) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009647u, new Vector3(204.97437f, 302.26498f, -250.84308f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj93.Steps = list138; reference98 = obj93; - ref QuestSequence reference99 = ref span79[3]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 @@ -94601,19 +112312,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); obj94.Steps = list139; reference99 = obj94; - ref QuestSequence reference100 = ref span79[4]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span82 = CollectionsMarshal.AsSpan(list140); - span82[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + index2 = 2; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8122u, ItemCount = 2, @@ -94625,7 +112340,8 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94652,13 +112368,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "Censored"; questRoot19.Author = list141; - num = 5; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span83 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference101 = ref span83[0]; + index = 5; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -94666,7 +112385,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94686,18 +112407,22 @@ public static class AssemblyQuestLoader }; obj96.Steps = list143; reference101 = obj96; - ref QuestSequence reference102 = ref span83[1]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); obj97.Steps = list144; reference102 = obj97; - ref QuestSequence reference103 = ref span83[2]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -94705,7 +112430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1009648u, new Vector3(-174.60901f, 304.1538f, -322.4079f), 155) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009648u, new Vector3(-174.60901f, 304.1538f, -322.4079f), 155) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -94716,21 +112443,25 @@ public static class AssemblyQuestLoader }; obj98.Steps = list145; reference103 = obj98; - ref QuestSequence reference104 = ref span83[3]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj99.Steps = list146; reference104 = obj99; - ref QuestSequence reference105 = ref span83[4]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -94738,8 +112469,9 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span84 = CollectionsMarshal.AsSpan(list147); - span84[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8123u, ItemCount = 3, @@ -94751,7 +112483,8 @@ public static class AssemblyQuestLoader } } }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94778,21 +112511,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "liza"; questRoot20.Author = list148; - num = 2; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span85 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference106 = ref span85[0]; + index = 2; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list150)[0]; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference107 = ref span3[num2]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -94810,14 +112548,17 @@ public static class AssemblyQuestLoader num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = 128; + span7 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span7[num4] = 128; obj103.InTerritory = list151; skipConditions2.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions2; reference107 = obj102; obj101.Steps = list150; reference106 = obj101; - ref QuestSequence reference108 = ref span85[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -94825,7 +112566,9 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009236u, new Vector3(-20.431885f, 91.99992f, -1.3886108f), 128) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009236u, new Vector3(-20.431885f, 91.99992f, -1.3886108f), 128) { AethernetShortcut = new AethernetShortcut { @@ -94842,24 +112585,30 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "liza"; questRoot21.Author = list153; - num = 5; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span86 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference109 = ref span86[0]; + index = 5; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); obj105.Steps = list155; reference109 = obj105; - ref QuestSequence reference110 = ref span86[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -94867,30 +112616,36 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj106.Steps = list156; reference110 = obj106; - ref QuestSequence reference111 = ref span86[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - Span span87 = CollectionsMarshal.AsSpan(list157); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.12068f, -31.484615f, -218.4991f), 152) + index2 = 2; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.12068f, -31.484615f, -218.4991f), 152) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.Interact, 2004430u, new Vector3(198.2909f, -29.83142f, -220.44714f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004430u, new Vector3(198.2909f, -29.83142f, -220.44714f), 152); obj107.Steps = list157; reference111 = obj107; - ref QuestSequence reference112 = ref span86[3]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -94898,7 +112653,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -94907,26 +112664,31 @@ public static class AssemblyQuestLoader }; obj108.Steps = list158; reference112 = obj108; - ref QuestSequence reference113 = ref span86[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span88 = CollectionsMarshal.AsSpan(list159); - span88[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span88[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span88[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj109.Steps = list159; reference113 = obj109; questRoot21.QuestSequence = list154; @@ -94936,13 +112698,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot22.Author = list160; - num = 6; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span89 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference114 = ref span89[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -94950,7 +112715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -94963,15 +112730,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list162; reference114 = obj110; - ref QuestSequence reference115 = ref span89[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -94982,7 +112752,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list163; reference115 = obj111; - ref QuestSequence reference116 = ref span89[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -94990,70 +112761,95 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj112.Steps = list164; reference116 = obj112; - ref QuestSequence reference117 = ref span89[3]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span90 = CollectionsMarshal.AsSpan(list165); - ref QuestStep reference118 = ref span90[0]; + index2 = 3; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + ref QuestStep reference118 = ref span3[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1000312u, new Vector3(269.6421f, 7.877909f, -206.34778f), 153) { Fly = true }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span91 = CollectionsMarshal.AsSpan(list166); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list166 = new List(num4); + CollectionsMarshal.SetCount(list166, num4); + span4 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj114.CompletionQuestVariablesFlags = list166; reference118 = obj114; - ref QuestStep reference119 = ref span90[1]; + num2++; + ref QuestStep reference119 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000338u, new Vector3(268.20776f, 10.393627f, -250.11066f), 153); num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span92 = CollectionsMarshal.AsSpan(list167); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list167); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list167; reference119 = questStep6; - ref QuestStep reference120 = ref span90[2]; + num2++; + ref QuestStep reference120 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span93 = CollectionsMarshal.AsSpan(list168); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list168 = new List(num4); + CollectionsMarshal.SetCount(list168, num4); + span4 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list168; reference120 = questStep7; obj113.Steps = list165; reference117 = obj113; - ref QuestSequence reference121 = ref span89[4]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -95061,23 +112857,28 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span94 = CollectionsMarshal.AsSpan(list169); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(265.58423f, 9.040689f, -227.60555f), 153); - span94[1] = new QuestStep(EInteractionType.Interact, 2004282u, new Vector3(261.5548f, 15.42688f, -125.90222f), 153) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(265.58423f, 9.040689f, -227.60555f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004282u, new Vector3(261.5548f, 15.42688f, -125.90222f), 153) { Fly = true }; obj115.Steps = list169; reference121 = obj115; - ref QuestSequence reference122 = ref span89[5]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -95096,13 +112897,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; questRoot23.Author = list171; - num = 10; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span95 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference123 = ref span95[0]; + index = 10; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -95110,7 +112914,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -95123,22 +112929,26 @@ public static class AssemblyQuestLoader }; obj117.Steps = list173; reference123 = obj117; - ref QuestSequence reference124 = ref span95[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj118.Steps = list174; reference124 = obj118; - ref QuestSequence reference125 = ref span95[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -95146,34 +112956,40 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1009267u, new Vector3(194.20154f, 59.531815f, -144.54877f), 180) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009267u, new Vector3(194.20154f, 59.531815f, -144.54877f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj119.Steps = list175; reference125 = obj119; - ref QuestSequence reference126 = ref span95[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span96 = CollectionsMarshal.AsSpan(list176); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.54996f, 67.72218f, -344.0944f), 180) + index2 = 2; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.54996f, 67.72218f, -344.0944f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span96[1] = new QuestStep(EInteractionType.Interact, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { Fly = true }; obj120.Steps = list176; reference126 = obj120; - ref QuestSequence reference127 = ref span95[4]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -95181,27 +112997,33 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj121.Steps = list177; reference127 = obj121; - ref QuestSequence reference128 = ref span95[5]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj122.Steps = list178; reference128 = obj122; - ref QuestSequence reference129 = ref span95[6]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 6 @@ -95209,28 +113031,34 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj123.Steps = list179; reference129 = obj123; - ref QuestSequence reference130 = ref span95[7]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj124.Steps = list180; reference130 = obj124; - ref QuestSequence reference131 = ref span95[8]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 8 @@ -95238,21 +113066,26 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 2004284u, new Vector3(517.32654f, 12.558105f, 78.93494f), 137) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004284u, new Vector3(517.32654f, 12.558105f, 78.93494f), 137) { Fly = true }; obj125.Steps = list181; reference131 = obj125; - ref QuestSequence reference132 = ref span95[9]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -95267,13 +113100,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot24.Author = list183; - num = 5; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span97 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference133 = ref span97[0]; + index = 5; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -95281,7 +113117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -95294,15 +113132,18 @@ public static class AssemblyQuestLoader }; obj127.Steps = list185; reference133 = obj127; - ref QuestSequence reference134 = ref span97[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1009271u, new Vector3(149.9198f, 7.492006f, 109.391846f), 131) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009271u, new Vector3(149.9198f, 7.492006f, 109.391846f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -95313,7 +113154,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list186; reference134 = obj128; - ref QuestSequence reference135 = ref span97[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -95321,8 +113163,9 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span98 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference136 = ref span98[0]; + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1009272u, new Vector3(-39.16992f, 13.499999f, 104.99719f), 131) { AethernetShortcut = new AethernetShortcut @@ -95334,18 +113177,26 @@ public static class AssemblyQuestLoader num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span99 = CollectionsMarshal.AsSpan(list188); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list188); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj130.CompletionQuestVariablesFlags = list188; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + num4 = 1; + List list189 = new List(num4); + CollectionsMarshal.SetCount(list189, num4); + Span span10 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span10[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST007_01533_Q1_000_000"), @@ -95353,7 +113204,8 @@ public static class AssemblyQuestLoader }; obj130.DialogueChoices = list189; reference136 = obj130; - ref QuestStep reference137 = ref span98[1]; + index2++; + ref QuestStep reference137 = ref span3[index2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1009273u, new Vector3(-120.74469f, 41.50016f, 134.5083f), 131) { AethernetShortcut = new AethernetShortcut @@ -95365,18 +113217,26 @@ public static class AssemblyQuestLoader num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span100 = CollectionsMarshal.AsSpan(list190); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj131.CompletionQuestVariablesFlags = list190; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + span10 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span10[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST007_01533_Q2_000_000"), @@ -95386,15 +113246,18 @@ public static class AssemblyQuestLoader reference137 = obj131; obj129.Steps = list187; reference135 = obj129; - ref QuestSequence reference138 = ref span97[3]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.655914f, 8.361085f, 73.20917f), 131) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.655914f, 8.361085f, 73.20917f), 131) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -95405,7 +113268,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference138 = obj132; - ref QuestSequence reference139 = ref span97[4]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -95413,7 +113277,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009369u, new Vector3(151.26257f, 7.492006f, 109.84961f), 131) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009369u, new Vector3(151.26257f, 7.492006f, 109.84961f), 131) { NextQuestId = new QuestId(1571) }; @@ -95430,13 +113296,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -95444,7 +113313,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -95457,15 +113328,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) { StopDistance = 5f }; @@ -95478,13 +113352,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list5); + index = 0; + span[index] = "liza"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + span2 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -95492,8 +113369,9 @@ public static class AssemblyQuestLoader num2 = 4; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestStep reference4 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -95505,25 +113383,31 @@ public static class AssemblyQuestLoader List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = 140; - span4[1] = 212; + int num4 = 0; + span4[num4] = 140; + num4++; + span4[num4] = 212; skipStepConditions.InTerritory = list8; skipConditions.StepIf = skipStepConditions; obj4.SkipConditions = skipConditions; reference4 = obj4; - ref QuestStep reference5 = ref span3[1]; + index2++; + ref QuestStep reference5 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 212; + num4 = 1; + List list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); + span4 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span4[num3] = 212; skipStepConditions2.InTerritory = list9; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference5 = questStep; - ref QuestStep reference6 = ref span3[2]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 @@ -95533,23 +113417,29 @@ public static class AssemblyQuestLoader num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 212; + span4 = CollectionsMarshal.AsSpan(list10); + num4 = 0; + span4[num4] = 212; skipStepConditions3.InTerritory = list10; skipConditions3.StepIf = skipStepConditions3; obj5.SkipConditions = skipConditions3; reference6 = obj5; - span3[3] = new QuestStep(EInteractionType.AcceptQuest, 1011618u, new Vector3(10.330261f, -3.0000017f, -54.8562f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011618u, new Vector3(10.330261f, -3.0000017f, -54.8562f), 212); obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, NextQuestId = new QuestId(1021) @@ -95563,13 +113453,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "Censored"; questRoot3.Author = list12; - num = 2; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span5[0]; + index = 2; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -95577,7 +113470,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list14)[0]; + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -95587,10 +113482,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeBokairoInn } }; - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice + num4 = 1; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span5 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY992_01555_Q1_000_000"), @@ -95600,15 +113497,18 @@ public static class AssemblyQuestLoader reference9 = obj8; obj7.Steps = list14; reference8 = obj7; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628); obj9.Steps = list16; reference10 = obj9; questRoot3.QuestSequence = list13; @@ -95618,13 +113518,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot4.Author = list17; - num = 2; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span6[0]; + index = 2; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -95632,20 +113535,25 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.134737f, 21.252728f, -640.2821f), 156); - span7[1] = new QuestStep(EInteractionType.AcceptQuest, 1006950u, new Vector3(14.755432f, 21.252728f, -640.71106f), 156); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.134737f, 21.252728f, -640.2821f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006950u, new Vector3(14.755432f, 21.252728f, -640.71106f), 156); obj10.Steps = list19; reference11 = obj10; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156) { StopDistance = 5f }; @@ -95658,13 +113566,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "alydev"; questRoot5.Author = list21; - num = 9; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference13 = ref span8[0]; + index = 9; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -95672,91 +113583,130 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj12.Steps = list23; reference13 = obj12; - ref QuestSequence reference14 = ref span8[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span9 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference15 = ref span9[0]; + index2 = 5; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2004436u, new Vector3(-58.06067f, 0.19836426f, 5.355835f), 148); num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list25); + 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(0, (byte)8, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list25; reference15 = questStep2; - ref QuestStep reference16 = ref span9[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2004432u, new Vector3(-64.62195f, -0.015319824f, -5.2339478f), 148); - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span11 = CollectionsMarshal.AsSpan(list26); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + span6 = CollectionsMarshal.AsSpan(list26); + 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); questStep3.CompletionQuestVariablesFlags = list26; reference16 = questStep3; - ref QuestStep reference17 = ref span9[2]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2004433u, new Vector3(-47.28778f, -0.015319824f, -4.0131226f), 148); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list27); + 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)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list27; reference17 = questStep4; - ref QuestStep reference18 = ref span9[3]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2004434u, new Vector3(-51.773926f, 0.19836426f, 16.128723f), 148); - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span13 = CollectionsMarshal.AsSpan(list28); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span6 = CollectionsMarshal.AsSpan(list28); + 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); questStep5.CompletionQuestVariablesFlags = list28; reference18 = questStep5; - ref QuestStep reference19 = ref span9[4]; + num2++; + ref QuestStep reference19 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2004435u, new Vector3(-63.309692f, 0.19836426f, 16.03717f), 148); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span14 = CollectionsMarshal.AsSpan(list29); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list29); + 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)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list29; reference19 = questStep6; obj13.Steps = list24; reference14 = obj13; - ref QuestSequence reference20 = ref span8[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -95764,21 +113714,27 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj14.Steps = list30; reference20 = obj14; - ref QuestSequence reference21 = ref span8[3]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1000473u, new Vector3(-44.14441f, 0.74388826f, -32.88324f), 148); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000473u, new Vector3(-44.14441f, 0.74388826f, -32.88324f), 148); obj15.Steps = list31; reference21 = obj15; - ref QuestSequence reference22 = ref span8[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -95786,21 +113742,27 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj16.Steps = list32; reference22 = obj16; - ref QuestSequence reference23 = ref span8[5]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj17.Steps = list33; reference23 = obj17; - ref QuestSequence reference24 = ref span8[6]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 6 @@ -95808,24 +113770,30 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1009569u, new Vector3(-56.10742f, -0.020424694f, 28.54956f), 148) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009569u, new Vector3(-56.10742f, -0.020424694f, 28.54956f), 148) { StopDistance = 7f }; obj18.Steps = list34; reference24 = obj18; - ref QuestSequence reference25 = ref span8[7]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj19.Steps = list35; reference25 = obj19; - ref QuestSequence reference26 = ref span8[8]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -95833,7 +113801,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj20.Steps = list36; reference26 = obj20; questRoot5.QuestSequence = list22; @@ -95843,24 +113813,30 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; questRoot6.Author = list37; - num = 2; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span15 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference27 = ref span15[0]; + index = 2; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); obj21.Steps = list39; reference27 = obj21; - ref QuestSequence reference28 = ref span15[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -95868,7 +113844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009152u, new Vector3(-74.47931f, -0.50372624f, 3.250122f), 132) + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009152u, new Vector3(-74.47931f, -0.50372624f, 3.250122f), 132) { NextQuestId = new QuestId(2119) }; @@ -95881,24 +113859,30 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot7.Author = list41; - num = 2; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span16 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference29 = ref span16[0]; + index = 2; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); obj23.Steps = list43; reference29 = obj23; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -95906,7 +113890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) { NextQuestId = new QuestId(2119) }; @@ -95919,24 +113905,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot8.Author = list45; - num = 2; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span17 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference31 = ref span17[0]; + index = 2; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001634u, new Vector3(-130.93768f, 4.0999947f, -91.02008f), 130); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001634u, new Vector3(-130.93768f, 4.0999947f, -91.02008f), 130); obj25.Steps = list47; reference31 = obj25; - ref QuestSequence reference32 = ref span17[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -95944,7 +113936,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001379u, new Vector3(-153.55157f, 4.10972f, -94.04144f), 130) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001379u, new Vector3(-153.55157f, 4.10972f, -94.04144f), 130) { NextQuestId = new QuestId(2119) }; @@ -95957,21 +113951,26 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "Censored"; questRoot9.Author = list49; - num = 4; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span18 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span18[0]; + index = 4; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -95991,7 +113990,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference33 = obj27; - ref QuestSequence reference34 = ref span18[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -95999,41 +113999,51 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span19 = CollectionsMarshal.AsSpan(list52); - span19[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference35 = ref span19[1]; + index2++; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(581.92236f, 282.2539f, -304.58823f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span20 = CollectionsMarshal.AsSpan(list53); - ref ComplexCombatData reference36 = ref span20[0]; + num4 = 2; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span7 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + ref ComplexCombatData reference36 = ref span7[num3]; ComplexCombatData obj30 = new ComplexCombatData { DataId = 45u, MinimumKillCount = 1u }; - int num4 = 6; - List list54 = new List(num4); - CollectionsMarshal.SetCount(list54, num4); - Span span21 = CollectionsMarshal.AsSpan(list54); - span21[0] = null; - span21[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + int num5 = 6; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + span6 = CollectionsMarshal.AsSpan(list54); + int num6 = 0; + span6[num6] = null; + num6++; + span6[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; + num6++; + span6[num6] = null; obj30.CompletionQuestVariablesFlags = list54; reference36 = obj30; - span20[1] = new ComplexCombatData + num3++; + span7[num3] = new ComplexCombatData { DataId = 3241u, MinimumKillCount = 1u @@ -96049,21 +114059,25 @@ public static class AssemblyQuestLoader reference35 = obj29; obj28.Steps = list52; reference34 = obj28; - ref QuestSequence reference37 = ref span18[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj31.Steps = list55; reference37 = obj31; - ref QuestSequence reference38 = ref span18[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -96071,8 +114085,9 @@ public static class AssemblyQuestLoader num2 = 2; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span22 = CollectionsMarshal.AsSpan(list56); - span22[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8125u, ItemCount = 2, @@ -96084,7 +114099,8 @@ public static class AssemblyQuestLoader } } }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96111,21 +114127,26 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "Censored"; questRoot10.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span23 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference39 = ref span23[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96145,7 +114166,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list59; reference39 = obj33; - ref QuestSequence reference40 = ref span23[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -96153,8 +114175,9 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span24 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference41 = ref span24[0]; + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2004490u, new Vector3(596.704f, 303.5476f, -89.982544f), 155) { Fly = true, @@ -96171,47 +114194,65 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span25 = CollectionsMarshal.AsSpan(list61); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list61); + 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); obj35.CompletionQuestVariablesFlags = list61; reference41 = obj35; - ref QuestStep reference42 = ref span24[1]; + index2++; + ref QuestStep reference42 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2004491u, new Vector3(638.239f, 304.7379f, -93.888794f), 155); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span26 = CollectionsMarshal.AsSpan(list62); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span6 = CollectionsMarshal.AsSpan(list62); + 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); questStep7.CompletionQuestVariablesFlags = list62; reference42 = questStep7; - span24[2] = new QuestStep(EInteractionType.Interact, 2004492u, new Vector3(618.95166f, 301.13672f, -43.47296f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004492u, new Vector3(618.95166f, 301.13672f, -43.47296f), 155); obj34.Steps = list60; reference40 = obj34; - ref QuestSequence reference43 = ref span23[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj36.Steps = list63; reference43 = obj36; - ref QuestSequence reference44 = ref span23[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -96219,8 +114260,9 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span27 = CollectionsMarshal.AsSpan(list64); - span27[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8126u, ItemCount = 1, @@ -96232,7 +114274,8 @@ public static class AssemblyQuestLoader } } }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96259,21 +114302,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "Censored"; questRoot11.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span28 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference45 = ref span28[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96293,7 +114341,8 @@ public static class AssemblyQuestLoader }; obj38.Steps = list67; reference45 = obj38; - ref QuestSequence reference46 = ref span28[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -96301,7 +114350,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Say, 1009649u, new Vector3(627.8019f, 300.56494f, -16.434021f), 155) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1009649u, new Vector3(627.8019f, 300.56494f, -16.434021f), 155) { Fly = true, Land = true, @@ -96313,21 +114364,25 @@ public static class AssemblyQuestLoader }; obj39.Steps = list68; reference46 = obj39; - ref QuestSequence reference47 = ref span28[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj40.Steps = list69; reference47 = obj40; - ref QuestSequence reference48 = ref span28[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -96335,8 +114390,9 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span29 = CollectionsMarshal.AsSpan(list70); - span29[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8127u, ItemCount = 2, @@ -96348,7 +114404,8 @@ public static class AssemblyQuestLoader } } }; - span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96375,21 +114432,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot12.Author = list71; - num = 6; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span30 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference49 = ref span30[0]; + index = 6; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96402,7 +114464,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list73; reference49 = obj42; - ref QuestSequence reference50 = ref span30[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -96410,8 +114473,9 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span31 = CollectionsMarshal.AsSpan(list74); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -96423,24 +114487,29 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj43.Steps = list74; reference50 = obj43; - ref QuestSequence reference51 = ref span30[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj44.Steps = list75; reference51 = obj44; - ref QuestSequence reference52 = ref span30[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -96448,22 +114517,27 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2004573u, new Vector3(36.545288f, -3.7080078f, 225.7572f), 152) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004573u, new Vector3(36.545288f, -3.7080078f, 225.7572f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj45.Steps = list76; reference52 = obj45; - ref QuestSequence reference53 = ref span30[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-83.15885f, -5.7812023f, 321.49606f), 152) { StopDistance = 0.5f, @@ -96473,14 +114547,17 @@ public static class AssemblyQuestLoader num3 = 2; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span32 = CollectionsMarshal.AsSpan(list78); - span32[0] = 3552u; - span32[1] = 3553u; + Span span8 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span8[num4] = 3552u; + num4++; + span8[num4] = 3553u; obj47.KillEnemyDataIds = list78; reference54 = obj47; obj46.Steps = list77; reference53 = obj46; - ref QuestSequence reference55 = ref span30[5]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -96488,12 +114565,16 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list79)[0]; + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1009721u, new Vector3(-83.36011f, -5.6851597f, 322.43823f), 152); - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + num4 = 1; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span5 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST010_01570_Q1_000_000"), @@ -96511,21 +114592,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; questRoot13.Author = list81; - num = 9; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span33 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference57 = ref span33[0]; + index = 9; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96538,7 +114624,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list83; reference57 = obj49; - ref QuestSequence reference58 = ref span33[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -96546,22 +114633,26 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj50.Steps = list84; reference58 = obj50; - ref QuestSequence reference59 = ref span33[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span34 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference60 = ref span34[0]; + index2 = 2; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180) { StopDistance = 0.5f, @@ -96571,27 +114662,38 @@ public static class AssemblyQuestLoader num3 = 3; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = 2864u; - span35[1] = 2865u; - span35[2] = 2866u; + span8 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span8[num4] = 2864u; + num4++; + span8[num4] = 2865u; + num4++; + span8[num4] = 2866u; obj52.KillEnemyDataIds = list86; - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span36 = CollectionsMarshal.AsSpan(list87); - span36[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + span6 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span6[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; obj52.CompletionQuestVariablesFlags = list87; reference60 = obj52; - span34[1] = new QuestStep(EInteractionType.Interact, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180); obj51.Steps = list85; reference59 = obj51; - ref QuestSequence reference61 = ref span33[3]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 @@ -96599,24 +114701,30 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj53.Steps = list88; reference61 = obj53; - ref QuestSequence reference62 = ref span33[4]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1009729u, new Vector3(-108.72058f, 64.30314f, -220.38611f), 180); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009729u, new Vector3(-108.72058f, 64.30314f, -220.38611f), 180); obj54.Steps = list89; reference62 = obj54; - ref QuestSequence reference63 = ref span33[5]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 5 @@ -96624,24 +114732,30 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1009730u, new Vector3(-145.8305f, 64.83713f, -209.24695f), 180); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009730u, new Vector3(-145.8305f, 64.83713f, -209.24695f), 180); obj55.Steps = list90; reference63 = obj55; - ref QuestSequence reference64 = ref span33[6]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1009732u, new Vector3(-439.59723f, 50.90922f, -319.69183f), 180) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009732u, new Vector3(-439.59723f, 50.90922f, -319.69183f), 180) { Fly = true }; obj56.Steps = list91; reference64 = obj56; - ref QuestSequence reference65 = ref span33[7]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 7 @@ -96649,21 +114763,26 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1009753u, new Vector3(-107.408325f, 64.38365f, -223.62103f), 180) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009753u, new Vector3(-107.408325f, 64.38365f, -223.62103f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj57.Steps = list92; reference65 = obj57; - ref QuestSequence reference66 = ref span33[8]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { NextQuestId = new QuestId(33) }; @@ -96676,13 +114795,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "liza"; questRoot14.Author = list94; - num = 6; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span37 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference67 = ref span37[0]; + index = 6; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -96690,7 +114812,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96703,15 +114827,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list96; reference67 = obj59; - ref QuestSequence reference68 = ref span37[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1000856u, new Vector3(-155.10797f, 4.070978f, 202.71606f), 129) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000856u, new Vector3(-155.10797f, 4.070978f, 202.71606f), 129) { AethernetShortcut = new AethernetShortcut { @@ -96721,7 +114848,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list97; reference68 = obj60; - ref QuestSequence reference69 = ref span37[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -96729,7 +114857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1009733u, new Vector3(-356.31348f, 8.000001f, 49.54602f), 129) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009733u, new Vector3(-356.31348f, 8.000001f, 49.54602f), 129) { AethernetShortcut = new AethernetShortcut { @@ -96739,18 +114869,22 @@ public static class AssemblyQuestLoader }; obj61.Steps = list98; reference69 = obj61; - ref QuestSequence reference70 = ref span37[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 2004568u, new Vector3(-356.31348f, 7.9804688f, 48.90515f), 129); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004568u, new Vector3(-356.31348f, 7.9804688f, 48.90515f), 129); obj62.Steps = list99; reference70 = obj62; - ref QuestSequence reference71 = ref span37[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -96758,7 +114892,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, 2004570u, new Vector3(-83.634705f, 1.9378662f, 826.10803f), 135) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2004570u, new Vector3(-83.634705f, 1.9378662f, 826.10803f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -96766,16 +114902,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list100; reference71 = obj63; - ref QuestSequence reference72 = ref span37[5]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span38 = CollectionsMarshal.AsSpan(list101); - span38[0] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) + index2 = 3; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -96791,12 +114929,14 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262186u) } }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.249344f, 2.1958525f, 826.0164f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.249344f, 2.1958525f, 826.0164f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1009735u, new Vector3(-84.21454f, 1.802455f, 826.5963f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009735u, new Vector3(-84.21454f, 1.802455f, 826.5963f), 135) { NextQuestId = new QuestId(1575) }; @@ -96809,13 +114949,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot15.Author = list102; - num = 5; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span39 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference73 = ref span39[0]; + index = 5; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -96823,7 +114966,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96836,15 +114981,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list104; reference73 = obj65; - ref QuestSequence reference74 = ref span39[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1009739u, new Vector3(-103.83765f, 40f, 113.206665f), 128) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009739u, new Vector3(-103.83765f, 40f, 113.206665f), 128) { AethernetShortcut = new AethernetShortcut { @@ -96854,7 +115002,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list105; reference74 = obj66; - ref QuestSequence reference75 = ref span39[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -96862,22 +115011,26 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj67.Steps = list106; reference75 = obj67; - ref QuestSequence reference76 = ref span39[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span40 = CollectionsMarshal.AsSpan(list107); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -96886,13 +115039,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAlchemist } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) { StopDistance = 7f }; obj68.Steps = list107; reference76 = obj68; - ref QuestSequence reference77 = ref span39[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -96900,7 +115055,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009744u, new Vector3(-47.470886f, 40f, 60.68506f), 128) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009744u, new Vector3(-47.470886f, 40f, 60.68506f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -96919,21 +115076,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; questRoot16.Author = list109; - num = 11; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span41 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference78 = ref span41[0]; + index = 11; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -96951,7 +115113,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list111; reference78 = obj70; - ref QuestSequence reference79 = ref span41[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -96959,8 +115122,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span42 = CollectionsMarshal.AsSpan(list112); - span42[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -96970,19 +115134,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - span42[1] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); obj71.Steps = list112; reference79 = obj71; - ref QuestSequence reference80 = ref span41[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span43 = CollectionsMarshal.AsSpan(list113); - ref QuestStep reference81 = ref span43[0]; + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2004581u, new Vector3(354.72632f, 5.5999756f, -30.167114f), 153) { Fly = true, @@ -96992,21 +115159,30 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 2843u; + span8 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span8[num4] = 2843u; obj73.KillEnemyDataIds = list114; - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span44 = CollectionsMarshal.AsSpan(list115); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + span6 = CollectionsMarshal.AsSpan(list115); + 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); obj73.CompletionQuestVariablesFlags = list115; reference81 = obj73; - ref QuestStep reference82 = ref span43[1]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Combat, 2004582u, new Vector3(343.2821f, 2.4261475f, 8.895996f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -97014,23 +115190,32 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 2843u; + span8 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span8[num4] = 2843u; obj74.KillEnemyDataIds = list116; - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span45 = CollectionsMarshal.AsSpan(list117); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + span6 = CollectionsMarshal.AsSpan(list117); + 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); obj74.CompletionQuestVariablesFlags = list117; reference82 = obj74; obj72.Steps = list113; reference80 = obj72; - ref QuestSequence reference83 = ref span41[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -97038,12 +115223,16 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list118)[0]; + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2004845u, new Vector3(362.50854f, 1.663208f, -18.478699f), 153); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST014_01574_Q1_000_000"), @@ -97053,18 +115242,22 @@ public static class AssemblyQuestLoader reference84 = questStep9; obj75.Steps = list118; reference83 = obj75; - ref QuestSequence reference85 = ref span41[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1009755u, new Vector3(361.19617f, 1.6090399f, -18.448242f), 153); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009755u, new Vector3(361.19617f, 1.6090399f, -18.448242f), 153); obj76.Steps = list120; reference85 = obj76; - ref QuestSequence reference86 = ref span41[5]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -97072,22 +115265,26 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1009756u, new Vector3(377.40137f, 0.37321654f, 119.920654f), 153) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009756u, new Vector3(377.40137f, 0.37321654f, 119.920654f), 153) { Fly = true }; obj77.Steps = list121; reference86 = obj77; - ref QuestSequence reference87 = ref span41[6]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span46 = CollectionsMarshal.AsSpan(list122); - span46[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -97097,10 +115294,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - span46[1] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); obj78.Steps = list122; reference87 = obj78; - ref QuestSequence reference88 = ref span41[7]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 7 @@ -97108,37 +115307,45 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1009758u, new Vector3(-161.24213f, 7.554849f, 107.10303f), 153) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009758u, new Vector3(-161.24213f, 7.554849f, 107.10303f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj79.Steps = list123; reference88 = obj79; - ref QuestSequence reference89 = ref span41[8]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list124)[0]; + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2004846u, new Vector3(-181.44507f, 8.0720215f, 101.27405f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span47 = CollectionsMarshal.AsSpan(list125); - span47[0] = 2863u; - span47[1] = 3558u; + num4 = 2; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + span8 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span8[num3] = 2863u; + num3++; + span8[num3] = 3558u; obj81.KillEnemyDataIds = list125; reference90 = obj81; obj80.Steps = list124; reference89 = obj80; - ref QuestSequence reference91 = ref span41[9]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 9 @@ -97146,21 +115353,26 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) { Fly = true }; obj82.Steps = list126; reference91 = obj82; - ref QuestSequence reference92 = ref span41[10]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) { NextQuestId = new QuestId(1572) }; @@ -97173,13 +115385,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot17.Author = list128; - num = 13; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span48 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference93 = ref span48[0]; + index = 13; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -97187,7 +115402,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97200,21 +115417,25 @@ public static class AssemblyQuestLoader }; obj84.Steps = list130; reference93 = obj84; - ref QuestSequence reference94 = ref span48[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj85.Steps = list131; reference94 = obj85; - ref QuestSequence reference95 = ref span48[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -97222,7 +115443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list132)[0]; + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + ref QuestStep reference96 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(328.4609f, -5.423937f, 266.34305f), 154) { StopDistance = 0.5f, @@ -97232,27 +115455,34 @@ public static class AssemblyQuestLoader num3 = 2; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span49 = CollectionsMarshal.AsSpan(list133); - span49[0] = 3556u; - span49[1] = 3557u; + span8 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span8[num4] = 3556u; + num4++; + span8[num4] = 3557u; obj87.KillEnemyDataIds = list133; reference96 = obj87; obj86.Steps = list132; reference95 = obj86; - ref QuestSequence reference97 = ref span48[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list134)[0]; + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference98 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1010405u, new Vector3(334.73718f, -6.0854516f, 270.74072f), 154); - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + num4 = 1; + List list135 = new List(num4); + CollectionsMarshal.SetCount(list135, num4); + span5 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST015_01575_Q1_000_070"), @@ -97262,7 +115492,8 @@ public static class AssemblyQuestLoader reference98 = questStep10; obj88.Steps = list134; reference97 = obj88; - ref QuestSequence reference99 = ref span48[4]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -97270,27 +115501,33 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1010407u, new Vector3(225.54358f, -25.225279f, 233.56982f), 154) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010407u, new Vector3(225.54358f, -25.225279f, 233.56982f), 154) { Fly = true }; obj89.Steps = list136; reference99 = obj89; - ref QuestSequence reference100 = ref span48[5]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1010408u, new Vector3(47.837036f, -34.920486f, 275.89832f), 154) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010408u, new Vector3(47.837036f, -34.920486f, 275.89832f), 154) { Fly = true }; obj90.Steps = list137; reference100 = obj90; - ref QuestSequence reference101 = ref span48[6]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -97298,26 +115535,32 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154); obj91.Steps = list138; reference101 = obj91; - ref QuestSequence reference102 = ref span48[7]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span50 = CollectionsMarshal.AsSpan(list139); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) + index2 = 2; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) { Fly = true }; - span50[1] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); obj92.Steps = list139; reference102 = obj92; - ref QuestSequence reference103 = ref span48[8]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 8 @@ -97325,27 +115568,33 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { Fly = true }; obj93.Steps = list140; reference103 = obj93; - ref QuestSequence reference104 = ref span48[9]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1010410u, new Vector3(9.567322f, -10.024739f, 22.934265f), 154) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010410u, new Vector3(9.567322f, -10.024739f, 22.934265f), 154) { Fly = true }; obj94.Steps = list141; reference104 = obj94; - ref QuestSequence reference105 = ref span48[10]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 10 @@ -97353,29 +115602,35 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1010509u, new Vector3(63.370728f, -13.485855f, 141.86316f), 154) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010509u, new Vector3(63.370728f, -13.485855f, 141.86316f), 154) { Fly = true }; obj95.Steps = list142; reference105 = obj95; - ref QuestSequence reference106 = ref span48[11]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 11 }; - num2 = 2; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - Span span51 = CollectionsMarshal.AsSpan(list143); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) + index2 = 2; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) { Fly = true }; - span51[1] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); obj96.Steps = list143; reference106 = obj96; - ref QuestSequence reference107 = ref span48[12]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -97383,7 +115638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { Fly = true, NextQuestId = new QuestId(243) @@ -97397,21 +115654,26 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; questRoot18.Author = list145; - num = 9; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span52 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference108 = ref span52[0]; + index = 9; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97424,7 +115686,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list147; reference108 = obj98; - ref QuestSequence reference109 = ref span52[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -97432,26 +115695,31 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj99.Steps = list148; reference109 = obj99; - ref QuestSequence reference110 = ref span52[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span53 = CollectionsMarshal.AsSpan(list149); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.1732f, 27.485052f, -324.7051f), 146) + index2 = 4; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.1732f, 27.485052f, -324.7051f), 146) { Mount = true }; - ref QuestStep reference111 = ref span53[1]; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 2004884u, new Vector3(-64.86609f, -1.5411987f, -69.50488f), 146) { Fly = true @@ -97459,33 +115727,48 @@ public static class AssemblyQuestLoader num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span54 = CollectionsMarshal.AsSpan(list150); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list150); + 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(0, (byte)4, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list150; reference111 = obj101; - ref QuestStep reference112 = ref span53[2]; + num2++; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2004883u, new Vector3(-53.635498f, -1.3886108f, -53.391357f), 146); - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span55 = CollectionsMarshal.AsSpan(list151); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + span6 = CollectionsMarshal.AsSpan(list151); + 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)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list151; reference112 = questStep11; - span53[3] = new QuestStep(EInteractionType.Interact, 2004882u, new Vector3(-69.077576f, -2.1820679f, -32.913757f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004882u, new Vector3(-69.077576f, -2.1820679f, -32.913757f), 146); obj100.Steps = list149; reference110 = obj100; - ref QuestSequence reference113 = ref span52[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -97493,28 +115776,34 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj102.Steps = list152; reference113 = obj102; - ref QuestSequence reference114 = ref span52[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj103.Steps = list153; reference114 = obj103; - ref QuestSequence reference115 = ref span52[5]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 5 @@ -97522,22 +115811,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) { Fly = true }; obj104.Steps = list154; reference115 = obj104; - ref QuestSequence reference116 = ref span52[6]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span56 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference117 = ref span56[0]; + index2 = 2; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -97545,18 +115838,22 @@ public static class AssemblyQuestLoader num3 = 2; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span57 = CollectionsMarshal.AsSpan(list156); - span57[0] = 3554u; - span57[1] = 3555u; + span8 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span8[num4] = 3554u; + num4++; + span8[num4] = 3555u; obj106.KillEnemyDataIds = list156; reference117 = obj106; - span56[1] = new QuestStep(EInteractionType.Interact, 1010417u, new Vector3(-154.37555f, -31.787657f, 244.7699f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010417u, new Vector3(-154.37555f, -31.787657f, 244.7699f), 145) { StopDistance = 5f }; obj105.Steps = list155; reference116 = obj105; - ref QuestSequence reference118 = ref span52[7]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 7 @@ -97564,22 +115861,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj107.Steps = list157; reference118 = obj107; - ref QuestSequence reference119 = ref span52[8]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, NextQuestId = new QuestId(1577) @@ -97593,13 +115895,16 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "liza"; questRoot19.Author = list159; - num = 10; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span58 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference120 = ref span58[0]; + index = 10; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + span2 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -97607,7 +115912,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97620,20 +115927,24 @@ public static class AssemblyQuestLoader }; obj109.Steps = list161; reference120 = obj109; - ref QuestSequence reference121 = ref span58[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span59 = CollectionsMarshal.AsSpan(list162); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-99.05126f, 19.82f, 88.622086f), 129); - span59[1] = new QuestStep(EInteractionType.Interact, 1010419u, new Vector3(-117.84546f, 21.38377f, 83.604126f), 129); + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-99.05126f, 19.82f, 88.622086f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010419u, new Vector3(-117.84546f, 21.38377f, 83.604126f), 129); obj110.Steps = list162; reference121 = obj110; - ref QuestSequence reference122 = ref span58[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -97641,28 +115952,34 @@ public static class AssemblyQuestLoader num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span60 = CollectionsMarshal.AsSpan(list163); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.47176f, 22.179348f, 116.58494f), 129); - span60[1] = new QuestStep(EInteractionType.Interact, 1010420u, new Vector3(-10.208313f, 39.51757f, -1.8463745f), 128); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.47176f, 22.179348f, 116.58494f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010420u, new Vector3(-10.208313f, 39.51757f, -1.8463745f), 128); obj111.Steps = list163; reference122 = obj111; - ref QuestSequence reference123 = ref span58[3]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span61 = CollectionsMarshal.AsSpan(list164); - span61[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - span61[1] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); obj112.Steps = list164; reference123 = obj112; - ref QuestSequence reference124 = ref span58[4]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -97670,21 +115987,27 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1002433u, new Vector3(-6.729248f, 20.333345f, -0.7477417f), 129); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002433u, new Vector3(-6.729248f, 20.333345f, -0.7477417f), 129); obj113.Steps = list165; reference124 = obj113; - ref QuestSequence reference125 = ref span58[5]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); obj114.Steps = list166; reference125 = obj114; - ref QuestSequence reference126 = ref span58[6]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 6 @@ -97692,7 +116015,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129) { AethernetShortcut = new AethernetShortcut { @@ -97702,21 +116027,25 @@ public static class AssemblyQuestLoader }; obj115.Steps = list167; reference126 = obj115; - ref QuestSequence reference127 = ref span58[7]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) { StopDistance = 7f }; obj116.Steps = list168; reference127 = obj116; - ref QuestSequence reference128 = ref span58[8]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 8 @@ -97724,18 +116053,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129); obj117.Steps = list169; reference128 = obj117; - ref QuestSequence reference129 = ref span58[9]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010521u, new Vector3(-184.64948f, 1.9999955f, 201.28174f), 129) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010521u, new Vector3(-184.64948f, 1.9999955f, 201.28174f), 129) { NextQuestId = new QuestId(241) }; @@ -97748,13 +116082,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list171; - num = 6; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span62 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span62[0]; + index = 6; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -97762,24 +116099,30 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010925u, new Vector3(-1.4191895f, 0.014982708f, -0.07635498f), 395) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010925u, new Vector3(-1.4191895f, 0.014982708f, -0.07635498f), 395) { StopDistance = 7f }; obj119.Steps = list173; reference130 = obj119; - ref QuestSequence reference131 = ref span62[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1012308u, new Vector3(-3.1281738f, 0f, 2.822876f), 395); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012308u, new Vector3(-3.1281738f, 0f, 2.822876f), 395); obj120.Steps = list174; reference131 = obj120; - ref QuestSequence reference132 = ref span62[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -97787,24 +116130,29 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span63 = CollectionsMarshal.AsSpan(list175); - span63[0] = new QuestStep(EInteractionType.Interact, 2004781u, new Vector3(-4f, 1.2f, 11f), 395) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2004781u, new Vector3(-4f, 1.2f, 11f), 395) { TargetTerritoryId = (ushort)155 }; - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) { Fly = true }; - ref QuestStep reference133 = ref span63[2]; + index2++; + ref QuestStep reference133 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1012309u, new Vector3(-163.89722f, 304.1538f, -333.05872f), 155) { Fly = true }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice + num4 = 1; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + span5 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA101_01580_SCENE00005_EVENTAREA_WARP_YESNO_TITLE") @@ -97813,22 +116161,27 @@ public static class AssemblyQuestLoader reference133 = obj122; obj121.Steps = list175; reference132 = obj121; - span62[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference134 = ref span62[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1012310u, new Vector3(-10.269409f, 1.2791281f, 83.42102f), 418); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012310u, new Vector3(-10.269409f, 1.2791281f, 83.42102f), 418); obj123.Steps = list177; reference134 = obj123; - ref QuestSequence reference135 = ref span62[5]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -97836,16 +116189,19 @@ public static class AssemblyQuestLoader num2 = 11; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span64 = CollectionsMarshal.AsSpan(list178); - span64[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) { Aetheryte = EAetheryteLocation.Ishgard }; - span64[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardSkysteelManufactory }; - span64[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardBrume, AethernetShortcut = new AethernetShortcut @@ -97854,35 +116210,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Ishgard } }; - span64[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardForgottenKnight }; - span64[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) { TargetTerritoryId = (ushort)419 }; - span64[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardAthenaeumAstrologicum }; - span64[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardTribunal }; - span64[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardSaintReymanaudsCathedral }; - span64[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardJeweledCrozier }; - span64[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardLastVigil }; - span64[10] = new QuestStep(EInteractionType.CompleteQuest, 1012313u, new Vector3(15.609924f, 16.009666f, -6.515625f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012313u, new Vector3(15.609924f, 16.009666f, -6.515625f), 419); obj124.Steps = list178; reference135 = obj124; questRoot20.QuestSequence = list172; @@ -97892,24 +116256,30 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list179; - num = 5; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span65 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference136 = ref span65[0]; + index = 5; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); obj125.Steps = list181; reference136 = obj125; - ref QuestSequence reference137 = ref span65[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -97917,24 +116287,30 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1012316u, new Vector3(12.130859f, 16.009666f, -7.0039062f), 419) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012316u, new Vector3(12.130859f, 16.009666f, -7.0039062f), 419) { StopDistance = 5f }; obj126.Steps = list182; reference137 = obj126; - ref QuestSequence reference138 = ref span65[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012317u, new Vector3(-4.3793945f, 27.753849f, -148.27197f), 419); + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012317u, new Vector3(-4.3793945f, 27.753849f, -148.27197f), 419); obj127.Steps = list183; reference138 = obj127; - ref QuestSequence reference139 = ref span65[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -97942,7 +116318,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -97952,15 +116330,18 @@ public static class AssemblyQuestLoader }; obj128.Steps = list184; reference139 = obj128; - ref QuestSequence reference140 = ref span65[4]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) { AethernetShortcut = new AethernetShortcut { @@ -97977,13 +116358,16 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span66 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference141 = ref span66[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -97991,7 +116375,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -98004,15 +116390,18 @@ public static class AssemblyQuestLoader }; obj130.Steps = list188; reference141 = obj130; - ref QuestSequence reference142 = ref span66[1]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -98022,7 +116411,8 @@ public static class AssemblyQuestLoader }; obj131.Steps = list189; reference142 = obj131; - ref QuestSequence reference143 = ref span66[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -98030,8 +116420,9 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span67 = CollectionsMarshal.AsSpan(list190); - span67[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -98040,18 +116431,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span67[1] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); obj132.Steps = list190; reference143 = obj132; - ref QuestSequence reference144 = ref span66[3]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); obj133.Steps = list191; reference144 = obj133; questRoot22.QuestSequence = list187; @@ -98061,13 +116456,16 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list192; - num = 5; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span68 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference145 = ref span68[0]; + index = 5; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -98075,23 +116473,28 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); obj134.Steps = list194; reference145 = obj134; - ref QuestSequence reference146 = ref span68[1]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span69 = CollectionsMarshal.AsSpan(list195); - span69[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - ref QuestStep reference147 = ref span69[1]; + num2++; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1012331u, new Vector3(-163.43939f, 2.1510596f, -5.508545f), 418) { AethernetShortcut = new AethernetShortcut @@ -98103,7 +116506,9 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA104_01583_SCENE00005_EVENTAREA_WARP_YESNO_TITLE") @@ -98112,11 +116517,13 @@ public static class AssemblyQuestLoader reference147 = obj136; obj135.Steps = list195; reference146 = obj135; - span68[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference148 = ref span68[3]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 @@ -98124,24 +116531,29 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1012333u, new Vector3(481.40686f, 225.00232f, 793.14856f), 397); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012333u, new Vector3(481.40686f, 225.00232f, 793.14856f), 397); obj137.Steps = list197; reference148 = obj137; - ref QuestSequence reference149 = ref span68[4]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span70 = CollectionsMarshal.AsSpan(list198); - span70[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 397) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 397) { StopDistance = 7f, Aetheryte = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397); obj138.Steps = list198; reference149 = obj138; questRoot23.QuestSequence = list193; @@ -98151,13 +116563,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span71 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference150 = ref span71[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -98165,7 +116580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -98178,18 +116595,22 @@ public static class AssemblyQuestLoader }; obj139.Steps = list201; reference150 = obj139; - ref QuestSequence reference151 = ref span71[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj140.Steps = list202; reference151 = obj140; - ref QuestSequence reference152 = ref span71[2]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -98197,84 +116618,114 @@ public static class AssemblyQuestLoader num2 = 3; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span72 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference153 = ref span72[0]; + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2005403u, new Vector3(430.5067f, 225.0027f, 800.9321f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 4376u; + num4 = 1; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + span8 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span8[num3] = 4376u; obj142.KillEnemyDataIds = list204; num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span73 = CollectionsMarshal.AsSpan(list205); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list205); + 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); obj142.CompletionQuestVariablesFlags = list205; reference153 = obj142; - ref QuestStep reference154 = ref span72[1]; + index2++; + ref QuestStep reference154 = ref span3[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, 2005404u, new Vector3(552.39185f, 228.3512f, 725.9784f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 4376u; + num4 = 1; + List list206 = new List(num4); + CollectionsMarshal.SetCount(list206, num4); + span8 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span8[num3] = 4376u; obj143.KillEnemyDataIds = list206; num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span74 = CollectionsMarshal.AsSpan(list207); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list207); + 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)4, 0, EQuestWorkMode.Bitwise); obj143.CompletionQuestVariablesFlags = list207; reference154 = obj143; - ref QuestStep reference155 = ref span72[2]; + index2++; + ref QuestStep reference155 = ref span3[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, 2005405u, new Vector3(421.59143f, 212.69543f, 708.1559f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 4376u; + num4 = 1; + List list208 = new List(num4); + CollectionsMarshal.SetCount(list208, num4); + span8 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span8[num3] = 4376u; obj144.KillEnemyDataIds = list208; num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span75 = CollectionsMarshal.AsSpan(list209); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list209); + 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); obj144.CompletionQuestVariablesFlags = list209; reference155 = obj144; obj141.Steps = list203; reference152 = obj141; - ref QuestSequence reference156 = ref span71[3]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj145.Steps = list210; reference156 = obj145; questRoot24.QuestSequence = list200; @@ -98284,13 +116735,16 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list211; - num = 4; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span76 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference157 = ref span76[0]; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -98298,23 +116752,29 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj146.Steps = list213; reference157 = obj146; - ref QuestSequence reference158 = ref span76[1]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span77 = CollectionsMarshal.AsSpan(list214); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(464.90463f, 203.4332f, 679.09424f), 397); - span77[1] = new QuestStep(EInteractionType.Interact, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + index2 = 2; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(464.90463f, 203.4332f, 679.09424f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj147.Steps = list214; reference158 = obj147; - ref QuestSequence reference159 = ref span76[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -98322,15 +116782,19 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list215)[0]; + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + ref QuestStep reference160 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(462.2118f, 164.57632f, 301.1987f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = new ComplexCombatData + num4 = 1; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + span7 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4803u, RewardItemId = 2001572u, @@ -98340,15 +116804,18 @@ public static class AssemblyQuestLoader reference160 = obj149; obj148.Steps = list215; reference159 = obj148; - ref QuestSequence reference161 = ref span76[3]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj150.Steps = list217; reference161 = obj150; questRoot25.QuestSequence = list212; @@ -98358,13 +116825,16 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list218; - num = 3; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span78 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span78[0]; + index = 3; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -98372,21 +116842,27 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj151.Steps = list220; reference162 = obj151; - ref QuestSequence reference163 = ref span78[1]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1011903u, new Vector3(197.13123f, 189.4263f, 270.61877f), 397); + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011903u, new Vector3(197.13123f, 189.4263f, 270.61877f), 397); obj152.Steps = list221; reference163 = obj152; - ref QuestSequence reference164 = ref span78[2]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -98394,7 +116870,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -98407,21 +116885,26 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list223; - num = 6; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span79 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference165 = ref span79[0]; + index = 6; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -98434,7 +116917,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list225; reference165 = obj154; - ref QuestSequence reference166 = ref span79[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -98442,21 +116926,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1012334u, new Vector3(510.64307f, 217.95148f, 785.2445f), 397); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012334u, new Vector3(510.64307f, 217.95148f, 785.2445f), 397); obj155.Steps = list226; reference166 = obj155; - ref QuestSequence reference167 = ref span79[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1012404u, new Vector3(179.52234f, 161.78215f, 132.73816f), 397); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012404u, new Vector3(179.52234f, 161.78215f, 132.73816f), 397); obj156.Steps = list227; reference167 = obj156; - ref QuestSequence reference168 = ref span79[3]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 @@ -98464,18 +116954,23 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1012338u, new Vector3(354.6654f, 159.5203f, 140.67285f), 397); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012338u, new Vector3(354.6654f, 159.5203f, 140.67285f), 397); obj157.Steps = list228; reference168 = obj157; - ref QuestSequence reference169 = ref span79[4]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list229)[0]; + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, null, new Vector3(81.99244f, 117.19824f, 152.92575f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -98483,15 +116978,19 @@ public static class AssemblyQuestLoader num3 = 3; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span80 = CollectionsMarshal.AsSpan(list230); - span80[0] = 4377u; - span80[1] = 4378u; - span80[2] = 4379u; + span8 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span8[num4] = 4377u; + num4++; + span8[num4] = 4378u; + num4++; + span8[num4] = 4379u; obj159.KillEnemyDataIds = list230; reference170 = obj159; obj158.Steps = list229; reference169 = obj158; - ref QuestSequence reference171 = ref span79[5]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -98499,7 +116998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012340u, new Vector3(81.80359f, 117.19817f, 152.30017f), 397); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012340u, new Vector3(81.80359f, 117.19817f, 152.30017f), 397); obj160.Steps = list231; reference171 = obj160; questRoot27.QuestSequence = list224; @@ -98509,27 +117010,33 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "JerryWester"; questRoot28.Author = list232; - num = 3; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span81 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference172 = ref span81[0]; + index = 3; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012344u, new Vector3(84.18396f, 117.19698f, 150.31653f), 397) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012344u, new Vector3(84.18396f, 117.19698f, 150.31653f), 397) { StopDistance = 7f }; obj161.Steps = list234; reference172 = obj161; - ref QuestSequence reference173 = ref span81[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -98537,7 +117044,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005408u, new Vector3(103.77649f, 102.311646f, -42.404846f), 397) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005408u, new Vector3(103.77649f, 102.311646f, -42.404846f), 397) { Comment = "Walk straight to Gorgagne Mills basement, ignore footprints", SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -98547,15 +117056,18 @@ public static class AssemblyQuestLoader }; obj162.Steps = list235; reference173 = obj162; - ref QuestSequence reference174 = ref span81[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); obj163.Steps = list236; reference174 = obj163; questRoot28.QuestSequence = list233; @@ -98565,13 +117077,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list237); + index = 0; + span[index] = "JerryWester"; questRoot29.Author = list237; - num = 3; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span82 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference175 = ref span82[0]; + index = 3; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + span2 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -98579,24 +117094,30 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); obj164.Steps = list239; reference175 = obj164; - ref QuestSequence reference176 = ref span82[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj165.Steps = list240; reference176 = obj165; - ref QuestSequence reference177 = ref span82[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -98604,8 +117125,9 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span83 = CollectionsMarshal.AsSpan(list241); - span83[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -98615,7 +117137,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); obj166.Steps = list241; reference177 = obj166; questRoot29.QuestSequence = list238; @@ -98625,24 +117148,30 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "JerryWester"; questRoot30.Author = list242; - num = 5; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span84 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference178 = ref span84[0]; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); obj167.Steps = list244; reference178 = obj167; - ref QuestSequence reference179 = ref span84[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -98650,25 +117179,28 @@ public static class AssemblyQuestLoader num2 = 2; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span85 = CollectionsMarshal.AsSpan(list245); - span85[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - ref QuestStep reference180 = ref span85[1]; + index2++; + ref QuestStep reference180 = ref span3[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1012353u, new Vector3(149.7367f, -12.263969f, -7.888916f), 419) { - StopDistance = 5f, AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.IshgardLastVigil, To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - num3 = 1; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - CollectionsMarshal.AsSpan(list246)[0] = new DialogueChoice + num4 = 1; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + span5 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA111_01590_SCENE00007_EVENTAREA_WARP_YESNO_TITLE") @@ -98677,22 +117209,27 @@ public static class AssemblyQuestLoader reference180 = obj169; obj168.Steps = list245; reference179 = obj168; - span84[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference181 = ref span84[3]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1012351u, new Vector3(-731.1971f, -105.26523f, 470.54248f), 401); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012351u, new Vector3(-731.1971f, -105.26523f, 470.54248f), 401); obj170.Steps = list247; reference181 = obj170; - ref QuestSequence reference182 = ref span84[4]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -98700,12 +117237,14 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span86 = CollectionsMarshal.AsSpan(list248); - span86[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) { Aetheryte = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj171.Steps = list248; reference182 = obj171; questRoot30.QuestSequence = list243; @@ -98715,21 +117254,26 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list249); + index = 0; + span[index] = "JerryWester"; questRoot31.Author = list249; - num = 4; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span87 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference183 = ref span87[0]; + index = 4; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + span2 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -98742,7 +117286,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list251; reference183 = obj172; - ref QuestSequence reference184 = ref span87[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -98750,12 +117295,16 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list252)[0]; + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference185 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1012354u, new Vector3(-284.38245f, -185.08519f, 732.2346f), 401); num3 = 1; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA112_01591_Q1_000_000"), @@ -98765,18 +117314,22 @@ public static class AssemblyQuestLoader reference185 = questStep12; obj173.Steps = list252; reference184 = obj173; - ref QuestSequence reference186 = ref span87[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1012355u, new Vector3(-285.11487f, -185.0477f, 735.40857f), 401); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012355u, new Vector3(-285.11487f, -185.0477f, 735.40857f), 401); obj174.Steps = list254; reference186 = obj174; - ref QuestSequence reference187 = ref span87[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -98784,36 +117337,42 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj175.Steps = list255; reference187 = obj175; questRoot31.QuestSequence = list250; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(1592); QuestRoot questRoot32 = new QuestRoot(); - num = 2; + num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - Span span88 = CollectionsMarshal.AsSpan(list256); - span88[0] = "JerryWester"; - span88[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "JerryWester"; questRoot32.Author = list256; - num = 4; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - Span span89 = CollectionsMarshal.AsSpan(list257); - ref QuestSequence reference188 = ref span89[0]; + index = 4; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj176.Steps = list258; reference188 = obj176; - ref QuestSequence reference189 = ref span89[1]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -98821,63 +117380,77 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj177.Steps = list259; reference189 = obj177; - ref QuestSequence reference190 = ref span89[2]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span90 = CollectionsMarshal.AsSpan(list260); - ref QuestStep reference191 = ref span90[0]; + index2 = 3; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference191 = ref span3[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2005409u, new Vector3(-254.65784f, -185.68707f, 662.6841f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span91 = CollectionsMarshal.AsSpan(list261); - span91[0] = 4381u; - span91[1] = 4382u; + num4 = 2; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + span8 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span8[num3] = 4381u; + num3++; + span8[num3] = 4382u; obj179.KillEnemyDataIds = list261; num3 = 6; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span92 = CollectionsMarshal.AsSpan(list262); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list262); + 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); obj179.CompletionQuestVariablesFlags = list262; reference191 = obj179; - ref QuestStep reference192 = ref span90[1]; + num2++; + ref QuestStep reference192 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005411u, new Vector3(-122.78937f, -166.00293f, 646.5095f), 401); - num3 = 6; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span93 = CollectionsMarshal.AsSpan(list263); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + span6 = CollectionsMarshal.AsSpan(list263); + 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); questStep13.CompletionQuestVariablesFlags = list263; reference192 = questStep13; - span90[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.67188f, -136.44162f, 423.856f), 401); - span90[3] = new QuestStep(EInteractionType.None, null, new Vector3(-117.67188f, -136.44162f, 423.856f), 401) - { - DelaySecondsAtStart = 5f, - Comment = "Wait in safe spot for combat to drop" - }; - ref QuestStep reference193 = ref span90[4]; + num2++; + ref QuestStep reference193 = ref span3[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, 2005410u, new Vector3(-81.16278f, -136.98022f, 468.5282f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -98885,25 +117458,34 @@ public static class AssemblyQuestLoader num3 = 2; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span94 = CollectionsMarshal.AsSpan(list264); - span94[0] = 4380u; - span94[1] = 4382u; + span8 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span8[num4] = 4380u; + num4++; + span8[num4] = 4382u; obj180.KillEnemyDataIds = list264; - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span95 = CollectionsMarshal.AsSpan(list265); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + span6 = CollectionsMarshal.AsSpan(list265); + 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); obj180.CompletionQuestVariablesFlags = list265; reference193 = obj180; obj178.Steps = list260; reference190 = obj178; - ref QuestSequence reference194 = ref span89[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -98911,7 +117493,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj181.Steps = list266; reference194 = obj181; questRoot32.QuestSequence = list257; @@ -98921,24 +117505,30 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list267); + index = 0; + span[index] = "JerryWester"; questRoot33.Author = list267; - num = 3; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span96 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference195 = ref span96[0]; + index = 3; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + span2 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj182.Steps = list269; reference195 = obj182; - ref QuestSequence reference196 = ref span96[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -98946,8 +117536,9 @@ public static class AssemblyQuestLoader num2 = 6; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span97 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference197 = ref span97[0]; + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + ref QuestStep reference197 = ref span3[index2]; QuestStep obj184 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-343.27975f, -169.12419f, 800.5701f), 401) { Mount = true @@ -98957,39 +117548,53 @@ public static class AssemblyQuestLoader num3 = 6; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span98 = CollectionsMarshal.AsSpan(list271); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list271); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list271; skipConditions4.StepIf = skipStepConditions4; obj184.SkipConditions = skipConditions4; reference197 = obj184; - ref QuestStep reference198 = ref span97[1]; + index2++; + ref QuestStep reference198 = ref span3[index2]; QuestStep obj185 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-325.61444f, -184.8876f, 806.3595f), 401) { DisableNavmesh = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span99 = CollectionsMarshal.AsSpan(list272); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list272 = new List(num4); + CollectionsMarshal.SetCount(list272, num4); + span6 = CollectionsMarshal.AsSpan(list272); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list272; skipConditions5.StepIf = skipStepConditions5; obj185.SkipConditions = skipConditions5; reference198 = obj185; - ref QuestStep reference199 = ref span97[2]; + index2++; + ref QuestStep reference199 = ref span3[index2]; QuestStep obj186 = new QuestStep(EInteractionType.Emote, 1013498u, new Vector3(-293.04956f, -183.73486f, 812.6802f), 401) { Emote = EEmote.Psych @@ -98997,34 +117602,49 @@ public static class AssemblyQuestLoader num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span100 = CollectionsMarshal.AsSpan(list273); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list273); + 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); obj186.CompletionQuestVariablesFlags = list273; reference199 = obj186; - span97[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.08698f, -185.05266f, 792.836f), 401); - ref QuestStep reference200 = ref span97[4]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.08698f, -185.05266f, 792.836f), 401); + index2++; + ref QuestStep reference200 = ref span3[index2]; QuestStep obj187 = new QuestStep(EInteractionType.Emote, 1012360u, new Vector3(-337.75842f, -186.07346f, 618.55493f), 401) { Emote = EEmote.Psych }; - num3 = 6; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - Span span101 = CollectionsMarshal.AsSpan(list274); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list274 = new List(num4); + CollectionsMarshal.SetCount(list274, num4); + span6 = CollectionsMarshal.AsSpan(list274); + 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); obj187.CompletionQuestVariablesFlags = list274; reference200 = obj187; - ref QuestStep reference201 = ref span97[5]; + index2++; + ref QuestStep reference201 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Emote, 1012359u, new Vector3(-260.91406f, -184.91077f, 705.4092f), 401) { Emote = EEmote.Psych @@ -99032,26 +117652,35 @@ public static class AssemblyQuestLoader num3 = 6; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - Span span102 = CollectionsMarshal.AsSpan(list275); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list275); + 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)4, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list275; reference201 = obj188; obj183.Steps = list270; reference196 = obj183; - ref QuestSequence reference202 = ref span96[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj189.Steps = list276; reference202 = obj189; questRoot33.QuestSequence = list268; @@ -99061,13 +117690,16 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list277); + index = 0; + span[index] = "JerryWester"; questRoot34.Author = list277; - num = 6; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span103 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference203 = ref span103[0]; + index = 6; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + span2 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -99075,21 +117707,27 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj190.Steps = list279; reference203 = obj190; - ref QuestSequence reference204 = ref span103[1]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj191.Steps = list280; reference204 = obj191; - ref QuestSequence reference205 = ref span103[2]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -99097,12 +117735,16 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list281)[0]; + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference206 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1012354u, new Vector3(-284.38245f, -185.08519f, 732.2346f), 401); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = new DialogueChoice + num4 = 1; + List list282 = new List(num4); + CollectionsMarshal.SetCount(list282, num4); + span5 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA115_01594_Q1_000_000"), @@ -99112,18 +117754,22 @@ public static class AssemblyQuestLoader reference206 = questStep14; obj192.Steps = list281; reference205 = obj192; - ref QuestSequence reference207 = ref span103[3]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1012363u, new Vector3(62.546753f, -144.91164f, 527.9469f), 401); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012363u, new Vector3(62.546753f, -144.91164f, 527.9469f), 401); obj193.Steps = list283; reference207 = obj193; - ref QuestSequence reference208 = ref span103[4]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -99131,20 +117777,25 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 2005412u, new Vector3(408.89587f, -124.01007f, 718.5625f), 401); + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005412u, new Vector3(408.89587f, -124.01007f, 718.5625f), 401); obj194.Steps = list284; reference208 = obj194; - ref QuestSequence reference209 = ref span103[5]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span104 = CollectionsMarshal.AsSpan(list285); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.65932f, -147.83772f, 551.8496f), 401); - span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.65932f, -147.83772f, 551.8496f), 401); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); obj195.Steps = list285; reference209 = obj195; questRoot34.QuestSequence = list278; @@ -99154,13 +117805,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "JerryWester"; questRoot35.Author = list286; - num = 5; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span105 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference210 = ref span105[0]; + index = 5; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -99168,21 +117822,27 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); obj196.Steps = list288; reference210 = obj196; - ref QuestSequence reference211 = ref span105[1]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 2005418u, new Vector3(418.4176f, -121.446594f, 630.64f), 401); + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005418u, new Vector3(418.4176f, -121.446594f, 630.64f), 401); obj197.Steps = list289; reference211 = obj197; - ref QuestSequence reference212 = ref span105[2]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -99190,18 +117850,23 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 2005419u, new Vector3(299.82446f, -115.8313f, 424.73486f), 401); + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005419u, new Vector3(299.82446f, -115.8313f, 424.73486f), 401); obj198.Steps = list290; reference212 = obj198; - ref QuestSequence reference213 = ref span105[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012366u, new Vector3(531.18164f, -99.84944f, 349.96558f), 401) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012366u, new Vector3(531.18164f, -99.84944f, 349.96558f), 401) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -99210,7 +117875,8 @@ public static class AssemblyQuestLoader }; obj199.Steps = list291; reference213 = obj199; - ref QuestSequence reference214 = ref span105[4]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue @@ -99218,7 +117884,9 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012367u, new Vector3(-678.2483f, -110.67414f, 481.77307f), 401) + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012367u, new Vector3(-678.2483f, -110.67414f, 481.77307f), 401) { StopDistance = 7f }; @@ -99231,21 +117899,26 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list293); + index = 0; + span[index] = "JerryWester"; questRoot36.Author = list293; - num = 4; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span106 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference215 = ref span106[0]; + index = 4; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + span2 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012368u, new Vector3(-676.7529f, -111.71492f, 487.26624f), 401) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012368u, new Vector3(-676.7529f, -111.71492f, 487.26624f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -99258,7 +117931,8 @@ public static class AssemblyQuestLoader }; obj201.Steps = list295; reference215 = obj201; - ref QuestSequence reference216 = ref span106[1]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 1 @@ -99266,18 +117940,23 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj202.Steps = list296; reference216 = obj202; - ref QuestSequence reference217 = ref span106[2]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1012375u, new Vector3(164.50745f, -12.634913f, -23.178528f), 419) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012375u, new Vector3(164.50745f, -12.634913f, -23.178528f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -99288,7 +117967,8 @@ public static class AssemblyQuestLoader }; obj203.Steps = list297; reference217 = obj203; - ref QuestSequence reference218 = ref span106[3]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue @@ -99296,8 +117976,9 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span107 = CollectionsMarshal.AsSpan(list298); - span107[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -99306,7 +117987,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); obj204.Steps = list298; reference218 = obj204; questRoot36.QuestSequence = list294; @@ -99316,24 +117998,30 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list299); + index = 0; + span[index] = "JerryWester"; questRoot37.Author = list299; - num = 5; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span108 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference219 = ref span108[0]; + index = 5; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + span2 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012377u, new Vector3(5.6915283f, -9.313226E-10f, 5.7526245f), 433); + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012377u, new Vector3(5.6915283f, -9.313226E-10f, 5.7526245f), 433); obj205.Steps = list301; reference219 = obj205; - ref QuestSequence reference220 = ref span108[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 @@ -99341,26 +118029,31 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1012378u, new Vector3(3.5248413f, -9.313226E-10f, 9.018005f), 433) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012378u, new Vector3(3.5248413f, -9.313226E-10f, 9.018005f), 433) { StopDistance = 5f }; obj206.Steps = list302; reference220 = obj206; - ref QuestSequence reference221 = ref span108[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span109 = CollectionsMarshal.AsSpan(list303); - span109[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - span109[1] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AethernetShortcut = new AethernetShortcut { @@ -99370,7 +118063,8 @@ public static class AssemblyQuestLoader }; obj207.Steps = list303; reference221 = obj207; - ref QuestSequence reference222 = ref span108[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -99378,7 +118072,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419) + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419) { AethernetShortcut = new AethernetShortcut { @@ -99392,15 +118088,18 @@ public static class AssemblyQuestLoader }; obj208.Steps = list304; reference222 = obj208; - ref QuestSequence reference223 = ref span108[4]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); obj209.Steps = list305; reference223 = obj209; questRoot37.QuestSequence = list300; @@ -99410,13 +118109,16 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "JerryWester"; questRoot38.Author = list306; - num = 4; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span110 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference224 = ref span110[0]; + index = 4; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -99424,19 +118126,23 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); obj210.Steps = list308; reference224 = obj210; - ref QuestSequence reference225 = ref span110[1]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span111 = CollectionsMarshal.AsSpan(list309); - span111[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -99445,10 +118151,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span111[1] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); obj211.Steps = list309; reference225 = obj211; - ref QuestSequence reference226 = ref span110[2]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 @@ -99456,28 +118164,33 @@ public static class AssemblyQuestLoader num2 = 2; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span112 = CollectionsMarshal.AsSpan(list310); - span112[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - span112[1] = new QuestStep(EInteractionType.Interact, 1012386u, new Vector3(6.149353f, 42.34489f, -208.39252f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012386u, new Vector3(6.149353f, 42.34489f, -208.39252f), 419); obj212.Steps = list310; reference226 = obj212; - ref QuestSequence reference227 = ref span110[3]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - Span span113 = CollectionsMarshal.AsSpan(list311); - span113[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433 }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); obj213.Steps = list311; reference227 = obj213; questRoot38.QuestSequence = list307; @@ -99487,13 +118200,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "JerryWester"; questRoot39.Author = list312; - num = 3; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span114 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference228 = ref span114[0]; + index = 3; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -99501,19 +118217,23 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); obj214.Steps = list314; reference228 = obj214; - ref QuestSequence reference229 = ref span114[1]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span115 = CollectionsMarshal.AsSpan(list315); - span115[0] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 2; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -99525,7 +118245,8 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(1748) }; - ref QuestStep reference230 = ref span115[1]; + num2++; + ref QuestStep reference230 = ref span3[num2]; QuestStep obj216 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -99533,7 +118254,9 @@ public static class AssemblyQuestLoader num3 = 1; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - CollectionsMarshal.AsSpan(list316)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list316); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA201_01599_Q1_000_000") @@ -99542,7 +118265,8 @@ public static class AssemblyQuestLoader reference230 = obj216; obj215.Steps = list315; reference229 = obj215; - ref QuestSequence reference231 = ref span114[2]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue @@ -99550,13 +118274,15 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span116 = CollectionsMarshal.AsSpan(list317); - span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.194313f, 50.989883f, -778.7069f), 156) + span3 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.194313f, 50.989883f, -778.7069f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span116[1] = new QuestStep(EInteractionType.CompleteQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); obj217.Steps = list317; reference231 = obj217; questRoot39.QuestSequence = list313; @@ -99570,13 +118296,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -99584,18 +118313,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1013020u, new Vector3(-58.79309f, -21.311453f, -3.982666f), 145) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013020u, new Vector3(-58.79309f, -21.311453f, -3.982666f), 145) { StopDistance = 1f, Fly = true, @@ -99603,7 +118337,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -99611,12 +118346,14 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.91202f, -22.538002f, 386.9863f), 145) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.91202f, -22.538002f, 386.9863f), 145) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.CompleteQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145) { Fly = true }; @@ -99629,24 +118366,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list6; - num = 7; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span3[0]; + index = 7; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span3[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -99654,7 +118397,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.SinglePlayerDuty, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); SinglePlayerDutyOptions obj6 = new SinglePlayerDutyOptions { @@ -99663,28 +118408,35 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = "Will not move into melee range to kill the gate; Alphinaud will kill it after a while"; + span = CollectionsMarshal.AsSpan(list10); + int index3 = 0; + span[index3] = "Will not move into melee range to kill the gate; Alphinaud will kill it after a while"; obj6.Notes = list10; questStep.SinglePlayerDutyOptions = obj6; reference6 = questStep; obj5.Steps = list9; reference5 = obj5; - span3[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference7 = ref span3[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1013071u, new Vector3(-315.2362f, -24.488983f, 419.51624f), 145); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013071u, new Vector3(-315.2362f, -24.488983f, 419.51624f), 145); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -99692,34 +118444,41 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1013031u, new Vector3(-316.2433f, -24.34079f, 424.30762f), 145) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013031u, new Vector3(-316.2433f, -24.34079f, 424.30762f), 145) { StopDistance = 5f }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 3; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span4[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[6]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -99727,7 +118486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list7; @@ -99737,24 +118498,30 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span5 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span5[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -99762,7 +118529,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1014644u, new Vector3(15.854065f, 15.96505f, -0.77819824f), 419) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014644u, new Vector3(15.854065f, 15.96505f, -0.77819824f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -99773,22 +118542,26 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -99796,15 +118569,19 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.CompleteQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) { StopDistance = 5f }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + index3 = 1; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span4 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA301_01602_Q1_000_000"), @@ -99821,27 +118598,33 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span6[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) { StopDistance = 5f }; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -99849,23 +118632,28 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - span7[1] = new QuestStep(EInteractionType.Interact, 1012585u, new Vector3(14.755432f, 16.009666f, -4.0742188f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012585u, new Vector3(14.755432f, 16.009666f, -4.0742188f), 419); obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -99877,7 +118665,9 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA302_01603_SCENE00020_EVENTAREA_WARP_YESNO_TITLE") @@ -99886,7 +118676,8 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference20 = ref span6[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -99894,7 +118685,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) { StopDistance = 7f }; @@ -99907,27 +118700,33 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list29; - num = 7; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span8[0]; + index = 7; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) { StopDistance = 7f }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span8[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -99935,7 +118734,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -99946,31 +118747,23 @@ public static class AssemblyQuestLoader }; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span9 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference24 = ref span9[0]; - QuestStep obj24 = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - SkipConditions skipConditions = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 419; - skipStepConditions.InTerritory = list34; - skipConditions.StepIf = skipStepConditions; - obj24.SkipConditions = skipConditions; - reference24 = obj24; - span9[1] = new QuestStep(EInteractionType.Interact, 1013422u, new Vector3(-97.73407f, 15.233179f, -40.787415f), 418) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013422u, new Vector3(-97.73407f, 15.233179f, -40.787415f), 418) { AethernetShortcut = new AethernetShortcut { @@ -99980,248 +118773,302 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference25 = ref span8[3]; - QuestSequence obj25 = new QuestSequence + num++; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj25.Steps = list35; - reference25 = obj25; - ref QuestSequence reference26 = ref span8[4]; - QuestSequence obj26 = new QuestSequence + obj24.Steps = list34; + reference24 = obj24; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span10 = CollectionsMarshal.AsSpan(list36); - span10[0] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397) + index2 = 4; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397) { PickUpQuestId = new QuestId(1744) }; - span10[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2005536u, new Vector3(402.0293f, 191.51587f, 561.4252f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2005536u, new Vector3(402.0293f, 191.51587f, 561.4252f), 397) { AetherCurrentId = 2818053u }; - span10[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006187u, new Vector3(424.94836f, 164.29382f, -536.9192f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006187u, new Vector3(424.94836f, 164.29382f, -536.9192f), 397) { AetherCurrentId = 2818055u }; - span10[3] = new QuestStep(EInteractionType.Interact, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj26.Steps = list36; - reference26 = obj26; - ref QuestSequence reference27 = ref span8[5]; - QuestSequence obj27 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 5 }; num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { Mount = true }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - ref QuestStep reference28 = ref span11[2]; - QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.6516f, 157.40831f, -546.16815f), 397) + index2++; + ref QuestStep reference27 = ref span3[index2]; + QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.6516f, 157.40831f, -546.16815f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span12 = CollectionsMarshal.AsSpan(list38); - span12[0] = 4383u; - span12[1] = 4384u; - obj28.KillEnemyDataIds = list38; - reference28 = obj28; - obj27.Steps = list37; + index3 = 2; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span5 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span5[num3] = 4383u; + num3++; + span5[num3] = 4384u; + obj27.KillEnemyDataIds = list37; reference27 = obj27; - ref QuestSequence reference29 = ref span8[6]; - QuestSequence obj29 = new QuestSequence + obj26.Steps = list36; + reference26 = obj26; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span13 = CollectionsMarshal.AsSpan(list39); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { Mount = true }; - span13[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { DisableNavmesh = true }; - span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj29.Steps = list39; - reference29 = obj29; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); + obj28.Steps = list38; + reference28 = obj28; questRoot5.QuestSequence = list30; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1605); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "JerryWester"; - questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span14 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span14[0]; - QuestSequence obj30 = new QuestSequence + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "JerryWester"; + questRoot6.Author = list39; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj30.Steps = list42; - reference30 = obj30; - ref QuestSequence reference31 = ref span14[1]; - QuestSequence obj31 = new QuestSequence + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span15 = CollectionsMarshal.AsSpan(list43); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397); - span15[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2 = 5; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - ref QuestStep reference32 = ref span15[2]; + num2++; + ref QuestStep reference31 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005432u, new Vector3(450.85828f, 164.29382f, -544.79285f), 397); num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span16 = CollectionsMarshal.AsSpan(list44); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list44; - reference32 = questStep2; - ref QuestStep reference33 = ref span15[3]; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + Span span6 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list43; + reference31 = questStep2; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005433u, new Vector3(443.50342f, 157.48828f, -559.47205f), 397); + index3 = 6; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + span6 = CollectionsMarshal.AsSpan(list44); + 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); + questStep3.CompletionQuestVariablesFlags = list44; + reference32 = questStep3; + num2++; + ref QuestStep reference33 = ref span3[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005434u, new Vector3(466.7887f, 157.39673f, -540.8561f), 397); num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span17 = CollectionsMarshal.AsSpan(list45); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list45; - reference33 = questStep3; - ref QuestStep reference34 = ref span15[4]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005434u, new Vector3(466.7887f, 157.39673f, -540.8561f), 397); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span18 = CollectionsMarshal.AsSpan(list46); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list46; - reference34 = questStep4; - obj31.Steps = list43; - reference31 = obj31; - ref QuestSequence reference35 = ref span14[2]; - QuestSequence obj32 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list45; + reference33 = questStep4; + obj30.Steps = list42; + reference30 = obj30; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012601u, new Vector3(452.41467f, 157.40831f, -542.8397f), 397); - obj32.Steps = list47; - reference35 = obj32; - questRoot6.QuestSequence = list41; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012601u, new Vector3(452.41467f, 157.40831f, -542.8397f), 397); + obj31.Steps = list46; + reference34 = obj31; + questRoot6.QuestSequence = list40; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(1606); QuestRoot questRoot7 = new QuestRoot(); - num = 2; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span19 = CollectionsMarshal.AsSpan(list48); - span19[0] = "JerryWester"; - span19[1] = "Wigglez"; - questRoot7.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span20 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span20[0]; - QuestSequence obj33 = new QuestSequence + num = 1; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "JerryWester"; + questRoot7.Author = list47; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span2[num]; + QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012600u, new Vector3(451.65173f, 157.40831f, -544.6708f), 397) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012600u, new Vector3(451.65173f, 157.40831f, -544.6708f), 397) { StopDistance = 5f }; - obj33.Steps = list50; - reference36 = obj33; - ref QuestSequence reference37 = ref span20[1]; - QuestSequence obj34 = new QuestSequence + obj32.Steps = list49; + reference35 = obj32; + num++; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span21 = CollectionsMarshal.AsSpan(list51); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.62885f, 200.2377f, 657.9519f), 397) + num2 = 6; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.62885f, 200.2377f, 657.9519f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.38373f, 163.58846f, 239.54294f), 397); - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.53094f, 131.76724f, 200.50333f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.38373f, 163.58846f, 239.54294f), 397); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.53094f, 131.76724f, 200.50333f), 397) { DisableNavmesh = true }; - span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(624.0087f, 117.14958f, 232.29897f), 397); - span21[4] = new QuestStep(EInteractionType.Combat, null, new Vector3(624.0087f, 117.14958f, 232.29897f), 397) - { - DelaySecondsAtStart = 8f, - Comment = "Fight anything needed", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span21[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.8997f, 78.429f, 207.48883f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(595.8404f, 116.82471f, 203.86801f), 397); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.8997f, 78.429f, 207.48883f), 397) { DisableNavmesh = true }; - span21[6] = new QuestStep(EInteractionType.SinglePlayerDuty, 1011905u, new Vector3(617.4868f, 78.429f, 217.30359f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1011905u, new Vector3(617.4868f, 78.429f, 217.30359f), 397) { DisableNavmesh = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -100229,1169 +119076,1361 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj34.Steps = list51; - reference37 = obj34; - ref QuestSequence reference38 = ref span20[2]; - QuestSequence obj35 = new QuestSequence + obj33.Steps = list50; + reference36 = obj33; + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1012604u, new Vector3(620.9657f, 78.42899f, 213.88562f), 397) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012604u, new Vector3(620.9657f, 78.42899f, 213.88562f), 397) { StopDistance = 5f }; - obj35.Steps = list52; - reference38 = obj35; - ref QuestSequence reference39 = ref span20[3]; - QuestSequence obj36 = new QuestSequence + obj34.Steps = list51; + reference37 = obj34; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span22 = CollectionsMarshal.AsSpan(list53); - span22[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006189u, new Vector3(-332.90613f, 126.81775f, -29.953552f), 397) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006189u, new Vector3(-332.90613f, 126.81775f, -29.953552f), 397) { AetherCurrentId = 2818057u }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); - obj36.Steps = list53; - reference39 = obj36; - questRoot7.QuestSequence = list49; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + obj35.Steps = list52; + reference38 = obj35; + questRoot7.QuestSequence = list48; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(1607); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; - questRoot8.Author = list54; - num = 3; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span23 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference40 = ref span23[0]; - QuestSequence obj37 = new QuestSequence + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "JerryWester"; + questRoot8.Author = list53; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012765u, new Vector3(-280.0794f, 127.03028f, 11.9782715f), 397); - obj37.Steps = list56; - reference40 = obj37; - ref QuestSequence reference41 = ref span23[1]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - Span span24 = CollectionsMarshal.AsSpan(list57); - ref QuestStep reference42 = ref span24[0]; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1013435u, new Vector3(-271.04602f, 126.894035f, 8.773865f), 397); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span6 = CollectionsMarshal.AsSpan(list57); + 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); + questStep5.CompletionQuestVariablesFlags = list57; + reference41 = questStep5; + index2++; + ref QuestStep reference42 = ref span3[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013436u, new Vector3(-260.39526f, 126.21859f, -2.822998f), 397); num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span25 = CollectionsMarshal.AsSpan(list58); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list58; - reference42 = questStep5; - ref QuestStep reference43 = ref span24[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013436u, new Vector3(-260.39526f, 126.21859f, -2.822998f), 397); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span26 = CollectionsMarshal.AsSpan(list59); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list59; - reference43 = questStep6; - ref QuestStep reference44 = ref span24[2]; + span6 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list58; + reference42 = questStep6; + index2++; + ref QuestStep reference43 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span27 = CollectionsMarshal.AsSpan(list60); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list60; - reference44 = questStep7; - obj38.Steps = list57; - reference41 = obj38; - ref QuestSequence reference45 = ref span23[2]; - QuestSequence obj39 = new QuestSequence + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + span6 = CollectionsMarshal.AsSpan(list59); + 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); + questStep7.CompletionQuestVariablesFlags = list59; + reference43 = questStep7; + obj37.Steps = list56; + reference40 = obj37; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012283u, new Vector3(-311.14673f, 126.503296f, -6.729248f), 397); - obj39.Steps = list61; - reference45 = obj39; - questRoot8.QuestSequence = list55; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012283u, new Vector3(-311.14673f, 126.503296f, -6.729248f), 397); + obj38.Steps = list60; + reference44 = obj38; + questRoot8.QuestSequence = list54; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1608); QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; - questRoot9.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span28 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference46 = ref span28[0]; - QuestSequence obj40 = new QuestSequence + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "JerryWester"; + questRoot9.Author = list61; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012764u, new Vector3(-307.54565f, 126.63436f, -3.2807007f), 397); - obj40.Steps = list64; - reference46 = obj40; - ref QuestSequence reference47 = ref span28[1]; - QuestSequence obj41 = new QuestSequence + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span29 = CollectionsMarshal.AsSpan(list65); - span29[0] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397) + index2 = 4; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397) { PickUpQuestId = new QuestId(1759) }; - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { PickUpQuestId = new QuestId(1760) }; - span29[2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397) { PickUpQuestId = new QuestId(2111) }; - ref QuestStep reference48 = ref span29[3]; - QuestStep obj42 = new QuestStep(EInteractionType.Combat, null, new Vector3(-365.48965f, 85.44247f, -360.56012f), 397) + num2++; + ref QuestStep reference47 = ref span3[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-365.48965f, 85.44247f, -360.56012f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new ComplexCombatData + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + Span span7 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 3988u, MinimumKillCount = 2u }; - obj42.ComplexCombatData = list66; - reference48 = obj42; - obj41.Steps = list65; + obj41.ComplexCombatData = list65; reference47 = obj41; - ref QuestSequence reference49 = ref span28[2]; - QuestSequence obj43 = new QuestSequence + obj40.Steps = list64; + reference46 = obj40; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span30 = CollectionsMarshal.AsSpan(list67); - span30[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006190u, new Vector3(-660.15106f, 135.51526f, -376.63843f), 397) + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006190u, new Vector3(-660.15106f, 135.51526f, -376.63843f), 397) { AetherCurrentId = 2818058u }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1012670u, new Vector3(-631.9219f, 142.1073f, -322.71307f), 397); - obj43.Steps = list67; - reference49 = obj43; - questRoot9.QuestSequence = list63; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012670u, new Vector3(-631.9219f, 142.1073f, -322.71307f), 397); + obj42.Steps = list66; + reference48 = obj42; + questRoot9.QuestSequence = list62; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(1609); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; - questRoot10.Author = list68; - num = 4; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span31 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference50 = ref span31[0]; - QuestSequence obj44 = new QuestSequence + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "JerryWester"; + questRoot10.Author = list67; + index = 4; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012609u, new Vector3(-688.777f, 121.51788f, -390.49365f), 397); - obj44.Steps = list70; - reference50 = obj44; - ref QuestSequence reference51 = ref span31[1]; - QuestSequence obj45 = new QuestSequence + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-826.9342f, 117.95439f, -642.92413f), 397) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-826.9342f, 117.95439f, -642.92413f), 397) { Fly = true }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.3646f, 117.68303f, -656.6694f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.3646f, 117.68303f, -656.6694f), 397) { TargetTerritoryId = (ushort)398 }; - obj45.Steps = list71; - reference51 = obj45; - ref QuestSequence reference52 = ref span31[2]; - QuestSequence obj46 = new QuestSequence + obj44.Steps = list70; + reference50 = obj44; + num++; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1012612u, new Vector3(801.90735f, -19.788122f, 311.75696f), 398); - obj46.Steps = list72; - reference52 = obj46; - ref QuestSequence reference53 = ref span31[3]; - QuestSequence obj47 = new QuestSequence + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 4; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span33 = CollectionsMarshal.AsSpan(list73); - span33[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006195u, new Vector3(765.0111f, -15.85179f, 289.082f), 398) + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006195u, new Vector3(765.0111f, -15.85179f, 289.082f), 398) { AetherCurrentId = 2818068u }; - span33[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(744.5929f, -34.200893f, 272.8362f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(744.5929f, -34.200893f, 272.8362f), 398) { DisableNavmesh = true, Mount = true }; - span33[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) { Aetheryte = EAetheryteLocation.DravanianForelandsTailfeather }; - span33[3] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); - obj47.Steps = list73; - reference53 = obj47; - questRoot10.QuestSequence = list69; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + obj46.Steps = list72; + reference52 = obj46; + questRoot10.QuestSequence = list68; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(1610); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; - questRoot11.Author = list74; - num = 5; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span34 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference54 = ref span34[0]; - QuestSequence obj48 = new QuestSequence + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "JerryWester"; + questRoot11.Author = list73; + index = 5; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); - obj48.Steps = list76; - reference54 = obj48; - ref QuestSequence reference55 = ref span34[1]; - QuestSequence obj49 = new QuestSequence + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1012615u, new Vector3(468.77234f, -49.89133f, 25.589355f), 398); - obj49.Steps = list77; - reference55 = obj49; - ref QuestSequence reference56 = ref span34[2]; - QuestSequence obj50 = new QuestSequence + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012615u, new Vector3(468.77234f, -49.89133f, 25.589355f), 398); + obj48.Steps = list76; + reference54 = obj48; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span35 = CollectionsMarshal.AsSpan(list78); - span35[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { PickUpQuestId = new QuestId(1771) }; - ref QuestStep reference57 = ref span35[1]; - QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(634.0371f, -40.05916f, -296.1493f), 398) + num2++; + ref QuestStep reference56 = ref span3[num2]; + QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(634.0371f, -40.05916f, -296.1493f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span36 = CollectionsMarshal.AsSpan(list79); - span36[0] = 4367u; - span36[1] = 4368u; - obj51.KillEnemyDataIds = list79; - reference57 = obj51; - obj50.Steps = list78; + index3 = 2; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = 4367u; + num3++; + span5[num3] = 4368u; + obj50.KillEnemyDataIds = list78; reference56 = obj50; - ref QuestSequence reference58 = ref span34[3]; - QuestSequence obj52 = new QuestSequence + obj49.Steps = list77; + reference55 = obj49; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span37 = CollectionsMarshal.AsSpan(list80); - span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006197u, new Vector3(433.52405f, -47.776062f, -286.24402f), 398) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006197u, new Vector3(433.52405f, -47.776062f, -286.24402f), 398) { AetherCurrentId = 2818070u }; - ref QuestStep reference59 = ref span37[1]; - QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.626f, -56.601433f, -258.33804f), 398) + index2++; + ref QuestStep reference58 = ref span3[index2]; + QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.626f, -56.601433f, -258.33804f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span38 = CollectionsMarshal.AsSpan(list81); - span38[0] = 4364u; - span38[1] = 4365u; - obj53.KillEnemyDataIds = list81; - reference59 = obj53; - obj52.Steps = list80; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + span5 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span5[index3] = 4364u; + index3++; + span5[index3] = 4365u; + obj52.KillEnemyDataIds = list80; reference58 = obj52; - ref QuestSequence reference60 = ref span34[4]; - QuestSequence obj54 = new QuestSequence + obj51.Steps = list79; + reference57 = obj51; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list82)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 2005489u, new Vector3(169.604f, -63.24872f, -11.825806f), 398); - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA309_01610_A1_000_000"), Answer = new ExcelRef("TEXT_HEAVNA309_01610_Q1_000_001") }; - questStep8.DialogueChoices = list83; - reference61 = questStep8; - obj54.Steps = list82; - reference60 = obj54; - questRoot11.QuestSequence = list75; + questStep8.DialogueChoices = list82; + reference60 = questStep8; + obj53.Steps = list81; + reference59 = obj53; + questRoot11.QuestSequence = list74; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(1611); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; - questRoot12.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span39 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span39[0]; - QuestSequence obj55 = new QuestSequence + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "JerryWester"; + questRoot12.Author = list83; + index = 5; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012619u, new Vector3(167.25415f, -63.618378f, -9.2317505f), 398) + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012619u, new Vector3(167.25415f, -63.618378f, -9.2317505f), 398) { StopDistance = 7f }; - obj55.Steps = list86; - reference62 = obj55; - ref QuestSequence reference63 = ref span39[1]; - QuestSequence obj56 = new QuestSequence + obj54.Steps = list85; + reference61 = obj54; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 1 }; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj56 = new QuestSequence + { + Sequence = 2 + }; num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1012622u, new Vector3(-178.97314f, -105.59011f, 508.812f), 398); - obj56.Steps = list87; - reference63 = obj56; - ref QuestSequence reference64 = ref span39[2]; - QuestSequence obj57 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list88)[0]; - QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.28185f, -84.46064f, 450.64175f), 398) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; + QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.28185f, -84.46064f, 450.64175f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span40 = CollectionsMarshal.AsSpan(list89); - span40[0] = 4364u; - span40[1] = 4366u; - span40[2] = 4369u; - obj58.KillEnemyDataIds = list89; - reference65 = obj58; - obj57.Steps = list88; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span5 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span5[index3] = 4364u; + index3++; + span5[index3] = 4366u; + index3++; + span5[index3] = 4369u; + obj57.KillEnemyDataIds = list88; reference64 = obj57; - ref QuestSequence reference66 = ref span39[3]; - QuestSequence obj59 = new QuestSequence + obj56.Steps = list87; + reference63 = obj56; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; - QuestStep obj60 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.51865f, -63.319576f, 333.95447f), 398) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; + QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.51865f, -63.319576f, 333.95447f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span41 = CollectionsMarshal.AsSpan(list91); - span41[0] = 4364u; - span41[1] = 4366u; - span41[2] = 4369u; - obj60.KillEnemyDataIds = list91; - reference67 = obj60; - obj59.Steps = list90; + index3 = 3; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span5 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span5[num3] = 4364u; + num3++; + span5[num3] = 4366u; + num3++; + span5[num3] = 4369u; + obj59.KillEnemyDataIds = list90; reference66 = obj59; - ref QuestSequence reference68 = ref span39[4]; - QuestSequence obj61 = new QuestSequence + obj58.Steps = list89; + reference65 = obj58; + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012625u, new Vector3(-212.72601f, -37.574783f, 185.16821f), 398); - obj61.Steps = list92; - reference68 = obj61; - questRoot12.QuestSequence = list85; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012625u, new Vector3(-212.72601f, -37.574783f, 185.16821f), 398); + obj60.Steps = list91; + reference67 = obj60; + questRoot12.QuestSequence = list84; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1612); QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; - questRoot13.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span42 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference69 = ref span42[0]; - QuestSequence obj62 = new QuestSequence + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "JerryWester"; + questRoot13.Author = list92; + index = 4; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012628u, new Vector3(-247.63867f, -30.290216f, 109.391846f), 398); - obj62.Steps = list95; - reference69 = obj62; - ref QuestSequence reference70 = ref span42[1]; - QuestSequence obj63 = new QuestSequence + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span43 = CollectionsMarshal.AsSpan(list96); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) { Aetheryte = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span43[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - obj63.Steps = list96; - reference70 = obj63; - ref QuestSequence reference71 = ref span42[2]; - QuestSequence obj64 = new QuestSequence + obj62.Steps = list95; + reference69 = obj62; + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; - QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.04944f, -65.506195f, 2.676069f), 398) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; + QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.04944f, -65.506195f, 2.676069f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new ComplexCombatData + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + span7 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 4467u, MinimumKillCount = 3u, RewardItemId = 2001580u, RewardItemCount = 3 }; - obj65.ComplexCombatData = list98; - reference72 = obj65; - obj64.Steps = list97; + obj64.ComplexCombatData = list97; reference71 = obj64; - ref QuestSequence reference73 = ref span42[3]; - QuestSequence obj66 = new QuestSequence + obj63.Steps = list96; + reference70 = obj63; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); - obj66.Steps = list99; - reference73 = obj66; - questRoot13.QuestSequence = list94; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); + obj65.Steps = list98; + reference72 = obj65; + questRoot13.QuestSequence = list93; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1613); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; - questRoot14.Author = list100; - num = 3; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span44 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference74 = ref span44[0]; - QuestSequence obj67 = new QuestSequence + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "JerryWester"; + questRoot14.Author = list99; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); - obj67.Steps = list102; - reference74 = obj67; - ref QuestSequence reference75 = ref span44[1]; - QuestSequence obj68 = new QuestSequence + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); + obj66.Steps = list101; + reference73 = obj66; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1012671u, new Vector3(70.725464f, -49.385155f, -151.99518f), 398); - obj68.Steps = list103; - reference75 = obj68; - ref QuestSequence reference76 = ref span44[2]; - QuestSequence obj69 = new QuestSequence + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012671u, new Vector3(70.725464f, -49.385155f, -151.99518f), 398); + obj67.Steps = list102; + reference74 = obj67; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398); - obj69.Steps = list104; - reference76 = obj69; - questRoot14.QuestSequence = list101; + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398); + obj68.Steps = list103; + reference75 = obj68; + questRoot14.QuestSequence = list100; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1614); QuestRoot questRoot15 = new QuestRoot(); - num = 2; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span45 = CollectionsMarshal.AsSpan(list105); - span45[0] = "JerryWester"; - span45[1] = "Wigglez"; - questRoot15.Author = list105; - num = 6; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span46 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference77 = ref span46[0]; - QuestSequence obj70 = new QuestSequence + num = 1; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "JerryWester"; + questRoot15.Author = list104; + index = 6; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list107)[0]; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference77 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1012636u, new Vector3(77.46997f, -49.24018f, -148.97388f), 398); - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span4 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA313_01614_Q1_000_000"), Answer = new ExcelRef("TEXT_HEAVNA313_01614_A1_000_001") }; - questStep9.DialogueChoices = list108; - reference78 = questStep9; - obj70.Steps = list107; - reference77 = obj70; - ref QuestSequence reference79 = ref span46[1]; - QuestSequence obj71 = new QuestSequence + questStep9.DialogueChoices = list107; + reference77 = questStep9; + obj69.Steps = list106; + reference76 = obj69; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span47 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference80 = ref span47[0]; - QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1011930u, new Vector3(81.49841f, -49.21252f, -150.04199f), 398) + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; + QuestStep obj71 = new QuestStep(EInteractionType.Interact, 1011930u, new Vector3(81.49841f, -49.21252f, -150.04199f), 398) { StopDistance = 7f }; num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span48 = CollectionsMarshal.AsSpan(list110); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj72.CompletionQuestVariablesFlags = list110; - reference80 = obj72; - ref QuestStep reference81 = ref span47[1]; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + span6 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj71.CompletionQuestVariablesFlags = list109; + reference79 = obj71; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); - num3 = 6; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span49 = CollectionsMarshal.AsSpan(list111); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list111; - reference81 = questStep10; - ref QuestStep reference82 = ref span47[2]; - QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index3 = 6; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span6 = CollectionsMarshal.AsSpan(list110); + 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); + questStep10.CompletionQuestVariablesFlags = list110; + reference80 = questStep10; + num2++; + ref QuestStep reference81 = ref span3[num2]; + QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 5f }; num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span50 = CollectionsMarshal.AsSpan(list112); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj73.CompletionQuestVariablesFlags = list112; - reference82 = obj73; - obj71.Steps = list109; - reference79 = obj71; - ref QuestSequence reference83 = ref span46[2]; - QuestSequence obj74 = new QuestSequence + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + span6 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj72.CompletionQuestVariablesFlags = list111; + reference81 = obj72; + obj70.Steps = list108; + reference78 = obj70; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398); - obj74.Steps = list113; - reference83 = obj74; - ref QuestSequence reference84 = ref span46[3]; - QuestSequence obj75 = new QuestSequence + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span51 = CollectionsMarshal.AsSpan(list114); - span51[0] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398) + index2 = 3; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398) { PickUpQuestId = new QuestId(1790) }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(320.7925f, -59.45279f, 18.284615f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398) { - Comment = "Safe spot to drop aggro", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NearPosition = new NearPositionCondition - { - Position = new Vector3(320.7925f, -59.45279f, 18.284615f), - MaximumDistance = 5f, - TerritoryId = 398 - } - } - } + Mount = true }; - span51[2] = new QuestStep(EInteractionType.None, null, null, 398) - { - DelaySecondsAtStart = 5f, - Comment = "Wait 5 seconds to ensure aggro is dropped", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NotNearPosition = new NearPositionCondition - { - Position = new Vector3(320.7925f, -59.45279f, 18.284615f), - MaximumDistance = 5f, - TerritoryId = 398 - } - } - } - }; - ref QuestStep reference85 = ref span51[3]; - QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(291.1391f, -64.697876f, -5.7822924f), 398) + num2++; + ref QuestStep reference84 = ref span3[num2]; + QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(291.1391f, -64.697876f, -5.7822924f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new ComplexCombatData + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span7 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4467u, MinimumKillCount = 1u, RewardItemId = 2001579u, RewardItemCount = 1 }; - obj76.ComplexCombatData = list115; - reference85 = obj76; - obj75.Steps = list114; + obj75.ComplexCombatData = list114; reference84 = obj75; - ref QuestSequence reference86 = ref span46[4]; - QuestSequence obj77 = new QuestSequence + obj74.Steps = list113; + reference83 = obj74; + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398); - obj77.Steps = list116; - reference86 = obj77; - ref QuestSequence reference87 = ref span46[5]; - QuestSequence obj78 = new QuestSequence + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); - obj78.Steps = list117; - reference87 = obj78; - questRoot15.QuestSequence = list106; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); + obj77.Steps = list116; + reference86 = obj77; + questRoot15.QuestSequence = list105; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(1615); QuestRoot questRoot16 = new QuestRoot(); - num = 2; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span52 = CollectionsMarshal.AsSpan(list118); - span52[0] = "JerryWester"; - span52[1] = "Wigglez"; - questRoot16.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference88 = ref span53[0]; - QuestSequence obj79 = new QuestSequence + num = 1; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list117; + index = 5; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); - obj79.Steps = list120; - reference88 = obj79; - ref QuestSequence reference89 = ref span53[1]; - QuestSequence obj80 = new QuestSequence + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list121)[0]; - QuestStep obj81 = new QuestStep(EInteractionType.Combat, 1012639u, new Vector3(190.50879f, -118.35855f, 567.7118f), 398) + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398) + { + Mount = true + }; + num2++; + ref QuestStep reference89 = ref span3[num2]; + QuestStep obj80 = new QuestStep(EInteractionType.Combat, 1012639u, new Vector3(190.50879f, -118.35855f, 567.7118f), 398) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 4; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span54 = CollectionsMarshal.AsSpan(list122); - span54[0] = 4364u; - span54[1] = 4366u; - span54[2] = 4369u; - span54[3] = 4370u; - obj81.KillEnemyDataIds = list122; - reference90 = obj81; - obj80.Steps = list121; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + span5 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span5[index3] = 4364u; + index3++; + span5[index3] = 4366u; + index3++; + span5[index3] = 4369u; + index3++; + span5[index3] = 4370u; + obj80.KillEnemyDataIds = list121; reference89 = obj80; - ref QuestSequence reference91 = ref span53[2]; - QuestSequence obj82 = new QuestSequence + obj79.Steps = list120; + reference88 = obj79; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span55 = CollectionsMarshal.AsSpan(list123); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.292f, -117.802765f, 578.33594f), 398) - { - Comment = "Try to avoid combat" - }; - span55[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(256.292f, -117.802765f, 578.33594f), 398) - { - DelaySecondsAtStart = 5f, - Comment = "Fight before interacting with Ysayle", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span55[2] = new QuestStep(EInteractionType.Interact, 1013192u, new Vector3(236.6521f, -118.15404f, 564.4159f), 398); - obj82.Steps = list123; - reference91 = obj82; - ref QuestSequence reference92 = ref span53[3]; - QuestSequence obj83 = new QuestSequence + num2 = 1; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list124)[0]; - QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(263.7836f, -97.12261f, 614.4929f), 398) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference92 = ref span3[num2]; + QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(263.7836f, -97.12261f, 614.4929f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span56 = CollectionsMarshal.AsSpan(list125); - span56[0] = 4385u; - span56[1] = 4386u; - span56[2] = 4387u; - span56[3] = 4388u; - span56[4] = 4389u; - span56[5] = 4390u; - obj84.KillEnemyDataIds = list125; - reference93 = obj84; - obj83.Steps = list124; + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span5 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span5[num3] = 4385u; + num3++; + span5[num3] = 4386u; + num3++; + span5[num3] = 4387u; + num3++; + span5[num3] = 4388u; + num3++; + span5[num3] = 4389u; + num3++; + span5[num3] = 4390u; + obj83.KillEnemyDataIds = list124; reference92 = obj83; - ref QuestSequence reference94 = ref span53[4]; - QuestSequence obj85 = new QuestSequence + obj82.Steps = list123; + reference91 = obj82; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 7; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span57 = CollectionsMarshal.AsSpan(list126); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(387.38608f, -96.33344f, 753.33954f), 398) - { - Comment = "Try to avoid combat" - }; - span57[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(387.93314f, -96.378525f, 753.7759f), 398) - { - DelaySecondsAtStart = 10f, - Comment = "Fight anything needed", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span57[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.45706f, -92.90822f, 718.0504f), 398) - { - Comment = "Move to a safe spot between Aether current and Complete Quest Destination" - }; - span57[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006204u, new Vector3(406.75964f, -89.79938f, 686.6101f), 398) + num2 = 2; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006204u, new Vector3(406.75964f, -89.79938f, 686.6101f), 398) { AetherCurrentId = 2818077u }; - span57[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.45706f, -92.90822f, 718.0504f), 398) - { - Comment = "Move to a safe spot between Aether current and Complete Quest Destination" - }; - span57[5] = new QuestStep(EInteractionType.Combat, null, new Vector3(407.45706f, -92.90822f, 718.0504f), 398) - { - DelaySecondsAtStart = 1f, - Comment = "Fight anything needed", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span57[6] = new QuestStep(EInteractionType.CompleteQuest, 2006423u, new Vector3(394.3694f, -93.98035f, 731.80725f), 398); - obj85.Steps = list126; - reference94 = obj85; - questRoot16.QuestSequence = list119; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2006423u, new Vector3(394.3694f, -93.98035f, 731.80725f), 398); + obj84.Steps = list125; + reference93 = obj84; + questRoot16.QuestSequence = list118; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(1616); QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; - questRoot17.Author = list127; - num = 7; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span58 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference95 = ref span58[0]; - QuestSequence obj86 = new QuestSequence + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "JerryWester"; + questRoot17.Author = list126; + index = 7; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012638u, new Vector3(394.94922f, -93.9111f, 727.5348f), 398); - obj86.Steps = list129; - reference95 = obj86; - ref QuestSequence reference96 = ref span58[1]; - QuestSequence obj87 = new QuestSequence + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-5.6537967f, -0.012253165f, 22.646173f), 462); - obj87.Steps = list130; - reference96 = obj87; - ref QuestSequence reference97 = ref span58[2]; - QuestSequence obj88 = new QuestSequence + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-5.6537967f, -0.012253165f, 22.646173f), 462); + obj86.Steps = list129; + reference95 = obj86; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-17.24303f, 0f, 70.677536f), 462); - obj88.Steps = list131; - reference97 = obj88; - ref QuestSequence reference98 = ref span58[3]; - QuestSequence obj89 = new QuestSequence + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-17.24303f, 0f, 70.677536f), 462); + obj87.Steps = list130; + reference96 = obj87; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 462) + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 462) { DutyOptions = new DutyOptions { ContentFinderConditionId = 86u } }; - obj89.Steps = list132; - reference98 = obj89; - span58[4] = new QuestSequence + obj88.Steps = list131; + reference97 = obj88; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference99 = ref span58[5]; - QuestSequence obj90 = new QuestSequence + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1012656u, new Vector3(-10.940796f, -128.9908f, 728.26733f), 398) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012656u, new Vector3(-10.940796f, -128.9908f, 728.26733f), 398) { StopDistance = 5f }; - obj90.Steps = list133; - reference99 = obj90; - ref QuestSequence reference100 = ref span58[6]; - QuestSequence obj91 = new QuestSequence + obj89.Steps = list132; + reference98 = obj89; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 6; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span59 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference101 = ref span59[0]; - QuestStep obj92 = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference100 = ref span3[index2]; + QuestStep obj91 = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - SkipConditions skipConditions2 = new SkipConditions(); + SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new QuestId(1797); - skipAetheryteCondition.QuestsCompleted = list135; - skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; - obj92.SkipConditions = skipConditions2; - obj92.PickUpQuestId = new QuestId(1797); - reference101 = obj92; - ref QuestStep reference102 = ref span59[1]; - QuestStep obj93 = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) - { - AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine - }; - SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new QuestId(1802); - skipAetheryteCondition2.QuestsCompleted = list136; - skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; - obj93.SkipConditions = skipConditions3; - obj93.PickUpQuestId = new QuestId(1802); - reference102 = obj93; - span59[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.522272f, -32.192017f, -84.3334f), 398) - { - AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine - }; - span59[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.787895f, -30.428743f, -80.12713f), 398) - { - DisableNavmesh = true - }; - span59[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.235865f, -24.754946f, -119.65716f), 398); - span59[5] = new QuestStep(EInteractionType.CompleteQuest, 1014544u, new Vector3(56.351562f, -50.57729f, -142.50409f), 398) - { - DisableNavmesh = true - }; - obj91.Steps = list134; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + Span span8 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span8[index3] = new QuestId(1797); + skipAetheryteCondition.QuestsCompleted = list134; + skipConditions.AetheryteShortcutIf = skipAetheryteCondition; + obj91.SkipConditions = skipConditions; + obj91.PickUpQuestId = new QuestId(1797); reference100 = obj91; - questRoot17.QuestSequence = list128; + index2++; + ref QuestStep reference101 = ref span3[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); + span8 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span8[num3] = new QuestId(1802); + skipAetheryteCondition2.QuestsCompleted = list135; + skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; + obj92.SkipConditions = skipConditions2; + obj92.PickUpQuestId = new QuestId(1802); + reference101 = obj92; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.522272f, -32.192017f, -84.3334f), 398) + { + AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.787895f, -30.428743f, -80.12713f), 398) + { + DisableNavmesh = true + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.235865f, -24.754946f, -119.65716f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014544u, new Vector3(56.351562f, -50.57729f, -142.50409f), 398) + { + DisableNavmesh = true + }; + obj90.Steps = list133; + reference99 = obj90; + questRoot17.QuestSequence = list127; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(1617); QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; - questRoot18.Author = list137; - num = 6; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span60 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span60[0]; - QuestSequence obj94 = new QuestSequence + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "JerryWester"; + questRoot18.Author = list136; + index = 5; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013584u, new Vector3(58.91504f, -50.325172f, -146.95972f), 398) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013584u, new Vector3(58.91504f, -50.325172f, -146.95972f), 398) { StopDistance = 7f }; - obj94.Steps = list139; - reference103 = obj94; - ref QuestSequence reference104 = ref span60[1]; - QuestSequence obj95 = new QuestSequence + obj93.Steps = list138; + reference102 = obj93; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1012657u, new Vector3(-248.64581f, -30.095806f, 102.22009f), 398) + List list139 = new List(num2); + CollectionsMarshal.SetCount(list139, num2); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012657u, new Vector3(-248.64581f, -30.095806f, 102.22009f), 398) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - obj95.Steps = list140; - reference104 = obj95; - ref QuestSequence reference105 = ref span60[2]; - QuestSequence obj96 = new QuestSequence + obj94.Steps = list139; + reference103 = obj94; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span61 = CollectionsMarshal.AsSpan(list141); - span61[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006201u, new Vector3(-480.30823f, -5.996826f, -425.28424f), 398) + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006201u, new Vector3(-480.30823f, -5.996826f, -425.28424f), 398) { AetherCurrentId = 2818074u }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-467.55936f, -11.599176f, -445.6323f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-467.55936f, -11.599176f, -445.6323f), 398) { DisableNavmesh = true, Mount = true }; - span61[2] = new QuestStep(EInteractionType.Interact, 2005448u, new Vector3(-688.38025f, 4.8981323f, -794.88824f), 398); - obj96.Steps = list141; - reference105 = obj96; - ref QuestSequence reference106 = ref span60[3]; - QuestSequence obj97 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Duty, null, null, 398) + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 398) { DutyOptions = new DutyOptions { @@ -101399,160 +120438,200 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 37u } }; - obj97.Steps = list142; - reference106 = obj97; - span60[4] = new QuestSequence - { - Sequence = 4 - }; - ref QuestSequence reference107 = ref span60[5]; - QuestSequence obj98 = new QuestSequence + obj96.Steps = list141; + reference105 = obj96; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); - obj98.Steps = list143; - reference107 = obj98; - questRoot18.QuestSequence = list138; + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); + obj97.Steps = list142; + reference106 = obj97; + questRoot18.QuestSequence = list137; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(1618); QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; - questRoot19.Author = list144; - num = 4; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span62 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference108 = ref span62[0]; - QuestSequence obj99 = new QuestSequence + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "JerryWester"; + questRoot19.Author = list143; + index = 4; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); - obj99.Steps = list146; - reference108 = obj99; - ref QuestSequence reference109 = ref span62[1]; - QuestSequence obj100 = new QuestSequence + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) { Aetheryte = EAetheryteLocation.ChurningMistsMoghome }; - span63[1] = new QuestStep(EInteractionType.Interact, 1013195u, new Vector3(287.55627f, -46.700905f, 663.87415f), 400); - obj100.Steps = list147; - reference109 = obj100; - ref QuestSequence reference110 = ref span62[2]; - QuestSequence obj101 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference111 = ref span64[0]; + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2005451u, new Vector3(379.23242f, -69.44385f, 690.30273f), 400); num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span65 = CollectionsMarshal.AsSpan(list149); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list149; - reference111 = questStep11; - ref QuestStep reference112 = ref span64[1]; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + span6 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list148; + reference110 = questStep11; + index2++; + ref QuestStep reference111 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2005452u, new Vector3(402.0293f, -73.136475f, 668.4214f), 400); + index3 = 6; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + span6 = CollectionsMarshal.AsSpan(list149); + 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); + questStep12.CompletionQuestVariablesFlags = list149; + reference111 = questStep12; + index2++; + ref QuestStep reference112 = ref span3[index2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005450u, new Vector3(405.90515f, -72.58722f, 696.2843f), 400); num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span66 = CollectionsMarshal.AsSpan(list150); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list150; - reference112 = questStep12; - ref QuestStep reference113 = ref span64[2]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005450u, new Vector3(405.90515f, -72.58722f, 696.2843f), 400); - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span67 = CollectionsMarshal.AsSpan(list151); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list151; - reference113 = questStep13; - obj101.Steps = list148; - reference110 = obj101; - ref QuestSequence reference114 = ref span62[3]; - QuestSequence obj102 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list150; + reference112 = questStep13; + obj100.Steps = list147; + reference109 = obj100; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); - obj102.Steps = list152; - reference114 = obj102; - questRoot19.QuestSequence = list145; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); + obj101.Steps = list151; + reference113 = obj101; + questRoot19.QuestSequence = list144; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(1619); QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; - questRoot20.Author = list153; - num = 6; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span68 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference115 = ref span68[0]; - QuestSequence obj103 = new QuestSequence + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "JerryWester"; + questRoot20.Author = list152; + index = 6; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); - obj103.Steps = list155; - reference115 = obj103; - ref QuestSequence reference116 = ref span68[1]; - QuestSequence obj104 = new QuestSequence + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -101561,982 +120640,1238 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj104.Steps = list156; - reference116 = obj104; - ref QuestSequence reference117 = ref span68[2]; - QuestSequence obj105 = new QuestSequence + obj103.Steps = list155; + reference115 = obj103; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list157)[0]; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + ref QuestStep reference117 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span4 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA318_01619_Q1_000_001") }; - questStep14.DialogueChoices = list158; - reference118 = questStep14; - obj105.Steps = list157; - reference117 = obj105; - ref QuestSequence reference119 = ref span68[3]; - QuestSequence obj106 = new QuestSequence + questStep14.DialogueChoices = list157; + reference117 = questStep14; + obj104.Steps = list156; + reference116 = obj104; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133); - obj106.Steps = list159; - reference119 = obj106; - ref QuestSequence reference120 = ref span68[4]; - QuestSequence obj107 = new QuestSequence + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1012667u, new Vector3(369.16138f, -73.9486f, 660.151f), 400) + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012667u, new Vector3(369.16138f, -73.9486f, 660.151f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - obj107.Steps = list160; - reference120 = obj107; - ref QuestSequence reference121 = ref span68[5]; - QuestSequence obj108 = new QuestSequence + obj106.Steps = list159; + reference119 = obj106; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span69 = CollectionsMarshal.AsSpan(list161); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj108.Steps = list161; - reference121 = obj108; - questRoot20.QuestSequence = list154; + obj107.Steps = list160; + reference120 = obj107; + questRoot20.QuestSequence = list153; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(1620); QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; - questRoot21.Author = list162; - num = 3; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span70 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference122 = ref span70[0]; - QuestSequence obj109 = new QuestSequence + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "JerryWester"; + questRoot21.Author = list161; + index = 3; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) { StopDistance = 6.5f }; - obj109.Steps = list164; - reference122 = obj109; - ref QuestSequence reference123 = ref span70[1]; - QuestSequence obj110 = new QuestSequence + obj108.Steps = list163; + reference121 = obj108; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span71 = CollectionsMarshal.AsSpan(list165); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); - ref QuestStep reference124 = ref span71[1]; + index2 = 4; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); + num2++; + ref QuestStep reference123 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2005453u, new Vector3(223.55994f, -38.68164f, 440.63464f), 400); num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span72 = CollectionsMarshal.AsSpan(list166); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list166; - reference124 = questStep15; - ref QuestStep reference125 = ref span71[2]; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + span6 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list165; + reference123 = questStep15; + num2++; + ref QuestStep reference124 = ref span3[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); + span6 = CollectionsMarshal.AsSpan(list166); + 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); + questStep16.CompletionQuestVariablesFlags = list166; + reference124 = questStep16; + num2++; + ref QuestStep reference125 = ref span3[num2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2005454u, new Vector3(339.71155f, -12.466675f, 411.3069f), 400); num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span73 = CollectionsMarshal.AsSpan(list167); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list167; - reference125 = questStep16; - ref QuestStep reference126 = ref span71[3]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2005454u, new Vector3(339.71155f, -12.466675f, 411.3069f), 400); - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span74 = CollectionsMarshal.AsSpan(list168); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list168; - reference126 = questStep17; - obj110.Steps = list165; - reference123 = obj110; - ref QuestSequence reference127 = ref span70[2]; - QuestSequence obj111 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list167; + reference125 = questStep17; + obj109.Steps = list164; + reference122 = obj109; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400); - obj111.Steps = list169; - reference127 = obj111; - questRoot21.QuestSequence = list163; + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400); + obj110.Steps = list168; + reference126 = obj110; + questRoot21.QuestSequence = list162; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(1621); QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "JerryWester"; - questRoot22.Author = list170; - num = 3; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span75 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference128 = ref span75[0]; - QuestSequence obj112 = new QuestSequence + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "JerryWester"; + questRoot22.Author = list169; + index = 3; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); - obj112.Steps = list172; - reference128 = obj112; - ref QuestSequence reference129 = ref span75[1]; - QuestSequence obj113 = new QuestSequence + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span76 = CollectionsMarshal.AsSpan(list173); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.22073f, -74.08917f, 651.4364f), 400) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.22073f, -74.08917f, 651.4364f), 400) { DisableNavmesh = true, Mount = true }; - span76[1] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) { PickUpQuestId = new QuestId(1819) }; - span76[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); - ref QuestStep reference130 = ref span76[3]; - QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(243.81534f, -40.014244f, 443.64566f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); + index2++; + ref QuestStep reference129 = ref span3[index2]; + QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(243.81534f, -40.014244f, 443.64566f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span77 = CollectionsMarshal.AsSpan(list174); - span77[0] = 4483u; - span77[1] = 5053u; - obj114.KillEnemyDataIds = list174; - reference130 = obj114; - obj113.Steps = list173; + index3 = 2; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + span5 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span5[num3] = 4483u; + num3++; + span5[num3] = 5053u; + obj113.KillEnemyDataIds = list173; reference129 = obj113; - ref QuestSequence reference131 = ref span75[2]; - QuestSequence obj115 = new QuestSequence + obj112.Steps = list172; + reference128 = obj112; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); - obj115.Steps = list175; - reference131 = obj115; - questRoot22.QuestSequence = list171; + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); + obj114.Steps = list174; + reference130 = obj114; + questRoot22.QuestSequence = list170; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(1622); QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; - questRoot23.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span78 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference132 = ref span78[0]; - QuestSequence obj116 = new QuestSequence + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; + questRoot23.Author = list175; + index = 5; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400); - obj116.Steps = list178; - reference132 = obj116; - ref QuestSequence reference133 = ref span78[1]; - QuestSequence obj117 = new QuestSequence + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span79 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference134 = ref span79[0]; + index2 = 3; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref QuestStep reference133 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1012081u, new Vector3(364.09546f, -73.26239f, 678.004f), 400); num3 = 6; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span80 = CollectionsMarshal.AsSpan(list180); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list180; - reference134 = questStep18; - ref QuestStep reference135 = ref span79[1]; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + span6 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list179; + reference133 = questStep18; + num2++; + ref QuestStep reference134 = ref span3[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); + span6 = CollectionsMarshal.AsSpan(list180); + 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); + questStep19.CompletionQuestVariablesFlags = list180; + reference134 = questStep19; + num2++; + ref QuestStep reference135 = ref span3[num2]; + QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1012079u, new Vector3(406.75964f, -73.595436f, 702.57104f), 400); num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span81 = CollectionsMarshal.AsSpan(list181); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list181; - reference135 = questStep19; - ref QuestStep reference136 = ref span79[2]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1012079u, new Vector3(406.75964f, -73.595436f, 702.57104f), 400); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span82 = CollectionsMarshal.AsSpan(list182); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list182; - reference136 = questStep20; - obj117.Steps = list179; - reference133 = obj117; - ref QuestSequence reference137 = ref span78[2]; - QuestSequence obj118 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep20.CompletionQuestVariablesFlags = list181; + reference135 = questStep20; + obj116.Steps = list178; + reference132 = obj116; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400); - obj118.Steps = list183; - reference137 = obj118; - ref QuestSequence reference138 = ref span78[3]; - QuestSequence obj119 = new QuestSequence + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span83 = CollectionsMarshal.AsSpan(list184); - span83[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006216u, new Vector3(421.1642f, -43.05859f, 661.7684f), 400) + index2 = 3; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006216u, new Vector3(421.1642f, -43.05859f, 661.7684f), 400) { AetherCurrentId = 2818099u }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.68222f, 2.3181255f, 602.9682f), 400); - span83[2] = new QuestStep(EInteractionType.Interact, 2005456u, new Vector3(261.24963f, 12.436096f, 622.06445f), 400); - obj119.Steps = list184; - reference138 = obj119; - ref QuestSequence reference139 = ref span78[4]; - QuestSequence obj120 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.68222f, 2.3181255f, 602.9682f), 400); + num2++; + span3[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 span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span84 = CollectionsMarshal.AsSpan(list185); - span84[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(343.68805f, 16.317823f, 686.95074f), 400) + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(343.68805f, 16.317823f, 686.95074f), 400) { JumpDestination = new JumpDestination { Position = new Vector3(367.56647f, -73.91838f, 661.2286f) } }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400) { DisableNavmesh = true }; - obj120.Steps = list185; - reference139 = obj120; - questRoot23.QuestSequence = list177; + obj119.Steps = list184; + reference138 = obj119; + questRoot23.QuestSequence = list176; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(1623); QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; - questRoot24.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span85 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference140 = ref span85[0]; - QuestSequence obj121 = new QuestSequence + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "JerryWester"; + questRoot24.Author = list185; + index = 4; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span86 = CollectionsMarshal.AsSpan(list188); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); - span86[1] = new QuestStep(EInteractionType.AcceptQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj121.Steps = list188; - reference140 = obj121; - ref QuestSequence reference141 = ref span85[1]; - QuestSequence obj122 = new QuestSequence + obj120.Steps = list187; + reference139 = obj120; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span87 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference142 = ref span87[0]; + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + ref QuestStep reference141 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1013586u, new Vector3(360.0061f, -73.64376f, 669.58105f), 400); + index3 = 6; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + span6 = CollectionsMarshal.AsSpan(list189); + 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); + questStep21.CompletionQuestVariablesFlags = list189; + reference141 = questStep21; + index2++; + ref QuestStep reference142 = ref span3[index2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1013587u, new Vector3(337.7279f, -74.339264f, 648.00476f), 400); num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span88 = CollectionsMarshal.AsSpan(list190); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list190; - reference142 = questStep21; - ref QuestStep reference143 = ref span87[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1013587u, new Vector3(337.7279f, -74.339264f, 648.00476f), 400); - num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span89 = CollectionsMarshal.AsSpan(list191); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list191; - reference143 = questStep22; - ref QuestStep reference144 = ref span87[2]; + span6 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep22.CompletionQuestVariablesFlags = list190; + reference142 = questStep22; + index2++; + ref QuestStep reference143 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); + index3 = 6; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + span6 = CollectionsMarshal.AsSpan(list191); + 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); + questStep23.CompletionQuestVariablesFlags = list191; + reference143 = questStep23; + index2++; + ref QuestStep reference144 = ref span3[index2]; + QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1013588u, new Vector3(392.08044f, -72.3437f, 655.02405f), 400); num3 = 6; List list192 = new List(num3); CollectionsMarshal.SetCount(list192, num3); - Span span90 = CollectionsMarshal.AsSpan(list192); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list192; - reference144 = questStep23; - ref QuestStep reference145 = ref span87[3]; - QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1013588u, new Vector3(392.08044f, -72.3437f, 655.02405f), 400); - num3 = 6; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span91 = CollectionsMarshal.AsSpan(list193); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list193; - reference145 = questStep24; - ref QuestStep reference146 = ref span87[4]; + span6 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep24.CompletionQuestVariablesFlags = list192; + reference144 = questStep24; + index2++; + ref QuestStep reference145 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1013590u, new Vector3(392.26355f, -72.34358f, 645.1361f), 400); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span92 = CollectionsMarshal.AsSpan(list194); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep25.CompletionQuestVariablesFlags = list194; - reference146 = questStep25; - obj122.Steps = list189; - reference141 = obj122; - ref QuestSequence reference147 = ref span85[2]; - QuestSequence obj123 = new QuestSequence + index3 = 6; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + span6 = CollectionsMarshal.AsSpan(list193); + 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)8, EQuestWorkMode.Bitwise); + questStep25.CompletionQuestVariablesFlags = list193; + reference145 = questStep25; + obj121.Steps = list188; + reference140 = obj121; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span93 = CollectionsMarshal.AsSpan(list195); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.66388f, -74.11696f, 651.47766f), 400) + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.66388f, -74.11696f, 651.47766f), 400) { Mount = true }; - span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); - span93[2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj123.Steps = list195; - reference147 = obj123; - ref QuestSequence reference148 = ref span85[3]; - QuestSequence obj124 = new QuestSequence + obj122.Steps = list194; + reference146 = obj122; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + List list195 = new List(num2); + CollectionsMarshal.SetCount(list195, num2); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) { StopDistance = 7f }; - obj124.Steps = list196; - reference148 = obj124; - questRoot24.QuestSequence = list187; + obj123.Steps = list195; + reference147 = obj123; + questRoot24.QuestSequence = list186; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(1624); QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "JerryWester"; - questRoot25.Author = list197; - num = 4; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span94 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference149 = ref span94[0]; - QuestSequence obj125 = new QuestSequence + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "JerryWester"; + questRoot25.Author = list196; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj125 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) - { - StopDistance = 7f - }; + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); obj125.Steps = list199; reference149 = obj125; - ref QuestSequence reference150 = ref span94[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj126 = new QuestSequence { - Sequence = 1 + Sequence = 2 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); obj126.Steps = list200; reference150 = obj126; - ref QuestSequence reference151 = ref span94[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj127 = new QuestSequence { - Sequence = 2 + Sequence = byte.MaxValue }; num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); obj127.Steps = list201; reference151 = obj127; - ref QuestSequence reference152 = ref span94[3]; - QuestSequence obj128 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); - obj128.Steps = list202; - reference152 = obj128; - questRoot25.QuestSequence = list198; + questRoot25.QuestSequence = list197; AddQuest(questId25, questRoot25); QuestId questId26 = new QuestId(1625); QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "JerryWester"; - questRoot26.Author = list203; - num = 4; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span95 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference153 = ref span95[0]; - QuestSequence obj129 = new QuestSequence + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "JerryWester"; + questRoot26.Author = list202; + index = 4; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj129 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); - obj129.Steps = list205; - reference153 = obj129; - ref QuestSequence reference154 = ref span95[1]; - QuestSequence obj130 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list206)[0]; - QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(305.3146f, -41.478928f, 327.0319f), 400) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + ref QuestStep reference154 = ref span3[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(305.3146f, -41.478928f, 327.0319f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span96 = CollectionsMarshal.AsSpan(list207); - span96[0] = 4487u; - span96[1] = 4490u; - obj131.KillEnemyDataIds = list207; - reference155 = obj131; - obj130.Steps = list206; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + span5 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span5[index3] = 4487u; + index3++; + span5[index3] = 4490u; + obj130.KillEnemyDataIds = list206; reference154 = obj130; - ref QuestSequence reference156 = ref span95[2]; - QuestSequence obj132 = new QuestSequence + obj129.Steps = list205; + reference153 = obj129; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list208)[0]; - QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(208.34923f, -23.294632f, 165.22832f), 400) + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference156 = ref span3[num2]; + QuestStep obj132 = new QuestStep(EInteractionType.Combat, null, new Vector3(208.34923f, -23.294632f, 165.22832f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span97 = CollectionsMarshal.AsSpan(list209); - span97[0] = 4488u; - span97[1] = 4491u; - obj133.KillEnemyDataIds = list209; - reference157 = obj133; - obj132.Steps = list208; + index3 = 2; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span5 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span5[num3] = 4488u; + num3++; + span5[num3] = 4491u; + obj132.KillEnemyDataIds = list208; reference156 = obj132; - ref QuestSequence reference158 = ref span95[3]; - QuestSequence obj134 = new QuestSequence + obj131.Steps = list207; + reference155 = obj131; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span98 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference159 = ref span98[0]; - QuestStep obj135 = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400) + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference158 = ref span3[index2]; + QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new QuestId(1823); - skipAetheryteCondition3.QuestsCompleted = list211; - skipConditions4.AetheryteShortcutIf = skipAetheryteCondition3; - obj135.SkipConditions = skipConditions4; - obj135.PickUpQuestId = new QuestId(1823); - reference159 = obj135; - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); - obj134.Steps = list210; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + span8 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span8[index3] = new QuestId(1823); + skipAetheryteCondition3.QuestsCompleted = list210; + skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; + obj134.SkipConditions = skipConditions3; + obj134.PickUpQuestId = new QuestId(1823); reference158 = obj134; - questRoot26.QuestSequence = list204; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); + obj133.Steps = list209; + reference157 = obj133; + questRoot26.QuestSequence = list203; AddQuest(questId26, questRoot26); QuestId questId27 = new QuestId(1626); QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "JerryWester"; - questRoot27.Author = list212; - num = 4; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span99 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference160 = ref span99[0]; - QuestSequence obj136 = new QuestSequence + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "JerryWester"; + questRoot27.Author = list211; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); - obj136.Steps = list214; - reference160 = obj136; - ref QuestSequence reference161 = ref span99[1]; - QuestSequence obj137 = new QuestSequence + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span100 = CollectionsMarshal.AsSpan(list215); - span100[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006217u, new Vector3(-93.7973f, -6.7597656f, 223.83447f), 400) + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006217u, new Vector3(-93.7973f, -6.7597656f, 223.83447f), 400) { StopDistance = 5f, AetherCurrentId = 2818100u }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-263.82666f, 24.845102f, 446.3256f), 400); - span100[2] = new QuestStep(EInteractionType.Interact, 1012759u, new Vector3(-258.5031f, 30.373112f, 562.27966f), 400); - obj137.Steps = list215; - reference161 = obj137; - ref QuestSequence reference162 = ref span99[2]; - QuestSequence obj138 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-263.82666f, 24.845102f, 446.3256f), 400); + index2++; + span3[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 span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span101 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference163 = ref span101[0]; - QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-233.69716f, -12.69435f, 322.77405f), 400) + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference162 = ref span3[num2]; + QuestStep obj138 = new QuestStep(EInteractionType.Combat, null, new Vector3(-233.69716f, -12.69435f, 322.77405f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list217 = new List(num3); + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + span5 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span5[num3] = 4015u; + obj138.KillEnemyDataIds = list216; + num3 = 6; + List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = 4015u; - obj139.KillEnemyDataIds = list217; - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span102 = CollectionsMarshal.AsSpan(list218); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj139.CompletionQuestVariablesFlags = list218; - reference163 = obj139; - ref QuestStep reference164 = ref span101[1]; - QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(-92.774055f, -5.1304445f, 379.861f), 400) + span6 = CollectionsMarshal.AsSpan(list217); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj138.CompletionQuestVariablesFlags = list217; + reference162 = obj138; + num2++; + ref QuestStep reference163 = ref span3[num2]; + QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-92.774055f, -5.1304445f, 379.861f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = 4015u; - obj140.KillEnemyDataIds = list219; + index3 = 1; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + span5 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span5[num3] = 4015u; + obj139.KillEnemyDataIds = list218; num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span103 = CollectionsMarshal.AsSpan(list220); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj140.CompletionQuestVariablesFlags = list220; - reference164 = obj140; - obj138.Steps = list216; - reference162 = obj138; - ref QuestSequence reference165 = ref span99[3]; - QuestSequence obj141 = new QuestSequence + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + span6 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj139.CompletionQuestVariablesFlags = list219; + reference163 = obj139; + obj137.Steps = list215; + reference161 = obj137; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span104 = CollectionsMarshal.AsSpan(list221); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.59578f, 19.834919f, 438.27606f), 400); - span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1012757u, new Vector3(-261.82965f, 30.373112f, 557.94604f), 400); - obj141.Steps = list221; - reference165 = obj141; - questRoot27.QuestSequence = list213; + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.59578f, 19.834919f, 438.27606f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012757u, new Vector3(-261.82965f, 30.373112f, 557.94604f), 400); + obj140.Steps = list220; + reference164 = obj140; + questRoot27.QuestSequence = list212; AddQuest(questId27, questRoot27); QuestId questId28 = new QuestId(1627); QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "JerryWester"; - questRoot28.Author = list222; - num = 3; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span105 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference166 = ref span105[0]; - QuestSequence obj142 = new QuestSequence + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + span = CollectionsMarshal.AsSpan(list221); + index = 0; + span[index] = "JerryWester"; + questRoot28.Author = list221; + index = 3; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + span2 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012759u, new Vector3(-258.5031f, 30.373112f, 562.27966f), 400); - obj142.Steps = list224; - reference166 = obj142; - ref QuestSequence reference167 = ref span105[1]; - QuestSequence obj143 = new QuestSequence + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 1 }; num2 = 6; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span106 = CollectionsMarshal.AsSpan(list225); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.72092f, 24.054262f, 489.63916f), 400); - span106[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.92142f, 21.75836f, 472.20667f), 400); - span106[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.72092f, 24.054262f, 489.63916f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.92142f, 21.75836f, 472.20667f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) { Aetheryte = EAetheryteLocation.ChurningMistsZenith }; - span106[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-718.6387f, 83.7983f, 241.97528f), 400); - span106[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006218u, new Vector3(-775.26514f, 123.73535f, 243.70178f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-718.6387f, 83.7983f, 241.97528f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006218u, new Vector3(-775.26514f, 123.73535f, 243.70178f), 400) { AetherCurrentId = 2818101u }; - span106[5] = new QuestStep(EInteractionType.Interact, 2005459u, new Vector3(-758.35815f, 123.704834f, 214.49597f), 400); - obj143.Steps = list225; - reference167 = obj143; - ref QuestSequence reference168 = ref span105[2]; - QuestSequence obj144 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) { StopDistance = 7f }; - obj144.Steps = list226; - reference168 = obj144; - questRoot28.QuestSequence = list223; + obj143.Steps = list225; + reference167 = obj143; + questRoot28.QuestSequence = list222; AddQuest(questId28, questRoot28); QuestId questId29 = new QuestId(1628); QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "JerryWester"; - questRoot29.Author = list227; - num = 5; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span107 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference169 = ref span107[0]; - QuestSequence obj145 = new QuestSequence + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "JerryWester"; + questRoot29.Author = list226; + index = 5; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span2 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) { StopDistance = 7f }; - obj145.Steps = list229; - reference169 = obj145; - ref QuestSequence reference170 = ref span107[1]; - QuestSequence obj146 = new QuestSequence + obj144.Steps = list228; + reference168 = obj144; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list230)[0]; - QuestStep obj147 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.00378f, 43.619022f, 403.64548f), 400) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; + QuestStep obj146 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.00378f, 43.619022f, 403.64548f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span108 = CollectionsMarshal.AsSpan(list231); - span108[0] = 4479u; - span108[1] = 4481u; - obj147.KillEnemyDataIds = list231; - reference171 = obj147; - obj146.Steps = list230; + index3 = 2; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + span5 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span5[num3] = 4479u; + num3++; + span5[num3] = 4481u; + obj146.KillEnemyDataIds = list230; reference170 = obj146; - ref QuestSequence reference172 = ref span107[2]; - QuestSequence obj148 = new QuestSequence + obj145.Steps = list229; + reference169 = obj145; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list232)[0]; - QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.1435f, -23.289272f, 177.45946f), 400) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + ref QuestStep reference172 = ref span3[index2]; + QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.1435f, -23.289272f, 177.45946f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - CollectionsMarshal.AsSpan(list233)[0] = 4491u; - obj149.KillEnemyDataIds = list233; - reference173 = obj149; - obj148.Steps = list232; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + span5 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span5[index3] = 4491u; + obj148.KillEnemyDataIds = list232; reference172 = obj148; - ref QuestSequence reference174 = ref span107[3]; - QuestSequence obj150 = new QuestSequence + obj147.Steps = list231; + reference171 = obj147; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span109 = CollectionsMarshal.AsSpan(list234); - span109[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006224u, new Vector3(340.01672f, -25.375793f, -130.54095f), 400) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006224u, new Vector3(340.01672f, -25.375793f, -130.54095f), 400) { AetherCurrentId = 2818107u }; - ref QuestStep reference175 = ref span109[1]; - QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(396.12845f, -29.186422f, -142.568f), 400) + num2++; + ref QuestStep reference174 = ref span3[num2]; + QuestStep obj150 = new QuestStep(EInteractionType.Combat, null, new Vector3(396.12845f, -29.186422f, -142.568f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = 4479u; - obj151.KillEnemyDataIds = list235; - reference175 = obj151; - obj150.Steps = list234; + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + span5 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span5[num3] = 4479u; + obj150.KillEnemyDataIds = list234; reference174 = obj150; - ref QuestSequence reference176 = ref span107[4]; - QuestSequence obj152 = new QuestSequence + obj149.Steps = list233; + reference173 = obj149; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); - obj152.Steps = list236; - reference176 = obj152; - questRoot29.QuestSequence = list228; + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); + obj151.Steps = list235; + reference175 = obj151; + questRoot29.QuestSequence = list227; AddQuest(questId29, questRoot29); QuestId questId30 = new QuestId(1629); QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "JerryWester"; - questRoot30.Author = list237; - num = 5; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span110 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference177 = ref span110[0]; - QuestSequence obj153 = new QuestSequence + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "JerryWester"; + questRoot30.Author = list236; + index = 5; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); - obj153.Steps = list239; - reference177 = obj153; - ref QuestSequence reference178 = ref span110[1]; - QuestSequence obj154 = new QuestSequence + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span111 = CollectionsMarshal.AsSpan(list240); - span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400) { PickUpQuestId = new QuestId(1835) }; - span111[1] = new QuestStep(EInteractionType.Interact, 1012720u, new Vector3(-106.9505f, 15.168516f, -40.60431f), 418) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012720u, new Vector3(-106.9505f, 15.168516f, -40.60431f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -102545,18 +121880,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj154.Steps = list240; - reference178 = obj154; - ref QuestSequence reference179 = ref span110[2]; - QuestSequence obj155 = new QuestSequence + obj153.Steps = list239; + reference177 = obj153; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span112 = CollectionsMarshal.AsSpan(list241); - span112[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -102565,23 +121902,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span112[1] = new QuestStep(EInteractionType.Interact, 1012583u, new Vector3(-2.1210327f, 0.009368893f, -9.567444f), 433); - obj155.Steps = list241; - reference179 = obj155; - ref QuestSequence reference180 = ref span110[3]; - QuestSequence obj156 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span113 = CollectionsMarshal.AsSpan(list242); - span113[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - span113[1] = new QuestStep(EInteractionType.Interact, 1012709u, new Vector3(151.01843f, -12.634913f, -28.671753f), 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012709u, new Vector3(151.01843f, -12.634913f, -28.671753f), 419) { AethernetShortcut = new AethernetShortcut { @@ -102589,17 +121930,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - obj156.Steps = list242; - reference180 = obj156; - ref QuestSequence reference181 = ref span110[4]; - QuestSequence obj157 = new QuestSequence + obj155.Steps = list241; + reference179 = obj155; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012714u, new Vector3(-160.54016f, 16.979584f, -39.96344f), 418) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012714u, new Vector3(-160.54016f, 16.979584f, -39.96344f), 418) { AethernetShortcut = new AethernetShortcut { @@ -102607,160 +121951,194 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj157.Steps = list243; - reference181 = obj157; - questRoot30.QuestSequence = list238; + obj156.Steps = list242; + reference180 = obj156; + questRoot30.QuestSequence = list237; AddQuest(questId30, questRoot30); QuestId questId31 = new QuestId(1630); QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "JerryWester"; - questRoot31.Author = list244; - num = 6; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span114 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference182 = ref span114[0]; - QuestSequence obj158 = new QuestSequence + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + span = CollectionsMarshal.AsSpan(list243); + index = 0; + span[index] = "JerryWester"; + questRoot31.Author = list243; + index = 6; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + span2 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012721u, new Vector3(-162.49341f, 16.979584f, -37.521973f), 418) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012721u, new Vector3(-162.49341f, 16.979584f, -37.521973f), 418) { StopDistance = 7f }; - obj158.Steps = list246; - reference182 = obj158; - ref QuestSequence reference183 = ref span114[1]; - QuestSequence obj159 = new QuestSequence + obj157.Steps = list245; + reference181 = obj157; + num++; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span115 = CollectionsMarshal.AsSpan(list247); - span115[0] = new QuestStep(EInteractionType.UseItem, null, null, 418) + index2 = 3; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 418) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span115[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span115[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - obj159.Steps = list247; - reference183 = obj159; - ref QuestSequence reference184 = ref span114[2]; - QuestSequence obj160 = new QuestSequence + obj158.Steps = list246; + reference182 = obj158; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013154u, new Vector3(-6.881897f, 0f, -3.1281738f), 212) + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013154u, new Vector3(-6.881897f, 0f, -3.1281738f), 212) { StopDistance = 7f }; - obj160.Steps = list248; - reference184 = obj160; - ref QuestSequence reference185 = ref span114[3]; - QuestSequence obj161 = new QuestSequence + obj159.Steps = list247; + reference183 = obj159; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - num2 = 7; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span116 = CollectionsMarshal.AsSpan(list249); - span116[0] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + index2 = 7; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.1446f, 20.88255f, -376.3636f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.1446f, 20.88255f, -376.3636f), 140) { Mount = true }; - span116[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.0186f, 13.983504f, -100.87753f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.0186f, 13.983504f, -100.87753f), 140) { Fly = true }; - span116[3] = new QuestStep(EInteractionType.Interact, 1004019u, new Vector3(-335.9579f, 13.983504f, -99.65674f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004019u, new Vector3(-335.9579f, 13.983504f, -99.65674f), 140) { TargetTerritoryId = (ushort)140 }; - span116[4] = new QuestStep(EInteractionType.Interact, 1002030u, new Vector3(-296.315f, 16.964134f, 334.15735f), 140); - span116[5] = new QuestStep(EInteractionType.Interact, 1002014u, new Vector3(-253.43713f, 33.23899f, 404.04358f), 140); - span116[6] = new QuestStep(EInteractionType.Interact, 1002047u, new Vector3(-223.80408f, 32.90774f, 401.9989f), 140); - obj161.Steps = list249; - reference185 = obj161; - ref QuestSequence reference186 = ref span114[4]; - QuestSequence obj162 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002030u, new Vector3(-296.315f, 16.964134f, 334.15735f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002014u, new Vector3(-253.43713f, 33.23899f, 404.04358f), 140); + num2++; + span3[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 span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span117 = CollectionsMarshal.AsSpan(list250); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-218.33546f, 35.25f, 432.04767f), 140) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-218.33546f, 35.25f, 432.04767f), 140) { Fly = true }; - span117[1] = new QuestStep(EInteractionType.Interact, 1013392u, new Vector3(-207.99579f, 35.249992f, 431.44873f), 140); - obj162.Steps = list250; - reference186 = obj162; - ref QuestSequence reference187 = ref span114[5]; - QuestSequence obj163 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); - obj163.Steps = list251; - reference187 = obj163; - questRoot31.QuestSequence = list245; + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); + obj162.Steps = list250; + reference186 = obj162; + questRoot31.QuestSequence = list244; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(1631); QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "JerryWester"; - questRoot32.Author = list252; - num = 3; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span118 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference188 = ref span118[0]; - QuestSequence obj164 = new QuestSequence + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "JerryWester"; + questRoot32.Author = list251; + index = 3; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + span2 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); - obj164.Steps = list254; - reference188 = obj164; - ref QuestSequence reference189 = ref span118[1]; - QuestSequence obj165 = new QuestSequence + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -102769,114 +122147,136 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj165.Steps = list255; - reference189 = obj165; - ref QuestSequence reference190 = ref span118[2]; - QuestSequence obj166 = new QuestSequence + obj164.Steps = list254; + reference188 = obj164; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) { StopDistance = 5f }; - obj166.Steps = list256; - reference190 = obj166; - questRoot32.QuestSequence = list253; + obj165.Steps = list255; + reference189 = obj165; + questRoot32.QuestSequence = list252; AddQuest(questId32, questRoot32); QuestId questId33 = new QuestId(1632); QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "JerryWester"; - questRoot33.Author = list257; - num = 3; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span119 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference191 = ref span119[0]; - QuestSequence obj167 = new QuestSequence + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "JerryWester"; + questRoot33.Author = list256; + index = 3; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj167 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) - { - StopDistance = 5f - }; - obj167.Steps = list259; - reference191 = obj167; - ref QuestSequence reference192 = ref span119[1]; - QuestSequence obj168 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj168.Steps = list260; - reference192 = obj168; - ref QuestSequence reference193 = ref span119[2]; - QuestSequence obj169 = new QuestSequence + obj167.Steps = list259; + reference191 = obj167; + num++; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) { StopDistance = 5f }; - obj169.Steps = list261; - reference193 = obj169; - questRoot33.QuestSequence = list258; + obj168.Steps = list260; + reference192 = obj168; + questRoot33.QuestSequence = list257; AddQuest(questId33, questRoot33); QuestId questId34 = new QuestId(1633); QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "JerryWester"; - questRoot34.Author = list262; - num = 5; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span120 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference194 = ref span120[0]; - QuestSequence obj170 = new QuestSequence + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "JerryWester"; + questRoot34.Author = list261; + index = 5; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) + List list263 = new List(num2); + CollectionsMarshal.SetCount(list263, num2); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) { StopDistance = 5f }; - obj170.Steps = list264; - reference194 = obj170; - ref QuestSequence reference195 = ref span120[1]; - QuestSequence obj171 = new QuestSequence + obj169.Steps = list263; + reference193 = obj169; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1012717u, new Vector3(-158.80066f, 17.066208f, -56.168518f), 418) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012717u, new Vector3(-158.80066f, 17.066208f, -56.168518f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -102885,18 +122285,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj171.Steps = list265; - reference195 = obj171; - ref QuestSequence reference196 = ref span120[2]; - QuestSequence obj172 = new QuestSequence + obj170.Steps = list264; + reference194 = obj170; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span121 = CollectionsMarshal.AsSpan(list266); - span121[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -102905,28 +122307,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span121[1] = new QuestStep(EInteractionType.Interact, 1012744u, new Vector3(-2.3041382f, -9.313226E-10f, 5.9052124f), 433) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012744u, new Vector3(-2.3041382f, -9.313226E-10f, 5.9052124f), 433) { StopDistance = 5f }; - obj172.Steps = list266; - reference196 = obj172; - ref QuestSequence reference197 = ref span120[3]; - QuestSequence obj173 = new QuestSequence + obj171.Steps = list265; + reference195 = obj171; + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span122 = CollectionsMarshal.AsSpan(list267); - span122[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + index2 = 2; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { StopDistance = 4f, TargetTerritoryId = (ushort)419 }; - ref QuestStep reference198 = ref span122[1]; - QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) + num2++; + ref QuestStep reference197 = ref span3[num2]; + QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut { @@ -102935,61 +122341,74 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + span4 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA332_01633_Q1_000_000") }; - obj174.DialogueChoices = list268; - reference198 = obj174; - obj173.Steps = list267; + obj173.DialogueChoices = list267; reference197 = obj173; - ref QuestSequence reference199 = ref span120[4]; - QuestSequence obj175 = new QuestSequence + obj172.Steps = list266; + reference196 = obj172; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); - obj175.Steps = list269; - reference199 = obj175; - questRoot34.QuestSequence = list263; + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); + obj174.Steps = list268; + reference198 = obj174; + questRoot34.QuestSequence = list262; AddQuest(questId34, questRoot34); QuestId questId35 = new QuestId(1634); QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "JerryWester"; - questRoot35.Author = list270; - num = 5; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span123 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference200 = ref span123[0]; - QuestSequence obj176 = new QuestSequence + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + span = CollectionsMarshal.AsSpan(list269); + index = 0; + span[index] = "JerryWester"; + questRoot35.Author = list269; + index = 5; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + span2 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); - obj176.Steps = list272; - reference200 = obj176; - ref QuestSequence reference201 = ref span123[1]; - QuestSequence obj177 = new QuestSequence + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1013168u, new Vector3(-187.18243f, 15.9939995f, -47.68445f), 418) + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013168u, new Vector3(-187.18243f, 15.9939995f, -47.68445f), 418) { AethernetShortcut = new AethernetShortcut { @@ -102997,17 +122416,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj177.Steps = list273; - reference201 = obj177; - ref QuestSequence reference202 = ref span123[2]; - QuestSequence obj178 = new QuestSequence + obj176.Steps = list272; + reference200 = obj176; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Duty, null, null, 418) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 418) { DutyOptions = new DutyOptions { @@ -103015,158 +122437,188 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 39u } }; - obj178.Steps = list274; - reference202 = obj178; - span123[3] = new QuestSequence + obj177.Steps = list273; + reference201 = obj177; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference203 = ref span123[4]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) { StopDistance = 7f }; - obj179.Steps = list275; - reference203 = obj179; - questRoot35.QuestSequence = list271; + obj178.Steps = list274; + reference202 = obj178; + questRoot35.QuestSequence = list270; AddQuest(questId35, questRoot35); QuestId questId36 = new QuestId(1635); QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "JerryWester"; - questRoot36.Author = list276; - num = 2; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span124 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference204 = ref span124[0]; - QuestSequence obj180 = new QuestSequence + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + span = CollectionsMarshal.AsSpan(list275); + index = 0; + span[index] = "JerryWester"; + questRoot36.Author = list275; + index = 2; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + span2 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference203 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) { StopDistance = 7f }; - obj180.Steps = list278; - reference204 = obj180; - ref QuestSequence reference205 = ref span124[1]; - QuestSequence obj181 = new QuestSequence + obj179.Steps = list277; + reference203 = obj179; + num++; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span125 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference206 = ref span125[0]; - QuestStep obj182 = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400) + List list278 = new List(num2); + CollectionsMarshal.SetCount(list278, num2); + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference205 = ref span3[index2]; + QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - SkipConditions skipConditions5 = new SkipConditions(); + SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = new QuestId(1828); - skipAetheryteCondition4.QuestsCompleted = list280; - skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; - obj182.SkipConditions = skipConditions5; - obj182.PickUpQuestId = new QuestId(1828); - reference206 = obj182; - span125[1] = new QuestStep(EInteractionType.CompleteQuest, 1013172u, new Vector3(-756.0998f, 123.72873f, 214.80127f), 400) + index3 = 1; + List list279 = new List(index3); + CollectionsMarshal.SetCount(list279, index3); + span8 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span8[num3] = new QuestId(1828); + skipAetheryteCondition4.QuestsCompleted = list279; + skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; + obj181.SkipConditions = skipConditions4; + obj181.PickUpQuestId = new QuestId(1828); + reference205 = obj181; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013172u, new Vector3(-756.0998f, 123.72873f, 214.80127f), 400) { Fly = true }; - obj181.Steps = list279; - reference205 = obj181; - questRoot36.QuestSequence = list277; + obj180.Steps = list278; + reference204 = obj180; + questRoot36.QuestSequence = list276; AddQuest(questId36, questRoot36); QuestId questId37 = new QuestId(1636); QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "JerryWester"; - questRoot37.Author = list281; - num = 2; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span126 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference207 = ref span126[0]; - QuestSequence obj183 = new QuestSequence + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "JerryWester"; + questRoot37.Author = list280; + index = 2; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014110u, new Vector3(-753.7194f, 123.572525f, 212.57336f), 400); - obj183.Steps = list283; - reference207 = obj183; - ref QuestSequence reference208 = ref span126[1]; - QuestSequence obj184 = new QuestSequence + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) { StopDistance = 7f }; - obj184.Steps = list284; - reference208 = obj184; - questRoot37.QuestSequence = list282; + obj183.Steps = list283; + reference207 = obj183; + questRoot37.QuestSequence = list281; AddQuest(questId37, questRoot37); QuestId questId38 = new QuestId(1637); QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "JerryWester"; - questRoot38.Author = list285; - num = 3; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span127 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference209 = ref span127[0]; - QuestSequence obj185 = new QuestSequence + List list284 = new List(num); + CollectionsMarshal.SetCount(list284, num); + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "JerryWester"; + questRoot38.Author = list284; + index = 3; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) { StopDistance = 7f }; - obj185.Steps = list287; - reference209 = obj185; - ref QuestSequence reference210 = ref span127[1]; - QuestSequence obj186 = new QuestSequence + obj184.Steps = list286; + reference208 = obj184; + num++; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -103175,58 +122627,69 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - obj186.Steps = list288; - reference210 = obj186; - ref QuestSequence reference211 = ref span127[2]; - QuestSequence obj187 = new QuestSequence + obj185.Steps = list287; + reference209 = obj185; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012753u, new Vector3(2.5787354f, -9.313226E-10f, 7.6447144f), 433) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012753u, new Vector3(2.5787354f, -9.313226E-10f, 7.6447144f), 433) { StopDistance = 5f }; - obj187.Steps = list289; - reference211 = obj187; - questRoot38.QuestSequence = list286; + obj186.Steps = list288; + reference210 = obj186; + questRoot38.QuestSequence = list285; AddQuest(questId38, questRoot38); QuestId questId39 = new QuestId(1638); QuestRoot questRoot39 = new QuestRoot(); num = 1; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "JerryWester"; - questRoot39.Author = list290; - num = 4; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span128 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference212 = ref span128[0]; - QuestSequence obj188 = new QuestSequence + List list289 = new List(num); + CollectionsMarshal.SetCount(list289, num); + span = CollectionsMarshal.AsSpan(list289); + index = 0; + span[index] = "JerryWester"; + questRoot39.Author = list289; + index = 4; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + span2 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012751u, new Vector3(-2.02948f, -9.313226E-10f, 6.362976f), 433) + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012751u, new Vector3(-2.02948f, -9.313226E-10f, 6.362976f), 433) { StopDistance = 7f }; - obj188.Steps = list292; - reference212 = obj188; - ref QuestSequence reference213 = ref span128[1]; - QuestSequence obj189 = new QuestSequence + obj187.Steps = list291; + reference211 = obj187; + num++; + ref QuestSequence reference212 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1013381u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013381u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418) { AethernetShortcut = new AethernetShortcut { @@ -103234,213 +122697,269 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj189.Steps = list293; - reference213 = obj189; - ref QuestSequence reference214 = ref span128[2]; - QuestSequence obj190 = new QuestSequence + obj188.Steps = list292; + reference212 = obj188; + num++; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span129 = CollectionsMarshal.AsSpan(list294); - ref QuestStep reference215 = ref span129[0]; + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference214 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1013342u, new Vector3(36.331665f, -12.020876f, 76.58496f), 418); num3 = 6; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span130 = CollectionsMarshal.AsSpan(list295); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list295; - reference215 = questStep26; - ref QuestStep reference216 = ref span129[1]; + List list294 = new List(num3); + CollectionsMarshal.SetCount(list294, num3); + span6 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep26.CompletionQuestVariablesFlags = list294; + reference214 = questStep26; + index2++; + ref QuestStep reference215 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1013341u, new Vector3(65.72058f, -12.008911f, 78.3551f), 418); + index3 = 6; + List list295 = new List(index3); + CollectionsMarshal.SetCount(list295, index3); + span6 = CollectionsMarshal.AsSpan(list295); + 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); + questStep27.CompletionQuestVariablesFlags = list295; + reference215 = questStep27; + index2++; + ref QuestStep reference216 = ref span3[index2]; + QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span131 = CollectionsMarshal.AsSpan(list296); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep27.CompletionQuestVariablesFlags = list296; - reference216 = questStep27; - ref QuestStep reference217 = ref span129[2]; - QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); - num3 = 6; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span132 = CollectionsMarshal.AsSpan(list297); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep28.CompletionQuestVariablesFlags = list297; - reference217 = questStep28; - obj190.Steps = list294; - reference214 = obj190; - ref QuestSequence reference218 = ref span128[3]; - QuestSequence obj191 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list296); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list296; + reference216 = questStep28; + obj189.Steps = list293; + reference213 = obj189; + num++; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); - obj191.Steps = list298; - reference218 = obj191; - questRoot39.QuestSequence = list291; + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); + obj190.Steps = list297; + reference217 = obj190; + questRoot39.QuestSequence = list290; AddQuest(questId39, questRoot39); QuestId questId40 = new QuestId(1639); QuestRoot questRoot40 = new QuestRoot(); num = 1; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "JerryWester"; - questRoot40.Author = list299; - num = 6; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span133 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference219 = ref span133[0]; - QuestSequence obj192 = new QuestSequence + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + span = CollectionsMarshal.AsSpan(list298); + index = 0; + span[index] = "JerryWester"; + questRoot40.Author = list298; + index = 6; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + span2 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); - obj192.Steps = list301; - reference219 = obj192; - ref QuestSequence reference220 = ref span133[1]; - QuestSequence obj193 = new QuestSequence + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2005551u, new Vector3(38.254395f, -6.820801f, 76.34082f), 418); - obj193.Steps = list302; - reference220 = obj193; - ref QuestSequence reference221 = ref span133[2]; - QuestSequence obj194 = new QuestSequence + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005551u, new Vector3(38.254395f, -6.820801f, 76.34082f), 418); + obj192.Steps = list301; + reference219 = obj192; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 2005550u, new Vector3(84.58069f, -6.9733887f, 81.55945f), 418); - obj194.Steps = list303; - reference221 = obj194; - ref QuestSequence reference222 = ref span133[3]; - QuestSequence obj195 = new QuestSequence + List list302 = new List(num2); + CollectionsMarshal.SetCount(list302, num2); + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005550u, new Vector3(84.58069f, -6.9733887f, 81.55945f), 418); + obj193.Steps = list302; + reference220 = obj193; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1012768u, new Vector3(21.10321f, -12.020914f, 48.41687f), 418) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012768u, new Vector3(21.10321f, -12.020914f, 48.41687f), 418) { StopDistance = 7f }; - obj195.Steps = list304; - reference222 = obj195; - ref QuestSequence reference223 = ref span133[4]; - QuestSequence obj196 = new QuestSequence + obj194.Steps = list303; + reference221 = obj194; + num++; + ref QuestSequence reference222 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012773u, new Vector3(92.5459f, 15.00001f, 37.247192f), 418) + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012773u, new Vector3(92.5459f, 15.00001f, 37.247192f), 418) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj196.Steps = list305; - reference223 = obj196; - ref QuestSequence reference224 = ref span133[5]; - QuestSequence obj197 = new QuestSequence + obj195.Steps = list304; + reference222 = obj195; + num++; + ref QuestSequence reference223 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) { StopDistance = 5f }; - obj197.Steps = list306; - reference224 = obj197; - questRoot40.QuestSequence = list300; + obj196.Steps = list305; + reference223 = obj196; + questRoot40.QuestSequence = list299; AddQuest(questId40, questRoot40); QuestId questId41 = new QuestId(1640); QuestRoot questRoot41 = new QuestRoot(); num = 1; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; - questRoot41.Author = list307; - num = 8; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span134 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference225 = ref span134[0]; - QuestSequence obj198 = new QuestSequence + List list306 = new List(num); + CollectionsMarshal.SetCount(list306, num); + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "JerryWester"; + questRoot41.Author = list306; + index = 8; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj198 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012778u, new Vector3(84.58069f, 23.979126f, 10.452393f), 418) { StopDistance = 5f }; obj198.Steps = list309; reference225 = obj198; - ref QuestSequence reference226 = ref span134[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj199 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1012778u, new Vector3(84.58069f, 23.979126f, 10.452393f), 418) - { - StopDistance = 5f - }; - obj199.Steps = list310; - reference226 = obj199; - ref QuestSequence reference227 = ref span134[2]; - QuestSequence obj200 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) { AethernetShortcut = new AethernetShortcut { @@ -103448,17 +122967,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - obj200.Steps = list311; - reference227 = obj200; - ref QuestSequence reference228 = ref span134[3]; - QuestSequence obj201 = new QuestSequence + obj199.Steps = list310; + reference226 = obj199; + num++; + ref QuestSequence reference227 = ref span2[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Duty, null, null, 419) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 419) { DutyOptions = new DutyOptions { @@ -103466,97 +122988,115 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 34u } }; - obj201.Steps = list312; - reference228 = obj201; - span134[4] = new QuestSequence + obj200.Steps = list311; + reference227 = obj200; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference229 = ref span134[5]; - QuestSequence obj202 = new QuestSequence + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) { StopDistance = 7f }; - obj202.Steps = list313; - reference229 = obj202; - ref QuestSequence reference230 = ref span134[6]; - QuestSequence obj203 = new QuestSequence + obj201.Steps = list312; + reference228 = obj201; + num++; + ref QuestSequence reference229 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 6 }; + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj203 = new QuestSequence + { + Sequence = byte.MaxValue + }; num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1013101u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) - { - TargetTerritoryId = (ushort)433 - }; - obj203.Steps = list314; - reference230 = obj203; - ref QuestSequence reference231 = ref span134[7]; - QuestSequence obj204 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { StopDistance = 5f }; - obj204.Steps = list315; - reference231 = obj204; - questRoot41.QuestSequence = list308; + obj203.Steps = list314; + reference230 = obj203; + questRoot41.QuestSequence = list307; AddQuest(questId41, questRoot41); QuestId questId42 = new QuestId(1641); QuestRoot questRoot42 = new QuestRoot(); num = 1; - List list316 = new List(num); - CollectionsMarshal.SetCount(list316, num); - CollectionsMarshal.AsSpan(list316)[0] = "JerryWester"; - questRoot42.Author = list316; - num = 2; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span135 = CollectionsMarshal.AsSpan(list317); - ref QuestSequence reference232 = ref span135[0]; - QuestSequence obj205 = new QuestSequence + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + span = CollectionsMarshal.AsSpan(list315); + index = 0; + span[index] = "JerryWester"; + questRoot42.Author = list315; + index = 2; + List list316 = new List(index); + CollectionsMarshal.SetCount(list316, index); + span2 = CollectionsMarshal.AsSpan(list316); + num = 0; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { StopDistance = 5f }; - obj205.Steps = list318; - reference232 = obj205; - ref QuestSequence reference233 = ref span135[1]; - QuestSequence obj206 = new QuestSequence + obj204.Steps = list317; + reference231 = obj204; + num++; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span136 = CollectionsMarshal.AsSpan(list319); - span136[0] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419) + List list318 = new List(num2); + CollectionsMarshal.SetCount(list318, num2); + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419) { StopDistance = 7f, PickUpQuestId = new QuestId(1874) }; - ref QuestStep reference234 = ref span136[1]; - QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) + index2++; + ref QuestStep reference233 = ref span3[index2]; + QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -103565,67 +123105,80 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = new DialogueChoice + index3 = 1; + List list319 = new List(index3); + CollectionsMarshal.SetCount(list319, index3); + span4 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA405_01641_SCENE00020_EVENTAREA_WARP_YESNO_TITLE") }; - obj207.DialogueChoices = list320; - reference234 = obj207; - ref QuestStep reference235 = ref span136[2]; + obj206.DialogueChoices = list319; + reference233 = obj206; + index2++; + ref QuestStep reference234 = ref span3[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.CompleteQuest, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + span4 = CollectionsMarshal.AsSpan(list320); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA405_01641_Q1_000_000"), Answer = new ExcelRef("TEXT_HEAVNA405_01641_A1_000_001") }; - questStep29.DialogueChoices = list321; - reference235 = questStep29; - obj206.Steps = list319; - reference233 = obj206; - questRoot42.QuestSequence = list317; + questStep29.DialogueChoices = list320; + reference234 = questStep29; + obj205.Steps = list318; + reference232 = obj205; + questRoot42.QuestSequence = list316; AddQuest(questId42, questRoot42); QuestId questId43 = new QuestId(1642); QuestRoot questRoot43 = new QuestRoot(); num = 1; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "JerryWester"; - questRoot43.Author = list322; - num = 2; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span137 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference236 = ref span137[0]; - QuestSequence obj208 = new QuestSequence + List list321 = new List(num); + CollectionsMarshal.SetCount(list321, num); + span = CollectionsMarshal.AsSpan(list321); + index = 0; + span[index] = "JerryWester"; + questRoot43.Author = list321; + index = 2; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + span2 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference235 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013384u, new Vector3(112.291016f, 24.390423f, -4.4709473f), 418) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013384u, new Vector3(112.291016f, 24.390423f, -4.4709473f), 418) { StopDistance = 7f }; - obj208.Steps = list324; - reference236 = obj208; - ref QuestSequence reference237 = ref span137[1]; - QuestSequence obj209 = new QuestSequence + obj207.Steps = list323; + reference235 = obj207; + num++; + ref QuestSequence reference236 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013261u, new Vector3(-158.49548f, 17.066208f, -56.26001f), 418) + List list324 = new List(num2); + CollectionsMarshal.SetCount(list324, num2); + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013261u, new Vector3(-158.49548f, 17.066208f, -56.26001f), 418) { AethernetShortcut = new AethernetShortcut { @@ -103633,41 +123186,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj209.Steps = list325; - reference237 = obj209; - questRoot43.QuestSequence = list323; + obj208.Steps = list324; + reference236 = obj208; + questRoot43.QuestSequence = list322; AddQuest(questId43, questRoot43); QuestId questId44 = new QuestId(1643); QuestRoot questRoot44 = new QuestRoot(); num = 1; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - CollectionsMarshal.AsSpan(list326)[0] = "JerryWester"; - questRoot44.Author = list326; - num = 5; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - Span span138 = CollectionsMarshal.AsSpan(list327); - ref QuestSequence reference238 = ref span138[0]; - QuestSequence obj210 = new QuestSequence + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + span = CollectionsMarshal.AsSpan(list325); + index = 0; + span[index] = "JerryWester"; + questRoot44.Author = list325; + index = 4; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + span2 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013385u, new Vector3(-158.37347f, 17f, -54.276367f), 418); - obj210.Steps = list328; - reference238 = obj210; - ref QuestSequence reference239 = ref span138[1]; - QuestSequence obj211 = new QuestSequence + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013385u, new Vector3(-158.37347f, 17f, -54.276367f), 418); + obj209.Steps = list327; + reference237 = obj209; + num++; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1013077u, new Vector3(147.53943f, -12.634913f, -26.199768f), 419) + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013077u, new Vector3(147.53943f, -12.634913f, -26.199768f), 419) { AethernetShortcut = new AethernetShortcut { @@ -103675,98 +123236,113 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - obj211.Steps = list329; - reference239 = obj211; - ref QuestSequence reference240 = ref span138[2]; - QuestSequence obj212 = new QuestSequence + obj210.Steps = list328; + reference238 = obj210; + num++; + ref QuestSequence reference239 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list330)[0]; + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + ref QuestStep reference240 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1013125u, new Vector3(148.60754f, -12.634913f, -13.443237f), 419); - num3 = 1; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice + index3 = 1; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + span4 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA502_01643_Q1_000_000") }; - questStep30.DialogueChoices = list331; - reference241 = questStep30; - obj212.Steps = list330; - reference240 = obj212; - span138[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference242 = ref span138[4]; - QuestSequence obj213 = new QuestSequence + questStep30.DialogueChoices = list330; + reference240 = questStep30; + obj211.Steps = list329; + reference239 = obj211; + num++; + ref QuestSequence reference241 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); - obj213.Steps = list332; - reference242 = obj213; - questRoot44.QuestSequence = list327; + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); + obj212.Steps = list331; + reference241 = obj212; + questRoot44.QuestSequence = list326; AddQuest(questId44, questRoot44); QuestId questId45 = new QuestId(1644); QuestRoot questRoot45 = new QuestRoot(); num = 1; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - CollectionsMarshal.AsSpan(list333)[0] = "JerryWester"; - questRoot45.Author = list333; - num = 4; - List list334 = new List(num); - CollectionsMarshal.SetCount(list334, num); - Span span139 = CollectionsMarshal.AsSpan(list334); - ref QuestSequence reference243 = ref span139[0]; - QuestSequence obj214 = new QuestSequence + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "JerryWester"; + questRoot45.Author = list332; + index = 4; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference242 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); - obj214.Steps = list335; - reference243 = obj214; - ref QuestSequence reference244 = ref span139[1]; - QuestSequence obj215 = new QuestSequence + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span140 = CollectionsMarshal.AsSpan(list336); - span140[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006228u, new Vector3(-747.097f, -57.09793f, 163.8361f), 401) + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006228u, new Vector3(-747.097f, -57.09793f, 163.8361f), 401) { AetherCurrentId = 2818116u }; - span140[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-703.7623f, -61.975857f, 113.54166f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-703.7623f, -61.975857f, 113.54166f), 401) { StopDistance = 0.25f, Emote = EEmote.Lookout }; - obj215.Steps = list336; - reference244 = obj215; - ref QuestSequence reference245 = ref span139[2]; - QuestSequence obj216 = new QuestSequence + obj214.Steps = list335; + reference243 = obj214; + num++; + ref QuestSequence reference244 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-761.80145f, -39.054474f, 77.39858f), 401) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-761.80145f, -39.054474f, 77.39858f), 401) { StopDistance = 0.25f, Emote = EEmote.Lookout, @@ -103775,376 +123351,451 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj216.Steps = list337; - reference245 = obj216; - ref QuestSequence reference246 = ref span139[3]; - QuestSequence obj217 = new QuestSequence + obj215.Steps = list336; + reference244 = obj215; + num++; + ref QuestSequence reference245 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) + List list337 = new List(num2); + CollectionsMarshal.SetCount(list337, num2); + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) { StopDistance = 7f }; - obj217.Steps = list338; - reference246 = obj217; - questRoot45.QuestSequence = list334; + obj216.Steps = list337; + reference245 = obj216; + questRoot45.QuestSequence = list333; AddQuest(questId45, questRoot45); QuestId questId46 = new QuestId(1645); QuestRoot questRoot46 = new QuestRoot(); num = 1; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "JerryWester"; - questRoot46.Author = list339; - num = 4; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span141 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference247 = ref span141[0]; - QuestSequence obj218 = new QuestSequence + List list338 = new List(num); + CollectionsMarshal.SetCount(list338, num); + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "JerryWester"; + questRoot46.Author = list338; + index = 4; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference246 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) { StopDistance = 7f }; - obj218.Steps = list341; - reference247 = obj218; - ref QuestSequence reference248 = ref span141[1]; - QuestSequence obj219 = new QuestSequence + obj217.Steps = list340; + reference246 = obj217; + num++; + ref QuestSequence reference247 = ref span2[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1013093u, new Vector3(-749.1112f, -35.956425f, 22.049255f), 401); - obj219.Steps = list342; - reference248 = obj219; - ref QuestSequence reference249 = ref span141[2]; - QuestSequence obj220 = new QuestSequence + List list341 = new List(num2); + CollectionsMarshal.SetCount(list341, num2); + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013093u, new Vector3(-749.1112f, -35.956425f, 22.049255f), 401); + obj218.Steps = list341; + reference247 = obj218; + num++; + ref QuestSequence reference248 = ref span2[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - Span span142 = CollectionsMarshal.AsSpan(list343); - span142[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-756.4804f, -13.877342f, -121.33485f), 401) + index2 = 4; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-756.4804f, -13.877342f, -121.33485f), 401) { JumpDestination = new JumpDestination { Position = new Vector3(-759.4263f, -9.201294f, -110.85681f) } }; - span142[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006229u, new Vector3(-759.4263f, -9.201294f, -110.85681f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006229u, new Vector3(-759.4263f, -9.201294f, -110.85681f), 401) { DisableNavmesh = true, AetherCurrentId = 2818117u }; - span142[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.9033f, -14.112402f, -177.06593f), 401); - span142[3] = new QuestStep(EInteractionType.Interact, 1013090u, new Vector3(-650.93463f, -58.6966f, -337.2397f), 401); - obj220.Steps = list343; - reference249 = obj220; - ref QuestSequence reference250 = ref span141[3]; - QuestSequence obj221 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.9033f, -14.112402f, -177.06593f), 401); + num2++; + span3[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 span2[num]; + QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - Span span143 = CollectionsMarshal.AsSpan(list344); - span143[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) + List list343 = new List(num2); + CollectionsMarshal.SetCount(list343, num2); + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) { Aetheryte = EAetheryteLocation.SeaOfCloudsOkZundu }; - span143[1] = new QuestStep(EInteractionType.CompleteQuest, 1013095u, new Vector3(-560.69275f, -52.30738f, -427.57312f), 401); - obj221.Steps = list344; - reference250 = obj221; - questRoot46.QuestSequence = list340; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013095u, new Vector3(-560.69275f, -52.30738f, -427.57312f), 401); + obj220.Steps = list343; + reference249 = obj220; + questRoot46.QuestSequence = list339; AddQuest(questId46, questRoot46); QuestId questId47 = new QuestId(1646); QuestRoot questRoot47 = new QuestRoot(); num = 1; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - CollectionsMarshal.AsSpan(list345)[0] = "JerryWester"; - questRoot47.Author = list345; - num = 4; - List list346 = new List(num); - CollectionsMarshal.SetCount(list346, num); - Span span144 = CollectionsMarshal.AsSpan(list346); - ref QuestSequence reference251 = ref span144[0]; - QuestSequence obj222 = new QuestSequence + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "JerryWester"; + questRoot47.Author = list344; + index = 4; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference250 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj222 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013096u, new Vector3(-541.34436f, -37.144257f, -384.48163f), 401); + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013123u, new Vector3(-538.0178f, -37.04666f, -392.0501f), 401); obj222.Steps = list347; reference251 = obj222; - ref QuestSequence reference252 = ref span144[1]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj223 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1013123u, new Vector3(-538.0178f, -37.04666f, -392.0501f), 401); - obj223.Steps = list348; - reference252 = obj223; - ref QuestSequence reference253 = ref span144[2]; - QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - Span span145 = CollectionsMarshal.AsSpan(list349); - span145[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006234u, new Vector3(-564.8127f, -36.68513f, -349.0807f), 401) + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006234u, new Vector3(-564.8127f, -36.68513f, -349.0807f), 401) { AetherCurrentId = 2818122u }; - span145[1] = new QuestStep(EInteractionType.Emote, 1012070u, new Vector3(-554.0704f, -57.62821f, -547.4174f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1012070u, new Vector3(-554.0704f, -57.62821f, -547.4174f), 401) { Emote = EEmote.Bow }; - obj224.Steps = list349; - reference253 = obj224; - ref QuestSequence reference254 = ref span144[3]; - QuestSequence obj225 = new QuestSequence + obj223.Steps = list348; + reference252 = obj223; + num++; + ref QuestSequence reference253 = ref span2[num]; + QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); - obj225.Steps = list350; - reference254 = obj225; - questRoot47.QuestSequence = list346; + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); + obj224.Steps = list349; + reference253 = obj224; + questRoot47.QuestSequence = list345; AddQuest(questId47, questRoot47); QuestId questId48 = new QuestId(1647); QuestRoot questRoot48 = new QuestRoot(); num = 1; - List list351 = new List(num); - CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "JerryWester"; - questRoot48.Author = list351; - num = 6; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span146 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference255 = ref span146[0]; - QuestSequence obj226 = new QuestSequence + List list350 = new List(num); + CollectionsMarshal.SetCount(list350, num); + span = CollectionsMarshal.AsSpan(list350); + index = 0; + span[index] = "JerryWester"; + questRoot48.Author = list350; + index = 6; + List list351 = new List(index); + CollectionsMarshal.SetCount(list351, index); + span2 = CollectionsMarshal.AsSpan(list351); + num = 0; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); - obj226.Steps = list353; - reference255 = obj226; - ref QuestSequence reference256 = ref span146[1]; - QuestSequence obj227 = new QuestSequence + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - Span span147 = CollectionsMarshal.AsSpan(list354); - span147[0] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) + List list353 = new List(num2); + CollectionsMarshal.SetCount(list353, num2); + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) { PickUpQuestId = new QuestId(1909) }; - span147[1] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); - obj227.Steps = list354; - reference256 = obj227; - ref QuestSequence reference257 = ref span146[2]; - QuestSequence obj228 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - Span span148 = CollectionsMarshal.AsSpan(list355); - span148[0] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) + index2 = 3; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) { PickUpQuestId = new QuestId(1910) }; - span148[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006231u, new Vector3(-180.34644f, -14.938599f, -543.1144f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006231u, new Vector3(-180.34644f, -14.938599f, -543.1144f), 401) { AetherCurrentId = 2818119u }; - span148[2] = new QuestStep(EInteractionType.Interact, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401); - obj228.Steps = list355; - reference257 = obj228; - ref QuestSequence reference258 = ref span146[3]; - QuestSequence obj229 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list356)[0]; - QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1013387u, new Vector3(-154.34503f, -14.730623f, -537.56006f), 401) + List list355 = new List(num2); + CollectionsMarshal.SetCount(list355, num2); + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference258 = ref span3[index2]; + QuestStep obj229 = new QuestStep(EInteractionType.Interact, 1013387u, new Vector3(-154.34503f, -14.730623f, -537.56006f), 401) { StopDistance = 7f }; num3 = 1; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - CollectionsMarshal.AsSpan(list357)[0] = new DialogueChoice + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + span4 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA506_01647_Q1_000_000") }; - obj230.DialogueChoices = list357; - reference259 = obj230; - obj229.Steps = list356; + obj229.DialogueChoices = list356; reference258 = obj229; - ref QuestSequence reference260 = ref span146[4]; - QuestSequence obj231 = new QuestSequence + obj228.Steps = list355; + reference257 = obj228; + num++; + ref QuestSequence reference259 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { ContentFinderConditionId = 88u } }; - obj231.Steps = list358; - reference260 = obj231; - ref QuestSequence reference261 = ref span146[5]; - QuestSequence obj232 = new QuestSequence + obj230.Steps = list357; + reference259 = obj230; + num++; + ref QuestSequence reference260 = ref span2[num]; + QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) + List list358 = new List(num2); + CollectionsMarshal.SetCount(list358, num2); + span3 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) { StopDistance = 7f }; - obj232.Steps = list359; - reference261 = obj232; - questRoot48.QuestSequence = list352; + obj231.Steps = list358; + reference260 = obj231; + questRoot48.QuestSequence = list351; AddQuest(questId48, questRoot48); QuestId questId49 = new QuestId(1648); QuestRoot questRoot49 = new QuestRoot(); num = 1; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "JerryWester"; - questRoot49.Author = list360; - num = 3; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span149 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference262 = ref span149[0]; - QuestSequence obj233 = new QuestSequence + List list359 = new List(num); + CollectionsMarshal.SetCount(list359, num); + span = CollectionsMarshal.AsSpan(list359); + index = 0; + span[index] = "JerryWester"; + questRoot49.Author = list359; + index = 3; + List list360 = new List(index); + CollectionsMarshal.SetCount(list360, index); + span2 = CollectionsMarshal.AsSpan(list360); + num = 0; + ref QuestSequence reference261 = ref span2[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) { StopDistance = 7f }; - obj233.Steps = list362; - reference262 = obj233; - ref QuestSequence reference263 = ref span149[1]; - QuestSequence obj234 = new QuestSequence + obj232.Steps = list361; + reference261 = obj232; + num++; + ref QuestSequence reference262 = ref span2[num]; + QuestSequence obj233 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1013100u, new Vector3(-582.63525f, -52.094604f, -447.13513f), 401); - obj234.Steps = list363; - reference263 = obj234; - ref QuestSequence reference264 = ref span149[2]; - QuestSequence obj235 = new QuestSequence + List list362 = new List(num2); + CollectionsMarshal.SetCount(list362, num2); + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013100u, new Vector3(-582.63525f, -52.094604f, -447.13513f), 401); + obj233.Steps = list362; + reference262 = obj233; + num++; + ref QuestSequence reference263 = ref span2[num]; + QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012195u, new Vector3(-155.93195f, -14.153762f, -542.1378f), 401) + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012195u, new Vector3(-155.93195f, -14.153762f, -542.1378f), 401) { Fly = true }; - obj235.Steps = list364; - reference264 = obj235; - questRoot49.QuestSequence = list361; + obj234.Steps = list363; + reference263 = obj234; + questRoot49.QuestSequence = list360; AddQuest(questId49, questRoot49); QuestId questId50 = new QuestId(1649); QuestRoot questRoot50 = new QuestRoot(); num = 1; - List list365 = new List(num); - CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "JerryWester"; - questRoot50.Author = list365; - num = 2; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span150 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference265 = ref span150[0]; - QuestSequence obj236 = new QuestSequence + List list364 = new List(num); + CollectionsMarshal.SetCount(list364, num); + span = CollectionsMarshal.AsSpan(list364); + index = 0; + span[index] = "JerryWester"; + questRoot50.Author = list364; + index = 2; + List list365 = new List(index); + CollectionsMarshal.SetCount(list365, index); + span2 = CollectionsMarshal.AsSpan(list365); + num = 0; + ref QuestSequence reference264 = ref span2[num]; + QuestSequence obj235 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401) + List list366 = new List(num2); + CollectionsMarshal.SetCount(list366, num2); + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401) { StopDistance = 5f }; - obj236.Steps = list367; - reference265 = obj236; - ref QuestSequence reference266 = ref span150[1]; - QuestSequence obj237 = new QuestSequence + obj235.Steps = list366; + reference264 = obj235; + num++; + ref QuestSequence reference265 = ref span2[num]; + QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013111u, new Vector3(162.89001f, -15.134373f, 37.094604f), 419) + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013111u, new Vector3(162.89001f, -15.134373f, 37.094604f), 419) { StopDistance = 7f }; - obj237.Steps = list368; - reference266 = obj237; - questRoot50.QuestSequence = list366; + obj236.Steps = list367; + reference265 = obj236; + questRoot50.QuestSequence = list365; AddQuest(questId50, questRoot50); } @@ -104155,13 +123806,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -104169,22 +123823,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013112u, new Vector3(162.005f, -15.134371f, 38.52893f), 419) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013112u, new Vector3(162.005f, -15.134371f, 38.52893f), 419) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -104196,17 +123854,21 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA601_01650_SCENE00008_EVENTAREA_WARP_YESNO_TITLE") }; obj3.DialogueChoices = list5; reference3 = obj3; - span2[1] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -104214,7 +123876,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -104224,24 +123888,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list7; - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 4; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -104249,28 +123919,34 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1012389u, new Vector3(-133.31812f, 4.1f, -111.77234f), 130) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012389u, new Vector3(-133.31812f, 4.1f, -111.77234f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1012391u, new Vector3(-202.62463f, -31.015825f, 105.088745f), 141) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012391u, new Vector3(-202.62463f, -31.015825f, 105.088745f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -104278,7 +123954,9 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -104296,24 +123974,30 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span4[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span4[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -104321,37 +124005,45 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span5 = CollectionsMarshal.AsSpan(list16); - ref QuestStep reference11 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference11 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new DialogueChoice + index3 = 1; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + span4 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA603_01652_SCENE00007_EVENTAREA_WARP_YESNO_TITLE") }; obj11.DialogueChoices = list17; reference11 = obj11; - span5[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference12 = ref span4[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1012396u, new Vector3(-153.1853f, 4f, -14.938599f), 133); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012396u, new Vector3(-153.1853f, 4f, -14.938599f), 133); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -104359,7 +124051,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AethernetShortcut = new AethernetShortcut { @@ -104369,15 +124063,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span4[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { StopDistance = 5f }; @@ -104390,13 +124087,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span6[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -104404,23 +124104,28 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { StopDistance = 5f }; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span6[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.620056f, -7.9655867f, 103.63884f), 132); - ref QuestStep reference17 = ref span7[1]; + index2 = 3; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.620056f, -7.9655867f, 103.63884f), 132); + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) { AethernetShortcut = new AethernetShortcut @@ -104432,16 +124137,23 @@ public static class AssemblyQuestLoader num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list25; reference17 = obj17; - ref QuestStep reference18 = ref span7[2]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AethernetShortcut = new AethernetShortcut @@ -104450,21 +124162,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + span5 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list26; reference18 = obj18; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference19 = ref span6[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -104472,7 +124191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { AethernetShortcut = new AethernetShortcut { @@ -104489,24 +124210,30 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list28; - num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span10 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference20 = ref span10[0]; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012400u, new Vector3(35.843384f, -8f, 99.35144f), 132); + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012400u, new Vector3(35.843384f, -8f, 99.35144f), 132); obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference21 = ref span10[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -104514,21 +124241,26 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span10[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather @@ -104542,13 +124274,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list33; - num = 4; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span11 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span11[0]; + index = 4; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -104556,30 +124291,36 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398); obj23.Steps = list35; reference23 = obj23; - ref QuestSequence reference24 = ref span11[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-793.8348f, -122.09079f, 577.7538f), 398) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-793.8348f, -122.09079f, 577.7538f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.08453f, -122.82994f, 577.8909f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.08453f, -122.82994f, 577.8909f), 398) { TargetTerritoryId = (ushort)399 }; obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span11[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -104587,35 +124328,41 @@ public static class AssemblyQuestLoader num2 = 3; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span13 = CollectionsMarshal.AsSpan(list37); - span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006205u, new Vector3(729.21326f, 134.93542f, 150.89636f), 399) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006205u, new Vector3(729.21326f, 134.93542f, 150.89636f), 399) { AetherCurrentId = 2818083u }; - span13[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006208u, new Vector3(98.89368f, 73.07532f, -174.36487f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006208u, new Vector3(98.89368f, 73.07532f, -174.36487f), 399) { AetherCurrentId = 2818086u }; - span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.85187f, 107.00484f, -632.70197f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.85187f, 107.00484f, -632.70197f), 399) { TargetTerritoryId = (ushort)478 }; obj25.Steps = list37; reference25 = obj25; - ref QuestSequence reference26 = ref span11[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) { Aetheryte = EAetheryteLocation.Idyllshire }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list34; @@ -104625,13 +124372,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span15 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference27 = ref span15[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -104639,24 +124389,30 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span15[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1012410u, new Vector3(71.732666f, 205.62819f, 26.901611f), 478) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012410u, new Vector3(71.732666f, 205.62819f, 26.901611f), 478) { StopDistance = 7f }; obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span15[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -104664,8 +124420,9 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span16 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference30 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Say, 1014413u, new Vector3(-42.008118f, 205.79572f, 3.4332886f), 478) { ChatMessage = new ChatMessage @@ -104676,16 +124433,23 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span17 = CollectionsMarshal.AsSpan(list44); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list44; reference30 = obj30; - ref QuestStep reference31 = ref span16[1]; + index2++; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Say, 1012413u, new Vector3(-69.230286f, 205.88773f, -68.61987f), 478) { ChatMessage = new ChatMessage @@ -104693,34 +124457,43 @@ public static class AssemblyQuestLoader Key = "TEXT_HEAVNA607_01656_SAYTODO_000" } }; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span18 = CollectionsMarshal.AsSpan(list45); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span5 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list45; reference31 = obj31; obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference32 = ref span15[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span19 = CollectionsMarshal.AsSpan(list46); - span19[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) + index2 = 2; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) { AethernetShard = EAetheryteLocation.IdyllshireWest }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AethernetShortcut = new AethernetShortcut { @@ -104737,13 +124510,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list47; - num = 4; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span20 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference33 = ref span20[0]; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -104751,19 +124527,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference34 = ref span20[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span21 = CollectionsMarshal.AsSpan(list50); - span21[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) { AethernetShortcut = new AethernetShortcut { @@ -104772,7 +124552,8 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(1936) }; - span21[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012416u, new Vector3(365.83496f, 80.11144f, 6.3324585f), 399) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012416u, new Vector3(365.83496f, 80.11144f, 6.3324585f), 399) { AethernetShortcut = new AethernetShortcut { @@ -104786,7 +124567,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference34 = obj34; - ref QuestSequence reference35 = ref span20[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -104794,21 +124576,26 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1012418u, new Vector3(352.65125f, 77.859474f, -5.9052734f), 399) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012418u, new Vector3(352.65125f, 77.859474f, -5.9052734f), 399) { StopDistance = 7f }; obj35.Steps = list51; reference35 = obj35; - ref QuestSequence reference36 = ref span20[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; @@ -104821,13 +124608,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span22 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference37 = ref span22[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -104835,26 +124625,32 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj37.Steps = list55; reference37 = obj37; - ref QuestSequence reference38 = ref span22[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span23 = CollectionsMarshal.AsSpan(list56); - span23[0] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) { PickUpQuestId = new QuestId(1945) }; - span23[1] = new QuestStep(EInteractionType.Interact, 1012419u, new Vector3(78.96533f, 203.98001f, 133.1654f), 478); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012419u, new Vector3(78.96533f, 203.98001f, 133.1654f), 478); obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference39 = ref span22[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -104862,7 +124658,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) { StopDistance = 5f }; @@ -104875,27 +124673,33 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list58; - num = 4; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span24 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference40 = ref span24[0]; + index = 4; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) { StopDistance = 5f }; obj40.Steps = list60; reference40 = obj40; - ref QuestSequence reference41 = ref span24[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -104903,12 +124707,14 @@ public static class AssemblyQuestLoader num2 = 4; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span25 = CollectionsMarshal.AsSpan(list61); - span25[0] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { PickUpQuestId = new QuestId(1963) }; - ref QuestStep reference42 = ref span25[1]; + index2++; + ref QuestStep reference42 = ref span3[index2]; QuestStep obj42 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 @@ -104918,40 +124724,50 @@ public static class AssemblyQuestLoader num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = 399; + Span span6 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span6[index3] = 399; skipStepConditions.InTerritory = list62; skipConditions.StepIf = skipStepConditions; obj42.SkipConditions = skipConditions; reference42 = obj42; - span25[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006214u, new Vector3(-452.38422f, 138.10938f, 678.18713f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006214u, new Vector3(-452.38422f, 138.10938f, 678.18713f), 399) { AetherCurrentId = 2818092u }; - span25[3] = new QuestStep(EInteractionType.Interact, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); obj41.Steps = list61; reference41 = obj41; - ref QuestSequence reference43 = ref span24[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference44 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2005532u, new Vector3(-488.76178f, 138.99438f, 742.12244f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = 4375u; + index3 = 1; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span7 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span7[num3] = 4375u; obj44.KillEnemyDataIds = list64; reference44 = obj44; obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference45 = ref span24[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -104959,7 +124775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); obj45.Steps = list65; reference45 = obj45; questRoot10.QuestSequence = list59; @@ -104969,27 +124787,33 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span26 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span26[0]; + index = 6; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 7f }; obj46.Steps = list68; reference46 = obj46; - ref QuestSequence reference47 = ref span26[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -104997,27 +124821,33 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 7f }; obj47.Steps = list69; reference47 = obj47; - ref QuestSequence reference48 = ref span26[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1012426u, new Vector3(23.971863f, 38.43f, 3.5552979f), 463) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012426u, new Vector3(23.971863f, 38.43f, 3.5552979f), 463) { StopDistance = 6f }; obj48.Steps = list70; reference48 = obj48; - ref QuestSequence reference49 = ref span26[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -105025,12 +124855,14 @@ public static class AssemblyQuestLoader num2 = 4; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span27 = CollectionsMarshal.AsSpan(list71); - span27[0] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463) { PickUpQuestId = new QuestId(1966) }; - ref QuestStep reference50 = ref span27[1]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2005337u, new Vector3(7.765594f, 38.9395f, -50.9989f), 463) { TargetTerritoryId = (ushort)399 @@ -105040,27 +124872,34 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 463; + span6 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span6[index3] = 463; skipStepConditions2.NotInTerritory = list72; skipConditions2.StepIf = skipStepConditions2; obj50.SkipConditions = skipConditions2; reference50 = obj50; - span27[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399); - span27[3] = new QuestStep(EInteractionType.Interact, 1012427u, new Vector3(300.46533f, 232.541f, 767.87964f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012427u, new Vector3(300.46533f, 232.541f, 767.87964f), 399) { DisableNavmesh = true }; obj49.Steps = list71; reference49 = obj49; - ref QuestSequence reference51 = ref span26[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -105070,11 +124909,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference51 = obj51; - span26[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference52 = ref span26[6]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -105082,17 +124918,20 @@ public static class AssemblyQuestLoader num2 = 3; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span28 = CollectionsMarshal.AsSpan(list74); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399) { DisableNavmesh = true, Mount = true }; - span28[1] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; - span28[2] = new QuestStep(EInteractionType.CompleteQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj52.Steps = list74; reference52 = obj52; questRoot11.QuestSequence = list67; @@ -105102,24 +124941,30 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list75; - num = 4; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span29 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference53 = ref span29[0]; + index = 4; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj53.Steps = list77; reference53 = obj53; - ref QuestSequence reference54 = ref span29[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -105127,21 +124972,26 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1012422u, new Vector3(-475.79156f, 137.42972f, 701.4724f), 399) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012422u, new Vector3(-475.79156f, 137.42972f, 701.4724f), 399) { StopDistance = 7f }; obj54.Steps = list78; reference54 = obj54; - ref QuestSequence reference55 = ref span29[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -105153,7 +125003,8 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference55 = obj55; - ref QuestSequence reference56 = ref span29[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -105161,7 +125012,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013163u, new Vector3(167.0404f, -14.313367f, 51.285522f), 419) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013163u, new Vector3(167.0404f, -14.313367f, 51.285522f), 419) { AethernetShortcut = new AethernetShortcut { @@ -105178,27 +125031,33 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list81; - num = 5; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span30 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference57 = ref span30[0]; + index = 5; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) { StopDistance = 5f }; obj57.Steps = list83; reference57 = obj57; - ref QuestSequence reference58 = ref span30[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -105206,22 +125065,26 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1013166u, new Vector3(168.29175f, -14.52896f, 41.153564f), 419) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013166u, new Vector3(168.29175f, -14.52896f, 41.153564f), 419) { StopDistance = 7f }; obj58.Steps = list84; reference58 = obj58; - ref QuestSequence reference59 = ref span30[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span31 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference60 = ref span31[0]; + index2 = 5; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AethernetShortcut = new AethernetShortcut @@ -105230,51 +125093,72 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span32 = CollectionsMarshal.AsSpan(list86); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span5 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj60.CompletionQuestVariablesFlags = list86; reference60 = obj60; - ref QuestStep reference61 = ref span31[1]; + num2++; + ref QuestStep reference61 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1013161u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span33 = CollectionsMarshal.AsSpan(list87); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list87; reference61 = questStep; - ref QuestStep reference62 = ref span31[2]; + num2++; + ref QuestStep reference62 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.00678f, 1.6069314f, 67.770386f), 418); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span34 = CollectionsMarshal.AsSpan(list88); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + span5 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list88; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference62 = questStep2; - ref QuestStep reference63 = ref span31[3]; + num2++; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.918564f, -13.879314f, 68.86857f), 418) { DisableNavmesh = true @@ -105284,34 +125168,48 @@ public static class AssemblyQuestLoader num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span35 = CollectionsMarshal.AsSpan(list89); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list89; skipConditions4.StepIf = skipStepConditions4; obj61.SkipConditions = skipConditions4; reference63 = obj61; - ref QuestStep reference64 = ref span31[4]; + num2++; + ref QuestStep reference64 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span36 = CollectionsMarshal.AsSpan(list90); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span5 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list90; reference64 = questStep3; obj59.Steps = list85; reference59 = obj59; - ref QuestSequence reference65 = ref span30[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -105319,8 +125217,9 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span37 = CollectionsMarshal.AsSpan(list91); - span37[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -105329,26 +125228,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span37[1] = new QuestStep(EInteractionType.Interact, 1012397u, new Vector3(4.0131226f, -9.313226E-10f, 5.661072f), 433) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012397u, new Vector3(4.0131226f, -9.313226E-10f, 5.661072f), 433) { StopDistance = 7f }; obj62.Steps = list91; reference65 = obj62; - ref QuestSequence reference66 = ref span30[4]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span38 = CollectionsMarshal.AsSpan(list92); - span38[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) { AethernetShortcut = new AethernetShortcut { @@ -105365,13 +125268,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list93; - num = 6; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span39 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference67 = ref span39[0]; + index = 6; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -105379,21 +125285,27 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); obj64.Steps = list95; reference67 = obj64; - ref QuestSequence reference68 = ref span39[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1012431u, new Vector3(180.16321f, -16.028961f, 34.6532f), 419); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012431u, new Vector3(180.16321f, -16.028961f, 34.6532f), 419); obj65.Steps = list96; reference68 = obj65; - ref QuestSequence reference69 = ref span39[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 @@ -105401,28 +125313,35 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); obj66.Steps = list97; reference69 = obj66; - span39[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference70 = ref span39[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1012854u, new Vector3(-861.84485f, -184.293f, -659.2356f), 402) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012854u, new Vector3(-861.84485f, -184.293f, -659.2356f), 402) { DisableNavmesh = true }; obj67.Steps = list98; reference70 = obj67; - ref QuestSequence reference71 = ref span39[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -105430,12 +125349,14 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span40 = CollectionsMarshal.AsSpan(list99); - span40[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 402) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 402) { Aetheryte = EAetheryteLocation.AzysLlaHelix }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); obj68.Steps = list99; reference71 = obj68; questRoot14.QuestSequence = list94; @@ -105445,24 +125366,30 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span41 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference72 = ref span41[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); obj69.Steps = list102; reference72 = obj69; - ref QuestSequence reference73 = ref span41[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -105470,63 +125397,88 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span42 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference74 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference74 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2006237u, new Vector3(-637.6898f, -176.47064f, -558.3734f), 402); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span43 = CollectionsMarshal.AsSpan(list104); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list104; reference74 = questStep4; - ref QuestStep reference75 = ref span42[1]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006236u, new Vector3(-649.7139f, -176.47064f, -538.6893f), 402); - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span44 = CollectionsMarshal.AsSpan(list105); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + span5 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list105; reference75 = questStep5; - ref QuestStep reference76 = ref span42[2]; + index2++; + ref QuestStep reference76 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006238u, new Vector3(-645.16675f, -174.57855f, -477.92786f), 402); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list106; reference76 = questStep6; obj70.Steps = list103; reference73 = obj70; - ref QuestSequence reference77 = ref span41[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); obj71.Steps = list107; reference77 = obj71; - ref QuestSequence reference78 = ref span41[3]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -105534,18 +125486,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2005565u, new Vector3(-428.0614f, -166.21655f, -411.88678f), 402); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005565u, new Vector3(-428.0614f, -166.21655f, -411.88678f), 402); obj72.Steps = list108; reference78 = obj72; - ref QuestSequence reference79 = ref span41[4]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); obj73.Steps = list109; reference79 = obj73; questRoot15.QuestSequence = list101; @@ -105555,13 +125512,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list110; - num = 5; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span46 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference80 = ref span46[0]; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -105569,15 +125529,19 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list112)[0]; + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference81 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1012796u, new Vector3(-639.8871f, -176.4502f, -579.3393f), 402) { StopDistance = 7f }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span4 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA703_01665_Q1_000_000"), @@ -105587,21 +125551,25 @@ public static class AssemblyQuestLoader reference81 = obj75; obj74.Steps = list112; reference80 = obj74; - ref QuestSequence reference82 = ref span46[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1014677u, new Vector3(-642.9083f, -176.4502f, -577.5082f), 402) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014677u, new Vector3(-642.9083f, -176.4502f, -577.5082f), 402) { StopDistance = 5f }; obj76.Steps = list114; reference82 = obj76; - ref QuestSequence reference83 = ref span46[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 @@ -105609,27 +125577,35 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span47 = CollectionsMarshal.AsSpan(list115); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-550.3511f, -173.7904f, -486.51318f), 402); - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-517.79803f, -169.71143f, -456.97668f), 402); - span47[2] = new QuestStep(EInteractionType.Interact, 1012797u, new Vector3(-166.36914f, -162.10732f, -490.898f), 402); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-550.3511f, -173.7904f, -486.51318f), 402); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-517.79803f, -169.71143f, -456.97668f), 402); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012797u, new Vector3(-166.36914f, -162.10732f, -490.898f), 402); obj77.Steps = list115; reference83 = obj77; - ref QuestSequence reference84 = ref span46[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span48 = CollectionsMarshal.AsSpan(list116); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.06377f, -158.1412f, -496.24612f), 402); - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.24174f, -154.81604f, -498.42224f), 402); - span48[2] = new QuestStep(EInteractionType.Interact, 2006363u, new Vector3(-145.7164f, -154.816f, -503.1721f), 402); + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.06377f, -158.1412f, -496.24612f), 402); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.24174f, -154.81604f, -498.42224f), 402); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006363u, new Vector3(-145.7164f, -154.816f, -503.1721f), 402); obj78.Steps = list116; reference84 = obj78; - ref QuestSequence reference85 = ref span46[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -105637,7 +125613,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402) { DisableNavmesh = true }; @@ -105650,24 +125628,30 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span49 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference86 = ref span49[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402); obj80.Steps = list120; reference86 = obj80; - ref QuestSequence reference87 = ref span49[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -105675,20 +125659,25 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); obj81.Steps = list121; reference87 = obj81; - ref QuestSequence reference88 = ref span49[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(642.1002f, -32.964188f, -532.8383f), 402); - ref QuestStep reference89 = ref span50[1]; + index2 = 4; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(642.1002f, -32.964188f, -532.8383f), 402); + num2++; + ref QuestStep reference89 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 2005568u, new Vector3(344.13672f, -55.375f, -428.4886f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105696,21 +125685,30 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 4942u; + span7 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span7[index3] = 4942u; obj83.KillEnemyDataIds = list123; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span51 = CollectionsMarshal.AsSpan(list124); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span5 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list124; reference89 = obj83; - ref QuestStep reference90 = ref span50[2]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2005569u, new Vector3(296.71167f, -55.283447f, -459.2508f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105718,23 +125716,32 @@ public static class AssemblyQuestLoader num3 = 2; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span52 = CollectionsMarshal.AsSpan(list125); - span52[0] = 4943u; - span52[1] = 4623u; + span7 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span7[index3] = 4943u; + index3++; + span7[index3] = 4623u; obj84.KillEnemyDataIds = list125; - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span53 = CollectionsMarshal.AsSpan(list126); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + span5 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list126; reference90 = obj84; - ref QuestStep reference91 = ref span50[3]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2005567u, new Vector3(249.2561f, -55.49713f, -406.51562f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105742,25 +125749,34 @@ public static class AssemblyQuestLoader num3 = 2; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span54 = CollectionsMarshal.AsSpan(list127); - span54[0] = 4614u; - span54[1] = 4942u; + span7 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span7[index3] = 4614u; + index3++; + span7[index3] = 4942u; obj85.KillEnemyDataIds = list127; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span55 = CollectionsMarshal.AsSpan(list128); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span5 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list128; reference91 = obj85; obj82.Steps = list122; reference88 = obj82; - ref QuestSequence reference92 = ref span49[3]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 @@ -105768,21 +125784,27 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); obj86.Steps = list129; reference92 = obj86; - ref QuestSequence reference93 = ref span49[4]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span56 = CollectionsMarshal.AsSpan(list130); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.2551f, -21.268166f, -478.28162f), 402); - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(778.6274f, -17.943024f, -487.80676f), 402); - span56[2] = new QuestStep(EInteractionType.CompleteQuest, 2006364u, new Vector3(778.9745f, -17.96f, -483.6682f), 402); + index2 = 3; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.2551f, -21.268166f, -478.28162f), 402); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(778.6274f, -17.943024f, -487.80676f), 402); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006364u, new Vector3(778.9745f, -17.96f, -483.6682f), 402); obj87.Steps = list130; reference93 = obj87; questRoot17.QuestSequence = list119; @@ -105792,13 +125814,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list131; - num = 5; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span57 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference94 = ref span57[0]; + index = 5; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -105806,24 +125831,30 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014850u, new Vector3(634.51587f, 10.474376f, 77.50049f), 402) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014850u, new Vector3(634.51587f, 10.474376f, 77.50049f), 402) { StopDistance = 7f }; obj88.Steps = list133; reference94 = obj88; - ref QuestSequence reference95 = ref span57[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1012829u, new Vector3(641.90125f, 13.840106f, 506.95044f), 402); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012829u, new Vector3(641.90125f, 13.840106f, 506.95044f), 402); obj89.Steps = list134; reference95 = obj89; - ref QuestSequence reference96 = ref span57[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -105831,7 +125862,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list135)[0]; + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference97 = ref span3[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105839,26 +125872,35 @@ public static class AssemblyQuestLoader num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span58 = CollectionsMarshal.AsSpan(list136); - span58[0] = 4391u; - span58[1] = 4392u; - span58[2] = 4393u; - span58[3] = 4394u; - span58[4] = 4395u; - span58[5] = 4396u; + span7 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span7[index3] = 4391u; + index3++; + span7[index3] = 4392u; + index3++; + span7[index3] = 4393u; + index3++; + span7[index3] = 4394u; + index3++; + span7[index3] = 4395u; + index3++; + span7[index3] = 4396u; obj91.KillEnemyDataIds = list136; reference97 = obj91; obj90.Steps = list135; reference96 = obj90; - ref QuestSequence reference98 = ref span57[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -105867,7 +125909,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list137; reference98 = obj92; - ref QuestSequence reference99 = ref span57[4]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -105875,7 +125918,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402) { DisableNavmesh = true }; @@ -105888,24 +125933,30 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list139; - num = 2; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span59 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference100 = ref span59[0]; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402); + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402); obj94.Steps = list141; reference100 = obj94; - ref QuestSequence reference101 = ref span59[1]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -105913,7 +125964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005465u, new Vector3(-696.13184f, -37.06427f, 432.4253f), 402); + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2005465u, new Vector3(-696.13184f, -37.06427f, 432.4253f), 402); obj95.Steps = list142; reference101 = obj95; questRoot19.QuestSequence = list140; @@ -105923,27 +125976,33 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list143; - num = 7; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span60 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference102 = ref span60[0]; + index = 7; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012848u, new Vector3(-319.0204f, 253f, -5.2339478f), 402) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012848u, new Vector3(-319.0204f, 253f, -5.2339478f), 402) { Fly = true }; obj96.Steps = list145; reference102 = obj96; - ref QuestSequence reference103 = ref span60[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -105951,36 +126010,46 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list146)[0]; + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Combat, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 4; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span61 = CollectionsMarshal.AsSpan(list147); - span61[0] = 5039u; - span61[1] = 4363u; - span61[2] = 4398u; - span61[3] = 4397u; + index3 = 4; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + span7 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span7[num3] = 5039u; + num3++; + span7[num3] = 4363u; + num3++; + span7[num3] = 4398u; + num3++; + span7[num3] = 4397u; obj98.KillEnemyDataIds = list147; reference104 = obj98; obj97.Steps = list146; reference103 = obj97; - ref QuestSequence reference105 = ref span60[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402); obj99.Steps = list148; reference105 = obj99; - ref QuestSequence reference106 = ref span60[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -105988,7 +126057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -105998,19 +126069,23 @@ public static class AssemblyQuestLoader }; obj100.Steps = list149; reference106 = obj100; - span60[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference107 = ref span60[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -106019,7 +126094,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list150; reference107 = obj101; - ref QuestSequence reference108 = ref span60[6]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -106027,7 +126103,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 5f }; @@ -106040,21 +126118,26 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "liza"; questRoot21.Author = list152; - num = 5; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span62 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference109 = ref span62[0]; + index = 5; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference110 = ref span3[num2]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -106072,14 +126155,17 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 128; + span6 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span6[index3] = 128; obj105.InTerritory = list155; skipConditions5.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions5; reference110 = obj104; obj103.Steps = list154; reference109 = obj103; - ref QuestSequence reference111 = ref span62[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -106087,24 +126173,29 @@ public static class AssemblyQuestLoader num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span63 = CollectionsMarshal.AsSpan(list156); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span63[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj106.Steps = list156; reference111 = obj106; - ref QuestSequence reference112 = ref span62[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list157)[0]; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference113 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2005518u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180) { StopDistance = 0.5f, @@ -106112,15 +126203,18 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 4399u; + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span7 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span7[num3] = 4399u; obj108.KillEnemyDataIds = list158; reference113 = obj108; obj107.Steps = list157; reference112 = obj107; - ref QuestSequence reference114 = ref span62[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -106128,24 +126222,29 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 2005519u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005519u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180); obj109.Steps = list159; reference114 = obj109; - ref QuestSequence reference115 = ref span62[4]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span64 = CollectionsMarshal.AsSpan(list160); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1672) }; @@ -106158,13 +126257,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot22.Author = list161; - num = 4; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span65 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference116 = ref span65[0]; + index = 4; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -106172,8 +126274,9 @@ public static class AssemblyQuestLoader num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span66 = CollectionsMarshal.AsSpan(list163); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106185,26 +126288,31 @@ public static class AssemblyQuestLoader } } }; - span66[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj111.Steps = list163; reference116 = obj111; - ref QuestSequence reference117 = ref span65[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span67 = CollectionsMarshal.AsSpan(list164); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(620.5845f, -3.0527442f, 169.40678f), 139) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(620.5845f, -3.0527442f, 169.40678f), 139) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.Interact, 1013137u, new Vector3(620.9657f, -3.002753f, 171.06885f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013137u, new Vector3(620.9657f, -3.002753f, 171.06885f), 139); obj112.Steps = list164; reference117 = obj112; - ref QuestSequence reference118 = ref span65[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -106212,26 +126320,31 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005520u, new Vector3(622.91907f, -3.0671387f, 171.6792f), 139) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005520u, new Vector3(622.91907f, -3.0671387f, 171.6792f), 139) { StopDistance = 4.5f }; obj113.Steps = list165; reference118 = obj113; - ref QuestSequence reference119 = ref span65[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span68 = CollectionsMarshal.AsSpan(list166); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1673) }; @@ -106244,13 +126357,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "liza"; questRoot23.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span69 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference120 = ref span69[0]; + index = 7; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -106258,8 +126374,9 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span70 = CollectionsMarshal.AsSpan(list169); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106271,24 +126388,28 @@ public static class AssemblyQuestLoader } } }; - span70[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj115.Steps = list169; reference120 = obj115; - ref QuestSequence reference121 = ref span69[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span71 = CollectionsMarshal.AsSpan(list170); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.83594f, 70.47664f, -272.06448f), 180) + index2 = 2; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.83594f, 70.47664f, -272.06448f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - ref QuestStep reference122 = ref span71[1]; + num2++; + ref QuestStep reference122 = ref span3[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 2005521u, new Vector3(-292.83594f, 72.15991f, -275.4101f), 180) { StopDistance = 0.5f, @@ -106298,7 +126419,9 @@ public static class AssemblyQuestLoader num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = new ComplexCombatData + Span span8 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span8[index3] = new ComplexCombatData { DataId = 30u, NameId = 4108u @@ -106307,7 +126430,8 @@ public static class AssemblyQuestLoader reference122 = obj117; obj116.Steps = list170; reference121 = obj116; - ref QuestSequence reference123 = ref span69[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -106315,17 +126439,21 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference124 = ref CollectionsMarshal.AsSpan(list172)[0]; + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + ref QuestStep reference124 = ref span3[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, 2005522u, new Vector3(-302.05237f, 70.81714f, -292.28656f), 180) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new ComplexCombatData + index3 = 1; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + span8 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 30u, NameId = 4108u @@ -106334,22 +126462,26 @@ public static class AssemblyQuestLoader reference124 = obj119; obj118.Steps = list172; reference123 = obj118; - ref QuestSequence reference125 = ref span69[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2005523u, new Vector3(-370.04657f, 65.69006f, -307.75922f), 180) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005523u, new Vector3(-370.04657f, 65.69006f, -307.75922f), 180) { StopDistance = 0.5f, Fly = true }; obj120.Steps = list174; reference125 = obj120; - ref QuestSequence reference126 = ref span69[4]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -106357,7 +126489,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list175)[0]; + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference127 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2005530u, new Vector3(-381.55188f, 52.475708f, -298.93958f), 180) { StopDistance = 2f, @@ -106367,23 +126501,29 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 4371u; + span7 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span7[index3] = 4371u; obj122.KillEnemyDataIds = list176; reference127 = obj122; obj121.Steps = list175; reference126 = obj121; - ref QuestSequence reference128 = ref span69[5]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2005531u, new Vector3(-381.55188f, 52.8114f, -298.909f), 180); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005531u, new Vector3(-381.55188f, 52.8114f, -298.909f), 180); obj123.Steps = list177; reference128 = obj123; - ref QuestSequence reference129 = ref span69[6]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -106391,13 +126531,15 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span72 = CollectionsMarshal.AsSpan(list178); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1674) }; @@ -106410,22 +126552,26 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; questRoot24.Author = list179; - num = 6; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span73 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference130 = ref span73[0]; + index = 6; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span74 = CollectionsMarshal.AsSpan(list181); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106437,10 +126583,12 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj125.Steps = list181; reference130 = obj125; - ref QuestSequence reference131 = ref span73[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -106448,21 +126596,26 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { Fly = true }; obj126.Steps = list182; reference131 = obj126; - ref QuestSequence reference132 = ref span73[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { ChatMessage = new ChatMessage { @@ -106471,7 +126624,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list183; reference132 = obj127; - ref QuestSequence reference133 = ref span73[3]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -106479,7 +126633,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { ChatMessage = new ChatMessage { @@ -106488,32 +126644,38 @@ public static class AssemblyQuestLoader }; obj128.Steps = list184; reference133 = obj128; - ref QuestSequence reference134 = ref span73[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list185)[0]; + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference135 = ref span3[num2]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, 1013139u, new Vector3(700.9536f, -0.50953937f, 133.28748f), 139) { Fly = true, Emote = EEmote.Laugh, EnemySpawnType = EEnemySpawnType.AfterEmote }; - num3 = 2; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span75 = CollectionsMarshal.AsSpan(list186); - span75[0] = 4400u; - span75[1] = 4401u; + index3 = 2; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + span7 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span7[num3] = 4400u; + num3++; + span7[num3] = 4401u; obj130.KillEnemyDataIds = list186; reference135 = obj130; obj129.Steps = list185; reference134 = obj129; - ref QuestSequence reference136 = ref span73[5]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -106521,7 +126683,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { Fly = true, NextQuestId = new QuestId(1675) @@ -106535,22 +126699,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot25.Author = list188; - num = 6; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span76 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference137 = ref span76[0]; + index = 6; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span77 = CollectionsMarshal.AsSpan(list190); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106562,10 +126730,12 @@ public static class AssemblyQuestLoader } } }; - span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj132.Steps = list190; reference137 = obj132; - ref QuestSequence reference138 = ref span76[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -106573,7 +126743,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -106584,22 +126756,26 @@ public static class AssemblyQuestLoader }; obj133.Steps = list191; reference138 = obj133; - ref QuestSequence reference139 = ref span76[2]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj134.Steps = list192; reference139 = obj134; - ref QuestSequence reference140 = ref span76[3]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -106607,20 +126783,25 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1011234u, new Vector3(546.1356f, 217.90826f, 768.06274f), 397); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011234u, new Vector3(546.1356f, 217.90826f, 768.06274f), 397); obj135.Steps = list193; reference140 = obj135; - ref QuestSequence reference141 = ref span76[4]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span78 = CollectionsMarshal.AsSpan(list194); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.09424f, 217.9514f, 773.35565f), 397); - ref QuestStep reference142 = ref span78[1]; + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.09424f, 217.9514f, 773.35565f), 397); + num2++; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397) { Fly = true, @@ -106629,24 +126810,34 @@ public static class AssemblyQuestLoader num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = 4374u; + span7 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span7[index3] = 4374u; obj137.KillEnemyDataIds = list195; - num3 = 6; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span79 = CollectionsMarshal.AsSpan(list196); - span79[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = null; + index3 = 6; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + span5 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span5[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj137.CompletionQuestVariablesFlags = list196; reference142 = obj137; - span78[2] = new QuestStep(EInteractionType.Interact, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397); obj136.Steps = list194; reference141 = obj136; - ref QuestSequence reference143 = ref span76[5]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -106654,13 +126845,15 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span80 = CollectionsMarshal.AsSpan(list197); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1676) }; @@ -106673,22 +126866,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "liza"; questRoot26.Author = list198; - num = 6; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span81 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference144 = ref span81[0]; + index = 6; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - Span span82 = CollectionsMarshal.AsSpan(list200); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106700,10 +126897,12 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj139.Steps = list200; reference144 = obj139; - ref QuestSequence reference145 = ref span81[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -106711,29 +126910,35 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2005528u, new Vector3(-381.5824f, 52.475708f, -298.81744f), 180) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005528u, new Vector3(-381.5824f, 52.475708f, -298.81744f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj140.Steps = list201; reference145 = obj140; - ref QuestSequence reference146 = ref span81[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2005529u, new Vector3(290.15015f, 41.275635f, -193.83539f), 139) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005529u, new Vector3(290.15015f, 41.275635f, -193.83539f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj141.Steps = list202; reference146 = obj141; - ref QuestSequence reference147 = ref span81[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -106741,81 +126946,114 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013143u, new Vector3(405.1117f, 4.109556f, 81.04065f), 139) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013143u, new Vector3(405.1117f, 4.109556f, 81.04065f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj142.Steps = list203; reference147 = obj142; - ref QuestSequence reference148 = ref span81[4]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span83 = CollectionsMarshal.AsSpan(list204); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(489.20578f, 16.495434f, 69.11804f), 139); - ref QuestStep reference149 = ref span83[1]; + index2 = 5; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(489.20578f, 16.495434f, 69.11804f), 139); + num2++; + ref QuestStep reference149 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1013146u, new Vector3(489.73828f, 16.495436f, 67.33801f), 139); num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span84 = CollectionsMarshal.AsSpan(list205); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list205; reference149 = questStep7; - ref QuestStep reference150 = ref span83[2]; + num2++; + ref QuestStep reference150 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1013147u, new Vector3(487.84607f, 16.495436f, 68.0094f), 139); - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span85 = CollectionsMarshal.AsSpan(list206); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + span5 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list206; reference150 = questStep8; - ref QuestStep reference151 = ref span83[3]; + num2++; + ref QuestStep reference151 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1013148u, new Vector3(489.64673f, 16.495436f, 70.573f), 139); num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span86 = CollectionsMarshal.AsSpan(list207); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list207; reference151 = questStep9; - ref QuestStep reference152 = ref span83[4]; + num2++; + ref QuestStep reference152 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1013198u, new Vector3(487.47998f, 16.495436f, 70.35925f), 139); - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span87 = CollectionsMarshal.AsSpan(list208); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span5 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list208; reference152 = questStep10; obj143.Steps = list204; reference148 = obj143; - ref QuestSequence reference153 = ref span81[5]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -106823,7 +127061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013199u, new Vector3(491.47778f, 16.495434f, 69.16907f), 139) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013199u, new Vector3(491.47778f, 16.495434f, 69.16907f), 139) { NextQuestId = new QuestId(2923) }; @@ -106836,21 +127076,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list210; - num = 4; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span88 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference154 = ref span88[0]; + index = 4; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -106863,7 +127108,8 @@ public static class AssemblyQuestLoader }; obj145.Steps = list212; reference154 = obj145; - ref QuestSequence reference155 = ref span88[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -106871,35 +127117,41 @@ public static class AssemblyQuestLoader num2 = 2; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span89 = CollectionsMarshal.AsSpan(list213); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span89[1] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); obj146.Steps = list213; reference155 = obj146; - ref QuestSequence reference156 = ref span88[2]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span90 = CollectionsMarshal.AsSpan(list214); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - span90[1] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) { Fly = true }; obj147.Steps = list214; reference156 = obj147; - ref QuestSequence reference157 = ref span88[3]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -106907,12 +127159,14 @@ public static class AssemblyQuestLoader num2 = 2; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span91 = CollectionsMarshal.AsSpan(list215); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true }; - span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(598) }; @@ -106925,21 +127179,26 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "liza"; questRoot28.Author = list216; - num = 4; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span92 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference158 = ref span92[0]; + index = 4; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -106957,14 +127216,17 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span6[index3] = 131; obj151.InTerritory = list219; skipConditions6.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions6; reference159 = obj150; obj149.Steps = list218; reference158 = obj149; - ref QuestSequence reference160 = ref span92[1]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 @@ -106972,32 +127234,38 @@ public static class AssemblyQuestLoader num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span93 = CollectionsMarshal.AsSpan(list220); - span93[0] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) { TargetTerritoryId = (ushort)146, Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - span93[1] = new QuestStep(EInteractionType.Interact, 1013042u, new Vector3(-465.93427f, -3.164927f, 66.666626f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013042u, new Vector3(-465.93427f, -3.164927f, 66.666626f), 146); obj152.Steps = list220; reference160 = obj152; - ref QuestSequence reference161 = ref span92[2]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1013043u, new Vector3(184.6189f, 3.1809216f, -334.27942f), 145) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013043u, new Vector3(184.6189f, 3.1809216f, -334.27942f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj153.Steps = list221; reference161 = obj153; - ref QuestSequence reference162 = ref span92[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -107005,7 +127273,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107024,21 +127294,26 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "liza"; questRoot29.Author = list223; - num = 5; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span94 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference163 = ref span94[0]; + index = 5; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference164 = ref span3[num2]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107053,17 +127328,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 131; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + span6 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span6[num3] = 131; obj157.InTerritory = list226; skipConditions7.AetheryteShortcutIf = obj157; obj156.SkipConditions = skipConditions7; reference164 = obj156; obj155.Steps = list225; reference163 = obj155; - ref QuestSequence reference165 = ref span94[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -107071,22 +127349,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj158.Steps = list227; reference165 = obj158; - ref QuestSequence reference166 = ref span94[2]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list228)[0]; + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference167 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 1013044u, new Vector3(191.72961f, -1.9153122f, 32.944214f), 145) { Fly = true @@ -107094,7 +127377,9 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM520_01679_Q1_000_000"), @@ -107104,7 +127389,8 @@ public static class AssemblyQuestLoader reference167 = obj160; obj159.Steps = list228; reference166 = obj159; - ref QuestSequence reference168 = ref span94[3]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 3 @@ -107112,21 +127398,26 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true }; obj161.Steps = list230; reference168 = obj161; - ref QuestSequence reference169 = ref span94[4]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107145,13 +127436,16 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "liza"; questRoot30.Author = list232; - num = 6; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span95 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference170 = ref span95[0]; + index = 6; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -107159,7 +127453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list234)[0]; + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + ref QuestStep reference171 = ref span3[index2]; QuestStep obj164 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107174,32 +127470,38 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = 131; + index3 = 1; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + span6 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span6[num3] = 131; obj165.InTerritory = list235; skipConditions8.AetheryteShortcutIf = obj165; obj164.SkipConditions = skipConditions8; reference171 = obj164; obj163.Steps = list234; reference170 = obj163; - ref QuestSequence reference172 = ref span95[1]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1013047u, new Vector3(409.4757f, -3.3999999f, 198.99292f), 139) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013047u, new Vector3(409.4757f, -3.3999999f, 198.99292f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj166.Steps = list236; reference172 = obj166; - ref QuestSequence reference173 = ref span95[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 @@ -107207,21 +127509,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2005469u, new Vector3(377.6454f, 0.77819824f, -3.616455f), 139) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005469u, new Vector3(377.6454f, 0.77819824f, -3.616455f), 139) { Fly = true }; obj167.Steps = list237; reference173 = obj167; - ref QuestSequence reference174 = ref span95[3]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list238)[0]; + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference175 = ref span3[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(397.41708f, -3.3999999f, 10.57353f), 139) { StopDistance = 0.5f, @@ -107230,12 +127537,15 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 5049u; + span7 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span7[index3] = 5049u; obj169.KillEnemyDataIds = list239; reference175 = obj169; obj168.Steps = list238; reference174 = obj168; - ref QuestSequence reference176 = ref span95[4]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 @@ -107243,18 +127553,23 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1013048u, new Vector3(399.0996f, -3.3999999f, 11.215393f), 139); + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013048u, new Vector3(399.0996f, -3.3999999f, 11.215393f), 139); obj170.Steps = list240; reference176 = obj170; - ref QuestSequence reference177 = ref span95[5]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107273,13 +127588,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "liza"; questRoot31.Author = list242; - num = 4; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span96 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference178 = ref span96[0]; + index = 4; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -107287,7 +127605,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list244)[0]; + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + ref QuestStep reference179 = ref span3[index2]; QuestStep obj173 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107302,25 +127622,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 131; + index3 = 1; + List list245 = new List(index3); + CollectionsMarshal.SetCount(list245, index3); + span6 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span6[num3] = 131; obj174.InTerritory = list245; skipConditions9.AetheryteShortcutIf = obj174; obj173.SkipConditions = skipConditions9; reference179 = obj173; obj172.Steps = list244; reference178 = obj172; - ref QuestSequence reference180 = ref span96[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - ref QuestStep reference181 = ref CollectionsMarshal.AsSpan(list246)[0]; + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference181 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, null, new Vector3(-173.73607f, -61.73199f, 370.57892f), 154) { StopDistance = 0.5f, @@ -107331,12 +127656,15 @@ public static class AssemblyQuestLoader num3 = 1; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = 4360u; + span7 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span7[index3] = 4360u; obj176.KillEnemyDataIds = list247; reference181 = obj176; obj175.Steps = list246; reference180 = obj175; - ref QuestSequence reference182 = ref span96[2]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -107344,18 +127672,23 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013055u, new Vector3(-175.1278f, -61.86741f, 371.99963f), 154); + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013055u, new Vector3(-175.1278f, -61.86741f, 371.99963f), 154); obj177.Steps = list248; reference182 = obj177; - ref QuestSequence reference183 = ref span96[3]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list249)[0]; + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + ref QuestStep reference184 = ref span3[num2]; QuestStep obj179 = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107365,10 +127698,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new DialogueChoice + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + span4 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM560_01681_Q1_000_000"), @@ -107386,13 +127721,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "liza"; questRoot32.Author = list251; - num = 7; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span97 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference185 = ref span97[0]; + index = 7; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + span2 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -107400,7 +127738,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list253)[0]; + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107418,22 +127758,27 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span6[index3] = 131; obj182.InTerritory = list254; skipConditions10.AetheryteShortcutIf = obj182; obj181.SkipConditions = skipConditions10; reference186 = obj181; obj180.Steps = list253; reference185 = obj180; - ref QuestSequence reference187 = ref span97[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1013059u, new Vector3(30.411133f, 7.1999984f, -103.07471f), 130) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013059u, new Vector3(30.411133f, 7.1999984f, -103.07471f), 130) { AethernetShortcut = new AethernetShortcut { @@ -107443,7 +127788,8 @@ public static class AssemblyQuestLoader }; obj183.Steps = list255; reference187 = obj183; - ref QuestSequence reference188 = ref span97[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -107451,7 +127797,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1013060u, new Vector3(26.04712f, 1.2752796f, 92.851074f), 418) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013060u, new Vector3(26.04712f, 1.2752796f, 92.851074f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -107462,15 +127810,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list256; reference188 = obj184; - ref QuestSequence reference189 = ref span97[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1013061u, new Vector3(-277.69897f, 124.9653f, -19.394226f), 397) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013061u, new Vector3(-277.69897f, 124.9653f, -19.394226f), 397) { StopDistance = 1.5f, Fly = true, @@ -107478,7 +127829,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list257; reference189 = obj185; - ref QuestSequence reference190 = ref span97[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 4 @@ -107486,60 +127838,84 @@ public static class AssemblyQuestLoader num2 = 3; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span98 = CollectionsMarshal.AsSpan(list258); - ref QuestStep reference191 = ref span98[0]; + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + ref QuestStep reference191 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1013064u, new Vector3(-308.33905f, 126.09976f, -14.847046f), 397); - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span99 = CollectionsMarshal.AsSpan(list259); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list259 = new List(index3); + CollectionsMarshal.SetCount(list259, index3); + span5 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list259; reference191 = questStep11; - ref QuestStep reference192 = ref span98[1]; + index2++; + ref QuestStep reference192 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1013062u, new Vector3(-301.99133f, 126.85933f, 4.8981323f), 397); num3 = 6; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span100 = CollectionsMarshal.AsSpan(list260); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list260; reference192 = questStep12; - ref QuestStep reference193 = ref span98[2]; + index2++; + ref QuestStep reference193 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1013063u, new Vector3(-284.44348f, 127.18384f, 11.825684f), 397); - num3 = 6; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span101 = CollectionsMarshal.AsSpan(list261); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + span5 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list261; reference193 = questStep13; obj186.Steps = list258; reference190 = obj186; - ref QuestSequence reference194 = ref span97[5]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list262)[0]; + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj188 = new QuestStep(EInteractionType.SinglePlayerDuty, 1013065u, new Vector3(-67.00244f, 98.04463f, 189.99011f), 397) { Fly = true @@ -107547,7 +127923,9 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM580_01682_Q1_000_000"), @@ -107557,7 +127935,8 @@ public static class AssemblyQuestLoader reference195 = obj188; obj187.Steps = list262; reference194 = obj187; - ref QuestSequence reference196 = ref span97[6]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -107565,7 +127944,9 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107584,21 +127965,26 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list265); + index = 0; + span[index] = "liza"; questRoot33.Author = list265; - num = 6; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span102 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference197 = ref span102[0]; + index = 6; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + span2 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list267)[0]; + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + ref QuestStep reference198 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107613,17 +127999,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 131; + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + span6 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span6[num3] = 131; obj192.InTerritory = list268; skipConditions11.AetheryteShortcutIf = obj192; obj191.SkipConditions = skipConditions11; reference198 = obj191; obj190.Steps = list267; reference197 = obj190; - ref QuestSequence reference199 = ref span102[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 @@ -107631,32 +128020,39 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013066u, new Vector3(385.27502f, -18.74231f, 273.0907f), 145) + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013066u, new Vector3(385.27502f, -18.74231f, 273.0907f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj193.Steps = list269; reference199 = obj193; - span102[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference200 = ref span102[3]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1013187u, new Vector3(476.73767f, -64.30186f, 234.2107f), 145) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013187u, new Vector3(476.73767f, -64.30186f, 234.2107f), 145) { StopDistance = 5f }; obj194.Steps = list270; reference200 = obj194; - ref QuestSequence reference201 = ref span102[4]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 4 @@ -107664,64 +128060,89 @@ public static class AssemblyQuestLoader num2 = 4; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span103 = CollectionsMarshal.AsSpan(list271); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.93842f, 28.63408f, 66.419495f), 145) + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.93842f, 28.63408f, 66.419495f), 145) { Fly = true }; - ref QuestStep reference202 = ref span103[1]; + index2++; + ref QuestStep reference202 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1013189u, new Vector3(322.89612f, 10.818874f, -8.46875f), 145); num3 = 6; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span104 = CollectionsMarshal.AsSpan(list272); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list272; reference202 = questStep14; - ref QuestStep reference203 = ref span103[2]; + index2++; + ref QuestStep reference203 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145); - num3 = 6; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span105 = CollectionsMarshal.AsSpan(list273); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + span5 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list273; reference203 = questStep15; - ref QuestStep reference204 = ref span103[3]; + index2++; + ref QuestStep reference204 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1013188u, new Vector3(327.96216f, 11.425721f, -6.7597656f), 145); num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span106 = CollectionsMarshal.AsSpan(list274); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list274); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list274; reference204 = questStep16; obj195.Steps = list271; reference201 = obj195; - ref QuestSequence reference205 = ref span102[5]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107740,13 +128161,16 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "xan"; questRoot34.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span107 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference206 = ref span107[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -107754,8 +128178,9 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span108 = CollectionsMarshal.AsSpan(list278); - span108[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -107771,32 +128196,38 @@ public static class AssemblyQuestLoader } } }; - span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj197.Steps = list278; reference206 = obj197; - ref QuestSequence reference207 = ref span107[1]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span109 = CollectionsMarshal.AsSpan(list279); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(227.31966f, -0.91833544f, 258.60855f), 139) + index2 = 3; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(227.31966f, -0.91833544f, 258.60855f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span109[1] = new QuestStep(EInteractionType.Interact, 1003587u, new Vector3(220.90479f, -0.9591979f, 257.4043f), 139) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003587u, new Vector3(220.90479f, -0.9591979f, 257.4043f), 139) { TargetTerritoryId = (ushort)139, Mount = false }; - span109[2] = new QuestStep(EInteractionType.Interact, 1013893u, new Vector3(-335.2865f, -2.7013655f, 135.17957f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013893u, new Vector3(-335.2865f, -2.7013655f, 135.17957f), 139); obj198.Steps = list279; reference207 = obj198; - ref QuestSequence reference208 = ref span107[2]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -107804,96 +128235,127 @@ public static class AssemblyQuestLoader num2 = 3; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span110 = CollectionsMarshal.AsSpan(list280); - ref QuestStep reference209 = ref span110[0]; + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2005925u, new Vector3(-449.08832f, -1.2055054f, 116.59412f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - Span span111 = CollectionsMarshal.AsSpan(list281); - span111[0] = 5048u; - span111[1] = 5046u; + index3 = 2; + List list281 = new List(index3); + CollectionsMarshal.SetCount(list281, index3); + span7 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span7[num3] = 5048u; + num3++; + span7[num3] = 5046u; obj200.KillEnemyDataIds = list281; num3 = 6; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - Span span112 = CollectionsMarshal.AsSpan(list282); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list282); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list282; reference209 = obj200; - ref QuestStep reference210 = ref span110[1]; + index2++; + ref QuestStep reference210 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2005926u, new Vector3(-424.24664f, -5.1728516f, 168.65796f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - Span span113 = CollectionsMarshal.AsSpan(list283); - span113[0] = 5046u; - span113[1] = 5048u; + index3 = 2; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + span7 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span7[num3] = 5046u; + num3++; + span7[num3] = 5048u; obj201.KillEnemyDataIds = list283; num3 = 6; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - Span span114 = CollectionsMarshal.AsSpan(list284); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list284); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list284; reference210 = obj201; - ref QuestStep reference211 = ref span110[2]; + index2++; + ref QuestStep reference211 = ref span3[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2005927u, new Vector3(-457.75543f, -12.64978f, 218.92114f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - Span span115 = CollectionsMarshal.AsSpan(list285); - span115[0] = 5042u; - span115[1] = 4619u; + index3 = 2; + List list285 = new List(index3); + CollectionsMarshal.SetCount(list285, index3); + span7 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span7[num3] = 5042u; + num3++; + span7[num3] = 4619u; obj202.KillEnemyDataIds = list285; num3 = 6; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - Span span116 = CollectionsMarshal.AsSpan(list286); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list286); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list286; reference211 = obj202; obj199.Steps = list280; reference208 = obj199; - ref QuestSequence reference212 = ref span107[3]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1013896u, new Vector3(-430.89954f, -12.362141f, 208.23987f), 139); + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013896u, new Vector3(-430.89954f, -12.362141f, 208.23987f), 139); obj203.Steps = list287; reference212 = obj203; - ref QuestSequence reference213 = ref span107[4]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue @@ -107901,8 +128363,9 @@ public static class AssemblyQuestLoader num2 = 2; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span117 = CollectionsMarshal.AsSpan(list288); - span117[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -107918,7 +128381,8 @@ public static class AssemblyQuestLoader } } }; - span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1685) }; @@ -107931,22 +128395,26 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list289); + index = 0; + span[index] = "xan"; questRoot35.Author = list289; - num = 9; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span118 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference214 = ref span118[0]; + index = 9; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + span2 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span119 = CollectionsMarshal.AsSpan(list291); - span119[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -107962,10 +128430,12 @@ public static class AssemblyQuestLoader } } }; - span119[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj205.Steps = list291; reference214 = obj205; - ref QuestSequence reference215 = ref span118[1]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 @@ -107973,7 +128443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list292)[0]; + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + ref QuestStep reference216 = ref span3[index2]; QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1013898u, new Vector3(107.71338f, 68.15523f, 332.5094f), 135) { Fly = true, @@ -107986,10 +128458,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + span4 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN540_01685_Q1_000_000"), @@ -107999,21 +128473,25 @@ public static class AssemblyQuestLoader reference216 = obj207; obj206.Steps = list292; reference215 = obj206; - ref QuestSequence reference217 = ref span118[2]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Action, 2005928u, new Vector3(-22.842834f, 66.300415f, 426.1692f), 135) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2005928u, new Vector3(-22.842834f, 66.300415f, 426.1692f), 135) { Action = EAction.Raiton }; obj208.Steps = list294; reference217 = obj208; - ref QuestSequence reference218 = ref span118[3]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 @@ -108021,27 +128499,33 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Action, 2005929u, new Vector3(-46.707886f, 48.41687f, 529.1676f), 135) + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2005929u, new Vector3(-46.707886f, 48.41687f, 529.1676f), 135) { Action = EAction.Raiton }; obj209.Steps = list295; reference218 = obj209; - ref QuestSequence reference219 = ref span118[4]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Action, 2005930u, new Vector3(-93.888794f, 26.932129f, 623.25464f), 135) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2005930u, new Vector3(-93.888794f, 26.932129f, 623.25464f), 135) { Action = EAction.Raiton }; obj210.Steps = list296; reference219 = obj210; - ref QuestSequence reference220 = ref span118[5]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -108049,24 +128533,30 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005931u, new Vector3(-185.41241f, 0.015197754f, 678.8281f), 135) + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005931u, new Vector3(-185.41241f, 0.015197754f, 678.8281f), 135) { Fly = true }; obj211.Steps = list297; reference220 = obj211; - ref QuestSequence reference221 = ref span118[6]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1013906u, new Vector3(-136.88867f, 2.2586327f, 697.8407f), 135); + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013906u, new Vector3(-136.88867f, 2.2586327f, 697.8407f), 135); obj212.Steps = list298; reference221 = obj212; - ref QuestSequence reference222 = ref span118[7]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 7 @@ -108074,7 +128564,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list299)[0]; + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + ref QuestStep reference223 = ref span3[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1013908u, new Vector3(-38.010254f, 71.439964f, 111.95532f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -108089,23 +128581,27 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = 129; + span6 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span6[index3] = 129; skipAetheryteCondition.InTerritory = list300; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition; obj214.SkipConditions = skipConditions12; reference223 = obj214; obj213.Steps = list299; reference222 = obj213; - ref QuestSequence reference224 = ref span118[8]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span120 = CollectionsMarshal.AsSpan(list301); - span120[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108121,7 +128617,8 @@ public static class AssemblyQuestLoader } } }; - span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1686) }; @@ -108134,13 +128631,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "xan"; questRoot36.Author = list302; - num = 6; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span121 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference225 = ref span121[0]; + index = 6; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -108148,8 +128648,9 @@ public static class AssemblyQuestLoader num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span122 = CollectionsMarshal.AsSpan(list304); - span122[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108165,19 +128666,22 @@ public static class AssemblyQuestLoader } } }; - span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj216.Steps = list304; reference225 = obj216; - ref QuestSequence reference226 = ref span121[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span123 = CollectionsMarshal.AsSpan(list305); - span123[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -108208,10 +128712,12 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj217.Steps = list305; reference226 = obj217; - ref QuestSequence reference227 = ref span121[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -108219,8 +128725,9 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span124 = CollectionsMarshal.AsSpan(list306); - ref QuestStep reference228 = ref span124[0]; + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + ref QuestStep reference228 = ref span3[index2]; QuestStep obj219 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(246.007f, 56.384f, 839.334f), 137) { TargetTerritoryId = (ushort)135, @@ -108229,10 +128736,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 135; + index3 = 1; + List list307 = new List(index3); + CollectionsMarshal.SetCount(list307, index3); + span6 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span6[num3] = 135; skipStepConditions5.InTerritory = list307; skipConditions13.StepIf = skipStepConditions5; SkipAetheryteCondition obj220 = new SkipAetheryteCondition @@ -108242,37 +128751,46 @@ public static class AssemblyQuestLoader num3 = 1; List list308 = new List(num3); CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = 135; + span6 = CollectionsMarshal.AsSpan(list308); + index3 = 0; + span6[index3] = 135; obj220.InTerritory = list308; skipConditions13.AetheryteShortcutIf = obj220; obj219.SkipConditions = skipConditions13; reference228 = obj219; - ref QuestStep reference229 = ref span124[1]; + index2++; + ref QuestStep reference229 = ref span3[index2]; QuestStep obj221 = new QuestStep(EInteractionType.Combat, null, new Vector3(508.80716f, 95.940796f, -450.35608f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = 4616u; + index3 = 1; + List list309 = new List(index3); + CollectionsMarshal.SetCount(list309, index3); + span7 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span7[num3] = 4616u; obj221.KillEnemyDataIds = list309; reference229 = obj221; obj218.Steps = list306; reference227 = obj218; - ref QuestSequence reference230 = ref span121[3]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1013909u, new Vector3(508.75085f, 95.94249f, -450.2785f), 135); + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013909u, new Vector3(508.75085f, 95.94249f, -450.2785f), 135); obj222.Steps = list310; reference230 = obj222; - ref QuestSequence reference231 = ref span121[4]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 @@ -108280,7 +128798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 2005932u, new Vector3(483.36f, 10.879639f, 348.89746f), 137) + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005932u, new Vector3(483.36f, 10.879639f, 348.89746f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -108293,16 +128813,18 @@ public static class AssemblyQuestLoader }; obj223.Steps = list311; reference231 = obj223; - ref QuestSequence reference232 = ref span121[5]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span125 = CollectionsMarshal.AsSpan(list312); - span125[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108314,7 +128836,8 @@ public static class AssemblyQuestLoader } } }; - span125[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1687) }; @@ -108327,13 +128850,16 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list313); + index = 0; + span[index] = "xan"; questRoot37.Author = list313; - num = 8; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span126 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference233 = ref span126[0]; + index = 8; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + span2 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -108341,8 +128867,9 @@ public static class AssemblyQuestLoader num2 = 2; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span127 = CollectionsMarshal.AsSpan(list315); - span127[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108358,18 +128885,22 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj225.Steps = list315; reference233 = obj225; - ref QuestSequence reference234 = ref span126[1]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -108380,7 +128911,8 @@ public static class AssemblyQuestLoader }; obj226.Steps = list316; reference234 = obj226; - ref QuestSequence reference235 = ref span126[2]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -108388,7 +128920,9 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.UseItem, 2005934u, new Vector3(-188.79993f, 1.7241821f, 207.7821f), 129) + span3 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2005934u, new Vector3(-188.79993f, 1.7241821f, 207.7821f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -108400,18 +128934,22 @@ public static class AssemblyQuestLoader }; obj227.Steps = list317; reference235 = obj227; - ref QuestSequence reference236 = ref span126[3]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 2005935u, new Vector3(-175.55511f, 3.982544f, 179.24768f), 129); + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span3 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005935u, new Vector3(-175.55511f, 3.982544f, 179.24768f), 129); obj228.Steps = list318; reference236 = obj228; - ref QuestSequence reference237 = ref span126[4]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -108419,24 +128957,29 @@ public static class AssemblyQuestLoader num2 = 2; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span128 = CollectionsMarshal.AsSpan(list319); - span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(234.53989f, -56.43721f, -254.02878f), 398) + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(234.53989f, -56.43721f, -254.02878f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span128[1] = new QuestStep(EInteractionType.Interact, 1013912u, new Vector3(230.73157f, -56.71082f, -247.21143f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013912u, new Vector3(230.73157f, -56.71082f, -247.21143f), 398); obj229.Steps = list319; reference237 = obj229; - ref QuestSequence reference238 = ref span126[5]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list320)[0]; + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + ref QuestStep reference239 = ref span3[num2]; QuestStep obj231 = new QuestStep(EInteractionType.Combat, 2005938u, new Vector3(163.28674f, -64.2558f, -102.89166f), 398) { Fly = true, @@ -108445,14 +128988,17 @@ public static class AssemblyQuestLoader num3 = 2; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span129 = CollectionsMarshal.AsSpan(list321); - span129[0] = 5042u; - span129[1] = 4619u; + span7 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span7[index3] = 5042u; + index3++; + span7[index3] = 4619u; obj231.KillEnemyDataIds = list321; reference239 = obj231; obj230.Steps = list320; reference238 = obj230; - ref QuestSequence reference240 = ref span126[6]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 6 @@ -108460,22 +129006,26 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1015302u, new Vector3(237.59814f, -54.04252f, -217.02905f), 398) + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015302u, new Vector3(237.59814f, -54.04252f, -217.02905f), 398) { Fly = true }; obj232.Steps = list322; reference240 = obj232; - ref QuestSequence reference241 = ref span126[7]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - Span span130 = CollectionsMarshal.AsSpan(list323); - span130[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108487,7 +129037,8 @@ public static class AssemblyQuestLoader } } }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1688) }; @@ -108500,13 +129051,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list324); + index = 0; + span[index] = "xan"; questRoot38.Author = list324; - num = 8; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span131 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference242 = ref span131[0]; + index = 8; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + span2 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -108514,8 +129068,9 @@ public static class AssemblyQuestLoader num2 = 2; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span132 = CollectionsMarshal.AsSpan(list326); - span132[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108531,19 +129086,22 @@ public static class AssemblyQuestLoader } } }; - span132[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj234.Steps = list326; reference242 = obj234; - ref QuestSequence reference243 = ref span131[1]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - Span span133 = CollectionsMarshal.AsSpan(list327); - span133[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + index2 = 3; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -108559,59 +129117,78 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference244 = ref span133[1]; + num2++; + ref QuestStep reference244 = ref span3[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, 2005940u, new Vector3(-4.867676f, 39.414062f, 263.7826f), 137) { Emote = EEmote.Doze, EnemySpawnType = EEnemySpawnType.AfterEmote }; - num3 = 2; - List list328 = new List(num3); - CollectionsMarshal.SetCount(list328, num3); - Span span134 = CollectionsMarshal.AsSpan(list328); - span134[0] = 5042u; - span134[1] = 4619u; + index3 = 2; + List list328 = new List(index3); + CollectionsMarshal.SetCount(list328, index3); + span7 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span7[num3] = 5042u; + num3++; + span7[num3] = 4619u; obj236.KillEnemyDataIds = list328; num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span135 = CollectionsMarshal.AsSpan(list329); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list329); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj236.CompletionQuestVariablesFlags = list329; reference244 = obj236; - ref QuestStep reference245 = ref span133[2]; + num2++; + ref QuestStep reference245 = ref span3[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Combat, 2005941u, new Vector3(-47.104614f, 39.749634f, 255.6648f), 137) { Emote = EEmote.Doze, EnemySpawnType = EEnemySpawnType.AfterEmote }; - num3 = 2; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span136 = CollectionsMarshal.AsSpan(list330); - span136[0] = 5042u; - span136[1] = 4619u; + index3 = 2; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + span7 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span7[num3] = 5042u; + num3++; + span7[num3] = 4619u; obj237.KillEnemyDataIds = list330; num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span137 = CollectionsMarshal.AsSpan(list331); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj237.CompletionQuestVariablesFlags = list331; reference245 = obj237; obj235.Steps = list327; reference243 = obj235; - ref QuestSequence reference246 = ref span131[2]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 2 @@ -108619,8 +129196,9 @@ public static class AssemblyQuestLoader num2 = 2; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span138 = CollectionsMarshal.AsSpan(list332); - span138[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108636,27 +129214,33 @@ public static class AssemblyQuestLoader } } }; - span138[1] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj238.Steps = list332; reference246 = obj238; - ref QuestSequence reference247 = ref span131[3]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - ref QuestStep reference248 = ref CollectionsMarshal.AsSpan(list333)[0]; + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + ref QuestStep reference248 = ref span3[num2]; QuestStep obj240 = new QuestStep(EInteractionType.Interact, 1013916u, new Vector3(103.990234f, 53.596413f, 674.8607f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num3 = 1; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - CollectionsMarshal.AsSpan(list334)[0] = new DialogueChoice + index3 = 1; + List list334 = new List(index3); + CollectionsMarshal.SetCount(list334, index3); + span4 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN600_01688_Q1_000_000"), @@ -108666,7 +129250,8 @@ public static class AssemblyQuestLoader reference248 = obj240; obj239.Steps = list333; reference247 = obj239; - ref QuestSequence reference249 = ref span131[4]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -108674,27 +129259,33 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 2005942u, new Vector3(122.545166f, 60.65454f, 934.47766f), 135) + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005942u, new Vector3(122.545166f, 60.65454f, 934.47766f), 135) { Fly = true }; obj241.Steps = list335; reference249 = obj241; - ref QuestSequence reference250 = ref span131[5]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135) { Fly = true }; obj242.Steps = list336; reference250 = obj242; - ref QuestSequence reference251 = ref span131[6]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 6 @@ -108702,19 +129293,23 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135); + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135); obj243.Steps = list337; reference251 = obj243; - ref QuestSequence reference252 = ref span131[7]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - Span span139 = CollectionsMarshal.AsSpan(list338); - span139[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108726,7 +129321,8 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2948) }; @@ -108739,13 +129335,16 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list339); + index = 0; + span[index] = "AnimaMachinae"; questRoot39.Author = list339; - num = 3; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span140 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference253 = ref span140[0]; + index = 3; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + span2 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -108753,8 +129352,9 @@ public static class AssemblyQuestLoader num2 = 2; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span141 = CollectionsMarshal.AsSpan(list341); - span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -108767,19 +129367,22 @@ public static class AssemblyQuestLoader } } }; - span141[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj245.Steps = list341; reference253 = obj245; - ref QuestSequence reference254 = ref span140[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span142 = CollectionsMarshal.AsSpan(list342); - ref QuestStep reference255 = ref span142[0]; + index2 = 2; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + ref QuestStep reference255 = ref span3[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155) { Fly = true, @@ -108790,24 +129393,34 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = 4478u; + span7 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span7[index3] = 4478u; obj247.KillEnemyDataIds = list343; - num3 = 6; - List list344 = new List(num3); - CollectionsMarshal.SetCount(list344, num3); - Span span143 = CollectionsMarshal.AsSpan(list344); - span143[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = null; + index3 = 6; + List list344 = new List(index3); + CollectionsMarshal.SetCount(list344, index3); + span5 = CollectionsMarshal.AsSpan(list344); + num3 = 0; + span5[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj247.CompletionQuestVariablesFlags = list344; reference255 = obj247; - span142[1] = new QuestStep(EInteractionType.Interact, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155); obj246.Steps = list342; reference254 = obj246; - ref QuestSequence reference256 = ref span140[2]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -108815,14 +129428,16 @@ public static class AssemblyQuestLoader num2 = 2; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span144 = CollectionsMarshal.AsSpan(list345); - span144[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span144[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -108835,22 +129450,26 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - CollectionsMarshal.AsSpan(list346)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list346); + index = 0; + span[index] = "AnimaMachinae"; questRoot40.Author = list346; - num = 5; - List list347 = new List(num); - CollectionsMarshal.SetCount(list347, num); - Span span145 = CollectionsMarshal.AsSpan(list347); - ref QuestSequence reference257 = ref span145[0]; + index = 5; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + span2 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - Span span146 = CollectionsMarshal.AsSpan(list348); - span146[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -108863,10 +129482,12 @@ public static class AssemblyQuestLoader } } }; - span146[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj249.Steps = list348; reference257 = obj249; - ref QuestSequence reference258 = ref span145[1]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 1 @@ -108874,7 +129495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list349)[0]; + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + ref QuestStep reference259 = ref span3[index2]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397) { Fly = true, @@ -108885,23 +129508,29 @@ public static class AssemblyQuestLoader num3 = 1; List list350 = new List(num3); CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = 4504u; + span7 = CollectionsMarshal.AsSpan(list350); + index3 = 0; + span7[index3] = 4504u; obj251.KillEnemyDataIds = list350; reference259 = obj251; obj250.Steps = list349; reference258 = obj250; - ref QuestSequence reference260 = ref span145[2]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397); obj252.Steps = list351; reference260 = obj252; - ref QuestSequence reference261 = ref span145[3]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 3 @@ -108909,30 +129538,37 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list352)[0]; + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + ref QuestStep reference262 = ref span3[index2]; QuestStep obj254 = new QuestStep(EInteractionType.Combat, 2006182u, new Vector3(197.40588f, 184.00854f, -102.80011f), 397) { Fly = true, Land = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = 4486u; + index3 = 1; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + span7 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span7[num3] = 4486u; obj254.KillEnemyDataIds = list353; reference262 = obj254; obj253.Steps = list352; reference261 = obj253; - ref QuestSequence reference263 = ref span145[4]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397); + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397); obj255.Steps = list354; reference263 = obj255; questRoot40.QuestSequence = list347; @@ -108942,13 +129578,16 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list355); + index = 0; + span[index] = "AnimaMachinae"; questRoot41.Author = list355; - num = 3; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span147 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference264 = ref span147[0]; + index = 3; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + span2 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -108956,7 +129595,9 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397) + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -108969,15 +129610,18 @@ public static class AssemblyQuestLoader }; obj256.Steps = list357; reference264 = obj256; - ref QuestSequence reference265 = ref span147[1]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1013448u, new Vector3(83.26843f, 23.979126f, 2.3345947f), 418) + index2 = 1; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span3 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013448u, new Vector3(83.26843f, 23.979126f, 2.3345947f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -108995,7 +129639,8 @@ public static class AssemblyQuestLoader }; obj257.Steps = list358; reference265 = obj257; - ref QuestSequence reference266 = ref span147[2]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue @@ -109003,14 +129648,16 @@ public static class AssemblyQuestLoader num2 = 2; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span148 = CollectionsMarshal.AsSpan(list359); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span148[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -109023,22 +129670,26 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list360); + index = 0; + span[index] = "AnimaMachinae"; questRoot42.Author = list360; - num = 6; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span149 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference267 = ref span149[0]; + index = 6; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + span2 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - Span span150 = CollectionsMarshal.AsSpan(list362); - span150[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109051,10 +129702,12 @@ public static class AssemblyQuestLoader } } }; - span150[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj259.Steps = list362; reference267 = obj259; - ref QuestSequence reference268 = ref span149[1]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 1 @@ -109062,7 +129715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1013450u, new Vector3(84.30603f, 23.979128f, -12.802368f), 418) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013450u, new Vector3(84.30603f, 23.979128f, -12.802368f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109080,15 +129735,18 @@ public static class AssemblyQuestLoader }; obj260.Steps = list363; reference268 = obj260; - ref QuestSequence reference269 = ref span149[2]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013456u, new Vector3(489.82983f, 164.7244f, 266.25464f), 397) + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + span3 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013456u, new Vector3(489.82983f, 164.7244f, 266.25464f), 397) { Fly = true, Land = true, @@ -109096,7 +129754,8 @@ public static class AssemblyQuestLoader }; obj261.Steps = list364; reference269 = obj261; - ref QuestSequence reference270 = ref span149[3]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 3 @@ -109104,18 +129763,23 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1013457u, new Vector3(492.88147f, 164.6694f, 265.06445f), 397); + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013457u, new Vector3(492.88147f, 164.6694f, 265.06445f), 397); obj262.Steps = list365; reference270 = obj262; - ref QuestSequence reference271 = ref span149[4]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1013464u, new Vector3(133.47058f, 24.400866f, -6.149414f), 418) + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013464u, new Vector3(133.47058f, 24.400866f, -6.149414f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109126,7 +129790,8 @@ public static class AssemblyQuestLoader }; obj263.Steps = list366; reference271 = obj263; - ref QuestSequence reference272 = ref span149[5]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -109134,14 +129799,16 @@ public static class AssemblyQuestLoader num2 = 2; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span151 = CollectionsMarshal.AsSpan(list367); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span151[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -109154,22 +129821,26 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list368); + index = 0; + span[index] = "AnimaMachinae"; questRoot43.Author = list368; - num = 5; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span152 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference273 = ref span152[0]; + index = 5; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + span2 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span153 = CollectionsMarshal.AsSpan(list370); - span153[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109182,10 +129853,12 @@ public static class AssemblyQuestLoader } } }; - span153[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj265.Steps = list370; reference273 = obj265; - ref QuestSequence reference274 = ref span152[1]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -109193,26 +129866,30 @@ public static class AssemblyQuestLoader num2 = 2; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span154 = CollectionsMarshal.AsSpan(list371); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.009445f, 98.00955f, 106.47891f), 397) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.009445f, 98.00955f, 106.47891f), 397) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span154[1] = new QuestStep(EInteractionType.Interact, 1013467u, new Vector3(-51.10254f, 98.63026f, 105.1499f), 397); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013467u, new Vector3(-51.10254f, 98.63026f, 105.1499f), 397); obj266.Steps = list371; reference274 = obj266; - ref QuestSequence reference275 = ref span152[2]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span155 = CollectionsMarshal.AsSpan(list372); - ref QuestStep reference276 = ref span155[0]; + index2 = 2; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference276 = ref span3[num2]; QuestStep obj268 = new QuestStep(EInteractionType.Combat, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397) { Fly = true, @@ -109222,26 +129899,36 @@ public static class AssemblyQuestLoader num3 = 2; List list373 = new List(num3); CollectionsMarshal.SetCount(list373, num3); - Span span156 = CollectionsMarshal.AsSpan(list373); - span156[0] = 4482u; - span156[1] = 5049u; + span7 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span7[index3] = 4482u; + index3++; + span7[index3] = 5049u; obj268.KillEnemyDataIds = list373; - num3 = 6; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - Span span157 = CollectionsMarshal.AsSpan(list374); - span157[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = null; + index3 = 6; + List list374 = new List(index3); + CollectionsMarshal.SetCount(list374, index3); + span5 = CollectionsMarshal.AsSpan(list374); + num3 = 0; + span5[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj268.CompletionQuestVariablesFlags = list374; reference276 = obj268; - span155[1] = new QuestStep(EInteractionType.Interact, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397); obj267.Steps = list372; reference275 = obj267; - ref QuestSequence reference277 = ref span152[3]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 @@ -109249,7 +129936,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109267,27 +129956,32 @@ public static class AssemblyQuestLoader }; obj269.Steps = list375; reference277 = obj269; - ref QuestSequence reference278 = ref span152[4]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - Span span158 = CollectionsMarshal.AsSpan(list376); - span158[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - ref QuestStep reference279 = ref span158[1]; + num2++; + ref QuestStep reference279 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.CompleteQuest, 1013470u, new Vector3(218.00562f, 222f, 346.45605f), 155); num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - CollectionsMarshal.AsSpan(list377)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRG560_01693_Q1_000_000"), @@ -109304,13 +129998,16 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list378); + index = 0; + span[index] = "AnimaMachinae"; questRoot44.Author = list378; - num = 6; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span159 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference280 = ref span159[0]; + index = 6; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + span2 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 @@ -109318,8 +130015,9 @@ public static class AssemblyQuestLoader num2 = 2; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span160 = CollectionsMarshal.AsSpan(list380); - span160[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109332,18 +130030,22 @@ public static class AssemblyQuestLoader } } }; - span160[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj271.Steps = list380; reference280 = obj271; - ref QuestSequence reference281 = ref span159[1]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) { Fly = true, Land = true, @@ -109351,7 +130053,8 @@ public static class AssemblyQuestLoader }; obj272.Steps = list381; reference281 = obj272; - ref QuestSequence reference282 = ref span159[2]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 @@ -109359,37 +130062,45 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - ref QuestStep reference283 = ref CollectionsMarshal.AsSpan(list382)[0]; + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + ref QuestStep reference283 = ref span3[index2]; QuestStep obj274 = new QuestStep(EInteractionType.Combat, 1013472u, new Vector3(396.35315f, -50.87535f, 73.04492f), 398) { Fly = true, Land = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - CollectionsMarshal.AsSpan(list383)[0] = 4497u; + index3 = 1; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + span7 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span7[num3] = 4497u; obj274.KillEnemyDataIds = list383; reference283 = obj274; obj273.Steps = list382; reference282 = obj273; - ref QuestSequence reference284 = ref span159[3]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) + index2 = 1; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + span3 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) { Fly = true, Land = true }; obj275.Steps = list384; reference284 = obj275; - ref QuestSequence reference285 = ref span159[4]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 4 @@ -109397,29 +130108,34 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1013476u, new Vector3(571.5571f, -36.290947f, 359.3651f), 398) + span3 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013476u, new Vector3(571.5571f, -36.290947f, 359.3651f), 398) { Fly = true, Land = true }; obj276.Steps = list385; reference285 = obj276; - ref QuestSequence reference286 = ref span159[5]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - Span span161 = CollectionsMarshal.AsSpan(list386); - span161[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + span3 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span161[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -109432,13 +130148,16 @@ public static class AssemblyQuestLoader num = 1; List list387 = new List(num); CollectionsMarshal.SetCount(list387, num); - CollectionsMarshal.AsSpan(list387)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list387); + index = 0; + span[index] = "AnimaMachinae"; questRoot45.Author = list387; - num = 6; - List list388 = new List(num); - CollectionsMarshal.SetCount(list388, num); - Span span162 = CollectionsMarshal.AsSpan(list388); - ref QuestSequence reference287 = ref span162[0]; + index = 6; + List list388 = new List(index); + CollectionsMarshal.SetCount(list388, index); + span2 = CollectionsMarshal.AsSpan(list388); + num = 0; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 0 @@ -109446,8 +130165,9 @@ public static class AssemblyQuestLoader num2 = 2; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span163 = CollectionsMarshal.AsSpan(list389); - span163[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109460,18 +130180,22 @@ public static class AssemblyQuestLoader } } }; - span163[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj278.Steps = list389; reference287 = obj278; - ref QuestSequence reference288 = ref span162[1]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1013483u, new Vector3(-272.26672f, 124.213005f, -23.361572f), 397) + index2 = 1; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + span3 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013483u, new Vector3(-272.26672f, 124.213005f, -23.361572f), 397) { Fly = true, Land = true, @@ -109479,7 +130203,8 @@ public static class AssemblyQuestLoader }; obj279.Steps = list390; reference288 = obj279; - ref QuestSequence reference289 = ref span162[2]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = 2 @@ -109487,29 +130212,35 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1013485u, new Vector3(-360.1892f, 101.91492f, -178.79004f), 397) + span3 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013485u, new Vector3(-360.1892f, 101.91492f, -178.79004f), 397) { Fly = true, Land = true }; obj280.Steps = list391; reference289 = obj280; - ref QuestSequence reference290 = ref span162[3]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1013489u, new Vector3(-429.099f, 121.59912f, -309.49878f), 397) + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + span3 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013489u, new Vector3(-429.099f, 121.59912f, -309.49878f), 397) { Fly = true, Land = true }; obj281.Steps = list392; reference290 = obj281; - ref QuestSequence reference291 = ref span162[4]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 4 @@ -109517,22 +130248,27 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397) + span3 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397) { Fly = true, Land = true }; obj282.Steps = list393; reference291 = obj282; - ref QuestSequence reference292 = ref span162[5]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397); + index2 = 1; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + span3 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397); obj283.Steps = list394; reference292 = obj283; questRoot45.QuestSequence = list388; @@ -109542,13 +130278,16 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list395); + index = 0; + span[index] = "liza"; questRoot46.Author = list395; - num = 6; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span164 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference293 = ref span164[0]; + index = 6; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + span2 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 0 @@ -109556,7 +130295,9 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109574,20 +130315,25 @@ public static class AssemblyQuestLoader }; obj284.Steps = list397; reference293 = obj284; - ref QuestSequence reference294 = ref span164[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference295 = ref CollectionsMarshal.AsSpan(list398)[0]; + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + span3 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + ref QuestStep reference295 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list399); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH300_01696_Q1_000_000"), @@ -109597,7 +130343,8 @@ public static class AssemblyQuestLoader reference295 = questStep18; obj285.Steps = list398; reference294 = obj285; - ref QuestSequence reference296 = ref span164[2]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 2 @@ -109605,66 +130352,91 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180) + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj286.Steps = list400; reference296 = obj286; - ref QuestSequence reference297 = ref span164[3]; + num++; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - Span span165 = CollectionsMarshal.AsSpan(list401); - ref QuestStep reference298 = ref span165[0]; + index2 = 3; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + ref QuestStep reference298 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1014733u, new Vector3(-98.435974f, 64.488625f, -215.56421f), 180); - num3 = 6; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - Span span166 = CollectionsMarshal.AsSpan(list402); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list402 = new List(index3); + CollectionsMarshal.SetCount(list402, index3); + span5 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list402; reference298 = questStep19; - ref QuestStep reference299 = ref span165[1]; + num2++; + ref QuestStep reference299 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1014735u, new Vector3(-112.62689f, 64.39167f, -200.12213f), 180); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span167 = CollectionsMarshal.AsSpan(list403); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list403; reference299 = questStep20; - ref QuestStep reference300 = ref span165[2]; + num2++; + ref QuestStep reference300 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1014734u, new Vector3(-147.81415f, 64.37568f, -220.56921f), 180); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span168 = CollectionsMarshal.AsSpan(list404); - span168[0] = null; - span168[1] = null; - span168[2] = null; - span168[3] = null; - span168[4] = null; - span168[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + span5 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list404; reference300 = questStep21; obj287.Steps = list401; reference297 = obj287; - ref QuestSequence reference301 = ref span164[4]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 4 @@ -109672,18 +130444,23 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180); + span3 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180); obj288.Steps = list405; reference301 = obj288; - ref QuestSequence reference302 = ref span164[5]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014736u, new Vector3(-99.25995f, 62.382347f, -182.78784f), 180) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + span3 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014736u, new Vector3(-99.25995f, 62.382347f, -182.78784f), 180) { NextQuestId = new QuestId(1697) }; @@ -109696,13 +130473,16 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - CollectionsMarshal.AsSpan(list407)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list407); + index = 0; + span[index] = "liza"; questRoot47.Author = list407; - num = 3; - List list408 = new List(num); - CollectionsMarshal.SetCount(list408, num); - Span span169 = CollectionsMarshal.AsSpan(list408); - ref QuestSequence reference303 = ref span169[0]; + index = 3; + List list408 = new List(index); + CollectionsMarshal.SetCount(list408, index); + span2 = CollectionsMarshal.AsSpan(list408); + num = 0; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = 0 @@ -109710,8 +130490,9 @@ public static class AssemblyQuestLoader num2 = 3; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span170 = CollectionsMarshal.AsSpan(list409); - span170[0] = new QuestStep(EInteractionType.EquipItem, null, null, 180) + span3 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, ItemId = 10462u, @@ -109730,25 +130511,31 @@ public static class AssemblyQuestLoader } } }; - span170[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 180); - span170[2] = new QuestStep(EInteractionType.AcceptQuest, 1014739u, new Vector3(-97.33734f, 62.55459f, -175.34143f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014739u, new Vector3(-97.33734f, 62.55459f, -175.34143f), 180); obj290.Steps = list409; reference303 = obj290; - ref QuestSequence reference304 = ref span169[1]; + num++; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014742u, new Vector3(-230.30444f, 63.88775f, -257.4655f), 180) + index2 = 1; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + span3 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014742u, new Vector3(-230.30444f, 63.88775f, -257.4655f), 180) { Fly = true }; obj291.Steps = list410; reference304 = obj291; - ref QuestSequence reference305 = ref span169[2]; + num++; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue @@ -109756,7 +130543,9 @@ public static class AssemblyQuestLoader num2 = 1; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list411); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109775,21 +130564,26 @@ public static class AssemblyQuestLoader num = 1; List list412 = new List(num); CollectionsMarshal.SetCount(list412, num); - CollectionsMarshal.AsSpan(list412)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list412); + index = 0; + span[index] = "liza"; questRoot48.Author = list412; - num = 8; - List list413 = new List(num); - CollectionsMarshal.SetCount(list413, num); - Span span171 = CollectionsMarshal.AsSpan(list413); - ref QuestSequence reference306 = ref span171[0]; + index = 8; + List list413 = new List(index); + CollectionsMarshal.SetCount(list413, index); + span2 = CollectionsMarshal.AsSpan(list413); + num = 0; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + span3 = CollectionsMarshal.AsSpan(list414); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109807,7 +130601,8 @@ public static class AssemblyQuestLoader }; obj293.Steps = list414; reference306 = obj293; - ref QuestSequence reference307 = ref span171[1]; + num++; + ref QuestSequence reference307 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = 1 @@ -109815,22 +130610,27 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) + span3 = CollectionsMarshal.AsSpan(list415); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj294.Steps = list415; reference307 = obj294; - ref QuestSequence reference308 = ref span171[2]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list416 = new List(num2); - CollectionsMarshal.SetCount(list416, num2); - ref QuestStep reference309 = ref CollectionsMarshal.AsSpan(list416)[0]; + index2 = 1; + List list416 = new List(index2); + CollectionsMarshal.SetCount(list416, index2); + span3 = CollectionsMarshal.AsSpan(list416); + num2 = 0; + ref QuestStep reference309 = ref span3[num2]; QuestStep obj296 = new QuestStep(EInteractionType.Combat, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -109838,12 +130638,15 @@ public static class AssemblyQuestLoader num3 = 1; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - CollectionsMarshal.AsSpan(list417)[0] = 4476u; + span7 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span7[index3] = 4476u; obj296.KillEnemyDataIds = list417; reference309 = obj296; obj295.Steps = list416; reference308 = obj295; - ref QuestSequence reference310 = ref span171[3]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj297 = new QuestSequence { Sequence = 3 @@ -109851,30 +130654,37 @@ public static class AssemblyQuestLoader num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span172 = CollectionsMarshal.AsSpan(list418); - span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.98387f, 44.330624f, 540.6855f), 137); - ref QuestStep reference311 = ref span172[1]; + span3 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.98387f, 44.330624f, 540.6855f), 137); + index2++; + ref QuestStep reference311 = ref span3[index2]; QuestStep obj298 = new QuestStep(EInteractionType.Combat, 1014749u, new Vector3(-234.02765f, 44.330624f, 539.81836f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list419 = new List(num3); - CollectionsMarshal.SetCount(list419, num3); - CollectionsMarshal.AsSpan(list419)[0] = 4477u; + index3 = 1; + List list419 = new List(index3); + CollectionsMarshal.SetCount(list419, index3); + span7 = CollectionsMarshal.AsSpan(list419); + num3 = 0; + span7[num3] = 4477u; obj298.KillEnemyDataIds = list419; reference311 = obj298; obj297.Steps = list418; reference310 = obj297; - ref QuestSequence reference312 = ref span171[4]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - ref QuestStep reference313 = ref CollectionsMarshal.AsSpan(list420)[0]; + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + span3 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + ref QuestStep reference313 = ref span3[num2]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -109882,12 +130692,15 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = 321u; + span7 = CollectionsMarshal.AsSpan(list421); + index3 = 0; + span7[index3] = 321u; obj300.KillEnemyDataIds = list421; reference313 = obj300; obj299.Steps = list420; reference312 = obj299; - ref QuestSequence reference314 = ref span171[5]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj301 = new QuestSequence { Sequence = 5 @@ -109895,21 +130708,27 @@ public static class AssemblyQuestLoader num2 = 1; List list422 = new List(num2); CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137); + span3 = CollectionsMarshal.AsSpan(list422); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137); obj301.Steps = list422; reference314 = obj301; - ref QuestSequence reference315 = ref span171[6]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - CollectionsMarshal.AsSpan(list423)[0] = new QuestStep(EInteractionType.Interact, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137); + index2 = 1; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + span3 = CollectionsMarshal.AsSpan(list423); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137); obj302.Steps = list423; reference315 = obj302; - ref QuestSequence reference316 = ref span171[7]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue @@ -109917,7 +130736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109936,21 +130757,26 @@ public static class AssemblyQuestLoader num = 1; List list425 = new List(num); CollectionsMarshal.SetCount(list425, num); - CollectionsMarshal.AsSpan(list425)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list425); + index = 0; + span[index] = "liza"; questRoot49.Author = list425; - num = 2; - List list426 = new List(num); - CollectionsMarshal.SetCount(list426, num); - Span span173 = CollectionsMarshal.AsSpan(list426); - ref QuestSequence reference317 = ref span173[0]; + index = 2; + List list426 = new List(index); + CollectionsMarshal.SetCount(list426, index); + span2 = CollectionsMarshal.AsSpan(list426); + num = 0; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj304 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list427 = new List(num2); - CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list427 = new List(index2); + CollectionsMarshal.SetCount(list427, index2); + span3 = CollectionsMarshal.AsSpan(list427); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109968,7 +130794,8 @@ public static class AssemblyQuestLoader }; obj304.Steps = list427; reference317 = obj304; - ref QuestSequence reference318 = ref span173[1]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj305 = new QuestSequence { Sequence = byte.MaxValue @@ -109976,7 +130803,9 @@ public static class AssemblyQuestLoader num2 = 1; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list428); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1700) }; @@ -109993,13 +130822,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -110007,7 +130839,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110025,18 +130859,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1014750u, new Vector3(-98.802185f, 16.0083f, 26.626953f), 418); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014750u, new Vector3(-98.802185f, 16.0083f, 26.626953f), 418); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -110044,8 +130882,9 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestStep reference4 = ref span2[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Action, 1014752u, new Vector3(-155.59625f, 16.979582f, -38.376526f), 418) { StopDistance = 10f, @@ -110054,16 +130893,23 @@ public static class AssemblyQuestLoader int num3 = 6; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list6); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span2[1]; + index2++; + ref QuestStep reference5 = ref span3[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Action, 1014753u, new Vector3(52.994507f, 24.071722f, -25.070618f), 418) { StopDistance = 10f, @@ -110074,19 +130920,26 @@ public static class AssemblyQuestLoader }, Action = EAction.SlugShot }; - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + span4 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - ref QuestStep reference6 = ref span2[2]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Action, 1014754u, new Vector3(114.18323f, -7.146736f, 83.66516f), 418) { StopDistance = 10f, @@ -110100,26 +130953,35 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list8); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list8; reference6 = obj6; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -110129,7 +130991,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -110137,25 +131000,31 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014760u, new Vector3(232.6543f, 251.81952f, 127.21448f), 155) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014760u, new Vector3(232.6543f, 251.81952f, 127.21448f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference10 = ref span[6]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -110163,18 +131032,23 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); obj10.Steps = list12; reference10 = obj10; - ref QuestSequence reference11 = ref span[7]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110193,13 +131067,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "liza"; questRoot2.Author = list14; - num = 2; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span6 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span6[0]; + index = 2; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -110207,7 +131084,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110225,15 +131104,18 @@ public static class AssemblyQuestLoader }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span6[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1702) }; @@ -110246,13 +131128,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; questRoot3.Author = list18; - num = 6; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span7[0]; + index = 6; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -110260,7 +131145,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110278,15 +131165,18 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span7[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1014769u, new Vector3(-245.4414f, -20.03492f, -63.645386f), 419) { AethernetShortcut = new AethernetShortcut @@ -110295,10 +131185,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span5 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH451_01702_Q1_000_000"), @@ -110308,7 +131200,8 @@ public static class AssemblyQuestLoader reference16 = obj16; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference17 = ref span7[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -110316,21 +131209,26 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2006262u, new Vector3(-246.357f, -20.035156f, -64.683044f), 419) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006262u, new Vector3(-246.357f, -20.035156f, -64.683044f), 419) { StopDistance = 4.5f }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1014770u, new Vector3(-16.281433f, 16.009666f, -6.668213f), 419) { AethernetShortcut = new AethernetShortcut @@ -110342,7 +131240,9 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH451_01702_Q2_000_000"), @@ -110352,7 +131252,8 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference20 = ref span7[4]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 @@ -110360,22 +131261,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014772u, new Vector3(427.0542f, 15.170297f, 706.72156f), 137) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014772u, new Vector3(427.0542f, 15.170297f, 706.72156f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference21 = ref span7[5]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110394,13 +131300,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot4.Author = list28; - num = 7; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span8 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference22 = ref span8[0]; + index = 7; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -110408,7 +131317,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110426,18 +131337,22 @@ public static class AssemblyQuestLoader }; obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference23 = ref span8[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1014775u, new Vector3(-155.6878f, 16.979584f, -38.4375f), 418); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014775u, new Vector3(-155.6878f, 16.979584f, -38.4375f), 418); obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span8[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -110445,36 +131360,47 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1014776u, new Vector3(-138.7503f, 23.240587f, -83.878845f), 418); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014776u, new Vector3(-138.7503f, 23.240587f, -83.878845f), 418); obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span8[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span9 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference26 = ref span9[0]; + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Action, 1014778u, new Vector3(-160.35712f, 26.378231f, -88.9754f), 418) { Action = EAction.SlugShot }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span10 = CollectionsMarshal.AsSpan(list34); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list34; reference26 = obj26; - ref QuestStep reference27 = ref span9[1]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Action, 1014779u, new Vector3(-94.31604f, 19.008303f, -16.494995f), 418) { Action = EAction.SlugShot @@ -110482,35 +131408,49 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span11 = CollectionsMarshal.AsSpan(list35); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list35; reference27 = obj27; - ref QuestStep reference28 = ref span9[2]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Action, 1014777u, new Vector3(-133.83691f, 18.94346f, -12.100403f), 418) { Action = EAction.SlugShot }; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list36; reference28 = obj28; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference29 = ref span8[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 @@ -110518,21 +131458,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj29.Steps = list37; reference29 = obj29; - ref QuestSequence reference30 = ref span8[5]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014782u, new Vector3(-151.59845f, 16.979586f, -22.720703f), 418); + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014782u, new Vector3(-151.59845f, 16.979586f, -22.720703f), 418); obj30.Steps = list38; reference30 = obj30; - ref QuestSequence reference31 = ref span8[6]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -110540,7 +131486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1704) }; @@ -110553,21 +131501,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot5.Author = list40; - num = 5; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span13 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference32 = ref span13[0]; + index = 5; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110585,7 +131538,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list42; reference32 = obj32; - ref QuestSequence reference33 = ref span13[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -110593,25 +131547,31 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj33.Steps = list43; reference33 = obj33; - ref QuestSequence reference34 = ref span13[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155); obj34.Steps = list44; reference34 = obj34; - ref QuestSequence reference35 = ref span13[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -110619,21 +131579,26 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1014788u, new Vector3(222.06445f, 302f, -189.01355f), 155) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014788u, new Vector3(222.06445f, 302f, -189.01355f), 155) { StopDistance = 5f }; obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span13[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110652,13 +131617,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "liza"; questRoot6.Author = list47; - num = 4; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span14 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference37 = ref span14[0]; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -110666,7 +131634,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110684,18 +131654,22 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span14[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1014793u, new Vector3(-139.48273f, 19.236662f, -11.978394f), 418); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014793u, new Vector3(-139.48273f, 19.236662f, -11.978394f), 418); obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span14[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -110703,7 +131677,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014795u, new Vector3(-18.265076f, 16.009666f, -7.5532227f), 419) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014795u, new Vector3(-18.265076f, 16.009666f, -7.5532227f), 419) { AethernetShortcut = new AethernetShortcut { @@ -110713,15 +131689,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list51; reference39 = obj39; - ref QuestSequence reference40 = ref span14[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014796u, new Vector3(-152.88019f, 16.999998f, -52.903076f), 418) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014796u, new Vector3(-152.88019f, 16.999998f, -52.903076f), 418) { AethernetShortcut = new AethernetShortcut { @@ -110739,13 +131718,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "liza"; questRoot7.Author = list53; - num = 7; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span15 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference41 = ref span15[0]; + index = 7; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -110753,7 +131735,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -110772,16 +131756,18 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference42 = ref span15[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span16 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference43 = ref span16[0]; + index2 = 6; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-461.6901f, -4.0053887f, -292.6277f), 156) { StopDistance = 0.5f, @@ -110792,20 +131778,28 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 201u; + Span span6 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span6[num4] = 201u; obj43.KillEnemyDataIds = list57; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span17 = CollectionsMarshal.AsSpan(list58); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list58 = new List(num4); + CollectionsMarshal.SetCount(list58, num4); + span4 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list58; skipConditions.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -110814,7 +131808,8 @@ public static class AssemblyQuestLoader }; obj43.SkipConditions = skipConditions; reference43 = obj43; - ref QuestStep reference44 = ref span16[1]; + num2++; + ref QuestStep reference44 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2006271u, new Vector3(-462.7909f, -2.7619019f, -289.4179f), 156) { StopDistance = 4.5f @@ -110822,64 +131817,88 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span18 = CollectionsMarshal.AsSpan(list59); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list59; reference44 = obj44; - ref QuestStep reference45 = ref span16[2]; + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-567.30835f, -3.9906769f, -334.9877f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span19 = CollectionsMarshal.AsSpan(list60); - span19[0] = 5039u; - span19[1] = 5040u; - span19[2] = 5041u; + num4 = 3; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + span6 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span6[num3] = 5039u; + num3++; + span6[num3] = 5040u; + num3++; + span6[num3] = 5041u; obj45.KillEnemyDataIds = list60; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span20 = CollectionsMarshal.AsSpan(list61); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list61; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference45 = obj45; - ref QuestStep reference46 = ref span16[3]; + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 2006270u, new Vector3(-570.4891f, -2.8840332f, -334.76776f), 156) { StopDistance = 4.5f }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span21 = CollectionsMarshal.AsSpan(list62); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span4 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list62; reference46 = obj46; - ref QuestStep reference47 = ref span16[4]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-660.1279f, -2.9330442f, -366.86145f), 156) { Fly = true, @@ -110888,43 +131907,59 @@ public static class AssemblyQuestLoader num3 = 2; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = 4472u; - span22[1] = 4473u; + span6 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span6[num4] = 4472u; + num4++; + span6[num4] = 4473u; obj47.KillEnemyDataIds = list63; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span23 = CollectionsMarshal.AsSpan(list64); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span4 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list64; skipConditions3.StepIf = skipStepConditions3; obj47.SkipConditions = skipConditions3; reference47 = obj47; - ref QuestStep reference48 = ref span16[5]; + num2++; + ref QuestStep reference48 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006269u, new Vector3(-661.3413f, -1.6937866f, -367.8188f), 156); num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span24 = CollectionsMarshal.AsSpan(list65); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list65; reference48 = questStep; obj42.Steps = list56; reference42 = obj42; - ref QuestSequence reference49 = ref span15[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -110932,7 +131967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -110944,16 +131981,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list66; reference49 = obj48; - ref QuestSequence reference50 = ref span15[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span25 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference51 = ref span25[0]; + index2 = 3; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1014801u, new Vector3(16.220276f, -12.02089f, 49.454468f), 418) { AethernetShortcut = new AethernetShortcut @@ -110962,49 +132001,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span26 = CollectionsMarshal.AsSpan(list68); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span4 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list68; reference51 = obj50; - ref QuestStep reference52 = ref span25[1]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1014800u, new Vector3(58.182617f, -12.020877f, 79.81995f), 418); num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list69; reference52 = questStep2; - ref QuestStep reference53 = ref span25[2]; + num2++; + ref QuestStep reference53 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1014799u, new Vector3(114.88513f, -19.787056f, 62.57715f), 418); - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list70 = new List(num4); + CollectionsMarshal.SetCount(list70, num4); + span4 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list70; reference53 = questStep3; obj49.Steps = list67; reference50 = obj49; - ref QuestSequence reference54 = ref span15[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -111012,7 +132072,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -111023,21 +132085,25 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference54 = obj51; - ref QuestSequence reference55 = ref span15[5]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 2006272u, new Vector3(483.97034f, 212.51233f, 726.8329f), 397) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006272u, new Vector3(483.97034f, 212.51233f, 726.8329f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj52.Steps = list72; reference55 = obj52; - ref QuestSequence reference56 = ref span15[6]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -111045,7 +132111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list73)[0]; + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference57 = ref span3[index2]; QuestStep obj54 = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -111058,7 +132126,9 @@ public static class AssemblyQuestLoader num3 = 1; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH520_01706_Q1_000_000"), @@ -111076,21 +132146,26 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "liza"; questRoot8.Author = list75; - num = 7; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span29 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference58 = ref span29[0]; + index = 7; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111108,7 +132183,8 @@ public static class AssemblyQuestLoader }; obj55.Steps = list77; reference58 = obj55; - ref QuestSequence reference59 = ref span29[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -111116,21 +132192,26 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1014805u, new Vector3(482.96326f, 212.5841f, 724.7882f), 397) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014805u, new Vector3(482.96326f, 212.5841f, 724.7882f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj56.Steps = list78; reference59 = obj56; - ref QuestSequence reference60 = ref span29[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1014809u, new Vector3(114.335815f, -19.787056f, 61.81433f), 418) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014809u, new Vector3(114.335815f, -19.787056f, 61.81433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111141,7 +132222,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list79; reference60 = obj57; - ref QuestSequence reference61 = ref span29[3]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 @@ -111149,29 +132231,35 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Action, 1014810u, new Vector3(117.17395f, -22.017334f, 32.791626f), 418) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1014810u, new Vector3(117.17395f, -22.017334f, 32.791626f), 418) { StopDistance = 10f, Action = EAction.SlugShot }; obj58.Steps = list80; reference61 = obj58; - ref QuestSequence reference62 = ref span29[4]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014811u, new Vector3(319.69165f, 161.10796f, 147.44788f), 397) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014811u, new Vector3(319.69165f, 161.10796f, 147.44788f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj59.Steps = list81; reference62 = obj59; - ref QuestSequence reference63 = ref span29[5]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 5 @@ -111179,21 +132267,26 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1014816u, new Vector3(397.05493f, 161.18224f, -98.10034f), 397) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014816u, new Vector3(397.05493f, 161.18224f, -98.10034f), 397) { StopDistance = 5f }; obj60.Steps = list82; reference63 = obj60; - ref QuestSequence reference64 = ref span29[6]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111212,13 +132305,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "liza"; questRoot9.Author = list84; - num = 8; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span30 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference65 = ref span30[0]; + index = 8; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -111226,7 +132322,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111244,18 +132342,22 @@ public static class AssemblyQuestLoader }; obj62.Steps = list86; reference65 = obj62; - ref QuestSequence reference66 = ref span30[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj63.Steps = list87; reference66 = obj63; - ref QuestSequence reference67 = ref span30[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -111263,7 +132365,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1014822u, new Vector3(95.20105f, 15.000009f, 25.345215f), 418) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014822u, new Vector3(95.20105f, 15.000009f, 25.345215f), 418) { AethernetShortcut = new AethernetShortcut { @@ -111273,15 +132377,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list88; reference67 = obj64; - ref QuestSequence reference68 = ref span30[3]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -111291,7 +132398,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list89; reference68 = obj65; - ref QuestSequence reference69 = ref span30[4]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -111299,38 +132407,46 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1014823u, new Vector3(490.37915f, -51.13661f, 29.587158f), 398) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014823u, new Vector3(490.37915f, -51.13661f, 29.587158f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj66.Steps = list90; reference69 = obj66; - ref QuestSequence reference70 = ref span30[5]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list91)[0]; + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1014825u, new Vector3(576.4706f, -37.673805f, -134.78296f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span31 = CollectionsMarshal.AsSpan(list92); - span31[0] = 5042u; - span31[1] = 5045u; + num4 = 2; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + span6 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span6[num3] = 5042u; + num3++; + span6[num3] = 5045u; obj68.KillEnemyDataIds = list92; reference71 = obj68; obj67.Steps = list91; reference70 = obj67; - ref QuestSequence reference72 = ref span30[6]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -111338,21 +132454,26 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1014829u, new Vector3(578.5762f, -37.88608f, -132.55518f), 398) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014829u, new Vector3(578.5762f, -37.88608f, -132.55518f), 398) { StopDistance = 7f }; obj69.Steps = list93; reference72 = obj69; - ref QuestSequence reference73 = ref span30[7]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111371,13 +132492,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list95; - num = 7; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span32 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference74 = ref span32[0]; + index = 7; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -111385,7 +132509,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007753u, new Vector3(17.990356f, 20.385572f, -665.79694f), 156) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007753u, new Vector3(17.990356f, 20.385572f, -665.79694f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -111398,23 +132524,27 @@ public static class AssemblyQuestLoader }; obj71.Steps = list97; reference74 = obj71; - ref QuestSequence reference75 = ref span32[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span33 = CollectionsMarshal.AsSpan(list98); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj72.Steps = list98; reference75 = obj72; - ref QuestSequence reference76 = ref span32[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -111422,19 +132552,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj73.Steps = list99; reference76 = obj73; - ref QuestSequence reference77 = ref span32[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 10; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span34 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference78 = ref span34[0]; + index2 = 10; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, @@ -111445,39 +132579,53 @@ public static class AssemblyQuestLoader num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span35 = CollectionsMarshal.AsSpan(list101); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list101; skipConditions4.StepIf = skipStepConditions4; obj75.SkipConditions = skipConditions4; reference78 = obj75; - ref QuestStep reference79 = ref span34[1]; + num2++; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span36 = CollectionsMarshal.AsSpan(list102); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + span4 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list102; skipConditions5.StepIf = skipStepConditions5; obj76.SkipConditions = skipConditions5; reference79 = obj76; - ref QuestStep reference80 = ref span34[2]; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true @@ -111487,39 +132635,53 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span37 = CollectionsMarshal.AsSpan(list103); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list103; skipConditions6.StepIf = skipStepConditions6; obj77.SkipConditions = skipConditions6; reference80 = obj77; - ref QuestStep reference81 = ref span34[3]; + num2++; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span38 = CollectionsMarshal.AsSpan(list104); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span4 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list104; skipConditions7.StepIf = skipStepConditions7; obj78.SkipConditions = skipConditions7; reference81 = obj78; - ref QuestStep reference82 = ref span34[4]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.39681f, 58.74831f, -517.9883f), 180) { Fly = true @@ -111529,161 +132691,216 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span39 = CollectionsMarshal.AsSpan(list105); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list105; skipConditions8.StepIf = skipStepConditions8; obj79.SkipConditions = skipConditions8; reference82 = obj79; - ref QuestStep reference83 = ref span34[5]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj80 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.84353f, 28.346682f, -610.36945f), 180) { Fly = true }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span40 = CollectionsMarshal.AsSpan(list106); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list106 = new List(num4); + CollectionsMarshal.SetCount(list106, num4); + span4 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list106; skipConditions9.StepIf = skipStepConditions9; obj80.SkipConditions = skipConditions9; reference83 = obj80; - ref QuestStep reference84 = ref span34[6]; - QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.67392f, 21.581085f, -633.5837f), 180); + num2++; + ref QuestStep reference84 = ref span3[num2]; + QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.67392f, 21.581085f, -633.5837f), 180) + { + Fly = true + }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span41 = CollectionsMarshal.AsSpan(list107); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list107; skipConditions10.StepIf = skipStepConditions10; - questStep4.SkipConditions = skipConditions10; - reference84 = questStep4; - ref QuestStep reference85 = ref span34[7]; - QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2000075u, new Vector3(102.15906f, 21.560913f, -632.8679f), 180) + obj81.SkipConditions = skipConditions10; + reference84 = obj81; + num2++; + ref QuestStep reference85 = ref span3[num2]; + QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2000075u, new Vector3(102.15906f, 21.560913f, -632.8679f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = 9487u; - obj81.KillEnemyDataIds = list108; + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + span6 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span6[num3] = 9487u; + obj82.KillEnemyDataIds = list108; num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span42 = CollectionsMarshal.AsSpan(list109); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj81.CompletionQuestVariablesFlags = list109; - reference85 = obj81; - ref QuestStep reference86 = ref span34[8]; - QuestStep obj82 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.1432f, -32.409756f, -369.94928f), 138) + span4 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj82.CompletionQuestVariablesFlags = list109; + reference85 = obj82; + num2++; + ref QuestStep reference86 = ref span3[num2]; + QuestStep obj83 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.1432f, -32.409756f, -369.94928f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span43 = CollectionsMarshal.AsSpan(list110); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list110 = new List(num4); + CollectionsMarshal.SetCount(list110, num4); + span4 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list110; skipConditions11.StepIf = skipStepConditions11; - obj82.SkipConditions = skipConditions11; - reference86 = obj82; - ref QuestStep reference87 = ref span34[9]; - QuestStep obj83 = new QuestStep(EInteractionType.Combat, 2000076u, new Vector3(-486.86963f, -32.455933f, -368.8258f), 138) + obj83.SkipConditions = skipConditions11; + reference86 = obj83; + num2++; + ref QuestStep reference87 = ref span3[num2]; + QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2000076u, new Vector3(-486.86963f, -32.455933f, -368.8258f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 9488u; - obj83.KillEnemyDataIds = list111; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span44 = CollectionsMarshal.AsSpan(list112); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj83.CompletionQuestVariablesFlags = list112; - reference87 = obj83; + span6 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span6[num4] = 9488u; + obj84.KillEnemyDataIds = list111; + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + span4 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj84.CompletionQuestVariablesFlags = list112; + reference87 = obj84; obj74.Steps = list100; reference77 = obj74; - ref QuestSequence reference88 = ref span32[4]; - QuestSequence obj84 = new QuestSequence + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 4 }; num2 = 2; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span45 = CollectionsMarshal.AsSpan(list113); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.57513f, -5.352314f, -466.78467f), 156) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.57513f, -5.352314f, -466.78467f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span45[1] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); - obj84.Steps = list113; - reference88 = obj84; - ref QuestSequence reference89 = ref span32[5]; - QuestSequence obj85 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + obj85.Steps = list113; + reference88 = obj85; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span46 = CollectionsMarshal.AsSpan(list114); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.21196f, 46.52775f, -319.86398f), 146) + index2 = 4; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.21196f, 46.52775f, -319.86398f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.8795898f, 38.80212f, 0.40251642f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.8795898f, 38.80212f, 0.40251642f), 146) { Fly = true }; - ref QuestStep reference90 = ref span46[2]; - QuestStep obj86 = new QuestStep(EInteractionType.Combat, 2000077u, new Vector3(233.3562f, 7.9804688f, -22.720703f), 146) + num2++; + ref QuestStep reference90 = ref span3[num2]; + QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2000077u, new Vector3(233.3562f, 7.9804688f, -22.720703f), 146) { DisableNavmesh = true, Fly = true, @@ -111692,22 +132909,31 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 9489u; - obj86.KillEnemyDataIds = list115; - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span47 = CollectionsMarshal.AsSpan(list116); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj86.CompletionQuestVariablesFlags = list116; - reference90 = obj86; - ref QuestStep reference91 = ref span46[3]; - QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2000078u, new Vector3(613.5499f, 301.8081f, -101.42676f), 155) + span6 = CollectionsMarshal.AsSpan(list115); + num4 = 0; + span6[num4] = 9489u; + obj87.KillEnemyDataIds = list115; + num4 = 6; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + span4 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj87.CompletionQuestVariablesFlags = list116; + reference90 = obj87; + num2++; + ref QuestStep reference91 = ref span3[num2]; + QuestStep obj88 = new QuestStep(EInteractionType.Combat, 2000078u, new Vector3(613.5499f, 301.8081f, -101.42676f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -111716,42 +132942,53 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 9490u; - obj87.KillEnemyDataIds = list117; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span48 = CollectionsMarshal.AsSpan(list118); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj87.CompletionQuestVariablesFlags = list118; - reference91 = obj87; - obj85.Steps = list114; - reference89 = obj85; - ref QuestSequence reference92 = ref span32[6]; - QuestSequence obj88 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span6[num4] = 9490u; + obj88.KillEnemyDataIds = list117; + num4 = 6; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + span4 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj88.CompletionQuestVariablesFlags = list118; + reference91 = obj88; + obj86.Steps = list114; + reference89 = obj86; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span49 = CollectionsMarshal.AsSpan(list119); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.49927f, -5.364953f, -467.05328f), 156) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.49927f, -5.364953f, -467.05328f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1200) }; - obj88.Steps = list119; - reference92 = obj88; + obj89.Steps = list119; + reference92 = obj89; questRoot10.QuestSequence = list96; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(1710); @@ -111759,21 +132996,26 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; questRoot11.Author = list120; - num = 4; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span50 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference93 = ref span50[0]; - QuestSequence obj89 = new QuestSequence + index = 4; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111789,30 +133031,35 @@ public static class AssemblyQuestLoader } } }; - obj89.Steps = list122; - reference93 = obj89; - ref QuestSequence reference94 = ref span50[1]; - QuestSequence obj90 = new QuestSequence + obj90.Steps = list122; + reference93 = obj90; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 1 }; num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); - obj90.Steps = list123; - reference94 = obj90; - ref QuestSequence reference95 = ref span50[2]; - QuestSequence obj91 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + obj91.Steps = list123; + reference94 = obj91; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span51 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference96 = ref span51[0]; - QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(306.3128f, 70.876f, -411.73788f), 401) + index2 = 4; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; + QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(306.3128f, 70.876f, -411.73788f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -111821,90 +133068,124 @@ public static class AssemblyQuestLoader num3 = 1; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = 4484u; - obj92.KillEnemyDataIds = list125; + span6 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span6[num4] = 4484u; + obj93.KillEnemyDataIds = list125; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span52 = CollectionsMarshal.AsSpan(list126); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + span4 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list126; skipConditions12.StepIf = skipStepConditions12; - obj92.SkipConditions = skipConditions12; - reference96 = obj92; - ref QuestStep reference97 = ref span51[1]; - QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006274u, new Vector3(305.0736f, 71.06128f, -413.44324f), 401); + obj93.SkipConditions = skipConditions12; + reference96 = obj93; + num2++; + ref QuestStep reference97 = ref span3[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2006274u, new Vector3(305.0736f, 71.06128f, -413.44324f), 401); num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span53 = CollectionsMarshal.AsSpan(list127); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list127; - reference97 = questStep5; - ref QuestStep reference98 = ref span51[2]; - QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.58212f, 71.00385f, -313.4424f), 401) + span4 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list127; + reference97 = questStep4; + num2++; + ref QuestStep reference98 = ref span3[num2]; + QuestStep obj94 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.58212f, 71.00385f, -313.4424f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 4617u; - obj93.KillEnemyDataIds = list128; + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + span6 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span6[num3] = 4617u; + obj94.KillEnemyDataIds = list128; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span54 = CollectionsMarshal.AsSpan(list129); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list129; skipConditions13.StepIf = skipStepConditions13; - obj93.SkipConditions = skipConditions13; - reference98 = obj93; - ref QuestStep reference99 = ref span51[3]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006275u, new Vector3(384.02368f, 71.39697f, -311.90973f), 401); - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span55 = CollectionsMarshal.AsSpan(list130); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list130; - reference99 = questStep6; - obj91.Steps = list124; - reference95 = obj91; - ref QuestSequence reference100 = ref span50[3]; - QuestSequence obj94 = new QuestSequence + obj94.SkipConditions = skipConditions13; + reference98 = obj94; + num2++; + ref QuestStep reference99 = ref span3[num2]; + QuestStep questStep5 = 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); + span4 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list130; + reference99 = questStep5; + obj92.Steps = list124; + reference95 = obj92; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111914,8 +133195,8 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1711) }; - obj94.Steps = list131; - reference100 = obj94; + obj95.Steps = list131; + reference100 = obj95; questRoot11.QuestSequence = list121; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(1711); @@ -111923,21 +133204,26 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot12.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span56 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference101 = ref span56[0]; - QuestSequence obj95 = new QuestSequence + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111953,17 +133239,20 @@ public static class AssemblyQuestLoader } } }; - obj95.Steps = list134; - reference101 = obj95; - ref QuestSequence reference102 = ref span56[1]; - QuestSequence obj96 = new QuestSequence + obj96.Steps = list134; + reference101 = obj96; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 1 }; num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) { AethernetShortcut = new AethernetShortcut { @@ -111971,31 +133260,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - obj96.Steps = list135; - reference102 = obj96; - ref QuestSequence reference103 = ref span56[2]; - QuestSequence obj97 = new QuestSequence + obj97.Steps = list135; + reference102 = obj97; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Action, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) { Action = EAction.SlugShot }; - obj97.Steps = list136; - reference103 = obj97; - ref QuestSequence reference104 = ref span56[3]; - QuestSequence obj98 = new QuestSequence + obj98.Steps = list136; + reference103 = obj98; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -112004,8 +133299,8 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1712) }; - obj98.Steps = list137; - reference104 = obj98; + obj99.Steps = list137; + reference104 = obj99; questRoot12.QuestSequence = list133; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1712); @@ -112013,21 +133308,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; questRoot13.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span57 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference105 = ref span57[0]; - QuestSequence obj99 = new QuestSequence + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -112043,47 +133343,63 @@ public static class AssemblyQuestLoader } } }; - obj99.Steps = list140; - reference105 = obj99; - ref QuestSequence reference106 = ref span57[1]; - QuestSequence obj100 = new QuestSequence + obj100.Steps = list140; + reference105 = obj100; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 1 }; num2 = 4; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - 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); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + ref QuestStep reference107 = ref span3[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1014835u, new Vector3(-86.4729f, 15.23318f, -63.98114f), 418); num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span59 = CollectionsMarshal.AsSpan(list142); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list142; - reference107 = questStep7; - ref QuestStep reference108 = ref span58[1]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1014837u, new Vector3(-135.51538f, 5.467082f, 39.93274f), 418); - num3 = 6; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span60 = CollectionsMarshal.AsSpan(list143); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list143; - reference108 = questStep8; - ref QuestStep reference109 = ref span58[2]; - QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1014836u, new Vector3(-20.004639f, 1.5791271f, 90.37915f), 418) + span4 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list142; + reference107 = questStep6; + index2++; + ref QuestStep reference108 = ref span3[index2]; + QuestStep questStep7 = 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); + span4 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list143; + reference108 = questStep7; + index2++; + ref QuestStep reference109 = ref span3[index2]; + QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1014836u, new Vector3(-20.004639f, 1.5791271f, 90.37915f), 418) { AethernetShortcut = new AethernetShortcut { @@ -112094,17 +133410,24 @@ public static class AssemblyQuestLoader num3 = 6; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span61 = CollectionsMarshal.AsSpan(list144); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj101.CompletionQuestVariablesFlags = list144; - reference109 = obj101; - ref QuestStep reference110 = ref span58[3]; - QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1014834u, new Vector3(56.839844f, 24.071722f, -30.075562f), 418) + span4 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj102.CompletionQuestVariablesFlags = list144; + reference109 = obj102; + index2++; + ref QuestStep reference110 = ref span3[index2]; + QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1014834u, new Vector3(56.839844f, 24.071722f, -30.075562f), 418) { AethernetShortcut = new AethernetShortcut { @@ -112112,29 +133435,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span62 = CollectionsMarshal.AsSpan(list145); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj102.CompletionQuestVariablesFlags = list145; - reference110 = obj102; - obj100.Steps = list141; - reference106 = obj100; - ref QuestSequence reference111 = ref span57[2]; - QuestSequence obj103 = new QuestSequence + num4 = 6; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + span4 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj103.CompletionQuestVariablesFlags = list145; + reference110 = obj103; + obj101.Steps = list141; + reference106 = obj101; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -112143,37 +133475,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj103.Steps = list146; - reference111 = obj103; - ref QuestSequence reference112 = ref span57[3]; - QuestSequence obj104 = new QuestSequence + obj104.Steps = list146; + reference111 = obj104; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 3 }; num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(874.0602f, -3.0127013f, 353.70963f), 398) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(874.0602f, -3.0127013f, 353.70963f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span63[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014841u, new Vector3(-631.281f, 96.94948f, -461.63123f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014841u, new Vector3(-631.281f, 96.94948f, -461.63123f), 397) { Fly = true }; - obj104.Steps = list147; - reference112 = obj104; - ref QuestSequence reference113 = ref span57[4]; - QuestSequence obj105 = new QuestSequence + obj105.Steps = list147; + reference112 = obj105; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -112183,8 +133521,8 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(2109) }; - obj105.Steps = list148; - reference113 = obj105; + obj106.Steps = list148; + reference113 = obj106; questRoot13.QuestSequence = list139; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1713); @@ -112192,21 +133530,26 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "pot0to"; questRoot14.Author = list149; - num = 9; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span64 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference114 = ref span64[0]; - QuestSequence obj106 = new QuestSequence + index = 9; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 0 }; num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -112218,17 +133561,20 @@ public static class AssemblyQuestLoader } } }; - obj106.Steps = list151; - reference114 = obj106; - ref QuestSequence reference115 = ref span64[1]; - QuestSequence obj107 = new QuestSequence + obj107.Steps = list151; + reference114 = obj107; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1014202u, new Vector3(190.14258f, -2.5202732f, 73.136475f), 132) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014202u, new Vector3(190.14258f, -2.5202732f, 73.136475f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -112244,100 +133590,122 @@ public static class AssemblyQuestLoader } } }; - obj107.Steps = list152; - reference115 = obj107; - ref QuestSequence reference116 = ref span64[2]; - QuestSequence obj108 = new QuestSequence + obj108.Steps = list152; + reference115 = obj108; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 2 }; num2 = 2; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - 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); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + ref QuestStep reference117 = ref span3[index2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132); num3 = 1; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list154); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD501_01713_Q1_000_000") }; - questStep9.DialogueChoices = list154; - reference117 = questStep9; - span65[1] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); - obj108.Steps = list153; - reference116 = obj108; - ref QuestSequence reference118 = ref span64[3]; - QuestSequence obj109 = new QuestSequence + questStep8.DialogueChoices = list154; + reference117 = questStep8; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); + obj109.Steps = list153; + reference116 = obj109; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); - obj109.Steps = list155; - reference118 = obj109; - ref QuestSequence reference119 = ref span64[4]; - QuestSequence obj110 = new QuestSequence + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); + obj110.Steps = list155; + reference118 = obj110; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 4 }; num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list156)[0]; - QuestStep obj111 = new QuestStep(EInteractionType.Combat, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + ref QuestStep reference120 = ref span3[index2]; + QuestStep obj112 = new QuestStep(EInteractionType.Combat, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 4684u; - obj111.KillEnemyDataIds = list157; - reference120 = obj111; - obj110.Steps = list156; - reference119 = obj110; - ref QuestSequence reference121 = ref span64[5]; - QuestSequence obj112 = new QuestSequence + num4 = 1; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + span6 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span6[num3] = 4684u; + obj112.KillEnemyDataIds = list157; + reference120 = obj112; + obj111.Steps = list156; + reference119 = obj111; + num++; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152); - obj112.Steps = list158; - reference121 = obj112; - ref QuestSequence reference122 = ref span64[6]; - QuestSequence obj113 = new QuestSequence + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152); + obj113.Steps = list158; + reference121 = obj113; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 6 }; num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1014204u, new Vector3(24.673828f, 6.386869f, 414.9386f), 152) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014204u, new Vector3(24.673828f, 6.386869f, 414.9386f), 152) { StopDistance = 7f }; - obj113.Steps = list159; - reference122 = obj113; - ref QuestSequence reference123 = ref span64[7]; - QuestSequence obj114 = new QuestSequence + obj114.Steps = list159; + reference122 = obj114; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1014205u, new Vector3(190.72253f, -2.5872245f, 74.75391f), 132) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014205u, new Vector3(190.72253f, -2.5872245f, 74.75391f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -112353,17 +133721,20 @@ public static class AssemblyQuestLoader } } }; - obj114.Steps = list160; - reference123 = obj114; - ref QuestSequence reference124 = ref span64[8]; - QuestSequence obj115 = new QuestSequence + obj115.Steps = list160; + reference123 = obj115; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -112376,8 +133747,8 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1714) }; - obj115.Steps = list161; - reference124 = obj115; + obj116.Steps = list161; + reference124 = obj116; questRoot14.QuestSequence = list150; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1714); @@ -112385,21 +133756,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "liza"; questRoot15.Author = list162; - num = 6; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span66 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference125 = ref span66[0]; - QuestSequence obj116 = new QuestSequence + index = 6; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -112411,46 +133787,55 @@ public static class AssemblyQuestLoader } } }; - obj116.Steps = list164; - reference125 = obj116; - ref QuestSequence reference126 = ref span66[1]; - QuestSequence obj117 = new QuestSequence + obj117.Steps = list164; + reference125 = obj117; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 1 }; num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1014215u, new Vector3(446.4026f, 212.53983f, 697.444f), 397) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014215u, new Vector3(446.4026f, 212.53983f, 697.444f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj117.Steps = list165; - reference126 = obj117; - ref QuestSequence reference127 = ref span66[2]; - QuestSequence obj118 = new QuestSequence + obj118.Steps = list165; + reference126 = obj118; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1014217u, new Vector3(59.128662f, 101.451355f, -50.797363f), 397) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014217u, new Vector3(59.128662f, 101.451355f, -50.797363f), 397) { Fly = true }; - obj118.Steps = list166; - reference127 = obj118; - ref QuestSequence reference128 = ref span66[3]; - QuestSequence obj119 = new QuestSequence + obj119.Steps = list166; + reference127 = obj119; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 3 }; num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list167)[0]; - QuestStep obj120 = new QuestStep(EInteractionType.Combat, 2006300u, new Vector3(66.11731f, 103.86804f, -127.03143f), 397) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; + QuestStep obj121 = new QuestStep(EInteractionType.Combat, 2006300u, new Vector3(66.11731f, 103.86804f, -127.03143f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -112458,40 +133843,48 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = 4680u; - obj120.KillEnemyDataIds = list168; - reference129 = obj120; - obj119.Steps = list167; - reference128 = obj119; - ref QuestSequence reference130 = ref span66[4]; - QuestSequence obj121 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span6[num4] = 4680u; + obj121.KillEnemyDataIds = list168; + reference129 = obj121; + obj120.Steps = list167; + reference128 = obj120; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1014218u, new Vector3(58.76245f, 101.43757f, -51.682373f), 397) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014218u, new Vector3(58.76245f, 101.43757f, -51.682373f), 397) { Fly = true }; - obj121.Steps = list169; - reference130 = obj121; - ref QuestSequence reference131 = ref span66[5]; - QuestSequence obj122 = new QuestSequence + obj122.Steps = list169; + reference130 = obj122; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(1715) }; - obj122.Steps = list170; - reference131 = obj122; + obj123.Steps = list170; + reference131 = obj123; questRoot15.QuestSequence = list163; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(1715); @@ -112499,21 +133892,26 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; questRoot16.Author = list171; - num = 9; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span67 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference132 = ref span67[0]; - QuestSequence obj123 = new QuestSequence + index = 9; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -112524,127 +133922,153 @@ public static class AssemblyQuestLoader } } }; - obj123.Steps = list173; - reference132 = obj123; - ref QuestSequence reference133 = ref span67[1]; - QuestSequence obj124 = new QuestSequence + obj124.Steps = list173; + reference132 = obj124; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 1 }; num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1014227u, new Vector3(-294.27026f, 125.76025f, -15.152283f), 397) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014227u, new Vector3(-294.27026f, 125.76025f, -15.152283f), 397) { Fly = true }; - obj124.Steps = list174; - reference133 = obj124; - ref QuestSequence reference134 = ref span67[2]; - QuestSequence obj125 = new QuestSequence + obj125.Steps = list174; + reference133 = obj125; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1014233u, new Vector3(-299.12268f, 126.35769f, -8.682434f), 397) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014233u, new Vector3(-299.12268f, 126.35769f, -8.682434f), 397) { StopDistance = 7f }; - obj125.Steps = list175; - reference134 = obj125; - ref QuestSequence reference135 = ref span67[3]; - QuestSequence obj126 = new QuestSequence + obj126.Steps = list175; + reference134 = obj126; + num++; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 3 }; num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1014246u, new Vector3(-429.8009f, 92.59371f, -509.4225f), 397) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014246u, new Vector3(-429.8009f, 92.59371f, -509.4225f), 397) { Fly = true }; - obj126.Steps = list176; - reference135 = obj126; - ref QuestSequence reference136 = ref span67[4]; - QuestSequence obj127 = new QuestSequence + obj127.Steps = list176; + reference135 = obj127; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 4 }; - 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) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + ref QuestStep reference137 = ref span3[num2]; + QuestStep obj129 = new QuestStep(EInteractionType.Combat, 2006301u, new Vector3(-778.0118f, 112.01648f, -580.52954f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = 4487u; - obj128.KillEnemyDataIds = list178; - reference137 = obj128; - obj127.Steps = list177; - reference136 = obj127; - ref QuestSequence reference138 = ref span67[5]; - QuestSequence obj129 = new QuestSequence + num4 = 1; + List list178 = new List(num4); + CollectionsMarshal.SetCount(list178, num4); + span6 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span6[num3] = 4487u; + obj129.KillEnemyDataIds = list178; + reference137 = obj129; + obj128.Steps = list177; + reference136 = obj128; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 5 }; num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397) + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397) { Fly = true }; - obj129.Steps = list179; - reference138 = obj129; - ref QuestSequence reference139 = ref span67[6]; - QuestSequence obj130 = new QuestSequence + obj130.Steps = list179; + reference138 = obj130; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Emote, 1014242u, new Vector3(-750.9728f, 103.93008f, -465.4765f), 397) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1014242u, new Vector3(-750.9728f, 103.93008f, -465.4765f), 397) { StopDistance = 4.5f, Emote = EEmote.Salute }; - obj130.Steps = list180; - reference139 = obj130; - ref QuestSequence reference140 = ref span67[7]; - QuestSequence obj131 = new QuestSequence + obj131.Steps = list180; + reference139 = obj131; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 7 }; num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397); - obj131.Steps = list181; - reference140 = obj131; - ref QuestSequence reference141 = ref span67[8]; - QuestSequence obj132 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397); + obj132.Steps = list181; + reference140 = obj132; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1716) }; - obj132.Steps = list182; - reference141 = obj132; + obj133.Steps = list182; + reference141 = obj133; questRoot16.QuestSequence = list172; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(1716); @@ -112652,22 +134076,27 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot17.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span68 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference142 = ref span68[0]; - QuestSequence obj133 = new QuestSequence + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 0 }; num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list185)[0]; - QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference143 = ref span3[index2]; + QuestStep obj135 = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { StopDistance = 7f, Fly = true, @@ -112683,58 +134112,69 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list186); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD560_01716_Q1_000_000"), Answer = new ExcelRef("TEXT_JOBBRD560_01716_A1_000_000") }; - obj134.DialogueChoices = list186; - reference143 = obj134; - obj133.Steps = list185; - reference142 = obj133; - ref QuestSequence reference144 = ref span68[1]; - QuestSequence obj135 = new QuestSequence + obj135.DialogueChoices = list186; + reference143 = obj135; + obj134.Steps = list185; + reference142 = obj134; + num++; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014248u, new Vector3(218.43286f, -104.75025f, 592.00415f), 398) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014248u, new Vector3(218.43286f, -104.75025f, 592.00415f), 398) { Fly = true }; - obj135.Steps = list187; - reference144 = obj135; - ref QuestSequence reference145 = ref span68[2]; - QuestSequence obj136 = new QuestSequence + obj136.Steps = list187; + reference144 = obj136; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 2 }; num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1014249u, new Vector3(186.08374f, -119.0711f, 480.4912f), 398) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014249u, new Vector3(186.08374f, -119.0711f, 480.4912f), 398) { StopDistance = 5f }; - obj136.Steps = list188; - reference145 = obj136; - ref QuestSequence reference146 = ref span68[3]; - QuestSequence obj137 = new QuestSequence + obj137.Steps = list188; + reference145 = obj137; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014231u, new Vector3(544.4877f, -51.27571f, 64.62195f), 398) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014231u, new Vector3(544.4877f, -51.27571f, 64.62195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - obj137.Steps = list189; - reference146 = obj137; + obj138.Steps = list189; + reference146 = obj138; questRoot17.QuestSequence = list184; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(1717); @@ -112742,21 +134182,26 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; questRoot18.Author = list190; - num = 11; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span69 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference147 = ref span69[0]; - QuestSequence obj138 = new QuestSequence + index = 11; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 0 }; num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { StopDistance = 7f, Fly = true, @@ -112769,107 +134214,127 @@ public static class AssemblyQuestLoader } } }; - obj138.Steps = list192; - reference147 = obj138; - ref QuestSequence reference148 = ref span69[1]; - QuestSequence obj139 = new QuestSequence + obj139.Steps = list192; + reference147 = obj139; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference149 = ref span3[num2]; + QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1014270u, new Vector3(457.1145f, -51.15781f, 101.48767f), 398) { Fly = true }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = new DialogueChoice + num4 = 1; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + span5 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD580_01717_Q1_000_000"), Answer = new ExcelRef("TEXT_JOBBRD580_01717_A1_000_000") }; - obj140.DialogueChoices = list194; - reference149 = obj140; - obj139.Steps = list193; - reference148 = obj139; - ref QuestSequence reference150 = ref span69[2]; - QuestSequence obj141 = new QuestSequence + obj141.DialogueChoices = list194; + reference149 = obj141; + obj140.Steps = list193; + reference148 = obj140; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 2 }; num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1014262u, new Vector3(-223.65149f, -30.093239f, 78.72119f), 398) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014262u, new Vector3(-223.65149f, -30.093239f, 78.72119f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - obj141.Steps = list195; - reference150 = obj141; - ref QuestSequence reference151 = ref span69[3]; - QuestSequence obj142 = new QuestSequence + obj142.Steps = list195; + reference150 = obj142; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1014264u, new Vector3(159.74658f, -62.55156f, 685.84717f), 400) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014264u, new Vector3(159.74658f, -62.55156f, 685.84717f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - obj142.Steps = list196; - reference151 = obj142; - ref QuestSequence reference152 = ref span69[4]; - QuestSequence obj143 = new QuestSequence + obj143.Steps = list196; + reference151 = obj143; + num++; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 4 }; num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span70 = CollectionsMarshal.AsSpan(list197); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f }; - obj143.Steps = list197; - reference152 = obj143; - ref QuestSequence reference153 = ref span69[5]; - QuestSequence obj144 = new QuestSequence + obj144.Steps = list197; + reference152 = obj144; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1014266u, new Vector3(273.4568f, -38.082943f, 524.95605f), 400) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014266u, new Vector3(273.4568f, -38.082943f, 524.95605f), 400) { Fly = true }; - obj144.Steps = list198; - reference153 = obj144; - ref QuestSequence reference154 = ref span69[6]; - QuestSequence obj145 = new QuestSequence + obj145.Steps = list198; + reference153 = obj145; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 6 }; num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list199)[0]; - QuestStep obj146 = new QuestStep(EInteractionType.Combat, 2006302u, new Vector3(269.94727f, -40.299072f, 398.61133f), 400) + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + ref QuestStep reference155 = ref span3[index2]; + QuestStep obj147 = new QuestStep(EInteractionType.Combat, 2006302u, new Vector3(269.94727f, -40.299072f, 398.61133f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -112877,43 +134342,53 @@ public static class AssemblyQuestLoader num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = 4681u; - obj146.KillEnemyDataIds = list200; - reference155 = obj146; - obj145.Steps = list199; - reference154 = obj145; - ref QuestSequence reference156 = ref span69[7]; - QuestSequence obj147 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span6[num4] = 4681u; + obj147.KillEnemyDataIds = list200; + reference155 = obj147; + obj146.Steps = list199; + reference154 = obj146; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 7 }; - 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) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; + QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2006303u, new Vector3(342.15295f, -40.024475f, 288.56335f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 4682u; - obj148.KillEnemyDataIds = list202; - reference157 = obj148; - obj147.Steps = list201; - reference156 = obj147; - ref QuestSequence reference158 = ref span69[8]; - QuestSequence obj149 = new QuestSequence + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + span6 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span6[num3] = 4682u; + obj149.KillEnemyDataIds = list202; + reference157 = obj149; + obj148.Steps = list201; + reference156 = obj148; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 8 }; num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list203)[0]; - QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2006304u, new Vector3(417.07483f, -34.561768f, 222.9801f), 400) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference159 = ref span3[index2]; + QuestStep obj151 = new QuestStep(EInteractionType.Combat, 2006304u, new Vector3(417.07483f, -34.561768f, 222.9801f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -112921,46 +134396,54 @@ public static class AssemblyQuestLoader num3 = 1; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 4483u; - obj150.KillEnemyDataIds = list204; - reference159 = obj150; - obj149.Steps = list203; - reference158 = obj149; - ref QuestSequence reference160 = ref span69[9]; - QuestSequence obj151 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span6[num4] = 4483u; + obj151.KillEnemyDataIds = list204; + reference159 = obj151; + obj150.Steps = list203; + reference158 = obj150; + num++; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 2006381u, new Vector3(421.16418f, -29.404175f, 97.18469f), 400) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006381u, new Vector3(421.16418f, -29.404175f, 97.18469f), 400) { Fly = true }; - obj151.Steps = list205; - reference160 = obj151; - ref QuestSequence reference161 = ref span69[10]; - QuestSequence obj152 = new QuestSequence + obj152.Steps = list205; + reference160 = obj152; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span71 = CollectionsMarshal.AsSpan(list206); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, NextQuestId = new QuestId(1718) }; - obj152.Steps = list206; - reference161 = obj152; + obj153.Steps = list206; + reference161 = obj153; questRoot18.QuestSequence = list191; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(1718); @@ -112968,22 +134451,27 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot19.Author = list207; - num = 7; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span72 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference162 = ref span72[0]; - QuestSequence obj153 = new QuestSequence + index = 7; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference163 = ref span3[num2]; + QuestStep obj155 = new QuestStep(EInteractionType.AcceptQuest, 1014265u, new Vector3(377.37073f, -69.42938f, 695.6129f), 400) { StopDistance = 7f, Fly = true, @@ -112996,43 +134484,51 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + num4 = 1; + List list210 = new List(num4); + CollectionsMarshal.SetCount(list210, num4); + span5 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q1_000_000"), Answer = new ExcelRef("TEXT_JOBBRD600_01718_A1_000_000") }; - obj154.DialogueChoices = list210; - reference163 = obj154; - obj153.Steps = list209; - reference162 = obj153; - ref QuestSequence reference164 = ref span72[1]; - QuestSequence obj155 = new QuestSequence + obj155.DialogueChoices = list210; + reference163 = obj155; + obj154.Steps = list209; + reference162 = obj154; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 1 }; num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1014277u, new Vector3(485.00793f, -9.204832f, 742.6719f), 400) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014277u, new Vector3(485.00793f, -9.204832f, 742.6719f), 400) { Fly = true }; - obj155.Steps = list211; - reference164 = obj155; - ref QuestSequence reference165 = ref span72[2]; - QuestSequence obj156 = new QuestSequence + obj156.Steps = list211; + reference164 = obj156; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - 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) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; + QuestStep obj158 = new QuestStep(EInteractionType.Interact, 1014273u, new Vector3(28.976807f, -18.800003f, 96.69641f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -113045,84 +134541,100 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q2_000_000") }; - obj157.DialogueChoices = list213; - reference166 = obj157; - obj156.Steps = list212; - reference165 = obj156; - ref QuestSequence reference167 = ref span72[3]; - QuestSequence obj158 = new QuestSequence + obj158.DialogueChoices = list213; + reference166 = obj158; + obj157.Steps = list212; + reference165 = obj157; + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 3 }; num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1014274u, new Vector3(-449.9428f, -4.031367f, -716.4264f), 401) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014274u, new Vector3(-449.9428f, -4.031367f, -716.4264f), 401) { StopDistance = 5f }; - obj158.Steps = list214; - reference167 = obj158; - ref QuestSequence reference168 = ref span72[4]; - QuestSequence obj159 = new QuestSequence + obj159.Steps = list214; + reference167 = obj159; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014275u, new Vector3(-179.46143f, 19.473629f, -855.98535f), 401) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014275u, new Vector3(-179.46143f, 19.473629f, -855.98535f), 401) { Fly = true }; - obj159.Steps = list215; - reference168 = obj159; - ref QuestSequence reference169 = ref span72[5]; - QuestSequence obj160 = new QuestSequence + obj160.Steps = list215; + reference168 = obj160; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 5 }; num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list216)[0]; - QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1014276u, new Vector3(-451.89594f, -4.8975077f, -713.80176f), 401) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference170 = ref span3[index2]; + QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1014276u, new Vector3(-451.89594f, -4.8975077f, -713.80176f), 401) { Fly = true }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice + num4 = 1; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + span5 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q3_000_000") }; - obj161.DialogueChoices = list217; - reference170 = obj161; - obj160.Steps = list216; - reference169 = obj160; - ref QuestSequence reference171 = ref span72[6]; - QuestSequence obj162 = new QuestSequence + obj162.DialogueChoices = list217; + reference170 = obj162; + obj161.Steps = list216; + reference169 = obj161; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(2890) }; - obj162.Steps = list218; - reference171 = obj162; + obj163.Steps = list218; + reference171 = obj163; questRoot19.QuestSequence = list208; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(1719); @@ -113130,22 +134642,26 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "Cacahuetes"; questRoot20.Author = list219; - num = 8; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span73 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference172 = ref span73[0]; - QuestSequence obj163 = new QuestSequence + index = 8; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 0 }; num2 = 3; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span74 = CollectionsMarshal.AsSpan(list221); - span74[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -113172,7 +134688,8 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -113183,167 +134700,216 @@ public static class AssemblyQuestLoader } } }; - span74[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); - obj163.Steps = list221; - reference172 = obj163; - ref QuestSequence reference173 = ref span73[1]; - QuestSequence obj164 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + obj164.Steps = list221; + reference172 = obj164; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj164.Steps = list222; - reference173 = obj164; - ref QuestSequence reference174 = ref span73[2]; - QuestSequence obj165 = new QuestSequence + obj165.Steps = list222; + reference173 = obj165; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 2 }; num2 = 3; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference175 = ref span3[index2]; + QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1006245u, new Vector3(4.9591064f, -46.518013f, 248.49304f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; num3 = 6; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span76 = CollectionsMarshal.AsSpan(list224); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj166.CompletionQuestVariablesFlags = list224; - reference175 = obj166; - ref QuestStep reference176 = ref span75[1]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007092u, new Vector3(-59.31189f, -40.90982f, 232.62378f), 154); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span77 = CollectionsMarshal.AsSpan(list225); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list225; - reference176 = questStep10; - ref QuestStep reference177 = ref span75[2]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + span4 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj167.CompletionQuestVariablesFlags = list224; + reference175 = obj167; + index2++; + ref QuestStep reference176 = ref span3[index2]; + QuestStep questStep9 = 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); + span4 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list225; + reference176 = questStep9; + index2++; + ref QuestStep reference177 = ref span3[index2]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span78 = CollectionsMarshal.AsSpan(list226); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list226; - reference177 = questStep11; - obj165.Steps = list223; - reference174 = obj165; - ref QuestSequence reference178 = ref span73[3]; - QuestSequence obj167 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list226; + reference177 = questStep10; + obj166.Steps = list223; + reference174 = obj166; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span79 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference179 = ref span79[0]; - QuestStep obj168 = new QuestStep(EInteractionType.Combat, null, new Vector3(108.506836f, 7.167203f, -47.01306f), 154) + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref QuestStep reference179 = ref span3[num2]; + QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(108.506836f, 7.167203f, -47.01306f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = 4683u; - obj168.KillEnemyDataIds = list228; + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span6 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span6[num3] = 4683u; + obj169.KillEnemyDataIds = list228; num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span80 = CollectionsMarshal.AsSpan(list229); - span80[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = null; - obj168.CompletionQuestVariablesFlags = list229; - reference179 = obj168; - span79[1] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); - obj167.Steps = list227; - reference178 = obj167; - ref QuestSequence reference180 = ref span73[4]; - QuestSequence obj169 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj169.CompletionQuestVariablesFlags = list229; + reference179 = obj169; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); + obj168.Steps = list227; + reference178 = obj168; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 4 }; num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); - obj169.Steps = list230; - reference180 = obj169; - ref QuestSequence reference181 = ref span73[5]; - QuestSequence obj170 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); + obj170.Steps = list230; + reference180 = obj170; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj170.Steps = list231; - reference181 = obj170; - ref QuestSequence reference182 = ref span73[6]; - QuestSequence obj171 = new QuestSequence + obj171.Steps = list231; + reference181 = obj171; + num++; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 6 }; num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1013608u, new Vector3(-314.9615f, 21.609262f, 182.8794f), 148); - obj171.Steps = list232; - reference182 = obj171; - ref QuestSequence reference183 = ref span73[7]; - QuestSequence obj172 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013608u, new Vector3(-314.9615f, 21.609262f, 182.8794f), 148); + obj172.Steps = list232; + reference182 = obj172; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, NextQuestId = new QuestId(1720) }; - obj172.Steps = list233; - reference183 = obj172; + obj173.Steps = list233; + reference183 = obj173; questRoot20.QuestSequence = list220; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(1720); @@ -113351,21 +134917,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "Cacahuetes"; questRoot21.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span81 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference184 = ref span81[0]; - QuestSequence obj173 = new QuestSequence + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 0 }; num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -113376,63 +134947,75 @@ public static class AssemblyQuestLoader } } }; - obj173.Steps = list236; - reference184 = obj173; - ref QuestSequence reference185 = ref span81[1]; - QuestSequence obj174 = new QuestSequence + obj174.Steps = list236; + reference184 = obj174; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj174.Steps = list237; - reference185 = obj174; - ref QuestSequence reference186 = ref span81[2]; - QuestSequence obj175 = new QuestSequence + obj175.Steps = list237; + reference185 = obj175; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 2 }; num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013663u, new Vector3(161.91345f, 275.37952f, 16.403442f), 155) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013663u, new Vector3(161.91345f, 275.37952f, 16.403442f), 155) { Fly = true }; - obj175.Steps = list238; - reference186 = obj175; - ref QuestSequence reference187 = ref span81[3]; - QuestSequence obj176 = new QuestSequence + obj176.Steps = list238; + reference186 = obj176; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 2005889u, new Vector3(143.78564f, 280.0183f, 19.882507f), 155); - obj176.Steps = list239; - reference187 = obj176; - ref QuestSequence reference188 = ref span81[4]; - QuestSequence obj177 = new QuestSequence + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005889u, new Vector3(143.78564f, 280.0183f, 19.882507f), 155); + obj177.Steps = list239; + reference187 = obj177; + num++; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, NextQuestId = new QuestId(1721) }; - obj177.Steps = list240; - reference188 = obj177; + obj178.Steps = list240; + reference188 = obj178; questRoot21.QuestSequence = list235; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(1721); @@ -113440,21 +135023,26 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "Cacahuetes"; questRoot22.Author = list241; - num = 8; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span82 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference189 = ref span82[0]; - QuestSequence obj178 = new QuestSequence + index = 8; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -113465,150 +135053,191 @@ public static class AssemblyQuestLoader } } }; - obj178.Steps = list243; - reference189 = obj178; - ref QuestSequence reference190 = ref span82[1]; - QuestSequence obj179 = new QuestSequence + obj179.Steps = list243; + reference189 = obj179; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 1 }; num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1013613u, new Vector3(479.91138f, 226.62401f, 817.0442f), 397) + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013613u, new Vector3(479.91138f, 226.62401f, 817.0442f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj179.Steps = list244; - reference190 = obj179; - ref QuestSequence reference191 = ref span82[2]; - QuestSequence obj180 = new QuestSequence + obj180.Steps = list244; + reference190 = obj180; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span83 = CollectionsMarshal.AsSpan(list245); - ref QuestStep reference192 = ref span83[0]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1011232u, new Vector3(506.8589f, 217.95148f, 792.4772f), 397); - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span84 = CollectionsMarshal.AsSpan(list246); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list246; - reference192 = questStep12; - ref QuestStep reference193 = ref span83[1]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1011237u, new Vector3(447.3181f, 212.53984f, 725.00183f), 397); + index2 = 2; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + ref QuestStep reference192 = ref span3[num2]; + QuestStep questStep11 = 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); + span4 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list246; + reference192 = questStep11; + num2++; + ref QuestStep reference193 = ref span3[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1011237u, new Vector3(447.3181f, 212.53984f, 725.00183f), 397); num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span85 = CollectionsMarshal.AsSpan(list247); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list247; - reference193 = questStep13; - obj180.Steps = list245; - reference191 = obj180; - ref QuestSequence reference194 = ref span82[3]; - QuestSequence obj181 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list247); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list247; + reference193 = questStep12; + obj181.Steps = list245; + reference191 = obj181; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 3 }; num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397); - obj181.Steps = list248; - reference194 = obj181; - ref QuestSequence reference195 = ref span82[4]; - QuestSequence obj182 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397); + obj182.Steps = list248; + reference194 = obj182; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1013617u, new Vector3(-513.0846f, 101.57904f, -653.3456f), 397) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013617u, new Vector3(-513.0846f, 101.57904f, -653.3456f), 397) { Fly = true }; - obj182.Steps = list249; - reference195 = obj182; - ref QuestSequence reference196 = ref span82[5]; - QuestSequence obj183 = new QuestSequence + obj183.Steps = list249; + reference195 = obj183; + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 5 }; num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + ref QuestStep reference197 = ref span3[index2]; + QuestStep obj185 = new QuestStep(EInteractionType.Combat, null, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = 4677u; - obj184.KillEnemyDataIds = list251; + num4 = 1; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + span6 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span6[num3] = 4677u; + obj185.KillEnemyDataIds = list251; num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span87 = CollectionsMarshal.AsSpan(list252); - span87[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; - obj184.CompletionQuestVariablesFlags = list252; - reference197 = obj184; - span86[1] = new QuestStep(EInteractionType.Interact, 2005855u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); - obj183.Steps = list250; - reference196 = obj183; - ref QuestSequence reference198 = ref span82[6]; - QuestSequence obj185 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj185.CompletionQuestVariablesFlags = list252; + reference197 = obj185; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005855u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); + obj184.Steps = list250; + reference196 = obj184; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1013618u, new Vector3(-402.12103f, 90.9028f, -688.53284f), 397) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013618u, new Vector3(-402.12103f, 90.9028f, -688.53284f), 397) { Fly = true }; - obj185.Steps = list253; - reference198 = obj185; - ref QuestSequence reference199 = ref span82[7]; - QuestSequence obj186 = new QuestSequence + obj186.Steps = list253; + reference198 = obj186; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(1722) }; - obj186.Steps = list254; - reference199 = obj186; + obj187.Steps = list254; + reference199 = obj187; questRoot22.QuestSequence = list242; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(1722); @@ -113616,21 +135245,26 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list255); + index = 0; + span[index] = "Cacahuetes"; questRoot23.Author = list255; - num = 5; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span88 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference200 = ref span88[0]; - QuestSequence obj187 = new QuestSequence + index = 5; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + span2 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -113641,87 +135275,107 @@ public static class AssemblyQuestLoader } } }; - obj187.Steps = list257; - reference200 = obj187; - ref QuestSequence reference201 = ref span88[1]; - QuestSequence obj188 = new QuestSequence + obj188.Steps = list257; + reference200 = obj188; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 1 }; num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1013619u, new Vector3(-274.49457f, 125.33218f, -13.870483f), 397) + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013619u, new Vector3(-274.49457f, 125.33218f, -13.870483f), 397) { Fly = true }; - obj188.Steps = list258; - reference201 = obj188; - ref QuestSequence reference202 = ref span88[2]; - QuestSequence obj189 = new QuestSequence + obj189.Steps = list258; + reference201 = obj189; + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Action, 1013620u, new Vector3(-275.2575f, 125.596924f, -11.215393f), 397) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1013620u, new Vector3(-275.2575f, 125.596924f, -11.215393f), 397) { StopDistance = 5f, Action = EAction.Cure2 }; - obj189.Steps = list259; - reference202 = obj189; - ref QuestSequence reference203 = ref span88[3]; - QuestSequence obj190 = new QuestSequence + obj190.Steps = list259; + reference202 = obj190; + num++; + ref QuestSequence reference203 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 3 }; num2 = 2; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference204 = ref span3[index2]; + QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 4690u; - obj191.KillEnemyDataIds = list261; + num4 = 1; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + span6 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span6[num3] = 4690u; + obj192.KillEnemyDataIds = list261; num3 = 6; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span90 = CollectionsMarshal.AsSpan(list262); - span90[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = null; - obj191.CompletionQuestVariablesFlags = list262; - reference204 = obj191; - span89[1] = new QuestStep(EInteractionType.Interact, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); - obj190.Steps = list260; - reference203 = obj190; - ref QuestSequence reference205 = ref span88[4]; - QuestSequence obj192 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list262); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj192.CompletionQuestVariablesFlags = list262; + reference204 = obj192; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); + obj191.Steps = list260; + reference203 = obj191; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1723) }; - obj192.Steps = list263; - reference205 = obj192; + obj193.Steps = list263; + reference205 = obj193; questRoot23.QuestSequence = list256; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(1723); @@ -113729,21 +135383,26 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list264); + index = 0; + span[index] = "Cacahuetes"; questRoot24.Author = list264; - num = 6; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span91 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference206 = ref span91[0]; - QuestSequence obj193 = new QuestSequence + index = 6; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + span2 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 0 }; num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -113754,122 +135413,149 @@ public static class AssemblyQuestLoader } } }; - obj193.Steps = list266; - reference206 = obj193; - ref QuestSequence reference207 = ref span91[1]; - QuestSequence obj194 = new QuestSequence + obj194.Steps = list266; + reference206 = obj194; + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1013624u, new Vector3(-183.61182f, -104.708206f, 505.60767f), 398) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013624u, new Vector3(-183.61182f, -104.708206f, 505.60767f), 398) { Fly = true }; - obj194.Steps = list267; - reference207 = obj194; - ref QuestSequence reference208 = ref span91[2]; - QuestSequence obj195 = new QuestSequence + obj195.Steps = list267; + reference207 = obj195; + num++; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 2 }; num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; + QuestStep obj197 = new QuestStep(EInteractionType.Combat, null, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span93 = CollectionsMarshal.AsSpan(list269); - span93[0] = 4691u; - span93[1] = 4692u; - obj196.KillEnemyDataIds = list269; + num4 = 2; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + span6 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span6[num3] = 4691u; + num3++; + span6[num3] = 4692u; + obj197.KillEnemyDataIds = list269; num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span94 = CollectionsMarshal.AsSpan(list270); - span94[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = null; - obj196.CompletionQuestVariablesFlags = list270; - reference209 = obj196; - span92[1] = new QuestStep(EInteractionType.Interact, 2005859u, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398); - obj195.Steps = list268; - reference208 = obj195; - ref QuestSequence reference210 = ref span91[3]; - QuestSequence obj197 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span4[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj197.CompletionQuestVariablesFlags = list270; + reference209 = obj197; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005859u, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398); + obj196.Steps = list268; + reference208 = obj196; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { Fly = true }; - obj197.Steps = list271; - reference210 = obj197; - ref QuestSequence reference211 = ref span91[4]; - QuestSequence obj198 = new QuestSequence + obj198.Steps = list271; + reference210 = obj198; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 4 }; num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + ref QuestStep reference212 = ref span3[index2]; + QuestStep obj200 = new QuestStep(EInteractionType.Combat, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span96 = CollectionsMarshal.AsSpan(list273); - span96[0] = 4690u; - span96[1] = 4691u; - obj199.KillEnemyDataIds = list273; - reference212 = obj199; - span95[1] = new QuestStep(EInteractionType.Interact, 2005861u, new Vector3(-678.4009f, -100.60278f, 778.13367f), 398); - obj198.Steps = list272; - reference211 = obj198; - ref QuestSequence reference213 = ref span91[5]; - QuestSequence obj200 = new QuestSequence + num4 = 2; + List list273 = new List(num4); + CollectionsMarshal.SetCount(list273, num4); + span6 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span6[num3] = 4690u; + num3++; + span6[num3] = 4691u; + obj200.KillEnemyDataIds = list273; + reference212 = obj200; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005861u, new Vector3(-678.4009f, -100.60278f, 778.13367f), 398); + obj199.Steps = list272; + reference211 = obj199; + num++; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + ref QuestStep reference214 = ref span3[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.CompleteQuest, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398); num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list275); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM580_01723_Q1_000_000"), Answer = new ExcelRef("TEXT_JOBWHM580_01723_A1_000_001") }; - questStep14.DialogueChoices = list275; - questStep14.NextQuestId = new QuestId(1724); - reference214 = questStep14; - obj200.Steps = list274; - reference213 = obj200; + questStep13.DialogueChoices = list275; + questStep13.NextQuestId = new QuestId(1724); + reference214 = questStep13; + obj201.Steps = list274; + reference213 = obj201; questRoot24.QuestSequence = list265; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(1724); @@ -113877,21 +135563,26 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "Cacahuetes"; questRoot25.Author = list276; - num = 2; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span97 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference215 = ref span97[0]; - QuestSequence obj201 = new QuestSequence + index = 2; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 0 }; num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013627u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013627u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -113902,18 +135593,20 @@ public static class AssemblyQuestLoader } } }; - obj201.Steps = list278; - reference215 = obj201; - ref QuestSequence reference216 = ref span97[1]; - QuestSequence obj202 = new QuestSequence + obj202.Steps = list278; + reference215 = obj202; + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span98 = CollectionsMarshal.AsSpan(list279); - span98[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + index2 = 3; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -113940,7 +135633,8 @@ public static class AssemblyQuestLoader } } }; - span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -113951,12 +135645,13 @@ public static class AssemblyQuestLoader } } }; - span98[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1725) }; - obj202.Steps = list279; - reference216 = obj202; + obj203.Steps = list279; + reference216 = obj203; questRoot25.QuestSequence = list277; AddQuest(questId25, questRoot25); QuestId questId26 = new QuestId(1725); @@ -113964,22 +135659,26 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "Cacahuetes"; questRoot26.Author = list280; - num = 8; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span99 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference217 = ref span99[0]; - QuestSequence obj203 = new QuestSequence + index = 8; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 0 }; num2 = 3; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span100 = CollectionsMarshal.AsSpan(list282); - span100[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -114006,7 +135705,8 @@ public static class AssemblyQuestLoader } } }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -114017,33 +135717,39 @@ public static class AssemblyQuestLoader } } }; - span100[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); - obj203.Steps = list282; - reference217 = obj203; - ref QuestSequence reference218 = ref span99[1]; - QuestSequence obj204 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + obj204.Steps = list282; + reference217 = obj204; + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj204.Steps = list283; - reference218 = obj204; - ref QuestSequence reference219 = ref span99[2]; - QuestSequence obj205 = new QuestSequence + obj205.Steps = list283; + reference218 = obj205; + num++; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 2 }; num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span101 = CollectionsMarshal.AsSpan(list284); - span101[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -114070,7 +135776,8 @@ public static class AssemblyQuestLoader } } }; - span101[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -114081,70 +135788,85 @@ public static class AssemblyQuestLoader } } }; - span101[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); - obj205.Steps = list284; - reference219 = obj205; - ref QuestSequence reference220 = ref span99[3]; - QuestSequence obj206 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + obj206.Steps = list284; + reference219 = obj206; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1013632u, new Vector3(491.38623f, -51.091385f, 34.561646f), 398) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013632u, new Vector3(491.38623f, -51.091385f, 34.561646f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - obj206.Steps = list285; - reference220 = obj206; - ref QuestSequence reference221 = ref span99[4]; - QuestSequence obj207 = new QuestSequence + obj207.Steps = list285; + reference220 = obj207; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 4 }; num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013635u, new Vector3(-122.453674f, 0.72138774f, -615.80835f), 398) + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013635u, new Vector3(-122.453674f, 0.72138774f, -615.80835f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - obj207.Steps = list286; - reference221 = obj207; - ref QuestSequence reference222 = ref span99[5]; - QuestSequence obj208 = new QuestSequence + obj208.Steps = list286; + reference221 = obj208; + num++; + ref QuestSequence reference222 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); - obj208.Steps = list287; - reference222 = obj208; - ref QuestSequence reference223 = ref span99[6]; - QuestSequence obj209 = new QuestSequence + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); + obj209.Steps = list287; + reference222 = obj209; + num++; + ref QuestSequence reference223 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 6 }; num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); - obj209.Steps = list288; - reference223 = obj209; - ref QuestSequence reference224 = ref span99[7]; - QuestSequence obj210 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); + obj210.Steps = list288; + reference223 = obj210; + num++; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span102 = CollectionsMarshal.AsSpan(list289); - span102[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + index2 = 3; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -114171,7 +135893,8 @@ public static class AssemblyQuestLoader } } }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -114182,12 +135905,13 @@ public static class AssemblyQuestLoader } } }; - span102[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(2414) }; - obj210.Steps = list289; - reference224 = obj210; + obj211.Steps = list289; + reference224 = obj211; questRoot26.QuestSequence = list281; AddQuest(questId26, questRoot26); QuestId questId27 = new QuestId(1730); @@ -114195,120 +135919,159 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list290); + index = 0; + span[index] = "Thaksin"; questRoot27.Author = list290; - num = 6; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span103 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference225 = ref span103[0]; - QuestSequence obj211 = new QuestSequence + index = 6; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + span2 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 0 }; num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); - obj211.Steps = list292; - reference225 = obj211; - ref QuestSequence reference226 = ref span103[1]; - QuestSequence obj212 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + obj212.Steps = list292; + reference225 = obj212; + num++; + ref QuestSequence reference226 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); - obj212.Steps = list293; - reference226 = obj212; - ref QuestSequence reference227 = ref span103[2]; - QuestSequence obj213 = new QuestSequence + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); + obj213.Steps = list293; + reference226 = obj213; + num++; + ref QuestSequence reference227 = ref span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 2 }; num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); - obj213.Steps = list294; - reference227 = obj213; - ref QuestSequence reference228 = ref span103[3]; - QuestSequence obj214 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + obj214.Steps = list294; + reference227 = obj214; + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - Span span104 = CollectionsMarshal.AsSpan(list295); - ref QuestStep reference229 = ref span104[0]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1014711u, new Vector3(58.03003f, -7.146736f, 82.41394f), 418); - num3 = 6; - List list296 = new List(num3); - CollectionsMarshal.SetCount(list296, num3); - Span span105 = CollectionsMarshal.AsSpan(list296); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list296; - reference229 = questStep15; - ref QuestStep reference230 = ref span104[1]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1014712u, new Vector3(93.91919f, -19.941168f, 78.20239f), 418); + index2 = 3; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; + QuestStep questStep14 = 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); + span4 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep14.CompletionQuestVariablesFlags = list296; + reference229 = questStep14; + num2++; + ref QuestStep reference230 = ref span3[num2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1014712u, new Vector3(93.91919f, -19.941168f, 78.20239f), 418); num3 = 6; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - Span span106 = CollectionsMarshal.AsSpan(list297); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list297; - reference230 = questStep16; - ref QuestStep reference231 = ref span104[2]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1014713u, new Vector3(131.9447f, -20.000105f, 62.027832f), 418); - num3 = 6; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span107 = CollectionsMarshal.AsSpan(list298); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list298; - reference231 = questStep17; - obj214.Steps = list295; - reference228 = obj214; - ref QuestSequence reference232 = ref span103[4]; - QuestSequence obj215 = new QuestSequence + span4 = CollectionsMarshal.AsSpan(list297); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list297; + reference230 = questStep15; + num2++; + ref QuestStep reference231 = ref span3[num2]; + QuestStep questStep16 = 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); + span4 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list298; + reference231 = questStep16; + obj215.Steps = list295; + reference228 = obj215; + num++; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = 4 }; num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1014714u, new Vector3(23.178406f, -12.020877f, 35.294067f), 418); - obj215.Steps = list299; - reference232 = obj215; - ref QuestSequence reference233 = ref span103[5]; - QuestSequence obj216 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014714u, new Vector3(23.178406f, -12.020877f, 35.294067f), 418); + obj216.Steps = list299; + reference232 = obj216; + num++; + ref QuestSequence reference233 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); - obj216.Steps = list300; - reference233 = obj216; + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + obj217.Steps = list300; + reference233 = obj217; questRoot27.QuestSequence = list291; AddQuest(questId27, questRoot27); QuestId questId28 = new QuestId(1744); @@ -114316,64 +136079,77 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - CollectionsMarshal.AsSpan(list301)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list301); + index = 0; + span[index] = "JerryWester"; questRoot28.Author = list301; - num = 3; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - Span span108 = CollectionsMarshal.AsSpan(list302); - ref QuestSequence reference234 = ref span108[0]; - QuestSequence obj217 = new QuestSequence + index = 3; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + span2 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference234 = ref span2[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 0 }; num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); - obj217.Steps = list303; - reference234 = obj217; - ref QuestSequence reference235 = ref span108[1]; - QuestSequence obj218 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); + obj218.Steps = list303; + reference234 = obj218; + num++; + ref QuestSequence reference235 = ref span2[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference236 = ref span3[num2]; + QuestStep obj220 = new QuestStep(EInteractionType.Combat, null, new Vector3(419.65634f, 162.0455f, -176.55469f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list305); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 4802u, MinimumKillCount = 3u }; - obj219.ComplexCombatData = list305; - reference236 = obj219; - obj218.Steps = list304; - reference235 = obj218; - ref QuestSequence reference237 = ref span108[2]; - QuestSequence obj220 = new QuestSequence + obj220.ComplexCombatData = list305; + reference236 = obj220; + obj219.Steps = list304; + reference235 = obj219; + num++; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span109 = CollectionsMarshal.AsSpan(list306); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.6143f, 212.77472f, 703.436f), 397) + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.6143f, 212.77472f, 703.436f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); - obj220.Steps = list306; - reference237 = obj220; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); + obj221.Steps = list306; + reference237 = obj221; questRoot28.QuestSequence = list302; AddQuest(questId28, questRoot28); QuestId questId29 = new QuestId(1748); @@ -114381,112 +136157,106 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list307); + index = 0; + span[index] = "JerryWester"; questRoot29.Author = list307; - num = 4; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span110 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference238 = ref span110[0]; - QuestSequence obj221 = new QuestSequence + index = 4; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + span2 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list309)[0]; - QuestStep obj222 = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) - { - AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop - }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 401; - skipAetheryteCondition.InTerritory = list310; - skipConditions14.AetheryteShortcutIf = skipAetheryteCondition; - obj222.SkipConditions = skipConditions14; - reference239 = obj222; - obj221.Steps = list309; - reference238 = obj221; - ref QuestSequence reference240 = ref span110[1]; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + obj222.Steps = list309; + reference238 = obj222; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list311)[0]; + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + ref QuestStep reference240 = ref span3[index2]; 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 list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = new ComplexCombatData + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + span7 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4813u, MinimumKillCount = 1u, RewardItemId = 2001599u, RewardItemCount = 1 }; - obj224.ComplexCombatData = list312; - SkipConditions skipConditions15 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 401; - skipAetheryteCondition2.InTerritory = list313; - skipConditions15.AetheryteShortcutIf = skipAetheryteCondition2; - obj224.SkipConditions = skipConditions15; - reference241 = obj224; - obj223.Steps = list311; - reference240 = obj223; - ref QuestSequence reference242 = ref span110[2]; + obj224.ComplexCombatData = list311; + reference240 = obj224; + obj223.Steps = list310; + reference239 = obj223; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - ref QuestStep reference243 = ref CollectionsMarshal.AsSpan(list314)[0]; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference242 = ref span3[num2]; 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 + List list313 = new List(num3); + CollectionsMarshal.SetCount(list313, num3); + span7 = CollectionsMarshal.AsSpan(list313); + num4 = 0; + span7[num4] = 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]; + obj226.ComplexCombatData = list313; + reference242 = obj226; + obj225.Steps = list312; + reference241 = obj225; + num++; + ref QuestSequence reference243 = ref span2[num]; 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; + List list314 = new List(num2); + CollectionsMarshal.SetCount(list314, num2); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + obj227.Steps = list314; + reference243 = obj227; questRoot29.QuestSequence = list308; AddQuest(questId29, questRoot29); } @@ -114498,13 +136268,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -114512,18 +136285,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.22125f, 122.768654f, -59.46304f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -114531,7 +136309,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new ComplexCombatData + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new ComplexCombatData { DataId = 3993u, MinimumKillCount = 4u @@ -114540,7 +136320,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -114548,7 +136329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -114558,24 +136341,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -114583,15 +136372,19 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-334.73944f, 115.3904f, -107.88696f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new ComplexCombatData + index3 = 1; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + span4 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 4464u, MinimumKillCount = 3u @@ -114600,15 +136393,18 @@ public static class AssemblyQuestLoader reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list8; @@ -114618,13 +136414,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "Thaksin"; questRoot3.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span3 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span3[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -114632,21 +136431,27 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span3[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -114654,63 +136459,88 @@ public static class AssemblyQuestLoader num2 = 3; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestStep reference12 = ref span4[0]; + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006005u, new Vector3(-157.70203f, 110.73462f, -52.414795f), 397); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); Span span5 = CollectionsMarshal.AsSpan(list18); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list18; reference12 = questStep; - ref QuestStep reference13 = ref span4[1]; + index2++; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2006006u, new Vector3(-228.25977f, 112.47424f, -127.55017f), 397); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span6 = CollectionsMarshal.AsSpan(list19); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + span5 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list19; reference13 = questStep2; - ref QuestStep reference14 = ref span4[2]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006007u, new Vector3(-348.10413f, 116.50256f, -91.93567f), 397); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span7 = CollectionsMarshal.AsSpan(list20); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list20; reference14 = questStep3; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); obj12.Steps = list21; reference15 = obj12; - ref QuestSequence reference16 = ref span3[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -114718,7 +136548,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { NextQuestId = new QuestId(1764) }; @@ -114731,24 +136563,30 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "Thaksin"; questRoot4.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span8 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference17 = ref span8[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj14.Steps = list25; reference17 = obj14; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -114756,36 +136594,44 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1014134u, new Vector3(-293.23267f, 126.85495f, 5.2643433f), 397); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014134u, new Vector3(-293.23267f, 126.85495f, 5.2643433f), 397); obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span9 = CollectionsMarshal.AsSpan(list27); - span9[0] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397) + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397) { Fly = true }; - ref QuestStep reference20 = ref span9[1]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 4041u, new Vector3(289.0053f, 132.30807f, -233.57523f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 4041u; + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span6 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span6[num3] = 4041u; obj17.KillEnemyDataIds = list28; reference20 = obj17; obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference21 = ref span8[3]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -114793,18 +136639,23 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397); + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397); obj18.Steps = list29; reference21 = obj18; - ref QuestSequence reference22 = ref span8[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1765) @@ -114818,13 +136669,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "Thaksin"; questRoot5.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span10[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -114832,24 +136686,30 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span10[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) { Fly = true }; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span10[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -114857,7 +136717,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list35)[0]; + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + ref QuestStep reference26 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 4470u, new Vector3(-468.44992f, 93.85853f, -506.40417f), 397) { Fly = true, @@ -114866,28 +136728,34 @@ public static class AssemblyQuestLoader num3 = 1; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = 4470u; + span6 = CollectionsMarshal.AsSpan(list36); + index3 = 0; + span6[index3] = 4470u; obj23.KillEnemyDataIds = list36; reference26 = obj23; obj22.Steps = list35; reference25 = obj22; - ref QuestSequence reference27 = ref span10[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-219.1624f, 112.29031f, -239.88861f), 397) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-219.1624f, 112.29031f, -239.88861f), 397) { Fly = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span10[4]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -114895,7 +136763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1766) @@ -114909,24 +136779,30 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "Thaksin"; questRoot6.Author = list39; - num = 6; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span12 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span12[0]; + index = 6; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj26.Steps = list41; reference29 = obj26; - ref QuestSequence reference30 = ref span12[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -114934,27 +136810,33 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) { Fly = true }; obj27.Steps = list42; reference30 = obj27; - ref QuestSequence reference31 = ref span12[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) { Fly = true }; obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span12[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -114962,36 +136844,44 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list44)[0]; + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 4468u, new Vector3(-696.8278f, 100.08534f, -603.926f), 397) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = 4468u; + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span6 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span6[num3] = 4468u; obj30.KillEnemyDataIds = list45; reference33 = obj30; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference34 = ref span12[4]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) { Fly = true }; obj31.Steps = list46; reference34 = obj31; - ref QuestSequence reference35 = ref span12[5]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -114999,7 +136889,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1769) @@ -115013,24 +136905,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "Thaksin"; questRoot7.Author = list48; - num = 11; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span13 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span13[0]; + index = 11; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj33.Steps = list50; reference36 = obj33; - ref QuestSequence reference37 = ref span13[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -115038,24 +136936,30 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397) { Fly = true }; obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference38 = ref span13[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2006013u, new Vector3(-287.76996f, 77.74463f, -278.00415f), 397); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006013u, new Vector3(-287.76996f, 77.74463f, -278.00415f), 397); obj35.Steps = list52; reference38 = obj35; - ref QuestSequence reference39 = ref span13[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -115063,20 +136967,25 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); obj36.Steps = list53; reference39 = obj36; - ref QuestSequence reference40 = ref span13[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span14 = CollectionsMarshal.AsSpan(list54); - span14[0] = new QuestStep(EInteractionType.Interact, 2006014u, new Vector3(-291.8593f, 76.98169f, -261.0056f), 397); - ref QuestStep reference41 = ref span14[1]; + index2 = 2; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006014u, new Vector3(-291.8593f, 76.98169f, -261.0056f), 397); + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, 4037u, new Vector3(-285.1214f, 76.98337f, -275.5287f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -115084,12 +136993,15 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 4037u; + span6 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span6[index3] = 4037u; obj38.KillEnemyDataIds = list55; reference41 = obj38; obj37.Steps = list54; reference40 = obj37; - ref QuestSequence reference42 = ref span13[5]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 @@ -115097,24 +137009,30 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span13[6]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true }; obj40.Steps = list57; reference43 = obj40; - ref QuestSequence reference44 = ref span13[7]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 7 @@ -115122,21 +137040,27 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference45 = ref span13[8]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 2006015u, new Vector3(-252.33844f, 127.00073f, 11.093262f), 397); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006015u, new Vector3(-252.33844f, 127.00073f, 11.093262f), 397); obj42.Steps = list59; reference45 = obj42; - ref QuestSequence reference46 = ref span13[9]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 9 @@ -115144,18 +137068,23 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); obj43.Steps = list60; reference46 = obj43; - ref QuestSequence reference47 = ref span13[10]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj44.Steps = list61; reference47 = obj44; questRoot7.QuestSequence = list49; @@ -115165,13 +137094,16 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span15 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference48 = ref span15[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -115179,37 +137111,48 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj45.Steps = list64; reference48 = obj45; - ref QuestSequence reference49 = ref span15[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 8; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span16 = CollectionsMarshal.AsSpan(list65); - ref QuestStep reference50 = ref span16[0]; + index2 = 8; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + ref QuestStep reference50 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(627.76666f, -26.098835f, -408.3923f), 398); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span17 = CollectionsMarshal.AsSpan(list66); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span5 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list66; skipConditions.StepIf = skipStepConditions; questStep4.SkipConditions = skipConditions; reference50 = questStep4; - ref QuestStep reference51 = ref span16[1]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.6058f, -17.959486f, -409.5136f), 398) { DisableNavmesh = true @@ -115219,74 +137162,102 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span18 = CollectionsMarshal.AsSpan(list67); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list67; skipConditions2.StepIf = skipStepConditions2; obj47.SkipConditions = skipConditions2; reference51 = obj47; - ref QuestStep reference52 = ref span16[2]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.08307f, -23.861216f, -313.61807f), 398) { DisableNavmesh = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span19 = CollectionsMarshal.AsSpan(list68); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + span5 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list68; skipConditions3.StepIf = skipStepConditions3; obj48.SkipConditions = skipConditions3; reference52 = obj48; - ref QuestStep reference53 = ref span16[3]; + num2++; + ref QuestStep reference53 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1011932u, new Vector3(685.96924f, -24.382862f, -269.06238f), 398); num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span20 = CollectionsMarshal.AsSpan(list69); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list69; reference53 = questStep5; - ref QuestStep reference54 = ref span16[4]; + num2++; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(698.47815f, -24.308271f, -262.69476f), 398) { Mount = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span21 = CollectionsMarshal.AsSpan(list70); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + span5 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list70; skipConditions4.StepIf = skipStepConditions4; obj49.SkipConditions = skipConditions4; reference54 = obj49; - ref QuestStep reference55 = ref span16[5]; + num2++; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(725.30743f, -43.07919f, -208.64124f), 398) { DisableNavmesh = true @@ -115296,48 +137267,69 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span22 = CollectionsMarshal.AsSpan(list71); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list71; skipConditions5.StepIf = skipStepConditions5; obj50.SkipConditions = skipConditions5; reference55 = obj50; - ref QuestStep reference56 = ref span16[6]; + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011924u, new Vector3(849.0576f, -37.669926f, -39.56665f), 398); - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span23 = CollectionsMarshal.AsSpan(list72); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span5 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list72; reference56 = questStep6; - ref QuestStep reference57 = ref span16[7]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1011923u, new Vector3(711.1161f, -36.390835f, 198.10791f), 398); num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span24 = CollectionsMarshal.AsSpan(list73); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list73; reference57 = questStep7; obj46.Steps = list65; reference49 = obj46; - ref QuestSequence reference58 = ref span15[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -115345,7 +137337,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -115358,40 +137352,52 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list75; - num = 3; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span25 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference59 = ref span25[0]; + index = 3; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); obj52.Steps = list77; reference59 = obj52; - ref QuestSequence reference60 = ref span25[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; + num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list78)[0]; + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.682434f, -49.685223f, -148.21802f), 398); + index2++; + ref QuestStep reference61 = ref span3[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 4001u, new Vector3(179.33923f, -108.80406f, 597.07007f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new ComplexCombatData + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span4 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span4[num3] = new ComplexCombatData { DataId = 4001u, MinimumKillCount = 2u, @@ -115402,17 +137408,20 @@ public static class AssemblyQuestLoader reference61 = obj54; obj53.Steps = list78; reference60 = obj53; - ref QuestSequence reference62 = ref span25[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span26 = CollectionsMarshal.AsSpan(list80); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398); - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); obj55.Steps = list80; reference62 = obj55; questRoot9.QuestSequence = list76; @@ -115422,13 +137431,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "Thaksin"; questRoot10.Author = list81; - num = 3; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span27 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference63 = ref span27[0]; + index = 3; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -115436,22 +137448,26 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; obj56.Steps = list83; reference63 = obj56; - ref QuestSequence reference64 = ref span27[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span28 = CollectionsMarshal.AsSpan(list84); - ref QuestStep reference65 = ref span28[0]; + index2 = 2; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 2005617u, new Vector3(197.22278f, -99.931335f, 644.4646f), 398) { StopDistance = 0.5f, @@ -115460,36 +137476,50 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span29 = CollectionsMarshal.AsSpan(list85); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list85; reference65 = obj58; - ref QuestStep reference66 = ref span28[1]; + num2++; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 2005618u, new Vector3(287.64783f, -94.10242f, 597.9553f), 398) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span30 = CollectionsMarshal.AsSpan(list86); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span5 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list86; reference66 = obj59; obj57.Steps = list84; reference64 = obj57; - ref QuestSequence reference67 = ref span27[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -115497,7 +137527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true, NextQuestId = new QuestId(1793) @@ -115511,27 +137543,33 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "Thaksin"; questRoot11.Author = list88; - num = 3; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span31 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference68 = ref span31[0]; + index = 3; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; obj61.Steps = list90; reference68 = obj61; - ref QuestSequence reference69 = ref span31[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -115539,8 +137577,9 @@ public static class AssemblyQuestLoader num2 = 4; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span32 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference70 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 2005636u, new Vector3(-247.21143f, -77.62268f, 819.4857f), 398) { Fly = true @@ -115548,33 +137587,47 @@ public static class AssemblyQuestLoader num3 = 6; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span33 = CollectionsMarshal.AsSpan(list92); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list92; reference70 = obj63; - ref QuestStep reference71 = ref span32[1]; + index2++; + ref QuestStep reference71 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2005635u, new Vector3(-187.24353f, -84.85547f, 733.51636f), 398) { Fly = true }; - num3 = 6; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span34 = CollectionsMarshal.AsSpan(list93); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + span5 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list93; reference71 = obj64; - ref QuestStep reference72 = ref span32[2]; + index2++; + ref QuestStep reference72 = ref span3[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 2005633u, new Vector3(-273.518f, -82.47504f, 644.6478f), 398) { Fly = true @@ -115582,43 +137635,59 @@ public static class AssemblyQuestLoader num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span35 = CollectionsMarshal.AsSpan(list94); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list94; reference72 = obj65; - ref QuestStep reference73 = ref span32[3]; + index2++; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 2005634u, new Vector3(-307.3015f, -80.1557f, 665.6748f), 398) { Fly = true }; - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span36 = CollectionsMarshal.AsSpan(list95); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + span5 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list95; reference73 = obj66; obj62.Steps = list91; reference69 = obj62; - ref QuestSequence reference74 = ref span31[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; @@ -115631,13 +137700,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list97; - num = 3; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span37 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span37[0]; + index = 3; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -115645,7 +137717,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -115658,55 +137732,71 @@ public static class AssemblyQuestLoader }; obj68.Steps = list99; reference75 = obj68; - ref QuestSequence reference76 = ref span37[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 8; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span38 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference77 = ref span38[0]; + index2 = 8; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(627.76666f, -26.098835f, -408.3923f), 398); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span39 = CollectionsMarshal.AsSpan(list101); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list101; skipConditions6.StepIf = skipStepConditions6; questStep8.SkipConditions = skipConditions6; reference77 = questStep8; - ref QuestStep reference78 = ref span38[1]; + num2++; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj70 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.6058f, -17.959486f, -409.5136f), 398) { DisableNavmesh = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span40 = CollectionsMarshal.AsSpan(list102); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + span5 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list102; skipConditions7.StepIf = skipStepConditions7; obj70.SkipConditions = skipConditions7; reference78 = obj70; - ref QuestStep reference79 = ref span38[2]; + num2++; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.08307f, -23.861216f, -313.61807f), 398) { DisableNavmesh = true @@ -115716,32 +137806,46 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span41 = CollectionsMarshal.AsSpan(list103); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list103; skipConditions8.StepIf = skipStepConditions8; obj71.SkipConditions = skipConditions8; reference79 = obj71; - ref QuestStep reference80 = ref span38[3]; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1011932u, new Vector3(685.96924f, -24.382862f, -269.06238f), 398); - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span42 = CollectionsMarshal.AsSpan(list104); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + span5 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list104; reference80 = questStep9; - ref QuestStep reference81 = ref span38[4]; + num2++; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(698.47815f, -24.308271f, -262.69476f), 398) { Mount = true @@ -115751,69 +137855,97 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span43 = CollectionsMarshal.AsSpan(list105); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list105; skipConditions9.StepIf = skipStepConditions9; obj72.SkipConditions = skipConditions9; reference81 = obj72; - ref QuestStep reference82 = ref span38[5]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(725.30743f, -43.07919f, -208.64124f), 398) { DisableNavmesh = true }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span44 = CollectionsMarshal.AsSpan(list106); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + span5 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list106; skipConditions10.StepIf = skipStepConditions10; obj73.SkipConditions = skipConditions10; reference82 = obj73; - ref QuestStep reference83 = ref span38[6]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1011924u, new Vector3(849.0576f, -37.669926f, -39.56665f), 398); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span45 = CollectionsMarshal.AsSpan(list107); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list107; reference83 = questStep10; - ref QuestStep reference84 = ref span38[7]; + num2++; + ref QuestStep reference84 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1011923u, new Vector3(711.1161f, -36.390835f, 198.10791f), 398); - num3 = 6; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span46 = CollectionsMarshal.AsSpan(list108); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + span5 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list108; reference84 = questStep11; obj69.Steps = list100; reference76 = obj69; - ref QuestSequence reference85 = ref span37[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -115821,7 +137953,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -115838,13 +137972,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -115852,7 +137989,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, SkipConditions = new SkipConditions @@ -115865,24 +138004,29 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-334.08136f, 40.34739f, 18.237068f), 398); - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-324.42703f, -22.971008f, 51.45664f), 398) + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-334.08136f, 40.34739f, 18.237068f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-324.42703f, -22.971008f, 51.45664f), 398) { DisableNavmesh = true }; - span2[2] = new QuestStep(EInteractionType.Interact, 1013406u, new Vector3(-411.52057f, -35.095f, 231.46399f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013406u, new Vector3(-411.52057f, -35.095f, 231.46399f), 398); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -115890,7 +138034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -115898,23 +138044,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 4494u; + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = 4494u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1013407u, new Vector3(-408.40778f, -34.191658f, 238.48315f), 398); + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013407u, new Vector3(-408.40778f, -34.191658f, 238.48315f), 398); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -115922,31 +138074,39 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 4495u; + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span4 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span4[num3] = 4495u; obj7.KillEnemyDataIds = list9; reference7 = obj7; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1013408u, new Vector3(-409.87262f, -34.650936f, 234.88208f), 398); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013408u, new Vector3(-409.87262f, -34.650936f, 234.88208f), 398); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[6]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 6 @@ -115954,7 +138114,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list11)[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -115962,20 +138124,25 @@ public static class AssemblyQuestLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 4496u; + span4 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span4[index3] = 4496u; obj10.KillEnemyDataIds = list12; reference10 = obj10; obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference11 = ref span[7]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; @@ -115985,18 +138152,19 @@ public static class AssemblyQuestLoader AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1819); QuestRoot questRoot2 = new QuestRoot(); - num = 2; + num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span3 = CollectionsMarshal.AsSpan(list14); - span3[0] = "JerryWester"; - span3[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span4 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span4[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -116004,32 +138172,33 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400); + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span5 = CollectionsMarshal.AsSpan(list17); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(550.8325f, 21.90062f, 530.2827f), 400); - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(574.6052f, -6.4543915f, 536.073f), 400) - { - DisableNavmesh = true - }; - ref QuestStep reference14 = ref span5[2]; - QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(574.6052f, -6.4543915f, 536.073f), 400) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; + QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(709.88654f, -38.038876f, 491.74997f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new ComplexCombatData + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + Span span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 4039u, MinimumKillCount = 3u @@ -116038,7 +138207,8 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference15 = ref span4[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -116046,7 +138216,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -116059,21 +138231,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; - num = 6; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span6 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span6[0]; + index = 6; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014424u, new Vector3(357.47314f, 2.7662196f, 638.3002f), 400) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014424u, new Vector3(357.47314f, 2.7662196f, 638.3002f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116087,7 +138264,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -116095,24 +138273,30 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1014425u, new Vector3(475.7915f, -4.4960318f, 722.13306f), 400) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014425u, new Vector3(475.7915f, -4.4960318f, 722.13306f), 400) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400); obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span6[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -116120,22 +138304,26 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) { Fly = true }; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference20 = ref span6[4]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span7 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference21 = ref span7[0]; + index2 = 2; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -116143,16 +138331,20 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = 4039u; + span4 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span4[index3] = 4039u; obj21.KillEnemyDataIds = list27; reference21 = obj21; - span7[1] = new QuestStep(EInteractionType.Interact, 1014426u, new Vector3(770.2295f, -9.491293f, 287.95288f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014426u, new Vector3(770.2295f, -9.491293f, 287.95288f), 400) { StopDistance = 7f }; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference22 = ref span6[5]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -116160,7 +138352,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400) { Fly = true, NextQuestId = new QuestId(1824) @@ -116174,24 +138368,30 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span8[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400); obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span8[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -116199,15 +138399,19 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(456.25598f, -27.669996f, 157.59406f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new ComplexCombatData + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 3999u, MinimumKillCount = 3u @@ -116216,17 +138420,20 @@ public static class AssemblyQuestLoader reference25 = obj25; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference26 = ref span8[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span9 = CollectionsMarshal.AsSpan(list34); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.82025f, -24.433022f, 150.46234f), 400); - span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1012288u, new Vector3(-47.04364f, -8.866012f, 165.94177f), 400); + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.82025f, -24.433022f, 150.46234f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012288u, new Vector3(-47.04364f, -8.866012f, 165.94177f), 400); obj26.Steps = list34; reference26 = obj26; questRoot4.QuestSequence = list30; @@ -116236,13 +138443,16 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "liza"; questRoot5.Author = list35; - num = 10; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span10[0]; + index = 10; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -116250,7 +138460,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014429u, new Vector3(-77.34796f, -8.655561f, 165.23987f), 400) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014429u, new Vector3(-77.34796f, -8.655561f, 165.23987f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116264,18 +138476,22 @@ public static class AssemblyQuestLoader }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span10[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400); + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400); obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference29 = ref span10[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -116283,21 +138499,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj29.Steps = list39; reference29 = obj29; - ref QuestSequence reference30 = ref span10[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list40)[0]; + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(318.27338f, -29.677633f, -148.89816f), 400) { Fly = true, @@ -116306,7 +138527,9 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -116315,7 +138538,8 @@ public static class AssemblyQuestLoader reference31 = obj31; obj30.Steps = list40; reference30 = obj30; - ref QuestSequence reference32 = ref span10[4]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -116323,30 +138547,37 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj32.Steps = list42; reference32 = obj32; - ref QuestSequence reference33 = ref span10[5]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Combat, null, new Vector3(293.52023f, -30.697027f, -167.88272f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData + index3 = 1; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + span5 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -116355,7 +138586,8 @@ public static class AssemblyQuestLoader reference34 = obj34; obj33.Steps = list43; reference33 = obj33; - ref QuestSequence reference35 = ref span10[6]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 6 @@ -116363,21 +138595,26 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span10[7]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list46)[0]; + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(226.58783f, -36.917496f, -100.45467f), 400) { Fly = true, @@ -116386,7 +138623,9 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -116395,7 +138634,8 @@ public static class AssemblyQuestLoader reference37 = obj37; obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference38 = ref span10[8]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 8 @@ -116403,21 +138643,26 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj38.Steps = list48; reference38 = obj38; - ref QuestSequence reference39 = ref span10[9]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400) { Fly = true, NextQuestId = new QuestId(1831) @@ -116431,13 +138676,16 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list50; - num = 3; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span11 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference40 = ref span11[0]; + index = 3; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -116445,37 +138693,48 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); obj40.Steps = list52; reference40 = obj40; - ref QuestSequence reference41 = ref span11[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span12 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference42 = ref span12[0]; + index2 = 9; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-526.363f, 50.165375f, 407.25165f), 400); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span13 = CollectionsMarshal.AsSpan(list54); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span6 = CollectionsMarshal.AsSpan(list54); + 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); skipStepConditions.CompletionQuestVariablesFlags = list54; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference42 = questStep; - ref QuestStep reference43 = ref span12[1]; + num2++; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj42 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-533.25507f, 53.07081f, 414.5445f), 400) { DisableNavmesh = true @@ -116485,82 +138744,117 @@ public static class AssemblyQuestLoader num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span14 = CollectionsMarshal.AsSpan(list55); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list55; skipConditions2.StepIf = skipStepConditions2; obj42.SkipConditions = skipConditions2; reference43 = obj42; - ref QuestStep reference44 = ref span12[2]; + num2++; + ref QuestStep reference44 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5652f, 57.261906f, 444.5247f), 400); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span15 = CollectionsMarshal.AsSpan(list56); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span6 = CollectionsMarshal.AsSpan(list56); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list56; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference44 = questStep2; - ref QuestStep reference45 = ref span12[3]; + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1013424u, new Vector3(-498.9853f, 57.261353f, 437.94922f), 400); num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span16 = CollectionsMarshal.AsSpan(list57); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list57; reference45 = questStep3; - ref QuestStep reference46 = ref span12[4]; + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1013425u, new Vector3(-451.80438f, 44.72754f, 416.89172f), 400); - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span17 = CollectionsMarshal.AsSpan(list58); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + span6 = CollectionsMarshal.AsSpan(list58); + 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); questStep4.CompletionQuestVariablesFlags = list58; reference46 = questStep4; - ref QuestStep reference47 = ref span12[5]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-456.7709f, 43.310535f, 387.23517f), 400); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span18 = CollectionsMarshal.AsSpan(list59); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list59; skipConditions4.StepIf = skipStepConditions4; questStep5.SkipConditions = skipConditions4; reference47 = questStep5; - ref QuestStep reference48 = ref span12[6]; + num2++; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Jump, null, new Vector3(-443.18756f, 51.336708f, 390.36755f), 400) { StopDistance = 0.25f, @@ -116573,21 +138867,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span19 = CollectionsMarshal.AsSpan(list60); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + span6 = CollectionsMarshal.AsSpan(list60); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list60; skipConditions5.StepIf = skipStepConditions5; obj43.SkipConditions = skipConditions5; reference48 = obj43; - ref QuestStep reference49 = ref span12[7]; + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.36014f, 53.653843f, 380.91522f), 400) { StopDistance = 0.5f, @@ -116598,37 +138899,51 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span20 = CollectionsMarshal.AsSpan(list61); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list61; skipConditions6.StepIf = skipStepConditions6; obj44.SkipConditions = skipConditions6; reference49 = obj44; - ref QuestStep reference50 = ref span12[8]; + num2++; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1013421u, new Vector3(-455.16138f, 53.48893f, 379.3545f), 400) { DisableNavmesh = true }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span21 = CollectionsMarshal.AsSpan(list62); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + span6 = CollectionsMarshal.AsSpan(list62); + 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); obj45.CompletionQuestVariablesFlags = list62; reference50 = obj45; obj41.Steps = list53; reference41 = obj41; - ref QuestSequence reference51 = ref span11[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -116636,13 +138951,15 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-465.66104f, 43.041187f, 380.90747f), 400) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-465.66104f, 43.041187f, 380.90747f), 400) { DisableNavmesh = true, Mount = true }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); obj46.Steps = list63; reference51 = obj46; questRoot6.QuestSequence = list51; @@ -116652,27 +138969,33 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot7.Author = list64; - num = 8; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span23 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference52 = ref span23[0]; + index = 8; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj47.Steps = list66; reference52 = obj47; - ref QuestSequence reference53 = ref span23[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -116680,24 +139003,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1014436u, new Vector3(-626.42865f, 49.999996f, 334.0658f), 400) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014436u, new Vector3(-626.42865f, 49.999996f, 334.0658f), 400) { StopDistance = 7f }; obj48.Steps = list67; reference53 = obj48; - ref QuestSequence reference54 = ref span23[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400); obj49.Steps = list68; reference54 = obj49; - ref QuestSequence reference55 = ref span23[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -116705,19 +139034,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400); obj50.Steps = list69; reference55 = obj50; - ref QuestSequence reference56 = ref span23[4]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span24 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference57 = ref span24[0]; + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -116725,13 +139058,17 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 4076u; + span4 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span4[index3] = 4076u; obj52.KillEnemyDataIds = list71; reference57 = obj52; - span24[1] = new QuestStep(EInteractionType.Interact, 1014433u, new Vector3(-473.4112f, 42.91877f, 360.0061f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014433u, new Vector3(-473.4112f, 42.91877f, 360.0061f), 400); obj51.Steps = list70; reference56 = obj51; - ref QuestSequence reference58 = ref span23[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 5 @@ -116739,36 +139076,44 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) { Fly = true }; obj53.Steps = list72; reference58 = obj53; - ref QuestSequence reference59 = ref span23[6]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span25 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference60 = ref span25[0]; + index2 = 2; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = 4076u; + index3 = 1; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + span4 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span4[num3] = 4076u; obj55.KillEnemyDataIds = list74; reference60 = obj55; - span25[1] = new QuestStep(EInteractionType.Interact, 1014434u, new Vector3(-177.11151f, -20.990452f, 266.5293f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014434u, new Vector3(-177.11151f, -20.990452f, 266.5293f), 400); obj54.Steps = list73; reference59 = obj54; - ref QuestSequence reference61 = ref span23[7]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -116776,7 +139121,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014435u, new Vector3(-109.056274f, -8.844471f, 209.3385f), 400) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014435u, new Vector3(-109.056274f, -8.844471f, 209.3385f), 400) { Fly = true, NextQuestId = new QuestId(1832) @@ -116790,21 +139137,26 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "liza"; questRoot8.Author = list76; - num = 6; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span26 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference62 = ref span26[0]; + index = 6; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116818,7 +139170,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list78; reference62 = obj57; - ref QuestSequence reference63 = ref span26[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -116826,21 +139179,27 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1014445u, new Vector3(455.2528f, -24.093994f, 109.88013f), 400); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014445u, new Vector3(455.2528f, -24.093994f, 109.88013f), 400); obj58.Steps = list79; reference63 = obj58; - ref QuestSequence reference64 = ref span26[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400); obj59.Steps = list80; reference64 = obj59; - ref QuestSequence reference65 = ref span26[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -116848,30 +139207,36 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1012084u, new Vector3(225.54358f, 6.9602013f, 709.34607f), 400) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012084u, new Vector3(225.54358f, 6.9602013f, 709.34607f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj60.Steps = list81; reference65 = obj60; - ref QuestSequence reference66 = ref span26[4]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span27 = CollectionsMarshal.AsSpan(list82); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.38687f, -27.748926f, 113.191864f), 400) + index2 = 2; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.38687f, -27.748926f, 113.191864f), 400) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 1014446u, new Vector3(389.7306f, -27.420471f, 114.06116f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014446u, new Vector3(389.7306f, -27.420471f, 114.06116f), 400); obj61.Steps = list82; reference66 = obj61; - ref QuestSequence reference67 = ref span26[5]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -116879,7 +139244,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116891,29 +139258,33 @@ public static class AssemblyQuestLoader AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1835); QuestRoot questRoot9 = new QuestRoot(); - num = 2; + num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span28 = CollectionsMarshal.AsSpan(list84); - span28[0] = "JerryWester"; - span28[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span29 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference68 = ref span29[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); obj63.Steps = list86; reference68 = obj63; - ref QuestSequence reference69 = ref span29[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -116921,15 +139292,19 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list87)[0]; - QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(438.3409f, -19.777754f, -282.78647f), 400) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; + QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(564.7821f, -12.19169f, -322.49945f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new ComplexCombatData + span5 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 4041u, MinimumKillCount = 4u @@ -116938,21 +139313,18 @@ public static class AssemblyQuestLoader reference70 = obj65; obj64.Steps = list87; reference69 = obj64; - ref QuestSequence reference71 = ref span29[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span30 = CollectionsMarshal.AsSpan(list89); - span30[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400) - { - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny, - CombatDelaySecondsAtStart = 1f - }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); obj66.Steps = list89; reference71 = obj66; questRoot9.QuestSequence = list85; @@ -116962,13 +139334,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "Thaksin"; questRoot10.Author = list90; - num = 3; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span31 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference72 = ref span31[0]; + index = 3; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -116976,36 +139351,47 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400); obj67.Steps = list92; reference72 = obj67; - ref QuestSequence reference73 = ref span31[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span32 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference74 = ref span32[0]; + index2 = 5; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 2005720u, new Vector3(565.9419f, -9.445435f, -14.328308f), 400) { Fly = true }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span33 = CollectionsMarshal.AsSpan(list94); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span6 = CollectionsMarshal.AsSpan(list94); + 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); obj69.CompletionQuestVariablesFlags = list94; reference74 = obj69; - ref QuestStep reference75 = ref span32[1]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Interact, 2005718u, new Vector3(664.39294f, -0.4730835f, -3.2807007f), 400) { Fly = true @@ -117013,66 +139399,94 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span34 = CollectionsMarshal.AsSpan(list95); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj70.CompletionQuestVariablesFlags = list95; reference75 = obj70; - ref QuestStep reference76 = ref span32[2]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 2005721u, new Vector3(653.83374f, -0.7172241f, -70.02368f), 400) { Fly = true }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span35 = CollectionsMarshal.AsSpan(list96); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span6 = CollectionsMarshal.AsSpan(list96); + 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)8, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list96; reference76 = obj71; - ref QuestStep reference77 = ref span32[3]; + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2005717u, new Vector3(639.00195f, 46.463623f, -113.05414f), 400); num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span36 = CollectionsMarshal.AsSpan(list97); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list97; reference77 = questStep6; - ref QuestStep reference78 = ref span32[4]; + num2++; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2005719u, new Vector3(527.0923f, -4.287842f, -84.916504f), 400) { Fly = true }; - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span37 = CollectionsMarshal.AsSpan(list98); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + span6 = CollectionsMarshal.AsSpan(list98); + 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); obj72.CompletionQuestVariablesFlags = list98; reference78 = obj72; obj68.Steps = list93; reference73 = obj68; - ref QuestSequence reference79 = ref span31[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -117080,7 +139494,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400) { Fly = true }; @@ -117097,13 +139513,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -117111,18 +139530,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-6.1052914f, -20.632738f, 181.941f), 400) { StopDistance = 0.25f, @@ -117132,12 +139556,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 3999u; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 3999u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -117145,18 +139572,23 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1014290u, new Vector3(-6.302063f, -20.660929f, 181.75012f), 400); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014290u, new Vector3(-6.302063f, -20.660929f, 181.75012f), 400); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) { Fly = true, NextQuestId = new QuestId(1864) @@ -117170,13 +139602,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -117184,27 +139619,33 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) { Fly = true }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -117212,33 +139653,41 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(-271.42133f, 41.099045f, 241.92078f), 400) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 4076u; + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + span4 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span4[num3] = 4076u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1014297u, new Vector3(-271.44275f, 41.099045f, 242.20642f), 400); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014297u, new Vector3(-271.44275f, 41.099045f, 242.20642f), 400); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -117246,21 +139695,26 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) { Fly = true }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span2[5]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -117275,13 +139729,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span3 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span3[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -117289,27 +139746,33 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span3[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1014303u, new Vector3(-811.8868f, 83.29895f, 219.3789f), 400) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014303u, new Vector3(-811.8868f, 83.29895f, 219.3789f), 400) { Fly = true }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span3[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -117317,7 +139780,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014304u, new Vector3(-471.7937f, 39.90609f, 156.2981f), 400) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014304u, new Vector3(-471.7937f, 39.90609f, 156.2981f), 400) { Fly = true, NextQuestId = new QuestId(1866) @@ -117331,29 +139796,35 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot4.Author = list22; - num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span4 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span4[0]; + index = 3; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span5 = CollectionsMarshal.AsSpan(list24); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) { Fly = true }; - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400); obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span4[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -117361,8 +139832,9 @@ public static class AssemblyQuestLoader num2 = 3; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestStep reference18 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(-611.016f, 81f, 142.83911f), 400) { Fly = true, @@ -117371,21 +139843,30 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 4045u; + span4 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span4[index3] = 4045u; obj18.KillEnemyDataIds = list26; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span7 = CollectionsMarshal.AsSpan(list27); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span5 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list27; reference18 = obj18; - ref QuestStep reference19 = ref span6[1]; + index2++; + ref QuestStep reference19 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-627.9241f, 81f, 98.83264f), 400) { Fly = true, @@ -117394,21 +139875,30 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 4045u; + span4 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span4[index3] = 4045u; obj19.KillEnemyDataIds = list28; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span8 = CollectionsMarshal.AsSpan(list29); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list29; reference19 = obj19; - ref QuestStep reference20 = ref span6[2]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-579.05023f, 80.999985f, 101.69408f), 400) { Fly = true, @@ -117417,36 +139907,47 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = 4045u; + span4 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span4[index3] = 4045u; obj20.KillEnemyDataIds = list30; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span9 = CollectionsMarshal.AsSpan(list31); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list31; reference20 = obj20; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference21 = ref span4[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) + index2 = 2; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) { Fly = true }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400) { NextQuestId = new QuestId(1867) }; @@ -117459,13 +139960,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot5.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span11 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference22 = ref span11[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -117473,24 +139977,28 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span12 = CollectionsMarshal.AsSpan(list35); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400); obj22.Steps = list35; reference22 = obj22; - ref QuestSequence reference23 = ref span11[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference24 = ref span13[0]; + index2 = 3; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference24 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-723.45496f, 81f, 378.70322f), 400) { Fly = true, @@ -117499,21 +140007,30 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 4045u; + span4 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span4[index3] = 4045u; obj24.KillEnemyDataIds = list37; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list38; reference24 = obj24; - ref QuestStep reference25 = ref span13[1]; + num2++; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-722.5188f, 80.999985f, 427.1239f), 400) { Fly = true, @@ -117522,21 +140039,30 @@ public static class AssemblyQuestLoader num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = 4045u; + span4 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span4[index3] = 4045u; obj25.KillEnemyDataIds = list39; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span15 = CollectionsMarshal.AsSpan(list40); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list40; reference25 = obj25; - ref QuestStep reference26 = ref span13[2]; + num2++; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-765.2328f, 81f, 406.13608f), 400) { Fly = true, @@ -117545,23 +140071,32 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 4045u; + span4 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span4[index3] = 4045u; obj26.KillEnemyDataIds = list41; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span16 = CollectionsMarshal.AsSpan(list42); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span5 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list42; reference26 = obj26; obj23.Steps = list36; reference23 = obj23; - ref QuestSequence reference27 = ref span11[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -117569,12 +140104,14 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span17 = CollectionsMarshal.AsSpan(list43); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) { Fly = true }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400) { NextQuestId = new QuestId(1868) }; @@ -117587,27 +140124,33 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot6.Author = list44; - num = 4; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span18 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference28 = ref span18[0]; + index = 4; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true }; obj28.Steps = list46; reference28 = obj28; - ref QuestSequence reference29 = ref span18[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -117615,7 +140158,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list47)[0]; + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 1014310u, new Vector3(-713.80176f, 343f, 238.94104f), 400) { Fly = true, @@ -117624,26 +140169,32 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 4493u; + span4 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span4[index3] = 4493u; obj30.KillEnemyDataIds = list48; reference30 = obj30; obj29.Steps = list47; reference29 = obj29; - ref QuestSequence reference31 = ref span18[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1014311u, new Vector3(-711.17725f, 342.0005f, 236.3164f), 400) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014311u, new Vector3(-711.17725f, 342.0005f, 236.3164f), 400) { StopDistance = 5f }; obj31.Steps = list49; reference31 = obj31; - ref QuestSequence reference32 = ref span18[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -117651,7 +140202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -117666,21 +140219,26 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "pot0to"; questRoot7.Author = list51; - num = 3; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference33 = ref span19[0]; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -117692,17 +140250,20 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 419; + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span6 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span6[num3] = 419; skipAetheryteCondition.InTerritory = list54; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj34.SkipConditions = skipConditions; reference34 = obj34; obj33.Steps = list53; reference33 = obj33; - ref QuestSequence reference35 = ref span19[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -117710,8 +140271,9 @@ public static class AssemblyQuestLoader num2 = 8; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span20 = CollectionsMarshal.AsSpan(list55); - span20[0] = new QuestStep(EInteractionType.Interact, 1012263u, new Vector3(-129.4118f, 14.803129f, -127.91644f), 419) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012263u, new Vector3(-129.4118f, 14.803129f, -127.91644f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117719,32 +140281,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span20[1] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span20[2] = new QuestStep(EInteractionType.Interact, 1012262u, new Vector3(-10.330383f, 0f, 8.194031f), 427); - span20[3] = new QuestStep(EInteractionType.Interact, 1012264u, new Vector3(-6.790344f, 0.024999565f, 3.829956f), 427); - span20[4] = new QuestStep(EInteractionType.Interact, 2006245u, new Vector3(-7.675354f, 0.83917236f, -2.9145508f), 427); - span20[5] = new QuestStep(EInteractionType.Interact, 1012265u, new Vector3(-2.1820679f, 0.289917f, -5.508545f), 427); - span20[6] = new QuestStep(EInteractionType.Interact, 2006244u, new Vector3(11.093262f, 1.3884888f, -7.8584595f), 427); - span20[7] = new QuestStep(EInteractionType.Interact, 2006243u, new Vector3(7.2174683f, 1.4190674f, 1.083313f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012262u, new Vector3(-10.330383f, 0f, 8.194031f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012264u, new Vector3(-6.790344f, 0.024999565f, 3.829956f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006245u, new Vector3(-7.675354f, 0.83917236f, -2.9145508f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012265u, new Vector3(-2.1820679f, 0.289917f, -5.508545f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006244u, new Vector3(11.093262f, 1.3884888f, -7.8584595f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006243u, new Vector3(7.2174683f, 1.4190674f, 1.083313f), 427); obj35.Steps = list55; reference35 = obj35; - ref QuestSequence reference36 = ref span19[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span21 = CollectionsMarshal.AsSpan(list56); - span21[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - ref QuestStep reference37 = ref span21[1]; + num2++; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AethernetShortcut = new AethernetShortcut @@ -117756,7 +140328,9 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNZ601_01869_Q1_000_000"), @@ -117774,13 +140348,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "Thaksin"; questRoot8.Author = list58; - num = 6; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span22 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference38 = ref span22[0]; + index = 6; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -117788,63 +140365,88 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj38.Steps = list60; reference38 = obj38; - ref QuestSequence reference39 = ref span22[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span23 = CollectionsMarshal.AsSpan(list61); - ref QuestStep reference40 = ref span23[0]; + index2 = 3; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006246u, new Vector3(-218.40247f, -16.037292f, -34.683777f), 419); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + span5 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list62; reference40 = questStep; - ref QuestStep reference41 = ref span23[1]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2006247u, new Vector3(-229.23633f, -20.035156f, -83.05487f), 419); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list63; reference41 = questStep2; - ref QuestStep reference42 = ref span23[2]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006248u, new Vector3(-252.1554f, -20.035156f, -57.66388f), 419); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list64; reference42 = questStep3; obj39.Steps = list61; reference39 = obj39; - ref QuestSequence reference43 = ref span22[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -117852,18 +140454,23 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj40.Steps = list65; reference43 = obj40; - ref QuestSequence reference44 = ref span22[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1014721u, new Vector3(119.31018f, -12.634913f, -13.626343f), 419) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014721u, new Vector3(119.31018f, -12.634913f, -13.626343f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117873,7 +140480,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list66; reference44 = obj41; - ref QuestSequence reference45 = ref span22[4]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -117881,18 +140489,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 2006330u, new Vector3(118.791504f, -11.6427f, -13.351685f), 419); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006330u, new Vector3(118.791504f, -11.6427f, -13.351685f), 419); obj42.Steps = list67; reference45 = obj42; - ref QuestSequence reference46 = ref span22[5]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117909,13 +140522,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot9.Author = list69; - num = 6; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span27 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference47 = ref span27[0]; + index = 6; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -117923,24 +140539,30 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj44.Steps = list71; reference47 = obj44; - ref QuestSequence reference48 = ref span27[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 2005821u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005821u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400) { StopDistance = 4f }; obj45.Steps = list72; reference48 = obj45; - ref QuestSequence reference49 = ref span27[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -117948,22 +140570,27 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj46.Steps = list73; reference49 = obj46; - ref QuestSequence reference50 = ref span27[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -117974,7 +140601,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list74; reference50 = obj47; - ref QuestSequence reference51 = ref span27[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -117982,26 +140610,31 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span28 = CollectionsMarshal.AsSpan(list75); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - span28[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f }; obj48.Steps = list75; reference51 = obj48; - ref QuestSequence reference52 = ref span27[5]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014314u, new Vector3(12.100342f, 81.8406f, -318.0133f), 400) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014314u, new Vector3(12.100342f, 81.8406f, -318.0133f), 400) { Fly = true }; @@ -118014,13 +140647,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot10.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span29 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference53 = ref span29[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -118028,7 +140664,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list79)[0]; + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep obj51 = new QuestStep(EInteractionType.AcceptQuest, 1013557u, new Vector3(9.6588745f, 15.96505f, -7.4921875f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -118046,22 +140684,27 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = 419; + span6 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span6[index3] = 419; obj52.InTerritory = list80; skipConditions2.AetheryteShortcutIf = obj52; obj51.SkipConditions = skipConditions2; reference54 = obj51; obj50.Steps = list79; reference53 = obj50; - ref QuestSequence reference55 = ref span29[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut { @@ -118071,7 +140714,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list81; reference55 = obj53; - ref QuestSequence reference56 = ref span29[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -118079,21 +140723,26 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1013559u, new Vector3(129.22852f, 24.397108f, -1.9379272f), 418) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013559u, new Vector3(129.22852f, 24.397108f, -1.9379272f), 418) { StopDistance = 5f }; obj54.Steps = list82; reference56 = obj54; - ref QuestSequence reference57 = ref span29[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -118108,13 +140757,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "Thaksin"; questRoot11.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span30 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference58 = ref span30[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -118122,24 +140774,30 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014718u, new Vector3(-29.526245f, 11.965078f, 48.355713f), 419); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014718u, new Vector3(-29.526245f, 11.965078f, 48.355713f), 419); obj56.Steps = list86; reference58 = obj56; - ref QuestSequence reference59 = ref span30[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj57.Steps = list87; reference59 = obj57; - ref QuestSequence reference60 = ref span30[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -118147,8 +140805,9 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span31 = CollectionsMarshal.AsSpan(list88); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) { Fly = true, SkipConditions = new SkipConditions @@ -118159,7 +140818,8 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1014719u, new Vector3(-293.6294f, 125.4389f, -19.058533f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014719u, new Vector3(-293.6294f, 125.4389f, -19.058533f), 397) { Fly = true }; @@ -118172,24 +140832,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list89; - num = 3; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span32 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference61 = ref span32[0]; + index = 3; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419); obj59.Steps = list91; reference61 = obj59; - ref QuestSequence reference62 = ref span32[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -118197,21 +140863,26 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj60.Steps = list92; reference62 = obj60; - ref QuestSequence reference63 = ref span32[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj61.Steps = list93; reference63 = obj61; questRoot12.QuestSequence = list90; @@ -118221,13 +140892,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "liza"; questRoot13.Author = list94; - num = 3; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span33 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference64 = ref span33[0]; + index = 3; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -118235,93 +140909,124 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj62.Steps = list96; reference64 = obj62; - ref QuestSequence reference65 = ref span33[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span34 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference66 = ref span34[0]; + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-40.84487f, 62.87995f, -293.59937f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 4044u; + index3 = 1; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + span4 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span4[num3] = 4044u; obj64.KillEnemyDataIds = list98; num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span35 = CollectionsMarshal.AsSpan(list99); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list99; reference66 = obj64; - ref QuestStep reference67 = ref span34[1]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-49.8887f, 76.75615f, -348.67075f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 4044u; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + span4 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span4[num3] = 4044u; obj65.KillEnemyDataIds = list100; num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span36 = CollectionsMarshal.AsSpan(list101); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list101; reference67 = obj65; - ref QuestStep reference68 = ref span34[2]; + num2++; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-10.931383f, 76.75615f, -249.3747f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 4044u; + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + span4 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span4[num3] = 4044u; obj66.KillEnemyDataIds = list102; num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span37 = CollectionsMarshal.AsSpan(list103); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list103; reference68 = obj66; obj63.Steps = list97; reference65 = obj63; - ref QuestSequence reference69 = ref span33[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -118329,7 +141034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1881) @@ -118343,24 +141050,30 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "liza"; questRoot14.Author = list105; - num = 4; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span38 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference70 = ref span38[0]; + index = 4; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj68.Steps = list107; reference70 = obj68; - ref QuestSequence reference71 = ref span38[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -118368,7 +141081,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true, @@ -118376,29 +141091,35 @@ public static class AssemblyQuestLoader }; obj69.Steps = list108; reference71 = obj69; - ref QuestSequence reference72 = ref span38[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list109)[0]; + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-734.0618f, 258.66254f, -178.1613f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 4044u; + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span4 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span4[num3] = 4044u; obj71.KillEnemyDataIds = list110; reference73 = obj71; obj70.Steps = list109; reference72 = obj70; - ref QuestSequence reference74 = ref span38[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -118406,7 +141127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true, @@ -118421,24 +141144,30 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list112); + index = 0; + span[index] = "liza"; questRoot15.Author = list112; - num = 3; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span39 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference75 = ref span39[0]; + index = 3; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + span2 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj73.Steps = list114; reference75 = obj73; - ref QuestSequence reference76 = ref span39[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -118446,7 +141175,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list115)[0]; + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference77 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.11111f, -64.89958f, -321.4496f), 400) { StopDistance = 0.5f, @@ -118455,20 +141186,25 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 4505u; + span4 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span4[index3] = 4505u; obj75.KillEnemyDataIds = list116; reference77 = obj75; obj74.Steps = list115; reference76 = obj74; - ref QuestSequence reference78 = ref span39[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1871) @@ -118482,13 +141218,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot16.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span40 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference79 = ref span40[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -118496,25 +141235,31 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj77.Steps = list120; reference79 = obj77; - ref QuestSequence reference80 = ref span40[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj78.Steps = list121; reference80 = obj78; - ref QuestSequence reference81 = ref span40[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -118522,16 +141267,20 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list122)[0]; + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, null, new Vector3(315.91586f, 234.0008f, -617.9445f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - ref ComplexCombatData reference83 = ref CollectionsMarshal.AsSpan(list123)[0]; + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span8 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + ref ComplexCombatData reference83 = ref span8[num3]; ComplexCombatData obj81 = new ComplexCombatData { DataId = 4469u, @@ -118540,28 +141289,37 @@ public static class AssemblyQuestLoader int num4 = 6; List list124 = new List(num4); CollectionsMarshal.SetCount(list124, num4); - Span span41 = CollectionsMarshal.AsSpan(list124); - span41[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = null; + span5 = CollectionsMarshal.AsSpan(list124); + int num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj81.CompletionQuestVariablesFlags = list124; reference83 = obj81; obj80.ComplexCombatData = list123; reference82 = obj80; obj79.Steps = list122; reference81 = obj79; - ref QuestSequence reference84 = ref span40[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true, @@ -118576,13 +141334,16 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "liza"; questRoot17.Author = list126; - num = 4; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span42 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference85 = ref span42[0]; + index = 4; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -118590,19 +141351,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400); obj83.Steps = list128; reference85 = obj83; - ref QuestSequence reference86 = ref span42[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span43 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference87 = ref span43[0]; + index2 = 3; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref QuestStep reference87 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.85898f, 212.64731f, -734.95905f), 400) { Fly = true @@ -118612,32 +141377,46 @@ public static class AssemblyQuestLoader num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span44 = CollectionsMarshal.AsSpan(list130); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list130; skipConditions3.StepIf = skipStepConditions; obj85.SkipConditions = skipConditions3; reference87 = obj85; - ref QuestStep reference88 = ref span43[1]; + num2++; + ref QuestStep reference88 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005805u, new Vector3(161.39453f, 212.6344f, -733.7301f), 400); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span45 = CollectionsMarshal.AsSpan(list131); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span5 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list131; reference88 = questStep4; - ref QuestStep reference89 = ref span43[2]; + num2++; + ref QuestStep reference89 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2005806u, new Vector3(110.52112f, 212.6344f, -785.15295f), 400) { Fly = true @@ -118645,18 +141424,25 @@ public static class AssemblyQuestLoader num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span46 = CollectionsMarshal.AsSpan(list132); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list132; reference89 = obj86; obj84.Steps = list129; reference86 = obj84; - ref QuestSequence reference90 = ref span42[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -118664,22 +141450,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj87.Steps = list133; reference90 = obj87; - ref QuestSequence reference91 = ref span42[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1879) @@ -118693,13 +141484,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "liza"; questRoot18.Author = list135; - num = 5; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span47 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference92 = ref span47[0]; + index = 5; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -118707,25 +141501,31 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400); obj89.Steps = list137; reference92 = obj89; - ref QuestSequence reference93 = ref span47[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true }; obj90.Steps = list138; reference93 = obj90; - ref QuestSequence reference94 = ref span47[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -118733,16 +141533,20 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list139)[0]; + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1701f, 258.0283f, -651.9808f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = new ComplexCombatData + index3 = 1; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + span8 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 4044u, MinimumKillCount = 3u @@ -118751,35 +141555,46 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span48 = CollectionsMarshal.AsSpan(list141); - span48[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = null; + span5 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj92.CompletionQuestVariablesFlags = list141; reference95 = obj92; obj91.Steps = list139; reference94 = obj91; - ref QuestSequence reference96 = ref span47[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list142)[0]; + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1701f, 258.0283f, -651.9808f), 400) { StopDistance = 100f, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new ComplexCombatData + index3 = 1; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + span8 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 4044u, MinimumKillCount = 1u @@ -118788,7 +141603,8 @@ public static class AssemblyQuestLoader reference97 = obj94; obj93.Steps = list142; reference96 = obj93; - ref QuestSequence reference98 = ref span47[4]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -118796,7 +141612,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true, @@ -118811,24 +141629,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; questRoot19.Author = list145; - num = 9; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span49 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference99 = ref span49[0]; + index = 9; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400); obj96.Steps = list147; reference99 = obj96; - ref QuestSequence reference100 = ref span49[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -118836,8 +141660,9 @@ public static class AssemblyQuestLoader num2 = 3; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span50 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference101 = ref span50[0]; + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + ref QuestStep reference101 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 2005812u, new Vector3(-757.4121f, 257.49585f, -702.57117f), 400) { Fly = true @@ -118845,33 +141670,47 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span51 = CollectionsMarshal.AsSpan(list149); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list149; reference101 = obj98; - ref QuestStep reference102 = ref span50[1]; + index2++; + ref QuestStep reference102 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2005811u, new Vector3(-815.4879f, 258.0758f, -674.9218f), 400) { Fly = true }; - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span52 = CollectionsMarshal.AsSpan(list150); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span5 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list150; reference102 = obj99; - ref QuestStep reference103 = ref span50[2]; + index2++; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 2005813u, new Vector3(-788.0522f, 257.67908f, -644.1901f), 400) { Fly = true @@ -118879,33 +141718,43 @@ public static class AssemblyQuestLoader num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span53 = CollectionsMarshal.AsSpan(list151); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list151; reference103 = obj100; obj97.Steps = list148; reference100 = obj97; - ref QuestSequence reference104 = ref span49[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true }; obj101.Steps = list152; reference104 = obj101; - ref QuestSequence reference105 = ref span49[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -118913,40 +141762,51 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true }; obj102.Steps = list153; reference105 = obj102; - ref QuestSequence reference106 = ref span49[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span54 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference107 = ref span54[0]; + index2 = 3; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference107 = ref span3[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 2005814u, new Vector3(-755.9472f, 258.80823f, -207.72113f), 400) { Fly = true }; - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span55 = CollectionsMarshal.AsSpan(list155); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span5 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list155; reference107 = obj104; - ref QuestStep reference108 = ref span54[1]; + num2++; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 2005816u, new Vector3(-698.024f, 258.28943f, -221.66785f), 400) { Fly = true @@ -118954,35 +141814,49 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span56 = CollectionsMarshal.AsSpan(list156); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list156; reference108 = obj105; - ref QuestStep reference109 = ref span54[2]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2005815u, new Vector3(-701.83875f, 258.53357f, -165.23999f), 400) { Fly = true }; - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span57 = CollectionsMarshal.AsSpan(list157); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span5 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list157; reference109 = obj106; obj103.Steps = list154; reference106 = obj103; - ref QuestSequence reference110 = ref span49[5]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -118990,28 +141864,34 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true }; obj107.Steps = list158; reference110 = obj107; - ref QuestSequence reference111 = ref span49[6]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true }; obj108.Steps = list159; reference111 = obj108; - ref QuestSequence reference112 = ref span49[7]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 7 @@ -119019,18 +141899,23 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 2005817u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005817u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400); obj109.Steps = list160; reference112 = obj109; - ref QuestSequence reference113 = ref span49[8]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { NextQuestId = new QuestId(1880) }; @@ -119043,13 +141928,16 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "Thaksin"; questRoot20.Author = list162; - num = 6; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span58 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference114 = ref span58[0]; + index = 6; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -119057,21 +141945,27 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj111.Steps = list164; reference114 = obj111; - ref QuestSequence reference115 = ref span58[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); obj112.Steps = list165; reference115 = obj112; - ref QuestSequence reference116 = ref span58[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -119079,28 +141973,33 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span59 = CollectionsMarshal.AsSpan(list166); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.8484f, 221.68138f, 548.0529f), 397) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.8484f, 221.68138f, 548.0529f), 397) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397) { Land = true }; obj113.Steps = list166; reference116 = obj113; - ref QuestSequence reference117 = ref span58[3]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span60 = CollectionsMarshal.AsSpan(list167); - span60[0] = new QuestStep(EInteractionType.Interact, 2006017u, new Vector3(-253.34558f, 221.36255f, 528.92346f), 397); - ref QuestStep reference118 = ref span60[1]; + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006017u, new Vector3(-253.34558f, 221.36255f, 528.92346f), 397); + num2++; + ref QuestStep reference118 = ref span3[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, 4076u, new Vector3(-257.5558f, 221.35532f, 520.9053f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -119108,12 +142007,15 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = 4076u; + span4 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span4[index3] = 4076u; obj115.KillEnemyDataIds = list168; reference118 = obj115; obj114.Steps = list167; reference117 = obj114; - ref QuestSequence reference119 = ref span58[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 @@ -119121,18 +142023,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397); obj116.Steps = list169; reference119 = obj116; - ref QuestSequence reference120 = ref span58[5]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1890) @@ -119146,13 +142053,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "Thaksin"; questRoot21.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span61 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference121 = ref span61[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -119160,27 +142070,34 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj118.Steps = list173; reference121 = obj118; - ref QuestSequence reference122 = ref span61[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list174)[0]; + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + ref QuestStep reference123 = ref span3[num2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, null, new Vector3(-297.49585f, 219.87524f, 281.65045f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = new ComplexCombatData + index3 = 1; + List list175 = new List(index3); + CollectionsMarshal.SetCount(list175, index3); + span8 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 3992u, MinimumKillCount = 5u @@ -119189,7 +142106,8 @@ public static class AssemblyQuestLoader reference123 = obj120; obj119.Steps = list174; reference122 = obj119; - ref QuestSequence reference124 = ref span61[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -119197,23 +142115,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1014150u, new Vector3(507.13354f, 217.95148f, 791.37854f), 397) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014150u, new Vector3(507.13354f, 217.95148f, 791.37854f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj121.Steps = list176; reference124 = obj121; - ref QuestSequence reference125 = ref span61[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span62 = CollectionsMarshal.AsSpan(list177); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) { Fly = true, SkipConditions = new SkipConditions @@ -119224,7 +142146,8 @@ public static class AssemblyQuestLoader } } }; - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1891) @@ -119238,13 +142161,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "Thaksin"; questRoot22.Author = list178; - num = 5; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span63 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference126 = ref span63[0]; + index = 5; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -119252,23 +142178,28 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj123.Steps = list180; reference126 = obj123; - ref QuestSequence reference127 = ref span63[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span64 = CollectionsMarshal.AsSpan(list181); - span64[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397) { Fly = true }; - ref QuestStep reference128 = ref span64[1]; + num2++; + ref QuestStep reference128 = ref span3[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 732u, new Vector3(-151.29321f, 218.95082f, 669.4895f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -119276,12 +142207,15 @@ public static class AssemblyQuestLoader num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = 732u; + span4 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span4[index3] = 732u; obj125.KillEnemyDataIds = list182; reference128 = obj125; obj124.Steps = list181; reference127 = obj124; - ref QuestSequence reference129 = ref span63[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -119289,21 +142223,27 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); obj126.Steps = list183; reference129 = obj126; - ref QuestSequence reference130 = ref span63[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); obj127.Steps = list184; reference130 = obj127; - ref QuestSequence reference131 = ref span63[4]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -119311,7 +142251,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1892) @@ -119325,24 +142267,30 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "Thaksin"; questRoot23.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span65 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference132 = ref span65[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj129.Steps = list188; reference132 = obj129; - ref QuestSequence reference133 = ref span65[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 @@ -119350,36 +142298,44 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span66 = CollectionsMarshal.AsSpan(list189); - span66[0] = new QuestStep(EInteractionType.Interact, 2006019u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397) + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006019u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397) { Fly = true }; - ref QuestStep reference134 = ref span66[1]; + index2++; + ref QuestStep reference134 = ref span3[index2]; QuestStep obj131 = new QuestStep(EInteractionType.Combat, 4782u, new Vector3(-158.97404f, 219.45131f, 672.79553f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 4782u; + index3 = 1; + List list190 = new List(index3); + CollectionsMarshal.SetCount(list190, index3); + span4 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span4[num3] = 4782u; obj131.KillEnemyDataIds = list190; reference134 = obj131; obj130.Steps = list189; reference133 = obj130; - ref QuestSequence reference135 = ref span65[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 2006181u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006181u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397); obj132.Steps = list191; reference135 = obj132; - ref QuestSequence reference136 = ref span65[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -119387,7 +142343,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1893) @@ -119401,24 +142359,30 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "Thaksin"; questRoot24.Author = list193; - num = 4; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span67 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference137 = ref span67[0]; + index = 4; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj134.Steps = list195; reference137 = obj134; - ref QuestSequence reference138 = ref span67[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 @@ -119426,66 +142390,91 @@ public static class AssemblyQuestLoader num2 = 3; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span68 = CollectionsMarshal.AsSpan(list196); - ref QuestStep reference139 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + ref QuestStep reference139 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span69 = CollectionsMarshal.AsSpan(list197); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list197; reference139 = questStep5; - ref QuestStep reference140 = ref span68[1]; + index2++; + ref QuestStep reference140 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span70 = CollectionsMarshal.AsSpan(list198); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span5 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list198; reference140 = questStep6; - ref QuestStep reference141 = ref span68[2]; + index2++; + ref QuestStep reference141 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span71 = CollectionsMarshal.AsSpan(list199); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list199; reference141 = questStep7; obj135.Steps = list196; reference138 = obj135; - ref QuestSequence reference142 = ref span67[2]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1014152u, new Vector3(496.1776f, 133.93082f, -862.2416f), 397) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014152u, new Vector3(496.1776f, 133.93082f, -862.2416f), 397) { Fly = true }; obj136.Steps = list200; reference142 = obj136; - ref QuestSequence reference143 = ref span67[3]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -119493,7 +142482,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397) { Fly = true, NextQuestId = new QuestId(1898) @@ -119507,24 +142498,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "Thaksin"; questRoot25.Author = list202; - num = 13; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span72 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference144 = ref span72[0]; + index = 13; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj138.Steps = list204; reference144 = obj138; - ref QuestSequence reference145 = ref span72[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -119532,21 +142529,27 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397); obj139.Steps = list205; reference145 = obj139; - ref QuestSequence reference146 = ref span72[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj140.Steps = list206; reference146 = obj140; - ref QuestSequence reference147 = ref span72[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -119554,24 +142557,30 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1014154u, new Vector3(-519.1577f, 119.39417f, -161.24213f), 397) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014154u, new Vector3(-519.1577f, 119.39417f, -161.24213f), 397) { Fly = true }; obj141.Steps = list207; reference147 = obj141; - ref QuestSequence reference148 = ref span72[4]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1014155u, new Vector3(-527.245f, 118.94699f, -163.13422f), 397); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014155u, new Vector3(-527.245f, 118.94699f, -163.13422f), 397); obj142.Steps = list208; reference148 = obj142; - ref QuestSequence reference149 = ref span72[5]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 5 @@ -119579,24 +142588,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 2006026u, new Vector3(-525.7191f, 119.06604f, -165.72827f), 397); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006026u, new Vector3(-525.7191f, 119.06604f, -165.72827f), 397); obj143.Steps = list209; reference149 = obj143; - ref QuestSequence reference150 = ref span72[6]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true }; obj144.Steps = list210; reference150 = obj144; - ref QuestSequence reference151 = ref span72[7]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 7 @@ -119604,41 +142619,49 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span73 = CollectionsMarshal.AsSpan(list211); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) { Fly = true }; - span73[1] = new QuestStep(EInteractionType.UseItem, 2006027u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2006027u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) { ItemId = 2001751u }; obj145.Steps = list211; reference151 = obj145; - ref QuestSequence reference152 = ref span72[8]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span74 = CollectionsMarshal.AsSpan(list212); - span74[0] = new QuestStep(EInteractionType.Interact, 2006028u, new Vector3(-92.5155f, 93.52246f, -623.621f), 397); - ref QuestStep reference153 = ref span74[1]; + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006028u, new Vector3(-92.5155f, 93.52246f, -623.621f), 397); + num2++; + ref QuestStep reference153 = ref span3[num2]; QuestStep obj147 = new QuestStep(EInteractionType.Combat, 4621u, new Vector3(-92.37683f, 95.76039f, -640.7043f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = 4621u; + index3 = 1; + List list213 = new List(index3); + CollectionsMarshal.SetCount(list213, index3); + span4 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span4[num3] = 4621u; obj147.KillEnemyDataIds = list213; reference153 = obj147; obj146.Steps = list212; reference152 = obj146; - ref QuestSequence reference154 = ref span72[9]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 9 @@ -119646,24 +142669,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2006460u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006460u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397); obj148.Steps = list214; reference154 = obj148; - ref QuestSequence reference155 = ref span72[10]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true }; obj149.Steps = list215; reference155 = obj149; - ref QuestSequence reference156 = ref span72[11]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 11 @@ -119671,18 +142700,23 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); obj150.Steps = list216; reference156 = obj150; - ref QuestSequence reference157 = ref span72[12]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj151.Steps = list217; reference157 = obj151; questRoot25.QuestSequence = list203; @@ -119696,13 +142730,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -119710,64 +142747,90 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.83911f, -1.6023016f, -655.73804f), 401); - ref QuestStep reference3 = ref span2[1]; + index2 = 4; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.83911f, -1.6023016f, -655.73804f), 401); + num2++; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2005824u, new Vector3(204.8523f, 12.741211f, -596.2158f), 401); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[2]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005826u, new Vector3(224.93323f, 12.863342f, -653.3456f), 401); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[3]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005825u, new Vector3(244.34265f, 38.345825f, -564.3549f), 401); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -119775,7 +142838,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -119785,106 +142850,118 @@ public static class AssemblyQuestLoader AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1910); QuestRoot questRoot2 = new QuestRoot(); - num = 2; + num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span6 = CollectionsMarshal.AsSpan(list9); - span6[0] = "JerryWester"; - span6[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span7 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span7[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401); obj4.Steps = list11; reference7 = obj4; - ref QuestSequence reference8 = ref span7[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 }; - num2 = 4; + num2 = 3; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span8 = CollectionsMarshal.AsSpan(list12); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-568.5969f, -50.649483f, -452.10956f), 401) - { - AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NearPosition = new NearPositionCondition - { - Position = new Vector3(-568.5969f, -50.649483f, -452.10956f), - MaximumDistance = 200f, - TerritoryId = 401 - } - } - } - }; - ref QuestStep reference9 = ref span8[1]; + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1012072u, new Vector3(-568.5969f, -50.649483f, -452.10956f), 401); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span9 = CollectionsMarshal.AsSpan(list13); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + span4 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list13; reference9 = questStep4; - ref QuestStep reference10 = ref span8[2]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1012071u, new Vector3(-568.3833f, -50.605247f, -449.11877f), 401); num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span10 = CollectionsMarshal.AsSpan(list14); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list14; reference10 = questStep5; - ref QuestStep reference11 = ref span8[3]; + index2++; + ref QuestStep reference11 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span11 = CollectionsMarshal.AsSpan(list15); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list15; reference11 = questStep6; obj5.Steps = list12; reference8 = obj5; - ref QuestSequence reference12 = ref span7[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014171u, new Vector3(-373.43408f, -55.21164f, -630.0908f), 401) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014171u, new Vector3(-373.43408f, -55.21164f, -630.0908f), 401) { ChatMessage = new ChatMessage { @@ -119900,13 +142977,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list17; - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span12 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span12[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -119914,18 +142994,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); obj7.Steps = list19; reference13 = obj7; - ref QuestSequence reference14 = ref span12[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(56.196793f, 83.32266f, -218.24187f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -119933,14 +143018,17 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span13 = CollectionsMarshal.AsSpan(list21); - span13[0] = 4506u; - span13[1] = 4507u; + Span span5 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span5[num4] = 4506u; + num4++; + span5[num4] = 4507u; obj9.KillEnemyDataIds = list21; reference15 = obj9; obj8.Steps = list20; reference14 = obj8; - ref QuestSequence reference16 = ref span12[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -119948,30 +143036,37 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(104.56799f, 63.322918f, -218.18315f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span14 = CollectionsMarshal.AsSpan(list23); - span14[0] = 4506u; - span14[1] = 4507u; + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span5 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span5[num3] = 4506u; + num3++; + span5[num3] = 4507u; obj11.KillEnemyDataIds = list23; reference17 = obj11; obj10.Steps = list22; reference16 = obj10; - ref QuestSequence reference18 = ref span12[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); obj12.Steps = list24; reference18 = obj12; questRoot3.QuestSequence = list18; @@ -119981,13 +143076,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span15 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span15[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -119995,68 +143093,97 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478); obj13.Steps = list27; reference19 = obj13; - ref QuestSequence reference20 = ref span15[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span16 = CollectionsMarshal.AsSpan(list28); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.52824f, 207f, 117.84323f), 478) + index2 = 6; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.24727f, 205.55574f, 26.719358f), 478); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.52824f, 207f, 117.84323f), 478) { TargetTerritoryId = (ushort)399 }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.97165f, 100.7737f, -302.41528f), 399); - ref QuestStep reference21 = ref span16[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.97165f, 100.7737f, -302.41528f), 399); + num2++; + ref QuestStep reference21 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2005878u, new Vector3(490.77588f, 83.7262f, -14.847046f), 399); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list29; reference21 = questStep7; - ref QuestStep reference22 = ref span16[3]; + num2++; + ref QuestStep reference22 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2005879u, new Vector3(496.42163f, 83.7262f, 18.631226f), 399); - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span4 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list30; reference22 = questStep8; - ref QuestStep reference23 = ref span16[4]; + num2++; + ref QuestStep reference23 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2005877u, new Vector3(458.70142f, 83.7262f, 34.74475f), 399); num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list31; reference23 = questStep9; obj14.Steps = list28; reference20 = obj14; - ref QuestSequence reference24 = ref span15[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -120064,7 +143191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -120078,27 +143207,33 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "Thaksin"; questRoot5.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span20 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span20[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) { Fly = true }; obj16.Steps = list35; reference25 = obj16; - ref QuestSequence reference26 = ref span20[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -120106,16 +143241,20 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(301.43185f, 76.142914f, 171.03389f), 399) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new ComplexCombatData + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span6 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 4020u, MinimumKillCount = 3u @@ -120124,15 +143263,18 @@ public static class AssemblyQuestLoader reference27 = obj18; obj17.Steps = list36; reference26 = obj17; - ref QuestSequence reference28 = ref span20[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) { Fly = true }; @@ -120149,13 +143291,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -120163,30 +143308,37 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 }; - span2[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006210u, new Vector3(-487.48004f, 144.64026f, -285.359f), 399) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006210u, new Vector3(-487.48004f, 144.64026f, -285.359f), 399) { AetherCurrentId = 2818088u }; - span2[2] = new QuestStep(EInteractionType.Interact, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -120194,29 +143346,35 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span3[1] = new QuestStep(EInteractionType.Interact, 2005885u, new Vector3(-403.2807f, 155.35205f, 82.84119f), 399) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005885u, new Vector3(-403.2807f, 155.35205f, 82.84119f), 399) { DelaySecondsAtStart = 2f }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -120224,7 +143382,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -120234,24 +143394,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "Thaksin"; questRoot2.Author = list8; - num = 4; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 4; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -120259,31 +143425,36 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) { Fly = true }; - span5[1] = new QuestStep(EInteractionType.Interact, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) { Land = true }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-894.6883f, 215.50499f, 157.66754f), 399) + index2 = 2; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-894.6883f, 215.50499f, 157.66754f), 399) { Fly = true }; - ref QuestStep reference9 = ref span6[1]; + num2++; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 5047u, new Vector3(-894.9264f, 215.16266f, 155.29102f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -120291,14 +143462,17 @@ public static class AssemblyQuestLoader int num3 = 2; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = 5047u; - span7[1] = 5048u; + Span span4 = CollectionsMarshal.AsSpan(list13); + int num4 = 0; + span4[num4] = 5047u; + num4++; + span4[num4] = 5048u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span4[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -120306,12 +143480,14 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) { Fly = true }; - span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) { Land = true }; @@ -120324,24 +143500,30 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "Thaksin"; questRoot3.Author = list15; - num = 6; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span9[0]; + index = 6; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span9[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -120349,35 +143531,43 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span9[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); - ref QuestStep reference14 = ref span10[1]; + index2 = 2; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); + num2++; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, 5049u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = 5046u; - span11[1] = 5049u; + num4 = 2; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span4 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span4[num3] = 5046u; + num3++; + span4[num3] = 5049u; obj14.KillEnemyDataIds = list20; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span9[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -120385,21 +143575,27 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span9[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span9[5]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -120407,7 +143603,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; @@ -120420,24 +143618,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span12 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span12[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference19 = ref span12[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -120445,8 +143649,9 @@ public static class AssemblyQuestLoader num2 = 4; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span13 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span13[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 2005337u, new Vector3(7.765594f, 38.9395f, -50.9989f), 463) { TargetTerritoryId = (ushort)399 @@ -120456,93 +143661,125 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 463; + Span span5 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span5[num4] = 463; skipStepConditions.NotInTerritory = list28; skipConditions.StepIf = skipStepConditions; obj20.SkipConditions = skipConditions; reference20 = obj20; - ref QuestStep reference21 = ref span13[1]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2006061u, new Vector3(-486.93066f, 137.40747f, 701.3198f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = 44u; + num4 = 1; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span4 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span4[num3] = 44u; obj21.KillEnemyDataIds = list29; num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span14 = CollectionsMarshal.AsSpan(list30); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list30); + 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); obj21.CompletionQuestVariablesFlags = list30; reference21 = obj21; - ref QuestStep reference22 = ref span13[2]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2006062u, new Vector3(-471.8548f, 137.40747f, 705.5619f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 44u; + num4 = 1; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + span4 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span4[num3] = 44u; obj22.KillEnemyDataIds = list31; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list32); + 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)4, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list32; reference22 = obj22; - ref QuestStep reference23 = ref span13[3]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2006063u, new Vector3(-473.50275f, 137.40747f, 685.3893f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 44u; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span4 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span4[num3] = 44u; obj23.KillEnemyDataIds = list33; num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list34); + 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); obj23.CompletionQuestVariablesFlags = list34; reference23 = obj23; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference24 = ref span12[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span17 = CollectionsMarshal.AsSpan(list35); - span17[0] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); obj24.Steps = list35; reference24 = obj24; questRoot4.QuestSequence = list25; @@ -120552,13 +143789,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "goatzone"; questRoot5.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span18 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span18[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -120566,27 +143806,34 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402); obj25.Steps = list38; reference25 = obj25; - ref QuestSequence reference26 = ref span18[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-441.42657f, -167.25401f, -432.4462f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new ComplexCombatData + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span7 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4093u, MinimumKillCount = 5u @@ -120595,7 +143842,8 @@ public static class AssemblyQuestLoader reference27 = obj27; obj26.Steps = list39; reference26 = obj26; - ref QuestSequence reference28 = ref span18[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -120603,7 +143851,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402) { Fly = true }; @@ -120616,24 +143866,30 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "goatzone"; questRoot6.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference29 = ref span19[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402); obj29.Steps = list44; reference29 = obj29; - ref QuestSequence reference30 = ref span19[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -120641,7 +143897,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(-439.6144f, -186.3405f, -617.2911f), 402) { Fly = true, @@ -120650,7 +143908,9 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 4092u, MinimumKillCount = 5u @@ -120659,15 +143919,18 @@ public static class AssemblyQuestLoader reference31 = obj31; obj30.Steps = list45; reference30 = obj30; - ref QuestSequence reference32 = ref span19[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402) { AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; @@ -120680,13 +143943,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "goatzone"; questRoot7.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span20 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference33 = ref span20[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -120694,35 +143960,43 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) { Fly = true }; obj33.Steps = list50; reference33 = obj33; - ref QuestSequence reference34 = ref span20[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-528.74396f, -143.65883f, -580.686f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 4503u; + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span4[num3] = 4503u; obj35.KillEnemyDataIds = list52; reference35 = obj35; obj34.Steps = list51; reference34 = obj34; - ref QuestSequence reference36 = ref span20[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -120730,7 +144004,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) { Fly = true }; @@ -120743,27 +144019,33 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "goatzone"; questRoot8.Author = list54; - num = 3; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span21 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference37 = ref span21[0]; + index = 3; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402) { Fly = true }; obj37.Steps = list56; reference37 = obj37; - ref QuestSequence reference38 = ref span21[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -120771,7 +144053,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list57)[0]; + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(-189.43037f, -160.1837f, -499.3027f), 402) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -120779,13 +144063,15 @@ public static class AssemblyQuestLoader num3 = 2; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span22 = CollectionsMarshal.AsSpan(list58); - span22[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 4091u, MinimumKillCount = 3u }; - span22[1] = new ComplexCombatData + num4++; + span7[num4] = new ComplexCombatData { DataId = 4090u, MinimumKillCount = 3u @@ -120794,15 +144080,18 @@ public static class AssemblyQuestLoader reference39 = obj39; obj38.Steps = list57; reference38 = obj38; - ref QuestSequence reference40 = ref span21[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402); obj40.Steps = list59; reference40 = obj40; questRoot8.QuestSequence = list55; @@ -120812,13 +144101,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "goatzone"; questRoot9.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span23 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference41 = ref span23[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -120826,30 +144118,37 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) { Fly = true }; obj41.Steps = list62; reference41 = obj41; - ref QuestSequence reference42 = ref span23[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(517.51276f, -40.378292f, -785.99677f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new ComplexCombatData + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span7 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4141u, MinimumKillCount = 2u @@ -120858,7 +144157,8 @@ public static class AssemblyQuestLoader reference43 = obj43; obj42.Steps = list63; reference42 = obj42; - ref QuestSequence reference44 = ref span23[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -120866,7 +144166,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) { Fly = true }; @@ -120879,27 +144181,33 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "goatzone"; questRoot10.Author = list66; - num = 3; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span24 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference45 = ref span24[0]; + index = 3; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) { Fly = true }; obj45.Steps = list68; reference45 = obj45; - ref QuestSequence reference46 = ref span24[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -120907,7 +144215,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list69)[0]; + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(668.9029f, -86.006f, -775.5664f), 402) { Fly = true, @@ -120916,7 +144226,9 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 4046u, MinimumKillCount = 4u @@ -120925,15 +144237,18 @@ public static class AssemblyQuestLoader reference47 = obj47; obj46.Steps = list69; reference46 = obj46; - ref QuestSequence reference48 = ref span24[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) { Fly = true }; @@ -120946,13 +144261,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "goatzone"; questRoot11.Author = list72; - num = 3; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span25 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference49 = ref span25[0]; + index = 3; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -120960,27 +144278,34 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402); obj49.Steps = list74; reference49 = obj49; - ref QuestSequence reference50 = ref span25[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(355.31863f, -46.22946f, -507.70428f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData + num4 = 1; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + span7 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4072u, MinimumKillCount = 4u @@ -120989,7 +144314,8 @@ public static class AssemblyQuestLoader reference51 = obj51; obj50.Steps = list75; reference50 = obj50; - ref QuestSequence reference52 = ref span25[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -120997,7 +144323,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402) { Fly = true }; @@ -121010,27 +144338,33 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "goatzone"; questRoot12.Author = list78; - num = 3; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span26 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference53 = ref span26[0]; + index = 3; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span2 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) { Fly = true }; obj53.Steps = list80; reference53 = obj53; - ref QuestSequence reference54 = ref span26[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -121038,7 +144372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list81)[0]; + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, null, new Vector3(773.4017f, -0.06258035f, 147.04689f), 402) { Fly = true, @@ -121047,25 +144383,33 @@ public static class AssemblyQuestLoader num3 = 5; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span27 = CollectionsMarshal.AsSpan(list82); - span27[0] = 4669u; - span27[1] = 4970u; - span27[2] = 4671u; - span27[3] = 4672u; - span27[4] = 4673u; + span4 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span4[num4] = 4669u; + num4++; + span4[num4] = 4970u; + num4++; + span4[num4] = 4671u; + num4++; + span4[num4] = 4672u; + num4++; + span4[num4] = 4673u; obj55.KillEnemyDataIds = list82; reference55 = obj55; obj54.Steps = list81; reference54 = obj54; - ref QuestSequence reference56 = ref span26[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) { Fly = true }; @@ -121078,13 +144422,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "goatzone"; questRoot13.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span28 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference57 = ref span28[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -121092,30 +144439,37 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) { Fly = true }; obj57.Steps = list86; reference57 = obj57; - ref QuestSequence reference58 = ref span28[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list87)[0]; + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference59 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(495.16974f, 31.67624f, 517.37463f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new ComplexCombatData + num4 = 1; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span7 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4083u, MinimumKillCount = 4u @@ -121124,7 +144478,8 @@ public static class AssemblyQuestLoader reference59 = obj59; obj58.Steps = list87; reference58 = obj58; - ref QuestSequence reference60 = ref span28[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -121132,7 +144487,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) { Fly = true }; @@ -121145,27 +144502,33 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "goatzone"; questRoot14.Author = list90; - num = 3; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span29 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference61 = ref span29[0]; + index = 3; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) { Fly = true }; obj61.Steps = list92; reference61 = obj61; - ref QuestSequence reference62 = ref span29[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -121173,8 +144536,9 @@ public static class AssemblyQuestLoader num2 = 6; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span30 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference63 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference63 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(505.4667f, 16.87959f, 751.14856f), 402) { Fly = true @@ -121184,98 +144548,142 @@ public static class AssemblyQuestLoader num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span31 = CollectionsMarshal.AsSpan(list94); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list94); + 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)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list94; skipConditions2.StepIf = skipStepConditions2; obj63.SkipConditions = skipConditions2; reference63 = obj63; - ref QuestStep reference64 = ref span30[1]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2005900u, new Vector3(506.76733f, 16.861145f, 750.24023f), 402); - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span32 = CollectionsMarshal.AsSpan(list95); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span6 = CollectionsMarshal.AsSpan(list95); + 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); questStep.CompletionQuestVariablesFlags = list95; reference64 = questStep; - ref QuestStep reference65 = ref span30[2]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005903u, new Vector3(544.64014f, 15.945618f, 760.61633f), 402); num3 = 6; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - Span span33 = CollectionsMarshal.AsSpan(list96); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list96); + 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(0, (byte)8, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list96; reference65 = questStep2; - ref QuestStep reference66 = ref span30[3]; + index2++; + ref QuestStep reference66 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005899u, new Vector3(545.4031f, 20.2182f, 802.8534f), 402); - num3 = 6; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span34 = CollectionsMarshal.AsSpan(list97); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list97 = new List(num4); + CollectionsMarshal.SetCount(list97, num4); + span6 = CollectionsMarshal.AsSpan(list97); + 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); questStep3.CompletionQuestVariablesFlags = list97; reference66 = questStep3; - ref QuestStep reference67 = ref span30[4]; + index2++; + ref QuestStep reference67 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005902u, new Vector3(614.6791f, 20.2182f, 758.938f), 402); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span35 = CollectionsMarshal.AsSpan(list98); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list98); + 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)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list98; reference67 = questStep4; - ref QuestStep reference68 = ref span30[5]; + index2++; + ref QuestStep reference68 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2005901u, new Vector3(605.3406f, 15.945618f, 708.06433f), 402); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span36 = CollectionsMarshal.AsSpan(list99); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span6 = CollectionsMarshal.AsSpan(list99); + 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); questStep5.CompletionQuestVariablesFlags = list99; reference68 = questStep5; obj62.Steps = list93; reference62 = obj62; - ref QuestSequence reference69 = ref span29[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) { Fly = true }; @@ -121288,13 +144696,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "goatzone"; questRoot15.Author = list101; - num = 3; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span37 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference70 = ref span37[0]; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -121302,21 +144713,26 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) { Fly = true }; obj65.Steps = list103; reference70 = obj65; - ref QuestSequence reference71 = ref span37[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list104)[0]; + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(144.31177f, 5.9740877f, 387.8086f), 402) { Fly = true, @@ -121325,7 +144741,9 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 4630u, MinimumKillCount = 3u @@ -121334,7 +144752,8 @@ public static class AssemblyQuestLoader reference72 = obj67; obj66.Steps = list104; reference71 = obj66; - ref QuestSequence reference73 = ref span37[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -121342,7 +144761,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) { Fly = true }; @@ -121355,27 +144776,33 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "goatzone"; questRoot16.Author = list107; - num = 3; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span38 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference74 = ref span38[0]; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) { Fly = true }; obj69.Steps = list109; reference74 = obj69; - ref QuestSequence reference75 = ref span38[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -121383,17 +144810,20 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span39 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference76 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference76 = ref span3[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-345.30673f, -89.61499f, 353.53f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new ComplexCombatData + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + span7 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4075u, MinimumKillCount = 3u @@ -121402,25 +144832,34 @@ public static class AssemblyQuestLoader num3 = 6; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - Span span40 = CollectionsMarshal.AsSpan(list112); - span40[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + span6 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span6[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; obj71.CompletionQuestVariablesFlags = list112; reference76 = obj71; - ref QuestStep reference77 = ref span39[1]; + index2++; + ref QuestStep reference77 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-553.4664f, -104.895905f, 175.68343f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new ComplexCombatData + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + span7 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4668u, MinimumKillCount = 3u @@ -121429,15 +144868,18 @@ public static class AssemblyQuestLoader reference77 = obj72; obj70.Steps = list110; reference75 = obj70; - ref QuestSequence reference78 = ref span38[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) { Fly = true }; @@ -121450,13 +144892,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "goatzone"; questRoot17.Author = list115; - num = 3; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span41 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference79 = ref span41[0]; + index = 3; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -121464,21 +144909,26 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) { Fly = true }; obj74.Steps = list117; reference79 = obj74; - ref QuestSequence reference80 = ref span41[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list118)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-679.16223f, -48.151093f, 542.7097f), 402) { Fly = true, @@ -121487,7 +144937,9 @@ public static class AssemblyQuestLoader num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new ComplexCombatData + span7 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 4095u, MinimumKillCount = 4u @@ -121496,7 +144948,8 @@ public static class AssemblyQuestLoader reference81 = obj76; obj75.Steps = list118; reference80 = obj75; - ref QuestSequence reference82 = ref span41[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -121504,7 +144957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) { Fly = true }; @@ -121517,27 +144972,33 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "goatzone"; questRoot18.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span42 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference83 = ref span42[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) { Fly = true }; obj78.Steps = list123; reference83 = obj78; - ref QuestSequence reference84 = ref span42[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -121545,17 +145006,20 @@ public static class AssemblyQuestLoader num2 = 3; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span43 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference85 = ref span43[0]; + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference85 = ref span3[index2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, null, new Vector3(-375.98807f, -106.10026f, 710.48956f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = new ComplexCombatData + num4 = 1; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + span7 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -121564,24 +145028,33 @@ public static class AssemblyQuestLoader num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span44 = CollectionsMarshal.AsSpan(list126); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list126); + 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); obj80.CompletionQuestVariablesFlags = list126; reference85 = obj80; - ref QuestStep reference86 = ref span43[1]; + index2++; + ref QuestStep reference86 = ref span3[index2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, null, new Vector3(-372.88766f, -105.78837f, 746.95245f), 402) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = new ComplexCombatData + num4 = 1; + List list127 = new List(num4); + CollectionsMarshal.SetCount(list127, num4); + span7 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -121590,24 +145063,33 @@ public static class AssemblyQuestLoader num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span45 = CollectionsMarshal.AsSpan(list128); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list128); + 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)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list128; reference86 = obj81; - ref QuestStep reference87 = ref span43[2]; + index2++; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.94852f, -106.57244f, 716.5662f), 402) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new ComplexCombatData + num4 = 1; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + span7 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -121616,26 +145098,35 @@ public static class AssemblyQuestLoader num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span46 = CollectionsMarshal.AsSpan(list130); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list130); + 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); obj82.CompletionQuestVariablesFlags = list130; reference87 = obj82; obj79.Steps = list124; reference84 = obj79; - ref QuestSequence reference88 = ref span42[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) { Fly = true }; @@ -121648,13 +145139,16 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span47 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference89 = ref span47[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -121662,21 +145156,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); obj84.Steps = list134; reference89 = obj84; - ref QuestSequence reference90 = ref span47[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj85.Steps = list135; reference90 = obj85; - ref QuestSequence reference91 = ref span47[2]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -121684,7 +145184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1013196u, new Vector3(-249.43921f, -20.03492f, -65.0188f), 419) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013196u, new Vector3(-249.43921f, -20.03492f, -65.0188f), 419) { AethernetShortcut = new AethernetShortcut { @@ -121694,15 +145196,18 @@ public static class AssemblyQuestLoader }; obj86.Steps = list136; reference91 = obj86; - ref QuestSequence reference92 = ref span47[3]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -121719,13 +145224,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span48 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference93 = ref span48[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -121733,18 +145241,23 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj88.Steps = list140; reference93 = obj88; - ref QuestSequence reference94 = ref span48[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1011222u, new Vector3(231.92188f, -13.73494f, -106.85901f), 419) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011222u, new Vector3(231.92188f, -13.73494f, -106.85901f), 419) { AethernetShortcut = new AethernetShortcut { @@ -121754,7 +145267,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list141; reference94 = obj89; - ref QuestSequence reference95 = ref span48[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -121762,7 +145276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -121779,24 +145295,30 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span49 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference96 = ref span49[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj91.Steps = list145; reference96 = obj91; - ref QuestSequence reference97 = ref span49[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -121804,24 +145326,30 @@ public static class AssemblyQuestLoader num2 = 3; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span50 = CollectionsMarshal.AsSpan(list146); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); - span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) { DisableNavmesh = true }; - span50[2] = new QuestStep(EInteractionType.Interact, 1012169u, new Vector3(109.391846f, -22.012903f, 29.95337f), 418); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012169u, new Vector3(109.391846f, -22.012903f, 29.95337f), 418); obj92.Steps = list146; reference97 = obj92; - ref QuestSequence reference98 = ref span49[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj93.Steps = list147; reference98 = obj93; questRoot21.QuestSequence = list144; @@ -121831,13 +145359,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span51 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference99 = ref span51[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -121845,29 +145376,37 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj94.Steps = list150; reference99 = obj94; - ref QuestSequence reference100 = ref span51[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span52 = CollectionsMarshal.AsSpan(list151); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); - span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) + index2 = 3; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) { DisableNavmesh = true }; - ref QuestStep reference101 = ref span52[2]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice + num4 = 1; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + Span span8 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span8[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA409_01996_Q1_000_000"), @@ -121877,7 +145416,8 @@ public static class AssemblyQuestLoader reference101 = questStep6; obj95.Steps = list151; reference100 = obj95; - ref QuestSequence reference102 = ref span51[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -121885,7 +145425,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); obj96.Steps = list153; reference102 = obj96; questRoot22.QuestSequence = list149; @@ -121899,13 +145441,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "kaiser"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "kaiser"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -121913,7 +145458,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -121932,28 +145479,34 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 419; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 419; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f }; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -121961,29 +145514,37 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span2[0]; + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1012221u, new Vector3(195.08655f, -5.3999624f, -65.65961f), 419) { StopDistance = 4f }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list7; skipConditions2.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions2; reference5 = obj6; - ref QuestStep reference6 = ref span2[1]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1012223u, new Vector3(188.70825f, -5.3999662f, -68.833435f), 419) { StopDistance = 4f @@ -121993,51 +145554,68 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list8; skipConditions3.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions3; reference6 = obj7; - ref QuestStep reference7 = ref span2[2]; + index2++; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1012224u, new Vector3(175.12769f, -5.4349146f, -57.938538f), 419) { StopDistance = 4f }; - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span5 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list9; reference7 = obj8; obj5.Steps = list6; reference4 = obj5; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f }; obj9.Steps = list10; reference8 = obj9; - ref QuestSequence reference9 = ref span[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -122045,8 +145623,9 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span6 = CollectionsMarshal.AsSpan(list11); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.57971f, 307.86523f, 409.82266f), 155) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.57971f, 307.86523f, 409.82266f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -122058,7 +145637,8 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.Interact, 1014980u, new Vector3(198.6571f, 293.33f, 418.57007f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014980u, new Vector3(198.6571f, 293.33f, 418.57007f), 155) { StopDistance = 4f, Fly = false, @@ -122073,15 +145653,18 @@ public static class AssemblyQuestLoader }; obj10.Steps = list11; reference9 = obj10; - ref QuestSequence reference10 = ref span[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014931u, new Vector3(182.97095f, 7.488976f, -46.830017f), 153) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014931u, new Vector3(182.97095f, 7.488976f, -46.830017f), 153) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -122095,7 +145678,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list12; reference10 = obj11; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -122103,7 +145687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014925u, new Vector3(184.49683f, 14.1174555f, 51.92639f), 153) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014925u, new Vector3(184.49683f, 14.1174555f, 51.92639f), 153) { StopDistance = 5f, Fly = true, @@ -122126,21 +145712,26 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "kaiser"; questRoot2.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span7[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) { StopDistance = 5f, @@ -122155,14 +145746,17 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 419; + span4 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span4[index3] = 419; obj15.InTerritory = list17; skipConditions4.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions4; reference13 = obj14; obj13.Steps = list16; reference12 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -122170,7 +145764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) { StopDistance = 5f, Fly = true, @@ -122185,15 +145781,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list18; reference14 = obj16; - ref QuestSequence reference15 = ref span7[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122213,13 +145812,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "kaiser"; questRoot3.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span8[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -122227,7 +145829,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122243,25 +145847,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 419; + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span4 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span4[num3] = 419; obj20.InTerritory = list23; skipConditions5.AetheryteShortcutIf = obj20; obj19.SkipConditions = skipConditions5; reference17 = obj19; obj18.Steps = list22; reference16 = obj18; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1014935u, new Vector3(143.35852f, -6.0896406f, 409.81152f), 145) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014935u, new Vector3(143.35852f, -6.0896406f, 409.81152f), 145) { StopDistance = 5f, Fly = true, @@ -122276,7 +145885,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list24; reference18 = obj21; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -122284,7 +145894,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2006314u, new Vector3(143.05322f, -6.149414f, 412.10034f), 145) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006314u, new Vector3(143.05322f, -6.149414f, 412.10034f), 145) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -122298,15 +145910,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list25; reference19 = obj22; - ref QuestSequence reference20 = ref span8[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) { StopDistance = 4f, Fly = false, @@ -122321,7 +145936,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list26; reference20 = obj23; - ref QuestSequence reference21 = ref span8[4]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 @@ -122329,7 +145945,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 2006315u, new Vector3(-60.16632f, 23.147888f, -406.79028f), 146) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006315u, new Vector3(-60.16632f, 23.147888f, -406.79028f), 146) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -122343,15 +145961,18 @@ public static class AssemblyQuestLoader }; obj24.Steps = list27; reference21 = obj24; - ref QuestSequence reference22 = ref span8[5]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) { StopDistance = 3f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -122365,7 +145986,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list28; reference22 = obj25; - ref QuestSequence reference23 = ref span8[6]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -122373,7 +145995,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122393,21 +146017,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "kaiser"; questRoot4.Author = list30; - num = 2; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span9 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span9[0]; + index = 2; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122426,14 +146055,17 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 419; + span4 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span4[index3] = 419; obj29.InTerritory = list33; skipConditions6.AetheryteShortcutIf = obj29; obj28.SkipConditions = skipConditions6; reference25 = obj28; obj27.Steps = list32; reference24 = obj27; - ref QuestSequence reference26 = ref span9[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -122441,7 +146073,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122473,21 +146107,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "kaiser"; questRoot5.Author = list35; - num = 7; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span10[0]; + index = 7; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.AcceptQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, @@ -122503,17 +146142,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 419; + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span4 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span4[num3] = 419; obj33.InTerritory = list38; skipConditions7.AetheryteShortcutIf = obj33; obj32.SkipConditions = skipConditions7; reference28 = obj32; obj31.Steps = list37; reference27 = obj31; - ref QuestSequence reference29 = ref span10[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -122521,7 +146163,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122545,15 +146189,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list39; reference29 = obj34; - ref QuestSequence reference30 = ref span10[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1014946u, new Vector3(-189.89856f, 16f, 58.182617f), 129) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014946u, new Vector3(-189.89856f, 16f, 58.182617f), 129) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -122572,7 +146219,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list40; reference30 = obj35; - ref QuestSequence reference31 = ref span10[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -122580,8 +146228,9 @@ public static class AssemblyQuestLoader num2 = 4; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span11 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference32 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference32 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1014947u, new Vector3(-187.85382f, 3.9999306f, 170.1228f), 129) { StopDistance = 5f, @@ -122597,13 +146246,19 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span12 = CollectionsMarshal.AsSpan(list42); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list42; skipConditions8.StepIf = skipStepConditions3; skipConditions8.AetheryteShortcutIf = new SkipAetheryteCondition @@ -122612,7 +146267,8 @@ public static class AssemblyQuestLoader }; obj37.SkipConditions = skipConditions8; reference32 = obj37; - ref QuestStep reference33 = ref span11[1]; + index2++; + ref QuestStep reference33 = ref span3[index2]; QuestStep obj38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.1358607f, 45.631218f, -258.50027f), 128) { AethernetShortcut = new AethernetShortcut @@ -122623,15 +146279,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = 128; + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span4[num3] = 128; skipStepConditions4.InTerritory = list43; skipConditions9.StepIf = skipStepConditions4; obj38.SkipConditions = skipConditions9; reference33 = obj38; - ref QuestStep reference34 = ref span11[2]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 5f @@ -122639,43 +146298,59 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span13 = CollectionsMarshal.AsSpan(list44); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj39.CompletionQuestVariablesFlags = list44; reference34 = obj39; - ref QuestStep reference35 = ref span11[3]; + index2++; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128) { StopDistance = 5f }; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span14 = CollectionsMarshal.AsSpan(list45); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span5 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list45; reference35 = obj40; obj36.Steps = list41; reference31 = obj36; - ref QuestSequence reference36 = ref span10[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1014948u, new Vector3(17.166382f, 47.600006f, -160.23505f), 128) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014948u, new Vector3(17.166382f, 47.600006f, -160.23505f), 128) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -122687,7 +146362,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list46; reference36 = obj41; - ref QuestSequence reference37 = ref span10[5]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 @@ -122695,18 +146371,23 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2006316u, new Vector3(17.715698f, 47.592896f, -160.47919f), 128); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2006316u, new Vector3(17.715698f, 47.592896f, -160.47919f), 128); obj42.Steps = list47; reference37 = obj42; - ref QuestSequence reference38 = ref span10[6]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122738,13 +146419,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "kaiser"; questRoot6.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span15 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference39 = ref span15[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -122752,7 +146436,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122771,23 +146457,27 @@ public static class AssemblyQuestLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 419; + span4 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span4[index3] = 419; obj46.InTerritory = list52; skipConditions10.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions10; reference40 = obj45; obj44.Steps = list51; reference39 = obj44; - ref QuestSequence reference41 = ref span15[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span16 = CollectionsMarshal.AsSpan(list53); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.69202f, 307.86456f, 409.4611f), 155) + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.69202f, 307.86456f, 409.4611f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -122799,7 +146489,8 @@ public static class AssemblyQuestLoader } } }; - span16[1] = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) { StopDistance = 4f, Fly = false, @@ -122814,7 +146505,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list53; reference41 = obj47; - ref QuestSequence reference42 = ref span15[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -122822,7 +146514,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122846,15 +146540,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list54; reference42 = obj48; - ref QuestSequence reference43 = ref span15[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014949u, new Vector3(-159.65515f, 40.350307f, -194.7204f), 156) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014949u, new Vector3(-159.65515f, 40.350307f, -194.7204f), 156) { StopDistance = 5f, Fly = true, @@ -122863,7 +146560,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list55; reference43 = obj49; - ref QuestSequence reference44 = ref span15[4]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -122871,21 +146569,26 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 2006318u, new Vector3(-147.2649f, 43.320312f, -186.63312f), 156) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006318u, new Vector3(-147.2649f, 43.320312f, -186.63312f), 156) { StopDistance = 3f }; obj50.Steps = list56; reference44 = obj50; - ref QuestSequence reference45 = ref span15[5]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122917,13 +146620,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "kaiser"; questRoot7.Author = list58; - num = 2; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span17 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference46 = ref span17[0]; + index = 2; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -122931,7 +146637,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list60)[0]; + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122947,25 +146655,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = 419; + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span4 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span4[num3] = 419; obj54.InTerritory = list61; skipConditions11.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions11; reference47 = obj53; obj52.Steps = list60; reference46 = obj52; - ref QuestSequence reference48 = ref span17[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122997,13 +146710,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "kaiser"; questRoot8.Author = list63; - num = 6; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span18 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference49 = ref span18[0]; + index = 6; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -123011,7 +146727,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list65)[0]; + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, @@ -123030,22 +146748,27 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 419; + span4 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span4[index3] = 419; obj58.InTerritory = list66; skipConditions12.AetheryteShortcutIf = obj58; obj57.SkipConditions = skipConditions12; reference50 = obj57; obj56.Steps = list65; reference49 = obj56; - ref QuestSequence reference51 = ref span18[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123069,7 +146792,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list67; reference51 = obj59; - ref QuestSequence reference52 = ref span18[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -123077,22 +146801,27 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014957u, new Vector3(238.78845f, 302f, -277.97363f), 155) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014957u, new Vector3(238.78845f, 302f, -277.97363f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj60.Steps = list68; reference52 = obj60; - ref QuestSequence reference53 = ref span18[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1014960u, new Vector3(262.83667f, 359.1351f, -688.3192f), 155) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014960u, new Vector3(262.83667f, 359.1351f, -688.3192f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -123106,7 +146835,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list69; reference53 = obj61; - ref QuestSequence reference54 = ref span18[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -123114,7 +146844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1014961u, new Vector3(259.72375f, 359.09564f, -689.93665f), 155) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014961u, new Vector3(259.72375f, 359.09564f, -689.93665f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -123128,15 +146860,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list70; reference54 = obj62; - ref QuestSequence reference55 = ref span18[5]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006367u, new Vector3(205.92041f, 307.8507f, 412.25293f), 155) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006367u, new Vector3(205.92041f, 307.8507f, 412.25293f), 155) { StopDistance = 2f, Fly = true, @@ -123152,13 +146887,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "kaiser"; questRoot9.Author = list72; - num = 7; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span19 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference56 = ref span19[0]; + index = 7; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -123166,7 +146904,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list74)[0]; + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference57 = ref span3[index2]; QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1015127u, new Vector3(204.60815f, 307.87106f, 414.63342f), 155) { StopDistance = 3f, @@ -123178,26 +146918,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 419; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span4 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span4[num3] = 419; obj66.InTerritory = list75; skipConditions13.AetheryteShortcutIf = obj66; obj65.SkipConditions = skipConditions13; reference57 = obj65; obj64.Steps = list74; reference56 = obj64; - ref QuestSequence reference58 = ref span19[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span20 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference59 = ref span20[0]; + index2 = 3; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference59 = ref span3[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) { StopDistance = 4f @@ -123207,31 +146951,40 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span21 = CollectionsMarshal.AsSpan(list77); - span21[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list77; skipConditions14.StepIf = skipStepConditions5; obj68.SkipConditions = skipConditions14; reference59 = obj68; - span20[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(205.51671f, 285.27087f, 413.4063f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(205.51671f, 285.27087f, 413.4063f), 155) { JumpDestination = new JumpDestination { Position = new Vector3(198.82875f, 234.59601f, 424.70218f) } }; - span20[2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155) { StopDistance = 3f }; obj67.Steps = list76; reference58 = obj67; - ref QuestSequence reference60 = ref span19[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -123239,7 +146992,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123263,21 +147018,25 @@ public static class AssemblyQuestLoader }; obj69.Steps = list78; reference60 = obj69; - ref QuestSequence reference61 = ref span19[3]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1015128u, new Vector3(116.472046f, -4.734893f, -52.567383f), 419) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015128u, new Vector3(116.472046f, -4.734893f, -52.567383f), 419) { StopDistance = 5f }; obj70.Steps = list79; reference61 = obj70; - ref QuestSequence reference62 = ref span19[4]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -123285,27 +147044,33 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1015130u, new Vector3(51.743286f, 11.741424f, 27.115234f), 419) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015130u, new Vector3(51.743286f, 11.741424f, 27.115234f), 419) { StopDistance = 5f }; obj71.Steps = list80; reference62 = obj71; - ref QuestSequence reference63 = ref span19[5]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1015129u, new Vector3(-0.07635498f, 11.965096f, 44.327393f), 419) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015129u, new Vector3(-0.07635498f, 11.965096f, 44.327393f), 419) { StopDistance = 5f }; obj72.Steps = list81; reference63 = obj72; - ref QuestSequence reference64 = ref span19[6]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -123313,7 +147078,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123345,21 +147112,26 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "kaiser"; questRoot10.Author = list83; - num = 10; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span22 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference65 = ref span22[0]; + index = 10; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -123375,17 +147147,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 419; + index3 = 1; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span4 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span4[num3] = 419; obj76.InTerritory = list86; skipConditions15.AetheryteShortcutIf = obj76; obj75.SkipConditions = skipConditions15; reference66 = obj75; obj74.Steps = list85; reference65 = obj74; - ref QuestSequence reference67 = ref span22[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -123393,7 +147168,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) { StopDistance = 5f, Fly = true, @@ -123408,15 +147185,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list87; reference67 = obj77; - ref QuestSequence reference68 = ref span22[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1015145u, new Vector3(487.17468f, 200.23772f, 656.27515f), 397) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015145u, new Vector3(487.17468f, 200.23772f, 656.27515f), 397) { StopDistance = 5f, Fly = true, @@ -123431,7 +147211,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list88; reference68 = obj78; - ref QuestSequence reference69 = ref span22[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -123439,22 +147220,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Action, 1015146u, new Vector3(485.0995f, 200.2377f, 654.68823f), 397) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1015146u, new Vector3(485.0995f, 200.2377f, 654.68823f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj79.Steps = list89; reference69 = obj79; - ref QuestSequence reference70 = ref span22[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list90)[0]; + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, null, new Vector3(501.1413f, 161.74702f, -318.04788f), 397) { StopDistance = 3f, @@ -123465,13 +147251,15 @@ public static class AssemblyQuestLoader num3 = 2; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span23 = CollectionsMarshal.AsSpan(list91); - span23[0] = new ComplexCombatData + Span span6 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span6[index3] = new ComplexCombatData { DataId = 4619u, MinimumKillCount = 1u }; - span23[1] = new ComplexCombatData + index3++; + span6[index3] = new ComplexCombatData { DataId = 4360u, MinimumKillCount = 2u @@ -123487,7 +147275,8 @@ public static class AssemblyQuestLoader reference71 = obj81; obj80.Steps = list90; reference70 = obj80; - ref QuestSequence reference72 = ref span22[5]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 5 @@ -123495,22 +147284,27 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Action, 1015147u, new Vector3(500.11438f, 161.61157f, -320.02753f), 397) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1015147u, new Vector3(500.11438f, 161.61157f, -320.02753f), 397) { StopDistance = 3f, Action = EAction.AspectedBenefic }; obj82.Steps = list92; reference72 = obj82; - ref QuestSequence reference73 = ref span22[6]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) { StopDistance = 4f, Fly = true, @@ -123518,7 +147312,8 @@ public static class AssemblyQuestLoader }; obj83.Steps = list93; reference73 = obj83; - ref QuestSequence reference74 = ref span22[7]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 7 @@ -123526,37 +147321,44 @@ public static class AssemblyQuestLoader num2 = 3; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span24 = CollectionsMarshal.AsSpan(list94); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.5874f, 227.05162f, 717.32074f), 397) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.5874f, 227.05162f, 717.32074f), 397) { Fly = true }; - span24[1] = new QuestStep(EInteractionType.None, null, null, 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 397) { Mount = false }; - span24[2] = new QuestStep(EInteractionType.Interact, 1015149u, new Vector3(533.59265f, 228.33778f, 720.2715f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015149u, new Vector3(533.59265f, 228.33778f, 720.2715f), 397) { StopDistance = 4f }; obj84.Steps = list94; reference74 = obj84; - ref QuestSequence reference75 = ref span22[8]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1015151u, new Vector3(541.25256f, 228.85133f, 742.5497f), 397) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015151u, new Vector3(541.25256f, 228.85133f, 742.5497f), 397) { StopDistance = 4f, Fly = false }; obj85.Steps = list95; reference75 = obj85; - ref QuestSequence reference76 = ref span22[9]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -123564,7 +147366,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123596,21 +147400,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "kaiser"; questRoot11.Author = list97; - num = 6; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span25 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference77 = ref span25[0]; + index = 6; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list99)[0]; + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj88 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -123626,17 +147435,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 419; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + span4 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span4[num3] = 419; obj89.InTerritory = list100; skipConditions16.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions16; reference78 = obj88; obj87.Steps = list99; reference77 = obj87; - ref QuestSequence reference79 = ref span25[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -123644,7 +147456,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1015168u, new Vector3(-266.01056f, 126.407364f, -0.045776367f), 397) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015168u, new Vector3(-266.01056f, 126.407364f, -0.045776367f), 397) { StopDistance = 5f, Fly = true, @@ -123659,16 +147473,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list101; reference79 = obj90; - ref QuestSequence reference80 = ref span25[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span26 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference81 = ref span26[0]; + index2 = 3; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Action, 1015169u, new Vector3(-311.42145f, 126.83597f, 3.4942627f), 397) { StopDistance = 4f, @@ -123677,34 +147493,48 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span27 = CollectionsMarshal.AsSpan(list103); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list103; reference81 = obj92; - ref QuestStep reference82 = ref span26[1]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Action, 1015171u, new Vector3(-320.02753f, 126.52038f, -14.023071f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span28 = CollectionsMarshal.AsSpan(list104); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + span5 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list104; reference82 = obj93; - ref QuestStep reference83 = ref span26[2]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Action, 1015170u, new Vector3(-296.86432f, 125.87531f, -14.389343f), 397) { StopDistance = 4f, @@ -123713,18 +147543,25 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span29 = CollectionsMarshal.AsSpan(list105); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list105; reference83 = obj94; obj91.Steps = list102; reference80 = obj91; - ref QuestSequence reference84 = ref span25[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 @@ -123732,28 +147569,34 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1015163u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015163u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) { StopDistance = 4f }; obj95.Steps = list106; reference84 = obj95; - ref QuestSequence reference85 = ref span25[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Action, 1015178u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1015178u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj96.Steps = list107; reference85 = obj96; - ref QuestSequence reference86 = ref span25[5]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -123761,7 +147604,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123793,21 +147638,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "kaiser"; questRoot12.Author = list109; - num = 6; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span30 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference87 = ref span30[0]; + index = 6; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list111)[0]; + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -123823,17 +147673,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = 419; + index3 = 1; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span4 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span4[num3] = 419; obj100.InTerritory = list112; skipConditions17.AetheryteShortcutIf = obj100; obj99.SkipConditions = skipConditions17; reference88 = obj99; obj98.Steps = list111; reference87 = obj98; - ref QuestSequence reference89 = ref span30[1]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -123841,7 +147694,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1015084u, new Vector3(487.08313f, -51.1414f, 33.340942f), 398) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015084u, new Vector3(487.08313f, -51.1414f, 33.340942f), 398) { StopDistance = 5f, Fly = false, @@ -123856,16 +147711,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list113; reference89 = obj101; - ref QuestSequence reference90 = ref span30[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span31 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference91 = ref span31[0]; + index2 = 3; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Action, 1015094u, new Vector3(472.03772f, -51.14139f, 8.590759f), 398) { StopDistance = 4f, @@ -123874,34 +147731,48 @@ public static class AssemblyQuestLoader num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span32 = CollectionsMarshal.AsSpan(list115); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list115; reference91 = obj103; - ref QuestStep reference92 = ref span31[1]; + num2++; + ref QuestStep reference92 = ref span3[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Action, 1015092u, new Vector3(560.9979f, -51.27571f, 62.974f), 398) { StopDistance = 4f, Action = EAction.AspectedBenefic }; - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span33 = CollectionsMarshal.AsSpan(list116); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + span5 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list116; reference92 = obj104; - ref QuestStep reference93 = ref span31[2]; + num2++; + ref QuestStep reference93 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Action, 1015093u, new Vector3(465.568f, -51.19559f, 98.10022f), 398) { StopDistance = 4f, @@ -123910,18 +147781,25 @@ public static class AssemblyQuestLoader num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span34 = CollectionsMarshal.AsSpan(list117); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list117; reference93 = obj105; obj102.Steps = list114; reference90 = obj102; - ref QuestSequence reference94 = ref span30[3]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 3 @@ -123929,7 +147807,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1015087u, new Vector3(509.75806f, -51.32657f, 75.913574f), 398) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015087u, new Vector3(509.75806f, -51.32657f, 75.913574f), 398) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -123943,15 +147823,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list118; reference94 = obj106; - ref QuestSequence reference95 = ref span30[4]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015095u, new Vector3(731.56323f, -40.98759f, -27.420471f), 398) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015095u, new Vector3(731.56323f, -40.98759f, -27.420471f), 398) { StopDistance = 4f, Fly = true, @@ -123966,7 +147849,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list119; reference95 = obj107; - ref QuestSequence reference96 = ref span30[5]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -123974,7 +147858,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -124006,21 +147892,26 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "kaiser"; questRoot13.Author = list121; - num = 9; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span35 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference97 = ref span35[0]; + index = 9; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list123)[0]; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference98 = ref span3[num2]; QuestStep obj110 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -124036,17 +147927,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 419; + index3 = 1; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span4[num3] = 419; obj111.InTerritory = list124; skipConditions18.AetheryteShortcutIf = obj111; obj110.SkipConditions = skipConditions18; reference98 = obj110; obj109.Steps = list123; reference97 = obj109; - ref QuestSequence reference99 = ref span35[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -124054,7 +147948,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) { StopDistance = 5f, Fly = true, @@ -124069,22 +147965,26 @@ public static class AssemblyQuestLoader }; obj112.Steps = list125; reference99 = obj112; - ref QuestSequence reference100 = ref span35[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Action, 1015190u, new Vector3(679.1942f, 207.2133f, -273.82324f), 397) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1015190u, new Vector3(679.1942f, 207.2133f, -273.82324f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj113.Steps = list126; reference100 = obj113; - ref QuestSequence reference101 = ref span35[3]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -124092,29 +147992,35 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Action, 1015191u, new Vector3(651.78906f, 207.92256f, -268.29938f), 397) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1015191u, new Vector3(651.78906f, 207.92256f, -268.29938f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj114.Steps = list127; reference101 = obj114; - ref QuestSequence reference102 = ref span35[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Action, 1015192u, new Vector3(652.82666f, 209.09976f, -282.70392f), 397) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1015192u, new Vector3(652.82666f, 209.09976f, -282.70392f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj115.Steps = list128; reference102 = obj115; - ref QuestSequence reference103 = ref span35[5]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 5 @@ -124122,8 +148028,9 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span36 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference104 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, null, new Vector3(614.313f, 210.86438f, -301.28937f), 397) { StopDistance = 3f, @@ -124132,31 +148039,38 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new ComplexCombatData + span6 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span6[index3] = new ComplexCombatData { DataId = 4676u, MinimumKillCount = 3u }; obj117.ComplexCombatData = list130; reference104 = obj117; - span36[1] = new QuestStep(EInteractionType.Interact, 2006415u, new Vector3(614.313f, 210.86438f, -301.28937f), 397); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006415u, new Vector3(614.313f, 210.86438f, -301.28937f), 397); obj116.Steps = list129; reference103 = obj116; - ref QuestSequence reference105 = ref span35[6]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1015197u, new Vector3(614.25183f, 210.67752f, -300.1908f), 397) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015197u, new Vector3(614.25183f, 210.67752f, -300.1908f), 397) { StopDistance = 3f }; obj118.Steps = list131; reference105 = obj118; - ref QuestSequence reference106 = ref span35[7]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 7 @@ -124164,22 +148078,27 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) { StopDistance = 5f, Fly = true }; obj119.Steps = list132; reference106 = obj119; - ref QuestSequence reference107 = ref span35[8]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -124211,13 +148130,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "kaiser"; questRoot14.Author = list134; - num = 6; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span37 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference108 = ref span37[0]; + index = 6; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -124225,7 +148147,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list136)[0]; + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -124241,25 +148165,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = 419; + index3 = 1; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + span4 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span4[num3] = 419; obj123.InTerritory = list137; skipConditions19.AetheryteShortcutIf = obj123; obj122.SkipConditions = skipConditions19; reference109 = obj122; obj121.Steps = list136; reference108 = obj121; - ref QuestSequence reference110 = ref span37[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1015108u, new Vector3(-359.42633f, 141.55403f, -215.32007f), 399) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015108u, new Vector3(-359.42633f, 141.55403f, -215.32007f), 399) { StopDistance = 5f, Fly = true, @@ -124279,7 +148208,8 @@ public static class AssemblyQuestLoader }; obj124.Steps = list138; reference110 = obj124; - ref QuestSequence reference111 = ref span37[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -124287,7 +148217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list139)[0]; + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1015111u, new Vector3(-447.65393f, 159.354f, 147.63098f), 399) { StopDistance = 5f, @@ -124304,7 +148236,9 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 399; + span4 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span4[index3] = 399; skipAetheryteCondition.InTerritory = list140; skipConditions20.AetheryteShortcutIf = skipAetheryteCondition; skipConditions20.AethernetShortcutIf = new SkipAetheryteCondition @@ -124315,15 +148249,18 @@ public static class AssemblyQuestLoader reference112 = obj126; obj125.Steps = list139; reference111 = obj125; - ref QuestSequence reference113 = ref span37[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list141)[0]; + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference114 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.SinglePlayerDuty, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) { StopDistance = 4f, @@ -124340,10 +148277,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 399; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span4 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span4[num3] = 399; obj129.InTerritory = list142; skipConditions21.AetheryteShortcutIf = obj129; skipConditions21.AethernetShortcutIf = new SkipAetheryteCondition @@ -124354,7 +148293,8 @@ public static class AssemblyQuestLoader reference114 = obj128; obj127.Steps = list141; reference113 = obj127; - ref QuestSequence reference115 = ref span37[4]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 4 @@ -124362,21 +148302,26 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) { StopDistance = 4f }; obj130.Steps = list143; reference115 = obj130; - ref QuestSequence reference116 = ref span37[5]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -124408,13 +148353,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "plogon_enjoyer"; questRoot15.Author = list145; - num = 9; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span38 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference117 = ref span38[0]; + index = 9; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -124422,7 +148370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list147)[0]; + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference118 = ref span3[index2]; QuestStep obj133 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -124437,9 +148387,11 @@ public static class AssemblyQuestLoader num3 = 2; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span39 = CollectionsMarshal.AsSpan(list148); - span39[0] = 130; - span39[1] = 131; + span4 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span4[index3] = 130; + index3++; + span4[index3] = 131; skipAetheryteCondition2.InTerritory = list148; skipConditions22.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions22.AethernetShortcutIf = new SkipAetheryteCondition @@ -124450,22 +148402,26 @@ public static class AssemblyQuestLoader reference118 = obj133; obj132.Steps = list147; reference117 = obj132; - ref QuestSequence reference119 = ref span38[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj134.Steps = list149; reference119 = obj134; - ref QuestSequence reference120 = ref span38[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 @@ -124473,35 +148429,43 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1013976u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013976u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) { Fly = true }; obj135.Steps = list150; reference120 = obj135; - ref QuestSequence reference121 = ref span38[3]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference122 = ref span3[num2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = 777u; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span7 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span7[num3] = 777u; obj137.KillEnemyDataIds = list152; reference122 = obj137; obj136.Steps = list151; reference121 = obj136; - ref QuestSequence reference123 = ref span38[4]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 @@ -124509,18 +148473,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156); obj138.Steps = list153; reference123 = obj138; - ref QuestSequence reference124 = ref span38[5]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference125 = ref span3[num2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156) { Fly = true, @@ -124529,12 +148498,15 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 4615u; + span7 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span7[index3] = 4615u; obj140.KillEnemyDataIds = list155; reference125 = obj140; obj139.Steps = list154; reference124 = obj139; - ref QuestSequence reference126 = ref span38[6]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -124542,24 +148514,30 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156); obj141.Steps = list156; reference126 = obj141; - ref QuestSequence reference127 = ref span38[7]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1014111u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014111u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) { Fly = true }; obj142.Steps = list157; reference127 = obj142; - ref QuestSequence reference128 = ref span38[8]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -124567,7 +148545,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124582,21 +148562,26 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list159; - num = 10; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span40 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference129 = ref span40[0]; + index = 10; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + span2 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124609,7 +148594,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list161; reference129 = obj144; - ref QuestSequence reference130 = ref span40[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -124617,29 +148603,35 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1013982u, new Vector3(-73.0755f, 2.668869f, -622.52234f), 156) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013982u, new Vector3(-73.0755f, 2.668869f, -622.52234f), 156) { Fly = true }; obj145.Steps = list162; reference130 = obj145; - ref QuestSequence reference131 = ref span40[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span41 = CollectionsMarshal.AsSpan(list163); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-144.73549f, 1.9077771f, -655.4047f), 156) + index2 = 2; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-144.73549f, 1.9077771f, -655.4047f), 156) { Fly = true }; - span41[1] = new QuestStep(EInteractionType.Interact, 1013984u, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013984u, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156); obj146.Steps = list163; reference131 = obj146; - ref QuestSequence reference132 = ref span40[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -124647,36 +148639,44 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list164)[0]; + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference133 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = 5047u; + index3 = 1; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + span7 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span7[num3] = 5047u; obj148.KillEnemyDataIds = list165; reference133 = obj148; obj147.Steps = list164; reference132 = obj147; - ref QuestSequence reference134 = ref span40[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span42 = CollectionsMarshal.AsSpan(list166); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-222.99123f, 3.602174f, -625.4028f), 156) + index2 = 2; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-222.99123f, 3.602174f, -625.4028f), 156) { Fly = true }; - span42[1] = new QuestStep(EInteractionType.Interact, 1013987u, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013987u, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156); obj149.Steps = list166; reference134 = obj149; - ref QuestSequence reference135 = ref span40[5]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 5 @@ -124684,7 +148684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list167)[0]; + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -124692,28 +148694,34 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = 5047u; + span7 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span7[index3] = 5047u; obj151.KillEnemyDataIds = list168; reference136 = obj151; obj150.Steps = list167; reference135 = obj150; - ref QuestSequence reference137 = ref span40[6]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span43 = CollectionsMarshal.AsSpan(list169); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.7943f, -5.5647316f, -542.8478f), 156) + index2 = 2; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.7943f, -5.5647316f, -542.8478f), 156) { Fly = true }; - span43[1] = new QuestStep(EInteractionType.Interact, 1013990u, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013990u, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156); obj152.Steps = list169; reference137 = obj152; - ref QuestSequence reference138 = ref span40[7]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 7 @@ -124721,34 +148729,42 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list170)[0]; + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + ref QuestStep reference139 = ref span3[index2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, null, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = 5043u; + index3 = 1; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + span7 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span7[num3] = 5043u; obj154.KillEnemyDataIds = list171; reference139 = obj154; obj153.Steps = list170; reference138 = obj153; - ref QuestSequence reference140 = ref span40[8]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1013994u, new Vector3(-402.36517f, -14.213073f, -502.06763f), 156) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013994u, new Vector3(-402.36517f, -14.213073f, -502.06763f), 156) { Fly = true }; obj155.Steps = list172; reference140 = obj155; - ref QuestSequence reference141 = ref span40[9]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -124756,7 +148772,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124771,21 +148789,26 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list174); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list174; - num = 4; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span44 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference142 = ref span44[0]; + index = 4; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span2 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124798,7 +148821,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list176; reference142 = obj157; - ref QuestSequence reference143 = ref span44[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -124806,28 +148830,34 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj158.Steps = list177; reference143 = obj158; - ref QuestSequence reference144 = ref span44[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) { StopDistance = 4f }; obj159.Steps = list178; reference144 = obj159; - ref QuestSequence reference145 = ref span44[3]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -124835,7 +148865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124850,21 +148882,26 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list180; - num = 5; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span45 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference146 = ref span45[0]; + index = 5; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124877,7 +148914,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list182; reference146 = obj161; - ref QuestSequence reference147 = ref span45[1]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -124885,22 +148923,27 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1013999u, new Vector3(33.89026f, -8.812927f, 126.17676f), 154) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013999u, new Vector3(33.89026f, -8.812927f, 126.17676f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj162.Steps = list183; reference147 = obj162; - ref QuestSequence reference148 = ref span45[2]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list184)[0]; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference149 = ref span3[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2005966u, new Vector3(163.53088f, -27.328918f, 207.84314f), 154) { Fly = true, @@ -124909,12 +148952,15 @@ public static class AssemblyQuestLoader num3 = 1; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = 5043u; + span7 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span7[index3] = 5043u; obj164.KillEnemyDataIds = list185; reference149 = obj164; obj163.Steps = list184; reference148 = obj163; - ref QuestSequence reference150 = ref span45[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 @@ -124922,21 +148968,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1014001u, new Vector3(404.89807f, -5.4588227f, 72.342896f), 154) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014001u, new Vector3(404.89807f, -5.4588227f, 72.342896f), 154) { Fly = true }; obj165.Steps = list186; reference150 = obj165; - ref QuestSequence reference151 = ref span45[4]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124951,13 +149002,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list188; - num = 7; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span46 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference152 = ref span46[0]; + index = 7; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -124965,7 +149019,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124978,27 +149034,31 @@ public static class AssemblyQuestLoader }; obj167.Steps = list190; reference152 = obj167; - ref QuestSequence reference153 = ref span46[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - Span span47 = CollectionsMarshal.AsSpan(list191); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(873.8737f, -3.1452856f, 352.47165f), 398) + index2 = 2; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(873.8737f, -3.1452856f, 352.47165f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span47[1] = new QuestStep(EInteractionType.Interact, 1014005u, new Vector3(-631.22f, 121.245285f, -652.39954f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014005u, new Vector3(-631.22f, 121.245285f, -652.39954f), 397) { Fly = true }; obj168.Steps = list191; reference153 = obj168; - ref QuestSequence reference154 = ref span46[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -125006,35 +149066,43 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list192)[0]; + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + ref QuestStep reference155 = ref span3[index2]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, 2005967u, new Vector3(-556.9696f, 116.68567f, -794.0032f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 4627u; + index3 = 1; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + span7 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span7[num3] = 4627u; obj170.KillEnemyDataIds = list193; reference155 = obj170; obj169.Steps = list192; reference154 = obj169; - ref QuestSequence reference156 = ref span46[3]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1014006u, new Vector3(-627.19165f, 121.248f, -648.5847f), 397) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014006u, new Vector3(-627.19165f, 121.248f, -648.5847f), 397) { Fly = true }; obj171.Steps = list194; reference156 = obj171; - ref QuestSequence reference157 = ref span46[4]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -125042,25 +149110,31 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1014007u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014007u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397); obj172.Steps = list195; reference157 = obj172; - ref QuestSequence reference158 = ref span46[5]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Emote, 1014010u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1014010u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397) { DelaySecondsAtStart = 1f, Emote = EEmote.Rally }; obj173.Steps = list196; reference158 = obj173; - ref QuestSequence reference159 = ref span46[6]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -125068,7 +149142,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -125083,21 +149159,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "plogon_enjoyer"; questRoot20.Author = list198; - num = 4; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span48 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference160 = ref span48[0]; + index = 4; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -125110,7 +149191,8 @@ public static class AssemblyQuestLoader }; obj175.Steps = list200; reference160 = obj175; - ref QuestSequence reference161 = ref span48[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -125118,7 +149200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list201)[0]; + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference162 = ref span3[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 1014012u, new Vector3(-142.1684f, 26.764246f, -357.50366f), 146) { Fly = true, @@ -125127,7 +149211,9 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice + Span span8 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span8[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK600_02031_Q1_000_000"), @@ -125137,18 +149223,22 @@ public static class AssemblyQuestLoader reference162 = obj177; obj176.Steps = list201; reference161 = obj176; - ref QuestSequence reference163 = ref span48[2]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014011u, new Vector3(-143.08392f, 26.654997f, -358.114f), 146); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014011u, new Vector3(-143.08392f, 26.654997f, -358.114f), 146); obj178.Steps = list203; reference163 = obj178; - ref QuestSequence reference164 = ref span48[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -125156,7 +149246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014112u, new Vector3(-149.34009f, 12.685881f, -260.91406f), 146) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014112u, new Vector3(-149.34009f, 12.685881f, -260.91406f), 146) { StopDistance = 4f, NextQuestId = new QuestId(2426) @@ -125170,21 +149262,26 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list205); + index = 0; + span[index] = "goatzone"; questRoot21.Author = list205; - num = 7; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span49 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference165 = ref span49[0]; + index = 7; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + span2 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list207)[0]; + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -125199,10 +149296,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 131; + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span4 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span4[num3] = 131; obj182.InTerritory = list208; skipConditions23.AetheryteShortcutIf = obj182; skipConditions23.AethernetShortcutIf = new SkipAetheryteCondition @@ -125213,7 +149312,8 @@ public static class AssemblyQuestLoader reference166 = obj181; obj180.Steps = list207; reference165 = obj180; - ref QuestSequence reference167 = ref span49[1]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -125221,7 +149321,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1014046u, new Vector3(38.223755f, 5.000002f, 404.28784f), 147) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014046u, new Vector3(38.223755f, 5.000002f, 404.28784f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog, SkipConditions = new SkipConditions @@ -125234,21 +149336,25 @@ public static class AssemblyQuestLoader }; obj183.Steps = list209; reference167 = obj183; - ref QuestSequence reference168 = ref span49[2]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147) { Fly = true }; obj184.Steps = list210; reference168 = obj184; - ref QuestSequence reference169 = ref span49[3]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 3 @@ -125256,7 +149362,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list211)[0]; + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + ref QuestStep reference170 = ref span3[index2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2005978u, new Vector3(1.5715942f, 21.316772f, 181.8722f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -125264,23 +149372,29 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 4686u; + span7 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span7[index3] = 4686u; obj186.KillEnemyDataIds = list212; reference170 = obj186; obj185.Steps = list211; reference169 = obj185; - ref QuestSequence reference171 = ref span49[4]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147); obj187.Steps = list213; reference171 = obj187; - ref QuestSequence reference172 = ref span49[5]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 5 @@ -125288,7 +149402,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list214)[0]; + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + ref QuestStep reference173 = ref span3[index2]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -125303,10 +149419,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 131; + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + span4 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span4[num3] = 131; obj190.InTerritory = list215; skipConditions24.AetheryteShortcutIf = obj190; skipConditions24.AethernetShortcutIf = new SkipAetheryteCondition @@ -125317,15 +149435,18 @@ public static class AssemblyQuestLoader reference173 = obj189; obj188.Steps = list214; reference172 = obj188; - ref QuestSequence reference174 = ref span49[6]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -125344,13 +149465,16 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "goatzone"; questRoot22.Author = list217; - num = 5; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span50 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference175 = ref span50[0]; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 0 @@ -125358,7 +149482,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list219)[0]; + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + ref QuestStep reference176 = ref span3[index2]; QuestStep obj193 = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { Fly = true, @@ -125377,7 +149503,9 @@ public static class AssemblyQuestLoader num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = 141; + span4 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span4[index3] = 141; obj194.InTerritory = list220; skipConditions25.AetheryteShortcutIf = obj194; skipConditions25.AethernetShortcutIf = new SkipAetheryteCondition @@ -125388,16 +149516,18 @@ public static class AssemblyQuestLoader reference176 = obj193; obj192.Steps = list219; reference175 = obj192; - ref QuestSequence reference177 = ref span50[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span51 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference178 = ref span51[0]; + index2 = 3; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference178 = ref span3[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1011237u, new Vector3(447.3181f, 212.53984f, 725.00183f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -125409,19 +149539,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span52 = CollectionsMarshal.AsSpan(list222); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj196.CompletionQuestVariablesFlags = list222; reference178 = obj196; - ref QuestStep reference179 = ref span51[1]; + num2++; + ref QuestStep reference179 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) { Fly = true @@ -125429,35 +149566,49 @@ public static class AssemblyQuestLoader num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span53 = CollectionsMarshal.AsSpan(list223); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj197.CompletionQuestVariablesFlags = list223; reference179 = obj197; - ref QuestStep reference180 = ref span51[2]; + num2++; + ref QuestStep reference180 = ref span3[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1011235u, new Vector3(522.54517f, 228.3512f, 723.5675f), 397) { Fly = true }; - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span54 = CollectionsMarshal.AsSpan(list224); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list224 = new List(index3); + CollectionsMarshal.SetCount(list224, index3); + span5 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list224; reference180 = obj198; obj195.Steps = list221; reference177 = obj195; - ref QuestSequence reference181 = ref span50[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -125465,22 +149616,26 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1014052u, new Vector3(458.12158f, 200.23763f, 658.0757f), 397) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014052u, new Vector3(458.12158f, 200.23763f, 658.0757f), 397) { Fly = true }; obj199.Steps = list225; reference181 = obj199; - ref QuestSequence reference182 = ref span50[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span55 = CollectionsMarshal.AsSpan(list226); - ref QuestStep reference183 = ref span55[0]; + index2 = 2; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference183 = ref span3[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(50.883884f, 124.41451f, 174.64914f), 397) { Fly = true, @@ -125489,26 +149644,36 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span56 = CollectionsMarshal.AsSpan(list227); - span56[0] = 5043u; - span56[1] = 4619u; + span7 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span7[index3] = 5043u; + index3++; + span7[index3] = 4619u; obj201.KillEnemyDataIds = list227; - num3 = 6; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span57 = CollectionsMarshal.AsSpan(list228); - span57[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + index3 = 6; + List list228 = new List(index3); + CollectionsMarshal.SetCount(list228, index3); + span5 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span5[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj201.CompletionQuestVariablesFlags = list228; reference183 = obj201; - span55[1] = new QuestStep(EInteractionType.Interact, 1014053u, new Vector3(48.966187f, 124.34676f, 175.73816f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014053u, new Vector3(48.966187f, 124.34676f, 175.73816f), 397); obj200.Steps = list226; reference182 = obj200; - ref QuestSequence reference184 = ref span50[4]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -125516,7 +149681,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2034) @@ -125530,27 +149697,33 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list230); + index = 0; + span[index] = "goatzone"; questRoot23.Author = list230; - num = 10; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span58 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference185 = ref span58[0]; + index = 10; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + span2 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj203.Steps = list232; reference185 = obj203; - ref QuestSequence reference186 = ref span58[1]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -125558,26 +149731,32 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) { Fly = true }; obj204.Steps = list233; reference186 = obj204; - ref QuestSequence reference187 = ref span58[2]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span59 = CollectionsMarshal.AsSpan(list234); - span59[0] = new QuestStep(EInteractionType.Interact, 2005983u, new Vector3(108.07959f, 129.41174f, -403.52484f), 397); - span59[1] = new QuestStep(EInteractionType.Interact, 2005980u, new Vector3(64.68298f, 128.61829f, -397.42126f), 397); + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005983u, new Vector3(108.07959f, 129.41174f, -403.52484f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005980u, new Vector3(64.68298f, 128.61829f, -397.42126f), 397); obj205.Steps = list234; reference187 = obj205; - ref QuestSequence reference188 = ref span58[3]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 3 @@ -125585,27 +149764,33 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) { Fly = true }; obj206.Steps = list235; reference188 = obj206; - ref QuestSequence reference189 = ref span58[4]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 2005981u, new Vector3(15.487854f, 106.09595f, -419.30273f), 397) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005981u, new Vector3(15.487854f, 106.09595f, -419.30273f), 397) { Fly = true }; obj207.Steps = list236; reference189 = obj207; - ref QuestSequence reference190 = ref span58[5]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 5 @@ -125613,22 +149798,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2005982u, new Vector3(-4.6845703f, 94.13281f, -506.15704f), 397) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005982u, new Vector3(-4.6845703f, 94.13281f, -506.15704f), 397) { Fly = true }; obj208.Steps = list237; reference190 = obj208; - ref QuestSequence reference191 = ref span58[6]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span60 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference192 = ref span60[0]; + index2 = 2; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference192 = ref span3[num2]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(-134.89986f, 88.67885f, -576.3159f), 397) { Fly = true, @@ -125637,26 +149826,36 @@ public static class AssemblyQuestLoader num3 = 2; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span61 = CollectionsMarshal.AsSpan(list239); - span61[0] = 4360u; - span61[1] = 4619u; + span7 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span7[index3] = 4360u; + index3++; + span7[index3] = 4619u; obj210.KillEnemyDataIds = list239; - num3 = 6; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span62 = CollectionsMarshal.AsSpan(list240); - span62[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = null; + index3 = 6; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + span5 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span5[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj210.CompletionQuestVariablesFlags = list240; reference192 = obj210; - span60[1] = new QuestStep(EInteractionType.Interact, 1014058u, new Vector3(-138.35364f, 88.59643f, -577.0504f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014058u, new Vector3(-138.35364f, 88.59643f, -577.0504f), 397); obj209.Steps = list238; reference191 = obj209; - ref QuestSequence reference193 = ref span58[7]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 7 @@ -125664,24 +149863,30 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014059u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014059u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397) { Fly = true }; obj211.Steps = list241; reference193 = obj211; - ref QuestSequence reference194 = ref span58[8]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1014064u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014064u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397); obj212.Steps = list242; reference194 = obj212; - ref QuestSequence reference195 = ref span58[9]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -125689,7 +149894,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2035) @@ -125703,27 +149910,33 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "goatzone"; questRoot24.Author = list244; - num = 5; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span63 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference196 = ref span63[0]; + index = 5; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + span2 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj214.Steps = list246; reference196 = obj214; - ref QuestSequence reference197 = ref span63[1]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -125731,28 +149944,34 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj215.Steps = list247; reference197 = obj215; - ref QuestSequence reference198 = ref span63[2]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1014067u, new Vector3(451.34656f, -24.978418f, -496.39127f), 398) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014067u, new Vector3(451.34656f, -24.978418f, -496.39127f), 398) { Fly = true }; obj216.Steps = list248; reference198 = obj216; - ref QuestSequence reference199 = ref span63[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 3 @@ -125760,18 +149979,23 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 2005986u, new Vector3(507.86584f, -21.927307f, -524.4374f), 398); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005986u, new Vector3(507.86584f, -21.927307f, -524.4374f), 398); obj217.Steps = list249; reference199 = obj217; - ref QuestSequence reference200 = ref span63[4]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -125793,13 +150017,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "goatzone"; questRoot25.Author = list251; - num = 10; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span64 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference201 = ref span64[0]; + index = 10; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + span2 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 @@ -125807,29 +150034,35 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj219.Steps = list253; reference201 = obj219; - ref QuestSequence reference202 = ref span64[1]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1014069u, new Vector3(460.5935f, 200.23763f, 658.56396f), 397) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014069u, new Vector3(460.5935f, 200.23763f, 658.56396f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj220.Steps = list254; reference202 = obj220; - ref QuestSequence reference203 = ref span64[2]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 2 @@ -125837,28 +150070,34 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) { Fly = true }; obj221.Steps = list255; reference203 = obj221; - ref QuestSequence reference204 = ref span64[3]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1014073u, new Vector3(-693.8125f, -109.83532f, 490.95898f), 401) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014073u, new Vector3(-693.8125f, -109.83532f, 490.95898f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj222.Steps = list256; reference204 = obj222; - ref QuestSequence reference205 = ref span64[4]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 @@ -125866,21 +150105,26 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1014075u, new Vector3(-272.17517f, -184.2003f, 736.0493f), 401) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014075u, new Vector3(-272.17517f, -184.2003f, 736.0493f), 401) { Fly = true }; obj223.Steps = list257; reference205 = obj223; - ref QuestSequence reference206 = ref span64[5]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list258)[0]; + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + ref QuestStep reference207 = ref span3[num2]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(-43.012157f, -176.80112f, 753.7885f), 401) { Fly = true, @@ -125889,14 +150133,17 @@ public static class AssemblyQuestLoader num3 = 2; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span65 = CollectionsMarshal.AsSpan(list259); - span65[0] = 5048u; - span65[1] = 5049u; + span7 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span7[index3] = 5048u; + index3++; + span7[index3] = 5049u; obj225.KillEnemyDataIds = list259; reference207 = obj225; obj224.Steps = list258; reference206 = obj224; - ref QuestSequence reference208 = ref span64[6]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 6 @@ -125904,34 +150151,42 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list260)[0]; + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(207.48586f, -176.39336f, 721.5167f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span66 = CollectionsMarshal.AsSpan(list261); - span66[0] = 4687u; - span66[1] = 4688u; + index3 = 2; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + span7 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span7[num3] = 4687u; + num3++; + span7[num3] = 4688u; obj227.KillEnemyDataIds = list261; reference209 = obj227; obj226.Steps = list260; reference208 = obj226; - ref QuestSequence reference210 = ref span64[7]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1014088u, new Vector3(200.42712f, -176.62952f, 737.0565f), 401); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014088u, new Vector3(200.42712f, -176.62952f, 737.0565f), 401); obj228.Steps = list262; reference210 = obj228; - ref QuestSequence reference211 = ref span64[8]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 8 @@ -125939,18 +150194,23 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1014089u, new Vector3(205.98145f, -176.69763f, 739.52844f), 401); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014089u, new Vector3(205.98145f, -176.69763f, 739.52844f), 401); obj229.Steps = list263; reference211 = obj229; - ref QuestSequence reference212 = ref span64[9]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015055u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015055u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2037) @@ -125964,13 +150224,16 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list265); + index = 0; + span[index] = "goatzone"; questRoot26.Author = list265; - num = 8; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span67 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference213 = ref span67[0]; + index = 8; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + span2 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -125978,27 +150241,33 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014092u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014092u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj231.Steps = list267; reference213 = obj231; - ref QuestSequence reference214 = ref span67[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1014094u, new Vector3(457.51123f, 200.23764f, 660.8834f), 397) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014094u, new Vector3(457.51123f, 200.23764f, 660.8834f), 397) { Fly = true }; obj232.Steps = list268; reference214 = obj232; - ref QuestSequence reference215 = ref span67[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -126006,28 +150275,34 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2005990u, new Vector3(51.865356f, 125.26123f, 179.85803f), 397) + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005990u, new Vector3(51.865356f, 125.26123f, 179.85803f), 397) { Fly = true }; obj233.Steps = list269; reference215 = obj233; - ref QuestSequence reference216 = ref span67[3]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1014096u, new Vector3(458.64026f, 200.23764f, 659.7848f), 397) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014096u, new Vector3(458.64026f, 200.23764f, 659.7848f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj234.Steps = list270; reference216 = obj234; - ref QuestSequence reference217 = ref span67[4]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -126035,24 +150310,30 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1014097u, new Vector3(452.90295f, 130.79962f, -850.1869f), 397) + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014097u, new Vector3(452.90295f, 130.79962f, -850.1869f), 397) { Fly = true }; obj235.Steps = list271; reference217 = obj235; - ref QuestSequence reference218 = ref span67[5]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014099u, new Vector3(457.20605f, 130.79962f, -848.6f), 397); + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014099u, new Vector3(457.20605f, 130.79962f, -848.6f), 397); obj236.Steps = list272; reference218 = obj236; - ref QuestSequence reference219 = ref span67[6]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -126060,21 +150341,26 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1014102u, new Vector3(454.5204f, 130.79962f, -850.2479f), 397) + span3 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014102u, new Vector3(454.5204f, 130.79962f, -850.2479f), 397) { StopDistance = 5f }; obj237.Steps = list273; reference219 = obj237; - ref QuestSequence reference220 = ref span67[7]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014103u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014103u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -126091,13 +150377,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -126105,7 +150394,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1014873u, new Vector3(101.57922f, 12.418198f, -117.60132f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -126123,22 +150414,27 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 419; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 419; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1014876u, new Vector3(5.783081f, -2.080677f, 45.395508f), 418) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014876u, new Vector3(5.783081f, -2.080677f, 45.395508f), 418) { AethernetShortcut = new AethernetShortcut { @@ -126148,7 +150444,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -126156,7 +150453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { NextQuestId = new QuestId(2054) }; @@ -126169,22 +150468,26 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 7; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 7; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - Span span3 = CollectionsMarshal.AsSpan(list9); - span3[0] = new QuestStep(EInteractionType.EquipItem, null, null, 418) + index2 = 3; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126208,11 +150511,14 @@ public static class AssemblyQuestLoader } } }; - span3[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 418); - span3[2] = new QuestStep(EInteractionType.AcceptQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418); + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 418); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418); obj6.Steps = list9; reference5 = obj6; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -126220,24 +150526,30 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1014879u, new Vector3(134.05042f, -20.020874f, 73.746826f), 418); + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014879u, new Vector3(134.05042f, -20.020874f, 73.746826f), 418); obj7.Steps = list10; reference6 = obj7; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1014880u, new Vector3(136.98022f, -20.020876f, 69.840576f), 418) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014880u, new Vector3(136.98022f, -20.020876f, 69.840576f), 418) { StopDistance = 7f }; obj8.Steps = list11; reference7 = obj8; - ref QuestSequence reference8 = ref span2[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -126245,26 +150557,32 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.94511f, -19.477406f, 53.021667f), 418) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.94511f, -19.477406f, 53.021667f), 418) { TargetTerritoryId = (ushort)419 }; - span4[1] = new QuestStep(EInteractionType.Interact, 1014882u, new Vector3(244.09851f, -13.7349415f, -95.50629f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014882u, new Vector3(244.09851f, -13.7349415f, -95.50629f), 419); obj9.Steps = list12; reference8 = obj9; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014883u, new Vector3(151.6289f, -9.190302f, -64.9577f), 419); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014883u, new Vector3(151.6289f, -9.190302f, -64.9577f), 419); obj10.Steps = list13; reference9 = obj10; - ref QuestSequence reference10 = ref span2[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 5 @@ -126272,23 +150590,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1014888u, new Vector3(40.390625f, 16.080097f, -85.9541f), 419); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014888u, new Vector3(40.390625f, 16.080097f, -85.9541f), 419); obj11.Steps = list14; reference10 = obj11; - ref QuestSequence reference11 = ref span2[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference12 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1014889u, new Vector3(43.381348f, 16.080097f, -86.045654f), 419); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK301_02054_Q1_000_115"), @@ -126306,13 +150631,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 9; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span5[0]; + index = 9; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -126320,7 +150648,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -126340,7 +150670,9 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK350_02055_Q1_000_002"), @@ -126350,21 +150682,25 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span5[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1014891u, new Vector3(-173.17468f, 27.899424f, -397.69592f), 146) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014891u, new Vector3(-173.17468f, 27.899424f, -397.69592f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -126372,33 +150708,40 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[3]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span6 = CollectionsMarshal.AsSpan(list23); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.55716f, 26.612217f, -320.62222f), 146) + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.55716f, 26.612217f, -320.62222f), 146) { Mount = true }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) { Fly = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span5[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 @@ -126406,34 +150749,42 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.UseItem, 2006291u, new Vector3(-389.12036f, 3.4332886f, -57.572388f), 146) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2006291u, new Vector3(-389.12036f, 3.4332886f, -57.572388f), 146) { ItemId = 2001812u }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span5[5]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list25)[0]; + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, 2006293u, new Vector3(-384.9088f, 6.088318f, -45.212524f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 4693u; + index3 = 1; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span6 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span6[num3] = 4693u; obj20.KillEnemyDataIds = list26; reference20 = obj20; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference21 = ref span5[6]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 6 @@ -126441,30 +150792,36 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146); obj21.Steps = list27; reference21 = obj21; - ref QuestSequence reference22 = ref span5[7]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span7 = CollectionsMarshal.AsSpan(list28); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) { Fly = true }; - span7[1] = new QuestStep(EInteractionType.Interact, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) { StopDistance = 1f, Fly = true }; obj22.Steps = list28; reference22 = obj22; - ref QuestSequence reference23 = ref span5[8]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -126472,7 +150829,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) { NextQuestId = new QuestId(2056) }; @@ -126485,21 +150844,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "liza"; questRoot4.Author = list30; - num = 10; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span8 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span8[0]; + index = 10; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126517,7 +150881,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span8[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -126525,22 +150890,27 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference26 = ref span8[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list34)[0]; + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, 2006295u, new Vector3(298.6648f, -11.7647705f, 159.96033f), 145) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -126548,14 +150918,17 @@ public static class AssemblyQuestLoader num3 = 2; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span9 = CollectionsMarshal.AsSpan(list35); - span9[0] = 4694u; - span9[1] = 4695u; + span6 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span6[index3] = 4694u; + index3++; + span6[index3] = 4695u; obj27.KillEnemyDataIds = list35; reference27 = obj27; obj26.Steps = list34; reference26 = obj26; - ref QuestSequence reference28 = ref span8[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -126563,26 +150936,33 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145); obj28.Steps = list36; reference28 = obj28; - ref QuestSequence reference29 = ref span8[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK400_02056_Q1_000_056"), @@ -126592,7 +150972,8 @@ public static class AssemblyQuestLoader reference30 = obj30; obj29.Steps = list37; reference29 = obj29; - ref QuestSequence reference31 = ref span8[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 5 @@ -126600,28 +150981,34 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014896u, new Vector3(-200.30524f, -28.35069f, 324.75757f), 145) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014896u, new Vector3(-200.30524f, -28.35069f, 324.75757f), 145) { StopDistance = 2f, Fly = true }; obj31.Steps = list39; reference31 = obj31; - ref QuestSequence reference32 = ref span8[6]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1015329u, new Vector3(-177.05048f, -31.365185f, 310.68884f), 145) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015329u, new Vector3(-177.05048f, -31.365185f, 310.68884f), 145) { StopDistance = 7f }; obj32.Steps = list40; reference32 = obj32; - ref QuestSequence reference33 = ref span8[7]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 7 @@ -126629,24 +151016,30 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj33.Steps = list41; reference33 = obj33; - ref QuestSequence reference34 = ref span8[8]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145); obj34.Steps = list42; reference34 = obj34; - ref QuestSequence reference35 = ref span8[9]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -126654,7 +151047,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) { NextQuestId = new QuestId(2057) }; @@ -126667,21 +151062,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot5.Author = list44; - num = 7; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span10 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference36 = ref span10[0]; + index = 7; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126699,7 +151099,8 @@ public static class AssemblyQuestLoader }; obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span10[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -126707,7 +151108,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list47)[0]; + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1014897u, new Vector3(168.74951f, 8.973653f, 583.85596f), 135) { Fly = true, @@ -126716,7 +151119,9 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK450_02057_Q1_000_025"), @@ -126726,21 +151131,25 @@ public static class AssemblyQuestLoader reference38 = obj38; obj37.Steps = list47; reference37 = obj37; - ref QuestSequence reference39 = ref span10[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014899u, new Vector3(-97.76465f, 2.9821281f, 713.06934f), 135) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014899u, new Vector3(-97.76465f, 2.9821281f, 713.06934f), 135) { Fly = true }; obj39.Steps = list49; reference39 = obj39; - ref QuestSequence reference40 = ref span10[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -126748,28 +151157,34 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1014900u, new Vector3(-110.88739f, 9.73618f, 672.7245f), 135) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014900u, new Vector3(-110.88739f, 9.73618f, 672.7245f), 135) { StopDistance = 5f }; obj40.Steps = list50; reference40 = obj40; - ref QuestSequence reference41 = ref span10[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014898u, new Vector3(162.005f, 8.973654f, 583.82544f), 135) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014898u, new Vector3(162.005f, 8.973654f, 583.82544f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj41.Steps = list51; reference41 = obj41; - ref QuestSequence reference42 = ref span10[5]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 @@ -126777,15 +151192,19 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list52)[0]; + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref QuestStep reference43 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) { Fly = true }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + span5 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK450_02057_Q2_000_111"), @@ -126795,15 +151214,18 @@ public static class AssemblyQuestLoader reference43 = obj43; obj42.Steps = list52; reference42 = obj42; - ref QuestSequence reference44 = ref span10[6]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) { NextQuestId = new QuestId(2058) }; @@ -126816,13 +151238,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot6.Author = list55; - num = 7; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span11 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference45 = ref span11[0]; + index = 7; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -126830,7 +151255,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126848,15 +151275,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list57; reference45 = obj45; - ref QuestSequence reference46 = ref span11[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Say, 2006305u, new Vector3(-94.95697f, 298.63428f, -212.66504f), 155) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 2006305u, new Vector3(-94.95697f, 298.63428f, -212.66504f), 155) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -126871,7 +151301,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list58; reference46 = obj46; - ref QuestSequence reference47 = ref span11[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -126879,21 +151310,26 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1015328u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015328u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) { Fly = true }; obj47.Steps = list59; reference47 = obj47; - ref QuestSequence reference48 = ref span11[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list60)[0]; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, 2006306u, new Vector3(-405.53906f, 274.70813f, 79.087524f), 155) { Fly = true, @@ -126902,15 +151338,19 @@ public static class AssemblyQuestLoader num3 = 3; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span12 = CollectionsMarshal.AsSpan(list61); - span12[0] = 4678u; - span12[1] = 4679u; - span12[2] = 4696u; + span6 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span6[index3] = 4678u; + index3++; + span6[index3] = 4679u; + index3++; + span6[index3] = 4696u; obj49.KillEnemyDataIds = list61; reference49 = obj49; obj48.Steps = list60; reference48 = obj48; - ref QuestSequence reference50 = ref span11[4]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -126918,24 +151358,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1014906u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014906u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) { Fly = true }; obj50.Steps = list62; reference50 = obj50; - ref QuestSequence reference51 = ref span11[5]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014907u, new Vector3(-314.6258f, 244.62024f, 32.272827f), 155); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014907u, new Vector3(-314.6258f, 244.62024f, 32.272827f), 155); obj51.Steps = list63; reference51 = obj51; - ref QuestSequence reference52 = ref span11[6]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -126943,7 +151389,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014908u, new Vector3(-431.26575f, 210.99998f, -251.20929f), 155); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014908u, new Vector3(-431.26575f, 210.99998f, -251.20929f), 155); obj52.Steps = list64; reference52 = obj52; questRoot6.QuestSequence = list56; @@ -126953,21 +151401,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot7.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span13 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference53 = ref span13[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014909u, new Vector3(-427.1153f, 211f, -267.26184f), 155) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014909u, new Vector3(-427.1153f, 211f, -267.26184f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -126981,7 +151434,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list67; reference53 = obj53; - ref QuestSequence reference54 = ref span13[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -126989,34 +151443,42 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list68)[0]; + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span14 = CollectionsMarshal.AsSpan(list69); - span14[0] = 4377u; - span14[1] = 4378u; + index3 = 2; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span6 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span6[num3] = 4377u; + num3++; + span6[num3] = 4378u; obj55.KillEnemyDataIds = list69; reference55 = obj55; obj54.Steps = list68; reference54 = obj54; - ref QuestSequence reference56 = ref span13[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155); obj56.Steps = list70; reference56 = obj56; - ref QuestSequence reference57 = ref span13[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -127024,7 +151486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127043,21 +151507,26 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; questRoot8.Author = list72; - num = 8; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span15 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference58 = ref span15[0]; + index = 8; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127075,7 +151544,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list74; reference58 = obj58; - ref QuestSequence reference59 = ref span15[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -127083,12 +151553,16 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list75)[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference60 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK520_02060_Q1_000_041"), @@ -127098,22 +151572,26 @@ public static class AssemblyQuestLoader reference60 = questStep2; obj59.Steps = list75; reference59 = obj59; - ref QuestSequence reference61 = ref span15[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1015034u, new Vector3(-634.69904f, -119.471756f, 476.24915f), 401) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015034u, new Vector3(-634.69904f, -119.471756f, 476.24915f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj60.Steps = list77; reference61 = obj60; - ref QuestSequence reference62 = ref span15[3]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -127121,16 +151599,20 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list78)[0]; + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + ref QuestStep reference63 = ref span3[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(-528.29944f, -165.42699f, 578.5855f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - ref ComplexCombatData reference64 = ref CollectionsMarshal.AsSpan(list79)[0]; + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span7 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + ref ComplexCombatData reference64 = ref span7[num3]; ComplexCombatData obj63 = new ComplexCombatData { DataId = 4812u, @@ -127139,34 +151621,44 @@ public static class AssemblyQuestLoader int num4 = 6; List list80 = new List(num4); CollectionsMarshal.SetCount(list80, num4); - Span span16 = CollectionsMarshal.AsSpan(list80); - span16[0] = null; - span16[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = null; + Span span8 = CollectionsMarshal.AsSpan(list80); + int num5 = 0; + span8[num5] = null; + num5++; + span8[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; + num5++; + span8[num5] = null; obj63.CompletionQuestVariablesFlags = list80; reference64 = obj63; obj62.ComplexCombatData = list79; reference63 = obj62; obj61.Steps = list78; reference62 = obj61; - ref QuestSequence reference65 = ref span15[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1015033u, new Vector3(571.8928f, -113.998665f, 326.74133f), 401) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015033u, new Vector3(571.8928f, -113.998665f, 326.74133f), 401) { Fly = true }; obj64.Steps = list81; reference65 = obj64; - ref QuestSequence reference66 = ref span15[5]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 @@ -127174,7 +151666,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list82)[0]; + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + ref QuestStep reference67 = ref span3[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2006342u, new Vector3(533.53174f, -100.14502f, 367.54407f), 401) { Fly = true, @@ -127183,29 +151677,36 @@ public static class AssemblyQuestLoader num3 = 3; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span17 = CollectionsMarshal.AsSpan(list83); - span17[0] = 4619u; - span17[1] = 5044u; - span17[2] = 5045u; + span6 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span6[index3] = 4619u; + index3++; + span6[index3] = 5044u; + index3++; + span6[index3] = 5045u; obj66.KillEnemyDataIds = list83; reference67 = obj66; obj65.Steps = list82; reference66 = obj65; - ref QuestSequence reference68 = ref span15[6]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1015036u, new Vector3(571.43494f, -113.94505f, 331.41064f), 401) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015036u, new Vector3(571.43494f, -113.94505f, 331.41064f), 401) { Fly = true }; obj67.Steps = list84; reference68 = obj67; - ref QuestSequence reference69 = ref span15[7]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -127213,7 +151714,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127232,21 +151735,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot9.Author = list86; - num = 9; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span18 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference70 = ref span18[0]; + index = 9; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127264,7 +151772,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list88; reference70 = obj69; - ref QuestSequence reference71 = ref span18[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -127272,25 +151781,31 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1015038u, new Vector3(210.49817f, 302.2458f, -166.888f), 155) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015038u, new Vector3(210.49817f, 302.2458f, -166.888f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj70.Steps = list89; reference71 = obj70; - ref QuestSequence reference72 = ref span18[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015039u, new Vector3(209.43005f, 302.2567f, -166.888f), 155); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015039u, new Vector3(209.43005f, 302.2567f, -166.888f), 155); obj71.Steps = list90; reference72 = obj71; - ref QuestSequence reference73 = ref span18[3]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -127298,18 +151813,23 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1015040u, new Vector3(221.94238f, 222.00142f, 320.9734f), 155); + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015040u, new Vector3(221.94238f, 222.00142f, 320.9734f), 155); obj72.Steps = list91; reference73 = obj72; - ref QuestSequence reference74 = ref span18[4]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -127320,7 +151840,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list92; reference74 = obj73; - ref QuestSequence reference75 = ref span18[5]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -127328,24 +151849,30 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1015043u, new Vector3(29.67871f, -7.8f, 89.61609f), 132) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015043u, new Vector3(29.67871f, -7.8f, 89.61609f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj74.Steps = list93; reference75 = obj74; - ref QuestSequence reference76 = ref span18[6]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1015432u, new Vector3(29.67871f, -7.8f, 89.61609f), 132); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015432u, new Vector3(29.67871f, -7.8f, 89.61609f), 132); obj75.Steps = list94; reference76 = obj75; - ref QuestSequence reference77 = ref span18[7]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 7 @@ -127353,21 +151880,26 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1015066u, new Vector3(47.440186f, -8.046949f, 110.73462f), 132) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015066u, new Vector3(47.440186f, -8.046949f, 110.73462f), 132) { StopDistance = 6f }; obj76.Steps = list95; reference77 = obj76; - ref QuestSequence reference78 = ref span18[8]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127386,13 +151918,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; questRoot10.Author = list97; - num = 7; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span19 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference79 = ref span19[0]; + index = 7; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -127400,7 +151935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127418,22 +151955,26 @@ public static class AssemblyQuestLoader }; obj78.Steps = list99; reference79 = obj78; - ref QuestSequence reference80 = ref span19[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj79.Steps = list100; reference80 = obj79; - ref QuestSequence reference81 = ref span19[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -127441,46 +151982,60 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1015044u, new Vector3(-282.1546f, 39.043068f, 46.036377f), 398); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015044u, new Vector3(-282.1546f, 39.043068f, 46.036377f), 398); obj80.Steps = list101; reference81 = obj80; - ref QuestSequence reference82 = ref span19[3]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span20 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference83 = ref span20[0]; + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 4685u; + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span6 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span6[num3] = 4685u; obj82.KillEnemyDataIds = list103; num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span21 = CollectionsMarshal.AsSpan(list104); - span21[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + span8 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span8[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj82.CompletionQuestVariablesFlags = list104; reference83 = obj82; - span20[1] = new QuestStep(EInteractionType.Interact, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398); obj81.Steps = list102; reference82 = obj81; - ref QuestSequence reference84 = ref span19[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 @@ -127488,7 +152043,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 7f, Fly = true, @@ -127496,22 +152053,26 @@ public static class AssemblyQuestLoader }; obj83.Steps = list105; reference84 = obj83; - ref QuestSequence reference85 = ref span19[5]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1015046u, new Vector3(-460.01373f, -9.639711f, -294.78906f), 398) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015046u, new Vector3(-460.01373f, -9.639711f, -294.78906f), 398) { StopDistance = 5f, Fly = true }; obj84.Steps = list106; reference85 = obj84; - ref QuestSequence reference86 = ref span19[6]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -127519,7 +152080,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127538,21 +152101,26 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot11.Author = list108; - num = 8; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span22 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference87 = ref span22[0]; + index = 8; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127570,7 +152138,8 @@ public static class AssemblyQuestLoader }; obj86.Steps = list110; reference87 = obj86; - ref QuestSequence reference88 = ref span22[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -127578,39 +152147,50 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj87.Steps = list111; reference88 = obj87; - ref QuestSequence reference89 = ref span22[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span23 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference90 = ref span23[0]; + index2 = 4; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 2006346u, new Vector3(429.9839f, -10.11676f, 708.1864f), 400) { Fly = true }; - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span24 = CollectionsMarshal.AsSpan(list113); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span8 = CollectionsMarshal.AsSpan(list113); + 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)8, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list113; reference90 = obj89; - ref QuestStep reference91 = ref span23[1]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 2006347u, new Vector3(346.48657f, 0.25933838f, 565.6061f), 400) { Fly = true @@ -127618,33 +152198,47 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span25 = CollectionsMarshal.AsSpan(list114); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list114); + 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); obj90.CompletionQuestVariablesFlags = list114; reference91 = obj90; - ref QuestStep reference92 = ref span23[2]; + num2++; + ref QuestStep reference92 = ref span3[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 2006348u, new Vector3(312.1842f, 17.868286f, 718.8982f), 400) { Fly = true }; - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span26 = CollectionsMarshal.AsSpan(list115); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + span8 = CollectionsMarshal.AsSpan(list115); + 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); obj91.CompletionQuestVariablesFlags = list115; reference92 = obj91; - ref QuestStep reference93 = ref span23[3]; + num2++; + ref QuestStep reference93 = ref span3[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2006349u, new Vector3(204.76074f, 4.7455444f, 736.3545f), 400) { Fly = true @@ -127652,18 +152246,25 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span27 = CollectionsMarshal.AsSpan(list116); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list116); + 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)1, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list116; reference93 = obj92; obj88.Steps = list112; reference89 = obj88; - ref QuestSequence reference94 = ref span22[3]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 @@ -127671,35 +152272,43 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj93.Steps = list117; reference94 = obj93; - ref QuestSequence reference95 = ref span22[4]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list118)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2006350u, new Vector3(173.84595f, -22.14087f, 160.7843f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 4675u; + index3 = 1; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + span6 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span6[num3] = 4675u; obj95.KillEnemyDataIds = list119; reference96 = obj95; obj94.Steps = list118; reference95 = obj94; - ref QuestSequence reference97 = ref span22[5]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 5 @@ -127707,24 +152316,30 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015049u, new Vector3(-158.80066f, -23.017008f, 282.12402f), 400) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015049u, new Vector3(-158.80066f, -23.017008f, 282.12402f), 400) { Fly = true }; obj96.Steps = list120; reference97 = obj96; - ref QuestSequence reference98 = ref span22[6]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1015050u, new Vector3(-158.1903f, -22.967546f, 275.83728f), 400); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015050u, new Vector3(-158.1903f, -22.967546f, 275.83728f), 400); obj97.Steps = list121; reference98 = obj97; - ref QuestSequence reference99 = ref span22[7]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -127732,7 +152347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127751,21 +152368,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot12.Author = list123; - num = 4; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span28 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference100 = ref span28[0]; + index = 4; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127783,7 +152405,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list125; reference100 = obj99; - ref QuestSequence reference101 = ref span28[1]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -127791,25 +152414,31 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); obj100.Steps = list126; reference101 = obj100; - ref QuestSequence reference102 = ref span28[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015052u, new Vector3(-347.5243f, 91.63155f, -558.8312f), 397) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015052u, new Vector3(-347.5243f, 91.63155f, -558.8312f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj101.Steps = list127; reference102 = obj101; - ref QuestSequence reference103 = ref span28[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -127817,7 +152446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list128)[0]; + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj103 = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -127830,7 +152461,9 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK600_02064_Q1_000_153"), @@ -127848,21 +152481,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot13.Author = list130; - num = 8; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span29 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference105 = ref span29[0]; + index = 8; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -127875,7 +152513,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list132; reference105 = obj104; - ref QuestSequence reference106 = ref span29[1]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -127883,7 +152522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -127894,21 +152535,25 @@ public static class AssemblyQuestLoader }; obj105.Steps = list133; reference106 = obj105; - ref QuestSequence reference107 = ref span29[2]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1014403u, new Vector3(69.443726f, 53.303707f, 198.59619f), 399) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014403u, new Vector3(69.443726f, 53.303707f, 198.59619f), 399) { Fly = true }; obj106.Steps = list134; reference107 = obj106; - ref QuestSequence reference108 = ref span29[3]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 @@ -127916,25 +152561,31 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.UseItem, 2006124u, new Vector3(-43.198303f, 100.8468f, -181.81128f), 399) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2006124u, new Vector3(-43.198303f, 100.8468f, -181.81128f), 399) { Fly = true, ItemId = 2001792u }; obj107.Steps = list135; reference108 = obj107; - ref QuestSequence reference109 = ref span29[4]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2006180u, new Vector3(-43.717102f, 101.48767f, -181.62811f), 399); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006180u, new Vector3(-43.717102f, 101.48767f, -181.62811f), 399); obj108.Steps = list136; reference109 = obj108; - ref QuestSequence reference110 = ref span29[5]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 @@ -127942,21 +152593,26 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1014404u, new Vector3(67.97888f, 53.343666f, 199.02332f), 399) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014404u, new Vector3(67.97888f, 53.343666f, 199.02332f), 399) { Fly = true }; obj109.Steps = list137; reference110 = obj109; - ref QuestSequence reference111 = ref span29[6]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -127965,7 +152621,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list138; reference111 = obj110; - ref QuestSequence reference112 = ref span29[7]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -127973,7 +152630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2091) @@ -127987,27 +152646,33 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "liza"; questRoot14.Author = list140; - num = 3; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span30 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference113 = ref span30[0]; + index = 3; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj112.Steps = list142; reference113 = obj112; - ref QuestSequence reference114 = ref span30[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -128015,7 +152680,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -128024,15 +152691,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list143; reference114 = obj113; - ref QuestSequence reference115 = ref span30[2]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2092) @@ -128046,13 +152716,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; questRoot15.Author = list145; - num = 3; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span31 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference116 = ref span31[0]; + index = 3; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -128060,21 +152733,26 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj115.Steps = list147; reference116 = obj115; - ref QuestSequence reference117 = ref span31[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -128083,7 +152761,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list148; reference117 = obj116; - ref QuestSequence reference118 = ref span31[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -128091,7 +152770,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2093) @@ -128105,27 +152786,33 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "liza"; questRoot16.Author = list150; - num = 3; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span32 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference119 = ref span32[0]; + index = 3; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f }; obj118.Steps = list152; reference119 = obj118; - ref QuestSequence reference120 = ref span32[1]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -128133,7 +152820,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -128142,31 +152831,36 @@ public static class AssemblyQuestLoader }; obj119.Steps = list153; reference120 = obj119; - ref QuestSequence reference121 = ref span32[2]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span33 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference122 = ref span33[0]; + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference122 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 2006431u, new Vector3(0f, -67f, 15.5f), 505) { TargetTerritoryId = (ushort)399 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 505; + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span4 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span4[num3] = 505; skipStepConditions.NotInTerritory = list155; skipConditions2.StepIf = skipStepConditions; obj121.SkipConditions = skipConditions2; reference122 = obj121; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399) { NextQuestId = new QuestId(2094) }; @@ -128179,13 +152873,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "liza"; questRoot17.Author = list156; - num = 3; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span34 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference123 = ref span34[0]; + index = 3; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -128193,24 +152890,30 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399); obj122.Steps = list158; reference123 = obj122; - ref QuestSequence reference124 = ref span34[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { Fly = true }; obj123.Steps = list159; reference124 = obj123; - ref QuestSequence reference125 = ref span34[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -128218,7 +152921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399) { NextQuestId = new QuestId(2249) }; @@ -128231,24 +152936,30 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot18.Author = list161; - num = 2; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span35 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference126 = ref span35[0]; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012161u, new Vector3(-54.429016f, 15.140585f, -38.101807f), 418); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012161u, new Vector3(-54.429016f, 15.140585f, -38.101807f), 418); obj125.Steps = list163; reference126 = obj125; - ref QuestSequence reference127 = ref span35[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -128256,7 +152967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -128271,24 +152984,30 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot19.Author = list165; - num = 2; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span36 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference128 = ref span36[0]; + index = 2; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156); obj127.Steps = list167; reference128 = obj127; - ref QuestSequence reference129 = ref span36[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -128296,7 +153015,9 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) { StopDistance = 1f, Fly = true, @@ -128312,21 +153033,26 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; questRoot20.Author = list169; - num = 2; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span37 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference130 = ref span37[0]; + index = 2; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -128339,7 +153065,8 @@ public static class AssemblyQuestLoader }; obj129.Steps = list171; reference130 = obj129; - ref QuestSequence reference131 = ref span37[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -128347,8 +153074,9 @@ public static class AssemblyQuestLoader num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span38 = CollectionsMarshal.AsSpan(list172); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-14.635355f, 206.49942f, 44.826305f), 478) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-14.635355f, 206.49942f, 44.826305f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -128359,7 +153087,8 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478); obj130.Steps = list172; reference131 = obj130; questRoot20.QuestSequence = list170; @@ -128373,13 +153102,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -128387,7 +153119,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -128405,29 +153139,35 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 133; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 133; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -128435,21 +153175,26 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1014018u, new Vector3(481.9867f, 5.4917006f, -838.52905f), 156) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014018u, new Vector3(481.9867f, 5.4917006f, -838.52905f), 156) { Fly = true }; obj5.Steps = list6; reference4 = obj5; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -128468,13 +153213,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -128482,7 +153230,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -128497,31 +153247,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = 133; + index3 = 1; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + span4 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span4[num3] = 133; obj9.InTerritory = list11; skipConditions2.AetheryteShortcutIf = obj9; obj8.SkipConditions = skipConditions2; reference7 = obj8; obj7.Steps = list10; reference6 = obj7; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj10.Steps = list12; reference8 = obj10; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -128529,63 +153285,88 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span3 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004506u, new Vector3(-416.64764f, -54.15f, 96.42175f), 145); num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span4 = CollectionsMarshal.AsSpan(list14); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list14; reference10 = questStep; - ref QuestStep reference11 = ref span3[1]; + index2++; + ref QuestStep reference11 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span5 = CollectionsMarshal.AsSpan(list15); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + span5 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list15; reference11 = questStep2; - ref QuestStep reference12 = ref span3[2]; + index2++; + ref QuestStep reference12 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004556u, new Vector3(-394.85773f, -57.30005f, 173.32715f), 145); num3 = 6; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list16; reference12 = questStep3; obj11.Steps = list13; reference9 = obj11; - ref QuestSequence reference13 = ref span2[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145); obj12.Steps = list17; reference13 = obj12; - ref QuestSequence reference14 = ref span2[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 4 @@ -128593,45 +153374,58 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference15 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.28932f, -36.84067f, 26.942286f), 145) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = 4777u; - span8[1] = 4778u; + index3 = 2; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span6 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span6[num3] = 4777u; + num3++; + span6[num3] = 4778u; obj14.KillEnemyDataIds = list19; num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + span5 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj14.CompletionQuestVariablesFlags = list20; reference15 = obj14; - span7[1] = new QuestStep(EInteractionType.Interact, 1014025u, new Vector3(-193.59125f, -36.83681f, 25.894531f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014025u, new Vector3(-193.59125f, -36.83681f, 25.894531f), 145); obj13.Steps = list18; reference14 = obj13; - ref QuestSequence reference16 = ref span2[5]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2102) @@ -128645,13 +153439,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot3.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span10 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference17 = ref span10[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -128659,7 +153456,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -128672,22 +153471,26 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference17 = obj16; - ref QuestSequence reference18 = ref span10[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj17.Steps = list25; reference18 = obj17; - ref QuestSequence reference19 = ref span10[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -128695,94 +153498,125 @@ public static class AssemblyQuestLoader num2 = 3; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span11 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference20 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2005969u, new Vector3(-4.5319824f, 27.695068f, -422.2019f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = 4781u; + index3 = 1; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + span6 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span6[num3] = 4781u; obj19.KillEnemyDataIds = list27; num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span12 = CollectionsMarshal.AsSpan(list28); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; - ref QuestStep reference21 = ref span11[1]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, 2005970u, new Vector3(-29.160034f, 27.42041f, -417.99042f), 141) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = 4781u; + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span6 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span6[num3] = 4781u; obj20.KillEnemyDataIds = list29; num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list30; reference21 = obj20; - ref QuestStep reference22 = ref span11[2]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2005971u, new Vector3(-11.6427f, 34.01233f, -458.60992f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = 4781u; - span14[1] = 4786u; + index3 = 2; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span6 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span6[num3] = 4781u; + num3++; + span6[num3] = 4786u; obj21.KillEnemyDataIds = list31; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list32; reference22 = obj21; obj18.Steps = list26; reference19 = obj18; - ref QuestSequence reference23 = ref span10[3]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) { Fly = true }; obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference24 = ref span10[4]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -128790,7 +153624,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2103) @@ -128804,21 +153640,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "liza"; questRoot4.Author = list35; - num = 6; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference25 = ref span16[0]; + index = 6; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -128831,7 +153672,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list37; reference25 = obj24; - ref QuestSequence reference26 = ref span16[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -128839,28 +153681,34 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014033u, new Vector3(47.16565f, 4f, 466.14783f), 147) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014033u, new Vector3(47.16565f, 4f, 466.14783f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj25.Steps = list38; reference26 = obj25; - ref QuestSequence reference27 = ref span16[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2005972u, new Vector3(-6.8513794f, 5.722107f, 290.8827f), 147) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005972u, new Vector3(-6.8513794f, 5.722107f, 290.8827f), 147) { StopDistance = 1f, Fly = true }; obj26.Steps = list39; reference27 = obj26; - ref QuestSequence reference28 = ref span16[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -128868,37 +153716,45 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list40)[0]; + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(13.795937f, 5.0408907f, 280.2135f), 147) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = 4787u; - span17[1] = 4788u; + index3 = 2; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + span6 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span6[num3] = 4787u; + num3++; + span6[num3] = 4788u; obj28.KillEnemyDataIds = list41; reference29 = obj28; obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference30 = ref span16[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014034u, new Vector3(13.687317f, 4.983316f, 284.38232f), 147) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014034u, new Vector3(13.687317f, 4.983316f, 284.38232f), 147) { StopDistance = 7f }; obj29.Steps = list42; reference30 = obj29; - ref QuestSequence reference31 = ref span16[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -128906,7 +153762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2104) @@ -128920,21 +153778,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot5.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span18 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference32 = ref span18[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -128947,7 +153810,8 @@ public static class AssemblyQuestLoader }; obj31.Steps = list46; reference32 = obj31; - ref QuestSequence reference33 = ref span18[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -128955,7 +153819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -128966,21 +153832,25 @@ public static class AssemblyQuestLoader }; obj32.Steps = list47; reference33 = obj32; - ref QuestSequence reference34 = ref span18[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj33.Steps = list48; reference34 = obj33; - ref QuestSequence reference35 = ref span18[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -128988,7 +153858,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) { AethernetShortcut = new AethernetShortcut { @@ -128998,15 +153870,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list49; reference35 = obj34; - ref QuestSequence reference36 = ref span18[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2105) @@ -129020,13 +153895,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; questRoot6.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference37 = ref span19[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -129034,7 +153912,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -129047,15 +153927,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list53; reference37 = obj36; - ref QuestSequence reference38 = ref span19[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014042u, new Vector3(277.11902f, 232.54102f, 760.1892f), 399) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014042u, new Vector3(277.11902f, 232.54102f, 760.1892f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -129066,7 +153949,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference38 = obj37; - ref QuestSequence reference39 = ref span19[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -129074,18 +153958,23 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1014045u, new Vector3(260.5172f, 232.54103f, 728.9081f), 399); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014045u, new Vector3(260.5172f, 232.54103f, 728.9081f), 399); obj38.Steps = list55; reference39 = obj38; - ref QuestSequence reference40 = ref span19[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014044u, new Vector3(264.515f, 232.54102f, 728.84717f), 399) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014044u, new Vector3(264.515f, 232.54102f, 728.84717f), 399) { StopDistance = 7f }; @@ -129098,12 +153987,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot7.Author = list57; - num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - ref QuestSequence reference41 = ref CollectionsMarshal.AsSpan(list58)[0]; + index = 1; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -129111,9 +154004,11 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span20 = CollectionsMarshal.AsSpan(list59); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.3453f, 15.140585f, -41.30522f), 418); - span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1011208u, new Vector3(-53.543945f, 15.195588f, -42.679565f), 418) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.3453f, 15.140585f, -41.30522f), 418); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011208u, new Vector3(-53.543945f, 15.195588f, -42.679565f), 418) { StopDistance = 7f }; @@ -129126,20 +154021,26 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list60; - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - ref QuestSequence reference42 = ref CollectionsMarshal.AsSpan(list61)[0]; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013715u, new Vector3(503.37976f, -48.989826f, 33.066284f), 398) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013715u, new Vector3(503.37976f, -48.989826f, 33.066284f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -129159,12 +154060,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "liza"; questRoot9.Author = list63; - num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - ref QuestSequence reference43 = ref CollectionsMarshal.AsSpan(list64)[0]; + index = 1; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -129172,7 +154077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list65)[0]; + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129192,7 +154099,9 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBMCH299_02109_Q1_000_000") @@ -129208,20 +154117,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "liza"; questRoot10.Author = list67; - num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - ref QuestSequence reference45 = ref CollectionsMarshal.AsSpan(list68)[0]; + index = 1; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list69)[0]; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1014873u, new Vector3(101.57922f, 12.418198f, -117.60132f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129236,17 +154151,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 419; + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + span4 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span4[num3] = 419; obj46.InTerritory = list70; skipConditions3.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions3; num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBDRK299_02110_Q1_000_005") @@ -129262,13 +154181,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list72; - num = 4; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span21 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference47 = ref span21[0]; + index = 4; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -129276,21 +154198,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); obj47.Steps = list74; reference47 = obj47; - ref QuestSequence reference48 = ref span21[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1013746u, new Vector3(-87.815735f, 87.188995f, -735.04236f), 397); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013746u, new Vector3(-87.815735f, 87.188995f, -735.04236f), 397); obj48.Steps = list75; reference48 = obj48; - ref QuestSequence reference49 = ref span21[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -129298,7 +154226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Duty, null, null, 397) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 397) { DutyOptions = new DutyOptions { @@ -129308,15 +154238,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list76; reference49 = obj49; - ref QuestSequence reference50 = ref span21[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); obj50.Steps = list77; reference50 = obj50; questRoot11.QuestSequence = list73; @@ -129326,13 +154259,16 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "liza"; questRoot12.Author = list78; - num = 2; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span22 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference51 = ref span22[0]; + index = 2; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span2 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -129340,7 +154276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list80)[0]; + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref QuestStep reference52 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.AcceptQuest, 1012217u, new Vector3(25.925049f, 15.8650675f, 19.394226f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129355,35 +154293,41 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = 419; + index3 = 1; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + span4 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span4[num3] = 419; obj53.InTerritory = list81; skipConditions4.AetheryteShortcutIf = obj53; obj52.SkipConditions = skipConditions4; reference52 = obj52; obj51.Steps = list80; reference51 = obj51; - ref QuestSequence reference53 = ref span22[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span23 = CollectionsMarshal.AsSpan(list82); - span23[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span23[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span23[2] = new QuestStep(EInteractionType.CompleteQuest, 2006287u, new Vector3(0.015197754f, -1.9990234f, -40.909485f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006287u, new Vector3(0.015197754f, -1.9990234f, -40.909485f), 351) { NextQuestId = new QuestId(2230) }; @@ -129396,13 +154340,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; questRoot13.Author = list83; - num = 7; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span24 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference54 = ref span24[0]; + index = 7; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -129410,8 +154357,9 @@ public static class AssemblyQuestLoader num2 = 3; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span25 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference55 = ref span25[0]; + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -129422,19 +154370,24 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 351; + span4 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span4[index3] = 351; skipStepConditions.InTerritory = list86; skipConditions5.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = 351; + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span4 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span4[num3] = 351; skipAetheryteCondition.InTerritory = list87; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; obj56.SkipConditions = skipConditions5; reference55 = obj56; - span25[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -129445,28 +154398,33 @@ public static class AssemblyQuestLoader } } }; - span25[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj55.Steps = list85; reference54 = obj55; - ref QuestSequence reference56 = ref span24[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj57.Steps = list88; reference56 = obj57; - ref QuestSequence reference57 = ref span24[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -129474,32 +154432,38 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1014623u, new Vector3(-808.8655f, -57.761612f, 159.5636f), 401) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014623u, new Vector3(-808.8655f, -57.761612f, 159.5636f), 401) { Fly = true }; obj58.Steps = list89; reference57 = obj58; - ref QuestSequence reference58 = ref span24[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span26 = CollectionsMarshal.AsSpan(list90); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(367.30618f, 141.31621f, 258.9364f), 401) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(367.30618f, 141.31621f, 258.9364f), 401) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.Interact, 2006288u, new Vector3(369.55823f, 143.17542f, 260.70032f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006288u, new Vector3(369.55823f, 143.17542f, 260.70032f), 401) { StopDistance = 4f }; obj59.Steps = list90; reference58 = obj59; - ref QuestSequence reference59 = ref span24[4]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -129507,7 +154471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -129516,22 +154482,26 @@ public static class AssemblyQuestLoader }; obj60.Steps = list91; reference59 = obj60; - ref QuestSequence reference60 = ref span24[5]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj61.Steps = list92; reference60 = obj61; - ref QuestSequence reference61 = ref span24[6]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -129539,17 +154509,20 @@ public static class AssemblyQuestLoader num2 = 3; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span27 = CollectionsMarshal.AsSpan(list93); - span27[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span27[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -129562,22 +154535,26 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "liza"; questRoot14.Author = list94; - num = 6; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span28 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference62 = ref span28[0]; + index = 6; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span29 = CollectionsMarshal.AsSpan(list96); - ref QuestStep reference63 = ref span29[0]; + index2 = 3; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -129588,19 +154565,24 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 351; + span4 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span4[index3] = 351; skipStepConditions2.InTerritory = list97; skipConditions6.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 351; + index3 = 1; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + span4 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span4[num3] = 351; skipAetheryteCondition2.InTerritory = list98; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition2; obj64.SkipConditions = skipConditions6; reference63 = obj64; - span29[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -129611,13 +154593,15 @@ public static class AssemblyQuestLoader } } }; - span29[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj63.Steps = list96; reference62 = obj63; - ref QuestSequence reference64 = ref span28[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -129625,35 +154609,41 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span30 = CollectionsMarshal.AsSpan(list99); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span30[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 4f }; obj65.Steps = list99; reference64 = obj65; - ref QuestSequence reference65 = ref span28[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span31 = CollectionsMarshal.AsSpan(list100); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.42062f, -112.936935f, 924.15704f), 398) + index2 = 2; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.42062f, -112.936935f, 924.15704f), 398) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.Interact, 2006289u, new Vector3(257.77063f, -111.92493f, 925.3832f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006289u, new Vector3(257.77063f, -111.92493f, 925.3832f), 398); obj66.Steps = list100; reference65 = obj66; - ref QuestSequence reference66 = ref span28[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -129661,7 +154651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -129670,27 +154662,31 @@ public static class AssemblyQuestLoader }; obj67.Steps = list101; reference66 = obj67; - ref QuestSequence reference67 = ref span28[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span32 = CollectionsMarshal.AsSpan(list102); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span32[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 4f }; obj68.Steps = list102; reference67 = obj68; - ref QuestSequence reference68 = ref span28[5]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -129698,17 +154694,20 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span33 = CollectionsMarshal.AsSpan(list103); - span33[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span33[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span33[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -129721,21 +154720,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; questRoot15.Author = list104; - num = 2; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span34 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference69 = ref span34[0]; + index = 2; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017083u, new Vector3(63.797974f, 207.28995f, -1.5107422f), 478) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017083u, new Vector3(63.797974f, 207.28995f, -1.5107422f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -129748,7 +154752,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list106; reference69 = obj70; - ref QuestSequence reference70 = ref span34[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -129756,7 +154761,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015599u, new Vector3(-205.79846f, 102.81167f, -580.0717f), 399) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015599u, new Vector3(-205.79846f, 102.81167f, -580.0717f), 399) { AethernetShortcut = new AethernetShortcut { @@ -129774,21 +154781,26 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot16.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span35 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference71 = ref span35[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012256u, new Vector3(86.96118f, 24f, 30.350098f), 418) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012256u, new Vector3(86.96118f, 24f, 30.350098f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -129806,7 +154818,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list110; reference71 = obj72; - ref QuestSequence reference72 = ref span35[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -129814,21 +154827,26 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f }; obj73.Steps = list111; reference72 = obj73; - ref QuestSequence reference73 = ref span35[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2120) }; @@ -129841,13 +154859,16 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; questRoot17.Author = list113; - num = 3; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span36 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference74 = ref span36[0]; + index = 3; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -129855,27 +154876,33 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012226u, new Vector3(71.732666f, 23.979126f, 20.85907f), 418) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012226u, new Vector3(71.732666f, 23.979126f, 20.85907f), 418) { StopDistance = 7f }; obj75.Steps = list115; reference74 = obj75; - ref QuestSequence reference75 = ref span36[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f }; obj76.Steps = list116; reference75 = obj76; - ref QuestSequence reference76 = ref span36[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -129883,7 +154910,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2121) }; @@ -129896,21 +154925,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot18.Author = list118; - num = 3; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span37 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference77 = ref span37[0]; + index = 3; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013721u, new Vector3(17.380005f, 205.38686f, 37.491333f), 478) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013721u, new Vector3(17.380005f, 205.38686f, 37.491333f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -129923,7 +154957,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list120; reference77 = obj78; - ref QuestSequence reference78 = ref span37[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -129931,7 +154966,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129943,15 +154980,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list121; reference78 = obj79; - ref QuestSequence reference79 = ref span37[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2122) }; @@ -129964,13 +155004,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot19.Author = list123; - num = 2; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span38 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference80 = ref span38[0]; + index = 2; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -129978,7 +155021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129992,15 +155037,18 @@ public static class AssemblyQuestLoader }; obj81.Steps = list125; reference80 = obj81; - ref QuestSequence reference81 = ref span38[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2936) }; @@ -130013,12 +155061,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "liza"; questRoot20.Author = list127; - num = 1; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - ref QuestSequence reference82 = ref CollectionsMarshal.AsSpan(list128)[0]; + index = 1; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -130026,7 +155078,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list129)[0]; + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference83 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -130045,20 +155099,24 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = 419; + span4 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span4[index3] = 419; obj85.InTerritory = list130; skipConditions7.AetheryteShortcutIf = obj85; obj84.SkipConditions = skipConditions7; - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span39 = CollectionsMarshal.AsSpan(list131); - span39[0] = new DialogueChoice + index3 = 2; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span7 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST299_02123_Q1_000_000") }; - span39[1] = new DialogueChoice + num3++; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST299_02123_Q2_000_000") @@ -130078,13 +155136,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "pot0to"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "pot0to"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -130092,7 +155153,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -130107,25 +155170,31 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 419; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 419; skipAetheryteCondition.InTerritory = list4; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1015926u, new Vector3(-114.00018f, -4.7349386f, -33.463074f), 419); + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015926u, new Vector3(-114.00018f, -4.7349386f, -33.463074f), 419); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -130133,7 +155202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1015931u, new Vector3(97.032104f, -22.000004f, 52.414673f), 418) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015931u, new Vector3(97.032104f, -22.000004f, 52.414673f), 418) { AethernetShortcut = new AethernetShortcut { @@ -130143,15 +155214,18 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AethernetShortcut = new AethernetShortcut { @@ -130169,13 +155243,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "pot0to"; questRoot2.Author = list8; - num = 7; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 7; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -130183,7 +155260,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.AcceptQuest, 1015932u, new Vector3(-250.81262f, -20.03492f, -89.982544f), 419) { StopDistance = 5f, @@ -130196,25 +155275,30 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = 419; + index3 = 1; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + span4 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span4[num3] = 419; skipAetheryteCondition2.InTerritory = list11; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj7.SkipConditions = skipConditions2; reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -130225,7 +155309,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -130233,21 +155318,27 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1015933u, new Vector3(-7.950012f, 0.024999563f, -8.224609f), 427); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015933u, new Vector3(-7.950012f, 0.024999563f, -8.224609f), 427); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1015935u, new Vector3(5.1116943f, 0.22499955f, 4.0131226f), 427); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015935u, new Vector3(5.1116943f, 0.22499955f, 4.0131226f), 427); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -130255,7 +155346,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1015936u, new Vector3(69.90149f, 23.979128f, -48.722107f), 418) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015936u, new Vector3(69.90149f, 23.979128f, -48.722107f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -130266,16 +155359,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span2[5]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span3 = CollectionsMarshal.AsSpan(list16); - span3[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 2; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -130284,10 +155379,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span3[1] = new QuestStep(EInteractionType.Interact, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span2[6]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -130295,7 +155392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427) { NextQuestId = new QuestId(2154) }; @@ -130308,22 +155407,26 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "pot0to"; questRoot3.Author = list18; - num = 6; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span4 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span4[0]; + index = 6; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -130339,24 +155442,30 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = 427; + span4 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span4[index3] = 427; skipStepConditions.InTerritory = list21; skipConditions3.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = 419; - span6[1] = 427; + index3 = 2; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = 419; + num3++; + span4[num3] = 427; skipAetheryteCondition3.InTerritory = list22; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj15.SkipConditions = skipConditions3; reference15 = obj15; - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference16 = ref span4[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -130364,26 +155473,32 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span7 = CollectionsMarshal.AsSpan(list23); - span7[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) { TargetTerritoryId = (ushort)419 }; - span7[1] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419); obj16.Steps = list23; reference16 = obj16; - ref QuestSequence reference17 = ref span4[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1015941u, new Vector3(-175.34143f, 15.063141f, -171.09949f), 419); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015941u, new Vector3(-175.34143f, 15.063141f, -171.09949f), 419); obj17.Steps = list24; reference17 = obj17; - ref QuestSequence reference18 = ref span4[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -130391,32 +155506,39 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span8[1] = new QuestStep(EInteractionType.Interact, 1015944u, new Vector3(6.94281f, 0.22499956f, 7.4310913f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015944u, new Vector3(6.94281f, 0.22499956f, 7.4310913f), 427); obj18.Steps = list25; reference18 = obj18; - ref QuestSequence reference19 = ref span4[4]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 3; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1015949u, new Vector3(-62.180542f, -4.734931f, -36.514893f), 419); - span9[2] = new QuestStep(EInteractionType.Interact, 1015947u, new Vector3(-228.99219f, -20.034918f, -77.073364f), 419); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015949u, new Vector3(-62.180542f, -4.734931f, -36.514893f), 419); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015947u, new Vector3(-228.99219f, -20.034918f, -77.073364f), 419); obj19.Steps = list26; reference19 = obj19; - ref QuestSequence reference20 = ref span4[5]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -130424,8 +155546,9 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -130434,7 +155557,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427) { NextQuestId = new QuestId(2155) }; @@ -130447,22 +155571,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "pot0to"; questRoot4.Author = list28; - num = 10; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference21 = ref span11[0]; + index = 10; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span12 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference22 = ref span12[0]; + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference22 = ref span3[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -130478,24 +155606,30 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 427; + span4 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span4[index3] = 427; skipStepConditions2.InTerritory = list31; skipConditions4.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span13 = CollectionsMarshal.AsSpan(list32); - span13[0] = 419; - span13[1] = 427; + index3 = 2; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span4 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span4[num3] = 419; + num3++; + span4[num3] = 427; skipAetheryteCondition4.InTerritory = list32; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj22.SkipConditions = skipConditions4; reference22 = obj22; - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427); obj21.Steps = list30; reference21 = obj21; - ref QuestSequence reference23 = ref span11[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 @@ -130503,26 +155637,32 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span14 = CollectionsMarshal.AsSpan(list33); - span14[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) { TargetTerritoryId = (ushort)419 }; - span14[1] = new QuestStep(EInteractionType.Interact, 1015965u, new Vector3(-31.631958f, 15.965061f, -66.941345f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015965u, new Vector3(-31.631958f, 15.965061f, -66.941345f), 419); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span11[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1015975u, new Vector3(-63.98114f, -4.734931f, -36.14868f), 419); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015975u, new Vector3(-63.98114f, -4.734931f, -36.14868f), 419); obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span11[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -130530,23 +155670,29 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span15 = CollectionsMarshal.AsSpan(list35); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.249258f, -13.663432f, -64.45602f), 419); - span15[1] = new QuestStep(EInteractionType.Interact, 1015968u, new Vector3(-41.001038f, 19.008322f, -31.296265f), 418); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.249258f, -13.663432f, -64.45602f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015968u, new Vector3(-41.001038f, 19.008322f, -31.296265f), 418); obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span11[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1015972u, new Vector3(-41.73346f, 19.008322f, -31.845642f), 418); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015972u, new Vector3(-41.73346f, 19.008322f, -31.845642f), 418); obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span11[5]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 5 @@ -130554,22 +155700,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1015973u, new Vector3(782.62f, 216.88771f, 222.9801f), 397) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015973u, new Vector3(782.62f, 216.88771f, 222.9801f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span11[6]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list38)[0]; + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference29 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 2006603u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -130577,12 +155728,15 @@ public static class AssemblyQuestLoader num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = 4676u; + Span span5 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span5[index3] = 4676u; obj29.KillEnemyDataIds = list39; reference29 = obj29; obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference30 = ref span11[7]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 7 @@ -130590,24 +155744,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2006617u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006617u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397); obj30.Steps = list40; reference30 = obj30; - ref QuestSequence reference31 = ref span11[8]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1015970u, new Vector3(-37.82715f, 19.008322f, -28.976868f), 418) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015970u, new Vector3(-37.82715f, 19.008322f, -28.976868f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj31.Steps = list41; reference31 = obj31; - ref QuestSequence reference32 = ref span11[9]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -130615,7 +155775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -130633,27 +155795,33 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list43; - num = 5; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span16 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span16[0]; + index = 5; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 5f }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span16[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -130661,7 +155829,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -130670,10 +155840,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span6 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNB101_02156_SCENE00010_EVENTAREA_WARP_YESNO_TITLE") @@ -130682,21 +155854,25 @@ public static class AssemblyQuestLoader reference35 = obj35; obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference36 = ref span16[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) { StopDistance = 5f }; obj36.Steps = list48; reference36 = obj36; - ref QuestSequence reference37 = ref span16[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 @@ -130704,18 +155880,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1012326u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012326u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span16[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418); obj38.Steps = list50; reference38 = obj38; questRoot5.QuestSequence = list44; @@ -130725,13 +155906,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span17 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference39 = ref span17[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -130739,7 +155923,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015979u, new Vector3(112.53516f, 24.391697f, -2.8840332f), 418) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015979u, new Vector3(112.53516f, 24.391697f, -2.8840332f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -130753,22 +155939,26 @@ public static class AssemblyQuestLoader }; obj39.Steps = list53; reference39 = obj39; - ref QuestSequence reference40 = ref span17[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1015980u, new Vector3(632.1659f, -54.909866f, 71.854614f), 398) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015980u, new Vector3(632.1659f, -54.909866f, 71.854614f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span17[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -130776,7 +155966,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -130784,15 +155976,18 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference42 = ref span17[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398); obj42.Steps = list56; reference42 = obj42; questRoot6.QuestSequence = list52; @@ -130802,13 +155997,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span18 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference43 = ref span18[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -130816,7 +156014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, SkipConditions = new SkipConditions @@ -130829,21 +156029,25 @@ public static class AssemblyQuestLoader }; obj43.Steps = list59; reference43 = obj43; - ref QuestSequence reference44 = ref span18[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1015987u, new Vector3(42.252197f, 205.32579f, 19.546753f), 478) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1015987u, new Vector3(42.252197f, 205.32579f, 19.546753f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj44.Steps = list60; reference44 = obj44; - ref QuestSequence reference45 = ref span18[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -130851,18 +156055,23 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2006605u, new Vector3(101.182495f, 206.71387f, 111.34509f), 478); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006605u, new Vector3(101.182495f, 206.71387f, 111.34509f), 478); obj45.Steps = list61; reference45 = obj45; - ref QuestSequence reference46 = ref span18[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399) { Fly = true }; @@ -130875,13 +156084,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list63; - num = 6; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span19 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference47 = ref span19[0]; + index = 6; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -130889,24 +156101,30 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399); obj47.Steps = list65; reference47 = obj47; - ref QuestSequence reference48 = ref span19[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; obj48.Steps = list66; reference48 = obj48; - ref QuestSequence reference49 = ref span19[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -130914,27 +156132,34 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1012405u, new Vector3(587.7927f, -50.623985f, 70.725464f), 398) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012405u, new Vector3(587.7927f, -50.623985f, 70.725464f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj49.Steps = list67; reference49 = obj49; - ref QuestSequence reference50 = ref span19[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span20 = CollectionsMarshal.AsSpan(list68); - span20[0] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398); - span20[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); - span20[2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + index2 = 3; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj50.Steps = list68; reference50 = obj50; - ref QuestSequence reference51 = ref span19[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -130942,18 +156167,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1015994u, new Vector3(470.38977f, -51.141403f, 38.651123f), 398); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015994u, new Vector3(470.38977f, -51.141403f, 38.651123f), 398); obj51.Steps = list69; reference51 = obj51; - ref QuestSequence reference52 = ref span19[5]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006610u, new Vector3(191.79065f, -54.154297f, -235.95032f), 398) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006610u, new Vector3(191.79065f, -54.154297f, -235.95032f), 398) { Fly = true }; @@ -130966,13 +156196,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span21 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span21[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -130980,24 +156213,30 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015998u, new Vector3(192.43152f, -54.189243f, -234.3634f), 398); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015998u, new Vector3(192.43152f, -54.189243f, -234.3634f), 398); obj53.Steps = list73; reference53 = obj53; - ref QuestSequence reference54 = ref span21[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj54.Steps = list74; reference54 = obj54; - ref QuestSequence reference55 = ref span21[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -131005,7 +156244,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, null, new Vector3(173.8547f, -108.97817f, 600.48395f), 398) { Fly = true, @@ -131014,28 +156255,34 @@ public static class AssemblyQuestLoader num3 = 2; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span22 = CollectionsMarshal.AsSpan(list76); - span22[0] = 4365u; - span22[1] = 4364u; + span5 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span5[index3] = 4365u; + index3++; + span5[index3] = 4364u; obj56.KillEnemyDataIds = list76; reference56 = obj56; obj55.Steps = list75; reference55 = obj55; - ref QuestSequence reference57 = ref span21[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 2006607u, new Vector3(207.75159f, -105.42462f, 596.765f), 398) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006607u, new Vector3(207.75159f, -105.42462f, 596.765f), 398) { Fly = true }; obj57.Steps = list77; reference57 = obj57; - ref QuestSequence reference58 = ref span21[4]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -131043,7 +156290,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016002u, new Vector3(225.11633f, -116.6398f, 504.72266f), 398); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016002u, new Vector3(225.11633f, -116.6398f, 504.72266f), 398); obj58.Steps = list78; reference58 = obj58; questRoot9.QuestSequence = list72; @@ -131053,24 +156302,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list79; - num = 4; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span23 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference59 = ref span23[0]; + index = 4; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016000u, new Vector3(222.49182f, -116.93088f, 504.08167f), 398); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016000u, new Vector3(222.49182f, -116.93088f, 504.08167f), 398); obj59.Steps = list81; reference59 = obj59; - ref QuestSequence reference60 = ref span23[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -131078,7 +156333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -131086,21 +156343,25 @@ public static class AssemblyQuestLoader }; obj60.Steps = list82; reference60 = obj60; - ref QuestSequence reference61 = ref span23[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj61.Steps = list83; reference61 = obj61; - ref QuestSequence reference62 = ref span23[3]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -131108,7 +156369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418); obj62.Steps = list84; reference62 = obj62; questRoot10.QuestSequence = list80; @@ -131118,21 +156381,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list85; - num = 6; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span24 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference63 = ref span24[0]; + index = 6; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -131145,7 +156413,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list87; reference63 = obj63; - ref QuestSequence reference64 = ref span24[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -131153,7 +156422,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1012384u, new Vector3(-182.66577f, -12.534915f, -39.871887f), 419) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012384u, new Vector3(-182.66577f, -12.534915f, -39.871887f), 419) { AethernetShortcut = new AethernetShortcut { @@ -131163,16 +156434,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list88; reference64 = obj64; - ref QuestSequence reference65 = ref span24[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span25 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference66 = ref span25[0]; + index2 = 3; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1016018u, new Vector3(26.16919f, 27.964573f, -146.71558f), 419) { AethernetShortcut = new AethernetShortcut @@ -131181,49 +156454,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span26 = CollectionsMarshal.AsSpan(list90); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span7 = CollectionsMarshal.AsSpan(list90); + 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); obj66.CompletionQuestVariablesFlags = list90; reference66 = obj66; - ref QuestStep reference67 = ref span25[1]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1016020u, new Vector3(-3.3112793f, 27.753849f, -148.4856f), 419); num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span27 = CollectionsMarshal.AsSpan(list91); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list91; reference67 = questStep; - ref QuestStep reference68 = ref span25[2]; + num2++; + ref QuestStep reference68 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1016015u, new Vector3(-7.827942f, 26.965073f, -106.6759f), 419); - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span28 = CollectionsMarshal.AsSpan(list92); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + span7 = CollectionsMarshal.AsSpan(list92); + 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); questStep2.CompletionQuestVariablesFlags = list92; reference68 = questStep2; obj65.Steps = list89; reference65 = obj65; - ref QuestSequence reference69 = ref span24[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -131231,18 +156525,23 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1016028u, new Vector3(59.861084f, -4.734944f, -41.61145f), 419); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016028u, new Vector3(59.861084f, -4.734944f, -41.61145f), 419); obj67.Steps = list93; reference69 = obj67; - ref QuestSequence reference70 = ref span24[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1016031u, new Vector3(14.5112915f, -12.020877f, 37.03357f), 418) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016031u, new Vector3(14.5112915f, -12.020877f, 37.03357f), 418) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -131253,7 +156552,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list94; reference70 = obj68; - ref QuestSequence reference71 = ref span24[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -131261,7 +156561,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AethernetShortcut = new AethernetShortcut { @@ -131278,21 +156580,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span29 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference72 = ref span29[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -131305,7 +156612,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list98; reference72 = obj70; - ref QuestSequence reference73 = ref span29[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -131313,7 +156621,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016034u, new Vector3(-182.39111f, -0.23098835f, -70.72565f), 419) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016034u, new Vector3(-182.39111f, -0.23098835f, -70.72565f), 419) { AethernetShortcut = new AethernetShortcut { @@ -131327,25 +156637,30 @@ public static class AssemblyQuestLoader }; obj71.Steps = list99; reference73 = obj71; - span29[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference74 = ref span29[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1016049u, new Vector3(-3.0975952f, 27.79051f, -140.36774f), 419) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016049u, new Vector3(-3.0975952f, 27.79051f, -140.36774f), 419) { StopDistance = 7f }; obj72.Steps = list100; reference74 = obj72; - ref QuestSequence reference75 = ref span29[4]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -131353,12 +156668,14 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span30 = CollectionsMarshal.AsSpan(list101); - span30[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433 }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1016050u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016050u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; @@ -131371,24 +156688,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot13.Author = list102; - num = 8; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span31 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference76 = ref span31[0]; + index = 8; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); obj74.Steps = list104; reference76 = obj74; - ref QuestSequence reference77 = ref span31[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -131396,22 +156719,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2006621u, new Vector3(-428.27502f, 201.34265f, -229.05322f), 401) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006621u, new Vector3(-428.27502f, 201.34265f, -229.05322f), 401) { StopDistance = 0.5f, Fly = true }; obj75.Steps = list105; reference77 = obj75; - ref QuestSequence reference78 = ref span31[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.762f, 168.23676f, -215.835f), 401) { StopDistance = 5f, @@ -131420,14 +156748,17 @@ public static class AssemblyQuestLoader num3 = 2; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span32 = CollectionsMarshal.AsSpan(list107); - span32[0] = 5232u; - span32[1] = 5233u; + span5 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span5[index3] = 5232u; + index3++; + span5[index3] = 5233u; obj77.KillEnemyDataIds = list107; reference79 = obj77; obj76.Steps = list106; reference78 = obj76; - ref QuestSequence reference80 = ref span31[3]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 3 @@ -131435,25 +156766,31 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1016150u, new Vector3(-429.52625f, 167.9683f, -224.445f), 401); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016150u, new Vector3(-429.52625f, 167.9683f, -224.445f), 401); obj78.Steps = list108; reference80 = obj78; - ref QuestSequence reference81 = ref span31[4]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference82 = ref span31[5]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 5 @@ -131461,40 +156798,51 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; obj80.Steps = list110; reference82 = obj80; - ref QuestSequence reference83 = ref span31[6]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span33 = CollectionsMarshal.AsSpan(list111); - ref QuestStep reference84 = ref span33[0]; + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 1016158u, new Vector3(-779.263f, -117.906494f, -393.54547f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span34 = CollectionsMarshal.AsSpan(list112); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span7 = CollectionsMarshal.AsSpan(list112); + 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); obj82.CompletionQuestVariablesFlags = list112; reference84 = obj82; - ref QuestStep reference85 = ref span33[1]; + num2++; + ref QuestStep reference85 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Action, 1016157u, new Vector3(-813.2906f, -110.49066f, -434.1955f), 401) { Fly = true, @@ -131503,36 +156851,50 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span35 = CollectionsMarshal.AsSpan(list113); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list113; reference85 = obj83; - ref QuestStep reference86 = ref span33[2]; + num2++; + ref QuestStep reference86 = ref span3[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Action, 1016156u, new Vector3(-860.59357f, -122.91144f, -378.34747f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span36 = CollectionsMarshal.AsSpan(list114); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span7 = CollectionsMarshal.AsSpan(list114); + 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); obj84.CompletionQuestVariablesFlags = list114; reference86 = obj84; obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference87 = ref span31[7]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -131540,13 +156902,15 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span37 = CollectionsMarshal.AsSpan(list115); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { StopDistance = 2f, Fly = true }; - ref QuestStep reference88 = ref span37[1]; + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Mount = false @@ -131554,7 +156918,9 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANVAN001_02164_SYSYTEM_Q1_000_110"), @@ -131571,21 +156937,26 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "Censored"; questRoot14.Author = list117; - num = 8; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span38 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference89 = ref span38[0]; + index = 8; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -131604,7 +156975,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span38[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -131612,28 +156984,34 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span38[2]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1016161u, new Vector3(108.04907f, -147.83774f, 495.1704f), 401) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016161u, new Vector3(108.04907f, -147.83774f, 495.1704f), 401) { Fly = true }; obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span38[3]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -131641,36 +157019,44 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) { Fly = true }; obj90.Steps = list122; reference92 = obj90; - ref QuestSequence reference93 = ref span38[4]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list123)[0]; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(120.88076f, -93.90284f, 481.25824f), 401) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span39 = CollectionsMarshal.AsSpan(list124); - span39[0] = 5232u; - span39[1] = 5233u; + index3 = 2; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span5 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span5[num3] = 5232u; + num3++; + span5[num3] = 5233u; obj92.KillEnemyDataIds = list124; reference94 = obj92; obj91.Steps = list123; reference93 = obj91; - ref QuestSequence reference95 = ref span38[5]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 5 @@ -131678,25 +157064,31 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1016463u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016463u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401); obj93.Steps = list125; reference95 = obj93; - ref QuestSequence reference96 = ref span38[6]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj94.Steps = list126; reference96 = obj94; - ref QuestSequence reference97 = ref span38[7]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -131704,7 +157096,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -131717,24 +157111,30 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "AnimaMachinae"; questRoot15.Author = list128; - num = 7; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span40 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference98 = ref span40[0]; + index = 7; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj96.Steps = list130; reference98 = obj96; - ref QuestSequence reference99 = ref span40[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -131742,27 +157142,31 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span41 = CollectionsMarshal.AsSpan(list131); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.3409f, -129.17549f, -409.1912f), 401) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.3409f, -129.17549f, -409.1912f), 401) { Fly = true }; - span41[1] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Fly = true }; obj97.Steps = list131; reference99 = obj97; - ref QuestSequence reference100 = ref span40[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span42 = CollectionsMarshal.AsSpan(list132); - ref QuestStep reference101 = ref span42[0]; + index2 = 5; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 2006627u, new Vector3(583.52014f, -126.81775f, 268.0857f), 401) { ItemId = 2001901u @@ -131770,34 +157174,48 @@ public static class AssemblyQuestLoader num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list133; reference101 = obj99; - ref QuestStep reference102 = ref span42[1]; + num2++; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.UseItem, 2006628u, new Vector3(632.95935f, -111.680786f, 157.85449f), 401) { Fly = true, ItemId = 2001901u }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span44 = CollectionsMarshal.AsSpan(list134); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + span7 = CollectionsMarshal.AsSpan(list134); + 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); obj100.CompletionQuestVariablesFlags = list134; reference102 = obj100; - ref QuestStep reference103 = ref span42[2]; + num2++; + ref QuestStep reference103 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.UseItem, 2006629u, new Vector3(688.5939f, -95.99457f, 101.27405f), 401) { Fly = true, @@ -131806,34 +157224,48 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span45 = CollectionsMarshal.AsSpan(list135); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list135; reference103 = obj101; - ref QuestStep reference104 = ref span42[3]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj102 = new QuestStep(EInteractionType.UseItem, 2006630u, new Vector3(709.86475f, -85.19116f, 29.892456f), 401) { Fly = true, ItemId = 2001901u }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span46 = CollectionsMarshal.AsSpan(list136); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span7 = CollectionsMarshal.AsSpan(list136); + 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)1, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list136; reference104 = obj102; - ref QuestStep reference105 = ref span42[4]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep obj103 = new QuestStep(EInteractionType.UseItem, 2006631u, new Vector3(722.8656f, -65.84277f, -57.938538f), 401) { Fly = true, @@ -131842,18 +157274,25 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span47 = CollectionsMarshal.AsSpan(list137); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list137; reference105 = obj103; obj98.Steps = list132; reference100 = obj98; - ref QuestSequence reference106 = ref span40[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -131861,27 +157300,33 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Fly = true }; obj104.Steps = list138; reference106 = obj104; - ref QuestSequence reference107 = ref span40[4]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Emote, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Emote = EEmote.Dance }; obj105.Steps = list139; reference107 = obj105; - ref QuestSequence reference108 = ref span40[5]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -131889,22 +157334,27 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj106.Steps = list140; reference108 = obj106; - ref QuestSequence reference109 = ref span40[6]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -131917,13 +157367,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "Censored"; questRoot16.Author = list142; - num = 6; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span48 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference110 = ref span48[0]; + index = 6; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -131931,7 +157384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -131950,31 +157405,37 @@ public static class AssemblyQuestLoader }; obj108.Steps = list144; reference110 = obj108; - ref QuestSequence reference111 = ref span48[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, null, new Vector3(-298.6771f, 93.99152f, -222.3565f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span49 = CollectionsMarshal.AsSpan(list146); - span49[0] = 5232u; - span49[1] = 5233u; + index3 = 2; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span5 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span5[num3] = 5232u; + num3++; + span5[num3] = 5233u; obj110.KillEnemyDataIds = list146; reference112 = obj110; obj109.Steps = list145; reference111 = obj109; - ref QuestSequence reference113 = ref span48[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -131982,24 +157443,30 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1016168u, new Vector3(-306.1723f, 93.99152f, -226.42871f), 401); + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016168u, new Vector3(-306.1723f, 93.99152f, -226.42871f), 401); obj111.Steps = list147; reference113 = obj111; - ref QuestSequence reference114 = ref span48[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1016172u, new Vector3(-314.71735f, -7.6638403f, -230.60962f), 401) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016172u, new Vector3(-314.71735f, -7.6638403f, -230.60962f), 401) { Fly = true }; obj112.Steps = list148; reference114 = obj112; - ref QuestSequence reference115 = ref span48[4]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -132007,22 +157474,27 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj113.Steps = list149; reference115 = obj113; - ref QuestSequence reference116 = ref span48[5]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -132035,13 +157507,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "Censored"; questRoot17.Author = list151; - num = 6; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span50 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference117 = ref span50[0]; + index = 6; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -132049,7 +157524,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132068,15 +157545,18 @@ public static class AssemblyQuestLoader }; obj115.Steps = list153; reference117 = obj115; - ref QuestSequence reference118 = ref span50[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2006633u, new Vector3(-13.002365f, 172.73012f, -103.776634f), 401) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006633u, new Vector3(-13.002365f, 172.73012f, -103.776634f), 401) { StopDistance = 1f, Fly = true, @@ -132084,7 +157564,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list154; reference118 = obj116; - ref QuestSequence reference119 = ref span50[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -132092,22 +157573,27 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj117.Steps = list155; reference119 = obj117; - ref QuestSequence reference120 = ref span50[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list156)[0]; + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference121 = ref span3[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, null, new Vector3(207.00311f, -118.345215f, 420.25885f), 401) { Fly = true, @@ -132117,12 +157603,15 @@ public static class AssemblyQuestLoader num3 = 1; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 5234u; + span5 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span5[index3] = 5234u; obj119.KillEnemyDataIds = list157; reference121 = obj119; obj118.Steps = list156; reference120 = obj118; - ref QuestSequence reference122 = ref span50[4]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 4 @@ -132130,18 +157619,23 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1016173u, new Vector3(205.31006f, -118.345215f, 422.20178f), 401); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016173u, new Vector3(205.31006f, -118.345215f, 422.20178f), 401); obj120.Steps = list158; reference122 = obj120; - ref QuestSequence reference123 = ref span50[5]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132155,13 +157649,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list160; - num = 9; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span51 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference124 = ref span51[0]; + index = 9; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -132169,25 +157666,31 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj122.Steps = list162; reference124 = obj122; - ref QuestSequence reference125 = ref span51[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj123.Steps = list163; reference125 = obj123; - ref QuestSequence reference126 = ref span51[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -132195,34 +157698,40 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true }; obj124.Steps = list164; reference126 = obj124; - ref QuestSequence reference127 = ref span51[3]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span52 = CollectionsMarshal.AsSpan(list165); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) + index2 = 2; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) { Fly = true, Land = true }; - span52[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) { Mount = false, Emote = EEmote.Dance }; obj125.Steps = list165; reference127 = obj125; - ref QuestSequence reference128 = ref span51[4]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -132230,27 +157739,33 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true }; obj126.Steps = list166; reference128 = obj126; - ref QuestSequence reference129 = ref span51[5]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) { Fly = true }; obj127.Steps = list167; reference129 = obj127; - ref QuestSequence reference130 = ref span51[6]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 6 @@ -132258,34 +157773,40 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span53 = CollectionsMarshal.AsSpan(list168); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) { Fly = true, Land = true }; - span53[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) { Mount = false, Emote = EEmote.Dance }; obj128.Steps = list168; reference130 = obj128; - ref QuestSequence reference131 = ref span51[7]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) { Fly = true }; obj129.Steps = list169; reference131 = obj129; - ref QuestSequence reference132 = ref span51[8]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -132293,7 +157814,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132307,24 +157830,30 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list171; - num = 5; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span54 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference133 = ref span54[0]; + index = 5; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj131.Steps = list173; reference133 = obj131; - ref QuestSequence reference134 = ref span54[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -132332,28 +157861,34 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Emote, 2006623u, new Vector3(-761.74567f, -132.61621f, -422.1714f), 401) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2006623u, new Vector3(-761.74567f, -132.61621f, -422.1714f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj132.Steps = list174; reference134 = obj132; - ref QuestSequence reference135 = ref span54[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; obj133.Steps = list175; reference135 = obj133; - ref QuestSequence reference136 = ref span54[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 @@ -132361,22 +157896,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj134.Steps = list176; reference136 = obj134; - ref QuestSequence reference137 = ref span54[4]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006637u, new Vector3(-220.47766f, -4.9592285f, -582.3301f), 401) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006637u, new Vector3(-220.47766f, -4.9592285f, -582.3301f), 401) { Fly = true }; @@ -132389,13 +157929,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "plogon_enjoyer"; questRoot20.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span55 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference138 = ref span55[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -132403,39 +157946,48 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj136.Steps = list180; reference138 = obj136; - ref QuestSequence reference139 = ref span55[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span56 = CollectionsMarshal.AsSpan(list181); - span56[0] = new QuestStep(EInteractionType.Interact, 2006639u, new Vector3(-270.3136f, -13.962036f, -635.2484f), 401) + index2 = 4; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006639u, new Vector3(-270.3136f, -13.962036f, -635.2484f), 401) { Fly = true }; - ref QuestStep reference140 = ref span56[1]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj138 = new QuestStep(EInteractionType.Combat, 2006642u, new Vector3(-245.41089f, -13.229614f, -608.2704f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = 5236u; + index3 = 1; + List list182 = new List(index3); + CollectionsMarshal.SetCount(list182, index3); + span5 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span5[num3] = 5236u; obj138.KillEnemyDataIds = list182; reference140 = obj138; - span56[2] = new QuestStep(EInteractionType.Interact, 2006640u, new Vector3(-82.230896f, -10.727112f, -637.90344f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006640u, new Vector3(-82.230896f, -10.727112f, -637.90344f), 401) { Fly = true }; - ref QuestStep reference141 = ref span56[3]; + num2++; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, 2006641u, new Vector3(-24.765442f, 5.3253784f, -657.70966f), 401) { Fly = true, @@ -132444,12 +157996,15 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = 5236u; + span5 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span5[index3] = 5236u; obj139.KillEnemyDataIds = list183; reference141 = obj139; obj137.Steps = list181; reference139 = obj137; - ref QuestSequence reference142 = ref span55[2]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -132457,7 +158012,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132483,24 +158040,30 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - CollectionsMarshal.AsSpan(list185)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "plogon_enjoyer"; questRoot21.Author = list185; - num = 5; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span57 = CollectionsMarshal.AsSpan(list186); - ref QuestSequence reference143 = ref span57[0]; + index = 5; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj141.Steps = list187; reference143 = obj141; - ref QuestSequence reference144 = ref span57[1]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -132508,42 +158071,49 @@ public static class AssemblyQuestLoader num2 = 3; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span58 = CollectionsMarshal.AsSpan(list188); - span58[0] = new QuestStep(EInteractionType.Interact, 2006645u, new Vector3(-473.10602f, -56.01587f, -624.1398f), 401) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006645u, new Vector3(-473.10602f, -56.01587f, -624.1398f), 401) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.Interact, 2006644u, new Vector3(-365.92664f, -57.053528f, -579.553f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006644u, new Vector3(-365.92664f, -57.053528f, -579.553f), 401) { Fly = true }; - span58[2] = new QuestStep(EInteractionType.Interact, 2006643u, new Vector3(-381.9486f, -56.50421f, -521.8433f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006643u, new Vector3(-381.9486f, -56.50421f, -521.8433f), 401) { Fly = true }; obj142.Steps = list188; reference144 = obj142; - ref QuestSequence reference145 = ref span57[2]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span59 = CollectionsMarshal.AsSpan(list189); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 2; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - span59[1] = new QuestStep(EInteractionType.Interact, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Mount = false }; obj143.Steps = list189; reference145 = obj143; - ref QuestSequence reference146 = ref span57[3]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -132551,22 +158121,27 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1012056u, new Vector3(-658.89984f, -127.78361f, 622.98f), 401) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012056u, new Vector3(-658.89984f, -127.78361f, 622.98f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj144.Steps = list190; reference146 = obj144; - ref QuestSequence reference147 = ref span57[4]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132592,13 +158167,16 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "AnimaMachinae"; questRoot22.Author = list192; - num = 4; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span60 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference148 = ref span60[0]; + index = 4; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -132606,19 +158184,23 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj146.Steps = list194; reference148 = obj146; - ref QuestSequence reference149 = ref span60[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span61 = CollectionsMarshal.AsSpan(list195); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -132635,10 +158217,12 @@ public static class AssemblyQuestLoader } } }; - span61[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj147.Steps = list195; reference149 = obj147; - ref QuestSequence reference150 = ref span60[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -132646,34 +158230,44 @@ public static class AssemblyQuestLoader num2 = 8; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span62 = CollectionsMarshal.AsSpan(list196); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.89056f, 61.602722f, -373.9669f), 401) + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.89056f, 61.602722f, -373.9669f), 401) { Fly = true }; - ref QuestStep reference151 = ref span62[1]; + index2++; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Action, 2006649u, new Vector3(-539.0555f, 64.22522f, -377.0047f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span63 = CollectionsMarshal.AsSpan(list197); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + span7 = CollectionsMarshal.AsSpan(list197); + 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)1, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list197; reference151 = obj149; - span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-505.35422f, -28.166508f, -528.1072f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-505.35422f, -28.166508f, -528.1072f), 401) { Fly = true }; - ref QuestStep reference152 = ref span62[3]; + index2++; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Action, 2006647u, new Vector3(-504.78372f, -26.68805f, -530.93774f), 401) { StopDistance = 3f, @@ -132682,57 +158276,76 @@ public static class AssemblyQuestLoader num3 = 6; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span64 = CollectionsMarshal.AsSpan(list198); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list198; reference152 = obj150; - span62[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-478.25208f, -31.101946f, -663.0455f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-478.25208f, -31.101946f, -663.0455f), 401) { Fly = true }; - ref QuestStep reference153 = ref span62[5]; + index2++; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Action, 2006648u, new Vector3(-477.40906f, -28.885437f, -668.32996f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span65 = CollectionsMarshal.AsSpan(list199); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + span7 = CollectionsMarshal.AsSpan(list199); + 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); obj151.CompletionQuestVariablesFlags = list199; reference153 = obj151; - span62[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.45963f, -1.2632592f, -619.294f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.45963f, -1.2632592f, -619.294f), 401) { Fly = true }; - span62[7] = new QuestStep(EInteractionType.Action, 2006646u, new Vector3(-96.20813f, 0.32037354f, -620.26404f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2006646u, new Vector3(-96.20813f, 0.32037354f, -620.26404f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; obj148.Steps = list196; reference150 = obj148; - ref QuestSequence reference154 = ref span60[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132746,13 +158359,16 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "AnimaMachinae"; questRoot23.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span66 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference155 = ref span66[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -132760,19 +158376,23 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj153.Steps = list203; reference155 = obj153; - ref QuestSequence reference156 = ref span66[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span67 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference157 = ref span67[0]; + index2 = 4; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 2006651u, new Vector3(664.3624f, -30.86908f, -137.0108f), 401) { Fly = true @@ -132780,33 +158400,47 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span68 = CollectionsMarshal.AsSpan(list205); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj155.CompletionQuestVariablesFlags = list205; reference157 = obj155; - ref QuestStep reference158 = ref span67[1]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2006652u, new Vector3(847.2876f, -50.58368f, 7.2174683f), 401) { Fly = true }; - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span69 = CollectionsMarshal.AsSpan(list206); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + span7 = CollectionsMarshal.AsSpan(list206); + 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); obj156.CompletionQuestVariablesFlags = list206; reference158 = obj156; - ref QuestStep reference159 = ref span67[2]; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, 2006653u, new Vector3(860.2273f, -84.45868f, 19.272095f), 401) { Fly = true, @@ -132815,21 +158449,30 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 5235u; + span5 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span5[index3] = 5235u; obj157.KillEnemyDataIds = list207; - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span70 = CollectionsMarshal.AsSpan(list208); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span7 = CollectionsMarshal.AsSpan(list208); + 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); obj157.CompletionQuestVariablesFlags = list208; reference159 = obj157; - ref QuestStep reference160 = ref span67[3]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, 2006654u, new Vector3(642.63354f, -92.57648f, 63.035034f), 401) { Fly = true, @@ -132838,12 +158481,15 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = 5235u; + span5 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span5[index3] = 5235u; obj158.KillEnemyDataIds = list209; reference160 = obj158; obj154.Steps = list204; reference156 = obj154; - ref QuestSequence reference161 = ref span66[2]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -132851,7 +158497,9 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132877,24 +158525,30 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "AnimaMachinae"; questRoot24.Author = list211; - num = 6; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span71 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference162 = ref span71[0]; + index = 6; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj160.Steps = list213; reference162 = obj160; - ref QuestSequence reference163 = ref span71[1]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -132902,8 +158556,9 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span72 = CollectionsMarshal.AsSpan(list214); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -132920,25 +158575,30 @@ public static class AssemblyQuestLoader } } }; - span72[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj161.Steps = list214; reference163 = obj161; - ref QuestSequence reference164 = ref span71[2]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Action, 2006655u, new Vector3(-48.325317f, 17.990356f, -852.47577f), 401) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2006655u, new Vector3(-48.325317f, 17.990356f, -852.47577f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj162.Steps = list215; reference164 = obj162; - ref QuestSequence reference165 = ref span71[3]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -132946,29 +158606,35 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Action, 2006656u, new Vector3(95.23157f, -11.886841f, -817.6242f), 401) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2006656u, new Vector3(95.23157f, -11.886841f, -817.6242f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj163.Steps = list216; reference165 = obj163; - ref QuestSequence reference166 = ref span71[4]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Action, 2006657u, new Vector3(205.8899f, -6.9123535f, -785.70233f), 401) + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2006657u, new Vector3(205.8899f, -6.9123535f, -785.70233f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj164.Steps = list217; reference166 = obj164; - ref QuestSequence reference167 = ref span71[5]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -132976,7 +158642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132990,24 +158658,30 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "AnimaMachinae"; questRoot25.Author = list219; - num = 4; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span73 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference168 = ref span73[0]; + index = 4; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj166.Steps = list221; reference168 = obj166; - ref QuestSequence reference169 = ref span73[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -133015,103 +158689,137 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj167.Steps = list222; reference169 = obj167; - ref QuestSequence reference170 = ref span73[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span74 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference171 = ref span74[0]; + index2 = 6; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj169 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(151.96031f, -135.00737f, 611.10016f), 401) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span75 = CollectionsMarshal.AsSpan(list224); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list224 = new List(index3); + CollectionsMarshal.SetCount(list224, index3); + span7 = CollectionsMarshal.AsSpan(list224); + 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(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list224; skipConditions5.StepIf = skipStepConditions3; obj169.SkipConditions = skipConditions5; reference171 = obj169; - ref QuestStep reference172 = ref span74[1]; + num2++; + ref QuestStep reference172 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006662u, new Vector3(150.77429f, -133.98956f, 610.00977f), 401); num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span76 = CollectionsMarshal.AsSpan(list225); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list225); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list225; reference172 = questStep3; - ref QuestStep reference173 = ref span74[2]; + num2++; + ref QuestStep reference173 = ref span3[num2]; QuestStep obj170 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(208.36453f, -125.28946f, 630.55835f), 401) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span77 = CollectionsMarshal.AsSpan(list226); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + span7 = CollectionsMarshal.AsSpan(list226); + 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)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list226; skipConditions6.StepIf = skipStepConditions4; obj170.SkipConditions = skipConditions6; reference173 = obj170; - ref QuestStep reference174 = ref span74[3]; + num2++; + ref QuestStep reference174 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2006661u, new Vector3(207.2633f, -124.101685f, 631.8303f), 401); num3 = 6; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span78 = CollectionsMarshal.AsSpan(list227); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list227; reference174 = questStep4; - span74[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(402.99722f, -125.28946f, 724.59906f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(402.99722f, -125.28946f, 724.59906f), 401) { Fly = true }; - span74[5] = new QuestStep(EInteractionType.Interact, 2006658u, new Vector3(407.187f, -122.51471f, 724.0558f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006658u, new Vector3(407.187f, -122.51471f, 724.0558f), 401) { Mount = false }; obj168.Steps = list223; reference170 = obj168; - ref QuestSequence reference175 = ref span73[3]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -133119,7 +158827,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133145,24 +158855,30 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "liza"; questRoot26.Author = list229; - num = 3; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span79 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference176 = ref span79[0]; + index = 3; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj172.Steps = list231; reference176 = obj172; - ref QuestSequence reference177 = ref span79[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -133170,25 +158886,33 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span80 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference178 = ref span80[0]; + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference178 = ref span3[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2006663u, new Vector3(665.0034f, -158.7702f, 662.2567f), 401) { Fly = true }; - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span81 = CollectionsMarshal.AsSpan(list233); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list233 = new List(index3); + CollectionsMarshal.SetCount(list233, index3); + span7 = CollectionsMarshal.AsSpan(list233); + 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); obj174.CompletionQuestVariablesFlags = list233; reference178 = obj174; - ref QuestStep reference179 = ref span80[1]; + index2++; + ref QuestStep reference179 = ref span3[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2006665u, new Vector3(728.1146f, -157.45789f, 815.5488f), 401) { Fly = true, @@ -133197,40 +158921,56 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span82 = CollectionsMarshal.AsSpan(list234); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj175.CompletionQuestVariablesFlags = list234; reference179 = obj175; - ref QuestStep reference180 = ref span80[2]; + index2++; + ref QuestStep reference180 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006664u, new Vector3(625.3605f, -160.29602f, 835.62976f), 401); - num3 = 6; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - Span span83 = CollectionsMarshal.AsSpan(list235); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + span7 = CollectionsMarshal.AsSpan(list235); + 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); questStep5.CompletionQuestVariablesFlags = list235; reference180 = questStep5; obj173.Steps = list232; reference177 = obj173; - ref QuestSequence reference181 = ref span79[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133256,13 +158996,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list237); + index = 0; + span[index] = "liza"; questRoot27.Author = list237; - num = 4; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span84 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference182 = ref span84[0]; + index = 4; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + span2 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -133270,19 +159013,23 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj177.Steps = list239; reference182 = obj177; - ref QuestSequence reference183 = ref span84[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -133299,10 +159046,12 @@ public static class AssemblyQuestLoader } } }; - span85[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj178.Steps = list240; reference183 = obj178; - ref QuestSequence reference184 = ref span84[2]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -133310,8 +159059,9 @@ public static class AssemblyQuestLoader num2 = 3; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span86 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference185 = ref span86[0]; + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + ref QuestStep reference185 = ref span3[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Action, 1016219u, new Vector3(14.389221f, -111.05486f, 413.71777f), 401) { Fly = true, @@ -133320,34 +159070,48 @@ public static class AssemblyQuestLoader num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - Span span87 = CollectionsMarshal.AsSpan(list242); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list242; reference185 = obj180; - ref QuestStep reference186 = ref span86[1]; + index2++; + ref QuestStep reference186 = ref span3[index2]; QuestStep obj181 = new QuestStep(EInteractionType.Action, 1016217u, new Vector3(97.48987f, -86.45681f, 466.57495f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span88 = CollectionsMarshal.AsSpan(list243); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + span7 = CollectionsMarshal.AsSpan(list243); + 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); obj181.CompletionQuestVariablesFlags = list243; reference186 = obj181; - ref QuestStep reference187 = ref span86[2]; + index2++; + ref QuestStep reference187 = ref span3[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Action, 1016218u, new Vector3(137.95679f, -87.380325f, 434.62268f), 401) { Fly = true, @@ -133356,26 +159120,35 @@ public static class AssemblyQuestLoader num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span89 = CollectionsMarshal.AsSpan(list244); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj182.CompletionQuestVariablesFlags = list244; reference187 = obj182; obj179.Steps = list241; reference184 = obj179; - ref QuestSequence reference188 = ref span84[3]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -133389,13 +159162,16 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list246); + index = 0; + span[index] = "plogon_enjoyer"; questRoot28.Author = list246; - num = 4; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span90 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference189 = ref span90[0]; + index = 4; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + span2 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -133403,34 +159179,41 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj184.Steps = list248; reference189 = obj184; - ref QuestSequence reference190 = ref span90[1]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span91 = CollectionsMarshal.AsSpan(list249); - span91[0] = new QuestStep(EInteractionType.Interact, 1012057u, new Vector3(-599.0845f, -122.5f, 559.50244f), 401) + index2 = 3; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012057u, new Vector3(-599.0845f, -122.5f, 559.50244f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - span91[1] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { Fly = true }; - span91[2] = new QuestStep(EInteractionType.Interact, 1016215u, new Vector3(-279.71313f, -156.87129f, 766.9946f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016215u, new Vector3(-279.71313f, -156.87129f, 766.9946f), 401) { Fly = true }; obj185.Steps = list249; reference190 = obj185; - ref QuestSequence reference191 = ref span90[2]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -133438,26 +159221,31 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span92 = CollectionsMarshal.AsSpan(list250); - span92[0] = new QuestStep(EInteractionType.Interact, 2006702u, new Vector3(270.8933f, -114.21387f, 395.2544f), 401) + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006702u, new Vector3(270.8933f, -114.21387f, 395.2544f), 401) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.Interact, 2006703u, new Vector3(504.1123f, -101.335205f, 360.58594f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006703u, new Vector3(504.1123f, -101.335205f, 360.58594f), 401) { Fly = true }; obj186.Steps = list250; reference191 = obj186; - ref QuestSequence reference192 = ref span90[3]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133483,13 +159271,16 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list252); + index = 0; + span[index] = "plogon_enjoyer"; questRoot29.Author = list252; - num = 5; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span93 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference193 = ref span93[0]; + index = 5; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + span2 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -133497,41 +159288,54 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj188.Steps = list254; reference193 = obj188; - ref QuestSequence reference194 = ref span93[1]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span94 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference195 = ref span94[0]; + index2 = 2; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 2006667u, new Vector3(-792.59937f, -58.365784f, 188.06738f), 401) { Fly = true }; - num3 = 6; - List> list256 = new List>(num3); - CollectionsMarshal.SetCount(list256, num3); - Span> span95 = CollectionsMarshal.AsSpan(list256); - span95[0] = null; - span95[1] = null; - ref List reference196 = ref span95[2]; + index3 = 6; + List> list256 = new List>(index3); + CollectionsMarshal.SetCount(list256, index3); + Span> span8 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference196 = ref span8[num3]; int num4 = 1; List list257 = new List(num4); CollectionsMarshal.SetCount(list257, num4); - CollectionsMarshal.AsSpan(list257)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list257); + int index4 = 0; + span7[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference196 = list257; - span95[3] = null; - span95[4] = null; - span95[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj190.RequiredQuestVariables = list256; reference195 = obj190; - ref QuestStep reference197 = ref span94[1]; + num2++; + ref QuestStep reference197 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 2006761u, new Vector3(-759.4568f, -61.905884f, 140.21509f), 401) { Fly = true @@ -133539,23 +159343,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list258 = new List>(num3); CollectionsMarshal.SetCount(list258, num3); - Span> span96 = CollectionsMarshal.AsSpan(list258); - span96[0] = null; - span96[1] = null; - ref List reference198 = ref span96[2]; - num4 = 1; - List list259 = new List(num4); - CollectionsMarshal.SetCount(list259, num4); - CollectionsMarshal.AsSpan(list259)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference198 = ref span8[index3]; + index4 = 1; + List list259 = new List(index4); + CollectionsMarshal.SetCount(list259, index4); + span7 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference198 = list259; - span96[3] = null; - span96[4] = null; - span96[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj191.RequiredQuestVariables = list258; reference197 = obj191; obj189.Steps = list255; reference194 = obj189; - ref QuestSequence reference199 = ref span93[2]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -133563,52 +159376,68 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list260)[0]; + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference200 = ref span3[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2006666u, new Vector3(-627.863f, -59.372925f, -162.12714f), 401) { Fly = true, ItemId = 2001941u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 5238u; + index3 = 1; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + span5 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span5[num3] = 5238u; obj193.KillEnemyDataIds = list261; num3 = 6; List> list262 = new List>(num3); CollectionsMarshal.SetCount(list262, num3); - Span> span97 = CollectionsMarshal.AsSpan(list262); - span97[0] = null; - ref List reference201 = ref span97[1]; + span8 = CollectionsMarshal.AsSpan(list262); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference201 = ref span8[index3]; num4 = 1; List list263 = new List(num4); CollectionsMarshal.SetCount(list263, num4); - CollectionsMarshal.AsSpan(list263)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list263); + index4 = 0; + span7[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference201 = list263; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj193.RequiredQuestVariables = list262; reference200 = obj193; obj192.Steps = list260; reference199 = obj192; - ref QuestSequence reference202 = ref span93[3]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) { Fly = true }; obj194.Steps = list264; reference202 = obj194; - ref QuestSequence reference203 = ref span93[4]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -133616,7 +159445,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true }; @@ -133629,24 +159460,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "AnimaMachinae"; questRoot30.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span98 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference204 = ref span98[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj196.Steps = list268; reference204 = obj196; - ref QuestSequence reference205 = ref span98[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -133654,37 +159491,48 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); obj197.Steps = list269; reference205 = obj197; - ref QuestSequence reference206 = ref span98[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span99 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference207 = ref span99[0]; + index2 = 6; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference207 = ref span3[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 2006705u, new Vector3(-356.1914f, -153.21588f, 246.23486f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span100 = CollectionsMarshal.AsSpan(list271); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List list271 = new List(index3); + CollectionsMarshal.SetCount(list271, index3); + span7 = CollectionsMarshal.AsSpan(list271); + 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(0, (byte)2, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list271; reference207 = obj199; - ref QuestStep reference208 = ref span99[1]; + num2++; + ref QuestStep reference208 = ref span3[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 2006706u, new Vector3(-292.34766f, -142.2904f, 325.91736f), 401) { Fly = true @@ -133692,30 +159540,44 @@ public static class AssemblyQuestLoader num3 = 6; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span101 = CollectionsMarshal.AsSpan(list272); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list272; reference208 = obj200; - ref QuestStep reference209 = ref span99[2]; + num2++; + ref QuestStep reference209 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006704u, new Vector3(-281.11694f, -133.13501f, 345.2964f), 401); - num3 = 6; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span102 = CollectionsMarshal.AsSpan(list273); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + span7 = CollectionsMarshal.AsSpan(list273); + 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(0, (byte)4, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list273; reference209 = questStep6; - ref QuestStep reference210 = ref span99[3]; + num2++; + ref QuestStep reference210 = ref span3[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2006670u, new Vector3(165.85034f, -86.13721f, 415.94556f), 401) { Fly = true @@ -133723,39 +159585,54 @@ public static class AssemblyQuestLoader num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span103 = CollectionsMarshal.AsSpan(list274); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list274); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list274; reference210 = obj201; - ref QuestStep reference211 = ref span99[4]; + num2++; + ref QuestStep reference211 = ref span3[num2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2006669u, new Vector3(282.88696f, -82.26141f, 366.07922f), 401) { Fly = true }; - num3 = 6; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - Span span104 = CollectionsMarshal.AsSpan(list275); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list275 = new List(index3); + CollectionsMarshal.SetCount(list275, index3); + span7 = CollectionsMarshal.AsSpan(list275); + 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); obj202.CompletionQuestVariablesFlags = list275; reference211 = obj202; - span99[5] = new QuestStep(EInteractionType.Interact, 2006671u, new Vector3(129.8695f, -92.17981f, 293.11047f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006671u, new Vector3(129.8695f, -92.17981f, 293.11047f), 401) { Fly = true }; obj198.Steps = list270; reference206 = obj198; - ref QuestSequence reference212 = ref span98[3]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -133763,7 +159640,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133789,24 +159668,30 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list277); + index = 0; + span[index] = "plogon_enjoyer"; questRoot31.Author = list277; - num = 5; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span105 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference213 = ref span105[0]; + index = 5; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + span2 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj204.Steps = list279; reference213 = obj204; - ref QuestSequence reference214 = ref span105[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -133814,19 +159699,23 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); obj205.Steps = list280; reference214 = obj205; - ref QuestSequence reference215 = ref span105[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span106 = CollectionsMarshal.AsSpan(list281); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -133843,13 +159732,15 @@ public static class AssemblyQuestLoader } } }; - span106[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj206.Steps = list281; reference215 = obj206; - ref QuestSequence reference216 = ref span105[3]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -133857,12 +159748,14 @@ public static class AssemblyQuestLoader num2 = 4; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span107 = CollectionsMarshal.AsSpan(list282); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.9607f, 2.3374987f, -234.1339f), 401) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.9607f, 2.3374987f, -234.1339f), 401) { Fly = true }; - ref QuestStep reference217 = ref span107[1]; + index2++; + ref QuestStep reference217 = ref span3[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Action, 1016222u, new Vector3(-853.8186f, 7.7667847f, -223.92621f), 401) { Fly = true, @@ -133871,49 +159764,66 @@ public static class AssemblyQuestLoader num3 = 6; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span108 = CollectionsMarshal.AsSpan(list283); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj208.CompletionQuestVariablesFlags = list283; reference217 = obj208; - ref QuestStep reference218 = ref span107[2]; + index2++; + ref QuestStep reference218 = ref span3[index2]; QuestStep obj209 = new QuestStep(EInteractionType.Action, 1016221u, new Vector3(-576.40955f, -51.59082f, -543.8773f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - Span span109 = CollectionsMarshal.AsSpan(list284); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + span7 = CollectionsMarshal.AsSpan(list284); + 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); obj209.CompletionQuestVariablesFlags = list284; reference218 = obj209; - span107[3] = new QuestStep(EInteractionType.Action, 1016220u, new Vector3(-455.7718f, -20.828613f, -610.8644f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 1016220u, new Vector3(-455.7718f, -20.828613f, -610.8644f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj207.Steps = list282; reference216 = obj207; - ref QuestSequence reference219 = ref span105[4]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -133926,13 +159836,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "plogon_enjoyer"; questRoot32.Author = list286; - num = 5; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span110 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference220 = ref span110[0]; + index = 5; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -133940,24 +159853,30 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj211.Steps = list288; reference220 = obj211; - ref QuestSequence reference221 = ref span110[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true }; obj212.Steps = list289; reference221 = obj212; - ref QuestSequence reference222 = ref span110[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -133965,16 +159884,19 @@ public static class AssemblyQuestLoader num2 = 3; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span111 = CollectionsMarshal.AsSpan(list290); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-834.9571f, -130.33038f, -386.03116f), 401) + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-834.9571f, -130.33038f, -386.03116f), 401) { Fly = true }; - span111[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(833.7674f, -97.81962f, -735.3544f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(833.7674f, -97.81962f, -735.3544f), 401) { Fly = true }; - ref QuestStep reference223 = ref span111[2]; + index2++; + ref QuestStep reference223 = ref span3[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -133982,23 +159904,29 @@ public static class AssemblyQuestLoader num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 5239u; + span5 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span5[index3] = 5239u; obj214.KillEnemyDataIds = list291; reference223 = obj214; obj213.Steps = list290; reference222 = obj213; - ref QuestSequence reference224 = ref span110[3]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401); obj215.Steps = list292; reference224 = obj215; - ref QuestSequence reference225 = ref span110[4]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -134006,7 +159934,9 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134032,24 +159962,30 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list294); + index = 0; + span[index] = "plogon_enjoyer"; questRoot33.Author = list294; - num = 5; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span112 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference226 = ref span112[0]; + index = 5; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + span2 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj217.Steps = list296; reference226 = obj217; - ref QuestSequence reference227 = ref span112[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -134057,22 +159993,26 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true }; obj218.Steps = list297; reference227 = obj218; - ref QuestSequence reference228 = ref span112[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span113 = CollectionsMarshal.AsSpan(list298); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -134089,13 +160029,15 @@ public static class AssemblyQuestLoader } } }; - span113[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj219.Steps = list298; reference228 = obj219; - ref QuestSequence reference229 = ref span112[3]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 3 @@ -134103,28 +160045,33 @@ public static class AssemblyQuestLoader num2 = 2; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span114 = CollectionsMarshal.AsSpan(list299); - span114[0] = new QuestStep(EInteractionType.Action, 1016227u, new Vector3(473.1975f, -98.03464f, -527.7333f), 401) + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1016227u, new Vector3(473.1975f, -98.03464f, -527.7333f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - span114[1] = new QuestStep(EInteractionType.Action, 1016226u, new Vector3(710.9331f, -98.032555f, -741.0239f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 1016226u, new Vector3(710.9331f, -98.032555f, -741.0239f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj220.Steps = list299; reference229 = obj220; - ref QuestSequence reference230 = ref span112[4]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -134137,13 +160084,16 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - CollectionsMarshal.AsSpan(list301)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list301); + index = 0; + span[index] = "plogon_enjoyer"; questRoot34.Author = list301; - num = 6; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - Span span115 = CollectionsMarshal.AsSpan(list302); - ref QuestSequence reference231 = ref span115[0]; + index = 6; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + span2 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -134151,24 +160101,30 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj222.Steps = list303; reference231 = obj222; - ref QuestSequence reference232 = ref span115[1]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj223.Steps = list304; reference232 = obj223; - ref QuestSequence reference233 = ref span115[2]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -134176,30 +160132,40 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span116 = CollectionsMarshal.AsSpan(list305); - ref QuestStep reference234 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + ref QuestStep reference234 = ref span3[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 2006676u, new Vector3(-717.0062f, -13.901062f, -101.487854f), 401) { Fly = true }; - num3 = 6; - List> list306 = new List>(num3); - CollectionsMarshal.SetCount(list306, num3); - Span> span117 = CollectionsMarshal.AsSpan(list306); - span117[0] = null; - span117[1] = null; - ref List reference235 = ref span117[2]; - num4 = 1; - List list307 = new List(num4); - CollectionsMarshal.SetCount(list307, num4); - CollectionsMarshal.AsSpan(list307)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list306 = new List>(index3); + CollectionsMarshal.SetCount(list306, index3); + span8 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference235 = ref span8[num3]; + index4 = 1; + List list307 = new List(index4); + CollectionsMarshal.SetCount(list307, index4); + span7 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference235 = list307; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj225.RequiredQuestVariables = list306; reference234 = obj225; - ref QuestStep reference236 = ref span116[1]; + index2++; + ref QuestStep reference236 = ref span3[index2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 2006762u, new Vector3(-781.52136f, -13.931519f, -114.30542f), 401) { Fly = true @@ -134207,46 +160173,60 @@ public static class AssemblyQuestLoader num3 = 6; List> list308 = new List>(num3); CollectionsMarshal.SetCount(list308, num3); - Span> span118 = CollectionsMarshal.AsSpan(list308); - span118[0] = null; - span118[1] = null; - ref List reference237 = ref span118[2]; + span8 = CollectionsMarshal.AsSpan(list308); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference237 = ref span8[index3]; num4 = 1; List list309 = new List(num4); CollectionsMarshal.SetCount(list309, num4); - CollectionsMarshal.AsSpan(list309)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list309); + index4 = 0; + span7[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference237 = list309; - span118[3] = null; - span118[4] = null; - span118[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj226.RequiredQuestVariables = list308; reference236 = obj226; obj224.Steps = list305; reference233 = obj224; - ref QuestSequence reference238 = ref span115[3]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list310)[0]; + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref QuestStep reference239 = ref span3[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2006675u, new Vector3(-642.298f, -207.29382f, 211.10852f), 401) { Fly = true, ItemId = 2001912u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 5240u; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + span5 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span5[num3] = 5240u; obj228.KillEnemyDataIds = list311; reference239 = obj228; obj227.Steps = list310; reference238 = obj227; - ref QuestSequence reference240 = ref span115[4]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -134254,22 +160234,27 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1012054u, new Vector3(-640.1007f, -119.56208f, 469.5963f), 401) + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012054u, new Vector3(-640.1007f, -119.56208f, 469.5963f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj229.Steps = list312; reference240 = obj229; - ref QuestSequence reference241 = ref span115[5]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134295,13 +160280,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list314); + index = 0; + span[index] = "plogon_enjoyer"; questRoot35.Author = list314; - num = 4; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span119 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference242 = ref span119[0]; + index = 4; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + span2 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -134309,24 +160297,30 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj231.Steps = list316; reference242 = obj231; - ref QuestSequence reference243 = ref span119[1]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj232.Steps = list317; reference243 = obj232; - ref QuestSequence reference244 = ref span119[2]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -134334,8 +160328,9 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span120 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference245 = ref span120[0]; + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + ref QuestStep reference245 = ref span3[index2]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, 2006677u, new Vector3(117.96753f, 12.25293f, -412.92444f), 401) { Fly = true, @@ -134344,32 +160339,40 @@ public static class AssemblyQuestLoader num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - CollectionsMarshal.AsSpan(list319)[0] = 5241u; + span5 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span5[index3] = 5241u; obj234.KillEnemyDataIds = list319; reference245 = obj234; - ref QuestStep reference246 = ref span120[1]; + index2++; + ref QuestStep reference246 = ref span3[index2]; QuestStep obj235 = new QuestStep(EInteractionType.Combat, 2006678u, new Vector3(160.54016f, 11.856201f, -507.65244f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 5241u; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span5 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span5[num3] = 5241u; obj235.KillEnemyDataIds = list320; reference246 = obj235; obj233.Steps = list318; reference244 = obj233; - ref QuestSequence reference247 = ref span119[3]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134395,13 +160398,16 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list322); + index = 0; + span[index] = "plogon_enjoyer"; questRoot36.Author = list322; - num = 5; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span121 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference248 = ref span121[0]; + index = 5; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + span2 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -134409,24 +160415,30 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj237.Steps = list324; reference248 = obj237; - ref QuestSequence reference249 = ref span121[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj238.Steps = list325; reference249 = obj238; - ref QuestSequence reference250 = ref span121[2]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -134434,7 +160446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - ref QuestStep reference251 = ref CollectionsMarshal.AsSpan(list326)[0]; + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + ref QuestStep reference251 = ref span3[index2]; QuestStep obj240 = new QuestStep(EInteractionType.Combat, 2006679u, new Vector3(-401.175f, -202.65509f, 432.39478f), 401) { Fly = true, @@ -134444,34 +160458,42 @@ public static class AssemblyQuestLoader num3 = 1; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = 5242u; + span5 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span5[index3] = 5242u; obj240.KillEnemyDataIds = list327; reference251 = obj240; obj239.Steps = list326; reference250 = obj239; - ref QuestSequence reference252 = ref span121[3]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list328)[0]; + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + ref QuestStep reference253 = ref span3[num2]; QuestStep obj242 = new QuestStep(EInteractionType.Combat, 2006680u, new Vector3(-280.8728f, -202.01422f, 390.7987f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = 5242u; + index3 = 1; + List list329 = new List(index3); + CollectionsMarshal.SetCount(list329, index3); + span5 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span5[num3] = 5242u; obj242.KillEnemyDataIds = list329; reference253 = obj242; obj241.Steps = list328; reference252 = obj241; - ref QuestSequence reference254 = ref span121[4]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue @@ -134479,7 +160501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134505,24 +160529,30 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list331); + index = 0; + span[index] = "plogon_enjoyer"; questRoot37.Author = list331; - num = 4; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span122 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference255 = ref span122[0]; + index = 4; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + span2 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj244.Steps = list333; reference255 = obj244; - ref QuestSequence reference256 = ref span122[1]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -134530,40 +160560,48 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj245.Steps = list334; reference256 = obj245; - ref QuestSequence reference257 = ref span122[2]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span123 = CollectionsMarshal.AsSpan(list335); - span123[0] = new QuestStep(EInteractionType.Interact, 2006682u, new Vector3(25.711426f, 150.46924f, -133.56226f), 401) + index2 = 4; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006682u, new Vector3(25.711426f, 150.46924f, -133.56226f), 401) { Fly = true }; - span123[1] = new QuestStep(EInteractionType.Interact, 2006681u, new Vector3(237.07935f, 163.95813f, -46.433228f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006681u, new Vector3(237.07935f, 163.95813f, -46.433228f), 401) { Fly = true }; - span123[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.02913f, 169.13622f, -44.168194f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.02913f, 169.13622f, -44.168194f), 401) { Fly = true }; - span123[3] = new QuestStep(EInteractionType.Interact, 2006683u, new Vector3(332.5094f, 106.79785f, -68.2536f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006683u, new Vector3(332.5094f, 106.79785f, -68.2536f), 401) { Fly = true }; obj246.Steps = list335; reference257 = obj246; - ref QuestSequence reference258 = ref span122[3]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue @@ -134571,8 +160609,9 @@ public static class AssemblyQuestLoader num2 = 2; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span124 = CollectionsMarshal.AsSpan(list336); - span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.41415f, 110.85538f, -34.527588f), 401) + span3 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.41415f, 110.85538f, -34.527588f), 401) { SkipConditions = new SkipConditions { @@ -134587,7 +160626,8 @@ public static class AssemblyQuestLoader } } }; - span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134613,24 +160653,30 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list337); + index = 0; + span[index] = "plogon_enjoyer"; questRoot38.Author = list337; - num = 8; - List list338 = new List(num); - CollectionsMarshal.SetCount(list338, num); - Span span125 = CollectionsMarshal.AsSpan(list338); - ref QuestSequence reference259 = ref span125[0]; + index = 8; + List list338 = new List(index); + CollectionsMarshal.SetCount(list338, index); + span2 = CollectionsMarshal.AsSpan(list338); + num = 0; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + span3 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj248.Steps = list339; reference259 = obj248; - ref QuestSequence reference260 = ref span125[1]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 @@ -134638,27 +160684,33 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj249.Steps = list340; reference260 = obj249; - ref QuestSequence reference261 = ref span125[2]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1016228u, new Vector3(-547.7836f, -57.646603f, -549.76733f), 401) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016228u, new Vector3(-547.7836f, -57.646603f, -549.76733f), 401) { Fly = true }; obj250.Steps = list341; reference261 = obj250; - ref QuestSequence reference262 = ref span125[3]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 @@ -134666,7 +160718,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list342)[0]; + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + ref QuestStep reference263 = ref span3[index2]; QuestStep obj252 = new QuestStep(EInteractionType.Combat, 2006684u, new Vector3(-357.29004f, -56.565247f, -598.9929f), 401) { Fly = true, @@ -134675,26 +160729,32 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = 5243u; + span5 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span5[index3] = 5243u; obj252.KillEnemyDataIds = list343; reference263 = obj252; obj251.Steps = list342; reference262 = obj251; - ref QuestSequence reference264 = ref span125[4]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1016229u, new Vector3(-369.31415f, -54.222214f, -605.3407f), 401) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016229u, new Vector3(-369.31415f, -54.222214f, -605.3407f), 401) { Fly = true }; obj253.Steps = list344; reference264 = obj253; - ref QuestSequence reference265 = ref span125[5]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 5 @@ -134702,35 +160762,43 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - ref QuestStep reference266 = ref CollectionsMarshal.AsSpan(list345)[0]; + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + ref QuestStep reference266 = ref span3[index2]; QuestStep obj255 = new QuestStep(EInteractionType.Combat, 2006685u, new Vector3(-107.07257f, -13.5043335f, -655.6039f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 5243u; + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + span5 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span5[num3] = 5243u; obj255.KillEnemyDataIds = list346; reference266 = obj255; obj254.Steps = list345; reference265 = obj254; - ref QuestSequence reference267 = ref span125[6]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1016230u, new Vector3(-114.85474f, -13.978999f, -652.8878f), 401) + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016230u, new Vector3(-114.85474f, -13.978999f, -652.8878f), 401) { Fly = true }; obj256.Steps = list347; reference267 = obj256; - ref QuestSequence reference268 = ref span125[7]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue @@ -134738,7 +160806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134764,24 +160834,30 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list349); + index = 0; + span[index] = "plogon_enjoyer"; questRoot39.Author = list349; - num = 4; - List list350 = new List(num); - CollectionsMarshal.SetCount(list350, num); - Span span126 = CollectionsMarshal.AsSpan(list350); - ref QuestSequence reference269 = ref span126[0]; + index = 4; + List list350 = new List(index); + CollectionsMarshal.SetCount(list350, index); + span2 = CollectionsMarshal.AsSpan(list350); + num = 0; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj258.Steps = list351; reference269 = obj258; - ref QuestSequence reference270 = ref span126[1]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 1 @@ -134789,22 +160865,26 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj259.Steps = list352; reference270 = obj259; - ref QuestSequence reference271 = ref span126[2]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - Span span127 = CollectionsMarshal.AsSpan(list353); - ref QuestStep reference272 = ref span127[0]; + index2 = 2; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + span3 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + ref QuestStep reference272 = ref span3[num2]; QuestStep obj261 = new QuestStep(EInteractionType.Combat, 2006707u, new Vector3(72.92273f, -88.39557f, 428.82422f), 401) { Fly = true, @@ -134814,24 +160894,30 @@ public static class AssemblyQuestLoader num3 = 1; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - CollectionsMarshal.AsSpan(list354)[0] = 5244u; + span5 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span5[index3] = 5244u; obj261.KillEnemyDataIds = list354; reference272 = obj261; - ref QuestStep reference273 = ref span127[1]; + num2++; + ref QuestStep reference273 = ref span3[num2]; QuestStep obj262 = new QuestStep(EInteractionType.Combat, 2006686u, new Vector3(167.58984f, -97.428955f, 455.71057f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - CollectionsMarshal.AsSpan(list355)[0] = 5244u; + index3 = 1; + List list355 = new List(index3); + CollectionsMarshal.SetCount(list355, index3); + span5 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span5[num3] = 5244u; obj262.KillEnemyDataIds = list355; reference273 = obj262; obj260.Steps = list353; reference271 = obj260; - ref QuestSequence reference274 = ref span126[3]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -134839,7 +160925,9 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134865,24 +160953,30 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - CollectionsMarshal.AsSpan(list357)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list357); + index = 0; + span[index] = "plogon_enjoyer"; questRoot40.Author = list357; - num = 4; - List list358 = new List(num); - CollectionsMarshal.SetCount(list358, num); - Span span128 = CollectionsMarshal.AsSpan(list358); - ref QuestSequence reference275 = ref span128[0]; + index = 4; + List list358 = new List(index); + CollectionsMarshal.SetCount(list358, index); + span2 = CollectionsMarshal.AsSpan(list358); + num = 0; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + span3 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj264.Steps = list359; reference275 = obj264; - ref QuestSequence reference276 = ref span128[1]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 1 @@ -134890,22 +160984,26 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj265.Steps = list360; reference276 = obj265; - ref QuestSequence reference277 = ref span128[2]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - Span span129 = CollectionsMarshal.AsSpan(list361); - ref QuestStep reference278 = ref span129[0]; + index2 = 4; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + ref QuestStep reference278 = ref span3[num2]; QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2006690u, new Vector3(-857.6333f, 4.6539917f, -218.67706f), 401) { Fly = true, @@ -134914,21 +161012,30 @@ public static class AssemblyQuestLoader num3 = 1; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - CollectionsMarshal.AsSpan(list362)[0] = 5246u; + span5 = CollectionsMarshal.AsSpan(list362); + index3 = 0; + span5[index3] = 5246u; obj267.KillEnemyDataIds = list362; - num3 = 6; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - Span span130 = CollectionsMarshal.AsSpan(list363); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + span7 = CollectionsMarshal.AsSpan(list363); + 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)1, 0, EQuestWorkMode.Bitwise); obj267.CompletionQuestVariablesFlags = list363; reference278 = obj267; - ref QuestStep reference279 = ref span129[1]; + num2++; + ref QuestStep reference279 = ref span3[num2]; QuestStep obj268 = new QuestStep(EInteractionType.Interact, 2006689u, new Vector3(-830.3197f, -14.358765f, -131.82275f), 401) { Fly = true @@ -134936,33 +161043,47 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span131 = CollectionsMarshal.AsSpan(list364); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj268.CompletionQuestVariablesFlags = list364; reference279 = obj268; - ref QuestStep reference280 = ref span129[2]; + num2++; + ref QuestStep reference280 = ref span3[num2]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 2006687u, new Vector3(-553.97876f, -58.42682f, -271.10706f), 401) { Fly = true }; - num3 = 6; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span132 = CollectionsMarshal.AsSpan(list365); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + span7 = CollectionsMarshal.AsSpan(list365); + 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); obj269.CompletionQuestVariablesFlags = list365; reference280 = obj269; - ref QuestStep reference281 = ref span129[3]; + num2++; + ref QuestStep reference281 = ref span3[num2]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 2006688u, new Vector3(-715.1446f, -58.640503f, -342.30566f), 401) { Fly = true @@ -134970,18 +161091,25 @@ public static class AssemblyQuestLoader num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span133 = CollectionsMarshal.AsSpan(list366); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj270.CompletionQuestVariablesFlags = list366; reference281 = obj270; obj266.Steps = list361; reference277 = obj266; - ref QuestSequence reference282 = ref span128[3]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = byte.MaxValue @@ -134989,7 +161117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; @@ -135002,24 +161132,30 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list368); + index = 0; + span[index] = "plogon_enjoyer"; questRoot41.Author = list368; - num = 4; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span134 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference283 = ref span134[0]; + index = 4; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + span2 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj272.Steps = list370; reference283 = obj272; - ref QuestSequence reference284 = ref span134[1]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 1 @@ -135027,41 +161163,52 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj273.Steps = list371; reference284 = obj273; - ref QuestSequence reference285 = ref span134[2]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj274 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span135 = CollectionsMarshal.AsSpan(list372); - ref QuestStep reference286 = ref span135[0]; + index2 = 5; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference286 = ref span3[num2]; QuestStep obj275 = new QuestStep(EInteractionType.UseItem, 1016375u, new Vector3(-627.89355f, -149.95285f, 480.15564f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, ItemId = 2001934u }; - num3 = 6; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - Span span136 = CollectionsMarshal.AsSpan(list373); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list373 = new List(index3); + CollectionsMarshal.SetCount(list373, index3); + span7 = CollectionsMarshal.AsSpan(list373); + 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(0, (byte)8, EQuestWorkMode.Bitwise); obj275.CompletionQuestVariablesFlags = list373; reference286 = obj275; - ref QuestStep reference287 = ref span135[1]; + num2++; + ref QuestStep reference287 = ref span3[num2]; QuestStep obj276 = new QuestStep(EInteractionType.UseItem, 1016232u, new Vector3(-452.10956f, -187.396f, 734.18774f), 401) { Fly = true, @@ -135070,34 +161217,48 @@ public static class AssemblyQuestLoader num3 = 6; List list374 = new List(num3); CollectionsMarshal.SetCount(list374, num3); - Span span137 = CollectionsMarshal.AsSpan(list374); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list374); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj276.CompletionQuestVariablesFlags = list374; reference287 = obj276; - ref QuestStep reference288 = ref span135[2]; + num2++; + ref QuestStep reference288 = ref span3[num2]; QuestStep obj277 = new QuestStep(EInteractionType.UseItem, 1016233u, new Vector3(-359.823f, -184.95448f, 796.71924f), 401) { Fly = true, ItemId = 2001934u }; - num3 = 6; - List list375 = new List(num3); - CollectionsMarshal.SetCount(list375, num3); - Span span138 = CollectionsMarshal.AsSpan(list375); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list375 = new List(index3); + CollectionsMarshal.SetCount(list375, index3); + span7 = CollectionsMarshal.AsSpan(list375); + 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); obj277.CompletionQuestVariablesFlags = list375; reference288 = obj277; - ref QuestStep reference289 = ref span135[3]; + num2++; + ref QuestStep reference289 = ref span3[num2]; QuestStep obj278 = new QuestStep(EInteractionType.UseItem, 1016374u, new Vector3(-343.00757f, -161.8661f, 770.01587f), 401) { Fly = true, @@ -135106,36 +161267,50 @@ public static class AssemblyQuestLoader num3 = 6; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - Span span139 = CollectionsMarshal.AsSpan(list376); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list376); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj278.CompletionQuestVariablesFlags = list376; reference289 = obj278; - ref QuestStep reference290 = ref span135[4]; + num2++; + ref QuestStep reference290 = ref span3[num2]; QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 1016231u, new Vector3(-333.79114f, -184.97446f, 625.1162f), 401) { Fly = true, ItemId = 2001934u }; - num3 = 6; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - Span span140 = CollectionsMarshal.AsSpan(list377); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list377 = new List(index3); + CollectionsMarshal.SetCount(list377, index3); + span7 = CollectionsMarshal.AsSpan(list377); + 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); obj279.CompletionQuestVariablesFlags = list377; reference290 = obj279; obj274.Steps = list372; reference285 = obj274; - ref QuestSequence reference291 = ref span134[3]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue @@ -135143,7 +161318,9 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135169,24 +161346,30 @@ public static class AssemblyQuestLoader num = 1; List list379 = new List(num); CollectionsMarshal.SetCount(list379, num); - CollectionsMarshal.AsSpan(list379)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list379); + index = 0; + span[index] = "plogon_enjoyer"; questRoot42.Author = list379; - num = 4; - List list380 = new List(num); - CollectionsMarshal.SetCount(list380, num); - Span span141 = CollectionsMarshal.AsSpan(list380); - ref QuestSequence reference292 = ref span141[0]; + index = 4; + List list380 = new List(index); + CollectionsMarshal.SetCount(list380, index); + span2 = CollectionsMarshal.AsSpan(list380); + num = 0; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj281.Steps = list381; reference292 = obj281; - ref QuestSequence reference293 = ref span141[1]; + num++; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 1 @@ -135194,22 +161377,26 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true }; obj282.Steps = list382; reference293 = obj282; - ref QuestSequence reference294 = ref span141[2]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - Span span142 = CollectionsMarshal.AsSpan(list383); - ref QuestStep reference295 = ref span142[0]; + index2 = 4; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + span3 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + ref QuestStep reference295 = ref span3[num2]; QuestStep obj284 = new QuestStep(EInteractionType.Interact, 1016508u, new Vector3(-261.8601f, -132.0669f, 388.66248f), 401) { Fly = true, @@ -135218,33 +161405,47 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span143 = CollectionsMarshal.AsSpan(list384); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj284.CompletionQuestVariablesFlags = list384; reference295 = obj284; - ref QuestStep reference296 = ref span142[1]; + num2++; + ref QuestStep reference296 = ref span3[num2]; QuestStep obj285 = new QuestStep(EInteractionType.Interact, 1016235u, new Vector3(-229.48047f, -129.59497f, 418.44812f), 401) { Fly = true }; - num3 = 6; - List list385 = new List(num3); - CollectionsMarshal.SetCount(list385, num3); - Span span144 = CollectionsMarshal.AsSpan(list385); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list385 = new List(index3); + CollectionsMarshal.SetCount(list385, index3); + span7 = CollectionsMarshal.AsSpan(list385); + 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); obj285.CompletionQuestVariablesFlags = list385; reference296 = obj285; - ref QuestStep reference297 = ref span142[2]; + num2++; + ref QuestStep reference297 = ref span3[num2]; QuestStep obj286 = new QuestStep(EInteractionType.Interact, 1016236u, new Vector3(-196.2768f, -131.82275f, 333.9436f), 401) { Fly = true @@ -135252,35 +161453,49 @@ public static class AssemblyQuestLoader num3 = 6; List list386 = new List(num3); CollectionsMarshal.SetCount(list386, num3); - Span span145 = CollectionsMarshal.AsSpan(list386); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list386); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj286.CompletionQuestVariablesFlags = list386; reference297 = obj286; - ref QuestStep reference298 = ref span142[3]; + num2++; + ref QuestStep reference298 = ref span3[num2]; QuestStep obj287 = new QuestStep(EInteractionType.Interact, 1016216u, new Vector3(-253.62024f, -130.38837f, 340.3219f), 401) { Fly = true }; - num3 = 6; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span146 = CollectionsMarshal.AsSpan(list387); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + span7 = CollectionsMarshal.AsSpan(list387); + 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); obj287.CompletionQuestVariablesFlags = list387; reference298 = obj287; obj283.Steps = list383; reference294 = obj283; - ref QuestSequence reference299 = ref span141[3]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue @@ -135288,7 +161503,9 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135314,24 +161531,30 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list389); + index = 0; + span[index] = "plogon_enjoyer"; questRoot43.Author = list389; - num = 4; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span147 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference300 = ref span147[0]; + index = 4; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + span2 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj289.Steps = list391; reference300 = obj289; - ref QuestSequence reference301 = ref span147[1]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = 1 @@ -135339,37 +161562,44 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj290.Steps = list392; reference301 = obj290; - ref QuestSequence reference302 = ref span147[2]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span148 = CollectionsMarshal.AsSpan(list393); - span148[0] = new QuestStep(EInteractionType.Interact, 2006693u, new Vector3(-420.8286f, -185.8396f, 705.745f), 401) + index2 = 3; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + span3 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006693u, new Vector3(-420.8286f, -185.8396f, 705.745f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - span148[1] = new QuestStep(EInteractionType.Interact, 2006692u, new Vector3(-300.49597f, -192.37054f, 638.5442f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006692u, new Vector3(-300.49597f, -192.37054f, 638.5442f), 401) { Fly = true }; - span148[2] = new QuestStep(EInteractionType.Interact, 2006691u, new Vector3(-244.73944f, -184.92413f, 687.4342f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006691u, new Vector3(-244.73944f, -184.92413f, 687.4342f), 401) { Fly = true }; obj291.Steps = list393; reference302 = obj291; - ref QuestSequence reference303 = ref span147[3]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue @@ -135377,7 +161607,9 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span3 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135403,24 +161635,30 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list395); + index = 0; + span[index] = "plogon_enjoyer"; questRoot44.Author = list395; - num = 5; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span149 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference304 = ref span149[0]; + index = 5; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + span2 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + span3 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj293.Steps = list397; reference304 = obj293; - ref QuestSequence reference305 = ref span149[1]; + num++; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = 1 @@ -135428,28 +161666,34 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj294.Steps = list398; reference305 = obj294; - ref QuestSequence reference306 = ref span149[2]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj295.Steps = list399; reference306 = obj295; - ref QuestSequence reference307 = ref span149[3]; + num++; + ref QuestSequence reference307 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 3 @@ -135457,30 +161701,36 @@ public static class AssemblyQuestLoader num2 = 3; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span150 = CollectionsMarshal.AsSpan(list400); - span150[0] = new QuestStep(EInteractionType.Interact, 1016385u, new Vector3(-519.646f, -152.47815f, 280.38452f), 401) + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016385u, new Vector3(-519.646f, -152.47815f, 280.38452f), 401) { Fly = true }; - span150[1] = new QuestStep(EInteractionType.Interact, 1016377u, new Vector3(272.7854f, -114.24131f, 387.6859f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016377u, new Vector3(272.7854f, -114.24131f, 387.6859f), 401) { Fly = true }; - span150[2] = new QuestStep(EInteractionType.Interact, 1016376u, new Vector3(702.90686f, -126.03205f, 392.04993f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016376u, new Vector3(702.90686f, -126.03205f, 392.04993f), 401) { Fly = true }; obj296.Steps = list400; reference307 = obj296; - ref QuestSequence reference308 = ref span149[4]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135506,13 +161756,16 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - CollectionsMarshal.AsSpan(list402)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list402); + index = 0; + span[index] = "plogon_enjoyer"; questRoot45.Author = list402; - num = 5; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - Span span151 = CollectionsMarshal.AsSpan(list403); - ref QuestSequence reference309 = ref span151[0]; + index = 5; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + span2 = CollectionsMarshal.AsSpan(list403); + num = 0; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj298 = new QuestSequence { Sequence = 0 @@ -135520,25 +161773,31 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + span3 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj298.Steps = list404; reference309 = obj298; - ref QuestSequence reference310 = ref span151[1]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 2006694u, new Vector3(-28.030884f, -136.98022f, 454.94763f), 401) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006694u, new Vector3(-28.030884f, -136.98022f, 454.94763f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj299.Steps = list405; reference310 = obj299; - ref QuestSequence reference311 = ref span151[2]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj300 = new QuestSequence { Sequence = 2 @@ -135546,24 +161805,30 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 2006699u, new Vector3(-15.182739f, -136.98022f, 458.33508f), 401); + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006699u, new Vector3(-15.182739f, -136.98022f, 458.33508f), 401); obj300.Steps = list406; reference311 = obj300; - ref QuestSequence reference312 = ref span151[3]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj301 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.UseItem, 1016237u, new Vector3(-28.000305f, -137.77374f, 454.94763f), 401) + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1016237u, new Vector3(-28.000305f, -137.77374f, 454.94763f), 401) { ItemId = 2001935u }; obj301.Steps = list407; reference312 = obj301; - ref QuestSequence reference313 = ref span151[4]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = byte.MaxValue @@ -135571,7 +161836,9 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135597,24 +161864,30 @@ public static class AssemblyQuestLoader num = 1; List list409 = new List(num); CollectionsMarshal.SetCount(list409, num); - CollectionsMarshal.AsSpan(list409)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list409); + index = 0; + span[index] = "plogon_enjoyer"; questRoot46.Author = list409; - num = 4; - List list410 = new List(num); - CollectionsMarshal.SetCount(list410, num); - Span span152 = CollectionsMarshal.AsSpan(list410); - ref QuestSequence reference314 = ref span152[0]; + index = 4; + List list410 = new List(index); + CollectionsMarshal.SetCount(list410, index); + span2 = CollectionsMarshal.AsSpan(list410); + num = 0; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj303 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj303.Steps = list411; reference314 = obj303; - ref QuestSequence reference315 = ref span152[1]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj304 = new QuestSequence { Sequence = 1 @@ -135622,47 +161895,56 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj304.Steps = list412; reference315 = obj304; - ref QuestSequence reference316 = ref span152[2]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj305 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - Span span153 = CollectionsMarshal.AsSpan(list413); - span153[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(650.37317f, -41.15606f, -302.4378f), 401) + index2 = 5; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(650.37317f, -41.15606f, -302.4378f), 401) { Fly = true }; - span153[1] = new QuestStep(EInteractionType.Emote, 1016362u, new Vector3(647.57764f, -41.156067f, -301.47253f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016362u, new Vector3(647.57764f, -41.156067f, -301.47253f), 401) { Emote = EEmote.SundropDance }; - span153[2] = new QuestStep(EInteractionType.Emote, 1016365u, new Vector3(682.36804f, -11.396843f, -400.6256f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016365u, new Vector3(682.36804f, -11.396843f, -400.6256f), 401) { Fly = true, Emote = EEmote.SundropDance }; - span153[3] = new QuestStep(EInteractionType.Emote, 1016364u, new Vector3(799.9846f, -11.396843f, -416.98334f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016364u, new Vector3(799.9846f, -11.396843f, -416.98334f), 401) { Fly = true, Emote = EEmote.SundropDance }; - span153[4] = new QuestStep(EInteractionType.Emote, 1016363u, new Vector3(776.9131f, -39.97968f, -540.24567f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016363u, new Vector3(776.9131f, -39.97968f, -540.24567f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj305.Steps = list413; reference316 = obj305; - ref QuestSequence reference317 = ref span152[3]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -135670,7 +161952,9 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135696,24 +161980,30 @@ public static class AssemblyQuestLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - CollectionsMarshal.AsSpan(list415)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list415); + index = 0; + span[index] = "plogon_enjoyer"; questRoot47.Author = list415; - num = 4; - List list416 = new List(num); - CollectionsMarshal.SetCount(list416, num); - Span span154 = CollectionsMarshal.AsSpan(list416); - ref QuestSequence reference318 = ref span154[0]; + index = 4; + List list416 = new List(index); + CollectionsMarshal.SetCount(list416, index); + span2 = CollectionsMarshal.AsSpan(list416); + num = 0; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj307 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + span3 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj307.Steps = list417; reference318 = obj307; - ref QuestSequence reference319 = ref span154[1]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj308 = new QuestSequence { Sequence = 1 @@ -135721,27 +162011,32 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj308.Steps = list418; reference319 = obj308; - ref QuestSequence reference320 = ref span154[2]; + num++; + ref QuestSequence reference320 = ref span2[num]; QuestSequence obj309 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - Span span155 = CollectionsMarshal.AsSpan(list419); - span155[0] = new QuestStep(EInteractionType.Emote, 1016241u, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) + index2 = 4; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016241u, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) { Fly = true, Emote = EEmote.SundropDance }; - ref QuestStep reference321 = ref span155[1]; + num2++; + ref QuestStep reference321 = ref span3[num2]; QuestStep obj310 = new QuestStep(EInteractionType.Combat, null, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -135749,23 +162044,28 @@ public static class AssemblyQuestLoader num3 = 1; List list420 = new List(num3); CollectionsMarshal.SetCount(list420, num3); - CollectionsMarshal.AsSpan(list420)[0] = 5235u; + span5 = CollectionsMarshal.AsSpan(list420); + index3 = 0; + span5[index3] = 5235u; obj310.KillEnemyDataIds = list420; obj310.CombatDelaySecondsAtStart = 0f; reference321 = obj310; - span155[2] = new QuestStep(EInteractionType.Emote, 1016239u, new Vector3(-64.683044f, 212.9267f, 101.33508f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016239u, new Vector3(-64.683044f, 212.9267f, 101.33508f), 401) { Fly = true, Emote = EEmote.SundropDance }; - span155[3] = new QuestStep(EInteractionType.Emote, 1016240u, new Vector3(233.23413f, 240.42369f, 118.30322f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1016240u, new Vector3(233.23413f, 240.42369f, 118.30322f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj309.Steps = list419; reference320 = obj309; - ref QuestSequence reference322 = ref span154[3]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj311 = new QuestSequence { Sequence = byte.MaxValue @@ -135773,7 +162073,9 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135799,24 +162101,30 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - CollectionsMarshal.AsSpan(list422)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list422); + index = 0; + span[index] = "plogon_enjoyer"; questRoot48.Author = list422; - num = 6; - List list423 = new List(num); - CollectionsMarshal.SetCount(list423, num); - Span span156 = CollectionsMarshal.AsSpan(list423); - ref QuestSequence reference323 = ref span156[0]; + index = 6; + List list423 = new List(index); + CollectionsMarshal.SetCount(list423, index); + span2 = CollectionsMarshal.AsSpan(list423); + num = 0; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj312 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list424 = new List(num2); - CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list424 = new List(index2); + CollectionsMarshal.SetCount(list424, index2); + span3 = CollectionsMarshal.AsSpan(list424); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj312.Steps = list424; reference323 = obj312; - ref QuestSequence reference324 = ref span156[1]; + num++; + ref QuestSequence reference324 = ref span2[num]; QuestSequence obj313 = new QuestSequence { Sequence = 1 @@ -135824,27 +162132,33 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj313.Steps = list425; reference324 = obj313; - ref QuestSequence reference325 = ref span156[2]; + num++; + ref QuestSequence reference325 = ref span2[num]; QuestSequence obj314 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.Interact, 2006708u, new Vector3(-198.41309f, 93.55298f, -303.88342f), 401) + index2 = 1; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + span3 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006708u, new Vector3(-198.41309f, 93.55298f, -303.88342f), 401) { Fly = true }; obj314.Steps = list426; reference325 = obj314; - ref QuestSequence reference326 = ref span156[3]; + num++; + ref QuestSequence reference326 = ref span2[num]; QuestSequence obj315 = new QuestSequence { Sequence = 3 @@ -135852,28 +162166,34 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.UseItem, 2006695u, new Vector3(111.46704f, -84.55023f, 429.83142f), 401) + span3 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2006695u, new Vector3(111.46704f, -84.55023f, 429.83142f), 401) { Fly = true, ItemId = 2001927u }; obj315.Steps = list427; reference326 = obj315; - ref QuestSequence reference327 = ref span156[4]; + num++; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj316 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list428 = new List(num2); - CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Emote, 2006696u, new Vector3(111.436646f, -83.024414f, 428.85486f), 401) + index2 = 1; + List list428 = new List(index2); + CollectionsMarshal.SetCount(list428, index2); + span3 = CollectionsMarshal.AsSpan(list428); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 2006696u, new Vector3(111.436646f, -83.024414f, 428.85486f), 401) { Emote = EEmote.SundropDance }; obj316.Steps = list428; reference327 = obj316; - ref QuestSequence reference328 = ref span156[5]; + num++; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj317 = new QuestSequence { Sequence = byte.MaxValue @@ -135881,7 +162201,9 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135911,13 +162233,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -135925,24 +162250,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -135950,8 +162281,9 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -135968,28 +162300,33 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Action, 1016242u, new Vector3(284.19922f, 28.574171f, -636.3775f), 401) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1016242u, new Vector3(284.19922f, 28.574171f, -636.3775f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -135997,29 +162334,35 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Action, 1016378u, new Vector3(338.4298f, 31.483738f, -562.1882f), 401) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1016378u, new Vector3(338.4298f, 31.483738f, -562.1882f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Action, 1016379u, new Vector3(501.27405f, 112.648964f, -182.97095f), 401) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1016379u, new Vector3(501.27405f, 112.648964f, -182.97095f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -136027,7 +162370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -136041,24 +162386,30 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "liza"; questRoot2.Author = list10; - num = 5; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span3[0]; + index = 5; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016125u, new Vector3(146.16614f, -12.634914f, -27.420471f), 419); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016125u, new Vector3(146.16614f, -12.634914f, -27.420471f), 419); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -136066,33 +162417,39 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span4 = CollectionsMarshal.AsSpan(list14); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-884.77277f, -36.27771f, 11.526271f), 401) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-884.77277f, -36.27771f, 11.526271f), 401) { Fly = true }; - span4[1] = new QuestStep(EInteractionType.Interact, 1016124u, new Vector3(-887.9072f, -36.68469f, 11.428955f), 401) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016124u, new Vector3(-887.9072f, -36.68469f, 11.428955f), 401) { StopDistance = 5f }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span3[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -136100,7 +162457,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) { Fly = true @@ -136108,7 +162467,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNM101_02204_Q1_000_000"), @@ -136118,15 +162479,18 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference13 = ref span3[4]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) { StopDistance = 7f, NextQuestId = new QuestId(2205) @@ -136140,13 +162504,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; questRoot3.Author = list18; - num = 4; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span5 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span5[0]; + index = 4; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -136154,21 +162521,26 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) { StopDistance = 7f }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span5[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -136177,11 +162549,13 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - span5[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -136189,7 +162563,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016137u, new Vector3(145.61682f, -13.626623f, -868.2536f), 401) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016137u, new Vector3(145.61682f, -13.626623f, -868.2536f), 401) { StopDistance = 7f, NextQuestId = new QuestId(2285) @@ -136203,21 +162579,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "pot0to"; questRoot4.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span6 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference17 = ref span6[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list25)[0]; + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136229,19 +162610,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span7 = CollectionsMarshal.AsSpan(list26); - span7[0] = 418; - span7[1] = 419; + index3 = 2; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span5 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span5[num3] = 418; + num3++; + span5[num3] = 419; skipAetheryteCondition.InTerritory = list26; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj18.SkipConditions = skipConditions; reference18 = obj18; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -136249,30 +162633,40 @@ public static class AssemblyQuestLoader num2 = 6; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span8 = CollectionsMarshal.AsSpan(list27); - span8[0] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span8[1] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); - span8[2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); - span8[3] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); - span8[4] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); - span8[5] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span6[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span6[3]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -136280,23 +162674,27 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1017878u, new Vector3(547.8751f, 174.05713f, -537.0108f), 397) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017878u, new Vector3(547.8751f, 174.05713f, -537.0108f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span6[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span9 = CollectionsMarshal.AsSpan(list30); - span9[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136306,7 +162704,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427) { NextQuestId = new QuestId(2208) }; @@ -136319,13 +162718,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "pot0to"; questRoot5.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span10[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -136333,8 +162735,9 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span11 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference24 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -136350,37 +162753,45 @@ public static class AssemblyQuestLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 427; + span5 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span5[index3] = 427; skipStepConditions.InTerritory = list34; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span12 = CollectionsMarshal.AsSpan(list35); - span12[0] = 419; - span12[1] = 427; + index3 = 2; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + span5 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span5[num3] = 419; + num3++; + span5[num3] = 427; skipAetheryteCondition2.InTerritory = list35; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj24.SkipConditions = skipConditions2; reference24 = obj24; - span11[1] = new QuestStep(EInteractionType.AcceptQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference25 = ref span10[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - span13[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span13[1] = new QuestStep(EInteractionType.Interact, 1017879u, new Vector3(56.10742f, 11.965071f, 38.92566f), 419) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017879u, new Vector3(56.10742f, 11.965071f, 38.92566f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136390,7 +162801,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list36; reference25 = obj25; - ref QuestSequence reference26 = ref span10[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -136398,7 +162810,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136408,16 +162822,18 @@ public static class AssemblyQuestLoader }; obj26.Steps = list37; reference26 = obj26; - ref QuestSequence reference27 = ref span10[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = new QuestStep(EInteractionType.Interact, 1012167u, new Vector3(27.66455f, -11.992287f, 47.86743f), 418) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012167u, new Vector3(27.66455f, -11.992287f, 47.86743f), 418) { AethernetShortcut = new AethernetShortcut { @@ -136425,11 +162841,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - span14[1] = new QuestStep(EInteractionType.Interact, 1018087u, new Vector3(99.168335f, -22.000004f, 49.210327f), 418); - span14[2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018087u, new Vector3(99.168335f, -22.000004f, 49.210327f), 418); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj27.Steps = list38; reference27 = obj27; - ref QuestSequence reference28 = ref span10[4]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -136437,7 +162856,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136455,21 +162876,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "pot0to"; questRoot6.Author = list40; - num = 4; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span15 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference29 = ref span15[0]; + index = 4; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136484,16 +162910,19 @@ public static class AssemblyQuestLoader num3 = 2; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span16 = CollectionsMarshal.AsSpan(list43); - span16[0] = 418; - span16[1] = 419; + span5 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span5[index3] = 418; + index3++; + span5[index3] = 419; skipAetheryteCondition3.InTerritory = list43; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj30.SkipConditions = skipConditions3; reference30 = obj30; obj29.Steps = list42; reference29 = obj29; - ref QuestSequence reference31 = ref span15[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -136501,32 +162930,41 @@ public static class AssemblyQuestLoader num2 = 6; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span17 = CollectionsMarshal.AsSpan(list44); - span17[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span17[1] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); - span17[2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); - span17[3] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); - span17[4] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); - span17[5] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); obj31.Steps = list44; reference31 = obj31; - ref QuestSequence reference32 = ref span15[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span18 = CollectionsMarshal.AsSpan(list45); - span18[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span18[1] = new QuestStep(EInteractionType.Interact, 1017883u, new Vector3(94.77368f, -4.73493f, -37.979797f), 419) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017883u, new Vector3(94.77368f, -4.73493f, -37.979797f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136536,7 +162974,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list45; reference32 = obj32; - ref QuestSequence reference33 = ref span15[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -136544,7 +162983,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136562,21 +163003,26 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "pot0to"; questRoot7.Author = list47; - num = 8; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span19 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference34 = ref span19[0]; + index = 8; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136588,19 +163034,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span20 = CollectionsMarshal.AsSpan(list50); - span20[0] = 418; - span20[1] = 419; + index3 = 2; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span5 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span5[num3] = 418; + num3++; + span5[num3] = 419; skipAetheryteCondition4.InTerritory = list50; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj35.SkipConditions = skipConditions4; reference35 = obj35; obj34.Steps = list49; reference34 = obj34; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -136608,7 +163057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2007422u, new Vector3(-225.84882f, -20.035156f, -81.22388f), 419) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007422u, new Vector3(-225.84882f, -20.035156f, -81.22388f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136618,15 +163069,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list51; reference36 = obj36; - ref QuestSequence reference37 = ref span19[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1017886u, new Vector3(-6.1799316f, 1.3070598f, 93.095215f), 418) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017886u, new Vector3(-6.1799316f, 1.3070598f, 93.095215f), 418) { AethernetShortcut = new AethernetShortcut { @@ -136636,7 +163090,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference37 = obj37; - ref QuestSequence reference38 = ref span19[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -136644,8 +163099,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span21 = CollectionsMarshal.AsSpan(list53); - span21[0] = new QuestStep(EInteractionType.Interact, 1011224u, new Vector3(4.5929565f, -2.52555f, 149.49255f), 418) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011224u, new Vector3(4.5929565f, -2.52555f, 149.49255f), 418) { TargetTerritoryId = (ushort)155, SkipConditions = new SkipConditions @@ -136656,21 +163112,25 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.Interact, 1017887u, new Vector3(-147.87524f, 290.3255f, -155.99298f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017887u, new Vector3(-147.87524f, 290.3255f, -155.99298f), 155) { Fly = true }; obj38.Steps = list53; reference38 = obj38; - ref QuestSequence reference39 = ref span19[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Say, 2007423u, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 2007423u, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) { ChatMessage = new ChatMessage { @@ -136679,7 +163139,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list54; reference39 = obj39; - ref QuestSequence reference40 = ref span19[5]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 5 @@ -136687,7 +163148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list55)[0]; + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -136695,25 +163158,31 @@ public static class AssemblyQuestLoader num3 = 2; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span22 = CollectionsMarshal.AsSpan(list56); - span22[0] = 724u; - span22[1] = 725u; + Span span6 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span6[index3] = 724u; + index3++; + span6[index3] = 725u; obj41.KillEnemyDataIds = list56; reference41 = obj41; obj40.Steps = list55; reference40 = obj40; - ref QuestSequence reference42 = ref span19[6]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1017892u, new Vector3(-165.75879f, 289.35385f, -142.1684f), 155); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017892u, new Vector3(-165.75879f, 289.35385f, -142.1684f), 155); obj42.Steps = list57; reference42 = obj42; - ref QuestSequence reference43 = ref span19[7]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -136721,7 +163190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -136740,24 +163211,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "plogon_enjoyer"; questRoot8.Author = list59; - num = 2; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span23 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference44 = ref span23[0]; + index = 2; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj44.Steps = list61; reference44 = obj44; - ref QuestSequence reference45 = ref span23[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -136765,7 +163242,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401); + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401); obj45.Steps = list62; reference45 = obj45; questRoot8.QuestSequence = list60; @@ -136775,21 +163254,26 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "liza"; questRoot9.Author = list63; - num = 7; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span24 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference46 = ref span24[0]; + index = 7; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1016597u, new Vector3(-266.71252f, -20.034918f, -66.42261f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136804,17 +163288,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 419; + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span5 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span5[num3] = 419; obj48.InTerritory = list66; skipConditions5.AetheryteShortcutIf = obj48; obj47.SkipConditions = skipConditions5; reference47 = obj47; obj46.Steps = list65; reference46 = obj46; - ref QuestSequence reference48 = ref span24[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -136822,117 +163309,163 @@ public static class AssemblyQuestLoader num2 = 6; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span25 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference49 = ref span25[0]; + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.68442f, -20.03493f, -66.1965f), 419); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span26 = CollectionsMarshal.AsSpan(list68); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list68; skipConditions6.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions6; reference49 = questStep; - ref QuestStep reference50 = ref span25[1]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1011207u, new Vector3(-258.8083f, -20.03509f, -63.553833f), 419); - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span7 = CollectionsMarshal.AsSpan(list69); + 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); questStep2.CompletionQuestVariablesFlags = list69; reference50 = questStep2; - ref QuestStep reference51 = ref span25[2]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-226.53459f, -16.134916f, -51.93084f), 419); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list70; skipConditions7.StepIf = skipStepConditions3; questStep3.SkipConditions = skipConditions7; reference51 = questStep3; - ref QuestStep reference52 = ref span25[3]; + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1011202u, new Vector3(-228.10712f, -16.034918f, -49.912292f), 419); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + span7 = CollectionsMarshal.AsSpan(list71); + 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); questStep4.CompletionQuestVariablesFlags = list71; reference52 = questStep4; - ref QuestStep reference53 = ref span25[4]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.36649f, -16.134916f, -51.418564f), 419); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span30 = CollectionsMarshal.AsSpan(list72); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list72; skipConditions8.StepIf = skipStepConditions4; questStep5.SkipConditions = skipConditions8; reference53 = questStep5; - ref QuestStep reference54 = ref span25[5]; + index2++; + ref QuestStep reference54 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011204u, new Vector3(-203.6012f, -16.034918f, -53.23877f), 419); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span31 = CollectionsMarshal.AsSpan(list73); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span7 = CollectionsMarshal.AsSpan(list73); + 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); questStep6.CompletionQuestVariablesFlags = list73; reference54 = questStep6; obj49.Steps = list67; reference48 = obj49; - ref QuestSequence reference55 = ref span24[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj50.Steps = list74; reference55 = obj50; - ref QuestSequence reference56 = ref span24[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -136940,7 +163473,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136950,18 +163485,22 @@ public static class AssemblyQuestLoader }; obj51.Steps = list75; reference56 = obj51; - ref QuestSequence reference57 = ref span24[4]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2006709u, new Vector3(38.80359f, 16.494995f, -31.204712f), 419); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006709u, new Vector3(38.80359f, 16.494995f, -31.204712f), 419); obj52.Steps = list76; reference57 = obj52; - ref QuestSequence reference58 = ref span24[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 5 @@ -136969,21 +163508,26 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj53.Steps = list77; reference58 = obj53; - ref QuestSequence reference59 = ref span24[6]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006753u, new Vector3(-217.05963f, 88.09033f, -585.2598f), 397) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006753u, new Vector3(-217.05963f, 88.09033f, -585.2598f), 397) { Fly = true, NextQuestId = new QuestId(2227) @@ -136997,13 +163541,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot10.Author = list79; - num = 7; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span32 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference60 = ref span32[0]; + index = 7; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -137011,27 +163558,33 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016604u, new Vector3(-222.24768f, 88.525505f, -582.8794f), 397) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016604u, new Vector3(-222.24768f, 88.525505f, -582.8794f), 397) { StopDistance = 7f }; obj55.Steps = list81; reference60 = obj55; - ref QuestSequence reference61 = ref span32[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1016629u, new Vector3(409.9336f, 166.24477f, -448.661f), 397) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016629u, new Vector3(409.9336f, 166.24477f, -448.661f), 397) { Fly = true }; obj56.Steps = list82; reference61 = obj56; - ref QuestSequence reference62 = ref span32[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -137039,21 +163592,26 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1016612u, new Vector3(757.83923f, 186.03809f, -538.26196f), 397) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016612u, new Vector3(757.83923f, 186.03809f, -538.26196f), 397) { Fly = true }; obj57.Steps = list83; reference62 = obj57; - ref QuestSequence reference63 = ref span32[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference64 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(789.0687f, 186.03352f, -529.4571f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -137061,12 +163619,15 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 5536u; + span6 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span6[index3] = 5536u; obj59.KillEnemyDataIds = list85; reference64 = obj59; obj58.Steps = list84; reference63 = obj58; - ref QuestSequence reference65 = ref span32[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -137074,21 +163635,27 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2006763u, new Vector3(789.2728f, 186.44995f, -529.3507f), 397); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006763u, new Vector3(789.2728f, 186.44995f, -529.3507f), 397); obj60.Steps = list86; reference65 = obj60; - ref QuestSequence reference66 = ref span32[5]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1016617u, new Vector3(790.3716f, 186.03076f, -527.0314f), 397); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016617u, new Vector3(790.3716f, 186.03076f, -527.0314f), 397); obj61.Steps = list87; reference66 = obj61; - ref QuestSequence reference67 = ref span32[6]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -137096,7 +163663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2228) @@ -137110,24 +163679,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "liza"; questRoot11.Author = list89; - num = 6; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span33 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference68 = ref span33[0]; + index = 6; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj63.Steps = list91; reference68 = obj63; - ref QuestSequence reference69 = ref span33[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -137135,7 +163710,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1016600u, new Vector3(46.097534f, 15.8650675f, -27.298462f), 419) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016600u, new Vector3(46.097534f, 15.8650675f, -27.298462f), 419) { AethernetShortcut = new AethernetShortcut { @@ -137145,15 +163722,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list92; reference69 = obj64; - ref QuestSequence reference70 = ref span33[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1017131u, new Vector3(35.446655f, 15.965061f, -96.75751f), 419) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017131u, new Vector3(35.446655f, 15.965061f, -96.75751f), 419) { AethernetShortcut = new AethernetShortcut { @@ -137163,7 +163743,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list93; reference70 = obj65; - ref QuestSequence reference71 = ref span33[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -137171,7 +163752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1017278u, new Vector3(-158.31238f, 2.0333426f, -10.635559f), 418) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017278u, new Vector3(-158.31238f, 2.0333426f, -10.635559f), 418) { AethernetShortcut = new AethernetShortcut { @@ -137181,15 +163764,18 @@ public static class AssemblyQuestLoader }; obj66.Steps = list94; reference71 = obj66; - ref QuestSequence reference72 = ref span33[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1016607u, new Vector3(-260.12054f, -20.035f, -66.14789f), 419) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016607u, new Vector3(-260.12054f, -20.035f, -66.14789f), 419) { AethernetShortcut = new AethernetShortcut { @@ -137199,7 +163785,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list95; reference72 = obj67; - ref QuestSequence reference73 = ref span33[5]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -137207,7 +163794,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) { StopDistance = 5f, NextQuestId = new QuestId(2229) @@ -137221,27 +163810,33 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; questRoot12.Author = list97; - num = 8; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span34 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference74 = ref span34[0]; + index = 8; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) { StopDistance = 5f }; obj69.Steps = list99; reference74 = obj69; - ref QuestSequence reference75 = ref span34[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -137249,7 +163844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1011225u, new Vector3(-170.6112f, 16.979578f, -37.125244f), 418) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011225u, new Vector3(-170.6112f, 16.979578f, -37.125244f), 418) { AethernetShortcut = new AethernetShortcut { @@ -137259,22 +163856,26 @@ public static class AssemblyQuestLoader }; obj70.Steps = list100; reference75 = obj70; - ref QuestSequence reference76 = ref span34[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1017133u, new Vector3(408.07202f, 195.66847f, 585.3512f), 397) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017133u, new Vector3(408.07202f, 195.66847f, 585.3512f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj71.Steps = list101; reference76 = obj71; - ref QuestSequence reference77 = ref span34[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -137282,27 +163883,33 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 2007180u, new Vector3(262.10425f, 163.31726f, 295.67407f), 397) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007180u, new Vector3(262.10425f, 163.31726f, 295.67407f), 397) { Fly = true }; obj72.Steps = list102; reference77 = obj72; - ref QuestSequence reference78 = ref span34[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397) { Fly = true }; obj73.Steps = list103; reference78 = obj73; - ref QuestSequence reference79 = ref span34[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -137310,24 +163917,30 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397); obj74.Steps = list104; reference79 = obj74; - ref QuestSequence reference80 = ref span34[6]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1017277u, new Vector3(163.13416f, 166.2741f, 179.4613f), 397) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017277u, new Vector3(163.13416f, 166.2741f, 179.4613f), 397) { StopDistance = 5f }; obj75.Steps = list105; reference80 = obj75; - ref QuestSequence reference81 = ref span34[7]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -137335,7 +163948,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2369) @@ -137349,22 +163964,26 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot13.Author = list107; - num = 4; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span35 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference82 = ref span35[0]; + index = 4; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span36 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference83 = ref span36[0]; + index2 = 3; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -137372,22 +163991,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 351; + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span5 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span5[num3] = 351; skipStepConditions5.InTerritory = list110; skipConditions9.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 351; + span5 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span5[index3] = 351; skipAetheryteCondition5.InTerritory = list111; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition5; obj78.SkipConditions = skipConditions9; reference83 = obj78; - span36[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -137398,13 +164022,15 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj77.Steps = list109; reference82 = obj77; - ref QuestSequence reference84 = ref span35[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -137412,22 +164038,27 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1016631u, new Vector3(209.12476f, 256.37268f, -4.3793945f), 402) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016631u, new Vector3(209.12476f, 256.37268f, -4.3793945f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj79.Steps = list112; reference84 = obj79; - ref QuestSequence reference85 = ref span35[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -137436,7 +164067,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list113; reference85 = obj80; - ref QuestSequence reference86 = ref span35[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -137444,17 +164076,20 @@ public static class AssemblyQuestLoader num2 = 3; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span37 = CollectionsMarshal.AsSpan(list114); - span37[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span37[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2288) @@ -137468,27 +164103,33 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list115; - num = 5; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span38 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference87 = ref span38[0]; + index = 5; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012580u, new Vector3(16.006714f, 16.009666f, -3.189148f), 419) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012580u, new Vector3(16.006714f, 16.009666f, -3.189148f), 419) { StopDistance = 7f }; obj82.Steps = list117; reference87 = obj82; - ref QuestSequence reference88 = ref span38[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -137496,7 +164137,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1016531u, new Vector3(-323.99487f, 11.999983f, 44.96826f), 129) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016531u, new Vector3(-323.99487f, 11.999983f, 44.96826f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -137507,21 +164150,25 @@ public static class AssemblyQuestLoader }; obj83.Steps = list118; reference88 = obj83; - ref QuestSequence reference89 = ref span38[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1010388u, new Vector3(40.482178f, 20.495f, -650.96515f), 156) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010388u, new Vector3(40.482178f, 20.495f, -650.96515f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj84.Steps = list119; reference89 = obj84; - ref QuestSequence reference90 = ref span38[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -137529,95 +164176,134 @@ public static class AssemblyQuestLoader num2 = 6; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span39 = CollectionsMarshal.AsSpan(list120); - span39[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - ref QuestStep reference91 = ref span39[1]; + index2++; + ref QuestStep reference91 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1016541u, new Vector3(2.1514893f, 0f, -7.4921875f), 351); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span40 = CollectionsMarshal.AsSpan(list121); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span7 = CollectionsMarshal.AsSpan(list121); + 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); questStep7.CompletionQuestVariablesFlags = list121; reference91 = questStep7; - ref QuestStep reference92 = ref span39[2]; + index2++; + ref QuestStep reference92 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1016538u, new Vector3(14.572327f, 0f, -9.964172f), 351); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span41 = CollectionsMarshal.AsSpan(list122); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list122; reference92 = questStep8; - ref QuestStep reference93 = ref span39[3]; + index2++; + ref QuestStep reference93 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1016540u, new Vector3(31.967651f, -1f, -4.196289f), 351); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span42 = CollectionsMarshal.AsSpan(list123); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span7 = CollectionsMarshal.AsSpan(list123); + 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(0, (byte)8, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list123; reference93 = questStep9; - ref QuestStep reference94 = ref span39[4]; + index2++; + ref QuestStep reference94 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1016543u, new Vector3(33.0968f, -1f, 5.7526245f), 351); num3 = 6; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span43 = CollectionsMarshal.AsSpan(list124); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list124; reference94 = questStep10; - ref QuestStep reference95 = ref span39[5]; + index2++; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1016542u, new Vector3(36.27063f, -0.25946045f, 2.4871826f), 351) { StopDistance = 5f }; - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span44 = CollectionsMarshal.AsSpan(list125); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span7 = CollectionsMarshal.AsSpan(list125); + 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); obj86.CompletionQuestVariablesFlags = list125; reference95 = obj86; obj85.Steps = list120; reference90 = obj85; - ref QuestSequence reference96 = ref span38[4]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016535u, new Vector3(-2.6704102f, 0f, -5.2644043f), 351); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016535u, new Vector3(-2.6704102f, 0f, -5.2644043f), 351); obj87.Steps = list126; reference96 = obj87; questRoot14.QuestSequence = list116; @@ -137627,13 +164313,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list127; - num = 6; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span45 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference97 = ref span45[0]; + index = 5; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -137641,24 +164330,30 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016534u, new Vector3(-1.7243042f, 0f, -3.6469727f), 351); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016534u, new Vector3(-1.7243042f, 0f, -3.6469727f), 351); obj88.Steps = list129; reference97 = obj88; - ref QuestSequence reference98 = ref span45[1]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1016558u, new Vector3(43.74756f, 205.2239f, 19.638367f), 478) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016558u, new Vector3(43.74756f, 205.2239f, 19.638367f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj89.Steps = list130; reference98 = obj89; - ref QuestSequence reference99 = ref span45[2]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -137666,29 +164361,35 @@ public static class AssemblyQuestLoader num2 = 3; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span46 = CollectionsMarshal.AsSpan(list131); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 }; - span46[1] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { StopDistance = 0.25f, TargetTerritoryId = (ushort)463, Fly = true }; - span46[2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj90.Steps = list131; reference99 = obj90; - ref QuestSequence reference100 = ref span45[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 463) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 463) { DutyOptions = new DutyOptions { @@ -137698,11 +164399,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list132; reference100 = obj91; - span45[4] = new QuestSequence - { - Sequence = 4 - }; - ref QuestSequence reference101 = ref span45[5]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -137710,7 +164408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list133)[0]; + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.CompleteQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) { StopDistance = 7f @@ -137718,7 +164418,9 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC102_02232_Q1_000_121"), @@ -137735,27 +164437,33 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list135; - num = 3; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span47 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference103 = ref span47[0]; + index = 3; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) { StopDistance = 7f }; obj94.Steps = list137; reference103 = obj94; - ref QuestSequence reference104 = ref span47[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -137763,7 +164471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list138)[0]; + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -137773,10 +164483,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + span4 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC103_02233_Q1_000_021") @@ -137785,15 +164497,18 @@ public static class AssemblyQuestLoader reference105 = obj96; obj95.Steps = list138; reference104 = obj95; - ref QuestSequence reference106 = ref span47[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest @@ -137807,13 +164522,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list141; - num = 3; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span48 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference107 = ref span48[0]; + index = 3; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -137821,7 +164539,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -137834,16 +164554,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list143; reference107 = obj98; - ref QuestSequence reference108 = ref span48[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span49 = CollectionsMarshal.AsSpan(list144); - ref QuestStep reference109 = ref span49[0]; + index2 = 3; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + ref QuestStep reference109 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true @@ -137851,49 +164573,70 @@ public static class AssemblyQuestLoader num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span50 = CollectionsMarshal.AsSpan(list145); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list145; reference109 = obj100; - ref QuestStep reference110 = ref span49[1]; + num2++; + ref QuestStep reference110 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1016568u, new Vector3(465.5984f, 217.95128f, 752.7428f), 397) { Fly = true }; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span51 = CollectionsMarshal.AsSpan(list146); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span7 = CollectionsMarshal.AsSpan(list146); + 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); obj101.CompletionQuestVariablesFlags = list146; reference110 = obj101; - ref QuestStep reference111 = ref span49[2]; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span52 = CollectionsMarshal.AsSpan(list147); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list147; reference111 = questStep11; obj99.Steps = list144; reference108 = obj99; - ref QuestSequence reference112 = ref span48[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -137901,7 +164644,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) { Fly = true }; @@ -137914,21 +164659,26 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list149; - num = 5; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span53 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference113 = ref span53[0]; + index = 5; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -137941,7 +164691,8 @@ public static class AssemblyQuestLoader }; obj103.Steps = list151; reference113 = obj103; - ref QuestSequence reference114 = ref span53[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -137949,73 +164700,95 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span54 = CollectionsMarshal.AsSpan(list152); - ref QuestStep reference115 = ref span54[0]; + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference115 = ref span3[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 2006869u, new Vector3(334.7981f, 186.11426f, 442.22168f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span55 = CollectionsMarshal.AsSpan(list153); - span55[0] = 5537u; - span55[1] = 5538u; + index3 = 2; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + span6 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span6[num3] = 5537u; + num3++; + span6[num3] = 5538u; obj105.KillEnemyDataIds = list153; num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span56 = CollectionsMarshal.AsSpan(list154); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list154; reference115 = obj105; - ref QuestStep reference116 = ref span54[1]; + index2++; + ref QuestStep reference116 = ref span3[index2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2006870u, new Vector3(439.9939f, 165.45349f, 344.74695f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 5539u; + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span6 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span6[num3] = 5539u; obj106.KillEnemyDataIds = list155; num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span57 = CollectionsMarshal.AsSpan(list156); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list156; reference116 = obj106; obj104.Steps = list152; reference114 = obj104; - ref QuestSequence reference117 = ref span53[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj107.Steps = list157; reference117 = obj107; - ref QuestSequence reference118 = ref span53[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -138023,22 +164796,27 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1016573u, new Vector3(79.02649f, 117.196884f, 157.57996f), 397) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016573u, new Vector3(79.02649f, 117.196884f, 157.57996f), 397) { StopDistance = 1f, Fly = true }; obj108.Steps = list158; reference118 = obj108; - ref QuestSequence reference119 = ref span53[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest @@ -138052,13 +164830,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span58 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference120 = ref span58[0]; + index = 4; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -138066,7 +164847,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -138079,18 +164862,22 @@ public static class AssemblyQuestLoader }; obj110.Steps = list162; reference120 = obj110; - ref QuestSequence reference121 = ref span58[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397); obj111.Steps = list163; reference121 = obj111; - ref QuestSequence reference122 = ref span58[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -138098,67 +164885,92 @@ public static class AssemblyQuestLoader num2 = 4; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span59 = CollectionsMarshal.AsSpan(list164); - ref QuestStep reference123 = ref span59[0]; + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1016569u, new Vector3(495.32312f, 217.95135f, 742.6107f), 397); - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span60 = CollectionsMarshal.AsSpan(list165); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + span7 = CollectionsMarshal.AsSpan(list165); + 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); questStep12.CompletionQuestVariablesFlags = list165; reference123 = questStep12; - span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.6554f, 228.37697f, 752.68335f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.6554f, 228.37697f, 752.68335f), 397) { Fly = true }; - ref QuestStep reference124 = ref span59[2]; + index2++; + ref QuestStep reference124 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1016570u, new Vector3(520.0122f, 228.37695f, 752.7732f), 397); num3 = 6; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - Span span61 = CollectionsMarshal.AsSpan(list166); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list166; reference124 = questStep13; - ref QuestStep reference125 = ref span59[3]; + index2++; + ref QuestStep reference125 = ref span3[index2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1011235u, new Vector3(522.54517f, 228.3512f, 723.5675f), 397) { Fly = true }; - num3 = 6; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - Span span62 = CollectionsMarshal.AsSpan(list167); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list167 = new List(index3); + CollectionsMarshal.SetCount(list167, index3); + span7 = CollectionsMarshal.AsSpan(list167); + 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); obj113.CompletionQuestVariablesFlags = list167; reference125 = obj113; obj112.Steps = list164; reference122 = obj112; - ref QuestSequence reference126 = ref span58[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) { Fly = true }; @@ -138171,13 +164983,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span63 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference127 = ref span63[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -138185,7 +165000,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -138198,23 +165015,27 @@ public static class AssemblyQuestLoader }; obj115.Steps = list171; reference127 = obj115; - ref QuestSequence reference128 = ref span63[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span64 = CollectionsMarshal.AsSpan(list172); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 1016069u, new Vector3(540.3677f, 217.90826f, 769.0393f), 397); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016069u, new Vector3(540.3677f, 217.90826f, 769.0393f), 397); obj116.Steps = list172; reference128 = obj116; - ref QuestSequence reference129 = ref span63[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -138222,26 +165043,31 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span65 = CollectionsMarshal.AsSpan(list173); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) { Mount = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1016581u, new Vector3(477.37842f, 223.92603f, 872.6787f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016581u, new Vector3(477.37842f, 223.92603f, 872.6787f), 397) { Fly = true }; obj117.Steps = list173; reference129 = obj117; - ref QuestSequence reference130 = ref span63[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) { Fly = true }; @@ -138254,13 +165080,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list175; - num = 8; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span66 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference131 = ref span66[0]; + index = 8; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -138268,7 +165097,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -138281,16 +165112,18 @@ public static class AssemblyQuestLoader }; obj119.Steps = list177; reference131 = obj119; - ref QuestSequence reference132 = ref span66[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span67 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference133 = ref span67[0]; + index2 = 2; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref QuestStep reference133 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -138303,17 +165136,21 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q1_000_031") }; obj121.DialogueChoices = list179; reference133 = obj121; - span67[1] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); obj120.Steps = list178; reference132 = obj120; - ref QuestSequence reference134 = ref span66[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -138321,15 +165158,19 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list180)[0]; + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) { StopDistance = 7f }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + index3 = 1; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + span4 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q2_000_093"), @@ -138339,18 +165180,22 @@ public static class AssemblyQuestLoader reference135 = obj123; obj122.Steps = list180; reference134 = obj122; - ref QuestSequence reference136 = ref span66[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418); + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418); obj124.Steps = list182; reference136 = obj124; - ref QuestSequence reference137 = ref span66[4]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -138358,7 +165203,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AethernetShortcut = new AethernetShortcut { @@ -138368,15 +165215,18 @@ public static class AssemblyQuestLoader }; obj125.Steps = list183; reference137 = obj125; - ref QuestSequence reference138 = ref span66[5]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1016585u, new Vector3(-177.11151f, -12.534915f, -43.137268f), 419) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016585u, new Vector3(-177.11151f, -12.534915f, -43.137268f), 419) { AethernetShortcut = new AethernetShortcut { @@ -138386,7 +165236,8 @@ public static class AssemblyQuestLoader }; obj126.Steps = list184; reference138 = obj126; - ref QuestSequence reference139 = ref span66[6]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 6 @@ -138394,7 +165245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list185)[0]; + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference140 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -138406,7 +165259,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q3_000_223") @@ -138415,15 +165270,18 @@ public static class AssemblyQuestLoader reference140 = obj128; obj127.Steps = list185; reference139 = obj127; - ref QuestSequence reference141 = ref span66[7]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) { StopDistance = 7f }; @@ -138436,13 +165294,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list188; - num = 6; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span68 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference142 = ref span68[0]; + index = 6; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -138450,30 +165311,36 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) { StopDistance = 7f }; obj130.Steps = list190; reference142 = obj130; - ref QuestSequence reference143 = ref span68[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - Span span69 = CollectionsMarshal.AsSpan(list191); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) + index2 = 2; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span69[1] = new QuestStep(EInteractionType.Interact, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155); obj131.Steps = list191; reference143 = obj131; - ref QuestSequence reference144 = ref span68[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -138481,7 +165348,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -138490,22 +165359,27 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference144 = obj132; - span68[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference145 = ref span68[4]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1016072u, new Vector3(-53.543945f, 298.9f, -204.36407f), 155); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016072u, new Vector3(-53.543945f, 298.9f, -204.36407f), 155); obj133.Steps = list193; reference145 = obj133; - ref QuestSequence reference146 = ref span68[5]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -138513,12 +165387,14 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span70 = CollectionsMarshal.AsSpan(list194); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1016588u, new Vector3(-136.64453f, 304.15384f, -308.36963f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016588u, new Vector3(-136.64453f, 304.15384f, -308.36963f), 155); obj134.Steps = list194; reference146 = obj134; questRoot22.QuestSequence = list189; @@ -138528,27 +165404,33 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list195; - num = 4; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span71 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference147 = ref span71[0]; + index = 4; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016074u, new Vector3(-139.849f, 304.15384f, -309.8955f), 155) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016074u, new Vector3(-139.849f, 304.15384f, -309.8955f), 155) { StopDistance = 7f }; obj135.Steps = list197; reference147 = obj135; - ref QuestSequence reference148 = ref span71[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -138556,28 +165438,34 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) { StopDistance = 5f }; obj136.Steps = list198; reference148 = obj136; - ref QuestSequence reference149 = ref span71[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj137.Steps = list199; reference149 = obj137; - ref QuestSequence reference150 = ref span71[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -138585,15 +165473,19 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list200)[0]; + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj139 = new QuestStep(EInteractionType.CompleteQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) { StopDistance = 7f }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span4 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC110_02240_Q1_000_071"), @@ -138610,21 +165502,26 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list202; - num = 4; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span72 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference152 = ref span72[0]; + index = 4; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -138638,7 +165535,8 @@ public static class AssemblyQuestLoader }; obj140.Steps = list204; reference152 = obj140; - ref QuestSequence reference153 = ref span72[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 @@ -138646,27 +165544,33 @@ public static class AssemblyQuestLoader num2 = 2; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span73 = CollectionsMarshal.AsSpan(list205); - span73[0] = new QuestStep(EInteractionType.Interact, 1009973u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009973u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { TargetTerritoryId = (ushort)395, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span73[1] = new QuestStep(EInteractionType.Interact, 2006864u, new Vector3(-2.7924194f, -0.015319824f, 0.10675049f), 395); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006864u, new Vector3(-2.7924194f, -0.015319824f, 0.10675049f), 395); obj141.Steps = list205; reference153 = obj141; - ref QuestSequence reference154 = ref span72[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1016591u, new Vector3(-2.02948f, 0.014982708f, 4.562378f), 395); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016591u, new Vector3(-2.02948f, 0.014982708f, 4.562378f), 395); obj142.Steps = list206; reference154 = obj142; - ref QuestSequence reference155 = ref span72[3]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -138674,7 +165578,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -138692,27 +165598,33 @@ public static class AssemblyQuestLoader num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list208); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list208; - num = 4; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span74 = CollectionsMarshal.AsSpan(list209); - ref QuestSequence reference156 = ref span74[0]; + index = 4; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + span2 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { StopDistance = 7f }; obj144.Steps = list210; reference156 = obj144; - ref QuestSequence reference157 = ref span74[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -138720,27 +165632,32 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span75 = CollectionsMarshal.AsSpan(list211); - span75[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; - span75[1] = new QuestStep(EInteractionType.Interact, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; obj145.Steps = list211; reference157 = obj145; - ref QuestSequence reference158 = ref span74[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1016807u, new Vector3(92.851074f, 15.00001f, 38.254395f), 418) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016807u, new Vector3(92.851074f, 15.00001f, 38.254395f), 418) { AethernetShortcut = new AethernetShortcut { @@ -138750,7 +165667,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list212; reference158 = obj146; - ref QuestSequence reference159 = ref span74[3]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -138758,7 +165676,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); obj147.Steps = list213; reference159 = obj147; questRoot25.QuestSequence = list209; @@ -138768,24 +165688,30 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list214); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list214; - num = 3; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span76 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference160 = ref span76[0]; + index = 3; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + span2 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); obj148.Steps = list216; reference160 = obj148; - ref QuestSequence reference161 = ref span76[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -138793,21 +165719,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1016881u, new Vector3(110.30737f, 24.386719f, -2.3347168f), 418) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016881u, new Vector3(110.30737f, 24.386719f, -2.3347168f), 418) { StopDistance = 7f }; obj149.Steps = list217; reference161 = obj149; - ref QuestSequence reference162 = ref span76[2]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -138822,13 +165753,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list219; - num = 8; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span77 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference163 = ref span77[0]; + index = 7; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -138836,7 +165770,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016819u, new Vector3(-291.43213f, 39.04307f, 33.6156f), 398) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016819u, new Vector3(-291.43213f, 39.04307f, 33.6156f), 398) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -138850,22 +165786,26 @@ public static class AssemblyQuestLoader }; obj151.Steps = list221; reference163 = obj151; - ref QuestSequence reference164 = ref span77[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1016811u, new Vector3(234.5769f, -42.669212f, 615.28955f), 400) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016811u, new Vector3(234.5769f, -42.669212f, 615.28955f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj152.Steps = list222; reference164 = obj152; - ref QuestSequence reference165 = ref span77[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -138873,7 +165813,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2006956u, new Vector3(-758.35815f, 123.704834f, 214.52649f), 400) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006956u, new Vector3(-758.35815f, 123.704834f, 214.52649f), 400) { StopDistance = 1f, Fly = true, @@ -138881,21 +165823,25 @@ public static class AssemblyQuestLoader }; obj153.Steps = list223; reference165 = obj153; - ref QuestSequence reference166 = ref span77[3]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) { StopDistance = 5f }; obj154.Steps = list224; reference166 = obj154; - ref QuestSequence reference167 = ref span77[4]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 4 @@ -138903,21 +165849,26 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1016812u, new Vector3(-743.31274f, 83.799995f, 267.68896f), 400) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016812u, new Vector3(-743.31274f, 83.799995f, 267.68896f), 400) { Fly = true }; obj155.Steps = list225; reference167 = obj155; - ref QuestSequence reference168 = ref span77[5]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list226)[0]; + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference169 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Duty, null, null, 400); DutyOptions obj157 = new DutyOptions { @@ -138926,19 +165877,18 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span78 = CollectionsMarshal.AsSpan(list227); - span78[0] = "(boss 1) Doesn't knock all moogles out of the rez area"; - span78[1] = "(boss 3) Stack goal zone isn't properly removed from NPC, so the character will stack even for spread markers + slide into AOEs during ice"; + span = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span[index3] = "(boss 1) Doesn't knock all moogles out of the rez area"; + index3++; + span[index3] = "(boss 3) Stack goal zone isn't properly removed from NPC, so the character will stack even for spread markers + slide into AOEs during ice"; obj157.Notes = list227; questStep14.DutyOptions = obj157; reference169 = questStep14; obj156.Steps = list226; reference168 = obj156; - span77[6] = new QuestSequence - { - Sequence = 6 - }; - ref QuestSequence reference170 = ref span77[7]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -138946,7 +165896,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017011u, new Vector3(-758.3887f, 123.72872f, 210.77283f), 400) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017011u, new Vector3(-758.3887f, 123.72872f, 210.77283f), 400) { StopDistance = 7f }; @@ -138959,21 +165911,26 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "JerryWester"; questRoot28.Author = list229; - num = 5; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span79 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference171 = ref span79[0]; + index = 4; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -138987,11 +165944,13 @@ public static class AssemblyQuestLoader }; obj159.Steps = list231; reference171 = obj159; - span79[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference172 = ref span79[2]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -138999,7 +165958,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 569) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 569) { DutyOptions = new DutyOptions { @@ -139008,19 +165969,18 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference172 = obj160; - span79[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference173 = ref span79[4]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418); obj161.Steps = list233; reference173 = obj161; questRoot28.QuestSequence = list230; @@ -139030,13 +165990,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "JerryWester"; questRoot29.Author = list234; - num = 4; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span80 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference174 = ref span80[0]; + index = 4; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -139044,7 +166007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -139057,18 +166022,22 @@ public static class AssemblyQuestLoader }; obj162.Steps = list236; reference174 = obj162; - ref QuestSequence reference175 = ref span80[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1017024u, new Vector3(110.03284f, 24.383236f, -6.4851074f), 418); + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017024u, new Vector3(110.03284f, 24.383236f, -6.4851074f), 418); obj163.Steps = list237; reference175 = obj163; - ref QuestSequence reference176 = ref span80[2]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -139076,7 +166045,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -139087,20 +166058,23 @@ public static class AssemblyQuestLoader }; obj164.Steps = list238; reference176 = obj164; - ref QuestSequence reference177 = ref span80[3]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span81 = CollectionsMarshal.AsSpan(list239); - span81[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AethernetShortcut = new AethernetShortcut { @@ -139117,13 +166091,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list240); + index = 0; + span[index] = "JerryWester"; questRoot30.Author = list240; - num = 4; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span82 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference178 = ref span82[0]; + index = 4; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + span2 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -139131,26 +166108,33 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418); + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418); obj166.Steps = list242; reference178 = obj166; - ref QuestSequence reference179 = ref span82[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list243)[0]; + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref QuestStep reference180 = ref span3[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1016823u, new Vector3(124.833984f, 24.458836f, 0.62561035f), 418) { StopDistance = 4f }; - num3 = 1; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - CollectionsMarshal.AsSpan(list244)[0] = new DialogueChoice + index3 = 1; + List list244 = new List(index3); + CollectionsMarshal.SetCount(list244, index3); + span4 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVND106_02247_Q1_000_000") @@ -139159,7 +166143,8 @@ public static class AssemblyQuestLoader reference180 = obj168; obj167.Steps = list243; reference179 = obj167; - ref QuestSequence reference181 = ref span82[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -139167,19 +166152,23 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1016828u, new Vector3(169.26831f, -14.528959f, 36.697876f), 419); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016828u, new Vector3(169.26831f, -14.528959f, 36.697876f), 419); obj169.Steps = list245; reference181 = obj169; - ref QuestSequence reference182 = ref span82[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span83 = CollectionsMarshal.AsSpan(list246); - span83[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -139188,7 +166177,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; @@ -139201,13 +166191,16 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "liza"; questRoot31.Author = list247; - num = 7; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span84 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference183 = ref span84[0]; + index = 7; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -139215,24 +166208,30 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399); obj171.Steps = list249; reference183 = obj171; - ref QuestSequence reference184 = ref span84[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1016635u, new Vector3(-237.07947f, 123.32269f, -209.76581f), 399) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016635u, new Vector3(-237.07947f, 123.32269f, -209.76581f), 399) { Fly = true }; obj172.Steps = list250; reference184 = obj172; - ref QuestSequence reference185 = ref span84[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 @@ -139240,27 +166239,33 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1014408u, new Vector3(-36.30127f, 100.96971f, -182.90991f), 399) + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014408u, new Vector3(-36.30127f, 100.96971f, -182.90991f), 399) { Fly = true }; obj173.Steps = list251; reference185 = obj173; - ref QuestSequence reference186 = ref span84[3]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1016636u, new Vector3(53.910034f, 71.85243f, 76.76807f), 399) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016636u, new Vector3(53.910034f, 71.85243f, 76.76807f), 399) { Fly = true }; obj174.Steps = list252; reference186 = obj174; - ref QuestSequence reference187 = ref span84[4]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 @@ -139268,21 +166273,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1016642u, new Vector3(-94.98743f, 53.987366f, 180.46838f), 399) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016642u, new Vector3(-94.98743f, 53.987366f, 180.46838f), 399) { Fly = true }; obj175.Steps = list253; reference187 = obj175; - ref QuestSequence reference188 = ref span84[5]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139291,7 +166301,8 @@ public static class AssemblyQuestLoader }; obj176.Steps = list254; reference188 = obj176; - ref QuestSequence reference189 = ref span84[6]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -139299,7 +166310,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2250) @@ -139317,13 +166330,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -139331,21 +166347,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016637u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016637u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139354,7 +166375,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -139362,7 +166384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2251) @@ -139376,27 +166400,33 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -139404,7 +166434,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139413,15 +166445,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2252) @@ -139435,13 +166470,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "liza"; questRoot3.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -139449,21 +166487,26 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f }; obj7.Steps = list13; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139472,7 +166515,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -139480,8 +166524,9 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span4 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span4[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2007003u, new Vector3(0f, -67f, 15.5f), 553) { TargetTerritoryId = (ushort)399 @@ -139491,12 +166536,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 553; + Span span4 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span4[index3] = 553; skipStepConditions.NotInTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2253) @@ -139510,27 +166558,33 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot4.Author = list17; - num = 5; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span5[0]; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f }; obj11.Steps = list19; reference11 = obj11; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -139538,24 +166592,30 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1017001u, new Vector3(-38.651123f, 100.943344f, -182.17749f), 399) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017001u, new Vector3(-38.651123f, 100.943344f, -182.17749f), 399) { StopDistance = 5f }; obj12.Steps = list20; reference12 = obj12; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2006957u, new Vector3(-36.78955f, 100.96887f, -184.25275f), 399); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006957u, new Vector3(-36.78955f, 100.96887f, -184.25275f), 399); obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span5[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -139563,18 +166623,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1016641u, new Vector3(-49.94281f, 100.66968f, -148.45508f), 399); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016641u, new Vector3(-49.94281f, 100.66968f, -148.45508f), 399); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span5[4]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399) { Fly = true, NextQuestId = new QuestId(2335) @@ -139588,13 +166653,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot5.Author = list24; - num = 10; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference16 = ref span6[0]; + index = 10; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -139602,28 +166670,34 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj16.Steps = list26; reference16 = obj16; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1016835u, new Vector3(447.37915f, -51.141407f, 108.53735f), 398) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016835u, new Vector3(447.37915f, -51.141407f, 108.53735f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -139631,15 +166705,19 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list28)[0]; + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference19 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) { Fly = true }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA001_02255_Q1_000_031"), @@ -139649,15 +166727,18 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference20 = ref span6[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2006874u, new Vector3(222.156f, -74.93713f, 122.51465f), 398) { Fly = true, @@ -139666,12 +166747,15 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 5540u; + Span span6 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span6[index3] = 5540u; obj21.KillEnemyDataIds = list31; reference21 = obj21; obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference22 = ref span6[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -139679,30 +166763,36 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) { Fly = true }; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span6[5]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span7 = CollectionsMarshal.AsSpan(list33); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span7[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span6[6]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -139710,29 +166800,35 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span8 = CollectionsMarshal.AsSpan(list34); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) { Mount = true }; - span8[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span6[7]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398); obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span6[8]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 8 @@ -139740,36 +166836,43 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(215.13696f, -87.32745f, 217.94458f), 398) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(215.13696f, -87.32745f, 217.94458f), 398) { Fly = true, Action = EAction.Fumigate }; obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span6[9]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span9 = CollectionsMarshal.AsSpan(list37); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) { StopDistance = 2f, Fly = true }; - ref QuestStep reference28 = ref span9[1]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.CompleteQuest, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) { Mount = false }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA001_02255_Q1_000_105"), @@ -139786,13 +166889,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "AnimaMachinae"; questRoot6.Author = list39; - num = 10; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span10 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span10[0]; + index = 10; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -139800,7 +166906,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, Land = true, @@ -139815,15 +166923,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list41; reference29 = obj29; - ref QuestSequence reference30 = ref span10[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398) { Fly = true, @@ -139834,12 +166945,15 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = 5541u; + span6 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span6[index3] = 5541u; obj31.KillEnemyDataIds = list43; reference31 = obj31; obj30.Steps = list42; reference30 = obj30; - ref QuestSequence reference32 = ref span10[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -139847,31 +166961,37 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398); + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398); obj32.Steps = list44; reference32 = obj32; - ref QuestSequence reference33 = ref span10[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span11 = CollectionsMarshal.AsSpan(list45); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(875.1023f, -3.6736863f, 355.24545f), 398) + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(875.1023f, -3.6736863f, 355.24545f), 398) { Fly = true, Land = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 1016842u, new Vector3(-791.9585f, 113.93191f, -624.59753f), 397) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016842u, new Vector3(-791.9585f, 113.93191f, -624.59753f), 397) { Fly = true, Land = true }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span10[4]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -139879,28 +166999,34 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true, Land = true }; obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference35 = ref span10[5]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.UseItem, 2006877u, new Vector3(-276.63086f, 122.27051f, -45.02942f), 397) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2006877u, new Vector3(-276.63086f, 122.27051f, -45.02942f), 397) { ItemId = 2001950u }; obj35.Steps = list47; reference35 = obj35; - ref QuestSequence reference36 = ref span10[6]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 6 @@ -139908,18 +167034,23 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1016890u, new Vector3(-273.91473f, 122.361694f, -43.320435f), 397); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016890u, new Vector3(-273.91473f, 122.361694f, -43.320435f), 397); obj36.Steps = list48; reference36 = obj36; - ref QuestSequence reference37 = ref span10[7]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true, Land = true, @@ -139927,7 +167058,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span10[8]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 8 @@ -139935,22 +167067,27 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1016843u, new Vector3(103.16626f, -50.70595f, -184.31378f), 398) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016843u, new Vector3(103.16626f, -50.70595f, -184.31378f), 398) { Fly = true, Land = true }; obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span10[9]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, Land = true @@ -139964,13 +167101,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "Theo"; questRoot7.Author = list52; - num = 11; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span12 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span12[0]; + index = 11; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -139978,7 +167118,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -139992,34 +167134,40 @@ public static class AssemblyQuestLoader }; obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span12[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span13 = CollectionsMarshal.AsSpan(list55); - span13[0] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398) { Fly = true }; - ref QuestStep reference42 = ref span13[1]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 5542u, new Vector3(-731.547f, -116.99814f, 577.7823f), 398) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 5542u; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span6 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span6[num3] = 5542u; obj42.KillEnemyDataIds = list56; obj42.CombatDelaySecondsAtStart = 3f; reference42 = obj42; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference43 = ref span12[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -140027,19 +167175,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398); obj43.Steps = list57; reference43 = obj43; - ref QuestSequence reference44 = ref span12[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span14 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference45 = ref span14[0]; + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.4346f, -122.50925f, 578.51434f), 398) { Fly = true @@ -140049,18 +167201,22 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 399; + span4 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span4[index3] = 399; skipStepConditions2.InTerritory = list59; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference45 = obj45; - span14[1] = new QuestStep(EInteractionType.Interact, 1016845u, new Vector3(508.72046f, 77.65831f, 119.21863f), 399) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016845u, new Vector3(508.72046f, 77.65831f, 119.21863f), 399) { Fly = true }; obj44.Steps = list58; reference44 = obj44; - ref QuestSequence reference46 = ref span12[4]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 @@ -140068,7 +167224,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -140081,18 +167239,22 @@ public static class AssemblyQuestLoader }; obj46.Steps = list60; reference46 = obj46; - ref QuestSequence reference47 = ref span12[5]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478); obj47.Steps = list61; reference47 = obj47; - ref QuestSequence reference48 = ref span12[6]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 6 @@ -140100,37 +167262,44 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span15 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference49 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(147.913f, 207f, 118.226494f), 478) { Mount = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 399; + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span4 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span4[num3] = 399; skipStepConditions3.InTerritory = list63; skipConditions3.StepIf = skipStepConditions3; obj49.SkipConditions = skipConditions3; reference49 = obj49; - span15[1] = new QuestStep(EInteractionType.Interact, 1016996u, new Vector3(-85.80151f, 100.87653f, -325.185f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016996u, new Vector3(-85.80151f, 100.87653f, -325.185f), 399) { Fly = true }; obj48.Steps = list62; reference48 = obj48; - ref QuestSequence reference50 = ref span12[7]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140144,7 +167313,8 @@ public static class AssemblyQuestLoader }; obj50.Steps = list64; reference50 = obj50; - ref QuestSequence reference51 = ref span12[8]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 8 @@ -140152,21 +167322,26 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) { Fly = true }; obj51.Steps = list65; reference51 = obj51; - ref QuestSequence reference52 = ref span12[9]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Say, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) { ChatMessage = new ChatMessage { @@ -140175,7 +167350,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list66; reference52 = obj52; - ref QuestSequence reference53 = ref span12[10]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -140183,7 +167359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true }; @@ -140196,21 +167374,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "Theo"; questRoot8.Author = list68; - num = 9; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span16 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference54 = ref span16[0]; + index = 9; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140224,7 +167407,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list70; reference54 = obj54; - ref QuestSequence reference55 = ref span16[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -140232,7 +167416,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1016849u, new Vector3(-209.46063f, -46.08357f, 222.52222f), 398) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016849u, new Vector3(-209.46063f, -46.08357f, 222.52222f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140246,21 +167432,25 @@ public static class AssemblyQuestLoader }; obj55.Steps = list71; reference55 = obj55; - ref QuestSequence reference56 = ref span16[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj56.Steps = list72; reference56 = obj56; - ref QuestSequence reference57 = ref span16[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -140268,7 +167458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list73)[0]; + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) { Fly = true @@ -140276,7 +167468,9 @@ public static class AssemblyQuestLoader num3 = 1; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA004_02258_Q1_000_051"), @@ -140286,64 +167480,84 @@ public static class AssemblyQuestLoader reference58 = obj58; obj57.Steps = list73; reference57 = obj57; - ref QuestSequence reference59 = ref span16[4]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span17 = CollectionsMarshal.AsSpan(list75); - ref QuestStep reference60 = ref span17[0]; + index2 = 2; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Combat, null, new Vector3(-68.02277f, -33.766434f, -164.5872f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 5543u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span6 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span6[num3] = 5543u; obj60.KillEnemyDataIds = list76; num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span18 = CollectionsMarshal.AsSpan(list77); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj60.CompletionQuestVariablesFlags = list77; reference60 = obj60; - ref QuestStep reference61 = ref span17[1]; + num2++; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-67.26527f, -34.505165f, 89.80089f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 5543u; + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span6 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span6[num3] = 5543u; obj61.KillEnemyDataIds = list78; num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span19 = CollectionsMarshal.AsSpan(list79); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list79; reference61 = obj61; obj59.Steps = list75; reference59 = obj59; - ref QuestSequence reference62 = ref span16[5]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 5 @@ -140351,24 +167565,30 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) { Fly = true }; obj62.Steps = list80; reference62 = obj62; - ref QuestSequence reference63 = ref span16[6]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398); obj63.Steps = list81; reference63 = obj63; - ref QuestSequence reference64 = ref span16[7]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 7 @@ -140376,21 +167596,26 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj64.Steps = list82; reference64 = obj64; - ref QuestSequence reference65 = ref span16[8]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; @@ -140403,13 +167628,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "Censored"; questRoot9.Author = list84; - num = 6; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span20 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span20[0]; + index = 6; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -140417,7 +167645,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140436,21 +167666,25 @@ public static class AssemblyQuestLoader }; obj66.Steps = list86; reference66 = obj66; - ref QuestSequence reference67 = ref span20[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj67.Steps = list87; reference67 = obj67; - ref QuestSequence reference68 = ref span20[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -140458,34 +167692,42 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list88)[0]; + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference69 = ref span3[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(230.88948f, -103.47084f, 588.0345f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span21 = CollectionsMarshal.AsSpan(list89); - span21[0] = 5544u; - span21[1] = 5545u; + index3 = 2; + List list89 = new List(index3); + CollectionsMarshal.SetCount(list89, index3); + span6 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span6[num3] = 5544u; + num3++; + span6[num3] = 5545u; obj69.KillEnemyDataIds = list89; reference69 = obj69; obj68.Steps = list88; reference68 = obj68; - ref QuestSequence reference70 = ref span20[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1016851u, new Vector3(230.88416f, -103.38962f, 588.67773f), 398); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016851u, new Vector3(230.88416f, -103.38962f, 588.67773f), 398); obj70.Steps = list90; reference70 = obj70; - ref QuestSequence reference71 = ref span20[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -140493,21 +167735,26 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1016891u, new Vector3(297.2915f, -119.91257f, 681.1168f), 398) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016891u, new Vector3(297.2915f, -119.91257f, 681.1168f), 398) { Fly = true }; obj71.Steps = list91; reference71 = obj71; - ref QuestSequence reference72 = ref span20[5]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine @@ -140521,13 +167768,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "plogon_enjoyer"; questRoot10.Author = list93; - num = 2; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span22 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference73 = ref span22[0]; + index = 2; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -140535,18 +167785,23 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398); obj73.Steps = list95; reference73 = obj73; - ref QuestSequence reference74 = ref span22[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; @@ -140559,13 +167814,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "plogon_enjoyer"; questRoot11.Author = list97; - num = 3; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span23 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span23[0]; + index = 3; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -140573,19 +167831,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj75.Steps = list99; reference75 = obj75; - ref QuestSequence reference76 = ref span23[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span24 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference77 = ref span24[0]; + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference77 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2006883u, new Vector3(31.418213f, -65.32391f, 111.74182f), 398) { Fly = true, @@ -140594,28 +167856,35 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 5550u; + span6 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span6[index3] = 5550u; obj77.KillEnemyDataIds = list101; reference77 = obj77; - ref QuestStep reference78 = ref span24[1]; + num2++; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2006882u, new Vector3(307.05725f, -66.54462f, 163.43933f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 5550u; + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + span6 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span6[num3] = 5550u; obj78.KillEnemyDataIds = list102; reference78 = obj78; - span24[2] = new QuestStep(EInteractionType.Interact, 2006881u, new Vector3(352.25452f, -51.07196f, -46.982605f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006881u, new Vector3(352.25452f, -51.07196f, -46.982605f), 398) { Fly = true }; obj76.Steps = list100; reference76 = obj76; - ref QuestSequence reference79 = ref span23[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -140623,12 +167892,14 @@ public static class AssemblyQuestLoader num2 = 2; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span25 = CollectionsMarshal.AsSpan(list103); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj79.Steps = list103; reference79 = obj79; questRoot11.QuestSequence = list98; @@ -140638,24 +167909,30 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "plogon_enjoyer"; questRoot12.Author = list104; - num = 5; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span26 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference80 = ref span26[0]; + index = 5; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj80.Steps = list106; reference80 = obj80; - ref QuestSequence reference81 = ref span26[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -140663,38 +167940,45 @@ public static class AssemblyQuestLoader num2 = 3; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span27 = CollectionsMarshal.AsSpan(list107); - span27[0] = new QuestStep(EInteractionType.Interact, 2006886u, new Vector3(237.65918f, -71.45807f, 99.01575f), 398) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006886u, new Vector3(237.65918f, -71.45807f, 99.01575f), 398) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 2006885u, new Vector3(284.5349f, -67.61273f, 83.878784f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006885u, new Vector3(284.5349f, -67.61273f, 83.878784f), 398) { Fly = true }; - span27[2] = new QuestStep(EInteractionType.Interact, 2006884u, new Vector3(294.94165f, -68.92505f, 129.19812f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006884u, new Vector3(294.94165f, -68.92505f, 129.19812f), 398) { Fly = true }; obj81.Steps = list107; reference81 = obj81; - ref QuestSequence reference82 = ref span26[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span28 = CollectionsMarshal.AsSpan(list108); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span28[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj82.Steps = list108; reference82 = obj82; - ref QuestSequence reference83 = ref span26[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -140702,32 +167986,37 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span29 = CollectionsMarshal.AsSpan(list109); - span29[0] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span29[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) { Fly = true }; obj83.Steps = list109; reference83 = obj83; - ref QuestSequence reference84 = ref span26[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span30 = CollectionsMarshal.AsSpan(list110); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj84.Steps = list110; reference84 = obj84; questRoot12.QuestSequence = list105; @@ -140737,13 +168026,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "plogon_enjoyer"; questRoot13.Author = list111; - num = 6; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span31 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference85 = ref span31[0]; + index = 6; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -140751,19 +168043,23 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj85.Steps = list113; reference85 = obj85; - ref QuestSequence reference86 = ref span31[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span32 = CollectionsMarshal.AsSpan(list114); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 2.5f, Fly = true, @@ -140780,10 +168076,12 @@ public static class AssemblyQuestLoader } } }; - span32[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj86.Steps = list114; reference86 = obj86; - ref QuestSequence reference87 = ref span31[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -140791,29 +168089,35 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Action, 2006887u, new Vector3(523.4302f, -50.370117f, 90.86743f), 398) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2006887u, new Vector3(523.4302f, -50.370117f, 90.86743f), 398) { Fly = true, Action = EAction.Fumigate }; obj87.Steps = list115; reference87 = obj87; - ref QuestSequence reference88 = ref span31[3]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Action, 2006970u, new Vector3(517.4791f, -50.644714f, 89.00586f), 398) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2006970u, new Vector3(517.4791f, -50.644714f, 89.00586f), 398) { Fly = true, Action = EAction.Fumigate }; obj88.Steps = list116; reference88 = obj88; - ref QuestSequence reference89 = ref span31[4]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -140821,34 +168125,39 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span33 = CollectionsMarshal.AsSpan(list117); - span33[0] = new QuestStep(EInteractionType.Action, 2006889u, new Vector3(689.7229f, -52.262207f, 62.088867f), 398) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2006889u, new Vector3(689.7229f, -52.262207f, 62.088867f), 398) { Fly = true, Action = EAction.Fumigate }; - span33[1] = new QuestStep(EInteractionType.Action, 2006888u, new Vector3(586.1753f, -37.979797f, 257.3739f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2006888u, new Vector3(586.1753f, -37.979797f, 257.3739f), 398) { Fly = true, Action = EAction.Fumigate }; obj89.Steps = list117; reference89 = obj89; - ref QuestSequence reference90 = ref span31[5]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span34 = CollectionsMarshal.AsSpan(list118); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj90.Steps = list118; reference90 = obj90; questRoot13.QuestSequence = list112; @@ -140858,13 +168167,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "plogon_enjoyer"; questRoot14.Author = list119; - num = 3; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span35 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference91 = ref span35[0]; + index = 3; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -140872,19 +168184,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj91.Steps = list121; reference91 = obj91; - ref QuestSequence reference92 = ref span35[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span36 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference93 = ref span36[0]; + index2 = 3; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, 2006872u, new Vector3(333.82153f, -47.53192f, -331.53284f), 398) { Fly = true, @@ -140893,28 +168209,35 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 5546u; + span6 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span6[index3] = 5546u; obj93.KillEnemyDataIds = list123; reference93 = obj93; - span36[1] = new QuestStep(EInteractionType.Interact, 2006871u, new Vector3(559.71606f, -41.24518f, -333.1808f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006871u, new Vector3(559.71606f, -41.24518f, -333.1808f), 398) { Fly = true }; - ref QuestStep reference94 = ref span36[2]; + num2++; + ref QuestStep reference94 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, 2006873u, new Vector3(707.7285f, -50.095398f, -151.47632f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 5546u; + index3 = 1; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span6 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span6[num3] = 5546u; obj94.KillEnemyDataIds = list124; reference94 = obj94; obj92.Steps = list122; reference92 = obj92; - ref QuestSequence reference95 = ref span35[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -140922,8 +168245,9 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span37 = CollectionsMarshal.AsSpan(list125); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140940,7 +168264,8 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj95.Steps = list125; reference95 = obj95; questRoot14.QuestSequence = list120; @@ -140950,24 +168275,30 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "plogon_enjoyer"; questRoot15.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span38 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference96 = ref span38[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj96.Steps = list128; reference96 = obj96; - ref QuestSequence reference97 = ref span38[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -140975,43 +168306,51 @@ public static class AssemblyQuestLoader num2 = 6; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span39 = CollectionsMarshal.AsSpan(list129); - span39[0] = new QuestStep(EInteractionType.Interact, 2006897u, new Vector3(88.48706f, -123.43024f, 561.7914f), 398) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006897u, new Vector3(88.48706f, -123.43024f, 561.7914f), 398) { Fly = true }; - span39[1] = new QuestStep(EInteractionType.Interact, 2006899u, new Vector3(137.1023f, -120.01227f, 586.08374f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006899u, new Vector3(137.1023f, -120.01227f, 586.08374f), 398) { Fly = true }; - span39[2] = new QuestStep(EInteractionType.Interact, 2006898u, new Vector3(111.86377f, -119.035645f, 617.4868f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006898u, new Vector3(111.86377f, -119.035645f, 617.4868f), 398) { Fly = true }; - span39[3] = new QuestStep(EInteractionType.Interact, 2006894u, new Vector3(223.22424f, -123.6134f, 697.6272f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006894u, new Vector3(223.22424f, -123.6134f, 697.6272f), 398) { Fly = true }; - span39[4] = new QuestStep(EInteractionType.Interact, 2006892u, new Vector3(209.1554f, -123.12512f, 767.91016f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006892u, new Vector3(209.1554f, -123.12512f, 767.91016f), 398) { Fly = true }; - span39[5] = new QuestStep(EInteractionType.Interact, 2006893u, new Vector3(291.03528f, -119.40192f, 664.6676f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006893u, new Vector3(291.03528f, -119.40192f, 664.6676f), 398) { Fly = true }; obj97.Steps = list129; reference97 = obj97; - ref QuestSequence reference98 = ref span38[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span40 = CollectionsMarshal.AsSpan(list130); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141028,7 +168367,8 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj98.Steps = list130; reference98 = obj98; questRoot15.QuestSequence = list127; @@ -141038,13 +168378,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list131; - num = 3; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span41 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference99 = ref span41[0]; + index = 3; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -141052,45 +168395,55 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj99.Steps = list133; reference99 = obj99; - ref QuestSequence reference100 = ref span41[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span42 = CollectionsMarshal.AsSpan(list134); - span42[0] = new QuestStep(EInteractionType.Interact, 2006903u, new Vector3(20.004517f, -84.00098f, 282.15454f), 398) + index2 = 6; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006903u, new Vector3(20.004517f, -84.00098f, 282.15454f), 398) { Fly = true }; - span42[1] = new QuestStep(EInteractionType.Interact, 2006904u, new Vector3(52.68933f, -100.572266f, 317.1283f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006904u, new Vector3(52.68933f, -100.572266f, 317.1283f), 398) { Mount = true }; - span42[2] = new QuestStep(EInteractionType.Interact, 2006905u, new Vector3(6.301941f, -100.206055f, 351.43042f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006905u, new Vector3(6.301941f, -100.206055f, 351.43042f), 398) { Mount = true }; - span42[3] = new QuestStep(EInteractionType.Interact, 2006902u, new Vector3(-317.49445f, -80.55243f, 632.59326f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006902u, new Vector3(-317.49445f, -80.55243f, 632.59326f), 398) { Fly = true }; - span42[4] = new QuestStep(EInteractionType.Interact, 2006901u, new Vector3(-336.96503f, -80.55243f, 655.08496f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006901u, new Vector3(-336.96503f, -80.55243f, 655.08496f), 398) { Mount = true }; - span42[5] = new QuestStep(EInteractionType.Interact, 2006900u, new Vector3(-379.75128f, -75.21173f, 669.2759f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006900u, new Vector3(-379.75128f, -75.21173f, 669.2759f), 398) { Fly = true }; obj100.Steps = list134; reference100 = obj100; - ref QuestSequence reference101 = ref span41[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -141098,8 +168451,9 @@ public static class AssemblyQuestLoader num2 = 2; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span43 = CollectionsMarshal.AsSpan(list135); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141116,7 +168470,8 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj101.Steps = list135; reference101 = obj101; questRoot16.QuestSequence = list132; @@ -141126,24 +168481,30 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list136; - num = 3; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span44 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference102 = ref span44[0]; + index = 3; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj102.Steps = list138; reference102 = obj102; - ref QuestSequence reference103 = ref span44[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -141151,8 +168512,9 @@ public static class AssemblyQuestLoader num2 = 4; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span45 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference104 = ref span45[0]; + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Combat, 2006909u, new Vector3(-124.37634f, -86.07617f, 763.6987f), 398) { Fly = true, @@ -141161,41 +168523,50 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 5548u; + span6 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span6[index3] = 5548u; obj104.KillEnemyDataIds = list140; reference104 = obj104; - span45[1] = new QuestStep(EInteractionType.Interact, 2006906u, new Vector3(-178.51532f, -86.167725f, 775.845f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006906u, new Vector3(-178.51532f, -86.167725f, 775.845f), 398) { Fly = true }; - ref QuestStep reference105 = ref span45[2]; + index2++; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 2006908u, new Vector3(-305.745f, -68.13159f, 812.7717f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 5548u; + index3 = 1; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + span6 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span6[num3] = 5548u; obj105.KillEnemyDataIds = list141; reference105 = obj105; - span45[3] = new QuestStep(EInteractionType.Interact, 2006907u, new Vector3(-303.36462f, -80.52191f, 734.15735f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006907u, new Vector3(-303.36462f, -80.52191f, 734.15735f), 398) { Fly = true }; obj103.Steps = list139; reference103 = obj103; - ref QuestSequence reference106 = ref span44[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span46 = CollectionsMarshal.AsSpan(list142); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141212,7 +168583,8 @@ public static class AssemblyQuestLoader } } }; - span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj106.Steps = list142; reference106 = obj106; questRoot17.QuestSequence = list137; @@ -141222,13 +168594,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list143; - num = 4; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span47 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference107 = ref span47[0]; + index = 4; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -141236,33 +168611,40 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj107.Steps = list145; reference107 = obj107; - ref QuestSequence reference108 = ref span47[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span48 = CollectionsMarshal.AsSpan(list146); - span48[0] = new QuestStep(EInteractionType.Interact, 2006913u, new Vector3(566.7964f, -20.553955f, -530.2052f), 398) + index2 = 3; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006913u, new Vector3(566.7964f, -20.553955f, -530.2052f), 398) { Fly = true }; - span48[1] = new QuestStep(EInteractionType.Interact, 2006914u, new Vector3(595.3917f, -20.187744f, -547.4785f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006914u, new Vector3(595.3917f, -20.187744f, -547.4785f), 398) { Fly = true }; - span48[2] = new QuestStep(EInteractionType.Interact, 2006912u, new Vector3(639.8259f, -19.60791f, -588.098f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006912u, new Vector3(639.8259f, -19.60791f, -588.098f), 398) { Fly = true }; obj108.Steps = list146; reference108 = obj108; - ref QuestSequence reference109 = ref span47[2]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -141270,24 +168652,29 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span49 = CollectionsMarshal.AsSpan(list147); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span49[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj109.Steps = list147; reference109 = obj109; - ref QuestSequence reference110 = ref span47[3]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016855u, new Vector3(74.906494f, -48f, -175.67712f), 398); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016855u, new Vector3(74.906494f, -48f, -175.67712f), 398); obj110.Steps = list148; reference110 = obj110; questRoot18.QuestSequence = list144; @@ -141297,13 +168684,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "AnimaMachinae"; questRoot19.Author = list149; - num = 6; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span50 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference111 = ref span50[0]; + index = 6; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -141311,19 +168701,23 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj111.Steps = list151; reference111 = obj111; - ref QuestSequence reference112 = ref span50[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span51 = CollectionsMarshal.AsSpan(list152); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 3f, Fly = true, @@ -141340,10 +168734,12 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj112.Steps = list152; reference112 = obj112; - ref QuestSequence reference113 = ref span50[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -141351,29 +168747,35 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Action, 2006915u, new Vector3(96.45227f, -66.2395f, 616.6017f), 398) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2006915u, new Vector3(96.45227f, -66.2395f, 616.6017f), 398) { Fly = true, Action = EAction.Fumigate }; obj113.Steps = list153; reference113 = obj113; - ref QuestSequence reference114 = ref span50[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Action, 2006916u, new Vector3(-149.95044f, -55.25299f, 541.37476f), 398) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2006916u, new Vector3(-149.95044f, -55.25299f, 541.37476f), 398) { Fly = true, Action = EAction.Fumigate }; obj114.Steps = list154; reference114 = obj114; - ref QuestSequence reference115 = ref span50[4]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -141381,28 +168783,33 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Action, 2006917u, new Vector3(-625.0859f, -49.94281f, 491.02002f), 398) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2006917u, new Vector3(-625.0859f, -49.94281f, 491.02002f), 398) { Fly = true, Action = EAction.Fumigate }; obj115.Steps = list155; reference115 = obj115; - ref QuestSequence reference116 = ref span50[5]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - Span span52 = CollectionsMarshal.AsSpan(list156); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span52[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj116.Steps = list156; reference116 = obj116; questRoot19.QuestSequence = list150; @@ -141412,13 +168819,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "AnimaMachinae"; questRoot20.Author = list157; - num = 5; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span53 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference117 = ref span53[0]; + index = 5; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -141426,28 +168836,34 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj117.Steps = list159; reference117 = obj117; - ref QuestSequence reference118 = ref span53[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span54 = CollectionsMarshal.AsSpan(list160); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span54[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj118.Steps = list160; reference118 = obj118; - ref QuestSequence reference119 = ref span53[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -141455,8 +168871,9 @@ public static class AssemblyQuestLoader num2 = 3; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span55 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference120 = ref span55[0]; + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + ref QuestStep reference120 = ref span3[index2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, 2006918u, new Vector3(475.69995f, -44.174927f, -231.46417f), 398) { Fly = true, @@ -141467,21 +168884,30 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 71224u; + span6 = CollectionsMarshal.AsSpan(list162); + index3 = 0; + span6[index3] = 71224u; obj120.KillEnemyDataIds = list162; - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span56 = CollectionsMarshal.AsSpan(list163); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list163 = new List(index3); + CollectionsMarshal.SetCount(list163, index3); + span7 = CollectionsMarshal.AsSpan(list163); + 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); obj120.CompletionQuestVariablesFlags = list163; reference120 = obj120; - ref QuestStep reference121 = ref span55[1]; + index2++; + ref QuestStep reference121 = ref span3[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Combat, 2006920u, new Vector3(329.4879f, -45.487183f, -262.13477f), 398) { Fly = true, @@ -141492,21 +168918,30 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = 5548u; + span6 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span6[index3] = 5548u; obj121.KillEnemyDataIds = list164; - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span57 = CollectionsMarshal.AsSpan(list165); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + span7 = CollectionsMarshal.AsSpan(list165); + 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); obj121.CompletionQuestVariablesFlags = list165; reference121 = obj121; - ref QuestStep reference122 = ref span55[2]; + index2++; + ref QuestStep reference122 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2006919u, new Vector3(535.45435f, -32.39496f, -410.60504f), 398) { Fly = true, @@ -141517,30 +168952,36 @@ public static class AssemblyQuestLoader num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = 71224u; + span6 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span6[index3] = 71224u; obj122.KillEnemyDataIds = list166; reference122 = obj122; obj119.Steps = list161; reference119 = obj119; - ref QuestSequence reference123 = ref span53[3]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span58 = CollectionsMarshal.AsSpan(list167); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span58[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj123.Steps = list167; reference123 = obj123; - ref QuestSequence reference124 = ref span53[4]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -141548,8 +168989,9 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span59 = CollectionsMarshal.AsSpan(list168); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141566,7 +169008,8 @@ public static class AssemblyQuestLoader } } }; - span59[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj124.Steps = list168; reference124 = obj124; questRoot20.QuestSequence = list158; @@ -141576,24 +169019,30 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "AnimaMachinae"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "AnimaMachinae"; questRoot21.Author = list169; - num = 7; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span60 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference125 = ref span60[0]; + index = 7; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj125.Steps = list171; reference125 = obj125; - ref QuestSequence reference126 = ref span60[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -141601,25 +169050,31 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj126.Steps = list172; reference126 = obj126; - ref QuestSequence reference127 = ref span60[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2006922u, new Vector3(-481.0102f, -93.18689f, 474.69275f), 398); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006922u, new Vector3(-481.0102f, -93.18689f, 474.69275f), 398); obj127.Steps = list173; reference127 = obj127; - ref QuestSequence reference128 = ref span60[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -141627,21 +169082,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); obj128.Steps = list174; reference128 = obj128; - ref QuestSequence reference129 = ref span60[4]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 2006923u, new Vector3(-477.59216f, -93.003784f, 475.18103f), 398); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006923u, new Vector3(-477.59216f, -93.003784f, 475.18103f), 398); obj129.Steps = list175; reference129 = obj129; - ref QuestSequence reference130 = ref span60[5]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 5 @@ -141649,19 +169110,23 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); obj130.Steps = list176; reference130 = obj130; - ref QuestSequence reference131 = ref span60[6]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span61 = CollectionsMarshal.AsSpan(list177); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141678,7 +169143,8 @@ public static class AssemblyQuestLoader } } }; - span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj131.Steps = list177; reference131 = obj131; questRoot21.QuestSequence = list170; @@ -141688,13 +169154,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "plogon_enjoyer"; questRoot22.Author = list178; - num = 5; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span62 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference132 = ref span62[0]; + index = 5; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -141702,19 +169171,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj132.Steps = list180; reference132 = obj132; - ref QuestSequence reference133 = ref span62[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span63 = CollectionsMarshal.AsSpan(list181); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 3f, Fly = true, @@ -141731,10 +169204,12 @@ public static class AssemblyQuestLoader } } }; - span63[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj133.Steps = list181; reference133 = obj133; - ref QuestSequence reference134 = ref span62[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -141742,41 +169217,52 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-190.26477f, -104.73892f, 512.932f), 398) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-190.26477f, -104.73892f, 512.932f), 398) { Fly = true, Action = EAction.Fumigate }; obj134.Steps = list182; reference134 = obj134; - ref QuestSequence reference135 = ref span62[3]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span64 = CollectionsMarshal.AsSpan(list183); - ref QuestStep reference136 = ref span64[0]; + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference136 = ref span3[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Action, null, new Vector3(-13.443237f, -129.2623f, 712.21484f), 398) { Fly = true, Action = EAction.Fumigate }; - num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span65 = CollectionsMarshal.AsSpan(list184); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + span7 = CollectionsMarshal.AsSpan(list184); + 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); obj136.CompletionQuestVariablesFlags = list184; reference136 = obj136; - ref QuestStep reference137 = ref span64[1]; + num2++; + ref QuestStep reference137 = ref span3[num2]; QuestStep obj137 = new QuestStep(EInteractionType.Action, null, new Vector3(45.151367f, -132.12938f, 685.7556f), 398) { Fly = true, @@ -141785,18 +169271,25 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span66 = CollectionsMarshal.AsSpan(list185); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj137.CompletionQuestVariablesFlags = list185; reference137 = obj137; obj135.Steps = list183; reference135 = obj135; - ref QuestSequence reference138 = ref span62[4]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -141804,13 +169297,15 @@ public static class AssemblyQuestLoader num2 = 2; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span67 = CollectionsMarshal.AsSpan(list186); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj138.Steps = list186; reference138 = obj138; questRoot22.QuestSequence = list179; @@ -141820,24 +169315,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "plogon_enjoyer"; questRoot23.Author = list187; - num = 4; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span68 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference139 = ref span68[0]; + index = 4; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj139.Steps = list189; reference139 = obj139; - ref QuestSequence reference140 = ref span68[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -141845,36 +169346,44 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 2006930u, new Vector3(510.3684f, -26.077698f, -592.3705f), 398) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006930u, new Vector3(510.3684f, -26.077698f, -592.3705f), 398) { Fly = true }; obj140.Steps = list190; reference140 = obj140; - ref QuestSequence reference141 = ref span68[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list191)[0]; + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2006931u, new Vector3(358.81592f, -51.98755f, -137.89581f), 398) { Fly = true, ItemId = 2001963u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - CollectionsMarshal.AsSpan(list192)[0] = 5552u; + index3 = 1; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + span6 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span6[num3] = 5552u; obj142.KillEnemyDataIds = list192; reference142 = obj142; obj141.Steps = list191; reference141 = obj141; - ref QuestSequence reference143 = ref span68[3]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -141882,12 +169391,14 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span69 = CollectionsMarshal.AsSpan(list193); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj143.Steps = list193; reference143 = obj143; questRoot23.QuestSequence = list188; @@ -141897,24 +169408,30 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "plogon_enjoyer"; questRoot24.Author = list194; - num = 4; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span70 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference144 = ref span70[0]; + index = 4; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj144.Steps = list196; reference144 = obj144; - ref QuestSequence reference145 = ref span70[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -141922,43 +169439,51 @@ public static class AssemblyQuestLoader num2 = 6; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span71 = CollectionsMarshal.AsSpan(list197); - span71[0] = new QuestStep(EInteractionType.Interact, 2006937u, new Vector3(-42.282776f, -32.73065f, 183.30652f), 398) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006937u, new Vector3(-42.282776f, -32.73065f, 183.30652f), 398) { Fly = true }; - span71[1] = new QuestStep(EInteractionType.Interact, 2006935u, new Vector3(-46.189087f, -47.257202f, 241.93176f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006935u, new Vector3(-46.189087f, -47.257202f, 241.93176f), 398) { Fly = true }; - span71[2] = new QuestStep(EInteractionType.Interact, 2006936u, new Vector3(-83.57367f, -48.17273f, 231.89136f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006936u, new Vector3(-83.57367f, -48.17273f, 231.89136f), 398) { Fly = true }; - span71[3] = new QuestStep(EInteractionType.Interact, 2006934u, new Vector3(-105.02789f, -69.68799f, 350.63696f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006934u, new Vector3(-105.02789f, -69.68799f, 350.63696f), 398) { Fly = true }; - span71[4] = new QuestStep(EInteractionType.Interact, 2006933u, new Vector3(-80.03363f, -71.67163f, 412.46655f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006933u, new Vector3(-80.03363f, -71.67163f, 412.46655f), 398) { Fly = true }; - span71[5] = new QuestStep(EInteractionType.Interact, 2006932u, new Vector3(-155.41315f, -71.122375f, 387.28918f), 398) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2006932u, new Vector3(-155.41315f, -71.122375f, 387.28918f), 398) { Fly = true }; obj145.Steps = list197; reference145 = obj145; - ref QuestSequence reference146 = ref span70[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span72 = CollectionsMarshal.AsSpan(list198); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141975,10 +169500,12 @@ public static class AssemblyQuestLoader } } }; - span72[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj146.Steps = list198; reference146 = obj146; - ref QuestSequence reference147 = ref span70[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -141986,7 +169513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016863u, new Vector3(67.948364f, -48.43746f, -168.23071f), 398) + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016863u, new Vector3(67.948364f, -48.43746f, -168.23071f), 398) { Fly = true }; @@ -141999,24 +169528,30 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; questRoot25.Author = list200; - num = 5; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span73 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference148 = ref span73[0]; + index = 5; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj148.Steps = list202; reference148 = obj148; - ref QuestSequence reference149 = ref span73[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -142024,8 +169559,9 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span74 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference150 = ref span74[0]; + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference150 = ref span3[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1016865u, new Vector3(-272.23627f, -35.408485f, 219.07373f), 398) { Fly = true, @@ -142034,43 +169570,59 @@ public static class AssemblyQuestLoader num3 = 6; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - Span span75 = CollectionsMarshal.AsSpan(list204); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list204; reference150 = obj150; - ref QuestStep reference151 = ref span74[1]; + index2++; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1016864u, new Vector3(-452.32324f, -35.352047f, 174.30371f), 398) { Fly = true }; - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span76 = CollectionsMarshal.AsSpan(list205); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + span7 = CollectionsMarshal.AsSpan(list205); + 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); obj151.CompletionQuestVariablesFlags = list205; reference151 = obj151; obj149.Steps = list203; reference149 = obj149; - ref QuestSequence reference152 = ref span73[2]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list206)[0]; + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference153 = ref span3[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398) { Fly = true, @@ -142079,12 +169631,15 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 5551u; + span6 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span6[index3] = 5551u; obj153.KillEnemyDataIds = list207; reference153 = obj153; obj152.Steps = list206; reference152 = obj152; - ref QuestSequence reference154 = ref span73[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 3 @@ -142092,23 +169647,28 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398); obj154.Steps = list208; reference154 = obj154; - ref QuestSequence reference155 = ref span73[4]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span77 = CollectionsMarshal.AsSpan(list209); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj155.Steps = list209; reference155 = obj155; questRoot25.QuestSequence = list201; @@ -142118,13 +169678,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "plogon_enjoyer"; questRoot26.Author = list210; - num = 4; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span78 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference156 = ref span78[0]; + index = 4; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -142132,19 +169695,23 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj156.Steps = list212; reference156 = obj156; - ref QuestSequence reference157 = ref span78[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span79 = CollectionsMarshal.AsSpan(list213); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 3f, Fly = true, @@ -142161,10 +169728,12 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj157.Steps = list213; reference157 = obj157; - ref QuestSequence reference158 = ref span78[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -142172,26 +169741,34 @@ public static class AssemblyQuestLoader num2 = 3; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span80 = CollectionsMarshal.AsSpan(list214); - ref QuestStep reference159 = ref span80[0]; + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + ref QuestStep reference159 = ref span3[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Action, 2006938u, new Vector3(-178.88159f, 179.88855f, 4.257263f), 398) { Fly = true, Action = EAction.Fumigate }; - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span81 = CollectionsMarshal.AsSpan(list215); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + span7 = CollectionsMarshal.AsSpan(list215); + 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); obj159.CompletionQuestVariablesFlags = list215; reference159 = obj159; - ref QuestStep reference160 = ref span80[1]; + index2++; + ref QuestStep reference160 = ref span3[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Action, 2006940u, new Vector3(-311.8181f, -29.495728f, 143.63306f), 398) { Fly = true, @@ -142200,50 +169777,66 @@ public static class AssemblyQuestLoader num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span82 = CollectionsMarshal.AsSpan(list216); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list216); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj160.CompletionQuestVariablesFlags = list216; reference160 = obj160; - ref QuestStep reference161 = ref span80[2]; + index2++; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj161 = new QuestStep(EInteractionType.Action, 2006939u, new Vector3(-313.80182f, -29.495728f, 102.098145f), 398) { Fly = true, Action = EAction.Fumigate }; - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span83 = CollectionsMarshal.AsSpan(list217); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + span7 = CollectionsMarshal.AsSpan(list217); + 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); obj161.CompletionQuestVariablesFlags = list217; reference161 = obj161; obj158.Steps = list214; reference158 = obj158; - ref QuestSequence reference162 = ref span78[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span84 = CollectionsMarshal.AsSpan(list218); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj162.Steps = list218; reference162 = obj162; questRoot26.QuestSequence = list211; @@ -142253,13 +169846,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "plogon_enjoyer"; questRoot27.Author = list219; - num = 5; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span85 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference163 = ref span85[0]; + index = 5; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -142267,19 +169863,23 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj163.Steps = list221; reference163 = obj163; - ref QuestSequence reference164 = ref span85[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span86 = CollectionsMarshal.AsSpan(list222); - span86[0] = new QuestStep(EInteractionType.Say, 1016872u, new Vector3(-42.954163f, -33.573986f, -24.490784f), 398) + index2 = 3; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1016872u, new Vector3(-42.954163f, -33.573986f, -24.490784f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142287,7 +169887,8 @@ public static class AssemblyQuestLoader Key = "TEXT_BANGNA602_02277_SYSTEM_000_012" } }; - span86[1] = new QuestStep(EInteractionType.Say, 1016871u, new Vector3(-113.38989f, -34.45324f, -206.65302f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Say, 1016871u, new Vector3(-113.38989f, -34.45324f, -206.65302f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142295,7 +169896,8 @@ public static class AssemblyQuestLoader Key = "TEXT_BANGNA602_02277_SYSTEM_000_012" } }; - span86[2] = new QuestStep(EInteractionType.Say, 1016873u, new Vector3(-178.17963f, -35.40849f, -80.094604f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Say, 1016873u, new Vector3(-178.17963f, -35.40849f, -80.094604f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142305,7 +169907,8 @@ public static class AssemblyQuestLoader }; obj164.Steps = list222; reference164 = obj164; - ref QuestSequence reference165 = ref span85[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -142313,7 +169916,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Say, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142323,18 +169928,22 @@ public static class AssemblyQuestLoader }; obj165.Steps = list223; reference165 = obj165; - ref QuestSequence reference166 = ref span85[3]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398); obj166.Steps = list224; reference166 = obj166; - ref QuestSequence reference167 = ref span85[4]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -142342,12 +169951,14 @@ public static class AssemblyQuestLoader num2 = 2; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span87 = CollectionsMarshal.AsSpan(list225); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj167.Steps = list225; reference167 = obj167; questRoot27.QuestSequence = list220; @@ -142357,24 +169968,30 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "plogon_enjoyer"; questRoot28.Author = list226; - num = 7; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span88 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference168 = ref span88[0]; + index = 7; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span2 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj168.Steps = list228; reference168 = obj168; - ref QuestSequence reference169 = ref span88[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 @@ -142382,27 +169999,33 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj169.Steps = list229; reference169 = obj169; - ref QuestSequence reference170 = ref span88[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1016876u, new Vector3(148.48547f, 65.56322f, -644.09863f), 398) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016876u, new Vector3(148.48547f, 65.56322f, -644.09863f), 398) { Fly = true }; obj170.Steps = list230; reference170 = obj170; - ref QuestSequence reference171 = ref span88[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 @@ -142410,27 +170033,33 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1016877u, new Vector3(212.23767f, 52.205494f, -777.676f), 398) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016877u, new Vector3(212.23767f, 52.205494f, -777.676f), 398) { Fly = true }; obj171.Steps = list231; reference171 = obj171; - ref QuestSequence reference172 = ref span88[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1016878u, new Vector3(210.31506f, 59.655575f, -919.06616f), 398) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016878u, new Vector3(210.31506f, 59.655575f, -919.06616f), 398) { Fly = true }; obj172.Steps = list232; reference172 = obj172; - ref QuestSequence reference173 = ref span88[5]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 @@ -142438,26 +170067,31 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj173.Steps = list233; reference173 = obj173; - ref QuestSequence reference174 = ref span88[6]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span89 = CollectionsMarshal.AsSpan(list234); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span89[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj174.Steps = list234; reference174 = obj174; questRoot28.QuestSequence = list227; @@ -142467,13 +170101,16 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list235); + index = 0; + span[index] = "plogon_enjoyer"; questRoot29.Author = list235; - num = 3; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span90 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference175 = ref span90[0]; + index = 3; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + span2 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -142481,23 +170118,28 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj175.Steps = list237; reference175 = obj175; - ref QuestSequence reference176 = ref span90[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span91 = CollectionsMarshal.AsSpan(list238); - span91[0] = new QuestStep(EInteractionType.Interact, 2006945u, new Vector3(204.63867f, -106.43176f, 360.55542f), 398) + index2 = 4; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006945u, new Vector3(204.63867f, -106.43176f, 360.55542f), 398) { Fly = true }; - ref QuestStep reference177 = ref span91[1]; + num2++; + ref QuestStep reference177 = ref span3[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 2006947u, new Vector3(205.98145f, -109.544556f, 389.7306f), 398) { Fly = true, @@ -142506,28 +170148,35 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 5549u; + span6 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span6[index3] = 5549u; obj177.KillEnemyDataIds = list239; reference177 = obj177; - ref QuestStep reference178 = ref span91[2]; + num2++; + ref QuestStep reference178 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, 2006948u, new Vector3(154.43652f, -112.50476f, 445.15137f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 5549u; + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + span6 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span6[num3] = 5549u; obj178.KillEnemyDataIds = list240; reference178 = obj178; - span91[3] = new QuestStep(EInteractionType.Interact, 2006946u, new Vector3(153.0022f, -86.289795f, 418.44812f), 398) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006946u, new Vector3(153.0022f, -86.289795f, 418.44812f), 398) { Fly = true }; obj176.Steps = list238; reference176 = obj176; - ref QuestSequence reference179 = ref span90[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -142535,8 +170184,9 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span92 = CollectionsMarshal.AsSpan(list241); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -142553,7 +170203,8 @@ public static class AssemblyQuestLoader } } }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj179.Steps = list241; reference179 = obj179; questRoot29.QuestSequence = list236; @@ -142563,24 +170214,30 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "plogon_enjoyer"; questRoot30.Author = list242; - num = 7; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span93 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference180 = ref span93[0]; + index = 7; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj180.Steps = list244; reference180 = obj180; - ref QuestSequence reference181 = ref span93[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -142588,29 +170245,35 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj181.Steps = list245; reference181 = obj181; - ref QuestSequence reference182 = ref span93[2]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 2006950u, new Vector3(-450.9499f, -7.7058716f, -222.61395f), 398) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006950u, new Vector3(-450.9499f, -7.7058716f, -222.61395f), 398) { Fly = true, Land = true }; obj182.Steps = list246; reference182 = obj182; - ref QuestSequence reference183 = ref span93[3]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -142618,25 +170281,31 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); obj183.Steps = list247; reference183 = obj183; - ref QuestSequence reference184 = ref span93[4]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2006951u, new Vector3(-388.35742f, -10.238831f, -268.5741f), 398) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2006951u, new Vector3(-388.35742f, -10.238831f, -268.5741f), 398) { Fly = true, Land = true }; obj184.Steps = list248; reference184 = obj184; - ref QuestSequence reference185 = ref span93[5]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -142644,23 +170313,28 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); obj185.Steps = list249; reference185 = obj185; - ref QuestSequence reference186 = ref span93[6]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span94 = CollectionsMarshal.AsSpan(list250); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj186.Steps = list250; reference186 = obj186; questRoot30.QuestSequence = list243; @@ -142670,13 +170344,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "liza"; questRoot31.Author = list251; - num = 2; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span95 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference187 = ref span95[0]; + index = 2; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + span2 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -142684,8 +170361,9 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span96 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference188 = ref span96[0]; + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference188 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -142696,19 +170374,24 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 351; + span4 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span4[index3] = 351; skipStepConditions4.InTerritory = list254; skipConditions4.StepIf = skipStepConditions4; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = 351; + index3 = 1; + List list255 = new List(index3); + CollectionsMarshal.SetCount(list255, index3); + span4 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span4[num3] = 351; skipAetheryteCondition.InTerritory = list255; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition; obj188.SkipConditions = skipConditions4; reference188 = obj188; - span96[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -142719,22 +170402,25 @@ public static class AssemblyQuestLoader } } }; - span96[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj187.Steps = list253; reference187 = obj187; - ref QuestSequence reference189 = ref span95[1]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span97 = CollectionsMarshal.AsSpan(list256); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -142755,7 +170441,8 @@ public static class AssemblyQuestLoader } } }; - span97[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -142768,13 +170455,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "liza"; questRoot32.Author = list257; - num = 9; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span98 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference190 = ref span98[0]; + index = 9; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -142782,31 +170472,38 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401); obj190.Steps = list259; reference190 = obj190; - ref QuestSequence reference191 = ref span98[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span99 = CollectionsMarshal.AsSpan(list260); - span99[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + index2 = 3; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { StopDistance = 4f, TargetTerritoryId = (ushort)567 }; - span99[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - span99[2] = new QuestStep(EInteractionType.Interact, 1017141u, new Vector3(23.208984f, 2.5864775f, -15.854187f), 567); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017141u, new Vector3(23.208984f, 2.5864775f, -15.854187f), 567); obj191.Steps = list260; reference191 = obj191; - ref QuestSequence reference192 = ref span98[2]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -142814,30 +170511,36 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span100 = CollectionsMarshal.AsSpan(list261); - span100[0] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - span100[1] = new QuestStep(EInteractionType.Interact, 1017142u, new Vector3(1.5715942f, -9.5926225E-08f, -2.243164f), 568); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017142u, new Vector3(1.5715942f, -9.5926225E-08f, -2.243164f), 568); obj192.Steps = list261; reference192 = obj192; - ref QuestSequence reference193 = ref span98[3]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1017145u, new Vector3(136.73608f, -13.763474f, -869.5049f), 401) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017145u, new Vector3(136.73608f, -13.763474f, -869.5049f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj193.Steps = list262; reference193 = obj193; - ref QuestSequence reference194 = ref span98[4]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -142845,30 +170548,37 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1017149u, new Vector3(35.599243f, -15.420995f, 25.833496f), 567); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017149u, new Vector3(35.599243f, -15.420995f, 25.833496f), 567); obj194.Steps = list263; reference194 = obj194; - ref QuestSequence reference195 = ref span98[5]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span101 = CollectionsMarshal.AsSpan(list264); - span101[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + index2 = 3; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - span101[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - span101[2] = new QuestStep(EInteractionType.Interact, 1017155u, new Vector3(0.10675049f, 0.022368316f, 0.56451416f), 568); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017155u, new Vector3(0.10675049f, 0.022368316f, 0.56451416f), 568); obj195.Steps = list264; reference195 = obj195; - ref QuestSequence reference196 = ref span98[6]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 6 @@ -142876,21 +170586,26 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) { StopDistance = 7f }; obj196.Steps = list265; reference196 = obj196; - ref QuestSequence reference197 = ref span98[7]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Duty, null, null, 567) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 567) { DutyOptions = new DutyOptions { @@ -142899,7 +170614,8 @@ public static class AssemblyQuestLoader }; obj197.Steps = list266; reference197 = obj197; - ref QuestSequence reference198 = ref span98[8]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -142907,7 +170623,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) { StopDistance = 5f, NextQuestId = new QuestId(2286) @@ -142921,24 +170639,30 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "liza"; questRoot33.Author = list268; - num = 2; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span102 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference199 = ref span102[0]; + index = 2; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017168u, new Vector3(47.745483f, -15.543178f, 39.07837f), 567); + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017168u, new Vector3(47.745483f, -15.543178f, 39.07837f), 567); obj199.Steps = list270; reference199 = obj199; - ref QuestSequence reference200 = ref span102[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue @@ -142946,16 +170670,19 @@ public static class AssemblyQuestLoader num2 = 3; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span103 = CollectionsMarshal.AsSpan(list271); - span103[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) { TargetTerritoryId = (ushort)567 }; - span103[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) { TargetTerritoryId = (ushort)568 }; - span103[2] = new QuestStep(EInteractionType.CompleteQuest, 1017200u, new Vector3(-3.2807007f, 1.937151E-07f, 2.1209717f), 568) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017200u, new Vector3(-3.2807007f, 1.937151E-07f, 2.1209717f), 568) { StopDistance = 7f, NextQuestId = new QuestId(2373) @@ -142969,22 +170696,26 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "liza"; questRoot34.Author = list272; - num = 6; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span104 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference201 = ref span104[0]; + index = 6; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span105 = CollectionsMarshal.AsSpan(list274); - ref QuestStep reference202 = ref span105[0]; + index2 = 3; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + ref QuestStep reference202 = ref span3[num2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -142995,19 +170726,24 @@ public static class AssemblyQuestLoader num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = 351; + span4 = CollectionsMarshal.AsSpan(list275); + index3 = 0; + span4[index3] = 351; skipStepConditions5.InTerritory = list275; skipConditions5.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = 351; + index3 = 1; + List list276 = new List(index3); + CollectionsMarshal.SetCount(list276, index3); + span4 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span4[num3] = 351; skipAetheryteCondition2.InTerritory = list276; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition2; obj202.SkipConditions = skipConditions5; reference202 = obj202; - span105[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -143018,13 +170754,15 @@ public static class AssemblyQuestLoader } } }; - span105[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj201.Steps = list274; reference201 = obj201; - ref QuestSequence reference203 = ref span104[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 @@ -143032,29 +170770,36 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1017115u, new Vector3(-59.67804f, 271.23285f, 4.0131226f), 402) + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017115u, new Vector3(-59.67804f, 271.23285f, 4.0131226f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj203.Steps = list277; reference203 = obj203; - ref QuestSequence reference204 = ref span104[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005564u, new Vector3(-58.121643f, 271.1986f, -4.1047363f), 402); + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005564u, new Vector3(-58.121643f, 271.1986f, -4.1047363f), 402); obj204.Steps = list278; reference204 = obj204; - span104[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference205 = ref span104[4]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -143062,28 +170807,34 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1017167u, new Vector3(-66.91089f, 271.23285f, 4.0131226f), 402); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017167u, new Vector3(-66.91089f, 271.23285f, 4.0131226f), 402); obj205.Steps = list279; reference205 = obj205; - ref QuestSequence reference206 = ref span104[5]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span106 = CollectionsMarshal.AsSpan(list280); - span106[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span106[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span106[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2332) @@ -143097,13 +170848,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list281); + index = 0; + span[index] = "liza"; questRoot35.Author = list281; - num = 5; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span107 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference207 = ref span107[0]; + index = 5; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + span2 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -143111,24 +170865,30 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj207.Steps = list283; reference207 = obj207; - ref QuestSequence reference208 = ref span107[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj208.Steps = list284; reference208 = obj208; - ref QuestSequence reference209 = ref span107[2]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -143136,93 +170896,125 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span108 = CollectionsMarshal.AsSpan(list285); - span108[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15725u, ItemCount = 3 }; - span108[1] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400); obj209.Steps = list285; reference209 = obj209; - ref QuestSequence reference210 = ref span107[3]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span109 = CollectionsMarshal.AsSpan(list286); - ref QuestStep reference211 = ref span109[0]; + index2 = 4; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref QuestStep reference211 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017353u, new Vector3(-33.554626f, -8.866012f, 163.43933f), 400); num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span110 = CollectionsMarshal.AsSpan(list287); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list287; reference211 = questStep; - ref QuestStep reference212 = ref span109[1]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep obj211 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.788086f, -8.655561f, 194.60593f), 400) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span111 = CollectionsMarshal.AsSpan(list288); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + span7 = CollectionsMarshal.AsSpan(list288); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list288; skipConditions6.StepIf = skipStepConditions6; obj211.SkipConditions = skipConditions6; reference212 = obj211; - ref QuestStep reference213 = ref span109[2]; + num2++; + ref QuestStep reference213 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1017354u, new Vector3(-104.41754f, -8.6555605f, 193.16394f), 400); num3 = 6; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span112 = CollectionsMarshal.AsSpan(list289); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list289); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list289; reference213 = questStep2; - ref QuestStep reference214 = ref span109[3]; + num2++; + ref QuestStep reference214 = ref span3[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1017355u, new Vector3(-110.97894f, -8.866015f, 247.94385f), 400) { Fly = true }; - num3 = 6; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span113 = CollectionsMarshal.AsSpan(list290); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list290 = new List(index3); + CollectionsMarshal.SetCount(list290, index3); + span7 = CollectionsMarshal.AsSpan(list290); + 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); obj212.CompletionQuestVariablesFlags = list290; reference214 = obj212; obj210.Steps = list286; reference210 = obj210; - ref QuestSequence reference215 = ref span107[4]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -143230,7 +171022,9 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true }; @@ -143243,21 +171037,26 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list292); + index = 0; + span[index] = "Censored"; questRoot36.Author = list292; - num = 3; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span114 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference216 = ref span114[0]; + index = 3; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + span2 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143276,7 +171075,8 @@ public static class AssemblyQuestLoader }; obj214.Steps = list294; reference216 = obj214; - ref QuestSequence reference217 = ref span114[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -143284,22 +171084,26 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1017356u, new Vector3(676.14246f, -0.4951099f, 11.550964f), 400) + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017356u, new Vector3(676.14246f, -0.4951099f, 11.550964f), 400) { Fly = true }; obj215.Steps = list295; reference217 = obj215; - ref QuestSequence reference218 = ref span114[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span115 = CollectionsMarshal.AsSpan(list296); - span115[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15726u, ItemCount = 3, @@ -143311,7 +171115,8 @@ public static class AssemblyQuestLoader } } }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143337,13 +171142,16 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list297); + index = 0; + span[index] = "Censored"; questRoot37.Author = list297; - num = 4; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span116 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference219 = ref span116[0]; + index = 4; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + span2 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -143351,7 +171159,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143370,16 +171180,18 @@ public static class AssemblyQuestLoader }; obj217.Steps = list299; reference219 = obj217; - ref QuestSequence reference220 = ref span116[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span117 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference221 = ref span117[0]; + index2 = 2; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference221 = ref span3[num2]; QuestStep obj219 = new QuestStep(EInteractionType.Interact, 1017357u, new Vector3(312.3673f, -35.70687f, 89.25f), 400) { Fly = true @@ -143387,22 +171199,30 @@ public static class AssemblyQuestLoader num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span118 = CollectionsMarshal.AsSpan(list301); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj219.CompletionQuestVariablesFlags = list301; reference221 = obj219; - span117[1] = new QuestStep(EInteractionType.Interact, 1017358u, new Vector3(837.9186f, -3.0115817f, 211.56628f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017358u, new Vector3(837.9186f, -3.0115817f, 211.56628f), 400) { Fly = true }; obj218.Steps = list300; reference220 = obj218; - ref QuestSequence reference222 = ref span116[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -143410,23 +171230,27 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj220.Steps = list302; reference222 = obj220; - ref QuestSequence reference223 = ref span116[3]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span119 = CollectionsMarshal.AsSpan(list303); - span119[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15727u, ItemCount = 2, @@ -143438,7 +171262,8 @@ public static class AssemblyQuestLoader } } }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143464,13 +171289,16 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "Censored"; questRoot38.Author = list304; - num = 6; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span120 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference224 = ref span120[0]; + index = 6; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + span2 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -143478,7 +171306,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143497,15 +171327,18 @@ public static class AssemblyQuestLoader }; obj222.Steps = list306; reference224 = obj222; - ref QuestSequence reference225 = ref span120[1]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -143524,7 +171357,8 @@ public static class AssemblyQuestLoader }; obj223.Steps = list307; reference225 = obj223; - ref QuestSequence reference226 = ref span120[2]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -143532,36 +171366,43 @@ public static class AssemblyQuestLoader num2 = 3; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span121 = CollectionsMarshal.AsSpan(list308); - span121[0] = new QuestStep(EInteractionType.Interact, 1017362u, new Vector3(279.3468f, -37.982975f, 487.6936f), 400) + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017362u, new Vector3(279.3468f, -37.982975f, 487.6936f), 400) { Fly = true }; - span121[1] = new QuestStep(EInteractionType.Interact, 1017363u, new Vector3(320.88184f, -13.416825f, 439.07825f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017363u, new Vector3(320.88184f, -13.416825f, 439.07825f), 400) { Fly = true }; - span121[2] = new QuestStep(EInteractionType.Interact, 1017361u, new Vector3(177.7218f, -33.74496f, 486.8695f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017361u, new Vector3(177.7218f, -33.74496f, 486.8695f), 400) { Fly = true }; obj224.Steps = list308; reference226 = obj224; - ref QuestSequence reference227 = ref span120[3]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) { Fly = true }; obj225.Steps = list309; reference227 = obj225; - ref QuestSequence reference228 = ref span120[4]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 4 @@ -143569,8 +171410,9 @@ public static class AssemblyQuestLoader num2 = 2; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span122 = CollectionsMarshal.AsSpan(list310); - span122[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15728u, ItemCount = 3, @@ -143582,18 +171424,22 @@ public static class AssemblyQuestLoader } } }; - span122[1] = new QuestStep(EInteractionType.Interact, 1017360u, new Vector3(395.98682f, -5.798145f, 587.3655f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017360u, new Vector3(395.98682f, -5.798145f, 587.3655f), 400); obj226.Steps = list310; reference228 = obj226; - ref QuestSequence reference229 = ref span120[5]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143619,13 +171465,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "Censored"; questRoot39.Author = list312; - num = 5; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span123 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference230 = ref span123[0]; + index = 5; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -143633,7 +171482,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143652,15 +171503,18 @@ public static class AssemblyQuestLoader }; obj228.Steps = list314; reference230 = obj228; - ref QuestSequence reference231 = ref span123[1]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -143679,7 +171533,8 @@ public static class AssemblyQuestLoader }; obj229.Steps = list315; reference231 = obj229; - ref QuestSequence reference232 = ref span123[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -143687,25 +171542,33 @@ public static class AssemblyQuestLoader num2 = 3; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span124 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference233 = ref span124[0]; + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference233 = ref span3[index2]; QuestStep obj231 = new QuestStep(EInteractionType.Interact, 2007227u, new Vector3(439.9939f, -31.601501f, 204.88281f), 400) { Fly = true }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span125 = CollectionsMarshal.AsSpan(list317); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + span7 = CollectionsMarshal.AsSpan(list317); + 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); obj231.CompletionQuestVariablesFlags = list317; reference233 = obj231; - ref QuestStep reference234 = ref span124[1]; + index2++; + ref QuestStep reference234 = ref span3[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 2007226u, new Vector3(430.80798f, -27.878296f, 141.92407f), 400) { Fly = true @@ -143713,36 +171576,47 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span126 = CollectionsMarshal.AsSpan(list318); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj232.CompletionQuestVariablesFlags = list318; reference234 = obj232; - span124[2] = new QuestStep(EInteractionType.Interact, 2007225u, new Vector3(413.68726f, -22.354492f, 16.525452f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007225u, new Vector3(413.68726f, -22.354492f, 16.525452f), 400) { Fly = true }; obj230.Steps = list316; reference232 = obj230; - ref QuestSequence reference235 = ref span123[3]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) { Fly = true }; obj233.Steps = list319; reference235 = obj233; - ref QuestSequence reference236 = ref span123[4]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue @@ -143750,8 +171624,9 @@ public static class AssemblyQuestLoader num2 = 2; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span127 = CollectionsMarshal.AsSpan(list320); - span127[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15729u, ItemCount = 3, @@ -143763,7 +171638,8 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143789,21 +171665,26 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list321); + index = 0; + span[index] = "Censored"; questRoot40.Author = list321; - num = 3; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span128 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference237 = ref span128[0]; + index = 3; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + span2 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143822,7 +171703,8 @@ public static class AssemblyQuestLoader }; obj235.Steps = list323; reference237 = obj235; - ref QuestSequence reference238 = ref span128[1]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 1 @@ -143830,8 +171712,9 @@ public static class AssemblyQuestLoader num2 = 4; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span129 = CollectionsMarshal.AsSpan(list324); - ref QuestStep reference239 = ref span129[0]; + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + ref QuestStep reference239 = ref span3[index2]; QuestStep obj237 = new QuestStep(EInteractionType.Say, 1017365u, new Vector3(255.75635f, -43.649445f, 637.2014f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -143852,19 +171735,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span130 = CollectionsMarshal.AsSpan(list325); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list325 = new List(index3); + CollectionsMarshal.SetCount(list325, index3); + span7 = CollectionsMarshal.AsSpan(list325); + 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); obj237.CompletionQuestVariablesFlags = list325; reference239 = obj237; - ref QuestStep reference240 = ref span129[1]; + index2++; + ref QuestStep reference240 = ref span3[index2]; QuestStep obj238 = new QuestStep(EInteractionType.Say, 1017366u, new Vector3(296.37585f, -47.154934f, 673.9756f), 400) { ChatMessage = new ChatMessage @@ -143875,16 +171765,23 @@ public static class AssemblyQuestLoader num3 = 6; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span131 = CollectionsMarshal.AsSpan(list326); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj238.CompletionQuestVariablesFlags = list326; reference240 = obj238; - ref QuestStep reference241 = ref span129[2]; + index2++; + ref QuestStep reference241 = ref span3[index2]; QuestStep obj239 = new QuestStep(EInteractionType.Say, 1017368u, new Vector3(451.7433f, -5.8336167f, 649.7444f), 400) { Fly = true, @@ -143893,19 +171790,26 @@ public static class AssemblyQuestLoader Key = "TEXT_BANMOG202_02295_SYSTEM_000_019" } }; - num3 = 6; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - Span span132 = CollectionsMarshal.AsSpan(list327); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list327 = new List(index3); + CollectionsMarshal.SetCount(list327, index3); + span7 = CollectionsMarshal.AsSpan(list327); + 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)1, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list327; reference241 = obj239; - span129[3] = new QuestStep(EInteractionType.Say, 1017367u, new Vector3(484.45862f, -7.7667823f, 716.9756f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Say, 1017367u, new Vector3(484.45862f, -7.7667823f, 716.9756f), 400) { Fly = true, ChatMessage = new ChatMessage @@ -143915,15 +171819,18 @@ public static class AssemblyQuestLoader }; obj236.Steps = list324; reference238 = obj236; - ref QuestSequence reference242 = ref span128[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143949,13 +171856,16 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list329); + index = 0; + span[index] = "Censored"; questRoot41.Author = list329; - num = 4; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span133 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference243 = ref span133[0]; + index = 4; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + span2 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -143963,7 +171873,9 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143982,15 +171894,18 @@ public static class AssemblyQuestLoader }; obj241.Steps = list331; reference243 = obj241; - ref QuestSequence reference244 = ref span133[1]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1017369u, new Vector3(444.93774f, -5.6449523f, 653.4065f), 400) + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017369u, new Vector3(444.93774f, -5.6449523f, 653.4065f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -144009,7 +171924,8 @@ public static class AssemblyQuestLoader }; obj242.Steps = list332; reference244 = obj242; - ref QuestSequence reference245 = ref span133[2]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 @@ -144017,8 +171933,9 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span134 = CollectionsMarshal.AsSpan(list333); - span134[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15730u, ItemCount = 3, @@ -144030,18 +171947,22 @@ public static class AssemblyQuestLoader } } }; - span134[1] = new QuestStep(EInteractionType.Interact, 1017370u, new Vector3(456.07678f, -5.5784807f, 676.84436f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017370u, new Vector3(456.07678f, -5.5784807f, 676.84436f), 400); obj243.Steps = list333; reference245 = obj243; - ref QuestSequence reference246 = ref span133[3]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144067,13 +171988,16 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list335); + index = 0; + span[index] = "pot0to"; questRoot42.Author = list335; - num = 5; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span135 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference247 = ref span135[0]; + index = 5; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + span2 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -144081,25 +172005,31 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj245.Steps = list337; reference247 = obj245; - ref QuestSequence reference248 = ref span135[1]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); obj246.Steps = list338; reference248 = obj246; - ref QuestSequence reference249 = ref span135[2]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -144107,29 +172037,35 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-740.9363f, 81f, 427.06656f), 400) + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-740.9363f, 81f, 427.06656f), 400) { Fly = true, Action = EAction.Seed }; obj247.Steps = list339; reference249 = obj247; - ref QuestSequence reference250 = ref span135[3]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-44.158283f, 81.187126f, -265.6412f), 400) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, null, new Vector3(-44.158283f, 81.187126f, -265.6412f), 400) { Fly = true, Action = EAction.Seed }; obj248.Steps = list340; reference250 = obj248; - ref QuestSequence reference251 = ref span135[4]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue @@ -144137,7 +172073,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144163,21 +172101,26 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list342); + index = 0; + span[index] = "Censored"; questRoot43.Author = list342; - num = 4; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span136 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference252 = ref span136[0]; + index = 4; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + span2 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144196,7 +172139,8 @@ public static class AssemblyQuestLoader }; obj250.Steps = list344; reference252 = obj250; - ref QuestSequence reference253 = ref span136[1]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 @@ -144204,23 +172148,27 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1017377u, new Vector3(559.9907f, -1.071418f, -372.42694f), 400) + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017377u, new Vector3(559.9907f, -1.071418f, -372.42694f), 400) { Fly = true, Land = true }; obj251.Steps = list345; reference253 = obj251; - ref QuestSequence reference254 = ref span136[2]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - Span span137 = CollectionsMarshal.AsSpan(list346); - span137[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15731u, ItemCount = 1, @@ -144232,10 +172180,12 @@ public static class AssemblyQuestLoader } } }; - span137[1] = new QuestStep(EInteractionType.Interact, 1017378u, new Vector3(555.84033f, -1.1545231f, -386.28217f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017378u, new Vector3(555.84033f, -1.1545231f, -386.28217f), 400); obj252.Steps = list346; reference254 = obj252; - ref QuestSequence reference255 = ref span136[3]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue @@ -144243,7 +172193,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144269,21 +172221,26 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list348); + index = 0; + span[index] = "Censored"; questRoot44.Author = list348; - num = 4; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span138 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference256 = ref span138[0]; + index = 4; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + span2 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144302,7 +172259,8 @@ public static class AssemblyQuestLoader }; obj254.Steps = list350; reference256 = obj254; - ref QuestSequence reference257 = ref span138[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 1 @@ -144310,22 +172268,26 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1017379u, new Vector3(-183.0625f, 182.06508f, -759.21265f), 400) + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017379u, new Vector3(-183.0625f, 182.06508f, -759.21265f), 400) { Fly = true }; obj255.Steps = list351; reference257 = obj255; - ref QuestSequence reference258 = ref span138[2]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span139 = CollectionsMarshal.AsSpan(list352); - span139[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15732u, ItemCount = 2, @@ -144337,10 +172299,12 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.Interact, 1017380u, new Vector3(-171.74036f, 178.63443f, -772.9458f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017380u, new Vector3(-171.74036f, 178.63443f, -772.9458f), 400); obj256.Steps = list352; reference258 = obj256; - ref QuestSequence reference259 = ref span138[3]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue @@ -144348,7 +172312,9 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144378,13 +172344,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -144392,25 +172361,31 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1017383u, new Vector3(-657.46545f, 73.76131f, 219.28735f), 400) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017383u, new Vector3(-657.46545f, 73.76131f, 219.28735f), 400) { Fly = true, Land = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -144418,18 +172393,22 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15733u, ItemCount = 1 }; - ref QuestStep reference4 = ref span2[1]; + index2++; + ref QuestStep reference4 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017384u, new Vector3(-651.51447f, 73f, 217.2732f), 400); int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG303_02300_Q1_000_000"), @@ -144439,21 +172418,25 @@ public static class AssemblyQuestLoader reference4 = questStep; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1017387u, new Vector3(-59.55603f, -8.685017f, 186.84668f), 400) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017387u, new Vector3(-59.55603f, -8.685017f, 186.84668f), 400) { Fly = true }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -144461,7 +172444,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144487,24 +172472,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "plogon_enjoyer"; questRoot2.Author = list9; - num = 6; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 6; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -144512,33 +172503,39 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true }; obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15734u, ItemCount = 1 }; - span4[1] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) { Fly = true }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span3[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -144546,27 +172543,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2007234u, new Vector3(111.86377f, -21.988281f, 192.43152f), 400) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007234u, new Vector3(111.86377f, -21.988281f, 192.43152f), 400) { Fly = true }; obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span3[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) { Fly = true }; obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span3[5]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -144574,7 +172577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144600,24 +172605,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "plogon_enjoyer"; questRoot3.Author = list17; - num = 6; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span5[0]; + index = 6; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span5[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -144625,28 +172636,34 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span5[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Action, 2007272u, new Vector3(306.53845f, -38.254395f, 111.0094f), 400) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007272u, new Vector3(306.53845f, -38.254395f, 111.0094f), 400) { Fly = true, Action = EAction.Roar }; obj14.Steps = list21; reference15 = obj14; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -144654,29 +172671,35 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Action, 2007273u, new Vector3(431.99805f, -28.152893f, 112.321655f), 400) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007273u, new Vector3(431.99805f, -28.152893f, 112.321655f), 400) { Fly = true, Action = EAction.Roar }; obj15.Steps = list22; reference16 = obj15; - ref QuestSequence reference17 = ref span5[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Action, 2007274u, new Vector3(390.70715f, -35.599304f, 252.58252f), 400) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007274u, new Vector3(390.70715f, -35.599304f, 252.58252f), 400) { Fly = true, Action = EAction.Roar }; obj16.Steps = list23; reference17 = obj16; - ref QuestSequence reference18 = ref span5[5]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -144684,7 +172707,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144710,21 +172735,26 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "Censored"; questRoot4.Author = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span6 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span6[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144743,7 +172773,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list27; reference19 = obj18; - ref QuestSequence reference20 = ref span6[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -144751,22 +172782,26 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1017403u, new Vector3(-686.12195f, 335f, 165.75867f), 400) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017403u, new Vector3(-686.12195f, 335f, 165.75867f), 400) { Fly = true }; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference21 = ref span6[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span7 = CollectionsMarshal.AsSpan(list29); - span7[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15735u, ItemCount = 2, @@ -144778,10 +172813,12 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.Interact, 1017534u, new Vector3(-661.1582f, 335f, 158.49548f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017534u, new Vector3(-661.1582f, 335f, 158.49548f), 400); obj20.Steps = list29; reference21 = obj20; - ref QuestSequence reference22 = ref span6[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue @@ -144789,7 +172826,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true }; @@ -144802,24 +172841,30 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; questRoot5.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span8 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span8[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference24 = ref span8[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 @@ -144827,27 +172872,33 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1017406u, new Vector3(-95.04846f, 79.8345f, -301.80823f), 400) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017406u, new Vector3(-95.04846f, 79.8345f, -301.80823f), 400) { Fly = true }; obj23.Steps = list34; reference24 = obj23; - ref QuestSequence reference25 = ref span8[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1017407u, new Vector3(-128.34369f, 125.92322f, -314.6258f), 400) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017407u, new Vector3(-128.34369f, 125.92322f, -314.6258f), 400) { Fly = true }; obj24.Steps = list35; reference25 = obj24; - ref QuestSequence reference26 = ref span8[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -144855,24 +172906,29 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span9 = CollectionsMarshal.AsSpan(list36); - span9[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15736u, ItemCount = 3 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1017408u, new Vector3(-108.59851f, 122.442116f, -318.31848f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017408u, new Vector3(-108.59851f, 122.442116f, -318.31848f), 400); obj25.Steps = list36; reference26 = obj25; - ref QuestSequence reference27 = ref span8[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144898,13 +172954,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "liza"; questRoot6.Author = list38; - num = 7; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span10 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span10[0]; + index = 7; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -144912,21 +172971,27 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference29 = ref span10[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400); obj28.Steps = list41; reference29 = obj28; - ref QuestSequence reference30 = ref span10[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -144934,42 +172999,53 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span11 = CollectionsMarshal.AsSpan(list42); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) { Fly = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); obj29.Steps = list42; reference30 = obj29; - ref QuestSequence reference31 = ref span10[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span12 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference32 = ref span12[0]; + index2 = 4; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2007244u, new Vector3(-658.9609f, 94.25488f, -417.07483f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span13 = CollectionsMarshal.AsSpan(list44); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span5 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list44; reference32 = obj31; - ref QuestStep reference33 = ref span12[1]; + num2++; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.58887f, 93.64293f, -506.5746f), 400) { Fly = true @@ -144979,32 +173055,46 @@ public static class AssemblyQuestLoader num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span14 = CollectionsMarshal.AsSpan(list45); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list45; skipConditions.StepIf = skipStepConditions; obj32.SkipConditions = skipConditions; reference33 = obj32; - ref QuestStep reference34 = ref span12[2]; + num2++; + ref QuestStep reference34 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2007245u, new Vector3(-671.1376f, 93.91919f, -507.49982f), 400); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span15 = CollectionsMarshal.AsSpan(list46); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list46; reference34 = questStep2; - ref QuestStep reference35 = ref span12[3]; + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2007246u, new Vector3(-813.1685f, 94.865234f, -457.3282f), 400) { Fly = true @@ -145012,18 +173102,25 @@ public static class AssemblyQuestLoader num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span16 = CollectionsMarshal.AsSpan(list47); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list47; reference35 = obj33; obj30.Steps = list43; reference31 = obj30; - ref QuestSequence reference36 = ref span10[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -145031,33 +173128,39 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span17 = CollectionsMarshal.AsSpan(list48); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - span17[1] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); obj34.Steps = list48; reference36 = obj34; - ref QuestSequence reference37 = ref span10[5]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span18 = CollectionsMarshal.AsSpan(list49); - span18[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15737u, ItemCount = 1 }; - span18[1] = new QuestStep(EInteractionType.Interact, 1017410u, new Vector3(-246.2044f, -24.295149f, 760.7384f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017410u, new Vector3(-246.2044f, -24.295149f, 760.7384f), 400); obj35.Steps = list49; reference37 = obj35; - ref QuestSequence reference38 = ref span10[6]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -145065,7 +173168,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145091,24 +173196,30 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; questRoot7.Author = list51; - num = 6; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference39 = ref span19[0]; + index = 6; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj37.Steps = list53; reference39 = obj37; - ref QuestSequence reference40 = ref span19[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -145116,25 +173227,31 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); obj38.Steps = list54; reference40 = obj38; - ref QuestSequence reference41 = ref span19[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Action, 2007264u, new Vector3(508.32373f, -0.77819824f, -360.49445f), 400) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007264u, new Vector3(508.32373f, -0.77819824f, -360.49445f), 400) { Fly = true, Action = EAction.Roar }; obj39.Steps = list55; reference41 = obj39; - ref QuestSequence reference42 = ref span19[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -145142,29 +173259,35 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Action, 2007265u, new Vector3(613.39734f, -11.917358f, -335.6222f), 400) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007265u, new Vector3(613.39734f, -11.917358f, -335.6222f), 400) { Fly = true, Action = EAction.Roar }; obj40.Steps = list56; reference42 = obj40; - ref QuestSequence reference43 = ref span19[4]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Action, 2007266u, new Vector3(554.0398f, 50.644653f, -393.72858f), 400) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007266u, new Vector3(554.0398f, 50.644653f, -393.72858f), 400) { Fly = true, Action = EAction.Roar }; obj41.Steps = list57; reference43 = obj41; - ref QuestSequence reference44 = ref span19[5]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -145172,7 +173295,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145198,21 +173323,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "Censored"; questRoot8.Author = list59; - num = 5; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span20 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span20[0]; + index = 5; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145231,7 +173361,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list61; reference45 = obj43; - ref QuestSequence reference46 = ref span20[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -145239,23 +173370,27 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1017412u, new Vector3(402.45667f, -74.34704f, 636.6826f), 400) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017412u, new Vector3(402.45667f, -74.34704f, 636.6826f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj44.Steps = list62; reference46 = obj44; - ref QuestSequence reference47 = ref span20[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span21 = CollectionsMarshal.AsSpan(list63); - span21[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15738u, ItemCount = 3, @@ -145267,10 +173402,12 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.Interact, 1017413u, new Vector3(397.97046f, -72.344055f, 653.0403f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017413u, new Vector3(397.97046f, -72.344055f, 653.0403f), 400); obj45.Steps = list63; reference47 = obj45; - ref QuestSequence reference48 = ref span20[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -145278,22 +173415,27 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj46.Steps = list64; reference48 = obj46; - ref QuestSequence reference49 = ref span20[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145319,13 +173461,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "skiaz"; questRoot9.Author = list66; - num = 5; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span22 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span22[0]; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -145333,18 +173478,23 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj48.Steps = list68; reference50 = obj48; - ref QuestSequence reference51 = ref span22[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -145363,7 +173513,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list69; reference51 = obj49; - ref QuestSequence reference52 = ref span22[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -145371,21 +173522,26 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2007249u, new Vector3(73.77734f, -32.73065f, -183.0625f), 400) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007249u, new Vector3(73.77734f, -32.73065f, -183.0625f), 400) { Fly = true }; obj50.Steps = list70; reference52 = obj50; - ref QuestSequence reference53 = ref span22[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -145404,7 +173560,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference53 = obj51; - ref QuestSequence reference54 = ref span22[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -145412,7 +173569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145438,24 +173597,30 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "skiaz"; questRoot10.Author = list73; - num = 7; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span23 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference55 = ref span23[0]; + index = 7; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj53.Steps = list75; reference55 = obj53; - ref QuestSequence reference56 = ref span23[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -145463,28 +173628,34 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true }; obj54.Steps = list76; reference56 = obj54; - ref QuestSequence reference57 = ref span23[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Action, 2007275u, new Vector3(-147.05127f, 77.653076f, -189.77649f), 400) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007275u, new Vector3(-147.05127f, 77.653076f, -189.77649f), 400) { Fly = true, Action = EAction.Roar }; obj55.Steps = list77; reference57 = obj55; - ref QuestSequence reference58 = ref span23[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 @@ -145492,29 +173663,35 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Action, 2007276u, new Vector3(-190.2038f, 77.653076f, -304.49384f), 400) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007276u, new Vector3(-190.2038f, 77.653076f, -304.49384f), 400) { Fly = true, Action = EAction.Roar }; obj56.Steps = list78; reference58 = obj56; - ref QuestSequence reference59 = ref span23[4]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Action, 2007277u, new Vector3(-75.88312f, 77.653076f, -347.79895f), 400) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007277u, new Vector3(-75.88312f, 77.653076f, -347.79895f), 400) { Fly = true, Action = EAction.Roar }; obj57.Steps = list79; reference59 = obj57; - ref QuestSequence reference60 = ref span23[5]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 5 @@ -145522,22 +173699,27 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Action, 2007278u, new Vector3(-32.852783f, 77.62268f, -233.87512f), 400) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007278u, new Vector3(-32.852783f, 77.62268f, -233.87512f), 400) { Fly = true, Action = EAction.Roar }; obj58.Steps = list80; reference60 = obj58; - ref QuestSequence reference61 = ref span23[6]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145563,13 +173745,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "Censored"; questRoot11.Author = list82; - num = 5; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span24 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference62 = ref span24[0]; + index = 5; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -145577,7 +173762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145596,21 +173783,25 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference62 = obj60; - ref QuestSequence reference63 = ref span24[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) { Fly = true }; obj61.Steps = list85; reference63 = obj61; - ref QuestSequence reference64 = ref span24[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -145618,23 +173809,27 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1017421u, new Vector3(217.51733f, 6.1228147f, 721.94995f), 400) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017421u, new Vector3(217.51733f, 6.1228147f, 721.94995f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj62.Steps = list86; reference64 = obj62; - ref QuestSequence reference65 = ref span24[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span25 = CollectionsMarshal.AsSpan(list87); - span25[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15739u, ItemCount = 1, @@ -145646,14 +173841,16 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj63.Steps = list87; reference65 = obj63; - ref QuestSequence reference66 = ref span24[4]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -145661,7 +173858,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145687,24 +173886,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "liza"; questRoot12.Author = list89; - num = 7; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span26 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference67 = ref span26[0]; + index = 7; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj65.Steps = list91; reference67 = obj65; - ref QuestSequence reference68 = ref span26[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -145712,24 +173917,30 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400) { Fly = true }; obj66.Steps = list92; reference68 = obj66; - ref QuestSequence reference69 = ref span26[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); obj67.Steps = list93; reference69 = obj67; - ref QuestSequence reference70 = ref span26[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 @@ -145737,27 +173948,33 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); obj68.Steps = list94; reference70 = obj68; - ref QuestSequence reference71 = ref span26[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - Span span27 = CollectionsMarshal.AsSpan(list95); - span27[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15740u, ItemCount = 3 }; - span27[1] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); obj69.Steps = list95; reference71 = obj69; - ref QuestSequence reference72 = ref span26[5]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 5 @@ -145765,18 +173982,23 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); obj70.Steps = list96; reference72 = obj70; - ref QuestSequence reference73 = ref span26[6]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145802,13 +174024,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "liza"; questRoot13.Author = list98; - num = 6; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span28 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference74 = ref span28[0]; + index = 6; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -145816,21 +174041,27 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj72.Steps = list100; reference74 = obj72; - ref QuestSequence reference75 = ref span28[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); obj73.Steps = list101; reference75 = obj73; - ref QuestSequence reference76 = ref span28[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -145838,29 +174069,35 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Action, 2007279u, new Vector3(-491.63043f, 37.369263f, 158.95312f), 400) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007279u, new Vector3(-491.63043f, 37.369263f, 158.95312f), 400) { Fly = true, Action = EAction.Seed }; obj74.Steps = list102; reference76 = obj74; - ref QuestSequence reference77 = ref span28[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Action, 2007280u, new Vector3(-380.2091f, 39.871826f, -23.819397f), 400) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007280u, new Vector3(-380.2091f, 39.871826f, -23.819397f), 400) { Fly = true, Action = EAction.Seed }; obj75.Steps = list103; reference77 = obj75; - ref QuestSequence reference78 = ref span28[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -145868,22 +174105,27 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Action, 2007281u, new Vector3(-52.323242f, 81.80359f, -116.258545f), 400) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007281u, new Vector3(-52.323242f, 81.80359f, -116.258545f), 400) { Fly = true, Action = EAction.Seed }; obj76.Steps = list104; reference78 = obj76; - ref QuestSequence reference79 = ref span28[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith @@ -145897,13 +174139,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "liza"; questRoot14.Author = list106; - num = 6; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span29 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference80 = ref span29[0]; + index = 6; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -145911,26 +174156,32 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj78.Steps = list108; reference80 = obj78; - ref QuestSequence reference81 = ref span29[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span30 = CollectionsMarshal.AsSpan(list109); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-841.98883f, 32.499996f, 479.86572f), 400) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-841.98883f, 32.499996f, 479.86572f), 400) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference82 = ref span29[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -145938,21 +174189,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2007256u, new Vector3(-846.79944f, 34.01233f, 476.92053f), 400); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007256u, new Vector3(-846.79944f, 34.01233f, 476.92053f), 400); obj80.Steps = list110; reference82 = obj80; - ref QuestSequence reference83 = ref span29[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference84 = ref span29[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -145960,24 +174217,29 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span31 = CollectionsMarshal.AsSpan(list112); - span31[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15741u, ItemCount = 3 }; - span31[1] = new QuestStep(EInteractionType.Interact, 1017549u, new Vector3(-836.9116f, 35.219498f, 457.6637f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017549u, new Vector3(-836.9116f, 35.219498f, 457.6637f), 400); obj82.Steps = list112; reference84 = obj82; - ref QuestSequence reference85 = ref span29[5]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146003,13 +174265,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot15.Author = list114; - num = 7; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span32 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span32[0]; + index = 7; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -146017,26 +174282,32 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj84.Steps = list116; reference86 = obj84; - ref QuestSequence reference87 = ref span32[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span33 = CollectionsMarshal.AsSpan(list117); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) + index2 = 2; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) { Fly = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); obj85.Steps = list117; reference87 = obj85; - ref QuestSequence reference88 = ref span32[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -146044,34 +174315,41 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj86.Steps = list118; reference88 = obj86; - ref QuestSequence reference89 = ref span32[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span34 = CollectionsMarshal.AsSpan(list119); - span34[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 3; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15742u, ItemCount = 1 }; - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) { Fly = true }; - span34[2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span32[4]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -146079,28 +174357,34 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1017456u, new Vector3(-152.02563f, 160.94061f, -770.50433f), 400) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017456u, new Vector3(-152.02563f, 160.94061f, -770.50433f), 400) { Fly = true }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span32[5]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span32[6]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -146108,7 +174392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj90.Steps = list122; reference92 = obj90; questRoot15.QuestSequence = list115; @@ -146118,21 +174404,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "Censored"; questRoot16.Author = list123; - num = 6; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span35 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span35[0]; + index = 6; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146151,7 +174442,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list125; reference93 = obj91; - ref QuestSequence reference94 = ref span35[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -146159,57 +174451,76 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span36 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference95 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1017459u, new Vector3(-611.41376f, 70f, 209.30798f), 400) { Fly = true }; - num3 = 6; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span37 = CollectionsMarshal.AsSpan(list127); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + span5 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list127; reference95 = obj93; - ref QuestStep reference96 = ref span36[1]; + index2++; + ref QuestStep reference96 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1017458u, new Vector3(-618.7381f, 70f, 207.9347f), 400); num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span38 = CollectionsMarshal.AsSpan(list128); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list128; reference96 = questStep3; - span36[2] = new QuestStep(EInteractionType.Interact, 1017457u, new Vector3(-619.74524f, 70f, 214.52649f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017457u, new Vector3(-619.74524f, 70f, 214.52649f), 400); obj92.Steps = list126; reference94 = obj92; - ref QuestSequence reference97 = ref span35[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) { Fly = true, Land = true }; obj94.Steps = list129; reference97 = obj94; - ref QuestSequence reference98 = ref span35[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 @@ -146217,25 +174528,33 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span39 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference99 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1017461u, new Vector3(79.9115f, -22.838034f, -123.67438f), 400) { Fly = true }; - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span40 = CollectionsMarshal.AsSpan(list131); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span5 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list131; reference99 = obj96; - ref QuestStep reference100 = ref span39[1]; + index2++; + ref QuestStep reference100 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1017462u, new Vector3(-479.08752f, 106.92683f, -112.077515f), 400) { Fly = true @@ -146243,37 +174562,48 @@ public static class AssemblyQuestLoader num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span41 = CollectionsMarshal.AsSpan(list132); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list132; reference100 = obj97; - span39[2] = new QuestStep(EInteractionType.Interact, 1017460u, new Vector3(-689.05164f, 78.99983f, 266.0105f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017460u, new Vector3(-689.05164f, 78.99983f, 266.0105f), 400) { Fly = true }; obj95.Steps = list130; reference98 = obj95; - ref QuestSequence reference101 = ref span35[4]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) { Fly = true, Land = true }; obj98.Steps = list133; reference101 = obj98; - ref QuestSequence reference102 = ref span35[5]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -146281,7 +174611,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146307,21 +174639,26 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "Censored"; questRoot17.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span42 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference103 = ref span42[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146340,7 +174677,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list137; reference103 = obj100; - ref QuestSequence reference104 = ref span42[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -146348,24 +174686,30 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400); obj101.Steps = list138; reference104 = obj101; - ref QuestSequence reference105 = ref span42[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj102.Steps = list139; reference105 = obj102; - ref QuestSequence reference106 = ref span42[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -146373,8 +174717,9 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span43 = CollectionsMarshal.AsSpan(list140); - span43[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15743u, ItemCount = 3, @@ -146386,36 +174731,46 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true }; obj103.Steps = list140; reference106 = obj103; - ref QuestSequence reference107 = ref span42[4]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span44 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference108 = ref span44[0]; + index2 = 3; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1017463u, new Vector3(-380.23956f, 59.994583f, 281.84937f), 400); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span45 = CollectionsMarshal.AsSpan(list142); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span5 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list142; reference108 = questStep4; - ref QuestStep reference109 = ref span44[1]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1017464u, new Vector3(-118.48633f, 36.39444f, 163.22571f), 400) { Fly = true @@ -146423,22 +174778,30 @@ public static class AssemblyQuestLoader num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span46 = CollectionsMarshal.AsSpan(list143); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list143; reference109 = obj105; - span44[2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj104.Steps = list141; reference107 = obj104; - ref QuestSequence reference110 = ref span42[5]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -146446,7 +174809,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146472,24 +174837,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; questRoot18.Author = list145; - num = 4; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span47 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference111 = ref span47[0]; + index = 4; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj107.Steps = list147; reference111 = obj107; - ref QuestSequence reference112 = ref span47[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -146497,30 +174868,36 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1017465u, new Vector3(202.28882f, 42.309406f, -577.3861f), 400) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017465u, new Vector3(202.28882f, 42.309406f, -577.3861f), 400) { Fly = true }; obj108.Steps = list148; reference112 = obj108; - ref QuestSequence reference113 = ref span47[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span48 = CollectionsMarshal.AsSpan(list149); - span48[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15744u, ItemCount = 2 }; - span48[1] = new QuestStep(EInteractionType.Interact, 1017466u, new Vector3(176.71472f, 42.308628f, -571.37415f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017466u, new Vector3(176.71472f, 42.308628f, -571.37415f), 400); obj109.Steps = list149; reference113 = obj109; - ref QuestSequence reference114 = ref span47[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -146528,7 +174905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146554,24 +174933,30 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; questRoot19.Author = list151; - num = 8; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span49 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference115 = ref span49[0]; + index = 8; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj111.Steps = list153; reference115 = obj111; - ref QuestSequence reference116 = ref span49[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -146579,28 +174964,34 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj112.Steps = list154; reference116 = obj112; - ref QuestSequence reference117 = ref span49[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1017467u, new Vector3(-40.20758f, -8.6555605f, 202.83813f), 400) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017467u, new Vector3(-40.20758f, -8.6555605f, 202.83813f), 400) { StopDistance = 0.5f, Fly = true }; obj113.Steps = list155; reference117 = obj113; - ref QuestSequence reference118 = ref span49[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -146608,22 +174999,27 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Emote, 1017624u, new Vector3(-76.0968f, -8.655561f, 216.17456f), 400) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1017624u, new Vector3(-76.0968f, -8.655561f, 216.17456f), 400) { Fly = true, Emote = EEmote.Psych }; obj114.Steps = list156; reference118 = obj114; - ref QuestSequence reference119 = ref span49[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Emote, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) { StopDistance = 0.5f, Fly = true, @@ -146631,7 +175027,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list157; reference119 = obj115; - ref QuestSequence reference120 = ref span49[5]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 5 @@ -146639,34 +175036,40 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj116.Steps = list158; reference120 = obj116; - ref QuestSequence reference121 = ref span49[6]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span50 = CollectionsMarshal.AsSpan(list159); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15745u, ItemCount = 1 }; - span50[1] = new QuestStep(EInteractionType.Interact, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) { StopDistance = 0.5f, Fly = true }; obj117.Steps = list159; reference121 = obj117; - ref QuestSequence reference122 = ref span49[7]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -146674,7 +175077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146700,21 +175105,26 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza, Redacted"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza, Redacted"; questRoot20.Author = list161; - num = 5; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span51 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference123 = ref span51[0]; + index = 5; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146733,7 +175143,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list163; reference123 = obj119; - ref QuestSequence reference124 = ref span51[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -146741,8 +175152,9 @@ public static class AssemblyQuestLoader num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span52 = CollectionsMarshal.AsSpan(list164); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.06366f, 61.351093f, 305.64108f), 400) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.06366f, 61.351093f, 305.64108f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146759,25 +175171,30 @@ public static class AssemblyQuestLoader } } }; - span52[1] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); obj120.Steps = list164; reference124 = obj120; - ref QuestSequence reference125 = ref span51[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Action, 2007283u, new Vector3(-177.87445f, 53.055542f, 53.665894f), 400) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2007283u, new Vector3(-177.87445f, 53.055542f, 53.665894f), 400) { Fly = true, Action = EAction.Roar }; obj121.Steps = list165; reference125 = obj121; - ref QuestSequence reference126 = ref span51[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -146785,22 +175202,27 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Action, 2007284u, new Vector3(-320.60736f, 220.38599f, -708.00336f), 400) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007284u, new Vector3(-320.60736f, 220.38599f, -708.00336f), 400) { Fly = true, Action = EAction.Roar }; obj122.Steps = list166; reference126 = obj122; - ref QuestSequence reference127 = ref span51[4]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146826,13 +175248,16 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "Censored"; questRoot21.Author = list168; - num = 9; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span53 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference128 = ref span53[0]; + index = 9; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -146840,7 +175265,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017328u, new Vector3(234.33276f, -42.20274f, 601.00696f), 400) + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017328u, new Vector3(234.33276f, -42.20274f, 601.00696f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, SkipConditions = new SkipConditions @@ -146858,21 +175285,25 @@ public static class AssemblyQuestLoader }; obj124.Steps = list170; reference128 = obj124; - ref QuestSequence reference129 = ref span53[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1017329u, new Vector3(351.76624f, -74.80417f, 629.96875f), 400) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017329u, new Vector3(351.76624f, -74.80417f, 629.96875f), 400) { Fly = true }; obj125.Steps = list171; reference129 = obj125; - ref QuestSequence reference130 = ref span53[2]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -146880,7 +175311,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -146891,15 +175324,18 @@ public static class AssemblyQuestLoader }; obj126.Steps = list172; reference130 = obj126; - ref QuestSequence reference131 = ref span53[3]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419) { AethernetShortcut = new AethernetShortcut { @@ -146909,7 +175345,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list173; reference131 = obj127; - ref QuestSequence reference132 = ref span53[4]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 4 @@ -146917,31 +175354,37 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span54 = CollectionsMarshal.AsSpan(list174); - span54[0] = new QuestStep(EInteractionType.Craft, null, null, 419) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 419) { ItemId = 15720u, ItemCount = 1 }; - span54[1] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419); obj128.Steps = list174; reference132 = obj128; - ref QuestSequence reference133 = ref span53[5]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj129.Steps = list175; reference133 = obj129; - ref QuestSequence reference134 = ref span53[6]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 6 @@ -146949,27 +175392,33 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1017334u, new Vector3(-614.374f, 48f, 326.28357f), 400) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017334u, new Vector3(-614.374f, 48f, 326.28357f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj130.Steps = list176; reference134 = obj130; - ref QuestSequence reference135 = ref span53[7]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) { Fly = true }; obj131.Steps = list177; reference135 = obj131; - ref QuestSequence reference136 = ref span53[8]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -146977,12 +175426,16 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list178)[0]; + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference137 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1017335u, new Vector3(-370.9926f, 60.86112f, 309.8954f), 400); - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice + index3 = 1; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + span4 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG001_02320_Q1_000_000"), @@ -146999,21 +175452,26 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "Censored"; questRoot22.Author = list180; - num = 11; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span55 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference138 = ref span55[0]; + index = 11; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147032,7 +175490,8 @@ public static class AssemblyQuestLoader }; obj133.Steps = list182; reference138 = obj133; - ref QuestSequence reference139 = ref span55[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 @@ -147040,24 +175499,30 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj134.Steps = list183; reference139 = obj134; - ref QuestSequence reference140 = ref span55[2]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) { Fly = true }; obj135.Steps = list184; reference140 = obj135; - ref QuestSequence reference141 = ref span55[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -147065,7 +175530,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list185)[0]; + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference142 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1017341u, new Vector3(-90.92853f, -8.655593f, 173.84595f), 400) { Fly = true @@ -147073,7 +175540,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG002_02321_Q1_000_000"), @@ -147083,22 +175552,26 @@ public static class AssemblyQuestLoader reference142 = obj137; obj136.Steps = list185; reference141 = obj136; - ref QuestSequence reference143 = ref span55[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj138.Steps = list187; reference143 = obj138; - ref QuestSequence reference144 = ref span55[5]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 5 @@ -147106,28 +175579,34 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj139.Steps = list188; reference144 = obj139; - ref QuestSequence reference145 = ref span55[6]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1017342u, new Vector3(230.57898f, -6.0532966f, 44.541016f), 400) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017342u, new Vector3(230.57898f, -6.0532966f, 44.541016f), 400) { Fly = true }; obj140.Steps = list189; reference145 = obj140; - ref QuestSequence reference146 = ref span55[7]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 7 @@ -147135,28 +175614,34 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1017343u, new Vector3(-375.47876f, 60.106445f, 307.27087f), 400) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017343u, new Vector3(-375.47876f, 60.106445f, 307.27087f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj141.Steps = list190; reference146 = obj141; - ref QuestSequence reference147 = ref span55[8]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400) { Fly = true }; obj142.Steps = list191; reference147 = obj142; - ref QuestSequence reference148 = ref span55[9]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 9 @@ -147164,22 +175649,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Action, 2007197u, new Vector3(-376.8521f, 60.135742f, 302.6931f), 400) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007197u, new Vector3(-376.8521f, 60.135742f, 302.6931f), 400) { Fly = true, Action = EAction.Seed }; obj143.Steps = list192; reference148 = obj143; - ref QuestSequence reference149 = ref span55[10]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; @@ -147192,13 +175682,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "liza"; questRoot23.Author = list194; - num = 9; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span56 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference150 = ref span56[0]; + index = 9; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -147206,24 +175699,30 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj145.Steps = list196; reference150 = obj145; - ref QuestSequence reference151 = ref span56[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { StopDistance = 7f }; obj146.Steps = list197; reference151 = obj146; - ref QuestSequence reference152 = ref span56[2]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -147231,27 +175730,33 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 2007198u, new Vector3(-339.65057f, 58.976074f, 319.50854f), 400) + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007198u, new Vector3(-339.65057f, 58.976074f, 319.50854f), 400) { StopDistance = 4.5f }; obj147.Steps = list198; reference152 = obj147; - ref QuestSequence reference153 = ref span56[3]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) { Fly = true }; obj148.Steps = list199; reference153 = obj148; - ref QuestSequence reference154 = ref span56[4]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 4 @@ -147259,15 +175764,19 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list200)[0]; + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference155 = ref span3[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span4 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG003_02322_Q1_000_000"), @@ -147277,18 +175786,22 @@ public static class AssemblyQuestLoader reference155 = obj150; obj149.Steps = list200; reference154 = obj149; - ref QuestSequence reference156 = ref span56[5]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj151.Steps = list202; reference156 = obj151; - ref QuestSequence reference157 = ref span56[6]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 6 @@ -147296,30 +175809,36 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span57 = CollectionsMarshal.AsSpan(list203); - span57[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15721u, ItemCount = 1 }; - span57[1] = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj152.Steps = list203; reference157 = obj152; - ref QuestSequence reference158 = ref span56[7]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) { Fly = true }; obj153.Steps = list204; reference158 = obj153; - ref QuestSequence reference159 = ref span56[8]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -147327,7 +175846,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; @@ -147340,21 +175861,26 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "Censored"; questRoot24.Author = list206; - num = 10; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span58 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference160 = ref span58[0]; + index = 10; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147373,7 +175899,8 @@ public static class AssemblyQuestLoader }; obj155.Steps = list208; reference160 = obj155; - ref QuestSequence reference161 = ref span58[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -147381,24 +175908,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj156.Steps = list209; reference161 = obj156; - ref QuestSequence reference162 = ref span58[2]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) { Fly = true }; obj157.Steps = list210; reference162 = obj157; - ref QuestSequence reference163 = ref span58[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -147406,7 +175939,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list211)[0]; + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + ref QuestStep reference164 = ref span3[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true @@ -147414,7 +175949,9 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG004_02323_Q1_000_000"), @@ -147424,21 +175961,25 @@ public static class AssemblyQuestLoader reference164 = obj159; obj158.Steps = list211; reference163 = obj158; - ref QuestSequence reference165 = ref span58[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) { Fly = true }; obj160.Steps = list213; reference165 = obj160; - ref QuestSequence reference166 = ref span58[5]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 5 @@ -147446,25 +175987,31 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1017442u, new Vector3(-652.8268f, 248.69513f, -767.87976f), 400); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017442u, new Vector3(-652.8268f, 248.69513f, -767.87976f), 400); obj161.Steps = list214; reference166 = obj161; - ref QuestSequence reference167 = ref span58[6]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj162.Steps = list215; reference167 = obj162; - ref QuestSequence reference168 = ref span58[7]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 7 @@ -147472,29 +176019,35 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Action, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) { Fly = true, Action = EAction.Roar }; obj163.Steps = list216; reference168 = obj163; - ref QuestSequence reference169 = ref span58[8]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj164.Steps = list217; reference169 = obj164; - ref QuestSequence reference170 = ref span58[9]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -147502,7 +176055,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; @@ -147515,21 +176070,26 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "Censored"; questRoot25.Author = list219; - num = 6; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span59 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference171 = ref span59[0]; + index = 6; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147548,7 +176108,8 @@ public static class AssemblyQuestLoader }; obj166.Steps = list221; reference171 = obj166; - ref QuestSequence reference172 = ref span59[1]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -147556,24 +176117,30 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj167.Steps = list222; reference172 = obj167; - ref QuestSequence reference173 = ref span59[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1017446u, new Vector3(-103.92926f, -8.845976f, 216.35767f), 400) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017446u, new Vector3(-103.92926f, -8.845976f, 216.35767f), 400) { Fly = true }; obj168.Steps = list223; reference173 = obj168; - ref QuestSequence reference174 = ref span59[3]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -147581,24 +176148,30 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; obj169.Steps = list224; reference174 = obj169; - ref QuestSequence reference175 = ref span59[4]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj170.Steps = list225; reference175 = obj170; - ref QuestSequence reference176 = ref span59[5]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -147606,8 +176179,9 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span60 = CollectionsMarshal.AsSpan(list226); - span60[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15722u, ItemCount = 1, @@ -147619,7 +176193,8 @@ public static class AssemblyQuestLoader } } }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj171.Steps = list226; reference176 = obj171; questRoot25.QuestSequence = list220; @@ -147629,21 +176204,26 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "Censored"; questRoot26.Author = list227; - num = 7; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span61 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference177 = ref span61[0]; + index = 7; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147662,7 +176242,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list229; reference177 = obj172; - ref QuestSequence reference178 = ref span61[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -147670,18 +176251,23 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj173.Steps = list230; reference178 = obj173; - ref QuestSequence reference179 = ref span61[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -147692,7 +176278,8 @@ public static class AssemblyQuestLoader }; obj174.Steps = list231; reference179 = obj174; - ref QuestSequence reference180 = ref span61[3]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 @@ -147700,25 +176287,31 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); obj175.Steps = list232; reference180 = obj175; - ref QuestSequence reference181 = ref span61[4]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj176.Steps = list233; reference181 = obj176; - ref QuestSequence reference182 = ref span61[5]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 @@ -147726,19 +176319,23 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj177.Steps = list234; reference182 = obj177; - ref QuestSequence reference183 = ref span61[6]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span62 = CollectionsMarshal.AsSpan(list235); - span62[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15723u, ItemCount = 1, @@ -147750,7 +176347,8 @@ public static class AssemblyQuestLoader } } }; - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj178.Steps = list235; reference183 = obj178; questRoot26.QuestSequence = list228; @@ -147760,13 +176358,16 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "Censored"; questRoot27.Author = list236; - num = 9; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span63 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference184 = ref span63[0]; + index = 9; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -147774,7 +176375,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147793,18 +176396,22 @@ public static class AssemblyQuestLoader }; obj179.Steps = list238; reference184 = obj179; - ref QuestSequence reference185 = ref span63[1]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj180.Steps = list239; reference185 = obj180; - ref QuestSequence reference186 = ref span63[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 @@ -147812,29 +176419,35 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj181.Steps = list240; reference186 = obj181; - ref QuestSequence reference187 = ref span63[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj182.Steps = list241; reference187 = obj182; - ref QuestSequence reference188 = ref span63[4]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 4 @@ -147842,50 +176455,69 @@ public static class AssemblyQuestLoader num2 = 3; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span64 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference189 = ref span64[0]; + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + ref QuestStep reference189 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2007202u, new Vector3(-372.15234f, 60.318848f, 335.89685f), 400); - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span65 = CollectionsMarshal.AsSpan(list243); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + span5 = CollectionsMarshal.AsSpan(list243); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list243; reference189 = questStep6; - ref QuestStep reference190 = ref span64[1]; + index2++; + ref QuestStep reference190 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2007201u, new Vector3(-367.63562f, 59.8916f, 333.45532f), 400); num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span66 = CollectionsMarshal.AsSpan(list244); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list244; reference190 = questStep7; - span64[2] = new QuestStep(EInteractionType.Interact, 2007221u, new Vector3(-364.9806f, 60.471436f, 331.74634f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007221u, new Vector3(-364.9806f, 60.471436f, 331.74634f), 400); obj183.Steps = list242; reference188 = obj183; - ref QuestSequence reference191 = ref span63[5]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400); obj184.Steps = list245; reference191 = obj184; - ref QuestSequence reference192 = ref span63[6]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 6 @@ -147893,21 +176525,27 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1017448u, new Vector3(-383.35242f, 59.9946f, 297.74927f), 400); + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017448u, new Vector3(-383.35242f, 59.9946f, 297.74927f), 400); obj185.Steps = list246; reference192 = obj185; - ref QuestSequence reference193 = ref span63[7]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj186.Steps = list247; reference193 = obj186; - ref QuestSequence reference194 = ref span63[8]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -147915,8 +176553,9 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span67 = CollectionsMarshal.AsSpan(list248); - span67[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15724u, ItemCount = 1, @@ -147928,7 +176567,8 @@ public static class AssemblyQuestLoader } } }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj187.Steps = list248; reference194 = obj187; questRoot27.QuestSequence = list237; @@ -147938,21 +176578,26 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "Skiaz"; + span = CollectionsMarshal.AsSpan(list249); + index = 0; + span[index] = "Skiaz"; questRoot28.Author = list249; - num = 3; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span68 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference195 = ref span68[0]; + index = 3; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + span2 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147971,7 +176616,8 @@ public static class AssemblyQuestLoader }; obj188.Steps = list251; reference195 = obj188; - ref QuestSequence reference196 = ref span68[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -147979,26 +176625,31 @@ public static class AssemblyQuestLoader num2 = 2; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span69 = CollectionsMarshal.AsSpan(list252); - span69[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Fly = true }; obj189.Steps = list252; reference196 = obj189; - ref QuestSequence reference197 = ref span68[2]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -148024,13 +176675,16 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "liza"; questRoot29.Author = list254; - num = 4; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span70 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference198 = ref span70[0]; + index = 4; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -148038,8 +176692,9 @@ public static class AssemblyQuestLoader num2 = 3; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span71 = CollectionsMarshal.AsSpan(list256); - ref QuestStep reference199 = ref span71[0]; + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + ref QuestStep reference199 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -148047,22 +176702,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = 351; + index3 = 1; + List list257 = new List(index3); + CollectionsMarshal.SetCount(list257, index3); + Span span6 = CollectionsMarshal.AsSpan(list257); + num3 = 0; + span6[num3] = 351; skipStepConditions2.InTerritory = list257; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 351; + span6 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span6[index3] = 351; skipAetheryteCondition.InTerritory = list258; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj192.SkipConditions = skipConditions2; reference199 = obj192; - span71[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -148073,28 +176733,33 @@ public static class AssemblyQuestLoader } } }; - span71[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj191.Steps = list256; reference198 = obj191; - ref QuestSequence reference200 = ref span70[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1017674u, new Vector3(209.97937f, 256.37262f, 5.9052124f), 402) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017674u, new Vector3(209.97937f, 256.37262f, 5.9052124f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj193.Steps = list259; reference200 = obj193; - ref QuestSequence reference201 = ref span70[2]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 2 @@ -148102,7 +176767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -148111,25 +176778,29 @@ public static class AssemblyQuestLoader }; obj194.Steps = list260; reference201 = obj194; - ref QuestSequence reference202 = ref span70[3]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - Span span72 = CollectionsMarshal.AsSpan(list261); - span72[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span72[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2394) @@ -148143,13 +176814,16 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list262); + index = 0; + span[index] = "liza"; questRoot30.Author = list262; - num = 2; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span73 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference203 = ref span73[0]; + index = 2; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + span2 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -148157,8 +176831,9 @@ public static class AssemblyQuestLoader num2 = 3; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span74 = CollectionsMarshal.AsSpan(list264); - ref QuestStep reference204 = ref span74[0]; + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + ref QuestStep reference204 = ref span3[index2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -148166,22 +176841,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = 351; + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + span6 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span6[num3] = 351; skipStepConditions3.InTerritory = list265; skipConditions3.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = 351; + span6 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span6[index3] = 351; skipAetheryteCondition2.InTerritory = list266; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj197.SkipConditions = skipConditions3; reference204 = obj197; - span74[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -148192,22 +176872,25 @@ public static class AssemblyQuestLoader } } }; - span74[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj196.Steps = list264; reference203 = obj196; - ref QuestSequence reference205 = ref span73[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span75 = CollectionsMarshal.AsSpan(list267); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -148228,7 +176911,8 @@ public static class AssemblyQuestLoader } } }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -148241,13 +176925,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "liza"; questRoot31.Author = list268; - num = 5; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span76 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference206 = ref span76[0]; + index = 5; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -148255,24 +176942,30 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399); + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399); obj199.Steps = list270; reference206 = obj199; - ref QuestSequence reference207 = ref span76[1]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1017930u, new Vector3(-121.26343f, 100.66968f, -131.12079f), 399) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017930u, new Vector3(-121.26343f, 100.66968f, -131.12079f), 399) { Fly = true }; obj200.Steps = list271; reference207 = obj200; - ref QuestSequence reference208 = ref span76[2]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -148280,21 +176973,26 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { Fly = true }; obj201.Steps = list272; reference208 = obj201; - ref QuestSequence reference209 = ref span76[3]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148303,7 +177001,8 @@ public static class AssemblyQuestLoader }; obj202.Steps = list273; reference209 = obj202; - ref QuestSequence reference210 = ref span76[4]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -148311,7 +177010,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2336) @@ -148325,27 +177026,33 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list275); + index = 0; + span[index] = "liza"; questRoot32.Author = list275; - num = 3; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span77 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference211 = ref span77[0]; + index = 3; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + span2 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { StopDistance = 5f }; obj204.Steps = list277; reference211 = obj204; - ref QuestSequence reference212 = ref span77[1]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -148353,7 +177060,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148362,15 +177071,18 @@ public static class AssemblyQuestLoader }; obj205.Steps = list278; reference212 = obj205; - ref QuestSequence reference213 = ref span77[2]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017938u, new Vector3(-16.70868f, 215.13815f, 256.27515f), 399) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017938u, new Vector3(-16.70868f, 215.13815f, 256.27515f), 399) { NextQuestId = new QuestId(2337) }; @@ -148383,13 +177095,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "liza"; questRoot33.Author = list280; - num = 3; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span78 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference214 = ref span78[0]; + index = 3; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -148397,21 +177112,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016640u, new Vector3(-48.508484f, 100.66968f, -148.33301f), 399) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016640u, new Vector3(-48.508484f, 100.66968f, -148.33301f), 399) { StopDistance = 7f }; obj207.Steps = list282; reference214 = obj207; - ref QuestSequence reference215 = ref span78[1]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148420,7 +177140,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list283; reference215 = obj208; - ref QuestSequence reference216 = ref span78[2]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -148428,7 +177149,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2338) @@ -148442,31 +177165,38 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list285); + index = 0; + span[index] = "liza"; questRoot34.Author = list285; - num = 6; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span79 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference217 = ref span79[0]; + index = 6; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + span2 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) { StopDistance = 5f }; obj210.Steps = list287; reference217 = obj210; - span79[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference218 = ref span79[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -148474,7 +177204,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148483,25 +177215,30 @@ public static class AssemblyQuestLoader }; obj211.Steps = list288; reference218 = obj211; - span79[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference219 = ref span79[4]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 2007465u, new Vector3(-11.91736f, 0.4729614f, 14.20605f), 588) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007465u, new Vector3(-11.91736f, 0.4729614f, 14.20605f), 588) { TargetTerritoryId = (ushort)399 }; obj212.Steps = list289; reference219 = obj212; - ref QuestSequence reference220 = ref span79[5]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -148509,7 +177246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) { StopDistance = 7f, NextQuestId = new QuestId(2339) @@ -148523,27 +177262,33 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list291); + index = 0; + span[index] = "liza"; questRoot35.Author = list291; - num = 3; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span80 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference221 = ref span80[0]; + index = 3; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + span2 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) { StopDistance = 7f }; obj214.Steps = list293; reference221 = obj214; - ref QuestSequence reference222 = ref span80[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -148551,21 +177296,26 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1018346u, new Vector3(-237.17102f, 123.32269f, -209.82684f), 399) + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018346u, new Vector3(-237.17102f, 123.32269f, -209.82684f), 399) { Fly = true }; obj215.Steps = list294; reference222 = obj215; - ref QuestSequence reference223 = ref span80[2]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { Fly = true }; @@ -148578,13 +177328,16 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "JerryWester"; questRoot36.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span81 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference224 = ref span81[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -148592,21 +177345,26 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { StopDistance = 7f }; obj217.Steps = list298; reference224 = obj217; - ref QuestSequence reference225 = ref span81[1]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1017719u, new Vector3(238.26953f, -13.534949f, -87.937744f), 419) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017719u, new Vector3(238.26953f, -13.534949f, -87.937744f), 419) { AethernetShortcut = new AethernetShortcut { @@ -148616,7 +177374,8 @@ public static class AssemblyQuestLoader }; obj218.Steps = list299; reference225 = obj218; - ref QuestSequence reference226 = ref span81[2]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 2 @@ -148624,22 +177383,27 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; obj219.Steps = list300; reference226 = obj219; - ref QuestSequence reference227 = ref span81[3]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) { StopDistance = 5f }; @@ -148652,13 +177416,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "JerryWester"; questRoot37.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span82 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference228 = ref span82[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 0 @@ -148666,28 +177433,34 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) { StopDistance = 5f }; obj221.Steps = list304; reference228 = obj221; - ref QuestSequence reference229 = ref span82[1]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1017723u, new Vector3(248.40149f, 302f, -260.85297f), 155) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017723u, new Vector3(248.40149f, 302f, -260.85297f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj222.Steps = list305; reference229 = obj222; - ref QuestSequence reference230 = ref span82[2]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -148695,38 +177468,46 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1017725u, new Vector3(603.6315f, 331.42905f, -306.508f), 155) + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017725u, new Vector3(603.6315f, 331.42905f, -306.508f), 155) { Fly = true }; obj223.Steps = list306; reference230 = obj223; - ref QuestSequence reference231 = ref span82[3]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - ref QuestStep reference232 = ref CollectionsMarshal.AsSpan(list307)[0]; + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference232 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Duty, null, null, 155); DutyOptions obj225 = new DutyOptions { ContentFinderConditionId = 182u }; - num3 = 2; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span83 = CollectionsMarshal.AsSpan(list308); - span83[0] = "(after boss 1) the drawbridges being up will lead you to die from the spikes"; - span83[1] = "(after boss 1) the lift isn't working properly"; + index3 = 2; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + span = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span[num3] = "(after boss 1) the drawbridges being up will lead you to die from the spikes"; + num3++; + span[num3] = "(after boss 1) the lift isn't working properly"; obj225.Notes = list308; questStep8.DutyOptions = obj225; reference232 = questStep8; obj224.Steps = list307; reference231 = obj224; - ref QuestSequence reference233 = ref span82[4]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue @@ -148734,7 +177515,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) { StopDistance = 7f }; @@ -148747,27 +177530,33 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "JerryWester"; questRoot38.Author = list310; - num = 5; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span84 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference234 = ref span84[0]; + index = 5; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + span2 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) { StopDistance = 7f }; obj227.Steps = list312; reference234 = obj227; - ref QuestSequence reference235 = ref span84[1]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 1 @@ -148775,7 +177564,9 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -148786,21 +177577,25 @@ public static class AssemblyQuestLoader }; obj228.Steps = list313; reference235 = obj228; - ref QuestSequence reference236 = ref span84[2]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418) { StopDistance = 7f }; obj229.Steps = list314; reference236 = obj229; - ref QuestSequence reference237 = ref span84[3]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 3 @@ -148808,28 +177603,34 @@ public static class AssemblyQuestLoader num2 = 3; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span85 = CollectionsMarshal.AsSpan(list315); - span85[0] = new QuestStep(EInteractionType.UseItem, null, null, 418) + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 418) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span85[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj230.Steps = list315; reference237 = obj230; - ref QuestSequence reference238 = ref span84[4]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -148843,13 +177644,16 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list317); + index = 0; + span[index] = "JerryWester"; questRoot39.Author = list317; - num = 7; - List list318 = new List(num); - CollectionsMarshal.SetCount(list318, num); - Span span86 = CollectionsMarshal.AsSpan(list318); - ref QuestSequence reference239 = ref span86[0]; + index = 7; + List list318 = new List(index); + CollectionsMarshal.SetCount(list318, index); + span2 = CollectionsMarshal.AsSpan(list318); + num = 0; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -148857,7 +177661,9 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -148870,18 +177676,22 @@ public static class AssemblyQuestLoader }; obj232.Steps = list319; reference239 = obj232; - ref QuestSequence reference240 = ref span86[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); obj233.Steps = list320; reference240 = obj233; - ref QuestSequence reference241 = ref span86[2]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 @@ -148889,28 +177699,34 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1017732u, new Vector3(-74.99817f, 64.60398f, -289.53992f), 180) + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017732u, new Vector3(-74.99817f, 64.60398f, -289.53992f), 180) { Fly = true }; obj234.Steps = list321; reference241 = obj234; - ref QuestSequence reference242 = ref span86[3]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1017733u, new Vector3(-29.221008f, 57.161472f, -235.4925f), 180) + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017733u, new Vector3(-29.221008f, 57.161472f, -235.4925f), 180) { StopDistance = 1f, Fly = true }; obj235.Steps = list322; reference242 = obj235; - ref QuestSequence reference243 = ref span86[4]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 4 @@ -148918,12 +177734,14 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span87 = CollectionsMarshal.AsSpan(list323); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.94925f, 74.435455f, -281.74304f), 180) + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.94925f, 74.435455f, -281.74304f), 180) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.Interact, 1017734u, new Vector3(-105.4552f, 67.90736f, -277.7295f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017734u, new Vector3(-105.4552f, 67.90736f, -277.7295f), 180) { DelaySecondsAtStart = 1f, DisableNavmesh = true, @@ -148931,21 +177749,25 @@ public static class AssemblyQuestLoader }; obj236.Steps = list323; reference243 = obj236; - ref QuestSequence reference244 = ref span86[5]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1017735u, new Vector3(-39.230957f, 64.43301f, -226.94745f), 180) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017735u, new Vector3(-39.230957f, 64.43301f, -226.94745f), 180) { Fly = true }; obj237.Steps = list324; reference244 = obj237; - ref QuestSequence reference245 = ref span86[6]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -148953,7 +177775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017736u, new Vector3(-42.008118f, 64.500336f, -228.47339f), 180); + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017736u, new Vector3(-42.008118f, 64.500336f, -228.47339f), 180); obj238.Steps = list325; reference245 = obj238; questRoot39.QuestSequence = list318; @@ -148963,21 +177787,26 @@ public static class AssemblyQuestLoader num = 1; List list326 = new List(num); CollectionsMarshal.SetCount(list326, num); - CollectionsMarshal.AsSpan(list326)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list326); + index = 0; + span[index] = "JerryWester"; questRoot40.Author = list326; - num = 10; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - Span span88 = CollectionsMarshal.AsSpan(list327); - ref QuestSequence reference246 = ref span88[0]; + index = 10; + List list327 = new List(index); + CollectionsMarshal.SetCount(list327, index); + span2 = CollectionsMarshal.AsSpan(list327); + num = 0; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016815u, new Vector3(-39.108948f, 64.40771f, -226.88641f), 180) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016815u, new Vector3(-39.108948f, 64.40771f, -226.88641f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -148990,7 +177819,8 @@ public static class AssemblyQuestLoader }; obj239.Steps = list328; reference246 = obj239; - ref QuestSequence reference247 = ref span88[1]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -148998,24 +177828,30 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1017865u, new Vector3(74.906494f, 66.5736f, -242.35907f), 180) + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017865u, new Vector3(74.906494f, 66.5736f, -242.35907f), 180) { Fly = true }; obj240.Steps = list329; reference247 = obj240; - ref QuestSequence reference248 = ref span88[2]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 2007415u, new Vector3(76.76807f, 66.48352f, -243.54932f), 180); + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007415u, new Vector3(76.76807f, 66.48352f, -243.54932f), 180); obj241.Steps = list330; reference248 = obj241; - ref QuestSequence reference249 = ref span88[3]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 3 @@ -149023,27 +177859,33 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Interact, 2007416u, new Vector3(88.76172f, 48.599854f, -399.5575f), 180) + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007416u, new Vector3(88.76172f, 48.599854f, -399.5575f), 180) { Fly = true }; obj242.Steps = list331; reference249 = obj242; - ref QuestSequence reference250 = ref span88[4]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 2007459u, new Vector3(88.60913f, 55.436035f, -456.80933f), 180) + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007459u, new Vector3(88.60913f, 55.436035f, -456.80933f), 180) { Fly = true }; obj243.Steps = list332; reference250 = obj243; - ref QuestSequence reference251 = ref span88[5]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 5 @@ -149051,43 +177893,57 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1018112u, new Vector3(87.96814f, 55.499306f, -454.5205f), 180); + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018112u, new Vector3(87.96814f, 55.499306f, -454.5205f), 180); obj244.Steps = list333; reference251 = obj244; - ref QuestSequence reference252 = ref span88[6]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 6 }; - num2 = 7; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span89 = CollectionsMarshal.AsSpan(list334); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + index2 = 7; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true }; - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.36899f, 23.559273f, -618.5543f), 180); - span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - span89[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - span89[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - span89[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - span89[6] = new QuestStep(EInteractionType.Interact, 1017739u, new Vector3(146.34924f, 24.163107f, -635.40094f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017739u, new Vector3(146.34924f, 24.163107f, -635.40094f), 180); obj245.Steps = list334; reference252 = obj245; - ref QuestSequence reference253 = ref span88[7]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 7 @@ -149095,21 +177951,26 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1017741u, new Vector3(146.68494f, 24.240011f, -632.4712f), 180) + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017741u, new Vector3(146.68494f, 24.240011f, -632.4712f), 180) { StopDistance = 7f }; obj246.Steps = list335; reference253 = obj246; - ref QuestSequence reference254 = ref span88[8]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Duty, null, null, 180) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions { @@ -149118,7 +177979,8 @@ public static class AssemblyQuestLoader }; obj247.Steps = list336; reference254 = obj247; - ref QuestSequence reference255 = ref span88[9]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -149126,7 +177988,9 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -149140,21 +178004,26 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "JerryWester"; questRoot41.Author = list338; - num = 7; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span90 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference256 = ref span90[0]; + index = 7; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -149167,7 +178036,8 @@ public static class AssemblyQuestLoader }; obj249.Steps = list340; reference256 = obj249; - ref QuestSequence reference257 = ref span90[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 1 @@ -149175,24 +178045,30 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { Fly = true }; obj250.Steps = list341; reference257 = obj250; - ref QuestSequence reference258 = ref span90[2]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); obj251.Steps = list342; reference258 = obj251; - ref QuestSequence reference259 = ref span90[3]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 3 @@ -149200,34 +178076,41 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1017747u, new Vector3(-96.910095f, 62.55459f, -160.05188f), 180) + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017747u, new Vector3(-96.910095f, 62.55459f, -160.05188f), 180) { Fly = true }; obj252.Steps = list343; reference259 = obj252; - ref QuestSequence reference260 = ref span90[4]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - Span span91 = CollectionsMarshal.AsSpan(list344); - span91[0] = new QuestStep(EInteractionType.UseItem, null, null, 180) + index2 = 3; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 180) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span91[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span91[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj253.Steps = list344; reference260 = obj253; - ref QuestSequence reference261 = ref span90[5]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 5 @@ -149235,21 +178118,26 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1018368u, new Vector3(-8.46875f, 0f, -3.2502441f), 212) + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018368u, new Vector3(-8.46875f, 0f, -3.2502441f), 212) { StopDistance = 5f }; obj254.Steps = list345; reference261 = obj254; - ref QuestSequence reference262 = ref span90[6]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -149262,13 +178150,16 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list347); + index = 0; + span[index] = "JerryWester"; questRoot42.Author = list347; - num = 6; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span92 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference263 = ref span92[0]; + index = 6; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + span2 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -149276,7 +178167,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146) + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -149290,47 +178183,63 @@ public static class AssemblyQuestLoader }; obj256.Steps = list349; reference263 = obj256; - ref QuestSequence reference264 = ref span92[1]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span93 = CollectionsMarshal.AsSpan(list350); - ref QuestStep reference265 = ref span93[0]; + index2 = 3; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + ref QuestStep reference265 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006223u, new Vector3(-85.06909f, 26.222988f, -348.50085f), 146); num3 = 6; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - Span span94 = CollectionsMarshal.AsSpan(list351); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list351); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list351; reference265 = questStep9; - ref QuestStep reference266 = ref span93[1]; + num2++; + ref QuestStep reference266 = ref span3[num2]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146) { Mount = true }; - num3 = 6; - List list352 = new List(num3); - CollectionsMarshal.SetCount(list352, num3); - Span span95 = CollectionsMarshal.AsSpan(list352); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list352 = new List(index3); + CollectionsMarshal.SetCount(list352, index3); + span5 = CollectionsMarshal.AsSpan(list352); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj258.CompletionQuestVariablesFlags = list352; reference266 = obj258; - ref QuestStep reference267 = ref span93[2]; + num2++; + ref QuestStep reference267 = ref span3[num2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1006213u, new Vector3(-102.49487f, 37.8654f, -355.97772f), 146) { Fly = true @@ -149338,18 +178247,25 @@ public static class AssemblyQuestLoader num3 = 6; List list353 = new List(num3); CollectionsMarshal.SetCount(list353, num3); - Span span96 = CollectionsMarshal.AsSpan(list353); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list353); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj259.CompletionQuestVariablesFlags = list353; reference267 = obj259; obj257.Steps = list350; reference264 = obj257; - ref QuestSequence reference268 = ref span92[2]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -149357,21 +178273,27 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146); + span3 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146); obj260.Steps = list354; reference268 = obj260; - ref QuestSequence reference269 = ref span92[3]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + span3 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj261.Steps = list355; reference269 = obj261; - ref QuestSequence reference270 = ref span92[4]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 4 @@ -149379,23 +178301,28 @@ public static class AssemblyQuestLoader num2 = 2; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span97 = CollectionsMarshal.AsSpan(list356); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.848705f, 26.173487f, -385.86462f), 146); - span97[1] = new QuestStep(EInteractionType.Interact, 1017756u, new Vector3(181.96375f, 13.495921f, -446.82996f), 146) + span3 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.848705f, 26.173487f, -385.86462f), 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017756u, new Vector3(181.96375f, 13.495921f, -446.82996f), 146) { Fly = true }; obj262.Steps = list356; reference270 = obj262; - ref QuestSequence reference271 = ref span92[5]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017757u, new Vector3(179.797f, 13.124423f, -443.1678f), 146); + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017757u, new Vector3(179.797f, 13.124423f, -443.1678f), 146); obj263.Steps = list357; reference271 = obj263; questRoot42.QuestSequence = list348; @@ -149405,13 +178332,16 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - CollectionsMarshal.AsSpan(list358)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list358); + index = 0; + span[index] = "JerryWester"; questRoot43.Author = list358; - num = 5; - List list359 = new List(num); - CollectionsMarshal.SetCount(list359, num); - Span span98 = CollectionsMarshal.AsSpan(list359); - ref QuestSequence reference272 = ref span98[0]; + index = 5; + List list359 = new List(index); + CollectionsMarshal.SetCount(list359, index); + span2 = CollectionsMarshal.AsSpan(list359); + num = 0; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 @@ -149419,24 +178349,33 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017759u, new Vector3(179.61389f, 13.09844f, -441.48932f), 146) + span3 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017759u, new Vector3(179.61389f, 13.09844f, -441.48932f), 146) { StopDistance = 5f }; obj264.Steps = list360; reference272 = obj264; - ref QuestSequence reference273 = ref span98[1]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146); + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146) + { + Fly = true + }; obj265.Steps = list361; reference273 = obj265; - ref QuestSequence reference274 = ref span98[2]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 2 @@ -149444,33 +178383,40 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1017760u, new Vector3(-79.57587f, 27.602297f, -326.19214f), 146); + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017760u, new Vector3(-79.57587f, 27.602297f, -326.19214f), 146); obj266.Steps = list362; reference274 = obj266; - ref QuestSequence reference275 = ref span98[3]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - Span span99 = CollectionsMarshal.AsSpan(list363); - span99[0] = new QuestStep(EInteractionType.EquipItem, null, null, 146) + index2 = 3; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 146) { ItemId = 2995u }; - span99[1] = new QuestStep(EInteractionType.EquipItem, null, null, 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 146) { ItemId = 3306u }; - span99[2] = new QuestStep(EInteractionType.Interact, 1017761u, new Vector3(-106.9505f, 21.884232f, -478.90442f), 146) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017761u, new Vector3(-106.9505f, 21.884232f, -478.90442f), 146) { Fly = true }; obj267.Steps = list363; reference275 = obj267; - ref QuestSequence reference276 = ref span98[4]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue @@ -149478,9 +178424,11 @@ public static class AssemblyQuestLoader num2 = 2; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span100 = CollectionsMarshal.AsSpan(list364); - span100[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); obj268.Steps = list364; reference276 = obj268; questRoot43.QuestSequence = list359; @@ -149490,24 +178438,30 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list365); + index = 0; + span[index] = "JerryWester"; questRoot44.Author = list365; - num = 4; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span101 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference277 = ref span101[0]; + index = 4; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + span2 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); obj269.Steps = list367; reference277 = obj269; - ref QuestSequence reference278 = ref span101[1]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = 1 @@ -149515,21 +178469,26 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj270.Steps = list368; reference278 = obj270; - ref QuestSequence reference279 = ref span101[2]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1017764u, new Vector3(4.2266846f, 0.91341394f, -9.720032f), 146) + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + span3 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1017764u, new Vector3(4.2266846f, 0.91341394f, -9.720032f), 146) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -149538,7 +178497,8 @@ public static class AssemblyQuestLoader }; obj271.Steps = list369; reference279 = obj271; - ref QuestSequence reference280 = ref span101[3]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = byte.MaxValue @@ -149546,7 +178506,9 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) { StopDistance = 5f }; @@ -149563,13 +178525,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -149577,24 +178542,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1017768u, new Vector3(-0.80877686f, 0.72928506f, -4.867676f), 146); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017768u, new Vector3(-0.80877686f, 0.72928506f, -4.867676f), 146); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -149602,30 +178573,36 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1017771u, new Vector3(-68.95557f, 26.907436f, -393.66754f), 146) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017771u, new Vector3(-68.95557f, 26.907436f, -393.66754f), 146) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span2[1] = new QuestStep(EInteractionType.Interact, 1017775u, new Vector3(-2.3651733f, -2.0000217f, -24.887512f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017775u, new Vector3(-2.3651733f, -2.0000217f, -24.887512f), 351); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -149633,7 +178610,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017776u, new Vector3(-3.5858765f, 0.018040119f, -6.9123535f), 351); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017776u, new Vector3(-3.5858765f, 0.018040119f, -6.9123535f), 351); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -149643,24 +178622,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span3[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017788u, new Vector3(27.847656f, -1f, -0.5036011f), 351); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017788u, new Vector3(27.847656f, -1f, -0.5036011f), 351); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -149668,31 +178653,38 @@ public static class AssemblyQuestLoader num2 = 4; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Mount = true }; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.110107f, 29.57478f, -770.24866f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.110107f, 29.57478f, -770.24866f), 156) { Fly = true }; - span4[3] = new QuestStep(EInteractionType.Interact, 2007563u, new Vector3(35.38562f, 28.976807f, -791.56177f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007563u, new Vector3(35.38562f, 28.976807f, -791.56177f), 156); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -149710,13 +178702,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span5[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -149724,30 +178719,36 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { StopDistance = 5f }; obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.85718f, 304.1538f, -293.03745f), 155) + index2 = 2; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.85718f, 304.1538f, -293.03745f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span6[1] = new QuestStep(EInteractionType.Interact, 2007472u, new Vector3(-140.97815f, 304.09705f, -311.14673f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007472u, new Vector3(-140.97815f, 304.09705f, -311.14673f), 155); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -149755,22 +178756,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1018013u, new Vector3(233.84448f, 302f, -188.95251f), 155) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018013u, new Vector3(233.84448f, 302f, -188.95251f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -149783,13 +178789,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span7[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -149797,7 +178806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -149810,15 +178821,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AethernetShortcut = new AethernetShortcut { @@ -149828,7 +178842,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span7[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -149836,18 +178851,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span7[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -149860,13 +178880,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list25; - num = 9; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span8 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span8[0]; + index = 8; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -149874,7 +178897,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -149887,21 +178912,25 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 @@ -149909,27 +178938,33 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1018022u, new Vector3(-1.3580933f, 0f, -4.501404f), 351) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018022u, new Vector3(-1.3580933f, 0f, -4.501404f), 351) { StopDistance = 7f }; obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference20 = ref span8[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1018023u, new Vector3(-199.35913f, 1.23591f, 283.03955f), 152) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018023u, new Vector3(-199.35913f, 1.23591f, 283.03955f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference21 = ref span8[4]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 4 @@ -149937,27 +178972,33 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1018024u, new Vector3(19.08899f, 6.192316f, 397.93994f), 152) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018024u, new Vector3(19.08899f, 6.192316f, 397.93994f), 152) { Fly = true }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span8[5]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1018025u, new Vector3(44.510498f, 7.6110673f, 488.2428f), 152) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018025u, new Vector3(44.510498f, 7.6110673f, 488.2428f), 152) { Fly = true }; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span8[6]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 6 @@ -149965,7 +179006,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -149975,19 +179018,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference23 = obj23; - span8[7] = new QuestSequence - { - Sequence = 7 - }; - ref QuestSequence reference24 = ref span8[8]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018026u, new Vector3(39.597046f, 6.8267684f, 489.86023f), 152); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018026u, new Vector3(39.597046f, 6.8267684f, 489.86023f), 152); obj24.Steps = list34; reference24 = obj24; questRoot5.QuestSequence = list26; @@ -149997,13 +179039,16 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list35; - num = 2; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span9 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference25 = ref span9[0]; + index = 2; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -150011,27 +179056,32 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018029u, new Vector3(36.057007f, 7.1708746f, 485.43518f), 152) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018029u, new Vector3(36.057007f, 7.1708746f, 485.43518f), 152) { StopDistance = 5f }; obj25.Steps = list37; reference25 = obj25; - ref QuestSequence reference26 = ref span9[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span10 = CollectionsMarshal.AsSpan(list38); - span10[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1018033u, new Vector3(-3.7080078f, 0.01804012f, -6.881897f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018033u, new Vector3(-3.7080078f, 0.01804012f, -6.881897f), 351); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list36; @@ -150041,13 +179091,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span11 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference27 = ref span11[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -150055,21 +179108,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017749u, new Vector3(-3.7995605f, 0.01804012f, -7.7669067f), 351) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017749u, new Vector3(-3.7995605f, 0.01804012f, -7.7669067f), 351) { StopDistance = 5f }; obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span11[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -150080,7 +179138,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span11[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -150088,7 +179147,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj29.Steps = list43; reference29 = obj29; questRoot7.QuestSequence = list40; @@ -150098,24 +179159,30 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference30 = ref span12[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj30.Steps = list46; reference30 = obj30; - ref QuestSequence reference31 = ref span12[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -150123,7 +179190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132) { AethernetShortcut = new AethernetShortcut { @@ -150133,15 +179202,18 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span12[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) { StopDistance = 7f @@ -150149,7 +179221,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list49); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNG102_02357_Q1_100_035") @@ -150158,7 +179232,8 @@ public static class AssemblyQuestLoader reference33 = obj33; obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference34 = ref span12[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -150166,30 +179241,36 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1013180u, new Vector3(125.90222f, -15.185763f, -431.7846f), 156) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013180u, new Vector3(125.90222f, -15.185763f, -431.7846f), 156) { StopDistance = 7f }; obj34.Steps = list50; reference34 = obj34; - ref QuestSequence reference35 = ref span12[4]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span13 = CollectionsMarshal.AsSpan(list51); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + index2 = 3; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Fly = true }; - span13[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1018041u, new Vector3(13.199036f, 0f, -8.590881f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018041u, new Vector3(13.199036f, 0f, -8.590881f), 351); obj35.Steps = list51; reference35 = obj35; questRoot8.QuestSequence = list45; @@ -150199,13 +179280,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list52; - num = 5; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span14 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference36 = ref span14[0]; + index = 5; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -150213,45 +179297,54 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018043u, new Vector3(-1.1444702f, 0f, -3.2807007f), 351) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018043u, new Vector3(-1.1444702f, 0f, -3.2807007f), 351) { StopDistance = 5f }; obj36.Steps = list54; reference36 = obj36; - ref QuestSequence reference37 = ref span14[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span15 = CollectionsMarshal.AsSpan(list55); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Mount = true }; - ref QuestStep reference38 = ref span15[1]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.SinglePlayerDuty, 1018044u, new Vector3(127.73328f, -15.353702f, -421.1338f), 156) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = "(phase 2) AI doesn't use any of the Red Baron's attacks, just moves with it and eventually dies (after a few minutes)"; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span[num3] = "(phase 2) AI doesn't use any of the Red Baron's attacks, just moves with it and eventually dies (after a few minutes)"; singlePlayerDutyOptions.Notes = list56; obj38.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference38 = obj38; obj37.Steps = list55; reference37 = obj37; - span14[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference39 = ref span14[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 3 @@ -150259,12 +179352,16 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list57)[0]; + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference40 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1018045u, new Vector3(2.1514893f, 0.93368113f, 12.741211f), 636); num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNG103_02358_Q2_000_000") @@ -150273,15 +179370,18 @@ public static class AssemblyQuestLoader reference40 = questStep; obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference41 = ref span14[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132); obj40.Steps = list59; reference41 = obj40; questRoot9.QuestSequence = list53; @@ -150291,13 +179391,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list60; - num = 5; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span16 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span16[0]; + index = 5; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -150305,22 +179408,26 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018048u, new Vector3(41.82495f, -19.000027f, 93.30884f), 132) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018048u, new Vector3(41.82495f, -19.000027f, 93.30884f), 132) { StopDistance = 5f }; obj41.Steps = list62; reference42 = obj41; - ref QuestSequence reference43 = ref span16[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span17 = CollectionsMarshal.AsSpan(list63); - span17[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205, AethernetShortcut = new AethernetShortcut @@ -150329,10 +179436,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - span17[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj42.Steps = list63; reference43 = obj42; - ref QuestSequence reference44 = ref span16[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -150340,28 +179449,34 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1018430u, new Vector3(2.8533936f, -1.9294398f, 4.6845093f), 205) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018430u, new Vector3(2.8533936f, -1.9294398f, 4.6845093f), 205) { StopDistance = 5f }; obj43.Steps = list64; reference44 = obj43; - ref QuestSequence reference45 = ref span16[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1018329u, new Vector3(16.861145f, 5.895894f, 393.75903f), 152) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018329u, new Vector3(16.861145f, 5.895894f, 393.75903f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj44.Steps = list65; reference45 = obj44; - ref QuestSequence reference46 = ref span16[4]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -150369,7 +179484,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018331u, new Vector3(-2.6398926f, 0f, -7.400635f), 351); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018331u, new Vector3(-2.6398926f, 0f, -7.400635f), 351); obj45.Steps = list66; reference46 = obj45; questRoot10.QuestSequence = list61; @@ -150379,21 +179496,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "pot0to"; questRoot11.Author = list67; - num = 5; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span18 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span18[0]; + index = 5; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list69)[0]; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -150405,19 +179527,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span19 = CollectionsMarshal.AsSpan(list70); - span19[0] = 418; - span19[1] = 419; + index3 = 2; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span5 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span5[num3] = 418; + num3++; + span5[num3] = 419; skipAetheryteCondition.InTerritory = list70; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj47.SkipConditions = skipConditions; reference48 = obj47; obj46.Steps = list69; reference47 = obj46; - ref QuestSequence reference49 = ref span18[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -150425,27 +179550,33 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; obj48.Steps = list71; reference49 = obj48; - ref QuestSequence reference50 = ref span18[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Emote, 1017902u, new Vector3(-7.461731f, 0.024999565f, -6.9733887f), 427) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1017902u, new Vector3(-7.461731f, 0.024999565f, -6.9733887f), 427) { Emote = EEmote.Soothe }; obj49.Steps = list72; reference50 = obj49; - ref QuestSequence reference51 = ref span18[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -150453,21 +179584,26 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Emote, 1017904u, new Vector3(-6.4240723f, 0.024999565f, -5.56958f), 427) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1017904u, new Vector3(-6.4240723f, 0.024999565f, -5.56958f), 427) { Emote = EEmote.Rally }; obj50.Steps = list73; reference51 = obj50; - ref QuestSequence reference52 = ref span18[4]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427) { NextQuestId = new QuestId(2362) }; @@ -150480,13 +179616,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "pot0to"; questRoot12.Author = list75; - num = 4; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span20 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference53 = ref span20[0]; + index = 4; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -150494,8 +179633,9 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span21 = CollectionsMarshal.AsSpan(list77); - ref QuestStep reference54 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -150511,40 +179651,49 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 427; + span5 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span5[index3] = 427; skipStepConditions.InTerritory = list78; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span22 = CollectionsMarshal.AsSpan(list79); - span22[0] = 419; - span22[1] = 427; + index3 = 2; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span5 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span5[num3] = 419; + num3++; + span5[num3] = 427; skipAetheryteCondition2.InTerritory = list79; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj53.SkipConditions = skipConditions2; reference54 = obj53; - span21[1] = new QuestStep(EInteractionType.AcceptQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427); obj52.Steps = list77; reference53 = obj52; - ref QuestSequence reference55 = ref span20[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span23 = CollectionsMarshal.AsSpan(list80); - span23[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span23[1] = new QuestStep(EInteractionType.Interact, 1017909u, new Vector3(-120.22589f, 14.55313f, -162.61542f), 419); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017909u, new Vector3(-120.22589f, 14.55313f, -162.61542f), 419); obj54.Steps = list80; reference55 = obj54; - ref QuestSequence reference56 = ref span20[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -150552,18 +179701,23 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419); + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419); obj55.Steps = list81; reference56 = obj55; - ref QuestSequence reference57 = ref span20[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419) { Emote = EEmote.Soothe, NextQuestId = new QuestId(2363) @@ -150577,13 +179731,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "pot0to"; questRoot13.Author = list83; - num = 4; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span24 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference58 = ref span24[0]; + index = 4; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -150591,7 +179748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list85)[0]; + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference59 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.AcceptQuest, 1017914u, new Vector3(-38.529114f, 15.965062f, -70.45099f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -150606,14 +179765,18 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 419; + span5 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span5[index3] = 419; skipAetheryteCondition3.InTerritory = list86; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj58.SkipConditions = skipConditions3; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span4 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND303_02363_Q1_000_000"), @@ -150623,27 +179786,35 @@ public static class AssemblyQuestLoader reference59 = obj58; obj57.Steps = list85; reference58 = obj57; - ref QuestSequence reference60 = ref span24[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span25 = CollectionsMarshal.AsSpan(list88); - span25[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 6; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span25[1] = new QuestStep(EInteractionType.Interact, 2007426u, new Vector3(11.856201f, 0.19836426f, 10.421875f), 427); - span25[2] = new QuestStep(EInteractionType.Interact, 1017919u, new Vector3(-9.323303f, 0.20000005f, -10.238831f), 427); - span25[3] = new QuestStep(EInteractionType.Interact, 1017920u, new Vector3(4.714966f, 0.22499956f, -5.9663696f), 427); - span25[4] = new QuestStep(EInteractionType.Interact, 1017918u, new Vector3(10.391357f, 0.20000005f, -0.56463623f), 427); - span25[5] = new QuestStep(EInteractionType.Interact, 2007425u, new Vector3(-8.346741f, 0.015197754f, 0.8086548f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007426u, new Vector3(11.856201f, 0.19836426f, 10.421875f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017919u, new Vector3(-9.323303f, 0.20000005f, -10.238831f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017920u, new Vector3(4.714966f, 0.22499956f, -5.9663696f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017918u, new Vector3(10.391357f, 0.20000005f, -0.56463623f), 427); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007425u, new Vector3(-8.346741f, 0.015197754f, 0.8086548f), 427); obj59.Steps = list88; reference60 = obj59; - ref QuestSequence reference61 = ref span24[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -150651,23 +179822,28 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1017916u, new Vector3(-2.609314f, 0.024999565f, 6.1798096f), 427); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017916u, new Vector3(-2.609314f, 0.024999565f, 6.1798096f), 427); obj60.Steps = list89; reference61 = obj60; - ref QuestSequence reference62 = ref span24[3]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span26 = CollectionsMarshal.AsSpan(list90); - span26[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1017923u, new Vector3(-45.090515f, 15.8744135f, -91.32526f), 419) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017923u, new Vector3(-45.090515f, 15.8744135f, -91.32526f), 419) { NextQuestId = new QuestId(2364) }; @@ -150680,13 +179856,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "pot0to"; questRoot14.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span27 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference63 = ref span27[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -150694,7 +179873,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list93)[0]; + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.AcceptQuest, 1017926u, new Vector3(-33.157898f, 15.965062f, -67.826416f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -150709,21 +179890,25 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 419; + span5 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span5[index3] = 419; skipAetheryteCondition4.InTerritory = list94; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj63.SkipConditions = skipConditions4; - num3 = 2; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span28 = CollectionsMarshal.AsSpan(list95); - span28[0] = new DialogueChoice + index3 = 2; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + span4 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND304_02364_Q1_100_000"), Answer = new ExcelRef("TEXT_CHREND304_02364_A1_100_001") }; - span28[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND304_02364_Q1_000_000"), @@ -150733,15 +179918,18 @@ public static class AssemblyQuestLoader reference64 = obj63; obj62.Steps = list93; reference63 = obj62; - ref QuestSequence reference65 = ref span27[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1017927u, new Vector3(171.92334f, -1.4414048f, -92.729065f), 419) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017927u, new Vector3(171.92334f, -1.4414048f, -92.729065f), 419) { AethernetShortcut = new AethernetShortcut { @@ -150751,7 +179939,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list96; reference65 = obj64; - ref QuestSequence reference66 = ref span27[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -150759,7 +179948,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419) { AethernetShortcut = new AethernetShortcut { @@ -150769,15 +179960,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list97; reference66 = obj65; - ref QuestSequence reference67 = ref span27[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017929u, new Vector3(-172.22864f, 15.063141f, -170.55011f), 419); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017929u, new Vector3(-172.22864f, 15.063141f, -170.55011f), 419); obj66.Steps = list98; reference67 = obj66; questRoot14.QuestSequence = list92; @@ -150787,13 +179981,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot15.Author = list99; - num = 7; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span29 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference68 = ref span29[0]; + index = 7; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -150801,18 +179998,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj67.Steps = list101; reference68 = obj67; - ref QuestSequence reference69 = ref span29[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1017959u, new Vector3(39.505493f, 16.49931f, -29.922974f), 419) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017959u, new Vector3(39.505493f, 16.49931f, -29.922974f), 419) { AethernetShortcut = new AethernetShortcut { @@ -150822,7 +180024,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list102; reference69 = obj68; - ref QuestSequence reference70 = ref span29[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -150830,63 +180033,88 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span30 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference71 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference71 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1017962u, new Vector3(4.837097f, 11.964993f, 31.296265f), 419); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span31 = CollectionsMarshal.AsSpan(list104); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list104; reference71 = questStep2; - ref QuestStep reference72 = ref span30[1]; + index2++; + ref QuestStep reference72 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1017963u, new Vector3(21.683044f, 11.965154f, 47.68445f), 419); - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span32 = CollectionsMarshal.AsSpan(list105); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + span6 = CollectionsMarshal.AsSpan(list105); + 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); questStep3.CompletionQuestVariablesFlags = list105; reference72 = questStep3; - ref QuestStep reference73 = ref span30[2]; + index2++; + ref QuestStep reference73 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1017964u, new Vector3(-40.634766f, 11.965008f, 32.028687f), 419); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span33 = CollectionsMarshal.AsSpan(list106); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list106; reference73 = questStep4; obj69.Steps = list103; reference70 = obj69; - ref QuestSequence reference74 = ref span29[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1017968u, new Vector3(-43.778137f, 11.965093f, 47.348755f), 419); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017968u, new Vector3(-43.778137f, 11.965093f, 47.348755f), 419); obj70.Steps = list107; reference74 = obj70; - ref QuestSequence reference75 = ref span29[4]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -150894,36 +180122,47 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1017970u, new Vector3(132.43298f, 205.99544f, 80.9491f), 478) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017970u, new Vector3(132.43298f, 205.99544f, 80.9491f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj71.Steps = list108; reference75 = obj71; - ref QuestSequence reference76 = ref span29[5]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span34 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference77 = ref span34[0]; + index2 = 4; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1012099u, new Vector3(50.278442f, 206.04715f, 57.75537f), 478); - num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span35 = CollectionsMarshal.AsSpan(list110); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span6 = CollectionsMarshal.AsSpan(list110); + 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); questStep5.CompletionQuestVariablesFlags = list110; reference77 = questStep5; - ref QuestStep reference78 = ref span34[1]; + num2++; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { StopDistance = 5f @@ -150931,34 +180170,48 @@ public static class AssemblyQuestLoader num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span36 = CollectionsMarshal.AsSpan(list111); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list111; reference78 = obj73; - ref QuestStep reference79 = ref span34[2]; + num2++; + ref QuestStep reference79 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.76668f, 205.81511f, 24.614613f), 478); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span37 = CollectionsMarshal.AsSpan(list112); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span6 = CollectionsMarshal.AsSpan(list112); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list112; skipConditions5.StepIf = skipStepConditions2; questStep6.SkipConditions = skipConditions5; reference79 = questStep6; - ref QuestStep reference80 = ref span34[3]; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1017977u, new Vector3(-0.7172241f, 206.49947f, 20.09607f), 478) { StopDistance = 7f @@ -150966,18 +180219,25 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span38 = CollectionsMarshal.AsSpan(list113); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list113; reference80 = obj74; obj72.Steps = list109; reference76 = obj72; - ref QuestSequence reference81 = ref span29[6]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -150985,7 +180245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017981u, new Vector3(10.208252f, 206.77286f, 62.394165f), 478) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017981u, new Vector3(10.208252f, 206.77286f, 62.394165f), 478) { NextQuestId = new QuestId(2370) }; @@ -150998,27 +180260,33 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; questRoot16.Author = list115; - num = 13; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span39 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference82 = ref span39[0]; + index = 13; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017983u, new Vector3(11.520508f, 207.49994f, 85.34363f), 478) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017983u, new Vector3(11.520508f, 207.49994f, 85.34363f), 478) { StopDistance = 7f }; obj76.Steps = list117; reference82 = obj76; - ref QuestSequence reference83 = ref span39[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -151026,7 +180294,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1017988u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017988u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -151037,18 +180307,22 @@ public static class AssemblyQuestLoader }; obj77.Steps = list118; reference83 = obj77; - ref QuestSequence reference84 = ref span39[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1017993u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017993u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399); obj78.Steps = list119; reference84 = obj78; - ref QuestSequence reference85 = ref span39[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -151056,27 +180330,33 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) { Fly = true }; obj79.Steps = list120; reference85 = obj79; - ref QuestSequence reference86 = ref span39[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399) { Fly = true }; obj80.Steps = list121; reference86 = obj80; - ref QuestSequence reference87 = ref span39[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -151084,21 +180364,27 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399); obj81.Steps = list122; reference87 = obj81; - ref QuestSequence reference88 = ref span39[6]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj82.Steps = list123; reference88 = obj82; - ref QuestSequence reference89 = ref span39[7]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 7 @@ -151106,21 +180392,27 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj83.Steps = list124; reference89 = obj83; - ref QuestSequence reference90 = ref span39[8]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj84.Steps = list125; reference90 = obj84; - ref QuestSequence reference91 = ref span39[9]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 9 @@ -151128,24 +180420,30 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj85.Steps = list126; reference91 = obj85; - ref QuestSequence reference92 = ref span39[10]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) { Fly = true }; obj86.Steps = list127; reference92 = obj86; - ref QuestSequence reference93 = ref span39[11]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 11 @@ -151153,21 +180451,26 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1018007u, new Vector3(-602.5941f, 147.58852f, -39.230957f), 399) + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018007u, new Vector3(-602.5941f, 147.58852f, -39.230957f), 399) { StopDistance = 7f }; obj87.Steps = list128; reference93 = obj87; - ref QuestSequence reference94 = ref span39[12]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2371) @@ -151181,13 +180484,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot17.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span40 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference95 = ref span40[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -151195,24 +180501,30 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj89.Steps = list132; reference95 = obj89; - ref QuestSequence reference96 = ref span40[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1018448u, new Vector3(11.48999f, 206.58485f, 76.157715f), 478) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018448u, new Vector3(11.48999f, 206.58485f, 76.157715f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj90.Steps = list133; reference96 = obj90; - ref QuestSequence reference97 = ref span40[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -151220,40 +180532,51 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1018451u, new Vector3(606.775f, -49.501324f, 40.482178f), 398) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018451u, new Vector3(606.775f, -49.501324f, 40.482178f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj91.Steps = list134; reference97 = obj91; - ref QuestSequence reference98 = ref span40[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span41 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference99 = ref span41[0]; + index2 = 4; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1011920u, new Vector3(519.8595f, -51.071976f, 88.24292f), 398) { Fly = true }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span42 = CollectionsMarshal.AsSpan(list136); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span6 = CollectionsMarshal.AsSpan(list136); + 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); obj93.CompletionQuestVariablesFlags = list136; reference99 = obj93; - ref QuestStep reference100 = ref span41[1]; + num2++; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1011921u, new Vector3(453.36072f, -51.141403f, 58.579346f), 398) { Fly = true @@ -151261,37 +180584,51 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span43 = CollectionsMarshal.AsSpan(list137); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list137; reference100 = obj94; - ref QuestStep reference101 = ref span41[2]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.00256f, -51.02798f, 16.711847f), 398) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span44 = CollectionsMarshal.AsSpan(list138); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span6 = CollectionsMarshal.AsSpan(list138); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list138; skipConditions6.StepIf = skipStepConditions3; obj95.SkipConditions = skipConditions6; reference101 = obj95; - ref QuestStep reference102 = ref span41[3]; + num2++; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1011919u, new Vector3(497.82556f, -49.790283f, 11.825684f), 398) { StopDistance = 7f @@ -151299,18 +180636,25 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span45 = CollectionsMarshal.AsSpan(list139); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list139; reference102 = obj96; obj92.Steps = list135; reference98 = obj92; - ref QuestSequence reference103 = ref span40[4]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 4 @@ -151318,28 +180662,34 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1018454u, new Vector3(549.18726f, -51.275715f, 6.1798096f), 398) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018454u, new Vector3(549.18726f, -51.275715f, 6.1798096f), 398) { Fly = true }; obj97.Steps = list140; reference103 = obj97; - ref QuestSequence reference104 = ref span40[5]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj98.Steps = list141; reference104 = obj98; - ref QuestSequence reference105 = ref span40[6]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -151347,7 +180697,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) { NextQuestId = new QuestId(2372) }; @@ -151360,24 +180712,30 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot18.Author = list143; - num = 10; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span46 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference106 = ref span46[0]; + index = 10; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018463u, new Vector3(-108.62903f, -35.63229f, -19.455322f), 398); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018463u, new Vector3(-108.62903f, -35.63229f, -19.455322f), 398); obj100.Steps = list145; reference106 = obj100; - ref QuestSequence reference107 = ref span46[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -151385,27 +180743,33 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj101.Steps = list146; reference107 = obj101; - ref QuestSequence reference108 = ref span46[2]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { ItemId = 2002034u }; obj102.Steps = list147; reference108 = obj102; - ref QuestSequence reference109 = ref span46[3]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -151413,24 +180777,30 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj103.Steps = list148; reference109 = obj103; - ref QuestSequence reference110 = ref span46[4]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { ItemId = 2002047u }; obj104.Steps = list149; reference110 = obj104; - ref QuestSequence reference111 = ref span46[5]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 5 @@ -151438,21 +180808,27 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj105.Steps = list150; reference111 = obj105; - ref QuestSequence reference112 = ref span46[6]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj106.Steps = list151; reference112 = obj106; - ref QuestSequence reference113 = ref span46[7]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 7 @@ -151460,24 +180836,30 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj107.Steps = list152; reference113 = obj107; - ref QuestSequence reference114 = ref span46[8]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1018459u, new Vector3(-673.8232f, 73f, 288.4718f), 400) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018459u, new Vector3(-673.8232f, 73f, 288.4718f), 400) { StopDistance = 5f }; obj108.Steps = list153; reference114 = obj108; - ref QuestSequence reference115 = ref span46[9]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -151485,7 +180867,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018456u, new Vector3(13.595764f, 206.59943f, 77.28699f), 478) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018456u, new Vector3(13.595764f, 206.59943f, 77.28699f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(3008) @@ -151499,27 +180883,33 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot19.Author = list155; - num = 5; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span47 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference116 = ref span47[0]; + index = 5; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) { StopDistance = 7f }; obj110.Steps = list157; reference116 = obj110; - ref QuestSequence reference117 = ref span47[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -151527,37 +180917,45 @@ public static class AssemblyQuestLoader num2 = 4; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span48 = CollectionsMarshal.AsSpan(list158); - span48[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567 }; - span48[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - span48[2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - span48[3] = new QuestStep(EInteractionType.Interact, 1018062u, new Vector3(0.015197754f, 0.8518491f, 3.9215698f), 568) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018062u, new Vector3(0.015197754f, 0.8518491f, 3.9215698f), 568) { StopDistance = 5f }; obj111.Steps = list158; reference117 = obj111; - ref QuestSequence reference118 = ref span47[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1018068u, new Vector3(6.9733276f, -0.4050198f, 8.529724f), 567); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018068u, new Vector3(6.9733276f, -0.4050198f, 8.529724f), 567); obj112.Steps = list159; reference118 = obj112; - ref QuestSequence reference119 = ref span47[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 3 @@ -151565,7 +180963,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Duty, null, null, 567) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 567) { DutyOptions = new DutyOptions { @@ -151574,15 +180974,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list160; reference119 = obj113; - ref QuestSequence reference120 = ref span47[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) { StopDistance = 7f, NextQuestId = new QuestId(2374) @@ -151596,13 +180999,16 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "liza"; questRoot20.Author = list162; - num = 3; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span49 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference121 = ref span49[0]; + index = 3; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -151610,33 +181016,40 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) { StopDistance = 7f }; obj115.Steps = list164; reference121 = obj115; - ref QuestSequence reference122 = ref span49[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span50 = CollectionsMarshal.AsSpan(list165); - span50[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) + index2 = 3; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) { TargetTerritoryId = (ushort)567 }; - span50[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) { TargetTerritoryId = (ushort)568 }; - span50[2] = new QuestStep(EInteractionType.Interact, 1018072u, new Vector3(-1.2664795f, 7.357448E-08f, -1.9684448f), 568); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018072u, new Vector3(-1.2664795f, 7.357448E-08f, -1.9684448f), 568); obj116.Steps = list165; reference122 = obj116; - ref QuestSequence reference123 = ref span49[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -151644,7 +181057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018083u, new Vector3(45.212402f, -15.420993f, 25.77246f), 567) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018083u, new Vector3(45.212402f, -15.420993f, 25.77246f), 567) { StopDistance = 5f }; @@ -151657,21 +181072,26 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "plogon_enjoyer"; questRoot21.Author = list167; - num = 11; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span51 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference124 = ref span51[0]; + index = 11; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -151684,7 +181104,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list169; reference124 = obj118; - ref QuestSequence reference125 = ref span51[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -151692,29 +181113,35 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj119.Steps = list170; reference125 = obj119; - ref QuestSequence reference126 = ref span51[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1018232u, new Vector3(236.01123f, -42.313934f, 596.3989f), 400) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018232u, new Vector3(236.01123f, -42.313934f, 596.3989f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj120.Steps = list171; reference126 = obj120; - ref QuestSequence reference127 = ref span51[3]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -151722,25 +181149,31 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj121.Steps = list172; reference127 = obj121; - ref QuestSequence reference128 = ref span51[4]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj122.Steps = list173; reference128 = obj122; - ref QuestSequence reference129 = ref span51[5]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -151748,27 +181181,33 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Fly = true }; obj123.Steps = list174; reference129 = obj123; - ref QuestSequence reference130 = ref span51[6]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Emote, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Emote = EEmote.Rally }; obj124.Steps = list175; reference130 = obj124; - ref QuestSequence reference131 = ref span51[7]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 7 @@ -151776,27 +181215,33 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; obj125.Steps = list176; reference131 = obj125; - ref QuestSequence reference132 = ref span51[8]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2007517u, new Vector3(-332.6314f, 59.067627f, 298.39014f), 400) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007517u, new Vector3(-332.6314f, 59.067627f, 298.39014f), 400) { Fly = true }; obj126.Steps = list177; reference132 = obj126; - ref QuestSequence reference133 = ref span51[9]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 9 @@ -151804,21 +181249,26 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1018234u, new Vector3(-635.85876f, 82.249985f, 142.96167f), 400) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018234u, new Vector3(-635.85876f, 82.249985f, 142.96167f), 400) { Fly = true }; obj127.Steps = list178; reference133 = obj127; - ref QuestSequence reference134 = ref span51[10]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, NextQuestId = new QuestId(2383) @@ -151832,13 +181282,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "plogon_enjoyer"; questRoot22.Author = list180; - num = 7; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span52 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference135 = ref span52[0]; + index = 7; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -151846,7 +181299,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -151860,26 +181315,30 @@ public static class AssemblyQuestLoader }; obj129.Steps = list182; reference135 = obj129; - ref QuestSequence reference136 = ref span52[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span53 = CollectionsMarshal.AsSpan(list183); - span53[0] = new QuestStep(EInteractionType.Interact, 1018242u, new Vector3(-365.1942f, 60.616608f, 279.89612f), 400) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018242u, new Vector3(-365.1942f, 60.616608f, 279.89612f), 400) { Fly = true }; - span53[1] = new QuestStep(EInteractionType.Interact, 1018241u, new Vector3(-421.40845f, 60.89619f, 272.755f), 400) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018241u, new Vector3(-421.40845f, 60.89619f, 272.755f), 400) { Fly = true }; obj130.Steps = list183; reference136 = obj130; - ref QuestSequence reference137 = ref span52[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -151887,28 +181346,34 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1018239u, new Vector3(-339.25385f, 59.038f, 317.03674f), 400) + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018239u, new Vector3(-339.25385f, 59.038f, 317.03674f), 400) { Fly = true }; obj131.Steps = list184; reference137 = obj131; - ref QuestSequence reference138 = ref span52[3]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj132.Steps = list185; reference138 = obj132; - ref QuestSequence reference139 = ref span52[4]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -151916,31 +181381,37 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1018243u, new Vector3(35.99597f, -130.7033f, 543.3279f), 398) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018243u, new Vector3(35.99597f, -130.7033f, 543.3279f), 398) { Fly = true }; obj133.Steps = list186; reference139 = obj133; - ref QuestSequence reference140 = ref span52[5]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span54 = CollectionsMarshal.AsSpan(list187); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.06836f, -51.141403f, 35.919243f), 398) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.06836f, -51.141403f, 35.919243f), 398) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span54[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj134.Steps = list187; reference140 = obj134; - ref QuestSequence reference141 = ref span52[6]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -151948,7 +181419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -151963,21 +181436,26 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list189); + index = 0; + span[index] = "plogon_enjoyer"; questRoot23.Author = list189; - num = 6; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span55 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference142 = ref span55[0]; + index = 6; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + span2 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018248u, new Vector3(-287.34265f, 126.77467f, 3.3721924f), 397) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018248u, new Vector3(-287.34265f, 126.77467f, 3.3721924f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -151991,7 +181469,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list191; reference142 = obj136; - ref QuestSequence reference143 = ref span55[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -151999,29 +181478,35 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1018249u, new Vector3(-814.9691f, -130.31683f, -415.85413f), 401) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018249u, new Vector3(-814.9691f, -130.31683f, -415.85413f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj137.Steps = list192; reference143 = obj137; - ref QuestSequence reference144 = ref span55[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj138.Steps = list193; reference144 = obj138; - ref QuestSequence reference145 = ref span55[3]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -152029,24 +181514,30 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Emote, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) { Emote = EEmote.MogDance }; obj139.Steps = list194; reference145 = obj139; - ref QuestSequence reference146 = ref span55[4]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1018254u, new Vector3(383.93213f, -125.28945f, 734.4929f), 401); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018254u, new Vector3(383.93213f, -125.28945f, 734.4929f), 401); obj140.Steps = list195; reference146 = obj140; - ref QuestSequence reference147 = ref span55[5]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -152054,7 +181545,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -152069,21 +181562,26 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list197); + index = 0; + span[index] = "plogon_enjoyer"; questRoot24.Author = list197; - num = 6; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span56 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference148 = ref span56[0]; + index = 6; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + span2 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -152097,7 +181595,8 @@ public static class AssemblyQuestLoader }; obj142.Steps = list199; reference148 = obj142; - ref QuestSequence reference149 = ref span56[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -152105,28 +181604,34 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1018257u, new Vector3(-664.36255f, -176.4502f, -570.3975f), 402) + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018257u, new Vector3(-664.36255f, -176.4502f, -570.3975f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj143.Steps = list200; reference149 = obj143; - ref QuestSequence reference150 = ref span56[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1018260u, new Vector3(-189.5628f, -102.63812f, 449.60706f), 402) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018260u, new Vector3(-189.5628f, -102.63812f, 449.60706f), 402) { Fly = true }; obj144.Steps = list201; reference150 = obj144; - ref QuestSequence reference151 = ref span56[3]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 @@ -152134,27 +181639,33 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2007518u, new Vector3(-697.01685f, -37.82715f, 431.2047f), 402) + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007518u, new Vector3(-697.01685f, -37.82715f, 431.2047f), 402) { Fly = true }; obj145.Steps = list202; reference151 = obj145; - ref QuestSequence reference152 = ref span56[4]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1018261u, new Vector3(785.3054f, -24.802603f, -766.3539f), 402) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018261u, new Vector3(785.3054f, -24.802603f, -766.3539f), 402) { Fly = true }; obj146.Steps = list203; reference152 = obj146; - ref QuestSequence reference153 = ref span56[5]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -152162,7 +181673,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -152176,21 +181689,26 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list205); + index = 0; + span[index] = "UcanPatates"; questRoot25.Author = list205; - num = 4; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span57 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference154 = ref span57[0]; + index = 4; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + span2 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list207)[0]; + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference155 = ref span3[num2]; QuestStep obj149 = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -152200,17 +181718,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 478; + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span5 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span5[num3] = 478; obj150.InTerritory = list208; skipConditions7.AetheryteShortcutIf = obj150; obj149.SkipConditions = skipConditions7; reference155 = obj149; obj148.Steps = list207; reference154 = obj148; - ref QuestSequence reference156 = ref span57[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -152218,8 +181739,9 @@ public static class AssemblyQuestLoader num2 = 2; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span58 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference157 = ref span58[0]; + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference157 = ref span3[index2]; QuestStep obj152 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.23425f, 207f, 119.497574f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -152229,36 +181751,44 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = 399; + span5 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span5[index3] = 399; skipStepConditions4.InTerritory = list210; skipConditions8.StepIf = skipStepConditions4; SkipAetheryteCondition obj153 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = 399; + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + span5 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span5[num3] = 399; obj153.InTerritory = list211; skipConditions8.AetheryteShortcutIf = obj153; obj152.SkipConditions = skipConditions8; reference157 = obj152; - span58[1] = new QuestStep(EInteractionType.Interact, 1018367u, new Vector3(302.11328f, 232.54102f, 767.14734f), 399) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018367u, new Vector3(302.11328f, 232.54102f, 767.14734f), 399) { Fly = true }; obj151.Steps = list209; reference156 = obj151; - ref QuestSequence reference158 = ref span57[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -152267,7 +181797,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list212; reference158 = obj154; - ref QuestSequence reference159 = ref span57[3]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -152275,7 +181806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -152295,24 +181828,30 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list214); + index = 0; + span[index] = "liza"; questRoot26.Author = list214; - num = 2; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span59 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference160 = ref span59[0]; + index = 2; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + span2 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018317u, new Vector3(44.174805f, 206.99484f, -9.720032f), 478); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018317u, new Vector3(44.174805f, 206.99484f, -9.720032f), 478); obj156.Steps = list216; reference160 = obj156; - ref QuestSequence reference161 = ref span59[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue @@ -152320,7 +181859,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017653u, new Vector3(-17.990417f, 211.4722f, -1.4801636f), 478); + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017653u, new Vector3(-17.990417f, 211.4722f, -1.4801636f), 478); obj157.Steps = list217; reference161 = obj157; questRoot26.QuestSequence = list215; @@ -152330,22 +181871,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot27.Author = list218; - num = 7; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span60 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span60[0]; + index = 7; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - Span span61 = CollectionsMarshal.AsSpan(list220); - ref QuestStep reference163 = ref span61[0]; + index2 = 3; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference163 = ref span3[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -152356,19 +181901,24 @@ public static class AssemblyQuestLoader num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = 351; + span5 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span5[index3] = 351; skipStepConditions5.InTerritory = list221; skipConditions9.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = 351; + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = 351; skipAetheryteCondition5.InTerritory = list222; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition5; obj159.SkipConditions = skipConditions9; reference163 = obj159; - span61[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -152379,13 +181929,15 @@ public static class AssemblyQuestLoader } } }; - span61[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj158.Steps = list220; reference162 = obj158; - ref QuestSequence reference164 = ref span60[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -152393,29 +181945,36 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2007560u, new Vector3(216.11353f, 256.36682f, 10.757568f), 402) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007560u, new Vector3(216.11353f, 256.36682f, 10.757568f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj160.Steps = list223; reference164 = obj160; - ref QuestSequence reference165 = ref span60[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1017675u, new Vector3(148.11926f, 245.1f, -4.1657104f), 402); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017675u, new Vector3(148.11926f, 245.1f, -4.1657104f), 402); obj161.Steps = list224; reference165 = obj161; - span60[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference166 = ref span60[4]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 4 @@ -152423,18 +181982,23 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1018511u, new Vector3(-1.449646f, 3.144145E-06f, 5.2643433f), 507); + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018511u, new Vector3(-1.449646f, 3.144145E-06f, 5.2643433f), 507); obj162.Steps = list225; reference166 = obj162; - ref QuestSequence reference167 = ref span60[5]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Duty, null, null, 507) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 507) { DutyOptions = new DutyOptions { @@ -152443,7 +182007,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list226; reference167 = obj163; - ref QuestSequence reference168 = ref span60[6]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -152451,17 +182016,20 @@ public static class AssemblyQuestLoader num2 = 3; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span62 = CollectionsMarshal.AsSpan(list227); - span62[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span62[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span62[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -152474,22 +182042,26 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "liza"; questRoot28.Author = list228; - num = 2; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span63 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference169 = ref span63[0]; + index = 2; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span2 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span64 = CollectionsMarshal.AsSpan(list230); - ref QuestStep reference170 = ref span64[0]; + index2 = 3; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -152500,19 +182072,24 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 351; + span5 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span5[index3] = 351; skipStepConditions6.InTerritory = list231; skipConditions10.StepIf = skipStepConditions6; SkipAetheryteCondition skipAetheryteCondition6 = new SkipAetheryteCondition(); - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = 351; + index3 = 1; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + span5 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span5[num3] = 351; skipAetheryteCondition6.InTerritory = list232; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition6; obj166.SkipConditions = skipConditions10; reference170 = obj166; - span64[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -152523,13 +182100,15 @@ public static class AssemblyQuestLoader } } }; - span64[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj165.Steps = list230; reference169 = obj165; - ref QuestSequence reference171 = ref span63[1]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -152537,8 +182116,9 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span65 = CollectionsMarshal.AsSpan(list233); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -152559,7 +182139,8 @@ public static class AssemblyQuestLoader } } }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -152576,13 +182157,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "kaiser"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "kaiser"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -152590,7 +182174,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152614,15 +182200,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1021184u, new Vector3(191.9126f, 234.44899f, 402.45667f), 155) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021184u, new Vector3(191.9126f, 234.44899f, 402.45667f), 155) { StopDistance = 5f, Fly = true, @@ -152637,7 +182226,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -152645,7 +182235,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1021187u, new Vector3(-1.9990234f, 0.74534994f, 360.25012f), 153) { StopDistance = 5f, @@ -152662,7 +182254,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAST601_02409_Q1_000_000"), @@ -152672,15 +182266,18 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152712,13 +182309,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "kaiser"; questRoot2.Author = list8; - num = 5; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 5; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -152726,7 +182326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152750,21 +182352,25 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1021221u, new Vector3(180.22424f, -5.4349146f, -55.588684f), 419) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021221u, new Vector3(180.22424f, -5.4349146f, -55.588684f), 419) { StopDistance = 5f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -152772,8 +182378,9 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(244.403f, 361.78677f, -616.2311f), 155) { StopDistance = 5f, @@ -152781,10 +182388,12 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new ComplexCombatData + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span5 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span5[num3] = new ComplexCombatData { DataId = 7235u, MinimumKillCount = 2u @@ -152798,18 +182407,22 @@ public static class AssemblyQuestLoader } }; reference9 = obj9; - span3[1] = new QuestStep(EInteractionType.Interact, 1021222u, new Vector3(240.68054f, 362.1392f, -614.74023f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021222u, new Vector3(240.68054f, 362.1392f, -614.74023f), 155); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152833,7 +182446,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -152841,7 +182455,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152873,21 +182489,26 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "kaiser"; questRoot3.Author = list16; - num = 6; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 6; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152911,7 +182532,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -152919,7 +182541,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -152930,16 +182554,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span4[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 3; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1021259u, new Vector3(-16.250854f, 0.09999631f, -31.784546f), 628) { StopDistance = 4f, @@ -152951,12 +182577,18 @@ public static class AssemblyQuestLoader List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 0; + span6[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list21; skipConditions.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -152965,7 +182597,8 @@ public static class AssemblyQuestLoader }; obj15.SkipConditions = skipConditions; reference15 = obj15; - ref QuestStep reference16 = ref span5[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1021256u, new Vector3(28.610596f, 4f, 53.57434f), 628) { StopDistance = 4f, @@ -152973,16 +182606,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span6 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span6[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; skipStepConditions2.CompletionQuestVariablesFlags = list22; skipConditions2.StepIf = skipStepConditions2; skipConditions2.AetheryteShortcutIf = new SkipAetheryteCondition @@ -152991,7 +182630,8 @@ public static class AssemblyQuestLoader }; obj16.SkipConditions = skipConditions2; reference16 = obj16; - span5[2] = new QuestStep(EInteractionType.Interact, 1021260u, new Vector3(-12.069946f, -4.9889293f, 15.579407f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021260u, new Vector3(-12.069946f, -4.9889293f, 15.579407f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153005,7 +182645,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference17 = ref span4[3]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -153013,7 +182654,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2007937u, new Vector3(-51.621338f, 16.891724f, 0.045776367f), 628) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007937u, new Vector3(-51.621338f, 16.891724f, 0.045776367f), 628) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153027,16 +182670,18 @@ public static class AssemblyQuestLoader }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span4[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span8 = CollectionsMarshal.AsSpan(list24); - span8[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-53.109528f, 15.469519f, 22.387312f), 628) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-53.109528f, 15.469519f, 22.387312f), 628) { JumpDestination = new JumpDestination { @@ -153045,7 +182690,8 @@ public static class AssemblyQuestLoader Type = EJumpType.RepeatedJumps } }; - span8[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021261u, new Vector3(-57.846985f, -3f, 25.16211f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021261u, new Vector3(-57.846985f, -3f, 25.16211f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153059,7 +182705,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span4[5]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -153067,7 +182714,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153099,21 +182748,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "kaiser"; questRoot4.Author = list26; - num = 6; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span9[0]; + index = 6; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153137,7 +182791,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -153145,22 +182800,27 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1021273u, new Vector3(469.84045f, 69.6416f, -68.37573f), 614) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021273u, new Vector3(469.84045f, 69.6416f, -68.37573f), 614) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) { StopDistance = 4f, @@ -153171,7 +182831,9 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 7236u; + Span span7 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span7[index3] = 7236u; obj23.KillEnemyDataIds = list31; obj23.SkipConditions = new SkipConditions { @@ -153180,10 +182842,12 @@ public static class AssemblyQuestLoader InSameTerritory = true } }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span4 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST680_02412_Q1_000_024") @@ -153192,7 +182856,8 @@ public static class AssemblyQuestLoader reference23 = obj23; obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference24 = ref span9[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 @@ -153200,22 +182865,27 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) { StopDistance = 4f, Fly = false }; obj24.Steps = list33; reference24 = obj24; - ref QuestSequence reference25 = ref span9[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1021054u, new Vector3(-36.66742f, 14.000003f, -58.457336f), 628) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021054u, new Vector3(-36.66742f, 14.000003f, -58.457336f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153229,7 +182899,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list34; reference25 = obj25; - ref QuestSequence reference26 = ref span9[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -153237,7 +182908,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153269,21 +182942,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "kaiser"; questRoot5.Author = list36; - num = 5; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span10 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference27 = ref span10[0]; + index = 5; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153307,7 +182985,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list38; reference27 = obj27; - ref QuestSequence reference28 = ref span10[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -153315,7 +182994,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2008103u, new Vector3(44.84619f, 8.255066f, 178.11853f), 628) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008103u, new Vector3(44.84619f, 8.255066f, 178.11853f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -153328,15 +183009,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list39; reference28 = obj28; - ref QuestSequence reference29 = ref span10[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1021305u, new Vector3(-61.356567f, -3f, 28.854736f), 628) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021305u, new Vector3(-61.356567f, -3f, 28.854736f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153355,7 +183039,8 @@ public static class AssemblyQuestLoader }; obj29.Steps = list40; reference29 = obj29; - ref QuestSequence reference30 = ref span10[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -153363,7 +183048,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008104u, new Vector3(128.13f, 24.979004f, -0.22894287f), 628) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008104u, new Vector3(128.13f, 24.979004f, -0.22894287f), 628) { StopDistance = 3f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153382,15 +183069,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list41; reference30 = obj30; - ref QuestSequence reference31 = ref span10[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021309u, new Vector3(-47.501343f, 16.624714f, 9.719971f), 628) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021309u, new Vector3(-47.501343f, 16.624714f, 9.719971f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153417,13 +183107,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "Cacahuetes"; questRoot6.Author = list43; - num = 6; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span11 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference32 = ref span11[0]; + index = 6; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -153431,8 +183124,9 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - span12[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -153459,7 +183153,8 @@ public static class AssemblyQuestLoader } } }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -153470,18 +183165,22 @@ public static class AssemblyQuestLoader } } }; - span12[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj32.Steps = list45; reference32 = obj32; - ref QuestSequence reference33 = ref span11[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -153492,7 +183191,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list46; reference33 = obj33; - ref QuestSequence reference34 = ref span11[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -153500,28 +183200,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1018744u, new Vector3(87.96814f, 5.9457893f, 490.56213f), 152) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018744u, new Vector3(87.96814f, 5.9457893f, 490.56213f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj34.Steps = list47; reference34 = obj34; - ref QuestSequence reference35 = ref span11[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1018746u, new Vector3(-651.3619f, 130f, -527.8248f), 612) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018746u, new Vector3(-651.3619f, 130f, -527.8248f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj35.Steps = list48; reference35 = obj35; - ref QuestSequence reference36 = ref span11[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -153529,21 +183235,26 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2007687u, new Vector3(-640.8331f, 120.3479f, -291.52362f), 612) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007687u, new Vector3(-640.8331f, 120.3479f, -291.52362f), 612) { Fly = true }; obj36.Steps = list49; reference36 = obj36; - ref QuestSequence reference37 = ref span11[5]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018752u, new Vector3(-622.5834f, 130.26505f, -473.7469f), 612) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018752u, new Vector3(-622.5834f, 130.26505f, -473.7469f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2415) @@ -153557,13 +183268,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "Cacahuetes"; questRoot7.Author = list51; - num = 5; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span13 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference38 = ref span13[0]; + index = 5; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -153571,7 +183285,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153584,21 +183300,25 @@ public static class AssemblyQuestLoader }; obj38.Steps = list53; reference38 = obj38; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1018757u, new Vector3(-437.2168f, 73.07981f, -100.23657f), 612) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018757u, new Vector3(-437.2168f, 73.07981f, -100.23657f), 612) { Fly = true }; obj39.Steps = list54; reference39 = obj39; - ref QuestSequence reference40 = ref span13[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -153606,8 +183326,9 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span14 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference41 = ref span14[0]; + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612) { StopDistance = 0.5f, @@ -153617,21 +183338,27 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 7214u; + span7 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span7[index3] = 7214u; obj41.KillEnemyDataIds = list56; reference41 = obj41; - span14[1] = new QuestStep(EInteractionType.Interact, 1018758u, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018758u, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612); obj40.Steps = list55; reference40 = obj40; - ref QuestSequence reference42 = ref span13[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -153642,7 +183369,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list57; reference42 = obj42; - ref QuestSequence reference43 = ref span13[4]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -153650,7 +183378,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2416) @@ -153664,21 +183394,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "Cacahuetes"; questRoot8.Author = list59; - num = 6; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span15 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference44 = ref span15[0]; + index = 6; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153691,7 +183426,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list61; reference44 = obj44; - ref QuestSequence reference45 = ref span15[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -153699,27 +183435,33 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 2007711u, new Vector3(-488.0293f, 50.94983f, 86.96118f), 612) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007711u, new Vector3(-488.0293f, 50.94983f, 86.96118f), 612) { Fly = true }; obj45.Steps = list62; reference45 = obj45; - ref QuestSequence reference46 = ref span15[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 2007712u, new Vector3(-461.63123f, 57.14502f, 186.08374f), 612) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007712u, new Vector3(-461.63123f, 57.14502f, 186.08374f), 612) { Fly = true }; obj46.Steps = list63; reference46 = obj46; - ref QuestSequence reference47 = ref span15[3]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -153727,27 +183469,33 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2007713u, new Vector3(-529.9306f, 36.88098f, 451.16345f), 612) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007713u, new Vector3(-529.9306f, 36.88098f, 451.16345f), 612) { Fly = true }; obj47.Steps = list64; reference47 = obj47; - ref QuestSequence reference48 = ref span15[4]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019090u, new Vector3(-638.3002f, 38.30705f, 374.92932f), 612) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019090u, new Vector3(-638.3002f, 38.30705f, 374.92932f), 612) { Fly = true }; obj48.Steps = list65; reference48 = obj48; - ref QuestSequence reference49 = ref span15[5]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -153755,15 +183503,19 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list66)[0]; + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj50 = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + index3 = 1; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + span4 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM650_02416_Q1_000_000"), @@ -153781,21 +183533,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "Cacahuetes"; questRoot9.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span16 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference51 = ref span16[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153808,7 +183565,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list70; reference51 = obj51; - ref QuestSequence reference52 = ref span16[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -153816,22 +183574,26 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1019125u, new Vector3(-651.81964f, 40.067055f, 370.80945f), 612) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019125u, new Vector3(-651.81964f, 40.067055f, 370.80945f), 612) { Fly = true }; obj52.Steps = list71; reference52 = obj52; - ref QuestSequence reference53 = ref span16[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span17 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference54 = ref span17[0]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612) { Fly = true, @@ -153841,13 +183603,17 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 7215u; + span7 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span7[index3] = 7215u; obj54.KillEnemyDataIds = list73; reference54 = obj54; - span17[1] = new QuestStep(EInteractionType.Interact, 1019128u, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019128u, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612); obj53.Steps = list72; reference53 = obj53; - ref QuestSequence reference55 = ref span16[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -153855,23 +183621,28 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span18 = CollectionsMarshal.AsSpan(list74); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) { Fly = true }; - span18[1] = new QuestStep(EInteractionType.Interact, 1019131u, new Vector3(-663.7522f, 43.594555f, 363.75977f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019131u, new Vector3(-663.7522f, 43.594555f, 363.75977f), 612); obj55.Steps = list74; reference55 = obj55; - ref QuestSequence reference56 = ref span16[4]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) { NextQuestId = new QuestId(2418) }; @@ -153884,13 +183655,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "Cacahuetes"; questRoot10.Author = list76; - num = 7; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span19 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference57 = ref span19[0]; + index = 7; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -153898,7 +183672,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153911,21 +183687,25 @@ public static class AssemblyQuestLoader }; obj57.Steps = list78; reference57 = obj57; - ref QuestSequence reference58 = ref span19[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1018759u, new Vector3(-636.8048f, 130f, -528.6183f), 612) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018759u, new Vector3(-636.8048f, 130f, -528.6183f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj58.Steps = list79; reference58 = obj58; - ref QuestSequence reference59 = ref span19[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -153933,31 +183713,38 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span20 = CollectionsMarshal.AsSpan(list80); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) { Fly = true }; - span20[1] = new QuestStep(EInteractionType.Interact, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612); obj59.Steps = list80; reference59 = obj59; - ref QuestSequence reference60 = ref span19[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Emote, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612) { Emote = EEmote.Soothe }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM700_02418_Q1_000_000"), @@ -153967,7 +183754,8 @@ public static class AssemblyQuestLoader reference61 = obj61; obj60.Steps = list81; reference60 = obj60; - ref QuestSequence reference62 = ref span19[4]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -153975,7 +183763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list83)[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference63 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) { Fly = true, @@ -153984,26 +183774,32 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 7216u; + span7 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span7[index3] = 7216u; obj63.KillEnemyDataIds = list84; reference63 = obj63; obj62.Steps = list83; reference62 = obj62; - ref QuestSequence reference64 = ref span19[5]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019127u, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019127u, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) { ItemId = 2002053u }; obj64.Steps = list85; reference64 = obj64; - ref QuestSequence reference65 = ref span19[6]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -154011,7 +183807,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019588u, new Vector3(-382.71155f, 40.275818f, 484.36694f), 612); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019588u, new Vector3(-382.71155f, 40.275818f, 484.36694f), 612); obj65.Steps = list86; reference65 = obj65; questRoot10.QuestSequence = list77; @@ -154021,21 +183819,26 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "plogon_enjoyer"; questRoot11.Author = list87; - num = 5; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span21 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference66 = ref span21[0]; + index = 5; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -154047,12 +183850,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span22 = CollectionsMarshal.AsSpan(list90); - span22[0] = 130; - span22[1] = 131; + index3 = 2; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span8 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span8[num3] = 130; + num3++; + span8[num3] = 131; skipAetheryteCondition.InTerritory = list90; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -154063,7 +183868,8 @@ public static class AssemblyQuestLoader reference67 = obj67; obj66.Steps = list89; reference66 = obj66; - ref QuestSequence reference68 = ref span21[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -154071,29 +183877,35 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj68.Steps = list91; reference68 = obj68; - ref QuestSequence reference69 = ref span21[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1022372u, new Vector3(-224.90277f, 26.139341f, -353.38373f), 146) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022372u, new Vector3(-224.90277f, 26.139341f, -353.38373f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj69.Steps = list92; reference69 = obj69; - ref QuestSequence reference70 = ref span21[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -154101,21 +183913,26 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1022373u, new Vector3(-81.22388f, 39.42472f, -336.96503f), 146) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022373u, new Vector3(-81.22388f, 39.42472f, -336.96503f), 146) { Mount = true }; obj70.Steps = list93; reference70 = obj70; - ref QuestSequence reference71 = ref span21[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list94)[0]; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, @@ -154124,7 +183941,9 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK601_02426_Q2_000_000"), @@ -154141,13 +183960,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "plogon_enjoyer"; questRoot12.Author = list96; - num = 8; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span23 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference73 = ref span23[0]; + index = 8; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -154155,7 +183977,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -154168,15 +183992,18 @@ public static class AssemblyQuestLoader }; obj73.Steps = list98; reference73 = obj73; - ref QuestSequence reference74 = ref span23[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1022384u, new Vector3(76.920654f, 62.19928f, -669.4591f), 612) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022384u, new Vector3(76.920654f, 62.19928f, -669.4591f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154188,7 +184015,8 @@ public static class AssemblyQuestLoader }; obj74.Steps = list99; reference74 = obj74; - ref QuestSequence reference75 = ref span23[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -154196,28 +184024,34 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1022387u, new Vector3(49.94275f, 118.155785f, -746.0899f), 620) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022387u, new Vector3(49.94275f, 118.155785f, -746.0899f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj75.Steps = list100; reference75 = obj75; - ref QuestSequence reference76 = ref span23[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true }; obj76.Steps = list101; reference76 = obj76; - ref QuestSequence reference77 = ref span23[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 @@ -154225,32 +184059,38 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span24 = CollectionsMarshal.AsSpan(list102); - span24[0] = new QuestStep(EInteractionType.Action, null, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.FormShift }; - span24[1] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.TwinSnakes }; obj77.Steps = list102; reference77 = obj77; - ref QuestSequence reference78 = ref span23[5]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.DragonKick }; obj78.Steps = list103; reference78 = obj78; - ref QuestSequence reference79 = ref span23[6]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 6 @@ -154258,21 +184098,26 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.Demolish }; obj79.Steps = list104; reference79 = obj79; - ref QuestSequence reference80 = ref span23[7]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 5f, NextQuestId = new QuestId(2428) @@ -154286,13 +184131,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "plogon_enjoyer"; questRoot13.Author = list106; - num = 8; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span25 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference81 = ref span25[0]; + index = 8; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -154300,7 +184148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -154314,21 +184164,25 @@ public static class AssemblyQuestLoader }; obj81.Steps = list108; reference81 = obj81; - ref QuestSequence reference82 = ref span25[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj82.Steps = list109; reference82 = obj82; - ref QuestSequence reference83 = ref span25[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -154336,22 +184190,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj83.Steps = list110; reference83 = obj83; - ref QuestSequence reference84 = ref span25[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1022404u, new Vector3(76.43237f, 62.148823f, -667.2923f), 612) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022404u, new Vector3(76.43237f, 62.148823f, -667.2923f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154363,7 +184222,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list111; reference84 = obj84; - ref QuestSequence reference85 = ref span25[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 4 @@ -154371,39 +184231,48 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span26 = CollectionsMarshal.AsSpan(list112); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.72436f, 60.086643f, -602.3445f), 612) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.72436f, 60.086643f, -602.3445f), 612) { Fly = true }; - ref QuestStep reference86 = ref span26[1]; + index2++; + ref QuestStep reference86 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-109.40343f, 60.039776f, -612.03217f), 612) { Mount = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = 7217u; + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span7 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span7[num3] = 7217u; obj86.KillEnemyDataIds = list113; obj86.CombatDelaySecondsAtStart = 0f; reference86 = obj86; - span26[2] = new QuestStep(EInteractionType.Interact, 1022405u, new Vector3(-106.82843f, 60.07189f, -609.49115f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022405u, new Vector3(-106.82843f, 60.07189f, -609.49115f), 612); obj85.Steps = list112; reference85 = obj85; - ref QuestSequence reference87 = ref span25[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1022411u, new Vector3(-107.927124f, 60.035603f, -609.76575f), 612); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022411u, new Vector3(-107.927124f, 60.035603f, -609.76575f), 612); obj87.Steps = list114; reference87 = obj87; - ref QuestSequence reference88 = ref span25[6]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -154411,22 +184280,27 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1022412u, new Vector3(103.77649f, 118.18349f, -707.393f), 620) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022412u, new Vector3(103.77649f, 118.18349f, -707.393f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj88.Steps = list115; reference88 = obj88; - ref QuestSequence reference89 = ref span25[7]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, NextQuestId = new QuestId(2429) @@ -154440,13 +184314,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "plogon_enjoyer"; questRoot14.Author = list117; - num = 9; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span27 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference90 = ref span27[0]; + index = 9; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -154454,7 +184331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -154467,21 +184346,25 @@ public static class AssemblyQuestLoader }; obj90.Steps = list119; reference90 = obj90; - ref QuestSequence reference91 = ref span27[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1022437u, new Vector3(81.467896f, 118.391884f, -792.7825f), 620) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022437u, new Vector3(81.467896f, 118.391884f, -792.7825f), 620) { Fly = true }; obj91.Steps = list120; reference91 = obj91; - ref QuestSequence reference92 = ref span27[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -154489,7 +184372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1022438u, new Vector3(-61.112427f, -0.002525447f, -67.67377f), 635) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022438u, new Vector3(-61.112427f, -0.002525447f, -67.67377f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154501,22 +184386,26 @@ public static class AssemblyQuestLoader }; obj92.Steps = list121; reference92 = obj92; - ref QuestSequence reference93 = ref span27[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj93.Steps = list122; reference93 = obj93; - ref QuestSequence reference94 = ref span27[4]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -154524,7 +184413,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1022439u, new Vector3(162.40173f, 49.7417f, -251.9112f), 612) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022439u, new Vector3(162.40173f, 49.7417f, -251.9112f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154536,26 +184427,31 @@ public static class AssemblyQuestLoader }; obj94.Steps = list123; reference94 = obj94; - ref QuestSequence reference95 = ref span27[5]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022442u, new Vector3(-575.1583f, 110.899315f, -324.69672f), 612) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022442u, new Vector3(-575.1583f, 110.899315f, -324.69672f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj95.Steps = list124; reference95 = obj95; - span27[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference96 = ref span27[7]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 7 @@ -154563,21 +184459,26 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1022446u, new Vector3(-586.2974f, 113.00655f, -312.7337f), 612) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022446u, new Vector3(-586.2974f, 113.00655f, -312.7337f), 612) { StopDistance = 4f }; obj96.Steps = list125; reference96 = obj96; - ref QuestSequence reference97 = ref span27[8]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -154592,13 +184493,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "plogon_enjoyer"; questRoot15.Author = list127; - num = 6; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span28 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference98 = ref span28[0]; + index = 6; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -154606,7 +184510,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list129)[0]; + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -154621,7 +184527,9 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK700_02430_Q1_000_000"), @@ -154631,21 +184539,25 @@ public static class AssemblyQuestLoader reference99 = obj99; obj98.Steps = list129; reference98 = obj98; - ref QuestSequence reference100 = ref span28[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1022532u, new Vector3(617.6089f, 271.0004f, -463.1266f), 620) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022532u, new Vector3(617.6089f, 271.0004f, -463.1266f), 620) { Fly = true }; obj100.Steps = list131; reference100 = obj100; - ref QuestSequence reference101 = ref span28[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -154653,7 +184565,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022548u, new Vector3(75.638916f, 62.111427f, -665.3696f), 612) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022548u, new Vector3(75.638916f, 62.111427f, -665.3696f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154665,37 +184579,47 @@ public static class AssemblyQuestLoader }; obj101.Steps = list132; reference101 = obj101; - span28[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference102 = ref span28[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span29 = CollectionsMarshal.AsSpan(list133); - ref QuestStep reference103 = ref span29[0]; + index2 = 3; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference103 = ref span3[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1022539u, new Vector3(54.36792f, 118.22339f, -785.12244f), 620) { StopDistance = 7f }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span30 = CollectionsMarshal.AsSpan(list134); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + span6 = CollectionsMarshal.AsSpan(list134); + 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); obj103.CompletionQuestVariablesFlags = list134; reference103 = obj103; - ref QuestStep reference104 = ref span29[1]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1022538u, new Vector3(51.31604f, 118.32745f, -786.9841f), 620) { StopDistance = 7f @@ -154703,35 +184627,49 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span31 = CollectionsMarshal.AsSpan(list135); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list135; reference104 = obj104; - ref QuestStep reference105 = ref span29[2]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1022392u, new Vector3(53.147095f, 118.4737f, -788.4489f), 620) { StopDistance = 7f }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span32 = CollectionsMarshal.AsSpan(list136); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span6 = CollectionsMarshal.AsSpan(list136); + 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); obj105.CompletionQuestVariablesFlags = list136; reference105 = obj105; obj102.Steps = list133; reference102 = obj102; - ref QuestSequence reference106 = ref span28[5]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -154739,7 +184677,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 7f, NextQuestId = new QuestId(3211) @@ -154753,22 +184693,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span33 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference107 = ref span33[0]; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span34 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference108 = ref span34[0]; + index2 = 2; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -154779,22 +184723,28 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 351; + span8 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span8[index3] = 351; skipStepConditions3.InTerritory = list141; skipConditions4.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 351; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span8 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span8[num3] = 351; skipAetheryteCondition2.InTerritory = list142; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; obj108.SkipConditions = skipConditions4; reference108 = obj108; - span34[1] = new QuestStep(EInteractionType.AcceptQuest, 1018330u, new Vector3(-4.196289f, 0.018040119f, -6.6377563f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018330u, new Vector3(-4.196289f, 0.018040119f, -6.6377563f), 351); obj107.Steps = list140; reference107 = obj107; - ref QuestSequence reference109 = ref span33[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -154802,25 +184752,31 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1020284u, new Vector3(-3.3112793f, 0.018040119f, -6.881897f), 351); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020284u, new Vector3(-3.3112793f, 0.018040119f, -6.881897f), 351); obj109.Steps = list143; reference109 = obj109; - ref QuestSequence reference110 = ref span33[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1020300u, new Vector3(24.795776f, 6.1891203f, 401.9989f), 152) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020300u, new Vector3(24.795776f, 6.1891203f, 401.9989f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj110.Steps = list144; reference110 = obj110; - ref QuestSequence reference111 = ref span33[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 @@ -154828,7 +184784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1020303u, new Vector3(26.962646f, 6.1844764f, 400.99182f), 152) { StopDistance = 7f @@ -154836,7 +184794,9 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA101_02446_WARP_YESNO_TITLE_001") @@ -154845,21 +184805,25 @@ public static class AssemblyQuestLoader reference112 = obj112; obj111.Steps = list145; reference111 = obj111; - ref QuestSequence reference113 = ref span33[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span35 = CollectionsMarshal.AsSpan(list147); - span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) + index2 = 3; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) { Aetheryte = EAetheryteLocation.FringesCastrumOriens }; - span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-612.8515f, 130f, -506.81757f), 612); - span35[2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-612.8515f, 130f, -506.81757f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 7f }; @@ -154872,13 +184836,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list148; - num = 6; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span36 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference114 = ref span36[0]; + index = 6; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -154886,7 +184853,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020527u, new Vector3(-612.0852f, 130f, -504.02078f), 612) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020527u, new Vector3(-612.0852f, 130f, -504.02078f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -154900,18 +184869,22 @@ public static class AssemblyQuestLoader }; obj114.Steps = list150; reference114 = obj114; - ref QuestSequence reference115 = ref span36[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1020311u, new Vector3(-481.2848f, 96.387344f, -341.26807f), 612); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020311u, new Vector3(-481.2848f, 96.387344f, -341.26807f), 612); obj115.Steps = list151; reference115 = obj115; - ref QuestSequence reference116 = ref span36[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 @@ -154919,35 +184892,42 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span37 = CollectionsMarshal.AsSpan(list152); - span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007965u, new Vector3(-487.26636f, 76.70703f, -249.56134f), 612) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007965u, new Vector3(-487.26636f, 76.70703f, -249.56134f), 612) { AetherCurrentId = 2818133u }; - span37[1] = new QuestStep(EInteractionType.Interact, 1020316u, new Vector3(-213.51953f, 59.159065f, -531.426f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020316u, new Vector3(-213.51953f, 59.159065f, -531.426f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj116.Steps = list152; reference116 = obj116; - ref QuestSequence reference117 = ref span36[3]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span38 = CollectionsMarshal.AsSpan(list153); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.70333f, 58.571022f, -581.12805f), 612); - span38[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007967u, new Vector3(155.84033f, 53.3302f, -499.44305f), 612) + index2 = 3; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.70333f, 58.571022f, -581.12805f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007967u, new Vector3(155.84033f, 53.3302f, -499.44305f), 612) { AetherCurrentId = 2818135u }; - span38[2] = new QuestStep(EInteractionType.Interact, 1020321u, new Vector3(447.77588f, 61.497482f, -543.72473f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020321u, new Vector3(447.77588f, 61.497482f, -543.72473f), 612); obj117.Steps = list153; reference117 = obj117; - ref QuestSequence reference118 = ref span36[4]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 @@ -154955,21 +184935,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.6969f, 61.72069f, -558.6724f), 612) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.6969f, 61.72069f, -558.6724f), 612) { TargetTerritoryId = (ushort)635 }; obj118.Steps = list154; reference118 = obj118; - ref QuestSequence reference119 = ref span36[5]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); obj119.Steps = list155; reference119 = obj119; questRoot17.QuestSequence = list149; @@ -154979,13 +184964,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list156; - num = 2; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span39 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference120 = ref span39[0]; + index = 2; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -154993,31 +184981,38 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); obj120.Steps = list158; reference120 = obj120; - ref QuestSequence reference121 = ref span39[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span40 = CollectionsMarshal.AsSpan(list159); - span40[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + index2 = 4; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachWest }; - span40[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) { Aetheryte = EAetheryteLocation.RhalgrsReach }; - span40[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachNorthEast }; - span40[3] = new QuestStep(EInteractionType.CompleteQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); obj121.Steps = list159; reference121 = obj121; questRoot18.QuestSequence = list157; @@ -155027,13 +185022,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list160; - num = 6; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span41 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference122 = ref span41[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -155041,7 +185039,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155055,18 +185055,22 @@ public static class AssemblyQuestLoader }; obj122.Steps = list162; reference122 = obj122; - ref QuestSequence reference123 = ref span41[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1020339u, new Vector3(95.2926f, 1.2333723f, -78.23309f), 635); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020339u, new Vector3(95.2926f, 1.2333723f, -78.23309f), 635); obj123.Steps = list163; reference123 = obj123; - ref QuestSequence reference124 = ref span41[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -155074,21 +185078,27 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1020345u, new Vector3(-1.8463745f, 2.6970465f, -68.833435f), 635); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020345u, new Vector3(-1.8463745f, 2.6970465f, -68.833435f), 635); obj124.Steps = list164; reference124 = obj124; - ref QuestSequence reference125 = ref span41[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1020346u, new Vector3(-117.60132f, 0.5980477f, -65.812195f), 635); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020346u, new Vector3(-117.60132f, 0.5980477f, -65.812195f), 635); obj125.Steps = list165; reference125 = obj125; - ref QuestSequence reference126 = ref span41[4]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -155096,7 +185106,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1020344u, new Vector3(86.65588f, 0f, 88.70068f), 635) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020344u, new Vector3(86.65588f, 0f, 88.70068f), 635) { AethernetShortcut = new AethernetShortcut { @@ -155106,15 +185118,18 @@ public static class AssemblyQuestLoader }; obj126.Steps = list166; reference126 = obj126; - ref QuestSequence reference127 = ref span41[5]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020347u, new Vector3(59.67798f, -8.1507994E-13f, -4.0742188f), 635); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020347u, new Vector3(59.67798f, -8.1507994E-13f, -4.0742188f), 635); obj127.Steps = list167; reference127 = obj127; questRoot19.QuestSequence = list161; @@ -155128,13 +185143,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -155142,7 +185160,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020341u, new Vector3(61.17334f, -9.369123E-13f, -4.6845703f), 635) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020341u, new Vector3(61.17334f, -9.369123E-13f, -4.6845703f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155156,18 +185176,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -155175,7 +185199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020333u, new Vector3(164.14124f, 13.023669f, -92.30188f), 635); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020333u, new Vector3(164.14124f, 13.023669f, -92.30188f), 635); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -155185,21 +185211,26 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list6; - num = 5; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 5; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155213,7 +185244,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -155221,26 +185253,32 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1020395u, new Vector3(-37.67456f, 18.448887f, 133.28748f), 635); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020395u, new Vector3(-37.67456f, 18.448887f, 133.28748f), 635); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.398779f, 12.536386f, 167.62189f), 635) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.398779f, 12.536386f, 167.62189f), 635) { TargetTerritoryId = (ushort)612 }; - span3[1] = new QuestStep(EInteractionType.Interact, 1020498u, new Vector3(158.12915f, 49.714592f, -475.27277f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020498u, new Vector3(158.12915f, 49.714592f, -475.27277f), 612); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 @@ -155248,7 +185286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2008157u, new Vector3(58.426758f, 51.895874f, -482.32245f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -155257,21 +185297,26 @@ public static class AssemblyQuestLoader List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = 7553u; - span4[1] = 7554u; + int num4 = 0; + span4[num4] = 7553u; + num4++; + span4[num4] = 7554u; obj8.KillEnemyDataIds = list12; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list7; @@ -155281,13 +185326,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span5[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -155295,21 +185343,27 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1020353u, new Vector3(-394.85773f, 105.037674f, -425.5589f), 612); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020353u, new Vector3(-394.85773f, 105.037674f, -425.5589f), 612); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -155317,7 +185371,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -155330,21 +185386,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span6 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span6[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -155357,7 +185418,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span6[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -155365,35 +185427,42 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { PickUpQuestId = new QuestId(2639) }; - ref QuestStep reference15 = ref span7[1]; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, 2007955u, new Vector3(-228.22925f, 59.861084f, -409.5064f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span8 = CollectionsMarshal.AsSpan(list23); - span8[0] = 8048u; - span8[1] = 8049u; + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span4 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span4[num3] = 8048u; + num3++; + span4[num3] = 8049u; obj15.KillEnemyDataIds = list23; reference15 = obj15; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference16 = ref span6[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020503u, new Vector3(-494.16345f, 82.14899f, -266.8651f), 612) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020503u, new Vector3(-494.16345f, 82.14899f, -266.8651f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -155403,7 +185472,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span6[3]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -155411,7 +185481,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) { StopDistance = 5f }; @@ -155424,21 +185496,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list26; - num = 2; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference18 = ref span9[0]; + index = 2; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -155452,7 +185529,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span9[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -155460,7 +185538,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -155485,21 +185565,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list30; - num = 6; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span10 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference20 = ref span10[0]; + index = 6; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155513,7 +185598,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference20 = obj20; - ref QuestSequence reference21 = ref span10[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -155521,24 +185607,30 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1020366u, new Vector3(114.18323f, 0.6520416f, -11.673218f), 635); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020366u, new Vector3(114.18323f, 0.6520416f, -11.673218f), 635); obj21.Steps = list33; reference21 = obj21; - ref QuestSequence reference22 = ref span10[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.8247f, -0.57445294f, -3.299387f), 635) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.8247f, -0.57445294f, -3.299387f), 635) { TargetTerritoryId = (ushort)620 }; obj22.Steps = list34; reference22 = obj22; - ref QuestSequence reference23 = ref span10[3]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -155546,24 +185638,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1020368u, new Vector3(-641.2604f, 50.867527f, -784.1764f), 620) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020368u, new Vector3(-641.2604f, 50.867527f, -784.1764f), 620) { StopDistance = 7f }; obj23.Steps = list35; reference23 = obj23; - ref QuestSequence reference24 = ref span10[4]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1020370u, new Vector3(-384.7563f, 52.201828f, -636.4691f), 620); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020370u, new Vector3(-384.7563f, 52.201828f, -636.4691f), 620); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span10[5]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -155571,7 +185669,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); obj25.Steps = list37; reference25 = obj25; questRoot6.QuestSequence = list31; @@ -155581,24 +185681,30 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span11 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span11[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); obj26.Steps = list40; reference26 = obj26; - ref QuestSequence reference27 = ref span11[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -155606,30 +185712,36 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span12 = CollectionsMarshal.AsSpan(list41); - span12[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) { Aetheryte = EAetheryteLocation.PeaksAlaGannha }; - span12[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007976u, new Vector3(202.86865f, 133.89783f, -753.1395f), 620) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007976u, new Vector3(202.86865f, 133.89783f, -753.1395f), 620) { AetherCurrentId = 2818149u }; - span12[2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span11[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); obj28.Steps = list42; reference28 = obj28; questRoot7.QuestSequence = list39; @@ -155639,13 +185751,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list43; - num = 4; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span13 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference29 = ref span13[0]; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -155653,7 +185768,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020376u, new Vector3(95.44519f, 118.15579f, -758.053f), 620) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020376u, new Vector3(95.44519f, 118.15579f, -758.053f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -155666,18 +185783,22 @@ public static class AssemblyQuestLoader }; obj29.Steps = list45; reference29 = obj29; - ref QuestSequence reference30 = ref span13[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1020375u, new Vector3(78.87378f, 118.26358f, -779.69025f), 620); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020375u, new Vector3(78.87378f, 118.26358f, -779.69025f), 620); obj30.Steps = list46; reference30 = obj30; - ref QuestSequence reference31 = ref span13[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -155685,18 +185806,23 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span13[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) { StopDistance = 5f }; @@ -155709,13 +185835,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span14 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span14[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -155723,7 +185852,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -155737,20 +185868,24 @@ public static class AssemblyQuestLoader }; obj33.Steps = list51; reference33 = obj33; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span15 = CollectionsMarshal.AsSpan(list52); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-98.166626f, 104.979965f, -480.49606f), 620); - span15[1] = new QuestStep(EInteractionType.Interact, 2008681u, new Vector3(-257.70966f, 102.311646f, -381.36877f), 620); + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-98.166626f, 104.979965f, -480.49606f), 620); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008681u, new Vector3(-257.70966f, 102.311646f, -381.36877f), 620); obj34.Steps = list52; reference34 = obj34; - ref QuestSequence reference35 = ref span14[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -155758,7 +185893,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference36 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(-281.2972f, 104.584076f, -359.10394f), 620) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -155766,46 +185903,56 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 7514u; + span4 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span4[num4] = 7514u; obj36.KillEnemyDataIds = list54; reference36 = obj36; obj35.Steps = list53; reference35 = obj35; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span16 = CollectionsMarshal.AsSpan(list55); - span16[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007978u, new Vector3(-271.2597f, 157.91565f, -280.2625f), 620) + index2 = 4; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007978u, new Vector3(-271.2597f, 157.91565f, -280.2625f), 620) { AetherCurrentId = 2818151u }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3264f, 202.14117f, -232.75537f), 620); - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3756f, 200.71988f, -237.96118f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3264f, 202.14117f, -232.75537f), 620); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3756f, 200.71988f, -237.96118f), 620) { DisableNavmesh = true }; - ref QuestStep reference38 = ref span16[3]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, null, new Vector3(-281.3983f, 200.71988f, -294.9439f), 620) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span17 = CollectionsMarshal.AsSpan(list56); - span17[0] = 7555u; - span17[1] = 8047u; + num4 = 2; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span4 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span4[num3] = 7555u; + num3++; + span4[num3] = 8047u; obj38.KillEnemyDataIds = list56; reference38 = obj38; obj37.Steps = list55; reference37 = obj37; - ref QuestSequence reference39 = ref span14[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -155813,18 +185960,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1020380u, new Vector3(-281.5138f, 200.71988f, -294.0871f), 620); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020380u, new Vector3(-281.5138f, 200.71988f, -294.0871f), 620); obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference40 = ref span14[5]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); obj40.Steps = list58; reference40 = obj40; questRoot9.QuestSequence = list50; @@ -155834,13 +185986,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span18 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference41 = ref span18[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -155848,29 +186003,35 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); obj41.Steps = list61; reference41 = obj41; - ref QuestSequence reference42 = ref span18[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span19 = CollectionsMarshal.AsSpan(list62); - span19[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-281.5496f, 200.71988f, -258.17767f), 620) + index2 = 2; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-281.5496f, 200.71988f, -258.17767f), 620) { JumpDestination = new JumpDestination { Position = new Vector3(-281.22574f, 192.18245f, -239.78777f) } }; - span19[1] = new QuestStep(EInteractionType.Interact, 2008684u, new Vector3(-200.4273f, 95.26196f, -448.23383f), 620); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008684u, new Vector3(-200.4273f, 95.26196f, -448.23383f), 620); obj42.Steps = list62; reference42 = obj42; - ref QuestSequence reference43 = ref span18[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -155878,18 +186039,23 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1020385u, new Vector3(-111.711365f, 105.71431f, -364.065f), 620); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020385u, new Vector3(-111.711365f, 105.71431f, -364.065f), 620); obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference44 = ref span18[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); obj44.Steps = list64; reference44 = obj44; questRoot10.QuestSequence = list60; @@ -155899,13 +186065,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list65; - num = 5; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span20 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference45 = ref span20[0]; + index = 5; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -155913,24 +186082,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); obj45.Steps = list67; reference45 = obj45; - ref QuestSequence reference46 = ref span20[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj46.Steps = list68; reference46 = obj46; - ref QuestSequence reference47 = ref span20[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -155938,24 +186113,30 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1020511u, new Vector3(143.81628f, 118.1921f, -732.93665f), 620) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020511u, new Vector3(143.81628f, 118.1921f, -732.93665f), 620) { StopDistance = 5f }; obj47.Steps = list69; reference47 = obj47; - ref QuestSequence reference48 = ref span20[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1020512u, new Vector3(35.080444f, 117.831955f, -728.0537f), 620); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020512u, new Vector3(35.080444f, 117.831955f, -728.0537f), 620); obj48.Steps = list70; reference48 = obj48; - ref QuestSequence reference49 = ref span20[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -155963,8 +186144,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span21 = CollectionsMarshal.AsSpan(list71); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.07161f, 13.02367f, -91.94302f), 635) + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.07161f, 13.02367f, -91.94302f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -155980,7 +186162,8 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) { StopDistance = 7f }; @@ -155993,21 +186176,26 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list72; - num = 2; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span22 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference50 = ref span22[0]; + index = 2; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156021,7 +186209,8 @@ public static class AssemblyQuestLoader }; obj50.Steps = list74; reference50 = obj50; - ref QuestSequence reference51 = ref span22[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -156029,7 +186218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020390u, new Vector3(164.2633f, 13.02367f, -88.91437f), 635) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020390u, new Vector3(164.2633f, 13.02367f, -88.91437f), 635) { StopDistance = 5f }; @@ -156042,21 +186233,26 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list76; - num = 5; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span23 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference52 = ref span23[0]; + index = 5; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -156069,7 +186265,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list78; reference52 = obj52; - ref QuestSequence reference53 = ref span23[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -156077,7 +186274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1020342u, new Vector3(-137.86536f, 0.59805053f, -80.27777f), 635) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020342u, new Vector3(-137.86536f, 0.59805053f, -80.27777f), 635) { AethernetShortcut = new AethernetShortcut { @@ -156087,18 +186286,22 @@ public static class AssemblyQuestLoader }; obj53.Steps = list79; reference53 = obj53; - ref QuestSequence reference54 = ref span23[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1020324u, new Vector3(-35.90454f, 18.50759f, 134.14197f), 635); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020324u, new Vector3(-35.90454f, 18.50759f, 134.14197f), 635); obj54.Steps = list80; reference54 = obj54; - ref QuestSequence reference55 = ref span23[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -156106,26 +186309,31 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span24 = CollectionsMarshal.AsSpan(list81); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.21484f, 130f, -503.3509f), 612) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.21484f, 130f, -503.3509f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - span24[1] = new QuestStep(EInteractionType.Interact, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 7f }; obj55.Steps = list81; reference55 = obj55; - ref QuestSequence reference56 = ref span23[4]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) { StopDistance = 5f }; @@ -156138,13 +186346,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span25 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference57 = ref span25[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -156152,7 +186363,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -156166,15 +186379,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list85; reference57 = obj57; - ref QuestSequence reference58 = ref span25[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020399u, new Vector3(-115.80072f, 40.833466f, -37.766113f), 612) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020399u, new Vector3(-115.80072f, 40.833466f, -37.766113f), 612) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -156183,7 +186399,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list86; reference58 = obj58; - ref QuestSequence reference59 = ref span25[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -156191,7 +186408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { StopDistance = 5f }; @@ -156204,21 +186423,26 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list88; - num = 3; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span26 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference60 = ref span26[0]; + index = 3; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156232,7 +186456,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list90; reference60 = obj60; - ref QuestSequence reference61 = ref span26[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -156240,24 +186465,30 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1020411u, new Vector3(50.644653f, 0f, 3.0975342f), 635); + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020411u, new Vector3(50.644653f, 0f, 3.0975342f), 635); obj61.Steps = list91; reference61 = obj61; - ref QuestSequence reference62 = ref span26[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span27 = CollectionsMarshal.AsSpan(list92); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.6558871f, -2.1714334f, -3.1224606f), 635) + index2 = 3; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.6558871f, -2.1714334f, -3.1224606f), 635) { Mount = true }; - span27[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.991734f, -0.5866744f, -14.3459f), 635); - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1020416u, new Vector3(-135.82056f, 0.59805036f, -83.634705f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.991734f, -0.5866744f, -14.3459f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020416u, new Vector3(-135.82056f, 0.59805036f, -83.634705f), 635); obj62.Steps = list92; reference62 = obj62; questRoot15.QuestSequence = list89; @@ -156267,13 +186498,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span28 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference63 = ref span28[0]; + index = 4; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -156281,7 +186515,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020420u, new Vector3(-139.63531f, 0.598051f, -81.498474f), 635) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020420u, new Vector3(-139.63531f, 0.598051f, -81.498474f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156295,18 +186531,22 @@ public static class AssemblyQuestLoader }; obj63.Steps = list95; reference63 = obj63; - ref QuestSequence reference64 = ref span28[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); obj64.Steps = list96; reference64 = obj64; - ref QuestSequence reference65 = ref span28[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -156314,64 +186554,89 @@ public static class AssemblyQuestLoader num2 = 4; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span29 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference66 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference66 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008158u, new Vector3(-110.21594f, 2.2735596f, -72.95343f), 635); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span30 = CollectionsMarshal.AsSpan(list98); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list98; reference66 = questStep; - ref QuestStep reference67 = ref span29[1]; + index2++; + ref QuestStep reference67 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008160u, new Vector3(-133.25708f, 1.8463135f, -56.595703f), 635); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span31 = CollectionsMarshal.AsSpan(list99); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span5 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list99; reference67 = questStep2; - span29[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.45901f, 0.59804773f, -52.17099f), 635) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.45901f, 0.59804773f, -52.17099f), 635) { DisableNavmesh = true }; - ref QuestStep reference68 = ref span29[3]; + index2++; + ref QuestStep reference68 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008159u, new Vector3(-139.23859f, 1.9073486f, -33.707214f), 635); num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span32 = CollectionsMarshal.AsSpan(list100); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list100); + 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); questStep3.CompletionQuestVariablesFlags = list100; reference68 = questStep3; obj65.Steps = list97; reference65 = obj65; - ref QuestSequence reference69 = ref span28[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020422u, new Vector3(-85.923584f, -3.615388E-12f, -18.051514f), 635); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020422u, new Vector3(-85.923584f, -3.615388E-12f, -18.051514f), 635); obj66.Steps = list101; reference69 = obj66; questRoot16.QuestSequence = list94; @@ -156381,13 +186646,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list102; - num = 4; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span33 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference70 = ref span33[0]; + index = 4; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -156395,7 +186663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020431u, new Vector3(-91.233765f, -3.968323E-12f, -19.821533f), 635) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020431u, new Vector3(-91.233765f, -3.968323E-12f, -19.821533f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156409,15 +186679,18 @@ public static class AssemblyQuestLoader }; obj67.Steps = list104; reference70 = obj67; - ref QuestSequence reference71 = ref span33[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { AethernetShortcut = new AethernetShortcut { @@ -156427,7 +186700,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list105; reference71 = obj68; - ref QuestSequence reference72 = ref span33[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -156435,38 +186709,45 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span34 = CollectionsMarshal.AsSpan(list106); - ref QuestStep reference73 = ref span34[0]; + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new QuestId(2655); + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span6 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span6[num3] = new QuestId(2655); skipAetheryteCondition.QuestsCompleted = list107; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj70.SkipConditions = skipConditions; obj70.PickUpQuestId = new QuestId(2655); reference73 = obj70; - span34[1] = new QuestStep(EInteractionType.Interact, 1020432u, new Vector3(-612.3904f, 130.1009f, -481.68158f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020432u, new Vector3(-612.3904f, 130.1009f, -481.68158f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj69.Steps = list106; reference72 = obj69; - ref QuestSequence reference74 = ref span33[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020525u, new Vector3(-610.2846f, 130f, -501.8845f), 612); + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020525u, new Vector3(-610.2846f, 130f, -501.8845f), 612); obj71.Steps = list108; reference74 = obj71; questRoot17.QuestSequence = list103; @@ -156476,13 +186757,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list109; - num = 3; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span35 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference75 = ref span35[0]; + index = 3; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -156490,7 +186774,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -156503,20 +186789,23 @@ public static class AssemblyQuestLoader }; obj72.Steps = list111; reference75 = obj72; - ref QuestSequence reference76 = ref span35[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + index2 = 2; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { PickUpQuestId = new QuestId(2661) }; - span36[1] = new QuestStep(EInteractionType.Interact, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -156527,7 +186816,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list112; reference76 = obj73; - ref QuestSequence reference77 = ref span35[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -156535,7 +186825,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); obj74.Steps = list113; reference77 = obj74; questRoot18.QuestSequence = list110; @@ -156545,24 +186837,30 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span37 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference78 = ref span37[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); obj75.Steps = list116; reference78 = obj75; - ref QuestSequence reference79 = ref span37[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -156570,70 +186868,96 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj76.Steps = list117; reference79 = obj76; - ref QuestSequence reference80 = ref span37[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span38 = CollectionsMarshal.AsSpan(list118); - span38[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 4; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - ref QuestStep reference81 = ref span38[1]; + num2++; + ref QuestStep reference81 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1020499u, new Vector3(-7.7058716f, 0.009977884f, 6.881775f), 351); num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span39 = CollectionsMarshal.AsSpan(list119); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list119); + 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); questStep4.CompletionQuestVariablesFlags = list119; reference81 = questStep4; - ref QuestStep reference82 = ref span38[2]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1020529u, new Vector3(6.6071167f, 0f, -8.46875f), 351); - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span40 = CollectionsMarshal.AsSpan(list120); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + span5 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list120; reference82 = questStep5; - ref QuestStep reference83 = ref span38[3]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1020528u, new Vector3(34.10388f, -1f, 1.4190674f), 351); num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span41 = CollectionsMarshal.AsSpan(list121); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list121); + 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); questStep6.CompletionQuestVariablesFlags = list121; reference83 = questStep6; obj77.Steps = list118; reference80 = obj77; - ref QuestSequence reference84 = ref span37[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -156641,12 +186965,14 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span42 = CollectionsMarshal.AsSpan(list122); - span42[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156); obj78.Steps = list122; reference84 = obj78; questRoot19.QuestSequence = list115; @@ -156656,21 +186982,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list123; - num = 7; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span43 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference85 = ref span43[0]; + index = 6; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -156683,7 +187014,8 @@ public static class AssemblyQuestLoader }; obj79.Steps = list125; reference85 = obj79; - ref QuestSequence reference86 = ref span43[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -156691,7 +187023,9 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -156702,23 +187036,28 @@ public static class AssemblyQuestLoader }; obj80.Steps = list126; reference86 = obj80; - ref QuestSequence reference87 = ref span43[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list127)[0]; + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Interact, 1020442u, new Vector3(-357.65625f, 8.000015f, 45.822754f), 129) { StopDistance = 7f }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span7 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA139_02469_EVENTAREA_WARP_YESNO_TITLE") @@ -156727,7 +187066,8 @@ public static class AssemblyQuestLoader reference88 = obj82; obj81.Steps = list127; reference87 = obj81; - ref QuestSequence reference89 = ref span43[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -156735,18 +187075,23 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1020447u, new Vector3(5.0201416f, 21.347214f, -39.07837f), 680); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020447u, new Vector3(5.0201416f, 21.347214f, -39.07837f), 680); obj83.Steps = list129; reference89 = obj83; - ref QuestSequence reference90 = ref span43[4]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Duty, null, null, 680) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 680) { DutyOptions = new DutyOptions { @@ -156756,11 +187101,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list130; reference90 = obj84; - span43[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference91 = ref span43[6]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -156768,7 +187110,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020454u, new Vector3(-123.09454f, -6.9999976f, -58.884644f), 628) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020454u, new Vector3(-123.09454f, -6.9999976f, -58.884644f), 628) { StopDistance = 6f }; @@ -156781,27 +187125,33 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list132; - num = 3; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span44 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference92 = ref span44[0]; + index = 3; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020450u, new Vector3(-124.52893f, -6.9999976f, -55.832825f), 628) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020450u, new Vector3(-124.52893f, -6.9999976f, -55.832825f), 628) { StopDistance = 6f }; obj86.Steps = list134; reference92 = obj86; - ref QuestSequence reference93 = ref span44[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -156809,30 +187159,36 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1020455u, new Vector3(-63.34027f, -2.711526f, -58.396362f), 628) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020455u, new Vector3(-63.34027f, -2.711526f, -58.396362f), 628) { StopDistance = 5f }; obj87.Steps = list135; reference93 = obj87; - ref QuestSequence reference94 = ref span44[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span45 = CollectionsMarshal.AsSpan(list136); - span45[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2 = 3; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeShiokazeHostelry }; - span45[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) { Aetheryte = EAetheryteLocation.Kugane }; - span45[2] = new QuestStep(EInteractionType.CompleteQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628); obj88.Steps = list136; reference94 = obj88; questRoot21.QuestSequence = list133; @@ -156842,13 +187198,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list137; - num = 4; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span46 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference95 = ref span46[0]; + index = 4; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -156856,7 +187215,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -156869,18 +187230,22 @@ public static class AssemblyQuestLoader }; obj89.Steps = list139; reference95 = obj89; - ref QuestSequence reference96 = ref span46[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1020461u, new Vector3(24.582275f, 4f, 68.28406f), 628); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020461u, new Vector3(24.582275f, 4f, 68.28406f), 628); obj90.Steps = list140; reference96 = obj90; - ref QuestSequence reference97 = ref span46[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -156888,23 +187253,28 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span47 = CollectionsMarshal.AsSpan(list141); - span47[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeMarkets }; - span47[1] = new QuestStep(EInteractionType.Interact, 1022359u, new Vector3(88.12085f, 4f, 69.7489f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022359u, new Vector3(88.12085f, 4f, 69.7489f), 628); obj91.Steps = list141; reference97 = obj91; - ref QuestSequence reference98 = ref span46[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628); obj92.Steps = list142; reference98 = obj92; questRoot22.QuestSequence = list138; @@ -156914,13 +187284,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span48 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference99 = ref span48[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -156928,7 +187301,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -156941,23 +187316,27 @@ public static class AssemblyQuestLoader }; obj93.Steps = list145; reference99 = obj93; - ref QuestSequence reference100 = ref span48[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span49 = CollectionsMarshal.AsSpan(list146); - span49[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRubyBazaar }; - span49[1] = new QuestStep(EInteractionType.Interact, 1020480u, new Vector3(150.80493f, 14.7757225f, 92.454346f), 628); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020480u, new Vector3(150.80493f, 14.7757225f, 92.454346f), 628); obj94.Steps = list146; reference100 = obj94; - ref QuestSequence reference101 = ref span48[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -156965,7 +187344,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) { StopDistance = 7f }; @@ -156978,27 +187359,33 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list148; - num = 7; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span50 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference102 = ref span50[0]; + index = 7; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) { StopDistance = 7f }; obj96.Steps = list150; reference102 = obj96; - ref QuestSequence reference103 = ref span50[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -157006,24 +187393,30 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1022086u, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022086u, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628); obj97.Steps = list151; reference103 = obj97; - ref QuestSequence reference104 = ref span50[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628) { ItemId = 2002099u }; obj98.Steps = list152; reference104 = obj98; - ref QuestSequence reference105 = ref span50[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -157031,8 +187424,9 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span51 = CollectionsMarshal.AsSpan(list153); - span51[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRakuzaDistrict, AethernetShortcut = new AethernetShortcut @@ -157041,22 +187435,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - span51[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeBokairoInn }; - span51[2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628); obj99.Steps = list153; reference105 = obj99; - ref QuestSequence reference106 = ref span50[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) { AethernetShortcut = new AethernetShortcut { @@ -157066,7 +187465,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list154; reference106 = obj100; - ref QuestSequence reference107 = ref span50[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 5 @@ -157074,8 +187474,9 @@ public static class AssemblyQuestLoader num2 = 3; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span52 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference108 = ref span52[0]; + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1020471u, new Vector3(-81.83417f, -3f, 34.50061f), 628) { AethernetShortcut = new AethernetShortcut @@ -157087,55 +187488,77 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span53 = CollectionsMarshal.AsSpan(list156); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list156); + 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); obj102.CompletionQuestVariablesFlags = list156; reference108 = obj102; - ref QuestStep reference109 = ref span52[1]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1020469u, new Vector3(-108.50696f, -5.999997f, 72.098755f), 628); - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span54 = CollectionsMarshal.AsSpan(list157); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + span5 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list157; reference109 = questStep7; - ref QuestStep reference110 = ref span52[2]; + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1020470u, new Vector3(-158.64807f, 4.000002f, 86.96118f), 628); num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span55 = CollectionsMarshal.AsSpan(list158); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list158); + 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); questStep8.CompletionQuestVariablesFlags = list158; reference110 = questStep8; obj101.Steps = list155; reference107 = obj101; - ref QuestSequence reference111 = ref span50[6]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span56 = CollectionsMarshal.AsSpan(list159); - span56[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) + index2 = 6; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -157144,24 +187567,29 @@ public static class AssemblyQuestLoader StopDistance = 0.5f } }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) { DisableNavmesh = true }; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) { DisableNavmesh = true }; - span56[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { DisableNavmesh = true, AethernetShard = EAetheryteLocation.KuganePier1 }; - span56[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeThavnairianConsulate }; - span56[5] = new QuestStep(EInteractionType.CompleteQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) { AethernetShortcut = new AethernetShortcut { @@ -157178,13 +187606,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list160; - num = 7; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span57 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference112 = ref span57[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -157192,7 +187623,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -157205,18 +187638,22 @@ public static class AssemblyQuestLoader }; obj104.Steps = list162; reference112 = obj104; - ref QuestSequence reference113 = ref span57[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1020473u, new Vector3(-34.65332f, 14.001162f, -46.616333f), 628); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020473u, new Vector3(-34.65332f, 14.001162f, -46.616333f), 628); obj105.Steps = list163; reference113 = obj105; - ref QuestSequence reference114 = ref span57[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -157224,8 +187661,9 @@ public static class AssemblyQuestLoader num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span58 = CollectionsMarshal.AsSpan(list164); - span58[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -157234,21 +187672,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span58[1] = new QuestStep(EInteractionType.Interact, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639); obj106.Steps = list164; reference114 = obj106; - ref QuestSequence reference115 = ref span57[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1020468u, new Vector3(-0.9309082f, 0.024139475f, -0.13739014f), 639); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020468u, new Vector3(-0.9309082f, 0.024139475f, -0.13739014f), 639); obj107.Steps = list165; reference115 = obj107; - ref QuestSequence reference116 = ref span57[4]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -157256,12 +187699,14 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span59 = CollectionsMarshal.AsSpan(list166); - span59[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span59[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020475u, new Vector3(-52.140076f, 16.75975f, -6.729248f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020475u, new Vector3(-52.140076f, 16.75975f, -6.729248f), 628) { AethernetShortcut = new AethernetShortcut { @@ -157275,19 +187720,18 @@ public static class AssemblyQuestLoader }; obj108.Steps = list166; reference116 = obj108; - span57[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference117 = ref span57[6]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); obj109.Steps = list167; reference117 = obj109; questRoot25.QuestSequence = list161; @@ -157297,13 +187741,16 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list168; - num = 7; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span60 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference118 = ref span60[0]; + index = 7; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -157311,28 +187758,35 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); obj110.Steps = list170; reference118 = obj110; - span60[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference119 = ref span60[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1020464u, new Vector3(0.045776367f, 0f, -2.3041382f), 639) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020464u, new Vector3(0.045776367f, 0f, -2.3041382f), 639) { StopDistance = 7f }; obj111.Steps = list171; reference119 = obj111; - ref QuestSequence reference120 = ref span60[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -157340,12 +187794,14 @@ public static class AssemblyQuestLoader num2 = 3; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span61 = CollectionsMarshal.AsSpan(list172); - span61[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span61[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeSekiseigumiBarracks, AethernetShortcut = new AethernetShortcut @@ -157354,21 +187810,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - span61[2] = new QuestStep(EInteractionType.Interact, 1020481u, new Vector3(125.596924f, 14.804411f, -102.861084f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020481u, new Vector3(125.596924f, 14.804411f, -102.861084f), 628); obj112.Steps = list172; reference120 = obj112; - ref QuestSequence reference121 = ref span60[4]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2007910u, new Vector3(125.322266f, 14.358704f, -100.48071f), 628); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007910u, new Vector3(125.322266f, 14.358704f, -100.48071f), 628); obj113.Steps = list173; reference121 = obj113; - ref QuestSequence reference122 = ref span60[5]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 @@ -157376,18 +187837,23 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2008333u, new Vector3(125.41394f, 14.358704f, -100.51117f), 628); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008333u, new Vector3(125.41394f, 14.358704f, -100.51117f), 628); obj114.Steps = list174; reference122 = obj114; - ref QuestSequence reference123 = ref span60[6]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020483u, new Vector3(127.79431f, 14.650923f, -101.701416f), 628) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020483u, new Vector3(127.79431f, 14.650923f, -101.701416f), 628) { StopDistance = 7f }; @@ -157400,13 +187866,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list176; - num = 4; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span62 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference124 = ref span62[0]; + index = 4; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -157414,7 +187883,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020484u, new Vector3(126.57361f, 14.054269f, -99.47363f), 628) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020484u, new Vector3(126.57361f, 14.054269f, -99.47363f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -157428,15 +187899,18 @@ public static class AssemblyQuestLoader }; obj116.Steps = list178; reference124 = obj116; - ref QuestSequence reference125 = ref span62[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -157447,7 +187921,8 @@ public static class AssemblyQuestLoader }; obj117.Steps = list179; reference125 = obj117; - ref QuestSequence reference126 = ref span62[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -157455,7 +187930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference127 = ref span3[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1020485u, new Vector3(-124.1322f, -6.999998f, -58.51837f), 628) { AethernetShortcut = new AethernetShortcut @@ -157464,10 +187941,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + num4 = 1; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + span7 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA207_02476_Q1_000_000"), @@ -157477,15 +187956,18 @@ public static class AssemblyQuestLoader reference127 = obj119; obj118.Steps = list180; reference126 = obj118; - ref QuestSequence reference128 = ref span62[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) { StopDistance = 7f }; @@ -157498,13 +187980,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "JerryWester"; questRoot28.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span63 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference129 = ref span63[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -157512,24 +187997,30 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) { StopDistance = 7f }; obj121.Steps = list185; reference129 = obj121; - ref QuestSequence reference130 = ref span63[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1019893u, new Vector3(736.1714f, -0.600044f, 822.96484f), 613); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019893u, new Vector3(736.1714f, -0.600044f, 822.96484f), 613); obj122.Steps = list186; reference130 = obj122; - ref QuestSequence reference131 = ref span63[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -157537,20 +188028,25 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span64 = CollectionsMarshal.AsSpan(list187); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.744f, -0.41014904f, 835.82776f), 613); - span64[1] = new QuestStep(EInteractionType.Interact, 1019896u, new Vector3(560.54016f, 0.44452444f, 828.21387f), 613); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.744f, -0.41014904f, 835.82776f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019896u, new Vector3(560.54016f, 0.44452444f, 828.21387f), 613); obj123.Steps = list187; reference131 = obj123; - ref QuestSequence reference132 = ref span63[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); obj124.Steps = list188; reference132 = obj124; questRoot28.QuestSequence = list184; @@ -157560,13 +188056,16 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list189); + index = 0; + span[index] = "JerryWester"; questRoot29.Author = list189; - num = 4; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span65 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference133 = ref span65[0]; + index = 4; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + span2 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -157574,31 +188073,38 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); obj125.Steps = list191; reference133 = obj125; - ref QuestSequence reference134 = ref span65[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span66 = CollectionsMarshal.AsSpan(list192); - span66[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007995u, new Vector3(423.54468f, 15.823547f, 801.541f), 613) + index2 = 3; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007995u, new Vector3(423.54468f, 15.823547f, 801.541f), 613) { AetherCurrentId = 2818178u }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(375.51163f, 9.2976055f, 788.4051f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(375.51163f, 9.2976055f, 788.4051f), 613) { DisableNavmesh = true, Mount = true }; - span66[2] = new QuestStep(EInteractionType.Interact, 2007848u, new Vector3(150.46924f, 1.2054443f, 551.9645f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007848u, new Vector3(150.46924f, 1.2054443f, 551.9645f), 613); obj126.Steps = list192; reference134 = obj126; - ref QuestSequence reference135 = ref span65[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -157606,22 +188112,26 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1019912u, new Vector3(116.105835f, -0.5f, 499.32092f), 613) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019912u, new Vector3(116.105835f, -0.5f, 499.32092f), 613) { StopDistance = 7f }; obj127.Steps = list193; reference135 = obj127; - ref QuestSequence reference136 = ref span65[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span67 = CollectionsMarshal.AsSpan(list194); - span67[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(377.86084f, 10.638865f, 792.4622f), 613) + index2 = 2; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(377.86084f, 10.638865f, 792.4622f), 613) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -157629,7 +188139,8 @@ public static class AssemblyQuestLoader Position = new Vector3(384.9748f, 14.661837f, 793.96063f) } }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); obj128.Steps = list194; reference136 = obj128; questRoot29.QuestSequence = list190; @@ -157639,13 +188150,16 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "JerryWester"; questRoot30.Author = list195; - num = 9; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span68 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference137 = ref span68[0]; + index = 9; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -157653,21 +188167,27 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); obj129.Steps = list197; reference137 = obj129; - ref QuestSequence reference138 = ref span68[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1023683u, new Vector3(466.88025f, 30.398874f, 792.813f), 613); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023683u, new Vector3(466.88025f, 30.398874f, 792.813f), 613); obj130.Steps = list198; reference138 = obj130; - ref QuestSequence reference139 = ref span68[2]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -157675,18 +188195,23 @@ public static class AssemblyQuestLoader num2 = 3; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span69 = CollectionsMarshal.AsSpan(list199); - span69[0] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613) + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613) { PickUpQuestId = new QuestId(2673) }; - span69[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.3004f, 0.94003797f, 833.7598f), 613); - ref QuestStep reference140 = ref span69[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.3004f, 0.94003797f, 833.7598f), 613); + index2++; + ref QuestStep reference140 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1019915u, new Vector3(576.5315f, 0.94003797f, 849.3323f), 613); num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA303_02479_Q1_000_021"), @@ -157696,21 +188221,25 @@ public static class AssemblyQuestLoader reference140 = questStep9; obj131.Steps = list199; reference139 = obj131; - ref QuestSequence reference141 = ref span68[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1019919u, new Vector3(-711.32983f, -71f / (226f * (float)Math.PI), -301.83875f), 613) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019919u, new Vector3(-711.32983f, -71f / (226f * (float)Math.PI), -301.83875f), 613) { StopDistance = 5f }; obj132.Steps = list201; reference141 = obj132; - ref QuestSequence reference142 = ref span68[4]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -157718,26 +188247,32 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1019923u, new Vector3(-742.79395f, 2.129947f, -312.3064f), 613) + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019923u, new Vector3(-742.79395f, 2.129947f, -312.3064f), 613) { StopDistance = 5f }; obj133.Steps = list202; reference142 = obj133; - ref QuestSequence reference143 = ref span68[5]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span70 = CollectionsMarshal.AsSpan(list203); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-462.84192f, -0.3000002f, -533.4066f), 613); - span70[1] = new QuestStep(EInteractionType.Interact, 1019925u, new Vector3(-423.78882f, 3.201082f, -545.89154f), 613); + index2 = 2; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-462.84192f, -0.3000002f, -533.4066f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019925u, new Vector3(-423.78882f, 3.201082f, -545.89154f), 613); obj134.Steps = list203; reference143 = obj134; - ref QuestSequence reference144 = ref span68[6]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 6 @@ -157745,31 +188280,39 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list204)[0]; + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference145 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.89062f, 1.4498298f, -547.5498f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 8029u; + num4 = 1; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + span4 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span4[num3] = 8029u; obj136.KillEnemyDataIds = list205; reference145 = obj136; obj135.Steps = list204; reference144 = obj135; - ref QuestSequence reference146 = ref span68[7]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1019928u, new Vector3(-228.93109f, 0.39421302f, -530.44934f), 613); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019928u, new Vector3(-228.93109f, 0.39421302f, -530.44934f), 613); obj137.Steps = list206; reference146 = obj137; - ref QuestSequence reference147 = ref span68[8]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -157777,7 +188320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019930u, new Vector3(-58.335266f, 1.9963632f, -597.0703f), 613); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019930u, new Vector3(-58.335266f, 1.9963632f, -597.0703f), 613); obj138.Steps = list207; reference147 = obj138; questRoot30.QuestSequence = list196; @@ -157787,27 +188332,33 @@ public static class AssemblyQuestLoader num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list208); + index = 0; + span[index] = "JerryWester"; questRoot31.Author = list208; - num = 6; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span71 = CollectionsMarshal.AsSpan(list209); - ref QuestSequence reference148 = ref span71[0]; + index = 6; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + span2 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019929u, new Vector3(-57.724915f, 2.0040545f, -598.2605f), 613) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019929u, new Vector3(-57.724915f, 2.0040545f, -598.2605f), 613) { StopDistance = 5f }; obj139.Steps = list210; reference148 = obj139; - ref QuestSequence reference149 = ref span71[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -157815,23 +188366,28 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1019931u, new Vector3(54.703613f, 2.4445753f, -595.4528f), 613); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019931u, new Vector3(54.703613f, 2.4445753f, -595.4528f), 613); obj140.Steps = list211; reference149 = obj140; - ref QuestSequence reference150 = ref span71[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span72 = CollectionsMarshal.AsSpan(list212); - span72[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) + index2 = 5; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) { Aetheryte = EAetheryteLocation.RubySeaOnokoro }; - span72[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.867485f, 25.111027f, -634.323f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.867485f, 25.111027f, -634.323f), 613) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -157839,11 +188395,13 @@ public static class AssemblyQuestLoader Position = new Vector3(20.556915f, 26.25455f, -633.04f) } }; - span72[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007999u, new Vector3(21.286316f, 24.002441f, -623.621f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007999u, new Vector3(21.286316f, 24.002441f, -623.621f), 613) { AetherCurrentId = 2818182u }; - span72[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.3128f, 26.236794f, -629.7924f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.3128f, 26.236794f, -629.7924f), 613) { StopDistance = 0.25f, Mount = true, @@ -157852,10 +188410,12 @@ public static class AssemblyQuestLoader Position = new Vector3(20.867485f, 25.111027f, -634.323f) } }; - span72[4] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); obj141.Steps = list212; reference150 = obj141; - ref QuestSequence reference151 = ref span71[3]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -157863,84 +188423,116 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1019938u, new Vector3(68.46716f, 25.007832f, -643.8239f), 613) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019938u, new Vector3(68.46716f, 25.007832f, -643.8239f), 613) { Mount = true }; obj142.Steps = list213; reference151 = obj142; - ref QuestSequence reference152 = ref span71[4]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span73 = CollectionsMarshal.AsSpan(list214); - ref QuestStep reference153 = ref span73[0]; + index2 = 4; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref QuestStep reference153 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2007852u, new Vector3(109.17822f, 2.670288f, -619.95886f), 613); num3 = 6; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span74 = CollectionsMarshal.AsSpan(list215); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list215); + 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); questStep10.CompletionQuestVariablesFlags = list215; reference153 = questStep10; - ref QuestStep reference154 = ref span73[1]; + num2++; + ref QuestStep reference154 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(28.796398f, 1.1177638f, -561.9825f), 613); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span75 = CollectionsMarshal.AsSpan(list216); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + span5 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list216; skipConditions2.StepIf = skipStepConditions; questStep11.SkipConditions = skipConditions2; reference154 = questStep11; - ref QuestStep reference155 = ref span73[2]; + num2++; + ref QuestStep reference155 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1021508u, new Vector3(13.565186f, 5.3493934f, -482.87177f), 613); num3 = 6; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span76 = CollectionsMarshal.AsSpan(list217); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list217); + 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); questStep12.CompletionQuestVariablesFlags = list217; reference155 = questStep12; - ref QuestStep reference156 = ref span73[3]; + num2++; + ref QuestStep reference156 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2007854u, new Vector3(-107.74402f, 2.1209717f, -521.32446f), 613); - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span77 = CollectionsMarshal.AsSpan(list218); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list218 = new List(num4); + CollectionsMarshal.SetCount(list218, num4); + span5 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list218; reference156 = questStep13; obj143.Steps = list214; reference152 = obj143; - ref QuestSequence reference157 = ref span71[5]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -157948,14 +188540,18 @@ public static class AssemblyQuestLoader num2 = 4; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span78 = CollectionsMarshal.AsSpan(list219); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.59895f, 0.75750256f, -577.81134f), 613); - span78[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.88596f, 2.0565174f, -591.9783f), 613); - span78[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.516483f, 8.753822f, -612.76074f), 613) + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.59895f, 0.75750256f, -577.81134f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.88596f, 2.0565174f, -591.9783f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.516483f, 8.753822f, -612.76074f), 613) { DisableNavmesh = true }; - span78[3] = new QuestStep(EInteractionType.CompleteQuest, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613); obj144.Steps = list219; reference157 = obj144; questRoot31.QuestSequence = list209; @@ -157965,21 +188561,26 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list220); + index = 0; + span[index] = "JerryWester"; questRoot32.Author = list220; - num = 7; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span79 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference158 = ref span79[0]; + index = 7; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + span2 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021511u, new Vector3(31.3573f, 3.245383f, -602.74664f), 613) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021511u, new Vector3(31.3573f, 3.245383f, -602.74664f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -157992,7 +188593,8 @@ public static class AssemblyQuestLoader }; obj145.Steps = list222; reference158 = obj145; - ref QuestSequence reference159 = ref span79[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -158000,22 +188602,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2007911u, new Vector3(33.98181f, 4.1046753f, -603.87585f), 613) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007911u, new Vector3(33.98181f, 4.1046753f, -603.87585f), 613) { StopDistance = 4f }; obj146.Steps = list223; reference159 = obj146; - ref QuestSequence reference160 = ref span79[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span80 = CollectionsMarshal.AsSpan(list224); - ref QuestStep reference161 = ref span80[0]; + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + ref QuestStep reference161 = ref span3[num2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2007912u, new Vector3(138.10938f, 0.9613037f, -688.1666f), 613) { ItemId = 2002093u, @@ -158024,21 +188630,30 @@ public static class AssemblyQuestLoader num3 = 1; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = 6676u; + span4 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span4[num4] = 6676u; obj148.KillEnemyDataIds = list225; - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span81 = CollectionsMarshal.AsSpan(list226); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + span5 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list226; reference161 = obj148; - ref QuestStep reference162 = ref span80[1]; + num2++; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2007913u, new Vector3(256.21423f, -0.015319824f, -673.4874f), 613) { ItemId = 2002093u, @@ -158047,23 +188662,32 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 6676u; + span4 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span4[num4] = 6676u; obj149.KillEnemyDataIds = list227; - num3 = 6; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span82 = CollectionsMarshal.AsSpan(list228); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span5 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list228; reference162 = obj149; obj147.Steps = list224; reference160 = obj147; - ref QuestSequence reference163 = ref span79[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -158071,7 +188695,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list229)[0]; + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + ref QuestStep reference164 = ref span3[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(446.98648f, 9.27001f, -657.7555f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -158079,26 +188705,32 @@ public static class AssemblyQuestLoader num3 = 1; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 6618u; + span4 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span4[num4] = 6618u; obj151.KillEnemyDataIds = list230; reference164 = obj151; obj150.Steps = list229; reference163 = obj150; - ref QuestSequence reference165 = ref span79[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1019946u, new Vector3(449.39343f, 9.2068815f, -661.21924f), 613) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019946u, new Vector3(449.39343f, 9.2068815f, -661.21924f), 613) { StopDistance = 7f }; obj152.Steps = list231; reference165 = obj152; - ref QuestSequence reference166 = ref span79[5]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 5 @@ -158106,21 +188738,26 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj153.Steps = list232; reference166 = obj153; - ref QuestSequence reference167 = ref span79[6]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); obj154.Steps = list233; reference167 = obj154; questRoot32.QuestSequence = list221; @@ -158130,13 +188767,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "JerryWester"; questRoot33.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span83 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference168 = ref span83[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -158144,7 +188784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -158157,23 +188799,27 @@ public static class AssemblyQuestLoader }; obj155.Steps = list236; reference168 = obj155; - ref QuestSequence reference169 = ref span83[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - Span span84 = CollectionsMarshal.AsSpan(list237); - span84[0] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) + index2 = 2; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) { PickUpQuestId = new QuestId(2687) }; - span84[1] = new QuestStep(EInteractionType.Interact, 1019951u, new Vector3(152.6665f, 1.1855946f, -500.3586f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019951u, new Vector3(152.6665f, 1.1855946f, -500.3586f), 613); obj156.Steps = list237; reference169 = obj156; - ref QuestSequence reference170 = ref span83[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -158181,33 +188827,41 @@ public static class AssemblyQuestLoader num2 = 3; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span85 = CollectionsMarshal.AsSpan(list238); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.34975f, -0.60327315f, -494.75882f), 613) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.34975f, -0.60327315f, -494.75882f), 613) { DisableNavmesh = true }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.52386f, -0.2066946f, -264.25665f), 613); - span85[2] = new QuestStep(EInteractionType.Interact, 1019952u, new Vector3(732.63135f, 3.4147437f, -237.72034f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.52386f, -0.2066946f, -264.25665f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019952u, new Vector3(732.63135f, 3.4147437f, -237.72034f), 613); obj157.Steps = list238; reference170 = obj157; - ref QuestSequence reference171 = ref span83[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span86 = CollectionsMarshal.AsSpan(list239); - span86[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008002u, new Vector3(694.7584f, 1.9073486f, -53.48291f), 613) + index2 = 3; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008002u, new Vector3(694.7584f, 1.9073486f, -53.48291f), 613) { AetherCurrentId = 2818185u }; - span86[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(637.34863f, 3.9160664f, -62.50255f), 613); - span86[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(540.77136f, -64.228035f, -173.20897f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(637.34863f, 3.9160664f, -62.50255f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(540.77136f, -64.228035f, -173.20897f), 613); obj158.Steps = list239; reference171 = obj158; - ref QuestSequence reference172 = ref span83[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -158215,7 +188869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019956u, new Vector3(422.11023f, -98.96018f, -223.10223f), 613) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019956u, new Vector3(422.11023f, -98.96018f, -223.10223f), 613) { StopDistance = 5f }; @@ -158228,27 +188884,33 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "JerryWester"; questRoot34.Author = list241; - num = 5; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span87 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference173 = ref span87[0]; + index = 5; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { StopDistance = 7f }; obj160.Steps = list243; reference173 = obj160; - ref QuestSequence reference174 = ref span87[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -158256,21 +188918,27 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj161.Steps = list244; reference174 = obj161; - ref QuestSequence reference175 = ref span87[2]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1019960u, new Vector3(321.3092f, -120.01774f, -248.2185f), 613); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019960u, new Vector3(321.3092f, -120.01774f, -248.2185f), 613); obj162.Steps = list245; reference175 = obj162; - ref QuestSequence reference176 = ref span87[3]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -158278,22 +188946,28 @@ public static class AssemblyQuestLoader num2 = 4; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span88 = CollectionsMarshal.AsSpan(list246); - span88[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) { Aetheryte = EAetheryteLocation.RubySeaTamamizu }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.42303f, -61.394184f, -153.51427f), 613); - span88[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(647.60547f, 3.3050807f, -55.93293f), 613); - ref QuestStep reference177 = ref span88[3]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.42303f, -61.394184f, -153.51427f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(647.60547f, 3.3050807f, -55.93293f), 613); + index2++; + ref QuestStep reference177 = ref span3[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, null, new Vector3(664.2144f, 1.8086157f, -5.028036f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = new ComplexCombatData + num4 = 1; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + Span span8 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 6638u, MinimumKillCount = 1u, @@ -158304,15 +188978,18 @@ public static class AssemblyQuestLoader reference177 = obj164; obj163.Steps = list246; reference176 = obj163; - ref QuestSequence reference178 = ref span87[4]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -158325,13 +189002,16 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list249); + index = 0; + span[index] = "JerryWester"; questRoot35.Author = list249; - num = 3; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span89 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference179 = ref span89[0]; + index = 3; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + span2 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -158339,7 +189019,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, SkipConditions = new SkipConditions @@ -158352,26 +189034,30 @@ public static class AssemblyQuestLoader }; obj166.Steps = list251; reference179 = obj166; - ref QuestSequence reference180 = ref span89[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span90 = CollectionsMarshal.AsSpan(list252); - span90[0] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613) { PickUpQuestId = new QuestId(2693) }; - span90[1] = new QuestStep(EInteractionType.Interact, 1019969u, new Vector3(322.56042f, -120.39043f, -300.5265f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019969u, new Vector3(322.56042f, -120.39043f, -300.5265f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj167.Steps = list252; reference180 = obj167; - ref QuestSequence reference181 = ref span89[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -158379,12 +189065,14 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span91 = CollectionsMarshal.AsSpan(list253); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613) { Mount = false }; @@ -158397,24 +189085,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "JerryWester"; questRoot36.Author = list254; - num = 3; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span92 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference182 = ref span92[0]; + index = 3; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613); obj169.Steps = list256; reference182 = obj169; - ref QuestSequence reference183 = ref span92[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -158422,18 +189116,23 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); obj170.Steps = list257; reference183 = obj170; - ref QuestSequence reference184 = ref span92[2]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613) { Mount = true }; @@ -158446,13 +189145,16 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list259); + index = 0; + span[index] = "JerryWester"; questRoot37.Author = list259; - num = 5; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span93 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference185 = ref span93[0]; + index = 5; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + span2 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -158460,24 +189162,30 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613); + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613); obj172.Steps = list261; reference185 = obj172; - ref QuestSequence reference186 = ref span93[1]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span94 = CollectionsMarshal.AsSpan(list262); - ref QuestStep reference187 = ref span94[0]; + index2 = 3; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference187 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/026/StmBdy001_02632", @@ -158487,17 +189195,20 @@ public static class AssemblyQuestLoader questStep14.DialogueChoices = list263; questStep14.PickUpQuestId = new QuestId(2632); reference187 = questStep14; - span94[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) { RestartNavigationIfCancelled = false }; - span94[2] = new QuestStep(EInteractionType.Interact, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Fly = true }; obj173.Steps = list262; reference186 = obj173; - ref QuestSequence reference188 = ref span93[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -158505,7 +189216,9 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-220.46619f, -193.02971f, 222.901f), 613) + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-220.46619f, -193.02971f, 222.901f), 613) { StopDistance = 1f, Fly = true, @@ -158513,21 +189226,25 @@ public static class AssemblyQuestLoader }; obj174.Steps = list264; reference188 = obj174; - ref QuestSequence reference189 = ref span93[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 2007920u, new Vector3(-220.6607f, -192.49261f, 221.51514f), 613) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007920u, new Vector3(-220.6607f, -192.49261f, 221.51514f), 613) { Mount = false }; obj175.Steps = list265; reference189 = obj175; - ref QuestSequence reference190 = ref span93[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -158535,7 +189252,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Fly = true }; @@ -158548,27 +189267,33 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list267); + index = 0; + span[index] = "JerryWester"; questRoot38.Author = list267; - num = 3; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span95 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference191 = ref span95[0]; + index = 3; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + span2 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Mount = false }; obj177.Steps = list269; reference191 = obj177; - ref QuestSequence reference192 = ref span95[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -158576,21 +189301,26 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj178.Steps = list270; reference192 = obj178; - ref QuestSequence reference193 = ref span95[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613); + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613); obj179.Steps = list271; reference193 = obj179; questRoot38.QuestSequence = list268; @@ -158600,13 +189330,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "JerryWester"; questRoot39.Author = list272; - num = 7; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span96 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference194 = ref span96[0]; + index = 7; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -158614,7 +189347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list274)[0]; + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + ref QuestStep reference195 = ref span3[index2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -158626,10 +189361,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new DialogueChoice + num4 = 1; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + span7 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA312_02488_Q1_000_013"), @@ -158639,26 +189376,30 @@ public static class AssemblyQuestLoader reference195 = obj181; obj180.Steps = list274; reference194 = obj180; - ref QuestSequence reference196 = ref span96[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span97 = CollectionsMarshal.AsSpan(list276); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.05746f, -121.20501f, -314.00232f), 613) + index2 = 2; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.05746f, -121.20501f, -314.00232f), 613) { RestartNavigationIfCancelled = false }; - span97[1] = new QuestStep(EInteractionType.Interact, 1019981u, new Vector3(-470.81714f, -94.80432f, 191.85156f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019981u, new Vector3(-470.81714f, -94.80432f, 191.85156f), 613) { Fly = true }; obj182.Steps = list276; reference196 = obj182; - ref QuestSequence reference197 = ref span96[2]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -158666,21 +189407,26 @@ public static class AssemblyQuestLoader num2 = 5; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span98 = CollectionsMarshal.AsSpan(list277); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-583.7968f, -58.207996f, 244.92668f), 613) + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-583.7968f, -58.207996f, 244.92668f), 613) { Mount = true, Fly = true }; - span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.3086f, 0f, 270.4341f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.3086f, 0f, 270.4341f), 613) { DisableNavmesh = true, Fly = true, RestartNavigationIfCancelled = false }; - span98[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.9208f, -0.3971126f, 261.18878f), 613); - span98[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-721.99646f, 0.08899796f, 248.7757f), 613); - ref QuestStep reference198 = ref span98[4]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.9208f, -0.3971126f, 261.18878f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-721.99646f, 0.08899796f, 248.7757f), 613); + index2++; + ref QuestStep reference198 = ref span3[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-739.8565f, 4.6514797f, 233.82903f), 613) { StopDistance = 0.5f, @@ -158689,39 +189435,48 @@ public static class AssemblyQuestLoader num3 = 2; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - Span span99 = CollectionsMarshal.AsSpan(list278); - span99[0] = 7557u; - span99[1] = 7558u; + span4 = CollectionsMarshal.AsSpan(list278); + num4 = 0; + span4[num4] = 7557u; + num4++; + span4[num4] = 7558u; obj184.KillEnemyDataIds = list278; reference198 = obj184; obj183.Steps = list277; reference197 = obj183; - ref QuestSequence reference199 = ref span96[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list279)[0]; + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.18787f, 6.9741554f, 19.126472f), 613) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span100 = CollectionsMarshal.AsSpan(list280); - span100[0] = 7559u; - span100[1] = 8041u; - span100[2] = 8042u; + num4 = 3; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + span4 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span4[num3] = 7559u; + num3++; + span4[num3] = 8041u; + num3++; + span4[num3] = 8042u; obj186.KillEnemyDataIds = list280; reference200 = obj186; obj185.Steps = list279; reference199 = obj185; - ref QuestSequence reference201 = ref span96[4]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 @@ -158729,26 +189484,32 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1020624u, new Vector3(-740.2304f, 8.312634f, 118.18103f), 613); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020624u, new Vector3(-740.2304f, 8.312634f, 118.18103f), 613); obj187.Steps = list281; reference201 = obj187; - ref QuestSequence reference202 = ref span96[5]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - Span span101 = CollectionsMarshal.AsSpan(list282); - span101[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008004u, new Vector3(-805.7832f, 36.575806f, 235.18726f), 613) + index2 = 2; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008004u, new Vector3(-805.7832f, 36.575806f, 235.18726f), 613) { AetherCurrentId = 2818187u }; - span101[1] = new QuestStep(EInteractionType.Interact, 1019983u, new Vector3(-835.7214f, 51.33433f, 38.986816f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019983u, new Vector3(-835.7214f, 51.33433f, 38.986816f), 613); obj188.Steps = list282; reference202 = obj188; - ref QuestSequence reference203 = ref span96[6]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -158756,7 +189517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); obj189.Steps = list283; reference203 = obj189; questRoot39.QuestSequence = list273; @@ -158766,24 +189529,30 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "JerryWester"; questRoot40.Author = list284; - num = 6; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span102 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference204 = ref span102[0]; + index = 6; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); obj190.Steps = list286; reference204 = obj190; - ref QuestSequence reference205 = ref span102[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -158791,18 +189560,23 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 2007853u, new Vector3(-838.9868f, 52.017944f, 38.010254f), 613); + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007853u, new Vector3(-838.9868f, 52.017944f, 38.010254f), 613); obj191.Steps = list287; reference205 = obj191; - ref QuestSequence reference206 = ref span102[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -158811,11 +189585,13 @@ public static class AssemblyQuestLoader }; obj192.Steps = list288; reference206 = obj192; - span102[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference207 = ref span102[4]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -158823,25 +189599,31 @@ public static class AssemblyQuestLoader num2 = 3; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span103 = CollectionsMarshal.AsSpan(list289); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.66895f, -45.822067f, -272.77194f), 613); - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.9836f, -0.5999986f, -278.578f), 613) + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.66895f, -45.822067f, -272.77194f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.9836f, -0.5999986f, -278.578f), 613) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - span103[2] = new QuestStep(EInteractionType.Interact, 1019987u, new Vector3(-727.657f, 0.3198316f, -316.88416f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019987u, new Vector3(-727.657f, 0.3198316f, -316.88416f), 613); obj193.Steps = list289; reference207 = obj193; - ref QuestSequence reference208 = ref span102[5]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); obj194.Steps = list290; reference208 = obj194; questRoot40.QuestSequence = list285; @@ -158851,13 +189633,16 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list291); + index = 0; + span[index] = "JerryWester"; questRoot41.Author = list291; - num = 3; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span104 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference209 = ref span104[0]; + index = 3; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + span2 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -158865,51 +189650,69 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); obj195.Steps = list293; reference209 = obj195; - ref QuestSequence reference210 = ref span104[1]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span105 = CollectionsMarshal.AsSpan(list294); - ref QuestStep reference211 = ref span105[0]; + index2 = 5; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + ref QuestStep reference211 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.3967f, 7.9621f, -446.48938f), 613); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list295 = new List(num3); CollectionsMarshal.SetCount(list295, num3); - Span span106 = CollectionsMarshal.AsSpan(list295); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list295); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list295; skipConditions3.StepIf = skipStepConditions2; questStep15.SkipConditions = skipConditions3; reference211 = questStep15; - ref QuestStep reference212 = ref span105[1]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1019991u, new Vector3(-807.3701f, 8.49827f, -418.87543f), 613); - num3 = 6; - List list296 = new List(num3); - CollectionsMarshal.SetCount(list296, num3); - Span span107 = CollectionsMarshal.AsSpan(list296); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list296 = new List(num4); + CollectionsMarshal.SetCount(list296, num4); + span5 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list296; reference212 = questStep16; - ref QuestStep reference213 = ref span105[2]; + num2++; + ref QuestStep reference213 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.8525f, 8.05057f, -418.3381f), 613) { Mount = true @@ -158919,51 +189722,72 @@ public static class AssemblyQuestLoader num3 = 6; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - Span span108 = CollectionsMarshal.AsSpan(list297); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list297); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list297; skipConditions4.StepIf = skipStepConditions3; obj197.SkipConditions = skipConditions4; reference213 = obj197; - ref QuestStep reference214 = ref span105[3]; + num2++; + ref QuestStep reference214 = ref span3[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1019990u, new Vector3(-794.6136f, 4.993313f, -372.67108f), 613) { DisableNavmesh = true }; - num3 = 6; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span109 = CollectionsMarshal.AsSpan(list298); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + span5 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list298; reference214 = obj198; - ref QuestStep reference215 = ref span105[4]; + num2++; + ref QuestStep reference215 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1019992u, new Vector3(-791.2566f, 21.428185f, -480.24725f), 613); num3 = 6; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - Span span110 = CollectionsMarshal.AsSpan(list299); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list299); + 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); questStep17.CompletionQuestVariablesFlags = list299; reference215 = questStep17; obj196.Steps = list294; reference210 = obj196; - ref QuestSequence reference216 = ref span104[2]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -158971,7 +189795,9 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019989u, new Vector3(-761.83716f, 4.763445f, -453.4829f), 613); + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019989u, new Vector3(-761.83716f, 4.763445f, -453.4829f), 613); obj199.Steps = list300; reference216 = obj199; questRoot41.QuestSequence = list292; @@ -158981,27 +189807,33 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - CollectionsMarshal.AsSpan(list301)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list301); + index = 0; + span[index] = "JerryWester"; questRoot42.Author = list301; - num = 4; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - Span span111 = CollectionsMarshal.AsSpan(list302); - ref QuestSequence reference217 = ref span111[0]; + index = 4; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + span2 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020186u, new Vector3(-761.7761f, 4.763445f, -460.01373f), 613) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020186u, new Vector3(-761.7761f, 4.763445f, -460.01373f), 613) { StopDistance = 5f }; obj200.Steps = list303; reference217 = obj200; - ref QuestSequence reference218 = ref span111[1]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -159009,25 +189841,31 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) { TargetTerritoryId = (ushort)614, Fly = true }; obj201.Steps = list304; reference218 = obj201; - ref QuestSequence reference219 = ref span111[2]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1019994u, new Vector3(790.4325f, 99.489136f, -290.8523f), 614); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019994u, new Vector3(790.4325f, 99.489136f, -290.8523f), 614); obj202.Steps = list305; reference219 = obj202; - ref QuestSequence reference220 = ref span111[3]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -159035,7 +189873,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); obj203.Steps = list306; reference220 = obj203; questRoot42.QuestSequence = list302; @@ -159045,24 +189885,30 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list307); + index = 0; + span[index] = "JerryWester"; questRoot43.Author = list307; - num = 5; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span112 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference221 = ref span112[0]; + index = 5; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + span2 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); obj204.Steps = list309; reference221 = obj204; - ref QuestSequence reference222 = ref span112[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -159070,21 +189916,27 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 2007834u, new Vector3(487.0526f, 50.461548f, -115.03784f), 614); + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007834u, new Vector3(487.0526f, 50.461548f, -115.03784f), 614); obj205.Steps = list310; reference222 = obj205; - ref QuestSequence reference223 = ref span112[2]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1020000u, new Vector3(507.95752f, 41.742855f, -94.5907f), 614); + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020000u, new Vector3(507.95752f, 41.742855f, -94.5907f), 614); obj206.Steps = list311; reference223 = obj206; - ref QuestSequence reference224 = ref span112[3]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -159092,38 +189944,45 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span113 = CollectionsMarshal.AsSpan(list312); - span113[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) { Aetheryte = EAetheryteLocation.YanxiaNamai }; - span113[1] = new QuestStep(EInteractionType.Interact, 1020016u, new Vector3(414.51123f, -0.30000687f, -276.56976f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020016u, new Vector3(414.51123f, -0.30000687f, -276.56976f), 614); obj207.Steps = list312; reference224 = obj207; - ref QuestSequence reference225 = ref span112[4]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span114 = CollectionsMarshal.AsSpan(list313); - span114[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) + index2 = 4; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) { StopDistance = 0.25f }; - span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) { Fly = true }; - span114[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) { StopDistance = 0.25f, Fly = true, RestartNavigationIfCancelled = false }; - span114[3] = new QuestStep(EInteractionType.CompleteQuest, 1020007u, new Vector3(277.9735f, 3.2627518f, -378.95782f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020007u, new Vector3(277.9735f, 3.2627518f, -378.95782f), 614); obj208.Steps = list313; reference225 = obj208; questRoot43.QuestSequence = list308; @@ -159133,13 +189992,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list314); + index = 0; + span[index] = "JerryWester"; questRoot44.Author = list314; - num = 4; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span115 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference226 = ref span115[0]; + index = 4; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + span2 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -159147,24 +190009,30 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); obj209.Steps = list316; reference226 = obj209; - ref QuestSequence reference227 = ref span115[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj210.Steps = list317; reference227 = obj210; - ref QuestSequence reference228 = ref span115[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -159172,38 +190040,54 @@ public static class AssemblyQuestLoader num2 = 4; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span116 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference229 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + ref QuestStep reference229 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span117 = CollectionsMarshal.AsSpan(list319); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list319 = new List(num4); + CollectionsMarshal.SetCount(list319, num4); + span5 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list319; reference229 = questStep18; - ref QuestStep reference230 = ref span116[1]; + index2++; + ref QuestStep reference230 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1022719u, new Vector3(434.22595f, 68.02851f, -65.171326f), 614); num3 = 6; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - Span span118 = CollectionsMarshal.AsSpan(list320); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list320); + 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); questStep19.CompletionQuestVariablesFlags = list320; - num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice + num4 = 1; + List list321 = new List(num4); + CollectionsMarshal.SetCount(list321, num4); + span7 = CollectionsMarshal.AsSpan(list321); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA317_02493_Q1_100_040"), @@ -159211,48 +190095,65 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list321; reference230 = questStep19; - ref QuestStep reference231 = ref span116[2]; + index2++; + ref QuestStep reference231 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019259u, new Vector3(405.4779f, 67.4601f, -61.539734f), 614); num3 = 6; List list322 = new List(num3); CollectionsMarshal.SetCount(list322, num3); - Span span119 = CollectionsMarshal.AsSpan(list322); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list322); + 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); questStep20.CompletionQuestVariablesFlags = list322; reference231 = questStep20; - ref QuestStep reference232 = ref span116[3]; + index2++; + ref QuestStep reference232 = ref span3[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1020015u, new Vector3(389.2423f, 72.07916f, -68.467285f), 614) { Mount = true }; - num3 = 6; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span120 = CollectionsMarshal.AsSpan(list323); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + span5 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj212.CompletionQuestVariablesFlags = list323; reference232 = obj212; obj211.Steps = list318; reference228 = obj211; - ref QuestSequence reference233 = ref span115[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614); obj213.Steps = list324; reference233 = obj213; questRoot44.QuestSequence = list315; @@ -159262,13 +190163,16 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - CollectionsMarshal.AsSpan(list325)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list325); + index = 0; + span[index] = "JerryWester"; questRoot45.Author = list325; - num = 7; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - Span span121 = CollectionsMarshal.AsSpan(list326); - ref QuestSequence reference234 = ref span121[0]; + index = 7; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + span2 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -159276,7 +190180,9 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -159289,24 +190195,28 @@ public static class AssemblyQuestLoader }; obj214.Steps = list327; reference234 = obj214; - ref QuestSequence reference235 = ref span121[1]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span122 = CollectionsMarshal.AsSpan(list328); - span122[0] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) + index2 = 3; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) { PickUpQuestId = new QuestId(2724) }; - span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) { PickUpQuestId = new QuestId(2728) }; - ref QuestStep reference236 = ref span122[2]; + num2++; + ref QuestStep reference236 = ref span3[num2]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(508.4545f, 83.838875f, 98.54378f), 614) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -159314,12 +190224,15 @@ public static class AssemblyQuestLoader num3 = 1; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = 7560u; + span4 = CollectionsMarshal.AsSpan(list329); + num4 = 0; + span4[num4] = 7560u; obj216.KillEnemyDataIds = list329; reference236 = obj216; obj215.Steps = list328; reference235 = obj215; - ref QuestSequence reference237 = ref span121[2]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 @@ -159327,34 +190240,42 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614) { StopDistance = 7f }; obj217.Steps = list330; reference237 = obj217; - ref QuestSequence reference238 = ref span121[3]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list331)[0]; + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference239 = ref span3[num2]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, 2007836u, new Vector3(370.01587f, 85.52673f, 32.48633f), 614) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = 6685u; + num4 = 1; + List list332 = new List(num4); + CollectionsMarshal.SetCount(list332, num4); + span4 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span4[num3] = 6685u; obj219.KillEnemyDataIds = list332; reference239 = obj219; obj218.Steps = list331; reference238 = obj218; - ref QuestSequence reference240 = ref span121[4]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 @@ -159362,21 +190283,27 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614); + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614); obj220.Steps = list333; reference240 = obj220; - ref QuestSequence reference241 = ref span121[5]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1020019u, new Vector3(208.8197f, 141.52237f, -28.82434f), 614); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020019u, new Vector3(208.8197f, 141.52237f, -28.82434f), 614); obj221.Steps = list334; reference241 = obj221; - ref QuestSequence reference242 = ref span121[6]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue @@ -159384,12 +190311,14 @@ public static class AssemblyQuestLoader num2 = 2; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span123 = CollectionsMarshal.AsSpan(list335); - span123[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008008u, new Vector3(163.5614f, 144.60962f, -11.917358f), 614) + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008008u, new Vector3(163.5614f, 144.60962f, -11.917358f), 614) { AetherCurrentId = 2818196u }; - span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) { Mount = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai @@ -159403,21 +190332,26 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list336); + index = 0; + span[index] = "JerryWester"; questRoot46.Author = list336; - num = 10; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span124 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference243 = ref span124[0]; + index = 10; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + span2 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -159430,7 +190364,8 @@ public static class AssemblyQuestLoader }; obj223.Steps = list338; reference243 = obj223; - ref QuestSequence reference244 = ref span124[1]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 1 @@ -159438,26 +190373,32 @@ public static class AssemblyQuestLoader num2 = 2; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span125 = CollectionsMarshal.AsSpan(list339); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.0395f, 68.028534f, -109.489944f), 614) + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.0395f, 68.028534f, -109.489944f), 614) { Mount = true }; - span125[1] = new QuestStep(EInteractionType.Interact, 2007838u, new Vector3(418.4176f, 68.0094f, -135.4544f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007838u, new Vector3(418.4176f, 68.0094f, -135.4544f), 614); obj224.Steps = list339; reference244 = obj224; - ref QuestSequence reference245 = ref span124[2]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1020022u, new Vector3(418.0514f, 68.0285f, -133.89801f), 614); + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020022u, new Vector3(418.0514f, 68.0285f, -133.89801f), 614); obj225.Steps = list340; reference245 = obj225; - ref QuestSequence reference246 = ref span124[3]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 3 @@ -159465,33 +190406,40 @@ public static class AssemblyQuestLoader num2 = 3; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span126 = CollectionsMarshal.AsSpan(list341); - span126[0] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { PickUpQuestId = new QuestId(2733) }; - span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) { PickUpQuestId = new QuestId(2730) }; - span126[2] = new QuestStep(EInteractionType.Interact, 1020024u, new Vector3(534.2335f, 84.80294f, 111.13135f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020024u, new Vector3(534.2335f, 84.80294f, 111.13135f), 614); obj226.Steps = list341; reference246 = obj226; - ref QuestSequence reference247 = ref span124[4]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Snipe, 1020282u, new Vector3(498.83264f, 78.04988f, 147.23425f), 614) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 1020282u, new Vector3(498.83264f, 78.04988f, 147.23425f), 614) { Comment = "Snipe soldiers" }; obj227.Steps = list342; reference247 = obj227; - ref QuestSequence reference248 = ref span124[5]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 5 @@ -159499,24 +190447,30 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Snipe, 2007835u, new Vector3(535.2406f, 54.48987f, 237.04883f), 614) + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2007835u, new Vector3(535.2406f, 54.48987f, 237.04883f), 614) { Comment = "Snipe soldiers" }; obj228.Steps = list343; reference248 = obj228; - ref QuestSequence reference249 = ref span124[6]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); obj229.Steps = list344; reference249 = obj229; - ref QuestSequence reference250 = ref span124[7]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 7 @@ -159524,24 +190478,30 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Snipe, 2007915u, new Vector3(329.67102f, 32.97461f, 603.2959f), 614) + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2007915u, new Vector3(329.67102f, 32.97461f, 603.2959f), 614) { Comment = "Snipe soldiers" }; obj230.Steps = list345; reference250 = obj230; - ref QuestSequence reference251 = ref span124[8]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); obj231.Steps = list346; reference251 = obj231; - ref QuestSequence reference252 = ref span124[9]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -159549,7 +190509,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020283u, new Vector3(406.27136f, 14.6418705f, 626.1234f), 614); + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020283u, new Vector3(406.27136f, 14.6418705f, 626.1234f), 614); obj232.Steps = list347; reference252 = obj232; questRoot46.QuestSequence = list337; @@ -159559,24 +190521,30 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list348); + index = 0; + span[index] = "JerryWester"; questRoot47.Author = list348; - num = 8; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span127 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference253 = ref span127[0]; + index = 8; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + span2 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023780u, new Vector3(406.21033f, 14.6418705f, 625.9707f), 614); + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023780u, new Vector3(406.21033f, 14.6418705f, 625.9707f), 614); obj233.Steps = list350; reference253 = obj233; - ref QuestSequence reference254 = ref span127[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -159584,21 +190552,27 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2007839u, new Vector3(358.69373f, 22.659607f, 573.69336f), 614); + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007839u, new Vector3(358.69373f, 22.659607f, 573.69336f), 614); obj234.Steps = list351; reference254 = obj234; - ref QuestSequence reference255 = ref span127[2]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); obj235.Steps = list352; reference255 = obj235; - ref QuestSequence reference256 = ref span127[3]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -159606,30 +190580,37 @@ public static class AssemblyQuestLoader num2 = 3; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span128 = CollectionsMarshal.AsSpan(list353); - span128[0] = new QuestStep(EInteractionType.Interact, 1020045u, new Vector3(439.01733f, 14.6418705f, 624.0481f), 614); - span128[1] = new QuestStep(EInteractionType.Interact, 1020044u, new Vector3(438.40686f, 14.6418705f, 622.21704f), 614); - span128[2] = new QuestStep(EInteractionType.Interact, 1020043u, new Vector3(438.4375f, 14.6418705f, 620.35547f), 614) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020045u, new Vector3(439.01733f, 14.6418705f, 624.0481f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020044u, new Vector3(438.40686f, 14.6418705f, 622.21704f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020043u, new Vector3(438.4375f, 14.6418705f, 620.35547f), 614) { StopDistance = 4f }; obj236.Steps = list353; reference256 = obj236; - ref QuestSequence reference257 = ref span127[4]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614) { StopDistance = 4f }; obj237.Steps = list354; reference257 = obj237; - ref QuestSequence reference258 = ref span127[5]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 5 @@ -159637,28 +190618,34 @@ public static class AssemblyQuestLoader num2 = 7; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span129 = CollectionsMarshal.AsSpan(list355); - span129[0] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20596u }; - span129[1] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20597u }; - span129[2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20598u }; - span129[3] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20599u }; - span129[4] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20600u }; - ref QuestStep reference259 = ref span129[5]; + index2++; + ref QuestStep reference259 = ref span3[index2]; QuestStep obj239 = new QuestStep(EInteractionType.Emote, 1020041u, new Vector3(446.73828f, 14.626371f, 705.0431f), 614) { Emote = EEmote.ImperialSalute @@ -159666,48 +190653,65 @@ public static class AssemblyQuestLoader num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span130 = CollectionsMarshal.AsSpan(list356); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list356); + 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); obj239.CompletionQuestVariablesFlags = list356; reference259 = obj239; - ref QuestStep reference260 = ref span129[6]; + index2++; + ref QuestStep reference260 = ref span3[index2]; QuestStep obj240 = new QuestStep(EInteractionType.Emote, 1020040u, new Vector3(436.14856f, 14.6418705f, 706.1721f), 614) { Emote = EEmote.ImperialSalute }; - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span131 = CollectionsMarshal.AsSpan(list357); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + span5 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj240.CompletionQuestVariablesFlags = list357; reference260 = obj240; obj238.Steps = list355; reference258 = obj238; - ref QuestSequence reference261 = ref span127[6]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span132 = CollectionsMarshal.AsSpan(list358); - span132[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 614); - span132[1] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); + index2 = 2; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span3 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); obj241.Steps = list358; reference261 = obj241; - ref QuestSequence reference262 = ref span127[7]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -159715,7 +190719,9 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020029u, new Vector3(457.69434f, 30.001902f, 764.187f), 614); + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020029u, new Vector3(457.69434f, 30.001902f, 764.187f), 614); obj242.Steps = list359; reference262 = obj242; questRoot47.QuestSequence = list349; @@ -159725,24 +190731,30 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list360); + index = 0; + span[index] = "JerryWester"; questRoot48.Author = list360; - num = 9; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span133 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference263 = ref span133[0]; + index = 9; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + span2 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020046u, new Vector3(455.95483f, 29.324865f, 759.6703f), 614); + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020046u, new Vector3(455.95483f, 29.324865f, 759.6703f), 614); obj243.Steps = list362; reference263 = obj243; - ref QuestSequence reference264 = ref span133[1]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -159750,27 +190762,34 @@ public static class AssemblyQuestLoader num2 = 3; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span134 = CollectionsMarshal.AsSpan(list363); - span134[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008011u, new Vector3(457.51123f, 32.36438f, 822.4154f), 614) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008011u, new Vector3(457.51123f, 32.36438f, 822.4154f), 614) { AetherCurrentId = 2818199u }; - span134[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(453.69717f, 14.463846f, 663.386f), 614); - span134[2] = new QuestStep(EInteractionType.Interact, 1020047u, new Vector3(433.9818f, 14.6418705f, 622.76636f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(453.69717f, 14.463846f, 663.386f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020047u, new Vector3(433.9818f, 14.6418705f, 622.76636f), 614); obj244.Steps = list363; reference264 = obj244; - ref QuestSequence reference265 = ref span133[2]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 2007840u, new Vector3(390.6156f, 14.633362f, 685.96924f), 614); + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + span3 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007840u, new Vector3(390.6156f, 14.633362f, 685.96924f), 614); obj245.Steps = list364; reference265 = obj245; - ref QuestSequence reference266 = ref span133[3]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 3 @@ -159778,24 +190797,30 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.UseItem, 1020049u, new Vector3(390.5547f, 14.64187f, 685.9387f), 614) + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1020049u, new Vector3(390.5547f, 14.64187f, 685.9387f), 614) { ItemId = 2002070u }; obj246.Steps = list365; reference266 = obj246; - ref QuestSequence reference267 = ref span133[4]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1020048u, new Vector3(434.5006f, 14.6418705f, 624.567f), 614); + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020048u, new Vector3(434.5006f, 14.6418705f, 624.567f), 614); obj247.Steps = list366; reference267 = obj247; - ref QuestSequence reference268 = ref span133[5]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 5 @@ -159803,24 +190828,30 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Interact, 2007841u, new Vector3(485.37415f, 14.633362f, 742.97705f), 614); + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007841u, new Vector3(485.37415f, 14.633362f, 742.97705f), 614); obj248.Steps = list367; reference268 = obj248; - ref QuestSequence reference269 = ref span133[6]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.UseItem, 1020050u, new Vector3(485.2522f, 14.641862f, 742.97705f), 614) + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1020050u, new Vector3(485.2522f, 14.641862f, 742.97705f), 614) { ItemId = 2002070u }; obj249.Steps = list368; reference269 = obj249; - ref QuestSequence reference270 = ref span133[7]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 7 @@ -159828,34 +190859,41 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1020051u, new Vector3(232.56274f, 1.4025975f, 756.0996f), 614); + span3 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020051u, new Vector3(232.56274f, 1.4025975f, 756.0996f), 614); obj250.Steps = list369; reference270 = obj250; - ref QuestSequence reference271 = ref span133[8]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span135 = CollectionsMarshal.AsSpan(list370); - span135[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) + index2 = 4; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) { Fly = true }; - span135[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) { StopDistance = 0.25f, Fly = true, RestartNavigationIfCancelled = false }; - span135[3] = new QuestStep(EInteractionType.CompleteQuest, 1023787u, new Vector3(278.30933f, 2.9544957f, -378.43903f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023787u, new Vector3(278.30933f, 2.9544957f, -378.43903f), 614); obj251.Steps = list370; reference271 = obj251; questRoot48.QuestSequence = list361; @@ -159865,13 +190903,16 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - CollectionsMarshal.AsSpan(list371)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list371); + index = 0; + span[index] = "JerryWester"; questRoot49.Author = list371; - num = 5; - List list372 = new List(num); - CollectionsMarshal.SetCount(list372, num); - Span span136 = CollectionsMarshal.AsSpan(list372); - ref QuestSequence reference272 = ref span136[0]; + index = 5; + List list372 = new List(index); + CollectionsMarshal.SetCount(list372, index); + span2 = CollectionsMarshal.AsSpan(list372); + num = 0; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 0 @@ -159879,21 +190920,27 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); + span3 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); obj252.Steps = list373; reference272 = obj252; - ref QuestSequence reference273 = ref span136[1]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 2007842u, new Vector3(-245.74658f, 16.922241f, 577.7217f), 614); + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span3 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007842u, new Vector3(-245.74658f, 16.922241f, 577.7217f), 614); obj253.Steps = list374; reference273 = obj253; - ref QuestSequence reference274 = ref span136[2]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 2 @@ -159901,7 +190948,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020056u, new Vector3(-247.91339f, 16.932724f, 577.4165f), 614) + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020056u, new Vector3(-247.91339f, 16.932724f, 577.4165f), 614) { StopDistance = 7f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -159911,19 +190960,23 @@ public static class AssemblyQuestLoader }; obj254.Steps = list375; reference274 = obj254; - span136[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference275 = ref span136[4]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020057u, new Vector3(488.30383f, 7.396728f, 375.14294f), 614); + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020057u, new Vector3(488.30383f, 7.396728f, 375.14294f), 614); obj255.Steps = list376; reference275 = obj255; questRoot49.QuestSequence = list372; @@ -159933,13 +190986,16 @@ public static class AssemblyQuestLoader num = 1; List list377 = new List(num); CollectionsMarshal.SetCount(list377, num); - CollectionsMarshal.AsSpan(list377)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list377); + index = 0; + span[index] = "JerryWester"; questRoot50.Author = list377; - num = 4; - List list378 = new List(num); - CollectionsMarshal.SetCount(list378, num); - Span span137 = CollectionsMarshal.AsSpan(list378); - ref QuestSequence reference276 = ref span137[0]; + index = 4; + List list378 = new List(index); + CollectionsMarshal.SetCount(list378, index); + span2 = CollectionsMarshal.AsSpan(list378); + num = 0; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -159947,27 +191003,33 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020059u, new Vector3(490.19604f, 8.442365f, 373.22034f), 614) + span3 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020059u, new Vector3(490.19604f, 8.442365f, 373.22034f), 614) { StopDistance = 7f }; obj256.Steps = list379; reference276 = obj256; - ref QuestSequence reference277 = ref span137[1]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1020062u, new Vector3(453.4828f, 57.1882f, -146.41034f), 614) + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020062u, new Vector3(453.4828f, 57.1882f, -146.41034f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj257.Steps = list380; reference277 = obj257; - ref QuestSequence reference278 = ref span137[2]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 2 @@ -159975,36 +191037,51 @@ public static class AssemblyQuestLoader num2 = 4; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span138 = CollectionsMarshal.AsSpan(list381); - ref QuestStep reference279 = ref span138[0]; + span3 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + ref QuestStep reference279 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1020064u, new Vector3(443.2898f, 58.814686f, -172.90002f), 614); num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - Span span139 = CollectionsMarshal.AsSpan(list382); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list382); + 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); questStep21.CompletionQuestVariablesFlags = list382; reference279 = questStep21; - ref QuestStep reference280 = ref span138[1]; + index2++; + ref QuestStep reference280 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1020063u, new Vector3(442.83203f, 58.859047f, -171.06891f), 614); - num3 = 6; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - Span span140 = CollectionsMarshal.AsSpan(list383); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + span5 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list383; reference280 = questStep22; - ref QuestStep reference281 = ref span138[2]; + index2++; + ref QuestStep reference281 = ref span3[index2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1020065u, new Vector3(459.25073f, 58.79123f, -187.42657f), 614) { Mount = true @@ -160012,40 +191089,56 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span141 = CollectionsMarshal.AsSpan(list384); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list384); + 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); obj259.CompletionQuestVariablesFlags = list384; reference281 = obj259; - ref QuestStep reference282 = ref span138[3]; + index2++; + ref QuestStep reference282 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1020066u, new Vector3(445.5481f, 68.028534f, -73.56378f), 614); - num3 = 6; - List list385 = new List(num3); - CollectionsMarshal.SetCount(list385, num3); - Span span142 = CollectionsMarshal.AsSpan(list385); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list385 = new List(num4); + CollectionsMarshal.SetCount(list385, num4); + span5 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list385; reference282 = questStep23; obj258.Steps = list381; reference278 = obj258; - ref QuestSequence reference283 = ref span137[3]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020067u, new Vector3(446.67737f, 68.028534f, -74.47931f), 614); + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + span3 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020067u, new Vector3(446.67737f, 68.028534f, -74.47931f), 614); obj260.Steps = list386; reference283 = obj260; questRoot50.QuestSequence = list378; @@ -160059,13 +191152,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -160073,87 +191169,119 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 4; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1019355u, new Vector3(556.8779f, -19.505642f, 397.14648f), 622); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) { StopDistance = 7f }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list6; reference4 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.51385f, -19.505655f, 355.95413f), 622); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list7; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference5 = questStep2; - ref QuestStep reference6 = ref span2[3]; + num2++; + ref QuestStep reference6 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1019349u, new Vector3(543.93823f, -19.505642f, 354.08557f), 622) { StopDistance = 7f }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span4 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list8; reference6 = obj4; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference7 = ref span[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -160161,23 +191289,28 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) { Aetheryte = EAetheryteLocation.AzimSteppeReunion }; - span7[1] = new QuestStep(EInteractionType.Interact, 1020275u, new Vector3(540.917f, -19.504309f, 278.0652f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020275u, new Vector3(540.917f, -19.504309f, 278.0652f), 622); obj5.Steps = list9; reference7 = obj5; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Say, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { ChatMessage = new ChatMessage { @@ -160186,7 +191319,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference8 = obj6; - ref QuestSequence reference9 = ref span[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -160194,7 +191328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622); obj7.Steps = list11; reference9 = obj7; questRoot.QuestSequence = list2; @@ -160204,21 +191340,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list12; - num = 3; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span8 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span8[0]; + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -160231,7 +191372,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference10 = obj8; - ref QuestSequence reference11 = ref span8[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -160239,12 +191381,14 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span9 = CollectionsMarshal.AsSpan(list15); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.1567f, -19.505648f, 306.37933f), 622) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.1567f, -19.505648f, 306.37933f), 622) { Mount = true }; - ref QuestStep reference12 = ref span9[1]; + index2++; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, null, new Vector3(395.68478f, -8.147073f, 299.55774f), 622) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -160252,7 +191396,9 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - ref ComplexCombatData reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + Span span5 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + ref ComplexCombatData reference13 = ref span5[num4]; ComplexCombatData obj11 = new ComplexCombatData { DataId = 6626u, @@ -160260,31 +191406,40 @@ public static class AssemblyQuestLoader RewardItemId = 2002204u, RewardItemCount = 2 }; - int num4 = 6; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = null; - span10[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + int num5 = 6; + List list17 = new List(num5); + CollectionsMarshal.SetCount(list17, num5); + span4 = CollectionsMarshal.AsSpan(list17); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; obj11.CompletionQuestVariablesFlags = list17; reference13 = obj11; obj10.ComplexCombatData = list16; reference12 = obj10; obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -160297,13 +191452,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list19; - num = 3; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span11[0]; + index = 3; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -160311,7 +191469,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -160324,23 +191484,27 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference15 = obj13; - ref QuestSequence reference16 = ref span11[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) + index2 = 2; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { PickUpQuestId = new QuestId(2760) }; - span12[1] = new QuestStep(EInteractionType.Interact, 1020279u, new Vector3(592.9198f, 24.918879f, 380.27002f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020279u, new Vector3(592.9198f, 24.918879f, 380.27002f), 622); obj14.Steps = list22; reference16 = obj14; - ref QuestSequence reference17 = ref span11[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -160348,7 +191512,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622); obj15.Steps = list23; reference17 = obj15; questRoot3.QuestSequence = list20; @@ -160358,21 +191524,26 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list24; - num = 4; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span13[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -160385,7 +191556,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list26; reference18 = obj16; - ref QuestSequence reference19 = ref span13[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -160393,21 +191565,27 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1020531u, new Vector3(491.29468f, 8.481642f, -234.48541f), 622); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020531u, new Vector3(491.29468f, 8.481642f, -234.48541f), 622); obj17.Steps = list27; reference19 = obj17; - ref QuestSequence reference20 = ref span13[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj18.Steps = list28; reference20 = obj18; - ref QuestSequence reference21 = ref span13[3]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -160415,7 +191593,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj19.Steps = list29; reference21 = obj19; questRoot4.QuestSequence = list25; @@ -160425,24 +191605,30 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span14 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span14[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj20.Steps = list32; reference22 = obj20; - ref QuestSequence reference23 = ref span14[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -160450,92 +191636,123 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1020548u, new Vector3(416.495f, 42.579082f, -450.12592f), 622); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020548u, new Vector3(416.495f, 42.579082f, -450.12592f), 622); obj21.Steps = list33; reference23 = obj21; - ref QuestSequence reference24 = ref span14[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span15 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference25 = ref span15[0]; + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2008457u, new Vector3(313.52698f, 50.766724f, -456.77887f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 7546u; + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span6 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span6[num3] = 7546u; obj23.KillEnemyDataIds = list35; num3 = 6; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list36; reference25 = obj23; - ref QuestStep reference26 = ref span15[1]; + num2++; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2008456u, new Vector3(224.47546f, 101.27405f, -542.4735f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = 7546u; - span17[1] = 7562u; + num4 = 2; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + span6 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span6[num3] = 7546u; + num3++; + span6[num3] = 7562u; obj24.KillEnemyDataIds = list37; num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list38; reference26 = obj24; - ref QuestStep reference27 = ref span15[2]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2008131u, new Vector3(100.694214f, 116.472046f, -597.7417f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = 7562u; + num4 = 1; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + span6 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span6[num3] = 7562u; obj25.KillEnemyDataIds = list39; num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span19 = CollectionsMarshal.AsSpan(list40); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list40; reference27 = obj25; obj22.Steps = list34; reference24 = obj22; - ref QuestSequence reference28 = ref span14[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -160543,28 +191760,34 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span20 = CollectionsMarshal.AsSpan(list41); - span20[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008017u, new Vector3(231.98291f, 93.36987f, -515.8008f), 622) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008017u, new Vector3(231.98291f, 93.36987f, -515.8008f), 622) { AetherCurrentId = 2818210u }; - span20[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.19914f, 62.795677f, -495.62f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.19914f, 62.795677f, -495.62f), 622) { DisableNavmesh = true, Mount = true }; - span20[2] = new QuestStep(EInteractionType.Interact, 1020547u, new Vector3(418.265f, 42.699287f, -448.53894f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020547u, new Vector3(418.265f, 42.699287f, -448.53894f), 622); obj26.Steps = list41; reference28 = obj26; - ref QuestSequence reference29 = ref span14[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj27.Steps = list42; reference29 = obj27; questRoot5.QuestSequence = list31; @@ -160574,13 +191797,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list43; - num = 7; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span21 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference30 = ref span21[0]; + index = 7; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -160588,21 +191814,27 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj28.Steps = list45; reference30 = obj28; - ref QuestSequence reference31 = ref span21[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); obj29.Steps = list46; reference31 = obj29; - ref QuestSequence reference32 = ref span21[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -160610,77 +191842,109 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); obj30.Steps = list47; reference32 = obj30; - ref QuestSequence reference33 = ref span21[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span22 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference34 = ref span22[0]; + index2 = 4; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008245u, new Vector3(562.0354f, 9.750427f, -297.8103f), 622); - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span23 = CollectionsMarshal.AsSpan(list49); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span4 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list49; reference34 = questStep3; - ref QuestStep reference35 = ref span22[1]; + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2008247u, new Vector3(692.56116f, 3.4942627f, -273.91473f), 622); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span24 = CollectionsMarshal.AsSpan(list50); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list50; reference35 = questStep4; - ref QuestStep reference36 = ref span22[2]; + num2++; + ref QuestStep reference36 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2008248u, new Vector3(729.3048f, 6.301941f, -355.18427f), 622); - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span25 = CollectionsMarshal.AsSpan(list51); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + span4 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list51; reference36 = questStep5; - ref QuestStep reference37 = ref span22[3]; + num2++; + ref QuestStep reference37 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2008246u, new Vector3(641.7792f, 5.996765f, -355.6115f), 622); num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span26 = CollectionsMarshal.AsSpan(list52); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list52; reference37 = questStep6; obj31.Steps = list48; reference33 = obj31; - ref QuestSequence reference38 = ref span21[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -160688,21 +191952,27 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); obj32.Steps = list53; reference38 = obj32; - ref QuestSequence reference39 = ref span21[5]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj33.Steps = list54; reference39 = obj33; - ref QuestSequence reference40 = ref span21[6]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -160710,7 +191980,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); obj34.Steps = list55; reference40 = obj34; questRoot6.QuestSequence = list44; @@ -160720,24 +191992,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span27 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference41 = ref span27[0]; + index = 7; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); obj35.Steps = list58; reference41 = obj35; - ref QuestSequence reference42 = ref span27[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -160745,26 +192023,32 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1020670u, new Vector3(420.4928f, 42.47494f, -439.01733f), 622); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020670u, new Vector3(420.4928f, 42.47494f, -439.01733f), 622); obj36.Steps = list59; reference42 = obj36; - ref QuestSequence reference43 = ref span27[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span28 = CollectionsMarshal.AsSpan(list60); - span28[0] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622) + index2 = 2; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622) { PickUpQuestId = new QuestId(2771) }; - span28[1] = new QuestStep(EInteractionType.Interact, 1020671u, new Vector3(291.27942f, 46.15984f, -417.99042f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020671u, new Vector3(291.27942f, 46.15984f, -417.99042f), 622); obj37.Steps = list60; reference43 = obj37; - ref QuestSequence reference44 = ref span27[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -160772,34 +192056,43 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list61)[0]; + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 2008929u, new Vector3(223.22424f, 49.66809f, -426.13873f), 622) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span29 = CollectionsMarshal.AsSpan(list62); - span29[0] = 7565u; - span29[1] = 7566u; - span29[2] = 7567u; + num4 = 3; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span6 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span6[num3] = 7565u; + num3++; + span6[num3] = 7566u; + num3++; + span6[num3] = 7567u; obj39.KillEnemyDataIds = list62; reference45 = obj39; obj38.Steps = list61; reference44 = obj38; - ref QuestSequence reference46 = ref span27[4]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1020673u, new Vector3(-2.1516113f, 69.62067f, -491.87457f), 622); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020673u, new Vector3(-2.1516113f, 69.62067f, -491.87457f), 622); obj40.Steps = list63; reference46 = obj40; - ref QuestSequence reference47 = ref span27[5]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 5 @@ -160807,7 +192100,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list64)[0]; + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2008930u, new Vector3(-250.59894f, 76.1272f, -486.71704f), 622) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -160815,22 +192110,27 @@ public static class AssemblyQuestLoader num3 = 2; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span30 = CollectionsMarshal.AsSpan(list65); - span30[0] = 7547u; - span30[1] = 7567u; + span6 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span6[num4] = 7547u; + num4++; + span6[num4] = 7567u; obj42.KillEnemyDataIds = list65; reference48 = obj42; obj41.Steps = list64; reference47 = obj41; - ref QuestSequence reference49 = ref span27[6]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); obj43.Steps = list66; reference49 = obj43; questRoot7.QuestSequence = list57; @@ -160840,13 +192140,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span31 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference50 = ref span31[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -160854,18 +192157,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); obj44.Steps = list69; reference50 = obj44; - ref QuestSequence reference51 = ref span31[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Duty, null, null, 622) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 622) { DutyOptions = new DutyOptions { @@ -160874,7 +192182,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list70; reference51 = obj45; - ref QuestSequence reference52 = ref span31[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -160882,7 +192191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); obj46.Steps = list71; reference52 = obj46; questRoot8.QuestSequence = list68; @@ -160892,24 +192203,30 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list72; - num = 2; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span32 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference53 = ref span32[0]; + index = 2; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); obj47.Steps = list74; reference53 = obj47; - ref QuestSequence reference54 = ref span32[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -160917,7 +192234,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj48.Steps = list75; reference54 = obj48; questRoot9.QuestSequence = list73; @@ -160927,24 +192246,30 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list76; - num = 6; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span33 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference55 = ref span33[0]; + index = 6; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022078u, new Vector3(-29.526245f, 121.09276f, 70.29822f), 622); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022078u, new Vector3(-29.526245f, 121.09276f, 70.29822f), 622); obj49.Steps = list78; reference55 = obj49; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -160952,33 +192277,40 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span34 = CollectionsMarshal.AsSpan(list79); - span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) { Aetheryte = EAetheryteLocation.AzimSteppeDawnThrone }; - span34[1] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622); obj50.Steps = list79; reference56 = obj50; - ref QuestSequence reference57 = ref span33[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span35 = CollectionsMarshal.AsSpan(list80); - span35[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008019u, new Vector3(105.607666f, 116.01428f, -49.69867f), 622) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008019u, new Vector3(105.607666f, 116.01428f, -49.69867f), 622) { AetherCurrentId = 2818212u }; - ref QuestStep reference58 = ref span35[1]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1023089u, new Vector3(66.178345f, 114.904976f, -8.0720825f), 622); - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice + num4 = 1; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + Span span7 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA410_02509_SYSTEM_000_051") @@ -160987,7 +192319,8 @@ public static class AssemblyQuestLoader reference58 = questStep7; obj51.Steps = list80; reference57 = obj51; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -160995,16 +192328,19 @@ public static class AssemblyQuestLoader num2 = 10; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span36 = CollectionsMarshal.AsSpan(list82); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) { DisableNavmesh = true }; - span36[1] = new QuestStep(EInteractionType.Dive, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) { DelaySecondsAtStart = 2f }; - ref QuestStep reference60 = ref span36[2]; + index2++; + ref QuestStep reference60 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 2008252u, new Vector3(61.020752f, -72.09894f, 11.123779f), 622) { DisableNavmesh = true @@ -161012,130 +192348,189 @@ public static class AssemblyQuestLoader num3 = 6; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span37 = CollectionsMarshal.AsSpan(list83); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list83; reference60 = obj53; - ref QuestStep reference61 = ref span36[3]; + index2++; + ref QuestStep reference61 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2008250u, new Vector3(109.54443f, -51.285645f, -40.878906f), 622); - num3 = 6; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span38 = CollectionsMarshal.AsSpan(list84); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + span4 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list84; reference61 = questStep8; - ref QuestStep reference62 = ref span36[4]; + index2++; + ref QuestStep reference62 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2008255u, new Vector3(134.7218f, -61.69226f, -18.783936f), 622); num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span39 = CollectionsMarshal.AsSpan(list85); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list85; reference62 = questStep9; - ref QuestStep reference63 = ref span36[5]; + index2++; + ref QuestStep reference63 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2008253u, new Vector3(166.55212f, -62.912964f, 27.481445f), 622); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span40 = CollectionsMarshal.AsSpan(list86); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + span4 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list86; reference63 = questStep10; - ref QuestStep reference64 = ref span36[6]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2008257u, new Vector3(-194.2627f, -57.66388f, 105.97388f), 622); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span41 = CollectionsMarshal.AsSpan(list87); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list87; reference64 = questStep11; - ref QuestStep reference65 = ref span36[7]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2008256u, new Vector3(-126.26843f, -54.64258f, 93.43091f), 622); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span42 = CollectionsMarshal.AsSpan(list88); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list88; reference65 = questStep12; - ref QuestStep reference66 = ref span36[8]; + index2++; + ref QuestStep reference66 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2008251u, new Vector3(-74.23517f, -57.78595f, 59.464355f), 622); num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span43 = CollectionsMarshal.AsSpan(list89); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list89; reference66 = questStep13; - ref QuestStep reference67 = ref span36[9]; + index2++; + ref QuestStep reference67 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2008254u, new Vector3(-78.202515f, -60.105347f, 6.5460815f), 622); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span44 = CollectionsMarshal.AsSpan(list90); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list90; reference67 = questStep14; obj52.Steps = list82; reference59 = obj52; - ref QuestSequence reference68 = ref span33[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj54.Steps = list91; reference68 = obj54; - ref QuestSequence reference69 = ref span33[5]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -161143,7 +192538,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj55.Steps = list92; reference69 = obj55; questRoot10.QuestSequence = list77; @@ -161153,21 +192550,26 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list93; - num = 6; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span45 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference70 = ref span45[0]; + index = 6; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021730u, new Vector3(-31.204712f, 121.12067f, 62.088867f), 622) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021730u, new Vector3(-31.204712f, 121.12067f, 62.088867f), 622) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -161181,7 +192583,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list95; reference70 = obj56; - ref QuestSequence reference71 = ref span45[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -161189,77 +192592,109 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); obj57.Steps = list96; reference71 = obj57; - ref QuestSequence reference72 = ref span45[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span46 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference73 = ref span46[0]; + index2 = 4; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference73 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1021601u, new Vector3(69.047f, 115.59484f, -17.654724f), 622); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span47 = CollectionsMarshal.AsSpan(list98); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list98; reference73 = questStep15; - ref QuestStep reference74 = ref span46[1]; + num2++; + ref QuestStep reference74 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021602u, new Vector3(-8.1026f, 114.90496f, 133.1654f), 622); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span48 = CollectionsMarshal.AsSpan(list99); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span4 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list99; reference74 = questStep16; - ref QuestStep reference75 = ref span46[2]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1020691u, new Vector3(1.6021729f, 114.90497f, 96.42175f), 622); num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span49 = CollectionsMarshal.AsSpan(list100); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list100; reference75 = questStep17; - ref QuestStep reference76 = ref span46[3]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1021600u, new Vector3(-44.327515f, 121f, 36.697876f), 622); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span50 = CollectionsMarshal.AsSpan(list101); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span4 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list101; reference76 = questStep18; obj58.Steps = list97; reference72 = obj58; - ref QuestSequence reference77 = ref span45[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 @@ -161267,27 +192702,33 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span51 = CollectionsMarshal.AsSpan(list102); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.269917f, 114.904976f, 30.628508f), 622) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.269917f, 114.904976f, 30.628508f), 622) { DisableNavmesh = true, Mount = true }; - span51[1] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); obj59.Steps = list102; reference77 = obj59; - ref QuestSequence reference78 = ref span45[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1020689u, new Vector3(-28.21399f, 114.90497f, -37.583008f), 622); + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020689u, new Vector3(-28.21399f, 114.90497f, -37.583008f), 622); obj60.Steps = list103; reference78 = obj60; - ref QuestSequence reference79 = ref span45[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -161295,7 +192736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj61.Steps = list104; reference79 = obj61; questRoot11.QuestSequence = list94; @@ -161305,21 +192748,26 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list105; - num = 5; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span52 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference80 = ref span52[0]; + index = 5; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -161332,7 +192780,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list107; reference80 = obj62; - ref QuestSequence reference81 = ref span52[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -161340,23 +192789,28 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1021605u, new Vector3(63.70642f, 114.90497f, 72.55664f), 622); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021605u, new Vector3(63.70642f, 114.90497f, 72.55664f), 622); obj63.Steps = list108; reference81 = obj63; - ref QuestSequence reference82 = ref span52[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span53 = CollectionsMarshal.AsSpan(list109); - span53[0] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) { PickUpQuestId = new QuestId(2782) }; - span53[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-136.6883f, 15.660965f, 579.51746f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-136.6883f, 15.660965f, 579.51746f), 622) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -161364,7 +192818,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list109; reference82 = obj64; - ref QuestSequence reference83 = ref span52[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -161372,8 +192827,9 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span54 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference84 = ref span54[0]; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -161381,32 +192837,44 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 7563u; + span6 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span6[num4] = 7563u; obj66.KillEnemyDataIds = list111; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span55 = CollectionsMarshal.AsSpan(list112); - span55[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = null; + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + span4 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span4[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj66.CompletionQuestVariablesFlags = list112; reference84 = obj66; - span54[1] = new QuestStep(EInteractionType.Interact, 1021608u, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021608u, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622); obj65.Steps = list110; reference83 = obj65; - ref QuestSequence reference85 = ref span52[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) { StopDistance = 7f }; @@ -161419,13 +192887,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list114; - num = 5; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span56 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span56[0]; + index = 5; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -161433,24 +192904,30 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) { StopDistance = 7f }; obj68.Steps = list116; reference86 = obj68; - ref QuestSequence reference87 = ref span56[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1021611u, new Vector3(-447.74554f, 3.0839548f, 545.922f), 622); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021611u, new Vector3(-447.74554f, 3.0839548f, 545.922f), 622); obj69.Steps = list117; reference87 = obj69; - ref QuestSequence reference88 = ref span56[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -161458,63 +192935,88 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1021613u, new Vector3(-450.6142f, 3.3978803f, 540.7339f), 622); + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021613u, new Vector3(-450.6142f, 3.3978803f, 540.7339f), 622); obj70.Steps = list118; reference88 = obj70; - ref QuestSequence reference89 = ref span56[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span57 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference90 = ref span57[0]; + index2 = 3; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1019320u, new Vector3(-435.29413f, 2.267429f, 582.2689f), 622); num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span58 = CollectionsMarshal.AsSpan(list120); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list120; reference90 = questStep19; - ref QuestStep reference91 = ref span57[1]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019322u, new Vector3(-411.64264f, 2.2485201f, 617.1815f), 622); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span59 = CollectionsMarshal.AsSpan(list121); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list121 = new List(num4); + CollectionsMarshal.SetCount(list121, num4); + span4 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list121; reference91 = questStep20; - ref QuestStep reference92 = ref span57[2]; + num2++; + ref QuestStep reference92 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1019321u, new Vector3(-473.0144f, 2.320309f, 616.907f), 622); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span60 = CollectionsMarshal.AsSpan(list122); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list122; reference92 = questStep21; obj71.Steps = list119; reference89 = obj71; - ref QuestSequence reference93 = ref span56[4]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -161522,7 +193024,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); obj72.Steps = list123; reference93 = obj72; questRoot13.QuestSequence = list115; @@ -161532,24 +193036,30 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list124; - num = 4; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span61 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference94 = ref span61[0]; + index = 4; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); obj73.Steps = list126; reference94 = obj73; - ref QuestSequence reference95 = ref span61[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -161557,38 +193067,46 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span62 = CollectionsMarshal.AsSpan(list127); - span62[0] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622) { PickUpQuestId = new QuestId(2791) }; - span62[1] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622); obj74.Steps = list127; reference95 = obj74; - ref QuestSequence reference96 = ref span61[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span63 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference97 = ref span63[0]; + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 7529u; + num4 = 1; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + span6 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span6[num3] = 7529u; obj76.KillEnemyDataIds = list129; reference97 = obj76; - span63[1] = new QuestStep(EInteractionType.Interact, 2008484u, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008484u, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622); obj75.Steps = list128; reference96 = obj75; - ref QuestSequence reference98 = ref span61[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -161596,7 +193114,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); obj77.Steps = list130; reference98 = obj77; questRoot14.QuestSequence = list125; @@ -161606,24 +193126,30 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list131; - num = 4; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span64 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference99 = ref span64[0]; + index = 4; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); obj78.Steps = list133; reference99 = obj78; - ref QuestSequence reference100 = ref span64[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -161631,29 +193157,35 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span65 = CollectionsMarshal.AsSpan(list134); - span65[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008022u, new Vector3(-693.8301f, 7.263198f, 658.8989f), 622) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008022u, new Vector3(-693.8301f, 7.263198f, 658.8989f), 622) { AetherCurrentId = 2818215u }; - span65[1] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj79.Steps = list134; reference100 = obj79; - ref QuestSequence reference101 = ref span64[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1021630u, new Vector3(59.586426f, 114.90497f, 72.3125f), 622); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021630u, new Vector3(59.586426f, 114.90497f, 72.3125f), 622); obj80.Steps = list135; reference101 = obj80; - ref QuestSequence reference102 = ref span64[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -161661,13 +193193,16 @@ public static class AssemblyQuestLoader num2 = 3; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span66 = CollectionsMarshal.AsSpan(list136); - span66[0] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) { TargetTerritoryId = (ushort)622 }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(202.73067f, 6.1036434f, 11.536863f), 622); - span66[2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(202.73067f, 6.1036434f, 11.536863f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj81.Steps = list136; reference102 = obj81; questRoot15.QuestSequence = list132; @@ -161677,24 +193212,30 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list137; - num = 6; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span67 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span67[0]; + index = 5; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj82.Steps = list139; reference103 = obj82; - ref QuestSequence reference104 = ref span67[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -161702,8 +193243,9 @@ public static class AssemblyQuestLoader num2 = 4; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span68 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference105 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1019386u, new Vector3(501.21313f, 40.836082f, -505.9129f), 622) { StopDistance = 7f @@ -161711,32 +193253,47 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span69 = CollectionsMarshal.AsSpan(list141); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list141; reference105 = obj84; - ref QuestStep reference106 = ref span68[1]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1019388u, new Vector3(508.04907f, 40.4257f, -482.7802f), 622); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span70 = CollectionsMarshal.AsSpan(list142); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + span4 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list142; num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA416_02515_Q1_000_102"), @@ -161744,23 +193301,32 @@ public static class AssemblyQuestLoader }; questStep22.DialogueChoices = list143; reference106 = questStep22; - ref QuestStep reference107 = ref span68[2]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span71 = CollectionsMarshal.AsSpan(list144); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + span4 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list144; num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA416_02515_Q1_100_070"), @@ -161768,34 +193334,45 @@ public static class AssemblyQuestLoader }; questStep23.DialogueChoices = list145; reference107 = questStep23; - ref QuestStep reference108 = ref span68[3]; + index2++; + ref QuestStep reference108 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span72 = CollectionsMarshal.AsSpan(list146); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + span4 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list146; reference108 = questStep24; obj83.Steps = list140; reference104 = obj83; - ref QuestSequence reference109 = ref span67[2]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj85.Steps = list147; reference109 = obj85; - ref QuestSequence reference110 = ref span67[3]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 @@ -161803,7 +193380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -161812,19 +193391,18 @@ public static class AssemblyQuestLoader }; obj86.Steps = list148; reference110 = obj86; - span67[4] = new QuestSequence - { - Sequence = 4 - }; - ref QuestSequence reference111 = ref span67[5]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); obj87.Steps = list149; reference111 = obj87; questRoot16.QuestSequence = list138; @@ -161834,13 +193412,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list150; - num = 5; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span73 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference112 = ref span73[0]; + index = 5; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -161848,21 +193429,27 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); obj88.Steps = list152; reference112 = obj88; - ref QuestSequence reference113 = ref span73[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj89.Steps = list153; reference113 = obj89; - ref QuestSequence reference114 = ref span73[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -161870,25 +193457,31 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); obj90.Steps = list154; reference114 = obj90; - ref QuestSequence reference115 = ref span73[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(545.6276f, 38.841972f, -482.91553f), 622) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(545.6276f, 38.841972f, -482.91553f), 622) { StopDistance = 0.25f, Emote = EEmote.VictoryPose }; obj91.Steps = list155; reference115 = obj91; - ref QuestSequence reference116 = ref span73[4]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -161896,7 +193489,9 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj92.Steps = list156; reference116 = obj92; questRoot17.QuestSequence = list151; @@ -161906,27 +193501,33 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "JerryWester"; questRoot18.Author = list157; - num = 4; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span74 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference117 = ref span74[0]; + index = 4; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021633u, new Vector3(495.10938f, 40.836124f, -508.50693f), 622) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021633u, new Vector3(495.10938f, 40.836124f, -508.50693f), 622) { StopDistance = 7f }; obj93.Steps = list159; reference117 = obj93; - ref QuestSequence reference118 = ref span74[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -161934,28 +193535,33 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj94.Steps = list160; reference118 = obj94; - ref QuestSequence reference119 = ref span74[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span75 = CollectionsMarshal.AsSpan(list161); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.142036f, 121f, 63.4195f), 622) + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.142036f, 121f, 63.4195f), 622) { Mount = true, Fly = true }; - span75[1] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) { TargetTerritoryId = (ushort)622, SkipConditions = new SkipConditions @@ -161966,13 +193572,15 @@ public static class AssemblyQuestLoader } } }; - span75[2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj95.Steps = list161; reference119 = obj95; - ref QuestSequence reference120 = ref span74[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -161980,7 +193588,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021646u, new Vector3(-167.89502f, 0.88495153f, 816.8002f), 622) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021646u, new Vector3(-167.89502f, 0.88495153f, 816.8002f), 622) { Fly = true }; @@ -161993,24 +193603,30 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list163; - num = 4; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span76 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference121 = ref span76[0]; + index = 4; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021647u, new Vector3(-169.482f, 0.9213525f, 817.0748f), 622); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021647u, new Vector3(-169.482f, 0.9213525f, 817.0748f), 622); obj97.Steps = list165; reference121 = obj97; - ref QuestSequence reference122 = ref span76[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -162018,30 +193634,36 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span77 = CollectionsMarshal.AsSpan(list166); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-161.8687f, 0.59802794f, 855.427f), 622) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-161.8687f, 0.59802794f, 855.427f), 622) { TargetTerritoryId = (ushort)614, Mount = true }; - span77[1] = new QuestStep(EInteractionType.Interact, 1021652u, new Vector3(508.32373f, 14.072665f, -856.199f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021652u, new Vector3(508.32373f, 14.072665f, -856.199f), 614); obj98.Steps = list166; reference122 = obj98; - ref QuestSequence reference123 = ref span76[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1021692u, new Vector3(330.76978f, 23.266533f, -542.56506f), 614) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021692u, new Vector3(330.76978f, 23.266533f, -542.56506f), 614) { Fly = true }; obj99.Steps = list167; reference123 = obj99; - ref QuestSequence reference124 = ref span76[3]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -162049,7 +193671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj100.Steps = list168; reference124 = obj100; questRoot19.QuestSequence = list164; @@ -162059,24 +193683,30 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span78 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference125 = ref span78[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj101.Steps = list171; reference125 = obj101; - ref QuestSequence reference126 = ref span78[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -162084,21 +193714,27 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614); obj102.Steps = list172; reference126 = obj102; - ref QuestSequence reference127 = ref span78[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj103.Steps = list173; reference127 = obj103; - ref QuestSequence reference128 = ref span78[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -162106,12 +193742,14 @@ public static class AssemblyQuestLoader num2 = 3; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span79 = CollectionsMarshal.AsSpan(list174); - span79[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) { Aetheryte = EAetheryteLocation.YanxiaHouseOfTheFierce }; - span79[1] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -162121,7 +193759,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span79[2] = new QuestStep(EInteractionType.CompleteQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj104.Steps = list174; reference128 = obj104; questRoot20.QuestSequence = list170; @@ -162131,21 +193770,26 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list175; - num = 9; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span80 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference129 = ref span80[0]; + index = 9; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -162158,7 +193802,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list177; reference129 = obj105; - ref QuestSequence reference130 = ref span80[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -162166,22 +193811,26 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { Fly = true }; obj106.Steps = list178; reference130 = obj106; - ref QuestSequence reference131 = ref span80[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span81 = CollectionsMarshal.AsSpan(list179); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(331.6093f, 22.34645f, -545.8195f), 614) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(331.6093f, 22.34645f, -545.8195f), 614) { SkipConditions = new SkipConditions { @@ -162191,13 +193840,15 @@ public static class AssemblyQuestLoader } } }; - span81[1] = new QuestStep(EInteractionType.Interact, 2007923u, new Vector3(280.96436f, 16.006714f, -641.413f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007923u, new Vector3(280.96436f, 16.006714f, -641.413f), 614) { Fly = true }; obj107.Steps = list179; reference131 = obj107; - ref QuestSequence reference132 = ref span80[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -162205,21 +193856,26 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2007924u, new Vector3(284.13818f, 6.729187f, -792.6604f), 614) + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007924u, new Vector3(284.13818f, 6.729187f, -792.6604f), 614) { Fly = true }; obj108.Steps = list180; reference132 = obj108; - ref QuestSequence reference133 = ref span80[4]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list181)[0]; + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference134 = ref span3[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1020228u, new Vector3(462.6687f, -3.4607835f, -799.31335f), 614) { Fly = true @@ -162227,7 +193883,9 @@ public static class AssemblyQuestLoader num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA502_02520_Q1_000_081"), @@ -162237,7 +193895,8 @@ public static class AssemblyQuestLoader reference134 = obj110; obj109.Steps = list181; reference133 = obj109; - ref QuestSequence reference135 = ref span80[5]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 @@ -162245,8 +193904,9 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span82 = CollectionsMarshal.AsSpan(list183); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.4046f, 22.617083f, -726.5077f), 614) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.4046f, 22.617083f, -726.5077f), 614) { SkipConditions = new SkipConditions { @@ -162256,34 +193916,41 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.Interact, 1020230u, new Vector3(552.1476f, 23.140884f, -690.486f), 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020230u, new Vector3(552.1476f, 23.140884f, -690.486f), 614) { Fly = true }; obj111.Steps = list183; reference135 = obj111; - ref QuestSequence reference136 = ref span80[6]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list184)[0]; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference137 = ref span3[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(551.98566f, 23.177525f, -691.4329f), 614) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = 7561u; + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span6 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span6[num3] = 7561u; obj113.KillEnemyDataIds = list185; reference137 = obj113; obj112.Steps = list184; reference136 = obj112; - ref QuestSequence reference138 = ref span80[7]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 7 @@ -162291,21 +193958,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1020273u, new Vector3(498.83264f, 11.856819f, -838.34595f), 614) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020273u, new Vector3(498.83264f, 11.856819f, -838.34595f), 614) { Fly = true }; obj114.Steps = list186; reference138 = obj114; - ref QuestSequence reference139 = ref span80[8]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; @@ -162318,13 +193990,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list188; - num = 4; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span83 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference140 = ref span83[0]; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -162332,7 +194007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -162345,21 +194022,25 @@ public static class AssemblyQuestLoader }; obj116.Steps = list190; reference140 = obj116; - ref QuestSequence reference141 = ref span83[1]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1020521u, new Vector3(188.34204f, 5.069492f, -414.99963f), 614) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020521u, new Vector3(188.34204f, 5.069492f, -414.99963f), 614) { Fly = true }; obj117.Steps = list191; reference141 = obj117; - ref QuestSequence reference142 = ref span83[2]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -162367,22 +194048,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1023092u, new Vector3(442.64893f, 58.867764f, -171.31305f), 614) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023092u, new Vector3(442.64893f, 58.867764f, -171.31305f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj118.Steps = list192; reference142 = obj118; - ref QuestSequence reference143 = ref span83[3]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) { Fly = true }; @@ -162395,13 +194081,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list194; - num = 7; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span84 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference144 = ref span84[0]; + index = 7; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -162409,19 +194098,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020234u, new Vector3(336.93433f, 31.12357f, 203.479f), 614); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020234u, new Vector3(336.93433f, 31.12357f, 203.479f), 614); obj120.Steps = list196; reference144 = obj120; - ref QuestSequence reference145 = ref span84[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span85 = CollectionsMarshal.AsSpan(list197); - ref QuestStep reference146 = ref span85[0]; + index2 = 3; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference146 = ref span3[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -162429,46 +194122,67 @@ public static class AssemblyQuestLoader num3 = 6; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span86 = CollectionsMarshal.AsSpan(list198); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list198); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list198; reference146 = obj122; - ref QuestStep reference147 = ref span85[1]; + num2++; + ref QuestStep reference147 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1019287u, new Vector3(196.55139f, 5.1694055f, -410.66608f), 614); - num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span87 = CollectionsMarshal.AsSpan(list199); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list199 = new List(num4); + CollectionsMarshal.SetCount(list199, num4); + span4 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list199; reference147 = questStep25; - ref QuestStep reference148 = ref span85[2]; + num2++; + ref QuestStep reference148 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1019285u, new Vector3(195.63586f, 5.16971f, -437.2473f), 614); num3 = 6; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span88 = CollectionsMarshal.AsSpan(list200); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list200; reference148 = questStep26; obj121.Steps = list197; reference145 = obj121; - ref QuestSequence reference149 = ref span84[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -162476,19 +194190,23 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1023083u, new Vector3(174.73096f, 5.196835f, -432.578f), 614); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023083u, new Vector3(174.73096f, 5.196835f, -432.578f), 614); obj123.Steps = list201; reference149 = obj123; - ref QuestSequence reference150 = ref span84[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span89 = CollectionsMarshal.AsSpan(list202); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) { SkipConditions = new SkipConditions { @@ -162498,13 +194216,15 @@ public static class AssemblyQuestLoader } } }; - span89[1] = new QuestStep(EInteractionType.Interact, 1020237u, new Vector3(-74.784485f, 53.217514f, -522.301f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020237u, new Vector3(-74.784485f, 53.217514f, -522.301f), 614) { Fly = true }; obj124.Steps = list202; reference150 = obj124; - ref QuestSequence reference151 = ref span84[4]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -162512,27 +194232,33 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1020238u, new Vector3(-156.23712f, 53.217514f, -621.912f), 614) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020238u, new Vector3(-156.23712f, 53.217514f, -621.912f), 614) { Fly = true }; obj125.Steps = list203; reference151 = obj125; - ref QuestSequence reference152 = ref span84[5]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 2007931u, new Vector3(-246.26538f, 53.20813f, -515.95337f), 614) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007931u, new Vector3(-246.26538f, 53.20813f, -515.95337f), 614) { Fly = true }; obj126.Steps = list204; reference152 = obj126; - ref QuestSequence reference153 = ref span84[6]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -162540,7 +194266,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614) { Fly = true }; @@ -162553,24 +194281,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list206; - num = 4; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span90 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference154 = ref span90[0]; + index = 4; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614); obj128.Steps = list208; reference154 = obj128; - ref QuestSequence reference155 = ref span90[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -162578,66 +194312,91 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj129.Steps = list209; reference155 = obj129; - ref QuestSequence reference156 = ref span90[2]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span91 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference157 = ref span91[0]; + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1020523u, new Vector3(177.203f, 5.169708f, -416.15936f), 614); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span92 = CollectionsMarshal.AsSpan(list211); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + span4 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list211; reference157 = questStep27; - ref QuestStep reference158 = ref span91[1]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1020521u, new Vector3(188.34204f, 5.069492f, -414.99963f), 614); num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span93 = CollectionsMarshal.AsSpan(list212); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list212; reference158 = questStep28; - ref QuestStep reference159 = ref span91[2]; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1020240u, new Vector3(234.11914f, 5.6966333f, -427.1153f), 614); - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span94 = CollectionsMarshal.AsSpan(list213); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + span4 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list213; reference159 = questStep29; obj130.Steps = list210; reference156 = obj130; - ref QuestSequence reference160 = ref span90[3]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -162645,17 +194404,21 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span95 = CollectionsMarshal.AsSpan(list214); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.34885f, 5.16971f, -419.04416f), 614) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.34885f, 5.16971f, -419.04416f), 614) { Fly = true }; - ref QuestStep reference161 = ref span95[1]; + index2++; + ref QuestStep reference161 = ref span3[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA505_02523_Q1_000_122"), @@ -162672,21 +194435,26 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list216; - num = 7; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span96 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference162 = ref span96[0]; + index = 6; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -162699,7 +194467,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list218; reference162 = obj132; - ref QuestSequence reference163 = ref span96[1]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -162707,8 +194476,9 @@ public static class AssemblyQuestLoader num2 = 3; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span97 = CollectionsMarshal.AsSpan(list219); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) { SkipConditions = new SkipConditions { @@ -162718,7 +194488,8 @@ public static class AssemblyQuestLoader } } }; - span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(77.23522f, 32.751614f, -517.566f), 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(77.23522f, 32.751614f, -517.566f), 614) { SkipConditions = new SkipConditions { @@ -162728,27 +194499,32 @@ public static class AssemblyQuestLoader } } }; - span97[2] = new QuestStep(EInteractionType.Interact, 2007932u, new Vector3(-162.70697f, 53.20813f, -558.80066f), 614) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007932u, new Vector3(-162.70697f, 53.20813f, -558.80066f), 614) { Fly = true }; obj133.Steps = list219; reference163 = obj133; - ref QuestSequence reference164 = ref span96[2]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1020244u, new Vector3(-241.99286f, 53.217506f, -653.193f), 614) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020244u, new Vector3(-241.99286f, 53.217506f, -653.193f), 614) { StopDistance = 5f }; obj134.Steps = list220; reference164 = obj134; - ref QuestSequence reference165 = ref span96[3]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -162756,23 +194532,28 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span98 = CollectionsMarshal.AsSpan(list221); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.42896f, 1.2300289f, -363.52563f), 614) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.42896f, 1.2300289f, -363.52563f), 614) { Fly = true }; - span98[1] = new QuestStep(EInteractionType.Interact, 1020247u, new Vector3(-366.3844f, 1.2300524f, -362.5086f), 614); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020247u, new Vector3(-366.3844f, 1.2300524f, -362.5086f), 614); obj135.Steps = list221; reference165 = obj135; - ref QuestSequence reference166 = ref span96[4]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -162782,11 +194563,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list222; reference166 = obj136; - span96[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference167 = ref span96[6]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -162794,7 +194572,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) { StopDistance = 7f }; @@ -162807,27 +194587,33 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list224); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list224; - num = 6; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span99 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference168 = ref span99[0]; + index = 6; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + span2 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) { StopDistance = 7f }; obj138.Steps = list226; reference168 = obj138; - ref QuestSequence reference169 = ref span99[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -162835,15 +194621,19 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list227)[0]; + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + ref QuestStep reference170 = ref span3[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1020255u, new Vector3(-349.05017f, 1.2300365f, -343.86212f), 614) { Fly = true }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new DialogueChoice + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span7 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA507_02525_Q1_000_092"), @@ -162853,27 +194643,32 @@ public static class AssemblyQuestLoader reference170 = obj140; obj139.Steps = list227; reference169 = obj139; - span99[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference171 = ref span99[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - Span span100 = CollectionsMarshal.AsSpan(list229); - span100[0] = new QuestStep(EInteractionType.Interact, 1020644u, new Vector3(147.4784f, -4.1787133f, 50.5531f), 682) + index2 = 2; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020644u, new Vector3(147.4784f, -4.1787133f, 50.5531f), 682) { TargetTerritoryId = (ushort)614 }; - span100[1] = new QuestStep(EInteractionType.Interact, 1020258u, new Vector3(-462.39417f, 1.2300053f, 546.1356f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020258u, new Vector3(-462.39417f, 1.2300053f, 546.1356f), 614); obj141.Steps = list229; reference171 = obj141; - ref QuestSequence reference172 = ref span99[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 4 @@ -162881,7 +194676,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list230)[0]; + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + ref QuestStep reference173 = ref span3[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Interact, 1020263u, new Vector3(-472.12946f, 1.2306242f, 557.09155f), 614) { TargetTerritoryId = (ushort)628 @@ -162889,7 +194686,9 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA507_02525_Q2_000_191"), @@ -162899,15 +194698,18 @@ public static class AssemblyQuestLoader reference173 = obj143; obj142.Steps = list230; reference172 = obj142; - ref QuestSequence reference174 = ref span99[5]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020265u, new Vector3(-175.92126f, -7.0001082f, 53.81848f), 628) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020265u, new Vector3(-175.92126f, -7.0001082f, 53.81848f), 628) { StopDistance = 4f }; @@ -162920,13 +194722,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span101 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference175 = ref span101[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -162934,21 +194739,26 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020267u, new Vector3(-171.55719f, -7.000024f, 55.527588f), 628) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020267u, new Vector3(-171.55719f, -7.000024f, 55.527588f), 628) { StopDistance = 7f }; obj145.Steps = list235; reference175 = obj145; - ref QuestSequence reference176 = ref span101[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -162960,7 +194770,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list236; reference176 = obj146; - ref QuestSequence reference177 = ref span101[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -162968,12 +194779,14 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span102 = CollectionsMarshal.AsSpan(list237); - span102[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span102[1] = new QuestStep(EInteractionType.Interact, 1020270u, new Vector3(-88.91437f, -6.999999f, -56.26001f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020270u, new Vector3(-88.91437f, -6.999999f, -56.26001f), 628) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -162984,15 +194797,18 @@ public static class AssemblyQuestLoader }; obj147.Steps = list237; reference177 = obj147; - ref QuestSequence reference178 = ref span101[3]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020441u, new Vector3(-355.58105f, 8.000015f, 40.787354f), 129); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020441u, new Vector3(-355.58105f, 8.000015f, 40.787354f), 129); obj148.Steps = list238; reference178 = obj148; questRoot27.QuestSequence = list234; @@ -163002,13 +194818,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "JerryWester"; questRoot28.Author = list239; - num = 4; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span103 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference179 = ref span103[0]; + index = 4; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -163016,27 +194835,33 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) { StopDistance = 6f }; obj149.Steps = list241; reference179 = obj149; - ref QuestSequence reference180 = ref span103[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1020553u, new Vector3(-612.66504f, 130.14716f, -480.36932f), 612) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020553u, new Vector3(-612.66504f, 130.14716f, -480.36932f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj150.Steps = list242; reference180 = obj150; - ref QuestSequence reference181 = ref span103[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -163044,18 +194869,23 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1020401u, new Vector3(-473.16705f, 98.582886f, -349.05017f), 612); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020401u, new Vector3(-473.16705f, 98.582886f, -349.05017f), 612); obj151.Steps = list243; reference181 = obj151; - ref QuestSequence reference182 = ref span103[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612); obj152.Steps = list244; reference182 = obj152; questRoot28.QuestSequence = list240; @@ -163065,13 +194895,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "JerryWester"; questRoot29.Author = list245; - num = 6; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span104 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference183 = ref span104[0]; + index = 6; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -163079,7 +194912,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -163093,15 +194928,18 @@ public static class AssemblyQuestLoader }; obj153.Steps = list247; reference183 = obj153; - ref QuestSequence reference184 = ref span104[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) { AethernetShortcut = new AethernetShortcut { @@ -163111,7 +194949,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list248; reference184 = obj154; - ref QuestSequence reference185 = ref span104[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 @@ -163119,60 +194958,84 @@ public static class AssemblyQuestLoader num2 = 3; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span105 = CollectionsMarshal.AsSpan(list249); - ref QuestStep reference186 = ref span105[0]; + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1023762u, new Vector3(133.86731f, 0.65204144f, 8.926453f), 635); - num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span106 = CollectionsMarshal.AsSpan(list250); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list250 = new List(num4); + CollectionsMarshal.SetCount(list250, num4); + span4 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list250; reference186 = questStep31; - ref QuestStep reference187 = ref span105[1]; + index2++; + ref QuestStep reference187 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1023298u, new Vector3(22.354431f, -0.33829167f, 3.7384033f), 635); num3 = 6; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span107 = CollectionsMarshal.AsSpan(list251); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list251); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list251; reference187 = questStep32; - ref QuestStep reference188 = ref span105[2]; + index2++; + ref QuestStep reference188 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1023763u, new Vector3(13.504211f, -0.45803526f, 121.87378f), 635); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span108 = CollectionsMarshal.AsSpan(list252); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list252 = new List(num4); + CollectionsMarshal.SetCount(list252, num4); + span4 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list252; reference188 = questStep33; obj155.Steps = list249; reference185 = obj155; - ref QuestSequence reference189 = ref span104[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) { AethernetShortcut = new AethernetShortcut { @@ -163182,7 +195045,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list253; reference189 = obj156; - ref QuestSequence reference190 = ref span104[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 4 @@ -163190,7 +195054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020559u, new Vector3(-188.86096f, 43.219845f, -149.58423f), 612) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020559u, new Vector3(-188.86096f, 43.219845f, -149.58423f), 612) { AethernetShortcut = new AethernetShortcut { @@ -163204,15 +195070,18 @@ public static class AssemblyQuestLoader }; obj157.Steps = list254; reference190 = obj157; - ref QuestSequence reference191 = ref span104[5]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020567u, new Vector3(-91.233765f, 50.004436f, 187.85376f), 612); + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020567u, new Vector3(-91.233765f, 50.004436f, 187.85376f), 612); obj158.Steps = list255; reference191 = obj158; questRoot29.QuestSequence = list246; @@ -163222,13 +195091,16 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - CollectionsMarshal.AsSpan(list256)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "JerryWester"; questRoot30.Author = list256; - num = 4; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - Span span109 = CollectionsMarshal.AsSpan(list257); - ref QuestSequence reference192 = ref span109[0]; + index = 4; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -163236,22 +195108,26 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612) + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612) { StopDistance = 7f }; obj159.Steps = list258; reference192 = obj159; - ref QuestSequence reference193 = ref span109[1]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - Span span110 = CollectionsMarshal.AsSpan(list259); - ref QuestStep reference194 = ref span110[0]; + index2 = 2; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference194 = ref span3[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Combat, null, new Vector3(-244.85674f, 52.147297f, 25.87217f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -163259,21 +195135,30 @@ public static class AssemblyQuestLoader num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 8036u; + span6 = CollectionsMarshal.AsSpan(list260); + num4 = 0; + span6[num4] = 8036u; obj161.KillEnemyDataIds = list260; - num3 = 6; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span111 = CollectionsMarshal.AsSpan(list261); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + span4 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj161.CompletionQuestVariablesFlags = list261; reference194 = obj161; - ref QuestStep reference195 = ref span110[1]; + num2++; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, null, new Vector3(-506.97742f, 56.85329f, 174.75038f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -163281,25 +195166,34 @@ public static class AssemblyQuestLoader num3 = 2; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span112 = CollectionsMarshal.AsSpan(list262); - span112[0] = 8044u; - span112[1] = 8050u; + span6 = CollectionsMarshal.AsSpan(list262); + num4 = 0; + span6[num4] = 8044u; + num4++; + span6[num4] = 8050u; obj162.KillEnemyDataIds = list262; - num3 = 6; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span113 = CollectionsMarshal.AsSpan(list263); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + span4 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list263; reference195 = obj162; obj160.Steps = list259; reference193 = obj160; - ref QuestSequence reference196 = ref span109[2]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -163307,18 +195201,23 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1020574u, new Vector3(-386.28217f, 54.221977f, -27.17633f), 612); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020574u, new Vector3(-386.28217f, 54.221977f, -27.17633f), 612); obj163.Steps = list264; reference196 = obj163; - ref QuestSequence reference197 = ref span109[3]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); obj164.Steps = list265; reference197 = obj164; questRoot30.QuestSequence = list257; @@ -163328,13 +195227,16 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "JerryWester"; questRoot31.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span114 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference198 = ref span114[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -163342,18 +195244,23 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); obj165.Steps = list268; reference198 = obj165; - ref QuestSequence reference199 = ref span114[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list269)[0]; + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1020573u, new Vector3(-90.68439f, 50.00444f, 210.46765f), 612) { StopDistance = 7f, @@ -163362,7 +195269,9 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA604_02530_WARP_YESNO_TITLE") @@ -163371,7 +195280,8 @@ public static class AssemblyQuestLoader reference200 = obj167; obj166.Steps = list269; reference199 = obj166; - ref QuestSequence reference201 = ref span114[2]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -163379,23 +195289,28 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1022327u, new Vector3(374.89893f, 44.793087f, 273.7621f), 612); + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022327u, new Vector3(374.89893f, 44.793087f, 273.7621f), 612); obj168.Steps = list271; reference201 = obj168; - ref QuestSequence reference202 = ref span114[3]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span115 = CollectionsMarshal.AsSpan(list272); - span115[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) + index2 = 2; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) { Aetheryte = EAetheryteLocation.FringesPeeringStones }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); obj169.Steps = list272; reference202 = obj169; questRoot31.QuestSequence = list267; @@ -163405,13 +195320,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "JerryWester"; questRoot32.Author = list273; - num = 3; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span116 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference203 = ref span116[0]; + index = 3; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -163419,35 +195337,43 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020580u, new Vector3(451.52966f, 114.37317f, 236.40796f), 612); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020580u, new Vector3(451.52966f, 114.37317f, 236.40796f), 612); obj170.Steps = list275; reference203 = obj170; - ref QuestSequence reference204 = ref span116[1]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span117 = CollectionsMarshal.AsSpan(list276); - span117[0] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + index2 = 4; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { PickUpQuestId = new QuestId(2821) }; - span117[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007971u, new Vector3(322.59094f, 88.97534f, 10.513428f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007971u, new Vector3(322.59094f, 88.97534f, 10.513428f), 612) { AetherCurrentId = 2818139u }; - span117[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(328.29312f, 79.1903f, 2.052349f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(328.29312f, 79.1903f, 2.052349f), 612) { DisableNavmesh = true, Mount = true }; - span117[3] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); obj171.Steps = list276; reference204 = obj171; - ref QuestSequence reference205 = ref span116[2]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -163455,7 +195381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) { StopDistance = 7f }; @@ -163468,27 +195396,33 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list278); + index = 0; + span[index] = "JerryWester"; questRoot33.Author = list278; - num = 8; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span118 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference206 = ref span118[0]; + index = 7; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + span2 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) { StopDistance = 7f }; obj173.Steps = list280; reference206 = obj173; - ref QuestSequence reference207 = ref span118[1]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -163496,35 +195430,42 @@ public static class AssemblyQuestLoader num2 = 2; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span119 = CollectionsMarshal.AsSpan(list281); - span119[0] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612) + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612) { PickUpQuestId = new QuestId(2816) }; - span119[1] = new QuestStep(EInteractionType.Interact, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612); obj174.Steps = list281; reference207 = obj174; - ref QuestSequence reference208 = ref span118[2]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - Span span120 = CollectionsMarshal.AsSpan(list282); - span120[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007972u, new Vector3(743.00745f, 180.98718f, -214.06885f), 612) + index2 = 2; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007972u, new Vector3(743.00745f, 180.98718f, -214.06885f), 612) { AetherCurrentId = 2818140u }; - span120[1] = new QuestStep(EInteractionType.Interact, 2008200u, new Vector3(804.5929f, 179.70544f, -304.70746f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008200u, new Vector3(804.5929f, 179.70544f, -304.70746f), 612); obj175.Steps = list282; reference208 = obj175; - span118[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference209 = ref span118[4]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -163532,12 +195473,16 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list283)[0]; + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1020593u, new Vector3(2.3651123f, -5.169945f, -13.260071f), 683); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + num4 = 1; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + span7 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA606_02532_Q1_000_150"), @@ -163547,15 +195492,18 @@ public static class AssemblyQuestLoader reference210 = questStep34; obj176.Steps = list283; reference209 = obj176; - ref QuestSequence reference211 = ref span118[5]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Duty, null, null, 683) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 683) { DutyOptions = new DutyOptions { @@ -163564,11 +195512,8 @@ public static class AssemblyQuestLoader }; obj177.Steps = list285; reference211 = obj177; - span118[6] = new QuestSequence - { - Sequence = 6 - }; - ref QuestSequence reference212 = ref span118[7]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -163576,7 +195521,9 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020592u, new Vector3(509.39185f, 122.137985f, -242.14551f), 612) + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020592u, new Vector3(509.39185f, 122.137985f, -242.14551f), 612) { StopDistance = 5f }; @@ -163589,27 +195536,33 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "JerryWester"; questRoot34.Author = list287; - num = 5; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span121 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference213 = ref span121[0]; + index = 5; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612) { StopDistance = 7f }; obj179.Steps = list289; reference213 = obj179; - ref QuestSequence reference214 = ref span121[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 @@ -163617,24 +195570,30 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); obj180.Steps = list290; reference214 = obj180; - ref QuestSequence reference215 = ref span121[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj181.Steps = list291; reference215 = obj181; - ref QuestSequence reference216 = ref span121[3]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 3 @@ -163642,18 +195601,23 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); obj182.Steps = list292; reference216 = obj182; - ref QuestSequence reference217 = ref span121[4]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612); + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612); obj183.Steps = list293; reference217 = obj183; questRoot34.QuestSequence = list288; @@ -163663,13 +195627,16 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list294); + index = 0; + span[index] = "JerryWester"; questRoot35.Author = list294; - num = 5; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span122 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference218 = ref span122[0]; + index = 5; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + span2 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -163677,7 +195644,9 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612) + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -163690,16 +195659,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list296; reference218 = obj184; - ref QuestSequence reference219 = ref span122[1]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span123 = CollectionsMarshal.AsSpan(list297); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.45657f, 73.72764f, 204.51974f), 612) + index2 = 2; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.45657f, 73.72764f, 204.51974f), 612) { SkipConditions = new SkipConditions { @@ -163709,17 +195680,20 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1022334u, new Vector3(845.8839f, 86.0183f, 361.9287f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022334u, new Vector3(845.8839f, 86.0183f, 361.9287f), 612) { Fly = true }; obj185.Steps = list297; reference219 = obj185; - span122[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference220 = ref span122[3]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -163727,18 +195701,23 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1020599u, new Vector3(-601.4649f, 323.9936f, 179.70544f), 620); + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020599u, new Vector3(-601.4649f, 323.9936f, 179.70544f), 620); obj186.Steps = list298; reference220 = obj186; - ref QuestSequence reference221 = ref span122[4]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); obj187.Steps = list299; reference221 = obj187; questRoot35.QuestSequence = list295; @@ -163748,13 +195727,16 @@ public static class AssemblyQuestLoader num = 1; List list300 = new List(num); CollectionsMarshal.SetCount(list300, num); - CollectionsMarshal.AsSpan(list300)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list300); + index = 0; + span[index] = "JerryWester"; questRoot36.Author = list300; - num = 3; - List list301 = new List(num); - CollectionsMarshal.SetCount(list301, num); - Span span124 = CollectionsMarshal.AsSpan(list301); - ref QuestSequence reference222 = ref span124[0]; + index = 3; + List list301 = new List(index); + CollectionsMarshal.SetCount(list301, index); + span2 = CollectionsMarshal.AsSpan(list301); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -163762,26 +195744,32 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); obj188.Steps = list302; reference222 = obj188; - ref QuestSequence reference223 = ref span124[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span125 = CollectionsMarshal.AsSpan(list303); - span125[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) + index2 = 2; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) { Aetheryte = EAetheryteLocation.PeaksAlaGhiri }; - span125[1] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); obj189.Steps = list303; reference223 = obj189; - ref QuestSequence reference224 = ref span124[2]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue @@ -163789,7 +195777,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) { StopDistance = 6f }; @@ -163802,23 +195792,28 @@ public static class AssemblyQuestLoader num = 2; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - Span span126 = CollectionsMarshal.AsSpan(list305); - span126[0] = "JerryWester"; - span126[1] = "ewlame"; + span = CollectionsMarshal.AsSpan(list305); + index = 0; + span[index] = "JerryWester"; + index++; + span[index] = "ewlame"; questRoot37.Author = list305; - num = 3; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span127 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference225 = ref span127[0]; + index = 3; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + span2 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -163832,7 +195827,8 @@ public static class AssemblyQuestLoader }; obj191.Steps = list307; reference225 = obj191; - ref QuestSequence reference226 = ref span127[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 @@ -163840,8 +195836,9 @@ public static class AssemblyQuestLoader num2 = 2; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span128 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference227 = ref span128[0]; + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + ref QuestStep reference227 = ref span3[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2008202u, new Vector3(-549.7368f, 257.3739f, 557.6714f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -163849,23 +195846,32 @@ public static class AssemblyQuestLoader num3 = 2; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - Span span129 = CollectionsMarshal.AsSpan(list309); - span129[0] = 8033u; - span129[1] = 8045u; + span6 = CollectionsMarshal.AsSpan(list309); + num4 = 0; + span6[num4] = 8033u; + num4++; + span6[num4] = 8045u; obj193.KillEnemyDataIds = list309; - num3 = 6; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - Span span130 = CollectionsMarshal.AsSpan(list310); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list310 = new List(num4); + CollectionsMarshal.SetCount(list310, num4); + span4 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list310; reference227 = obj193; - ref QuestStep reference228 = ref span128[1]; + index2++; + ref QuestStep reference228 = ref span3[index2]; QuestStep obj194 = new QuestStep(EInteractionType.Combat, 2008203u, new Vector3(-460.92932f, 295.58252f, 256.0005f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -163873,38 +195879,49 @@ public static class AssemblyQuestLoader num3 = 2; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span131 = CollectionsMarshal.AsSpan(list311); - span131[0] = 8031u; - span131[1] = 8032u; + span6 = CollectionsMarshal.AsSpan(list311); + num4 = 0; + span6[num4] = 8031u; + num4++; + span6[num4] = 8032u; obj194.KillEnemyDataIds = list311; - num3 = 6; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span132 = CollectionsMarshal.AsSpan(list312); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list312 = new List(num4); + CollectionsMarshal.SetCount(list312, num4); + span4 = CollectionsMarshal.AsSpan(list312); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj194.CompletionQuestVariablesFlags = list312; reference228 = obj194; obj192.Steps = list308; reference226 = obj192; - ref QuestSequence reference229 = ref span127[2]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span133 = CollectionsMarshal.AsSpan(list313); - span133[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007981u, new Vector3(-485.22168f, 304.46313f, 247.39441f), 620) + index2 = 2; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007981u, new Vector3(-485.22168f, 304.46313f, 247.39441f), 620) { AetherCurrentId = 2818154u }; - span133[1] = new QuestStep(EInteractionType.CompleteQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); obj195.Steps = list313; reference229 = obj195; questRoot37.QuestSequence = list306; @@ -163914,13 +195931,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list314); + index = 0; + span[index] = "JerryWester"; questRoot38.Author = list314; - num = 7; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span134 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference230 = ref span134[0]; + index = 7; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + span2 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -163928,21 +195948,27 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); obj196.Steps = list316; reference230 = obj196; - ref QuestSequence reference231 = ref span134[1]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1020609u, new Vector3(-134.26416f, 305.2497f, 187.79272f), 620); + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020609u, new Vector3(-134.26416f, 305.2497f, 187.79272f), 620); obj197.Steps = list317; reference231 = obj197; - ref QuestSequence reference232 = ref span134[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -163950,76 +195976,103 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span135 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference233 = ref span135[0]; + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + ref QuestStep reference233 = ref span3[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 2008944u, new Vector3(-128.98456f, 306.47742f, 188.58618f), 620); num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - CollectionsMarshal.AsSpan(list319)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list319); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA611_02537_AREA_WARP_YESNO_TITLE") }; questStep35.DialogueChoices = list319; reference233 = questStep35; - span135[1] = new QuestStep(EInteractionType.Interact, 1020610u, new Vector3(-77.25653f, 305.92664f, 154.00928f), 620); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020610u, new Vector3(-77.25653f, 305.92664f, 154.00928f), 620); obj198.Steps = list318; reference232 = obj198; - ref QuestSequence reference234 = ref span134[3]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - Span span136 = CollectionsMarshal.AsSpan(list320); - ref QuestStep reference235 = ref span136[0]; + index2 = 3; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + ref QuestStep reference235 = ref span3[num2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1020617u, new Vector3(-15.274292f, 317.61813f, 134.93542f), 620); - num3 = 6; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - Span span137 = CollectionsMarshal.AsSpan(list321); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list321 = new List(num4); + CollectionsMarshal.SetCount(list321, num4); + span4 = CollectionsMarshal.AsSpan(list321); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list321; reference235 = questStep36; - ref QuestStep reference236 = ref span136[1]; + num2++; + ref QuestStep reference236 = ref span3[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1020618u, new Vector3(-17.502136f, 317.66766f, 114.39685f), 620); num3 = 6; List list322 = new List(num3); CollectionsMarshal.SetCount(list322, num3); - Span span138 = CollectionsMarshal.AsSpan(list322); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list322); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list322; reference236 = questStep37; - ref QuestStep reference237 = ref span136[2]; + num2++; + ref QuestStep reference237 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1020619u, new Vector3(0.289917f, 317.56836f, 105.57703f), 620); - num3 = 6; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span139 = CollectionsMarshal.AsSpan(list323); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + span4 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list323; reference237 = questStep38; obj199.Steps = list320; reference234 = obj199; - ref QuestSequence reference238 = ref span134[4]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -164027,21 +196080,27 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1022335u, new Vector3(-30.289246f, 317.56836f, 123.85742f), 620); + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022335u, new Vector3(-30.289246f, 317.56836f, 123.85742f), 620); obj200.Steps = list324; reference238 = obj200; - ref QuestSequence reference239 = ref span134[5]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1020613u, new Vector3(7.7667847f, 317.61786f, 110.0022f), 620); + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020613u, new Vector3(7.7667847f, 317.61786f, 110.0022f), 620); obj201.Steps = list325; reference239 = obj201; - ref QuestSequence reference240 = ref span134[6]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -164049,7 +196108,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); obj202.Steps = list326; reference240 = obj202; questRoot38.QuestSequence = list315; @@ -164059,24 +196120,30 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list327); + index = 0; + span[index] = "JerryWester"; questRoot39.Author = list327; - num = 4; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - Span span140 = CollectionsMarshal.AsSpan(list328); - ref QuestSequence reference241 = ref span140[0]; + index = 4; + List list328 = new List(index); + CollectionsMarshal.SetCount(list328, index); + span2 = CollectionsMarshal.AsSpan(list328); + num = 0; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); obj203.Steps = list329; reference241 = obj203; - ref QuestSequence reference242 = ref span140[1]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -164084,67 +196151,93 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1019945u, new Vector3(7.9804688f, 306.56976f, 73.68579f), 620); + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019945u, new Vector3(7.9804688f, 306.56976f, 73.68579f), 620); obj204.Steps = list330; reference242 = obj204; - ref QuestSequence reference243 = ref span140[2]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - Span span141 = CollectionsMarshal.AsSpan(list331); - ref QuestStep reference244 = ref span141[0]; + index2 = 4; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference244 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1023835u, new Vector3(-150.04199f, 305.79913f, 82.871704f), 620); num3 = 6; List list332 = new List(num3); CollectionsMarshal.SetCount(list332, num3); - Span span142 = CollectionsMarshal.AsSpan(list332); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list332); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep39.CompletionQuestVariablesFlags = list332; reference244 = questStep39; - span141[1] = new QuestStep(EInteractionType.Interact, 2008450u, new Vector3(-126.54315f, 306.50793f, 186.26685f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008450u, new Vector3(-126.54315f, 306.50793f, 186.26685f), 620) { TargetTerritoryId = (ushort)620 }; - ref QuestStep reference245 = ref span141[2]; + num2++; + ref QuestStep reference245 = ref span3[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1023834u, new Vector3(-148.4856f, 300.39352f, 265.73584f), 620); - num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span143 = CollectionsMarshal.AsSpan(list333); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list333 = new List(num4); + CollectionsMarshal.SetCount(list333, num4); + span4 = CollectionsMarshal.AsSpan(list333); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep40.CompletionQuestVariablesFlags = list333; reference245 = questStep40; - ref QuestStep reference246 = ref span141[3]; + num2++; + ref QuestStep reference246 = ref span3[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1020623u, new Vector3(-212.63446f, 296.37332f, 297.04736f), 620); num3 = 6; List list334 = new List(num3); CollectionsMarshal.SetCount(list334, num3); - Span span144 = CollectionsMarshal.AsSpan(list334); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list334); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep41.CompletionQuestVariablesFlags = list334; reference246 = questStep41; obj205.Steps = list331; reference243 = obj205; - ref QuestSequence reference247 = ref span140[3]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -164152,7 +196245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; @@ -164165,21 +196260,26 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list336); + index = 0; + span[index] = "JerryWester"; questRoot40.Author = list336; - num = 3; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span145 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference248 = ref span145[0]; + index = 3; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + span2 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -164192,7 +196292,8 @@ public static class AssemblyQuestLoader }; obj207.Steps = list338; reference248 = obj207; - ref QuestSequence reference249 = ref span145[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -164200,18 +196301,23 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); obj208.Steps = list339; reference249 = obj208; - ref QuestSequence reference250 = ref span145[2]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) { StopDistance = 7f }; @@ -164224,13 +196330,16 @@ public static class AssemblyQuestLoader num = 1; List list341 = new List(num); CollectionsMarshal.SetCount(list341, num); - CollectionsMarshal.AsSpan(list341)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list341); + index = 0; + span[index] = "JerryWester"; questRoot41.Author = list341; - num = 4; - List list342 = new List(num); - CollectionsMarshal.SetCount(list342, num); - Span span146 = CollectionsMarshal.AsSpan(list342); - ref QuestSequence reference251 = ref span146[0]; + index = 4; + List list342 = new List(index); + CollectionsMarshal.SetCount(list342, index); + span2 = CollectionsMarshal.AsSpan(list342); + num = 0; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -164238,7 +196347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -164252,28 +196363,34 @@ public static class AssemblyQuestLoader }; obj210.Steps = list343; reference251 = obj210; - ref QuestSequence reference252 = ref span146[1]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list344)[0]; + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + ref QuestStep reference253 = ref span3[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2009007u, new Vector3(-75.24231f, 262.4093f, 661.86f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list345 = new List(num3); - CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = 7534u; + num4 = 1; + List list345 = new List(num4); + CollectionsMarshal.SetCount(list345, num4); + span6 = CollectionsMarshal.AsSpan(list345); + num3 = 0; + span6[num3] = 7534u; obj212.KillEnemyDataIds = list345; reference253 = obj212; obj211.Steps = list344; reference252 = obj211; - ref QuestSequence reference254 = ref span146[2]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -164281,21 +196398,26 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 2008211u, new Vector3(-75.48645f, 262.4093f, 661.86f), 620) + span3 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008211u, new Vector3(-75.48645f, 262.4093f, 661.86f), 620) { StopDistance = 4.25f }; obj213.Steps = list346; reference254 = obj213; - ref QuestSequence reference255 = ref span146[3]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) { StopDistance = 7f }; @@ -164308,13 +196430,16 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list348); + index = 0; + span[index] = "JerryWester"; questRoot42.Author = list348; - num = 3; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span147 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference256 = ref span147[0]; + index = 3; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + span2 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -164322,27 +196447,33 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) { StopDistance = 7f }; obj215.Steps = list350; reference256 = obj215; - ref QuestSequence reference257 = ref span147[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj216.Steps = list351; reference257 = obj216; - ref QuestSequence reference258 = ref span147[2]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue @@ -164350,7 +196481,9 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) { StopDistance = 7f }; @@ -164363,21 +196496,26 @@ public static class AssemblyQuestLoader num = 1; List list353 = new List(num); CollectionsMarshal.SetCount(list353, num); - CollectionsMarshal.AsSpan(list353)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list353); + index = 0; + span[index] = "JerryWester"; questRoot43.Author = list353; - num = 6; - List list354 = new List(num); - CollectionsMarshal.SetCount(list354, num); - Span span148 = CollectionsMarshal.AsSpan(list354); - ref QuestSequence reference259 = ref span148[0]; + index = 6; + List list354 = new List(index); + CollectionsMarshal.SetCount(list354, index); + span2 = CollectionsMarshal.AsSpan(list354); + num = 0; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + span3 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -164391,7 +196529,8 @@ public static class AssemblyQuestLoader }; obj218.Steps = list355; reference259 = obj218; - ref QuestSequence reference260 = ref span148[1]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 @@ -164399,28 +196538,33 @@ public static class AssemblyQuestLoader num2 = 2; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span149 = CollectionsMarshal.AsSpan(list356); - span149[0] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) + span3 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) { PickUpQuestId = new QuestId(2842) }; - span149[1] = new QuestStep(EInteractionType.Interact, 2009008u, new Vector3(-171.2215f, 294.5144f, 302.44897f), 620); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009008u, new Vector3(-171.2215f, 294.5144f, 302.44897f), 620); obj219.Steps = list356; reference260 = obj219; - ref QuestSequence reference261 = ref span148[2]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - Span span150 = CollectionsMarshal.AsSpan(list357); - span150[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + index2 = 2; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620 }; - ref QuestStep reference262 = ref span150[1]; + num2++; + ref QuestStep reference262 = ref span3[num2]; QuestStep obj221 = new QuestStep(EInteractionType.Combat, 2009009u, new Vector3(-115.40399f, 305.47034f, 161.3031f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -164428,14 +196572,17 @@ public static class AssemblyQuestLoader num3 = 2; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span151 = CollectionsMarshal.AsSpan(list358); - span151[0] = 8032u; - span151[1] = 8045u; + span6 = CollectionsMarshal.AsSpan(list358); + num4 = 0; + span6[num4] = 8032u; + num4++; + span6[num4] = 8045u; obj221.KillEnemyDataIds = list358; reference262 = obj221; obj220.Steps = list357; reference261 = obj220; - ref QuestSequence reference263 = ref span148[3]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 @@ -164443,31 +196590,39 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1021616u, new Vector3(64.31665f, 305.92664f, 152.6665f), 620); + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021616u, new Vector3(64.31665f, 305.92664f, 152.6665f), 620); obj222.Steps = list359; reference263 = obj222; - ref QuestSequence reference264 = ref span148[4]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - ref QuestStep reference265 = ref CollectionsMarshal.AsSpan(list360)[0]; + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + ref QuestStep reference265 = ref span3[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, 2009010u, new Vector3(148.82117f, 308.73572f, 166.58276f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - CollectionsMarshal.AsSpan(list361)[0] = 7569u; + num4 = 1; + List list361 = new List(num4); + CollectionsMarshal.SetCount(list361, num4); + span6 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span6[num3] = 7569u; obj224.KillEnemyDataIds = list361; reference265 = obj224; obj223.Steps = list360; reference264 = obj223; - ref QuestSequence reference266 = ref span148[5]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -164475,7 +196630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); obj225.Steps = list362; reference266 = obj225; questRoot43.QuestSequence = list354; @@ -164485,24 +196642,30 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list363); + index = 0; + span[index] = "JerryWester"; questRoot44.Author = list363; - num = 3; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span152 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference267 = ref span152[0]; + index = 3; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + span2 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); obj226.Steps = list365; reference267 = obj226; - ref QuestSequence reference268 = ref span152[1]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 1 @@ -164510,12 +196673,16 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - ref QuestStep reference269 = ref CollectionsMarshal.AsSpan(list366)[0]; + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + ref QuestStep reference269 = ref span3[index2]; QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 1020642u, new Vector3(302.93726f, 324.3033f, 383.04712f), 620); num3 = 1; List list367 = new List(num3); CollectionsMarshal.SetCount(list367, num3); - CollectionsMarshal.AsSpan(list367)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list367); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA617_02543_Q1_000_000"), @@ -164525,15 +196692,18 @@ public static class AssemblyQuestLoader reference269 = questStep42; obj227.Steps = list366; reference268 = obj227; - ref QuestSequence reference270 = ref span152[2]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020645u, new Vector3(257.80115f, 314.40753f, 416.15918f), 620); + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020645u, new Vector3(257.80115f, 314.40753f, 416.15918f), 620); obj228.Steps = list368; reference270 = obj228; questRoot44.QuestSequence = list364; @@ -164543,13 +196713,16 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - CollectionsMarshal.AsSpan(list369)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list369); + index = 0; + span[index] = "JerryWester"; questRoot45.Author = list369; - num = 9; - List list370 = new List(num); - CollectionsMarshal.SetCount(list370, num); - Span span153 = CollectionsMarshal.AsSpan(list370); - ref QuestSequence reference271 = ref span153[0]; + index = 8; + List list370 = new List(index); + CollectionsMarshal.SetCount(list370, index); + span2 = CollectionsMarshal.AsSpan(list370); + num = 0; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -164557,36 +196730,44 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023606u, new Vector3(257.1908f, 314.22742f, 418.2954f), 620) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023606u, new Vector3(257.1908f, 314.22742f, 418.2954f), 620) { StopDistance = 7f }; obj229.Steps = list371; reference271 = obj229; - ref QuestSequence reference272 = ref span153[1]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list372)[0]; + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference273 = ref span3[num2]; QuestStep obj231 = new QuestStep(EInteractionType.Combat, 2009011u, new Vector3(306.38586f, 318.5625f, 432.45593f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - Span span154 = CollectionsMarshal.AsSpan(list373); - span154[0] = 7553u; - span154[1] = 7554u; + num4 = 2; + List list373 = new List(num4); + CollectionsMarshal.SetCount(list373, num4); + span6 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span6[num3] = 7553u; + num3++; + span6[num3] = 7554u; obj231.KillEnemyDataIds = list373; reference273 = obj231; obj230.Steps = list372; reference272 = obj230; - ref QuestSequence reference274 = ref span153[2]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 2 @@ -164594,7 +196775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list374)[0]; + span3 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + ref QuestStep reference275 = ref span3[index2]; QuestStep obj233 = new QuestStep(EInteractionType.Combat, 2009012u, new Vector3(333.36377f, 322.0111f, 439.3529f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -164602,25 +196785,31 @@ public static class AssemblyQuestLoader num3 = 2; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - Span span155 = CollectionsMarshal.AsSpan(list375); - span155[0] = 8033u; - span155[1] = 8045u; + span6 = CollectionsMarshal.AsSpan(list375); + num4 = 0; + span6[num4] = 8033u; + num4++; + span6[num4] = 8045u; obj233.KillEnemyDataIds = list375; reference275 = obj233; obj232.Steps = list374; reference274 = obj232; - ref QuestSequence reference276 = ref span153[3]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 1020646u, new Vector3(385.7633f, 332.03845f, 487.0526f), 620); + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020646u, new Vector3(385.7633f, 332.03845f, 487.0526f), 620); obj234.Steps = list376; reference276 = obj234; - ref QuestSequence reference277 = ref span153[4]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -164628,33 +196817,41 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list377)[0]; + span3 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + ref QuestStep reference278 = ref span3[index2]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, 2009013u, new Vector3(422.2323f, 335.46948f, 481.74243f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list378 = new List(num3); - CollectionsMarshal.SetCount(list378, num3); - Span span156 = CollectionsMarshal.AsSpan(list378); - span156[0] = 7568u; - span156[1] = 8040u; + num4 = 2; + List list378 = new List(num4); + CollectionsMarshal.SetCount(list378, num4); + span6 = CollectionsMarshal.AsSpan(list378); + num3 = 0; + span6[num3] = 7568u; + num3++; + span6[num3] = 8040u; obj236.KillEnemyDataIds = list378; reference278 = obj236; obj235.Steps = list377; reference277 = obj235; - ref QuestSequence reference279 = ref span153[5]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 2008212u, new Vector3(431.11304f, 335.6526f, 487.17468f), 620); + index2 = 1; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + span3 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008212u, new Vector3(431.11304f, 335.6526f, 487.17468f), 620); obj237.Steps = list379; reference279 = obj237; - ref QuestSequence reference280 = ref span153[6]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 6 @@ -164662,7 +196859,9 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - ref QuestStep reference281 = ref CollectionsMarshal.AsSpan(list380)[0]; + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + ref QuestStep reference281 = ref span3[index2]; QuestStep questStep43 = new QuestStep(EInteractionType.Duty, null, null, 620); DutyOptions obj239 = new DutyOptions { @@ -164672,27 +196871,28 @@ public static class AssemblyQuestLoader num3 = 2; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span157 = CollectionsMarshal.AsSpan(list381); - span157[0] = "(before boss 2) AD doesn't attack magitek pods, but waits for enemies to spawn from them (even though it has explicit waypoints)"; - span157[1] = "(boss 2) VBM moves out of the towers before their mechanic is resolved, sometimes killing the NPC healer"; + span = CollectionsMarshal.AsSpan(list381); + num4 = 0; + span[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++; + span[num4] = "(boss 2) VBM moves out of the towers before their mechanic is resolved, sometimes killing the NPC healer"; obj239.Notes = list381; questStep43.DutyOptions = obj239; reference281 = questStep43; obj238.Steps = list380; reference280 = obj238; - span153[7] = new QuestSequence - { - Sequence = 7 - }; - ref QuestSequence reference282 = ref span153[8]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020647u, new Vector3(561.45557f, 344.11768f, 435.3551f), 620) + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + span3 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020647u, new Vector3(561.45557f, 344.11768f, 435.3551f), 620) { StopDistance = 5f }; @@ -164705,13 +196905,16 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - CollectionsMarshal.AsSpan(list383)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list383); + index = 0; + span[index] = "JerryWester"; questRoot46.Author = list383; - num = 2; - List list384 = new List(num); - CollectionsMarshal.SetCount(list384, num); - Span span158 = CollectionsMarshal.AsSpan(list384); - ref QuestSequence reference283 = ref span158[0]; + index = 2; + List list384 = new List(index); + CollectionsMarshal.SetCount(list384, index); + span2 = CollectionsMarshal.AsSpan(list384); + num = 0; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -164719,18 +196922,23 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020648u, new Vector3(568.1697f, 344.1177f, 435.29407f), 620); + span3 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020648u, new Vector3(568.1697f, 344.1177f, 435.29407f), 620); obj241.Steps = list385; reference283 = obj241; - ref QuestSequence reference284 = ref span158[1]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + span3 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); obj242.Steps = list386; reference284 = obj242; questRoot46.QuestSequence = list384; @@ -164740,13 +196948,16 @@ public static class AssemblyQuestLoader num = 1; List list387 = new List(num); CollectionsMarshal.SetCount(list387, num); - CollectionsMarshal.AsSpan(list387)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list387); + index = 0; + span[index] = "JerryWester"; questRoot47.Author = list387; - num = 7; - List list388 = new List(num); - CollectionsMarshal.SetCount(list388, num); - Span span159 = CollectionsMarshal.AsSpan(list388); - ref QuestSequence reference285 = ref span159[0]; + index = 7; + List list388 = new List(index); + CollectionsMarshal.SetCount(list388, index); + span2 = CollectionsMarshal.AsSpan(list388); + num = 0; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -164754,24 +196965,30 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); + span3 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); obj243.Steps = list389; reference285 = obj243; - ref QuestSequence reference286 = ref span159[1]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1022370u, new Vector3(265.156f, 322.83618f, 746.94434f), 620) + index2 = 1; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + span3 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022370u, new Vector3(265.156f, 322.83618f, 746.94434f), 620) { StopDistance = 7f }; obj244.Steps = list390; reference286 = obj244; - ref QuestSequence reference287 = ref span159[2]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -164779,24 +196996,30 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1022371u, new Vector3(259.84583f, 322.83618f, 740.6881f), 620) + span3 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022371u, new Vector3(259.84583f, 322.83618f, 740.6881f), 620) { StopDistance = 7f }; obj245.Steps = list391; reference287 = obj245; - ref QuestSequence reference288 = ref span159[3]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1020653u, new Vector3(202.10571f, 311.14526f, 606.16455f), 620); + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + span3 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020653u, new Vector3(202.10571f, 311.14526f, 606.16455f), 620); obj246.Steps = list392; reference288 = obj246; - ref QuestSequence reference289 = ref span159[4]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 4 @@ -164804,39 +197027,48 @@ public static class AssemblyQuestLoader num2 = 2; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span160 = CollectionsMarshal.AsSpan(list393); - span160[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007984u, new Vector3(146.6239f, 303.7307f, 460.80713f), 620) + span3 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007984u, new Vector3(146.6239f, 303.7307f, 460.80713f), 620) { AetherCurrentId = 2818157u }; - ref QuestStep reference290 = ref span160[1]; + index2++; + ref QuestStep reference290 = ref span3[index2]; QuestStep obj248 = new QuestStep(EInteractionType.Combat, 1020657u, new Vector3(143.6637f, 298.43732f, 399.95422f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list394 = new List(num3); - CollectionsMarshal.SetCount(list394, num3); - Span span161 = CollectionsMarshal.AsSpan(list394); - span161[0] = 7494u; - span161[1] = 7536u; - span161[2] = 7565u; + num4 = 3; + List list394 = new List(num4); + CollectionsMarshal.SetCount(list394, num4); + span6 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + span6[num3] = 7494u; + num3++; + span6[num3] = 7536u; + num3++; + span6[num3] = 7565u; obj248.KillEnemyDataIds = list394; reference290 = obj248; obj247.Steps = list393; reference289 = obj247; - ref QuestSequence reference291 = ref span159[5]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1020658u, new Vector3(404.28784f, 334.2325f, 484.45862f), 620); + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + span3 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020658u, new Vector3(404.28784f, 334.2325f, 484.45862f), 620); obj249.Steps = list395; reference291 = obj249; - ref QuestSequence reference292 = ref span159[6]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue @@ -164844,7 +197076,9 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020660u, new Vector3(318.16577f, 324.3033f, 376.88245f), 620); + span3 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020660u, new Vector3(318.16577f, 324.3033f, 376.88245f), 620); obj250.Steps = list396; reference292 = obj250; questRoot47.QuestSequence = list388; @@ -164854,24 +197088,30 @@ public static class AssemblyQuestLoader num = 1; List list397 = new List(num); CollectionsMarshal.SetCount(list397, num); - CollectionsMarshal.AsSpan(list397)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list397); + index = 0; + span[index] = "JerryWester"; questRoot48.Author = list397; - num = 4; - List list398 = new List(num); - CollectionsMarshal.SetCount(list398, num); - Span span162 = CollectionsMarshal.AsSpan(list398); - ref QuestSequence reference293 = ref span162[0]; + index = 4; + List list398 = new List(index); + CollectionsMarshal.SetCount(list398, index); + span2 = CollectionsMarshal.AsSpan(list398); + num = 0; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020661u, new Vector3(316.823f, 324.3033f, 378.6526f), 620); + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020661u, new Vector3(316.823f, 324.3033f, 378.6526f), 620); obj251.Steps = list399; reference293 = obj251; - ref QuestSequence reference294 = ref span162[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 1 @@ -164879,7 +197119,9 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -164890,18 +197132,22 @@ public static class AssemblyQuestLoader }; obj252.Steps = list400; reference294 = obj252; - ref QuestSequence reference295 = ref span162[2]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 2008216u, new Vector3(-52.47583f, -0.015319824f, -23.39215f), 635); + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008216u, new Vector3(-52.47583f, -0.015319824f, -23.39215f), 635); obj253.Steps = list401; reference295 = obj253; - ref QuestSequence reference296 = ref span162[3]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = byte.MaxValue @@ -164909,7 +197155,9 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) + span3 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) { StopDistance = 5f }; @@ -164922,21 +197170,26 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list403); + index = 0; + span[index] = "JerryWester"; questRoot49.Author = list403; - num = 5; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span163 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference297 = ref span163[0]; + index = 5; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + span2 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -164950,7 +197203,8 @@ public static class AssemblyQuestLoader }; obj255.Steps = list405; reference297 = obj255; - ref QuestSequence reference298 = ref span163[1]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 1 @@ -164958,24 +197212,29 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1020412u, new Vector3(-137.74323f, 0.5980506f, -81.498474f), 635); + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020412u, new Vector3(-137.74323f, 0.5980506f, -81.498474f), 635); obj256.Steps = list406; reference298 = obj256; - ref QuestSequence reference299 = ref span163[2]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - Span span164 = CollectionsMarshal.AsSpan(list407); - span164[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.59692f, 257.52652f, 737.01855f), 620) + index2 = 4; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.59692f, 257.52652f, 737.01855f), 620) { Mount = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - span164[1] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -164986,7 +197245,8 @@ public static class AssemblyQuestLoader } } }; - span164[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -164996,13 +197256,15 @@ public static class AssemblyQuestLoader } } }; - span164[3] = new QuestStep(EInteractionType.Interact, 1020649u, new Vector3(570.94666f, 344.1177f, 422.17126f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020649u, new Vector3(570.94666f, 344.1177f, 422.17126f), 620) { Fly = true }; obj257.Steps = list407; reference299 = obj257; - ref QuestSequence reference300 = ref span163[3]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 3 @@ -165010,23 +197272,28 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(590.9373f, 344.0868f, 421.07693f), 620); + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(590.9373f, 344.0868f, 421.07693f), 620); obj258.Steps = list408; reference300 = obj258; - ref QuestSequence reference301 = ref span163[4]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - Span span165 = CollectionsMarshal.AsSpan(list409); - span165[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) + index2 = 2; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + span3 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) { Aetheryte = EAetheryteLocation.LochsPortaPraetoria }; - span165[1] = new QuestStep(EInteractionType.CompleteQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621); obj259.Steps = list409; reference301 = obj259; questRoot49.QuestSequence = list404; @@ -165036,13 +197303,16 @@ public static class AssemblyQuestLoader num = 1; List list410 = new List(num); CollectionsMarshal.SetCount(list410, num); - CollectionsMarshal.AsSpan(list410)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list410); + index = 0; + span[index] = "JerryWester"; questRoot50.Author = list410; - num = 3; - List list411 = new List(num); - CollectionsMarshal.SetCount(list411, num); - Span span166 = CollectionsMarshal.AsSpan(list411); - ref QuestSequence reference302 = ref span166[0]; + index = 3; + List list411 = new List(index); + CollectionsMarshal.SetCount(list411, index); + span2 = CollectionsMarshal.AsSpan(list411); + num = 0; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 @@ -165050,7 +197320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -165063,16 +197335,18 @@ public static class AssemblyQuestLoader }; obj260.Steps = list412; reference302 = obj260; - ref QuestSequence reference303 = ref span166[1]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - Span span167 = CollectionsMarshal.AsSpan(list413); - ref QuestStep reference304 = ref span167[0]; + index2 = 4; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + ref QuestStep reference304 = ref span3[num2]; QuestStep obj262 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { TargetTerritoryId = (ushort)620 @@ -165082,25 +197356,32 @@ public static class AssemblyQuestLoader num3 = 1; List list414 = new List(num3); CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = 620; + Span span8 = CollectionsMarshal.AsSpan(list414); + num4 = 0; + span8[num4] = 620; skipStepConditions2.InTerritory = list414; - num3 = 1; - List list415 = new List(num3); - CollectionsMarshal.SetCount(list415, num3); - CollectionsMarshal.AsSpan(list415)[0] = new QuestId(2860); + num4 = 1; + List list415 = new List(num4); + CollectionsMarshal.SetCount(list415, num4); + Span span9 = CollectionsMarshal.AsSpan(list415); + num3 = 0; + span9[num3] = new QuestId(2860); skipStepConditions2.QuestsCompleted = list415; skipConditions2.StepIf = skipStepConditions2; obj262.SkipConditions = skipConditions2; reference304 = obj262; - span167[1] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620) { PickUpQuestId = new QuestId(2851) }; - span167[2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620) { PickUpQuestId = new QuestId(2860) }; - ref QuestStep reference305 = ref span167[3]; + num2++; + ref QuestStep reference305 = ref span3[num2]; QuestStep obj263 = new QuestStep(EInteractionType.SinglePlayerDuty, 1021705u, new Vector3(-649.897f, 50.00002f, -1.9990234f), 621) { StopDistance = 7f, @@ -165110,13 +197391,16 @@ public static class AssemblyQuestLoader num3 = 1; List list416 = new List(num3); CollectionsMarshal.SetCount(list416, num3); - CollectionsMarshal.AsSpan(list416)[0] = "Navigation gets stuck in various places"; + span = CollectionsMarshal.AsSpan(list416); + num4 = 0; + span[num4] = "Navigation gets stuck in various places"; singlePlayerDutyOptions.Notes = list416; obj263.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference305 = obj263; obj261.Steps = list413; reference303 = obj261; - ref QuestSequence reference306 = ref span166[2]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -165124,7 +197408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) + span3 = CollectionsMarshal.AsSpan(list417); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) { StopDistance = 5f }; @@ -165141,13 +197427,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -165155,37 +197444,45 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007992u, new Vector3(109.60547f, 41.97754f, 788.63196f), 621) + index2 = 4; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007992u, new Vector3(109.60547f, 41.97754f, 788.63196f), 621) { AetherCurrentId = 2818170u }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.08614f, 42.177456f, 772.668f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.08614f, 42.177456f, 772.668f), 621) { Mount = true }; - span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.00177f, 45.410225f, 755.10895f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.00177f, 45.410225f, 755.10895f), 621) { DisableNavmesh = true }; - span2[3] = new QuestStep(EInteractionType.Interact, 1021712u, new Vector3(210.98645f, -0.3f, 340.3219f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021712u, new Vector3(210.98645f, -0.3f, 340.3219f), 621); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -165193,37 +197490,44 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(195.84085f, -0.6f, 315.3333f), 621) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(195.84085f, -0.6f, 315.3333f), 621) { StopDistance = 0.25f }; - span3[1] = new QuestStep(EInteractionType.Interact, 1021714u, new Vector3(317.03674f, -94.16345f, 350.91174f), 621); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021714u, new Vector3(317.03674f, -94.16345f, 350.91174f), 621); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.62668f, -21.210978f, 478.69604f), 621) + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.62668f, -21.210978f, 478.69604f), 621) { StopDistance = 0.25f, RestartNavigationIfCancelled = false }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.8843f, 0f, 468.1183f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.8843f, 0f, 468.1183f), 621) { StopDistance = 0.25f, DisableNavmesh = true }; - span4[2] = new QuestStep(EInteractionType.Interact, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -165231,7 +197535,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.SinglePlayerDuty, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); SinglePlayerDutyOptions obj6 = new SinglePlayerDutyOptions { @@ -165240,25 +197546,26 @@ public static class AssemblyQuestLoader int num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = "(Fordola) Gets hit by AOEs due to moving into them before the mechanic resolves"; + span = CollectionsMarshal.AsSpan(list8); + int index3 = 0; + span[index3] = "(Fordola) Gets hit by AOEs due to moving into them before the mechanic resolves"; obj6.Notes = list8; questStep.SinglePlayerDutyOptions = obj6; reference6 = questStep; obj5.Steps = list7; reference5 = obj5; - span[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); obj7.Steps = list9; reference7 = obj7; questRoot.QuestSequence = list2; @@ -165268,13 +197575,16 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list10; - num = 6; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span5[0]; + index = 6; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -165282,30 +197592,37 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span5[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007994u, new Vector3(683.40576f, 69.99304f, 521.1719f), 621) + index2 = 3; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007994u, new Vector3(683.40576f, 69.99304f, 521.1719f), 621) { AetherCurrentId = 2818172u }; - span6[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) { Aetheryte = EAetheryteLocation.LochsAlaMhiganQuarter }; - span6[2] = new QuestStep(EInteractionType.Interact, 1022733u, new Vector3(643.67126f, 80f, 654.16943f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022733u, new Vector3(643.67126f, 80f, 654.16943f), 621); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span5[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -165313,29 +197630,35 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-672.0402f, 49.99975f, 15.600315f), 621) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-672.0402f, 49.99975f, 15.600315f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - span7[1] = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span5[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1021719u, new Vector3(-669.21497f, 50.01024f, 17.92926f), 621) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021719u, new Vector3(-669.21497f, 50.01024f, 17.92926f), 621) { StopDistance = 5f }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span5[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 @@ -165343,60 +197666,84 @@ public static class AssemblyQuestLoader num2 = 3; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref QuestStep reference13 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1021703u, new Vector3(-631.4946f, 53.75f, 13.717773f), 621); - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span4 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list17; reference13 = questStep2; - ref QuestStep reference14 = ref span8[1]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1021701u, new Vector3(-599.38965f, 33.999783f, 0.5340576f), 621); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list18; reference14 = questStep3; - ref QuestStep reference15 = ref span8[2]; + index2++; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1021702u, new Vector3(-589.9901f, 33.999954f, -4.043701f), 621); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span11 = CollectionsMarshal.AsSpan(list19); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list19; reference15 = questStep4; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference16 = ref span5[5]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); obj13.Steps = list20; reference16 = obj13; questRoot2.QuestSequence = list11; @@ -165406,13 +197753,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list21; - num = 5; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference17 = ref span12[0]; + index = 5; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -165420,7 +197770,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -165433,39 +197785,47 @@ public static class AssemblyQuestLoader }; obj14.Steps = list23; reference17 = obj14; - ref QuestSequence reference18 = ref span12[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) + index2 = 6; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) { PickUpQuestId = new QuestId(2881) }; - span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { PickUpQuestId = new QuestId(2877) }; - span13[2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { PickUpQuestId = new QuestId(2880) }; - span13[3] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { PickUpQuestId = new QuestId(2883) }; - span13[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007993u, new Vector3(261.5243f, 78.3855f, 69.93213f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007993u, new Vector3(261.5243f, 78.3855f, 69.93213f), 621) { AetherCurrentId = 2818171u }; - span13[5] = new QuestStep(EInteractionType.Interact, 1021722u, new Vector3(336.04932f, 78.00011f, 44.022217f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021722u, new Vector3(336.04932f, 78.00011f, 44.022217f), 621); obj15.Steps = list24; reference18 = obj15; - ref QuestSequence reference19 = ref span12[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -165473,7 +197833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022738u, new Vector3(509.60547f, 111.16203f, -107.133606f), 621) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022738u, new Vector3(509.60547f, 111.16203f, -107.133606f), 621) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -165482,20 +197844,25 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - ref QuestSequence reference20 = ref span12[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list26)[0]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1022739u, new Vector3(509.72766f, 111.38903f, -110.826355f), 621); num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA705_02552_Q1_000_075"), @@ -165505,7 +197872,8 @@ public static class AssemblyQuestLoader reference21 = questStep5; obj17.Steps = list26; reference20 = obj17; - ref QuestSequence reference22 = ref span12[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -165513,7 +197881,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); obj18.Steps = list28; reference22 = obj18; questRoot3.QuestSequence = list22; @@ -165523,24 +197893,30 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list29; - num = 9; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span14[0]; + index = 9; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); obj19.Steps = list31; reference23 = obj19; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -165548,7 +197924,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -165557,19 +197935,23 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference24 = obj20; - span14[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference25 = ref span14[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -165578,11 +197960,13 @@ public static class AssemblyQuestLoader }; obj21.Steps = list33; reference25 = obj21; - span14[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference26 = ref span14[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 @@ -165590,36 +197974,47 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621) { StopDistance = 7f }; obj22.Steps = list34; reference26 = obj22; - ref QuestSequence reference27 = ref span14[6]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span15 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference28 = ref span15[0]; + index2 = 5; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1021726u, new Vector3(-615.198f, 34.00002f, -7.1870728f), 621); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list36; reference28 = questStep6; - ref QuestStep reference29 = ref span15[1]; + num2++; + ref QuestStep reference29 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) { StopDistance = 1f @@ -165627,34 +198022,49 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list37; reference29 = obj24; - ref QuestStep reference30 = ref span15[2]; + num2++; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1022724u, new Vector3(-650.3243f, 50.00002f, 0.869751f), 621) { StopDistance = 7f }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span4 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list38; reference30 = obj25; - span15[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-668.1697f, 49.99959f, 10.722498f), 621); - ref QuestStep reference31 = ref span15[4]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-668.1697f, 49.99959f, 10.722498f), 621); + num2++; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) { StopDistance = 7f @@ -165662,18 +198072,25 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list39; reference31 = obj26; obj23.Steps = list35; reference27 = obj23; - ref QuestSequence reference32 = ref span14[7]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 7 @@ -165681,18 +198098,23 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621); obj27.Steps = list40; reference32 = obj27; - ref QuestSequence reference33 = ref span14[8]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021728u, new Vector3(65.384766f, -0.41614467f, -80.24719f), 635); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021728u, new Vector3(65.384766f, -0.41614467f, -80.24719f), 635); obj28.Steps = list41; reference33 = obj28; questRoot4.QuestSequence = list30; @@ -165702,13 +198124,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot5.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span20 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span20[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -165716,7 +198141,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021829u, new Vector3(-98.435974f, 4f, -104.997375f), 130) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021829u, new Vector3(-98.435974f, 4f, -104.997375f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -165729,15 +198156,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list44; reference34 = obj29; - ref QuestSequence reference35 = ref span20[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1021830u, new Vector3(-102.06769f, 6.9845653f, 12.008789f), 131) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021830u, new Vector3(-102.06769f, 6.9845653f, 12.008789f), 131) { AethernetShortcut = new AethernetShortcut { @@ -165747,7 +198177,8 @@ public static class AssemblyQuestLoader }; obj30.Steps = list45; reference35 = obj30; - ref QuestSequence reference36 = ref span20[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -165755,7 +198186,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021834u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021834u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { NextQuestId = new QuestId(2560) }; @@ -165768,22 +198201,26 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "liza"; questRoot6.Author = list47; - num = 4; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span21 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference37 = ref span21[0]; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span22 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference38 = ref span22[0]; + index2 = 4; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.EquipItem, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -165808,15 +198245,18 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 131; + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span6 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span6[num3] = 131; obj35.InTerritory = list50; obj34.AetheryteShortcutIf = obj35; obj33.SkipConditions = obj34; reference38 = obj33; - span22[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { ItemId = 20620u, SkipConditions = new SkipConditions @@ -165830,11 +198270,14 @@ public static class AssemblyQuestLoader } } }; - span22[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); - span22[3] = new QuestStep(EInteractionType.AcceptQuest, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); obj32.Steps = list49; reference37 = obj32; - ref QuestSequence reference39 = ref span21[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -165842,18 +198285,23 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); obj36.Steps = list51; reference39 = obj36; - ref QuestSequence reference40 = ref span21[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { StopDistance = 5f @@ -165861,7 +198309,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM501_02560_Q1_000_035") @@ -165870,7 +198320,8 @@ public static class AssemblyQuestLoader reference41 = obj38; obj37.Steps = list52; reference40 = obj37; - ref QuestSequence reference42 = ref span21[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -165878,7 +198329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -165897,21 +198350,26 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot7.Author = list55; - num = 8; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span23 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference43 = ref span23[0]; + index = 8; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -165929,7 +198387,8 @@ public static class AssemblyQuestLoader }; obj40.Steps = list57; reference43 = obj40; - ref QuestSequence reference44 = ref span23[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -165937,8 +198396,9 @@ public static class AssemblyQuestLoader num2 = 4; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span24 = CollectionsMarshal.AsSpan(list58); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.90921f, 4.650242f, 238.56398f), 141) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.90921f, 4.650242f, 238.56398f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -165947,62 +198407,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - ref QuestStep reference45 = ref span24[1]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1021843u, new Vector3(-164.3855f, 4.2354193f, 234.36328f), 141); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span25 = CollectionsMarshal.AsSpan(list59); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + span4 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list59; reference45 = questStep7; - ref QuestStep reference46 = ref span24[2]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1021844u, new Vector3(-157.27478f, 4.2354183f, 205.46265f), 141); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span26 = CollectionsMarshal.AsSpan(list60); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list60; reference46 = questStep8; - ref QuestStep reference47 = ref span24[3]; + index2++; + ref QuestStep reference47 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1021845u, new Vector3(-138.59778f, 4.211028f, 223.95667f), 141); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span27 = CollectionsMarshal.AsSpan(list61); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span4 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list61; reference47 = questStep9; obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference48 = ref span23[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1021847u, new Vector3(-153.0633f, 4.2354183f, 226.55066f), 141); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021847u, new Vector3(-153.0633f, 4.2354183f, 226.55066f), 141); obj42.Steps = list62; reference48 = obj42; - ref QuestSequence reference49 = ref span23[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -166010,24 +198495,30 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1022092u, new Vector3(-132.31104f, 3.9113228f, 221.20996f), 141); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022092u, new Vector3(-132.31104f, 3.9113228f, 221.20996f), 141); obj43.Steps = list63; reference49 = obj43; - ref QuestSequence reference50 = ref span23[4]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1021849u, new Vector3(91.17261f, 0.95918494f, 345.6931f), 141) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021849u, new Vector3(91.17261f, 0.95918494f, 345.6931f), 141) { Fly = true }; obj44.Steps = list64; reference50 = obj44; - ref QuestSequence reference51 = ref span23[5]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 5 @@ -166035,7 +198526,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list65)[0]; + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference52 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(101.36345f, 1.4716027f, 356.92258f), 141) { StopDistance = 0.5f, @@ -166044,26 +198537,32 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 7237u; + Span span7 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span7[index3] = 7237u; obj46.KillEnemyDataIds = list66; reference52 = obj46; obj45.Steps = list65; reference51 = obj45; - ref QuestSequence reference53 = ref span23[6]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1021854u, new Vector3(106.06543f, 1.957012f, 360.15857f), 141) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021854u, new Vector3(106.06543f, 1.957012f, 360.15857f), 141) { StopDistance = 7f }; obj47.Steps = list67; reference53 = obj47; - ref QuestSequence reference54 = ref span23[7]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -166071,7 +198570,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -166090,21 +198591,26 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot8.Author = list69; - num = 7; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference55 = ref span28[0]; + index = 7; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list71)[0]; + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + ref QuestStep reference56 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.AcceptQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -166119,17 +198625,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 128; + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span6 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span6[num3] = 128; obj51.InTerritory = list72; skipConditions.AetheryteShortcutIf = obj51; obj50.SkipConditions = skipConditions; reference56 = obj50; obj49.Steps = list71; reference55 = obj49; - ref QuestSequence reference57 = ref span28[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -166137,8 +198646,9 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span29 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference58 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129) { AethernetShortcut = new AethernetShortcut @@ -166150,57 +198660,81 @@ public static class AssemblyQuestLoader num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span30 = CollectionsMarshal.AsSpan(list74); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list74; reference58 = obj53; - ref QuestStep reference59 = ref span29[1]; + index2++; + ref QuestStep reference59 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span31 = CollectionsMarshal.AsSpan(list75); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span4 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list75; reference59 = questStep10; - ref QuestStep reference60 = ref span29[2]; + index2++; + ref QuestStep reference60 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list76; reference60 = questStep11; obj52.Steps = list73; reference57 = obj52; - ref QuestSequence reference61 = ref span28[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1021860u, new Vector3(-205.70691f, 16f, 52.8114f), 129); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021860u, new Vector3(-205.70691f, 16f, 52.8114f), 129); obj54.Steps = list77; reference61 = obj54; - ref QuestSequence reference62 = ref span28[3]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -166208,7 +198742,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1021862u, new Vector3(-176.62323f, 4f, 181.65857f), 129) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021862u, new Vector3(-176.62323f, 4f, 181.65857f), 129) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -166219,22 +198755,26 @@ public static class AssemblyQuestLoader }; obj55.Steps = list78; reference62 = obj55; - ref QuestSequence reference63 = ref span28[4]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj56.Steps = list79; reference63 = obj56; - ref QuestSequence reference64 = ref span28[5]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 5 @@ -166242,21 +198782,26 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021866u, new Vector3(673.54834f, 11.594437f, 390.7378f), 137) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021866u, new Vector3(673.54834f, 11.594437f, 390.7378f), 137) { Fly = true }; obj57.Steps = list80; reference64 = obj57; - ref QuestSequence reference65 = ref span28[6]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) { StopDistance = 1.5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -166271,13 +198816,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; questRoot9.Author = list82; - num = 9; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span33 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference66 = ref span33[0]; + index = 9; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -166285,7 +198833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) { StopDistance = 1.5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -166299,60 +198849,83 @@ public static class AssemblyQuestLoader }; obj59.Steps = list84; reference66 = obj59; - ref QuestSequence reference67 = ref span33[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span34 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference68 = ref span34[0]; + index2 = 3; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span4 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list86; reference68 = questStep12; - ref QuestStep reference69 = ref span34[1]; + num2++; + ref QuestStep reference69 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1000184u, new Vector3(12.130859f, -1.4203229f, 30.44165f), 132); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span36 = CollectionsMarshal.AsSpan(list87); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list87; reference69 = questStep13; - ref QuestStep reference70 = ref span34[2]; + num2++; + ref QuestStep reference70 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span37 = CollectionsMarshal.AsSpan(list88); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list88; reference70 = questStep14; obj60.Steps = list85; reference67 = obj60; - ref QuestSequence reference71 = ref span33[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -166360,21 +198933,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1021871u, new Vector3(-17.929382f, -3.5175722f, 8.895996f), 132); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021871u, new Vector3(-17.929382f, -3.5175722f, 8.895996f), 132); obj61.Steps = list89; reference71 = obj61; - ref QuestSequence reference72 = ref span33[3]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj62.Steps = list90; reference72 = obj62; - ref QuestSequence reference73 = ref span33[4]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -166382,7 +198961,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list91)[0]; + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference74 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(16.415976f, -13.3742895f, 13.173157f), 154) { StopDistance = 0.5f, @@ -166393,25 +198974,31 @@ public static class AssemblyQuestLoader num3 = 2; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span38 = CollectionsMarshal.AsSpan(list92); - span38[0] = 7492u; - span38[1] = 7493u; + span7 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span7[index3] = 7492u; + index3++; + span7[index3] = 7493u; obj64.KillEnemyDataIds = list92; reference74 = obj64; obj63.Steps = list91; reference73 = obj63; - ref QuestSequence reference75 = ref span33[5]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1021873u, new Vector3(15.6710205f, -13.159564f, 14.572327f), 154); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021873u, new Vector3(15.6710205f, -13.159564f, 14.572327f), 154); obj65.Steps = list93; reference75 = obj65; - ref QuestSequence reference76 = ref span33[6]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 6 @@ -166419,21 +199006,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1021877u, new Vector3(72.03784f, -13.573448f, -6.790344f), 154); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021877u, new Vector3(72.03784f, -13.573448f, -6.790344f), 154); obj66.Steps = list94; reference76 = obj66; - ref QuestSequence reference77 = ref span33[7]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1021923u, new Vector3(-16.739136f, -3.3721945f, 8.590759f), 132); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021923u, new Vector3(-16.739136f, -3.3721945f, 8.590759f), 132); obj67.Steps = list95; reference77 = obj67; - ref QuestSequence reference78 = ref span33[8]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -166441,7 +199034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166460,21 +199055,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; questRoot10.Author = list97; - num = 8; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span39 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference79 = ref span39[0]; + index = 8; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166492,7 +199092,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list99; reference79 = obj69; - ref QuestSequence reference80 = ref span39[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -166500,70 +199101,97 @@ public static class AssemblyQuestLoader num2 = 5; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span40 = CollectionsMarshal.AsSpan(list100); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.911125f, 0.8319905f, 69.05516f), 418); - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.70269f, -15.835008f, 69.00836f), 418) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.911125f, 0.8319905f, 69.05516f), 418); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.70269f, -15.835008f, 69.00836f), 418) { DisableNavmesh = true }; - ref QuestStep reference81 = ref span40[2]; + index2++; + ref QuestStep reference81 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1021882u, new Vector3(104.29541f, -20.020874f, 60.624023f), 418); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span41 = CollectionsMarshal.AsSpan(list101); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + span4 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list101; reference81 = questStep15; - ref QuestStep reference82 = ref span40[3]; + index2++; + ref QuestStep reference82 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021883u, new Vector3(35.202515f, -14.000005f, 34.74475f), 418); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span42 = CollectionsMarshal.AsSpan(list102); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list102; reference82 = questStep16; - ref QuestStep reference83 = ref span40[4]; + index2++; + ref QuestStep reference83 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1021884u, new Vector3(20.645447f, -12.020878f, 37.79651f), 418); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span43 = CollectionsMarshal.AsSpan(list103); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span4 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list103; reference83 = questStep17; obj70.Steps = list100; reference80 = obj70; - ref QuestSequence reference84 = ref span39[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span44 = CollectionsMarshal.AsSpan(list104); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.22194f, -12.020878f, 75.08158f), 418); - span44[1] = new QuestStep(EInteractionType.Interact, 1021885u, new Vector3(36.63684f, -6.947115f, 79.39258f), 418); + index2 = 2; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.22194f, -12.020878f, 75.08158f), 418); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021885u, new Vector3(36.63684f, -6.947115f, 79.39258f), 418); obj71.Steps = list104; reference84 = obj71; - ref QuestSequence reference85 = ref span39[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -166571,18 +199199,23 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1022094u, new Vector3(110.27698f, -20.000004f, 69.93213f), 418); + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022094u, new Vector3(110.27698f, -20.000004f, 69.93213f), 418); obj72.Steps = list105; reference85 = obj72; - ref QuestSequence reference86 = ref span39[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1021886u, new Vector3(0.015197754f, 13.46524f, 59.15918f), 419) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021886u, new Vector3(0.015197754f, 13.46524f, 59.15918f), 419) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -166593,7 +199226,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list106; reference86 = obj73; - ref QuestSequence reference87 = ref span39[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -166601,7 +199235,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list107)[0]; + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(360.62927f, 161.10802f, 27.17857f), 397) { StopDistance = 0.5f, @@ -166612,25 +199248,31 @@ public static class AssemblyQuestLoader num3 = 2; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = 7237u; - span45[1] = 7494u; + span7 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span7[index3] = 7237u; + index3++; + span7[index3] = 7494u; obj75.KillEnemyDataIds = list108; reference88 = obj75; obj74.Steps = list107; reference87 = obj74; - ref QuestSequence reference89 = ref span39[6]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1021888u, new Vector3(358.87683f, 161.108f, 26.5354f), 397); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021888u, new Vector3(358.87683f, 161.108f, 26.5354f), 397); obj76.Steps = list109; reference89 = obj76; - ref QuestSequence reference90 = ref span39[7]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -166638,7 +199280,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166657,21 +199301,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "liza"; questRoot11.Author = list111; - num = 6; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span46 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference91 = ref span46[0]; + index = 5; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166689,7 +199338,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list113; reference91 = obj78; - ref QuestSequence reference92 = ref span46[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -166697,21 +199347,27 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 2008327u, new Vector3(59.40332f, 23.971863f, -5.6000977f), 418); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008327u, new Vector3(59.40332f, 23.971863f, -5.6000977f), 418); obj79.Steps = list114; reference92 = obj79; - ref QuestSequence reference93 = ref span46[2]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2008328u, new Vector3(-17.288513f, 5.4779663f, 29.709229f), 418); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008328u, new Vector3(-17.288513f, 5.4779663f, 29.709229f), 418); obj80.Steps = list115; reference93 = obj80; - ref QuestSequence reference94 = ref span46[3]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -166719,8 +199375,9 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span47 = CollectionsMarshal.AsSpan(list116); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.55804f, 203.43318f, 680.2831f), 397) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.55804f, 203.43318f, 680.2831f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166731,25 +199388,25 @@ public static class AssemblyQuestLoader } } }; - span47[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021894u, new Vector3(-217.82257f, 112.33306f, -243.94604f), 397) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021894u, new Vector3(-217.82257f, 112.33306f, -243.94604f), 397) { Fly = true }; obj81.Steps = list116; reference94 = obj81; - span46[4] = new QuestSequence - { - Sequence = 4 - }; - ref QuestSequence reference95 = ref span46[5]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { NextQuestId = new QuestId(2566) }; @@ -166762,13 +199419,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot12.Author = list118; - num = 6; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span48 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference96 = ref span48[0]; + index = 6; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -166776,7 +199436,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -166794,18 +199456,22 @@ public static class AssemblyQuestLoader }; obj83.Steps = list120; reference96 = obj83; - ref QuestSequence reference97 = ref span48[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1022185u, new Vector3(39.04773f, 8f, -119.76807f), 130); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022185u, new Vector3(39.04773f, 8f, -119.76807f), 130); obj84.Steps = list121; reference97 = obj84; - ref QuestSequence reference98 = ref span48[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -166813,7 +199479,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list122)[0]; + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-99.923485f, 49.52189f, 322.85992f), 140) { StopDistance = 0.5f, @@ -166825,29 +199493,35 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 7495u; + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span7 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span7[num3] = 7495u; obj86.KillEnemyDataIds = list123; reference99 = obj86; obj85.Steps = list122; reference98 = obj85; - ref QuestSequence reference100 = ref span48[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1022186u, new Vector3(-98.95477f, 49.469913f, 317.83008f), 140) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022186u, new Vector3(-98.95477f, 49.469913f, 317.83008f), 140) { StopDistance = 7f }; obj87.Steps = list124; reference100 = obj87; - ref QuestSequence reference101 = ref span48[4]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -166855,21 +199529,26 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) { Fly = true }; obj88.Steps = list125; reference101 = obj88; - ref QuestSequence reference102 = ref span48[5]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -166888,13 +199567,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "liza"; questRoot13.Author = list127; - num = 5; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span49 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference103 = ref span49[0]; + index = 5; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -166902,7 +199584,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -166920,15 +199604,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list129; reference103 = obj90; - ref QuestSequence reference104 = ref span49[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -166939,7 +199626,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list130; reference104 = obj91; - ref QuestSequence reference105 = ref span49[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -166947,14 +199635,16 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) { TargetTerritoryId = (ushort)613, Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference106 = ref span50[1]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(568.7077f, 0.73303545f, 754.9407f), 613) { StopDistance = 0.5f, @@ -166964,23 +199654,29 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 7496u; + span7 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span7[index3] = 7496u; obj93.KillEnemyDataIds = list132; reference106 = obj93; obj92.Steps = list131; reference105 = obj92; - ref QuestSequence reference107 = ref span49[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1022191u, new Vector3(567.8645f, 0.73303545f, 755.1842f), 613); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022191u, new Vector3(567.8645f, 0.73303545f, 755.1842f), 613); obj94.Steps = list133; reference107 = obj94; - ref QuestSequence reference108 = ref span49[4]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -166988,7 +199684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list134)[0]; + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.CompleteQuest, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -166998,10 +199696,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeSekiseigumiBarracks } }; - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + span5 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM630_02567_Q1_000_054") @@ -167018,21 +199718,26 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "liza"; questRoot14.Author = list136; - num = 8; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span51 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference110 = ref span51[0]; + index = 8; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -167050,7 +199755,8 @@ public static class AssemblyQuestLoader }; obj97.Steps = list138; reference110 = obj97; - ref QuestSequence reference111 = ref span51[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -167058,7 +199764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2008439u, new Vector3(-100.87744f, -6.0273438f, 67.03284f), 628) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008439u, new Vector3(-100.87744f, -6.0273438f, 67.03284f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167068,18 +199776,22 @@ public static class AssemblyQuestLoader }; obj98.Steps = list139; reference111 = obj98; - ref QuestSequence reference112 = ref span51[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2008440u, new Vector3(-140.36774f, -7.0649414f, 78.3551f), 628); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008440u, new Vector3(-140.36774f, -7.0649414f, 78.3551f), 628); obj99.Steps = list140; reference112 = obj99; - ref QuestSequence reference113 = ref span51[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -167087,21 +199799,27 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 2008441u, new Vector3(-140.33728f, -7.0039062f, 72.739746f), 628); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008441u, new Vector3(-140.33728f, -7.0039062f, 72.739746f), 628); obj100.Steps = list141; reference113 = obj100; - ref QuestSequence reference114 = ref span51[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1022196u, new Vector3(-22.293457f, -3f, 31.814941f), 628); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022196u, new Vector3(-22.293457f, -3f, 31.814941f), 628); obj101.Steps = list142; reference114 = obj101; - ref QuestSequence reference115 = ref span51[5]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 5 @@ -167109,7 +199827,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1022197u, new Vector3(46.219482f, 8.02f, 144.79285f), 628) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022197u, new Vector3(46.219482f, 8.02f, 144.79285f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167119,15 +199839,18 @@ public static class AssemblyQuestLoader }; obj102.Steps = list143; reference115 = obj102; - ref QuestSequence reference116 = ref span51[6]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022201u, new Vector3(37.338745f, 5.951233f, -133.95898f), 628) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022201u, new Vector3(37.338745f, 5.951233f, -133.95898f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167137,7 +199860,8 @@ public static class AssemblyQuestLoader }; obj103.Steps = list144; reference116 = obj103; - ref QuestSequence reference117 = ref span51[7]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -167145,7 +199869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022203u, new Vector3(128.55725f, 15f, -158.09875f), 628) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022203u, new Vector3(128.55725f, 15f, -158.09875f), 628) { NextQuestId = new QuestId(2569) }; @@ -167158,21 +199884,26 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "liza"; questRoot15.Author = list146; - num = 8; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span52 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference118 = ref span52[0]; + index = 8; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -167191,7 +199922,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list148; reference118 = obj105; - ref QuestSequence reference119 = ref span52[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -167199,22 +199931,27 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1022204u, new Vector3(537.01074f, 70.39123f, 25.375732f), 614) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022204u, new Vector3(537.01074f, 70.39123f, 25.375732f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj106.Steps = list149; reference119 = obj106; - ref QuestSequence reference120 = ref span52[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list150)[0]; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference121 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2008443u, new Vector3(255.02393f, 7.7667847f, 458.5182f), 614) { Fly = true, @@ -167223,12 +199960,15 @@ public static class AssemblyQuestLoader num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = 7497u; + span7 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span7[index3] = 7497u; obj108.KillEnemyDataIds = list151; reference121 = obj108; obj107.Steps = list150; reference120 = obj107; - ref QuestSequence reference122 = ref span52[3]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -167236,29 +199976,36 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list152)[0]; + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2008444u, new Vector3(152.57495f, 13.626221f, 425.55872f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 7498u; + index3 = 1; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + span7 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span7[num3] = 7498u; obj110.KillEnemyDataIds = list153; reference123 = obj110; obj109.Steps = list152; reference122 = obj109; - ref QuestSequence reference124 = ref span52[4]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference125 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, 2008445u, new Vector3(64.43884f, 10.788086f, 444.23596f), 614) { Fly = true, @@ -167267,12 +200014,15 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 7496u; + span7 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span7[index3] = 7496u; obj112.KillEnemyDataIds = list155; reference125 = obj112; obj111.Steps = list154; reference124 = obj111; - ref QuestSequence reference126 = ref span52[5]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 5 @@ -167280,26 +200030,33 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614) { Fly = true }; obj113.Steps = list156; reference126 = obj113; - ref QuestSequence reference127 = ref span52[6]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list157)[0]; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference128 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614); - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span5 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM680_02569_Q1_000_041") @@ -167308,7 +200065,8 @@ public static class AssemblyQuestLoader reference128 = questStep18; obj114.Steps = list157; reference127 = obj114; - ref QuestSequence reference129 = ref span52[7]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -167316,7 +200074,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { NextQuestId = new QuestId(2570) }; @@ -167329,21 +200089,26 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot16.Author = list160; - num = 5; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span53 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference130 = ref span53[0]; + index = 5; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -167361,7 +200126,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list162; reference130 = obj116; - ref QuestSequence reference131 = ref span53[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -167369,8 +200135,9 @@ public static class AssemblyQuestLoader num2 = 3; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span54 = CollectionsMarshal.AsSpan(list163); - ref QuestStep reference132 = ref span54[0]; + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference132 = ref span3[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1022208u, new Vector3(14.755432f, -6.558981E-11f, -66.88031f), 628) { AethernetShortcut = new AethernetShortcut @@ -167382,30 +200149,44 @@ public static class AssemblyQuestLoader num3 = 6; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span55 = CollectionsMarshal.AsSpan(list164); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list164; reference132 = obj118; - ref QuestStep reference133 = ref span54[1]; + index2++; + ref QuestStep reference133 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1022207u, new Vector3(-59.861206f, -2.9000297f, -64.805115f), 628); - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span56 = CollectionsMarshal.AsSpan(list165); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + span4 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list165; reference133 = questStep19; - ref QuestStep reference134 = ref span54[2]; + index2++; + ref QuestStep reference134 = ref span3[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1022209u, new Vector3(42.648926f, 4.0000005f, 54.97815f), 628) { AethernetShortcut = new AethernetShortcut @@ -167417,26 +200198,35 @@ public static class AssemblyQuestLoader num3 = 6; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - Span span57 = CollectionsMarshal.AsSpan(list166); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list166; reference134 = obj119; obj117.Steps = list163; reference131 = obj117; - ref QuestSequence reference135 = ref span53[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1022377u, new Vector3(124.6814f, 15f, -154.83331f), 628) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022377u, new Vector3(124.6814f, 15f, -154.83331f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167446,7 +200236,8 @@ public static class AssemblyQuestLoader }; obj120.Steps = list167; reference135 = obj120; - ref QuestSequence reference136 = ref span53[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -167454,8 +200245,9 @@ public static class AssemblyQuestLoader num2 = 3; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span58 = CollectionsMarshal.AsSpan(list168); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.33655f, -61.59003f, -166.09608f), 613) + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.33655f, -61.59003f, -166.09608f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, SkipConditions = new SkipConditions @@ -167466,7 +200258,8 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.0479f, -61.943626f, -147.57167f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.0479f, -61.943626f, -147.57167f), 613) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -167477,21 +200270,25 @@ public static class AssemblyQuestLoader } } }; - span58[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022215u, new Vector3(787.19763f, 1.5872339f, 80.03345f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022215u, new Vector3(787.19763f, 1.5872339f, 80.03345f), 613) { Fly = true }; obj121.Steps = list168; reference136 = obj121; - ref QuestSequence reference137 = ref span53[4]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -167509,13 +200306,16 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "liza"; questRoot17.Author = list170; - num = 4; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span59 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference138 = ref span59[0]; + index = 4; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -167523,7 +200323,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list172)[0]; + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + ref QuestStep reference139 = ref span3[index2]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167538,17 +200340,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = 131; + index3 = 1; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + span6 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span6[num3] = 131; obj125.InTerritory = list173; skipConditions2.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions2; num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBPLD601_02571_Q1_000_000"), @@ -167558,18 +200364,22 @@ public static class AssemblyQuestLoader reference139 = obj124; obj123.Steps = list172; reference138 = obj123; - ref QuestSequence reference140 = ref span59[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1021342u, new Vector3(-25.558899f, 38.010006f, 82.6886f), 131); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021342u, new Vector3(-25.558899f, 38.010006f, 82.6886f), 131); obj126.Steps = list175; reference140 = obj126; - ref QuestSequence reference141 = ref span59[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -167577,8 +200387,9 @@ public static class AssemblyQuestLoader num2 = 5; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span60 = CollectionsMarshal.AsSpan(list176); - ref QuestStep reference142 = ref span60[0]; + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference142 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1021343u, new Vector3(-75.60846f, 6.9845715f, 6.210388f), 131) { AethernetShortcut = new AethernetShortcut @@ -167587,85 +200398,122 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span61 = CollectionsMarshal.AsSpan(list177); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + span4 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list177; reference142 = obj128; - ref QuestStep reference143 = ref span60[1]; + index2++; + ref QuestStep reference143 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1021345u, new Vector3(-69.96271f, 7.0740614f, -10.696594f), 131); num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span62 = CollectionsMarshal.AsSpan(list178); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list178; reference143 = questStep20; - ref QuestStep reference144 = ref span60[2]; + index2++; + ref QuestStep reference144 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1021346u, new Vector3(-96.69641f, 6.9845695f, -9.506409f), 131); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span63 = CollectionsMarshal.AsSpan(list179); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + span4 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list179; reference144 = questStep21; - ref QuestStep reference145 = ref span60[3]; + index2++; + ref QuestStep reference145 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1021347u, new Vector3(-105.638245f, 6.9839897f, 3.0059814f), 131); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span64 = CollectionsMarshal.AsSpan(list180); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list180; reference145 = questStep22; - ref QuestStep reference146 = ref span60[4]; + index2++; + ref QuestStep reference146 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021344u, new Vector3(-96.910095f, 6.984566f, 15.0911255f), 131); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span65 = CollectionsMarshal.AsSpan(list181); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + span4 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list181; reference146 = questStep23; obj127.Steps = list176; reference141 = obj127; - ref QuestSequence reference147 = ref span59[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { NextQuestId = new QuestId(2572) }; @@ -167678,13 +200526,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot18.Author = list183; - num = 6; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span66 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference148 = ref span66[0]; + index = 6; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -167692,7 +200543,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list185)[0]; + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference149 = ref span3[index2]; QuestStep obj131 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167710,25 +200563,31 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span6[index3] = 131; obj132.InTerritory = list186; skipConditions3.AetheryteShortcutIf = obj132; obj131.SkipConditions = skipConditions3; reference149 = obj131; obj130.Steps = list185; reference148 = obj130; - ref QuestSequence reference150 = ref span66[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 2008101u, new Vector3(-82.44458f, 1.9378662f, 60.77661f), 131); + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008101u, new Vector3(-82.44458f, 1.9378662f, 60.77661f), 131); obj133.Steps = list187; reference150 = obj133; - ref QuestSequence reference151 = ref span66[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -167736,28 +200595,35 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj134.Steps = list188; reference151 = obj134; - span66[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference152 = ref span66[4]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1021275u, new Vector3(-84.67236f, 1.9500066f, 60.868164f), 131) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021275u, new Vector3(-84.67236f, 1.9500066f, 60.868164f), 131) { StopDistance = 5f }; obj135.Steps = list189; reference152 = obj135; - ref QuestSequence reference153 = ref span66[5]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -167765,7 +200631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { NextQuestId = new QuestId(2573) }; @@ -167778,21 +200646,26 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "liza"; questRoot19.Author = list191; - num = 6; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span67 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference154 = ref span67[0]; + index = 6; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list193)[0]; + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference155 = ref span3[num2]; QuestStep obj138 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167807,17 +200680,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = 131; + index3 = 1; + List list194 = new List(index3); + CollectionsMarshal.SetCount(list194, index3); + span6 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span6[num3] = 131; obj139.InTerritory = list194; skipConditions4.AetheryteShortcutIf = obj139; obj138.SkipConditions = skipConditions4; reference155 = obj138; obj137.Steps = list193; reference154 = obj137; - ref QuestSequence reference156 = ref span67[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -167825,12 +200701,16 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list195)[0]; + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference157 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1021364u, new Vector3(-84.36719f, 6.9845676f, 11.276367f), 131); num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBPLD650_02573_Q1_000_011") @@ -167839,46 +200719,62 @@ public static class AssemblyQuestLoader reference157 = questStep24; obj140.Steps = list195; reference156 = obj140; - ref QuestSequence reference158 = ref span67[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span68 = CollectionsMarshal.AsSpan(list197); - ref QuestStep reference159 = ref span68[0]; + index2 = 2; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference159 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1021365u, new Vector3(-94.010864f, 6.9845667f, 15.548889f), 131); - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span69 = CollectionsMarshal.AsSpan(list198); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span4 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list198; reference159 = questStep25; - ref QuestStep reference160 = ref span68[1]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1021366u, new Vector3(-99.83978f, 6.9845657f, 14.297607f), 131); num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span70 = CollectionsMarshal.AsSpan(list199); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list199; reference160 = questStep26; obj141.Steps = list197; reference158 = obj141; - ref QuestSequence reference161 = ref span67[3]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -167886,18 +200782,23 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj142.Steps = list200; reference161 = obj142; - ref QuestSequence reference162 = ref span67[4]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2008187u, new Vector3(22.2323f, 7.1869507f, -101.24359f), 130) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008187u, new Vector3(22.2323f, 7.1869507f, -101.24359f), 130) { AethernetShortcut = new AethernetShortcut { @@ -167907,7 +200808,8 @@ public static class AssemblyQuestLoader }; obj143.Steps = list201; reference162 = obj143; - ref QuestSequence reference163 = ref span67[5]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -167915,7 +200817,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -167933,21 +200837,26 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "liza"; questRoot20.Author = list203; - num = 9; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span71 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference164 = ref span71[0]; + index = 9; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list205)[0]; + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167962,17 +200871,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 131; + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + span6 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span6[num3] = 131; obj147.InTerritory = list206; skipConditions5.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions5; reference165 = obj146; obj145.Steps = list205; reference164 = obj145; - ref QuestSequence reference166 = ref span71[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -167980,21 +200892,27 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj148.Steps = list207; reference166 = obj148; - ref QuestSequence reference167 = ref span71[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj149.Steps = list208; reference167 = obj149; - ref QuestSequence reference168 = ref span71[3]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -168002,7 +200920,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.84746f, 7.9209166f, -37.27604f), 131) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.84746f, 7.9209166f, -37.27604f), 131) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -168013,60 +200933,83 @@ public static class AssemblyQuestLoader }; obj150.Steps = list209; reference168 = obj150; - ref QuestSequence reference169 = ref span71[4]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span72 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference170 = ref span72[0]; + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1021379u, new Vector3(81.01013f, 8f, -73.624756f), 131); num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span73 = CollectionsMarshal.AsSpan(list211); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list211; reference170 = questStep27; - ref QuestStep reference171 = ref span72[1]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1021378u, new Vector3(97.45935f, 7.9999995f, -11.947815f), 131); - num3 = 6; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span74 = CollectionsMarshal.AsSpan(list212); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span4 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list212; reference171 = questStep28; - ref QuestStep reference172 = ref span72[2]; + num2++; + ref QuestStep reference172 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1021380u, new Vector3(105.6687f, 8f, 4.714966f), 131); num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span75 = CollectionsMarshal.AsSpan(list213); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list213; reference172 = questStep29; obj151.Steps = list210; reference169 = obj151; - ref QuestSequence reference173 = ref span71[5]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -168074,7 +201017,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Say, 1021381u, new Vector3(138.53662f, 4f, 51.377075f), 131) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1021381u, new Vector3(138.53662f, 4f, 51.377075f), 131) { ChatMessage = new ChatMessage { @@ -168083,28 +201028,33 @@ public static class AssemblyQuestLoader }; obj152.Steps = list214; reference173 = obj152; - ref QuestSequence reference174 = ref span71[6]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span76 = CollectionsMarshal.AsSpan(list215); - ref QuestStep reference175 = ref span76[0]; + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference175 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.3437f, 4.014847f, 46.210514f), 131); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 141; + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + span6 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span6[num3] = 141; skipStepConditions.InTerritory = list216; skipConditions6.StepIf = skipStepConditions; questStep30.SkipConditions = skipConditions6; reference175 = questStep30; - ref QuestStep reference176 = ref span76[1]; + num2++; + ref QuestStep reference176 = ref span3[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 1021382u, new Vector3(282.39868f, 15.414177f, 513.1456f), 141) { Fly = true, @@ -168113,14 +201063,18 @@ public static class AssemblyQuestLoader num3 = 2; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span77 = CollectionsMarshal.AsSpan(list217); - span77[0] = 7237u; - span77[1] = 7238u; + span7 = CollectionsMarshal.AsSpan(list217); + index3 = 0; + span7[index3] = 7237u; + index3++; + span7[index3] = 7238u; obj154.KillEnemyDataIds = list217; - num3 = 1; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + index3 = 1; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + span5 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBPLD680_02574_Q1_000_000"), @@ -168130,7 +201084,8 @@ public static class AssemblyQuestLoader reference176 = obj154; obj153.Steps = list215; reference174 = obj153; - ref QuestSequence reference177 = ref span71[7]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 7 @@ -168138,21 +201093,26 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1021383u, new Vector3(284.71802f, 15.770843f, 512.5658f), 141) + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021383u, new Vector3(284.71802f, 15.770843f, 512.5658f), 141) { StopDistance = 7f }; obj155.Steps = list219; reference177 = obj155; - ref QuestSequence reference178 = ref span71[8]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -168171,13 +201131,16 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list221); + index = 0; + span[index] = "liza"; questRoot21.Author = list221; - num = 4; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span78 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference179 = ref span78[0]; + index = 3; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + span2 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -168185,7 +201148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list223)[0]; + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference180 = ref span3[index2]; QuestStep obj158 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -168203,29 +201168,31 @@ public static class AssemblyQuestLoader num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span6[index3] = 131; obj159.InTerritory = list224; skipConditions7.AetheryteShortcutIf = obj159; obj158.SkipConditions = skipConditions7; reference180 = obj158; obj157.Steps = list223; reference179 = obj157; - ref QuestSequence reference181 = ref span78[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj160.Steps = list225; reference181 = obj160; - span78[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference182 = ref span78[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -168233,9 +201200,11 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span79 = CollectionsMarshal.AsSpan(list226); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.62987f, 6.500003f, 41.749443f), 131); - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.62987f, 6.500003f, 41.749443f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj161.Steps = list226; reference182 = obj161; questRoot21.QuestSequence = list222; @@ -168245,21 +201214,26 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "liza"; questRoot22.Author = list227; - num = 6; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span80 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference183 = ref span80[0]; + index = 6; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list229)[0]; + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference184 = ref span3[num2]; QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1021425u, new Vector3(146.1051f, 4f, 25.223145f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -168274,17 +201248,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 131; + index3 = 1; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + span6 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span6[num3] = 131; obj164.InTerritory = list230; skipConditions8.AetheryteShortcutIf = obj164; obj163.SkipConditions = skipConditions8; num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM500_02576_Q1_000_010"), @@ -168294,7 +201272,8 @@ public static class AssemblyQuestLoader reference184 = obj163; obj162.Steps = list229; reference183 = obj162; - ref QuestSequence reference185 = ref span80[1]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -168302,29 +201281,35 @@ public static class AssemblyQuestLoader num2 = 2; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span81 = CollectionsMarshal.AsSpan(list232); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(166.65004f, 3.9997904f, 43.372593f), 131); - span81[1] = new QuestStep(EInteractionType.Interact, 1021426u, new Vector3(124.04053f, 5.292755f, 559.65515f), 141) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(166.65004f, 3.9997904f, 43.372593f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021426u, new Vector3(124.04053f, 5.292755f, 559.65515f), 141) { Fly = true }; obj165.Steps = list232; reference185 = obj165; - ref QuestSequence reference186 = ref span80[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1021434u, new Vector3(125.718994f, 5.2929487f, 558.9531f), 141) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021434u, new Vector3(125.718994f, 5.2929487f, 558.9531f), 141) { StopDistance = 7f }; obj166.Steps = list233; reference186 = obj166; - ref QuestSequence reference187 = ref span80[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -168332,32 +201317,38 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span82 = CollectionsMarshal.AsSpan(list234); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(8.849496f, 18.34012f, 562.2148f), 141) + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(8.849496f, 18.34012f, 562.2148f), 141) { Fly = true }; - span82[1] = new QuestStep(EInteractionType.Interact, 1021435u, new Vector3(145.73889f, 4f, 25.223145f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021435u, new Vector3(145.73889f, 4f, 25.223145f), 131); obj167.Steps = list234; reference187 = obj167; - ref QuestSequence reference188 = ref span80[4]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span83 = CollectionsMarshal.AsSpan(list235); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) + index2 = 2; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span83[1] = new QuestStep(EInteractionType.Interact, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); obj168.Steps = list235; reference188 = obj168; - ref QuestSequence reference189 = ref span80[5]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue @@ -168365,12 +201356,16 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list236)[0]; + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference190 = ref span3[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.CompleteQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span5 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBRDM500_02576_Q1_000_310") @@ -168387,22 +201382,26 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "liza"; questRoot23.Author = list238; - num = 5; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span84 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference191 = ref span84[0]; + index = 5; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + span2 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + index2 = 4; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, ItemId = 20389u, @@ -168421,7 +201420,8 @@ public static class AssemblyQuestLoader } } }; - span85[1] = new QuestStep(EInteractionType.UseItem, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141) { ItemId = 20621u, SkipConditions = new SkipConditions @@ -168435,11 +201435,14 @@ public static class AssemblyQuestLoader } } }; - span85[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); - span85[3] = new QuestStep(EInteractionType.AcceptQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); obj170.Steps = list240; reference191 = obj170; - ref QuestSequence reference192 = ref span84[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 @@ -168447,27 +201450,33 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span86 = CollectionsMarshal.AsSpan(list241); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-508.00916f, -17.453016f, 16.0174f), 145) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-508.00916f, -17.453016f, 16.0174f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span86[1] = new QuestStep(EInteractionType.Interact, 1021439u, new Vector3(-513.7255f, -16.420002f, -6.668213f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021439u, new Vector3(-513.7255f, -16.420002f, -6.668213f), 145); obj171.Steps = list241; reference192 = obj171; - ref QuestSequence reference193 = ref span84[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021440u, new Vector3(-505.6382f, -17.810839f, 28.702148f), 145); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021440u, new Vector3(-505.6382f, -17.810839f, 28.702148f), 145); obj172.Steps = list242; reference193 = obj172; - ref QuestSequence reference194 = ref span84[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 @@ -168475,21 +201484,26 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1021441u, new Vector3(-428.58014f, -29.27635f, 24.826416f), 145) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021441u, new Vector3(-428.58014f, -29.27635f, 24.826416f), 145) { StopDistance = 5f }; obj173.Steps = list243; reference194 = obj173; - ref QuestSequence reference195 = ref span84[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) { StopDistance = 1f, Fly = true, @@ -168504,13 +201518,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "liza"; questRoot24.Author = list245; - num = 10; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span87 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference196 = ref span87[0]; + index = 10; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -168518,7 +201535,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) { StopDistance = 1f, Fly = true, @@ -168533,18 +201552,22 @@ public static class AssemblyQuestLoader }; obj175.Steps = list247; reference196 = obj175; - ref QuestSequence reference197 = ref span87[1]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj176.Steps = list248; reference197 = obj176; - ref QuestSequence reference198 = ref span87[2]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -168552,7 +201575,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1021448u, new Vector3(-56.717834f, -1.8104911E-06f, 102.708374f), 144) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021448u, new Vector3(-56.717834f, -1.8104911E-06f, 102.708374f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -168563,15 +201588,18 @@ public static class AssemblyQuestLoader }; obj177.Steps = list249; reference198 = obj177; - ref QuestSequence reference199 = ref span87[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 2008218u, new Vector3(-0.07635498f, 20.98108f, 53.60486f), 144) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008218u, new Vector3(-0.07635498f, 20.98108f, 53.60486f), 144) { AethernetShortcut = new AethernetShortcut { @@ -168581,7 +201609,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list250; reference199 = obj178; - ref QuestSequence reference200 = ref span87[4]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 @@ -168589,27 +201618,33 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1021450u, new Vector3(-8.621399f, 20.99973f, 43.381348f), 144); + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021450u, new Vector3(-8.621399f, 20.99973f, 43.381348f), 144); obj179.Steps = list251; reference200 = obj179; - ref QuestSequence reference201 = ref span87[5]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span88 = CollectionsMarshal.AsSpan(list252); - span88[0] = new QuestStep(EInteractionType.UseItem, null, null, 144) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 144) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span88[1] = new QuestStep(EInteractionType.Interact, 1021451u, new Vector3(-429.64832f, 23.743237f, -351.06433f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021451u, new Vector3(-429.64832f, 23.743237f, -351.06433f), 140); obj180.Steps = list252; reference201 = obj180; - ref QuestSequence reference202 = ref span87[6]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 6 @@ -168617,13 +201652,16 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span89 = CollectionsMarshal.AsSpan(list253); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140) { DisableNavmesh = true }; - ref QuestStep reference203 = ref span89[2]; + index2++; + ref QuestStep reference203 = ref span3[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, 2008219u, new Vector3(-326.1311f, 22.9953f, -348.19562f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -168631,29 +201669,36 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 7218u; + span7 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span7[index3] = 7218u; obj182.KillEnemyDataIds = list254; reference203 = obj182; obj181.Steps = list253; reference202 = obj181; - ref QuestSequence reference204 = ref span87[7]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span90 = CollectionsMarshal.AsSpan(list255); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140); - span90[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true }; - span90[2] = new QuestStep(EInteractionType.Interact, 1021453u, new Vector3(-407.98047f, 23.008799f, -320.36322f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021453u, new Vector3(-407.98047f, 23.008799f, -320.36322f), 140); obj183.Steps = list255; reference204 = obj183; - ref QuestSequence reference205 = ref span87[8]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 8 @@ -168661,23 +201706,28 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span91 = CollectionsMarshal.AsSpan(list256); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.64215f, 23.167034f, -350.37634f), 140); - span91[1] = new QuestStep(EInteractionType.Interact, 1021456u, new Vector3(-400.38147f, 23f, -348.13464f), 140) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.64215f, 23.167034f, -350.37634f), 140); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021456u, new Vector3(-400.38147f, 23f, -348.13464f), 140) { StopDistance = 7f }; obj184.Steps = list256; reference205 = obj184; - ref QuestSequence reference206 = ref span87[9]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) { Fly = true, NextQuestId = new QuestId(2579) @@ -168691,13 +201741,16 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list258); + index = 0; + span[index] = "liza"; questRoot25.Author = list258; - num = 9; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span92 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference207 = ref span92[0]; + index = 9; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span2 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 @@ -168705,7 +201758,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -168719,21 +201774,25 @@ public static class AssemblyQuestLoader }; obj186.Steps = list260; reference207 = obj186; - ref QuestSequence reference208 = ref span92[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj187.Steps = list261; reference208 = obj187; - ref QuestSequence reference209 = ref span92[2]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 2 @@ -168741,67 +201800,92 @@ public static class AssemblyQuestLoader num2 = 3; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span93 = CollectionsMarshal.AsSpan(list262); - ref QuestStep reference210 = ref span93[0]; + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1021464u, new Vector3(327.77905f, -31.89878f, 275.59314f), 138); - num3 = 6; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span94 = CollectionsMarshal.AsSpan(list263); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + span4 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list263; reference210 = questStep32; - ref QuestStep reference211 = ref span93[1]; + index2++; + ref QuestStep reference211 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1021463u, new Vector3(311.4823f, -36.325005f, 351.33887f), 138); num3 = 6; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span95 = CollectionsMarshal.AsSpan(list264); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list264; reference211 = questStep33; - ref QuestStep reference212 = ref span93[2]; + index2++; + ref QuestStep reference212 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1021465u, new Vector3(319.2339f, -40.425003f, 382.37573f), 138); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span96 = CollectionsMarshal.AsSpan(list265); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + span4 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep34.CompletionQuestVariablesFlags = list265; reference212 = questStep34; obj188.Steps = list262; reference209 = obj188; - ref QuestSequence reference213 = ref span92[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) { StopDistance = 1f, Fly = true }; obj189.Steps = list266; reference213 = obj189; - ref QuestSequence reference214 = ref span92[4]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 4 @@ -168809,7 +201893,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list267)[0]; + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference215 = ref span3[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2008221u, new Vector3(200.09155f, -36.728516f, 276.17297f), 138) { Fly = true, @@ -168818,26 +201904,32 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 7219u; + span7 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span7[index3] = 7219u; obj191.KillEnemyDataIds = list268; reference215 = obj191; obj190.Steps = list267; reference214 = obj190; - ref QuestSequence reference216 = ref span92[5]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1021459u, new Vector3(207.35486f, -36.405907f, 328.11462f), 138) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021459u, new Vector3(207.35486f, -36.405907f, 328.11462f), 138) { Fly = true }; obj192.Steps = list269; reference216 = obj192; - ref QuestSequence reference217 = ref span92[6]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 6 @@ -168845,29 +201937,35 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.UseItem, 2008924u, new Vector3(206.073f, -35.568848f, 329.21338f), 138) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2008924u, new Vector3(206.073f, -35.568848f, 329.21338f), 138) { ItemId = 2002182u }; obj193.Steps = list270; reference217 = obj193; - ref QuestSequence reference218 = ref span92[7]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span97 = CollectionsMarshal.AsSpan(list271); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) { Fly = true }; - span97[1] = new QuestStep(EInteractionType.Interact, 1021460u, new Vector3(319.44763f, -35.9496f, 305.6228f), 138); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021460u, new Vector3(319.44763f, -35.9496f, 305.6228f), 138); obj194.Steps = list271; reference218 = obj194; - ref QuestSequence reference219 = ref span92[8]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -168875,7 +201973,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) { NextQuestId = new QuestId(2580) }; @@ -168888,21 +201988,26 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot26.Author = list273; - num = 8; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span98 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference220 = ref span98[0]; + index = 8; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -168915,7 +202020,8 @@ public static class AssemblyQuestLoader }; obj196.Steps = list275; reference220 = obj196; - ref QuestSequence reference221 = ref span98[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -168923,39 +202029,47 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1021466u, new Vector3(320.54626f, -35.949726f, 306.11108f), 138); + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021466u, new Vector3(320.54626f, -35.949726f, 306.11108f), 138); obj197.Steps = list276; reference221 = obj197; - ref QuestSequence reference222 = ref span98[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span99 = CollectionsMarshal.AsSpan(list277); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(310.38196f, -35.96502f, 314.66306f), 138) + index2 = 3; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(310.38196f, -35.96502f, 314.66306f), 138) { Mount = true }; - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.09558f, -17.541195f, 268.45526f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.09558f, -17.541195f, 268.45526f), 138) { Fly = true }; - ref QuestStep reference223 = ref span99[2]; + num2++; + ref QuestStep reference223 = ref span3[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1021467u, new Vector3(190.96667f, -17.339743f, 269.27588f), 138); - num3 = 2; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span100 = CollectionsMarshal.AsSpan(list278); - span100[0] = new DialogueChoice + index3 = 2; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + span5 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM560_02580_Q1_000_100"), Answer = new ExcelRef("TEXT_JOBRDM560_02580_A1_000_101") }; - span100[1] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM560_02580_Q2_000_131"), @@ -168965,7 +202079,8 @@ public static class AssemblyQuestLoader reference223 = questStep35; obj198.Steps = list277; reference222 = obj198; - ref QuestSequence reference224 = ref span98[3]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 @@ -168973,34 +202088,40 @@ public static class AssemblyQuestLoader num2 = 2; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span101 = CollectionsMarshal.AsSpan(list279); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) { Fly = true }; - span101[1] = new QuestStep(EInteractionType.Interact, 1021468u, new Vector3(319.44763f, -35.949703f, 306.90466f), 138); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021468u, new Vector3(319.44763f, -35.949703f, 306.90466f), 138); obj199.Steps = list279; reference224 = obj199; - ref QuestSequence reference225 = ref span98[4]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span102 = CollectionsMarshal.AsSpan(list280); - span102[0] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) + index2 = 2; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) { TargetTerritoryId = (ushort)138 }; - span102[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021469u, new Vector3(-289.14325f, -40.63008f, 420.46228f), 138) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021469u, new Vector3(-289.14325f, -40.63008f, 420.46228f), 138) { StopDistance = 7f }; obj200.Steps = list280; reference225 = obj200; - ref QuestSequence reference226 = ref span98[5]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 5 @@ -169008,21 +202129,27 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1021442u, new Vector3(-304.89056f, -40.172314f, 660.1815f), 138); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021442u, new Vector3(-304.89056f, -40.172314f, 660.1815f), 138); obj201.Steps = list281; reference226 = obj201; - ref QuestSequence reference227 = ref span98[6]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1021471u, new Vector3(320.88184f, -40.425003f, 369.77185f), 138); + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021471u, new Vector3(320.88184f, -40.425003f, 369.77185f), 138); obj202.Steps = list282; reference227 = obj202; - ref QuestSequence reference228 = ref span98[7]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -169030,7 +202157,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) { Fly = true, NextQuestId = new QuestId(2581) @@ -169044,21 +202173,26 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "liza"; questRoot27.Author = list284; - num = 7; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span103 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference229 = ref span103[0]; + index = 7; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -169071,7 +202205,8 @@ public static class AssemblyQuestLoader }; obj204.Steps = list286; reference229 = obj204; - ref QuestSequence reference230 = ref span103[1]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -169079,7 +202214,9 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference231 = ref CollectionsMarshal.AsSpan(list287)[0]; + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + ref QuestStep reference231 = ref span3[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1021475u, new Vector3(-196.94824f, 15.542886f, 37.582886f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -169092,7 +202229,9 @@ public static class AssemblyQuestLoader num3 = 1; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list288); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM580_02581_Q1_000_100"), @@ -169102,15 +202241,18 @@ public static class AssemblyQuestLoader reference231 = obj206; obj205.Steps = list287; reference230 = obj205; - ref QuestSequence reference232 = ref span103[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1021478u, new Vector3(-17.257996f, 40.000496f, -6.4240723f), 128) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021478u, new Vector3(-17.257996f, 40.000496f, -6.4240723f), 128) { AethernetShortcut = new AethernetShortcut { @@ -169120,7 +202262,8 @@ public static class AssemblyQuestLoader }; obj207.Steps = list289; reference232 = obj207; - ref QuestSequence reference233 = ref span103[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -169128,38 +202271,46 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj208.Steps = list290; reference233 = obj208; - ref QuestSequence reference234 = ref span103[4]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list291)[0]; + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + ref QuestStep reference235 = ref span3[num2]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, 2008233u, new Vector3(-292.6833f, 84.4281f, -359.39575f), 147) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span104 = CollectionsMarshal.AsSpan(list292); - span104[0] = 7221u; - span104[1] = 7222u; + index3 = 2; + List list292 = new List(index3); + CollectionsMarshal.SetCount(list292, index3); + span7 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span7[num3] = 7221u; + num3++; + span7[num3] = 7222u; obj210.KillEnemyDataIds = list292; reference235 = obj210; obj209.Steps = list291; reference234 = obj209; - ref QuestSequence reference236 = ref span103[5]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -169167,21 +202318,26 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) { Fly = true }; obj211.Steps = list293; reference236 = obj211; - ref QuestSequence reference237 = ref span103[6]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -169196,13 +202352,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; questRoot28.Author = list295; - num = 8; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span105 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference238 = ref span105[0]; + index = 8; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 @@ -169210,7 +202369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -169224,22 +202385,26 @@ public static class AssemblyQuestLoader }; obj213.Steps = list297; reference238 = obj213; - ref QuestSequence reference239 = ref span105[1]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1021484u, new Vector3(3.3721924f, 50.266228f, -770.1076f), 156) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021484u, new Vector3(3.3721924f, 50.266228f, -770.1076f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj214.Steps = list298; reference239 = obj214; - ref QuestSequence reference240 = ref span105[2]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 2 @@ -169247,27 +202412,33 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1021486u, new Vector3(54.642456f, 20.4949f, -671.3207f), 156) + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021486u, new Vector3(54.642456f, 20.4949f, -671.3207f), 156) { Fly = true }; obj215.Steps = list299; reference240 = obj215; - ref QuestSequence reference241 = ref span105[3]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1021487u, new Vector3(94.56018f, 20.33949f, -609.4606f), 156) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021487u, new Vector3(94.56018f, 20.33949f, -609.4606f), 156) { Fly = true }; obj216.Steps = list300; reference241 = obj216; - ref QuestSequence reference242 = ref span105[4]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 4 @@ -169275,8 +202446,9 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span106 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference243 = ref span106[0]; + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + ref QuestStep reference243 = ref span3[index2]; QuestStep obj218 = new QuestStep(EInteractionType.Combat, null, new Vector3(175.10304f, 10.336163f, -584.578f), 156) { StopDistance = 0.5f, @@ -169286,33 +202458,44 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 7223u; + span7 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span7[index3] = 7223u; obj218.KillEnemyDataIds = list302; - num3 = 6; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span107 = CollectionsMarshal.AsSpan(list303); - span107[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = null; + index3 = 6; + List list303 = new List(index3); + CollectionsMarshal.SetCount(list303, index3); + span4 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span4[num3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj218.CompletionQuestVariablesFlags = list303; reference243 = obj218; - span106[1] = new QuestStep(EInteractionType.Interact, 1021489u, new Vector3(176.3789f, 9.963035f, -583.64233f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021489u, new Vector3(176.3789f, 9.963035f, -583.64233f), 156); obj217.Steps = list301; reference242 = obj217; - ref QuestSequence reference244 = ref span105[5]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span108 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference245 = ref span108[0]; + index2 = 2; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference245 = ref span3[num2]; QuestStep obj220 = new QuestStep(EInteractionType.Combat, null, new Vector3(210.32977f, -17.479898f, -470.8124f), 156) { StopDistance = 0.5f, @@ -169322,24 +202505,34 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = 7224u; + span7 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span7[index3] = 7224u; obj220.KillEnemyDataIds = list305; - num3 = 6; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span109 = CollectionsMarshal.AsSpan(list306); - span109[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = null; + index3 = 6; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + span4 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span4[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj220.CompletionQuestVariablesFlags = list306; reference245 = obj220; - span108[1] = new QuestStep(EInteractionType.Interact, 1021490u, new Vector3(211.56628f, -17.612108f, -469.50488f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021490u, new Vector3(211.56628f, -17.612108f, -469.50488f), 156); obj219.Steps = list304; reference244 = obj219; - ref QuestSequence reference246 = ref span105[6]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 6 @@ -169347,21 +202540,26 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008526u, new Vector3(376.82153f, -17.563171f, -343.67902f), 156) + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008526u, new Vector3(376.82153f, -17.563171f, -343.67902f), 156) { Fly = true }; obj221.Steps = list307; reference246 = obj221; - ref QuestSequence reference247 = ref span105[7]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, NextQuestId = new QuestId(2583) @@ -169375,13 +202573,16 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - CollectionsMarshal.AsSpan(list309)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list309); + index = 0; + span[index] = "liza"; questRoot29.Author = list309; - num = 7; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - Span span110 = CollectionsMarshal.AsSpan(list310); - ref QuestSequence reference248 = ref span110[0]; + index = 7; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + span2 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 0 @@ -169389,7 +202590,9 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -169402,21 +202605,25 @@ public static class AssemblyQuestLoader }; obj223.Steps = list311; reference248 = obj223; - ref QuestSequence reference249 = ref span110[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1021772u, new Vector3(63.095947f, 207.82686f, -14.725037f), 478) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021772u, new Vector3(63.095947f, 207.82686f, -14.725037f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj224.Steps = list312; reference249 = obj224; - ref QuestSequence reference250 = ref span110[2]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 2 @@ -169424,7 +202631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - ref QuestStep reference251 = ref CollectionsMarshal.AsSpan(list313)[0]; + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + ref QuestStep reference251 = ref span3[index2]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, 2008220u, new Vector3(385.9464f, 78.446655f, -114.488464f), 399) { Fly = true, @@ -169438,28 +202647,34 @@ public static class AssemblyQuestLoader num3 = 2; List list314 = new List(num3); CollectionsMarshal.SetCount(list314, num3); - Span span111 = CollectionsMarshal.AsSpan(list314); - span111[0] = 7225u; - span111[1] = 8039u; + span7 = CollectionsMarshal.AsSpan(list314); + index3 = 0; + span7[index3] = 7225u; + index3++; + span7[index3] = 8039u; obj226.KillEnemyDataIds = list314; reference251 = obj226; obj225.Steps = list313; reference250 = obj225; - ref QuestSequence reference252 = ref span110[3]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1021774u, new Vector3(141.31372f, 66.09973f, -238.14758f), 399) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021774u, new Vector3(141.31372f, 66.09973f, -238.14758f), 399) { Fly = true }; obj227.Steps = list315; reference252 = obj227; - ref QuestSequence reference253 = ref span110[4]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 4 @@ -169467,27 +202682,33 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1021775u, new Vector3(266.98706f, 78.3604f, -10.788147f), 399) + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021775u, new Vector3(266.98706f, 78.3604f, -10.788147f), 399) { Fly = true }; obj228.Steps = list316; reference253 = obj228; - ref QuestSequence reference254 = ref span110[5]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj229.Steps = list317; reference254 = obj229; - ref QuestSequence reference255 = ref span110[6]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue @@ -169495,7 +202716,9 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { NextQuestId = new QuestId(2584) }; @@ -169508,21 +202731,26 @@ public static class AssemblyQuestLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - CollectionsMarshal.AsSpan(list319)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list319); + index = 0; + span[index] = "liza"; questRoot30.Author = list319; - num = 7; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - Span span112 = CollectionsMarshal.AsSpan(list320); - ref QuestSequence reference256 = ref span112[0]; + index = 7; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + span2 = CollectionsMarshal.AsSpan(list320); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - ref QuestStep reference257 = ref CollectionsMarshal.AsSpan(list321)[0]; + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + ref QuestStep reference257 = ref span3[num2]; QuestStep obj232 = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -169534,10 +202762,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - CollectionsMarshal.AsSpan(list322)[0] = new DialogueChoice + index3 = 1; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + span5 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM630_02584_Q1_000_050"), @@ -169547,7 +202777,8 @@ public static class AssemblyQuestLoader reference257 = obj232; obj231.Steps = list321; reference256 = obj231; - ref QuestSequence reference258 = ref span112[1]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -169555,25 +202786,29 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span113 = CollectionsMarshal.AsSpan(list323); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.33426f, 94.733665f, -414.5643f), 620) + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.33426f, 94.733665f, -414.5643f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - span113[1] = new QuestStep(EInteractionType.Interact, 1021780u, new Vector3(-339.04022f, 94.94087f, -414.17566f), 620); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021780u, new Vector3(-339.04022f, 94.94087f, -414.17566f), 620); obj233.Steps = list323; reference258 = obj233; - ref QuestSequence reference259 = ref span112[2]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - num2 = 8; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - Span span114 = CollectionsMarshal.AsSpan(list324); - ref QuestStep reference260 = ref span114[0]; + index2 = 8; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + ref QuestStep reference260 = ref span3[num2]; QuestStep obj235 = new QuestStep(EInteractionType.Interact, 2008291u, new Vector3(-299.48883f, 200.7019f, -240.55853f), 620) { Fly = true @@ -169581,16 +202816,23 @@ public static class AssemblyQuestLoader num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span115 = CollectionsMarshal.AsSpan(list325); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj235.CompletionQuestVariablesFlags = list325; reference260 = obj235; - ref QuestStep reference261 = ref span114[1]; + num2++; + ref QuestStep reference261 = ref span3[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Jump, null, new Vector3(-299.41455f, 200.71986f, -238.0671f), 620) { StopDistance = 0.5f, @@ -169601,22 +202843,29 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span116 = CollectionsMarshal.AsSpan(list326); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + span4 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list326; skipStepConditions2.Flying = ELockedSkipCondition.Unlocked; skipConditions9.StepIf = skipStepConditions2; obj236.SkipConditions = skipConditions9; reference261 = obj236; - ref QuestStep reference262 = ref span114[2]; + num2++; + ref QuestStep reference262 = ref span3[num2]; QuestStep obj237 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-292.9197f, 203.25142f, -222.20459f), 620) { DisableNavmesh = true @@ -169626,19 +202875,26 @@ public static class AssemblyQuestLoader num3 = 6; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - Span span117 = CollectionsMarshal.AsSpan(list327); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list327; skipStepConditions3.Flying = ELockedSkipCondition.Unlocked; skipConditions10.StepIf = skipStepConditions3; obj237.SkipConditions = skipConditions10; reference262 = obj237; - ref QuestStep reference263 = ref span114[3]; + num2++; + ref QuestStep reference263 = ref span3[num2]; QuestStep obj238 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-262.3789f, 106.614746f, -206.86658f), 620) { DisableNavmesh = true, @@ -169646,22 +202902,29 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list328 = new List(num3); - CollectionsMarshal.SetCount(list328, num3); - Span span118 = CollectionsMarshal.AsSpan(list328); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list328 = new List(index3); + CollectionsMarshal.SetCount(list328, index3); + span4 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list328; skipStepConditions4.Flying = ELockedSkipCondition.Unlocked; skipConditions11.StepIf = skipStepConditions4; obj238.SkipConditions = skipConditions11; reference263 = obj238; - ref QuestStep reference264 = ref span114[4]; + num2++; + ref QuestStep reference264 = ref span3[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2008292u, new Vector3(-262.3789f, 106.614746f, -206.86658f), 620) { Fly = true @@ -169669,38 +202932,52 @@ public static class AssemblyQuestLoader num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span119 = CollectionsMarshal.AsSpan(list329); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list329); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list329; reference264 = obj239; - ref QuestStep reference265 = ref span114[5]; + num2++; + ref QuestStep reference265 = ref span3[num2]; QuestStep obj240 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.53746f, 108.3858f, -304.68738f), 620) { StopDistance = 0.5f }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span120 = CollectionsMarshal.AsSpan(list330); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + span4 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list330; skipStepConditions5.Flying = ELockedSkipCondition.Unlocked; skipConditions12.StepIf = skipStepConditions5; obj240.SkipConditions = skipConditions12; reference265 = obj240; - ref QuestStep reference266 = ref span114[6]; + num2++; + ref QuestStep reference266 = ref span3[num2]; QuestStep obj241 = new QuestStep(EInteractionType.Jump, null, new Vector3(-207.53746f, 108.3858f, -304.68738f), 620) { StopDistance = 0.5f, @@ -169717,39 +202994,53 @@ public static class AssemblyQuestLoader num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span121 = CollectionsMarshal.AsSpan(list331); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list331; skipStepConditions6.Flying = ELockedSkipCondition.Unlocked; skipConditions13.StepIf = skipStepConditions6; obj241.SkipConditions = skipConditions13; reference266 = obj241; - ref QuestStep reference267 = ref span114[7]; + num2++; + ref QuestStep reference267 = ref span3[num2]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 2008293u, new Vector3(-210.40668f, 109.666504f, -299.794f), 620) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - Span span122 = CollectionsMarshal.AsSpan(list332); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + span4 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj242.CompletionQuestVariablesFlags = list332; reference267 = obj242; obj234.Steps = list324; reference259 = obj234; - ref QuestSequence reference268 = ref span112[3]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -169757,8 +203048,9 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span123 = CollectionsMarshal.AsSpan(list333); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-213.96315f, 107.1167f, -305.87753f), 620) + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-213.96315f, 107.1167f, -305.87753f), 620) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -169769,21 +203061,25 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1021781u, new Vector3(-308.43066f, 102.62436f, -372.2744f), 620) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021781u, new Vector3(-308.43066f, 102.62436f, -372.2744f), 620) { Fly = true }; obj243.Steps = list333; reference268 = obj243; - ref QuestSequence reference269 = ref span112[4]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - ref QuestStep reference270 = ref CollectionsMarshal.AsSpan(list334)[0]; + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + ref QuestStep reference270 = ref span3[num2]; QuestStep obj245 = new QuestStep(EInteractionType.Combat, 2008294u, new Vector3(782.6809f, 256.91602f, -388.29633f), 620) { Fly = true, @@ -169792,12 +203088,15 @@ public static class AssemblyQuestLoader num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = 7822u; + span7 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span7[index3] = 7822u; obj245.KillEnemyDataIds = list335; reference270 = obj245; obj244.Steps = list334; reference269 = obj244; - ref QuestSequence reference271 = ref span112[5]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 5 @@ -169805,21 +203104,26 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1021782u, new Vector3(120.74463f, 118.383255f, -732.57043f), 620) + span3 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021782u, new Vector3(120.74463f, 118.383255f, -732.57043f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj246.Steps = list336; reference271 = obj246; - ref QuestSequence reference272 = ref span112[6]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(2585) @@ -169833,13 +203137,16 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "liza"; questRoot31.Author = list338; - num = 6; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span124 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference273 = ref span124[0]; + index = 6; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 0 @@ -169847,7 +203154,9 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -169861,27 +203170,32 @@ public static class AssemblyQuestLoader }; obj248.Steps = list340; reference273 = obj248; - ref QuestSequence reference274 = ref span124[1]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - Span span125 = CollectionsMarshal.AsSpan(list341); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.853794f, 210.99998f, 3.6528845f), 478) + index2 = 3; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.853794f, 210.99998f, 3.6528845f), 478) { Mount = true }; - span125[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.601719f, 205.82156f, 23.937931f), 478) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.601719f, 205.82156f, 23.937931f), 478) { DisableNavmesh = true }; - span125[2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); obj249.Steps = list341; reference274 = obj249; - ref QuestSequence reference275 = ref span124[2]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 2 @@ -169889,18 +203203,23 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478); + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478); obj250.Steps = list342; reference275 = obj250; - ref QuestSequence reference276 = ref span124[3]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021783u, new Vector3(277.11902f, 232.541f, 785.5801f), 399) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021783u, new Vector3(277.11902f, 232.541f, 785.5801f), 399) { Fly = true, Comment = "TODO Navigation doesn't work if flying is locked", @@ -169912,7 +203231,8 @@ public static class AssemblyQuestLoader }; obj251.Steps = list343; reference276 = obj251; - ref QuestSequence reference277 = ref span124[4]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 4 @@ -169920,21 +203240,26 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1021783u, new Vector3(277.11902f, 232.54102f, 785.5801f), 399) + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021783u, new Vector3(277.11902f, 232.54102f, 785.5801f), 399) { StopDistance = 7f }; obj252.Steps = list344; reference277 = obj252; - ref QuestSequence reference278 = ref span124[5]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(2586) @@ -169948,13 +203273,16 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - CollectionsMarshal.AsSpan(list346)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list346); + index = 0; + span[index] = "liza"; questRoot32.Author = list346; - num = 9; - List list347 = new List(num); - CollectionsMarshal.SetCount(list347, num); - Span span126 = CollectionsMarshal.AsSpan(list347); - ref QuestSequence reference279 = ref span126[0]; + index = 9; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + span2 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 0 @@ -169962,7 +203290,9 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + span3 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -169976,15 +203306,18 @@ public static class AssemblyQuestLoader }; obj254.Steps = list348; reference279 = obj254; - ref QuestSequence reference280 = ref span126[1]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1021785u, new Vector3(115.19031f, 14.631312f, -165.11792f), 419) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + span3 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021785u, new Vector3(115.19031f, 14.631312f, -165.11792f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -169995,7 +203328,8 @@ public static class AssemblyQuestLoader }; obj255.Steps = list349; reference280 = obj255; - ref QuestSequence reference281 = ref span126[2]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 2 @@ -170003,7 +203337,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1021788u, new Vector3(34.042847f, 11.965077f, 48.355713f), 419) + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021788u, new Vector3(34.042847f, 11.965077f, 48.355713f), 419) { AethernetShortcut = new AethernetShortcut { @@ -170013,22 +203349,26 @@ public static class AssemblyQuestLoader }; obj256.Steps = list350; reference281 = obj256; - ref QuestSequence reference282 = ref span126[3]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1021789u, new Vector3(455.5885f, 300.37985f, -349.32483f), 155) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021789u, new Vector3(455.5885f, 300.37985f, -349.32483f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj257.Steps = list351; reference282 = obj257; - ref QuestSequence reference283 = ref span126[4]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 4 @@ -170036,35 +203376,43 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list352)[0]; + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + ref QuestStep reference284 = ref span3[index2]; QuestStep obj259 = new QuestStep(EInteractionType.Combat, 2008997u, new Vector3(299.2141f, 239.12415f, -312.76422f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = 7226u; + index3 = 1; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + span7 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span7[num3] = 7226u; obj259.KillEnemyDataIds = list353; reference284 = obj259; obj258.Steps = list352; reference283 = obj258; - ref QuestSequence reference285 = ref span126[5]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1021791u, new Vector3(445.94482f, 250.97905f, -309.25464f), 155) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021791u, new Vector3(445.94482f, 250.97905f, -309.25464f), 155) { Fly = true }; obj260.Steps = list354; reference285 = obj260; - ref QuestSequence reference286 = ref span126[6]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 6 @@ -170072,24 +203420,30 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1021794u, new Vector3(295.9486f, 238.09589f, -317.34192f), 155) + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021794u, new Vector3(295.9486f, 238.09589f, -317.34192f), 155) { Fly = true }; obj261.Steps = list355; reference286 = obj261; - ref QuestSequence reference287 = ref span126[7]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1021793u, new Vector3(295.24683f, 238.25597f, -315.78546f), 155); + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + span3 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021793u, new Vector3(295.24683f, 238.25597f, -315.78546f), 155); obj262.Steps = list356; reference287 = obj262; - ref QuestSequence reference288 = ref span126[8]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -170097,7 +203451,9 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -170116,21 +203472,26 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - CollectionsMarshal.AsSpan(list358)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list358); + index = 0; + span[index] = "liza"; questRoot33.Author = list358; - num = 8; - List list359 = new List(num); - CollectionsMarshal.SetCount(list359, num); - Span span127 = CollectionsMarshal.AsSpan(list359); - ref QuestSequence reference289 = ref span127[0]; + index = 8; + List list359 = new List(index); + CollectionsMarshal.SetCount(list359, index); + span2 = CollectionsMarshal.AsSpan(list359); + num = 0; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - ref QuestStep reference290 = ref CollectionsMarshal.AsSpan(list360)[0]; + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + ref QuestStep reference290 = ref span3[num2]; QuestStep obj265 = new QuestStep(EInteractionType.AcceptQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -170148,14 +203509,17 @@ public static class AssemblyQuestLoader num3 = 1; List list361 = new List(num3); CollectionsMarshal.SetCount(list361, num3); - CollectionsMarshal.AsSpan(list361)[0] = 419; + span6 = CollectionsMarshal.AsSpan(list361); + index3 = 0; + span6[index3] = 419; obj266.InTerritory = list361; skipConditions14.AetheryteShortcutIf = obj266; obj265.SkipConditions = skipConditions14; reference290 = obj265; obj264.Steps = list360; reference289 = obj264; - ref QuestSequence reference291 = ref span127[1]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 1 @@ -170163,7 +203527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1021796u, new Vector3(-198.71832f, 18f, 61.08191f), 130) + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021796u, new Vector3(-198.71832f, 18f, 61.08191f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170174,18 +203540,22 @@ public static class AssemblyQuestLoader }; obj267.Steps = list362; reference291 = obj267; - ref QuestSequence reference292 = ref span127[2]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1021798u, new Vector3(-198.71832f, 18f, 61.08191f), 130); + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021798u, new Vector3(-198.71832f, 18f, 61.08191f), 130); obj268.Steps = list363; reference292 = obj268; - ref QuestSequence reference293 = ref span127[3]; + num++; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 @@ -170193,31 +203563,38 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1021799u, new Vector3(54.520386f, 20.411621f, -676.6614f), 156) + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021799u, new Vector3(54.520386f, 20.411621f, -676.6614f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj269.Steps = list364; reference293 = obj269; - ref QuestSequence reference294 = ref span127[4]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021801u, new Vector3(367.87964f, -16.467955f, -335.86633f), 156) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021801u, new Vector3(367.87964f, -16.467955f, -335.86633f), 156) { Fly = true }; obj270.Steps = list365; reference294 = obj270; - span127[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference295 = ref span127[6]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 6 @@ -170225,21 +203602,26 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1021804u, new Vector3(368.1543f, -16.339586f, -331.44128f), 156) + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021804u, new Vector3(368.1543f, -16.339586f, -331.44128f), 156) { StopDistance = 5f }; obj271.Steps = list366; reference295 = obj271; - ref QuestSequence reference296 = ref span127[7]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021800u, new Vector3(55.557983f, 20.411068f, -675.5627f), 156) + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021800u, new Vector3(55.557983f, 20.411068f, -675.5627f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -170252,13 +203634,16 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list368); + index = 0; + span[index] = "liza"; questRoot34.Author = list368; - num = 3; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span128 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference297 = ref span128[0]; + index = 3; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + span2 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 0 @@ -170266,7 +203651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list370)[0]; + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + ref QuestStep reference298 = ref span3[index2]; QuestStep obj274 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170281,35 +203668,41 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list371 = new List(num3); - CollectionsMarshal.SetCount(list371, num3); - CollectionsMarshal.AsSpan(list371)[0] = 131; + index3 = 1; + List list371 = new List(index3); + CollectionsMarshal.SetCount(list371, index3); + span6 = CollectionsMarshal.AsSpan(list371); + num3 = 0; + span6[num3] = 131; obj275.InTerritory = list371; skipConditions15.AetheryteShortcutIf = obj275; obj274.SkipConditions = skipConditions15; reference298 = obj274; obj273.Steps = list370; reference297 = obj273; - ref QuestSequence reference299 = ref span128[1]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span129 = CollectionsMarshal.AsSpan(list372); - span129[0] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) + index2 = 2; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) { TargetTerritoryId = (ushort)146, Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - span129[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020959u, new Vector3(-463.1571f, -3.164927f, 61.264893f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020959u, new Vector3(-463.1571f, -3.164927f, 61.264893f), 146); obj276.Steps = list372; reference299 = obj276; - ref QuestSequence reference300 = ref span128[2]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue @@ -170317,7 +203710,9 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + span3 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170336,21 +203731,26 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list374); + index = 0; + span[index] = "liza"; questRoot35.Author = list374; - num = 5; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span130 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference301 = ref span130[0]; + index = 5; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + span2 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - ref QuestStep reference302 = ref CollectionsMarshal.AsSpan(list376)[0]; + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + ref QuestStep reference302 = ref span3[num2]; QuestStep obj279 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170368,14 +203768,17 @@ public static class AssemblyQuestLoader num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - CollectionsMarshal.AsSpan(list377)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span6[index3] = 131; obj280.InTerritory = list377; skipConditions16.AetheryteShortcutIf = obj280; obj279.SkipConditions = skipConditions16; reference302 = obj279; obj278.Steps = list376; reference301 = obj278; - ref QuestSequence reference303 = ref span130[1]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 @@ -170383,95 +203786,126 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1008543u, new Vector3(-360.00616f, 1.2644191f, 459.83057f), 153) + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008543u, new Vector3(-360.00616f, 1.2644191f, 459.83057f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj281.Steps = list378; reference303 = obj281; - ref QuestSequence reference304 = ref span130[2]; + num++; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span131 = CollectionsMarshal.AsSpan(list379); - ref QuestStep reference305 = ref span131[0]; + index2 = 3; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + span3 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + ref QuestStep reference305 = ref span3[num2]; QuestStep obj283 = new QuestStep(EInteractionType.Combat, 2007872u, new Vector3(-275.62378f, 4.8675537f, 523.76587f), 153) { Fly = true, Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - num3 = 1; - List list380 = new List(num3); - CollectionsMarshal.SetCount(list380, num3); - CollectionsMarshal.AsSpan(list380)[0] = 7232u; + index3 = 1; + List list380 = new List(index3); + CollectionsMarshal.SetCount(list380, index3); + span7 = CollectionsMarshal.AsSpan(list380); + num3 = 0; + span7[num3] = 7232u; obj283.KillEnemyDataIds = list380; num3 = 6; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span132 = CollectionsMarshal.AsSpan(list381); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj283.CompletionQuestVariablesFlags = list381; reference305 = obj283; - ref QuestStep reference306 = ref span131[1]; + num2++; + ref QuestStep reference306 = ref span3[num2]; QuestStep obj284 = new QuestStep(EInteractionType.Combat, 2007873u, new Vector3(-298.909f, 11.825684f, 567.46765f), 153) { Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - num3 = 1; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - CollectionsMarshal.AsSpan(list382)[0] = 7232u; + index3 = 1; + List list382 = new List(index3); + CollectionsMarshal.SetCount(list382, index3); + span7 = CollectionsMarshal.AsSpan(list382); + num3 = 0; + span7[num3] = 7232u; obj284.KillEnemyDataIds = list382; num3 = 6; List list383 = new List(num3); CollectionsMarshal.SetCount(list383, num3); - Span span133 = CollectionsMarshal.AsSpan(list383); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list383); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj284.CompletionQuestVariablesFlags = list383; reference306 = obj284; - ref QuestStep reference307 = ref span131[2]; + num2++; + ref QuestStep reference307 = ref span3[num2]; QuestStep obj285 = new QuestStep(EInteractionType.Combat, 2007874u, new Vector3(-310.5974f, 12.344482f, 645.777f), 153) { Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - num3 = 1; - List list384 = new List(num3); - CollectionsMarshal.SetCount(list384, num3); - CollectionsMarshal.AsSpan(list384)[0] = 7232u; + index3 = 1; + List list384 = new List(index3); + CollectionsMarshal.SetCount(list384, index3); + span7 = CollectionsMarshal.AsSpan(list384); + num3 = 0; + span7[num3] = 7232u; obj285.KillEnemyDataIds = list384; num3 = 6; List list385 = new List(num3); CollectionsMarshal.SetCount(list385, num3); - Span span134 = CollectionsMarshal.AsSpan(list385); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list385); + index3 = 0; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = null; + index3++; + span4[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj285.CompletionQuestVariablesFlags = list385; reference307 = obj285; obj282.Steps = list379; reference304 = obj282; - ref QuestSequence reference308 = ref span130[3]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 3 @@ -170479,21 +203913,26 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.Interact, 1020964u, new Vector3(-348.50085f, 0.22347936f, 454.45935f), 153) + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020964u, new Vector3(-348.50085f, 0.22347936f, 454.45935f), 153) { Fly = true }; obj286.Steps = list386; reference308 = obj286; - ref QuestSequence reference309 = ref span130[4]; + num++; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020966u, new Vector3(87.47986f, 18f, 113.69495f), 131) + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + span3 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020966u, new Vector3(87.47986f, 18f, 113.69495f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170512,13 +203951,16 @@ public static class AssemblyQuestLoader num = 1; List list388 = new List(num); CollectionsMarshal.SetCount(list388, num); - CollectionsMarshal.AsSpan(list388)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list388); + index = 0; + span[index] = "liza"; questRoot36.Author = list388; - num = 7; - List list389 = new List(num); - CollectionsMarshal.SetCount(list389, num); - Span span135 = CollectionsMarshal.AsSpan(list389); - ref QuestSequence reference310 = ref span135[0]; + index = 7; + List list389 = new List(index); + CollectionsMarshal.SetCount(list389, index); + span2 = CollectionsMarshal.AsSpan(list389); + num = 0; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 0 @@ -170526,7 +203968,9 @@ public static class AssemblyQuestLoader num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - ref QuestStep reference311 = ref CollectionsMarshal.AsSpan(list390)[0]; + span3 = CollectionsMarshal.AsSpan(list390); + index2 = 0; + ref QuestStep reference311 = ref span3[index2]; QuestStep obj289 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170541,31 +203985,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list391 = new List(num3); - CollectionsMarshal.SetCount(list391, num3); - CollectionsMarshal.AsSpan(list391)[0] = 131; + index3 = 1; + List list391 = new List(index3); + CollectionsMarshal.SetCount(list391, index3); + span6 = CollectionsMarshal.AsSpan(list391); + num3 = 0; + span6[num3] = 131; obj290.InTerritory = list391; skipConditions17.AetheryteShortcutIf = obj290; obj289.SkipConditions = skipConditions17; reference311 = obj289; obj288.Steps = list390; reference310 = obj288; - ref QuestSequence reference312 = ref span135[1]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1021051u, new Vector3(-36.91156f, 20.090933f, -679.07227f), 156) + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + span3 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021051u, new Vector3(-36.91156f, 20.090933f, -679.07227f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj291.Steps = list392; reference312 = obj291; - ref QuestSequence reference313 = ref span135[2]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = 2 @@ -170573,29 +204023,35 @@ public static class AssemblyQuestLoader num2 = 2; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span136 = CollectionsMarshal.AsSpan(list393); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.20407f, -15.94506f, -491.67297f), 156) + span3 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.20407f, -15.94506f, -491.67297f), 156) { Fly = true }; - span136[1] = new QuestStep(EInteractionType.Interact, 1021052u, new Vector3(-334.00476f, -16.18119f, -490.1961f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021052u, new Vector3(-334.00476f, -16.18119f, -490.1961f), 156); obj292.Steps = list393; reference313 = obj292; - ref QuestSequence reference314 = ref span135[3]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 2007907u, new Vector3(-321.21765f, -16.922302f, -361.6236f), 156) + index2 = 1; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + span3 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007907u, new Vector3(-321.21765f, -16.922302f, -361.6236f), 156) { Fly = true }; obj293.Steps = list394; reference314 = obj293; - ref QuestSequence reference315 = ref span135[4]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = 4 @@ -170603,7 +204059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - ref QuestStep reference316 = ref CollectionsMarshal.AsSpan(list395)[0]; + span3 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + ref QuestStep reference316 = ref span3[index2]; QuestStep obj295 = new QuestStep(EInteractionType.Combat, null, new Vector3(-412.69736f, -17.148405f, -361.9313f), 156) { StopDistance = 0.5f, @@ -170613,23 +204071,29 @@ public static class AssemblyQuestLoader num3 = 1; List list396 = new List(num3); CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = 7233u; + span7 = CollectionsMarshal.AsSpan(list396); + index3 = 0; + span7[index3] = 7233u; obj295.KillEnemyDataIds = list396; reference316 = obj295; obj294.Steps = list395; reference315 = obj294; - ref QuestSequence reference317 = ref span135[5]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1021059u, new Vector3(-413.80945f, -17.148407f, -362.23395f), 156); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + span3 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021059u, new Vector3(-413.80945f, -17.148407f, -362.23395f), 156); obj296.Steps = list397; reference317 = obj296; - ref QuestSequence reference318 = ref span135[6]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue @@ -170637,7 +204101,9 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference319 = ref CollectionsMarshal.AsSpan(list398)[0]; + span3 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + ref QuestStep reference319 = ref span3[index2]; QuestStep obj298 = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170647,10 +204113,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 1; - List list399 = new List(num3); - CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + index3 = 1; + List list399 = new List(index3); + CollectionsMarshal.SetCount(list399, index3); + span5 = CollectionsMarshal.AsSpan(list399); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM650_02590_Q2_000_000"), @@ -170668,21 +204136,26 @@ public static class AssemblyQuestLoader num = 1; List list400 = new List(num); CollectionsMarshal.SetCount(list400, num); - CollectionsMarshal.AsSpan(list400)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list400); + index = 0; + span[index] = "liza"; questRoot37.Author = list400; - num = 7; - List list401 = new List(num); - CollectionsMarshal.SetCount(list401, num); - Span span137 = CollectionsMarshal.AsSpan(list401); - ref QuestSequence reference320 = ref span137[0]; + index = 7; + List list401 = new List(index); + CollectionsMarshal.SetCount(list401, index); + span2 = CollectionsMarshal.AsSpan(list401); + num = 0; + ref QuestSequence reference320 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - ref QuestStep reference321 = ref CollectionsMarshal.AsSpan(list402)[0]; + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + span3 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + ref QuestStep reference321 = ref span3[num2]; QuestStep obj300 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170700,14 +204173,17 @@ public static class AssemblyQuestLoader num3 = 1; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - CollectionsMarshal.AsSpan(list403)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span6[index3] = 131; obj301.InTerritory = list403; skipConditions18.AetheryteShortcutIf = obj301; obj300.SkipConditions = skipConditions18; reference321 = obj300; obj299.Steps = list402; reference320 = obj299; - ref QuestSequence reference322 = ref span137[1]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 @@ -170715,22 +204191,27 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.Interact, 1021086u, new Vector3(326.10046f, 11.181234f, -8.743469f), 145) + span3 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021086u, new Vector3(326.10046f, 11.181234f, -8.743469f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj302.Steps = list404; reference322 = obj302; - ref QuestSequence reference323 = ref span137[2]; + num++; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj303 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1021090u, new Vector3(7.2174683f, 115.514336f, -720.7599f), 620) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021090u, new Vector3(7.2174683f, 115.514336f, -720.7599f), 620) { StopDistance = 0.5f, Fly = true, @@ -170738,7 +204219,8 @@ public static class AssemblyQuestLoader }; obj303.Steps = list405; reference323 = obj303; - ref QuestSequence reference324 = ref span137[3]; + num++; + ref QuestSequence reference324 = ref span2[num]; QuestSequence obj304 = new QuestSequence { Sequence = 3 @@ -170746,35 +204228,43 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - ref QuestStep reference325 = ref CollectionsMarshal.AsSpan(list406)[0]; + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + ref QuestStep reference325 = ref span3[index2]; QuestStep obj305 = new QuestStep(EInteractionType.Combat, 2007936u, new Vector3(-284.93176f, 66.20886f, -679.07227f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list407 = new List(num3); - CollectionsMarshal.SetCount(list407, num3); - CollectionsMarshal.AsSpan(list407)[0] = 7234u; + index3 = 1; + List list407 = new List(index3); + CollectionsMarshal.SetCount(list407, index3); + span7 = CollectionsMarshal.AsSpan(list407); + num3 = 0; + span7[num3] = 7234u; obj305.KillEnemyDataIds = list407; reference325 = obj305; obj304.Steps = list406; reference324 = obj304; - ref QuestSequence reference326 = ref span137[4]; + num++; + ref QuestSequence reference326 = ref span2[num]; QuestSequence obj306 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1021092u, new Vector3(-266.4073f, 76.297005f, -623.1022f), 620) + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span3 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021092u, new Vector3(-266.4073f, 76.297005f, -623.1022f), 620) { Fly = true }; obj306.Steps = list408; reference326 = obj306; - ref QuestSequence reference327 = ref span137[5]; + num++; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj307 = new QuestSequence { Sequence = 5 @@ -170782,22 +204272,27 @@ public static class AssemblyQuestLoader num2 = 1; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + span3 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj307.Steps = list409; reference327 = obj307; - ref QuestSequence reference328 = ref span137[6]; + num++; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + span3 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170816,13 +204311,16 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list411); + index = 0; + span[index] = "liza"; questRoot38.Author = list411; - num = 7; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span138 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference329 = ref span138[0]; + index = 7; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + span2 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference329 = ref span2[num]; QuestSequence obj309 = new QuestSequence { Sequence = 0 @@ -170830,7 +204328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list413 = new List(num2); CollectionsMarshal.SetCount(list413, num2); - ref QuestStep reference330 = ref CollectionsMarshal.AsSpan(list413)[0]; + span3 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + ref QuestStep reference330 = ref span3[index2]; QuestStep obj310 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170848,29 +204348,35 @@ public static class AssemblyQuestLoader num3 = 1; List list414 = new List(num3); CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list414); + index3 = 0; + span6[index3] = 131; obj311.InTerritory = list414; skipConditions19.AetheryteShortcutIf = obj311; obj310.SkipConditions = skipConditions19; reference330 = obj310; obj309.Steps = list413; reference329 = obj309; - ref QuestSequence reference331 = ref span138[1]; + num++; + ref QuestSequence reference331 = ref span2[num]; QuestSequence obj312 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1021097u, new Vector3(-270.37463f, -29.998833f, 111.92493f), 398) + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + span3 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021097u, new Vector3(-270.37463f, -29.998833f, 111.92493f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj312.Steps = list415; reference331 = obj312; - ref QuestSequence reference332 = ref span138[2]; + num++; + ref QuestSequence reference332 = ref span2[num]; QuestSequence obj313 = new QuestSequence { Sequence = 2 @@ -170878,28 +204384,35 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + span3 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj313.Steps = list416; reference332 = obj313; - ref QuestSequence reference333 = ref span138[3]; + num++; + ref QuestSequence reference333 = ref span2[num]; QuestSequence obj314 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021102u, new Vector3(-287.19012f, 39.04307f, 44.47998f), 398); + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + span3 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021102u, new Vector3(-287.19012f, 39.04307f, 44.47998f), 398); obj314.Steps = list417; reference333 = obj314; - span138[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference334 = ref span138[5]; + num++; + ref QuestSequence reference334 = ref span2[num]; QuestSequence obj315 = new QuestSequence { Sequence = 5 @@ -170907,21 +204420,26 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1021104u, new Vector3(-267.17023f, -30.09441f, 117.54016f), 398) + span3 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021104u, new Vector3(-267.17023f, -30.09441f, 117.54016f), 398) { Fly = true }; obj315.Steps = list418; reference334 = obj315; - ref QuestSequence reference335 = ref span138[6]; + num++; + ref QuestSequence reference335 = ref span2[num]; QuestSequence obj316 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170943,13 +204461,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -170957,7 +204478,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -170975,15 +204498,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -170994,7 +204520,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -171002,8 +204529,9 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestStep reference4 = ref span2[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1002659u, new Vector3(532.8297f, 88.99998f, -72.09894f), 135) { Fly = true, @@ -171019,53 +204547,72 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 135; + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = 135; skipAetheryteCondition.InTerritory = list6; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj4.SkipConditions = skipConditions; - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list7; reference4 = obj4; - ref QuestStep reference5 = ref span2[1]; + index2++; + ref QuestStep reference5 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1002657u, new Vector3(540.52026f, 89f, -74.02161f), 135); num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list8; reference5 = questStep; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1021353u, new Vector3(564.17163f, 84.45213f, -100.328125f), 135) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021353u, new Vector3(564.17163f, 84.45213f, -100.328125f), 135) { Fly = true }; obj5.Steps = list9; reference6 = obj5; - ref QuestSequence reference7 = ref span[4]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -171073,8 +204620,9 @@ public static class AssemblyQuestLoader num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference8 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1019064u, new Vector3(59.220215f, 4f, 67.70422f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -171091,50 +204639,67 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span6 = CollectionsMarshal.AsSpan(list11); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + span5 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list11; reference8 = obj7; - ref QuestStep reference9 = ref span5[1]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span7 = CollectionsMarshal.AsSpan(list12); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list12; reference9 = questStep2; obj6.Steps = list10; reference7 = obj6; - ref QuestSequence reference10 = ref span[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1019233u, new Vector3(-734.15735f, 1.9602847f, -611.38324f), 613) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019233u, new Vector3(-734.15735f, 1.9602847f, -611.38324f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj8.Steps = list13; reference10 = obj8; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -171142,20 +204707,24 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span8 = CollectionsMarshal.AsSpan(list14); - ref QuestStep reference12 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 478); - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new GatheredItem + index3 = 1; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span6 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 17946u, ItemCount = 20 }; questStep3.ItemsToGather = list15; reference12 = questStep3; - span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171174,21 +204743,26 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot2.Author = list16; - num = 8; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span9 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference13 = ref span9[0]; + index = 8; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171206,7 +204780,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list18; reference13 = obj10; - ref QuestSequence reference14 = ref span9[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -171214,7 +204789,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171225,15 +204802,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list19; reference14 = obj11; - ref QuestSequence reference15 = ref span9[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171244,7 +204824,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list20; reference15 = obj12; - ref QuestSequence reference16 = ref span9[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -171252,23 +204833,30 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478); + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478); obj13.Steps = list21; reference16 = obj13; - ref QuestSequence reference17 = ref span9[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list22)[0]; + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference18 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSHRV680_02623_Q1_000_000"), @@ -171278,7 +204866,8 @@ public static class AssemblyQuestLoader reference18 = questStep4; obj14.Steps = list22; reference17 = obj14; - ref QuestSequence reference19 = ref span9[5]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 5 @@ -171286,37 +204875,45 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478); obj15.Steps = list24; reference19 = obj15; - ref QuestSequence reference20 = ref span9[6]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span10 = CollectionsMarshal.AsSpan(list25); - ref QuestStep reference21 = ref span10[0]; + index2 = 2; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 478); - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = new GatheredItem + index3 = 1; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + span6 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 17947u, ItemCount = 20 }; questStep5.ItemsToGather = list26; reference21 = questStep5; - span10[1] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj16.Steps = list25; reference20 = obj16; - ref QuestSequence reference22 = ref span9[7]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -171324,7 +204921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); obj17.Steps = list27; reference22 = obj17; questRoot2.QuestSequence = list17; @@ -171334,21 +204933,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot3.Author = list28; - num = 7; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference23 = ref span11[0]; + index = 7; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171366,7 +204970,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list30; reference23 = obj18; - ref QuestSequence reference24 = ref span11[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -171374,7 +204979,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171385,21 +204992,25 @@ public static class AssemblyQuestLoader }; obj19.Steps = list31; reference24 = obj19; - ref QuestSequence reference25 = ref span11[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1021358u, new Vector3(-599.54224f, 130f, -483.32953f), 612) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021358u, new Vector3(-599.54224f, 130f, -483.32953f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj20.Steps = list32; reference25 = obj20; - ref QuestSequence reference26 = ref span11[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -171407,66 +205018,91 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1021359u, new Vector3(-262.25684f, 256.97177f, 695.52136f), 620) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021359u, new Vector3(-262.25684f, 256.97177f, 695.52136f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj21.Steps = list33; reference26 = obj21; - ref QuestSequence reference27 = ref span11[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference28 = ref span12[0]; + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620); num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span13 = CollectionsMarshal.AsSpan(list35); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list35; reference28 = questStep6; - ref QuestStep reference29 = ref span12[1]; + num2++; + ref QuestStep reference29 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1021595u, new Vector3(-232.50171f, 258.90652f, 783.505f), 620); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span14 = CollectionsMarshal.AsSpan(list36); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span5 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list36; reference29 = questStep7; - ref QuestStep reference30 = ref span12[2]; + num2++; + ref QuestStep reference30 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620); num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span15 = CollectionsMarshal.AsSpan(list37); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list37; reference30 = questStep8; obj22.Steps = list34; reference27 = obj22; - ref QuestSequence reference31 = ref span11[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 5 @@ -171474,31 +205110,38 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1022381u, new Vector3(-243.12207f, 257.52652f, 744.0145f), 620); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022381u, new Vector3(-243.12207f, 257.52652f, 744.0145f), 620); obj23.Steps = list38; reference31 = obj23; - ref QuestSequence reference32 = ref span11[6]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span16 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference33 = ref span16[0]; + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference33 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 478); - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span6 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 17948u, ItemCount = 5 }; questStep9.ItemsToGather = list40; reference33 = questStep9; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { Comment = "Eorzean Time: 4:00-5:59 AM/PM", AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -171517,13 +205160,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot4.Author = list41; - num = 6; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span17 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference34 = ref span17[0]; + index = 6; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -171531,7 +205177,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list43)[0]; + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171549,29 +205197,35 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 133; + span4 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span4[index3] = 133; obj27.InTerritory = list44; skipConditions2.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions2; reference35 = obj26; obj25.Steps = list43; reference34 = obj25; - ref QuestSequence reference36 = ref span17[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj28.Steps = list45; reference36 = obj28; - ref QuestSequence reference37 = ref span17[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -171579,35 +205233,43 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1022761u, new Vector3(5.996765f, 20.712559f, -659.26605f), 156) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022761u, new Vector3(5.996765f, 20.712559f, -659.26605f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj29.Steps = list46; reference37 = obj29; - ref QuestSequence reference38 = ref span17[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list47)[0]; + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 1022762u, new Vector3(385.39697f, 23.711746f, -712.7031f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 7227u; + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span8 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span8[num3] = 7227u; obj31.KillEnemyDataIds = list48; reference39 = obj31; obj30.Steps = list47; reference38 = obj30; - ref QuestSequence reference40 = ref span17[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -171615,18 +205277,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1022763u, new Vector3(384.0542f, 23.602556f, -711.20776f), 156); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022763u, new Vector3(384.0542f, 23.602556f, -711.20776f), 156); obj32.Steps = list49; reference40 = obj32; - ref QuestSequence reference41 = ref span17[5]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171645,13 +205312,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; questRoot5.Author = list51; - num = 7; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span18 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference42 = ref span18[0]; + index = 7; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -171659,7 +205329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list53)[0]; + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference43 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171677,28 +205349,34 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 133; + span4 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span4[index3] = 133; obj36.InTerritory = list54; skipConditions3.AetheryteShortcutIf = obj36; obj35.SkipConditions = skipConditions3; reference43 = obj35; obj34.Steps = list53; reference42 = obj34; - ref QuestSequence reference44 = ref span18[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1022765u, new Vector3(49.66809f, 3.9999626f, 429.22095f), 147) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022765u, new Vector3(49.66809f, 3.9999626f, 429.22095f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj37.Steps = list55; reference44 = obj37; - ref QuestSequence reference45 = ref span18[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -171706,29 +205384,36 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list56)[0]; + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference46 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 1022770u, new Vector3(82.38342f, 14.362329f, 221.20996f), 147) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 7228u; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span8 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span8[num3] = 7228u; obj39.KillEnemyDataIds = list57; reference46 = obj39; obj38.Steps = list56; reference45 = obj38; - ref QuestSequence reference47 = ref span18[3]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list58)[0]; + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 1022772u, new Vector3(87.907104f, 14.713098f, 222.03394f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -171736,12 +205421,15 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 7229u; + span8 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span8[index3] = 7229u; obj41.KillEnemyDataIds = list59; reference48 = obj41; obj40.Steps = list58; reference47 = obj40; - ref QuestSequence reference49 = ref span18[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -171749,31 +205437,39 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list60)[0]; + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 1022772u, new Vector3(87.907104f, 14.713098f, 222.03394f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = 7230u; + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span8 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span8[num3] = 7230u; obj43.KillEnemyDataIds = list61; reference50 = obj43; obj42.Steps = list60; reference49 = obj42; - ref QuestSequence reference51 = ref span18[5]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1022773u, new Vector3(74.66235f, 14.033362f, 228.5343f), 147); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022773u, new Vector3(74.66235f, 14.033362f, 228.5343f), 147); obj44.Steps = list62; reference51 = obj44; - ref QuestSequence reference52 = ref span18[6]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -171781,7 +205477,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171800,21 +205498,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot6.Author = list64; - num = 6; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span19 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference53 = ref span19[0]; + index = 6; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list66)[0]; + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171832,14 +205535,17 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 133; + span4 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span4[index3] = 133; obj48.InTerritory = list67; skipConditions4.AetheryteShortcutIf = obj48; obj47.SkipConditions = skipConditions4; reference54 = obj47; obj46.Steps = list66; reference53 = obj46; - ref QuestSequence reference55 = ref span19[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -171847,7 +205553,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1014039u, new Vector3(-17.990417f, 83.19999f, 0.6560669f), 130) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014039u, new Vector3(-17.990417f, 83.19999f, 0.6560669f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -171858,25 +205566,30 @@ public static class AssemblyQuestLoader }; obj49.Steps = list68; reference55 = obj49; - ref QuestSequence reference56 = ref span19[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) { StopDistance = 7f }; obj50.Steps = list69; reference56 = obj50; - span19[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference57 = ref span19[4]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -171884,21 +205597,26 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1014040u, new Vector3(-19.028076f, 83.19999f, 0.10675049f), 130) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014040u, new Vector3(-19.028076f, 83.19999f, 0.10675049f), 130) { StopDistance = 7f }; obj51.Steps = list70; reference57 = obj51; - ref QuestSequence reference58 = ref span19[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171917,13 +205635,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; questRoot7.Author = list72; - num = 6; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span20 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference59 = ref span20[0]; + index = 6; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -171931,7 +205652,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list74)[0]; + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference60 = ref span3[index2]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171946,32 +205669,38 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 133; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span4 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span4[num3] = 133; obj55.InTerritory = list75; skipConditions5.AetheryteShortcutIf = obj55; obj54.SkipConditions = skipConditions5; reference60 = obj54; obj53.Steps = list74; reference59 = obj53; - ref QuestSequence reference61 = ref span20[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj56.Steps = list76; reference61 = obj56; - ref QuestSequence reference62 = ref span20[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -171979,33 +205708,40 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span21 = CollectionsMarshal.AsSpan(list77); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span21[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj57.Steps = list77; reference62 = obj57; - ref QuestSequence reference63 = ref span20[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span22 = CollectionsMarshal.AsSpan(list78); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156); - span22[1] = new QuestStep(EInteractionType.Interact, 1023894u, new Vector3(8.346619f, 20.717896f, -657.49603f), 156) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023894u, new Vector3(8.346619f, 20.717896f, -657.49603f), 156) { Fly = true }; obj58.Steps = list78; reference63 = obj58; - ref QuestSequence reference64 = ref span20[4]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 4 @@ -172013,21 +205749,26 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1022780u, new Vector3(412.5581f, -5.7435417f, -436.39276f), 156) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022780u, new Vector3(412.5581f, -5.7435417f, -436.39276f), 156) { Fly = true }; obj59.Steps = list79; reference64 = obj59; - ref QuestSequence reference65 = ref span20[5]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -172046,13 +205787,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; questRoot8.Author = list81; - num = 7; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span23 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference66 = ref span23[0]; + index = 7; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -172060,7 +205804,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list83)[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference67 = ref span3[index2]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -172078,29 +205824,35 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 133; + span4 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span4[index3] = 133; obj63.InTerritory = list84; skipConditions6.AetheryteShortcutIf = obj63; obj62.SkipConditions = skipConditions6; reference67 = obj62; obj61.Steps = list83; reference66 = obj61; - ref QuestSequence reference68 = ref span23[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1022785u, new Vector3(-624.6891f, -176.4502f, -565.0874f), 402) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022785u, new Vector3(-624.6891f, -176.4502f, -565.0874f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj64.Steps = list85; reference68 = obj64; - ref QuestSequence reference69 = ref span23[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -172108,33 +205860,41 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list86)[0]; + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(20.176798f, 293.97687f, -0.15623161f), 402) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = 7231u; + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span8 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span8[num3] = 7231u; obj66.KillEnemyDataIds = list87; reference70 = obj66; obj65.Steps = list86; reference69 = obj65; - ref QuestSequence reference71 = ref span23[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2008640u, new Vector3(16.617004f, 293.8734f, 0.07623291f), 402); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008640u, new Vector3(16.617004f, 293.8734f, 0.07623291f), 402); obj67.Steps = list88; reference71 = obj67; - ref QuestSequence reference72 = ref span23[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -172142,24 +205902,30 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023595u, new Vector3(21.98816f, 293.97577f, 0.41192627f), 402); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023595u, new Vector3(21.98816f, 293.97577f, 0.41192627f), 402); obj68.Steps = list89; reference72 = obj68; - ref QuestSequence reference73 = ref span23[5]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1022790u, new Vector3(21.957703f, 293.9787f, -1.0529175f), 402) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022790u, new Vector3(21.957703f, 293.9787f, -1.0529175f), 402) { StopDistance = 5f }; obj69.Steps = list90; reference73 = obj69; - ref QuestSequence reference74 = ref span23[6]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -172167,7 +205933,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -172185,21 +205953,26 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list92; - num = 5; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span24 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference75 = ref span24[0]; + index = 5; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020068u, new Vector3(444.41882f, 68.028534f, -76.951294f), 614) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020068u, new Vector3(444.41882f, 68.028534f, -76.951294f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -172212,7 +205985,8 @@ public static class AssemblyQuestLoader }; obj71.Steps = list94; reference75 = obj71; - ref QuestSequence reference76 = ref span24[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -172220,36 +205994,42 @@ public static class AssemblyQuestLoader num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span25 = CollectionsMarshal.AsSpan(list95); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(839.0091f, 99.60754f, -427.17267f), 614) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(839.0091f, 99.60754f, -427.17267f), 614) { StopDistance = 0.25f, TargetTerritoryId = (ushort)613, Fly = true }; - span25[1] = new QuestStep(EInteractionType.Interact, 1020073u, new Vector3(-762.1119f, 4.763445f, -453.4829f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020073u, new Vector3(-762.1119f, 4.763445f, -453.4829f), 613) { StopDistance = 0.25f, Fly = true }; obj72.Steps = list95; reference76 = obj72; - ref QuestSequence reference77 = ref span24[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-743.88257f, -2.4347913f, -871.06934f), 613) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-743.88257f, -2.4347913f, -871.06934f), 613) { TargetTerritoryId = (ushort)622, Fly = true }; obj73.Steps = list96; reference77 = obj73; - ref QuestSequence reference78 = ref span24[3]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -172257,23 +206037,28 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1020076u, new Vector3(540.3677f, -19.793196f, 636.6216f), 622); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020076u, new Vector3(540.3677f, -19.793196f, 636.6216f), 622); obj74.Steps = list97; reference78 = obj74; - ref QuestSequence reference79 = ref span24[4]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span26 = CollectionsMarshal.AsSpan(list98); - span26[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008015u, new Vector3(570.27527f, -19.516357f, 438.16272f), 622) + index2 = 2; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008015u, new Vector3(570.27527f, -19.516357f, 438.16272f), 622) { AetherCurrentId = 2818208u }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); obj75.Steps = list98; reference79 = obj75; questRoot9.QuestSequence = list93; @@ -172283,13 +206068,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot10.Author = list99; - num = 5; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span27 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference80 = ref span27[0]; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -172297,7 +206085,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -172310,15 +206100,18 @@ public static class AssemblyQuestLoader }; obj76.Steps = list101; reference80 = obj76; - ref QuestSequence reference81 = ref span27[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1023604u, new Vector3(-113.96973f, -7.010037f, -39.292053f), 628) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023604u, new Vector3(-113.96973f, -7.010037f, -39.292053f), 628) { AethernetShortcut = new AethernetShortcut { @@ -172328,7 +206121,8 @@ public static class AssemblyQuestLoader }; obj77.Steps = list102; reference81 = obj77; - ref QuestSequence reference82 = ref span27[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 @@ -172336,7 +206130,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list103)[0]; + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference83 = ref span3[index2]; QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1019006u, new Vector3(-116.80786f, -7.0101376f, -39.108948f), 628) { StopDistance = 7f, @@ -172345,7 +206141,9 @@ public static class AssemblyQuestLoader num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -172356,18 +206154,22 @@ public static class AssemblyQuestLoader reference83 = obj79; obj78.Steps = list103; reference82 = obj78; - ref QuestSequence reference84 = ref span27[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1023605u, new Vector3(-99.99243f, 2.1199996f, 117.57068f), 641); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023605u, new Vector3(-99.99243f, 2.1199996f, 117.57068f), 641); obj80.Steps = list105; reference84 = obj80; - ref QuestSequence reference85 = ref span27[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -172375,7 +206177,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; @@ -172388,26 +206192,33 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list107; - num = 6; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span28 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference86 = ref span28[0]; + index = 6; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list109)[0]; + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference87 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new DialogueChoice + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span7 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY001_02632_Q1_000_050"), @@ -172417,7 +206228,8 @@ public static class AssemblyQuestLoader reference87 = questStep10; obj82.Steps = list109; reference86 = obj82; - ref QuestSequence reference88 = ref span28[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -172425,30 +206237,37 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); obj83.Steps = list111; reference88 = obj83; - ref QuestSequence reference89 = ref span28[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span29 = CollectionsMarshal.AsSpan(list112); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) + index2 = 3; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) { RestartNavigationIfCancelled = false }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.47687f, -192.81738f, 329.51413f), 613); - span29[2] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.47687f, -192.81738f, 329.51413f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) { Fly = true }; obj84.Steps = list112; reference89 = obj84; - ref QuestSequence reference90 = ref span28[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -172456,7 +206275,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -172466,21 +206287,25 @@ public static class AssemblyQuestLoader }; obj85.Steps = list113; reference90 = obj85; - ref QuestSequence reference91 = ref span28[4]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) { StopDistance = 8f }; obj86.Steps = list114; reference91 = obj86; - ref QuestSequence reference92 = ref span28[5]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -172488,17 +206313,20 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span30 = CollectionsMarshal.AsSpan(list115); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span30[2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj87.Steps = list115; reference92 = obj87; questRoot11.QuestSequence = list108; @@ -172508,21 +206336,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span31 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference93 = ref span31[0]; + index = 3; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172535,7 +206368,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list118; reference93 = obj88; - ref QuestSequence reference94 = ref span31[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -172543,118 +206377,163 @@ public static class AssemblyQuestLoader num2 = 6; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span32 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference95 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref QuestStep reference95 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1019473u, new Vector3(51.285522f, 23.640764f, -288.96008f), 635); num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span33 = CollectionsMarshal.AsSpan(list120); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list120; reference95 = questStep11; - ref QuestStep reference96 = ref span32[1]; + index2++; + ref QuestStep reference96 = ref span3[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span34 = CollectionsMarshal.AsSpan(list121); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span5 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list121; reference96 = obj90; - ref QuestStep reference97 = ref span32[2]; + index2++; + ref QuestStep reference97 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3239292f, -2.1258624f, 5.0789523f), 635); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span35 = CollectionsMarshal.AsSpan(list122); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list122; skipConditions7.StepIf = skipStepConditions; questStep12.SkipConditions = skipConditions7; reference97 = questStep12; - ref QuestStep reference98 = ref span32[3]; + index2++; + ref QuestStep reference98 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span36 = CollectionsMarshal.AsSpan(list123); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span5 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list123; reference98 = questStep13; - ref QuestStep reference99 = ref span32[4]; + index2++; + ref QuestStep reference99 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-42.27211f, -0.059376776f, -115.03399f), 635); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span37 = CollectionsMarshal.AsSpan(list124); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list124; skipConditions8.StepIf = skipStepConditions2; questStep14.SkipConditions = skipConditions8; reference99 = questStep14; - ref QuestStep reference100 = ref span32[5]; + index2++; + ref QuestStep reference100 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019490u, new Vector3(-6.240967f, -0.036807638f, -119.18823f), 635); - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span38 = CollectionsMarshal.AsSpan(list125); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span5 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list125; reference100 = questStep15; obj89.Steps = list119; reference94 = obj89; - ref QuestSequence reference101 = ref span31[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span39 = CollectionsMarshal.AsSpan(list126); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.89871f, -0.38368523f, -108.87432f), 635) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.89871f, -0.38368523f, -108.87432f), 635) { Mount = false }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635); obj91.Steps = list126; reference101 = obj91; questRoot12.QuestSequence = list117; @@ -172664,13 +206543,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list127; - num = 4; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span40 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference102 = ref span40[0]; + index = 4; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -172678,7 +206560,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172691,18 +206575,22 @@ public static class AssemblyQuestLoader }; obj92.Steps = list129; reference102 = obj92; - ref QuestSequence reference103 = ref span40[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1019471u, new Vector3(149.49255f, 12.918162f, -137.07184f), 635); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019471u, new Vector3(149.49255f, 12.918162f, -137.07184f), 635); obj93.Steps = list130; reference103 = obj93; - ref QuestSequence reference104 = ref span40[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -172710,100 +206598,138 @@ public static class AssemblyQuestLoader num2 = 5; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span41 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference105 = ref span41[0]; + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2007954u, new Vector3(89.52466f, 0.5340576f, -96.23871f), 635); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span42 = CollectionsMarshal.AsSpan(list132); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list132; reference105 = questStep16; - ref QuestStep reference106 = ref span41[1]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.282135f, -2.2715392f, -115.13004f), 635); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span5 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list133; skipConditions9.StepIf = skipStepConditions3; questStep17.SkipConditions = skipConditions9; reference106 = questStep17; - ref QuestStep reference107 = ref span41[2]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2007951u, new Vector3(24.887451f, -0.3204956f, -119.85962f), 635); num3 = 6; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span44 = CollectionsMarshal.AsSpan(list134); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list134; reference107 = questStep18; - ref QuestStep reference108 = ref span41[3]; + index2++; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2007953u, new Vector3(-35.568848f, 9.262146f, 100.20593f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - num3 = 6; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span45 = CollectionsMarshal.AsSpan(list135); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + span5 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list135; reference108 = obj95; - ref QuestStep reference109 = ref span41[4]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2007952u, new Vector3(-33.40204f, -0.16790771f, -16.800232f), 635); num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span46 = CollectionsMarshal.AsSpan(list136); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list136; reference109 = questStep19; obj94.Steps = list131; reference104 = obj94; - ref QuestSequence reference110 = ref span40[3]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span47 = CollectionsMarshal.AsSpan(list137); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) + index2 = 2; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) { Mount = true }; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635); obj96.Steps = list137; reference110 = obj96; questRoot13.QuestSequence = list128; @@ -172813,13 +206739,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span48 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference111 = ref span48[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -172827,12 +206756,14 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span49 = CollectionsMarshal.AsSpan(list140); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) { Mount = true }; - span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172845,88 +206776,125 @@ public static class AssemblyQuestLoader }; obj97.Steps = list140; reference111 = obj97; - ref QuestSequence reference112 = ref span48[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span50 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference113 = ref span50[0]; + index2 = 5; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference113 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1021168u, new Vector3(-160.38757f, -4.5343585f, -149.95044f), 635); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span51 = CollectionsMarshal.AsSpan(list142); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span5 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list142; reference113 = questStep20; - ref QuestStep reference114 = ref span50[1]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1021169u, new Vector3(19.485779f, -0.9195468f, 98.5885f), 635); num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span52 = CollectionsMarshal.AsSpan(list143); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list143; reference114 = questStep21; - ref QuestStep reference115 = ref span50[2]; + num2++; + ref QuestStep reference115 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1021171u, new Vector3(79.78931f, -0.19127949f, 56.809326f), 635); - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span53 = CollectionsMarshal.AsSpan(list144); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + span5 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list144; reference115 = questStep22; - ref QuestStep reference116 = ref span50[3]; + num2++; + ref QuestStep reference116 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021170u, new Vector3(76.21875f, 0f, -12.466675f), 635); num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span54 = CollectionsMarshal.AsSpan(list145); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list145; reference116 = questStep23; - ref QuestStep reference117 = ref span50[4]; + num2++; + ref QuestStep reference117 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1021172u, new Vector3(179.85803f, 13.567484f, -144.15204f), 635); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span55 = CollectionsMarshal.AsSpan(list146); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span5 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list146; reference117 = questStep24; obj98.Steps = list141; reference112 = obj98; - ref QuestSequence reference118 = ref span48[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -172934,7 +206902,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -172952,21 +206922,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span56 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference119 = ref span56[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023298u, new Vector3(22.354431f, -0.33829167f, 3.7384033f), 635) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023298u, new Vector3(22.354431f, -0.33829167f, 3.7384033f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172979,7 +206954,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list150; reference119 = obj100; - ref QuestSequence reference120 = ref span56[1]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -172987,7 +206963,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 2008813u, new Vector3(143.5415f, 14.206055f, -164.72119f), 635) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008813u, new Vector3(143.5415f, 14.206055f, -164.72119f), 635) { AethernetShortcut = new AethernetShortcut { @@ -172997,15 +206975,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list151; reference120 = obj101; - ref QuestSequence reference121 = ref span56[2]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023638u, new Vector3(152.84961f, 13.097335f, -94.16345f), 635); + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023638u, new Vector3(152.84961f, 13.097335f, -94.16345f), 635); obj102.Steps = list152; reference121 = obj102; questRoot15.QuestSequence = list149; @@ -173015,13 +206996,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list153; - num = 5; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span57 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference122 = ref span57[0]; + index = 5; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -173029,7 +207013,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -173042,18 +207028,22 @@ public static class AssemblyQuestLoader }; obj103.Steps = list155; reference122 = obj103; - ref QuestSequence reference123 = ref span57[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1019523u, new Vector3(-623.74304f, 130f, -483.7873f), 612); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019523u, new Vector3(-623.74304f, 130f, -483.7873f), 612); obj104.Steps = list156; reference123 = obj104; - ref QuestSequence reference124 = ref span57[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -173061,7 +207051,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list157)[0]; + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference125 = ref span3[index2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, null, new Vector3(-449.52835f, 105.07213f, -401.3476f), 612) { StopDistance = 0.5f, @@ -173070,46 +207062,53 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 7504u; + span8 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span8[index3] = 7504u; obj106.KillEnemyDataIds = list158; reference125 = obj106; obj105.Steps = list157; reference124 = obj105; - ref QuestSequence reference126 = ref span57[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list159)[0]; + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference127 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-232.26196f, 64.93323f, -676.26465f), 612) { StopDistance = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - CollectionsMarshal.AsSpan(list160)[0] = 7505u; + index3 = 1; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + span8 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span8[num3] = 7505u; obj108.KillEnemyDataIds = list160; reference127 = obj108; obj107.Steps = list159; reference126 = obj107; - ref QuestSequence reference128 = ref span57[4]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; + num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span58 = CollectionsMarshal.AsSpan(list161); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612); - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { - Mount = false, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj109.Steps = list161; @@ -173125,13 +207124,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -173139,7 +207141,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -173152,18 +207156,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -173171,18 +207179,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(656.90076f, 231.05865f, -611.2172f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -173190,7 +207203,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new ComplexCombatData + Span span4 = CollectionsMarshal.AsSpan(list7); + int index3 = 0; + span4[index3] = new ComplexCombatData { DataId = 6609u, MinimumKillCount = 2u, @@ -173201,7 +207216,8 @@ public static class AssemblyQuestLoader reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -173209,7 +207225,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -173222,21 +207240,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list9; - num = 6; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span2 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span2[0]; + index = 6; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -173249,7 +207272,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -173257,21 +207281,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1023143u, new Vector3(-631.0674f, 130.30254f, -465.96478f), 612); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023143u, new Vector3(-631.0674f, 130.30254f, -465.96478f), 612); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -173279,36 +207309,44 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference11 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span3 = CollectionsMarshal.AsSpan(list15); - span3[0] = 7217u; - span3[1] = 7553u; + index3 = 2; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span5 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span5[num3] = 7217u; + num3++; + span5[num3] = 7553u; obj11.KillEnemyDataIds = list15; reference11 = obj11; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference12 = ref span2[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1023148u, new Vector3(-429.89246f, 74.88393f, -118.30322f), 612) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023148u, new Vector3(-429.89246f, 74.88393f, -118.30322f), 612) { StopDistance = 5f }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span2[5]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -173316,7 +207354,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { StopDistance = 7f }; @@ -173329,21 +207369,26 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; questRoot3.Author = list18; - num = 4; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span4 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span4[0]; + index = 4; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023754u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023754u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -173357,7 +207402,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span4[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -173365,66 +207411,91 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span5 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008756u, new Vector3(-417.8073f, 76.8291f, -98.46649f), 612); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list22; reference16 = questStep; - ref QuestStep reference17 = ref span5[1]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008758u, new Vector3(-411.88678f, 71.82422f, -85.46582f), 612); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span7 = CollectionsMarshal.AsSpan(list23); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span6 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list23; reference17 = questStep2; - ref QuestStep reference18 = ref span5[2]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008757u, new Vector3(-423.6057f, 66.056274f, -33.463074f), 612); num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span8 = CollectionsMarshal.AsSpan(list24); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list24; reference18 = questStep3; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference19 = ref span4[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2008759u, new Vector3(-426.50494f, 75.028564f, -121.90442f), 612) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008759u, new Vector3(-426.50494f, 75.028564f, -121.90442f), 612) { Fly = true }; obj16.Steps = list25; reference19 = obj16; - ref QuestSequence reference20 = ref span4[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -173432,7 +207503,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2663) @@ -173446,24 +207519,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "liza"; questRoot4.Author = list27; - num = 6; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span9 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span9[0]; + index = 6; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); obj18.Steps = list29; reference21 = obj18; - ref QuestSequence reference22 = ref span9[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -173471,24 +207550,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) { StopDistance = 1f }; obj19.Steps = list30; reference22 = obj19; - ref QuestSequence reference23 = ref span9[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); obj20.Steps = list31; reference23 = obj20; - ref QuestSequence reference24 = ref span9[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -173496,27 +207581,33 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1023153u, new Vector3(-680.10986f, 120.11875f, -241.13837f), 612) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023153u, new Vector3(-680.10986f, 120.11875f, -241.13837f), 612) { Fly = true }; obj21.Steps = list32; reference24 = obj21; - ref QuestSequence reference25 = ref span9[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1023154u, new Vector3(-736.56824f, 110.02372f, -176.13495f), 612) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023154u, new Vector3(-736.56824f, 110.02372f, -176.13495f), 612) { Fly = true }; obj22.Steps = list33; reference25 = obj22; - ref QuestSequence reference26 = ref span9[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -173524,7 +207615,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -173539,24 +207632,30 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "liza"; questRoot5.Author = list35; - num = 8; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span10[0]; + index = 8; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span10[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -173564,24 +207663,30 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612) { Fly = true }; obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span10[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2008786u, new Vector3(-630.45703f, 130.3883f, -466.75824f), 612); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008786u, new Vector3(-630.45703f, 130.3883f, -466.75824f), 612); obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span10[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -173589,24 +207694,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612); obj27.Steps = list40; reference30 = obj27; - ref QuestSequence reference31 = ref span10[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1023157u, new Vector3(-427.26788f, 74.15582f, -103.56299f), 612) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023157u, new Vector3(-427.26788f, 74.15582f, -103.56299f), 612) { Fly = true }; obj28.Steps = list41; reference31 = obj28; - ref QuestSequence reference32 = ref span10[5]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 5 @@ -173614,35 +207725,42 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span11 = CollectionsMarshal.AsSpan(list42); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.5847f, 73.92399f, -104.41468f), 612) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.5847f, 73.92399f, -104.41468f), 612) { Fly = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 2008761u, new Vector3(-398.30627f, 74.23511f, -106.70636f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008761u, new Vector3(-398.30627f, 74.23511f, -106.70636f), 612); obj29.Steps = list42; reference32 = obj29; - ref QuestSequence reference33 = ref span10[6]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span12 = CollectionsMarshal.AsSpan(list43); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.48306f, 73.52123f, -100.069016f), 612) + index2 = 3; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.48306f, 73.52123f, -100.069016f), 612) { Mount = true }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.38403f, 62.880836f, -28.616083f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.38403f, 62.880836f, -28.616083f), 612) { Fly = true }; - span12[2] = new QuestStep(EInteractionType.Interact, 1023158u, new Vector3(-426.71857f, 63.23476f, -28.82434f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023158u, new Vector3(-426.71857f, 63.23476f, -28.82434f), 612); obj30.Steps = list43; reference33 = obj30; - ref QuestSequence reference34 = ref span10[7]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -173650,7 +207768,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -173665,24 +207785,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot6.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span13 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference35 = ref span13[0]; + index = 3; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628); obj32.Steps = list47; reference35 = obj32; - ref QuestSequence reference36 = ref span13[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -173690,8 +207816,9 @@ public static class AssemblyQuestLoader num2 = 6; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span14 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference37 = ref span14[0]; + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.62348f, 7.999999f, -59.427254f), 628) { RestartNavigationIfCancelled = false, @@ -173701,19 +207828,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span15 = CollectionsMarshal.AsSpan(list49); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + span6 = CollectionsMarshal.AsSpan(list49); + 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); obj34.CompletionQuestVariablesFlags = list49; reference37 = obj34; - span14[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-74.28216f, 18f, -164.39622f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-74.28216f, 18f, -164.39622f), 628) { AethernetShortcut = new AethernetShortcut { @@ -173727,8 +207861,10 @@ public static class AssemblyQuestLoader Type = EJumpType.RepeatedJumps } }; - span14[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-37.85175f, 20.196363f, -163.43034f), 628); - span14[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-37.806847f, 21.332985f, -161.45049f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-37.85175f, 20.196363f, -163.43034f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-37.806847f, 21.332985f, -161.45049f), 628) { StopDistance = 1f, JumpDestination = new JumpDestination @@ -173736,7 +207872,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-31.778416f, 23.141376f, -159.92921f) } }; - span14[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-32.529102f, 23.164635f, -159.86409f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-32.529102f, 23.164635f, -159.86409f), 628) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -173744,7 +207881,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-28.255697f, 24.146992f, -159.81477f) } }; - ref QuestStep reference38 = ref span14[5]; + index2++; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Jump, null, new Vector3(-28.255697f, 24.146992f, -159.81477f), 628) { StopDistance = 0.5f, @@ -173758,26 +207896,35 @@ public static class AssemblyQuestLoader num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span16 = CollectionsMarshal.AsSpan(list50); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list50; reference38 = obj35; obj33.Steps = list48; reference36 = obj33; - ref QuestSequence reference39 = ref span13[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -173795,13 +207942,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot7.Author = list52; - num = 4; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span17 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span17[0]; + index = 4; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -173809,21 +207959,27 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); obj37.Steps = list54; reference40 = obj37; - ref QuestSequence reference41 = ref span17[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1023306u, new Vector3(-80.338745f, -6.9700804f, -49.118835f), 628); + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023306u, new Vector3(-80.338745f, -6.9700804f, -49.118835f), 628); obj38.Steps = list55; reference41 = obj38; - ref QuestSequence reference42 = ref span17[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -173831,21 +207987,26 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.UseItem, 1023305u, new Vector3(4.409851f, 2.100081E-06f, -52.903076f), 628) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1023305u, new Vector3(4.409851f, 2.100081E-06f, -52.903076f), 628) { ItemId = 2002339u }; obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span17[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); obj40.Steps = list57; reference43 = obj40; questRoot7.QuestSequence = list53; @@ -173855,13 +208016,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list58; - num = 4; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span18 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference44 = ref span18[0]; + index = 4; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -173869,18 +208033,23 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613); obj41.Steps = list60; reference44 = obj41; - ref QuestSequence reference45 = ref span18[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -173891,7 +208060,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list61; reference45 = obj42; - ref QuestSequence reference46 = ref span18[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -173899,31 +208069,39 @@ public static class AssemblyQuestLoader num2 = 3; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span19 = CollectionsMarshal.AsSpan(list62); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(595.4312f, -0.26869023f, 800.52985f), 613); - span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.92212f, -0.19133466f, 672.5903f), 613); - ref QuestStep reference47 = ref span19[2]; + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(595.4312f, -0.26869023f, 800.52985f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.92212f, -0.19133466f, 672.5903f), 613); + index2++; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 1022745u, new Vector3(288.6853f, -0.5f, 393.78955f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 7497u; + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span5 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span5[num3] = 7497u; obj44.KillEnemyDataIds = list63; reference47 = obj44; obj43.Steps = list62; reference46 = obj43; - ref QuestSequence reference48 = ref span18[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -173941,13 +208119,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span20 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span20[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -173955,7 +208136,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -173968,18 +208151,22 @@ public static class AssemblyQuestLoader }; obj46.Steps = list67; reference49 = obj46; - ref QuestSequence reference50 = ref span20[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2008475u, new Vector3(-103.01367f, 2.2124634f, -856.199f), 613); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008475u, new Vector3(-103.01367f, 2.2124634f, -856.199f), 613); obj47.Steps = list68; reference50 = obj47; - ref QuestSequence reference51 = ref span20[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -173987,18 +208174,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1022401u, new Vector3(-158.89221f, -0.5f, -898.0087f), 613); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022401u, new Vector3(-158.89221f, -0.5f, -898.0087f), 613); obj48.Steps = list69; reference51 = obj48; - ref QuestSequence reference52 = ref span20[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -174011,13 +208203,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list71; - num = 4; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span21 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span21[0]; + index = 4; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -174025,7 +208220,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -174038,18 +208235,22 @@ public static class AssemblyQuestLoader }; obj50.Steps = list73; reference53 = obj50; - ref QuestSequence reference54 = ref span21[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1021513u, new Vector3(41.000854f, 21.22528f, -634.0276f), 613); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021513u, new Vector3(41.000854f, 21.22528f, -634.0276f), 613); obj51.Steps = list74; reference54 = obj51; - ref QuestSequence reference55 = ref span21[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -174057,20 +208258,25 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span22 = CollectionsMarshal.AsSpan(list75); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(97.741745f, 0.95900655f, -790.4652f), 613); - span22[1] = new QuestStep(EInteractionType.Interact, 1022959u, new Vector3(88.36499f, 5.006782f, -862.3331f), 613); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(97.741745f, 0.95900655f, -790.4652f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022959u, new Vector3(88.36499f, 5.006782f, -862.3331f), 613); obj52.Steps = list75; reference55 = obj52; - ref QuestSequence reference56 = ref span21[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -174083,13 +208289,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list77; - num = 5; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span23 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference57 = ref span23[0]; + index = 5; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -174097,7 +208306,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -174110,18 +208321,22 @@ public static class AssemblyQuestLoader }; obj54.Steps = list79; reference57 = obj54; - ref QuestSequence reference58 = ref span23[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1022103u, new Vector3(-47.135193f, 2.8637304f, -636.286f), 613); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022103u, new Vector3(-47.135193f, 2.8637304f, -636.286f), 613); obj55.Steps = list80; reference58 = obj55; - ref QuestSequence reference59 = ref span23[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -174129,7 +208344,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1022122u, new Vector3(134.66089f, 12.000001f, 69.047f), 628) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022122u, new Vector3(134.66089f, 12.000001f, 69.047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -174140,15 +208357,18 @@ public static class AssemblyQuestLoader }; obj56.Steps = list81; reference59 = obj56; - ref QuestSequence reference60 = ref span23[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1019049u, new Vector3(-130.87665f, -5.000044f, 140.82544f), 628) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019049u, new Vector3(-130.87665f, -5.000044f, 140.82544f), 628) { AethernetShortcut = new AethernetShortcut { @@ -174158,7 +208378,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list82; reference60 = obj57; - ref QuestSequence reference61 = ref span23[4]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -174166,7 +208387,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022117u, new Vector3(-49.515564f, 2.6587384f, -636.56067f), 613) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022117u, new Vector3(-49.515564f, 2.6587384f, -636.56067f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -174179,24 +208402,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span24 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span24[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613); obj59.Steps = list86; reference62 = obj59; - ref QuestSequence reference63 = ref span24[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -174204,19 +208433,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); obj60.Steps = list87; reference63 = obj60; - ref QuestSequence reference64 = ref span24[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span25 = CollectionsMarshal.AsSpan(list88); - span25[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(611.58606f, -1.6943853f, -91.26402f), 613) + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(611.58606f, -1.6943853f, -91.26402f), 613) { StopDistance = 0.25f, Mount = false, @@ -174225,7 +208458,8 @@ public static class AssemblyQuestLoader Position = new Vector3(617.04565f, -17.818226f, -108.994415f) } }; - span25[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.01825f, -18.570948f, -114.45003f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.01825f, -18.570948f, -114.45003f), 613) { StopDistance = 0.25f, Mount = false, @@ -174236,7 +208470,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list88; reference64 = obj61; - ref QuestSequence reference65 = ref span24[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -174244,8 +208479,9 @@ public static class AssemblyQuestLoader num2 = 3; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span26 = CollectionsMarshal.AsSpan(list89); - span26[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.17053f, -29.302427f, -130.22484f), 613) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.17053f, -29.302427f, -130.22484f), 613) { StopDistance = 0.25f, Mount = false, @@ -174254,7 +208490,8 @@ public static class AssemblyQuestLoader Position = new Vector3(604.2836f, -34.756268f, -136.64783f) } }; - span26[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(601.5953f, -36.643044f, -144.1365f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(601.5953f, -36.643044f, -144.1365f), 613) { StopDistance = 0.25f, Mount = false, @@ -174263,23 +208500,27 @@ public static class AssemblyQuestLoader Position = new Vector3(598.6192f, -43.845043f, -154.23668f) } }; - span26[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.64703f, -43.869747f, -156.01822f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.64703f, -43.869747f, -156.01822f), 613); obj62.Steps = list89; reference65 = obj62; - ref QuestSequence reference66 = ref span24[4]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span27 = CollectionsMarshal.AsSpan(list90); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.09125f, -62.583626f, -145.46727f), 613) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.09125f, -62.583626f, -145.46727f), 613) { DisableNavmesh = true }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); obj63.Steps = list90; reference66 = obj63; questRoot12.QuestSequence = list85; @@ -174293,13 +208534,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -174307,37 +208551,44 @@ public static class AssemblyQuestLoader int num2 = 3; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span2[2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -174345,7 +208596,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + span3 = CollectionsMarshal.AsSpan(list5); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true, NextQuestId = new QuestId(2705) @@ -174359,24 +208612,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 4; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span3[0]; + index = 4; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span3[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -174384,16 +208643,20 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; + span3 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + ref QuestStep reference6 = ref span3[num3]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1023282u, new Vector3(-32.791687f, 0.5718597f, -554.7723f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - int num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice + int num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span4 = CollectionsMarshal.AsSpan(list10); + int index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ309_02705_Q1_100_091"), @@ -174403,23 +208666,28 @@ public static class AssemblyQuestLoader reference6 = obj6; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1023285u, new Vector3(119.493286f, 5.006782f, -862.6078f), 613) { Fly = true }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span4 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ309_02705_Q2_100_151"), @@ -174429,7 +208697,8 @@ public static class AssemblyQuestLoader reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span3[3]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -174437,17 +208706,20 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span3 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span4[2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true, NextQuestId = new QuestId(2706) @@ -174461,24 +208733,30 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "liza"; questRoot3.Author = list14; - num = 7; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span5[0]; + index = 7; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -174486,16 +208764,20 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + span3 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + ref QuestStep reference12 = ref span3[num3]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1023287u, new Vector3(422.11023f, -98.96063f, -223.22424f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span4 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q1_000_100"), @@ -174505,30 +208787,35 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1023288u, new Vector3(350.515f, -120.581055f, -316.76202f), 613) { Fly = true }; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span6 = CollectionsMarshal.AsSpan(list20); - span6[0] = new DialogueChoice + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span4 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q2_000_160"), Answer = new ExcelRef("TEXT_STMBDZ310_02706_A2_000_161") }; - span6[1] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q3_000_200"), @@ -174538,7 +208825,8 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span5[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -174546,44 +208834,53 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span7 = CollectionsMarshal.AsSpan(list21); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + span3 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.4342f, -162.28119f, 115.91883f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.4342f, -162.28119f, 115.91883f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span7[2] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613); obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 2008809u, new Vector3(163.43933f, -172.01501f, 262.0736f), 613) { Fly = true, ItemId = 2002332u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 7824u; + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span5 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span5[index2] = 7824u; obj17.KillEnemyDataIds = list23; reference17 = obj17; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference18 = ref span5[5]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 5 @@ -174591,37 +208888,44 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613) + span3 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613) { Fly = true }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span5[6]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(200.64441f, -165.55836f, 116.97804f), 613) + num3 = 4; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(200.64441f, -165.55836f, 116.97804f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.43794f, -133.31677f, 79.0077f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.43794f, -133.31677f, 79.0077f), 613) { DelaySecondsAtStart = 2f, DisableNavmesh = true }; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.41638f, -199.01863f, -68.85027f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.41638f, -199.01863f, -68.85027f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span8[3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { NextQuestId = new QuestId(2707) }; @@ -174634,13 +208938,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; questRoot4.Author = list26; - num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span9[0]; + index = 3; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -174648,24 +208955,30 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + span3 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) { Fly = true }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -174673,15 +208986,19 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + span3 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + ref QuestStep reference23 = ref span3[num3]; QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1023291u, new Vector3(8.46875f, -198.34206f, -157.15265f), 613) { Fly = true }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span4 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ311_02707_Q1_000_160"), @@ -174699,21 +209016,26 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list32; - num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span10 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference24 = ref span10[0]; + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span2 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -174726,7 +209048,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span10[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -174734,125 +209057,171 @@ public static class AssemblyQuestLoader num2 = 7; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span11 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference26 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + ref QuestStep reference26 = ref span3[num3]; QuestStep obj26 = new QuestStep(EInteractionType.UseItem, 2008461u, new Vector3(474.2351f, 28.824219f, -212.23773f), 614) { ItemId = 2002241u }; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span6 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list36; reference26 = obj26; - ref QuestStep reference27 = ref span11[1]; + num3++; + ref QuestStep reference27 = ref span3[num3]; QuestStep obj27 = new QuestStep(EInteractionType.UseItem, 2008462u, new Vector3(569.6649f, 43.930664f, -145.22015f), 614) { ItemId = 2002241u }; - num3 = 6; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span13 = CollectionsMarshal.AsSpan(list37); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span6 = CollectionsMarshal.AsSpan(list37); + 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)4, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list37; reference27 = obj27; - ref QuestStep reference28 = ref span11[2]; + num3++; + ref QuestStep reference28 = ref span3[num3]; QuestStep obj28 = new QuestStep(EInteractionType.UseItem, 2008463u, new Vector3(531.18164f, 85.40466f, -303.33417f), 614) { ItemId = 2002241u }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span6 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list38; reference28 = obj28; - ref QuestStep reference29 = ref span11[3]; + num3++; + ref QuestStep reference29 = ref span3[num3]; QuestStep obj29 = new QuestStep(EInteractionType.UseItem, 2008464u, new Vector3(537.8042f, 61.57019f, -10.269409f), 614) { ItemId = 2002241u }; - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span15 = CollectionsMarshal.AsSpan(list39); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span6 = CollectionsMarshal.AsSpan(list39); + 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)1, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list39; reference29 = obj29; - ref QuestStep reference30 = ref span11[4]; + num3++; + ref QuestStep reference30 = ref span3[num3]; QuestStep obj30 = new QuestStep(EInteractionType.UseItem, 2008466u, new Vector3(487.0221f, 65.537476f, -23.361572f), 614) { ItemId = 2002241u }; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span16 = CollectionsMarshal.AsSpan(list40); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + span6 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list40; reference30 = obj30; - span11[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.11514f, 40.55606f, -51.57855f), 614) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.11514f, 40.55606f, -51.57855f), 614) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference31 = ref span11[6]; + num3++; + ref QuestStep reference31 = ref span3[num3]; QuestStep obj31 = new QuestStep(EInteractionType.UseItem, 2008465u, new Vector3(380.84985f, 41.031494f, -29.892456f), 614) { ItemId = 2002241u }; - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index2 = 6; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span6 = CollectionsMarshal.AsSpan(list41); + 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(0, (byte)8, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list41; reference31 = obj31; obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference32 = ref span10[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614); + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614); obj32.Steps = list42; reference32 = obj32; questRoot5.QuestSequence = list33; @@ -174862,13 +209231,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list43; - num = 8; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span18 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span18[0]; + index = 8; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -174876,7 +209248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) + span3 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -174889,18 +209263,22 @@ public static class AssemblyQuestLoader }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span18[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference35 = ref span18[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -174908,66 +209286,91 @@ public static class AssemblyQuestLoader num2 = 3; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span19 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference36 = ref span19[0]; + span3 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + ref QuestStep reference36 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008352u, new Vector3(379.23242f, 90.684326f, -134.72198f), 614); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span20 = CollectionsMarshal.AsSpan(list48); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + span6 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list48; reference36 = questStep; - ref QuestStep reference37 = ref span19[1]; + num3++; + ref QuestStep reference37 = ref span3[num3]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008354u, new Vector3(369.5276f, 97.61194f, -102.92212f), 614); - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span21 = CollectionsMarshal.AsSpan(list49); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span6 = CollectionsMarshal.AsSpan(list49); + 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); questStep2.CompletionQuestVariablesFlags = list49; reference37 = questStep2; - ref QuestStep reference38 = ref span19[2]; + num3++; + ref QuestStep reference38 = ref span3[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008353u, new Vector3(352.34607f, 97.61194f, -134.99658f), 614); - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span22 = CollectionsMarshal.AsSpan(list50); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + span6 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list50; reference38 = questStep3; obj35.Steps = list47; reference35 = obj35; - ref QuestSequence reference39 = ref span18[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614) + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614) { Mount = true }; obj36.Steps = list51; reference39 = obj36; - ref QuestSequence reference40 = ref span18[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 @@ -174975,27 +209378,33 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.UseItem, 2008355u, new Vector3(332.96704f, 100.87732f, -109.14783f), 614) + span3 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 2008355u, new Vector3(332.96704f, 100.87732f, -109.14783f), 614) { ItemId = 2002213u }; obj37.Steps = list52; reference40 = obj37; - ref QuestSequence reference41 = ref span18[5]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Emote, 1022071u, new Vector3(332.93652f, 100.91828f, -109.75824f), 614) + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1022071u, new Vector3(332.93652f, 100.91828f, -109.75824f), 614) { Emote = EEmote.Clap }; obj38.Steps = list53; reference41 = obj38; - ref QuestSequence reference42 = ref span18[6]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 6 @@ -175003,18 +209412,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); + span3 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); obj39.Steps = list54; reference42 = obj39; - ref QuestSequence reference43 = ref span18[7]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); obj40.Steps = list55; reference43 = obj40; questRoot6.QuestSequence = list44; @@ -175024,13 +209438,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span23 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference44 = ref span23[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -175038,7 +209455,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) + span3 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -175051,23 +209470,28 @@ public static class AssemblyQuestLoader }; obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference45 = ref span23[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list59)[0]; + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(151.29321f, -0.2997286f, 229.44983f), 614) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new ComplexCombatData + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span7 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 6682u, MinimumKillCount = 3u, @@ -175078,7 +209502,8 @@ public static class AssemblyQuestLoader reference46 = obj43; obj42.Steps = list59; reference45 = obj42; - ref QuestSequence reference47 = ref span23[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -175086,7 +209511,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019295u, new Vector3(756.3439f, 98.04659f, -229.93823f), 614) + span3 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019295u, new Vector3(756.3439f, 98.04659f, -229.93823f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -175099,21 +209526,26 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list62; - num = 8; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span24 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference48 = ref span24[0]; + index = 8; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -175126,7 +209558,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference48 = obj45; - ref QuestSequence reference49 = ref span24[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -175134,43 +209567,52 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + span3 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj46.Steps = list65; reference49 = obj46; - ref QuestSequence reference50 = ref span24[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span25 = CollectionsMarshal.AsSpan(list66); - span25[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008007u, new Vector3(497.27625f, 16.342407f, 402.48718f), 614) + num3 = 3; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008007u, new Vector3(497.27625f, 16.342407f, 402.48718f), 614) { AetherCurrentId = 2818195u }; - span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference51 = ref span25[2]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, 1022458u, new Vector3(210.95593f, 7.398857f, 500.26697f), 614) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span26 = CollectionsMarshal.AsSpan(list67); - span26[0] = 7524u; - span26[1] = 7525u; + num4 = 2; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + span5 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span5[index2] = 7524u; + index2++; + span5[index2] = 7525u; obj48.KillEnemyDataIds = list67; reference51 = obj48; obj47.Steps = list66; reference50 = obj47; - ref QuestSequence reference52 = ref span24[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -175178,23 +209620,29 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2008518u, new Vector3(211.4137f, 8.255066f, 501.97595f), 614); + span3 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2008518u, new Vector3(211.4137f, 8.255066f, 501.97595f), 614); obj49.Steps = list68; reference52 = obj49; - ref QuestSequence reference53 = ref span24[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614); - span27[1] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + num3 = 2; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj50.Steps = list69; reference53 = obj50; - ref QuestSequence reference54 = ref span24[5]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -175202,41 +209650,48 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) + span3 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Dive, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) { StopDistance = 0.25f }; - span28[1] = new QuestStep(EInteractionType.Interact, 2008519u, new Vector3(619.8672f, -48.66101f, 559.83826f), 614) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2008519u, new Vector3(619.8672f, -48.66101f, 559.83826f), 614) { DisableNavmesh = true, Mount = true }; obj51.Steps = list70; reference54 = obj51; - ref QuestSequence reference55 = ref span24[6]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) + num3 = 3; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) { StopDistance = 0.25f, DisableNavmesh = true, Mount = true }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(617.7405f, -0.3f, 493.613f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(617.7405f, -0.3f, 493.613f), 614) { StopDistance = 0.25f }; - span29[2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj52.Steps = list71; reference55 = obj52; - ref QuestSequence reference56 = ref span24[7]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -175244,7 +209699,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + span3 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -175257,21 +209714,26 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "Theo"; questRoot9.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span30 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference57 = ref span30[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614) + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175290,7 +209752,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list75; reference57 = obj54; - ref QuestSequence reference58 = ref span30[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -175298,49 +209761,66 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span31 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference59 = ref span31[0]; + span3 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref QuestStep reference59 = ref span3[num3]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2008520u, new Vector3(476.85962f, 58.304688f, -178.08807f), 614) { Mount = true }; - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span32 = CollectionsMarshal.AsSpan(list77); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span6 = CollectionsMarshal.AsSpan(list77); + 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); obj56.CompletionQuestVariablesFlags = list77; reference59 = obj56; - ref QuestStep reference60 = ref span31[1]; + num3++; + ref QuestStep reference60 = ref span3[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2008521u, new Vector3(477.8667f, 59.098145f, -177.66083f), 614); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span33 = CollectionsMarshal.AsSpan(list78); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span6 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list78; reference60 = questStep4; obj55.Steps = list76; reference58 = obj55; - ref QuestSequence reference61 = ref span30[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019302u, new Vector3(-279.347f, 17.31996f, 498.49683f), 614) + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019302u, new Vector3(-279.347f, 17.31996f, 498.49683f), 614) { Fly = true, NextQuestId = new QuestId(2748) @@ -175354,13 +209834,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "Theo"; questRoot10.Author = list80; - num = 6; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span34 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference62 = ref span34[0]; + index = 6; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -175368,7 +209851,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + span3 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175387,21 +209872,25 @@ public static class AssemblyQuestLoader }; obj58.Steps = list82; reference62 = obj58; - ref QuestSequence reference63 = ref span34[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 2008459u, new Vector3(394.5525f, 80.88806f, -194.17108f), 614) + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008459u, new Vector3(394.5525f, 80.88806f, -194.17108f), 614) { Fly = true }; obj59.Steps = list83; reference63 = obj59; - ref QuestSequence reference64 = ref span34[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -175409,35 +209898,43 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) + span3 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Emote, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) { Emote = EEmote.Rally }; obj60.Steps = list84; reference64 = obj60; - ref QuestSequence reference65 = ref span34[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(497.38757f, 55.17306f, 191.36812f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 7539u; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span5 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span5[num4] = 7539u; obj62.KillEnemyDataIds = list86; reference66 = obj62; obj61.Steps = list85; reference65 = obj61; - ref QuestSequence reference67 = ref span34[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -175445,18 +209942,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1022400u, new Vector3(499.9618f, 55.28981f, 191.18018f), 614); + span3 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022400u, new Vector3(499.9618f, 55.28981f, 191.18018f), 614); obj63.Steps = list87; reference67 = obj63; - ref QuestSequence reference68 = ref span34[5]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list88)[0]; + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference69 = ref span3[num2]; QuestStep obj65 = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, @@ -175474,10 +209976,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span4 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span4[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ413_02736_Q1_000_000"), @@ -175495,13 +209999,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "Theo"; questRoot11.Author = list90; - num = 6; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span35 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference70 = ref span35[0]; + index = 6; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -175509,7 +210016,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + span3 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175528,21 +210037,25 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference70 = obj66; - ref QuestSequence reference71 = ref span35[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) { Fly = true }; obj67.Steps = list93; reference71 = obj67; - ref QuestSequence reference72 = ref span35[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -175550,28 +210063,34 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1022421u, new Vector3(634.5464f, 86.07644f, -146.74603f), 614) + span3 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022421u, new Vector3(634.5464f, 86.07644f, -146.74603f), 614) { Fly = true }; obj68.Steps = list94; reference72 = obj68; - ref QuestSequence reference73 = ref span35[3]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Emote, 1022423u, new Vector3(499.71765f, 66.36111f, -16.586609f), 614) + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1022423u, new Vector3(499.71765f, 66.36111f, -16.586609f), 614) { Fly = true, Emote = EEmote.Psych }; obj69.Steps = list95; reference73 = obj69; - ref QuestSequence reference74 = ref span35[4]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -175579,21 +210098,26 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1022424u, new Vector3(475.51685f, 68.02852f, -106.30963f), 614) + span3 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022424u, new Vector3(475.51685f, 68.02852f, -106.30963f), 614) { Fly = true }; obj70.Steps = list96; reference74 = obj70; - ref QuestSequence reference75 = ref span35[5]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175620,13 +210144,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "Theo"; questRoot12.Author = list98; - num = 5; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span36 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference76 = ref span36[0]; + index = 5; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -175634,7 +210161,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + span3 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175653,23 +210182,28 @@ public static class AssemblyQuestLoader }; obj72.Steps = list100; reference76 = obj72; - ref QuestSequence reference77 = ref span36[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list101)[0]; + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) { Fly = true }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span4 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ415_02738_Q1_000_000"), @@ -175679,7 +210213,8 @@ public static class AssemblyQuestLoader reference78 = obj74; obj73.Steps = list101; reference77 = obj73; - ref QuestSequence reference79 = ref span36[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -175687,75 +210222,100 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span37 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference80 = ref span37[0]; + span3 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + ref QuestStep reference80 = ref span3[num3]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 2008490u, new Vector3(627.8019f, 84.97742f, -98.49707f), 614) { Fly = true }; - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span38 = CollectionsMarshal.AsSpan(list104); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span6 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list104; reference80 = obj76; - ref QuestStep reference81 = ref span37[1]; + num3++; + ref QuestStep reference81 = ref span3[num3]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 2008491u, new Vector3(664.8203f, 92.088135f, -107.774536f), 614) { Mount = true }; - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span39 = CollectionsMarshal.AsSpan(list105); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span6 = CollectionsMarshal.AsSpan(list105); + 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)4, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list105; reference81 = obj77; - ref QuestStep reference82 = ref span37[2]; + num3++; + ref QuestStep reference82 = ref span3[num3]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2008492u, new Vector3(657.98413f, 85.22156f, -150.56079f), 614) { Mount = true }; - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span40 = CollectionsMarshal.AsSpan(list106); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list106 = new List(num4); + CollectionsMarshal.SetCount(list106, num4); + span6 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj78.CompletionQuestVariablesFlags = list106; reference82 = obj78; obj75.Steps = list103; reference79 = obj75; - ref QuestSequence reference83 = ref span36[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) { Fly = true }; obj79.Steps = list107; reference83 = obj79; - ref QuestSequence reference84 = ref span36[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -175763,7 +210323,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + span3 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175790,21 +210352,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "Theo"; questRoot13.Author = list109; - num = 7; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span41 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference85 = ref span41[0]; + index = 7; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022425u, new Vector3(473.3806f, 58.51295f, -180.95679f), 614) + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022425u, new Vector3(473.3806f, 58.51295f, -180.95679f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175823,7 +210390,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list111; reference85 = obj81; - ref QuestSequence reference86 = ref span41[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 @@ -175831,28 +210399,34 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1022417u, new Vector3(365.6825f, 100.83898f, -93.91931f), 614) + span3 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022417u, new Vector3(365.6825f, 100.83898f, -93.91931f), 614) { StopDistance = 0.5f, Fly = true }; obj82.Steps = list112; reference86 = obj82; - ref QuestSequence reference87 = ref span41[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1022416u, new Vector3(675.92883f, 98.45921f, -103.80713f), 614) + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022416u, new Vector3(675.92883f, 98.45921f, -103.80713f), 614) { Fly = true }; obj83.Steps = list113; reference87 = obj83; - ref QuestSequence reference88 = ref span41[3]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 3 @@ -175860,35 +210434,43 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) + span3 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) { Fly = true }; obj84.Steps = list114; reference88 = obj84; - ref QuestSequence reference89 = ref span41[4]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list115)[0]; + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(720.75977f, 116.93192f, -60.349487f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 7540u; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span5 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span5[num4] = 7540u; obj86.KillEnemyDataIds = list116; reference90 = obj86; obj85.Steps = list115; reference89 = obj85; - ref QuestSequence reference91 = ref span41[5]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 5 @@ -175896,21 +210478,26 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) + span3 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) { Fly = true }; obj87.Steps = list117; reference91 = obj87; - ref QuestSequence reference92 = ref span41[6]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175937,13 +210524,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "Theo"; questRoot14.Author = list119; - num = 5; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span42 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference93 = ref span42[0]; + index = 5; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -175951,24 +210541,30 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614); + span3 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614); obj89.Steps = list121; reference93 = obj89; - ref QuestSequence reference94 = ref span42[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj90.Steps = list122; reference94 = obj90; - ref QuestSequence reference95 = ref span42[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -175976,25 +210572,31 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + span3 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj91.Steps = list123; reference95 = obj91; - ref QuestSequence reference96 = ref span42[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1023463u, new Vector3(563.8666f, 68.09528f, -11.306946f), 614) + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023463u, new Vector3(563.8666f, 68.09528f, -11.306946f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj92.Steps = list124; reference96 = obj92; - ref QuestSequence reference97 = ref span42[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -176002,7 +210604,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023465u, new Vector3(462.76025f, 68.01855f, -106.55377f), 614) + span3 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023465u, new Vector3(462.76025f, 68.01855f, -106.55377f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -176028,32 +210632,38 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "Theo"; questRoot15.Author = list126; - num = 4; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span43 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference98 = ref span43[0]; + index = 4; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span44 = CollectionsMarshal.AsSpan(list128); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) + num3 = 2; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) { StopDistance = 0.25f }; obj94.Steps = list128; reference98 = obj94; - ref QuestSequence reference99 = ref span43[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -176061,33 +210671,39 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) + span3 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj95.Steps = list129; reference99 = obj95; - ref QuestSequence reference100 = ref span43[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span45 = CollectionsMarshal.AsSpan(list130); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) + num3 = 2; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) { Fly = true }; - span45[1] = new QuestStep(EInteractionType.Interact, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) { StopDistance = 0.25f }; obj96.Steps = list130; reference100 = obj96; - ref QuestSequence reference101 = ref span43[3]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -176095,7 +210711,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) + span3 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -176110,27 +210728,33 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot16.Author = list132; - num = 6; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span46 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference102 = ref span46[0]; + index = 6; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023236u, new Vector3(-300.06866f, 16.806112f, 539.45215f), 614) + num3 = 1; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023236u, new Vector3(-300.06866f, 16.806112f, 539.45215f), 614) { Fly = true }; obj98.Steps = list134; reference102 = obj98; - ref QuestSequence reference103 = ref span46[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -176138,29 +210762,35 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + span3 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj99.Steps = list135; reference103 = obj99; - ref QuestSequence reference104 = ref span46[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span47 = CollectionsMarshal.AsSpan(list136); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) { Fly = true }; - span47[1] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); obj100.Steps = list136; reference104 = obj100; - ref QuestSequence reference105 = ref span46[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 3 @@ -176168,40 +210798,47 @@ public static class AssemblyQuestLoader num2 = 2; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span48 = CollectionsMarshal.AsSpan(list137); - span48[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) + span3 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Dive, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) { DisableNavmesh = true }; - span48[1] = new QuestStep(EInteractionType.Interact, 2008799u, new Vector3(-549.7063f, -109.51398f, 569.32935f), 614) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 2008799u, new Vector3(-549.7063f, -109.51398f, 569.32935f), 614) { Mount = true, Fly = true }; obj101.Steps = list137; reference105 = obj101; - ref QuestSequence reference106 = ref span46[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span49 = CollectionsMarshal.AsSpan(list138); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) + num3 = 3; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) { Fly = true }; - span49[2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); obj102.Steps = list138; reference106 = obj102; - ref QuestSequence reference107 = ref span46[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -176209,7 +210846,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + span3 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2749) @@ -176223,24 +210862,30 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "Theo"; questRoot17.Author = list140; - num = 7; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span50 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference108 = ref span50[0]; + index = 7; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj104.Steps = list142; reference108 = obj104; - ref QuestSequence reference109 = ref span50[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -176248,23 +210893,27 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1023239u, new Vector3(-392.72144f, 46.670254f, 452.93335f), 614) + span3 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1023239u, new Vector3(-392.72144f, 46.670254f, 452.93335f), 614) { StopDistance = 0.5f, Fly = true }; obj105.Steps = list143; reference109 = obj105; - ref QuestSequence reference110 = ref span50[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span51 = CollectionsMarshal.AsSpan(list144); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.56377f, 49.354053f, 284.94565f), 614) + num3 = 2; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.56377f, 49.354053f, 284.94565f), 614) { Fly = true, SkipConditions = new SkipConditions @@ -176275,13 +210924,15 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) { Fly = true }; obj106.Steps = list144; reference110 = obj106; - ref QuestSequence reference111 = ref span50[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 @@ -176289,36 +210940,44 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; + span3 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + ref QuestStep reference112 = ref span3[num3]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-287.37323f, 39.150906f, 206.95801f), 614) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = 7541u; + num4 = 1; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + span5 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span5[index2] = 7541u; obj108.KillEnemyDataIds = list146; reference112 = obj108; obj107.Steps = list145; reference111 = obj107; - ref QuestSequence reference113 = ref span50[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) { Fly = true }; obj109.Steps = list147; reference113 = obj109; - ref QuestSequence reference114 = ref span50[5]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 5 @@ -176326,21 +210985,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2008801u, new Vector3(-234.24127f, 17.593567f, 486.9917f), 614) + span3 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2008801u, new Vector3(-234.24127f, 17.593567f, 486.9917f), 614) { Fly = true }; obj110.Steps = list148; reference114 = obj110; - ref QuestSequence reference115 = ref span50[6]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2750) @@ -176358,13 +211022,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Theo"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Theo"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -176372,18 +211039,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(151.29321f, -0.2997286f, 229.44983f), 614) { Fly = true, @@ -176392,7 +211064,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new ComplexCombatData + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new ComplexCombatData { DataId = 6682u, MinimumKillCount = 3u @@ -176401,7 +211075,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -176409,24 +211084,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 2008802u, new Vector3(-235.03479f, 17.654663f, 487.32727f), 614); + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008802u, new Vector3(-235.03479f, 17.654663f, 487.32727f), 614); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -176434,21 +211115,26 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1023243u, new Vector3(-88.85327f, -0.35101318f, 654.4442f), 614) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023243u, new Vector3(-88.85327f, -0.35101318f, 654.4442f), 614) { Fly = true }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2751) @@ -176462,13 +211148,16 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "Theo"; questRoot2.Author = list10; - num = 7; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span2 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span2[0]; + index = 7; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -176476,24 +211165,30 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) { Fly = true }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -176501,27 +211196,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1023245u, new Vector3(133.1654f, 13.172864f, 483.7871f), 614) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023245u, new Vector3(133.1654f, 13.172864f, 483.7871f), 614) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) { Fly = true }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span2[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 @@ -176529,35 +211230,43 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span3[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(447.20697f, 14.621715f, 673.4272f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 7525u; + index3 = 1; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span5 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span5[num3] = 7525u; obj13.KillEnemyDataIds = list17; reference13 = obj13; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference14 = ref span2[5]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) { Fly = true }; obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span2[6]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -176565,7 +211274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) { Fly = true, NextQuestId = new QuestId(2747) @@ -176579,21 +211290,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span3 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span3[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -176606,7 +211322,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span3[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -176614,7 +211331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(659.4403f, -0.7996712f, -28.710917f), 622) { Fly = true, @@ -176623,7 +211342,9 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + span4 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + ref ComplexCombatData reference19 = ref span4[index3]; ComplexCombatData obj19 = new ComplexCombatData { DataId = 6692u, @@ -176632,28 +211353,37 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span4 = CollectionsMarshal.AsSpan(list25); - span4[0] = null; - span4[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = null; + Span span6 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span6[num5] = null; + num5++; + span6[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; + num5++; + span6[num5] = null; obj19.CompletionQuestVariablesFlags = list25; reference19 = obj19; obj18.ComplexCombatData = list24; reference18 = obj18; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference20 = ref span3[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -176666,13 +211396,16 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list27; - num = 3; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span5 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span5[0]; + index = 3; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -176680,7 +211413,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -176693,18 +211428,22 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span5[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1022127u, new Vector3(606.3783f, -14.991949f, 328.542f), 622); + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022127u, new Vector3(606.3783f, -14.991949f, 328.542f), 622); obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference23 = ref span5[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -176712,7 +211451,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022128u, new Vector3(588.00635f, -19.505651f, 316.57886f), 622); + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022128u, new Vector3(588.00635f, -19.505651f, 316.57886f), 622); obj23.Steps = list31; reference23 = obj23; questRoot4.QuestSequence = list28; @@ -176722,24 +211463,30 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list32; - num = 4; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span6 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference24 = ref span6[0]; + index = 4; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span2 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span6[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -176747,24 +211494,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Snipe, 2008318u, new Vector3(-83.48212f, 33.21875f, -210.22363f), 622) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2008318u, new Vector3(-83.48212f, 33.21875f, -210.22363f), 622) { Comment = "Snipe sheep" }; obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span6[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1021900u, new Vector3(-83.36011f, 27.540436f, -146.44086f), 622); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021900u, new Vector3(-83.36011f, 27.540436f, -146.44086f), 622); obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span6[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -176772,7 +211525,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); obj27.Steps = list37; reference27 = obj27; questRoot5.QuestSequence = list33; @@ -176782,21 +211537,26 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list38; - num = 4; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span7 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span7[0]; + index = 4; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -176814,7 +211574,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list40; reference28 = obj28; - ref QuestSequence reference29 = ref span7[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -176822,66 +211583,91 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1019430u, new Vector3(33.98181f, 114.90497f, -40.69586f), 622); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019430u, new Vector3(33.98181f, 114.90497f, -40.69586f), 622); obj29.Steps = list41; reference29 = obj29; - ref QuestSequence reference30 = ref span7[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span8 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference31 = ref span8[0]; + index2 = 3; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008925u, new Vector3(26.962646f, 115.464966f, -44.419067f), 622); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span9 = CollectionsMarshal.AsSpan(list43); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span6 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list43; reference31 = questStep; - ref QuestStep reference32 = ref span8[1]; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008927u, new Vector3(28.915894f, 115.464966f, -49.5766f), 622); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span10 = CollectionsMarshal.AsSpan(list44); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list44; reference32 = questStep2; - ref QuestStep reference33 = ref span8[2]; + num2++; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2008926u, new Vector3(27.634033f, 115.464966f, -48.05072f), 622) { StopDistance = 4f }; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span11 = CollectionsMarshal.AsSpan(list45); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span6 = CollectionsMarshal.AsSpan(list45); + 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); obj31.CompletionQuestVariablesFlags = list45; reference33 = obj31; obj30.Steps = list42; reference30 = obj30; - ref QuestSequence reference34 = ref span7[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -176889,7 +211675,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622); obj32.Steps = list46; reference34 = obj32; questRoot6.QuestSequence = list39; @@ -176899,24 +211687,30 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list47; - num = 3; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span12 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference35 = ref span12[0]; + index = 3; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); obj33.Steps = list49; reference35 = obj33; - ref QuestSequence reference36 = ref span12[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -176924,65 +211718,91 @@ public static class AssemblyQuestLoader num2 = 3; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span13 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference37 = ref span13[0]; + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + ref QuestStep reference37 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1019321u, new Vector3(-473.0144f, 2.320309f, 616.907f), 622); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span14 = CollectionsMarshal.AsSpan(list51); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list51; reference37 = questStep3; - ref QuestStep reference38 = ref span13[1]; + index2++; + ref QuestStep reference38 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022222u, new Vector3(-485.22168f, 2.6499166f, 609.94885f), 622); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span15 = CollectionsMarshal.AsSpan(list52); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span6 = CollectionsMarshal.AsSpan(list52); + 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); questStep4.CompletionQuestVariablesFlags = list52; reference38 = questStep4; - ref QuestStep reference39 = ref span13[2]; + index2++; + ref QuestStep reference39 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1022228u, new Vector3(-436.72852f, 2.253339f, 573.4187f), 622); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span16 = CollectionsMarshal.AsSpan(list53); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list53; reference39 = questStep5; obj34.Steps = list50; reference36 = obj34; - ref QuestSequence reference40 = ref span12[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list54)[0]; + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new DialogueChoice + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span7 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ613_02791_Q1_000_000"), @@ -177003,13 +211823,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -177017,33 +211840,44 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 6; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1023127u, new Vector3(-102.9527f, 11.80004f, -114.76312f), 628); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1023131u, new Vector3(-88.304016f, -6.9999995f, -63.09613f), 628) { AethernetShortcut = new AethernetShortcut @@ -177052,19 +211886,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list6; reference4 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1023126u, new Vector3(32.60852f, 2.9999993f, -49.881836f), 628) { AethernetShortcut = new AethernetShortcut @@ -177076,16 +211917,23 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list7; reference5 = obj4; - ref QuestStep reference6 = ref span2[3]; + num2++; + ref QuestStep reference6 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1023130u, new Vector3(80.460815f, 4.000001f, 71.488525f), 628) { AethernetShortcut = new AethernetShortcut @@ -177094,33 +211942,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + span4 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list8; reference6 = obj5; - ref QuestStep reference7 = ref span2[4]; + num2++; + ref QuestStep reference7 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1023128u, new Vector3(-34.103943f, 15.000004f, 68.86389f), 628); num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list9; reference7 = questStep2; - ref QuestStep reference8 = ref span2[5]; + num2++; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1023129u, new Vector3(17.593567f, 11.44387f, 174.45642f), 628) { AethernetShortcut = new AethernetShortcut @@ -177129,21 +211991,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeThavnairianConsulate } }; - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span8 = CollectionsMarshal.AsSpan(list10); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list10; reference8 = obj6; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference9 = ref span[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -177151,7 +212020,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list11)[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.CompleteQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628) { AethernetShortcut = new AethernetShortcut @@ -177163,7 +212034,9 @@ public static class AssemblyQuestLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ710_02813_Q1_000_031"), @@ -177180,24 +212053,30 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span9 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference11 = ref span9[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference12 = ref span9[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -177205,34 +212084,43 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(566.8916f, 72.80687f, 138.84087f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = 7224u; - span10[1] = 7237u; - span10[2] = 7512u; + num4 = 3; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span6 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span6[num3] = 7224u; + num3++; + span6[num3] = 7237u; + num3++; + span6[num3] = 7512u; obj11.KillEnemyDataIds = list17; reference13 = obj11; obj10.Steps = list16; reference12 = obj10; - ref QuestSequence reference14 = ref span9[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1021227u, new Vector3(567.0709f, 72.83738f, 138.93335f), 612); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021227u, new Vector3(567.0709f, 72.83738f, 138.93335f), 612); obj12.Steps = list18; reference14 = obj12; - ref QuestSequence reference15 = ref span9[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -177240,18 +212128,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1021948u, new Vector3(608.97217f, 49.31076f, 327.10767f), 612); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021948u, new Vector3(608.97217f, 49.31076f, 327.10767f), 612); obj13.Steps = list19; reference15 = obj13; - ref QuestSequence reference16 = ref span9[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); obj14.Steps = list20; reference16 = obj14; questRoot2.QuestSequence = list14; @@ -177261,13 +212154,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span11 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference17 = ref span11[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -177275,7 +212171,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -177288,15 +212186,18 @@ public static class AssemblyQuestLoader }; obj15.Steps = list23; reference17 = obj15; - ref QuestSequence reference18 = ref span11[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(385.1642f, 74.01643f, 135.44316f), 612) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -177304,7 +212205,9 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 6655u; + span6 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span6[num4] = 6655u; obj17.KillEnemyDataIds = list25; obj17.CombatItemUse = new CombatItemUse { @@ -177315,7 +212218,8 @@ public static class AssemblyQuestLoader reference19 = obj17; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference20 = ref span11[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -177323,7 +212227,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -177336,27 +212242,33 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "liza"; questRoot4.Author = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span12 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span12[0]; + index = 4; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj19.Steps = list29; reference21 = obj19; - ref QuestSequence reference22 = ref span12[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -177364,34 +212276,42 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1023160u, new Vector3(303.12048f, 46.087757f, 493.0647f), 612) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023160u, new Vector3(303.12048f, 46.087757f, 493.0647f), 612) { Fly = true }; obj20.Steps = list30; reference22 = obj20; - ref QuestSequence reference23 = ref span12[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference24 = ref span3[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2008763u, new Vector3(465.7511f, 77.56152f, 118.08948f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = 7545u; + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span6 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span6[num3] = 7545u; obj22.KillEnemyDataIds = list32; reference24 = obj22; obj21.Steps = list31; reference23 = obj21; - ref QuestSequence reference25 = ref span12[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -177399,7 +212319,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) { StopDistance = 7f, NextQuestId = new QuestId(2825) @@ -177413,27 +212335,33 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot5.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span13 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span13[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) { StopDistance = 7f }; obj24.Steps = list36; reference26 = obj24; - ref QuestSequence reference27 = ref span13[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -177441,21 +212369,26 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1023162u, new Vector3(403.8911f, 114.18445f, 212.32922f), 612) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023162u, new Vector3(403.8911f, 114.18445f, 212.32922f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj25.Steps = list37; reference27 = obj25; - ref QuestSequence reference28 = ref span13[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612) { Fly = true, NextQuestId = new QuestId(2826) @@ -177469,13 +212402,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot6.Author = list39; - num = 6; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span14 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span14[0]; + index = 6; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -177483,19 +212419,23 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612); obj27.Steps = list41; reference29 = obj27; - ref QuestSequence reference30 = ref span14[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span15 = CollectionsMarshal.AsSpan(list42); - span15[0] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) + index2 = 2; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) { TargetTerritoryId = (ushort)612, SkipConditions = new SkipConditions @@ -177506,13 +212446,15 @@ public static class AssemblyQuestLoader } } }; - span15[1] = new QuestStep(EInteractionType.Interact, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { Fly = true }; obj28.Steps = list42; reference30 = obj28; - ref QuestSequence reference31 = ref span14[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -177520,29 +212462,35 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj29.Steps = list43; reference31 = obj29; - ref QuestSequence reference32 = ref span14[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj30.Steps = list44; reference32 = obj30; - ref QuestSequence reference33 = ref span14[4]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -177550,22 +212498,27 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj31.Steps = list45; reference33 = obj31; - ref QuestSequence reference34 = ref span14[5]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { NextQuestId = new QuestId(2827) }; @@ -177578,13 +212531,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "liza"; questRoot7.Author = list47; - num = 5; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span16 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference35 = ref span16[0]; + index = 5; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -177592,24 +212548,30 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612); obj33.Steps = list49; reference35 = obj33; - ref QuestSequence reference36 = ref span16[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj34.Steps = list50; reference36 = obj34; - ref QuestSequence reference37 = ref span16[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -177617,27 +212579,33 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2008764u, new Vector3(608.1482f, 48.02002f, 362.6306f), 612) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008764u, new Vector3(608.1482f, 48.02002f, 362.6306f), 612) { Fly = true }; obj35.Steps = list51; reference37 = obj35; - ref QuestSequence reference38 = ref span16[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1023166u, new Vector3(607.3242f, 48.087296f, 364.79736f), 612) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023166u, new Vector3(607.3242f, 48.087296f, 364.79736f), 612) { StopDistance = 5f }; obj36.Steps = list52; reference38 = obj36; - ref QuestSequence reference39 = ref span16[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -177645,7 +212613,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, NextQuestId = new QuestId(2828) @@ -177659,24 +212629,30 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "liza"; questRoot8.Author = list54; - num = 5; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span17 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference40 = ref span17[0]; + index = 5; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612); obj38.Steps = list56; reference40 = obj38; - ref QuestSequence reference41 = ref span17[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -177684,8 +212660,9 @@ public static class AssemblyQuestLoader num2 = 2; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) { TargetTerritoryId = (ushort)612, SkipConditions = new SkipConditions @@ -177696,7 +212673,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference42 = ref span18[1]; + index2++; + ref QuestStep reference42 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Combat, null, new Vector3(-641.61725f, 78.03014f, 118.72834f), 612) { StopDistance = 0.5f, @@ -177705,26 +212683,33 @@ public static class AssemblyQuestLoader num3 = 3; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span19 = CollectionsMarshal.AsSpan(list58); - span19[0] = 7825u; - span19[1] = 7826u; - span19[2] = 7827u; + span6 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span6[num4] = 7825u; + num4++; + span6[num4] = 7826u; + num4++; + span6[num4] = 7827u; obj40.KillEnemyDataIds = list58; reference42 = obj40; obj39.Steps = list57; reference41 = obj39; - ref QuestSequence reference43 = ref span17[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1023409u, new Vector3(-642.7558f, 77.98847f, 117.631714f), 612); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023409u, new Vector3(-642.7558f, 77.98847f, 117.631714f), 612); obj41.Steps = list59; reference43 = obj41; - ref QuestSequence reference44 = ref span17[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -177732,21 +212717,26 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2008893u, new Vector3(-648.49316f, 48.41687f, 245.89917f), 612) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008893u, new Vector3(-648.49316f, 48.41687f, 245.89917f), 612) { Fly = true }; obj42.Steps = list60; reference44 = obj42; - ref QuestSequence reference45 = ref span17[4]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -177759,13 +212749,16 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span20 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference46 = ref span20[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -177773,7 +212766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -177786,18 +212781,22 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference46 = obj44; - ref QuestSequence reference47 = ref span20[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); obj45.Steps = list65; reference47 = obj45; - ref QuestSequence reference48 = ref span20[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -177805,64 +212804,89 @@ public static class AssemblyQuestLoader num2 = 4; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span21 = CollectionsMarshal.AsSpan(list66); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.80753f, 258.90652f, 786.1918f), 620) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.80753f, 258.90652f, 786.1918f), 620) { Mount = true }; - ref QuestStep reference49 = ref span21[1]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1023259u, new Vector3(-293.41577f, 258.9065f, 788.63196f), 620); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span22 = CollectionsMarshal.AsSpan(list67); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + span4 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list67; reference49 = questStep3; - ref QuestStep reference50 = ref span21[2]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620); num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span23 = CollectionsMarshal.AsSpan(list68); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list68); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list68; reference50 = questStep4; - ref QuestStep reference51 = ref span21[3]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620); - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span24 = CollectionsMarshal.AsSpan(list69); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span4 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list69; reference51 = questStep5; obj46.Steps = list66; reference48 = obj46; - ref QuestSequence reference52 = ref span20[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); obj47.Steps = list70; reference52 = obj47; questRoot9.QuestSequence = list63; @@ -177876,13 +212900,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -177890,21 +212917,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -177912,22 +212945,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1023169u, new Vector3(-199.35913f, 258.90652f, 780.9109f), 620) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023169u, new Vector3(-199.35913f, 258.90652f, 780.9109f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + index2 = 4; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -177938,7 +212975,8 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -177948,7 +212986,8 @@ public static class AssemblyQuestLoader } } }; - span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -177963,10 +213002,12 @@ public static class AssemblyQuestLoader } } }; - span2[3] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -177974,9 +213015,11 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.314f, 326.0898f, 338.17725f), 620); - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.314f, 326.0898f, 338.17725f), 620); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -177986,24 +213029,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "JerryWester"; questRoot2.Author = list8; - num = 4; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 4; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -178011,66 +213060,91 @@ public static class AssemblyQuestLoader num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1020888u, new Vector3(321.21765f, 324.3033f, 390.70715f), 620); int num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list12); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list12; reference8 = questStep; - ref QuestStep reference9 = ref span5[1]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1020886u, new Vector3(342.70227f, 325.54596f, 359.54822f), 620); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + span4 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list13; reference9 = questStep2; - ref QuestStep reference10 = ref span5[2]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1020887u, new Vector3(337.20898f, 324.30093f, 328.51135f), 620); num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list14; reference10 = questStep3; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span4[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -178078,8 +213152,9 @@ public static class AssemblyQuestLoader num2 = 4; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span9 = CollectionsMarshal.AsSpan(list16); - span9[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -178090,7 +213165,8 @@ public static class AssemblyQuestLoader } } }; - span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -178100,7 +213176,8 @@ public static class AssemblyQuestLoader } } }; - span9[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178115,7 +213192,8 @@ public static class AssemblyQuestLoader } } }; - span9[3] = new QuestStep(EInteractionType.CompleteQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); obj9.Steps = list16; reference12 = obj9; questRoot2.QuestSequence = list9; @@ -178125,21 +213203,26 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "JerryWester"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span10 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span10[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178152,7 +213235,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list19; reference13 = obj10; - ref QuestSequence reference14 = ref span10[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -178160,28 +213244,35 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-257.40616f, 98.88382f, -488.98062f), 621) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = 7849u; + num4 = 1; + List list21 = new List(num4); + CollectionsMarshal.SetCount(list21, num4); + Span span5 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span5[num3] = 7849u; obj12.KillEnemyDataIds = list21; reference15 = obj12; obj11.Steps = list20; reference14 = obj11; - ref QuestSequence reference16 = ref span10[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178194,13 +213285,16 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list23; - num = 3; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span11 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference17 = ref span11[0]; + index = 3; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -178208,7 +213302,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178221,18 +213317,22 @@ public static class AssemblyQuestLoader }; obj14.Steps = list25; reference17 = obj14; - ref QuestSequence reference18 = ref span11[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.335396f, -0.3f, -341.21475f), 621); - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.4417508f, 0.14104319f, -387.06744f), 621); - ref QuestStep reference19 = ref span12[2]; + index2 = 3; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.335396f, -0.3f, -341.21475f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.4417508f, 0.14104319f, -387.06744f), 621); + num2++; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-89.3111f, 42.999996f, -677.6074f), 621) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -178240,7 +213340,9 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new ComplexCombatData + Span span6 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span6[num4] = new ComplexCombatData { DataId = 6651u, MinimumKillCount = 4u @@ -178249,7 +213351,8 @@ public static class AssemblyQuestLoader reference19 = obj16; obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference20 = ref span11[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -178257,7 +213360,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178270,21 +213375,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list29; - num = 5; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span13 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span13[0]; + index = 5; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178297,7 +213407,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list31; reference21 = obj18; - ref QuestSequence reference22 = ref span13[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -178305,26 +213416,32 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); obj19.Steps = list32; reference22 = obj19; - ref QuestSequence reference23 = ref span13[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span14 = CollectionsMarshal.AsSpan(list33); - span14[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) { StopDistance = 0.5f }; - span14[1] = new QuestStep(EInteractionType.Interact, 2008779u, new Vector3(-56.229553f, -339.04022f, -103.89868f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008779u, new Vector3(-56.229553f, -339.04022f, -103.89868f), 621); obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span13[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -178332,26 +213449,31 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) { StopDistance = 0.5f, DisableNavmesh = true, Mount = true, RestartNavigationIfCancelled = false }; - span15[1] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span13[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178364,13 +213486,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span16 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span16[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -178378,7 +213503,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178391,28 +213518,33 @@ public static class AssemblyQuestLoader }; obj23.Steps = list38; reference26 = obj23; - ref QuestSequence reference27 = ref span16[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span17 = CollectionsMarshal.AsSpan(list39); - span17[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007987u, new Vector3(-380.2091f, 10.055664f, 16.891724f), 621) + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007987u, new Vector3(-380.2091f, 10.055664f, 16.891724f), 621) { AetherCurrentId = 2818165u }; - ref QuestStep reference28 = ref span17[1]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-197.38828f, 3.820687f, 288.09766f), 621) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 6599u; + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span5[num3] = 6599u; obj25.KillEnemyDataIds = list40; obj25.CombatItemUse = new CombatItemUse { @@ -178423,7 +213555,8 @@ public static class AssemblyQuestLoader reference28 = obj25; obj24.Steps = list39; reference27 = obj24; - ref QuestSequence reference29 = ref span16[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -178431,7 +213564,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178444,21 +213579,26 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot7.Author = list42; - num = 5; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span18 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference30 = ref span18[0]; + index = 5; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -178472,7 +213612,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list44; reference30 = obj27; - ref QuestSequence reference31 = ref span18[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -178480,7 +213621,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1022505u, new Vector3(192.46204f, -2.5453281f, 73.746826f), 132) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022505u, new Vector3(192.46204f, -2.5453281f, 73.746826f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -178491,15 +213634,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list45; reference31 = obj28; - ref QuestSequence reference32 = ref span18[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AethernetShortcut = new AethernetShortcut { @@ -178509,7 +213655,8 @@ public static class AssemblyQuestLoader }; obj29.Steps = list46; reference32 = obj29; - ref QuestSequence reference33 = ref span18[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -178517,22 +213664,27 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1022508u, new Vector3(-71.33594f, -7.877128f, 240.34485f), 152) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022508u, new Vector3(-71.33594f, -7.877128f, 240.34485f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj30.Steps = list47; reference33 = obj30; - ref QuestSequence reference34 = ref span18[4]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022511u, new Vector3(-653.13196f, 130f, -523.827f), 612) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022511u, new Vector3(-653.13196f, 130f, -523.827f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2891) @@ -178546,13 +213698,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot8.Author = list49; - num = 5; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span19 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference35 = ref span19[0]; + index = 5; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -178560,7 +213715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -178574,21 +213731,25 @@ public static class AssemblyQuestLoader }; obj32.Steps = list51; reference35 = obj32; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) { Fly = true }; obj33.Steps = list52; reference36 = obj33; - ref QuestSequence reference37 = ref span19[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -178596,7 +213757,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list53)[0]; + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) { Fly = true, @@ -178605,28 +213768,34 @@ public static class AssemblyQuestLoader num3 = 2; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span20 = CollectionsMarshal.AsSpan(list54); - span20[0] = 7494u; - span20[1] = 7499u; + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = 7494u; + num4++; + span5[num4] = 7499u; obj35.KillEnemyDataIds = list54; reference38 = obj35; obj34.Steps = list53; reference37 = obj34; - ref QuestSequence reference39 = ref span19[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1022515u, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022515u, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) { StopDistance = 5f }; obj36.Steps = list55; reference39 = obj36; - ref QuestSequence reference40 = ref span19[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -178634,7 +213803,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022513u, new Vector3(-650.9041f, 130f, -520.8667f), 612) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022513u, new Vector3(-650.9041f, 130f, -520.8667f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2892) @@ -178648,21 +213819,26 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot9.Author = list57; - num = 5; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span21 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference41 = ref span21[0]; + index = 5; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -178676,7 +213852,8 @@ public static class AssemblyQuestLoader }; obj38.Steps = list59; reference41 = obj38; - ref QuestSequence reference42 = ref span21[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -178684,27 +213861,33 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1022519u, new Vector3(-616.8155f, 130.14346f, -469.41333f), 612) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022519u, new Vector3(-616.8155f, 130.14346f, -469.41333f), 612) { Fly = true }; obj39.Steps = list60; reference42 = obj39; - ref QuestSequence reference43 = ref span21[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1022520u, new Vector3(-610.956f, 125.92732f, -424.58234f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022520u, new Vector3(-610.956f, 125.92732f, -424.58234f), 612) { Fly = true }; obj40.Steps = list61; reference43 = obj40; - ref QuestSequence reference44 = ref span21[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -178712,23 +213895,28 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span22 = CollectionsMarshal.AsSpan(list62); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.37027f, 45.90861f, -362.9656f), 612) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.37027f, 45.90861f, -362.9656f), 612) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022522u, new Vector3(214.86218f, 45.93671f, -360.61652f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022522u, new Vector3(214.86218f, 45.93671f, -360.61652f), 612); obj41.Steps = list62; reference44 = obj41; - ref QuestSequence reference45 = ref span21[4]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) { StopDistance = 5f, NextQuestId = new QuestId(2893) @@ -178742,13 +213930,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot10.Author = list64; - num = 6; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span23 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference46 = ref span23[0]; + index = 6; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -178756,7 +213947,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list66)[0]; + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) { StopDistance = 5f, @@ -178769,10 +213962,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span7 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD680_02893_Q1_000_000"), @@ -178782,21 +213977,25 @@ public static class AssemblyQuestLoader reference47 = obj44; obj43.Steps = list66; reference46 = obj43; - ref QuestSequence reference48 = ref span23[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) { Fly = true }; obj45.Steps = list68; reference48 = obj45; - ref QuestSequence reference49 = ref span23[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -178804,7 +214003,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list69)[0]; + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2008682u, new Vector3(-610.2846f, 42.801514f, 290.79114f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -178812,29 +214013,35 @@ public static class AssemblyQuestLoader num3 = 2; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span24 = CollectionsMarshal.AsSpan(list70); - span24[0] = 7494u; - span24[1] = 7499u; + span5 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span5[num4] = 7494u; + num4++; + span5[num4] = 7499u; obj47.KillEnemyDataIds = list70; reference50 = obj47; obj46.Steps = list69; reference49 = obj46; - ref QuestSequence reference51 = ref span23[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj48.Steps = list71; reference51 = obj48; - ref QuestSequence reference52 = ref span23[4]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 4 @@ -178842,12 +214049,16 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022527u, new Vector3(-555.871f, 91.035034f, -185.8396f), 612); - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice + num4 = 1; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + span7 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD680_02893_Q2_000_000"), @@ -178857,15 +214068,18 @@ public static class AssemblyQuestLoader reference53 = questStep4; obj49.Steps = list72; reference52 = obj49; - ref QuestSequence reference54 = ref span23[5]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(2894) @@ -178879,13 +214093,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "liza"; questRoot11.Author = list75; - num = 8; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span25 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference55 = ref span25[0]; + index = 8; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -178893,7 +214110,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -178906,16 +214125,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list77; reference55 = obj51; - ref QuestSequence reference56 = ref span25[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span26 = CollectionsMarshal.AsSpan(list78); - ref QuestStep reference57 = ref span26[0]; + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AethernetShortcut = new AethernetShortcut @@ -178927,16 +214148,23 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span27 = CollectionsMarshal.AsSpan(list79); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list79; reference57 = obj53; - ref QuestStep reference58 = ref span26[1]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 5f, @@ -178946,21 +214174,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span28 = CollectionsMarshal.AsSpan(list80); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span4 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list80; reference58 = obj54; obj52.Steps = list78; reference56 = obj52; - ref QuestSequence reference59 = ref span25[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -178968,7 +214203,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AethernetShortcut = new AethernetShortcut { @@ -178978,32 +214215,38 @@ public static class AssemblyQuestLoader }; obj55.Steps = list81; reference59 = obj55; - ref QuestSequence reference60 = ref span25[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span29 = CollectionsMarshal.AsSpan(list82); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.93188f, -53.111656f, 330.18417f), 154) + index2 = 3; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.93188f, -53.111656f, 330.18417f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-248.3785f, -74.95606f, 424.39832f), 154) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-248.3785f, -74.95606f, 424.39832f), 154) { Fly = true }; - span29[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022529u, new Vector3(-248.52368f, -75.63651f, 426.9015f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022529u, new Vector3(-248.52368f, -75.63651f, 426.9015f), 154); obj56.Steps = list82; reference60 = obj56; - span25[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference61 = ref span25[5]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 5 @@ -179011,27 +214254,33 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1022530u, new Vector3(-246.93683f, -75.542496f, 426.5354f), 154) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022530u, new Vector3(-246.93683f, -75.542496f, 426.5354f), 154) { StopDistance = 5f }; obj57.Steps = list83; reference61 = obj57; - ref QuestSequence reference62 = ref span25[6]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj58.Steps = list84; reference62 = obj58; - ref QuestSequence reference63 = ref span25[7]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -179039,7 +214288,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill @@ -179057,13 +214308,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -179071,7 +214325,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -179085,15 +214341,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -179103,11 +214362,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - span[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference3 = ref span[3]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -179115,7 +214371,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, NextQuestId = new QuestId(2901) @@ -179129,21 +214387,26 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 6; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 6; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179157,7 +214420,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -179165,22 +214429,27 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1022806u, new Vector3(-164.5686f, 81.072655f, -294.33136f), 180) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022806u, new Vector3(-164.5686f, 81.072655f, -294.33136f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref QuestStep reference7 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2008649u, new Vector3(-295.85718f, 53.20813f, -283.98572f), 180) { Fly = true, @@ -179189,14 +214458,17 @@ public static class AssemblyQuestLoader int num3 = 2; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span3 = CollectionsMarshal.AsSpan(list11); - span3[0] = 7500u; - span3[1] = 7501u; + Span span4 = CollectionsMarshal.AsSpan(list11); + int num4 = 0; + span4[num4] = 7500u; + num4++; + span4[num4] = 7501u; obj7.KillEnemyDataIds = list11; reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span2[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -179204,37 +214476,45 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 2008650u, new Vector3(-408.9876f, 46.860474f, -305.43988f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = 7500u; - span4[1] = 7501u; + num4 = 2; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + span4 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span4[num3] = 7500u; + num3++; + span4[num3] = 7501u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1022811u, new Vector3(-359.9756f, 58.723488f, -365.37732f), 180) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022811u, new Vector3(-359.9756f, 58.723488f, -365.37732f), 180) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[5]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -179242,7 +214522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179257,21 +214539,26 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 8; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 8; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179285,7 +214572,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -179293,22 +214581,27 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1022816u, new Vector3(-4.3183594f, 39.78392f, 197.52808f), 137) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022816u, new Vector3(-4.3183594f, 39.78392f, 197.52808f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, 2008651u, new Vector3(-4.8066406f, 39.475098f, 348.2871f), 137) { Fly = true, @@ -179317,14 +214610,17 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = 7500u; - span6[1] = 7501u; + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = 7500u; + num4++; + span4[num4] = 7501u; obj15.KillEnemyDataIds = list21; reference15 = obj15; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -179332,31 +214628,38 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 2008652u, new Vector3(-82.59711f, 38.437378f, 501.42664f), 137) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span7 = CollectionsMarshal.AsSpan(list23); - span7[0] = 7502u; - span7[1] = 7503u; + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span4 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span4[num3] = 7502u; + num3++; + span4[num3] = 7503u; obj17.KillEnemyDataIds = list23; reference17 = obj17; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference18 = ref span5[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2008653u, new Vector3(-115.70923f, 49.66809f, 603.02124f), 137) { Fly = true, @@ -179365,14 +214668,17 @@ public static class AssemblyQuestLoader num3 = 2; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = 7502u; - span8[1] = 7503u; + span4 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span4[num4] = 7502u; + num4++; + span4[num4] = 7503u; obj19.KillEnemyDataIds = list25; reference19 = obj19; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference20 = ref span5[5]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 5 @@ -179380,27 +214686,33 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1022821u, new Vector3(-149.85895f, 55.805172f, 642.7251f), 137) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022821u, new Vector3(-149.85895f, 55.805172f, 642.7251f), 137) { Fly = true }; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference21 = ref span5[6]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1022825u, new Vector3(-208.08728f, 46.619385f, 467.73462f), 137) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022825u, new Vector3(-208.08728f, 46.619385f, 467.73462f), 137) { Fly = true }; obj21.Steps = list27; reference21 = obj21; - ref QuestSequence reference22 = ref span5[7]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -179408,7 +214720,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179423,21 +214737,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "liza"; questRoot4.Author = list29; - num = 6; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span9 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span9[0]; + index = 6; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179451,7 +214770,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span9[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -179459,26 +214779,34 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference25 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1019355u, new Vector3(556.8779f, -19.505642f, 397.14648f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span11 = CollectionsMarshal.AsSpan(list33); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list33; reference25 = obj25; - ref QuestStep reference26 = ref span10[1]; + index2++; + ref QuestStep reference26 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { Fly = true @@ -179486,43 +214814,59 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span12 = CollectionsMarshal.AsSpan(list34); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list34); + 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); obj26.CompletionQuestVariablesFlags = list34; reference26 = obj26; - ref QuestStep reference27 = ref span10[2]; + index2++; + ref QuestStep reference27 = ref span3[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1019354u, new Vector3(573.6323f, -19.505655f, 311.6654f), 622) { Fly = true }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span13 = CollectionsMarshal.AsSpan(list35); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + span5 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list35; reference27 = obj27; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference28 = ref span9[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list36)[0]; + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference29 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(-186.52919f, 2.935472f, 369.28806f), 622) { StopDistance = 0.5f, @@ -179532,12 +214876,15 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 6641u; + span4 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span4[num4] = 6641u; obj29.KillEnemyDataIds = list37; reference29 = obj29; obj28.Steps = list36; reference28 = obj28; - ref QuestSequence reference30 = ref span9[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -179545,27 +214892,33 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1022832u, new Vector3(-183.76447f, 2.8128173f, 370.3822f), 622) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022832u, new Vector3(-183.76447f, 2.8128173f, 370.3822f), 622) { StopDistance = 5f }; obj30.Steps = list38; reference30 = obj30; - ref QuestSequence reference31 = ref span9[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1022834u, new Vector3(-339.25385f, 21.774029f, 268.6045f), 622) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022834u, new Vector3(-339.25385f, 21.774029f, 268.6045f), 622) { Fly = true }; obj31.Steps = list39; reference31 = obj31; - ref QuestSequence reference32 = ref span9[5]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -179573,16 +214926,20 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list40)[0]; + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.CompleteQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + num4 = 1; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span6 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWAR680_02903_Q1_000_075"), @@ -179600,21 +214957,26 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot5.Author = list42; - num = 10; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span14 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span14[0]; + index = 10; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -179632,7 +214994,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list44; reference34 = obj34; - ref QuestSequence reference35 = ref span14[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -179640,24 +215003,30 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1022837u, new Vector3(548.97375f, -19.503174f, 277.57678f), 622) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022837u, new Vector3(548.97375f, -19.503174f, 277.57678f), 622) { Fly = true }; obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.11285f, 38.830116f, -473.95575f), 622); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.11285f, 38.830116f, -473.95575f), 622); obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 @@ -179665,28 +215034,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1022839u, new Vector3(467.46008f, 39.964607f, -440.8484f), 622) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022839u, new Vector3(467.46008f, 39.964607f, -440.8484f), 622) { Fly = true }; obj37.Steps = list47; reference37 = obj37; - ref QuestSequence reference38 = ref span14[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj38.Steps = list48; reference38 = obj38; - ref QuestSequence reference39 = ref span14[5]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 @@ -179694,21 +215069,26 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Emote, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Emote = EEmote.Slap }; obj39.Steps = list49; reference39 = obj39; - ref QuestSequence reference40 = ref span14[6]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.SinglePlayerDuty, 1022840u, new Vector3(233.38672f, 23.094816f, -234.57697f), 622) { Fly = true @@ -179717,17 +215097,21 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = "Keeps attacking the invulnerable boss instead of the mammoths, thus letting your allied NPC die"; + span = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span[num4] = "Keeps attacking the invulnerable boss instead of the mammoths, thus letting your allied NPC die"; singlePlayerDutyOptions.Notes = list51; obj41.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference41 = obj41; obj40.Steps = list50; reference40 = obj40; - span14[7] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference42 = ref span14[8]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 8 @@ -179735,18 +215119,23 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1022841u, new Vector3(233.17297f, 23.085413f, -234.42438f), 622); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022841u, new Vector3(233.17297f, 23.085413f, -234.42438f), 622); obj42.Steps = list52; reference42 = obj42; - ref QuestSequence reference43 = ref span14[9]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -179760,13 +215149,16 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "liza"; questRoot6.Author = list54; - num = 5; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span15 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference44 = ref span15[0]; + index = 5; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -179774,7 +215166,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179792,21 +215186,25 @@ public static class AssemblyQuestLoader }; obj44.Steps = list56; reference44 = obj44; - ref QuestSequence reference45 = ref span15[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1022146u, new Vector3(56.321045f, 207.33994f, -31.937195f), 478) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022146u, new Vector3(56.321045f, 207.33994f, -31.937195f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj45.Steps = list57; reference45 = obj45; - ref QuestSequence reference46 = ref span15[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -179814,63 +215212,88 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span16 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference47 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017656u, new Vector3(70.7561f, 207.28993f, 0.59503174f), 478); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span17 = CollectionsMarshal.AsSpan(list59); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + span5 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list59; reference47 = questStep; - ref QuestStep reference48 = ref span16[1]; + index2++; + ref QuestStep reference48 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1013721u, new Vector3(17.380005f, 205.38686f, 37.491333f), 478); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span18 = CollectionsMarshal.AsSpan(list60); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list60); + 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); questStep2.CompletionQuestVariablesFlags = list60; reference48 = questStep2; - ref QuestStep reference49 = ref span16[2]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span19 = CollectionsMarshal.AsSpan(list61); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + span5 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list61; reference49 = questStep3; obj46.Steps = list58; reference46 = obj46; - ref QuestSequence reference50 = ref span15[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1022148u, new Vector3(-78.965515f, 206.50021f, 23.575134f), 478); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022148u, new Vector3(-78.965515f, 206.50021f, 23.575134f), 478); obj47.Steps = list62; reference50 = obj47; - ref QuestSequence reference51 = ref span15[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -179878,7 +215301,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179896,21 +215321,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot7.Author = list64; - num = 7; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span20 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference52 = ref span20[0]; + index = 7; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179928,7 +215358,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list66; reference52 = obj49; - ref QuestSequence reference53 = ref span20[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -179936,7 +215367,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) { AethernetShortcut = new AethernetShortcut { @@ -179946,15 +215379,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list67; reference53 = obj50; - ref QuestSequence reference54 = ref span20[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1022152u, new Vector3(3.9215698f, 27.790508f, -150.83551f), 419) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022152u, new Vector3(3.9215698f, 27.790508f, -150.83551f), 419) { AethernetShortcut = new AethernetShortcut { @@ -179964,7 +215400,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list68; reference54 = obj51; - ref QuestSequence reference55 = ref span20[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -179972,7 +215409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -179982,15 +215421,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list69; reference55 = obj52; - ref QuestSequence reference56 = ref span20[4]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list70)[0]; + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(660.36426f, 202.54167f, -180.60214f), 397) { StopDistance = 1f, @@ -180001,12 +215443,15 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 7486u; + span4 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span4[num4] = 7486u; obj54.KillEnemyDataIds = list71; reference57 = obj54; obj53.Steps = list70; reference56 = obj53; - ref QuestSequence reference58 = ref span20[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 5 @@ -180014,21 +215459,26 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1022153u, new Vector3(662.95874f, 202.59106f, -177.14203f), 397) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022153u, new Vector3(662.95874f, 202.59106f, -177.14203f), 397) { StopDistance = 7f }; obj55.Steps = list72; reference58 = obj55; - ref QuestSequence reference59 = ref span20[6]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180046,13 +215496,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "UcanPatates"; questRoot8.Author = list74; - num = 6; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span21 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference60 = ref span21[0]; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -180060,7 +215513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180078,15 +215533,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list76; reference60 = obj57; - ref QuestSequence reference61 = ref span21[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1022157u, new Vector3(-323.9643f, 239.9684f, 372.91516f), 155) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022157u, new Vector3(-323.9643f, 239.9684f, 372.91516f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180100,7 +215558,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list77; reference61 = obj58; - ref QuestSequence reference62 = ref span21[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -180108,7 +215567,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022163u, new Vector3(-395.95636f, 240.14958f, 340.59656f), 155) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022163u, new Vector3(-395.95636f, 240.14958f, 340.59656f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180122,19 +215583,23 @@ public static class AssemblyQuestLoader }; obj59.Steps = list78; reference62 = obj59; - span21[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference63 = ref span21[4]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1022167u, new Vector3(-385.36664f, 232.23338f, 314.65625f), 155) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022167u, new Vector3(-385.36664f, 232.23338f, 314.65625f), 155) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180148,7 +215613,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list79; reference63 = obj60; - ref QuestSequence reference64 = ref span21[5]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -180156,7 +215622,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180181,21 +215649,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "UcanPatates"; questRoot9.Author = list81; - num = 7; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span22 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference65 = ref span22[0]; + index = 7; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180213,7 +215686,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list83; reference65 = obj62; - ref QuestSequence reference66 = ref span22[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -180221,7 +215695,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1022169u, new Vector3(-58.854065f, 20.000334f, 42.83203f), 129) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022169u, new Vector3(-58.854065f, 20.000334f, 42.83203f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -180234,15 +215710,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list84; reference66 = obj63; - ref QuestSequence reference67 = ref span22[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 1022170u, new Vector3(-172.6253f, 41.10136f, 175.89062f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -180257,10 +215736,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 128; + num4 = 1; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + Span span7 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span7[num3] = 128; obj66.InTerritory = list86; skipConditions.AetheryteShortcutIf = obj66; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -180271,7 +215752,9 @@ public static class AssemblyQuestLoader num3 = 1; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH680_02908_Q1_000_000"), @@ -180281,7 +215764,8 @@ public static class AssemblyQuestLoader reference68 = obj65; obj64.Steps = list85; reference67 = obj64; - ref QuestSequence reference69 = ref span22[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -180289,17 +215773,21 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list88)[0]; + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference70 = ref span3[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new ComplexCombatData + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span8 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 7487u, MinimumKillCount = 2u @@ -180315,18 +215803,22 @@ public static class AssemblyQuestLoader reference70 = obj68; obj67.Steps = list88; reference69 = obj67; - ref QuestSequence reference71 = ref span22[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155); obj69.Steps = list90; reference71 = obj69; - ref QuestSequence reference72 = ref span22[5]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 5 @@ -180334,7 +215826,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180352,15 +215846,18 @@ public static class AssemblyQuestLoader }; obj70.Steps = list91; reference72 = obj70; - ref QuestSequence reference73 = ref span22[6]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180385,13 +215882,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "UcanPatates"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "UcanPatates"; questRoot10.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span23 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference74 = ref span23[0]; + index = 4; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -180399,7 +215899,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180417,15 +215919,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list95; reference74 = obj72; - ref QuestSequence reference75 = ref span23[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180443,7 +215948,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list96; reference75 = obj73; - ref QuestSequence reference76 = ref span23[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -180451,7 +215957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180469,15 +215977,18 @@ public static class AssemblyQuestLoader }; obj74.Steps = list97; reference76 = obj74; - ref QuestSequence reference77 = ref span23[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -180497,13 +216008,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot11.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span24 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference78 = ref span24[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -180511,8 +216025,9 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span25 = CollectionsMarshal.AsSpan(list101); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180524,25 +216039,30 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj76.Steps = list101; reference78 = obj76; - ref QuestSequence reference79 = ref span24[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 2008547u, new Vector3(47.592896f, -37.003174f, -297.71887f), 398) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008547u, new Vector3(47.592896f, -37.003174f, -297.71887f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj77.Steps = list102; reference79 = obj77; - ref QuestSequence reference80 = ref span24[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -180550,13 +216070,15 @@ public static class AssemblyQuestLoader num2 = 2; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span26 = CollectionsMarshal.AsSpan(list103); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(2911) }; @@ -180569,22 +216091,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; questRoot12.Author = list104; - num = 6; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span27 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference81 = ref span27[0]; + index = 6; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span28 = CollectionsMarshal.AsSpan(list106); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180596,10 +216122,12 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj79.Steps = list106; reference81 = obj79; - ref QuestSequence reference82 = ref span27[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -180607,22 +216135,27 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1022543u, new Vector3(46.951904f, -37.000004f, -298.48175f), 398) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022543u, new Vector3(46.951904f, -37.000004f, -298.48175f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj80.Steps = list107; reference82 = obj80; - ref QuestSequence reference83 = ref span27[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2008548u, new Vector3(80.91858f, 68.16199f, -696.00977f), 612) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008548u, new Vector3(80.91858f, 68.16199f, -696.00977f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -180634,7 +216167,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list108; reference83 = obj81; - ref QuestSequence reference84 = ref span27[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -180642,7 +216176,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list109)[0]; + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + ref QuestStep reference85 = ref span3[index2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(91.50208f, 68.1708f, -722.4152f), 612) { StopDistance = 0.5f, @@ -180651,23 +216187,29 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 8046u; + span4 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span4[num4] = 8046u; obj83.KillEnemyDataIds = list110; reference85 = obj83; obj82.Steps = list109; reference84 = obj82; - ref QuestSequence reference86 = ref span27[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1022547u, new Vector3(92.39331f, 68.1708f, -712.8557f), 612); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022547u, new Vector3(92.39331f, 68.1708f, -712.8557f), 612); obj84.Steps = list111; reference86 = obj84; - ref QuestSequence reference87 = ref span27[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -180675,13 +216217,15 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span29 = CollectionsMarshal.AsSpan(list112); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(2912) }; @@ -180694,22 +216238,26 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; questRoot13.Author = list113; - num = 8; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span30 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference88 = ref span30[0]; + index = 8; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span31 = CollectionsMarshal.AsSpan(list115); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180721,10 +216269,12 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj86.Steps = list115; reference88 = obj86; - ref QuestSequence reference89 = ref span30[1]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -180732,7 +216282,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -180743,22 +216295,26 @@ public static class AssemblyQuestLoader }; obj87.Steps = list116; reference89 = obj87; - ref QuestSequence reference90 = ref span30[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1022550u, new Vector3(-728.9082f, 0.34026724f, -427.9698f), 613) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022550u, new Vector3(-728.9082f, 0.34026724f, -427.9698f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj88.Steps = list117; reference90 = obj88; - ref QuestSequence reference91 = ref span30[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 @@ -180766,27 +216322,33 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1022551u, new Vector3(-772.549f, 4.7634416f, -504.29544f), 613) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022551u, new Vector3(-772.549f, 4.7634416f, -504.29544f), 613) { Fly = true }; obj89.Steps = list118; reference91 = obj89; - ref QuestSequence reference92 = ref span30[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 2008550u, new Vector3(-711.20776f, 0.44250488f, -545.4337f), 613) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008550u, new Vector3(-711.20776f, 0.44250488f, -545.4337f), 613) { Fly = true }; obj90.Steps = list119; reference92 = obj90; - ref QuestSequence reference93 = ref span30[5]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -180794,37 +216356,45 @@ public static class AssemblyQuestLoader num2 = 2; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span32 = CollectionsMarshal.AsSpan(list120); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(657.20935f, 1.1933115f, -799.82635f), 613) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(657.20935f, 1.1933115f, -799.82635f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference94 = ref span32[1]; + index2++; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 7488u; + num4 = 1; + List list121 = new List(num4); + CollectionsMarshal.SetCount(list121, num4); + span4 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span4[num3] = 7488u; obj92.KillEnemyDataIds = list121; reference94 = obj92; obj91.Steps = list120; reference93 = obj91; - ref QuestSequence reference95 = ref span30[6]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613); obj93.Steps = list122; reference95 = obj93; - ref QuestSequence reference96 = ref span30[7]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -180832,7 +216402,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list123)[0]; + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference97 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.CompleteQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -180845,7 +216417,9 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRG650_02912_Q1_000_000"), @@ -180863,21 +216437,26 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot14.Author = list125; - num = 9; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span33 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference98 = ref span33[0]; + index = 9; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -180895,7 +216474,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list127; reference98 = obj96; - ref QuestSequence reference99 = ref span33[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -180903,7 +216483,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1022748u, new Vector3(13.046387f, -7.961876f, -99.77875f), 628) + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022748u, new Vector3(13.046387f, -7.961876f, -99.77875f), 628) { AethernetShortcut = new AethernetShortcut { @@ -180913,22 +216495,26 @@ public static class AssemblyQuestLoader }; obj97.Steps = list128; reference99 = obj97; - ref QuestSequence reference100 = ref span33[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj98.Steps = list129; reference100 = obj98; - ref QuestSequence reference101 = ref span33[3]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -180936,63 +216522,88 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span34 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference102 = ref span34[0]; + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022554u, new Vector3(554.9553f, -19.411264f, 274.92175f), 622); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span35 = CollectionsMarshal.AsSpan(list131); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + span5 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list131; reference102 = questStep4; - ref QuestStep reference103 = ref span34[1]; + index2++; + ref QuestStep reference103 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1022555u, new Vector3(545.4337f, -19.505648f, 309.68176f), 622); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span36 = CollectionsMarshal.AsSpan(list132); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list132); + 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); questStep5.CompletionQuestVariablesFlags = list132; reference103 = questStep5; - ref QuestStep reference104 = ref span34[2]; + index2++; + ref QuestStep reference104 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1022556u, new Vector3(570.3364f, -19.50564f, 319.11182f), 622); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span37 = CollectionsMarshal.AsSpan(list133); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list133 = new List(num4); + CollectionsMarshal.SetCount(list133, num4); + span5 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list133; reference104 = questStep6; obj99.Steps = list130; reference101 = obj99; - ref QuestSequence reference105 = ref span33[4]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622); obj100.Steps = list134; reference105 = obj100; - ref QuestSequence reference106 = ref span33[5]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 5 @@ -181000,28 +216611,35 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022561u, new Vector3(-288.4718f, 60.053967f, -328.1148f), 622) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022561u, new Vector3(-288.4718f, 60.053967f, -328.1148f), 622) { Fly = true }; obj101.Steps = list135; reference106 = obj101; - span33[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference107 = ref span33[7]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1022569u, new Vector3(-309.5293f, 61.288292f, -319.50867f), 622); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022569u, new Vector3(-309.5293f, 61.288292f, -319.50867f), 622); obj102.Steps = list136; reference107 = obj102; - ref QuestSequence reference108 = ref span33[8]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -181029,7 +216647,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -181044,21 +216664,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; questRoot15.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span38 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference109 = ref span38[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -181071,7 +216696,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list140; reference109 = obj104; - ref QuestSequence reference110 = ref span38[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -181079,21 +216705,26 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) { Fly = true }; obj105.Steps = list141; reference110 = obj105; - ref QuestSequence reference111 = ref span38[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) { StopDistance = 7f }; @@ -181106,13 +216737,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot16.Author = list143; - num = 10; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span39 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference112 = ref span39[0]; + index = 10; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -181120,7 +216754,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list145)[0]; + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference113 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -181140,7 +216776,9 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list146); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK601_02915_Q0_000_004"), @@ -181150,15 +216788,18 @@ public static class AssemblyQuestLoader reference113 = obj108; obj107.Steps = list145; reference112 = obj107; - ref QuestSequence reference114 = ref span39[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 2008659u, new Vector3(2.5177002f, 11.947815f, 37.00305f), 419) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008659u, new Vector3(2.5177002f, 11.947815f, 37.00305f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181168,7 +216809,8 @@ public static class AssemblyQuestLoader }; obj109.Steps = list147; reference114 = obj109; - ref QuestSequence reference115 = ref span39[2]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 @@ -181176,7 +216818,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418) { AethernetShortcut = new AethernetShortcut { @@ -181186,18 +216830,22 @@ public static class AssemblyQuestLoader }; obj110.Steps = list148; reference115 = obj110; - ref QuestSequence reference116 = ref span39[3]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1022859u, new Vector3(3.6774292f, 5.46805f, 26.596436f), 418); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022859u, new Vector3(3.6774292f, 5.46805f, 26.596436f), 418); obj111.Steps = list149; reference116 = obj111; - ref QuestSequence reference117 = ref span39[4]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 4 @@ -181205,18 +216853,23 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418); obj112.Steps = list150; reference117 = obj112; - ref QuestSequence reference118 = ref span39[5]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 2008660u, new Vector3(31.906494f, 15.945618f, -65.07977f), 419) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008660u, new Vector3(31.906494f, 15.945618f, -65.07977f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181226,7 +216879,8 @@ public static class AssemblyQuestLoader }; obj113.Steps = list151; reference118 = obj113; - ref QuestSequence reference119 = ref span39[6]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 6 @@ -181234,28 +216888,34 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1022862u, new Vector3(482.29187f, 203.4332f, 683.25305f), 397) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022862u, new Vector3(482.29187f, 203.4332f, 683.25305f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj114.Steps = list152; reference119 = obj114; - ref QuestSequence reference120 = ref span39[7]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1022863u, new Vector3(384.2068f, 170.07738f, 419.7909f), 397) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022863u, new Vector3(384.2068f, 170.07738f, 419.7909f), 397) { Fly = true }; obj115.Steps = list153; reference120 = obj115; - ref QuestSequence reference121 = ref span39[8]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 8 @@ -181263,21 +216923,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Action, 2008661u, new Vector3(380.02588f, 169.78711f, 416.5559f), 397) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2008661u, new Vector3(380.02588f, 169.78711f, 416.5559f), 397) { Action = EAction.Souleater }; obj116.Steps = list154; reference121 = obj116; - ref QuestSequence reference122 = ref span39[9]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -181292,13 +216957,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "liza"; questRoot17.Author = list156; - num = 8; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span40 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference123 = ref span40[0]; + index = 8; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -181306,29 +216974,35 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj118.Steps = list158; reference123 = obj118; - ref QuestSequence reference124 = ref span40[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1022870u, new Vector3(464.53027f, -51.1414f, 44.47998f), 398) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022870u, new Vector3(464.53027f, -51.1414f, 44.47998f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj119.Steps = list159; reference124 = obj119; - ref QuestSequence reference125 = ref span40[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 @@ -181336,39 +217010,47 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 2008662u, new Vector3(436.94202f, -51.163513f, 98.68005f), 398) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008662u, new Vector3(436.94202f, -51.163513f, 98.68005f), 398) { StopDistance = 1f, Fly = true }; obj120.Steps = list160; reference125 = obj120; - ref QuestSequence reference126 = ref span40[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list161)[0]; + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference127 = ref span3[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 1022879u, new Vector3(503.4713f, -45.078712f, -116.92993f), 398) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span41 = CollectionsMarshal.AsSpan(list162); - span41[0] = 7489u; - span41[1] = 7490u; + num4 = 2; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + span4 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span4[num3] = 7489u; + num3++; + span4[num3] = 7490u; obj122.KillEnemyDataIds = list162; reference127 = obj122; obj121.Steps = list161; reference126 = obj121; - ref QuestSequence reference128 = ref span40[4]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 4 @@ -181376,27 +217058,33 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1022880u, new Vector3(612.8175f, -26.250998f, -436.45386f), 398) + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022880u, new Vector3(612.8175f, -26.250998f, -436.45386f), 398) { Fly = true }; obj123.Steps = list163; reference128 = obj123; - ref QuestSequence reference129 = ref span40[5]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Action, 2008663u, new Vector3(622.8275f, -25.467346f, -446.43323f), 398) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2008663u, new Vector3(622.8275f, -25.467346f, -446.43323f), 398) { Action = EAction.Souleater }; obj124.Steps = list164; reference129 = obj124; - ref QuestSequence reference130 = ref span40[6]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 6 @@ -181404,18 +217092,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1023414u, new Vector3(617.8529f, -25.577927f, -446.61633f), 398); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023414u, new Vector3(617.8529f, -25.577927f, -446.61633f), 398); obj125.Steps = list165; reference130 = obj125; - ref QuestSequence reference131 = ref span40[7]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -181430,13 +217123,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "liza"; questRoot18.Author = list167; - num = 10; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span42 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference132 = ref span42[0]; + index = 10; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -181444,7 +217140,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -181458,21 +217156,25 @@ public static class AssemblyQuestLoader }; obj127.Steps = list169; reference132 = obj127; - ref QuestSequence reference133 = ref span42[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj128.Steps = list170; reference133 = obj128; - ref QuestSequence reference134 = ref span42[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -181480,7 +217182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list171)[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1022891u, new Vector3(154.25342f, -64.449585f, 678.06506f), 400) { Fly = true @@ -181488,7 +217192,9 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK650_02917_Q1_000_052"), @@ -181498,21 +217204,25 @@ public static class AssemblyQuestLoader reference135 = obj130; obj129.Steps = list171; reference134 = obj129; - ref QuestSequence reference136 = ref span42[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) { Fly = true }; obj131.Steps = list173; reference136 = obj131; - ref QuestSequence reference137 = ref span42[4]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -181520,31 +217230,38 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1022893u, new Vector3(418.53967f, -28.947046f, 89.25f), 400) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022893u, new Vector3(418.53967f, -28.947046f, 89.25f), 400) { Fly = true }; obj132.Steps = list174; reference137 = obj132; - ref QuestSequence reference138 = ref span42[5]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022897u, new Vector3(-166.24707f, -22.88001f, 289.38733f), 400) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022897u, new Vector3(-166.24707f, -22.88001f, 289.38733f), 400) { Fly = true }; obj133.Steps = list175; reference138 = obj133; - span42[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference139 = ref span42[7]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 7 @@ -181552,27 +217269,33 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Action, 2008665u, new Vector3(-160.02142f, -22.995422f, 283.6194f), 400) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2008665u, new Vector3(-160.02142f, -22.995422f, 283.6194f), 400) { Action = EAction.Souleater }; obj134.Steps = list176; reference139 = obj134; - ref QuestSequence reference140 = ref span42[8]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1022900u, new Vector3(-164.5686f, -22.88756f, 285.7556f), 400) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022900u, new Vector3(-164.5686f, -22.88756f, 285.7556f), 400) { StopDistance = 5f }; obj135.Steps = list177; reference140 = obj135; - ref QuestSequence reference141 = ref span42[9]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -181580,7 +217303,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022953u, new Vector3(253.0708f, -43.136364f, 626.88635f), 400) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022953u, new Vector3(253.0708f, -43.136364f, 626.88635f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -181593,21 +217318,26 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; questRoot19.Author = list179; - num = 11; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span43 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference142 = ref span43[0]; + index = 11; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022892u, new Vector3(252.64355f, -43.032913f, 625.0857f), 400) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022892u, new Vector3(252.64355f, -43.032913f, 625.0857f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, SkipConditions = new SkipConditions @@ -181620,7 +217350,8 @@ public static class AssemblyQuestLoader }; obj137.Steps = list181; reference142 = obj137; - ref QuestSequence reference143 = ref span43[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -181628,29 +217359,35 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1022890u, new Vector3(-620.5692f, 130f, -527.5807f), 612) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022890u, new Vector3(-620.5692f, 130f, -527.5807f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj138.Steps = list182; reference143 = obj138; - ref QuestSequence reference144 = ref span43[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span44 = CollectionsMarshal.AsSpan(list183); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-284.4574f, 73.94617f, -692.77094f), 612) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-284.4574f, 73.94617f, -692.77094f), 612) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.Interact, 1022902u, new Vector3(-359.51782f, 63.3675f, -727.93164f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022902u, new Vector3(-359.51782f, 63.3675f, -727.93164f), 612); obj139.Steps = list183; reference144 = obj139; - ref QuestSequence reference145 = ref span43[3]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 3 @@ -181658,46 +217395,60 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1022904u, new Vector3(-276.75293f, 74.50722f, -695.8572f), 612); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022904u, new Vector3(-276.75293f, 74.50722f, -695.8572f), 612); obj140.Steps = list184; reference145 = obj140; - ref QuestSequence reference146 = ref span43[4]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span45 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference147 = ref span45[0]; + index2 = 2; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(25.767f, 54.715424f, -532.3533f), 612) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 7491u; + num4 = 1; + List list186 = new List(num4); + CollectionsMarshal.SetCount(list186, num4); + span4 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span4[num3] = 7491u; obj142.KillEnemyDataIds = list186; num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span46 = CollectionsMarshal.AsSpan(list187); - span46[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = null; + span5 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj142.CompletionQuestVariablesFlags = list187; reference147 = obj142; - span45[1] = new QuestStep(EInteractionType.Interact, 1022905u, new Vector3(25.101074f, 54.83547f, -533.04346f), 612); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022905u, new Vector3(25.101074f, 54.83547f, -533.04346f), 612); obj141.Steps = list185; reference146 = obj141; - ref QuestSequence reference148 = ref span43[5]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 5 @@ -181705,27 +217456,33 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1022908u, new Vector3(182.8794f, 54.52025f, -491.56943f), 612) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022908u, new Vector3(182.8794f, 54.52025f, -491.56943f), 612) { Fly = true }; obj143.Steps = list188; reference148 = obj143; - ref QuestSequence reference149 = ref span43[6]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1022910u, new Vector3(301.31982f, 56.419365f, -470.08472f), 612) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022910u, new Vector3(301.31982f, 56.419365f, -470.08472f), 612) { Fly = true }; obj144.Steps = list189; reference149 = obj144; - ref QuestSequence reference150 = ref span43[7]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 7 @@ -181733,27 +217490,33 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1022911u, new Vector3(383.65747f, 65.514336f, -539.4217f), 612) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022911u, new Vector3(383.65747f, 65.514336f, -539.4217f), 612) { Fly = true }; obj145.Steps = list190; reference150 = obj145; - ref QuestSequence reference151 = ref span43[8]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Action, 2008667u, new Vector3(386.95337f, 65.537476f, -540.9171f), 612) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2008667u, new Vector3(386.95337f, 65.537476f, -540.9171f), 612) { Action = EAction.Souleater }; obj146.Steps = list191; reference151 = obj146; - ref QuestSequence reference152 = ref span43[9]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 9 @@ -181761,22 +217524,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Emote, 2008668u, new Vector3(-0.045776367f, 5.3864136f, -77.592224f), 635) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2008668u, new Vector3(-0.045776367f, 5.3864136f, -77.592224f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, Emote = EEmote.Respect }; obj147.Steps = list192; reference152 = obj147; - ref QuestSequence reference153 = ref span43[10]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -181795,13 +217563,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "liza"; questRoot20.Author = list194; - num = 9; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span47 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference154 = ref span47[0]; + index = 9; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -181809,7 +217580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -181827,16 +217600,18 @@ public static class AssemblyQuestLoader }; obj149.Steps = list196; reference154 = obj149; - ref QuestSequence reference155 = ref span47[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span48 = CollectionsMarshal.AsSpan(list197); - ref QuestStep reference156 = ref span48[0]; + index2 = 3; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference156 = ref span3[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1022916u, new Vector3(-57.724915f, -0.071196444f, -40.146484f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -181846,49 +217621,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachWest } }; - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span49 = CollectionsMarshal.AsSpan(list198); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + span5 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj151.CompletionQuestVariablesFlags = list198; reference156 = obj151; - ref QuestStep reference157 = ref span48[1]; + num2++; + ref QuestStep reference157 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span50 = CollectionsMarshal.AsSpan(list199); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list199); + 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); questStep7.CompletionQuestVariablesFlags = list199; reference157 = questStep7; - ref QuestStep reference158 = ref span48[2]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1022915u, new Vector3(-38.773254f, 18.82157f, 146.807f), 635); - num3 = 6; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - Span span51 = CollectionsMarshal.AsSpan(list200); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list200 = new List(num4); + CollectionsMarshal.SetCount(list200, num4); + span5 = CollectionsMarshal.AsSpan(list200); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list200; reference158 = questStep8; obj150.Steps = list197; reference155 = obj150; - ref QuestSequence reference159 = ref span47[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -181896,29 +217692,35 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1022914u, new Vector3(112.7489f, 0.6520417f, -9.414856f), 635); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022914u, new Vector3(112.7489f, 0.6520417f, -9.414856f), 635); obj152.Steps = list201; reference159 = obj152; - ref QuestSequence reference160 = ref span47[3]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span52 = CollectionsMarshal.AsSpan(list202); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.40436f, -0.5395956f, -3.4915996f), 635) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.40436f, -0.5395956f, -3.4915996f), 635) { TargetTerritoryId = (ushort)620 }; - span52[1] = new QuestStep(EInteractionType.Interact, 1022922u, new Vector3(-553.70416f, 46.755432f, -669.9474f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1022922u, new Vector3(-553.70416f, 46.755432f, -669.9474f), 620) { Fly = true }; obj153.Steps = list202; reference160 = obj153; - ref QuestSequence reference161 = ref span47[4]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 4 @@ -181926,28 +217728,35 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 2008669u, new Vector3(-387.9607f, 51.93484f, -626.3676f), 620) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008669u, new Vector3(-387.9607f, 51.93484f, -626.3676f), 620) { Fly = true }; obj154.Steps = list203; reference161 = obj154; - ref QuestSequence reference162 = ref span47[5]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023073u, new Vector3(-624.7196f, 58.3448f, -484.48926f), 620); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023073u, new Vector3(-624.7196f, 58.3448f, -484.48926f), 620); obj155.Steps = list204; reference162 = obj155; - span47[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference163 = ref span47[7]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 7 @@ -181955,7 +217764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -181966,15 +217777,18 @@ public static class AssemblyQuestLoader }; obj156.Steps = list205; reference163 = obj156; - ref QuestSequence reference164 = ref span47[8]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 2008885u, new Vector3(2.670288f, 11.947815f, 36.972534f), 419) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2008885u, new Vector3(2.670288f, 11.947815f, 36.972534f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181991,12 +217805,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list207; - num = 1; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - ref QuestSequence reference165 = ref CollectionsMarshal.AsSpan(list208)[0]; + index = 1; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -182004,7 +217822,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019464u, new Vector3(-33.096924f, 7.9693108f, 95.109375f), 635) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019464u, new Vector3(-33.096924f, 7.9693108f, 95.109375f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -182024,20 +217844,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; questRoot22.Author = list210; - num = 1; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - ref QuestSequence reference166 = ref CollectionsMarshal.AsSpan(list211)[0]; + index = 1; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018997u, new Vector3(20.492798f, -8.014721E-11f, -80.94916f), 628) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018997u, new Vector3(20.492798f, -8.014721E-11f, -80.94916f), 628) { StopDistance = 5f }; @@ -182050,13 +217876,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "liza"; questRoot23.Author = list213; - num = 5; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span53 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference167 = ref span53[0]; + index = 5; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -182064,7 +217893,9 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list215)[0]; + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + ref QuestStep reference168 = ref span3[index2]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -182082,31 +217913,37 @@ public static class AssemblyQuestLoader num3 = 1; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 128; + span7 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span7[num4] = 128; obj162.InTerritory = list216; skipConditions2.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions2; reference168 = obj161; obj160.Steps = list215; reference167 = obj160; - ref QuestSequence reference169 = ref span53[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span54 = CollectionsMarshal.AsSpan(list217); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span54[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj163.Steps = list217; reference169 = obj163; - ref QuestSequence reference170 = ref span53[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -182114,7 +217951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -182125,24 +217964,28 @@ public static class AssemblyQuestLoader }; obj164.Steps = list218; reference170 = obj164; - ref QuestSequence reference171 = ref span53[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span55 = CollectionsMarshal.AsSpan(list219); - span55[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 2; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span55[1] = new QuestStep(EInteractionType.Interact, 1021904u, new Vector3(-480.5829f, 23.11398f, -315.81604f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021904u, new Vector3(-480.5829f, 23.11398f, -315.81604f), 140); obj165.Steps = list219; reference171 = obj165; - ref QuestSequence reference172 = ref span53[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -182150,13 +217993,15 @@ public static class AssemblyQuestLoader num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span56 = CollectionsMarshal.AsSpan(list220); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span56[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(2924) }; @@ -182169,22 +218014,26 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list221); + index = 0; + span[index] = "liza"; questRoot24.Author = list221; - num = 9; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span57 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference173 = ref span57[0]; + index = 9; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + span2 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span58 = CollectionsMarshal.AsSpan(list223); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -182196,10 +218045,12 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj167.Steps = list223; reference173 = obj167; - ref QuestSequence reference174 = ref span57[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -182207,7 +218058,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -182218,21 +218071,25 @@ public static class AssemblyQuestLoader }; obj168.Steps = list224; reference174 = obj168; - ref QuestSequence reference175 = ref span57[2]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1021905u, new Vector3(-220.17242f, 20.83071f, 353.16992f), 153) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021905u, new Vector3(-220.17242f, 20.83071f, 353.16992f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj169.Steps = list225; reference175 = obj169; - ref QuestSequence reference176 = ref span57[3]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -182240,27 +218097,33 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2008554u, new Vector3(-230.18237f, 1.3274536f, 406.3629f), 153) + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008554u, new Vector3(-230.18237f, 1.3274536f, 406.3629f), 153) { Fly = true }; obj170.Steps = list226; reference176 = obj170; - ref QuestSequence reference177 = ref span57[4]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2008555u, new Vector3(-182.8794f, 0.3508911f, 463.76733f), 153) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008555u, new Vector3(-182.8794f, 0.3508911f, 463.76733f), 153) { Fly = true }; obj171.Steps = list227; reference177 = obj171; - ref QuestSequence reference178 = ref span57[5]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 5 @@ -182268,37 +218131,46 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2008556u, new Vector3(-81.71216f, 1.2054443f, 395.71216f), 153) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008556u, new Vector3(-81.71216f, 1.2054443f, 395.71216f), 153) { Fly = true }; obj172.Steps = list228; reference178 = obj172; - ref QuestSequence reference179 = ref span57[6]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list229)[0]; + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference180 = ref span3[num2]; QuestStep obj174 = new QuestStep(EInteractionType.Combat, null, new Vector3(-69.98173f, 0.9259782f, 361.20602f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - Span span59 = CollectionsMarshal.AsSpan(list230); - span59[0] = 7237u; - span59[1] = 7494u; - span59[2] = 7499u; + num4 = 3; + List list230 = new List(num4); + CollectionsMarshal.SetCount(list230, num4); + span4 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span4[num3] = 7237u; + num3++; + span4[num3] = 7494u; + num3++; + span4[num3] = 7499u; obj174.KillEnemyDataIds = list230; reference180 = obj174; obj173.Steps = list229; reference179 = obj173; - ref QuestSequence reference181 = ref span57[7]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 7 @@ -182306,21 +218178,26 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Action, 1021910u, new Vector3(-70.115234f, 0.94099265f, 360.3723f), 153) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1021910u, new Vector3(-70.115234f, 0.94099265f, 360.3723f), 153) { Action = EAction.Adloquium }; obj175.Steps = list231; reference181 = obj175; - ref QuestSequence reference182 = ref span57[8]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { Fly = true, NextQuestId = new QuestId(2925) @@ -182334,13 +218211,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "liza"; questRoot25.Author = list233; - num = 3; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span60 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference183 = ref span60[0]; + index = 3; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -182348,7 +218228,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -182361,21 +218243,25 @@ public static class AssemblyQuestLoader }; obj177.Steps = list235; reference183 = obj177; - ref QuestSequence reference184 = ref span60[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021913u, new Vector3(161.39453f, 37.625904f, 169.17664f), 153) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021913u, new Vector3(161.39453f, 37.625904f, 169.17664f), 153) { Fly = true }; obj178.Steps = list236; reference184 = obj178; - ref QuestSequence reference185 = ref span60[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -182383,7 +218269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { StopDistance = 5f, NextQuestId = new QuestId(2926) @@ -182397,21 +218285,26 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "liza"; questRoot26.Author = list238; - num = 7; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span61 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference186 = ref span61[0]; + index = 7; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + span2 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -182425,7 +218318,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list240; reference186 = obj180; - ref QuestSequence reference187 = ref span61[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -182433,30 +218327,36 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span62 = CollectionsMarshal.AsSpan(list241); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span62[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj181.Steps = list241; reference187 = obj181; - ref QuestSequence reference188 = ref span61[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj182.Steps = list242; reference188 = obj182; - ref QuestSequence reference189 = ref span61[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -182464,27 +218364,33 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 2008557u, new Vector3(-160.08246f, 1.9683228f, 175.52454f), 153) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008557u, new Vector3(-160.08246f, 1.9683228f, 175.52454f), 153) { Fly = true }; obj183.Steps = list243; reference189 = obj183; - ref QuestSequence reference190 = ref span61[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 2008558u, new Vector3(-150.19464f, 4.714966f, 52.109497f), 153) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008558u, new Vector3(-150.19464f, 4.714966f, 52.109497f), 153) { Fly = true }; obj184.Steps = list244; reference190 = obj184; - ref QuestSequence reference191 = ref span61[5]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -182492,7 +218398,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - ref QuestStep reference192 = ref CollectionsMarshal.AsSpan(list245)[0]; + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + ref QuestStep reference192 = ref span3[index2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2008559u, new Vector3(-250.5379f, 16.830688f, 19.21106f), 153) { Fly = true, @@ -182501,20 +218409,25 @@ public static class AssemblyQuestLoader num3 = 1; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - CollectionsMarshal.AsSpan(list246)[0] = 6621u; + span4 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span4[num4] = 6621u; obj186.KillEnemyDataIds = list246; reference192 = obj186; obj185.Steps = list245; reference191 = obj185; - ref QuestSequence reference193 = ref span61[6]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, NextQuestId = new QuestId(2927) @@ -182528,13 +218441,16 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list248); + index = 0; + span[index] = "liza"; questRoot27.Author = list248; - num = 7; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span63 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference194 = ref span63[0]; + index = 7; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + span2 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -182542,7 +218458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -182555,25 +218473,30 @@ public static class AssemblyQuestLoader }; obj188.Steps = list250; reference194 = obj188; - ref QuestSequence reference195 = ref span63[1]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021917u, new Vector3(-343.80103f, -0.3600377f, 448.1117f), 153) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021917u, new Vector3(-343.80103f, -0.3600377f, 448.1117f), 153) { Fly = true }; obj189.Steps = list251; reference195 = obj189; - span63[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference196 = ref span63[3]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -182581,27 +218504,33 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153); + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153); obj190.Steps = list252; reference196 = obj190; - ref QuestSequence reference197 = ref span63[4]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span64 = CollectionsMarshal.AsSpan(list253); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span64[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj191.Steps = list253; reference197 = obj191; - ref QuestSequence reference198 = ref span63[5]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 5 @@ -182609,46 +218538,63 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span65 = CollectionsMarshal.AsSpan(list254); - ref QuestStep reference199 = ref span65[0]; + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + ref QuestStep reference199 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); - num3 = 6; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - Span span66 = CollectionsMarshal.AsSpan(list255); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list255 = new List(num4); + CollectionsMarshal.SetCount(list255, num4); + span5 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list255; reference199 = questStep9; - ref QuestStep reference200 = ref span65[1]; + index2++; + ref QuestStep reference200 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1021919u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); num3 = 6; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - Span span67 = CollectionsMarshal.AsSpan(list256); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list256); + 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); questStep10.CompletionQuestVariablesFlags = list256; reference200 = questStep10; obj192.Steps = list254; reference198 = obj192; - ref QuestSequence reference201 = ref span63[6]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021918u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021918u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj193.Steps = list257; reference201 = obj193; questRoot27.QuestSequence = list249; @@ -182658,13 +218604,16 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list258); + index = 0; + span[index] = "liza"; questRoot28.Author = list258; - num = 6; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span68 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference202 = ref span68[0]; + index = 6; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span2 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -182672,7 +218621,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021926u, new Vector3(71.06128f, -0.10695544f, 59.372803f), 635) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021926u, new Vector3(71.06128f, -0.10695544f, 59.372803f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -182685,18 +218636,22 @@ public static class AssemblyQuestLoader }; obj194.Steps = list260; reference202 = obj194; - ref QuestSequence reference203 = ref span68[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1021930u, new Vector3(112.41321f, 0.65204173f, 56.290405f), 635); + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021930u, new Vector3(112.41321f, 0.65204173f, 56.290405f), 635); obj195.Steps = list261; reference203 = obj195; - ref QuestSequence reference204 = ref span68[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -182704,25 +218659,31 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj196.Steps = list262; reference204 = obj196; - ref QuestSequence reference205 = ref span68[3]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1021941u, new Vector3(467.00232f, 69.270096f, 521.14136f), 612); + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021941u, new Vector3(467.00232f, 69.270096f, 521.14136f), 612); obj197.Steps = list263; reference205 = obj197; - ref QuestSequence reference206 = ref span68[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -182730,21 +218691,26 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f }; obj198.Steps = list264; reference206 = obj198; - ref QuestSequence reference207 = ref span68[5]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { NextQuestId = new QuestId(2929) }; @@ -182757,13 +218723,16 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "liza"; questRoot29.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span69 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference208 = ref span69[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -182771,24 +218740,30 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); obj200.Steps = list268; reference208 = obj200; - ref QuestSequence reference209 = ref span69[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj201.Steps = list269; reference209 = obj201; - ref QuestSequence reference210 = ref span69[2]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -182796,7 +218771,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -182805,15 +218782,18 @@ public static class AssemblyQuestLoader }; obj202.Steps = list270; reference210 = obj202; - ref QuestSequence reference211 = ref span69[3]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { NextQuestId = new QuestId(2930) }; @@ -182826,13 +218806,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "liza"; questRoot30.Author = list272; - num = 4; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span70 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference212 = ref span70[0]; + index = 4; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 @@ -182840,24 +218823,30 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); obj204.Steps = list274; reference212 = obj204; - ref QuestSequence reference213 = ref span70[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj205.Steps = list275; reference213 = obj205; - ref QuestSequence reference214 = ref span70[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 @@ -182865,7 +218854,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -182874,15 +218865,18 @@ public static class AssemblyQuestLoader }; obj206.Steps = list276; reference214 = obj206; - ref QuestSequence reference215 = ref span70[3]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021943u, new Vector3(-207.20227f, -223.50002f, -124.95618f), 724) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021943u, new Vector3(-207.20227f, -223.50002f, -124.95618f), 724) { StopDistance = 7f, NextQuestId = new QuestId(2931) @@ -182896,13 +218890,16 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list278); + index = 0; + span[index] = "liza"; questRoot31.Author = list278; - num = 4; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span71 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference216 = ref span71[0]; + index = 4; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + span2 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 0 @@ -182910,27 +218907,33 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 7f }; obj208.Steps = list280; reference216 = obj208; - ref QuestSequence reference217 = ref span71[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj209.Steps = list281; reference217 = obj209; - ref QuestSequence reference218 = ref span71[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 2 @@ -182938,7 +218941,9 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -182947,15 +218952,18 @@ public static class AssemblyQuestLoader }; obj210.Steps = list282; reference218 = obj210; - ref QuestSequence reference219 = ref span71[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 6f, NextQuestId = new QuestId(2932) @@ -182969,13 +218977,16 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "liza"; questRoot32.Author = list284; - num = 4; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span72 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference220 = ref span72[0]; + index = 4; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 @@ -182983,27 +218994,33 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 7f }; obj212.Steps = list286; reference220 = obj212; - ref QuestSequence reference221 = ref span72[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj213.Steps = list287; reference221 = obj213; - ref QuestSequence reference222 = ref span72[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 2 @@ -183011,7 +219028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -183020,15 +219039,18 @@ public static class AssemblyQuestLoader }; obj214.Steps = list288; reference222 = obj214; - ref QuestSequence reference223 = ref span72[3]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) { StopDistance = 5f, NextQuestId = new QuestId(2933) @@ -183042,13 +219064,16 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list290); + index = 0; + span[index] = "liza"; questRoot33.Author = list290; - num = 6; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span73 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference224 = ref span73[0]; + index = 6; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + span2 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -183056,27 +219081,33 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) { StopDistance = 5f }; obj216.Steps = list292; reference224 = obj216; - ref QuestSequence reference225 = ref span73[1]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj217.Steps = list293; reference225 = obj217; - ref QuestSequence reference226 = ref span73[2]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -183084,7 +219115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1021952u, new Vector3(40.146484f, -19.000002f, 94.92627f), 132) + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021952u, new Vector3(40.146484f, -19.000002f, 94.92627f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -183095,18 +219128,22 @@ public static class AssemblyQuestLoader }; obj218.Steps = list294; reference226 = obj218; - ref QuestSequence reference227 = ref span73[3]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1021956u, new Vector3(4.257263f, 0.002998305f, -0.4730835f), 636); + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021956u, new Vector3(4.257263f, 0.002998305f, -0.4730835f), 636); obj219.Steps = list295; reference227 = obj219; - ref QuestSequence reference228 = ref span73[4]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 @@ -183114,18 +219151,23 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1021953u, new Vector3(41.550293f, -19.000004f, 95.26196f), 132); + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021953u, new Vector3(41.550293f, -19.000004f, 95.26196f), 132); obj220.Steps = list296; reference228 = obj220; - ref QuestSequence reference229 = ref span73[5]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(3031) @@ -183139,13 +219181,16 @@ public static class AssemblyQuestLoader num = 1; List list298 = new List(num); CollectionsMarshal.SetCount(list298, num); - CollectionsMarshal.AsSpan(list298)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list298); + index = 0; + span[index] = "JerryWester"; questRoot34.Author = list298; - num = 4; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - Span span74 = CollectionsMarshal.AsSpan(list299); - ref QuestSequence reference230 = ref span74[0]; + index = 4; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + span2 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -183153,70 +219198,96 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020004u, new Vector3(276.35608f, 3.6584158f, -377.5235f), 614) + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020004u, new Vector3(276.35608f, 3.6584158f, -377.5235f), 614) { StopDistance = 5f }; obj222.Steps = list300; reference230 = obj222; - span74[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference231 = ref span74[2]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span75 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference232 = ref span75[0]; + index2 = 3; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref QuestStep reference232 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1020008u, new Vector3(5.996765f, -0.5066767f, 2.5177002f), 681); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span76 = CollectionsMarshal.AsSpan(list302); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + span5 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list302; reference232 = questStep11; - ref QuestStep reference233 = ref span75[1]; + num2++; + ref QuestStep reference233 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1020010u, new Vector3(-30.014526f, -0.24868584f, -2.822998f), 681); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span77 = CollectionsMarshal.AsSpan(list303); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list303); + 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); questStep12.CompletionQuestVariablesFlags = list303; reference233 = questStep12; - ref QuestStep reference234 = ref span75[2]; + num2++; + ref QuestStep reference234 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1020009u, new Vector3(-45.243042f, -0.2509899f, -31.845642f), 681); - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span78 = CollectionsMarshal.AsSpan(list304); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list304 = new List(num4); + CollectionsMarshal.SetCount(list304, num4); + span5 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list304; reference234 = questStep13; obj223.Steps = list301; reference231 = obj223; - ref QuestSequence reference235 = ref span74[3]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue @@ -183224,12 +219295,16 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list305)[0]; + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + ref QuestStep reference236 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.CompleteQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA325_02934_Q1_000_064"), @@ -183246,27 +219321,33 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list307); + index = 0; + span[index] = "JerryWester"; questRoot35.Author = list307; - num = 3; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span79 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference237 = ref span79[0]; + index = 3; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + span2 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020052u, new Vector3(-52.47583f, -0.2509899f, -25.742065f), 681) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020052u, new Vector3(-52.47583f, -0.2509899f, -25.742065f), 681) { StopDistance = 7f }; obj225.Steps = list309; reference237 = obj225; - ref QuestSequence reference238 = ref span79[1]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 @@ -183274,27 +219355,33 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1020053u, new Vector3(456.01575f, 41.2719f, -43.320435f), 614) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020053u, new Vector3(456.01575f, 41.2719f, -43.320435f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj226.Steps = list310; reference238 = obj226; - ref QuestSequence reference239 = ref span79[2]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - Span span80 = CollectionsMarshal.AsSpan(list311); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.05653f, -0.299994f, 191.03581f), 614); - span80[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008013u, new Vector3(-97.428955f, 13.260071f, 563.714f), 614) + index2 = 3; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.05653f, -0.299994f, 191.03581f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008013u, new Vector3(-97.428955f, 13.260071f, 563.714f), 614) { AetherCurrentId = 2818201u }; - span80[2] = new QuestStep(EInteractionType.CompleteQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); obj227.Steps = list311; reference239 = obj227; questRoot35.QuestSequence = list308; @@ -183304,13 +219391,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "liza"; questRoot36.Author = list312; - num = 2; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span81 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference240 = ref span81[0]; + index = 2; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -183318,7 +219408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183332,15 +219424,18 @@ public static class AssemblyQuestLoader }; obj228.Steps = list314; reference240 = obj228; - ref QuestSequence reference241 = ref span81[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(2937) }; @@ -183353,13 +219448,16 @@ public static class AssemblyQuestLoader num = 1; List list316 = new List(num); CollectionsMarshal.SetCount(list316, num); - CollectionsMarshal.AsSpan(list316)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list316); + index = 0; + span[index] = "liza"; questRoot37.Author = list316; - num = 2; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span82 = CollectionsMarshal.AsSpan(list317); - ref QuestSequence reference242 = ref span82[0]; + index = 2; + List list317 = new List(index); + CollectionsMarshal.SetCount(list317, index); + span2 = CollectionsMarshal.AsSpan(list317); + num = 0; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 0 @@ -183367,7 +219465,9 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183381,15 +219481,18 @@ public static class AssemblyQuestLoader }; obj230.Steps = list318; reference242 = obj230; - ref QuestSequence reference243 = ref span82[1]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(2938) }; @@ -183402,13 +219505,16 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list320); + index = 0; + span[index] = "liza"; questRoot38.Author = list320; - num = 2; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span83 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference244 = ref span83[0]; + index = 2; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + span2 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -183416,7 +219522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183430,15 +219538,18 @@ public static class AssemblyQuestLoader }; obj232.Steps = list322; reference244 = obj232; - ref QuestSequence reference245 = ref span83[1]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(2939) }; @@ -183451,13 +219562,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list324); + index = 0; + span[index] = "liza"; questRoot39.Author = list324; - num = 2; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span84 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference246 = ref span84[0]; + index = 2; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + span2 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -183465,7 +219579,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183479,15 +219595,18 @@ public static class AssemblyQuestLoader }; obj234.Steps = list326; reference246 = obj234; - ref QuestSequence reference247 = ref span84[1]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(3597) }; @@ -183500,13 +219619,16 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - CollectionsMarshal.AsSpan(list328)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list328); + index = 0; + span[index] = "liza"; questRoot40.Author = list328; - num = 2; - List list329 = new List(num); - CollectionsMarshal.SetCount(list329, num); - Span span85 = CollectionsMarshal.AsSpan(list329); - ref QuestSequence reference248 = ref span85[0]; + index = 2; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + span2 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 0 @@ -183514,7 +219636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023642u, new Vector3(53.787964f, 0f, 93.0647f), 635) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023642u, new Vector3(53.787964f, 0f, 93.0647f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -183527,15 +219651,18 @@ public static class AssemblyQuestLoader }; obj236.Steps = list330; reference248 = obj236; - ref QuestSequence reference249 = ref span85[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022849u, new Vector3(429.37354f, 60.51156f, -506.82846f), 612) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022849u, new Vector3(429.37354f, 60.51156f, -506.82846f), 612) { AethernetShortcut = new AethernetShortcut { @@ -183553,12 +219680,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "liza"; questRoot41.Author = list332; - num = 1; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - ref QuestSequence reference250 = ref CollectionsMarshal.AsSpan(list333)[0]; + index = 1; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 @@ -183566,8 +219697,9 @@ public static class AssemblyQuestLoader num2 = 2; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span86 = CollectionsMarshal.AsSpan(list334); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -183578,7 +219710,8 @@ public static class AssemblyQuestLoader } } }; - span86[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj238.Steps = list334; reference250 = obj238; questRoot41.QuestSequence = list333; @@ -183588,20 +219721,26 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list335); + index = 0; + span[index] = "liza"; questRoot42.Author = list335; - num = 1; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - ref QuestSequence reference251 = ref CollectionsMarshal.AsSpan(list336)[0]; + index = 1; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + span2 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022622u, new Vector3(18.08191f, 4.0559936f, 70.02356f), 628); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022622u, new Vector3(18.08191f, 4.0559936f, 70.02356f), 628); obj239.Steps = list337; reference251 = obj239; questRoot42.QuestSequence = list336; @@ -183611,13 +219750,16 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "JerryWester"; questRoot43.Author = list338; - num = 4; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span87 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference252 = ref span87[0]; + index = 4; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 @@ -183625,23 +219767,28 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj240.Steps = list340; reference252 = obj240; - ref QuestSequence reference253 = ref span87[1]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - Span span88 = CollectionsMarshal.AsSpan(list341); - span88[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + index2 = 2; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1020222u, new Vector3(-9.781128f, 5.982579f, -172.53375f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020222u, new Vector3(-9.781128f, 5.982579f, -172.53375f), 628) { AethernetShortcut = new AethernetShortcut { @@ -183651,7 +219798,8 @@ public static class AssemblyQuestLoader }; obj241.Steps = list341; reference253 = obj241; - ref QuestSequence reference254 = ref span87[2]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 @@ -183659,8 +219807,9 @@ public static class AssemblyQuestLoader num2 = 2; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span89 = CollectionsMarshal.AsSpan(list342); - span89[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -183669,18 +219818,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span89[1] = new QuestStep(EInteractionType.Interact, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj242.Steps = list342; reference254 = obj242; - ref QuestSequence reference255 = ref span87[3]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -183694,13 +219847,16 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "JerryWester"; questRoot44.Author = list344; - num = 6; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span90 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference256 = ref span90[0]; + index = 6; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 @@ -183708,19 +219864,23 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614); + span3 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614); obj244.Steps = list346; reference256 = obj244; - ref QuestSequence reference257 = ref span90[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - Span span91 = CollectionsMarshal.AsSpan(list347); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) + index2 = 3; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) { SkipConditions = new SkipConditions { @@ -183730,7 +219890,8 @@ public static class AssemblyQuestLoader } } }; - span91[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.4086f, -0.3000002f, 271.62607f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.4086f, -0.3000002f, 271.62607f), 614) { SkipConditions = new SkipConditions { @@ -183740,7 +219901,8 @@ public static class AssemblyQuestLoader } } }; - span91[2] = new QuestStep(EInteractionType.UseItem, 2007926u, new Vector3(164.99573f, 6.2713623f, 357.80872f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2007926u, new Vector3(164.99573f, 6.2713623f, 357.80872f), 614) { Fly = true, ItemId = 2002176u, @@ -183748,7 +219910,8 @@ public static class AssemblyQuestLoader }; obj245.Steps = list347; reference257 = obj245; - ref QuestSequence reference258 = ref span90[2]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 2 @@ -183756,60 +219919,84 @@ public static class AssemblyQuestLoader num2 = 3; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span92 = CollectionsMarshal.AsSpan(list348); - ref QuestStep reference259 = ref span92[0]; + span3 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + ref QuestStep reference259 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2007928u, new Vector3(170.55005f, 6.6376343f, 360.12805f), 614); - num3 = 6; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - Span span93 = CollectionsMarshal.AsSpan(list349); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list349 = new List(num4); + CollectionsMarshal.SetCount(list349, num4); + span5 = CollectionsMarshal.AsSpan(list349); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list349; reference259 = questStep15; - ref QuestStep reference260 = ref span92[1]; + index2++; + ref QuestStep reference260 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2007930u, new Vector3(165.6062f, 4.348816f, 349.38574f), 614); num3 = 6; List list350 = new List(num3); CollectionsMarshal.SetCount(list350, num3); - Span span94 = CollectionsMarshal.AsSpan(list350); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list350); + 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); questStep16.CompletionQuestVariablesFlags = list350; reference260 = questStep16; - ref QuestStep reference261 = ref span92[2]; + index2++; + ref QuestStep reference261 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2007929u, new Vector3(157.61035f, 6.6376343f, 357.01526f), 614); - num3 = 6; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span95 = CollectionsMarshal.AsSpan(list351); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list351 = new List(num4); + CollectionsMarshal.SetCount(list351, num4); + span5 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list351; reference261 = questStep17; obj246.Steps = list348; reference258 = obj246; - ref QuestSequence reference262 = ref span90[3]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.UseItem, 2007927u, new Vector3(40.72632f, 5.4473877f, 301.07568f), 614) + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2007927u, new Vector3(40.72632f, 5.4473877f, 301.07568f), 614) { Fly = true, ItemId = 2002176u, @@ -183817,7 +220004,8 @@ public static class AssemblyQuestLoader }; obj247.Steps = list352; reference262 = obj247; - ref QuestSequence reference263 = ref span90[4]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 4 @@ -183825,103 +220013,147 @@ public static class AssemblyQuestLoader num2 = 6; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span96 = CollectionsMarshal.AsSpan(list353); - ref QuestStep reference264 = ref span96[0]; + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + ref QuestStep reference264 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2008192u, new Vector3(37.67456f, 5.0201416f, 295.1858f), 614); num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span97 = CollectionsMarshal.AsSpan(list354); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list354); + 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)8, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list354; reference264 = questStep18; - ref QuestStep reference265 = ref span96[1]; + index2++; + ref QuestStep reference265 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2008193u, new Vector3(44.87671f, 5.3864136f, 293.59875f), 614); - num3 = 6; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span98 = CollectionsMarshal.AsSpan(list355); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list355 = new List(num4); + CollectionsMarshal.SetCount(list355, num4); + span5 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list355; reference265 = questStep19; - ref QuestStep reference266 = ref span96[2]; + index2++; + ref QuestStep reference266 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2008189u, new Vector3(48.78308f, 5.5999756f, 294.02612f), 614); num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span99 = CollectionsMarshal.AsSpan(list356); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list356); + 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); questStep20.CompletionQuestVariablesFlags = list356; reference266 = questStep20; - ref QuestStep reference267 = ref span96[3]; + index2++; + ref QuestStep reference267 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2008188u, new Vector3(49.759644f, 5.9662476f, 301.07568f), 614); - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span100 = CollectionsMarshal.AsSpan(list357); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + span5 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list357; reference267 = questStep21; - ref QuestStep reference268 = ref span96[4]; + index2++; + ref QuestStep reference268 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2008191u, new Vector3(41.672363f, 5.416931f, 308.91882f), 614); num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span101 = CollectionsMarshal.AsSpan(list358); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list358); + 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); questStep22.CompletionQuestVariablesFlags = list358; reference268 = questStep22; - ref QuestStep reference269 = ref span96[5]; + index2++; + ref QuestStep reference269 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2008190u, new Vector3(33.829224f, 4.8065186f, 308.5221f), 614); - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span102 = CollectionsMarshal.AsSpan(list359); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list359 = new List(num4); + CollectionsMarshal.SetCount(list359, num4); + span5 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list359; reference269 = questStep23; obj248.Steps = list353; reference263 = obj248; - ref QuestSequence reference270 = ref span90[5]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - Span span103 = CollectionsMarshal.AsSpan(list360); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) + index2 = 2; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) { SkipConditions = new SkipConditions { @@ -183931,7 +220163,8 @@ public static class AssemblyQuestLoader } } }; - span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) { Fly = true }; @@ -183944,13 +220177,16 @@ public static class AssemblyQuestLoader num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - CollectionsMarshal.AsSpan(list361)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list361); + index = 0; + span[index] = "xan"; questRoot45.Author = list361; - num = 8; - List list362 = new List(num); - CollectionsMarshal.SetCount(list362, num); - Span span104 = CollectionsMarshal.AsSpan(list362); - ref QuestSequence reference271 = ref span104[0]; + index = 8; + List list362 = new List(index); + CollectionsMarshal.SetCount(list362, index); + span2 = CollectionsMarshal.AsSpan(list362); + num = 0; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -183958,8 +220194,9 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span105 = CollectionsMarshal.AsSpan(list363); - span105[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -183975,19 +220212,22 @@ public static class AssemblyQuestLoader } } }; - span105[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj250.Steps = list363; reference271 = obj250; - ref QuestSequence reference272 = ref span104[1]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - Span span106 = CollectionsMarshal.AsSpan(list364); - span106[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + span3 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -184018,10 +220258,12 @@ public static class AssemblyQuestLoader } } }; - span106[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj251.Steps = list364; reference272 = obj251; - ref QuestSequence reference273 = ref span104[2]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 @@ -184029,7 +220271,9 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - ref QuestStep reference274 = ref CollectionsMarshal.AsSpan(list365)[0]; + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + ref QuestStep reference274 = ref span3[index2]; QuestStep obj253 = new QuestStep(EInteractionType.Interact, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -184042,7 +220286,9 @@ public static class AssemblyQuestLoader num3 = 1; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list366); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN601_02948_Q1_000_031"), @@ -184052,34 +220298,40 @@ public static class AssemblyQuestLoader reference274 = obj253; obj252.Steps = list365; reference273 = obj252; - ref QuestSequence reference275 = ref span104[3]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - Span span107 = CollectionsMarshal.AsSpan(list367); - ref QuestStep reference276 = ref span107[0]; + index2 = 2; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + ref QuestStep reference276 = ref span3[num2]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list368 = new List(num3); - CollectionsMarshal.SetCount(list368, num3); - CollectionsMarshal.AsSpan(list368)[0] = 129; + num4 = 1; + List list368 = new List(num4); + CollectionsMarshal.SetCount(list368, num4); + span7 = CollectionsMarshal.AsSpan(list368); + num3 = 0; + span7[num3] = 129; skipStepConditions.InTerritory = list368; skipConditions3.StepIf = skipStepConditions; obj255.SkipConditions = skipConditions3; reference276 = obj255; - span107[1] = new QuestStep(EInteractionType.Interact, 1023751u, new Vector3(0.62561035f, 20.333344f, 5.935669f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023751u, new Vector3(0.62561035f, 20.333344f, 5.935669f), 129); obj254.Steps = list367; reference275 = obj254; - ref QuestSequence reference277 = ref span104[4]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 4 @@ -184087,21 +220339,26 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1023545u, new Vector3(-3.8911133f, 66.760155f, 45.303955f), 137) + span3 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023545u, new Vector3(-3.8911133f, 66.760155f, 45.303955f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj256.Steps = list369; reference277 = obj256; - ref QuestSequence reference278 = ref span104[5]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - ref QuestStep reference279 = ref CollectionsMarshal.AsSpan(list370)[0]; + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + ref QuestStep reference279 = ref span3[num2]; QuestStep obj258 = new QuestStep(EInteractionType.Combat, 1023547u, new Vector3(468.80298f, 10.538202f, 774.13586f), 137) { Fly = true, @@ -184111,12 +220368,15 @@ public static class AssemblyQuestLoader num3 = 1; List list371 = new List(num3); CollectionsMarshal.SetCount(list371, num3); - CollectionsMarshal.AsSpan(list371)[0] = 7496u; + span4 = CollectionsMarshal.AsSpan(list371); + num4 = 0; + span4[num4] = 7496u; obj258.KillEnemyDataIds = list371; reference279 = obj258; obj257.Steps = list370; reference278 = obj257; - ref QuestSequence reference280 = ref span104[6]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 6 @@ -184124,22 +220384,26 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1023550u, new Vector3(477.10376f, 11.543927f, 232.28796f), 137) + span3 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023550u, new Vector3(477.10376f, 11.543927f, 232.28796f), 137) { Fly = true }; obj259.Steps = list372; reference280 = obj259; - ref QuestSequence reference281 = ref span104[7]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span108 = CollectionsMarshal.AsSpan(list373); - span108[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + span3 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -184151,7 +220415,8 @@ public static class AssemblyQuestLoader } } }; - span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2949) }; @@ -184164,13 +220429,16 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list374); + index = 0; + span[index] = "xan"; questRoot46.Author = list374; - num = 9; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span109 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference282 = ref span109[0]; + index = 9; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + span2 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 0 @@ -184178,8 +220446,9 @@ public static class AssemblyQuestLoader num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span110 = CollectionsMarshal.AsSpan(list376); - span110[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -184195,18 +220464,22 @@ public static class AssemblyQuestLoader } } }; - span110[1] = new QuestStep(EInteractionType.AcceptQuest, 1010778u, new Vector3(-28.854858f, -24.773243f, 265.3086f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010778u, new Vector3(-28.854858f, -24.773243f, 265.3086f), 137); obj261.Steps = list376; reference282 = obj261; - ref QuestSequence reference283 = ref span109[1]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -184217,7 +220490,8 @@ public static class AssemblyQuestLoader }; obj262.Steps = list377; reference283 = obj262; - ref QuestSequence reference284 = ref span109[2]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 2 @@ -184225,8 +220499,9 @@ public static class AssemblyQuestLoader num2 = 5; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span111 = CollectionsMarshal.AsSpan(list378); - ref QuestStep reference285 = ref span111[0]; + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + ref QuestStep reference285 = ref span3[index2]; QuestStep obj264 = new QuestStep(EInteractionType.Action, null, new Vector3(-22.793612f, 2.2649765E-06f, -60.22008f), 628) { AethernetShortcut = new AethernetShortcut @@ -184238,59 +220513,78 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span112 = CollectionsMarshal.AsSpan(list379); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list379 = new List(num4); + CollectionsMarshal.SetCount(list379, num4); + span5 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list379; skipConditions4.StepIf = skipStepConditions2; obj264.SkipConditions = skipConditions4; reference285 = obj264; - ref QuestStep reference286 = ref span111[1]; + index2++; + ref QuestStep reference286 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.572186f, 3.0135043f, -71.70311f), 628); num3 = 6; List list380 = new List(num3); CollectionsMarshal.SetCount(list380, num3); - Span span113 = CollectionsMarshal.AsSpan(list380); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list380); + 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); questStep24.CompletionQuestVariablesFlags = list380; reference286 = questStep24; - span111[2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) { Status = EStatus.Hidden }; - span111[3] = new QuestStep(EInteractionType.Action, null, new Vector3(-53.864307f, -2.1307263f, -106.929726f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-53.864307f, -2.1307263f, -106.929726f), 628) { Action = EAction.Hide }; - span111[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.41595f, -7.300003f, -111.459076f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.41595f, -7.300003f, -111.459076f), 628); obj263.Steps = list378; reference284 = obj263; - ref QuestSequence reference287 = ref span109[3]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - Span span114 = CollectionsMarshal.AsSpan(list381); - span114[0] = new QuestStep(EInteractionType.StatusOff, null, null, 628) + index2 = 2; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) { Status = EStatus.Hidden }; - span114[1] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184300,7 +220594,8 @@ public static class AssemblyQuestLoader }; obj265.Steps = list381; reference287 = obj265; - ref QuestSequence reference288 = ref span109[4]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 4 @@ -184308,8 +220603,9 @@ public static class AssemblyQuestLoader num2 = 5; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span115 = CollectionsMarshal.AsSpan(list382); - span115[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-75.76606f, 18f, -164.78288f), 628) + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-75.76606f, 18f, -164.78288f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184321,47 +220617,55 @@ public static class AssemblyQuestLoader Position = new Vector3(-70.46664f, 19.583387f, -163.98515f) } }; - span115[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-70.54904f, 19.550425f, -163.96664f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-70.54904f, 19.550425f, -163.96664f), 628) { JumpDestination = new JumpDestination { Position = new Vector3(-67.09049f, 20.600859f, -163.70255f) } }; - span115[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-68.15528f, 20.696194f, -163.4804f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-68.15528f, 20.696194f, -163.4804f), 628) { JumpDestination = new JumpDestination { Position = new Vector3(-67.90176f, 24.143099f, -159.9363f) } }; - span115[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-39.38211f, 20.545578f, -156.03827f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-39.38211f, 20.545578f, -156.03827f), 628) { DisableNavmesh = true }; - span115[4] = new QuestStep(EInteractionType.Interact, 2008933u, new Vector3(-40.05493f, 18.783813f, -143.3891f), 628) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008933u, new Vector3(-40.05493f, 18.783813f, -143.3891f), 628) { DisableNavmesh = true }; obj266.Steps = list382; reference288 = obj266; - ref QuestSequence reference289 = ref span109[5]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - Span span116 = CollectionsMarshal.AsSpan(list383); - span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.23437f, 5.9548235f, -144.91388f), 628) + index2 = 2; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + span3 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.23437f, 5.9548235f, -144.91388f), 628) { DisableNavmesh = true }; - span116[1] = new QuestStep(EInteractionType.Interact, 2008934u, new Vector3(-117.5708f, 13.412659f, -134.35571f), 628); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008934u, new Vector3(-117.5708f, 13.412659f, -134.35571f), 628); obj267.Steps = list383; reference289 = obj267; - ref QuestSequence reference290 = ref span109[6]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 6 @@ -184369,21 +220673,27 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 2008935u, new Vector3(-118.18121f, 13.199036f, -143.14496f), 628); + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008935u, new Vector3(-118.18121f, 13.199036f, -143.14496f), 628); obj268.Steps = list384; reference290 = obj268; - ref QuestSequence reference291 = ref span109[7]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 2008936u, new Vector3(-107.49988f, 19.241516f, -201.31226f), 628); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008936u, new Vector3(-107.49988f, 19.241516f, -201.31226f), 628); obj269.Steps = list385; reference291 = obj269; - ref QuestSequence reference292 = ref span109[8]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -184391,7 +220701,9 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 2008937u, new Vector3(116.80774f, 11.9782715f, -38.345947f), 628) + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2008937u, new Vector3(116.80774f, 11.9782715f, -38.345947f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184413,13 +220725,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "xan"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "xan"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -184427,7 +220742,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -184440,15 +220757,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184458,7 +220778,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -184466,21 +220787,27 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1023566u, new Vector3(8.682312f, 4f, 49.881714f), 628); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023566u, new Vector3(8.682312f, 4f, 49.881714f), 628); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -184488,7 +220815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184498,15 +220827,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023567u, new Vector3(696.681f, -0.051437557f, 22.659607f), 613) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023567u, new Vector3(696.681f, -0.051437557f, 22.659607f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -184525,7 +220857,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -184533,7 +220866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -184554,21 +220889,26 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "xan"; questRoot2.Author = list10; - num = 9; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span2 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span2[0]; + index = 9; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1023571u, new Vector3(413.0769f, 68.02851f, -99.321045f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -184583,7 +220923,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list13); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_Q1_000_003"), @@ -184593,7 +220935,8 @@ public static class AssemblyQuestLoader reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -184601,26 +220944,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1023573u, new Vector3(703.24243f, 107.83904f, -341.45117f), 614) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023573u, new Vector3(703.24243f, 107.83904f, -341.45117f), 614) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference12 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + span4 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_SYSTEM_100_049") @@ -184629,7 +220979,8 @@ public static class AssemblyQuestLoader reference12 = questStep; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference13 = ref span2[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 @@ -184637,21 +220988,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); obj12.Steps = list17; reference13 = obj12; - ref QuestSequence reference14 = ref span2[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); obj13.Steps = list18; reference14 = obj13; - ref QuestSequence reference15 = ref span2[5]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 5 @@ -184659,7 +221016,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list19)[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(555.4114f, 16.160986f, 390.68732f), 614) { StopDistance = 1f, @@ -184669,28 +221028,35 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 6641u; + Span span5 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span5[index3] = 6641u; obj15.KillEnemyDataIds = list20; reference16 = obj15; obj14.Steps = list19; reference15 = obj14; - ref QuestSequence reference17 = ref span2[6]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_SYSTEM_100_049") @@ -184699,7 +221065,8 @@ public static class AssemblyQuestLoader reference18 = obj17; obj16.Steps = list21; reference17 = obj16; - ref QuestSequence reference19 = ref span2[7]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 7 @@ -184707,18 +221074,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); obj18.Steps = list23; reference19 = obj18; - ref QuestSequence reference20 = ref span2[8]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { NextQuestId = new QuestId(2952) }; @@ -184731,13 +221103,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "xan"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "xan"; questRoot3.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span3 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference21 = ref span3[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -184745,7 +221120,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list27)[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1023570u, new Vector3(413.0769f, 68.02851f, -99.321045f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -184760,7 +221137,9 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN700_02952_Q1_100_004"), @@ -184770,15 +221149,18 @@ public static class AssemblyQuestLoader reference22 = obj21; obj20.Steps = list27; reference21 = obj20; - ref QuestSequence reference23 = ref span3[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008939u, new Vector3(-174.60901f, 1.1138916f, 767.5134f), 622) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008939u, new Vector3(-174.60901f, 1.1138916f, 767.5134f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -184797,7 +221179,8 @@ public static class AssemblyQuestLoader }; obj22.Steps = list29; reference23 = obj22; - ref QuestSequence reference24 = ref span3[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -184805,8 +221188,9 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span4 = CollectionsMarshal.AsSpan(list30); - span4[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -184818,7 +221202,8 @@ public static class AssemblyQuestLoader } } }; - span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2949) }; @@ -184831,22 +221216,26 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "JerryWester"; questRoot4.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span5 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference25 = ref span5[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span6 = CollectionsMarshal.AsSpan(list33); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.668243f, 4.323245f, -600.21014f), 613) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.668243f, 4.323245f, -600.21014f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -184857,13 +221246,15 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) { DisableNavmesh = true }; obj24.Steps = list33; reference25 = obj24; - ref QuestSequence reference26 = ref span5[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -184871,34 +221262,42 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list34)[0]; + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-371.42313f, 3.2183487f, -537.3274f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 8029u; + index3 = 1; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + span5 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span5[num3] = 8029u; obj26.KillEnemyDataIds = list35; reference27 = obj26; obj25.Steps = list34; reference26 = obj25; - ref QuestSequence reference28 = ref span5[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) { StopDistance = 7f }; obj27.Steps = list36; reference28 = obj27; - ref QuestSequence reference29 = ref span5[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -184906,21 +221305,26 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) { StopDistance = 7f }; obj28.Steps = list37; reference29 = obj28; - ref QuestSequence reference30 = ref span5[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -184933,13 +221337,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "JerryWester"; questRoot5.Author = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span7 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference31 = ref span7[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -184947,7 +221354,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -184960,16 +221369,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list41; reference31 = obj30; - ref QuestSequence reference32 = ref span7[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span8 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference33 = ref span8[0]; + index2 = 2; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.208252f, 104.518814f, -739.1928f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -184977,7 +221388,9 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData + Span span6 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span6[index3] = new ComplexCombatData { DataId = 7447u, MinimumKillCount = 1u, @@ -184986,15 +221399,18 @@ public static class AssemblyQuestLoader }; obj32.ComplexCombatData = list43; reference33 = obj32; - ref QuestStep reference34 = ref span8[1]; + num2++; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(-476.92078f, 48.885674f, -732.2957f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData + index3 = 1; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + span6 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 7450u, MinimumKillCount = 1u, @@ -185005,7 +221421,8 @@ public static class AssemblyQuestLoader reference34 = obj33; obj31.Steps = list42; reference32 = obj31; - ref QuestSequence reference35 = ref span7[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -185013,7 +221430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -185026,21 +221445,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "JerryWester"; questRoot6.Author = list46; - num = 4; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span9 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference36 = ref span9[0]; + index = 4; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -185053,7 +221477,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list48; reference36 = obj35; - ref QuestSequence reference37 = ref span9[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -185061,7 +221486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1020857u, new Vector3(-768.91736f, 81.467896f, -300.8011f), 620) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020857u, new Vector3(-768.91736f, 81.467896f, -300.8011f), 620) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -185072,18 +221499,22 @@ public static class AssemblyQuestLoader }; obj36.Steps = list49; reference37 = obj36; - ref QuestSequence reference38 = ref span9[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 2008680u, new Vector3(-763.97345f, 81.89514f, -298.3902f), 620); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2008680u, new Vector3(-763.97345f, 81.89514f, -298.3902f), 620); obj37.Steps = list50; reference38 = obj37; - ref QuestSequence reference39 = ref span9[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -185091,7 +221522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -185104,21 +221537,26 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "JerryWester"; questRoot7.Author = list52; - num = 3; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span10 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span10[0]; + index = 3; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -185131,7 +221569,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list54; reference40 = obj39; - ref QuestSequence reference41 = ref span10[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -185139,20 +221578,25 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1024136u, new Vector3(-29.34314f, -0.1424195f, -124.52893f), 635); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024136u, new Vector3(-29.34314f, -0.1424195f, -124.52893f), 635); obj40.Steps = list55; reference41 = obj40; - ref QuestSequence reference42 = ref span10[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span11 = CollectionsMarshal.AsSpan(list56); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.63005f, -0.0012056828f, -101.09714f), 635); - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 2009050u, new Vector3(49.66809f, -0.015319824f, 58.182617f), 635) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.63005f, -0.0012056828f, -101.09714f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2009050u, new Vector3(49.66809f, -0.015319824f, 58.182617f), 635) { AethernetShortcut = new AethernetShortcut { @@ -185169,13 +221613,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "JerryWester"; questRoot8.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span12 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference43 = ref span12[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -185183,7 +221630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024137u, new Vector3(47.77588f, 0f, 58.64038f), 635) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024137u, new Vector3(47.77588f, 0f, 58.64038f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -185197,16 +221646,18 @@ public static class AssemblyQuestLoader }; obj42.Steps = list59; reference43 = obj42; - ref QuestSequence reference44 = ref span12[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span13 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference45 = ref span13[0]; + index2 = 4; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1024130u, new Vector3(614.61804f, 80.000015f, 624.567f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -185214,53 +221665,75 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span14 = CollectionsMarshal.AsSpan(list61); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list61; reference45 = obj44; - ref QuestStep reference46 = ref span13[1]; + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1024131u, new Vector3(585.3512f, 70f, 564.0801f), 621) { Fly = true }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span15 = CollectionsMarshal.AsSpan(list62); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + span7 = CollectionsMarshal.AsSpan(list62); + 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); obj45.CompletionQuestVariablesFlags = list62; reference46 = obj45; - span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(682.593f, 69.99999f, 538.1847f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(682.593f, 69.99999f, 538.1847f), 621) { Fly = true }; - ref QuestStep reference47 = ref span13[3]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1024132u, new Vector3(683.71094f, 70f, 540.5508f), 621); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span16 = CollectionsMarshal.AsSpan(list63); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list63; reference47 = questStep2; obj43.Steps = list60; reference44 = obj43; - ref QuestSequence reference48 = ref span12[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -185268,18 +221741,23 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1024133u, new Vector3(745.20483f, 69.99999f, 489.76868f), 621); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024133u, new Vector3(745.20483f, 69.99999f, 489.76868f), 621); obj46.Steps = list64; reference48 = obj46; - ref QuestSequence reference49 = ref span12[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -185293,13 +221771,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "JerryWester"; questRoot9.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span17 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span17[0]; + index = 6; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -185307,7 +221788,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -185321,27 +221804,31 @@ public static class AssemblyQuestLoader }; obj48.Steps = list68; reference50 = obj48; - ref QuestSequence reference51 = ref span17[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span18 = CollectionsMarshal.AsSpan(list69); - span18[0] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) { TargetTerritoryId = (ushort)621, Fly = true }; - span18[1] = new QuestStep(EInteractionType.Interact, 1024134u, new Vector3(207.84314f, -0.3f, 338.55188f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024134u, new Vector3(207.84314f, -0.3f, 338.55188f), 621) { Fly = true }; obj49.Steps = list69; reference51 = obj49; - ref QuestSequence reference52 = ref span17[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -185349,26 +221836,32 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span19 = CollectionsMarshal.AsSpan(list70); - span19[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(196.67705f, -0.6f, 318.12054f), 621) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(196.67705f, -0.6f, 318.12054f), 621) { StopDistance = 0.25f }; - span19[1] = new QuestStep(EInteractionType.Interact, 2009052u, new Vector3(144.97595f, -270.98505f, -12.283508f), 621); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009052u, new Vector3(144.97595f, -270.98505f, -12.283508f), 621); obj50.Steps = list70; reference52 = obj50; - ref QuestSequence reference53 = ref span17[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 2009054u, new Vector3(258.19788f, -274.06738f, -12.588745f), 621); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009054u, new Vector3(258.19788f, -274.06738f, -12.588745f), 621); obj51.Steps = list71; reference53 = obj51; - ref QuestSequence reference54 = ref span17[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 4 @@ -185376,7 +221869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -185386,19 +221881,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list72; reference54 = obj52; - span17[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference55 = ref span17[6]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) { StopDistance = 6f }; @@ -185411,13 +221905,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "JerryWester"; questRoot10.Author = list74; - num = 4; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span20 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference56 = ref span20[0]; + index = 4; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -185425,7 +221922,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -185439,21 +221938,25 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference56 = obj54; - ref QuestSequence reference57 = ref span20[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1024105u, new Vector3(739.22327f, 70f, 537.6515f), 621) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024105u, new Vector3(739.22327f, 70f, 537.6515f), 621) { Fly = true }; obj55.Steps = list77; reference57 = obj55; - ref QuestSequence reference58 = ref span20[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -185461,29 +221964,36 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1024107u, new Vector3(788.3878f, 69.999916f, 637.3845f), 621) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024107u, new Vector3(788.3878f, 69.999916f, 637.3845f), 621) { StopDistance = 5f }; obj56.Steps = list78; reference58 = obj56; - ref QuestSequence reference59 = ref span20[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list79)[0]; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621) { StopDistance = 7f }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span4 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB104_02965_Q1_000_000") @@ -185499,13 +222009,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list81; - num = 6; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span21 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference61 = ref span21[0]; + index = 6; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -185513,7 +222026,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024125u, new Vector3(775.6007f, 69.99993f, 639.4292f), 621) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024125u, new Vector3(775.6007f, 69.99993f, 639.4292f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -185526,15 +222041,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list83; reference61 = obj59; - ref QuestSequence reference62 = ref span21[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1024113u, new Vector3(754.26855f, 70f, 424.70435f), 621) { Fly = true @@ -185542,7 +222060,9 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB105_02966_Q1_000_000") @@ -185551,7 +222071,8 @@ public static class AssemblyQuestLoader reference63 = obj61; obj60.Steps = list84; reference62 = obj60; - ref QuestSequence reference64 = ref span21[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -185559,19 +222080,23 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); obj62.Steps = list86; reference64 = obj62; - ref QuestSequence reference65 = ref span21[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span22 = CollectionsMarshal.AsSpan(list87); - span22[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9216702f, -2.0000002f, -34.863174f), 738) + index2 = 5; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9216702f, -2.0000002f, -34.863174f), 738) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -185580,7 +222105,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span22[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9769177f, -1.3092512f, -36.29651f), 738) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9769177f, -1.3092512f, -36.29651f), 738) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -185589,19 +222115,23 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span22[2] = new QuestStep(EInteractionType.Interact, 2009058u, new Vector3(-2.8188858f, 0.16235979f, -38.626305f), 738) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009058u, new Vector3(-2.8188858f, 0.16235979f, -38.626305f), 738) { StopDistance = 4f, DelaySecondsAtStart = 3f }; - span22[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.01923807f, -2.0000002f, -35.31207f), 738) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.01923807f, -2.0000002f, -35.31207f), 738) { DisableNavmesh = true }; - span22[4] = new QuestStep(EInteractionType.Interact, 1024118u, new Vector3(24.612793f, -0.3670061f, 5.0201416f), 738); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024118u, new Vector3(24.612793f, -0.3670061f, 5.0201416f), 738); obj63.Steps = list87; reference65 = obj63; - ref QuestSequence reference66 = ref span21[4]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 4 @@ -185609,18 +222139,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); obj64.Steps = list88; reference66 = obj64; - ref QuestSequence reference67 = ref span21[5]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024119u, new Vector3(758.6632f, 70f, 446.31104f), 621); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024119u, new Vector3(758.6632f, 70f, 446.31104f), 621); obj65.Steps = list89; reference67 = obj65; questRoot11.QuestSequence = list82; @@ -185630,13 +222165,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "JerryWester"; questRoot12.Author = list90; - num = 7; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span23 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference68 = ref span23[0]; + index = 7; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -185644,7 +222182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024120u, new Vector3(757.68665f, 70f, 444.3275f), 621) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024120u, new Vector3(757.68665f, 70f, 444.3275f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -185657,24 +222197,28 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference68 = obj66; - ref QuestSequence reference69 = ref span23[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span24 = CollectionsMarshal.AsSpan(list93); - span24[0] = new QuestStep(EInteractionType.None, null, null, 131) + index2 = 3; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span24[1] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) { PickUpQuestId = new QuestId(434) }; - span24[2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -185692,7 +222236,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list93; reference69 = obj67; - ref QuestSequence reference70 = ref span23[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -185700,7 +222245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1024122u, new Vector3(57.968994f, 4f, -121.53815f), 130) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024122u, new Vector3(57.968994f, 4f, -121.53815f), 130) { AethernetShortcut = new AethernetShortcut { @@ -185710,15 +222257,18 @@ public static class AssemblyQuestLoader }; obj68.Steps = list94; reference70 = obj68; - ref QuestSequence reference71 = ref span23[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Interact, 1024123u, new Vector3(-132.9519f, 4.590753f, 238.7273f), 141) { Fly = true, @@ -185728,10 +222278,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span4 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDB106_02967_Q1_000_000"), @@ -185741,7 +222293,8 @@ public static class AssemblyQuestLoader reference72 = obj70; obj69.Steps = list95; reference71 = obj69; - ref QuestSequence reference73 = ref span23[4]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -185749,22 +222302,27 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1024124u, new Vector3(254.35254f, -6.26633f, -152.36133f), 141) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024124u, new Vector3(254.35254f, -6.26633f, -152.36133f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj71.Steps = list97; reference73 = obj71; - ref QuestSequence reference74 = ref span23[5]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -185775,7 +222333,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference74 = obj72; - ref QuestSequence reference75 = ref span23[6]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -185783,7 +222342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); obj73.Steps = list99; reference75 = obj73; questRoot12.QuestSequence = list91; @@ -185793,24 +222354,30 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "JerryWester"; questRoot13.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span25 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference76 = ref span25[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); obj74.Steps = list102; reference76 = obj74; - ref QuestSequence reference77 = ref span25[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -185818,7 +222385,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1024040u, new Vector3(-201.06812f, 18f, 78.62964f), 130) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024040u, new Vector3(-201.06812f, 18f, 78.62964f), 130) { AethernetShortcut = new AethernetShortcut { @@ -185828,15 +222397,18 @@ public static class AssemblyQuestLoader }; obj75.Steps = list103; reference77 = obj75; - ref QuestSequence reference78 = ref span25[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1024041u, new Vector3(-22.781738f, 83.19999f, -7.5532227f), 130) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024041u, new Vector3(-22.781738f, 83.19999f, -7.5532227f), 130) { AethernetShortcut = new AethernetShortcut { @@ -185846,7 +222418,8 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference78 = obj76; - ref QuestSequence reference79 = ref span25[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -185854,24 +222427,28 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span26 = CollectionsMarshal.AsSpan(list105); - span26[0] = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { TargetTerritoryId = (ushort)144 }; - span26[1] = new QuestStep(EInteractionType.Interact, 1024042u, new Vector3(-51.682373f, 0.04428002f, 53.94055f), 144); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024042u, new Vector3(-51.682373f, 0.04428002f, 53.94055f), 144); obj77.Steps = list105; reference79 = obj77; - ref QuestSequence reference80 = ref span25[4]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span27 = CollectionsMarshal.AsSpan(list106); - span27[0] = new QuestStep(EInteractionType.None, null, null, 144) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -185879,7 +222456,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerWonderSquareWest } }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144); obj78.Steps = list106; reference80 = obj78; questRoot13.QuestSequence = list101; @@ -185889,13 +222467,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list107; - num = 5; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span28 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference81 = ref span28[0]; + index = 5; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -185903,7 +222484,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -185916,16 +222499,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference82 = ref span28[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span29 = CollectionsMarshal.AsSpan(list110); - span29[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -185935,10 +222520,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span29[1] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj80.Steps = list110; reference82 = obj80; - ref QuestSequence reference83 = ref span28[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -185946,27 +222533,33 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1024044u, new Vector3(-110.36853f, 4f, -114.00018f), 130) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024044u, new Vector3(-110.36853f, 4f, -114.00018f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference84 = ref span28[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; obj82.Steps = list112; reference84 = obj82; - ref QuestSequence reference85 = ref span28[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -185974,7 +222567,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; @@ -185987,27 +222582,33 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list114; - num = 8; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span30 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span30[0]; + index = 8; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; obj84.Steps = list116; reference86 = obj84; - ref QuestSequence reference87 = ref span30[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -186015,28 +222616,34 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1024046u, new Vector3(592.70605f, 80.00001f, 618.6465f), 621) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024046u, new Vector3(592.70605f, 80.00001f, 618.6465f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj85.Steps = list117; reference87 = obj85; - ref QuestSequence reference88 = ref span30[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj86.Steps = list118; reference88 = obj86; - ref QuestSequence reference89 = ref span30[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -186044,28 +222651,34 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Snipe, 1024052u, new Vector3(-238.54431f, 0.9244179f, 196.55139f), 621) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 1024052u, new Vector3(-238.54431f, 0.9244179f, 196.55139f), 621) { Fly = true, Comment = "Aim at jaw" }; obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span30[4]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1024340u, new Vector3(-208.20941f, -0.3f, 207.6294f), 621) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024340u, new Vector3(-208.20941f, -0.3f, 207.6294f), 621) { StopDistance = 5f }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span30[5]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 @@ -186073,28 +222686,34 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Snipe, 1024053u, new Vector3(8.590759f, 5.3881354f, 282.7954f), 621) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 1024053u, new Vector3(8.590759f, 5.3881354f, 282.7954f), 621) { Fly = true, Comment = "Aim at nearest eye" }; obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span30[6]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1024341u, new Vector3(-3.5248413f, 3.1742485f, 249.34766f), 621) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024341u, new Vector3(-3.5248413f, 3.1742485f, 249.34766f), 621) { StopDistance = 6f }; obj90.Steps = list122; reference92 = obj90; - ref QuestSequence reference93 = ref span30[7]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -186102,7 +222721,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) { Fly = true }; @@ -186115,27 +222736,33 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "JerryWester"; questRoot16.Author = list124; - num = 4; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span31 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference94 = ref span31[0]; + index = 4; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024051u, new Vector3(-285.29797f, 11.183233f, 187.02979f), 621) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024051u, new Vector3(-285.29797f, 11.183233f, 187.02979f), 621) { StopDistance = 5f }; obj92.Steps = list126; reference94 = obj92; - ref QuestSequence reference95 = ref span31[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -186143,33 +222770,39 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span32 = CollectionsMarshal.AsSpan(list127); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.8298f, 70f, 580.3701f), 621) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.8298f, 70f, 580.3701f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - span32[1] = new QuestStep(EInteractionType.Interact, 2009047u, new Vector3(526.8176f, 69.962524f, 577.3861f), 621) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009047u, new Vector3(526.8176f, 69.962524f, 577.3861f), 621) { StopDistance = 4f }; obj93.Steps = list127; reference95 = obj93; - ref QuestSequence reference96 = ref span31[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1024055u, new Vector3(525.0781f, 70f, 574.6699f), 621) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024055u, new Vector3(525.0781f, 70f, 574.6699f), 621) { StopDistance = 7f }; obj94.Steps = list128; reference96 = obj94; - ref QuestSequence reference97 = ref span31[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -186177,8 +222810,9 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span33 = CollectionsMarshal.AsSpan(list129); - span33[0] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) { TargetTerritoryId = (ushort)621, SkipConditions = new SkipConditions @@ -186189,7 +222823,8 @@ public static class AssemblyQuestLoader } } }; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1024057u, new Vector3(340.23022f, 74.00002f, 70.66455f), 621) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024057u, new Vector3(340.23022f, 74.00002f, 70.66455f), 621) { Fly = true }; @@ -186202,21 +222837,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "JerryWester"; questRoot17.Author = list130; - num = 9; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span34 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference98 = ref span34[0]; + index = 9; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list132)[0]; + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj97 = new QuestStep(EInteractionType.AcceptQuest, 1024063u, new Vector3(339.62f, 74.00002f, 75.48633f), 621) { StopDistance = 5f @@ -186224,7 +222864,9 @@ public static class AssemblyQuestLoader num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDB111_02972_Q1_000_000"), @@ -186234,7 +222876,8 @@ public static class AssemblyQuestLoader reference99 = obj97; obj96.Steps = list132; reference98 = obj96; - ref QuestSequence reference100 = ref span34[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -186242,29 +222885,36 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2009048u, new Vector3(593.56055f, 79.972534f, 621.9425f), 621) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009048u, new Vector3(593.56055f, 79.972534f, 621.9425f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj98.Steps = list134; reference100 = obj98; - ref QuestSequence reference101 = ref span34[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list135)[0]; + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span4 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB111_02972_Q2_000_000") @@ -186273,7 +222923,8 @@ public static class AssemblyQuestLoader reference102 = obj100; obj99.Steps = list135; reference101 = obj99; - ref QuestSequence reference103 = ref span34[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 3 @@ -186281,7 +222932,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024066u, new Vector3(245.07507f, 122f, -349.0807f), 737) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024066u, new Vector3(245.07507f, 122f, -349.0807f), 737) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -186291,22 +222944,27 @@ public static class AssemblyQuestLoader }; obj101.Steps = list137; reference103 = obj101; - span34[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference104 = ref span34[5]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1024206u, new Vector3(251.69751f, 122f, -345.5406f), 737); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024206u, new Vector3(251.69751f, 122f, -345.5406f), 737); obj102.Steps = list138; reference104 = obj102; - ref QuestSequence reference105 = ref span34[6]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 6 @@ -186314,27 +222972,33 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) { StopDistance = 6f }; obj103.Steps = list139; reference105 = obj103; - ref QuestSequence reference106 = ref span34[7]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) { StopDistance = 6f }; obj104.Steps = list140; reference106 = obj104; - ref QuestSequence reference107 = ref span34[8]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -186342,7 +223006,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -186360,24 +223026,30 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list142; - num = 7; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span35 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference108 = ref span35[0]; + index = 7; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj106.Steps = list144; reference108 = obj106; - ref QuestSequence reference109 = ref span35[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -186385,7 +223057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list145)[0]; + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1024231u, new Vector3(463.40125f, 56.86197f, -157.94617f), 614) { Fly = true, @@ -186394,7 +223068,9 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN002_02974_Q1_000_000"), @@ -186404,22 +223080,26 @@ public static class AssemblyQuestLoader reference110 = obj108; obj107.Steps = list145; reference109 = obj107; - ref QuestSequence reference111 = ref span35[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Snipe, 2009169u, new Vector3(145.922f, 26.352295f, 456.9314f), 614) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2009169u, new Vector3(145.922f, 26.352295f, 456.9314f), 614) { Fly = true, Comment = "Snipe Namazu" }; obj109.Steps = list147; reference111 = obj109; - ref QuestSequence reference112 = ref span35[3]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 3 @@ -186427,28 +223107,34 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Snipe, 2009170u, new Vector3(205.31006f, 14.297607f, 712.76404f), 614) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2009170u, new Vector3(205.31006f, 14.297607f, 712.76404f), 614) { Fly = true, Comment = "Snipe Namazu" }; obj110.Steps = list148; reference112 = obj110; - ref QuestSequence reference113 = ref span35[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1024238u, new Vector3(302.72363f, 2.8619597f, 731.44116f), 614) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024238u, new Vector3(302.72363f, 2.8619597f, 731.44116f), 614) { Fly = true }; obj111.Steps = list149; reference113 = obj111; - ref QuestSequence reference114 = ref span35[5]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 5 @@ -186456,30 +223142,37 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1024244u, new Vector3(181.10925f, 6.1105657f, 553.2462f), 614) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024244u, new Vector3(181.10925f, 6.1105657f, 553.2462f), 614) { Fly = true }; obj112.Steps = list150; reference114 = obj112; - ref QuestSequence reference115 = ref span35[6]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference116 = ref span3[num2]; QuestStep obj114 = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span4 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN002_02974_Q3_000_000"), @@ -186496,13 +223189,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list153; - num = 8; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span36 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference117 = ref span36[0]; + index = 8; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -186510,25 +223206,31 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj115.Steps = list155; reference117 = obj115; - ref QuestSequence reference118 = ref span36[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj116.Steps = list156; reference118 = obj116; - ref QuestSequence reference119 = ref span36[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -186536,30 +223238,36 @@ public static class AssemblyQuestLoader num2 = 3; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span37 = CollectionsMarshal.AsSpan(list157); - span37[0] = new QuestStep(EInteractionType.Interact, 1024250u, new Vector3(561.21155f, -19.505632f, 365.28564f), 622) + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024250u, new Vector3(561.21155f, -19.505632f, 365.28564f), 622) { Fly = true }; - span37[1] = new QuestStep(EInteractionType.Interact, 1024251u, new Vector3(553.6124f, -19.505638f, 314.7478f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024251u, new Vector3(553.6124f, -19.505638f, 314.7478f), 622) { Fly = true }; - span37[2] = new QuestStep(EInteractionType.Interact, 1024252u, new Vector3(571.2213f, -19.505638f, 296.46753f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024252u, new Vector3(571.2213f, -19.505638f, 296.46753f), 622) { Fly = true }; obj117.Steps = list157; reference119 = obj117; - ref QuestSequence reference120 = ref span36[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference121 = ref span3[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) { Fly = true @@ -186567,7 +223275,9 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q1_000_000"), @@ -186577,7 +223287,8 @@ public static class AssemblyQuestLoader reference121 = obj119; obj118.Steps = list158; reference120 = obj118; - ref QuestSequence reference122 = ref span36[4]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 4 @@ -186585,15 +223296,19 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list160)[0]; + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1024253u, new Vector3(355.30627f, -13.019889f, 471.1222f), 622) { Fly = true }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new DialogueChoice + index3 = 1; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + span4 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q2_000_000"), @@ -186603,15 +223318,18 @@ public static class AssemblyQuestLoader reference123 = obj121; obj120.Steps = list160; reference122 = obj120; - ref QuestSequence reference124 = ref span36[5]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list162)[0]; + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference125 = ref span3[num2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(474.09186f, -25.232485f, 550.5908f), 622) { Fly = true, @@ -186620,15 +223338,19 @@ public static class AssemblyQuestLoader num3 = 3; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span38 = CollectionsMarshal.AsSpan(list163); - span38[0] = 8251u; - span38[1] = 8252u; - span38[2] = 8253u; + span5 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span5[index3] = 8251u; + index3++; + span5[index3] = 8252u; + index3++; + span5[index3] = 8253u; obj123.KillEnemyDataIds = list163; reference125 = obj123; obj122.Steps = list162; reference124 = obj122; - ref QuestSequence reference126 = ref span36[6]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 @@ -186636,30 +223358,37 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1024256u, new Vector3(355.79456f, -12.957703f, 470.29822f), 622) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024256u, new Vector3(355.79456f, -12.957703f, 470.29822f), 622) { Fly = true }; obj124.Steps = list164; reference126 = obj124; - ref QuestSequence reference127 = ref span36[7]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list165)[0]; + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + ref QuestStep reference128 = ref span3[num2]; QuestStep obj126 = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + span4 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q3_000_000"), @@ -186676,13 +223405,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "plogon_enjoyer"; questRoot20.Author = list167; - num = 6; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span39 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference129 = ref span39[0]; + index = 6; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -186690,18 +223422,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj127.Steps = list169; reference129 = obj127; - ref QuestSequence reference130 = ref span39[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1024260u, new Vector3(-131.9143f, -4.999999f, 181.75012f), 628) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024260u, new Vector3(-131.9143f, -4.999999f, 181.75012f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -186712,7 +223449,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list170; reference130 = obj128; - ref QuestSequence reference131 = ref span39[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -186720,7 +223458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list171)[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference132 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(246.58658f, 6.193447f, 651.3461f), 613) { Fly = true, @@ -186734,25 +223474,31 @@ public static class AssemblyQuestLoader num3 = 2; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span40 = CollectionsMarshal.AsSpan(list172); - span40[0] = 8244u; - span40[1] = 8246u; + span5 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span5[index3] = 8244u; + index3++; + span5[index3] = 8246u; obj130.KillEnemyDataIds = list172; reference132 = obj130; obj129.Steps = list171; reference131 = obj129; - ref QuestSequence reference133 = ref span39[3]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1024264u, new Vector3(246.90613f, 6.054259f, 649.2561f), 613); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024264u, new Vector3(246.90613f, 6.054259f, 649.2561f), 613); obj131.Steps = list173; reference133 = obj131; - ref QuestSequence reference134 = ref span39[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -186760,7 +223506,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1024267u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024267u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -186771,15 +223519,18 @@ public static class AssemblyQuestLoader }; obj132.Steps = list174; reference134 = obj132; - ref QuestSequence reference135 = ref span39[5]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu @@ -186793,13 +223544,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "Theo"; questRoot21.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span41 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference136 = ref span41[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -186807,21 +223561,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj134.Steps = list178; reference136 = obj134; - ref QuestSequence reference137 = ref span41[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1024269u, new Vector3(330.64758f, -116.86714f, -202.47198f), 613); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024269u, new Vector3(330.64758f, -116.86714f, -202.47198f), 613); obj135.Steps = list179; reference137 = obj135; - ref QuestSequence reference138 = ref span41[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -186829,19 +223589,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2009174u, new Vector3(321.9806f, -120.042725f, -250.4159f), 613); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009174u, new Vector3(321.9806f, -120.042725f, -250.4159f), 613); obj136.Steps = list180; reference138 = obj136; - ref QuestSequence reference139 = ref span41[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span42 = CollectionsMarshal.AsSpan(list181); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false, @@ -186853,13 +223617,15 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024270u, new Vector3(-666.89557f, -33.707214f, 268.17725f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024270u, new Vector3(-666.89557f, -33.707214f, 268.17725f), 613) { Fly = true }; obj137.Steps = list181; reference139 = obj137; - ref QuestSequence reference140 = ref span41[4]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -186867,7 +223633,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj138.Steps = list182; reference140 = obj138; questRoot21.QuestSequence = list177; @@ -186877,24 +223645,30 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "Theo"; questRoot22.Author = list183; - num = 5; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span43 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference141 = ref span43[0]; + index = 5; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024220u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024220u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj139.Steps = list185; reference141 = obj139; - ref QuestSequence reference142 = ref span43[1]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -186902,7 +223676,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list186)[0]; + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + ref QuestStep reference143 = ref span3[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1024423u, new Vector3(-272.57196f, 17.31996f, 490.01294f), 614) { Fly = true, @@ -186915,10 +223691,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new DialogueChoice + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + span4 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN006_02978_Q1_000_000"), @@ -186928,15 +223706,18 @@ public static class AssemblyQuestLoader reference143 = obj141; obj140.Steps = list186; reference142 = obj140; - ref QuestSequence reference144 = ref span43[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1024425u, new Vector3(533.8063f, -19.505651f, 316.15173f), 622) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024425u, new Vector3(533.8063f, -19.505651f, 316.15173f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -186949,7 +223730,8 @@ public static class AssemblyQuestLoader }; obj142.Steps = list188; reference144 = obj142; - ref QuestSequence reference145 = ref span43[3]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 @@ -186957,7 +223739,9 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1024428u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024428u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -186975,15 +223759,18 @@ public static class AssemblyQuestLoader }; obj143.Steps = list189; reference145 = obj143; - ref QuestSequence reference146 = ref span43[4]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -186996,13 +223783,16 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "plogon_enjoyer"; questRoot23.Author = list191; - num = 4; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span44 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference147 = ref span44[0]; + index = 4; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -187010,24 +223800,30 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj145.Steps = list193; reference147 = obj145; - ref QuestSequence reference148 = ref span44[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1024538u, new Vector3(703.7003f, 0.73878324f, -26.077698f), 613) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024538u, new Vector3(703.7003f, 0.73878324f, -26.077698f), 613) { Fly = true }; obj146.Steps = list194; reference148 = obj146; - ref QuestSequence reference149 = ref span44[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -187035,8 +223831,9 @@ public static class AssemblyQuestLoader num2 = 6; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span45 = CollectionsMarshal.AsSpan(list195); - ref QuestStep reference150 = ref span45[0]; + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference150 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2009241u, new Vector3(532.6465f, 0.99176025f, -201.2818f), 613) { Fly = true, @@ -187045,28 +223842,39 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = 8234u; + span5 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span5[index3] = 8234u; obj148.KillEnemyDataIds = list196; - num3 = 6; - List> list197 = new List>(num3); - CollectionsMarshal.SetCount(list197, num3); - Span> span46 = CollectionsMarshal.AsSpan(list197); - span46[0] = null; - span46[1] = null; - ref List reference151 = ref span46[2]; + index3 = 6; + List> list197 = new List>(index3); + CollectionsMarshal.SetCount(list197, index3); + Span> span8 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference151 = ref span8[num3]; int num4 = 2; List list198 = new List(num4); CollectionsMarshal.SetCount(list198, num4); - Span span47 = CollectionsMarshal.AsSpan(list198); - span47[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span47[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list198); + int num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference151 = list198; - span46[3] = null; - span46[4] = null; - span46[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj148.RequiredQuestVariables = list197; reference150 = obj148; - ref QuestStep reference152 = ref span45[1]; + index2++; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.UseItem, 8234u, new Vector3(534.78296f, 1f, -193.164f), 613) { ItemId = 2002398u @@ -187074,77 +223882,106 @@ public static class AssemblyQuestLoader num3 = 6; List> list199 = new List>(num3); CollectionsMarshal.SetCount(list199, num3); - Span> span48 = CollectionsMarshal.AsSpan(list199); - span48[0] = null; - span48[1] = null; - ref List reference153 = ref span48[2]; - num4 = 2; - List list200 = new List(num4); - CollectionsMarshal.SetCount(list200, num4); - Span span49 = CollectionsMarshal.AsSpan(list200); - span49[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference153 = ref span8[index3]; + num5 = 2; + List list200 = new List(num5); + CollectionsMarshal.SetCount(list200, num5); + span7 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference153 = list200; - span48[3] = null; - span48[4] = null; - span48[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj149.RequiredQuestVariables = list199; reference152 = obj149; - ref QuestStep reference154 = ref span45[2]; + index2++; + ref QuestStep reference154 = ref span3[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2009240u, new Vector3(620.2334f, 0.10675049f, -315.9076f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = 8233u; + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span5 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span5[num3] = 8233u; obj150.KillEnemyDataIds = list201; num3 = 6; List> list202 = new List>(num3); CollectionsMarshal.SetCount(list202, num3); - Span> span50 = CollectionsMarshal.AsSpan(list202); - span50[0] = null; - span50[1] = null; - ref List reference155 = ref span50[2]; + span8 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference155 = ref span8[index3]; num4 = 2; List list203 = new List(num4); CollectionsMarshal.SetCount(list203, num4); - Span span51 = CollectionsMarshal.AsSpan(list203); - span51[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span51[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list203); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference155 = list203; - span50[3] = null; - span50[4] = null; - span50[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj150.RequiredQuestVariables = list202; reference154 = obj150; - ref QuestStep reference156 = ref span45[3]; + index2++; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj151 = new QuestStep(EInteractionType.UseItem, 8233u, new Vector3(616.9984f, 0.04129504f, -318.1964f), 613) { ItemId = 2002398u }; - num3 = 6; - List> list204 = new List>(num3); - CollectionsMarshal.SetCount(list204, num3); - Span> span52 = CollectionsMarshal.AsSpan(list204); - span52[0] = null; - span52[1] = null; - ref List reference157 = ref span52[2]; - num4 = 2; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span53 = CollectionsMarshal.AsSpan(list205); - span53[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span53[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list204 = new List>(index3); + CollectionsMarshal.SetCount(list204, index3); + span8 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference157 = ref span8[num3]; + num5 = 2; + List list205 = new List(num5); + CollectionsMarshal.SetCount(list205, num5); + span7 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference157 = list205; - span52[3] = null; - span52[4] = null; - span52[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj151.RequiredQuestVariables = list204; reference156 = obj151; - ref QuestStep reference158 = ref span45[4]; + index2++; + ref QuestStep reference158 = ref span3[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 2009239u, new Vector3(762.9358f, 0.44250488f, -286.7323f), 613) { Fly = true, @@ -187153,28 +223990,39 @@ public static class AssemblyQuestLoader num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 8232u; + span5 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span5[index3] = 8232u; obj152.KillEnemyDataIds = list206; - num3 = 6; - List> list207 = new List>(num3); - CollectionsMarshal.SetCount(list207, num3); - Span> span54 = CollectionsMarshal.AsSpan(list207); - span54[0] = null; - span54[1] = null; - ref List reference159 = ref span54[2]; + index3 = 6; + List> list207 = new List>(index3); + CollectionsMarshal.SetCount(list207, index3); + span8 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference159 = ref span8[num3]; num4 = 2; List list208 = new List(num4); CollectionsMarshal.SetCount(list208, num4); - Span span55 = CollectionsMarshal.AsSpan(list208); - span55[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span55[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list208); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference159 = list208; - span54[3] = null; - span54[4] = null; - span54[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj152.RequiredQuestVariables = list207; reference158 = obj152; - ref QuestStep reference160 = ref span45[5]; + index2++; + ref QuestStep reference160 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.UseItem, 8232u, new Vector3(760.98267f, 0.36481446f, -290.0893f), 613) { ItemId = 2002398u @@ -187182,39 +224030,50 @@ public static class AssemblyQuestLoader num3 = 6; List> list209 = new List>(num3); CollectionsMarshal.SetCount(list209, num3); - Span> span56 = CollectionsMarshal.AsSpan(list209); - span56[0] = null; - span56[1] = null; - ref List reference161 = ref span56[2]; - num4 = 2; - List list210 = new List(num4); - CollectionsMarshal.SetCount(list210, num4); - Span span57 = CollectionsMarshal.AsSpan(list210); - span57[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span57[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference161 = ref span8[index3]; + num5 = 2; + List list210 = new List(num5); + CollectionsMarshal.SetCount(list210, num5); + span7 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference161 = list210; - span56[3] = null; - span56[4] = null; - span56[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj153.RequiredQuestVariables = list209; reference160 = obj153; obj147.Steps = list195; reference149 = obj147; - ref QuestSequence reference162 = ref span44[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span58 = CollectionsMarshal.AsSpan(list211); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj154.Steps = list211; reference162 = obj154; questRoot23.QuestSequence = list192; @@ -187224,13 +224083,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list212); + index = 0; + span[index] = "plogon_enjoyer"; questRoot24.Author = list212; - num = 4; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span59 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference163 = ref span59[0]; + index = 4; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + span2 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -187238,52 +224100,70 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj155.Steps = list214; reference163 = obj155; - ref QuestSequence reference164 = ref span59[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span60 = CollectionsMarshal.AsSpan(list215); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + index2 = 9; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference165 = ref span60[1]; + num2++; + ref QuestStep reference165 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2009094u, new Vector3(211.078f, -135.14917f, 56.168457f), 613) { Fly = true }; - num3 = 6; - List> list216 = new List>(num3); - CollectionsMarshal.SetCount(list216, num3); - Span> span61 = CollectionsMarshal.AsSpan(list216); - span61[0] = null; - ref List reference166 = ref span61[1]; + index3 = 6; + List> list216 = new List>(index3); + CollectionsMarshal.SetCount(list216, index3); + span8 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference166 = ref span8[num3]; num4 = 6; List list217 = new List(num4); CollectionsMarshal.SetCount(list217, num4); - Span span62 = CollectionsMarshal.AsSpan(list217); - span62[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span62[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span62[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); - span62[3] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); - span62[4] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); - span62[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list217); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); reference166 = list217; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj157.RequiredQuestVariables = list216; reference165 = obj157; - ref QuestStep reference167 = ref span60[2]; + num2++; + ref QuestStep reference167 = ref span3[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2009095u, new Vector3(163.0426f, -148.05829f, 72.28198f), 613) { Fly = true @@ -187291,48 +224171,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list218 = new List>(num3); CollectionsMarshal.SetCount(list218, num3); - Span> span63 = CollectionsMarshal.AsSpan(list218); - span63[0] = null; - ref List reference168 = ref span63[1]; - num4 = 3; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span64 = CollectionsMarshal.AsSpan(list219); - span64[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span64[1] = new QuestWorkValue(0, (byte)9, EQuestWorkMode.Bitwise); - span64[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference168 = ref span8[index3]; + num5 = 3; + List list219 = new List(num5); + CollectionsMarshal.SetCount(list219, num5); + span7 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue(0, (byte)9, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); reference168 = list219; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj158.RequiredQuestVariables = list218; reference167 = obj158; - ref QuestStep reference169 = ref span60[3]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 2009096u, new Vector3(134.23352f, -161.21161f, 70.450806f), 613) { Fly = true }; - num3 = 6; - List> list220 = new List>(num3); - CollectionsMarshal.SetCount(list220, num3); - Span> span65 = CollectionsMarshal.AsSpan(list220); - span65[0] = null; - ref List reference170 = ref span65[1]; + index3 = 6; + List> list220 = new List>(index3); + CollectionsMarshal.SetCount(list220, index3); + span8 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference170 = ref span8[num3]; num4 = 2; List list221 = new List(num4); CollectionsMarshal.SetCount(list221, num4); - Span span66 = CollectionsMarshal.AsSpan(list221); - span66[0] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span66[1] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list221); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); reference170 = list221; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj159.RequiredQuestVariables = list220; reference169 = obj159; - ref QuestStep reference171 = ref span60[4]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2009080u, new Vector3(196.27673f, -146.685f, 40.45166f), 613) { Fly = true @@ -187340,48 +224239,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list222 = new List>(num3); CollectionsMarshal.SetCount(list222, num3); - Span> span67 = CollectionsMarshal.AsSpan(list222); - span67[0] = null; - ref List reference172 = ref span67[1]; - num4 = 2; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span68 = CollectionsMarshal.AsSpan(list223); - span68[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span68[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference172 = ref span8[index3]; + num5 = 2; + List list223 = new List(num5); + CollectionsMarshal.SetCount(list223, num5); + span7 = CollectionsMarshal.AsSpan(list223); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference172 = list223; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj160.RequiredQuestVariables = list222; reference171 = obj160; - ref QuestStep reference173 = ref span60[5]; + num2++; + ref QuestStep reference173 = ref span3[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 2009081u, new Vector3(151.56775f, -168.1087f, 49.454468f), 613) { Fly = true }; - num3 = 6; - List> list224 = new List>(num3); - CollectionsMarshal.SetCount(list224, num3); - Span> span69 = CollectionsMarshal.AsSpan(list224); - span69[0] = null; - ref List reference174 = ref span69[1]; + index3 = 6; + List> list224 = new List>(index3); + CollectionsMarshal.SetCount(list224, index3); + span8 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference174 = ref span8[num3]; num4 = 3; List list225 = new List(num4); CollectionsMarshal.SetCount(list225, num4); - Span span70 = CollectionsMarshal.AsSpan(list225); - span70[0] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span70[1] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span70[2] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list225); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); reference174 = list225; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj161.RequiredQuestVariables = list224; reference173 = obj161; - ref QuestStep reference175 = ref span60[6]; + num2++; + ref QuestStep reference175 = ref span3[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 2009082u, new Vector3(141.86316f, -170.30597f, 96.75745f), 613) { Fly = true @@ -187389,52 +224307,75 @@ public static class AssemblyQuestLoader num3 = 6; List> list226 = new List>(num3); CollectionsMarshal.SetCount(list226, num3); - Span> span71 = CollectionsMarshal.AsSpan(list226); - span71[0] = null; - ref List reference176 = ref span71[1]; - num4 = 5; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span72 = CollectionsMarshal.AsSpan(list227); - span72[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span72[1] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span72[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span72[3] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span72[4] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference176 = ref span8[index3]; + num5 = 5; + List list227 = new List(num5); + CollectionsMarshal.SetCount(list227, num5); + span7 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); reference176 = list227; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj162.RequiredQuestVariables = list226; reference175 = obj162; - ref QuestStep reference177 = ref span60[7]; + num2++; + ref QuestStep reference177 = ref span3[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 2009083u, new Vector3(165.08728f, -143.54169f, 116.227905f), 613) { Fly = true }; - num3 = 6; - List> list228 = new List>(num3); - CollectionsMarshal.SetCount(list228, num3); - Span> span73 = CollectionsMarshal.AsSpan(list228); - span73[0] = null; - ref List reference178 = ref span73[1]; + index3 = 6; + List> list228 = new List>(index3); + CollectionsMarshal.SetCount(list228, index3); + span8 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference178 = ref span8[num3]; num4 = 4; List list229 = new List(num4); CollectionsMarshal.SetCount(list229, num4); - Span span74 = CollectionsMarshal.AsSpan(list229); - span74[0] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span74[1] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span74[2] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span74[3] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list229); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); reference178 = list229; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj163.RequiredQuestVariables = list228; reference177 = obj163; - ref QuestStep reference179 = ref span60[8]; + num2++; + ref QuestStep reference179 = ref span3[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2009084u, new Vector3(173.81543f, -167.3457f, 114.61047f), 613) { Fly = true @@ -187442,25 +224383,34 @@ public static class AssemblyQuestLoader num3 = 6; List> list230 = new List>(num3); CollectionsMarshal.SetCount(list230, num3); - Span> span75 = CollectionsMarshal.AsSpan(list230); - span75[0] = null; - ref List reference180 = ref span75[1]; - num4 = 2; - List list231 = new List(num4); - CollectionsMarshal.SetCount(list231, num4); - Span span76 = CollectionsMarshal.AsSpan(list231); - span76[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span76[1] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference180 = ref span8[index3]; + num5 = 2; + List list231 = new List(num5); + CollectionsMarshal.SetCount(list231, num5); + span7 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); reference180 = list231; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj164.RequiredQuestVariables = list230; reference179 = obj164; obj156.Steps = list215; reference164 = obj156; - ref QuestSequence reference181 = ref span59[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -187468,7 +224418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1024460u, new Vector3(873.9298f, 1.1792068f, 851.9568f), 613) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024460u, new Vector3(873.9298f, 1.1792068f, 851.9568f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -187480,21 +224432,24 @@ public static class AssemblyQuestLoader }; obj165.Steps = list232; reference181 = obj165; - ref QuestSequence reference182 = ref span59[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span77 = CollectionsMarshal.AsSpan(list233); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj166.Steps = list233; reference182 = obj166; questRoot24.QuestSequence = list213; @@ -187504,13 +224459,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "plogon_enjoyer"; questRoot25.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span78 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference183 = ref span78[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -187518,35 +224476,42 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj167.Steps = list236; reference183 = obj167; - ref QuestSequence reference184 = ref span78[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - Span span79 = CollectionsMarshal.AsSpan(list237); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60394f, -83.29468f, -227.42934f), 613) + index2 = 3; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60394f, -83.29468f, -227.42934f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-3.8817294f, -146.96666f, -155.70833f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-3.8817294f, -146.96666f, -155.70833f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span79[2] = new QuestStep(EInteractionType.Interact, 1024294u, new Vector3(-24.765442f, -190.38937f, -137.10236f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024294u, new Vector3(-24.765442f, -190.38937f, -137.10236f), 613) { Fly = true }; obj168.Steps = list237; reference184 = obj168; - ref QuestSequence reference185 = ref span78[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -187554,7 +224519,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(367.17773f, -119.94679f, -292.3781f), 613) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(367.17773f, -119.94679f, -292.3781f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -187562,21 +224529,25 @@ public static class AssemblyQuestLoader }; obj169.Steps = list238; reference185 = obj169; - ref QuestSequence reference186 = ref span78[3]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Emote, 2009085u, new Vector3(367.18176f, -119.93892f, -291.77762f), 613) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 2009085u, new Vector3(367.18176f, -119.93892f, -291.77762f), 613) { Emote = EEmote.Pray }; obj170.Steps = list239; reference186 = obj170; - ref QuestSequence reference187 = ref span78[4]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -187584,12 +224555,14 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span80 = CollectionsMarshal.AsSpan(list240); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj171.Steps = list240; reference187 = obj171; questRoot25.QuestSequence = list235; @@ -187599,24 +224572,30 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "plogon_enjoyer"; questRoot26.Author = list241; - num = 4; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span81 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference188 = ref span81[0]; + index = 4; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj172.Steps = list243; reference188 = obj172; - ref QuestSequence reference189 = ref span81[1]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -187624,52 +224603,67 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true }; obj173.Steps = list244; reference189 = obj173; - ref QuestSequence reference190 = ref span81[2]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span82 = CollectionsMarshal.AsSpan(list245); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60294f, -83.18693f, -227.16872f), 613) + index2 = 6; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60294f, -83.18693f, -227.16872f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference191 = ref span82[1]; + num2++; + ref QuestStep reference191 = ref span3[num2]; QuestStep obj175 = new QuestStep(EInteractionType.Action, 2009233u, new Vector3(81.19324f, -197.77222f, -266.8651f), 613) { Action = EAction.Inhale }; - num3 = 6; - List> list246 = new List>(num3); - CollectionsMarshal.SetCount(list246, num3); - Span> span83 = CollectionsMarshal.AsSpan(list246); - span83[0] = null; - span83[1] = null; - span83[2] = null; - ref List reference192 = ref span83[3]; + index3 = 6; + List> list246 = new List>(index3); + CollectionsMarshal.SetCount(list246, index3); + span8 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference192 = ref span8[num3]; num4 = 3; List list247 = new List(num4); CollectionsMarshal.SetCount(list247, num4); - Span span84 = CollectionsMarshal.AsSpan(list247); - span84[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span84[1] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span84[2] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list247); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference192 = list247; - span83[4] = null; - span83[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj175.RequiredQuestVariables = list246; reference191 = obj175; - ref QuestStep reference193 = ref span82[2]; + num2++; + ref QuestStep reference193 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Action, 2009234u, new Vector3(195.05603f, -183.30664f, -346.6087f), 613) { Action = EAction.Inhale @@ -187677,50 +224671,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list248 = new List>(num3); CollectionsMarshal.SetCount(list248, num3); - Span> span85 = CollectionsMarshal.AsSpan(list248); - span85[0] = null; - span85[1] = null; - span85[2] = null; - ref List reference194 = ref span85[3]; - num4 = 4; - List list249 = new List(num4); - CollectionsMarshal.SetCount(list249, num4); - Span span86 = CollectionsMarshal.AsSpan(list249); - span86[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span86[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span86[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span86[3] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference194 = ref span8[index3]; + num5 = 4; + List list249 = new List(num5); + CollectionsMarshal.SetCount(list249, num5); + span7 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference194 = list249; - span85[4] = null; - span85[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj176.RequiredQuestVariables = list248; reference193 = obj176; - ref QuestStep reference195 = ref span82[3]; + num2++; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Action, 2009235u, new Vector3(50.980347f, -139.42175f, -280.96442f), 613) { Action = EAction.Inhale }; - num3 = 6; - List> list250 = new List>(num3); - CollectionsMarshal.SetCount(list250, num3); - Span> span87 = CollectionsMarshal.AsSpan(list250); - span87[0] = null; - span87[1] = null; - span87[2] = null; - ref List reference196 = ref span87[3]; + index3 = 6; + List> list250 = new List>(index3); + CollectionsMarshal.SetCount(list250, index3); + span8 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference196 = ref span8[num3]; num4 = 3; List list251 = new List(num4); CollectionsMarshal.SetCount(list251, num4); - Span span88 = CollectionsMarshal.AsSpan(list251); - span88[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span88[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span88[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list251); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); reference196 = list251; - span87[4] = null; - span87[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj177.RequiredQuestVariables = list250; reference195 = obj177; - ref QuestStep reference197 = ref span82[4]; + num2++; + ref QuestStep reference197 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Action, 2009236u, new Vector3(192.0653f, -172.80847f, -247.63867f), 613) { Action = EAction.Inhale @@ -187728,53 +224743,75 @@ public static class AssemblyQuestLoader num3 = 6; List> list252 = new List>(num3); CollectionsMarshal.SetCount(list252, num3); - Span> span89 = CollectionsMarshal.AsSpan(list252); - span89[0] = null; - span89[1] = null; - span89[2] = null; - ref List reference198 = ref span89[3]; - num4 = 4; - List list253 = new List(num4); - CollectionsMarshal.SetCount(list253, num4); - Span span90 = CollectionsMarshal.AsSpan(list253); - span90[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span90[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span90[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference198 = ref span8[index3]; + num5 = 4; + List list253 = new List(num5); + CollectionsMarshal.SetCount(list253, num5); + span7 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); reference198 = list253; - span89[4] = null; - span89[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj178.RequiredQuestVariables = list252; reference197 = obj178; - ref QuestStep reference199 = ref span82[5]; + num2++; + ref QuestStep reference199 = ref span3[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Action, 2009237u, new Vector3(173.99854f, -161.85254f, -190.29535f), 613) { Action = EAction.Inhale }; - num3 = 6; - List> list254 = new List>(num3); - CollectionsMarshal.SetCount(list254, num3); - Span> span91 = CollectionsMarshal.AsSpan(list254); - span91[0] = null; - span91[1] = null; - span91[2] = null; - ref List reference200 = ref span91[3]; + index3 = 6; + List> list254 = new List>(index3); + CollectionsMarshal.SetCount(list254, index3); + span8 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference200 = ref span8[num3]; num4 = 4; List list255 = new List(num4); CollectionsMarshal.SetCount(list255, num4); - Span span92 = CollectionsMarshal.AsSpan(list255); - span92[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span92[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span92[2] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span92[3] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list255); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference200 = list255; - span91[4] = null; - span91[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj179.RequiredQuestVariables = list254; reference199 = obj179; obj174.Steps = list245; reference190 = obj174; - ref QuestSequence reference201 = ref span81[3]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -187782,13 +224819,15 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span93 = CollectionsMarshal.AsSpan(list256); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj180.Steps = list256; reference201 = obj180; questRoot26.QuestSequence = list242; @@ -187798,24 +224837,30 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "plogon_enjoyer"; questRoot27.Author = list257; - num = 3; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span94 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference202 = ref span94[0]; + index = 3; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj181.Steps = list259; reference202 = obj181; - ref QuestSequence reference203 = ref span94[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -187823,8 +224868,9 @@ public static class AssemblyQuestLoader num2 = 4; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span95 = CollectionsMarshal.AsSpan(list260); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(840.90247f, 5.923009f, 842.75916f), 613) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(840.90247f, 5.923009f, 842.75916f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -187834,7 +224880,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - ref QuestStep reference204 = ref span95[1]; + index2++; + ref QuestStep reference204 = ref span3[index2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2009092u, new Vector3(38.864624f, 18.20398f, 712.7947f), 613) { Fly = true, @@ -187844,28 +224891,39 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 8236u; + span5 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span5[index3] = 8236u; obj183.KillEnemyDataIds = list261; - num3 = 6; - List> list262 = new List>(num3); - CollectionsMarshal.SetCount(list262, num3); - Span> span96 = CollectionsMarshal.AsSpan(list262); - span96[0] = null; - span96[1] = null; - span96[2] = null; - ref List reference205 = ref span96[3]; - num4 = 2; - List list263 = new List(num4); - CollectionsMarshal.SetCount(list263, num4); - Span span97 = CollectionsMarshal.AsSpan(list263); - span97[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span97[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list262 = new List>(index3); + CollectionsMarshal.SetCount(list262, index3); + span8 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference205 = ref span8[num3]; + num5 = 2; + List list263 = new List(num5); + CollectionsMarshal.SetCount(list263, num5); + span7 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference205 = list263; - span96[4] = null; - span96[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj183.RequiredQuestVariables = list262; reference204 = obj183; - ref QuestStep reference206 = ref span95[2]; + index2++; + ref QuestStep reference206 = ref span3[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2009091u, new Vector3(-72.58722f, 10.513428f, 632.41016f), 613) { Fly = true, @@ -187875,26 +224933,37 @@ public static class AssemblyQuestLoader num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = 8236u; + span5 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span5[index3] = 8236u; obj184.KillEnemyDataIds = list264; - num3 = 6; - List> list265 = new List>(num3); - CollectionsMarshal.SetCount(list265, num3); - Span> span98 = CollectionsMarshal.AsSpan(list265); - span98[0] = null; - span98[1] = null; - span98[2] = null; - ref List reference207 = ref span98[3]; + index3 = 6; + List> list265 = new List>(index3); + CollectionsMarshal.SetCount(list265, index3); + span8 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference207 = ref span8[num3]; num4 = 1; List list266 = new List(num4); CollectionsMarshal.SetCount(list266, num4); - CollectionsMarshal.AsSpan(list266)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list266); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference207 = list266; - span98[4] = null; - span98[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj184.RequiredQuestVariables = list265; reference206 = obj184; - ref QuestStep reference208 = ref span95[3]; + index2++; + ref QuestStep reference208 = ref span3[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2009093u, new Vector3(29.495605f, 3.0059814f, 527.7637f), 613) { Fly = true, @@ -187904,42 +224973,55 @@ public static class AssemblyQuestLoader num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 8236u; + span5 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span5[index3] = 8236u; obj185.KillEnemyDataIds = list267; - num3 = 6; - List> list268 = new List>(num3); - CollectionsMarshal.SetCount(list268, num3); - Span> span99 = CollectionsMarshal.AsSpan(list268); - span99[0] = null; - span99[1] = null; - span99[2] = null; - ref List reference209 = ref span99[3]; - num4 = 1; - List list269 = new List(num4); - CollectionsMarshal.SetCount(list269, num4); - CollectionsMarshal.AsSpan(list269)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list268 = new List>(index3); + CollectionsMarshal.SetCount(list268, index3); + span8 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference209 = ref span8[num3]; + num5 = 1; + List list269 = new List(num5); + CollectionsMarshal.SetCount(list269, num5); + span7 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference209 = list269; - span99[4] = null; - span99[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj185.RequiredQuestVariables = list268; reference208 = obj185; obj182.Steps = list260; reference203 = obj182; - ref QuestSequence reference210 = ref span94[2]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span100 = CollectionsMarshal.AsSpan(list270); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj186.Steps = list270; reference210 = obj186; questRoot27.QuestSequence = list258; @@ -187949,13 +225031,16 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list271); + index = 0; + span[index] = "plogon_enjoyer"; questRoot28.Author = list271; - num = 3; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span101 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference211 = ref span101[0]; + index = 3; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + span2 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -187963,19 +225048,23 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj187.Steps = list273; reference211 = obj187; - ref QuestSequence reference212 = ref span101[1]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span102 = CollectionsMarshal.AsSpan(list274); - ref QuestStep reference213 = ref span102[0]; + index2 = 3; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + ref QuestStep reference213 = ref span3[num2]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1019249u, new Vector3(537.1328f, 33.655228f, -811.1849f), 613) { Fly = true, @@ -187984,45 +225073,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list275 = new List>(num3); CollectionsMarshal.SetCount(list275, num3); - Span> span103 = CollectionsMarshal.AsSpan(list275); - span103[0] = null; - span103[1] = null; - ref List reference214 = ref span103[2]; + span8 = CollectionsMarshal.AsSpan(list275); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference214 = ref span8[index3]; num4 = 2; List list276 = new List(num4); CollectionsMarshal.SetCount(list276, num4); - Span span104 = CollectionsMarshal.AsSpan(list276); - span104[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span104[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list276); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference214 = list276; - span103[3] = null; - span103[4] = null; - span103[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj189.RequiredQuestVariables = list275; reference213 = obj189; - ref QuestStep reference215 = ref span102[1]; + num2++; + ref QuestStep reference215 = ref span3[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1024348u, new Vector3(724.8187f, 1.3691645f, -814.4198f), 613) { Fly = true }; - num3 = 6; - List> list277 = new List>(num3); - CollectionsMarshal.SetCount(list277, num3); - Span> span105 = CollectionsMarshal.AsSpan(list277); - span105[0] = null; - span105[1] = null; - ref List reference216 = ref span105[2]; - num4 = 1; - List list278 = new List(num4); - CollectionsMarshal.SetCount(list278, num4); - CollectionsMarshal.AsSpan(list278)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list277 = new List>(index3); + CollectionsMarshal.SetCount(list277, index3); + span8 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference216 = ref span8[num3]; + num5 = 1; + List list278 = new List(num5); + CollectionsMarshal.SetCount(list278, num5); + span7 = CollectionsMarshal.AsSpan(list278); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference216 = list278; - span105[3] = null; - span105[4] = null; - span105[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj190.RequiredQuestVariables = list277; reference215 = obj190; - ref QuestStep reference217 = ref span102[2]; + num2++; + ref QuestStep reference217 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1024420u, new Vector3(577.3556f, 9.866471f, -733.79114f), 613) { Fly = true @@ -188030,23 +225137,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list279 = new List>(num3); CollectionsMarshal.SetCount(list279, num3); - Span> span106 = CollectionsMarshal.AsSpan(list279); - span106[0] = null; - span106[1] = null; - ref List reference218 = ref span106[2]; + span8 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference218 = ref span8[index3]; num4 = 1; List list280 = new List(num4); CollectionsMarshal.SetCount(list280, num4); - CollectionsMarshal.AsSpan(list280)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list280); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference218 = list280; - span106[3] = null; - span106[4] = null; - span106[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj191.RequiredQuestVariables = list279; reference217 = obj191; obj188.Steps = list274; reference212 = obj188; - ref QuestSequence reference219 = ref span101[2]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue @@ -188054,13 +225170,15 @@ public static class AssemblyQuestLoader num2 = 2; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span107 = CollectionsMarshal.AsSpan(list281); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj192.Steps = list281; reference219 = obj192; questRoot28.QuestSequence = list272; @@ -188070,24 +225188,30 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list282); + index = 0; + span[index] = "plogon_enjoyer"; questRoot29.Author = list282; - num = 4; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span108 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference220 = ref span108[0]; + index = 4; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + span2 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj193.Steps = list284; reference220 = obj193; - ref QuestSequence reference221 = ref span108[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 @@ -188095,13 +225219,15 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span109 = CollectionsMarshal.AsSpan(list285); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.734f, -118.16611f, -310.65613f), 613) + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.734f, -118.16611f, -310.65613f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span109[1] = new QuestStep(EInteractionType.Say, 2009099u, new Vector3(829.0073f, -122.179016f, -768.91736f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.Say, 2009099u, new Vector3(829.0073f, -122.179016f, -768.91736f), 613) { Fly = true, ChatMessage = new ChatMessage @@ -188111,38 +225237,49 @@ public static class AssemblyQuestLoader }; obj194.Steps = list285; reference221 = obj194; - ref QuestSequence reference222 = ref span108[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span110 = CollectionsMarshal.AsSpan(list286); - ref QuestStep reference223 = ref span110[0]; + index2 = 3; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1024295u, new Vector3(861.6616f, -108.659546f, -546.4103f), 613) { Fly = true }; - num3 = 6; - List> list287 = new List>(num3); - CollectionsMarshal.SetCount(list287, num3); - Span> span111 = CollectionsMarshal.AsSpan(list287); - span111[0] = null; - ref List reference224 = ref span111[1]; - num4 = 1; - List list288 = new List(num4); - CollectionsMarshal.SetCount(list288, num4); - CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list287 = new List>(index3); + CollectionsMarshal.SetCount(list287, index3); + span8 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference224 = ref span8[num3]; + num5 = 1; + List list288 = new List(num5); + CollectionsMarshal.SetCount(list288, num5); + span7 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference224 = list288; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj196.RequiredQuestVariables = list287; reference223 = obj196; - ref QuestStep reference225 = ref span110[1]; + num2++; + ref QuestStep reference225 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1024345u, new Vector3(891.78296f, -140.61188f, -794.36945f), 613) { Fly = true @@ -188150,45 +225287,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list289 = new List>(num3); CollectionsMarshal.SetCount(list289, num3); - Span> span112 = CollectionsMarshal.AsSpan(list289); - span112[0] = null; - ref List reference226 = ref span112[1]; + span8 = CollectionsMarshal.AsSpan(list289); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference226 = ref span8[index3]; num4 = 1; List list290 = new List(num4); CollectionsMarshal.SetCount(list290, num4); - CollectionsMarshal.AsSpan(list290)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list290); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference226 = list290; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj197.RequiredQuestVariables = list289; reference225 = obj197; - ref QuestStep reference227 = ref span110[2]; + num2++; + ref QuestStep reference227 = ref span3[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1024344u, new Vector3(836.14856f, -127.85541f, -910.7042f), 613) { Fly = true }; - num3 = 6; - List> list291 = new List>(num3); - CollectionsMarshal.SetCount(list291, num3); - Span> span113 = CollectionsMarshal.AsSpan(list291); - span113[0] = null; - ref List reference228 = ref span113[1]; - num4 = 1; - List list292 = new List(num4); - CollectionsMarshal.SetCount(list292, num4); - CollectionsMarshal.AsSpan(list292)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list291 = new List>(index3); + CollectionsMarshal.SetCount(list291, index3); + span8 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference228 = ref span8[num3]; + num5 = 1; + List list292 = new List(num5); + CollectionsMarshal.SetCount(list292, num5); + span7 = CollectionsMarshal.AsSpan(list292); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference228 = list292; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj198.RequiredQuestVariables = list291; reference227 = obj198; obj195.Steps = list286; reference222 = obj195; - ref QuestSequence reference229 = ref span108[3]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -188196,13 +225351,15 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span114 = CollectionsMarshal.AsSpan(list293); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj199.Steps = list293; reference229 = obj199; questRoot29.QuestSequence = list283; @@ -188212,24 +225369,30 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list294); + index = 0; + span[index] = "plogon_enjoyer"; questRoot30.Author = list294; - num = 3; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span115 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference230 = ref span115[0]; + index = 3; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + span2 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj200.Steps = list296; reference230 = obj200; - ref QuestSequence reference231 = ref span115[1]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -188237,8 +225400,9 @@ public static class AssemblyQuestLoader num2 = 3; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span116 = CollectionsMarshal.AsSpan(list297); - ref QuestStep reference232 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + ref QuestStep reference232 = ref span3[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, null, new Vector3(-305.79498f, -0.5f, -517.7326f), 613) { Fly = true, @@ -188249,26 +225413,37 @@ public static class AssemblyQuestLoader num3 = 1; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = 8237u; + span5 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span5[index3] = 8237u; obj202.KillEnemyDataIds = list298; - num3 = 6; - List> list299 = new List>(num3); - CollectionsMarshal.SetCount(list299, num3); - Span> span117 = CollectionsMarshal.AsSpan(list299); - span117[0] = null; - span117[1] = null; - ref List reference233 = ref span117[2]; + index3 = 6; + List> list299 = new List>(index3); + CollectionsMarshal.SetCount(list299, index3); + span8 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference233 = ref span8[num3]; num4 = 1; List list300 = new List(num4); CollectionsMarshal.SetCount(list300, num4); - CollectionsMarshal.AsSpan(list300)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list300); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference233 = list300; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj202.RequiredQuestVariables = list299; reference232 = obj202; - ref QuestStep reference234 = ref span116[1]; + index2++; + ref QuestStep reference234 = ref span3[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, null, new Vector3(166.64561f, -0.4983238f, -751.1739f), 613) { Fly = true, @@ -188279,26 +225454,37 @@ public static class AssemblyQuestLoader num3 = 1; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = 8237u; + span5 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span5[index3] = 8237u; obj203.KillEnemyDataIds = list301; - num3 = 6; - List> list302 = new List>(num3); - CollectionsMarshal.SetCount(list302, num3); - Span> span118 = CollectionsMarshal.AsSpan(list302); - span118[0] = null; - span118[1] = null; - ref List reference235 = ref span118[2]; - num4 = 1; - List list303 = new List(num4); - CollectionsMarshal.SetCount(list303, num4); - CollectionsMarshal.AsSpan(list303)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list302 = new List>(index3); + CollectionsMarshal.SetCount(list302, index3); + span8 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference235 = ref span8[num3]; + num5 = 1; + List list303 = new List(num5); + CollectionsMarshal.SetCount(list303, num5); + span7 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference235 = list303; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj203.RequiredQuestVariables = list302; reference234 = obj203; - ref QuestStep reference236 = ref span116[2]; + index2++; + ref QuestStep reference236 = ref span3[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, null, new Vector3(-135.29268f, -0.06343824f, -805.9451f), 613) { Fly = true, @@ -188309,42 +225495,55 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = 8237u; + span5 = CollectionsMarshal.AsSpan(list304); + index3 = 0; + span5[index3] = 8237u; obj204.KillEnemyDataIds = list304; - num3 = 6; - List> list305 = new List>(num3); - CollectionsMarshal.SetCount(list305, num3); - Span> span119 = CollectionsMarshal.AsSpan(list305); - span119[0] = null; - span119[1] = null; - ref List reference237 = ref span119[2]; + index3 = 6; + List> list305 = new List>(index3); + CollectionsMarshal.SetCount(list305, index3); + span8 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference237 = ref span8[num3]; num4 = 1; List list306 = new List(num4); CollectionsMarshal.SetCount(list306, num4); - CollectionsMarshal.AsSpan(list306)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list306); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference237 = list306; - span119[3] = null; - span119[4] = null; - span119[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj204.RequiredQuestVariables = list305; reference236 = obj204; obj201.Steps = list297; reference231 = obj201; - ref QuestSequence reference238 = ref span115[2]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span120 = CollectionsMarshal.AsSpan(list307); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj205.Steps = list307; reference238 = obj205; questRoot30.QuestSequence = list295; @@ -188354,13 +225553,16 @@ public static class AssemblyQuestLoader num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - CollectionsMarshal.AsSpan(list308)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list308); + index = 0; + span[index] = "plogon_enjoyer"; questRoot31.Author = list308; - num = 4; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span121 = CollectionsMarshal.AsSpan(list309); - ref QuestSequence reference239 = ref span121[0]; + index = 4; + List list309 = new List(index); + CollectionsMarshal.SetCount(list309, index); + span2 = CollectionsMarshal.AsSpan(list309); + num = 0; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -188368,25 +225570,31 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj206.Steps = list310; reference239 = obj206; - ref QuestSequence reference240 = ref span121[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1024300u, new Vector3(139.60474f, -0.17411774f, -578.1796f), 613) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024300u, new Vector3(139.60474f, -0.17411774f, -578.1796f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj207.Steps = list311; reference240 = obj207; - ref QuestSequence reference241 = ref span121[2]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -188394,8 +225602,9 @@ public static class AssemblyQuestLoader num2 = 3; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span122 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference242 = ref span122[0]; + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference242 = ref span3[index2]; QuestStep obj209 = new QuestStep(EInteractionType.Interact, 1024305u, new Vector3(30.71643f, 1.1855971f, -529.778f), 613) { Fly = true @@ -188403,47 +225612,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list313 = new List>(num3); CollectionsMarshal.SetCount(list313, num3); - Span> span123 = CollectionsMarshal.AsSpan(list313); - span123[0] = null; - span123[1] = null; - ref List reference243 = ref span123[2]; - num4 = 2; - List list314 = new List(num4); - CollectionsMarshal.SetCount(list314, num4); - Span span124 = CollectionsMarshal.AsSpan(list314); - span124[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span124[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference243 = ref span8[index3]; + num5 = 2; + List list314 = new List(num5); + CollectionsMarshal.SetCount(list314, num5); + span7 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference243 = list314; - span123[3] = null; - span123[4] = null; - span123[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj209.RequiredQuestVariables = list313; reference242 = obj209; - ref QuestStep reference244 = ref span122[1]; + index2++; + ref QuestStep reference244 = ref span3[index2]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 1024303u, new Vector3(43.503418f, 3.6636734f, -619.379f), 613) { Fly = true }; - num3 = 6; - List> list315 = new List>(num3); - CollectionsMarshal.SetCount(list315, num3); - Span> span125 = CollectionsMarshal.AsSpan(list315); - span125[0] = null; - span125[1] = null; - ref List reference245 = ref span125[2]; + index3 = 6; + List> list315 = new List>(index3); + CollectionsMarshal.SetCount(list315, index3); + span8 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference245 = ref span8[num3]; num4 = 2; List list316 = new List(num4); CollectionsMarshal.SetCount(list316, num4); - Span span126 = CollectionsMarshal.AsSpan(list316); - span126[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span126[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list316); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference245 = list316; - span125[3] = null; - span125[4] = null; - span125[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj210.RequiredQuestVariables = list315; reference244 = obj210; - ref QuestStep reference246 = ref span122[2]; + index2++; + ref QuestStep reference246 = ref span3[index2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1024301u, new Vector3(-11.886841f, 3.194641f, -622.88855f), 613) { Fly = true @@ -188451,39 +225678,50 @@ public static class AssemblyQuestLoader num3 = 6; List> list317 = new List>(num3); CollectionsMarshal.SetCount(list317, num3); - Span> span127 = CollectionsMarshal.AsSpan(list317); - span127[0] = null; - span127[1] = null; - ref List reference247 = ref span127[2]; - num4 = 2; - List list318 = new List(num4); - CollectionsMarshal.SetCount(list318, num4); - Span span128 = CollectionsMarshal.AsSpan(list318); - span128[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span128[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list317); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference247 = ref span8[index3]; + num5 = 2; + List list318 = new List(num5); + CollectionsMarshal.SetCount(list318, num5); + span7 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference247 = list318; - span127[3] = null; - span127[4] = null; - span127[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj211.RequiredQuestVariables = list317; reference246 = obj211; obj208.Steps = list312; reference241 = obj208; - ref QuestSequence reference248 = ref span121[3]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span129 = CollectionsMarshal.AsSpan(list319); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj212.Steps = list319; reference248 = obj212; questRoot31.QuestSequence = list309; @@ -188493,13 +225731,16 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list320); + index = 0; + span[index] = "plogon_enjoyer"; questRoot32.Author = list320; - num = 4; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span130 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference249 = ref span130[0]; + index = 4; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + span2 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 @@ -188507,46 +225748,60 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj213.Steps = list322; reference249 = obj213; - ref QuestSequence reference250 = ref span130[1]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - Span span131 = CollectionsMarshal.AsSpan(list323); - span131[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 4; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference251 = ref span131[1]; + num2++; + ref QuestStep reference251 = ref span3[num2]; QuestStep obj215 = new QuestStep(EInteractionType.UseItem, 2009104u, new Vector3(399.89307f, -0.10687256f, -347.21906f), 613) { Fly = true, ItemId = 2002405u }; - num3 = 6; - List> list324 = new List>(num3); - CollectionsMarshal.SetCount(list324, num3); - Span> span132 = CollectionsMarshal.AsSpan(list324); - span132[0] = null; - span132[1] = null; - ref List reference252 = ref span132[2]; + index3 = 6; + List> list324 = new List>(index3); + CollectionsMarshal.SetCount(list324, index3); + span8 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference252 = ref span8[num3]; num4 = 1; List list325 = new List(num4); CollectionsMarshal.SetCount(list325, num4); - CollectionsMarshal.AsSpan(list325)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list325); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference252 = list325; - span132[3] = null; - span132[4] = null; - span132[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj215.RequiredQuestVariables = list324; reference251 = obj215; - ref QuestStep reference253 = ref span131[2]; + num2++; + ref QuestStep reference253 = ref span3[num2]; QuestStep obj216 = new QuestStep(EInteractionType.UseItem, 2009103u, new Vector3(187.24341f, -0.10687256f, -477.71423f), 613) { Fly = true, @@ -188555,46 +225810,64 @@ public static class AssemblyQuestLoader num3 = 6; List> list326 = new List>(num3); CollectionsMarshal.SetCount(list326, num3); - Span> span133 = CollectionsMarshal.AsSpan(list326); - span133[0] = null; - span133[1] = null; - ref List reference254 = ref span133[2]; - num4 = 1; - List list327 = new List(num4); - CollectionsMarshal.SetCount(list327, num4); - CollectionsMarshal.AsSpan(list327)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference254 = ref span8[index3]; + num5 = 1; + List list327 = new List(num5); + CollectionsMarshal.SetCount(list327, num5); + span7 = CollectionsMarshal.AsSpan(list327); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference254 = list327; - span133[3] = null; - span133[4] = null; - span133[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj216.RequiredQuestVariables = list326; reference253 = obj216; - ref QuestStep reference255 = ref span131[3]; + num2++; + ref QuestStep reference255 = ref span3[num2]; QuestStep obj217 = new QuestStep(EInteractionType.UseItem, 2009102u, new Vector3(379.07983f, -0.07635498f, -494.31604f), 613) { Fly = true, ItemId = 2002405u }; - num3 = 6; - List> list328 = new List>(num3); - CollectionsMarshal.SetCount(list328, num3); - Span> span134 = CollectionsMarshal.AsSpan(list328); - span134[0] = null; - span134[1] = null; - ref List reference256 = ref span134[2]; + index3 = 6; + List> list328 = new List>(index3); + CollectionsMarshal.SetCount(list328, index3); + span8 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference256 = ref span8[num3]; num4 = 1; List list329 = new List(num4); CollectionsMarshal.SetCount(list329, num4); - CollectionsMarshal.AsSpan(list329)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list329); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference256 = list329; - span134[3] = null; - span134[4] = null; - span134[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj217.RequiredQuestVariables = list328; reference255 = obj217; obj214.Steps = list323; reference250 = obj214; - ref QuestSequence reference257 = ref span130[2]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -188602,27 +225875,32 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj218.Steps = list330; reference257 = obj218; - ref QuestSequence reference258 = ref span130[3]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - Span span135 = CollectionsMarshal.AsSpan(list331); - span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true }; - span135[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj219.Steps = list331; reference258 = obj219; questRoot32.QuestSequence = list321; @@ -188632,13 +225910,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "plogon_enjoyer"; questRoot33.Author = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span136 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference259 = ref span136[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -188646,19 +225927,23 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj220.Steps = list334; reference259 = obj220; - ref QuestSequence reference260 = ref span136[1]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 10; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span137 = CollectionsMarshal.AsSpan(list335); - span137[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 10; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -188667,7 +225952,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - ref QuestStep reference261 = ref span137[1]; + num2++; + ref QuestStep reference261 = ref span3[num2]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, 2009161u, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { Fly = true, @@ -188676,26 +225962,37 @@ public static class AssemblyQuestLoader num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 8238u; + span5 = CollectionsMarshal.AsSpan(list336); + index3 = 0; + span5[index3] = 8238u; obj222.KillEnemyDataIds = list336; - num3 = 6; - List> list337 = new List>(num3); - CollectionsMarshal.SetCount(list337, num3); - Span> span138 = CollectionsMarshal.AsSpan(list337); - span138[0] = null; - span138[1] = null; - ref List reference262 = ref span138[2]; - num4 = 1; - List list338 = new List(num4); - CollectionsMarshal.SetCount(list338, num4); - CollectionsMarshal.AsSpan(list338)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list337 = new List>(index3); + CollectionsMarshal.SetCount(list337, index3); + span8 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference262 = ref span8[num3]; + num5 = 1; + List list338 = new List(num5); + CollectionsMarshal.SetCount(list338, num5); + span7 = CollectionsMarshal.AsSpan(list338); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference262 = list338; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj222.RequiredQuestVariables = list337; reference261 = obj222; - ref QuestStep reference263 = ref span137[2]; + num2++; + ref QuestStep reference263 = ref span3[num2]; QuestStep obj223 = new QuestStep(EInteractionType.Combat, null, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188703,26 +226000,37 @@ public static class AssemblyQuestLoader num3 = 1; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - CollectionsMarshal.AsSpan(list339)[0] = 8239u; + span5 = CollectionsMarshal.AsSpan(list339); + index3 = 0; + span5[index3] = 8239u; obj223.KillEnemyDataIds = list339; - num3 = 6; - List> list340 = new List>(num3); - CollectionsMarshal.SetCount(list340, num3); - Span> span139 = CollectionsMarshal.AsSpan(list340); - span139[0] = null; - span139[1] = null; - ref List reference264 = ref span139[2]; + index3 = 6; + List> list340 = new List>(index3); + CollectionsMarshal.SetCount(list340, index3); + span8 = CollectionsMarshal.AsSpan(list340); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference264 = ref span8[num3]; num4 = 1; List list341 = new List(num4); CollectionsMarshal.SetCount(list341, num4); - CollectionsMarshal.AsSpan(list341)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list341); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference264 = list341; - span139[3] = null; - span139[4] = null; - span139[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj223.RequiredQuestVariables = list340; reference263 = obj223; - ref QuestStep reference265 = ref span137[3]; + num2++; + ref QuestStep reference265 = ref span3[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188730,26 +226038,37 @@ public static class AssemblyQuestLoader num3 = 1; List list342 = new List(num3); CollectionsMarshal.SetCount(list342, num3); - CollectionsMarshal.AsSpan(list342)[0] = 8240u; + span5 = CollectionsMarshal.AsSpan(list342); + index3 = 0; + span5[index3] = 8240u; obj224.KillEnemyDataIds = list342; - num3 = 6; - List> list343 = new List>(num3); - CollectionsMarshal.SetCount(list343, num3); - Span> span140 = CollectionsMarshal.AsSpan(list343); - span140[0] = null; - span140[1] = null; - ref List reference266 = ref span140[2]; - num4 = 1; - List list344 = new List(num4); - CollectionsMarshal.SetCount(list344, num4); - CollectionsMarshal.AsSpan(list344)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list343 = new List>(index3); + CollectionsMarshal.SetCount(list343, index3); + span8 = CollectionsMarshal.AsSpan(list343); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference266 = ref span8[num3]; + num5 = 1; + List list344 = new List(num5); + CollectionsMarshal.SetCount(list344, num5); + span7 = CollectionsMarshal.AsSpan(list344); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference266 = list344; - span140[3] = null; - span140[4] = null; - span140[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj224.RequiredQuestVariables = list343; reference265 = obj224; - ref QuestStep reference267 = ref span137[4]; + num2++; + ref QuestStep reference267 = ref span3[num2]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, 2009162u, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { Fly = true, @@ -188758,26 +226077,37 @@ public static class AssemblyQuestLoader num3 = 1; List list345 = new List(num3); CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = 8238u; + span5 = CollectionsMarshal.AsSpan(list345); + index3 = 0; + span5[index3] = 8238u; obj225.KillEnemyDataIds = list345; - num3 = 6; - List> list346 = new List>(num3); - CollectionsMarshal.SetCount(list346, num3); - Span> span141 = CollectionsMarshal.AsSpan(list346); - span141[0] = null; - span141[1] = null; - ref List reference268 = ref span141[2]; + index3 = 6; + List> list346 = new List>(index3); + CollectionsMarshal.SetCount(list346, index3); + span8 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference268 = ref span8[num3]; num4 = 1; List list347 = new List(num4); CollectionsMarshal.SetCount(list347, num4); - CollectionsMarshal.AsSpan(list347)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list347); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference268 = list347; - span141[3] = null; - span141[4] = null; - span141[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj225.RequiredQuestVariables = list346; reference267 = obj225; - ref QuestStep reference269 = ref span137[5]; + num2++; + ref QuestStep reference269 = ref span3[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, null, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188785,26 +226115,37 @@ public static class AssemblyQuestLoader num3 = 1; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 8239u; + span5 = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span5[index3] = 8239u; obj226.KillEnemyDataIds = list348; - num3 = 6; - List> list349 = new List>(num3); - CollectionsMarshal.SetCount(list349, num3); - Span> span142 = CollectionsMarshal.AsSpan(list349); - span142[0] = null; - span142[1] = null; - ref List reference270 = ref span142[2]; - num4 = 1; - List list350 = new List(num4); - CollectionsMarshal.SetCount(list350, num4); - CollectionsMarshal.AsSpan(list350)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list349 = new List>(index3); + CollectionsMarshal.SetCount(list349, index3); + span8 = CollectionsMarshal.AsSpan(list349); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference270 = ref span8[num3]; + num5 = 1; + List list350 = new List(num5); + CollectionsMarshal.SetCount(list350, num5); + span7 = CollectionsMarshal.AsSpan(list350); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference270 = list350; - span142[3] = null; - span142[4] = null; - span142[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj226.RequiredQuestVariables = list349; reference269 = obj226; - ref QuestStep reference271 = ref span137[6]; + num2++; + ref QuestStep reference271 = ref span3[num2]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188812,26 +226153,37 @@ public static class AssemblyQuestLoader num3 = 1; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = 8240u; + span5 = CollectionsMarshal.AsSpan(list351); + index3 = 0; + span5[index3] = 8240u; obj227.KillEnemyDataIds = list351; - num3 = 6; - List> list352 = new List>(num3); - CollectionsMarshal.SetCount(list352, num3); - Span> span143 = CollectionsMarshal.AsSpan(list352); - span143[0] = null; - span143[1] = null; - ref List reference272 = ref span143[2]; + index3 = 6; + List> list352 = new List>(index3); + CollectionsMarshal.SetCount(list352, index3); + span8 = CollectionsMarshal.AsSpan(list352); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference272 = ref span8[num3]; num4 = 1; List list353 = new List(num4); CollectionsMarshal.SetCount(list353, num4); - CollectionsMarshal.AsSpan(list353)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list353); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference272 = list353; - span143[3] = null; - span143[4] = null; - span143[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj227.RequiredQuestVariables = list352; reference271 = obj227; - ref QuestStep reference273 = ref span137[7]; + num2++; + ref QuestStep reference273 = ref span3[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2009163u, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { Fly = true, @@ -188840,26 +226192,37 @@ public static class AssemblyQuestLoader num3 = 1; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - CollectionsMarshal.AsSpan(list354)[0] = 8238u; + span5 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span5[index3] = 8238u; obj228.KillEnemyDataIds = list354; - num3 = 6; - List> list355 = new List>(num3); - CollectionsMarshal.SetCount(list355, num3); - Span> span144 = CollectionsMarshal.AsSpan(list355); - span144[0] = null; - span144[1] = null; - ref List reference274 = ref span144[2]; - num4 = 1; - List list356 = new List(num4); - CollectionsMarshal.SetCount(list356, num4); - CollectionsMarshal.AsSpan(list356)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list355 = new List>(index3); + CollectionsMarshal.SetCount(list355, index3); + span8 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference274 = ref span8[num3]; + num5 = 1; + List list356 = new List(num5); + CollectionsMarshal.SetCount(list356, num5); + span7 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference274 = list356; - span144[3] = null; - span144[4] = null; - span144[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj228.RequiredQuestVariables = list355; reference273 = obj228; - ref QuestStep reference275 = ref span137[8]; + num2++; + ref QuestStep reference275 = ref span3[num2]; QuestStep obj229 = new QuestStep(EInteractionType.Combat, null, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188867,26 +226230,37 @@ public static class AssemblyQuestLoader num3 = 1; List list357 = new List(num3); CollectionsMarshal.SetCount(list357, num3); - CollectionsMarshal.AsSpan(list357)[0] = 8239u; + span5 = CollectionsMarshal.AsSpan(list357); + index3 = 0; + span5[index3] = 8239u; obj229.KillEnemyDataIds = list357; - num3 = 6; - List> list358 = new List>(num3); - CollectionsMarshal.SetCount(list358, num3); - Span> span145 = CollectionsMarshal.AsSpan(list358); - span145[0] = null; - span145[1] = null; - ref List reference276 = ref span145[2]; + index3 = 6; + List> list358 = new List>(index3); + CollectionsMarshal.SetCount(list358, index3); + span8 = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference276 = ref span8[num3]; num4 = 1; List list359 = new List(num4); CollectionsMarshal.SetCount(list359, num4); - CollectionsMarshal.AsSpan(list359)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list359); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference276 = list359; - span145[3] = null; - span145[4] = null; - span145[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj229.RequiredQuestVariables = list358; reference275 = obj229; - ref QuestStep reference277 = ref span137[9]; + num2++; + ref QuestStep reference277 = ref span3[num2]; QuestStep obj230 = new QuestStep(EInteractionType.Combat, null, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188894,28 +226268,39 @@ public static class AssemblyQuestLoader num3 = 1; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - CollectionsMarshal.AsSpan(list360)[0] = 8240u; + span5 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span5[index3] = 8240u; obj230.KillEnemyDataIds = list360; - num3 = 6; - List> list361 = new List>(num3); - CollectionsMarshal.SetCount(list361, num3); - Span> span146 = CollectionsMarshal.AsSpan(list361); - span146[0] = null; - span146[1] = null; - ref List reference278 = ref span146[2]; - num4 = 1; - List list362 = new List(num4); - CollectionsMarshal.SetCount(list362, num4); - CollectionsMarshal.AsSpan(list362)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list361 = new List>(index3); + CollectionsMarshal.SetCount(list361, index3); + span8 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference278 = ref span8[num3]; + num5 = 1; + List list362 = new List(num5); + CollectionsMarshal.SetCount(list362, num5); + span7 = CollectionsMarshal.AsSpan(list362); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference278 = list362; - span146[3] = null; - span146[4] = null; - span146[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj230.RequiredQuestVariables = list361; reference277 = obj230; obj221.Steps = list335; reference260 = obj221; - ref QuestSequence reference279 = ref span136[2]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -188923,13 +226308,15 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span147 = CollectionsMarshal.AsSpan(list363); - span147[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span147[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj231.Steps = list363; reference279 = obj231; questRoot33.QuestSequence = list333; @@ -188939,24 +226326,30 @@ public static class AssemblyQuestLoader num = 1; List list364 = new List(num); CollectionsMarshal.SetCount(list364, num); - CollectionsMarshal.AsSpan(list364)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list364); + index = 0; + span[index] = "plogon_enjoyer"; questRoot34.Author = list364; - num = 4; - List list365 = new List(num); - CollectionsMarshal.SetCount(list365, num); - Span span148 = CollectionsMarshal.AsSpan(list365); - ref QuestSequence reference280 = ref span148[0]; + index = 4; + List list365 = new List(index); + CollectionsMarshal.SetCount(list365, index); + span2 = CollectionsMarshal.AsSpan(list365); + num = 0; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj232.Steps = list366; reference280 = obj232; - ref QuestSequence reference281 = ref span148[1]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -188964,27 +226357,32 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true }; obj233.Steps = list367; reference281 = obj233; - ref QuestSequence reference282 = ref span148[2]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - Span span149 = CollectionsMarshal.AsSpan(list368); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.45865f, -121.24298f, -314.65158f), 613) + index2 = 6; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.45865f, -121.24298f, -314.65158f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference283 = ref span149[1]; + num2++; + ref QuestStep reference283 = ref span3[num2]; QuestStep obj235 = new QuestStep(EInteractionType.Action, 2009109u, new Vector3(239.18518f, -74.99817f, -464.95764f), 613) { Fly = true, @@ -188993,52 +226391,74 @@ public static class AssemblyQuestLoader num3 = 6; List> list369 = new List>(num3); CollectionsMarshal.SetCount(list369, num3); - Span> span150 = CollectionsMarshal.AsSpan(list369); - span150[0] = null; - span150[1] = null; - span150[2] = null; - ref List reference284 = ref span150[3]; + span8 = CollectionsMarshal.AsSpan(list369); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference284 = ref span8[index3]; num4 = 4; List list370 = new List(num4); CollectionsMarshal.SetCount(list370, num4); - Span span151 = CollectionsMarshal.AsSpan(list370); - span151[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span151[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span151[2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span151[3] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list370); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference284 = list370; - span150[4] = null; - span150[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj235.RequiredQuestVariables = list369; reference283 = obj235; - ref QuestStep reference285 = ref span149[2]; + num2++; + ref QuestStep reference285 = ref span3[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Action, 2009108u, new Vector3(286.33557f, -74.60144f, -499.01584f), 613) { Fly = true, Action = EAction.Inhale }; - num3 = 6; - List> list371 = new List>(num3); - CollectionsMarshal.SetCount(list371, num3); - Span> span152 = CollectionsMarshal.AsSpan(list371); - span152[0] = null; - span152[1] = null; - span152[2] = null; - ref List reference286 = ref span152[3]; - num4 = 4; - List list372 = new List(num4); - CollectionsMarshal.SetCount(list372, num4); - Span span153 = CollectionsMarshal.AsSpan(list372); - span153[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span153[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span153[2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span153[3] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list371 = new List>(index3); + CollectionsMarshal.SetCount(list371, index3); + span8 = CollectionsMarshal.AsSpan(list371); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference286 = ref span8[num3]; + num5 = 4; + List list372 = new List(num5); + CollectionsMarshal.SetCount(list372, num5); + span7 = CollectionsMarshal.AsSpan(list372); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); reference286 = list372; - span152[4] = null; - span152[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj236.RequiredQuestVariables = list371; reference285 = obj236; - ref QuestStep reference287 = ref span149[3]; + num2++; + ref QuestStep reference287 = ref span3[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Action, 2009106u, new Vector3(539.2385f, -56.26001f, -364.88904f), 613) { Fly = true, @@ -189047,51 +226467,72 @@ public static class AssemblyQuestLoader num3 = 6; List> list373 = new List>(num3); CollectionsMarshal.SetCount(list373, num3); - Span> span154 = CollectionsMarshal.AsSpan(list373); - span154[0] = null; - span154[1] = null; - span154[2] = null; - ref List reference288 = ref span154[3]; + span8 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference288 = ref span8[index3]; num4 = 3; List list374 = new List(num4); CollectionsMarshal.SetCount(list374, num4); - Span span155 = CollectionsMarshal.AsSpan(list374); - span155[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span155[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span155[2] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list374); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); reference288 = list374; - span154[4] = null; - span154[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj237.RequiredQuestVariables = list373; reference287 = obj237; - ref QuestStep reference289 = ref span149[4]; + num2++; + ref QuestStep reference289 = ref span3[num2]; QuestStep obj238 = new QuestStep(EInteractionType.Action, 2009107u, new Vector3(560.14343f, -75.547424f, -410.81866f), 613) { Fly = true, Action = EAction.Inhale }; - num3 = 6; - List> list375 = new List>(num3); - CollectionsMarshal.SetCount(list375, num3); - Span> span156 = CollectionsMarshal.AsSpan(list375); - span156[0] = null; - span156[1] = null; - span156[2] = null; - ref List reference290 = ref span156[3]; - num4 = 4; - List list376 = new List(num4); - CollectionsMarshal.SetCount(list376, num4); - Span span157 = CollectionsMarshal.AsSpan(list376); - span157[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span157[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span157[2] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); - span157[3] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list375 = new List>(index3); + CollectionsMarshal.SetCount(list375, index3); + span8 = CollectionsMarshal.AsSpan(list375); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference290 = ref span8[num3]; + num5 = 4; + List list376 = new List(num5); + CollectionsMarshal.SetCount(list376, num5); + span7 = CollectionsMarshal.AsSpan(list376); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); reference290 = list376; - span156[4] = null; - span156[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj238.RequiredQuestVariables = list375; reference289 = obj238; - ref QuestStep reference291 = ref span149[5]; + num2++; + ref QuestStep reference291 = ref span3[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Action, 2009105u, new Vector3(613.94666f, -74.57086f, -400.04578f), 613) { Fly = true, @@ -189100,26 +226541,36 @@ public static class AssemblyQuestLoader num3 = 6; List> list377 = new List>(num3); CollectionsMarshal.SetCount(list377, num3); - Span> span158 = CollectionsMarshal.AsSpan(list377); - span158[0] = null; - span158[1] = null; - span158[2] = null; - ref List reference292 = ref span158[3]; + span8 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference292 = ref span8[index3]; num4 = 3; List list378 = new List(num4); CollectionsMarshal.SetCount(list378, num4); - Span span159 = CollectionsMarshal.AsSpan(list378); - span159[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span159[1] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span159[2] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list378); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference292 = list378; - span158[4] = null; - span158[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj239.RequiredQuestVariables = list377; reference291 = obj239; obj234.Steps = list368; reference282 = obj234; - ref QuestSequence reference293 = ref span148[3]; + num++; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -189127,13 +226578,15 @@ public static class AssemblyQuestLoader num2 = 2; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - Span span160 = CollectionsMarshal.AsSpan(list379); - span160[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span160[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj240.Steps = list379; reference293 = obj240; questRoot34.QuestSequence = list365; @@ -189143,24 +226596,30 @@ public static class AssemblyQuestLoader num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - CollectionsMarshal.AsSpan(list380)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list380); + index = 0; + span[index] = "plogon_enjoyer"; questRoot35.Author = list380; - num = 3; - List list381 = new List(num); - CollectionsMarshal.SetCount(list381, num); - Span span161 = CollectionsMarshal.AsSpan(list381); - ref QuestSequence reference294 = ref span161[0]; + index = 3; + List list381 = new List(index); + CollectionsMarshal.SetCount(list381, index); + span2 = CollectionsMarshal.AsSpan(list381); + num = 0; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + span3 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj241.Steps = list382; reference294 = obj241; - ref QuestSequence reference295 = ref span161[1]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -189168,33 +226627,38 @@ public static class AssemblyQuestLoader num2 = 2; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span162 = CollectionsMarshal.AsSpan(list383); - span162[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.92435f, -78.61959f, -226.5322f), 613) + span3 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.92435f, -78.61959f, -226.5322f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span162[1] = new QuestStep(EInteractionType.Interact, 1024307u, new Vector3(29.617676f, -86.167725f, -26.962769f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024307u, new Vector3(29.617676f, -86.167725f, -26.962769f), 613) { Fly = true }; obj242.Steps = list383; reference295 = obj242; - ref QuestSequence reference296 = ref span161[2]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - Span span163 = CollectionsMarshal.AsSpan(list384); - span163[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + span3 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span163[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj243.Steps = list384; reference296 = obj243; questRoot35.QuestSequence = list381; @@ -189204,13 +226668,16 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list385); + index = 0; + span[index] = "plogon_enjoyer"; questRoot36.Author = list385; - num = 3; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span164 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference297 = ref span164[0]; + index = 3; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + span2 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 @@ -189218,47 +226685,61 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj244.Steps = list387; reference297 = obj244; - ref QuestSequence reference298 = ref span164[1]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span165 = CollectionsMarshal.AsSpan(list388); - span165[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 7; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + span3 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference299 = ref span165[1]; + num2++; + ref QuestStep reference299 = ref span3[num2]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 2009114u, new Vector3(558.5259f, -0.015319824f, -516.92993f), 613) { Fly = true }; - num3 = 6; - List> list389 = new List>(num3); - CollectionsMarshal.SetCount(list389, num3); - Span> span166 = CollectionsMarshal.AsSpan(list389); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - ref List reference300 = ref span166[4]; - num4 = 2; - List list390 = new List(num4); - CollectionsMarshal.SetCount(list390, num4); - Span span167 = CollectionsMarshal.AsSpan(list390); - span167[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span167[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list389 = new List>(index3); + CollectionsMarshal.SetCount(list389, index3); + span8 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference300 = ref span8[num3]; + num5 = 2; + List list390 = new List(num5); + CollectionsMarshal.SetCount(list390, num5); + span7 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference300 = list390; - span166[5] = null; + num3++; + span8[num3] = null; obj246.RequiredQuestVariables = list389; reference299 = obj246; - ref QuestStep reference301 = ref span165[2]; + num2++; + ref QuestStep reference301 = ref span3[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 2009116u, new Vector3(558.5259f, -0.015319824f, -516.92993f), 613) { Fly = true, @@ -189267,29 +226748,41 @@ public static class AssemblyQuestLoader num3 = 1; List list391 = new List(num3); CollectionsMarshal.SetCount(list391, num3); - CollectionsMarshal.AsSpan(list391)[0] = 8241u; + span5 = CollectionsMarshal.AsSpan(list391); + index3 = 0; + span5[index3] = 8241u; obj247.KillEnemyDataIds = list391; - num3 = 6; - List> list392 = new List>(num3); - CollectionsMarshal.SetCount(list392, num3); - Span> span168 = CollectionsMarshal.AsSpan(list392); - span168[0] = null; - span168[1] = null; - span168[2] = null; - span168[3] = null; - ref List reference302 = ref span168[4]; + index3 = 6; + List> list392 = new List>(index3); + CollectionsMarshal.SetCount(list392, index3); + span8 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference302 = ref span8[num3]; num4 = 3; List list393 = new List(num4); CollectionsMarshal.SetCount(list393, num4); - Span span169 = CollectionsMarshal.AsSpan(list393); - span169[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span169[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span169[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list393); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference302 = list393; - span168[5] = null; + num3++; + span8[num3] = null; obj247.RequiredQuestVariables = list392; reference301 = obj247; - ref QuestStep reference303 = ref span165[3]; + num2++; + ref QuestStep reference303 = ref span3[num2]; QuestStep obj248 = new QuestStep(EInteractionType.Interact, 2009113u, new Vector3(633.1731f, -0.015319824f, -497.79507f), 613) { Fly = true @@ -189297,79 +226790,110 @@ public static class AssemblyQuestLoader num3 = 6; List> list394 = new List>(num3); CollectionsMarshal.SetCount(list394, num3); - Span> span170 = CollectionsMarshal.AsSpan(list394); - span170[0] = null; - span170[1] = null; - span170[2] = null; - span170[3] = null; - ref List reference304 = ref span170[4]; - num4 = 2; - List list395 = new List(num4); - CollectionsMarshal.SetCount(list395, num4); - Span span171 = CollectionsMarshal.AsSpan(list395); - span171[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span171[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list394); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference304 = ref span8[index3]; + num5 = 2; + List list395 = new List(num5); + CollectionsMarshal.SetCount(list395, num5); + span7 = CollectionsMarshal.AsSpan(list395); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference304 = list395; - span170[5] = null; + index3++; + span8[index3] = null; obj248.RequiredQuestVariables = list394; reference303 = obj248; - ref QuestStep reference305 = ref span165[4]; + num2++; + ref QuestStep reference305 = ref span3[num2]; QuestStep obj249 = new QuestStep(EInteractionType.Combat, 2009111u, new Vector3(633.1731f, -0.015319824f, -497.79507f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = 8241u; + index3 = 1; + List list396 = new List(index3); + CollectionsMarshal.SetCount(list396, index3); + span5 = CollectionsMarshal.AsSpan(list396); + num3 = 0; + span5[num3] = 8241u; obj249.KillEnemyDataIds = list396; num3 = 6; List> list397 = new List>(num3); CollectionsMarshal.SetCount(list397, num3); - Span> span172 = CollectionsMarshal.AsSpan(list397); - span172[0] = null; - span172[1] = null; - span172[2] = null; - span172[3] = null; - ref List reference306 = ref span172[4]; + span8 = CollectionsMarshal.AsSpan(list397); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference306 = ref span8[index3]; num4 = 3; List list398 = new List(num4); CollectionsMarshal.SetCount(list398, num4); - Span span173 = CollectionsMarshal.AsSpan(list398); - span173[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span173[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span173[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list398); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); reference306 = list398; - span172[5] = null; + index3++; + span8[index3] = null; obj249.RequiredQuestVariables = list397; reference305 = obj249; - ref QuestStep reference307 = ref span165[5]; + num2++; + ref QuestStep reference307 = ref span3[num2]; QuestStep obj250 = new QuestStep(EInteractionType.Interact, 2009110u, new Vector3(694.08704f, -0.015319824f, -611.017f), 613) { Fly = true }; - num3 = 6; - List> list399 = new List>(num3); - CollectionsMarshal.SetCount(list399, num3); - Span> span174 = CollectionsMarshal.AsSpan(list399); - span174[0] = null; - span174[1] = null; - span174[2] = null; - span174[3] = null; - ref List reference308 = ref span174[4]; - num4 = 3; - List list400 = new List(num4); - CollectionsMarshal.SetCount(list400, num4); - Span span175 = CollectionsMarshal.AsSpan(list400); - span175[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span175[1] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span175[2] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + index3 = 6; + List> list399 = new List>(index3); + CollectionsMarshal.SetCount(list399, index3); + span8 = CollectionsMarshal.AsSpan(list399); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference308 = ref span8[num3]; + num5 = 3; + List list400 = new List(num5); + CollectionsMarshal.SetCount(list400, num5); + span7 = CollectionsMarshal.AsSpan(list400); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); reference308 = list400; - span174[5] = null; + num3++; + span8[num3] = null; obj250.RequiredQuestVariables = list399; reference307 = obj250; - ref QuestStep reference309 = ref span165[6]; + num2++; + ref QuestStep reference309 = ref span3[num2]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 2009117u, new Vector3(694.08704f, -0.015319824f, -611.017f), 613) { Fly = true, @@ -189378,30 +226902,41 @@ public static class AssemblyQuestLoader num3 = 1; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - CollectionsMarshal.AsSpan(list401)[0] = 8241u; + span5 = CollectionsMarshal.AsSpan(list401); + index3 = 0; + span5[index3] = 8241u; obj251.KillEnemyDataIds = list401; - num3 = 6; - List> list402 = new List>(num3); - CollectionsMarshal.SetCount(list402, num3); - Span> span176 = CollectionsMarshal.AsSpan(list402); - span176[0] = null; - span176[1] = null; - span176[2] = null; - span176[3] = null; - ref List reference310 = ref span176[4]; + index3 = 6; + List> list402 = new List>(index3); + CollectionsMarshal.SetCount(list402, index3); + span8 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference310 = ref span8[num3]; num4 = 2; List list403 = new List(num4); CollectionsMarshal.SetCount(list403, num4); - Span span177 = CollectionsMarshal.AsSpan(list403); - span177[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span177[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list403); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference310 = list403; - span176[5] = null; + num3++; + span8[num3] = null; obj251.RequiredQuestVariables = list402; reference309 = obj251; obj245.Steps = list388; reference298 = obj245; - ref QuestSequence reference311 = ref span164[2]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue @@ -189409,13 +226944,15 @@ public static class AssemblyQuestLoader num2 = 2; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span178 = CollectionsMarshal.AsSpan(list404); - span178[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + span3 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span178[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj252.Steps = list404; reference311 = obj252; questRoot36.QuestSequence = list386; @@ -189425,24 +226962,30 @@ public static class AssemblyQuestLoader num = 1; List list405 = new List(num); CollectionsMarshal.SetCount(list405, num); - CollectionsMarshal.AsSpan(list405)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list405); + index = 0; + span[index] = "plogon_enjoyer"; questRoot37.Author = list405; - num = 3; - List list406 = new List(num); - CollectionsMarshal.SetCount(list406, num); - Span span179 = CollectionsMarshal.AsSpan(list406); - ref QuestSequence reference312 = ref span179[0]; + index = 3; + List list406 = new List(index); + CollectionsMarshal.SetCount(list406, index); + span2 = CollectionsMarshal.AsSpan(list406); + num = 0; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj253.Steps = list407; reference312 = obj253; - ref QuestSequence reference313 = ref span179[1]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 @@ -189450,12 +226993,14 @@ public static class AssemblyQuestLoader num2 = 7; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span180 = CollectionsMarshal.AsSpan(list408); - span180[0] = new QuestStep(EInteractionType.None, null, null, 613) + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference314 = ref span180[1]; + index2++; + ref QuestStep reference314 = ref span3[index2]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1024310u, new Vector3(-795.0103f, 21.373795f, -466.20892f), 613) { Fly = true @@ -189463,46 +227008,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list409 = new List>(num3); CollectionsMarshal.SetCount(list409, num3); - Span> span181 = CollectionsMarshal.AsSpan(list409); - span181[0] = null; - span181[1] = null; - span181[2] = null; - span181[3] = null; - ref List reference315 = ref span181[4]; - num4 = 1; - List list410 = new List(num4); - CollectionsMarshal.SetCount(list410, num4); - CollectionsMarshal.AsSpan(list410)[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list409); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference315 = ref span8[index3]; + num5 = 1; + List list410 = new List(num5); + CollectionsMarshal.SetCount(list410, num5); + span7 = CollectionsMarshal.AsSpan(list410); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference315 = list410; - span181[5] = null; + index3++; + span8[index3] = null; obj255.RequiredQuestVariables = list409; reference314 = obj255; - ref QuestStep reference316 = ref span180[2]; + index2++; + ref QuestStep reference316 = ref span3[index2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1024311u, new Vector3(-750.39294f, 1.6679686f, -479.33167f), 613) { Fly = true }; - num3 = 6; - List> list411 = new List>(num3); - CollectionsMarshal.SetCount(list411, num3); - Span> span182 = CollectionsMarshal.AsSpan(list411); - span182[0] = null; - span182[1] = null; - span182[2] = null; - span182[3] = null; - ref List reference317 = ref span182[4]; + index3 = 6; + List> list411 = new List>(index3); + CollectionsMarshal.SetCount(list411, index3); + span8 = CollectionsMarshal.AsSpan(list411); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference317 = ref span8[num3]; num4 = 3; List list412 = new List(num4); CollectionsMarshal.SetCount(list412, num4); - Span span183 = CollectionsMarshal.AsSpan(list412); - span183[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span183[1] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span183[2] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list412); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference317 = list412; - span182[5] = null; + num3++; + span8[num3] = null; obj256.RequiredQuestVariables = list411; reference316 = obj256; - ref QuestStep reference318 = ref span180[3]; + index2++; + ref QuestStep reference318 = ref span3[index2]; QuestStep obj257 = new QuestStep(EInteractionType.Interact, 1024312u, new Vector3(-792.08057f, 8.039127f, -444.419f), 613) { Fly = true @@ -189510,47 +227074,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list413 = new List>(num3); CollectionsMarshal.SetCount(list413, num3); - Span> span184 = CollectionsMarshal.AsSpan(list413); - span184[0] = null; - span184[1] = null; - span184[2] = null; - span184[3] = null; - ref List reference319 = ref span184[4]; - num4 = 2; - List list414 = new List(num4); - CollectionsMarshal.SetCount(list414, num4); - Span span185 = CollectionsMarshal.AsSpan(list414); - span185[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span185[1] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list413); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference319 = ref span8[index3]; + num5 = 2; + List list414 = new List(num5); + CollectionsMarshal.SetCount(list414, num5); + span7 = CollectionsMarshal.AsSpan(list414); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); reference319 = list414; - span184[5] = null; + index3++; + span8[index3] = null; obj257.RequiredQuestVariables = list413; reference318 = obj257; - ref QuestStep reference320 = ref span180[4]; + index2++; + ref QuestStep reference320 = ref span3[index2]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1024313u, new Vector3(-764.12604f, 4.763445f, -441.51984f), 613) { Fly = true }; - num3 = 6; - List> list415 = new List>(num3); - CollectionsMarshal.SetCount(list415, num3); - Span> span186 = CollectionsMarshal.AsSpan(list415); - span186[0] = null; - span186[1] = null; - span186[2] = null; - span186[3] = null; - ref List reference321 = ref span186[4]; + index3 = 6; + List> list415 = new List>(index3); + CollectionsMarshal.SetCount(list415, index3); + span8 = CollectionsMarshal.AsSpan(list415); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference321 = ref span8[num3]; num4 = 2; List list416 = new List(num4); CollectionsMarshal.SetCount(list416, num4); - Span span187 = CollectionsMarshal.AsSpan(list416); - span187[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span187[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list416); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference321 = list416; - span186[5] = null; + num3++; + span8[num3] = null; obj258.RequiredQuestVariables = list415; reference320 = obj258; - ref QuestStep reference322 = ref span180[5]; + index2++; + ref QuestStep reference322 = ref span3[index2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1024314u, new Vector3(-784.48157f, 7.7091823f, -456.9925f), 613) { Fly = true @@ -189558,63 +227140,83 @@ public static class AssemblyQuestLoader num3 = 6; List> list417 = new List>(num3); CollectionsMarshal.SetCount(list417, num3); - Span> span188 = CollectionsMarshal.AsSpan(list417); - span188[0] = null; - span188[1] = null; - span188[2] = null; - span188[3] = null; - ref List reference323 = ref span188[4]; - num4 = 2; - List list418 = new List(num4); - CollectionsMarshal.SetCount(list418, num4); - Span span189 = CollectionsMarshal.AsSpan(list418); - span189[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span189[1] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference323 = ref span8[index3]; + num5 = 2; + List list418 = new List(num5); + CollectionsMarshal.SetCount(list418, num5); + span7 = CollectionsMarshal.AsSpan(list418); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); reference323 = list418; - span188[5] = null; + index3++; + span8[index3] = null; obj259.RequiredQuestVariables = list417; reference322 = obj259; - ref QuestStep reference324 = ref span180[6]; + index2++; + ref QuestStep reference324 = ref span3[index2]; QuestStep obj260 = new QuestStep(EInteractionType.Interact, 1024315u, new Vector3(-797.4823f, 8.045045f, -417.56317f), 613) { Fly = true }; - num3 = 6; - List> list419 = new List>(num3); - CollectionsMarshal.SetCount(list419, num3); - Span> span190 = CollectionsMarshal.AsSpan(list419); - span190[0] = null; - span190[1] = null; - span190[2] = null; - span190[3] = null; - ref List reference325 = ref span190[4]; + index3 = 6; + List> list419 = new List>(index3); + CollectionsMarshal.SetCount(list419, index3); + span8 = CollectionsMarshal.AsSpan(list419); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference325 = ref span8[num3]; num4 = 2; List list420 = new List(num4); CollectionsMarshal.SetCount(list420, num4); - Span span191 = CollectionsMarshal.AsSpan(list420); - span191[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span191[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list420); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference325 = list420; - span190[5] = null; + num3++; + span8[num3] = null; obj260.RequiredQuestVariables = list419; reference324 = obj260; obj254.Steps = list408; reference313 = obj254; - ref QuestSequence reference326 = ref span179[2]; + num++; + ref QuestSequence reference326 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - Span span192 = CollectionsMarshal.AsSpan(list421); - span192[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + span3 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span192[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj261.Steps = list421; reference326 = obj261; questRoot37.QuestSequence = list406; @@ -189624,13 +227226,16 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - CollectionsMarshal.AsSpan(list422)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list422); + index = 0; + span[index] = "plogon_enjoyer"; questRoot38.Author = list422; - num = 3; - List list423 = new List(num); - CollectionsMarshal.SetCount(list423, num); - Span span193 = CollectionsMarshal.AsSpan(list423); - ref QuestSequence reference327 = ref span193[0]; + index = 3; + List list423 = new List(index); + CollectionsMarshal.SetCount(list423, index); + span2 = CollectionsMarshal.AsSpan(list423); + num = 0; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 0 @@ -189638,24 +227243,29 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj262.Steps = list424; reference327 = obj262; - ref QuestSequence reference328 = ref span193[1]; + num++; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - Span span194 = CollectionsMarshal.AsSpan(list425); - span194[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.03552f, -82.86303f, -227.4517f), 613) + index2 = 6; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + span3 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.03552f, -82.86303f, -227.4517f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference329 = ref span194[1]; + num2++; + ref QuestStep reference329 = ref span3[num2]; QuestStep obj264 = new QuestStep(EInteractionType.Interact, 2009119u, new Vector3(-229.26678f, -308.73578f, 449.485f), 613) { Fly = true @@ -189663,43 +227273,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list426 = new List>(num3); CollectionsMarshal.SetCount(list426, num3); - Span> span195 = CollectionsMarshal.AsSpan(list426); - span195[0] = null; - ref List reference330 = ref span195[1]; - num4 = 1; - List list427 = new List(num4); - CollectionsMarshal.SetCount(list427, num4); - CollectionsMarshal.AsSpan(list427)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list426); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference330 = ref span8[index3]; + num5 = 1; + List list427 = new List(num5); + CollectionsMarshal.SetCount(list427, num5); + span7 = CollectionsMarshal.AsSpan(list427); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference330 = list427; - span195[2] = null; - span195[3] = null; - span195[4] = null; - span195[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj264.RequiredQuestVariables = list426; reference329 = obj264; - ref QuestStep reference331 = ref span194[2]; + num2++; + ref QuestStep reference331 = ref span3[num2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 2009120u, new Vector3(-233.9361f, -411.3985f, 372.8236f), 613) { Fly = true }; - num3 = 6; - List> list428 = new List>(num3); - CollectionsMarshal.SetCount(list428, num3); - Span> span196 = CollectionsMarshal.AsSpan(list428); - span196[0] = null; - ref List reference332 = ref span196[1]; + index3 = 6; + List> list428 = new List>(index3); + CollectionsMarshal.SetCount(list428, index3); + span8 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference332 = ref span8[num3]; num4 = 1; List list429 = new List(num4); CollectionsMarshal.SetCount(list429, num4); - CollectionsMarshal.AsSpan(list429)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list429); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference332 = list429; - span196[2] = null; - span196[3] = null; - span196[4] = null; - span196[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj265.RequiredQuestVariables = list428; reference331 = obj265; - ref QuestStep reference333 = ref span194[3]; + num2++; + ref QuestStep reference333 = ref span3[num2]; QuestStep obj266 = new QuestStep(EInteractionType.Interact, 2009121u, new Vector3(-279.62158f, -366.81165f, 408.68237f), 613) { Fly = true @@ -189707,45 +227335,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list430 = new List>(num3); CollectionsMarshal.SetCount(list430, num3); - Span> span197 = CollectionsMarshal.AsSpan(list430); - span197[0] = null; - ref List reference334 = ref span197[1]; - num4 = 2; - List list431 = new List(num4); - CollectionsMarshal.SetCount(list431, num4); - Span span198 = CollectionsMarshal.AsSpan(list431); - span198[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span198[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list430); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference334 = ref span8[index3]; + num5 = 2; + List list431 = new List(num5); + CollectionsMarshal.SetCount(list431, num5); + span7 = CollectionsMarshal.AsSpan(list431); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference334 = list431; - span197[2] = null; - span197[3] = null; - span197[4] = null; - span197[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj266.RequiredQuestVariables = list430; reference333 = obj266; - ref QuestStep reference335 = ref span194[4]; + num2++; + ref QuestStep reference335 = ref span3[num2]; QuestStep obj267 = new QuestStep(EInteractionType.Interact, 2009122u, new Vector3(-286.09143f, -367.422f, 390.2494f), 613) { Fly = true }; - num3 = 6; - List> list432 = new List>(num3); - CollectionsMarshal.SetCount(list432, num3); - Span> span199 = CollectionsMarshal.AsSpan(list432); - span199[0] = null; - ref List reference336 = ref span199[1]; + index3 = 6; + List> list432 = new List>(index3); + CollectionsMarshal.SetCount(list432, index3); + span8 = CollectionsMarshal.AsSpan(list432); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference336 = ref span8[num3]; num4 = 1; List list433 = new List(num4); CollectionsMarshal.SetCount(list433, num4); - CollectionsMarshal.AsSpan(list433)[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list433); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference336 = list433; - span199[2] = null; - span199[3] = null; - span199[4] = null; - span199[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj267.RequiredQuestVariables = list432; reference335 = obj267; - ref QuestStep reference337 = ref span194[5]; + num2++; + ref QuestStep reference337 = ref span3[num2]; QuestStep obj268 = new QuestStep(EInteractionType.Interact, 2009123u, new Vector3(-249.59192f, -325.948f, 472.70923f), 613) { Fly = true @@ -189753,23 +227399,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list434 = new List>(num3); CollectionsMarshal.SetCount(list434, num3); - Span> span200 = CollectionsMarshal.AsSpan(list434); - span200[0] = null; - ref List reference338 = ref span200[1]; - num4 = 1; - List list435 = new List(num4); - CollectionsMarshal.SetCount(list435, num4); - CollectionsMarshal.AsSpan(list435)[0] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list434); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference338 = ref span8[index3]; + num5 = 1; + List list435 = new List(num5); + CollectionsMarshal.SetCount(list435, num5); + span7 = CollectionsMarshal.AsSpan(list435); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference338 = list435; - span200[2] = null; - span200[3] = null; - span200[4] = null; - span200[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj268.RequiredQuestVariables = list434; reference337 = obj268; obj263.Steps = list425; reference328 = obj263; - ref QuestSequence reference339 = ref span193[2]; + num++; + ref QuestSequence reference339 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue @@ -189777,13 +227432,15 @@ public static class AssemblyQuestLoader num2 = 2; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - Span span201 = CollectionsMarshal.AsSpan(list436); - span201[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + span3 = CollectionsMarshal.AsSpan(list436); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span201[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj269.Steps = list436; reference339 = obj269; questRoot38.QuestSequence = list423; @@ -189793,24 +227450,30 @@ public static class AssemblyQuestLoader num = 1; List list437 = new List(num); CollectionsMarshal.SetCount(list437, num); - CollectionsMarshal.AsSpan(list437)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list437); + index = 0; + span[index] = "plogon_enjoyer"; questRoot39.Author = list437; - num = 5; - List list438 = new List(num); - CollectionsMarshal.SetCount(list438, num); - Span span202 = CollectionsMarshal.AsSpan(list438); - ref QuestSequence reference340 = ref span202[0]; + index = 5; + List list438 = new List(index); + CollectionsMarshal.SetCount(list438, index); + span2 = CollectionsMarshal.AsSpan(list438); + num = 0; + ref QuestSequence reference340 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list439 = new List(num2); - CollectionsMarshal.SetCount(list439, num2); - CollectionsMarshal.AsSpan(list439)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list439 = new List(index2); + CollectionsMarshal.SetCount(list439, index2); + span3 = CollectionsMarshal.AsSpan(list439); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj270.Steps = list439; reference340 = obj270; - ref QuestSequence reference341 = ref span202[1]; + num++; + ref QuestSequence reference341 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 @@ -189818,48 +227481,62 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) + span3 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) { Fly = true }; obj271.Steps = list440; reference341 = obj271; - ref QuestSequence reference342 = ref span202[2]; + num++; + ref QuestSequence reference342 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - Span span203 = CollectionsMarshal.AsSpan(list441); - ref QuestStep reference343 = ref span203[0]; + index2 = 5; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + span3 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + ref QuestStep reference343 = ref span3[num2]; QuestStep obj273 = new QuestStep(EInteractionType.UseItem, 2009124u, new Vector3(753.56665f, 0.41192627f, 121.72119f), 613) { Fly = true, ItemId = 2002414u }; - num3 = 6; - List> list442 = new List>(num3); - CollectionsMarshal.SetCount(list442, num3); - Span> span204 = CollectionsMarshal.AsSpan(list442); - span204[0] = null; - span204[1] = null; - span204[2] = null; - ref List reference344 = ref span204[3]; + index3 = 6; + List> list442 = new List>(index3); + CollectionsMarshal.SetCount(list442, index3); + span8 = CollectionsMarshal.AsSpan(list442); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference344 = ref span8[num3]; num4 = 3; List list443 = new List(num4); CollectionsMarshal.SetCount(list443, num4); - Span span205 = CollectionsMarshal.AsSpan(list443); - span205[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span205[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span205[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list443); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference344 = list443; - span204[4] = null; - span204[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj273.RequiredQuestVariables = list442; reference343 = obj273; - ref QuestStep reference345 = ref span203[1]; + num2++; + ref QuestStep reference345 = ref span3[num2]; QuestStep obj274 = new QuestStep(EInteractionType.UseItem, 2009126u, new Vector3(745.41846f, 0.16778564f, 95.750244f), 613) { Fly = true, @@ -189868,46 +227545,64 @@ public static class AssemblyQuestLoader num3 = 6; List> list444 = new List>(num3); CollectionsMarshal.SetCount(list444, num3); - Span> span206 = CollectionsMarshal.AsSpan(list444); - span206[0] = null; - span206[1] = null; - span206[2] = null; - ref List reference346 = ref span206[3]; - num4 = 1; - List list445 = new List(num4); - CollectionsMarshal.SetCount(list445, num4); - CollectionsMarshal.AsSpan(list445)[0] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list444); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference346 = ref span8[index3]; + num5 = 1; + List list445 = new List(num5); + CollectionsMarshal.SetCount(list445, num5); + span7 = CollectionsMarshal.AsSpan(list445); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference346 = list445; - span206[4] = null; - span206[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj274.RequiredQuestVariables = list444; reference345 = obj274; - ref QuestStep reference347 = ref span203[2]; + num2++; + ref QuestStep reference347 = ref span3[num2]; QuestStep obj275 = new QuestStep(EInteractionType.UseItem, 2009127u, new Vector3(745.44885f, 0.16778564f, 95.78088f), 613) { Fly = true, ItemId = 2002414u }; - num3 = 6; - List> list446 = new List>(num3); - CollectionsMarshal.SetCount(list446, num3); - Span> span207 = CollectionsMarshal.AsSpan(list446); - span207[0] = null; - span207[1] = null; - span207[2] = null; - ref List reference348 = ref span207[3]; + index3 = 6; + List> list446 = new List>(index3); + CollectionsMarshal.SetCount(list446, index3); + span8 = CollectionsMarshal.AsSpan(list446); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference348 = ref span8[num3]; num4 = 2; List list447 = new List(num4); CollectionsMarshal.SetCount(list447, num4); - Span span208 = CollectionsMarshal.AsSpan(list447); - span208[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span208[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list447); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference348 = list447; - span207[4] = null; - span207[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj275.RequiredQuestVariables = list446; reference347 = obj275; - ref QuestStep reference349 = ref span203[3]; + num2++; + ref QuestStep reference349 = ref span3[num2]; QuestStep obj276 = new QuestStep(EInteractionType.UseItem, 2009128u, new Vector3(777.1571f, 1.2054443f, 110.36853f), 613) { Fly = true, @@ -189916,48 +227611,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list448 = new List>(num3); CollectionsMarshal.SetCount(list448, num3); - Span> span209 = CollectionsMarshal.AsSpan(list448); - span209[0] = null; - span209[1] = null; - span209[2] = null; - ref List reference350 = ref span209[3]; - num4 = 2; - List list449 = new List(num4); - CollectionsMarshal.SetCount(list449, num4); - Span span210 = CollectionsMarshal.AsSpan(list449); - span210[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span210[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list448); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference350 = ref span8[index3]; + num5 = 2; + List list449 = new List(num5); + CollectionsMarshal.SetCount(list449, num5); + span7 = CollectionsMarshal.AsSpan(list449); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference350 = list449; - span209[4] = null; - span209[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj276.RequiredQuestVariables = list448; reference349 = obj276; - ref QuestStep reference351 = ref span203[4]; + num2++; + ref QuestStep reference351 = ref span3[num2]; QuestStep obj277 = new QuestStep(EInteractionType.UseItem, 2009227u, new Vector3(777.1876f, 1.2359009f, 110.36853f), 613) { Fly = true, ItemId = 2002414u }; - num3 = 6; - List> list450 = new List>(num3); - CollectionsMarshal.SetCount(list450, num3); - Span> span211 = CollectionsMarshal.AsSpan(list450); - span211[0] = null; - span211[1] = null; - span211[2] = null; - ref List reference352 = ref span211[3]; + index3 = 6; + List> list450 = new List>(index3); + CollectionsMarshal.SetCount(list450, index3); + span8 = CollectionsMarshal.AsSpan(list450); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference352 = ref span8[num3]; num4 = 1; List list451 = new List(num4); CollectionsMarshal.SetCount(list451, num4); - CollectionsMarshal.AsSpan(list451)[0] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list451); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference352 = list451; - span211[4] = null; - span211[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj277.RequiredQuestVariables = list450; reference351 = obj277; obj272.Steps = list441; reference342 = obj272; - ref QuestSequence reference353 = ref span202[3]; + num++; + ref QuestSequence reference353 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 3 @@ -189965,26 +227678,31 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) + span3 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) { Fly = true }; obj278.Steps = list452; reference353 = obj278; - ref QuestSequence reference354 = ref span202[4]; + num++; + ref QuestSequence reference354 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - Span span212 = CollectionsMarshal.AsSpan(list453); - span212[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + span3 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true }; - span212[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj279.Steps = list453; reference354 = obj279; questRoot39.QuestSequence = list438; @@ -189994,13 +227712,16 @@ public static class AssemblyQuestLoader num = 1; List list454 = new List(num); CollectionsMarshal.SetCount(list454, num); - CollectionsMarshal.AsSpan(list454)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list454); + index = 0; + span[index] = "plogon_enjoyer"; questRoot40.Author = list454; - num = 3; - List list455 = new List(num); - CollectionsMarshal.SetCount(list455, num); - Span span213 = CollectionsMarshal.AsSpan(list455); - ref QuestSequence reference355 = ref span213[0]; + index = 3; + List list455 = new List(index); + CollectionsMarshal.SetCount(list455, index); + span2 = CollectionsMarshal.AsSpan(list455); + num = 0; + ref QuestSequence reference355 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -190008,64 +227729,87 @@ public static class AssemblyQuestLoader num2 = 1; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj280.Steps = list456; reference355 = obj280; - ref QuestSequence reference356 = ref span213[1]; + num++; + ref QuestSequence reference356 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - Span span214 = CollectionsMarshal.AsSpan(list457); - ref QuestStep reference357 = ref span214[0]; + index2 = 6; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + span3 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference357 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009129u, new Vector3(320.39355f, -0.07635498f, 2.7313232f), 613); num3 = 6; List> list458 = new List>(num3); CollectionsMarshal.SetCount(list458, num3); - Span> span215 = CollectionsMarshal.AsSpan(list458); - span215[0] = null; - ref List reference358 = ref span215[1]; - num4 = 1; - List list459 = new List(num4); - CollectionsMarshal.SetCount(list459, num4); - CollectionsMarshal.AsSpan(list459)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list458); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference358 = ref span8[index3]; + num5 = 1; + List list459 = new List(num5); + CollectionsMarshal.SetCount(list459, num5); + span7 = CollectionsMarshal.AsSpan(list459); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference358 = list459; - span215[2] = null; - span215[3] = null; - span215[4] = null; - span215[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; questStep3.RequiredQuestVariables = list458; reference357 = questStep3; - ref QuestStep reference359 = ref span214[1]; + num2++; + ref QuestStep reference359 = ref span3[num2]; QuestStep obj282 = new QuestStep(EInteractionType.Interact, 2009130u, new Vector3(14.572327f, -0.07635498f, -352.86487f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - num3 = 6; - List> list460 = new List>(num3); - CollectionsMarshal.SetCount(list460, num3); - Span> span216 = CollectionsMarshal.AsSpan(list460); - span216[0] = null; - ref List reference360 = ref span216[1]; + index3 = 6; + List> list460 = new List>(index3); + CollectionsMarshal.SetCount(list460, index3); + span8 = CollectionsMarshal.AsSpan(list460); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference360 = ref span8[num3]; num4 = 3; List list461 = new List(num4); CollectionsMarshal.SetCount(list461, num4); - Span span217 = CollectionsMarshal.AsSpan(list461); - span217[0] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); - span217[1] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); - span217[2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list461); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); reference360 = list461; - span216[2] = null; - span216[3] = null; - span216[4] = null; - span216[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj282.RequiredQuestVariables = list460; reference359 = obj282; - ref QuestStep reference361 = ref span214[2]; + num2++; + ref QuestStep reference361 = ref span3[num2]; QuestStep obj283 = new QuestStep(EInteractionType.Interact, 2009131u, new Vector3(90.13501f, -0.045776367f, 177.50818f), 613) { Fly = true @@ -190073,47 +227817,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list462 = new List>(num3); CollectionsMarshal.SetCount(list462, num3); - Span> span218 = CollectionsMarshal.AsSpan(list462); - span218[0] = null; - ref List reference362 = ref span218[1]; - num4 = 2; - List list463 = new List(num4); - CollectionsMarshal.SetCount(list463, num4); - Span span219 = CollectionsMarshal.AsSpan(list463); - span219[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span219[1] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list462); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference362 = ref span8[index3]; + num5 = 2; + List list463 = new List(num5); + CollectionsMarshal.SetCount(list463, num5); + span7 = CollectionsMarshal.AsSpan(list463); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); reference362 = list463; - span218[2] = null; - span218[3] = null; - span218[4] = null; - span218[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj283.RequiredQuestVariables = list462; reference361 = obj283; - ref QuestStep reference363 = ref span214[3]; + num2++; + ref QuestStep reference363 = ref span3[num2]; QuestStep obj284 = new QuestStep(EInteractionType.Interact, 2009132u, new Vector3(-48.69159f, -0.045776367f, -312.1844f), 613) { Fly = true }; - num3 = 6; - List> list464 = new List>(num3); - CollectionsMarshal.SetCount(list464, num3); - Span> span220 = CollectionsMarshal.AsSpan(list464); - span220[0] = null; - ref List reference364 = ref span220[1]; + index3 = 6; + List> list464 = new List>(index3); + CollectionsMarshal.SetCount(list464, index3); + span8 = CollectionsMarshal.AsSpan(list464); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference364 = ref span8[num3]; num4 = 2; List list465 = new List(num4); CollectionsMarshal.SetCount(list465, num4); - Span span221 = CollectionsMarshal.AsSpan(list465); - span221[0] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span221[1] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list465); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); reference364 = list465; - span220[2] = null; - span220[3] = null; - span220[4] = null; - span220[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj284.RequiredQuestVariables = list464; reference363 = obj284; - ref QuestStep reference365 = ref span214[4]; + num2++; + ref QuestStep reference365 = ref span3[num2]; QuestStep obj285 = new QuestStep(EInteractionType.Interact, 2009133u, new Vector3(23.941406f, -0.19836426f, 192.70618f), 613) { Fly = true @@ -190121,48 +227883,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list466 = new List>(num3); CollectionsMarshal.SetCount(list466, num3); - Span> span222 = CollectionsMarshal.AsSpan(list466); - span222[0] = null; - ref List reference366 = ref span222[1]; - num4 = 1; - List list467 = new List(num4); - CollectionsMarshal.SetCount(list467, num4); - CollectionsMarshal.AsSpan(list467)[0] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list466); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference366 = ref span8[index3]; + num5 = 1; + List list467 = new List(num5); + CollectionsMarshal.SetCount(list467, num5); + span7 = CollectionsMarshal.AsSpan(list467); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); reference366 = list467; - span222[2] = null; - span222[3] = null; - span222[4] = null; - span222[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj285.RequiredQuestVariables = list466; reference365 = obj285; - ref QuestStep reference367 = ref span214[5]; + num2++; + ref QuestStep reference367 = ref span3[num2]; QuestStep obj286 = new QuestStep(EInteractionType.Interact, 2009134u, new Vector3(284.99268f, -0.19836426f, -28.000305f), 613) { Fly = true }; - num3 = 6; - List> list468 = new List>(num3); - CollectionsMarshal.SetCount(list468, num3); - Span> span223 = CollectionsMarshal.AsSpan(list468); - span223[0] = null; - ref List reference368 = ref span223[1]; + index3 = 6; + List> list468 = new List>(index3); + CollectionsMarshal.SetCount(list468, index3); + span8 = CollectionsMarshal.AsSpan(list468); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference368 = ref span8[num3]; num4 = 3; List list469 = new List(num4); CollectionsMarshal.SetCount(list469, num4); - Span span224 = CollectionsMarshal.AsSpan(list469); - span224[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span224[1] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span224[2] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list469); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); reference368 = list469; - span223[2] = null; - span223[3] = null; - span223[4] = null; - span223[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj286.RequiredQuestVariables = list468; reference367 = obj286; obj281.Steps = list457; reference356 = obj281; - ref QuestSequence reference369 = ref span213[2]; + num++; + ref QuestSequence reference369 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = byte.MaxValue @@ -190170,13 +227951,15 @@ public static class AssemblyQuestLoader num2 = 2; List list470 = new List(num2); CollectionsMarshal.SetCount(list470, num2); - Span span225 = CollectionsMarshal.AsSpan(list470); - span225[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + span3 = CollectionsMarshal.AsSpan(list470); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span225[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj287.Steps = list470; reference369 = obj287; questRoot40.QuestSequence = list455; @@ -190186,24 +227969,30 @@ public static class AssemblyQuestLoader num = 1; List list471 = new List(num); CollectionsMarshal.SetCount(list471, num); - CollectionsMarshal.AsSpan(list471)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list471); + index = 0; + span[index] = "Theo"; questRoot41.Author = list471; - num = 3; - List list472 = new List(num); - CollectionsMarshal.SetCount(list472, num); - Span span226 = CollectionsMarshal.AsSpan(list472); - ref QuestSequence reference370 = ref span226[0]; + index = 3; + List list472 = new List(index); + CollectionsMarshal.SetCount(list472, index); + span2 = CollectionsMarshal.AsSpan(list472); + num = 0; + ref QuestSequence reference370 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list473 = new List(num2); - CollectionsMarshal.SetCount(list473, num2); - CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list473 = new List(index2); + CollectionsMarshal.SetCount(list473, index2); + span3 = CollectionsMarshal.AsSpan(list473); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj288.Steps = list473; reference370 = obj288; - ref QuestSequence reference371 = ref span226[1]; + num++; + ref QuestSequence reference371 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = 1 @@ -190211,13 +228000,15 @@ public static class AssemblyQuestLoader num2 = 5; List list474 = new List(num2); CollectionsMarshal.SetCount(list474, num2); - Span span227 = CollectionsMarshal.AsSpan(list474); - span227[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + span3 = CollectionsMarshal.AsSpan(list474); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference372 = ref span227[1]; + index2++; + ref QuestStep reference372 = ref span3[index2]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 2009135u, new Vector3(-77.74481f, -180.6211f, 33.157837f), 613) { Fly = true @@ -190225,43 +228016,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list475 = new List>(num3); CollectionsMarshal.SetCount(list475, num3); - Span> span228 = CollectionsMarshal.AsSpan(list475); - span228[0] = null; - span228[1] = null; - span228[2] = null; - ref List reference373 = ref span228[3]; - num4 = 1; - List list476 = new List(num4); - CollectionsMarshal.SetCount(list476, num4); - CollectionsMarshal.AsSpan(list476)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list475); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference373 = ref span8[index3]; + num5 = 1; + List list476 = new List(num5); + CollectionsMarshal.SetCount(list476, num5); + span7 = CollectionsMarshal.AsSpan(list476); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference373 = list476; - span228[4] = null; - span228[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj290.RequiredQuestVariables = list475; reference372 = obj290; - ref QuestStep reference374 = ref span227[2]; + index2++; + ref QuestStep reference374 = ref span3[index2]; QuestStep obj291 = new QuestStep(EInteractionType.Interact, 2009136u, new Vector3(-150.10309f, -167.01001f, 87.60205f), 613) { Fly = true }; - num3 = 6; - List> list477 = new List>(num3); - CollectionsMarshal.SetCount(list477, num3); - Span> span229 = CollectionsMarshal.AsSpan(list477); - span229[0] = null; - span229[1] = null; - span229[2] = null; - ref List reference375 = ref span229[3]; + index3 = 6; + List> list477 = new List>(index3); + CollectionsMarshal.SetCount(list477, index3); + span8 = CollectionsMarshal.AsSpan(list477); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference375 = ref span8[num3]; num4 = 1; List list478 = new List(num4); CollectionsMarshal.SetCount(list478, num4); - CollectionsMarshal.AsSpan(list478)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list478); + num5 = 0; + span7[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference375 = list478; - span229[4] = null; - span229[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj291.RequiredQuestVariables = list477; reference374 = obj291; - ref QuestStep reference376 = ref span227[3]; + index2++; + ref QuestStep reference376 = ref span3[index2]; QuestStep obj292 = new QuestStep(EInteractionType.Interact, 2009137u, new Vector3(-141.68011f, -149.34009f, -214.64868f), 613) { Fly = true @@ -190269,59 +228078,79 @@ public static class AssemblyQuestLoader num3 = 6; List> list479 = new List>(num3); CollectionsMarshal.SetCount(list479, num3); - Span> span230 = CollectionsMarshal.AsSpan(list479); - span230[0] = null; - span230[1] = null; - span230[2] = null; - ref List reference377 = ref span230[3]; - num4 = 1; - List list480 = new List(num4); - CollectionsMarshal.SetCount(list480, num4); - CollectionsMarshal.AsSpan(list480)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list479); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference377 = ref span8[index3]; + num5 = 1; + List list480 = new List(num5); + CollectionsMarshal.SetCount(list480, num5); + span7 = CollectionsMarshal.AsSpan(list480); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference377 = list480; - span230[4] = null; - span230[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj292.RequiredQuestVariables = list479; reference376 = obj292; - ref QuestStep reference378 = ref span227[4]; + index2++; + ref QuestStep reference378 = ref span3[index2]; QuestStep obj293 = new QuestStep(EInteractionType.Interact, 2009139u, new Vector3(-131.7312f, -191.97375f, -6.1189575f), 613) { Fly = true }; - num3 = 6; - List> list481 = new List>(num3); - CollectionsMarshal.SetCount(list481, num3); - Span> span231 = CollectionsMarshal.AsSpan(list481); - span231[0] = null; - span231[1] = null; - span231[2] = null; - ref List reference379 = ref span231[3]; + index3 = 6; + List> list481 = new List>(index3); + CollectionsMarshal.SetCount(list481, index3); + span8 = CollectionsMarshal.AsSpan(list481); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference379 = ref span8[num3]; num4 = 1; List list482 = new List(num4); CollectionsMarshal.SetCount(list482, num4); - CollectionsMarshal.AsSpan(list482)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list482); + num5 = 0; + span7[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference379 = list482; - span231[4] = null; - span231[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj293.RequiredQuestVariables = list481; reference378 = obj293; obj289.Steps = list474; reference371 = obj289; - ref QuestSequence reference380 = ref span226[2]; + num++; + ref QuestSequence reference380 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list483 = new List(num2); - CollectionsMarshal.SetCount(list483, num2); - Span span232 = CollectionsMarshal.AsSpan(list483); - span232[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list483 = new List(index2); + CollectionsMarshal.SetCount(list483, index2); + span3 = CollectionsMarshal.AsSpan(list483); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span232[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj294.Steps = list483; reference380 = obj294; questRoot41.QuestSequence = list472; @@ -190331,13 +228160,16 @@ public static class AssemblyQuestLoader num = 1; List list484 = new List(num); CollectionsMarshal.SetCount(list484, num); - CollectionsMarshal.AsSpan(list484)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list484); + index = 0; + span[index] = "plogon_enjoyer"; questRoot42.Author = list484; - num = 4; - List list485 = new List(num); - CollectionsMarshal.SetCount(list485, num); - Span span233 = CollectionsMarshal.AsSpan(list485); - ref QuestSequence reference381 = ref span233[0]; + index = 4; + List list485 = new List(index); + CollectionsMarshal.SetCount(list485, index); + span2 = CollectionsMarshal.AsSpan(list485); + num = 0; + ref QuestSequence reference381 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 0 @@ -190345,19 +228177,23 @@ public static class AssemblyQuestLoader num2 = 1; List list486 = new List(num2); CollectionsMarshal.SetCount(list486, num2); - CollectionsMarshal.AsSpan(list486)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list486); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj295.Steps = list486; reference381 = obj295; - ref QuestSequence reference382 = ref span233[1]; + num++; + ref QuestSequence reference382 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list487 = new List(num2); - CollectionsMarshal.SetCount(list487, num2); - Span span234 = CollectionsMarshal.AsSpan(list487); - span234[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 6; + List list487 = new List(index2); + CollectionsMarshal.SetCount(list487, index2); + span3 = CollectionsMarshal.AsSpan(list487); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -190366,7 +228202,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - ref QuestStep reference383 = ref span234[1]; + num2++; + ref QuestStep reference383 = ref span3[num2]; QuestStep obj297 = new QuestStep(EInteractionType.Combat, 2009100u, new Vector3(394.7661f, 16.983276f, 845.9448f), 613) { Fly = true, @@ -190376,30 +228213,43 @@ public static class AssemblyQuestLoader num3 = 1; List list488 = new List(num3); CollectionsMarshal.SetCount(list488, num3); - CollectionsMarshal.AsSpan(list488)[0] = 8242u; + span5 = CollectionsMarshal.AsSpan(list488); + index3 = 0; + span5[index3] = 8242u; obj297.KillEnemyDataIds = list488; - num3 = 6; - List> list489 = new List>(num3); - CollectionsMarshal.SetCount(list489, num3); - Span> span235 = CollectionsMarshal.AsSpan(list489); - span235[0] = null; - span235[1] = null; - span235[2] = null; - span235[3] = null; - ref List reference384 = ref span235[4]; - num4 = 4; - List list490 = new List(num4); - CollectionsMarshal.SetCount(list490, num4); - Span span236 = CollectionsMarshal.AsSpan(list490); - span236[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span236[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span236[2] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span236[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list489 = new List>(index3); + CollectionsMarshal.SetCount(list489, index3); + span8 = CollectionsMarshal.AsSpan(list489); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference384 = ref span8[num3]; + num5 = 4; + List list490 = new List(num5); + CollectionsMarshal.SetCount(list490, num5); + span7 = CollectionsMarshal.AsSpan(list490); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference384 = list490; - span235[5] = null; + num3++; + span8[num3] = null; obj297.RequiredQuestVariables = list489; reference383 = obj297; - ref QuestStep reference385 = ref span234[2]; + num2++; + ref QuestStep reference385 = ref span3[num2]; QuestStep obj298 = new QuestStep(EInteractionType.Combat, 2009101u, new Vector3(460.99023f, 0.56451416f, 889.494f), 613) { Fly = true, @@ -190409,29 +228259,41 @@ public static class AssemblyQuestLoader num3 = 1; List list491 = new List(num3); CollectionsMarshal.SetCount(list491, num3); - CollectionsMarshal.AsSpan(list491)[0] = 8242u; + span5 = CollectionsMarshal.AsSpan(list491); + index3 = 0; + span5[index3] = 8242u; obj298.KillEnemyDataIds = list491; - num3 = 6; - List> list492 = new List>(num3); - CollectionsMarshal.SetCount(list492, num3); - Span> span237 = CollectionsMarshal.AsSpan(list492); - span237[0] = null; - span237[1] = null; - span237[2] = null; - span237[3] = null; - ref List reference386 = ref span237[4]; + index3 = 6; + List> list492 = new List>(index3); + CollectionsMarshal.SetCount(list492, index3); + span8 = CollectionsMarshal.AsSpan(list492); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference386 = ref span8[num3]; num4 = 3; List list493 = new List(num4); CollectionsMarshal.SetCount(list493, num4); - Span span238 = CollectionsMarshal.AsSpan(list493); - span238[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span238[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span238[2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list493); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference386 = list493; - span237[5] = null; + num3++; + span8[num3] = null; obj298.RequiredQuestVariables = list492; reference385 = obj298; - ref QuestStep reference387 = ref span234[3]; + num2++; + ref QuestStep reference387 = ref span3[num2]; QuestStep obj299 = new QuestStep(EInteractionType.Combat, 2009142u, new Vector3(480.4607f, 3.829956f, 841.3672f), 613) { Fly = true, @@ -190441,30 +228303,43 @@ public static class AssemblyQuestLoader num3 = 1; List list494 = new List(num3); CollectionsMarshal.SetCount(list494, num3); - CollectionsMarshal.AsSpan(list494)[0] = 8242u; + span5 = CollectionsMarshal.AsSpan(list494); + index3 = 0; + span5[index3] = 8242u; obj299.KillEnemyDataIds = list494; - num3 = 6; - List> list495 = new List>(num3); - CollectionsMarshal.SetCount(list495, num3); - Span> span239 = CollectionsMarshal.AsSpan(list495); - span239[0] = null; - span239[1] = null; - span239[2] = null; - span239[3] = null; - ref List reference388 = ref span239[4]; - num4 = 4; - List list496 = new List(num4); - CollectionsMarshal.SetCount(list496, num4); - Span span240 = CollectionsMarshal.AsSpan(list496); - span240[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span240[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span240[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span240[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list495 = new List>(index3); + CollectionsMarshal.SetCount(list495, index3); + span8 = CollectionsMarshal.AsSpan(list495); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference388 = ref span8[num3]; + num5 = 4; + List list496 = new List(num5); + CollectionsMarshal.SetCount(list496, num5); + span7 = CollectionsMarshal.AsSpan(list496); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); reference388 = list496; - span239[5] = null; + num3++; + span8[num3] = null; obj299.RequiredQuestVariables = list495; reference387 = obj299; - ref QuestStep reference389 = ref span234[4]; + num2++; + ref QuestStep reference389 = ref span3[num2]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 2009140u, new Vector3(543.1753f, -0.015319824f, 685.7251f), 613) { Fly = true, @@ -190474,30 +228349,41 @@ public static class AssemblyQuestLoader num3 = 2; List list497 = new List(num3); CollectionsMarshal.SetCount(list497, num3); - Span span241 = CollectionsMarshal.AsSpan(list497); - span241[0] = 8243u; - span241[1] = 8243u; + span5 = CollectionsMarshal.AsSpan(list497); + index3 = 0; + span5[index3] = 8243u; + index3++; + span5[index3] = 8243u; obj300.KillEnemyDataIds = list497; - num3 = 6; - List> list498 = new List>(num3); - CollectionsMarshal.SetCount(list498, num3); - Span> span242 = CollectionsMarshal.AsSpan(list498); - span242[0] = null; - span242[1] = null; - span242[2] = null; - span242[3] = null; - ref List reference390 = ref span242[4]; + index3 = 6; + List> list498 = new List>(index3); + CollectionsMarshal.SetCount(list498, index3); + span8 = CollectionsMarshal.AsSpan(list498); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference390 = ref span8[num3]; num4 = 2; List list499 = new List(num4); CollectionsMarshal.SetCount(list499, num4); - Span span243 = CollectionsMarshal.AsSpan(list499); - span243[0] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span243[1] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list499); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); reference390 = list499; - span242[5] = null; + num3++; + span8[num3] = null; obj300.RequiredQuestVariables = list498; reference389 = obj300; - ref QuestStep reference391 = ref span234[5]; + num2++; + ref QuestStep reference391 = ref span3[num2]; QuestStep obj301 = new QuestStep(EInteractionType.Combat, 2009141u, new Vector3(352.1018f, -0.015319824f, 860.31885f), 613) { Fly = true, @@ -190507,33 +228393,45 @@ public static class AssemblyQuestLoader num3 = 2; List list500 = new List(num3); CollectionsMarshal.SetCount(list500, num3); - Span span244 = CollectionsMarshal.AsSpan(list500); - span244[0] = 8243u; - span244[1] = 8243u; + span5 = CollectionsMarshal.AsSpan(list500); + index3 = 0; + span5[index3] = 8243u; + index3++; + span5[index3] = 8243u; obj301.KillEnemyDataIds = list500; - num3 = 6; - List> list501 = new List>(num3); - CollectionsMarshal.SetCount(list501, num3); - Span> span245 = CollectionsMarshal.AsSpan(list501); - span245[0] = null; - span245[1] = null; - span245[2] = null; - span245[3] = null; - ref List reference392 = ref span245[4]; - num4 = 3; - List list502 = new List(num4); - CollectionsMarshal.SetCount(list502, num4); - Span span246 = CollectionsMarshal.AsSpan(list502); - span246[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span246[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span246[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list501 = new List>(index3); + CollectionsMarshal.SetCount(list501, index3); + span8 = CollectionsMarshal.AsSpan(list501); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference392 = ref span8[num3]; + num5 = 3; + List list502 = new List(num5); + CollectionsMarshal.SetCount(list502, num5); + span7 = CollectionsMarshal.AsSpan(list502); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference392 = list502; - span245[5] = null; + num3++; + span8[num3] = null; obj301.RequiredQuestVariables = list501; reference391 = obj301; obj296.Steps = list487; reference382 = obj296; - ref QuestSequence reference393 = ref span233[2]; + num++; + ref QuestSequence reference393 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = 2 @@ -190541,27 +228439,32 @@ public static class AssemblyQuestLoader num2 = 1; List list503 = new List(num2); CollectionsMarshal.SetCount(list503, num2); - CollectionsMarshal.AsSpan(list503)[0] = new QuestStep(EInteractionType.Interact, 1024317u, new Vector3(823.3004f, 5.9230013f, 866.6361f), 613) + span3 = CollectionsMarshal.AsSpan(list503); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024317u, new Vector3(823.3004f, 5.9230013f, 866.6361f), 613) { Fly = true }; obj302.Steps = list503; reference393 = obj302; - ref QuestSequence reference394 = ref span233[3]; + num++; + ref QuestSequence reference394 = ref span2[num]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list504 = new List(num2); - CollectionsMarshal.SetCount(list504, num2); - Span span247 = CollectionsMarshal.AsSpan(list504); - span247[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list504 = new List(index2); + CollectionsMarshal.SetCount(list504, index2); + span3 = CollectionsMarshal.AsSpan(list504); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span247[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj303.Steps = list504; reference394 = obj303; questRoot42.QuestSequence = list485; @@ -190571,13 +228474,16 @@ public static class AssemblyQuestLoader num = 1; List list505 = new List(num); CollectionsMarshal.SetCount(list505, num); - CollectionsMarshal.AsSpan(list505)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list505); + index = 0; + span[index] = "plogon_enjoyer"; questRoot43.Author = list505; - num = 3; - List list506 = new List(num); - CollectionsMarshal.SetCount(list506, num); - Span span248 = CollectionsMarshal.AsSpan(list506); - ref QuestSequence reference395 = ref span248[0]; + index = 3; + List list506 = new List(index); + CollectionsMarshal.SetCount(list506, index); + span2 = CollectionsMarshal.AsSpan(list506); + num = 0; + ref QuestSequence reference395 = ref span2[num]; QuestSequence obj304 = new QuestSequence { Sequence = 0 @@ -190585,35 +228491,42 @@ public static class AssemblyQuestLoader num2 = 1; List list507 = new List(num2); CollectionsMarshal.SetCount(list507, num2); - CollectionsMarshal.AsSpan(list507)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list507); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj304.Steps = list507; reference395 = obj304; - ref QuestSequence reference396 = ref span248[1]; + num++; + ref QuestSequence reference396 = ref span2[num]; QuestSequence obj305 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list508 = new List(num2); - CollectionsMarshal.SetCount(list508, num2); - Span span249 = CollectionsMarshal.AsSpan(list508); - span249[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 4; + List list508 = new List(index2); + CollectionsMarshal.SetCount(list508, index2); + span3 = CollectionsMarshal.AsSpan(list508); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - span249[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-848.8846f, 36.0507f, 300.73306f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-848.8846f, 36.0507f, 300.73306f), 613) { Fly = true, ItemId = 2002422u, GroundTarget = true }; - span249[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-842.2923f, 36.053864f, 319.94763f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-842.2923f, 36.053864f, 319.94763f), 613) { Fly = true, ItemId = 2002422u, GroundTarget = true }; - span249[3] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-873.57074f, 36.01944f, 318.8049f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-873.57074f, 36.01944f, 318.8049f), 613) { Fly = true, ItemId = 2002422u, @@ -190621,7 +228534,8 @@ public static class AssemblyQuestLoader }; obj305.Steps = list508; reference396 = obj305; - ref QuestSequence reference397 = ref span248[2]; + num++; + ref QuestSequence reference397 = ref span2[num]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -190629,13 +228543,15 @@ public static class AssemblyQuestLoader num2 = 2; List list509 = new List(num2); CollectionsMarshal.SetCount(list509, num2); - Span span250 = CollectionsMarshal.AsSpan(list509); - span250[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + span3 = CollectionsMarshal.AsSpan(list509); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span250[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj306.Steps = list509; reference397 = obj306; questRoot43.QuestSequence = list506; @@ -190649,13 +228565,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -190663,24 +228582,29 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 10; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.37f, -83.39401f, -227.2903f), 613) + index2 = 10; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.37f, -83.39401f, -227.2903f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference3 = ref span2[1]; + num2++; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2009216u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true @@ -190688,43 +228612,61 @@ public static class AssemblyQuestLoader int num3 = 6; List> list5 = new List>(num3); CollectionsMarshal.SetCount(list5, num3); - Span> span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - ref List reference4 = ref span3[2]; - int num4 = 1; - List list6 = new List(num4); - CollectionsMarshal.SetCount(list6, num4); - CollectionsMarshal.AsSpan(list6)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference4 = ref span4[num4]; + int num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + Span span5 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference4 = list6; - span3[3] = null; - span3[4] = null; - span3[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj3.RequiredQuestVariables = list5; reference3 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2009217u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true }; - num3 = 6; - List> list7 = new List>(num3); - CollectionsMarshal.SetCount(list7, num3); - Span> span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - ref List reference6 = ref span4[2]; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - CollectionsMarshal.AsSpan(list8)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list7 = new List>(num4); + CollectionsMarshal.SetCount(list7, num4); + span4 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference6 = ref span4[num3]; + index3 = 1; + List list8 = new List(index3); + CollectionsMarshal.SetCount(list8, index3); + span5 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference6 = list8; - span4[3] = null; - span4[4] = null; - span4[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj4.RequiredQuestVariables = list7; reference5 = obj4; - ref QuestStep reference7 = ref span2[3]; + num2++; + ref QuestStep reference7 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2009218u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true @@ -190732,43 +228674,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list9 = new List>(num3); CollectionsMarshal.SetCount(list9, num3); - Span> span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - ref List reference8 = ref span5[2]; - num4 = 1; - List list10 = new List(num4); - CollectionsMarshal.SetCount(list10, num4); - CollectionsMarshal.AsSpan(list10)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference8 = ref span4[num4]; + num5 = 1; + List list10 = new List(num5); + CollectionsMarshal.SetCount(list10, num5); + span5 = CollectionsMarshal.AsSpan(list10); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference8 = list10; - span5[3] = null; - span5[4] = null; - span5[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj5.RequiredQuestVariables = list9; reference7 = obj5; - ref QuestStep reference9 = ref span2[4]; + num2++; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 2009146u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true }; - num3 = 6; - List> list11 = new List>(num3); - CollectionsMarshal.SetCount(list11, num3); - Span> span6 = CollectionsMarshal.AsSpan(list11); - span6[0] = null; - span6[1] = null; - ref List reference10 = ref span6[2]; - num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - CollectionsMarshal.AsSpan(list12)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list11 = new List>(num4); + CollectionsMarshal.SetCount(list11, num4); + span4 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference10 = ref span4[num3]; + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + span5 = CollectionsMarshal.AsSpan(list12); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference10 = list12; - span6[3] = null; - span6[4] = null; - span6[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj6.RequiredQuestVariables = list11; reference9 = obj6; - ref QuestStep reference11 = ref span2[5]; + num2++; + ref QuestStep reference11 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2009147u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true @@ -190776,43 +228736,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list13 = new List>(num3); CollectionsMarshal.SetCount(list13, num3); - Span> span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = null; - span7[1] = null; - ref List reference12 = ref span7[2]; - num4 = 1; - List list14 = new List(num4); - CollectionsMarshal.SetCount(list14, num4); - CollectionsMarshal.AsSpan(list14)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference12 = ref span4[num4]; + num5 = 1; + List list14 = new List(num5); + CollectionsMarshal.SetCount(list14, num5); + span5 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference12 = list14; - span7[3] = null; - span7[4] = null; - span7[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj7.RequiredQuestVariables = list13; reference11 = obj7; - ref QuestStep reference13 = ref span2[6]; + num2++; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2009148u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true }; - num3 = 6; - List> list15 = new List>(num3); - CollectionsMarshal.SetCount(list15, num3); - Span> span8 = CollectionsMarshal.AsSpan(list15); - span8[0] = null; - span8[1] = null; - ref List reference14 = ref span8[2]; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - CollectionsMarshal.AsSpan(list16)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list15 = new List>(num4); + CollectionsMarshal.SetCount(list15, num4); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference14 = ref span4[num3]; + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + span5 = CollectionsMarshal.AsSpan(list16); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference14 = list16; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj8.RequiredQuestVariables = list15; reference13 = obj8; - ref QuestStep reference15 = ref span2[7]; + num2++; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2009149u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true @@ -190820,43 +228798,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list17 = new List>(num3); CollectionsMarshal.SetCount(list17, num3); - Span> span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - ref List reference16 = ref span9[2]; - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - CollectionsMarshal.AsSpan(list18)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference16 = ref span4[num4]; + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span5 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference16 = list18; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj9.RequiredQuestVariables = list17; reference15 = obj9; - ref QuestStep reference17 = ref span2[8]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2009150u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true }; - num3 = 6; - List> list19 = new List>(num3); - CollectionsMarshal.SetCount(list19, num3); - Span> span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = null; - span10[1] = null; - ref List reference18 = ref span10[2]; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - CollectionsMarshal.AsSpan(list20)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list19 = new List>(num4); + CollectionsMarshal.SetCount(list19, num4); + span4 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference18 = ref span4[num3]; + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + span5 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference18 = list20; - span10[3] = null; - span10[4] = null; - span10[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj10.RequiredQuestVariables = list19; reference17 = obj10; - ref QuestStep reference19 = ref span2[9]; + num2++; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2009151u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true @@ -190864,23 +228860,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list21 = new List>(num3); CollectionsMarshal.SetCount(list21, num3); - Span> span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = null; - span11[1] = null; - ref List reference20 = ref span11[2]; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - CollectionsMarshal.AsSpan(list22)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference20 = ref span4[num4]; + num5 = 1; + List list22 = new List(num5); + CollectionsMarshal.SetCount(list22, num5); + span5 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference20 = list22; - span11[3] = null; - span11[4] = null; - span11[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj11.RequiredQuestVariables = list21; reference19 = obj11; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference21 = ref span[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -190888,13 +228893,15 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj12.Steps = list23; reference21 = obj12; questRoot.QuestSequence = list2; @@ -190904,24 +228911,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "plogon_enjoyer"; questRoot2.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference22 = ref span13[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj13.Steps = list26; reference22 = obj13; - ref QuestSequence reference23 = ref span13[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -190929,61 +228942,83 @@ public static class AssemblyQuestLoader num2 = 7; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span14 = CollectionsMarshal.AsSpan(list27); - span14[0] = new QuestStep(EInteractionType.None, null, null, 613) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference24 = ref span14[1]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(-727.74854f, 4.2885633f, 188.58618f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = 8245u; - span15[1] = 8246u; + num4 = 2; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span6 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span6[num3] = 8245u; + num3++; + span6[num3] = 8246u; obj15.KillEnemyDataIds = list28; num3 = 6; List> list29 = new List>(num3); CollectionsMarshal.SetCount(list29, num3); - Span> span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = null; - span16[1] = null; - ref List reference25 = ref span16[2]; - num4 = 1; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - CollectionsMarshal.AsSpan(list30)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference25 = ref span4[num4]; + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + span5 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference25 = list30; - span16[3] = null; - span16[4] = null; - span16[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj15.RequiredQuestVariables = list29; reference24 = obj15; - ref QuestStep reference26 = ref span14[2]; + index2++; + ref QuestStep reference26 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1024320u, new Vector3(-727.74854f, 4.2885633f, 188.58618f), 613); - num3 = 6; - List> list31 = new List>(num3); - CollectionsMarshal.SetCount(list31, num3); - Span> span17 = CollectionsMarshal.AsSpan(list31); - span17[0] = null; - span17[1] = null; - ref List reference27 = ref span17[2]; - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - CollectionsMarshal.AsSpan(list32)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list31 = new List>(num4); + CollectionsMarshal.SetCount(list31, num4); + span4 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference27 = ref span4[num3]; + num5 = 1; + List list32 = new List(num5); + CollectionsMarshal.SetCount(list32, num5); + span5 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference27 = list32; - span17[3] = null; - span17[4] = null; - span17[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep.RequiredQuestVariables = list31; reference26 = questStep; - ref QuestStep reference28 = ref span14[3]; + index2++; + ref QuestStep reference28 = ref span3[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-869.9321f, 36.052956f, 280.29297f), 613) { Fly = true, @@ -190992,113 +229027,156 @@ public static class AssemblyQuestLoader num3 = 3; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span18 = CollectionsMarshal.AsSpan(list33); - span18[0] = 8247u; - span18[1] = 8248u; - span18[2] = 8249u; + span6 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span6[num4] = 8247u; + num4++; + span6[num4] = 8248u; + num4++; + span6[num4] = 8249u; obj16.KillEnemyDataIds = list33; - num3 = 6; - List> list34 = new List>(num3); - CollectionsMarshal.SetCount(list34, num3); - Span> span19 = CollectionsMarshal.AsSpan(list34); - span19[0] = null; - span19[1] = null; - ref List reference29 = ref span19[2]; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - CollectionsMarshal.AsSpan(list35)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list34 = new List>(num4); + CollectionsMarshal.SetCount(list34, num4); + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference29 = ref span4[num3]; + index3 = 1; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + span5 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference29 = list35; - span19[3] = null; - span19[4] = null; - span19[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj16.RequiredQuestVariables = list34; reference28 = obj16; - ref QuestStep reference30 = ref span14[4]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1024322u, new Vector3(-869.9321f, 36.052956f, 280.29297f), 613); num3 = 6; List> list36 = new List>(num3); CollectionsMarshal.SetCount(list36, num3); - Span> span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = null; - span20[1] = null; - ref List reference31 = ref span20[2]; - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - CollectionsMarshal.AsSpan(list37)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference31 = ref span4[num4]; + num5 = 1; + List list37 = new List(num5); + CollectionsMarshal.SetCount(list37, num5); + span5 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference31 = list37; - span20[3] = null; - span20[4] = null; - span20[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; questStep2.RequiredQuestVariables = list36; reference30 = questStep2; - ref QuestStep reference32 = ref span14[5]; + index2++; + ref QuestStep reference32 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(-607.43207f, 7.033699f, 184.71848f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span21 = CollectionsMarshal.AsSpan(list38); - span21[0] = 8244u; - span21[1] = 8246u; + num4 = 2; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span6 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span6[num3] = 8244u; + num3++; + span6[num3] = 8246u; obj17.KillEnemyDataIds = list38; num3 = 6; List> list39 = new List>(num3); CollectionsMarshal.SetCount(list39, num3); - Span> span22 = CollectionsMarshal.AsSpan(list39); - span22[0] = null; - span22[1] = null; - ref List reference33 = ref span22[2]; - num4 = 1; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - CollectionsMarshal.AsSpan(list40)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list39); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference33 = ref span4[num4]; + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span5 = CollectionsMarshal.AsSpan(list40); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference33 = list40; - span22[3] = null; - span22[4] = null; - span22[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj17.RequiredQuestVariables = list39; reference32 = obj17; - ref QuestStep reference34 = ref span14[6]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1024318u, new Vector3(-607.7821f, 7.029549f, 184.83252f), 613); - num3 = 6; - List> list41 = new List>(num3); - CollectionsMarshal.SetCount(list41, num3); - Span> span23 = CollectionsMarshal.AsSpan(list41); - span23[0] = null; - span23[1] = null; - ref List reference35 = ref span23[2]; - num4 = 1; - List list42 = new List(num4); - CollectionsMarshal.SetCount(list42, num4); - CollectionsMarshal.AsSpan(list42)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list41 = new List>(num4); + CollectionsMarshal.SetCount(list41, num4); + span4 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference35 = ref span4[num3]; + num5 = 1; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + span5 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference35 = list42; - span23[3] = null; - span23[4] = null; - span23[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep3.RequiredQuestVariables = list41; reference34 = questStep3; obj14.Steps = list27; reference23 = obj14; - ref QuestSequence reference36 = ref span13[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span24 = CollectionsMarshal.AsSpan(list43); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + index2 = 2; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj18.Steps = list43; reference36 = obj18; questRoot2.QuestSequence = list25; @@ -191108,13 +229186,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "pot0to"; questRoot3.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span25 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference37 = ref span25[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -191122,19 +229203,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj19.Steps = list46; reference37 = obj19; - ref QuestSequence reference38 = ref span25[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span26 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference39 = ref span26[0]; + index2 = 5; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(429.41656f, -0.5f, 506.90598f), 613) { Fly = true, @@ -191143,49 +229228,76 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 8250u; + span6 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span6[num4] = 8250u; obj21.KillEnemyDataIds = list48; obj21.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list49 = new List>(num3); - CollectionsMarshal.SetCount(list49, num3); - Span> span27 = CollectionsMarshal.AsSpan(list49); - span27[0] = null; - span27[1] = null; - span27[2] = null; - ref List reference40 = ref span27[3]; - num4 = 18; - List list50 = new List(num4); - CollectionsMarshal.SetCount(list50, num4); - Span span28 = CollectionsMarshal.AsSpan(list50); - span28[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span28[1] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span28[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); - span28[3] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span28[4] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span28[5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); - span28[6] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span28[7] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span28[8] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); - span28[9] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); - span28[10] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); - span28[11] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); - span28[12] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span28[13] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span28[14] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); - span28[15] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); - span28[16] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); - span28[17] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list49 = new List>(num4); + CollectionsMarshal.SetCount(list49, num4); + span4 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference40 = ref span4[num3]; + index3 = 18; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span5 = CollectionsMarshal.AsSpan(list50); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); reference40 = list50; - span27[4] = null; - span27[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj21.RequiredQuestVariables = list49; reference39 = obj21; - ref QuestStep reference41 = ref span26[1]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(253.2539f, -0.5f, 479.6062f), 613) { Fly = true, @@ -191194,49 +229306,76 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 8250u; + span6 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span6[num4] = 8250u; obj22.KillEnemyDataIds = list51; obj22.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list52 = new List>(num3); - CollectionsMarshal.SetCount(list52, num3); - Span> span29 = CollectionsMarshal.AsSpan(list52); - span29[0] = null; - span29[1] = null; - span29[2] = null; - ref List reference42 = ref span29[3]; - num4 = 18; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span30 = CollectionsMarshal.AsSpan(list53); - span30[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span30[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span30[2] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span30[3] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span30[4] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span30[5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); - span30[6] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span30[7] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span30[8] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span30[9] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); - span30[10] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); - span30[11] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); - span30[12] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span30[13] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); - span30[14] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); - span30[15] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); - span30[16] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); - span30[17] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list52 = new List>(num4); + CollectionsMarshal.SetCount(list52, num4); + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference42 = ref span4[num3]; + num5 = 18; + List list53 = new List(num5); + CollectionsMarshal.SetCount(list53, num5); + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); reference42 = list53; - span29[4] = null; - span29[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj22.RequiredQuestVariables = list52; reference41 = obj22; - ref QuestStep reference43 = ref span26[2]; + num2++; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(94.01074f, -0.5f, 491.844f), 613) { Fly = true, @@ -191245,49 +229384,76 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 8250u; + span6 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span6[num4] = 8250u; obj23.KillEnemyDataIds = list54; obj23.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list55 = new List>(num3); - CollectionsMarshal.SetCount(list55, num3); - Span> span31 = CollectionsMarshal.AsSpan(list55); - span31[0] = null; - span31[1] = null; - span31[2] = null; - ref List reference44 = ref span31[3]; - num4 = 18; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span32 = CollectionsMarshal.AsSpan(list56); - span32[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span32[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span32[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span32[3] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); - span32[4] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span32[5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span32[6] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span32[7] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span32[8] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span32[9] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); - span32[10] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span32[11] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); - span32[12] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span32[13] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); - span32[14] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); - span32[15] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); - span32[16] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); - span32[17] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List> list55 = new List>(num4); + CollectionsMarshal.SetCount(list55, num4); + span4 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference44 = ref span4[num3]; + index3 = 18; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span5 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); reference44 = list56; - span31[4] = null; - span31[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj23.RequiredQuestVariables = list55; reference43 = obj23; - ref QuestStep reference45 = ref span26[3]; + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.0653f, -0.5f, 628.25964f), 613) { Fly = true, @@ -191296,49 +229462,76 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 8250u; + span6 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span6[num4] = 8250u; obj24.KillEnemyDataIds = list57; obj24.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list58 = new List>(num3); - CollectionsMarshal.SetCount(list58, num3); - Span> span33 = CollectionsMarshal.AsSpan(list58); - span33[0] = null; - span33[1] = null; - span33[2] = null; - ref List reference46 = ref span33[3]; - num4 = 18; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span34 = CollectionsMarshal.AsSpan(list59); - span34[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span34[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span34[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); - span34[3] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span34[4] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span34[5] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span34[6] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span34[7] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span34[8] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); - span34[9] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span34[10] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); - span34[11] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); - span34[12] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span34[13] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); - span34[14] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); - span34[15] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); - span34[16] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); - span34[17] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); + num4 = 6; + List> list58 = new List>(num4); + CollectionsMarshal.SetCount(list58, num4); + span4 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference46 = ref span4[num3]; + num5 = 18; + List list59 = new List(num5); + CollectionsMarshal.SetCount(list59, num5); + span5 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); reference46 = list59; - span33[4] = null; - span33[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj24.RequiredQuestVariables = list58; reference45 = obj24; - ref QuestStep reference47 = ref span26[4]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-370.41278f, -0.5f, 863.64526f), 613) { Fly = true, @@ -191347,51 +229540,78 @@ public static class AssemblyQuestLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 8250u; + span6 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span6[num4] = 8250u; obj25.KillEnemyDataIds = list60; obj25.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list61 = new List>(num3); - CollectionsMarshal.SetCount(list61, num3); - Span> span35 = CollectionsMarshal.AsSpan(list61); - span35[0] = null; - span35[1] = null; - span35[2] = null; - ref List reference48 = ref span35[3]; - num4 = 18; - List list62 = new List(num4); - CollectionsMarshal.SetCount(list62, num4); - Span span36 = CollectionsMarshal.AsSpan(list62); - span36[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span36[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span36[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span36[3] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span36[4] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span36[5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); - span36[6] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span36[7] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span36[8] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span36[9] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); - span36[10] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); - span36[11] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); - span36[12] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span36[13] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); - span36[14] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); - span36[15] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); - span36[16] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); - span36[17] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list61 = new List>(num4); + CollectionsMarshal.SetCount(list61, num4); + span4 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference48 = ref span4[num3]; + index3 = 18; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + span5 = CollectionsMarshal.AsSpan(list62); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); reference48 = list62; - span35[4] = null; - span35[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj25.RequiredQuestVariables = list61; reference47 = obj25; obj20.Steps = list47; reference38 = obj20; - ref QuestSequence reference49 = ref span25[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -191399,13 +229619,15 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span37 = CollectionsMarshal.AsSpan(list63); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj26.Steps = list63; reference49 = obj26; questRoot3.QuestSequence = list45; @@ -191415,21 +229637,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot4.Author = list64; - num = 5; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span38 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference50 = ref span38[0]; + index = 5; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -191447,7 +229674,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list66; reference50 = obj27; - ref QuestSequence reference51 = ref span38[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -191455,21 +229683,27 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1024140u, new Vector3(-40.665344f, 15.000004f, 42.22168f), 628); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024140u, new Vector3(-40.665344f, 15.000004f, 42.22168f), 628); obj28.Steps = list67; reference51 = obj28; - ref QuestSequence reference52 = ref span38[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1024155u, new Vector3(-58.18268f, 79.05602f, 43.9917f), 628); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024155u, new Vector3(-58.18268f, 79.05602f, 43.9917f), 628); obj29.Steps = list68; reference52 = obj29; - ref QuestSequence reference53 = ref span38[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -191477,18 +229711,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1024160u, new Vector3(-11.581665f, 0.04687078f, -3.7385254f), 735); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024160u, new Vector3(-11.581665f, 0.04687078f, -3.7385254f), 735); obj30.Steps = list69; reference53 = obj30; - ref QuestSequence reference54 = ref span38[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736) { NextQuestId = new QuestId(3004) }; @@ -191501,13 +229740,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot5.Author = list71; - num = 6; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span39 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span39[0]; + index = 6; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -191515,22 +229757,28 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736); obj32.Steps = list73; reference55 = obj32; - span39[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference56 = ref span39[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Duty, null, null, 736) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 736) { DutyOptions = new DutyOptions { @@ -191539,11 +229787,13 @@ public static class AssemblyQuestLoader }; obj33.Steps = list74; reference56 = obj33; - span39[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference57 = ref span39[4]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -191551,18 +229801,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1024146u, new Vector3(-11.001831f, -3.094841E-06f, -6.8513794f), 735); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024146u, new Vector3(-11.001831f, -3.094841E-06f, -6.8513794f), 735); obj34.Steps = list75; reference57 = obj34; - ref QuestSequence reference58 = ref span39[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3089) @@ -191576,13 +229831,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot6.Author = list77; - num = 2; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span40 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference59 = ref span40[0]; + index = 2; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -191590,8 +229848,9 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span41 = CollectionsMarshal.AsSpan(list79); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -191602,18 +229861,22 @@ public static class AssemblyQuestLoader } } }; - span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj36.Steps = list79; reference59 = obj36; - ref QuestSequence reference60 = ref span40[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AethernetShortcut = new AethernetShortcut { @@ -191630,13 +229893,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; questRoot7.Author = list81; - num = 7; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span42 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference61 = ref span42[0]; + index = 7; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -191644,7 +229910,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024349u, new Vector3(-27.054321f, -1.3048761E-05f, -69.596436f), 628) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024349u, new Vector3(-27.054321f, -1.3048761E-05f, -69.596436f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -191657,18 +229925,22 @@ public static class AssemblyQuestLoader }; obj38.Steps = list83; reference61 = obj38; - ref QuestSequence reference62 = ref span42[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1024350u, new Vector3(-36.02661f, 14.001708f, -45.39563f), 628); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024350u, new Vector3(-36.02661f, 14.001708f, -45.39563f), 628); obj39.Steps = list84; reference62 = obj39; - ref QuestSequence reference63 = ref span42[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -191676,12 +229948,16 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1024350u, new Vector3(-36.02661f, 14.001708f, -45.39563f), 628); num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB711_03008_Q1_000_000"), @@ -191691,78 +229967,108 @@ public static class AssemblyQuestLoader reference64 = questStep4; obj40.Steps = list85; reference63 = obj40; - ref QuestSequence reference65 = ref span42[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span43 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference66 = ref span43[0]; + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1019000u, new Vector3(39.414062f, 4.49998f, -43.47296f), 628); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span44 = CollectionsMarshal.AsSpan(list88); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + span5 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list88; reference66 = questStep5; - ref QuestStep reference67 = ref span43[1]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.72425f, 11.799999f, -147.28041f), 628); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span45 = CollectionsMarshal.AsSpan(list89); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list89); + 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); skipStepConditions.CompletionQuestVariablesFlags = list89; skipConditions.StepIf = skipStepConditions; questStep6.SkipConditions = skipConditions; reference67 = questStep6; - ref QuestStep reference68 = ref span43[2]; + num2++; + ref QuestStep reference68 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019034u, new Vector3(-95.84198f, 11.8f, -147.29541f), 628); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span46 = CollectionsMarshal.AsSpan(list90); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + span5 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list90; reference68 = questStep7; - ref QuestStep reference69 = ref span43[3]; + num2++; + ref QuestStep reference69 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1024409u, new Vector3(-20.920166f, 6.019962f, -133.31812f), 628); num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span47 = CollectionsMarshal.AsSpan(list91); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list91); + 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); questStep8.CompletionQuestVariablesFlags = list91; reference69 = questStep8; obj41.Steps = list87; reference65 = obj41; - ref QuestSequence reference70 = ref span42[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -191770,12 +230076,16 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list92)[0]; + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference71 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628); - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + num4 = 1; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + span7 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB711_03008_Q2_000_000"), @@ -191785,18 +230095,22 @@ public static class AssemblyQuestLoader reference71 = questStep9; obj42.Steps = list92; reference70 = obj42; - ref QuestSequence reference72 = ref span42[5]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1024352u, new Vector3(24.093994f, 6.025086f, -134.02002f), 628); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024352u, new Vector3(24.093994f, 6.025086f, -134.02002f), 628); obj43.Steps = list94; reference72 = obj43; - ref QuestSequence reference73 = ref span42[6]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -191804,7 +230118,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) { NextQuestId = new QuestId(3020) }; @@ -191817,28 +230133,34 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot8.Author = list96; - num = 13; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span48 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference74 = ref span48[0]; + index = 13; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj45.Steps = list98; reference74 = obj45; - ref QuestSequence reference75 = ref span48[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -191846,28 +230168,33 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span49 = CollectionsMarshal.AsSpan(list99); - span49[0] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) { TargetTerritoryId = (ushort)613, Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - span49[1] = new QuestStep(EInteractionType.Interact, 2009398u, new Vector3(279.4994f, 16.55597f, 844.541f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009398u, new Vector3(279.4994f, 16.55597f, 844.541f), 613) { Fly = true }; obj46.Steps = list99; reference75 = obj46; - ref QuestSequence reference76 = ref span48[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -191876,11 +230203,13 @@ public static class AssemblyQuestLoader }; obj47.Steps = list100; reference76 = obj47; - span48[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference77 = ref span48[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -191888,63 +230217,88 @@ public static class AssemblyQuestLoader num2 = 3; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span50 = CollectionsMarshal.AsSpan(list101); - ref QuestStep reference78 = ref span50[0]; + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1025142u, new Vector3(51.5907f, -90.000015f, -492.51547f), 764); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span51 = CollectionsMarshal.AsSpan(list102); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list102); + 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); questStep10.CompletionQuestVariablesFlags = list102; reference78 = questStep10; - ref QuestStep reference79 = ref span50[1]; + index2++; + ref QuestStep reference79 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1025141u, new Vector3(55.161255f, -89.90002f, -459.0982f), 764); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span52 = CollectionsMarshal.AsSpan(list103); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list103; reference79 = questStep11; - ref QuestStep reference80 = ref span50[2]; + index2++; + ref QuestStep reference80 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1025143u, new Vector3(97.67297f, -89.90002f, -480.36932f), 764); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span53 = CollectionsMarshal.AsSpan(list104); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list104); + 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); questStep12.CompletionQuestVariablesFlags = list104; reference80 = questStep12; obj48.Steps = list101; reference77 = obj48; - ref QuestSequence reference81 = ref span48[5]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj49.Steps = list105; reference81 = obj49; - ref QuestSequence reference82 = ref span48[6]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 6 @@ -191952,25 +230306,31 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1025144u, new Vector3(8.804443f, -90f, -470.63403f), 764); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025144u, new Vector3(8.804443f, -90f, -470.63403f), 764); obj50.Steps = list106; reference82 = obj50; - ref QuestSequence reference83 = ref span48[7]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1025148u, new Vector3(509.17822f, 23.72771f, -764.0345f), 614) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025148u, new Vector3(509.17822f, 23.72771f, -764.0345f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj51.Steps = list107; reference83 = obj51; - ref QuestSequence reference84 = ref span48[8]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 8 @@ -191978,7 +230338,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -191987,18 +230349,22 @@ public static class AssemblyQuestLoader }; obj52.Steps = list108; reference84 = obj52; - ref QuestSequence reference85 = ref span48[9]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1025469u, new Vector3(505.5161f, 23.265062f, -768.6732f), 614); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025469u, new Vector3(505.5161f, 23.265062f, -768.6732f), 614); obj53.Steps = list109; reference85 = obj53; - ref QuestSequence reference86 = ref span48[10]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 10 @@ -192006,7 +230372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list110)[0]; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { Fly = true, @@ -192017,10 +230385,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + span7 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDY301_03015_Q7_000_000") @@ -192029,18 +230399,22 @@ public static class AssemblyQuestLoader reference87 = obj55; obj54.Steps = list110; reference86 = obj54; - ref QuestSequence reference88 = ref span48[11]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1025168u, new Vector3(75.638916f, -89.90002f, -503.95975f), 764); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025168u, new Vector3(75.638916f, -89.90002f, -503.95975f), 764); obj56.Steps = list112; reference88 = obj56; - ref QuestSequence reference89 = ref span48[12]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -192048,7 +230422,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3016) @@ -192062,24 +230438,30 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot9.Author = list114; - num = 9; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span54 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference90 = ref span54[0]; + index = 9; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj58.Steps = list116; reference90 = obj58; - ref QuestSequence reference91 = ref span54[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -192087,8 +230469,9 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span55 = CollectionsMarshal.AsSpan(list117); - span55[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -192099,18 +230482,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span55[1] = new QuestStep(EInteractionType.Interact, 1025559u, new Vector3(61.753174f, -90.00002f, -478.11096f), 764); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025559u, new Vector3(61.753174f, -90.00002f, -478.11096f), 764); obj59.Steps = list117; reference91 = obj59; - ref QuestSequence reference92 = ref span54[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1025563u, new Vector3(-485.19116f, 68.82959f, 273.2738f), 614) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025563u, new Vector3(-485.19116f, 68.82959f, 273.2738f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -192122,7 +230509,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list118; reference92 = obj60; - ref QuestSequence reference93 = ref span54[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -192130,7 +230518,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -192139,16 +230529,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list119; reference93 = obj61; - ref QuestSequence reference94 = ref span54[4]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span56 = CollectionsMarshal.AsSpan(list120); - span56[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -192159,10 +230551,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span56[1] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj62.Steps = list120; reference94 = obj62; - ref QuestSequence reference95 = ref span54[5]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 5 @@ -192170,25 +230564,32 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj63.Steps = list121; reference95 = obj63; - span54[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference96 = ref span54[7]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj64.Steps = list122; reference96 = obj64; - ref QuestSequence reference97 = ref span54[8]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -192196,7 +230597,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3152) @@ -192205,153 +230608,32 @@ public static class AssemblyQuestLoader reference97 = obj65; questRoot9.QuestSequence = list115; AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(3017); + QuestId questId10 = new QuestId(3020); QuestRoot questRoot10 = new QuestRoot(); num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "liza"; questRoot10.Author = list124; - num = 3; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span57 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference98 = ref span57[0]; + index = 6; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) - { - AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj66.Steps = list126; - reference98 = obj66; - ref QuestSequence reference99 = ref span57[1]; - QuestSequence obj67 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); - obj67.Steps = list127; - reference99 = obj67; - ref QuestSequence reference100 = ref span57[2]; - QuestSequence obj68 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) - { - NextQuestId = new QuestId(3018) - }; - obj68.Steps = list128; - reference100 = obj68; - questRoot10.QuestSequence = list125; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(3018); - QuestRoot questRoot11 = new QuestRoot(); - num = 1; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "WigglyMuffin"; - questRoot11.Author = list129; - num = 4; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span58 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference101 = ref span58[0]; - QuestSequence obj69 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) - { - AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj69.Steps = list131; - reference101 = obj69; - ref QuestSequence reference102 = ref span58[1]; - QuestSequence obj70 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); - obj70.Steps = list132; - reference102 = obj70; - ref QuestSequence reference103 = ref span58[2]; - QuestSequence obj71 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); - obj71.Steps = list133; - reference103 = obj71; - ref QuestSequence reference104 = ref span58[3]; - QuestSequence obj72 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024586u, new Vector3(-464.31683f, 23.008799f, -321.1872f), 140); - obj72.Steps = list134; - reference104 = obj72; - questRoot11.QuestSequence = list130; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(3020); - QuestRoot questRoot12 = new QuestRoot(); - num = 1; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; - questRoot12.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span59 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference105 = ref span59[0]; - QuestSequence obj73 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list137)[0]; - QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; + QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -192363,29 +230645,33 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + span7 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB721_03020_Q1_000_004"), Answer = new ExcelRef("TEXT_CHRHDB721_03020_A1_000_005") }; - obj74.DialogueChoices = list138; - reference106 = obj74; - obj73.Steps = list137; - reference105 = obj73; - ref QuestSequence reference107 = ref span59[1]; - QuestSequence obj75 = new QuestSequence + obj67.DialogueChoices = list127; + reference99 = obj67; + obj66.Steps = list126; + reference98 = obj66; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span60 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference108 = ref span60[0]; - QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1024711u, new Vector3(136.21729f, 12.000006f, -69.87109f), 628) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference101 = ref span3[index2]; + QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1024711u, new Vector3(136.21729f, 12.000006f, -69.87109f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192393,20 +230679,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeSekiseigumiBarracks } }; - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span61 = CollectionsMarshal.AsSpan(list140); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj76.CompletionQuestVariablesFlags = list140; - reference108 = obj76; - ref QuestStep reference109 = ref span60[1]; - QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628) + num4 = 6; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + span5 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj69.CompletionQuestVariablesFlags = list129; + reference101 = obj69; + index2++; + ref QuestStep reference102 = ref span3[index2]; + QuestStep obj70 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192415,75 +230708,100 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span62 = CollectionsMarshal.AsSpan(list141); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj77.CompletionQuestVariablesFlags = list141; - reference109 = obj77; - ref QuestStep reference110 = ref span60[2]; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + span5 = CollectionsMarshal.AsSpan(list130); + 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); + obj70.CompletionQuestVariablesFlags = list130; + reference102 = obj70; + index2++; + ref QuestStep reference103 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019039u, new Vector3(-35.111023f, 13.999897f, -64.042114f), 628); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span63 = CollectionsMarshal.AsSpan(list142); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list142; - reference110 = questStep13; - obj75.Steps = list139; - reference107 = obj75; - ref QuestSequence reference111 = ref span59[2]; - QuestSequence obj78 = new QuestSequence + num4 = 6; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + span5 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list131; + reference103 = questStep13; + obj68.Steps = list128; + reference100 = obj68; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1024705u, new Vector3(8.590759f, 4f, 35.171997f), 628); - obj78.Steps = list143; - reference111 = obj78; - ref QuestSequence reference112 = ref span59[3]; - QuestSequence obj79 = new QuestSequence + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024705u, new Vector3(8.590759f, 4f, 35.171997f), 628); + obj71.Steps = list132; + reference104 = obj71; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); - obj79.Steps = list144; - reference112 = obj79; - ref QuestSequence reference113 = ref span59[4]; - QuestSequence obj80 = new QuestSequence + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); + obj72.Steps = list133; + reference105 = obj72; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1024709u, new Vector3(-108.01868f, -5.999997f, 70.23718f), 628); - obj80.Steps = list145; - reference113 = obj80; - ref QuestSequence reference114 = ref span59[5]; - QuestSequence obj81 = new QuestSequence + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024709u, new Vector3(-108.01868f, -5.999997f, 70.23718f), 628); + obj73.Steps = list134; + reference106 = obj73; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613) + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -192493,108 +230811,131 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3021) }; - obj81.Steps = list146; - reference114 = obj81; - questRoot12.QuestSequence = list136; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(3021); - QuestRoot questRoot13 = new QuestRoot(); + obj74.Steps = list135; + reference107 = obj74; + questRoot10.QuestSequence = list125; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(3021); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; - questRoot13.Author = list147; - num = 8; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference115 = ref span64[0]; - QuestSequence obj82 = new QuestSequence + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "liza"; + questRoot11.Author = list136; + index = 8; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613); - obj82.Steps = list149; - reference115 = obj82; - ref QuestSequence reference116 = ref span64[1]; - QuestSequence obj83 = new QuestSequence + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613); + obj75.Steps = list138; + reference108 = obj75; + num++; + ref QuestSequence reference109 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) + List list139 = new List(num2); + CollectionsMarshal.SetCount(list139, num2); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) { Fly = true }; - obj83.Steps = list150; - reference116 = obj83; - ref QuestSequence reference117 = ref span64[2]; - QuestSequence obj84 = new QuestSequence + obj76.Steps = list139; + reference109 = obj76; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1024717u, new Vector3(503.44092f, 28.738373f, 737.4226f), 613); - obj84.Steps = list151; - reference117 = obj84; - ref QuestSequence reference118 = ref span64[3]; - QuestSequence obj85 = new QuestSequence + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024717u, new Vector3(503.44092f, 28.738373f, 737.4226f), 613); + obj77.Steps = list140; + reference110 = obj77; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 2008628u, new Vector3(633.81384f, 1.4800415f, 216.26611f), 613) + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008628u, new Vector3(633.81384f, 1.4800415f, 216.26611f), 613) { Fly = true }; - obj85.Steps = list152; - reference118 = obj85; - ref QuestSequence reference119 = ref span64[4]; - QuestSequence obj86 = new QuestSequence + obj78.Steps = list141; + reference111 = obj78; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1024722u, new Vector3(615.4115f, 69.10424f, -79.88104f), 613) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024722u, new Vector3(615.4115f, 69.10424f, -79.88104f), 613) { Fly = true }; - obj86.Steps = list153; - reference119 = obj86; - ref QuestSequence reference120 = ref span64[5]; - QuestSequence obj87 = new QuestSequence + obj79.Steps = list142; + reference112 = obj79; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1024723u, new Vector3(534.2031f, 0.004061999f, -252.58258f), 613) + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024723u, new Vector3(534.2031f, 0.004061999f, -252.58258f), 613) { Fly = true }; - obj87.Steps = list154; - reference120 = obj87; - ref QuestSequence reference121 = ref span64[6]; - QuestSequence obj88 = new QuestSequence + obj80.Steps = list143; + reference113 = obj80; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1024725u, new Vector3(100.02283f, 4.0000014f, 99.25989f), 628) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024725u, new Vector3(100.02283f, 4.0000014f, 99.25989f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -192603,44 +230944,52 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - obj88.Steps = list155; - reference121 = obj88; - ref QuestSequence reference122 = ref span64[7]; - QuestSequence obj89 = new QuestSequence + obj81.Steps = list144; + reference114 = obj81; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628) + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628) { NextQuestId = new QuestId(3094) }; - obj89.Steps = list156; - reference122 = obj89; - questRoot13.QuestSequence = list148; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(3022); - QuestRoot questRoot14 = new QuestRoot(); + obj82.Steps = list145; + reference115 = obj82; + questRoot11.QuestSequence = list137; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(3022); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "JerryWester"; - questRoot14.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span65 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference123 = ref span65[0]; - QuestSequence obj90 = new QuestSequence + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "JerryWester"; + questRoot12.Author = list146; + index = 3; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -192651,17 +231000,20 @@ public static class AssemblyQuestLoader } } }; - obj90.Steps = list159; - reference123 = obj90; - ref QuestSequence reference124 = ref span65[1]; - QuestSequence obj91 = new QuestSequence + obj83.Steps = list148; + reference116 = obj83; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1020463u, new Vector3(151.20166f, 14.7757225f, 95.750244f), 628) + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020463u, new Vector3(151.20166f, 14.7757225f, 95.750244f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -192671,17 +231023,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - obj91.Steps = list160; - reference124 = obj91; - ref QuestSequence reference125 = ref span65[2]; - QuestSequence obj92 = new QuestSequence + obj84.Steps = list149; + reference117 = obj84; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024726u, new Vector3(-11.367981f, 10.503965f, -212.75659f), 628) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024726u, new Vector3(-11.367981f, 10.503965f, -212.75659f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192689,30 +231044,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRakuzaDistrict } }; - obj92.Steps = list161; - reference125 = obj92; - questRoot14.QuestSequence = list158; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(3023); - QuestRoot questRoot15 = new QuestRoot(); + obj85.Steps = list150; + reference118 = obj85; + questRoot12.QuestSequence = list147; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(3023); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; - questRoot15.Author = list162; - num = 3; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span66 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference126 = ref span66[0]; - QuestSequence obj93 = new QuestSequence + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "JerryWester"; + questRoot13.Author = list151; + index = 3; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024727u, new Vector3(-12.375122f, 10.503965f, -213.76367f), 628) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024727u, new Vector3(-12.375122f, 10.503965f, -213.76367f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -192724,17 +231084,20 @@ public static class AssemblyQuestLoader } } }; - obj93.Steps = list164; - reference126 = obj93; - ref QuestSequence reference127 = ref span66[1]; - QuestSequence obj94 = new QuestSequence + obj86.Steps = list153; + reference119 = obj86; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1024731u, new Vector3(89.92139f, 3.9999497f, 52.262085f), 628) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024731u, new Vector3(89.92139f, 3.9999497f, 52.262085f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192742,17 +231105,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - obj94.Steps = list165; - reference127 = obj94; - ref QuestSequence reference128 = ref span66[2]; - QuestSequence obj95 = new QuestSequence + obj87.Steps = list154; + reference120 = obj87; + num++; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019061u, new Vector3(-0.045776367f, -7.9738514E-11f, -80.857605f), 628) + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019061u, new Vector3(-0.045776367f, -7.9738514E-11f, -80.857605f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192760,30 +231126,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - obj95.Steps = list166; - reference128 = obj95; - questRoot15.QuestSequence = list163; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(3024); - QuestRoot questRoot16 = new QuestRoot(); + obj88.Steps = list155; + reference121 = obj88; + questRoot13.QuestSequence = list152; + AddQuest(questId13, questRoot13); + QuestId questId14 = new QuestId(3024); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "JerryWester"; - questRoot16.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span67 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference129 = ref span67[0]; - QuestSequence obj96 = new QuestSequence + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "JerryWester"; + questRoot14.Author = list156; + index = 7; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024738u, new Vector3(1.3884888f, -7.717861E-11f, -78.14148f), 628) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024738u, new Vector3(1.3884888f, -7.717861E-11f, -78.14148f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -192794,52 +231165,237 @@ public static class AssemblyQuestLoader } } }; - obj96.Steps = list169; - reference129 = obj96; - ref QuestSequence reference130 = ref span67[1]; - QuestSequence obj97 = new QuestSequence + obj89.Steps = list158; + reference122 = obj89; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1024743u, new Vector3(-123.1861f, -6.9999976f, -58.854065f), 628); - obj97.Steps = list170; - reference130 = obj97; - ref QuestSequence reference131 = ref span67[2]; - QuestSequence obj98 = new QuestSequence + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024743u, new Vector3(-123.1861f, -6.9999976f, -58.854065f), 628); + obj90.Steps = list159; + reference123 = obj90; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024822u, new Vector3(885.0995f, 1.1792068f, 861.38696f), 613) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024822u, new Vector3(885.0995f, 1.1792068f, 861.38696f), 613) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj98.Steps = list171; - reference131 = obj98; - span67[3] = new QuestSequence + obj91.Steps = list160; + reference124 = obj91; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference132 = ref span67[4]; - QuestSequence obj99 = new QuestSequence + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1024826u, new Vector3(458.94556f, 30.580631f, 748.74475f), 613); + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024826u, new Vector3(458.94556f, 30.580631f, 748.74475f), 613); + obj92.Steps = list161; + reference125 = obj92; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj93 = new QuestSequence + { + Sequence = 5 + }; + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024830u, new Vector3(577.26404f, 0.93538165f, 852.7809f), 613) + { + Fly = true + }; + obj93.Steps = list162; + reference126 = obj93; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj94 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) + { + StopDistance = 7f + }; + obj94.Steps = list163; + reference127 = obj94; + questRoot14.QuestSequence = list157; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(3025); + QuestRoot questRoot15 = new QuestRoot(); + num = 1; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + span = CollectionsMarshal.AsSpan(list164); + index = 0; + span[index] = "JerryWester"; + questRoot15.Author = list164; + index = 7; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + span2 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj95 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024837u, new Vector3(-791.04297f, 12.349811f, -283.8026f), 613) + { + StopDistance = 7f + }; + obj95.Steps = list166; + reference128 = obj95; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj96 = new QuestSequence + { + Sequence = 1 + }; + num2 = 2; + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) + { + TargetTerritoryId = (ushort)614, + Mount = true + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024842u, new Vector3(789.6085f, 99.21144f, -288.5329f), 614) + { + Fly = true + }; + obj96.Steps = list167; + reference129 = obj96; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj97 = new QuestSequence + { + Sequence = 2 + }; + index2 = 2; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref QuestStep reference131 = ref span3[num2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1019285u, new Vector3(195.63586f, 5.16971f, -437.2473f), 614); + num3 = 6; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + span5 = CollectionsMarshal.AsSpan(list169); + 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); + questStep14.CompletionQuestVariablesFlags = list169; + reference131 = questStep14; + num2++; + ref QuestStep reference132 = ref span3[num2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + span5 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list170; + reference132 = questStep15; + obj97.Steps = list168; + reference130 = obj97; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj98 = new QuestSequence + { + Sequence = 3 + }; + num2 = 1; + List list171 = new List(num2); + CollectionsMarshal.SetCount(list171, num2); + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024846u, new Vector3(309.46814f, 17.755785f, -445.97546f), 614); + obj98.Steps = list171; + reference133 = obj98; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj99 = new QuestSequence + { + Sequence = 4 + }; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024847u, new Vector3(59.067627f, 37.21815f, -529.1676f), 614) + { + Fly = true + }; obj99.Steps = list172; - reference132 = obj99; - ref QuestSequence reference133 = ref span67[5]; + reference134 = obj99; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 5 @@ -192847,40 +231403,49 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1024830u, new Vector3(577.26404f, 0.93538165f, 852.7809f), 613) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024849u, new Vector3(57.328125f, 36.90612f, -524.71204f), 614) { - Fly = true + StopDistance = 4f }; obj100.Steps = list173; - reference133 = obj100; - ref QuestSequence reference134 = ref span67[6]; + reference135 = obj100; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { - StopDistance = 7f + Fly = true, + AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj101.Steps = list174; - reference134 = obj101; - questRoot16.QuestSequence = list168; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(3025); - QuestRoot questRoot17 = new QuestRoot(); + reference136 = obj101; + questRoot15.QuestSequence = list165; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(3026); + QuestRoot questRoot16 = new QuestRoot(); num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; - questRoot17.Author = list175; - num = 7; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span68 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference135 = ref span68[0]; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list175; + index = 9; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -192888,147 +231453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024837u, new Vector3(-791.04297f, 12.349811f, -283.8026f), 613) - { - StopDistance = 7f - }; - obj102.Steps = list177; - reference135 = obj102; - ref QuestSequence reference136 = ref span68[1]; - QuestSequence obj103 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span69 = CollectionsMarshal.AsSpan(list178); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) - { - TargetTerritoryId = (ushort)614, - Mount = true - }; - span69[1] = new QuestStep(EInteractionType.Interact, 1024842u, new Vector3(789.6085f, 99.21144f, -288.5329f), 614) - { - Fly = true - }; - obj103.Steps = list178; - reference136 = obj103; - ref QuestSequence reference137 = ref span68[2]; - QuestSequence obj104 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - 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 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; - ref QuestStep reference139 = ref span70[1]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span72 = CollectionsMarshal.AsSpan(list181); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list181; - reference139 = questStep15; - obj104.Steps = list179; - reference137 = obj104; - ref QuestSequence reference140 = ref span68[3]; - QuestSequence obj105 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1024846u, new Vector3(309.46814f, 17.755785f, -445.97546f), 614); - obj105.Steps = list182; - reference140 = obj105; - ref QuestSequence reference141 = ref span68[4]; - QuestSequence obj106 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1024847u, new Vector3(59.067627f, 37.21815f, -529.1676f), 614) - { - Fly = true - }; - obj106.Steps = list183; - reference141 = obj106; - ref QuestSequence reference142 = ref span68[5]; - QuestSequence obj107 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1024849u, new Vector3(57.328125f, 36.90612f, -524.71204f), 614) - { - StopDistance = 4f - }; - obj107.Steps = list184; - reference142 = obj107; - ref QuestSequence reference143 = ref span68[6]; - QuestSequence obj108 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce - }; - obj108.Steps = list185; - reference143 = obj108; - questRoot17.QuestSequence = list176; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(3026); - QuestRoot questRoot18 = new QuestRoot(); - num = 1; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; - questRoot18.Author = list186; - num = 9; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span73 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference144 = ref span73[0]; - QuestSequence obj109 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -193039,82 +231466,98 @@ public static class AssemblyQuestLoader } } }; - obj109.Steps = list188; - reference144 = obj109; - ref QuestSequence reference145 = ref span73[1]; - QuestSequence obj110 = new QuestSequence + obj102.Steps = list177; + reference137 = obj102; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1024955u, new Vector3(350.14868f, 26.448109f, 609.1859f), 614) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024955u, new Vector3(350.14868f, 26.448109f, 609.1859f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - obj110.Steps = list189; - reference145 = obj110; - ref QuestSequence reference146 = ref span73[2]; - QuestSequence obj111 = new QuestSequence + obj103.Steps = list178; + reference138 = obj103; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1024957u, new Vector3(365.9265f, 1.7862457f, 738.9486f), 614) + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024957u, new Vector3(365.9265f, 1.7862457f, 738.9486f), 614) { StopDistance = 5f }; - obj111.Steps = list190; - reference146 = obj111; - ref QuestSequence reference147 = ref span73[3]; - QuestSequence obj112 = new QuestSequence + obj104.Steps = list179; + reference139 = obj104; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1024966u, new Vector3(-472.3125f, 1.2300053f, 537.77356f), 614) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024966u, new Vector3(-472.3125f, 1.2300053f, 537.77356f), 614) { Fly = true }; - obj112.Steps = list191; - reference147 = obj112; - ref QuestSequence reference148 = ref span73[4]; - QuestSequence obj113 = new QuestSequence + obj105.Steps = list180; + reference140 = obj105; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 4 }; num2 = 6; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span74 = CollectionsMarshal.AsSpan(list192); - span74[0] = new QuestStep(EInteractionType.Interact, 1024794u, new Vector3(-493.98032f, 1.3011811f, 542.90063f), 614) + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024794u, new Vector3(-493.98032f, 1.3011811f, 542.90063f), 614) { TargetTerritoryId = (ushort)759 }; - span74[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveDocks }; - span74[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveSouthern }; - span74[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) { Aetheryte = EAetheryteLocation.DomanEnclave }; - span74[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveNorthern }; - ref QuestStep reference149 = ref span74[5]; - QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1024970u, new Vector3(40.238037f, 0f, 5.874695f), 759) + index2++; + ref QuestStep reference142 = ref span3[index2]; + QuestStep obj107 = new QuestStep(EInteractionType.Interact, 1024970u, new Vector3(40.238037f, 0f, 5.874695f), 759) { AethernetShortcut = new AethernetShortcut { @@ -193123,99 +231566,118 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + span7 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDC105_03026_Q1_000_000"), Answer = new ExcelRef("TEXT_STMBDC105_03026_A1_000_001") }; - obj114.DialogueChoices = list193; - reference149 = obj114; - obj113.Steps = list192; - reference148 = obj113; - ref QuestSequence reference150 = ref span73[5]; - QuestSequence obj115 = new QuestSequence + obj107.DialogueChoices = list182; + reference142 = obj107; + obj106.Steps = list181; + reference141 = obj106; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list194)[0]; - QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference144 = ref span3[num2]; + QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new DialogueChoice + num4 = 1; + List list184 = new List(num4); + CollectionsMarshal.SetCount(list184, num4); + span7 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDC105_03026_EVENTAREA_WARP_000_000") }; - obj116.DialogueChoices = list195; - reference151 = obj116; - obj115.Steps = list194; - reference150 = obj115; - span73[6] = new QuestSequence + obj109.DialogueChoices = list184; + reference144 = obj109; + obj108.Steps = list183; + reference143 = obj108; + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference152 = ref span73[7]; - QuestSequence obj117 = new QuestSequence + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1025049u, new Vector3(-0.015319824f, 0.19999999f, -4.837158f), 744) + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025049u, new Vector3(-0.015319824f, 0.19999999f, -4.837158f), 744) { StopDistance = 7f }; - obj117.Steps = list196; - reference152 = obj117; - ref QuestSequence reference153 = ref span73[8]; - QuestSequence obj118 = new QuestSequence + obj110.Steps = list185; + reference145 = obj110; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span75 = CollectionsMarshal.AsSpan(list197); - span75[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + index2 = 2; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759); - obj118.Steps = list197; - reference153 = obj118; - questRoot18.QuestSequence = list187; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(3027); - QuestRoot questRoot19 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759); + obj111.Steps = list186; + reference146 = obj111; + questRoot16.QuestSequence = list176; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(3027); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "JerryWester"; - questRoot19.Author = list198; - num = 5; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span76 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference154 = ref span76[0]; - QuestSequence obj119 = new QuestSequence + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "JerryWester"; + questRoot17.Author = list187; + index = 5; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -193226,213 +231688,252 @@ public static class AssemblyQuestLoader } } }; - obj119.Steps = list200; - reference154 = obj119; - ref QuestSequence reference155 = ref span76[1]; - QuestSequence obj120 = new QuestSequence + obj112.Steps = list189; + reference147 = obj112; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1024980u, new Vector3(-276.26465f, 53.240116f, -368.8869f), 614) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024980u, new Vector3(-276.26465f, 53.240116f, -368.8869f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; - obj120.Steps = list201; - reference155 = obj120; - ref QuestSequence reference156 = ref span76[2]; - QuestSequence obj121 = new QuestSequence + obj113.Steps = list190; + reference148 = obj113; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1024983u, new Vector3(-260.60883f, 53.217503f, -645.594f), 614) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024983u, new Vector3(-260.60883f, 53.217503f, -645.594f), 614) { Fly = true }; - obj121.Steps = list202; - reference156 = obj121; - ref QuestSequence reference157 = ref span76[3]; - QuestSequence obj122 = new QuestSequence + obj114.Steps = list191; + reference149 = obj114; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span77 = CollectionsMarshal.AsSpan(list203); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.07507f, 1.2300062f, -345.90344f), 614) + index2 = 2; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.07507f, 1.2300062f, -345.90344f), 614) { Fly = true }; - span77[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024986u, new Vector3(-348.9281f, 1.230035f, -344.13672f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024986u, new Vector3(-348.9281f, 1.230035f, -344.13672f), 614) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj122.Steps = list203; - reference157 = obj122; - ref QuestSequence reference158 = ref span76[4]; - QuestSequence obj123 = new QuestSequence + obj115.Steps = list192; + reference150 = obj115; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) + { + StopDistance = 5f + }; + obj116.Steps = list193; + reference151 = obj116; + questRoot17.QuestSequence = list188; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(3028); + QuestRoot questRoot18 = new QuestRoot(); + num = 1; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "JerryWester"; + questRoot18.Author = list194; + index = 3; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj117 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) + { + StopDistance = 5f + }; + obj117.Steps = list196; + reference152 = obj117; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj118 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025026u, new Vector3(3.7078857f, 0f, 17.471558f), 759) + { + AetheryteShortcut = EAetheryteLocation.DomanEnclave + }; + obj118.Steps = list197; + reference153 = obj118; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj119 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + ref QuestStep reference155 = ref span3[num2]; + QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) + { + TargetTerritoryId = (ushort)744 + }; + num3 = 1; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + span7 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span7[num4] = new DialogueChoice + { + Type = EDialogChoiceType.YesNo, + Prompt = new ExcelRef("TEXT_STMBDC107_03028_EVENTAREA_WARP_000_056") + }; + obj120.DialogueChoices = list199; + reference155 = obj120; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + obj119.Steps = list198; + reference154 = obj119; + questRoot18.QuestSequence = list195; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(3029); + QuestRoot questRoot19 = new QuestRoot(); + num = 1; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "JerryWester"; + questRoot19.Author = list200; + index = 5; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj121 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025008u, new Vector3(-0.19836426f, 0.021091364f, -2.7619019f), 744) + { + StopDistance = 1f, + DelaySecondsAtStart = 3f + }; + obj121.Steps = list202; + reference156 = obj121; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj122 = new QuestSequence + { + Sequence = 1 + }; + index2 = 2; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + { + TargetTerritoryId = (ushort)759 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025012u, new Vector3(1.5715942f, 0f, 18.631226f), 759); + obj122.Steps = list203; + reference157 = obj122; + num++; + span2[num] = new QuestSequence + { + Sequence = 2 + }; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj123 = new QuestSequence + { + Sequence = 3 + }; + 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) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025019u, new Vector3(366.53687f, 1.286227f, 746.2118f), 614) { StopDistance = 5f }; obj123.Steps = list204; reference158 = obj123; - questRoot19.QuestSequence = list199; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(3028); - QuestRoot questRoot20 = new QuestRoot(); - num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "JerryWester"; - questRoot20.Author = list205; - num = 3; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span78 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference159 = ref span78[0]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj124 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) - { - StopDistance = 5f - }; - obj124.Steps = list207; - reference159 = obj124; - ref QuestSequence reference160 = ref span78[1]; - QuestSequence obj125 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1025026u, new Vector3(3.7078857f, 0f, 17.471558f), 759) - { - AetheryteShortcut = EAetheryteLocation.DomanEnclave - }; - obj125.Steps = list208; - reference160 = obj125; - ref QuestSequence reference161 = ref span78[2]; - QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - 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 - }; - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_STMBDC107_03028_EVENTAREA_WARP_000_056") - }; - obj127.DialogueChoices = list210; - reference162 = obj127; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); - obj126.Steps = list209; - reference161 = obj126; - questRoot20.QuestSequence = list206; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(3029); - QuestRoot questRoot21 = new QuestRoot(); - num = 1; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "JerryWester"; - questRoot21.Author = list211; - num = 5; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span80 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference163 = ref span80[0]; - QuestSequence obj128 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025008u, new Vector3(-0.19836426f, 0.021091364f, -2.7619019f), 744) - { - StopDistance = 1f, - DelaySecondsAtStart = 3f - }; - obj128.Steps = list213; - reference163 = obj128; - ref QuestSequence reference164 = ref span80[1]; - QuestSequence obj129 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span81 = CollectionsMarshal.AsSpan(list214); - span81[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) - { - TargetTerritoryId = (ushort)759 - }; - span81[1] = new QuestStep(EInteractionType.Interact, 1025012u, new Vector3(1.5715942f, 0f, 18.631226f), 759); - obj129.Steps = list214; - reference164 = obj129; - span80[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference165 = ref span80[3]; - QuestSequence obj130 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1025019u, new Vector3(366.53687f, 1.286227f, 746.2118f), 614) - { - StopDistance = 5f - }; - obj130.Steps = list215; - reference165 = obj130; - ref QuestSequence reference166 = ref span80[4]; - QuestSequence obj131 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span82 = CollectionsMarshal.AsSpan(list216); - span82[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -193442,34 +231943,196 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); - obj131.Steps = list216; - reference166 = obj131; - questRoot21.QuestSequence = list212; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(3031); - QuestRoot questRoot22 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + obj124.Steps = list205; + reference159 = obj124; + questRoot19.QuestSequence = list201; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(3031); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; - questRoot22.Author = list217; - num = 3; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span83 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference167 = ref span83[0]; - QuestSequence obj132 = new QuestSequence + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "liza"; + questRoot20.Author = list206; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + obj125.Steps = list208; + reference160 = obj125; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj126 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.FringesPeeringStones + }; + obj126.Steps = list209; + reference161 = obj126; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj127 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + { + StopDistance = 7f, + NextQuestId = new QuestId(3032) + }; + obj127.Steps = list210; + reference162 = obj127; + questRoot20.QuestSequence = list207; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(3032); + QuestRoot questRoot21 = new QuestRoot(); + num = 1; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "liza"; + questRoot21.Author = list211; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj128 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + { + StopDistance = 7f + }; + obj128.Steps = list213; + reference163 = obj128; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj129 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) + { + StopDistance = 6f + }; + obj129.Steps = list214; + reference164 = obj129; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj130 = new QuestSequence + { + Sequence = 2 + }; + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 756) + { + DutyOptions = new DutyOptions + { + ContentFinderConditionId = 286u + } + }; + obj130.Steps = list215; + reference165 = obj130; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj131 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + { + StopDistance = 7f, + NextQuestId = new QuestId(3033) + }; + obj131.Steps = list216; + reference166 = obj131; + questRoot21.QuestSequence = list212; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(3033); + QuestRoot questRoot22 = new QuestRoot(); + num = 1; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; + questRoot22.Author = list217; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj132 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + { + StopDistance = 7f + }; obj132.Steps = list219; reference167 = obj132; - ref QuestSequence reference168 = ref span83[1]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -193477,397 +232140,320 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.FringesPeeringStones - }; - obj133.Steps = list220; - reference168 = obj133; - ref QuestSequence reference169 = ref span83[2]; - QuestSequence obj134 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) - { - StopDistance = 7f, - NextQuestId = new QuestId(3032) - }; - obj134.Steps = list221; - reference169 = obj134; - questRoot22.QuestSequence = list218; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(3032); - QuestRoot questRoot23 = new QuestRoot(); - num = 1; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; - questRoot23.Author = list222; - num = 4; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span84 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference170 = ref span84[0]; - QuestSequence obj135 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) - { - StopDistance = 7f - }; - obj135.Steps = list224; - reference170 = obj135; - ref QuestSequence reference171 = ref span84[1]; - QuestSequence obj136 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) - { - StopDistance = 6f - }; - obj136.Steps = list225; - reference171 = obj136; - ref QuestSequence reference172 = ref span84[2]; - QuestSequence obj137 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) - { - DutyOptions = new DutyOptions - { - ContentFinderConditionId = 286u - } - }; - obj137.Steps = list226; - reference172 = obj137; - ref QuestSequence reference173 = ref span84[3]; - QuestSequence obj138 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) - { - StopDistance = 7f, - NextQuestId = new QuestId(3033) - }; - obj138.Steps = list227; - reference173 = obj138; - questRoot23.QuestSequence = list223; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(3033); - QuestRoot questRoot24 = new QuestRoot(); - num = 1; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; - questRoot24.Author = list228; - num = 5; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span85 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference174 = ref span85[0]; - QuestSequence obj139 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) - { - StopDistance = 7f - }; - obj139.Steps = list230; - reference174 = obj139; - ref QuestSequence reference175 = ref span85[1]; - QuestSequence obj140 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1024790u, new Vector3(-81.92572f, -72.25f, 172.7168f), 756) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024790u, new Vector3(-81.92572f, -72.25f, 172.7168f), 756) { StopDistance = 5f }; - obj140.Steps = list231; - reference175 = obj140; - ref QuestSequence reference176 = ref span85[2]; - QuestSequence obj141 = new QuestSequence + obj133.Steps = list220; + reference168 = obj133; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { ContentFinderConditionId = 287u } }; - obj141.Steps = list232; - reference176 = obj141; - ref QuestSequence reference177 = ref span85[3]; - QuestSequence obj142 = new QuestSequence + obj134.Steps = list221; + reference169 = obj134; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f }; - obj142.Steps = list233; - reference177 = obj142; - ref QuestSequence reference178 = ref span85[4]; - QuestSequence obj143 = new QuestSequence + obj135.Steps = list222; + reference170 = obj135; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024749u, new Vector3(463.79797f, 69.36809f, 520.31726f), 612) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024749u, new Vector3(463.79797f, 69.36809f, 520.31726f), 612) { NextQuestId = new QuestId(3034) }; - obj143.Steps = list234; - reference178 = obj143; - questRoot24.QuestSequence = list229; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(3034); - QuestRoot questRoot25 = new QuestRoot(); + obj136.Steps = list223; + reference171 = obj136; + questRoot22.QuestSequence = list218; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(3034); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; - questRoot25.Author = list235; - num = 5; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span86 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference179 = ref span86[0]; - QuestSequence obj144 = new QuestSequence + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + span = CollectionsMarshal.AsSpan(list224); + index = 0; + span[index] = "liza"; + questRoot23.Author = list224; + index = 5; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + span2 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024750u, new Vector3(464.28625f, 69.317245f, 519.3103f), 612) + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024750u, new Vector3(464.28625f, 69.317245f, 519.3103f), 612) { StopDistance = 5f }; - obj144.Steps = list237; - reference179 = obj144; - ref QuestSequence reference180 = ref span86[1]; - QuestSequence obj145 = new QuestSequence + obj137.Steps = list226; + reference172 = obj137; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span87 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference181 = ref span87[0]; + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = new DialogueChoice + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span7 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR204_03034_SYSTEM_000_026") }; - questStep16.DialogueChoices = list239; - reference181 = questStep16; - span87[1] = new QuestStep(EInteractionType.Interact, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) + questStep16.DialogueChoices = list228; + reference174 = questStep16; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) { StopDistance = 7f }; - obj145.Steps = list238; - reference180 = obj145; - ref QuestSequence reference182 = ref span86[2]; - QuestSequence obj146 = new QuestSequence + obj138.Steps = list227; + reference173 = obj138; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) { StopDistance = 7f }; - obj146.Steps = list240; - reference182 = obj146; - ref QuestSequence reference183 = ref span86[3]; - QuestSequence obj147 = new QuestSequence + obj139.Steps = list229; + reference175 = obj139; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { ContentFinderConditionId = 288u } }; - obj147.Steps = list241; - reference183 = obj147; - ref QuestSequence reference184 = ref span86[4]; - QuestSequence obj148 = new QuestSequence + obj140.Steps = list230; + reference176 = obj140; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f, NextQuestId = new QuestId(3035) }; - obj148.Steps = list242; - reference184 = obj148; - questRoot25.QuestSequence = list236; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(3035); - QuestRoot questRoot26 = new QuestRoot(); + obj141.Steps = list231; + reference177 = obj141; + questRoot23.QuestSequence = list225; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(3035); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - CollectionsMarshal.AsSpan(list243)[0] = "liza"; - questRoot26.Author = list243; - num = 6; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span88 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference185 = ref span88[0]; - QuestSequence obj149 = new QuestSequence + List list232 = new List(num); + CollectionsMarshal.SetCount(list232, num); + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "liza"; + questRoot24.Author = list232; + index = 6; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) { StopDistance = 7f }; - obj149.Steps = list245; - reference185 = obj149; - ref QuestSequence reference186 = ref span88[1]; - QuestSequence obj150 = new QuestSequence + obj142.Steps = list234; + reference178 = obj142; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) { StopDistance = 7f }; - obj150.Steps = list246; - reference186 = obj150; - ref QuestSequence reference187 = ref span88[2]; - QuestSequence obj151 = new QuestSequence + obj143.Steps = list235; + reference179 = obj143; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { ContentFinderConditionId = 289u } }; - obj151.Steps = list247; - reference187 = obj151; - span88[3] = new QuestSequence + obj144.Steps = list236; + reference180 = obj144; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference188 = ref span88[4]; - QuestSequence obj152 = new QuestSequence + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); - obj152.Steps = list248; - reference188 = obj152; - ref QuestSequence reference189 = ref span88[5]; - QuestSequence obj153 = new QuestSequence + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); + obj145.Steps = list237; + reference181 = obj145; + num++; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(3154) }; - obj153.Steps = list249; - reference189 = obj153; - questRoot26.QuestSequence = list244; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(3036); - QuestRoot questRoot27 = new QuestRoot(); + obj146.Steps = list238; + reference182 = obj146; + questRoot24.QuestSequence = list233; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(3036); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; - questRoot27.Author = list250; - num = 4; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span89 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference190 = ref span89[0]; - QuestSequence obj154 = new QuestSequence + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "liza"; + questRoot25.Author = list239; + index = 4; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -193878,467 +232464,557 @@ public static class AssemblyQuestLoader } } }; - obj154.Steps = list252; - reference190 = obj154; - ref QuestSequence reference191 = ref span89[1]; - QuestSequence obj155 = new QuestSequence + obj147.Steps = list241; + reference183 = obj147; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) { Fly = true }; - obj155.Steps = list253; - reference191 = obj155; - ref QuestSequence reference192 = ref span89[2]; - QuestSequence obj156 = new QuestSequence + obj148.Steps = list242; + reference184 = obj148; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1024894u, new Vector3(21.744019f, -0.05840592f, 13.01593f), 635) + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024894u, new Vector3(21.744019f, -0.05840592f, 13.01593f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - obj156.Steps = list254; - reference192 = obj156; - ref QuestSequence reference193 = ref span89[3]; - QuestSequence obj157 = new QuestSequence + obj149.Steps = list243; + reference185 = obj149; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list255)[0]; - QuestStep obj158 = new QuestStep(EInteractionType.CompleteQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref QuestStep reference187 = ref span3[num2]; + QuestStep obj151 = new QuestStep(EInteractionType.CompleteQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; num3 = 2; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span90 = CollectionsMarshal.AsSpan(list256); - span90[0] = new DialogueChoice + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + span7 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA001_03036_Q2_000_000"), Answer = new ExcelRef("TEXT_BANANA001_03036_A2_000_001") }; - span90[1] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA001_03036_Q3_000_000"), Answer = new ExcelRef("TEXT_BANANA001_03036_A3_000_001") }; - obj158.DialogueChoices = list256; - reference194 = obj158; - obj157.Steps = list255; - reference193 = obj157; - questRoot27.QuestSequence = list251; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(3037); - QuestRoot questRoot28 = new QuestRoot(); + obj151.DialogueChoices = list245; + reference187 = obj151; + obj150.Steps = list244; + reference186 = obj150; + questRoot25.QuestSequence = list240; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(3037); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "plogon_enjoyer"; - questRoot28.Author = list257; - num = 9; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span91 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference195 = ref span91[0]; - QuestSequence obj159 = new QuestSequence + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + span = CollectionsMarshal.AsSpan(list246); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot26.Author = list246; + index = 9; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + span2 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); - obj159.Steps = list259; + List list248 = new List(num2); + CollectionsMarshal.SetCount(list248, num2); + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + obj152.Steps = list248; + reference188 = obj152; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj153 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024896u, new Vector3(-630.2129f, 130.26343f, -452.20117f), 612) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens + }; + obj153.Steps = list249; + reference189 = obj153; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj154 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024897u, new Vector3(-76.40198f, -5.32758E-12f, -48.233826f), 635) + { + Mount = true, + AetheryteShortcut = EAetheryteLocation.RhalgrsReach, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.RhalgrsReach, + To = EAetheryteLocation.RhalgrsReachWest + } + }; + obj154.Steps = list250; + reference190 = obj154; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj155 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.FringesPeeringStones + }; + obj155.Steps = list251; + reference191 = obj155; + num++; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj156 = new QuestSequence + { + Sequence = 4 + }; + num2 = 1; + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024900u, new Vector3(-50.980408f, 56.02146f, 218.46338f), 612) + { + Fly = true + }; + obj156.Steps = list252; + reference192 = obj156; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj157 = new QuestSequence + { + Sequence = 5 + }; + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + { + Fly = true, + Action = EAction.BuffetGriffin + }; + obj157.Steps = list253; + reference193 = obj157; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj158 = new QuestSequence + { + Sequence = 6 + }; + num2 = 1; + List list254 = new List(num2); + CollectionsMarshal.SetCount(list254, num2); + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + { + Fly = true, + Action = EAction.BuffetGriffin + }; + obj158.Steps = list254; + reference194 = obj158; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj159 = new QuestSequence + { + Sequence = 7 + }; + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + { + Fly = true, + Action = EAction.BuffetGriffin + }; + obj159.Steps = list255; reference195 = obj159; - ref QuestSequence reference196 = ref span91[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj160 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list256 = new List(num2); + CollectionsMarshal.SetCount(list256, num2); + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + { + Mount = false + }; + obj160.Steps = list256; + reference196 = obj160; + questRoot26.QuestSequence = list247; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(3038); + QuestRoot questRoot27 = new QuestRoot(); + num = 1; + List list257 = new List(num); + CollectionsMarshal.SetCount(list257, num); + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot27.Author = list257; + index = 9; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj161 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + obj161.Steps = list259; + reference197 = obj161; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 1 }; num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1024896u, new Vector3(-630.2129f, 130.26343f, -452.20117f), 612) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024903u, new Vector3(111.31445f, 39.096542f, 296.34546f), 612) { - Fly = true, - AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens + Fly = true }; - obj160.Steps = list260; - reference196 = obj160; - ref QuestSequence reference197 = ref span91[2]; - QuestSequence obj161 = new QuestSequence + obj162.Steps = list260; + reference198 = obj162; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1024897u, new Vector3(-76.40198f, -5.32758E-12f, -48.233826f), 635) + index2 = 3; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620) { - Mount = true, - AetheryteShortcut = EAetheryteLocation.RhalgrsReach, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RhalgrsReach, - To = EAetheryteLocation.RhalgrsReachWest - } + Fly = true, + AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - obj161.Steps = list261; - reference197 = obj161; - ref QuestSequence reference198 = ref span91[3]; - QuestSequence obj162 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021587u, new Vector3(-210.68134f, 257.8064f, 767.4829f), 620) + { + Fly = true + }; + obj163.Steps = list261; + reference199 = obj163; + num++; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 3 }; num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.FringesPeeringStones - }; - obj162.Steps = list262; - reference198 = obj162; - ref QuestSequence reference199 = ref span91[4]; - QuestSequence obj163 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1024900u, new Vector3(-50.980408f, 56.02146f, 218.46338f), 612) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024906u, new Vector3(-239.12415f, 258.90652f, 782.62f), 620) { Fly = true }; - obj163.Steps = list263; - reference199 = obj163; - ref QuestSequence reference200 = ref span91[5]; - QuestSequence obj164 = new QuestSequence + obj164.Steps = list262; + reference200 = obj164; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj165 = new QuestSequence + { + Sequence = 4 + }; + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024908u, new Vector3(-238.91058f, 266.39832f, 508.14062f), 620) + { + Fly = true + }; + obj165.Steps = list263; + reference201 = obj165; + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 5 }; num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) { Fly = true, - Action = EAction.BuffetGriffin + AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - obj164.Steps = list264; - reference200 = obj164; - ref QuestSequence reference201 = ref span91[6]; - QuestSequence obj165 = new QuestSequence + obj166.Steps = list264; + reference202 = obj166; + num++; + ref QuestSequence reference203 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024912u, new Vector3(-92.27136f, 50.00444f, 186.29736f), 612) { - Fly = true, - Action = EAction.BuffetGriffin + Fly = true }; - obj165.Steps = list265; - reference201 = obj165; - ref QuestSequence reference202 = ref span91[7]; - QuestSequence obj166 = new QuestSequence + obj167.Steps = list265; + reference203 = obj167; + num++; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 7 }; - num2 = 1; + num2 = 2; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.2359f, 43.672523f, -133.15985f), 612) { - Fly = true, - Action = EAction.BuffetGriffin + Fly = true }; - obj166.Steps = list266; - reference202 = obj166; - ref QuestSequence reference203 = ref span91[8]; - QuestSequence obj167 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 2009281u, new Vector3(-209.79633f, 42.70996f, -153.85675f), 612) + { + Land = true, + Action = EAction.Trample + }; + obj168.Steps = list266; + reference204 = obj168; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.853586f, 55.943962f, 237.26181f), 612) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) { Mount = false }; - obj167.Steps = list267; - reference203 = obj167; - questRoot28.QuestSequence = list258; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(3038); - QuestRoot questRoot29 = new QuestRoot(); + obj169.Steps = list267; + reference205 = obj169; + questRoot27.QuestSequence = list258; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(3039); + QuestRoot questRoot28 = new QuestRoot(); num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "plogon_enjoyer"; - questRoot29.Author = list268; - num = 9; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span92 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference204 = ref span92[0]; - QuestSequence obj168 = new QuestSequence + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot28.Author = list268; + index = 9; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); - obj168.Steps = list270; - reference204 = obj168; - ref QuestSequence reference205 = ref span92[1]; - QuestSequence obj169 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + obj170.Steps = list270; + reference206 = obj170; + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1024903u, new Vector3(111.31445f, 39.096542f, 296.34546f), 612) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { Fly = true }; - obj169.Steps = list271; - reference205 = obj169; - ref QuestSequence reference206 = ref span92[2]; - QuestSequence obj170 = new QuestSequence + obj171.Steps = list271; + reference207 = obj171; + num++; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 3; + num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span93 = CollectionsMarshal.AsSpan(list272); - span93[0] = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { - Fly = true, - AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri + ItemId = 2002429u, + GroundTarget = true }; - span93[1] = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620) - { - Fly = true - }; - span93[2] = new QuestStep(EInteractionType.Interact, 1021587u, new Vector3(-210.68134f, 257.8064f, 767.4829f), 620) - { - Fly = true - }; - obj170.Steps = list272; - reference206 = obj170; - ref QuestSequence reference207 = ref span92[3]; - QuestSequence obj171 = new QuestSequence + obj172.Steps = list272; + reference208 = obj172; + num++; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1024906u, new Vector3(-239.12415f, 258.90652f, 782.62f), 620) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { - Fly = true + ItemId = 2002429u, + GroundTarget = true }; - obj171.Steps = list273; - reference207 = obj171; - ref QuestSequence reference208 = ref span92[4]; - QuestSequence obj172 = new QuestSequence + obj173.Steps = list273; + reference209 = obj173; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 4 }; num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1024908u, new Vector3(-238.91058f, 266.39832f, 508.14062f), 620) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { - Fly = true + ItemId = 2002429u, + GroundTarget = true }; - obj172.Steps = list274; - reference208 = obj172; - ref QuestSequence reference209 = ref span92[5]; - QuestSequence obj173 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.FringesPeeringStones - }; - obj173.Steps = list275; - reference209 = obj173; - ref QuestSequence reference210 = ref span92[6]; - QuestSequence obj174 = new QuestSequence - { - Sequence = 6 - }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1024912u, new Vector3(-92.27136f, 50.00444f, 186.29736f), 612) - { - Fly = true - }; - obj174.Steps = list276; + obj174.Steps = list274; reference210 = obj174; - ref QuestSequence reference211 = ref span92[7]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj175 = new QuestSequence - { - Sequence = 7 - }; - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span94 = CollectionsMarshal.AsSpan(list277); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.2359f, 43.672523f, -133.15985f), 612) - { - Fly = true - }; - 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; - ref QuestSequence reference212 = ref span92[8]; - QuestSequence obj176 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - Span span95 = CollectionsMarshal.AsSpan(list278); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.853586f, 55.943962f, 237.26181f), 612) - { - Fly = true - }; - span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) - { - Mount = false - }; - obj176.Steps = list278; - reference212 = obj176; - questRoot29.QuestSequence = list269; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(3039); - QuestRoot questRoot30 = new QuestRoot(); - num = 1; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "plogon_enjoyer"; - questRoot30.Author = list279; - num = 9; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span96 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference213 = ref span96[0]; - QuestSequence obj177 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); - obj177.Steps = list281; - reference213 = obj177; - ref QuestSequence reference214 = ref span96[1]; - QuestSequence obj178 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) - { - Fly = true - }; - obj178.Steps = list282; - reference214 = obj178; - ref QuestSequence reference215 = ref span96[2]; - QuestSequence obj179 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) - { - ItemId = 2002429u, - GroundTarget = true - }; - obj179.Steps = list283; - reference215 = obj179; - ref QuestSequence reference216 = ref span96[3]; - QuestSequence obj180 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) - { - ItemId = 2002429u, - GroundTarget = true - }; - obj180.Steps = list284; - reference216 = obj180; - ref QuestSequence reference217 = ref span96[4]; - QuestSequence obj181 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) - { - ItemId = 2002429u, - GroundTarget = true - }; - obj181.Steps = list285; - reference217 = obj181; - ref QuestSequence reference218 = ref span96[5]; - QuestSequence obj182 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -194348,1693 +233024,2214 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachWest } }; - obj182.Steps = list286; - reference218 = obj182; - ref QuestSequence reference219 = ref span96[6]; - QuestSequence obj183 = new QuestSequence + obj175.Steps = list275; + reference211 = obj175; + num++; + ref QuestSequence reference212 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 6 }; 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) + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference213 = ref span3[index2]; + QuestStep obj177 = new QuestStep(EInteractionType.Combat, null, new Vector3(-496.6736f, 118.65279f, -424.7939f), 612) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; - ref QuestSequence reference221 = ref span96[7]; - QuestSequence obj185 = new QuestSequence + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + span6 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span6[num3] = 8577u; + obj177.KillEnemyDataIds = list277; + reference213 = obj177; + obj176.Steps = list276; + reference212 = obj176; + num++; + ref QuestSequence reference214 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1024920u, new Vector3(-495.01794f, 118.79865f, -427.1153f), 612); - obj185.Steps = list289; - reference221 = obj185; - ref QuestSequence reference222 = ref span96[8]; - QuestSequence obj186 = new QuestSequence + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024920u, new Vector3(-495.01794f, 118.79865f, -427.1153f), 612); + obj178.Steps = list278; + reference214 = obj178; + num++; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - obj186.Steps = list290; - reference222 = obj186; - questRoot30.QuestSequence = list280; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(3040); - QuestRoot questRoot31 = new QuestRoot(); + obj179.Steps = list279; + reference215 = obj179; + questRoot28.QuestSequence = list269; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(3040); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "skiaz"; - questRoot31.Author = list291; - num = 6; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span97 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference223 = ref span97[0]; - QuestSequence obj187 = new QuestSequence + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "skiaz"; + questRoot29.Author = list280; + index = 6; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; - obj187.Steps = list293; - reference223 = obj187; - ref QuestSequence reference224 = ref span97[1]; - QuestSequence obj188 = new QuestSequence + obj180.Steps = list282; + reference216 = obj180; + num++; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1024924u, new Vector3(143.26697f, 40.296085f, 410.23877f), 612) + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024924u, new Vector3(143.26697f, 40.296085f, 410.23877f), 612) { Fly = true }; - obj188.Steps = list294; - reference224 = obj188; - ref QuestSequence reference225 = ref span97[2]; - QuestSequence obj189 = new QuestSequence + obj181.Steps = list283; + reference217 = obj181; + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1024929u, new Vector3(120.46985f, 48.569233f, 596.15466f), 612) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024929u, new Vector3(120.46985f, 48.569233f, 596.15466f), 612) { Fly = true }; - obj189.Steps = list295; - reference225 = obj189; - ref QuestSequence reference226 = ref span97[3]; - QuestSequence obj190 = new QuestSequence + obj182.Steps = list284; + reference218 = obj182; + num++; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Fly = true }; - obj190.Steps = list296; - reference226 = obj190; - ref QuestSequence reference227 = ref span97[4]; - QuestSequence obj191 = new QuestSequence + obj183.Steps = list285; + reference219 = obj183; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span98 = CollectionsMarshal.AsSpan(list297); - span98[0] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + index2 = 2; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Fly = true }; - span98[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Comment = "Solo Duty", SinglePlayerDutyOptions = new SinglePlayerDutyOptions() }; - obj191.Steps = list297; - reference227 = obj191; - ref QuestSequence reference228 = ref span97[5]; - QuestSequence obj192 = new QuestSequence + obj184.Steps = list286; + reference220 = obj184; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; - obj192.Steps = list298; - reference228 = obj192; - questRoot31.QuestSequence = list292; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(3041); - QuestRoot questRoot32 = new QuestRoot(); + obj185.Steps = list287; + reference221 = obj185; + questRoot29.QuestSequence = list281; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(3041); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "plogon_enjoyer"; - questRoot32.Author = list299; - num = 5; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span99 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference229 = ref span99[0]; - QuestSequence obj193 = new QuestSequence + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + span = CollectionsMarshal.AsSpan(list288); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot30.Author = list288; + index = 5; + List list289 = new List(index); + CollectionsMarshal.SetCount(list289, index); + span2 = CollectionsMarshal.AsSpan(list289); + num = 0; + ref QuestSequence reference222 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); - obj193.Steps = list301; - reference229 = obj193; - ref QuestSequence reference230 = ref span99[1]; - QuestSequence obj194 = new QuestSequence + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + obj186.Steps = list290; + reference222 = obj186; + num++; + ref QuestSequence reference223 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - Span span100 = CollectionsMarshal.AsSpan(list302); - span100[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - span100[1] = new QuestStep(EInteractionType.Interact, 1024937u, new Vector3(450.88867f, 114.36421f, 235.91968f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024937u, new Vector3(450.88867f, 114.36421f, 235.91968f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - obj194.Steps = list302; - reference230 = obj194; - ref QuestSequence reference231 = ref span99[2]; - QuestSequence obj195 = new QuestSequence + obj187.Steps = list291; + reference223 = obj187; + num++; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; - obj195.Steps = list303; - reference231 = obj195; - ref QuestSequence reference232 = ref span99[3]; - QuestSequence obj196 = new QuestSequence + obj188.Steps = list292; + reference224 = obj188; + num++; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1025235u, new Vector3(-155.2301f, 39.096687f, 159.0448f), 612) + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025235u, new Vector3(-155.2301f, 39.096687f, 159.0448f), 612) { Fly = true }; - obj196.Steps = list304; - reference232 = obj196; - ref QuestSequence reference233 = ref span99[4]; - QuestSequence obj197 = new QuestSequence + obj189.Steps = list293; + reference225 = obj189; + num++; + ref QuestSequence reference226 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; - obj197.Steps = list305; - reference233 = obj197; - questRoot32.QuestSequence = list300; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(3042); - QuestRoot questRoot33 = new QuestRoot(); + obj190.Steps = list294; + reference226 = obj190; + questRoot30.QuestSequence = list289; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(3042); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; - questRoot33.Author = list306; - num = 4; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span101 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference234 = ref span101[0]; - QuestSequence obj198 = new QuestSequence + List list295 = new List(num); + CollectionsMarshal.SetCount(list295, num); + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; + questRoot31.Author = list295; + index = 4; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference227 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; - obj198.Steps = list308; - reference234 = obj198; - ref QuestSequence reference235 = ref span101[1]; - QuestSequence obj199 = new QuestSequence + obj191.Steps = list297; + reference227 = obj191; + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - 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) + index2 = 5; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; + QuestStep obj193 = new QuestStep(EInteractionType.Interact, 2009315u, new Vector3(-213.15332f, 40.390625f, 228.38171f), 612) { StopDistance = 0.5f, Fly = true }; num3 = 6; - List> list310 = new List>(num3); - CollectionsMarshal.SetCount(list310, num3); - Span> span103 = CollectionsMarshal.AsSpan(list310); - span103[0] = null; - ref List reference237 = ref span103[1]; + List> list299 = new List>(num3); + CollectionsMarshal.SetCount(list299, num3); + span4 = CollectionsMarshal.AsSpan(list299); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference230 = ref span4[num4]; + num5 = 6; + List list300 = new List(num5); + CollectionsMarshal.SetCount(list300, num5); + span5 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + reference230 = list300; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj193.RequiredQuestVariables = list299; + reference229 = obj193; + num2++; + ref QuestStep reference231 = ref span3[num2]; + QuestStep obj194 = new QuestStep(EInteractionType.Interact, 2009316u, new Vector3(-340.16937f, 51.71277f, 285.7556f), 612) + { + StopDistance = 0.5f, + Fly = true + }; 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; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = null; - obj200.RequiredQuestVariables = list310; - reference236 = obj200; - ref QuestStep reference238 = ref span102[1]; - QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2009316u, new Vector3(-340.16937f, 51.71277f, 285.7556f), 612) + List> list301 = new List>(num4); + CollectionsMarshal.SetCount(list301, num4); + span4 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference232 = ref span4[num3]; + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + span5 = CollectionsMarshal.AsSpan(list302); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + reference232 = list302; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj194.RequiredQuestVariables = list301; + reference231 = obj194; + num2++; + ref QuestStep reference233 = ref span3[num2]; + QuestStep obj195 = new QuestStep(EInteractionType.Interact, 2009317u, new Vector3(-347.34113f, 46.066895f, 216.99854f), 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]; + List> list303 = new List>(num3); + CollectionsMarshal.SetCount(list303, num3); + span4 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference234 = ref span4[num4]; + num5 = 6; + List list304 = new List(num5); + CollectionsMarshal.SetCount(list304, num5); + span5 = CollectionsMarshal.AsSpan(list304); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + reference234 = list304; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj195.RequiredQuestVariables = list303; + reference233 = obj195; + num2++; + ref QuestStep reference235 = ref span3[num2]; + QuestStep obj196 = new QuestStep(EInteractionType.Interact, 2009313u, new Vector3(-297.65778f, 57.114502f, 354.42126f), 612) + { + StopDistance = 0.5f, + Fly = true + }; num4 = 6; - List list313 = new List(num4); - CollectionsMarshal.SetCount(list313, num4); - Span span106 = CollectionsMarshal.AsSpan(list313); - span106[0] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span106[1] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span106[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span106[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span106[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span106[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); - reference239 = list313; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = null; - obj201.RequiredQuestVariables = list312; - reference238 = obj201; - ref QuestStep reference240 = ref span102[2]; - QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009317u, new Vector3(-347.34113f, 46.066895f, 216.99854f), 612) + List> list305 = new List>(num4); + CollectionsMarshal.SetCount(list305, num4); + span4 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference236 = ref span4[num3]; + index3 = 6; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + span5 = CollectionsMarshal.AsSpan(list306); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + reference236 = list306; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj196.RequiredQuestVariables = list305; + reference235 = obj196; + num2++; + ref QuestStep reference237 = ref span3[num2]; + QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2009314u, new Vector3(-253.10144f, 60.715576f, 363.08838f), 612) { StopDistance = 0.5f, Fly = true }; num3 = 6; - List> list314 = new List>(num3); - CollectionsMarshal.SetCount(list314, num3); - Span> span107 = CollectionsMarshal.AsSpan(list314); - span107[0] = null; - ref List reference241 = ref span107[1]; - num4 = 6; - List list315 = new List(num4); - CollectionsMarshal.SetCount(list315, num4); - Span span108 = CollectionsMarshal.AsSpan(list315); - span108[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span108[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span108[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span108[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span108[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span108[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - reference241 = list315; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = null; - obj202.RequiredQuestVariables = list314; - reference240 = obj202; - 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 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; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = null; - obj203.RequiredQuestVariables = list316; - reference242 = obj203; - 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, - Fly = true - }; - num3 = 6; - List> list318 = new List>(num3); - CollectionsMarshal.SetCount(list318, num3); - Span> span111 = CollectionsMarshal.AsSpan(list318); - span111[0] = null; - ref List reference245 = ref span111[1]; - num4 = 6; - List list319 = new List(num4); - CollectionsMarshal.SetCount(list319, num4); - Span span112 = CollectionsMarshal.AsSpan(list319); - span112[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span112[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span112[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span112[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span112[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span112[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); - reference245 = list319; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; - obj204.RequiredQuestVariables = list318; - reference244 = obj204; - obj199.Steps = list309; - reference235 = obj199; - ref QuestSequence reference246 = ref span101[2]; - QuestSequence obj205 = new QuestSequence + List> list307 = new List>(num3); + CollectionsMarshal.SetCount(list307, num3); + span4 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference238 = ref span4[num4]; + num5 = 6; + List list308 = new List(num5); + CollectionsMarshal.SetCount(list308, num5); + span5 = CollectionsMarshal.AsSpan(list308); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + reference238 = list308; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj197.RequiredQuestVariables = list307; + reference237 = obj197; + obj192.Steps = list298; + reference228 = obj192; + num++; + ref QuestSequence reference239 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1025051u, new Vector3(50.858276f, 50.004295f, 299.94653f), 612) + List list309 = new List(num2); + CollectionsMarshal.SetCount(list309, num2); + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025051u, new Vector3(50.858276f, 50.004295f, 299.94653f), 612) { Fly = true }; - obj205.Steps = list320; - reference246 = obj205; - ref QuestSequence reference247 = ref span101[3]; - QuestSequence obj206 = new QuestSequence + obj198.Steps = list309; + reference239 = obj198; + num++; + ref QuestSequence reference240 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - Span span113 = CollectionsMarshal.AsSpan(list321); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj206.Steps = list321; - reference247 = obj206; - questRoot33.QuestSequence = list307; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(3043); - QuestRoot questRoot34 = new QuestRoot(); + obj199.Steps = list310; + reference240 = obj199; + questRoot31.QuestSequence = list296; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(3043); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; - questRoot34.Author = list322; - num = 3; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span114 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference248 = ref span114[0]; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + span = CollectionsMarshal.AsSpan(list311); + index = 0; + span[index] = "liza"; + questRoot32.Author = list311; + index = 3; + List list312 = new List(index); + CollectionsMarshal.SetCount(list312, index); + span2 = CollectionsMarshal.AsSpan(list312); + num = 0; + ref QuestSequence reference241 = ref span2[num]; + QuestSequence obj200 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list313 = new List(num2); + CollectionsMarshal.SetCount(list313, num2); + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + { + StopDistance = 7f + }; + obj200.Steps = list313; + reference241 = obj200; + num++; + ref QuestSequence reference242 = ref span2[num]; + QuestSequence obj201 = new QuestSequence + { + Sequence = 1 + }; + index2 = 5; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + ref QuestStep reference243 = ref span3[num2]; + QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009318u, new Vector3(-229.66364f, 37.827026f, 171.46558f), 612) + { + Fly = true + }; + num4 = 6; + List> list315 = new List>(num4); + CollectionsMarshal.SetCount(list315, num4); + span4 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference244 = ref span4[num3]; + index3 = 6; + List list316 = new List(index3); + CollectionsMarshal.SetCount(list316, index3); + span5 = CollectionsMarshal.AsSpan(list316); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + reference244 = list316; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj202.RequiredQuestVariables = list315; + reference243 = obj202; + num2++; + ref QuestStep reference245 = ref span3[num2]; + QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2009319u, new Vector3(-287.5868f, 40.360107f, 173.72388f), 612) + { + Fly = true + }; + num3 = 6; + List> list317 = new List>(num3); + CollectionsMarshal.SetCount(list317, num3); + span4 = CollectionsMarshal.AsSpan(list317); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference246 = ref span4[num4]; + num5 = 6; + List list318 = new List(num5); + CollectionsMarshal.SetCount(list318, num5); + span5 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + reference246 = list318; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj203.RequiredQuestVariables = list317; + reference245 = obj203; + num2++; + ref QuestStep reference247 = ref span3[num2]; + QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2009320u, new Vector3(-209.33856f, 44.510498f, -18.96698f), 612) + { + Fly = true + }; + num4 = 6; + List> list319 = new List>(num4); + CollectionsMarshal.SetCount(list319, num4); + span4 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference248 = ref span4[num3]; + index3 = 6; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span5 = CollectionsMarshal.AsSpan(list320); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + reference248 = list320; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj204.RequiredQuestVariables = list319; + reference247 = obj204; + num2++; + ref QuestStep reference249 = ref span3[num2]; + QuestStep obj205 = new QuestStep(EInteractionType.Interact, 2009322u, new Vector3(-169.78723f, 42.160645f, -101.1521f), 612) + { + Fly = true + }; + num3 = 6; + List> list321 = new List>(num3); + CollectionsMarshal.SetCount(list321, num3); + span4 = CollectionsMarshal.AsSpan(list321); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference250 = ref span4[num4]; + num5 = 6; + List list322 = new List(num5); + CollectionsMarshal.SetCount(list322, num5); + span5 = CollectionsMarshal.AsSpan(list322); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + reference250 = list322; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj205.RequiredQuestVariables = list321; + reference249 = obj205; + num2++; + ref QuestStep reference251 = ref span3[num2]; + QuestStep obj206 = new QuestStep(EInteractionType.Interact, 2009321u, new Vector3(-201.2207f, 45.51758f, -122.42316f), 612) + { + Fly = true + }; + num4 = 6; + List> list323 = new List>(num4); + CollectionsMarshal.SetCount(list323, num4); + span4 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference252 = ref span4[num3]; + index3 = 6; + List list324 = new List(index3); + CollectionsMarshal.SetCount(list324, index3); + span5 = CollectionsMarshal.AsSpan(list324); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + reference252 = list324; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj206.RequiredQuestVariables = list323; + reference251 = obj206; + obj201.Steps = list314; + reference242 = obj201; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj207 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) - { - StopDistance = 7f - }; - obj207.Steps = list324; - reference248 = obj207; - ref QuestSequence reference249 = ref span114[1]; - QuestSequence obj208 = new QuestSequence - { - Sequence = 1 - }; - num2 = 5; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - 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 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; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = null; - obj209.RequiredQuestVariables = list326; - reference250 = obj209; - ref QuestStep reference252 = ref span115[1]; - QuestStep obj210 = new QuestStep(EInteractionType.Interact, 2009319u, new Vector3(-287.5868f, 40.360107f, 173.72388f), 612) - { - Fly = true - }; - num3 = 6; - List> list328 = new List>(num3); - CollectionsMarshal.SetCount(list328, num3); - Span> span118 = CollectionsMarshal.AsSpan(list328); - span118[0] = null; - ref List reference253 = ref span118[1]; - num4 = 6; - List list329 = new List(num4); - CollectionsMarshal.SetCount(list329, num4); - Span span119 = CollectionsMarshal.AsSpan(list329); - span119[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span119[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span119[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span119[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span119[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span119[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); - reference253 = list329; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = null; - obj210.RequiredQuestVariables = list328; - reference252 = obj210; - 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 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; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = null; - obj211.RequiredQuestVariables = list330; - reference254 = obj211; - ref QuestStep reference256 = ref span115[3]; - QuestStep obj212 = new QuestStep(EInteractionType.Interact, 2009322u, new Vector3(-169.78723f, 42.160645f, -101.1521f), 612) - { - Fly = true - }; - num3 = 6; - List> list332 = new List>(num3); - CollectionsMarshal.SetCount(list332, num3); - Span> span122 = CollectionsMarshal.AsSpan(list332); - span122[0] = null; - ref List reference257 = ref span122[1]; - num4 = 6; - List list333 = new List(num4); - CollectionsMarshal.SetCount(list333, num4); - Span span123 = CollectionsMarshal.AsSpan(list333); - span123[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span123[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span123[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span123[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span123[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span123[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); - reference257 = list333; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = null; - obj212.RequiredQuestVariables = list332; - reference256 = obj212; - 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 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; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = null; - obj213.RequiredQuestVariables = list334; - reference258 = obj213; - obj208.Steps = list325; - reference249 = obj208; - ref QuestSequence reference260 = ref span114[2]; - QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span126 = CollectionsMarshal.AsSpan(list336); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + List list325 = new List(num2); + CollectionsMarshal.SetCount(list325, num2); + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj214.Steps = list336; - reference260 = obj214; - questRoot34.QuestSequence = list323; - AddQuest(questId34, questRoot34); - QuestId questId35 = new QuestId(3044); - QuestRoot questRoot35 = new QuestRoot(); + obj207.Steps = list325; + reference253 = obj207; + questRoot32.QuestSequence = list312; + AddQuest(questId32, questRoot32); + QuestId questId33 = new QuestId(3044); + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "liza"; - questRoot35.Author = list337; - num = 3; - List list338 = new List(num); - CollectionsMarshal.SetCount(list338, num); - Span span127 = CollectionsMarshal.AsSpan(list338); - ref QuestSequence reference261 = ref span127[0]; - QuestSequence obj215 = new QuestSequence + List list326 = new List(num); + CollectionsMarshal.SetCount(list326, num); + span = CollectionsMarshal.AsSpan(list326); + index = 0; + span[index] = "liza"; + questRoot33.Author = list326; + index = 3; + List list327 = new List(index); + CollectionsMarshal.SetCount(list327, index); + span2 = CollectionsMarshal.AsSpan(list327); + num = 0; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; - obj215.Steps = list339; - reference261 = obj215; - ref QuestSequence reference262 = ref span127[1]; - QuestSequence obj216 = new QuestSequence + obj208.Steps = list328; + reference254 = obj208; + num++; + ref QuestSequence reference255 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 1 }; 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) + List list329 = new List(num2); + CollectionsMarshal.SetCount(list329, num2); + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + ref QuestStep reference256 = ref span3[index2]; + QuestStep obj210 = new QuestStep(EInteractionType.Combat, 2009323u, new Vector3(-498.92426f, 39.352905f, 492.57642f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 3; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - Span span128 = CollectionsMarshal.AsSpan(list341); - span128[0] = 8578u; - span128[1] = 8579u; - span128[2] = 8580u; - obj217.KillEnemyDataIds = list341; - reference263 = obj217; - obj216.Steps = list340; - reference262 = obj216; - ref QuestSequence reference264 = ref span127[2]; - QuestSequence obj218 = new QuestSequence + List list330 = new List(num3); + CollectionsMarshal.SetCount(list330, num3); + span6 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span6[num4] = 8578u; + num4++; + span6[num4] = 8579u; + num4++; + span6[num4] = 8580u; + obj210.KillEnemyDataIds = list330; + reference256 = obj210; + obj209.Steps = list329; + reference255 = obj209; + num++; + ref QuestSequence reference257 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span129 = CollectionsMarshal.AsSpan(list342); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj218.Steps = list342; - reference264 = obj218; - questRoot35.QuestSequence = list338; - AddQuest(questId35, questRoot35); - QuestId questId36 = new QuestId(3045); - QuestRoot questRoot36 = new QuestRoot(); + obj211.Steps = list331; + reference257 = obj211; + questRoot33.QuestSequence = list327; + AddQuest(questId33, questRoot33); + QuestId questId34 = new QuestId(3045); + QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; - questRoot36.Author = list343; - num = 3; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span130 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference265 = ref span130[0]; - QuestSequence obj219 = new QuestSequence + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "liza"; + questRoot34.Author = list332; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference258 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; - obj219.Steps = list345; - reference265 = obj219; - ref QuestSequence reference266 = ref span130[1]; - QuestSequence obj220 = new QuestSequence + obj212.Steps = list334; + reference258 = obj212; + num++; + ref QuestSequence reference259 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - 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) + index2 = 3; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference260 = ref span3[num2]; + QuestStep obj214 = new QuestStep(EInteractionType.UseItem, 2009325u, new Vector3(-606.1647f, 53.238647f, 233.26453f), 612) { Fly = true, ItemId = 2002433u }; + num4 = 6; + List> list336 = new List>(num4); + CollectionsMarshal.SetCount(list336, num4); + span4 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference261 = ref span4[num3]; + num5 = 2; + List list337 = new List(num5); + CollectionsMarshal.SetCount(list337, num5); + span5 = CollectionsMarshal.AsSpan(list337); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference261 = list337; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj214.RequiredQuestVariables = list336; 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; - 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 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; - ref QuestStep reference269 = ref span131[1]; - QuestStep obj222 = new QuestStep(EInteractionType.UseItem, 2009326u, new Vector3(-619.31793f, 45.181885f, 267.81104f), 612) + List list338 = new List(num3); + CollectionsMarshal.SetCount(list338, num3); + span5 = CollectionsMarshal.AsSpan(list338); + 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); + obj214.CompletionQuestVariablesFlags = list338; + reference260 = obj214; + num2++; + ref QuestStep reference262 = ref span3[num2]; + QuestStep obj215 = new QuestStep(EInteractionType.UseItem, 2009326u, new Vector3(-619.31793f, 45.181885f, 267.81104f), 612) { Fly = true, ItemId = 2002433u }; + num4 = 6; + List> list339 = new List>(num4); + CollectionsMarshal.SetCount(list339, num4); + span4 = CollectionsMarshal.AsSpan(list339); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference263 = ref span4[num3]; + index3 = 2; + List list340 = new List(index3); + CollectionsMarshal.SetCount(list340, index3); + span5 = CollectionsMarshal.AsSpan(list340); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + reference263 = list340; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj215.RequiredQuestVariables = list339; 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; - 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 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; - ref QuestStep reference271 = ref span131[2]; - QuestStep obj223 = new QuestStep(EInteractionType.UseItem, 2009324u, new Vector3(-631.70825f, 44.785156f, 306.14172f), 612) + List list341 = new List(num3); + CollectionsMarshal.SetCount(list341, num3); + span5 = CollectionsMarshal.AsSpan(list341); + 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); + obj215.CompletionQuestVariablesFlags = list341; + reference262 = obj215; + num2++; + ref QuestStep reference264 = ref span3[num2]; + QuestStep obj216 = new QuestStep(EInteractionType.UseItem, 2009324u, new Vector3(-631.70825f, 44.785156f, 306.14172f), 612) { Fly = true, ItemId = 2002433u }; + num4 = 6; + List> list342 = new List>(num4); + CollectionsMarshal.SetCount(list342, num4); + span4 = CollectionsMarshal.AsSpan(list342); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference265 = ref span4[num3]; + num5 = 2; + List list343 = new List(num5); + CollectionsMarshal.SetCount(list343, num5); + span5 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference265 = list343; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj216.RequiredQuestVariables = list342; 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; - 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 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; - ref QuestSequence reference273 = ref span130[2]; - QuestSequence obj224 = new QuestSequence + List list344 = new List(num3); + CollectionsMarshal.SetCount(list344, num3); + span5 = CollectionsMarshal.AsSpan(list344); + 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); + obj216.CompletionQuestVariablesFlags = list344; + reference264 = obj216; + obj213.Steps = list335; + reference259 = obj213; + num++; + ref QuestSequence reference266 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - Span span141 = CollectionsMarshal.AsSpan(list356); - span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + List list345 = new List(num2); + CollectionsMarshal.SetCount(list345, num2); + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span141[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj224.Steps = list356; - reference273 = obj224; - questRoot36.QuestSequence = list344; - AddQuest(questId36, questRoot36); - QuestId questId37 = new QuestId(3046); - QuestRoot questRoot37 = new QuestRoot(); + obj217.Steps = list345; + reference266 = obj217; + questRoot34.QuestSequence = list333; + AddQuest(questId34, questRoot34); + QuestId questId35 = new QuestId(3046); + QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list357 = new List(num); - CollectionsMarshal.SetCount(list357, num); - CollectionsMarshal.AsSpan(list357)[0] = "liza"; - questRoot37.Author = list357; - num = 3; - List list358 = new List(num); - CollectionsMarshal.SetCount(list358, num); - Span span142 = CollectionsMarshal.AsSpan(list358); - ref QuestSequence reference274 = ref span142[0]; + List list346 = new List(num); + CollectionsMarshal.SetCount(list346, num); + span = CollectionsMarshal.AsSpan(list346); + index = 0; + span[index] = "liza"; + questRoot35.Author = list346; + index = 3; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + span2 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference267 = ref span2[num]; + QuestSequence obj218 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + { + StopDistance = 7f + }; + obj218.Steps = list348; + reference267 = obj218; + num++; + ref QuestSequence reference268 = ref span2[num]; + QuestSequence obj219 = new QuestSequence + { + Sequence = 1 + }; + num2 = 4; + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + ref QuestStep reference269 = ref span3[index2]; + QuestStep obj220 = new QuestStep(EInteractionType.Combat, 2009327u, new Vector3(-542.2294f, 44.052734f, 202.99072f), 612) + { + Fly = true, + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num4 = 1; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + span6 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span6[num3] = 8581u; + obj220.KillEnemyDataIds = list350; + num3 = 6; + List> list351 = new List>(num3); + CollectionsMarshal.SetCount(list351, num3); + span4 = CollectionsMarshal.AsSpan(list351); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference270 = ref span4[num4]; + index3 = 2; + List list352 = new List(index3); + CollectionsMarshal.SetCount(list352, index3); + span5 = CollectionsMarshal.AsSpan(list352); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + reference270 = list352; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj220.RequiredQuestVariables = list351; + reference269 = obj220; + index2++; + ref QuestStep reference271 = ref span3[index2]; + QuestStep obj221 = new QuestStep(EInteractionType.Combat, 2009328u, new Vector3(-491.72202f, 55.252808f, -17.746277f), 612) + { + Fly = true, + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num4 = 1; + List list353 = new List(num4); + CollectionsMarshal.SetCount(list353, num4); + span6 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span6[num3] = 8581u; + obj221.KillEnemyDataIds = list353; + num3 = 6; + List> list354 = new List>(num3); + CollectionsMarshal.SetCount(list354, num3); + span4 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference272 = ref span4[num4]; + num5 = 2; + List list355 = new List(num5); + CollectionsMarshal.SetCount(list355, num5); + span5 = CollectionsMarshal.AsSpan(list355); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference272 = list355; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj221.RequiredQuestVariables = list354; + reference271 = obj221; + index2++; + ref QuestStep reference273 = ref span3[index2]; + QuestStep obj222 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-502.02115f, 71.42156f, -162.12122f), 612) + { + Fly = true + }; + num4 = 6; + List> list356 = new List>(num4); + CollectionsMarshal.SetCount(list356, num4); + span4 = CollectionsMarshal.AsSpan(list356); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference274 = ref span4[num3]; + index3 = 2; + List list357 = new List(index3); + CollectionsMarshal.SetCount(list357, index3); + span5 = CollectionsMarshal.AsSpan(list357); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference274 = list357; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj222.RequiredQuestVariables = list356; + reference273 = obj222; + index2++; + ref QuestStep reference275 = ref span3[index2]; + QuestStep obj223 = new QuestStep(EInteractionType.Combat, 2009329u, new Vector3(-500.05344f, 72.129395f, -162.43237f), 612) + { + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num3 = 1; + List list358 = new List(num3); + CollectionsMarshal.SetCount(list358, num3); + span6 = CollectionsMarshal.AsSpan(list358); + num4 = 0; + span6[num4] = 8581u; + obj223.KillEnemyDataIds = list358; + num4 = 6; + List> list359 = new List>(num4); + CollectionsMarshal.SetCount(list359, num4); + span4 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference276 = ref span4[num3]; + num5 = 2; + List list360 = new List(num5); + CollectionsMarshal.SetCount(list360, num5); + span5 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference276 = list360; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj223.RequiredQuestVariables = list359; + reference275 = obj223; + obj219.Steps = list349; + reference268 = obj219; + num++; + ref QuestSequence reference277 = ref span2[num]; + QuestSequence obj224 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 2; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + { + StopDistance = 7f, + Fly = true + }; + obj224.Steps = list361; + reference277 = obj224; + questRoot35.QuestSequence = list347; + AddQuest(questId35, questRoot35); + QuestId questId36 = new QuestId(3047); + QuestRoot questRoot36 = new QuestRoot(); + num = 1; + List list362 = new List(num); + CollectionsMarshal.SetCount(list362, num); + span = CollectionsMarshal.AsSpan(list362); + index = 0; + span[index] = "liza"; + questRoot36.Author = list362; + index = 3; + List list363 = new List(index); + CollectionsMarshal.SetCount(list363, index); + span2 = CollectionsMarshal.AsSpan(list363); + num = 0; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + List list364 = new List(num2); + CollectionsMarshal.SetCount(list364, num2); + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; - obj225.Steps = list359; - reference274 = obj225; - ref QuestSequence reference275 = ref span142[1]; + obj225.Steps = list364; + reference278 = obj225; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - Span span143 = CollectionsMarshal.AsSpan(list360); - ref QuestStep reference276 = ref span143[0]; - QuestStep obj227 = new QuestStep(EInteractionType.Combat, 2009327u, new Vector3(-542.2294f, 44.052734f, 202.99072f), 612) + index2 = 6; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + ref QuestStep reference280 = ref span3[num2]; + QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(-269.18445f, 63.10759f, -378.01178f), 612) { + StopDistance = 1f, Fly = true, - EnemySpawnType = EEnemySpawnType.AfterInteraction + AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; 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> 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; - span144[3] = null; - span144[4] = null; - span144[5] = null; - obj227.RequiredQuestVariables = list362; - reference276 = obj227; - ref QuestStep reference278 = ref span143[1]; - QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2009328u, new Vector3(-491.72202f, 55.252808f, -17.746277f), 612) + List list366 = new List(num3); + CollectionsMarshal.SetCount(list366, num3); + Span span8 = CollectionsMarshal.AsSpan(list366); + num4 = 0; + ref ComplexCombatData reference281 = ref span8[num4]; + ComplexCombatData obj228 = new ComplexCombatData { - Fly = true, - EnemySpawnType = EEnemySpawnType.AfterInteraction + DataId = 8582u }; - 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> 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; - span146[3] = null; - span146[4] = null; - span146[5] = null; - obj228.RequiredQuestVariables = list365; - reference278 = obj228; - ref QuestStep reference280 = ref span143[2]; - QuestStep obj229 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-502.02115f, 71.42156f, -162.12122f), 612) - { - Fly = true - }; - num3 = 6; - List> list367 = new List>(num3); - CollectionsMarshal.SetCount(list367, num3); - Span> span148 = CollectionsMarshal.AsSpan(list367); - span148[0] = null; - span148[1] = null; - ref List reference281 = ref span148[2]; - num4 = 2; - List list368 = new List(num4); + index3 = 6; + List list367 = new List(index3); + CollectionsMarshal.SetCount(list367, index3); + span5 = CollectionsMarshal.AsSpan(list367); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + obj228.CompletionQuestVariablesFlags = list367; + reference281 = obj228; + obj227.ComplexCombatData = list366; + num4 = 6; + 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; - span148[3] = null; - span148[4] = null; - span148[5] = null; - obj229.RequiredQuestVariables = list367; - reference280 = obj229; - 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 - }; - num3 = 1; - List list369 = new List(num3); - CollectionsMarshal.SetCount(list369, num3); - CollectionsMarshal.AsSpan(list369)[0] = 8581u; - obj230.KillEnemyDataIds = list369; + span4 = CollectionsMarshal.AsSpan(list368); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference282 = ref span4[num3]; + num5 = 1; + List list369 = new List(num5); + CollectionsMarshal.SetCount(list369, num5); + span5 = CollectionsMarshal.AsSpan(list369); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + reference282 = list369; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj227.RequiredQuestVariables = list368; + reference280 = obj227; + num2++; + ref QuestStep reference283 = ref span3[num2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1025054u, new Vector3(-269.18445f, 63.10759f, -378.01178f), 612); 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; - span150[3] = null; - span150[4] = null; - span150[5] = null; - obj230.RequiredQuestVariables = list370; - reference282 = obj230; - obj226.Steps = list360; - reference275 = obj226; - ref QuestSequence reference284 = ref span142[2]; - QuestSequence obj231 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span152 = CollectionsMarshal.AsSpan(list372); - span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) - { - Fly = true - }; - span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) - { - StopDistance = 7f, - Fly = true - }; - obj231.Steps = list372; - reference284 = obj231; - questRoot37.QuestSequence = list358; - AddQuest(questId37, questRoot37); - QuestId questId38 = new QuestId(3047); - QuestRoot questRoot38 = new QuestRoot(); - num = 1; - List list373 = new List(num); - CollectionsMarshal.SetCount(list373, num); - CollectionsMarshal.AsSpan(list373)[0] = "liza"; - questRoot38.Author = list373; - num = 3; - List list374 = new List(num); - CollectionsMarshal.SetCount(list374, num); - Span span153 = CollectionsMarshal.AsSpan(list374); - ref QuestSequence reference285 = ref span153[0]; - QuestSequence obj232 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) - { - StopDistance = 7f - }; - obj232.Steps = list375; - reference285 = obj232; - ref QuestSequence reference286 = ref span153[1]; - QuestSequence obj233 = new QuestSequence - { - Sequence = 1 - }; - num2 = 6; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - 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) + span4 = CollectionsMarshal.AsSpan(list370); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference284 = ref span4[num4]; + index3 = 1; + List list371 = new List(index3); + CollectionsMarshal.SetCount(list371, index3); + span5 = CollectionsMarshal.AsSpan(list371); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + reference284 = list371; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + questStep17.RequiredQuestVariables = list370; + reference283 = questStep17; + num2++; + ref QuestStep reference285 = ref span3[num2]; + QuestStep obj229 = new QuestStep(EInteractionType.Combat, null, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612) { StopDistance = 1f, Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - ref ComplexCombatData reference288 = ref CollectionsMarshal.AsSpan(list377)[0]; - ComplexCombatData obj235 = new ComplexCombatData + num4 = 1; + List list372 = new List(num4); + CollectionsMarshal.SetCount(list372, num4); + span8 = CollectionsMarshal.AsSpan(list372); + num3 = 0; + ref ComplexCombatData reference286 = ref span8[num3]; + ComplexCombatData obj230 = new ComplexCombatData { DataId = 8582u }; - num4 = 6; - List list378 = new List(num4); - CollectionsMarshal.SetCount(list378, num4); - Span span155 = CollectionsMarshal.AsSpan(list378); - span155[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = null; - obj235.CompletionQuestVariablesFlags = list378; - reference288 = obj235; - obj234.ComplexCombatData = list377; + num5 = 6; + List list373 = new List(num5); + CollectionsMarshal.SetCount(list373, num5); + span5 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + obj230.CompletionQuestVariablesFlags = list373; + reference286 = obj230; + obj229.ComplexCombatData = list372; 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; - span156[3] = null; - span156[4] = null; - span156[5] = null; - obj234.RequiredQuestVariables = list379; - reference287 = obj234; - 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> 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; - span157[3] = null; - span157[4] = null; - span157[5] = null; - questStep17.RequiredQuestVariables = list381; - reference290 = questStep17; - ref QuestStep reference292 = ref span154[2]; - QuestStep obj236 = new QuestStep(EInteractionType.Combat, null, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612) - { - StopDistance = 1f, - Fly = true, - AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - ref ComplexCombatData reference293 = ref CollectionsMarshal.AsSpan(list383)[0]; - ComplexCombatData obj237 = new ComplexCombatData - { - DataId = 8582u - }; - num4 = 6; - List list384 = new List(num4); - CollectionsMarshal.SetCount(list384, num4); - Span span158 = CollectionsMarshal.AsSpan(list384); - span158[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span158[1] = null; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = null; - obj237.CompletionQuestVariablesFlags = list384; - reference293 = obj237; - obj236.ComplexCombatData = list383; - num3 = 6; - List> list385 = new List>(num3); - CollectionsMarshal.SetCount(list385, num3); - Span> span159 = CollectionsMarshal.AsSpan(list385); - span159[0] = null; - span159[1] = null; - ref List reference294 = ref span159[2]; - num4 = 1; - List list386 = new List(num4); - CollectionsMarshal.SetCount(list386, num4); - CollectionsMarshal.AsSpan(list386)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - reference294 = list386; - span159[3] = null; - span159[4] = null; - span159[5] = null; - obj236.RequiredQuestVariables = list385; - reference292 = obj236; - ref QuestStep reference295 = ref span154[3]; + List> list374 = new List>(num3); + CollectionsMarshal.SetCount(list374, num3); + span4 = CollectionsMarshal.AsSpan(list374); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference287 = ref span4[num4]; + index3 = 1; + List list375 = new List(index3); + CollectionsMarshal.SetCount(list375, index3); + span5 = CollectionsMarshal.AsSpan(list375); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + reference287 = list375; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj229.RequiredQuestVariables = list374; + reference285 = obj229; + num2++; + ref QuestStep reference288 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1025053u, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612); - num3 = 6; - List> list387 = new List>(num3); - CollectionsMarshal.SetCount(list387, num3); - Span> span160 = CollectionsMarshal.AsSpan(list387); - span160[0] = null; - span160[1] = null; - ref List reference296 = ref span160[2]; - num4 = 1; - List list388 = new List(num4); - CollectionsMarshal.SetCount(list388, num4); - CollectionsMarshal.AsSpan(list388)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - reference296 = list388; - span160[3] = null; - span160[4] = null; - span160[5] = null; - questStep18.RequiredQuestVariables = list387; - reference295 = questStep18; - ref QuestStep reference297 = ref span154[4]; - QuestStep obj238 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3601f, 50.476315f, 144.06042f), 612) + num4 = 6; + List> list376 = new List>(num4); + CollectionsMarshal.SetCount(list376, num4); + span4 = CollectionsMarshal.AsSpan(list376); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference289 = ref span4[num3]; + num5 = 1; + List list377 = new List(num5); + CollectionsMarshal.SetCount(list377, num5); + span5 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + reference289 = list377; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + questStep18.RequiredQuestVariables = list376; + reference288 = questStep18; + num2++; + ref QuestStep reference290 = ref span3[num2]; + QuestStep obj231 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3601f, 50.476315f, 144.06042f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - ref ComplexCombatData reference298 = ref CollectionsMarshal.AsSpan(list389)[0]; - ComplexCombatData obj239 = new ComplexCombatData + List list378 = new List(num3); + CollectionsMarshal.SetCount(list378, num3); + span8 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + ref ComplexCombatData reference291 = ref span8[num4]; + ComplexCombatData obj232 = new ComplexCombatData { DataId = 8583u }; + index3 = 6; + List list379 = new List(index3); + CollectionsMarshal.SetCount(list379, index3); + span5 = CollectionsMarshal.AsSpan(list379); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + obj232.CompletionQuestVariablesFlags = list379; + reference291 = obj232; + obj231.ComplexCombatData = list378; 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; - 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; - span162[3] = null; - span162[4] = null; - span162[5] = null; - obj238.RequiredQuestVariables = list391; - reference297 = obj238; - ref QuestStep reference300 = ref span154[5]; + List> list380 = new List>(num4); + CollectionsMarshal.SetCount(list380, num4); + span4 = CollectionsMarshal.AsSpan(list380); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference292 = ref span4[num3]; + num5 = 1; + List list381 = new List(num5); + CollectionsMarshal.SetCount(list381, num5); + span5 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span5[index3] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + reference292 = list381; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj231.RequiredQuestVariables = list380; + reference290 = obj231; + num2++; + ref QuestStep reference293 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1025052u, new Vector3(-440.3601f, 50.476315f, 144.06042f), 612); num3 = 6; - List> list393 = new List>(num3); - CollectionsMarshal.SetCount(list393, num3); - Span> span163 = CollectionsMarshal.AsSpan(list393); - span163[0] = null; - span163[1] = null; - ref List reference301 = ref span163[2]; - num4 = 1; - List list394 = new List(num4); - CollectionsMarshal.SetCount(list394, num4); - CollectionsMarshal.AsSpan(list394)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - reference301 = list394; - span163[3] = null; - span163[4] = null; - span163[5] = null; - questStep19.RequiredQuestVariables = list393; - reference300 = questStep19; - obj233.Steps = list376; - reference286 = obj233; - ref QuestSequence reference302 = ref span153[2]; - QuestSequence obj240 = new QuestSequence + List> list382 = new List>(num3); + CollectionsMarshal.SetCount(list382, num3); + span4 = CollectionsMarshal.AsSpan(list382); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference294 = ref span4[num4]; + index3 = 1; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + span5 = CollectionsMarshal.AsSpan(list383); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + reference294 = list383; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + questStep19.RequiredQuestVariables = list382; + reference293 = questStep19; + obj226.Steps = list365; + reference279 = obj226; + num++; + ref QuestSequence reference295 = ref span2[num]; + QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - Span span164 = CollectionsMarshal.AsSpan(list395); - span164[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + List list384 = new List(num2); + CollectionsMarshal.SetCount(list384, num2); + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span164[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj240.Steps = list395; - reference302 = obj240; - questRoot38.QuestSequence = list374; - AddQuest(questId38, questRoot38); - QuestId questId39 = new QuestId(3048); - QuestRoot questRoot39 = new QuestRoot(); + obj233.Steps = list384; + reference295 = obj233; + questRoot36.QuestSequence = list363; + AddQuest(questId36, questRoot36); + QuestId questId37 = new QuestId(3048); + QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - CollectionsMarshal.AsSpan(list396)[0] = "liza"; - questRoot39.Author = list396; - num = 4; - List list397 = new List(num); - CollectionsMarshal.SetCount(list397, num); - Span span165 = CollectionsMarshal.AsSpan(list397); - ref QuestSequence reference303 = ref span165[0]; - QuestSequence obj241 = new QuestSequence + List list385 = new List(num); + CollectionsMarshal.SetCount(list385, num); + span = CollectionsMarshal.AsSpan(list385); + index = 0; + span[index] = "liza"; + questRoot37.Author = list385; + index = 4; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + span2 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference296 = ref span2[num]; + QuestSequence obj234 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + span3 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; - obj241.Steps = list398; - reference303 = obj241; - ref QuestSequence reference304 = ref span165[1]; - QuestSequence obj242 = new QuestSequence + obj234.Steps = list387; + reference296 = obj234; + num++; + ref QuestSequence reference297 = ref span2[num]; + QuestSequence obj235 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - Span span166 = CollectionsMarshal.AsSpan(list399); - ref QuestStep reference305 = ref span166[0]; - QuestStep obj243 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.82968f, 45.361248f, 453.55005f), 612) + List list388 = new List(num2); + CollectionsMarshal.SetCount(list388, num2); + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + ref QuestStep reference298 = ref span3[index2]; + QuestStep obj236 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.82968f, 45.361248f, 453.55005f), 612) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list400 = new List(num3); - CollectionsMarshal.SetCount(list400, num3); - Span span167 = CollectionsMarshal.AsSpan(list400); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - skipStepConditions2.CompletionQuestVariablesFlags = list400; + num4 = 6; + List list389 = new List(num4); + CollectionsMarshal.SetCount(list389, num4); + span5 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + skipStepConditions2.CompletionQuestVariablesFlags = list389; skipConditions2.StepIf = skipStepConditions2; - obj243.SkipConditions = skipConditions2; + obj236.SkipConditions = skipConditions2; num3 = 6; - List> list401 = new List>(num3); - CollectionsMarshal.SetCount(list401, num3); - Span> span168 = CollectionsMarshal.AsSpan(list401); - span168[0] = null; - ref List reference306 = ref span168[1]; - num4 = 3; - List list402 = new List(num4); - CollectionsMarshal.SetCount(list402, num4); - Span span169 = CollectionsMarshal.AsSpan(list402); - span169[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span169[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span169[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - reference306 = list402; - span168[2] = null; - span168[3] = null; - span168[4] = null; - span168[5] = null; - obj243.RequiredQuestVariables = list401; - reference305 = obj243; - ref QuestStep reference307 = ref span166[1]; + List> list390 = new List>(num3); + CollectionsMarshal.SetCount(list390, num3); + span4 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference299 = ref span4[num4]; + num5 = 3; + List list391 = new List(num5); + CollectionsMarshal.SetCount(list391, num5); + span5 = CollectionsMarshal.AsSpan(list391); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + reference299 = list391; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj236.RequiredQuestVariables = list390; + reference298 = obj236; + index2++; + ref QuestStep reference300 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2009333u, new Vector3(180.4989f, 45.609253f, 452.78088f), 612); + num4 = 6; + List> list392 = new List>(num4); + CollectionsMarshal.SetCount(list392, num4); + span4 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference301 = ref span4[num3]; + index3 = 3; + List list393 = new List(index3); + CollectionsMarshal.SetCount(list393, index3); + span5 = CollectionsMarshal.AsSpan(list393); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + reference301 = list393; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + questStep20.RequiredQuestVariables = list392; 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; - 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 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; - ref QuestStep reference309 = ref span166[2]; - QuestStep obj244 = new QuestStep(EInteractionType.Interact, 2009334u, new Vector3(261.21912f, 46.036377f, 369.98547f), 612) + List list394 = new List(num3); + CollectionsMarshal.SetCount(list394, num3); + span5 = CollectionsMarshal.AsSpan(list394); + 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); + questStep20.CompletionQuestVariablesFlags = list394; + reference300 = questStep20; + index2++; + ref QuestStep reference302 = ref span3[index2]; + QuestStep obj237 = new QuestStep(EInteractionType.Interact, 2009334u, new Vector3(261.21912f, 46.036377f, 369.98547f), 612) + { + Fly = true + }; + num4 = 6; + List> list395 = new List>(num4); + CollectionsMarshal.SetCount(list395, num4); + span4 = CollectionsMarshal.AsSpan(list395); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference303 = ref span4[num3]; + num5 = 3; + List list396 = new List(num5); + CollectionsMarshal.SetCount(list396, num5); + span5 = CollectionsMarshal.AsSpan(list396); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + reference303 = list396; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj237.RequiredQuestVariables = list395; + reference302 = obj237; + index2++; + ref QuestStep reference304 = ref span3[index2]; + QuestStep obj238 = new QuestStep(EInteractionType.Interact, 2009335u, new Vector3(239.45972f, 41.275635f, 293.6903f), 612) { Fly = true }; num3 = 6; - List> list406 = new List>(num3); - CollectionsMarshal.SetCount(list406, num3); - Span> span173 = CollectionsMarshal.AsSpan(list406); - span173[0] = null; - ref List reference310 = ref span173[1]; - num4 = 3; - List list407 = new List(num4); - CollectionsMarshal.SetCount(list407, num4); - Span span174 = CollectionsMarshal.AsSpan(list407); - span174[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span174[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span174[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - reference310 = list407; - span173[2] = null; - span173[3] = null; - span173[4] = null; - span173[5] = null; - obj244.RequiredQuestVariables = list406; - reference309 = obj244; - ref QuestStep reference311 = ref span166[3]; - QuestStep obj245 = new QuestStep(EInteractionType.Interact, 2009335u, new Vector3(239.45972f, 41.275635f, 293.6903f), 612) + List> list397 = new List>(num3); + CollectionsMarshal.SetCount(list397, num3); + span4 = CollectionsMarshal.AsSpan(list397); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference305 = ref span4[num4]; + index3 = 3; + List list398 = new List(index3); + CollectionsMarshal.SetCount(list398, index3); + span5 = CollectionsMarshal.AsSpan(list398); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference305 = list398; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + obj238.RequiredQuestVariables = list397; + reference304 = obj238; + index2++; + ref QuestStep reference306 = ref span3[index2]; + QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2009336u, new Vector3(331.6853f, 73.3501f, 142.96167f), 612) { Fly = true }; - num3 = 6; - List> list408 = new List>(num3); - CollectionsMarshal.SetCount(list408, num3); - Span> span175 = CollectionsMarshal.AsSpan(list408); - span175[0] = null; - ref List reference312 = ref span175[1]; - num4 = 3; - List list409 = new List(num4); - CollectionsMarshal.SetCount(list409, num4); - Span span176 = CollectionsMarshal.AsSpan(list409); - span176[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span176[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span176[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - reference312 = list409; - span175[2] = null; - span175[3] = null; - span175[4] = null; - span175[5] = null; - obj245.RequiredQuestVariables = list408; - reference311 = obj245; - ref QuestStep reference313 = ref span166[4]; - QuestStep obj246 = new QuestStep(EInteractionType.Interact, 2009336u, new Vector3(331.6853f, 73.3501f, 142.96167f), 612) - { - Fly = true - }; - num3 = 6; - List> list410 = new List>(num3); - CollectionsMarshal.SetCount(list410, num3); - Span> span177 = CollectionsMarshal.AsSpan(list410); - span177[0] = null; - ref List reference314 = ref span177[1]; - num4 = 3; - List list411 = new List(num4); - CollectionsMarshal.SetCount(list411, num4); - Span span178 = CollectionsMarshal.AsSpan(list411); - span178[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span178[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span178[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - reference314 = list411; - span177[2] = null; - span177[3] = null; - span177[4] = null; - span177[5] = null; - obj246.RequiredQuestVariables = list410; - reference313 = obj246; - obj242.Steps = list399; - reference304 = obj242; - ref QuestSequence reference315 = ref span165[2]; - QuestSequence obj247 = new QuestSequence + num4 = 6; + List> list399 = new List>(num4); + CollectionsMarshal.SetCount(list399, num4); + span4 = CollectionsMarshal.AsSpan(list399); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference307 = ref span4[num3]; + num5 = 3; + List list400 = new List(num5); + CollectionsMarshal.SetCount(list400, num5); + span5 = CollectionsMarshal.AsSpan(list400); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + reference307 = list400; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj239.RequiredQuestVariables = list399; + reference306 = obj239; + obj235.Steps = list388; + reference297 = obj235; + num++; + ref QuestSequence reference308 = ref span2[num]; + QuestSequence obj240 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list412 = new List(num2); - CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1025058u, new Vector3(12.344482f, 56.02146f, 260.76135f), 612) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025058u, new Vector3(12.344482f, 56.02146f, 260.76135f), 612) { Fly = true }; - obj247.Steps = list412; - reference315 = obj247; - ref QuestSequence reference316 = ref span165[3]; - QuestSequence obj248 = new QuestSequence + obj240.Steps = list401; + reference308 = obj240; + num++; + ref QuestSequence reference309 = ref span2[num]; + QuestSequence obj241 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - Span span179 = CollectionsMarshal.AsSpan(list413); - span179[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + List list402 = new List(num2); + CollectionsMarshal.SetCount(list402, num2); + span3 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span179[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj248.Steps = list413; - reference316 = obj248; - questRoot39.QuestSequence = list397; - AddQuest(questId39, questRoot39); - QuestId questId40 = new QuestId(3049); - QuestRoot questRoot40 = new QuestRoot(); + obj241.Steps = list402; + reference309 = obj241; + questRoot37.QuestSequence = list386; + AddQuest(questId37, questRoot37); + QuestId questId38 = new QuestId(3049); + QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list414 = new List(num); - CollectionsMarshal.SetCount(list414, num); - CollectionsMarshal.AsSpan(list414)[0] = "plogon_enjoyer"; - questRoot40.Author = list414; - num = 3; - List list415 = new List(num); - CollectionsMarshal.SetCount(list415, num); - Span span180 = CollectionsMarshal.AsSpan(list415); - ref QuestSequence reference317 = ref span180[0]; - QuestSequence obj249 = new QuestSequence + List list403 = new List(num); + CollectionsMarshal.SetCount(list403, num); + span = CollectionsMarshal.AsSpan(list403); + index = 0; + span[index] = "plogon_enjoyer"; + questRoot38.Author = list403; + index = 3; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + span2 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference310 = ref span2[num]; + QuestSequence obj242 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list416 = new List(num2); - CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; - obj249.Steps = list416; - reference317 = obj249; - ref QuestSequence reference318 = ref span180[1]; - QuestSequence obj250 = new QuestSequence + obj242.Steps = list405; + reference310 = obj242; + num++; + ref QuestSequence reference311 = ref span2[num]; + QuestSequence obj243 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - Span span181 = CollectionsMarshal.AsSpan(list417); - ref QuestStep reference319 = ref span181[0]; - QuestStep obj251 = new QuestStep(EInteractionType.Combat, 2009337u, new Vector3(94.95691f, 49.05774f, 575.2803f), 612) + List list406 = new List(num2); + CollectionsMarshal.SetCount(list406, num2); + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + ref QuestStep reference312 = ref span3[index2]; + QuestStep obj244 = new QuestStep(EInteractionType.Combat, 2009337u, new Vector3(94.95691f, 49.05774f, 575.2803f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = 8584u; - obj251.KillEnemyDataIds = list418; - num3 = 6; - List> list419 = new List>(num3); - CollectionsMarshal.SetCount(list419, num3); - Span> span182 = CollectionsMarshal.AsSpan(list419); - span182[0] = null; - span182[1] = null; - ref List reference320 = ref span182[2]; - num4 = 2; - List list420 = new List(num4); - CollectionsMarshal.SetCount(list420, num4); - Span span183 = CollectionsMarshal.AsSpan(list420); - span183[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span183[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - reference320 = list420; - span182[3] = null; - span182[4] = null; - span182[5] = null; - obj251.RequiredQuestVariables = list419; - reference319 = obj251; - ref QuestStep reference321 = ref span181[1]; - QuestStep obj252 = new QuestStep(EInteractionType.Combat, 2009338u, new Vector3(180.07166f, 47.470703f, 546.1051f), 612) + List list407 = new List(num3); + CollectionsMarshal.SetCount(list407, num3); + span6 = CollectionsMarshal.AsSpan(list407); + num4 = 0; + span6[num4] = 8584u; + obj244.KillEnemyDataIds = list407; + num4 = 6; + List> list408 = new List>(num4); + CollectionsMarshal.SetCount(list408, num4); + span4 = CollectionsMarshal.AsSpan(list408); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference313 = ref span4[num3]; + index3 = 2; + List list409 = new List(index3); + CollectionsMarshal.SetCount(list409, index3); + span5 = CollectionsMarshal.AsSpan(list409); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + reference313 = list409; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj244.RequiredQuestVariables = list408; + reference312 = obj244; + index2++; + ref QuestStep reference314 = ref span3[index2]; + QuestStep obj245 = new QuestStep(EInteractionType.Combat, 2009338u, new Vector3(180.07166f, 47.470703f, 546.1051f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list421 = new List(num3); - CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = 8584u; - obj252.KillEnemyDataIds = list421; - num3 = 6; - List> list422 = new List>(num3); - CollectionsMarshal.SetCount(list422, num3); - Span> span184 = CollectionsMarshal.AsSpan(list422); - span184[0] = null; - span184[1] = null; - ref List reference322 = ref span184[2]; - num4 = 2; - List list423 = new List(num4); - CollectionsMarshal.SetCount(list423, num4); - Span span185 = CollectionsMarshal.AsSpan(list423); - span185[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span185[1] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - reference322 = list423; - span184[3] = null; - span184[4] = null; - span184[5] = null; - obj252.RequiredQuestVariables = list422; - reference321 = obj252; - ref QuestStep reference323 = ref span181[2]; - QuestStep obj253 = new QuestStep(EInteractionType.Combat, 2009339u, new Vector3(291.21838f, 47.501343f, 496.75732f), 612) + List list410 = new List(num3); + CollectionsMarshal.SetCount(list410, num3); + span6 = CollectionsMarshal.AsSpan(list410); + num4 = 0; + span6[num4] = 8584u; + obj245.KillEnemyDataIds = list410; + num4 = 6; + List> list411 = new List>(num4); + CollectionsMarshal.SetCount(list411, num4); + span4 = CollectionsMarshal.AsSpan(list411); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference315 = ref span4[num3]; + num5 = 2; + List list412 = new List(num5); + CollectionsMarshal.SetCount(list412, num5); + span5 = CollectionsMarshal.AsSpan(list412); + index3 = 0; + span5[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + reference315 = list412; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj245.RequiredQuestVariables = list411; + reference314 = obj245; + index2++; + ref QuestStep reference316 = ref span3[index2]; + QuestStep obj246 = new QuestStep(EInteractionType.Combat, 2009339u, new Vector3(291.21838f, 47.501343f, 496.75732f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list424 = new List(num3); - CollectionsMarshal.SetCount(list424, num3); - CollectionsMarshal.AsSpan(list424)[0] = 8584u; - obj253.KillEnemyDataIds = list424; - num3 = 6; - List> list425 = new List>(num3); - CollectionsMarshal.SetCount(list425, num3); - Span> span186 = CollectionsMarshal.AsSpan(list425); - span186[0] = null; - span186[1] = null; - ref List reference324 = ref span186[2]; - num4 = 2; - List list426 = new List(num4); - CollectionsMarshal.SetCount(list426, num4); - Span span187 = CollectionsMarshal.AsSpan(list426); - span187[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span187[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - reference324 = list426; - span186[3] = null; - span186[4] = null; - span186[5] = null; - obj253.RequiredQuestVariables = list425; - reference323 = obj253; - obj250.Steps = list417; - reference318 = obj250; - ref QuestSequence reference325 = ref span180[2]; - QuestSequence obj254 = new QuestSequence + List list413 = new List(num3); + CollectionsMarshal.SetCount(list413, num3); + span6 = CollectionsMarshal.AsSpan(list413); + num4 = 0; + span6[num4] = 8584u; + obj246.KillEnemyDataIds = list413; + num4 = 6; + List> list414 = new List>(num4); + CollectionsMarshal.SetCount(list414, num4); + span4 = CollectionsMarshal.AsSpan(list414); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference317 = ref span4[num3]; + index3 = 2; + List list415 = new List(index3); + CollectionsMarshal.SetCount(list415, index3); + span5 = CollectionsMarshal.AsSpan(list415); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference317 = list415; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj246.RequiredQuestVariables = list414; + reference316 = obj246; + obj243.Steps = list406; + reference311 = obj243; + num++; + ref QuestSequence reference318 = ref span2[num]; + QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list427 = new List(num2); - CollectionsMarshal.SetCount(list427, num2); - Span span188 = CollectionsMarshal.AsSpan(list427); - span188[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list416 = new List(index2); + CollectionsMarshal.SetCount(list416, index2); + span3 = CollectionsMarshal.AsSpan(list416); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span188[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true }; - obj254.Steps = list427; - reference325 = obj254; - questRoot40.QuestSequence = list415; - AddQuest(questId40, questRoot40); + obj247.Steps = list416; + reference318 = obj247; + questRoot38.QuestSequence = list404; + AddQuest(questId38, questRoot38); } private static void LoadQuests61() @@ -196044,13 +235241,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -196058,22 +235258,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.UseItem, 2009341u, new Vector3(333.1808f, 61.17334f, -362.41705f), 612) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2009341u, new Vector3(333.1808f, 61.17334f, -362.41705f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -196084,14 +235288,16 @@ public static class AssemblyQuestLoader }, ItemId = 2002437u }; - span2[1] = new QuestStep(EInteractionType.UseItem, 2009340u, new Vector3(90.01294f, 74.44873f, -566.03345f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2009340u, new Vector3(90.01294f, 74.44873f, -566.03345f), 612) { Fly = true, ItemId = 2002437u }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -196099,13 +235305,15 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196119,21 +235327,26 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "plogon_enjoyer"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span4[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, @@ -196147,7 +235360,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span4[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -196155,8 +235369,9 @@ public static class AssemblyQuestLoader num2 = 6; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span5 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1025120u, new Vector3(-333.66907f, 43.042835f, -22.201904f), 612) { Fly = true @@ -196164,25 +235379,35 @@ public static class AssemblyQuestLoader int num3 = 6; List> list10 = new List>(num3); CollectionsMarshal.SetCount(list10, num3); - Span> span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = null; - span6[1] = null; - span6[2] = null; - ref List reference7 = ref span6[3]; - int num4 = 2; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span7[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span> span4 = CollectionsMarshal.AsSpan(list10); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference7 = ref span4[num4]; + int num5 = 2; + List list11 = new List(num5); + CollectionsMarshal.SetCount(list11, num5); + Span span5 = CollectionsMarshal.AsSpan(list11); + int num6 = 0; + span5[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference7 = list11; - span6[4] = null; - span6[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj6.RequiredQuestVariables = list10; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + num4 = 1; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span6 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196190,7 +235415,8 @@ public static class AssemblyQuestLoader }; obj6.DialogueChoices = list12; reference6 = obj6; - ref QuestStep reference8 = ref span5[1]; + index2++; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 1025062u, new Vector3(-345.7237f, 43.09622f, 177.84387f), 612) { Fly = true, @@ -196199,31 +235425,44 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 8587u; + Span span7 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span7[num4] = 8587u; obj7.KillEnemyDataIds = list13; - num3 = 6; - List> list14 = new List>(num3); - CollectionsMarshal.SetCount(list14, num3); - Span> span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - span8[2] = null; - ref List reference9 = ref span8[3]; - num4 = 3; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - Span span9 = CollectionsMarshal.AsSpan(list15); - span9[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span9[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span9[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list14 = new List>(num4); + CollectionsMarshal.SetCount(list14, num4); + span4 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference9 = ref span4[num3]; + num6 = 3; + List list15 = new List(num6); + CollectionsMarshal.SetCount(list15, num6); + span5 = CollectionsMarshal.AsSpan(list15); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference9 = list15; - span8[4] = null; - span8[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj7.RequiredQuestVariables = list14; num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196231,34 +235470,46 @@ public static class AssemblyQuestLoader }; obj7.DialogueChoices = list16; reference8 = obj7; - ref QuestStep reference10 = ref span5[2]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1025119u, new Vector3(-488.18192f, 81.128265f, -191.33289f), 612) { Fly = true }; - num3 = 6; - List> list17 = new List>(num3); - CollectionsMarshal.SetCount(list17, num3); - Span> span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = null; - span10[1] = null; - span10[2] = null; - ref List reference11 = ref span10[3]; - num4 = 3; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span11 = CollectionsMarshal.AsSpan(list18); - span11[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span11[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span11[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list17 = new List>(num4); + CollectionsMarshal.SetCount(list17, num4); + span4 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference11 = ref span4[num3]; + num5 = 3; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span5 = CollectionsMarshal.AsSpan(list18); + num6 = 0; + span5[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference11 = list18; - span10[4] = null; - span10[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj8.RequiredQuestVariables = list17; num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196266,39 +235517,52 @@ public static class AssemblyQuestLoader }; obj8.DialogueChoices = list19; reference10 = obj8; - ref QuestStep reference12 = ref span5[3]; + index2++; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 1025061u, new Vector3(-488.18192f, 81.128265f, -191.33289f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 8586u; + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + span7 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span7[num3] = 8586u; obj9.KillEnemyDataIds = list20; num3 = 6; List> list21 = new List>(num3); CollectionsMarshal.SetCount(list21, num3); - Span> span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = null; - span12[1] = null; - span12[2] = null; - ref List reference13 = ref span12[3]; - num4 = 2; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span13 = CollectionsMarshal.AsSpan(list22); - span13[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span13[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference13 = ref span4[num4]; + num6 = 2; + List list22 = new List(num6); + CollectionsMarshal.SetCount(list22, num6); + span5 = CollectionsMarshal.AsSpan(list22); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference13 = list22; - span12[4] = null; - span12[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj9.RequiredQuestVariables = list21; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + span6 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196306,7 +235570,8 @@ public static class AssemblyQuestLoader }; obj9.DialogueChoices = list23; reference12 = obj9; - ref QuestStep reference14 = ref span5[4]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 1025060u, new Vector3(-572.9916f, 112.44218f, -229.32788f), 612) { Fly = true, @@ -196315,30 +235580,42 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 8585u; + span7 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span7[num4] = 8585u; obj10.KillEnemyDataIds = list24; - num3 = 6; - List> list25 = new List>(num3); - CollectionsMarshal.SetCount(list25, num3); - Span> span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = null; - span14[1] = null; - span14[2] = null; - ref List reference15 = ref span14[3]; - num4 = 2; - List list26 = new List(num4); - CollectionsMarshal.SetCount(list26, num4); - Span span15 = CollectionsMarshal.AsSpan(list26); - span15[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span15[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list25 = new List>(num4); + CollectionsMarshal.SetCount(list25, num4); + span4 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference15 = ref span4[num3]; + num5 = 2; + List list26 = new List(num5); + CollectionsMarshal.SetCount(list26, num5); + span5 = CollectionsMarshal.AsSpan(list26); + num6 = 0; + span5[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference15 = list26; - span14[4] = null; - span14[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj10.RequiredQuestVariables = list25; num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196346,34 +235623,46 @@ public static class AssemblyQuestLoader }; obj10.DialogueChoices = list27; reference14 = obj10; - ref QuestStep reference16 = ref span5[5]; + index2++; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1025118u, new Vector3(-572.96106f, 112.436066f, -229.29736f), 612) { Fly = true }; - num3 = 6; - List> list28 = new List>(num3); - CollectionsMarshal.SetCount(list28, num3); - Span> span16 = CollectionsMarshal.AsSpan(list28); - span16[0] = null; - span16[1] = null; - span16[2] = null; - ref List reference17 = ref span16[3]; - num4 = 3; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span17[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span17[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list28 = new List>(num4); + CollectionsMarshal.SetCount(list28, num4); + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference17 = ref span4[num3]; + num6 = 3; + List list29 = new List(num6); + CollectionsMarshal.SetCount(list29, num6); + span5 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference17 = list29; - span16[4] = null; - span16[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj11.RequiredQuestVariables = list28; num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196383,21 +235672,24 @@ public static class AssemblyQuestLoader reference16 = obj11; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference18 = ref span4[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196411,13 +235703,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "plogon_enjoyer"; questRoot3.Author = list32; - num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span19 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference19 = ref span19[0]; + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span2 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -196425,45 +235720,58 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj13.Steps = list34; reference19 = obj13; - ref QuestSequence reference20 = ref span19[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span20 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference21 = ref span20[0]; + index2 = 4; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1025066u, new Vector3(-155.90149f, 66.2623f, -366.93372f), 612) { Fly = true, Emote = EEmote.Rally }; - num3 = 6; - List> list36 = new List>(num3); - CollectionsMarshal.SetCount(list36, num3); - Span> span21 = CollectionsMarshal.AsSpan(list36); - span21[0] = null; - span21[1] = null; - ref List reference22 = ref span21[2]; - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - CollectionsMarshal.AsSpan(list37)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list36 = new List>(num4); + CollectionsMarshal.SetCount(list36, num4); + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference22 = ref span4[num3]; + num5 = 1; + List list37 = new List(num5); + CollectionsMarshal.SetCount(list37, num5); + span5 = CollectionsMarshal.AsSpan(list37); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference22 = list37; - span21[3] = null; - span21[4] = null; - span21[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj15.RequiredQuestVariables = list36; reference21 = obj15; - ref QuestStep reference23 = ref span20[1]; + num2++; + ref QuestStep reference23 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1025064u, new Vector3(185.62585f, 68.93902f, -372.15234f), 612) { Fly = true, @@ -196472,44 +235780,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list38 = new List>(num3); CollectionsMarshal.SetCount(list38, num3); - Span> span22 = CollectionsMarshal.AsSpan(list38); - span22[0] = null; - ref List reference24 = ref span22[1]; - num4 = 1; - List list39 = new List(num4); - CollectionsMarshal.SetCount(list39, num4); - CollectionsMarshal.AsSpan(list39)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference24 = ref span4[num4]; + num6 = 1; + List list39 = new List(num6); + CollectionsMarshal.SetCount(list39, num6); + span5 = CollectionsMarshal.AsSpan(list39); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference24 = list39; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj16.RequiredQuestVariables = list38; reference23 = obj16; - ref QuestStep reference25 = ref span20[2]; + num2++; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Emote, 1025063u, new Vector3(291.73718f, 73.622604f, -496.87955f), 612) { Fly = true, Emote = EEmote.Soothe }; - num3 = 6; - List> list40 = new List>(num3); - CollectionsMarshal.SetCount(list40, num3); - Span> span23 = CollectionsMarshal.AsSpan(list40); - span23[0] = null; - ref List reference26 = ref span23[1]; - num4 = 1; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - CollectionsMarshal.AsSpan(list41)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list40 = new List>(num4); + CollectionsMarshal.SetCount(list40, num4); + span4 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference26 = ref span4[num3]; + num5 = 1; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + span5 = CollectionsMarshal.AsSpan(list41); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference26 = list41; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj17.RequiredQuestVariables = list40; reference25 = obj17; - ref QuestStep reference27 = ref span20[3]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Emote, 1025065u, new Vector3(-73.04492f, 62.044453f, -878.78235f), 612) { Fly = true, @@ -196518,23 +235844,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list42 = new List>(num3); CollectionsMarshal.SetCount(list42, num3); - Span> span24 = CollectionsMarshal.AsSpan(list42); - span24[0] = null; - span24[1] = null; - ref List reference28 = ref span24[2]; - num4 = 1; - List list43 = new List(num4); - CollectionsMarshal.SetCount(list43, num4); - CollectionsMarshal.AsSpan(list43)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference28 = ref span4[num4]; + num6 = 1; + List list43 = new List(num6); + CollectionsMarshal.SetCount(list43, num6); + span5 = CollectionsMarshal.AsSpan(list43); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference28 = list43; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj18.RequiredQuestVariables = list42; reference27 = obj18; obj14.Steps = list35; reference20 = obj14; - ref QuestSequence reference29 = ref span19[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -196542,13 +235877,15 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196562,27 +235899,33 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "plogon_enjoyer"; questRoot4.Author = list45; - num = 4; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span26 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference30 = ref span26[0]; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj20.Steps = list47; reference30 = obj20; - ref QuestSequence reference31 = ref span26[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -196590,32 +235933,40 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list48)[0]; + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference32 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 1025067u, new Vector3(39.04773f, 43.373318f, -221.9425f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 8588u; + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span7 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span7[num3] = 8588u; obj22.KillEnemyDataIds = list49; reference32 = obj22; obj21.Steps = list48; reference31 = obj21; - ref QuestSequence reference33 = ref span26[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1025247u, new Vector3(41.45874f, 42.875717f, -218.28033f), 612); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025247u, new Vector3(41.45874f, 42.875717f, -218.28033f), 612); obj23.Steps = list50; reference33 = obj23; - ref QuestSequence reference34 = ref span26[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -196623,12 +235974,14 @@ public static class AssemblyQuestLoader num2 = 2; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span27 = CollectionsMarshal.AsSpan(list51); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196642,27 +235995,33 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "plogon_enjoyer"; questRoot5.Author = list52; - num = 3; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span28 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference35 = ref span28[0]; + index = 3; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj25.Steps = list54; reference35 = obj25; - ref QuestSequence reference36 = ref span28[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -196670,8 +236029,9 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span29 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference37 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-169.52124f, 41.96321f, -23.855082f), 612) { Fly = true, @@ -196681,27 +236041,38 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 8589u; + span7 = CollectionsMarshal.AsSpan(list56); + num4 = 0; + span7[num4] = 8589u; obj27.KillEnemyDataIds = list56; obj27.CombatDelaySecondsAtStart = 1f; - num3 = 6; - List> list57 = new List>(num3); - CollectionsMarshal.SetCount(list57, num3); - Span> span30 = CollectionsMarshal.AsSpan(list57); - span30[0] = null; - span30[1] = null; - ref List reference38 = ref span30[2]; - num4 = 1; - List list58 = new List(num4); - CollectionsMarshal.SetCount(list58, num4); - CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list57 = new List>(num4); + CollectionsMarshal.SetCount(list57, num4); + span4 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference38 = ref span4[num3]; + num5 = 1; + List list58 = new List(num5); + CollectionsMarshal.SetCount(list58, num5); + span5 = CollectionsMarshal.AsSpan(list58); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference38 = list58; - span30[3] = null; - span30[4] = null; - span30[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj27.RequiredQuestVariables = list57; reference37 = obj27; - ref QuestStep reference39 = ref span29[1]; + index2++; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-259.28268f, 49.18244f, 33.798065f), 612) { Fly = true, @@ -196711,27 +236082,38 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 8589u; + span7 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span7[num4] = 8589u; obj28.KillEnemyDataIds = list59; obj28.CombatDelaySecondsAtStart = 1f; - num3 = 6; - List> list60 = new List>(num3); - CollectionsMarshal.SetCount(list60, num3); - Span> span31 = CollectionsMarshal.AsSpan(list60); - span31[0] = null; - span31[1] = null; - ref List reference40 = ref span31[2]; - num4 = 1; - List list61 = new List(num4); - CollectionsMarshal.SetCount(list61, num4); - CollectionsMarshal.AsSpan(list61)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list60 = new List>(num4); + CollectionsMarshal.SetCount(list60, num4); + span4 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference40 = ref span4[num3]; + num6 = 1; + List list61 = new List(num6); + CollectionsMarshal.SetCount(list61, num6); + span5 = CollectionsMarshal.AsSpan(list61); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference40 = list61; - span31[3] = null; - span31[4] = null; - span31[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj28.RequiredQuestVariables = list60; reference39 = obj28; - ref QuestStep reference41 = ref span29[2]; + index2++; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(-219.26901f, 43.36f, 90.7601f), 612) { Fly = true, @@ -196741,42 +236123,55 @@ public static class AssemblyQuestLoader num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = 8589u; + span7 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span7[num4] = 8589u; obj29.KillEnemyDataIds = list62; obj29.CombatDelaySecondsAtStart = 1f; - num3 = 6; - List> list63 = new List>(num3); - CollectionsMarshal.SetCount(list63, num3); - Span> span32 = CollectionsMarshal.AsSpan(list63); - span32[0] = null; - span32[1] = null; - ref List reference42 = ref span32[2]; - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - CollectionsMarshal.AsSpan(list64)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list63 = new List>(num4); + CollectionsMarshal.SetCount(list63, num4); + span4 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference42 = ref span4[num3]; + num5 = 1; + List list64 = new List(num5); + CollectionsMarshal.SetCount(list64, num5); + span5 = CollectionsMarshal.AsSpan(list64); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference42 = list64; - span32[3] = null; - span32[4] = null; - span32[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj29.RequiredQuestVariables = list63; reference41 = obj29; obj26.Steps = list55; reference36 = obj26; - ref QuestSequence reference43 = ref span28[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span33 = CollectionsMarshal.AsSpan(list65); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196790,13 +236185,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot6.Author = list66; - num = 4; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span34 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference44 = ref span34[0]; + index = 4; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -196804,24 +236202,30 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj31.Steps = list68; reference44 = obj31; - ref QuestSequence reference45 = ref span34[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1024775u, new Vector3(-35.599304f, 55.9782f, 214.58752f), 612); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024775u, new Vector3(-35.599304f, 55.9782f, 214.58752f), 612); obj32.Steps = list69; reference45 = obj32; - ref QuestSequence reference46 = ref span34[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -196829,8 +236233,9 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span35 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference47 = ref span35[0]; + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj34 = new QuestStep(EInteractionType.Action, 1025170u, new Vector3(253.10132f, 45.434376f, 416.98328f), 612) { Fly = true, @@ -196839,49 +236244,65 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span36 = CollectionsMarshal.AsSpan(list71); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list71); + 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); obj34.CompletionQuestVariablesFlags = list71; reference47 = obj34; - ref QuestStep reference48 = ref span35[1]; + index2++; + ref QuestStep reference48 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Action, 1025171u, new Vector3(349.8435f, 51.839485f, 229.66345f), 612) { Fly = true, Action = EAction.BuffetGriffin }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span37 = CollectionsMarshal.AsSpan(list72); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + span5 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list72; reference48 = obj35; obj33.Steps = list70; reference46 = obj33; - ref QuestSequence reference49 = ref span34[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span38 = CollectionsMarshal.AsSpan(list73); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Mount = false @@ -196895,13 +236316,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "liza"; questRoot7.Author = list74; - num = 3; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span39 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference50 = ref span39[0]; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -196909,21 +236333,26 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj37.Steps = list76; reference50 = obj37; - ref QuestSequence reference51 = ref span39[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list77)[0]; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 8590u, new Vector3(-50.436653f, 41.158955f, -264.4358f), 612) { Fly = true, @@ -196934,7 +236363,9 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new ComplexCombatData + Span span8 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 7030u }; @@ -196948,7 +236379,8 @@ public static class AssemblyQuestLoader reference52 = obj39; obj38.Steps = list77; reference51 = obj38; - ref QuestSequence reference53 = ref span39[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -196956,12 +236388,14 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span40 = CollectionsMarshal.AsSpan(list79); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196975,27 +236409,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot8.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span41 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference54 = ref span41[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj41.Steps = list82; reference54 = obj41; - ref QuestSequence reference55 = ref span41[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -197003,221 +236443,302 @@ public static class AssemblyQuestLoader num2 = 6; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span42 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference56 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2009344u, new Vector3(101.304565f, 41.031494f, -180.89569f), 612) { Fly = true, Comment = "Kill enemy, then use item", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 8591u; + num4 = 1; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + span7 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span7[num3] = 8591u; obj43.KillEnemyDataIds = list84; num3 = 6; List> list85 = new List>(num3); CollectionsMarshal.SetCount(list85, num3); - Span> span43 = CollectionsMarshal.AsSpan(list85); - span43[0] = null; - span43[1] = null; - ref List reference57 = ref span43[2]; - num4 = 2; - List list86 = new List(num4); - CollectionsMarshal.SetCount(list86, num4); - Span span44 = CollectionsMarshal.AsSpan(list86); - span44[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span44[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference57 = ref span4[num4]; + num6 = 2; + List list86 = new List(num6); + CollectionsMarshal.SetCount(list86, num6); + span5 = CollectionsMarshal.AsSpan(list86); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference57 = list86; - span43[3] = null; - span43[4] = null; - span43[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj43.RequiredQuestVariables = list85; reference56 = obj43; - ref QuestStep reference58 = ref span42[1]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(101.304565f, 41.031494f, -180.89569f), 612) { ItemId = 2002439u }; - num3 = 6; - List> list87 = new List>(num3); - CollectionsMarshal.SetCount(list87, num3); - Span> span45 = CollectionsMarshal.AsSpan(list87); - span45[0] = null; - span45[1] = null; - ref List reference59 = ref span45[2]; - num4 = 2; - List list88 = new List(num4); - CollectionsMarshal.SetCount(list88, num4); - Span span46 = CollectionsMarshal.AsSpan(list88); - span46[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span46[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list87 = new List>(num4); + CollectionsMarshal.SetCount(list87, num4); + span4 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference59 = ref span4[num3]; + num5 = 2; + List list88 = new List(num5); + CollectionsMarshal.SetCount(list88, num5); + span5 = CollectionsMarshal.AsSpan(list88); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference59 = list88; - span45[3] = null; - span45[4] = null; - span45[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj44.RequiredQuestVariables = list87; num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span47 = CollectionsMarshal.AsSpan(list89); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list89); + 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); obj44.CompletionQuestVariablesFlags = list89; reference58 = obj44; - ref QuestStep reference60 = ref span42[2]; + index2++; + ref QuestStep reference60 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, 2009345u, new Vector3(136.40039f, 50.369995f, -397.69592f), 612) { Fly = true, Comment = "Kill enemy, then use item", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 8591u; + num4 = 1; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + span7 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span7[num3] = 8591u; obj45.KillEnemyDataIds = list90; num3 = 6; List> list91 = new List>(num3); CollectionsMarshal.SetCount(list91, num3); - Span> span48 = CollectionsMarshal.AsSpan(list91); - span48[0] = null; - span48[1] = null; - ref List reference61 = ref span48[2]; - num4 = 2; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span49 = CollectionsMarshal.AsSpan(list92); - span49[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference61 = ref span4[num4]; + num6 = 2; + List list92 = new List(num6); + CollectionsMarshal.SetCount(list92, num6); + span5 = CollectionsMarshal.AsSpan(list92); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference61 = list92; - span48[3] = null; - span48[4] = null; - span48[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj45.RequiredQuestVariables = list91; reference60 = obj45; - ref QuestStep reference62 = ref span42[3]; + index2++; + ref QuestStep reference62 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(136.40039f, 50.369995f, -397.69592f), 612) { ItemId = 2002439u }; - num3 = 6; - List> list93 = new List>(num3); - CollectionsMarshal.SetCount(list93, num3); - Span> span50 = CollectionsMarshal.AsSpan(list93); - span50[0] = null; - span50[1] = null; - ref List reference63 = ref span50[2]; - num4 = 2; - List list94 = new List(num4); - CollectionsMarshal.SetCount(list94, num4); - Span span51 = CollectionsMarshal.AsSpan(list94); - span51[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span51[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list93 = new List>(num4); + CollectionsMarshal.SetCount(list93, num4); + span4 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference63 = ref span4[num3]; + num5 = 2; + List list94 = new List(num5); + CollectionsMarshal.SetCount(list94, num5); + span5 = CollectionsMarshal.AsSpan(list94); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference63 = list94; - span50[3] = null; - span50[4] = null; - span50[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj46.RequiredQuestVariables = list93; num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span52 = CollectionsMarshal.AsSpan(list95); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list95); + 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); obj46.CompletionQuestVariablesFlags = list95; reference62 = obj46; - ref QuestStep reference64 = ref span42[4]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2009346u, new Vector3(12.588623f, 41.672363f, -294.02612f), 612) { Fly = true, Comment = "Kill enemy, then use item", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 8591u; + num4 = 1; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + span7 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span7[num3] = 8591u; obj47.KillEnemyDataIds = list96; num3 = 6; List> list97 = new List>(num3); CollectionsMarshal.SetCount(list97, num3); - Span> span53 = CollectionsMarshal.AsSpan(list97); - span53[0] = null; - span53[1] = null; - ref List reference65 = ref span53[2]; - num4 = 2; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - Span span54 = CollectionsMarshal.AsSpan(list98); - span54[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span54[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference65 = ref span4[num4]; + num6 = 2; + List list98 = new List(num6); + CollectionsMarshal.SetCount(list98, num6); + span5 = CollectionsMarshal.AsSpan(list98); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference65 = list98; - span53[3] = null; - span53[4] = null; - span53[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj47.RequiredQuestVariables = list97; reference64 = obj47; - ref QuestStep reference66 = ref span42[5]; + index2++; + ref QuestStep reference66 = ref span3[index2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(12.588623f, 41.672363f, -294.02612f), 612) { ItemId = 2002439u }; - num3 = 6; - List> list99 = new List>(num3); - CollectionsMarshal.SetCount(list99, num3); - Span> span55 = CollectionsMarshal.AsSpan(list99); - span55[0] = null; - span55[1] = null; - ref List reference67 = ref span55[2]; - num4 = 2; - List list100 = new List(num4); - CollectionsMarshal.SetCount(list100, num4); - Span span56 = CollectionsMarshal.AsSpan(list100); - span56[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span56[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list99 = new List>(num4); + CollectionsMarshal.SetCount(list99, num4); + span4 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference67 = ref span4[num3]; + num5 = 2; + List list100 = new List(num5); + CollectionsMarshal.SetCount(list100, num5); + span5 = CollectionsMarshal.AsSpan(list100); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference67 = list100; - span55[3] = null; - span55[4] = null; - span55[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj48.RequiredQuestVariables = list99; num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span57 = CollectionsMarshal.AsSpan(list101); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list101); + 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); obj48.CompletionQuestVariablesFlags = list101; reference66 = obj48; obj42.Steps = list83; reference55 = obj42; - ref QuestSequence reference68 = ref span41[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span58 = CollectionsMarshal.AsSpan(list102); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197231,13 +236752,16 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "plogon_enjoyer"; questRoot9.Author = list103; - num = 6; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span59 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference69 = ref span59[0]; + index = 6; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -197245,27 +236769,33 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj50.Steps = list105; reference69 = obj50; - ref QuestSequence reference70 = ref span59[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) { Fly = true }; obj51.Steps = list106; reference70 = obj51; - ref QuestSequence reference71 = ref span59[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -197273,27 +236803,33 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) { Fly = true }; obj52.Steps = list107; reference71 = obj52; - ref QuestSequence reference72 = ref span59[3]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) { Fly = true }; obj53.Steps = list108; reference72 = obj53; - ref QuestSequence reference73 = ref span59[4]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 4 @@ -197301,26 +236837,31 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) { Fly = true }; obj54.Steps = list109; reference73 = obj54; - ref QuestSequence reference74 = ref span59[5]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span60 = CollectionsMarshal.AsSpan(list110); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197334,13 +236875,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "plogon_enjoyer"; questRoot10.Author = list111; - num = 4; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span61 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference75 = ref span61[0]; + index = 4; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -197348,28 +236892,34 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj56.Steps = list113; reference75 = obj56; - ref QuestSequence reference76 = ref span61[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.UseItem, 2009348u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2009348u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) { Fly = true, ItemId = 2002441u }; obj57.Steps = list114; reference76 = obj57; - ref QuestSequence reference77 = ref span61[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -197377,33 +236927,40 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list115)[0]; + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2009349u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 8592u; + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + span7 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span7[num3] = 8592u; obj59.KillEnemyDataIds = list116; reference78 = obj59; obj58.Steps = list115; reference77 = obj58; - ref QuestSequence reference79 = ref span61[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span62 = CollectionsMarshal.AsSpan(list117); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197417,13 +236974,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "plogon_enjoyer"; questRoot11.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span63 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference80 = ref span63[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -197431,27 +236991,33 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj61.Steps = list120; reference80 = obj61; - ref QuestSequence reference81 = ref span63[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) { Fly = true }; obj62.Steps = list121; reference81 = obj62; - ref QuestSequence reference82 = ref span63[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -197459,28 +237025,34 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Snipe, 2009350u, new Vector3(620.29456f, 48.599854f, 349.87402f), 612) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2009350u, new Vector3(620.29456f, 48.599854f, 349.87402f), 612) { Fly = true, Comment = "Shoot the Crazed Dharas" }; obj63.Steps = list122; reference82 = obj63; - ref QuestSequence reference83 = ref span63[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) { Fly = true }; obj64.Steps = list123; reference83 = obj64; - ref QuestSequence reference84 = ref span63[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -197488,12 +237060,14 @@ public static class AssemblyQuestLoader num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span64 = CollectionsMarshal.AsSpan(list124); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197507,27 +237081,33 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot12.Author = list125; - num = 4; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span65 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference85 = ref span65[0]; + index = 4; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj66.Steps = list127; reference85 = obj66; - ref QuestSequence reference86 = ref span65[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -197535,18 +237115,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1024777u, new Vector3(-41.641907f, 55.97816f, 211.38318f), 612); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024777u, new Vector3(-41.641907f, 55.97816f, 211.38318f), 612); obj67.Steps = list128; reference86 = obj67; - ref QuestSequence reference87 = ref span65[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list129)[0]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(482.93036f, 42.43753f, 350.85095f), 612) { StopDistance = 0.5f, @@ -197557,12 +237142,15 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = 8593u; + span7 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span7[num4] = 8593u; obj69.KillEnemyDataIds = list130; reference88 = obj69; obj68.Steps = list129; reference87 = obj68; - ref QuestSequence reference89 = ref span65[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -197570,12 +237158,14 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span66 = CollectionsMarshal.AsSpan(list131); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197589,27 +237179,33 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot13.Author = list132; - num = 5; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span67 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference90 = ref span67[0]; + index = 5; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj71.Steps = list134; reference90 = obj71; - ref QuestSequence reference91 = ref span67[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -197617,24 +237213,30 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612) { Fly = true }; obj72.Steps = list135; reference91 = obj72; - ref QuestSequence reference92 = ref span67[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); obj73.Steps = list136; reference92 = obj73; - ref QuestSequence reference93 = ref span67[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -197642,23 +237244,28 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); obj74.Steps = list137; reference93 = obj74; - ref QuestSequence reference94 = ref span67[4]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span68 = CollectionsMarshal.AsSpan(list138); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197672,13 +237279,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot14.Author = list139; - num = 3; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span69 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference95 = ref span69[0]; + index = 3; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -197686,65 +237296,87 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj76.Steps = list141; reference95 = obj76; - ref QuestSequence reference96 = ref span69[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span70 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference97 = ref span70[0]; + index2 = 4; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2009357u, new Vector3(-173.3883f, 58.1521f, -449.48505f), 612) { Fly = true, ItemId = 2002446u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = 8594u; + num4 = 1; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + span7 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span7[num3] = 8594u; obj78.KillEnemyDataIds = list143; num3 = 6; List> list144 = new List>(num3); CollectionsMarshal.SetCount(list144, num3); - Span> span71 = CollectionsMarshal.AsSpan(list144); - span71[0] = null; - span71[1] = null; - span71[2] = null; - ref List reference98 = ref span71[3]; - num4 = 3; - List list145 = new List(num4); - CollectionsMarshal.SetCount(list145, num4); - Span span72 = CollectionsMarshal.AsSpan(list145); - span72[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span72[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span72[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference98 = ref span4[num4]; + num6 = 3; + List list145 = new List(num6); + CollectionsMarshal.SetCount(list145, num6); + span5 = CollectionsMarshal.AsSpan(list145); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference98 = list145; - span71[4] = null; - span71[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj78.RequiredQuestVariables = list144; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span73 = CollectionsMarshal.AsSpan(list146); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + span5 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj78.CompletionQuestVariablesFlags = list146; reference97 = obj78; - ref QuestStep reference99 = ref span70[1]; + num2++; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, 2009356u, new Vector3(-210.2846f, 59.250732f, -512.0775f), 612) { Fly = true, @@ -197754,83 +237386,119 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = 8594u; + span7 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span7[num4] = 8594u; obj79.KillEnemyDataIds = list147; - num3 = 6; - List> list148 = new List>(num3); - CollectionsMarshal.SetCount(list148, num3); - Span> span74 = CollectionsMarshal.AsSpan(list148); - span74[0] = null; - span74[1] = null; - span74[2] = null; - ref List reference100 = ref span74[3]; - num4 = 3; - List list149 = new List(num4); - CollectionsMarshal.SetCount(list149, num4); - Span span75 = CollectionsMarshal.AsSpan(list149); - span75[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span75[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span75[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num4 = 6; + List> list148 = new List>(num4); + CollectionsMarshal.SetCount(list148, num4); + span4 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference100 = ref span4[num3]; + num5 = 3; + List list149 = new List(num5); + CollectionsMarshal.SetCount(list149, num5); + span5 = CollectionsMarshal.AsSpan(list149); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference100 = list149; - span74[4] = null; - span74[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj79.RequiredQuestVariables = list148; num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span76 = CollectionsMarshal.AsSpan(list150); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list150); + 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); obj79.CompletionQuestVariablesFlags = list150; reference99 = obj79; - ref QuestStep reference101 = ref span70[2]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2009355u, new Vector3(-210.98651f, 59.28125f, -668.6351f), 612) { Fly = true, ItemId = 2002446u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = 8594u; + num4 = 1; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + span7 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span7[num3] = 8594u; obj80.KillEnemyDataIds = list151; num3 = 6; List> list152 = new List>(num3); CollectionsMarshal.SetCount(list152, num3); - Span> span77 = CollectionsMarshal.AsSpan(list152); - span77[0] = null; - span77[1] = null; - span77[2] = null; - ref List reference102 = ref span77[3]; - num4 = 3; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span78 = CollectionsMarshal.AsSpan(list153); - span78[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span78[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span78[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference102 = ref span4[num4]; + num6 = 3; + List list153 = new List(num6); + CollectionsMarshal.SetCount(list153, num6); + span5 = CollectionsMarshal.AsSpan(list153); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference102 = list153; - span77[4] = null; - span77[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj80.RequiredQuestVariables = list152; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span79 = CollectionsMarshal.AsSpan(list154); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + span5 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj80.CompletionQuestVariablesFlags = list154; reference101 = obj80; - ref QuestStep reference103 = ref span70[3]; + num2++; + ref QuestStep reference103 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2009358u, new Vector3(-171.03839f, 59.098145f, -750.3014f), 612) { Fly = true, @@ -197840,42 +237508,60 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 8594u; + span7 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span7[num4] = 8594u; obj81.KillEnemyDataIds = list155; - num3 = 6; - List> list156 = new List>(num3); - CollectionsMarshal.SetCount(list156, num3); - Span> span80 = CollectionsMarshal.AsSpan(list156); - span80[0] = null; - span80[1] = null; - span80[2] = null; - ref List reference104 = ref span80[3]; - num4 = 3; - List list157 = new List(num4); - CollectionsMarshal.SetCount(list157, num4); - Span span81 = CollectionsMarshal.AsSpan(list157); - span81[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span81[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span81[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num4 = 6; + List> list156 = new List>(num4); + CollectionsMarshal.SetCount(list156, num4); + span4 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference104 = ref span4[num3]; + num5 = 3; + List list157 = new List(num5); + CollectionsMarshal.SetCount(list157, num5); + span5 = CollectionsMarshal.AsSpan(list157); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference104 = list157; - span80[4] = null; - span80[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj81.RequiredQuestVariables = list156; num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span82 = CollectionsMarshal.AsSpan(list158); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list158); + 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); obj81.CompletionQuestVariablesFlags = list158; reference103 = obj81; obj77.Steps = list142; reference96 = obj77; - ref QuestSequence reference105 = ref span69[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -197883,12 +237569,14 @@ public static class AssemblyQuestLoader num2 = 2; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span83 = CollectionsMarshal.AsSpan(list159); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197902,27 +237590,33 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot15.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span84 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference106 = ref span84[0]; + index = 4; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj83.Steps = list162; reference106 = obj83; - ref QuestSequence reference107 = ref span84[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -197930,8 +237624,9 @@ public static class AssemblyQuestLoader num2 = 12; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span85 = CollectionsMarshal.AsSpan(list163); - ref QuestStep reference108 = ref span85[0]; + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-524.1742f, 122.74836f, -452.27313f), 612) { Fly = true, @@ -197939,499 +237634,738 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span86 = CollectionsMarshal.AsSpan(list164); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + span5 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list164; skipConditions.StepIf = skipStepConditions; obj85.SkipConditions = skipConditions; num3 = 6; List> list165 = new List>(num3); CollectionsMarshal.SetCount(list165, num3); - Span> span87 = CollectionsMarshal.AsSpan(list165); - span87[0] = null; - ref List reference109 = ref span87[1]; - num4 = 8; - List list166 = new List(num4); - CollectionsMarshal.SetCount(list166, num4); - Span span88 = CollectionsMarshal.AsSpan(list166); - span88[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span88[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span88[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span88[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span88[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span88[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span88[6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span88[7] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference109 = ref span4[num4]; + num6 = 8; + List list166 = new List(num6); + CollectionsMarshal.SetCount(list166, num6); + span5 = CollectionsMarshal.AsSpan(list166); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference109 = list166; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj85.RequiredQuestVariables = list165; reference108 = obj85; - ref QuestStep reference110 = ref span85[1]; + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2009361u, new Vector3(-522.6368f, 122.72827f, -452.14008f), 612); - num3 = 6; - List> list167 = new List>(num3); - CollectionsMarshal.SetCount(list167, num3); - Span> span89 = CollectionsMarshal.AsSpan(list167); - span89[0] = null; - ref List reference111 = ref span89[1]; - num4 = 8; - List list168 = new List(num4); - CollectionsMarshal.SetCount(list168, num4); - Span span90 = CollectionsMarshal.AsSpan(list168); - span90[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span90[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span90[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span90[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span90[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span90[6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span90[7] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list167 = new List>(num4); + CollectionsMarshal.SetCount(list167, num4); + span4 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference111 = ref span4[num3]; + num5 = 8; + List list168 = new List(num5); + CollectionsMarshal.SetCount(list168, num5); + span5 = CollectionsMarshal.AsSpan(list168); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference111 = list168; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep.RequiredQuestVariables = list167; num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span91 = CollectionsMarshal.AsSpan(list169); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list169; reference110 = questStep; - ref QuestStep reference112 = ref span85[2]; + index2++; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-411.28598f, 131.97496f, -481.9826f), 612) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span92 = CollectionsMarshal.AsSpan(list170); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + span5 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list170; skipConditions2.StepIf = skipStepConditions2; obj86.SkipConditions = skipConditions2; num3 = 6; List> list171 = new List>(num3); CollectionsMarshal.SetCount(list171, num3); - Span> span93 = CollectionsMarshal.AsSpan(list171); - span93[0] = null; - ref List reference113 = ref span93[1]; - num4 = 6; - List list172 = new List(num4); - CollectionsMarshal.SetCount(list172, num4); - Span span94 = CollectionsMarshal.AsSpan(list172); - span94[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span94[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span94[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span94[3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span94[4] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span94[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference113 = ref span4[num4]; + num6 = 6; + List list172 = new List(num6); + CollectionsMarshal.SetCount(list172, num6); + span5 = CollectionsMarshal.AsSpan(list172); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); reference113 = list172; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj86.RequiredQuestVariables = list171; reference112 = obj86; - ref QuestStep reference114 = ref span85[3]; + index2++; + ref QuestStep reference114 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2009360u, new Vector3(-410.66608f, 131.85315f, -481.62054f), 612); - num3 = 6; - List> list173 = new List>(num3); - CollectionsMarshal.SetCount(list173, num3); - Span> span95 = CollectionsMarshal.AsSpan(list173); - span95[0] = null; - ref List reference115 = ref span95[1]; num4 = 6; - List list174 = new List(num4); - CollectionsMarshal.SetCount(list174, num4); - Span span96 = CollectionsMarshal.AsSpan(list174); - span96[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span96[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span96[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span96[3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span96[4] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span96[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + List> list173 = new List>(num4); + CollectionsMarshal.SetCount(list173, num4); + span4 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference115 = ref span4[num3]; + num5 = 6; + List list174 = new List(num5); + CollectionsMarshal.SetCount(list174, num5); + span5 = CollectionsMarshal.AsSpan(list174); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); reference115 = list174; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep2.RequiredQuestVariables = list173; num3 = 6; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - Span span97 = CollectionsMarshal.AsSpan(list175); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list175); + 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); questStep2.CompletionQuestVariablesFlags = list175; reference114 = questStep2; - ref QuestStep reference116 = ref span85[4]; + index2++; + ref QuestStep reference116 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.2737f, 128.53287f, -511.0367f), 612) { Fly = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span98 = CollectionsMarshal.AsSpan(list176); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + span5 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list176; skipConditions3.StepIf = skipStepConditions3; obj87.SkipConditions = skipConditions3; num3 = 6; List> list177 = new List>(num3); CollectionsMarshal.SetCount(list177, num3); - Span> span99 = CollectionsMarshal.AsSpan(list177); - span99[0] = null; - ref List reference117 = ref span99[1]; - num4 = 7; - List list178 = new List(num4); - CollectionsMarshal.SetCount(list178, num4); - Span span100 = CollectionsMarshal.AsSpan(list178); - span100[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span100[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span100[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span100[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span100[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span100[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span100[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list177); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference117 = ref span4[num4]; + num6 = 7; + List list178 = new List(num6); + CollectionsMarshal.SetCount(list178, num6); + span5 = CollectionsMarshal.AsSpan(list178); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference117 = list178; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj87.RequiredQuestVariables = list177; reference116 = obj87; - ref QuestStep reference118 = ref span85[5]; + index2++; + ref QuestStep reference118 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009359u, new Vector3(-395.62067f, 128.83191f, -509.72766f), 612); - num3 = 6; - List> list179 = new List>(num3); - CollectionsMarshal.SetCount(list179, num3); - Span> span101 = CollectionsMarshal.AsSpan(list179); - span101[0] = null; - ref List reference119 = ref span101[1]; - num4 = 7; - List list180 = new List(num4); - CollectionsMarshal.SetCount(list180, num4); - Span span102 = CollectionsMarshal.AsSpan(list180); - span102[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span102[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span102[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span102[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span102[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span102[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span102[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list179 = new List>(num4); + CollectionsMarshal.SetCount(list179, num4); + span4 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference119 = ref span4[num3]; + num5 = 7; + List list180 = new List(num5); + CollectionsMarshal.SetCount(list180, num5); + span5 = CollectionsMarshal.AsSpan(list180); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference119 = list180; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep3.RequiredQuestVariables = list179; num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span103 = CollectionsMarshal.AsSpan(list181); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list181); + 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); questStep3.CompletionQuestVariablesFlags = list181; reference118 = questStep3; - ref QuestStep reference120 = ref span85[6]; + index2++; + ref QuestStep reference120 = ref span3[index2]; QuestStep obj88 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-476.37286f, 97.33316f, -344.84885f), 612) { Fly = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span104 = CollectionsMarshal.AsSpan(list182); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + span5 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list182; skipConditions4.StepIf = skipStepConditions4; obj88.SkipConditions = skipConditions4; num3 = 6; List> list183 = new List>(num3); CollectionsMarshal.SetCount(list183, num3); - Span> span105 = CollectionsMarshal.AsSpan(list183); - span105[0] = null; - ref List reference121 = ref span105[1]; - num4 = 6; - List list184 = new List(num4); - CollectionsMarshal.SetCount(list184, num4); - Span span106 = CollectionsMarshal.AsSpan(list184); - span106[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span106[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span106[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span106[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span106[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span106[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference121 = ref span4[num4]; + num6 = 6; + List list184 = new List(num6); + CollectionsMarshal.SetCount(list184, num6); + span5 = CollectionsMarshal.AsSpan(list184); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference121 = list184; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj88.RequiredQuestVariables = list183; reference120 = obj88; - ref QuestStep reference122 = ref span85[7]; + index2++; + ref QuestStep reference122 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2009364u, new Vector3(-475.21173f, 97.58142f, -344.0147f), 612); - num3 = 6; - List> list185 = new List>(num3); - CollectionsMarshal.SetCount(list185, num3); - Span> span107 = CollectionsMarshal.AsSpan(list185); - span107[0] = null; - ref List reference123 = ref span107[1]; num4 = 6; - List list186 = new List(num4); - CollectionsMarshal.SetCount(list186, num4); - Span span108 = CollectionsMarshal.AsSpan(list186); - span108[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span108[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span108[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span108[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span108[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span108[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + List> list185 = new List>(num4); + CollectionsMarshal.SetCount(list185, num4); + span4 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference123 = ref span4[num3]; + num5 = 6; + List list186 = new List(num5); + CollectionsMarshal.SetCount(list186, num5); + span5 = CollectionsMarshal.AsSpan(list186); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference123 = list186; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep4.RequiredQuestVariables = list185; num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span109 = CollectionsMarshal.AsSpan(list187); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list187); + 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)4, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list187; reference122 = questStep4; - ref QuestStep reference124 = ref span85[8]; + index2++; + ref QuestStep reference124 = ref span3[index2]; QuestStep obj89 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.84753f, 93.84488f, -326.1048f), 612) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span110 = CollectionsMarshal.AsSpan(list188); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + span5 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list188; skipConditions5.StepIf = skipStepConditions5; obj89.SkipConditions = skipConditions5; num3 = 6; List> list189 = new List>(num3); CollectionsMarshal.SetCount(list189, num3); - Span> span111 = CollectionsMarshal.AsSpan(list189); - span111[0] = null; - ref List reference125 = ref span111[1]; - num4 = 6; - List list190 = new List(num4); - CollectionsMarshal.SetCount(list190, num4); - Span span112 = CollectionsMarshal.AsSpan(list190); - span112[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span112[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span112[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span112[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span112[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span112[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference125 = ref span4[num4]; + num6 = 6; + List list190 = new List(num6); + CollectionsMarshal.SetCount(list190, num6); + span5 = CollectionsMarshal.AsSpan(list190); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference125 = list190; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj89.RequiredQuestVariables = list189; reference124 = obj89; - ref QuestStep reference126 = ref span85[9]; + index2++; + ref QuestStep reference126 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2009363u, new Vector3(-472.43463f, 93.43091f, -325.76483f), 612); - num3 = 6; - List> list191 = new List>(num3); - CollectionsMarshal.SetCount(list191, num3); - Span> span113 = CollectionsMarshal.AsSpan(list191); - span113[0] = null; - ref List reference127 = ref span113[1]; num4 = 6; - List list192 = new List(num4); - CollectionsMarshal.SetCount(list192, num4); - Span span114 = CollectionsMarshal.AsSpan(list192); - span114[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span114[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span114[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span114[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span114[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span114[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + List> list191 = new List>(num4); + CollectionsMarshal.SetCount(list191, num4); + span4 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference127 = ref span4[num3]; + num5 = 6; + List list192 = new List(num5); + CollectionsMarshal.SetCount(list192, num5); + span5 = CollectionsMarshal.AsSpan(list192); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference127 = list192; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep5.RequiredQuestVariables = list191; num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span115 = CollectionsMarshal.AsSpan(list193); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list193); + 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)8, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list193; reference126 = questStep5; - ref QuestStep reference128 = ref span85[10]; + index2++; + ref QuestStep reference128 = ref span3[index2]; QuestStep obj90 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-556.22284f, 104.33577f, -310.49774f), 612) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span116 = CollectionsMarshal.AsSpan(list194); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + span5 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list194; skipConditions6.StepIf = skipStepConditions6; obj90.SkipConditions = skipConditions6; num3 = 6; List> list195 = new List>(num3); CollectionsMarshal.SetCount(list195, num3); - Span> span117 = CollectionsMarshal.AsSpan(list195); - span117[0] = null; - ref List reference129 = ref span117[1]; - num4 = 7; - List list196 = new List(num4); - CollectionsMarshal.SetCount(list196, num4); - Span span118 = CollectionsMarshal.AsSpan(list196); - span118[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span118[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span118[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span118[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span118[4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span118[5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span118[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference129 = ref span4[num4]; + num6 = 7; + List list196 = new List(num6); + CollectionsMarshal.SetCount(list196, num6); + span5 = CollectionsMarshal.AsSpan(list196); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference129 = list196; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj90.RequiredQuestVariables = list195; reference128 = obj90; - ref QuestStep reference130 = ref span85[11]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2009362u, new Vector3(-554.00934f, 103.471436f, -310.10913f), 612); - num3 = 6; - List> list197 = new List>(num3); - CollectionsMarshal.SetCount(list197, num3); - Span> span119 = CollectionsMarshal.AsSpan(list197); - span119[0] = null; - ref List reference131 = ref span119[1]; - num4 = 7; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - Span span120 = CollectionsMarshal.AsSpan(list198); - span120[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span120[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span120[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span120[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span120[4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span120[5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span120[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list197 = new List>(num4); + CollectionsMarshal.SetCount(list197, num4); + span4 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference131 = ref span4[num3]; + num5 = 7; + List list198 = new List(num5); + CollectionsMarshal.SetCount(list198, num5); + span5 = CollectionsMarshal.AsSpan(list198); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference131 = list198; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; questStep6.RequiredQuestVariables = list197; num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span121 = CollectionsMarshal.AsSpan(list199); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list199); + 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); questStep6.CompletionQuestVariablesFlags = list199; reference130 = questStep6; obj84.Steps = list163; reference107 = obj84; - ref QuestSequence reference132 = ref span84[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1025073u, new Vector3(-4.1047363f, 56.137817f, 246.1737f), 612) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025073u, new Vector3(-4.1047363f, 56.137817f, 246.1737f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj91.Steps = list200; reference132 = obj91; - ref QuestSequence reference133 = ref span84[3]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -198439,9 +238373,11 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span122 = CollectionsMarshal.AsSpan(list201); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612); - span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198455,27 +238391,33 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "liza"; questRoot16.Author = list202; - num = 3; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span123 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference134 = ref span123[0]; + index = 3; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj93.Steps = list204; reference134 = obj93; - ref QuestSequence reference135 = ref span123[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -198483,208 +238425,291 @@ public static class AssemblyQuestLoader num2 = 5; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span124 = CollectionsMarshal.AsSpan(list205); - ref QuestStep reference136 = ref span124[0]; + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 2009369u, new Vector3(186.38892f, 103.25781f, 15.854065f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list206 = new List>(num3); - CollectionsMarshal.SetCount(list206, num3); - Span> span125 = CollectionsMarshal.AsSpan(list206); - span125[0] = null; - span125[1] = null; - ref List reference137 = ref span125[2]; - num4 = 3; - List list207 = new List(num4); - CollectionsMarshal.SetCount(list207, num4); - Span span126 = CollectionsMarshal.AsSpan(list207); - span126[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span126[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span126[2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list206 = new List>(num4); + CollectionsMarshal.SetCount(list206, num4); + span4 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference137 = ref span4[num3]; + num6 = 3; + List list207 = new List(num6); + CollectionsMarshal.SetCount(list207, num6); + span5 = CollectionsMarshal.AsSpan(list207); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); reference137 = list207; - span125[3] = null; - span125[4] = null; - span125[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj95.RequiredQuestVariables = list206; num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span127 = CollectionsMarshal.AsSpan(list208); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list208); + 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)8, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list208; reference136 = obj95; - ref QuestStep reference138 = ref span124[1]; + index2++; + ref QuestStep reference138 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.UseItem, 2009368u, new Vector3(170.06177f, 103.53235f, 17.776672f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list209 = new List>(num3); - CollectionsMarshal.SetCount(list209, num3); - Span> span128 = CollectionsMarshal.AsSpan(list209); - span128[0] = null; - span128[1] = null; - ref List reference139 = ref span128[2]; - num4 = 2; - List list210 = new List(num4); - CollectionsMarshal.SetCount(list210, num4); - Span span129 = CollectionsMarshal.AsSpan(list210); - span129[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span129[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list209 = new List>(num4); + CollectionsMarshal.SetCount(list209, num4); + span4 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference139 = ref span4[num3]; + num5 = 2; + List list210 = new List(num5); + CollectionsMarshal.SetCount(list210, num5); + span5 = CollectionsMarshal.AsSpan(list210); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference139 = list210; - span128[3] = null; - span128[4] = null; - span128[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj96.RequiredQuestVariables = list209; num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span130 = CollectionsMarshal.AsSpan(list211); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list211); + 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); obj96.CompletionQuestVariablesFlags = list211; reference138 = obj96; - ref QuestStep reference140 = ref span124[2]; + index2++; + ref QuestStep reference140 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.UseItem, 2009367u, new Vector3(171.61816f, 113.725464f, -0.13739014f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list212 = new List>(num3); - CollectionsMarshal.SetCount(list212, num3); - Span> span131 = CollectionsMarshal.AsSpan(list212); - span131[0] = null; - span131[1] = null; - ref List reference141 = ref span131[2]; - num4 = 4; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span132 = CollectionsMarshal.AsSpan(list213); - span132[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span132[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span132[2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - span132[3] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list212 = new List>(num4); + CollectionsMarshal.SetCount(list212, num4); + span4 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference141 = ref span4[num3]; + num6 = 4; + List list213 = new List(num6); + CollectionsMarshal.SetCount(list213, num6); + span5 = CollectionsMarshal.AsSpan(list213); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference141 = list213; - span131[3] = null; - span131[4] = null; - span131[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj97.RequiredQuestVariables = list212; num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span133 = CollectionsMarshal.AsSpan(list214); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list214); + 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); obj97.CompletionQuestVariablesFlags = list214; reference140 = obj97; - ref QuestStep reference142 = ref span124[3]; + index2++; + ref QuestStep reference142 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.UseItem, 2009366u, new Vector3(170.27539f, 111.46704f, -31.693054f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list215 = new List>(num3); - CollectionsMarshal.SetCount(list215, num3); - Span> span134 = CollectionsMarshal.AsSpan(list215); - span134[0] = null; - span134[1] = null; - ref List reference143 = ref span134[2]; - num4 = 3; - List list216 = new List(num4); - CollectionsMarshal.SetCount(list216, num4); - Span span135 = CollectionsMarshal.AsSpan(list216); - span135[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span135[1] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - span135[2] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list215 = new List>(num4); + CollectionsMarshal.SetCount(list215, num4); + span4 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference143 = ref span4[num3]; + num5 = 3; + List list216 = new List(num5); + CollectionsMarshal.SetCount(list216, num5); + span5 = CollectionsMarshal.AsSpan(list216); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference143 = list216; - span134[3] = null; - span134[4] = null; - span134[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj98.RequiredQuestVariables = list215; num3 = 6; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span136 = CollectionsMarshal.AsSpan(list217); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list217); + 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); obj98.CompletionQuestVariablesFlags = list217; reference142 = obj98; - ref QuestStep reference144 = ref span124[4]; + index2++; + ref QuestStep reference144 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 2009365u, new Vector3(150.2251f, 108.140625f, -42.191284f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list218 = new List>(num3); - CollectionsMarshal.SetCount(list218, num3); - Span> span137 = CollectionsMarshal.AsSpan(list218); - span137[0] = null; - span137[1] = null; - ref List reference145 = ref span137[2]; - num4 = 3; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span138 = CollectionsMarshal.AsSpan(list219); - span138[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span138[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span138[2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list218 = new List>(num4); + CollectionsMarshal.SetCount(list218, num4); + span4 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference145 = ref span4[num3]; + num6 = 3; + List list219 = new List(num6); + CollectionsMarshal.SetCount(list219, num6); + span5 = CollectionsMarshal.AsSpan(list219); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference145 = list219; - span137[3] = null; - span137[4] = null; - span137[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj99.RequiredQuestVariables = list218; num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span139 = CollectionsMarshal.AsSpan(list220); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list220); + 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); obj99.CompletionQuestVariablesFlags = list220; reference144 = obj99; obj94.Steps = list205; reference135 = obj94; - ref QuestSequence reference146 = ref span123[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span140 = CollectionsMarshal.AsSpan(list221); - span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span140[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198698,13 +238723,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; questRoot17.Author = list222; - num = 5; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span141 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference147 = ref span141[0]; + index = 5; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -198712,27 +238740,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj101.Steps = list224; reference147 = obj101; - ref QuestSequence reference148 = ref span141[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1025084u, new Vector3(135.27112f, 39.096554f, 302.23535f), 612) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025084u, new Vector3(135.27112f, 39.096554f, 302.23535f), 612) { Fly = true }; obj102.Steps = list225; reference148 = obj102; - ref QuestSequence reference149 = ref span141[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -198740,21 +238774,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2008303u, new Vector3(135.69836f, 40.512573f, 300.7705f), 612); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2008303u, new Vector3(135.69836f, 40.512573f, 300.7705f), 612); obj103.Steps = list226; reference149 = obj103; - ref QuestSequence reference150 = ref span141[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1025074u, new Vector3(396.90234f, 74.061035f, 186.11426f), 612); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025074u, new Vector3(396.90234f, 74.061035f, 186.11426f), 612); obj104.Steps = list227; reference150 = obj104; - ref QuestSequence reference151 = ref span141[4]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -198762,12 +238802,14 @@ public static class AssemblyQuestLoader num2 = 2; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span142 = CollectionsMarshal.AsSpan(list228); - span142[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span142[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198781,27 +238823,33 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "liza"; questRoot18.Author = list229; - num = 3; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span143 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference152 = ref span143[0]; + index = 3; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj106.Steps = list231; reference152 = obj106; - ref QuestSequence reference153 = ref span143[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -198809,131 +238857,179 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span144 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference154 = ref span144[0]; + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference154 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.UseItem, 1025077u, new Vector3(274.8302f, 76.49585f, 96.849f), 612) { Fly = true, ItemId = 2002453u }; - num3 = 6; - List> list233 = new List>(num3); - CollectionsMarshal.SetCount(list233, num3); - Span> span145 = CollectionsMarshal.AsSpan(list233); - span145[0] = null; - ref List reference155 = ref span145[1]; - num4 = 2; - List list234 = new List(num4); - CollectionsMarshal.SetCount(list234, num4); - Span span146 = CollectionsMarshal.AsSpan(list234); - span146[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span146[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list233 = new List>(num4); + CollectionsMarshal.SetCount(list233, num4); + span4 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference155 = ref span4[num3]; + num5 = 2; + List list234 = new List(num5); + CollectionsMarshal.SetCount(list234, num5); + span5 = CollectionsMarshal.AsSpan(list234); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference155 = list234; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj108.RequiredQuestVariables = list233; num3 = 6; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - Span span147 = CollectionsMarshal.AsSpan(list235); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list235); + 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); obj108.CompletionQuestVariablesFlags = list235; reference154 = obj108; - ref QuestStep reference156 = ref span144[1]; + index2++; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj109 = new QuestStep(EInteractionType.UseItem, 1025076u, new Vector3(364.3396f, 91.624985f, 75.150635f), 612) { Fly = true, ItemId = 2002453u }; - num3 = 6; - List> list236 = new List>(num3); - CollectionsMarshal.SetCount(list236, num3); - Span> span148 = CollectionsMarshal.AsSpan(list236); - span148[0] = null; - ref List reference157 = ref span148[1]; - num4 = 2; - List list237 = new List(num4); - CollectionsMarshal.SetCount(list237, num4); - Span span149 = CollectionsMarshal.AsSpan(list237); - span149[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span149[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list236 = new List>(num4); + CollectionsMarshal.SetCount(list236, num4); + span4 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference157 = ref span4[num3]; + num6 = 2; + List list237 = new List(num6); + CollectionsMarshal.SetCount(list237, num6); + span5 = CollectionsMarshal.AsSpan(list237); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference157 = list237; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj109.RequiredQuestVariables = list236; num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span150 = CollectionsMarshal.AsSpan(list238); - span150[0] = null; - span150[1] = null; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list238); + 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); obj109.CompletionQuestVariablesFlags = list238; reference156 = obj109; - ref QuestStep reference158 = ref span144[2]; + index2++; + ref QuestStep reference158 = ref span3[index2]; QuestStep obj110 = new QuestStep(EInteractionType.UseItem, 1025075u, new Vector3(553.6736f, 73.847404f, 10.635498f), 612) { Fly = true, ItemId = 2002453u }; - num3 = 6; - List> list239 = new List>(num3); - CollectionsMarshal.SetCount(list239, num3); - Span> span151 = CollectionsMarshal.AsSpan(list239); - span151[0] = null; - ref List reference159 = ref span151[1]; - num4 = 2; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - Span span152 = CollectionsMarshal.AsSpan(list240); - span152[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span152[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list239 = new List>(num4); + CollectionsMarshal.SetCount(list239, num4); + span4 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference159 = ref span4[num3]; + num5 = 2; + List list240 = new List(num5); + CollectionsMarshal.SetCount(list240, num5); + span5 = CollectionsMarshal.AsSpan(list240); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference159 = list240; - span151[2] = null; - span151[3] = null; - span151[4] = null; - span151[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj110.RequiredQuestVariables = list239; num3 = 6; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - Span span153 = CollectionsMarshal.AsSpan(list241); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list241); + 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); obj110.CompletionQuestVariablesFlags = list241; reference158 = obj110; obj107.Steps = list232; reference153 = obj107; - ref QuestSequence reference160 = ref span143[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span154 = CollectionsMarshal.AsSpan(list242); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span154[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198947,13 +239043,16 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - CollectionsMarshal.AsSpan(list243)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list243); + index = 0; + span[index] = "liza"; questRoot19.Author = list243; - num = 3; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span155 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference161 = ref span155[0]; + index = 3; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + span2 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -198961,22 +239060,26 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj112.Steps = list245; reference161 = obj112; - ref QuestSequence reference162 = ref span155[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span156 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference163 = ref span156[0]; + index2 = 5; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference163 = ref span3[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 2009370u, new Vector3(424.30762f, 59.952637f, -472.3736f), 612) { Fly = true, @@ -198987,184 +239090,264 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachFringesGate } }; - num3 = 6; - List> list247 = new List>(num3); - CollectionsMarshal.SetCount(list247, num3); - Span> span157 = CollectionsMarshal.AsSpan(list247); - span157[0] = null; - ref List reference164 = ref span157[1]; - num4 = 2; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - Span span158 = CollectionsMarshal.AsSpan(list248); - span158[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span158[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list247 = new List>(num4); + CollectionsMarshal.SetCount(list247, num4); + span4 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference164 = ref span4[num3]; + num6 = 2; + List list248 = new List(num6); + CollectionsMarshal.SetCount(list248, num6); + span5 = CollectionsMarshal.AsSpan(list248); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference164 = list248; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj114.RequiredQuestVariables = list247; num3 = 6; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - Span span159 = CollectionsMarshal.AsSpan(list249); - span159[0] = null; - span159[1] = null; - span159[2] = null; - span159[3] = null; - span159[4] = null; - span159[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list249); + 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); obj114.CompletionQuestVariablesFlags = list249; reference163 = obj114; - ref QuestStep reference165 = ref span156[1]; + num2++; + ref QuestStep reference165 = ref span3[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Interact, 2009371u, new Vector3(364.73633f, 50.858276f, -356.00824f), 612) { Fly = true }; - num3 = 6; - List> list250 = new List>(num3); - CollectionsMarshal.SetCount(list250, num3); - Span> span160 = CollectionsMarshal.AsSpan(list250); - span160[0] = null; - ref List reference166 = ref span160[1]; - num4 = 3; - List list251 = new List(num4); - CollectionsMarshal.SetCount(list251, num4); - Span span161 = CollectionsMarshal.AsSpan(list251); - span161[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span161[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span161[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list250 = new List>(num4); + CollectionsMarshal.SetCount(list250, num4); + span4 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference166 = ref span4[num3]; + num5 = 3; + List list251 = new List(num5); + CollectionsMarshal.SetCount(list251, num5); + span5 = CollectionsMarshal.AsSpan(list251); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference166 = list251; - span160[2] = null; - span160[3] = null; - span160[4] = null; - span160[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj115.RequiredQuestVariables = list250; num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span162 = CollectionsMarshal.AsSpan(list252); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list252); + 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); obj115.CompletionQuestVariablesFlags = list252; reference165 = obj115; - ref QuestStep reference167 = ref span156[2]; + num2++; + ref QuestStep reference167 = ref span3[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 2009372u, new Vector3(345.6931f, 42.83203f, -306.20282f), 612) { Fly = true }; - num3 = 6; - List> list253 = new List>(num3); - CollectionsMarshal.SetCount(list253, num3); - Span> span163 = CollectionsMarshal.AsSpan(list253); - span163[0] = null; - ref List reference168 = ref span163[1]; - num4 = 4; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span164 = CollectionsMarshal.AsSpan(list254); - span164[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span164[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span164[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span164[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list253 = new List>(num4); + CollectionsMarshal.SetCount(list253, num4); + span4 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference168 = ref span4[num3]; + num6 = 4; + List list254 = new List(num6); + CollectionsMarshal.SetCount(list254, num6); + span5 = CollectionsMarshal.AsSpan(list254); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference168 = list254; - span163[2] = null; - span163[3] = null; - span163[4] = null; - span163[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj116.RequiredQuestVariables = list253; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span165 = CollectionsMarshal.AsSpan(list255); - span165[0] = null; - span165[1] = null; - span165[2] = null; - span165[3] = null; - span165[4] = null; - span165[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list255); + 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); obj116.CompletionQuestVariablesFlags = list255; reference167 = obj116; - ref QuestStep reference169 = ref span156[3]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 2009373u, new Vector3(169.90918f, 39.53601f, -133.10449f), 612) { Fly = true }; - num3 = 6; - List> list256 = new List>(num3); - CollectionsMarshal.SetCount(list256, num3); - Span> span166 = CollectionsMarshal.AsSpan(list256); - span166[0] = null; - ref List reference170 = ref span166[1]; - num4 = 4; - List list257 = new List(num4); - CollectionsMarshal.SetCount(list257, num4); - Span span167 = CollectionsMarshal.AsSpan(list257); - span167[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span167[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span167[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span167[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list256 = new List>(num4); + CollectionsMarshal.SetCount(list256, num4); + span4 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference170 = ref span4[num3]; + num5 = 4; + List list257 = new List(num5); + CollectionsMarshal.SetCount(list257, num5); + span5 = CollectionsMarshal.AsSpan(list257); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference170 = list257; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj117.RequiredQuestVariables = list256; num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - Span span168 = CollectionsMarshal.AsSpan(list258); - span168[0] = null; - span168[1] = null; - span168[2] = null; - span168[3] = null; - span168[4] = null; - span168[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list258); + 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); obj117.CompletionQuestVariablesFlags = list258; reference169 = obj117; - ref QuestStep reference171 = ref span156[4]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 2009374u, new Vector3(130.23572f, 39.444458f, -131.88379f), 612) { Fly = true }; - num3 = 6; - List> list259 = new List>(num3); - CollectionsMarshal.SetCount(list259, num3); - Span> span169 = CollectionsMarshal.AsSpan(list259); - span169[0] = null; - ref List reference172 = ref span169[1]; - num4 = 2; - List list260 = new List(num4); - CollectionsMarshal.SetCount(list260, num4); - Span span170 = CollectionsMarshal.AsSpan(list260); - span170[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span170[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list259 = new List>(num4); + CollectionsMarshal.SetCount(list259, num4); + span4 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference172 = ref span4[num3]; + num6 = 2; + List list260 = new List(num6); + CollectionsMarshal.SetCount(list260, num6); + span5 = CollectionsMarshal.AsSpan(list260); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference172 = list260; - span169[2] = null; - span169[3] = null; - span169[4] = null; - span169[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj118.RequiredQuestVariables = list259; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span171 = CollectionsMarshal.AsSpan(list261); - span171[0] = null; - span171[1] = null; - span171[2] = null; - span171[3] = null; - span171[4] = null; - span171[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list261); + 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)8, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list261; reference171 = obj118; obj113.Steps = list246; reference162 = obj113; - ref QuestSequence reference173 = ref span155[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -199172,12 +239355,14 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span172 = CollectionsMarshal.AsSpan(list262); - span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span172[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -199191,27 +239376,33 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot20.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span173 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference174 = ref span173[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj120.Steps = list265; reference174 = obj120; - ref QuestSequence reference175 = ref span173[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -199219,17 +239410,20 @@ public static class AssemblyQuestLoader num2 = 3; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span174 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference176 = ref span174[0]; + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + ref QuestStep reference176 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2009375u, new Vector3(153.85669f, 61.020752f, -631.22f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new ComplexCombatData + num4 = 1; + List list267 = new List(num4); + CollectionsMarshal.SetCount(list267, num4); + span8 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u @@ -199238,34 +239432,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list268 = new List>(num3); CollectionsMarshal.SetCount(list268, num3); - Span> span175 = CollectionsMarshal.AsSpan(list268); - span175[0] = null; - span175[1] = null; - ref List reference177 = ref span175[2]; - num4 = 2; - List list269 = new List(num4); - CollectionsMarshal.SetCount(list269, num4); - Span span176 = CollectionsMarshal.AsSpan(list269); - span176[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span176[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list268); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference177 = ref span4[num4]; + num5 = 2; + List list269 = new List(num5); + CollectionsMarshal.SetCount(list269, num5); + span5 = CollectionsMarshal.AsSpan(list269); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference177 = list269; - span175[3] = null; - span175[4] = null; - span175[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj122.RequiredQuestVariables = list268; - num3 = 6; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span177 = CollectionsMarshal.AsSpan(list270); - span177[0] = null; - span177[1] = null; - span177[2] = null; - span177[3] = null; - span177[4] = null; - span177[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + span5 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list270; reference176 = obj122; - ref QuestStep reference178 = ref span174[1]; + index2++; + ref QuestStep reference178 = ref span3[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, 2009377u, new Vector3(-41.09259f, 69.38269f, -650.35474f), 612) { Fly = true, @@ -199274,52 +239483,71 @@ public static class AssemblyQuestLoader num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new ComplexCombatData + span8 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span8[num4] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u }; obj123.ComplexCombatData = list271; - num3 = 6; - List> list272 = new List>(num3); - CollectionsMarshal.SetCount(list272, num3); - Span> span178 = CollectionsMarshal.AsSpan(list272); - span178[0] = null; - span178[1] = null; - ref List reference179 = ref span178[2]; - num4 = 2; - List list273 = new List(num4); - CollectionsMarshal.SetCount(list273, num4); - Span span179 = CollectionsMarshal.AsSpan(list273); - span179[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span179[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list272 = new List>(num4); + CollectionsMarshal.SetCount(list272, num4); + span4 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference179 = ref span4[num3]; + num6 = 2; + List list273 = new List(num6); + CollectionsMarshal.SetCount(list273, num6); + span5 = CollectionsMarshal.AsSpan(list273); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference179 = list273; - span178[3] = null; - span178[4] = null; - span178[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj123.RequiredQuestVariables = list272; num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span180 = CollectionsMarshal.AsSpan(list274); - span180[0] = null; - span180[1] = null; - span180[2] = null; - span180[3] = null; - span180[4] = null; - span180[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list274); + 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); obj123.CompletionQuestVariablesFlags = list274; reference178 = obj123; - ref QuestStep reference180 = ref span174[2]; + index2++; + ref QuestStep reference180 = ref span3[index2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2009376u, new Vector3(74.41821f, 53.391357f, -484.42816f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new ComplexCombatData + num4 = 1; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + span8 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u @@ -199328,49 +239556,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list276 = new List>(num3); CollectionsMarshal.SetCount(list276, num3); - Span> span181 = CollectionsMarshal.AsSpan(list276); - span181[0] = null; - span181[1] = null; - ref List reference181 = ref span181[2]; - num4 = 2; - List list277 = new List(num4); - CollectionsMarshal.SetCount(list277, num4); - Span span182 = CollectionsMarshal.AsSpan(list277); - span182[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span182[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list276); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference181 = ref span4[num4]; + num5 = 2; + List list277 = new List(num5); + CollectionsMarshal.SetCount(list277, num5); + span5 = CollectionsMarshal.AsSpan(list277); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference181 = list277; - span181[3] = null; - span181[4] = null; - span181[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj124.RequiredQuestVariables = list276; - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span183 = CollectionsMarshal.AsSpan(list278); - span183[0] = null; - span183[1] = null; - span183[2] = null; - span183[3] = null; - span183[4] = null; - span183[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + span5 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj124.CompletionQuestVariablesFlags = list278; reference180 = obj124; obj121.Steps = list266; reference175 = obj121; - ref QuestSequence reference182 = ref span173[2]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span184 = CollectionsMarshal.AsSpan(list279); - span184[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span184[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -199384,13 +239629,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list280; - num = 3; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span185 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference183 = ref span185[0]; + index = 3; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -199398,19 +239646,23 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025023u, new Vector3(-1.7853394f, 0.024148807f, -0.015319824f), 639); + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025023u, new Vector3(-1.7853394f, 0.024148807f, -0.015319824f), 639); obj126.Steps = list282; reference183 = obj126; - ref QuestSequence reference184 = ref span185[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - Span span186 = CollectionsMarshal.AsSpan(list283); - ref QuestStep reference185 = ref span186[0]; + index2 = 2; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + ref QuestStep reference185 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -199419,17 +239671,21 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list284); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD101_03070_EVENTAREA_WARP_100_027") }; obj128.DialogueChoices = list284; reference185 = obj128; - span186[1] = new QuestStep(EInteractionType.Interact, 1025552u, new Vector3(0.045776367f, 0.021091362f, -2.9145508f), 744); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025552u, new Vector3(0.045776367f, 0.021091362f, -2.9145508f), 744); obj127.Steps = list283; reference184 = obj127; - ref QuestSequence reference186 = ref span185[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -199437,12 +239693,14 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span187 = CollectionsMarshal.AsSpan(list285); - span187[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span187[1] = new QuestStep(EInteractionType.CompleteQuest, 1025555u, new Vector3(148.05823f, -4.178815f, 60.135742f), 759) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025555u, new Vector3(148.05823f, -4.178815f, 60.135742f), 759) { AethernetShortcut = new AethernetShortcut { @@ -199459,21 +239717,26 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list286; - num = 6; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span188 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference187 = ref span188[0]; + index = 6; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025557u, new Vector3(146.37976f, -4.178755f, 60.135742f), 759) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025557u, new Vector3(146.37976f, -4.178755f, 60.135742f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -199486,7 +239749,8 @@ public static class AssemblyQuestLoader }; obj130.Steps = list288; reference187 = obj130; - ref QuestSequence reference188 = ref span188[1]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -199494,55 +239758,73 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span189 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference189 = ref span189[0]; + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference189 = ref span3[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1019297u, new Vector3(-275.9289f, 17.31996f, 512.9625f), 614) { Fly = true }; - num3 = 6; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span190 = CollectionsMarshal.AsSpan(list290); - span190[0] = null; - span190[1] = null; - span190[2] = null; - span190[3] = null; - span190[4] = null; - span190[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + span5 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj132.CompletionQuestVariablesFlags = list290; reference189 = obj132; - ref QuestStep reference190 = ref span189[1]; + index2++; + ref QuestStep reference190 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019303u, new Vector3(-308.94946f, 17.73554f, 512.47424f), 614); num3 = 6; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - Span span191 = CollectionsMarshal.AsSpan(list291); - span191[0] = null; - span191[1] = null; - span191[2] = null; - span191[3] = null; - span191[4] = null; - span191[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list291); + 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); questStep7.CompletionQuestVariablesFlags = list291; reference190 = questStep7; obj131.Steps = list289; reference188 = obj131; - ref QuestSequence reference191 = ref span188[2]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 2009474u, new Vector3(67.185425f, 17.440979f, 349.3247f), 614) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009474u, new Vector3(67.185425f, 17.440979f, 349.3247f), 614) { Fly = true }; obj133.Steps = list292; reference191 = obj133; - ref QuestSequence reference192 = ref span188[3]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 @@ -199550,27 +239832,33 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 2009527u, new Vector3(457.26697f, 31.265625f, 234.79053f), 614) + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009527u, new Vector3(457.26697f, 31.265625f, 234.79053f), 614) { Fly = true }; obj134.Steps = list293; reference192 = obj134; - ref QuestSequence reference193 = ref span188[4]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 2009528u, new Vector3(545.3727f, 84.70276f, 126.32947f), 614) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009528u, new Vector3(545.3727f, 84.70276f, 126.32947f), 614) { Fly = true }; obj135.Steps = list294; reference193 = obj135; - ref QuestSequence reference194 = ref span188[5]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -199578,7 +239866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 2009475u, new Vector3(546.9595f, 72.129395f, 39.78015f), 614) + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 2009475u, new Vector3(546.9595f, 72.129395f, 39.78015f), 614) { Fly = true }; @@ -199591,21 +239881,26 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "JerryWester"; questRoot23.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span192 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference195 = ref span192[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025095u, new Vector3(466.23938f, 70.27501f, -58.701477f), 614) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025095u, new Vector3(466.23938f, 70.27501f, -58.701477f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -199618,7 +239913,8 @@ public static class AssemblyQuestLoader }; obj137.Steps = list298; reference195 = obj137; - ref QuestSequence reference196 = ref span192[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -199626,24 +239922,30 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1025104u, new Vector3(408.71277f, 14.6418705f, 622.8275f), 614) + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025104u, new Vector3(408.71277f, 14.6418705f, 622.8275f), 614) { Fly = true }; obj138.Steps = list299; reference196 = obj138; - ref QuestSequence reference197 = ref span192[2]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj139.Steps = list300; reference197 = obj139; - ref QuestSequence reference198 = ref span192[3]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -199651,7 +239953,9 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj140.Steps = list301; reference198 = obj140; questRoot23.QuestSequence = list297; @@ -199661,24 +239965,30 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "JerryWester"; questRoot24.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span193 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference199 = ref span193[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj141.Steps = list304; reference199 = obj141; - ref QuestSequence reference200 = ref span193[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -199686,42 +239996,50 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj142.Steps = list305; reference200 = obj142; - ref QuestSequence reference201 = ref span193[2]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - Span span194 = CollectionsMarshal.AsSpan(list306); - span194[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(116.05634f, 3.799895f, -868.98865f), 613) + index2 = 4; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(116.05634f, 3.799895f, -868.98865f), 613) { Fly = true }; - span194[1] = new QuestStep(EInteractionType.Interact, 2009420u, new Vector3(106.30957f, 0.47296143f, -874.38776f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009420u, new Vector3(106.30957f, 0.47296143f, -874.38776f), 613) { DisableNavmesh = true, Fly = true }; - span194[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.579952f, -1.1090306f, -869.52625f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.579952f, -1.1090306f, -869.52625f), 613) { Fly = true }; - span194[3] = new QuestStep(EInteractionType.Interact, 2009469u, new Vector3(78.20239f, 0.47296143f, -870.66455f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009469u, new Vector3(78.20239f, 0.47296143f, -870.66455f), 613) { Mount = true }; obj143.Steps = list306; reference201 = obj143; - ref QuestSequence reference202 = ref span193[3]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -199729,38 +240047,45 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1025106u, new Vector3(97.00159f, 5.1987257f, -877.0428f), 613) + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025106u, new Vector3(97.00159f, 5.1987257f, -877.0428f), 613) { Fly = true }; obj144.Steps = list307; reference202 = obj144; - ref QuestSequence reference203 = ref span193[4]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - Span span195 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference204 = ref span195[0]; + index2 = 2; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, AetheryteShortcut = EAetheryteLocation.DomanEnclave }; - num3 = 1; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = new DialogueChoice + num4 = 1; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + span6 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD104_03073_EVENTAREA_WARP_100_004") }; obj146.DialogueChoices = list309; reference204 = obj146; - span195[1] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj145.Steps = list308; reference203 = obj145; questRoot24.QuestSequence = list303; @@ -199770,13 +240095,16 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "JerryWester"; questRoot25.Author = list310; - num = 9; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span196 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference205 = ref span196[0]; + index = 9; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + span2 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -199784,29 +240112,36 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj147.Steps = list312; reference205 = obj147; - ref QuestSequence reference206 = ref span196[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1025523u, new Vector3(239.12415f, 0.9334852f, 754.1161f), 614) + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025523u, new Vector3(239.12415f, 0.9334852f, 754.1161f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj148.Steps = list313; reference206 = obj148; - span196[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference207 = ref span196[3]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 3 @@ -199814,7 +240149,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Duty, null, null, 786) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 786) { DutyOptions = new DutyOptions { @@ -199823,29 +240160,35 @@ public static class AssemblyQuestLoader }; obj149.Steps = list314; reference207 = obj149; - span196[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference208 = ref span196[5]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1025528u, new Vector3(4.3182373f, -8.000055f, 44.327393f), 786) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025528u, new Vector3(4.3182373f, -8.000055f, 44.327393f), 786) { StopDistance = 5f }; obj150.Steps = list315; reference208 = obj150; - span196[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference209 = ref span196[7]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 7 @@ -199853,19 +240196,23 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1025538u, new Vector3(4.7455444f, 0f, 16.067688f), 759); + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025538u, new Vector3(4.7455444f, 0f, 16.067688f), 759); obj151.Steps = list316; reference209 = obj151; - ref QuestSequence reference210 = ref span196[8]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span197 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference211 = ref span197[0]; + index2 = 2; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference211 = ref span3[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 @@ -199873,14 +240220,17 @@ public static class AssemblyQuestLoader num3 = 1; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD105_03074_EVENTAREA_WARP_100_004") }; obj153.DialogueChoices = list318; reference211 = obj153; - span197[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj152.Steps = list317; reference210 = obj152; questRoot25.QuestSequence = list311; @@ -199890,13 +240240,16 @@ public static class AssemblyQuestLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - CollectionsMarshal.AsSpan(list319)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list319); + index = 0; + span[index] = "JerryWester"; questRoot26.Author = list319; - num = 4; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - Span span198 = CollectionsMarshal.AsSpan(list320); - ref QuestSequence reference212 = ref span198[0]; + index = 4; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + span2 = CollectionsMarshal.AsSpan(list320); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -199904,18 +240257,23 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025009u, new Vector3(1.3274536f, 0.021091362f, 0.59503174f), 744); + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025009u, new Vector3(1.3274536f, 0.021091362f, 0.59503174f), 744); obj154.Steps = list321; reference212 = obj154; - ref QuestSequence reference213 = ref span198[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -199926,7 +240284,8 @@ public static class AssemblyQuestLoader }; obj155.Steps = list322; reference213 = obj155; - ref QuestSequence reference214 = ref span198[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -199934,24 +240293,29 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span199 = CollectionsMarshal.AsSpan(list323); - span199[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.965355f, 26.085297f, -607.26685f), 621) + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.965355f, 26.085297f, -607.26685f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - span199[1] = new QuestStep(EInteractionType.Interact, 1025546u, new Vector3(70.87805f, 26.199663f, -609.43005f), 621); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025546u, new Vector3(70.87805f, 26.199663f, -609.43005f), 621); obj156.Steps = list323; reference214 = obj156; - ref QuestSequence reference215 = ref span198[3]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj157.Steps = list324; reference215 = obj157; questRoot26.QuestSequence = list320; @@ -199961,13 +240325,16 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - CollectionsMarshal.AsSpan(list325)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list325); + index = 0; + span[index] = "JerryWester"; questRoot27.Author = list325; - num = 4; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - Span span200 = CollectionsMarshal.AsSpan(list326); - ref QuestSequence reference216 = ref span200[0]; + index = 3; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + span2 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -199975,18 +240342,23 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj158.Steps = list327; reference216 = obj158; - ref QuestSequence reference217 = ref span200[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list328)[0]; + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + ref QuestStep reference218 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.SinglePlayerDuty, 2009467u, new Vector3(-5.189492f, 0.4746897f, 0.3689831f), 351) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -199994,10 +240366,12 @@ public static class AssemblyQuestLoader Enabled = true } }; - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = new DialogueChoice + num4 = 1; + List list329 = new List(num4); + CollectionsMarshal.SetCount(list329, num4); + span6 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD107_03076_Q1_100_012") @@ -200006,11 +240380,8 @@ public static class AssemblyQuestLoader reference218 = obj160; obj159.Steps = list328; reference217 = obj159; - span200[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference219 = ref span200[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -200018,7 +240389,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) { StopDistance = 5f }; @@ -200031,22 +240404,26 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list331); + index = 0; + span[index] = "liza"; questRoot28.Author = list331; - num = 3; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span201 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference220 = ref span201[0]; + index = 3; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + span2 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span202 = CollectionsMarshal.AsSpan(list333); - span202[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + index2 = 2; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -200057,10 +240434,12 @@ public static class AssemblyQuestLoader } } }; - span202[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj162.Steps = list333; reference220 = obj162; - ref QuestSequence reference221 = ref span201[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -200068,21 +240447,26 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; obj163.Steps = list334; reference221 = obj163; - ref QuestSequence reference222 = ref span201[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025233u, new Vector3(-129.19812f, -4.999999f, 145.37268f), 628) + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025233u, new Vector3(-129.19812f, -4.999999f, 145.37268f), 628) { AethernetShortcut = new AethernetShortcut { @@ -200099,13 +240483,16 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "Starr"; + span = CollectionsMarshal.AsSpan(list336); + index = 0; + span[index] = "Starr"; questRoot29.Author = list336; - num = 2; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span203 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference223 = ref span203[0]; + index = 2; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + span2 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -200113,7 +240500,9 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -200126,15 +240515,18 @@ public static class AssemblyQuestLoader }; obj165.Steps = list338; reference223 = obj165; - ref QuestSequence reference224 = ref span203[1]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025176u, new Vector3(57.99951f, 3.9997258f, 64.774536f), 144); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + span3 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025176u, new Vector3(57.99951f, 3.9997258f, 64.774536f), 144); obj166.Steps = list339; reference224 = obj166; questRoot29.QuestSequence = list337; @@ -200144,13 +240536,16 @@ public static class AssemblyQuestLoader num = 1; List list340 = new List(num); CollectionsMarshal.SetCount(list340, num); - CollectionsMarshal.AsSpan(list340)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list340); + index = 0; + span[index] = "liza"; questRoot30.Author = list340; - num = 4; - List list341 = new List(num); - CollectionsMarshal.SetCount(list341, num); - Span span204 = CollectionsMarshal.AsSpan(list341); - ref QuestSequence reference225 = ref span204[0]; + index = 4; + List list341 = new List(index); + CollectionsMarshal.SetCount(list341, index); + span2 = CollectionsMarshal.AsSpan(list341); + num = 0; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -200158,7 +240553,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -200171,21 +240568,25 @@ public static class AssemblyQuestLoader }; obj167.Steps = list342; reference225 = obj167; - ref QuestSequence reference226 = ref span204[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj168.Steps = list343; reference226 = obj168; - ref QuestSequence reference227 = ref span204[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -200193,21 +240594,26 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) { Fly = true }; obj169.Steps = list344; reference227 = obj169; - ref QuestSequence reference228 = ref span204[3]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list345)[0]; + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; QuestStep obj171 = new QuestStep(EInteractionType.CompleteQuest, 2009436u, new Vector3(70.05408f, 30.746826f, -722.86566f), 156) { Fly = true @@ -200215,31 +240621,36 @@ public static class AssemblyQuestLoader num3 = 5; List list346 = new List(num3); CollectionsMarshal.SetCount(list346, num3); - Span span205 = CollectionsMarshal.AsSpan(list346); - span205[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list346); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q1_000_091") }; - span205[1] = new DialogueChoice + num4++; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q2_000_097"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A2_000_100") }; - span205[2] = new DialogueChoice + num4++; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q3_000_118"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A3_000_119") }; - span205[3] = new DialogueChoice + num4++; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q4_000_134"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A4_000_136") }; - span205[4] = new DialogueChoice + num4++; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q5_000_156"), @@ -200257,13 +240668,16 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list347); + index = 0; + span[index] = "liza"; questRoot31.Author = list347; - num = 6; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span206 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference230 = ref span206[0]; + index = 6; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + span2 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -200271,7 +240685,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025330u, new Vector3(64.83557f, 30.6188f, -722.3774f), 156) + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025330u, new Vector3(64.83557f, 30.6188f, -722.3774f), 156) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -200285,21 +240701,25 @@ public static class AssemblyQuestLoader }; obj172.Steps = list349; reference230 = obj172; - ref QuestSequence reference231 = ref span206[1]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj173.Steps = list350; reference231 = obj173; - ref QuestSequence reference232 = ref span206[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -200307,29 +240727,35 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true }; obj174.Steps = list351; reference232 = obj174; - ref QuestSequence reference233 = ref span206[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span207 = CollectionsMarshal.AsSpan(list352); - span207[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.799374f, 50f, -774.0067f), 156) + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.799374f, 50f, -774.0067f), 156) { Fly = true }; - span207[1] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156); obj175.Steps = list352; reference233 = obj175; - ref QuestSequence reference234 = ref span206[4]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -200337,21 +240763,26 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) { Fly = true }; obj176.Steps = list353; reference234 = obj176; - ref QuestSequence reference235 = ref span206[5]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(3141) @@ -200365,13 +240796,16 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list355); + index = 0; + span[index] = "liza"; questRoot32.Author = list355; - num = 10; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span208 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference236 = ref span208[0]; + index = 10; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + span2 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 @@ -200379,7 +240813,9 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -200398,29 +240834,34 @@ public static class AssemblyQuestLoader }; obj178.Steps = list357; reference236 = obj178; - ref QuestSequence reference237 = ref span208[1]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span209 = CollectionsMarshal.AsSpan(list358); - span209[0] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) + index2 = 2; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span3 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) { TargetTerritoryId = (ushort)628 }; - ref QuestStep reference238 = ref span209[1]; + num2++; + ref QuestStep reference238 = ref span3[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 1024157u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735 }; - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - CollectionsMarshal.AsSpan(list359)[0] = new DialogueChoice + num4 = 1; + List list359 = new List(num4); + CollectionsMarshal.SetCount(list359, num4); + span6 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI201_03089_Q1_000_000") @@ -200429,11 +240870,13 @@ public static class AssemblyQuestLoader reference238 = obj180; obj179.Steps = list358; reference237 = obj179; - span208[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference239 = ref span208[3]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -200441,27 +240884,33 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1025590u, new Vector3(-8.98761f, 0.05124536f, -3.768982f), 735) + span3 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025590u, new Vector3(-8.98761f, 0.05124536f, -3.768982f), 735) { StopDistance = 7f }; obj181.Steps = list360; reference239 = obj181; - ref QuestSequence reference240 = ref span208[4]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 1025651u, new Vector3(-10.391418f, 0.046870887f, -3.7080078f), 735) + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025651u, new Vector3(-10.391418f, 0.046870887f, -3.7080078f), 735) { StopDistance = 7f }; obj182.Steps = list361; reference240 = obj182; - ref QuestSequence reference241 = ref span208[5]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -200469,7 +240918,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1025499u, new Vector3(-117.17407f, -7.000125f, -67.826416f), 628) + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025499u, new Vector3(-117.17407f, -7.000125f, -67.826416f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -200480,15 +240931,18 @@ public static class AssemblyQuestLoader }; obj183.Steps = list362; reference241 = obj183; - ref QuestSequence reference242 = ref span208[6]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - ref QuestStep reference243 = ref CollectionsMarshal.AsSpan(list363)[0]; + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + ref QuestStep reference243 = ref span3[num2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, null, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614) { StopDistance = 0.5f, @@ -200499,12 +240953,15 @@ public static class AssemblyQuestLoader num3 = 1; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - CollectionsMarshal.AsSpan(list364)[0] = 8801u; + span7 = CollectionsMarshal.AsSpan(list364); + num4 = 0; + span7[num4] = 8801u; obj185.KillEnemyDataIds = list364; reference243 = obj185; obj184.Steps = list363; reference242 = obj184; - ref QuestSequence reference244 = ref span208[7]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 7 @@ -200512,18 +240969,23 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1025587u, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614); + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025587u, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614); obj186.Steps = list365; reference244 = obj186; - ref QuestSequence reference245 = ref span208[8]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -200536,7 +240998,8 @@ public static class AssemblyQuestLoader }; obj187.Steps = list366; reference245 = obj187; - ref QuestSequence reference246 = ref span208[9]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -200544,7 +241007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735) + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735) { NextQuestId = new QuestId(3091) }; @@ -200557,24 +241022,30 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list368); + index = 0; + span[index] = "liza"; questRoot33.Author = list368; - num = 13; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span210 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference247 = ref span210[0]; + index = 13; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + span2 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj189.Steps = list370; reference247 = obj189; - ref QuestSequence reference248 = ref span210[1]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -200582,24 +241053,30 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj190.Steps = list371; reference248 = obj190; - ref QuestSequence reference249 = ref span210[2]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); obj191.Steps = list372; reference249 = obj191; - ref QuestSequence reference250 = ref span210[3]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 @@ -200607,28 +241084,34 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + span3 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj192.Steps = list373; reference250 = obj192; - ref QuestSequence reference251 = ref span210[4]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span3 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj193.Steps = list374; reference251 = obj193; - ref QuestSequence reference252 = ref span210[5]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 5 @@ -200636,29 +241119,35 @@ public static class AssemblyQuestLoader num2 = 2; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span211 = CollectionsMarshal.AsSpan(list375); - span211[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - span211[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj194.Steps = list375; reference252 = obj194; - ref QuestSequence reference253 = ref span210[6]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { Emote = EEmote.Soothe }; obj195.Steps = list376; reference253 = obj195; - ref QuestSequence reference254 = ref span210[7]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 7 @@ -200666,27 +241155,33 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + span3 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { Emote = EEmote.Comfort }; obj196.Steps = list377; reference254 = obj196; - ref QuestSequence reference255 = ref span210[8]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 2009478u, new Vector3(-372.12183f, 48.874634f, 431.75403f), 137) + index2 = 1; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + span3 = CollectionsMarshal.AsSpan(list378); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009478u, new Vector3(-372.12183f, 48.874634f, 431.75403f), 137) { Mount = true }; obj197.Steps = list378; reference255 = obj197; - ref QuestSequence reference256 = ref span210[9]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 9 @@ -200694,28 +241189,34 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + span3 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj198.Steps = list379; reference256 = obj198; - ref QuestSequence reference257 = ref span210[10]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj199.Steps = list380; reference257 = obj199; - ref QuestSequence reference258 = ref span210[11]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 11 @@ -200723,8 +241224,9 @@ public static class AssemblyQuestLoader num2 = 2; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span212 = CollectionsMarshal.AsSpan(list381); - span212[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + span3 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -200735,18 +241237,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeAirship } }; - span212[1] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj200.Steps = list381; reference258 = obj200; - ref QuestSequence reference259 = ref span210[12]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735) + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + span3 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735) { NextQuestId = new QuestId(3190) }; @@ -200759,13 +241265,16 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - CollectionsMarshal.AsSpan(list383)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list383); + index = 0; + span[index] = "liza"; questRoot34.Author = list383; - num = 5; - List list384 = new List(num); - CollectionsMarshal.SetCount(list384, num); - Span span213 = CollectionsMarshal.AsSpan(list384); - ref QuestSequence reference260 = ref span213[0]; + index = 5; + List list384 = new List(index); + CollectionsMarshal.SetCount(list384, index); + span2 = CollectionsMarshal.AsSpan(list384); + num = 0; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -200773,26 +241282,33 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735); + span3 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735); obj202.Steps = list385; reference260 = obj202; - ref QuestSequence reference261 = ref span213[1]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list386)[0]; + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + span3 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + ref QuestStep reference262 = ref span3[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1025652u, new Vector3(-10.8797f, 0.046870843f, -4.3793945f), 735) { StopDistance = 7f }; - num3 = 1; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - CollectionsMarshal.AsSpan(list387)[0] = new DialogueChoice + num4 = 1; + List list387 = new List(num4); + CollectionsMarshal.SetCount(list387, num4); + span6 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDI203_03091_Q1_000_000"), @@ -200802,11 +241318,13 @@ public static class AssemblyQuestLoader reference262 = obj204; obj203.Steps = list386; reference261 = obj203; - span213[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference263 = ref span213[3]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 3 @@ -200814,21 +241332,26 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Snipe, 2009477u, new Vector3(-198.6877f, 17.56311f, 208.484f), 787) + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2009477u, new Vector3(-198.6877f, 17.56311f, 208.484f), 787) { Comment = "Far on the left" }; obj205.Steps = list388; reference263 = obj205; - ref QuestSequence reference264 = ref span213[4]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + span3 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) { StopDistance = 5f, NextQuestId = new QuestId(3092) @@ -200842,13 +241365,16 @@ public static class AssemblyQuestLoader num = 1; List list390 = new List(num); CollectionsMarshal.SetCount(list390, num); - CollectionsMarshal.AsSpan(list390)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list390); + index = 0; + span[index] = "liza"; questRoot35.Author = list390; - num = 4; - List list391 = new List(num); - CollectionsMarshal.SetCount(list391, num); - Span span214 = CollectionsMarshal.AsSpan(list391); - ref QuestSequence reference265 = ref span214[0]; + index = 3; + List list391 = new List(index); + CollectionsMarshal.SetCount(list391, index); + span2 = CollectionsMarshal.AsSpan(list391); + num = 0; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -200856,21 +241382,26 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) { StopDistance = 5f }; obj207.Steps = list392; reference265 = obj207; - ref QuestSequence reference266 = ref span214[1]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Duty, null, null, 736) + index2 = 1; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + span3 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 736) { DutyOptions = new DutyOptions { @@ -200879,11 +241410,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list393; reference266 = obj208; - span214[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference267 = ref span214[3]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -200891,7 +241419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + span3 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3187) @@ -200905,24 +241435,30 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list395); + index = 0; + span[index] = "liza"; questRoot36.Author = list395; - num = 6; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span215 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference268 = ref span215[0]; + index = 6; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + span2 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + span3 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); obj210.Steps = list397; reference268 = obj210; - ref QuestSequence reference269 = ref span215[1]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -200930,7 +241466,9 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + span3 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { AethernetShortcut = new AethernetShortcut { @@ -200940,18 +241478,22 @@ public static class AssemblyQuestLoader }; obj211.Steps = list398; reference269 = obj211; - ref QuestSequence reference270 = ref span215[2]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); obj212.Steps = list399; reference270 = obj212; - ref QuestSequence reference271 = ref span215[3]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -200959,21 +241501,27 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1025891u, new Vector3(-45.059937f, 10.503964f, -191.79071f), 628); + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025891u, new Vector3(-45.059937f, 10.503964f, -191.79071f), 628); obj213.Steps = list400; reference271 = obj213; - ref QuestSequence reference272 = ref span215[4]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); obj214.Steps = list401; reference272 = obj214; - ref QuestSequence reference273 = ref span215[5]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -200981,7 +241529,9 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628) + span3 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628) { NextQuestId = new QuestId(3095) }; @@ -200994,24 +241544,30 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list403); + index = 0; + span[index] = "liza"; questRoot37.Author = list403; - num = 9; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span216 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference274 = ref span216[0]; + index = 9; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + span2 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628); + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628); obj216.Steps = list405; reference274 = obj216; - ref QuestSequence reference275 = ref span216[1]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -201019,28 +241575,34 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1025896u, new Vector3(248.09644f, 17.471375f, -664.9729f), 614) + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025896u, new Vector3(248.09644f, 17.471375f, -664.9729f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj217.Steps = list406; reference275 = obj217; - ref QuestSequence reference276 = ref span216[2]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1025901u, new Vector3(-93.70575f, 53.144028f, -530.2663f), 614) + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025901u, new Vector3(-93.70575f, 53.144028f, -530.2663f), 614) { Fly = true }; obj218.Steps = list407; reference276 = obj218; - ref QuestSequence reference277 = ref span216[3]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -201048,27 +241610,33 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1025906u, new Vector3(-208.8808f, 53.217514f, -581.3535f), 614) + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025906u, new Vector3(-208.8808f, 53.217514f, -581.3535f), 614) { Fly = true }; obj219.Steps = list408; reference277 = obj219; - ref QuestSequence reference278 = ref span216[4]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 2009533u, new Vector3(-220.11145f, 53.20813f, -597.80273f), 614) + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + span3 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009533u, new Vector3(-220.11145f, 53.20813f, -597.80273f), 614) { Fly = true }; obj220.Steps = list409; reference278 = obj220; - ref QuestSequence reference279 = ref span216[5]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 5 @@ -201076,27 +241644,33 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1025910u, new Vector3(-125.41394f, 53.217514f, -648.4321f), 614) + span3 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025910u, new Vector3(-125.41394f, 53.217514f, -648.4321f), 614) { Fly = true }; obj221.Steps = list410; reference279 = obj221; - ref QuestSequence reference280 = ref span216[6]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1025911u, new Vector3(-126.237915f, 53.217514f, -650.6905f), 614) + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025911u, new Vector3(-126.237915f, 53.217514f, -650.6905f), 614) { StopDistance = 5f }; obj222.Steps = list411; reference280 = obj222; - ref QuestSequence reference281 = ref span216[7]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 7 @@ -201104,21 +241678,26 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1019030u, new Vector3(65.72058f, 10.503965f, -167.1626f), 628) + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019030u, new Vector3(65.72058f, 10.503965f, -167.1626f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; obj223.Steps = list412; reference281 = obj223; - ref QuestSequence reference282 = ref span216[8]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) { StopDistance = 5f, NextQuestId = new QuestId(3150) @@ -201132,13 +241711,16 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - CollectionsMarshal.AsSpan(list414)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list414); + index = 0; + span[index] = "Censored"; questRoot38.Author = list414; - num = 6; - List list415 = new List(num); - CollectionsMarshal.SetCount(list415, num); - Span span217 = CollectionsMarshal.AsSpan(list415); - ref QuestSequence reference283 = ref span217[0]; + index = 6; + List list415 = new List(index); + CollectionsMarshal.SetCount(list415, index); + span2 = CollectionsMarshal.AsSpan(list415); + num = 0; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -201146,7 +241728,9 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025693u, new Vector3(-200.18317f, 1.7223222f, 801.75464f), 622) + span3 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025693u, new Vector3(-200.18317f, 1.7223222f, 801.75464f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201160,15 +241744,18 @@ public static class AssemblyQuestLoader }; obj225.Steps = list416; reference283 = obj225; - ref QuestSequence reference284 = ref span217[1]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 1025694u, new Vector3(-290.11975f, 17.31996f, 511.98596f), 614) + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + span3 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025694u, new Vector3(-290.11975f, 17.31996f, 511.98596f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -201182,7 +241769,8 @@ public static class AssemblyQuestLoader }; obj226.Steps = list417; reference284 = obj226; - ref QuestSequence reference285 = ref span217[2]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -201190,19 +241778,23 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1025695u, new Vector3(-284.16876f, 17.31996f, 513.6643f), 614); + span3 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025695u, new Vector3(-284.16876f, 17.31996f, 513.6643f), 614); obj227.Steps = list418; reference285 = obj227; - ref QuestSequence reference286 = ref span217[3]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - Span span218 = CollectionsMarshal.AsSpan(list419); - span218[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.13614f, 40.921455f, -482.27777f), 622) + index2 = 2; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.13614f, 40.921455f, -482.27777f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201214,10 +241806,12 @@ public static class AssemblyQuestLoader } } }; - span218[1] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj228.Steps = list419; reference286 = obj228; - ref QuestSequence reference287 = ref span217[4]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -201225,7 +241819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - ref QuestStep reference288 = ref CollectionsMarshal.AsSpan(list420)[0]; + span3 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + ref QuestStep reference288 = ref span3[index2]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1025697u, new Vector3(-627.83246f, 40.01948f, 100.20593f), 622) { Fly = true, @@ -201246,7 +241842,9 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list421); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANNAM000_03096_Q4_000_000") @@ -201255,15 +241853,18 @@ public static class AssemblyQuestLoader reference288 = obj230; obj229.Steps = list420; reference287 = obj229; - ref QuestSequence reference289 = ref span217[5]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025698u, new Vector3(-766.7201f, 127.43861f, 91.23364f), 622) + index2 = 1; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + span3 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025698u, new Vector3(-766.7201f, 127.43861f, 91.23364f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201289,13 +241890,16 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - CollectionsMarshal.AsSpan(list423)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list423); + index = 0; + span[index] = "Censored"; questRoot39.Author = list423; - num = 2; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - Span span219 = CollectionsMarshal.AsSpan(list424); - ref QuestSequence reference290 = ref span219[0]; + index = 2; + List list424 = new List(index); + CollectionsMarshal.SetCount(list424, index); + span2 = CollectionsMarshal.AsSpan(list424); + num = 0; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -201303,7 +241907,9 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025700u, new Vector3(-767.2999f, 127.43303f, 92.48486f), 622) + span3 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025700u, new Vector3(-767.2999f, 127.43303f, 92.48486f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201317,24 +241923,29 @@ public static class AssemblyQuestLoader }; obj232.Steps = list425; reference290 = obj232; - ref QuestSequence reference291 = ref span219[1]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - Span span220 = CollectionsMarshal.AsSpan(list426); - ref QuestStep reference292 = ref span220[0]; + index2 = 6; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + span3 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + ref QuestStep reference292 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); - num3 = 1; - List list427 = new List(num3); - CollectionsMarshal.SetCount(list427, num3); - CollectionsMarshal.AsSpan(list427)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list427 = new List(num4); + CollectionsMarshal.SetCount(list427, num4); + Span span9 = CollectionsMarshal.AsSpan(list427); + num3 = 0; + span9[num3] = EExtendedClassJob.DoH; questStep8.RequiredQuestAcceptedJob = list427; reference292 = questStep8; - ref QuestStep reference293 = ref span220[1]; + num2++; + ref QuestStep reference293 = ref span3[num2]; QuestStep obj234 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22720u, @@ -201343,61 +241954,79 @@ public static class AssemblyQuestLoader num3 = 1; List list428 = new List(num3); CollectionsMarshal.SetCount(list428, num3); - CollectionsMarshal.AsSpan(list428)[0] = EExtendedClassJob.DoH; + span9 = CollectionsMarshal.AsSpan(list428); + num4 = 0; + span9[num4] = EExtendedClassJob.DoH; obj234.RequiredQuestAcceptedJob = list428; reference293 = obj234; - ref QuestStep reference294 = ref span220[2]; + num2++; + ref QuestStep reference294 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list429 = new List(num3); - CollectionsMarshal.SetCount(list429, num3); - CollectionsMarshal.AsSpan(list429)[0] = EExtendedClassJob.Miner; + num4 = 1; + List list429 = new List(num4); + CollectionsMarshal.SetCount(list429, num4); + span9 = CollectionsMarshal.AsSpan(list429); + num3 = 0; + span9[num3] = EExtendedClassJob.Miner; questStep9.RequiredQuestAcceptedJob = list429; num3 = 1; List list430 = new List(num3); CollectionsMarshal.SetCount(list430, num3); - CollectionsMarshal.AsSpan(list430)[0] = new GatheredItem + Span span10 = CollectionsMarshal.AsSpan(list430); + num4 = 0; + span10[num4] = new GatheredItem { ItemId = 22616u, ItemCount = 3 }; questStep9.ItemsToGather = list430; reference294 = questStep9; - ref QuestStep reference295 = ref span220[3]; + num2++; + ref QuestStep reference295 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list431 = new List(num3); - CollectionsMarshal.SetCount(list431, num3); - CollectionsMarshal.AsSpan(list431)[0] = EExtendedClassJob.Botanist; + num4 = 1; + List list431 = new List(num4); + CollectionsMarshal.SetCount(list431, num4); + span9 = CollectionsMarshal.AsSpan(list431); + num3 = 0; + span9[num3] = EExtendedClassJob.Botanist; questStep10.RequiredQuestAcceptedJob = list431; num3 = 1; List list432 = new List(num3); CollectionsMarshal.SetCount(list432, num3); - CollectionsMarshal.AsSpan(list432)[0] = new GatheredItem + span10 = CollectionsMarshal.AsSpan(list432); + num4 = 0; + span10[num4] = new GatheredItem { ItemId = 22642u, ItemCount = 3 }; questStep10.ItemsToGather = list432; reference295 = questStep10; - ref QuestStep reference296 = ref span220[4]; + num2++; + ref QuestStep reference296 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list433 = new List(num3); - CollectionsMarshal.SetCount(list433, num3); - CollectionsMarshal.AsSpan(list433)[0] = EExtendedClassJob.Fisher; + num4 = 1; + List list433 = new List(num4); + CollectionsMarshal.SetCount(list433, num4); + span9 = CollectionsMarshal.AsSpan(list433); + num3 = 0; + span9[num3] = EExtendedClassJob.Fisher; questStep11.RequiredQuestAcceptedJob = list433; num3 = 1; List list434 = new List(num3); CollectionsMarshal.SetCount(list434, num3); - CollectionsMarshal.AsSpan(list434)[0] = new GatheredItem + span10 = CollectionsMarshal.AsSpan(list434); + num4 = 0; + span10[num4] = new GatheredItem { ItemId = 22668u, ItemCount = 1 }; questStep11.ItemsToGather = list434; reference296 = questStep11; - span220[5] = new QuestStep(EInteractionType.CompleteQuest, 1025699u, new Vector3(-765.3163f, 127.441086f, 90.92847f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025699u, new Vector3(-765.3163f, 127.441086f, 90.92847f), 622); obj233.Steps = list426; reference291 = obj233; questRoot39.QuestSequence = list424; @@ -201407,13 +242036,16 @@ public static class AssemblyQuestLoader num = 1; List list435 = new List(num); CollectionsMarshal.SetCount(list435, num); - CollectionsMarshal.AsSpan(list435)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list435); + index = 0; + span[index] = "Theo"; questRoot40.Author = list435; - num = 5; - List list436 = new List(num); - CollectionsMarshal.SetCount(list436, num); - Span span221 = CollectionsMarshal.AsSpan(list436); - ref QuestSequence reference297 = ref span221[0]; + index = 5; + List list436 = new List(index); + CollectionsMarshal.SetCount(list436, index); + span2 = CollectionsMarshal.AsSpan(list436); + num = 0; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 0 @@ -201421,8 +242053,9 @@ public static class AssemblyQuestLoader num2 = 2; List list437 = new List(num2); CollectionsMarshal.SetCount(list437, num2); - Span span222 = CollectionsMarshal.AsSpan(list437); - span222[0] = new QuestStep(EInteractionType.WalkTo, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + span3 = CollectionsMarshal.AsSpan(list437); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201439,68 +242072,93 @@ public static class AssemblyQuestLoader } } }; - span222[1] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622); obj235.Steps = list437; reference297 = obj235; - ref QuestSequence reference298 = ref span221[1]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list438 = new List(num2); - CollectionsMarshal.SetCount(list438, num2); - Span span223 = CollectionsMarshal.AsSpan(list438); - span223[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.0104f, 17.31996f, 508.54376f), 614) + index2 = 4; + List list438 = new List(index2); + CollectionsMarshal.SetCount(list438, index2); + span3 = CollectionsMarshal.AsSpan(list438); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.0104f, 17.31996f, 508.54376f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - ref QuestStep reference299 = ref span223[1]; + num2++; + ref QuestStep reference299 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1025702u, new Vector3(-279.25543f, 17.31996f, 489.2804f), 614); - num3 = 6; - List list439 = new List(num3); - CollectionsMarshal.SetCount(list439, num3); - Span span224 = CollectionsMarshal.AsSpan(list439); - span224[0] = null; - span224[1] = null; - span224[2] = null; - span224[3] = null; - span224[4] = null; - span224[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list439 = new List(num4); + CollectionsMarshal.SetCount(list439, num4); + span5 = CollectionsMarshal.AsSpan(list439); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list439; reference299 = questStep12; - ref QuestStep reference300 = ref span223[2]; + num2++; + ref QuestStep reference300 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1025768u, new Vector3(-292.2561f, 17.31996f, 489.76868f), 614); num3 = 6; List list440 = new List(num3); CollectionsMarshal.SetCount(list440, num3); - Span span225 = CollectionsMarshal.AsSpan(list440); - span225[0] = null; - span225[1] = null; - span225[2] = null; - span225[3] = null; - span225[4] = null; - span225[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list440); + 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); questStep13.CompletionQuestVariablesFlags = list440; reference300 = questStep13; - ref QuestStep reference301 = ref span223[3]; + num2++; + ref QuestStep reference301 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1025701u, new Vector3(-280.81183f, 17.31996f, 524.52893f), 614); - num3 = 6; - List list441 = new List(num3); - CollectionsMarshal.SetCount(list441, num3); - Span span226 = CollectionsMarshal.AsSpan(list441); - span226[0] = null; - span226[1] = null; - span226[2] = null; - span226[3] = null; - span226[4] = null; - span226[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list441 = new List(num4); + CollectionsMarshal.SetCount(list441, num4); + span5 = CollectionsMarshal.AsSpan(list441); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list441; reference301 = questStep14; obj236.Steps = list438; reference298 = obj236; - ref QuestSequence reference302 = ref span221[2]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 2 @@ -201508,24 +242166,30 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + span3 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; obj237.Steps = list442; reference302 = obj237; - ref QuestSequence reference303 = ref span221[3]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1025703u, new Vector3(-734.0658f, 127.41788f, 100.8468f), 622); + index2 = 1; + List list443 = new List(index2); + CollectionsMarshal.SetCount(list443, index2); + span3 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025703u, new Vector3(-734.0658f, 127.41788f, 100.8468f), 622); obj238.Steps = list443; reference303 = obj238; - ref QuestSequence reference304 = ref span221[4]; + num++; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -201533,62 +242197,79 @@ public static class AssemblyQuestLoader num2 = 5; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span227 = CollectionsMarshal.AsSpan(list444); - ref QuestStep reference305 = ref span227[0]; + span3 = CollectionsMarshal.AsSpan(list444); + index2 = 0; + ref QuestStep reference305 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); num3 = 1; List list445 = new List(num3); CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = EExtendedClassJob.DoH; + span9 = CollectionsMarshal.AsSpan(list445); + num4 = 0; + span9[num4] = EExtendedClassJob.DoH; questStep15.RequiredQuestAcceptedJob = list445; reference305 = questStep15; - ref QuestStep reference306 = ref span227[1]; + index2++; + ref QuestStep reference306 = ref span3[index2]; QuestStep obj240 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22721u, ItemCount = 2 }; - num3 = 1; - List list446 = new List(num3); - CollectionsMarshal.SetCount(list446, num3); - CollectionsMarshal.AsSpan(list446)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list446 = new List(num4); + CollectionsMarshal.SetCount(list446, num4); + span9 = CollectionsMarshal.AsSpan(list446); + num3 = 0; + span9[num3] = EExtendedClassJob.DoH; obj240.RequiredQuestAcceptedJob = list446; reference306 = obj240; - ref QuestStep reference307 = ref span227[2]; + index2++; + ref QuestStep reference307 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list447 = new List(num3); CollectionsMarshal.SetCount(list447, num3); - CollectionsMarshal.AsSpan(list447)[0] = EExtendedClassJob.Miner; + span9 = CollectionsMarshal.AsSpan(list447); + num4 = 0; + span9[num4] = EExtendedClassJob.Miner; questStep16.RequiredQuestAcceptedJob = list447; - num3 = 1; - List list448 = new List(num3); - CollectionsMarshal.SetCount(list448, num3); - CollectionsMarshal.AsSpan(list448)[0] = new GatheredItem + num4 = 1; + List list448 = new List(num4); + CollectionsMarshal.SetCount(list448, num4); + span10 = CollectionsMarshal.AsSpan(list448); + num3 = 0; + span10[num3] = new GatheredItem { ItemId = 22617u, ItemCount = 3 }; questStep16.ItemsToGather = list448; reference307 = questStep16; - ref QuestStep reference308 = ref span227[3]; + index2++; + ref QuestStep reference308 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list449 = new List(num3); CollectionsMarshal.SetCount(list449, num3); - CollectionsMarshal.AsSpan(list449)[0] = EExtendedClassJob.Botanist; + span9 = CollectionsMarshal.AsSpan(list449); + num4 = 0; + span9[num4] = EExtendedClassJob.Botanist; questStep17.RequiredQuestAcceptedJob = list449; - num3 = 1; - List list450 = new List(num3); - CollectionsMarshal.SetCount(list450, num3); - CollectionsMarshal.AsSpan(list450)[0] = new GatheredItem + num4 = 1; + List list450 = new List(num4); + CollectionsMarshal.SetCount(list450, num4); + span10 = CollectionsMarshal.AsSpan(list450); + num3 = 0; + span10[num3] = new GatheredItem { ItemId = 22643u, ItemCount = 3 }; questStep17.ItemsToGather = list450; reference308 = questStep17; - span227[4] = new QuestStep(EInteractionType.CompleteQuest, 1025704u, new Vector3(-734.8898f, 127.42169f, 99.99231f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025704u, new Vector3(-734.8898f, 127.42169f, 99.99231f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201614,21 +242295,26 @@ public static class AssemblyQuestLoader num = 1; List list451 = new List(num); CollectionsMarshal.SetCount(list451, num); - CollectionsMarshal.AsSpan(list451)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list451); + index = 0; + span[index] = "Theo"; questRoot41.Author = list451; - num = 8; - List list452 = new List(num); - CollectionsMarshal.SetCount(list452, num); - Span span228 = CollectionsMarshal.AsSpan(list452); - ref QuestSequence reference309 = ref span228[0]; + index = 8; + List list452 = new List(index); + CollectionsMarshal.SetCount(list452, index); + span2 = CollectionsMarshal.AsSpan(list452); + num = 0; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + index2 = 1; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + span3 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201647,7 +242333,8 @@ public static class AssemblyQuestLoader }; obj241.Steps = list453; reference309 = obj241; - ref QuestSequence reference310 = ref span228[1]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -201655,7 +242342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.UseItem, 2009487u, new Vector3(9.048584f, 10.788086f, -0.015319824f), 628) + span3 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2009487u, new Vector3(9.048584f, 10.788086f, -0.015319824f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, ItemId = 2002473u, @@ -201674,18 +242363,22 @@ public static class AssemblyQuestLoader }; obj242.Steps = list454; reference310 = obj242; - ref QuestSequence reference311 = ref span228[2]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 1025705u, new Vector3(-40.116028f, -2.2548056f, 44.693604f), 628); + index2 = 1; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + span3 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025705u, new Vector3(-40.116028f, -2.2548056f, 44.693604f), 628); obj243.Steps = list455; reference311 = obj243; - ref QuestSequence reference312 = ref span228[3]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 3 @@ -201693,7 +242386,9 @@ public static class AssemblyQuestLoader num2 = 1; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) + span3 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -201711,36 +242406,44 @@ public static class AssemblyQuestLoader }; obj244.Steps = list456; reference312 = obj244; - ref QuestSequence reference313 = ref span228[4]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - Span span229 = CollectionsMarshal.AsSpan(list457); - ref QuestStep reference314 = ref span229[0]; + index2 = 5; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + span3 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference314 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); num3 = 1; List list458 = new List(num3); CollectionsMarshal.SetCount(list458, num3); - CollectionsMarshal.AsSpan(list458)[0] = EExtendedClassJob.DoH; + span9 = CollectionsMarshal.AsSpan(list458); + num4 = 0; + span9[num4] = EExtendedClassJob.DoH; questStep18.RequiredQuestAcceptedJob = list458; reference314 = questStep18; - ref QuestStep reference315 = ref span229[1]; + num2++; + ref QuestStep reference315 = ref span3[num2]; QuestStep obj246 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22722u, ItemCount = 2 }; - num3 = 1; - List list459 = new List(num3); - CollectionsMarshal.SetCount(list459, num3); - CollectionsMarshal.AsSpan(list459)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list459 = new List(num4); + CollectionsMarshal.SetCount(list459, num4); + span9 = CollectionsMarshal.AsSpan(list459); + num3 = 0; + span9[num3] = EExtendedClassJob.DoH; obj246.RequiredQuestAcceptedJob = list459; reference315 = obj246; - ref QuestStep reference316 = ref span229[2]; + num2++; + ref QuestStep reference316 = ref span3[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201760,19 +242463,24 @@ public static class AssemblyQuestLoader num3 = 1; List list460 = new List(num3); CollectionsMarshal.SetCount(list460, num3); - CollectionsMarshal.AsSpan(list460)[0] = EExtendedClassJob.Miner; + span9 = CollectionsMarshal.AsSpan(list460); + num4 = 0; + span9[num4] = EExtendedClassJob.Miner; obj247.RequiredQuestAcceptedJob = list460; - num3 = 1; - List list461 = new List(num3); - CollectionsMarshal.SetCount(list461, num3); - CollectionsMarshal.AsSpan(list461)[0] = new GatheredItem + num4 = 1; + List list461 = new List(num4); + CollectionsMarshal.SetCount(list461, num4); + span10 = CollectionsMarshal.AsSpan(list461); + num3 = 0; + span10[num3] = new GatheredItem { ItemId = 22618u, ItemCount = 2 }; obj247.ItemsToGather = list461; reference316 = obj247; - ref QuestStep reference317 = ref span229[3]; + num2++; + ref QuestStep reference317 = ref span3[num2]; QuestStep obj248 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201792,19 +242500,24 @@ public static class AssemblyQuestLoader num3 = 1; List list462 = new List(num3); CollectionsMarshal.SetCount(list462, num3); - CollectionsMarshal.AsSpan(list462)[0] = EExtendedClassJob.Botanist; + span9 = CollectionsMarshal.AsSpan(list462); + num4 = 0; + span9[num4] = EExtendedClassJob.Botanist; obj248.RequiredQuestAcceptedJob = list462; - num3 = 1; - List list463 = new List(num3); - CollectionsMarshal.SetCount(list463, num3); - CollectionsMarshal.AsSpan(list463)[0] = new GatheredItem + num4 = 1; + List list463 = new List(num4); + CollectionsMarshal.SetCount(list463, num4); + span10 = CollectionsMarshal.AsSpan(list463); + num3 = 0; + span10[num3] = new GatheredItem { ItemId = 22644u, ItemCount = 2 }; obj248.ItemsToGather = list463; reference317 = obj248; - span229[4] = new QuestStep(EInteractionType.Interact, 1025708u, new Vector3(-746.6392f, 127.458954f, 91.63037f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025708u, new Vector3(-746.6392f, 127.458954f, 91.63037f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -201822,7 +242535,8 @@ public static class AssemblyQuestLoader }; obj245.Steps = list457; reference313 = obj245; - ref QuestSequence reference318 = ref span228[5]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 5 @@ -201830,19 +242544,23 @@ public static class AssemblyQuestLoader num2 = 1; List list464 = new List(num2); CollectionsMarshal.SetCount(list464, num2); - CollectionsMarshal.AsSpan(list464)[0] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622); + span3 = CollectionsMarshal.AsSpan(list464); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622); obj249.Steps = list464; reference318 = obj249; - ref QuestSequence reference319 = ref span228[6]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list465 = new List(num2); - CollectionsMarshal.SetCount(list465, num2); - Span span230 = CollectionsMarshal.AsSpan(list465); - ref QuestStep reference320 = ref span230[0]; + index2 = 2; + List list465 = new List(index2); + CollectionsMarshal.SetCount(list465, index2); + span3 = CollectionsMarshal.AsSpan(list465); + num2 = 0; + ref QuestStep reference320 = ref span3[num2]; QuestStep obj251 = new QuestStep(EInteractionType.Action, 1026018u, new Vector3(-728.2368f, 127.378174f, 110.7041f), 622) { Action = EAction.Wasshoi @@ -201850,35 +242568,49 @@ public static class AssemblyQuestLoader num3 = 6; List list466 = new List(num3); CollectionsMarshal.SetCount(list466, num3); - Span span231 = CollectionsMarshal.AsSpan(list466); - span231[0] = null; - span231[1] = null; - span231[2] = null; - span231[3] = null; - span231[4] = null; - span231[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list466); + 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); obj251.CompletionQuestVariablesFlags = list466; reference320 = obj251; - ref QuestStep reference321 = ref span230[1]; + num2++; + ref QuestStep reference321 = ref span3[num2]; QuestStep obj252 = new QuestStep(EInteractionType.Action, 1025709u, new Vector3(-761.86774f, 127.25556f, 137.52954f), 622) { Action = EAction.Wasshoi }; - num3 = 6; - List list467 = new List(num3); - CollectionsMarshal.SetCount(list467, num3); - Span span232 = CollectionsMarshal.AsSpan(list467); - span232[0] = null; - span232[1] = null; - span232[2] = null; - span232[3] = null; - span232[4] = null; - span232[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list467 = new List(num4); + CollectionsMarshal.SetCount(list467, num4); + span5 = CollectionsMarshal.AsSpan(list467); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj252.CompletionQuestVariablesFlags = list467; reference321 = obj252; obj250.Steps = list465; reference319 = obj250; - ref QuestSequence reference322 = ref span228[7]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue @@ -201886,7 +242618,9 @@ public static class AssemblyQuestLoader num2 = 1; List list468 = new List(num2); CollectionsMarshal.SetCount(list468, num2); - CollectionsMarshal.AsSpan(list468)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) + span3 = CollectionsMarshal.AsSpan(list468); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201916,13 +242650,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Theo"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Theo"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -201930,7 +242667,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201949,26 +242688,30 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.82428f, 40.425697f, -479.13782f), 622) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.82428f, 40.425697f, -479.13782f), 622) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = false }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -201976,7 +242719,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201995,21 +242740,25 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -202017,7 +242766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1025843u, new Vector3(-743.9536f, 127.27266f, 138.23145f), 622) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025843u, new Vector3(-743.9536f, 127.27266f, 138.23145f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202036,36 +242787,44 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 5; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference7 = ref span3[0]; + index2 = 5; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference7 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); int num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = EExtendedClassJob.DoH; + Span span4 = CollectionsMarshal.AsSpan(list9); + int index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep.RequiredCurrentJob = list9; reference7 = questStep; - ref QuestStep reference8 = ref span3[1]; + num2++; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22723u, ItemCount = 1 }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list10 = new List(index3); + CollectionsMarshal.SetCount(list10, index3); + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj7.RequiredCurrentJob = list10; reference8 = obj7; - ref QuestStep reference9 = ref span3[2]; + num2++; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -202085,19 +242844,24 @@ public static class AssemblyQuestLoader num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list11); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; obj8.RequiredQuestAcceptedJob = list11; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheredItem + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span5 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22619u, ItemCount = 1 }; obj8.ItemsToGather = list12; reference9 = obj8; - ref QuestStep reference10 = ref span3[3]; + num2++; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -202117,19 +242881,24 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list13); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; obj9.RequiredQuestAcceptedJob = list13; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new GatheredItem + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + span5 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22645u, ItemCount = 1 }; obj9.ItemsToGather = list14; reference10 = obj9; - span3[4] = new QuestStep(EInteractionType.Interact, 1025842u, new Vector3(-742.855f, 127.275314f, 137.59058f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025842u, new Vector3(-742.855f, 127.275314f, 137.59058f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202148,7 +242917,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -202156,21 +242926,26 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1025715u, new Vector3(-799.13025f, 127.50203f, 57.236572f), 622) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025715u, new Vector3(-799.13025f, 127.50203f, 57.236572f), 622) { Fly = true }; obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span[7]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025716u, new Vector3(-800.9613f, 127.411125f, 39.902344f), 622); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025716u, new Vector3(-800.9613f, 127.411125f, 39.902344f), 622); obj11.Steps = list16; reference12 = obj11; questRoot.QuestSequence = list2; @@ -202180,13 +242955,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "Theo"; questRoot2.Author = list17; - num = 5; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span4 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span4[0]; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -202194,7 +242972,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202213,16 +242993,18 @@ public static class AssemblyQuestLoader }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span4[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.05273f, 205f, 143.30833f), 478) { Mount = true, @@ -202234,23 +243016,29 @@ public static class AssemblyQuestLoader List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = 399; - span6[1] = 463; + index3 = 0; + span6[index3] = 399; + index3++; + span6[index3] = 463; skipStepConditions.InTerritory = list21; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 3; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = 478; - span7[1] = 399; - span7[2] = 463; + index3 = 3; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span6 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span6[num3] = 478; + num3++; + span6[num3] = 399; + num3++; + span6[num3] = 463; skipAetheryteCondition.InTerritory = list22; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj14.SkipConditions = skipConditions; reference15 = obj14; - ref QuestStep reference16 = ref span5[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-488.692f, 139.95807f, 734.253f), 399) { Fly = true @@ -202260,12 +243048,15 @@ public static class AssemblyQuestLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 463; + span6 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span6[index3] = 463; skipStepConditions2.InTerritory = list23; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference16 = obj15; - ref QuestStep reference17 = ref span5[2]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463, @@ -202273,21 +243064,25 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 463; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + span6 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span6[num3] = 463; skipStepConditions3.InTerritory = list24; skipConditions3.StepIf = skipStepConditions3; obj16.SkipConditions = skipConditions3; reference17 = obj16; - span5[3] = new QuestStep(EInteractionType.UseItem, 2009488u, new Vector3(17.837708f, 38.406982f, 15.030029f), 463) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2009488u, new Vector3(17.837708f, 38.406982f, 15.030029f), 463) { ItemId = 2002474u }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference18 = ref span4[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -202295,28 +243090,34 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.UseItem, 2009510u, new Vector3(-736.5072f, 127.39758f, 101.548706f), 622) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2009510u, new Vector3(-736.5072f, 127.39758f, 101.548706f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, ItemId = 2002474u }; obj17.Steps = list25; reference18 = obj17; - ref QuestSequence reference19 = ref span4[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) { Mount = true }; obj18.Steps = list26; reference19 = obj18; - ref QuestSequence reference20 = ref span4[4]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -202324,62 +243125,79 @@ public static class AssemblyQuestLoader num2 = 5; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span8 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference21 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep2.RequiredQuestAcceptedJob = list28; reference21 = questStep2; - ref QuestStep reference22 = ref span8[1]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22724u, ItemCount = 1 }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span4 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj20.RequiredQuestAcceptedJob = list29; reference22 = obj20; - ref QuestStep reference23 = ref span8[2]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list30; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new GatheredItem + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22620u, ItemCount = 1 }; questStep3.ItemsToGather = list31; reference23 = questStep3; - ref QuestStep reference24 = ref span8[3]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list32; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheredItem + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22646u, ItemCount = 1 }; questStep4.ItemsToGather = list33; reference24 = questStep4; - span8[4] = new QuestStep(EInteractionType.CompleteQuest, 1025845u, new Vector3(-790.98193f, 127.28478f, 122.697754f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025845u, new Vector3(-790.98193f, 127.28478f, 122.697754f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -202404,21 +243222,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "Censored"; questRoot3.Author = list34; - num = 5; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span9 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference25 = ref span9[0]; + index = 5; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -202436,7 +243259,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list36; reference25 = obj21; - ref QuestSequence reference26 = ref span9[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -202444,27 +243268,33 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj22.Steps = list37; reference26 = obj22; - ref QuestSequence reference27 = ref span9[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj23.Steps = list38; reference27 = obj23; - ref QuestSequence reference28 = ref span9[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 @@ -202472,21 +243302,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = true }; obj24.Steps = list39; reference28 = obj24; - ref QuestSequence reference29 = ref span9[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; @@ -202499,13 +243334,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "Theo"; questRoot4.Author = list41; - num = 4; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span10 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference30 = ref span10[0]; + index = 4; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -202513,27 +243351,33 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span11 = CollectionsMarshal.AsSpan(list43); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span11[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj26.Steps = list43; reference30 = obj26; - ref QuestSequence reference31 = ref span10[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) { StopDistance = 5f, Fly = true }; obj27.Steps = list44; reference31 = obj27; - ref QuestSequence reference32 = ref span10[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -202541,76 +243385,96 @@ public static class AssemblyQuestLoader num2 = 5; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference33 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1025770u, new Vector3(511.65015f, 30.105957f, -407.24805f), 622); num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep5.RequiredQuestAcceptedJob = list46; reference33 = questStep5; - ref QuestStep reference34 = ref span12[1]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22725u, ItemCount = 2 }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + span4 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj29.RequiredQuestAcceptedJob = list47; reference34 = obj29; - ref QuestStep reference35 = ref span12[2]; + index2++; + ref QuestStep reference35 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep6.RequiredQuestAcceptedJob = list48; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new GatheredItem + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + span5 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22621u, ItemCount = 3 }; questStep6.ItemsToGather = list49; reference35 = questStep6; - ref QuestStep reference36 = ref span12[3]; + index2++; + ref QuestStep reference36 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep7.RequiredQuestAcceptedJob = list50; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new GatheredItem + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + span5 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22647u, ItemCount = 3 }; questStep7.ItemsToGather = list51; reference36 = questStep7; - span12[4] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) { Fly = true }; obj28.Steps = list45; reference32 = obj28; - ref QuestSequence reference37 = ref span10[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202636,13 +243500,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "Theo"; questRoot5.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span13 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference38 = ref span13[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -202650,21 +243517,25 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span14 = CollectionsMarshal.AsSpan(list55); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span14[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj31.Steps = list55; reference38 = obj31; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span15 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference40 = ref span15[0]; + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Say, 2009491u, new Vector3(-70.81714f, 66.9718f, -421.89673f), 622) { Fly = true, @@ -202676,16 +243547,23 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span16 = CollectionsMarshal.AsSpan(list57); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list57; reference40 = obj33; - ref QuestStep reference41 = ref span15[1]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Say, 2009492u, new Vector3(725.307f, -1.5717163f, -423.81934f), 622) { Fly = true, @@ -202694,21 +243572,28 @@ public static class AssemblyQuestLoader Key = "TEXT_BANNAM302_03104_SAYTODO_000_050" } }; - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span17 = CollectionsMarshal.AsSpan(list58); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + span7 = CollectionsMarshal.AsSpan(list58); + 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); obj34.CompletionQuestVariablesFlags = list58; reference41 = obj34; obj32.Steps = list56; reference39 = obj32; - ref QuestSequence reference42 = ref span13[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -202716,7 +243601,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202742,26 +243629,32 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "Theo"; questRoot6.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span18 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference43 = ref span18[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span19 = CollectionsMarshal.AsSpan(list62); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj36.Steps = list62; reference43 = obj36; - ref QuestSequence reference44 = ref span18[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -202769,43 +243662,53 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1025641u, new Vector3(-54.398438f, 76.83682f, -560.8148f), 622) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025641u, new Vector3(-54.398438f, 76.83682f, -560.8148f), 622) { StopDistance = 5f, Fly = true }; obj37.Steps = list63; reference44 = obj37; - ref QuestSequence reference45 = ref span18[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span20 = CollectionsMarshal.AsSpan(list64); - ref QuestStep reference46 = ref span20[0]; + index2 = 3; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1025642u, new Vector3(-50.370117f, 76.798584f, -558.77014f), 622); num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep8.RequiredQuestAcceptedJob = list65; reference46 = questStep8; - ref QuestStep reference47 = ref span20[1]; + num2++; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22726u, ItemCount = 1 }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span4 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj39.RequiredQuestAcceptedJob = list66; reference47 = obj39; - span20[2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202831,13 +243734,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "Theo"; questRoot7.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span21 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference48 = ref span21[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -202845,27 +243751,33 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span22 = CollectionsMarshal.AsSpan(list69); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span22[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj40.Steps = list69; reference48 = obj40; - ref QuestSequence reference49 = ref span21[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1025773u, new Vector3(-311.29932f, 50.549908f, -225.8183f), 622) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025773u, new Vector3(-311.29932f, 50.549908f, -225.8183f), 622) { StopDistance = 5f, Fly = true }; obj41.Steps = list70; reference49 = obj41; - ref QuestSequence reference50 = ref span21[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -202873,28 +243785,35 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span23 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference51 = ref span23[0]; + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1025774u, new Vector3(-308.73578f, 50.247925f, -226.09296f), 622); num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep9.RequiredQuestAcceptedJob = list72; reference51 = questStep9; - ref QuestStep reference52 = ref span23[1]; + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22727u, ItemCount = 2 }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span4 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj43.RequiredQuestAcceptedJob = list73; reference52 = obj43; - span23[2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202920,26 +243839,32 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "Theo"; questRoot8.Author = list74; - num = 4; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span24 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference53 = ref span24[0]; + index = 4; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span25 = CollectionsMarshal.AsSpan(list76); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span25[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj44.Steps = list76; reference53 = obj44; - ref QuestSequence reference54 = ref span24[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -202947,81 +243872,102 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1025775u, new Vector3(-145.4032f, 27.922167f, -36.05713f), 622) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025775u, new Vector3(-145.4032f, 27.922167f, -36.05713f), 622) { StopDistance = 5f, Fly = true }; obj45.Steps = list77; reference54 = obj45; - span24[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference55 = ref span24[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span26 = CollectionsMarshal.AsSpan(list78); - ref QuestStep reference56 = ref span26[0]; + index2 = 5; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference56 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1025776u, new Vector3(-143.45007f, 27.66455f, -39.139465f), 622); num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep10.RequiredQuestAcceptedJob = list79; reference56 = questStep10; - ref QuestStep reference57 = ref span26[1]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22728u, ItemCount = 3 }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span4 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj47.RequiredQuestAcceptedJob = list80; reference57 = obj47; - ref QuestStep reference58 = ref span26[2]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list81; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheredItem + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span5 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22624u, ItemCount = 3 }; questStep11.ItemsToGather = list82; reference58 = questStep11; - ref QuestStep reference59 = ref span26[3]; + num2++; + ref QuestStep reference59 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list83; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheredItem + index3 = 1; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + span5 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22650u, ItemCount = 3 }; questStep12.ItemsToGather = list84; reference59 = questStep12; - span26[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203047,13 +243993,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "Theo"; questRoot9.Author = list85; - num = 5; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span27 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference60 = ref span27[0]; + index = 5; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -203061,27 +244010,33 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span28 = CollectionsMarshal.AsSpan(list87); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span28[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj48.Steps = list87; reference60 = obj48; - ref QuestSequence reference61 = ref span27[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) { StopDistance = 5f, Fly = true }; obj49.Steps = list88; reference61 = obj49; - ref QuestSequence reference62 = ref span27[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -203089,88 +244044,109 @@ public static class AssemblyQuestLoader num2 = 5; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span29 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference63 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference63 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1025778u, new Vector3(-597.0398f, 63.82837f, -288.65497f), 622); num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep13.RequiredQuestAcceptedJob = list90; reference63 = questStep13; - ref QuestStep reference64 = ref span29[1]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22729u, ItemCount = 1 }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj51.RequiredQuestAcceptedJob = list91; reference64 = obj51; - ref QuestStep reference65 = ref span29[2]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list92; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheredItem + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + span5 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22625u, ItemCount = 3 }; questStep14.ItemsToGather = list93; reference65 = questStep14; - ref QuestStep reference66 = ref span29[3]; + index2++; + ref QuestStep reference66 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list94; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new GatheredItem + index3 = 1; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + span5 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22651u, ItemCount = 3 }; questStep15.ItemsToGather = list95; reference66 = questStep15; - span29[4] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) { Fly = true }; obj50.Steps = list89; reference62 = obj50; - ref QuestSequence reference67 = ref span27[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span30 = CollectionsMarshal.AsSpan(list96); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-642.094f, 18.562637f, 399.83704f), 622) + index2 = 2; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-642.094f, 18.562637f, 399.83704f), 622) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.Interact, 1019330u, new Vector3(-746.7918f, 7.8459983f, 398.27563f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019330u, new Vector3(-746.7918f, 7.8459983f, 398.27563f), 622) { StopDistance = 5f, Fly = true }; obj52.Steps = list96; reference67 = obj52; - ref QuestSequence reference68 = ref span27[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -203178,7 +244154,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203204,26 +244182,32 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "Theo"; questRoot10.Author = list98; - num = 4; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span31 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference69 = ref span31[0]; + index = 4; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span32 = CollectionsMarshal.AsSpan(list100); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span32[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj54.Steps = list100; reference69 = obj54; - ref QuestSequence reference70 = ref span31[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -203231,7 +244215,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(194.04845f, 13.27476f, 121.84426f), 622) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(194.04845f, 13.27476f, 121.84426f), 622) { StopDistance = 0.5f, Fly = true, @@ -203239,76 +244225,95 @@ public static class AssemblyQuestLoader }; obj55.Steps = list101; reference70 = obj55; - ref QuestSequence reference71 = ref span31[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span33 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference72 = ref span33[0]; + index2 = 5; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1025780u, new Vector3(192.30945f, 13.260071f, 122.545166f), 622); num3 = 1; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep16.RequiredQuestAcceptedJob = list103; reference72 = questStep16; - ref QuestStep reference73 = ref span33[1]; + num2++; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22730u, ItemCount = 2 }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + span4 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj57.RequiredQuestAcceptedJob = list104; reference73 = obj57; - ref QuestStep reference74 = ref span33[2]; + num2++; + ref QuestStep reference74 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list105; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new GatheredItem + index3 = 1; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + span5 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22626u, ItemCount = 3 }; questStep17.ItemsToGather = list106; reference74 = questStep17; - ref QuestStep reference75 = ref span33[3]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list107; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheredItem + index3 = 1; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + span5 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22652u, ItemCount = 3 }; questStep18.ItemsToGather = list108; reference75 = questStep18; - span33[4] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(193.04187f, 13.040566f, 120.19531f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(193.04187f, 13.040566f, 120.19531f), 622) { Fly = true }; obj56.Steps = list102; reference71 = obj56; - ref QuestSequence reference76 = ref span31[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -203316,7 +244321,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203342,21 +244349,26 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "Theo"; questRoot11.Author = list110; - num = 5; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span34 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference77 = ref span34[0]; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -203374,7 +244386,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list112; reference77 = obj59; - ref QuestSequence reference78 = ref span34[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -203382,82 +244395,103 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj60.Steps = list113; reference78 = obj60; - ref QuestSequence reference79 = ref span34[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span35 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference80 = ref span35[0]; + index2 = 5; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference80 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1025782u, new Vector3(573.7544f, -19.516357f, 430.10596f), 622); num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep19.RequiredQuestAcceptedJob = list115; reference80 = questStep19; - ref QuestStep reference81 = ref span35[1]; + num2++; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22731u, ItemCount = 1 }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + span4 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj62.RequiredQuestAcceptedJob = list116; reference81 = obj62; - ref QuestStep reference82 = ref span35[2]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list117; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new GatheredItem + index3 = 1; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + span5 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22627u, ItemCount = 3 }; questStep20.ItemsToGather = list118; reference82 = questStep20; - ref QuestStep reference83 = ref span35[3]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list119; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new GatheredItem + index3 = 1; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + span5 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22653u, ItemCount = 3 }; questStep21.ItemsToGather = list120; reference83 = questStep21; - span35[4] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) { Fly = true }; obj61.Steps = list114; reference79 = obj61; - ref QuestSequence reference84 = ref span34[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 @@ -203465,18 +244499,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2009494u, new Vector3(575.09717f, -19.272217f, 424.97888f), 622); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009494u, new Vector3(575.09717f, -19.272217f, 424.97888f), 622); obj63.Steps = list121; reference84 = obj63; - ref QuestSequence reference85 = ref span34[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203502,13 +244541,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "Theo"; questRoot12.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span36 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference86 = ref span36[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -203516,7 +244558,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -203534,15 +244578,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list125; reference86 = obj65; - ref QuestSequence reference87 = ref span36[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1025783u, new Vector3(122.6062f, 39.55857f, -336.5683f), 622) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025783u, new Vector3(122.6062f, 39.55857f, -336.5683f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -203561,7 +244608,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list126; reference87 = obj66; - ref QuestSequence reference88 = ref span36[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -203569,62 +244617,79 @@ public static class AssemblyQuestLoader num2 = 5; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span37 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference89 = ref span37[0]; + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference89 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1025784u, new Vector3(125.68848f, 39.96338f, -335.8969f), 622); num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep22.RequiredQuestAcceptedJob = list128; reference89 = questStep22; - ref QuestStep reference90 = ref span37[1]; + index2++; + ref QuestStep reference90 = ref span3[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22732u, ItemCount = 2 }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span4 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj68.RequiredQuestAcceptedJob = list129; reference90 = obj68; - ref QuestStep reference91 = ref span37[2]; + index2++; + ref QuestStep reference91 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep23.RequiredQuestAcceptedJob = list130; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new GatheredItem + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span5 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22628u, ItemCount = 3 }; questStep23.ItemsToGather = list131; reference91 = questStep23; - ref QuestStep reference92 = ref span37[3]; + index2++; + ref QuestStep reference92 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep24.RequiredQuestAcceptedJob = list132; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new GatheredItem + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span5 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22654u, ItemCount = 3 }; questStep24.ItemsToGather = list133; reference92 = questStep24; - span37[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203650,21 +244715,26 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "Theo"; questRoot13.Author = list134; - num = 4; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span38 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference93 = ref span38[0]; + index = 4; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203683,7 +244753,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list136; reference93 = obj69; - ref QuestSequence reference94 = ref span38[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -203691,83 +244762,104 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj70.Steps = list137; reference94 = obj70; - ref QuestSequence reference95 = ref span38[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span39 = CollectionsMarshal.AsSpan(list138); - ref QuestStep reference96 = ref span39[0]; + index2 = 5; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1025786u, new Vector3(75.42529f, 114.88513f, -9.475891f), 622); num3 = 1; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep25.RequiredQuestAcceptedJob = list139; reference96 = questStep25; - ref QuestStep reference97 = ref span39[1]; + num2++; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22733u, ItemCount = 1 }; - num3 = 1; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + span4 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj72.RequiredQuestAcceptedJob = list140; reference97 = obj72; - ref QuestStep reference98 = ref span39[2]; + num2++; + ref QuestStep reference98 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list141; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new GatheredItem + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span5 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22629u, ItemCount = 3 }; questStep26.ItemsToGather = list142; reference98 = questStep26; - ref QuestStep reference99 = ref span39[3]; + num2++; + ref QuestStep reference99 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list143; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + span5 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22655u, ItemCount = 3 }; questStep27.ItemsToGather = list144; reference99 = questStep27; - span39[4] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) { Fly = true }; obj71.Steps = list138; reference95 = obj71; - ref QuestSequence reference100 = ref span38[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -203775,7 +244867,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203801,26 +244895,32 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "Theo"; questRoot14.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span40 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference101 = ref span40[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span41 = CollectionsMarshal.AsSpan(list148); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj74.Steps = list148; reference101 = obj74; - ref QuestSequence reference102 = ref span40[1]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -203828,83 +244928,104 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj75.Steps = list149; reference102 = obj75; - ref QuestSequence reference103 = ref span40[2]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span42 = CollectionsMarshal.AsSpan(list150); - ref QuestStep reference104 = ref span42[0]; + index2 = 5; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference104 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1025788u, new Vector3(391.9889f, -8.529846f, 489.55518f), 622); num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep28.RequiredQuestAcceptedJob = list151; reference104 = questStep28; - ref QuestStep reference105 = ref span42[1]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22734u, ItemCount = 2 }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span4 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj77.RequiredQuestAcceptedJob = list152; reference105 = obj77; - ref QuestStep reference106 = ref span42[2]; + num2++; + ref QuestStep reference106 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep29.RequiredQuestAcceptedJob = list153; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new GatheredItem + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + span5 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22630u, ItemCount = 3 }; questStep29.ItemsToGather = list154; reference106 = questStep29; - ref QuestStep reference107 = ref span42[3]; + num2++; + ref QuestStep reference107 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep30.RequiredQuestAcceptedJob = list155; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheredItem + index3 = 1; + List list156 = new List(index3); + CollectionsMarshal.SetCount(list156, index3); + span5 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22656u, ItemCount = 3 }; questStep30.ItemsToGather = list156; reference107 = questStep30; - span42[4] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) { Fly = true }; obj76.Steps = list150; reference103 = obj76; - ref QuestSequence reference108 = ref span40[3]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -203912,7 +245033,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203938,26 +245061,32 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "Theo"; questRoot15.Author = list158; - num = 4; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span43 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference109 = ref span43[0]; + index = 4; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span44 = CollectionsMarshal.AsSpan(list160); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj79.Steps = list160; reference109 = obj79; - ref QuestSequence reference110 = ref span43[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -203965,83 +245094,104 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj80.Steps = list161; reference110 = obj80; - ref QuestSequence reference111 = ref span43[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span45 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference112 = ref span45[0]; + index2 = 5; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1025790u, new Vector3(594.41516f, 23.208984f, -423.81934f), 622); num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep31.RequiredQuestAcceptedJob = list163; reference112 = questStep31; - ref QuestStep reference113 = ref span45[1]; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22735u, ItemCount = 3 }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span4 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj82.RequiredQuestAcceptedJob = list164; reference113 = obj82; - ref QuestStep reference114 = ref span45[2]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list165; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new GatheredItem + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + span5 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22631u, ItemCount = 3 }; questStep32.ItemsToGather = list166; reference114 = questStep32; - ref QuestStep reference115 = ref span45[3]; + num2++; + ref QuestStep reference115 = ref span3[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list167; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem + index3 = 1; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + span5 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22657u, ItemCount = 3 }; questStep33.ItemsToGather = list168; reference115 = questStep33; - span45[4] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) { Fly = true }; obj81.Steps = list162; reference111 = obj81; - ref QuestSequence reference116 = ref span43[3]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -204049,7 +245199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204075,21 +245227,26 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "Theo"; questRoot16.Author = list170; - num = 5; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span46 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference117 = ref span46[0]; + index = 5; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204108,7 +245265,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list172; reference117 = obj84; - ref QuestSequence reference118 = ref span46[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -204116,21 +245274,26 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622) { Mount = true }; obj85.Steps = list173; reference118 = obj85; - ref QuestSequence reference119 = ref span46[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Action, 2009498u, new Vector3(-161.57782f, 5.142273f, 554.46704f), 622) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2009498u, new Vector3(-161.57782f, 5.142273f, 554.46704f), 622) { Fly = true, Land = true, @@ -204138,7 +245301,8 @@ public static class AssemblyQuestLoader }; obj86.Steps = list174; reference119 = obj86; - ref QuestSequence reference120 = ref span46[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -204146,7 +245310,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Action, 2009499u, new Vector3(176.34851f, 4.135132f, 20.645447f), 622) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2009499u, new Vector3(176.34851f, 4.135132f, 20.645447f), 622) { Fly = true, Land = true, @@ -204154,15 +245320,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list175; reference120 = obj87; - ref QuestSequence reference121 = ref span46[4]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204188,13 +245357,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list177); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list177; - num = 3; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span47 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference122 = ref span47[0]; + index = 3; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + span2 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -204202,7 +245374,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204221,16 +245395,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list179; reference122 = obj89; - ref QuestSequence reference123 = ref span47[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span48 = CollectionsMarshal.AsSpan(list180); - span48[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + index2 = 3; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true, @@ -204242,7 +245418,8 @@ public static class AssemblyQuestLoader } } }; - span48[1] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) { Mount = true, SkipConditions = new SkipConditions @@ -204253,7 +245430,8 @@ public static class AssemblyQuestLoader } } }; - span48[2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) { Fly = true, SkipConditions = new SkipConditions @@ -204266,7 +245444,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list180; reference123 = obj90; - ref QuestSequence reference124 = ref span47[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -204274,62 +245453,79 @@ public static class AssemblyQuestLoader num2 = 5; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span49 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference125 = ref span49[0]; + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + ref QuestStep reference125 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1025798u, new Vector3(-366.2318f, 76.98169f, -580.31586f), 622); num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep34.RequiredQuestAcceptedJob = list182; reference125 = questStep34; - ref QuestStep reference126 = ref span49[1]; + index2++; + ref QuestStep reference126 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22736u, ItemCount = 2 }; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + span4 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj92.RequiredQuestAcceptedJob = list183; reference126 = obj92; - ref QuestStep reference127 = ref span49[2]; + index2++; + ref QuestStep reference127 = ref span3[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep35.RequiredQuestAcceptedJob = list184; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheredItem + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span5 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22632u, ItemCount = 1 }; questStep35.ItemsToGather = list185; reference127 = questStep35; - ref QuestStep reference128 = ref span49[3]; + index2++; + ref QuestStep reference128 = ref span3[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep36.RequiredQuestAcceptedJob = list186; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new GatheredItem + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + span5 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22658u, ItemCount = 1 }; questStep36.ItemsToGather = list187; reference128 = questStep36; - span49[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204355,21 +245551,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list188; - num = 3; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span50 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference129 = ref span50[0]; + index = 3; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204388,7 +245589,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list190; reference129 = obj93; - ref QuestSequence reference130 = ref span50[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -204396,8 +245598,9 @@ public static class AssemblyQuestLoader num2 = 3; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span51 = CollectionsMarshal.AsSpan(list191); - span51[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true, @@ -204409,7 +245612,8 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) { Mount = true, SkipConditions = new SkipConditions @@ -204420,7 +245624,8 @@ public static class AssemblyQuestLoader } } }; - span51[2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) { Fly = true, SkipConditions = new SkipConditions @@ -204433,70 +245638,88 @@ public static class AssemblyQuestLoader }; obj94.Steps = list191; reference130 = obj94; - ref QuestSequence reference131 = ref span50[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span52 = CollectionsMarshal.AsSpan(list192); - ref QuestStep reference132 = ref span52[0]; + index2 = 5; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + ref QuestStep reference132 = ref span3[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1025800u, new Vector3(-172.74744f, 67.39905f, -436.60645f), 622); num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list193); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep37.RequiredCurrentJob = list193; reference132 = questStep37; - ref QuestStep reference133 = ref span52[1]; + num2++; + ref QuestStep reference133 = ref span3[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22737u, ItemCount = 1 }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list194 = new List(index3); + CollectionsMarshal.SetCount(list194, index3); + span4 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj96.RequiredCurrentJob = list194; reference133 = obj96; - ref QuestStep reference134 = ref span52[2]; + num2++; + ref QuestStep reference134 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list195; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new GatheredItem + index3 = 1; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + span5 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22633u, ItemCount = 2 }; questStep38.ItemsToGather = list196; reference134 = questStep38; - ref QuestStep reference135 = ref span52[3]; + num2++; + ref QuestStep reference135 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list197; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new GatheredItem + index3 = 1; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span5 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22659u, ItemCount = 2 }; questStep39.ItemsToGather = list198; reference135 = questStep39; - span52[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204522,13 +245745,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span53 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference136 = ref span53[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -204536,7 +245762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204555,27 +245783,31 @@ public static class AssemblyQuestLoader }; obj97.Steps = list201; reference136 = obj97; - ref QuestSequence reference137 = ref span53[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span54 = CollectionsMarshal.AsSpan(list202); - span54[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true }; - span54[1] = new QuestStep(EInteractionType.Interact, 1025801u, new Vector3(-609.49115f, 41.834953f, 139.75732f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025801u, new Vector3(-609.49115f, 41.834953f, 139.75732f), 622) { Mount = true }; obj98.Steps = list202; reference137 = obj98; - ref QuestSequence reference138 = ref span53[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -204583,18 +245815,23 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1025802u, new Vector3(-232.89844f, 55.466682f, -329.15234f), 622); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025802u, new Vector3(-232.89844f, 55.466682f, -329.15234f), 622); obj99.Steps = list203; reference138 = obj99; - ref QuestSequence reference139 = ref span53[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204620,13 +245857,16 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list205); + index = 0; + span[index] = "Theo"; questRoot20.Author = list205; - num = 4; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span55 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference140 = ref span55[0]; + index = 4; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + span2 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -204634,7 +245874,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204653,15 +245895,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list207; reference140 = obj101; - ref QuestSequence reference141 = ref span55[1]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -204680,7 +245925,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list208; reference141 = obj102; - ref QuestSequence reference142 = ref span55[2]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -204688,76 +245934,96 @@ public static class AssemblyQuestLoader num2 = 5; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span56 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference143 = ref span56[0]; + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference143 = ref span3[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1025804u, new Vector3(272.9076f, 2.39563f, 280.8423f), 622); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep40.RequiredQuestAcceptedJob = list210; reference143 = questStep40; - ref QuestStep reference144 = ref span56[1]; + index2++; + ref QuestStep reference144 = ref span3[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22738u, ItemCount = 3 }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + span4 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj104.RequiredQuestAcceptedJob = list211; reference144 = obj104; - ref QuestStep reference145 = ref span56[2]; + index2++; + ref QuestStep reference145 = ref span3[index2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep41.RequiredQuestAcceptedJob = list212; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheredItem + index3 = 1; + List list213 = new List(index3); + CollectionsMarshal.SetCount(list213, index3); + span5 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22634u, ItemCount = 2 }; questStep41.ItemsToGather = list213; reference145 = questStep41; - ref QuestStep reference146 = ref span56[3]; + index2++; + ref QuestStep reference146 = ref span3[index2]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list214); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep42.RequiredQuestAcceptedJob = list214; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheredItem + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + span5 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22660u, ItemCount = 2 }; questStep42.ItemsToGather = list215; reference146 = questStep42; - span56[4] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) { Fly = true }; obj103.Steps = list209; reference142 = obj103; - ref QuestSequence reference147 = ref span55[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204783,13 +246049,16 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "Theo"; questRoot21.Author = list217; - num = 3; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span57 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference148 = ref span57[0]; + index = 3; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -204797,27 +246066,33 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span58 = CollectionsMarshal.AsSpan(list219); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj106.Steps = list219; reference148 = obj106; - ref QuestSequence reference149 = ref span57[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1025805u, new Vector3(733.6079f, 0.64432836f, -164.78223f), 622) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025805u, new Vector3(733.6079f, 0.64432836f, -164.78223f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj107.Steps = list220; reference149 = obj107; - ref QuestSequence reference150 = ref span57[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -204825,62 +246100,79 @@ public static class AssemblyQuestLoader num2 = 5; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span59 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference151 = ref span59[0]; + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference151 = ref span3[index2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 1025806u, new Vector3(733.15015f, 0.5340576f, -162.21869f), 622); num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep43.RequiredQuestAcceptedJob = list222; reference151 = questStep43; - ref QuestStep reference152 = ref span59[1]; + index2++; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22739u, ItemCount = 1 }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list223 = new List(index3); + CollectionsMarshal.SetCount(list223, index3); + span4 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj109.RequiredQuestAcceptedJob = list223; reference152 = obj109; - ref QuestStep reference153 = ref span59[2]; + index2++; + ref QuestStep reference153 = ref span3[index2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list224; - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = new GatheredItem + index3 = 1; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + span5 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22635u, ItemCount = 3 }; questStep44.ItemsToGather = list225; reference153 = questStep44; - ref QuestStep reference154 = ref span59[3]; + index2++; + ref QuestStep reference154 = ref span3[index2]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list226; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span5 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22661u, ItemCount = 3 }; questStep45.ItemsToGather = list227; reference154 = questStep45; - span59[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204906,23 +246198,28 @@ public static class AssemblyQuestLoader num = 2; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span60 = CollectionsMarshal.AsSpan(list228); - span60[0] = "Theo"; - span60[1] = "pot0to"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "Theo"; + index++; + span[index] = "pot0to"; questRoot22.Author = list228; - num = 4; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span61 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference155 = ref span61[0]; + index = 4; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span2 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204941,7 +246238,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list230; reference155 = obj110; - ref QuestSequence reference156 = ref span61[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -204949,19 +246247,23 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622); obj111.Steps = list231; reference156 = obj111; - ref QuestSequence reference157 = ref span61[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span62 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference158 = ref span62[0]; + index2 = 4; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Action, 2009501u, new Vector3(-73.80792f, -3.7385254f, 345.3269f), 622) { Fly = true, @@ -204971,51 +246273,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list233 = new List>(num3); CollectionsMarshal.SetCount(list233, num3); - Span> span63 = CollectionsMarshal.AsSpan(list233); - span63[0] = null; - span63[1] = null; - ref List reference159 = ref span63[2]; + Span> span8 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference159 = ref span8[index3]; int num4 = 3; List list234 = new List(num4); CollectionsMarshal.SetCount(list234, num4); - Span span64 = CollectionsMarshal.AsSpan(list234); - span64[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span64[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); - span64[2] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list234); + int num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); reference159 = list234; - span63[3] = null; - span63[4] = null; - span63[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj113.RequiredQuestVariables = list233; reference158 = obj113; - ref QuestStep reference160 = ref span62[1]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Action, 2009542u, new Vector3(20.736938f, -0.015319824f, 559.9298f), 622) { Fly = true, Land = true, Action = EAction.Wasshoi }; - num3 = 6; - List> list235 = new List>(num3); - CollectionsMarshal.SetCount(list235, num3); - Span> span65 = CollectionsMarshal.AsSpan(list235); - span65[0] = null; - span65[1] = null; - ref List reference161 = ref span65[2]; - num4 = 3; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span66 = CollectionsMarshal.AsSpan(list236); - span66[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span66[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span66[2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List> list235 = new List>(index3); + CollectionsMarshal.SetCount(list235, index3); + span8 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference161 = ref span8[num3]; + num5 = 3; + List list236 = new List(num5); + CollectionsMarshal.SetCount(list236, num5); + span7 = CollectionsMarshal.AsSpan(list236); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference161 = list236; - span65[3] = null; - span65[4] = null; - span65[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj114.RequiredQuestVariables = list235; reference160 = obj114; - ref QuestStep reference162 = ref span62[2]; + num2++; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Action, 2009502u, new Vector3(95.47571f, -12.619263f, 699.1836f), 622) { Fly = true, @@ -205025,53 +246347,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list237 = new List>(num3); CollectionsMarshal.SetCount(list237, num3); - Span> span67 = CollectionsMarshal.AsSpan(list237); - span67[0] = null; - span67[1] = null; - ref List reference163 = ref span67[2]; + span8 = CollectionsMarshal.AsSpan(list237); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference163 = ref span8[index3]; num4 = 3; List list238 = new List(num4); CollectionsMarshal.SetCount(list238, num4); - Span span68 = CollectionsMarshal.AsSpan(list238); - span68[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span68[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span68[2] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list238); + num5 = 0; + span7[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); reference163 = list238; - span67[3] = null; - span67[4] = null; - span67[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj115.RequiredQuestVariables = list237; reference162 = obj115; - ref QuestStep reference164 = ref span62[3]; + num2++; + ref QuestStep reference164 = ref span3[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Action, 2009500u, new Vector3(-701.2894f, 6.9122925f, 569.9701f), 622) { Fly = true, Land = true, Action = EAction.Wasshoi }; - num3 = 6; - List> list239 = new List>(num3); - CollectionsMarshal.SetCount(list239, num3); - Span> span69 = CollectionsMarshal.AsSpan(list239); - span69[0] = null; - span69[1] = null; - ref List reference165 = ref span69[2]; - num4 = 3; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - Span span70 = CollectionsMarshal.AsSpan(list240); - span70[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span70[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span70[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + index3 = 6; + List> list239 = new List>(index3); + CollectionsMarshal.SetCount(list239, index3); + span8 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference165 = ref span8[num3]; + num5 = 3; + List list240 = new List(num5); + CollectionsMarshal.SetCount(list240, num5); + span7 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span7[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference165 = list240; - span69[3] = null; - span69[4] = null; - span69[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj116.RequiredQuestVariables = list239; reference164 = obj116; obj112.Steps = list232; reference157 = obj112; - ref QuestSequence reference166 = ref span61[3]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -205079,12 +246421,14 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span71 = CollectionsMarshal.AsSpan(list241); - span71[0] = new QuestStep(EInteractionType.None, null, null, 622) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 622) { Mount = false }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205110,21 +246454,26 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "Theo"; questRoot23.Author = list242; - num = 5; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span72 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference167 = ref span72[0]; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205143,7 +246492,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list244; reference167 = obj118; - ref QuestSequence reference168 = ref span72[1]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -205151,7 +246501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -205170,76 +246522,95 @@ public static class AssemblyQuestLoader }; obj119.Steps = list245; reference168 = obj119; - ref QuestSequence reference169 = ref span72[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span73 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference170 = ref span73[0]; + index2 = 5; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 1025815u, new Vector3(580.74304f, -12.40564f, 224.56702f), 622); num3 = 1; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep46.RequiredQuestAcceptedJob = list247; reference170 = questStep46; - ref QuestStep reference171 = ref span73[1]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22740u, ItemCount = 2 }; - num3 = 1; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list248 = new List(index3); + CollectionsMarshal.SetCount(list248, index3); + span4 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj121.RequiredQuestAcceptedJob = list248; reference171 = obj121; - ref QuestStep reference172 = ref span73[2]; + num2++; + ref QuestStep reference172 = ref span3[num2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list249); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep47.RequiredQuestAcceptedJob = list249; - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new GatheredItem + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + span5 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22636u, ItemCount = 2 }; questStep47.ItemsToGather = list250; reference172 = questStep47; - ref QuestStep reference173 = ref span73[3]; + num2++; + ref QuestStep reference173 = ref span3[num2]; QuestStep questStep48 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list251); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep48.RequiredQuestAcceptedJob = list251; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new GatheredItem + index3 = 1; + List list252 = new List(index3); + CollectionsMarshal.SetCount(list252, index3); + span5 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22662u, ItemCount = 2 }; questStep48.ItemsToGather = list252; reference173 = questStep48; - span73[4] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) { Fly = true }; obj120.Steps = list246; reference169 = obj120; - ref QuestSequence reference174 = ref span72[3]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -205247,21 +246618,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) { Fly = true }; obj122.Steps = list253; reference174 = obj122; - ref QuestSequence reference175 = ref span72[4]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205287,13 +246663,16 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list255); + index = 0; + span[index] = "Theo"; questRoot24.Author = list255; - num = 3; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span74 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference176 = ref span74[0]; + index = 3; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + span2 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -205301,7 +246680,9 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205320,15 +246701,18 @@ public static class AssemblyQuestLoader }; obj124.Steps = list257; reference176 = obj124; - ref QuestSequence reference177 = ref span74[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1025817u, new Vector3(544.9148f, 10.034876f, -193.40814f), 622) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025817u, new Vector3(544.9148f, 10.034876f, -193.40814f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -205347,7 +246731,8 @@ public static class AssemblyQuestLoader }; obj125.Steps = list258; reference177 = obj125; - ref QuestSequence reference178 = ref span74[2]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -205355,62 +246740,79 @@ public static class AssemblyQuestLoader num2 = 5; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span75 = CollectionsMarshal.AsSpan(list259); - ref QuestStep reference179 = ref span75[0]; + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + ref QuestStep reference179 = ref span3[index2]; QuestStep questStep49 = new QuestStep(EInteractionType.Interact, 1025818u, new Vector3(543.93823f, 9.964111f, -190.53949f), 622); num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; questStep49.RequiredQuestAcceptedJob = list260; reference179 = questStep49; - ref QuestStep reference180 = ref span75[1]; + index2++; + ref QuestStep reference180 = ref span3[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22741u, ItemCount = 1 }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + span4 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; obj127.RequiredQuestAcceptedJob = list261; reference180 = obj127; - ref QuestStep reference181 = ref span75[2]; + index2++; + ref QuestStep reference181 = ref span3[index2]; QuestStep questStep50 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list262); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep50.RequiredQuestAcceptedJob = list262; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new GatheredItem + index3 = 1; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + span5 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22637u, ItemCount = 1 }; questStep50.ItemsToGather = list263; reference181 = questStep50; - ref QuestStep reference182 = ref span75[3]; + index2++; + ref QuestStep reference182 = ref span3[index2]; QuestStep questStep51 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep51.RequiredQuestAcceptedJob = list264; - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + span5 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 22663u, ItemCount = 1 }; questStep51.ItemsToGather = list265; reference182 = questStep51; - span75[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205436,21 +246838,26 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "Theo"; questRoot25.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span76 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference183 = ref span76[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205469,7 +246876,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list268; reference183 = obj128; - ref QuestSequence reference184 = ref span76[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -205477,23 +246885,30 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); obj129.Steps = list269; reference184 = obj129; - ref QuestSequence reference185 = ref span76[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list270)[0]; + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference186 = ref span3[num2]; QuestStep questStep52 = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice + Span span9 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANNAM602_03124_Q1_000_000"), @@ -205503,7 +246918,8 @@ public static class AssemblyQuestLoader reference186 = questStep52; obj130.Steps = list270; reference185 = obj130; - ref QuestSequence reference187 = ref span76[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -205511,7 +246927,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205537,21 +246955,26 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "Theo"; questRoot26.Author = list273; - num = 5; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span77 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference188 = ref span77[0]; + index = 5; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205570,7 +246993,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list275; reference188 = obj132; - ref QuestSequence reference189 = ref span77[1]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -205578,7 +247002,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -205597,24 +247023,29 @@ public static class AssemblyQuestLoader }; obj133.Steps = list276; reference189 = obj133; - ref QuestSequence reference190 = ref span77[2]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span78 = CollectionsMarshal.AsSpan(list277); - ref QuestStep reference191 = ref span78[0]; + index2 = 5; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference191 = ref span3[num2]; QuestStep questStep53 = new QuestStep(EInteractionType.Interact, 1025821u, new Vector3(95.26196f, 116.01428f, 141.74097f), 622); - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + span4 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; questStep53.RequiredQuestAcceptedJob = list278; reference191 = questStep53; - ref QuestStep reference192 = ref span78[1]; + num2++; + ref QuestStep reference192 = ref span3[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22742u, @@ -205623,50 +247054,64 @@ public static class AssemblyQuestLoader num3 = 1; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; obj135.RequiredQuestAcceptedJob = list279; reference192 = obj135; - ref QuestStep reference193 = ref span78[2]; + num2++; + ref QuestStep reference193 = ref span3[num2]; QuestStep questStep54 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + span4 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span4[num3] = EExtendedClassJob.Miner; questStep54.RequiredQuestAcceptedJob = list280; num3 = 1; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 22638u, ItemCount = 1 }; questStep54.ItemsToGather = list281; reference193 = questStep54; - ref QuestStep reference194 = ref span78[3]; + num2++; + ref QuestStep reference194 = ref span3[num2]; QuestStep questStep55 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + span4 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span4[num3] = EExtendedClassJob.Botanist; questStep55.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 22664u, ItemCount = 1 }; questStep55.ItemsToGather = list283; reference194 = questStep55; - span78[4] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) { Fly = true }; obj134.Steps = list277; reference190 = obj134; - ref QuestSequence reference195 = ref span77[3]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -205674,30 +247119,40 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span79 = CollectionsMarshal.AsSpan(list284); - ref QuestStep reference196 = ref span79[0]; + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + ref QuestStep reference196 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1025823u, new Vector3(-0.19836426f, 2.1311574f, 224.07861f), 622) { Fly = true }; - num3 = 6; - List> list285 = new List>(num3); - CollectionsMarshal.SetCount(list285, num3); - Span> span80 = CollectionsMarshal.AsSpan(list285); - span80[0] = null; - span80[1] = null; - ref List reference197 = ref span80[2]; + index3 = 6; + List> list285 = new List>(index3); + CollectionsMarshal.SetCount(list285, index3); + span8 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference197 = ref span8[num3]; num4 = 1; List list286 = new List(num4); CollectionsMarshal.SetCount(list286, num4); - CollectionsMarshal.AsSpan(list286)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list286); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference197 = list286; - span80[3] = null; - span80[4] = null; - span80[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj137.RequiredQuestVariables = list285; reference196 = obj137; - ref QuestStep reference198 = ref span79[1]; + index2++; + ref QuestStep reference198 = ref span3[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1021491u, new Vector3(199.38953f, 1.9158756f, 41.153564f), 622) { Fly = true @@ -205705,53 +247160,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list287 = new List>(num3); CollectionsMarshal.SetCount(list287, num3); - Span> span81 = CollectionsMarshal.AsSpan(list287); - span81[0] = null; - span81[1] = null; - ref List reference199 = ref span81[2]; - num4 = 1; - List list288 = new List(num4); - CollectionsMarshal.SetCount(list288, num4); - CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference199 = ref span8[index3]; + num5 = 1; + List list288 = new List(num5); + CollectionsMarshal.SetCount(list288, num5); + span7 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference199 = list288; - span81[3] = null; - span81[4] = null; - span81[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj138.RequiredQuestVariables = list287; reference198 = obj138; - ref QuestStep reference200 = ref span79[2]; + index2++; + ref QuestStep reference200 = ref span3[index2]; QuestStep obj139 = new QuestStep(EInteractionType.Interact, 1025835u, new Vector3(-145.92206f, 1.8999462f, 239.73438f), 622) { Fly = true }; - num3 = 6; - List> list289 = new List>(num3); - CollectionsMarshal.SetCount(list289, num3); - Span> span82 = CollectionsMarshal.AsSpan(list289); - span82[0] = null; - span82[1] = null; - ref List reference201 = ref span82[2]; + index3 = 6; + List> list289 = new List>(index3); + CollectionsMarshal.SetCount(list289, index3); + span8 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference201 = ref span8[num3]; num4 = 1; List list290 = new List(num4); CollectionsMarshal.SetCount(list290, num4); - CollectionsMarshal.AsSpan(list290)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list290); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference201 = list290; - span82[3] = null; - span82[4] = null; - span82[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj139.RequiredQuestVariables = list289; reference200 = obj139; obj136.Steps = list284; reference195 = obj136; - ref QuestSequence reference202 = ref span77[4]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205777,13 +247252,16 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list292); + index = 0; + span[index] = "Censored"; questRoot27.Author = list292; - num = 3; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span83 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference203 = ref span83[0]; + index = 3; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + span2 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 @@ -205791,7 +247269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -205809,16 +247289,18 @@ public static class AssemblyQuestLoader }; obj141.Steps = list294; reference203 = obj141; - ref QuestSequence reference204 = ref span83[1]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - Span span84 = CollectionsMarshal.AsSpan(list295); - ref QuestStep reference205 = ref span84[0]; + index2 = 3; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + ref QuestStep reference205 = ref span3[num2]; QuestStep obj143 = new QuestStep(EInteractionType.UseItem, 1025827u, new Vector3(435.32446f, 5.107297f, 18.234497f), 622) { Fly = true, @@ -205840,44 +247322,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list296 = new List>(num3); CollectionsMarshal.SetCount(list296, num3); - Span> span85 = CollectionsMarshal.AsSpan(list296); - span85[0] = null; - ref List reference206 = ref span85[1]; - num4 = 1; - List list297 = new List(num4); - CollectionsMarshal.SetCount(list297, num4); - CollectionsMarshal.AsSpan(list297)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list296); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference206 = ref span8[index3]; + num5 = 1; + List list297 = new List(num5); + CollectionsMarshal.SetCount(list297, num5); + span7 = CollectionsMarshal.AsSpan(list297); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference206 = list297; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj143.RequiredQuestVariables = list296; reference205 = obj143; - ref QuestStep reference207 = ref span84[1]; + num2++; + ref QuestStep reference207 = ref span3[num2]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 1025825u, new Vector3(432.02856f, 20.099669f, -22.38501f), 622) { Fly = true, ItemId = 2002479u }; - num3 = 6; - List> list298 = new List>(num3); - CollectionsMarshal.SetCount(list298, num3); - Span> span86 = CollectionsMarshal.AsSpan(list298); - span86[0] = null; - ref List reference208 = ref span86[1]; + index3 = 6; + List> list298 = new List>(index3); + CollectionsMarshal.SetCount(list298, index3); + span8 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference208 = ref span8[num3]; num4 = 1; List list299 = new List(num4); CollectionsMarshal.SetCount(list299, num4); - CollectionsMarshal.AsSpan(list299)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list299); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference208 = list299; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj144.RequiredQuestVariables = list298; reference207 = obj144; - ref QuestStep reference209 = ref span84[2]; + num2++; + ref QuestStep reference209 = ref span3[num2]; QuestStep obj145 = new QuestStep(EInteractionType.UseItem, 1025826u, new Vector3(411.58154f, 2.814907f, -44.327515f), 622) { Fly = true, @@ -205886,23 +247386,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list300 = new List>(num3); CollectionsMarshal.SetCount(list300, num3); - Span> span87 = CollectionsMarshal.AsSpan(list300); - span87[0] = null; - ref List reference210 = ref span87[1]; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - CollectionsMarshal.AsSpan(list301)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference210 = ref span8[index3]; + num5 = 1; + List list301 = new List(num5); + CollectionsMarshal.SetCount(list301, num5); + span7 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference210 = list301; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj145.RequiredQuestVariables = list300; reference209 = obj145; obj142.Steps = list295; reference204 = obj142; - ref QuestSequence reference211 = ref span83[2]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -205910,7 +247419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205936,21 +247447,26 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list303); + index = 0; + span[index] = "Theo"; questRoot28.Author = list303; - num = 4; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span88 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference212 = ref span88[0]; + index = 4; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + span2 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205969,7 +247485,8 @@ public static class AssemblyQuestLoader }; obj147.Steps = list305; reference212 = obj147; - ref QuestSequence reference213 = ref span88[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -205977,7 +247494,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1025828u, new Vector3(-55.985413f, 114.904976f, -19.089111f), 622) + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025828u, new Vector3(-55.985413f, 114.904976f, -19.089111f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -205996,24 +247515,29 @@ public static class AssemblyQuestLoader }; obj148.Steps = list306; reference213 = obj148; - ref QuestSequence reference214 = ref span88[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span89 = CollectionsMarshal.AsSpan(list307); - ref QuestStep reference215 = ref span89[0]; + index2 = 5; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference215 = ref span3[num2]; QuestStep questStep56 = new QuestStep(EInteractionType.Interact, 1025832u, new Vector3(-57.1756f, 114.88513f, -16.464539f), 622); - num3 = 1; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + span4 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; questStep56.RequiredQuestAcceptedJob = list308; reference215 = questStep56; - ref QuestStep reference216 = ref span89[1]; + num2++; + ref QuestStep reference216 = ref span3[num2]; QuestStep obj150 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22744u, @@ -206022,50 +247546,64 @@ public static class AssemblyQuestLoader num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list309); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; obj150.RequiredQuestAcceptedJob = list309; reference216 = obj150; - ref QuestStep reference217 = ref span89[2]; + num2++; + ref QuestStep reference217 = ref span3[num2]; QuestStep questStep57 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + span4 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span4[num3] = EExtendedClassJob.Miner; questStep57.RequiredQuestAcceptedJob = list310; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 22640u, ItemCount = 1 }; questStep57.ItemsToGather = list311; reference217 = questStep57; - ref QuestStep reference218 = ref span89[3]; + num2++; + ref QuestStep reference218 = ref span3[num2]; QuestStep questStep58 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list312 = new List(index3); + CollectionsMarshal.SetCount(list312, index3); + span4 = CollectionsMarshal.AsSpan(list312); + num3 = 0; + span4[num3] = EExtendedClassJob.Botanist; questStep58.RequiredQuestAcceptedJob = list312; num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 22666u, ItemCount = 1 }; questStep58.ItemsToGather = list313; reference218 = questStep58; - span89[4] = new QuestStep(EInteractionType.Interact, 1025831u, new Vector3(-50.980408f, 114.90497f, -23.178528f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025831u, new Vector3(-50.980408f, 114.90497f, -23.178528f), 622) { Fly = true }; obj149.Steps = list307; reference214 = obj149; - ref QuestSequence reference219 = ref span88[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue @@ -206073,7 +247611,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206099,21 +247639,26 @@ public static class AssemblyQuestLoader num = 1; List list315 = new List(num); CollectionsMarshal.SetCount(list315, num); - CollectionsMarshal.AsSpan(list315)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list315); + index = 0; + span[index] = "Theo"; questRoot29.Author = list315; - num = 4; - List list316 = new List(num); - CollectionsMarshal.SetCount(list316, num); - Span span90 = CollectionsMarshal.AsSpan(list316); - ref QuestSequence reference220 = ref span90[0]; + index = 4; + List list316 = new List(index); + CollectionsMarshal.SetCount(list316, index); + span2 = CollectionsMarshal.AsSpan(list316); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206132,7 +247677,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list317; reference220 = obj152; - ref QuestSequence reference221 = ref span90[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 @@ -206140,30 +247686,37 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1025858u, new Vector3(-534.7219f, 66.33932f, -409.75055f), 622) + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025858u, new Vector3(-534.7219f, 66.33932f, -409.75055f), 622) { Fly = true }; obj153.Steps = list318; reference221 = obj153; - ref QuestSequence reference222 = ref span90[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span91 = CollectionsMarshal.AsSpan(list319); - ref QuestStep reference223 = ref span91[0]; + index2 = 5; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep questStep59 = new QuestStep(EInteractionType.Interact, 1025816u, new Vector3(-535.3323f, 66.453f, -412.71082f), 622); - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span4 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; questStep59.RequiredQuestAcceptedJob = list320; reference223 = questStep59; - ref QuestStep reference224 = ref span91[1]; + num2++; + ref QuestStep reference224 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22745u, @@ -206172,44 +247725,57 @@ public static class AssemblyQuestLoader num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; obj155.RequiredQuestAcceptedJob = list321; reference224 = obj155; - ref QuestStep reference225 = ref span91[2]; + num2++; + ref QuestStep reference225 = ref span3[num2]; QuestStep questStep60 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - CollectionsMarshal.AsSpan(list322)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + span4 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span4[num3] = EExtendedClassJob.Miner; questStep60.RequiredQuestAcceptedJob = list322; num3 = 1; List list323 = new List(num3); CollectionsMarshal.SetCount(list323, num3); - CollectionsMarshal.AsSpan(list323)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list323); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 22641u, ItemCount = 1 }; questStep60.ItemsToGather = list323; reference225 = questStep60; - ref QuestStep reference226 = ref span91[3]; + num2++; + ref QuestStep reference226 = ref span3[num2]; QuestStep questStep61 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - CollectionsMarshal.AsSpan(list324)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list324 = new List(index3); + CollectionsMarshal.SetCount(list324, index3); + span4 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span4[num3] = EExtendedClassJob.Botanist; questStep61.RequiredQuestAcceptedJob = list324; num3 = 1; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - CollectionsMarshal.AsSpan(list325)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 22667u, ItemCount = 1 }; questStep61.ItemsToGather = list325; reference226 = questStep61; - span91[4] = new QuestStep(EInteractionType.Interact, 1021784u, new Vector3(-750.05725f, 127.240875f, 143.72461f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021784u, new Vector3(-750.05725f, 127.240875f, 143.72461f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206228,7 +247794,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list319; reference222 = obj154; - ref QuestSequence reference227 = ref span90[3]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -206236,7 +247803,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206262,21 +247831,26 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list327); + index = 0; + span[index] = "Theo"; questRoot30.Author = list327; - num = 5; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - Span span92 = CollectionsMarshal.AsSpan(list328); - ref QuestSequence reference228 = ref span92[0]; + index = 5; + List list328 = new List(index); + CollectionsMarshal.SetCount(list328, index); + span2 = CollectionsMarshal.AsSpan(list328); + num = 0; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206295,7 +247869,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list329; reference228 = obj157; - ref QuestSequence reference229 = ref span92[1]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -206303,7 +247878,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -206322,24 +247899,29 @@ public static class AssemblyQuestLoader }; obj158.Steps = list330; reference229 = obj158; - ref QuestSequence reference230 = ref span92[2]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - Span span93 = CollectionsMarshal.AsSpan(list331); - ref QuestStep reference231 = ref span93[0]; + index2 = 5; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference231 = ref span3[num2]; QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 1025841u, new Vector3(241.77905f, 2.4261475f, 14.419739f), 622); - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + span4 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span4[num3] = EExtendedClassJob.DoH; questStep62.RequiredQuestAcceptedJob = list332; reference231 = questStep62; - ref QuestStep reference232 = ref span93[1]; + num2++; + ref QuestStep reference232 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 23173u, @@ -206348,50 +247930,64 @@ public static class AssemblyQuestLoader num3 = 1; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - CollectionsMarshal.AsSpan(list333)[0] = EExtendedClassJob.DoH; + span4 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span4[index3] = EExtendedClassJob.DoH; obj160.RequiredQuestAcceptedJob = list333; reference232 = obj160; - ref QuestStep reference233 = ref span93[2]; + num2++; + ref QuestStep reference233 = ref span3[num2]; QuestStep questStep63 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - CollectionsMarshal.AsSpan(list334)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list334 = new List(index3); + CollectionsMarshal.SetCount(list334, index3); + span4 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span4[num3] = EExtendedClassJob.Miner; questStep63.RequiredQuestAcceptedJob = list334; num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 23169u, ItemCount = 1 }; questStep63.ItemsToGather = list335; reference233 = questStep63; - ref QuestStep reference234 = ref span93[3]; + num2++; + ref QuestStep reference234 = ref span3[num2]; QuestStep questStep64 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + span4 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span4[num3] = EExtendedClassJob.Botanist; questStep64.RequiredQuestAcceptedJob = list336; num3 = 1; List list337 = new List(num3); CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = new GatheredItem + span5 = CollectionsMarshal.AsSpan(list337); + index3 = 0; + span5[index3] = new GatheredItem { ItemId = 23170u, ItemCount = 1 }; questStep64.ItemsToGather = list337; reference234 = questStep64; - span93[4] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) { Fly = true }; obj159.Steps = list331; reference230 = obj159; - ref QuestSequence reference235 = ref span92[3]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 3 @@ -206399,8 +247995,9 @@ public static class AssemblyQuestLoader num2 = 4; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span94 = CollectionsMarshal.AsSpan(list338); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.48796f, 114.90777f, 9.264265f), 622) + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.48796f, 114.90777f, 9.264265f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -206411,62 +248008,86 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference236 = ref span94[1]; + index2++; + ref QuestStep reference236 = ref span3[index2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1025836u, new Vector3(46.158447f, 114.904976f, 10.849121f), 622) { Fly = true }; - num3 = 6; - List list339 = new List(num3); - CollectionsMarshal.SetCount(list339, num3); - Span span95 = CollectionsMarshal.AsSpan(list339); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list339 = new List(index3); + CollectionsMarshal.SetCount(list339, index3); + span7 = CollectionsMarshal.AsSpan(list339); + 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); obj162.CompletionQuestVariablesFlags = list339; reference236 = obj162; - ref QuestStep reference237 = ref span94[2]; + index2++; + ref QuestStep reference237 = ref span3[index2]; QuestStep questStep65 = new QuestStep(EInteractionType.Interact, 1025838u, new Vector3(46.12793f, 114.904976f, 8.132996f), 622); num3 = 6; List list340 = new List(num3); CollectionsMarshal.SetCount(list340, num3); - Span span96 = CollectionsMarshal.AsSpan(list340); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list340); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep65.CompletionQuestVariablesFlags = list340; reference237 = questStep65; - ref QuestStep reference238 = ref span94[3]; + index2++; + ref QuestStep reference238 = ref span3[index2]; QuestStep questStep66 = new QuestStep(EInteractionType.Interact, 1025840u, new Vector3(43.289795f, 114.90497f, 7.9193726f), 622); - num3 = 6; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - Span span97 = CollectionsMarshal.AsSpan(list341); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list341 = new List(index3); + CollectionsMarshal.SetCount(list341, index3); + span7 = CollectionsMarshal.AsSpan(list341); + 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); questStep66.CompletionQuestVariablesFlags = list341; reference238 = questStep66; obj161.Steps = list338; reference235 = obj161; - ref QuestSequence reference239 = ref span92[4]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206492,13 +248113,16 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list343); + index = 0; + span[index] = "liza"; questRoot31.Author = list343; - num = 2; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span98 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference240 = ref span98[0]; + index = 2; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + span2 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -206506,7 +248130,9 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025965u, new Vector3(-52.0791f, -2.9f, -64.4389f), 628) + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025965u, new Vector3(-52.0791f, -2.9f, -64.4389f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -206517,15 +248143,18 @@ public static class AssemblyQuestLoader }; obj164.Steps = list345; reference240 = obj164; - ref QuestSequence reference241 = ref span98[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -206538,13 +248167,16 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list347); + index = 0; + span[index] = "liza"; questRoot32.Author = list347; - num = 5; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span99 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference242 = ref span99[0]; + index = 5; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + span2 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -206552,34 +248184,41 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613); + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613); obj166.Steps = list349; reference242 = obj166; - ref QuestSequence reference243 = ref span99[1]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span100 = CollectionsMarshal.AsSpan(list350); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + index2 = 3; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span100[2] = new QuestStep(EInteractionType.Interact, 1025966u, new Vector3(-10.51355f, -187.08374f, -95.07898f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025966u, new Vector3(-10.51355f, -187.08374f, -95.07898f), 613) { Fly = true }; obj167.Steps = list350; reference243 = obj167; - ref QuestSequence reference244 = ref span99[2]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -206587,7 +248226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2009560u, new Vector3(855.1002f, 1.1749268f, 876.0051f), 613) + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009560u, new Vector3(855.1002f, 1.1749268f, 876.0051f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -206598,15 +248239,18 @@ public static class AssemblyQuestLoader }; obj168.Steps = list351; reference244 = obj168; - ref QuestSequence reference245 = ref span99[3]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1025968u, new Vector3(35.477173f, 5.9422755f, -143.63324f), 628) + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025968u, new Vector3(35.477173f, 5.9422755f, -143.63324f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -206617,7 +248261,8 @@ public static class AssemblyQuestLoader }; obj169.Steps = list352; reference245 = obj169; - ref QuestSequence reference246 = ref span99[4]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -206625,7 +248270,9 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -206638,21 +248285,26 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list354); + index = 0; + span[index] = "liza"; questRoot33.Author = list354; - num = 3; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span101 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference247 = ref span101[0]; + index = 3; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + span2 = CollectionsMarshal.AsSpan(list355); + num = 0; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + span3 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -206665,7 +248317,8 @@ public static class AssemblyQuestLoader }; obj171.Steps = list356; reference247 = obj171; - ref QuestSequence reference248 = ref span101[1]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -206673,18 +248326,23 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1024793u, new Vector3(66.666626f, -7.579447E-09f, -59.67804f), 759); + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024793u, new Vector3(66.666626f, -7.579447E-09f, -59.67804f), 759); obj172.Steps = list357; reference248 = obj172; - ref QuestSequence reference249 = ref span101[2]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759); + index2 = 1; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span3 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759); obj173.Steps = list358; reference249 = obj173; questRoot33.QuestSequence = list355; @@ -206694,13 +248352,16 @@ public static class AssemblyQuestLoader num = 1; List list359 = new List(num); CollectionsMarshal.SetCount(list359, num); - CollectionsMarshal.AsSpan(list359)[0] = "Thaksin"; + span = CollectionsMarshal.AsSpan(list359); + index = 0; + span[index] = "Thaksin"; questRoot34.Author = list359; - num = 4; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - Span span102 = CollectionsMarshal.AsSpan(list360); - ref QuestSequence reference250 = ref span102[0]; + index = 4; + List list360 = new List(index); + CollectionsMarshal.SetCount(list360, index); + span2 = CollectionsMarshal.AsSpan(list360); + num = 0; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -206708,19 +248369,23 @@ public static class AssemblyQuestLoader num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026200u, new Vector3(26.901611f, 0f, 36.362183f), 635); + span3 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026200u, new Vector3(26.901611f, 0f, 36.362183f), 635); obj174.Steps = list361; reference250 = obj174; - ref QuestSequence reference251 = ref span102[1]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - Span span103 = CollectionsMarshal.AsSpan(list362); - ref QuestStep reference252 = ref span103[0]; + index2 = 2; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + ref QuestStep reference252 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-516.5388f, 146.04834f, -357.0811f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -206735,18 +248400,22 @@ public static class AssemblyQuestLoader num3 = 1; List list363 = new List(num3); CollectionsMarshal.SetCount(list363, num3); - CollectionsMarshal.AsSpan(list363)[0] = 399; + span6 = CollectionsMarshal.AsSpan(list363); + index3 = 0; + span6[index3] = 399; skipAetheryteCondition2.InTerritory = list363; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; obj176.SkipConditions = skipConditions4; reference252 = obj176; - span103[1] = new QuestStep(EInteractionType.Interact, 1026201u, new Vector3(-617.2427f, 146.86842f, 62.150024f), 399) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026201u, new Vector3(-617.2427f, 146.86842f, 62.150024f), 399) { Fly = true }; obj175.Steps = list362; reference251 = obj175; - ref QuestSequence reference253 = ref span102[2]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -206754,7 +248423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -206763,15 +248434,18 @@ public static class AssemblyQuestLoader }; obj177.Steps = list364; reference253 = obj177; - ref QuestSequence reference254 = ref span102[3]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026202u, new Vector3(-611.6274f, 146.86842f, 57.87744f), 399); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026202u, new Vector3(-611.6274f, 146.86842f, 57.87744f), 399); obj178.Steps = list365; reference254 = obj178; questRoot34.QuestSequence = list360; @@ -206781,13 +248455,16 @@ public static class AssemblyQuestLoader num = 1; List list366 = new List(num); CollectionsMarshal.SetCount(list366, num); - CollectionsMarshal.AsSpan(list366)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list366); + index = 0; + span[index] = "JerryWester"; questRoot35.Author = list366; - num = 5; - List list367 = new List(num); - CollectionsMarshal.SetCount(list367, num); - Span span104 = CollectionsMarshal.AsSpan(list367); - ref QuestSequence reference255 = ref span104[0]; + index = 5; + List list367 = new List(index); + CollectionsMarshal.SetCount(list367, index); + span2 = CollectionsMarshal.AsSpan(list367); + num = 0; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -206795,28 +248472,34 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) { StopDistance = 5f }; obj179.Steps = list368; reference255 = obj179; - ref QuestSequence reference256 = ref span104[1]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1026253u, new Vector3(650.87354f, 70f, 546.89856f), 621) + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + span3 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026253u, new Vector3(650.87354f, 70f, 546.89856f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj180.Steps = list369; reference256 = obj180; - ref QuestSequence reference257 = ref span104[2]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 @@ -206824,24 +248507,30 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1026256u, new Vector3(648.1575f, 70f, 548.24133f), 621); + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026256u, new Vector3(648.1575f, 70f, 548.24133f), 621); obj181.Steps = list370; reference257 = obj181; - ref QuestSequence reference258 = ref span104[3]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1026257u, new Vector3(-7.950012f, -3.2583127E-12f, -16.31195f), 759) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026257u, new Vector3(-7.950012f, -3.2583127E-12f, -16.31195f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj182.Steps = list371; reference258 = obj182; - ref QuestSequence reference259 = ref span104[4]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -206849,23 +248538,27 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span105 = CollectionsMarshal.AsSpan(list372); - ref QuestStep reference260 = ref span105[0]; + span3 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + ref QuestStep reference260 = ref span3[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 }; - num3 = 1; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice + index3 = 1; + List list373 = new List(index3); + CollectionsMarshal.SetCount(list373, index3); + span9 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE101_03143_EVENTAREA_WARP_100_004") }; obj184.DialogueChoices = list373; reference260 = obj184; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj183.Steps = list372; reference259 = obj183; questRoot35.QuestSequence = list367; @@ -206875,24 +248568,30 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list374); + index = 0; + span[index] = "JerryWester"; questRoot36.Author = list374; - num = 5; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span106 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference261 = ref span106[0]; + index = 4; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + span2 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj185.Steps = list376; reference261 = obj185; - ref QuestSequence reference262 = ref span106[1]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 1 @@ -206900,22 +248599,27 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) + span3 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj186.Steps = list377; reference262 = obj186; - ref QuestSequence reference263 = ref span106[2]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + index2 = 1; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + span3 = CollectionsMarshal.AsSpan(list378); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -206925,11 +248629,8 @@ public static class AssemblyQuestLoader }; obj187.Steps = list378; reference263 = obj187; - span106[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference264 = ref span106[4]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -206937,7 +248638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) + span3 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) { StopDistance = 7f }; @@ -206950,21 +248653,26 @@ public static class AssemblyQuestLoader num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - CollectionsMarshal.AsSpan(list380)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list380); + index = 0; + span[index] = "JerryWester"; questRoot37.Author = list380; - num = 5; - List list381 = new List(num); - CollectionsMarshal.SetCount(list381, num); - Span span107 = CollectionsMarshal.AsSpan(list381); - ref QuestSequence reference265 = ref span107[0]; + index = 5; + List list381 = new List(index); + CollectionsMarshal.SetCount(list381, index); + span2 = CollectionsMarshal.AsSpan(list381); + num = 0; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + span3 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -206978,7 +248686,8 @@ public static class AssemblyQuestLoader }; obj189.Steps = list382; reference265 = obj189; - ref QuestSequence reference266 = ref span107[1]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -206986,7 +248695,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - ref QuestStep reference267 = ref CollectionsMarshal.AsSpan(list383)[0]; + span3 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + ref QuestStep reference267 = ref span3[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -206999,7 +248710,9 @@ public static class AssemblyQuestLoader num3 = 1; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - CollectionsMarshal.AsSpan(list384)[0] = new DialogueChoice + span9 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE103_03145_EVENTAREA_WARP_100_004") @@ -207008,21 +248721,25 @@ public static class AssemblyQuestLoader reference267 = obj191; obj190.Steps = list383; reference266 = obj190; - ref QuestSequence reference268 = ref span107[2]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744) + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744) { StopDistance = 7f }; obj192.Steps = list385; reference268 = obj192; - ref QuestSequence reference269 = ref span107[3]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 @@ -207030,12 +248747,14 @@ public static class AssemblyQuestLoader num2 = 2; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span108 = CollectionsMarshal.AsSpan(list386); - span108[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span108[1] = new QuestStep(EInteractionType.Interact, 1026276u, new Vector3(119.035645f, -4.1787133f, 65.384766f), 759) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026276u, new Vector3(119.035645f, -4.1787133f, 65.384766f), 759) { AethernetShortcut = new AethernetShortcut { @@ -207045,16 +248764,18 @@ public static class AssemblyQuestLoader }; obj193.Steps = list386; reference269 = obj193; - ref QuestSequence reference270 = ref span107[4]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - Span span109 = CollectionsMarshal.AsSpan(list387); - ref QuestStep reference271 = ref span109[0]; + index2 = 2; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + span3 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + ref QuestStep reference271 = ref span3[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -207064,17 +248785,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.DomanEnclave } }; - num3 = 1; - List list388 = new List(num3); - CollectionsMarshal.SetCount(list388, num3); - CollectionsMarshal.AsSpan(list388)[0] = new DialogueChoice + index3 = 1; + List list388 = new List(index3); + CollectionsMarshal.SetCount(list388, index3); + span9 = CollectionsMarshal.AsSpan(list388); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE103_03145_EVENTAREA_WARP_100_004") }; obj195.DialogueChoices = list388; reference271 = obj195; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj194.Steps = list387; reference270 = obj194; questRoot37.QuestSequence = list381; @@ -207084,13 +248808,16 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list389); + index = 0; + span[index] = "JerryWester"; questRoot38.Author = list389; - num = 4; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span110 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference272 = ref span110[0]; + index = 4; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + span2 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -207098,12 +248825,16 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list391)[0]; + span3 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + ref QuestStep reference273 = ref span3[index2]; QuestStep questStep67 = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); num3 = 1; List list392 = new List(num3); CollectionsMarshal.SetCount(list392, num3); - CollectionsMarshal.AsSpan(list392)[0] = new DialogueChoice + span9 = CollectionsMarshal.AsSpan(list392); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDE104_03146_Q1_000_000"), @@ -207113,22 +248844,26 @@ public static class AssemblyQuestLoader reference273 = questStep67; obj196.Steps = list391; reference272 = obj196; - ref QuestSequence reference274 = ref span110[1]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Interact, 1026280u, new Vector3(561.4862f, -19.50564f, 409.17065f), 622) + index2 = 1; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + span3 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026280u, new Vector3(561.4862f, -19.50564f, 409.17065f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj197.Steps = list393; reference274 = obj197; - ref QuestSequence reference275 = ref span110[2]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -207136,21 +248871,26 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 1026281u, new Vector3(561.7302f, -19.30375f, 271.99194f), 622) + span3 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026281u, new Vector3(561.7302f, -19.30375f, 271.99194f), 622) { StopDistance = 6f }; obj198.Steps = list394; reference275 = obj198; - ref QuestSequence reference276 = ref span110[3]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + span3 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = true }; @@ -207163,13 +248903,16 @@ public static class AssemblyQuestLoader num = 1; List list396 = new List(num); CollectionsMarshal.SetCount(list396, num); - CollectionsMarshal.AsSpan(list396)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list396); + index = 0; + span[index] = "JerryWester"; questRoot39.Author = list396; - num = 7; - List list397 = new List(num); - CollectionsMarshal.SetCount(list397, num); - Span span111 = CollectionsMarshal.AsSpan(list397); - ref QuestSequence reference277 = ref span111[0]; + index = 6; + List list397 = new List(index); + CollectionsMarshal.SetCount(list397, index); + span2 = CollectionsMarshal.AsSpan(list397); + num = 0; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -207177,27 +248920,33 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622) + span3 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622) { StopDistance = 5f }; obj200.Steps = list398; reference277 = obj200; - ref QuestSequence reference278 = ref span111[1]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) { Fly = true }; obj201.Steps = list399; reference278 = obj201; - ref QuestSequence reference279 = ref span111[2]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -207205,30 +248954,36 @@ public static class AssemblyQuestLoader num2 = 2; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span112 = CollectionsMarshal.AsSpan(list400); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.77588f, 40.425697f, -475.4643f), 622) + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.77588f, 40.425697f, -475.4643f), 622) { Fly = true }; - span112[1] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj202.Steps = list400; reference279 = obj202; - ref QuestSequence reference280 = ref span111[3]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj203.Steps = list401; reference280 = obj203; - ref QuestSequence reference281 = ref span111[4]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 4 @@ -207236,34 +248991,37 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - ref QuestStep reference282 = ref CollectionsMarshal.AsSpan(list402)[0]; + span3 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + ref QuestStep reference282 = ref span3[index2]; QuestStep obj205 = new QuestStep(EInteractionType.SinglePlayerDuty, 2009591u, new Vector3(-210.34564f, 2.6397705f, 519.27966f), 622) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list403 = new List(num3); - CollectionsMarshal.SetCount(list403, num3); - CollectionsMarshal.AsSpan(list403)[0] = "(Magnai) Keeps focussing the boss instead of the axes, thus getting killed by the AOEs"; + index3 = 1; + List list403 = new List(index3); + CollectionsMarshal.SetCount(list403, index3); + span = CollectionsMarshal.AsSpan(list403); + num3 = 0; + span[num3] = "(Magnai) Keeps focussing the boss instead of the axes, thus getting killed by the AOEs"; singlePlayerDutyOptions.Notes = list403; obj205.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference282 = obj205; obj204.Steps = list402; reference281 = obj204; - span111[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference283 = ref span111[6]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list404 = new List(num2); - CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + index2 = 1; + List list404 = new List(index2); + CollectionsMarshal.SetCount(list404, index2); + span3 = CollectionsMarshal.AsSpan(list404); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { StopDistance = 5f }; @@ -207276,13 +249034,16 @@ public static class AssemblyQuestLoader num = 1; List list405 = new List(num); CollectionsMarshal.SetCount(list405, num); - CollectionsMarshal.AsSpan(list405)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list405); + index = 0; + span[index] = "JerryWester"; questRoot40.Author = list405; - num = 7; - List list406 = new List(num); - CollectionsMarshal.SetCount(list406, num); - Span span113 = CollectionsMarshal.AsSpan(list406); - ref QuestSequence reference284 = ref span113[0]; + index = 7; + List list406 = new List(index); + CollectionsMarshal.SetCount(list406, index); + span2 = CollectionsMarshal.AsSpan(list406); + num = 0; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -207290,24 +249051,30 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622); + span3 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622); obj207.Steps = list407; reference284 = obj207; - ref QuestSequence reference285 = ref span113[1]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span3 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) { Fly = true }; obj208.Steps = list408; reference285 = obj208; - ref QuestSequence reference286 = ref span113[2]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -207315,19 +249082,23 @@ public static class AssemblyQuestLoader num2 = 1; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1026239u, new Vector3(348.53125f, 118.662384f, -691.92035f), 622); + span3 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026239u, new Vector3(348.53125f, 118.662384f, -691.92035f), 622); obj209.Steps = list409; reference286 = obj209; - ref QuestSequence reference287 = ref span113[3]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - Span span114 = CollectionsMarshal.AsSpan(list410); - ref QuestStep reference288 = ref span114[0]; + index2 = 2; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + span3 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + ref QuestStep reference288 = ref span3[num2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -207336,17 +249107,21 @@ public static class AssemblyQuestLoader num3 = 1; List list411 = new List(num3); CollectionsMarshal.SetCount(list411, num3); - CollectionsMarshal.AsSpan(list411)[0] = new DialogueChoice + span9 = CollectionsMarshal.AsSpan(list411); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE106_03148_EVENTAREA_WARP_100_004") }; obj211.DialogueChoices = list411; reference288 = obj211; - span114[1] = new QuestStep(EInteractionType.Interact, 1026469u, new Vector3(-1.8463745f, 0.02109136f, -1.4191895f), 744); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026469u, new Vector3(-1.8463745f, 0.02109136f, -1.4191895f), 744); obj210.Steps = list410; reference287 = obj210; - ref QuestSequence reference289 = ref span113[4]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 4 @@ -207354,27 +249129,34 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1026241u, new Vector3(747.00525f, 69.99995f, 526.36f), 621) + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026241u, new Vector3(747.00525f, 69.99995f, 526.36f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj212.Steps = list412; reference289 = obj212; - ref QuestSequence reference290 = ref span113[5]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - ref QuestStep reference291 = ref CollectionsMarshal.AsSpan(list413)[0]; + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + ref QuestStep reference291 = ref span3[num2]; QuestStep questStep68 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621); - num3 = 1; - List list414 = new List(num3); - CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = new DialogueChoice + index3 = 1; + List list414 = new List(index3); + CollectionsMarshal.SetCount(list414, index3); + span9 = CollectionsMarshal.AsSpan(list414); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE106_03148_Q1_000_000") @@ -207383,7 +249165,8 @@ public static class AssemblyQuestLoader reference291 = questStep68; obj213.Steps = list413; reference290 = obj213; - ref QuestSequence reference292 = ref span113[6]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -207391,7 +249174,9 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) + span3 = CollectionsMarshal.AsSpan(list415); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) { StopDistance = 5f }; @@ -207404,21 +249189,26 @@ public static class AssemblyQuestLoader num = 1; List list416 = new List(num); CollectionsMarshal.SetCount(list416, num); - CollectionsMarshal.AsSpan(list416)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list416); + index = 0; + span[index] = "JerryWester"; questRoot41.Author = list416; - num = 5; - List list417 = new List(num); - CollectionsMarshal.SetCount(list417, num); - Span span115 = CollectionsMarshal.AsSpan(list417); - ref QuestSequence reference293 = ref span115[0]; + index = 5; + List list417 = new List(index); + CollectionsMarshal.SetCount(list417, index); + span2 = CollectionsMarshal.AsSpan(list417); + num = 0; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) + index2 = 1; + List list418 = new List(index2); + CollectionsMarshal.SetCount(list418, index2); + span3 = CollectionsMarshal.AsSpan(list418); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -207432,7 +249222,8 @@ public static class AssemblyQuestLoader }; obj215.Steps = list418; reference293 = obj215; - ref QuestSequence reference294 = ref span115[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -207440,18 +249231,23 @@ public static class AssemblyQuestLoader num2 = 1; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.Interact, 1026247u, new Vector3(-9.201294f, 0f, -5.44751f), 351); + span3 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026247u, new Vector3(-9.201294f, 0f, -5.44751f), 351); obj216.Steps = list419; reference294 = obj216; - ref QuestSequence reference295 = ref span115[2]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128) + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + span3 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -207462,7 +249258,8 @@ public static class AssemblyQuestLoader }; obj217.Steps = list420; reference295 = obj217; - ref QuestSequence reference296 = ref span115[3]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 3 @@ -207470,24 +249267,29 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128); + span3 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128); obj218.Steps = list421; reference296 = obj218; - ref QuestSequence reference297 = ref span115[4]; + num++; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - Span span116 = CollectionsMarshal.AsSpan(list422); - span116[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + span3 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span116[1] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj219.Steps = list422; reference297 = obj219; questRoot41.QuestSequence = list417; @@ -207501,13 +249303,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -207515,66 +249320,91 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -207582,24 +249412,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628); obj3.Steps = list8; reference6 = obj3; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1026349u, new Vector3(62.18042f, 5.991543f, -106.126526f), 628) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026349u, new Vector3(62.18042f, 5.991543f, -106.126526f), 628) { StopDistance = 5f }; obj4.Steps = list9; reference7 = obj4; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -207607,24 +249443,30 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) { DisableNavmesh = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1026457u, new Vector3(62.271973f, -8.0999975f, -225.2995f), 628); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026457u, new Vector3(62.271973f, -8.0999975f, -225.2995f), 628); obj5.Steps = list10; reference8 = obj5; - ref QuestSequence reference9 = ref span[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026353u, new Vector3(45.456543f, -7.470526f, -261.34125f), 628) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026353u, new Vector3(45.456543f, -7.470526f, -261.34125f), 628) { NextQuestId = new QuestId(3151) }; @@ -207637,13 +249479,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "liza"; questRoot2.Author = list12; - num = 6; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span7 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span7[0]; + index = 6; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -207651,21 +249496,26 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026351u, new Vector3(45.090332f, -7.469796f, -262.7146f), 628) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026351u, new Vector3(45.090332f, -7.469796f, -262.7146f), 628) { StopDistance = 5f }; obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span7[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1026355u, new Vector3(841.27563f, 1.1792023f, 861.90576f), 613) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026355u, new Vector3(841.27563f, 1.1792023f, 861.90576f), 613) { Mount = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -207677,7 +249527,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span7[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -207685,27 +249536,33 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) { Fly = true }; obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span7[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1026366u, new Vector3(433.73767f, 30.29471f, 780.69727f), 613) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026366u, new Vector3(433.73767f, 30.29471f, 780.69727f), 613) { Fly = true }; obj10.Steps = list17; reference13 = obj10; - ref QuestSequence reference14 = ref span7[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -207713,18 +249570,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1026367u, new Vector3(297.32202f, 0.35283074f, 470.51184f), 613); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026367u, new Vector3(297.32202f, 0.35283074f, 470.51184f), 613); obj11.Steps = list18; reference14 = obj11; - ref QuestSequence reference15 = ref span7[5]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -207743,13 +249605,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span8[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -207757,19 +249622,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj13.Steps = list22; reference16 = obj13; - ref QuestSequence reference17 = ref span8[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - span9[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + index2 = 2; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -207780,10 +249649,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj14.Steps = list23; reference17 = obj14; - ref QuestSequence reference18 = ref span8[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -207791,18 +249662,23 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1026204u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026204u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); obj15.Steps = list24; reference18 = obj15; - ref QuestSequence reference19 = ref span8[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Duty, null, null, 764) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 764) { DutyOptions = new DutyOptions { @@ -207811,11 +249687,13 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - span8[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference20 = ref span8[5]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 @@ -207823,18 +249701,23 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj17.Steps = list26; reference20 = obj17; - ref QuestSequence reference21 = ref span8[6]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3165) @@ -207848,13 +249731,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "CryoTechnic"; questRoot4.Author = list28; - num = 4; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span10 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference22 = ref span10[0]; + index = 4; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -207862,7 +249748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -207875,17 +249763,20 @@ public static class AssemblyQuestLoader }; obj19.Steps = list30; reference22 = obj19; - ref QuestSequence reference23 = ref span10[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span11 = CollectionsMarshal.AsSpan(list31); - span11[0] = new QuestStep(EInteractionType.Interact, 1025757u, new Vector3(65.35437f, -8.7688285E-08f, -67.91791f), 759); - span11[1] = new QuestStep(EInteractionType.Interact, 1026314u, new Vector3(-92.02722f, 1.674677f, 145.09802f), 759) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025757u, new Vector3(65.35437f, -8.7688285E-08f, -67.91791f), 759); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026314u, new Vector3(-92.02722f, 1.674677f, 145.09802f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -207896,7 +249787,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list31; reference23 = obj20; - ref QuestSequence reference24 = ref span10[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -207904,7 +249796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1025755u, new Vector3(16.850666f, -5.9723854E-05f, -84.3385f), 759) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025755u, new Vector3(16.850666f, -5.9723854E-05f, -84.3385f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -207915,15 +249809,18 @@ public static class AssemblyQuestLoader }; obj21.Steps = list32; reference24 = obj21; - ref QuestSequence reference25 = ref span10[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26581275f, 28.915894f), 759) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26581275f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -207941,13 +249838,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot5.Author = list34; - num = 6; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span12 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span12[0]; + index = 6; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -207955,27 +249855,34 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span12[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR301_03154_Q2_000_051"), @@ -207985,11 +249892,13 @@ public static class AssemblyQuestLoader reference28 = obj25; obj24.Steps = list37; reference27 = obj24; - span12[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference29 = ref span12[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -207997,18 +249906,23 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807); obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span12[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Duty, null, null, 807) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 807) { DutyOptions = new DutyOptions { @@ -208017,7 +249931,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list40; reference30 = obj27; - ref QuestSequence reference31 = ref span12[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -208025,7 +249940,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026453u, new Vector3(-34.836426f, -16.15f, 153.8872f), 807) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026453u, new Vector3(-34.836426f, -16.15f, 153.8872f), 807) { StopDistance = 5f, NextQuestId = new QuestId(3155) @@ -208039,27 +249956,33 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot6.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span13 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference32 = ref span13[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026452u, new Vector3(-35.01947f, -16.150002f, 156.11499f), 807) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026452u, new Vector3(-35.01947f, -16.150002f, 156.11499f), 807) { StopDistance = 7f }; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference33 = ref span13[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -208067,7 +249990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Duty, null, null, 807) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 807) { DutyOptions = new DutyOptions { @@ -208076,15 +250001,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list45; reference33 = obj30; - ref QuestSequence reference34 = ref span13[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) { StopDistance = 7f, NextQuestId = new QuestId(3156) @@ -208098,13 +250026,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list47); + index = 0; + span[index] = "liza"; questRoot7.Author = list47; - num = 9; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span14 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference35 = ref span14[0]; + index = 9; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + span2 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -208112,27 +250043,33 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) { StopDistance = 7f }; obj32.Steps = list49; reference35 = obj32; - ref QuestSequence reference36 = ref span14[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f }; obj33.Steps = list50; reference36 = obj33; - ref QuestSequence reference37 = ref span14[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -208140,24 +250077,30 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2009608u, new Vector3(103.07471f, 0.62561035f, 41.794434f), 635) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009608u, new Vector3(103.07471f, 0.62561035f, 41.794434f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference38 = ref span14[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1026472u, new Vector3(116.50256f, 0.6520418f, 43.9917f), 635); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026472u, new Vector3(116.50256f, 0.6520418f, 43.9917f), 635); obj35.Steps = list52; reference38 = obj35; - ref QuestSequence reference39 = ref span14[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -208165,8 +250108,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span15 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference40 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612) { Fly = true, @@ -208175,25 +250119,31 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR303_03156_SYSTEM_000_006") }; obj37.DialogueChoices = list54; reference40 = obj37; - span15[1] = new QuestStep(EInteractionType.Interact, 1026456u, new Vector3(-19.638367f, -16.65f, 144.06042f), 812); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026456u, new Vector3(-19.638367f, -16.65f, 144.06042f), 812); obj36.Steps = list53; reference39 = obj36; - ref QuestSequence reference41 = ref span14[5]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Duty, null, null, 812) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 812) { DutyOptions = new DutyOptions { @@ -208202,11 +250152,13 @@ public static class AssemblyQuestLoader }; obj38.Steps = list55; reference41 = obj38; - span14[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference42 = ref span14[7]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 7 @@ -208214,7 +250166,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Duty, null, null, 812) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 812) { DutyOptions = new DutyOptions { @@ -208223,15 +250177,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span14[8]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f, NextQuestId = new QuestId(3157) @@ -208245,13 +250202,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; questRoot8.Author = list58; - num = 10; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span16 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference44 = ref span16[0]; + index = 10; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -208259,27 +250219,33 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021939u, new Vector3(464.98804f, 69.34f, 522.4231f), 612) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021939u, new Vector3(464.98804f, 69.34f, 522.4231f), 612) { StopDistance = 5f }; obj41.Steps = list60; reference44 = obj41; - ref QuestSequence reference45 = ref span16[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1024746u, new Vector3(462.8518f, 69.31414f, 525.9021f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024746u, new Vector3(462.8518f, 69.31414f, 525.9021f), 612) { StopDistance = 6f }; obj42.Steps = list61; reference45 = obj42; - ref QuestSequence reference46 = ref span16[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -208287,26 +250253,33 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj43.Steps = list62; reference46 = obj43; - ref QuestSequence reference47 = ref span16[3]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1026712u, new Vector3(113.23718f, 0.6520417f, 56.839844f), 635); - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR304_03157_Q1_000_102"), @@ -208316,7 +250289,8 @@ public static class AssemblyQuestLoader reference48 = questStep4; obj44.Steps = list63; reference47 = obj44; - ref QuestSequence reference49 = ref span16[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 4 @@ -208324,21 +250298,27 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1026465u, new Vector3(-38.92578f, -0.0364509f, -3.7385254f), 635); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026465u, new Vector3(-38.92578f, -0.0364509f, -3.7385254f), 635); obj45.Steps = list65; reference49 = obj45; - ref QuestSequence reference50 = ref span16[5]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1026466u, new Vector3(-114.58002f, 0.5980477f, -33.829346f), 635); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026466u, new Vector3(-114.58002f, 0.5980477f, -33.829346f), 635); obj46.Steps = list66; reference50 = obj46; - ref QuestSequence reference51 = ref span16[6]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 6 @@ -208346,24 +250326,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635); obj47.Steps = list67; reference51 = obj47; - ref QuestSequence reference52 = ref span16[7]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Emote, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635) { Emote = EEmote.Pet }; obj48.Steps = list68; reference52 = obj48; - ref QuestSequence reference53 = ref span16[8]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 8 @@ -208371,18 +250357,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1026468u, new Vector3(-13.778931f, 0.98160696f, 70.54236f), 635); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026468u, new Vector3(-13.778931f, 0.98160696f, 70.54236f), 635); obj49.Steps = list69; reference53 = obj49; - ref QuestSequence reference54 = ref span16[9]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); obj50.Steps = list70; reference54 = obj50; questRoot8.QuestSequence = list59; @@ -208392,13 +250383,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "plogon_enjoyer"; questRoot9.Author = list71; - num = 10; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span17 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span17[0]; + index = 10; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -208406,7 +250400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026380u, new Vector3(94.22449f, 12.000005f, -72.55664f), 628) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026380u, new Vector3(94.22449f, 12.000005f, -72.55664f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -208419,15 +250415,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference55 = obj51; - ref QuestSequence reference56 = ref span17[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2009604u, new Vector3(-85.19116f, -7.0039062f, -52.84204f), 628) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009604u, new Vector3(-85.19116f, -7.0039062f, -52.84204f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208437,7 +250436,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list74; reference56 = obj52; - ref QuestSequence reference57 = ref span17[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -208445,18 +250445,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1026381u, new Vector3(139.33008f, 25f, -7.0039062f), 628); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026381u, new Vector3(139.33008f, 25f, -7.0039062f), 628); obj53.Steps = list75; reference57 = obj53; - ref QuestSequence reference58 = ref span17[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1026383u, new Vector3(-79.14862f, 17.999998f, -176.47064f), 628) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026383u, new Vector3(-79.14862f, 17.999998f, -176.47064f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208466,7 +250471,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference58 = obj54; - ref QuestSequence reference59 = ref span17[4]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 4 @@ -208474,12 +250480,16 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list77)[0]; + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference60 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1026384u, new Vector3(-107.71344f, 11.902365f, -140.73401f), 628); num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL210_03161_Q3_000_000") @@ -208488,18 +250498,22 @@ public static class AssemblyQuestLoader reference60 = questStep5; obj55.Steps = list77; reference59 = obj55; - ref QuestSequence reference61 = ref span17[5]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1026385u, new Vector3(-108.14075f, 11.902366f, -140.58142f), 628); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026385u, new Vector3(-108.14075f, 11.902366f, -140.58142f), 628); obj56.Steps = list79; reference61 = obj56; - ref QuestSequence reference62 = ref span17[6]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 6 @@ -208507,7 +250521,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1026386u, new Vector3(-4.989685f, 0.25f, -103.50195f), 628) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026386u, new Vector3(-4.989685f, 0.25f, -103.50195f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208517,15 +250533,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list80; reference62 = obj57; - ref QuestSequence reference63 = ref span17[7]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208535,7 +250554,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list81; reference63 = obj58; - ref QuestSequence reference64 = ref span17[8]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 8 @@ -208543,18 +250563,23 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628); obj59.Steps = list82; reference64 = obj59; - ref QuestSequence reference65 = ref span17[9]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628) { ItemId = 2002488u, GroundTarget = true, @@ -208569,13 +250594,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "plogon_enjoyer"; questRoot10.Author = list84; - num = 7; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span18 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span18[0]; + index = 7; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -208583,7 +250611,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -208605,15 +250635,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list86; reference66 = obj61; - ref QuestSequence reference67 = ref span18[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1026395u, new Vector3(857.4501f, 6.9450293f, 804.7455f), 613) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026395u, new Vector3(857.4501f, 6.9450293f, 804.7455f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -208624,7 +250657,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list87; reference67 = obj62; - ref QuestSequence reference68 = ref span18[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -208632,32 +250666,38 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span19 = CollectionsMarshal.AsSpan(list88); - span19[0] = new QuestStep(EInteractionType.Interact, 1026398u, new Vector3(840.3906f, 6.9450293f, 819.6688f), 613) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026398u, new Vector3(840.3906f, 6.9450293f, 819.6688f), 613) { Fly = true }; - span19[1] = new QuestStep(EInteractionType.Interact, 1026397u, new Vector3(848.6304f, 1.1792068f, 863.8589f), 613) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026397u, new Vector3(848.6304f, 1.1792068f, 863.8589f), 613) { Fly = true }; obj63.Steps = list88; reference68 = obj63; - ref QuestSequence reference69 = ref span18[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1026399u, new Vector3(867.42944f, 1.1792068f, 844.75464f), 613) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026399u, new Vector3(867.42944f, 1.1792068f, 844.75464f), 613) { Fly = true }; obj64.Steps = list89; reference69 = obj64; - ref QuestSequence reference70 = ref span18[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 @@ -208665,37 +250705,44 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj65.Steps = list90; reference70 = obj65; - ref QuestSequence reference71 = ref span18[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span20 = CollectionsMarshal.AsSpan(list91); - span20[0] = new QuestStep(EInteractionType.Interact, 1026406u, new Vector3(-722.9267f, 1.2855811f, -568.5359f), 613) + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026406u, new Vector3(-722.9267f, 1.2855811f, -568.5359f), 613) { Fly = true }; - span20[1] = new QuestStep(EInteractionType.Interact, 1026404u, new Vector3(-716.09064f, 1.2506801f, -593.62177f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026404u, new Vector3(-716.09064f, 1.2506801f, -593.62177f), 613) { Fly = true }; - span20[2] = new QuestStep(EInteractionType.Interact, 1026405u, new Vector3(-739.98627f, 1.960285f, -611.2917f), 613) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026405u, new Vector3(-739.98627f, 1.960285f, -611.2917f), 613) { Fly = true }; obj66.Steps = list91; reference71 = obj66; - ref QuestSequence reference72 = ref span18[6]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -208703,7 +250750,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, NextQuestId = new QuestId(3163) @@ -208717,21 +250766,26 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "plogon_enjoyer"; questRoot11.Author = list93; - num = 5; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span21 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference73 = ref span21[0]; + index = 5; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.AcceptQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, @@ -208744,10 +250798,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice + num4 = 1; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + span5 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL230_03163_Q1_000_000"), @@ -208757,7 +250813,8 @@ public static class AssemblyQuestLoader reference74 = obj69; obj68.Steps = list95; reference73 = obj68; - ref QuestSequence reference75 = ref span21[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -208765,28 +250822,34 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1026414u, new Vector3(-778.28644f, 127.27075f, 129.74744f), 622) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026414u, new Vector3(-778.28644f, 127.27075f, 129.74744f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; obj70.Steps = list97; reference75 = obj70; - ref QuestSequence reference76 = ref span21[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2009605u, new Vector3(27.17627f, 114.88513f, -15.030151f), 622) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009605u, new Vector3(27.17627f, 114.88513f, -15.030151f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj71.Steps = list98; reference76 = obj71; - ref QuestSequence reference77 = ref span21[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -208794,18 +250857,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1026420u, new Vector3(-102.73901f, 116.043f, -48.142273f), 622); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026420u, new Vector3(-102.73901f, 116.043f, -48.142273f), 622); obj72.Steps = list99; reference77 = obj72; - ref QuestSequence reference78 = ref span21[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026422u, new Vector3(-779.0799f, 127.277245f, 127.91626f), 622) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026422u, new Vector3(-779.0799f, 127.277245f, 127.91626f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -208820,13 +250888,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "plogon_enjoyer"; questRoot12.Author = list101; - num = 5; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span22 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference79 = ref span22[0]; + index = 5; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -208834,7 +250905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026421u, new Vector3(-779.7818f, 127.269035f, 129.74744f), 622) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026421u, new Vector3(-779.7818f, 127.269035f, 129.74744f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -208852,15 +250925,18 @@ public static class AssemblyQuestLoader }; obj74.Steps = list103; reference79 = obj74; - ref QuestSequence reference80 = ref span22[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 2009606u, new Vector3(-77.62268f, 11.825684f, -155.169f), 628) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009606u, new Vector3(-77.62268f, 11.825684f, -155.169f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -208871,7 +250947,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list104; reference80 = obj75; - ref QuestSequence reference81 = ref span22[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -208879,7 +250956,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1026425u, new Vector3(-72.129456f, 15.000005f, 70.450806f), 628) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026425u, new Vector3(-72.129456f, 15.000005f, 70.450806f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208889,18 +250968,22 @@ public static class AssemblyQuestLoader }; obj76.Steps = list105; reference81 = obj76; - ref QuestSequence reference82 = ref span22[3]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2009607u, new Vector3(-31.47937f, 14.999573f, 61.08191f), 628); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009607u, new Vector3(-31.47937f, 14.999573f, 61.08191f), 628); obj77.Steps = list106; reference82 = obj77; - ref QuestSequence reference83 = ref span22[4]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -208908,7 +250991,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list107)[0]; + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; QuestStep obj79 = new QuestStep(EInteractionType.CompleteQuest, 1026426u, new Vector3(-81.498474f, 11.82907f, -155.53528f), 628) { AethernetShortcut = new AethernetShortcut @@ -208920,7 +251005,9 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL240_03164_Q1_000_000") @@ -208936,24 +251023,30 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; questRoot13.Author = list109; - num = 5; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span23 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference85 = ref span23[0]; + index = 5; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj80.Steps = list111; reference85 = obj80; - ref QuestSequence reference86 = ref span23[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -208961,8 +251054,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span24 = CollectionsMarshal.AsSpan(list112); - span24[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -208973,25 +251067,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span24[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj81.Steps = list112; reference86 = obj81; - ref QuestSequence reference87 = ref span23[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj82.Steps = list113; reference87 = obj82; - ref QuestSequence reference88 = ref span23[3]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -208999,7 +251098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -209008,15 +251109,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list114; reference88 = obj83; - ref QuestSequence reference89 = ref span23[4]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { StopDistance = 6f, NextQuestId = new QuestId(3166) @@ -209030,13 +251134,16 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "liza"; questRoot14.Author = list116; - num = 6; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span25 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference90 = ref span25[0]; + index = 6; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -209044,22 +251151,26 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { StopDistance = 6f }; obj85.Steps = list118; reference90 = obj85; - ref QuestSequence reference91 = ref span25[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span26 = CollectionsMarshal.AsSpan(list119); - span26[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -209070,10 +251181,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span26[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj86.Steps = list119; reference91 = obj86; - ref QuestSequence reference92 = ref span25[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -209081,49 +251194,68 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj87.Steps = list120; reference92 = obj87; - ref QuestSequence reference93 = ref span25[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span27 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference94 = ref span27[0]; + index2 = 3; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1028803u, new Vector3(8.804443f, -90f, -470.63403f), 764); - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span28 = CollectionsMarshal.AsSpan(list122); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + span4 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list122; reference94 = questStep6; - ref QuestStep reference95 = ref span27[1]; + num2++; + ref QuestStep reference95 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1028804u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span29 = CollectionsMarshal.AsSpan(list123); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list123; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + num4 = 1; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + span5 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY332_03166_Q2_000_000"), @@ -209131,23 +251263,31 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list124; reference95 = questStep7; - ref QuestStep reference96 = ref span27[2]; + num2++; + ref QuestStep reference96 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1028805u, new Vector3(115.83118f, -90f, -470.81714f), 764); num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span30 = CollectionsMarshal.AsSpan(list125); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list125; reference96 = questStep8; obj88.Steps = list121; reference93 = obj88; - ref QuestSequence reference97 = ref span25[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -209155,18 +251295,23 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1028806u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028806u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj89.Steps = list126; reference97 = obj89; - ref QuestSequence reference98 = ref span25[5]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3165) @@ -209180,13 +251325,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot15.Author = list128; - num = 8; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span31 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference99 = ref span31[0]; + index = 8; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -209194,21 +251342,26 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) { StopDistance = 5f }; obj91.Steps = list130; reference99 = obj91; - ref QuestSequence reference100 = ref span31[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1026363u, new Vector3(54.61206f, 7.999999f, 192.401f), 628) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026363u, new Vector3(54.61206f, 7.999999f, 192.401f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209218,7 +251371,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list131; reference100 = obj92; - ref QuestSequence reference101 = ref span31[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -209226,7 +251380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 628) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 628) { DutyOptions = new DutyOptions { @@ -209235,15 +251391,18 @@ public static class AssemblyQuestLoader }; obj93.Steps = list132; reference101 = obj93; - ref QuestSequence reference102 = ref span31[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1026364u, new Vector3(52.536743f, 8.02f, 192.49243f), 628) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026364u, new Vector3(52.536743f, 8.02f, 192.49243f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -209256,7 +251415,8 @@ public static class AssemblyQuestLoader }; obj94.Steps = list133; reference102 = obj94; - ref QuestSequence reference103 = ref span31[4]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 4 @@ -209264,7 +251424,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209274,30 +251436,39 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference103 = obj95; - ref QuestSequence reference104 = ref span31[5]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span32 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference105 = ref span32[0]; + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference105 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628); - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span33 = CollectionsMarshal.AsSpan(list136); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + span4 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list136; reference105 = questStep9; - ref QuestStep reference106 = ref span32[1]; + num2++; + ref QuestStep reference106 = ref span3[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AethernetShortcut = new AethernetShortcut @@ -209309,18 +251480,25 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span34 = CollectionsMarshal.AsSpan(list137); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list137; reference106 = obj97; obj96.Steps = list135; reference104 = obj96; - ref QuestSequence reference107 = ref span31[6]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 6 @@ -209328,7 +251506,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list138)[0]; + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) { AethernetShortcut = new AethernetShortcut @@ -209337,10 +251517,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRakuzaDistrict } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + num4 = 1; + List list139 = new List(num4); + CollectionsMarshal.SetCount(list139, num4); + span5 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB751_03167_Q1_000_000"), @@ -209350,15 +251532,18 @@ public static class AssemblyQuestLoader reference108 = obj99; obj98.Steps = list138; reference107 = obj98; - ref QuestSequence reference109 = ref span31[7]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { StopDistance = 5f, NextQuestId = new QuestId(3168) @@ -209372,13 +251557,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot16.Author = list141; - num = 7; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span35 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference110 = ref span35[0]; + index = 7; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -209386,32 +251574,40 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { StopDistance = 5f }; obj101.Steps = list143; reference110 = obj101; - ref QuestSequence reference111 = ref span35[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span36 = CollectionsMarshal.AsSpan(list144); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) + index2 = 3; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) { DisableNavmesh = true }; - ref QuestStep reference112 = ref span36[2]; + num2++; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1019068u, new Vector3(42.191162f, -7.463482f, -264.75934f), 628); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB752_03168_Q1_000_000"), @@ -209421,7 +251617,8 @@ public static class AssemblyQuestLoader reference112 = questStep10; obj102.Steps = list144; reference111 = obj102; - ref QuestSequence reference113 = ref span35[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -209429,7 +251626,9 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1019033u, new Vector3(52.048462f, 8.02f, 140.55078f), 628) + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019033u, new Vector3(52.048462f, 8.02f, 140.55078f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -209440,17 +251639,20 @@ public static class AssemblyQuestLoader }; obj103.Steps = list146; reference113 = obj103; - ref QuestSequence reference114 = ref span35[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span37 = CollectionsMarshal.AsSpan(list147); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.635633f, 11.441568f, 174.71848f), 628); - span37[1] = new QuestStep(EInteractionType.Interact, 1026764u, new Vector3(24.917969f, 6.0124164f, -123.979614f), 628) + index2 = 2; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.635633f, 11.441568f, 174.71848f), 628); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026764u, new Vector3(24.917969f, 6.0124164f, -123.979614f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209460,7 +251662,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list147; reference114 = obj104; - ref QuestSequence reference115 = ref span35[4]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -209468,7 +251671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1026350u, new Vector3(512.90137f, 0.8484344f, 148.91272f), 613) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026350u, new Vector3(512.90137f, 0.8484344f, 148.91272f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -209479,21 +251684,25 @@ public static class AssemblyQuestLoader }; obj105.Steps = list148; reference115 = obj105; - ref QuestSequence reference116 = ref span35[5]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1026765u, new Vector3(495.10938f, 1.611506f, 149.49255f), 613) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026765u, new Vector3(495.10938f, 1.611506f, 149.49255f), 613) { StopDistance = 5f }; obj106.Steps = list149; reference116 = obj106; - ref QuestSequence reference117 = ref span35[6]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -209501,7 +251710,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026766u, new Vector3(52.384155f, 10.503965f, -154.03986f), 628) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026766u, new Vector3(52.384155f, 10.503965f, -154.03986f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, NextQuestId = new QuestId(4542) @@ -209515,21 +251726,26 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; questRoot17.Author = list151; - num = 2; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span38 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference118 = ref span38[0]; + index = 2; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -209542,7 +251758,8 @@ public static class AssemblyQuestLoader }; obj108.Steps = list153; reference118 = obj108; - ref QuestSequence reference119 = ref span38[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -209550,7 +251767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478); obj109.Steps = list154; reference119 = obj109; questRoot17.QuestSequence = list152; @@ -209560,24 +251779,30 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot18.Author = list155; - num = 3; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span39 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference120 = ref span39[0]; + index = 3; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026746u, new Vector3(-55.588684f, 206.50021f, 18.57019f), 478); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026746u, new Vector3(-55.588684f, 206.50021f, 18.57019f), 478); obj110.Steps = list157; reference120 = obj110; - ref QuestSequence reference121 = ref span39[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -209585,18 +251810,23 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1026747u, new Vector3(63.126587f, 205.63266f, 22.049255f), 478); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026747u, new Vector3(63.126587f, 205.63266f, 22.049255f), 478); obj111.Steps = list158; reference121 = obj111; - ref QuestSequence reference122 = ref span39[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026750u, new Vector3(-62.6994f, 206.50021f, 16.617004f), 478); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026750u, new Vector3(-62.6994f, 206.50021f, 16.617004f), 478); obj112.Steps = list159; reference122 = obj112; questRoot18.QuestSequence = list156; @@ -209606,13 +251836,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "JerryWester"; questRoot19.Author = list160; - num = 3; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span40 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference123 = ref span40[0]; + index = 3; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -209620,18 +251853,23 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj113.Steps = list162; reference123 = obj113; - ref QuestSequence reference124 = ref span40[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -209643,7 +251881,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list163; reference124 = obj114; - ref QuestSequence reference125 = ref span40[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -209651,7 +251890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); obj115.Steps = list164; reference125 = obj115; questRoot19.QuestSequence = list161; @@ -209661,24 +251902,30 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "JerryWester"; questRoot20.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span41 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference126 = ref span41[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); obj116.Steps = list167; reference126 = obj116; - ref QuestSequence reference127 = ref span41[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -209686,16 +251933,20 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list168)[0]; + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference128 = ref span3[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice + num4 = 1; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + span5 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF102_03180_Q1_000_021") @@ -209704,21 +251955,25 @@ public static class AssemblyQuestLoader reference128 = obj118; obj117.Steps = list168; reference127 = obj117; - ref QuestSequence reference129 = ref span41[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1026783u, new Vector3(747.12744f, 69.99995f, 521.599f), 621) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026783u, new Vector3(747.12744f, 69.99995f, 521.599f), 621) { StopDistance = 5f }; obj119.Steps = list170; reference129 = obj119; - ref QuestSequence reference130 = ref span41[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -209726,8 +251981,9 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span42 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference131 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference131 = ref span3[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -209736,14 +251992,17 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF102_03180_EVENTAREA_WARP_000_043") }; obj121.DialogueChoices = list172; reference131 = obj121; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); obj120.Steps = list171; reference130 = obj120; questRoot20.QuestSequence = list166; @@ -209753,24 +252012,30 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list173); + index = 0; + span[index] = "JerryWester"; questRoot21.Author = list173; - num = 3; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span43 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference132 = ref span43[0]; + index = 3; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + span2 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); obj122.Steps = list175; reference132 = obj122; - ref QuestSequence reference133 = ref span43[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -209778,16 +252043,20 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list176)[0]; + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference134 = ref span3[index2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; - num3 = 1; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new DialogueChoice + num4 = 1; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + span5 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF103_03181_Q1_000_031") @@ -209796,15 +252065,18 @@ public static class AssemblyQuestLoader reference134 = obj124; obj123.Steps = list176; reference133 = obj123; - ref QuestSequence reference135 = ref span43[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj125.Steps = list178; reference135 = obj125; questRoot21.QuestSequence = list174; @@ -209814,13 +252086,16 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "JerryWester"; questRoot22.Author = list179; - num = 8; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span44 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference136 = ref span44[0]; + index = 8; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -209828,18 +252103,23 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj126.Steps = list181; reference136 = obj126; - ref QuestSequence reference137 = ref span44[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list182)[0]; + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference138 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true, @@ -209848,7 +252128,9 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_021") @@ -209857,11 +252139,13 @@ public static class AssemblyQuestLoader reference138 = obj128; obj127.Steps = list182; reference137 = obj127; - span44[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference139 = ref span44[3]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -209869,15 +252153,19 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list184)[0]; + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference140 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1026805u, new Vector3(-477.77527f, 107.62999f, 102.433716f), 829) { StopDistance = 7f }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span5 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_031") @@ -209886,18 +252174,22 @@ public static class AssemblyQuestLoader reference140 = obj130; obj129.Steps = list184; reference139 = obj129; - ref QuestSequence reference141 = ref span44[4]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829); obj131.Steps = list186; reference141 = obj131; - ref QuestSequence reference142 = ref span44[5]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 @@ -209905,8 +252197,9 @@ public static class AssemblyQuestLoader num2 = 3; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span45 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference143 = ref span45[0]; + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference143 = ref span3[index2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 1026821u, new Vector3(4.2266846f, -3.7252903E-09f, 5.1116943f), 829) { StopDistance = 4f @@ -209914,18 +252207,26 @@ public static class AssemblyQuestLoader num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span46 = CollectionsMarshal.AsSpan(list188); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list188); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list188; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + num4 = 1; + List list189 = new List(num4); + CollectionsMarshal.SetCount(list189, num4); + span5 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q3_000_000"), @@ -209933,7 +252234,8 @@ public static class AssemblyQuestLoader }; obj133.DialogueChoices = list189; reference143 = obj133; - ref QuestStep reference144 = ref span45[1]; + index2++; + ref QuestStep reference144 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1026817u, new Vector3(-3.7080078f, -1.1059713E-09f, 5.2643433f), 829) { StopDistance = 5f @@ -209941,18 +252243,26 @@ public static class AssemblyQuestLoader num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span47 = CollectionsMarshal.AsSpan(list190); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list190; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + span5 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q2_000_000"), @@ -209960,23 +252270,32 @@ public static class AssemblyQuestLoader }; obj134.DialogueChoices = list191; reference144 = obj134; - ref QuestStep reference145 = ref span45[2]; + index2++; + ref QuestStep reference145 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1026818u, new Vector3(-1.9990234f, -1.8626451E-09f, 12.344482f), 829); num3 = 6; List list192 = new List(num3); CollectionsMarshal.SetCount(list192, num3); - Span span48 = CollectionsMarshal.AsSpan(list192); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list192; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice + num4 = 1; + List list193 = new List(num4); + CollectionsMarshal.SetCount(list193, num4); + span5 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_000"), @@ -209986,21 +252305,25 @@ public static class AssemblyQuestLoader reference145 = questStep11; obj132.Steps = list187; reference142 = obj132; - ref QuestSequence reference146 = ref span44[6]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829) { StopDistance = 7f }; obj135.Steps = list194; reference146 = obj135; - ref QuestSequence reference147 = ref span44[7]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -210008,7 +252331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) { StopDistance = 6f }; @@ -210021,29 +252346,35 @@ public static class AssemblyQuestLoader num = 2; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span49 = CollectionsMarshal.AsSpan(list196); - span49[0] = "liza"; - span49[1] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; + index++; + span[index] = "JerryWester"; questRoot23.Author = list196; - num = 5; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span50 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference148 = ref span50[0]; + index = 5; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) { StopDistance = 6f }; obj137.Steps = list198; reference148 = obj137; - ref QuestSequence reference149 = ref span50[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -210051,7 +252382,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Duty, null, null, 829) + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 829) { DutyOptions = new DutyOptions { @@ -210061,25 +252394,30 @@ public static class AssemblyQuestLoader }; obj138.Steps = list199; reference149 = obj138; - span50[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference150 = ref span50[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829) { StopDistance = 7f }; obj139.Steps = list200; reference150 = obj139; - ref QuestSequence reference151 = ref span50[4]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -210087,13 +252425,15 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span51 = CollectionsMarshal.AsSpan(list201); - span51[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); obj140.Steps = list201; reference151 = obj140; questRoot23.QuestSequence = list197; @@ -210103,24 +252443,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "liza"; questRoot24.Author = list202; - num = 3; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span52 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference152 = ref span52[0]; + index = 3; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); obj141.Steps = list204; reference152 = obj141; - ref QuestSequence reference153 = ref span52[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -210128,30 +252474,36 @@ public static class AssemblyQuestLoader num2 = 3; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span53 = CollectionsMarshal.AsSpan(list205); - span53[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span53[2] = new QuestStep(EInteractionType.Interact, 1026794u, new Vector3(124.193115f, -15.239566f, -424.30762f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026794u, new Vector3(124.193115f, -15.239566f, -424.30762f), 156) { Fly = true }; obj142.Steps = list205; reference153 = obj142; - ref QuestSequence reference154 = ref span52[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026797u, new Vector3(-528.2521f, 8.691104f, -13.53479f), 621); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026797u, new Vector3(-528.2521f, 8.691104f, -13.53479f), 621); obj143.Steps = list206; reference154 = obj143; questRoot24.QuestSequence = list203; @@ -210161,13 +252513,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot25.Author = list207; - num = 5; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span54 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference155 = ref span54[0]; + index = 5; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 @@ -210175,22 +252530,26 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { StopDistance = 7f }; obj144.Steps = list209; reference155 = obj144; - ref QuestSequence reference156 = ref span54[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span55 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference157 = ref span55[0]; + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { StopDistance = 7f, @@ -210199,34 +252558,43 @@ public static class AssemblyQuestLoader num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDG102_03185_Q1_000_002") }; obj146.DialogueChoices = list211; reference157 = obj146; - ref QuestStep reference158 = ref span55[1]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.SinglePlayerDuty, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 4; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span56 = CollectionsMarshal.AsSpan(list212); - span56[0] = "(phase 1) Need to manually move in range to trigger combat"; - span56[1] = "(phase 1) VBM doesn't know about some AOEs (e.g. Vein Splitter)"; - span56[2] = "(phase 1) VBM ignores markers to stack on Lyse (she still survives)"; - span56[3] = "(phase 2) AI can walk outside the arena to get a bleed + damage down when dodging mechanics"; + num4 = 4; + List list212 = new List(num4); + CollectionsMarshal.SetCount(list212, num4); + span = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span[num3] = "(phase 1) Need to manually move in range to trigger combat"; + num3++; + span[num3] = "(phase 1) VBM doesn't know about some AOEs (e.g. Vein Splitter)"; + num3++; + span[num3] = "(phase 1) VBM ignores markers to stack on Lyse (she still survives)"; + num3++; + span[num3] = "(phase 2) AI can walk outside the arena to get a bleed + damage down when dodging mechanics"; singlePlayerDutyOptions.Notes = list212; questStep12.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference158 = questStep12; obj145.Steps = list210; reference156 = obj145; - span54[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference159 = ref span54[3]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -210234,22 +252602,27 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj147.Steps = list213; reference159 = obj147; - ref QuestSequence reference160 = ref span54[4]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 7f }; @@ -210262,13 +252635,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list215); + index = 0; + span[index] = "liza"; questRoot26.Author = list215; - num = 7; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span57 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference161 = ref span57[0]; + index = 7; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + span2 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -210276,7 +252652,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -210290,20 +252668,23 @@ public static class AssemblyQuestLoader }; obj149.Steps = list217; reference161 = obj149; - ref QuestSequence reference162 = ref span57[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span58 = CollectionsMarshal.AsSpan(list218); - span58[0] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) + index2 = 2; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) { TargetTerritoryId = (ushort)628 }; - ref QuestStep reference163 = ref span58[1]; + num2++; + ref QuestStep reference163 = ref span3[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1024157u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f @@ -210311,7 +252692,9 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI301_03187_Q1_000_000") @@ -210320,11 +252703,13 @@ public static class AssemblyQuestLoader reference163 = obj151; obj150.Steps = list218; reference162 = obj150; - span57[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference164 = ref span57[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -210332,32 +252717,38 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1026968u, new Vector3(-10.635559f, 0.026214104f, 12.924377f), 735) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026968u, new Vector3(-10.635559f, 0.026214104f, 12.924377f), 735) { StopDistance = 7f }; obj152.Steps = list220; reference164 = obj152; - ref QuestSequence reference165 = ref span57[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span59 = CollectionsMarshal.AsSpan(list221); - span59[0] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.763306f, 0.56451416f, -0.015319824f), 735) + index2 = 2; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.763306f, 0.56451416f, -0.015319824f), 735) { TargetTerritoryId = (ushort)628 }; - span59[1] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; obj153.Steps = list221; reference165 = obj153; - ref QuestSequence reference166 = ref span57[5]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -210365,15 +252756,19 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list222)[0]; + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + ref QuestStep reference167 = ref span3[index2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = new DialogueChoice + num4 = 1; + List list223 = new List(num4); + CollectionsMarshal.SetCount(list223, num4); + span5 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI301_03187_Q5_000_000") @@ -210382,15 +252777,18 @@ public static class AssemblyQuestLoader reference167 = obj155; obj154.Steps = list222; reference166 = obj154; - ref QuestSequence reference168 = ref span57[6]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3188) @@ -210404,13 +252802,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; questRoot27.Author = list225; - num = 8; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span60 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference169 = ref span60[0]; + index = 8; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -210418,22 +252819,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) { StopDistance = 7f }; obj157.Steps = list227; reference169 = obj157; - ref QuestSequence reference170 = ref span60[1]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span61 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference171 = ref span61[0]; + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, @@ -210444,15 +252849,19 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = 735; + Span span6 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span6[num4] = 735; skipStepConditions.InTerritory = list229; skipConditions.StepIf = skipStepConditions; obj159.SkipConditions = skipConditions; reference171 = obj159; - span61[1] = new QuestStep(EInteractionType.Interact, 1026973u, new Vector3(-10.025269f, 0.046870913f, -2.5482788f), 735); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026973u, new Vector3(-10.025269f, 0.046870913f, -2.5482788f), 735); obj158.Steps = list228; reference170 = obj158; - ref QuestSequence reference172 = ref span60[2]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -210460,43 +252869,51 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1026974u, new Vector3(-10.788147f, 0.04687085f, -4.4404297f), 735) + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026974u, new Vector3(-10.788147f, 0.04687085f, -4.4404297f), 735) { StopDistance = 5f }; obj160.Steps = list230; reference172 = obj160; - ref QuestSequence reference173 = ref span60[3]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - Span span62 = CollectionsMarshal.AsSpan(list231); - ref QuestStep reference174 = ref span62[0]; + index2 = 2; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.763306f, 0.56451416f, -0.015319824f), 735) { TargetTerritoryId = (ushort)628 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = 628; + num4 = 1; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + span6 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span6[num3] = 628; skipStepConditions2.InTerritory = list232; skipConditions2.StepIf = skipStepConditions2; obj162.SkipConditions = skipConditions2; reference174 = obj162; - span62[1] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; obj161.Steps = list231; reference173 = obj161; - ref QuestSequence reference175 = ref span60[4]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 4 @@ -210504,7 +252921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list233)[0]; + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference176 = ref span3[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1026976u, new Vector3(115.12927f, 12.000001f, 71.000244f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -210517,7 +252936,9 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI302_03188_Q3_000_000") @@ -210526,15 +252947,18 @@ public static class AssemblyQuestLoader reference176 = obj164; obj163.Steps = list233; reference175 = obj163; - ref QuestSequence reference177 = ref span60[5]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 5f, TargetTerritoryId = (ushort)735, @@ -210546,7 +252970,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list235; reference177 = obj165; - ref QuestSequence reference178 = ref span60[6]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 6 @@ -210554,12 +252979,16 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list236)[0]; + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference179 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1026977u, new Vector3(-4.3793945f, -2.5159047E-06f, -6.3325195f), 735); - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice + num4 = 1; + List list237 = new List(num4); + CollectionsMarshal.SetCount(list237, num4); + span5 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDI302_03188_Q1_000_000"), @@ -210569,15 +252998,18 @@ public static class AssemblyQuestLoader reference179 = questStep13; obj166.Steps = list236; reference178 = obj166; - ref QuestSequence reference180 = ref span60[7]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735) { NextQuestId = new QuestId(3189) }; @@ -210590,13 +253022,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "liza"; questRoot28.Author = list239; - num = 5; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span63 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference181 = ref span63[0]; + index = 5; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -210604,18 +253039,23 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735); obj168.Steps = list241; reference181 = obj168; - ref QuestSequence reference182 = ref span63[1]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Duty, null, null, 735) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 735) { DutyOptions = new DutyOptions { @@ -210624,11 +253064,13 @@ public static class AssemblyQuestLoader }; obj169.Steps = list242; reference182 = obj169; - span63[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference183 = ref span63[3]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -210636,31 +253078,37 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1026979u, new Vector3(-12.008911f, 0.046870746f, -1.1750488f), 735) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026979u, new Vector3(-12.008911f, 0.046870746f, -1.1750488f), 735) { StopDistance = 5f }; obj170.Steps = list243; reference183 = obj170; - ref QuestSequence reference184 = ref span63[4]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span64 = CollectionsMarshal.AsSpan(list244); - span64[0] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.73708f, 0.5811821f, 0.01279204f), 735) + index2 = 3; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.73708f, 0.5811821f, 0.01279204f), 735) { TargetTerritoryId = (ushort)628 }; - span64[1] = new QuestStep(EInteractionType.Interact, 1019044u, new Vector3(-51.71283f, 79.05602f, 45.48706f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019044u, new Vector3(-51.71283f, 79.05602f, 45.48706f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)628 }; - span64[2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f }; @@ -210673,13 +253121,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "liza"; questRoot29.Author = list245; - num = 7; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span65 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference185 = ref span65[0]; + index = 7; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -210687,25 +253138,32 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj172.Steps = list247; reference185 = obj172; - span65[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference186 = ref span65[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj173.Steps = list248; reference186 = obj173; - ref QuestSequence reference187 = ref span65[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -210713,24 +253171,30 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj174.Steps = list249; reference187 = obj174; - ref QuestSequence reference188 = ref span65[4]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj175.Steps = list250; reference188 = obj175; - ref QuestSequence reference189 = ref span65[5]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 @@ -210738,24 +253202,28 @@ public static class AssemblyQuestLoader num2 = 2; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span66 = CollectionsMarshal.AsSpan(list251); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - span66[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj176.Steps = list251; reference189 = obj176; - ref QuestSequence reference190 = ref span65[6]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span67 = CollectionsMarshal.AsSpan(list252); - span67[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -210766,7 +253234,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeAirship } }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj177.Steps = list252; reference190 = obj177; questRoot29.QuestSequence = list246; @@ -210776,13 +253245,16 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list253); + index = 0; + span[index] = "liza"; questRoot30.Author = list253; - num = 6; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span68 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference191 = ref span68[0]; + index = 6; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + span2 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 @@ -210790,7 +253262,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026928u, new Vector3(-64.34735f, 18.000334f, -11.032288f), 129) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026928u, new Vector3(-64.34735f, 18.000334f, -11.032288f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -210803,15 +253277,18 @@ public static class AssemblyQuestLoader }; obj178.Steps = list255; reference191 = obj178; - ref QuestSequence reference192 = ref span68[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1026929u, new Vector3(-69.87109f, 43.83883f, -5.661133f), 134) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026929u, new Vector3(-69.87109f, 43.83883f, -5.661133f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -210822,7 +253299,8 @@ public static class AssemblyQuestLoader }; obj179.Steps = list256; reference192 = obj179; - ref QuestSequence reference193 = ref span68[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 @@ -210830,24 +253308,30 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1026936u, new Vector3(170.85522f, 62.765503f, 275.25745f), 134); + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026936u, new Vector3(170.85522f, 62.765503f, 275.25745f), 134); obj180.Steps = list257; reference193 = obj180; - ref QuestSequence reference194 = ref span68[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1028430u, new Vector3(156.63379f, 12.126303f, 649.37805f), 135) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028430u, new Vector3(156.63379f, 12.126303f, 649.37805f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj181.Steps = list258; reference194 = obj181; - ref QuestSequence reference195 = ref span68[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 @@ -210855,21 +253339,26 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1026930u, new Vector3(-85.404785f, 2.5427969f, 728.542f), 135) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026930u, new Vector3(-85.404785f, 2.5427969f, 728.542f), 135) { Fly = true }; obj182.Steps = list259; reference195 = obj182; - ref QuestSequence reference196 = ref span68[5]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) { StopDistance = 7f, NextQuestId = new QuestId(3193) @@ -210883,13 +253372,16 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; questRoot31.Author = list261; - num = 3; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span69 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference197 = ref span69[0]; + index = 3; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -210897,8 +253389,9 @@ public static class AssemblyQuestLoader num2 = 4; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span70 = CollectionsMarshal.AsSpan(list263); - span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 135) + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, ItemId = 22746u, @@ -210917,7 +253410,8 @@ public static class AssemblyQuestLoader } } }; - span70[1] = new QuestStep(EInteractionType.EquipItem, null, null, 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 135) { ItemId = 24587u, SkipConditions = new SkipConditions @@ -210931,29 +253425,35 @@ public static class AssemblyQuestLoader } } }; - span70[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 135); - span70[3] = new QuestStep(EInteractionType.AcceptQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 135); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) { StopDistance = 7f, Fly = true }; obj184.Steps = list263; reference197 = obj184; - ref QuestSequence reference198 = ref span69[1]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Action, 1026934u, new Vector3(-108.04913f, 1.5026048f, 749.1415f), 135) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1026934u, new Vector3(-108.04913f, 1.5026048f, 749.1415f), 135) { Action = EAction.WaterCannon }; obj185.Steps = list264; reference198 = obj185; - ref QuestSequence reference199 = ref span69[2]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -210961,7 +253461,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list265)[0]; + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + ref QuestStep reference200 = ref span3[index2]; QuestStep obj187 = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -210974,7 +253476,9 @@ public static class AssemblyQuestLoader num3 = 1; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list266); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAOZ010_03193_Q1_100_002") @@ -210991,21 +253495,26 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list267); + index = 0; + span[index] = "liza"; questRoot32.Author = list267; - num = 5; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span71 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference201 = ref span71[0]; + index = 5; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + span2 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list269)[0]; + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference202 = ref span3[num2]; QuestStep obj189 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -211021,17 +253530,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 131; + num4 = 1; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + span6 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span6[num3] = 131; obj190.InTerritory = list270; skipConditions3.AetheryteShortcutIf = obj190; obj189.SkipConditions = skipConditions3; reference202 = obj189; obj188.Steps = list269; reference201 = obj188; - ref QuestSequence reference203 = ref span71[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -211039,7 +253551,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211050,15 +253564,18 @@ public static class AssemblyQuestLoader }; obj191.Steps = list271; reference203 = obj191; - ref QuestSequence reference204 = ref span71[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list272)[0]; + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + ref QuestStep reference205 = ref span3[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2009670u, new Vector3(163.59192f, 3.7078857f, 657.0991f), 141) { StopDistance = 0.5f, @@ -211068,12 +253585,15 @@ public static class AssemblyQuestLoader num3 = 1; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - CollectionsMarshal.AsSpan(list273)[0] = 9836u; + Span span7 = CollectionsMarshal.AsSpan(list273); + num4 = 0; + span7[num4] = 9836u; obj193.KillEnemyDataIds = list273; reference205 = obj193; obj192.Steps = list272; reference204 = obj192; - ref QuestSequence reference206 = ref span71[3]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 @@ -211081,21 +253601,26 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) { Fly = true }; obj194.Steps = list274; reference206 = obj194; - ref QuestSequence reference207 = ref span71[4]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211114,13 +253639,16 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "liza"; questRoot33.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span72 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference208 = ref span72[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -211128,7 +253656,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list278)[0]; + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj197 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211143,25 +253673,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = 131; + num4 = 1; + List list279 = new List(num4); + CollectionsMarshal.SetCount(list279, num4); + span6 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span6[num3] = 131; obj198.InTerritory = list279; skipConditions4.AetheryteShortcutIf = obj198; obj197.SkipConditions = skipConditions4; reference209 = obj197; obj196.Steps = list278; reference208 = obj196; - ref QuestSequence reference210 = ref span72[1]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211172,7 +253707,8 @@ public static class AssemblyQuestLoader }; obj199.Steps = list280; reference210 = obj199; - ref QuestSequence reference211 = ref span72[2]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -211180,7 +253716,9 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list281)[0]; + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference212 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2009671u, new Vector3(145.52527f, 9.567322f, 391.10388f), 141) { Fly = true, @@ -211189,23 +253727,29 @@ public static class AssemblyQuestLoader num3 = 1; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = 9837u; + span7 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span7[num4] = 9837u; obj201.KillEnemyDataIds = list282; reference212 = obj201; obj200.Steps = list281; reference211 = obj200; - ref QuestSequence reference213 = ref span72[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141); obj202.Steps = list283; reference213 = obj202; - ref QuestSequence reference214 = ref span72[4]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -211213,7 +253757,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211232,21 +253778,26 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list285); + index = 0; + span[index] = "liza"; questRoot34.Author = list285; - num = 6; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span73 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference215 = ref span73[0]; + index = 6; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + span2 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list287)[0]; + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + ref QuestStep reference216 = ref span3[num2]; QuestStep obj205 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211261,17 +253812,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = 131; + num4 = 1; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + span6 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span6[num3] = 131; obj206.InTerritory = list288; skipConditions5.AetheryteShortcutIf = obj206; obj205.SkipConditions = skipConditions5; reference216 = obj205; obj204.Steps = list287; reference215 = obj204; - ref QuestSequence reference217 = ref span73[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 @@ -211279,7 +253833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1026945u, new Vector3(-108.415405f, 41f, 76.06616f), 131) + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026945u, new Vector3(-108.415405f, 41f, 76.06616f), 131) { AethernetShortcut = new AethernetShortcut { @@ -211289,15 +253845,18 @@ public static class AssemblyQuestLoader }; obj207.Steps = list289; reference217 = obj207; - ref QuestSequence reference218 = ref span73[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1026946u, new Vector3(392.69092f, 87.19347f, 98.10022f), 140) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026946u, new Vector3(392.69092f, 87.19347f, 98.10022f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211308,7 +253867,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list290; reference218 = obj208; - ref QuestSequence reference219 = ref span73[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 @@ -211316,7 +253876,9 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list291)[0]; + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference220 = ref span3[index2]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(363.6008f, 83.40785f, 92.904495f), 140) { StopDistance = 0.5f, @@ -211325,28 +253887,34 @@ public static class AssemblyQuestLoader num3 = 2; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span74 = CollectionsMarshal.AsSpan(list292); - span74[0] = 9838u; - span74[1] = 9839u; + span7 = CollectionsMarshal.AsSpan(list292); + num4 = 0; + span7[num4] = 9838u; + num4++; + span7[num4] = 9839u; obj210.KillEnemyDataIds = list292; reference220 = obj210; obj209.Steps = list291; reference219 = obj209; - ref QuestSequence reference221 = ref span73[4]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1026948u, new Vector3(359.63977f, 83.013695f, 92.24072f), 140) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026948u, new Vector3(359.63977f, 83.013695f, 92.24072f), 140) { StopDistance = 5f }; obj211.Steps = list293; reference221 = obj211; - ref QuestSequence reference222 = ref span73[5]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue @@ -211354,7 +253922,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211373,21 +253943,26 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; questRoot35.Author = list295; - num = 4; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span75 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference223 = ref span75[0]; + index = 4; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list297)[0]; + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + ref QuestStep reference224 = ref span3[num2]; QuestStep obj214 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211402,17 +253977,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = 131; + num4 = 1; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + span6 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span6[num3] = 131; obj215.InTerritory = list298; skipConditions6.AetheryteShortcutIf = obj215; obj214.SkipConditions = skipConditions6; reference224 = obj214; obj213.Steps = list297; reference223 = obj213; - ref QuestSequence reference225 = ref span75[1]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -211420,7 +253998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list299)[0]; + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + ref QuestStep reference226 = ref span3[index2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140) { Fly = true, @@ -211430,12 +254010,16 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = 9840u; + span7 = CollectionsMarshal.AsSpan(list300); + num4 = 0; + span7[num4] = 9840u; obj217.KillEnemyDataIds = list300; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + num4 = 1; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + span5 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAOZ400_03197_Q1_000_013") @@ -211444,18 +254028,22 @@ public static class AssemblyQuestLoader reference226 = obj217; obj216.Steps = list299; reference225 = obj216; - ref QuestSequence reference227 = ref span75[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140); + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140); obj218.Steps = list302; reference227 = obj218; - ref QuestSequence reference228 = ref span75[3]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -211463,7 +254051,9 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026953u, new Vector3(65.59851f, 14.005001f, 91.75244f), 131) + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026953u, new Vector3(65.59851f, 14.005001f, 91.75244f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211482,21 +254072,26 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "liza"; questRoot36.Author = list304; - num = 4; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span76 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference229 = ref span76[0]; + index = 4; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + span2 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - ref QuestStep reference230 = ref CollectionsMarshal.AsSpan(list306)[0]; + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + ref QuestStep reference230 = ref span3[num2]; QuestStep obj221 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { StopDistance = 5f, @@ -211515,14 +254110,17 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span6[num4] = 131; obj222.InTerritory = list307; skipConditions7.AetheryteShortcutIf = obj222; obj221.SkipConditions = skipConditions7; reference230 = obj221; obj220.Steps = list306; reference229 = obj220; - ref QuestSequence reference231 = ref span76[1]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 @@ -211530,21 +254128,26 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1026955u, new Vector3(-10.055725f, 47f, -29.800903f), 147) + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026955u, new Vector3(-10.055725f, 47f, -29.800903f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj223.Steps = list308; reference231 = obj223; - ref QuestSequence reference232 = ref span76[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211555,7 +254158,8 @@ public static class AssemblyQuestLoader }; obj224.Steps = list309; reference232 = obj224; - ref QuestSequence reference233 = ref span76[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -211563,7 +254167,9 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { NextQuestId = new QuestId(3199) }; @@ -211576,21 +254182,26 @@ public static class AssemblyQuestLoader num = 1; List list311 = new List(num); CollectionsMarshal.SetCount(list311, num); - CollectionsMarshal.AsSpan(list311)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list311); + index = 0; + span[index] = "liza"; questRoot37.Author = list311; - num = 2; - List list312 = new List(num); - CollectionsMarshal.SetCount(list312, num); - Span span77 = CollectionsMarshal.AsSpan(list312); - ref QuestSequence reference234 = ref span77[0]; + index = 2; + List list312 = new List(index); + CollectionsMarshal.SetCount(list312, index); + span2 = CollectionsMarshal.AsSpan(list312); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list313)[0]; + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + ref QuestStep reference235 = ref span3[num2]; QuestStep obj227 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { StopDistance = 5f, @@ -211606,17 +254217,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - CollectionsMarshal.AsSpan(list314)[0] = 131; + num4 = 1; + List list314 = new List(num4); + CollectionsMarshal.SetCount(list314, num4); + span6 = CollectionsMarshal.AsSpan(list314); + num3 = 0; + span6[num3] = 131; obj228.InTerritory = list314; skipConditions8.AetheryteShortcutIf = obj228; obj227.SkipConditions = skipConditions8; reference235 = obj227; obj226.Steps = list313; reference234 = obj226; - ref QuestSequence reference236 = ref span77[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue @@ -211624,7 +254238,9 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3732) @@ -211642,13 +254258,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Starr"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Starr"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -211656,7 +254275,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -211669,15 +254290,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016307u, new Vector3(57.14502f, 20.99973f, 83.57361f), 144) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016307u, new Vector3(57.14502f, 20.99973f, 83.57361f), 144) { AethernetShortcut = new AethernetShortcut { @@ -211694,13 +254318,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list5); + index = 0; + span[index] = "plogon_enjoyer"; questRoot2.Author = list5; - num = 4; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 4; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + span2 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -211708,7 +254335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list7)[0]; + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211723,9 +254352,11 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = 130; - span3[1] = 131; + Span span4 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span4[num4] = 130; + num4++; + span4[num4] = 131; skipAetheryteCondition.InTerritory = list8; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -211736,15 +254367,18 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -211754,7 +254388,8 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -211762,7 +254397,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1028092u, new Vector3(213.58044f, 54.47546f, 228.19861f), 140) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028092u, new Vector3(213.58044f, 54.47546f, 228.19861f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211773,15 +254410,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211799,13 +254439,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "plogon_enjoyer"; questRoot3.Author = list12; - num = 5; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span4[0]; + index = 5; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -211813,7 +254456,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list14)[0]; + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211825,12 +254470,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span5 = CollectionsMarshal.AsSpan(list15); - span5[0] = 130; - span5[1] = 131; + num4 = 2; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = 130; + num3++; + span4[num3] = 131; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions2.AethernetShortcutIf = new SkipAetheryteCondition @@ -211841,31 +254488,36 @@ public static class AssemblyQuestLoader reference9 = obj9; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference10 = ref span4[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.Interact, 1028409u, new Vector3(103.4104f, 118.31935f, -706.1417f), 620) + index2 = 3; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028409u, new Vector3(103.4104f, 118.31935f, -706.1417f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - span6[1] = new QuestStep(EInteractionType.Interact, 1028410u, new Vector3(38.010254f, 118.13663f, -750.57605f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028410u, new Vector3(38.010254f, 118.13663f, -750.57605f), 620) { Mount = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1028408u, new Vector3(55.649536f, 118.16888f, -784.2069f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028408u, new Vector3(55.649536f, 118.16888f, -784.2069f), 620) { Fly = true }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -211873,22 +254525,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1028411u, new Vector3(-140.67297f, 27.29529f, -408.16364f), 146) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028411u, new Vector3(-140.67297f, 27.29529f, -408.16364f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span4[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 2009755u, new Vector3(64.86609f, -0.38153076f, -83.32953f), 635) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009755u, new Vector3(64.86609f, -0.38153076f, -83.32953f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -211899,7 +254556,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[4]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -211907,7 +254565,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211922,9 +254582,11 @@ public static class AssemblyQuestLoader num3 = 2; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span7 = CollectionsMarshal.AsSpan(list20); - span7[0] = 130; - span7[1] = 131; + span4 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span4[num4] = 130; + num4++; + span4[num4] = 131; skipAetheryteCondition3.InTerritory = list20; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -211942,21 +254604,26 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "plogon_enjoyer"; questRoot4.Author = list21; - num = 8; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span8[0]; + index = 8; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, @@ -211969,10 +254636,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + num4 = 1; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span5 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC003_03212_Q1_000_000"), @@ -211982,7 +254651,8 @@ public static class AssemblyQuestLoader reference16 = obj16; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference17 = ref span8[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -211990,32 +254660,38 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference18 = ref span8[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(226.71358f, 8.000019f, 671.0062f), 135) + index2 = 2; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(226.71358f, 8.000019f, 671.0062f), 135) { Mount = true }; - span9[1] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) { Fly = true }; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference19 = ref span8[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -212023,8 +254699,9 @@ public static class AssemblyQuestLoader num2 = 3; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span10 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Action, 2010149u, new Vector3(345.3573f, 58.457275f, -63.523376f), 135) { Fly = true, @@ -212033,34 +254710,48 @@ public static class AssemblyQuestLoader num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span11 = CollectionsMarshal.AsSpan(list28); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list28); + 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); obj20.CompletionQuestVariablesFlags = list28; reference20 = obj20; - ref QuestStep reference21 = ref span10[1]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Action, 2010150u, new Vector3(369.43604f, 64.59143f, -88.85327f), 135) { Fly = true, Action = EAction.HeavySwing }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span6 = CollectionsMarshal.AsSpan(list29); + 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); obj21.CompletionQuestVariablesFlags = list29; reference21 = obj21; - ref QuestStep reference22 = ref span10[2]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Action, 2010151u, new Vector3(360.95215f, 69.90149f, -119.06616f), 135) { Fly = true, @@ -212069,32 +254760,42 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list30); + 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); obj22.CompletionQuestVariablesFlags = list30; reference22 = obj22; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference23 = ref span8[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) { Fly = true }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span8[5]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 @@ -212102,28 +254803,34 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1030044u, new Vector3(435.8739f, 66.317635f, -276.56976f), 135) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030044u, new Vector3(435.8739f, 66.317635f, -276.56976f), 135) { Fly = true }; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span8[6]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Action, 1030046u, new Vector3(433.9818f, 66.317635f, -277.48535f), 135) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1030046u, new Vector3(433.9818f, 66.317635f, -277.48535f), 135) { DelaySecondsAtStart = 2f, Action = EAction.HeavySwing }; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference26 = ref span8[7]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -212131,7 +254838,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol @@ -212145,22 +254854,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "plogon_enjoyer"; questRoot5.Author = list35; - num = 6; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span14 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span14[0]; + index = 6; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span15 = CollectionsMarshal.AsSpan(list37); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -212172,10 +254885,12 @@ public static class AssemblyQuestLoader } } }; - span15[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span14[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -212183,29 +254898,35 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1029861u, new Vector3(-753.78046f, 123.728714f, 206.43921f), 400) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029861u, new Vector3(-753.78046f, 123.728714f, 206.43921f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference29 = ref span14[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2009923u, new Vector3(-114.0307f, 145.09802f, -553.2159f), 400) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009923u, new Vector3(-114.0307f, 145.09802f, -553.2159f), 400) { Fly = true, Land = true }; obj29.Steps = list39; reference29 = obj29; - ref QuestSequence reference30 = ref span14[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -212213,28 +254934,34 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1029862u, new Vector3(-93.27844f, 137.46214f, -534.44727f), 400) + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029862u, new Vector3(-93.27844f, 137.46214f, -534.44727f), 400) { Fly = true }; obj30.Steps = list40; reference30 = obj30; - ref QuestSequence reference31 = ref span14[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1029863u, new Vector3(746.6697f, 69.99995f, 533.135f), 621) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029863u, new Vector3(746.6697f, 69.99995f, 533.135f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj31.Steps = list41; reference31 = obj31; - ref QuestSequence reference32 = ref span14[5]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -212242,13 +254969,15 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span16 = CollectionsMarshal.AsSpan(list42); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.22748f, 222.08781f, 342.82468f), 155) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.22748f, 222.08781f, 342.82468f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj32.Steps = list42; reference32 = obj32; questRoot5.QuestSequence = list36; @@ -212258,21 +254987,26 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "plogon_enjoyer"; questRoot6.Author = list43; - num = 7; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span17 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span17[0]; + index = 7; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -212286,7 +255020,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span17[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -212294,7 +255029,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1030074u, new Vector3(192.58398f, -2.539064f, 73.59424f), 132) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030074u, new Vector3(192.58398f, -2.539064f, 73.59424f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -212305,22 +255042,26 @@ public static class AssemblyQuestLoader }; obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference35 = ref span17[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1030078u, new Vector3(-180.34644f, -1.2285838f, 341.6953f), 152) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030078u, new Vector3(-180.34644f, -1.2285838f, 341.6953f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list47; reference35 = obj35; - ref QuestSequence reference36 = ref span17[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -212328,7 +255069,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Say, 2010182u, new Vector3(-85.160645f, 6.0578003f, 398.64185f), 152) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 2010182u, new Vector3(-85.160645f, 6.0578003f, 398.64185f), 152) { Fly = true, ChatMessage = new ChatMessage @@ -212338,15 +255081,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list48; reference36 = obj36; - ref QuestSequence reference37 = ref span17[4]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Say, 2010183u, new Vector3(38.376343f, 7.2785034f, 430.28906f), 152) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 2010183u, new Vector3(38.376343f, 7.2785034f, 430.28906f), 152) { Fly = true, ChatMessage = new ChatMessage @@ -212356,7 +255102,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span17[5]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 @@ -212364,7 +255111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -212376,15 +255125,18 @@ public static class AssemblyQuestLoader }; obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span17[6]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) { StopDistance = 7f }; @@ -212397,13 +255149,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "plogon_enjoyer"; questRoot7.Author = list52; - num = 6; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span18 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span18[0]; + index = 6; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -212411,27 +255166,32 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { StopDistance = 4f }; obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span18[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1028418u, new Vector3(-242.26752f, -4f, 1.2054443f), 133) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028418u, new Vector3(-242.26752f, -4f, 1.2054443f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -212442,7 +255202,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference42 = ref span18[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -212450,28 +255211,34 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1028419u, new Vector3(-19.058533f, -32.58833f, 307.1488f), 148) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028419u, new Vector3(-19.058533f, -32.58833f, 307.1488f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj42.Steps = list56; reference42 = obj42; - ref QuestSequence reference43 = ref span18[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1028423u, new Vector3(-62.974f, -36.839226f, 473.3806f), 148) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028423u, new Vector3(-62.974f, -36.839226f, 473.3806f), 148) { Fly = true }; obj43.Steps = list57; reference43 = obj43; - ref QuestSequence reference44 = ref span18[4]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 @@ -212479,27 +255246,32 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1028424u, new Vector3(-19.85205f, -34.365856f, 416.76965f), 148) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028424u, new Vector3(-19.85205f, -34.365856f, 416.76965f), 148) { StopDistance = 7f }; obj44.Steps = list58; reference44 = obj44; - ref QuestSequence reference45 = ref span18[5]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span20 = CollectionsMarshal.AsSpan(list59); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { StopDistance = 4f }; @@ -212512,13 +255284,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "plogon_enjoyer"; questRoot8.Author = list60; - num = 8; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span21 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference46 = ref span21[0]; + index = 8; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -212526,7 +255301,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -212537,15 +255314,18 @@ public static class AssemblyQuestLoader }; obj46.Steps = list62; reference46 = obj46; - ref QuestSequence reference47 = ref span21[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AethernetShortcut = new AethernetShortcut @@ -212554,17 +255334,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num3 = 2; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span22 = CollectionsMarshal.AsSpan(list64); - span22[0] = new DialogueChoice + num4 = 2; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC007_03216_Q1_000_300"), Answer = new ExcelRef("TEXT_LUCKBC007_03216_A1_000_301") }; - span22[1] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC007_03216_Q1_000_100"), @@ -212574,7 +255356,8 @@ public static class AssemblyQuestLoader reference48 = obj48; obj47.Steps = list63; reference47 = obj47; - ref QuestSequence reference49 = ref span21[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -212582,21 +255365,27 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj49.Steps = list65; reference49 = obj49; - ref QuestSequence reference50 = ref span21[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1029866u, new Vector3(-173.08313f, 17.999998f, 74.906494f), 130); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029866u, new Vector3(-173.08313f, 17.999998f, 74.906494f), 130); obj50.Steps = list66; reference50 = obj50; - ref QuestSequence reference51 = ref span21[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -212604,21 +255393,26 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1029868u, new Vector3(-89.21954f, 39.99999f, 106.98096f), 131) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029868u, new Vector3(-89.21954f, 39.99999f, 106.98096f), 131) { StopDistance = 4f }; obj51.Steps = list67; reference51 = obj51; - ref QuestSequence reference52 = ref span21[5]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AethernetShortcut = new AethernetShortcut { @@ -212628,7 +255422,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list68; reference52 = obj52; - ref QuestSequence reference53 = ref span21[6]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 6 @@ -212636,18 +255431,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj53.Steps = list69; reference53 = obj53; - ref QuestSequence reference54 = ref span21[7]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AethernetShortcut = new AethernetShortcut { @@ -212664,13 +255464,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "plogon_enjoyer"; questRoot9.Author = list71; - num = 10; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span23 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span23[0]; + index = 10; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -212678,7 +255481,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -212689,24 +255494,28 @@ public static class AssemblyQuestLoader }; obj55.Steps = list73; reference55 = obj55; - ref QuestSequence reference56 = ref span23[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span24 = CollectionsMarshal.AsSpan(list74); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span24[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj56.Steps = list74; reference56 = obj56; - ref QuestSequence reference57 = ref span23[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -212714,7 +255523,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list75)[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2009742u, new Vector3(69.565796f, 17.807251f, 234.88208f), 153) { Fly = true, @@ -212724,29 +255535,35 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 10832u; + Span span7 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span7[num4] = 10832u; obj58.KillEnemyDataIds = list76; reference58 = obj58; obj57.Steps = list75; reference57 = obj57; - ref QuestSequence reference59 = ref span23[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span25 = CollectionsMarshal.AsSpan(list77); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span25[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj59.Steps = list77; reference59 = obj59; - ref QuestSequence reference60 = ref span23[4]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -212754,27 +255571,33 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj60.Steps = list78; reference60 = obj60; - ref QuestSequence reference61 = ref span23[5]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span26 = CollectionsMarshal.AsSpan(list79); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.67575f, 64.18076f, -163.79219f), 180) + index2 = 2; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.67575f, 64.18076f, -163.79219f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span26[1] = new QuestStep(EInteractionType.Interact, 1028097u, new Vector3(-276.56976f, 64.43479f, -161.18109f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028097u, new Vector3(-276.56976f, 64.43479f, -161.18109f), 180); obj61.Steps = list79; reference61 = obj61; - ref QuestSequence reference62 = ref span23[6]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 6 @@ -212782,27 +255605,33 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span27 = CollectionsMarshal.AsSpan(list80); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span27[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj62.Steps = list80; reference62 = obj62; - ref QuestSequence reference63 = ref span23[7]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj63.Steps = list81; reference63 = obj63; - ref QuestSequence reference64 = ref span23[8]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 8 @@ -212810,18 +255639,23 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1028373u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028373u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); obj64.Steps = list82; reference64 = obj64; - ref QuestSequence reference65 = ref span23[9]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj65.Steps = list83; reference65 = obj65; questRoot9.QuestSequence = list72; @@ -212831,13 +255665,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "plogon_enjoyer"; questRoot10.Author = list84; - num = 8; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span28 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span28[0]; + index = 8; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -212845,31 +255682,37 @@ public static class AssemblyQuestLoader num2 = 2; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span29 = CollectionsMarshal.AsSpan(list86); - span29[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj66.Steps = list86; reference66 = obj66; - ref QuestSequence reference67 = ref span28[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1030049u, new Vector3(-349.50793f, 57.270435f, -393.0572f), 180) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030049u, new Vector3(-349.50793f, 57.270435f, -393.0572f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj67.Steps = list87; reference67 = obj67; - ref QuestSequence reference68 = ref span28[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -212877,33 +255720,40 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2010173u, new Vector3(-310.0786f, 5.5999756f, -564.0803f), 180) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010173u, new Vector3(-310.0786f, 5.5999756f, -564.0803f), 180) { Fly = true }; obj68.Steps = list88; reference68 = obj68; - ref QuestSequence reference69 = ref span28[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span30 = CollectionsMarshal.AsSpan(list89); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.34204f, 4.9819174f, -570.3643f), 180) + index2 = 3; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.34204f, 4.9819174f, -570.3643f), 180) { Mount = true }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.3169f, 5.7642717f, -571.4899f), 180); - span30[2] = new QuestStep(EInteractionType.Interact, 2010175u, new Vector3(-302.72375f, 9.750427f, -578.02704f), 180) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.3169f, 5.7642717f, -571.4899f), 180); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010175u, new Vector3(-302.72375f, 9.750427f, -578.02704f), 180) { Fly = true }; obj69.Steps = list89; reference69 = obj69; - ref QuestSequence reference70 = ref span28[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -212911,33 +255761,40 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span31 = CollectionsMarshal.AsSpan(list90); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.7621f, 5.7733507f, -570.97736f), 180); - span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.3223f, 4.976821f, -570.7108f), 180); - span31[2] = new QuestStep(EInteractionType.Interact, 2010180u, new Vector3(-349.50793f, 57.236572f, -393.0572f), 180) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.7621f, 5.7733507f, -570.97736f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.3223f, 4.976821f, -570.7108f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010180u, new Vector3(-349.50793f, 57.236572f, -393.0572f), 180) { Fly = true }; obj70.Steps = list90; reference70 = obj70; - ref QuestSequence reference71 = ref span28[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span32 = CollectionsMarshal.AsSpan(list91); - span32[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span32[1] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj71.Steps = list91; reference71 = obj71; - ref QuestSequence reference72 = ref span28[6]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 6 @@ -212945,7 +255802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 2010181u, new Vector3(-77.28699f, 40.97046f, -138.78088f), 128) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010181u, new Vector3(-77.28699f, 40.97046f, -138.78088f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -212956,15 +255815,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list92; reference72 = obj72; - ref QuestSequence reference73 = ref span28[7]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030053u, new Vector3(-153.67358f, -129.4397f, 264.60657f), 129); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030053u, new Vector3(-153.67358f, -129.4397f, 264.60657f), 129); obj73.Steps = list93; reference73 = obj73; questRoot10.QuestSequence = list85; @@ -212974,13 +255836,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "plogon_enjoyer"; questRoot11.Author = list94; - num = 8; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span33 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference74 = ref span33[0]; + index = 8; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -212988,7 +255853,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213006,18 +255873,22 @@ public static class AssemblyQuestLoader }; obj74.Steps = list96; reference74 = obj74; - ref QuestSequence reference75 = ref span33[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 2009739u, new Vector3(-116.44165f, 15.121643f, -53.574463f), 418); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009739u, new Vector3(-116.44165f, 15.121643f, -53.574463f), 418); obj75.Steps = list97; reference75 = obj75; - ref QuestSequence reference76 = ref span33[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -213025,24 +255896,30 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj76.Steps = list98; reference76 = obj76; - ref QuestSequence reference77 = ref span33[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1014803u, new Vector3(484.39758f, 212.5841f, 724.2999f), 397) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014803u, new Vector3(484.39758f, 212.5841f, 724.2999f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj77.Steps = list99; reference77 = obj77; - ref QuestSequence reference78 = ref span33[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 @@ -213050,35 +255927,43 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2009740u, new Vector3(348.01245f, 158.34277f, 153.03271f), 397) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009740u, new Vector3(348.01245f, 158.34277f, 153.03271f), 397) { Fly = true }; obj78.Steps = list100; reference78 = obj78; - ref QuestSequence reference79 = ref span33[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference80 = ref CollectionsMarshal.AsSpan(list101)[0]; + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference80 = ref span3[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2009741u, new Vector3(504.72266f, 121.62964f, 162.005f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 10833u; + num4 = 1; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + span7 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span7[num3] = 10833u; obj80.KillEnemyDataIds = list102; reference80 = obj80; obj79.Steps = list101; reference79 = obj79; - ref QuestSequence reference81 = ref span33[6]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 6 @@ -213086,21 +255971,26 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1028096u, new Vector3(343.00745f, 158.52606f, 152.75806f), 397) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028096u, new Vector3(343.00745f, 158.52606f, 152.75806f), 397) { Fly = true }; obj81.Steps = list103; reference81 = obj81; - ref QuestSequence reference82 = ref span33[7]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213118,13 +256008,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "plogon_enjoyer"; questRoot12.Author = list105; - num = 9; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span34 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference83 = ref span34[0]; + index = 9; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -213132,7 +256025,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list107)[0]; + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -213152,7 +256047,9 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC012_03221_Q1_000_002"), @@ -213162,18 +256059,22 @@ public static class AssemblyQuestLoader reference84 = obj84; obj83.Steps = list107; reference83 = obj83; - ref QuestSequence reference85 = ref span34[1]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 2009976u, new Vector3(102.92212f, 15.915161f, 39.414062f), 418); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009976u, new Vector3(102.92212f, 15.915161f, 39.414062f), 418); obj85.Steps = list109; reference85 = obj85; - ref QuestSequence reference86 = ref span34[2]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -213181,7 +256082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1030087u, new Vector3(-182.51324f, 2.0332975f, -5.56958f), 418) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030087u, new Vector3(-182.51324f, 2.0332975f, -5.56958f), 418) { AethernetShortcut = new AethernetShortcut { @@ -213191,15 +256094,18 @@ public static class AssemblyQuestLoader }; obj86.Steps = list110; reference86 = obj86; - ref QuestSequence reference87 = ref span34[3]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1030088u, new Vector3(104.93628f, 34.72381f, 10.208252f), 418) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030088u, new Vector3(104.93628f, 34.72381f, 10.208252f), 418) { AethernetShortcut = new AethernetShortcut { @@ -213209,7 +256115,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list111; reference87 = obj87; - ref QuestSequence reference88 = ref span34[4]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -213217,7 +256124,9 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -213228,21 +256137,25 @@ public static class AssemblyQuestLoader }; obj88.Steps = list112; reference88 = obj88; - ref QuestSequence reference89 = ref span34[5]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj89.Steps = list113; reference89 = obj89; - ref QuestSequence reference90 = ref span34[6]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -213250,7 +256163,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1030089u, new Vector3(433.31042f, 68.09681f, -184.2832f), 135) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030089u, new Vector3(433.31042f, 68.09681f, -184.2832f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -213262,15 +256177,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list114; reference90 = obj90; - ref QuestSequence reference91 = ref span34[7]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Say, 2009979u, new Vector3(-95.10956f, 298.63428f, -212.54297f), 155) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 2009979u, new Vector3(-95.10956f, 298.63428f, -212.54297f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -213286,7 +256204,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list115; reference91 = obj91; - ref QuestSequence reference92 = ref span34[8]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -213294,7 +256213,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list116)[0]; + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -213304,10 +256225,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + span5 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC012_03221_Q3_000_192"), @@ -213324,21 +256247,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "plogon_enjoyer"; questRoot13.Author = list118; - num = 8; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span35 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference94 = ref span35[0]; + index = 8; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213349,7 +256277,8 @@ public static class AssemblyQuestLoader }; obj94.Steps = list120; reference94 = obj94; - ref QuestSequence reference95 = ref span35[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -213357,7 +256286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) { AethernetShortcut = new AethernetShortcut { @@ -213367,15 +256298,18 @@ public static class AssemblyQuestLoader }; obj95.Steps = list121; reference95 = obj95; - ref QuestSequence reference96 = ref span35[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1028385u, new Vector3(-48.17273f, 8.05915f, 15.762573f), 418) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028385u, new Vector3(-48.17273f, 8.05915f, 15.762573f), 418) { AethernetShortcut = new AethernetShortcut { @@ -213385,7 +256319,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list122; reference96 = obj96; - ref QuestSequence reference97 = ref span35[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 @@ -213393,7 +256328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1028386u, new Vector3(199.17603f, -5.3999653f, -57.38922f), 419) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028386u, new Vector3(199.17603f, -5.3999653f, -57.38922f), 419) { AethernetShortcut = new AethernetShortcut { @@ -213403,15 +256340,18 @@ public static class AssemblyQuestLoader }; obj97.Steps = list123; reference97 = obj97; - ref QuestSequence reference98 = ref span35[4]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1028388u, new Vector3(-4.989685f, 27.716667f, -130.9682f), 419) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028388u, new Vector3(-4.989685f, 27.716667f, -130.9682f), 419) { AethernetShortcut = new AethernetShortcut { @@ -213421,7 +256361,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list124; reference98 = obj98; - ref QuestSequence reference99 = ref span35[5]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 @@ -213429,31 +256370,37 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span36 = CollectionsMarshal.AsSpan(list125); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.48306f, 324.1f, -301.10074f), 155) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.48306f, 324.1f, -301.10074f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span36[1] = new QuestStep(EInteractionType.Interact, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155); obj99.Steps = list125; reference99 = obj99; - ref QuestSequence reference100 = ref span35[6]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Action, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155) { DelaySecondsAtStart = 2f, Action = EAction.AspectedBenefic }; obj100.Steps = list126; reference100 = obj100; - ref QuestSequence reference101 = ref span35[7]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -213461,7 +256408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028391u, new Vector3(199.4812f, -5.3999653f, -60.44104f), 419) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028391u, new Vector3(199.4812f, -5.3999653f, -60.44104f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213479,21 +256428,26 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "plogon_enjoyer"; questRoot14.Author = list128; - num = 6; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span37 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference102 = ref span37[0]; + index = 6; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -213504,7 +256458,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list130; reference102 = obj102; - ref QuestSequence reference103 = ref span37[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -213512,7 +256467,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -213523,15 +256480,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list131; reference103 = obj103; - ref QuestSequence reference104 = ref span37[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1030057u, new Vector3(-218.15833f, 31.684015f, 380.51416f), 140) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030057u, new Vector3(-218.15833f, 31.684015f, 380.51416f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -213542,7 +256502,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list132; reference104 = obj104; - ref QuestSequence reference105 = ref span37[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -213550,27 +256511,33 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) { Fly = true }; obj105.Steps = list133; reference105 = obj105; - ref QuestSequence reference106 = ref span37[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1030058u, new Vector3(-301.04523f, 13.9837475f, 292.8053f), 140) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030058u, new Vector3(-301.04523f, 13.9837475f, 292.8053f), 140) { Fly = true }; obj106.Steps = list134; reference106 = obj106; - ref QuestSequence reference107 = ref span37[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -213578,7 +256545,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -213596,27 +256565,33 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "plogon_enjoyer"; questRoot15.Author = list136; - num = 10; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span38 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference108 = ref span38[0]; + index = 10; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023610u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023610u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj108.Steps = list138; reference108 = obj108; - ref QuestSequence reference109 = ref span38[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -213624,28 +256599,34 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1028372u, new Vector3(599.23694f, 80.00001f, 623.07153f), 621) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028372u, new Vector3(599.23694f, 80.00001f, 623.07153f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj109.Steps = list139; reference109 = obj109; - ref QuestSequence reference110 = ref span38[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) { Fly = true }; obj110.Steps = list140; reference110 = obj110; - ref QuestSequence reference111 = ref span38[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 @@ -213653,7 +256634,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list141)[0]; + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1028379u, new Vector3(81.49841f, 10f, -574.2123f), 621) { Fly = true @@ -213661,7 +256644,9 @@ public static class AssemblyQuestLoader num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC015_03224_Q1_000_100"), @@ -213671,31 +256656,37 @@ public static class AssemblyQuestLoader reference112 = obj112; obj111.Steps = list141; reference111 = obj111; - ref QuestSequence reference113 = ref span38[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list143)[0]; + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference114 = ref span3[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Combat, 1030849u, new Vector3(124.40674f, 10f, -515.58716f), 621) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span39 = CollectionsMarshal.AsSpan(list144); - span39[0] = 10834u; - span39[1] = 10835u; + num4 = 2; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + span7 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span7[num3] = 10834u; + num3++; + span7[num3] = 10835u; obj114.KillEnemyDataIds = list144; reference114 = obj114; obj113.Steps = list143; reference113 = obj113; - ref QuestSequence reference115 = ref span38[5]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 5 @@ -213703,28 +256694,34 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) { Fly = true }; obj115.Steps = list145; reference115 = obj115; - ref QuestSequence reference116 = ref span38[6]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1028376u, new Vector3(-790.7988f, 78.22368f, -699.5804f), 621) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028376u, new Vector3(-790.7988f, 78.22368f, -699.5804f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj116.Steps = list146; reference116 = obj116; - ref QuestSequence reference117 = ref span38[7]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 7 @@ -213732,24 +256729,30 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621) { Fly = true }; obj117.Steps = list147; reference117 = obj117; - ref QuestSequence reference118 = ref span38[8]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621); obj118.Steps = list148; reference118 = obj118; - ref QuestSequence reference119 = ref span38[9]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -213757,7 +256760,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030677u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030677u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -213770,21 +256775,26 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "liza"; questRoot16.Author = list150; - num = 7; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span40 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference120 = ref span40[0]; + index = 7; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list152)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference121 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.AcceptQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { StopDistance = 5f, @@ -213800,7 +256810,9 @@ public static class AssemblyQuestLoader num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list153); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC016_03225_Q1_000_000"), @@ -213810,7 +256822,8 @@ public static class AssemblyQuestLoader reference121 = obj121; obj120.Steps = list152; reference120 = obj120; - ref QuestSequence reference122 = ref span40[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -213818,7 +256831,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -213829,15 +256844,18 @@ public static class AssemblyQuestLoader }; obj122.Steps = list154; reference122 = obj122; - ref QuestSequence reference123 = ref span40[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1029127u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029127u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -213848,7 +256866,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list155; reference123 = obj123; - ref QuestSequence reference124 = ref span40[3]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -213856,21 +256875,26 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj124.Steps = list156; reference124 = obj124; - ref QuestSequence reference125 = ref span40[4]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213881,7 +256905,8 @@ public static class AssemblyQuestLoader }; obj125.Steps = list157; reference125 = obj125; - ref QuestSequence reference126 = ref span40[5]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 5 @@ -213889,22 +256914,27 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1029128u, new Vector3(134.844f, 350.86508f, -386.1906f), 155) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029128u, new Vector3(134.844f, 350.86508f, -386.1906f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj126.Steps = list158; reference126 = obj126; - ref QuestSequence reference127 = ref span40[6]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -213917,13 +256947,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot17.Author = list160; - num = 6; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span41 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference128 = ref span41[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -213931,7 +256964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list162)[0]; + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1028738u, new Vector3(-104.32593f, 5.999999f, 195.97156f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -213943,10 +256978,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice + num4 = 1; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + span5 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_500"), @@ -213956,22 +256993,26 @@ public static class AssemblyQuestLoader reference129 = obj129; obj128.Steps = list162; reference128 = obj128; - ref QuestSequence reference130 = ref span41[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1028795u, new Vector3(-187.73181f, 46.387943f, -75.33386f), 134) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028795u, new Vector3(-187.73181f, 46.387943f, -75.33386f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj130.Steps = list164; reference130 = obj130; - ref QuestSequence reference131 = ref span41[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -213979,23 +257020,30 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); obj131.Steps = list165; reference131 = obj131; - ref QuestSequence reference132 = ref span41[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list166)[0]; + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference133 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list167); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_100"), @@ -214005,7 +257053,8 @@ public static class AssemblyQuestLoader reference133 = questStep; obj132.Steps = list166; reference132 = obj132; - ref QuestSequence reference134 = ref span41[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -214013,15 +257062,19 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list168)[0]; + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1028798u, new Vector3(-70.38995f, 20.000332f, 45.334473f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice + num4 = 1; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + span5 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_200"), @@ -214031,15 +257084,18 @@ public static class AssemblyQuestLoader reference135 = obj134; obj133.Steps = list168; reference134 = obj133; - ref QuestSequence reference136 = ref span41[5]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031099u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031099u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129); obj135.Steps = list170; reference136 = obj135; questRoot17.QuestSequence = list161; @@ -214049,13 +257105,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list171; - num = 6; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span42 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference137 = ref span42[0]; + index = 6; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -214063,7 +257122,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list173)[0]; + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference138 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -214087,14 +257148,16 @@ public static class AssemblyQuestLoader num3 = 2; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span43 = CollectionsMarshal.AsSpan(list174); - span43[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA102_03228_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKLA102_03228_A1_000_001") }; - span43[1] = new DialogueChoice + num4++; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA102_03228_Q2_000_000"), @@ -214104,22 +257167,26 @@ public static class AssemblyQuestLoader reference138 = obj137; obj136.Steps = list173; reference137 = obj136; - ref QuestSequence reference139 = ref span42[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1028450u, new Vector3(-311.94025f, 113.85077f, -824.4602f), 813) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028450u, new Vector3(-311.94025f, 113.85077f, -824.4602f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj138.Steps = list175; reference139 = obj138; - ref QuestSequence reference140 = ref span42[2]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 @@ -214127,28 +257194,34 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1028451u, new Vector3(-138.96393f, 58.34806f, -670.6798f), 816) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028451u, new Vector3(-138.96393f, 58.34806f, -670.6798f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj139.Steps = list176; reference140 = obj139; - ref QuestSequence reference141 = ref span42[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1028452u, new Vector3(-14.511353f, 104.487236f, -861.6312f), 816) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028452u, new Vector3(-14.511353f, 104.487236f, -861.6312f), 816) { Fly = true }; obj140.Steps = list177; reference141 = obj140; - ref QuestSequence reference142 = ref span42[4]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 4 @@ -214156,7 +257229,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214167,21 +257242,24 @@ public static class AssemblyQuestLoader }; obj141.Steps = list178; reference142 = obj141; - ref QuestSequence reference143 = ref span42[5]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span44 = CollectionsMarshal.AsSpan(list179); - span44[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27237u, ItemCount = 1 }; - span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819); obj142.Steps = list179; reference143 = obj142; questRoot18.QuestSequence = list172; @@ -214191,13 +257269,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list180; - num = 6; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span45 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference144 = ref span45[0]; + index = 6; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -214205,7 +257286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214227,15 +257310,18 @@ public static class AssemblyQuestLoader }; obj143.Steps = list182; reference144 = obj143; - ref QuestSequence reference145 = ref span45[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214245,7 +257331,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list183; reference145 = obj144; - ref QuestSequence reference146 = ref span45[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -214253,27 +257340,33 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span46 = CollectionsMarshal.AsSpan(list184); - span46[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27239u, ItemCount = 1 }; - span46[1] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); obj145.Steps = list184; reference146 = obj145; - ref QuestSequence reference147 = ref span45[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1028458u, new Vector3(-96.665955f, -4.200001f, 133.1654f), 819); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028458u, new Vector3(-96.665955f, -4.200001f, 133.1654f), 819); obj146.Steps = list185; reference147 = obj146; - ref QuestSequence reference148 = ref span45[4]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 4 @@ -214281,18 +257374,23 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); obj147.Steps = list186; reference148 = obj147; - ref QuestSequence reference149 = ref span45[5]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214309,13 +257407,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "plogon_enjoyer"; questRoot20.Author = list188; - num = 6; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span47 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference150 = ref span47[0]; + index = 6; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -214323,23 +257424,30 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); obj149.Steps = list190; reference150 = obj149; - ref QuestSequence reference151 = ref span47[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list191)[0]; + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1028326u, new Vector3(10.940674f, 20.186f, -142.53455f), 819); - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - CollectionsMarshal.AsSpan(list192)[0] = new DialogueChoice + num4 = 1; + List list192 = new List(num4); + CollectionsMarshal.SetCount(list192, num4); + span5 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA203_03232_Q1_000_000"), @@ -214349,7 +257457,8 @@ public static class AssemblyQuestLoader reference152 = questStep2; obj150.Steps = list191; reference151 = obj150; - ref QuestSequence reference153 = ref span47[2]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -214357,24 +257466,29 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span48 = CollectionsMarshal.AsSpan(list193); - span48[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27247u, ItemCount = 1 }; - span48[1] = new QuestStep(EInteractionType.Interact, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); obj151.Steps = list193; reference153 = obj151; - ref QuestSequence reference154 = ref span47[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214384,7 +257498,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list194; reference154 = obj152; - ref QuestSequence reference155 = ref span47[4]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 @@ -214392,18 +257507,23 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819); obj153.Steps = list195; reference155 = obj153; - ref QuestSequence reference156 = ref span47[5]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214420,13 +257540,16 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list197); + index = 0; + span[index] = "plogon_enjoyer"; questRoot21.Author = list197; - num = 7; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span49 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference157 = ref span49[0]; + index = 7; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + span2 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -214434,18 +257557,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); obj155.Steps = list199; reference157 = obj155; - ref QuestSequence reference158 = ref span49[1]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214455,7 +257583,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list200; reference158 = obj156; - ref QuestSequence reference159 = ref span49[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -214463,7 +257592,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Say, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) { ChatMessage = new ChatMessage { @@ -214472,24 +257603,28 @@ public static class AssemblyQuestLoader }; obj157.Steps = list201; reference159 = obj157; - ref QuestSequence reference160 = ref span49[3]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span50 = CollectionsMarshal.AsSpan(list202); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27253u, ItemCount = 1 }; - span50[1] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); obj158.Steps = list202; reference160 = obj158; - ref QuestSequence reference161 = ref span49[4]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -214497,29 +257632,35 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1028485u, new Vector3(-492.3934f, 69.70277f, 570.18384f), 816) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028485u, new Vector3(-492.3934f, 69.70277f, 570.18384f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj159.Steps = list203; reference161 = obj159; - ref QuestSequence reference162 = ref span49[5]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1028487u, new Vector3(337.84998f, 87.30014f, -710.65845f), 816) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028487u, new Vector3(337.84998f, 87.30014f, -710.65845f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj160.Steps = list204; reference162 = obj160; - ref QuestSequence reference163 = ref span49[6]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -214527,7 +257668,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214545,24 +257688,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "plogon_enjoyer"; questRoot22.Author = list206; - num = 7; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span51 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference164 = ref span51[0]; + index = 7; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); obj162.Steps = list208; reference164 = obj162; - ref QuestSequence reference165 = ref span51[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -214570,7 +257719,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214580,24 +257731,28 @@ public static class AssemblyQuestLoader }; obj163.Steps = list209; reference165 = obj163; - ref QuestSequence reference166 = ref span51[2]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span52 = CollectionsMarshal.AsSpan(list210); - span52[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27255u, ItemCount = 1 }; - span52[1] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); obj164.Steps = list210; reference166 = obj164; - ref QuestSequence reference167 = ref span51[3]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 @@ -214605,25 +257760,31 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1028489u, new Vector3(355.42847f, 3.8289368f, 224.17017f), 813) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028489u, new Vector3(355.42847f, 3.8289368f, 224.17017f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj165.Steps = list211; reference167 = obj165; - ref QuestSequence reference168 = ref span51[4]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1028491u, new Vector3(29.251465f, 36.20521f, -207.38544f), 819); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028491u, new Vector3(29.251465f, 36.20521f, -207.38544f), 819); obj166.Steps = list212; reference168 = obj166; - ref QuestSequence reference169 = ref span51[5]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 @@ -214631,7 +257792,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214641,15 +257804,18 @@ public static class AssemblyQuestLoader }; obj167.Steps = list213; reference169 = obj167; - ref QuestSequence reference170 = ref span51[6]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214666,13 +257832,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list215); + index = 0; + span[index] = "liza"; questRoot23.Author = list215; - num = 7; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span53 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference171 = ref span53[0]; + index = 7; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + span2 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -214680,7 +257849,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029900u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029900u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214698,15 +257869,18 @@ public static class AssemblyQuestLoader }; obj169.Steps = list217; reference171 = obj169; - ref QuestSequence reference172 = ref span53[1]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1029890u, new Vector3(738.796f, 22.936495f, 406.21033f), 813) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029890u, new Vector3(738.796f, 22.936495f, 406.21033f), 813) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -214717,7 +257891,8 @@ public static class AssemblyQuestLoader }; obj170.Steps = list218; reference172 = obj170; - ref QuestSequence reference173 = ref span53[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -214725,8 +257900,9 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span54 = CollectionsMarshal.AsSpan(list219); - span54[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(447.0961f, 13.008003f, 210.91484f), 813) + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(447.0961f, 13.008003f, 210.91484f), 813) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -214741,7 +257917,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference174 = ref span54[1]; + index2++; + ref QuestStep reference174 = ref span3[index2]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 2009942u, new Vector3(453.4828f, 13.626221f, 189.44067f), 813) { Fly = true, @@ -214750,23 +257927,29 @@ public static class AssemblyQuestLoader num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = 10853u; + span7 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span7[num4] = 10853u; obj172.KillEnemyDataIds = list220; reference174 = obj172; obj171.Steps = list219; reference173 = obj171; - ref QuestSequence reference175 = ref span53[3]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1029891u, new Vector3(445.27344f, 13.409448f, 204.42505f), 813); + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029891u, new Vector3(445.27344f, 13.409448f, 204.42505f), 813); obj173.Steps = list221; reference175 = obj173; - ref QuestSequence reference176 = ref span53[4]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -214774,8 +257957,9 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span55 = CollectionsMarshal.AsSpan(list222); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(412.249f, 7.472949f, 187.34154f), 813) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(412.249f, 7.472949f, 187.34154f), 813) { DisableNavmesh = true, Mount = true, @@ -214787,32 +257971,39 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference177 = ref span55[1]; + index2++; + ref QuestStep reference177 = ref span3[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Combat, 2009943u, new Vector3(633.6614f, 21.377869f, -267.93323f), 813) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = 10854u; + num4 = 1; + List list223 = new List(num4); + CollectionsMarshal.SetCount(list223, num4); + span7 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span7[num3] = 10854u; obj175.KillEnemyDataIds = list223; reference177 = obj175; obj174.Steps = list222; reference176 = obj174; - ref QuestSequence reference178 = ref span53[5]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1029892u, new Vector3(635.1262f, 20.257477f, -249.22565f), 813); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029892u, new Vector3(635.1262f, 20.257477f, -249.22565f), 813); obj176.Steps = list224; reference178 = obj176; - ref QuestSequence reference179 = ref span53[6]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -214820,7 +258011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214839,21 +258032,26 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "liza"; questRoot24.Author = list226; - num = 4; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span56 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference180 = ref span56[0]; + index = 4; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span2 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214871,7 +258069,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list228; reference180 = obj178; - ref QuestSequence reference181 = ref span56[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -214879,22 +258078,26 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj179.Steps = list229; reference181 = obj179; - ref QuestSequence reference182 = ref span56[2]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span57 = CollectionsMarshal.AsSpan(list230); - ref QuestStep reference183 = ref span57[0]; + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference183 = ref span3[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 1029895u, new Vector3(-317.43347f, 19.407524f, 404.3794f), 814) { Fly = true @@ -214902,36 +258105,50 @@ public static class AssemblyQuestLoader num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span58 = CollectionsMarshal.AsSpan(list231); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list231); + 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); obj181.CompletionQuestVariablesFlags = list231; reference183 = obj181; - ref QuestStep reference184 = ref span57[1]; + num2++; + ref QuestStep reference184 = ref span3[num2]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1029896u, new Vector3(-311.57397f, 17.772081f, 443.8086f), 814) { Mount = true, Fly = true }; - num3 = 6; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span59 = CollectionsMarshal.AsSpan(list232); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + span6 = CollectionsMarshal.AsSpan(list232); + 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); obj182.CompletionQuestVariablesFlags = list232; reference184 = obj182; obj180.Steps = list230; reference182 = obj180; - ref QuestSequence reference185 = ref span56[3]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -214939,7 +258156,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { Fly = true, NextQuestId = new QuestId(3245) @@ -214953,21 +258172,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "liza"; questRoot25.Author = list234; - num = 10; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span60 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference186 = ref span60[0]; + index = 10; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -214985,7 +258209,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list236; reference186 = obj184; - ref QuestSequence reference187 = ref span60[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -214993,8 +258218,9 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span61 = CollectionsMarshal.AsSpan(list237); - ref QuestStep reference188 = ref span61[0]; + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference188 = ref span3[index2]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(173.40976f, 58.977684f, 883.3417f), 814) { Fly = true @@ -215004,13 +258230,16 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 820; + span4 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span4[num4] = 820; skipStepConditions.InTerritory = list238; skipStepConditions.AetheryteUnlocked = EAetheryteLocation.Eulmore; skipConditions4.StepIf = skipStepConditions; obj186.SkipConditions = skipConditions4; reference188 = obj186; - span61[1] = new QuestStep(EInteractionType.Interact, 1029899u, new Vector3(34.561646f, 83.001076f, -67.00244f), 820) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029899u, new Vector3(34.561646f, 83.001076f, -67.00244f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, SkipConditions = new SkipConditions @@ -215023,21 +258252,25 @@ public static class AssemblyQuestLoader }; obj185.Steps = list237; reference187 = obj185; - ref QuestSequence reference189 = ref span60[2]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj187.Steps = list239; reference189 = obj187; - ref QuestSequence reference190 = ref span60[3]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 3 @@ -215045,54 +258278,72 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span62 = CollectionsMarshal.AsSpan(list240); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(271.6878f, 7.1558237f, -197.58272f), 815) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(271.6878f, 7.1558237f, -197.58272f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span62[1] = new QuestStep(EInteractionType.Interact, 1029898u, new Vector3(270.37463f, 7.1558247f, -196.30737f), 815); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029898u, new Vector3(270.37463f, 7.1558247f, -196.30737f), 815); obj188.Steps = list240; reference190 = obj188; - ref QuestSequence reference191 = ref span60[4]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span63 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference192 = ref span63[0]; + index2 = 2; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + ref QuestStep reference192 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1027876u, new Vector3(314.16797f, 1.4912677f, -255.60394f), 815); - num3 = 6; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - Span span64 = CollectionsMarshal.AsSpan(list242); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + span6 = CollectionsMarshal.AsSpan(list242); + 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); questStep3.CompletionQuestVariablesFlags = list242; reference192 = questStep3; - ref QuestStep reference193 = ref span63[1]; + num2++; + ref QuestStep reference193 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1029951u, new Vector3(303.82227f, 1.4685826f, -292.89697f), 815); num3 = 6; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - Span span65 = CollectionsMarshal.AsSpan(list243); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list243); + 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); questStep4.CompletionQuestVariablesFlags = list243; reference193 = questStep4; obj189.Steps = list241; reference191 = obj189; - ref QuestSequence reference194 = ref span60[5]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 5 @@ -215100,25 +258351,31 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1029953u, new Vector3(241.19922f, 4.0297f, -289.601f), 815); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029953u, new Vector3(241.19922f, 4.0297f, -289.601f), 815); obj190.Steps = list244; reference194 = obj190; - ref QuestSequence reference195 = ref span60[6]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 2009944u, new Vector3(476.18823f, -44.87683f, 229.96863f), 815) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009944u, new Vector3(476.18823f, -44.87683f, 229.96863f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj191.Steps = list245; reference195 = obj191; - ref QuestSequence reference196 = ref span60[7]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 7 @@ -215126,35 +258383,43 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list246)[0]; + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + ref QuestStep reference197 = ref span3[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(555.85315f, -50.899147f, 322.2599f), 815) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = 10855u; + num4 = 1; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + span7 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span7[num3] = 10855u; obj193.KillEnemyDataIds = list247; reference197 = obj193; obj192.Steps = list246; reference196 = obj192; - ref QuestSequence reference198 = ref span60[8]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1029957u, new Vector3(293.04944f, -42.796906f, 251.75854f), 815) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029957u, new Vector3(293.04944f, -42.796906f, 251.75854f), 815) { Fly = true }; obj194.Steps = list248; reference198 = obj194; - ref QuestSequence reference199 = ref span60[9]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -215162,13 +258427,15 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span66 = CollectionsMarshal.AsSpan(list249); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815) { NextQuestId = new QuestId(3246) }; @@ -215181,22 +258448,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list250); + index = 0; + span[index] = "liza"; questRoot26.Author = list250; - num = 7; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span67 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference200 = ref span67[0]; + index = 7; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + span2 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span68 = CollectionsMarshal.AsSpan(list252); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -215213,10 +258484,12 @@ public static class AssemblyQuestLoader } } }; - span68[1] = new QuestStep(EInteractionType.AcceptQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815); obj196.Steps = list252; reference200 = obj196; - ref QuestSequence reference201 = ref span67[1]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -215224,7 +258497,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list253)[0]; + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference202 = ref span3[index2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1029960u, new Vector3(-393.66754f, 52.333755f, 497.15417f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -215232,7 +258507,9 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list254); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA131_03246_Q2_000_000"), @@ -215242,34 +258519,43 @@ public static class AssemblyQuestLoader reference202 = obj198; obj197.Steps = list253; reference201 = obj197; - ref QuestSequence reference203 = ref span67[2]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span69 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference204 = ref span69[0]; + index2 = 2; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1027671u, new Vector3(-33.12738f, 105.68533f, -879.9115f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span70 = CollectionsMarshal.AsSpan(list256); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + span6 = CollectionsMarshal.AsSpan(list256); + 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); obj200.CompletionQuestVariablesFlags = list256; reference204 = obj200; - ref QuestStep reference205 = ref span69[1]; + num2++; + ref QuestStep reference205 = ref span3[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1027670u, new Vector3(32.028687f, 101.900696f, -857.87744f), 816) { Fly = true @@ -215277,18 +258563,25 @@ public static class AssemblyQuestLoader num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span71 = CollectionsMarshal.AsSpan(list257); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list257); + 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); obj201.CompletionQuestVariablesFlags = list257; reference205 = obj201; obj199.Steps = list255; reference203 = obj199; - ref QuestSequence reference206 = ref span67[3]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -215296,27 +258589,33 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1029961u, new Vector3(-93.736206f, 101.44155f, -834.9279f), 816) + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029961u, new Vector3(-93.736206f, 101.44155f, -834.9279f), 816) { Fly = true }; obj202.Steps = list258; reference206 = obj202; - ref QuestSequence reference207 = ref span67[4]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true }; obj203.Steps = list259; reference207 = obj203; - ref QuestSequence reference208 = ref span67[5]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 5 @@ -215324,30 +258623,37 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list260)[0]; + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, 2009946u, new Vector3(395.16284f, 62.05847f, -516.22797f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 10856u; + num4 = 1; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + span7 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span7[num3] = 10856u; obj205.KillEnemyDataIds = list261; reference209 = obj205; obj204.Steps = list260; reference208 = obj204; - ref QuestSequence reference210 = ref span67[6]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -215362,13 +258668,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot27.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span72 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference211 = ref span72[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -215376,7 +258685,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -215395,15 +258706,18 @@ public static class AssemblyQuestLoader }; obj207.Steps = list265; reference211 = obj207; - ref QuestSequence reference212 = ref span72[1]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list266)[0]; + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference213 = ref span3[num2]; QuestStep obj209 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029967u, new Vector3(-68.40625f, 105.29414f, -251.88074f), 816) { Fly = true @@ -215412,13 +258726,16 @@ public static class AssemblyQuestLoader num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = "AI doesn't pull enemies when spawning into the instance"; + span = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span[num4] = "AI doesn't pull enemies when spawning into the instance"; singlePlayerDutyOptions.Notes = list267; obj209.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference213 = obj209; obj208.Steps = list266; reference212 = obj208; - ref QuestSequence reference214 = ref span72[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -215426,7 +258743,9 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni @@ -215440,21 +258759,26 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list269); + index = 0; + span[index] = "liza"; questRoot28.Author = list269; - num = 5; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span73 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference215 = ref span73[0]; + index = 5; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + span2 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -215473,7 +258797,8 @@ public static class AssemblyQuestLoader }; obj211.Steps = list271; reference215 = obj211; - ref QuestSequence reference216 = ref span73[1]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -215481,12 +258806,14 @@ public static class AssemblyQuestLoader num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span74 = CollectionsMarshal.AsSpan(list272); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-823.0134f, 22.900805f, -55.223766f), 816) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-823.0134f, 22.900805f, -55.223766f), 816) { Fly = true }; - span74[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2009948u, new Vector3(-824.88745f, 23.11737f, -56.443176f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2009948u, new Vector3(-824.88745f, 23.11737f, -56.443176f), 816) { ItemId = 2002569u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -215496,26 +258823,31 @@ public static class AssemblyQuestLoader }; obj212.Steps = list272; reference216 = obj212; - span73[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference217 = ref span73[3]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj213.Steps = list273; reference217 = obj213; - ref QuestSequence reference218 = ref span73[4]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -215523,7 +258855,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -215541,21 +258875,26 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "Fifi"; + span = CollectionsMarshal.AsSpan(list275); + index = 0; + span[index] = "Fifi"; questRoot29.Author = list275; - num = 4; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span75 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference219 = ref span75[0]; + index = 4; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + span2 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028721u, new Vector3(-70.54254f, 20.000334f, 42.160645f), 129) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028721u, new Vector3(-70.54254f, 20.000334f, 42.160645f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -215568,7 +258907,8 @@ public static class AssemblyQuestLoader }; obj215.Steps = list277; reference219 = obj215; - ref QuestSequence reference220 = ref span75[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -215576,21 +258916,27 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1028723u, new Vector3(-112.13861f, 5.9999995f, 189.68481f), 129); + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028723u, new Vector3(-112.13861f, 5.9999995f, 189.68481f), 129); obj216.Steps = list278; reference220 = obj216; - ref QuestSequence reference221 = ref span75[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 2009763u, new Vector3(-112.01648f, 6.0272217f, 184.86304f), 129); + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009763u, new Vector3(-112.01648f, 6.0272217f, 184.86304f), 129); obj217.Steps = list279; reference221 = obj217; - ref QuestSequence reference222 = ref span75[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -215598,12 +258944,16 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list280)[0]; + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + ref QuestStep reference223 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129); - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new DialogueChoice + num4 = 1; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + span5 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKBB201_03249_Q1_000_000") @@ -215624,13 +258974,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Fifi"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Fifi"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -215638,7 +258991,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -215651,22 +259006,26 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1028730u, new Vector3(594.3236f, 23.968584f, 457.69434f), 137) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028730u, new Vector3(594.3236f, 23.968584f, 457.69434f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -215674,18 +259033,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028736u, new Vector3(481.65088f, 16.414907f, 447.95898f), 137); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028736u, new Vector3(481.65088f, 16.414907f, 447.95898f), 137); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) { NextQuestId = new QuestId(3251) }; @@ -215699,14 +259063,17 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "Fifi"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "Fifi"; questRoot3.Author = list7; QuestRoot questRoot4 = questRoot2; - num = 9; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 9; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -215714,7 +259081,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -215727,21 +259096,25 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -215749,7 +259122,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -215760,15 +259135,18 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1028746u, new Vector3(-148.39398f, 15.2938f, 286.82385f), 141) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028746u, new Vector3(-148.39398f, 15.2938f, 286.82385f), 141) { AethernetShortcut = new AethernetShortcut { @@ -215778,7 +259156,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 @@ -215786,32 +259165,38 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span3 = CollectionsMarshal.AsSpan(list13); - span3[0] = new QuestStep(EInteractionType.Interact, 1028747u, new Vector3(-73.47223f, 15.825686f, 323.35388f), 141) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028747u, new Vector3(-73.47223f, 15.825686f, 323.35388f), 141) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.Interact, 1028748u, new Vector3(-52.414795f, 15.300566f, 332.96704f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028748u, new Vector3(-52.414795f, 15.300566f, 332.96704f), 141) { Fly = true }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2009765u, new Vector3(-151.68994f, 15.6710205f, 289.66187f), 141) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009765u, new Vector3(-151.68994f, 15.6710205f, 289.66187f), 141) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 6 @@ -215819,7 +259204,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-73.36467f, -1.5503908f, 105.86304f), 141) { StopDistance = 0.5f, @@ -215829,23 +259216,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 10849u; + Span span4 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span4[index3] = 10849u; obj12.KillEnemyDataIds = list16; reference12 = obj12; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference13 = ref span2[7]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1028752u, new Vector3(-73.258606f, -1.5171797f, 105.241455f), 141); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028752u, new Vector3(-73.258606f, -1.5171797f, 105.241455f), 141); obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference14 = ref span2[8]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -215853,7 +259246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -215872,21 +259267,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "Fifi"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "Fifi"; questRoot5.Author = list19; - num = 7; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span4 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span4[0]; + index = 7; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -215904,7 +259304,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span4[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -215912,28 +259313,34 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span4[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1028762u, new Vector3(-184.49689f, 9.204633f, -34.958435f), 153) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028762u, new Vector3(-184.49689f, 9.204633f, -34.958435f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span4[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -215941,34 +259348,42 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 2009767u, new Vector3(-128.80145f, 9.964111f, -114.30542f), 153) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009767u, new Vector3(-128.80145f, 9.964111f, -114.30542f), 153) { Fly = true }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span4[4]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list25)[0]; + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-90.14485f, 1.276046f, -112.51637f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 10851u; + index3 = 1; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + span4 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span4[num3] = 10851u; obj20.KillEnemyDataIds = list26; reference20 = obj20; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference21 = ref span4[5]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -215976,21 +259391,26 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1028769u, new Vector3(-91.17267f, 0.92901844f, -121.38556f), 153) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028769u, new Vector3(-91.17267f, 0.92901844f, -121.38556f), 153) { StopDistance = 7f }; obj21.Steps = list27; reference21 = obj21; - ref QuestSequence reference22 = ref span4[6]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(3253) @@ -216004,13 +259424,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "Fifi"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "Fifi"; questRoot6.Author = list29; - num = 7; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span5 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span5[0]; + index = 7; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -216018,7 +259441,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -216031,15 +259456,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span5[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1028773u, new Vector3(-6.7597656f, 5.4756656f, 47.53174f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard @@ -216047,7 +259475,9 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBB231_03253_Q1_000_000"), @@ -216057,7 +259487,8 @@ public static class AssemblyQuestLoader reference25 = obj25; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference26 = ref span5[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -216065,25 +259496,31 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418); obj26.Steps = list34; reference26 = obj26; - ref QuestSequence reference27 = ref span5[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj27.Steps = list35; reference27 = obj27; - ref QuestSequence reference28 = ref span5[4]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 4 @@ -216091,34 +259528,42 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list36)[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 10852u, new Vector3(-48.600037f, 298.9f, -235.24835f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 10852u; + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + span4 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span4[num3] = 10852u; obj29.KillEnemyDataIds = list37; reference29 = obj29; obj28.Steps = list36; reference28 = obj28; - ref QuestSequence reference30 = ref span5[5]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) { StopDistance = 7f }; obj30.Steps = list38; reference30 = obj30; - ref QuestSequence reference31 = ref span5[6]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -216126,7 +259571,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(3254) @@ -216140,21 +259587,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "Fifi"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "Fifi"; questRoot7.Author = list40; - num = 6; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span6 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference32 = ref span6[0]; + index = 6; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -216167,7 +259619,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list42; reference32 = obj32; - ref QuestSequence reference33 = ref span6[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -216175,24 +259628,30 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj33.Steps = list43; reference33 = obj33; - ref QuestSequence reference34 = ref span6[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620); obj34.Steps = list44; reference34 = obj34; - ref QuestSequence reference35 = ref span6[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -216200,21 +259659,27 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span6[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span6[5]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -216222,7 +259687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028792u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028792u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -216243,24 +259710,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot8.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span7 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference38 = ref span7[0]; + index = 4; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030090u, new Vector3(-73.35016f, 1.5753315E-08f, 55.954834f), 819); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030090u, new Vector3(-73.35016f, 1.5753315E-08f, 55.954834f), 819); obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span7[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -216268,27 +259741,34 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj39.Steps = list51; reference39 = obj39; - ref QuestSequence reference40 = ref span7[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKRA101_03255_YESNO_001") @@ -216297,7 +259777,8 @@ public static class AssemblyQuestLoader reference41 = questStep; obj40.Steps = list52; reference40 = obj40; - ref QuestSequence reference42 = ref span7[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -216305,7 +259786,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878) { NextQuestId = new QuestId(3256) }; @@ -216318,24 +259801,30 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot9.Author = list55; - num = 4; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span8 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference43 = ref span8[0]; + index = 4; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878); obj42.Steps = list57; reference43 = obj42; - ref QuestSequence reference44 = ref span8[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -216343,7 +259832,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216352,18 +259843,22 @@ public static class AssemblyQuestLoader }; obj43.Steps = list58; reference44 = obj43; - ref QuestSequence reference45 = ref span8[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1030101u, new Vector3(-8.712891f, -2.498f, 13.137939f), 878); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030101u, new Vector3(-8.712891f, -2.498f, 13.137939f), 878); obj44.Steps = list59; reference45 = obj44; - ref QuestSequence reference46 = ref span8[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -216371,12 +259866,14 @@ public static class AssemblyQuestLoader num2 = 2; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span9 = CollectionsMarshal.AsSpan(list60); - span9[0] = new QuestStep(EInteractionType.Interact, 2009981u, new Vector3(-14.66394f, -2.609314f, 23.819275f), 878) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009981u, new Vector3(-14.66394f, -2.609314f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1030104u, new Vector3(101.57922f, -2.8675152E-14f, 94.346436f), 857) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030104u, new Vector3(101.57922f, -2.8675152E-14f, 94.346436f), 857) { NextQuestId = new QuestId(3257) }; @@ -216389,27 +259886,33 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; questRoot10.Author = list61; - num = 3; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span10 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference47 = ref span10[0]; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; obj46.Steps = list63; reference47 = obj46; - ref QuestSequence reference48 = ref span10[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -216417,7 +259920,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216426,15 +259931,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list64; reference48 = obj47; - ref QuestSequence reference49 = ref span10[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3258) @@ -216448,13 +259956,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot11.Author = list66; - num = 5; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span11 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span11[0]; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -216462,24 +259973,30 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; obj49.Steps = list68; reference50 = obj49; - ref QuestSequence reference51 = ref span11[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1030117u, new Vector3(-1.3580933f, -2.0308912f, -16.647583f), 878); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030117u, new Vector3(-1.3580933f, -2.0308912f, -16.647583f), 878); obj50.Steps = list69; reference51 = obj50; - ref QuestSequence reference52 = ref span11[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -216487,23 +260004,28 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span12 = CollectionsMarshal.AsSpan(list70); - span12[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span12[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj51.Steps = list70; reference52 = obj51; - ref QuestSequence reference53 = ref span11[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216512,7 +260034,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list71; reference53 = obj52; - ref QuestSequence reference54 = ref span11[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -216520,7 +260043,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3259) @@ -216534,27 +260059,33 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; questRoot12.Author = list73; - num = 4; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span13 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference55 = ref span13[0]; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030113u, new Vector3(-2.1210327f, -2.4980056f, 18.142944f), 878) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030113u, new Vector3(-2.1210327f, -2.4980056f, 18.142944f), 878) { StopDistance = 5f }; obj54.Steps = list75; reference55 = obj54; - ref QuestSequence reference56 = ref span13[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -216562,23 +260093,28 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span14 = CollectionsMarshal.AsSpan(list76); - span14[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span14[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj55.Steps = list76; reference56 = obj55; - ref QuestSequence reference57 = ref span13[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216587,7 +260123,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list77; reference57 = obj56; - ref QuestSequence reference58 = ref span13[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -216595,15 +260132,19 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list78)[0]; + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + ref QuestStep reference59 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span5 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKRA105_03259_Q2_000_000"), @@ -216621,27 +260162,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot13.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span15 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference60 = ref span15[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030118u, new Vector3(-3.8605957f, -2.497989f, 19.119507f), 878) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030118u, new Vector3(-3.8605957f, -2.497989f, 19.119507f), 878) { StopDistance = 5f }; obj59.Steps = list82; reference60 = obj59; - ref QuestSequence reference61 = ref span15[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -216649,21 +260196,27 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1030387u, new Vector3(31.967651f, 4.929005f, -9.10968f), 878); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030387u, new Vector3(31.967651f, 4.929005f, -9.10968f), 878); obj60.Steps = list83; reference61 = obj60; - ref QuestSequence reference62 = ref span15[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); obj61.Steps = list84; reference62 = obj61; - ref QuestSequence reference63 = ref span15[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -216671,12 +260224,14 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span16 = CollectionsMarshal.AsSpan(list85); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(270.40494f, 7.1558266f, -234.46175f), 815) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(270.40494f, 7.1558266f, -234.46175f), 815) { Fly = true }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1030121u, new Vector3(268.8181f, 7.1558256f, -233.66144f), 815) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030121u, new Vector3(268.8181f, 7.1558256f, -233.66144f), 815) { NextQuestId = new QuestId(3787) }; @@ -216689,21 +260244,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot14.Author = list86; - num = 5; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span17 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference64 = ref span17[0]; + index = 5; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029028u, new Vector3(15.6710205f, -1.5911946f, 37.704956f), 132) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029028u, new Vector3(15.6710205f, -1.5911946f, 37.704956f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -216716,7 +260276,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list88; reference64 = obj63; - ref QuestSequence reference65 = ref span17[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -216724,22 +260285,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 2010237u, new Vector3(-244.1596f, 5.935669f, 80.03345f), 152) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010237u, new Vector3(-244.1596f, 5.935669f, 80.03345f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj64.Steps = list89; reference65 = obj64; - ref QuestSequence reference66 = ref span17[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-218.21523f, 11.806735f, 18.429258f), 152) { StopDistance = 0.5f, @@ -216748,12 +260314,15 @@ public static class AssemblyQuestLoader num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 11125u; + span4 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span4[index3] = 11125u; obj66.KillEnemyDataIds = list91; reference67 = obj66; obj65.Steps = list90; reference66 = obj65; - ref QuestSequence reference68 = ref span17[3]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -216761,29 +260330,36 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1029029u, new Vector3(-214.64868f, 11.980015f, 25.40625f), 152) + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029029u, new Vector3(-214.64868f, 11.980015f, 25.40625f), 152) { StopDistance = 7f }; obj67.Steps = list92; reference68 = obj67; - ref QuestSequence reference69 = ref span17[4]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list93)[0]; + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.CompleteQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span5 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKBB101_03261_Q1_000_081") @@ -216801,14 +260377,17 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "liza"; questRoot15.Author = list95; QuestRoot questRoot16 = questRoot2; - num = 9; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span18 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference71 = ref span18[0]; + index = 9; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -216816,8 +260395,9 @@ public static class AssemblyQuestLoader num2 = 4; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span19 = CollectionsMarshal.AsSpan(list96); - span19[0] = new QuestStep(EInteractionType.EquipItem, null, null, 152) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, ItemId = 27357u, @@ -216836,7 +260416,8 @@ public static class AssemblyQuestLoader } } }; - span19[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f, Fly = true, @@ -216852,28 +260433,34 @@ public static class AssemblyQuestLoader } } }; - span19[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 152); - span19[3] = new QuestStep(EInteractionType.AcceptQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f }; obj70.Steps = list96; reference71 = obj70; - ref QuestSequence reference72 = ref span18[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1029035u, new Vector3(35.50769f, -8f, 115.31238f), 132) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029035u, new Vector3(35.50769f, -8f, 115.31238f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj71.Steps = list97; reference72 = obj71; - ref QuestSequence reference73 = ref span18[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -216881,7 +260468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1029037u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029037u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) { AethernetShortcut = new AethernetShortcut { @@ -216891,16 +260480,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference73 = obj72; - ref QuestSequence reference74 = ref span18[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span20 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference75 = ref span20[0]; + index2 = 3; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference75 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1000288u, new Vector3(-62.028015f, 7.175424f, -117.60132f), 133) { AethernetShortcut = new AethernetShortcut @@ -216912,46 +260503,67 @@ public static class AssemblyQuestLoader num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span21 = CollectionsMarshal.AsSpan(list100); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list100; reference75 = obj74; - ref QuestStep reference76 = ref span20[1]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span22 = CollectionsMarshal.AsSpan(list101); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + span6 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list101; reference76 = questStep2; - ref QuestStep reference77 = ref span20[2]; + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1003063u, new Vector3(-37.979797f, 7.439375f, -139.60486f), 133); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span23 = CollectionsMarshal.AsSpan(list102); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list102; reference77 = questStep3; obj73.Steps = list99; reference74 = obj73; - ref QuestSequence reference78 = ref span18[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 @@ -216959,18 +260571,23 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1029041u, new Vector3(-93.98035f, 7.1111856f, -131.33447f), 133); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029041u, new Vector3(-93.98035f, 7.1111856f, -131.33447f), 133); obj75.Steps = list103; reference78 = obj75; - ref QuestSequence reference79 = ref span18[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029089u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029089u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) { AethernetShortcut = new AethernetShortcut { @@ -216980,11 +260597,13 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference79 = obj76; - span18[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference80 = ref span18[7]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 7 @@ -216992,8 +260611,9 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span24 = CollectionsMarshal.AsSpan(list105); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-232.38095f, 2.3337264f, -205.92738f), 133) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-232.38095f, 2.3337264f, -205.92738f), 133) { AethernetShortcut = new AethernetShortcut { @@ -217001,21 +260621,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBotanist } }; - span24[1] = new QuestStep(EInteractionType.Interact, 1029043u, new Vector3(-232.25757f, 2.4186904f, -210.98651f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029043u, new Vector3(-232.25757f, 2.4186904f, -210.98651f), 133) { StopDistance = 7f }; obj77.Steps = list105; reference80 = obj77; - ref QuestSequence reference81 = ref span18[8]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -217035,22 +260659,27 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot17.Author = list107; QuestRoot questRoot18 = questRoot2; - num = 7; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span25 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference82 = ref span25[0]; + index = 7; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -217066,17 +260695,20 @@ public static class AssemblyQuestLoader } } }; - obj79.Steps = list108; + obj79.Steps = list109; reference82 = obj79; - ref QuestSequence reference83 = ref span25[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1029054u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029054u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -217085,85 +260717,102 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - obj80.Steps = list109; + obj80.Steps = list110; reference83 = obj80; - ref QuestSequence reference84 = ref span25[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span26 = CollectionsMarshal.AsSpan(list110); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.96822f, 4.0220823f, 44.280655f), 131); - span26[1] = new QuestStep(EInteractionType.Interact, 1029058u, new Vector3(17.898804f, 15.620378f, 418.66174f), 141) + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.96822f, 4.0220823f, 44.280655f), 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029058u, new Vector3(17.898804f, 15.620378f, 418.66174f), 141) { Fly = true }; - obj81.Steps = list110; + obj81.Steps = list111; reference84 = obj81; - ref QuestSequence reference85 = ref span25[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span27 = CollectionsMarshal.AsSpan(list111); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.12845f, -31.54935f, 173.07193f), 145) + index2 = 2; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.12845f, -31.54935f, 173.07193f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span27[1] = new QuestStep(EInteractionType.Interact, 1029062u, new Vector3(-306.11127f, -31.525063f, 171.6792f), 145); - obj82.Steps = list111; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029062u, new Vector3(-306.11127f, -31.525063f, 171.6792f), 145); + obj82.Steps = list112; reference85 = obj82; - ref QuestSequence reference86 = ref span25[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list112)[0]; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(-292.66827f, -32.554207f, 158.0957f), 145) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span28 = CollectionsMarshal.AsSpan(list113); - span28[0] = 11126u; - span28[1] = 11127u; - obj84.KillEnemyDataIds = list113; + index3 = 2; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span4 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span4[num3] = 11126u; + num3++; + span4[num3] = 11127u; + obj84.KillEnemyDataIds = list114; reference87 = obj84; - obj83.Steps = list112; + obj83.Steps = list113; reference86 = obj83; - ref QuestSequence reference88 = ref span25[5]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1029070u, new Vector3(-293.2937f, -32.53709f, 157.88501f), 145); - obj85.Steps = list114; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029070u, new Vector3(-293.2937f, -32.53709f, 157.88501f), 145); + obj85.Steps = list115; reference88 = obj85; - ref QuestSequence reference89 = ref span25[6]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -217173,32 +260822,37 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3264) }; - obj86.Steps = list115; + obj86.Steps = list116; reference89 = obj86; - questRoot18.QuestSequence = list8; + questRoot18.QuestSequence = list108; AddQuest(questId14, questRoot2); QuestId questId15 = new QuestId(3264); questRoot2 = new QuestRoot(); QuestRoot questRoot19 = questRoot2; num = 1; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; - questRoot19.Author = list116; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "liza"; + questRoot19.Author = list117; QuestRoot questRoot20 = questRoot2; - num = 10; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span29 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference90 = ref span29[0]; + index = 10; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list117)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj88 = new QuestStep(EInteractionType.AcceptQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -217214,120 +260868,155 @@ public static class AssemblyQuestLoader InSameTerritory = true }; num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = 128; - obj89.InTerritory = list118; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + Span span7 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span7[index3] = 128; + obj89.InTerritory = list119; skipConditions.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions; reference91 = obj88; - obj87.Steps = list117; + obj87.Steps = list118; reference90 = obj87; - ref QuestSequence reference92 = ref span29[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span30 = CollectionsMarshal.AsSpan(list119); - span30[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129); - obj90.Steps = list119; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129); + obj90.Steps = list120; reference92 = obj90; - ref QuestSequence reference93 = ref span29[2]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span31 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference94 = ref span31[0]; + index2 = 3; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span32 = CollectionsMarshal.AsSpan(list121); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list121; + index3 = 6; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + span6 = CollectionsMarshal.AsSpan(list122); + 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); + questStep4.CompletionQuestVariablesFlags = list122; reference94 = questStep4; - ref QuestStep reference95 = ref span31[1]; + num2++; + ref QuestStep reference95 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span33 = CollectionsMarshal.AsSpan(list122); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list122; - reference95 = questStep5; - ref QuestStep reference96 = ref span31[2]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129); - num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span34 = CollectionsMarshal.AsSpan(list123); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list123; + span6 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list123; + reference95 = questStep5; + num2++; + ref QuestStep reference96 = ref span3[num2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129); + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + span6 = CollectionsMarshal.AsSpan(list124); + 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); + questStep6.CompletionQuestVariablesFlags = list124; reference96 = questStep6; - obj91.Steps = list120; + obj91.Steps = list121; reference93 = obj91; - ref QuestSequence reference97 = ref span29[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1029081u, new Vector3(-153.8263f, 18.2f, 22.842712f), 129); - obj92.Steps = list124; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029081u, new Vector3(-153.8263f, 18.2f, 22.842712f), 129); + obj92.Steps = list125; reference97 = obj92; - ref QuestSequence reference98 = ref span29[4]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1029085u, new Vector3(111.10095f, 22.880848f, 635.7976f), 135) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029085u, new Vector3(111.10095f, 22.880848f, 635.7976f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - obj93.Steps = list125; + obj93.Steps = list126; reference98 = obj93; - ref QuestSequence reference99 = ref span29[5]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 5 }; num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span35 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference100 = ref span35[0]; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference100 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2010241u, new Vector3(-34.53119f, 46.92151f, 541.22217f), 135) { StopDistance = 0.5f, @@ -217335,97 +261024,126 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 11128u; - obj95.KillEnemyDataIds = list127; - num3 = 6; - List list128 = new List(num3); + 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; + span4 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span4[index3] = 11128u; + obj95.KillEnemyDataIds = list128; + index3 = 6; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span6 = CollectionsMarshal.AsSpan(list129); + 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); + obj95.CompletionQuestVariablesFlags = list129; reference100 = obj95; - ref QuestStep reference101 = ref span35[1]; + index2++; + ref QuestStep reference101 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2010242u, new Vector3(-59.006653f, 57.297607f, 492.14917f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 2; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span37 = CollectionsMarshal.AsSpan(list129); - span37[0] = 11129u; - span37[1] = 11130u; - obj96.KillEnemyDataIds = list129; - num3 = 6; - List list130 = new List(num3); + 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; + span4 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span4[index3] = 11129u; + index3++; + span4[index3] = 11130u; + obj96.KillEnemyDataIds = list130; + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span6 = CollectionsMarshal.AsSpan(list131); + 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); + obj96.CompletionQuestVariablesFlags = list131; reference101 = obj96; - obj94.Steps = list126; + obj94.Steps = list127; reference99 = obj94; - ref QuestSequence reference102 = ref span29[6]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 2010243u, new Vector3(-15.6710205f, 66.36145f, 431.63184f), 135) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010243u, new Vector3(-15.6710205f, 66.36145f, 431.63184f), 135) { Fly = true }; - obj97.Steps = list131; + obj97.Steps = list132; reference102 = obj97; - ref QuestSequence reference103 = ref span29[7]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1029092u, new Vector3(322.37732f, 75.949196f, -322.43848f), 135) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029092u, new Vector3(322.37732f, 75.949196f, -322.43848f), 135) { Fly = true }; - obj98.Steps = list132; + obj98.Steps = list133; reference103 = obj98; - ref QuestSequence reference104 = ref span29[8]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1029094u, new Vector3(-35.81299f, 71.33129f, 124.6814f), 135); - obj99.Steps = list133; + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029094u, new Vector3(-35.81299f, 71.33129f, 124.6814f), 135); + obj99.Steps = list134; reference104 = obj99; - ref QuestSequence reference105 = ref span29[9]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217435,7 +261153,7 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3265) }; - obj100.Steps = list134; + obj100.Steps = list135; reference105 = obj100; questRoot20.QuestSequence = list8; AddQuest(questId15, questRoot2); @@ -217443,24 +261161,29 @@ public static class AssemblyQuestLoader questRoot2 = new QuestRoot(); QuestRoot questRoot21 = questRoot2; num = 1; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; - questRoot21.Author = list135; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "liza"; + questRoot21.Author = list136; QuestRoot questRoot22 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span39 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference106 = ref span39[0]; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217476,17 +261199,20 @@ public static class AssemblyQuestLoader } } }; - obj101.Steps = list136; + obj101.Steps = list137; reference106 = obj101; - ref QuestSequence reference107 = ref span39[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) { AethernetShortcut = new AethernetShortcut { @@ -217494,186 +261220,235 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj102.Steps = list137; + obj102.Steps = list138; reference107 = obj102; - ref QuestSequence reference108 = ref span39[2]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1029106u, new Vector3(207.35486f, 307.86218f, 424.6432f), 155) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029106u, new Vector3(207.35486f, 307.86218f, 424.6432f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj103.Steps = list138; + obj103.Steps = list139; reference108 = obj103; - ref QuestSequence reference109 = ref span39[3]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1029109u, new Vector3(213.09216f, 222.50911f, 291.73718f), 155) + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029109u, new Vector3(213.09216f, 222.50911f, 291.73718f), 155) { Fly = true }; - obj104.Steps = list139; + obj104.Steps = list140; reference109 = obj104; - ref QuestSequence reference110 = ref span39[4]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span40 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference111 = ref span40[0]; + index2 = 3; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2010298u, new Vector3(252.64355f, 246.96729f, 189.53223f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 11131u; - obj106.KillEnemyDataIds = list141; - num3 = 6; - List list142 = new List(num3); + 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; + span4 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span4[index3] = 11131u; + obj106.KillEnemyDataIds = list142; + index3 = 6; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + span6 = CollectionsMarshal.AsSpan(list143); + 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); + obj106.CompletionQuestVariablesFlags = list143; reference111 = obj106; - ref QuestStep reference112 = ref span40[1]; + num2++; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2010299u, new Vector3(163.25623f, 274.3114f, 5.2643433f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span42 = CollectionsMarshal.AsSpan(list143); - span42[0] = 11132u; - span42[1] = 11133u; - obj107.KillEnemyDataIds = list143; - num3 = 6; - List list144 = new List(num3); + 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; + span4 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span4[index3] = 11132u; + index3++; + span4[index3] = 11133u; + obj107.KillEnemyDataIds = list144; + index3 = 6; + List list145 = new List(index3); + CollectionsMarshal.SetCount(list145, index3); + span6 = CollectionsMarshal.AsSpan(list145); + 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); + obj107.CompletionQuestVariablesFlags = list145; reference112 = obj107; - ref QuestStep reference113 = ref span40[2]; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2010300u, new Vector3(285.3894f, 299.97705f, -78.66034f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 3; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span44 = CollectionsMarshal.AsSpan(list145); - span44[0] = 11134u; - span44[1] = 11135u; - span44[2] = 11136u; - obj108.KillEnemyDataIds = list145; - num3 = 6; - List list146 = new List(num3); + 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; + span4 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span4[index3] = 11134u; + index3++; + span4[index3] = 11135u; + index3++; + span4[index3] = 11136u; + obj108.KillEnemyDataIds = list146; + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + span6 = CollectionsMarshal.AsSpan(list147); + 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); + obj108.CompletionQuestVariablesFlags = list147; reference113 = obj108; - obj105.Steps = list140; + obj105.Steps = list141; reference110 = obj105; - ref QuestSequence reference114 = ref span39[5]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 2010301u, new Vector3(240.28369f, 302.02173f, -174.88367f), 155) + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010301u, new Vector3(240.28369f, 302.02173f, -174.88367f), 155) { Fly = true }; - obj109.Steps = list147; + obj109.Steps = list148; reference114 = obj109; - ref QuestSequence reference115 = ref span39[6]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2010302u, new Vector3(-653.3761f, 224.26172f, -40.421204f), 155) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010302u, new Vector3(-653.3761f, 224.26172f, -40.421204f), 155) { Fly = true }; - obj110.Steps = list148; + obj110.Steps = list149; reference115 = obj110; - ref QuestSequence reference116 = ref span39[7]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) { NextQuestId = new QuestId(3266) }; - obj111.Steps = list149; + obj111.Steps = list150; reference116 = obj111; questRoot22.QuestSequence = list8; AddQuest(questId16, questRoot2); QuestId questId17 = new QuestId(3266); QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; - questRoot23.Author = list150; - num = 6; - List list151 = new List(num); + List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span46 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference117 = ref span46[0]; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; + questRoot23.Author = list151; + index = 6; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217689,17 +261464,20 @@ public static class AssemblyQuestLoader } } }; - obj112.Steps = list152; + obj112.Steps = list153; reference117 = obj112; - ref QuestSequence reference118 = ref span46[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1029120u, new Vector3(-56.01587f, 15.140585f, -35.324707f), 418) + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029120u, new Vector3(-56.01587f, 15.140585f, -35.324707f), 418) { AethernetShortcut = new AethernetShortcut { @@ -217707,36 +261485,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj113.Steps = list153; + obj113.Steps = list154; reference118 = obj113; - ref QuestSequence reference119 = ref span46[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029121u, new Vector3(-266.4378f, 92.16852f, -501.854f), 397) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029121u, new Vector3(-266.4378f, 92.16852f, -501.854f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj114.Steps = list154; + obj114.Steps = list155; reference119 = obj114; - span46[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference120 = ref span46[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1029113u, new Vector3(55.649536f, 23.979126f, 9.689453f), 418) + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029113u, new Vector3(55.649536f, 23.979126f, 9.689453f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217745,44 +261530,52 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj115.Steps = list155; + obj115.Steps = list156; reference120 = obj115; - ref QuestSequence reference121 = ref span46[5]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { StopDistance = 5f }; - obj116.Steps = list156; + obj116.Steps = list157; reference121 = obj116; - questRoot23.QuestSequence = list151; + questRoot23.QuestSequence = list152; AddQuest(questId17, questRoot23); QuestId questId18 = new QuestId(3267); QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "Cacahuetes"; - questRoot24.Author = list157; - num = 5; - List list158 = new List(num); + List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span47 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference122 = ref span47[0]; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "Cacahuetes"; + questRoot24.Author = list158; + index = 5; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029998u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029998u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -217798,64 +261591,78 @@ public static class AssemblyQuestLoader } } }; - obj117.Steps = list159; + obj117.Steps = list160; reference122 = obj117; - ref QuestSequence reference123 = ref span47[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1029999u, new Vector3(346.66968f, 3.2878497f, 177.17249f), 813) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029999u, new Vector3(346.66968f, 3.2878497f, 177.17249f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; - obj118.Steps = list160; + obj118.Steps = list161; reference123 = obj118; - ref QuestSequence reference124 = ref span47[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list161)[0]; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference125 = ref span3[index2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, null, new Vector3(340.6667f, 3.0521033f, 208.3552f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 10865u; - obj120.KillEnemyDataIds = list162; + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + span4 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span4[index3] = 10865u; + obj120.KillEnemyDataIds = list163; reference125 = obj120; - obj119.Steps = list161; + obj119.Steps = list162; reference124 = obj119; - ref QuestSequence reference126 = ref span47[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1030000u, new Vector3(341.02393f, 3.5819468f, 198.32141f), 813); - obj121.Steps = list163; + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030000u, new Vector3(341.02393f, 3.5819468f, 198.32141f), 813); + obj121.Steps = list164; reference126 = obj121; - ref QuestSequence reference127 = ref span47[4]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + List list165 = new List(num2); + CollectionsMarshal.SetCount(list165, num2); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -217872,30 +261679,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3268) }; - obj122.Steps = list164; + obj122.Steps = list165; reference127 = obj122; - questRoot24.QuestSequence = list158; + questRoot24.QuestSequence = list159; AddQuest(questId18, questRoot24); QuestId questId19 = new QuestId(3268); QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "Cacahuetes"; - questRoot25.Author = list165; - num = 6; - List list166 = new List(num); + List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span48 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference128 = ref span48[0]; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "Cacahuetes"; + questRoot25.Author = list166; + index = 6; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -217911,89 +261723,108 @@ public static class AssemblyQuestLoader } } }; - obj123.Steps = list167; + obj123.Steps = list168; reference128 = obj123; - ref QuestSequence reference129 = ref span48[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1030004u, new Vector3(689.1127f, 30.11682f, 278.85852f), 814) + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030004u, new Vector3(689.1127f, 30.11682f, 278.85852f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; - obj124.Steps = list168; + obj124.Steps = list169; reference129 = obj124; - ref QuestSequence reference130 = ref span48[2]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list169)[0]; + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference131 = ref span3[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2009999u, new Vector3(529.3812f, 11.9782715f, 370.83997f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = 10866u; - obj126.KillEnemyDataIds = list170; + index3 = 1; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + span4 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span4[num3] = 10866u; + obj126.KillEnemyDataIds = list171; reference131 = obj126; - obj125.Steps = list169; + obj125.Steps = list170; reference130 = obj125; - ref QuestSequence reference132 = ref span48[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list171)[0]; + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + ref QuestStep reference133 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2010000u, new Vector3(342.48877f, 16.55597f, 454.24573f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = 10867u; - obj128.KillEnemyDataIds = list172; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + span4 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span4[index3] = 10867u; + obj128.KillEnemyDataIds = list173; reference133 = obj128; - obj127.Steps = list171; + obj127.Steps = list172; reference132 = obj127; - ref QuestSequence reference134 = ref span48[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1030006u, new Vector3(181.59753f, 33.636906f, 177.47766f), 814) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030006u, new Vector3(181.59753f, 33.636906f, 177.47766f), 814) { Fly = true }; - obj129.Steps = list173; + obj129.Steps = list174; reference134 = obj129; - ref QuestSequence reference135 = ref span48[5]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218010,30 +261841,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3269) }; - obj130.Steps = list174; + obj130.Steps = list175; reference135 = obj130; - questRoot25.QuestSequence = list166; + questRoot25.QuestSequence = list167; AddQuest(questId19, questRoot25); QuestId questId20 = new QuestId(3269); QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "Cacahuetes"; - questRoot26.Author = list175; - num = 6; - List list176 = new List(num); + List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span49 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference136 = ref span49[0]; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "Cacahuetes"; + questRoot26.Author = list176; + index = 6; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218049,85 +261885,102 @@ public static class AssemblyQuestLoader } } }; - obj131.Steps = list177; + obj131.Steps = list178; reference136 = obj131; - ref QuestSequence reference137 = ref span49[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1030012u, new Vector3(279.469f, 1.4685827f, -281.94098f), 815) + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030012u, new Vector3(279.469f, 1.4685827f, -281.94098f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - obj132.Steps = list178; + obj132.Steps = list179; reference137 = obj132; - ref QuestSequence reference138 = ref span49[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list179)[0]; + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + ref QuestStep reference139 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2010002u, new Vector3(279.65198f, 1.4800415f, -282.7345f), 815) { StopDistance = 4f }; - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice + index3 = 1; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + span5 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA221_03269_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKBA221_03269_A1_000_002") }; - obj134.DialogueChoices = list180; + obj134.DialogueChoices = list181; reference139 = obj134; - obj133.Steps = list179; + obj133.Steps = list180; reference138 = obj133; - ref QuestSequence reference140 = ref span49[3]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1030013u, new Vector3(612.3292f, -25.655535f, -36.66742f), 815) + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030013u, new Vector3(612.3292f, -25.655535f, -36.66742f), 815) { Fly = true }; - obj135.Steps = list181; + obj135.Steps = list182; reference140 = obj135; - ref QuestSequence reference141 = ref span49[4]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1030014u, new Vector3(614.46545f, -25.7535f, -35.6604f), 815) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030014u, new Vector3(614.46545f, -25.7535f, -35.6604f), 815) { StopDistance = 4f }; - obj136.Steps = list182; + obj136.Steps = list183; reference141 = obj136; - ref QuestSequence reference142 = ref span49[5]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218144,30 +261997,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3270) }; - obj137.Steps = list183; + obj137.Steps = list184; reference142 = obj137; - questRoot26.QuestSequence = list176; + questRoot26.QuestSequence = list177; AddQuest(questId20, questRoot26); QuestId questId21 = new QuestId(3270); QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "AUTHOR"; - questRoot27.Author = list184; - num = 7; - List list185 = new List(num); + List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - Span span50 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference143 = ref span50[0]; + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "AUTHOR"; + questRoot27.Author = list185; + index = 7; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218183,93 +262041,113 @@ public static class AssemblyQuestLoader } } }; - obj138.Steps = list186; + obj138.Steps = list187; reference143 = obj138; - ref QuestSequence reference144 = ref span50[1]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1030015u, new Vector3(-83.05487f, -19.061518f, 309.83435f), 817) + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030015u, new Vector3(-83.05487f, -19.061518f, 309.83435f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - obj139.Steps = list187; + obj139.Steps = list188; reference144 = obj139; - ref QuestSequence reference145 = ref span50[2]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list188)[0]; + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + ref QuestStep reference146 = ref span3[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, 2010003u, new Vector3(263.9048f, 12.436096f, 103.990234f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = 10950u; - obj141.KillEnemyDataIds = list189; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + span4 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span4[index3] = 10950u; + obj141.KillEnemyDataIds = list190; reference146 = obj141; - obj140.Steps = list188; + obj140.Steps = list189; reference145 = obj140; - ref QuestSequence reference147 = ref span50[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list190)[0]; + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + ref QuestStep reference148 = ref span3[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, 2010004u, new Vector3(446.0669f, 8.041443f, 123.03345f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = 10869u; - obj143.KillEnemyDataIds = list191; + index3 = 1; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + span4 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span4[num3] = 10869u; + obj143.KillEnemyDataIds = list192; reference148 = obj143; - obj142.Steps = list190; + obj142.Steps = list191; reference147 = obj142; - ref QuestSequence reference149 = ref span50[4]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030017u, new Vector3(633.99695f, 24.12675f, 59.861084f), 817) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030017u, new Vector3(633.99695f, 24.12675f, 59.861084f), 817) { Fly = true }; - obj144.Steps = list192; + obj144.Steps = list193; reference149 = obj144; - span50[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference150 = ref span50[6]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218286,30 +262164,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3271) }; - obj145.Steps = list193; + obj145.Steps = list194; reference150 = obj145; - questRoot27.QuestSequence = list185; + questRoot27.QuestSequence = list186; AddQuest(questId21, questRoot27); QuestId questId22 = new QuestId(3271); QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "AUTHOR"; - questRoot28.Author = list194; - num = 4; - List list195 = new List(num); + List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span51 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference151 = ref span51[0]; + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "AUTHOR"; + questRoot28.Author = list195; + index = 4; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218325,75 +262208,89 @@ public static class AssemblyQuestLoader } } }; - obj146.Steps = list196; + obj146.Steps = list197; reference151 = obj146; - ref QuestSequence reference152 = ref span51[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; - obj147.Steps = list197; + obj147.Steps = list198; reference152 = obj147; - ref QuestSequence reference153 = ref span51[2]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1030022u, new Vector3(-355.55048f, 415.2497f, -677.9431f), 814) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030022u, new Vector3(-355.55048f, 415.2497f, -677.9431f), 814) { Fly = true }; - obj148.Steps = list198; + obj148.Steps = list199; reference153 = obj148; - ref QuestSequence reference154 = ref span51[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + List list200 = new List(num2); + CollectionsMarshal.SetCount(list200, num2); + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, NextQuestId = new QuestId(3272) }; - obj149.Steps = list199; + obj149.Steps = list200; reference154 = obj149; - questRoot28.QuestSequence = list195; + questRoot28.QuestSequence = list196; AddQuest(questId22, questRoot28); QuestId questId23 = new QuestId(3272); questRoot2 = new QuestRoot(); QuestRoot questRoot29 = questRoot2; num = 1; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "Cacahuetes"; - questRoot29.Author = list200; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "Cacahuetes"; + questRoot29.Author = list201; QuestRoot questRoot30 = questRoot2; - num = 7; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span52 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference155 = ref span52[0]; + index = 7; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -218404,40 +262301,21 @@ public static class AssemblyQuestLoader } } }; - obj150.Steps = list201; + obj150.Steps = list203; reference155 = obj150; - ref QuestSequence reference156 = ref span52[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - 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, - EnemySpawnType = EEnemySpawnType.AfterInteraction - }; - num3 = 1; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 10870u; - obj152.KillEnemyDataIds = list203; - reference157 = obj152; - obj151.Steps = list202; - reference156 = obj151; - ref QuestSequence reference158 = ref span52[2]; - QuestSequence obj153 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list204)[0]; - QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2010007u, new Vector3(21.194763f, 348.89746f, -251.88074f), 814) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference157 = ref span3[index2]; + QuestStep obj152 = new QuestStep(EInteractionType.Combat, 2010006u, new Vector3(-115.31244f, 428.18335f, -621.4542f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -218445,65 +262323,108 @@ public static class AssemblyQuestLoader num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 10871u; - obj154.KillEnemyDataIds = list205; + span4 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span4[index3] = 10870u; + obj152.KillEnemyDataIds = list205; + reference157 = obj152; + obj151.Steps = list204; + reference156 = obj151; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj153 = new QuestSequence + { + Sequence = 2 + }; + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference159 = ref span3[num2]; + QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2010007u, new Vector3(21.194763f, 348.89746f, -251.88074f), 814) + { + Fly = true, + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + index3 = 1; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + span4 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span4[num3] = 10871u; + obj154.KillEnemyDataIds = list207; reference159 = obj154; - obj153.Steps = list204; + obj153.Steps = list206; reference158 = obj153; - ref QuestSequence reference160 = ref span52[3]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list206)[0]; + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj156 = new QuestStep(EInteractionType.SinglePlayerDuty, 1030035u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = "Currently it won't work, because the logic is missing NPC healing."; - singlePlayerDutyOptions.Notes = list207; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + span = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span[index3] = "Currently it won't work, because the logic is missing NPC healing."; + singlePlayerDutyOptions.Notes = list209; obj156.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference161 = obj156; - obj155.Steps = list206; + obj155.Steps = list208; reference160 = obj155; - ref QuestSequence reference162 = ref span52[4]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); - obj157.Steps = list208; + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); + obj157.Steps = list210; reference162 = obj157; - ref QuestSequence reference163 = ref span52[5]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); - obj158.Steps = list209; + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); + obj158.Steps = list211; reference163 = obj158; - ref QuestSequence reference164 = ref span52[6]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030039u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030039u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218519,30 +262440,35 @@ public static class AssemblyQuestLoader } } }; - obj159.Steps = list210; + obj159.Steps = list212; reference164 = obj159; - questRoot30.QuestSequence = list8; + questRoot30.QuestSequence = list202; AddQuest(questId23, questRoot2); QuestId questId24 = new QuestId(3273); QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "Fifi"; - questRoot31.Author = list211; - num = 6; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span53 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference165 = ref span53[0]; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "Fifi"; + questRoot31.Author = list213; + index = 6; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030126u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030126u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218558,17 +262484,20 @@ public static class AssemblyQuestLoader } } }; - obj160.Steps = list213; + obj160.Steps = list215; reference165 = obj160; - ref QuestSequence reference166 = ref span53[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1030127u, new Vector3(200.12195f, -0.39141315f, 389.45593f), 813) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030127u, new Vector3(200.12195f, -0.39141315f, 389.45593f), 813) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -218577,66 +262506,80 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - obj161.Steps = list214; + obj161.Steps = list216; reference166 = obj161; - ref QuestSequence reference167 = ref span53[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.UseItem, 2010396u, new Vector3(195.48328f, -0.7477417f, 370.93152f), 813) + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2010396u, new Vector3(195.48328f, -0.7477417f, 370.93152f), 813) { ItemId = 2002718u }; - obj162.Steps = list215; + obj162.Steps = list217; reference167 = obj162; - ref QuestSequence reference168 = ref span53[3]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list216)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference169 = ref span3[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2010397u, new Vector3(203.90625f, -0.5340576f, 389.82214f), 813) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = 10872u; - obj164.KillEnemyDataIds = list217; + index3 = 1; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + span4 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span4[num3] = 10872u; + obj164.KillEnemyDataIds = list219; reference169 = obj164; - obj163.Steps = list216; + obj163.Steps = list218; reference168 = obj163; - ref QuestSequence reference170 = ref span53[4]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1031013u, new Vector3(200.09155f, -0.39049676f, 389.4254f), 813) + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031013u, new Vector3(200.09155f, -0.39049676f, 389.4254f), 813) { StopDistance = 5f }; - obj165.Steps = list218; + obj165.Steps = list220; reference170 = obj165; - ref QuestSequence reference171 = ref span53[5]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218646,30 +262589,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3274) }; - obj166.Steps = list219; + obj166.Steps = list221; reference171 = obj166; - questRoot31.QuestSequence = list212; + questRoot31.QuestSequence = list214; AddQuest(questId24, questRoot31); QuestId questId25 = new QuestId(3274); QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "Fifi"; - questRoot32.Author = list220; - num = 6; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span54 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference172 = ref span54[0]; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "Fifi"; + questRoot32.Author = list222; + index = 6; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218685,82 +262633,99 @@ public static class AssemblyQuestLoader } } }; - obj167.Steps = list222; + obj167.Steps = list224; reference172 = obj167; - ref QuestSequence reference173 = ref span54[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1030130u, new Vector3(469.0775f, -32.782784f, -288.44135f), 815) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030130u, new Vector3(469.0775f, -32.782784f, -288.44135f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - obj168.Steps = list223; + obj168.Steps = list225; reference173 = obj168; - ref QuestSequence reference174 = ref span54[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 2010399u, new Vector3(613.39734f, -33.585205f, -180.95679f), 815) + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010399u, new Vector3(613.39734f, -33.585205f, -180.95679f), 815) { Fly = true }; - obj169.Steps = list224; + obj169.Steps = list226; reference174 = obj169; - ref QuestSequence reference175 = ref span54[3]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref QuestStep reference176 = ref span3[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, 2010400u, new Vector3(536.9192f, -33.737732f, 38.83423f), 815) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 10873u; - obj171.KillEnemyDataIds = list226; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + span4 = CollectionsMarshal.AsSpan(list228); + index3 = 0; + span4[index3] = 10873u; + obj171.KillEnemyDataIds = list228; reference176 = obj171; - obj170.Steps = list225; + obj170.Steps = list227; reference175 = obj170; - ref QuestSequence reference177 = ref span54[4]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2010401u, new Vector3(469.0775f, -32.791687f, -288.44135f), 815) + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010401u, new Vector3(469.0775f, -32.791687f, -288.44135f), 815) { Fly = true }; - obj172.Steps = list227; + obj172.Steps = list229; reference177 = obj172; - ref QuestSequence reference178 = ref span54[5]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218770,32 +262735,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3275) }; - obj173.Steps = list228; + obj173.Steps = list230; reference178 = obj173; - questRoot32.QuestSequence = list221; + questRoot32.QuestSequence = list223; AddQuest(questId25, questRoot32); QuestId questId26 = new QuestId(3275); - questRoot2 = new QuestRoot(); - QuestRoot questRoot33 = questRoot2; + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "Fifi"; - questRoot33.Author = list229; - QuestRoot questRoot34 = questRoot2; - num = 7; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span55 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference179 = ref span55[0]; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + span = CollectionsMarshal.AsSpan(list231); + index = 0; + span[index] = "Fifi"; + questRoot33.Author = list231; + index = 7; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + span2 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218811,88 +262779,106 @@ public static class AssemblyQuestLoader } } }; - obj174.Steps = list231; + obj174.Steps = list233; reference179 = obj174; - ref QuestSequence reference180 = ref span55[1]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1030135u, new Vector3(-251.42291f, 22.19962f, 325.7953f), 814) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030135u, new Vector3(-251.42291f, 22.19962f, 325.7953f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - obj175.Steps = list232; + obj175.Steps = list234; reference180 = obj175; - ref QuestSequence reference181 = ref span55[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 2010402u, new Vector3(-550.7744f, 29.160034f, 363.4851f), 814) + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010402u, new Vector3(-550.7744f, 29.160034f, 363.4851f), 814) { Fly = true }; - obj176.Steps = list233; + obj176.Steps = list235; reference181 = obj176; - ref QuestSequence reference182 = ref span55[3]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 2010403u, new Vector3(-550.98804f, 41.33667f, 252.24683f), 814) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010403u, new Vector3(-550.98804f, 41.33667f, 252.24683f), 814) { Fly = true }; - obj177.Steps = list234; + obj177.Steps = list236; reference182 = obj177; - ref QuestSequence reference183 = ref span55[4]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1030136u, new Vector3(-192.58417f, 26.771265f, 248.46265f), 814) + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030136u, new Vector3(-192.58417f, 26.771265f, 248.46265f), 814) { Fly = true }; - obj178.Steps = list235; + obj178.Steps = list237; reference183 = obj178; - ref QuestSequence reference184 = ref span55[5]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1030140u, new Vector3(67.64319f, 82.001656f, -53.330322f), 820) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030140u, new Vector3(67.64319f, 82.001656f, -53.330322f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; - obj179.Steps = list236; + obj179.Steps = list238; reference184 = obj179; - ref QuestSequence reference185 = ref span55[6]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list237)[0]; + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep obj181 = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -218902,42 +262888,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + span5 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA321_03275_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKBA321_03275_A1_000_001") }; - obj181.DialogueChoices = list238; + obj181.DialogueChoices = list240; obj181.NextQuestId = new QuestId(3276); reference186 = obj181; - obj180.Steps = list237; + obj180.Steps = list239; reference185 = obj180; - questRoot34.QuestSequence = list230; - AddQuest(questId26, questRoot2); + questRoot33.QuestSequence = list232; + AddQuest(questId26, questRoot33); QuestId questId27 = new QuestId(3276); - QuestRoot questRoot35 = new QuestRoot(); + QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "Fifi"; - questRoot35.Author = list239; - num = 5; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span56 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference187 = ref span56[0]; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "Fifi"; + questRoot34.Author = list241; + index = 4; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218953,80 +262946,90 @@ public static class AssemblyQuestLoader } } }; - obj182.Steps = list241; + obj182.Steps = list243; reference187 = obj182; - ref QuestSequence reference188 = ref span56[1]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + List list244 = new List(num2); + CollectionsMarshal.SetCount(list244, num2); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - obj183.Steps = list242; + obj183.Steps = list244; reference188 = obj183; - ref QuestSequence reference189 = ref span56[2]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030146u, new Vector3(-190.1427f, 12.748831f, 591.6686f), 817) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030146u, new Vector3(-190.1427f, 12.748831f, 591.6686f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - obj184.Steps = list243; + obj184.Steps = list245; reference189 = obj184; - span56[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference190 = ref span56[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, NextQuestId = new QuestId(3277) }; - obj185.Steps = list244; + obj185.Steps = list246; reference190 = obj185; - questRoot35.QuestSequence = list240; - AddQuest(questId27, questRoot35); + questRoot34.QuestSequence = list242; + AddQuest(questId27, questRoot34); QuestId questId28 = new QuestId(3277); - QuestRoot questRoot36 = new QuestRoot(); + QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "Fifi"; - questRoot36.Author = list245; - num = 5; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span57 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference191 = ref span57[0]; + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "Fifi"; + questRoot35.Author = list247; + index = 5; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -219038,17 +263041,20 @@ public static class AssemblyQuestLoader } } }; - obj186.Steps = list247; + obj186.Steps = list249; reference191 = obj186; - ref QuestSequence reference192 = ref span57[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2010405u, new Vector3(-33.707214f, 3.982544f, 205.70679f), 819) + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010405u, new Vector3(-33.707214f, 3.982544f, 205.70679f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -219057,76 +263063,91 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - obj187.Steps = list248; + obj187.Steps = list250; reference192 = obj187; - ref QuestSequence reference193 = ref span57[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span58 = CollectionsMarshal.AsSpan(list249); - span58[0] = new QuestStep(EInteractionType.Interact, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); - span58[1] = new QuestStep(EInteractionType.Interact, 1027238u, new Vector3(-15.487976f, 3.9998171f, 215.3811f), 819); - span58[2] = new QuestStep(EInteractionType.Interact, 1030147u, new Vector3(0.59503174f, 3.9998174f, 209.27734f), 819); - obj188.Steps = list249; + index2 = 3; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027238u, new Vector3(-15.487976f, 3.9998171f, 215.3811f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030147u, new Vector3(0.59503174f, 3.9998174f, 209.27734f), 819); + obj188.Steps = list251; reference193 = obj188; - ref QuestSequence reference194 = ref span57[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1030148u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030148u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - obj189.Steps = list250; + obj189.Steps = list252; reference194 = obj189; - ref QuestSequence reference195 = ref span57[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { StopDistance = 1f, Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, NextQuestId = new QuestId(3278) }; - obj190.Steps = list251; + obj190.Steps = list253; reference195 = obj190; - questRoot36.QuestSequence = list246; - AddQuest(questId28, questRoot36); + questRoot35.QuestSequence = list248; + AddQuest(questId28, questRoot35); QuestId questId29 = new QuestId(3278); - QuestRoot questRoot37 = new QuestRoot(); + QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "Fifi"; - questRoot37.Author = list252; - num = 7; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span59 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference196 = ref span59[0]; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "Fifi"; + questRoot36.Author = list254; + index = 7; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + List list256 = new List(num2); + CollectionsMarshal.SetCount(list256, num2); + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -219138,17 +263159,20 @@ public static class AssemblyQuestLoader } } }; - obj191.Steps = list254; + obj191.Steps = list256; reference196 = obj191; - ref QuestSequence reference197 = ref span59[1]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1027253u, new Vector3(17.502075f, 19.999794f, -190.41736f), 819) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027253u, new Vector3(17.502075f, 19.999794f, -190.41736f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -219157,17 +263181,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCrystallineMean } }; - obj192.Steps = list255; + obj192.Steps = list257; reference197 = obj192; - ref QuestSequence reference198 = ref span59[2]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 2010406u, new Vector3(-17.013855f, 4.470825f, 234.97363f), 819) + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010406u, new Vector3(-17.013855f, 4.470825f, 234.97363f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219175,51 +263202,61 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - obj193.Steps = list256; + obj193.Steps = list258; reference198 = obj193; - ref QuestSequence reference199 = ref span59[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030990u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030990u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - obj194.Steps = list257; + obj194.Steps = list259; reference199 = obj194; - span59[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference200 = ref span59[5]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - obj195.Steps = list258; + obj195.Steps = list260; reference200 = obj195; - ref QuestSequence reference201 = ref span59[6]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -219228,149 +263265,178 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - obj196.Steps = list259; + obj196.Steps = list261; reference201 = obj196; - questRoot37.QuestSequence = list253; - AddQuest(questId29, questRoot37); + questRoot36.QuestSequence = list255; + AddQuest(questId29, questRoot36); QuestId questId30 = new QuestId(3279); - QuestRoot questRoot38 = new QuestRoot(); + QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "liza"; - questRoot38.Author = list260; - num = 6; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span60 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference202 = ref span60[0]; + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + span = CollectionsMarshal.AsSpan(list262); + index = 0; + span[index] = "liza"; + questRoot37.Author = list262; + index = 6; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + span2 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 7f }; - obj197.Steps = list262; + obj197.Steps = list264; reference202 = obj197; - ref QuestSequence reference203 = ref span60[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span61 = CollectionsMarshal.AsSpan(list263); - span61[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2 = 3; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - ref QuestStep reference204 = ref span61[2]; + num2++; + ref QuestStep reference204 = ref span3[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1029791u, new Vector3(351.49158f, -26.424099f, -370.8095f), 156) { Fly = true }; num3 = 1; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = new DialogueChoice + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + span5 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA101_03279_Q2_000_021") }; - obj199.DialogueChoices = list264; + obj199.DialogueChoices = list266; reference204 = obj199; - obj198.Steps = list263; + obj198.Steps = list265; reference203 = obj198; - ref QuestSequence reference205 = ref span60[2]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1029792u, new Vector3(-47.074158f, 1.7201422f, 45.97534f), 842); - obj200.Steps = list265; + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029792u, new Vector3(-47.074158f, 1.7201422f, 45.97534f), 842); + obj200.Steps = list267; reference205 = obj200; - span60[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference206 = ref span60[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.9286f, 8.932568f, 335.04544f), 877) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.9286f, 8.932568f, 335.04544f), 877) { RestartNavigationIfCancelled = false }; - obj201.Steps = list266; + obj201.Steps = list268; reference206 = obj201; - ref QuestSequence reference207 = ref span60[5]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) + List list269 = new List(num2); + CollectionsMarshal.SetCount(list269, num2); + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) { StopDistance = 5f, DisableNavmesh = true }; - obj202.Steps = list267; + obj202.Steps = list269; reference207 = obj202; - questRoot38.QuestSequence = list261; - AddQuest(questId30, questRoot38); + questRoot37.QuestSequence = list263; + AddQuest(questId30, questRoot37); QuestId questId31 = new QuestId(3280); - QuestRoot questRoot39 = new QuestRoot(); + QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; - questRoot39.Author = list268; - num = 4; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span62 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference208 = ref span62[0]; + List list270 = new List(num); + CollectionsMarshal.SetCount(list270, num); + span = CollectionsMarshal.AsSpan(list270); + index = 0; + span[index] = "liza"; + questRoot38.Author = list270; + index = 4; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + span2 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) { StopDistance = 5f }; - obj203.Steps = list270; + obj203.Steps = list272; reference208 = obj203; - ref QuestSequence reference209 = ref span62[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) + List list273 = new List(num2); + CollectionsMarshal.SetCount(list273, num2); + span3 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) { Aetheryte = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -219381,40 +263447,51 @@ public static class AssemblyQuestLoader } } }; - obj204.Steps = list271; + obj204.Steps = list273; reference209 = obj204; - ref QuestSequence reference210 = ref span62[2]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span63 = CollectionsMarshal.AsSpan(list272); - span63[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2 = 6; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCrystallineMean }; - ref QuestStep reference211 = ref span63[1]; + num2++; + ref QuestStep reference211 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); - num3 = 6; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span64 = CollectionsMarshal.AsSpan(list273); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list273; + index3 = 6; + List list275 = new List(index3); + CollectionsMarshal.SetCount(list275, index3); + span6 = CollectionsMarshal.AsSpan(list275); + 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); + questStep7.CompletionQuestVariablesFlags = list275; reference211 = questStep7; - span63[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumAmaroLaunch }; - span63[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCabinetOfCuriosity, AethernetShortcut = new AethernetShortcut @@ -219423,8 +263500,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span63[4] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); - span63[5] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219432,22 +263511,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - obj205.Steps = list272; + obj205.Steps = list274; reference210 = obj205; - ref QuestSequence reference212 = ref span62[3]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span65 = CollectionsMarshal.AsSpan(list274); - span65[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumMarkets }; - span65[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumDossalGate, AethernetShortcut = new AethernetShortcut @@ -219456,89 +263538,108 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span65[2] = new QuestStep(EInteractionType.CompleteQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); - obj206.Steps = list274; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); + obj206.Steps = list276; reference212 = obj206; - questRoot39.QuestSequence = list269; - AddQuest(questId31, questRoot39); + questRoot38.QuestSequence = list271; + AddQuest(questId31, questRoot38); QuestId questId32 = new QuestId(3281); questRoot2 = new QuestRoot(); - QuestRoot questRoot40 = questRoot2; + QuestRoot questRoot39 = questRoot2; num = 1; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "liza"; - questRoot40.Author = list275; - QuestRoot questRoot41 = questRoot2; - num = 7; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span66 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference213 = ref span66[0]; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + span = CollectionsMarshal.AsSpan(list277); + index = 0; + span[index] = "liza"; + questRoot39.Author = list277; + QuestRoot questRoot40 = questRoot2; + index = 7; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list276)[0]; + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + ref QuestStep reference214 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new DialogueChoice + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + span5 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q1_000_002"), Answer = new ExcelRef("TEXT_LUCKMA103_03281_A1_000_003") }; - questStep8.DialogueChoices = list277; + questStep8.DialogueChoices = list279; reference214 = questStep8; - obj207.Steps = list276; + obj207.Steps = list278; reference213 = obj207; - ref QuestSequence reference215 = ref span66[1]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list278)[0]; + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + ref QuestStep reference216 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819); - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new DialogueChoice + index3 = 1; + List list281 = new List(index3); + CollectionsMarshal.SetCount(list281, index3); + span5 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q2_000_011") }; - questStep9.DialogueChoices = list279; + questStep9.DialogueChoices = list281; reference216 = questStep9; - obj208.Steps = list278; + obj208.Steps = list280; reference215 = obj208; - ref QuestSequence reference217 = ref span66[2]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); - obj209.Steps = list280; + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); + obj209.Steps = list282; reference217 = obj209; - ref QuestSequence reference218 = ref span66[3]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1028926u, new Vector3(-4.1047363f, -7.700001f, 138.47559f), 819) + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028926u, new Vector3(-4.1047363f, -7.700001f, 138.47559f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219546,60 +263647,71 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumMarkets } }; - obj210.Steps = list281; + obj210.Steps = list283; reference218 = obj210; - ref QuestSequence reference219 = ref span66[4]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - Span span67 = CollectionsMarshal.AsSpan(list282); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.119648f, -4.2178187f, 176.1683f), 819); - span67[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2 = 3; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.119648f, -4.2178187f, 176.1683f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumPendants }; - span67[2] = new QuestStep(EInteractionType.Interact, 1028927u, new Vector3(62.546753f, 1.716012f, 249.13391f), 819); - obj211.Steps = list282; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028927u, new Vector3(62.546753f, 1.716012f, 249.13391f), 819); + obj211.Steps = list284; reference219 = obj211; - ref QuestSequence reference220 = ref span66[5]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - ref QuestStep reference221 = ref CollectionsMarshal.AsSpan(list283)[0]; + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + ref QuestStep reference221 = ref span3[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Interact, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f }; num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + span5 = CollectionsMarshal.AsSpan(list286); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q3_000_062") }; - obj213.DialogueChoices = list284; + obj213.DialogueChoices = list286; reference221 = obj213; - obj212.Steps = list283; + obj212.Steps = list285; reference220 = obj212; - ref QuestSequence reference222 = ref span66[6]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span68 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference223 = ref span68[0]; + index2 = 2; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj215 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AethernetShortcut = new AethernetShortcut @@ -219608,81 +263720,97 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - num3 = 1; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - CollectionsMarshal.AsSpan(list286)[0] = new DialogueChoice + index3 = 1; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + span5 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q4_000_071") }; - obj215.DialogueChoices = list286; + obj215.DialogueChoices = list288; reference223 = obj215; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); - obj214.Steps = list285; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + obj214.Steps = list287; reference222 = obj214; - questRoot41.QuestSequence = list8; + questRoot40.QuestSequence = list8; AddQuest(questId32, questRoot2); QuestId questId33 = new QuestId(3282); - QuestRoot questRoot42 = new QuestRoot(); + QuestRoot questRoot41 = new QuestRoot(); num = 1; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; - questRoot42.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span69 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference224 = ref span69[0]; + List list289 = new List(num); + CollectionsMarshal.SetCount(list289, num); + span = CollectionsMarshal.AsSpan(list289); + index = 0; + span[index] = "liza"; + questRoot41.Author = list289; + index = 4; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + span2 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); - obj216.Steps = list289; + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + obj216.Steps = list291; reference224 = obj216; - ref QuestSequence reference225 = ref span69[1]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span70 = CollectionsMarshal.AsSpan(list290); - span70[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2 = 2; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumTemenosRookery, AetheryteShortcut = EAetheryteLocation.Crystarium }; - ref QuestStep reference226 = ref span70[1]; + num2++; + ref QuestStep reference226 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = new DialogueChoice + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + span5 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA201_03282_Q1_000_013"), Answer = new ExcelRef("TEXT_LUCKMA201_03282_A1_000_015") }; - questStep10.DialogueChoices = list291; + questStep10.DialogueChoices = list293; reference226 = questStep10; - obj217.Steps = list290; + obj217.Steps = list292; reference225 = obj217; - ref QuestSequence reference227 = ref span69[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1029806u, new Vector3(62.394165f, 36.247692f, -169.39038f), 819) + List list294 = new List(num2); + CollectionsMarshal.SetCount(list294, num2); + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029806u, new Vector3(62.394165f, 36.247692f, -169.39038f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219690,961 +263818,1183 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - obj218.Steps = list292; + obj218.Steps = list294; reference227 = obj218; - ref QuestSequence reference228 = ref span69[3]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) { DisableNavmesh = true }; - obj219.Steps = list293; + obj219.Steps = list295; reference228 = obj219; - questRoot42.QuestSequence = list288; - AddQuest(questId33, questRoot42); + questRoot41.QuestSequence = list290; + AddQuest(questId33, questRoot41); QuestId questId34 = new QuestId(3283); questRoot2 = new QuestRoot(); - QuestRoot questRoot43 = questRoot2; + QuestRoot questRoot42 = questRoot2; num = 1; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "liza"; - questRoot43.Author = list294; - QuestRoot questRoot44 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span71 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference229 = ref span71[0]; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "liza"; + questRoot42.Author = list296; + QuestRoot questRoot43 = questRoot2; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) { DisableNavmesh = true }; - obj220.Steps = list295; + obj220.Steps = list297; reference229 = obj220; - ref QuestSequence reference230 = ref span71[1]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span72 = CollectionsMarshal.AsSpan(list296); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(639.3296f, 0.52189386f, 533.5061f), 814); - span72[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010034u, new Vector3(650.5377f, 0.3508911f, 556.38965f), 814) + index2 = 3; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(639.3296f, 0.52189386f, 533.5061f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010034u, new Vector3(650.5377f, 0.3508911f, 556.38965f), 814) { AetherCurrentId = 2818238u }; - span72[2] = new QuestStep(EInteractionType.Interact, 1027286u, new Vector3(626.1234f, 3.237296f, 471.97668f), 814); - obj221.Steps = list296; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027286u, new Vector3(626.1234f, 3.237296f, 471.97668f), 814); + obj221.Steps = list298; reference230 = obj221; - ref QuestSequence reference231 = ref span71[2]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span73 = CollectionsMarshal.AsSpan(list297); - span73[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaStilltide }; - span73[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(683.3415f, 30.116053f, 276.70578f), 814); - ref QuestStep reference232 = ref span73[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(683.3415f, 30.116053f, 276.70578f), 814); + index2++; + ref QuestStep reference232 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009956u, new Vector3(687.9225f, 30.07544f, 279.40784f), 814); - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice + index3 = 1; + List list300 = new List(index3); + CollectionsMarshal.SetCount(list300, index3); + span5 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA202_03283_Q1_000_031"), Answer = new ExcelRef("TEXT_LUCKMA202_03283_A1_000_034") }; - questStep11.DialogueChoices = list298; + questStep11.DialogueChoices = list300; reference232 = questStep11; - obj222.Steps = list297; + obj222.Steps = list299; reference231 = obj222; - ref QuestSequence reference233 = ref span71[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span74 = CollectionsMarshal.AsSpan(list299); - ref QuestStep reference234 = ref span74[0]; + index2 = 2; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref QuestStep reference234 = ref span3[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, 2009957u, new Vector3(663.17236f, 53.635498f, 60.28833f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = 10857u; - obj224.KillEnemyDataIds = list300; - num3 = 6; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - Span span75 = CollectionsMarshal.AsSpan(list301); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj224.CompletionQuestVariablesFlags = list301; - reference234 = obj224; - 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 - }; - num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 10858u; - obj225.KillEnemyDataIds = list302; - num3 = 6; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span76 = CollectionsMarshal.AsSpan(list303); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj225.CompletionQuestVariablesFlags = list303; + span4 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span4[index3] = 10857u; + obj224.KillEnemyDataIds = list302; + index3 = 6; + List list303 = new List(index3); + CollectionsMarshal.SetCount(list303, index3); + span6 = CollectionsMarshal.AsSpan(list303); + 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); + obj224.CompletionQuestVariablesFlags = list303; + reference234 = obj224; + num2++; + ref QuestStep reference235 = ref span3[num2]; + QuestStep obj225 = new QuestStep(EInteractionType.Combat, 2009958u, new Vector3(694.026f, 53.757446f, 12.924377f), 814) + { + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num3 = 1; + List list304 = new List(num3); + CollectionsMarshal.SetCount(list304, num3); + span4 = CollectionsMarshal.AsSpan(list304); + index3 = 0; + span4[index3] = 10858u; + obj225.KillEnemyDataIds = list304; + index3 = 6; + List list305 = new List(index3); + CollectionsMarshal.SetCount(list305, index3); + span6 = CollectionsMarshal.AsSpan(list305); + 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); + obj225.CompletionQuestVariablesFlags = list305; reference235 = obj225; - obj223.Steps = list299; + obj223.Steps = list301; reference233 = obj223; - ref QuestSequence reference236 = ref span71[4]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); - obj226.Steps = list304; + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + obj226.Steps = list306; reference236 = obj226; - ref QuestSequence reference237 = ref span71[5]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); - obj227.Steps = list305; + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + obj227.Steps = list307; reference237 = obj227; - ref QuestSequence reference238 = ref span71[6]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); - obj228.Steps = list306; + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + obj228.Steps = list308; reference238 = obj228; - ref QuestSequence reference239 = ref span71[7]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027313u, new Vector3(691.0658f, 30.11709f, 279.62158f), 814); - obj229.Steps = list307; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027313u, new Vector3(691.0658f, 30.11709f, 279.62158f), 814); + obj229.Steps = list309; reference239 = obj229; - questRoot44.QuestSequence = list8; + questRoot43.QuestSequence = list8; AddQuest(questId34, questRoot2); QuestId questId35 = new QuestId(3284); questRoot2 = new QuestRoot(); - QuestRoot questRoot45 = questRoot2; + QuestRoot questRoot44 = questRoot2; num = 1; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - CollectionsMarshal.AsSpan(list308)[0] = "liza"; - questRoot45.Author = list308; - QuestRoot questRoot46 = questRoot2; - num = 9; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span77 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference240 = ref span77[0]; + List list310 = new List(num); + CollectionsMarshal.SetCount(list310, num); + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "liza"; + questRoot44.Author = list310; + QuestRoot questRoot45 = questRoot2; + index = 9; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029809u, new Vector3(687.1289f, 30.118057f, 282.73438f), 814) + List list311 = new List(num2); + CollectionsMarshal.SetCount(list311, num2); + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029809u, new Vector3(687.1289f, 30.118057f, 282.73438f), 814) { StopDistance = 7f }; - obj230.Steps = list309; + obj230.Steps = list311; reference240 = obj230; - ref QuestSequence reference241 = ref span77[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1029810u, new Vector3(377.24878f, 6.8162985f, 306.56897f), 814); - obj231.Steps = list310; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029810u, new Vector3(377.24878f, 6.8162985f, 306.56897f), 814); + obj231.Steps = list312; reference241 = obj231; - ref QuestSequence reference242 = ref span77[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) + List list313 = new List(num2); + CollectionsMarshal.SetCount(list313, num2); + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) { StopDistance = 1f }; - obj232.Steps = list311; + obj232.Steps = list313; reference242 = obj232; - ref QuestSequence reference243 = ref span77[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference244 = ref CollectionsMarshal.AsSpan(list312)[0]; + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + ref QuestStep reference244 = ref span3[num2]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 10859u; - obj234.KillEnemyDataIds = list313; + List list315 = new List(num3); + CollectionsMarshal.SetCount(list315, num3); + span4 = CollectionsMarshal.AsSpan(list315); + index3 = 0; + span4[index3] = 10859u; + obj234.KillEnemyDataIds = list315; reference244 = obj234; - obj233.Steps = list312; + obj233.Steps = list314; reference243 = obj233; - ref QuestSequence reference245 = ref span77[4]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1029811u, new Vector3(341.75623f, 31.93621f, 202.01416f), 814) + List list316 = new List(num2); + CollectionsMarshal.SetCount(list316, num2); + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029811u, new Vector3(341.75623f, 31.93621f, 202.01416f), 814) { StopDistance = 7f }; - obj235.Steps = list314; + obj235.Steps = list316; reference245 = obj235; - ref QuestSequence reference246 = ref span77[5]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 2009961u, new Vector3(168.3833f, 40.115967f, 567.1931f), 814); - obj236.Steps = list315; + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009961u, new Vector3(168.3833f, 40.115967f, 567.1931f), 814); + obj236.Steps = list317; reference246 = obj236; - ref QuestSequence reference247 = ref span77[6]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814) + List list318 = new List(num2); + CollectionsMarshal.SetCount(list318, num2); + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814) { StopDistance = 7f }; - obj237.Steps = list316; + obj237.Steps = list318; reference247 = obj237; - ref QuestSequence reference248 = ref span77[7]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span78 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference249 = ref span78[0]; + index2 = 3; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference249 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2009962u, new Vector3(175.73816f, 50.003784f, 771.4807f), 814); - num3 = 6; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span79 = CollectionsMarshal.AsSpan(list318); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list318; + index3 = 6; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span6 = CollectionsMarshal.AsSpan(list320); + 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); + questStep12.CompletionQuestVariablesFlags = list320; reference249 = questStep12; - ref QuestStep reference250 = ref span78[1]; + num2++; + ref QuestStep reference250 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1029816u, new Vector3(112.65735f, 54.873238f, 833.4934f), 814); num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span80 = CollectionsMarshal.AsSpan(list319); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list319; + List list321 = new List(num3); + CollectionsMarshal.SetCount(list321, num3); + span6 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list321; reference250 = questStep13; - ref QuestStep reference251 = ref span78[2]; + num2++; + ref QuestStep reference251 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1029815u, new Vector3(184.40515f, 40.039566f, 592.0653f), 814); - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span81 = CollectionsMarshal.AsSpan(list320); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list320; + index3 = 6; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + span6 = CollectionsMarshal.AsSpan(list322); + 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); + questStep14.CompletionQuestVariablesFlags = list322; reference251 = questStep14; - obj238.Steps = list317; + obj238.Steps = list319; reference248 = obj238; - ref QuestSequence reference252 = ref span77[8]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); - obj239.Steps = list321; + List list323 = new List(num2); + CollectionsMarshal.SetCount(list323, num2); + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); + obj239.Steps = list323; reference252 = obj239; - questRoot46.QuestSequence = list8; + questRoot45.QuestSequence = list8; AddQuest(questId35, questRoot2); QuestId questId36 = new QuestId(3285); - QuestRoot questRoot47 = new QuestRoot(); + QuestRoot questRoot46 = new QuestRoot(); num = 1; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; - questRoot47.Author = list322; - num = 7; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span82 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference253 = ref span82[0]; + List list324 = new List(num); + CollectionsMarshal.SetCount(list324, num); + span = CollectionsMarshal.AsSpan(list324); + index = 0; + span[index] = "liza"; + questRoot46.Author = list324; + index = 7; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + span2 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); - obj240.Steps = list324; + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); + obj240.Steps = list326; reference253 = obj240; - ref QuestSequence reference254 = ref span82[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - Span span83 = CollectionsMarshal.AsSpan(list325); - span83[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + List list327 = new List(num2); + CollectionsMarshal.SetCount(list327, num2); + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaWright }; - span83[1] = new QuestStep(EInteractionType.Interact, 1027516u, new Vector3(-266.0716f, 21.746891f, 376.7909f), 814); - obj241.Steps = list325; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027516u, new Vector3(-266.0716f, 21.746891f, 376.7909f), 814); + obj241.Steps = list327; reference254 = obj241; - ref QuestSequence reference255 = ref span82[2]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Snipe, 2009963u, new Vector3(-276.17303f, 17.807251f, 656.9772f), 814) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2009963u, new Vector3(-276.17303f, 17.807251f, 656.9772f), 814) { Comment = "Click the guy in front of (or near) the light house stairs" }; - obj242.Steps = list326; + obj242.Steps = list328; reference255 = obj242; - ref QuestSequence reference256 = ref span82[3]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1029818u, new Vector3(-322.46893f, 21.33508f, 777.4623f), 814); - obj243.Steps = list327; + List list329 = new List(num2); + CollectionsMarshal.SetCount(list329, num2); + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029818u, new Vector3(-322.46893f, 21.33508f, 777.4623f), 814); + obj243.Steps = list329; reference256 = obj243; - ref QuestSequence reference257 = ref span82[4]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span84 = CollectionsMarshal.AsSpan(list328); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-617.37683f, 17.524837f, 544.3568f), 814); - span84[1] = new QuestStep(EInteractionType.Interact, 1029819u, new Vector3(-635.6756f, 0.22940278f, 571.313f), 814) + index2 = 2; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-617.37683f, 17.524837f, 544.3568f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029819u, new Vector3(-635.6756f, 0.22940278f, 571.313f), 814) { DisableNavmesh = true }; - obj244.Steps = list328; + obj244.Steps = list330; reference257 = obj244; - ref QuestSequence reference258 = ref span82[5]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1029844u, new Vector3(-638.11707f, 0.2956289f, 571.5265f), 814) + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029844u, new Vector3(-638.11707f, 0.2956289f, 571.5265f), 814) { StopDistance = 7f }; - obj245.Steps = list329; + obj245.Steps = list331; reference258 = obj245; - ref QuestSequence reference259 = ref span82[6]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span85 = CollectionsMarshal.AsSpan(list330); - span85[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010038u, new Vector3(-651.1788f, -0.015319824f, 588.4031f), 814) + index2 = 2; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010038u, new Vector3(-651.1788f, -0.015319824f, 588.4031f), 814) { AetherCurrentId = 2818242u }; - span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1029823u, new Vector3(-330.40363f, 19.081778f, 389.27283f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029823u, new Vector3(-330.40363f, 19.081778f, 389.27283f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - obj246.Steps = list330; + obj246.Steps = list332; reference259 = obj246; - questRoot47.QuestSequence = list323; - AddQuest(questId36, questRoot47); + questRoot46.QuestSequence = list325; + AddQuest(questId36, questRoot46); QuestId questId37 = new QuestId(3286); questRoot2 = new QuestRoot(); - QuestRoot questRoot48 = questRoot2; + QuestRoot questRoot47 = questRoot2; num = 1; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; - questRoot48.Author = list331; - QuestRoot questRoot49 = questRoot2; - num = 11; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span86 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference260 = ref span86[0]; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + span = CollectionsMarshal.AsSpan(list333); + index = 0; + span[index] = "liza"; + questRoot47.Author = list333; + QuestRoot questRoot48 = questRoot2; + index = 11; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029822u, new Vector3(-328.6031f, 19.317894f, 390.00525f), 814); - obj247.Steps = list332; + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029822u, new Vector3(-328.6031f, 19.317894f, 390.00525f), 814); + obj247.Steps = list334; reference260 = obj247; - ref QuestSequence reference261 = ref span86[1]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span87 = CollectionsMarshal.AsSpan(list333); - span87[0] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) + index2 = 3; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) { PickUpQuestId = new QuestId(3360) }; - span87[1] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814) { PickUpQuestId = new QuestId(3371) }; - span87[2] = new QuestStep(EInteractionType.Interact, 2009964u, new Vector3(168.96313f, 41.000854f, 677.3021f), 814); - obj248.Steps = list333; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009964u, new Vector3(168.96313f, 41.000854f, 677.3021f), 814); + obj248.Steps = list335; reference261 = obj248; - span86[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference262 = ref span86[3]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1029824u, new Vector3(0.6866455f, -5.0951424f, -104.112366f), 820); - obj249.Steps = list334; + List list336 = new List(num2); + CollectionsMarshal.SetCount(list336, num2); + span3 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029824u, new Vector3(0.6866455f, -5.0951424f, -104.112366f), 820); + obj249.Steps = list336; reference262 = obj249; - ref QuestSequence reference263 = ref span86[4]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span88 = CollectionsMarshal.AsSpan(list335); - span88[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + index2 = 2; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreGloryGate }; - span88[1] = new QuestStep(EInteractionType.Interact, 1027524u, new Vector3(17.410522f, 6f, -0.16790771f), 820); - obj250.Steps = list335; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027524u, new Vector3(17.410522f, 6f, -0.16790771f), 820); + obj250.Steps = list337; reference263 = obj250; - ref QuestSequence reference264 = ref span86[5]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1027526u, new Vector3(17.410522f, 6f, 16.983276f), 820); - obj251.Steps = list336; + List list338 = new List(num2); + CollectionsMarshal.SetCount(list338, num2); + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027526u, new Vector3(17.410522f, 6f, 16.983276f), 820); + obj251.Steps = list338; reference264 = obj251; - ref QuestSequence reference265 = ref span86[6]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - Span span89 = CollectionsMarshal.AsSpan(list337); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(14.658053f, 5.9974756f, 37.953873f), 820); - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.513058f, 6.0829277f, 38.194153f), 820) + index2 = 3; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + span3 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(14.658053f, 5.9974756f, 37.953873f), 820); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.513058f, 6.0829277f, 38.194153f), 820) { DisableNavmesh = true }; - span89[2] = new QuestStep(EInteractionType.Interact, 2009967u, new Vector3(18.20398f, 7.522644f, 38.223755f), 820); - obj252.Steps = list337; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009967u, new Vector3(18.20398f, 7.522644f, 38.223755f), 820); + obj252.Steps = list339; reference265 = obj252; - ref QuestSequence reference266 = ref span86[7]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(10.609789f, 6f, 33.17366f), 820) + List list340 = new List(num2); + CollectionsMarshal.SetCount(list340, num2); + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(10.609789f, 6f, 33.17366f), 820) { StopDistance = 0.25f, DelaySecondsAtStart = 3f, ItemId = 2002575u }; - obj253.Steps = list338; + obj253.Steps = list340; reference266 = obj253; - ref QuestSequence reference267 = ref span86[8]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list339)[0]; + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + ref QuestStep reference268 = ref span3[num2]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1029827u, new Vector3(4.1046753f, 5.9999995f, 29.770264f), 820) { StopDistance = 1f }; num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + List list342 = new List(num3); + CollectionsMarshal.SetCount(list342, num3); + span5 = CollectionsMarshal.AsSpan(list342); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA205_03286_Q1_000_152"), Answer = new ExcelRef("TEXT_LUCKMA205_03286_A1_000_153") }; - obj255.DialogueChoices = list340; + obj255.DialogueChoices = list342; reference268 = obj255; - obj254.Steps = list339; + obj254.Steps = list341; reference267 = obj254; - ref QuestSequence reference269 = ref span86[9]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 9 }; num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820); - obj256.Steps = list341; + List list343 = new List(num2); + CollectionsMarshal.SetCount(list343, num2); + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820); + obj256.Steps = list343; reference269 = obj256; - ref QuestSequence reference270 = ref span86[10]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span90 = CollectionsMarshal.AsSpan(list342); - span90[0] = new QuestStep(EInteractionType.Interact, 1027527u, new Vector3(-2.1820679f, 7.191099f, 58.060547f), 820) + index2 = 2; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027527u, new Vector3(-2.1820679f, 7.191099f, 58.060547f), 820) { TargetTerritoryId = (ushort)820, Sprint = true }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); - obj257.Steps = list342; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); + obj257.Steps = list344; reference270 = obj257; - questRoot49.QuestSequence = list8; + questRoot48.QuestSequence = list8; AddQuest(questId37, questRoot2); QuestId questId38 = new QuestId(3287); - QuestRoot questRoot50 = new QuestRoot(); + QuestRoot questRoot49 = new QuestRoot(); num = 1; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; - questRoot50.Author = list343; - num = 4; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span91 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference271 = ref span91[0]; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + span = CollectionsMarshal.AsSpan(list345); + index = 0; + span[index] = "liza"; + questRoot49.Author = list345; + index = 4; + List list346 = new List(index); + CollectionsMarshal.SetCount(list346, index); + span2 = CollectionsMarshal.AsSpan(list346); + num = 0; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029832u, new Vector3(28.793701f, 82.78206f, 24.917969f), 820) + List list347 = new List(num2); + CollectionsMarshal.SetCount(list347, num2); + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029832u, new Vector3(28.793701f, 82.78206f, 24.917969f), 820) { StopDistance = 5f }; - obj258.Steps = list345; + obj258.Steps = list347; reference271 = obj258; - ref QuestSequence reference272 = ref span91[1]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); - obj259.Steps = list346; + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); + obj259.Steps = list348; reference272 = obj259; - ref QuestSequence reference273 = ref span91[2]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1029834u, new Vector3(-18.35669f, 82.597046f, -52.99463f), 820); - obj260.Steps = list347; + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029834u, new Vector3(-18.35669f, 82.597046f, -52.99463f), 820); + obj260.Steps = list349; reference273 = obj260; - ref QuestSequence reference274 = ref span91[3]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list348)[0]; + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + ref QuestStep reference275 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.CompleteQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); - num3 = 1; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = new DialogueChoice + index3 = 1; + List list351 = new List(index3); + CollectionsMarshal.SetCount(list351, index3); + span5 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA206_03287_Q2_000_081"), Answer = new ExcelRef("TEXT_LUCKMA206_03287_A2_000_083") }; - questStep15.DialogueChoices = list349; + questStep15.DialogueChoices = list351; reference275 = questStep15; - obj261.Steps = list348; + obj261.Steps = list350; reference274 = obj261; - questRoot50.QuestSequence = list344; - AddQuest(questId38, questRoot50); + questRoot49.QuestSequence = list346; + AddQuest(questId38, questRoot49); QuestId questId39 = new QuestId(3288); questRoot2 = new QuestRoot(); - QuestRoot questRoot51 = questRoot2; + QuestRoot questRoot50 = questRoot2; num = 1; - List list350 = new List(num); - CollectionsMarshal.SetCount(list350, num); - CollectionsMarshal.AsSpan(list350)[0] = "liza"; - questRoot51.Author = list350; - QuestRoot questRoot52 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span92 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference276 = ref span92[0]; + List list352 = new List(num); + CollectionsMarshal.SetCount(list352, num); + span = CollectionsMarshal.AsSpan(list352); + index = 0; + span[index] = "liza"; + questRoot50.Author = list352; + QuestRoot questRoot51 = questRoot2; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); - obj262.Steps = list351; + List list353 = new List(num2); + CollectionsMarshal.SetCount(list353, num2); + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); + obj262.Steps = list353; reference276 = obj262; - ref QuestSequence reference277 = ref span92[1]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); - obj263.Steps = list352; + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); + obj263.Steps = list354; reference277 = obj263; - ref QuestSequence reference278 = ref span92[2]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - ref QuestStep reference279 = ref CollectionsMarshal.AsSpan(list353)[0]; + List list355 = new List(num2); + CollectionsMarshal.SetCount(list355, num2); + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference279 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); num3 = 3; - List list354 = new List(num3); - CollectionsMarshal.SetCount(list354, num3); - Span span93 = CollectionsMarshal.AsSpan(list354); - span93[0] = new DialogueChoice + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + span5 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q1_000_041"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A1_000_042") }; - span93[1] = new DialogueChoice + index3++; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q2_000_052"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A2_000_054") }; - span93[2] = new DialogueChoice + index3++; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_TISTABIE_000_060") }; - questStep16.DialogueChoices = list354; + questStep16.DialogueChoices = list356; reference279 = questStep16; - obj264.Steps = list353; + obj264.Steps = list355; reference278 = obj264; - ref QuestSequence reference280 = ref span92[3]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - ref QuestStep reference281 = ref CollectionsMarshal.AsSpan(list355)[0]; + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + ref QuestStep reference281 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); - num3 = 3; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - Span span94 = CollectionsMarshal.AsSpan(list356); - span94[0] = new DialogueChoice + index3 = 3; + List list358 = new List(index3); + CollectionsMarshal.SetCount(list358, index3); + span5 = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q1_000_041"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A1_000_042") }; - span94[1] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q2_000_052"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A2_000_054") }; - span94[2] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_TISTABIE_000_060") }; - questStep17.DialogueChoices = list356; + questStep17.DialogueChoices = list358; reference281 = questStep17; - obj265.Steps = list355; + obj265.Steps = list357; reference280 = obj265; - ref QuestSequence reference282 = ref span92[4]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); - obj266.Steps = list357; + List list359 = new List(num2); + CollectionsMarshal.SetCount(list359, num2); + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); + obj266.Steps = list359; reference282 = obj266; - ref QuestSequence reference283 = ref span92[5]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 5 }; - num2 = 5; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span95 = CollectionsMarshal.AsSpan(list358); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.480736f, 82.909546f, -37.52441f), 820); - span95[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.647987f, 84.80449f, -36.65881f), 820) + index2 = 5; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.480736f, 82.909546f, -37.52441f), 820); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.647987f, 84.80449f, -36.65881f), 820) { DisableNavmesh = true }; - span95[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.76068f, 86.70241f, -39.688606f), 820) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.76068f, 86.70241f, -39.688606f), 820) { DisableNavmesh = true }; - span95[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.27692f, 86.7024f, -40.825073f), 820) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.27692f, 86.7024f, -40.825073f), 820) { DisableNavmesh = true }; - span95[4] = new QuestStep(EInteractionType.Emote, null, new Vector3(61.212788f, 86.7f, -40.65704f), 820) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(61.212788f, 86.7f, -40.65704f), 820) { StopDistance = 0.5f, DisableNavmesh = true, Emote = EEmote.Dance }; - obj267.Steps = list358; + obj267.Steps = list360; reference283 = obj267; - ref QuestSequence reference284 = ref span92[6]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); - obj268.Steps = list359; + List list361 = new List(num2); + CollectionsMarshal.SetCount(list361, num2); + span3 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); + obj268.Steps = list361; reference284 = obj268; - ref QuestSequence reference285 = ref span92[7]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); - obj269.Steps = list360; + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); + obj269.Steps = list362; reference285 = obj269; - questRoot52.QuestSequence = list8; + questRoot51.QuestSequence = list8; AddQuest(questId39, questRoot2); QuestId questId40 = new QuestId(3289); - QuestRoot questRoot53 = new QuestRoot(); + QuestRoot questRoot52 = new QuestRoot(); num = 1; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - CollectionsMarshal.AsSpan(list361)[0] = "liza"; - questRoot53.Author = list361; - num = 5; - List list362 = new List(num); - CollectionsMarshal.SetCount(list362, num); - Span span96 = CollectionsMarshal.AsSpan(list362); - ref QuestSequence reference286 = ref span96[0]; + List list363 = new List(num); + CollectionsMarshal.SetCount(list363, num); + span = CollectionsMarshal.AsSpan(list363); + index = 0; + span[index] = "liza"; + questRoot52.Author = list363; + index = 5; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + span2 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029837u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); - obj270.Steps = list363; + List list365 = new List(num2); + CollectionsMarshal.SetCount(list365, num2); + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029837u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + obj270.Steps = list365; reference286 = obj270; - ref QuestSequence reference287 = ref span96[1]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - Span span97 = CollectionsMarshal.AsSpan(list364); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-16.370012f, 51.01856f, 18.119207f), 820); - span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.53454f, 23.1f, 4.258671f), 820) + index2 = 3; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-16.370012f, 51.01856f, 18.119207f), 820); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.53454f, 23.1f, 4.258671f), 820) { DisableNavmesh = true }; - span97[2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820); - obj271.Steps = list364; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820); + obj271.Steps = list366; reference287 = obj271; - ref QuestSequence reference288 = ref span96[2]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - Span span98 = CollectionsMarshal.AsSpan(list365); - span98[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + List list367 = new List(num2); + CollectionsMarshal.SetCount(list367, num2); + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreMainstay }; - span98[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreSoutheastDerelict, AethernetShortcut = new AethernetShortcut @@ -220653,23 +265003,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - span98[2] = new QuestStep(EInteractionType.Interact, 1027588u, new Vector3(-50.247986f, -0.10068311f, 61.32605f), 820); - obj272.Steps = list365; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027588u, new Vector3(-50.247986f, -0.10068311f, 61.32605f), 820); + obj272.Steps = list367; reference288 = obj272; - ref QuestSequence reference289 = ref span96[3]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - Span span99 = CollectionsMarshal.AsSpan(list366); - span99[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + index2 = 2; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreNightsoilPots }; - span99[1] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820) { AethernetShortcut = new AethernetShortcut { @@ -220677,86 +265031,104 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreMainstay } }; - obj273.Steps = list366; + obj273.Steps = list368; reference289 = obj273; - ref QuestSequence reference290 = ref span96[4]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); - obj274.Steps = list367; + List list369 = new List(num2); + CollectionsMarshal.SetCount(list369, num2); + span3 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + obj274.Steps = list369; reference290 = obj274; - questRoot53.QuestSequence = list362; - AddQuest(questId40, questRoot53); + questRoot52.QuestSequence = list364; + AddQuest(questId40, questRoot52); QuestId questId41 = new QuestId(3290); - QuestRoot questRoot54 = new QuestRoot(); + QuestRoot questRoot53 = new QuestRoot(); num = 1; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; - questRoot54.Author = list368; - num = 5; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span100 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference291 = ref span100[0]; + List list370 = new List(num); + CollectionsMarshal.SetCount(list370, num); + span = CollectionsMarshal.AsSpan(list370); + index = 0; + span[index] = "liza"; + questRoot53.Author = list370; + index = 5; + List list371 = new List(index); + CollectionsMarshal.SetCount(list371, index); + span2 = CollectionsMarshal.AsSpan(list371); + num = 0; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); - obj275.Steps = list370; + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + obj275.Steps = list372; reference291 = obj275; - ref QuestSequence reference292 = ref span100[1]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list371)[0]; + List list373 = new List(num2); + CollectionsMarshal.SetCount(list373, num2); + span3 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + ref QuestStep reference293 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820); num3 = 1; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = new DialogueChoice + List list374 = new List(num3); + CollectionsMarshal.SetCount(list374, num3); + span5 = CollectionsMarshal.AsSpan(list374); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA209_03290_Q1_000_041") }; - questStep18.DialogueChoices = list372; + questStep18.DialogueChoices = list374; reference293 = questStep18; - obj276.Steps = list371; + obj276.Steps = list373; reference292 = obj276; - ref QuestSequence reference294 = ref span100[2]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1029839u, new Vector3(5.722107f, -5.1046004f, -106.126526f), 820); - obj277.Steps = list373; + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + span3 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029839u, new Vector3(5.722107f, -5.1046004f, -106.126526f), 820); + obj277.Steps = list375; reference294 = obj277; - ref QuestSequence reference295 = ref span100[3]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - Span span101 = CollectionsMarshal.AsSpan(list374); - span101[0] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) + List list376 = new List(num2); + CollectionsMarshal.SetCount(list376, num2); + span3 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) { TargetTerritoryId = (ushort)814, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -220766,22 +265138,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span101[1] = new QuestStep(EInteractionType.Interact, 1029841u, new Vector3(800.0458f, 1.4174876f, 255.9701f), 814) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029841u, new Vector3(800.0458f, 1.4174876f, 255.9701f), 814) { StopDistance = 7f }; - obj278.Steps = list374; + obj278.Steps = list376; reference295 = obj278; - ref QuestSequence reference296 = ref span100[4]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - Span span102 = CollectionsMarshal.AsSpan(list375); - span102[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -220790,45 +265165,54 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span102[1] = new QuestStep(EInteractionType.CompleteQuest, 1029842u, new Vector3(-2.02948f, -4.7436786E-14f, -4.196289f), 844); - obj279.Steps = list375; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029842u, new Vector3(-2.02948f, -4.7436786E-14f, -4.196289f), 844); + obj279.Steps = list377; reference296 = obj279; - questRoot54.QuestSequence = list369; - AddQuest(questId41, questRoot54); + questRoot53.QuestSequence = list371; + AddQuest(questId41, questRoot53); QuestId questId42 = new QuestId(3291); - QuestRoot questRoot55 = new QuestRoot(); + QuestRoot questRoot54 = new QuestRoot(); num = 1; - List list376 = new List(num); - CollectionsMarshal.SetCount(list376, num); - CollectionsMarshal.AsSpan(list376)[0] = "liza"; - questRoot55.Author = list376; - num = 8; - List list377 = new List(num); - CollectionsMarshal.SetCount(list377, num); - Span span103 = CollectionsMarshal.AsSpan(list377); - ref QuestSequence reference297 = ref span103[0]; + List list378 = new List(num); + CollectionsMarshal.SetCount(list378, num); + span = CollectionsMarshal.AsSpan(list378); + index = 0; + span[index] = "liza"; + questRoot54.Author = list378; + index = 8; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + span2 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + List list380 = new List(num2); + CollectionsMarshal.SetCount(list380, num2); + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; - obj280.Steps = list378; + obj280.Steps = list380; reference297 = obj280; - ref QuestSequence reference298 = ref span103[1]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -220837,890 +265221,1116 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - obj281.Steps = list379; + obj281.Steps = list381; reference298 = obj281; - ref QuestSequence reference299 = ref span103[2]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819); - obj282.Steps = list380; + List list382 = new List(num2); + CollectionsMarshal.SetCount(list382, num2); + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819); + obj282.Steps = list382; reference299 = obj282; - span103[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference300 = ref span103[4]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1028961u, new Vector3(662.50085f, -48.533764f, -652.8573f), 815) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + span3 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028961u, new Vector3(662.50085f, -48.533764f, -652.8573f), 815) { StopDistance = 7f, DisableNavmesh = true }; - obj283.Steps = list381; + obj283.Steps = list383; reference300 = obj283; - ref QuestSequence reference301 = ref span103[5]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 5 }; num2 = 2; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - Span span104 = CollectionsMarshal.AsSpan(list382); - span104[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010044u, new Vector3(446.0669f, -60.56305f, -523.7049f), 815) + List list384 = new List(num2); + CollectionsMarshal.SetCount(list384, num2); + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010044u, new Vector3(446.0669f, -60.56305f, -523.7049f), 815) { AetherCurrentId = 2818253u }; - span104[1] = new QuestStep(EInteractionType.Interact, 1028962u, new Vector3(477.71423f, -50.54957f, -509.88025f), 815); - obj284.Steps = list382; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028962u, new Vector3(477.71423f, -50.54957f, -509.88025f), 815); + obj284.Steps = list384; reference301 = obj284; - ref QuestSequence reference302 = ref span103[6]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 2009842u, new Vector3(484.2754f, -51.95703f, -512.50476f), 815); - obj285.Steps = list383; + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009842u, new Vector3(484.2754f, -51.95703f, -512.50476f), 815); + obj285.Steps = list385; reference302 = obj285; - ref QuestSequence reference303 = ref span103[7]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); - obj286.Steps = list384; + List list386 = new List(num2); + CollectionsMarshal.SetCount(list386, num2); + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); + obj286.Steps = list386; reference303 = obj286; - questRoot55.QuestSequence = list377; - AddQuest(questId42, questRoot55); + questRoot54.QuestSequence = list379; + AddQuest(questId42, questRoot54); QuestId questId43 = new QuestId(3292); - QuestRoot questRoot56 = new QuestRoot(); + QuestRoot questRoot55 = new QuestRoot(); num = 1; - List list385 = new List(num); - CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; - questRoot56.Author = list385; - num = 4; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span105 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference304 = ref span105[0]; + List list387 = new List(num); + CollectionsMarshal.SetCount(list387, num); + span = CollectionsMarshal.AsSpan(list387); + index = 0; + span[index] = "liza"; + questRoot55.Author = list387; + index = 4; + List list388 = new List(index); + CollectionsMarshal.SetCount(list388, index); + span2 = CollectionsMarshal.AsSpan(list388); + num = 0; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); - obj287.Steps = list387; + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + span3 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); + obj287.Steps = list389; reference304 = obj287; - ref QuestSequence reference305 = ref span105[1]; + num++; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span106 = CollectionsMarshal.AsSpan(list388); - span106[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + List list390 = new List(num2); + CollectionsMarshal.SetCount(list390, num2); + span3 = CollectionsMarshal.AsSpan(list390); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengMordSouq }; - span106[1] = new QuestStep(EInteractionType.Interact, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); - obj288.Steps = list388; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + obj288.Steps = list390; reference305 = obj288; - ref QuestSequence reference306 = ref span105[2]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Snipe, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) { Comment = "Click all four foods" }; - obj289.Steps = list389; + obj289.Steps = list391; reference306 = obj289; - ref QuestSequence reference307 = ref span105[3]; + num++; + ref QuestSequence reference307 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); - obj290.Steps = list390; + List list392 = new List(num2); + CollectionsMarshal.SetCount(list392, num2); + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + obj290.Steps = list392; reference307 = obj290; - questRoot56.QuestSequence = list386; - AddQuest(questId43, questRoot56); + questRoot55.QuestSequence = list388; + AddQuest(questId43, questRoot55); QuestId questId44 = new QuestId(3293); - QuestRoot questRoot57 = new QuestRoot(); + QuestRoot questRoot56 = new QuestRoot(); num = 1; - List list391 = new List(num); - CollectionsMarshal.SetCount(list391, num); - CollectionsMarshal.AsSpan(list391)[0] = "liza"; - questRoot57.Author = list391; - num = 3; - List list392 = new List(num); - CollectionsMarshal.SetCount(list392, num); - Span span107 = CollectionsMarshal.AsSpan(list392); - ref QuestSequence reference308 = ref span107[0]; + List list393 = new List(num); + CollectionsMarshal.SetCount(list393, num); + span = CollectionsMarshal.AsSpan(list393); + index = 0; + span[index] = "liza"; + questRoot56.Author = list393; + index = 3; + List list394 = new List(index); + CollectionsMarshal.SetCount(list394, index); + span2 = CollectionsMarshal.AsSpan(list394); + num = 0; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028974u, new Vector3(265.79688f, 4.0297f, -145.76947f), 815) + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + span3 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028974u, new Vector3(265.79688f, 4.0297f, -145.76947f), 815) { StopDistance = 5f }; - obj291.Steps = list393; + obj291.Steps = list395; reference308 = obj291; - ref QuestSequence reference309 = ref span107[1]; + num++; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span108 = CollectionsMarshal.AsSpan(list394); - ref QuestStep reference310 = ref span108[0]; + List list396 = new List(num2); + CollectionsMarshal.SetCount(list396, num2); + span3 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + ref QuestStep reference310 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2009935u, new Vector3(328.48096f, 1.449585f, -289.5705f), 815); - num3 = 6; - List list395 = new List(num3); - CollectionsMarshal.SetCount(list395, num3); - Span span109 = CollectionsMarshal.AsSpan(list395); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list395; + index3 = 6; + List list397 = new List(index3); + CollectionsMarshal.SetCount(list397, index3); + span6 = CollectionsMarshal.AsSpan(list397); + 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); + questStep19.CompletionQuestVariablesFlags = list397; num3 = 1; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = new DialogueChoice + List list398 = new List(num3); + CollectionsMarshal.SetCount(list398, num3); + span5 = CollectionsMarshal.AsSpan(list398); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA303_03293_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKMA303_03293_A1_000_002") }; - questStep19.DialogueChoices = list396; + questStep19.DialogueChoices = list398; reference310 = questStep19; - ref QuestStep reference311 = ref span108[1]; + index2++; + ref QuestStep reference311 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2009934u, new Vector3(231.15894f, 4.0131226f, -300.55695f), 815); - num3 = 6; - List list397 = new List(num3); - CollectionsMarshal.SetCount(list397, num3); - Span span110 = CollectionsMarshal.AsSpan(list397); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list397; + index3 = 6; + List list399 = new List(index3); + CollectionsMarshal.SetCount(list399, index3); + span6 = CollectionsMarshal.AsSpan(list399); + 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); + questStep20.CompletionQuestVariablesFlags = list399; reference311 = questStep20; - ref QuestStep reference312 = ref span108[2]; + index2++; + ref QuestStep reference312 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2009936u, new Vector3(205.40161f, 4.0131226f, -293.59882f), 815); num3 = 6; - List list398 = new List(num3); - CollectionsMarshal.SetCount(list398, num3); - Span span111 = CollectionsMarshal.AsSpan(list398); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list398; + List list400 = new List(num3); + CollectionsMarshal.SetCount(list400, num3); + span6 = CollectionsMarshal.AsSpan(list400); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list400; reference312 = questStep21; - obj292.Steps = list394; + obj292.Steps = list396; reference309 = obj292; - ref QuestSequence reference313 = ref span107[2]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028976u, new Vector3(313.2218f, 1.4685826f, -154.40613f), 815); - obj293.Steps = list399; + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028976u, new Vector3(313.2218f, 1.4685826f, -154.40613f), 815); + obj293.Steps = list401; reference313 = obj293; - questRoot57.QuestSequence = list392; - AddQuest(questId44, questRoot57); + questRoot56.QuestSequence = list394; + AddQuest(questId44, questRoot56); QuestId questId45 = new QuestId(3294); - QuestRoot questRoot58 = new QuestRoot(); + QuestRoot questRoot57 = new QuestRoot(); num = 1; - List list400 = new List(num); - CollectionsMarshal.SetCount(list400, num); - CollectionsMarshal.AsSpan(list400)[0] = "liza"; - questRoot58.Author = list400; - num = 7; - List list401 = new List(num); - CollectionsMarshal.SetCount(list401, num); - Span span112 = CollectionsMarshal.AsSpan(list401); - ref QuestSequence reference314 = ref span112[0]; + List list402 = new List(num); + CollectionsMarshal.SetCount(list402, num); + span = CollectionsMarshal.AsSpan(list402); + index = 0; + span[index] = "liza"; + questRoot57.Author = list402; + index = 7; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + span2 = CollectionsMarshal.AsSpan(list403); + num = 0; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028977u, new Vector3(313.8933f, 1.4685827f, -156.81696f), 815); - obj294.Steps = list402; + List list404 = new List(num2); + CollectionsMarshal.SetCount(list404, num2); + span3 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028977u, new Vector3(313.8933f, 1.4685827f, -156.81696f), 815); + obj294.Steps = list404; reference314 = obj294; - ref QuestSequence reference315 = ref span112[1]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list403 = new List(num2); - CollectionsMarshal.SetCount(list403, num2); - Span span113 = CollectionsMarshal.AsSpan(list403); - span113[0] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815) + index2 = 2; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815) { PickUpQuestId = new QuestId(3375) }; - span113[1] = new QuestStep(EInteractionType.Interact, 1030606u, new Vector3(347.15796f, -8.423396f, -117.93707f), 815) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030606u, new Vector3(347.15796f, -8.423396f, -117.93707f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - obj295.Steps = list403; + obj295.Steps = list405; reference315 = obj295; - ref QuestSequence reference316 = ref span112[2]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list404 = new List(num2); - CollectionsMarshal.SetCount(list404, num2); - ref QuestStep reference317 = ref CollectionsMarshal.AsSpan(list404)[0]; + List list406 = new List(num2); + CollectionsMarshal.SetCount(list406, num2); + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + ref QuestStep reference317 = ref span3[index2]; QuestStep obj297 = new QuestStep(EInteractionType.Combat, null, new Vector3(443.3203f, -23.82671f, -44.724243f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list405 = new List(num3); - CollectionsMarshal.SetCount(list405, num3); - CollectionsMarshal.AsSpan(list405)[0] = 10874u; - obj297.KillEnemyDataIds = list405; + index3 = 1; + List list407 = new List(index3); + CollectionsMarshal.SetCount(list407, index3); + span4 = CollectionsMarshal.AsSpan(list407); + num3 = 0; + span4[num3] = 10874u; + obj297.KillEnemyDataIds = list407; reference317 = obj297; - obj296.Steps = list404; + obj296.Steps = list406; reference316 = obj296; - ref QuestSequence reference318 = ref span112[3]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj298 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); - obj298.Steps = list406; + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span3 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); + obj298.Steps = list408; reference318 = obj298; - ref QuestSequence reference319 = ref span112[4]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - ref QuestStep reference320 = ref CollectionsMarshal.AsSpan(list407)[0]; + List list409 = new List(num2); + CollectionsMarshal.SetCount(list409, num2); + span3 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + ref QuestStep reference320 = ref span3[index2]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 2009848u, new Vector3(487.51038f, -37.979797f, 56.10742f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list408 = new List(num3); - CollectionsMarshal.SetCount(list408, num3); - CollectionsMarshal.AsSpan(list408)[0] = 10875u; - obj300.KillEnemyDataIds = list408; + List list410 = new List(num3); + CollectionsMarshal.SetCount(list410, num3); + span4 = CollectionsMarshal.AsSpan(list410); + index3 = 0; + span4[index3] = 10875u; + obj300.KillEnemyDataIds = list410; reference320 = obj300; - obj299.Steps = list407; + obj299.Steps = list409; reference319 = obj299; - ref QuestSequence reference321 = ref span112[5]; + num++; + ref QuestSequence reference321 = ref span2[num]; QuestSequence obj301 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); - obj301.Steps = list409; + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); + obj301.Steps = list411; reference321 = obj301; - ref QuestSequence reference322 = ref span112[6]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028980u, new Vector3(388.93713f, -33.327938f, 233.20361f), 815); - obj302.Steps = list410; + List list412 = new List(num2); + CollectionsMarshal.SetCount(list412, num2); + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028980u, new Vector3(388.93713f, -33.327938f, 233.20361f), 815); + obj302.Steps = list412; reference322 = obj302; - questRoot58.QuestSequence = list401; - AddQuest(questId45, questRoot58); + questRoot57.QuestSequence = list403; + AddQuest(questId45, questRoot57); QuestId questId46 = new QuestId(3295); - QuestRoot questRoot59 = new QuestRoot(); + QuestRoot questRoot58 = new QuestRoot(); num = 1; - List list411 = new List(num); - CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; - questRoot59.Author = list411; - num = 7; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span114 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference323 = ref span114[0]; + List list413 = new List(num); + CollectionsMarshal.SetCount(list413, num); + span = CollectionsMarshal.AsSpan(list413); + index = 0; + span[index] = "liza"; + questRoot58.Author = list413; + index = 7; + List list414 = new List(index); + CollectionsMarshal.SetCount(list414, index); + span2 = CollectionsMarshal.AsSpan(list414); + num = 0; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj303 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + span3 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) { StopDistance = 7f }; - obj303.Steps = list413; + obj303.Steps = list415; reference323 = obj303; - ref QuestSequence reference324 = ref span114[1]; + num++; + ref QuestSequence reference324 = ref span2[num]; QuestSequence obj304 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - Span span115 = CollectionsMarshal.AsSpan(list414); - span115[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + List list416 = new List(num2); + CollectionsMarshal.SetCount(list416, num2); + span3 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengInnAtJourneysHead }; - span115[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010047u, new Vector3(344.6554f, -66.54462f, 538.9332f), 815) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010047u, new Vector3(344.6554f, -66.54462f, 538.9332f), 815) { AetherCurrentId = 2818256u }; - span115[2] = new QuestStep(EInteractionType.Interact, 2009849u, new Vector3(362.50854f, -63.95056f, 503.65454f), 815); - obj304.Steps = list414; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009849u, new Vector3(362.50854f, -63.95056f, 503.65454f), 815); + obj304.Steps = list416; reference324 = obj304; - ref QuestSequence reference325 = ref span114[2]; + num++; + ref QuestSequence reference325 = ref span2[num]; QuestSequence obj305 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 2009850u, new Vector3(357.04578f, -63.34027f, 497.79492f), 815) + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + span3 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009850u, new Vector3(357.04578f, -63.34027f, 497.79492f), 815) { DisableNavmesh = true }; - obj305.Steps = list415; + obj305.Steps = list417; reference325 = obj305; - ref QuestSequence reference326 = ref span114[3]; + num++; + ref QuestSequence reference326 = ref span2[num]; QuestSequence obj306 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list416 = new List(num2); - CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.Interact, 2009851u, new Vector3(329.57947f, -72.15991f, 463.3401f), 815) + List list418 = new List(num2); + CollectionsMarshal.SetCount(list418, num2); + span3 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009851u, new Vector3(329.57947f, -72.15991f, 463.3401f), 815) { DisableNavmesh = true }; - obj306.Steps = list416; + obj306.Steps = list418; reference326 = obj306; - ref QuestSequence reference327 = ref span114[4]; + num++; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj307 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 2009852u, new Vector3(285.60303f, -66.88031f, 404.2572f), 815); - obj307.Steps = list417; + index2 = 1; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009852u, new Vector3(285.60303f, -66.88031f, 404.2572f), 815); + obj307.Steps = list419; reference327 = obj307; - ref QuestSequence reference328 = ref span114[5]; + num++; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj308 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 2009853u, new Vector3(200.79346f, -82.29199f, 384.32886f), 815); - obj308.Steps = list418; + List list420 = new List(num2); + CollectionsMarshal.SetCount(list420, num2); + span3 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009853u, new Vector3(200.79346f, -82.29199f, 384.32886f), 815); + obj308.Steps = list420; reference328 = obj308; - ref QuestSequence reference329 = ref span114[6]; + num++; + ref QuestSequence reference329 = ref span2[num]; QuestSequence obj309 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); - obj309.Steps = list419; + index2 = 1; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + span3 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); + obj309.Steps = list421; reference329 = obj309; - questRoot59.QuestSequence = list412; - AddQuest(questId46, questRoot59); + questRoot58.QuestSequence = list414; + AddQuest(questId46, questRoot58); QuestId questId47 = new QuestId(3296); - QuestRoot questRoot60 = new QuestRoot(); + questRoot2 = new QuestRoot(); + QuestRoot questRoot59 = questRoot2; num = 1; - List list420 = new List(num); - CollectionsMarshal.SetCount(list420, num); - CollectionsMarshal.AsSpan(list420)[0] = "liza"; - questRoot60.Author = list420; - num = 4; - List list421 = new List(num); - CollectionsMarshal.SetCount(list421, num); - Span span116 = CollectionsMarshal.AsSpan(list421); - ref QuestSequence reference330 = ref span116[0]; + List list422 = new List(num); + CollectionsMarshal.SetCount(list422, num); + span = CollectionsMarshal.AsSpan(list422); + index = 0; + span[index] = "liza"; + questRoot59.Author = list422; + QuestRoot questRoot60 = questRoot2; + index = 4; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference330 = ref span2[num]; QuestSequence obj310 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); - obj310.Steps = list422; + List list423 = new List(num2); + CollectionsMarshal.SetCount(list423, num2); + span3 = CollectionsMarshal.AsSpan(list423); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); + obj310.Steps = list423; reference330 = obj310; - ref QuestSequence reference331 = ref span116[1]; + num++; + ref QuestSequence reference331 = ref span2[num]; QuestSequence obj311 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - Span span117 = CollectionsMarshal.AsSpan(list423); - ref QuestStep reference332 = ref span117[0]; + index2 = 3; + List list424 = new List(index2); + CollectionsMarshal.SetCount(list424, index2); + span3 = CollectionsMarshal.AsSpan(list424); + num2 = 0; + ref QuestStep reference332 = ref span3[num2]; QuestStep obj312 = new QuestStep(EInteractionType.Combat, 2009854u, new Vector3(215.44214f, -58.609924f, 262.745f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list424 = new List(num3); - CollectionsMarshal.SetCount(list424, num3); - CollectionsMarshal.AsSpan(list424)[0] = 10876u; - obj312.KillEnemyDataIds = list424; - num3 = 6; - List list425 = new List(num3); - CollectionsMarshal.SetCount(list425, num3); - Span span118 = CollectionsMarshal.AsSpan(list425); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj312.CompletionQuestVariablesFlags = list425; - reference332 = obj312; - ref QuestStep reference333 = ref span117[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2009855u, new Vector3(259.20496f, -44.571655f, 159.74658f), 815); + index3 = 1; + List list425 = new List(index3); + CollectionsMarshal.SetCount(list425, index3); + span4 = CollectionsMarshal.AsSpan(list425); + num3 = 0; + span4[num3] = 10876u; + obj312.KillEnemyDataIds = 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; + span6 = CollectionsMarshal.AsSpan(list426); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj312.CompletionQuestVariablesFlags = list426; + reference332 = obj312; + num2++; + ref QuestStep reference333 = ref span3[num2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2009855u, new Vector3(259.20496f, -44.571655f, 159.74658f), 815); + index3 = 6; + List list427 = new List(index3); + CollectionsMarshal.SetCount(list427, index3); + span6 = CollectionsMarshal.AsSpan(list427); + 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); + questStep22.CompletionQuestVariablesFlags = list427; reference333 = questStep22; - ref QuestStep reference334 = ref span117[2]; + num2++; + ref QuestStep reference334 = ref span3[num2]; QuestStep obj313 = new QuestStep(EInteractionType.Combat, 2009856u, new Vector3(337.08704f, -35.01947f, 42.313232f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list427 = new List(num3); - CollectionsMarshal.SetCount(list427, num3); - CollectionsMarshal.AsSpan(list427)[0] = 10876u; - obj313.KillEnemyDataIds = list427; - num3 = 6; - List list428 = new List(num3); + 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; + span4 = CollectionsMarshal.AsSpan(list428); + index3 = 0; + span4[index3] = 10876u; + obj313.KillEnemyDataIds = list428; + index3 = 6; + List list429 = new List(index3); + CollectionsMarshal.SetCount(list429, index3); + span6 = CollectionsMarshal.AsSpan(list429); + 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); + obj313.CompletionQuestVariablesFlags = list429; reference334 = obj313; - obj311.Steps = list423; + obj311.Steps = list424; reference331 = obj311; - ref QuestSequence reference335 = ref span116[2]; + num++; + ref QuestSequence reference335 = ref span2[num]; QuestSequence obj314 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list429 = new List(num2); - CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1029003u, new Vector3(392.4773f, -33.87629f, 229.54138f), 815); - obj314.Steps = list429; + List list430 = new List(num2); + CollectionsMarshal.SetCount(list430, num2); + span3 = CollectionsMarshal.AsSpan(list430); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029003u, new Vector3(392.4773f, -33.87629f, 229.54138f), 815); + obj314.Steps = list430; reference335 = obj314; - ref QuestSequence reference336 = ref span116[3]; + num++; + ref QuestSequence reference336 = ref span2[num]; QuestSequence obj315 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); - obj315.Steps = list430; + index2 = 1; + List list431 = new List(index2); + CollectionsMarshal.SetCount(list431, index2); + span3 = CollectionsMarshal.AsSpan(list431); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + obj315.Steps = list431; reference336 = obj315; - questRoot60.QuestSequence = list421; - AddQuest(questId47, questRoot60); + questRoot60.QuestSequence = list8; + AddQuest(questId47, questRoot2); QuestId questId48 = new QuestId(3297); - questRoot2 = new QuestRoot(); - QuestRoot questRoot61 = questRoot2; + QuestRoot questRoot61 = new QuestRoot(); num = 1; - List list431 = new List(num); - CollectionsMarshal.SetCount(list431, num); - CollectionsMarshal.AsSpan(list431)[0] = "liza"; - questRoot61.Author = list431; - QuestRoot questRoot62 = questRoot2; - num = 9; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span121 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference337 = ref span121[0]; + List list432 = new List(num); + CollectionsMarshal.SetCount(list432, num); + span = CollectionsMarshal.AsSpan(list432); + index = 0; + span[index] = "liza"; + questRoot61.Author = list432; + index = 9; + List list433 = new List(index); + CollectionsMarshal.SetCount(list433, index); + span2 = CollectionsMarshal.AsSpan(list433); + num = 0; + ref QuestSequence reference337 = ref span2[num]; QuestSequence obj316 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); - obj316.Steps = list432; + List list434 = new List(num2); + CollectionsMarshal.SetCount(list434, num2); + span3 = CollectionsMarshal.AsSpan(list434); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + obj316.Steps = list434; reference337 = obj316; - ref QuestSequence reference338 = ref span121[1]; + num++; + ref QuestSequence reference338 = ref span2[num]; QuestSequence obj317 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list433 = new List(num2); - CollectionsMarshal.SetCount(list433, num2); - CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815); - obj317.Steps = list433; + index2 = 1; + List list435 = new List(index2); + CollectionsMarshal.SetCount(list435, index2); + span3 = CollectionsMarshal.AsSpan(list435); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815); + obj317.Steps = list435; reference338 = obj317; - ref QuestSequence reference339 = ref span121[2]; + num++; + ref QuestSequence reference339 = ref span2[num]; QuestSequence obj318 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list434 = new List(num2); - CollectionsMarshal.SetCount(list434, num2); - CollectionsMarshal.AsSpan(list434)[0] = new QuestStep(EInteractionType.Interact, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) + List list436 = new List(num2); + CollectionsMarshal.SetCount(list436, num2); + span3 = CollectionsMarshal.AsSpan(list436); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) { StopDistance = 7f }; - obj318.Steps = list434; + obj318.Steps = list436; reference339 = obj318; - ref QuestSequence reference340 = ref span121[3]; + num++; + ref QuestSequence reference340 = ref span2[num]; QuestSequence obj319 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list435 = new List(num2); - CollectionsMarshal.SetCount(list435, num2); - Span span122 = CollectionsMarshal.AsSpan(list435); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(362.283f, -27.966003f, 304.85144f), 815); - span122[1] = new QuestStep(EInteractionType.Interact, 1030386u, new Vector3(363.4851f, -27.966003f, 301.2893f), 815) + index2 = 2; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + span3 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(362.283f, -27.966003f, 304.85144f), 815); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030386u, new Vector3(363.4851f, -27.966003f, 301.2893f), 815) { StopDistance = 5f }; - obj319.Steps = list435; + obj319.Steps = list437; reference340 = obj319; - ref QuestSequence reference341 = ref span121[4]; + num++; + ref QuestSequence reference341 = ref span2[num]; QuestSequence obj320 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list436 = new List(num2); - CollectionsMarshal.SetCount(list436, num2); - CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.Interact, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); - obj320.Steps = list436; + List list438 = new List(num2); + CollectionsMarshal.SetCount(list438, num2); + span3 = CollectionsMarshal.AsSpan(list438); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + obj320.Steps = list438; reference341 = obj320; - ref QuestSequence reference342 = ref span121[5]; + num++; + ref QuestSequence reference342 = ref span2[num]; QuestSequence obj321 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.Interact, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) + index2 = 1; + List list439 = new List(index2); + CollectionsMarshal.SetCount(list439, index2); + span3 = CollectionsMarshal.AsSpan(list439); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - obj321.Steps = list437; + obj321.Steps = list439; reference342 = obj321; - ref QuestSequence reference343 = ref span121[6]; + num++; + ref QuestSequence reference343 = ref span2[num]; QuestSequence obj322 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list438 = new List(num2); - CollectionsMarshal.SetCount(list438, num2); - CollectionsMarshal.AsSpan(list438)[0] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); - obj322.Steps = list438; + List list440 = new List(num2); + CollectionsMarshal.SetCount(list440, num2); + span3 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); + obj322.Steps = list440; reference343 = obj322; - ref QuestSequence reference344 = ref span121[7]; + num++; + ref QuestSequence reference344 = ref span2[num]; QuestSequence obj323 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list439 = new List(num2); - CollectionsMarshal.SetCount(list439, num2); - CollectionsMarshal.AsSpan(list439)[0] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); - obj323.Steps = list439; + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + span3 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); + obj323.Steps = list441; reference344 = obj323; - ref QuestSequence reference345 = ref span121[8]; + num++; + ref QuestSequence reference345 = ref span2[num]; QuestSequence obj324 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list440 = new List(num2); - CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) + List list442 = new List(num2); + CollectionsMarshal.SetCount(list442, num2); + span3 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; - obj324.Steps = list440; + obj324.Steps = list442; reference345 = obj324; - questRoot62.QuestSequence = list8; - AddQuest(questId48, questRoot2); + questRoot61.QuestSequence = list433; + AddQuest(questId48, questRoot61); QuestId questId49 = new QuestId(3298); questRoot2 = new QuestRoot(); - QuestRoot questRoot63 = questRoot2; + QuestRoot questRoot62 = questRoot2; num = 1; - List list441 = new List(num); - CollectionsMarshal.SetCount(list441, num); - CollectionsMarshal.AsSpan(list441)[0] = "liza"; - questRoot63.Author = list441; - QuestRoot questRoot64 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span123 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference346 = ref span123[0]; + List list443 = new List(num); + CollectionsMarshal.SetCount(list443, num); + span = CollectionsMarshal.AsSpan(list443); + index = 0; + span[index] = "liza"; + questRoot62.Author = list443; + QuestRoot questRoot63 = questRoot2; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference346 = ref span2[num]; QuestSequence obj325 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list442 = new List(num2); - CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); - obj325.Steps = list442; + index2 = 1; + List list444 = new List(index2); + CollectionsMarshal.SetCount(list444, index2); + span3 = CollectionsMarshal.AsSpan(list444); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + obj325.Steps = list444; reference346 = obj325; - ref QuestSequence reference347 = ref span123[1]; + num++; + ref QuestSequence reference347 = ref span2[num]; QuestSequence obj326 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1029008u, new Vector3(399.64905f, -28.357803f, 349.813f), 815) + List list445 = new List(num2); + CollectionsMarshal.SetCount(list445, num2); + span3 = CollectionsMarshal.AsSpan(list445); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029008u, new Vector3(399.64905f, -28.357803f, 349.813f), 815) { StopDistance = 7f }; - obj326.Steps = list443; + obj326.Steps = list445; reference347 = obj326; - ref QuestSequence reference348 = ref span123[2]; + num++; + ref QuestSequence reference348 = ref span2[num]; QuestSequence obj327 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list444 = new List(num2); - CollectionsMarshal.SetCount(list444, num2); - CollectionsMarshal.AsSpan(list444)[0] = new QuestStep(EInteractionType.Interact, 2009858u, new Vector3(473.50256f, -72.67877f, 487.57153f), 815); - obj327.Steps = list444; + index2 = 1; + List list446 = new List(index2); + CollectionsMarshal.SetCount(list446, index2); + span3 = CollectionsMarshal.AsSpan(list446); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009858u, new Vector3(473.50256f, -72.67877f, 487.57153f), 815); + obj327.Steps = list446; reference348 = obj327; - ref QuestSequence reference349 = ref span123[3]; + num++; + ref QuestSequence reference349 = ref span2[num]; QuestSequence obj328 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list445 = new List(num2); - CollectionsMarshal.SetCount(list445, num2); - ref QuestStep reference350 = ref CollectionsMarshal.AsSpan(list445)[0]; + List list447 = new List(num2); + CollectionsMarshal.SetCount(list447, num2); + span3 = CollectionsMarshal.AsSpan(list447); + index2 = 0; + ref QuestStep reference350 = ref span3[index2]; QuestStep obj329 = new QuestStep(EInteractionType.Combat, 2009859u, new Vector3(317.28076f, -76.554565f, 476.64612f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list446 = new List(num3); - CollectionsMarshal.SetCount(list446, num3); - CollectionsMarshal.AsSpan(list446)[0] = 10877u; - obj329.KillEnemyDataIds = list446; + List list448 = new List(num3); + CollectionsMarshal.SetCount(list448, num3); + span4 = CollectionsMarshal.AsSpan(list448); + index3 = 0; + span4[index3] = 10877u; + obj329.KillEnemyDataIds = list448; reference350 = obj329; - obj328.Steps = list445; + obj328.Steps = list447; reference349 = obj328; - ref QuestSequence reference351 = ref span123[4]; + num++; + ref QuestSequence reference351 = ref span2[num]; QuestSequence obj330 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list447 = new List(num2); - CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.Interact, 2009860u, new Vector3(284.26025f, -43.90027f, 302.2965f), 815); - obj330.Steps = list447; + index2 = 1; + List list449 = new List(index2); + CollectionsMarshal.SetCount(list449, index2); + span3 = CollectionsMarshal.AsSpan(list449); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009860u, new Vector3(284.26025f, -43.90027f, 302.2965f), 815); + obj330.Steps = list449; reference351 = obj330; - ref QuestSequence reference352 = ref span123[5]; + num++; + ref QuestSequence reference352 = ref span2[num]; QuestSequence obj331 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list448 = new List(num2); - CollectionsMarshal.SetCount(list448, num2); - CollectionsMarshal.AsSpan(list448)[0] = new QuestStep(EInteractionType.Interact, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); - obj331.Steps = list448; + List list450 = new List(num2); + CollectionsMarshal.SetCount(list450, num2); + span3 = CollectionsMarshal.AsSpan(list450); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); + obj331.Steps = list450; reference352 = obj331; - ref QuestSequence reference353 = ref span123[6]; + num++; + ref QuestSequence reference353 = ref span2[num]; QuestSequence obj332 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list449 = new List(num2); - CollectionsMarshal.SetCount(list449, num2); - Span span124 = CollectionsMarshal.AsSpan(list449); - ref QuestStep reference354 = ref span124[0]; + index2 = 2; + List list451 = new List(index2); + CollectionsMarshal.SetCount(list451, index2); + span3 = CollectionsMarshal.AsSpan(list451); + num2 = 0; + ref QuestStep reference354 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1027906u, new Vector3(423.14795f, -26.83098f, 294.6974f), 815); - num3 = 6; - List list450 = new List(num3); - CollectionsMarshal.SetCount(list450, num3); - Span span125 = CollectionsMarshal.AsSpan(list450); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list450; + index3 = 6; + List list452 = new List(index3); + CollectionsMarshal.SetCount(list452, index3); + span6 = CollectionsMarshal.AsSpan(list452); + 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); + questStep23.CompletionQuestVariablesFlags = list452; reference354 = questStep23; - ref QuestStep reference355 = ref span124[1]; + num2++; + ref QuestStep reference355 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1027911u, new Vector3(378.71362f, -28.255466f, 324.97144f), 815); num3 = 6; - List list451 = new List(num3); - CollectionsMarshal.SetCount(list451, num3); - Span span126 = CollectionsMarshal.AsSpan(list451); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list451; + List list453 = new List(num3); + CollectionsMarshal.SetCount(list453, num3); + span6 = CollectionsMarshal.AsSpan(list453); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep24.CompletionQuestVariablesFlags = list453; reference355 = questStep24; - obj332.Steps = list449; + obj332.Steps = list451; reference353 = obj332; - ref QuestSequence reference356 = ref span123[7]; + num++; + ref QuestSequence reference356 = ref span2[num]; QuestSequence obj333 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list452 = new List(num2); - CollectionsMarshal.SetCount(list452, num2); - CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029012u, new Vector3(400.80872f, -28.75819f, 257.28235f), 815); - obj333.Steps = list452; + List list454 = new List(num2); + CollectionsMarshal.SetCount(list454, num2); + span3 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029012u, new Vector3(400.80872f, -28.75819f, 257.28235f), 815); + obj333.Steps = list454; reference356 = obj333; - questRoot64.QuestSequence = list8; + questRoot63.QuestSequence = list8; AddQuest(questId49, questRoot2); QuestId questId50 = new QuestId(3299); - QuestRoot questRoot65 = new QuestRoot(); + QuestRoot questRoot64 = new QuestRoot(); num = 1; - List list453 = new List(num); - CollectionsMarshal.SetCount(list453, num); - CollectionsMarshal.AsSpan(list453)[0] = "liza"; - questRoot65.Author = list453; - num = 4; - List list454 = new List(num); - CollectionsMarshal.SetCount(list454, num); - Span span127 = CollectionsMarshal.AsSpan(list454); - ref QuestSequence reference357 = ref span127[0]; + List list455 = new List(num); + CollectionsMarshal.SetCount(list455, num); + span = CollectionsMarshal.AsSpan(list455); + index = 0; + span[index] = "liza"; + questRoot64.Author = list455; + index = 4; + List list456 = new List(index); + CollectionsMarshal.SetCount(list456, index); + span2 = CollectionsMarshal.AsSpan(list456); + num = 0; + ref QuestSequence reference357 = ref span2[num]; QuestSequence obj334 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); - obj334.Steps = list455; + index2 = 1; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + span3 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); + obj334.Steps = list457; reference357 = obj334; - ref QuestSequence reference358 = ref span127[1]; + num++; + ref QuestSequence reference358 = ref span2[num]; QuestSequence obj335 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list456 = new List(num2); - CollectionsMarshal.SetCount(list456, num2); - Span span128 = CollectionsMarshal.AsSpan(list456); - span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.63951f, 36.19769f, -170.36603f), 819) + List list458 = new List(num2); + CollectionsMarshal.SetCount(list458, num2); + span3 = CollectionsMarshal.AsSpan(list458); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.63951f, 36.19769f, -170.36603f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -221729,34 +266339,41 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span128[1] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { TargetTerritoryId = (ushort)815 }; - span128[2] = new QuestStep(EInteractionType.Interact, 1029013u, new Vector3(664.4236f, -48.865906f, -651.3619f), 815); - obj335.Steps = list456; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029013u, new Vector3(664.4236f, -48.865906f, -651.3619f), 815); + obj335.Steps = list458; reference358 = obj335; - ref QuestSequence reference359 = ref span127[2]; + num++; + ref QuestSequence reference359 = ref span2[num]; QuestSequence obj336 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1029014u, new Vector3(46.707764f, 36.197685f, -167.43726f), 819); - obj336.Steps = list457; + index2 = 1; + List list459 = new List(index2); + CollectionsMarshal.SetCount(list459, index2); + span3 = CollectionsMarshal.AsSpan(list459); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029014u, new Vector3(46.707764f, 36.197685f, -167.43726f), 819); + obj336.Steps = list459; reference359 = obj336; - ref QuestSequence reference360 = ref span127[3]; + num++; + ref QuestSequence reference360 = ref span2[num]; QuestSequence obj337 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list458 = new List(num2); - CollectionsMarshal.SetCount(list458, num2); - Span span129 = CollectionsMarshal.AsSpan(list458); - span129[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + List list460 = new List(num2); + CollectionsMarshal.SetCount(list460, num2); + span3 = CollectionsMarshal.AsSpan(list460); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -221765,11 +266382,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1029015u, new Vector3(2.243042f, 0f, -4.1047363f), 844); - obj337.Steps = list458; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029015u, new Vector3(2.243042f, 0f, -4.1047363f), 844); + obj337.Steps = list460; reference360 = obj337; - questRoot65.QuestSequence = list454; - AddQuest(questId50, questRoot65); + questRoot64.QuestSequence = list456; + AddQuest(questId50, questRoot64); } private static void LoadQuests66() @@ -221779,13 +266397,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -221793,27 +266414,33 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -221821,8 +266448,9 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010024u, new Vector3(554.2534f, 17.92926f, 352.1018f), 813) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010024u, new Vector3(554.2534f, 17.92926f, 352.1018f), 813) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -221832,32 +266460,40 @@ public static class AssemblyQuestLoader }, AetherCurrentId = 2818223u }; - span2[1] = new QuestStep(EInteractionType.Interact, 1028928u, new Vector3(347.98206f, 3.5166266f, 167.89502f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028928u, new Vector3(347.98206f, 3.5166266f, 167.89502f), 813); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(697.40857f, 21.402163f, -28.658777f), 813); - span3[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) + index2 = 5; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(697.40857f, 21.402163f, -28.658777f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) { Aetheryte = EAetheryteLocation.LakelandFortJobb }; - span3[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(601.42426f, 23.210327f, -223.36815f), 813); - span3[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010028u, new Vector3(613.24475f, 24.002441f, -231.15894f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(601.42426f, 23.210327f, -223.36815f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010028u, new Vector3(613.24475f, 24.002441f, -231.15894f), 813) { AetherCurrentId = 2818227u }; - span3[4] = new QuestStep(EInteractionType.Interact, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -221865,7 +266501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Duty, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 813) { DutyOptions = new DutyOptions { @@ -221875,19 +266513,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - span[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference6 = ref span[6]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -221897,13 +266534,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 5; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span4 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span4[0]; + index = 5; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -221911,24 +266551,30 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1028929u, new Vector3(-4.501404f, -2.4866313E-07f, -7.370178f), 819) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028929u, new Vector3(-4.501404f, -2.4866313E-07f, -7.370178f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -221936,24 +266582,30 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span4[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 4f }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span4[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -221961,7 +266613,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f @@ -221969,7 +266623,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA402_03301_Q1_000_000") @@ -221985,24 +266641,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 6; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span5[0]; + index = 6; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819); obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -222010,12 +266672,14 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span6 = CollectionsMarshal.AsSpan(list20); - span6[0] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819) { PickUpQuestId = new QuestId(3380) }; - span6[1] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -222034,15 +266698,18 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span5[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -222053,7 +266720,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -222061,21 +266729,27 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 2009809u, new Vector3(-62.638306f, -35.446716f, -275.83734f), 819); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009809u, new Vector3(-62.638306f, -35.446716f, -275.83734f), 819); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span5[5]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -222083,7 +266757,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028941u, new Vector3(-67.0329f, -37.700005f, -209.15546f), 819); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028941u, new Vector3(-67.0329f, -37.700005f, -209.15546f), 819); obj18.Steps = list24; reference18 = obj18; questRoot3.QuestSequence = list18; @@ -222093,27 +266769,33 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; questRoot4.Author = list25; - num = 6; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span7 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span7[0]; + index = 6; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028943u, new Vector3(-65.4765f, -37.7f, -209.0028f), 819) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028943u, new Vector3(-65.4765f, -37.7f, -209.0028f), 819) { StopDistance = 5f }; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span7[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -222121,21 +266803,26 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1028944u, new Vector3(-63.767517f, -37.7f, -210.2846f), 819) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028944u, new Vector3(-63.767517f, -37.7f, -210.2846f), 819) { StopDistance = 5f }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span7[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { AethernetShortcut = new AethernetShortcut { @@ -222145,7 +266832,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span7[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 @@ -222153,7 +266841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AethernetShortcut = new AethernetShortcut { @@ -222163,21 +266853,25 @@ public static class AssemblyQuestLoader }; obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference23 = ref span7[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-28.545706f, -0.65f, -49.711563f), 819) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-28.545706f, -0.65f, -49.711563f), 819) { ItemId = 2002531u }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span7[5]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -222185,7 +266879,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819) { AethernetShortcut = new AethernetShortcut { @@ -222202,24 +266898,30 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot5.Author = list33; - num = 6; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span8 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span8[0]; + index = 6; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span8[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -222227,24 +266929,30 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1028945u, new Vector3(588.55554f, 9.151089f, 342.7328f), 813); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028945u, new Vector3(588.55554f, 9.151089f, 342.7328f), 813); obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span8[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.7502f, 5.7616043f, -84.08555f), 813) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.7502f, 5.7616043f, -84.08555f), 813) { Fly = true }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span8[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -222252,27 +266960,33 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-621.27985f, 56.75789f, -151.14738f), 813) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-621.27985f, 56.75789f, -151.14738f), 813) { Fly = true }; obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference29 = ref span8[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1027395u, new Vector3(-618.06665f, 56.75789f, -148.24146f), 813) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027395u, new Vector3(-618.06665f, 56.75789f, -148.24146f), 813) { StopDistance = 5f }; obj29.Steps = list39; reference29 = obj29; - ref QuestSequence reference30 = ref span8[5]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -222280,23 +266994,29 @@ public static class AssemblyQuestLoader num2 = 6; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span9 = CollectionsMarshal.AsSpan(list40); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.08356f, 52.60457f, -186.09218f), 813); - span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-628.89685f, 52.60457f, -190.31772f), 813) + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.08356f, 52.60457f, -186.09218f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-628.89685f, 52.60457f, -190.31772f), 813) { DisableNavmesh = true }; - span9[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010032u, new Vector3(-619.6537f, 51.499146f, -199.11499f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010032u, new Vector3(-619.6537f, 51.499146f, -199.11499f), 813) { DisableNavmesh = true, AetherCurrentId = 2818231u }; - span9[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) { Aetheryte = EAetheryteLocation.LakelandOstallImperative }; - span9[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.6047f, 50.939487f, -270.97464f), 813); - span9[5] = new QuestStep(EInteractionType.CompleteQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.6047f, 50.939487f, -270.97464f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813) { DisableNavmesh = true }; @@ -222309,24 +267029,30 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot6.Author = list41; - num = 7; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span10 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span10[0]; + index = 7; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); obj31.Steps = list43; reference31 = obj31; - ref QuestSequence reference32 = ref span10[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -222334,67 +267060,92 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span11 = CollectionsMarshal.AsSpan(list44); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-635.37024f, 56.201702f, -142.69623f), 813); - span11[1] = new QuestStep(EInteractionType.Interact, 2009814u, new Vector3(-636.16394f, 57.358643f, -137.62122f), 813); + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-635.37024f, 56.201702f, -142.69623f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009814u, new Vector3(-636.16394f, 57.358643f, -137.62122f), 813); obj32.Steps = list44; reference32 = obj32; - ref QuestSequence reference33 = ref span10[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference34 = ref span12[0]; + index2 = 5; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1028951u, new Vector3(-639.0631f, 56.95372f, -167.71198f), 813); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span13 = CollectionsMarshal.AsSpan(list46); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list46; reference34 = questStep; - ref QuestStep reference35 = ref span12[1]; + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-679.40436f, 52.60457f, -153.66644f), 813); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span14 = CollectionsMarshal.AsSpan(list47); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list47; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference35 = questStep2; - ref QuestStep reference36 = ref span12[2]; + num2++; + ref QuestStep reference36 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1028952u, new Vector3(-750.20984f, 66.442f, -194.32367f), 813); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span15 = CollectionsMarshal.AsSpan(list48); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + span5 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list48; reference36 = questStep3; - ref QuestStep reference37 = ref span12[3]; + num2++; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1028953u, new Vector3(-776.51636f, 51.56758f, -243.57977f), 813) { DisableNavmesh = true, @@ -222403,36 +267154,50 @@ public static class AssemblyQuestLoader num3 = 6; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list49; reference37 = obj34; - ref QuestStep reference38 = ref span12[4]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1028954u, new Vector3(-715.78546f, 51.50113f, -265.49176f), 813) { DisableNavmesh = true, Mount = true }; - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span17 = CollectionsMarshal.AsSpan(list50); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span5 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list50; reference38 = obj35; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference39 = ref span10[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -222440,31 +267205,38 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); obj36.Steps = list51; reference39 = obj36; - ref QuestSequence reference40 = ref span10[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 16; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span18 = CollectionsMarshal.AsSpan(list52); - span18[0] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) + index2 = 16; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) { PickUpQuestId = new QuestId(3385) }; - span18[1] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { PickUpQuestId = new QuestId(3384) }; - span18[2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813) { PickUpQuestId = new QuestId(3386) }; - span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) { Comment = "Tower Bottom", AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -222476,7 +267248,8 @@ public static class AssemblyQuestLoader } } }; - span18[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) { DisableNavmesh = true, Comment = "Tower Bottom Platform 1", @@ -222488,7 +267261,8 @@ public static class AssemblyQuestLoader } } }; - span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.0622f, 149.62582f, -337.95224f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.0622f, 149.62582f, -337.95224f), 813) { Comment = "Wooden Skywalk Bottom", SkipConditions = new SkipConditions @@ -222499,7 +267273,8 @@ public static class AssemblyQuestLoader } } }; - span18[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-765.9982f, 155.44612f, -338.81696f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-765.9982f, 155.44612f, -338.81696f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 1", @@ -222511,7 +267286,8 @@ public static class AssemblyQuestLoader } } }; - span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-754.08276f, 168.09683f, -308.96964f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-754.08276f, 168.09683f, -308.96964f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 2", @@ -222523,7 +267299,8 @@ public static class AssemblyQuestLoader } } }; - span18[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-785.5669f, 180.77463f, -297.20663f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-785.5669f, 180.77463f, -297.20663f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 3", @@ -222535,7 +267312,8 @@ public static class AssemblyQuestLoader } } }; - span18[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-797.36646f, 193.39963f, -328.5602f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-797.36646f, 193.39963f, -328.5602f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 4", @@ -222547,7 +267325,8 @@ public static class AssemblyQuestLoader } } }; - span18[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-778.27325f, 200.46912f, -335.60287f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-778.27325f, 200.46912f, -335.60287f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Top", @@ -222559,7 +267338,8 @@ public static class AssemblyQuestLoader } } }; - span18[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-773.5372f, 200.21283f, -331.92017f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-773.5372f, 200.21283f, -331.92017f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -222570,7 +267350,8 @@ public static class AssemblyQuestLoader } } }; - span18[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-764.10376f, 200.22963f, -332.95276f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-764.10376f, 200.22963f, -332.95276f), 813) { SkipConditions = new SkipConditions { @@ -222580,7 +267361,8 @@ public static class AssemblyQuestLoader } } }; - span18[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.3483f, 200.13994f, -312.77927f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.3483f, 200.13994f, -312.77927f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -222591,7 +267373,8 @@ public static class AssemblyQuestLoader } } }; - span18[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-756.9433f, 200.1388f, -295.38437f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-756.9433f, 200.1388f, -295.38437f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -222602,7 +267385,8 @@ public static class AssemblyQuestLoader } } }; - span18[15] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028955u, new Vector3(-755.67255f, 200.19878f, -293.87354f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028955u, new Vector3(-755.67255f, 200.19878f, -293.87354f), 813) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -222611,11 +267395,13 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference40 = obj37; - span10[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference41 = ref span10[6]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -222623,7 +267409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) { DisableNavmesh = true }; @@ -222636,27 +267424,33 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "liza"; questRoot7.Author = list54; - num = 4; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span19 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference42 = ref span19[0]; + index = 4; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) { DisableNavmesh = true }; obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span19[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -222664,35 +267458,42 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); obj40.Steps = list57; reference43 = obj40; - ref QuestSequence reference44 = ref span19[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - span20[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegLydhaLran }; - ref QuestStep reference45 = ref span20[1]; + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2009816u, new Vector3(-382.8031f, 60.746094f, 530.5714f), 816); num3 = 2; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span21 = CollectionsMarshal.AsSpan(list59); - span21[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB105_03306_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKMB105_03306_A3_000_002") }; - span21[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB105_03306_Q4_000_000"), @@ -222702,7 +267503,8 @@ public static class AssemblyQuestLoader reference45 = questStep4; obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference46 = ref span19[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -222710,7 +267512,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); obj42.Steps = list60; reference46 = obj42; questRoot7.QuestSequence = list55; @@ -222720,24 +267524,30 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; questRoot8.Author = list61; - num = 3; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span22 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference47 = ref span22[0]; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference48 = ref span22[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -222745,30 +267555,39 @@ public static class AssemblyQuestLoader num2 = 6; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span23 = CollectionsMarshal.AsSpan(list64); - span23[0] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) { PickUpQuestId = new QuestId(3395) }; - ref QuestStep reference49 = ref span23[1]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.70227f, 69.40222f, 546.2372f), 816); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span24 = CollectionsMarshal.AsSpan(list65); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + span5 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions2.StepIf = skipStepConditions2; questStep5.SkipConditions = skipConditions2; reference49 = questStep5; - ref QuestStep reference50 = ref span23[2]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.UseItem, 2009820u, new Vector3(-375.29565f, 76.06616f, 550.4386f), 816) { DisableNavmesh = true, @@ -222777,37 +267596,51 @@ public static class AssemblyQuestLoader num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span25 = CollectionsMarshal.AsSpan(list66); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list66; reference50 = obj45; - ref QuestStep reference51 = ref span23[3]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.67172f, 58.587833f, 553.26294f), 816) { DisableNavmesh = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span26 = CollectionsMarshal.AsSpan(list67); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + span5 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list67; skipConditions3.StepIf = skipStepConditions3; obj46.SkipConditions = skipConditions3; reference51 = obj46; - ref QuestStep reference52 = ref span23[4]; + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, 2009819u, new Vector3(-454.88672f, 80.125f, 593.469f), 816) { ItemId = 2002534u @@ -222815,43 +267648,59 @@ public static class AssemblyQuestLoader num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span27 = CollectionsMarshal.AsSpan(list68); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list68; reference52 = obj47; - ref QuestStep reference53 = ref span23[5]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 2009821u, new Vector3(-280.32355f, 56.22937f, 474.08252f), 816) { ItemId = 2002534u }; - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span28 = CollectionsMarshal.AsSpan(list69); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span5 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list69; reference53 = obj48; obj44.Steps = list64; reference48 = obj44; - ref QuestSequence reference54 = ref span22[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); obj49.Steps = list70; reference54 = obj49; questRoot8.QuestSequence = list62; @@ -222861,13 +267710,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot9.Author = list71; - num = 3; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span29 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span29[0]; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -222875,19 +267727,23 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); obj50.Steps = list73; reference55 = obj50; - ref QuestSequence reference56 = ref span29[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span30 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference57 = ref span30[0]; + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 2009822u, new Vector3(-211.10858f, 38.895264f, 356.77112f), 816) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -222895,21 +267751,30 @@ public static class AssemblyQuestLoader num3 = 1; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 10840u; + Span span6 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span6[index3] = 10840u; obj52.KillEnemyDataIds = list75; - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span31 = CollectionsMarshal.AsSpan(list76); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span5 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list76; reference57 = obj52; - ref QuestStep reference58 = ref span30[1]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, 2009823u, new Vector3(-260.24268f, 38.986816f, 289.05164f), 816) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -222917,23 +267782,32 @@ public static class AssemblyQuestLoader num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 10840u; + span6 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span6[index3] = 10840u; obj53.KillEnemyDataIds = list77; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span32 = CollectionsMarshal.AsSpan(list78); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list78; reference58 = obj53; obj51.Steps = list74; reference56 = obj51; - ref QuestSequence reference59 = ref span29[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -222941,7 +267815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); obj54.Steps = list79; reference59 = obj54; questRoot9.QuestSequence = list72; @@ -222951,24 +267827,30 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot10.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span33 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference60 = ref span33[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); obj55.Steps = list82; reference60 = obj55; - ref QuestSequence reference61 = ref span33[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -222976,19 +267858,23 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 2009824u, new Vector3(-59.250793f, 0.47296143f, 279.95728f), 816); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009824u, new Vector3(-59.250793f, 0.47296143f, 279.95728f), 816); obj56.Steps = list83; reference61 = obj56; - ref QuestSequence reference62 = ref span33[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span34 = CollectionsMarshal.AsSpan(list84); - ref QuestStep reference63 = ref span34[0]; + index2 = 2; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, 2009825u, new Vector3(-122.30109f, 17.807251f, 413.2295f), 816) { ItemId = 2002536u @@ -222996,35 +267882,49 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span35 = CollectionsMarshal.AsSpan(list85); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list85; reference63 = obj58; - ref QuestStep reference64 = ref span34[1]; + num2++; + ref QuestStep reference64 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.UseItem, 2009826u, new Vector3(-263.17236f, 41.85547f, 469.5963f), 816) { ItemId = 2002536u }; - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span36 = CollectionsMarshal.AsSpan(list86); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span5 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list86; reference64 = obj59; obj57.Steps = list84; reference62 = obj57; - ref QuestSequence reference65 = ref span33[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -223032,7 +267932,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); obj60.Steps = list87; reference65 = obj60; questRoot10.QuestSequence = list81; @@ -223042,24 +267944,30 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "liza"; questRoot11.Author = list88; - num = 6; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span37 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference66 = ref span37[0]; + index = 6; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028981u, new Vector3(-405.17285f, 57.405117f, 440.45154f), 816); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028981u, new Vector3(-405.17285f, 57.405117f, 440.45154f), 816); obj61.Steps = list90; reference66 = obj61; - ref QuestSequence reference67 = ref span37[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -223067,7 +267975,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { ChatMessage = new ChatMessage { @@ -223076,15 +267986,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list91; reference67 = obj62; - ref QuestSequence reference68 = ref span37[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { DelaySecondsAtStart = 6f, ChatMessage = new ChatMessage @@ -223094,7 +268007,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list92; reference68 = obj63; - ref QuestSequence reference69 = ref span37[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -223102,7 +268016,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { DelaySecondsAtStart = 8f, ChatMessage = new ChatMessage @@ -223112,21 +268028,25 @@ public static class AssemblyQuestLoader }; obj64.Steps = list93; reference69 = obj64; - ref QuestSequence reference70 = ref span37[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1028995u, new Vector3(-360.70807f, 45.90706f, 470.72546f), 816) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028995u, new Vector3(-360.70807f, 45.90706f, 470.72546f), 816) { StopDistance = 7f }; obj65.Steps = list94; reference70 = obj65; - ref QuestSequence reference71 = ref span37[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -223134,7 +268054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028999u, new Vector3(-603.1434f, 36.117786f, -230.0603f), 816); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028999u, new Vector3(-603.1434f, 36.117786f, -230.0603f), 816); obj66.Steps = list95; reference71 = obj66; questRoot11.QuestSequence = list89; @@ -223144,21 +268066,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot12.Author = list96; - num = 4; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span38 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference72 = ref span38[0]; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list98)[0]; + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816) { StopDistance = 5f @@ -223166,7 +268093,9 @@ public static class AssemblyQuestLoader num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB110_03311_Q1_000_000"), @@ -223176,7 +268105,8 @@ public static class AssemblyQuestLoader reference73 = obj68; obj67.Steps = list98; reference72 = obj67; - ref QuestSequence reference74 = ref span38[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -223184,20 +268114,24 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span39 = CollectionsMarshal.AsSpan(list100); - span39[0] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816) { PickUpQuestId = new QuestId(3398) }; - ref QuestStep reference75 = ref span39[1]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-629.64935f, 35.484062f, -173.54001f), 816) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 10258u; + index3 = 1; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + span6 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span6[num3] = 10258u; obj70.KillEnemyDataIds = list101; obj70.CombatItemUse = new CombatItemUse { @@ -223208,18 +268142,22 @@ public static class AssemblyQuestLoader reference75 = obj70; obj69.Steps = list100; reference74 = obj69; - ref QuestSequence reference76 = ref span38[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816); obj71.Steps = list102; reference76 = obj71; - ref QuestSequence reference77 = ref span38[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -223227,7 +268165,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816) + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; @@ -223240,24 +268180,30 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; questRoot13.Author = list104; - num = 5; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span40 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference78 = ref span40[0]; + index = 4; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); obj73.Steps = list106; reference78 = obj73; - ref QuestSequence reference79 = ref span40[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -223265,23 +268211,28 @@ public static class AssemblyQuestLoader num2 = 2; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span41 = CollectionsMarshal.AsSpan(list107); - span41[0] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) { PickUpQuestId = new QuestId(3404) }; - span41[1] = new QuestStep(EInteractionType.Interact, 2009828u, new Vector3(133.40955f, -0.015319824f, 455.9242f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009828u, new Vector3(133.40955f, -0.015319824f, 455.9242f), 816); obj74.Steps = list107; reference79 = obj74; - ref QuestSequence reference80 = ref span40[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Duty, null, null, 816) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 816) { DutyOptions = new DutyOptions { @@ -223291,11 +268242,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list108; reference80 = obj75; - span40[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference81 = ref span40[4]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -223303,12 +268251,14 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span42 = CollectionsMarshal.AsSpan(list109); - span42[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010056u, new Vector3(-231.4141f, 4.701926f, 160.8437f), 816) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010056u, new Vector3(-231.4141f, 4.701926f, 160.8437f), 816) { AetherCurrentId = 2818270u }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1031669u, new Vector3(-300.0077f, 1.4994799f, 182.8794f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031669u, new Vector3(-300.0077f, 1.4994799f, 182.8794f), 816) { Mount = false }; @@ -223321,27 +268271,33 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "liza"; questRoot14.Author = list110; - num = 6; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span43 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference82 = ref span43[0]; + index = 6; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029162u, new Vector3(-300.67908f, 1.528771f, 182.2384f), 816) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029162u, new Vector3(-300.67908f, 1.528771f, 182.2384f), 816) { StopDistance = 5f }; obj77.Steps = list112; reference82 = obj77; - ref QuestSequence reference83 = ref span43[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -223349,21 +268305,27 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1030577u, new Vector3(-547.57f, 26.358929f, -229.11426f), 816); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030577u, new Vector3(-547.57f, 26.358929f, -229.11426f), 816); obj78.Steps = list113; reference83 = obj78; - ref QuestSequence reference84 = ref span43[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1030578u, new Vector3(-413.99255f, 86.60777f, -444.5716f), 816); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030578u, new Vector3(-413.99255f, 86.60777f, -444.5716f), 816); obj79.Steps = list114; reference84 = obj79; - ref QuestSequence reference85 = ref span43[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -223371,21 +268333,27 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1030579u, new Vector3(-517.2656f, 76.02325f, -416.67816f), 816); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030579u, new Vector3(-517.2656f, 76.02325f, -416.67816f), 816); obj80.Steps = list115; reference85 = obj80; - ref QuestSequence reference86 = ref span43[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.34406f, 55.06957f, -562.23914f), 816); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.34406f, 55.06957f, -562.23914f), 816); obj81.Steps = list116; reference86 = obj81; - ref QuestSequence reference87 = ref span43[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -223393,7 +268361,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029562u, new Vector3(-130.69354f, 58.754936f, -680.4761f), 816); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029562u, new Vector3(-130.69354f, 58.754936f, -680.4761f), 816); obj82.Steps = list117; reference87 = obj82; questRoot14.QuestSequence = list111; @@ -223403,27 +268373,33 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot15.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span44 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference88 = ref span44[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029564u, new Vector3(-143.26697f, 100.184166f, -848.90515f), 816) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029564u, new Vector3(-143.26697f, 100.184166f, -848.90515f), 816) { StopDistance = 7f }; obj83.Steps = list120; reference88 = obj83; - ref QuestSequence reference89 = ref span44[1]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -223431,23 +268407,28 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span45 = CollectionsMarshal.AsSpan(list121); - span45[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegPlaEnni }; - span45[1] = new QuestStep(EInteractionType.Interact, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); obj84.Steps = list121; reference89 = obj84; - ref QuestSequence reference90 = ref span44[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list122)[0]; + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-121.60927f, 57.405594f, -669.88385f), 816) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -223455,12 +268436,15 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 10255u; + span6 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span6[index3] = 10255u; obj86.KillEnemyDataIds = list123; reference91 = obj86; obj85.Steps = list122; reference90 = obj85; - ref QuestSequence reference92 = ref span44[3]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -223468,7 +268452,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); obj87.Steps = list124; reference92 = obj87; questRoot15.QuestSequence = list119; @@ -223478,24 +268464,30 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot16.Author = list125; - num = 6; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span46 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference93 = ref span46[0]; + index = 6; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj88.Steps = list127; reference93 = obj88; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -223503,107 +268495,147 @@ public static class AssemblyQuestLoader num2 = 6; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span47 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference95 = ref span47[0]; + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference95 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2009830u, new Vector3(-111.77234f, 103.1051f, -865.7816f), 816); - num3 = 6; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span48 = CollectionsMarshal.AsSpan(list129); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span5 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list129; reference95 = questStep6; - ref QuestStep reference96 = ref span47[1]; + index2++; + ref QuestStep reference96 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.83761f, 104.5973f, -856.61725f), 816); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span49 = CollectionsMarshal.AsSpan(list130); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list130; skipConditions4.StepIf = skipStepConditions4; questStep7.SkipConditions = skipConditions4; reference96 = questStep7; - ref QuestStep reference97 = ref span47[2]; + index2++; + ref QuestStep reference97 = ref span3[index2]; QuestStep obj90 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-53.266403f, 110.45701f, -847.4861f), 816) { DisableNavmesh = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span5 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list131; skipConditions5.StepIf = skipStepConditions5; obj90.SkipConditions = skipConditions5; reference97 = obj90; - ref QuestStep reference98 = ref span47[3]; + index2++; + ref QuestStep reference98 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2009831u, new Vector3(-39.84137f, 116.227905f, -839.292f), 816); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list132; reference98 = questStep8; - span47[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.223904f, 107.18862f, -860.6854f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.223904f, 107.18862f, -860.6854f), 816) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference99 = ref span47[5]; + index2++; + ref QuestStep reference99 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2009832u, new Vector3(25.436768f, 100.694214f, -902.31177f), 816); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span52 = CollectionsMarshal.AsSpan(list133); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span5 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list133; reference99 = questStep9; obj89.Steps = list128; reference94 = obj89; - ref QuestSequence reference100 = ref span46[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj91.Steps = list134; reference100 = obj91; - ref QuestSequence reference101 = ref span46[3]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -223611,21 +268643,27 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2009833u, new Vector3(-181.13983f, 84.09241f, -786.2211f), 816); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009833u, new Vector3(-181.13983f, 84.09241f, -786.2211f), 816); obj92.Steps = list135; reference101 = obj92; - ref QuestSequence reference102 = ref span46[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1029574u, new Vector3(-164.62964f, 82.303215f, -751.97986f), 816); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029574u, new Vector3(-164.62964f, 82.303215f, -751.97986f), 816); obj93.Steps = list136; reference102 = obj93; - ref QuestSequence reference103 = ref span46[5]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -223633,7 +268671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj94.Steps = list137; reference103 = obj94; questRoot16.QuestSequence = list126; @@ -223643,24 +268683,30 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; questRoot17.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span53 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference104 = ref span53[0]; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); obj95.Steps = list140; reference104 = obj95; - ref QuestSequence reference105 = ref span53[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -223668,9 +268714,11 @@ public static class AssemblyQuestLoader num2 = 9; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span54 = CollectionsMarshal.AsSpan(list141); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816); - span54[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816) { StopDistance = 0.25f, Mount = false, @@ -223680,7 +268728,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span54[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(27.701914f, 108.983986f, -844.172f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(27.701914f, 108.983986f, -844.172f), 816) { JumpDestination = new JumpDestination { @@ -223688,7 +268737,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span54[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(25.056326f, 110.28013f, -846.34796f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(25.056326f, 110.28013f, -846.34796f), 816) { JumpDestination = new JumpDestination { @@ -223696,7 +268746,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span54[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(21.853422f, 111.3742f, -847.6101f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(21.853422f, 111.3742f, -847.6101f), 816) { JumpDestination = new JumpDestination { @@ -223704,86 +268755,113 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span54[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010059u, new Vector3(12.832764f, 110.73462f, -851.25507f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010059u, new Vector3(12.832764f, 110.73462f, -851.25507f), 816) { DisableNavmesh = true, AetherCurrentId = 2818273u }; - span54[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.588793f, 102.26027f, -859.4154f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.588793f, 102.26027f, -859.4154f), 816) { DisableNavmesh = true, Mount = true }; - span54[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegWolekdorf }; - span54[8] = new QuestStep(EInteractionType.Interact, 1029575u, new Vector3(477.46997f, 90.93466f, -328.5725f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029575u, new Vector3(477.46997f, 90.93466f, -328.5725f), 816); obj96.Steps = list141; reference105 = obj96; - ref QuestSequence reference106 = ref span53[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - num2 = 9; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span55 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference107 = ref span55[0]; + index2 = 9; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference107 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(519.60034f, 110.94924f, -171.57602f), 816); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span56 = CollectionsMarshal.AsSpan(list143); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list143; skipConditions6.StepIf = skipStepConditions6; questStep10.SkipConditions = skipConditions6; reference107 = questStep10; - ref QuestStep reference108 = ref span55[1]; + num2++; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj98 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.02466f, 117.10437f, -161.2614f), 816) { DisableNavmesh = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span57 = CollectionsMarshal.AsSpan(list144); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + span5 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list144; skipConditions7.StepIf = skipStepConditions7; obj98.SkipConditions = skipConditions7; reference108 = obj98; - ref QuestStep reference109 = ref span55[2]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009836u, new Vector3(514.45776f, 122.45361f, -158.28192f), 816); num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span58 = CollectionsMarshal.AsSpan(list145); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list145; reference109 = questStep11; - ref QuestStep reference110 = ref span55[3]; + num2++; + ref QuestStep reference110 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.Jump, null, new Vector3(533.1536f, 109.112404f, -154.17346f), 816) { StopDistance = 0.25f, @@ -223797,21 +268875,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span59 = CollectionsMarshal.AsSpan(list146); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span5 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list146; skipConditions8.StepIf = skipStepConditions8; obj99.SkipConditions = skipConditions8; reference110 = obj99; - ref QuestStep reference111 = ref span55[4]; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Jump, null, new Vector3(536.68494f, 111.31597f, -155.06671f), 816) { StopDistance = 0.5f, @@ -223827,18 +268912,25 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span60 = CollectionsMarshal.AsSpan(list147); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list147; skipConditions9.StepIf = skipStepConditions9; obj100.SkipConditions = skipConditions9; reference111 = obj100; - ref QuestStep reference112 = ref span55[5]; + num2++; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Jump, null, new Vector3(539.31104f, 113.00041f, -155.02728f), 816) { StopDistance = 0.5f, @@ -223851,21 +268943,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span61 = CollectionsMarshal.AsSpan(list148); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span5 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list148; skipConditions10.StepIf = skipStepConditions10; obj101.SkipConditions = skipConditions10; reference112 = obj101; - ref QuestStep reference113 = ref span55[6]; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Jump, null, new Vector3(542.8287f, 114.6852f, -154.211f), 816) { StopDistance = 0.5f, @@ -223881,35 +268980,50 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span62 = CollectionsMarshal.AsSpan(list149); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list149; skipConditions11.StepIf = skipStepConditions11; obj102.SkipConditions = skipConditions11; reference113 = obj102; - ref QuestStep reference114 = ref span55[7]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2009835u, new Vector3(570.00073f, 119.15759f, -145.70844f), 816); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span63 = CollectionsMarshal.AsSpan(list150); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span5 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list150; reference114 = questStep12; - span55[8] = new QuestStep(EInteractionType.Interact, 2009834u, new Vector3(496.75732f, 103.95972f, -116.41113f), 816); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009834u, new Vector3(496.75732f, 103.95972f, -116.41113f), 816); obj97.Steps = list142; reference106 = obj97; - ref QuestSequence reference115 = ref span53[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -223917,20 +269031,25 @@ public static class AssemblyQuestLoader num2 = 2; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span64 = CollectionsMarshal.AsSpan(list151); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(433.92883f, 88.121765f, -352.8274f), 816); - span64[1] = new QuestStep(EInteractionType.Interact, 1029576u, new Vector3(292.92737f, 67.604f, -408.13312f), 816); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(433.92883f, 88.121765f, -352.8274f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029576u, new Vector3(292.92737f, 67.604f, -408.13312f), 816); obj103.Steps = list151; reference115 = obj103; - ref QuestSequence reference116 = ref span53[4]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; @@ -223943,13 +269062,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "liza"; questRoot18.Author = list153; - num = 7; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span65 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference117 = ref span65[0]; + index = 7; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -223957,21 +269079,27 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); obj105.Steps = list155; reference117 = obj105; - ref QuestSequence reference118 = ref span65[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1027666u, new Vector3(13.839905f, 100.161f, -886.3508f), 816); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027666u, new Vector3(13.839905f, 100.161f, -886.3508f), 816); obj106.Steps = list156; reference118 = obj106; - ref QuestSequence reference119 = ref span65[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -223979,7 +269107,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list157)[0]; + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference120 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1029580u, new Vector3(453.05554f, 87.4745f, -691.9509f), 816) { StopDistance = 9f, @@ -223988,7 +269118,9 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB116_03317_Q1_000_000"), @@ -223998,21 +269130,25 @@ public static class AssemblyQuestLoader reference120 = obj108; obj107.Steps = list157; reference119 = obj107; - ref QuestSequence reference121 = ref span65[3]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Emote, 1027691u, new Vector3(416.80017f, 87.947784f, -751.09485f), 816) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1027691u, new Vector3(416.80017f, 87.947784f, -751.09485f), 816) { Emote = EEmote.Pet }; obj109.Steps = list159; reference121 = obj109; - ref QuestSequence reference122 = ref span65[4]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -224020,27 +269156,33 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Emote, 1027692u, new Vector3(382.1317f, 86.5506f, -617.0901f), 816) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1027692u, new Vector3(382.1317f, 86.5506f, -617.0901f), 816) { Emote = EEmote.Pet }; obj110.Steps = list160; reference122 = obj110; - ref QuestSequence reference123 = ref span65[5]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Emote, 1027693u, new Vector3(364.27856f, 87.00109f, -715.41925f), 816) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1027693u, new Vector3(364.27856f, 87.00109f, -715.41925f), 816) { Emote = EEmote.Pet }; obj111.Steps = list161; reference123 = obj111; - ref QuestSequence reference124 = ref span65[6]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -224048,7 +269190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); obj112.Steps = list162; reference124 = obj112; questRoot18.QuestSequence = list154; @@ -224058,24 +269202,30 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "liza"; questRoot19.Author = list163; - num = 6; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span66 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference125 = ref span66[0]; + index = 6; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); obj113.Steps = list165; reference125 = obj113; - ref QuestSequence reference126 = ref span66[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -224083,32 +269233,38 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj114.Steps = list166; reference126 = obj114; - ref QuestSequence reference127 = ref span66[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span67 = CollectionsMarshal.AsSpan(list167); - span67[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010062u, new Vector3(432.45593f, 90.440186f, -770.4128f), 816) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010062u, new Vector3(432.45593f, 90.440186f, -770.4128f), 816) { AetherCurrentId = 2818276u }; - span67[1] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f }; obj115.Steps = list167; reference127 = obj115; - ref QuestSequence reference128 = ref span66[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -224116,38 +269272,47 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list168)[0]; + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span68 = CollectionsMarshal.AsSpan(list169); - span68[0] = 10841u; - span68[1] = 10842u; - span68[2] = 10843u; + index3 = 3; + List list169 = new List(index3); + CollectionsMarshal.SetCount(list169, index3); + span6 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span6[num3] = 10841u; + num3++; + span6[num3] = 10842u; + num3++; + span6[num3] = 10843u; obj117.KillEnemyDataIds = list169; reference129 = obj117; obj116.Steps = list168; reference128 = obj116; - ref QuestSequence reference130 = ref span66[4]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f }; obj118.Steps = list170; reference130 = obj118; - ref QuestSequence reference131 = ref span66[5]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -224155,7 +269320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; @@ -224168,27 +269335,33 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "liza"; questRoot20.Author = list172; - num = 3; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span69 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference132 = ref span69[0]; + index = 3; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj120.Steps = list174; reference132 = obj120; - ref QuestSequence reference133 = ref span69[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -224196,24 +269369,30 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span70 = CollectionsMarshal.AsSpan(list175); - span70[0] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816) { PickUpQuestId = new QuestId(3427) }; - span70[1] = new QuestStep(EInteractionType.Dive, null, new Vector3(57.868374f, -0.6f, -431.17603f), 816); - span70[2] = new QuestStep(EInteractionType.Interact, 2009837u, new Vector3(-361.9593f, -52.506348f, -302.41858f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(57.868374f, -0.6f, -431.17603f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009837u, new Vector3(-361.9593f, -52.506348f, -302.41858f), 816); obj121.Steps = list175; reference133 = obj121; - ref QuestSequence reference134 = ref span69[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf @@ -224227,13 +269406,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list177); + index = 0; + span[index] = "liza"; questRoot21.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span71 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference135 = ref span71[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + span2 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -224241,30 +269423,37 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj123.Steps = list179; reference135 = obj123; - ref QuestSequence reference136 = ref span71[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span72 = CollectionsMarshal.AsSpan(list180); - span72[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010063u, new Vector3(-9.018127f, 89.28052f, -247.66925f), 816) + index2 = 3; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010063u, new Vector3(-9.018127f, 89.28052f, -247.66925f), 816) { AetherCurrentId = 2818277u }; - span72[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-88.91068f, 109.10638f, -282.8004f), 816); - span72[2] = new QuestStep(EInteractionType.Interact, 2009840u, new Vector3(-143.32806f, 116.868774f, -274.15887f), 816); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-88.91068f, 109.10638f, -282.8004f), 816); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009840u, new Vector3(-143.32806f, 116.868774f, -274.15887f), 816); obj124.Steps = list180; reference136 = obj124; - ref QuestSequence reference137 = ref span71[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -224272,7 +269461,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Duty, null, null, 816) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 816) { DutyOptions = new DutyOptions { @@ -224281,15 +269472,18 @@ public static class AssemblyQuestLoader }; obj125.Steps = list181; reference137 = obj125; - ref QuestSequence reference138 = ref span71[3]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029583u, new Vector3(-378.50006f, 49.038586f, 468.65027f), 816) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029583u, new Vector3(-378.50006f, 49.038586f, 468.65027f), 816) { StopDistance = 7f }; @@ -224302,13 +269496,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot22.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span73 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference139 = ref span73[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -224316,27 +269513,33 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029584u, new Vector3(-373.55615f, 48.181767f, 474.32666f), 816) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029584u, new Vector3(-373.55615f, 48.181767f, 474.32666f), 816) { StopDistance = 7f }; obj127.Steps = list185; reference139 = obj127; - ref QuestSequence reference140 = ref span73[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj128.Steps = list186; reference140 = obj128; - ref QuestSequence reference141 = ref span73[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -224344,21 +269547,26 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) { StopDistance = 5f }; obj129.Steps = list187; reference141 = obj129; - ref QuestSequence reference142 = ref span73[3]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list188)[0]; + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + ref QuestStep reference143 = ref span3[num2]; QuestStep obj131 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f, @@ -224371,7 +269579,9 @@ public static class AssemblyQuestLoader num3 = 1; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMB120_03321_Q1_000_000") @@ -224387,13 +269597,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; questRoot23.Author = list190; - num = 4; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span74 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference144 = ref span74[0]; + index = 4; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -224401,21 +269614,26 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 5f }; obj132.Steps = list192; reference144 = obj132; - ref QuestSequence reference145 = ref span74[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -224426,7 +269644,8 @@ public static class AssemblyQuestLoader }; obj133.Steps = list193; reference145 = obj133; - ref QuestSequence reference146 = ref span74[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -224434,21 +269653,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1030883u, new Vector3(-0.015319824f, 0f, 4.2877197f), 844) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030883u, new Vector3(-0.015319824f, 0f, 4.2877197f), 844) { StopDistance = 7f }; obj134.Steps = list194; reference146 = obj134; - ref QuestSequence reference147 = ref span74[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; @@ -224461,13 +269685,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; questRoot24.Author = list196; - num = 4; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span75 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference148 = ref span75[0]; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -224475,7 +269702,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb, SkipConditions = new SkipConditions @@ -224488,16 +269717,18 @@ public static class AssemblyQuestLoader }; obj136.Steps = list198; reference148 = obj136; - ref QuestSequence reference149 = ref span75[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span76 = CollectionsMarshal.AsSpan(list199); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(789.16504f, 21.14688f, -93.24946f), 813) + index2 = 5; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(789.16504f, 21.14688f, -93.24946f), 813) { SkipConditions = new SkipConditions { @@ -224507,7 +269738,8 @@ public static class AssemblyQuestLoader } } }; - span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -224518,7 +269750,8 @@ public static class AssemblyQuestLoader } } }; - span76[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -224529,15 +269762,18 @@ public static class AssemblyQuestLoader } } }; - span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(730.8644f, -1.99367f, -104.45362f), 813); - span76[4] = new QuestStep(EInteractionType.Interact, 2009861u, new Vector3(725.39856f, -1.9990234f, -93.33948f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(730.8644f, -1.99367f, -104.45362f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009861u, new Vector3(725.39856f, -1.9990234f, -93.33948f), 813) { StopDistance = 0.5f, DisableNavmesh = true }; obj137.Steps = list199; reference149 = obj137; - ref QuestSequence reference150 = ref span75[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -224545,21 +269781,26 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Snipe, 2010512u, new Vector3(721.7975f, -1.9990234f, -92.97333f), 813) + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2010512u, new Vector3(721.7975f, -1.9990234f, -92.97333f), 813) { Comment = "Tablet is on the right middle shelf of the table" }; obj138.Steps = list200; reference150 = obj138; - ref QuestSequence reference151 = ref span75[3]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); obj139.Steps = list201; reference151 = obj139; questRoot24.QuestSequence = list197; @@ -224569,13 +269810,16 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "liza"; questRoot25.Author = list202; - num = 8; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span77 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference152 = ref span77[0]; + index = 8; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -224583,19 +269827,23 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); obj140.Steps = list204; reference152 = obj140; - ref QuestSequence reference153 = ref span77[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span78 = CollectionsMarshal.AsSpan(list205); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(695.94904f, 25.850925f, -269.87207f), 813) + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(695.94904f, 25.850925f, -269.87207f), 813) { SkipConditions = new SkipConditions { @@ -224605,17 +269853,20 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.Interact, 1028303u, new Vector3(872.7396f, 42.18195f, -281.26953f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028303u, new Vector3(872.7396f, 42.18195f, -281.26953f), 813) { Fly = true }; obj141.Steps = list205; reference153 = obj141; - span77[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference154 = ref span77[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -224623,24 +269874,30 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1029180u, new Vector3(-718.44055f, 9.072795f, 682.6123f), 817) + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029180u, new Vector3(-718.44055f, 9.072795f, 682.6123f), 817) { DisableNavmesh = true }; obj142.Steps = list206; reference154 = obj142; - ref QuestSequence reference155 = ref span77[4]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 2009862u, new Vector3(-424.49078f, 1.6021729f, 594.5371f), 817); + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009862u, new Vector3(-424.49078f, 1.6021729f, 594.5371f), 817); obj143.Steps = list207; reference155 = obj143; - ref QuestSequence reference156 = ref span77[5]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 @@ -224648,43 +269905,55 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1029188u, new Vector3(-421.1643f, 1.6214006f, 594.72034f), 817) + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029188u, new Vector3(-421.1643f, 1.6214006f, 594.72034f), 817) { StopDistance = 5f }; obj144.Steps = list208; reference156 = obj144; - ref QuestSequence reference157 = ref span77[6]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 6 }; - num2 = 8; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span79 = CollectionsMarshal.AsSpan(list209); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-385.29327f, 1.622011f, 516.6794f), 817); - span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-390.73163f, 3.5300047f, 512.3785f), 817); - span79[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-384.37488f, 6.260351f, 512.5016f), 817); - span79[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.96292f, 6.3778677f, 509.45285f), 817); - span79[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.71173f, 6.5935116f, 505.39233f), 817) + index2 = 8; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-385.29327f, 1.622011f, 516.6794f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-390.73163f, 3.5300047f, 512.3785f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-384.37488f, 6.260351f, 512.5016f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.96292f, 6.3778677f, 509.45285f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.71173f, 6.5935116f, 505.39233f), 817) { DisableNavmesh = true }; - span79[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010064u, new Vector3(-405.9548f, 7.1691f, 506.5442f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010064u, new Vector3(-405.9548f, 7.1691f, 506.5442f), 817) { DisableNavmesh = true, AetherCurrentId = 2818283u }; - span79[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.7318f, 1.622011f, 512.249f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.7318f, 1.622011f, 512.249f), 817) { DisableNavmesh = true, Mount = true }; - span79[7] = new QuestStep(EInteractionType.Interact, 1029189u, new Vector3(-234.51593f, -3.1024718f, 332.02112f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029189u, new Vector3(-234.51593f, -3.1024718f, 332.02112f), 817); obj145.Steps = list209; reference157 = obj145; - ref QuestSequence reference158 = ref span77[7]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -224692,7 +269961,9 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029190u, new Vector3(-121.90442f, -18.975767f, 297.23047f), 817); + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029190u, new Vector3(-121.90442f, -18.975767f, 297.23047f), 817); obj146.Steps = list210; reference158 = obj146; questRoot25.QuestSequence = list203; @@ -224702,26 +269973,33 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "liza"; questRoot26.Author = list211; - num = 6; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span80 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference159 = ref span80[0]; + index = 6; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list213)[0]; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC104_03325_Q1_000_000"), @@ -224731,7 +270009,8 @@ public static class AssemblyQuestLoader reference160 = questStep13; obj147.Steps = list213; reference159 = obj147; - ref QuestSequence reference161 = ref span80[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -224739,26 +270018,32 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj148.Steps = list215; reference161 = obj148; - ref QuestSequence reference162 = ref span80[2]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span81 = CollectionsMarshal.AsSpan(list216); - span81[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) + index2 = 2; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) { Aetheryte = EAetheryteLocation.RaktikaSlitherbough }; - span81[1] = new QuestStep(EInteractionType.Interact, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817); obj149.Steps = list216; reference162 = obj149; - ref QuestSequence reference163 = ref span80[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -224766,22 +270051,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Emote, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) { Emote = EEmote.Kneel }; obj150.Steps = list217; reference163 = obj150; - ref QuestSequence reference164 = ref span80[4]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span82 = CollectionsMarshal.AsSpan(list218); - ref QuestStep reference165 = ref span82[0]; + index2 = 3; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; QuestStep obj152 = new QuestStep(EInteractionType.Say, 1030382u, new Vector3(-113.11517f, -18.484627f, 324.20837f), 817) { ChatMessage = new ChatMessage @@ -224792,16 +270081,23 @@ public static class AssemblyQuestLoader num3 = 6; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span83 = CollectionsMarshal.AsSpan(list219); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj152.CompletionQuestVariablesFlags = list219; reference165 = obj152; - ref QuestStep reference166 = ref span82[1]; + num2++; + ref QuestStep reference166 = ref span3[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Say, 1027463u, new Vector3(-130.26636f, -18.486685f, 246.57043f), 817) { ChatMessage = new ChatMessage @@ -224809,19 +270105,26 @@ public static class AssemblyQuestLoader Key = "TEXT_LUCKMC104_03325_SYSTEM_000_110" } }; - num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span84 = CollectionsMarshal.AsSpan(list220); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + span5 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj153.CompletionQuestVariablesFlags = list220; reference166 = obj153; - ref QuestStep reference167 = ref span82[2]; + num2++; + ref QuestStep reference167 = ref span3[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Say, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817) { ChatMessage = new ChatMessage @@ -224832,18 +270135,25 @@ public static class AssemblyQuestLoader num3 = 6; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span85 = CollectionsMarshal.AsSpan(list221); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj154.CompletionQuestVariablesFlags = list221; reference167 = obj154; obj151.Steps = list218; reference164 = obj151; - ref QuestSequence reference168 = ref span80[5]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -224851,7 +270161,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029199u, new Vector3(-116.71625f, -19.706732f, 386.49573f), 817); + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029199u, new Vector3(-116.71625f, -19.706732f, 386.49573f), 817); obj155.Steps = list222; reference168 = obj155; questRoot26.QuestSequence = list212; @@ -224861,21 +270173,26 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "liza"; questRoot27.Author = list223; - num = 6; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span86 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference169 = ref span86[0]; + index = 6; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, @@ -224889,7 +270206,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list225; reference169 = obj156; - ref QuestSequence reference170 = ref span86[1]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -224897,24 +270215,30 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) { StopDistance = 7f }; obj157.Steps = list226; reference170 = obj157; - ref QuestSequence reference171 = ref span86[2]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2009863u, new Vector3(-71.78751f, -19.33637f, 302.1084f), 817); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009863u, new Vector3(-71.78751f, -19.33637f, 302.1084f), 817); obj158.Steps = list227; reference171 = obj158; - ref QuestSequence reference172 = ref span86[3]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 3 @@ -224922,24 +270246,30 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) { StopDistance = 7f }; obj159.Steps = list228; reference172 = obj159; - ref QuestSequence reference173 = ref span86[4]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2009864u, new Vector3(-71.03082f, -19.394226f, 293.47668f), 817); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009864u, new Vector3(-71.03082f, -19.394226f, 293.47668f), 817); obj160.Steps = list229; reference173 = obj160; - ref QuestSequence reference174 = ref span86[5]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -224947,7 +270277,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); obj161.Steps = list230; reference174 = obj161; questRoot27.QuestSequence = list224; @@ -224957,24 +270289,30 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list231); + index = 0; + span[index] = "liza"; questRoot28.Author = list231; - num = 7; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span87 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference175 = ref span87[0]; + index = 7; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + span2 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj162.Steps = list233; reference175 = obj162; - ref QuestSequence reference176 = ref span87[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -224982,37 +270320,45 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span88 = CollectionsMarshal.AsSpan(list234); - span88[0] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817) + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817) { PickUpQuestId = new QuestId(3444) }; - span88[1] = new QuestStep(EInteractionType.Interact, 2009866u, new Vector3(-260.73096f, 13.656799f, 554.68054f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009866u, new Vector3(-260.73096f, 13.656799f, 554.68054f), 817); obj163.Steps = list234; reference176 = obj163; - ref QuestSequence reference177 = ref span87[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list235)[0]; + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference178 = ref span3[num2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-284.9141f, 8.7010765f, 603.8272f), 817) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = 10878u; + index3 = 1; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + span6 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span6[num3] = 10878u; obj165.KillEnemyDataIds = list236; reference178 = obj165; obj164.Steps = list235; reference177 = obj164; - ref QuestSequence reference179 = ref span87[3]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -225020,21 +270366,27 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1029206u, new Vector3(-243.18304f, 13.323829f, 778.9883f), 817); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029206u, new Vector3(-243.18304f, 13.323829f, 778.9883f), 817); obj166.Steps = list237; reference179 = obj166; - ref QuestSequence reference180 = ref span87[4]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2009869u, new Vector3(-309.3156f, 7.095398f, 702.2355f), 817); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009869u, new Vector3(-309.3156f, 7.095398f, 702.2355f), 817); obj167.Steps = list238; reference180 = obj167; - ref QuestSequence reference181 = ref span87[5]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -225042,18 +270394,23 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1029207u, new Vector3(-213.61108f, 10.207863f, 712.6116f), 817); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029207u, new Vector3(-213.61108f, 10.207863f, 712.6116f), 817); obj168.Steps = list239; reference181 = obj168; - ref QuestSequence reference182 = ref span87[6]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -225066,13 +270423,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "liza"; questRoot29.Author = list241; - num = 6; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span89 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference183 = ref span89[0]; + index = 6; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -225080,21 +270440,27 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj170.Steps = list243; reference183 = obj170; - ref QuestSequence reference184 = ref span89[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1029209u, new Vector3(-92.484924f, -19.11198f, 307.1183f), 817); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029209u, new Vector3(-92.484924f, -19.11198f, 307.1183f), 817); obj171.Steps = list244; reference184 = obj171; - ref QuestSequence reference185 = ref span89[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -225102,24 +270468,30 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1028989u, new Vector3(-77.86682f, -28.632244f, 423.6056f), 817); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028989u, new Vector3(-77.86682f, -28.632244f, 423.6056f), 817); obj172.Steps = list245; reference185 = obj172; - ref QuestSequence reference186 = ref span89[3]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.UseItem, 2009871u, new Vector3(-89.49426f, -28.641174f, 416.06763f), 817) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2009871u, new Vector3(-89.49426f, -28.641174f, 416.06763f), 817) { ItemId = 2002546u }; obj173.Steps = list246; reference186 = obj173; - ref QuestSequence reference187 = ref span89[4]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -225127,18 +270499,23 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 2009872u, new Vector3(-69.65747f, -28.641174f, 409.4757f), 817); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009872u, new Vector3(-69.65747f, -28.641174f, 409.4757f), 817); obj174.Steps = list247; reference187 = obj174; - ref QuestSequence reference188 = ref span89[5]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) { StopDistance = 5f }; @@ -225151,13 +270528,16 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list249); + index = 0; + span[index] = "liza"; questRoot30.Author = list249; - num = 10; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span90 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference189 = ref span90[0]; + index = 10; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + span2 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -225165,24 +270545,30 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) { StopDistance = 5f }; obj176.Steps = list251; reference189 = obj176; - ref QuestSequence reference190 = ref span90[1]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1029212u, new Vector3(-313.5882f, 5.156485f, 285.60303f), 817); + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029212u, new Vector3(-313.5882f, 5.156485f, 285.60303f), 817); obj177.Steps = list252; reference190 = obj177; - ref QuestSequence reference191 = ref span90[2]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -225190,14 +270576,17 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span91 = CollectionsMarshal.AsSpan(list253); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.85619f, -3.036951f, 54.482983f), 817); - span91[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010066u, new Vector3(-141.58856f, -0.9003296f, 49.759644f), 817) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.85619f, -3.036951f, 54.482983f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010066u, new Vector3(-141.58856f, -0.9003296f, 49.759644f), 817) { DisableNavmesh = true, AetherCurrentId = 2818285u }; - ref QuestStep reference192 = ref span91[2]; + index2++; + ref QuestStep reference192 = ref span3[index2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817) { StopDistance = 2f, @@ -225206,23 +270595,29 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 10879u; + span6 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span6[index3] = 10879u; obj179.KillEnemyDataIds = list254; reference192 = obj179; obj178.Steps = list253; reference191 = obj178; - ref QuestSequence reference193 = ref span90[3]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817); + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817); obj180.Steps = list255; reference193 = obj180; - ref QuestSequence reference194 = ref span90[4]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 4 @@ -225230,32 +270625,40 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 2009874u, new Vector3(-231.8609f, 21.713562f, -49.302002f), 817); + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009874u, new Vector3(-231.8609f, 21.713562f, -49.302002f), 817); obj181.Steps = list256; reference194 = obj181; - ref QuestSequence reference195 = ref span90[5]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - ref QuestStep reference196 = ref CollectionsMarshal.AsSpan(list257)[0]; + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference196 = ref span3[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2009875u, new Vector3(-292.2561f, 23.5141f, -182.75739f), 817) { ItemId = 2002547u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 10880u; + index3 = 1; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + span6 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span6[num3] = 10880u; obj183.KillEnemyDataIds = list258; reference196 = obj183; obj182.Steps = list257; reference195 = obj182; - ref QuestSequence reference197 = ref span90[6]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 6 @@ -225263,21 +270666,26 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.UseItem, 2010501u, new Vector3(-292.28656f, 23.483582f, -182.78784f), 817) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2010501u, new Vector3(-292.28656f, 23.483582f, -182.78784f), 817) { ItemId = 2002548u }; obj184.Steps = list259; reference197 = obj184; - ref QuestSequence reference198 = ref span90[7]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list260)[0]; + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference199 = ref span3[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2009876u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) { ItemId = 2002547u, @@ -225286,12 +270694,15 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 10881u; + span6 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span6[index3] = 10881u; obj186.KillEnemyDataIds = list261; reference199 = obj186; obj185.Steps = list260; reference198 = obj185; - ref QuestSequence reference200 = ref span90[8]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 8 @@ -225299,21 +270710,26 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.UseItem, 2010502u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2010502u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) { ItemId = 2002548u }; obj187.Steps = list262; reference200 = obj187; - ref QuestSequence reference201 = ref span90[9]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); obj188.Steps = list263; reference201 = obj188; questRoot30.QuestSequence = list250; @@ -225323,13 +270739,16 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list264); + index = 0; + span[index] = "liza"; questRoot31.Author = list264; - num = 6; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span92 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference202 = ref span92[0]; + index = 6; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + span2 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -225337,21 +270756,27 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); obj189.Steps = list266; reference202 = obj189; - ref QuestSequence reference203 = ref span92[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1029218u, new Vector3(-704.43274f, 14.656629f, -45.5177f), 817); + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029218u, new Vector3(-704.43274f, 14.656629f, -45.5177f), 817); obj190.Steps = list267; reference203 = obj190; - ref QuestSequence reference204 = ref span92[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -225359,29 +270784,35 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span93 = CollectionsMarshal.AsSpan(list268); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-761.0279f, 36.49958f, -337.04126f), 817) + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-761.0279f, 36.49958f, -337.04126f), 817) { Comment = "Moves out of aggro range of the door guard" }; - span93[1] = new QuestStep(EInteractionType.Interact, 1029764u, new Vector3(-763.79034f, 36.49958f, -332.29572f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029764u, new Vector3(-763.79034f, 36.49958f, -332.29572f), 817) { StopDistance = 7f }; obj191.Steps = list268; reference204 = obj191; - ref QuestSequence reference205 = ref span92[3]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1029220u, new Vector3(-801.4496f, 40.021206f, -393.6065f), 817); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029220u, new Vector3(-801.4496f, 40.021206f, -393.6065f), 817); obj192.Steps = list269; reference205 = obj192; - ref QuestSequence reference206 = ref span92[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -225389,21 +270820,26 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Snipe, 2009877u, new Vector3(-820.6455f, 38.376343f, -359.4873f), 817) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2009877u, new Vector3(-820.6455f, 38.376343f, -359.4873f), 817) { Comment = "Click murals" }; obj193.Steps = list270; reference206 = obj193; - ref QuestSequence reference207 = ref span92[5]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) { StopDistance = 7f }; @@ -225416,13 +270852,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "liza"; questRoot32.Author = list272; - num = 4; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span94 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference208 = ref span94[0]; + index = 4; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -225430,27 +270869,33 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) { StopDistance = 7f }; obj195.Steps = list274; reference208 = obj195; - ref QuestSequence reference209 = ref span94[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj196.Steps = list275; reference209 = obj196; - ref QuestSequence reference210 = ref span94[2]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -225458,20 +270903,25 @@ public static class AssemblyQuestLoader num2 = 2; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span95 = CollectionsMarshal.AsSpan(list276); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.65787f, -19.038322f, 309.5947f), 817); - span95[1] = new QuestStep(EInteractionType.Interact, 2009878u, new Vector3(-78.90448f, -19.272217f, 312.4895f), 817); + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.65787f, -19.038322f, 309.5947f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009878u, new Vector3(-78.90448f, -19.272217f, 312.4895f), 817); obj197.Steps = list276; reference210 = obj197; - ref QuestSequence reference211 = ref span94[3]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) { StopDistance = 5f }; @@ -225484,13 +270934,16 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list278); + index = 0; + span[index] = "liza"; questRoot33.Author = list278; - num = 7; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span96 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference212 = ref span96[0]; + index = 7; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + span2 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -225498,29 +270951,35 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) { StopDistance = 5f }; obj199.Steps = list280; reference212 = obj199; - ref QuestSequence reference213 = ref span96[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span97 = CollectionsMarshal.AsSpan(list281); - span97[0] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817) + index2 = 2; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817) { PickUpQuestId = new QuestId(3656) }; - span97[1] = new QuestStep(EInteractionType.Interact, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj200.Steps = list281; reference213 = obj200; - ref QuestSequence reference214 = ref span96[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -225528,17 +270987,21 @@ public static class AssemblyQuestLoader num2 = 2; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span98 = CollectionsMarshal.AsSpan(list282); - span98[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-528.96277f, -0.6f, 341.0297f), 817); - ref QuestStep reference215 = ref span98[1]; + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-528.96277f, -0.6f, 341.0297f), 817); + index2++; + ref QuestStep reference215 = ref span3[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009879u, new Vector3(-591.97375f, -90.56238f, 291.6151f), 817) { Fly = true }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new DialogueChoice + index3 = 1; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + span4 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q2_000_071") @@ -225547,15 +271010,18 @@ public static class AssemblyQuestLoader reference215 = obj202; obj201.Steps = list282; reference214 = obj201; - ref QuestSequence reference216 = ref span96[3]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - ref QuestStep reference217 = ref CollectionsMarshal.AsSpan(list284)[0]; + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + ref QuestStep reference217 = ref span3[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2009880u, new Vector3(-670.25256f, -90.68439f, 449.94275f), 817) { Fly = true @@ -225563,7 +271029,9 @@ public static class AssemblyQuestLoader num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q3_000_081") @@ -225572,7 +271040,8 @@ public static class AssemblyQuestLoader reference217 = obj204; obj203.Steps = list284; reference216 = obj203; - ref QuestSequence reference218 = ref span96[4]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -225580,12 +271049,16 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list286)[0]; + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + ref QuestStep reference219 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2009882u, new Vector3(-880.15564f, -90.68439f, 289.99768f), 817); - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = new DialogueChoice + index3 = 1; + List list287 = new List(index3); + CollectionsMarshal.SetCount(list287, index3); + span4 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q5_000_091") @@ -225594,27 +271067,31 @@ public static class AssemblyQuestLoader reference219 = questStep14; obj205.Steps = list286; reference218 = obj205; - ref QuestSequence reference220 = ref span96[5]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span99 = CollectionsMarshal.AsSpan(list288); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) + index2 = 2; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) { Fly = true }; - span99[1] = new QuestStep(EInteractionType.Interact, 2009884u, new Vector3(-593.164f, -95.23157f, 256.0005f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009884u, new Vector3(-593.164f, -95.23157f, 256.0005f), 817) { DisableNavmesh = true, Fly = true }; obj206.Steps = list288; reference220 = obj206; - ref QuestSequence reference221 = ref span96[6]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue @@ -225622,27 +271099,32 @@ public static class AssemblyQuestLoader num2 = 5; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span100 = CollectionsMarshal.AsSpan(list289); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) { DisableNavmesh = true, Mount = true, Fly = true }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.93475f, -77.64466f, 341.04385f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.93475f, -77.64466f, 341.04385f), 817) { Fly = true }; - span100[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-537.1801f, -0.6f, 340.31f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-537.1801f, -0.6f, 340.31f), 817) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - span100[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.11002f, -0.3000083f, 324.28143f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.11002f, -0.3000083f, 324.28143f), 817) { DisableNavmesh = true }; - span100[4] = new QuestStep(EInteractionType.CompleteQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj207.Steps = list289; reference221 = obj207; questRoot33.QuestSequence = list279; @@ -225652,24 +271134,30 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list290); + index = 0; + span[index] = "liza"; questRoot34.Author = list290; - num = 4; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span101 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference222 = ref span101[0]; + index = 4; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + span2 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj208.Steps = list292; reference222 = obj208; - ref QuestSequence reference223 = ref span101[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 1 @@ -225677,43 +271165,52 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1029224u, new Vector3(-7.4921875f, 0.74753714f, 205.40161f), 817) + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029224u, new Vector3(-7.4921875f, 0.74753714f, 205.40161f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj209.Steps = list293; reference223 = obj209; - ref QuestSequence reference224 = ref span101[2]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span102 = CollectionsMarshal.AsSpan(list294); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(66.71601f, 0.675326f, 231.57246f), 817) + index2 = 5; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(66.71601f, 0.675326f, 231.57246f), 817) { DisableNavmesh = true, Mount = true }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.46225f, -0.91537976f, 257.19345f), 817); - span102[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(334.33804f, 23.86952f, 271.9542f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.46225f, -0.91537976f, 257.19345f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(334.33804f, 23.86952f, 271.9542f), 817) { DisableNavmesh = true }; - span102[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010069u, new Vector3(338.6129f, 24.12439f, 203.17383f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010069u, new Vector3(338.6129f, 24.12439f, 203.17383f), 817) { AetherCurrentId = 2818288u }; - span102[4] = new QuestStep(EInteractionType.Interact, 2009886u, new Vector3(288.19702f, -0.10687256f, 221.66772f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009886u, new Vector3(288.19702f, -0.10687256f, 221.66772f), 817) { DisableNavmesh = true, Mount = true }; obj210.Steps = list294; reference224 = obj210; - ref QuestSequence reference225 = ref span101[3]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue @@ -225721,9 +271218,11 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span103 = CollectionsMarshal.AsSpan(list295); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.4612f, 4.434532f, -7.1864815f), 817); - span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1029228u, new Vector3(454.88672f, 18.97871f, -57.14508f), 817); + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.4612f, 4.434532f, -7.1864815f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029228u, new Vector3(454.88672f, 18.97871f, -57.14508f), 817); obj211.Steps = list295; reference225 = obj211; questRoot34.QuestSequence = list291; @@ -225733,27 +271232,33 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "liza"; questRoot35.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span104 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference226 = ref span104[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030374u, new Vector3(452.93335f, 18.97871f, -56.961975f), 817) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030374u, new Vector3(452.93335f, 18.97871f, -56.961975f), 817) { StopDistance = 5f }; obj212.Steps = list298; reference226 = obj212; - ref QuestSequence reference227 = ref span104[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 @@ -225761,81 +271266,114 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj213.Steps = list299; reference227 = obj213; - ref QuestSequence reference228 = ref span104[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span105 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference229 = ref span105[0]; + index2 = 5; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1027711u, new Vector3(429.86182f, 34.051743f, -114.85474f), 817); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span106 = CollectionsMarshal.AsSpan(list301); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list301; reference229 = questStep15; - ref QuestStep reference230 = ref span105[1]; + num2++; + ref QuestStep reference230 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1027717u, new Vector3(334.18774f, 7.960762f, -141.46643f), 817); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span107 = CollectionsMarshal.AsSpan(list302); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + span5 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list302; reference230 = questStep16; - span105[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) { Aetheryte = EAetheryteLocation.RaktikaFanow }; - ref QuestStep reference231 = ref span105[3]; + num2++; + ref QuestStep reference231 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1027719u, new Vector3(303.5172f, 34.242825f, -146.65448f), 817); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span108 = CollectionsMarshal.AsSpan(list303); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list303; reference231 = questStep17; - ref QuestStep reference232 = ref span105[4]; + num2++; + ref QuestStep reference232 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027712u, new Vector3(454.1847f, 6.955061f, -193.07245f), 817); - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span109 = CollectionsMarshal.AsSpan(list304); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + span5 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list304; reference232 = questStep18; obj214.Steps = list300; reference228 = obj214; - ref QuestSequence reference233 = ref span104[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -225843,7 +271381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj215.Steps = list305; reference233 = obj215; questRoot35.QuestSequence = list297; @@ -225853,24 +271393,30 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "liza"; questRoot36.Author = list306; - num = 7; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span110 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference234 = ref span110[0]; + index = 7; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj216.Steps = list308; reference234 = obj216; - ref QuestSequence reference235 = ref span110[1]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -225878,28 +271424,34 @@ public static class AssemblyQuestLoader num2 = 2; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span111 = CollectionsMarshal.AsSpan(list309); - span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) { PickUpQuestId = new QuestId(3467) }; - span111[1] = new QuestStep(EInteractionType.Interact, 1029238u, new Vector3(206.56128f, -6.300962f, -352.4682f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029238u, new Vector3(206.56128f, -6.300962f, -352.4682f), 817); obj217.Steps = list309; reference235 = obj217; - ref QuestSequence reference236 = ref span110[2]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - Span span112 = CollectionsMarshal.AsSpan(list310); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(188.16484f, -19.576328f, -435.14563f), 817); - span112[1] = new QuestStep(EInteractionType.Interact, 1030944u, new Vector3(169.604f, -19.98162f, -455.5276f), 817); + index2 = 2; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(188.16484f, -19.576328f, -435.14563f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030944u, new Vector3(169.604f, -19.98162f, -455.5276f), 817); obj218.Steps = list310; reference236 = obj218; - ref QuestSequence reference237 = ref span110[3]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -225907,8 +271459,9 @@ public static class AssemblyQuestLoader num2 = 9; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span113 = CollectionsMarshal.AsSpan(list311); - ref QuestStep reference238 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + ref QuestStep reference238 = ref span3[index2]; QuestStep obj220 = new QuestStep(EInteractionType.Jump, null, new Vector3(194.89655f, -18.734356f, -426.63055f), 817) { StopDistance = 0.25f, @@ -225926,35 +271479,49 @@ public static class AssemblyQuestLoader num3 = 6; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span114 = CollectionsMarshal.AsSpan(list312); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list312; skipConditions12.StepIf = skipStepConditions12; obj220.SkipConditions = skipConditions12; reference238 = obj220; - ref QuestStep reference239 = ref span113[1]; + index2++; + ref QuestStep reference239 = ref span3[index2]; QuestStep obj221 = new QuestStep(EInteractionType.UseItem, 2009890u, new Vector3(218.46338f, 10.574402f, -425.25372f), 817) { ItemId = 2002552u }; - num3 = 6; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - Span span115 = CollectionsMarshal.AsSpan(list313); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list313 = new List(index3); + CollectionsMarshal.SetCount(list313, index3); + span5 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj221.CompletionQuestVariablesFlags = list313; reference239 = obj221; - ref QuestStep reference240 = ref span113[2]; + index2++; + ref QuestStep reference240 = ref span3[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Jump, null, new Vector3(149.22699f, -19.278904f, -427.7278f), 817) { StopDistance = 0.25f, @@ -225973,35 +271540,49 @@ public static class AssemblyQuestLoader num3 = 6; List list314 = new List(num3); CollectionsMarshal.SetCount(list314, num3); - Span span116 = CollectionsMarshal.AsSpan(list314); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list314); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list314; skipConditions13.StepIf = skipStepConditions13; obj222.SkipConditions = skipConditions13; reference240 = obj222; - ref QuestStep reference241 = ref span113[3]; + index2++; + ref QuestStep reference241 = ref span3[index2]; QuestStep obj223 = new QuestStep(EInteractionType.UseItem, 2009887u, new Vector3(124.37622f, 10.879639f, -429.43463f), 817) { ItemId = 2002552u }; - num3 = 6; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - Span span117 = CollectionsMarshal.AsSpan(list315); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list315 = new List(index3); + CollectionsMarshal.SetCount(list315, index3); + span5 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj223.CompletionQuestVariablesFlags = list315; reference241 = obj223; - ref QuestStep reference242 = ref span113[4]; + index2++; + ref QuestStep reference242 = ref span3[index2]; QuestStep obj224 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.42946f, -19.372574f, -430.77545f), 817) { DisableNavmesh = true, @@ -226012,18 +271593,25 @@ public static class AssemblyQuestLoader num3 = 6; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - Span span118 = CollectionsMarshal.AsSpan(list316); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list316); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list316; skipConditions14.StepIf = skipStepConditions14; obj224.SkipConditions = skipConditions14; reference242 = obj224; - ref QuestStep reference243 = ref span113[5]; + index2++; + ref QuestStep reference243 = ref span3[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Jump, null, new Vector3(145.00993f, -20f, -509.06528f), 817) { StopDistance = 0.25f, @@ -226038,21 +271626,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span119 = CollectionsMarshal.AsSpan(list317); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + span5 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions15.CompletionQuestVariablesFlags = list317; skipConditions15.StepIf = skipStepConditions15; obj225.SkipConditions = skipConditions15; reference243 = obj225; - ref QuestStep reference244 = ref span113[6]; + index2++; + ref QuestStep reference244 = ref span3[index2]; QuestStep obj226 = new QuestStep(EInteractionType.UseItem, 2009888u, new Vector3(119.920654f, 10.696533f, -510.52112f), 817) { ItemId = 2002552u @@ -226060,16 +271655,23 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span120 = CollectionsMarshal.AsSpan(list318); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj226.CompletionQuestVariablesFlags = list318; reference244 = obj226; - ref QuestStep reference245 = ref span113[7]; + index2++; + ref QuestStep reference245 = ref span3[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Jump, null, new Vector3(195.20181f, -19.677738f, -516.0344f), 817) { StopDistance = 0.25f, @@ -226085,21 +271687,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions16 = new SkipStepConditions(); - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span121 = CollectionsMarshal.AsSpan(list319); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list319 = new List(index3); + CollectionsMarshal.SetCount(list319, index3); + span5 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions16.CompletionQuestVariablesFlags = list319; skipConditions16.StepIf = skipStepConditions16; obj227.SkipConditions = skipConditions16; reference245 = obj227; - ref QuestStep reference246 = ref span113[8]; + index2++; + ref QuestStep reference246 = ref span3[index2]; QuestStep obj228 = new QuestStep(EInteractionType.UseItem, 2009889u, new Vector3(218.92114f, 8.957031f, -514.45795f), 817) { ItemId = 2002552u @@ -226107,35 +271716,45 @@ public static class AssemblyQuestLoader num3 = 6; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - Span span122 = CollectionsMarshal.AsSpan(list320); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list320); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj228.CompletionQuestVariablesFlags = list320; reference246 = obj228; obj219.Steps = list311; reference237 = obj219; - ref QuestSequence reference247 = ref span110[4]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - Span span123 = CollectionsMarshal.AsSpan(list321); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.24295f, -19.743376f, -515.7917f), 817) + index2 = 2; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.24295f, -19.743376f, -515.7917f), 817) { DisableNavmesh = true, Mount = true }; - span123[1] = new QuestStep(EInteractionType.Interact, 1029241u, new Vector3(177.203f, -19.544508f, -533.53174f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029241u, new Vector3(177.203f, -19.544508f, -533.53174f), 817); obj229.Steps = list321; reference247 = obj229; - ref QuestSequence reference248 = ref span110[5]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 5 @@ -226143,21 +271762,25 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - ref QuestStep reference249 = ref CollectionsMarshal.AsSpan(list322)[0]; + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + ref QuestStep reference249 = ref span3[index2]; QuestStep obj231 = new QuestStep(EInteractionType.Interact, 1030946u, new Vector3(175.37183f, -19.521969f, -536.0647f), 817) { StopDistance = 7f }; - num3 = 2; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span124 = CollectionsMarshal.AsSpan(list323); - span124[0] = new DialogueChoice + index3 = 2; + List list323 = new List(index3); + CollectionsMarshal.SetCount(list323, index3); + span4 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC114_03335_Q1_000_000") }; - span124[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC114_03335_Q2_000_000"), @@ -226167,15 +271790,18 @@ public static class AssemblyQuestLoader reference249 = obj231; obj230.Steps = list322; reference248 = obj230; - ref QuestSequence reference250 = ref span110[6]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); obj232.Steps = list324; reference250 = obj232; questRoot36.QuestSequence = list307; @@ -226185,13 +271811,16 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - CollectionsMarshal.AsSpan(list325)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list325); + index = 0; + span[index] = "liza"; questRoot37.Author = list325; - num = 5; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - Span span125 = CollectionsMarshal.AsSpan(list326); - ref QuestSequence reference251 = ref span125[0]; + index = 5; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + span2 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 @@ -226199,24 +271828,31 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); obj233.Steps = list327; reference251 = obj233; - ref QuestSequence reference252 = ref span125[1]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span126 = CollectionsMarshal.AsSpan(list328); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.577484f, -18.78201f, -710.81934f), 817); - span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.32005f, -11.506357f, -869.2572f), 817); - span126[2] = new QuestStep(EInteractionType.Interact, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + index2 = 3; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.577484f, -18.78201f, -710.81934f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.32005f, -11.506357f, -869.2572f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj234.Steps = list328; reference252 = obj234; - ref QuestSequence reference253 = ref span125[2]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 @@ -226224,28 +271860,33 @@ public static class AssemblyQuestLoader num2 = 3; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span127 = CollectionsMarshal.AsSpan(list329); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.20982f, -4.4171376f, -842.7409f), 817); - span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.5321f, 11.218012f, -713.26447f), 817) + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.20982f, -4.4171376f, -842.7409f), 817); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.5321f, 11.218012f, -713.26447f), 817) { DisableNavmesh = true }; - span127[2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) { DisableNavmesh = true }; obj235.Steps = list329; reference253 = obj235; - ref QuestSequence reference254 = ref span125[3]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 }; - num2 = 11; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span128 = CollectionsMarshal.AsSpan(list330); - span128[0] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) + index2 = 11; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) { Comment = "Retry point", SkipConditions = new SkipConditions @@ -226256,34 +271897,45 @@ public static class AssemblyQuestLoader } } }; - span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.29196f, 11.218012f, -716.2551f), 817); - span128[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.56311f, 1.2180231f, -760.07153f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.29196f, 11.218012f, -716.2551f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.56311f, 1.2180231f, -760.07153f), 817) { DisableNavmesh = true }; - span128[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.72441f, 1.2180231f, -774.9509f), 817); - span128[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(182.27933f, 1.2180231f, -794.6802f), 817); - span128[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.54279f, 0.4118718f, -831.1932f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.72441f, 1.2180231f, -774.9509f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(182.27933f, 1.2180231f, -794.6802f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.54279f, 0.4118718f, -831.1932f), 817) { DisableNavmesh = true }; - span128[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(170.7773f, -8.781983f, -864.8363f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(170.7773f, -8.781983f, -864.8363f), 817) { DisableNavmesh = true }; - span128[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(128.05794f, -8.781985f, -861.96173f), 817); - span128[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.804436f, -8.781986f, -852.4725f), 817); - span128[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.83191f, -8.781986f, -882.98535f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(128.05794f, -8.781985f, -861.96173f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.804436f, -8.781986f, -852.4725f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.83191f, -8.781986f, -882.98535f), 817) { DisableNavmesh = true }; - span128[10] = new QuestStep(EInteractionType.Interact, 2010217u, new Vector3(115.43445f, -7.400635f, -895.4757f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010217u, new Vector3(115.43445f, -7.400635f, -895.4757f), 817) { DisableNavmesh = true }; obj236.Steps = list330; reference254 = obj236; - ref QuestSequence reference255 = ref span125[4]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue @@ -226291,7 +271943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj237.Steps = list331; reference255 = obj237; questRoot37.QuestSequence = list326; @@ -226301,24 +271955,30 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "liza"; questRoot38.Author = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span129 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference256 = ref span129[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj238.Steps = list334; reference256 = obj238; - ref QuestSequence reference257 = ref span129[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 1 @@ -226326,27 +271986,34 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference258 = ref CollectionsMarshal.AsSpan(list335)[0]; + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + ref QuestStep reference258 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029243u, new Vector3(121.3855f, -8.781985f, -890.62335f), 817); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = "(room 2) AI tries to walk straight to the next door, ignoring all walls"; + span = CollectionsMarshal.AsSpan(list336); + index3 = 0; + span[index3] = "(room 2) AI tries to walk straight to the next door, ignoring all walls"; singlePlayerDutyOptions.Notes = list336; questStep19.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference258 = questStep19; obj239.Steps = list335; reference257 = obj239; - ref QuestSequence reference259 = ref span129[2]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029244u, new Vector3(171.19092f, -19.76173f, -534.05054f), 817); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029244u, new Vector3(171.19092f, -19.76173f, -534.05054f), 817); obj240.Steps = list337; reference259 = obj240; questRoot38.QuestSequence = list333; @@ -226356,13 +272023,16 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "liza"; questRoot39.Author = list338; - num = 6; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span130 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference260 = ref span130[0]; + index = 6; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -226370,27 +272040,33 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029247u, new Vector3(166.91846f, -19.856256f, -535.1797f), 817) + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029247u, new Vector3(166.91846f, -19.856256f, -535.1797f), 817) { StopDistance = 5f }; obj241.Steps = list340; reference260 = obj241; - ref QuestSequence reference261 = ref span130[1]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817) { StopDistance = 2f }; obj242.Steps = list341; reference261 = obj242; - ref QuestSequence reference262 = ref span130[2]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 @@ -226398,24 +272074,30 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.UseItem, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817) { ItemId = 2002553u }; obj243.Steps = list342; reference262 = obj243; - ref QuestSequence reference263 = ref span130[3]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); obj244.Steps = list343; reference263 = obj244; - ref QuestSequence reference264 = ref span130[4]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 4 @@ -226423,18 +272105,23 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); obj245.Steps = list344; reference264 = obj245; - ref QuestSequence reference265 = ref span130[5]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); obj246.Steps = list345; reference265 = obj246; questRoot39.QuestSequence = list339; @@ -226444,13 +272131,16 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - CollectionsMarshal.AsSpan(list346)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list346); + index = 0; + span[index] = "liza"; questRoot40.Author = list346; - num = 6; - List list347 = new List(num); - CollectionsMarshal.SetCount(list347, num); - Span span131 = CollectionsMarshal.AsSpan(list347); - ref QuestSequence reference266 = ref span131[0]; + index = 6; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + span2 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -226458,24 +272148,30 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); + span3 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); obj247.Steps = list348; reference266 = obj247; - ref QuestSequence reference267 = ref span131[1]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1029251u, new Vector3(450.00366f, 6.955061f, -202.38043f), 817) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + span3 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029251u, new Vector3(450.00366f, 6.955061f, -202.38043f), 817) { StopDistance = 7f }; obj248.Steps = list349; reference267 = obj248; - ref QuestSequence reference268 = ref span131[2]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 @@ -226483,25 +272179,31 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(580.9263f, 18.753235f, -43.01526f), 817) + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(580.9263f, 18.753235f, -43.01526f), 817) { StopDistance = 1f, ItemId = 2002554u }; obj249.Steps = list350; reference268 = obj249; - ref QuestSequence reference269 = ref span131[3]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2009892u, new Vector3(580.9263f, 18.753235f, -43.01526f), 817); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009892u, new Vector3(580.9263f, 18.753235f, -43.01526f), 817); obj250.Steps = list351; reference269 = obj250; - ref QuestSequence reference270 = ref span131[4]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 4 @@ -226509,12 +272211,16 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - ref QuestStep reference271 = ref CollectionsMarshal.AsSpan(list352)[0]; + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + ref QuestStep reference271 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1029554u, new Vector3(585.7174f, 18.386158f, -59.18976f), 817); - num3 = 1; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = new DialogueChoice + index3 = 1; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + span4 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC118_03339_Q1_000_000"), @@ -226524,15 +272230,18 @@ public static class AssemblyQuestLoader reference271 = questStep20; obj251.Steps = list352; reference270 = obj251; - ref QuestSequence reference272 = ref span131[5]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029555u, new Vector3(453.26917f, 6.955061f, -204.39465f), 817) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029555u, new Vector3(453.26917f, 6.955061f, -204.39465f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -226545,13 +272254,16 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list355); + index = 0; + span[index] = "liza"; questRoot41.Author = list355; - num = 5; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span132 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference273 = ref span132[0]; + index = 4; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + span2 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 @@ -226559,33 +272271,40 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029255u, new Vector3(453.6964f, 6.955061f, -201.15973f), 817) + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029255u, new Vector3(453.6964f, 6.955061f, -201.15973f), 817) { StopDistance = 7f }; obj253.Steps = list357; reference273 = obj253; - ref QuestSequence reference274 = ref span132[1]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span133 = CollectionsMarshal.AsSpan(list358); - span133[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 3; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span3 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { PickUpQuestId = new QuestId(3478) }; - span133[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010073u, new Vector3(681.1168f, -39.2005f, -262.77563f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010073u, new Vector3(681.1168f, -39.2005f, -262.77563f), 817) { AetherCurrentId = 2818292u }; - span133[2] = new QuestStep(EInteractionType.Interact, 2009893u, new Vector3(854.39844f, -63.85907f, -394.43048f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009893u, new Vector3(854.39844f, -63.85907f, -394.43048f), 817); obj254.Steps = list358; reference274 = obj254; - ref QuestSequence reference275 = ref span132[2]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 2 @@ -226593,7 +272312,9 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Duty, null, null, 817) + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 817) { DutyOptions = new DutyOptions { @@ -226603,19 +272324,18 @@ public static class AssemblyQuestLoader }; obj255.Steps = list359; reference275 = obj255; - span132[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference276 = ref span132[4]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) { StopDistance = 5f }; @@ -226628,13 +272348,16 @@ public static class AssemblyQuestLoader num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - CollectionsMarshal.AsSpan(list361)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list361); + index = 0; + span[index] = "liza"; questRoot42.Author = list361; - num = 3; - List list362 = new List(num); - CollectionsMarshal.SetCount(list362, num); - Span span134 = CollectionsMarshal.AsSpan(list362); - ref QuestSequence reference277 = ref span134[0]; + index = 3; + List list362 = new List(index); + CollectionsMarshal.SetCount(list362, index); + span2 = CollectionsMarshal.AsSpan(list362); + num = 0; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 0 @@ -226642,28 +272365,34 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) { StopDistance = 5f }; obj257.Steps = list363; reference277 = obj257; - ref QuestSequence reference278 = ref span134[1]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + span3 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj258.Steps = list364; reference278 = obj258; - ref QuestSequence reference279 = ref span134[2]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -226671,7 +272400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -226684,27 +272415,33 @@ public static class AssemblyQuestLoader num = 1; List list366 = new List(num); CollectionsMarshal.SetCount(list366, num); - CollectionsMarshal.AsSpan(list366)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list366); + index = 0; + span[index] = "liza"; questRoot43.Author = list366; - num = 5; - List list367 = new List(num); - CollectionsMarshal.SetCount(list367, num); - Span span135 = CollectionsMarshal.AsSpan(list367); - ref QuestSequence reference280 = ref span135[0]; + index = 5; + List list367 = new List(index); + CollectionsMarshal.SetCount(list367, index); + span2 = CollectionsMarshal.AsSpan(list367); + num = 0; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029011u, new Vector3(-88.822815f, -19.053196f, 296.65063f), 817) + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029011u, new Vector3(-88.822815f, -19.053196f, 296.65063f), 817) { StopDistance = 5f }; obj260.Steps = list368; reference280 = obj260; - ref QuestSequence reference281 = ref span135[1]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -226712,26 +272449,32 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); + span3 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); obj261.Steps = list369; reference281 = obj261; - ref QuestSequence reference282 = ref span135[2]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span136 = CollectionsMarshal.AsSpan(list370); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.28227f, -19.16186f, 319.19778f), 817); - span136[1] = new QuestStep(EInteractionType.Interact, 2009894u, new Vector3(-259.51025f, -2.395752f, 332.81445f), 817) + index2 = 2; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.28227f, -19.16186f, 319.19778f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009894u, new Vector3(-259.51025f, -2.395752f, 332.81445f), 817) { Fly = true }; obj262.Steps = list370; reference282 = obj262; - ref QuestSequence reference283 = ref span135[3]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 @@ -226739,22 +272482,27 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Crystarium }; obj263.Steps = list371; reference283 = obj263; - ref QuestSequence reference284 = ref span135[4]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - ref QuestStep reference285 = ref CollectionsMarshal.AsSpan(list372)[0]; + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference285 = ref span3[num2]; QuestStep obj265 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f, @@ -226767,7 +272515,9 @@ public static class AssemblyQuestLoader num3 = 1; List list373 = new List(num3); CollectionsMarshal.SetCount(list373, num3); - CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC121_03342_Q1_000_000") @@ -226783,13 +272533,16 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list374); + index = 0; + span[index] = "liza"; questRoot44.Author = list374; - num = 5; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span137 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference286 = ref span137[0]; + index = 5; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + span2 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 0 @@ -226797,21 +272550,27 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027827u, new Vector3(105.02783f, 0.49999997f, -145.70844f), 819); + span3 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027827u, new Vector3(105.02783f, 0.49999997f, -145.70844f), 819); obj266.Steps = list376; reference286 = obj266; - ref QuestSequence reference287 = ref span137[1]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819); + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819); obj267.Steps = list377; reference287 = obj267; - ref QuestSequence reference288 = ref span137[2]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 2 @@ -226819,7 +272578,9 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1027817u, new Vector3(-118.425354f, -47.50666f, -181.17041f), 819) + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027817u, new Vector3(-118.425354f, -47.50666f, -181.17041f), 819) { AethernetShortcut = new AethernetShortcut { @@ -226829,46 +272590,62 @@ public static class AssemblyQuestLoader }; obj268.Steps = list378; reference288 = obj268; - ref QuestSequence reference289 = ref span137[3]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span138 = CollectionsMarshal.AsSpan(list379); - ref QuestStep reference290 = ref span138[0]; + index2 = 2; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + span3 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + ref QuestStep reference290 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2010022u, new Vector3(-152.08673f, -45.88391f, -185.0462f), 819); - num3 = 6; - List list380 = new List(num3); - CollectionsMarshal.SetCount(list380, num3); - Span span139 = CollectionsMarshal.AsSpan(list380); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list380 = new List(index3); + CollectionsMarshal.SetCount(list380, index3); + span5 = CollectionsMarshal.AsSpan(list380); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list380; reference290 = questStep21; - ref QuestStep reference291 = ref span138[1]; + num2++; + ref QuestStep reference291 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1030257u, new Vector3(-169.3294f, -45.8779f, -209.85736f), 819); num3 = 6; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span140 = CollectionsMarshal.AsSpan(list381); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list381; reference291 = questStep22; obj269.Steps = list379; reference289 = obj269; - ref QuestSequence reference292 = ref span137[4]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -226876,7 +272653,9 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { AethernetShortcut = new AethernetShortcut { @@ -226893,24 +272672,30 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - CollectionsMarshal.AsSpan(list383)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list383); + index = 0; + span[index] = "liza"; questRoot45.Author = list383; - num = 3; - List list384 = new List(num); - CollectionsMarshal.SetCount(list384, num); - Span span141 = CollectionsMarshal.AsSpan(list384); - ref QuestSequence reference293 = ref span141[0]; + index = 3; + List list384 = new List(index); + CollectionsMarshal.SetCount(list384, index); + span2 = CollectionsMarshal.AsSpan(list384); + num = 0; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); obj271.Steps = list385; reference293 = obj271; - ref QuestSequence reference294 = ref span141[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -226918,8 +272703,9 @@ public static class AssemblyQuestLoader num2 = 5; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span142 = CollectionsMarshal.AsSpan(list386); - ref QuestStep reference295 = ref span142[0]; + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + ref QuestStep reference295 = ref span3[index2]; QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819) { AethernetShortcut = new AethernetShortcut @@ -226928,19 +272714,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTemenosRookery } }; - num3 = 6; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span143 = CollectionsMarshal.AsSpan(list387); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + span5 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj273.CompletionQuestVariablesFlags = list387; reference295 = obj273; - ref QuestStep reference296 = ref span142[1]; + index2++; + ref QuestStep reference296 = ref span3[index2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 1027227u, new Vector3(-65.78168f, -27.23603f, -272.99915f), 819) { AethernetShortcut = new AethernetShortcut @@ -226952,16 +272745,23 @@ public static class AssemblyQuestLoader num3 = 6; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - Span span144 = CollectionsMarshal.AsSpan(list388); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj274.CompletionQuestVariablesFlags = list388; reference296 = obj274; - ref QuestStep reference297 = ref span142[2]; + index2++; + ref QuestStep reference297 = ref span3[index2]; QuestStep obj275 = new QuestStep(EInteractionType.Interact, 1030258u, new Vector3(65.659546f, 36.197685f, -148.54657f), 819) { AethernetShortcut = new AethernetShortcut @@ -226970,19 +272770,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - num3 = 6; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - Span span145 = CollectionsMarshal.AsSpan(list389); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list389 = new List(index3); + CollectionsMarshal.SetCount(list389, index3); + span5 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj275.CompletionQuestVariablesFlags = list389; reference297 = obj275; - span142[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(80.6178f, 35.999687f, -146.81993f), 819) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(80.6178f, 35.999687f, -146.81993f), 819) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -226990,36 +272797,48 @@ public static class AssemblyQuestLoader Position = new Vector3(98.63616f, 0.5f, -153.71947f) } }; - ref QuestStep reference298 = ref span142[4]; + index2++; + ref QuestStep reference298 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819); num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - Span span146 = CollectionsMarshal.AsSpan(list390); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list390); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list390; reference298 = questStep23; obj272.Steps = list386; reference294 = obj272; - ref QuestSequence reference299 = ref span141[2]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - ref QuestStep reference300 = ref CollectionsMarshal.AsSpan(list391)[0]; + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + ref QuestStep reference300 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.CompleteQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); - num3 = 1; - List list392 = new List(num3); - CollectionsMarshal.SetCount(list392, num3); - CollectionsMarshal.AsSpan(list392)[0] = new DialogueChoice + index3 = 1; + List list392 = new List(index3); + CollectionsMarshal.SetCount(list392, index3); + span4 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA002_03344_Q1_000_051"), @@ -227036,13 +272855,16 @@ public static class AssemblyQuestLoader num = 1; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - CollectionsMarshal.AsSpan(list393)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list393); + index = 0; + span[index] = "liza"; questRoot46.Author = list393; - num = 4; - List list394 = new List(num); - CollectionsMarshal.SetCount(list394, num); - Span span147 = CollectionsMarshal.AsSpan(list394); - ref QuestSequence reference301 = ref span147[0]; + index = 4; + List list394 = new List(index); + CollectionsMarshal.SetCount(list394, index); + span2 = CollectionsMarshal.AsSpan(list394); + num = 0; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 0 @@ -227050,23 +272872,29 @@ public static class AssemblyQuestLoader num2 = 2; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - Span span148 = CollectionsMarshal.AsSpan(list395); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); - span148[1] = new QuestStep(EInteractionType.AcceptQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); + span3 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); obj277.Steps = list395; reference301 = obj277; - ref QuestSequence reference302 = ref span147[1]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1027816u, new Vector3(-20.676025f, -7.700001f, 111.77234f), 819); + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + span3 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027816u, new Vector3(-20.676025f, -7.700001f, 111.77234f), 819); obj278.Steps = list396; reference302 = obj278; - ref QuestSequence reference303 = ref span147[2]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = 2 @@ -227074,20 +272902,25 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1029146u, new Vector3(86.74744f, 0.74016255f, 147.11218f), 819); + span3 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029146u, new Vector3(86.74744f, 0.74016255f, 147.11218f), 819); obj279.Steps = list397; reference303 = obj279; - ref QuestSequence reference304 = ref span147[3]; + num++; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - Span span149 = CollectionsMarshal.AsSpan(list398); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); - span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); + index2 = 2; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + span3 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); obj280.Steps = list398; reference304 = obj280; questRoot46.QuestSequence = list394; @@ -227097,13 +272930,16 @@ public static class AssemblyQuestLoader num = 1; List list399 = new List(num); CollectionsMarshal.SetCount(list399, num); - CollectionsMarshal.AsSpan(list399)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list399); + index = 0; + span[index] = "liza"; questRoot47.Author = list399; - num = 5; - List list400 = new List(num); - CollectionsMarshal.SetCount(list400, num); - Span span150 = CollectionsMarshal.AsSpan(list400); - ref QuestSequence reference305 = ref span150[0]; + index = 5; + List list400 = new List(index); + CollectionsMarshal.SetCount(list400, index); + span2 = CollectionsMarshal.AsSpan(list400); + num = 0; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 0 @@ -227111,63 +272947,88 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + span3 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj281.Steps = list401; reference305 = obj281; - ref QuestSequence reference306 = ref span150[1]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - Span span151 = CollectionsMarshal.AsSpan(list402); - ref QuestStep reference307 = ref span151[0]; + index2 = 3; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + span3 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + ref QuestStep reference307 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2009995u, new Vector3(-130.38837f, 1.1138916f, -82.84125f), 819); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span152 = CollectionsMarshal.AsSpan(list403); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list403; reference307 = questStep25; - ref QuestStep reference308 = ref span151[1]; + num2++; + ref QuestStep reference308 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2009994u, new Vector3(-155.29114f, -0.015319824f, -99.38208f), 819); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span153 = CollectionsMarshal.AsSpan(list404); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + span5 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list404; reference308 = questStep26; - ref QuestStep reference309 = ref span151[2]; + num2++; + ref QuestStep reference309 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 2009996u, new Vector3(-145.00653f, -0.045776367f, -130.5105f), 819); num3 = 6; List list405 = new List(num3); CollectionsMarshal.SetCount(list405, num3); - Span span154 = CollectionsMarshal.AsSpan(list405); - span154[0] = null; - span154[1] = null; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list405); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list405; reference309 = questStep27; obj282.Steps = list402; reference306 = obj282; - ref QuestSequence reference310 = ref span150[2]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = 2 @@ -227175,21 +273036,27 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj283.Steps = list406; reference310 = obj283; - ref QuestSequence reference311 = ref span150[3]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1028334u, new Vector3(-135.33228f, -6.193295E-07f, 59.464355f), 819); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028334u, new Vector3(-135.33228f, -6.193295E-07f, 59.464355f), 819); obj284.Steps = list407; reference311 = obj284; - ref QuestSequence reference312 = ref span150[4]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue @@ -227197,7 +273064,9 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj285.Steps = list408; reference312 = obj285; questRoot47.QuestSequence = list400; @@ -227207,24 +273076,30 @@ public static class AssemblyQuestLoader num = 1; List list409 = new List(num); CollectionsMarshal.SetCount(list409, num); - CollectionsMarshal.AsSpan(list409)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list409); + index = 0; + span[index] = "liza"; questRoot48.Author = list409; - num = 3; - List list410 = new List(num); - CollectionsMarshal.SetCount(list410, num); - Span span155 = CollectionsMarshal.AsSpan(list410); - ref QuestSequence reference313 = ref span155[0]; + index = 3; + List list410 = new List(index); + CollectionsMarshal.SetCount(list410, index); + span2 = CollectionsMarshal.AsSpan(list410); + num = 0; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); obj286.Steps = list411; reference313 = obj286; - ref QuestSequence reference314 = ref span155[1]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 1 @@ -227232,25 +273107,30 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - ref QuestStep reference315 = ref CollectionsMarshal.AsSpan(list412)[0]; + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + ref QuestStep reference315 = ref span3[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1030259u, new Vector3(-68.55884f, -27.236004f, -269.58118f), 819); - num3 = 3; - List list413 = new List(num3); - CollectionsMarshal.SetCount(list413, num3); - Span span156 = CollectionsMarshal.AsSpan(list413); - span156[0] = new DialogueChoice + index3 = 3; + List list413 = new List(index3); + CollectionsMarshal.SetCount(list413, index3); + span4 = CollectionsMarshal.AsSpan(list413); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q1_000_012"), Answer = new ExcelRef("TEXT_LUCKZA005_03347_A1_000_013") }; - span156[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q2_000_017"), Answer = new ExcelRef("TEXT_LUCKZA005_03347_A2_000_019") }; - span156[2] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q3_000_022"), @@ -227260,15 +273140,18 @@ public static class AssemblyQuestLoader reference315 = questStep28; obj287.Steps = list412; reference314 = obj287; - ref QuestSequence reference316 = ref span155[2]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + span3 = CollectionsMarshal.AsSpan(list414); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); obj288.Steps = list414; reference316 = obj288; questRoot48.QuestSequence = list410; @@ -227278,13 +273161,16 @@ public static class AssemblyQuestLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - CollectionsMarshal.AsSpan(list415)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list415); + index = 0; + span[index] = "liza"; questRoot49.Author = list415; - num = 3; - List list416 = new List(num); - CollectionsMarshal.SetCount(list416, num); - Span span157 = CollectionsMarshal.AsSpan(list416); - ref QuestSequence reference317 = ref span157[0]; + index = 3; + List list416 = new List(index); + CollectionsMarshal.SetCount(list416, index); + span2 = CollectionsMarshal.AsSpan(list416); + num = 0; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = 0 @@ -227292,24 +273178,30 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819); + span3 = CollectionsMarshal.AsSpan(list417); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819); obj289.Steps = list417; reference317 = obj289; - ref QuestSequence reference318 = ref span157[1]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Emote, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) + index2 = 1; + List list418 = new List(index2); + CollectionsMarshal.SetCount(list418, index2); + span3 = CollectionsMarshal.AsSpan(list418); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) { Emote = EEmote.BattleStance }; obj290.Steps = list418; reference318 = obj290; - ref QuestSequence reference319 = ref span157[2]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = byte.MaxValue @@ -227317,7 +273209,9 @@ public static class AssemblyQuestLoader num2 = 1; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) + span3 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) { Emote = EEmote.Box }; @@ -227334,13 +273228,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -227348,26 +273245,32 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-451.1456f, 8.987026f, 532.7527f), 814); - span2[1] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-451.1456f, 8.987026f, 532.7527f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814) { StopDistance = 7f }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -227375,8 +273278,9 @@ public static class AssemblyQuestLoader num2 = 7; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-447.98965f, 7.657998f, 532.0151f), 814) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-447.98965f, 7.657998f, 532.0151f), 814) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -227385,7 +273289,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - ref QuestStep reference4 = ref span3[1]; + index2++; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, 2010260u, new Vector3(-444.38855f, 8.987488f, 532.6771f), 814) { DelaySecondsAtStart = 1f, @@ -227395,33 +273300,47 @@ public static class AssemblyQuestLoader 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); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span3[2]; + index2++; + ref QuestStep reference5 = ref span3[index2]; QuestStep obj5 = new QuestStep(EInteractionType.UseItem, 2010286u, new Vector3(-443.0152f, 8.773865f, 535.97314f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + span4 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - ref QuestStep reference6 = ref span3[3]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.UseItem, 2010287u, new Vector3(-442.92365f, 8.895996f, 538.6892f), 814) { DelaySecondsAtStart = 1f, @@ -227430,34 +273349,48 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list8); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list8; reference6 = obj6; - ref QuestStep reference7 = ref span3[4]; + index2++; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.UseItem, 2010288u, new Vector3(-441.88605f, 8.590759f, 542.3513f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); + span4 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list9; reference7 = obj7; - ref QuestStep reference8 = ref span3[5]; + index2++; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.UseItem, 2010261u, new Vector3(-444.6327f, 8.804443f, 544.51807f), 814) { DelaySecondsAtStart = 1f, @@ -227466,47 +273399,64 @@ public static class AssemblyQuestLoader num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span8 = CollectionsMarshal.AsSpan(list10); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list10); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list10; reference8 = obj8; - ref QuestStep reference9 = ref span3[6]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.UseItem, 2010289u, new Vector3(-443.47296f, 8.499207f, 548.30237f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span9 = CollectionsMarshal.AsSpan(list11); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span4 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list11; reference9 = obj9; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference10 = ref span[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814); obj10.Steps = list12; reference10 = obj10; - ref QuestSequence reference11 = ref span[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -227514,7 +273464,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; @@ -227527,24 +273479,30 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "liza"; questRoot2.Author = list14; - num = 6; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span10 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span10[0]; + index = 6; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span10[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -227552,7 +273510,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-226.82605f, 21.612165f, 298.9232f), 814) { StopDistance = 1f, @@ -227561,26 +273521,32 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 11151u; + Span span5 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span5[num4] = 11151u; obj14.KillEnemyDataIds = list18; reference14 = obj14; obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference15 = ref span10[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030764u, new Vector3(-226.42871f, 21.592747f, 297.8407f), 814) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030764u, new Vector3(-226.42871f, 21.592747f, 297.8407f), 814) { StopDistance = 7f }; obj15.Steps = list19; reference15 = obj15; - ref QuestSequence reference16 = ref span10[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -227588,21 +273554,27 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); obj16.Steps = list20; reference16 = obj16; - ref QuestSequence reference17 = ref span10[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1030794u, new Vector3(-317.2503f, 21.045609f, 349.17212f), 814); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030794u, new Vector3(-317.2503f, 21.045609f, 349.17212f), 814); obj17.Steps = list21; reference17 = obj17; - ref QuestSequence reference18 = ref span10[5]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -227610,9 +273582,11 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.69812f, 35.330315f, 205.46227f), 814); - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.69812f, 35.330315f, 205.46227f), 814); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); obj18.Steps = list22; reference18 = obj18; questRoot2.QuestSequence = list15; @@ -227622,21 +273596,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "alydev"; questRoot3.Author = list23; - num = 4; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span12 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference19 = ref span12[0]; + index = 4; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -227654,7 +273633,8 @@ public static class AssemblyQuestLoader }; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference20 = ref span12[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -227662,32 +273642,40 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list26)[0]; + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2010303u, new Vector3(-481.529f, 26.108154f, 333.27222f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = 11152u; + num4 = 1; + List list27 = new List(num4); + CollectionsMarshal.SetCount(list27, num4); + span5 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span5[num3] = 11152u; obj21.KillEnemyDataIds = list27; reference21 = obj21; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference22 = ref span12[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1030769u, new Vector3(-474.72345f, 24.51279f, 337.27014f), 814); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030769u, new Vector3(-474.72345f, 24.51279f, 337.27014f), 814); obj22.Steps = list28; reference22 = obj22; - ref QuestSequence reference23 = ref span12[3]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -227695,7 +273683,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { Fly = true, NextQuestId = new QuestId(3373) @@ -227709,21 +273699,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "alydev"; questRoot4.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span13 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span13[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -227741,7 +273736,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span13[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -227749,12 +273745,16 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list33)[0]; + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref QuestStep reference26 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030770u, new Vector3(-547.87524f, 37.722652f, 532.4635f), 814); num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA103_03373_Q1_000_000"), @@ -227764,21 +273764,26 @@ public static class AssemblyQuestLoader reference26 = questStep; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference27 = ref span13[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span14 = CollectionsMarshal.AsSpan(list35); - span14[0] = new QuestStep(EInteractionType.Interact, 2010304u, new Vector3(-546.685f, 62.119385f, 681.9713f), 814); - span14[1] = new QuestStep(EInteractionType.Interact, 2010305u, new Vector3(-532.1889f, 62.790894f, 693.38513f), 814); - span14[2] = new QuestStep(EInteractionType.Interact, 2010306u, new Vector3(-524.07117f, 61.53955f, 674.464f), 814); + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010304u, new Vector3(-546.685f, 62.119385f, 681.9713f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010305u, new Vector3(-532.1889f, 62.790894f, 693.38513f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010306u, new Vector3(-524.07117f, 61.53955f, 674.464f), 814); obj26.Steps = list35; reference27 = obj26; - ref QuestSequence reference28 = ref span13[3]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -227786,18 +273791,23 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1030771u, new Vector3(-532.4636f, 62.522995f, 684.0161f), 814); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030771u, new Vector3(-532.4636f, 62.522995f, 684.0161f), 814); obj27.Steps = list36; reference28 = obj27; - ref QuestSequence reference29 = ref span13[4]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { NextQuestId = new QuestId(3374) }; @@ -227810,13 +273820,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "alydev"; questRoot5.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span15 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference30 = ref span15[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -227824,7 +273837,9 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -227842,21 +273857,25 @@ public static class AssemblyQuestLoader }; obj29.Steps = list40; reference30 = obj29; - ref QuestSequence reference31 = ref span15[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1030772u, new Vector3(-240.22284f, 20.521734f, 352.19336f), 814) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030772u, new Vector3(-240.22284f, 20.521734f, 352.19336f), 814) { Fly = true }; obj30.Steps = list41; reference31 = obj30; - ref QuestSequence reference32 = ref span15[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -227864,24 +273883,30 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1030773u, new Vector3(-259.78485f, 21.732246f, 362.14233f), 814); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030773u, new Vector3(-259.78485f, 21.732246f, 362.14233f), 814); obj31.Steps = list42; reference32 = obj31; - ref QuestSequence reference33 = ref span15[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) { Fly = true }; obj32.Steps = list43; reference33 = obj32; - ref QuestSequence reference34 = ref span15[4]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -227889,7 +273914,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) { NextQuestId = new QuestId(3560) }; @@ -227902,24 +273929,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot6.Author = list45; - num = 4; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span16 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference35 = ref span16[0]; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); obj34.Steps = list47; reference35 = obj34; - ref QuestSequence reference36 = ref span16[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -227927,8 +273960,9 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span17 = CollectionsMarshal.AsSpan(list48); - span17[0] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { StopDistance = 7f, TargetTerritoryId = (ushort)815, @@ -227939,63 +273973,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span17[1] = new QuestStep(EInteractionType.Interact, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); obj35.Steps = list48; reference36 = obj35; - ref QuestSequence reference37 = ref span16[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span18 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference38 = ref span18[0]; + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010010u, new Vector3(651.8806f, -54.062744f, -594.5068f), 815); - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span19 = CollectionsMarshal.AsSpan(list50); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + span4 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list50; reference38 = questStep2; - ref QuestStep reference39 = ref span18[1]; + num2++; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2010011u, new Vector3(665.0338f, -58.9151f, -575.9518f), 815); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span20 = CollectionsMarshal.AsSpan(list51); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list51; reference39 = questStep3; - ref QuestStep reference40 = ref span18[2]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010012u, new Vector3(674.5249f, -60.654602f, -566.03345f), 815); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span21 = CollectionsMarshal.AsSpan(list52); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list52; reference40 = questStep4; obj36.Steps = list49; reference37 = obj36; - ref QuestSequence reference41 = ref span16[3]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -228003,7 +274061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); obj37.Steps = list53; reference41 = obj37; questRoot6.QuestSequence = list46; @@ -228013,24 +274073,30 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "liza"; questRoot7.Author = list54; - num = 3; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span22 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference42 = ref span22[0]; + index = 3; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819); obj38.Steps = list56; reference42 = obj38; - ref QuestSequence reference43 = ref span22[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -228038,22 +274104,27 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 2010499u, new Vector3(655.1765f, 57.724854f, -436.51483f), 813) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010499u, new Vector3(655.1765f, 57.724854f, -436.51483f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj39.Steps = list57; reference43 = obj39; - ref QuestSequence reference44 = ref span22[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -228071,13 +274142,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "liza"; questRoot8.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span23 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span23[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -228085,24 +274159,30 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819); obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span23[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference47 = ref span23[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -228110,43 +274190,58 @@ public static class AssemblyQuestLoader num2 = 12; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span24 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference48 = ref span24[0]; + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1028279u, new Vector3(715.053f, 21.41357f, -26.93219f), 813); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span25 = CollectionsMarshal.AsSpan(list64); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list64; reference48 = questStep5; - ref QuestStep reference49 = ref span24[1]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(703.03595f, 21.400166f, -29.025133f), 813) { Mount = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span26 = CollectionsMarshal.AsSpan(list65); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span4 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list65; skipConditions.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions; reference49 = obj44; - ref QuestStep reference50 = ref span24[2]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(704.28827f, 24.192482f, -17.380848f), 813) { DisableNavmesh = true @@ -228156,121 +274251,168 @@ public static class AssemblyQuestLoader num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span27 = CollectionsMarshal.AsSpan(list66); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list66; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference50 = obj45; - ref QuestStep reference51 = ref span24[3]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1027339u, new Vector3(709.6819f, 24.19248f, 1.8157349f), 813); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span28 = CollectionsMarshal.AsSpan(list67); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + span4 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list67; reference51 = questStep6; - ref QuestStep reference52 = ref span24[4]; + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.572f, 21.395899f, -29.691013f), 813); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span29 = CollectionsMarshal.AsSpan(list68); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list68); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list68; skipConditions3.StepIf = skipStepConditions3; questStep7.SkipConditions = skipConditions3; reference52 = questStep7; - ref QuestStep reference53 = ref span24[5]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.9016f, 32.510292f, -62.020554f), 813); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span30 = CollectionsMarshal.AsSpan(list69); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span4 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list69; skipConditions4.StepIf = skipStepConditions4; questStep8.SkipConditions = skipConditions4; reference53 = questStep8; - ref QuestStep reference54 = ref span24[6]; + index2++; + ref QuestStep reference54 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(700.8876f, 21.146883f, -86.96297f), 813); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span31 = CollectionsMarshal.AsSpan(list70); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list70; skipConditions5.StepIf = skipStepConditions5; questStep9.SkipConditions = skipConditions5; reference54 = questStep9; - ref QuestStep reference55 = ref span24[7]; + index2++; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1027420u, new Vector3(702.38794f, 21.798542f, -81.34589f), 813) { StopDistance = 7f }; - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span4 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list71; reference55 = obj46; - span24[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(735.5528f, 21.146883f, -88.66971f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(735.5528f, 21.146883f, -88.66971f), 813) { DisableNavmesh = true }; - span24[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(781.0609f, 23.037855f, -51.803383f), 813); - span24[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(805.13293f, 23.037834f, -45.432808f), 813); - span24[11] = new QuestStep(EInteractionType.Interact, 1027341u, new Vector3(805.35596f, 30.86825f, 7.9804688f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(781.0609f, 23.037855f, -51.803383f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(805.13293f, 23.037834f, -45.432808f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027341u, new Vector3(805.35596f, 30.86825f, 7.9804688f), 813); obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference56 = ref span23[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span33 = CollectionsMarshal.AsSpan(list72); - span33[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(794.2938f, 33.028008f, 6.1403913f), 813) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(794.2938f, 33.028008f, 6.1403913f), 813) { JumpDestination = new JumpDestination { @@ -228278,7 +274420,8 @@ public static class AssemblyQuestLoader StopDistance = 0.25f } }; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813); obj47.Steps = list72; reference56 = obj47; questRoot8.QuestSequence = list60; @@ -228288,13 +274431,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; questRoot9.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span34 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference57 = ref span34[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -228302,19 +274448,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813); obj48.Steps = list75; reference57 = obj48; - ref QuestSequence reference58 = ref span34[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span35 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference59 = ref span35[0]; + index2 = 6; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference59 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) { Comment = "Tower Bottom" @@ -228324,18 +274474,25 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list77); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list77; skipConditions6.StepIf = skipStepConditions6; obj50.SkipConditions = skipConditions6; reference59 = obj50; - ref QuestStep reference60 = ref span35[1]; + num2++; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj51 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) { DisableNavmesh = true, @@ -228343,21 +274500,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span4 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list78; skipConditions7.StepIf = skipStepConditions7; obj51.SkipConditions = skipConditions7; reference60 = obj51; - ref QuestStep reference61 = ref span35[2]; + num2++; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.UseItem, 2010618u, new Vector3(-792.1111f, 115.15979f, -346.4256f), 813) { ItemId = 2002831u @@ -228365,33 +274529,47 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span38 = CollectionsMarshal.AsSpan(list79); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list79; reference61 = obj52; - ref QuestStep reference62 = ref span35[3]; + num2++; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj53 = new QuestStep(EInteractionType.UseItem, 2010619u, new Vector3(-798.27576f, 115.15979f, -320.05798f), 813) { ItemId = 2002831u }; - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span39 = CollectionsMarshal.AsSpan(list80); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + span4 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list80; reference62 = obj53; - ref QuestStep reference63 = ref span35[4]; + num2++; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.UseItem, 2010613u, new Vector3(-794.73566f, 115.15979f, -310.32275f), 813) { ItemId = 2002831u @@ -228399,35 +274577,49 @@ public static class AssemblyQuestLoader num3 = 6; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - Span span40 = CollectionsMarshal.AsSpan(list81); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list81; reference63 = obj54; - ref QuestStep reference64 = ref span35[5]; + num2++; + ref QuestStep reference64 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.UseItem, 2010620u, new Vector3(-789.05927f, 146.77649f, -344.1673f), 813) { ItemId = 2002831u }; - num3 = 6; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span41 = CollectionsMarshal.AsSpan(list82); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + span4 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list82; reference64 = obj55; obj49.Steps = list76; reference58 = obj49; - ref QuestSequence reference65 = ref span34[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -228435,7 +274627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; @@ -228448,24 +274642,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "liza"; questRoot10.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span42 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span42[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813); obj57.Steps = list86; reference66 = obj57; - ref QuestSequence reference67 = ref span42[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -228473,21 +274673,27 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1031214u, new Vector3(-425.2232f, 7.8791666f, -120.83624f), 813); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031214u, new Vector3(-425.2232f, 7.8791666f, -120.83624f), 813); obj58.Steps = list87; reference67 = obj58; - ref QuestSequence reference68 = ref span42[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1031216u, new Vector3(-460.44104f, 0.94062716f, 79.39258f), 813); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031216u, new Vector3(-460.44104f, 0.94062716f, 79.39258f), 813); obj59.Steps = list88; reference68 = obj59; - ref QuestSequence reference69 = ref span42[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -228495,21 +274701,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.UseItem, 1031213u, new Vector3(-465.1103f, 1.231928f, 77.927734f), 813) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1031213u, new Vector3(-465.1103f, 1.231928f, 77.927734f), 813) { ItemId = 2002832u }; obj60.Steps = list89; reference69 = obj60; - ref QuestSequence reference70 = ref span42[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; @@ -228522,13 +274733,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; questRoot11.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span43 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference71 = ref span43[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -228536,23 +274750,28 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813); obj62.Steps = list93; reference71 = obj62; - ref QuestSequence reference72 = ref span43[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010031u, new Vector3(-149.82837f, 15.27417f, -102.49487f), 813) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010031u, new Vector3(-149.82837f, 15.27417f, -102.49487f), 813) { AetherCurrentId = 2818230u }; - ref QuestStep reference73 = ref span44[1]; + num2++; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813) { Mount = true @@ -228560,7 +274779,9 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZC003_03386_Q1_000_000"), @@ -228570,7 +274791,8 @@ public static class AssemblyQuestLoader reference73 = obj64; obj63.Steps = list94; reference72 = obj63; - ref QuestSequence reference74 = ref span43[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -228578,79 +274800,107 @@ public static class AssemblyQuestLoader num2 = 6; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span45 = CollectionsMarshal.AsSpan(list96); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.60991f, 28.47209f, -130.60031f), 813) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.60991f, 28.47209f, -130.60031f), 813) { Mount = true }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.76884f, 32.30582f, -122.91172f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.76884f, 32.30582f, -122.91172f), 813) { DisableNavmesh = true }; - ref QuestStep reference75 = ref span45[2]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1028317u, new Vector3(-157.64093f, 49.13476f, -137.3465f), 813); - num3 = 6; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span46 = CollectionsMarshal.AsSpan(list97); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list97 = new List(num4); + CollectionsMarshal.SetCount(list97, num4); + span4 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list97; reference75 = questStep10; - span45[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.64954f, 5.779213f, -158.39209f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.64954f, 5.779213f, -158.39209f), 813) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference76 = ref span45[4]; + index2++; + ref QuestStep reference76 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1027368u, new Vector3(-120.65314f, 5.761645f, -159.77728f), 813); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span47 = CollectionsMarshal.AsSpan(list98); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list98; reference76 = questStep11; - ref QuestStep reference77 = ref span45[5]; + index2++; + ref QuestStep reference77 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1031559u, new Vector3(-194.17108f, 5.761844f, -153.79572f), 813); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span48 = CollectionsMarshal.AsSpan(list99); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span4 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list99; reference77 = questStep12; obj65.Steps = list96; reference74 = obj65; - ref QuestSequence reference78 = ref span43[3]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span49 = CollectionsMarshal.AsSpan(list100); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.97934f, 14.623874f, -136.3065f), 813); - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.54897f, 14.623859f, -121.3416f), 813) + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.97934f, 14.623874f, -136.3065f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.54897f, 14.623859f, -121.3416f), 813) { DisableNavmesh = true }; - span49[2] = new QuestStep(EInteractionType.CompleteQuest, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813); obj66.Steps = list100; reference78 = obj66; questRoot11.QuestSequence = list92; @@ -228660,13 +274910,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "liza"; questRoot12.Author = list101; - num = 4; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span50 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference79 = ref span50[0]; + index = 4; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -228674,21 +274927,27 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816); obj67.Steps = list103; reference79 = obj67; - ref QuestSequence reference80 = ref span50[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1030267u, new Vector3(-161.30316f, 34.21811f, 607.38525f), 816); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030267u, new Vector3(-161.30316f, 34.21811f, 607.38525f), 816); obj68.Steps = list104; reference80 = obj68; - ref QuestSequence reference81 = ref span50[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -228696,7 +274955,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Say, 2009997u, new Vector3(-40.116028f, 24.063354f, 739.25366f), 816) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 2009997u, new Vector3(-40.116028f, 24.063354f, 739.25366f), 816) { ChatMessage = new ChatMessage { @@ -228705,15 +274966,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list105; reference81 = obj69; - ref QuestSequence reference82 = ref span50[3]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; @@ -228726,13 +274990,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot13.Author = list107; - num = 5; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span51 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference83 = ref span51[0]; + index = 5; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -228740,78 +275007,111 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj71.Steps = list109; reference83 = obj71; - ref QuestSequence reference84 = ref span51[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span52 = CollectionsMarshal.AsSpan(list110); - span52[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-469.05124f, -0.60001665f, -194.937f), 816); - ref QuestStep reference85 = ref span52[1]; + index2 = 5; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-469.05124f, -0.60001665f, -194.937f), 816); + num2++; + ref QuestStep reference85 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010160u, new Vector3(-456.80933f, -41.153625f, -232.01343f), 816); num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span53 = CollectionsMarshal.AsSpan(list111); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list111; reference85 = questStep13; - ref QuestStep reference86 = ref span52[2]; + num2++; + ref QuestStep reference86 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2010161u, new Vector3(-341.02393f, -34.62274f, -211.4748f), 816); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span54 = CollectionsMarshal.AsSpan(list112); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + span4 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list112; reference86 = questStep14; - ref QuestStep reference87 = ref span52[3]; + num2++; + ref QuestStep reference87 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2010159u, new Vector3(-341.78687f, -56.992493f, -159.96033f), 816); num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span55 = CollectionsMarshal.AsSpan(list113); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list113); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list113; reference87 = questStep15; - ref QuestStep reference88 = ref span52[4]; + num2++; + ref QuestStep reference88 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2010158u, new Vector3(-347.43274f, -48.264343f, -120.3479f), 816); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span56 = CollectionsMarshal.AsSpan(list114); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + span4 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list114; reference88 = questStep16; obj72.Steps = list110; reference84 = obj72; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -228819,29 +275119,34 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span57 = CollectionsMarshal.AsSpan(list115); - span57[0] = new QuestStep(EInteractionType.WalkTo, 2010158u, new Vector3(-347.43274f, 0f, -120.3479f), 816) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 2010158u, new Vector3(-347.43274f, 0f, -120.3479f), 816) { DisableNavmesh = true, Mount = true }; - span57[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.7658f, 0.09470785f, -86.849434f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.7658f, 0.09470785f, -86.849434f), 816) { DisableNavmesh = true }; - span57[2] = new QuestStep(EInteractionType.Interact, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj73.Steps = list115; reference89 = obj73; - ref QuestSequence reference90 = ref span51[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span58 = CollectionsMarshal.AsSpan(list116); - ref QuestStep reference91 = ref span58[0]; + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.UseItem, 2010163u, new Vector3(-659.9985f, 38.864624f, -227.25269f), 816) { ItemId = 2002637u @@ -228849,33 +275154,47 @@ public static class AssemblyQuestLoader num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span59 = CollectionsMarshal.AsSpan(list117); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list117; reference91 = obj75; - ref QuestStep reference92 = ref span58[1]; + num2++; + ref QuestStep reference92 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.UseItem, 2010164u, new Vector3(-664.02686f, 40.66516f, -225.08588f), 816) { ItemId = 2002637u }; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span60 = CollectionsMarshal.AsSpan(list118); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + span4 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list118; reference92 = obj76; - ref QuestStep reference93 = ref span58[2]; + num2++; + ref QuestStep reference93 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.UseItem, 2010162u, new Vector3(-667.6585f, 42.74048f, -228.62598f), 816) { ItemId = 2002637u @@ -228883,18 +275202,25 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span61 = CollectionsMarshal.AsSpan(list119); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list119; reference93 = obj77; obj74.Steps = list116; reference90 = obj74; - ref QuestSequence reference94 = ref span51[4]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -228902,7 +275228,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj78.Steps = list120; reference94 = obj78; questRoot13.QuestSequence = list108; @@ -228916,13 +275244,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -228930,63 +275261,88 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2010362u, new Vector3(-622.4308f, 37.369263f, -232.3797f), 816); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010363u, new Vector3(-621.8815f, 37.338745f, -234.33282f), 816); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2010364u, new Vector3(-627.7409f, 37.094604f, -245.65503f), 816); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -228994,24 +275350,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1030839u, new Vector3(-628.1377f, 35.861557f, -238.20862f), 816); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030839u, new Vector3(-628.1377f, 35.861557f, -238.20862f), 816); obj3.Steps = list8; reference6 = obj3; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj4.Steps = list9; reference7 = obj4; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -229019,7 +275381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); obj5.Steps = list10; reference8 = obj5; questRoot.QuestSequence = list2; @@ -229029,24 +275393,30 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "liza"; questRoot2.Author = list11; - num = 5; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span6 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span6[0]; + index = 5; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816); obj6.Steps = list13; reference9 = obj6; - ref QuestSequence reference10 = ref span6[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -229054,21 +275424,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2010481u, new Vector3(238.7273f, 72.95337f, -723.72015f), 816); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010481u, new Vector3(238.7273f, 72.95337f, -723.72015f), 816); obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span6[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 2010482u, new Vector3(156.63379f, 55.588623f, -629.8467f), 816); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010482u, new Vector3(156.63379f, 55.588623f, -629.8467f), 816); obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span6[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -229076,23 +275452,30 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 2010483u, new Vector3(34.1344f, 39.902344f, -622.18665f), 816); + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010483u, new Vector3(34.1344f, 39.902344f, -622.18665f), 816); obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span6[4]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1031025u, new Vector3(-79.75891f, 37.968338f, -531.8532f), 816); - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZD101_03427_Q1_000_000"), @@ -229109,13 +275492,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "liza"; questRoot3.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span7[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -229123,18 +275509,23 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817); + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817); obj11.Steps = list21; reference15 = obj11; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Say, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817) { ChatMessage = new ChatMessage { @@ -229143,7 +275534,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list22; reference16 = obj12; - ref QuestSequence reference17 = ref span7[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -229151,18 +275543,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2009776u, new Vector3(-375.38727f, 10.0251465f, 451.65173f), 817); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009776u, new Vector3(-375.38727f, 10.0251465f, 451.65173f), 817); obj13.Steps = list23; reference17 = obj13; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817); obj14.Steps = list24; reference18 = obj14; questRoot3.QuestSequence = list20; @@ -229176,13 +275573,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -229190,63 +275590,88 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1031383u, new Vector3(569.51245f, 27.331062f, 143.69421f), 817); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1031381u, new Vector3(558.64795f, 27.378386f, 152.42236f), 817); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1031382u, new Vector3(575.1887f, 27.872107f, 161.39453f), 817); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -229254,7 +275679,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -229267,24 +275694,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 5; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 5; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj4.Steps = list11; reference7 = obj4; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -229292,34 +275725,42 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817); obj5.Steps = list12; reference8 = obj5; - ref QuestSequence reference9 = ref span6[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.35954f, -20f, -483.02176f), 817) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = 11163u; - span7[1] = 11164u; + num4 = 2; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span5 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span5[num3] = 11163u; + num3++; + span5[num3] = 11164u; obj7.KillEnemyDataIds = list14; reference10 = obj7; obj6.Steps = list13; reference9 = obj6; - ref QuestSequence reference11 = ref span6[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -229327,21 +275768,26 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { StopDistance = 7f }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span6[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -229354,13 +275800,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span8 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span8[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -229368,19 +275817,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj10.Steps = list19; reference13 = obj10; - ref QuestSequence reference14 = ref span8[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span9[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1031012u, new Vector3(395.01025f, 20.422523f, -211.81049f), 817) { Fly = true @@ -229388,64 +275841,92 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj12.CompletionQuestVariablesFlags = list21; reference15 = obj12; - ref QuestStep reference16 = ref span9[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(432.72134f, 34.13806f, -146.49078f), 817); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list22; skipConditions.StepIf = skipStepConditions; questStep4.SkipConditions = skipConditions; reference16 = questStep4; - ref QuestStep reference17 = ref span9[2]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1031150u, new Vector3(433.85962f, 34.138065f, -145.37274f), 817); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list23; reference17 = questStep5; - ref QuestStep reference18 = ref span9[3]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1031151u, new Vector3(401.20544f, 33.63778f, -104.32593f), 817); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + span4 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list24; reference18 = questStep6; obj11.Steps = list20; reference14 = obj11; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -229453,7 +275934,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3480) @@ -229467,24 +275950,30 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; questRoot4.Author = list26; - num = 10; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span14[0]; + index = 10; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj14.Steps = list28; reference20 = obj14; - ref QuestSequence reference21 = ref span14[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -229492,21 +275981,26 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) { Fly = true }; obj15.Steps = list29; reference21 = obj15; - ref QuestSequence reference22 = ref span14[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(591.2435f, 22.702421f, 85.20056f), 817) { Fly = true, @@ -229515,29 +276009,38 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - ref ComplexCombatData reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span6 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + ref ComplexCombatData reference24 = ref span6[num4]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 10285u, MinimumKillCount = 3u }; - int num4 = 6; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + int num5 = 6; + List list32 = new List(num5); + CollectionsMarshal.SetCount(list32, num5); + span4 = CollectionsMarshal.AsSpan(list32); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; obj18.CompletionQuestVariablesFlags = list32; reference24 = obj18; obj17.ComplexCombatData = list31; reference23 = obj17; obj16.Steps = list30; reference22 = obj16; - ref QuestSequence reference25 = ref span14[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -229545,27 +276048,33 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) { Fly = true }; obj19.Steps = list33; reference25 = obj19; - ref QuestSequence reference26 = ref span14[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) { Fly = true }; obj20.Steps = list34; reference26 = obj20; - ref QuestSequence reference27 = ref span14[5]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -229573,25 +276082,33 @@ public static class AssemblyQuestLoader num2 = 3; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference28 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + ref QuestStep reference28 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 2010451u, new Vector3(265.03394f, 11.306824f, 73.899414f), 817) { Fly = true }; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list36; reference28 = obj22; - ref QuestStep reference29 = ref span16[1]; + index2++; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 2010450u, new Vector3(267.20068f, 11.184814f, 30.502686f), 817) { StopDistance = 0.5f, @@ -229600,50 +276117,67 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span18 = CollectionsMarshal.AsSpan(list37); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list37; reference29 = obj23; - ref QuestStep reference30 = ref span16[2]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 2010449u, new Vector3(242.14539f, 21.86615f, -20.004639f), 817) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span19 = CollectionsMarshal.AsSpan(list38); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span4 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list38; reference30 = obj24; obj21.Steps = list35; reference27 = obj21; - ref QuestSequence reference31 = ref span14[6]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) { Fly = true }; obj25.Steps = list39; reference31 = obj25; - ref QuestSequence reference32 = ref span14[7]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 @@ -229651,7 +276185,9 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list40)[0]; + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference33 = ref span3[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(441.3478f, 11.8605385f, 172.98285f), 817) { StopDistance = 0.5f, @@ -229660,23 +276196,29 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 11165u; + span5 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span5[num4] = 11165u; obj27.KillEnemyDataIds = list41; reference33 = obj27; obj26.Steps = list40; reference32 = obj26; - ref QuestSequence reference34 = ref span14[8]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1031010u, new Vector3(441.062f, 11.948165f, 173.87659f), 817); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031010u, new Vector3(441.062f, 11.948165f, 173.87659f), 817); obj28.Steps = list42; reference34 = obj28; - ref QuestSequence reference35 = ref span14[9]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -229684,7 +276226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3481) @@ -229698,27 +276242,33 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot5.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference36 = ref span20[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031006u, new Vector3(493.55298f, -6.5553393f, -226.30658f), 817) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031006u, new Vector3(493.55298f, -6.5553393f, -226.30658f), 817) { StopDistance = 7f }; obj30.Steps = list46; reference36 = obj30; - ref QuestSequence reference37 = ref span20[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -229726,35 +276276,43 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { Fly = true }; obj31.Steps = list47; reference37 = obj31; - ref QuestSequence reference38 = ref span20[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.50095f, -20f, -481.85556f), 817) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 11166u; + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span5 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span5[num3] = 11166u; obj33.KillEnemyDataIds = list49; reference39 = obj33; obj32.Steps = list48; reference38 = obj32; - ref QuestSequence reference40 = ref span20[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -229762,21 +276320,26 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { StopDistance = 5f }; obj34.Steps = list50; reference40 = obj34; - ref QuestSequence reference41 = ref span20[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3482) @@ -229790,13 +276353,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot6.Author = list52; - num = 8; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span21 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference42 = ref span21[0]; + index = 8; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -229804,27 +276370,33 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031152u, new Vector3(465.7511f, 18.97871f, -61.08191f), 817) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031152u, new Vector3(465.7511f, 18.97871f, -61.08191f), 817) { Fly = true }; obj36.Steps = list54; reference42 = obj36; - ref QuestSequence reference43 = ref span21[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1031156u, new Vector3(160.14343f, -4.7555914f, 297.26086f), 817) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031156u, new Vector3(160.14343f, -4.7555914f, 297.26086f), 817) { Fly = true }; obj37.Steps = list55; reference43 = obj37; - ref QuestSequence reference44 = ref span21[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -229832,7 +276404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list56)[0]; + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(180.39362f, -26.65495f, 784.1922f), 817) { StopDistance = 0.5f, @@ -229841,26 +276415,32 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 11167u; + span5 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span5[num4] = 11167u; obj39.KillEnemyDataIds = list57; reference45 = obj39; obj38.Steps = list56; reference44 = obj38; - ref QuestSequence reference46 = ref span21[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1031160u, new Vector3(179.76648f, -26.785097f, 785.3054f), 817) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031160u, new Vector3(179.76648f, -26.785097f, 785.3054f), 817) { StopDistance = 5f }; obj40.Steps = list58; reference46 = obj40; - ref QuestSequence reference47 = ref span21[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 @@ -229868,40 +276448,51 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj41.Steps = list59; reference47 = obj41; - ref QuestSequence reference48 = ref span21[5]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span22 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference49 = ref span22[0]; + index2 = 4; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2010458u, new Vector3(101.15198f, -18.783936f, -672.2057f), 817) { Fly = true }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span23 = CollectionsMarshal.AsSpan(list61); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + span4 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list61; reference49 = obj43; - ref QuestStep reference50 = ref span22[1]; + num2++; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(216.41074f, 11.20001f, -712.12494f), 817) { Fly = true @@ -229911,48 +276502,69 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list62; skipConditions2.StepIf = skipStepConditions2; obj44.SkipConditions = skipConditions2; reference50 = obj44; - ref QuestStep reference51 = ref span22[2]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010457u, new Vector3(221.30151f, 11.184814f, -721.24817f), 817); - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list63 = new List(num4); + CollectionsMarshal.SetCount(list63, num4); + span4 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list63; reference51 = questStep7; - ref QuestStep reference52 = ref span22[3]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010456u, new Vector3(229.11414f, 12.802246f, -706.8437f), 817); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list64; reference52 = questStep8; obj42.Steps = list60; reference48 = obj42; - ref QuestSequence reference53 = ref span21[6]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 6 @@ -229960,21 +276572,26 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1031164u, new Vector3(169.05469f, -19.903002f, -530.2052f), 817) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031164u, new Vector3(169.05469f, -19.903002f, -530.2052f), 817) { Fly = true }; obj45.Steps = list65; reference53 = obj45; - ref QuestSequence reference54 = ref span21[7]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -229992,13 +276609,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -230006,18 +276626,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-51.720833f, -17.25763f, 37.377193f), 815) { StopDistance = 1f, @@ -230026,12 +276651,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 11103u; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 11103u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -230039,35 +276667,43 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1030980u, new Vector3(-53.75763f, -17.25763f, 35.416138f), 815) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030980u, new Vector3(-53.75763f, -17.25763f, 35.416138f), 815) { StopDistance = 5f }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref QuestStep reference6 = ref span3[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(56.450626f, -30.337545f, 103.22127f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = 11103u; + index3 = 1; + List list8 = new List(index3); + CollectionsMarshal.SetCount(list8, index3); + span4 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span4[num3] = 11103u; obj6.KillEnemyDataIds = list8; reference6 = obj6; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference7 = ref span[4]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 4 @@ -230075,21 +276711,26 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1030981u, new Vector3(56.443115f, -30.173006f, 101.76245f), 815) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030981u, new Vector3(56.443115f, -30.173006f, 101.76245f), 815) { StopDistance = 5f }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030982u, new Vector3(13.961914f, -47.887844f, 169.78711f), 815); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030982u, new Vector3(13.961914f, -47.887844f, 169.78711f), 815); obj8.Steps = list10; reference8 = obj8; questRoot.QuestSequence = list2; @@ -230099,13 +276740,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "liza"; questRoot2.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -230113,21 +276757,27 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1030759u, new Vector3(-558.9227f, 52.408985f, -188.79993f), 815); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030759u, new Vector3(-558.9227f, 52.408985f, -188.79993f), 815); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -230135,12 +276785,14 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span3 = CollectionsMarshal.AsSpan(list15); - span3[0] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815) { PickUpQuestId = new QuestId(3503) }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1030807u, new Vector3(-336.6903f, 19.24816f, 75.913574f), 815); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030807u, new Vector3(-336.6903f, 19.24816f, 75.913574f), 815); obj11.Steps = list15; reference11 = obj11; questRoot2.QuestSequence = list12; @@ -230150,24 +276802,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 4; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 4; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -230175,7 +276833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230185,15 +276845,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span4[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230203,7 +276866,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span4[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -230211,7 +276875,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030457u, new Vector3(63.370728f, -4.158061f, 143.93835f), 820) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030457u, new Vector3(63.370728f, -4.158061f, 143.93835f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230229,24 +276895,30 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span5 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span5[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820); obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span5[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -230254,7 +276926,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list25)[0]; + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(383.55106f, 4.5417395f, 602.9981f), 814) { StopDistance = 0.5f, @@ -230265,26 +276939,32 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 11087u; + span4 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span4[index3] = 11087u; obj18.KillEnemyDataIds = list26; reference18 = obj18; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference19 = ref span5[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1030458u, new Vector3(379.84277f, 5.363723f, 600.3967f), 814) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030458u, new Vector3(379.84277f, 5.363723f, 600.3967f), 814) { StopDistance = 7f }; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span5[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -230292,7 +276972,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030463u, new Vector3(-14.847046f, -6.9869757f, -124.4068f), 820) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030463u, new Vector3(-14.847046f, -6.9869757f, -124.4068f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -230310,24 +276992,30 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "liza"; questRoot5.Author = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span6 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span6[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029983u, new Vector3(-56.565247f, -4.821f, -88.059875f), 820); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029983u, new Vector3(-56.565247f, -4.821f, -88.059875f), 820); obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span6[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -230335,39 +277023,54 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span7 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference23 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1027606u, new Vector3(-50.247986f, -4.820967f, -94.65173f), 820) { StopDistance = 7f }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span8 = CollectionsMarshal.AsSpan(list33); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list33; reference23 = obj23; - ref QuestStep reference24 = ref span7[1]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1029980u, new Vector3(-81.59003f, -0.80081946f, 40.878906f), 820); num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span9 = CollectionsMarshal.AsSpan(list34); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list34; reference24 = questStep; - ref QuestStep reference25 = ref span7[2]; + index2++; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1027604u, new Vector3(76.3103f, -8.115f, -46.219604f), 820) { AethernetShortcut = new AethernetShortcut @@ -230376,34 +277079,45 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span10 = CollectionsMarshal.AsSpan(list35); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + span5 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list35; reference25 = obj24; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference26 = ref span6[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.CompleteQuest, 1029983u, new Vector3(-56.565247f, -4.821f, -88.059875f), 820); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH008_03518_Q1_000_000"), @@ -230420,13 +277134,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "liza"; questRoot6.Author = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span11 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span11[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -230434,19 +277151,23 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820); obj26.Steps = list40; reference28 = obj26; - ref QuestSequence reference29 = ref span11[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span12 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference30 = ref span12[0]; + index2 = 3; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2010114u, new Vector3(81.19324f, -10.421997f, 48.8136f), 820) { AethernetShortcut = new AethernetShortcut @@ -230455,49 +277176,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreSoutheastDerelict } }; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span13 = CollectionsMarshal.AsSpan(list42); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span5 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list42; reference30 = obj28; - ref QuestStep reference31 = ref span12[1]; + num2++; + ref QuestStep reference31 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2010116u, new Vector3(94.40759f, -8.377258f, -57.358704f), 820); num3 = 6; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span14 = CollectionsMarshal.AsSpan(list43); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list43; reference31 = questStep3; - ref QuestStep reference32 = ref span12[2]; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010115u, new Vector3(-30.167114f, -11.917358f, 106.43164f), 820); - num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span15 = CollectionsMarshal.AsSpan(list44); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + span5 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list44; reference32 = questStep4; obj27.Steps = list41; reference29 = obj27; - ref QuestSequence reference33 = ref span11[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -230505,7 +277247,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230522,24 +277266,30 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot7.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span16 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span16[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); obj30.Steps = list48; reference34 = obj30; - ref QuestSequence reference35 = ref span16[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -230547,40 +277297,55 @@ public static class AssemblyQuestLoader num2 = 3; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span17 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference36 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference36 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1027537u, new Vector3(-3.982666f, 23.1f, 27.145752f), 820); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span18 = CollectionsMarshal.AsSpan(list50); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list50; reference36 = questStep5; - ref QuestStep reference37 = ref span17[1]; + index2++; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1027554u, new Vector3(27.54248f, 82.78693f, 32.303345f), 820) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Eulmore }; - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span19 = CollectionsMarshal.AsSpan(list51); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + span5 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj32.CompletionQuestVariablesFlags = list51; reference37 = obj32; - ref QuestStep reference38 = ref span17[2]; + index2++; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1027593u, new Vector3(78.11096f, -10.682121f, 73.28906f), 820) { AethernetShortcut = new AethernetShortcut @@ -230592,31 +277357,42 @@ public static class AssemblyQuestLoader num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span20 = CollectionsMarshal.AsSpan(list52); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list52; reference38 = obj33; obj31.Steps = list49; reference35 = obj31; - ref QuestSequence reference39 = ref span16[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span6 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH010_03520_Q1_000_000"), @@ -230633,13 +277409,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot8.Author = list55; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span21 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference41 = ref span21[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -230647,18 +277426,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820); obj35.Steps = list57; reference41 = obj35; - ref QuestSequence reference42 = ref span21[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1030466u, new Vector3(40.05493f, -10.468191f, 73.258545f), 820) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030466u, new Vector3(40.05493f, -10.468191f, 73.258545f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230668,7 +277452,8 @@ public static class AssemblyQuestLoader }; obj36.Steps = list58; reference42 = obj36; - ref QuestSequence reference43 = ref span21[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -230676,7 +277461,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230693,24 +277480,30 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "liza"; questRoot9.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span22 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference44 = ref span22[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); obj38.Steps = list62; reference44 = obj38; - ref QuestSequence reference45 = ref span22[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -230718,50 +277511,72 @@ public static class AssemblyQuestLoader num2 = 4; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span23 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference46 = ref span23[0]; + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference46 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1030471u, new Vector3(88.05969f, -7.2009244f, -73.71637f), 820); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span24 = CollectionsMarshal.AsSpan(list64); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list64; reference46 = questStep7; - ref QuestStep reference47 = ref span23[1]; + index2++; + ref QuestStep reference47 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1030470u, new Vector3(98.039185f, -17.955051f, -77.10382f), 820); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span25 = CollectionsMarshal.AsSpan(list65); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + span5 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list65; reference47 = questStep8; - ref QuestStep reference48 = ref span23[2]; + index2++; + ref QuestStep reference48 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1030468u, new Vector3(39.53601f, -23.440458f, 102.4032f), 820); num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span26 = CollectionsMarshal.AsSpan(list66); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list66; reference48 = questStep9; - ref QuestStep reference49 = ref span23[3]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1030469u, new Vector3(-112.16907f, -14.506645f, -49.515564f), 820) { AethernetShortcut = new AethernetShortcut @@ -230770,29 +277585,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreNightsoilPots } }; - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span27 = CollectionsMarshal.AsSpan(list67); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + span5 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list67; reference49 = obj40; obj39.Steps = list63; reference45 = obj39; - ref QuestSequence reference50 = ref span22[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); obj41.Steps = list68; reference50 = obj41; questRoot9.QuestSequence = list61; @@ -230802,13 +277626,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot10.Author = list69; - num = 3; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference51 = ref span28[0]; + index = 3; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -230816,19 +277643,23 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820); obj42.Steps = list71; reference51 = obj42; - ref QuestSequence reference52 = ref span28[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span29 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference53 = ref span29[0]; + index2 = 4; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference53 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2010119u, new Vector3(23.697266f, -23.361572f, 121.23291f), 820) { AethernetShortcut = new AethernetShortcut @@ -230840,60 +277671,88 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span30 = CollectionsMarshal.AsSpan(list73); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list73; reference53 = obj44; - ref QuestStep reference54 = ref span29[1]; + num2++; + ref QuestStep reference54 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2010117u, new Vector3(26.596436f, -21.957764f, 130.81555f), 820); - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span31 = CollectionsMarshal.AsSpan(list74); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + span5 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list74; reference54 = questStep10; - ref QuestStep reference55 = ref span29[2]; + num2++; + ref QuestStep reference55 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2010118u, new Vector3(46.860474f, -15.884705f, 132.21936f), 820); num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span32 = CollectionsMarshal.AsSpan(list75); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list75; reference55 = questStep11; - ref QuestStep reference56 = ref span29[3]; + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2010120u, new Vector3(45.76172f, -8.773987f, 139.05542f), 820); - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span33 = CollectionsMarshal.AsSpan(list76); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span5 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list76; reference56 = questStep12; obj43.Steps = list72; reference52 = obj43; - ref QuestSequence reference57 = ref span28[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -230901,7 +277760,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230918,24 +277779,30 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "liza"; questRoot11.Author = list78; - num = 3; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span34 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference58 = ref span34[0]; + index = 3; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span2 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); obj46.Steps = list80; reference58 = obj46; - ref QuestSequence reference59 = ref span34[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -230943,22 +277810,30 @@ public static class AssemblyQuestLoader num2 = 3; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span35 = CollectionsMarshal.AsSpan(list81); - ref QuestStep reference60 = ref span35[0]; + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference60 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010123u, new Vector3(-56.199036f, -5.2339478f, -28.122437f), 820); num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span36 = CollectionsMarshal.AsSpan(list82); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list82; reference60 = questStep13; - ref QuestStep reference61 = ref span35[1]; + index2++; + ref QuestStep reference61 = ref span3[index2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 2010121u, new Vector3(-5.56958f, 82.90222f, -35.446716f), 820) { AethernetShortcut = new AethernetShortcut @@ -230967,43 +277842,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Eulmore } }; - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span37 = CollectionsMarshal.AsSpan(list83); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list83 = new List(index3); + CollectionsMarshal.SetCount(list83, index3); + span5 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list83; reference61 = obj48; - ref QuestStep reference62 = ref span35[2]; + index2++; + ref QuestStep reference62 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2010122u, new Vector3(-14.114624f, 50.980347f, 33.920776f), 820); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span38 = CollectionsMarshal.AsSpan(list84); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list84; reference62 = questStep14; obj47.Steps = list81; reference59 = obj47; - ref QuestSequence reference63 = ref span34[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); obj49.Steps = list85; reference63 = obj49; questRoot11.QuestSequence = list79; @@ -231013,13 +277904,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot12.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span39 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference64 = ref span39[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -231027,21 +277921,27 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815); obj50.Steps = list88; reference64 = obj50; - ref QuestSequence reference65 = ref span39[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1030720u, new Vector3(-464.65253f, 45.508167f, -270.4662f), 815); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030720u, new Vector3(-464.65253f, 45.508167f, -270.4662f), 815); obj51.Steps = list89; reference65 = obj51; - ref QuestSequence reference66 = ref span39[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -231049,29 +277949,36 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + ref QuestStep reference67 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(-478.15445f, 10.344208f, 191.1135f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 11106u; + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span4[num3] = 11106u; obj53.KillEnemyDataIds = list91; reference67 = obj53; obj52.Steps = list90; reference66 = obj52; - ref QuestSequence reference68 = ref span39[3]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030718u, new Vector3(-478.2025f, 10.549525f, 193.13342f), 815) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030718u, new Vector3(-478.2025f, 10.549525f, 193.13342f), 815) { StopDistance = 7f }; @@ -231084,13 +277991,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "liza"; questRoot13.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span40 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference69 = ref span40[0]; + index = 4; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -231098,25 +278008,31 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030679u, new Vector3(64.07251f, 1.7078f, 231.40308f), 819); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030679u, new Vector3(64.07251f, 1.7078f, 231.40308f), 819); obj55.Steps = list95; reference69 = obj55; - ref QuestSequence reference70 = ref span40[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj56.Steps = list96; reference70 = obj56; - ref QuestSequence reference71 = ref span40[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -231124,8 +278040,9 @@ public static class AssemblyQuestLoader num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span41 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference72 = ref span41[0]; + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1027411u, new Vector3(-771.1452f, 51.501152f, -212.32928f), 813) { Fly = true @@ -231133,43 +278050,59 @@ public static class AssemblyQuestLoader num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span42 = CollectionsMarshal.AsSpan(list98); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list98; reference72 = obj58; - ref QuestStep reference73 = ref span41[1]; + index2++; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { Fly = true }; - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span43 = CollectionsMarshal.AsSpan(list99); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + span5 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list99; reference73 = obj59; obj57.Steps = list97; reference71 = obj57; - ref QuestSequence reference74 = ref span40[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) { Fly = true, NextQuestId = new QuestId(3534) @@ -231183,13 +278116,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "liza"; questRoot14.Author = list101; - num = 4; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span44 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference75 = ref span44[0]; + index = 4; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -231197,18 +278133,23 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813); obj61.Steps = list103; reference75 = obj61; - ref QuestSequence reference76 = ref span44[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list104)[0]; + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference77 = ref span3[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-506.45068f, 3.7609627f, -19.921053f), 813) { StopDistance = 0.5f, @@ -231218,12 +278159,15 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = 11147u; + span4 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span4[index3] = 11147u; obj63.KillEnemyDataIds = list105; reference77 = obj63; obj62.Steps = list104; reference76 = obj62; - ref QuestSequence reference78 = ref span44[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -231231,15 +278175,19 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 1030682u, new Vector3(-506.4317f, 3.7609625f, -22.01886f), 813) { StopDistance = 7f }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new DialogueChoice + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span6 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH302_03534_Q1_000_000"), @@ -231249,15 +278197,18 @@ public static class AssemblyQuestLoader reference79 = obj65; obj64.Steps = list106; reference78 = obj64; - ref QuestSequence reference80 = ref span44[3]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813) { Fly = true, NextQuestId = new QuestId(3535) @@ -231271,13 +278222,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; questRoot15.Author = list109; - num = 5; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span45 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference81 = ref span45[0]; + index = 5; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -231285,24 +278239,30 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813); obj67.Steps = list111; reference81 = obj67; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1030683u, new Vector3(-689.6925f, 52.037113f, -168.5664f), 813) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030683u, new Vector3(-689.6925f, 52.037113f, -168.5664f), 813) { Fly = true }; obj68.Steps = list112; reference82 = obj68; - ref QuestSequence reference83 = ref span45[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -231310,22 +278270,27 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1030706u, new Vector3(-375.32617f, 105.92186f, -618.92126f), 813) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030706u, new Vector3(-375.32617f, 105.92186f, -618.92126f), 813) { StopDistance = 2f, Fly = true }; obj69.Steps = list113; reference83 = obj69; - ref QuestSequence reference84 = ref span45[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list114)[0]; + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference85 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 2010210u, new Vector3(-370.38226f, 103.37976f, -661.1887f), 813) { Fly = true @@ -231333,7 +278298,9 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKZH303_03535_Q3_000_000") @@ -231342,7 +278309,8 @@ public static class AssemblyQuestLoader reference85 = obj71; obj70.Steps = list114; reference84 = obj70; - ref QuestSequence reference86 = ref span45[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -231350,7 +278318,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813) { NextQuestId = new QuestId(3536) }; @@ -231363,24 +278333,30 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "liza"; questRoot16.Author = list117; - num = 6; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span46 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference87 = ref span46[0]; + index = 6; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813); obj73.Steps = list119; reference87 = obj73; - ref QuestSequence reference88 = ref span46[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -231388,36 +278364,44 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1030685u, new Vector3(-443.68658f, 9.218739f, -150.53027f), 813) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030685u, new Vector3(-443.68658f, 9.218739f, -150.53027f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj74.Steps = list120; reference88 = obj74; - ref QuestSequence reference89 = ref span46[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list121)[0]; + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2010212u, new Vector3(-395.8648f, 6.210388f, -51.895935f), 813) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 11148u; + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + span4 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span4[num3] = 11148u; obj76.KillEnemyDataIds = list122; reference90 = obj76; obj75.Steps = list121; reference89 = obj75; - ref QuestSequence reference91 = ref span46[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -231425,28 +278409,34 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2010213u, new Vector3(-298.11554f, 4.348816f, 16.189758f), 813) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010213u, new Vector3(-298.11554f, 4.348816f, 16.189758f), 813) { StopDistance = 0.5f, Fly = true }; obj77.Steps = list123; reference91 = obj77; - ref QuestSequence reference92 = ref span46[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2010510u, new Vector3(-239.9787f, 15.030029f, -196.73462f), 813) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010510u, new Vector3(-239.9787f, 15.030029f, -196.73462f), 813) { Fly = true }; obj78.Steps = list124; reference92 = obj78; - ref QuestSequence reference93 = ref span46[5]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -231454,7 +278444,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030688u, new Vector3(-659.26605f, 51.002872f, -217.30377f), 813) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030688u, new Vector3(-659.26605f, 51.002872f, -217.30377f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative @@ -231468,24 +278460,30 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "liza"; questRoot17.Author = list126; - num = 5; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span47 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference94 = ref span47[0]; + index = 5; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); obj80.Steps = list128; reference94 = obj80; - ref QuestSequence reference95 = ref span47[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -231493,30 +278491,37 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1030748u, new Vector3(-514.8852f, 334.116f, -9.262268f), 814); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030748u, new Vector3(-514.8852f, 334.116f, -9.262268f), 814); obj81.Steps = list129; reference95 = obj81; - ref QuestSequence reference96 = ref span47[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span48 = CollectionsMarshal.AsSpan(list130); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5618f, 334.116f, -15.381194f), 814) + index2 = 3; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5618f, 334.116f, -15.381194f), 814) { Mount = true }; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-518.69183f, 331.39224f, -23.225534f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-518.69183f, 331.39224f, -23.225534f), 814) { DisableNavmesh = true }; - span48[2] = new QuestStep(EInteractionType.Interact, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814); obj82.Steps = list130; reference96 = obj82; - ref QuestSequence reference97 = ref span47[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -231524,7 +278529,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list131)[0]; + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Emote, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814) { Emote = EEmote.Soothe @@ -231532,7 +278539,9 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI001_03537_Q1_000_000"), @@ -231542,15 +278551,18 @@ public static class AssemblyQuestLoader reference98 = obj84; obj83.Steps = list131; reference97 = obj83; - ref QuestSequence reference99 = ref span47[4]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); obj85.Steps = list133; reference99 = obj85; questRoot17.QuestSequence = list127; @@ -231564,13 +278576,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -231578,12 +278593,16 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814); int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q1_000_000"), @@ -231593,18 +278612,22 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1030778u, new Vector3(-429.31256f, 417.29797f, -677.2107f), 814); + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030778u, new Vector3(-429.31256f, 417.29797f, -677.2107f), 814); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -231612,12 +278635,16 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1030779u, new Vector3(-436.48438f, 417.21954f, -641.38245f), 814); - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + span4 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q3_000_000"), @@ -231627,20 +278654,25 @@ public static class AssemblyQuestLoader reference5 = questStep2; obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference7 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1030780u, new Vector3(-493.2479f, 417.1531f, -610.9866f), 814); num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q4_000_000"), @@ -231650,7 +278682,8 @@ public static class AssemblyQuestLoader reference7 = questStep3; obj4.Steps = list8; reference6 = obj4; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -231658,7 +278691,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); obj5.Steps = list10; reference8 = obj5; questRoot.QuestSequence = list2; @@ -231668,24 +278703,30 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "alydev"; questRoot2.Author = list11; - num = 5; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 5; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); obj6.Steps = list13; reference9 = obj6; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -231693,27 +278734,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814) { Fly = true }; obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.UseItem, 2010336u, new Vector3(-407.1565f, 417.8683f, -633.2036f), 814) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2010336u, new Vector3(-407.1565f, 417.8683f, -633.2036f), 814) { ItemId = 2002690u }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span2[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -231721,18 +278768,23 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814); + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814); obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span2[4]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) { Fly = true, NextQuestId = new QuestId(3558) @@ -231746,13 +278798,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "alydev"; questRoot3.Author = list18; - num = 5; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span3 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span3[0]; + index = 5; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -231760,19 +278815,23 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); - num3 = 2; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span4 = CollectionsMarshal.AsSpan(list21); - span4[0] = new DialogueChoice + index3 = 2; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + span4 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI103_03558_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKZI103_03558_A1_000_001") }; - span4[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI103_03558_Q2_000_000"), @@ -231782,21 +278841,25 @@ public static class AssemblyQuestLoader reference15 = questStep4; obj11.Steps = list20; reference14 = obj11; - ref QuestSequence reference16 = ref span3[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1030782u, new Vector3(-191.18036f, 362.9854f, -292.83594f), 814) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030782u, new Vector3(-191.18036f, 362.9854f, -292.83594f), 814) { Fly = true }; obj12.Steps = list22; reference16 = obj12; - ref QuestSequence reference17 = ref span3[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -231804,7 +278867,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814) { Fly = true, @@ -231813,23 +278878,29 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 11142u; + Span span5 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span5[index3] = 11142u; obj14.KillEnemyDataIds = list24; reference18 = obj14; obj13.Steps = list23; reference17 = obj13; - ref QuestSequence reference19 = ref span3[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814); obj15.Steps = list25; reference19 = obj15; - ref QuestSequence reference20 = ref span3[4]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -231837,7 +278908,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814) { Fly = true, Emote = EEmote.Rally, @@ -231852,24 +278925,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "alydev"; questRoot4.Author = list27; - num = 5; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span5 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span5[0]; + index = 5; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814); obj17.Steps = list29; reference21 = obj17; - ref QuestSequence reference22 = ref span5[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -231877,24 +278956,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1030775u, new Vector3(-436.72852f, 417.2178f, -640.4364f), 814) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030775u, new Vector3(-436.72852f, 417.2178f, -640.4364f), 814) { Fly = true }; obj18.Steps = list30; reference22 = obj18; - ref QuestSequence reference23 = ref span5[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1030795u, new Vector3(-493.82776f, 417.15173f, -610.3761f), 814); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030795u, new Vector3(-493.82776f, 417.15173f, -610.3761f), 814); obj19.Steps = list31; reference23 = obj19; - ref QuestSequence reference24 = ref span5[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -231902,18 +278987,23 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814); obj20.Steps = list32; reference24 = obj20; - ref QuestSequence reference25 = ref span5[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814) { NextQuestId = new QuestId(3560) }; @@ -231926,13 +279016,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "alydev"; questRoot5.Author = list34; - num = 8; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span6 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span6[0]; + index = 8; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -231940,7 +279033,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -231958,15 +279053,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list36; reference26 = obj22; - ref QuestSequence reference27 = ref span6[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -231984,7 +279082,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list37; reference27 = obj23; - ref QuestSequence reference28 = ref span6[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -231992,7 +279091,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -232010,21 +279111,25 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference29 = ref span6[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1030791u, new Vector3(-165.27051f, 352.35822f, -206.16473f), 814) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030791u, new Vector3(-165.27051f, 352.35822f, -206.16473f), 814) { Fly = true }; obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span6[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -232032,24 +279137,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2010309u, new Vector3(-109.69714f, 353.50574f, -181.65869f), 814); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010309u, new Vector3(-109.69714f, 353.50574f, -181.65869f), 814); obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference31 = ref span6[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1030803u, new Vector3(-149.46216f, 352.35822f, -199.29816f), 814) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030803u, new Vector3(-149.46216f, 352.35822f, -199.29816f), 814) { Fly = true }; obj27.Steps = list41; reference31 = obj27; - ref QuestSequence reference32 = ref span6[6]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 6 @@ -232057,7 +279168,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -232075,15 +279188,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference32 = obj28; - ref QuestSequence reference33 = ref span6[7]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030788u, new Vector3(-531.02924f, 415.2066f, -567.4983f), 814) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030788u, new Vector3(-531.02924f, 415.2066f, -567.4983f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaTomra, @@ -232109,13 +279225,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot6.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span7 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference34 = ref span7[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -232123,19 +279242,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819); obj30.Steps = list46; reference34 = obj30; - ref QuestSequence reference35 = ref span7[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span8 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference36 = ref span8[0]; + index2 = 3; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1031119u, new Vector3(80.125f, 1.4901161E-08f, 190.44775f), 819) { AethernetShortcut = new AethernetShortcut @@ -232144,49 +279267,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span9 = CollectionsMarshal.AsSpan(list48); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span6 = CollectionsMarshal.AsSpan(list48); + 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); obj32.CompletionQuestVariablesFlags = list48; reference36 = obj32; - ref QuestStep reference37 = ref span8[1]; + num2++; + ref QuestStep reference37 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1027799u, new Vector3(-74.6319f, -4.200001f, 170.00073f), 819); num3 = 6; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span10 = CollectionsMarshal.AsSpan(list49); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list49; reference37 = questStep5; - ref QuestStep reference38 = ref span8[2]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1028333u, new Vector3(-168.07812f, 1.490116E-08f, 96.14697f), 819); - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span11 = CollectionsMarshal.AsSpan(list50); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span6 = CollectionsMarshal.AsSpan(list50); + 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); questStep6.CompletionQuestVariablesFlags = list50; reference38 = questStep6; obj31.Steps = list47; reference35 = obj31; - ref QuestSequence reference39 = ref span7[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -232194,7 +279338,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232211,24 +279357,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot7.Author = list52; - num = 4; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span12 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span12[0]; + index = 4; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819); obj34.Steps = list54; reference40 = obj34; - ref QuestSequence reference41 = ref span12[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -232236,7 +279388,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232246,21 +279400,25 @@ public static class AssemblyQuestLoader }; obj35.Steps = list55; reference41 = obj35; - ref QuestSequence reference42 = ref span12[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { ItemId = 2002756u }; obj36.Steps = list56; reference42 = obj36; - ref QuestSequence reference43 = ref span12[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -232268,7 +279426,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list57)[0]; + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj38 = new QuestStep(EInteractionType.CompleteQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819) { AethernetShortcut = new AethernetShortcut @@ -232280,7 +279440,9 @@ public static class AssemblyQuestLoader num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ002_03565_Q1_000_000"), @@ -232297,24 +279459,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "liza"; questRoot8.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span13 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span13[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031036u, new Vector3(35.721313f, -4.2178183f, 150.80493f), 819); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031036u, new Vector3(35.721313f, -4.2178183f, 150.80493f), 819); obj39.Steps = list61; reference45 = obj39; - ref QuestSequence reference46 = ref span13[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -232322,24 +279490,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1031037u, new Vector3(65.32385f, 31.22887f, 151.7815f), 819); + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031037u, new Vector3(65.32385f, 31.22887f, 151.7815f), 819); obj40.Steps = list62; reference46 = obj40; - ref QuestSequence reference47 = ref span13[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(65.23219f, 31.253508f, 150.2689f), 819) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(65.23219f, 31.253508f, 150.2689f), 819) { Emote = EEmote.Welcome }; obj41.Steps = list63; reference47 = obj41; - ref QuestSequence reference48 = ref span13[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -232347,7 +279521,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031038u, new Vector3(71.30542f, 30.758999f, 141.95471f), 819); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031038u, new Vector3(71.30542f, 30.758999f, 141.95471f), 819); obj42.Steps = list64; reference48 = obj42; questRoot8.QuestSequence = list60; @@ -232357,24 +279533,30 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot9.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span14 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span14[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819); + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819); obj43.Steps = list67; reference49 = obj43; - ref QuestSequence reference50 = ref span14[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -232382,7 +279564,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1031060u, new Vector3(-148.36353f, 1.4901161E-08f, 200.42712f), 819) { AethernetShortcut = new AethernetShortcut @@ -232391,10 +279575,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new DialogueChoice + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span4 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ004_03567_Q1_000_000"), @@ -232404,15 +279590,18 @@ public static class AssemblyQuestLoader reference51 = obj45; obj44.Steps = list68; reference50 = obj44; - ref QuestSequence reference52 = ref span14[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -232430,13 +279619,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot10.Author = list71; - num = 4; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span15 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span15[0]; + index = 4; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -232444,19 +279636,23 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819); obj47.Steps = list73; reference53 = obj47; - ref QuestSequence reference54 = ref span15[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span16 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference55 = ref span16[0]; + index2 = 3; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1031427u, new Vector3(10.8185425f, -1.4707987E-11f, -56.26001f), 819) { AethernetShortcut = new AethernetShortcut @@ -232468,16 +279664,23 @@ public static class AssemblyQuestLoader num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span17 = CollectionsMarshal.AsSpan(list75); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list75; reference55 = obj49; - ref QuestStep reference56 = ref span16[1]; + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1027252u, new Vector3(-117.60132f, 38.614765f, 236.04175f), 819) { AethernetShortcut = new AethernetShortcut @@ -232486,19 +279689,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span18 = CollectionsMarshal.AsSpan(list76); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span6 = CollectionsMarshal.AsSpan(list76); + 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); obj50.CompletionQuestVariablesFlags = list76; reference56 = obj50; - span16[2] = new QuestStep(EInteractionType.Interact, 1027260u, new Vector3(-49.515564f, -36.72638f, -271.4123f), 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027260u, new Vector3(-49.515564f, -36.72638f, -271.4123f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -232509,7 +279719,8 @@ public static class AssemblyQuestLoader }; obj48.Steps = list74; reference54 = obj48; - ref QuestSequence reference57 = ref span15[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -232517,7 +279728,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232527,15 +279740,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list77; reference57 = obj51; - ref QuestSequence reference58 = ref span15[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031065u, new Vector3(101.426636f, 20.728992f, 101.8844f), 819) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031065u, new Vector3(101.426636f, 20.728992f, 101.8844f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232552,13 +279768,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot11.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span19 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference59 = ref span19[0]; + index = 6; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -232566,21 +279785,27 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818); + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818); obj53.Steps = list81; reference59 = obj53; - ref QuestSequence reference60 = ref span19[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); obj54.Steps = list82; reference60 = obj54; - ref QuestSequence reference61 = ref span19[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -232588,24 +279813,33 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span20 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference62 = ref span20[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference62 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010463u, new Vector3(340.93237f, 342.67188f, -310.47534f), 818); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span21 = CollectionsMarshal.AsSpan(list84); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list84; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span4 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ101_03588_Q2_000_000"), @@ -232613,23 +279847,32 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list85; reference62 = questStep7; - ref QuestStep reference63 = ref span20[1]; + index2++; + ref QuestStep reference63 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010464u, new Vector3(341.5426f, 342.76343f, -308.70532f), 818); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span22 = CollectionsMarshal.AsSpan(list86); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list86; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span4 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ101_03588_Q1_000_000"), @@ -232639,18 +279882,22 @@ public static class AssemblyQuestLoader reference63 = questStep8; obj55.Steps = list83; reference61 = obj55; - ref QuestSequence reference64 = ref span19[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); obj56.Steps = list88; reference64 = obj56; - ref QuestSequence reference65 = ref span19[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 @@ -232658,21 +279905,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1031017u, new Vector3(603.02124f, 348.01245f, -165.30103f), 818) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031017u, new Vector3(603.02124f, 348.01245f, -165.30103f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj57.Steps = list89; reference65 = obj57; - ref QuestSequence reference66 = ref span19[5]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031019u, new Vector3(505.88232f, 371.189f, -342.79395f), 818); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031019u, new Vector3(505.88232f, 371.189f, -342.79395f), 818); obj58.Steps = list90; reference66 = obj58; questRoot11.QuestSequence = list80; @@ -232682,13 +279934,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; questRoot12.Author = list91; - num = 6; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span23 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference67 = ref span23[0]; + index = 6; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -232696,21 +279951,27 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818); obj59.Steps = list93; reference67 = obj59; - ref QuestSequence reference68 = ref span23[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1030473u, new Vector3(-410.1778f, -260.17664f, 256.09204f), 818); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030473u, new Vector3(-410.1778f, -260.17664f, 256.09204f), 818); obj60.Steps = list94; reference68 = obj60; - ref QuestSequence reference69 = ref span23[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -232718,21 +279979,27 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1027774u, new Vector3(-365.59094f, -260.1766f, 276.9359f), 818); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027774u, new Vector3(-365.59094f, -260.1766f, 276.9359f), 818); obj61.Steps = list95; reference69 = obj61; - ref QuestSequence reference70 = ref span23[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); obj62.Steps = list96; reference70 = obj62; - ref QuestSequence reference71 = ref span23[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -232740,7 +280007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2010125u, new Vector3(-502.7085f, -250.93463f, 449.97327f), 818) { ItemId = 2002612u, @@ -232749,23 +280018,29 @@ public static class AssemblyQuestLoader num3 = 3; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span24 = CollectionsMarshal.AsSpan(list98); - span24[0] = 10846u; - span24[1] = 10847u; - span24[2] = 10848u; + span5 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span5[index3] = 10846u; + index3++; + span5[index3] = 10847u; + index3++; + span5[index3] = 10848u; obj64.KillEnemyDataIds = list98; reference72 = obj64; obj63.Steps = list97; reference71 = obj63; - ref QuestSequence reference73 = ref span23[5]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); obj65.Steps = list99; reference73 = obj65; questRoot12.QuestSequence = list92; @@ -232775,13 +280050,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "liza"; questRoot13.Author = list100; - num = 6; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span25 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference74 = ref span25[0]; + index = 6; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -232789,21 +280067,27 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj66.Steps = list102; reference74 = obj66; - ref QuestSequence reference75 = ref span25[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj67.Steps = list103; reference75 = obj67; - ref QuestSequence reference76 = ref span25[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -232811,21 +280095,27 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj68.Steps = list104; reference76 = obj68; - ref QuestSequence reference77 = ref span25[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj69.Steps = list105; reference77 = obj69; - ref QuestSequence reference78 = ref span25[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -232833,18 +280123,23 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj70.Steps = list106; reference78 = obj70; - ref QuestSequence reference79 = ref span25[5]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj71.Steps = list107; reference79 = obj71; questRoot13.QuestSequence = list101; @@ -232854,13 +280149,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot14.Author = list108; - num = 5; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span26 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference80 = ref span26[0]; + index = 5; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -232868,21 +280166,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818); obj72.Steps = list110; reference80 = obj72; - ref QuestSequence reference81 = ref span26[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1030478u, new Vector3(-654.35266f, -250.89601f, 475.76086f), 818); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030478u, new Vector3(-654.35266f, -250.89601f, 475.76086f), 818); obj73.Steps = list111; reference81 = obj73; - ref QuestSequence reference82 = ref span26[2]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -232890,32 +280194,40 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span27 = CollectionsMarshal.AsSpan(list112); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-450.6779f, -250.89601f, 400.94394f), 818); - span27[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); - span27[2] = new QuestStep(EInteractionType.Interact, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-450.6779f, -250.89601f, 400.94394f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) { StopDistance = 7f }; obj74.Steps = list112; reference82 = obj74; - ref QuestSequence reference83 = ref span26[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list113)[0]; + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-85.3181f, -281.24854f, 423.48425f), 818) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 10304u; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span5 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span5[num3] = 10304u; obj76.KillEnemyDataIds = list114; obj76.CombatItemUse = new CombatItemUse { @@ -232926,7 +280238,8 @@ public static class AssemblyQuestLoader reference84 = obj76; obj75.Steps = list113; reference83 = obj75; - ref QuestSequence reference85 = ref span26[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -232934,9 +280247,11 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span28 = CollectionsMarshal.AsSpan(list115); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) { StopDistance = 7f }; @@ -232949,24 +280264,30 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "liza"; questRoot15.Author = list116; - num = 4; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span29 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference86 = ref span29[0]; + index = 4; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028898u, new Vector3(-132.58563f, 0f, -14.023071f), 819); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028898u, new Vector3(-132.58563f, 0f, -14.023071f), 819); obj78.Steps = list118; reference86 = obj78; - ref QuestSequence reference87 = ref span29[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -232974,7 +280295,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232984,15 +280307,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list119; reference87 = obj79; - ref QuestSequence reference88 = ref span29[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Duty, null, null, 819) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 819) { DutyOptions = new DutyOptions { @@ -233001,7 +280327,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list120; reference88 = obj80; - ref QuestSequence reference89 = ref span29[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -233009,7 +280336,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819); obj81.Steps = list121; reference89 = obj81; questRoot15.QuestSequence = list117; @@ -233019,24 +280348,30 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list122); + index = 0; + span[index] = "liza"; questRoot16.Author = list122; - num = 6; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span30 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference90 = ref span30[0]; + index = 6; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + span2 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820); obj82.Steps = list124; reference90 = obj82; - ref QuestSequence reference91 = ref span30[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -233044,38 +280379,44 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span31 = CollectionsMarshal.AsSpan(list125); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818) { Fly = true, AetheryteShortcut = EAetheryteLocation.TempestMacarensesAngle }; - span31[1] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj83.Steps = list125; reference91 = obj83; - ref QuestSequence reference92 = ref span30[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span32 = CollectionsMarshal.AsSpan(list126); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818) { Fly = true }; - span32[1] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) { StopDistance = 7f }; obj84.Steps = list126; reference92 = obj84; - ref QuestSequence reference93 = ref span30[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -233083,7 +280424,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Duty, null, null, 818) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 818) { DutyOptions = new DutyOptions { @@ -233092,23 +280435,27 @@ public static class AssemblyQuestLoader }; obj85.Steps = list127; reference93 = obj85; - ref QuestSequence reference94 = ref span30[4]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span33 = CollectionsMarshal.AsSpan(list128); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818); - span33[1] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) { StopDistance = 7f }; obj86.Steps = list128; reference94 = obj86; - ref QuestSequence reference95 = ref span30[5]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -233116,7 +280463,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -233134,21 +280483,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot17.Author = list130; - num = 3; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span34 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference96 = ref span34[0]; + index = 3; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031348u, new Vector3(47.13501f, 1.4901161E-08f, 191.5769f), 819) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031348u, new Vector3(47.13501f, 1.4901161E-08f, 191.5769f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -233159,7 +280513,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list132; reference96 = obj88; - ref QuestSequence reference97 = ref span34[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -233167,7 +280522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -233178,15 +280535,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list133; reference97 = obj89; - ref QuestSequence reference98 = ref span34[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(3598) @@ -233200,13 +280560,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "liza"; questRoot18.Author = list135; - num = 2; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span35 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference99 = ref span35[0]; + index = 2; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -233214,7 +280577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -233228,15 +280593,18 @@ public static class AssemblyQuestLoader }; obj91.Steps = list137; reference99 = obj91; - ref QuestSequence reference100 = ref span35[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(3599) @@ -233250,13 +280618,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot19.Author = list139; - num = 2; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span36 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference101 = ref span36[0]; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -233264,7 +280635,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -233278,15 +280651,18 @@ public static class AssemblyQuestLoader }; obj93.Steps = list141; reference101 = obj93; - ref QuestSequence reference102 = ref span36[1]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(3600) @@ -233304,13 +280680,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -233318,7 +280697,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -233332,15 +280713,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(4176) @@ -233354,13 +280738,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list5); + index = 0; + span[index] = "liza"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + span2 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -233368,7 +280755,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030408u, new Vector3(-101.12158f, -9.99916f, -62.82141f), 820) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030408u, new Vector3(-101.12158f, -9.99916f, -62.82141f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -233386,15 +280775,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030409u, new Vector3(116.53308f, 55.329205f, 816.7085f), 814) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030409u, new Vector3(116.53308f, 55.329205f, 816.7085f), 814) { AethernetShortcut = new AethernetShortcut { @@ -233412,12 +280804,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot3.Author = list9; - num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - ref QuestSequence reference5 = ref CollectionsMarshal.AsSpan(list10)[0]; + index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -233425,7 +280821,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027847u, new Vector3(-76.34094f, 20.04979f, -110.97894f), 819) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027847u, new Vector3(-76.34094f, 20.04979f, -110.97894f), 819) { StopDistance = 5f }; @@ -233438,20 +280836,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "liza"; questRoot4.Author = list12; - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list13)[0]; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); obj6.Steps = list14; reference6 = obj6; questRoot4.QuestSequence = list13; @@ -233461,12 +280865,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot5.Author = list15; - num = 1; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - ref QuestSequence reference7 = ref CollectionsMarshal.AsSpan(list16)[0]; + index = 1; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -233474,7 +280882,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031106u, new Vector3(-8.255188f, -3.1851232E-07f, 10.543945f), 819); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031106u, new Vector3(-8.255188f, -3.1851232E-07f, 10.543945f), 819); obj7.Steps = list17; reference7 = obj7; questRoot5.QuestSequence = list16; @@ -233484,27 +280894,33 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; questRoot6.Author = list18; - num = 6; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span3 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference8 = ref span3[0]; + index = 6; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj8.Steps = list20; reference8 = obj8; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -233512,24 +280928,30 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2009895u, new Vector3(26.04712f, -0.015319824f, 73.92993f), 819); + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009895u, new Vector3(26.04712f, -0.015319824f, 73.92993f), 819); obj9.Steps = list21; reference9 = obj9; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 2009896u, new Vector3(-224.445f, 21.377869f, -58.06067f), 819) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009896u, new Vector3(-224.445f, 21.377869f, -58.06067f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj10.Steps = list22; reference10 = obj10; - ref QuestSequence reference11 = ref span3[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -233537,18 +280959,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2009897u, new Vector3(-224.47546f, 21.22528f, 58.03003f), 819); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009897u, new Vector3(-224.47546f, 21.22528f, 58.03003f), 819); obj11.Steps = list23; reference11 = obj11; - ref QuestSequence reference12 = ref span3[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj13 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029599u, new Vector3(-107.0116f, 20f, 12.619202f), 819) { StopDistance = 5f @@ -233557,16 +280984,20 @@ public static class AssemblyQuestLoader int num3 = 3; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span4 = CollectionsMarshal.AsSpan(list25); - span4[0] = "(phase 1) AI gets stuck on trees/posts/walls."; - span4[1] = "(phase 1) AI will never reach the Ostall Imperative, it instead walks circles around Radisca's Round even with all enemies dead."; - span4[2] = "(phase 2) AI will still try to walk to Radisca's Round, but (usually) prioritizes fighting enemies."; + span = CollectionsMarshal.AsSpan(list25); + int num4 = 0; + span[num4] = "(phase 1) AI gets stuck on trees/posts/walls."; + num4++; + span[num4] = "(phase 1) AI will never reach the Ostall Imperative, it instead walks circles around Radisca's Round even with all enemies dead."; + num4++; + span[num4] = "(phase 2) AI will still try to walk to Radisca's Round, but (usually) prioritizes fighting enemies."; singlePlayerDutyOptions.Notes = list25; obj13.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference13 = obj13; obj12.Steps = list24; reference12 = obj12; - ref QuestSequence reference14 = ref span3[5]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -233574,7 +281005,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); obj14.Steps = list26; reference14 = obj14; questRoot6.QuestSequence = list19; @@ -233584,24 +281017,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "liza"; questRoot7.Author = list27; - num = 3; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span5 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference15 = ref span5[0]; + index = 3; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); obj15.Steps = list29; reference15 = obj15; - ref QuestSequence reference16 = ref span5[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -233609,25 +281048,33 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span6 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference17 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1030314u, new Vector3(-690.0587f, 52.7832f, -302.20496f), 813) { Fly = true }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span7 = CollectionsMarshal.AsSpan(list31); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span4 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list31; reference17 = obj17; - ref QuestStep reference18 = ref span6[1]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1030313u, new Vector3(-649.13403f, 53.2081f, -178.08807f), 813) { Fly = true @@ -233635,45 +281082,61 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span8 = CollectionsMarshal.AsSpan(list32); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list32; reference18 = obj18; - ref QuestStep reference19 = ref span6[2]; + index2++; + ref QuestStep reference19 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030312u, new Vector3(-694.0261f, 52.60457f, -124.74249f), 813); - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span9 = CollectionsMarshal.AsSpan(list33); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span4 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list33; reference19 = questStep; obj16.Steps = list30; reference16 = obj16; - ref QuestSequence reference20 = ref span5[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span10 = CollectionsMarshal.AsSpan(list34); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.03015f, 52.60457f, -139.54802f), 813) + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.03015f, 52.60457f, -139.54802f), 813) { Mount = true }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1029606u, new Vector3(-734.5541f, 52.60457f, -147.1123f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029606u, new Vector3(-734.5541f, 52.60457f, -147.1123f), 813) { Fly = true }; @@ -233686,13 +281149,16 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "liza"; questRoot8.Author = list35; - num = 6; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span11 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference21 = ref span11[0]; + index = 6; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -233700,27 +281166,33 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030587u, new Vector3(-728.0537f, 52.604565f, -146.3493f), 813) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030587u, new Vector3(-728.0537f, 52.604565f, -146.3493f), 813) { StopDistance = 5f }; obj20.Steps = list37; reference21 = obj20; - ref QuestSequence reference22 = ref span11[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1029607u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029607u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj21.Steps = list38; reference22 = obj21; - ref QuestSequence reference23 = ref span11[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -233728,7 +281200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) { AethernetShortcut = new AethernetShortcut { @@ -233738,15 +281212,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list39; reference23 = obj22; - ref QuestSequence reference24 = ref span11[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list40)[0]; + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Emote, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) { Emote = EEmote.Poke @@ -233754,7 +281231,9 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD103_03608_Q1_000_000"), @@ -233764,7 +281243,8 @@ public static class AssemblyQuestLoader reference25 = obj24; obj23.Steps = list40; reference24 = obj23; - ref QuestSequence reference26 = ref span11[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -233772,46 +281252,63 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span12 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference27 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2009900u, new Vector3(-136.64453f, -46.00598f, -183.67291f), 819); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span13 = CollectionsMarshal.AsSpan(list43); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list43 = new List(num4); + CollectionsMarshal.SetCount(list43, num4); + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list43; reference27 = questStep2; - ref QuestStep reference28 = ref span12[1]; + index2++; + ref QuestStep reference28 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009899u, new Vector3(-140.97815f, -44.75476f, -156.66437f), 819); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span14 = CollectionsMarshal.AsSpan(list44); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list44; reference28 = questStep3; obj25.Steps = list42; reference26 = obj25; - ref QuestSequence reference29 = ref span11[5]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -233824,13 +281321,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot9.Author = list46; - num = 7; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span15 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference30 = ref span15[0]; + index = 7; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -233838,28 +281338,35 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029853u, new Vector3(-30.991089f, -0.6499998f, -49.69867f), 819); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029853u, new Vector3(-30.991089f, -0.6499998f, -49.69867f), 819); obj27.Steps = list48; reference30 = obj27; - ref QuestSequence reference31 = ref span15[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844 }; - ref QuestStep reference32 = ref span16[1]; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + num4 = 1; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + span5 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD104_03609_Q1_000_000"), @@ -233869,7 +281376,8 @@ public static class AssemblyQuestLoader reference32 = questStep4; obj28.Steps = list49; reference31 = obj28; - ref QuestSequence reference33 = ref span15[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -233877,27 +281385,33 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1029597u, new Vector3(2.4871826f, 0f, 1.5106201f), 844) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029597u, new Vector3(2.4871826f, 0f, 1.5106201f), 844) { StopDistance = 7f }; obj29.Steps = list51; reference33 = obj29; - ref QuestSequence reference34 = ref span15[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2009903u, new Vector3(-177.56934f, -0.015319824f, -0.38153076f), 819) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009903u, new Vector3(-177.56934f, -0.015319824f, -0.38153076f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj30.Steps = list52; reference34 = obj30; - ref QuestSequence reference35 = ref span15[4]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -233905,29 +281419,35 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span17 = CollectionsMarshal.AsSpan(list53); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.00786f, -3.0897782f, -0.36405885f), 819); - span17[1] = new QuestStep(EInteractionType.Interact, 1029611u, new Vector3(576.95886f, 6.6976085f, 636.71313f), 813) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.00786f, -3.0897782f, -0.36405885f), 819); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029611u, new Vector3(576.95886f, 6.6976085f, 636.71313f), 813) { Fly = true }; obj31.Steps = list53; reference35 = obj31; - ref QuestSequence reference36 = ref span15[5]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1028305u, new Vector3(525.65796f, -5.2326922f, 854.2457f), 813) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028305u, new Vector3(525.65796f, -5.2326922f, 854.2457f), 813) { Fly = true }; obj32.Steps = list54; reference36 = obj32; - ref QuestSequence reference37 = ref span15[6]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -233935,7 +281455,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029614u, new Vector3(-554.1314f, 35.800797f, -669.70325f), 815); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029614u, new Vector3(-554.1314f, 35.800797f, -669.70325f), 815); obj33.Steps = list55; reference37 = obj33; questRoot9.QuestSequence = list47; @@ -233945,24 +281467,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot10.Author = list56; - num = 4; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span18 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference38 = ref span18[0]; + index = 4; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029615u, new Vector3(-556.69495f, 36.586422f, -670.06946f), 815); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029615u, new Vector3(-556.69495f, 36.586422f, -670.06946f), 815); obj34.Steps = list58; reference38 = obj34; - ref QuestSequence reference39 = ref span18[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -233970,63 +281498,88 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); obj35.Steps = list59; reference39 = obj35; - ref QuestSequence reference40 = ref span18[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span19 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference41 = ref span19[0]; + index2 = 3; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1027918u, new Vector3(-389.76123f, -17.724838f, -586.1448f), 815); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span20 = CollectionsMarshal.AsSpan(list61); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list61; reference41 = questStep5; - ref QuestStep reference42 = ref span19[1]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1027919u, new Vector3(-404.50146f, -17.85281f, -549.95044f), 815); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span21 = CollectionsMarshal.AsSpan(list62); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span4 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list62; reference42 = questStep6; - ref QuestStep reference43 = ref span19[2]; + num2++; + ref QuestStep reference43 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1027917u, new Vector3(-448.3559f, -20.016521f, -554.6807f), 815); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list63; reference43 = questStep7; obj36.Steps = list60; reference40 = obj36; - ref QuestSequence reference44 = ref span18[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -234034,12 +281587,16 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list64)[0]; + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1029617u, new Vector3(-419.39423f, -20.145794f, -578.88153f), 815); - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + span5 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD105_03610_Q1_000_000"), @@ -234056,24 +281613,30 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot11.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span23 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span23[0]; + index = 7; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); obj38.Steps = list68; reference46 = obj38; - ref QuestSequence reference47 = ref span23[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -234081,21 +281644,27 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1030947u, new Vector3(-461.9364f, -1.2183915f, -372.06073f), 815); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030947u, new Vector3(-461.9364f, -1.2183915f, -372.06073f), 815); obj39.Steps = list69; reference47 = obj39; - ref QuestSequence reference48 = ref span23[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1029620u, new Vector3(-2.0905762f, 45.61908f, -583.48975f), 815); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029620u, new Vector3(-2.0905762f, 45.61908f, -583.48975f), 815); obj40.Steps = list70; reference48 = obj40; - ref QuestSequence reference49 = ref span23[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -234103,63 +281672,88 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span24 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference50 = ref span24[0]; + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2009906u, new Vector3(-0.7172241f, 48.722046f, -529.80853f), 815); num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span25 = CollectionsMarshal.AsSpan(list72); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list72; reference50 = questStep9; - ref QuestStep reference51 = ref span24[1]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2009904u, new Vector3(19.821411f, 46.189087f, -575.0973f), 815); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span26 = CollectionsMarshal.AsSpan(list73); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + span4 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list73; reference51 = questStep10; - ref QuestStep reference52 = ref span24[2]; + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009905u, new Vector3(13.443176f, 47.89807f, -618.12775f), 815); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span27 = CollectionsMarshal.AsSpan(list74); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list74; reference52 = questStep11; obj41.Steps = list71; reference49 = obj41; - ref QuestSequence reference53 = ref span23[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1029622u, new Vector3(80.338745f, 45.622585f, -641.5351f), 815); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029622u, new Vector3(80.338745f, 45.622585f, -641.5351f), 815); obj42.Steps = list75; reference53 = obj42; - ref QuestSequence reference54 = ref span23[5]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -234167,28 +281761,35 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list76)[0]; + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 1029623u, new Vector3(-62.760437f, 45.619083f, -606.3783f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 10882u; + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span6 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span6[num3] = 10882u; obj44.KillEnemyDataIds = list77; reference55 = obj44; obj43.Steps = list76; reference54 = obj43; - ref QuestSequence reference56 = ref span23[6]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029624u, new Vector3(90.196045f, 45.72853f, -598.90137f), 815); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029624u, new Vector3(90.196045f, 45.72853f, -598.90137f), 815); obj45.Steps = list78; reference56 = obj45; questRoot11.QuestSequence = list67; @@ -234198,13 +281799,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot12.Author = list79; - num = 8; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span28 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference57 = ref span28[0]; + index = 8; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -234212,24 +281816,30 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029629u, new Vector3(88.48706f, 45.737045f, -595.9106f), 815) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029629u, new Vector3(88.48706f, 45.737045f, -595.9106f), 815) { StopDistance = 7f }; obj46.Steps = list81; reference57 = obj46; - ref QuestSequence reference58 = ref span28[1]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1029631u, new Vector3(-94.65173f, 41.257984f, -537.59064f), 815); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029631u, new Vector3(-94.65173f, 41.257984f, -537.59064f), 815); obj47.Steps = list82; reference58 = obj47; - ref QuestSequence reference59 = ref span28[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -234237,23 +281847,28 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1029632u, new Vector3(-136.36993f, 28.480484f, -374.99048f), 815); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029632u, new Vector3(-136.36993f, 28.480484f, -374.99048f), 815); obj48.Steps = list83; reference59 = obj48; - ref QuestSequence reference60 = ref span28[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span29 = CollectionsMarshal.AsSpan(list84); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-158.38751f, 25.202963f, -285.0746f), 815) + index2 = 2; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-158.38751f, 25.202963f, -285.0746f), 815) { Sprint = true }; - ref QuestStep reference61 = ref span29[1]; + num2++; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.48285f, 18.86909f, -244.22473f), 815) { StopDistance = 1f, @@ -234262,12 +281877,15 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 11138u; + span6 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span6[num4] = 11138u; obj50.KillEnemyDataIds = list85; reference61 = obj50; obj49.Steps = list84; reference60 = obj49; - ref QuestSequence reference62 = ref span28[4]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -234275,24 +281893,30 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1029633u, new Vector3(-278.03473f, 19.067781f, -249.19507f), 815) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029633u, new Vector3(-278.03473f, 19.067781f, -249.19507f), 815) { StopDistance = 7f }; obj51.Steps = list86; reference62 = obj51; - ref QuestSequence reference63 = ref span28[5]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1029634u, new Vector3(-479.7895f, 45.16138f, -213.6416f), 815); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029634u, new Vector3(-479.7895f, 45.16138f, -213.6416f), 815); obj52.Steps = list87; reference63 = obj52; - ref QuestSequence reference64 = ref span28[6]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 6 @@ -234300,18 +281924,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1029635u, new Vector3(-479.45374f, 47.777702f, -189.77649f), 815); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029635u, new Vector3(-479.45374f, 47.777702f, -189.77649f), 815); obj53.Steps = list88; reference64 = obj53; - ref QuestSequence reference65 = ref span28[7]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); obj54.Steps = list89; reference65 = obj54; questRoot12.QuestSequence = list80; @@ -234321,13 +281950,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "liza"; questRoot13.Author = list90; - num = 7; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span30 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference66 = ref span30[0]; + index = 7; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -234335,26 +281967,32 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); obj55.Steps = list92; reference66 = obj55; - ref QuestSequence reference67 = ref span30[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span31 = CollectionsMarshal.AsSpan(list93); - span31[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengTwine }; - span31[1] = new QuestStep(EInteractionType.Interact, 1029640u, new Vector3(-545.31165f, 45.512848f, -230.6402f), 815); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029640u, new Vector3(-545.31165f, 45.512848f, -230.6402f), 815); obj56.Steps = list93; reference67 = obj56; - ref QuestSequence reference68 = ref span30[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -234362,16 +282000,20 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list94)[0]; + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + ref QuestStep reference69 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-410.60504f, 46.19129f, -245.38031f), 815) { StopDistance = 2f, ItemId = 2002559u }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span5 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD108_03613_Q1_000_000"), @@ -234381,26 +282023,31 @@ public static class AssemblyQuestLoader reference69 = obj58; obj57.Steps = list94; reference68 = obj57; - ref QuestSequence reference70 = ref span30[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span32 = CollectionsMarshal.AsSpan(list96); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815); - span32[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010050u, new Vector3(-343.80103f, 46.98242f, -235.43152f), 815) + index2 = 4; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010050u, new Vector3(-343.80103f, 46.98242f, -235.43152f), 815) { DisableNavmesh = true, AetherCurrentId = 2818259u }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815) { DisableNavmesh = true }; - ref QuestStep reference71 = ref span32[3]; + num2++; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815) { StopDistance = 2f, @@ -234409,7 +282056,9 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD108_03613_Q2_000_000"), @@ -234419,7 +282068,8 @@ public static class AssemblyQuestLoader reference71 = obj60; obj59.Steps = list96; reference70 = obj59; - ref QuestSequence reference72 = ref span30[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 @@ -234427,87 +282077,118 @@ public static class AssemblyQuestLoader num2 = 3; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span33 = CollectionsMarshal.AsSpan(list98); - ref QuestStep reference73 = ref span33[0]; + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, 2009910u, new Vector3(-170.48907f, 46.189087f, -279.56055f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = 10883u; + num4 = 1; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + span6 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span6[num3] = 10883u; obj62.KillEnemyDataIds = list99; num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span34 = CollectionsMarshal.AsSpan(list100); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj62.CompletionQuestVariablesFlags = list100; reference73 = obj62; - ref QuestStep reference74 = ref span33[1]; + index2++; + ref QuestStep reference74 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2009911u, new Vector3(-181.5061f, 46.189087f, -362.6917f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 10883u; + num4 = 1; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span6 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span6[num3] = 10883u; obj63.KillEnemyDataIds = list101; num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span35 = CollectionsMarshal.AsSpan(list102); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list102; reference74 = obj63; - ref QuestStep reference75 = ref span33[2]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2009912u, new Vector3(-127.58075f, 45.914307f, -456.59576f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 10883u; + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span6 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span6[num3] = 10883u; obj64.KillEnemyDataIds = list103; num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span36 = CollectionsMarshal.AsSpan(list104); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list104; reference75 = obj64; obj61.Steps = list98; reference72 = obj61; - ref QuestSequence reference76 = ref span30[5]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1029642u, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029642u, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815); obj65.Steps = list105; reference76 = obj65; - ref QuestSequence reference77 = ref span30[6]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -234515,7 +282196,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -234528,24 +282211,30 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot14.Author = list107; - num = 4; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span37 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference78 = ref span37[0]; + index = 4; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815); obj67.Steps = list109; reference78 = obj67; - ref QuestSequence reference79 = ref span37[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -234553,26 +282242,33 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1029645u, new Vector3(-503.16626f, 45.71098f, -258.32f), 815); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029645u, new Vector3(-503.16626f, 45.71098f, -258.32f), 815); obj68.Steps = list110; reference79 = obj68; - ref QuestSequence reference80 = ref span37[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list111)[0]; + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference81 = ref span3[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-395.11795f, 24.01915f, -200.26707f), 815) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new ComplexCombatData + num4 = 1; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span7 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 10347u, MinimumKillCount = 3u, @@ -234583,7 +282279,8 @@ public static class AssemblyQuestLoader reference81 = obj70; obj69.Steps = list111; reference80 = obj69; - ref QuestSequence reference82 = ref span37[3]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -234591,7 +282288,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); obj71.Steps = list113; reference82 = obj71; questRoot14.QuestSequence = list108; @@ -234601,27 +282300,33 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot15.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span38 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference83 = ref span38[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030569u, new Vector3(-504.47852f, 45.822144f, -250.44635f), 815) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030569u, new Vector3(-504.47852f, 45.822144f, -250.44635f), 815) { StopDistance = 5f }; obj72.Steps = list116; reference83 = obj72; - ref QuestSequence reference84 = ref span38[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -234629,24 +282334,30 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1029639u, new Vector3(-478.6908f, 47.777702f, -191.36346f), 815); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029639u, new Vector3(-478.6908f, 47.777702f, -191.36346f), 815); obj73.Steps = list117; reference84 = obj73; - ref QuestSequence reference85 = ref span38[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1029649u, new Vector3(-549.5842f, 49.964603f, -189.04407f), 815) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029649u, new Vector3(-549.5842f, 49.964603f, -189.04407f), 815) { StopDistance = 5f }; obj74.Steps = list118; reference85 = obj74; - ref QuestSequence reference86 = ref span38[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -234654,7 +282365,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); obj75.Steps = list119; reference86 = obj75; questRoot15.QuestSequence = list115; @@ -234664,24 +282377,30 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; questRoot16.Author = list120; - num = 7; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span39 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference87 = ref span39[0]; + index = 7; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); obj76.Steps = list122; reference87 = obj76; - ref QuestSequence reference88 = ref span39[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -234689,26 +282408,32 @@ public static class AssemblyQuestLoader num2 = 2; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span40 = CollectionsMarshal.AsSpan(list123); - span40[0] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815) { PickUpQuestId = new QuestId(3511) }; - span40[1] = new QuestStep(EInteractionType.Interact, 1029756u, new Vector3(-344.96075f, 18.147886f, 40.66516f), 815); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029756u, new Vector3(-344.96075f, 18.147886f, 40.66516f), 815); obj77.Steps = list123; reference88 = obj77; - ref QuestSequence reference89 = ref span39[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815); obj78.Steps = list124; reference89 = obj78; - ref QuestSequence reference90 = ref span39[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -234716,24 +282441,30 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815) { StopDistance = 7f }; obj79.Steps = list125; reference90 = obj79; - ref QuestSequence reference91 = ref span39[4]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2009913u, new Vector3(-641.4435f, -1.4191895f, 147.29529f), 815); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009913u, new Vector3(-641.4435f, -1.4191895f, 147.29529f), 815); obj80.Steps = list126; reference91 = obj80; - ref QuestSequence reference92 = ref span39[5]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -234741,12 +282472,16 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list127)[0]; + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815); num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD111_03616_Q1_000_001"), @@ -234756,15 +282491,18 @@ public static class AssemblyQuestLoader reference93 = questStep12; obj81.Steps = list127; reference92 = obj81; - ref QuestSequence reference94 = ref span39[6]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) { StopDistance = 7f }; @@ -234777,13 +282515,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot17.Author = list130; - num = 6; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span41 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference95 = ref span41[0]; + index = 6; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -234791,24 +282532,30 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) { StopDistance = 7f }; obj83.Steps = list132; reference95 = obj83; - ref QuestSequence reference96 = ref span41[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj84.Steps = list133; reference96 = obj84; - ref QuestSequence reference97 = ref span41[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -234816,36 +282563,47 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2010009u, new Vector3(-321.3092f, 20.004517f, 99.83972f), 815); + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010009u, new Vector3(-321.3092f, 20.004517f, 99.83972f), 815); obj85.Steps = list134; reference97 = obj85; - ref QuestSequence reference98 = ref span41[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span42 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference99 = ref span42[0]; + index2 = 3; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.UseItem, 2009918u, new Vector3(-453.08612f, 11.703674f, 185.5039f), 815) { ItemId = 2002562u }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span43 = CollectionsMarshal.AsSpan(list136); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + span4 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list136; reference99 = obj87; - ref QuestStep reference100 = ref span42[1]; + num2++; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj88 = new QuestStep(EInteractionType.UseItem, 2009916u, new Vector3(-610.4677f, -0.65618896f, 135.9425f), 815) { ItemId = 2002562u @@ -234853,35 +282611,49 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span44 = CollectionsMarshal.AsSpan(list137); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj88.CompletionQuestVariablesFlags = list137; reference100 = obj88; - ref QuestStep reference101 = ref span42[2]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 2009917u, new Vector3(-426.65753f, 17.196838f, 5.142273f), 815) { ItemId = 2002562u }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span45 = CollectionsMarshal.AsSpan(list138); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + span4 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list138; reference101 = obj89; obj86.Steps = list135; reference98 = obj86; - ref QuestSequence reference102 = ref span41[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 4 @@ -234889,8 +282661,9 @@ public static class AssemblyQuestLoader num2 = 7; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span46 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference103 = ref span46[0]; + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 2010277u, new Vector3(-411.0628f, 16.891724f, 9.536865f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234898,21 +282671,30 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list140); + num4 = 0; + span6[num4] = 10884u; obj91.KillEnemyDataIds = list140; - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span47 = CollectionsMarshal.AsSpan(list141); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + span4 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list141; reference103 = obj91; - ref QuestStep reference104 = ref span46[1]; + index2++; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, 2010279u, new Vector3(-492.8512f, 10.574402f, 9.4453125f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234920,21 +282702,30 @@ public static class AssemblyQuestLoader num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span6[num4] = 10884u; obj92.KillEnemyDataIds = list142; - num3 = 6; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span48 = CollectionsMarshal.AsSpan(list143); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + span4 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list143; reference104 = obj92; - ref QuestStep reference105 = ref span46[2]; + index2++; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, 2010276u, new Vector3(-580.89575f, 6.088318f, 119.79846f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234942,21 +282733,30 @@ public static class AssemblyQuestLoader num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span6[num4] = 10884u; obj93.KillEnemyDataIds = list144; - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span49 = CollectionsMarshal.AsSpan(list145); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + span4 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list145; reference105 = obj93; - ref QuestStep reference106 = ref span46[3]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, 2010275u, new Vector3(-589.1356f, 1.7547607f, 179.18665f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234964,21 +282764,30 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list146); + num4 = 0; + span6[num4] = 10884u; obj94.KillEnemyDataIds = list146; - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span50 = CollectionsMarshal.AsSpan(list147); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list147 = new List(num4); + CollectionsMarshal.SetCount(list147, num4); + span4 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list147; reference106 = obj94; - ref QuestStep reference107 = ref span46[4]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2010274u, new Vector3(-627.039f, 0.93078613f, 131.45642f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234986,21 +282795,30 @@ public static class AssemblyQuestLoader num3 = 1; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span6[num4] = 10884u; obj95.KillEnemyDataIds = list148; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span51 = CollectionsMarshal.AsSpan(list149); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span4 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list149; reference107 = obj95; - ref QuestStep reference108 = ref span46[5]; + index2++; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2010281u, new Vector3(-503.0747f, 10.666016f, 191.85156f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -235008,21 +282826,30 @@ public static class AssemblyQuestLoader num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span6[num4] = 10884u; obj96.KillEnemyDataIds = list150; - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span52 = CollectionsMarshal.AsSpan(list151); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + span4 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list151; reference108 = obj96; - ref QuestStep reference109 = ref span46[6]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Combat, 2010283u, new Vector3(-419.21112f, 11.9782715f, 181.41443f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -235030,31 +282857,42 @@ public static class AssemblyQuestLoader num3 = 1; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = 10884u; + span6 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span6[num4] = 10884u; obj97.KillEnemyDataIds = list152; - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span53 = CollectionsMarshal.AsSpan(list153); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + span4 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list153; reference109 = obj97; obj90.Steps = list139; reference102 = obj90; - ref QuestSequence reference110 = ref span41[5]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj98.Steps = list154; reference110 = obj98; questRoot17.QuestSequence = list131; @@ -235064,13 +282902,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot18.Author = list155; - num = 4; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span54 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference111 = ref span54[0]; + index = 4; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -235078,24 +282919,30 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj99.Steps = list157; reference111 = obj99; - ref QuestSequence reference112 = ref span54[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1029754u, new Vector3(-543.6942f, 49.964603f, -172.47278f), 815) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029754u, new Vector3(-543.6942f, 49.964603f, -172.47278f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj100.Steps = list158; reference112 = obj100; - ref QuestSequence reference113 = ref span54[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -235103,18 +282950,23 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); obj101.Steps = list159; reference113 = obj101; - ref QuestSequence reference114 = ref span54[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029638u, new Vector3(-484.48926f, 45.553265f, -212.29883f), 815); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029638u, new Vector3(-484.48926f, 45.553265f, -212.29883f), 815); obj102.Steps = list160; reference114 = obj102; questRoot18.QuestSequence = list156; @@ -235124,13 +282976,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot19.Author = list161; - num = 4; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span55 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference115 = ref span55[0]; + index = 4; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -235138,29 +282993,35 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029765u, new Vector3(-455.40552f, 45.692944f, -240.52802f), 815); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029765u, new Vector3(-455.40552f, 45.692944f, -240.52802f), 815); obj103.Steps = list163; reference115 = obj103; - ref QuestSequence reference116 = ref span55[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span56 = CollectionsMarshal.AsSpan(list164); - span56[0] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815) { PickUpQuestId = new QuestId(3525) }; - span56[1] = new QuestStep(EInteractionType.Interact, 1029768u, new Vector3(7.9804688f, 45.619083f, -583.7339f), 815) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029768u, new Vector3(7.9804688f, 45.619083f, -583.7339f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj104.Steps = list164; reference116 = obj104; - ref QuestSequence reference117 = ref span55[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -235168,27 +283029,34 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list165)[0]; + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + ref QuestStep reference118 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029771u, new Vector3(5.8136597f, 45.61908f, -591.577f), 815); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = "(before Ran'jit wears the veil) AI doesn't pull, doesn't attack and VBM doesn't recognize any AOEs."; + span = CollectionsMarshal.AsSpan(list166); + num4 = 0; + span[num4] = "(before Ran'jit wears the veil) AI doesn't pull, doesn't attack and VBM doesn't recognize any AOEs."; singlePlayerDutyOptions2.Notes = list166; questStep13.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference118 = questStep13; obj105.Steps = list165; reference117 = obj105; - ref QuestSequence reference119 = ref span55[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); obj106.Steps = list167; reference119 = obj106; questRoot19.QuestSequence = list162; @@ -235198,13 +283066,16 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "liza"; questRoot20.Author = list168; - num = 4; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span57 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference120 = ref span57[0]; + index = 4; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -235212,21 +283083,27 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); obj107.Steps = list170; reference120 = obj107; - ref QuestSequence reference121 = ref span57[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 2009921u, new Vector3(138.96387f, -77.836365f, 621.3627f), 815); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009921u, new Vector3(138.96387f, -77.836365f, 621.3627f), 815); obj108.Steps = list171; reference121 = obj108; - ref QuestSequence reference122 = ref span57[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -235234,23 +283111,28 @@ public static class AssemblyQuestLoader num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span58 = CollectionsMarshal.AsSpan(list172); - span58[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010052u, new Vector3(158.804f, -61.09476f, 674.8915f), 815) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010052u, new Vector3(158.804f, -61.09476f, 674.8915f), 815) { AetherCurrentId = 2818261u }; - span58[1] = new QuestStep(EInteractionType.Interact, 1029777u, new Vector3(147.93616f, -75.016464f, 642.359f), 815); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029777u, new Vector3(147.93616f, -75.016464f, 642.359f), 815); obj109.Steps = list172; reference122 = obj109; - ref QuestSequence reference123 = ref span57[3]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029778u, new Vector3(-282.1546f, -62.57727f, 380.14795f), 815); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029778u, new Vector3(-282.1546f, -62.57727f, 380.14795f), 815); obj110.Steps = list173; reference123 = obj110; questRoot20.QuestSequence = list169; @@ -235260,13 +283142,16 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list174); + index = 0; + span[index] = "liza"; questRoot21.Author = list174; - num = 5; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span59 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference124 = ref span59[0]; + index = 5; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span2 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -235274,21 +283159,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029783u, new Vector3(-281.36108f, -62.86976f, 382.62f), 815); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029783u, new Vector3(-281.36108f, -62.86976f, 382.62f), 815); obj111.Steps = list176; reference124 = obj111; - ref QuestSequence reference125 = ref span59[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2009922u, new Vector3(-507.59137f, -95.99457f, 490.07385f), 815); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009922u, new Vector3(-507.59137f, -95.99457f, 490.07385f), 815); obj112.Steps = list177; reference125 = obj112; - ref QuestSequence reference126 = ref span59[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -235296,7 +283187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Duty, null, null, 815) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 815) { DutyOptions = new DutyOptions { @@ -235305,19 +283198,23 @@ public static class AssemblyQuestLoader }; obj113.Steps = list178; reference126 = obj113; - span59[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference127 = ref span59[4]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029784u, new Vector3(-429.92297f, -86.054756f, 464.59143f), 815) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029784u, new Vector3(-429.92297f, -86.054756f, 464.59143f), 815) { StopDistance = 5f }; @@ -235330,13 +283227,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "liza"; questRoot22.Author = list180; - num = 3; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span60 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference128 = ref span60[0]; + index = 3; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -235344,21 +283244,26 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029786u, new Vector3(-431.08264f, -86.381516f, 462.33313f), 815) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029786u, new Vector3(-431.08264f, -86.381516f, 462.33313f), 815) { StopDistance = 5f }; obj115.Steps = list182; reference128 = obj115; - ref QuestSequence reference129 = ref span60[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -235369,7 +283274,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list183; reference129 = obj116; - ref QuestSequence reference130 = ref span60[2]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -235377,7 +283283,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list184)[0]; + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference131 = ref span3[index2]; QuestStep obj118 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f, @@ -235387,10 +283295,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + span5 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMD117_03622_Q2_000_000") @@ -235406,21 +283316,26 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; questRoot23.Author = list186; - num = 5; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span61 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference132 = ref span61[0]; + index = 5; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -235438,7 +283353,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list188; reference132 = obj119; - ref QuestSequence reference133 = ref span61[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -235446,8 +283362,9 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span62 = CollectionsMarshal.AsSpan(list189); - span62[0] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { TargetTerritoryId = (ushort)815, AethernetShortcut = new AethernetShortcut @@ -235456,21 +283373,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span62[1] = new QuestStep(EInteractionType.Interact, 1030623u, new Vector3(665.6748f, -50.355476f, -641.5351f), 815) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030623u, new Vector3(665.6748f, -50.355476f, -641.5351f), 815) { Fly = true }; obj120.Steps = list189; reference133 = obj120; - ref QuestSequence reference134 = ref span61[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list190)[0]; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference135 = ref span3[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2010165u, new Vector3(483.48206f, -50.46167f, -631.52515f), 815) { Fly = true, @@ -235479,12 +283400,15 @@ public static class AssemblyQuestLoader num3 = 1; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = 10836u; + span6 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span6[num4] = 10836u; obj122.KillEnemyDataIds = list191; reference135 = obj122; obj121.Steps = list190; reference134 = obj121; - ref QuestSequence reference136 = ref span61[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -235492,18 +283416,23 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1030624u, new Vector3(500.54163f, -50.72601f, -647.5471f), 815); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030624u, new Vector3(500.54163f, -50.72601f, -647.5471f), 815); obj123.Steps = list192; reference136 = obj123; - ref QuestSequence reference137 = ref span61[4]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, NextQuestId = new QuestId(3624) @@ -235517,13 +283446,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "liza"; questRoot24.Author = list194; - num = 5; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span63 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference138 = ref span63[0]; + index = 5; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -235531,7 +283463,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235549,29 +283483,35 @@ public static class AssemblyQuestLoader }; obj125.Steps = list196; reference138 = obj125; - ref QuestSequence reference139 = ref span63[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list197)[0]; + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2010166u, new Vector3(599.115f, -33.61566f, -304.49384f), 815) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = 10837u; + num4 = 1; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + span6 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span6[num3] = 10837u; obj127.KillEnemyDataIds = list198; reference140 = obj127; obj126.Steps = list197; reference139 = obj126; - ref QuestSequence reference141 = ref span63[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -235579,27 +283519,33 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true }; obj128.Steps = list199; reference141 = obj128; - ref QuestSequence reference142 = ref span63[3]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 2010214u, new Vector3(488.85327f, -26.16925f, -12.008911f), 815) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010214u, new Vector3(488.85327f, -26.16925f, -12.008911f), 815) { Fly = true }; obj129.Steps = list200; reference142 = obj129; - ref QuestSequence reference143 = ref span63[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -235607,7 +283553,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list201)[0]; + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference144 = ref span3[index2]; QuestStep obj131 = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true @@ -235615,7 +283563,9 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA411_03624_Q1_000_100"), @@ -235633,21 +283583,26 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "liza"; questRoot25.Author = list203; - num = 9; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span64 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference145 = ref span64[0]; + index = 9; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235665,7 +283620,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list205; reference145 = obj132; - ref QuestSequence reference146 = ref span64[1]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -235673,27 +283629,33 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1030626u, new Vector3(331.62415f, 1.4685826f, -244.95312f), 815) + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030626u, new Vector3(331.62415f, 1.4685826f, -244.95312f), 815) { Fly = true }; obj133.Steps = list206; reference146 = obj133; - ref QuestSequence reference147 = ref span64[2]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1030627u, new Vector3(330.06775f, 1.4685818f, -164.0498f), 815) + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030627u, new Vector3(330.06775f, 1.4685818f, -164.0498f), 815) { Fly = true }; obj134.Steps = list207; reference147 = obj134; - ref QuestSequence reference148 = ref span64[3]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -235701,28 +283663,34 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1030628u, new Vector3(407.6753f, -28.443933f, 260.8224f), 815) + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030628u, new Vector3(407.6753f, -28.443933f, 260.8224f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj135.Steps = list208; reference148 = obj135; - ref QuestSequence reference149 = ref span64[4]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030630u, new Vector3(368.39856f, -28.620693f, 353.78027f), 815) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030630u, new Vector3(368.39856f, -28.620693f, 353.78027f), 815) { Fly = true }; obj136.Steps = list209; reference149 = obj136; - ref QuestSequence reference150 = ref span64[5]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 5 @@ -235730,33 +283698,41 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Combat, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = 10838u; + num4 = 1; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + span6 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span6[num3] = 10838u; obj138.KillEnemyDataIds = list211; reference151 = obj138; obj137.Steps = list210; reference150 = obj137; - ref QuestSequence reference152 = ref span64[6]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815); obj139.Steps = list212; reference152 = obj139; - ref QuestSequence reference153 = ref span64[7]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 7 @@ -235764,21 +283740,26 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1030631u, new Vector3(367.72717f, -28.562725f, 356.19116f), 815) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030631u, new Vector3(367.72717f, -28.562725f, 356.19116f), 815) { Fly = true }; obj140.Steps = list213; reference153 = obj140; - ref QuestSequence reference154 = ref span64[8]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -235793,13 +283774,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list215); + index = 0; + span[index] = "liza"; questRoot26.Author = list215; - num = 4; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span65 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference155 = ref span65[0]; + index = 3; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + span2 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -235807,7 +283791,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235825,15 +283811,18 @@ public static class AssemblyQuestLoader }; obj142.Steps = list217; reference155 = obj142; - ref QuestSequence reference156 = ref span65[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list218)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj144 = new QuestStep(EInteractionType.SinglePlayerDuty, 1030636u, new Vector3(342.8855f, -35.843185f, 76.58496f), 815) { Fly = true, @@ -235846,17 +283835,16 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = "Sometimes the movement is the cause of a duty failing."; + span = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span[num4] = "Sometimes the movement is the cause of a duty failing."; obj145.Notes = list219; obj144.SinglePlayerDutyOptions = obj145; reference157 = obj144; obj143.Steps = list218; reference156 = obj143; - span65[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference158 = ref span65[3]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -235864,7 +283852,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -235879,21 +283869,26 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list221); + index = 0; + span[index] = "liza"; questRoot27.Author = list221; - num = 7; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span66 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference159 = ref span66[0]; + index = 7; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + span2 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235911,7 +283906,8 @@ public static class AssemblyQuestLoader }; obj147.Steps = list223; reference159 = obj147; - ref QuestSequence reference160 = ref span66[1]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -235919,7 +283915,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list224)[0]; + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1030638u, new Vector3(543.8773f, -6.503428f, 811.7036f), 813) { Fly = true, @@ -235932,25 +283930,30 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = 813; + num4 = 1; + List list225 = new List(num4); + CollectionsMarshal.SetCount(list225, num4); + Span span8 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span8[num3] = 813; skipAetheryteCondition.InTerritory = list225; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj149.SkipConditions = skipConditions; reference161 = obj149; obj148.Steps = list224; reference160 = obj148; - ref QuestSequence reference162 = ref span66[2]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list226)[0]; + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference163 = ref span3[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 2010215u, new Vector3(523.9795f, -2.0599976f, 795.1018f), 813) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -235958,12 +283961,15 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 10839u; + span6 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span6[num4] = 10839u; obj151.KillEnemyDataIds = list227; reference163 = obj151; obj150.Steps = list226; reference162 = obj150; - ref QuestSequence reference164 = ref span66[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -235971,21 +283977,27 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1030639u, new Vector3(542.8092f, -6.489782f, 811.79517f), 813); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030639u, new Vector3(542.8092f, -6.489782f, 811.79517f), 813); obj152.Steps = list228; reference164 = obj152; - ref QuestSequence reference165 = ref span66[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); obj153.Steps = list229; reference165 = obj153; - ref QuestSequence reference166 = ref span66[5]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -235993,18 +284005,23 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); obj154.Steps = list230; reference166 = obj154; - ref QuestSequence reference167 = ref span66[6]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -236019,13 +284036,16 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "liza"; questRoot28.Author = list232; - num = 8; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span67 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference168 = ref span67[0]; + index = 8; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -236033,7 +284053,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -236051,21 +284073,25 @@ public static class AssemblyQuestLoader }; obj156.Steps = list234; reference168 = obj156; - ref QuestSequence reference169 = ref span67[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1030697u, new Vector3(288.74634f, 7.1558266f, -219.2569f), 815) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030697u, new Vector3(288.74634f, 7.1558266f, -219.2569f), 815) { Fly = true }; obj157.Steps = list235; reference169 = obj157; - ref QuestSequence reference170 = ref span67[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -236073,21 +284099,26 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true }; obj158.Steps = list236; reference170 = obj158; - ref QuestSequence reference171 = ref span67[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengTwine, @@ -236098,11 +284129,13 @@ public static class AssemblyQuestLoader }; obj159.Steps = list237; reference171 = obj159; - span67[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference172 = ref span67[5]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 5 @@ -236110,24 +284143,30 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815); + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815); obj160.Steps = list238; reference172 = obj160; - ref QuestSequence reference173 = ref span67[6]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj161.Steps = list239; reference173 = obj161; - ref QuestSequence reference174 = ref span67[7]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -236135,7 +284174,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -236153,24 +284194,30 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "plogon_enjoyer"; questRoot29.Author = list241; - num = 9; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span68 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference175 = ref span68[0]; + index = 9; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819); obj163.Steps = list243; reference175 = obj163; - ref QuestSequence reference176 = ref span68[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -236178,7 +284225,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1030831u, new Vector3(26.260742f, 35.999687f, -129.2287f), 819) + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030831u, new Vector3(26.260742f, 35.999687f, -129.2287f), 819) { AethernetShortcut = new AethernetShortcut { @@ -236188,22 +284237,26 @@ public static class AssemblyQuestLoader }; obj164.Steps = list244; reference176 = obj164; - ref QuestSequence reference177 = ref span68[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1030832u, new Vector3(171.8623f, 33.4924f, 185.77856f), 814) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030832u, new Vector3(171.8623f, 33.4924f, 185.77856f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj165.Steps = list245; reference177 = obj165; - ref QuestSequence reference178 = ref span68[3]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -236211,29 +284264,35 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1030833u, new Vector3(340.90173f, -35.861984f, 74.23511f), 815) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030833u, new Vector3(340.90173f, -35.861984f, 74.23511f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj166.Steps = list246; reference178 = obj166; - ref QuestSequence reference179 = ref span68[4]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1030834u, new Vector3(-185.13776f, 11.4709015f, 608.57544f), 817) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030834u, new Vector3(-185.13776f, 11.4709015f, 608.57544f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj167.Steps = list247; reference179 = obj167; - ref QuestSequence reference180 = ref span68[5]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -236241,29 +284300,35 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1030835u, new Vector3(-67.826416f, 105.29415f, -252.94885f), 816) + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030835u, new Vector3(-67.826416f, 105.29415f, -252.94885f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj168.Steps = list248; reference180 = obj168; - ref QuestSequence reference181 = ref span68[6]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1030836u, new Vector3(-456.59576f, 417.12573f, -597.16187f), 814) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030836u, new Vector3(-456.59576f, 417.12573f, -597.16187f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj169.Steps = list249; reference181 = obj169; - ref QuestSequence reference182 = ref span68[7]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 7 @@ -236271,22 +284336,27 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 2010361u, new Vector3(55.61914f, 165.42297f, -302.66272f), 813) + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010361u, new Vector3(55.61914f, 165.42297f, -302.66272f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj170.Steps = list250; reference182 = obj170; - ref QuestSequence reference183 = ref span68[8]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -236305,13 +284375,16 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list252); + index = 0; + span[index] = "liza"; questRoot30.Author = list252; - num = 5; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span69 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference184 = ref span69[0]; + index = 5; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + span2 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -236319,21 +284392,26 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj172.Steps = list254; reference184 = obj172; - ref QuestSequence reference185 = ref span69[1]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -236344,7 +284422,8 @@ public static class AssemblyQuestLoader }; obj173.Steps = list255; reference185 = obj173; - ref QuestSequence reference186 = ref span69[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -236352,36 +284431,47 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1030165u, new Vector3(-249.28668f, 18.603912f, 399.31323f), 814) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030165u, new Vector3(-249.28668f, 18.603912f, 399.31323f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj174.Steps = list256; reference186 = obj174; - ref QuestSequence reference187 = ref span69[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span70 = CollectionsMarshal.AsSpan(list257); - ref QuestStep reference188 = ref span70[0]; + index2 = 3; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference188 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1030170u, new Vector3(-87.32745f, 11.115211f, 312.09277f), 814); - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span71 = CollectionsMarshal.AsSpan(list258); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list258 = new List(num4); + CollectionsMarshal.SetCount(list258, num4); + span4 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list258; reference188 = questStep14; - ref QuestStep reference189 = ref span70[1]; + num2++; + ref QuestStep reference189 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, 1030167u, new Vector3(-37.644104f, 7.0351543f, 372.42688f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -236389,39 +284479,55 @@ public static class AssemblyQuestLoader num3 = 2; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span72 = CollectionsMarshal.AsSpan(list259); - span72[0] = 10860u; - span72[1] = 10861u; + span6 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span6[num4] = 10860u; + num4++; + span6[num4] = 10861u; obj176.KillEnemyDataIds = list259; - num3 = 6; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span73 = CollectionsMarshal.AsSpan(list260); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list260 = new List(num4); + CollectionsMarshal.SetCount(list260, num4); + span4 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj176.CompletionQuestVariablesFlags = list260; reference189 = obj176; - ref QuestStep reference190 = ref span70[2]; + num2++; + ref QuestStep reference190 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1030169u, new Vector3(144.57922f, 13.26848f, 356.83215f), 814); num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span74 = CollectionsMarshal.AsSpan(list261); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list261; reference190 = questStep15; obj175.Steps = list257; reference187 = obj175; - ref QuestSequence reference191 = ref span69[4]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -236429,7 +284535,9 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030171u, new Vector3(164.4159f, 39.902184f, 564.9957f), 814); + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030171u, new Vector3(164.4159f, 39.902184f, 564.9957f), 814); obj177.Steps = list262; reference191 = obj177; questRoot30.QuestSequence = list253; @@ -236439,27 +284547,33 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot31.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span75 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference192 = ref span75[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030172u, new Vector3(165.85034f, 40.02784f, 566.21655f), 814) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030172u, new Vector3(165.85034f, 40.02784f, 566.21655f), 814) { StopDistance = 7f }; obj178.Steps = list265; reference192 = obj178; - ref QuestSequence reference193 = ref span75[1]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -236467,21 +284581,26 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030179u, new Vector3(167.65088f, 40.011803f, 563.1647f), 814) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030179u, new Vector3(167.65088f, 40.011803f, 563.1647f), 814) { StopDistance = 7f }; obj179.Steps = list266; reference193 = obj179; - ref QuestSequence reference194 = ref span75[2]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) { StopDistance = 7f }; @@ -236494,13 +284613,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "liza"; questRoot32.Author = list268; - num = 8; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span76 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference195 = ref span76[0]; + index = 8; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -236508,26 +284630,31 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) { StopDistance = 7f }; obj181.Steps = list270; reference195 = obj181; - ref QuestSequence reference196 = ref span76[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span77 = CollectionsMarshal.AsSpan(list271); - span77[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) { Aetheryte = EAetheryteLocation.Eulmore }; - span77[1] = new QuestStep(EInteractionType.Interact, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) { AethernetShortcut = new AethernetShortcut { @@ -236537,7 +284664,8 @@ public static class AssemblyQuestLoader }; obj182.Steps = list271; reference196 = obj182; - ref QuestSequence reference197 = ref span76[2]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -236545,21 +284673,26 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.UseItem, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) { ItemId = 2002609u }; obj183.Steps = list272; reference197 = obj183; - ref QuestSequence reference198 = ref span76[3]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) { AethernetShortcut = new AethernetShortcut { @@ -236569,7 +284702,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list273; reference198 = obj184; - ref QuestSequence reference199 = ref span76[4]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 @@ -236577,21 +284711,26 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.UseItem, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) { ItemId = 2002609u }; obj185.Steps = list274; reference199 = obj185; - ref QuestSequence reference200 = ref span76[5]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) { AethernetShortcut = new AethernetShortcut { @@ -236601,7 +284740,8 @@ public static class AssemblyQuestLoader }; obj186.Steps = list275; reference200 = obj186; - ref QuestSequence reference201 = ref span76[6]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 6 @@ -236609,26 +284749,33 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.UseItem, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) { ItemId = 2002609u }; obj187.Steps = list276; reference201 = obj187; - ref QuestSequence reference202 = ref span76[7]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - ref QuestStep reference203 = ref CollectionsMarshal.AsSpan(list277)[0]; + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference203 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1030194u, new Vector3(27.359375f, 82.903946f, 22.384888f), 820); - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = new DialogueChoice + num4 = 1; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + span5 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME103_03632_Q1_000_000"), @@ -236645,13 +284792,16 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list279); + index = 0; + span[index] = "liza"; questRoot33.Author = list279; - num = 6; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span78 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference204 = ref span78[0]; + index = 6; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + span2 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -236659,27 +284809,33 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030196u, new Vector3(21.377869f, 82.782265f, 25.009521f), 820) + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030196u, new Vector3(21.377869f, 82.782265f, 25.009521f), 820) { StopDistance = 7f }; obj189.Steps = list281; reference204 = obj189; - ref QuestSequence reference205 = ref span78[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj190.Steps = list282; reference205 = obj190; - ref QuestSequence reference206 = ref span78[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -236687,102 +284843,141 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); obj191.Steps = list283; reference206 = obj191; - ref QuestSequence reference207 = ref span78[3]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - Span span79 = CollectionsMarshal.AsSpan(list284); - ref QuestStep reference208 = ref span79[0]; + index2 = 5; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + ref QuestStep reference208 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-450.89993f, 8.987026f, 545.4605f), 814); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - Span span80 = CollectionsMarshal.AsSpan(list285); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list285); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list285; skipConditions2.StepIf = skipStepConditions; questStep17.SkipConditions = skipConditions2; reference208 = questStep17; - ref QuestStep reference209 = ref span79[1]; + num2++; + ref QuestStep reference209 = ref span3[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Interact, 2010088u, new Vector3(-448.2033f, 8.316162f, 546.25757f), 814) { StopDistance = 4f }; - num3 = 6; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span81 = CollectionsMarshal.AsSpan(list286); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list286 = new List(num4); + CollectionsMarshal.SetCount(list286, num4); + span4 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list286; reference209 = obj193; - ref QuestStep reference210 = ref span79[2]; + num2++; + ref QuestStep reference210 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027441u, new Vector3(-465.32385f, 8.987028f, 555.4131f), 814); num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span82 = CollectionsMarshal.AsSpan(list287); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list287); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list287; reference210 = questStep18; - ref QuestStep reference211 = ref span79[3]; + num2++; + ref QuestStep reference211 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-458.26974f, 18.818102f, 479.86996f), 814); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span83 = CollectionsMarshal.AsSpan(list288); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + span4 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list288; skipConditions3.StepIf = skipStepConditions2; questStep19.SkipConditions = skipConditions3; reference211 = questStep19; - ref QuestStep reference212 = ref span79[4]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2010089u, new Vector3(-458.2437f, 20.004517f, 481.58997f), 814); num3 = 6; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span84 = CollectionsMarshal.AsSpan(list289); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list289); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list289; reference212 = questStep20; obj192.Steps = list284; reference207 = obj192; - ref QuestSequence reference213 = ref span78[4]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -236790,19 +284985,23 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list290)[0]; + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + ref QuestStep reference214 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); - num3 = 2; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span85 = CollectionsMarshal.AsSpan(list291); - span85[0] = new DialogueChoice + num4 = 2; + List list291 = new List(num4); + CollectionsMarshal.SetCount(list291, num4); + span5 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME104_03633_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKME104_03633_A1_000_006") }; - span85[1] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME104_03633_Q2_000_000"), @@ -236812,15 +285011,18 @@ public static class AssemblyQuestLoader reference214 = questStep21; obj194.Steps = list290; reference213 = obj194; - ref QuestSequence reference215 = ref span78[5]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); obj195.Steps = list292; reference215 = obj195; questRoot33.QuestSequence = list280; @@ -236830,13 +285032,16 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list293); + index = 0; + span[index] = "liza"; questRoot34.Author = list293; - num = 7; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span86 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference216 = ref span86[0]; + index = 7; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + span2 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -236844,21 +285049,27 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); obj196.Steps = list295; reference216 = obj196; - ref QuestSequence reference217 = ref span86[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 2010124u, new Vector3(-482.0783f, 65.7511f, 93.12573f), 814); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010124u, new Vector3(-482.0783f, 65.7511f, 93.12573f), 814); obj197.Steps = list296; reference217 = obj197; - ref QuestSequence reference218 = ref span86[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -236866,21 +285077,27 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1030207u, new Vector3(-448.661f, 334.0526f, -36.91156f), 814); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030207u, new Vector3(-448.661f, 334.0526f, -36.91156f), 814); obj198.Steps = list297; reference218 = obj198; - ref QuestSequence reference219 = ref span86[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1030208u, new Vector3(-418.38715f, 354.3414f, 25.284058f), 814); + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030208u, new Vector3(-418.38715f, 354.3414f, 25.284058f), 814); obj199.Steps = list298; reference219 = obj199; - ref QuestSequence reference220 = ref span86[4]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -236888,66 +285105,91 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Snipe, 2010090u, new Vector3(-416.28143f, 354.3297f, 22.47644f), 814) + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2010090u, new Vector3(-416.28143f, 354.3297f, 22.47644f), 814) { Comment = "Click on the guy left of the the rock" }; obj200.Steps = list299; reference220 = obj200; - ref QuestSequence reference221 = ref span86[5]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span87 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference222 = ref span87[0]; + index2 = 3; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference222 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2010091u, new Vector3(-120.0733f, 353.4751f, -206.71399f), 814); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span88 = CollectionsMarshal.AsSpan(list301); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list301; reference222 = questStep22; - ref QuestStep reference223 = ref span87[1]; + num2++; + ref QuestStep reference223 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2010093u, new Vector3(-132.52466f, 355.24524f, -176.25696f), 814); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span89 = CollectionsMarshal.AsSpan(list302); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + span4 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list302; reference223 = questStep23; - ref QuestStep reference224 = ref span87[2]; + num2++; + ref QuestStep reference224 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2010092u, new Vector3(-151.41534f, 353.53625f, -188.89148f), 814); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span90 = CollectionsMarshal.AsSpan(list303); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list303; reference224 = questStep24; obj201.Steps = list300; reference221 = obj201; - ref QuestSequence reference225 = ref span86[6]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -236955,7 +285197,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030211u, new Vector3(-137.3465f, 352.35822f, -188.03699f), 814); + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030211u, new Vector3(-137.3465f, 352.35822f, -188.03699f), 814); obj202.Steps = list304; reference225 = obj202; questRoot34.QuestSequence = list294; @@ -236965,24 +285209,30 @@ public static class AssemblyQuestLoader num = 1; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - CollectionsMarshal.AsSpan(list305)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list305); + index = 0; + span[index] = "liza"; questRoot35.Author = list305; - num = 6; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span91 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference226 = ref span91[0]; + index = 6; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + span2 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030213u, new Vector3(-124.62048f, 352.35822f, -192.27899f), 814); + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030213u, new Vector3(-124.62048f, 352.35822f, -192.27899f), 814); obj203.Steps = list307; reference226 = obj203; - ref QuestSequence reference227 = ref span91[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -236990,31 +285240,39 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1030214u, new Vector3(-119.73761f, 362.56046f, -346.15094f), 814); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030214u, new Vector3(-119.73761f, 362.56046f, -346.15094f), 814); obj204.Steps = list308; reference227 = obj204; - ref QuestSequence reference228 = ref span91[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list309)[0]; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2010094u, new Vector3(-279.07227f, 378.6831f, -404.37933f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 10862u; + num4 = 1; + List list310 = new List(num4); + CollectionsMarshal.SetCount(list310, num4); + span6 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span6[num3] = 10862u; obj206.KillEnemyDataIds = list310; reference229 = obj206; obj205.Steps = list309; reference228 = obj205; - ref QuestSequence reference230 = ref span91[3]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -237022,7 +285280,9 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - ref QuestStep reference231 = ref CollectionsMarshal.AsSpan(list311)[0]; + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + ref QuestStep reference231 = ref span3[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, 2010095u, new Vector3(-168.9021f, 396.8108f, -468.31464f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -237030,25 +285290,31 @@ public static class AssemblyQuestLoader num3 = 2; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span92 = CollectionsMarshal.AsSpan(list312); - span92[0] = 10862u; - span92[1] = 10864u; + span6 = CollectionsMarshal.AsSpan(list312); + num4 = 0; + span6[num4] = 10862u; + num4++; + span6[num4] = 10864u; obj208.KillEnemyDataIds = list312; reference231 = obj208; obj207.Steps = list311; reference230 = obj207; - ref QuestSequence reference232 = ref span91[4]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1030215u, new Vector3(-160.54016f, 455.2343f, -740.261f), 814); + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030215u, new Vector3(-160.54016f, 455.2343f, -740.261f), 814); obj209.Steps = list313; reference232 = obj209; - ref QuestSequence reference233 = ref span91[5]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -237056,12 +285322,14 @@ public static class AssemblyQuestLoader num2 = 2; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span93 = CollectionsMarshal.AsSpan(list314); - span93[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaTomra }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); obj210.Steps = list314; reference233 = obj210; questRoot35.QuestSequence = list306; @@ -237071,24 +285339,30 @@ public static class AssemblyQuestLoader num = 1; List list315 = new List(num); CollectionsMarshal.SetCount(list315, num); - CollectionsMarshal.AsSpan(list315)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list315); + index = 0; + span[index] = "liza"; questRoot36.Author = list315; - num = 4; - List list316 = new List(num); - CollectionsMarshal.SetCount(list316, num); - Span span94 = CollectionsMarshal.AsSpan(list316); - ref QuestSequence reference234 = ref span94[0]; + index = 4; + List list316 = new List(index); + CollectionsMarshal.SetCount(list316, index); + span2 = CollectionsMarshal.AsSpan(list316); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); obj211.Steps = list317; reference234 = obj211; - ref QuestSequence reference235 = ref span94[1]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -237096,45 +285370,54 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1030224u, new Vector3(-437.46094f, 334.0526f, -45.059937f), 814); + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030224u, new Vector3(-437.46094f, 334.0526f, -45.059937f), 814); obj212.Steps = list318; reference235 = obj212; - ref QuestSequence reference236 = ref span94[2]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list319)[0]; + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference237 = ref span3[num2]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1030223u, new Vector3(-436.5454f, 334.0526f, -46.707886f), 814) { StopDistance = 5f }; - num3 = 4; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span95 = CollectionsMarshal.AsSpan(list320); - span95[0] = new DialogueChoice + num4 = 4; + List list320 = new List(num4); + CollectionsMarshal.SetCount(list320, num4); + span5 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A1_000_002") }; - span95[1] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q2_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A2_000_003") }; - span95[2] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A3_000_002") }; - span95[3] = new DialogueChoice + num3++; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q4_000_000"), @@ -237144,7 +285427,8 @@ public static class AssemblyQuestLoader reference237 = obj214; obj213.Steps = list319; reference236 = obj213; - ref QuestSequence reference238 = ref span94[3]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -237152,7 +285436,9 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj215.Steps = list321; reference238 = obj215; questRoot36.QuestSequence = list316; @@ -237162,24 +285448,30 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list322); + index = 0; + span[index] = "liza"; questRoot37.Author = list322; - num = 6; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span96 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference239 = ref span96[0]; + index = 6; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + span2 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj216.Steps = list324; reference239 = obj216; - ref QuestSequence reference240 = ref span96[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -237187,24 +285479,30 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1030229u, new Vector3(-425.80304f, 416.76733f, -586.2974f), 814) + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030229u, new Vector3(-425.80304f, 416.76733f, -586.2974f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj217.Steps = list325; reference240 = obj217; - ref QuestSequence reference241 = ref span96[2]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj218.Steps = list326; reference241 = obj218; - ref QuestSequence reference242 = ref span96[3]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -237212,27 +285510,33 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) { Comment = "Click red hat dwarf (always shows up in the same location)" }; obj219.Steps = list327; reference242 = obj219; - ref QuestSequence reference243 = ref span96[4]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) { Comment = "Click red hat dwarf" }; obj220.Steps = list328; reference243 = obj220; - ref QuestSequence reference244 = ref span96[5]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue @@ -237240,7 +285544,9 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj221.Steps = list329; reference244 = obj221; questRoot37.QuestSequence = list323; @@ -237250,24 +285556,30 @@ public static class AssemblyQuestLoader num = 1; List list330 = new List(num); CollectionsMarshal.SetCount(list330, num); - CollectionsMarshal.AsSpan(list330)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list330); + index = 0; + span[index] = "liza"; questRoot38.Author = list330; - num = 3; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - Span span97 = CollectionsMarshal.AsSpan(list331); - ref QuestSequence reference245 = ref span97[0]; + index = 3; + List list331 = new List(index); + CollectionsMarshal.SetCount(list331, index); + span2 = CollectionsMarshal.AsSpan(list331); + num = 0; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj222.Steps = list332; reference245 = obj222; - ref QuestSequence reference246 = ref span97[1]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 @@ -237275,7 +285587,9 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030239u, new Vector3(-467.76532f, 417.22897f, -648.85944f), 814) + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030239u, new Vector3(-467.76532f, 417.22897f, -648.85944f), 814) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -237284,15 +285598,18 @@ public static class AssemblyQuestLoader }; obj223.Steps = list333; reference246 = obj223; - ref QuestSequence reference247 = ref span97[2]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); obj224.Steps = list334; reference247 = obj224; questRoot38.QuestSequence = list331; @@ -237302,13 +285619,16 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list335); + index = 0; + span[index] = "liza"; questRoot39.Author = list335; - num = 5; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span98 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference248 = ref span98[0]; + index = 5; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + span2 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -237316,21 +285636,27 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); obj225.Steps = list337; reference248 = obj225; - ref QuestSequence reference249 = ref span98[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj226.Steps = list338; reference249 = obj226; - ref QuestSequence reference250 = ref span98[2]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -237338,23 +285664,28 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj227.Steps = list339; reference250 = obj227; - ref QuestSequence reference251 = ref span98[3]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - Span span99 = CollectionsMarshal.AsSpan(list340); - span99[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010041u, new Vector3(623.7429f, 285.93872f, -555.26056f), 814) + index2 = 4; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010041u, new Vector3(623.7429f, 285.93872f, -555.26056f), 814) { AetherCurrentId = 2818245u }; - ref QuestStep reference252 = ref span99[1]; + num2++; + ref QuestStep reference252 = ref span3[num2]; QuestStep obj229 = new QuestStep(EInteractionType.UseItem, 1030235u, new Vector3(705.0431f, 270.07697f, -492.9122f), 814) { ItemId = 2002610u @@ -237362,33 +285693,47 @@ public static class AssemblyQuestLoader num3 = 6; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span100 = CollectionsMarshal.AsSpan(list341); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list341); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj229.CompletionQuestVariablesFlags = list341; reference252 = obj229; - ref QuestStep reference253 = ref span99[2]; + num2++; + ref QuestStep reference253 = ref span3[num2]; QuestStep obj230 = new QuestStep(EInteractionType.UseItem, 1030236u, new Vector3(744.53345f, 269.99976f, -515.49554f), 814) { ItemId = 2002610u }; - num3 = 6; - List list342 = new List(num3); - CollectionsMarshal.SetCount(list342, num3); - Span span101 = CollectionsMarshal.AsSpan(list342); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list342 = new List(num4); + CollectionsMarshal.SetCount(list342, num4); + span4 = CollectionsMarshal.AsSpan(list342); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj230.CompletionQuestVariablesFlags = list342; reference253 = obj230; - ref QuestStep reference254 = ref span99[3]; + num2++; + ref QuestStep reference254 = ref span3[num2]; QuestStep obj231 = new QuestStep(EInteractionType.UseItem, 1030237u, new Vector3(747.12744f, 270f, -477.4395f), 814) { ItemId = 2002610u @@ -237396,18 +285741,25 @@ public static class AssemblyQuestLoader num3 = 6; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - Span span102 = CollectionsMarshal.AsSpan(list343); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list343); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj231.CompletionQuestVariablesFlags = list343; reference254 = obj231; obj228.Steps = list340; reference251 = obj228; - ref QuestSequence reference255 = ref span98[4]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -237415,7 +285767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj232.Steps = list344; reference255 = obj232; questRoot39.QuestSequence = list336; @@ -237425,24 +285779,30 @@ public static class AssemblyQuestLoader num = 1; List list345 = new List(num); CollectionsMarshal.SetCount(list345, num); - CollectionsMarshal.AsSpan(list345)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list345); + index = 0; + span[index] = "liza"; questRoot40.Author = list345; - num = 5; - List list346 = new List(num); - CollectionsMarshal.SetCount(list346, num); - Span span103 = CollectionsMarshal.AsSpan(list346); - ref QuestSequence reference256 = ref span103[0]; + index = 5; + List list346 = new List(index); + CollectionsMarshal.SetCount(list346, index); + span2 = CollectionsMarshal.AsSpan(list346); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj233.Steps = list347; reference256 = obj233; - ref QuestSequence reference257 = ref span103[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -237450,27 +285810,33 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814) + span3 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj234.Steps = list348; reference257 = obj234; - ref QuestSequence reference258 = ref span103[2]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - Span span104 = CollectionsMarshal.AsSpan(list349); - ref QuestStep reference259 = ref span104[0]; + index2 = 2; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + span3 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + ref QuestStep reference259 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.AcceptQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814); - num3 = 1; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = new DialogueChoice + num4 = 1; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + span5 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/035/LucKzi101_03556", @@ -237480,10 +285846,12 @@ public static class AssemblyQuestLoader questStep25.DialogueChoices = list350; questStep25.PickUpQuestId = new QuestId(3556); reference259 = questStep25; - span104[1] = new QuestStep(EInteractionType.Interact, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); obj235.Steps = list349; reference258 = obj235; - ref QuestSequence reference260 = ref span103[3]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -237491,60 +285859,84 @@ public static class AssemblyQuestLoader num2 = 3; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span105 = CollectionsMarshal.AsSpan(list351); - ref QuestStep reference261 = ref span105[0]; + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + ref QuestStep reference261 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1030243u, new Vector3(-473.4417f, 334.0526f, -71.15283f), 814); num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span106 = CollectionsMarshal.AsSpan(list352); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list352); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list352; reference261 = questStep26; - ref QuestStep reference262 = ref span105[1]; + index2++; + ref QuestStep reference262 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1030240u, new Vector3(-464.49988f, 334.0526f, -65.53754f), 814); - num3 = 6; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - Span span107 = CollectionsMarshal.AsSpan(list353); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list353 = new List(num4); + CollectionsMarshal.SetCount(list353, num4); + span4 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list353; reference262 = questStep27; - ref QuestStep reference263 = ref span105[2]; + index2++; + ref QuestStep reference263 = ref span3[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1030244u, new Vector3(-453.23877f, 334.0526f, -76.27985f), 814); num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span108 = CollectionsMarshal.AsSpan(list354); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list354; reference263 = questStep28; obj236.Steps = list351; reference260 = obj236; - ref QuestSequence reference264 = ref span103[4]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + span3 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); obj237.Steps = list355; reference264 = obj237; questRoot40.QuestSequence = list346; @@ -237554,13 +285946,16 @@ public static class AssemblyQuestLoader num = 1; List list356 = new List(num); CollectionsMarshal.SetCount(list356, num); - CollectionsMarshal.AsSpan(list356)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list356); + index = 0; + span[index] = "liza"; questRoot41.Author = list356; - num = 5; - List list357 = new List(num); - CollectionsMarshal.SetCount(list357, num); - Span span109 = CollectionsMarshal.AsSpan(list357); - ref QuestSequence reference265 = ref span109[0]; + index = 5; + List list357 = new List(index); + CollectionsMarshal.SetCount(list357, index); + span2 = CollectionsMarshal.AsSpan(list357); + num = 0; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 @@ -237568,24 +285963,30 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030238u, new Vector3(-466.08685f, 334.0526f, -81.13226f), 814) + span3 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030238u, new Vector3(-466.08685f, 334.0526f, -81.13226f), 814) { StopDistance = 7f }; obj238.Steps = list358; reference265 = obj238; - ref QuestSequence reference266 = ref span109[1]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + span3 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); obj239.Steps = list359; reference266 = obj239; - ref QuestSequence reference267 = ref span109[2]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 2 @@ -237593,21 +285994,27 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); + span3 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); obj240.Steps = list360; reference267 = obj240; - ref QuestSequence reference268 = ref span109[3]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 2010098u, new Vector3(-137.59064f, 353.53625f, -192.52313f), 814); + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010098u, new Vector3(-137.59064f, 353.53625f, -192.52313f), 814); obj241.Steps = list361; reference268 = obj241; - ref QuestSequence reference269 = ref span109[4]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -237615,7 +286022,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) { StopDistance = 7f }; @@ -237628,27 +286037,33 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list363); + index = 0; + span[index] = "liza"; questRoot42.Author = list363; - num = 4; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span110 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference270 = ref span110[0]; + index = 4; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + span2 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) { StopDistance = 7f }; obj243.Steps = list365; reference270 = obj243; - ref QuestSequence reference271 = ref span110[1]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -237656,24 +286071,29 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1030254u, new Vector3(-132.82983f, 354.35815f, -177.20306f), 814); + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030254u, new Vector3(-132.82983f, 354.35815f, -177.20306f), 814); obj244.Steps = list366; reference271 = obj244; - ref QuestSequence reference272 = ref span110[2]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - Span span111 = CollectionsMarshal.AsSpan(list367); - span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814) + index2 = 5; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814) { StopDistance = 5f, PickUpQuestId = new QuestId(3537) }; - span111[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-122.537926f, 352.3582f, -173.26604f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-122.537926f, 352.3582f, -173.26604f), 814) { StopDistance = 0.5f, Mount = true, @@ -237682,19 +286102,23 @@ public static class AssemblyQuestLoader Position = new Vector3(-119.30471f, 349.90027f, -158.2842f) } }; - span111[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010042u, new Vector3(-62.912964f, 345.11328f, -16.556091f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010042u, new Vector3(-62.912964f, 345.11328f, -16.556091f), 814) { AetherCurrentId = 2818246u }; - span111[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.071743f, 324.03458f, 14.810446f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.071743f, 324.03458f, 14.810446f), 814) { DisableNavmesh = true, Mount = true }; - span111[4] = new QuestStep(EInteractionType.Interact, 1030293u, new Vector3(-5.1728516f, 324.3521f, 190.50879f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030293u, new Vector3(-5.1728516f, 324.3521f, 190.50879f), 814); obj245.Steps = list367; reference272 = obj245; - ref QuestSequence reference273 = ref span110[3]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue @@ -237702,8 +286126,9 @@ public static class AssemblyQuestLoader num2 = 2; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span112 = CollectionsMarshal.AsSpan(list368); - span112[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-92.20083f, 351.37643f, -192.06285f), 814) + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-92.20083f, 351.37643f, -192.06285f), 814) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -237711,7 +286136,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-106.80138f, 352.33783f, -196.68427f) } }; - span112[1] = new QuestStep(EInteractionType.CompleteQuest, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); obj246.Steps = list368; reference273 = obj246; questRoot42.QuestSequence = list364; @@ -237721,27 +286147,33 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - CollectionsMarshal.AsSpan(list369)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list369); + index = 0; + span[index] = "liza"; questRoot43.Author = list369; - num = 7; - List list370 = new List(num); - CollectionsMarshal.SetCount(list370, num); - Span span113 = CollectionsMarshal.AsSpan(list370); - ref QuestSequence reference274 = ref span113[0]; + index = 7; + List list370 = new List(index); + CollectionsMarshal.SetCount(list370, index); + span2 = CollectionsMarshal.AsSpan(list370); + num = 0; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030295u, new Vector3(-140.00159f, 352.35822f, -187.91486f), 814) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030295u, new Vector3(-140.00159f, 352.35822f, -187.91486f), 814) { StopDistance = 5f }; obj247.Steps = list371; reference274 = obj247; - ref QuestSequence reference275 = ref span113[1]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 @@ -237749,12 +286181,16 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - ref QuestStep reference276 = ref CollectionsMarshal.AsSpan(list372)[0]; + span3 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + ref QuestStep reference276 = ref span3[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); - num3 = 1; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice + num4 = 1; + List list373 = new List(num4); + CollectionsMarshal.SetCount(list373, num4); + span5 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME114_03643_Q1_000_000"), @@ -237764,21 +286200,25 @@ public static class AssemblyQuestLoader reference276 = questStep29; obj248.Steps = list372; reference275 = obj248; - ref QuestSequence reference277 = ref span113[2]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1030302u, new Vector3(-173.44934f, 460.47067f, -797.3602f), 814) + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span3 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030302u, new Vector3(-173.44934f, 460.47067f, -797.3602f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj249.Steps = list374; reference277 = obj249; - ref QuestSequence reference278 = ref span113[3]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 @@ -237786,7 +286226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -237796,19 +286238,23 @@ public static class AssemblyQuestLoader }; obj250.Steps = list375; reference278 = obj250; - span113[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference279 = ref span113[5]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Duty, null, null, 880) + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 880) { DutyOptions = new DutyOptions { @@ -237817,7 +286263,8 @@ public static class AssemblyQuestLoader }; obj251.Steps = list376; reference279 = obj251; - ref QuestSequence reference280 = ref span113[6]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue @@ -237825,7 +286272,9 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030303u, new Vector3(109.23926f, 0.0140714925f, 108.72046f), 880); + span3 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030303u, new Vector3(109.23926f, 0.0140714925f, 108.72046f), 880); obj252.Steps = list377; reference280 = obj252; questRoot43.QuestSequence = list370; @@ -237835,27 +286284,33 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list378); + index = 0; + span[index] = "liza"; questRoot44.Author = list378; - num = 5; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span114 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference281 = ref span114[0]; + index = 5; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + span2 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj253.Steps = list380; reference281 = obj253; - ref QuestSequence reference282 = ref span114[1]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 @@ -237863,7 +286318,9 @@ public static class AssemblyQuestLoader num2 = 1; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) + span3 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { AethernetShortcut = new AethernetShortcut { @@ -237873,18 +286330,22 @@ public static class AssemblyQuestLoader }; obj254.Steps = list381; reference282 = obj254; - ref QuestSequence reference283 = ref span114[2]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819); + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + span3 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819); obj255.Steps = list382; reference283 = obj255; - ref QuestSequence reference284 = ref span114[3]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 3 @@ -237892,7 +286353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + span3 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut { @@ -237902,15 +286365,18 @@ public static class AssemblyQuestLoader }; obj256.Steps = list383; reference284 = obj256; - ref QuestSequence reference285 = ref span114[4]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) + index2 = 1; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + span3 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -237928,13 +286394,16 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list385); + index = 0; + span[index] = "liza"; questRoot45.Author = list385; - num = 4; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span115 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference286 = ref span115[0]; + index = 4; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + span2 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -237942,18 +286411,23 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); + span3 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); obj258.Steps = list387; reference286 = obj258; - ref QuestSequence reference287 = ref span115[1]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 2010136u, new Vector3(-223.46838f, 38.590088f, -86.86963f), 819) + index2 = 1; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + span3 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010136u, new Vector3(-223.46838f, 38.590088f, -86.86963f), 819) { AethernetShortcut = new AethernetShortcut { @@ -237963,7 +286437,8 @@ public static class AssemblyQuestLoader }; obj259.Steps = list388; reference287 = obj259; - ref QuestSequence reference288 = ref span115[2]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -237971,8 +286446,9 @@ public static class AssemblyQuestLoader num2 = 4; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span116 = CollectionsMarshal.AsSpan(list389); - ref QuestStep reference289 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + ref QuestStep reference289 = ref span3[index2]; QuestStep obj261 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.1477f, 0f, -78.01033f), 819) { DisableNavmesh = true @@ -237982,32 +286458,46 @@ public static class AssemblyQuestLoader num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - Span span117 = CollectionsMarshal.AsSpan(list390); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list390; skipConditions4.StepIf = skipStepConditions3; obj261.SkipConditions = skipConditions4; reference289 = obj261; - ref QuestStep reference290 = ref span116[1]; + index2++; + ref QuestStep reference290 = ref span3[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); - num3 = 6; - List list391 = new List(num3); - CollectionsMarshal.SetCount(list391, num3); - Span span118 = CollectionsMarshal.AsSpan(list391); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list391 = new List(num4); + CollectionsMarshal.SetCount(list391, num4); + span4 = CollectionsMarshal.AsSpan(list391); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list391; reference290 = questStep30; - ref QuestStep reference291 = ref span116[2]; + index2++; + ref QuestStep reference291 = ref span3[index2]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut @@ -238019,16 +286509,23 @@ public static class AssemblyQuestLoader num3 = 6; List list392 = new List(num3); CollectionsMarshal.SetCount(list392, num3); - Span span119 = CollectionsMarshal.AsSpan(list392); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list392); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj262.CompletionQuestVariablesFlags = list392; reference291 = obj262; - ref QuestStep reference292 = ref span116[3]; + index2++; + ref QuestStep reference292 = ref span3[index2]; QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -238038,30 +286535,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - num3 = 6; - List list393 = new List(num3); - CollectionsMarshal.SetCount(list393, num3); - Span span120 = CollectionsMarshal.AsSpan(list393); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list393 = new List(num4); + CollectionsMarshal.SetCount(list393, num4); + span4 = CollectionsMarshal.AsSpan(list393); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj263.CompletionQuestVariablesFlags = list393; reference292 = obj263; obj260.Steps = list389; reference288 = obj260; - ref QuestSequence reference293 = ref span115[3]; + num++; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span121 = CollectionsMarshal.AsSpan(list394); - span121[0] = new QuestStep(EInteractionType.None, null, null, 819) + index2 = 3; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + span3 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -238069,7 +286574,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(608.7031f, 12.602462f, 311.77286f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(608.7031f, 12.602462f, 311.77286f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -238080,7 +286586,8 @@ public static class AssemblyQuestLoader } } }; - span121[2] = new QuestStep(EInteractionType.CompleteQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); obj264.Steps = list394; reference293 = obj264; questRoot45.QuestSequence = list386; @@ -238090,13 +286597,16 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list395); + index = 0; + span[index] = "liza"; questRoot46.Author = list395; - num = 5; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span122 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference294 = ref span122[0]; + index = 5; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + span2 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 @@ -238104,18 +286614,23 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); + span3 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); obj265.Steps = list397; reference294 = obj265; - ref QuestSequence reference295 = ref span122[1]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference296 = ref CollectionsMarshal.AsSpan(list398)[0]; + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + span3 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + ref QuestStep reference296 = ref span3[num2]; QuestStep obj267 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -238135,7 +286650,9 @@ public static class AssemblyQuestLoader num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMF103_03646_Q0_000_006") @@ -238144,7 +286661,8 @@ public static class AssemblyQuestLoader reference296 = obj267; obj266.Steps = list398; reference295 = obj266; - ref QuestSequence reference297 = ref span122[2]; + num++; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 2 @@ -238152,12 +286670,16 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list400)[0]; + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + ref QuestStep reference298 = ref span3[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1030370u, new Vector3(66.84973f, -2.9802322E-07f, 13.321045f), 819); - num3 = 1; - List list401 = new List(num3); - CollectionsMarshal.SetCount(list401, num3); - CollectionsMarshal.AsSpan(list401)[0] = new DialogueChoice + num4 = 1; + List list401 = new List(num4); + CollectionsMarshal.SetCount(list401, num4); + span5 = CollectionsMarshal.AsSpan(list401); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF103_03646_Q1_000_000"), @@ -238167,16 +286689,18 @@ public static class AssemblyQuestLoader reference298 = questStep31; obj268.Steps = list400; reference297 = obj268; - ref QuestSequence reference299 = ref span122[3]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - Span span123 = CollectionsMarshal.AsSpan(list402); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(59.71554f, 36.19769f, -167.87686f), 819) + index2 = 2; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + span3 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(59.71554f, 36.19769f, -167.87686f), 819) { AethernetShortcut = new AethernetShortcut { @@ -238184,13 +286708,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) { StopDistance = 7f }; obj269.Steps = list402; reference299 = obj269; - ref QuestSequence reference300 = ref span122[4]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -238198,7 +286724,9 @@ public static class AssemblyQuestLoader num2 = 1; List list403 = new List(num2); CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) + span3 = CollectionsMarshal.AsSpan(list403); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) { StopDistance = 7f }; @@ -238211,27 +286739,33 @@ public static class AssemblyQuestLoader num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - CollectionsMarshal.AsSpan(list404)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list404); + index = 0; + span[index] = "liza"; questRoot47.Author = list404; - num = 5; - List list405 = new List(num); - CollectionsMarshal.SetCount(list405, num); - Span span124 = CollectionsMarshal.AsSpan(list405); - ref QuestSequence reference301 = ref span124[0]; + index = 5; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + span2 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + span3 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) { StopDistance = 7f }; obj271.Steps = list406; reference301 = obj271; - ref QuestSequence reference302 = ref span124[1]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -238239,8 +286773,9 @@ public static class AssemblyQuestLoader num2 = 5; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span125 = CollectionsMarshal.AsSpan(list407); - span125[0] = new QuestStep(EInteractionType.None, null, null, 819) + span3 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -238248,7 +286783,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span125[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -238259,7 +286795,8 @@ public static class AssemblyQuestLoader } } }; - span125[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -238270,7 +286807,8 @@ public static class AssemblyQuestLoader } } }; - span125[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -238280,32 +286818,37 @@ public static class AssemblyQuestLoader } } }; - span125[4] = new QuestStep(EInteractionType.Interact, 1030346u, new Vector3(-145.09808f, 9.572956f, 704.6769f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030346u, new Vector3(-145.09808f, 9.572956f, 704.6769f), 813) { StopDistance = 1f, Fly = true }; obj272.Steps = list407; reference302 = obj272; - ref QuestSequence reference303 = ref span124[2]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - Span span126 = CollectionsMarshal.AsSpan(list408); - span126[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-164.90442f, -1.9743931f, 688.2283f), 813) + index2 = 4; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span3 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-164.90442f, -1.9743931f, 688.2283f), 813) { StopDistance = 0.5f, DisableNavmesh = true }; - span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-578.07544f, -28.413673f, 749.037f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-578.07544f, -28.413673f, 749.037f), 813) { DisableNavmesh = true }; - ref QuestStep reference304 = ref span126[2]; + num2++; + ref QuestStep reference304 = ref span3[num2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2010138u, new Vector3(-606.46985f, -28.183472f, 768.6731f), 813) { DisableNavmesh = true @@ -238313,32 +286856,46 @@ public static class AssemblyQuestLoader num3 = 6; List list409 = new List(num3); CollectionsMarshal.SetCount(list409, num3); - Span span127 = CollectionsMarshal.AsSpan(list409); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list409); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj274.CompletionQuestVariablesFlags = list409; reference304 = obj274; - ref QuestStep reference305 = ref span126[3]; + num2++; + ref QuestStep reference305 = ref span3[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2010137u, new Vector3(-687.83093f, -40.299072f, 729.36584f), 813); - num3 = 6; - List list410 = new List(num3); - CollectionsMarshal.SetCount(list410, num3); - Span span128 = CollectionsMarshal.AsSpan(list410); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list410 = new List(num4); + CollectionsMarshal.SetCount(list410, num4); + span4 = CollectionsMarshal.AsSpan(list410); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list410; reference305 = questStep32; obj273.Steps = list408; reference303 = obj273; - ref QuestSequence reference306 = ref span124[3]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 3 @@ -238346,13 +286903,15 @@ public static class AssemblyQuestLoader num2 = 4; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span129 = CollectionsMarshal.AsSpan(list411); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-667.5838f, -1.974393f, 698.4002f), 813) + span3 = CollectionsMarshal.AsSpan(list411); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-667.5838f, -1.974393f, 698.4002f), 813) { DisableNavmesh = true, Mount = true }; - span129[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) { SkipConditions = new SkipConditions { @@ -238362,7 +286921,8 @@ public static class AssemblyQuestLoader } } }; - span129[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -238373,7 +286933,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference307 = ref span129[3]; + index2++; + ref QuestStep reference307 = ref span3[index2]; QuestStep obj276 = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { Fly = true @@ -238381,7 +286942,9 @@ public static class AssemblyQuestLoader num3 = 1; List list412 = new List(num3); CollectionsMarshal.SetCount(list412, num3); - CollectionsMarshal.AsSpan(list412)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list412); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF104_03647_Q1_000_000"), @@ -238391,15 +286954,18 @@ public static class AssemblyQuestLoader reference307 = obj276; obj275.Steps = list411; reference306 = obj275; - ref QuestSequence reference308 = ref span124[4]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030339u, new Vector3(282.4292f, 414.78137f, -857.02295f), 818) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030339u, new Vector3(282.4292f, 414.78137f, -857.02295f), 818) { StopDistance = 5f, DisableNavmesh = true @@ -238413,13 +286979,16 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - CollectionsMarshal.AsSpan(list414)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list414); + index = 0; + span[index] = "liza"; questRoot48.Author = list414; - num = 6; - List list415 = new List(num); - CollectionsMarshal.SetCount(list415, num); - Span span130 = CollectionsMarshal.AsSpan(list415); - ref QuestSequence reference309 = ref span130[0]; + index = 6; + List list415 = new List(index); + CollectionsMarshal.SetCount(list415, index); + span2 = CollectionsMarshal.AsSpan(list415); + num = 0; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 0 @@ -238427,29 +286996,35 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030336u, new Vector3(278.7976f, 414.807f, -851.2856f), 818) + span3 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030336u, new Vector3(278.7976f, 414.807f, -851.2856f), 818) { DisableNavmesh = true }; obj278.Steps = list416; reference309 = obj278; - ref QuestSequence reference310 = ref span130[1]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - Span span131 = CollectionsMarshal.AsSpan(list417); - span131[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010074u, new Vector3(358.20544f, 396.536f, -715.90753f), 818) + index2 = 2; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + span3 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010074u, new Vector3(358.20544f, 396.536f, -715.90753f), 818) { AetherCurrentId = 2818298u }; - span131[1] = new QuestStep(EInteractionType.Interact, 1030514u, new Vector3(479.5758f, 368.87827f, -340.99335f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030514u, new Vector3(479.5758f, 368.87827f, -340.99335f), 818); obj279.Steps = list417; reference310 = obj279; - ref QuestSequence reference311 = ref span130[2]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = 2 @@ -238457,26 +287032,32 @@ public static class AssemblyQuestLoader num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span132 = CollectionsMarshal.AsSpan(list418); - span132[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) + span3 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) { Aetheryte = EAetheryteLocation.TempestOndoCups }; - span132[1] = new QuestStep(EInteractionType.Interact, 1030515u, new Vector3(605.3711f, 350.3518f, -196.91772f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030515u, new Vector3(605.3711f, 350.3518f, -196.91772f), 818); obj280.Steps = list418; reference311 = obj280; - ref QuestSequence reference312 = ref span130[3]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.Interact, 1030516u, new Vector3(569.4209f, 350.03647f, -227.95453f), 818); + index2 = 1; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030516u, new Vector3(569.4209f, 350.03647f, -227.95453f), 818); obj281.Steps = list419; reference312 = obj281; - ref QuestSequence reference313 = ref span130[4]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 4 @@ -238484,15 +287065,19 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - ref QuestStep reference314 = ref CollectionsMarshal.AsSpan(list420)[0]; + span3 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + ref QuestStep reference314 = ref span3[index2]; QuestStep obj283 = new QuestStep(EInteractionType.Combat, null, new Vector3(796.1852f, 449.08664f, -710.04565f), 818) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list421 = new List(num3); - CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = new ComplexCombatData + num4 = 1; + List list421 = new List(num4); + CollectionsMarshal.SetCount(list421, num4); + span7 = CollectionsMarshal.AsSpan(list421); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 10316u, MinimumKillCount = 3u @@ -238501,15 +287086,18 @@ public static class AssemblyQuestLoader reference314 = obj283; obj282.Steps = list420; reference313 = obj282; - ref QuestSequence reference315 = ref span130[5]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) + index2 = 1; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + span3 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -238522,13 +287110,16 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - CollectionsMarshal.AsSpan(list423)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list423); + index = 0; + span[index] = "liza"; questRoot49.Author = list423; - num = 6; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - Span span133 = CollectionsMarshal.AsSpan(list424); - ref QuestSequence reference316 = ref span133[0]; + index = 6; + List list424 = new List(index); + CollectionsMarshal.SetCount(list424, index); + span2 = CollectionsMarshal.AsSpan(list424); + num = 0; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = 0 @@ -238536,26 +287127,32 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030517u, new Vector3(578.7594f, 349.86563f, -231.00635f), 818); + span3 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030517u, new Vector3(578.7594f, 349.86563f, -231.00635f), 818); obj285.Steps = list425; reference316 = obj285; - ref QuestSequence reference317 = ref span133[1]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - Span span134 = CollectionsMarshal.AsSpan(list426); - span134[0] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818) + index2 = 2; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + span3 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818) { PickUpQuestId = new QuestId(3588) }; - span134[1] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); obj286.Steps = list426; reference317 = obj286; - ref QuestSequence reference318 = ref span133[2]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 2 @@ -238563,8 +287160,9 @@ public static class AssemblyQuestLoader num2 = 3; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span135 = CollectionsMarshal.AsSpan(list427); - ref QuestStep reference319 = ref span135[0]; + span3 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + ref QuestStep reference319 = ref span3[index2]; QuestStep obj288 = new QuestStep(EInteractionType.Snipe, 2010141u, new Vector3(405.38635f, 361.22668f, -414.38928f), 818) { Comment = "Click top left (broken) window" @@ -238572,48 +287170,66 @@ public static class AssemblyQuestLoader num3 = 6; List list428 = new List(num3); CollectionsMarshal.SetCount(list428, num3); - Span span136 = CollectionsMarshal.AsSpan(list428); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list428); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj288.CompletionQuestVariablesFlags = list428; reference319 = obj288; - span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.9114f, 353.76694f, -475.44562f), 818); - ref QuestStep reference320 = ref span135[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.9114f, 353.76694f, -475.44562f), 818); + index2++; + ref QuestStep reference320 = ref span3[index2]; QuestStep obj289 = new QuestStep(EInteractionType.UseItem, 2010142u, new Vector3(326.8329f, 355.79456f, -477.53113f), 818) { StopDistance = 4f, ItemId = 2002673u }; - num3 = 6; - List list429 = new List(num3); - CollectionsMarshal.SetCount(list429, num3); - Span span137 = CollectionsMarshal.AsSpan(list429); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list429 = new List(num4); + CollectionsMarshal.SetCount(list429, num4); + span4 = CollectionsMarshal.AsSpan(list429); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj289.CompletionQuestVariablesFlags = list429; reference320 = obj289; obj287.Steps = list427; reference318 = obj287; - ref QuestSequence reference321 = ref span133[3]; + num++; + ref QuestSequence reference321 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + span3 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); obj290.Steps = list430; reference321 = obj290; - ref QuestSequence reference322 = ref span133[4]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 4 @@ -238621,23 +287237,28 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span138 = CollectionsMarshal.AsSpan(list431); - span138[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010076u, new Vector3(50.18689f, 380.0868f, -512.0775f), 818) + span3 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010076u, new Vector3(50.18689f, 380.0868f, -512.0775f), 818) { AetherCurrentId = 2818300u }; - span138[1] = new QuestStep(EInteractionType.Interact, 2010143u, new Vector3(25.711426f, 381.6128f, -522.3316f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010143u, new Vector3(25.711426f, 381.6128f, -522.3316f), 818); obj291.Steps = list431; reference322 = obj291; - ref QuestSequence reference323 = ref span133[5]; + num++; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + span3 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) { StopDistance = 5f }; @@ -238654,13 +287275,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -238668,21 +287292,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups @@ -238690,7 +287319,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF107_03650_Q1_000_000"), @@ -238700,7 +287331,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -238708,24 +287340,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Emote, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818) { Emote = EEmote.Psych }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -238733,12 +287371,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span4 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMF107_03650_A3_000_000") @@ -238754,24 +287396,30 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "liza"; questRoot2.Author = list10; - num = 10; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span2 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span2[0]; + index = 10; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -238779,24 +287427,30 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1031279u, new Vector3(514.6715f, 356.58453f, -268.51306f), 818); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031279u, new Vector3(514.6715f, 356.58453f, -268.51306f), 818); obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span2[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -238804,48 +287458,45 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span3 = CollectionsMarshal.AsSpan(list15); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.2212f, 316.451f, -300.7331f), 818) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.2212f, 316.451f, -300.7331f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.52316f, 313.60648f, -294.83905f), 818) { - StopDistance = 1f - }; - span3[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.52316f, 313.60648f, -294.83905f), 818) - { - StopDistance = 1f, DisableNavmesh = true }; - span3[2] = new QuestStep(EInteractionType.Interact, 1030570u, new Vector3(400.59497f, 303.51035f, -245.10571f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030570u, new Vector3(400.59497f, 303.51035f, -245.10571f), 818); obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span2[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span4 = CollectionsMarshal.AsSpan(list16); - span4[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010079u, new Vector3(339.1012f, 298.6953f, -280.01837f), 818) + index2 = 3; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010079u, new Vector3(339.1012f, 298.6953f, -280.01837f), 818) { AetherCurrentId = 2818303u }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.3423f, 268.31516f, -346.18488f), 818); - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(277.46622f, 262.43375f, -328.6956f), 818) - { - StopDistance = 1f, - DisableNavmesh = true, - Mount = false - }; - span4[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.40463f, 235.09933f, -321.0536f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.75064f, 235.3896f, -277.77203f), 818) { DisableNavmesh = true, Mount = false }; - span4[4] = new QuestStep(EInteractionType.Interact, 1030532u, new Vector3(302.02173f, 238.75215f, -346.15094f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030532u, new Vector3(302.02173f, 238.75215f, -346.15094f), 818); obj11.Steps = list16; reference12 = obj11; - ref QuestSequence reference13 = ref span2[5]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 5 @@ -238853,21 +287504,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1030527u, new Vector3(87.937744f, 199.56166f, -143.0534f), 818); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030527u, new Vector3(87.937744f, 199.56166f, -143.0534f), 818); obj12.Steps = list17; reference13 = obj12; - ref QuestSequence reference14 = ref span2[6]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1030528u, new Vector3(-182.66577f, 139.76859f, -220.93542f), 818); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030528u, new Vector3(-182.66577f, 139.76859f, -220.93542f), 818); obj13.Steps = list18; reference14 = obj13; - ref QuestSequence reference15 = ref span2[7]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 7 @@ -238875,23 +287532,29 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030534u, new Vector3(-501.915f, 127.18983f, -257.435f), 818); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030534u, new Vector3(-501.915f, 127.18983f, -257.435f), 818); obj14.Steps = list19; reference15 = obj14; - ref QuestSequence reference16 = ref span2[8]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-634.109f, 98.06235f, -336.91452f), 818); - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.7743f, 73.83459f, -217.70619f), 818); + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-634.109f, 98.06235f, -336.91452f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.7743f, 73.83459f, -217.70619f), 818); obj15.Steps = list20; reference16 = obj15; - ref QuestSequence reference17 = ref span2[9]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -238899,7 +287562,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030344u, new Vector3(-792.9656f, 73.244484f, -211.62744f), 818) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030344u, new Vector3(-792.9656f, 73.244484f, -211.62744f), 818) { StopDistance = 7f }; @@ -238912,24 +287577,30 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot3.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference18 = ref span6[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030341u, new Vector3(-794.91876f, 72.44565f, -203.05182f), 818); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030341u, new Vector3(-794.91876f, 72.44565f, -203.05182f), 818); obj17.Steps = list24; reference18 = obj17; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -238937,26 +287608,32 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010083u, new Vector3(-774.25806f, 63.1875f, -97.73407f), 818) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010083u, new Vector3(-774.25806f, 63.1875f, -97.73407f), 818) { AetherCurrentId = 2818307u }; - span7[1] = new QuestStep(EInteractionType.Interact, 2010144u, new Vector3(-610.5898f, 46.341675f, 94.01074f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010144u, new Vector3(-610.5898f, 46.341675f, 94.01074f), 818); obj18.Steps = list25; reference19 = obj18; - ref QuestSequence reference20 = ref span6[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1030546u, new Vector3(-592.9503f, -288.06882f, 151.20166f), 818); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030546u, new Vector3(-592.9503f, -288.06882f, 151.20166f), 818); obj19.Steps = list26; reference20 = obj19; - ref QuestSequence reference21 = ref span6[3]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -238964,60 +287641,84 @@ public static class AssemblyQuestLoader num2 = 3; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span8 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference22 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference22 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1030551u, new Vector3(-703.60876f, -245.36801f, 509.14783f), 818); num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span9 = CollectionsMarshal.AsSpan(list28); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list28; reference22 = questStep2; - ref QuestStep reference23 = ref span8[1]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1030552u, new Vector3(-494.16345f, -250.89603f, 365.7129f), 818); - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span10 = CollectionsMarshal.AsSpan(list29); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list29; reference23 = questStep3; - ref QuestStep reference24 = ref span8[2]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1030553u, new Vector3(-364.27863f, -260.1766f, 291.0963f), 818); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span11 = CollectionsMarshal.AsSpan(list30); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list30; reference24 = questStep4; obj20.Steps = list27; reference21 = obj20; - ref QuestSequence reference25 = ref span6[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); obj21.Steps = list31; reference25 = obj21; questRoot3.QuestSequence = list23; @@ -239027,13 +287728,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "liza"; questRoot4.Author = list32; - num = 8; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span12 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference26 = ref span12[0]; + index = 8; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span2 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -239041,42 +287745,52 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); obj22.Steps = list34; reference26 = obj22; - ref QuestSequence reference27 = ref span12[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span13 = CollectionsMarshal.AsSpan(list35); - span13[0] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818) + index2 = 6; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818) { PickUpQuestId = new QuestId(3593) }; - span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818) { PickUpQuestId = new QuestId(3594) }; - span13[2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818) { PickUpQuestId = new QuestId(3592) }; - span13[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) { Aetheryte = EAetheryteLocation.TempestMacarensesAngle }; - span13[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); - span13[5] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj23.Steps = list35; reference27 = obj23; - ref QuestSequence reference28 = ref span12[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -239084,26 +287798,32 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 2010147u, new Vector3(1.5106201f, -276.93604f, 261.64636f), 818); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010147u, new Vector3(1.5106201f, -276.93604f, 261.64636f), 818); obj24.Steps = list36; reference28 = obj24; - ref QuestSequence reference29 = ref span12[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span14 = CollectionsMarshal.AsSpan(list37); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); - span14[1] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj25.Steps = list37; reference29 = obj25; - ref QuestSequence reference30 = ref span12[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -239111,26 +287831,32 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span15 = CollectionsMarshal.AsSpan(list38); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); - span15[1] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) { StopDistance = 7f }; obj26.Steps = list38; reference30 = obj26; - ref QuestSequence reference31 = ref span12[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2010148u, new Vector3(285.69458f, -272.78558f, 672.02246f), 818); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010148u, new Vector3(285.69458f, -272.78558f, 672.02246f), 818); obj27.Steps = list39; reference31 = obj27; - ref QuestSequence reference32 = ref span12[6]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 6 @@ -239138,28 +287864,33 @@ public static class AssemblyQuestLoader num2 = 2; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span16 = CollectionsMarshal.AsSpan(list40); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); - span16[1] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) { StopDistance = 7f }; obj28.Steps = list40; reference32 = obj28; - ref QuestSequence reference33 = ref span12[7]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.05957f, -266.0001f, 444.7069f), 818) + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.05957f, -266.0001f, 444.7069f), 818) { AetheryteShortcut = EAetheryteLocation.TempestMacarensesAngle }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818); obj29.Steps = list41; reference33 = obj29; questRoot4.QuestSequence = list33; @@ -239169,13 +287900,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot5.Author = list42; - num = 13; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span18 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span18[0]; + index = 13; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -239183,27 +287917,33 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030557u, new Vector3(-244.70898f, -266.0001f, 448.3557f), 818) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030557u, new Vector3(-244.70898f, -266.0001f, 448.3557f), 818) { StopDistance = 5f }; obj30.Steps = list44; reference34 = obj30; - ref QuestSequence reference35 = ref span18[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1030556u, new Vector3(-246.2959f, -266.0001f, 446.1891f), 818) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030556u, new Vector3(-246.2959f, -266.0001f, 446.1891f), 818) { StopDistance = 5f }; obj31.Steps = list45; reference35 = obj31; - ref QuestSequence reference36 = ref span18[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -239211,27 +287951,33 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1030561u, new Vector3(-243.39667f, -266.0001f, 442.4657f), 818) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030561u, new Vector3(-243.39667f, -266.0001f, 442.4657f), 818) { StopDistance = 5f }; obj32.Steps = list46; reference36 = obj32; - ref QuestSequence reference37 = ref span18[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1030560u, new Vector3(-246.02124f, -266.0001f, 443.4729f), 818) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030560u, new Vector3(-246.02124f, -266.0001f, 443.4729f), 818) { StopDistance = 5f }; obj33.Steps = list47; reference37 = obj33; - ref QuestSequence reference38 = ref span18[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -239239,27 +287985,33 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818) { StopDistance = 5f }; obj34.Steps = list48; reference38 = obj34; - ref QuestSequence reference39 = ref span18[5]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1030559u, new Vector3(-242.66425f, -266.0001f, 447.83704f), 818) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030559u, new Vector3(-242.66425f, -266.0001f, 447.83704f), 818) { StopDistance = 5f }; obj35.Steps = list49; reference39 = obj35; - ref QuestSequence reference40 = ref span18[6]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 6 @@ -239267,21 +288019,26 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1030562u, new Vector3(-356.8628f, -229.0648f, 700.34326f), 818) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030562u, new Vector3(-356.8628f, -229.0648f, 700.34326f), 818) { Fly = true }; obj36.Steps = list50; reference40 = obj36; - ref QuestSequence reference41 = ref span18[7]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Duty, null, null, 818) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 818) { DutyOptions = new DutyOptions { @@ -239290,11 +288047,13 @@ public static class AssemblyQuestLoader }; obj37.Steps = list51; reference41 = obj37; - span18[8] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 8 }; - ref QuestSequence reference42 = ref span18[9]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 9 @@ -239302,7 +288061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Duty, null, null, 881) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 881) { DutyOptions = new DutyOptions { @@ -239311,22 +288072,27 @@ public static class AssemblyQuestLoader }; obj38.Steps = list52; reference42 = obj38; - span18[10] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 10 }; - ref QuestSequence reference43 = ref span18[11]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1030576u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030576u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); obj39.Steps = list53; reference43 = obj39; - ref QuestSequence reference44 = ref span18[12]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -239334,13 +288100,15 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - span19[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj40.Steps = list54; reference44 = obj40; questRoot5.QuestSequence = list43; @@ -239350,24 +288118,30 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot6.Author = list55; - num = 4; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span20 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference45 = ref span20[0]; + index = 4; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817); obj41.Steps = list57; reference45 = obj41; - ref QuestSequence reference46 = ref span20[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -239375,21 +288149,27 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); obj42.Steps = list58; reference46 = obj42; - ref QuestSequence reference47 = ref span20[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 2010348u, new Vector3(-354.5739f, 7.3395386f, 266.65137f), 817); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010348u, new Vector3(-354.5739f, 7.3395386f, 266.65137f), 817); obj43.Steps = list59; reference47 = obj43; - ref QuestSequence reference48 = ref span20[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -239397,7 +288177,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030821u, new Vector3(-524.4679f, 0.08425587f, 227.00842f), 817); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030821u, new Vector3(-524.4679f, 0.08425587f, 227.00842f), 817); obj44.Steps = list60; reference48 = obj44; questRoot6.QuestSequence = list56; @@ -239407,24 +288189,30 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; questRoot7.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span21 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference49 = ref span21[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); obj45.Steps = list63; reference49 = obj45; - ref QuestSequence reference50 = ref span21[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -239432,21 +288220,27 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); obj46.Steps = list64; reference50 = obj46; - ref QuestSequence reference51 = ref span21[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); obj47.Steps = list65; reference51 = obj47; - ref QuestSequence reference52 = ref span21[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -239454,7 +288248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030824u, new Vector3(-28.732727f, -23.695421f, 320.39355f), 817) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030824u, new Vector3(-28.732727f, -23.695421f, 320.39355f), 817) { StopDistance = 5f, NextQuestId = new QuestId(3658) @@ -239468,24 +288264,30 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "liza"; questRoot8.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span22 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference53 = ref span22[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); obj49.Steps = list69; reference53 = obj49; - ref QuestSequence reference54 = ref span22[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -239493,21 +288295,26 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2010352u, new Vector3(-322.65204f, 14.90802f, -181.53668f), 817) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010352u, new Vector3(-322.65204f, 14.90802f, -181.53668f), 817) { Fly = true }; obj50.Steps = list70; reference54 = obj50; - ref QuestSequence reference55 = ref span22[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, NextQuestId = new QuestId(3659) @@ -239521,13 +288328,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; questRoot9.Author = list72; - num = 6; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span23 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference56 = ref span23[0]; + index = 6; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -239535,32 +288345,40 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); obj52.Steps = list74; reference56 = obj52; - ref QuestSequence reference57 = ref span23[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 11153u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span6 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span6[num3] = 11153u; obj54.KillEnemyDataIds = list76; reference58 = obj54; obj53.Steps = list75; reference57 = obj53; - ref QuestSequence reference59 = ref span23[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -239568,18 +288386,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817); obj55.Steps = list77; reference59 = obj55; - ref QuestSequence reference60 = ref span23[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list78)[0]; + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference61 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-500.49435f, 7.3168135f, 93.674324f), 817) { StopDistance = 0.5f, @@ -239589,12 +288412,15 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = 11154u; + span6 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span6[index3] = 11154u; obj57.KillEnemyDataIds = list79; reference61 = obj57; obj56.Steps = list78; reference60 = obj56; - ref QuestSequence reference62 = ref span23[4]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -239602,21 +288428,26 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 2010522u, new Vector3(-501.5488f, 7.461609f, 96.94055f), 817) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010522u, new Vector3(-501.5488f, 7.461609f, 96.94055f), 817) { StopDistance = 4f }; obj58.Steps = list80; reference62 = obj58; - ref QuestSequence reference63 = ref span23[5]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -239629,13 +288460,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; questRoot10.Author = list82; - num = 9; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span24 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference64 = ref span24[0]; + index = 9; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -239643,7 +288477,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -239656,24 +288492,29 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference64 = obj60; - ref QuestSequence reference65 = ref span24[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = new DialogueChoice + index3 = 1; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span4 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q1_000_000") @@ -239682,7 +288523,8 @@ public static class AssemblyQuestLoader reference66 = obj62; obj61.Steps = list85; reference65 = obj61; - ref QuestSequence reference67 = ref span24[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -239690,7 +288532,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list87)[0]; + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) { StopDistance = 5f @@ -239698,7 +288542,9 @@ public static class AssemblyQuestLoader num3 = 1; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q2_000_000"), @@ -239708,21 +288554,25 @@ public static class AssemblyQuestLoader reference68 = obj64; obj63.Steps = list87; reference67 = obj63; - ref QuestSequence reference69 = ref span24[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; obj65.Steps = list89; reference69 = obj65; - ref QuestSequence reference70 = ref span24[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -239730,29 +288580,36 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2010753u, new Vector3(631.9523f, 325.82593f, -228.68695f), 814) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010753u, new Vector3(631.9523f, 325.82593f, -228.68695f), 814) { Fly = true }; obj66.Steps = list90; reference70 = obj66; - ref QuestSequence reference71 = ref span24[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list91)[0]; + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new DialogueChoice + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + span4 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q5_000_000"), @@ -239762,7 +288619,8 @@ public static class AssemblyQuestLoader reference72 = obj68; obj67.Steps = list91; reference71 = obj67; - ref QuestSequence reference73 = ref span24[6]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -239770,29 +288628,35 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span25 = CollectionsMarshal.AsSpan(list93); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(544.0766f, 295.72742f, -218.72057f), 814) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(544.0766f, 295.72742f, -218.72057f), 814) { Fly = true }; - span25[1] = new QuestStep(EInteractionType.Interact, 2010754u, new Vector3(542.9313f, 296.19275f, -217.02905f), 814); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010754u, new Vector3(542.9313f, 296.19275f, -217.02905f), 814); obj69.Steps = list93; reference73 = obj69; - ref QuestSequence reference74 = ref span24[7]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) { Fly = true }; obj70.Steps = list94; reference74 = obj70; - ref QuestSequence reference75 = ref span24[8]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -239800,7 +288664,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, NextQuestId = new QuestId(3717) @@ -239814,21 +288680,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "JerryWester"; questRoot11.Author = list96; - num = 6; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span26 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference76 = ref span26[0]; + index = 6; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 2010850u, new Vector3(-74.540344f, 10.696533f, 16.739136f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 2010850u, new Vector3(-74.540344f, 10.696533f, 16.739136f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -239841,7 +288712,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference76 = obj72; - ref QuestSequence reference77 = ref span26[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -239849,7 +288721,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut { @@ -239859,15 +288733,18 @@ public static class AssemblyQuestLoader }; obj73.Steps = list99; reference77 = obj73; - ref QuestSequence reference78 = ref span26[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list100)[0]; + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 2010920u, new Vector3(-141.13074f, -12.64978f, -33.585205f), 419) { AethernetShortcut = new AethernetShortcut @@ -239879,7 +288756,9 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA001_03672_Q3_000_000") @@ -239888,7 +288767,8 @@ public static class AssemblyQuestLoader reference79 = obj75; obj74.Steps = list100; reference78 = obj74; - ref QuestSequence reference80 = ref span26[3]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -239896,21 +288776,26 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1031989u, new Vector3(-139.17761f, -12.634913f, -33.951355f), 419) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031989u, new Vector3(-139.17761f, -12.634913f, -33.951355f), 419) { StopDistance = 7f }; obj76.Steps = list102; reference80 = obj76; - ref QuestSequence reference81 = ref span26[4]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list103)[0]; + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut @@ -239919,10 +288804,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + span4 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA001_03672_EVENTAREA_WARP_000_117") @@ -239931,7 +288818,8 @@ public static class AssemblyQuestLoader reference82 = obj78; obj77.Steps = list103; reference81 = obj77; - ref QuestSequence reference83 = ref span26[5]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -239939,7 +288827,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031684u, new Vector3(-7.156494f, -16f, 163.46985f), 886) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031684u, new Vector3(-7.156494f, -16f, 163.46985f), 886) { NextQuestId = new QuestId(3725) }; @@ -239952,26 +288842,33 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "liza"; questRoot12.Author = list106; - num = 4; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span27 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference84 = ref span27[0]; + index = 4; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list108)[0]; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference85 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG101_03673_Q1_000_500"), @@ -239981,7 +288878,8 @@ public static class AssemblyQuestLoader reference85 = questStep5; obj80.Steps = list108; reference84 = obj80; - ref QuestSequence reference86 = ref span27[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -239989,42 +288887,50 @@ public static class AssemblyQuestLoader num2 = 3; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span28 = CollectionsMarshal.AsSpan(list110); - span28[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span28[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span28[2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) { Fly = true }; obj81.Steps = list110; reference86 = obj81; - ref QuestSequence reference87 = ref span27[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span29 = CollectionsMarshal.AsSpan(list111); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - span29[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span29[2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj82.Steps = list111; reference87 = obj82; - ref QuestSequence reference88 = ref span27[3]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -240032,8 +288938,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span30 = CollectionsMarshal.AsSpan(list112); - span30[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -240043,7 +288950,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj83.Steps = list112; reference88 = obj83; questRoot12.QuestSequence = list107; @@ -240053,24 +288961,30 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; questRoot13.Author = list113; - num = 5; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span31 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference89 = ref span31[0]; + index = 5; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj84.Steps = list115; reference89 = obj84; - ref QuestSequence reference90 = ref span31[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -240078,8 +288992,9 @@ public static class AssemblyQuestLoader num2 = 6; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span32 = CollectionsMarshal.AsSpan(list116); - span32[0] = new QuestStep(EInteractionType.None, null, null, 819) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -240088,7 +289003,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -240099,7 +289015,8 @@ public static class AssemblyQuestLoader } } }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -240110,7 +289027,8 @@ public static class AssemblyQuestLoader } } }; - span32[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.93826f, 3.1323283f, 690.1962f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.93826f, 3.1323283f, 690.1962f), 813) { SkipConditions = new SkipConditions { @@ -240120,23 +289038,28 @@ public static class AssemblyQuestLoader } } }; - span32[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.65658f, -0.67464465f, 653.1527f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.65658f, -0.67464465f, 653.1527f), 813) { StopDistance = 0.5f, Fly = true }; - span32[5] = new QuestStep(EInteractionType.Interact, 1031726u, new Vector3(-116.80786f, -0.6811354f, 651.026f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031726u, new Vector3(-116.80786f, -0.6811354f, 651.026f), 813); obj85.Steps = list116; reference90 = obj85; - ref QuestSequence reference91 = ref span31[2]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Duty, null, null, 813) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 813) { DutyOptions = new DutyOptions { @@ -240145,11 +289068,13 @@ public static class AssemblyQuestLoader }; obj86.Steps = list117; reference91 = obj86; - span31[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference92 = ref span31[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -240157,7 +289082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813) { StopDistance = 5f }; @@ -240170,24 +289097,30 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "liza"; questRoot14.Author = list119; - num = 6; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span33 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference93 = ref span33[0]; + index = 6; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813); obj88.Steps = list121; reference93 = obj88; - ref QuestSequence reference94 = ref span33[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -240195,7 +289128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -240207,21 +289142,25 @@ public static class AssemblyQuestLoader }; obj89.Steps = list122; reference94 = obj89; - ref QuestSequence reference95 = ref span33[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1032122u, new Vector3(2.1820068f, 0f, -5.142395f), 844) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032122u, new Vector3(2.1820068f, 0f, -5.142395f), 844) { StopDistance = 7f }; obj90.Steps = list123; reference95 = obj90; - ref QuestSequence reference96 = ref span33[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 @@ -240229,39 +289168,50 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj91.Steps = list124; reference96 = obj91; - ref QuestSequence reference97 = ref span33[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span34 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference98 = ref span34[0]; + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference98 = ref span3[num2]; QuestStep obj93 = new QuestStep(EInteractionType.UseItem, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) { ItemId = 2002904u }; - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span35 = CollectionsMarshal.AsSpan(list126); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + span5 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list126; reference98 = obj93; - ref QuestStep reference99 = ref span34[1]; + num2++; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj94 = new QuestStep(EInteractionType.UseItem, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815) { ItemId = 2002904u @@ -240269,35 +289219,49 @@ public static class AssemblyQuestLoader num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span36 = CollectionsMarshal.AsSpan(list127); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list127; reference99 = obj94; - ref QuestStep reference100 = ref span34[2]; + num2++; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 1027939u, new Vector3(415.854f, -28.357805f, 335.4391f), 815) { ItemId = 2002904u }; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span37 = CollectionsMarshal.AsSpan(list128); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span5 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list128; reference100 = obj95; obj92.Steps = list125; reference97 = obj92; - ref QuestSequence reference101 = ref span33[5]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -240305,7 +289269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); obj96.Steps = list129; reference101 = obj96; questRoot14.QuestSequence = list120; @@ -240315,24 +289281,30 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot15.Author = list130; - num = 6; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span38 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference102 = ref span38[0]; + index = 6; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); obj97.Steps = list132; reference102 = obj97; - ref QuestSequence reference103 = ref span38[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -240340,12 +289312,16 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list133)[0]; + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG104_03676_Q2_000_100"), @@ -240355,21 +289331,25 @@ public static class AssemblyQuestLoader reference104 = questStep6; obj98.Steps = list133; reference103 = obj98; - ref QuestSequence reference105 = ref span38[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1031792u, new Vector3(-483.7873f, 45.58319f, -235.46198f), 815) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031792u, new Vector3(-483.7873f, 45.58319f, -235.46198f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj99.Steps = list135; reference105 = obj99; - ref QuestSequence reference106 = ref span38[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -240377,8 +289357,9 @@ public static class AssemblyQuestLoader num2 = 4; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span39 = CollectionsMarshal.AsSpan(list136); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.96634f, 41.707367f, -482.99057f), 815) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.96634f, 41.707367f, -482.99057f), 815) { SkipConditions = new SkipConditions { @@ -240388,71 +289369,95 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference107 = ref span39[1]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 2010811u, new Vector3(-16.922302f, 42.282715f, -470.48145f), 815) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span40 = CollectionsMarshal.AsSpan(list137); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + span5 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list137; reference107 = obj101; - ref QuestStep reference108 = ref span39[2]; + index2++; + ref QuestStep reference108 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010810u, new Vector3(8.682312f, 42.130127f, -471.9463f), 815); num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span41 = CollectionsMarshal.AsSpan(list138); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list138; reference108 = questStep7; - ref QuestStep reference109 = ref span39[3]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2010809u, new Vector3(19.760376f, 42.130127f, -463.3402f), 815) { Comment = "Combat not necessary to progress quest" }; - num3 = 6; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span42 = CollectionsMarshal.AsSpan(list139); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + span5 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list139; reference109 = obj102; obj100.Steps = list136; reference106 = obj100; - ref QuestSequence reference110 = ref span38[4]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span43 = CollectionsMarshal.AsSpan(list140); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.593674f, 42.681213f, -511.2799f), 815) + index2 = 2; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.593674f, 42.681213f, -511.2799f), 815) { Comment = "Should be far enough to reset combat" }; - ref QuestStep reference111 = ref span43[1]; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead @@ -240460,7 +289465,9 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG104_03676_Q3_000_200"), @@ -240470,7 +289477,8 @@ public static class AssemblyQuestLoader reference111 = obj104; obj103.Steps = list140; reference110 = obj103; - ref QuestSequence reference112 = ref span38[5]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -240478,7 +289486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031734u, new Vector3(364.58374f, -27.966003f, 304.12744f), 815) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031734u, new Vector3(364.58374f, -27.966003f, 304.12744f), 815) { StopDistance = 6f }; @@ -240491,27 +289501,33 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot16.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span44 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference113 = ref span44[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031736u, new Vector3(368.1848f, -27.966003f, 302.3269f), 815) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031736u, new Vector3(368.1848f, -27.966003f, 302.3269f), 815) { StopDistance = 5f }; obj106.Steps = list145; reference113 = obj106; - ref QuestSequence reference114 = ref span44[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -240519,21 +289535,26 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1031737u, new Vector3(20.950623f, 82.05f, 17.837708f), 820) + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031737u, new Vector3(20.950623f, 82.05f, 17.837708f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj107.Steps = list146; reference114 = obj107; - ref QuestSequence reference115 = ref span44[2]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031739u, new Vector3(-19.36377f, 82.83509f, -50.55316f), 820); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031739u, new Vector3(-19.36377f, 82.83509f, -50.55316f), 820); obj108.Steps = list147; reference115 = obj108; questRoot16.QuestSequence = list144; @@ -240543,13 +289564,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "liza"; questRoot17.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span45 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference116 = ref span45[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -240557,33 +289581,44 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031742u, new Vector3(-18.60083f, 82.84981f, -48.29486f), 820); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031742u, new Vector3(-18.60083f, 82.84981f, -48.29486f), 820); obj109.Steps = list150; reference116 = obj109; - ref QuestSequence reference117 = ref span45[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span46 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference118 = ref span46[0]; + index2 = 3; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference118 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span47 = CollectionsMarshal.AsSpan(list152); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span5 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list152; reference118 = questStep8; - ref QuestStep reference119 = ref span46[1]; + num2++; + ref QuestStep reference119 = ref span3[num2]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1027602u, new Vector3(74.35718f, -10.320814f, 4.8981323f), 820) { AethernetShortcut = new AethernetShortcut @@ -240595,16 +289630,23 @@ public static class AssemblyQuestLoader num3 = 6; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span48 = CollectionsMarshal.AsSpan(list153); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj111.CompletionQuestVariablesFlags = list153; reference119 = obj111; - ref QuestStep reference120 = ref span46[2]; + num2++; + ref QuestStep reference120 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820) { AethernetShortcut = new AethernetShortcut @@ -240613,21 +289655,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span49 = CollectionsMarshal.AsSpan(list154); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + span5 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj112.CompletionQuestVariablesFlags = list154; reference120 = obj112; obj110.Steps = list151; reference117 = obj110; - ref QuestSequence reference121 = ref span45[2]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -240635,7 +289684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); obj113.Steps = list155; reference121 = obj113; questRoot17.QuestSequence = list149; @@ -240645,24 +289696,30 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "liza"; questRoot18.Author = list156; - num = 7; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span50 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference122 = ref span50[0]; + index = 7; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); obj114.Steps = list158; reference122 = obj114; - ref QuestSequence reference123 = ref span50[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -240670,22 +289727,26 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1027306u, new Vector3(-294.94165f, 18.10139f, 403.5553f), 814) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027306u, new Vector3(-294.94165f, 18.10139f, 403.5553f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj115.Steps = list159; reference123 = obj115; - ref QuestSequence reference124 = ref span50[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span51 = CollectionsMarshal.AsSpan(list160); - span51[0] = new QuestStep(EInteractionType.Interact, 1028319u, new Vector3(-454.7036f, 65.77815f, 58.27417f), 814) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028319u, new Vector3(-454.7036f, 65.77815f, 58.27417f), 814) { TargetTerritoryId = (ushort)814, SkipConditions = new SkipConditions @@ -240696,13 +289757,15 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1031751u, new Vector3(-468.77246f, 334.0526f, -35.05005f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031751u, new Vector3(-468.77246f, 334.0526f, -35.05005f), 814) { Fly = true }; obj116.Steps = list160; reference124 = obj116; - ref QuestSequence reference125 = ref span50[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -240710,24 +289773,30 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1031753u, new Vector3(-159.19745f, 352.35825f, -212.51245f), 814) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031753u, new Vector3(-159.19745f, 352.35825f, -212.51245f), 814) { Fly = true }; obj117.Steps = list161; reference125 = obj117; - ref QuestSequence reference126 = ref span50[4]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj118.Steps = list162; reference126 = obj118; - ref QuestSequence reference127 = ref span50[5]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -240735,21 +289804,26 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1031748u, new Vector3(-61.417603f, 378.34897f, -454.03223f), 814) + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031748u, new Vector3(-61.417603f, 378.34897f, -454.03223f), 814) { Fly = true }; obj119.Steps = list163; reference127 = obj119; - ref QuestSequence reference128 = ref span50[6]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); obj120.Steps = list164; reference128 = obj120; questRoot18.QuestSequence = list157; @@ -240759,13 +289833,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot19.Author = list165; - num = 5; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span52 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference129 = ref span52[0]; + index = 5; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -240773,24 +289850,30 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); obj121.Steps = list167; reference129 = obj121; - ref QuestSequence reference130 = ref span52[1]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1031761u, new Vector3(-423.78882f, 334.0526f, -26.199768f), 814) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031761u, new Vector3(-423.78882f, 334.0526f, -26.199768f), 814) { Fly = true }; obj122.Steps = list168; reference130 = obj122; - ref QuestSequence reference131 = ref span52[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -240798,27 +289881,33 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Snipe, 2010813u, new Vector3(-421.71362f, 339.62f, -161.45575f), 814) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2010813u, new Vector3(-421.71362f, 339.62f, -161.45575f), 814) { Comment = "Help Master Chai dodge enemies" }; obj123.Steps = list169; reference131 = obj123; - ref QuestSequence reference132 = ref span52[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1031765u, new Vector3(-418.90594f, 339.968f, -162.03558f), 814) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031765u, new Vector3(-418.90594f, 339.968f, -162.03558f), 814) { StopDistance = 7f }; obj124.Steps = list170; reference132 = obj124; - ref QuestSequence reference133 = ref span52[4]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -240826,7 +289915,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031769u, new Vector3(168.5968f, 39.939266f, 585.90063f), 814) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031769u, new Vector3(168.5968f, 39.939266f, 585.90063f), 814) { StopDistance = 7f }; @@ -240839,27 +289930,33 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "liza"; questRoot20.Author = list172; - num = 4; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span53 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference134 = ref span53[0]; + index = 4; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031770u, new Vector3(170.4585f, 39.973778f, 586.1753f), 814) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031770u, new Vector3(170.4585f, 39.973778f, 586.1753f), 814) { StopDistance = 7f }; obj126.Steps = list174; reference134 = obj126; - ref QuestSequence reference135 = ref span53[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -240867,24 +289964,30 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj127.Steps = list175; reference135 = obj127; - ref QuestSequence reference136 = ref span53[2]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); obj128.Steps = list176; reference136 = obj128; - ref QuestSequence reference137 = ref span53[3]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -240892,7 +289995,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820); obj129.Steps = list177; reference137 = obj129; questRoot20.QuestSequence = list173; @@ -240902,24 +290007,30 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "liza"; questRoot21.Author = list178; - num = 4; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span54 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference138 = ref span54[0]; + index = 4; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); obj130.Steps = list180; reference138 = obj130; - ref QuestSequence reference139 = ref span54[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -240927,8 +290038,9 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span55 = CollectionsMarshal.AsSpan(list181); - span55[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -240938,19 +290050,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span55[1] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj131.Steps = list181; reference139 = obj131; - ref QuestSequence reference140 = ref span54[2]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span56 = CollectionsMarshal.AsSpan(list182); - ref QuestStep reference141 = ref span56[0]; + index2 = 2; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -240961,19 +290076,24 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = 351; + Span span7 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span7[index3] = 351; skipStepConditions.InTerritory = list183; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = 351; + index3 = 1; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + span7 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span7[num3] = 351; skipAetheryteCondition.InTerritory = list184; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj133.SkipConditions = skipConditions; reference141 = obj133; - ref QuestStep reference142 = ref span56[1]; + num2++; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { Comment = "Estinien vs. Arch Ultima" @@ -240982,17 +290102,22 @@ public static class AssemblyQuestLoader num3 = 4; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span57 = CollectionsMarshal.AsSpan(list185); - span57[0] = "AI doesn't move automatically for the first boss"; - span57[1] = "AI doesn't move automatically for the dialogue with gaius on the bridge"; - span57[2] = "After walking downstairs automatically, AI tries to run back towards the stairs (ignoring the arena boudnary)"; - span57[3] = "After moving from the arena boundary, AI doesn't move into melee range and stops too far away when initially attacking"; + span = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span[index3] = "AI doesn't move automatically for the first boss"; + index3++; + span[index3] = "AI doesn't move automatically for the dialogue with gaius on the bridge"; + index3++; + span[index3] = "After walking downstairs automatically, AI tries to run back towards the stairs (ignoring the arena boudnary)"; + index3++; + span[index3] = "After moving from the arena boundary, AI doesn't move into melee range and stops too far away when initially attacking"; singlePlayerDutyOptions.Notes = list185; obj134.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference142 = obj134; obj132.Steps = list182; reference140 = obj132; - ref QuestSequence reference143 = ref span54[3]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -241000,7 +290125,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 5f }; @@ -241013,24 +290140,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "liza"; questRoot22.Author = list187; - num = 12; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span58 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference144 = ref span58[0]; + index = 12; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031839u, new Vector3(95.628296f, 1.490116E-08f, 204.11987f), 819); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031839u, new Vector3(95.628296f, 1.490116E-08f, 204.11987f), 819); obj136.Steps = list189; reference144 = obj136; - ref QuestSequence reference145 = ref span58[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -241038,28 +290171,34 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1031843u, new Vector3(152.48328f, 0.21766767f, 655.4512f), 813) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031843u, new Vector3(152.48328f, 0.21766767f, 655.4512f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj137.Steps = list190; reference145 = obj137; - ref QuestSequence reference146 = ref span58[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1031845u, new Vector3(-200.09155f, 2.2048368f, 737.8804f), 813) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031845u, new Vector3(-200.09155f, 2.2048368f, 737.8804f), 813) { Fly = true }; obj138.Steps = list191; reference146 = obj138; - ref QuestSequence reference147 = ref span58[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -241067,36 +290206,44 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list192)[0]; + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + ref QuestStep reference148 = ref span3[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.24565f, 10.83118f, 738.46594f), 813) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 11437u; + index3 = 1; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + span6 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span6[num3] = 11437u; obj140.KillEnemyDataIds = list193; reference148 = obj140; obj139.Steps = list192; reference147 = obj139; - ref QuestSequence reference149 = ref span58[4]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1031847u, new Vector3(231.92188f, 9.887029f, 726.74133f), 813) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031847u, new Vector3(231.92188f, 9.887029f, 726.74133f), 813) { StopDistance = 7f }; obj141.Steps = list194; reference149 = obj141; - ref QuestSequence reference150 = ref span58[5]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 5 @@ -241104,21 +290251,26 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1031846u, new Vector3(-204.76086f, 2.4649847f, 739.9557f), 813) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031846u, new Vector3(-204.76086f, 2.4649847f, 739.9557f), 813) { Fly = true }; obj142.Steps = list195; reference150 = obj142; - ref QuestSequence reference151 = ref span58[6]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list196)[0]; + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { Fly = true, @@ -241127,7 +290279,9 @@ public static class AssemblyQuestLoader num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANPIX001_03683_EVENTAREA_WARP_000_133") @@ -241136,11 +290290,13 @@ public static class AssemblyQuestLoader reference152 = obj144; obj143.Steps = list196; reference151 = obj143; - span58[7] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference153 = ref span58[8]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 8 @@ -241148,25 +290304,32 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1031850u, new Vector3(55.588623f, -1.6532946f, 48.599854f), 889); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031850u, new Vector3(55.588623f, -1.6532946f, 48.599854f), 889); obj145.Steps = list198; reference153 = obj145; - span58[9] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 9 }; - ref QuestSequence reference154 = ref span58[10]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1032348u, new Vector3(-18.295654f, 6.8822618f, -67.338135f), 890); + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032348u, new Vector3(-18.295654f, 6.8822618f, -67.338135f), 890); obj146.Steps = list199; reference154 = obj146; - ref QuestSequence reference155 = ref span58[11]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -241174,16 +290337,20 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list200)[0]; + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span4 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX001_03683_Q3_000_000"), @@ -241200,24 +290367,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "liza"; questRoot23.Author = list202; - num = 13; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span59 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference157 = ref span59[0]; + index = 13; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj149.Steps = list204; reference157 = obj149; - ref QuestSequence reference158 = ref span59[1]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -241225,26 +290398,32 @@ public static class AssemblyQuestLoader num2 = 2; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span60 = CollectionsMarshal.AsSpan(list205); - span60[0] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)890 }; - span60[1] = new QuestStep(EInteractionType.Interact, 1031853u, new Vector3(60.471436f, -1.6051313f, 53.543823f), 890); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031853u, new Vector3(60.471436f, -1.6051313f, 53.543823f), 890); obj150.Steps = list205; reference158 = obj150; - ref QuestSequence reference159 = ref span59[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1031852u, new Vector3(59.03711f, -1.7997739f, 56.565186f), 890); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031852u, new Vector3(59.03711f, -1.7997739f, 56.565186f), 890); obj151.Steps = list206; reference159 = obj151; - ref QuestSequence reference160 = ref span59[3]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -241252,22 +290431,27 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1031855u, new Vector3(74.784424f, 98.85967f, -820.88965f), 816) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031855u, new Vector3(74.784424f, 98.85967f, -820.88965f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj152.Steps = list207; reference160 = obj152; - ref QuestSequence reference161 = ref span59[4]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list208)[0]; + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1031858u, new Vector3(-211.35272f, 16.63259f, 427.32886f), 814) { Fly = true, @@ -241276,7 +290460,9 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX002_03684_Q1_000_000"), @@ -241286,7 +290472,8 @@ public static class AssemblyQuestLoader reference162 = obj154; obj153.Steps = list208; reference161 = obj153; - ref QuestSequence reference163 = ref span59[5]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 5 @@ -241294,34 +290481,42 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) { Fly = true }; obj155.Steps = list210; reference163 = obj155; - ref QuestSequence reference164 = ref span59[6]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list211)[0]; + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, null, new Vector3(-137.7369f, 11.939666f, 336.4078f), 814) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 11438u; + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span6 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span6[num3] = 11438u; obj157.KillEnemyDataIds = list212; reference165 = obj157; obj156.Steps = list211; reference164 = obj156; - ref QuestSequence reference166 = ref span59[7]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 7 @@ -241329,24 +290524,30 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1031861u, new Vector3(-149.85895f, 13.084818f, 341.1764f), 814); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031861u, new Vector3(-149.85895f, 13.084818f, 341.1764f), 814); obj158.Steps = list213; reference166 = obj158; - ref QuestSequence reference167 = ref span59[8]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) { Fly = true }; obj159.Steps = list214; reference167 = obj159; - ref QuestSequence reference168 = ref span59[9]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 9 @@ -241354,32 +290555,39 @@ public static class AssemblyQuestLoader num2 = 2; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span61 = CollectionsMarshal.AsSpan(list215); - span61[0] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)890, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span61[1] = new QuestStep(EInteractionType.Interact, 1031863u, new Vector3(60.379883f, 31.0353f, -110.76526f), 890); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031863u, new Vector3(60.379883f, 31.0353f, -110.76526f), 890); obj160.Steps = list215; reference168 = obj160; - span59[10] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 10 }; - ref QuestSequence reference169 = ref span59[11]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1032350u, new Vector3(63.797974f, 30.266184f, -103.4715f), 891); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032350u, new Vector3(63.797974f, 30.266184f, -103.4715f), 891); obj161.Steps = list216; reference169 = obj161; - ref QuestSequence reference170 = ref span59[12]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -241387,7 +290595,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -241401,26 +290611,33 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot24.Author = list218; - num = 11; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span62 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference171 = ref span62[0]; + index = 11; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list220)[0]; + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference172 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX003_03685_Q1_000_000"), @@ -241430,7 +290647,8 @@ public static class AssemblyQuestLoader reference172 = questStep9; obj163.Steps = list220; reference171 = obj163; - ref QuestSequence reference173 = ref span62[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -241438,26 +290656,32 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span63 = CollectionsMarshal.AsSpan(list222); - span63[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - span63[1] = new QuestStep(EInteractionType.Interact, 1031866u, new Vector3(78.690796f, 0.15887591f, 50.0343f), 891); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031866u, new Vector3(78.690796f, 0.15887591f, 50.0343f), 891); obj164.Steps = list222; reference173 = obj164; - ref QuestSequence reference174 = ref span62[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1031865u, new Vector3(76.37134f, 0.15887591f, 51.987427f), 891); + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031865u, new Vector3(76.37134f, 0.15887591f, 51.987427f), 891); obj165.Steps = list223; reference174 = obj165; - ref QuestSequence reference175 = ref span62[3]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -241465,30 +290689,36 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1031867u, new Vector3(303.15088f, 1.4685827f, -313.34406f), 815) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031867u, new Vector3(303.15088f, 1.4685827f, -313.34406f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj166.Steps = list224; reference175 = obj166; - ref QuestSequence reference176 = ref span62[4]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span64 = CollectionsMarshal.AsSpan(list225); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); obj167.Steps = list225; reference176 = obj167; - ref QuestSequence reference177 = ref span62[5]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -241496,35 +290726,43 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list226)[0]; + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference178 = ref span3[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(355.25076f, -19.54202f, -4.2170615f), 815) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 11439u; + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span6 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span6[num3] = 11439u; obj169.KillEnemyDataIds = list227; reference178 = obj169; obj168.Steps = list226; reference177 = obj168; - ref QuestSequence reference179 = ref span62[6]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1031871u, new Vector3(350.05713f, -18.544811f, -15.793152f), 815) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031871u, new Vector3(350.05713f, -18.544811f, -15.793152f), 815) { StopDistance = 7f }; obj170.Steps = list228; reference179 = obj170; - ref QuestSequence reference180 = ref span62[7]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 7 @@ -241532,33 +290770,39 @@ public static class AssemblyQuestLoader num2 = 2; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span65 = CollectionsMarshal.AsSpan(list229); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); obj171.Steps = list229; reference180 = obj171; - ref QuestSequence reference181 = ref span62[8]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span66 = CollectionsMarshal.AsSpan(list230); - span66[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span66[1] = new QuestStep(EInteractionType.Interact, 1032030u, new Vector3(90.40967f, 40.45613f, -105.48566f), 891); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032030u, new Vector3(90.40967f, 40.45613f, -105.48566f), 891); obj172.Steps = list230; reference181 = obj172; - ref QuestSequence reference182 = ref span62[9]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 9 @@ -241566,18 +290810,23 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1032352u, new Vector3(95.994385f, 38.906254f, -89.37213f), 891); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032352u, new Vector3(95.994385f, 38.906254f, -89.37213f), 891); obj173.Steps = list231; reference182 = obj173; - ref QuestSequence reference183 = ref span62[10]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -241591,13 +290840,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "liza"; questRoot25.Author = list233; - num = 11; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span67 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference184 = ref span67[0]; + index = 11; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -241605,26 +290857,32 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj175.Steps = list235; reference184 = obj175; - ref QuestSequence reference185 = ref span67[1]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span68 = CollectionsMarshal.AsSpan(list236); - span68[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + index2 = 2; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - span68[1] = new QuestStep(EInteractionType.Interact, 1031875u, new Vector3(63.553833f, -6.2561507f, -4.6845703f), 891); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031875u, new Vector3(63.553833f, -6.2561507f, -4.6845703f), 891); obj176.Steps = list236; reference185 = obj176; - ref QuestSequence reference186 = ref span67[2]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -241632,24 +290890,30 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1031873u, new Vector3(62.57715f, -6.26951f, -1.2970581f), 891); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031873u, new Vector3(62.57715f, -6.26951f, -1.2970581f), 891); obj177.Steps = list237; reference186 = obj177; - ref QuestSequence reference187 = ref span67[3]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1031876u, new Vector3(-143.99939f, -18.519604f, 300.52637f), 817) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031876u, new Vector3(-143.99939f, -18.519604f, 300.52637f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj178.Steps = list238; reference187 = obj178; - ref QuestSequence reference188 = ref span67[4]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 @@ -241657,18 +290921,23 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1031878u, new Vector3(-42.648987f, -18.509216f, 270.31348f), 817); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031878u, new Vector3(-42.648987f, -18.509216f, 270.31348f), 817); obj179.Steps = list239; reference188 = obj179; - ref QuestSequence reference189 = ref span67[5]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list240)[0]; + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + ref QuestStep reference190 = ref span3[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Combat, null, new Vector3(-277.1741f, 16.288988f, 251.72075f), 817) { StopDistance = 1f, @@ -241677,12 +290946,15 @@ public static class AssemblyQuestLoader num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = 11440u; + span6 = CollectionsMarshal.AsSpan(list241); + index3 = 0; + span6[index3] = 11440u; obj181.KillEnemyDataIds = list241; reference190 = obj181; obj180.Steps = list240; reference189 = obj180; - ref QuestSequence reference191 = ref span67[6]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 6 @@ -241690,26 +290962,32 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1031879u, new Vector3(-276.93604f, 15.250552f, 263.20276f), 817); + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031879u, new Vector3(-276.93604f, 15.250552f, 263.20276f), 817); obj182.Steps = list242; reference191 = obj182; - ref QuestSequence reference192 = ref span67[7]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span69 = CollectionsMarshal.AsSpan(list243); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.90031f, -19.300228f, 286.6684f), 817) + index2 = 2; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.90031f, -19.300228f, 286.6684f), 817) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1032280u, new Vector3(-42.038635f, -18.997498f, 270.58813f), 817); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032280u, new Vector3(-42.038635f, -18.997498f, 270.58813f), 817); obj183.Steps = list243; reference192 = obj183; - ref QuestSequence reference193 = ref span67[8]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 8 @@ -241717,28 +290995,34 @@ public static class AssemblyQuestLoader num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span70 = CollectionsMarshal.AsSpan(list244); - span70[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span70[1] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); obj184.Steps = list244; reference193 = obj184; - ref QuestSequence reference194 = ref span67[9]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); obj185.Steps = list245; reference194 = obj185; - ref QuestSequence reference195 = ref span67[10]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -241746,7 +291030,9 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -241760,24 +291046,30 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "plogon_enjoyer"; questRoot26.Author = list247; - num = 10; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span71 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference196 = ref span71[0]; + index = 10; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj187.Steps = list249; reference196 = obj187; - ref QuestSequence reference197 = ref span71[1]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -241785,26 +291077,32 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span72 = CollectionsMarshal.AsSpan(list250); - span72[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - span72[1] = new QuestStep(EInteractionType.Interact, 1031883u, new Vector3(-116.07544f, 9.440084f, -41.428284f), 891); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031883u, new Vector3(-116.07544f, 9.440084f, -41.428284f), 891); obj188.Steps = list250; reference197 = obj188; - ref QuestSequence reference198 = ref span71[2]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1031881u, new Vector3(-115.03784f, 9.440084f, -38.651123f), 891); + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031881u, new Vector3(-115.03784f, 9.440084f, -38.651123f), 891); obj189.Steps = list251; reference198 = obj189; - ref QuestSequence reference199 = ref span71[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -241812,40 +291110,48 @@ public static class AssemblyQuestLoader num2 = 4; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span73 = CollectionsMarshal.AsSpan(list252); - span73[0] = new QuestStep(EInteractionType.Interact, 1031204u, new Vector3(481.95605f, 90.43779f, -656.09216f), 816) + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031204u, new Vector3(481.95605f, 90.43779f, -656.09216f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; - span73[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-107.78667f, 108.39998f, -840.88965f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-107.78667f, 108.39998f, -840.88965f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - span73[2] = new QuestStep(EInteractionType.Interact, 1027673u, new Vector3(-106.06549f, 108.39998f, -841.7639f), 816); - span73[3] = new QuestStep(EInteractionType.Interact, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027673u, new Vector3(-106.06549f, 108.39998f, -841.7639f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj190.Steps = list252; reference199 = obj190; - ref QuestSequence reference200 = ref span71[4]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1031807u, new Vector3(-465.93427f, 71.48343f, 571.8623f), 816) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031807u, new Vector3(-465.93427f, 71.48343f, 571.8623f), 816) { Fly = true }; obj191.Steps = list253; reference200 = obj191; - ref QuestSequence reference201 = ref span71[5]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 5 @@ -241853,28 +291159,35 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { Fly = true }; obj192.Steps = list254; reference201 = obj192; - ref QuestSequence reference202 = ref span71[6]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816); + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816); obj193.Steps = list255; reference202 = obj193; - span71[7] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference203 = ref span71[8]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 8 @@ -241882,23 +291195,28 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1031886u, new Vector3(38.345825f, -4.6399317f, 24.76538f), 892); + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031886u, new Vector3(38.345825f, -4.6399317f, 24.76538f), 892); obj194.Steps = list256; reference203 = obj194; - ref QuestSequence reference204 = ref span71[9]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span74 = CollectionsMarshal.AsSpan(list257); - span74[0] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) + index2 = 2; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) { TargetTerritoryId = (ushort)816 }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj195.Steps = list257; reference204 = obj195; questRoot26.QuestSequence = list248; @@ -241908,13 +291226,16 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list258); + index = 0; + span[index] = "plogon_enjoyer"; questRoot27.Author = list258; - num = 3; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span75 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference205 = ref span75[0]; + index = 3; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span2 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -241922,26 +291243,32 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj196.Steps = list260; reference205 = obj196; - ref QuestSequence reference206 = ref span75[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - Span span76 = CollectionsMarshal.AsSpan(list261); - span76[0] = new QuestStep(EInteractionType.Interact, 1031893u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + index2 = 2; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031893u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)892 }; - span76[1] = new QuestStep(EInteractionType.Interact, 1031890u, new Vector3(55.649536f, -6.167951f, 8.041443f), 892); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031890u, new Vector3(55.649536f, -6.167951f, 8.041443f), 892); obj197.Steps = list261; reference206 = obj197; - ref QuestSequence reference207 = ref span75[2]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -241949,12 +291276,14 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span77 = CollectionsMarshal.AsSpan(list262); - span77[0] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) { TargetTerritoryId = (ushort)816 }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj198.Steps = list262; reference207 = obj198; questRoot27.QuestSequence = list259; @@ -241964,24 +291293,30 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot28.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span78 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference208 = ref span78[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj199.Steps = list265; reference208 = obj199; - ref QuestSequence reference209 = ref span78[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -241989,29 +291324,37 @@ public static class AssemblyQuestLoader num2 = 5; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span79 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference210 = ref span79[0]; + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.48618f, 54.663364f, 605.60834f), 816) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span80 = CollectionsMarshal.AsSpan(list267); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list267 = new List(index3); + CollectionsMarshal.SetCount(list267, index3); + span5 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list267; skipConditions2.StepIf = skipStepConditions2; obj201.SkipConditions = skipConditions2; reference210 = obj201; - ref QuestStep reference211 = ref span79[1]; + index2++; + ref QuestStep reference211 = ref span3[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2010856u, new Vector3(-271.29016f, 52.96399f, 605.9204f), 816) { DisableNavmesh = true @@ -242019,76 +291362,106 @@ public static class AssemblyQuestLoader num3 = 6; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span81 = CollectionsMarshal.AsSpan(list268); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list268; reference211 = obj202; - ref QuestStep reference212 = ref span79[2]; + index2++; + ref QuestStep reference212 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2010858u, new Vector3(-250.62946f, 50.94983f, 597.7416f), 816); - num3 = 6; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span82 = CollectionsMarshal.AsSpan(list269); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list269 = new List(index3); + CollectionsMarshal.SetCount(list269, index3); + span5 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list269; reference212 = questStep10; - ref QuestStep reference213 = ref span79[3]; + index2++; + ref QuestStep reference213 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.1694f, 50.977943f, 589.3572f), 816); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span83 = CollectionsMarshal.AsSpan(list270); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list270); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list270; skipConditions3.StepIf = skipStepConditions3; questStep11.SkipConditions = skipConditions3; reference213 = questStep11; - ref QuestStep reference214 = ref span79[4]; + index2++; + ref QuestStep reference214 = ref span3[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2010857u, new Vector3(-261.1277f, 50.94983f, 585.2903f), 816) { StopDistance = 4.5f, DisableNavmesh = true }; - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span84 = CollectionsMarshal.AsSpan(list271); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list271 = new List(index3); + CollectionsMarshal.SetCount(list271, index3); + span5 = CollectionsMarshal.AsSpan(list271); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj203.CompletionQuestVariablesFlags = list271; reference214 = obj203; obj200.Steps = list266; reference209 = obj200; - ref QuestSequence reference215 = ref span78[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242101,13 +291474,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot29.Author = list273; - num = 3; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span85 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference216 = ref span85[0]; + index = 3; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -242115,18 +291491,23 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj205.Steps = list275; reference216 = obj205; - ref QuestSequence reference217 = ref span85[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list276)[0]; + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference218 = ref span3[num2]; QuestStep obj207 = new QuestStep(EInteractionType.Combat, 2010859u, new Vector3(-743.86206f, 78.96533f, 457.14502f), 816) { Fly = true, @@ -242135,12 +291516,15 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 11443u; + span6 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span6[index3] = 11443u; obj207.KillEnemyDataIds = list277; reference218 = obj207; obj206.Steps = list276; reference217 = obj206; - ref QuestSequence reference219 = ref span85[2]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -242148,7 +291532,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242161,24 +291547,30 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list279); + index = 0; + span[index] = "liza"; questRoot30.Author = list279; - num = 3; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span86 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference220 = ref span86[0]; + index = 3; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + span2 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj209.Steps = list281; reference220 = obj209; - ref QuestSequence reference221 = ref span86[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -242186,8 +291578,9 @@ public static class AssemblyQuestLoader num2 = 3; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span87 = CollectionsMarshal.AsSpan(list282); - ref QuestStep reference222 = ref span87[0]; + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + ref QuestStep reference222 = ref span3[index2]; QuestStep obj211 = new QuestStep(EInteractionType.Say, 1032140u, new Vector3(-459.89166f, 42.65948f, -305.71454f), 816) { Fly = true, @@ -242196,24 +291589,33 @@ public static class AssemblyQuestLoader Key = "TEXT_BANPIX103_03691_SAYTODO_000_030" } }; - num3 = 6; - List> list283 = new List>(num3); - CollectionsMarshal.SetCount(list283, num3); - Span> span88 = CollectionsMarshal.AsSpan(list283); - span88[0] = null; - span88[1] = null; - span88[2] = null; - ref List reference223 = ref span88[3]; + index3 = 6; + List> list283 = new List>(index3); + CollectionsMarshal.SetCount(list283, index3); + Span> span8 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference223 = ref span8[num3]; int num4 = 1; List list284 = new List(num4); CollectionsMarshal.SetCount(list284, num4); - CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list284); + int index4 = 0; + span5[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference223 = list284; - span88[4] = null; - span88[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj211.RequiredQuestVariables = list283; reference222 = obj211; - ref QuestStep reference224 = ref span87[1]; + index2++; + ref QuestStep reference224 = ref span3[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Say, 1032141u, new Vector3(-473.47223f, 45.390854f, -311.6656f), 816) { Fly = true, @@ -242225,21 +291627,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list285 = new List>(num3); CollectionsMarshal.SetCount(list285, num3); - Span> span89 = CollectionsMarshal.AsSpan(list285); - span89[0] = null; - span89[1] = null; - span89[2] = null; - ref List reference225 = ref span89[3]; - num4 = 1; - List list286 = new List(num4); - CollectionsMarshal.SetCount(list286, num4); - CollectionsMarshal.AsSpan(list286)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference225 = ref span8[index3]; + index4 = 1; + List list286 = new List(index4); + CollectionsMarshal.SetCount(list286, index4); + span5 = CollectionsMarshal.AsSpan(list286); + num4 = 0; + span5[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference225 = list286; - span89[4] = null; - span89[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj212.RequiredQuestVariables = list285; reference224 = obj212; - ref QuestStep reference226 = ref span87[2]; + index2++; + ref QuestStep reference226 = ref span3[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Say, 1032142u, new Vector3(-472.7398f, 50.10258f, -328.26733f), 816) { Fly = true, @@ -242248,34 +291659,45 @@ public static class AssemblyQuestLoader Key = "TEXT_BANPIX103_03691_SAYTODO_000_030" } }; - num3 = 6; - List> list287 = new List>(num3); - CollectionsMarshal.SetCount(list287, num3); - Span> span90 = CollectionsMarshal.AsSpan(list287); - span90[0] = null; - span90[1] = null; - span90[2] = null; - ref List reference227 = ref span90[3]; + index3 = 6; + List> list287 = new List>(index3); + CollectionsMarshal.SetCount(list287, index3); + span8 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference227 = ref span8[num3]; num4 = 1; List list288 = new List(num4); CollectionsMarshal.SetCount(list288, num4); - CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list288); + index4 = 0; + span5[index4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference227 = list288; - span90[4] = null; - span90[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj213.RequiredQuestVariables = list287; reference226 = obj213; obj210.Steps = list282; reference221 = obj210; - ref QuestSequence reference228 = ref span86[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242289,13 +291711,16 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list290); + index = 0; + span[index] = "liza"; questRoot31.Author = list290; - num = 3; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span91 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference229 = ref span91[0]; + index = 3; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + span2 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -242303,19 +291728,23 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj215.Steps = list292; reference229 = obj215; - ref QuestSequence reference230 = ref span91[1]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span92 = CollectionsMarshal.AsSpan(list293); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-344.05838f, 45.450672f, 456.10266f), 816) + index2 = 5; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-344.05838f, 45.450672f, 456.10266f), 816) { Fly = true, SkipConditions = new SkipConditions @@ -242326,51 +291755,72 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference231 = ref span92[1]; + num2++; + ref QuestStep reference231 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2010860u, new Vector3(-340.38306f, 38.77307f, 434.07336f), 816); num3 = 6; List> list294 = new List>(num3); CollectionsMarshal.SetCount(list294, num3); - Span> span93 = CollectionsMarshal.AsSpan(list294); - span93[0] = null; - ref List reference232 = ref span93[1]; - num4 = 3; - List list295 = new List(num4); - CollectionsMarshal.SetCount(list295, num4); - Span span94 = CollectionsMarshal.AsSpan(list295); - span94[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span94[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span94[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference232 = ref span8[index3]; + index4 = 3; + List list295 = new List(index4); + CollectionsMarshal.SetCount(list295, index4); + span5 = CollectionsMarshal.AsSpan(list295); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference232 = list295; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; questStep12.RequiredQuestVariables = list294; reference231 = questStep12; - ref QuestStep reference233 = ref span92[2]; + num2++; + ref QuestStep reference233 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010861u, new Vector3(-332.44836f, 44.47998f, 462.15002f), 816); - num3 = 6; - List> list296 = new List>(num3); - CollectionsMarshal.SetCount(list296, num3); - Span> span95 = CollectionsMarshal.AsSpan(list296); - span95[0] = null; - ref List reference234 = ref span95[1]; + index3 = 6; + List> list296 = new List>(index3); + CollectionsMarshal.SetCount(list296, index3); + span8 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference234 = ref span8[num3]; num4 = 3; List list297 = new List(num4); CollectionsMarshal.SetCount(list297, num4); - Span span96 = CollectionsMarshal.AsSpan(list297); - span96[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span96[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span96[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list297); + index4 = 0; + span5[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference234 = list297; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; questStep13.RequiredQuestVariables = list296; reference233 = questStep13; - ref QuestStep reference235 = ref span92[3]; + num2++; + ref QuestStep reference235 = ref span3[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Interact, 2010863u, new Vector3(-293.08008f, 42.70996f, 463.61487f), 816) { IgnoreDistanceToObject = true @@ -242378,51 +291828,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list298 = new List>(num3); CollectionsMarshal.SetCount(list298, num3); - Span> span97 = CollectionsMarshal.AsSpan(list298); - span97[0] = null; - ref List reference236 = ref span97[1]; - num4 = 3; - List list299 = new List(num4); - CollectionsMarshal.SetCount(list299, num4); - Span span98 = CollectionsMarshal.AsSpan(list299); - span98[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span98[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span98[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + span8 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference236 = ref span8[index3]; + index4 = 3; + List list299 = new List(index4); + CollectionsMarshal.SetCount(list299, index4); + span5 = CollectionsMarshal.AsSpan(list299); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference236 = list299; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj217.RequiredQuestVariables = list298; reference235 = obj217; - ref QuestStep reference237 = ref span92[4]; + num2++; + ref QuestStep reference237 = ref span3[num2]; QuestStep obj218 = new QuestStep(EInteractionType.Interact, 2010862u, new Vector3(-276.96655f, 42.893066f, 453.6659f), 816) { IgnoreDistanceToObject = true }; - num3 = 6; - List> list300 = new List>(num3); - CollectionsMarshal.SetCount(list300, num3); - Span> span99 = CollectionsMarshal.AsSpan(list300); - span99[0] = null; - ref List reference238 = ref span99[1]; + index3 = 6; + List> list300 = new List>(index3); + CollectionsMarshal.SetCount(list300, index3); + span8 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference238 = ref span8[num3]; num4 = 3; List list301 = new List(num4); CollectionsMarshal.SetCount(list301, num4); - Span span100 = CollectionsMarshal.AsSpan(list301); - span100[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span100[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span100[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list301); + index4 = 0; + span5[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference238 = list301; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj218.RequiredQuestVariables = list300; reference237 = obj218; obj216.Steps = list293; reference230 = obj216; - ref QuestSequence reference239 = ref span91[2]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -242430,7 +291900,9 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242443,24 +291915,30 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list303); + index = 0; + span[index] = "liza"; questRoot32.Author = list303; - num = 3; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span101 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference240 = ref span101[0]; + index = 3; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + span2 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj220.Steps = list305; reference240 = obj220; - ref QuestSequence reference241 = ref span101[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 @@ -242468,7 +291946,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list306)[0]; + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + ref QuestStep reference242 = ref span3[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, 2010864u, new Vector3(3.8909912f, 13.90094f, 637.23206f), 816) { Fly = true, @@ -242477,20 +291957,25 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 11444u; + span6 = CollectionsMarshal.AsSpan(list307); + index3 = 0; + span6[index3] = 11444u; obj222.KillEnemyDataIds = list307; reference242 = obj222; obj221.Steps = list306; reference241 = obj221; - ref QuestSequence reference243 = ref span101[2]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242503,13 +291988,16 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - CollectionsMarshal.AsSpan(list309)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list309); + index = 0; + span[index] = "liza"; questRoot33.Author = list309; - num = 3; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - Span span102 = CollectionsMarshal.AsSpan(list310); - ref QuestSequence reference244 = ref span102[0]; + index = 3; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + span2 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -242517,50 +292005,65 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj224.Steps = list311; reference244 = obj224; - ref QuestSequence reference245 = ref span102[1]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span103 = CollectionsMarshal.AsSpan(list312); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-338.70084f, 9.922639f, -181.90271f), 816) + index2 = 5; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-338.70084f, 9.922639f, -181.90271f), 816) { Fly = true }; - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-332.49713f, -44.52391f, -242.4296f), 816) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-332.49713f, -44.52391f, -242.4296f), 816) { DisableNavmesh = true, Fly = true }; - ref QuestStep reference246 = ref span103[2]; + num2++; + ref QuestStep reference246 = ref span3[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 2010865u, new Vector3(-335.59174f, -53.75763f, -277.9126f), 816) { Fly = true }; - num3 = 6; - List> list313 = new List>(num3); - CollectionsMarshal.SetCount(list313, num3); - Span> span104 = CollectionsMarshal.AsSpan(list313); - span104[0] = null; - span104[1] = null; - span104[2] = null; - ref List reference247 = ref span104[3]; - num4 = 1; - List list314 = new List(num4); - CollectionsMarshal.SetCount(list314, num4); - CollectionsMarshal.AsSpan(list314)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list313 = new List>(index3); + CollectionsMarshal.SetCount(list313, index3); + span8 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference247 = ref span8[num3]; + index4 = 1; + List list314 = new List(index4); + CollectionsMarshal.SetCount(list314, index4); + span5 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span5[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference247 = list314; - span104[4] = null; - span104[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj226.RequiredQuestVariables = list313; reference246 = obj226; - ref QuestStep reference248 = ref span103[3]; + num2++; + ref QuestStep reference248 = ref span3[num2]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 2010866u, new Vector3(-335.59174f, -54.154297f, -293.41577f), 816) { Fly = true @@ -242568,45 +292071,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list315 = new List>(num3); CollectionsMarshal.SetCount(list315, num3); - Span> span105 = CollectionsMarshal.AsSpan(list315); - span105[0] = null; - span105[1] = null; - span105[2] = null; - ref List reference249 = ref span105[3]; + span8 = CollectionsMarshal.AsSpan(list315); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference249 = ref span8[index3]; num4 = 1; List list316 = new List(num4); CollectionsMarshal.SetCount(list316, num4); - CollectionsMarshal.AsSpan(list316)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list316); + index4 = 0; + span5[index4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference249 = list316; - span105[4] = null; - span105[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj227.RequiredQuestVariables = list315; reference248 = obj227; - ref QuestStep reference250 = ref span103[4]; + num2++; + ref QuestStep reference250 = ref span3[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Interact, 2010867u, new Vector3(-351.64417f, -53.635498f, -295.73517f), 816) { Fly = true }; - num3 = 6; - List> list317 = new List>(num3); - CollectionsMarshal.SetCount(list317, num3); - Span> span106 = CollectionsMarshal.AsSpan(list317); - span106[0] = null; - span106[1] = null; - span106[2] = null; - ref List reference251 = ref span106[3]; - num4 = 1; - List list318 = new List(num4); - CollectionsMarshal.SetCount(list318, num4); - CollectionsMarshal.AsSpan(list318)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list317 = new List>(index3); + CollectionsMarshal.SetCount(list317, index3); + span8 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference251 = ref span8[num3]; + index4 = 1; + List list318 = new List(index4); + CollectionsMarshal.SetCount(list318, index4); + span5 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span5[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference251 = list318; - span106[4] = null; - span106[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj228.RequiredQuestVariables = list317; reference250 = obj228; obj225.Steps = list312; reference245 = obj225; - ref QuestSequence reference252 = ref span102[2]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue @@ -242614,7 +292135,9 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242628,24 +292151,30 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list320); + index = 0; + span[index] = "liza"; questRoot34.Author = list320; - num = 3; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span107 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference253 = ref span107[0]; + index = 3; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + span2 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj230.Steps = list322; reference253 = obj230; - ref QuestSequence reference254 = ref span107[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 1 @@ -242653,7 +292182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - ref QuestStep reference255 = ref CollectionsMarshal.AsSpan(list323)[0]; + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + ref QuestStep reference255 = ref span3[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Combat, 2010868u, new Vector3(-504.32596f, 77.22583f, -410.11676f), 816) { Fly = true, @@ -242662,20 +292193,25 @@ public static class AssemblyQuestLoader num3 = 1; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - CollectionsMarshal.AsSpan(list324)[0] = 11445u; + span6 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span6[index3] = 11445u; obj232.KillEnemyDataIds = list324; reference255 = obj232; obj231.Steps = list323; reference254 = obj231; - ref QuestSequence reference256 = ref span107[2]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242689,13 +292225,16 @@ public static class AssemblyQuestLoader num = 1; List list326 = new List(num); CollectionsMarshal.SetCount(list326, num); - CollectionsMarshal.AsSpan(list326)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list326); + index = 0; + span[index] = "liza"; questRoot35.Author = list326; - num = 3; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - Span span108 = CollectionsMarshal.AsSpan(list327); - ref QuestSequence reference257 = ref span108[0]; + index = 3; + List list327 = new List(index); + CollectionsMarshal.SetCount(list327, index); + span2 = CollectionsMarshal.AsSpan(list327); + num = 0; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -242703,36 +292242,47 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj234.Steps = list328; reference257 = obj234; - ref QuestSequence reference258 = ref span108[1]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - Span span109 = CollectionsMarshal.AsSpan(list329); - ref QuestStep reference259 = ref span109[0]; + index2 = 2; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + ref QuestStep reference259 = ref span3[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Interact, 2010888u, new Vector3(-171.58777f, 5.2338257f, -252.88782f), 816) { Fly = true }; - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span110 = CollectionsMarshal.AsSpan(list330); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + span5 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj236.CompletionQuestVariablesFlags = list330; reference259 = obj236; - ref QuestStep reference260 = ref span109[1]; + num2++; + ref QuestStep reference260 = ref span3[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 2010889u, new Vector3(-170.1839f, 4.9591064f, -283.0396f), 816) { Fly = true @@ -242740,18 +292290,25 @@ public static class AssemblyQuestLoader num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span111 = CollectionsMarshal.AsSpan(list331); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj237.CompletionQuestVariablesFlags = list331; reference260 = obj237; obj235.Steps = list329; reference258 = obj235; - ref QuestSequence reference261 = ref span108[2]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -242759,7 +292316,9 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242773,24 +292332,30 @@ public static class AssemblyQuestLoader num = 1; List list333 = new List(num); CollectionsMarshal.SetCount(list333, num); - CollectionsMarshal.AsSpan(list333)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list333); + index = 0; + span[index] = "liza"; questRoot36.Author = list333; - num = 3; - List list334 = new List(num); - CollectionsMarshal.SetCount(list334, num); - Span span112 = CollectionsMarshal.AsSpan(list334); - ref QuestSequence reference262 = ref span112[0]; + index = 3; + List list334 = new List(index); + CollectionsMarshal.SetCount(list334, index); + span2 = CollectionsMarshal.AsSpan(list334); + num = 0; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj239.Steps = list335; reference262 = obj239; - ref QuestSequence reference263 = ref span112[1]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -242798,30 +292363,37 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - ref QuestStep reference264 = ref CollectionsMarshal.AsSpan(list336)[0]; + span3 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + ref QuestStep reference264 = ref span3[index2]; QuestStep obj241 = new QuestStep(EInteractionType.Combat, 2010890u, new Vector3(10.0251465f, 32.944214f, -608.6061f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = 11446u; + index3 = 1; + List list337 = new List(index3); + CollectionsMarshal.SetCount(list337, index3); + span6 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span6[num3] = 11446u; obj241.KillEnemyDataIds = list337; reference264 = obj241; obj240.Steps = list336; reference263 = obj240; - ref QuestSequence reference265 = ref span112[2]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242835,13 +292407,16 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list339); + index = 0; + span[index] = "liza"; questRoot37.Author = list339; - num = 4; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span113 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference266 = ref span113[0]; + index = 4; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + span2 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -242849,21 +292424,27 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj243.Steps = list341; reference266 = obj243; - ref QuestSequence reference267 = ref span113[1]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); obj244.Steps = list342; reference267 = obj244; - ref QuestSequence reference268 = ref span113[2]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -242871,8 +292452,9 @@ public static class AssemblyQuestLoader num2 = 3; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span114 = CollectionsMarshal.AsSpan(list343); - ref QuestStep reference269 = ref span114[0]; + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + ref QuestStep reference269 = ref span3[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Action, 2010891u, new Vector3(-852.0485f, 37.67456f, 298.11548f), 816) { Fly = true, @@ -242881,48 +292463,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list344 = new List>(num3); CollectionsMarshal.SetCount(list344, num3); - Span> span115 = CollectionsMarshal.AsSpan(list344); - span115[0] = null; - span115[1] = null; - ref List reference270 = ref span115[2]; + span8 = CollectionsMarshal.AsSpan(list344); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference270 = ref span8[index3]; num4 = 2; List list345 = new List(num4); CollectionsMarshal.SetCount(list345, num4); - Span span116 = CollectionsMarshal.AsSpan(list345); - span116[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span116[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list345); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference270 = list345; - span115[3] = null; - span115[4] = null; - span115[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj246.RequiredQuestVariables = list344; reference269 = obj246; - ref QuestStep reference271 = ref span114[1]; + index2++; + ref QuestStep reference271 = ref span3[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Action, 2010892u, new Vector3(-774.44116f, 54.520386f, 102.61682f), 816) { Fly = true, Action = EAction.SiphonSnout }; - num3 = 6; - List> list346 = new List>(num3); - CollectionsMarshal.SetCount(list346, num3); - Span> span117 = CollectionsMarshal.AsSpan(list346); - span117[0] = null; - span117[1] = null; - ref List reference272 = ref span117[2]; - num4 = 2; - List list347 = new List(num4); - CollectionsMarshal.SetCount(list347, num4); - Span span118 = CollectionsMarshal.AsSpan(list347); - span118[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span118[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3 = 6; + List> list346 = new List>(index3); + CollectionsMarshal.SetCount(list346, index3); + span8 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference272 = ref span8[num3]; + index4 = 2; + List list347 = new List(index4); + CollectionsMarshal.SetCount(list347, index4); + span5 = CollectionsMarshal.AsSpan(list347); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference272 = list347; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj247.RequiredQuestVariables = list346; reference271 = obj247; - ref QuestStep reference273 = ref span114[2]; + index2++; + ref QuestStep reference273 = ref span3[index2]; QuestStep obj248 = new QuestStep(EInteractionType.Action, 2010893u, new Vector3(-802.30414f, 27.115234f, -108.44586f), 816) { Fly = true, @@ -242931,40 +292531,51 @@ public static class AssemblyQuestLoader num3 = 6; List> list348 = new List>(num3); CollectionsMarshal.SetCount(list348, num3); - Span> span119 = CollectionsMarshal.AsSpan(list348); - span119[0] = null; - span119[1] = null; - ref List reference274 = ref span119[2]; + span8 = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference274 = ref span8[index3]; num4 = 2; List list349 = new List(num4); CollectionsMarshal.SetCount(list349, num4); - Span span120 = CollectionsMarshal.AsSpan(list349); - span120[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span120[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list349); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference274 = list349; - span119[3] = null; - span119[4] = null; - span119[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj248.RequiredQuestVariables = list348; reference273 = obj248; obj245.Steps = list343; reference268 = obj245; - ref QuestSequence reference275 = ref span113[3]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span121 = CollectionsMarshal.AsSpan(list350); - span121[0] = new QuestStep(EInteractionType.WalkTo, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 2; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { StopDistance = 3f, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span121[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Mount = false }; @@ -242977,13 +292588,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list351); + index = 0; + span[index] = "liza"; questRoot38.Author = list351; - num = 3; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span122 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference276 = ref span122[0]; + index = 3; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + span2 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -242991,42 +292605,55 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj250.Steps = list353; reference276 = obj250; - ref QuestSequence reference277 = ref span122[1]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - Span span123 = CollectionsMarshal.AsSpan(list354); - ref QuestStep reference278 = ref span123[0]; + index2 = 3; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + ref QuestStep reference278 = ref span3[num2]; QuestStep obj252 = new QuestStep(EInteractionType.Interact, 1032183u, new Vector3(-105.60773f, 110.29838f, -196.97876f), 816) { StopDistance = 1f, Fly = true }; - num3 = 6; - List> list355 = new List>(num3); - CollectionsMarshal.SetCount(list355, num3); - Span> span124 = CollectionsMarshal.AsSpan(list355); - span124[0] = null; - span124[1] = null; - ref List reference279 = ref span124[2]; - num4 = 1; - List list356 = new List(num4); - CollectionsMarshal.SetCount(list356, num4); - CollectionsMarshal.AsSpan(list356)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list355 = new List>(index3); + CollectionsMarshal.SetCount(list355, index3); + span8 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference279 = ref span8[num3]; + index4 = 1; + List list356 = new List(index4); + CollectionsMarshal.SetCount(list356, index4); + span5 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference279 = list356; - span124[3] = null; - span124[4] = null; - span124[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj252.RequiredQuestVariables = list355; reference278 = obj252; - ref QuestStep reference280 = ref span123[1]; + num2++; + ref QuestStep reference280 = ref span3[num2]; QuestStep obj253 = new QuestStep(EInteractionType.Interact, 1032185u, new Vector3(-185.29034f, 154.79187f, -262.89777f), 816) { Fly = true @@ -243034,45 +292661,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list357 = new List>(num3); CollectionsMarshal.SetCount(list357, num3); - Span> span125 = CollectionsMarshal.AsSpan(list357); - span125[0] = null; - span125[1] = null; - ref List reference281 = ref span125[2]; + span8 = CollectionsMarshal.AsSpan(list357); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference281 = ref span8[index3]; num4 = 1; List list358 = new List(num4); CollectionsMarshal.SetCount(list358, num4); - CollectionsMarshal.AsSpan(list358)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list358); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference281 = list358; - span125[3] = null; - span125[4] = null; - span125[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj253.RequiredQuestVariables = list357; reference280 = obj253; - ref QuestStep reference282 = ref span123[2]; + num2++; + ref QuestStep reference282 = ref span3[num2]; QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1032184u, new Vector3(-226.27612f, 114.61068f, -305.6535f), 816) { Fly = true }; - num3 = 6; - List> list359 = new List>(num3); - CollectionsMarshal.SetCount(list359, num3); - Span> span126 = CollectionsMarshal.AsSpan(list359); - span126[0] = null; - span126[1] = null; - ref List reference283 = ref span126[2]; - num4 = 1; - List list360 = new List(num4); - CollectionsMarshal.SetCount(list360, num4); - CollectionsMarshal.AsSpan(list360)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list359 = new List>(index3); + CollectionsMarshal.SetCount(list359, index3); + span8 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference283 = ref span8[num3]; + index4 = 1; + List list360 = new List(index4); + CollectionsMarshal.SetCount(list360, index4); + span5 = CollectionsMarshal.AsSpan(list360); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference283 = list360; - span126[3] = null; - span126[4] = null; - span126[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj254.RequiredQuestVariables = list359; reference282 = obj254; obj251.Steps = list354; reference277 = obj251; - ref QuestSequence reference284 = ref span122[2]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue @@ -243080,7 +292725,9 @@ public static class AssemblyQuestLoader num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243098,13 +292745,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -243112,18 +292762,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2010894u, new Vector3(268.51294f, 33.707153f, -78.14148f), 816) { Fly = true, @@ -243132,12 +292787,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 11448u; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 11448u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -243145,7 +292803,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243159,24 +292819,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 5; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 5; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -243184,46 +292850,59 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span3[0]; + index2 = 3; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2010895u, new Vector3(718.28796f, 188.06738f, 296.77258f), 816) { Fly = true }; - num3 = 6; - List> list12 = new List>(num3); - CollectionsMarshal.SetCount(list12, num3); - Span> span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = null; - ref List reference9 = ref span4[1]; + index3 = 6; + List> list12 = new List>(index3); + CollectionsMarshal.SetCount(list12, index3); + Span> span5 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span5[num3] = null; + num3++; + ref List reference9 = ref span5[num3]; int num4 = 2; List list13 = new List(num4); CollectionsMarshal.SetCount(list13, num4); - Span span5 = CollectionsMarshal.AsSpan(list13); - span5[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span5[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list13); + int num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference9 = list13; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj8.RequiredQuestVariables = list12; reference8 = obj8; - ref QuestStep reference10 = ref span3[1]; + num2++; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2010896u, new Vector3(743.5569f, 189.83752f, 260.4867f), 816) { Fly = true @@ -243231,49 +292910,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list14 = new List>(num3); CollectionsMarshal.SetCount(list14, num3); - Span> span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = null; - ref List reference11 = ref span6[1]; - num4 = 2; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span7[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span5[index3] = null; + index3++; + ref List reference11 = ref span5[index3]; + num5 = 2; + List list15 = new List(num5); + CollectionsMarshal.SetCount(list15, num5); + span6 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span6[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span6[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference11 = list15; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj9.RequiredQuestVariables = list14; reference10 = obj9; - ref QuestStep reference12 = ref span3[2]; + num2++; + ref QuestStep reference12 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2010897u, new Vector3(769.0698f, 191.60742f, 251.88062f), 816) { Fly = true }; - num3 = 6; - List> list16 = new List>(num3); - CollectionsMarshal.SetCount(list16, num3); - Span> span8 = CollectionsMarshal.AsSpan(list16); - span8[0] = null; - ref List reference13 = ref span8[1]; + index3 = 6; + List> list16 = new List>(index3); + CollectionsMarshal.SetCount(list16, index3); + span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = null; + num3++; + ref List reference13 = ref span5[num3]; num4 = 2; List list17 = new List(num4); CollectionsMarshal.SetCount(list17, num4); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span9[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span6[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span6[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference13 = list17; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj10.RequiredQuestVariables = list16; reference12 = obj10; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference14 = ref span2[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -243281,22 +292978,27 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj11.Steps = list18; reference14 = obj11; - ref QuestSequence reference15 = ref span2[4]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -243309,13 +293011,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span10 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span10[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -243323,19 +293028,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj13.Steps = list22; reference16 = obj13; - ref QuestSequence reference17 = ref span10[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span11 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference18 = ref span11[0]; + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference18 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2010900u, new Vector3(787.92993f, 187.33496f, 174.33423f), 816) { Fly = true @@ -243343,43 +293052,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list24 = new List>(num3); CollectionsMarshal.SetCount(list24, num3); - Span> span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = null; - span12[1] = null; - span12[2] = null; - ref List reference19 = ref span12[3]; - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - CollectionsMarshal.AsSpan(list25)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + ref List reference19 = ref span5[index3]; + num5 = 1; + List list25 = new List(num5); + CollectionsMarshal.SetCount(list25, num5); + span6 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span6[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference19 = list25; - span12[4] = null; - span12[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj15.RequiredQuestVariables = list24; reference18 = obj15; - ref QuestStep reference20 = ref span11[1]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 2010899u, new Vector3(783.2302f, 187.30444f, 151.995f), 816) { Fly = true }; - num3 = 6; - List> list26 = new List>(num3); - CollectionsMarshal.SetCount(list26, num3); - Span> span13 = CollectionsMarshal.AsSpan(list26); - span13[0] = null; - span13[1] = null; - span13[2] = null; - ref List reference21 = ref span13[3]; + index3 = 6; + List> list26 = new List>(index3); + CollectionsMarshal.SetCount(list26, index3); + span5 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + ref List reference21 = ref span5[num3]; num4 = 1; List list27 = new List(num4); CollectionsMarshal.SetCount(list27, num4); - CollectionsMarshal.AsSpan(list27)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list27); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference21 = list27; - span13[4] = null; - span13[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj16.RequiredQuestVariables = list26; reference20 = obj16; - ref QuestStep reference22 = ref span11[2]; + num2++; + ref QuestStep reference22 = ref span3[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2010898u, new Vector3(765.8655f, 187.30444f, 163.53088f), 816) { Fly = true @@ -243387,23 +293114,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list28 = new List>(num3); CollectionsMarshal.SetCount(list28, num3); - Span> span14 = CollectionsMarshal.AsSpan(list28); - span14[0] = null; - span14[1] = null; - span14[2] = null; - ref List reference23 = ref span14[3]; - num4 = 1; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - CollectionsMarshal.AsSpan(list29)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + ref List reference23 = ref span5[index3]; + num5 = 1; + List list29 = new List(num5); + CollectionsMarshal.SetCount(list29, num5); + span6 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span6[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference23 = list29; - span14[4] = null; - span14[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj17.RequiredQuestVariables = list28; reference22 = obj17; obj14.Steps = list23; reference17 = obj14; - ref QuestSequence reference24 = ref span10[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -243411,12 +293147,14 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span15 = CollectionsMarshal.AsSpan(list30); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.3476f, 186.89098f, 193.8602f), 816) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.3476f, 186.89098f, 193.8602f), 816) { Mount = false }; - span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243430,24 +293168,30 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; questRoot4.Author = list31; - num = 3; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span16 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference25 = ref span16[0]; + index = 3; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj19.Steps = list33; reference25 = obj19; - ref QuestSequence reference26 = ref span16[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -243455,30 +293199,40 @@ public static class AssemblyQuestLoader num2 = 3; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span17 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference27 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1032169u, new Vector3(-423.33105f, 25.599815f, 265.94946f), 816) { Fly = true }; - num3 = 6; - List> list35 = new List>(num3); - CollectionsMarshal.SetCount(list35, num3); - Span> span18 = CollectionsMarshal.AsSpan(list35); - span18[0] = null; - ref List reference28 = ref span18[1]; + index3 = 6; + List> list35 = new List>(index3); + CollectionsMarshal.SetCount(list35, index3); + span5 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span5[num3] = null; + num3++; + ref List reference28 = ref span5[num3]; num4 = 1; List list36 = new List(num4); CollectionsMarshal.SetCount(list36, num4); - CollectionsMarshal.AsSpan(list36)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list36); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference28 = list36; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj21.RequiredQuestVariables = list35; reference27 = obj21; - ref QuestStep reference29 = ref span17[1]; + index2++; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1032168u, new Vector3(-431.3573f, 24.720499f, 251.60596f), 816) { Fly = true @@ -243486,53 +293240,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list37 = new List>(num3); CollectionsMarshal.SetCount(list37, num3); - Span> span19 = CollectionsMarshal.AsSpan(list37); - span19[0] = null; - ref List reference30 = ref span19[1]; - num4 = 1; - List list38 = new List(num4); - CollectionsMarshal.SetCount(list38, num4); - CollectionsMarshal.AsSpan(list38)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span5[index3] = null; + index3++; + ref List reference30 = ref span5[index3]; + num5 = 1; + List list38 = new List(num5); + CollectionsMarshal.SetCount(list38, num5); + span6 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span6[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference30 = list38; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj22.RequiredQuestVariables = list37; reference29 = obj22; - ref QuestStep reference31 = ref span17[2]; + index2++; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1032167u, new Vector3(-416.52557f, 20.303928f, 221.75928f), 816) { Fly = true }; - num3 = 6; - List> list39 = new List>(num3); - CollectionsMarshal.SetCount(list39, num3); - Span> span20 = CollectionsMarshal.AsSpan(list39); - span20[0] = null; - ref List reference32 = ref span20[1]; + index3 = 6; + List> list39 = new List>(index3); + CollectionsMarshal.SetCount(list39, index3); + span5 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span5[num3] = null; + num3++; + ref List reference32 = ref span5[num3]; num4 = 1; List list40 = new List(num4); CollectionsMarshal.SetCount(list40, num4); - CollectionsMarshal.AsSpan(list40)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list40); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference32 = list40; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj23.RequiredQuestVariables = list39; reference31 = obj23; obj20.Steps = list34; reference26 = obj20; - ref QuestSequence reference33 = ref span16[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -243545,13 +293319,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot5.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span21 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span21[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -243559,19 +293336,23 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj25.Steps = list44; reference34 = obj25; - ref QuestSequence reference35 = ref span21[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span22 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference36 = ref span22[0]; + index2 = 3; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2010901u, new Vector3(-413.96204f, -0.10687256f, -55.77173f), 816) { Fly = true @@ -243579,43 +293360,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list46 = new List>(num3); CollectionsMarshal.SetCount(list46, num3); - Span> span23 = CollectionsMarshal.AsSpan(list46); - span23[0] = null; - span23[1] = null; - ref List reference37 = ref span23[2]; - num4 = 1; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - CollectionsMarshal.AsSpan(list47)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + ref List reference37 = ref span5[index3]; + num5 = 1; + List list47 = new List(num5); + CollectionsMarshal.SetCount(list47, num5); + span6 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span6[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference37 = list47; - span23[3] = null; - span23[4] = null; - span23[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj27.RequiredQuestVariables = list46; reference36 = obj27; - ref QuestStep reference38 = ref span22[1]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2010902u, new Vector3(-405.9358f, -0.07635498f, -28.397034f), 816) { Fly = true }; - num3 = 6; - List> list48 = new List>(num3); - CollectionsMarshal.SetCount(list48, num3); - Span> span24 = CollectionsMarshal.AsSpan(list48); - span24[0] = null; - span24[1] = null; - ref List reference39 = ref span24[2]; + index3 = 6; + List> list48 = new List>(index3); + CollectionsMarshal.SetCount(list48, index3); + span5 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + ref List reference39 = ref span5[num3]; num4 = 1; List list49 = new List(num4); CollectionsMarshal.SetCount(list49, num4); - CollectionsMarshal.AsSpan(list49)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list49); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference39 = list49; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj28.RequiredQuestVariables = list48; reference38 = obj28; - ref QuestStep reference40 = ref span22[2]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2010903u, new Vector3(-395.46808f, -0.07635498f, -0.16790771f), 816) { Fly = true @@ -243623,23 +293422,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list50 = new List>(num3); CollectionsMarshal.SetCount(list50, num3); - Span> span25 = CollectionsMarshal.AsSpan(list50); - span25[0] = null; - span25[1] = null; - ref List reference41 = ref span25[2]; - num4 = 1; - List list51 = new List(num4); - CollectionsMarshal.SetCount(list51, num4); - CollectionsMarshal.AsSpan(list51)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + ref List reference41 = ref span5[index3]; + num5 = 1; + List list51 = new List(num5); + CollectionsMarshal.SetCount(list51, num5); + span6 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span6[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference41 = list51; - span25[3] = null; - span25[4] = null; - span25[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj29.RequiredQuestVariables = list50; reference40 = obj29; obj26.Steps = list45; reference35 = obj26; - ref QuestSequence reference42 = ref span21[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -243647,13 +293455,15 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span26 = CollectionsMarshal.AsSpan(list52); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.47775f, 5.0289116f, 18.171812f), 816) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.47775f, 5.0289116f, 18.171812f), 816) { DisableNavmesh = true, Mount = false }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243667,24 +293477,30 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "liza"; questRoot6.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span27 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference43 = ref span27[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj31.Steps = list55; reference43 = obj31; - ref QuestSequence reference44 = ref span27[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -243692,34 +293508,45 @@ public static class AssemblyQuestLoader num2 = 4; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span28 = CollectionsMarshal.AsSpan(list56); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.77283f, 7.1942587f, 130.61378f), 816) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.77283f, 7.1942587f, 130.61378f), 816) { Fly = true }; - ref QuestStep reference45 = ref span28[1]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2010911u, new Vector3(-113.93915f, -36.087585f, 87.6936f), 816) { DisableNavmesh = true }; - num3 = 6; - List> list57 = new List>(num3); - CollectionsMarshal.SetCount(list57, num3); - Span> span29 = CollectionsMarshal.AsSpan(list57); - span29[0] = null; - ref List reference46 = ref span29[1]; + index3 = 6; + List> list57 = new List>(index3); + CollectionsMarshal.SetCount(list57, index3); + span5 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span5[num3] = null; + num3++; + ref List reference46 = ref span5[num3]; num4 = 1; List list58 = new List(num4); CollectionsMarshal.SetCount(list58, num4); - CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list58); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference46 = list58; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj33.RequiredQuestVariables = list57; reference45 = obj33; - ref QuestStep reference47 = ref span28[2]; + index2++; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 2010904u, new Vector3(-164.93481f, -50.919373f, 71.15283f), 816) { DisableNavmesh = true @@ -243727,53 +293554,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list59 = new List>(num3); CollectionsMarshal.SetCount(list59, num3); - Span> span30 = CollectionsMarshal.AsSpan(list59); - span30[0] = null; - ref List reference48 = ref span30[1]; - num4 = 1; - List list60 = new List(num4); - CollectionsMarshal.SetCount(list60, num4); - CollectionsMarshal.AsSpan(list60)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span5[index3] = null; + index3++; + ref List reference48 = ref span5[index3]; + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + span6 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span6[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference48 = list60; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj34.RequiredQuestVariables = list59; reference47 = obj34; - ref QuestStep reference49 = ref span28[3]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2010910u, new Vector3(-189.86804f, -66.941345f, 13.046387f), 816) { DisableNavmesh = true }; - num3 = 6; - List> list61 = new List>(num3); - CollectionsMarshal.SetCount(list61, num3); - Span> span31 = CollectionsMarshal.AsSpan(list61); - span31[0] = null; - ref List reference50 = ref span31[1]; + index3 = 6; + List> list61 = new List>(index3); + CollectionsMarshal.SetCount(list61, index3); + span5 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span5[num3] = null; + num3++; + ref List reference50 = ref span5[num3]; num4 = 1; List list62 = new List(num4); CollectionsMarshal.SetCount(list62, num4); - CollectionsMarshal.AsSpan(list62)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list62); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference50 = list62; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj35.RequiredQuestVariables = list61; reference49 = obj35; obj32.Steps = list56; reference44 = obj32; - ref QuestSequence reference51 = ref span27[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243787,13 +293634,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot7.Author = list64; - num = 3; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span32 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference52 = ref span32[0]; + index = 3; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -243801,18 +293651,23 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj37.Steps = list66; reference52 = obj37; - ref QuestSequence reference53 = ref span32[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list67)[0]; + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 2010905u, new Vector3(164.01917f, 0.289917f, 640.2228f), 816) { Fly = true, @@ -243821,12 +293676,15 @@ public static class AssemblyQuestLoader num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 11449u; + span4 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span4[index3] = 11449u; obj39.KillEnemyDataIds = list68; reference54 = obj39; obj38.Steps = list67; reference53 = obj38; - ref QuestSequence reference55 = ref span32[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -243834,7 +293692,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -243847,24 +293707,30 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list70); + index = 0; + span[index] = "liza"; questRoot8.Author = list70; - num = 3; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span33 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference56 = ref span33[0]; + index = 3; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + span2 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj41.Steps = list72; reference56 = obj41; - ref QuestSequence reference57 = ref span33[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -243872,31 +293738,38 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Snipe, 1032170u, new Vector3(25.070557f, 13.914338f, 755.58093f), 816) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 1032170u, new Vector3(25.070557f, 13.914338f, 755.58093f), 816) { Fly = true, Comment = "Throw Porxies at Beavers" }; obj42.Steps = list73; reference57 = obj42; - ref QuestSequence reference58 = ref span33[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list74)[0]; + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference59 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span7 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX119_03707_Q1_000_000"), @@ -243913,13 +293786,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "liza"; questRoot9.Author = list76; - num = 3; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span34 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference60 = ref span34[0]; + index = 3; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -243927,19 +293803,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj45.Steps = list78; reference60 = obj45; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span35 = CollectionsMarshal.AsSpan(list79); - ref QuestStep reference62 = ref span35[0]; + index2 = 3; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 2010906u, new Vector3(60.135742f, 5.7526245f, 404.34875f), 816) { Fly = true @@ -243947,46 +293827,67 @@ public static class AssemblyQuestLoader num3 = 6; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span36 = CollectionsMarshal.AsSpan(list80); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list80; reference62 = obj47; - ref QuestStep reference63 = ref span35[1]; + num2++; + ref QuestStep reference63 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2010907u, new Vector3(50.858276f, 6.94281f, 406.51562f), 816); - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span37 = CollectionsMarshal.AsSpan(list81); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + span6 = CollectionsMarshal.AsSpan(list81); + 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); questStep.CompletionQuestVariablesFlags = list81; reference63 = questStep; - ref QuestStep reference64 = ref span35[2]; + num2++; + ref QuestStep reference64 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010908u, new Vector3(42.893066f, 6.668152f, 397.26855f), 816); num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span38 = CollectionsMarshal.AsSpan(list82); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list82; reference64 = questStep2; obj46.Steps = list79; reference61 = obj46; - ref QuestSequence reference65 = ref span34[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -243994,7 +293895,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244008,24 +293911,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "liza"; questRoot10.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span39 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span39[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj49.Steps = list86; reference66 = obj49; - ref QuestSequence reference67 = ref span39[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -244033,29 +293942,36 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list87)[0]; + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2010909u, new Vector3(-242.08441f, 0.83917236f, 223.80408f), 816) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = 11450u; + index3 = 1; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = 11450u; obj51.KillEnemyDataIds = list88; reference68 = obj51; obj50.Steps = list87; reference67 = obj50; - ref QuestSequence reference69 = ref span39[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -244068,13 +293984,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "liza"; questRoot11.Author = list90; - num = 4; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span40 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference70 = ref span40[0]; + index = 4; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -244082,25 +294001,31 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj53.Steps = list92; reference70 = obj53; - ref QuestSequence reference71 = ref span40[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.UseItem, 1032204u, new Vector3(-81.864685f, 88.12085f, -175.06683f), 816) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1032204u, new Vector3(-81.864685f, 88.12085f, -175.06683f), 816) { Fly = true, ItemId = 2002945u }; obj54.Steps = list93; reference71 = obj54; - ref QuestSequence reference72 = ref span40[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -244108,22 +294033,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.UseItem, 1032205u, new Vector3(-114.21387f, 112.903015f, -350.57605f), 816) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1032205u, new Vector3(-114.21387f, 112.903015f, -350.57605f), 816) { Fly = true, ItemId = 2002945u }; obj55.Steps = list94; reference72 = obj55; - ref QuestSequence reference73 = ref span40[3]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference74 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, @@ -244132,7 +294062,9 @@ public static class AssemblyQuestLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list96); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX122_03710_Q1_000_000"), @@ -244149,13 +294081,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; questRoot12.Author = list97; - num = 3; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span41 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span41[0]; + index = 3; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -244163,25 +294098,31 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj58.Steps = list99; reference75 = obj58; - ref QuestSequence reference76 = ref span41[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2010786u, new Vector3(514.94617f, 97.61194f, -256.70258f), 816) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010786u, new Vector3(514.94617f, 97.61194f, -256.70258f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj59.Steps = list100; reference76 = obj59; - ref QuestSequence reference77 = ref span41[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -244189,9 +294130,11 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span42 = CollectionsMarshal.AsSpan(list101); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.33374f, 90.93466f, -316.85287f), 816); - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.33374f, 90.93466f, -316.85287f), 816); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244205,24 +294148,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot13.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span43 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference78 = ref span43[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj61.Steps = list104; reference78 = obj61; - ref QuestSequence reference79 = ref span43[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -244230,13 +294179,15 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span44 = CollectionsMarshal.AsSpan(list105); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.35126f, 102.935814f, -799.43896f), 816) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.35126f, 102.935814f, -799.43896f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - span44[1] = new QuestStep(EInteractionType.Say, 1032208u, new Vector3(68.89441f, 103.07577f, -797.05505f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.Say, 1032208u, new Vector3(68.89441f, 103.07577f, -797.05505f), 816) { ChatMessage = new ChatMessage { @@ -244245,15 +294196,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list105; reference79 = obj62; - ref QuestSequence reference80 = ref span43[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244267,13 +294221,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot14.Author = list107; - num = 4; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span45 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference81 = ref span45[0]; + index = 4; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -244281,18 +294238,23 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj64.Steps = list109; reference81 = obj64; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list110)[0]; + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.93869f, 30.646347f, -487.75848f), 816) { StopDistance = 0.5f, @@ -244300,17 +294262,20 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span46 = CollectionsMarshal.AsSpan(list111); - span46[0] = 11455u; - span46[1] = 11456u; + index3 = 2; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + span4 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span4[num3] = 11455u; + num3++; + span4[num3] = 11456u; obj66.KillEnemyDataIds = list111; reference83 = obj66; obj65.Steps = list110; reference82 = obj65; - ref QuestSequence reference84 = ref span45[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -244318,18 +294283,23 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1032211u, new Vector3(220.38599f, 30.803741f, -489.5552f), 816); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032211u, new Vector3(220.38599f, 30.803741f, -489.5552f), 816); obj67.Steps = list112; reference84 = obj67; - ref QuestSequence reference85 = ref span45[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244343,13 +294313,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot15.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span47 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span47[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -244357,21 +294330,27 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj69.Steps = list116; reference86 = obj69; - ref QuestSequence reference87 = ref span47[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); obj70.Steps = list117; reference87 = obj70; - ref QuestSequence reference88 = ref span47[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -244379,8 +294358,9 @@ public static class AssemblyQuestLoader num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span48 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference89 = ref span48[0]; + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference89 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Action, 2010922u, new Vector3(-27.878296f, 30.44165f, -505.39407f), 816) { Fly = true, @@ -244389,51 +294369,67 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span49 = CollectionsMarshal.AsSpan(list119); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list119; reference89 = obj72; - ref QuestStep reference90 = ref span48[1]; + index2++; + ref QuestStep reference90 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Action, 2010923u, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) { Fly = true, Action = EAction.SiphonSnout }; - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span50 = CollectionsMarshal.AsSpan(list120); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + span6 = CollectionsMarshal.AsSpan(list120); + 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); obj73.CompletionQuestVariablesFlags = list120; reference90 = obj73; obj71.Steps = list118; reference88 = obj71; - ref QuestSequence reference91 = ref span47[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span51 = CollectionsMarshal.AsSpan(list121); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) { StopDistance = 100f, DelaySecondsAtStart = 2f, Fly = true }; - span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244447,13 +294443,16 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list122); + index = 0; + span[index] = "liza"; questRoot16.Author = list122; - num = 3; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span52 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference92 = ref span52[0]; + index = 3; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + span2 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -244461,18 +294460,23 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj75.Steps = list124; reference92 = obj75; - ref QuestSequence reference93 = ref span52[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list125)[0]; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2010788u, new Vector3(-480.0946f, 83.45154f, 635.9197f), 816) { Fly = true, @@ -244481,15 +294485,19 @@ public static class AssemblyQuestLoader num3 = 3; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span53 = CollectionsMarshal.AsSpan(list126); - span53[0] = 11452u; - span53[1] = 11453u; - span53[2] = 11454u; + span4 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span4[index3] = 11452u; + index3++; + span4[index3] = 11453u; + index3++; + span4[index3] = 11454u; obj77.KillEnemyDataIds = list126; reference94 = obj77; obj76.Steps = list125; reference93 = obj76; - ref QuestSequence reference95 = ref span52[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -244497,7 +294505,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -244510,24 +294520,30 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot17.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span54 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference96 = ref span54[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj79.Steps = list130; reference96 = obj79; - ref QuestSequence reference97 = ref span54[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -244535,32 +294551,42 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span55 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference98 = ref span55[0]; + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; QuestStep obj81 = new QuestStep(EInteractionType.UseItem, 1032203u, new Vector3(10.849121f, 100.161f, -886.22876f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, ItemId = 2002943u }; - num3 = 6; - List> list132 = new List>(num3); - CollectionsMarshal.SetCount(list132, num3); - Span> span56 = CollectionsMarshal.AsSpan(list132); - span56[0] = null; - span56[1] = null; - ref List reference99 = ref span56[2]; - num4 = 1; - List list133 = new List(num4); - CollectionsMarshal.SetCount(list133, num4); - CollectionsMarshal.AsSpan(list133)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list132 = new List>(index3); + CollectionsMarshal.SetCount(list132, index3); + span5 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + ref List reference99 = ref span5[num3]; + num5 = 1; + List list133 = new List(num5); + CollectionsMarshal.SetCount(list133, num5); + span6 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span6[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference99 = list133; - span56[3] = null; - span56[4] = null; - span56[5] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj81.RequiredQuestVariables = list132; reference98 = obj81; - ref QuestStep reference100 = ref span55[1]; + index2++; + ref QuestStep reference100 = ref span3[index2]; QuestStep obj82 = new QuestStep(EInteractionType.UseItem, 1032202u, new Vector3(10.849121f, 100.161f, -886.22876f), 816) { Fly = true, @@ -244569,31 +294595,42 @@ public static class AssemblyQuestLoader num3 = 6; List> list134 = new List>(num3); CollectionsMarshal.SetCount(list134, num3); - Span> span57 = CollectionsMarshal.AsSpan(list134); - span57[0] = null; - span57[1] = null; - ref List reference101 = ref span57[2]; + span5 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + ref List reference101 = ref span5[index3]; num4 = 1; List list135 = new List(num4); CollectionsMarshal.SetCount(list135, num4); - CollectionsMarshal.AsSpan(list135)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list135); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference101 = list135; - span57[3] = null; - span57[4] = null; - span57[5] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj82.RequiredQuestVariables = list134; reference100 = obj82; obj80.Steps = list131; reference97 = obj80; - ref QuestSequence reference102 = ref span54[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244607,13 +294644,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "liza"; questRoot18.Author = list137; - num = 12; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span58 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span58[0]; + index = 12; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -244621,25 +294661,31 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814); obj84.Steps = list139; reference103 = obj84; - ref QuestSequence reference104 = ref span58[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj85.Steps = list140; reference104 = obj85; - ref QuestSequence reference105 = ref span58[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -244647,29 +294693,35 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span59 = CollectionsMarshal.AsSpan(list141); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.1434f, 295.63748f, -219.3426f), 814) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.1434f, 295.63748f, -219.3426f), 814) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 2010833u, new Vector3(545.4946f, 296.1317f, -218.79913f), 814); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010833u, new Vector3(545.4946f, 296.1317f, -218.79913f), 814); obj86.Steps = list141; reference105 = obj86; - ref QuestSequence reference106 = ref span58[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) { Fly = true }; obj87.Steps = list142; reference106 = obj87; - ref QuestSequence reference107 = ref span58[4]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -244677,27 +294729,33 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1031826u, new Vector3(623.1022f, 297.49335f, -199.51172f), 814) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031826u, new Vector3(623.1022f, 297.49335f, -199.51172f), 814) { Fly = true }; obj88.Steps = list143; reference107 = obj88; - ref QuestSequence reference108 = ref span58[5]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Fly = true }; obj89.Steps = list144; reference108 = obj89; - ref QuestSequence reference109 = ref span58[6]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -244705,27 +294763,33 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Emote, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Emote = EEmote.Doubt }; obj90.Steps = list145; reference109 = obj90; - ref QuestSequence reference110 = ref span58[7]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1031829u, new Vector3(215.28955f, 315.85886f, -17.349548f), 814) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031829u, new Vector3(215.28955f, 315.85886f, -17.349548f), 814) { Fly = true }; obj91.Steps = list146; reference110 = obj91; - ref QuestSequence reference111 = ref span58[8]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 8 @@ -244733,39 +294797,47 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list147)[0]; + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference112 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(215.44379f, 315.57245f, -22.744217f), 814) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span60 = CollectionsMarshal.AsSpan(list148); - span60[0] = 11435u; - span60[1] = 11436u; + index3 = 2; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span4 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span4[num3] = 11435u; + num3++; + span4[num3] = 11436u; obj93.KillEnemyDataIds = list148; reference112 = obj93; obj92.Steps = list147; reference111 = obj92; - ref QuestSequence reference113 = ref span58[9]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span61 = CollectionsMarshal.AsSpan(list149); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.7035f, 308.6692f, -119.51825f), 814) + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.7035f, 308.6692f, -119.51825f), 814) { Fly = true }; - span61[1] = new QuestStep(EInteractionType.Interact, 1031828u, new Vector3(236.40796f, 309.01877f, -118.24219f), 814); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031828u, new Vector3(236.40796f, 309.01877f, -118.24219f), 814); obj94.Steps = list149; reference113 = obj94; - ref QuestSequence reference114 = ref span58[10]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 10 @@ -244773,18 +294845,23 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 2010844u, new Vector3(238.17798f, 308.5221f, -120.19531f), 814); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010844u, new Vector3(238.17798f, 308.5221f, -120.19531f), 814); obj95.Steps = list150; reference114 = obj95; - ref QuestSequence reference115 = ref span58[11]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) { Fly = true, NextQuestId = new QuestId(3718) @@ -244798,13 +294875,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "liza"; questRoot19.Author = list152; - num = 8; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span62 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference116 = ref span62[0]; + index = 8; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -244812,24 +294892,30 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814); obj97.Steps = list154; reference116 = obj97; - ref QuestSequence reference117 = ref span62[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1032079u, new Vector3(737.11743f, 285.0313f, -84.06195f), 814) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032079u, new Vector3(737.11743f, 285.0313f, -84.06195f), 814) { Fly = true }; obj98.Steps = list155; reference117 = obj98; - ref QuestSequence reference118 = ref span62[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -244837,24 +294923,30 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 2010855u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010855u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { StopDistance = 4f }; obj99.Steps = list156; reference118 = obj99; - ref QuestSequence reference119 = ref span62[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1031837u, new Vector3(-1.8158569f, -6.9233757E-09f, -90.013f), 895); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031837u, new Vector3(-1.8158569f, -6.9233757E-09f, -90.013f), 895); obj100.Steps = list157; reference119 = obj100; - ref QuestSequence reference120 = ref span62[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 @@ -244862,7 +294954,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 895) + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 895) { DutyOptions = new DutyOptions { @@ -244871,22 +294965,27 @@ public static class AssemblyQuestLoader }; obj101.Steps = list158; reference120 = obj101; - span62[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference121 = ref span62[6]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1032021u, new Vector3(-8.255188f, 0.02999778f, -66.66675f), 895); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032021u, new Vector3(-8.255188f, 0.02999778f, -66.66675f), 895); obj102.Steps = list159; reference121 = obj102; - ref QuestSequence reference122 = ref span62[7]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -244894,7 +294993,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { StopDistance = 4f, NextQuestId = new QuestId(3719) @@ -244908,27 +295009,33 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot20.Author = list161; - num = 2; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span63 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference123 = ref span63[0]; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { StopDistance = 4f }; obj104.Steps = list163; reference123 = obj104; - ref QuestSequence reference124 = ref span63[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -244936,7 +295043,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj105.Steps = list164; reference124 = obj105; questRoot20.QuestSequence = list162; @@ -244946,26 +295055,33 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot21.Author = list165; - num = 10; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span64 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference125 = ref span64[0]; + index = 10; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list167)[0]; + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + ref QuestStep reference126 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.AcceptQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKTA110_03720_Q2_000_000") @@ -244974,7 +295090,8 @@ public static class AssemblyQuestLoader reference126 = questStep3; obj106.Steps = list167; reference125 = obj106; - ref QuestSequence reference127 = ref span64[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -244982,8 +295099,9 @@ public static class AssemblyQuestLoader num2 = 6; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span65 = CollectionsMarshal.AsSpan(list169); - span65[0] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) { SkipConditions = new SkipConditions { @@ -244993,8 +295111,10 @@ public static class AssemblyQuestLoader } } }; - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); - span65[2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) { SkipConditions = new SkipConditions { @@ -245004,8 +295124,10 @@ public static class AssemblyQuestLoader } } }; - span65[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); - span65[4] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) { SkipConditions = new SkipConditions { @@ -245015,29 +295137,34 @@ public static class AssemblyQuestLoader } } }; - span65[5] = new QuestStep(EInteractionType.Interact, 1032073u, new Vector3(-560.0824f, 383f, -139.08606f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032073u, new Vector3(-560.0824f, 383f, -139.08606f), 896); obj107.Steps = list169; reference127 = obj107; - ref QuestSequence reference128 = ref span64[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span66 = CollectionsMarshal.AsSpan(list170); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + index2 = 2; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - span66[1] = new QuestStep(EInteractionType.Interact, 1032025u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032025u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) { DelaySecondsAtStart = 5f }; obj108.Steps = list170; reference128 = obj108; - ref QuestSequence reference129 = ref span64[3]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -245045,8 +295172,9 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span67 = CollectionsMarshal.AsSpan(list171); - span67[0] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) { SkipConditions = new SkipConditions { @@ -245056,7 +295184,8 @@ public static class AssemblyQuestLoader } } }; - span67[1] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) { SkipConditions = new SkipConditions { @@ -245066,21 +295195,26 @@ public static class AssemblyQuestLoader } } }; - span67[2] = new QuestStep(EInteractionType.Interact, 2010825u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010825u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); obj109.Steps = list171; reference129 = obj109; - ref QuestSequence reference130 = ref span64[4]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1032027u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032027u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); obj110.Steps = list172; reference130 = obj110; - ref QuestSequence reference131 = ref span64[5]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 @@ -245088,12 +295222,14 @@ public static class AssemblyQuestLoader num2 = 7; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span68 = CollectionsMarshal.AsSpan(list173); - span68[0] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) { TargetTerritoryId = (ushort)896 }; - span68[1] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) { SkipConditions = new SkipConditions { @@ -245103,35 +295239,50 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference132 = ref span68[2]; + index2++; + ref QuestStep reference132 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010827u, new Vector3(-688.2887f, -484.00098f, 582.2689f), 896); - num3 = 6; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span69 = CollectionsMarshal.AsSpan(list174); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list174 = new List(index3); + CollectionsMarshal.SetCount(list174, index3); + span6 = CollectionsMarshal.AsSpan(list174); + 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); questStep4.CompletionQuestVariablesFlags = list174; reference132 = questStep4; - ref QuestStep reference133 = ref span68[3]; + index2++; + ref QuestStep reference133 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2010826u, new Vector3(-747.982f, -489.98248f, 603.1128f), 896); num3 = 6; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - Span span70 = CollectionsMarshal.AsSpan(list175); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list175); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list175; reference133 = questStep5; - span68[4] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) { SkipConditions = new SkipConditions { @@ -245141,7 +295292,8 @@ public static class AssemblyQuestLoader } } }; - span68[5] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) { SkipConditions = new SkipConditions { @@ -245151,36 +295303,46 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference134 = ref span68[6]; + index2++; + ref QuestStep reference134 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1032150u, new Vector3(-729.3965f, -499.74826f, 546.4408f), 896); - num3 = 6; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span71 = CollectionsMarshal.AsSpan(list176); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + span6 = CollectionsMarshal.AsSpan(list176); + 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); questStep6.CompletionQuestVariablesFlags = list176; reference134 = questStep6; obj111.Steps = list173; reference131 = obj111; - ref QuestSequence reference135 = ref span64[6]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span72 = CollectionsMarshal.AsSpan(list177); - span72[0] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) + index2 = 5; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) { TargetTerritoryId = (ushort)896 }; - span72[1] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) { SkipConditions = new SkipConditions { @@ -245190,7 +295352,8 @@ public static class AssemblyQuestLoader } } }; - span72[2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) { SkipConditions = new SkipConditions { @@ -245200,7 +295363,8 @@ public static class AssemblyQuestLoader } } }; - span72[3] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) { SkipConditions = new SkipConditions { @@ -245210,10 +295374,12 @@ public static class AssemblyQuestLoader } } }; - span72[4] = new QuestStep(EInteractionType.Interact, 1032075u, new Vector3(899.5956f, -677f, 880.39966f), 896); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032075u, new Vector3(899.5956f, -677f, 880.39966f), 896); obj112.Steps = list177; reference135 = obj112; - ref QuestSequence reference136 = ref span64[7]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 7 @@ -245221,26 +295387,32 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj113.Steps = list178; reference136 = obj113; - ref QuestSequence reference137 = ref span64[8]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span73 = CollectionsMarshal.AsSpan(list179); - span73[0] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) { TargetTerritoryId = (ushort)895 }; - span73[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj114.Steps = list179; reference137 = obj114; - ref QuestSequence reference138 = ref span64[9]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -245248,12 +295420,14 @@ public static class AssemblyQuestLoader num2 = 2; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span74 = CollectionsMarshal.AsSpan(list180); - span74[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - ref QuestStep reference139 = ref span74[1]; + index2++; + ref QuestStep reference139 = ref span3[index2]; QuestStep obj116 = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true @@ -245261,7 +295435,9 @@ public static class AssemblyQuestLoader num3 = 1; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA110_03720_Q1_000_000"), @@ -245279,29 +295455,36 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list182); + index = 0; + span[index] = "liza"; questRoot22.Author = list182; - num = 10; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span75 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference140 = ref span75[0]; + index = 10; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + span2 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list184)[0]; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj118 = new QuestStep(EInteractionType.AcceptQuest, 1032229u, new Vector3(-501.1826f, 484.0032f, 244.2511f), 896) { StopDistance = 4f }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span7 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKTA120_03721_Q2_000_000") @@ -245310,7 +295493,8 @@ public static class AssemblyQuestLoader reference141 = obj118; obj117.Steps = list184; reference140 = obj117; - ref QuestSequence reference142 = ref span75[1]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -245318,8 +295502,9 @@ public static class AssemblyQuestLoader num2 = 6; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span76 = CollectionsMarshal.AsSpan(list186); - span76[0] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) { SkipConditions = new SkipConditions { @@ -245329,8 +295514,10 @@ public static class AssemblyQuestLoader } } }; - span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); - span76[2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) { SkipConditions = new SkipConditions { @@ -245340,8 +295527,10 @@ public static class AssemblyQuestLoader } } }; - span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); - span76[4] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) { SkipConditions = new SkipConditions { @@ -245351,29 +295540,34 @@ public static class AssemblyQuestLoader } } }; - span76[5] = new QuestStep(EInteractionType.Interact, 1032074u, new Vector3(-560.0824f, 383f, -139.08606f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032074u, new Vector3(-560.0824f, 383f, -139.08606f), 896); obj119.Steps = list186; reference142 = obj119; - ref QuestSequence reference143 = ref span75[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span77 = CollectionsMarshal.AsSpan(list187); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - span77[1] = new QuestStep(EInteractionType.Interact, 1032026u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032026u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) { DelaySecondsAtStart = 5f }; obj120.Steps = list187; reference143 = obj120; - ref QuestSequence reference144 = ref span75[3]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -245381,8 +295575,9 @@ public static class AssemblyQuestLoader num2 = 3; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span78 = CollectionsMarshal.AsSpan(list188); - span78[0] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) { SkipConditions = new SkipConditions { @@ -245392,7 +295587,8 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) { SkipConditions = new SkipConditions { @@ -245402,21 +295598,26 @@ public static class AssemblyQuestLoader } } }; - span78[2] = new QuestStep(EInteractionType.Interact, 2010834u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010834u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); obj121.Steps = list188; reference144 = obj121; - ref QuestSequence reference145 = ref span75[4]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1032028u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032028u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); obj122.Steps = list189; reference145 = obj122; - ref QuestSequence reference146 = ref span75[5]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -245424,12 +295625,14 @@ public static class AssemblyQuestLoader num2 = 7; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span79 = CollectionsMarshal.AsSpan(list190); - span79[0] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) { TargetTerritoryId = (ushort)896 }; - span79[1] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) { SkipConditions = new SkipConditions { @@ -245439,35 +295642,50 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference147 = ref span79[2]; + index2++; + ref QuestStep reference147 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010836u, new Vector3(-688.2887f, -484.00098f, 582.2689f), 896); num3 = 6; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span80 = CollectionsMarshal.AsSpan(list191); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list191; reference147 = questStep7; - ref QuestStep reference148 = ref span79[3]; + index2++; + ref QuestStep reference148 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010835u, new Vector3(-747.982f, -489.98248f, 603.1128f), 896); - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span81 = CollectionsMarshal.AsSpan(list192); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + span6 = CollectionsMarshal.AsSpan(list192); + 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); questStep8.CompletionQuestVariablesFlags = list192; reference148 = questStep8; - span79[4] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) { SkipConditions = new SkipConditions { @@ -245477,7 +295695,8 @@ public static class AssemblyQuestLoader } } }; - span79[5] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) { SkipConditions = new SkipConditions { @@ -245487,36 +295706,46 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference149 = ref span79[6]; + index2++; + ref QuestStep reference149 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1032150u, new Vector3(-729.3965f, -499.74826f, 546.4408f), 896); num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span82 = CollectionsMarshal.AsSpan(list193); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list193); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list193; reference149 = questStep9; obj123.Steps = list190; reference146 = obj123; - ref QuestSequence reference150 = ref span75[6]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span83 = CollectionsMarshal.AsSpan(list194); - span83[0] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) + index2 = 5; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) { TargetTerritoryId = (ushort)896 }; - span83[1] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) { SkipConditions = new SkipConditions { @@ -245526,7 +295755,8 @@ public static class AssemblyQuestLoader } } }; - span83[2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) { SkipConditions = new SkipConditions { @@ -245536,7 +295766,8 @@ public static class AssemblyQuestLoader } } }; - span83[3] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) { SkipConditions = new SkipConditions { @@ -245546,10 +295777,12 @@ public static class AssemblyQuestLoader } } }; - span83[4] = new QuestStep(EInteractionType.Interact, 1032076u, new Vector3(899.93115f, -677f, 881.43726f), 896); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032076u, new Vector3(899.93115f, -677f, 881.43726f), 896); obj124.Steps = list194; reference150 = obj124; - ref QuestSequence reference151 = ref span75[7]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 7 @@ -245557,26 +295790,32 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj125.Steps = list195; reference151 = obj125; - ref QuestSequence reference152 = ref span75[8]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span84 = CollectionsMarshal.AsSpan(list196); - span84[0] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) + index2 = 2; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) { TargetTerritoryId = (ushort)895 }; - span84[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj126.Steps = list196; reference152 = obj126; - ref QuestSequence reference153 = ref span75[9]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -245584,20 +295823,24 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span85 = CollectionsMarshal.AsSpan(list197); - span85[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - ref QuestStep reference154 = ref span85[1]; + index2++; + ref QuestStep reference154 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + index3 = 1; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span7 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA120_03721_Q1_000_000"), @@ -245615,22 +295858,26 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "liza"; questRoot23.Author = list199; - num = 5; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span86 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference155 = ref span86[0]; + index = 5; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 11; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span87 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference156 = ref span87[0]; + index2 = 11; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference156 = ref span3[num2]; QuestStep obj130 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -245645,76 +295892,95 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 886; + Span span8 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span8[index3] = 886; skipAetheryteCondition.InTerritory = list202; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj130.SkipConditions = skipConditions; reference156 = obj130; - ref QuestStep reference157 = ref span87[1]; + num2++; + ref QuestStep reference157 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1031681u, new Vector3(8.102478f, -16.00001f, 146.34924f), 886); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 60091u; + index3 = 1; + List list203 = new List(index3); + CollectionsMarshal.SetCount(list203, index3); + span4 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span4[num3] = 60091u; skipStepConditions.NotNamePlateIconId = list203; skipConditions2.StepIf = skipStepConditions; questStep10.SkipConditions = skipConditions2; reference157 = questStep10; - ref QuestStep reference158 = ref span87[2]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1031677u, new Vector3(52.750366f, -16f, 168.9325f), 886); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 60091u; + span4 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span4[index3] = 60091u; skipStepConditions2.NotNamePlateIconId = list204; skipConditions3.StepIf = skipStepConditions2; questStep11.SkipConditions = skipConditions3; reference158 = questStep11; - ref QuestStep reference159 = ref span87[3]; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1031692u, new Vector3(52.780884f, -16.000002f, 170.61108f), 886) { StopDistance = 5f }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 60091u; + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + span4 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span4[num3] = 60091u; skipStepConditions3.NotNamePlateIconId = list205; skipConditions4.StepIf = skipStepConditions3; obj131.SkipConditions = skipConditions4; reference159 = obj131; - span87[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(39.29597f, -16.000002f, 140.2944f), 886); - ref QuestStep reference160 = ref span87[5]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(39.29597f, -16.000002f, 140.2944f), 886); + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1031680u, new Vector3(40.482178f, -16.000002f, 138.47559f), 886); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 60091u; + span4 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span4[index3] = 60091u; skipStepConditions4.NotNamePlateIconId = list206; skipConditions5.StepIf = skipStepConditions4; questStep12.SkipConditions = skipConditions5; reference160 = questStep12; - ref QuestStep reference161 = ref span87[6]; + num2++; + ref QuestStep reference161 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1031693u, new Vector3(-21.25586f, -16f, 138.93335f), 886); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 60091u; + index3 = 1; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + span4 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span4[num3] = 60091u; skipStepConditions5.NotNamePlateIconId = list207; skipConditions6.StepIf = skipStepConditions5; questStep13.SkipConditions = skipConditions6; reference161 = questStep13; - ref QuestStep reference162 = ref span87[7]; + num2++; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1031694u, new Vector3(-18.60083f, -16f, 138.99438f), 886) { StopDistance = 7f @@ -245724,39 +295990,49 @@ public static class AssemblyQuestLoader num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 60091u; + span4 = CollectionsMarshal.AsSpan(list208); + index3 = 0; + span4[index3] = 60091u; skipStepConditions6.NotNamePlateIconId = list208; skipConditions7.StepIf = skipStepConditions6; obj132.SkipConditions = skipConditions7; reference162 = obj132; - ref QuestStep reference163 = ref span87[8]; + num2++; + ref QuestStep reference163 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1031695u, new Vector3(-32.852783f, -16f, 169.9397f), 886); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = 60091u; + index3 = 1; + List list209 = new List(index3); + CollectionsMarshal.SetCount(list209, index3); + span4 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span4[num3] = 60091u; skipStepConditions7.NotNamePlateIconId = list209; skipConditions8.StepIf = skipStepConditions7; questStep14.SkipConditions = skipConditions8; reference163 = questStep14; - ref QuestStep reference164 = ref span87[9]; + num2++; + ref QuestStep reference164 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1031681u, new Vector3(8.102478f, -16.00001f, 146.34924f), 886); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = 60091u; + span4 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span4[index3] = 60091u; skipStepConditions8.NotNamePlateIconId = list210; skipConditions9.StepIf = skipStepConditions8; questStep15.SkipConditions = skipConditions9; reference164 = questStep15; - span87[10] = new QuestStep(EInteractionType.AcceptQuest, 1031992u, new Vector3(-8.255188f, -16f, 162.43225f), 886); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031992u, new Vector3(-8.255188f, -16f, 162.43225f), 886); obj129.Steps = list201; reference155 = obj129; - ref QuestSequence reference165 = ref span86[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -245764,26 +296040,32 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span88 = CollectionsMarshal.AsSpan(list211); - span88[0] = new QuestStep(EInteractionType.Interact, 1031683u, new Vector3(13.260071f, -15.2f, 183.64221f), 886) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031683u, new Vector3(13.260071f, -15.2f, 183.64221f), 886) { TargetTerritoryId = (ushort)418 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1031995u, new Vector3(21.86615f, -12.021002f, 54.184692f), 418); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031995u, new Vector3(21.86615f, -12.021002f, 54.184692f), 418); obj133.Steps = list211; reference165 = obj133; - ref QuestSequence reference166 = ref span86[2]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1032843u, new Vector3(21.774597f, -12.020998f, 54.09314f), 418); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032843u, new Vector3(21.774597f, -12.020998f, 54.09314f), 418); obj134.Steps = list212; reference166 = obj134; - ref QuestSequence reference167 = ref span86[3]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -245791,8 +296073,9 @@ public static class AssemblyQuestLoader num2 = 3; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span89 = CollectionsMarshal.AsSpan(list213); - ref QuestStep reference168 = ref span89[0]; + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + ref QuestStep reference168 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut @@ -245801,33 +296084,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span90 = CollectionsMarshal.AsSpan(list214); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span6 = CollectionsMarshal.AsSpan(list214); + 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); obj136.CompletionQuestVariablesFlags = list214; reference168 = obj136; - ref QuestStep reference169 = ref span89[1]; + index2++; + ref QuestStep reference169 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); num3 = 6; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span91 = CollectionsMarshal.AsSpan(list215); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list215; reference169 = questStep16; - ref QuestStep reference170 = ref span89[2]; + index2++; + ref QuestStep reference170 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut @@ -245836,30 +296133,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span92 = CollectionsMarshal.AsSpan(list216); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + span6 = CollectionsMarshal.AsSpan(list216); + 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); obj137.CompletionQuestVariablesFlags = list216; reference170 = obj137; obj135.Steps = list213; reference167 = obj135; - ref QuestSequence reference171 = ref span86[4]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span93 = CollectionsMarshal.AsSpan(list217); - span93[0] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) + index2 = 2; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { TargetTerritoryId = (ushort)886, AethernetShortcut = new AethernetShortcut @@ -245868,7 +296173,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886) { NextQuestId = new QuestId(3726) }; @@ -245881,13 +296187,16 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot24.Author = list218; - num = 3; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span94 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference172 = ref span94[0]; + index = 3; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -245895,18 +296204,23 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886); obj139.Steps = list220; reference172 = obj139; - ref QuestSequence reference173 = ref span94[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list221)[0]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) { StopDistance = 5f @@ -245914,25 +296228,29 @@ public static class AssemblyQuestLoader num3 = 4; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span95 = CollectionsMarshal.AsSpan(list222); - span95[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q1_000_000") }; - span95[1] = new DialogueChoice + index3++; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q2_000_000"), Answer = new ExcelRef("TEXT_LUCKHA102_03726_A2_000_002") }; - span95[2] = new DialogueChoice + index3++; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKHA102_03726_A3_000_001") }; - span95[3] = new DialogueChoice + index3++; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q4_000_000"), @@ -245942,7 +296260,8 @@ public static class AssemblyQuestLoader reference174 = obj141; obj140.Steps = list221; reference173 = obj140; - ref QuestSequence reference175 = ref span94[2]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue @@ -245950,7 +296269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) { StopDistance = 5f, NextQuestId = new QuestId(3727) @@ -245964,27 +296285,33 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list224); + index = 0; + span[index] = "liza"; questRoot25.Author = list224; - num = 5; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span96 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference176 = ref span96[0]; + index = 5; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + span2 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031998u, new Vector3(-6.9733887f, -16f, 164.20227f), 886) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031998u, new Vector3(-6.9733887f, -16f, 164.20227f), 886) { StopDistance = 5f }; obj143.Steps = list226; reference176 = obj143; - ref QuestSequence reference177 = ref span96[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 @@ -245992,22 +296319,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1031999u, new Vector3(-4.2268066f, 1.4791284f, 115.37341f), 418) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031999u, new Vector3(-4.2268066f, 1.4791284f, 115.37341f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj144.Steps = list227; reference177 = obj144; - ref QuestSequence reference178 = ref span96[2]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span97 = CollectionsMarshal.AsSpan(list228); - span97[0] = new QuestStep(EInteractionType.None, null, null, 886) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 886) { AethernetShortcut = new AethernetShortcut { @@ -246015,7 +296346,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span97[1] = new QuestStep(EInteractionType.Interact, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246025,7 +296357,8 @@ public static class AssemblyQuestLoader }; obj145.Steps = list228; reference178 = obj145; - ref QuestSequence reference179 = ref span96[3]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 @@ -246033,18 +296366,23 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1032001u, new Vector3(161.79138f, -50f, 73.47217f), 886); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032001u, new Vector3(161.79138f, -50f, 73.47217f), 886); obj146.Steps = list229; reference179 = obj146; - ref QuestSequence reference180 = ref span96[4]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { NextQuestId = new QuestId(3728) }; @@ -246057,13 +296395,16 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list231); + index = 0; + span[index] = "liza"; questRoot26.Author = list231; - num = 6; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span98 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference181 = ref span98[0]; + index = 6; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + span2 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -246071,21 +296412,27 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886); obj148.Steps = list233; reference181 = obj148; - ref QuestSequence reference182 = ref span98[1]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886); + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886); obj149.Steps = list234; reference182 = obj149; - ref QuestSequence reference183 = ref span98[2]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -246093,8 +296440,9 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span99 = CollectionsMarshal.AsSpan(list235); - span99[0] = new QuestStep(EInteractionType.PurchaseItem, 1031689u, new Vector3(48.8136f, -16f, 150.92688f), 886) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.PurchaseItem, 1031689u, new Vector3(48.8136f, -16f, 150.92688f), 886) { Comment = "Buy cream yellow dye", AethernetShortcut = new AethernetShortcut @@ -246110,7 +296458,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262151u) } }; - span99[1] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246120,15 +296469,18 @@ public static class AssemblyQuestLoader }; obj150.Steps = list235; reference183 = obj150; - ref QuestSequence reference184 = ref span98[3]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list236)[0]; + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + ref QuestStep reference185 = ref span3[num2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1032003u, new Vector3(94.92627f, -18.500006f, 171.1604f), 886) { AethernetShortcut = new AethernetShortcut @@ -246137,10 +296489,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMendicantsCourt } }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span7 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA104_03728_Q1_000_000"), @@ -246150,7 +296504,8 @@ public static class AssemblyQuestLoader reference185 = obj152; obj151.Steps = list236; reference184 = obj151; - ref QuestSequence reference186 = ref span98[4]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 @@ -246158,7 +296513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2010924u, new Vector3(103.1051f, -20.004639f, 4.196167f), 886) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010924u, new Vector3(103.1051f, -20.004639f, 4.196167f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246168,15 +296525,18 @@ public static class AssemblyQuestLoader }; obj153.Steps = list238; reference186 = obj153; - ref QuestSequence reference187 = ref span98[5]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246194,13 +296554,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list240); + index = 0; + span[index] = "liza"; questRoot27.Author = list240; - num = 3; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span100 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference188 = ref span100[0]; + index = 3; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + span2 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -246208,7 +296571,9 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list242)[0]; + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + ref QuestStep reference189 = ref span3[index2]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -246223,7 +296588,9 @@ public static class AssemblyQuestLoader num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS640_03729_Q1_000_000"), @@ -246233,18 +296600,22 @@ public static class AssemblyQuestLoader reference189 = obj156; obj155.Steps = list242; reference188 = obj155; - ref QuestSequence reference190 = ref span100[1]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 2010842u, new Vector3(27.450928f, 82.6886f, -45.456665f), 820); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010842u, new Vector3(27.450928f, 82.6886f, -45.456665f), 820); obj157.Steps = list244; reference190 = obj157; - ref QuestSequence reference191 = ref span100[2]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -246252,7 +296623,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); obj158.Steps = list245; reference191 = obj158; questRoot27.QuestSequence = list241; @@ -246262,21 +296635,26 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list246); + index = 0; + span[index] = "Censored"; questRoot28.Author = list246; - num = 4; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span101 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference192 = ref span101[0]; + index = 4; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + span2 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031802u, new Vector3(48.264282f, 82.001656f, -56.6568f), 820) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031802u, new Vector3(48.264282f, 82.001656f, -56.6568f), 820) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -246295,7 +296673,8 @@ public static class AssemblyQuestLoader }; obj159.Steps = list248; reference192 = obj159; - ref QuestSequence reference193 = ref span101[1]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -246303,12 +296682,16 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list249)[0]; + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference194 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new DialogueChoice + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + span7 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS641_03730_Q1_000_000"), @@ -246318,15 +296701,18 @@ public static class AssemblyQuestLoader reference194 = questStep17; obj160.Steps = list249; reference193 = obj160; - ref QuestSequence reference195 = ref span101[2]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1029978u, new Vector3(-7.522766f, 23f, 14.755432f), 820) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029978u, new Vector3(-7.522766f, 23f, 14.755432f), 820) { Sprint = true, AethernetShortcut = new AethernetShortcut @@ -246337,7 +296723,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list251; reference195 = obj161; - ref QuestSequence reference196 = ref span101[3]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -246345,7 +296732,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) { Sprint = true, AethernetShortcut = new AethernetShortcut @@ -246363,21 +296752,26 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list253); + index = 0; + span[index] = "Censored"; questRoot29.Author = list253; - num = 2; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span102 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference197 = ref span102[0]; + index = 2; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + span2 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027570u, new Vector3(47.989624f, 83.00107f, -75.30328f), 820) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027570u, new Vector3(47.989624f, 83.00107f, -75.30328f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, SkipConditions = new SkipConditions @@ -246395,7 +296789,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list255; reference197 = obj163; - ref QuestSequence reference198 = ref span102[1]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -246403,7 +296798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031118u, new Vector3(-2.3041382f, 85.537865f, -82.65814f), 820); + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031118u, new Vector3(-2.3041382f, 85.537865f, -82.65814f), 820); obj164.Steps = list256; reference198 = obj164; questRoot29.QuestSequence = list254; @@ -246413,21 +296810,26 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "liza"; questRoot30.Author = list257; - num = 4; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span103 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference199 = ref span103[0]; + index = 4; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list259)[0]; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; QuestStep obj166 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -246446,14 +296848,17 @@ public static class AssemblyQuestLoader num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 131; + span8 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span8[index3] = 131; obj167.InTerritory = list260; skipConditions10.AetheryteShortcutIf = obj167; obj166.SkipConditions = skipConditions10; reference200 = obj166; obj165.Steps = list259; reference199 = obj165; - ref QuestSequence reference201 = ref span103[1]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -246461,24 +296866,30 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f }; obj168.Steps = list261; reference201 = obj168; - ref QuestSequence reference202 = ref span103[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1031957u, new Vector3(16.433899f, 10f, 152.97156f), 131); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031957u, new Vector3(16.433899f, 10f, 152.97156f), 131); obj169.Steps = list262; reference202 = obj169; - ref QuestSequence reference203 = ref span103[3]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -246486,7 +296897,9 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { NextQuestId = new QuestId(3733) }; @@ -246499,21 +296912,26 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list264); + index = 0; + span[index] = "liza"; questRoot31.Author = list264; - num = 5; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span104 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference204 = ref span104[0]; + index = 5; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + span2 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list266)[0]; + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference205 = ref span3[num2]; QuestStep obj172 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246528,17 +296946,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 131; + index3 = 1; + List list267 = new List(index3); + CollectionsMarshal.SetCount(list267, index3); + span8 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span8[num3] = 131; obj173.InTerritory = list267; skipConditions11.AetheryteShortcutIf = obj173; obj172.SkipConditions = skipConditions11; reference205 = obj172; obj171.Steps = list266; reference204 = obj171; - ref QuestSequence reference206 = ref span104[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -246546,7 +296967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -246557,15 +296980,18 @@ public static class AssemblyQuestLoader }; obj174.Steps = list268; reference206 = obj174; - ref QuestSequence reference207 = ref span104[2]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list269)[0]; + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference208 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -246573,12 +296999,15 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 11441u; + span4 = CollectionsMarshal.AsSpan(list270); + index3 = 0; + span4[index3] = 11441u; obj176.KillEnemyDataIds = list270; reference208 = obj176; obj175.Steps = list269; reference207 = obj175; - ref QuestSequence reference209 = ref span104[3]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -246586,18 +297015,23 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140); + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140); obj177.Steps = list271; reference209 = obj177; - ref QuestSequence reference210 = ref span104[4]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -246616,13 +297050,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot32.Author = list273; - num = 6; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span105 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference211 = ref span105[0]; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -246630,7 +297067,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list275)[0]; + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + ref QuestStep reference212 = ref span3[index2]; QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246645,25 +297084,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = 131; + index3 = 1; + List list276 = new List(index3); + CollectionsMarshal.SetCount(list276, index3); + span8 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span8[num3] = 131; obj181.InTerritory = list276; skipConditions12.AetheryteShortcutIf = obj181; obj180.SkipConditions = skipConditions12; reference212 = obj180; obj179.Steps = list275; reference211 = obj179; - ref QuestSequence reference213 = ref span105[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1031962u, new Vector3(-25.558899f, 14f, 84.51965f), 131) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031962u, new Vector3(-25.558899f, 14f, 84.51965f), 131) { AethernetShortcut = new AethernetShortcut { @@ -246673,7 +297117,8 @@ public static class AssemblyQuestLoader }; obj182.Steps = list277; reference213 = obj182; - ref QuestSequence reference214 = ref span105[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -246681,7 +297126,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1031965u, new Vector3(-193.3471f, 18f, 88.181885f), 130) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031965u, new Vector3(-193.3471f, 18f, 88.181885f), 130) { AethernetShortcut = new AethernetShortcut { @@ -246691,15 +297138,18 @@ public static class AssemblyQuestLoader }; obj183.Steps = list278; reference214 = obj183; - ref QuestSequence reference215 = ref span105[3]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1031968u, new Vector3(34.286987f, 7.9999285f, -113.78656f), 130) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031968u, new Vector3(34.286987f, 7.9999285f, -113.78656f), 130) { AethernetShortcut = new AethernetShortcut { @@ -246709,7 +297159,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list279; reference215 = obj184; - ref QuestSequence reference216 = ref span105[4]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 @@ -246717,7 +297168,9 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AethernetShortcut = new AethernetShortcut { @@ -246727,15 +297180,18 @@ public static class AssemblyQuestLoader }; obj185.Steps = list280; reference216 = obj185; - ref QuestSequence reference217 = ref span105[5]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { NextQuestId = new QuestId(3735) }; @@ -246748,13 +297204,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list282); + index = 0; + span[index] = "liza"; questRoot33.Author = list282; - num = 6; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span106 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference218 = ref span106[0]; + index = 6; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + span2 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -246762,7 +297221,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list284)[0]; + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + ref QuestStep reference219 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246780,28 +297241,34 @@ public static class AssemblyQuestLoader num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = 131; + span8 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span8[index3] = 131; obj189.InTerritory = list285; skipConditions13.AetheryteShortcutIf = obj189; obj188.SkipConditions = skipConditions13; reference219 = obj188; obj187.Steps = list284; reference218 = obj187; - ref QuestSequence reference220 = ref span106[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1032158u, new Vector3(74.23511f, 45f, -204.27258f), 140) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032158u, new Vector3(74.23511f, 45f, -204.27258f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj190.Steps = list286; reference220 = obj190; - ref QuestSequence reference221 = ref span106[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -246809,35 +297276,43 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) { Fly = true }; obj191.Steps = list287; reference221 = obj191; - ref QuestSequence reference222 = ref span106[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list288)[0]; + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2010849u, new Vector3(192.55359f, 55.039307f, -190.81409f), 140) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 11442u; + index3 = 1; + List list289 = new List(index3); + CollectionsMarshal.SetCount(list289, index3); + span4 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + span4[num3] = 11442u; obj193.KillEnemyDataIds = list289; reference223 = obj193; obj192.Steps = list288; reference222 = obj192; - ref QuestSequence reference224 = ref span106[4]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -246845,21 +297320,26 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) { Fly = true }; obj194.Steps = list290; reference224 = obj194; - ref QuestSequence reference225 = ref span106[5]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -246878,13 +297358,16 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list292); + index = 0; + span[index] = "liza"; questRoot34.Author = list292; - num = 4; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span107 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference226 = ref span107[0]; + index = 4; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + span2 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -246892,7 +297375,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list294)[0]; + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + ref QuestStep reference227 = ref span3[index2]; QuestStep obj197 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246910,23 +297395,27 @@ public static class AssemblyQuestLoader num3 = 1; List list295 = new List(num3); CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = 131; + span8 = CollectionsMarshal.AsSpan(list295); + index3 = 0; + span8[index3] = 131; obj198.InTerritory = list295; skipConditions14.AetheryteShortcutIf = obj198; obj197.SkipConditions = skipConditions14; reference227 = obj197; obj196.Steps = list294; reference226 = obj196; - ref QuestSequence reference228 = ref span107[1]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span108 = CollectionsMarshal.AsSpan(list296); - ref QuestStep reference229 = ref span108[0]; + index2 = 3; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1031980u, new Vector3(-85.00806f, 6.9845695f, -11.001831f), 131) { AethernetShortcut = new AethernetShortcut @@ -246935,49 +297424,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 6; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span109 = CollectionsMarshal.AsSpan(list297); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + span6 = CollectionsMarshal.AsSpan(list297); + 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); obj200.CompletionQuestVariablesFlags = list297; reference229 = obj200; - ref QuestStep reference230 = ref span108[1]; + num2++; + ref QuestStep reference230 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1031979u, new Vector3(-92.5155f, 6.9845695f, -17.07489f), 131); num3 = 6; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - Span span110 = CollectionsMarshal.AsSpan(list298); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list298; reference230 = questStep18; - ref QuestStep reference231 = ref span108[2]; + num2++; + ref QuestStep reference231 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131); - num3 = 6; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - Span span111 = CollectionsMarshal.AsSpan(list299); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list299 = new List(index3); + CollectionsMarshal.SetCount(list299, index3); + span6 = CollectionsMarshal.AsSpan(list299); + 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); questStep19.CompletionQuestVariablesFlags = list299; reference231 = questStep19; obj199.Steps = list296; reference228 = obj199; - ref QuestSequence reference232 = ref span107[2]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -246985,18 +297495,23 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1031978u, new Vector3(-75.05914f, 6.9845705f, 10.971252f), 131); + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1031978u, new Vector3(-75.05914f, 6.9845705f, 10.971252f), 131); obj201.Steps = list300; reference232 = obj201; - ref QuestSequence reference233 = ref span107[3]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3737) @@ -247010,13 +297525,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "liza"; questRoot35.Author = list302; - num = 2; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span112 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference234 = ref span112[0]; + index = 2; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -247024,7 +297542,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list304)[0]; + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + ref QuestStep reference235 = ref span3[index2]; QuestStep obj204 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -247043,22 +297563,27 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = 131; + span8 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span8[index3] = 131; obj205.InTerritory = list305; skipConditions15.AetheryteShortcutIf = obj205; obj204.SkipConditions = skipConditions15; reference235 = obj204; obj203.Steps = list304; reference234 = obj203; - ref QuestSequence reference236 = ref span112[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3989) @@ -247076,13 +297601,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -247090,7 +297618,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) { Fly = true, @@ -247106,7 +297636,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZK991_03750_Q1_000_000"), @@ -247116,15 +297648,18 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2009865u, new Vector3(-52.781067f, 17.990356f, 48.90515f), 131) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2009865u, new Vector3(-52.781067f, 17.990356f, 48.90515f), 131) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -247136,7 +297671,8 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -247144,29 +297680,34 @@ public static class AssemblyQuestLoader num2 = 2; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.02783f, -16.420786f, 11.723575f), 145) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.02783f, -16.420786f, 11.723575f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span2[1] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.17432f, -16.420816f, 10.977634f), 145) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.17432f, -16.420816f, 10.977634f), 145) { Mount = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1030875u, new Vector3(-458.64044f, -28.193886f, 110.64307f), 145) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030875u, new Vector3(-458.64044f, -28.193886f, 110.64307f), 145) { Fly = true }; @@ -247179,13 +297720,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -247193,28 +297737,34 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031783u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031783u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351) { StopDistance = 5f }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1032495u, new Vector3(737.63635f, 70f, 515.0072f), 621) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032495u, new Vector3(737.63635f, 70f, 515.0072f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -247222,7 +297772,9 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list9; @@ -247232,24 +297784,30 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; questRoot3.Author = list13; - num = 2; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span5[0]; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -247257,8 +297815,9 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -247268,7 +297827,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj10.Steps = list16; reference10 = obj10; questRoot3.QuestSequence = list14; @@ -247278,24 +297838,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot4.Author = list17; - num = 5; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span7[0]; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); obj11.Steps = list19; reference11 = obj11; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -247303,17 +297869,21 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.009940993f, 1.036532f, 14.22064f), 844) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.009940993f, 1.036532f, 14.22064f), 844) { TargetTerritoryId = (ushort)819 }; - ref QuestStep reference13 = ref span8[1]; + index2++; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030370u, new Vector3(66.84973f, -2.9802322E-07f, 13.321045f), 819); - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + index3 = 1; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + span4 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMH103_03763_Q1_000_500"), @@ -247323,21 +297893,25 @@ public static class AssemblyQuestLoader reference13 = questStep; obj12.Steps = list20; reference12 = obj12; - ref QuestSequence reference14 = ref span7[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1032648u, new Vector3(768.6426f, 21.38111f, -8.46875f), 813) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032648u, new Vector3(768.6426f, 21.38111f, -8.46875f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj13.Steps = list22; reference14 = obj13; - ref QuestSequence reference15 = ref span7[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -247345,21 +297919,26 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1032498u, new Vector3(628.6869f, 94.385544f, -645.9297f), 813) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032498u, new Vector3(628.6869f, 94.385544f, -645.9297f), 813) { Fly = true }; obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference16 = ref span7[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); obj15.Steps = list24; reference16 = obj15; questRoot4.QuestSequence = list18; @@ -247369,13 +297948,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; questRoot5.Author = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span9 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span9[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -247383,19 +297965,23 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); obj16.Steps = list27; reference17 = obj16; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span10 = CollectionsMarshal.AsSpan(list28); - span10[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -247405,10 +297991,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span10[1] = new QuestStep(EInteractionType.Interact, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); obj17.Steps = list28; reference18 = obj17; - ref QuestSequence reference19 = ref span9[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -247416,12 +298004,14 @@ public static class AssemblyQuestLoader num2 = 6; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span11 = CollectionsMarshal.AsSpan(list29); - span11[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) { TargetTerritoryId = (ushort)819 }; - ref QuestStep reference20 = ref span11[1]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { Comment = "Chessamile" @@ -247429,33 +298019,47 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span12 = CollectionsMarshal.AsSpan(list30); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list30; reference20 = obj19; - ref QuestStep reference21 = ref span11[2]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { Comment = "Bragi" }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span13 = CollectionsMarshal.AsSpan(list31); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list31; reference21 = obj20; - ref QuestStep reference22 = ref span11[3]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 4f, @@ -247464,16 +298068,23 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span14 = CollectionsMarshal.AsSpan(list32); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list32; reference22 = obj21; - ref QuestStep reference23 = ref span11[4]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { Comment = "Katliss", @@ -247483,19 +298094,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCrystallineMean } }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list33; reference23 = obj22; - ref QuestStep reference24 = ref span11[5]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { Comment = "Moren", @@ -247508,26 +298126,35 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list34; reference24 = obj23; obj18.Steps = list29; reference19 = obj18; - ref QuestSequence reference25 = ref span9[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032503u, new Vector3(29.709229f, -6.088685E-13f, -0.869812f), 819) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032503u, new Vector3(29.709229f, -6.088685E-13f, -0.869812f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -247540,13 +298167,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot6.Author = list36; - num = 4; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span17 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span17[0]; + index = 4; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -247554,27 +298184,33 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844) { StopDistance = 7f }; obj25.Steps = list38; reference26 = obj25; - ref QuestSequence reference27 = ref span17[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj26.Steps = list39; reference27 = obj26; - ref QuestSequence reference28 = ref span17[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 @@ -247582,45 +298218,53 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list40)[0]; + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032509u, new Vector3(843.25916f, -65.313614f, -387.10614f), 817) { Fly = true, Comment = "A Sleep Disturbed (Opo-Opo, Wolf, Serpent)" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = "Doesn't walk to the teleporter to finish the duty"; + index3 = 1; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + span = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span[num3] = "Doesn't walk to the teleporter to finish the duty"; singlePlayerDutyOptions.Notes = list41; obj28.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 4; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span18 = CollectionsMarshal.AsSpan(list42); - span18[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(138u), DataId = 2011009u }; - span18[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(139u), DataId = 2011006u }; - span18[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(142u), DataId = 2011007u }; - span18[3] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", @@ -247630,15 +298274,18 @@ public static class AssemblyQuestLoader reference29 = obj28; obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference30 = ref span17[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) { StopDistance = 5f }; @@ -247651,13 +298298,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot7.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span19 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference31 = ref span19[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -247665,27 +298315,33 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029234u, new Vector3(449.0271f, 33.66181f, -157.94617f), 817) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029234u, new Vector3(449.0271f, 33.66181f, -157.94617f), 817) { StopDistance = 5f }; obj30.Steps = list46; reference31 = obj30; - ref QuestSequence reference32 = ref span19[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1032263u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032263u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj31.Steps = list47; reference32 = obj31; - ref QuestSequence reference33 = ref span19[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -247693,21 +298349,27 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817); obj32.Steps = list48; reference33 = obj32; - ref QuestSequence reference34 = ref span19[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1032513u, new Vector3(-37.06427f, -18.91939f, 334.21826f), 817); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032513u, new Vector3(-37.06427f, -18.91939f, 334.21826f), 817); obj33.Steps = list49; reference34 = obj33; - ref QuestSequence reference35 = ref span19[4]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -247715,7 +298377,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032515u, new Vector3(-642.2064f, 3.1136527f, 16.861145f), 817) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032515u, new Vector3(-642.2064f, 3.1136527f, 16.861145f), 817) { Fly = true }; @@ -247728,24 +298392,30 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; questRoot8.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span20 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference36 = ref span20[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032518u, new Vector3(-641.8402f, 3.1716232f, 19.69934f), 817); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032518u, new Vector3(-641.8402f, 3.1716232f, 19.69934f), 817); obj35.Steps = list53; reference36 = obj35; - ref QuestSequence reference37 = ref span20[1]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -247753,22 +298423,26 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj36.Steps = list54; reference37 = obj36; - ref QuestSequence reference38 = ref span20[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span21 = CollectionsMarshal.AsSpan(list55); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.38354f, 400.55338f, -779.4299f), 818) + index2 = 6; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.38354f, 400.55338f, -779.4299f), 818) { Fly = true, SkipConditions = new SkipConditions @@ -247779,7 +298453,8 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-559.0543f, 394.95718f, -611.97614f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-559.0543f, 394.95718f, -611.97614f), 818) { SkipConditions = new SkipConditions { @@ -247789,7 +298464,8 @@ public static class AssemblyQuestLoader } } }; - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-681.43286f, 404.5379f, -693.3609f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-681.43286f, 404.5379f, -693.3609f), 818) { SkipConditions = new SkipConditions { @@ -247799,7 +298475,8 @@ public static class AssemblyQuestLoader } } }; - span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-675.946f, 408.10754f, -711.8061f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-675.946f, 408.10754f, -711.8061f), 818) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -247810,14 +298487,17 @@ public static class AssemblyQuestLoader } } }; - span21[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6145f, 393.0597f, -823.20044f), 818) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6145f, 393.0597f, -823.20044f), 818) { Fly = true }; - span21[5] = new QuestStep(EInteractionType.Interact, 2010814u, new Vector3(-422.47656f, 393.9115f, -824.094f), 818); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010814u, new Vector3(-422.47656f, 393.9115f, -824.094f), 818); obj37.Steps = list55; reference38 = obj37; - ref QuestSequence reference39 = ref span20[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -247825,7 +298505,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -247838,24 +298520,30 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot9.Author = list57; - num = 7; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span22 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference40 = ref span22[0]; + index = 7; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032526u, new Vector3(606.1035f, 350.3518f, -200f), 818); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032526u, new Vector3(606.1035f, 350.3518f, -200f), 818); obj39.Steps = list59; reference40 = obj39; - ref QuestSequence reference41 = ref span22[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -247863,8 +298551,9 @@ public static class AssemblyQuestLoader num2 = 7; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span23 = CollectionsMarshal.AsSpan(list60); - span23[0] = new QuestStep(EInteractionType.None, null, null, 819) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -247873,7 +298562,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -247884,7 +298574,8 @@ public static class AssemblyQuestLoader } } }; - span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -247895,7 +298586,8 @@ public static class AssemblyQuestLoader } } }; - span23[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -247905,7 +298597,8 @@ public static class AssemblyQuestLoader } } }; - span23[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.70464f, 1.0942776f, 738.40204f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.70464f, 1.0942776f, 738.40204f), 813) { SkipConditions = new SkipConditions { @@ -247915,28 +298608,34 @@ public static class AssemblyQuestLoader } } }; - span23[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-269.44116f, -0.82486916f, 724.67255f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-269.44116f, -0.82486916f, 724.67255f), 813) { Fly = true }; - span23[6] = new QuestStep(EInteractionType.Interact, 1032528u, new Vector3(-270.98505f, -0.82573783f, 723.96423f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032528u, new Vector3(-270.98505f, -0.82573783f, 723.96423f), 813); obj40.Steps = list60; reference41 = obj40; - ref QuestSequence reference42 = ref span22[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { StopDistance = 5f }; obj41.Steps = list61; reference42 = obj41; - ref QuestSequence reference43 = ref span22[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -247944,8 +298643,9 @@ public static class AssemblyQuestLoader num2 = 8; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.3982f, 26.347507f, 773.5695f), 813) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.3982f, 26.347507f, 773.5695f), 813) { DisableNavmesh = true, Mount = true, @@ -247958,7 +298658,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-610.2863f, -2.1544409f, 734.7734f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-610.2863f, -2.1544409f, 734.7734f), 813) { DisableNavmesh = true, Fly = true, @@ -247970,7 +298671,8 @@ public static class AssemblyQuestLoader } } }; - span24[2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-565.32196f, -1.9743931f, 799.9003f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-565.32196f, -1.9743931f, 799.9003f), 813) { StopDistance = 1f, DisableNavmesh = true, @@ -247982,7 +298684,8 @@ public static class AssemblyQuestLoader } } }; - span24[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -247993,28 +298696,37 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference44 = ref span24[4]; + index2++; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2010280u, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) { DisableNavmesh = true }; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span5 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list63; reference44 = obj43; - span24[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.167f, -41.328938f, 741.29126f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.167f, -41.328938f, 741.29126f), 813) { Mount = true }; - ref QuestStep reference45 = ref span24[6]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2010278u, new Vector3(-655.5123f, -40.299072f, 743.22107f), 813) { DisableNavmesh = true @@ -248022,51 +298734,67 @@ public static class AssemblyQuestLoader num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list64; reference45 = obj44; - ref QuestStep reference46 = ref span24[7]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 2010282u, new Vector3(-663.14185f, -25.711487f, 738.82654f), 813) { Mount = true }; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span27 = CollectionsMarshal.AsSpan(list65); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + span5 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list65; reference46 = obj45; obj42.Steps = list62; reference43 = obj42; - ref QuestSequence reference47 = ref span22[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span28 = CollectionsMarshal.AsSpan(list66); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-643.2488f, -1.974393f, 714.8211f), 813) + index2 = 4; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-643.2488f, -1.974393f, 714.8211f), 813) { DisableNavmesh = true, Mount = true, Fly = true, RestartNavigationIfCancelled = false }; - span28[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) { SkipConditions = new SkipConditions { @@ -248076,7 +298804,8 @@ public static class AssemblyQuestLoader } } }; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -248087,13 +298816,15 @@ public static class AssemblyQuestLoader } } }; - span28[3] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { Fly = true }; obj46.Steps = list66; reference47 = obj46; - ref QuestSequence reference48 = ref span22[5]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 5 @@ -248101,19 +298832,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1032531u, new Vector3(-130.90723f, 9.572956f, 697.68823f), 813); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032531u, new Vector3(-130.90723f, 9.572956f, 697.68823f), 813); obj47.Steps = list67; reference48 = obj47; - ref QuestSequence reference49 = ref span22[6]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span29 = CollectionsMarshal.AsSpan(list68); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + index2 = 4; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -248123,7 +298858,8 @@ public static class AssemblyQuestLoader } } }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { SkipConditions = new SkipConditions { @@ -248133,7 +298869,8 @@ public static class AssemblyQuestLoader } } }; - span29[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { DisableNavmesh = true, Comment = "these bridges have navmesh problems", @@ -248145,7 +298882,8 @@ public static class AssemblyQuestLoader } } }; - span29[3] = new QuestStep(EInteractionType.CompleteQuest, 1032554u, new Vector3(237.72021f, 5.6935816f, 552.1781f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032554u, new Vector3(237.72021f, 5.6935816f, 552.1781f), 813) { Fly = true }; @@ -248158,13 +298896,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot10.Author = list69; - num = 5; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span30 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference50 = ref span30[0]; + index = 5; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -248172,25 +298913,31 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032555u, new Vector3(235.40088f, 5.733457f, 552.3612f), 813); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032555u, new Vector3(235.40088f, 5.733457f, 552.3612f), 813); obj49.Steps = list71; reference50 = obj49; - ref QuestSequence reference51 = ref span30[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj50.Steps = list72; reference51 = obj50; - ref QuestSequence reference52 = ref span30[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -248198,7 +298945,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -248208,19 +298957,23 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference52 = obj51; - span30[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference53 = ref span30[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032549u, new Vector3(-1.9074707f, -200.00002f, -425.10114f), 918); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032549u, new Vector3(-1.9074707f, -200.00002f, -425.10114f), 918); obj52.Steps = list74; reference53 = obj52; questRoot10.QuestSequence = list70; @@ -248230,13 +298983,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "liza"; questRoot11.Author = list75; - num = 6; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span31 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference54 = ref span31[0]; + index = 6; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -248244,25 +299000,32 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814); obj53.Steps = list77; reference54 = obj53; - span31[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference55 = ref span31[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1032529u, new Vector3(5.5389404f, 0.019417249f, -0.5036011f), 819); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032529u, new Vector3(5.5389404f, 0.019417249f, -0.5036011f), 819); obj54.Steps = list78; reference55 = obj54; - ref QuestSequence reference56 = ref span31[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -248270,7 +299033,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1032558u, new Vector3(56.90088f, 36.19769f, -169.23785f), 819) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032558u, new Vector3(56.90088f, 36.19769f, -169.23785f), 819) { AethernetShortcut = new AethernetShortcut { @@ -248280,16 +299045,18 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference56 = obj55; - ref QuestSequence reference57 = ref span31[4]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span32 = CollectionsMarshal.AsSpan(list80); - span32[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -248298,10 +299065,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span32[1] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj56.Steps = list80; reference57 = obj56; - ref QuestSequence reference58 = ref span31[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -248309,12 +299078,14 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span33 = CollectionsMarshal.AsSpan(list81); - span33[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) { TargetTerritoryId = (ushort)819 }; - ref QuestStep reference59 = ref span33[1]; + index2++; + ref QuestStep reference59 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f, @@ -248327,7 +299098,9 @@ public static class AssemblyQuestLoader num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMH110_03770_Q1_000_600") @@ -248343,27 +299116,33 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; questRoot12.Author = list83; - num = 8; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span34 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference60 = ref span34[0]; + index = 8; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 5f }; obj59.Steps = list85; reference60 = obj59; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -248371,7 +299150,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut { @@ -248381,20 +299162,25 @@ public static class AssemblyQuestLoader }; obj60.Steps = list86; reference61 = obj60; - ref QuestSequence reference62 = ref span34[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list87)[0]; + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1033794u, new Vector3(-81.28485f, -36.750004f, -277.7906f), 819); - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice + index3 = 1; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI101_03771_Q3_000_148"), @@ -248404,7 +299190,8 @@ public static class AssemblyQuestLoader reference63 = questStep2; obj61.Steps = list87; reference62 = obj61; - ref QuestSequence reference64 = ref span34[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -248412,7 +299199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AethernetShortcut = new AethernetShortcut { @@ -248422,18 +299211,22 @@ public static class AssemblyQuestLoader }; obj62.Steps = list89; reference64 = obj62; - ref QuestSequence reference65 = ref span34[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1028335u, new Vector3(-146.65448f, 1.490116E-08f, 132.61609f), 819); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028335u, new Vector3(-146.65448f, 1.490116E-08f, 132.61609f), 819); obj63.Steps = list90; reference65 = obj63; - ref QuestSequence reference66 = ref span34[5]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 5 @@ -248441,66 +299234,91 @@ public static class AssemblyQuestLoader num2 = 3; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span35 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference67 = ref span35[0]; + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference67 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011072u, new Vector3(-137.4685f, 1.2664795f, 166.67432f), 819); num3 = 6; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span36 = CollectionsMarshal.AsSpan(list92); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list92; reference67 = questStep3; - ref QuestStep reference68 = ref span35[1]; + index2++; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 2011071u, new Vector3(-139.3302f, 0.99176025f, 167.65088f), 819) { StopDistance = 5f }; - num3 = 6; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span37 = CollectionsMarshal.AsSpan(list93); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + span5 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list93; reference68 = obj65; - ref QuestStep reference69 = ref span35[2]; + index2++; + ref QuestStep reference69 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011073u, new Vector3(-142.2904f, 1.0527954f, 173.38818f), 819); num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span38 = CollectionsMarshal.AsSpan(list94); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list94; reference69 = questStep4; obj64.Steps = list91; reference66 = obj64; - ref QuestSequence reference70 = ref span34[6]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1033805u, new Vector3(-141.71057f, 1.4901161E-08f, 160.6012f), 819); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033805u, new Vector3(-141.71057f, 1.4901161E-08f, 160.6012f), 819); obj66.Steps = list95; reference70 = obj66; - ref QuestSequence reference71 = ref span34[7]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -248508,7 +299326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -248521,24 +299341,30 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; questRoot13.Author = list97; - num = 6; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span39 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference72 = ref span39[0]; + index = 6; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033800u, new Vector3(-27.878296f, -0.65f, -51.285645f), 819); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033800u, new Vector3(-27.878296f, -0.65f, -51.285645f), 819); obj68.Steps = list99; reference72 = obj68; - ref QuestSequence reference73 = ref span39[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -248546,7 +299372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1033807u, new Vector3(761.2573f, 25.95656f, 417.99023f), 813) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033807u, new Vector3(761.2573f, 25.95656f, 417.99023f), 813) { AethernetShortcut = new AethernetShortcut { @@ -248556,17 +299384,19 @@ public static class AssemblyQuestLoader }; obj69.Steps = list100; reference73 = obj69; - ref QuestSequence reference74 = ref span39[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2, Comment = "This isn't solving for the 'best' results, but for the closest waypoints" }; - num2 = 3; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span40 = CollectionsMarshal.AsSpan(list101); - ref QuestStep reference75 = ref span40[0]; + index2 = 3; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference75 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2011078u, new Vector3(754.45166f, 15.8845825f, 273.88416f), 813) { StopDistance = 1f, @@ -248574,63 +299404,84 @@ public static class AssemblyQuestLoader ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 12168u; + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span6 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span6[num3] = 12168u; obj71.KillEnemyDataIds = list102; num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span41 = CollectionsMarshal.AsSpan(list103); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list103; reference75 = obj71; - ref QuestStep reference76 = ref span40[1]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, 2011076u, new Vector3(495.4756f, 10.299805f, 290.547f), 813) { Fly = true, ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = 12166u; + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + span6 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span6[num3] = 12166u; obj72.KillEnemyDataIds = list104; num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span42 = CollectionsMarshal.AsSpan(list105); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list105; reference76 = obj72; - ref QuestStep reference77 = ref span40[2]; + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011079u, new Vector3(685.5725f, 6.881775f, 497.12354f), 813) { Fly = true, ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = 12168u; + index3 = 1; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + span6 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span6[num3] = 12168u; obj73.KillEnemyDataIds = list106; reference77 = obj73; obj70.Steps = list101; reference74 = obj70; - ref QuestSequence reference78 = ref span39[3]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -248638,29 +299489,35 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1033808u, new Vector3(763.9734f, 25.874697f, 419.51624f), 813) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033808u, new Vector3(763.9734f, 25.874697f, 419.51624f), 813) { Fly = true }; obj74.Steps = list107; reference78 = obj74; - ref QuestSequence reference79 = ref span39[4]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span43 = CollectionsMarshal.AsSpan(list108); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(837.8474f, 37.845993f, 408.60828f), 813) + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(837.8474f, 37.845993f, 408.60828f), 813) { Fly = true }; - span43[1] = new QuestStep(EInteractionType.Interact, 2011107u, new Vector3(-223.13275f, 38.590088f, -86.80859f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011107u, new Vector3(-223.13275f, 38.590088f, -86.80859f), 819); obj75.Steps = list108; reference79 = obj75; - ref QuestSequence reference80 = ref span39[5]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -248668,7 +299525,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033811u, new Vector3(-208.11786f, 38.64859f, -82.65814f), 819); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033811u, new Vector3(-208.11786f, 38.64859f, -82.65814f), 819); obj76.Steps = list109; reference80 = obj76; questRoot13.QuestSequence = list98; @@ -248678,24 +299537,30 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "liza"; questRoot14.Author = list110; - num = 5; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span44 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference81 = ref span44[0]; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033812u, new Vector3(-205.8595f, 38.614662f, -82.81073f), 819); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033812u, new Vector3(-205.8595f, 38.614662f, -82.81073f), 819); obj77.Steps = list112; reference81 = obj77; - ref QuestSequence reference82 = ref span44[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -248703,30 +299568,36 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1034900u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034900u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj78.Steps = list113; reference82 = obj78; - ref QuestSequence reference83 = ref span44[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span45 = CollectionsMarshal.AsSpan(list114); - span45[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span45[1] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj79.Steps = list114; reference83 = obj79; - ref QuestSequence reference84 = ref span44[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -248734,18 +299605,23 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2011080u, new Vector3(-11.39856f, 1.449585f, -6.942932f), 351); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011080u, new Vector3(-11.39856f, 1.449585f, -6.942932f), 351); obj80.Steps = list115; reference84 = obj80; - ref QuestSequence reference85 = ref span44[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033817u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033817u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351); obj81.Steps = list116; reference85 = obj81; questRoot14.QuestSequence = list111; @@ -248755,13 +299631,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "liza"; questRoot15.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span46 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference86 = ref span46[0]; + index = 4; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -248769,34 +299648,42 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj82.Steps = list119; reference86 = obj82; - ref QuestSequence reference87 = ref span46[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span47 = CollectionsMarshal.AsSpan(list120); - span47[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2 = 4; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.958076f, 21.232033f, -653.85443f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.958076f, 21.232033f, -653.85443f), 156) { Mount = true }; - span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.789001f, 54.865185f, -770.47614f), 156) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.789001f, 54.865185f, -770.47614f), 156) { Fly = true }; - span47[3] = new QuestStep(EInteractionType.Interact, 1033818u, new Vector3(24.551636f, 50.99997f, -815.18274f), 156); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033818u, new Vector3(24.551636f, 50.99997f, -815.18274f), 156); obj83.Steps = list120; reference87 = obj83; - ref QuestSequence reference88 = ref span46[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -248804,8 +299691,9 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span48 = CollectionsMarshal.AsSpan(list121); - span48[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -248815,18 +299703,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span48[1] = new QuestStep(EInteractionType.Interact, 1033819u, new Vector3(-0.015319824f, 0f, -4.043701f), 844); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033819u, new Vector3(-0.015319824f, 0f, -4.043701f), 844); obj84.Steps = list121; reference88 = obj84; - ref QuestSequence reference89 = ref span46[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033822u, new Vector3(39.6886f, -6.9874797E-13f, -0.83929443f), 819) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033822u, new Vector3(39.6886f, -6.9874797E-13f, -0.83929443f), 819) { StopDistance = 5f }; @@ -248839,13 +299731,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot16.Author = list123; - num = 5; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span49 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference90 = ref span49[0]; + index = 5; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -248853,32 +299748,39 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033823u, new Vector3(40.329468f, -2.0168546E-08f, 1.9378662f), 819) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033823u, new Vector3(40.329468f, -2.0168546E-08f, 1.9378662f), 819) { StopDistance = 5f }; obj86.Steps = list125; reference90 = obj86; - ref QuestSequence reference91 = ref span49[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span50 = CollectionsMarshal.AsSpan(list126); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.10434f, 8.986935f, 603.11676f), 814) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.10434f, 8.986935f, 603.11676f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - ref QuestStep reference92 = ref span50[1]; + num2++; + ref QuestStep reference92 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1033827u, new Vector3(-495.079f, 8.986954f, 604.27246f), 814); num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI105_03775_Q2_000_052") @@ -248887,11 +299789,13 @@ public static class AssemblyQuestLoader reference92 = questStep5; obj87.Steps = list126; reference91 = obj87; - span49[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference93 = ref span49[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 @@ -248899,39 +299803,46 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list128)[0]; + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj89 = new QuestStep(EInteractionType.SinglePlayerDuty, 2011085u, new Vector3(1.822433f, -200.0001f, -448.3325f), 918) { Comment = "Fight NPCs, then Elidibus" }; SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - num3 = 2; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span51 = CollectionsMarshal.AsSpan(list129); - span51[0] = "(phase 2) AI doesn't target Ardbert to start combat"; - span51[1] = "(phase 2) VBM module: Elidibus' line cleave only covers half the length of the actual line (survivable)"; + index3 = 2; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span[num3] = "(phase 2) AI doesn't target Ardbert to start combat"; + num3++; + span[num3] = "(phase 2) VBM module: Elidibus' line cleave only covers half the length of the actual line (survivable)"; singlePlayerDutyOptions2.Notes = list129; obj89.SinglePlayerDutyOptions = singlePlayerDutyOptions2; num3 = 3; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span52 = CollectionsMarshal.AsSpan(list130); - span52[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(209u), Answer = new ExcelRef(211u) }; - span52[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(209u), Answer = new ExcelRef(216u) }; - span52[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -248942,15 +299853,18 @@ public static class AssemblyQuestLoader reference94 = obj89; obj88.Steps = list128; reference93 = obj88; - ref QuestSequence reference95 = ref span49[4]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033828u, new Vector3(-396.2005f, -229.06482f, 782.9861f), 818) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033828u, new Vector3(-396.2005f, -229.06482f, 782.9861f), 818) { StopDistance = 5f }; @@ -248963,13 +299877,16 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot17.Author = list132; - num = 8; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span53 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference96 = ref span53[0]; + index = 8; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -248977,21 +299894,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 2011087u, new Vector3(-382.8231f, -229.0648f, 755.3434f), 818); + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 2011087u, new Vector3(-382.8231f, -229.0648f, 755.3434f), 818); obj91.Steps = list134; reference96 = obj91; - ref QuestSequence reference97 = ref span53[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2011089u, new Vector3(-372.0399f, -229.0648f, 712.4863f), 818); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011089u, new Vector3(-372.0399f, -229.0648f, 712.4863f), 818); obj92.Steps = list135; reference97 = obj92; - ref QuestSequence reference98 = ref span53[2]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -248999,21 +299922,27 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2011091u, new Vector3(-251.9112f, -229.20581f, 657.3739f), 818); + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011091u, new Vector3(-251.9112f, -229.20581f, 657.3739f), 818); obj93.Steps = list136; reference98 = obj93; - ref QuestSequence reference99 = ref span53[3]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2011093u, new Vector3(-196.1242f, -244.89203f, 679.9878f), 818); + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011093u, new Vector3(-196.1242f, -244.89203f, 679.9878f), 818); obj94.Steps = list137; reference99 = obj94; - ref QuestSequence reference100 = ref span53[4]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 4 @@ -249021,21 +299950,27 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 2011095u, new Vector3(-132.1889f, -244.89203f, 687.9529f), 818); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011095u, new Vector3(-132.1889f, -244.89203f, 687.9529f), 818); obj95.Steps = list138; reference100 = obj95; - ref QuestSequence reference101 = ref span53[5]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2011097u, new Vector3(-70.78668f, -263.9353f, 710.2921f), 818); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011097u, new Vector3(-70.78668f, -263.9353f, 710.2921f), 818); obj96.Steps = list139; reference101 = obj96; - ref QuestSequence reference102 = ref span53[6]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 6 @@ -249043,18 +299978,23 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2011099u, new Vector3(-29.221008f, -263.9353f, 717.28076f), 818); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011099u, new Vector3(-29.221008f, -263.9353f, 717.28076f), 818); obj97.Steps = list140; reference102 = obj97; - ref QuestSequence reference103 = ref span53[7]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); obj98.Steps = list141; reference103 = obj98; questRoot17.QuestSequence = list133; @@ -249064,13 +300004,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "liza"; questRoot18.Author = list142; - num = 8; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span54 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference104 = ref span54[0]; + index = 8; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -249078,24 +300021,30 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); obj99.Steps = list144; reference104 = obj99; - ref QuestSequence reference105 = ref span54[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1033838u, new Vector3(12.954895f, 82.05f, 7.095398f), 820) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033838u, new Vector3(12.954895f, 82.05f, 7.095398f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj100.Steps = list145; reference105 = obj100; - ref QuestSequence reference106 = ref span54[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -249103,18 +300052,23 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1033830u, new Vector3(23.819275f, 82.049995f, 16.342407f), 820); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033830u, new Vector3(23.819275f, 82.049995f, 16.342407f), 820); obj101.Steps = list146; reference106 = obj101; - ref QuestSequence reference107 = ref span54[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Duty, null, null, 820) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 820) { DutyOptions = new DutyOptions { @@ -249123,11 +300077,13 @@ public static class AssemblyQuestLoader }; obj102.Steps = list147; reference107 = obj102; - span54[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference108 = ref span54[5]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 5 @@ -249135,24 +300091,30 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1033850u, new Vector3(291.49304f, 9.905235f, 153.2157f), 813); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033850u, new Vector3(291.49304f, 9.905235f, 153.2157f), 813); obj103.Steps = list148; reference108 = obj103; - ref QuestSequence reference109 = ref span54[6]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1033852u, new Vector3(574.9751f, 8.563855f, 336.8734f), 813) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033852u, new Vector3(574.9751f, 8.563855f, 336.8734f), 813) { Fly = true }; obj104.Steps = list149; reference109 = obj104; - ref QuestSequence reference110 = ref span54[7]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -249160,7 +300122,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819) { StopDistance = 5f }; @@ -249173,26 +300137,33 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; questRoot19.Author = list151; - num = 5; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span55 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference111 = ref span55[0]; + index = 5; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list153)[0]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819); - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + span4 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI108_03778_Q1_000_001"), @@ -249202,11 +300173,13 @@ public static class AssemblyQuestLoader reference112 = questStep6; obj106.Steps = list153; reference111 = obj106; - span55[1] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference113 = ref span55[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -249214,7 +300187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Duty, null, null, 931) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 931) { DutyOptions = new DutyOptions { @@ -249223,19 +300198,23 @@ public static class AssemblyQuestLoader }; obj107.Steps = list155; reference113 = obj107; - span55[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference114 = ref span55[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033856u, new Vector3(53.421753f, 0.019417252f, -0.045776367f), 819); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033856u, new Vector3(53.421753f, 0.019417252f, -0.045776367f), 819); obj108.Steps = list156; reference114 = obj108; questRoot19.QuestSequence = list152; @@ -249245,13 +300224,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "liza"; questRoot20.Author = list157; - num = 7; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span56 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference115 = ref span56[0]; + index = 7; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -249259,27 +300241,33 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033860u, new Vector3(53.269165f, -2.8964132E-07f, 1.4190674f), 819) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033860u, new Vector3(53.269165f, -2.8964132E-07f, 1.4190674f), 819) { StopDistance = 5f }; obj109.Steps = list159; reference115 = obj109; - ref QuestSequence reference116 = ref span56[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1034902u, new Vector3(51.285522f, -2.59839E-07f, -1.4801636f), 819) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034902u, new Vector3(51.285522f, -2.59839E-07f, -1.4801636f), 819) { StopDistance = 7f }; obj110.Steps = list160; reference116 = obj110; - ref QuestSequence reference117 = ref span56[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -249287,27 +300275,33 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1033864u, new Vector3(384.60352f, -28.36043f, 322.56042f), 815) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033864u, new Vector3(384.60352f, -28.36043f, 322.56042f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj111.Steps = list161; reference117 = obj111; - ref QuestSequence reference118 = ref span56[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1033865u, new Vector3(251.8501f, -46.667526f, 336.90393f), 815) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033865u, new Vector3(251.8501f, -46.667526f, 336.90393f), 815) { Fly = true }; obj112.Steps = list162; reference118 = obj112; - ref QuestSequence reference119 = ref span56[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -249315,24 +300309,30 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1033867u, new Vector3(253.28442f, -46.571102f, 337.02588f), 815); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033867u, new Vector3(253.28442f, -46.571102f, 337.02588f), 815); obj113.Steps = list163; reference119 = obj113; - ref QuestSequence reference120 = ref span56[5]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 820) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj114.Steps = list164; reference120 = obj114; - ref QuestSequence reference121 = ref span56[6]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -249340,7 +300340,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); obj115.Steps = list165; reference121 = obj115; questRoot20.QuestSequence = list158; @@ -249350,24 +300352,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "liza"; questRoot21.Author = list166; - num = 4; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span57 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference122 = ref span57[0]; + index = 4; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); obj116.Steps = list168; reference122 = obj116; - ref QuestSequence reference123 = ref span57[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -249375,29 +300383,35 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj117.Steps = list169; reference123 = obj117; - ref QuestSequence reference124 = ref span57[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj118.Steps = list170; reference124 = obj118; - ref QuestSequence reference125 = ref span57[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -249405,8 +300419,9 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span58 = CollectionsMarshal.AsSpan(list171); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-221.27931f, 55.081436f, -553.9665f), 816) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-221.27931f, 55.081436f, -553.9665f), 816) { SkipConditions = new SkipConditions { @@ -249416,7 +300431,8 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) { Fly = true }; @@ -249429,24 +300445,30 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "liza"; questRoot22.Author = list172; - num = 6; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span59 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference126 = ref span59[0]; + index = 6; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816); obj120.Steps = list174; reference126 = obj120; - ref QuestSequence reference127 = ref span59[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -249454,24 +300476,30 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj121.Steps = list175; reference127 = obj121; - ref QuestSequence reference128 = ref span59[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817); + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817); obj122.Steps = list176; reference128 = obj122; - ref QuestSequence reference129 = ref span59[3]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -249479,21 +300507,26 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1033878u, new Vector3(-483.8178f, 45.586155f, -236.68274f), 815) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033878u, new Vector3(-483.8178f, 45.586155f, -236.68274f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj123.Steps = list177; reference129 = obj123; - ref QuestSequence reference130 = ref span59[4]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list178)[0]; + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref QuestStep reference131 = ref span3[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 1033881u, new Vector3(-37.43042f, 4.583f, 3.982544f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium @@ -249501,7 +300534,9 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI111_03781_Q1_000_153"), @@ -249511,7 +300546,8 @@ public static class AssemblyQuestLoader reference131 = obj125; obj124.Steps = list178; reference130 = obj124; - ref QuestSequence reference132 = ref span59[5]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -249519,7 +300555,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033884u, new Vector3(26.230225f, 0f, 1.4190674f), 819); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033884u, new Vector3(26.230225f, 0f, 1.4190674f), 819); obj126.Steps = list180; reference132 = obj126; questRoot22.QuestSequence = list173; @@ -249529,27 +300567,33 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list181); + index = 0; + span[index] = "liza"; questRoot23.Author = list181; - num = 3; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span60 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference133 = ref span60[0]; + index = 3; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + span2 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819) { StopDistance = 5f }; obj127.Steps = list183; reference133 = obj127; - ref QuestSequence reference134 = ref span60[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -249557,25 +300601,31 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span61 = CollectionsMarshal.AsSpan(list184); - ref QuestStep reference135 = ref span61[0]; + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819); - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span4 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI112_03782_Q1_000_007") }; questStep7.DialogueChoices = list185; reference135 = questStep7; - ref QuestStep reference136 = ref span61[1]; + index2++; + ref QuestStep reference136 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI112_03782_Q2_000_044") @@ -249584,17 +300634,20 @@ public static class AssemblyQuestLoader reference136 = questStep8; obj128.Steps = list184; reference134 = obj128; - ref QuestSequence reference137 = ref span60[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span62 = CollectionsMarshal.AsSpan(list187); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.1512314f, 1.9999986f, 19.4396f), 351); - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1033896u, new Vector3(1.5106201f, 0f, -3.1586914f), 351); + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.1512314f, 1.9999986f, 19.4396f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033896u, new Vector3(1.5106201f, 0f, -3.1586914f), 351); obj129.Steps = list187; reference137 = obj129; questRoot23.QuestSequence = list182; @@ -249604,13 +300657,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot24.Author = list188; - num = 9; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span63 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference138 = ref span63[0]; + index = 9; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -249618,7 +300674,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032581u, new Vector3(750.1792f, 69.99991f, 518.9136f), 621) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032581u, new Vector3(750.1792f, 69.99991f, 518.9136f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -249632,24 +300690,29 @@ public static class AssemblyQuestLoader }; obj130.Steps = list190; reference138 = obj130; - ref QuestSequence reference139 = ref span63[1]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list191)[0]; + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - CollectionsMarshal.AsSpan(list192)[0] = new DialogueChoice + index3 = 1; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + span4 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW101_03783_Q3_000_000") @@ -249658,7 +300721,8 @@ public static class AssemblyQuestLoader reference140 = obj132; obj131.Steps = list191; reference139 = obj131; - ref QuestSequence reference141 = ref span63[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -249666,21 +300730,27 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1032582u, new Vector3(-482.0478f, 107.63f, 121.934814f), 829); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032582u, new Vector3(-482.0478f, 107.63f, 121.934814f), 829); obj133.Steps = list193; reference141 = obj133; - ref QuestSequence reference142 = ref span63[3]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1032585u, new Vector3(-465.53754f, 107.63f, 130.35779f), 829); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032585u, new Vector3(-465.53754f, 107.63f, 130.35779f), 829); obj134.Steps = list194; reference142 = obj134; - ref QuestSequence reference143 = ref span63[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -249688,7 +300758,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Duty, null, null, 829) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 829) { DutyOptions = new DutyOptions { @@ -249697,25 +300769,30 @@ public static class AssemblyQuestLoader }; obj135.Steps = list195; reference143 = obj135; - span63[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference144 = ref span63[6]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1032861u, new Vector3(-473.89948f, 107.63f, 132.86023f), 829) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032861u, new Vector3(-473.89948f, 107.63f, 132.86023f), 829) { StopDistance = 4f }; obj136.Steps = list196; reference144 = obj136; - ref QuestSequence reference145 = ref span63[7]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 7 @@ -249723,23 +300800,28 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); obj137.Steps = list197; reference145 = obj137; - ref QuestSequence reference146 = ref span63[8]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span64 = CollectionsMarshal.AsSpan(list198); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3895) }; @@ -249752,13 +300834,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "liza"; questRoot25.Author = list199; - num = 2; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span65 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference147 = ref span65[0]; + index = 2; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -249766,24 +300851,29 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj139.Steps = list201; reference147 = obj139; - ref QuestSequence reference148 = ref span65[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span66 = CollectionsMarshal.AsSpan(list202); - span66[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895) { NextQuestId = new QuestId(3785) }; @@ -249796,13 +300886,16 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "liza"; questRoot26.Author = list203; - num = 4; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span67 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference149 = ref span67[0]; + index = 4; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 @@ -249810,29 +300903,35 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj141.Steps = list205; reference149 = obj141; - ref QuestSequence reference150 = ref span67[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span68 = CollectionsMarshal.AsSpan(list206); - span68[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span68[1] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; obj142.Steps = list206; reference150 = obj142; - ref QuestSequence reference151 = ref span67[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 @@ -249840,7 +300939,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list207)[0]; + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.49646f, 312.8454f, -382.58423f), 814) { Fly = true, @@ -249849,7 +300950,9 @@ public static class AssemblyQuestLoader num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list208); + index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 10410u, MinimumKillCount = 1u, @@ -249860,15 +300963,18 @@ public static class AssemblyQuestLoader reference152 = obj144; obj143.Steps = list207; reference151 = obj143; - ref QuestSequence reference153 = ref span67[3]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true, NextQuestId = new QuestId(3952) @@ -249882,13 +300988,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; questRoot27.Author = list210; - num = 6; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span69 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference154 = ref span69[0]; + index = 6; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -249896,24 +301005,30 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) { StopDistance = 7f }; obj146.Steps = list212; reference154 = obj146; - ref QuestSequence reference155 = ref span69[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1032606u, new Vector3(318.2268f, 1.5411377f, -225.6352f), 815); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032606u, new Vector3(318.2268f, 1.5411377f, -225.6352f), 815); obj147.Steps = list213; reference155 = obj147; - ref QuestSequence reference156 = ref span69[2]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -249921,27 +301036,33 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2010957u, new Vector3(485.40466f, -26.29132f, -20.859192f), 815) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010957u, new Vector3(485.40466f, -26.29132f, -20.859192f), 815) { Fly = true }; obj148.Steps = list214; reference156 = obj148; - ref QuestSequence reference157 = ref span69[3]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1032591u, new Vector3(482.44446f, -41.81235f, 81.55945f), 815) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032591u, new Vector3(482.44446f, -41.81235f, 81.55945f), 815) { StopDistance = 6f }; obj149.Steps = list215; reference157 = obj149; - ref QuestSequence reference158 = ref span69[4]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 4 @@ -249949,15 +301070,19 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list216)[0]; + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference159 = ref span3[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1030092u, new Vector3(382.864f, -64.404945f, 512.01636f), 815) { Fly = true }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice + index3 = 1; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + span4 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKRA201_03787_YESNO_001") @@ -249966,15 +301091,18 @@ public static class AssemblyQuestLoader reference159 = obj151; obj150.Steps = list216; reference158 = obj150; - ref QuestSequence reference160 = ref span69[5]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878) { NextQuestId = new QuestId(3788) }; @@ -249987,13 +301115,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "liza"; questRoot28.Author = list219; - num = 4; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span70 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference161 = ref span70[0]; + index = 4; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -250001,26 +301132,32 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878); obj153.Steps = list221; reference161 = obj153; - ref QuestSequence reference162 = ref span70[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span71 = CollectionsMarshal.AsSpan(list222); - span71[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + index2 = 2; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span71[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj154.Steps = list222; reference162 = obj154; - ref QuestSequence reference163 = ref span70[2]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 @@ -250028,7 +301165,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250037,15 +301176,18 @@ public static class AssemblyQuestLoader }; obj155.Steps = list223; reference163 = obj155; - ref QuestSequence reference164 = ref span70[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3789) @@ -250059,13 +301201,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; questRoot29.Author = list225; - num = 7; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span72 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference165 = ref span72[0]; + index = 7; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -250073,27 +301218,33 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032605u, new Vector3(-8.743469f, -2.0474615f, -10.025269f), 878) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032605u, new Vector3(-8.743469f, -2.0474615f, -10.025269f), 878) { StopDistance = 6f }; obj157.Steps = list227; reference165 = obj157; - ref QuestSequence reference166 = ref span72[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) { StopDistance = 6f }; obj158.Steps = list228; reference166 = obj158; - ref QuestSequence reference167 = ref span72[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 @@ -250101,25 +301252,31 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Emote, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) { StopDistance = 6f, Emote = EEmote.Rally }; obj159.Steps = list229; reference167 = obj159; - ref QuestSequence reference168 = ref span72[3]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 2010959u, new Vector3(-7.461731f, -2.2736206f, -5.8442383f), 878); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010959u, new Vector3(-7.461731f, -2.2736206f, -5.8442383f), 878); obj160.Steps = list230; reference168 = obj160; - ref QuestSequence reference169 = ref span72[4]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 @@ -250127,23 +301284,28 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span73 = CollectionsMarshal.AsSpan(list231); - span73[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span73[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj161.Steps = list231; reference169 = obj161; - ref QuestSequence reference170 = ref span72[5]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250152,7 +301314,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list232; reference170 = obj162; - ref QuestSequence reference171 = ref span72[6]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -250160,7 +301323,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3790) @@ -250174,27 +301339,33 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "liza"; questRoot30.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span74 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference172 = ref span74[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032604u, new Vector3(-7.034485f, -2.0372493f, -11.215393f), 878) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032604u, new Vector3(-7.034485f, -2.0372493f, -11.215393f), 878) { StopDistance = 7f }; obj164.Steps = list236; reference172 = obj164; - ref QuestSequence reference173 = ref span74[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -250202,26 +301373,32 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span75 = CollectionsMarshal.AsSpan(list237); - span75[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span75[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj165.Steps = list237; reference173 = obj165; - ref QuestSequence reference174 = ref span74[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857); obj166.Steps = list238; reference174 = obj166; - ref QuestSequence reference175 = ref span74[3]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -250229,7 +301406,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250238,15 +301417,18 @@ public static class AssemblyQuestLoader }; obj167.Steps = list239; reference175 = obj167; - ref QuestSequence reference176 = ref span74[4]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857) { NextQuestId = new QuestId(3791) }; @@ -250259,13 +301441,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "liza"; questRoot31.Author = list241; - num = 3; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span76 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference177 = ref span76[0]; + index = 3; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -250273,21 +301458,26 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032611u, new Vector3(103.65454f, -2.7643511E-14f, 94.56018f), 857) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032611u, new Vector3(103.65454f, -2.7643511E-14f, 94.56018f), 857) { StopDistance = 5f }; obj169.Steps = list243; reference177 = obj169; - ref QuestSequence reference178 = ref span76[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250296,7 +301486,8 @@ public static class AssemblyQuestLoader }; obj170.Steps = list244; reference178 = obj170; - ref QuestSequence reference179 = ref span76[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -250304,7 +301495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 5f, NextQuestId = new QuestId(3792) @@ -250318,27 +301511,33 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list246); + index = 0; + span[index] = "liza"; questRoot32.Author = list246; - num = 3; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span77 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference180 = ref span77[0]; + index = 3; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + span2 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032602u, new Vector3(-6.7597656f, -2.1008885f, -8.560364f), 878) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032602u, new Vector3(-6.7597656f, -2.1008885f, -8.560364f), 878) { StopDistance = 5f }; obj172.Steps = list248; reference180 = obj172; - ref QuestSequence reference181 = ref span77[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -250346,24 +301545,29 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); obj173.Steps = list249; reference181 = obj173; - ref QuestSequence reference182 = ref span77[2]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span78 = CollectionsMarshal.AsSpan(list250); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + index2 = 2; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f, NextQuestId = new QuestId(3793) @@ -250377,13 +301581,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "liza"; questRoot33.Author = list251; - num = 3; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span79 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference183 = ref span79[0]; + index = 3; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + span2 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -250391,21 +301598,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f }; obj175.Steps = list253; reference183 = obj175; - ref QuestSequence reference184 = ref span79[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2010961u, new Vector3(-6.9733887f, 3.982544f, 221.36255f), 819) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010961u, new Vector3(-6.9733887f, 3.982544f, 221.36255f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -250416,7 +301628,8 @@ public static class AssemblyQuestLoader }; obj176.Steps = list254; reference184 = obj176; - ref QuestSequence reference185 = ref span79[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -250424,13 +301637,15 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span80 = CollectionsMarshal.AsSpan(list255); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f, NextQuestId = new QuestId(3975) @@ -250444,24 +301659,30 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - CollectionsMarshal.AsSpan(list256)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "liza"; questRoot34.Author = list256; - num = 6; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - Span span81 = CollectionsMarshal.AsSpan(list257); - ref QuestSequence reference186 = ref span81[0]; + index = 6; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032720u, new Vector3(-22.90387f, -25.207546f, 310.6278f), 817); + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032720u, new Vector3(-22.90387f, -25.207546f, 310.6278f), 817); obj178.Steps = list258; reference186 = obj178; - ref QuestSequence reference187 = ref span81[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -250469,28 +301690,34 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1032721u, new Vector3(463.79797f, 6.95506f, -199.02344f), 817) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032721u, new Vector3(463.79797f, 6.95506f, -199.02344f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj179.Steps = list259; reference187 = obj179; - ref QuestSequence reference188 = ref span81[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 2010996u, new Vector3(607.84314f, -41.031555f, -281.8189f), 817) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010996u, new Vector3(607.84314f, -41.031555f, -281.8189f), 817) { Fly = true }; obj180.Steps = list260; reference188 = obj180; - ref QuestSequence reference189 = ref span81[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -250498,26 +301725,33 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) { Fly = true }; obj181.Steps = list261; reference189 = obj181; - ref QuestSequence reference190 = ref span81[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference191 = ref CollectionsMarshal.AsSpan(list262)[0]; + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference191 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1032725u, new Vector3(795.7732f, -45.836327f, -192.40106f), 817); num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANQIQ001_03794_Q3_000_000"), @@ -250527,7 +301761,8 @@ public static class AssemblyQuestLoader reference191 = questStep9; obj182.Steps = list262; reference190 = obj182; - ref QuestSequence reference192 = ref span81[5]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -250535,20 +301770,24 @@ public static class AssemblyQuestLoader num2 = 2; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span82 = CollectionsMarshal.AsSpan(list264); - ref QuestStep reference193 = ref span82[0]; + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + ref QuestStep reference193 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 817); - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span8 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29512u, ItemCount = 1 }; questStep10.ItemsToGather = list265; reference193 = questStep10; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) { Fly = true }; @@ -250561,24 +301800,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "plogon_enjoyer"; questRoot35.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span83 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference194 = ref span83[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj184.Steps = list268; reference194 = obj184; - ref QuestSequence reference195 = ref span83[1]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -250586,64 +301831,79 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1032731u, new Vector3(-28.732727f, -24.68478f, 318.28796f), 817) + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032731u, new Vector3(-28.732727f, -24.68478f, 318.28796f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj185.Steps = list269; reference195 = obj185; - ref QuestSequence reference196 = ref span83[2]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span84 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference197 = ref span84[0]; + index2 = 3; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference197 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = EExtendedClassJob.Miner; + Span span9 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span9[index3] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list271; - num3 = 1; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - CollectionsMarshal.AsSpan(list272)[0] = new GatheredItem + index3 = 1; + List list272 = new List(index3); + CollectionsMarshal.SetCount(list272, index3); + span8 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29513u, ItemCount = 1 }; questStep11.ItemsToGather = list272; reference197 = questStep11; - ref QuestStep reference198 = ref span84[1]; + num2++; + ref QuestStep reference198 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - CollectionsMarshal.AsSpan(list273)[0] = EExtendedClassJob.Botanist; + span9 = CollectionsMarshal.AsSpan(list273); + index3 = 0; + span9[index3] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list273; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new GatheredItem + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + span8 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29539u, ItemCount = 1 }; questStep12.ItemsToGather = list274; reference198 = questStep12; - span84[2] = new QuestStep(EInteractionType.Interact, 1032734u, new Vector3(802.6703f, -45.915627f, -214.70972f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032734u, new Vector3(802.6703f, -45.915627f, -214.70972f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj186.Steps = list270; reference196 = obj186; - ref QuestSequence reference199 = ref span83[3]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -250651,7 +301911,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj187.Steps = list275; reference199 = obj187; questRoot35.QuestSequence = list267; @@ -250661,24 +301923,30 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "plogon_enjoyer"; questRoot36.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span85 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference200 = ref span85[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj188.Steps = list278; reference200 = obj188; - ref QuestSequence reference201 = ref span85[1]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -250686,25 +301954,31 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj189.Steps = list279; reference201 = obj189; - ref QuestSequence reference202 = ref span85[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj190.Steps = list280; reference202 = obj190; - ref QuestSequence reference203 = ref span85[3]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 3 @@ -250712,56 +301986,70 @@ public static class AssemblyQuestLoader num2 = 3; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span86 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference204 = ref span86[0]; + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference204 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; + span9 = CollectionsMarshal.AsSpan(list282); + index3 = 0; + span9[index3] = EExtendedClassJob.Miner; questStep13.RequiredQuestAcceptedJob = list282; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + index3 = 1; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + span8 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29514u, ItemCount = 1 }; questStep13.ItemsToGather = list283; reference204 = questStep13; - ref QuestStep reference205 = ref span86[1]; + index2++; + ref QuestStep reference205 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; + span9 = CollectionsMarshal.AsSpan(list284); + index3 = 0; + span9[index3] = EExtendedClassJob.Botanist; questStep14.RequiredQuestAcceptedJob = list284; - num3 = 1; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem + index3 = 1; + List list285 = new List(index3); + CollectionsMarshal.SetCount(list285, index3); + span8 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29540u, ItemCount = 1 }; questStep14.ItemsToGather = list285; reference205 = questStep14; - span86[2] = new QuestStep(EInteractionType.Interact, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) { Fly = true }; obj191.Steps = list281; reference203 = obj191; - ref QuestSequence reference206 = ref span85[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj192.Steps = list286; reference206 = obj192; questRoot36.QuestSequence = list277; @@ -250771,13 +302059,16 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "plogon_enjoyer"; questRoot37.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span87 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference207 = ref span87[0]; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -250785,21 +302076,27 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj193.Steps = list289; reference207 = obj193; - ref QuestSequence reference208 = ref span87[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj194.Steps = list290; reference208 = obj194; - ref QuestSequence reference209 = ref span87[2]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -250807,57 +302104,71 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span88 = CollectionsMarshal.AsSpan(list291); - ref QuestStep reference210 = ref span88[0]; + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = EExtendedClassJob.Miner; + span9 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span9[index3] = EExtendedClassJob.Miner; questStep15.RequiredQuestAcceptedJob = list292; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new GatheredItem + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + span8 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29515u, ItemCount = 3 }; questStep15.ItemsToGather = list293; reference210 = questStep15; - ref QuestStep reference211 = ref span88[1]; + index2++; + ref QuestStep reference211 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = EExtendedClassJob.Botanist; + span9 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span9[index3] = EExtendedClassJob.Botanist; questStep16.RequiredQuestAcceptedJob = list294; - num3 = 1; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = new GatheredItem + index3 = 1; + List list295 = new List(index3); + CollectionsMarshal.SetCount(list295, index3); + span8 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29541u, ItemCount = 3 }; questStep16.ItemsToGather = list295; reference211 = questStep16; - span88[2] = new QuestStep(EInteractionType.Interact, 1032862u, new Vector3(777.06555f, -45.76794f, -209.21649f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032862u, new Vector3(777.06555f, -45.76794f, -209.21649f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj195.Steps = list291; reference209 = obj195; - ref QuestSequence reference212 = ref span87[3]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj196.Steps = list296; reference212 = obj196; questRoot37.QuestSequence = list288; @@ -250867,13 +302178,16 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list297); + index = 0; + span[index] = "plogon_enjoyer"; questRoot38.Author = list297; - num = 7; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span89 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference213 = ref span89[0]; + index = 7; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + span2 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -250881,21 +302195,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj197.Steps = list299; reference213 = obj197; - ref QuestSequence reference214 = ref span89[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj198.Steps = list300; reference214 = obj198; - ref QuestSequence reference215 = ref span89[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -250903,27 +302223,33 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true }; obj199.Steps = list301; reference215 = obj199; - ref QuestSequence reference216 = ref span89[3]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) { Fly = true }; obj200.Steps = list302; reference216 = obj200; - ref QuestSequence reference217 = ref span89[4]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 4 @@ -250931,60 +302257,75 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817); + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817); obj201.Steps = list303; reference217 = obj201; - ref QuestSequence reference218 = ref span89[5]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span90 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference219 = ref span90[0]; + index2 = 3; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference219 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = EExtendedClassJob.Miner; + span9 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span9[index3] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list305; - num3 = 1; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = new GatheredItem + index3 = 1; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + span8 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29516u, ItemCount = 3 }; questStep17.ItemsToGather = list306; reference219 = questStep17; - ref QuestStep reference220 = ref span90[1]; + num2++; + ref QuestStep reference220 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = EExtendedClassJob.Botanist; + span9 = CollectionsMarshal.AsSpan(list307); + index3 = 0; + span9[index3] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list307; - num3 = 1; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = new GatheredItem + index3 = 1; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + span8 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span8[num3] = new GatheredItem { ItemId = 29542u, ItemCount = 3 }; questStep18.ItemsToGather = list308; reference220 = questStep18; - span90[2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj202.Steps = list304; reference218 = obj202; - ref QuestSequence reference221 = ref span89[6]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -250992,7 +302333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj203.Steps = list309; reference221 = obj203; questRoot38.QuestSequence = list298; @@ -251002,24 +302345,30 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "plogon_enjoyer"; questRoot39.Author = list310; - num = 6; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span91 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference222 = ref span91[0]; + index = 6; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + span2 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj204.Steps = list312; reference222 = obj204; - ref QuestSequence reference223 = ref span91[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -251027,29 +302376,35 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj205.Steps = list313; reference223 = obj205; - ref QuestSequence reference224 = ref span91[2]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1032732u, new Vector3(-26.93219f, -24.638563f, 319.35608f), 817) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032732u, new Vector3(-26.93219f, -24.638563f, 319.35608f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj206.Steps = list314; reference224 = obj206; - ref QuestSequence reference225 = ref span91[3]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -251057,24 +302412,30 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817) + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817) { Fly = true }; obj207.Steps = list315; reference225 = obj207; - ref QuestSequence reference226 = ref span91[4]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817); + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817); obj208.Steps = list316; reference226 = obj208; - ref QuestSequence reference227 = ref span91[5]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -251082,7 +302443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) + span3 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -251100,13 +302463,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -251114,18 +302480,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj2.Steps = list4; reference2 = obj2; questRoot.QuestSequence = list2; @@ -251135,13 +302506,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list5); + index = 0; + span[index] = "plogon_enjoyer"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + span2 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -251149,18 +302523,23 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj4.Steps = list8; reference4 = obj4; questRoot2.QuestSequence = list6; @@ -251170,13 +302549,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "plogon_enjoyer"; questRoot3.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference5 = ref span3[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -251184,18 +302566,23 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj5.Steps = list11; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj6.Steps = list12; reference6 = obj6; questRoot3.QuestSequence = list10; @@ -251205,13 +302592,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "plogon_enjoyer"; questRoot4.Author = list13; - num = 2; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference7 = ref span4[0]; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -251219,18 +302609,23 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj7.Steps = list15; reference7 = obj7; - ref QuestSequence reference8 = ref span4[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj8.Steps = list16; reference8 = obj8; questRoot4.QuestSequence = list14; @@ -251240,13 +302635,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "plogon_enjoyer"; questRoot5.Author = list17; - num = 2; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference9 = ref span5[0]; + index = 2; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -251254,18 +302652,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj9.Steps = list19; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj10.Steps = list20; reference10 = obj10; questRoot5.QuestSequence = list18; @@ -251275,13 +302678,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "plogon_enjoyer"; questRoot6.Author = list21; - num = 2; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference11 = ref span6[0]; + index = 2; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -251289,18 +302695,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj11.Steps = list23; reference11 = obj11; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj12.Steps = list24; reference12 = obj12; questRoot6.QuestSequence = list22; @@ -251310,13 +302721,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; questRoot7.Author = list25; - num = 2; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span7 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference13 = ref span7[0]; + index = 2; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -251324,58 +302738,73 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj13.Steps = list27; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span8 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference15 = ref span8[0]; + index2 = 4; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 817); int num3 = 1; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = EExtendedClassJob.Miner; + Span span4 = CollectionsMarshal.AsSpan(list29); + int index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep.RequiredQuestAcceptedJob = list29; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheredItem + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span5 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29517u, ItemCount = 3 }; questStep.ItemsToGather = list30; reference15 = questStep; - ref QuestStep reference16 = ref span8[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep2.RequiredQuestAcceptedJob = list31; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheredItem + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span5 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29543u, ItemCount = 3 }; questStep2.ItemsToGather = list32; reference16 = questStep2; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span8[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251388,13 +302817,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot8.Author = list33; - num = 2; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span9 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference17 = ref span9[0]; + index = 2; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -251402,57 +302834,72 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj15.Steps = list35; reference17 = obj15; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference19 = ref span10[0]; + index2 = 4; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list37; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new GatheredItem + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29518u, ItemCount = 3 }; questStep3.ItemsToGather = list38; reference19 = questStep3; - ref QuestStep reference20 = ref span10[1]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list39; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29544u, ItemCount = 3 }; questStep4.ItemsToGather = list40; reference20 = questStep4; - span10[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true }; - span10[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251465,13 +302912,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot9.Author = list41; - num = 2; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span11 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference21 = ref span11[0]; + index = 2; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -251479,58 +302929,73 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj17.Steps = list43; reference21 = obj17; - ref QuestSequence reference22 = ref span11[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span12 = CollectionsMarshal.AsSpan(list44); - ref QuestStep reference23 = ref span12[0]; + index2 = 4; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep5.RequiredQuestAcceptedJob = list45; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new GatheredItem + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29519u, ItemCount = 3 }; questStep5.ItemsToGather = list46; reference23 = questStep5; - ref QuestStep reference24 = ref span12[1]; + num2++; + ref QuestStep reference24 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep6.RequiredQuestAcceptedJob = list47; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheredItem + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + span5 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29545u, ItemCount = 3 }; questStep6.ItemsToGather = list48; reference24 = questStep6; - span12[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span12[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251543,13 +303008,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot10.Author = list49; - num = 2; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span13 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference25 = ref span13[0]; + index = 2; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -251557,58 +303025,73 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj19.Steps = list51; reference25 = obj19; - ref QuestSequence reference26 = ref span13[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span14 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference27 = ref span14[0]; + index2 = 4; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep7.RequiredQuestAcceptedJob = list53; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheredItem + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29520u, ItemCount = 3 }; questStep7.ItemsToGather = list54; reference27 = questStep7; - ref QuestStep reference28 = ref span14[1]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep8.RequiredQuestAcceptedJob = list55; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new GatheredItem + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span5 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29546u, ItemCount = 3 }; questStep8.ItemsToGather = list56; reference28 = questStep8; - span14[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span14[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251621,13 +303104,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot11.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span15 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference29 = ref span15[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -251635,19 +303121,23 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj21.Steps = list59; reference29 = obj21; - ref QuestSequence reference30 = ref span15[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span16 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference31 = ref span16[0]; + index2 = 2; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.UseItem, 2010995u, new Vector3(-73.99103f, -19.36377f, 298.8479f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, @@ -251656,35 +303146,49 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span17 = CollectionsMarshal.AsSpan(list61); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list61; reference31 = obj23; - ref QuestStep reference32 = ref span16[1]; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj24 = new QuestStep(EInteractionType.UseItem, 2010994u, new Vector3(-69.13867f, -19.485779f, 294.14807f), 817) { ItemId = 2002977u }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span18 = CollectionsMarshal.AsSpan(list62); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + span6 = CollectionsMarshal.AsSpan(list62); + 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); obj24.CompletionQuestVariablesFlags = list62; reference32 = obj24; obj22.Steps = list60; reference30 = obj22; - ref QuestSequence reference33 = ref span15[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -251692,24 +303196,29 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); obj25.Steps = list63; reference33 = obj25; - ref QuestSequence reference34 = ref span15[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span19 = CollectionsMarshal.AsSpan(list64); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251722,13 +303231,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot12.Author = list65; - num = 2; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span20 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference35 = ref span20[0]; + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -251736,58 +303248,73 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj27.Steps = list67; reference35 = obj27; - ref QuestSequence reference36 = ref span20[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span21 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference37 = ref span21[0]; + index2 = 4; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep9.RequiredQuestAcceptedJob = list69; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + span5 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29521u, ItemCount = 3 }; questStep9.ItemsToGather = list70; reference37 = questStep9; - ref QuestStep reference38 = ref span21[1]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep10.RequiredQuestAcceptedJob = list71; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheredItem + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span5 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29547u, ItemCount = 3 }; questStep10.ItemsToGather = list72; reference38 = questStep10; - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span21[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251800,13 +303327,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; questRoot13.Author = list73; - num = 2; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span22 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference39 = ref span22[0]; + index = 2; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -251814,58 +303344,73 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj29.Steps = list75; reference39 = obj29; - ref QuestSequence reference40 = ref span22[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span23 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference41 = ref span23[0]; + index2 = 4; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list77; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheredItem + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29522u, ItemCount = 3 }; questStep11.ItemsToGather = list78; reference41 = questStep11; - ref QuestStep reference42 = ref span23[1]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list79; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new GatheredItem + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span5 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29548u, ItemCount = 3 }; questStep12.ItemsToGather = list80; reference42 = questStep12; - span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span23[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251878,13 +303423,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "plogon_enjoyer"; questRoot14.Author = list81; - num = 3; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span24 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference43 = ref span24[0]; + index = 3; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -251892,34 +303440,41 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj31.Steps = list83; reference43 = obj31; - ref QuestSequence reference44 = ref span24[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span25 = CollectionsMarshal.AsSpan(list84); - span25[0] = new QuestStep(EInteractionType.Interact, 1027719u, new Vector3(303.5172f, 34.242825f, -146.65448f), 817) + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027719u, new Vector3(303.5172f, 34.242825f, -146.65448f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span25[1] = new QuestStep(EInteractionType.Interact, 1027715u, new Vector3(411.21533f, 33.637783f, -128.5268f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027715u, new Vector3(411.21533f, 33.637783f, -128.5268f), 817) { Fly = true }; - span25[2] = new QuestStep(EInteractionType.Interact, 1027713u, new Vector3(446.70776f, 34.051743f, -117.17407f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027713u, new Vector3(446.70776f, 34.051743f, -117.17407f), 817) { Fly = true }; obj32.Steps = list84; reference44 = obj32; - ref QuestSequence reference45 = ref span24[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -251927,12 +303482,14 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span26 = CollectionsMarshal.AsSpan(list85); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251945,24 +303502,30 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "plogon_enjoyer"; questRoot15.Author = list86; - num = 2; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span27 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference46 = ref span27[0]; + index = 2; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj34.Steps = list88; reference46 = obj34; - ref QuestSequence reference47 = ref span27[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -251970,47 +303533,59 @@ public static class AssemblyQuestLoader num2 = 4; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span28 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference48 = ref span28[0]; + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep13.RequiredQuestAcceptedJob = list90; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = new GatheredItem + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + span5 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29523u, ItemCount = 3 }; questStep13.ItemsToGather = list91; reference48 = questStep13; - ref QuestStep reference49 = ref span28[1]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep14.RequiredQuestAcceptedJob = list92; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheredItem + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + span5 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29549u, ItemCount = 3 }; questStep14.ItemsToGather = list93; reference49 = questStep14; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span28[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252023,24 +303598,30 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list94; - num = 2; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span29 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference50 = ref span29[0]; + index = 2; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj36.Steps = list96; reference50 = obj36; - ref QuestSequence reference51 = ref span29[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -252048,47 +303629,59 @@ public static class AssemblyQuestLoader num2 = 4; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span30 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference52 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep15.RequiredQuestAcceptedJob = list98; - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new GatheredItem + index3 = 1; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + span5 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29524u, ItemCount = 3 }; questStep15.ItemsToGather = list99; reference52 = questStep15; - ref QuestStep reference53 = ref span30[1]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep16.RequiredQuestAcceptedJob = list100; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new GatheredItem + index3 = 1; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + span5 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29550u, ItemCount = 3 }; questStep16.ItemsToGather = list101; reference53 = questStep16; - span30[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span30[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252101,24 +303694,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list102; - num = 2; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span31 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference54 = ref span31[0]; + index = 2; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj38.Steps = list104; reference54 = obj38; - ref QuestSequence reference55 = ref span31[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -252126,47 +303725,59 @@ public static class AssemblyQuestLoader num2 = 4; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span32 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference56 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list106; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheredItem + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29525u, ItemCount = 3 }; questStep17.ItemsToGather = list107; reference56 = questStep17; - ref QuestStep reference57 = ref span32[1]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list108; - num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new GatheredItem + index3 = 1; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + span5 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29551u, ItemCount = 3 }; questStep18.ItemsToGather = list109; reference57 = questStep18; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span32[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252179,24 +303790,30 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list110; - num = 2; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span33 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference58 = ref span33[0]; + index = 2; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj40.Steps = list112; reference58 = obj40; - ref QuestSequence reference59 = ref span33[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -252204,47 +303821,59 @@ public static class AssemblyQuestLoader num2 = 4; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span34 = CollectionsMarshal.AsSpan(list113); - ref QuestStep reference60 = ref span34[0]; + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference60 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep19.RequiredQuestAcceptedJob = list114; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new GatheredItem + index3 = 1; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + span5 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29526u, ItemCount = 3 }; questStep19.ItemsToGather = list115; reference60 = questStep19; - ref QuestStep reference61 = ref span34[1]; + index2++; + ref QuestStep reference61 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep20.RequiredQuestAcceptedJob = list116; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheredItem + index3 = 1; + List list117 = new List(index3); + CollectionsMarshal.SetCount(list117, index3); + span5 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29552u, ItemCount = 3 }; questStep20.ItemsToGather = list117; reference61 = questStep20; - span34[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252257,24 +303886,30 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list118; - num = 2; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span35 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference62 = ref span35[0]; + index = 2; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj42.Steps = list120; reference62 = obj42; - ref QuestSequence reference63 = ref span35[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -252282,47 +303917,59 @@ public static class AssemblyQuestLoader num2 = 4; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span36 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference64 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep21.RequiredQuestAcceptedJob = list122; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new GatheredItem + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span5 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29527u, ItemCount = 3 }; questStep21.ItemsToGather = list123; reference64 = questStep21; - ref QuestStep reference65 = ref span36[1]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep22.RequiredQuestAcceptedJob = list124; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = new GatheredItem + index3 = 1; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span5 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29553u, ItemCount = 3 }; questStep22.ItemsToGather = list125; reference65 = questStep22; - span36[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span36[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252335,24 +303982,30 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "liza"; questRoot20.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span37 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference66 = ref span37[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj44.Steps = list128; reference66 = obj44; - ref QuestSequence reference67 = ref span37[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -252360,7 +304013,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Say, 1032413u, new Vector3(144.36548f, -19.982845f, -459.8001f), 817) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1032413u, new Vector3(144.36548f, -19.982845f, -459.8001f), 817) { Fly = true, ChatMessage = new ChatMessage @@ -252370,21 +304025,24 @@ public static class AssemblyQuestLoader }; obj45.Steps = list129; reference67 = obj45; - ref QuestSequence reference68 = ref span37[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span38 = CollectionsMarshal.AsSpan(list130); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252397,13 +304055,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "liza"; questRoot21.Author = list131; - num = 2; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span39 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference69 = ref span39[0]; + index = 2; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -252411,58 +304072,73 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj47.Steps = list133; reference69 = obj47; - ref QuestSequence reference70 = ref span39[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span40 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference71 = ref span40[0]; + index2 = 4; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep23.RequiredQuestAcceptedJob = list135; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new GatheredItem + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span5 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29528u, ItemCount = 3 }; questStep23.ItemsToGather = list136; reference71 = questStep23; - ref QuestStep reference72 = ref span40[1]; + num2++; + ref QuestStep reference72 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep24.RequiredQuestAcceptedJob = list137; - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new GatheredItem + index3 = 1; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span5 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29554u, ItemCount = 3 }; questStep24.ItemsToGather = list138; reference72 = questStep24; - span40[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span40[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252475,13 +304151,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot22.Author = list139; - num = 2; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span41 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference73 = ref span41[0]; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -252489,58 +304168,73 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj49.Steps = list141; reference73 = obj49; - ref QuestSequence reference74 = ref span41[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span42 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference75 = ref span42[0]; + index2 = 4; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference75 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep25.RequiredQuestAcceptedJob = list143; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + span5 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29529u, ItemCount = 3 }; questStep25.ItemsToGather = list144; reference75 = questStep25; - ref QuestStep reference76 = ref span42[1]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep26.RequiredQuestAcceptedJob = list145; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheredItem + index3 = 1; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span5 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29555u, ItemCount = 3 }; questStep26.ItemsToGather = list146; reference76 = questStep26; - span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span42[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252553,13 +304247,16 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list147); + index = 0; + span[index] = "liza"; questRoot23.Author = list147; - num = 2; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span43 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference77 = ref span43[0]; + index = 2; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + span2 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -252567,58 +304264,73 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj51.Steps = list149; reference77 = obj51; - ref QuestSequence reference78 = ref span43[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span44 = CollectionsMarshal.AsSpan(list150); - ref QuestStep reference79 = ref span44[0]; + index2 = 4; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep27.RequiredQuestAcceptedJob = list151; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new GatheredItem + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span5 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29530u, ItemCount = 3 }; questStep27.ItemsToGather = list152; reference79 = questStep27; - ref QuestStep reference80 = ref span44[1]; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep28.RequiredQuestAcceptedJob = list153; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new GatheredItem + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + span5 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29556u, ItemCount = 3 }; questStep28.ItemsToGather = list154; reference80 = questStep28; - span44[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span44[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252631,13 +304343,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot24.Author = list155; - num = 4; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span45 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference81 = ref span45[0]; + index = 4; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -252645,21 +304360,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj53.Steps = list157; reference81 = obj53; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817); obj54.Steps = list158; reference82 = obj54; - ref QuestSequence reference83 = ref span45[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -252667,8 +304388,9 @@ public static class AssemblyQuestLoader num2 = 2; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span46 = CollectionsMarshal.AsSpan(list159); - ref QuestStep reference84 = ref span46[0]; + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Action, 1032829u, new Vector3(488.3954f, 34.798103f, 232.37964f), 817) { Fly = true, @@ -252677,50 +304399,66 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span47 = CollectionsMarshal.AsSpan(list160); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj56.CompletionQuestVariablesFlags = list160; reference84 = obj56; - ref QuestStep reference85 = ref span46[1]; + index2++; + ref QuestStep reference85 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Action, 1032828u, new Vector3(352.16296f, 28.242743f, 303.2119f), 817) { Fly = true, Action = EAction.PeculiarLight }; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span48 = CollectionsMarshal.AsSpan(list161); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + span6 = CollectionsMarshal.AsSpan(list161); + 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); obj57.CompletionQuestVariablesFlags = list161; reference85 = obj57; obj55.Steps = list159; reference83 = obj55; - ref QuestSequence reference86 = ref span45[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span49 = CollectionsMarshal.AsSpan(list162); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252733,13 +304471,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list163); + index = 0; + span[index] = "plogon_enjoyer"; questRoot25.Author = list163; - num = 2; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span50 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference87 = ref span50[0]; + index = 2; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + span2 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -252747,58 +304488,73 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj59.Steps = list165; reference87 = obj59; - ref QuestSequence reference88 = ref span50[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span51 = CollectionsMarshal.AsSpan(list166); - ref QuestStep reference89 = ref span51[0]; + index2 = 4; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference89 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep29.RequiredQuestAcceptedJob = list167; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem + index3 = 1; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + span5 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29531u, ItemCount = 3 }; questStep29.ItemsToGather = list168; reference89 = questStep29; - ref QuestStep reference90 = ref span51[1]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep30.RequiredQuestAcceptedJob = list169; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = new GatheredItem + index3 = 1; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + span5 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29557u, ItemCount = 3 }; questStep30.ItemsToGather = list170; reference90 = questStep30; - span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span51[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252811,13 +304567,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "plogon_enjoyer"; questRoot26.Author = list171; - num = 2; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span52 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference91 = ref span52[0]; + index = 2; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -252825,58 +304584,73 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj61.Steps = list173; reference91 = obj61; - ref QuestSequence reference92 = ref span52[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span53 = CollectionsMarshal.AsSpan(list174); - ref QuestStep reference93 = ref span53[0]; + index2 = 4; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list175); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep31.RequiredQuestAcceptedJob = list175; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new GatheredItem + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + span5 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29532u, ItemCount = 3 }; questStep31.ItemsToGather = list176; reference93 = questStep31; - ref QuestStep reference94 = ref span53[1]; + num2++; + ref QuestStep reference94 = ref span3[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep32.RequiredQuestAcceptedJob = list177; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new GatheredItem + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + span5 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29558u, ItemCount = 3 }; questStep32.ItemsToGather = list178; reference94 = questStep32; - span53[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span53[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252889,13 +304663,16 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; questRoot27.Author = list179; - num = 3; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span54 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference95 = ref span54[0]; + index = 3; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -252903,25 +304680,31 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj63.Steps = list181; reference95 = obj63; - ref QuestSequence reference96 = ref span54[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 2010997u, new Vector3(-399.52698f, 10.635498f, 241.50452f), 817) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010997u, new Vector3(-399.52698f, 10.635498f, 241.50452f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj64.Steps = list182; reference96 = obj64; - ref QuestSequence reference97 = ref span54[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -252929,13 +304712,15 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span55 = CollectionsMarshal.AsSpan(list183); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252948,24 +304733,30 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list184); + index = 0; + span[index] = "liza"; questRoot28.Author = list184; - num = 2; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span56 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference98 = ref span56[0]; + index = 2; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + span2 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj66.Steps = list186; reference98 = obj66; - ref QuestSequence reference99 = ref span56[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -252973,47 +304764,59 @@ public static class AssemblyQuestLoader num2 = 4; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span57 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference100 = ref span57[0]; + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference100 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep33.RequiredQuestAcceptedJob = list188; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheredItem + index3 = 1; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + span5 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29533u, ItemCount = 3 }; questStep33.ItemsToGather = list189; reference100 = questStep33; - ref QuestStep reference101 = ref span57[1]; + index2++; + ref QuestStep reference101 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep34.RequiredQuestAcceptedJob = list190; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new GatheredItem + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + span5 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29559u, ItemCount = 3 }; questStep34.ItemsToGather = list191; reference101 = questStep34; - span57[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span57[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f, Fly = true @@ -253027,24 +304830,30 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "liza"; questRoot29.Author = list192; - num = 2; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span58 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference102 = ref span58[0]; + index = 2; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj68.Steps = list194; reference102 = obj68; - ref QuestSequence reference103 = ref span58[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -253052,47 +304861,59 @@ public static class AssemblyQuestLoader num2 = 4; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span59 = CollectionsMarshal.AsSpan(list195); - ref QuestStep reference104 = ref span59[0]; + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep35.RequiredQuestAcceptedJob = list196; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheredItem + index3 = 1; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + span5 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29534u, ItemCount = 3 }; questStep35.ItemsToGather = list197; reference104 = questStep35; - ref QuestStep reference105 = ref span59[1]; + index2++; + ref QuestStep reference105 = ref span3[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep36.RequiredQuestAcceptedJob = list198; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new GatheredItem + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + span5 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29560u, ItemCount = 3 }; questStep36.ItemsToGather = list199; reference105 = questStep36; - span59[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253105,24 +304926,30 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; questRoot30.Author = list200; - num = 5; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span60 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference106 = ref span60[0]; + index = 5; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj70.Steps = list202; reference106 = obj70; - ref QuestSequence reference107 = ref span60[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -253130,28 +304957,34 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj71.Steps = list203; reference107 = obj71; - ref QuestSequence reference108 = ref span60[2]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.UseItem, 1032831u, new Vector3(-54.795166f, 0.7328947f, 217.09009f), 817) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1032831u, new Vector3(-54.795166f, 0.7328947f, 217.09009f), 817) { Fly = true, ItemId = 2002980u }; obj72.Steps = list204; reference108 = obj72; - ref QuestSequence reference109 = ref span60[3]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 @@ -253159,24 +304992,29 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817); obj73.Steps = list205; reference109 = obj73; - ref QuestSequence reference110 = ref span60[4]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span61 = CollectionsMarshal.AsSpan(list206); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253189,13 +305027,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot31.Author = list207; - num = 2; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span62 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference111 = ref span62[0]; + index = 2; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -253203,58 +305044,73 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj75.Steps = list209; reference111 = obj75; - ref QuestSequence reference112 = ref span62[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span63 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference113 = ref span63[0]; + index2 = 4; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference113 = ref span3[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep37.RequiredQuestAcceptedJob = list211; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new GatheredItem + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span5 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29535u, ItemCount = 3 }; questStep37.ItemsToGather = list212; reference113 = questStep37; - ref QuestStep reference114 = ref span63[1]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep38.RequiredQuestAcceptedJob = list213; - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new GatheredItem + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span5 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29561u, ItemCount = 3 }; questStep38.ItemsToGather = list214; reference114 = questStep38; - span63[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span63[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253267,13 +305123,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list215); + index = 0; + span[index] = "liza"; questRoot32.Author = list215; - num = 2; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span64 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference115 = ref span64[0]; + index = 2; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + span2 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -253281,58 +305140,73 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj77.Steps = list217; reference115 = obj77; - ref QuestSequence reference116 = ref span64[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span65 = CollectionsMarshal.AsSpan(list218); - ref QuestStep reference117 = ref span65[0]; + index2 = 4; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; questStep39.RequiredQuestAcceptedJob = list219; - num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new GatheredItem + index3 = 1; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + span5 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29536u, ItemCount = 3 }; questStep39.ItemsToGather = list220; reference117 = questStep39; - ref QuestStep reference118 = ref span65[1]; + num2++; + ref QuestStep reference118 = ref span3[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; questStep40.RequiredQuestAcceptedJob = list221; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new GatheredItem + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29562u, ItemCount = 3 }; questStep40.ItemsToGather = list222; reference118 = questStep40; - span65[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span65[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253345,13 +305219,16 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "plogon_enjoyer"; questRoot33.Author = list223; - num = 4; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span66 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference119 = ref span66[0]; + index = 4; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -253359,24 +305236,30 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj79.Steps = list225; reference119 = obj79; - ref QuestSequence reference120 = ref span66[1]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817) { Fly = true }; obj80.Steps = list226; reference120 = obj80; - ref QuestSequence reference121 = ref span66[2]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -253384,28 +305267,33 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Action, 2010998u, new Vector3(-677.0886f, 0.32037354f, 208.69751f), 817) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 2010998u, new Vector3(-677.0886f, 0.32037354f, 208.69751f), 817) { Fly = true, Action = EAction.PeculiarLight }; obj81.Steps = list227; reference121 = obj81; - ref QuestSequence reference122 = ref span66[3]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span67 = CollectionsMarshal.AsSpan(list228); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253418,13 +305306,16 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "pot0to"; questRoot34.Author = list229; - num = 2; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span68 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference123 = ref span68[0]; + index = 2; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -253432,19 +305323,23 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj83.Steps = list231; reference123 = obj83; - ref QuestSequence reference124 = ref span68[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span69 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference125 = ref span69[0]; + index2 = 3; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference125 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Gather, 33005u, new Vector3(214.7744f, -19.57758f, 623.6767f), 817) { Fly = true @@ -253452,19 +305347,24 @@ public static class AssemblyQuestLoader num3 = 1; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - CollectionsMarshal.AsSpan(list233)[0] = EExtendedClassJob.Miner; + span4 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span4[index3] = EExtendedClassJob.Miner; obj85.RequiredQuestAcceptedJob = list233; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new GatheredItem + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + span5 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29537u, ItemCount = 3 }; obj85.ItemsToGather = list234; reference125 = obj85; - ref QuestStep reference126 = ref span69[1]; + num2++; + ref QuestStep reference126 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Gather, 33020u, new Vector3(226.1767f, -20.10281f, 643.5543f), 817) { Fly = true @@ -253472,19 +305372,24 @@ public static class AssemblyQuestLoader num3 = 1; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = EExtendedClassJob.Botanist; + span4 = CollectionsMarshal.AsSpan(list235); + index3 = 0; + span4[index3] = EExtendedClassJob.Botanist; obj86.RequiredQuestAcceptedJob = list235; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new GatheredItem + index3 = 1; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + span5 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span5[num3] = new GatheredItem { ItemId = 29563u, ItemCount = 3 }; obj86.ItemsToGather = list236; reference126 = obj86; - span69[2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -253498,13 +305403,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list237); + index = 0; + span[index] = "Censored"; questRoot35.Author = list237; - num = 5; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span70 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference127 = ref span70[0]; + index = 5; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + span2 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 @@ -253512,7 +305420,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -253523,16 +305433,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list239; reference127 = obj87; - ref QuestSequence reference128 = ref span70[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span71 = CollectionsMarshal.AsSpan(list240); - span71[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -253541,10 +305453,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span71[1] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj88.Steps = list240; reference128 = obj88; - ref QuestSequence reference129 = ref span70[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 @@ -253552,27 +305466,33 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1032866u, new Vector3(274.1283f, 8.18297f, -409.8421f), 614) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032866u, new Vector3(274.1283f, 8.18297f, -409.8421f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj89.Steps = list241; reference129 = obj89; - ref QuestSequence reference130 = ref span70[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1032867u, new Vector3(-258.53363f, 53.217503f, -644.8921f), 614) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032867u, new Vector3(-258.53363f, 53.217503f, -644.8921f), 614) { Fly = true }; obj90.Steps = list242; reference130 = obj90; - ref QuestSequence reference131 = ref span70[4]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -253580,7 +305500,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) { NextQuestId = new QuestId(3835) }; @@ -253593,21 +305515,26 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "Censored"; questRoot36.Author = list244; - num = 7; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span72 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference132 = ref span72[0]; + index = 7; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + span2 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, @@ -253621,7 +305548,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list246; reference132 = obj92; - ref QuestSequence reference133 = ref span72[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -253629,7 +305557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list247)[0]; + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + ref QuestStep reference134 = ref span3[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -253642,7 +305572,9 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKSA002_03835_Q1_000_031") @@ -253651,22 +305583,27 @@ public static class AssemblyQuestLoader reference134 = obj94; obj93.Steps = list247; reference133 = obj93; - span72[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference135 = ref span72[3]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1032874u, new Vector3(13.168518f, -0.23751694f, 8.377136f), 915); + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032874u, new Vector3(13.168518f, -0.23751694f, 8.377136f), 915); obj95.Steps = list249; reference135 = obj95; - ref QuestSequence reference136 = ref span72[4]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 4 @@ -253674,24 +305611,30 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1032871u, new Vector3(22.323914f, 0.09971012f, -14.694458f), 915); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032871u, new Vector3(22.323914f, 0.09971012f, -14.694458f), 915); obj96.Steps = list250; reference136 = obj96; - ref QuestSequence reference137 = ref span72[5]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj97.Steps = list251; reference137 = obj97; - ref QuestSequence reference138 = ref span72[6]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -253699,7 +305642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { NextQuestId = new QuestId(3836) }; @@ -253712,21 +305657,26 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list253); + index = 0; + span[index] = "Censored"; questRoot37.Author = list253; - num = 5; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span73 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference139 = ref span73[0]; + index = 5; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + span2 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -253739,7 +305689,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list255; reference139 = obj99; - ref QuestSequence reference140 = ref span73[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -253747,7 +305698,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -253758,20 +305711,25 @@ public static class AssemblyQuestLoader }; obj100.Steps = list256; reference140 = obj100; - ref QuestSequence reference141 = ref span73[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list257)[0]; + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference142 = ref span3[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032901u, new Vector3(9.567322f, -6.0169958E-05f, -10.269409f), 915); - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = new DialogueChoice + index3 = 1; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + span7 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKSA003_03836_Q1_100_098") @@ -253780,11 +305738,13 @@ public static class AssemblyQuestLoader reference142 = questStep41; obj101.Steps = list257; reference141 = obj101; - span73[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference143 = ref span73[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -253792,7 +305752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032872u, new Vector3(16.67804f, 0.03006095f, -17.868408f), 915); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032872u, new Vector3(16.67804f, 0.03006095f, -17.868408f), 915); obj102.Steps = list259; reference143 = obj102; questRoot37.QuestSequence = list254; @@ -253802,24 +305764,30 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list260); + index = 0; + span[index] = "liza"; questRoot38.Author = list260; - num = 4; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span74 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference144 = ref span74[0]; + index = 4; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + span2 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032005u, new Vector3(206.22559f, -40f, 12.100342f), 886); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032005u, new Vector3(206.22559f, -40f, 12.100342f), 886); obj103.Steps = list262; reference144 = obj103; - ref QuestSequence reference145 = ref span74[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -253827,7 +305795,9 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1032782u, new Vector3(6.8512573f, 27.030483f, -93.7973f), 419) + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032782u, new Vector3(6.8512573f, 27.030483f, -93.7973f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -253838,21 +305808,25 @@ public static class AssemblyQuestLoader }; obj104.Steps = list263; reference145 = obj104; - ref QuestSequence reference146 = ref span74[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1032784u, new Vector3(477.0122f, 214.9805f, 751.3999f), 397) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032784u, new Vector3(477.0122f, 214.9805f, 751.3999f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj105.Steps = list264; reference146 = obj105; - ref QuestSequence reference147 = ref span74[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -253860,8 +305834,9 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span75 = CollectionsMarshal.AsSpan(list265); - span75[0] = new QuestStep(EInteractionType.None, null, null, 886) + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -253870,7 +305845,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) { AethernetShortcut = new AethernetShortcut { @@ -253888,25 +305864,33 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "liza"; questRoot39.Author = list266; - num = 1; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - ref QuestSequence reference148 = ref CollectionsMarshal.AsSpan(list267)[0]; + index = 1; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list268)[0]; + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + ref QuestStep reference149 = ref span3[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1032764u, new Vector3(-496.51334f, 7.681107f, 53.147095f), 621); num3 = 1; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new DialogueChoice + span7 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYB007_03842_Q1_000_000"), @@ -253923,13 +305907,16 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "Cacahuetes"; + span = CollectionsMarshal.AsSpan(list270); + index = 0; + span[index] = "Cacahuetes"; questRoot40.Author = list270; - num = 2; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span76 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference150 = ref span76[0]; + index = 2; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + span2 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -253937,18 +305924,23 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000858u, new Vector3(-168.47485f, 4.5500045f, 163.65295f), 129); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000858u, new Vector3(-168.47485f, 4.5500045f, 163.65295f), 129); obj108.Steps = list272; reference150 = obj108; - ref QuestSequence reference151 = ref span76[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005424u, new Vector3(-412.80237f, 4f, 75.05908f), 129) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005424u, new Vector3(-412.80237f, 4f, 75.05908f), 129) { AethernetShortcut = new AethernetShortcut { @@ -253969,13 +305961,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -253983,30 +305978,37 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span2[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span2[2] = new QuestStep(EInteractionType.Interact, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -254014,10 +306016,13 @@ public static class AssemblyQuestLoader num2 = 7; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-12.223117f, -2.0482793f, -145.75566f), 141); - span3[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); - ref QuestStep reference4 = ref span3[2]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-12.223117f, -2.0482793f, -145.75566f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); + index2++; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.PurchaseItem, 1001564u, new Vector3(-9.689575f, -2.0480804f, -145.09808f), 141) { ItemId = 2653u, @@ -254033,7 +306038,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = EExtendedClassJob.DoW; + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = EExtendedClassJob.DoW; obj4.RequiredCurrentJob = list6; obj4.PurchaseMenu = new PurchaseMenu { @@ -254041,16 +306048,19 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262357u) }; reference4 = obj4; - ref QuestStep reference5 = ref span3[3]; + index2++; + ref QuestStep reference5 = ref span3[index2]; QuestStep obj5 = new QuestStep(EInteractionType.PurchaseItem, 1001564u, new Vector3(-9.689575f, -2.0480804f, -145.09808f), 141) { ItemId = 2655u, ItemCount = 1 }; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = EExtendedClassJob.DoM; + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + span4 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span4[num3] = EExtendedClassJob.DoM; obj5.RequiredCurrentJob = list7; obj5.PurchaseMenu = new PurchaseMenu { @@ -254058,7 +306068,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262357u) }; reference5 = obj5; - span3[4] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -254072,7 +306083,8 @@ public static class AssemblyQuestLoader } } }; - span3[5] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -254086,7 +306098,8 @@ public static class AssemblyQuestLoader } } }; - span3[6] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -254096,24 +306109,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -254121,8 +306140,9 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 353u, new Vector3(112.41321f, 28.93967f, -37.277832f), 141) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -254130,40 +306150,49 @@ public static class AssemblyQuestLoader num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = 352u; - span6[1] = 353u; + Span span5 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span5[index3] = 352u; + index3++; + span5[index3] = 353u; obj8.KillEnemyDataIds = list12; reference8 = obj8; - ref QuestStep reference9 = ref span5[1]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(125.61467f, 29.092033f, -14.67918f), 141) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 355u; + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + span5 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span5[num3] = 355u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference10 = ref span4[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.78122f, 20.119337f, -115.27284f), 141); - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(127.7017f, -0.15994573f, -161.89238f), 141) + index2 = 3; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.78122f, 20.119337f, -115.27284f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(127.7017f, -0.15994573f, -161.89238f), 141) { DisableNavmesh = true }; - span7[2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list9; @@ -254173,13 +306202,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot3.Author = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span8[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -254187,18 +306219,23 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span8[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list18)[0]; + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + ref QuestStep reference13 = ref span3[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.08282f, -8.422037f, -47.295006f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -254206,7 +306243,9 @@ public static class AssemblyQuestLoader num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new ComplexCombatData + Span span6 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span6[index3] = new ComplexCombatData { DataId = 43u, MinimumKillCount = 3u @@ -254215,7 +306254,8 @@ public static class AssemblyQuestLoader reference13 = obj13; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -254223,7 +306263,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); obj14.Steps = list20; reference14 = obj14; questRoot3.QuestSequence = list16; @@ -254233,24 +306275,30 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "liza"; questRoot4.Author = list21; - num = 4; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span9 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span9[0]; + index = 4; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span9[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -254258,42 +306306,54 @@ public static class AssemblyQuestLoader num2 = 6; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span10 = CollectionsMarshal.AsSpan(list24); - span10[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(459.86548f, 17.983778f, -76.51779f), 148) + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(459.86548f, 17.983778f, -76.51779f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span10[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(486.40424f, 24.968294f, -88.684456f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(486.40424f, 24.968294f, -88.684456f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span10[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(485.05884f, 30.642492f, -59.45244f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(485.05884f, 30.642492f, -59.45244f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span10[3] = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) + index2++; + span3[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference17 = ref span10[4]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2000010u, new Vector3(480.88794f, 30.746826f, -49.729187f), 148); - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span7 = CollectionsMarshal.AsSpan(list25); + 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); questStep.CompletionQuestVariablesFlags = list25; reference17 = questStep; - ref QuestStep reference18 = ref span10[5]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -254301,34 +306361,46 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 142u; + span5 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span5[index3] = 142u; obj17.KillEnemyDataIds = list26; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = null; - span12[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + span7 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj17.CompletionQuestVariablesFlags = list27; reference18 = obj17; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference19 = ref span9[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); obj18.Steps = list28; reference19 = obj18; - ref QuestSequence reference20 = ref span9[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -254336,7 +306408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000408u, new Vector3(106.85889f, -8f, -75.669556f), 148); + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000408u, new Vector3(106.85889f, -8f, -75.669556f), 148); obj19.Steps = list29; reference20 = obj19; questRoot4.QuestSequence = list22; @@ -254346,51 +306420,52 @@ public static class AssemblyQuestLoader num = 2; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = "liza"; - span13[1] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "liza"; + index++; + span[index] = "JerryWester"; questRoot5.Author = list30; - num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span14 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference21 = ref span14[0]; + index = 3; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list32)[0]; - QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { - AetheryteShortcut = EAetheryteLocation.Gridania + AetheryteShortcut = EAetheryteLocation.Gridania, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } }; - SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - 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; - ref QuestSequence reference23 = ref span14[1]; - QuestSequence obj22 = new QuestSequence + num++; + ref QuestSequence reference22 = ref span2[num]; + QuestSequence obj21 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { Comment = "Use Chocobo whistle (if not yet unlocked)", ItemId = 6001u, @@ -254402,7 +306477,8 @@ public static class AssemblyQuestLoader } } }; - span16[1] = new QuestStep(EInteractionType.Interact, 1000257u, new Vector3(150.16394f, 10.852949f, -230.45703f), 133) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000257u, new Vector3(150.16394f, 10.852949f, -230.45703f), 133) { AethernetShortcut = new AethernetShortcut { @@ -254410,18 +306486,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - obj22.Steps = list34; - reference23 = obj22; - ref QuestSequence reference24 = ref span14[2]; - QuestSequence obj23 = new QuestSequence + obj21.Steps = list33; + reference22 = obj21; + num++; + ref QuestSequence reference23 = ref span2[num]; + QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span17 = CollectionsMarshal.AsSpan(list35); - span17[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, SkipConditions = new SkipConditions @@ -254432,7 +306510,8 @@ public static class AssemblyQuestLoader } } }; - span17[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { StopDistance = 5f, Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, @@ -254444,7 +306523,8 @@ public static class AssemblyQuestLoader } } }; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -254455,30 +306535,35 @@ public static class AssemblyQuestLoader } } }; - obj23.Steps = list35; - reference24 = obj23; + obj22.Steps = list34; + reference23 = obj22; questRoot5.QuestSequence = list31; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(3857); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; - questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span18 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span18[0]; - QuestSequence obj24 = new QuestSequence + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "JerryWester"; + questRoot6.Author = list35; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152) + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -254489,103 +306574,133 @@ public static class AssemblyQuestLoader } } }; - obj24.Steps = list38; - reference25 = obj24; - ref QuestSequence reference26 = ref span18[1]; - QuestSequence obj25 = new QuestSequence + obj23.Steps = list37; + reference24 = obj23; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span19 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference27 = ref span19[0]; - QuestStep obj26 = new QuestStep(EInteractionType.Emote, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; + QuestStep obj25 = new QuestStep(EInteractionType.Emote, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) { Emote = EEmote.Dance }; num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span20 = CollectionsMarshal.AsSpan(list40); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + span7 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj25.CompletionQuestVariablesFlags = list39; + reference26 = obj25; + num2++; + ref QuestStep reference27 = ref span3[num2]; + QuestStep obj26 = new QuestStep(EInteractionType.Emote, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) + { + Emote = EEmote.Dance + }; + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span7 = CollectionsMarshal.AsSpan(list40); + 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); obj26.CompletionQuestVariablesFlags = list40; reference27 = obj26; - ref QuestStep reference28 = ref span19[1]; - QuestStep obj27 = new QuestStep(EInteractionType.Emote, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) + num2++; + ref QuestStep reference28 = ref span3[num2]; + QuestStep obj27 = new QuestStep(EInteractionType.Emote, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { Emote = EEmote.Dance }; num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span21 = CollectionsMarshal.AsSpan(list41); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list41; reference28 = obj27; - 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 - }; - 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; - ref QuestSequence reference30 = ref span18[2]; - QuestSequence obj29 = new QuestSequence + obj24.Steps = list38; + reference25 = obj24; + num++; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152); - obj29.Steps = list43; - reference30 = obj29; - questRoot6.QuestSequence = list37; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152); + obj28.Steps = list42; + reference29 = obj28; + questRoot6.QuestSequence = list36; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(3858); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; - questRoot7.Author = list44; - num = 4; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span23 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference31 = ref span23[0]; - QuestSequence obj30 = new QuestSequence + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "JerryWester"; + questRoot7.Author = list43; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006675u, new Vector3(23.11737f, -3.7126513f, 209.76575f), 152) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006675u, new Vector3(23.11737f, -3.7126513f, 209.76575f), 152) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -254597,248 +306712,325 @@ public static class AssemblyQuestLoader } } }; - obj30.Steps = list46; - reference31 = obj30; - ref QuestSequence reference32 = ref span23[1]; - QuestSequence obj31 = new QuestSequence + obj29.Steps = list45; + reference30 = obj29; + num++; + ref QuestSequence reference31 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1000584u, new Vector3(44.785156f, -2.1720045f, 231.86072f), 152); - obj31.Steps = list47; - reference32 = obj31; - ref QuestSequence reference33 = ref span23[2]; - QuestSequence obj32 = new QuestSequence + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000584u, new Vector3(44.785156f, -2.1720045f, 231.86072f), 152); + obj30.Steps = list46; + reference31 = obj30; + num++; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span24 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference34 = ref span24[0]; - QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(-34.76502f, -8.079653f, 264.55304f), 152) + index2 = 5; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference33 = ref span3[num2]; + QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(-34.76502f, -8.079653f, 264.55304f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - ref ComplexCombatData reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; - ComplexCombatData obj34 = new ComplexCombatData + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + span6 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + ref ComplexCombatData reference34 = ref span6[num3]; + ComplexCombatData obj33 = new ComplexCombatData { DataId = 179u, MinimumKillCount = 1u }; int num4 = 6; - List list50 = new List(num4); - CollectionsMarshal.SetCount(list50, num4); - Span span25 = CollectionsMarshal.AsSpan(list50); - span25[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span25[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = null; - obj34.CompletionQuestVariablesFlags = list50; - reference35 = obj34; - obj33.ComplexCombatData = list49; - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span26 = CollectionsMarshal.AsSpan(list51); - span26[0] = null; - span26[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = null; - obj33.CompletionQuestVariablesFlags = list51; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span7 = CollectionsMarshal.AsSpan(list49); + int num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + obj33.CompletionQuestVariablesFlags = list49; reference34 = obj33; - ref QuestStep reference36 = ref span24[1]; + obj32.ComplexCombatData = list48; + num3 = 6; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + span7 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + obj32.CompletionQuestVariablesFlags = list50; + reference33 = obj32; + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2001915u, new Vector3(-42.435425f, -8.560364f, 281.26953f), 152); + index3 = 6; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + span7 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list51; + reference35 = questStep2; + num2++; + ref QuestStep reference36 = ref span3[num2]; + QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001914u, new Vector3(-32.6391f, -3.7995605f, 321.3092f), 152); num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span27 = CollectionsMarshal.AsSpan(list52); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list52; - reference36 = questStep2; - ref QuestStep reference37 = ref span24[2]; - QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001914u, new Vector3(-32.6391f, -3.7995605f, 321.3092f), 152); - num3 = 6; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span28 = CollectionsMarshal.AsSpan(list53); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list53; - reference37 = questStep3; - ref QuestStep reference38 = ref span24[3]; + span7 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list52; + reference36 = questStep3; + num2++; + ref QuestStep reference37 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001913u, new Vector3(29.3125f, 0.869751f, 359.24304f), 152); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span29 = CollectionsMarshal.AsSpan(list54); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list54; - reference38 = questStep4; - ref QuestStep reference39 = ref span24[4]; - QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(47.758923f, 7.4985247f, 428.1574f), 152) + index3 = 6; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + span7 = CollectionsMarshal.AsSpan(list53); + 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); + questStep4.CompletionQuestVariablesFlags = list53; + reference37 = questStep4; + num2++; + ref QuestStep reference38 = ref span3[num2]; + QuestStep obj34 = new QuestStep(EInteractionType.Combat, null, new Vector3(47.758923f, 7.4985247f, 428.1574f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - ref ComplexCombatData reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; - ComplexCombatData obj36 = new ComplexCombatData + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + span6 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + ref ComplexCombatData reference39 = ref span6[index3]; + ComplexCombatData obj35 = new ComplexCombatData { DataId = 7u, MinimumKillCount = 1u }; - num4 = 6; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span30 = CollectionsMarshal.AsSpan(list56); - span30[0] = null; - span30[1] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = null; - obj36.CompletionQuestVariablesFlags = list56; - reference40 = obj36; - obj35.ComplexCombatData = list55; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span31 = CollectionsMarshal.AsSpan(list57); - span31[0] = null; - span31[1] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; - obj35.CompletionQuestVariablesFlags = list57; + num5 = 6; + List list55 = new List(num5); + CollectionsMarshal.SetCount(list55, num5); + span7 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + obj35.CompletionQuestVariablesFlags = list55; reference39 = obj35; - obj32.Steps = list48; - reference33 = obj32; - ref QuestSequence reference41 = ref span23[3]; - QuestSequence obj37 = new QuestSequence + obj34.ComplexCombatData = list54; + index3 = 6; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span7 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + obj34.CompletionQuestVariablesFlags = list56; + reference38 = obj34; + obj31.Steps = list47; + reference32 = obj31; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); - obj37.Steps = list58; - reference41 = obj37; - questRoot7.QuestSequence = list45; + List list57 = new List(num2); + CollectionsMarshal.SetCount(list57, num2); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + obj36.Steps = list57; + reference40 = obj36; + questRoot7.QuestSequence = list44; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(3859); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "JerryWester"; - questRoot8.Author = list59; - num = 3; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span32 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference42 = ref span32[0]; - QuestSequence obj38 = new QuestSequence + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "JerryWester"; + questRoot8.Author = list58; + index = 3; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj37.Steps = list60; + reference41 = obj37; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj38 = new QuestSequence + { + Sequence = 1 + }; 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; - ref QuestSequence reference43 = ref span32[1]; - QuestSequence obj39 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.UseItem, 1002934u, new Vector3(-164.41602f, 8.398999f, -63.61493f), 153) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1002934u, new Vector3(-164.41602f, 8.398999f, -63.61493f), 153) { ItemId = 2003006u }; - obj39.Steps = list62; - reference43 = obj39; - ref QuestSequence reference44 = ref span32[2]; - QuestSequence obj40 = new QuestSequence + obj38.Steps = list61; + reference42 = obj38; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj40.Steps = list63; - reference44 = obj40; - questRoot8.QuestSequence = list60; + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj39.Steps = list62; + reference43 = obj39; + questRoot8.QuestSequence = list59; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(3860); QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; - questRoot9.Author = list64; - num = 6; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span33 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference45 = ref span33[0]; - QuestSequence obj41 = new QuestSequence + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + span = CollectionsMarshal.AsSpan(list63); + index = 0; + span[index] = "JerryWester"; + questRoot9.Author = list63; + index = 6; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + span2 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj41.Steps = list66; - reference45 = obj41; - ref QuestSequence reference46 = ref span33[1]; - QuestSequence obj42 = new QuestSequence + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj40.Steps = list65; + reference44 = obj40; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span34 = CollectionsMarshal.AsSpan(list67); - span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) + index2 = 2; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) { Aetheryte = EAetheryteLocation.SouthShroudQuarrymill }; - span34[1] = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -254847,28 +307039,34 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - obj42.Steps = list67; - reference46 = obj42; - ref QuestSequence reference47 = ref span33[2]; - QuestSequence obj43 = new QuestSequence + obj41.Steps = list66; + reference45 = obj41; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - obj43.Steps = list68; - reference47 = obj43; - ref QuestSequence reference48 = ref span33[3]; - QuestSequence obj44 = new QuestSequence + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); + obj42.Steps = list67; + reference46 = obj42; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1007721u, new Vector3(-191.36346f, 0.9999907f, 212.9701f), 129) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007721u, new Vector3(-191.36346f, 0.9999907f, 212.9701f), 129) { AethernetShortcut = new AethernetShortcut { @@ -254876,18 +307074,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - obj44.Steps = list69; - reference48 = obj44; - ref QuestSequence reference49 = ref span33[4]; - QuestSequence obj45 = new QuestSequence + obj43.Steps = list68; + reference47 = obj43; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 4 }; num2 = 4; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span35 = CollectionsMarshal.AsSpan(list70); - span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -254912,7 +307112,8 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -254937,7 +307138,8 @@ public static class AssemblyQuestLoader } } }; - span35[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaSwiftperch, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -254953,130 +307155,146 @@ public static class AssemblyQuestLoader } } }; - span35[3] = new QuestStep(EInteractionType.Interact, 1003393u, new Vector3(305.47034f, -36.325005f, 351.76624f), 138) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003393u, new Vector3(305.47034f, -36.325005f, 351.76624f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - obj45.Steps = list70; - reference49 = obj45; - ref QuestSequence reference50 = ref span33[5]; - QuestSequence obj46 = new QuestSequence + obj44.Steps = list69; + reference48 = obj44; + num++; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span36 = CollectionsMarshal.AsSpan(list71); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) { TargetTerritoryId = (ushort)139 }; - span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); - obj46.Steps = list71; - reference50 = obj46; - questRoot9.QuestSequence = list65; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + obj45.Steps = list70; + reference49 = obj45; + questRoot9.QuestSequence = list64; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(3861); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; - questRoot10.Author = list72; - num = 3; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span37 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference51 = ref span37[0]; - QuestSequence obj47 = new QuestSequence + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "JerryWester"; + questRoot10.Author = list71; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference50 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); - obj47.Steps = list74; - reference51 = obj47; - ref QuestSequence reference52 = ref span37[1]; - QuestSequence obj48 = new QuestSequence + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + obj46.Steps = list73; + reference50 = obj46; + num++; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span38 = CollectionsMarshal.AsSpan(list75); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-422.68066f, -2.5542965f, 150.50304f), 139) { - Mount = true + DisableNavmesh = true, + Mount = true, + Comment = "Avoids swimming" }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) - { - Mount = true - }; - ref QuestStep reference53 = ref span38[2]; - QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-585.1562f, -1.1847447f, -2.186262f), 139) + num2++; + ref QuestStep reference52 = ref span3[num2]; + QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-585.1562f, -1.1847447f, -2.186262f), 139) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span6 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span6[index3] = new ComplexCombatData { DataId = 28u, MinimumKillCount = 3u, RewardItemId = 2003009u, RewardItemCount = 3 }; - obj49.ComplexCombatData = list76; - reference53 = obj49; - obj48.Steps = list75; + obj48.ComplexCombatData = list75; reference52 = obj48; - ref QuestSequence reference54 = ref span37[2]; - QuestSequence obj50 = new QuestSequence + obj47.Steps = list74; + reference51 = obj47; + num++; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span39 = CollectionsMarshal.AsSpan(list77); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) + num2 = 2; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-422.68066f, -2.5542965f, 150.50304f), 139) { - Mount = true + Comment = "Avoids swimming" }; - span39[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) - { - Mount = true - }; - span39[2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); - obj50.Steps = list77; - reference54 = obj50; - questRoot10.QuestSequence = list73; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + obj49.Steps = list76; + reference53 = obj49; + questRoot10.QuestSequence = list72; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(3862); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "JerryWester"; - questRoot11.Author = list78; - num = 6; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span40 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference55 = ref span40[0]; - QuestSequence obj51 = new QuestSequence + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "JerryWester"; + questRoot11.Author = list77; + index = 6; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -255087,134 +307305,164 @@ public static class AssemblyQuestLoader } } }; - obj51.Steps = list80; - reference55 = obj51; - ref QuestSequence reference56 = ref span40[1]; - QuestSequence obj52 = new QuestSequence + obj50.Steps = list79; + reference54 = obj50; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1006199u, new Vector3(-141.71057f, 6.568114f, -23.178528f), 153); - obj52.Steps = list81; - reference56 = obj52; - ref QuestSequence reference57 = ref span40[2]; - QuestSequence obj53 = new QuestSequence + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006199u, new Vector3(-141.71057f, 6.568114f, -23.178528f), 153); + obj51.Steps = list80; + reference55 = obj51; + num++; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 2 }; - 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) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; + QuestStep obj53 = new QuestStep(EInteractionType.Combat, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = 62u; - obj54.KillEnemyDataIds = list83; - reference58 = obj54; - obj53.Steps = list82; + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span5 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span5[num3] = 62u; + obj53.KillEnemyDataIds = list82; reference57 = obj53; - ref QuestSequence reference59 = ref span40[3]; - QuestSequence obj55 = new QuestSequence + obj52.Steps = list81; + reference56 = obj52; + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153); - obj55.Steps = list84; - reference59 = obj55; - ref QuestSequence reference60 = ref span40[4]; - QuestSequence obj56 = new QuestSequence + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153); + obj54.Steps = list83; + reference58 = obj54; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1006203u, new Vector3(32.700073f, 10.692124f, -12.985474f), 153); - SinglePlayerDutyOptions obj57 = new SinglePlayerDutyOptions + SinglePlayerDutyOptions obj56 = new SinglePlayerDutyOptions { Enabled = true }; num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = "AI will kill initial adds before the boss, but not switch target whenever new enemies spawn; all NPCs need to be killed for the duty to complete"; - obj57.Notes = list86; - questStep5.SinglePlayerDutyOptions = obj57; - reference61 = questStep5; - obj56.Steps = list85; - reference60 = obj56; - ref QuestSequence reference62 = ref span40[5]; - QuestSequence obj58 = new QuestSequence + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + span = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span[index3] = "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"; + obj56.Notes = list85; + questStep5.SinglePlayerDutyOptions = obj56; + reference60 = questStep5; + obj55.Steps = list84; + reference59 = obj55; + num++; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj58.Steps = list87; - reference62 = obj58; - questRoot11.QuestSequence = list79; + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj57.Steps = list86; + reference61 = obj57; + questRoot11.QuestSequence = list78; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(3863); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; - questRoot12.Author = list88; - num = 4; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span41 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference63 = ref span41[0]; - QuestSequence obj59 = new QuestSequence + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "JerryWester"; + questRoot12.Author = list87; + index = 4; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj59.Steps = list90; - reference63 = obj59; - ref QuestSequence reference64 = ref span41[1]; - QuestSequence obj60 = new QuestSequence + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj58.Steps = list89; + reference62 = obj58; + num++; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span42 = CollectionsMarshal.AsSpan(list91); - span42[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span42[1] = new QuestStep(EInteractionType.Interact, 1007417u, new Vector3(1.2359009f, -3.0000014f, -57.66388f), 212); - obj60.Steps = list91; - reference64 = obj60; - ref QuestSequence reference65 = ref span41[2]; - QuestSequence obj61 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007417u, new Vector3(1.2359009f, -3.0000014f, -57.66388f), 212); + obj59.Steps = list90; + reference63 = obj59; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -255223,117 +307471,139 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - obj61.Steps = list92; - reference65 = obj61; - ref QuestSequence reference66 = ref span41[3]; - QuestSequence obj62 = new QuestSequence + obj60.Steps = list91; + reference64 = obj60; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { Emote = EEmote.Soothe }; - obj62.Steps = list93; - reference66 = obj62; - questRoot12.QuestSequence = list89; + obj61.Steps = list92; + reference65 = obj61; + questRoot12.QuestSequence = list88; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(3864); QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "JerryWester"; - questRoot13.Author = list94; - num = 3; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span43 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference67 = ref span43[0]; - QuestSequence obj63 = new QuestSequence + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + span = CollectionsMarshal.AsSpan(list93); + index = 0; + span[index] = "JerryWester"; + questRoot13.Author = list93; + index = 3; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + span2 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { StopDistance = 5f }; - obj63.Steps = list96; - reference67 = obj63; - ref QuestSequence reference68 = ref span43[1]; - QuestSequence obj64 = new QuestSequence + obj62.Steps = list95; + reference66 = obj62; + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span44 = CollectionsMarshal.AsSpan(list97); - span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 154) + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 154) { StopDistance = 5f, Aetheryte = EAetheryteLocation.NorthShroudFallgourdFloat }; - span44[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.10292f, -56.837837f, 295.99493f), 154); - ref QuestStep reference69 = ref span44[2]; - QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.81464f, -56.335888f, 302.93182f), 154) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.10292f, -56.837837f, 295.99493f), 154); + index2++; + ref QuestStep reference68 = ref span3[index2]; + QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.81464f, -56.335888f, 302.93182f), 154) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new ComplexCombatData + index3 = 1; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + span6 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 179u, MinimumKillCount = 3u }; - obj65.ComplexCombatData = list98; - reference69 = obj65; - obj64.Steps = list97; + obj64.ComplexCombatData = list97; reference68 = obj64; - ref QuestSequence reference70 = ref span43[2]; - QuestSequence obj66 = new QuestSequence + obj63.Steps = list96; + reference67 = obj63; + num++; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - obj66.Steps = list99; - reference70 = obj66; - questRoot13.QuestSequence = list95; + obj65.Steps = list98; + reference69 = obj65; + questRoot13.QuestSequence = list94; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(3865); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; - questRoot14.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span45 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference71 = ref span45[0]; - QuestSequence obj67 = new QuestSequence + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "JerryWester"; + questRoot14.Author = list99; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -255344,101 +307614,123 @@ public static class AssemblyQuestLoader } } }; - obj67.Steps = list102; - reference71 = obj67; - ref QuestSequence reference72 = ref span45[1]; - QuestSequence obj68 = new QuestSequence + obj66.Steps = list101; + reference70 = obj66; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; + QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2002646u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = 1888u; - obj69.KillEnemyDataIds = list104; - reference73 = obj69; - obj68.Steps = list103; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span5 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span5[index3] = 1888u; + obj68.KillEnemyDataIds = list103; reference72 = obj68; - ref QuestSequence reference74 = ref span45[2]; - QuestSequence obj70 = new QuestSequence + obj67.Steps = list102; + reference71 = obj67; + num++; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2002574u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153); - obj70.Steps = list105; - reference74 = obj70; - ref QuestSequence reference75 = ref span45[3]; - QuestSequence obj71 = new QuestSequence + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002574u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153); + obj69.Steps = list104; + reference73 = obj69; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153); - obj71.Steps = list106; - reference75 = obj71; - ref QuestSequence reference76 = ref span45[4]; - QuestSequence obj72 = new QuestSequence + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153); + obj70.Steps = list105; + reference74 = obj70; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 5; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span46 = CollectionsMarshal.AsSpan(list107); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) { DisableNavmesh = true }; - span46[2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) { TargetTerritoryId = (ushort)146 }; - span46[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanForgottenSprings }; - span46[4] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); - obj72.Steps = list107; - reference76 = obj72; - questRoot14.QuestSequence = list101; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + obj71.Steps = list106; + reference75 = obj71; + questRoot14.QuestSequence = list100; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(3866); QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "JerryWester"; - questRoot15.Author = list108; - num = 2; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span47 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference77 = ref span47[0]; - QuestSequence obj73 = new QuestSequence + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "JerryWester"; + questRoot15.Author = list107; + index = 2; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -255449,44 +307741,52 @@ public static class AssemblyQuestLoader } } }; - obj73.Steps = list110; - reference77 = obj73; - ref QuestSequence reference78 = ref span47[1]; - QuestSequence obj74 = new QuestSequence + obj72.Steps = list109; + reference76 = obj72; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - obj74.Steps = list111; - reference78 = obj74; - questRoot15.QuestSequence = list109; + obj73.Steps = list110; + reference77 = obj73; + questRoot15.QuestSequence = list108; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(3867); QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "JerryWester"; - questRoot16.Author = list112; - num = 4; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span48 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference79 = ref span48[0]; - QuestSequence obj75 = new QuestSequence + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "JerryWester"; + questRoot16.Author = list111; + index = 4; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -255498,144 +307798,175 @@ public static class AssemblyQuestLoader } } }; - obj75.Steps = list114; - reference79 = obj75; - ref QuestSequence reference80 = ref span48[1]; - QuestSequence obj76 = new QuestSequence + obj74.Steps = list113; + reference78 = obj74; + num++; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1033920u, new Vector3(-387.35028f, -56.033897f, 105.241455f), 145); - obj76.Steps = list115; - reference80 = obj76; - ref QuestSequence reference81 = ref span48[2]; - QuestSequence obj77 = new QuestSequence + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033920u, new Vector3(-387.35028f, -56.033897f, 105.241455f), 145); + obj75.Steps = list114; + reference79 = obj75; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 2 }; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); + obj76.Steps = list115; + reference80 = obj76; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj77 = new QuestSequence + { + Sequence = byte.MaxValue + }; 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); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145); obj77.Steps = list116; reference81 = obj77; - ref QuestSequence reference82 = ref span48[3]; - QuestSequence obj78 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145); - obj78.Steps = list117; - reference82 = obj78; - questRoot16.QuestSequence = list113; + questRoot16.QuestSequence = list112; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(3868); QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "JerryWester"; - questRoot17.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span49 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference83 = ref span49[0]; - QuestSequence obj79 = new QuestSequence + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "JerryWester"; + questRoot17.Author = list117; + index = 5; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + { + AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj78.Steps = list119; + reference82 = obj78; + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj79 = new QuestSequence + { + Sequence = 1 + }; 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 - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006434u, new Vector3(237.14038f, 302f, -194.99512f), 155); obj79.Steps = list120; reference83 = obj79; - ref QuestSequence reference84 = ref span49[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1006434u, new Vector3(237.14038f, 302f, -194.99512f), 155); - obj80.Steps = list121; - reference84 = obj80; - ref QuestSequence reference85 = ref span49[2]; - QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj81.Steps = list122; - reference85 = obj81; - ref QuestSequence reference86 = ref span49[3]; - QuestSequence obj82 = new QuestSequence + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + obj80.Steps = list121; + reference84 = obj80; + num++; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); - obj82.Steps = list123; - reference86 = obj82; - ref QuestSequence reference87 = ref span49[4]; - QuestSequence obj83 = new QuestSequence + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); + obj81.Steps = list122; + reference85 = obj81; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj83.Steps = list124; - reference87 = obj83; - questRoot17.QuestSequence = list119; + obj82.Steps = list123; + reference86 = obj82; + questRoot17.QuestSequence = list118; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(3869); QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "JerryWester"; - questRoot18.Author = list125; - num = 3; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span50 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference88 = ref span50[0]; - QuestSequence obj84 = new QuestSequence + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "JerryWester"; + questRoot18.Author = list124; + index = 3; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -255646,70 +307977,83 @@ public static class AssemblyQuestLoader } } }; - obj84.Steps = list127; - reference88 = obj84; - ref QuestSequence reference89 = ref span50[1]; - QuestSequence obj85 = new QuestSequence + obj83.Steps = list126; + reference87 = obj83; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span51 = CollectionsMarshal.AsSpan(list128); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.4813f, 205.20322f, -185.17868f), 155); - ref QuestStep reference90 = ref span51[1]; - QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.0041f, 255.60681f, -159.89929f), 155) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.4813f, 205.20322f, -185.17868f), 155); + num2++; + ref QuestStep reference89 = ref span3[num2]; + QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.0041f, 255.60681f, -159.89929f), 155) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new ComplexCombatData + index3 = 1; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span6 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 132u, MinimumKillCount = 3u, RewardItemId = 2003018u, RewardItemCount = 3 }; - obj86.ComplexCombatData = list129; - reference90 = obj86; - obj85.Steps = list128; + obj85.ComplexCombatData = list128; reference89 = obj85; - ref QuestSequence reference91 = ref span50[2]; - QuestSequence obj87 = new QuestSequence + obj84.Steps = list127; + reference88 = obj84; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155); - obj87.Steps = list130; - reference91 = obj87; - questRoot18.QuestSequence = list126; + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155); + obj86.Steps = list129; + reference90 = obj86; + questRoot18.QuestSequence = list125; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(3870); QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; - questRoot19.Author = list131; - num = 4; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span52 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference92 = ref span52[0]; - QuestSequence obj88 = new QuestSequence + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "JerryWester"; + questRoot19.Author = list130; + index = 4; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -255720,17 +308064,20 @@ public static class AssemblyQuestLoader } } }; - obj88.Steps = list133; - reference92 = obj88; - ref QuestSequence reference93 = ref span52[1]; - QuestSequence obj89 = new QuestSequence + obj87.Steps = list132; + reference91 = obj87; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -255739,18 +308086,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj89.Steps = list134; - reference93 = obj89; - ref QuestSequence reference94 = ref span52[2]; - QuestSequence obj90 = new QuestSequence + obj88.Steps = list133; + reference92 = obj88; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - 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) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; + QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2002195u, new Vector3(-528.0995f, 26.260742f, -239.61243f), 148) { StopDistance = 4f, IgnoreDistanceToObject = true, @@ -255763,24 +308113,29 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = 1894u; - obj91.KillEnemyDataIds = list136; - reference95 = obj91; - obj90.Steps = list135; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + span5 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span5[index3] = 1894u; + obj90.KillEnemyDataIds = list135; reference94 = obj90; - ref QuestSequence reference96 = ref span52[3]; - QuestSequence obj92 = new QuestSequence + obj89.Steps = list134; + reference93 = obj89; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span53 = CollectionsMarshal.AsSpan(list137); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.66458f, 62.69038f, -234.5404f), 148); - span53[1] = new QuestStep(EInteractionType.CompleteQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.66458f, 62.69038f, -234.5404f), 148); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -255789,147 +308144,174 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj92.Steps = list137; - reference96 = obj92; - questRoot19.QuestSequence = list132; + obj91.Steps = list136; + reference95 = obj91; + questRoot19.QuestSequence = list131; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(3871); QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; - questRoot20.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span54 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference97 = ref span54[0]; - QuestSequence obj93 = new QuestSequence + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "JerryWester"; + questRoot20.Author = list137; + index = 5; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156) { StopDistance = 5f, IgnoreDistanceToObject = true }; - obj93.Steps = list140; - reference97 = obj93; - ref QuestSequence reference98 = ref span54[1]; - QuestSequence obj94 = new QuestSequence + obj92.Steps = list139; + reference96 = obj92; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list141)[0]; - QuestStep obj95 = new QuestStep(EInteractionType.Combat, null, new Vector3(-429.60284f, -15.201682f, -477.29346f), 156) + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; + QuestStep obj94 = new QuestStep(EInteractionType.Combat, null, new Vector3(-429.60284f, -15.201682f, -477.29346f), 156) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 5; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span55 = CollectionsMarshal.AsSpan(list142); - span55[0] = new ComplexCombatData + index3 = 5; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + span6 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span6[num3] = new ComplexCombatData { DataId = 55u, MinimumKillCount = 3u, RewardItemId = 2003022u, RewardItemCount = 3 }; - span55[1] = new ComplexCombatData + num3++; + span6[num3] = new ComplexCombatData { DataId = 61u, MinimumKillCount = 3u, RewardItemId = 2003022u, RewardItemCount = 3 }; - span55[2] = new ComplexCombatData + num3++; + span6[num3] = new ComplexCombatData { DataId = 62u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - span55[3] = new ComplexCombatData + num3++; + span6[num3] = new ComplexCombatData { DataId = 63u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - span55[4] = new ComplexCombatData + num3++; + span6[num3] = new ComplexCombatData { DataId = 64u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - obj95.ComplexCombatData = list142; - reference99 = obj95; - obj94.Steps = list141; + obj94.ComplexCombatData = list141; reference98 = obj94; - ref QuestSequence reference100 = ref span54[2]; - QuestSequence obj96 = new QuestSequence + obj93.Steps = list140; + reference97 = obj93; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); - obj96.Steps = list143; - reference100 = obj96; - ref QuestSequence reference101 = ref span54[3]; - QuestSequence obj97 = new QuestSequence + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); + obj95.Steps = list142; + reference99 = obj95; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156); - obj97.Steps = list144; - reference101 = obj97; - ref QuestSequence reference102 = ref span54[4]; - QuestSequence obj98 = new QuestSequence + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156); + obj96.Steps = list143; + reference100 = obj96; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); - obj98.Steps = list145; - reference102 = obj98; - questRoot20.QuestSequence = list139; + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); + obj97.Steps = list144; + reference101 = obj97; + questRoot20.QuestSequence = list138; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(3872); QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "JerryWester"; - questRoot21.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span56 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference103 = ref span56[0]; - QuestSequence obj99 = new QuestSequence + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "JerryWester"; + questRoot21.Author = list145; + index = 4; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147) + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog, SkipConditions = new SkipConditions @@ -255940,123 +308322,156 @@ public static class AssemblyQuestLoader } } }; - obj99.Steps = list148; - reference103 = obj99; - ref QuestSequence reference104 = ref span56[1]; - QuestSequence obj100 = new QuestSequence + obj98.Steps = list147; + reference102 = obj98; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span57 = CollectionsMarshal.AsSpan(list149); - span57[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - span57[1] = new QuestStep(EInteractionType.Interact, 1006647u, new Vector3(-28.244446f, 46.96473f, -17.654724f), 147); - obj100.Steps = list149; - reference104 = obj100; - ref QuestSequence reference105 = ref span56[2]; - QuestSequence obj101 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006647u, new Vector3(-28.244446f, 46.96473f, -17.654724f), 147); + obj99.Steps = list148; + reference103 = obj99; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - 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) + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; + QuestStep obj101 = new QuestStep(EInteractionType.Emote, 1006648u, new Vector3(-76.12726f, 49.98848f, -59.494934f), 147) { Emote = EEmote.Psych }; num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span59 = CollectionsMarshal.AsSpan(list151); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + span7 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj101.CompletionQuestVariablesFlags = list150; + reference105 = obj101; + index2++; + ref QuestStep reference106 = ref span3[index2]; + QuestStep obj102 = new QuestStep(EInteractionType.Emote, 1006650u, new Vector3(-85.19116f, 48f, -34.40918f), 147) + { + Emote = EEmote.Psych + }; + index3 = 6; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + span7 = CollectionsMarshal.AsSpan(list151); + 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); obj102.CompletionQuestVariablesFlags = list151; reference106 = obj102; - ref QuestStep reference107 = ref span58[1]; - QuestStep obj103 = new QuestStep(EInteractionType.Emote, 1006650u, new Vector3(-85.19116f, 48f, -34.40918f), 147) + index2++; + ref QuestStep reference107 = ref span3[index2]; + QuestStep obj103 = new QuestStep(EInteractionType.Emote, 1006649u, new Vector3(-34.53119f, 46.999996f, 32.73047f), 147) { Emote = EEmote.Psych }; num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span60 = CollectionsMarshal.AsSpan(list152); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list152; reference107 = obj103; - 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 - }; - 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; - ref QuestSequence reference109 = ref span56[3]; - QuestSequence obj105 = new QuestSequence + obj100.Steps = list149; + reference104 = obj100; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 7f, Emote = EEmote.Psych }; - obj105.Steps = list154; - reference109 = obj105; - questRoot21.QuestSequence = list147; + obj104.Steps = list153; + reference108 = obj104; + questRoot21.QuestSequence = list146; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(3873); QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "JerryWester"; - questRoot22.Author = list155; - num = 4; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span62 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference110 = ref span62[0]; - QuestSequence obj106 = new QuestSequence + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "JerryWester"; + questRoot22.Author = list154; + index = 4; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference109 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -256068,39 +308483,44 @@ public static class AssemblyQuestLoader } } }; + obj105.Steps = list156; + reference109 = obj105; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj106 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) + { + AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; obj106.Steps = list157; reference110 = obj106; - ref QuestSequence reference111 = ref span62[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj107 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) - { - AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj107.Steps = list158; - reference111 = obj107; - ref QuestSequence reference112 = ref span62[2]; - QuestSequence obj108 = new QuestSequence { Sequence = 2 }; num2 = 12; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span63 = CollectionsMarshal.AsSpan(list159); - span63[0] = new QuestStep(EInteractionType.UseItem, null, null, 147) + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 31337u, SkipConditions = new SkipConditions @@ -256114,7 +308534,8 @@ public static class AssemblyQuestLoader } } }; - span63[1] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20642u, SkipConditions = new SkipConditions @@ -256128,7 +308549,8 @@ public static class AssemblyQuestLoader } } }; - span63[2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20643u, SkipConditions = new SkipConditions @@ -256142,7 +308564,8 @@ public static class AssemblyQuestLoader } } }; - span63[3] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20644u, SkipConditions = new SkipConditions @@ -256156,7 +308579,8 @@ public static class AssemblyQuestLoader } } }; - span63[4] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20645u, SkipConditions = new SkipConditions @@ -256170,7 +308594,8 @@ public static class AssemblyQuestLoader } } }; - span63[5] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20646u, SkipConditions = new SkipConditions @@ -256184,7 +308609,8 @@ public static class AssemblyQuestLoader } } }; - span63[6] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20647u, SkipConditions = new SkipConditions @@ -256198,7 +308624,8 @@ public static class AssemblyQuestLoader } } }; - span63[7] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20648u, SkipConditions = new SkipConditions @@ -256212,7 +308639,8 @@ public static class AssemblyQuestLoader } } }; - span63[8] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20649u, SkipConditions = new SkipConditions @@ -256226,7 +308654,8 @@ public static class AssemblyQuestLoader } } }; - span63[9] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20650u, SkipConditions = new SkipConditions @@ -256240,7 +308669,8 @@ public static class AssemblyQuestLoader } } }; - span63[10] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20651u, SkipConditions = new SkipConditions @@ -256254,7 +308684,8 @@ public static class AssemblyQuestLoader } } }; - span63[11] = new QuestStep(EInteractionType.Duty, null, null, 147) + index2++; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 147) { DutyOptions = new DutyOptions { @@ -256262,196 +308693,235 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 15u } }; - obj108.Steps = list159; - reference112 = obj108; - ref QuestSequence reference113 = ref span62[3]; - QuestSequence obj109 = new QuestSequence + obj107.Steps = list158; + reference111 = obj107; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) { StopDistance = 7f }; - obj109.Steps = list160; - reference113 = obj109; - questRoot22.QuestSequence = list156; + obj108.Steps = list159; + reference112 = obj108; + questRoot22.QuestSequence = list155; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(3874); QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "JerryWester"; - questRoot23.Author = list161; - num = 8; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span64 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference114 = ref span64[0]; - QuestSequence obj110 = new QuestSequence + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "JerryWester"; + questRoot23.Author = list160; + index = 8; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj110.Steps = list163; - reference114 = obj110; - ref QuestSequence reference115 = ref span64[1]; - QuestSequence obj111 = new QuestSequence + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj109.Steps = list162; + reference113 = obj109; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span65 = CollectionsMarshal.AsSpan(list164); - span65[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) + index2 = 2; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) { TargetTerritoryId = (ushort)212 }; - span65[1] = new QuestStep(EInteractionType.Interact, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); - obj111.Steps = list164; - reference115 = obj111; - ref QuestSequence reference116 = ref span64[2]; - QuestSequence obj112 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); + obj110.Steps = list163; + reference114 = obj110; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span66 = CollectionsMarshal.AsSpan(list165); - span66[0] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212) { PickUpQuestId = new QuestId(1048) }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(618.9289f, 23.936241f, 458.50406f), 137) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(618.9289f, 23.936241f, 458.50406f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span66[2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); - obj112.Steps = list165; - reference116 = obj112; - ref QuestSequence reference117 = ref span64[3]; - QuestSequence obj113 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); + obj111.Steps = list164; + reference115 = obj111; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span67 = CollectionsMarshal.AsSpan(list166); - span67[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137) + index2 = 4; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.752865f, 72.71639f, -22.499773f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.752865f, 72.71639f, -22.499773f), 137) { Mount = true }; - span67[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.34223f, 86.050835f, -4.656612f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.34223f, 86.050835f, -4.656612f), 137) { Fly = true }; - span67[3] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); - obj113.Steps = list166; - reference117 = obj113; - ref QuestSequence reference118 = ref span64[4]; - QuestSequence obj114 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); + obj112.Steps = list165; + reference116 = obj112; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span68 = CollectionsMarshal.AsSpan(list167); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.1786175f, 71.18964f, -17.323349f), 137) + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.1786175f, 71.18964f, -17.323349f), 137) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); - obj114.Steps = list167; - reference118 = obj114; - ref QuestSequence reference119 = ref span64[5]; - QuestSequence obj115 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + obj113.Steps = list166; + reference117 = obj113; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span69 = CollectionsMarshal.AsSpan(list168); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.898853f, 52.634007f, 489.2221f), 137) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.898853f, 52.634007f, 489.2221f), 137) { Fly = true }; - ref QuestStep reference120 = ref span69[1]; - QuestStep obj116 = new QuestStep(EInteractionType.Combat, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137) + num2++; + ref QuestStep reference119 = ref span3[num2]; + QuestStep obj115 = new QuestStep(EInteractionType.Combat, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = 320u; - obj116.KillEnemyDataIds = list169; - reference120 = obj116; - obj115.Steps = list168; + index3 = 1; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + span5 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span5[num3] = 320u; + obj115.KillEnemyDataIds = list168; reference119 = obj115; - ref QuestSequence reference121 = ref span64[6]; - QuestSequence obj117 = new QuestSequence + obj114.Steps = list167; + reference118 = obj114; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137); - obj117.Steps = list170; - reference121 = obj117; - ref QuestSequence reference122 = ref span64[7]; - QuestSequence obj118 = new QuestSequence + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137); + obj116.Steps = list169; + reference120 = obj116; + num++; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007752u, new Vector3(-35.111023f, 70.34483f, 4.043579f), 137) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007752u, new Vector3(-35.111023f, 70.34483f, 4.043579f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - obj118.Steps = list171; - reference122 = obj118; - questRoot23.QuestSequence = list162; + obj117.Steps = list170; + reference121 = obj117; + questRoot23.QuestSequence = list161; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(3875); QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "JerryWester"; - questRoot24.Author = list172; - num = 2; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span70 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference123 = ref span70[0]; - QuestSequence obj119 = new QuestSequence + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "JerryWester"; + questRoot24.Author = list171; + index = 2; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007739u, new Vector3(-34.53119f, 70.347595f, 2.7618408f), 137) + List list173 = new List(num2); + CollectionsMarshal.SetCount(list173, num2); + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007739u, new Vector3(-34.53119f, 70.347595f, 2.7618408f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -256462,95 +308932,114 @@ public static class AssemblyQuestLoader } } }; - obj119.Steps = list174; - reference123 = obj119; - ref QuestSequence reference124 = ref span70[1]; - QuestSequence obj120 = new QuestSequence + obj118.Steps = list173; + reference122 = obj118; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span71 = CollectionsMarshal.AsSpan(list175); - span71[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj120.Steps = list175; - reference124 = obj120; - questRoot24.QuestSequence = list173; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj119.Steps = list174; + reference123 = obj119; + questRoot24.QuestSequence = list172; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(3876); QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; - questRoot25.Author = list176; - num = 3; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span72 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference125 = ref span72[0]; - QuestSequence obj121 = new QuestSequence + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "JerryWester"; + questRoot25.Author = list175; + index = 3; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj121.Steps = list178; - reference125 = obj121; - ref QuestSequence reference126 = ref span72[1]; - QuestSequence obj122 = new QuestSequence + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj120.Steps = list177; + reference124 = obj120; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj122.Steps = list179; - reference126 = obj122; - ref QuestSequence reference127 = ref span72[2]; - QuestSequence obj123 = new QuestSequence + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj121.Steps = list178; + reference125 = obj121; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj123.Steps = list180; - reference127 = obj123; - questRoot25.QuestSequence = list177; + obj122.Steps = list179; + reference126 = obj122; + questRoot25.QuestSequence = list176; AddQuest(questId25, questRoot25); QuestId questId26 = new QuestId(3877); QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "JerryWester"; - questRoot26.Author = list181; - num = 4; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span73 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference128 = ref span73[0]; - QuestSequence obj124 = new QuestSequence + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + span = CollectionsMarshal.AsSpan(list180); + index = 0; + span[index] = "JerryWester"; + questRoot26.Author = list180; + index = 4; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + span2 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -256561,226 +309050,273 @@ public static class AssemblyQuestLoader } } }; - obj124.Steps = list183; - reference128 = obj124; - ref QuestSequence reference129 = ref span73[1]; - QuestSequence obj125 = new QuestSequence + obj123.Steps = list182; + reference127 = obj123; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span74 = CollectionsMarshal.AsSpan(list184); - span74[0] = new QuestStep(EInteractionType.UseItem, null, null, 156) + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, null, 156) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span74[1] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); - obj125.Steps = list184; - reference129 = obj125; - ref QuestSequence reference130 = ref span73[2]; - QuestSequence obj126 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + obj124.Steps = list183; + reference128 = obj124; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span75 = CollectionsMarshal.AsSpan(list185); - span75[0] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + index2 = 3; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span75[1] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span75[2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj126.Steps = list185; - reference130 = obj126; - ref QuestSequence reference131 = ref span73[3]; - QuestSequence obj127 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj125.Steps = list184; + reference129 = obj125; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj127.Steps = list186; - reference131 = obj127; - questRoot26.QuestSequence = list182; + obj126.Steps = list185; + reference130 = obj126; + questRoot26.QuestSequence = list181; AddQuest(questId26, questRoot26); QuestId questId27 = new QuestId(3878); QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "JerryWester"; - questRoot27.Author = list187; - num = 4; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span76 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference132 = ref span76[0]; - QuestSequence obj128 = new QuestSequence + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "JerryWester"; + questRoot27.Author = list186; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj128.Steps = list189; - reference132 = obj128; - ref QuestSequence reference133 = ref span76[1]; - QuestSequence obj129 = new QuestSequence + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj127.Steps = list188; + reference131 = obj127; + num++; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span77 = CollectionsMarshal.AsSpan(list190); - span77[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span77[1] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj129.Steps = list190; - reference133 = obj129; - ref QuestSequence reference134 = ref span76[2]; - QuestSequence obj130 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj128.Steps = list189; + reference132 = obj128; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj130.Steps = list191; - reference134 = obj130; - ref QuestSequence reference135 = ref span76[3]; - QuestSequence obj131 = new QuestSequence + obj129.Steps = list190; + reference133 = obj129; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span78 = CollectionsMarshal.AsSpan(list192); - span78[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span78[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span78[2] = new QuestStep(EInteractionType.CompleteQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); - obj131.Steps = list192; - reference135 = obj131; - questRoot27.QuestSequence = list188; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); + obj130.Steps = list191; + reference134 = obj130; + questRoot27.QuestSequence = list187; AddQuest(questId27, questRoot27); QuestId questId28 = new QuestId(3879); QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; - questRoot28.Author = list193; - num = 4; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span79 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference136 = ref span79[0]; - QuestSequence obj132 = new QuestSequence + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "JerryWester"; + questRoot28.Author = list192; + index = 4; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); + obj131.Steps = list194; + reference135 = obj131; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj132 = new QuestSequence + { + Sequence = 1 + }; 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; - ref QuestSequence reference137 = ref span79[1]; - QuestSequence obj133 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1008595u, new Vector3(79.60632f, 46.311092f, -251.69757f), 140) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008595u, new Vector3(79.60632f, 46.311092f, -251.69757f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - obj133.Steps = list196; - reference137 = obj133; - ref QuestSequence reference138 = ref span79[2]; - QuestSequence obj134 = new QuestSequence + obj132.Steps = list195; + reference136 = obj132; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); - obj134.Steps = list197; - reference138 = obj134; - ref QuestSequence reference139 = ref span79[3]; - QuestSequence obj135 = new QuestSequence + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + obj133.Steps = list196; + reference137 = obj133; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140); - obj135.Steps = list198; - reference139 = obj135; - questRoot28.QuestSequence = list194; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140); + obj134.Steps = list197; + reference138 = obj134; + questRoot28.QuestSequence = list193; AddQuest(questId28, questRoot28); QuestId questId29 = new QuestId(3880); QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "JerryWester"; - questRoot29.Author = list199; - num = 3; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span80 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference140 = ref span80[0]; - QuestSequence obj136 = new QuestSequence + List list198 = new List(num); + CollectionsMarshal.SetCount(list198, num); + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "JerryWester"; + questRoot29.Author = list198; + index = 3; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131); - obj136.Steps = list201; - reference140 = obj136; - ref QuestSequence reference141 = ref span80[1]; - QuestSequence obj137 = new QuestSequence + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131); + obj135.Steps = list200; + reference139 = obj135; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AethernetShortcut = new AethernetShortcut { @@ -256788,17 +309324,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Uldah } }; - obj137.Steps = list202; - reference141 = obj137; - ref QuestSequence reference142 = ref span80[2]; - QuestSequence obj138 = new QuestSequence + obj136.Steps = list201; + reference140 = obj136; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AethernetShortcut = new AethernetShortcut { @@ -256806,30 +309345,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj138.Steps = list203; - reference142 = obj138; - questRoot29.QuestSequence = list200; + obj137.Steps = list202; + reference141 = obj137; + questRoot29.QuestSequence = list199; AddQuest(questId29, questRoot29); QuestId questId30 = new QuestId(3881); QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "JerryWester"; - questRoot30.Author = list204; - num = 5; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span81 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference143 = ref span81[0]; - QuestSequence obj139 = new QuestSequence + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "JerryWester"; + questRoot30.Author = list203; + index = 5; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + List list205 = new List(num2); + CollectionsMarshal.SetCount(list205, num2); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -256840,131 +309384,164 @@ public static class AssemblyQuestLoader } } }; - obj139.Steps = list206; - reference143 = obj139; - ref QuestSequence reference144 = ref span81[1]; - QuestSequence obj140 = new QuestSequence + obj138.Steps = list205; + reference142 = obj138; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span82 = CollectionsMarshal.AsSpan(list207); - span82[0] = new QuestStep(EInteractionType.UseItem, null, null, 130) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, null, 130) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span82[1] = new QuestStep(EInteractionType.Interact, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); - obj140.Steps = list207; - reference144 = obj140; - ref QuestSequence reference145 = ref span81[2]; - QuestSequence obj141 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); + obj139.Steps = list206; + reference143 = obj139; + num++; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span83 = CollectionsMarshal.AsSpan(list208); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.60025f, 25.983873f, -369.20984f), 140) + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.60025f, 25.983873f, -369.20984f), 140) { Fly = true }; - span83[1] = new QuestStep(EInteractionType.Interact, 1008628u, new Vector3(-431.8761f, 25.983873f, -368.36804f), 140); - obj141.Steps = list208; - reference145 = obj141; - ref QuestSequence reference146 = ref span81[3]; - QuestSequence obj142 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008628u, new Vector3(-431.8761f, 25.983873f, -368.36804f), 140); + obj140.Steps = list207; + reference144 = obj140; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 3 }; - num2 = 6; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span84 = CollectionsMarshal.AsSpan(list209); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-411.72363f, 23.113977f, -393.02393f), 140) + index2 = 6; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-414.27258f, 23.113977f, -394.49655f), 140) { Fly = true }; - ref QuestStep reference147 = ref span84[1]; + num2++; + ref QuestStep reference146 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1008636u, new Vector3(-415.91516f, 23.113977f, -394.6136f), 140); num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span85 = CollectionsMarshal.AsSpan(list210); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list210; - reference147 = questStep6; - span84[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-412.0704f, 23.008799f, -338.06842f), 140) + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + span7 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list209; + reference146 = questStep6; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.65857f, 23.008797f, -337.7979f), 140) { Fly = true }; - ref QuestStep reference148 = ref span84[3]; + num2++; + ref QuestStep reference147 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1008637u, new Vector3(-406.05786f, 23.008799f, -339.9558f), 140); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span86 = CollectionsMarshal.AsSpan(list211); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list211; - reference148 = questStep7; - span84[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.07297f, 30.999876f, -328.30157f), 140) + index3 = 6; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span7 = CollectionsMarshal.AsSpan(list210); + 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); + questStep7.CompletionQuestVariablesFlags = list210; + reference147 = questStep7; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.07297f, 30.999876f, -328.30157f), 140) { Fly = true }; - span84[5] = new QuestStep(EInteractionType.Interact, 1008635u, new Vector3(-444.29694f, 30.999878f, -329.64075f), 140); - obj142.Steps = list209; - reference146 = obj142; - ref QuestSequence reference149 = ref span81[4]; - QuestSequence obj143 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008635u, new Vector3(-444.29694f, 30.999878f, -329.64075f), 140); + obj141.Steps = list208; + reference145 = obj141; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span87 = CollectionsMarshal.AsSpan(list212); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.36285f, 19.00904f, -354.65195f), 140) + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.36285f, 19.00904f, -354.65195f), 140) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); - obj143.Steps = list212; - reference149 = obj143; - questRoot30.QuestSequence = list205; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); + obj142.Steps = list211; + reference148 = obj142; + questRoot30.QuestSequence = list204; AddQuest(questId30, questRoot30); QuestId questId31 = new QuestId(3882); QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "JerryWester"; - questRoot31.Author = list213; - num = 5; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span88 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference150 = ref span88[0]; - QuestSequence obj144 = new QuestSequence + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + span = CollectionsMarshal.AsSpan(list212); + index = 0; + span[index] = "JerryWester"; + questRoot31.Author = list212; + index = 5; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + span2 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -256975,86 +309552,104 @@ public static class AssemblyQuestLoader } } }; - obj144.Steps = list215; - reference150 = obj144; - ref QuestSequence reference151 = ref span88[1]; - QuestSequence obj145 = new QuestSequence + obj143.Steps = list214; + reference149 = obj143; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj145.Steps = list216; - reference151 = obj145; - ref QuestSequence reference152 = ref span88[2]; - QuestSequence obj146 = new QuestSequence + obj144.Steps = list215; + reference150 = obj144; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1008659u, new Vector3(26.474365f, 20.174328f, -679.74365f), 156); - obj146.Steps = list217; - reference152 = obj146; - ref QuestSequence reference153 = ref span88[3]; - QuestSequence obj147 = new QuestSequence + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1008659u, new Vector3(26.474365f, 20.174328f, -679.74365f), 156); + obj145.Steps = list216; + reference151 = obj145; + num++; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span89 = CollectionsMarshal.AsSpan(list218); - span89[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span89[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span89[2] = new QuestStep(EInteractionType.Interact, 1008547u, new Vector3(0.77819824f, -1.9957249f, -45.487183f), 351); - obj147.Steps = list218; - reference153 = obj147; - ref QuestSequence reference154 = ref span88[4]; - QuestSequence obj148 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1008547u, new Vector3(0.77819824f, -1.9957249f, -45.487183f), 351); + obj146.Steps = list217; + reference152 = obj146; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008554u, new Vector3(1.6326294f, -1.9957249f, -41.916565f), 351); - obj148.Steps = list219; - reference154 = obj148; - questRoot31.QuestSequence = list214; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008554u, new Vector3(1.6326294f, -1.9957249f, -41.916565f), 351); + obj147.Steps = list218; + reference153 = obj147; + questRoot31.QuestSequence = list213; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(3883); QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "JerryWester"; - questRoot32.Author = list220; - num = 4; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span90 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference155 = ref span90[0]; - QuestSequence obj149 = new QuestSequence + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "JerryWester"; + questRoot32.Author = list219; + index = 4; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -257065,84 +309660,103 @@ public static class AssemblyQuestLoader } } }; - obj149.Steps = list222; - reference155 = obj149; - ref QuestSequence reference156 = ref span90[1]; - QuestSequence obj150 = new QuestSequence + obj148.Steps = list221; + reference154 = obj148; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference156 = ref span3[num2]; + QuestStep obj150 = new QuestStep(EInteractionType.Combat, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 5; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span91 = CollectionsMarshal.AsSpan(list224); - span91[0] = 2852u; - span91[1] = 3114u; - span91[2] = 3115u; - span91[3] = 3116u; - span91[4] = 3117u; - obj151.KillEnemyDataIds = list224; - reference157 = obj151; - obj150.Steps = list223; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + span5 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span5[index3] = 2852u; + index3++; + span5[index3] = 3114u; + index3++; + span5[index3] = 3115u; + index3++; + span5[index3] = 3116u; + index3++; + span5[index3] = 3117u; + obj150.KillEnemyDataIds = list223; reference156 = obj150; - ref QuestSequence reference158 = ref span90[2]; - QuestSequence obj152 = new QuestSequence + obj149.Steps = list222; + reference155 = obj149; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141); - obj152.Steps = list225; - reference158 = obj152; - ref QuestSequence reference159 = ref span90[3]; - QuestSequence obj153 = new QuestSequence + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141); + obj151.Steps = list224; + reference157 = obj151; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span92 = CollectionsMarshal.AsSpan(list226); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(187.86679f, -1f, -301.48148f), 141) + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(187.86679f, -1f, -301.48148f), 141) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); - obj153.Steps = list226; - reference159 = obj153; - questRoot32.QuestSequence = list221; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); + obj152.Steps = list225; + reference158 = obj152; + questRoot32.QuestSequence = list220; AddQuest(questId32, questRoot32); QuestId questId33 = new QuestId(3884); QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "JerryWester"; - questRoot33.Author = list227; - num = 5; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span93 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference160 = ref span93[0]; - QuestSequence obj154 = new QuestSequence + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "JerryWester"; + questRoot33.Author = list226; + index = 5; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span2 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -257153,89 +309767,106 @@ public static class AssemblyQuestLoader } } }; - obj154.Steps = list229; - reference160 = obj154; - ref QuestSequence reference161 = ref span93[1]; - QuestSequence obj155 = new QuestSequence + obj153.Steps = list228; + reference159 = obj153; + num++; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span94 = CollectionsMarshal.AsSpan(list230); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-141.48044f, 4.2354183f, 232.0292f), 141) + index2 = 2; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-141.48044f, 4.2354183f, 232.0292f), 141) { Fly = true }; - span94[1] = new QuestStep(EInteractionType.Interact, 1009055u, new Vector3(-142.74823f, 4.2354183f, 232.77625f), 141); - obj155.Steps = list230; - reference161 = obj155; - ref QuestSequence reference162 = ref span93[2]; - QuestSequence obj156 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009055u, new Vector3(-142.74823f, 4.2354183f, 232.77625f), 141); + obj154.Steps = list229; + reference160 = obj154; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - Span span95 = CollectionsMarshal.AsSpan(list231); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(57.739433f, -1.247997f, 343.4356f), 141) + List list230 = new List(num2); + CollectionsMarshal.SetCount(list230, num2); + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(57.739433f, -1.247997f, 343.4356f), 141) { Fly = true }; - span95[1] = new QuestStep(EInteractionType.Interact, 1009056u, new Vector3(58.27417f, -1.2500068f, 342.2445f), 141); - obj156.Steps = list231; - reference162 = obj156; - ref QuestSequence reference163 = ref span93[3]; - QuestSequence obj157 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009056u, new Vector3(58.27417f, -1.2500068f, 342.2445f), 141); + obj155.Steps = list230; + reference161 = obj155; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1009175u, new Vector3(59.433838f, -1.2516545f, 341.26794f), 141); - obj157.Steps = list232; - reference163 = obj157; - ref QuestSequence reference164 = ref span93[4]; - QuestSequence obj158 = new QuestSequence + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009175u, new Vector3(59.433838f, -1.2516545f, 341.26794f), 141); + obj156.Steps = list231; + reference162 = obj156; + num++; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span96 = CollectionsMarshal.AsSpan(list233); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj158.Steps = list233; - reference164 = obj158; - questRoot33.QuestSequence = list228; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj157.Steps = list232; + reference163 = obj157; + questRoot33.QuestSequence = list227; AddQuest(questId33, questRoot33); QuestId questId34 = new QuestId(3885); QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; - questRoot34.Author = list234; - num = 8; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span97 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference165 = ref span97[0]; - QuestSequence obj159 = new QuestSequence + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "JerryWester"; + questRoot34.Author = list233; + index = 7; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -257246,123 +309877,142 @@ public static class AssemblyQuestLoader } } }; - obj159.Steps = list236; - reference165 = obj159; - ref QuestSequence reference166 = ref span97[1]; - QuestSequence obj160 = new QuestSequence + obj158.Steps = list235; + reference164 = obj158; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1009098u, new Vector3(262.71448f, -8.995881f, -77.92786f), 152) + List list236 = new List(num2); + CollectionsMarshal.SetCount(list236, num2); + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009098u, new Vector3(262.71448f, -8.995881f, -77.92786f), 152) + { + Fly = true + }; + obj159.Steps = list236; + reference165 = obj159; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj160 = new QuestSequence + { + Sequence = 2 + }; + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033555u, new Vector3(193.59119f, -22.344374f, -399.8932f), 152) { Fly = true }; obj160.Steps = list237; reference166 = obj160; - ref QuestSequence reference167 = ref span97[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj161 = new QuestSequence { - Sequence = 2 + Sequence = 3 }; 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) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1009119u, new Vector3(106.85889f, -27.487057f, -366.3844f), 152) { Fly = true }; obj161.Steps = list238; reference167 = obj161; - ref QuestSequence reference168 = ref span97[3]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj162 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1009119u, new Vector3(106.85889f, -27.487057f, -366.3844f), 152) - { - Fly = true - }; - obj162.Steps = list239; - reference168 = obj162; - ref QuestSequence reference169 = ref span97[4]; - QuestSequence obj163 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.23474f, -31.415636f, -218.26653f), 152) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.23474f, -31.415636f, -218.26653f), 152) { StopDistance = 0.25f, Fly = true }; - obj163.Steps = list240; - reference169 = obj163; - ref QuestSequence reference170 = ref span97[5]; - QuestSequence obj164 = new QuestSequence + obj162.Steps = list239; + reference168 = obj162; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + List list240 = new List(num2); + CollectionsMarshal.SetCount(list240, num2); + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { ContentFinderConditionId = 77u } }; - obj164.Steps = list241; - reference170 = obj164; - span97[6] = new QuestSequence - { - Sequence = 6 - }; - ref QuestSequence reference171 = ref span97[7]; - QuestSequence obj165 = new QuestSequence + obj163.Steps = list240; + reference169 = obj163; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - obj165.Steps = list242; - reference171 = obj165; - questRoot34.QuestSequence = list235; + obj164.Steps = list241; + reference170 = obj164; + questRoot34.QuestSequence = list234; AddQuest(questId34, questRoot34); QuestId questId35 = new QuestId(3886); QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - CollectionsMarshal.AsSpan(list243)[0] = "JerryWester"; - questRoot35.Author = list243; - num = 5; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span98 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference172 = ref span98[0]; - QuestSequence obj166 = new QuestSequence + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "JerryWester"; + questRoot35.Author = list242; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132) + List list244 = new List(num2); + CollectionsMarshal.SetCount(list244, num2); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -257373,84 +310023,103 @@ public static class AssemblyQuestLoader } } }; - obj166.Steps = list245; - reference172 = obj166; - ref QuestSequence reference173 = ref span98[1]; - QuestSequence obj167 = new QuestSequence + obj165.Steps = list244; + reference171 = obj165; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1010017u, new Vector3(22.171326f, 1.1999999f, 28.854736f), 132); - obj167.Steps = list246; - reference173 = obj167; - ref QuestSequence reference174 = ref span98[2]; - QuestSequence obj168 = new QuestSequence + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010017u, new Vector3(22.171326f, 1.1999999f, 28.854736f), 132); + obj166.Steps = list245; + reference172 = obj166; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); - obj168.Steps = list247; - reference174 = obj168; - ref QuestSequence reference175 = ref span98[3]; - QuestSequence obj169 = new QuestSequence + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); + obj167.Steps = list246; + reference173 = obj167; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span99 = CollectionsMarshal.AsSpan(list248); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.68947f, -8.046954f, 100.59061f), 132); - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.482037f, -9.182595f, 124.36735f), 132); - span99[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.59977f, -18.800003f, 103.46791f), 132) + index2 = 4; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.68947f, -8.046954f, 100.59061f), 132); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.482037f, -9.182595f, 124.36735f), 132); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.59977f, -18.800003f, 103.46791f), 132) { DisableNavmesh = true }; - span99[3] = new QuestStep(EInteractionType.Interact, 1010012u, new Vector3(23.910828f, -18.800003f, 89.89087f), 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010012u, new Vector3(23.910828f, -18.800003f, 89.89087f), 132) { DisableNavmesh = true }; - obj169.Steps = list248; - reference175 = obj169; - ref QuestSequence reference176 = ref span98[4]; - QuestSequence obj170 = new QuestSequence + obj168.Steps = list247; + reference174 = obj168; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); - obj170.Steps = list249; - reference176 = obj170; - questRoot35.QuestSequence = list244; + List list248 = new List(num2); + CollectionsMarshal.SetCount(list248, num2); + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); + obj169.Steps = list248; + reference175 = obj169; + questRoot35.QuestSequence = list243; AddQuest(questId35, questRoot35); QuestId questId36 = new QuestId(3887); QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "JerryWester"; - questRoot36.Author = list250; - num = 6; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span100 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference177 = ref span100[0]; - QuestSequence obj171 = new QuestSequence + List list249 = new List(num); + CollectionsMarshal.SetCount(list249, num); + span = CollectionsMarshal.AsSpan(list249); + index = 0; + span[index] = "JerryWester"; + questRoot36.Author = list249; + index = 6; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + span2 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -257461,18 +310130,20 @@ public static class AssemblyQuestLoader } } }; - obj171.Steps = list252; - reference177 = obj171; - ref QuestSequence reference178 = ref span100[1]; - QuestSequence obj172 = new QuestSequence + obj170.Steps = list251; + reference176 = obj170; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span101 = CollectionsMarshal.AsSpan(list253); - span101[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -257481,262 +310152,326 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - span101[1] = new QuestStep(EInteractionType.Interact, 1010020u, new Vector3(-569.39044f, 9.822195f, 65.171265f), 152); - obj172.Steps = list253; - reference178 = obj172; - ref QuestSequence reference179 = ref span100[2]; - QuestSequence obj173 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010020u, new Vector3(-569.39044f, 9.822195f, 65.171265f), 152); + obj171.Steps = list252; + reference177 = obj171; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-300.50375f, 0.39631903f, 268.70343f), 152) + { + Fly = true + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010037u, new Vector3(-300.98425f, 0.4458849f, 267.84155f), 152); + obj172.Steps = list253; + reference178 = obj172; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj173 = new QuestSequence + { + Sequence = 3 + }; 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) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-172.96619f, 1.4138634f, 147.4101f), 152) { Fly = true }; - span102[1] = new QuestStep(EInteractionType.Interact, 1010037u, new Vector3(-300.98425f, 0.4458849f, 267.84155f), 152); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010038u, new Vector3(-173.66296f, 1.4696703f, 146.83752f), 152); obj173.Steps = list254; reference179 = obj173; - ref QuestSequence reference180 = ref span100[3]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj174 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span103 = CollectionsMarshal.AsSpan(list255); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-172.96619f, 1.4138634f, 147.4101f), 152) - { - Fly = true - }; - span103[1] = new QuestStep(EInteractionType.Interact, 1010038u, new Vector3(-173.66296f, 1.4696703f, 146.83752f), 152); - obj174.Steps = list255; - reference180 = obj174; - ref QuestSequence reference181 = ref span100[4]; - QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1009987u, new Vector3(-207.69055f, 4.192081f, 100.26697f), 152); - obj175.Steps = list256; - reference181 = obj175; - ref QuestSequence reference182 = ref span100[5]; - QuestSequence obj176 = new QuestSequence + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1009987u, new Vector3(-207.69055f, 4.192081f, 100.26697f), 152); + obj174.Steps = list255; + reference180 = obj174; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span104 = CollectionsMarshal.AsSpan(list257); - span104[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list256 = new List(num2); + CollectionsMarshal.SetCount(list256, num2); + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span104[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span104[2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); - obj176.Steps = list257; - reference182 = obj176; - questRoot36.QuestSequence = list251; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + obj175.Steps = list256; + reference181 = obj175; + questRoot36.QuestSequence = list250; AddQuest(questId36, questRoot36); QuestId questId37 = new QuestId(3888); QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "JerryWester"; - questRoot37.Author = list258; - num = 6; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span105 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference183 = ref span105[0]; - QuestSequence obj177 = new QuestSequence + List list257 = new List(num); + CollectionsMarshal.SetCount(list257, num); + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "JerryWester"; + questRoot37.Author = list257; + index = 6; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) { StopDistance = 7f }; - obj177.Steps = list260; - reference183 = obj177; - ref QuestSequence reference184 = ref span105[1]; - QuestSequence obj178 = new QuestSequence + obj176.Steps = list259; + reference182 = obj176; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1010890u, new Vector3(31.967651f, -1f, 2.9144287f), 351); - obj178.Steps = list261; - reference184 = obj178; - ref QuestSequence reference185 = ref span105[2]; - QuestSequence obj179 = new QuestSequence + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010890u, new Vector3(31.967651f, -1f, 2.9144287f), 351); + obj177.Steps = list260; + reference183 = obj177; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span106 = CollectionsMarshal.AsSpan(list262); - span106[0] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2 = 2; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span106[1] = new QuestStep(EInteractionType.Interact, 1010860u, new Vector3(2.822876f, -1.995725f, -41.24518f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010860u, new Vector3(2.822876f, -1.995725f, -41.24518f), 351) { StopDistance = 7f }; - obj179.Steps = list262; - reference185 = obj179; - ref QuestSequence reference186 = ref span105[3]; - QuestSequence obj180 = new QuestSequence + obj178.Steps = list261; + reference184 = obj178; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span107 = CollectionsMarshal.AsSpan(list263); - span107[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span107[1] = new QuestStep(EInteractionType.Interact, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351); - obj180.Steps = list263; - reference186 = obj180; - ref QuestSequence reference187 = ref span105[4]; - QuestSequence obj181 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351); + obj179.Steps = list262; + reference185 = obj179; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1010861u, new Vector3(-63.523376f, 46.999992f, 25.192627f), 147) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1010861u, new Vector3(-63.523376f, 46.999992f, 25.192627f), 147) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - obj181.Steps = list264; - reference187 = obj181; - ref QuestSequence reference188 = ref span105[5]; - QuestSequence obj182 = new QuestSequence + obj180.Steps = list263; + reference186 = obj180; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 5f }; - obj182.Steps = list265; - reference188 = obj182; - questRoot37.QuestSequence = list259; + obj181.Steps = list264; + reference187 = obj181; + questRoot37.QuestSequence = list258; AddQuest(questId37, questRoot37); QuestId questId38 = new QuestId(3889); QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; - questRoot38.Author = list266; - num = 5; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span108 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference189 = ref span108[0]; - QuestSequence obj183 = new QuestSequence + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + span = CollectionsMarshal.AsSpan(list265); + index = 0; + span[index] = "liza"; + questRoot38.Author = list265; + index = 5; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + span2 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886); - obj183.Steps = list268; - reference189 = obj183; - ref QuestSequence reference190 = ref span108[1]; - QuestSequence obj184 = new QuestSequence + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886); + obj182.Steps = list267; + reference188 = obj182; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - Span span109 = CollectionsMarshal.AsSpan(list269); - ref QuestStep reference191 = ref span109[0]; + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + ref QuestStep reference190 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1033786u, new Vector3(65.415405f, -18.499813f, 11.795227f), 886); + index3 = 6; + List list269 = new List(index3); + CollectionsMarshal.SetCount(list269, index3); + span7 = CollectionsMarshal.AsSpan(list269); + 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); + questStep8.CompletionQuestVariablesFlags = list269; + reference190 = questStep8; + index2++; + ref QuestStep reference191 = ref span3[index2]; + QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1033787u, new Vector3(40.05493f, -19.999998f, 89.066895f), 886); num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span110 = CollectionsMarshal.AsSpan(list270); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list270; - reference191 = questStep8; - ref QuestStep reference192 = ref span109[1]; - QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1033787u, new Vector3(40.05493f, -19.999998f, 89.066895f), 886); - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span111 = CollectionsMarshal.AsSpan(list271); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list271; - reference192 = questStep9; - ref QuestStep reference193 = ref span109[2]; + span7 = CollectionsMarshal.AsSpan(list270); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list270; + reference191 = questStep9; + index2++; + ref QuestStep reference192 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1033788u, new Vector3(-27.908752f, -16f, 138.56714f), 886); - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span112 = CollectionsMarshal.AsSpan(list272); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list272; - reference193 = questStep10; - obj184.Steps = list269; - reference190 = obj184; - ref QuestSequence reference194 = ref span108[2]; - QuestSequence obj185 = new QuestSequence + index3 = 6; + List list271 = new List(index3); + CollectionsMarshal.SetCount(list271, index3); + span7 = CollectionsMarshal.AsSpan(list271); + 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); + questStep10.CompletionQuestVariablesFlags = list271; + reference192 = questStep10; + obj183.Steps = list268; + reference189 = obj183; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257744,17 +310479,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMattock } }; - obj185.Steps = list273; - reference194 = obj185; - ref QuestSequence reference195 = ref span108[3]; - QuestSequence obj186 = new QuestSequence + obj184.Steps = list272; + reference193 = obj184; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886) + List list273 = new List(num2); + CollectionsMarshal.SetCount(list273, num2); + span3 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257762,17 +310500,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentNewNest } }; - obj186.Steps = list274; - reference195 = obj186; - ref QuestSequence reference196 = ref span108[4]; - QuestSequence obj187 = new QuestSequence + obj185.Steps = list273; + reference194 = obj185; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257781,32 +310522,172 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(3955) }; - obj187.Steps = list275; - reference196 = obj187; - questRoot38.QuestSequence = list267; + obj186.Steps = list274; + reference195 = obj186; + questRoot38.QuestSequence = list266; AddQuest(questId38, questRoot38); QuestId questId39 = new QuestId(3890); QuestRoot questRoot39 = new QuestRoot(); num = 1; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "Censored"; - questRoot39.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span113 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference197 = ref span113[0]; - QuestSequence obj188 = new QuestSequence + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + span = CollectionsMarshal.AsSpan(list275); + index = 0; + span[index] = "Censored"; + questRoot39.Author = list275; + index = 5; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + span2 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - Span span114 = CollectionsMarshal.AsSpan(list278); - ref QuestStep reference198 = ref span114[0]; - QuestStep obj189 = new QuestStep(EInteractionType.None, null, null, 418) + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + ref QuestStep reference197 = ref span3[index2]; + QuestStep obj188 = new QuestStep(EInteractionType.None, null, null, 418) + { + AetheryteShortcut = EAetheryteLocation.Ishgard, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Ishgard, + To = EAetheryteLocation.IshgardFirmament + } + }; + SkipConditions skipConditions = new SkipConditions(); + SkipStepConditions skipStepConditions = new SkipStepConditions(); + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + Span span8 = CollectionsMarshal.AsSpan(list278); + index3 = 0; + span8[index3] = 154; + skipStepConditions.InTerritory = list278; + skipConditions.StepIf = skipStepConditions; + obj188.SkipConditions = skipConditions; + reference197 = obj188; + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) + { + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.FirmamentMendicantsCourt, + To = EAetheryteLocation.FirmamentMattock + } + }; + obj187.Steps = list277; + reference196 = obj187; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj189 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); + obj189.Steps = list279; + reference198 = obj189; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj190 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith + }; + obj190.Steps = list280; + reference199 = obj190; + num++; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj191 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400); + obj191.Steps = list281; + reference200 = obj191; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj192 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 2; + List list282 = new List(num2); + CollectionsMarshal.SetCount(list282, num2); + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 418) + { + AetheryteShortcut = EAetheryteLocation.Ishgard, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.Ishgard, + To = EAetheryteLocation.IshgardFirmament + } + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033922u, new Vector3(113.38977f, -20f, -0.9918823f), 886) + { + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.FirmamentMendicantsCourt, + To = EAetheryteLocation.FirmamentMattock + } + }; + obj192.Steps = list282; + reference201 = obj192; + questRoot39.QuestSequence = list276; + AddQuest(questId39, questRoot39); + QuestId questId40 = new QuestId(3891); + QuestRoot questRoot40 = new QuestRoot(); + num = 1; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + span = CollectionsMarshal.AsSpan(list283); + index = 0; + span[index] = "Censored"; + questRoot40.Author = list283; + index = 2; + List list284 = new List(index); + CollectionsMarshal.SetCount(list284, index); + span2 = CollectionsMarshal.AsSpan(list284); + num = 0; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj193 = new QuestSequence + { + Sequence = 0 + }; + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + ref QuestStep reference203 = ref span3[num2]; + QuestStep obj194 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -257816,133 +310697,19 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = 154; - skipStepConditions.InTerritory = list279; - skipConditions2.StepIf = skipStepConditions; - obj189.SkipConditions = skipConditions2; - reference198 = obj189; - span114[1] = new QuestStep(EInteractionType.AcceptQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.FirmamentMendicantsCourt, - To = EAetheryteLocation.FirmamentMattock - } - }; - obj188.Steps = list278; - reference197 = obj188; - ref QuestSequence reference199 = ref span113[1]; - QuestSequence obj190 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); - obj190.Steps = list280; - reference199 = obj190; - ref QuestSequence reference200 = ref span113[2]; - QuestSequence obj191 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith - }; - obj191.Steps = list281; - reference200 = obj191; - ref QuestSequence reference201 = ref span113[3]; - QuestSequence obj192 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400); - obj192.Steps = list282; - reference201 = obj192; - ref QuestSequence reference202 = ref span113[4]; - QuestSequence obj193 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - Span span115 = CollectionsMarshal.AsSpan(list283); - span115[0] = new QuestStep(EInteractionType.None, null, null, 418) - { - AetheryteShortcut = EAetheryteLocation.Ishgard, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Ishgard, - To = EAetheryteLocation.IshgardFirmament - } - }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1033922u, new Vector3(113.38977f, -20f, -0.9918823f), 886) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.FirmamentMendicantsCourt, - To = EAetheryteLocation.FirmamentMattock - } - }; - obj193.Steps = list283; - reference202 = obj193; - questRoot39.QuestSequence = list277; - AddQuest(questId39, questRoot39); - QuestId questId40 = new QuestId(3891); - QuestRoot questRoot40 = new QuestRoot(); - num = 1; - List list284 = new List(num); - CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "Censored"; - questRoot40.Author = list284; - num = 2; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span116 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference203 = ref span116[0]; - QuestSequence obj194 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span117 = CollectionsMarshal.AsSpan(list286); - ref QuestStep reference204 = ref span117[0]; - QuestStep obj195 = new QuestStep(EInteractionType.None, null, null, 418) - { - AetheryteShortcut = EAetheryteLocation.Ishgard, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Ishgard, - To = EAetheryteLocation.IshgardFirmament - } - }; - SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 154; - skipStepConditions2.InTerritory = list287; - skipConditions3.StepIf = skipStepConditions2; - obj195.SkipConditions = skipConditions3; - reference204 = obj195; - span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1032220u, new Vector3(113.29822f, -20.000002f, 1.449585f), 886) + index3 = 1; + List list286 = new List(index3); + CollectionsMarshal.SetCount(list286, index3); + span8 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span8[num3] = 154; + skipStepConditions2.InTerritory = list286; + skipConditions2.StepIf = skipStepConditions2; + obj194.SkipConditions = skipConditions2; + reference203 = obj194; + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032220u, new Vector3(113.29822f, -20.000002f, 1.449585f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257950,41 +310717,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMattock } }; - obj194.Steps = list286; - reference203 = obj194; - ref QuestSequence reference205 = ref span116[1]; - QuestSequence obj196 = new QuestSequence + obj193.Steps = list285; + reference202 = obj193; + num++; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); - obj196.Steps = list288; - reference205 = obj196; - questRoot40.QuestSequence = list285; + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); + obj195.Steps = list287; + reference204 = obj195; + questRoot40.QuestSequence = list284; AddQuest(questId40, questRoot40); QuestId questId41 = new QuestId(3895); QuestRoot questRoot41 = new QuestRoot(); num = 1; - List list289 = new List(num); - CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "liza"; - questRoot41.Author = list289; - num = 11; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span118 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference206 = ref span118[0]; - QuestSequence obj197 = new QuestSequence + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + span = CollectionsMarshal.AsSpan(list288); + index = 0; + span[index] = "liza"; + questRoot41.Author = list288; + index = 11; + List list289 = new List(index); + CollectionsMarshal.SetCount(list289, index); + span2 = CollectionsMarshal.AsSpan(list289); + num = 0; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -257995,76 +310770,93 @@ public static class AssemblyQuestLoader } } }; - obj197.Steps = list291; - reference206 = obj197; - ref QuestSequence reference207 = ref span118[1]; - QuestSequence obj198 = new QuestSequence + obj196.Steps = list290; + reference205 = obj196; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list292)[0]; - QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference207 = ref span3[index2]; + QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true }; num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + Span span9 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW201_03895_Q1_000_011") }; - obj199.DialogueChoices = list293; - reference208 = obj199; - obj198.Steps = list292; + obj198.DialogueChoices = list292; reference207 = obj198; - ref QuestSequence reference209 = ref span118[2]; - QuestSequence obj200 = new QuestSequence + obj197.Steps = list291; + reference206 = obj197; + num++; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1033626u, new Vector3(-484.42816f, 107.63f, 136.5835f), 829); - obj200.Steps = list294; - reference209 = obj200; - ref QuestSequence reference210 = ref span118[3]; - QuestSequence obj201 = new QuestSequence + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033626u, new Vector3(-484.42816f, 107.63f, 136.5835f), 829); + obj199.Steps = list293; + reference208 = obj199; + num++; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); - obj201.Steps = list295; - reference210 = obj201; - ref QuestSequence reference211 = ref span118[4]; - QuestSequence obj202 = new QuestSequence + List list294 = new List(num2); + CollectionsMarshal.SetCount(list294, num2); + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + obj200.Steps = list294; + reference209 = obj200; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); - obj202.Steps = list296; - reference211 = obj202; - ref QuestSequence reference212 = ref span118[5]; - QuestSequence obj203 = new QuestSequence + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + obj201.Steps = list295; + reference210 = obj201; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list297)[0]; - QuestStep obj204 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829) + List list296 = new List(num2); + CollectionsMarshal.SetCount(list296, num2); + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + ref QuestStep reference212 = ref span3[index2]; + QuestStep obj203 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -258072,81 +310864,98 @@ public static class AssemblyQuestLoader Index = 1 } }; - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice + index3 = 1; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + span9 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYW201_03895_Q6_000_000"), Answer = new ExcelRef("TEXT_LUCKYW201_03895_A6_000_001") }; - obj204.DialogueChoices = list298; - reference213 = obj204; - obj203.Steps = list297; + obj203.DialogueChoices = list297; reference212 = obj203; - span118[6] = new QuestSequence + obj202.Steps = list296; + reference211 = obj202; + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference214 = ref span118[7]; - QuestSequence obj205 = new QuestSequence + num++; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); - obj205.Steps = list299; - reference214 = obj205; - ref QuestSequence reference215 = ref span118[8]; - QuestSequence obj206 = new QuestSequence + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + obj204.Steps = list298; + reference213 = obj204; + num++; + ref QuestSequence reference214 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1033632u, new Vector3(50.94983f, 35f, 60.440918f), 919); - obj206.Steps = list300; - reference215 = obj206; - ref QuestSequence reference216 = ref span118[9]; - QuestSequence obj207 = new QuestSequence + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033632u, new Vector3(50.94983f, 35f, 60.440918f), 919); + obj205.Steps = list299; + reference214 = obj205; + num++; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1033635u, new Vector3(5.2643433f, 41f, 9.811523f), 919); - obj207.Steps = list301; - reference216 = obj207; - ref QuestSequence reference217 = ref span118[10]; - QuestSequence obj208 = new QuestSequence + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033635u, new Vector3(5.2643433f, 41f, 9.811523f), 919); + obj206.Steps = list300; + reference215 = obj206; + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - 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) + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + ref QuestStep reference217 = ref span3[index2]; + QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { TargetTerritoryId = (ushort)621 }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); 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; - span119[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + span8 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span8[index3] = 919; + skipStepConditions3.NotInTerritory = list302; + skipConditions3.StepIf = skipStepConditions3; + obj208.SkipConditions = skipConditions3; + reference217 = obj208; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -258158,34 +310967,40 @@ public static class AssemblyQuestLoader } } }; - span119[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3980) }; - obj208.Steps = list302; - reference217 = obj208; - questRoot41.QuestSequence = list290; + obj207.Steps = list301; + reference216 = obj207; + questRoot41.QuestSequence = list289; AddQuest(questId41, questRoot41); QuestId questId42 = new QuestId(3896); QuestRoot questRoot42 = new QuestRoot(); num = 1; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "alydev"; - questRoot42.Author = list304; - num = 6; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span120 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference219 = ref span120[0]; - QuestSequence obj210 = new QuestSequence + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + span = CollectionsMarshal.AsSpan(list303); + index = 0; + span[index] = "alydev"; + questRoot42.Author = list303; + index = 6; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + span2 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033717u, new Vector3(-286.82385f, 17.772081f, 444.23596f), 814) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033717u, new Vector3(-286.82385f, 17.772081f, 444.23596f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -258202,17 +311017,20 @@ public static class AssemblyQuestLoader } } }; - obj210.Steps = list306; - reference219 = obj210; - ref QuestSequence reference220 = ref span120[1]; - QuestSequence obj211 = new QuestSequence + obj209.Steps = list305; + reference218 = obj209; + num++; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1033720u, new Vector3(79.81995f, 35.999687f, -148.27197f), 819) + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033720u, new Vector3(79.81995f, 35.999687f, -148.27197f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -258221,17 +311039,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - obj211.Steps = list307; - reference220 = obj211; - ref QuestSequence reference221 = ref span120[2]; - QuestSequence obj212 = new QuestSequence + obj210.Steps = list306; + reference219 = obj210; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1033722u, new Vector3(-13.473755f, 19.999794f, -155.13855f), 819) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033722u, new Vector3(-13.473755f, 19.999794f, -155.13855f), 819) { AethernetShortcut = new AethernetShortcut { @@ -258239,237 +311060,284 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCrystallineMean } }; - obj212.Steps = list308; - reference221 = obj212; - ref QuestSequence reference222 = ref span120[3]; - QuestSequence obj213 = new QuestSequence + obj211.Steps = list307; + reference220 = obj211; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1033723u, new Vector3(-349.63f, 100.1054f, -605.27966f), 813) + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033723u, new Vector3(-349.63f, 100.1054f, -605.27966f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - obj213.Steps = list309; - reference222 = obj213; - ref QuestSequence reference223 = ref span120[4]; - QuestSequence obj214 = new QuestSequence + obj212.Steps = list308; + reference221 = obj212; + num++; + ref QuestSequence reference222 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 4 }; - 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) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; + QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813) { Fly = true }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + span9 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANDWA001_03896_Q3_000_000"), Answer = new ExcelRef("TEXT_BANDWA001_03896_A3_000_001") }; - obj215.DialogueChoices = list311; - reference224 = obj215; - obj214.Steps = list310; + obj214.DialogueChoices = list310; reference223 = obj214; - ref QuestSequence reference225 = ref span120[5]; - QuestSequence obj216 = new QuestSequence + obj213.Steps = list309; + reference222 = obj213; + num++; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span121 = CollectionsMarshal.AsSpan(list312); - span121[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + List list311 = new List(num2); + CollectionsMarshal.SetCount(list311, num2); + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31137u, ItemCount = 1 }; - span121[1] = new QuestStep(EInteractionType.CompleteQuest, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813); - obj216.Steps = list312; - reference225 = obj216; - questRoot42.QuestSequence = list305; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813); + obj215.Steps = list311; + reference224 = obj215; + questRoot42.QuestSequence = list304; AddQuest(questId42, questRoot42); QuestId questId43 = new QuestId(3897); QuestRoot questRoot43 = new QuestRoot(); num = 1; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "Theo"; - questRoot43.Author = list313; - num = 5; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span122 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference226 = ref span122[0]; - QuestSequence obj217 = new QuestSequence + List list312 = new List(num); + CollectionsMarshal.SetCount(list312, num); + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "Theo"; + questRoot43.Author = list312; + index = 5; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.601006f, -412.71082f), 813); - obj217.Steps = list315; - reference226 = obj217; - ref QuestSequence reference227 = ref span122[1]; - QuestSequence obj218 = new QuestSequence + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.601006f, -412.71082f), 813); + obj216.Steps = list314; + reference225 = obj216; + num++; + ref QuestSequence reference226 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) + List list315 = new List(num2); + CollectionsMarshal.SetCount(list315, num2); + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) + { + Mount = true + }; + obj217.Steps = list315; + reference226 = obj217; + num++; + ref QuestSequence reference227 = ref span2[num]; + QuestSequence obj218 = new QuestSequence + { + Sequence = 2 + }; + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.6009f, -414.66394f), 813) { Mount = true }; obj218.Steps = list316; reference227 = obj218; - ref QuestSequence reference228 = ref span122[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj219 = new QuestSequence { - Sequence = 2 + Sequence = 3 }; - num2 = 1; + num2 = 2; 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) + span3 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + { + ItemId = 31139u, + ItemCount = 1 + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) { Mount = true }; obj219.Steps = list317; reference228 = obj219; - ref QuestSequence reference229 = ref span122[3]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj220 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - Span span123 = CollectionsMarshal.AsSpan(list318); - span123[0] = new QuestStep(EInteractionType.Craft, null, null, 813) - { - ItemId = 31139u, - ItemCount = 1 - }; - span123[1] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) - { - Mount = true - }; - obj220.Steps = list318; - reference229 = obj220; - ref QuestSequence reference230 = ref span122[4]; - QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813); - obj221.Steps = list319; - reference230 = obj221; - questRoot43.QuestSequence = list314; + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span3 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813); + obj220.Steps = list318; + reference229 = obj220; + questRoot43.QuestSequence = list313; AddQuest(questId43, questRoot43); QuestId questId44 = new QuestId(3898); QuestRoot questRoot44 = new QuestRoot(); num = 1; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "liza"; - questRoot44.Author = list320; - num = 8; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span124 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference231 = ref span124[0]; - QuestSequence obj222 = new QuestSequence + List list319 = new List(num); + CollectionsMarshal.SetCount(list319, num); + span = CollectionsMarshal.AsSpan(list319); + index = 0; + span[index] = "liza"; + questRoot44.Author = list319; + index = 8; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + span2 = CollectionsMarshal.AsSpan(list320); + num = 0; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); - obj222.Steps = list322; - reference231 = obj222; - ref QuestSequence reference232 = ref span124[1]; - QuestSequence obj223 = new QuestSequence + List list321 = new List(num2); + CollectionsMarshal.SetCount(list321, num2); + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); + obj221.Steps = list321; + reference230 = obj221; + num++; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - Span span125 = CollectionsMarshal.AsSpan(list323); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.15628f, 108.72211f, -680.6214f), 813) + index2 = 2; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.15628f, 108.72211f, -680.6214f), 813) { Fly = true }; - span125[1] = new QuestStep(EInteractionType.Interact, 1033732u, new Vector3(-356.22186f, 108.722115f, -682.3072f), 813); - obj223.Steps = list323; - reference232 = obj223; - ref QuestSequence reference233 = ref span124[2]; - QuestSequence obj224 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033732u, new Vector3(-356.22186f, 108.722115f, -682.3072f), 813); + obj222.Steps = list322; + reference231 = obj222; + num++; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - ref QuestStep reference234 = ref CollectionsMarshal.AsSpan(list324)[0]; - QuestStep obj225 = new QuestStep(EInteractionType.Interact, 1033733u, new Vector3(-357.16797f, 108.722115f, -683.1922f), 813) + List list323 = new List(num2); + CollectionsMarshal.SetCount(list323, num2); + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + ref QuestStep reference233 = ref span3[index2]; + QuestStep obj224 = new QuestStep(EInteractionType.Interact, 1033733u, new Vector3(-357.16797f, 108.722115f, -683.1922f), 813) { StopDistance = 5f }; num3 = 1; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - CollectionsMarshal.AsSpan(list325)[0] = new DialogueChoice + List list324 = new List(num3); + CollectionsMarshal.SetCount(list324, num3); + span9 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANDWA003_03898_SYSTEM_000_046") }; - obj225.DialogueChoices = list325; - reference234 = obj225; - obj224.Steps = list324; + obj224.DialogueChoices = list324; reference233 = obj224; - ref QuestSequence reference235 = ref span124[3]; - QuestSequence obj226 = new QuestSequence + obj223.Steps = list323; + reference232 = obj223; + num++; + ref QuestSequence reference234 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1033769u, new Vector3(-358.114f, 108.722115f, -683.43634f), 813) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033769u, new Vector3(-358.114f, 108.722115f, -683.43634f), 813) { StopDistance = 5f }; - obj226.Steps = list326; - reference235 = obj226; - ref QuestSequence reference236 = ref span124[4]; - QuestSequence obj227 = new QuestSequence + obj225.Steps = list325; + reference234 = obj225; + num++; + ref QuestSequence reference235 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819) + List list326 = new List(num2); + CollectionsMarshal.SetCount(list326, num2); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -258478,150 +311346,179 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - obj227.Steps = list327; - reference236 = obj227; - ref QuestSequence reference237 = ref span124[5]; - QuestSequence obj228 = new QuestSequence + obj226.Steps = list326; + reference235 = obj226; + num++; + ref QuestSequence reference236 = ref span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - obj228.Steps = list328; - reference237 = obj228; - ref QuestSequence reference238 = ref span124[6]; - QuestSequence obj229 = new QuestSequence + obj227.Steps = list327; + reference236 = obj227; + num++; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60091f, -414.66394f), 813); - obj229.Steps = list329; - reference238 = obj229; - ref QuestSequence reference239 = ref span124[7]; - QuestSequence obj230 = new QuestSequence + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60091f, -414.66394f), 813); + obj228.Steps = list328; + reference237 = obj228; + num++; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span126 = CollectionsMarshal.AsSpan(list330); - span126[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31141u, ItemCount = 1 }; - span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); - obj230.Steps = list330; - reference239 = obj230; - questRoot44.QuestSequence = list321; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); + obj229.Steps = list329; + reference238 = obj229; + questRoot44.QuestSequence = list320; AddQuest(questId44, questRoot44); QuestId questId45 = new QuestId(3899); QuestRoot questRoot45 = new QuestRoot(); num = 1; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "Theo"; - questRoot45.Author = list331; - num = 6; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span127 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference240 = ref span127[0]; - QuestSequence obj231 = new QuestSequence + List list330 = new List(num); + CollectionsMarshal.SetCount(list330, num); + span = CollectionsMarshal.AsSpan(list330); + index = 0; + span[index] = "Theo"; + questRoot45.Author = list330; + index = 6; + List list331 = new List(index); + CollectionsMarshal.SetCount(list331, index); + span2 = CollectionsMarshal.AsSpan(list331); + num = 0; + ref QuestSequence reference239 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span128 = CollectionsMarshal.AsSpan(list333); - span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + List list332 = new List(num2); + CollectionsMarshal.SetCount(list332, num2); + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; - span128[1] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); - obj231.Steps = list333; - reference240 = obj231; - ref QuestSequence reference241 = ref span127[1]; - QuestSequence obj232 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + obj230.Steps = list332; + reference239 = obj230; + num++; + ref QuestSequence reference240 = ref span2[num]; + QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); - obj232.Steps = list334; - reference241 = obj232; - ref QuestSequence reference242 = ref span127[2]; - QuestSequence obj233 = new QuestSequence + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + obj231.Steps = list333; + reference240 = obj231; + num++; + ref QuestSequence reference241 = ref span2[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); - obj233.Steps = list335; - reference242 = obj233; - ref QuestSequence reference243 = ref span127[3]; - QuestSequence obj234 = new QuestSequence + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); + obj232.Steps = list334; + reference241 = obj232; + num++; + ref QuestSequence reference242 = ref span2[num]; + QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span129 = CollectionsMarshal.AsSpan(list336); - span129[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31143u, ItemCount = 1 }; - span129[1] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); - obj234.Steps = list336; - reference243 = obj234; - ref QuestSequence reference244 = ref span127[4]; - QuestSequence obj235 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + obj233.Steps = list335; + reference242 = obj233; + num++; + ref QuestSequence reference243 = ref span2[num]; + QuestSequence obj234 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1033737u, new Vector3(-250.17175f, 18.842602f, -161.12f), 813) + List list336 = new List(num2); + CollectionsMarshal.SetCount(list336, num2); + span3 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033737u, new Vector3(-250.17175f, 18.842602f, -161.12f), 813) { Fly = true }; - obj235.Steps = list337; - reference244 = obj235; - ref QuestSequence reference245 = ref span127[5]; - QuestSequence obj236 = new QuestSequence + obj234.Steps = list336; + reference243 = obj234; + num++; + ref QuestSequence reference244 = ref span2[num]; + QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - Span span130 = CollectionsMarshal.AsSpan(list338); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + index2 = 2; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); - obj236.Steps = list338; - reference245 = obj236; - questRoot45.QuestSequence = list332; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + obj235.Steps = list337; + reference244 = obj235; + questRoot45.QuestSequence = list331; AddQuest(questId45, questRoot45); } @@ -258632,13 +311529,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 10; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 10; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -258646,24 +311546,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1033738u, new Vector3(-616.29663f, -0.3631083f, 303.94446f), 813) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033738u, new Vector3(-616.29663f, -0.3631083f, 303.94446f), 813) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -258671,7 +311577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -258690,18 +311598,22 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -258709,27 +311621,33 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span2 = CollectionsMarshal.AsSpan(list8); - span2[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31145u, ItemCount = 1 }; - span2[1] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -258737,30 +311655,37 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) { Fly = true }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[7]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - span3[0] = new QuestStep(EInteractionType.Interact, 2011069u, new Vector3(-254.10852f, 3.2807007f, -114.54956f), 813) + index2 = 3; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011069u, new Vector3(-254.10852f, 3.2807007f, -114.54956f), 813) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.Interact, 2011068u, new Vector3(-245.28882f, 3.463745f, -116.68579f), 813); - span3[2] = new QuestStep(EInteractionType.Interact, 2011067u, new Vector3(-236.77429f, 3.829956f, -115.58716f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011068u, new Vector3(-245.28882f, 3.463745f, -116.68579f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011067u, new Vector3(-236.77429f, 3.829956f, -115.58716f), 813); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[8]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 8 @@ -258768,21 +311693,26 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) { Fly = true }; obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference10 = ref span[9]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; @@ -258795,13 +311725,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "Theo"; questRoot2.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference11 = ref span4[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -258809,24 +311742,30 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span4[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1033744u, new Vector3(-354.5434f, 100.1054f, -603.7537f), 813) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033744u, new Vector3(-354.5434f, 100.1054f, -603.7537f), 813) { Fly = true }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span4[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -258834,21 +311773,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1033746u, new Vector3(-351.36957f, 100.1054f, -603.60114f), 813); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033746u, new Vector3(-351.36957f, 100.1054f, -603.60114f), 813); obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference14 = ref span4[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1033729u, new Vector3(-355.6115f, 100.1054f, -603.20447f), 813); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033729u, new Vector3(-355.6115f, 100.1054f, -603.20447f), 813); obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span4[4]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -258856,7 +311801,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; @@ -258869,26 +311816,32 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; - num = 4; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span5 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span5[0]; + index = 4; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -258896,30 +311849,36 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span5[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - span7[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31147u, ItemCount = 3 }; - span7[1] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813); obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span5[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -258927,12 +311886,14 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj19.Steps = list25; reference19 = obj19; questRoot3.QuestSequence = list21; @@ -258942,26 +311903,32 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; questRoot4.Author = list26; - num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span9[0]; + index = 3; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span10 = CollectionsMarshal.AsSpan(list28); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span10[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -258969,7 +311936,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1034105u, new Vector3(775.9059f, 21.325724f, 21.286316f), 813) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034105u, new Vector3(775.9059f, 21.325724f, 21.286316f), 813) { StopDistance = 1f, Fly = true, @@ -258977,26 +311946,30 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span11 = CollectionsMarshal.AsSpan(list30); - span11[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31149u, ItemCount = 2 }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span11[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj22.Steps = list30; reference22 = obj22; questRoot4.QuestSequence = list27; @@ -259006,13 +311979,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; questRoot5.Author = list31; - num = 3; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span12 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span12[0]; + index = 3; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -259020,23 +311996,29 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span13 = CollectionsMarshal.AsSpan(list33); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span12[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span12[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -259044,14 +312026,17 @@ public static class AssemblyQuestLoader num2 = 3; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span14 = CollectionsMarshal.AsSpan(list35); - span14[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31151u, ItemCount = 4 }; - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span14[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj25.Steps = list35; reference25 = obj25; questRoot5.QuestSequence = list32; @@ -259061,26 +312046,32 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span15 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span15[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span16 = CollectionsMarshal.AsSpan(list38); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj26.Steps = list38; reference26 = obj26; - ref QuestSequence reference27 = ref span15[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -259088,8 +312079,9 @@ public static class AssemblyQuestLoader num2 = 3; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span17 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference28 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference28 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2011179u, new Vector3(-304.036f, 19.860376f, -244.1596f), 813) { Fly = true @@ -259097,34 +312089,49 @@ public static class AssemblyQuestLoader int num3 = 6; List> list40 = new List>(num3); CollectionsMarshal.SetCount(list40, num3); - Span> span18 = CollectionsMarshal.AsSpan(list40); - span18[0] = null; - span18[1] = null; - ref List reference29 = ref span18[2]; - int num4 = 2; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span19 = CollectionsMarshal.AsSpan(list41); - span19[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span19[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span4 = CollectionsMarshal.AsSpan(list40); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference29 = ref span4[num4]; + int num5 = 2; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + Span span5 = CollectionsMarshal.AsSpan(list41); + int num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference29 = list41; - span18[3] = null; - span18[4] = null; - span18[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj28.RequiredQuestVariables = list40; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span20 = CollectionsMarshal.AsSpan(list42); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + span5 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list42; reference28 = obj28; - ref QuestStep reference30 = ref span17[1]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2011178u, new Vector3(-267.5365f, 14.389221f, -191.63806f), 813) { Fly = true @@ -259132,34 +312139,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list43 = new List>(num3); CollectionsMarshal.SetCount(list43, num3); - Span> span21 = CollectionsMarshal.AsSpan(list43); - span21[0] = null; - span21[1] = null; - ref List reference31 = ref span21[2]; - num4 = 2; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span22 = CollectionsMarshal.AsSpan(list44); - span22[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span22[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list43); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference31 = ref span4[num4]; + num6 = 2; + List list44 = new List(num6); + CollectionsMarshal.SetCount(list44, num6); + span5 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span5[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference31 = list44; - span21[3] = null; - span21[4] = null; - span21[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj29.RequiredQuestVariables = list43; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span23 = CollectionsMarshal.AsSpan(list45); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + span5 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list45; reference30 = obj29; - ref QuestStep reference32 = ref span17[2]; + index2++; + ref QuestStep reference32 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2011177u, new Vector3(-236.13336f, 21.042175f, -223.0412f), 813) { Fly = true @@ -259167,49 +312189,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list46 = new List>(num3); CollectionsMarshal.SetCount(list46, num3); - Span> span24 = CollectionsMarshal.AsSpan(list46); - span24[0] = null; - span24[1] = null; - ref List reference33 = ref span24[2]; - num4 = 2; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span25 = CollectionsMarshal.AsSpan(list47); - span25[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span25[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference33 = ref span4[num4]; + num5 = 2; + List list47 = new List(num5); + CollectionsMarshal.SetCount(list47, num5); + span5 = CollectionsMarshal.AsSpan(list47); + num6 = 0; + span5[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference33 = list47; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj30.RequiredQuestVariables = list46; - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span26 = CollectionsMarshal.AsSpan(list48); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + span5 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list48; reference32 = obj30; obj27.Steps = list39; reference27 = obj27; - ref QuestSequence reference34 = ref span15[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span27 = CollectionsMarshal.AsSpan(list49); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj31.Steps = list49; reference34 = obj31; questRoot6.QuestSequence = list37; @@ -259219,13 +312258,16 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list50); + index = 0; + span[index] = "liza"; questRoot7.Author = list50; - num = 4; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference35 = ref span28[0]; + index = 4; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + span2 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -259233,23 +312275,29 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span29 = CollectionsMarshal.AsSpan(list52); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj32.Steps = list52; reference35 = obj32; - ref QuestSequence reference36 = ref span28[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj33.Steps = list53; reference36 = obj33; - ref QuestSequence reference37 = ref span28[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -259257,33 +312305,38 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span30 = CollectionsMarshal.AsSpan(list54); - span30[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31153u, ItemCount = 3 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1034112u, new Vector3(115.983765f, 106.73271f, -551.7815f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034112u, new Vector3(115.983765f, 106.73271f, -551.7815f), 813) { Fly = true }; obj34.Steps = list54; reference37 = obj34; - ref QuestSequence reference38 = ref span28[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span31 = CollectionsMarshal.AsSpan(list55); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj35.Steps = list55; reference38 = obj35; questRoot7.QuestSequence = list51; @@ -259293,13 +312346,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "pot0to"; questRoot8.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span32 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference39 = ref span32[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -259307,20 +312363,25 @@ public static class AssemblyQuestLoader num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span33 = CollectionsMarshal.AsSpan(list58); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span33[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj36.Steps = list58; reference39 = obj36; - ref QuestSequence reference40 = ref span32[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1034115u, new Vector3(732.3567f, 21.798542f, -77.62268f), 813) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034115u, new Vector3(732.3567f, 21.798542f, -77.62268f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb, @@ -259334,7 +312395,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list59; reference40 = obj37; - ref QuestSequence reference41 = ref span32[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -259342,13 +312404,15 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span34 = CollectionsMarshal.AsSpan(list60); - span34[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31155u, ItemCount = 2 }; - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -259365,7 +312429,8 @@ public static class AssemblyQuestLoader } } }; - span34[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj38.Steps = list60; reference41 = obj38; questRoot8.QuestSequence = list57; @@ -259375,26 +312440,32 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "plogon_enjoyer"; questRoot9.Author = list61; - num = 3; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span35 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference42 = ref span35[0]; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span36 = CollectionsMarshal.AsSpan(list63); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span36[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj39.Steps = list63; reference42 = obj39; - ref QuestSequence reference43 = ref span35[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -259402,31 +312473,37 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1034118u, new Vector3(-55.49713f, 98.10251f, -624.7501f), 813) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034118u, new Vector3(-55.49713f, 98.10251f, -624.7501f), 813) { Fly = true }; obj40.Steps = list64; reference43 = obj40; - ref QuestSequence reference44 = ref span35[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span37 = CollectionsMarshal.AsSpan(list65); - span37[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31157u, ItemCount = 3 }; - span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj41.Steps = list65; reference44 = obj41; questRoot9.QuestSequence = list62; @@ -259436,13 +312513,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot10.Author = list66; - num = 3; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span38 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference45 = ref span38[0]; + index = 3; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -259450,21 +312530,25 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span39 = CollectionsMarshal.AsSpan(list68); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span39[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj42.Steps = list68; reference45 = obj42; - ref QuestSequence reference46 = ref span38[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span40 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference47 = ref span40[0]; + index2 = 3; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Say, 1033770u, new Vector3(-410.11676f, 91.978714f, -426.71857f), 813) { Fly = true, @@ -259476,21 +312560,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list70 = new List>(num3); CollectionsMarshal.SetCount(list70, num3); - Span> span41 = CollectionsMarshal.AsSpan(list70); - span41[0] = null; - span41[1] = null; - ref List reference48 = ref span41[2]; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - CollectionsMarshal.AsSpan(list71)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference48 = ref span4[num4]; + num6 = 1; + List list71 = new List(num6); + CollectionsMarshal.SetCount(list71, num6); + span5 = CollectionsMarshal.AsSpan(list71); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference48 = list71; - span41[3] = null; - span41[4] = null; - span41[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj44.RequiredQuestVariables = list70; reference47 = obj44; - ref QuestStep reference49 = ref span40[1]; + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Say, 1033771u, new Vector3(-396.07843f, 93.51564f, -419.11957f), 813) { Fly = true, @@ -259499,24 +312592,33 @@ public static class AssemblyQuestLoader Key = "TEXT_BANDWA108_03909_SAYTODO_000_030" } }; - num3 = 6; - List> list72 = new List>(num3); - CollectionsMarshal.SetCount(list72, num3); - Span> span42 = CollectionsMarshal.AsSpan(list72); - span42[0] = null; - span42[1] = null; - ref List reference50 = ref span42[2]; - num4 = 1; - List list73 = new List(num4); - CollectionsMarshal.SetCount(list73, num4); - CollectionsMarshal.AsSpan(list73)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list72 = new List>(num4); + CollectionsMarshal.SetCount(list72, num4); + span4 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference50 = ref span4[num3]; + num5 = 1; + List list73 = new List(num5); + CollectionsMarshal.SetCount(list73, num5); + span5 = CollectionsMarshal.AsSpan(list73); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference50 = list73; - span42[3] = null; - span42[4] = null; - span42[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj45.RequiredQuestVariables = list72; reference49 = obj45; - ref QuestStep reference51 = ref span40[2]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Say, 1033772u, new Vector3(-399.80164f, 91.33075f, -441.42828f), 813) { Fly = true, @@ -259528,23 +312630,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list74 = new List>(num3); CollectionsMarshal.SetCount(list74, num3); - Span> span43 = CollectionsMarshal.AsSpan(list74); - span43[0] = null; - span43[1] = null; - ref List reference52 = ref span43[2]; - num4 = 1; - List list75 = new List(num4); - CollectionsMarshal.SetCount(list75, num4); - CollectionsMarshal.AsSpan(list75)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + ref List reference52 = ref span4[num4]; + num6 = 1; + List list75 = new List(num6); + CollectionsMarshal.SetCount(list75, num6); + span5 = CollectionsMarshal.AsSpan(list75); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference52 = list75; - span43[3] = null; - span43[4] = null; - span43[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj46.RequiredQuestVariables = list74; reference51 = obj46; obj43.Steps = list69; reference46 = obj43; - ref QuestSequence reference53 = ref span38[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -259552,12 +312663,14 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span44 = CollectionsMarshal.AsSpan(list76); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj47.Steps = list76; reference53 = obj47; questRoot10.QuestSequence = list67; @@ -259567,26 +312680,32 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot11.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span45 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference54 = ref span45[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span46 = CollectionsMarshal.AsSpan(list79); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span46[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj48.Steps = list79; reference54 = obj48; - ref QuestSequence reference55 = ref span45[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -259594,30 +312713,36 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); obj49.Steps = list80; reference55 = obj49; - ref QuestSequence reference56 = ref span45[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - Span span47 = CollectionsMarshal.AsSpan(list81); - span47[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31159u, ItemCount = 3 }; - span47[1] = new QuestStep(EInteractionType.Interact, 1033773u, new Vector3(-629.3279f, 56.201706f, -139.29962f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033773u, new Vector3(-629.3279f, 56.201706f, -139.29962f), 813) { Fly = true }; obj50.Steps = list81; reference56 = obj50; - ref QuestSequence reference57 = ref span45[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -259625,12 +312750,14 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span48 = CollectionsMarshal.AsSpan(list82); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj51.Steps = list82; reference57 = obj51; questRoot11.QuestSequence = list78; @@ -259640,26 +312767,32 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; questRoot12.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span49 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference58 = ref span49[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span50 = CollectionsMarshal.AsSpan(list85); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span50[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj52.Steps = list85; reference58 = obj52; - ref QuestSequence reference59 = ref span49[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -259667,25 +312800,31 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); obj53.Steps = list86; reference59 = obj53; - ref QuestSequence reference60 = ref span49[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span51 = CollectionsMarshal.AsSpan(list87); - span51[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31161u, ItemCount = 1 }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span51[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj54.Steps = list87; reference60 = obj54; questRoot12.QuestSequence = list84; @@ -259695,13 +312834,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "pot0to"; questRoot13.Author = list88; - num = 4; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span52 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference61 = ref span52[0]; + index = 4; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -259709,8 +312851,9 @@ public static class AssemblyQuestLoader num2 = 2; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span53 = CollectionsMarshal.AsSpan(list90); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -259722,18 +312865,22 @@ public static class AssemblyQuestLoader } } }; - span53[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj55.Steps = list90; reference61 = obj55; - ref QuestSequence reference62 = ref span52[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.UseItem, 2011166u, new Vector3(-721.70593f, 68.86389f, -1.5107422f), 813) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2011166u, new Vector3(-721.70593f, 68.86389f, -1.5107422f), 813) { Fly = true, ItemId = 2003030u, @@ -259741,7 +312888,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list91; reference62 = obj56; - ref QuestSequence reference63 = ref span52[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -259749,23 +312897,28 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1034059u, new Vector3(-725.70386f, 68.86053f, 2.2124634f), 813); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034059u, new Vector3(-725.70386f, 68.86053f, 2.2124634f), 813); obj57.Steps = list92; reference63 = obj57; - ref QuestSequence reference64 = ref span52[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span54 = CollectionsMarshal.AsSpan(list93); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj58.Steps = list93; reference64 = obj58; questRoot13.QuestSequence = list89; @@ -259775,13 +312928,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "pot0to"; questRoot14.Author = list94; - num = 4; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span55 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference65 = ref span55[0]; + index = 4; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -259789,8 +312945,9 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span56 = CollectionsMarshal.AsSpan(list96); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -259802,21 +312959,26 @@ public static class AssemblyQuestLoader } } }; - span56[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj59.Steps = list96; reference65 = obj59; - ref QuestSequence reference66 = ref span55[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj60.Steps = list97; reference66 = obj60; - ref QuestSequence reference67 = ref span55[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -259824,32 +312986,37 @@ public static class AssemblyQuestLoader num2 = 2; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span57 = CollectionsMarshal.AsSpan(list98); - span57[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31163u, ItemCount = 3 }; - span57[1] = new QuestStep(EInteractionType.Interact, 1034061u, new Vector3(-355.97772f, 100.1054f, -636.53015f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034061u, new Vector3(-355.97772f, 100.1054f, -636.53015f), 813) { Fly = true }; obj61.Steps = list98; reference67 = obj61; - ref QuestSequence reference68 = ref span55[3]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span58 = CollectionsMarshal.AsSpan(list99); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj62.Steps = list99; reference68 = obj62; questRoot14.QuestSequence = list95; @@ -259859,13 +313026,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "pot0to"; questRoot15.Author = list100; - num = 3; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span59 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference69 = ref span59[0]; + index = 3; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -259873,30 +313043,36 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span60 = CollectionsMarshal.AsSpan(list102); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span60[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj63.Steps = list102; reference69 = obj63; - ref QuestSequence reference70 = ref span59[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1034062u, new Vector3(214.92322f, 140.93163f, -570.09235f), 813) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034062u, new Vector3(214.92322f, 140.93163f, -570.09235f), 813) { Fly = true }; obj64.Steps = list103; reference70 = obj64; - ref QuestSequence reference71 = ref span59[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -259904,17 +313080,20 @@ public static class AssemblyQuestLoader num2 = 3; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span61 = CollectionsMarshal.AsSpan(list104); - span61[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31165u, ItemCount = 2 }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span61[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj65.Steps = list104; reference71 = obj65; questRoot15.QuestSequence = list101; @@ -259924,26 +313103,32 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "liza"; questRoot16.Author = list105; - num = 4; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span62 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference72 = ref span62[0]; + index = 4; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span63 = CollectionsMarshal.AsSpan(list107); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj66.Steps = list107; reference72 = obj66; - ref QuestSequence reference73 = ref span62[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -259951,33 +313136,39 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) { StopDistance = 5f }; obj67.Steps = list108; reference73 = obj67; - ref QuestSequence reference74 = ref span62[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span64 = CollectionsMarshal.AsSpan(list109); - span64[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31167u, ItemCount = 1 }; - span64[1] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) { StopDistance = 5f }; obj68.Steps = list109; reference74 = obj68; - ref QuestSequence reference75 = ref span62[3]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -259985,12 +313176,14 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span65 = CollectionsMarshal.AsSpan(list110); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj69.Steps = list110; reference75 = obj69; questRoot16.QuestSequence = list106; @@ -260000,26 +313193,32 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "liza"; questRoot17.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span66 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span66[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span67 = CollectionsMarshal.AsSpan(list113); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj70.Steps = list113; reference76 = obj70; - ref QuestSequence reference77 = ref span66[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -260027,168 +313226,235 @@ public static class AssemblyQuestLoader num2 = 4; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span68 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference78 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2011169u, new Vector3(-95.903015f, 1.6326294f, 41.244995f), 813) { Fly = true }; - num3 = 6; - List> list115 = new List>(num3); - CollectionsMarshal.SetCount(list115, num3); - Span> span69 = CollectionsMarshal.AsSpan(list115); - span69[0] = null; - span69[1] = null; - span69[2] = null; - ref List reference79 = ref span69[3]; - num4 = 3; - List list116 = new List(num4); - CollectionsMarshal.SetCount(list116, num4); - Span span70 = CollectionsMarshal.AsSpan(list116); - span70[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span70[1] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - span70[2] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list115 = new List>(num4); + CollectionsMarshal.SetCount(list115, num4); + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference79 = ref span4[num3]; + num5 = 3; + List list116 = new List(num5); + CollectionsMarshal.SetCount(list116, num5); + span5 = CollectionsMarshal.AsSpan(list116); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference79 = list116; - span69[4] = null; - span69[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj72.RequiredQuestVariables = list115; num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span71 = CollectionsMarshal.AsSpan(list117); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list117); + 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); obj72.CompletionQuestVariablesFlags = list117; reference78 = obj72; - ref QuestStep reference80 = ref span68[1]; + index2++; + ref QuestStep reference80 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 2011170u, new Vector3(-84.916504f, 2.39563f, 36.850464f), 813) { Fly = true }; - num3 = 6; - List> list118 = new List>(num3); - CollectionsMarshal.SetCount(list118, num3); - Span> span72 = CollectionsMarshal.AsSpan(list118); - span72[0] = null; - span72[1] = null; - span72[2] = null; - ref List reference81 = ref span72[3]; - num4 = 3; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span73 = CollectionsMarshal.AsSpan(list119); - span73[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span73[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span73[2] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list118 = new List>(num4); + CollectionsMarshal.SetCount(list118, num4); + span4 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference81 = ref span4[num3]; + num6 = 3; + List list119 = new List(num6); + CollectionsMarshal.SetCount(list119, num6); + span5 = CollectionsMarshal.AsSpan(list119); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); reference81 = list119; - span72[4] = null; - span72[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj73.RequiredQuestVariables = list118; num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span74 = CollectionsMarshal.AsSpan(list120); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list120); + 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); obj73.CompletionQuestVariablesFlags = list120; reference80 = obj73; - ref QuestStep reference82 = ref span68[2]; + index2++; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 2011171u, new Vector3(-68.55884f, 2.5177002f, 38.04065f), 813) { Fly = true }; - num3 = 6; - List> list121 = new List>(num3); - CollectionsMarshal.SetCount(list121, num3); - Span> span75 = CollectionsMarshal.AsSpan(list121); - span75[0] = null; - span75[1] = null; - span75[2] = null; - ref List reference83 = ref span75[3]; - num4 = 3; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - Span span76 = CollectionsMarshal.AsSpan(list122); - span76[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span76[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); - span76[2] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list121 = new List>(num4); + CollectionsMarshal.SetCount(list121, num4); + span4 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference83 = ref span4[num3]; + num5 = 3; + List list122 = new List(num5); + CollectionsMarshal.SetCount(list122, num5); + span5 = CollectionsMarshal.AsSpan(list122); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); reference83 = list122; - span75[4] = null; - span75[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj74.RequiredQuestVariables = list121; num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span77 = CollectionsMarshal.AsSpan(list123); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list123); + 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); obj74.CompletionQuestVariablesFlags = list123; reference82 = obj74; - ref QuestStep reference84 = ref span68[3]; + index2++; + ref QuestStep reference84 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 2011172u, new Vector3(-70.2984f, 1.449585f, 62.210938f), 813) { Fly = true }; - num3 = 6; - List> list124 = new List>(num3); - CollectionsMarshal.SetCount(list124, num3); - Span> span78 = CollectionsMarshal.AsSpan(list124); - span78[0] = null; - span78[1] = null; - span78[2] = null; - ref List reference85 = ref span78[3]; - num4 = 3; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span79 = CollectionsMarshal.AsSpan(list125); - span79[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span79[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span79[2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list124 = new List>(num4); + CollectionsMarshal.SetCount(list124, num4); + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + ref List reference85 = ref span4[num3]; + num6 = 3; + List list125 = new List(num6); + CollectionsMarshal.SetCount(list125, num6); + span5 = CollectionsMarshal.AsSpan(list125); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); reference85 = list125; - span78[4] = null; - span78[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj75.RequiredQuestVariables = list124; num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span80 = CollectionsMarshal.AsSpan(list126); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list126); + 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); obj75.CompletionQuestVariablesFlags = list126; reference84 = obj75; obj71.Steps = list114; reference77 = obj71; - ref QuestSequence reference86 = ref span66[2]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span81 = CollectionsMarshal.AsSpan(list127); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj76.Steps = list127; reference86 = obj76; questRoot17.QuestSequence = list112; @@ -260198,13 +313464,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot18.Author = list128; - num = 4; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span82 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference87 = ref span82[0]; + index = 4; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -260212,23 +313481,29 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span83 = CollectionsMarshal.AsSpan(list130); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj77.Steps = list130; reference87 = obj77; - ref QuestSequence reference88 = ref span82[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj78.Steps = list131; reference88 = obj78; - ref QuestSequence reference89 = ref span82[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -260236,34 +313511,39 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span84 = CollectionsMarshal.AsSpan(list132); - span84[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31169u, ItemCount = 3 }; - span84[1] = new QuestStep(EInteractionType.Interact, 1033694u, new Vector3(593.19434f, 5.8981767f, 704.86f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033694u, new Vector3(593.19434f, 5.8981767f, 704.86f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj79.Steps = list132; reference89 = obj79; - ref QuestSequence reference90 = ref span82[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span85 = CollectionsMarshal.AsSpan(list133); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj80.Steps = list133; reference90 = obj80; questRoot18.QuestSequence = list129; @@ -260273,13 +313553,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "liza"; questRoot19.Author = list134; - num = 4; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span86 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference91 = ref span86[0]; + index = 4; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -260287,26 +313570,32 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span87 = CollectionsMarshal.AsSpan(list136); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span87[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj81.Steps = list136; reference91 = obj81; - ref QuestSequence reference92 = ref span86[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1033695u, new Vector3(117.05188f, 7.07016f, 667.38367f), 813) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033695u, new Vector3(117.05188f, 7.07016f, 667.38367f), 813) { Fly = true }; obj82.Steps = list137; reference92 = obj82; - ref QuestSequence reference93 = ref span86[2]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -260314,33 +313603,38 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span88 = CollectionsMarshal.AsSpan(list138); - span88[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31171u, ItemCount = 1 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1033696u, new Vector3(119.035645f, 7.096028f, 667.5974f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033696u, new Vector3(119.035645f, 7.096028f, 667.5974f), 813) { StopDistance = 5f }; obj83.Steps = list138; reference93 = obj83; - ref QuestSequence reference94 = ref span86[3]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span89 = CollectionsMarshal.AsSpan(list139); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span89[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj84.Steps = list139; reference94 = obj84; questRoot19.QuestSequence = list135; @@ -260350,13 +313644,16 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "liza"; questRoot20.Author = list140; - num = 4; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span90 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference95 = ref span90[0]; + index = 4; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -260364,27 +313661,33 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span91 = CollectionsMarshal.AsSpan(list142); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span91[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj85.Steps = list142; reference95 = obj85; - ref QuestSequence reference96 = ref span90[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj86.Steps = list143; reference96 = obj86; - ref QuestSequence reference97 = ref span90[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -260392,27 +313695,32 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Emote, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) { Emote = EEmote.Psych }; obj87.Steps = list144; reference97 = obj87; - ref QuestSequence reference98 = ref span90[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span92 = CollectionsMarshal.AsSpan(list145); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj88.Steps = list145; reference98 = obj88; questRoot20.QuestSequence = list141; @@ -260422,13 +313730,16 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "pot0to"; questRoot21.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span93 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference99 = ref span93[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -260436,23 +313747,29 @@ public static class AssemblyQuestLoader num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span94 = CollectionsMarshal.AsSpan(list148); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span94[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj89.Steps = list148; reference99 = obj89; - ref QuestSequence reference100 = ref span93[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj90.Steps = list149; reference100 = obj90; - ref QuestSequence reference101 = ref span93[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -260460,32 +313777,37 @@ public static class AssemblyQuestLoader num2 = 2; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span95 = CollectionsMarshal.AsSpan(list150); - span95[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31173u, ItemCount = 3 }; - span95[1] = new QuestStep(EInteractionType.Interact, 1033703u, new Vector3(-270.77136f, 93.37625f, -480.33875f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033703u, new Vector3(-270.77136f, 93.37625f, -480.33875f), 813) { Fly = true }; obj91.Steps = list150; reference101 = obj91; - ref QuestSequence reference102 = ref span93[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span96 = CollectionsMarshal.AsSpan(list151); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj92.Steps = list151; reference102 = obj92; questRoot21.QuestSequence = list147; @@ -260495,13 +313817,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "liza"; questRoot22.Author = list152; - num = 3; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span97 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference103 = ref span97[0]; + index = 3; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -260509,26 +313834,32 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span98 = CollectionsMarshal.AsSpan(list154); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span98[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj93.Steps = list154; reference103 = obj93; - ref QuestSequence reference104 = ref span97[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1033704u, new Vector3(-33.341064f, 21.204435f, -198.41309f), 813) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033704u, new Vector3(-33.341064f, 21.204435f, -198.41309f), 813) { Fly = true }; obj94.Steps = list155; reference104 = obj94; - ref QuestSequence reference105 = ref span97[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -260536,17 +313867,20 @@ public static class AssemblyQuestLoader num2 = 3; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span99 = CollectionsMarshal.AsSpan(list156); - span99[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31175u, ItemCount = 1 }; - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span99[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj95.Steps = list156; reference105 = obj95; questRoot22.QuestSequence = list153; @@ -260556,26 +313890,32 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "liza"; questRoot23.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span100 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference106 = ref span100[0]; + index = 3; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span101 = CollectionsMarshal.AsSpan(list159); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span101[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj96.Steps = list159; reference106 = obj96; - ref QuestSequence reference107 = ref span100[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -260583,26 +313923,34 @@ public static class AssemblyQuestLoader num2 = 3; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span102 = CollectionsMarshal.AsSpan(list160); - ref QuestStep reference108 = ref span102[0]; + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1033706u, new Vector3(-384.9088f, 105.85561f, -645.9602f), 813) { StopDistance = 2f, Fly = true }; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span103 = CollectionsMarshal.AsSpan(list161); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + span5 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list161; reference108 = obj98; - ref QuestStep reference109 = ref span102[1]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1033705u, new Vector3(-380.3922f, 103.089836f, -669.8253f), 813) { Fly = true @@ -260610,48 +313958,64 @@ public static class AssemblyQuestLoader num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span104 = CollectionsMarshal.AsSpan(list162); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list162); + 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); obj99.CompletionQuestVariablesFlags = list162; reference109 = obj99; - ref QuestStep reference110 = ref span102[2]; + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1033707u, new Vector3(-361.83722f, 103.57124f, -703.2731f), 813) { Fly = true }; - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span105 = CollectionsMarshal.AsSpan(list163); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + span5 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list163; reference110 = obj100; obj97.Steps = list160; reference107 = obj97; - ref QuestSequence reference111 = ref span100[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span106 = CollectionsMarshal.AsSpan(list164); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span106[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj101.Steps = list164; reference111 = obj101; questRoot23.QuestSequence = list158; @@ -260661,13 +314025,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot24.Author = list165; - num = 5; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span107 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference112 = ref span107[0]; + index = 5; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -260675,23 +314042,29 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span108 = CollectionsMarshal.AsSpan(list167); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj102.Steps = list167; reference112 = obj102; - ref QuestSequence reference113 = ref span107[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); obj103.Steps = list168; reference113 = obj103; - ref QuestSequence reference114 = ref span107[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -260699,7 +314072,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) { Fly = true, Land = true, @@ -260707,21 +314082,25 @@ public static class AssemblyQuestLoader }; obj104.Steps = list169; reference114 = obj104; - ref QuestSequence reference115 = ref span107[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) { Action = EAction.Cannonfire }; obj105.Steps = list170; reference115 = obj105; - ref QuestSequence reference116 = ref span107[4]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -260729,12 +314108,14 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span109 = CollectionsMarshal.AsSpan(list171); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813) { Mount = false }; @@ -260747,26 +314128,32 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "liza"; questRoot25.Author = list172; - num = 4; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span110 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference117 = ref span110[0]; + index = 4; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span111 = CollectionsMarshal.AsSpan(list174); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span111[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj107.Steps = list174; reference117 = obj107; - ref QuestSequence reference118 = ref span110[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -260774,27 +314161,33 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj108.Steps = list175; reference118 = obj108; - ref QuestSequence reference119 = ref span110[2]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span112 = CollectionsMarshal.AsSpan(list176); - span112[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31177u, ItemCount = 1 }; - span112[1] = new QuestStep(EInteractionType.Interact, 1034070u, new Vector3(-796.47516f, 69.28625f, 117.29602f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034070u, new Vector3(-796.47516f, 69.28625f, 117.29602f), 813); obj109.Steps = list176; reference119 = obj109; - ref QuestSequence reference120 = ref span110[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -260802,12 +314195,14 @@ public static class AssemblyQuestLoader num2 = 2; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span113 = CollectionsMarshal.AsSpan(list177); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj110.Steps = list177; reference120 = obj110; questRoot25.QuestSequence = list173; @@ -260817,26 +314212,32 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "liza"; questRoot26.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span114 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference121 = ref span114[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span115 = CollectionsMarshal.AsSpan(list180); - span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span115[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj111.Steps = list180; reference121 = obj111; - ref QuestSequence reference122 = ref span114[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -260844,31 +314245,37 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1034071u, new Vector3(-171.4046f, 5.779212f, -110.27698f), 813) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034071u, new Vector3(-171.4046f, 5.779212f, -110.27698f), 813) { Fly = true }; obj112.Steps = list181; reference122 = obj112; - ref QuestSequence reference123 = ref span114[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span116 = CollectionsMarshal.AsSpan(list182); - span116[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31179u, ItemCount = 3 }; - span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span116[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj113.Steps = list182; reference123 = obj113; questRoot26.QuestSequence = list179; @@ -260878,13 +314285,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot27.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span117 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference124 = ref span117[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -260892,28 +314302,34 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span118 = CollectionsMarshal.AsSpan(list185); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span118[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj114.Steps = list185; reference124 = obj114; - ref QuestSequence reference125 = ref span117[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span119 = CollectionsMarshal.AsSpan(list186); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.174656f, 1.063369f, 661.43774f), 813) + index2 = 2; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.174656f, 1.063369f, 661.43774f), 813) { Fly = true }; - span119[1] = new QuestStep(EInteractionType.Interact, 1034072u, new Vector3(-25.92511f, 1.3904266f, 662.8976f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034072u, new Vector3(-25.92511f, 1.3904266f, 662.8976f), 813); obj115.Steps = list186; reference125 = obj115; - ref QuestSequence reference126 = ref span117[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -260921,13 +314337,15 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span120 = CollectionsMarshal.AsSpan(list187); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj116.Steps = list187; reference126 = obj116; questRoot27.QuestSequence = list184; @@ -260937,26 +314355,32 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot28.Author = list188; - num = 4; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span121 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference127 = ref span121[0]; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span122 = CollectionsMarshal.AsSpan(list190); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj117.Steps = list190; reference127 = obj117; - ref QuestSequence reference128 = ref span121[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -260964,30 +314388,36 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj118.Steps = list191; reference128 = obj118; - ref QuestSequence reference129 = ref span121[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span123 = CollectionsMarshal.AsSpan(list192); - span123[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31181u, ItemCount = 1 }; - span123[1] = new QuestStep(EInteractionType.Interact, 1034073u, new Vector3(-504.0513f, 3.623286f, 25.802979f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034073u, new Vector3(-504.0513f, 3.623286f, 25.802979f), 813) { Fly = true }; obj119.Steps = list192; reference129 = obj119; - ref QuestSequence reference130 = ref span121[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -260995,12 +314425,14 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span124 = CollectionsMarshal.AsSpan(list193); - span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj120.Steps = list193; reference130 = obj120; questRoot28.QuestSequence = list189; @@ -261010,26 +314442,32 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "liza"; questRoot29.Author = list194; - num = 3; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span125 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference131 = ref span125[0]; + index = 3; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span126 = CollectionsMarshal.AsSpan(list196); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj121.Steps = list196; reference131 = obj121; - ref QuestSequence reference132 = ref span125[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -261037,36 +314475,42 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span127 = CollectionsMarshal.AsSpan(list197); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-134.17696f, 14.623874f, -124.68204f), 813) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-134.17696f, 14.623874f, -124.68204f), 813) { Fly = true }; - span127[1] = new QuestStep(EInteractionType.Interact, 1034075u, new Vector3(-137.71265f, 14.623856f, -124.89508f), 813) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034075u, new Vector3(-137.71265f, 14.623856f, -124.89508f), 813) { StopDistance = 5f }; obj122.Steps = list197; reference132 = obj122; - ref QuestSequence reference133 = ref span125[2]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span128 = CollectionsMarshal.AsSpan(list198); - span128[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31183u, ItemCount = 3 }; - span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span128[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj123.Steps = list198; reference133 = obj123; questRoot29.QuestSequence = list195; @@ -261076,13 +314520,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "pot0to"; questRoot30.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span129 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference134 = ref span129[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -261090,8 +314537,9 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span130 = CollectionsMarshal.AsSpan(list201); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -261103,21 +314551,26 @@ public static class AssemblyQuestLoader } } }; - span130[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj124.Steps = list201; reference134 = obj124; - ref QuestSequence reference135 = ref span129[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); obj125.Steps = list202; reference135 = obj125; - ref QuestSequence reference136 = ref span129[2]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -261125,8 +314578,9 @@ public static class AssemblyQuestLoader num2 = 15; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span131 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference137 = ref span131[0]; + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference137 = ref span3[index2]; QuestStep obj127 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.43753f, 101.31912f, -445.69028f), 813) { Fly = true, @@ -261135,53 +314589,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list204 = new List>(num3); CollectionsMarshal.SetCount(list204, num3); - Span> span132 = CollectionsMarshal.AsSpan(list204); - span132[0] = null; - ref List reference138 = ref span132[1]; - num4 = 5; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span133 = CollectionsMarshal.AsSpan(list205); - span133[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span133[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span133[2] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span133[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span133[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference138 = ref span4[num4]; + num5 = 5; + List list205 = new List(num5); + CollectionsMarshal.SetCount(list205, num5); + span5 = CollectionsMarshal.AsSpan(list205); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference138 = list205; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj127.RequiredQuestVariables = list204; reference137 = obj127; - ref QuestStep reference139 = ref span131[1]; + index2++; + ref QuestStep reference139 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-251.79787f, 101.4096f, -436.75403f), 813) { Comment = "west of The Stay - walk up to target" }; - num3 = 6; - List> list206 = new List>(num3); - CollectionsMarshal.SetCount(list206, num3); - Span> span134 = CollectionsMarshal.AsSpan(list206); - span134[0] = null; - ref List reference140 = ref span134[1]; - num4 = 5; - List list207 = new List(num4); - CollectionsMarshal.SetCount(list207, num4); - Span span135 = CollectionsMarshal.AsSpan(list207); - span135[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span135[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span135[2] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span135[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span135[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list206 = new List>(num4); + CollectionsMarshal.SetCount(list206, num4); + span4 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference140 = ref span4[num3]; + num6 = 5; + List list207 = new List(num6); + CollectionsMarshal.SetCount(list207, num6); + span5 = CollectionsMarshal.AsSpan(list207); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference140 = list207; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj128.RequiredQuestVariables = list206; reference139 = obj128; - ref QuestStep reference141 = ref span131[2]; + index2++; + ref QuestStep reference141 = ref span3[index2]; QuestStep obj129 = new QuestStep(EInteractionType.Action, 2011130u, new Vector3(-245.7771f, 101.426636f, -433.98187f), 813) { Comment = "west of The Stay - fire cannon", @@ -261190,55 +314668,80 @@ public static class AssemblyQuestLoader num3 = 6; List> list208 = new List>(num3); CollectionsMarshal.SetCount(list208, num3); - Span> span136 = CollectionsMarshal.AsSpan(list208); - span136[0] = null; - ref List reference142 = ref span136[1]; - num4 = 5; - List list209 = new List(num4); - CollectionsMarshal.SetCount(list209, num4); - Span span137 = CollectionsMarshal.AsSpan(list209); - span137[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span137[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span137[2] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span137[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span137[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference142 = ref span4[num4]; + num5 = 5; + List list209 = new List(num5); + CollectionsMarshal.SetCount(list209, num5); + span5 = CollectionsMarshal.AsSpan(list209); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference142 = list209; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj129.RequiredQuestVariables = list208; reference141 = obj129; - ref QuestStep reference143 = ref span131[3]; + index2++; + ref QuestStep reference143 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.99785f, 100.41297f, -449.9386f), 813) { Fly = true, Comment = "inside The Stay - landing point" }; - num3 = 6; - List> list210 = new List>(num3); - CollectionsMarshal.SetCount(list210, num3); - Span> span138 = CollectionsMarshal.AsSpan(list210); - span138[0] = null; - ref List reference144 = ref span138[1]; num4 = 6; - List list211 = new List(num4); - CollectionsMarshal.SetCount(list211, num4); - Span span139 = CollectionsMarshal.AsSpan(list211); - span139[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span139[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span139[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span139[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span139[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + List> list210 = new List>(num4); + CollectionsMarshal.SetCount(list210, num4); + span4 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference144 = ref span4[num3]; + num6 = 6; + List list211 = new List(num6); + CollectionsMarshal.SetCount(list211, num6); + span5 = CollectionsMarshal.AsSpan(list211); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference144 = list211; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj130.RequiredQuestVariables = list210; reference143 = obj130; - ref QuestStep reference145 = ref span131[4]; + index2++; + ref QuestStep reference145 = ref span3[index2]; QuestStep obj131 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.86038f, 100.41297f, -450.21674f), 813) { Comment = "inside The Stay - walk up to target" @@ -261246,56 +314749,82 @@ public static class AssemblyQuestLoader num3 = 6; List> list212 = new List>(num3); CollectionsMarshal.SetCount(list212, num3); - Span> span140 = CollectionsMarshal.AsSpan(list212); - span140[0] = null; - ref List reference146 = ref span140[1]; - num4 = 6; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span141 = CollectionsMarshal.AsSpan(list213); - span141[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span141[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span141[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span141[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span141[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span141[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference146 = ref span4[num4]; + num5 = 6; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + span5 = CollectionsMarshal.AsSpan(list213); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference146 = list213; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj131.RequiredQuestVariables = list212; reference145 = obj131; - ref QuestStep reference147 = ref span131[5]; + index2++; + ref QuestStep reference147 = ref span3[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Action, 2011131u, new Vector3(-199.42017f, 100.38904f, -450.7973f), 813) { Comment = "inside The Stay - fire cannon", Action = EAction.Cannonfire }; - num3 = 6; - List> list214 = new List>(num3); - CollectionsMarshal.SetCount(list214, num3); - Span> span142 = CollectionsMarshal.AsSpan(list214); - span142[0] = null; - ref List reference148 = ref span142[1]; num4 = 6; - List list215 = new List(num4); - CollectionsMarshal.SetCount(list215, num4); - Span span143 = CollectionsMarshal.AsSpan(list215); - span143[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span143[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span143[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span143[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span143[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + List> list214 = new List>(num4); + CollectionsMarshal.SetCount(list214, num4); + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference148 = ref span4[num3]; + num6 = 6; + List list215 = new List(num6); + CollectionsMarshal.SetCount(list215, num6); + span5 = CollectionsMarshal.AsSpan(list215); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference148 = list215; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj132.RequiredQuestVariables = list214; reference147 = obj132; - ref QuestStep reference149 = ref span131[6]; + index2++; + ref QuestStep reference149 = ref span3[index2]; QuestStep obj133 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.52136f, 86.09296f, -519.285f), 813) { Fly = true, @@ -261304,55 +314833,81 @@ public static class AssemblyQuestLoader num3 = 6; List> list216 = new List>(num3); CollectionsMarshal.SetCount(list216, num3); - Span> span144 = CollectionsMarshal.AsSpan(list216); - span144[0] = null; - ref List reference150 = ref span144[1]; - num4 = 6; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span145 = CollectionsMarshal.AsSpan(list217); - span145[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span145[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span145[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span145[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span145[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span145[5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference150 = ref span4[num4]; + num5 = 6; + List list217 = new List(num5); + CollectionsMarshal.SetCount(list217, num5); + span5 = CollectionsMarshal.AsSpan(list217); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference150 = list217; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj133.RequiredQuestVariables = list216; reference149 = obj133; - ref QuestStep reference151 = ref span131[7]; + index2++; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-193.84006f, 86.09295f, -508.64786f), 813) { Comment = "north of The Stay - walk up to target" }; - num3 = 6; - List> list218 = new List>(num3); - CollectionsMarshal.SetCount(list218, num3); - Span> span146 = CollectionsMarshal.AsSpan(list218); - span146[0] = null; - ref List reference152 = ref span146[1]; num4 = 6; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span147 = CollectionsMarshal.AsSpan(list219); - span147[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span147[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span147[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span147[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span147[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span147[5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + List> list218 = new List>(num4); + CollectionsMarshal.SetCount(list218, num4); + span4 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference152 = ref span4[num3]; + num6 = 6; + List list219 = new List(num6); + CollectionsMarshal.SetCount(list219, num6); + span5 = CollectionsMarshal.AsSpan(list219); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference152 = list219; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj134.RequiredQuestVariables = list218; reference151 = obj134; - ref QuestStep reference153 = ref span131[8]; + index2++; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj135 = new QuestStep(EInteractionType.Action, 2011133u, new Vector3(-193.13348f, 86.045654f, -502.76953f), 813) { Comment = "north of The Stay - fire cannon", @@ -261361,55 +314916,80 @@ public static class AssemblyQuestLoader num3 = 6; List> list220 = new List>(num3); CollectionsMarshal.SetCount(list220, num3); - Span> span148 = CollectionsMarshal.AsSpan(list220); - span148[0] = null; - ref List reference154 = ref span148[1]; - num4 = 6; - List list221 = new List(num4); - CollectionsMarshal.SetCount(list221, num4); - Span span149 = CollectionsMarshal.AsSpan(list221); - span149[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span149[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span149[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span149[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span149[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span149[5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference154 = ref span4[num4]; + num5 = 6; + List list221 = new List(num5); + CollectionsMarshal.SetCount(list221, num5); + span5 = CollectionsMarshal.AsSpan(list221); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference154 = list221; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj135.RequiredQuestVariables = list220; reference153 = obj135; - ref QuestStep reference155 = ref span131[9]; + index2++; + ref QuestStep reference155 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.87851f, 85.39617f, -487.57132f), 813) { Fly = true, Comment = "NE of The Stay - landing point" }; - num3 = 6; - List> list222 = new List>(num3); - CollectionsMarshal.SetCount(list222, num3); - Span> span150 = CollectionsMarshal.AsSpan(list222); - span150[0] = null; - ref List reference156 = ref span150[1]; - num4 = 5; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span151 = CollectionsMarshal.AsSpan(list223); - span151[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span151[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span151[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span151[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span151[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list222 = new List>(num4); + CollectionsMarshal.SetCount(list222, num4); + span4 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference156 = ref span4[num3]; + num6 = 5; + List list223 = new List(num6); + CollectionsMarshal.SetCount(list223, num6); + span5 = CollectionsMarshal.AsSpan(list223); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference156 = list223; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj136.RequiredQuestVariables = list222; reference155 = obj136; - ref QuestStep reference157 = ref span131[10]; + index2++; + ref QuestStep reference157 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-151.61143f, 85.348495f, -488.9138f), 813) { Comment = "NE of The Stay - walk up to target" @@ -261417,54 +314997,78 @@ public static class AssemblyQuestLoader num3 = 6; List> list224 = new List>(num3); CollectionsMarshal.SetCount(list224, num3); - Span> span152 = CollectionsMarshal.AsSpan(list224); - span152[0] = null; - ref List reference158 = ref span152[1]; - num4 = 5; - List list225 = new List(num4); - CollectionsMarshal.SetCount(list225, num4); - Span span153 = CollectionsMarshal.AsSpan(list225); - span153[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span153[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span153[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span153[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span153[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference158 = ref span4[num4]; + num5 = 5; + List list225 = new List(num5); + CollectionsMarshal.SetCount(list225, num5); + span5 = CollectionsMarshal.AsSpan(list225); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference158 = list225; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj137.RequiredQuestVariables = list224; reference157 = obj137; - ref QuestStep reference159 = ref span131[11]; + index2++; + ref QuestStep reference159 = ref span3[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Action, 2011132u, new Vector3(-145.61688f, 85.34363f, -494.86536f), 813) { Comment = "NE of The Stay - fire cannon", Action = EAction.Cannonfire }; - num3 = 6; - List> list226 = new List>(num3); - CollectionsMarshal.SetCount(list226, num3); - Span> span154 = CollectionsMarshal.AsSpan(list226); - span154[0] = null; - ref List reference160 = ref span154[1]; - num4 = 5; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span155 = CollectionsMarshal.AsSpan(list227); - span155[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span155[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span155[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span155[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span155[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list226 = new List>(num4); + CollectionsMarshal.SetCount(list226, num4); + span4 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference160 = ref span4[num3]; + num6 = 5; + List list227 = new List(num6); + CollectionsMarshal.SetCount(list227, num6); + span5 = CollectionsMarshal.AsSpan(list227); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference160 = list227; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj138.RequiredQuestVariables = list226; reference159 = obj138; - ref QuestStep reference161 = ref span131[12]; + index2++; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj139 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.4956f, 100.40788f, -442.20892f), 813) { Fly = true, @@ -261473,53 +315077,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list228 = new List>(num3); CollectionsMarshal.SetCount(list228, num3); - Span> span156 = CollectionsMarshal.AsSpan(list228); - span156[0] = null; - ref List reference162 = ref span156[1]; - num4 = 5; - List list229 = new List(num4); - CollectionsMarshal.SetCount(list229, num4); - Span span157 = CollectionsMarshal.AsSpan(list229); - span157[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span157[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span157[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span157[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span157[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list228); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference162 = ref span4[num4]; + num5 = 5; + List list229 = new List(num5); + CollectionsMarshal.SetCount(list229, num5); + span5 = CollectionsMarshal.AsSpan(list229); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference162 = list229; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj139.RequiredQuestVariables = list228; reference161 = obj139; - ref QuestStep reference163 = ref span131[13]; + index2++; + ref QuestStep reference163 = ref span3[index2]; QuestStep obj140 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-135.49406f, 103.20949f, -442.19656f), 813) { Comment = "east of The Stay - walk up to target" }; - num3 = 6; - List> list230 = new List>(num3); - CollectionsMarshal.SetCount(list230, num3); - Span> span158 = CollectionsMarshal.AsSpan(list230); - span158[0] = null; - ref List reference164 = ref span158[1]; - num4 = 5; - List list231 = new List(num4); - CollectionsMarshal.SetCount(list231, num4); - Span span159 = CollectionsMarshal.AsSpan(list231); - span159[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span159[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span159[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span159[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span159[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list230 = new List>(num4); + CollectionsMarshal.SetCount(list230, num4); + span4 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span4[num3] = null; + num3++; + ref List reference164 = ref span4[num3]; + num6 = 5; + List list231 = new List(num6); + CollectionsMarshal.SetCount(list231, num6); + span5 = CollectionsMarshal.AsSpan(list231); + num5 = 0; + span5[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference164 = list231; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; obj140.RequiredQuestVariables = list230; reference163 = obj140; - ref QuestStep reference165 = ref span131[14]; + index2++; + ref QuestStep reference165 = ref span3[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Action, 2011129u, new Vector3(-126.878784f, 103.196655f, -442.649f), 813) { Comment = "east of The Stay - fire cannon", @@ -261528,42 +315156,56 @@ public static class AssemblyQuestLoader num3 = 6; List> list232 = new List>(num3); CollectionsMarshal.SetCount(list232, num3); - Span> span160 = CollectionsMarshal.AsSpan(list232); - span160[0] = null; - ref List reference166 = ref span160[1]; - num4 = 5; - List list233 = new List(num4); - CollectionsMarshal.SetCount(list233, num4); - Span span161 = CollectionsMarshal.AsSpan(list233); - span161[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span161[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span161[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span161[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span161[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list232); + num4 = 0; + span4[num4] = null; + num4++; + ref List reference166 = ref span4[num4]; + num5 = 5; + List list233 = new List(num5); + CollectionsMarshal.SetCount(list233, num5); + span5 = CollectionsMarshal.AsSpan(list233); + num6 = 0; + span5[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num6++; + span5[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference166 = list233; - span160[2] = null; - span160[3] = null; - span160[4] = null; - span160[5] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj141.RequiredQuestVariables = list232; reference165 = obj141; obj126.Steps = list203; reference136 = obj126; - ref QuestSequence reference167 = ref span129[3]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span162 = CollectionsMarshal.AsSpan(list234); - span162[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span162[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj142.Steps = list234; reference167 = obj142; questRoot30.QuestSequence = list200; @@ -261577,13 +315219,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -261591,22 +315236,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { StopDistance = 4f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1032245u, new Vector3(622.73596f, 297.49292f, -199.42017f), 814) { Fly = true @@ -261614,46 +315263,67 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1032244u, new Vector3(603.9978f, 297.43994f, -180.92627f), 814); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list6; reference4 = questStep; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1032246u, new Vector3(594.8423f, 297.2672f, -176.01282f), 814); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list7; reference5 = questStep2; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -261661,30 +315331,36 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; obj4.Steps = list8; reference6 = obj4; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - Span span6 = CollectionsMarshal.AsSpan(list9); - span6[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + index2 = 2; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span6[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj5.Steps = list9; reference7 = obj5; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -261692,18 +315368,23 @@ public static class AssemblyQuestLoader num2 = 5; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span7 = CollectionsMarshal.AsSpan(list10); - span7[0] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) { TargetTerritoryId = (ushort)896 }; - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); - span7[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); - span7[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - span7[4] = new QuestStep(EInteractionType.Say, 2011156u, new Vector3(-694.05664f, 339.1621f, -370.2602f), 896) + index2++; + span3[index2] = new QuestStep(EInteractionType.Say, 2011156u, new Vector3(-694.05664f, 339.1621f, -370.2602f), 896) { DelaySecondsAtStart = 5f, ChatMessage = new ChatMessage @@ -261713,15 +315394,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference8 = obj6; - ref QuestSequence reference9 = ref span[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { NextQuestId = new QuestId(3953) }; @@ -261734,13 +315418,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "liza"; questRoot2.Author = list12; - num = 5; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span8 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span8[0]; + index = 5; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -261748,18 +315435,23 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895); obj8.Steps = list14; reference10 = obj8; - ref QuestSequence reference11 = ref span8[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -261768,7 +315460,8 @@ public static class AssemblyQuestLoader }; obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference12 = ref span8[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -261776,19 +315469,23 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1034040u, new Vector3(-363.94293f, 103.83351f, 366.4148f), 928); + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034040u, new Vector3(-363.94293f, 103.83351f, 366.4148f), 928); obj10.Steps = list16; reference12 = obj10; - ref QuestSequence reference13 = ref span8[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestStep(EInteractionType.Interact, 2011108u, new Vector3(-363.3631f, 103.990234f, 375.69226f), 928) + index2 = 4; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011108u, new Vector3(-363.3631f, 103.990234f, 375.69226f), 928) { SkipConditions = new SkipConditions { @@ -261798,19 +315495,23 @@ public static class AssemblyQuestLoader } } }; - span9[1] = new QuestStep(EInteractionType.Interact, 2011155u, new Vector3(-383.81018f, 102.89148f, 389.12024f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011155u, new Vector3(-383.81018f, 102.89148f, 389.12024f), 928) { TargetTerritoryId = (ushort)814 }; - span9[2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span9[3] = new QuestStep(EInteractionType.Interact, 1034044u, new Vector3(-19.058533f, -3.501947E-11f, -58.365784f), 895); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034044u, new Vector3(-19.058533f, -3.501947E-11f, -58.365784f), 895); obj11.Steps = list17; reference13 = obj11; - ref QuestSequence reference14 = ref span8[4]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -261818,12 +315519,14 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74414f, 0.6866455f, -58.396362f), 895) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74414f, 0.6866455f, -58.396362f), 895) { TargetTerritoryId = (ushort)895 }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1034031u, new Vector3(-50.492126f, 0.037401117f, -121.53815f), 895) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034031u, new Vector3(-50.492126f, 0.037401117f, -121.53815f), 895) { NextQuestId = new QuestId(3954) }; @@ -261836,24 +315539,30 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "liza"; questRoot3.Author = list19; - num = 13; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span11[0]; + index = 13; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895); obj13.Steps = list21; reference15 = obj13; - ref QuestSequence reference16 = ref span11[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -261861,29 +315570,35 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.5766f, 1.2054443f, -109.056274f), 895) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.5766f, 1.2054443f, -109.056274f), 895) { TargetTerritoryId = (ushort)895 }; - span12[1] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj14.Steps = list22; reference16 = obj14; - ref QuestSequence reference17 = ref span11[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895) { StopDistance = 1f }; obj15.Steps = list23; reference17 = obj15; - ref QuestSequence reference18 = ref span11[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -261891,25 +315606,33 @@ public static class AssemblyQuestLoader num2 = 6; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference19 = ref span13[0]; + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference19 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1034016u, new Vector3(-6.668213f, -3.3829915E-11f, -56.443176f), 895) { StopDistance = 5f }; - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + span4 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list25; reference19 = obj17; - ref QuestStep reference20 = ref span13[1]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1034019u, new Vector3(-4.9592285f, -3.3072475E-11f, -55.161438f), 895) { StopDistance = 5f @@ -261917,33 +315640,47 @@ public static class AssemblyQuestLoader num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span15 = CollectionsMarshal.AsSpan(list26); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list26; reference20 = obj18; - ref QuestStep reference21 = ref span13[2]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1034020u, new Vector3(-4.348877f, -3.1869986E-11f, -53.11664f), 895) { StopDistance = 5f }; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list27 = new List(num4); + CollectionsMarshal.SetCount(list27, num4); + span4 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list27; reference21 = obj19; - ref QuestStep reference22 = ref span13[3]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1034017u, new Vector3(-5.0507812f, 0.029999875f, -51.010986f), 895) { StopDistance = 5f @@ -261951,33 +315688,47 @@ public static class AssemblyQuestLoader num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span17 = CollectionsMarshal.AsSpan(list28); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list28; reference22 = obj20; - ref QuestStep reference23 = ref span13[4]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1034018u, new Vector3(-6.729248f, 0.037395146f, -49.851257f), 895) { StopDistance = 5f }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span18 = CollectionsMarshal.AsSpan(list29); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span4 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list29; reference23 = obj21; - ref QuestStep reference24 = ref span13[5]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1034028u, new Vector3(-9.140198f, 0.029994294f, -49.973328f), 895) { StopDistance = 5f @@ -261985,29 +315736,39 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span19 = CollectionsMarshal.AsSpan(list30); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list30; reference24 = obj22; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference25 = ref span11[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); obj23.Steps = list31; reference25 = obj23; - ref QuestSequence reference26 = ref span11[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 @@ -262015,12 +315776,16 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list32)[0]; + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA303_03954_Q1_000_000"), @@ -262030,18 +315795,22 @@ public static class AssemblyQuestLoader reference27 = questStep3; obj24.Steps = list32; reference26 = obj24; - ref QuestSequence reference28 = ref span11[6]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj25.Steps = list34; reference28 = obj25; - ref QuestSequence reference29 = ref span11[7]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 @@ -262049,34 +315818,40 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span20 = CollectionsMarshal.AsSpan(list35); - span20[0] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74166f, 0.691666f, -58.37535f), 895) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74166f, 0.691666f, -58.37535f), 895) { TargetTerritoryId = (ushort)895 }; - span20[1] = new QuestStep(EInteractionType.Interact, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895) { StopDistance = 7f }; obj26.Steps = list35; reference29 = obj26; - ref QuestSequence reference30 = ref span11[8]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span21 = CollectionsMarshal.AsSpan(list36); - span21[0] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.55915f, 1.209601f, -109.0371f), 895) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.55915f, 1.209601f, -109.0371f), 895) { TargetTerritoryId = (ushort)895 }; - span21[1] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj27.Steps = list36; reference30 = obj27; - ref QuestSequence reference31 = ref span11[9]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 9 @@ -262084,32 +315859,38 @@ public static class AssemblyQuestLoader num2 = 2; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span22 = CollectionsMarshal.AsSpan(list37); - span22[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span22[1] = new QuestStep(EInteractionType.Interact, 2011151u, new Vector3(467.79578f, 311.02466f, -189.1051f), 814) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011151u, new Vector3(467.79578f, 311.02466f, -189.1051f), 814) { Fly = true }; obj28.Steps = list37; reference31 = obj28; - ref QuestSequence reference32 = ref span11[10]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 2011152u, new Vector3(345.3269f, 320.14954f, -317.58606f), 814) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011152u, new Vector3(345.3269f, 320.14954f, -317.58606f), 814) { Fly = true }; obj29.Steps = list38; reference32 = obj29; - ref QuestSequence reference33 = ref span11[11]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 11 @@ -262117,21 +315898,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2011153u, new Vector3(466.26978f, 298.146f, -398.79456f), 814) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011153u, new Vector3(466.26978f, 298.146f, -398.79456f), 814) { Fly = true }; obj30.Steps = list39; reference33 = obj30; - ref QuestSequence reference34 = ref span11[12]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) { Fly = true, NextQuestId = new QuestId(3998) @@ -262145,13 +315931,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot4.Author = list41; - num = 5; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span23 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference35 = ref span23[0]; + index = 5; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -262159,24 +315948,30 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033962u, new Vector3(49.729126f, -18.746954f, 7.2785034f), 886); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033962u, new Vector3(49.729126f, -18.746954f, 7.2785034f), 886); obj32.Steps = list43; reference35 = obj32; - ref QuestSequence reference36 = ref span23[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1033964u, new Vector3(50.58362f, -8.046957f, 99.290405f), 132) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033964u, new Vector3(50.58362f, -8.046957f, 99.290405f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj33.Steps = list44; reference36 = obj33; - ref QuestSequence reference37 = ref span23[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -262184,18 +315979,23 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1033966u, new Vector3(1.7547607f, -2.9701123f, 33.6156f), 132); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033966u, new Vector3(1.7547607f, -2.9701123f, 33.6156f), 132); obj34.Steps = list45; reference37 = obj34; - ref QuestSequence reference38 = ref span23[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2011139u, new Vector3(129.47266f, 12.893799f, -102.00659f), 133) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011139u, new Vector3(129.47266f, 12.893799f, -102.00659f), 133) { AethernetShortcut = new AethernetShortcut { @@ -262205,7 +316005,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list46; reference38 = obj35; - ref QuestSequence reference39 = ref span23[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -262213,7 +316014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133) { NextQuestId = new QuestId(3956) }; @@ -262226,24 +316029,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot5.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span24 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference40 = ref span24[0]; + index = 4; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133); obj37.Steps = list50; reference40 = obj37; - ref QuestSequence reference41 = ref span24[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -262251,24 +316060,30 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1033971u, new Vector3(-14.4198f, 9.999999f, -79.88104f), 130) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033971u, new Vector3(-14.4198f, 9.999999f, -79.88104f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj38.Steps = list51; reference41 = obj38; - ref QuestSequence reference42 = ref span24[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2011140u, new Vector3(-47.837036f, 5.203247f, -125.84119f), 130); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011140u, new Vector3(-47.837036f, 5.203247f, -125.84119f), 130); obj39.Steps = list52; reference42 = obj39; - ref QuestSequence reference43 = ref span24[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -262276,12 +316091,16 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list53)[0]; + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1033976u, new Vector3(13.961914f, 8f, -104.53961f), 130); num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA202_03956_Q1_000_000"), @@ -262299,24 +316118,30 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list55); + index = 0; + span[index] = "liza"; questRoot6.Author = list55; - num = 7; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span25 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference45 = ref span25[0]; + index = 7; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + span2 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033976u, new Vector3(13.961914f, 8f, -104.53961f), 130); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033976u, new Vector3(13.961914f, 8f, -104.53961f), 130); obj41.Steps = list57; reference45 = obj41; - ref QuestSequence reference46 = ref span25[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -262324,21 +316149,26 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1033997u, new Vector3(-6.149414f, 20f, 16.189758f), 129) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033997u, new Vector3(-6.149414f, 20f, 16.189758f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj42.Steps = list58; reference46 = obj42; - ref QuestSequence reference47 = ref span25[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1033981u, new Vector3(-344.74713f, 12.899759f, 13.076904f), 129) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033981u, new Vector3(-344.74713f, 12.899759f, 13.076904f), 129) { AethernetShortcut = new AethernetShortcut { @@ -262348,7 +316178,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list59; reference47 = obj43; - ref QuestSequence reference48 = ref span25[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 @@ -262356,7 +316187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1033999u, new Vector3(47.501343f, 44.70852f, 131.2428f), 128) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033999u, new Vector3(47.501343f, 44.70852f, 131.2428f), 128) { AethernetShortcut = new AethernetShortcut { @@ -262366,18 +316199,22 @@ public static class AssemblyQuestLoader }; obj44.Steps = list60; reference48 = obj44; - ref QuestSequence reference49 = ref span25[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1033984u, new Vector3(2.7922974f, 44.011013f, -154.40613f), 128); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033984u, new Vector3(2.7922974f, 44.011013f, -154.40613f), 128); obj45.Steps = list61; reference49 = obj45; - ref QuestSequence reference50 = ref span25[5]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 5 @@ -262385,26 +316222,33 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); obj46.Steps = list62; reference50 = obj46; - ref QuestSequence reference51 = ref span25[6]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference52 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.CompleteQuest, 1033986u, new Vector3(-2.8840332f, 43.999985f, -157.91565f), 128) { StopDistance = 7f }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA203_03957_Q1_000_000"), @@ -262422,13 +316266,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot7.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span26 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference53 = ref span26[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -262436,21 +316283,26 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033987u, new Vector3(-2.8840332f, 43.99998f, -159.3805f), 128) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033987u, new Vector3(-2.8840332f, 43.99998f, -159.3805f), 128) { StopDistance = 7f }; obj49.Steps = list67; reference53 = obj49; - ref QuestSequence reference54 = ref span26[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1033988u, new Vector3(20.675903f, -19.999985f, 105.39404f), 886) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033988u, new Vector3(20.675903f, -19.999985f, 105.39404f), 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -262461,7 +316313,8 @@ public static class AssemblyQuestLoader }; obj50.Steps = list68; reference54 = obj50; - ref QuestSequence reference55 = ref span26[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -262469,7 +316322,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033990u, new Vector3(-38.71222f, -20f, 58.060547f), 886) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033990u, new Vector3(-38.71222f, -20f, 58.060547f), 886) { StopDistance = 7f, NextQuestId = new QuestId(3960) @@ -262483,27 +316338,33 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list70); + index = 0; + span[index] = "liza"; questRoot8.Author = list70; - num = 3; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span27 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference56 = ref span27[0]; + index = 3; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + span2 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033991u, new Vector3(-37.9187f, -20f, 59.433838f), 886) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033991u, new Vector3(-37.9187f, -20f, 59.433838f), 886) { StopDistance = 7f }; obj52.Steps = list72; reference56 = obj52; - ref QuestSequence reference57 = ref span27[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -262511,7 +316372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1034082u, new Vector3(118.57776f, -20.000143f, 46.860474f), 418) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034082u, new Vector3(118.57776f, -20.000143f, 46.860474f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -262522,15 +316385,18 @@ public static class AssemblyQuestLoader }; obj53.Steps = list73; reference57 = obj53; - ref QuestSequence reference58 = ref span27[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034083u, new Vector3(38.28479f, -14.000004f, 40.05493f), 418) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1034083u, new Vector3(38.28479f, -14.000004f, 40.05493f), 418) { NextQuestId = new QuestId(3999) }; @@ -262543,13 +316409,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "liza"; questRoot9.Author = list75; - num = 3; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span28 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference59 = ref span28[0]; + index = 3; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -262557,28 +316426,34 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f }; obj55.Steps = list77; reference59 = obj55; - ref QuestSequence reference60 = ref span28[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1034507u, new Vector3(381.9486f, -64.35385f, 511.13135f), 815) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034507u, new Vector3(381.9486f, -64.35385f, 511.13135f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj56.Steps = list78; reference60 = obj56; - ref QuestSequence reference61 = ref span28[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -262586,7 +316461,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) { NextQuestId = new QuestId(3976) }; @@ -262599,27 +316476,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot10.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span29 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference62 = ref span29[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034510u, new Vector3(31.021484f, 4.9285717f, -8.560364f), 878) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034510u, new Vector3(31.021484f, 4.9285717f, -8.560364f), 878) { StopDistance = 4f }; obj58.Steps = list82; reference62 = obj58; - ref QuestSequence reference63 = ref span29[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -262627,23 +316510,28 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span30 = CollectionsMarshal.AsSpan(list83); - span30[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj59.Steps = list83; reference63 = obj59; - ref QuestSequence reference64 = ref span29[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262652,7 +316540,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference64 = obj60; - ref QuestSequence reference65 = ref span29[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -262660,7 +316549,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034511u, new Vector3(101.27405f, -2.4161777E-14f, 93.36987f), 857) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034511u, new Vector3(101.27405f, -2.4161777E-14f, 93.36987f), 857) { NextQuestId = new QuestId(3977) }; @@ -262673,27 +316564,33 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot11.Author = list86; - num = 6; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span31 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference66 = ref span31[0]; + index = 6; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034514u, new Vector3(-8.163635f, -2.4984214f, 18.936401f), 878) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034514u, new Vector3(-8.163635f, -2.4984214f, 18.936401f), 878) { StopDistance = 4f }; obj62.Steps = list88; reference66 = obj62; - ref QuestSequence reference67 = ref span31[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -262701,27 +316598,33 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1034513u, new Vector3(-6.149414f, -2.4984214f, 19.72992f), 878) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034513u, new Vector3(-6.149414f, -2.4984214f, 19.72992f), 878) { StopDistance = 5f }; obj63.Steps = list89; reference67 = obj63; - ref QuestSequence reference68 = ref span31[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2011241u, new Vector3(-14.6356f, -2.581f, 23.8476f), 878) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011241u, new Vector3(-14.6356f, -2.581f, 23.8476f), 878) { TargetTerritoryId = (ushort)857 }; obj64.Steps = list90; reference68 = obj64; - ref QuestSequence reference69 = ref span31[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -262729,21 +316632,26 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1034515u, new Vector3(-7.888916f, -2.4984214f, 12.741211f), 878) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034515u, new Vector3(-7.888916f, -2.4984214f, 12.741211f), 878) { StopDistance = 5f }; obj65.Steps = list91; reference69 = obj65; - ref QuestSequence reference70 = ref span31[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262752,7 +316660,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference70 = obj66; - ref QuestSequence reference71 = ref span31[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -262760,7 +316669,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034518u, new Vector3(101.182495f, -3.8122757E-14f, 103.715576f), 857) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034518u, new Vector3(101.182495f, -3.8122757E-14f, 103.715576f), 857) { StopDistance = 7f, NextQuestId = new QuestId(3978) @@ -262774,27 +316685,33 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list94); + index = 0; + span[index] = "liza"; questRoot12.Author = list94; - num = 7; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span32 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference72 = ref span32[0]; + index = 7; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + span2 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034519u, new Vector3(101.15198f, -3.8577113E-14f, 103.6239f), 857) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034519u, new Vector3(101.15198f, -3.8577113E-14f, 103.6239f), 857) { StopDistance = 7f }; obj68.Steps = list96; reference72 = obj68; - ref QuestSequence reference73 = ref span32[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -262802,7 +316719,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262811,19 +316730,23 @@ public static class AssemblyQuestLoader }; obj69.Steps = list97; reference73 = obj69; - span32[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference74 = ref span32[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262832,7 +316755,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list98; reference74 = obj70; - ref QuestSequence reference75 = ref span32[4]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -262840,21 +316764,26 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) { StopDistance = 5f }; obj71.Steps = list99; reference75 = obj71; - ref QuestSequence reference76 = ref span32[5]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Say, 1034520u, new Vector3(-7.7974243f, -2.4984214f, 11.337402f), 878) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1034520u, new Vector3(-7.7974243f, -2.4984214f, 11.337402f), 878) { StopDistance = 5f, ChatMessage = new ChatMessage @@ -262864,7 +316793,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list100; reference76 = obj72; - ref QuestSequence reference77 = ref span32[6]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -262872,7 +316802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) { StopDistance = 5f }; @@ -262885,27 +316817,33 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot13.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span33 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference78 = ref span33[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034522u, new Vector3(-7.0039062f, -2.4980054f, 21.591492f), 878) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034522u, new Vector3(-7.0039062f, -2.4980054f, 21.591492f), 878) { StopDistance = 7f }; obj74.Steps = list104; reference78 = obj74; - ref QuestSequence reference79 = ref span33[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -262913,27 +316851,32 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) { StopDistance = 5f }; obj75.Steps = list105; reference79 = obj75; - ref QuestSequence reference80 = ref span33[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span34 = CollectionsMarshal.AsSpan(list106); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) { StopDistance = 4f }; @@ -262946,13 +316889,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot14.Author = list107; - num = 9; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span35 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference81 = ref span35[0]; + index = 9; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -262960,7 +316906,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -262973,15 +316921,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list109; reference81 = obj77; - ref QuestSequence reference82 = ref span35[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list110)[0]; + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) { Fly = true @@ -262989,7 +316940,9 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW301_03980_Q2_000_000") @@ -262998,7 +316951,8 @@ public static class AssemblyQuestLoader reference83 = obj79; obj78.Steps = list110; reference82 = obj78; - ref QuestSequence reference84 = ref span35[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -263006,21 +316960,27 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj80.Steps = list112; reference84 = obj80; - ref QuestSequence reference85 = ref span35[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1035319u, new Vector3(-467.0329f, 22.94018f, -416.89178f), 140); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035319u, new Vector3(-467.0329f, 22.94018f, -416.89178f), 140); obj81.Steps = list113; reference85 = obj81; - ref QuestSequence reference86 = ref span35[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -263028,7 +316988,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Duty, null, null, 140) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 140) { DutyOptions = new DutyOptions { @@ -263037,21 +316999,25 @@ public static class AssemblyQuestLoader }; obj82.Steps = list114; reference86 = obj82; - ref QuestSequence reference87 = ref span35[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1035321u, new Vector3(98.802124f, 3.9999998f, 25.558838f), 967) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035321u, new Vector3(98.802124f, 3.9999998f, 25.558838f), 967) { StopDistance = 5f }; obj83.Steps = list115; reference87 = obj83; - ref QuestSequence reference88 = ref span35[6]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 6 @@ -263059,21 +317025,27 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj84.Steps = list116; reference88 = obj84; - ref QuestSequence reference89 = ref span35[7]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1035322u, new Vector3(-37.1557f, 41f, -2.02948f), 919); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035322u, new Vector3(-37.1557f, 41f, -2.02948f), 919); obj85.Steps = list117; reference89 = obj85; - ref QuestSequence reference90 = ref span35[8]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -263081,8 +317053,9 @@ public static class AssemblyQuestLoader num2 = 3; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span36 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference91 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference91 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { StopDistance = 7f, @@ -263090,15 +317063,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 919; + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span6 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span6[num3] = 919; skipStepConditions.NotInTerritory = list119; skipConditions.StepIf = skipStepConditions; obj87.SkipConditions = skipConditions; reference91 = obj87; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -263110,7 +317086,8 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3981) }; @@ -263123,21 +317100,26 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; questRoot15.Author = list120; - num = 5; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span37 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference92 = ref span37[0]; + index = 5; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -263150,7 +317132,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list122; reference92 = obj88; - ref QuestSequence reference93 = ref span37[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -263158,12 +317141,16 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list123)[0]; + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW311_03981_Q3_000_000") @@ -263172,18 +317159,22 @@ public static class AssemblyQuestLoader reference94 = questStep5; obj89.Steps = list123; reference93 = obj89; - ref QuestSequence reference95 = ref span37[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1035120u, new Vector3(52.140015f, 41f, 28.335938f), 919); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035120u, new Vector3(52.140015f, 41f, 28.335938f), 919); obj90.Steps = list125; reference95 = obj90; - ref QuestSequence reference96 = ref span37[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 @@ -263191,19 +317182,23 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1035323u, new Vector3(1.1443481f, 41.01995f, 24.917969f), 919); + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035323u, new Vector3(1.1443481f, 41.01995f, 24.917969f), 919); obj91.Steps = list126; reference96 = obj91; - ref QuestSequence reference97 = ref span37[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span38 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference98 = ref span38[0]; + index2 = 3; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference98 = ref span3[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { StopDistance = 7f, @@ -263211,15 +317206,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 919; + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + span6 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span6[num3] = 919; skipStepConditions2.NotInTerritory = list128; skipConditions2.StepIf = skipStepConditions2; obj93.SkipConditions = skipConditions2; reference98 = obj93; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -263231,7 +317229,8 @@ public static class AssemblyQuestLoader } } }; - span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(4031) }; @@ -263244,13 +317243,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list129); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list129; - num = 4; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span39 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference99 = ref span39[0]; + index = 4; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + span2 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -263258,21 +317260,27 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); obj94.Steps = list131; reference99 = obj94; - ref QuestSequence reference100 = ref span39[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1031533u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1031533u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819); obj95.Steps = list132; reference100 = obj95; - ref QuestSequence reference101 = ref span39[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -263280,18 +317288,23 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819); obj96.Steps = list133; reference101 = obj96; - ref QuestSequence reference102 = ref span39[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { NextQuestId = new QuestId(3986) }; @@ -263304,13 +317317,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span40 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference103 = ref span40[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -263318,12 +317334,16 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list137)[0]; + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + ref QuestStep reference104 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); num3 = 1; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKUN001_03986_Q1_000_000"), @@ -263333,28 +317353,33 @@ public static class AssemblyQuestLoader reference104 = questStep6; obj98.Steps = list137; reference103 = obj98; - ref QuestSequence reference105 = ref span40[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span41 = CollectionsMarshal.AsSpan(list139); - span41[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span41[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span41[2] = new QuestStep(EInteractionType.Interact, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351); obj99.Steps = list139; reference105 = obj99; - ref QuestSequence reference106 = ref span40[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -263362,18 +317387,23 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2011294u, new Vector3(1.9683228f, -1.9990234f, -42.343872f), 351); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011294u, new Vector3(1.9683228f, -1.9990234f, -42.343872f), 351); obj100.Steps = list140; reference106 = obj100; - ref QuestSequence reference107 = ref span40[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list141)[0]; + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -263383,10 +317413,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new DialogueChoice + num4 = 1; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + span5 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKUN001_03986_Q3_000_000"), @@ -263396,7 +317428,8 @@ public static class AssemblyQuestLoader reference108 = obj102; obj101.Steps = list141; reference107 = obj101; - ref QuestSequence reference109 = ref span40[4]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 @@ -263404,7 +317437,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { AethernetShortcut = new AethernetShortcut { @@ -263414,15 +317449,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list143; reference109 = obj103; - ref QuestSequence reference110 = ref span40[5]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030644u, new Vector3(-0.5036011f, 3.9998171f, 200.57983f), 819) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030644u, new Vector3(-0.5036011f, 3.9998171f, 200.57983f), 819) { NextQuestId = new QuestId(3987) }; @@ -263435,13 +317473,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list145; - num = 8; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span42 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference111 = ref span42[0]; + index = 8; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -263449,25 +317490,31 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035281u, new Vector3(-1.1444702f, 3.9998174f, 199.6947f), 819); + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035281u, new Vector3(-1.1444702f, 3.9998174f, 199.6947f), 819); obj105.Steps = list147; reference111 = obj105; - ref QuestSequence reference112 = ref span42[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1035282u, new Vector3(660.82227f, 14.620537f, 216.32703f), 813) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035282u, new Vector3(660.82227f, 14.620537f, 216.32703f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj106.Steps = list148; reference112 = obj106; - ref QuestSequence reference113 = ref span42[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -263475,7 +317522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list149)[0]; + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference114 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.8607f, 14.622499f, 222.77487f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -263483,23 +317532,29 @@ public static class AssemblyQuestLoader num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = 12662u; + Span span7 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span7[num4] = 12662u; obj108.KillEnemyDataIds = list150; reference114 = obj108; obj107.Steps = list149; reference113 = obj107; - ref QuestSequence reference115 = ref span42[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1035632u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035632u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj109.Steps = list151; reference115 = obj109; - ref QuestSequence reference116 = ref span42[4]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -263507,31 +317562,39 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list152)[0]; + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference117 = ref span3[index2]; QuestStep obj111 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.62976f, 14.622499f, 223.06616f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 12663u; + num4 = 1; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + span7 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span7[num3] = 12663u; obj111.KillEnemyDataIds = list153; reference117 = obj111; obj110.Steps = list152; reference116 = obj110; - ref QuestSequence reference118 = ref span42[5]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj112.Steps = list154; reference118 = obj112; - ref QuestSequence reference119 = ref span42[6]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 6 @@ -263539,7 +317602,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list155)[0]; + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference120 = ref span3[index2]; QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.4463f, 14.6225f, 222.89134f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -263547,20 +317612,25 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = 12664u; + span7 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span7[num4] = 12664u; obj114.KillEnemyDataIds = list156; reference120 = obj114; obj113.Steps = list155; reference119 = obj113; - ref QuestSequence reference121 = ref span42[7]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813) { NextQuestId = new QuestId(3988) }; @@ -263573,13 +317643,16 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "plogon_enjoyer"; questRoot19.Author = list158; - num = 6; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span43 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference122 = ref span43[0]; + index = 6; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -263587,24 +317660,30 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj116.Steps = list160; reference122 = obj116; - ref QuestSequence reference123 = ref span43[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1035287u, new Vector3(9.231689f, 195.68256f, -312.70312f), 813) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035287u, new Vector3(9.231689f, 195.68256f, -312.70312f), 813) { Fly = true }; obj117.Steps = list161; reference123 = obj117; - ref QuestSequence reference124 = ref span43[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -263612,31 +317691,39 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list162)[0]; + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference125 = ref span3[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, null, new Vector3(2.5688472f, 195.76323f, -300.17883f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = 12665u; + num4 = 1; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + span7 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span7[num3] = 12665u; obj119.KillEnemyDataIds = list163; reference125 = obj119; obj118.Steps = list162; reference124 = obj118; - ref QuestSequence reference126 = ref span43[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1035290u, new Vector3(10.940674f, 195.68256f, -313.89337f), 813); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035290u, new Vector3(10.940674f, 195.68256f, -313.89337f), 813); obj120.Steps = list164; reference126 = obj120; - ref QuestSequence reference127 = ref span43[4]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -263644,18 +317731,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 2011298u, new Vector3(2.5689f, 195.7632f, -300.4041f), 813); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011298u, new Vector3(2.5689f, 195.7632f, -300.4041f), 813); obj121.Steps = list165; reference127 = obj121; - ref QuestSequence reference128 = ref span43[5]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263673,13 +317765,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "liza"; questRoot20.Author = list167; - num = 3; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span44 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference129 = ref span44[0]; + index = 3; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -263687,7 +317782,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference130 = ref CollectionsMarshal.AsSpan(list169)[0]; + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + ref QuestStep reference130 = ref span3[index2]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -263706,22 +317803,27 @@ public static class AssemblyQuestLoader num3 = 1; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list170); + num4 = 0; + span6[num4] = 131; obj125.InTerritory = list170; skipConditions3.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions3; reference130 = obj124; obj123.Steps = list169; reference129 = obj123; - ref QuestSequence reference131 = ref span44[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1035094u, new Vector3(101.21301f, 9.738088f, 630.88416f), 141) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035094u, new Vector3(101.21301f, 9.738088f, 630.88416f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -263732,7 +317834,8 @@ public static class AssemblyQuestLoader }; obj126.Steps = list171; reference131 = obj126; - ref QuestSequence reference132 = ref span44[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -263740,7 +317843,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -263760,21 +317865,26 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list173); + index = 0; + span[index] = "liza"; questRoot21.Author = list173; - num = 8; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span45 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference133 = ref span45[0]; + index = 8; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + span2 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list175)[0]; + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference134 = ref span3[num2]; QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { StopDistance = 7f, @@ -263790,17 +317900,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 131; + num4 = 1; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + span6 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span6[num3] = 131; obj130.InTerritory = list176; skipConditions4.AetheryteShortcutIf = obj130; obj129.SkipConditions = skipConditions4; reference134 = obj129; obj128.Steps = list175; reference133 = obj128; - ref QuestSequence reference135 = ref span45[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -263808,7 +317921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list177)[0]; + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -263821,7 +317936,9 @@ public static class AssemblyQuestLoader num3 = 1; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAOZ630_03990_Q1_000_000"), @@ -263831,16 +317948,18 @@ public static class AssemblyQuestLoader reference136 = obj132; obj131.Steps = list177; reference135 = obj131; - ref QuestSequence reference137 = ref span45[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span46 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference138 = ref span46[0]; + index2 = 3; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference138 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1019038u, new Vector3(-55.222473f, -2.9000003f, -65.65961f), 628) { AethernetShortcut = new AethernetShortcut @@ -263849,49 +317968,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 6; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span47 = CollectionsMarshal.AsSpan(list180); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list180 = new List(num4); + CollectionsMarshal.SetCount(list180, num4); + span4 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list180; reference138 = obj134; - ref QuestStep reference139 = ref span46[1]; + num2++; + ref QuestStep reference139 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019069u, new Vector3(-62.119568f, 8f, -56.62628f), 628); num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span48 = CollectionsMarshal.AsSpan(list181); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list181; reference139 = questStep7; - ref QuestStep reference140 = ref span46[2]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1035099u, new Vector3(-36.728516f, 14.000002f, -52.170654f), 628); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span49 = CollectionsMarshal.AsSpan(list182); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + span4 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list182; reference140 = questStep8; obj133.Steps = list179; reference137 = obj133; - ref QuestSequence reference141 = ref span45[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -263899,7 +318039,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -263910,15 +318052,18 @@ public static class AssemblyQuestLoader }; obj135.Steps = list183; reference141 = obj135; - ref QuestSequence reference142 = ref span45[4]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) { AethernetShortcut = new AethernetShortcut { @@ -263928,7 +318073,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list184; reference142 = obj136; - ref QuestSequence reference143 = ref span45[5]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 5 @@ -263936,7 +318082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1035104u, new Vector3(153.42944f, 18.1f, 50.70569f), 628) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035104u, new Vector3(153.42944f, 18.1f, 50.70569f), 628) { AethernetShortcut = new AethernetShortcut { @@ -263946,21 +318094,25 @@ public static class AssemblyQuestLoader }; obj137.Steps = list185; reference143 = obj137; - ref QuestSequence reference144 = ref span45[6]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1035097u, new Vector3(151.87305f, 18.1f, 49.484985f), 628) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035097u, new Vector3(151.87305f, 18.1f, 49.484985f), 628) { StopDistance = 5f }; obj138.Steps = list186; reference144 = obj138; - ref QuestSequence reference145 = ref span45[7]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -263968,7 +318120,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AethernetShortcut = new AethernetShortcut { @@ -263986,21 +318140,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot22.Author = list188; - num = 7; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span50 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference146 = ref span50[0]; + index = 7; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list190)[0]; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj141 = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -264020,7 +318179,9 @@ public static class AssemblyQuestLoader num3 = 1; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAOZ650_03991_Q1_000_000"), @@ -264030,7 +318191,8 @@ public static class AssemblyQuestLoader reference147 = obj141; obj140.Steps = list190; reference146 = obj140; - ref QuestSequence reference148 = ref span50[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -264038,7 +318200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264048,46 +318212,62 @@ public static class AssemblyQuestLoader }; obj142.Steps = list192; reference148 = obj142; - ref QuestSequence reference149 = ref span50[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span51 = CollectionsMarshal.AsSpan(list193); - ref QuestStep reference150 = ref span51[0]; + index2 = 2; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference150 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1018989u, new Vector3(35.171997f, 4.8365545f, 49.240845f), 628); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span52 = CollectionsMarshal.AsSpan(list194); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + span4 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list194; reference150 = questStep9; - ref QuestStep reference151 = ref span51[1]; + num2++; + ref QuestStep reference151 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1018990u, new Vector3(40.024292f, 4.83654f, 49.05774f), 628); num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span53 = CollectionsMarshal.AsSpan(list195); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list195; reference151 = questStep10; obj143.Steps = list193; reference149 = obj143; - ref QuestSequence reference152 = ref span50[3]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -264095,21 +318275,27 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1035106u, new Vector3(83.08533f, 4.0000014f, 51.621216f), 628); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035106u, new Vector3(83.08533f, 4.0000014f, 51.621216f), 628); obj144.Steps = list196; reference152 = obj144; - ref QuestSequence reference153 = ref span50[4]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628); obj145.Steps = list197; reference153 = obj145; - ref QuestSequence reference154 = ref span50[5]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 5 @@ -264117,18 +318303,23 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1035105u, new Vector3(139.0249f, 18f, 48.508423f), 628); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035105u, new Vector3(139.0249f, 18f, 48.508423f), 628); obj146.Steps = list198; reference154 = obj146; - ref QuestSequence reference155 = ref span50[6]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264146,13 +318337,16 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; questRoot23.Author = list200; - num = 7; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span54 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference156 = ref span54[0]; + index = 7; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -264160,7 +318354,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -264178,15 +318374,18 @@ public static class AssemblyQuestLoader }; obj148.Steps = list202; reference156 = obj148; - ref QuestSequence reference157 = ref span54[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264196,7 +318395,8 @@ public static class AssemblyQuestLoader }; obj149.Steps = list203; reference157 = obj149; - ref QuestSequence reference158 = ref span54[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -264204,7 +318404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1035108u, new Vector3(-106.401184f, -7f, -63.553833f), 628) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035108u, new Vector3(-106.401184f, -7f, -63.553833f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264214,22 +318416,26 @@ public static class AssemblyQuestLoader }; obj150.Steps = list204; reference158 = obj150; - ref QuestSequence reference159 = ref span54[3]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1035109u, new Vector3(449.27136f, 58.40733f, -149.82837f), 614) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035109u, new Vector3(449.27136f, 58.40733f, -149.82837f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj151.Steps = list205; reference159 = obj151; - ref QuestSequence reference160 = ref span54[4]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 4 @@ -264237,70 +318443,95 @@ public static class AssemblyQuestLoader num2 = 3; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span55 = CollectionsMarshal.AsSpan(list206); - ref QuestStep reference161 = ref span55[0]; + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1035112u, new Vector3(457.32812f, 67.99535f, -108.20172f), 614); - num3 = 6; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span56 = CollectionsMarshal.AsSpan(list207); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list207 = new List(num4); + CollectionsMarshal.SetCount(list207, num4); + span4 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list207; reference161 = questStep11; - ref QuestStep reference162 = ref span55[1]; + index2++; + ref QuestStep reference162 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1019257u, new Vector3(468.55872f, 68.02771f, -93.21747f), 614); num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span57 = CollectionsMarshal.AsSpan(list208); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list208; reference162 = questStep12; - ref QuestStep reference163 = ref span55[2]; + index2++; + ref QuestStep reference163 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1035113u, new Vector3(404.77612f, 72.81784f, -80.338745f), 614) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span58 = CollectionsMarshal.AsSpan(list209); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + span4 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj153.CompletionQuestVariablesFlags = list209; reference163 = obj153; obj152.Steps = list206; reference160 = obj152; - ref QuestSequence reference164 = ref span54[5]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1035114u, new Vector3(382.62f, 85.20213f, -184.0086f), 614) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035114u, new Vector3(382.62f, 85.20213f, -184.0086f), 614) { Fly = true }; obj154.Steps = list210; reference164 = obj154; - ref QuestSequence reference165 = ref span54[6]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -264308,7 +318539,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -264327,21 +318560,26 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list212); + index = 0; + span[index] = "liza"; questRoot24.Author = list212; - num = 4; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span59 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference166 = ref span59[0]; + index = 4; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + span2 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -264359,7 +318597,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list214; reference166 = obj156; - ref QuestSequence reference167 = ref span59[1]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -264367,7 +318606,9 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1035116u, new Vector3(153.39893f, 18.1f, 50.70569f), 628) + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035116u, new Vector3(153.39893f, 18.1f, 50.70569f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264377,21 +318618,25 @@ public static class AssemblyQuestLoader }; obj157.Steps = list215; reference167 = obj157; - ref QuestSequence reference168 = ref span59[2]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { StopDistance = 5f }; obj158.Steps = list216; reference168 = obj158; - ref QuestSequence reference169 = ref span59[3]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -264399,7 +318644,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { StopDistance = 5f }; @@ -264412,21 +318659,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot25.Author = list218; - num = 2; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span60 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference170 = ref span60[0]; + index = 2; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list220)[0]; + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -264445,14 +318697,17 @@ public static class AssemblyQuestLoader num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = 131; + span6 = CollectionsMarshal.AsSpan(list221); + num4 = 0; + span6[num4] = 131; obj162.InTerritory = list221; skipConditions5.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions5; reference171 = obj161; obj160.Steps = list220; reference170 = obj160; - ref QuestSequence reference172 = ref span60[1]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -264460,7 +318715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(4773) @@ -264474,24 +318731,30 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list223); + index = 0; + span[index] = "liza"; questRoot26.Author = list223; - num = 17; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span61 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference173 = ref span61[0]; + index = 17; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + span2 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814); obj164.Steps = list225; reference173 = obj164; - ref QuestSequence reference174 = ref span61[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -264499,27 +318762,33 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Emote, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) { Emote = EEmote.Comfort }; obj165.Steps = list226; reference174 = obj165; - ref QuestSequence reference175 = ref span61[2]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1034056u, new Vector3(657.52637f, 297.47794f, -145.22015f), 814) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034056u, new Vector3(657.52637f, 297.47794f, -145.22015f), 814) { Fly = true }; obj166.Steps = list227; reference175 = obj166; - ref QuestSequence reference176 = ref span61[3]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -264527,27 +318796,33 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1034932u, new Vector3(618.61584f, 297.26785f, -170.30597f), 814) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034932u, new Vector3(618.61584f, 297.26785f, -170.30597f), 814) { Fly = true }; obj167.Steps = list228; reference176 = obj167; - ref QuestSequence reference177 = ref span61[4]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1034933u, new Vector3(412.46655f, 285.10947f, -163.74463f), 814) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034933u, new Vector3(412.46655f, 285.10947f, -163.74463f), 814) { Fly = true }; obj168.Steps = list229; reference177 = obj168; - ref QuestSequence reference178 = ref span61[5]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 5 @@ -264555,27 +318830,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1034934u, new Vector3(-31.47937f, 330.8092f, -35.90454f), 814) + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034934u, new Vector3(-31.47937f, 330.8092f, -35.90454f), 814) { Fly = true }; obj169.Steps = list230; reference178 = obj169; - ref QuestSequence reference179 = ref span61[6]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1034935u, new Vector3(-475.36432f, 334.0526f, -53.97119f), 814) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034935u, new Vector3(-475.36432f, 334.0526f, -53.97119f), 814) { Fly = true }; obj170.Steps = list231; reference179 = obj170; - ref QuestSequence reference180 = ref span61[7]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 7 @@ -264583,24 +318864,30 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1034936u, new Vector3(-452.3537f, 65.77815f, 93.03418f), 814); + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1034936u, new Vector3(-452.3537f, 65.77815f, 93.03418f), 814); obj171.Steps = list232; reference180 = obj171; - ref QuestSequence reference181 = ref span61[8]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1034930u, new Vector3(673.64f, 28.11754f, 272.9381f), 814) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1034930u, new Vector3(673.64f, 28.11754f, 272.9381f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj172.Steps = list233; reference181 = obj172; - ref QuestSequence reference182 = ref span61[9]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 9 @@ -264608,15 +318895,19 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - ref QuestStep reference183 = ref CollectionsMarshal.AsSpan(list234)[0]; + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + ref QuestStep reference183 = ref span3[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1034931u, new Vector3(534.08093f, 299.67776f, -184.22223f), 814) { StopDistance = 5f }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new DialogueChoice + num4 = 1; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + span5 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA401_03998_Q6_000_000"), @@ -264626,21 +318917,25 @@ public static class AssemblyQuestLoader reference183 = obj174; obj173.Steps = list234; reference182 = obj173; - ref QuestSequence reference184 = ref span61[10]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1035129u, new Vector3(613.73303f, 325.6843f, -224.93329f), 814) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035129u, new Vector3(613.73303f, 325.6843f, -224.93329f), 814) { Fly = true }; obj175.Steps = list236; reference184 = obj175; - ref QuestSequence reference185 = ref span61[11]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 11 @@ -264648,22 +318943,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2011273u, new Vector3(574.9447f, 296.71167f, -175.55511f), 814) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011273u, new Vector3(574.9447f, 296.71167f, -175.55511f), 814) { Fly = true }; obj176.Steps = list237; reference185 = obj176; - ref QuestSequence reference186 = ref span61[12]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 12 }; - num2 = 4; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span62 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference187 = ref span62[0]; + index2 = 4; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference187 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.07294f, 293.53958f, -159.18176f), 814) { Fly = true @@ -264673,37 +318972,45 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 928; + span6 = CollectionsMarshal.AsSpan(list239); + num4 = 0; + span6[num4] = 928; skipStepConditions3.InTerritory = list239; skipConditions6.StepIf = skipStepConditions3; obj178.SkipConditions = skipConditions6; reference187 = obj178; - ref QuestStep reference188 = ref span62[1]; + num2++; + ref QuestStep reference188 = ref span3[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 2011154u, new Vector3(703.1509f, 295.3993f, -160.20447f), 814) { TargetTerritoryId = (ushort)928 }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 928; + num4 = 1; + List list240 = new List(num4); + CollectionsMarshal.SetCount(list240, num4); + span6 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span6[num3] = 928; skipStepConditions4.InTerritory = list240; skipConditions7.StepIf = skipStepConditions4; obj179.SkipConditions = skipConditions7; reference188 = obj179; - span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - span62[3] = new QuestStep(EInteractionType.Interact, 2011274u, new Vector3(-277.69897f, 69.90149f, 274.00623f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011274u, new Vector3(-277.69897f, 69.90149f, 274.00623f), 928) { DelaySecondsAtStart = 5f }; obj177.Steps = list238; reference186 = obj177; - ref QuestSequence reference189 = ref span61[13]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 13 @@ -264711,16 +319018,19 @@ public static class AssemblyQuestLoader num2 = 28; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span63 = CollectionsMarshal.AsSpan(list241); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { RestartNavigationIfCancelled = false }; - span63[1] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[2] = new QuestStep(EInteractionType.Interact, 2011109u, new Vector3(-254.20007f, 29.984009f, 178.02698f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011109u, new Vector3(-254.20007f, 29.984009f, 178.02698f), 928) { SkipConditions = new SkipConditions { @@ -264730,29 +319040,37 @@ public static class AssemblyQuestLoader } } }; - span63[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); - span63[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); - span63[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) { DisableNavmesh = true }; - span63[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - span63[7] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - span63[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - span63[9] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[10] = new QuestStep(EInteractionType.Interact, 2011110u, new Vector3(-203.41809f, -150.53027f, -187.39612f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011110u, new Vector3(-203.41809f, -150.53027f, -187.39612f), 928) { SkipConditions = new SkipConditions { @@ -264762,8 +319080,10 @@ public static class AssemblyQuestLoader } } }; - span63[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); - span63[12] = new QuestStep(EInteractionType.Interact, 2011111u, new Vector3(-227.34424f, -149.06543f, -320.75995f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011111u, new Vector3(-227.34424f, -149.06543f, -320.75995f), 928) { StopDistance = 1f, SkipConditions = new SkipConditions @@ -264774,20 +319094,24 @@ public static class AssemblyQuestLoader } } }; - span63[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DisableNavmesh = true }; - span63[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span63[15] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[16] = new QuestStep(EInteractionType.Interact, 2011118u, new Vector3(-295.9182f, -203.99792f, -320.9735f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011118u, new Vector3(-295.9182f, -203.99792f, -320.9735f), 928) { SkipConditions = new SkipConditions { @@ -264797,15 +319121,18 @@ public static class AssemblyQuestLoader } } }; - span63[17] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { RestartNavigationIfCancelled = false }; - span63[18] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[19] = new QuestStep(EInteractionType.Interact, 2011115u, new Vector3(-386.25165f, -241.32147f, -314.99207f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011115u, new Vector3(-386.25165f, -241.32147f, -314.99207f), 928) { SkipConditions = new SkipConditions { @@ -264815,13 +319142,17 @@ public static class AssemblyQuestLoader } } }; - span63[20] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.89325f, -241.31789f, -313.52274f), 928); - span63[21] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.37668f, -244.75201f, -313.43954f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.89325f, -241.31789f, -313.52274f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.37668f, -244.75201f, -313.43954f), 928) { DisableNavmesh = true }; - span63[22] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.10797f, -244.75217f, -318.6855f), 928); - span63[23] = new QuestStep(EInteractionType.Interact, 2011113u, new Vector3(-372.85425f, -244.77002f, -303.18152f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.10797f, -244.75217f, -318.6855f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011113u, new Vector3(-372.85425f, -244.77002f, -303.18152f), 928) { SkipConditions = new SkipConditions { @@ -264831,7 +319162,8 @@ public static class AssemblyQuestLoader } } }; - span63[24] = new QuestStep(EInteractionType.Interact, 2011114u, new Vector3(-345.17438f, -244.77002f, -321.43134f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011114u, new Vector3(-345.17438f, -244.77002f, -321.43134f), 928) { SkipConditions = new SkipConditions { @@ -264841,27 +319173,32 @@ public static class AssemblyQuestLoader } } }; - span63[25] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.27484f, -244.75198f, -312.8948f), 928); - span63[26] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.58334f, -241.318f, -313.35168f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.27484f, -244.75198f, -312.8948f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.58334f, -241.318f, -313.35168f), 928) { DisableNavmesh = true }; - span63[27] = new QuestStep(EInteractionType.Interact, 2011275u, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011275u, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 1f }; obj180.Steps = list241; reference189 = obj180; - ref QuestSequence reference190 = ref span61[14]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 14 }; - num2 = 7; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span64 = CollectionsMarshal.AsSpan(list242); - span64[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + index2 = 7; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -264869,7 +319206,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - span64[1] = new QuestStep(EInteractionType.Interact, 2011112u, new Vector3(-366.47595f, -249.80548f, -318.89832f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011112u, new Vector3(-366.47595f, -249.80548f, -318.89832f), 928) { StopDistance = 1f, SkipConditions = new SkipConditions @@ -264880,11 +319218,13 @@ public static class AssemblyQuestLoader } } }; - span64[2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 }; - span64[3] = new QuestStep(EInteractionType.Interact, 2011116u, new Vector3(193.89636f, -500.0229f, -89.7384f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011116u, new Vector3(193.89636f, -500.0229f, -89.7384f), 928) { SkipConditions = new SkipConditions { @@ -264894,8 +319234,10 @@ public static class AssemblyQuestLoader } } }; - span64[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.90454f, -500.00003f, -476.80316f), 928); - span64[5] = new QuestStep(EInteractionType.Interact, 2011117u, new Vector3(253.13184f, -500.0229f, -484.39764f), 928) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.90454f, -500.00003f, -476.80316f), 928); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011117u, new Vector3(253.13184f, -500.0229f, -484.39764f), 928) { SkipConditions = new SkipConditions { @@ -264905,10 +319247,12 @@ public static class AssemblyQuestLoader } } }; - span64[6] = new QuestStep(EInteractionType.Interact, 2011276u, new Vector3(200f, -478.47717f, -558.8312f), 928); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011276u, new Vector3(200f, -478.47717f, -558.8312f), 928); obj181.Steps = list242; reference190 = obj181; - ref QuestSequence reference191 = ref span61[15]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 15 @@ -264916,23 +319260,28 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1035130u, new Vector3(-16.372986f, 0.039723f, -70.481445f), 895); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035130u, new Vector3(-16.372986f, 0.039723f, -70.481445f), 895); obj182.Steps = list243; reference191 = obj182; - ref QuestSequence reference192 = ref span61[16]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span65 = CollectionsMarshal.AsSpan(list244); - span65[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + index2 = 2; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, NextQuestId = new QuestId(4034) @@ -264946,13 +319295,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "liza"; questRoot27.Author = list245; - num = 4; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span66 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference193 = ref span66[0]; + index = 4; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -264960,8 +319312,9 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span67 = CollectionsMarshal.AsSpan(list247); - span67[0] = new QuestStep(EInteractionType.None, null, null, 886) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -264970,7 +319323,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1035506u, new Vector3(49.729126f, -18.746954f, 7.675232f), 886) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035506u, new Vector3(49.729126f, -18.746954f, 7.675232f), 886) { AethernetShortcut = new AethernetShortcut { @@ -264980,15 +319334,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list247; reference193 = obj184; - ref QuestSequence reference194 = ref span66[1]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1035508u, new Vector3(-99.13794f, 0f, -132.86035f), 886) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035508u, new Vector3(-99.13794f, 0f, -132.86035f), 886) { AethernetShortcut = new AethernetShortcut { @@ -264998,7 +319355,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list248; reference194 = obj185; - ref QuestSequence reference195 = ref span66[2]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -265006,7 +319364,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1035509u, new Vector3(119.58484f, -20f, -135.36285f), 886) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035509u, new Vector3(119.58484f, -20f, -135.36285f), 886) { AethernetShortcut = new AethernetShortcut { @@ -265016,15 +319376,18 @@ public static class AssemblyQuestLoader }; obj186.Steps = list249; reference195 = obj186; - ref QuestSequence reference196 = ref span66[3]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035510u, new Vector3(21.011597f, 1.0151416E-07f, -159.53314f), 886) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035510u, new Vector3(21.011597f, 1.0151416E-07f, -159.53314f), 886) { NextQuestId = new QuestId(4000) }; @@ -265041,13 +319404,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -265055,24 +319421,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035520u, new Vector3(19.943481f, 1.8347055E-07f, -158.92273f), 886) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035520u, new Vector3(19.943481f, 1.8347055E-07f, -158.92273f), 886) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1035507u, new Vector3(48.41687f, -18.742718f, 6.576599f), 886); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035507u, new Vector3(48.41687f, -18.742718f, 6.576599f), 886); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -265080,18 +319452,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2011307u, new Vector3(49.94275f, -18.753357f, 10.910156f), 886); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011307u, new Vector3(49.94275f, -18.753357f, 10.910156f), 886); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2011308u, new Vector3(215.62524f, -36.881104f, -3.5858765f), 886) { AethernetShortcut = new AethernetShortcut @@ -265103,7 +319480,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list7); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA302_04000_Q2_000_000") @@ -265112,7 +319491,8 @@ public static class AssemblyQuestLoader reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -265120,12 +319500,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011308u, new Vector3(215.62524f, -36.881104f, -3.5858765f), 886); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span4 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA302_04000_Q3_000_000") @@ -265134,15 +319518,18 @@ public static class AssemblyQuestLoader reference7 = questStep; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { NextQuestId = new QuestId(4001) }; @@ -265155,13 +319542,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "liza"; questRoot2.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -265169,18 +319559,23 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886); obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + ref QuestStep reference11 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { Comment = "Concert can be skipped via ESC → Quit Game" @@ -265188,7 +319583,9 @@ public static class AssemblyQuestLoader num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA303_04001_Q2_000_000"), @@ -265198,7 +319595,8 @@ public static class AssemblyQuestLoader reference11 = obj10; obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference12 = ref span2[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -265206,7 +319604,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { NextQuestId = new QuestId(4002) }; @@ -265219,24 +319619,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span3 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span3[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035527u, new Vector3(196.82605f, -40f, -11.062805f), 886); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035527u, new Vector3(196.82605f, -40f, -11.062805f), 886); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span3[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -265244,7 +319650,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) { AethernetShortcut = new AethernetShortcut { @@ -265254,15 +319662,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span3[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) { NextQuestId = new QuestId(4079) }; @@ -265275,13 +319686,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span4 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span4[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -265289,21 +319703,27 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference17 = ref span4[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1035339u, new Vector3(-54.8562f, 2.0050092f, 11.276367f), 351); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035339u, new Vector3(-54.8562f, 2.0050092f, 11.276367f), 351); obj16.Steps = list25; reference17 = obj16; - ref QuestSequence reference18 = ref span4[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -265311,22 +319731,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1035342u, new Vector3(125.50537f, -15.184305f, -424.21613f), 156) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035342u, new Vector3(125.50537f, -15.184305f, -424.21613f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj17.Steps = list26; reference18 = obj17; - ref QuestSequence reference19 = ref span4[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035344u, new Vector3(-894.5907f, -184.29301f, -639.33777f), 402); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035344u, new Vector3(-894.5907f, -184.29301f, -639.33777f), 402); obj18.Steps = list27; reference19 = obj18; questRoot4.QuestSequence = list23; @@ -265336,13 +319761,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot5.Author = list28; - num = 6; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span5 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference20 = ref span5[0]; + index = 6; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -265350,24 +319778,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035345u, new Vector3(-894.52966f, -184.293f, -637.6593f), 402); + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035345u, new Vector3(-894.52966f, -184.293f, -637.6593f), 402); obj19.Steps = list30; reference20 = obj19; - ref QuestSequence reference21 = ref span5[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1035348u, new Vector3(-639.33777f, -176.4502f, -577.2335f), 402) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035348u, new Vector3(-639.33777f, -176.4502f, -577.2335f), 402) { Fly = true }; obj20.Steps = list31; reference21 = obj20; - ref QuestSequence reference22 = ref span5[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -265375,35 +319809,43 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) { Fly = true }; obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span5[3]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list33)[0]; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference24 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2011330u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 12661u; + index3 = 1; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span5 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span5[num3] = 12661u; obj23.KillEnemyDataIds = list34; reference24 = obj23; obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference25 = ref span5[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 @@ -265411,21 +319853,26 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 2011331u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011331u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) { StopDistance = 5f }; obj24.Steps = list35; reference25 = obj24; - ref QuestSequence reference26 = ref span5[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) { Fly = true }; @@ -265438,13 +319885,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; questRoot6.Author = list37; - num = 6; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span6 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference27 = ref span6[0]; + index = 6; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -265452,27 +319902,33 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402); obj26.Steps = list39; reference27 = obj26; - ref QuestSequence reference28 = ref span6[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span7 = CollectionsMarshal.AsSpan(list40); - span7[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span7[1] = new QuestStep(EInteractionType.Interact, 1035355u, new Vector3(-0.35101318f, 0f, -6.9123535f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035355u, new Vector3(-0.35101318f, 0f, -6.9123535f), 351); obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference29 = ref span6[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -265480,29 +319936,35 @@ public static class AssemblyQuestLoader num2 = 2; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span8 = CollectionsMarshal.AsSpan(list41); - span8[0] = new QuestStep(EInteractionType.Interact, 2011104u, new Vector3(-11.001831f, 1.4800415f, -6.9733887f), 351) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011104u, new Vector3(-11.001831f, 1.4800415f, -6.9733887f), 351) { TargetTerritoryId = (ushort)351 }; - span8[1] = new QuestStep(EInteractionType.Interact, 2011332u, new Vector3(-56.717834f, 1.9989014f, 14.633362f), 351); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011332u, new Vector3(-56.717834f, 1.9989014f, 14.633362f), 351); obj28.Steps = list41; reference29 = obj28; - ref QuestSequence reference30 = ref span6[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1035360u, new Vector3(-58.15222f, 2.0050092f, 14.541748f), 351) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035360u, new Vector3(-58.15222f, 2.0050092f, 14.541748f), 351) { StopDistance = 5f }; obj29.Steps = list42; reference30 = obj29; - ref QuestSequence reference31 = ref span6[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 4 @@ -265510,8 +319972,9 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span9 = CollectionsMarshal.AsSpan(list43); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.08533f, 16.999998f, -48.293888f), 418) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.08533f, 16.999998f, -48.293888f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -265520,18 +319983,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1014578u, new Vector3(-148.02783f, 16.999998f, -48.844177f), 418); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1014578u, new Vector3(-148.02783f, 16.999998f, -48.844177f), 418); obj30.Steps = list43; reference31 = obj30; - ref QuestSequence reference32 = ref span6[5]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035363u, new Vector3(164.47693f, -12.634913f, -13.290649f), 419) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035363u, new Vector3(164.47693f, -12.634913f, -13.290649f), 419) { AethernetShortcut = new AethernetShortcut { @@ -265548,13 +320015,16 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot7.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span10 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference33 = ref span10[0]; + index = 3; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -265562,7 +320032,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list47)[0]; + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.AcceptQuest, 1035354u, new Vector3(-1.0223389f, 0f, -8.529846f), 351) { StopDistance = 5f @@ -265570,7 +320042,9 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMJ104_04010_Q1_000_000"), @@ -265580,15 +320054,18 @@ public static class AssemblyQuestLoader reference34 = obj33; obj32.Steps = list47; reference33 = obj32; - ref QuestSequence reference35 = ref span10[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1035364u, new Vector3(68.558716f, 40f, 69.90149f), 128) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035364u, new Vector3(68.558716f, 40f, 69.90149f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -265599,7 +320076,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list49; reference35 = obj34; - ref QuestSequence reference36 = ref span10[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -265607,7 +320085,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035366u, new Vector3(-110.09387f, 39.999992f, 116.990845f), 128) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035366u, new Vector3(-110.09387f, 39.999992f, 116.990845f), 128) { StopDistance = 5f }; @@ -265620,27 +320100,33 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; questRoot8.Author = list51; - num = 7; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span11 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference37 = ref span11[0]; + index = 7; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035367u, new Vector3(-108.72058f, 39.999996f, 117.17395f), 128) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035367u, new Vector3(-108.72058f, 39.999996f, 117.17395f), 128) { StopDistance = 5f }; obj36.Steps = list53; reference37 = obj36; - ref QuestSequence reference38 = ref span11[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -265648,7 +320134,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1035374u, new Vector3(-481.80365f, 137.42972f, 698.63416f), 399) + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035374u, new Vector3(-481.80365f, 137.42972f, 698.63416f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -265660,21 +320148,25 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference38 = obj37; - ref QuestSequence reference39 = ref span11[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 5f }; obj38.Steps = list55; reference39 = obj38; - ref QuestSequence reference40 = ref span11[3]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 3 @@ -265682,7 +320174,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1035380u, new Vector3(382.77246f, 75.28701f, -222.03406f), 399) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035380u, new Vector3(382.77246f, 75.28701f, -222.03406f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -265694,15 +320188,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference40 = obj39; - ref QuestSequence reference41 = ref span11[4]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -265711,11 +320208,13 @@ public static class AssemblyQuestLoader }; obj40.Steps = list57; reference41 = obj40; - span11[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference42 = ref span11[6]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -265723,7 +320222,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); obj41.Steps = list58; reference42 = obj41; questRoot8.QuestSequence = list52; @@ -265733,24 +320234,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "liza"; questRoot9.Author = list59; - num = 5; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span12 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference43 = ref span12[0]; + index = 5; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); obj42.Steps = list61; reference43 = obj42; - ref QuestSequence reference44 = ref span12[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -265758,24 +320265,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj43.Steps = list62; reference44 = obj43; - ref QuestSequence reference45 = ref span12[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129); obj44.Steps = list63; reference45 = obj44; - ref QuestSequence reference46 = ref span12[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -265783,8 +320296,9 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span13 = CollectionsMarshal.AsSpan(list64); - span13[0] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128) { AethernetShortcut = new AethernetShortcut { @@ -265792,7 +320306,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - span13[1] = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -265803,15 +320318,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference46 = obj45; - ref QuestSequence reference47 = ref span12[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; @@ -265824,13 +320342,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; questRoot10.Author = list66; - num = 3; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span14 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference48 = ref span14[0]; + index = 3; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -265838,28 +320359,34 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) { StopDistance = 5f }; obj47.Steps = list68; reference48 = obj47; - ref QuestSequence reference49 = ref span14[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1035389u, new Vector3(85.09949f, 68.15523f, 341.90894f), 135) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035389u, new Vector3(85.09949f, 68.15523f, 341.90894f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj48.Steps = list69; reference49 = obj48; - ref QuestSequence reference50 = ref span14[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -265867,7 +320394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135) { Fly = true }; @@ -265880,24 +320409,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot11.Author = list71; - num = 3; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span15 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference51 = ref span15[0]; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135); obj50.Steps = list73; reference51 = obj50; - ref QuestSequence reference52 = ref span15[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 @@ -265905,34 +320440,41 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span16 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference53 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference53 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span4 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMJ108_04014_SYSTEM_100_010") }; obj52.DialogueChoices = list75; reference53 = obj52; - span16[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj51.Steps = list74; reference52 = obj51; - ref QuestSequence reference54 = ref span15[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj53.Steps = list76; reference54 = obj53; questRoot11.QuestSequence = list72; @@ -265942,13 +320484,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot12.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span17 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span17[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -265956,24 +320501,30 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj54.Steps = list79; reference55 = obj54; - ref QuestSequence reference56 = ref span17[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1035399u, new Vector3(-105.21106f, 64.43899f, -243.15253f), 180) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035399u, new Vector3(-105.21106f, 64.43899f, -243.15253f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj55.Steps = list80; reference56 = obj55; - ref QuestSequence reference57 = ref span17[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -265981,21 +320532,26 @@ public static class AssemblyQuestLoader num2 = 5; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span18 = CollectionsMarshal.AsSpan(list81); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.600548f, 77.45801f, -366.82053f), 180) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.600548f, 77.45801f, -366.82053f), 180) { Fly = true }; - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.927666f, 26.050894f, -612.8873f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.927666f, 26.050894f, -612.8873f), 180) { Fly = true }; - span18[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(82.19566f, 25.922153f, -711.6839f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(82.19566f, 25.922153f, -711.6839f), 180) { Fly = true }; - span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.6921f, 23.33508f, -719.46643f), 180); - span18[4] = new QuestStep(EInteractionType.SinglePlayerDuty, 1035401u, new Vector3(142.71753f, 24.40421f, -634.54645f), 180) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.6921f, 23.33508f, -719.46643f), 180); + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1035401u, new Vector3(142.71753f, 24.40421f, -634.54645f), 180) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -266004,15 +320560,18 @@ public static class AssemblyQuestLoader }; obj56.Steps = list81; reference57 = obj56; - ref QuestSequence reference58 = ref span17[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035407u, new Vector3(-103.71564f, 64.39152f, -241.32147f), 180) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035407u, new Vector3(-103.71564f, 64.39152f, -241.32147f), 180) { StopDistance = 5f }; @@ -266025,13 +320584,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; questRoot13.Author = list83; - num = 4; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span19 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference59 = ref span19[0]; + index = 4; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -266039,27 +320601,33 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035398u, new Vector3(-106.126526f, 64.45569f, -242.66425f), 180) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035398u, new Vector3(-106.126526f, 64.45569f, -242.66425f), 180) { StopDistance = 7f }; obj58.Steps = list85; reference59 = obj58; - ref QuestSequence reference60 = ref span19[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1035409u, new Vector3(581.62805f, 80f, 621.7898f), 621) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035409u, new Vector3(581.62805f, 80f, 621.7898f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj59.Steps = list86; reference60 = obj59; - ref QuestSequence reference61 = ref span19[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -266067,27 +320635,32 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1035414u, new Vector3(739.4979f, 70f, 526.48206f), 621) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035414u, new Vector3(739.4979f, 70f, 526.48206f), 621) { StopDistance = 5f }; obj60.Steps = list87; reference61 = obj60; - ref QuestSequence reference62 = ref span19[3]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span20 = CollectionsMarshal.AsSpan(list88); - span20[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); obj61.Steps = list88; reference62 = obj61; questRoot13.QuestSequence = list84; @@ -266097,13 +320670,16 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "liza"; questRoot14.Author = list89; - num = 9; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span21 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference63 = ref span21[0]; + index = 9; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -266111,7 +320687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -266124,20 +320702,25 @@ public static class AssemblyQuestLoader }; obj62.Steps = list91; reference63 = obj62; - ref QuestSequence reference64 = ref span21[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list92)[0]; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621); num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW401_04031_Q9_000_000") @@ -266146,7 +320729,8 @@ public static class AssemblyQuestLoader reference65 = questStep2; obj63.Steps = list92; reference64 = obj63; - ref QuestSequence reference66 = ref span21[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -266154,21 +320738,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1033633u, new Vector3(7.2785034f, 41f, 8.255066f), 919); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033633u, new Vector3(7.2785034f, 41f, 8.255066f), 919); obj64.Steps = list94; reference66 = obj64; - ref QuestSequence reference67 = ref span21[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1036280u, new Vector3(45.88379f, 35f, 68.22302f), 919); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036280u, new Vector3(45.88379f, 35f, 68.22302f), 919); obj65.Steps = list95; reference67 = obj65; - ref QuestSequence reference68 = ref span21[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -266176,21 +320766,27 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1036281u, new Vector3(-1.3580933f, 41f, 19.394226f), 919); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036281u, new Vector3(-1.3580933f, 41f, 19.394226f), 919); obj66.Steps = list96; reference68 = obj66; - ref QuestSequence reference69 = ref span21[5]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); obj67.Steps = list97; reference69 = obj67; - ref QuestSequence reference70 = ref span21[6]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 6 @@ -266198,7 +320794,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Duty, null, null, 991) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 991) { DutyOptions = new DutyOptions { @@ -266207,18 +320805,22 @@ public static class AssemblyQuestLoader }; obj68.Steps = list98; reference70 = obj68; - ref QuestSequence reference71 = ref span21[7]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); obj69.Steps = list99; reference71 = obj69; - ref QuestSequence reference72 = ref span21[8]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -266226,7 +320828,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919) { NextQuestId = new QuestId(4032) }; @@ -266239,24 +320843,30 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "liza"; questRoot15.Author = list101; - num = 8; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span22 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference73 = ref span22[0]; + index = 8; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); obj71.Steps = list103; reference73 = obj71; - ref QuestSequence reference74 = ref span22[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -266264,25 +320874,31 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span23 = CollectionsMarshal.AsSpan(list104); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); - span23[1] = new QuestStep(EInteractionType.Interact, 1036412u, new Vector3(53.391357f, 34.999996f, 80.094604f), 919); + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036412u, new Vector3(53.391357f, 34.999996f, 80.094604f), 919); obj72.Steps = list104; reference74 = obj72; - ref QuestSequence reference75 = ref span22[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span24 = CollectionsMarshal.AsSpan(list105); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); - span24[1] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); + index2 = 2; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); obj73.Steps = list105; reference75 = obj73; - ref QuestSequence reference76 = ref span22[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -266290,24 +320906,30 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2011480u, new Vector3(-17.227417f, 40.97046f, 5.2948f), 919) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011480u, new Vector3(-17.227417f, 40.97046f, 5.2948f), 919) { StopDistance = 4.5f }; obj74.Steps = list106; reference76 = obj74; - ref QuestSequence reference77 = ref span22[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); obj75.Steps = list107; reference77 = obj75; - ref QuestSequence reference78 = ref span22[5]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -266315,27 +320937,33 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1036285u, new Vector3(-16.372986f, 40.999996f, 3.8909912f), 919) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036285u, new Vector3(-16.372986f, 40.999996f, 3.8909912f), 919) { StopDistance = 5f }; obj76.Steps = list108; reference78 = obj76; - ref QuestSequence reference79 = ref span22[6]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1036287u, new Vector3(-19.089111f, 41f, 3.768982f), 919) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036287u, new Vector3(-19.089111f, 41f, 3.768982f), 919) { StopDistance = 7f }; obj77.Steps = list109; reference79 = obj77; - ref QuestSequence reference80 = ref span22[7]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -266343,8 +320971,9 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span25 = CollectionsMarshal.AsSpan(list110); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -266356,7 +320985,8 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621); obj78.Steps = list110; reference80 = obj78; questRoot15.QuestSequence = list102; @@ -266366,21 +320996,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list111; - num = 6; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span26 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference81 = ref span26[0]; + index = 6; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -266391,7 +321026,8 @@ public static class AssemblyQuestLoader }; obj79.Steps = list113; reference81 = obj79; - ref QuestSequence reference82 = ref span26[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -266399,7 +321035,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) { AethernetShortcut = new AethernetShortcut { @@ -266409,21 +321047,25 @@ public static class AssemblyQuestLoader }; obj80.Steps = list114; reference82 = obj80; - ref QuestSequence reference83 = ref span26[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2011356u, new Vector3(58.304688f, -0.015319824f, 84.27551f), 635) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011356u, new Vector3(58.304688f, -0.015319824f, 84.27551f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj81.Steps = list115; reference83 = obj81; - ref QuestSequence reference84 = ref span26[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -266431,24 +321073,30 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621); obj82.Steps = list116; reference84 = obj82; - ref QuestSequence reference85 = ref span26[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj83.Steps = list117; reference85 = obj83; - ref QuestSequence reference86 = ref span26[5]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -266456,7 +321104,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AethernetShortcut = new AethernetShortcut { @@ -266473,24 +321123,30 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "liza"; questRoot17.Author = list119; - num = 8; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span27 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference87 = ref span27[0]; + index = 8; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj85.Steps = list121; reference87 = obj85; - ref QuestSequence reference88 = ref span27[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -266498,35 +321154,41 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span28 = CollectionsMarshal.AsSpan(list122); - span28[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span28[1] = new QuestStep(EInteractionType.Interact, 1035131u, new Vector3(-3.6469727f, -3.475783E-11f, -58.121643f), 895); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035131u, new Vector3(-3.6469727f, -3.475783E-11f, -58.121643f), 895); obj86.Steps = list122; reference88 = obj86; - ref QuestSequence reference89 = ref span27[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span29 = CollectionsMarshal.AsSpan(list123); - span29[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + index2 = 2; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span29[1] = new QuestStep(EInteractionType.Interact, 1035132u, new Vector3(545.4337f, 295.66992f, -221.45422f), 814) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035132u, new Vector3(545.4337f, 295.66992f, -221.45422f), 814) { Fly = true }; obj87.Steps = list123; reference89 = obj87; - ref QuestSequence reference90 = ref span27[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 @@ -266534,24 +321196,30 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2011442u, new Vector3(-8.957031f, 0.503479f, -65.26294f), 895); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011442u, new Vector3(-8.957031f, 0.503479f, -65.26294f), 895); obj88.Steps = list124; reference90 = obj88; - ref QuestSequence reference91 = ref span27[4]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1035134u, new Vector3(711.635f, 286.3896f, -122.78937f), 814) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1035134u, new Vector3(711.635f, 286.3896f, -122.78937f), 814) { StopDistance = 7f }; obj89.Steps = list125; reference91 = obj89; - ref QuestSequence reference92 = ref span27[5]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 5 @@ -266559,25 +321227,33 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span30 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference93 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1034054u, new Vector3(659.75415f, 297.47797f, -145.15906f), 814) { Fly = true }; - num3 = 6; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span31 = CollectionsMarshal.AsSpan(list127); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + Span span6 = CollectionsMarshal.AsSpan(list127); + 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); obj91.CompletionQuestVariablesFlags = list127; reference93 = obj91; - ref QuestStep reference94 = ref span30[1]; + index2++; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 1027299u, new Vector3(638.11694f, 297.44974f, -180.19385f), 814) { Fly = true @@ -266585,49 +321261,66 @@ public static class AssemblyQuestLoader num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span32 = CollectionsMarshal.AsSpan(list128); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list128; reference94 = obj92; - ref QuestStep reference95 = ref span30[2]; + index2++; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1027486u, new Vector3(608.8501f, 297.4718f, -165.45361f), 814) { Fly = true }; - num3 = 6; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span33 = CollectionsMarshal.AsSpan(list129); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span6 = CollectionsMarshal.AsSpan(list129); + 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); obj93.CompletionQuestVariablesFlags = list129; reference95 = obj93; obj90.Steps = list126; reference92 = obj90; - ref QuestSequence reference96 = ref span27[6]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 2011447u, new Vector3(711.6044f, 286.12183f, -121.50757f), 814) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011447u, new Vector3(711.6044f, 286.12183f, -121.50757f), 814) { Fly = true }; obj94.Steps = list130; reference96 = obj94; - ref QuestSequence reference97 = ref span27[7]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -266635,7 +321328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list131)[0]; + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.CompleteQuest, 1035135u, new Vector3(-361.37946f, 105.987305f, 347.12744f), 928) { StopDistance = 5f @@ -266643,14 +321338,16 @@ public static class AssemblyQuestLoader num3 = 2; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span34 = CollectionsMarshal.AsSpan(list132); - span34[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA501_04034_Q5_000_000"), Answer = new ExcelRef("TEXT_LUCKTA501_04034_A5_000_001") }; - span34[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA501_04034_Q6_000_000"), @@ -266668,29 +321365,36 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list133); + index = 0; + span[index] = "liza"; questRoot18.Author = list133; - num = 4; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span35 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference99 = ref span35[0]; + index = 4; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + span2 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference100 = ref CollectionsMarshal.AsSpan(list135)[0]; + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj98 = new QuestStep(EInteractionType.AcceptQuest, 1035135u, new Vector3(-361.37946f, 105.987305f, 347.12744f), 928) { StopDistance = 5f }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + span4 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA502_04035_Q1_000_000"), @@ -266700,7 +321404,8 @@ public static class AssemblyQuestLoader reference100 = obj98; obj97.Steps = list135; reference99 = obj97; - ref QuestSequence reference101 = ref span35[1]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -266708,53 +321413,65 @@ public static class AssemblyQuestLoader num2 = 14; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span36 = CollectionsMarshal.AsSpan(list137); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span36[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928) { DelaySecondsAtStart = 2f }; - span36[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); - span36[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) { DisableNavmesh = true }; - span36[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - span36[6] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - span36[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - span36[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DelaySecondsAtStart = 2f, DisableNavmesh = true }; - span36[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span36[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span36[11] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, DelaySecondsAtStart = 2f, @@ -266763,22 +321480,27 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - span36[12] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 }; - span36[13] = new QuestStep(EInteractionType.Interact, 2011440u, new Vector3(200f, -478.47717f, -558.8312f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011440u, new Vector3(200f, -478.47717f, -558.8312f), 928); obj99.Steps = list137; reference101 = obj99; - ref QuestSequence reference102 = ref span35[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Duty, null, null, 928) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 928) { DutyOptions = new DutyOptions { @@ -266787,7 +321509,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list138; reference102 = obj100; - ref QuestSequence reference103 = ref span35[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -266795,7 +321518,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) { StopDistance = 5f, NextQuestId = new QuestId(4036) @@ -266809,27 +321534,33 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "liza"; questRoot19.Author = list140; - num = 8; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span37 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference104 = ref span37[0]; + index = 8; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) { StopDistance = 5f }; obj102.Steps = list142; reference104 = obj102; - ref QuestSequence reference105 = ref span37[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -266837,30 +321568,36 @@ public static class AssemblyQuestLoader num2 = 2; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span38 = CollectionsMarshal.AsSpan(list143); - span38[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span38[1] = new QuestStep(EInteractionType.Interact, 1035141u, new Vector3(-13.382202f, 0.039723f, -66.11737f), 895); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035141u, new Vector3(-13.382202f, 0.039723f, -66.11737f), 895); obj103.Steps = list143; reference105 = obj103; - ref QuestSequence reference106 = ref span37[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; obj104.Steps = list144; reference106 = obj104; - ref QuestSequence reference107 = ref span37[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -266868,30 +321605,36 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span39 = CollectionsMarshal.AsSpan(list145); - span39[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span39[1] = new QuestStep(EInteractionType.Interact, 1035133u, new Vector3(-6.881897f, 0.029997535f, -63.187683f), 895); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1035133u, new Vector3(-6.881897f, 0.029997535f, -63.187683f), 895); obj105.Steps = list145; reference107 = obj105; - ref QuestSequence reference108 = ref span37[4]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 2011441u, new Vector3(-3.5858765f, -0.015319824f, -58.06067f), 895) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011441u, new Vector3(-3.5858765f, -0.015319824f, -58.06067f), 895) { StopDistance = 4f }; obj106.Steps = list146; reference108 = obj106; - ref QuestSequence reference109 = ref span37[5]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -266899,25 +321642,35 @@ public static class AssemblyQuestLoader num2 = 6; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span40 = CollectionsMarshal.AsSpan(list147); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.2522326f, 0f, -52.14471f), 895); - ref QuestStep reference110 = ref span40[1]; + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.2522326f, 0f, -52.14471f), 895); + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1035148u, new Vector3(2.39563f, -3.2740335E-11f, -54.61206f), 895); num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span41 = CollectionsMarshal.AsSpan(list148); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list148; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + index3 = 1; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + span4 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q9_000_000"), @@ -266925,23 +321678,32 @@ public static class AssemblyQuestLoader }; questStep3.DialogueChoices = list149; reference110 = questStep3; - ref QuestStep reference111 = ref span40[2]; + index2++; + ref QuestStep reference111 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1035144u, new Vector3(3.9520264f, -3.2538423E-11f, -54.24591f), 895); num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span42 = CollectionsMarshal.AsSpan(list150); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list150; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + index3 = 1; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + span4 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q6_000_000"), @@ -266949,23 +321711,32 @@ public static class AssemblyQuestLoader }; questStep4.DialogueChoices = list151; reference111 = questStep4; - ref QuestStep reference112 = ref span40[3]; + index2++; + ref QuestStep reference112 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1035145u, new Vector3(4.8981323f, -3.0844622E-11f, -51.407654f), 895); num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span43 = CollectionsMarshal.AsSpan(list152); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list152; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + index3 = 1; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + span4 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q7_000_000"), @@ -266973,23 +321744,32 @@ public static class AssemblyQuestLoader }; questStep5.DialogueChoices = list153; reference112 = questStep5; - ref QuestStep reference113 = ref span40[4]; + index2++; + ref QuestStep reference113 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1035146u, new Vector3(4.3182373f, -3.024035E-11f, -50.400574f), 895); num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span44 = CollectionsMarshal.AsSpan(list154); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list154; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span4 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q8_000_000"), @@ -266997,23 +321777,32 @@ public static class AssemblyQuestLoader }; questStep6.DialogueChoices = list155; reference113 = questStep6; - ref QuestStep reference114 = ref span40[5]; + index2++; + ref QuestStep reference114 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1035147u, new Vector3(0.62561035f, -3.0313623E-11f, -50.522705f), 895); num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span45 = CollectionsMarshal.AsSpan(list156); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list156; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span4 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q10_000_000"), @@ -267023,20 +321812,25 @@ public static class AssemblyQuestLoader reference114 = questStep7; obj107.Steps = list147; reference109 = obj107; - ref QuestSequence reference115 = ref span37[6]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference116 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1035630u, new Vector3(2.2124634f, -3.161355E-11f, -52.689453f), 895); num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q11_000_000"), @@ -267046,7 +321840,8 @@ public static class AssemblyQuestLoader reference116 = questStep8; obj108.Steps = list158; reference115 = obj108; - ref QuestSequence reference117 = ref span37[7]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -267054,12 +321849,14 @@ public static class AssemblyQuestLoader num2 = 2; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span46 = CollectionsMarshal.AsSpan(list160); - span46[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, NextQuestId = new QuestId(4043) @@ -267073,26 +321870,33 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot20.Author = list161; - num = 2; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span47 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference118 = ref span47[0]; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference119 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span4 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA510_04043_Q1_000_000"), @@ -267102,7 +321906,8 @@ public static class AssemblyQuestLoader reference119 = questStep9; obj110.Steps = list163; reference118 = obj110; - ref QuestSequence reference120 = ref span47[1]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -267110,7 +321915,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814); obj111.Steps = list165; reference120 = obj111; questRoot20.QuestSequence = list162; @@ -267120,20 +321927,26 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "liza"; questRoot21.Author = list166; - num = 1; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - ref QuestSequence reference121 = ref CollectionsMarshal.AsSpan(list167)[0]; + index = 1; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj112.Steps = list168; reference121 = obj112; questRoot21.QuestSequence = list167; @@ -267143,12 +321956,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; questRoot22.Author = list169; - num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - ref QuestSequence reference122 = ref CollectionsMarshal.AsSpan(list170)[0]; + index = 1; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -267156,7 +321973,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj113.Steps = list171; reference122 = obj113; questRoot22.QuestSequence = list170; @@ -267166,20 +321985,26 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "liza"; questRoot23.Author = list172; - num = 1; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - ref QuestSequence reference123 = ref CollectionsMarshal.AsSpan(list173)[0]; + index = 1; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj114.Steps = list174; reference123 = obj114; questRoot23.QuestSequence = list173; @@ -267189,12 +322014,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "liza"; questRoot24.Author = list175; - num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - ref QuestSequence reference124 = ref CollectionsMarshal.AsSpan(list176)[0]; + index = 1; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -267202,7 +322031,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj115.Steps = list177; reference124 = obj115; questRoot24.QuestSequence = list176; @@ -267212,20 +322043,26 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "liza"; questRoot25.Author = list178; - num = 1; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - ref QuestSequence reference125 = ref CollectionsMarshal.AsSpan(list179)[0]; + index = 1; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj116.Steps = list180; reference125 = obj116; questRoot25.QuestSequence = list179; @@ -267235,12 +322072,16 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list181); + index = 0; + span[index] = "liza"; questRoot26.Author = list181; - num = 1; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - ref QuestSequence reference126 = ref CollectionsMarshal.AsSpan(list182)[0]; + index = 1; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + span2 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -267248,7 +322089,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj117.Steps = list183; reference126 = obj117; questRoot26.QuestSequence = list182; @@ -267262,13 +322105,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -267276,7 +322122,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) { Fly = true, @@ -267292,14 +322140,16 @@ public static class AssemblyQuestLoader int num3 = 2; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA521_04050_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKTA521_04050_A1_000_002") }; - span2[1] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA521_04050_Q2_000_000"), @@ -267309,64 +322159,85 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + index2 = 7; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span3[1] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) { TargetTerritoryId = (ushort)896 }; - span3[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); - span3[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); - span3[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - ref QuestStep reference4 = ref span3[5]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2011457u, new Vector3(-643.4882f, 338.39917f, -353.8415f), 896) { DelaySecondsAtStart = 2f }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span5 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span3[6]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011456u, new Vector3(-679.56055f, 335.31702f, -307.88135f), 896); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list7; reference5 = questStep; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -267374,7 +322245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -267388,21 +322261,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.AcceptQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) { Fly = true, @@ -267415,10 +322293,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + num4 = 1; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + span4 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA522_04051_Q1_000_000"), @@ -267428,7 +322308,8 @@ public static class AssemblyQuestLoader reference8 = obj7; obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference9 = ref span6[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -267436,8 +322317,9 @@ public static class AssemblyQuestLoader num2 = 25; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span7 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span7[0]; + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2011154u, new Vector3(703.1509f, 295.3993f, -160.20447f), 814) { TargetTerritoryId = (ushort)928 @@ -267447,119 +322329,161 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 928; + Span span6 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span6[num4] = 928; skipStepConditions.InTerritory = list14; skipConditions.StepIf = skipStepConditions; obj9.SkipConditions = skipConditions; reference10 = obj9; - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - span7[2] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 3f }; - span7[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { RestartNavigationIfCancelled = false }; - span7[4] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span7[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); - span7[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); - span7[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) { DisableNavmesh = true }; - span7[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) { DisableNavmesh = true }; - ref QuestStep reference11 = ref span7[9]; + index2++; + ref QuestStep reference11 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2011477u, new Vector3(-233.6004f, 2.5177002f, 49.637573f), 928) { DisableNavmesh = true }; - num3 = 6; - List> list15 = new List>(num3); - CollectionsMarshal.SetCount(list15, num3); - Span> span8 = CollectionsMarshal.AsSpan(list15); - span8[0] = null; - span8[1] = null; - span8[2] = null; - ref List reference12 = ref span8[3]; - int num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - CollectionsMarshal.AsSpan(list16)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list15 = new List>(num4); + CollectionsMarshal.SetCount(list15, num4); + Span> span7 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference12 = ref span7[num3]; + int num5 = 1; + List list16 = new List(num5); + CollectionsMarshal.SetCount(list16, num5); + span5 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference12 = list16; - span8[4] = null; - span8[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj10.RequiredQuestVariables = list15; num3 = 6; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list17); + 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); obj10.CompletionQuestVariablesFlags = list17; reference11 = obj10; - span7[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) { DisableNavmesh = true }; - span7[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - span7[12] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - span7[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - span7[14] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span7[15] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); - span7[16] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DisableNavmesh = true }; - span7[17] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span7[18] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - ref QuestStep reference13 = ref span7[19]; + index2++; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2011458u, new Vector3(-295.1858f, -203.93689f, -329.36603f), 928); - num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list18; reference13 = questStep2; - ref QuestStep reference14 = ref span7[20]; + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep obj11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { DelaySecondsAtStart = 2f, @@ -267568,25 +322492,35 @@ public static class AssemblyQuestLoader num3 = 6; List> list19 = new List>(num3); CollectionsMarshal.SetCount(list19, num3); - Span> span11 = CollectionsMarshal.AsSpan(list19); - span11[0] = null; - span11[1] = null; - span11[2] = null; - ref List reference15 = ref span11[3]; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - CollectionsMarshal.AsSpan(list20)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + ref List reference15 = ref span7[num4]; + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + span5 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference15 = list20; - span11[4] = null; - span11[5] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; obj11.RequiredQuestVariables = list19; reference14 = obj11; - span7[21] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span3[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - ref QuestStep reference16 = ref span7[22]; + index2++; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, @@ -267596,24 +322530,33 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - num3 = 6; - List> list21 = new List>(num3); - CollectionsMarshal.SetCount(list21, num3); - Span> span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = null; - span12[1] = null; - span12[2] = null; - ref List reference17 = ref span12[3]; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - CollectionsMarshal.AsSpan(list22)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list21 = new List>(num4); + CollectionsMarshal.SetCount(list21, num4); + span7 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference17 = ref span7[num3]; + num5 = 1; + List list22 = new List(num5); + CollectionsMarshal.SetCount(list22, num5); + span5 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference17 = list22; - span12[4] = null; - span12[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj12.RequiredQuestVariables = list21; reference16 = obj12; - ref QuestStep reference18 = ref span7[23]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 @@ -267621,50 +322564,70 @@ public static class AssemblyQuestLoader num3 = 6; List> list23 = new List>(num3); CollectionsMarshal.SetCount(list23, num3); - Span> span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - ref List reference19 = ref span13[3]; - num4 = 1; - List list24 = new List(num4); - CollectionsMarshal.SetCount(list24, num4); - CollectionsMarshal.AsSpan(list24)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + ref List reference19 = ref span7[num4]; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + span5 = CollectionsMarshal.AsSpan(list24); + num5 = 0; + span5[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference19 = list24; - span13[4] = null; - span13[5] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; obj13.RequiredQuestVariables = list23; reference18 = obj13; - ref QuestStep reference20 = ref span7[24]; + index2++; + ref QuestStep reference20 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011459u, new Vector3(205.8899f, -500.0229f, -167.86456f), 928); - num3 = 6; - List> list25 = new List>(num3); - CollectionsMarshal.SetCount(list25, num3); - Span> span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = null; - span14[1] = null; - span14[2] = null; - ref List reference21 = ref span14[3]; - num4 = 1; - List list26 = new List(num4); - CollectionsMarshal.SetCount(list26, num4); - CollectionsMarshal.AsSpan(list26)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list25 = new List>(num4); + CollectionsMarshal.SetCount(list25, num4); + span7 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference21 = ref span7[num3]; + num5 = 1; + List list26 = new List(num5); + CollectionsMarshal.SetCount(list26, num5); + span5 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span5[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference21 = list26; - span14[4] = null; - span14[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; questStep3.RequiredQuestVariables = list25; reference20 = questStep3; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference22 = ref span6[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -267678,13 +322641,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "liza"; questRoot3.Author = list28; - num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span15 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference23 = ref span15[0]; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -267692,7 +322658,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list30)[0]; + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj16 = new QuestStep(EInteractionType.AcceptQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) { Fly = true, @@ -267701,7 +322669,9 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA523_04052_Q1_000_000"), @@ -267711,24 +322681,29 @@ public static class AssemblyQuestLoader reference24 = obj16; obj15.Steps = list30; reference23 = obj15; - ref QuestSequence reference25 = ref span15[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(552.4747f, 294.7846f, -137.54712f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 10391u; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span8 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span8[num3] = 10391u; obj18.KillEnemyDataIds = list33; obj18.CombatItemUse = new CombatItemUse { @@ -267739,7 +322714,8 @@ public static class AssemblyQuestLoader reference26 = obj18; obj17.Steps = list32; reference25 = obj17; - ref QuestSequence reference27 = ref span15[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -267747,7 +322723,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) { Fly = true }; @@ -267760,21 +322738,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list35); + index = 0; + span[index] = "liza"; questRoot4.Author = list35; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference28 = ref span16[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + span2 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide, @@ -267788,7 +322771,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list37; reference28 = obj20; - ref QuestSequence reference29 = ref span16[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -267796,21 +322780,26 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1036045u, new Vector3(10.0251465f, 82.83513f, -53.60504f), 820) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036045u, new Vector3(10.0251465f, 82.83513f, -53.60504f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj21.Steps = list38; reference29 = obj21; - ref QuestSequence reference30 = ref span16[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -267824,13 +322813,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot5.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span17 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference31 = ref span17[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -267838,28 +322830,34 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035613u, new Vector3(-2.456726f, 0f, -9.720032f), 351) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035613u, new Vector3(-2.456726f, 0f, -9.720032f), 351) { StopDistance = 5f }; obj23.Steps = list42; reference31 = obj23; - ref QuestSequence reference32 = ref span17[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1036324u, new Vector3(739.681f, 70f, 535.4237f), 621) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036324u, new Vector3(739.681f, 70f, 535.4237f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj24.Steps = list43; reference32 = obj24; - ref QuestSequence reference33 = ref span17[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -267867,7 +322865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036329u, new Vector3(741.1155f, 70f, 527.7333f), 621); + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036329u, new Vector3(741.1155f, 70f, 527.7333f), 621); obj25.Steps = list44; reference33 = obj25; questRoot5.QuestSequence = list41; @@ -267877,24 +322877,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot6.Author = list45; - num = 5; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span18 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference34 = ref span18[0]; + index = 5; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036330u, new Vector3(742.1836f, 70f, 529.0454f), 621); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036330u, new Vector3(742.1836f, 70f, 529.0454f), 621); obj26.Steps = list47; reference34 = obj26; - ref QuestSequence reference35 = ref span18[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -267902,21 +322908,26 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1036334u, new Vector3(-73.56378f, 8.05915f, 29.3125f), 418) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036334u, new Vector3(-73.56378f, 8.05915f, 29.3125f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj27.Steps = list48; reference35 = obj27; - ref QuestSequence reference36 = ref span18[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AethernetShortcut = new AethernetShortcut { @@ -267926,7 +322937,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list49; reference36 = obj28; - ref QuestSequence reference37 = ref span18[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -267934,7 +322946,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1036342u, new Vector3(161.91345f, -15.134371f, 33.279907f), 419) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036342u, new Vector3(161.91345f, -15.134371f, 33.279907f), 419) { AethernetShortcut = new AethernetShortcut { @@ -267944,15 +322958,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list50; reference37 = obj29; - ref QuestSequence reference38 = ref span18[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036344u, new Vector3(-521.5991f, -103.946754f, 143.63306f), 402); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036344u, new Vector3(-521.5991f, -103.946754f, 143.63306f), 402); obj30.Steps = list51; reference38 = obj30; questRoot6.QuestSequence = list46; @@ -267962,13 +322979,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot7.Author = list52; - num = 7; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span19 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference39 = ref span19[0]; + index = 7; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -267976,25 +322996,31 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036346u, new Vector3(-520.531f, -103.99243f, 144.24353f), 402); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036346u, new Vector3(-520.531f, -103.99243f, 144.24353f), 402); obj31.Steps = list54; reference39 = obj31; - ref QuestSequence reference40 = ref span19[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 2011483u, new Vector3(-681.5442f, -41.153625f, 424.58215f), 402) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011483u, new Vector3(-681.5442f, -41.153625f, 424.58215f), 402) { StopDistance = 1f, Fly = true }; obj32.Steps = list55; reference40 = obj32; - ref QuestSequence reference41 = ref span19[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -268002,27 +323028,33 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1036588u, new Vector3(-683.3448f, -41.403988f, 426.44385f), 402) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036588u, new Vector3(-683.3448f, -41.403988f, 426.44385f), 402) { StopDistance = 5f }; obj33.Steps = list56; reference41 = obj33; - ref QuestSequence reference42 = ref span19[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) { Fly = true }; obj34.Steps = list57; reference42 = obj34; - ref QuestSequence reference43 = ref span19[4]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -268030,8 +323062,9 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference44 = ref span20[0]; + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1036358u, new Vector3(-215.16754f, 253.81813f, -13.16864f), 402) { Fly = true @@ -268039,34 +323072,48 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span21 = CollectionsMarshal.AsSpan(list59); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list59); + 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); obj36.CompletionQuestVariablesFlags = list59; reference44 = obj36; - ref QuestStep reference45 = ref span20[1]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1036359u, new Vector3(-244.55634f, 263.18918f, -24.521301f), 402) { Mount = true, Fly = true }; - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span22 = CollectionsMarshal.AsSpan(list60); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + span5 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj37.CompletionQuestVariablesFlags = list60; reference45 = obj37; - ref QuestStep reference46 = ref span20[2]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) { DisableNavmesh = true @@ -268074,34 +323121,45 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span23 = CollectionsMarshal.AsSpan(list61); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list61); + 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); obj38.CompletionQuestVariablesFlags = list61; reference46 = obj38; obj35.Steps = list58; reference43 = obj35; - ref QuestSequence reference47 = ref span19[5]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list62)[0]; + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) { Fly = true }; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + num4 = 1; + List list63 = new List(num4); + CollectionsMarshal.SetCount(list63, num4); + span4 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMK103_04060_Q1_000_100"), @@ -268111,7 +323169,8 @@ public static class AssemblyQuestLoader reference48 = obj40; obj39.Steps = list62; reference47 = obj39; - ref QuestSequence reference49 = ref span19[6]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -268119,7 +323178,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) { Fly = true }; @@ -268132,24 +323193,30 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot8.Author = list65; - num = 5; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span24 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference50 = ref span24[0]; + index = 5; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036953u, new Vector3(-275.4406f, 252f, -20.981201f), 402); + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036953u, new Vector3(-275.4406f, 252f, -20.981201f), 402); obj42.Steps = list67; reference50 = obj42; - ref QuestSequence reference51 = ref span24[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -268157,27 +323224,33 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2011484u, new Vector3(28.366455f, 271.229f, -35.355164f), 402) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011484u, new Vector3(28.366455f, 271.229f, -35.355164f), 402) { Fly = true }; obj43.Steps = list68; reference51 = obj43; - ref QuestSequence reference52 = ref span24[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402) { Fly = true }; obj44.Steps = list69; reference52 = obj44; - ref QuestSequence reference53 = ref span24[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -268185,18 +323258,23 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402); obj45.Steps = list70; reference53 = obj45; - ref QuestSequence reference54 = ref span24[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); obj46.Steps = list71; reference54 = obj46; questRoot8.QuestSequence = list66; @@ -268206,13 +323284,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; questRoot9.Author = list72; - num = 6; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span25 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference55 = ref span25[0]; + index = 6; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -268220,24 +323301,30 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); obj47.Steps = list74; reference55 = obj47; - ref QuestSequence reference56 = ref span25[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1036368u, new Vector3(-137.56012f, 4.1f, -109.819214f), 130) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036368u, new Vector3(-137.56012f, 4.1f, -109.819214f), 130) { StopDistance = 5f }; obj48.Steps = list75; reference56 = obj48; - ref QuestSequence reference57 = ref span25[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -268245,7 +323332,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1036374u, new Vector3(-25.0401f, 83.19998f, 10.452393f), 130) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036374u, new Vector3(-25.0401f, 83.19998f, 10.452393f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -268256,15 +323345,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list76; reference57 = obj49; - ref QuestSequence reference58 = ref span25[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 130) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 130) { DutyOptions = new DutyOptions { @@ -268273,11 +323365,13 @@ public static class AssemblyQuestLoader }; obj50.Steps = list77; reference58 = obj50; - span25[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference59 = ref span25[5]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -268285,7 +323379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) { StopDistance = 7f }; @@ -268298,27 +323394,33 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot10.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span26 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference60 = ref span26[0]; + index = 6; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) { StopDistance = 7f }; obj52.Steps = list81; reference60 = obj52; - ref QuestSequence reference61 = ref span26[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -268326,7 +323428,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list82)[0]; + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + ref QuestStep reference62 = ref span3[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1036388u, new Vector3(-76.46301f, 42f, 58.243652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -268339,7 +323443,9 @@ public static class AssemblyQuestLoader num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMK106_04063_Q1_000_100"), @@ -268349,18 +323455,22 @@ public static class AssemblyQuestLoader reference62 = obj54; obj53.Steps = list82; reference61 = obj53; - ref QuestSequence reference63 = ref span26[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1036391u, new Vector3(-77.71423f, 42f, 58.854004f), 131); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036391u, new Vector3(-77.71423f, 42f, 58.854004f), 131); obj55.Steps = list84; reference63 = obj55; - ref QuestSequence reference64 = ref span26[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 @@ -268368,25 +323478,31 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1036392u, new Vector3(-14.328308f, 36.01278f, 61.08191f), 131); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036392u, new Vector3(-14.328308f, 36.01278f, 61.08191f), 131); obj56.Steps = list85; reference64 = obj56; - ref QuestSequence reference65 = ref span26[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj57.Steps = list86; reference65 = obj57; - ref QuestSequence reference66 = ref span26[5]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -268394,7 +323510,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036399u, new Vector3(-3.402832f, 0.01804012f, -8.499329f), 351); + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036399u, new Vector3(-3.402832f, 0.01804012f, -8.499329f), 351); obj58.Steps = list87; reference66 = obj58; questRoot10.QuestSequence = list80; @@ -268404,24 +323522,30 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "liza"; questRoot11.Author = list88; - num = 5; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span27 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference67 = ref span27[0]; + index = 5; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036400u, new Vector3(-2.5177612f, 0f, -9.170715f), 351); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036400u, new Vector3(-2.5177612f, 0f, -9.170715f), 351); obj59.Steps = list90; reference67 = obj59; - ref QuestSequence reference68 = ref span27[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -268429,25 +323553,31 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj60.Steps = list91; reference68 = obj60; - ref QuestSequence reference69 = ref span27[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1036325u, new Vector3(740.0167f, 70f, 534.02f), 621); + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036325u, new Vector3(740.0167f, 70f, 534.02f), 621); obj61.Steps = list92; reference69 = obj61; - ref QuestSequence reference70 = ref span27[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -268455,18 +323585,23 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1037011u, new Vector3(741.7257f, 70f, 534.63025f), 621); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037011u, new Vector3(741.7257f, 70f, 534.63025f), 621); obj62.Steps = list93; reference70 = obj62; - ref QuestSequence reference71 = ref span27[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036424u, new Vector3(-641.93176f, 130f, -503.19678f), 612) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036424u, new Vector3(-641.93176f, 130f, -503.19678f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -268479,13 +323614,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "liza"; questRoot12.Author = list95; - num = 6; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span28 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference72 = ref span28[0]; + index = 6; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -268493,21 +323631,26 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036426u, new Vector3(-642.3591f, 130f, -504.63113f), 612) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036426u, new Vector3(-642.3591f, 130f, -504.63113f), 612) { StopDistance = 5f }; obj64.Steps = list97; reference72 = obj64; - ref QuestSequence reference73 = ref span28[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1036428u, new Vector3(125.993774f, 12.9667015f, -249.37823f), 133) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036428u, new Vector3(125.993774f, 12.9667015f, -249.37823f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -268518,7 +323661,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list98; reference73 = obj65; - ref QuestSequence reference74 = ref span28[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 @@ -268526,22 +323670,27 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj66.Steps = list99; reference74 = obj66; - ref QuestSequence reference75 = ref span28[3]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -268552,7 +323701,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list100; reference75 = obj67; - ref QuestSequence reference76 = ref span28[4]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -268560,18 +323710,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj68.Steps = list101; reference76 = obj68; - ref QuestSequence reference77 = ref span28[5]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036436u, new Vector3(4.2266846f, -1.858f, 2.7922974f), 205); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036436u, new Vector3(4.2266846f, -1.858f, 2.7922974f), 205); obj69.Steps = list102; reference77 = obj69; questRoot12.QuestSequence = list96; @@ -268581,13 +323736,16 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "liza"; questRoot13.Author = list103; - num = 5; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span29 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference78 = ref span29[0]; + index = 5; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -268595,24 +323753,30 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj70.Steps = list105; reference78 = obj70; - ref QuestSequence reference79 = ref span29[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1036439u, new Vector3(57.90796f, -8.556444f, 107.16406f), 132) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036439u, new Vector3(57.90796f, -8.556444f, 107.16406f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj71.Steps = list106; reference79 = obj71; - ref QuestSequence reference80 = ref span29[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -268620,40 +323784,49 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list107)[0]; + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference81 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.SinglePlayerDuty, 1036441u, new Vector3(32.60852f, -19.000002f, 103.34924f), 132) { StopDistance = 7f, Comment = "Death Unto Dawn" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 3; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span30 = CollectionsMarshal.AsSpan(list108); - span30[0] = "(Lunar Odin) AI doesn't pull Odin to start combat"; - span30[1] = "(Lunar Ravana) AI doesn't pull Ravana to start combat"; - span30[2] = "(Lunar Ravana) AI doesn't move out of directional parry directions"; + num4 = 3; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + span = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span[num3] = "(Lunar Odin) AI doesn't pull Odin to start combat"; + num3++; + span[num3] = "(Lunar Ravana) AI doesn't pull Ravana to start combat"; + num3++; + span[num3] = "(Lunar Ravana) AI doesn't move out of directional parry directions"; singlePlayerDutyOptions.Notes = list108; obj73.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference81 = obj73; obj72.Steps = list107; reference80 = obj72; - ref QuestSequence reference82 = ref span29[3]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.None, null, null, 351) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 351) { Comment = "Credits" }; obj74.Steps = list109; reference82 = obj74; - ref QuestSequence reference83 = ref span29[4]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -268661,7 +323834,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036444u, new Vector3(-1.6937866f, 0f, -4.135254f), 351); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036444u, new Vector3(-1.6937866f, 0f, -4.135254f), 351); obj75.Steps = list110; reference83 = obj75; questRoot13.QuestSequence = list104; @@ -268671,21 +323846,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "kaiser"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span31 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference84 = ref span31[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039243u, new Vector3(-90.28766f, 20f, 85.55737f), 129) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039243u, new Vector3(-90.28766f, 20f, 85.55737f), 129) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -268699,7 +323879,8 @@ public static class AssemblyQuestLoader }; obj76.Steps = list113; reference84 = obj76; - ref QuestSequence reference85 = ref span31[1]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -268707,7 +323888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -268718,15 +323901,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list114; reference85 = obj77; - ref QuestSequence reference86 = ref span31[2]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list115)[0]; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference87 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.CompleteQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f, @@ -268743,7 +323929,9 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "quest/040/AktKbb101_04067", @@ -268760,13 +323948,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "kaiser"; questRoot15.Author = list117; - num = 10; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span32 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference88 = ref span32[0]; + index = 10; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -268774,8 +323965,9 @@ public static class AssemblyQuestLoader num2 = 4; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span33 = CollectionsMarshal.AsSpan(list119); - span33[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-25.441345f, 42.597717f, 162.65016f), 134) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-25.441345f, 42.597717f, 162.65016f), 134) { StopDistance = 5f, Fly = true, @@ -268797,7 +323989,8 @@ public static class AssemblyQuestLoader } } }; - span33[1] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { Comment = "Try to Equip Stonegold Milpreves", ItemId = 35778u, @@ -268812,22 +324005,27 @@ public static class AssemblyQuestLoader } } }; - span33[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); - span33[3] = new QuestStep(EInteractionType.AcceptQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f }; obj80.Steps = list119; reference88 = obj80; - ref QuestSequence reference89 = ref span32[1]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1039244u, new Vector3(62.05847f, 207f, 49.332397f), 478) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039244u, new Vector3(62.05847f, 207f, 49.332397f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268841,7 +324039,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list120; reference89 = obj81; - ref QuestSequence reference90 = ref span32[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 @@ -268849,7 +324048,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2011759u, new Vector3(20.065613f, 215.44214f, -108.171265f), 478) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011759u, new Vector3(20.065613f, 215.44214f, -108.171265f), 478) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268863,15 +324064,18 @@ public static class AssemblyQuestLoader }; obj82.Steps = list121; reference90 = obj82; - ref QuestSequence reference91 = ref span32[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1039246u, new Vector3(71.64111f, 213.03185f, -110.7348f), 478) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039246u, new Vector3(71.64111f, 213.03185f, -110.7348f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268885,7 +324089,8 @@ public static class AssemblyQuestLoader }; obj83.Steps = list122; reference91 = obj83; - ref QuestSequence reference92 = ref span32[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -268893,7 +324098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1039247u, new Vector3(68.7113f, 212.84532f, -109.9718f), 478) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039247u, new Vector3(68.7113f, 212.84532f, -109.9718f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268907,15 +324114,18 @@ public static class AssemblyQuestLoader }; obj84.Steps = list123; reference92 = obj84; - ref QuestSequence reference93 = ref span32[5]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268938,7 +324148,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list124; reference93 = obj85; - ref QuestSequence reference94 = ref span32[6]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 @@ -268946,7 +324157,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list125)[0]; + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { StopDistance = 5f, @@ -268962,10 +324175,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 399; + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + span6 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span6[num3] = 399; obj88.InTerritory = list126; skipConditions2.AetheryteShortcutIf = obj88; skipConditions2.AethernetShortcutIf = new SkipAetheryteCondition @@ -268976,19 +324191,23 @@ public static class AssemblyQuestLoader reference95 = obj87; obj86.Steps = list125; reference94 = obj86; - span32[7] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference96 = ref span32[8]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list127)[0]; + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference97 = ref span3[num2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { StopDistance = 5f, @@ -269007,7 +324226,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 399; + span6 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span6[num4] = 399; obj91.InTerritory = list128; skipConditions3.AetheryteShortcutIf = obj91; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -269018,7 +324239,8 @@ public static class AssemblyQuestLoader reference97 = obj90; obj89.Steps = list127; reference96 = obj89; - ref QuestSequence reference98 = ref span32[9]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -269026,7 +324248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269046,21 +324270,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "kaiser"; questRoot16.Author = list130; - num = 9; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span34 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference99 = ref span34[0]; + index = 9; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -269074,7 +324303,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list132; reference99 = obj93; - ref QuestSequence reference100 = ref span34[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -269082,21 +324312,26 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1039250u, new Vector3(-29.251587f, -2.0576189f, -161.08954f), 141) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039250u, new Vector3(-29.251587f, -2.0576189f, -161.08954f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj94.Steps = list133; reference100 = obj94; - ref QuestSequence reference101 = ref span34[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1039256u, new Vector3(59.03711f, 2.9501379f, -225.97089f), 141) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039256u, new Vector3(59.03711f, 2.9501379f, -225.97089f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -269110,7 +324345,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference101 = obj95; - ref QuestSequence reference102 = ref span34[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 3 @@ -269118,17 +324354,21 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list135)[0]; + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Combat, null, new Vector3(177.52213f, -3.5157094f, -133.6495f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new ComplexCombatData + num4 = 1; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + Span span9 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span9[num3] = new ComplexCombatData { DataId = 14031u, MinimumKillCount = 1u @@ -269144,15 +324384,18 @@ public static class AssemblyQuestLoader reference103 = obj97; obj96.Steps = list135; reference102 = obj96; - ref QuestSequence reference104 = ref span34[4]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1039263u, new Vector3(185.25977f, -4.128851f, -126.78729f), 141) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039263u, new Vector3(185.25977f, -4.128851f, -126.78729f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -269165,7 +324408,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list137; reference104 = obj98; - ref QuestSequence reference105 = ref span34[5]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 @@ -269173,7 +324417,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1039258u, new Vector3(122.72827f, 0.111846395f, -215.22852f), 141) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039258u, new Vector3(122.72827f, 0.111846395f, -215.22852f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -269187,15 +324433,18 @@ public static class AssemblyQuestLoader }; obj99.Steps = list138; reference105 = obj99; - ref QuestSequence reference106 = ref span34[6]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -269208,7 +324457,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list139; reference106 = obj100; - ref QuestSequence reference107 = ref span34[7]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 7 @@ -269216,7 +324466,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -269229,15 +324481,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference107 = obj101; - ref QuestSequence reference108 = ref span34[8]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269257,13 +324512,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list142); + index = 0; + span[index] = "kaiser"; questRoot17.Author = list142; - num = 6; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span35 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference109 = ref span35[0]; + index = 6; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + span2 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -269271,7 +324529,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list144)[0]; + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -269286,7 +324546,9 @@ public static class AssemblyQuestLoader num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB121_04070_Q1_000_000"), @@ -269296,21 +324558,25 @@ public static class AssemblyQuestLoader reference110 = obj104; obj103.Steps = list144; reference109 = obj103; - ref QuestSequence reference111 = ref span35[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1039274u, new Vector3(246.93665f, -24.995794f, 235.4314f), 138) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039274u, new Vector3(246.93665f, -24.995794f, 235.4314f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj105.Steps = list146; reference111 = obj105; - ref QuestSequence reference112 = ref span35[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -269318,7 +324584,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1039275u, new Vector3(236.9878f, -24.792122f, 202.594f), 138) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039275u, new Vector3(236.9878f, -24.792122f, 202.594f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -269331,15 +324599,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list147; reference112 = obj106; - ref QuestSequence reference113 = ref span35[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Action, 1039276u, new Vector3(239.79541f, -24.721268f, 205.34058f), 138) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1039276u, new Vector3(239.79541f, -24.721268f, 205.34058f), 138) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -269354,7 +324625,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list148; reference113 = obj107; - ref QuestSequence reference114 = ref span35[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -269362,7 +324634,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1039279u, new Vector3(239.9176f, -24.724764f, 205.24902f), 138) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039279u, new Vector3(239.9176f, -24.724764f, 205.24902f), 138) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -269376,15 +324650,18 @@ public static class AssemblyQuestLoader }; obj108.Steps = list149; reference114 = obj108; - ref QuestSequence reference115 = ref span35[5]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269404,13 +324681,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "kaiser"; questRoot18.Author = list151; - num = 7; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span36 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference116 = ref span36[0]; + index = 7; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -269418,7 +324698,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269431,15 +324713,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list153; reference116 = obj110; - ref QuestSequence reference117 = ref span36[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269452,7 +324737,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list154; reference117 = obj111; - ref QuestSequence reference118 = ref span36[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -269460,7 +324746,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list155)[0]; + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference119 = ref span3[index2]; QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(-501.8255f, 147.54488f, -191.78416f), 399) { Fly = true, @@ -269471,10 +324759,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new ComplexCombatData + num4 = 1; + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + span9 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span9[num3] = new ComplexCombatData { DataId = 14030u, MinimumKillCount = 1u @@ -269490,15 +324780,18 @@ public static class AssemblyQuestLoader reference119 = obj113; obj112.Steps = list155; reference118 = obj112; - ref QuestSequence reference120 = ref span36[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Action, 1039282u, new Vector3(-504.87527f, 147.53165f, -199.17603f), 399) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1039282u, new Vector3(-504.87527f, 147.53165f, -199.17603f), 399) { Comment = "This might get stuck if we are high level and killed the mob too fast?, we ended up locking ourselves on eukrasia aura, Diagnosis can't be casted!", AethernetShortcut = new AethernetShortcut @@ -269517,7 +324810,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list157; reference120 = obj114; - ref QuestSequence reference121 = ref span36[4]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -269525,7 +324819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list158)[0]; + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + ref QuestStep reference122 = ref span3[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.24777f, 147.98257f, 52.931572f), 399) { Fly = true, @@ -269539,7 +324835,9 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new ComplexCombatData + span9 = CollectionsMarshal.AsSpan(list159); + num4 = 0; + span9[num4] = new ComplexCombatData { DataId = 14029u, MinimumKillCount = 2u @@ -269555,15 +324853,18 @@ public static class AssemblyQuestLoader reference122 = obj116; obj115.Steps = list158; reference121 = obj115; - ref QuestSequence reference123 = ref span36[5]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1039284u, new Vector3(-382.49792f, 147.96011f, 47.53174f), 399) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039284u, new Vector3(-382.49792f, 147.96011f, 47.53174f), 399) { Fly = false, AethernetShortcut = new AethernetShortcut @@ -269581,7 +324882,8 @@ public static class AssemblyQuestLoader }; obj117.Steps = list160; reference123 = obj117; - ref QuestSequence reference124 = ref span36[6]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -269589,7 +324891,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269609,21 +324913,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "kaiser"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "kaiser"; questRoot19.Author = list162; - num = 5; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span37 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference125 = ref span37[0]; + index = 5; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269636,7 +324945,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list164; reference125 = obj119; - ref QuestSequence reference126 = ref span37[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -269644,7 +324954,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -269658,15 +324970,18 @@ public static class AssemblyQuestLoader }; obj120.Steps = list165; reference126 = obj120; - ref QuestSequence reference127 = ref span37[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -269680,7 +324995,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list166; reference127 = obj121; - ref QuestSequence reference128 = ref span37[3]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -269688,18 +325004,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398); obj122.Steps = list167; reference128 = obj122; - ref QuestSequence reference129 = ref span37[4]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039280u, new Vector3(1.2054443f, 210.99997f, -16.494995f), 478) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039280u, new Vector3(1.2054443f, 210.99997f, -16.494995f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269719,13 +325040,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; questRoot20.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span38 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference130 = ref span38[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -269733,7 +325057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036633u, new Vector3(82.871704f, 4.099994f, -131.30396f), 130) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036633u, new Vector3(82.871704f, 4.099994f, -131.30396f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -269744,15 +325070,18 @@ public static class AssemblyQuestLoader }; obj124.Steps = list171; reference130 = obj124; - ref QuestSequence reference131 = ref span38[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1036634u, new Vector3(134.05042f, 4f, 11.428955f), 131) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036634u, new Vector3(134.05042f, 4f, 11.428955f), 131) { AethernetShortcut = new AethernetShortcut { @@ -269762,7 +325091,8 @@ public static class AssemblyQuestLoader }; obj125.Steps = list172; reference131 = obj125; - ref QuestSequence reference132 = ref span38[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -269770,12 +325100,16 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list173)[0]; + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference133 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131); - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + num4 = 1; + List list174 = new List(num4); + CollectionsMarshal.SetCount(list174, num4); + span4 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBB201_04073_Q5_000_000") @@ -269784,15 +325118,18 @@ public static class AssemblyQuestLoader reference133 = questStep4; obj126.Steps = list173; reference132 = obj126; - ref QuestSequence reference134 = ref span38[3]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list175)[0]; + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference135 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.CompleteQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) { StopDistance = 5f @@ -269800,7 +325137,9 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list176); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB201_04073_Q4_000_000"), @@ -269818,13 +325157,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list177); + index = 0; + span[index] = "liza"; questRoot21.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span39 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference136 = ref span39[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + span2 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -269832,8 +325174,9 @@ public static class AssemblyQuestLoader num2 = 5; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span40 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference137 = ref span40[0]; + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + ref QuestStep reference137 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -269846,10 +325189,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = 971; + num4 = 1; + List list180 = new List(num4); + CollectionsMarshal.SetCount(list180, num4); + span6 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span6[num3] = 971; skipStepConditions2.InTerritory = list180; skipConditions4.StepIf = skipStepConditions2; SkipAetheryteCondition obj131 = new SkipAetheryteCondition @@ -269859,14 +325204,17 @@ public static class AssemblyQuestLoader num3 = 2; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span41 = CollectionsMarshal.AsSpan(list181); - span41[0] = 131; - span41[1] = 971; + span6 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span6[num4] = 131; + num4++; + span6[num4] = 971; obj131.InTerritory = list181; skipConditions4.AetheryteShortcutIf = obj131; obj130.SkipConditions = skipConditions4; reference137 = obj130; - span40[1] = new QuestStep(EInteractionType.EquipItem, null, null, 971) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 971) { ItemId = 35760u, SkipConditions = new SkipConditions @@ -269880,7 +325228,8 @@ public static class AssemblyQuestLoader } } }; - span40[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(0.13146536f, 0.01480782f, -0.7022889f), 971) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(0.13146536f, 0.01480782f, -0.7022889f), 971) { ItemId = 35872u, SkipConditions = new SkipConditions @@ -269894,29 +325243,35 @@ public static class AssemblyQuestLoader } } }; - span40[3] = new QuestStep(EInteractionType.EquipRecommended, null, null, 971); - span40[4] = new QuestStep(EInteractionType.AcceptQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) + index2++; + span3[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 971); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) { StopDistance = 5f }; obj129.Steps = list179; reference136 = obj129; - ref QuestSequence reference138 = ref span39[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1036636u, new Vector3(-264.91187f, -5.052193f, -371.38934f), 141) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036636u, new Vector3(-264.91187f, -5.052193f, -371.38934f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj132.Steps = list182; reference138 = obj132; - ref QuestSequence reference139 = ref span39[2]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -269924,19 +325279,23 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1036637u, new Vector3(-263.84375f, -4.9409676f, -371.26727f), 141); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1036637u, new Vector3(-263.84375f, -4.9409676f, -371.26727f), 141); obj133.Steps = list183; reference139 = obj133; - ref QuestSequence reference140 = ref span39[3]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span42 = CollectionsMarshal.AsSpan(list184); - span42[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + index2 = 2; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -269946,7 +325305,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971) { NextQuestId = new QuestId(4075) }; @@ -269959,13 +325319,16 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - CollectionsMarshal.AsSpan(list185)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "liza"; questRoot22.Author = list185; - num = 5; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span43 = CollectionsMarshal.AsSpan(list186); - ref QuestSequence reference141 = ref span43[0]; + index = 5; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -269973,8 +325336,9 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span44 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference142 = ref span44[0]; + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference142 = ref span3[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -269987,10 +325351,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = 971; + num4 = 1; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + span6 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span6[num3] = 971; skipStepConditions3.InTerritory = list188; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition obj137 = new SkipAetheryteCondition @@ -270000,31 +325366,38 @@ public static class AssemblyQuestLoader num3 = 2; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span45 = CollectionsMarshal.AsSpan(list189); - span45[0] = 131; - span45[1] = 971; + span6 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span6[num4] = 131; + num4++; + span6[num4] = 971; obj137.InTerritory = list189; skipConditions5.AetheryteShortcutIf = obj137; obj136.SkipConditions = skipConditions5; reference142 = obj136; - span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj135.Steps = list187; reference141 = obj135; - ref QuestSequence reference143 = ref span43[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj138.Steps = list190; reference143 = obj138; - ref QuestSequence reference144 = ref span43[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 @@ -270032,26 +325405,34 @@ public static class AssemblyQuestLoader num2 = 3; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span46 = CollectionsMarshal.AsSpan(list191); - ref QuestStep reference145 = ref span46[0]; + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + ref QuestStep reference145 = ref span3[index2]; QuestStep obj140 = new QuestStep(EInteractionType.UseItem, 2011694u, new Vector3(-151.20166f, 5.6915283f, -143.69421f), 148) { Fly = true, ItemId = 2003077u }; - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span47 = CollectionsMarshal.AsSpan(list192); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list192 = new List(num4); + CollectionsMarshal.SetCount(list192, num4); + span5 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj140.CompletionQuestVariablesFlags = list192; reference145 = obj140; - ref QuestStep reference146 = ref span46[1]; + index2++; + ref QuestStep reference146 = ref span3[index2]; QuestStep obj141 = new QuestStep(EInteractionType.UseItem, 2011693u, new Vector3(-208.11786f, 4.0131226f, -22.110352f), 148) { Fly = true, @@ -270060,56 +325441,75 @@ public static class AssemblyQuestLoader num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span48 = CollectionsMarshal.AsSpan(list193); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list193); + 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); obj141.CompletionQuestVariablesFlags = list193; reference146 = obj141; - ref QuestStep reference147 = ref span46[2]; + index2++; + ref QuestStep reference147 = ref span3[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2011546u, new Vector3(-274.34198f, 19.821411f, 66.453f), 148) { Fly = true, ItemId = 2003077u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = 14028u; + num4 = 1; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + span8 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span8[num3] = 14028u; obj142.KillEnemyDataIds = list194; num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span49 = CollectionsMarshal.AsSpan(list195); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list195); + 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); obj142.CompletionQuestVariablesFlags = list195; reference147 = obj142; obj139.Steps = list191; reference144 = obj139; - ref QuestSequence reference148 = ref span43[3]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj143.Steps = list196; reference148 = obj143; - ref QuestSequence reference149 = ref span43[4]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -270117,8 +325517,9 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span50 = CollectionsMarshal.AsSpan(list197); - span50[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -270128,12 +325529,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - ref QuestStep reference150 = ref span50[1]; + index2++; + ref QuestStep reference150 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + num4 = 1; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + span4 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB211_04075_Q1_000_000"), @@ -270151,22 +325555,26 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "liza"; questRoot23.Author = list199; - num = 6; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span51 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference151 = ref span51[0]; + index = 6; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span52 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference152 = ref span52[0]; + index2 = 2; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -270182,27 +325590,33 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 971; + span6 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span6[num4] = 971; skipStepConditions4.InTerritory = list202; skipConditions6.StepIf = skipStepConditions4; SkipAetheryteCondition obj147 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span53 = CollectionsMarshal.AsSpan(list203); - span53[0] = 131; - span53[1] = 971; + num4 = 2; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + span6 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span6[num3] = 131; + num3++; + span6[num3] = 971; obj147.InTerritory = list203; skipConditions6.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions6; reference152 = obj146; - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj145.Steps = list201; reference151 = obj145; - ref QuestSequence reference153 = ref span51[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -270210,7 +325624,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1036641u, new Vector3(-149.95044f, 14.004999f, 54.8562f), 130) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036641u, new Vector3(-149.95044f, 14.004999f, 54.8562f), 130) { AethernetShortcut = new AethernetShortcut { @@ -270220,15 +325636,18 @@ public static class AssemblyQuestLoader }; obj148.Steps = list204; reference153 = obj148; - ref QuestSequence reference154 = ref span51[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1036642u, new Vector3(-151.1712f, 15.982788f, 302.2965f), 141) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036642u, new Vector3(-151.1712f, 15.982788f, 302.2965f), 141) { AethernetShortcut = new AethernetShortcut { @@ -270238,7 +325657,8 @@ public static class AssemblyQuestLoader }; obj149.Steps = list205; reference154 = obj149; - ref QuestSequence reference155 = ref span51[3]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -270246,26 +325666,32 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span54 = CollectionsMarshal.AsSpan(list206); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.87344f, -3.6581912f, 179.7406f), 141) + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.87344f, -3.6581912f, 179.7406f), 141) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.Interact, 1036644u, new Vector3(-68.10101f, -3.6581912f, 179.61389f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036644u, new Vector3(-68.10101f, -3.6581912f, 179.61389f), 141); obj150.Steps = list206; reference155 = obj150; - ref QuestSequence reference156 = ref span51[4]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1040918u, new Vector3(-59.891724f, -3.6582541f, 147.72253f), 141); + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040918u, new Vector3(-59.891724f, -3.6582541f, 147.72253f), 141); obj151.Steps = list207; reference156 = obj151; - ref QuestSequence reference157 = ref span51[5]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -270273,8 +325699,9 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span55 = CollectionsMarshal.AsSpan(list208); - span55[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -270284,12 +325711,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - ref QuestStep reference158 = ref span55[1]; + index2++; + ref QuestStep reference158 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list209); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB221_04076_Q2_000_000"), @@ -270307,22 +325737,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; questRoot24.Author = list210; - num = 9; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span56 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference159 = ref span56[0]; + index = 9; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span57 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference160 = ref span57[0]; + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference160 = ref span3[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -270335,10 +325769,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = 971; + num4 = 1; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + span6 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span6[num3] = 971; skipStepConditions5.InTerritory = list213; skipConditions7.StepIf = skipStepConditions5; SkipAetheryteCondition obj155 = new SkipAetheryteCondition @@ -270348,17 +325784,21 @@ public static class AssemblyQuestLoader num3 = 2; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span58 = CollectionsMarshal.AsSpan(list214); - span58[0] = 131; - span58[1] = 971; + span6 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span6[num4] = 131; + num4++; + span6[num4] = 971; obj155.InTerritory = list214; skipConditions7.AetheryteShortcutIf = obj155; obj154.SkipConditions = skipConditions7; reference160 = obj154; - span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj153.Steps = list212; reference159 = obj153; - ref QuestSequence reference161 = ref span56[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -270366,32 +325806,38 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1036645u, new Vector3(-65.23236f, -2.0043268f, -170.06183f), 141) + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036645u, new Vector3(-65.23236f, -2.0043268f, -170.06183f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj156.Steps = list215; reference161 = obj156; - ref QuestSequence reference162 = ref span56[2]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span59 = CollectionsMarshal.AsSpan(list216); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.102264f, 0.33612514f, -274.36813f), 141) + index2 = 2; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.102264f, 0.33612514f, -274.36813f), 141) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 1036646u, new Vector3(84.33655f, 0.27463394f, -279.86572f), 141) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036646u, new Vector3(84.33655f, 0.27463394f, -279.86572f), 141) { StopDistance = 5f }; obj157.Steps = list216; reference162 = obj157; - ref QuestSequence reference163 = ref span56[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -270399,37 +325845,45 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span60 = CollectionsMarshal.AsSpan(list217); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.258f, 1.9472685f, -165.4284f), 141) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.258f, 1.9472685f, -165.4284f), 141) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); obj158.Steps = list217; reference163 = obj158; - ref QuestSequence reference164 = ref span56[4]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list218)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(159.8781f, -0.6240455f, -154.44577f), 141) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = 14027u; + num4 = 1; + List list219 = new List(num4); + CollectionsMarshal.SetCount(list219, num4); + span8 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span8[num3] = 14027u; obj160.KillEnemyDataIds = list219; reference165 = obj160; obj159.Steps = list218; reference164 = obj159; - ref QuestSequence reference166 = ref span56[5]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 5 @@ -270437,24 +325891,30 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); obj161.Steps = list220; reference166 = obj161; - ref QuestSequence reference167 = ref span56[6]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1036654u, new Vector3(-136.61407f, 3.9261572f, 212.57336f), 141) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036654u, new Vector3(-136.61407f, 3.9261572f, 212.57336f), 141) { Fly = true }; obj162.Steps = list221; reference167 = obj162; - ref QuestSequence reference168 = ref span56[7]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 7 @@ -270462,7 +325922,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -270474,20 +325936,25 @@ public static class AssemblyQuestLoader }; obj163.Steps = list222; reference168 = obj163; - ref QuestSequence reference169 = ref span56[8]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list223)[0]; + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB231_04077_Q2_000_000"), @@ -270505,13 +325972,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; questRoot25.Author = list225; - num = 3; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span61 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference171 = ref span61[0]; + index = 3; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -270519,8 +325989,9 @@ public static class AssemblyQuestLoader num2 = 2; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span62 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference172 = ref span62[0]; + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + ref QuestStep reference172 = ref span3[index2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -270533,10 +326004,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = 971; + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span6 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span6[num3] = 971; skipStepConditions6.InTerritory = list228; skipConditions8.StepIf = skipStepConditions6; SkipAetheryteCondition obj167 = new SkipAetheryteCondition @@ -270546,32 +326019,39 @@ public static class AssemblyQuestLoader num3 = 2; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span63 = CollectionsMarshal.AsSpan(list229); - span63[0] = 131; - span63[1] = 971; + span6 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span6[num4] = 131; + num4++; + span6[num4] = 971; obj167.InTerritory = list229; skipConditions8.AetheryteShortcutIf = obj167; obj166.SkipConditions = skipConditions8; reference172 = obj166; - span62[1] = new QuestStep(EInteractionType.AcceptQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); obj165.Steps = list227; reference171 = obj165; - ref QuestSequence reference173 = ref span61[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2011548u, new Vector3(-92.57648f, 87.17468f, -737.8805f), 397) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2011548u, new Vector3(-92.57648f, 87.17468f, -737.8805f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj168.Steps = list230; reference173 = obj168; - ref QuestSequence reference174 = ref span61[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue @@ -270579,7 +326059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036630u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036630u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj169.Steps = list231; reference174 = obj169; questRoot25.QuestSequence = list226; @@ -270589,24 +326071,30 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list232); + index = 0; + span[index] = "liza"; questRoot26.Author = list232; - num = 5; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span64 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference175 = ref span64[0]; + index = 5; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + span2 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886); + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886); obj170.Steps = list234; reference175 = obj170; - ref QuestSequence reference176 = ref span64[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 @@ -270614,7 +326102,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1036487u, new Vector3(-93.15637f, 0f, -129.56439f), 886) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036487u, new Vector3(-93.15637f, 0f, -129.56439f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270624,23 +326114,27 @@ public static class AssemblyQuestLoader }; obj171.Steps = list235; reference176 = obj171; - ref QuestSequence reference177 = ref span64[2]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span65 = CollectionsMarshal.AsSpan(list236); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.73003f, 0f, -136.48384f), 886); - span65[1] = new QuestStep(EInteractionType.Interact, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) + index2 = 2; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.73003f, 0f, -136.48384f), 886); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) { StopDistance = 5f }; obj172.Steps = list236; reference177 = obj172; - ref QuestSequence reference178 = ref span64[3]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 @@ -270648,7 +326142,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1036488u, new Vector3(140.91699f, -40f, 158.55652f), 886) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1036488u, new Vector3(140.91699f, -40f, 158.55652f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270658,15 +326154,18 @@ public static class AssemblyQuestLoader }; obj173.Steps = list237; reference178 = obj173; - ref QuestSequence reference179 = ref span64[4]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036490u, new Vector3(-114.39691f, 0f, -137.31598f), 886) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036490u, new Vector3(-114.39691f, 0f, -137.31598f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270683,13 +326182,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "Censored"; questRoot27.Author = list239; - num = 3; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span66 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference180 = ref span66[0]; + index = 3; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -270697,8 +326199,9 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span67 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference181 = ref span67[0]; + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + ref QuestStep reference181 = ref span3[index2]; QuestStep obj176 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -270710,15 +326213,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = 154; + num4 = 1; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + span6 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span6[num3] = 154; skipStepConditions7.InTerritory = list242; skipConditions9.StepIf = skipStepConditions7; obj176.SkipConditions = skipConditions9; reference181 = obj176; - span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270728,18 +326234,22 @@ public static class AssemblyQuestLoader }; obj175.Steps = list241; reference180 = obj175; - ref QuestSequence reference182 = ref span66[1]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1036493u, new Vector3(-60.227356f, -4.146993E-05f, -16.06781f), 886); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1036493u, new Vector3(-60.227356f, -4.146993E-05f, -16.06781f), 886); obj177.Steps = list243; reference182 = obj177; - ref QuestSequence reference183 = ref span66[2]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -270747,7 +326257,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036494u, new Vector3(-98.77167f, 0f, -131.51752f), 886); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036494u, new Vector3(-98.77167f, 0f, -131.51752f), 886); obj178.Steps = list244; reference183 = obj178; questRoot27.QuestSequence = list240; @@ -270761,13 +326273,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; questRoot.Author = list; - num = 9; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 9; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -270775,7 +326290,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -270788,7 +326305,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA101_04102_Q1_000_000"), @@ -270798,21 +326317,25 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038398u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038398u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -270820,30 +326343,36 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331417f, 195.88f), 154) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331417f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-85.105965f, -46.544624f, 210.43315f), 154); - span2[1] = new QuestStep(EInteractionType.Interact, 1038405u, new Vector3(-42.46588f, -40.94998f, 171.06885f), 154) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-85.105965f, -46.544624f, 210.43315f), 154); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038405u, new Vector3(-42.46588f, -40.94998f, 171.06885f), 154) { Fly = true, Land = true }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -270851,36 +326380,44 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1038408u, new Vector3(55.039307f, -39.472065f, 234.72949f), 154) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038408u, new Vector3(55.039307f, -39.472065f, 234.72949f), 154) { Fly = true, Land = true }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list9)[0]; + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(201.86879f, -27.880434f, 171.45041f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 14016u; + index3 = 1; + List list10 = new List(index3); + CollectionsMarshal.SetCount(list10, index3); + Span span5 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span5[num3] = 14016u; obj8.KillEnemyDataIds = list10; reference8 = obj8; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference9 = ref span[6]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 6 @@ -270888,25 +326425,31 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1038410u, new Vector3(201.49536f, -27.91251f, 171.61816f), 154); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038410u, new Vector3(201.49536f, -27.91251f, 171.61816f), 154); obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference10 = ref span[7]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1038403u, new Vector3(-43.442444f, -40.94998f, 172.22852f), 154) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038403u, new Vector3(-43.442444f, -40.94998f, 172.22852f), 154) { Fly = true, Land = true }; obj10.Steps = list12; reference10 = obj10; - ref QuestSequence reference11 = ref span[8]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -270914,7 +326457,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4103) @@ -270928,21 +326473,26 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "Censored"; questRoot2.Author = list14; - num = 9; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span3 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span3[0]; + index = 9; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -270955,7 +326505,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span3[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -270963,25 +326514,31 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1038412u, new Vector3(-150.98804f, 1.7044317f, 220.99634f), 153) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038412u, new Vector3(-150.98804f, 1.7044317f, 220.99634f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference14 = ref span3[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1038414u, new Vector3(-191.05823f, 15.544372f, 313.71008f), 153); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038414u, new Vector3(-191.05823f, 15.544372f, 313.71008f), 153); obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -270989,50 +326546,69 @@ public static class AssemblyQuestLoader num2 = 3; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span4 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference16 = ref span4[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1038418u, new Vector3(-201.40387f, 20.41187f, 337.45325f), 153); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span5 = CollectionsMarshal.AsSpan(list20); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list20; reference16 = questStep; - ref QuestStep reference17 = ref span4[1]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1038417u, new Vector3(-200.70197f, 20.729956f, 361.07422f), 153); - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + span6 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list21; reference17 = questStep2; - span4[2] = new QuestStep(EInteractionType.Interact, 1038416u, new Vector3(-238.30017f, 21.68142f, 356.83215f), 153); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038416u, new Vector3(-238.30017f, 21.68142f, 356.83215f), 153); obj15.Steps = list19; reference15 = obj15; - ref QuestSequence reference18 = ref span3[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1038415u, new Vector3(-230.88434f, 21.464617f, 343.70935f), 153); + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038415u, new Vector3(-230.88434f, 21.464617f, 343.70935f), 153); obj16.Steps = list22; reference18 = obj16; - ref QuestSequence reference19 = ref span3[5]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 @@ -271040,21 +326616,26 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1038419u, new Vector3(-267.56696f, 1.8750894f, 675.6847f), 153) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038419u, new Vector3(-267.56696f, 1.8750894f, 675.6847f), 153) { Fly = true }; obj17.Steps = list23; reference19 = obj17; - ref QuestSequence reference20 = ref span3[6]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference21 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-264.79346f, 2.2244208f, 673.19916f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -271062,12 +326643,15 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 14015u; + span5 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span5[index3] = 14015u; obj19.KillEnemyDataIds = list25; reference21 = obj19; obj18.Steps = list24; reference20 = obj18; - ref QuestSequence reference22 = ref span3[7]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 7 @@ -271075,18 +326659,23 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1038432u, new Vector3(-273.7011f, 1.919117f, 669.7031f), 153); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038432u, new Vector3(-273.7011f, 1.919117f, 669.7031f), 153); obj20.Steps = list26; reference22 = obj20; - ref QuestSequence reference23 = ref span3[8]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4104) @@ -271100,13 +326689,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list28); + index = 0; + span[index] = "Censored"; questRoot3.Author = list28; - num = 6; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span7 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference24 = ref span7[0]; + index = 6; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + span2 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -271114,7 +326706,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list30)[0]; + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -271126,10 +326720,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span4 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA121_04104_Q0_000_000"), @@ -271139,15 +326735,18 @@ public static class AssemblyQuestLoader reference25 = obj23; obj22.Steps = list30; reference24 = obj22; - ref QuestSequence reference26 = ref span7[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2011735u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148) { Fly = true, @@ -271157,12 +326756,15 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 14013u; + span5 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span5[index3] = 14013u; obj25.KillEnemyDataIds = list33; reference27 = obj25; obj24.Steps = list32; reference26 = obj24; - ref QuestSequence reference28 = ref span7[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -271170,71 +326772,94 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 2011730u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011730u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148); obj26.Steps = list34; reference28 = obj26; - ref QuestSequence reference29 = ref span7[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span8 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference30 = ref span8[0]; + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference30 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, 2011733u, new Vector3(-408.9876f, 61.631104f, -125.90222f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = 14014u; + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span5 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span5[num3] = 14014u; obj28.KillEnemyDataIds = list36; num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span9 = CollectionsMarshal.AsSpan(list37); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list37; reference30 = obj28; - ref QuestStep reference31 = ref span8[1]; + num2++; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 2011732u, new Vector3(-343.2517f, 60.105225f, -72.46515f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 14014u; + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = 14014u; obj29.KillEnemyDataIds = list38; num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span10 = CollectionsMarshal.AsSpan(list39); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list39; reference31 = obj29; - span8[2] = new QuestStep(EInteractionType.Interact, 2011731u, new Vector3(-231.46417f, 56.71765f, -93.614136f), 148) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011731u, new Vector3(-231.46417f, 56.71765f, -93.614136f), 148) { Fly = true }; obj27.Steps = list35; reference29 = obj27; - ref QuestSequence reference32 = ref span7[4]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 4 @@ -271242,21 +326867,26 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2011747u, new Vector3(-310.71948f, 21.194763f, 173.66284f), 148) + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011747u, new Vector3(-310.71948f, 21.194763f, 173.66284f), 148) { Fly = true }; obj30.Steps = list40; reference32 = obj30; - ref QuestSequence reference33 = ref span7[5]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { NextQuestId = new QuestId(4105) }; @@ -271269,13 +326899,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "Censored"; questRoot4.Author = list42; - num = 7; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span11 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span11[0]; + index = 7; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -271283,7 +326916,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -271296,34 +326931,40 @@ public static class AssemblyQuestLoader }; obj32.Steps = list44; reference34 = obj32; - ref QuestSequence reference35 = ref span11[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference36 = ref span12[0]; + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.6922f, 1.2393801f, 8.405229f), 132) { TargetTerritoryId = (ushort)133 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 133; + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span7 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span7[num3] = 133; skipStepConditions.InTerritory = list46; skipConditions.StepIf = skipStepConditions; obj34.SkipConditions = skipConditions; reference36 = obj34; - span12[1] = new QuestStep(EInteractionType.Interact, 1038436u, new Vector3(-236.68274f, -4f, 1.6326294f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038436u, new Vector3(-236.68274f, -4f, 1.6326294f), 133); obj33.Steps = list45; reference35 = obj33; - ref QuestSequence reference37 = ref span11[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -271331,28 +326972,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1038437u, new Vector3(-305.5924f, 13.1841545f, -49.94281f), 152) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038437u, new Vector3(-305.5924f, 13.1841545f, -49.94281f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list47; reference37 = obj35; - ref QuestSequence reference38 = ref span11[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1038439u, new Vector3(-220.78284f, 29.984009f, 64.286255f), 152) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038439u, new Vector3(-220.78284f, 29.984009f, 64.286255f), 152) { Fly = true }; obj36.Steps = list48; reference38 = obj36; - ref QuestSequence reference39 = ref span11[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 @@ -271360,7 +327007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list49)[0]; + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, 2011736u, new Vector3(-116.92993f, -3.3417358f, 190.14258f), 152) { Fly = true, @@ -271369,23 +327018,29 @@ public static class AssemblyQuestLoader num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 14012u; + span5 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span5[index3] = 14012u; obj38.KillEnemyDataIds = list50; reference40 = obj38; obj37.Steps = list49; reference39 = obj37; - ref QuestSequence reference41 = ref span11[5]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1038440u, new Vector3(-122.08746f, -3.6656997f, 185.25977f), 152); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038440u, new Vector3(-122.08746f, -3.6656997f, 185.25977f), 152); obj39.Steps = list51; reference41 = obj39; - ref QuestSequence reference42 = ref span11[6]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -271393,7 +327048,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4106) @@ -271407,21 +327064,26 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "Censored"; questRoot5.Author = list53; - num = 8; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span13 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference43 = ref span13[0]; + index = 8; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -271434,7 +327096,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference43 = obj41; - ref QuestSequence reference44 = ref span13[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -271442,33 +327105,41 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list56)[0]; + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2011737u, new Vector3(335.8053f, -0.5340576f, -179.85815f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 14011u; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span5 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span5[num3] = 14011u; obj43.KillEnemyDataIds = list57; reference45 = obj43; obj42.Steps = list56; reference44 = obj42; - ref QuestSequence reference46 = ref span13[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1038442u, new Vector3(336.56824f, -1.022724f, -173.63245f), 148); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038442u, new Vector3(336.56824f, -1.022724f, -173.63245f), 148); obj44.Steps = list58; reference46 = obj44; - ref QuestSequence reference47 = ref span13[3]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -271476,7 +327147,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list59)[0]; + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, 2011738u, new Vector3(256.8551f, 15.823547f, -109.51398f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -271485,23 +327158,29 @@ public static class AssemblyQuestLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 14010u; + span5 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span5[index3] = 14010u; obj46.KillEnemyDataIds = list60; reference48 = obj46; obj45.Steps = list59; reference47 = obj45; - ref QuestSequence reference49 = ref span13[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1038444u, new Vector3(250.87354f, 15.565201f, -107.83557f), 153); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038444u, new Vector3(250.87354f, 15.565201f, -107.83557f), 153); obj47.Steps = list61; reference49 = obj47; - ref QuestSequence reference50 = ref span13[5]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -271509,7 +327188,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1038446u, new Vector3(325.73438f, -5.688218f, -97.76465f), 154) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038446u, new Vector3(325.73438f, -5.688218f, -97.76465f), 154) { Fly = true, Land = true, @@ -271517,22 +327198,26 @@ public static class AssemblyQuestLoader }; obj48.Steps = list62; reference50 = obj48; - ref QuestSequence reference51 = ref span13[6]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1039197u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039197u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj49.Steps = list63; reference51 = obj49; - ref QuestSequence reference52 = ref span13[7]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -271540,7 +327225,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { NextQuestId = new QuestId(4107) }; @@ -271553,21 +327240,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "Censored"; questRoot6.Author = list65; - num = 8; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span14 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference53 = ref span14[0]; + index = 8; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -271580,7 +327272,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list67; reference53 = obj51; - ref QuestSequence reference54 = ref span14[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -271588,34 +327281,41 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span15 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference55 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.687102f, 1.2724965f, -15.995083f), 132) { TargetTerritoryId = (ushort)133 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 133; + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span7 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span7[num3] = 133; skipStepConditions2.InTerritory = list69; skipConditions2.StepIf = skipStepConditions2; obj53.SkipConditions = skipConditions2; reference55 = obj53; - span15[1] = new QuestStep(EInteractionType.Interact, 1038452u, new Vector3(16.250854f, 6.9444046f, -109.544556f), 133); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038452u, new Vector3(16.250854f, 6.9444046f, -109.544556f), 133); obj52.Steps = list68; reference54 = obj52; - ref QuestSequence reference56 = ref span14[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list70)[0]; + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.SinglePlayerDuty, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) { Fly = true, @@ -271625,13 +327325,19 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span16 = CollectionsMarshal.AsSpan(list71); - span16[0] = "There is currently no BossMod Supported Bosses Logic."; - span16[1] = "BossMod doesn't use Interject."; - span16[2] = "BossMod can't handle QuickButton Actions yet."; - span16[3] = "BossMod doesn't use Healing Actions for Tanks."; - span16[4] = "It will need alot of manual work"; - span16[5] = "And there is a part, where the user needs to interact."; + span = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span[index3] = "There is currently no BossMod Supported Bosses Logic."; + index3++; + span[index3] = "BossMod doesn't use Interject."; + index3++; + span[index3] = "BossMod can't handle QuickButton Actions yet."; + index3++; + span[index3] = "BossMod doesn't use Healing Actions for Tanks."; + index3++; + span[index3] = "It will need alot of manual work"; + index3++; + span[index3] = "And there is a part, where the user needs to interact."; singlePlayerDutyOptions.Notes = list71; obj55.SinglePlayerDutyOptions = singlePlayerDutyOptions; obj55.SkipConditions = new SkipConditions @@ -271644,11 +327350,13 @@ public static class AssemblyQuestLoader reference57 = obj55; obj54.Steps = list70; reference56 = obj54; - span14[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference58 = ref span14[4]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 @@ -271656,18 +327364,23 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148); obj56.Steps = list72; reference58 = obj56; - ref QuestSequence reference59 = ref span14[5]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list73)[0]; + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -271677,10 +327390,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + index3 = 1; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + span4 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA151_04107_SYSTEM_000_091") @@ -271689,7 +327404,8 @@ public static class AssemblyQuestLoader reference60 = obj58; obj57.Steps = list73; reference59 = obj57; - ref QuestSequence reference61 = ref span14[6]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 6 @@ -271697,18 +327413,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1038456u, new Vector3(-161.48627f, 3.9593172f, -8.011047f), 133); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038456u, new Vector3(-161.48627f, 3.9593172f, -8.011047f), 133); obj59.Steps = list75; reference61 = obj59; - ref QuestSequence reference62 = ref span14[7]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -271726,13 +327447,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "liza"; questRoot7.Author = list77; - num = 6; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span17 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference63 = ref span17[0]; + index = 6; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -271740,7 +327464,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list79)[0]; + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -271760,7 +327486,9 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA201_04108_Q1_000_000"), @@ -271770,22 +327498,26 @@ public static class AssemblyQuestLoader reference64 = obj62; obj61.Steps = list79; reference63 = obj61; - ref QuestSequence reference65 = ref span17[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj63.Steps = list81; reference65 = obj63; - ref QuestSequence reference66 = ref span17[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -271793,40 +327525,51 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1039403u, new Vector3(-2.0599976f, 115.8696f, -576.9589f), 620) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039403u, new Vector3(-2.0599976f, 115.8696f, -576.9589f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj64.Steps = list82; reference66 = obj64; - ref QuestSequence reference67 = ref span17[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span18 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference68 = ref span18[0]; + index2 = 2; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1039404u, new Vector3(2.2735596f, 116.12106f, -577.9355f), 620) { StopDistance = 7f }; - num3 = 6; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span19 = CollectionsMarshal.AsSpan(list84); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + span6 = CollectionsMarshal.AsSpan(list84); + 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); obj66.CompletionQuestVariablesFlags = list84; reference68 = obj66; - ref QuestStep reference69 = ref span18[1]; + num2++; + ref QuestStep reference69 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1039405u, new Vector3(2.1209717f, 116.152916f, -574.4259f), 620) { StopDistance = 7f @@ -271834,18 +327577,25 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span20 = CollectionsMarshal.AsSpan(list85); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj67.CompletionQuestVariablesFlags = list85; reference69 = obj67; obj65.Steps = list83; reference67 = obj65; - ref QuestSequence reference70 = ref span17[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -271853,21 +327603,26 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1039408u, new Vector3(144.12134f, 118.19209f, -728.6946f), 620) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039408u, new Vector3(144.12134f, 118.19209f, -728.6946f), 620) { Fly = true }; obj68.Steps = list86; reference70 = obj68; - ref QuestSequence reference71 = ref span17[5]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -271882,13 +327637,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "liza"; questRoot8.Author = list88; - num = 10; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span21 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference72 = ref span21[0]; + index = 10; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -271896,7 +327654,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -271911,21 +327671,25 @@ public static class AssemblyQuestLoader }; obj70.Steps = list90; reference72 = obj70; - ref QuestSequence reference73 = ref span21[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1039413u, new Vector3(144.73181f, 118.19209f, -729.0303f), 620) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039413u, new Vector3(144.73181f, 118.19209f, -729.0303f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj71.Steps = list91; reference73 = obj71; - ref QuestSequence reference74 = ref span21[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -271933,34 +327697,43 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list92)[0]; + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011775u, new Vector3(577.66077f, 221.4541f, -629.3279f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 14009u; + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + span5 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span5[num3] = 14009u; obj73.KillEnemyDataIds = list93; reference75 = obj73; obj72.Steps = list92; reference74 = obj72; - ref QuestSequence reference76 = ref span21[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list94)[0]; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference77 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011776u, new Vector3(591.6074f, 222.24768f, -630.9453f), 620); num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA211_04109_SYSTEM_000_051") @@ -271969,7 +327742,8 @@ public static class AssemblyQuestLoader reference77 = questStep3; obj74.Steps = list94; reference76 = obj74; - ref QuestSequence reference78 = ref span21[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 @@ -271977,32 +327751,40 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list96)[0]; + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2011777u, new Vector3(161.4862f, 118.364136f, -471.70215f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 14009u; + index3 = 1; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + span5 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span5[num3] = 14009u; obj76.KillEnemyDataIds = list97; reference79 = obj76; obj75.Steps = list96; reference78 = obj75; - ref QuestSequence reference80 = ref span21[5]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2011778u, new Vector3(146.74597f, 118.119995f, -470.9087f), 620); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011778u, new Vector3(146.74597f, 118.119995f, -470.9087f), 620); obj77.Steps = list98; reference80 = obj77; - ref QuestSequence reference81 = ref span21[6]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 @@ -272010,26 +327792,31 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span22 = CollectionsMarshal.AsSpan(list99); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.49226f, 118.1921f, -731.30457f), 620) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.49226f, 118.1921f, -731.30457f), 620) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { StopDistance = 5f }; obj78.Steps = list99; reference81 = obj78; - ref QuestSequence reference82 = ref span21[7]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list100)[0]; + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620) { Fly = true @@ -272037,7 +327824,9 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA211_04109_Q2_000_000"), @@ -272047,7 +327836,8 @@ public static class AssemblyQuestLoader reference83 = obj80; obj79.Steps = list100; reference82 = obj79; - ref QuestSequence reference84 = ref span21[8]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 8 @@ -272055,18 +327845,23 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620); + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620); obj81.Steps = list102; reference84 = obj81; - ref QuestSequence reference85 = ref span21[9]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -272081,13 +327876,16 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; questRoot9.Author = list104; - num = 8; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span23 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference86 = ref span23[0]; + index = 8; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -272095,7 +327893,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272110,15 +327910,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list106; reference86 = obj83; - ref QuestSequence reference87 = ref span23[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -272129,7 +327932,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list107; reference87 = obj84; - ref QuestSequence reference88 = ref span23[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -272137,7 +327941,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1039418u, new Vector3(144.94531f, 3.9999998f, 16.464417f), 131) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039418u, new Vector3(144.94531f, 3.9999998f, 16.464417f), 131) { AethernetShortcut = new AethernetShortcut { @@ -272147,58 +327953,69 @@ public static class AssemblyQuestLoader }; obj85.Steps = list108; reference88 = obj85; - ref QuestSequence reference89 = ref span23[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 8; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span24 = CollectionsMarshal.AsSpan(list109); - span24[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.52042f, 3.9999995f, -7.714897f), 131) + index2 = 8; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.52042f, 3.9999995f, -7.714897f), 131) { Sprint = false }; - span24[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.70839f, 4f, -11.791445f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.70839f, 4f, -11.791445f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - span24[2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(134.52821f, 4f, -65.066986f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(134.52821f, 4f, -65.066986f), 131) { Sprint = false }; - span24[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(129.31218f, 4f, -66.995674f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(129.31218f, 4f, -66.995674f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - span24[4] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(117.33298f, 4f, -72.35007f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(117.33298f, 4f, -72.35007f), 131) { Sprint = false }; - span24[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(116.47475f, 4f, -76.0361f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(116.47475f, 4f, -76.0361f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - span24[6] = new QuestStep(EInteractionType.WalkTo, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131) { Sprint = false }; - ref QuestStep reference90 = ref span24[7]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.None, null, null, 131) { DelaySecondsAtStart = 120f }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new DialogueChoice + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span4 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA221_04110_Q2_000_000"), @@ -272208,7 +328025,8 @@ public static class AssemblyQuestLoader reference90 = obj87; obj86.Steps = list109; reference89 = obj86; - ref QuestSequence reference91 = ref span23[4]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -272216,18 +328034,23 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131); obj88.Steps = list111; reference91 = obj88; - ref QuestSequence reference92 = ref span23[5]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(73.12596f, 12.789965f, 47.394222f), 131) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(73.12596f, 12.789965f, 47.394222f), 131) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -272238,7 +328061,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list112; reference92 = obj89; - ref QuestSequence reference93 = ref span23[6]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -272246,7 +328070,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) { AethernetShortcut = new AethernetShortcut { @@ -272256,15 +328082,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list113; reference93 = obj90; - ref QuestSequence reference94 = ref span23[7]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -272279,13 +328108,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; questRoot10.Author = list115; - num = 6; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span25 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference95 = ref span25[0]; + index = 6; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -272293,7 +328125,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272308,23 +328142,27 @@ public static class AssemblyQuestLoader }; obj92.Steps = list117; reference95 = obj92; - ref QuestSequence reference96 = ref span25[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span26 = CollectionsMarshal.AsSpan(list118); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(611.34705f, 80.000015f, 626.28424f), 621) + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(611.34705f, 80.000015f, 626.28424f), 621) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621); obj93.Steps = list118; reference96 = obj93; - ref QuestSequence reference97 = ref span25[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -272332,8 +328170,9 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span27 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference98 = ref span27[0]; + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref QuestStep reference98 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones @@ -272341,49 +328180,66 @@ public static class AssemblyQuestLoader num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span28 = CollectionsMarshal.AsSpan(list120); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list120; reference98 = obj95; - ref QuestStep reference99 = ref span27[1]; + index2++; + ref QuestStep reference99 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) { Fly = true }; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span29 = CollectionsMarshal.AsSpan(list121); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span6 = CollectionsMarshal.AsSpan(list121); + 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); obj96.CompletionQuestVariablesFlags = list121; reference99 = obj96; obj94.Steps = list119; reference97 = obj94; - ref QuestSequence reference100 = ref span25[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj97.Steps = list122; reference100 = obj97; - ref QuestSequence reference101 = ref span25[4]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -272391,7 +328247,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list123)[0]; + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1039422u, new Vector3(748.989f, 69.99995f, 516.0448f), 621) { Fly = true @@ -272399,7 +328257,9 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA231_04111_SYSTEM_000_060") @@ -272408,15 +328268,18 @@ public static class AssemblyQuestLoader reference102 = obj99; obj98.Steps = list123; reference101 = obj98; - ref QuestSequence reference103 = ref span25[5]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { StopDistance = 5f, NextQuestId = new QuestId(4112) @@ -272430,13 +328293,16 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "liza"; questRoot11.Author = list126; - num = 6; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span30 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference104 = ref span30[0]; + index = 6; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + span2 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -272444,7 +328310,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272459,22 +328327,26 @@ public static class AssemblyQuestLoader }; obj101.Steps = list128; reference104 = obj101; - ref QuestSequence reference105 = ref span30[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1039423u, new Vector3(257.1908f, 133.8877f, -735.92737f), 620) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039423u, new Vector3(257.1908f, 133.8877f, -735.92737f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj102.Steps = list129; reference105 = obj102; - ref QuestSequence reference106 = ref span30[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -272482,29 +328354,35 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span31 = CollectionsMarshal.AsSpan(list130); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.92796f, 118.19209f, -732.00134f), 620) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.92796f, 118.19209f, -732.00134f), 620) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620); obj103.Steps = list130; reference106 = obj103; - ref QuestSequence reference107 = ref span30[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1039428u, new Vector3(781.33813f, 256.45923f, -453.66602f), 620) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039428u, new Vector3(781.33813f, 256.45923f, -453.66602f), 620) { Fly = true }; obj104.Steps = list131; reference107 = obj104; - ref QuestSequence reference108 = ref span30[4]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -272512,21 +328390,26 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1039427u, new Vector3(142.22925f, 118.1921f, -730.0679f), 620) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039427u, new Vector3(142.22925f, 118.1921f, -730.0679f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj105.Steps = list132; reference108 = obj105; - ref QuestSequence reference109 = ref span30[5]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -272540,13 +328423,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "liza"; questRoot12.Author = list134; - num = 5; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span32 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference110 = ref span32[0]; + index = 5; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -272554,7 +328440,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272569,36 +328457,43 @@ public static class AssemblyQuestLoader }; obj107.Steps = list136; reference110 = obj107; - ref QuestSequence reference111 = ref span32[1]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list137)[0]; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj109 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039431u, new Vector3(735.25586f, 70f, 437.33875f), 621) { StopDistance = 7f }; SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span33 = CollectionsMarshal.AsSpan(list138); - span33[0] = "AI doesn't target boss"; - span33[1] = "AI doesn't heal NPCs"; + index3 = 2; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span[num3] = "AI doesn't target boss"; + num3++; + span[num3] = "AI doesn't heal NPCs"; singlePlayerDutyOptions2.Notes = list138; obj109.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference112 = obj109; obj108.Steps = list137; reference111 = obj108; - span32[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference113 = ref span32[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 3 @@ -272606,18 +328501,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1039432u, new Vector3(606.1035f, 80.000015f, 623.77356f), 621); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039432u, new Vector3(606.1035f, 80.000015f, 623.77356f), 621); obj110.Steps = list139; reference113 = obj110; - ref QuestSequence reference114 = ref span32[4]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -272635,13 +328535,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot13.Author = list141; - num = 8; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span34 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference115 = ref span34[0]; + index = 8; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -272649,7 +328552,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list143)[0]; + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + ref QuestStep reference116 = ref span3[index2]; QuestStep obj113 = new QuestStep(EInteractionType.AcceptQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -272669,7 +328574,9 @@ public static class AssemblyQuestLoader num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA301_04114_Q1_000_000"), @@ -272679,15 +328586,18 @@ public static class AssemblyQuestLoader reference116 = obj113; obj112.Steps = list143; reference115 = obj112; - ref QuestSequence reference117 = ref span34[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -272698,7 +328608,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list145; reference117 = obj114; - ref QuestSequence reference118 = ref span34[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 @@ -272706,25 +328617,31 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1040167u, new Vector3(-57.78595f, -25.02207f, 80.18616f), 138) + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040167u, new Vector3(-57.78595f, -25.02207f, 80.18616f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj115.Steps = list146; reference118 = obj115; - ref QuestSequence reference119 = ref span34[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1040168u, new Vector3(-132.43304f, -23.70691f, 53.57434f), 138); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040168u, new Vector3(-132.43304f, -23.70691f, 53.57434f), 138); obj116.Steps = list147; reference119 = obj116; - ref QuestSequence reference120 = ref span34[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 4 @@ -272732,33 +328649,41 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list148)[0]; + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + ref QuestStep reference121 = ref span3[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Combat, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = 14019u; + index3 = 1; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + span5 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span5[num3] = 14019u; obj118.KillEnemyDataIds = list149; reference121 = obj118; obj117.Steps = list148; reference120 = obj117; - ref QuestSequence reference122 = ref span34[5]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138); obj119.Steps = list150; reference122 = obj119; - ref QuestSequence reference123 = ref span34[6]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 @@ -272766,21 +328691,26 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1040177u, new Vector3(-132.34149f, -23.704098f, 53.60486f), 138) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040177u, new Vector3(-132.34149f, -23.704098f, 53.60486f), 138) { Fly = true }; obj120.Steps = list151; reference123 = obj120; - ref QuestSequence reference124 = ref span34[7]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -272799,13 +328729,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "liza"; questRoot14.Author = list153; - num = 9; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span35 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference125 = ref span35[0]; + index = 9; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -272813,7 +328746,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list155)[0]; + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference126 = ref span3[index2]; QuestStep obj123 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -272832,29 +328767,35 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = 128; + span7 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span7[index3] = 128; obj124.InTerritory = list156; skipConditions3.AetheryteShortcutIf = obj124; obj123.SkipConditions = skipConditions3; reference126 = obj123; obj122.Steps = list155; reference125 = obj122; - ref QuestSequence reference127 = ref span35[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj125.Steps = list157; reference127 = obj125; - ref QuestSequence reference128 = ref span35[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -272862,55 +328803,73 @@ public static class AssemblyQuestLoader num2 = 2; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span36 = CollectionsMarshal.AsSpan(list158); - ref QuestStep reference129 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1040185u, new Vector3(-205.43231f, -41.047558f, -57.38922f), 138) { Fly = true }; - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span37 = CollectionsMarshal.AsSpan(list159); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + span6 = CollectionsMarshal.AsSpan(list159); + 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); obj127.CompletionQuestVariablesFlags = list159; reference129 = obj127; - ref QuestStep reference130 = ref span36[1]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1040186u, new Vector3(-222.73596f, -39.96398f, -99.99243f), 138); num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span38 = CollectionsMarshal.AsSpan(list160); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list160; reference130 = questStep4; obj126.Steps = list158; reference128 = obj126; - ref QuestSequence reference131 = ref span35[3]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1040176u, new Vector3(-219.2569f, -41.930645f, -228.6565f), 138) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040176u, new Vector3(-219.2569f, -41.930645f, -228.6565f), 138) { Fly = true }; obj128.Steps = list161; reference131 = obj128; - ref QuestSequence reference132 = ref span35[4]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 @@ -272918,34 +328877,42 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) { Fly = true }; obj129.Steps = list162; reference132 = obj129; - ref QuestSequence reference133 = ref span35[5]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference134 = ref span3[num2]; QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(-85.9908f, -25.16141f, 73.1317f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = 14018u; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span5 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span5[num3] = 14018u; obj131.KillEnemyDataIds = list164; reference134 = obj131; obj130.Steps = list163; reference133 = obj130; - ref QuestSequence reference135 = ref span35[6]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 6 @@ -272953,24 +328920,30 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1040178u, new Vector3(-80.52191f, -25.288979f, 63.21814f), 138); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040178u, new Vector3(-80.52191f, -25.288979f, 63.21814f), 138); obj132.Steps = list165; reference135 = obj132; - ref QuestSequence reference136 = ref span35[7]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1040180u, new Vector3(45.609253f, -22.383259f, 100.57214f), 138) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040180u, new Vector3(45.609253f, -22.383259f, 100.57214f), 138) { Fly = true }; obj133.Steps = list166; reference136 = obj133; - ref QuestSequence reference137 = ref span35[8]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -272978,7 +328951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -272997,21 +328972,26 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "liza"; questRoot15.Author = list168; - num = 5; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span39 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference138 = ref span39[0]; + index = 5; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list170)[0]; + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference139 = ref span3[num2]; QuestStep obj136 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -273030,14 +329010,17 @@ public static class AssemblyQuestLoader num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = 128; + span7 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span7[index3] = 128; obj137.InTerritory = list171; skipConditions4.AetheryteShortcutIf = obj137; obj136.SkipConditions = skipConditions4; reference139 = obj136; obj135.Steps = list170; reference138 = obj135; - ref QuestSequence reference140 = ref span39[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -273045,22 +329028,27 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1040187u, new Vector3(-95.44525f, -24.941013f, 77.927734f), 138) + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040187u, new Vector3(-95.44525f, -24.941013f, 77.927734f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj138.Steps = list172; reference140 = obj138; - ref QuestSequence reference141 = ref span39[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2011923u, new Vector3(-55.985413f, 39.993896f, 23.147888f), 128) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011923u, new Vector3(-55.985413f, 39.993896f, 23.147888f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -273071,7 +329059,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list173; reference141 = obj139; - ref QuestSequence reference142 = ref span39[3]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 3 @@ -273079,21 +329068,26 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) { StopDistance = 7f }; obj140.Steps = list174; reference142 = obj140; - ref QuestSequence reference143 = ref span39[4]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { NextQuestId = new QuestId(4117) }; @@ -273106,13 +329100,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "liza"; questRoot16.Author = list176; - num = 6; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span40 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference144 = ref span40[0]; + index = 6; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -273120,7 +329117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list178)[0]; + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference145 = ref span3[index2]; QuestStep obj143 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -273135,25 +329134,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = 128; + index3 = 1; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + span7 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span7[num3] = 128; obj144.InTerritory = list179; skipConditions5.AetheryteShortcutIf = obj144; obj143.SkipConditions = skipConditions5; reference145 = obj143; obj142.Steps = list178; reference144 = obj142; - ref QuestSequence reference146 = ref span40[1]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list180)[0]; + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1040195u, new Vector3(70.51184f, 40f, 66.14783f), 128) { StopDistance = 5f @@ -273161,14 +329165,16 @@ public static class AssemblyQuestLoader num3 = 2; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span41 = CollectionsMarshal.AsSpan(list181); - span41[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKBA331_04117_A1_000_001") }; - span41[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q2_000_000"), @@ -273178,7 +329184,8 @@ public static class AssemblyQuestLoader reference147 = obj146; obj145.Steps = list180; reference146 = obj145; - ref QuestSequence reference148 = ref span40[2]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -273186,22 +329193,27 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1040196u, new Vector3(-0.015319824f, 11.924474f, 792.6909f), 135) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040196u, new Vector3(-0.015319824f, 11.924474f, 792.6909f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj147.Steps = list182; reference148 = obj147; - ref QuestSequence reference149 = ref span40[3]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list183)[0]; + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference150 = ref span3[num2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -273211,10 +329223,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + index3 = 1; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + span4 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q4_000_000"), @@ -273224,7 +329238,8 @@ public static class AssemblyQuestLoader reference150 = obj149; obj148.Steps = list183; reference149 = obj148; - ref QuestSequence reference151 = ref span40[4]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 4 @@ -273232,18 +329247,23 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129); obj150.Steps = list185; reference151 = obj150; - ref QuestSequence reference152 = ref span40[5]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AethernetShortcut = new AethernetShortcut { @@ -273261,13 +329281,16 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "liza"; questRoot17.Author = list187; - num = 6; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span42 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference153 = ref span42[0]; + index = 6; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -273275,7 +329298,9 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list189)[0]; + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + ref QuestStep reference154 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -273294,28 +329319,34 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 128; + span7 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span7[index3] = 128; obj154.InTerritory = list190; skipConditions6.AetheryteShortcutIf = obj154; obj153.SkipConditions = skipConditions6; reference154 = obj153; obj152.Steps = list189; reference153 = obj152; - ref QuestSequence reference155 = ref span42[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj155.Steps = list191; reference155 = obj155; - ref QuestSequence reference156 = ref span42[2]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -273323,27 +329354,33 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 2011924u, new Vector3(375.63123f, 29.55664f, 330.9834f), 137) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011924u, new Vector3(375.63123f, 29.55664f, 330.9834f), 137) { Fly = true }; obj156.Steps = list192; reference156 = obj156; - ref QuestSequence reference157 = ref span42[3]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1040209u, new Vector3(526.8176f, 56.519592f, 103.89868f), 137) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040209u, new Vector3(526.8176f, 56.519592f, 103.89868f), 137) { Fly = true }; obj157.Steps = list193; reference157 = obj157; - ref QuestSequence reference158 = ref span42[4]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -273351,21 +329388,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { Fly = true }; obj158.Steps = list194; reference158 = obj158; - ref QuestSequence reference159 = ref span42[5]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -273384,13 +329426,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; questRoot18.Author = list196; - num = 9; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span43 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference160 = ref span43[0]; + index = 9; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -273398,7 +329443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list198)[0]; + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -273414,17 +329461,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = 128; + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + span7 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span7[num3] = 128; obj162.InTerritory = list199; skipConditions7.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions7; num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q1_000_000"), @@ -273434,34 +329485,42 @@ public static class AssemblyQuestLoader reference161 = obj161; obj160.Steps = list198; reference160 = obj160; - ref QuestSequence reference162 = ref span43[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list201)[0]; + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference163 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128); SinglePlayerDutyOptions singlePlayerDutyOptions3 = new SinglePlayerDutyOptions(); - num3 = 3; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span44 = CollectionsMarshal.AsSpan(list202); - span44[0] = "AI doesn't attempt to move to the correct direction when killing orbs"; - span44[1] = "AI only dodges some, but not all AOEs"; - span44[2] = "AI doesn't move behind the shield for 'Extinction Flare' and dies"; + index3 = 3; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + span = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span[num3] = "AI doesn't attempt to move to the correct direction when killing orbs"; + num3++; + span[num3] = "AI only dodges some, but not all AOEs"; + num3++; + span[num3] = "AI doesn't move behind the shield for 'Extinction Flare' and dies"; singlePlayerDutyOptions3.Notes = list202; questStep5.SinglePlayerDutyOptions = singlePlayerDutyOptions3; reference163 = questStep5; obj163.Steps = list201; reference162 = obj163; - span43[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference164 = ref span43[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 3 @@ -273469,19 +329528,23 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128); obj164.Steps = list203; reference164 = obj164; - ref QuestSequence reference165 = ref span43[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span45 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference166 = ref span45[0]; + index2 = 5; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) { StopDistance = 7f @@ -273489,18 +329552,26 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span46 = CollectionsMarshal.AsSpan(list205); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj166.CompletionQuestVariablesFlags = list205; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new DialogueChoice + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + span4 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q3_000_000"), @@ -273508,7 +329579,8 @@ public static class AssemblyQuestLoader }; obj166.DialogueChoices = list206; reference166 = obj166; - ref QuestStep reference167 = ref span45[1]; + num2++; + ref QuestStep reference167 = ref span3[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1040191u, new Vector3(-57.63336f, 39.999992f, 20.09607f), 128) { StopDistance = 7f @@ -273516,18 +329588,26 @@ public static class AssemblyQuestLoader num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span47 = CollectionsMarshal.AsSpan(list207); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj167.CompletionQuestVariablesFlags = list207; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = new DialogueChoice + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span4 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q4_000_000"), @@ -273535,7 +329615,8 @@ public static class AssemblyQuestLoader }; obj167.DialogueChoices = list208; reference167 = obj167; - ref QuestStep reference168 = ref span45[2]; + num2++; + ref QuestStep reference168 = ref span3[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1040192u, new Vector3(-56.168518f, 39.999992f, 19.638367f), 128) { StopDistance = 7f @@ -273543,18 +329624,26 @@ public static class AssemblyQuestLoader num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span48 = CollectionsMarshal.AsSpan(list209); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list209; - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span4 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q5_000_000"), @@ -273562,7 +329651,8 @@ public static class AssemblyQuestLoader }; obj168.DialogueChoices = list210; reference168 = obj168; - ref QuestStep reference169 = ref span45[3]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1040193u, new Vector3(-55.00885f, 39.999992f, 19.4552f), 128) { StopDistance = 7f @@ -273570,18 +329660,26 @@ public static class AssemblyQuestLoader num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span49 = CollectionsMarshal.AsSpan(list211); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj169.CompletionQuestVariablesFlags = list211; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new DialogueChoice + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span4 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q6_000_000"), @@ -273589,7 +329687,8 @@ public static class AssemblyQuestLoader }; obj169.DialogueChoices = list212; reference169 = obj169; - ref QuestStep reference170 = ref span45[4]; + num2++; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj170 = new QuestStep(EInteractionType.Interact, 1040194u, new Vector3(-53.818604f, 39.999992f, 19.516235f), 128) { StopDistance = 7f @@ -273597,18 +329696,26 @@ public static class AssemblyQuestLoader num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span50 = CollectionsMarshal.AsSpan(list213); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj170.CompletionQuestVariablesFlags = list213; - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span4 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q7_000_000"), @@ -273618,7 +329725,8 @@ public static class AssemblyQuestLoader reference170 = obj170; obj165.Steps = list204; reference165 = obj165; - ref QuestSequence reference171 = ref span43[5]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 5 @@ -273626,27 +329734,33 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128) + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128) { StopDistance = 5f }; obj171.Steps = list215; reference171 = obj171; - ref QuestSequence reference172 = ref span43[6]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1040213u, new Vector3(-54.459473f, 39.999992f, 25.986084f), 128) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040213u, new Vector3(-54.459473f, 39.999992f, 25.986084f), 128) { StopDistance = 5f }; obj172.Steps = list216; reference172 = obj172; - ref QuestSequence reference173 = ref span43[7]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 7 @@ -273654,21 +329768,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128) { StopDistance = 7f }; obj173.Steps = list217; reference173 = obj173; - ref QuestSequence reference174 = ref span43[8]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -273686,13 +329805,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list219); + index = 0; + span[index] = "liza"; questRoot19.Author = list219; - num = 6; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span51 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference175 = ref span51[0]; + index = 6; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + span2 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -273700,7 +329822,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list221)[0]; + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference176 = ref span3[index2]; QuestStep obj176 = new QuestStep(EInteractionType.AcceptQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -273720,7 +329844,9 @@ public static class AssemblyQuestLoader num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA401_04120_Q1_000_000"), @@ -273730,21 +329856,25 @@ public static class AssemblyQuestLoader reference176 = obj176; obj175.Steps = list221; reference175 = obj175; - ref QuestSequence reference177 = ref span51[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj177.Steps = list223; reference177 = obj177; - ref QuestSequence reference178 = ref span51[2]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -273752,36 +329882,44 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1038459u, new Vector3(472.09888f, 16.276169f, 318.25732f), 614) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038459u, new Vector3(472.09888f, 16.276169f, 318.25732f), 614) { StopDistance = 5f }; obj178.Steps = list224; reference178 = obj178; - ref QuestSequence reference179 = ref span51[3]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference180 = ref span3[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, null, new Vector3(323.44977f, 30.394468f, 222.47493f), 614) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 14026u; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + span5 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span5[num3] = 14026u; obj180.KillEnemyDataIds = list226; reference180 = obj180; obj179.Steps = list225; reference179 = obj179; - ref QuestSequence reference181 = ref span51[4]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 4 @@ -273789,21 +329927,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1038462u, new Vector3(319.9359f, 29.41258f, 224.4143f), 614) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038462u, new Vector3(319.9359f, 29.41258f, 224.4143f), 614) { StopDistance = 5f }; obj181.Steps = list227; reference181 = obj181; - ref QuestSequence reference182 = ref span51[5]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(4121) @@ -273817,13 +329960,16 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "liza"; questRoot20.Author = list229; - num = 7; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span52 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference183 = ref span52[0]; + index = 7; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -273831,7 +329977,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -273844,15 +329992,18 @@ public static class AssemblyQuestLoader }; obj183.Steps = list231; reference183 = obj183; - ref QuestSequence reference184 = ref span52[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) { StopDistance = 1f, Fly = true, @@ -273860,7 +330011,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list232; reference184 = obj184; - ref QuestSequence reference185 = ref span52[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -273868,8 +330020,9 @@ public static class AssemblyQuestLoader num2 = 4; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span53 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference186 = ref span53[0]; + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.03345f, 4.7634573f, -477.97415f), 613) { Fly = true @@ -273879,80 +330032,111 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span54 = CollectionsMarshal.AsSpan(list234); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list234; skipConditions8.StepIf = skipStepConditions3; obj186.SkipConditions = skipConditions8; reference186 = obj186; - ref QuestStep reference187 = ref span53[1]; + index2++; + ref QuestStep reference187 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1038467u, new Vector3(-753.78046f, 4.7634573f, -479.3927f), 613); - num3 = 6; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - Span span55 = CollectionsMarshal.AsSpan(list235); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + span6 = CollectionsMarshal.AsSpan(list235); + 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); questStep6.CompletionQuestVariablesFlags = list235; reference187 = questStep6; - ref QuestStep reference188 = ref span53[2]; + index2++; + ref QuestStep reference188 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1038466u, new Vector3(-778.2254f, 8.915142f, -497.06265f), 613); num3 = 6; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - Span span56 = CollectionsMarshal.AsSpan(list236); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list236; reference188 = questStep7; - ref QuestStep reference189 = ref span53[3]; + index2++; + ref QuestStep reference189 = ref span3[index2]; QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1038468u, new Vector3(-815.88464f, 19.565891f, -461.3871f), 613) { Fly = true }; - num3 = 6; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span57 = CollectionsMarshal.AsSpan(list237); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span6 = CollectionsMarshal.AsSpan(list237); + 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); obj187.CompletionQuestVariablesFlags = list237; reference189 = obj187; obj185.Steps = list233; reference185 = obj185; - ref QuestSequence reference190 = ref span52[3]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) { StopDistance = 1f, Fly = true }; obj188.Steps = list238; reference190 = obj188; - ref QuestSequence reference191 = ref span52[4]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 4 @@ -273960,21 +330144,27 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613); obj189.Steps = list239; reference191 = obj189; - ref QuestSequence reference192 = ref span52[5]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1038469u, new Vector3(-585.04614f, 19.143135f, -708.03394f), 613); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038469u, new Vector3(-585.04614f, 19.143135f, -708.03394f), 613); obj190.Steps = list240; reference192 = obj190; - ref QuestSequence reference193 = ref span52[6]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue @@ -273982,7 +330172,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(4122) @@ -273996,21 +330188,26 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "Censored"; questRoot21.Author = list242; - num = 8; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span58 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference194 = ref span58[0]; + index = 8; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274023,7 +330220,8 @@ public static class AssemblyQuestLoader }; obj192.Steps = list244; reference194 = obj192; - ref QuestSequence reference195 = ref span58[1]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 @@ -274031,7 +330229,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1038471u, new Vector3(201.77002f, 1.1510025f, -574.88367f), 613) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038471u, new Vector3(201.77002f, 1.1510025f, -574.88367f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -274050,18 +330250,22 @@ public static class AssemblyQuestLoader }; obj193.Steps = list245; reference195 = obj193; - ref QuestSequence reference196 = ref span58[2]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1038475u, new Vector3(12.710693f, -198.1417f, -155.8404f), 613); + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038475u, new Vector3(12.710693f, -198.1417f, -155.8404f), 613); obj194.Steps = list246; reference196 = obj194; - ref QuestSequence reference197 = ref span58[3]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 3 @@ -274069,21 +330273,27 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1038476u, new Vector3(16.983276f, -195.74509f, -105.97394f), 613); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038476u, new Vector3(16.983276f, -195.74509f, -105.97394f), 613); obj195.Steps = list247; reference197 = obj195; - ref QuestSequence reference198 = ref span58[4]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1038477u, new Vector3(-34.62274f, -198.56413f, -69.16919f), 613); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038477u, new Vector3(-34.62274f, -198.56413f, -69.16919f), 613); obj196.Steps = list248; reference198 = obj196; - ref QuestSequence reference199 = ref span58[5]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 5 @@ -274091,21 +330301,27 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1038478u, new Vector3(-90.25714f, -198.95348f, -129.65594f), 613); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038478u, new Vector3(-90.25714f, -198.95348f, -129.65594f), 613); obj197.Steps = list249; reference199 = obj197; - ref QuestSequence reference200 = ref span58[6]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1038474u, new Vector3(203.1128f, 1.1510025f, -574.1207f), 613); + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038474u, new Vector3(203.1128f, 1.1510025f, -574.1207f), 613); obj198.Steps = list250; reference200 = obj198; - ref QuestSequence reference201 = ref span58[7]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -274113,7 +330329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274134,21 +330352,26 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list252); + index = 0; + span[index] = "Censored"; questRoot22.Author = list252; - num = 5; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span59 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference202 = ref span59[0]; + index = 5; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + span2 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274161,7 +330384,8 @@ public static class AssemblyQuestLoader }; obj200.Steps = list254; reference202 = obj200; - ref QuestSequence reference203 = ref span59[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -274169,7 +330393,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -274188,21 +330414,25 @@ public static class AssemblyQuestLoader }; obj201.Steps = list255; reference203 = obj201; - ref QuestSequence reference204 = ref span59[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1038480u, new Vector3(422.17126f, -0.0031298446f, -685.298f), 613) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038480u, new Vector3(422.17126f, -0.0031298446f, -685.298f), 613) { Fly = true }; obj202.Steps = list256; reference204 = obj202; - ref QuestSequence reference205 = ref span59[3]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 @@ -274210,21 +330440,26 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1038482u, new Vector3(569.7261f, 0.7321513f, -517.47925f), 613) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038482u, new Vector3(569.7261f, 0.7321513f, -517.47925f), 613) { StopDistance = 5f }; obj203.Steps = list257; reference205 = obj203; - ref QuestSequence reference206 = ref span59[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274245,13 +330480,16 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list259); + index = 0; + span[index] = "Censored"; questRoot23.Author = list259; - num = 6; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span60 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference207 = ref span60[0]; + index = 6; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + span2 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -274259,7 +330497,9 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274272,15 +330512,18 @@ public static class AssemblyQuestLoader }; obj205.Steps = list261; reference207 = obj205; - ref QuestSequence reference208 = ref span60[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1038484u, new Vector3(442.2522f, 68.02853f, -81.31531f), 614) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038484u, new Vector3(442.2522f, 68.02853f, -81.31531f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -274298,7 +330541,8 @@ public static class AssemblyQuestLoader }; obj206.Steps = list262; reference208 = obj206; - ref QuestSequence reference209 = ref span60[2]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -274306,36 +330550,51 @@ public static class AssemblyQuestLoader num2 = 3; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span61 = CollectionsMarshal.AsSpan(list263); - ref QuestStep reference210 = ref span61[0]; + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1038488u, new Vector3(476.58496f, 68.02853f, -114.7937f), 614); num3 = 6; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span62 = CollectionsMarshal.AsSpan(list264); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list264; reference210 = questStep8; - ref QuestStep reference211 = ref span61[1]; + index2++; + ref QuestStep reference211 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1038489u, new Vector3(427.87805f, 68.02852f, -126.17688f), 614); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span63 = CollectionsMarshal.AsSpan(list265); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + span6 = CollectionsMarshal.AsSpan(list265); + 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); questStep9.CompletionQuestVariablesFlags = list265; reference211 = questStep9; - ref QuestStep reference212 = ref span61[2]; + index2++; + ref QuestStep reference212 = ref span3[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1038490u, new Vector3(443.68652f, 58.724403f, -181.62811f), 614) { Fly = true @@ -274343,34 +330602,44 @@ public static class AssemblyQuestLoader num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span64 = CollectionsMarshal.AsSpan(list266); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj208.CompletionQuestVariablesFlags = list266; reference212 = obj208; obj207.Steps = list263; reference209 = obj207; - ref QuestSequence reference213 = ref span60[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span65 = CollectionsMarshal.AsSpan(list267); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(625.23627f, 81.04776f, -212.65506f), 614) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(625.23627f, 81.04776f, -212.65506f), 614) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); obj209.Steps = list267; reference213 = obj209; - ref QuestSequence reference214 = ref span60[4]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 4 @@ -274378,12 +330647,16 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list268)[0]; + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + ref QuestStep reference215 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new DialogueChoice + index3 = 1; + List list269 = new List(index3); + CollectionsMarshal.SetCount(list269, index3); + span4 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA441_04124_SYSTEM_101_121") @@ -274392,15 +330665,18 @@ public static class AssemblyQuestLoader reference215 = questStep10; obj210.Steps = list268; reference214 = obj210; - ref QuestSequence reference216 = ref span60[5]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { NextQuestId = new QuestId(4125) }; @@ -274413,13 +330689,16 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list271); + index = 0; + span[index] = "Censored"; questRoot24.Author = list271; - num = 6; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span66 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference217 = ref span66[0]; + index = 6; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + span2 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 @@ -274427,7 +330706,9 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + span3 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274440,16 +330721,18 @@ public static class AssemblyQuestLoader }; obj212.Steps = list273; reference217 = obj212; - ref QuestSequence reference218 = ref span66[1]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span67 = CollectionsMarshal.AsSpan(list274); - span67[0] = new QuestStep(EInteractionType.Interact, 1024792u, new Vector3(147.81409f, -4.1787133f, 49.454468f), 759) + index2 = 2; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1024792u, new Vector3(147.81409f, -4.1787133f, 49.454468f), 759) { TargetTerritoryId = (ushort)614, AethernetShortcut = new AethernetShortcut @@ -274458,17 +330741,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.DomanEnclaveDocks } }; - span67[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614) { Fly = true }; obj213.Steps = list274; reference218 = obj213; - span66[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference219 = ref span66[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 3 @@ -274476,24 +330762,30 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614); obj214.Steps = list275; reference219 = obj214; - ref QuestSequence reference220 = ref span66[4]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj215.Steps = list276; reference220 = obj215; - ref QuestSequence reference221 = ref span66[5]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -274501,7 +330793,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -274519,21 +330813,26 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list278); + index = 0; + span[index] = "liza"; questRoot25.Author = list278; - num = 9; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span68 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference222 = ref span68[0]; + index = 9; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + span2 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list280)[0]; + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj218 = new QuestStep(EInteractionType.AcceptQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -274553,7 +330852,9 @@ public static class AssemblyQuestLoader num3 = 1; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA501_04126_Q1_000_000"), @@ -274563,7 +330864,8 @@ public static class AssemblyQuestLoader reference223 = obj218; obj217.Steps = list280; reference222 = obj217; - ref QuestSequence reference224 = ref span68[1]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 @@ -274571,21 +330873,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1037018u, new Vector3(-34.042908f, 5.474271f, 45.303955f), 418) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037018u, new Vector3(-34.042908f, 5.474271f, 45.303955f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj219.Steps = list282; reference224 = obj219; - ref QuestSequence reference225 = ref span68[2]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419) { AethernetShortcut = new AethernetShortcut { @@ -274595,7 +330902,8 @@ public static class AssemblyQuestLoader }; obj220.Steps = list283; reference225 = obj220; - ref QuestSequence reference226 = ref span68[3]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 @@ -274603,25 +330911,31 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419); + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419); obj221.Steps = list284; reference226 = obj221; - ref QuestSequence reference227 = ref span68[4]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1037022u, new Vector3(483.97034f, 162.39722f, -545.7695f), 397) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037022u, new Vector3(483.97034f, 162.39722f, -545.7695f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj222.Steps = list285; reference227 = obj222; - ref QuestSequence reference228 = ref span68[5]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 5 @@ -274629,36 +330943,44 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list286)[0]; + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + ref QuestStep reference229 = ref span3[index2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(665.96155f, 184.83743f, -453.5654f), 397) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 14025u; + index3 = 1; + List list287 = new List(index3); + CollectionsMarshal.SetCount(list287, index3); + span5 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span5[num3] = 14025u; obj224.KillEnemyDataIds = list287; reference229 = obj224; obj223.Steps = list286; reference228 = obj223; - ref QuestSequence reference230 = ref span68[6]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1037027u, new Vector3(483.0548f, 162.34631f, -544.0299f), 397) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037027u, new Vector3(483.0548f, 162.34631f, -544.0299f), 397) { Fly = true }; obj225.Steps = list288; reference230 = obj225; - ref QuestSequence reference231 = ref span68[7]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 7 @@ -274666,7 +330988,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - ref QuestStep reference232 = ref CollectionsMarshal.AsSpan(list289)[0]; + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference232 = ref span3[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -274679,7 +331003,9 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA501_04126_SYSTEM_000_501") @@ -274688,15 +331014,18 @@ public static class AssemblyQuestLoader reference232 = obj227; obj226.Steps = list289; reference231 = obj226; - ref QuestSequence reference233 = ref span68[8]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4127) }; @@ -274709,13 +331038,16 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list292); + index = 0; + span[index] = "liza"; questRoot26.Author = list292; - num = 5; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span69 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference234 = ref span69[0]; + index = 5; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + span2 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -274723,8 +331055,9 @@ public static class AssemblyQuestLoader num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span70 = CollectionsMarshal.AsSpan(list294); - ref QuestStep reference235 = ref span70[0]; + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + ref QuestStep reference235 = ref span3[index2]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -274736,10 +331069,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = 1001; + index3 = 1; + List list295 = new List(index3); + CollectionsMarshal.SetCount(list295, index3); + span7 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span7[num3] = 1001; skipStepConditions4.InTerritory = list295; skipConditions9.StepIf = skipStepConditions4; SkipAetheryteCondition obj231 = new SkipAetheryteCondition @@ -274749,33 +331084,40 @@ public static class AssemblyQuestLoader num3 = 1; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - CollectionsMarshal.AsSpan(list296)[0] = 1001; + span7 = CollectionsMarshal.AsSpan(list296); + index3 = 0; + span7[index3] = 1001; obj231.InTerritory = list296; skipConditions9.AetheryteShortcutIf = obj231; obj230.SkipConditions = skipConditions9; - num3 = 1; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - CollectionsMarshal.AsSpan(list297)[0] = new DialogueChoice + index3 = 1; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + span4 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA511_04127_SYSTEM_000_501") }; obj230.DialogueChoices = list297; reference235 = obj230; - span70[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj229.Steps = list294; reference234 = obj229; - ref QuestSequence reference236 = ref span69[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span71 = CollectionsMarshal.AsSpan(list298); - ref QuestStep reference237 = ref span71[0]; + index2 = 3; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference237 = ref span3[num2]; QuestStep obj233 = new QuestStep(EInteractionType.Interact, 1037030u, new Vector3(11.825684f, 15.965058f, -30.136597f), 419) { AethernetShortcut = new AethernetShortcut @@ -274787,46 +331129,67 @@ public static class AssemblyQuestLoader num3 = 6; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - Span span72 = CollectionsMarshal.AsSpan(list299); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list299); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj233.CompletionQuestVariablesFlags = list299; reference237 = obj233; - ref QuestStep reference238 = ref span71[1]; + num2++; + ref QuestStep reference238 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1037031u, new Vector3(-8.98761f, 27.964876f, -170.58063f), 419); - num3 = 6; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - Span span73 = CollectionsMarshal.AsSpan(list300); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list300 = new List(index3); + CollectionsMarshal.SetCount(list300, index3); + span6 = CollectionsMarshal.AsSpan(list300); + 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); questStep11.CompletionQuestVariablesFlags = list300; reference238 = questStep11; - ref QuestStep reference239 = ref span71[2]; + num2++; + ref QuestStep reference239 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1037032u, new Vector3(52.658813f, 14.768845f, -97.30682f), 419); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span74 = CollectionsMarshal.AsSpan(list301); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list301; reference239 = questStep12; obj232.Steps = list298; reference236 = obj232; - ref QuestSequence reference240 = ref span69[2]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 @@ -274834,18 +331197,23 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1037033u, new Vector3(69.77942f, -4.6903167f, -41.397766f), 419); + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037033u, new Vector3(69.77942f, -4.6903167f, -41.397766f), 419); obj234.Steps = list302; reference240 = obj234; - ref QuestSequence reference241 = ref span69[3]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 2011698u, new Vector3(142.77869f, -20.004639f, 60.837646f), 418) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011698u, new Vector3(142.77869f, -20.004639f, 60.837646f), 418) { AethernetShortcut = new AethernetShortcut { @@ -274855,7 +331223,8 @@ public static class AssemblyQuestLoader }; obj235.Steps = list303; reference241 = obj235; - ref QuestSequence reference242 = ref span69[4]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -274863,8 +331232,9 @@ public static class AssemblyQuestLoader num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span75 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference243 = ref span75[0]; + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + ref QuestStep reference243 = ref span3[index2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -274873,17 +331243,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = new DialogueChoice + index3 = 1; + List list305 = new List(index3); + CollectionsMarshal.SetCount(list305, index3); + span4 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA511_04127_SYSTEM_000_501") }; obj237.DialogueChoices = list305; reference243 = obj237; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4128) }; @@ -274896,22 +331269,26 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "liza"; questRoot27.Author = list306; - num = 4; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span76 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference244 = ref span76[0]; + index = 4; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - Span span77 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference245 = ref span77[0]; + index2 = 2; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference245 = ref span3[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -274926,34 +331303,42 @@ public static class AssemblyQuestLoader num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = 1001; + span7 = CollectionsMarshal.AsSpan(list309); + index3 = 0; + span7[index3] = 1001; skipStepConditions5.InTerritory = list309; skipConditions10.StepIf = skipStepConditions5; SkipAetheryteCondition obj240 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 1001; + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + span7 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span7[num3] = 1001; obj240.InTerritory = list310; skipConditions10.AetheryteShortcutIf = obj240; obj239.SkipConditions = skipConditions10; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA521_04128_SYSTEM_000_501") }; obj239.DialogueChoices = list311; reference245 = obj239; - span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj238.Steps = list308; reference244 = obj238; - ref QuestSequence reference246 = ref span76[1]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -274961,23 +331346,27 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span78 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference247 = ref span78[0]; + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference247 = ref span3[index2]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 2011721u, new Vector3(-0.015319824f, 0.99176025f, 9.933594f), 1001) { TargetTerritoryId = (ushort)418 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 1001; + index3 = 1; + List list313 = new List(index3); + CollectionsMarshal.SetCount(list313, index3); + span7 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span7[num3] = 1001; skipStepConditions6.NotInTerritory = list313; skipConditions11.StepIf = skipStepConditions6; obj242.SkipConditions = skipConditions11; reference247 = obj242; - span78[1] = new QuestStep(EInteractionType.Interact, 1037036u, new Vector3(-105.36359f, 14.95313f, -142.74823f), 419) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037036u, new Vector3(-105.36359f, 14.95313f, -142.74823f), 419) { AethernetShortcut = new AethernetShortcut { @@ -274987,18 +331376,22 @@ public static class AssemblyQuestLoader }; obj241.Steps = list312; reference246 = obj241; - ref QuestSequence reference248 = ref span76[2]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1037039u, new Vector3(-69.47443f, -4.734931f, -42.008118f), 419); + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037039u, new Vector3(-69.47443f, -4.734931f, -42.008118f), 419); obj243.Steps = list314; reference248 = obj243; - ref QuestSequence reference249 = ref span76[3]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue @@ -275006,8 +331399,9 @@ public static class AssemblyQuestLoader num2 = 2; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span79 = CollectionsMarshal.AsSpan(list315); - ref QuestStep reference250 = ref span79[0]; + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + ref QuestStep reference250 = ref span3[index2]; QuestStep obj245 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -275019,14 +331413,17 @@ public static class AssemblyQuestLoader num3 = 1; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - CollectionsMarshal.AsSpan(list316)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list316); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA521_04128_SYSTEM_000_501") }; obj245.DialogueChoices = list316; reference250 = obj245; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { NextQuestId = new QuestId(4129) }; @@ -275039,22 +331436,26 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list317); + index = 0; + span[index] = "liza"; questRoot28.Author = list317; - num = 5; - List list318 = new List(num); - CollectionsMarshal.SetCount(list318, num); - Span span80 = CollectionsMarshal.AsSpan(list318); - ref QuestSequence reference251 = ref span80[0]; + index = 5; + List list318 = new List(index); + CollectionsMarshal.SetCount(list318, index); + span2 = CollectionsMarshal.AsSpan(list318); + num = 0; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span81 = CollectionsMarshal.AsSpan(list319); - ref QuestStep reference252 = ref span81[0]; + index2 = 2; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference252 = ref span3[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { StopDistance = 5f, @@ -275067,10 +331468,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 1001; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span7 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span7[num3] = 1001; skipStepConditions7.InTerritory = list320; skipConditions12.StepIf = skipStepConditions7; SkipAetheryteCondition obj248 = new SkipAetheryteCondition @@ -275080,24 +331483,30 @@ public static class AssemblyQuestLoader num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = 1001; + span7 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span7[index3] = 1001; obj248.InTerritory = list321; skipConditions12.AetheryteShortcutIf = obj248; obj247.SkipConditions = skipConditions12; - num3 = 1; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - CollectionsMarshal.AsSpan(list322)[0] = new DialogueChoice + index3 = 1; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + span4 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_SYSTEM_000_501") }; obj247.DialogueChoices = list322; reference252 = obj247; - span81[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj246.Steps = list319; reference251 = obj246; - ref QuestSequence reference253 = ref span80[1]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 @@ -275105,8 +331514,9 @@ public static class AssemblyQuestLoader num2 = 3; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span82 = CollectionsMarshal.AsSpan(list323); - ref QuestStep reference254 = ref span82[0]; + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + ref QuestStep reference254 = ref span3[index2]; QuestStep obj250 = new QuestStep(EInteractionType.Interact, 1006392u, new Vector3(184.22205f, 319.0841f, -238.33075f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead @@ -275114,57 +331524,81 @@ public static class AssemblyQuestLoader num3 = 6; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - Span span83 = CollectionsMarshal.AsSpan(list324); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj250.CompletionQuestVariablesFlags = list324; reference254 = obj250; - ref QuestStep reference255 = ref span82[1]; + index2++; + ref QuestStep reference255 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006395u, new Vector3(206.86658f, 303.115f, -296.2539f), 155); - num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span84 = CollectionsMarshal.AsSpan(list325); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list325 = new List(index3); + CollectionsMarshal.SetCount(list325, index3); + span6 = CollectionsMarshal.AsSpan(list325); + 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); questStep13.CompletionQuestVariablesFlags = list325; reference255 = questStep13; - ref QuestStep reference256 = ref span82[2]; + index2++; + ref QuestStep reference256 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1006401u, new Vector3(257.80115f, 303.15805f, -204.42517f), 155); num3 = 6; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span85 = CollectionsMarshal.AsSpan(list326); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list326; reference256 = questStep14; obj249.Steps = list323; reference253 = obj249; - ref QuestSequence reference257 = ref span80[2]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); obj251.Steps = list327; reference257 = obj251; - ref QuestSequence reference258 = ref span80[3]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 3 @@ -275172,12 +331606,16 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list328)[0]; + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + ref QuestStep reference259 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = new DialogueChoice + index3 = 1; + List list329 = new List(index3); + CollectionsMarshal.SetCount(list329, index3); + span4 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_Q1_000_060") @@ -275186,16 +331624,18 @@ public static class AssemblyQuestLoader reference259 = questStep15; obj252.Steps = list328; reference258 = obj252; - ref QuestSequence reference260 = ref span80[4]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span86 = CollectionsMarshal.AsSpan(list330); - ref QuestStep reference261 = ref span86[0]; + index2 = 2; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + ref QuestStep reference261 = ref span3[num2]; QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -275208,14 +331648,17 @@ public static class AssemblyQuestLoader num3 = 1; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_SYSTEM_000_501") }; obj254.DialogueChoices = list331; reference261 = obj254; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4130) }; @@ -275228,13 +331671,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "liza"; questRoot29.Author = list332; - num = 7; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span87 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference262 = ref span87[0]; + index = 7; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 0 @@ -275242,8 +331688,9 @@ public static class AssemblyQuestLoader num2 = 2; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span88 = CollectionsMarshal.AsSpan(list334); - ref QuestStep reference263 = ref span88[0]; + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + ref QuestStep reference263 = ref span3[index2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -275255,10 +331702,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = 1001; + index3 = 1; + List list335 = new List(index3); + CollectionsMarshal.SetCount(list335, index3); + span7 = CollectionsMarshal.AsSpan(list335); + num3 = 0; + span7[num3] = 1001; skipStepConditions8.InTerritory = list335; skipConditions13.StepIf = skipStepConditions8; SkipAetheryteCondition obj257 = new SkipAetheryteCondition @@ -275268,32 +331717,40 @@ public static class AssemblyQuestLoader num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 1001; + span7 = CollectionsMarshal.AsSpan(list336); + index3 = 0; + span7[index3] = 1001; obj257.InTerritory = list336; skipConditions13.AetheryteShortcutIf = obj257; obj256.SkipConditions = skipConditions13; - num3 = 1; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = new DialogueChoice + index3 = 1; + List list337 = new List(index3); + CollectionsMarshal.SetCount(list337, index3); + span4 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA541_04130_SYSTEM_000_501") }; obj256.DialogueChoices = list337; reference263 = obj256; - span88[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj255.Steps = list334; reference262 = obj255; - ref QuestSequence reference264 = ref span87[1]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419) { AethernetShortcut = new AethernetShortcut { @@ -275303,7 +331760,8 @@ public static class AssemblyQuestLoader }; obj258.Steps = list338; reference264 = obj258; - ref QuestSequence reference265 = ref span87[2]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 2 @@ -275311,24 +331769,30 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419); + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419); obj259.Steps = list339; reference265 = obj259; - ref QuestSequence reference266 = ref span87[3]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(10.079511f, 15.96505f, -7.351647f), 419) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(10.079511f, 15.96505f, -7.351647f), 419) { StopDistance = 0.5f }; obj260.Steps = list340; reference266 = obj260; - ref QuestSequence reference267 = ref span87[4]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 4 @@ -275336,24 +331800,30 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(0.16652964f, 26.965057f, -98.31793f), 419) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(0.16652964f, 26.965057f, -98.31793f), 419) { StopDistance = 0.5f }; obj261.Steps = list341; reference267 = obj261; - ref QuestSequence reference268 = ref span87[5]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1037044u, new Vector3(-1.6327515f, 35.344902f, -188.55579f), 419); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037044u, new Vector3(-1.6327515f, 35.344902f, -188.55579f), 419); obj262.Steps = list342; reference268 = obj262; - ref QuestSequence reference269 = ref span87[6]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -275361,7 +331831,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { NextQuestId = new QuestId(4131) }; @@ -275374,22 +331846,26 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "liza"; questRoot30.Author = list344; - num = 7; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span89 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference270 = ref span89[0]; + index = 7; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - Span span90 = CollectionsMarshal.AsSpan(list346); - ref QuestStep reference271 = ref span90[0]; + index2 = 2; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + ref QuestStep reference271 = ref span3[num2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { StopDistance = 5f, @@ -275405,34 +331881,42 @@ public static class AssemblyQuestLoader num3 = 1; List list347 = new List(num3); CollectionsMarshal.SetCount(list347, num3); - CollectionsMarshal.AsSpan(list347)[0] = 1001; + span7 = CollectionsMarshal.AsSpan(list347); + index3 = 0; + span7[index3] = 1001; skipStepConditions9.InTerritory = list347; skipConditions14.StepIf = skipStepConditions9; SkipAetheryteCondition obj266 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 1001; + index3 = 1; + List list348 = new List(index3); + CollectionsMarshal.SetCount(list348, index3); + span7 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span7[num3] = 1001; obj266.InTerritory = list348; skipConditions14.AetheryteShortcutIf = obj266; obj265.SkipConditions = skipConditions14; num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list349); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA551_04131_SYSTEM_000_501") }; obj265.DialogueChoices = list349; reference271 = obj265; - span90[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj264.Steps = list346; reference270 = obj264; - ref QuestSequence reference272 = ref span89[1]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 1 @@ -275440,7 +331924,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list350)[0]; + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + ref QuestStep reference273 = ref span3[index2]; QuestStep obj268 = new QuestStep(EInteractionType.SinglePlayerDuty, 1037045u, new Vector3(0.10675049f, 35.344906f, -188.58624f), 419) { AethernetShortcut = new AethernetShortcut @@ -275450,33 +331936,40 @@ public static class AssemblyQuestLoader } }; SinglePlayerDutyOptions singlePlayerDutyOptions4 = new SinglePlayerDutyOptions(); - num3 = 4; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span91 = CollectionsMarshal.AsSpan(list351); - span91[0] = "AI doesn't target Fafnir to start combat"; - span91[1] = "AI doesn't stand in towers"; - span91[2] = "AI doesn't kill ads"; - span91[3] = "AI doesn't move behind the shield to take cover and dies"; + index3 = 4; + List list351 = new List(index3); + CollectionsMarshal.SetCount(list351, index3); + span = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span[num3] = "AI doesn't target Fafnir to start combat"; + num3++; + span[num3] = "AI doesn't stand in towers"; + num3++; + span[num3] = "AI doesn't kill ads"; + num3++; + span[num3] = "AI doesn't move behind the shield to take cover and dies"; singlePlayerDutyOptions4.Notes = list351; obj268.SinglePlayerDutyOptions = singlePlayerDutyOptions4; reference273 = obj268; obj267.Steps = list350; reference272 = obj267; - span89[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference274 = ref span89[3]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span92 = CollectionsMarshal.AsSpan(list352); - ref QuestStep reference275 = ref span92[0]; + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + ref QuestStep reference275 = ref span3[num2]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -275488,17 +331981,21 @@ public static class AssemblyQuestLoader num3 = 1; List list353 = new List(num3); CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list353); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA551_04131_SYSTEM_000_501") }; obj270.DialogueChoices = list353; reference275 = obj270; - span92[1] = new QuestStep(EInteractionType.Interact, 1038486u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038486u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj269.Steps = list352; reference274 = obj269; - ref QuestSequence reference276 = ref span89[4]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 4 @@ -275506,27 +332003,33 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1037017u, new Vector3(-1.2664795f, 0f, -5.7526855f), 1001) + span3 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037017u, new Vector3(-1.2664795f, 0f, -5.7526855f), 1001) { StopDistance = 5f }; obj271.Steps = list354; reference276 = obj271; - ref QuestSequence reference277 = ref span89[5]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + span3 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { StopDistance = 5f }; obj272.Steps = list355; reference277 = obj272; - ref QuestSequence reference278 = ref span89[6]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue @@ -275534,7 +332037,9 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) + span3 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -275556,13 +332061,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -275570,21 +332078,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038504u, new Vector3(-357.62573f, 21.64856f, -95.99457f), 962); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038504u, new Vector3(-357.62573f, 21.64856f, -95.99457f), 962); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1038505u, new Vector3(-376.45538f, 18.999998f, 37.00305f), 962); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038505u, new Vector3(-376.45538f, 18.999998f, 37.00305f), 962); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -275592,18 +332106,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { StopDistance = 7f, NextQuestId = new QuestId(4154) @@ -275617,13 +332136,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 2; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 2; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -275631,24 +332153,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference7 = ref span3[0]; + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref QuestStep reference7 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 962); int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheredItem + Span span4 = CollectionsMarshal.AsSpan(list11); + int index3 = 0; + span4[index3] = new GatheredItem { ItemId = 35600u, ItemCount = 6, @@ -275656,7 +332184,8 @@ public static class AssemblyQuestLoader }; questStep.ItemsToGather = list11; reference7 = questStep; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275675,13 +332204,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "liza"; questRoot3.Author = list12; - num = 2; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span4[0]; + index = 2; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -275689,24 +332221,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj7.Steps = list14; reference8 = obj7; - ref QuestSequence reference9 = ref span4[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span5[0]; + index2 = 2; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 962); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new GatheredItem + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + span4 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span4[num3] = new GatheredItem { ItemId = 35601u, ItemCount = 6, @@ -275714,7 +332252,8 @@ public static class AssemblyQuestLoader }; questStep2.ItemsToGather = list16; reference10 = questStep2; - span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275733,13 +332272,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot4.Author = list17; - num = 2; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span6[0]; + index = 2; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -275747,24 +332289,30 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj9.Steps = list19; reference11 = obj9; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference13 = ref span7[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference13 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 962); num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheredItem + span4 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span4[index3] = new GatheredItem { ItemId = 35602u, ItemCount = 6, @@ -275772,7 +332320,8 @@ public static class AssemblyQuestLoader }; questStep3.ItemsToGather = list21; reference13 = questStep3; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275791,13 +332340,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot5.Author = list22; - num = 8; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span8 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference14 = ref span8[0]; + index = 8; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -275805,18 +332357,23 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj11.Steps = list24; reference14 = obj11; - ref QuestSequence reference15 = ref span8[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2011719u, new Vector3(-102.1897f, -7.0039062f, -59.92218f), 628) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011719u, new Vector3(-102.1897f, -7.0039062f, -59.92218f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -275827,7 +332384,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list25; reference15 = obj12; - ref QuestSequence reference16 = ref span8[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -275835,7 +332393,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1038506u, new Vector3(-142.2904f, -4.7500057f, 199.6643f), 628) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038506u, new Vector3(-142.2904f, -4.7500057f, 199.6643f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275845,15 +332405,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list26; reference16 = obj13; - ref QuestSequence reference17 = ref span8[3]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1038507u, new Vector3(52.750366f, 8.02f, 152.81909f), 628) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038507u, new Vector3(52.750366f, 8.02f, 152.81909f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275863,7 +332426,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list27; reference17 = obj14; - ref QuestSequence reference18 = ref span8[4]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 4 @@ -275871,7 +332435,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2011720u, new Vector3(129.5033f, 24.979004f, 15.701477f), 628) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011720u, new Vector3(129.5033f, 24.979004f, 15.701477f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275881,28 +332447,33 @@ public static class AssemblyQuestLoader }; obj15.Steps = list28; reference18 = obj15; - ref QuestSequence reference19 = ref span8[5]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span9 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference20 = ref span9[0]; + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 628); - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheredItem + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + span4 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span4[num3] = new GatheredItem { ItemId = 35847u, ItemCount = 1 }; questStep4.ItemsToGather = list30; reference20 = questStep4; - span9[1] = new QuestStep(EInteractionType.Interact, 1038508u, new Vector3(114.70203f, 12f, 35.965454f), 628) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038508u, new Vector3(114.70203f, 12f, 35.965454f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -275913,7 +332484,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list29; reference19 = obj16; - ref QuestSequence reference21 = ref span8[6]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 6 @@ -275921,7 +332493,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1038510u, new Vector3(-92.24078f, 11.799999f, -156.05408f), 628) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038510u, new Vector3(-92.24078f, 11.799999f, -156.05408f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275931,15 +332505,18 @@ public static class AssemblyQuestLoader }; obj17.Steps = list31; reference21 = obj17; - ref QuestSequence reference22 = ref span8[7]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275958,13 +332535,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot6.Author = list33; - num = 2; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span10 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span10[0]; + index = 2; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -275972,24 +332552,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj19.Steps = list35; reference23 = obj19; - ref QuestSequence reference24 = ref span10[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span11 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference25 = ref span11[0]; + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 962); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new GatheredItem + span4 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span4[index3] = new GatheredItem { ItemId = 35603u, ItemCount = 6, @@ -275997,7 +332583,8 @@ public static class AssemblyQuestLoader }; questStep5.ItemsToGather = list37; reference25 = questStep5; - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276016,13 +332603,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "liza"; questRoot7.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span12 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span12[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -276030,31 +332620,38 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj21.Steps = list40; reference26 = obj21; - ref QuestSequence reference27 = ref span12[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span13 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference28 = ref span13[0]; + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 962); - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheredItem + index3 = 1; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span4 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span4[num3] = new GatheredItem { ItemId = 35848u, ItemCount = 1 }; questStep6.ItemsToGather = list42; reference28 = questStep6; - span13[1] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276065,7 +332662,8 @@ public static class AssemblyQuestLoader }; obj22.Steps = list41; reference27 = obj22; - ref QuestSequence reference29 = ref span12[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -276073,7 +332671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1038512u, new Vector3(-73.47223f, -16.147001f, 191.27173f), 962) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038512u, new Vector3(-73.47223f, -16.147001f, 191.27173f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276083,15 +332683,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list43; reference29 = obj23; - ref QuestSequence reference30 = ref span12[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276101,7 +332704,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list44; reference30 = obj24; - ref QuestSequence reference31 = ref span12[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -276109,7 +332713,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { StopDistance = 7f }; @@ -276122,20 +332728,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot8.Author = list46; - num = 1; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - ref QuestSequence reference32 = ref CollectionsMarshal.AsSpan(list47)[0]; + index = 1; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037263u, new Vector3(46.829956f, -15.646994f, 107.86597f), 962) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037263u, new Vector3(46.829956f, -15.646994f, 107.86597f), 962) { StopDistance = 5f }; @@ -276148,13 +332760,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot9.Author = list49; - num = 5; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span14 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span14[0]; + index = 5; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -276162,7 +332777,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -276175,15 +332792,18 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference33 = obj27; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut @@ -276195,7 +332815,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKYR103_04172_Q1_000_000") @@ -276204,11 +332826,13 @@ public static class AssemblyQuestLoader reference35 = obj29; obj28.Steps = list52; reference34 = obj28; - span14[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference36 = ref span14[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -276216,18 +332840,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1039506u, new Vector3(20.401245f, -16f, 159.96033f), 979); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039506u, new Vector3(20.401245f, -16f, 159.96033f), 979); obj30.Steps = list54; reference36 = obj30; - ref QuestSequence reference37 = ref span14[4]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; @@ -276240,13 +332869,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot10.Author = list56; - num = 2; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span15 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference38 = ref span15[0]; + index = 2; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -276254,7 +332886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041747u, new Vector3(56.65674f, -0.0004196167f, -24.765442f), 963) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041747u, new Vector3(56.65674f, -0.0004196167f, -24.765442f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, SkipConditions = new SkipConditions @@ -276267,15 +332901,18 @@ public static class AssemblyQuestLoader }; obj32.Steps = list58; reference38 = obj32; - ref QuestSequence reference39 = ref span15[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040741u, new Vector3(418.265f, 3.43257f, -210.4372f), 957) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040741u, new Vector3(418.265f, 3.43257f, -210.4372f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, NextQuestId = new QuestId(5005) @@ -276289,13 +332926,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "liza"; questRoot11.Author = list60; - num = 2; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span16 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference40 = ref span16[0]; + index = 2; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -276303,7 +332943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041960u, new Vector3(-1.9379272f, -7.758f, 42.282715f), 962) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041960u, new Vector3(-1.9379272f, -7.758f, 42.282715f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -276316,15 +332958,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list62; reference40 = obj34; - ref QuestSequence reference41 = ref span16[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { NextQuestId = new QuestId(4177) }; @@ -276337,13 +332982,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot12.Author = list64; - num = 2; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span17 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference42 = ref span17[0]; + index = 2; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + span2 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -276351,7 +332999,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -276365,15 +333015,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list66; reference42 = obj36; - ref QuestSequence reference43 = ref span17[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) { StopDistance = 7f, NextQuestId = new QuestId(4178) @@ -276387,13 +333040,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "liza"; questRoot13.Author = list68; - num = 2; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span18 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference44 = ref span18[0]; + index = 2; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -276401,7 +333057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -276415,15 +333073,18 @@ public static class AssemblyQuestLoader }; obj38.Steps = list70; reference44 = obj38; - ref QuestSequence reference45 = ref span18[1]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) { StopDistance = 7f, NextQuestId = new QuestId(4179) @@ -276437,13 +333098,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; questRoot14.Author = list72; - num = 2; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span19 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference46 = ref span19[0]; + index = 2; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -276451,7 +333115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -276465,15 +333131,18 @@ public static class AssemblyQuestLoader }; obj40.Steps = list74; reference46 = obj40; - ref QuestSequence reference47 = ref span19[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) { StopDistance = 7f, NextQuestId = new QuestId(5009) @@ -276487,13 +333156,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "liza"; questRoot15.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span20 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference48 = ref span20[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -276501,18 +333173,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962); obj42.Steps = list78; reference48 = obj42; - ref QuestSequence reference49 = ref span20[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276522,7 +333199,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list79; reference49 = obj43; - ref QuestSequence reference50 = ref span20[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 @@ -276530,21 +333208,26 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Emote, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) { Emote = EEmote.Poke }; obj44.Steps = list80; reference50 = obj44; - ref QuestSequence reference51 = ref span20[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276562,13 +333245,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; questRoot16.Author = list82; - num = 4; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span21 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference52 = ref span21[0]; + index = 4; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -276576,18 +333262,23 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962); obj46.Steps = list84; reference52 = obj46; - ref QuestSequence reference53 = ref span21[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Snipe, 1039337u, new Vector3(99.6261f, -10.587427f, 276.81384f), 962) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 1039337u, new Vector3(99.6261f, -10.587427f, 276.81384f), 962) { Comment = "Click ewer, head and feet", AethernetShortcut = new AethernetShortcut @@ -276598,7 +333289,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list85; reference53 = obj47; - ref QuestSequence reference54 = ref span21[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -276606,7 +333298,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1039349u, new Vector3(-49.485046f, -14.999998f, 253.34546f), 962) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039349u, new Vector3(-49.485046f, -14.999998f, 253.34546f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276617,15 +333311,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list86; reference54 = obj48; - ref QuestSequence reference55 = ref span21[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; @@ -276638,13 +333335,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "liza"; questRoot17.Author = list88; - num = 3; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span22 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference56 = ref span22[0]; + index = 3; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -276652,19 +333352,23 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); obj50.Steps = list90; reference56 = obj50; - ref QuestSequence reference57 = ref span22[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span23 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference58 = ref span23[0]; + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1039340u, new Vector3(71.39697f, -14.446998f, 82.108765f), 962) { AethernetShortcut = new AethernetShortcut @@ -276673,19 +333377,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span24 = CollectionsMarshal.AsSpan(list92); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span6 = CollectionsMarshal.AsSpan(list92); + 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); obj52.CompletionQuestVariablesFlags = list92; reference58 = obj52; - ref QuestStep reference59 = ref span23[1]; + num2++; + ref QuestStep reference59 = ref span3[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1039338u, new Vector3(205.67627f, 1.5468291f, 22.690125f), 962) { AethernetShortcut = new AethernetShortcut @@ -276697,16 +333408,23 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span25 = CollectionsMarshal.AsSpan(list93); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list93; reference59 = obj53; - ref QuestStep reference60 = ref span23[2]; + num2++; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1039339u, new Vector3(-237.93402f, 12.289626f, 16.189758f), 962) { AethernetShortcut = new AethernetShortcut @@ -276715,21 +333433,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span26 = CollectionsMarshal.AsSpan(list94); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span6 = CollectionsMarshal.AsSpan(list94); + 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); obj54.CompletionQuestVariablesFlags = list94; reference60 = obj54; obj51.Steps = list91; reference57 = obj51; - ref QuestSequence reference61 = ref span22[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -276737,7 +333462,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; @@ -276750,26 +333477,33 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot18.Author = list96; - num = 3; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span27 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference62 = ref span27[0]; + index = 3; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list98)[0]; + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1039341u, new Vector3(164.72107f, 1.2891341f, 22.140747f), 962); num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA004_04183_Q1_000_000"), @@ -276779,7 +333513,8 @@ public static class AssemblyQuestLoader reference63 = questStep7; obj56.Steps = list98; reference62 = obj56; - ref QuestSequence reference64 = ref span27[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -276787,7 +333522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1039342u, new Vector3(111.65027f, 18.835812f, -175.0058f), 962) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039342u, new Vector3(111.65027f, 18.835812f, -175.0058f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276797,15 +333534,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list100; reference64 = obj57; - ref QuestSequence reference65 = ref span27[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039341u, new Vector3(164.72107f, 1.2891341f, 22.140747f), 962) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039341u, new Vector3(164.72107f, 1.2891341f, 22.140747f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276822,13 +333562,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot19.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span28 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference66 = ref span28[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -276836,26 +333579,32 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span29 = CollectionsMarshal.AsSpan(list104); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + span3 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; obj59.Steps = list104; reference66 = obj59; - ref QuestSequence reference67 = ref span28[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2011979u, new Vector3(236.1333f, 10.666016f, 613.27527f), 957); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011979u, new Vector3(236.1333f, 10.666016f, 613.27527f), 957); obj60.Steps = list105; reference67 = obj60; - ref QuestSequence reference68 = ref span28[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -276863,12 +333612,14 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span30 = CollectionsMarshal.AsSpan(list106); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; @@ -276881,28 +333632,34 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot20.Author = list107; - num = 3; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span31 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference69 = ref span31[0]; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) { StopDistance = 1f, Fly = true }; obj62.Steps = list109; reference69 = obj62; - ref QuestSequence reference70 = ref span31[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -276910,29 +333667,36 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list110)[0]; + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference71 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(13.657948f, 1.6567476f, 631.81714f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 13527u; + index3 = 1; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + Span span7 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span7[num3] = 13527u; obj64.KillEnemyDataIds = list111; reference71 = obj64; obj63.Steps = list110; reference70 = obj63; - ref QuestSequence reference72 = ref span31[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) { StopDistance = 1f, Fly = true @@ -276946,13 +333710,16 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; questRoot21.Author = list113; - num = 5; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span32 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference73 = ref span32[0]; + index = 5; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -276960,24 +333727,30 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039375u, new Vector3(148.3634f, 5.192836f, 611.2611f), 957); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039375u, new Vector3(148.3634f, 5.192836f, 611.2611f), 957); obj66.Steps = list115; reference73 = obj66; - ref QuestSequence reference74 = ref span32[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957) { Fly = true }; obj67.Steps = list116; reference74 = obj67; - ref QuestSequence reference75 = ref span32[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -276985,7 +333758,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list117)[0]; + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + ref QuestStep reference76 = ref span3[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2011900u, new Vector3(-17.135986f, 35.62976f, 394.39978f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -276993,23 +333768,29 @@ public static class AssemblyQuestLoader num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = 14121u; + span7 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span7[index3] = 14121u; obj69.KillEnemyDataIds = list118; reference76 = obj69; obj68.Steps = list117; reference75 = obj68; - ref QuestSequence reference77 = ref span32[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957); obj70.Steps = list119; reference77 = obj70; - ref QuestSequence reference78 = ref span32[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -277017,15 +333798,19 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list120)[0]; + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.CompleteQuest, 1039377u, new Vector3(147.60046f, 5.186336f, 610.62024f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span5 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA019_04198_Q1_000_000"), @@ -277042,24 +333827,30 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list122); + index = 0; + span[index] = "liza"; questRoot22.Author = list122; - num = 4; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span33 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference80 = ref span33[0]; + index = 4; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + span2 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957); obj73.Steps = list124; reference80 = obj73; - ref QuestSequence reference81 = ref span33[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -277067,7 +333858,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list125)[0]; + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, 1039378u, new Vector3(-103.25781f, 2.5712337f, 597.589f), 957) { Fly = true, @@ -277076,25 +333869,31 @@ public static class AssemblyQuestLoader num3 = 2; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span34 = CollectionsMarshal.AsSpan(list126); - span34[0] = 14119u; - span34[1] = 14120u; + span7 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span7[index3] = 14119u; + index3++; + span7[index3] = 14120u; obj75.KillEnemyDataIds = list126; reference82 = obj75; obj74.Steps = list125; reference81 = obj74; - ref QuestSequence reference83 = ref span33[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2011933u, new Vector3(-102.61694f, 3.0059814f, 598.9319f), 957); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011933u, new Vector3(-102.61694f, 3.0059814f, 598.9319f), 957); obj76.Steps = list127; reference83 = obj76; - ref QuestSequence reference84 = ref span33[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -277102,7 +333901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957) + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277120,13 +333921,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -277134,22 +333938,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) { StopDistance = 0.5f, Fly = true }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1039384u, new Vector3(223.22424f, 10.211119f, 562.4321f), 957) { Fly = true, @@ -277158,7 +333967,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA021_04200_Q1_000_000"), @@ -277168,7 +333979,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -277176,7 +333988,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) { StopDistance = 0.5f, Fly = true, @@ -277191,27 +334005,33 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) { Fly = true }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -277219,27 +334039,35 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference7 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Emote, 1037680u, new Vector3(-550.1946f, 1.6023201f, 50.766724f), 957) { StopDistance = 1f, Fly = true, Emote = EEmote.Greeting }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span5 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list11; reference7 = obj7; - ref QuestStep reference8 = ref span3[1]; + index2++; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Emote, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { Fly = true, @@ -277248,44 +334076,60 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span5 = CollectionsMarshal.AsSpan(list12); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list12; reference8 = obj8; - ref QuestStep reference9 = ref span3[2]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Emote, 1037676u, new Vector3(-502.95264f, 12.375282f, 116.31946f), 957) { Fly = true, Emote = EEmote.Greeting }; - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + span5 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list13; reference9 = obj9; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) { Fly = true }; @@ -277298,13 +334142,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot3.Author = list15; - num = 6; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 6; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -277312,7 +334159,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.AcceptQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) { Fly = true @@ -277320,7 +334169,9 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA023_04202_Q1_000_000"), @@ -277330,21 +334181,25 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference13 = ref span7[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span7[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -277352,31 +334207,39 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span7[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference16 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, 2011911u, new Vector3(-387.28925f, 21.744019f, 208.88062f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = 14118u; + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span6 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span6[num3] = 14118u; obj16.KillEnemyDataIds = list22; reference16 = obj16; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference17 = ref span7[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 @@ -277384,18 +334247,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span7[5]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) { Fly = true }; @@ -277408,13 +334276,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; questRoot4.Author = list25; - num = 5; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span8 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span8[0]; + index = 5; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -277422,26 +334293,32 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957); obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span8[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span9 = CollectionsMarshal.AsSpan(list28); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.631685f, 90.24879f, -136.69801f), 957); - span9[1] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957) + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.631685f, 90.24879f, -136.69801f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957) { StopDistance = 7f }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span8[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -277449,81 +334326,113 @@ public static class AssemblyQuestLoader num2 = 4; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span10 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference22 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference22 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011912u, new Vector3(65.293335f, 96.29968f, -130.23578f), 957); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span11 = CollectionsMarshal.AsSpan(list30); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list30; reference22 = questStep; - ref QuestStep reference23 = ref span10[1]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(61.000668f, 94.60124f, -159.90234f), 957); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span12 = CollectionsMarshal.AsSpan(list31); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list31; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference23 = questStep2; - ref QuestStep reference24 = ref span10[2]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011914u, null, 957); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span13 = CollectionsMarshal.AsSpan(list32); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; - ref QuestStep reference25 = ref span10[3]; + index2++; + ref QuestStep reference25 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011913u, new Vector3(79.51477f, 93.0647f, -157.09167f), 957); - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span14 = CollectionsMarshal.AsSpan(list33); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list33; reference25 = questStep4; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference26 = ref span8[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957); obj22.Steps = list34; reference26 = obj22; - ref QuestSequence reference27 = ref span8[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -277531,7 +334440,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -277544,27 +334455,33 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span15 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span15[0]; + index = 6; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) { Fly = true }; obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference29 = ref span15[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -277572,27 +334489,33 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1039366u, new Vector3(-385.24457f, 15.095761f, 62.974f), 957) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039366u, new Vector3(-385.24457f, 15.095761f, 62.974f), 957) { Fly = true }; obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span15[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957) { Fly = true }; obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference31 = ref span15[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -277600,36 +334523,51 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span16 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference32 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference32 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2011903u, new Vector3(-161.5473f, 32.211792f, 225.36047f), 957); num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span17 = CollectionsMarshal.AsSpan(list42); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list42; reference32 = questStep5; - ref QuestStep reference33 = ref span16[1]; + index2++; + ref QuestStep reference33 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2011904u, new Vector3(-148.57715f, 34.10388f, 207.84314f), 957); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span18 = CollectionsMarshal.AsSpan(list43); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span5 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list43; reference33 = questStep6; - ref QuestStep reference34 = ref span16[2]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, 2011902u, new Vector3(-170.21442f, 31.814941f, 193.1029f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -277637,34 +334575,46 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 14117u; + span6 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span6[index3] = 14117u; obj28.KillEnemyDataIds = list44; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span19 = CollectionsMarshal.AsSpan(list45); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span5 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list45; reference34 = obj28; obj27.Steps = list41; reference31 = obj27; - ref QuestSequence reference35 = ref span15[4]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957); obj29.Steps = list46; reference35 = obj29; - ref QuestSequence reference36 = ref span15[5]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -277672,7 +334622,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277686,27 +334638,33 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot6.Author = list48; - num = 5; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span20 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference37 = ref span20[0]; + index = 5; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) { Fly = true }; obj31.Steps = list50; reference37 = obj31; - ref QuestSequence reference38 = ref span20[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -277714,21 +334672,26 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1039372u, new Vector3(195.91052f, 4.763736f, 658.2893f), 957) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039372u, new Vector3(195.91052f, 4.763736f, 658.2893f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj32.Steps = list51; reference38 = obj32; - ref QuestSequence reference39 = ref span20[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1039373u, new Vector3(-314.6258f, 0.70631444f, 561.12f), 957) { Fly = true @@ -277736,7 +334699,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA026_04205_Q1_000_000"), @@ -277746,7 +334711,8 @@ public static class AssemblyQuestLoader reference40 = obj34; obj33.Steps = list52; reference39 = obj33; - ref QuestSequence reference41 = ref span20[3]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -277754,25 +334720,33 @@ public static class AssemblyQuestLoader num2 = 6; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span21 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference42 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + ref QuestStep reference42 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 2011905u, new Vector3(-443.04572f, -0.22894287f, 800.7781f), 957) { Fly = true }; - num3 = 6; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span22 = CollectionsMarshal.AsSpan(list55); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + span5 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list55; reference42 = obj36; - ref QuestStep reference43 = ref span21[1]; + index2++; + ref QuestStep reference43 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 2011906u, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) { Mount = false @@ -277780,72 +334754,103 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span23 = CollectionsMarshal.AsSpan(list56); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj37.CompletionQuestVariablesFlags = list56; reference43 = obj37; - span21[2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) { StopDistance = 5f }; - ref QuestStep reference44 = ref span21[3]; + index2++; + ref QuestStep reference44 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2011908u, new Vector3(-484.85547f, -72.22095f, 814.35876f), 957); - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span24 = CollectionsMarshal.AsSpan(list57); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span5 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list57; reference44 = questStep7; - ref QuestStep reference45 = ref span21[4]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2011907u, new Vector3(-452.90308f, -67.00244f, 776.2417f), 957); num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span25 = CollectionsMarshal.AsSpan(list58); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list58; reference45 = questStep8; - ref QuestStep reference46 = ref span21[5]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2011909u, new Vector3(-513.51184f, -52.689453f, 773.73914f), 957); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span26 = CollectionsMarshal.AsSpan(list59); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + span5 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list59; reference46 = questStep9; obj35.Steps = list54; reference41 = obj35; - ref QuestSequence reference47 = ref span20[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277859,13 +334864,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; questRoot7.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span27 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference48 = ref span27[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -277873,21 +334881,26 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) { Fly = true }; obj39.Steps = list63; reference48 = obj39; - ref QuestSequence reference49 = ref span27[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list64)[0]; + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1513f, 40.91181f, -451.32486f), 957) { StopDistance = 0.5f, @@ -277897,12 +334910,15 @@ public static class AssemblyQuestLoader num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = 14116u; + span6 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span6[index3] = 14116u; obj41.KillEnemyDataIds = list65; reference50 = obj41; obj40.Steps = list64; reference49 = obj40; - ref QuestSequence reference51 = ref span27[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -277910,18 +334926,23 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1039383u, new Vector3(-567.6509f, 41.313267f, -448.41687f), 957); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039383u, new Vector3(-567.6509f, 41.313267f, -448.41687f), 957); obj42.Steps = list66; reference51 = obj42; - ref QuestSequence reference52 = ref span27[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277935,13 +334956,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "liza"; questRoot8.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span28 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference53 = ref span28[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -277949,28 +334973,34 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) { StopDistance = 0.5f, Fly = true }; obj44.Steps = list70; reference53 = obj44; - ref QuestSequence reference54 = ref span28[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) { Fly = true }; obj45.Steps = list71; reference54 = obj45; - ref QuestSequence reference55 = ref span28[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -277978,26 +335008,34 @@ public static class AssemblyQuestLoader num2 = 9; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span29 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference56 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-477.78827f, 73.67918f, -542.7145f), 957); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span30 = CollectionsMarshal.AsSpan(list73); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span5 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list73; skipConditions2.StepIf = skipStepConditions2; questStep10.SkipConditions = skipConditions2; reference56 = questStep10; - ref QuestStep reference57 = ref span29[1]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, 2011962u, new Vector3(-477.16492f, 74.75391f, -544.5792f), 957) { ItemId = 2003199u @@ -278005,69 +335043,97 @@ public static class AssemblyQuestLoader num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span31 = CollectionsMarshal.AsSpan(list74); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list74; reference57 = obj47; - ref QuestStep reference58 = ref span29[2]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 2011963u, new Vector3(-479.2401f, 74.784424f, -541.619f), 957) { DelaySecondsAtStart = 3f, ItemId = 2003199u }; - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span32 = CollectionsMarshal.AsSpan(list75); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span5 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list75; reference58 = obj48; - ref QuestStep reference59 = ref span29[3]; + index2++; + ref QuestStep reference59 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.98328f, 73.32367f, -521.75024f), 957); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span33 = CollectionsMarshal.AsSpan(list76); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list76; skipConditions3.StepIf = skipStepConditions3; questStep11.SkipConditions = skipConditions3; reference59 = questStep11; - ref QuestStep reference60 = ref span29[4]; + index2++; + ref QuestStep reference60 = ref span3[index2]; QuestStep obj49 = new QuestStep(EInteractionType.UseItem, 2011964u, new Vector3(-484.67236f, 74.021484f, -523.15564f), 957) { ItemId = 2003199u }; - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span34 = CollectionsMarshal.AsSpan(list77); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + span5 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list77; reference60 = obj49; - ref QuestStep reference61 = ref span29[5]; + index2++; + ref QuestStep reference61 = ref span3[index2]; QuestStep obj50 = new QuestStep(EInteractionType.UseItem, 2011965u, new Vector3(-483.6042f, 74.35718f, -519.7986f), 957) { DelaySecondsAtStart = 3f, @@ -278076,34 +335142,49 @@ public static class AssemblyQuestLoader num3 = 6; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span35 = CollectionsMarshal.AsSpan(list78); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list78; reference61 = obj50; - span29[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.0877f, 73.24273f, -512.62787f), 957); - ref QuestStep reference62 = ref span29[7]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.0877f, 73.24273f, -512.62787f), 957); + index2++; + ref QuestStep reference62 = ref span3[index2]; QuestStep obj51 = new QuestStep(EInteractionType.UseItem, 2011967u, new Vector3(-476.92078f, 74.08252f, -511.43665f), 957) { ItemId = 2003199u }; - num3 = 6; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span36 = CollectionsMarshal.AsSpan(list79); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span5 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj51.CompletionQuestVariablesFlags = list79; reference62 = obj51; - ref QuestStep reference63 = ref span29[8]; + index2++; + ref QuestStep reference63 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.UseItem, 2011966u, new Vector3(-473.0144f, 74.32666f, -512.3827f), 957) { DelaySecondsAtStart = 3f, @@ -278112,32 +335193,42 @@ public static class AssemblyQuestLoader num3 = 6; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span37 = CollectionsMarshal.AsSpan(list80); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list80; reference63 = obj52; obj46.Steps = list72; reference55 = obj46; - ref QuestSequence reference64 = ref span28[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) { Fly = true }; obj53.Steps = list81; reference64 = obj53; - ref QuestSequence reference65 = ref span28[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -278145,7 +335236,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) { StopDistance = 0.5f, Fly = true, @@ -278160,24 +335253,30 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; questRoot9.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span38 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference66 = ref span38[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957); + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957); obj55.Steps = list85; reference66 = obj55; - ref QuestSequence reference67 = ref span38[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -278185,63 +335284,87 @@ public static class AssemblyQuestLoader num2 = 3; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span39 = CollectionsMarshal.AsSpan(list86); - ref QuestStep reference68 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1039370u, new Vector3(-106.21808f, 95.53504f, -700.4959f), 957) { Fly = true }; - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span40 = CollectionsMarshal.AsSpan(list87); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span5 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj57.CompletionQuestVariablesFlags = list87; reference68 = obj57; - ref QuestStep reference69 = ref span39[1]; + index2++; + ref QuestStep reference69 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1039368u, new Vector3(-65.07977f, 89.860886f, -659.8764f), 957); num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span41 = CollectionsMarshal.AsSpan(list88); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list88; reference69 = questStep12; - ref QuestStep reference70 = ref span39[2]; + index2++; + ref QuestStep reference70 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1039369u, new Vector3(-66.14789f, 89.4264f, -635.8892f), 957); - num3 = 6; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span42 = CollectionsMarshal.AsSpan(list89); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list89 = new List(index3); + CollectionsMarshal.SetCount(list89, index3); + span5 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list89; reference70 = questStep13; obj56.Steps = list86; reference67 = obj56; - ref QuestSequence reference71 = ref span38[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -278255,13 +335378,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; questRoot10.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span43 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference72 = ref span43[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -278269,29 +335395,35 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) { Fly = true }; obj59.Steps = list93; reference72 = obj59; - ref QuestSequence reference73 = ref span43[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.16296f, 94.31451f, -289.12802f), 957) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.16296f, 94.31451f, -289.12802f), 957) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.Interact, 2011910u, new Vector3(-280.99493f, 95.87244f, -287.64783f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011910u, new Vector3(-280.99493f, 95.87244f, -287.64783f), 957); obj60.Steps = list94; reference73 = obj60; - ref QuestSequence reference74 = ref span43[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -278299,7 +335431,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -278313,24 +335447,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot11.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span45 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference75 = ref span45[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962); obj62.Steps = list98; reference75 = obj62; - ref QuestSequence reference76 = ref span45[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -278338,30 +335478,37 @@ public static class AssemblyQuestLoader num2 = 3; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span46 = CollectionsMarshal.AsSpan(list99); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.63965f, 25.46388f, -157.38919f), 962); - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.05865f, 22.001097f, -166.16983f), 962) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.63965f, 25.46388f, -157.38919f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.05865f, 22.001097f, -166.16983f), 962) { DisableNavmesh = true }; - span46[2] = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); obj63.Steps = list99; reference76 = obj63; - ref QuestSequence reference77 = ref span45[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, 2011801u, new Vector3(-191.02777f, 24.215942f, -179.15619f), 962) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2011801u, new Vector3(-191.02777f, 24.215942f, -179.15619f), 962) { ItemId = 2003114u }; obj64.Steps = list100; reference77 = obj64; - ref QuestSequence reference78 = ref span45[3]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -278369,12 +335516,16 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list101)[0]; + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); num3 = 1; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC001_04210_Q1_000_000"), @@ -278384,15 +335535,18 @@ public static class AssemblyQuestLoader reference79 = questStep14; obj65.Steps = list101; reference78 = obj65; - ref QuestSequence reference80 = ref span45[4]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -278410,13 +335564,16 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; questRoot12.Author = list104; - num = 4; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span47 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference81 = ref span47[0]; + index = 4; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -278424,21 +335581,27 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 2011795u, new Vector3(-104.32593f, 24.673828f, -120.042725f), 962); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 2011795u, new Vector3(-104.32593f, 24.673828f, -120.042725f), 962); obj67.Steps = list106; reference81 = obj67; - ref QuestSequence reference82 = ref span47[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1039344u, new Vector3(-58.54895f, 5.9669995f, -60.746216f), 962); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039344u, new Vector3(-58.54895f, 5.9669995f, -60.746216f), 962); obj68.Steps = list107; reference82 = obj68; - ref QuestSequence reference83 = ref span47[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -278446,18 +335609,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); obj69.Steps = list108; reference83 = obj69; - ref QuestSequence reference84 = ref span47[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039345u, new Vector3(-102.1897f, 24.649986f, -119.798584f), 962); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039345u, new Vector3(-102.1897f, 24.649986f, -119.798584f), 962); obj70.Steps = list109; reference84 = obj70; questRoot12.QuestSequence = list105; @@ -278467,13 +335635,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "liza"; questRoot13.Author = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span48 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference85 = ref span48[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -278481,18 +335652,23 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962); obj71.Steps = list112; reference85 = obj71; - ref QuestSequence reference86 = ref span48[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1039343u, new Vector3(-16.983276f, -16.246998f, 123.03345f), 962) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039343u, new Vector3(-16.983276f, -16.246998f, 123.03345f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278502,7 +335678,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list113; reference86 = obj72; - ref QuestSequence reference87 = ref span48[2]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -278510,7 +335687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278527,26 +335706,33 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; questRoot14.Author = list115; - num = 3; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span49 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference88 = ref span49[0]; + index = 3; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list117)[0]; + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + ref QuestStep reference89 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.AcceptQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962); - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + index3 = 1; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + span4 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC004_04213_Q1_000_000"), @@ -278556,7 +335742,8 @@ public static class AssemblyQuestLoader reference89 = questStep15; obj74.Steps = list117; reference88 = obj74; - ref QuestSequence reference90 = ref span49[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -278564,7 +335751,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1041285u, new Vector3(115.80066f, 14.741594f, -132.03638f), 962) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041285u, new Vector3(115.80066f, 14.741594f, -132.03638f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278574,15 +335763,18 @@ public static class AssemblyQuestLoader }; obj75.Steps = list119; reference90 = obj75; - ref QuestSequence reference91 = ref span49[2]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278599,13 +335791,16 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "liza"; questRoot15.Author = list121; - num = 7; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span50 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference92 = ref span50[0]; + index = 7; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -278613,12 +335808,16 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list123)[0]; + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.AcceptQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZC005_04214_Q1_000_000") @@ -278627,18 +335826,22 @@ public static class AssemblyQuestLoader reference93 = questStep16; obj77.Steps = list123; reference92 = obj77; - ref QuestSequence reference94 = ref span50[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); obj78.Steps = list125; reference94 = obj78; - ref QuestSequence reference95 = ref span50[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -278646,25 +335849,31 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Emote, 2012434u, new Vector3(-168.32227f, 21.927185f, -151.29321f), 962) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2012434u, new Vector3(-168.32227f, 21.927185f, -151.29321f), 962) { StopDistance = 0.25f, Emote = EEmote.BattleStance }; obj79.Steps = list126; reference95 = obj79; - ref QuestSequence reference96 = ref span50[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2012437u, new Vector3(-169.69562f, 22.87323f, -150.07251f), 962); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012437u, new Vector3(-169.69562f, 22.87323f, -150.07251f), 962); obj80.Steps = list127; reference96 = obj80; - ref QuestSequence reference97 = ref span50[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 @@ -278672,23 +335881,30 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1037098u, new Vector3(-94.83484f, 6.617f, -41.58087f), 962); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037098u, new Vector3(-94.83484f, 6.617f, -41.58087f), 962); obj81.Steps = list128; reference97 = obj81; - ref QuestSequence reference98 = ref span50[5]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list129)[0]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref QuestStep reference99 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + index3 = 1; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + span4 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC005_04214_Q2_000_000"), @@ -278698,7 +335914,8 @@ public static class AssemblyQuestLoader reference99 = questStep17; obj82.Steps = list129; reference98 = obj82; - ref QuestSequence reference100 = ref span50[6]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -278706,7 +335923,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -278724,24 +335943,30 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot16.Author = list132; - num = 3; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span51 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference101 = ref span51[0]; + index = 3; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962); obj84.Steps = list134; reference101 = obj84; - ref QuestSequence reference102 = ref span51[1]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -278749,47 +335974,62 @@ public static class AssemblyQuestLoader num2 = 7; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span52 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference103 = ref span52[0]; + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference103 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-265.8844f, 18.745457f, 44.893326f), 962); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span53 = CollectionsMarshal.AsSpan(list136); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list136; skipConditions4.StepIf = skipStepConditions4; questStep18.SkipConditions = skipConditions4; reference103 = questStep18; - ref QuestStep reference104 = ref span52[1]; + index2++; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.26123f, 12.376022f, 53.92458f), 962) { DisableNavmesh = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span54 = CollectionsMarshal.AsSpan(list137); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + span5 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list137; skipConditions5.StepIf = skipStepConditions5; obj86.SkipConditions = skipConditions5; reference104 = obj86; - ref QuestStep reference105 = ref span52[2]; + index2++; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.UseItem, 1041289u, new Vector3(-265.919f, 12.623348f, 102.86096f), 962) { ItemId = 2003288u, @@ -278798,34 +336038,48 @@ public static class AssemblyQuestLoader num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span55 = CollectionsMarshal.AsSpan(list138); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list138; reference105 = obj87; - ref QuestStep reference106 = ref span52[3]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep obj88 = new QuestStep(EInteractionType.UseItem, 1041290u, new Vector3(-291.49316f, 12.68306f, 127.45862f), 962) { ItemId = 2003288u, GroundTarget = true }; - num3 = 6; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span56 = CollectionsMarshal.AsSpan(list139); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + span5 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj88.CompletionQuestVariablesFlags = list139; reference106 = obj88; - ref QuestStep reference107 = ref span52[4]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 1041291u, new Vector3(-155.77942f, 11.71745f, -52.628357f), 962) { ItemId = 2003288u, @@ -278834,34 +336088,48 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span57 = CollectionsMarshal.AsSpan(list140); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list140; reference107 = obj89; - ref QuestStep reference108 = ref span52[5]; + index2++; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj90 = new QuestStep(EInteractionType.UseItem, 1041292u, new Vector3(-147.50903f, 12.490502f, -87.052734f), 962) { ItemId = 2003288u, GroundTarget = true }; - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span58 = CollectionsMarshal.AsSpan(list141); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + span5 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list141; reference108 = obj90; - ref QuestStep reference109 = ref span52[6]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj91 = new QuestStep(EInteractionType.UseItem, 1041293u, new Vector3(-107.86603f, 18.024683f, -71.33594f), 962) { ItemId = 2003288u, @@ -278870,26 +336138,35 @@ public static class AssemblyQuestLoader num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span59 = CollectionsMarshal.AsSpan(list142); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list142; reference109 = obj91; obj85.Steps = list135; reference102 = obj85; - ref QuestSequence reference110 = ref span51[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278906,13 +336183,16 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list144); + index = 0; + span[index] = "liza"; questRoot17.Author = list144; - num = 4; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span60 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference111 = ref span60[0]; + index = 4; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + span2 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -278920,21 +336200,27 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958); obj93.Steps = list146; reference111 = obj93; - ref QuestSequence reference112 = ref span60[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(-233.44781f, 22.17031f, 443.71704f), 958); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(-233.44781f, 22.17031f, 443.71704f), 958); obj94.Steps = list147; reference112 = obj94; - ref QuestSequence reference113 = ref span60[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -278942,21 +336228,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(156.03712f, -19.711596f, 562.5593f), 958) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(156.03712f, -19.711596f, 562.5593f), 958) { StopDistance = 1f }; obj95.Steps = list148; reference113 = obj95; - ref QuestSequence reference114 = ref span60[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958); obj96.Steps = list149; reference114 = obj96; questRoot17.QuestSequence = list145; @@ -278966,13 +336257,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "goatzone"; questRoot18.Author = list150; - num = 4; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span61 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference115 = ref span61[0]; + index = 4; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -278980,27 +336274,33 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958) { Fly = true }; obj97.Steps = list152; reference115 = obj97; - ref QuestSequence reference116 = ref span61[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true }; obj98.Steps = list153; reference116 = obj98; - ref QuestSequence reference117 = ref span61[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -279008,70 +336308,91 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span62 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference118 = ref span62[0]; + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + ref QuestStep reference118 = ref span3[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Combat, null, new Vector3(73.64728f, -18.777306f, 527.2946f), 958) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 14107u; + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + span6 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span6[num3] = 14107u; obj100.KillEnemyDataIds = list155; num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span63 = CollectionsMarshal.AsSpan(list156); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list156; reference118 = obj100; - ref QuestStep reference119 = ref span62[1]; + index2++; + ref QuestStep reference119 = ref span3[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(370.17212f, -18.937208f, 338.0957f), 958) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 14107u; + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span6 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span6[num3] = 14107u; obj101.KillEnemyDataIds = list157; num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span64 = CollectionsMarshal.AsSpan(list158); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list158; reference119 = obj101; obj99.Steps = list154; reference117 = obj99; - ref QuestSequence reference120 = ref span61[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span65 = CollectionsMarshal.AsSpan(list159); - span65[0] = new QuestStep(EInteractionType.None, null, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { StopDistance = 2000f, Mount = false }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true, NextQuestId = new QuestId(4218) @@ -279085,13 +336406,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "goatzone"; questRoot19.Author = list160; - num = 5; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span66 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference121 = ref span66[0]; + index = 5; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -279099,29 +336423,36 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true }; obj103.Steps = list162; reference121 = obj103; - ref QuestSequence reference122 = ref span66[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference123 = ref span3[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1041121u, new Vector3(208.51453f, 4.706692f, 77.77527f), 958) { Fly = true }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span4 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC009_04218_Q1_000_000"), @@ -279131,7 +336462,8 @@ public static class AssemblyQuestLoader reference123 = obj105; obj104.Steps = list163; reference122 = obj104; - ref QuestSequence reference124 = ref span66[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -279139,27 +336471,33 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Emote, 2012474u, new Vector3(210.28455f, 5.355835f, 76.76807f), 958) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2012474u, new Vector3(210.28455f, 5.355835f, 76.76807f), 958) { Emote = EEmote.Pray }; obj106.Steps = list165; reference124 = obj106; - ref QuestSequence reference125 = ref span66[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1042180u, new Vector3(127.06189f, -13.29479f, 650.8429f), 958) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042180u, new Vector3(127.06189f, -13.29479f, 650.8429f), 958) { Fly = true }; obj107.Steps = list166; reference125 = obj107; - ref QuestSequence reference126 = ref span66[4]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -279167,7 +336505,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279180,24 +336520,30 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "goatzone"; questRoot20.Author = list168; - num = 3; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span67 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference127 = ref span67[0]; + index = 3; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); obj109.Steps = list170; reference127 = obj109; - ref QuestSequence reference128 = ref span67[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -279205,60 +336551,84 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span68 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference129 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); num3 = 6; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span69 = CollectionsMarshal.AsSpan(list172); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list172; reference129 = questStep19; - ref QuestStep reference130 = ref span68[1]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); - num3 = 6; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span70 = CollectionsMarshal.AsSpan(list173); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + span5 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list173; reference130 = questStep20; - ref QuestStep reference131 = ref span68[2]; + index2++; + ref QuestStep reference131 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); num3 = 6; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span71 = CollectionsMarshal.AsSpan(list174); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list174; reference131 = questStep21; obj110.Steps = list171; reference128 = obj110; - ref QuestSequence reference132 = ref span67[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); obj111.Steps = list175; reference132 = obj111; questRoot20.QuestSequence = list169; @@ -279268,13 +336638,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "goatzone"; questRoot21.Author = list176; - num = 4; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span72 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference133 = ref span72[0]; + index = 4; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -279282,24 +336655,30 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); obj112.Steps = list178; reference133 = obj112; - ref QuestSequence reference134 = ref span72[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Snipe, 2012040u, new Vector3(-229.14478f, 20.035034f, 319.417f), 958) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2012040u, new Vector3(-229.14478f, 20.035034f, 319.417f), 958) { Comment = "Zoom in between the buildings and wait a few seconds." }; obj113.Steps = list179; reference134 = obj113; - ref QuestSequence reference135 = ref span72[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 @@ -279307,21 +336686,26 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1039395u, new Vector3(83.84827f, 1.1234589f, 137.19385f), 958) + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039395u, new Vector3(83.84827f, 1.1234589f, 137.19385f), 958) { Fly = true }; obj114.Steps = list180; reference135 = obj114; - ref QuestSequence reference136 = ref span72[3]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279334,13 +336718,16 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list182); + index = 0; + span[index] = "goatzone"; questRoot22.Author = list182; - num = 3; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span73 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference137 = ref span73[0]; + index = 3; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + span2 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -279348,63 +336735,88 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); obj116.Steps = list184; reference137 = obj116; - ref QuestSequence reference138 = ref span73[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span74 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference139 = ref span74[0]; + index2 = 3; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference139 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1039396u, new Vector3(-318.227f, 22.376268f, 449.45447f), 958); - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span75 = CollectionsMarshal.AsSpan(list186); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + span5 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list186; reference139 = questStep22; - ref QuestStep reference140 = ref span74[1]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1039397u, new Vector3(-317.76917f, 22f, 428.7937f), 958); num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span76 = CollectionsMarshal.AsSpan(list187); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list187); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list187; reference140 = questStep23; - ref QuestStep reference141 = ref span74[2]; + num2++; + ref QuestStep reference141 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1039398u, new Vector3(-318.62366f, 22.943655f, 391.4701f), 958); - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span77 = CollectionsMarshal.AsSpan(list188); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + span5 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list188; reference141 = questStep24; obj117.Steps = list185; reference138 = obj117; - ref QuestSequence reference142 = ref span73[2]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -279412,7 +336824,9 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); obj118.Steps = list189; reference142 = obj118; questRoot22.QuestSequence = list183; @@ -279422,24 +336836,30 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "goatzone"; questRoot23.Author = list190; - num = 5; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span78 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference143 = ref span78[0]; + index = 5; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); obj119.Steps = list192; reference143 = obj119; - ref QuestSequence reference144 = ref span78[1]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -279447,7 +336867,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list193)[0]; + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + ref QuestStep reference145 = ref span3[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Combat, null, new Vector3(147.65237f, -18.974234f, 434.61954f), 958) { Fly = true, @@ -279456,25 +336878,31 @@ public static class AssemblyQuestLoader num3 = 2; List list194 = new List(num3); CollectionsMarshal.SetCount(list194, num3); - Span span79 = CollectionsMarshal.AsSpan(list194); - span79[0] = 14105u; - span79[1] = 14106u; + span6 = CollectionsMarshal.AsSpan(list194); + index3 = 0; + span6[index3] = 14105u; + index3++; + span6[index3] = 14106u; obj121.KillEnemyDataIds = list194; reference145 = obj121; obj120.Steps = list193; reference144 = obj120; - ref QuestSequence reference146 = ref span78[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1039388u, new Vector3(145.4032f, -18.974236f, 435.0193f), 958); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039388u, new Vector3(145.4032f, -18.974236f, 435.0193f), 958); obj122.Steps = list195; reference146 = obj122; - ref QuestSequence reference147 = ref span78[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -279482,18 +336910,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1039387u, new Vector3(144.82336f, -18.974234f, 436.27063f), 958); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039387u, new Vector3(144.82336f, -18.974234f, 436.27063f), 958); obj123.Steps = list196; reference147 = obj123; - ref QuestSequence reference148 = ref span78[4]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279506,13 +336939,16 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "goatzone"; questRoot24.Author = list198; - num = 3; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span80 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference149 = ref span80[0]; + index = 3; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -279520,37 +336956,48 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); obj125.Steps = list200; reference149 = obj125; - ref QuestSequence reference150 = ref span80[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span81 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference151 = ref span81[0]; + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference151 = ref span3[num2]; QuestStep obj127 = new QuestStep(EInteractionType.UseItem, 2011969u, new Vector3(-371.26727f, 24.979004f, 151.20166f), 958) { Fly = true, ItemId = 2003195u }; - num3 = 6; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span82 = CollectionsMarshal.AsSpan(list202); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + span5 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list202; reference151 = obj127; - ref QuestStep reference152 = ref span81[1]; + num2++; + ref QuestStep reference152 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.UseItem, 2011968u, new Vector3(-313.92395f, 21.805054f, 147.87512f), 958) { ItemId = 2003195u @@ -279558,41 +337005,57 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span83 = CollectionsMarshal.AsSpan(list203); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list203; reference152 = obj128; - ref QuestStep reference153 = ref span81[2]; + num2++; + ref QuestStep reference153 = ref span3[num2]; QuestStep obj129 = new QuestStep(EInteractionType.Combat, 2011970u, new Vector3(-375.29565f, 21.164185f, 99.47351f), 958) { ItemId = 2003195u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 14104u; + index3 = 1; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + span6 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span6[num3] = 14104u; obj129.KillEnemyDataIds = list204; num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span84 = CollectionsMarshal.AsSpan(list205); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj129.CompletionQuestVariablesFlags = list205; reference153 = obj129; obj126.Steps = list201; reference150 = obj126; - ref QuestSequence reference154 = ref span80[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -279600,7 +337063,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279613,24 +337078,30 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "goatzone"; questRoot25.Author = list207; - num = 4; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span85 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference155 = ref span85[0]; + index = 4; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); obj131.Steps = list209; reference155 = obj131; - ref QuestSequence reference156 = ref span85[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -279638,66 +337109,93 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); obj132.Steps = list210; reference156 = obj132; - ref QuestSequence reference157 = ref span85[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span86 = CollectionsMarshal.AsSpan(list211); - ref QuestStep reference158 = ref span86[0]; + index2 = 4; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1037731u, new Vector3(-356.80176f, 22f, 518.9745f), 958); - num3 = 6; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span87 = CollectionsMarshal.AsSpan(list212); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span5 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list212; reference158 = questStep25; - ref QuestStep reference159 = ref span86[1]; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1037754u, new Vector3(-431.29626f, 22.278519f, 437.6134f), 958); num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span88 = CollectionsMarshal.AsSpan(list213); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list213; reference159 = questStep26; - ref QuestStep reference160 = ref span86[2]; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1039393u, new Vector3(-415.9762f, 21.392963f, 384.9087f), 958); - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span89 = CollectionsMarshal.AsSpan(list214); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span5 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list214; reference160 = questStep27; - ref QuestStep reference161 = ref span86[3]; + num2++; + ref QuestStep reference161 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC015_04224_Q1_000_000"), @@ -279707,7 +337205,8 @@ public static class AssemblyQuestLoader reference161 = questStep28; obj133.Steps = list211; reference157 = obj133; - ref QuestSequence reference162 = ref span85[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -279715,7 +337214,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); obj134.Steps = list216; reference162 = obj134; questRoot25.QuestSequence = list208; @@ -279725,24 +337226,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "goatzone"; questRoot26.Author = list217; - num = 3; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span90 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference163 = ref span90[0]; + index = 3; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958); obj135.Steps = list219; reference163 = obj135; - ref QuestSequence reference164 = ref span90[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -279750,82 +337257,111 @@ public static class AssemblyQuestLoader num2 = 4; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span91 = CollectionsMarshal.AsSpan(list220); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.0247f, -36.65f, -244.85428f), 958); - ref QuestStep reference165 = ref span91[1]; + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.0247f, -36.65f, -244.85428f), 958); + index2++; + ref QuestStep reference165 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 2011973u, new Vector3(370.5653f, 10.788086f, -450.6447f), 958) { Fly = true }; - num3 = 6; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span92 = CollectionsMarshal.AsSpan(list221); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + span5 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj137.CompletionQuestVariablesFlags = list221; num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD001_04225_Q1_000_000") }; obj137.DialogueChoices = list222; reference165 = obj137; - ref QuestStep reference166 = ref span91[2]; + index2++; + ref QuestStep reference166 = ref span3[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2011974u, new Vector3(282.39868f, 10.788086f, -323.07928f), 958); - num3 = 6; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span93 = CollectionsMarshal.AsSpan(list223); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list223 = new List(index3); + CollectionsMarshal.SetCount(list223, index3); + span5 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list223; num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD001_04225_Q2_000_000") }; questStep29.DialogueChoices = list224; reference166 = questStep29; - ref QuestStep reference167 = ref span91[3]; + index2++; + ref QuestStep reference167 = ref span3[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2011972u, new Vector3(241.19922f, 11.673096f, -292.98853f), 958); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span94 = CollectionsMarshal.AsSpan(list225); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + span5 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list225; reference167 = questStep30; obj136.Steps = list220; reference164 = obj136; - ref QuestSequence reference168 = ref span90[2]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -279838,13 +337374,16 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "goatzone"; questRoot27.Author = list227; - num = 3; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span95 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference169 = ref span95[0]; + index = 3; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -279852,18 +337391,23 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958); obj139.Steps = list229; reference169 = obj139; - ref QuestSequence reference170 = ref span95[1]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list230)[0]; + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-159.59418f, 10.8f, -468.8335f), 958) { StopDistance = 0.5f, @@ -279873,7 +337417,9 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 13468u; + span6 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span6[index3] = 13468u; obj141.KillEnemyDataIds = list231; obj141.CombatItemUse = new CombatItemUse { @@ -279884,7 +337430,8 @@ public static class AssemblyQuestLoader reference171 = obj141; obj140.Steps = list230; reference170 = obj140; - ref QuestSequence reference172 = ref span95[2]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue @@ -279892,7 +337439,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -279905,24 +337454,30 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "goatzone"; questRoot28.Author = list233; - num = 3; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span96 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference173 = ref span96[0]; + index = 3; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958); obj143.Steps = list235; reference173 = obj143; - ref QuestSequence reference174 = ref span96[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 @@ -279930,37 +337485,49 @@ public static class AssemblyQuestLoader num2 = 3; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span97 = CollectionsMarshal.AsSpan(list236); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.7576f, -36.65f, -237.16893f), 958); - ref QuestStep reference175 = ref span97[1]; + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.7576f, -36.65f, -237.16893f), 958); + index2++; + ref QuestStep reference175 = ref span3[index2]; QuestStep obj145 = new QuestStep(EInteractionType.Interact, 2012049u, new Vector3(301.86914f, 10.788086f, -540.79504f), 958) { Fly = true }; - num3 = 6; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span98 = CollectionsMarshal.AsSpan(list237); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span5 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list237; reference175 = obj145; - span97[2] = new QuestStep(EInteractionType.Interact, 2012050u, new Vector3(295.49097f, 11.306824f, -500.26703f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012050u, new Vector3(295.49097f, 11.306824f, -500.26703f), 958); obj144.Steps = list236; reference174 = obj144; - ref QuestSequence reference176 = ref span96[2]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -279973,13 +337540,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "goatzone"; questRoot29.Author = list239; - num = 3; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span99 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference177 = ref span99[0]; + index = 3; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -279987,23 +337557,30 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041911u, new Vector3(508.8424f, -3.8202174f, -352.71234f), 958); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041911u, new Vector3(508.8424f, -3.8202174f, -352.71234f), 958); obj147.Steps = list241; reference177 = obj147; - ref QuestSequence reference178 = ref span99[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list242)[0]; + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + ref QuestStep reference179 = ref span3[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1040659u, new Vector3(514.5189f, -36.65f, -156.9696f), 958); num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD004_04228_Q1_000_000"), @@ -280013,7 +337590,8 @@ public static class AssemblyQuestLoader reference179 = questStep31; obj148.Steps = list242; reference178 = obj148; - ref QuestSequence reference180 = ref span99[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -280021,7 +337599,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037771u, new Vector3(524.28467f, -19.820217f, -298.81744f), 958); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037771u, new Vector3(524.28467f, -19.820217f, -298.81744f), 958); obj149.Steps = list244; reference180 = obj149; questRoot29.QuestSequence = list240; @@ -280031,24 +337611,30 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "goatzone"; questRoot30.Author = list245; - num = 3; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span100 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference181 = ref span100[0]; + index = 3; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958); obj150.Steps = list247; reference181 = obj150; - ref QuestSequence reference182 = ref span100[1]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -280056,45 +337642,62 @@ public static class AssemblyQuestLoader num2 = 4; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span101 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference183 = ref span101[0]; + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + ref QuestStep reference183 = ref span3[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 1039400u, new Vector3(364.76685f, 10.8f, -308.03394f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = 14103u; + index3 = 1; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + span6 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span6[num3] = 14103u; obj152.KillEnemyDataIds = list249; num3 = 6; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - Span span102 = CollectionsMarshal.AsSpan(list250); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj152.CompletionQuestVariablesFlags = list250; reference183 = obj152; - ref QuestStep reference184 = ref span101[1]; + index2++; + ref QuestStep reference184 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1040627u, new Vector3(282.00195f, 11.327993f, -365.8656f), 958); - num3 = 6; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span103 = CollectionsMarshal.AsSpan(list251); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + span5 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list251; reference184 = questStep32; - ref QuestStep reference185 = ref span101[2]; + index2++; + ref QuestStep reference185 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1040626u, new Vector3(296.4065f, 10.799999f, -387.9912f), 958) { Mount = true @@ -280102,40 +337705,56 @@ public static class AssemblyQuestLoader num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span104 = CollectionsMarshal.AsSpan(list252); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj153.CompletionQuestVariablesFlags = list252; reference185 = obj153; - ref QuestStep reference186 = ref span101[3]; + index2++; + ref QuestStep reference186 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1040628u, new Vector3(260.8224f, 10.849999f, -456.32104f), 958); - num3 = 6; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span105 = CollectionsMarshal.AsSpan(list253); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list253 = new List(index3); + CollectionsMarshal.SetCount(list253, index3); + span5 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list253; reference186 = questStep33; obj151.Steps = list248; reference182 = obj151; - ref QuestSequence reference187 = ref span100[2]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -280148,13 +337767,16 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list255); + index = 0; + span[index] = "goatzone"; questRoot31.Author = list255; - num = 4; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span106 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference188 = ref span106[0]; + index = 4; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + span2 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -280162,26 +337784,31 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) { Fly = true }; obj155.Steps = list257; reference188 = obj155; - ref QuestSequence reference189 = ref span106[1]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span107 = CollectionsMarshal.AsSpan(list258); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.87164f, 10.803238f, -694.511f), 958) + index2 = 3; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.87164f, 10.803238f, -694.511f), 958) { Fly = true }; - ref QuestStep reference190 = ref span107[1]; + num2++; + ref QuestStep reference190 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, null, new Vector3(-310.5188f, 10.813947f, -720.8323f), 958) { Fly = false, @@ -280190,16 +337817,20 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 14102u; + span6 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span6[index3] = 14102u; obj157.KillEnemyDataIds = list259; reference190 = obj157; - span107[2] = new QuestStep(EInteractionType.UseItem, 14102u, new Vector3(-313.222f, 10.821807f, -720.4852f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 14102u, new Vector3(-313.222f, 10.821807f, -720.4852f), 958) { ItemId = 2003208u }; obj156.Steps = list258; reference189 = obj156; - ref QuestSequence reference191 = ref span106[2]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -280207,18 +337838,23 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1040629u, new Vector3(-310.47534f, 10.815676f, -720.2411f), 958); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040629u, new Vector3(-310.47534f, 10.815676f, -720.2411f), 958); obj158.Steps = list260; reference191 = obj158; - ref QuestSequence reference192 = ref span106[3]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium @@ -280232,13 +337868,16 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list262); + index = 0; + span[index] = "goatzone"; questRoot32.Author = list262; - num = 3; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span108 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference193 = ref span108[0]; + index = 3; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + span2 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -280246,12 +337885,16 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list264)[0]; + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + ref QuestStep reference194 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.AcceptQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new DialogueChoice + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + span4 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD007_04231_Q1_000_000"), @@ -280261,64 +337904,88 @@ public static class AssemblyQuestLoader reference194 = questStep34; obj160.Steps = list264; reference193 = obj160; - ref QuestSequence reference195 = ref span108[1]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span109 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference196 = ref span109[0]; + index2 = 4; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference196 = ref span3[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.40717f, -36.616177f, -267.17505f), 958); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span110 = CollectionsMarshal.AsSpan(list267); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list267; skipConditions6.StepIf = skipStepConditions6; questStep35.SkipConditions = skipConditions6; reference196 = questStep35; - ref QuestStep reference197 = ref span109[1]; + num2++; + ref QuestStep reference197 = ref span3[num2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1037766u, new Vector3(545.3115f, -36.616177f, -265.00348f), 958); - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span111 = CollectionsMarshal.AsSpan(list268); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + span5 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list268; reference197 = questStep36; - ref QuestStep reference198 = ref span109[2]; + num2++; + ref QuestStep reference198 = ref span3[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1037774u, new Vector3(518.181f, -36.65f, -212.14618f), 958); num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span112 = CollectionsMarshal.AsSpan(list269); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list269; - num3 = 1; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = new DialogueChoice + index3 = 1; + List list270 = new List(index3); + CollectionsMarshal.SetCount(list270, index3); + span4 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD007_04231_Q2_000_100"), @@ -280326,23 +337993,31 @@ public static class AssemblyQuestLoader }; questStep37.DialogueChoices = list270; reference198 = questStep37; - ref QuestStep reference199 = ref span109[3]; + num2++; + ref QuestStep reference199 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1040632u, new Vector3(537.4684f, -36.65f, -175.21942f), 958); num3 = 6; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span113 = CollectionsMarshal.AsSpan(list271); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list271; reference199 = questStep38; obj161.Steps = list266; reference195 = obj161; - ref QuestSequence reference200 = ref span108[2]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -280350,7 +338025,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); obj162.Steps = list272; reference200 = obj162; questRoot32.QuestSequence = list263; @@ -280360,24 +338037,30 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot33.Author = list273; - num = 6; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span114 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference201 = ref span114[0]; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958); + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958); obj163.Steps = list275; reference201 = obj163; - ref QuestSequence reference202 = ref span114[1]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -280385,102 +338068,122 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1040634u, new Vector3(190.26465f, 10.5f, -630.2129f), 958); + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040634u, new Vector3(190.26465f, 10.5f, -630.2129f), 958); obj164.Steps = list276; reference202 = obj164; - ref QuestSequence reference203 = ref span114[2]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 15; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span115 = CollectionsMarshal.AsSpan(list277); - ref QuestStep reference204 = ref span115[0]; + index2 = 15; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 2012377u, new Vector3(189.10498f, 10.482849f, -668.9708f), 958); - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = new DialogueChoice + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + span4 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD008_04232_SYSTEM04232_Q1_000_001") }; questStep39.DialogueChoices = list278; reference204 = questStep39; - span115[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(148.87286f, 10.5f, -674.6158f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(148.87286f, 10.5f, -674.6158f), 958) { StopDistance = 50f, NpcWaitDistance = 3f }; - span115[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.07327f, 10.499999f, -675.6929f), 958); - span115[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(100.27427f, 10.5f, -668.4484f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.07327f, 10.499999f, -675.6929f), 958); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(100.27427f, 10.5f, -668.4484f), 958) { StopDistance = 50f, NpcWaitDistance = 3f }; - span115[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.80121f, 10.5f, -668.12524f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.80121f, 10.5f, -668.12524f), 958) { Mount = false, Sprint = false }; - span115[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.11899f, 10.8f, -647.2713f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.11899f, 10.8f, -647.2713f), 958) { Mount = false, Sprint = false }; - span115[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.128044f, 10.799999f, -632.78925f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.128044f, 10.799999f, -632.78925f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.38609f, 10.799999f, -630.82086f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.38609f, 10.799999f, -630.82086f), 958) { Mount = false, Sprint = false }; - span115[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(42.153065f, 10.8f, -625.0765f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(42.153065f, 10.8f, -625.0765f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.18486f, 10.799999f, -617.59485f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.18486f, 10.799999f, -617.59485f), 958) { Mount = false, Sprint = false }; - span115[10] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(60.43399f, 10.799999f, -600.4008f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(60.43399f, 10.799999f, -600.4008f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.30184f, 10.8f, -598.927f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.30184f, 10.8f, -598.927f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.088688f, 10.8f, -617.3753f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.088688f, 10.8f, -617.3753f), 958) { DelaySecondsAtStart = 8f, Mount = false, Sprint = false }; - span115[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(21.752983f, 10.5f, -589.2936f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(21.752983f, 10.5f, -589.2936f), 958) { StopDistance = 50f, Mount = false, Sprint = false }; - span115[14] = new QuestStep(EInteractionType.WalkTo, 1040636u, new Vector3(21.744019f, 10.5f, -589.3187f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1040636u, new Vector3(21.744019f, 10.5f, -589.3187f), 958) { StopDistance = 4f, DelaySecondsAtStart = 5f, @@ -280490,7 +338193,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list277; reference203 = obj165; - ref QuestSequence reference205 = ref span114[3]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -280498,7 +338202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list279)[0]; + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + ref QuestStep reference206 = ref span3[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-18.56067f, 10.5f, -530.3922f), 958) { StopDistance = 1f, @@ -280507,28 +338213,35 @@ public static class AssemblyQuestLoader num3 = 1; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 14101u; + span6 = CollectionsMarshal.AsSpan(list280); + index3 = 0; + span6[index3] = 14101u; obj167.KillEnemyDataIds = list280; reference206 = obj167; obj166.Steps = list279; reference205 = obj166; - ref QuestSequence reference207 = ref span114[4]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list281)[0]; + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + ref QuestStep reference208 = ref span3[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1040637u, new Vector3(-16.525574f, 10.5f, -532.15845f), 958) { StopDistance = 7f }; - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = new DialogueChoice + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + span4 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD008_04232_Q1_000_000"), @@ -280538,7 +338251,8 @@ public static class AssemblyQuestLoader reference208 = obj169; obj168.Steps = list281; reference207 = obj168; - ref QuestSequence reference209 = ref span114[5]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -280546,7 +338260,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -280559,24 +338275,30 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "goatzone"; questRoot34.Author = list284; - num = 4; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span116 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference210 = ref span116[0]; + index = 4; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958); + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958); obj171.Steps = list286; reference210 = obj171; - ref QuestSequence reference211 = ref span116[1]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -280584,54 +338306,64 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Emote, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958) + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958) { Emote = EEmote.Soothe }; obj172.Steps = list287; reference211 = obj172; - ref QuestSequence reference212 = ref span116[2]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span117 = CollectionsMarshal.AsSpan(list288); - span117[0] = new QuestStep(EInteractionType.Interact, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958); - span117[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-310.48834f, 24.947939f, 377.09357f), 958) + index2 = 6; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-310.48834f, 24.947939f, 377.09357f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-351.1446f, 7.736393f, 303.24872f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-351.1446f, 7.736393f, 303.24872f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-334.03958f, 19.434929f, 175.00089f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-334.03958f, 19.434929f, 175.00089f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-321.72916f, 18.139357f, 98.16852f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-321.72916f, 18.139357f, 98.16852f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[5] = new QuestStep(EInteractionType.Interact, 1039355u, new Vector3(-319.4171f, 8.981749f, -9.475891f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039355u, new Vector3(-319.4171f, 8.981749f, -9.475891f), 958) { Mount = false, Sprint = false }; obj173.Steps = list288; reference212 = obj173; - ref QuestSequence reference213 = ref span116[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -280639,7 +338371,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958) + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280652,24 +338386,30 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list290); + index = 0; + span[index] = "goatzone"; questRoot35.Author = list290; - num = 5; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span118 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference214 = ref span118[0]; + index = 5; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + span2 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039358u, new Vector3(-321.43134f, 22.377153f, 473.167f), 958); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039358u, new Vector3(-321.43134f, 22.377153f, 473.167f), 958); obj175.Steps = list292; reference214 = obj175; - ref QuestSequence reference215 = ref span118[1]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -280677,28 +338417,34 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958) + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj176.Steps = list293; reference215 = obj176; - ref QuestSequence reference216 = ref span118[2]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Snipe, 2011849u, new Vector3(486.04553f, 11.154297f, -296.37604f), 958) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2011849u, new Vector3(486.04553f, 11.154297f, -296.37604f), 958) { Comment = "Snipe Magitek Colossi" }; obj177.Steps = list294; reference216 = obj177; - ref QuestSequence reference217 = ref span118[3]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 @@ -280706,18 +338452,23 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958); + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958); obj178.Steps = list295; reference217 = obj178; - ref QuestSequence reference218 = ref span118[4]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280730,13 +338481,16 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list297); + index = 0; + span[index] = "goatzone"; questRoot36.Author = list297; - num = 6; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span119 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference219 = ref span119[0]; + index = 6; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + span2 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -280744,21 +338498,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); obj180.Steps = list299; reference219 = obj180; - ref QuestSequence reference220 = ref span119[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1040663u, new Vector3(-318.10486f, 23.722221f, 353.93298f), 958); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040663u, new Vector3(-318.10486f, 23.722221f, 353.93298f), 958); obj181.Steps = list300; reference220 = obj181; - ref QuestSequence reference221 = ref span119[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 @@ -280766,23 +338526,27 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958) + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj182.Steps = list301; reference221 = obj182; - ref QuestSequence reference222 = ref span119[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - Span span120 = CollectionsMarshal.AsSpan(list302); - ref QuestStep reference223 = ref span120[0]; + index2 = 2; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj184 = new QuestStep(EInteractionType.UseItem, 2012052u, new Vector3(383.84058f, 11.48999f, -711.1162f), 958) { ItemId = 2003210u @@ -280790,35 +338554,49 @@ public static class AssemblyQuestLoader num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span121 = CollectionsMarshal.AsSpan(list303); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj184.CompletionQuestVariablesFlags = list303; reference223 = obj184; - ref QuestStep reference224 = ref span120[1]; + num2++; + ref QuestStep reference224 = ref span3[num2]; QuestStep obj185 = new QuestStep(EInteractionType.UseItem, 2012051u, new Vector3(383.5354f, 11.306824f, -708.03394f), 958) { ItemId = 2003210u }; - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span122 = CollectionsMarshal.AsSpan(list304); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + span5 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list304; reference224 = obj185; obj183.Steps = list302; reference222 = obj183; - ref QuestSequence reference225 = ref span119[4]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 4 @@ -280826,12 +338604,16 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list305)[0]; + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + ref QuestStep reference226 = ref span3[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958); num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list306); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD011_04235_Q1_000_000"), @@ -280841,15 +338623,18 @@ public static class AssemblyQuestLoader reference226 = questStep40; obj186.Steps = list305; reference225 = obj186; - ref QuestSequence reference227 = ref span119[5]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280862,13 +338647,16 @@ public static class AssemblyQuestLoader num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - CollectionsMarshal.AsSpan(list308)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list308); + index = 0; + span[index] = "goatzone"; questRoot37.Author = list308; - num = 6; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span123 = CollectionsMarshal.AsSpan(list309); - ref QuestSequence reference228 = ref span123[0]; + index = 6; + List list309 = new List(index); + CollectionsMarshal.SetCount(list309, index); + span2 = CollectionsMarshal.AsSpan(list309); + num = 0; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -280876,24 +338664,30 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958); + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958); obj188.Steps = list310; reference228 = obj188; - ref QuestSequence reference229 = ref span123[1]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1040666u, new Vector3(-294.20923f, 21.732546f, 485.67932f), 958) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040666u, new Vector3(-294.20923f, 21.732546f, 485.67932f), 958) { Fly = true }; obj189.Steps = list311; reference229 = obj189; - ref QuestSequence reference230 = ref span123[2]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 @@ -280901,37 +338695,45 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) { Fly = true }; obj190.Steps = list312; reference230 = obj190; - ref QuestSequence reference231 = ref span123[3]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span124 = CollectionsMarshal.AsSpan(list313); - span124[0] = new QuestStep(EInteractionType.Interact, 2012053u, new Vector3(313.6797f, -11.978394f, 279.74353f), 958); - ref QuestStep reference232 = ref span124[1]; + index2 = 2; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012053u, new Vector3(313.6797f, -11.978394f, 279.74353f), 958); + num2++; + ref QuestStep reference232 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 14100u, new Vector3(302.5399f, -12.244642f, 304.46622f), 958) { ItemId = 2003211u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - CollectionsMarshal.AsSpan(list314)[0] = 14100u; + index3 = 1; + List list314 = new List(index3); + CollectionsMarshal.SetCount(list314, index3); + span6 = CollectionsMarshal.AsSpan(list314); + num3 = 0; + span6[num3] = 14100u; obj192.KillEnemyDataIds = list314; reference232 = obj192; obj191.Steps = list313; reference231 = obj191; - ref QuestSequence reference233 = ref span123[4]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -280939,21 +338741,26 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) { Fly = false }; obj193.Steps = list315; reference233 = obj193; - ref QuestSequence reference234 = ref span123[5]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280966,13 +338773,16 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list317); + index = 0; + span[index] = "goatzone"; questRoot38.Author = list317; - num = 3; - List list318 = new List(num); - CollectionsMarshal.SetCount(list318, num); - Span span125 = CollectionsMarshal.AsSpan(list318); - ref QuestSequence reference235 = ref span125[0]; + index = 3; + List list318 = new List(index); + CollectionsMarshal.SetCount(list318, index); + span2 = CollectionsMarshal.AsSpan(list318); + num = 0; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -280980,19 +338790,23 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); obj195.Steps = list319; reference235 = obj195; - ref QuestSequence reference236 = ref span125[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - Span span126 = CollectionsMarshal.AsSpan(list320); - ref QuestStep reference237 = ref span126[0]; + index2 = 7; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + ref QuestStep reference237 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-189.97284f, 15.907461f, -169.83481f), 958) { Fly = true @@ -281002,36 +338816,50 @@ public static class AssemblyQuestLoader num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span127 = CollectionsMarshal.AsSpan(list321); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list321; skipStepConditions7.Flying = ELockedSkipCondition.Locked; skipConditions7.StepIf = skipStepConditions7; obj197.SkipConditions = skipConditions7; reference237 = obj197; - ref QuestStep reference238 = ref span126[1]; + num2++; + ref QuestStep reference238 = ref span3[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 2012054u, new Vector3(-156.05408f, 10.788086f, -235.40094f), 958) { Fly = true }; - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span128 = CollectionsMarshal.AsSpan(list322); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + span5 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list322; reference238 = obj198; - ref QuestStep reference239 = ref span126[2]; + num2++; + ref QuestStep reference239 = ref span3[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 2012055u, new Vector3(-129.83911f, 10.788086f, -270.95447f), 958) { Fly = true @@ -281039,35 +338867,49 @@ public static class AssemblyQuestLoader num3 = 6; List list323 = new List(num3); CollectionsMarshal.SetCount(list323, num3); - Span span129 = CollectionsMarshal.AsSpan(list323); - span129[0] = null; - span129[1] = null; - span129[2] = null; - span129[3] = null; - span129[4] = null; - span129[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list323); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list323; reference239 = obj199; - ref QuestStep reference240 = ref span126[3]; + num2++; + ref QuestStep reference240 = ref span3[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.12543f, 10.826223f, -368.8611f), 958); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span130 = CollectionsMarshal.AsSpan(list324); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list324 = new List(index3); + CollectionsMarshal.SetCount(list324, index3); + span5 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list324; skipStepConditions8.Flying = ELockedSkipCondition.Unlocked; skipConditions8.StepIf = skipStepConditions8; questStep41.SkipConditions = skipConditions8; reference240 = questStep41; - ref QuestStep reference241 = ref span126[4]; + num2++; + ref QuestStep reference241 = ref span3[num2]; QuestStep obj200 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.08179f, 16.226164f, -310.9478f), 958) { Fly = true @@ -281077,36 +338919,50 @@ public static class AssemblyQuestLoader num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span131 = CollectionsMarshal.AsSpan(list325); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list325; skipStepConditions9.Flying = ELockedSkipCondition.Locked; skipConditions9.StepIf = skipStepConditions9; obj200.SkipConditions = skipConditions9; reference241 = obj200; - ref QuestStep reference242 = ref span126[5]; + num2++; + ref QuestStep reference242 = ref span3[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2012056u, new Vector3(-234.6991f, 10.788086f, -367.2389f), 958) { Fly = true }; - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span132 = CollectionsMarshal.AsSpan(list326); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + span5 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list326; reference242 = obj201; - ref QuestStep reference243 = ref span126[6]; + num2++; + ref QuestStep reference243 = ref span3[num2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2012057u, new Vector3(-246.93683f, 16.494995f, -413.016f), 958) { StopDistance = 1f, @@ -281115,18 +338971,25 @@ public static class AssemblyQuestLoader num3 = 6; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - Span span133 = CollectionsMarshal.AsSpan(list327); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list327; reference243 = obj202; obj196.Steps = list320; reference236 = obj196; - ref QuestSequence reference244 = ref span125[2]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -281134,7 +338997,9 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958) + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -281147,26 +339012,33 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list329); + index = 0; + span[index] = "goatzone"; questRoot39.Author = list329; - num = 3; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span134 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference245 = ref span134[0]; + index = 3; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + span2 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - ref QuestStep reference246 = ref CollectionsMarshal.AsSpan(list331)[0]; + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference246 = ref span3[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = new DialogueChoice + index3 = 1; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + span4 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD014_04238_Q1_000_000") @@ -281175,7 +339047,8 @@ public static class AssemblyQuestLoader reference246 = questStep42; obj204.Steps = list331; reference245 = obj204; - ref QuestSequence reference247 = ref span134[1]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -281183,22 +339056,27 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.UseItem, 1040640u, new Vector3(-239.15472f, 11.232812f, -256.61102f), 958) + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1040640u, new Vector3(-239.15472f, 11.232812f, -256.61102f), 958) { Fly = true, ItemId = 2003244u }; obj205.Steps = list333; reference247 = obj205; - ref QuestSequence reference248 = ref span134[2]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -281211,13 +339089,16 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list335); + index = 0; + span[index] = "goatzone"; questRoot40.Author = list335; - num = 4; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span135 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference249 = ref span135[0]; + index = 4; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + span2 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -281225,24 +339106,30 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958); + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958); obj207.Steps = list337; reference249 = obj207; - ref QuestSequence reference250 = ref span135[1]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1040642u, new Vector3(49.149292f, 0.78169787f, 90.89795f), 958) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040642u, new Vector3(49.149292f, 0.78169787f, 90.89795f), 958) { Fly = true }; obj208.Steps = list338; reference250 = obj208; - ref QuestSequence reference251 = ref span135[2]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -281250,12 +339137,16 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - ref QuestStep reference252 = ref CollectionsMarshal.AsSpan(list339)[0]; + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + ref QuestStep reference252 = ref span3[index2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 1040642u, new Vector3(49.149292f, 0.78169787f, 90.89795f), 958); num3 = 1; List list340 = new List(num3); CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list340); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD015_04239_Q1_000_000") @@ -281264,15 +339155,18 @@ public static class AssemblyQuestLoader reference252 = questStep43; obj209.Steps = list339; reference251 = obj209; - ref QuestSequence reference253 = ref span135[3]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -281285,13 +339179,16 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list342); + index = 0; + span[index] = "liza"; questRoot41.Author = list342; - num = 3; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span136 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference254 = ref span136[0]; + index = 3; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + span2 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -281299,31 +339196,39 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); obj211.Steps = list344; reference254 = obj211; - ref QuestSequence reference255 = ref span136[1]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - ref QuestStep reference256 = ref CollectionsMarshal.AsSpan(list345)[0]; + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + ref QuestStep reference256 = ref span3[num2]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, 1041132u, new Vector3(-558.1293f, -168f, -475.3338f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 14053u; + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + span6 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span6[num3] = 14053u; obj213.KillEnemyDataIds = list346; reference256 = obj213; obj212.Steps = list345; reference255 = obj212; - ref QuestSequence reference257 = ref span136[2]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -281331,7 +339236,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); obj214.Steps = list347; reference257 = obj214; questRoot41.QuestSequence = list343; @@ -281341,24 +339248,30 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list348); + index = 0; + span[index] = "liza"; questRoot42.Author = list348; - num = 3; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span137 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference258 = ref span137[0]; + index = 3; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + span2 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); obj215.Steps = list350; reference258 = obj215; - ref QuestSequence reference259 = ref span137[1]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -281366,8 +339279,9 @@ public static class AssemblyQuestLoader num2 = 18; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span138 = CollectionsMarshal.AsSpan(list351); - ref QuestStep reference260 = ref span138[0]; + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + ref QuestStep reference260 = ref span3[index2]; QuestStep obj217 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.90564f, -161.8501f, -651.4007f), 959) { StopDistance = 1f @@ -281377,18 +339291,25 @@ public static class AssemblyQuestLoader num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span139 = CollectionsMarshal.AsSpan(list352); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list352); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list352; skipConditions10.StepIf = skipStepConditions10; obj217.SkipConditions = skipConditions10; reference260 = obj217; - ref QuestStep reference261 = ref span138[1]; + index2++; + ref QuestStep reference261 = ref span3[index2]; QuestStep obj218 = new QuestStep(EInteractionType.Jump, null, new Vector3(-348.90564f, -161.8501f, -651.4007f), 959) { StopDistance = 1f, @@ -281401,21 +339322,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - Span span140 = CollectionsMarshal.AsSpan(list353); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + span5 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list353; skipConditions11.StepIf = skipStepConditions11; obj218.SkipConditions = skipConditions11; reference261 = obj218; - ref QuestStep reference262 = ref span138[2]; + index2++; + ref QuestStep reference262 = ref span3[index2]; QuestStep obj219 = new QuestStep(EInteractionType.Jump, null, new Vector3(-344.52225f, -160.40424f, -654.19385f), 959) { Comment = "Platform 2", @@ -281430,18 +339358,25 @@ public static class AssemblyQuestLoader num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span141 = CollectionsMarshal.AsSpan(list354); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list354; skipConditions12.StepIf = skipStepConditions12; obj219.SkipConditions = skipConditions12; reference262 = obj219; - ref QuestStep reference263 = ref span138[3]; + index2++; + ref QuestStep reference263 = ref span3[index2]; QuestStep obj220 = new QuestStep(EInteractionType.Jump, null, new Vector3(-342.69867f, -158.90424f, -651.2852f), 959) { Comment = "Platform 3", @@ -281453,21 +339388,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 6; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span142 = CollectionsMarshal.AsSpan(list355); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list355 = new List(index3); + CollectionsMarshal.SetCount(list355, index3); + span5 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list355; skipConditions13.StepIf = skipStepConditions13; obj220.SkipConditions = skipConditions13; reference263 = obj220; - ref QuestStep reference264 = ref span138[4]; + index2++; + ref QuestStep reference264 = ref span3[index2]; QuestStep obj221 = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.018f, -157.40425f, -649.38934f), 959) { Comment = "Platform 4", @@ -281482,18 +339424,25 @@ public static class AssemblyQuestLoader num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span143 = CollectionsMarshal.AsSpan(list356); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list356; skipConditions14.StepIf = skipStepConditions14; obj221.SkipConditions = skipConditions14; reference264 = obj221; - ref QuestStep reference265 = ref span138[5]; + index2++; + ref QuestStep reference265 = ref span3[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.68277f, -155.90424f, -646.8163f), 959) { Comment = "Platform 5", @@ -281505,21 +339454,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span144 = CollectionsMarshal.AsSpan(list357); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list357 = new List(index3); + CollectionsMarshal.SetCount(list357, index3); + span5 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions15.CompletionQuestVariablesFlags = list357; skipConditions15.StepIf = skipStepConditions15; obj222.SkipConditions = skipConditions15; reference265 = obj222; - ref QuestStep reference266 = ref span138[6]; + index2++; + ref QuestStep reference266 = ref span3[index2]; QuestStep obj223 = new QuestStep(EInteractionType.Jump, null, new Vector3(-335.60294f, -154.40422f, -646.18335f), 959) { Comment = "Platform 6", @@ -281534,39 +339490,53 @@ public static class AssemblyQuestLoader num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span145 = CollectionsMarshal.AsSpan(list358); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list358); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions16.CompletionQuestVariablesFlags = list358; skipConditions16.StepIf = skipStepConditions16; obj223.SkipConditions = skipConditions16; reference266 = obj223; - ref QuestStep reference267 = ref span138[7]; + index2++; + ref QuestStep reference267 = ref span3[index2]; QuestStep obj224 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-329.84186f, -152.24591f, -649.0854f), 959) { DisableNavmesh = true }; SkipConditions skipConditions17 = new SkipConditions(); SkipStepConditions skipStepConditions17 = new SkipStepConditions(); - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span146 = CollectionsMarshal.AsSpan(list359); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list359 = new List(index3); + CollectionsMarshal.SetCount(list359, index3); + span5 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions17.CompletionQuestVariablesFlags = list359; skipConditions17.StepIf = skipStepConditions17; obj224.SkipConditions = skipConditions17; reference267 = obj224; - ref QuestStep reference268 = ref span138[8]; + index2++; + ref QuestStep reference268 = ref span3[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Say, 1041789u, new Vector3(-329.3355f, -151.26128f, -657.2519f), 959) { StopDistance = 6f, @@ -281579,16 +339549,23 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span147 = CollectionsMarshal.AsSpan(list360); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj225.CompletionQuestVariablesFlags = list360; reference268 = obj225; - ref QuestStep reference269 = ref span138[9]; + index2++; + ref QuestStep reference269 = ref span3[index2]; QuestStep obj226 = new QuestStep(EInteractionType.Say, 1041790u, new Vector3(-482.01727f, -167.50002f, -545.6169f), 959) { StopDistance = 3f, @@ -281597,23 +339574,31 @@ public static class AssemblyQuestLoader Key = "TEXT_AKTKZE002_04241_SYSTEM_000_010" } }; - num3 = 6; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span148 = CollectionsMarshal.AsSpan(list361); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list361 = new List(index3); + CollectionsMarshal.SetCount(list361, index3); + span5 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj226.CompletionQuestVariablesFlags = list361; reference269 = obj226; - span138[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) { StopDistance = 1f }; - ref QuestStep reference270 = ref span138[11]; + index2++; + ref QuestStep reference270 = ref span3[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Jump, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) { StopDistance = 1f, @@ -281630,18 +339615,25 @@ public static class AssemblyQuestLoader num3 = 6; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - Span span149 = CollectionsMarshal.AsSpan(list362); - span149[0] = null; - span149[1] = null; - span149[2] = null; - span149[3] = null; - span149[4] = null; - span149[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list362); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions18.CompletionQuestVariablesFlags = list362; skipConditions18.StepIf = skipStepConditions18; obj227.SkipConditions = skipConditions18; reference270 = obj227; - ref QuestStep reference271 = ref span138[12]; + index2++; + ref QuestStep reference271 = ref span3[index2]; QuestStep obj228 = new QuestStep(EInteractionType.Jump, null, new Vector3(-438.3488f, -166.55414f, -415.94168f), 959) { StopDistance = 1f, @@ -281654,21 +339646,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions19 = new SkipStepConditions(); - num3 = 6; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - Span span150 = CollectionsMarshal.AsSpan(list363); - span150[0] = null; - span150[1] = null; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + span5 = CollectionsMarshal.AsSpan(list363); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions19.CompletionQuestVariablesFlags = list363; skipConditions19.StepIf = skipStepConditions19; obj228.SkipConditions = skipConditions19; reference271 = obj228; - ref QuestStep reference272 = ref span138[13]; + index2++; + ref QuestStep reference272 = ref span3[index2]; QuestStep obj229 = new QuestStep(EInteractionType.Jump, null, new Vector3(-436.71103f, -165.05412f, -413.06158f), 959) { StopDistance = 1f, @@ -281684,18 +339683,25 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span151 = CollectionsMarshal.AsSpan(list364); - span151[0] = null; - span151[1] = null; - span151[2] = null; - span151[3] = null; - span151[4] = null; - span151[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions20.CompletionQuestVariablesFlags = list364; skipConditions20.StepIf = skipStepConditions20; obj229.SkipConditions = skipConditions20; reference272 = obj229; - ref QuestStep reference273 = ref span138[14]; + index2++; + ref QuestStep reference273 = ref span3[index2]; QuestStep obj230 = new QuestStep(EInteractionType.Jump, null, new Vector3(-434.92825f, -163.55417f, -411.54132f), 959) { StopDistance = 1f, @@ -281708,21 +339714,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions21 = new SkipStepConditions(); - num3 = 6; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span152 = CollectionsMarshal.AsSpan(list365); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + span5 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions21.CompletionQuestVariablesFlags = list365; skipConditions21.StepIf = skipStepConditions21; obj230.SkipConditions = skipConditions21; reference273 = obj230; - ref QuestStep reference274 = ref span138[15]; + index2++; + ref QuestStep reference274 = ref span3[index2]; QuestStep obj231 = new QuestStep(EInteractionType.Jump, null, new Vector3(-432.17563f, -162.05412f, -409.53986f), 959) { StopDistance = 1f, @@ -281738,18 +339751,25 @@ public static class AssemblyQuestLoader num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span153 = CollectionsMarshal.AsSpan(list366); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions22.CompletionQuestVariablesFlags = list366; skipConditions22.StepIf = skipStepConditions22; obj231.SkipConditions = skipConditions22; reference274 = obj231; - ref QuestStep reference275 = ref span138[16]; + index2++; + ref QuestStep reference275 = ref span3[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Jump, null, new Vector3(-429.1173f, -160.55412f, -408.93143f), 959) { StopDistance = 1f, @@ -281762,21 +339782,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions23 = new SkipConditions(); SkipStepConditions skipStepConditions23 = new SkipStepConditions(); - num3 = 6; - List list367 = new List(num3); - CollectionsMarshal.SetCount(list367, num3); - Span span154 = CollectionsMarshal.AsSpan(list367); - span154[0] = null; - span154[1] = null; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list367 = new List(index3); + CollectionsMarshal.SetCount(list367, index3); + span5 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions23.CompletionQuestVariablesFlags = list367; skipConditions23.StepIf = skipStepConditions23; obj232.SkipConditions = skipConditions23; reference275 = obj232; - ref QuestStep reference276 = ref span138[17]; + index2++; + ref QuestStep reference276 = ref span3[index2]; QuestStep obj233 = new QuestStep(EInteractionType.Say, 1041791u, new Vector3(-409.87262f, -158.89125f, -426.68805f), 959) { StopDistance = 3f, @@ -281788,32 +339815,41 @@ public static class AssemblyQuestLoader num3 = 6; List list368 = new List(num3); CollectionsMarshal.SetCount(list368, num3); - Span span155 = CollectionsMarshal.AsSpan(list368); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list368); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj233.CompletionQuestVariablesFlags = list368; reference276 = obj233; obj216.Steps = list351; reference259 = obj216; - ref QuestSequence reference277 = ref span137[2]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - Span span156 = CollectionsMarshal.AsSpan(list369); - span156[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-376.5167f, -168f, -432.03497f), 959) + index2 = 2; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + span3 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-376.5167f, -168f, -432.03497f), 959) { DisableNavmesh = true, Mount = true }; - span156[1] = new QuestStep(EInteractionType.CompleteQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); obj234.Steps = list369; reference277 = obj234; questRoot42.QuestSequence = list349; @@ -281827,13 +339863,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -281841,12 +339880,16 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959); int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZE014_04253_Q1_000_000"), @@ -281856,20 +339899,24 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.62292f, 123.48844f, 89.52347f), 959); - span2[1] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959); + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.62292f, 123.48844f, 89.52347f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -281877,22 +339924,30 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012338u, new Vector3(700.19055f, 135.21008f, 229.48035f), 959); - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span5 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list7; reference5 = questStep2; - ref QuestStep reference6 = ref span3[1]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 1041125u, new Vector3(735.5f, 151.08012f, 189.01343f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -281900,59 +339955,80 @@ public static class AssemblyQuestLoader num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = 14050u; + Span span6 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span6[index3] = 14050u; obj4.KillEnemyDataIds = list8; - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + span5 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list9; reference6 = obj4; - ref QuestStep reference7 = ref span3[2]; + index2++; + ref QuestStep reference7 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1041124u, new Vector3(663.6301f, 128.48961f, 188.18945f), 959); num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list10); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list10; reference7 = questStep3; obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference9 = ref span3[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 14049u; + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + span6 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span6[num3] = 14049u; obj6.KillEnemyDataIds = list12; reference9 = obj6; obj5.Steps = list11; reference8 = obj5; - ref QuestSequence reference10 = ref span[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 4 @@ -281960,21 +340036,26 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) { StopDistance = 5f }; obj7.Steps = list13; reference10 = obj7; - ref QuestSequence reference11 = ref span[5]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; @@ -281987,13 +340068,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot2.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference12 = ref span7[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -282001,21 +340085,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); obj9.Steps = list17; reference12 = obj9; - ref QuestSequence reference13 = ref span7[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1040862u, new Vector3(-27.023743f, 26.58384f, -178.63745f), 957); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040862u, new Vector3(-27.023743f, 26.58384f, -178.63745f), 957); obj10.Steps = list18; reference13 = obj10; - ref QuestSequence reference14 = ref span7[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -282023,8 +340113,9 @@ public static class AssemblyQuestLoader num2 = 3; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span8 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference15 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(46.32264f, 21.089579f, -190.2062f), 957) { DelaySecondsAtStart = 3f, @@ -282035,10 +340126,13 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 14114u; + span6 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span6[index3] = 14114u; obj12.KillEnemyDataIds = list20; reference15 = obj12; - span8[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 14115u, new Vector3(333.8999f, 13.173893f, -239.1983f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 14115u, new Vector3(333.8999f, 13.173893f, -239.1983f), 957) { StopDistance = 1f, NpcWaitDistance = 4f, @@ -282046,18 +340140,22 @@ public static class AssemblyQuestLoader Mount = false, Sprint = false }; - span8[2] = new QuestStep(EInteractionType.Interact, 2012261u, new Vector3(334.67603f, 13.076904f, -239.7956f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012261u, new Vector3(334.67603f, 13.076904f, -239.7956f), 957); obj11.Steps = list19; reference14 = obj11; - ref QuestSequence reference16 = ref span7[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); obj13.Steps = list21; reference16 = obj13; questRoot2.QuestSequence = list16; @@ -282067,13 +340165,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot3.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference17 = ref span9[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -282081,21 +340182,27 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); obj14.Steps = list24; reference17 = obj14; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); obj15.Steps = list25; reference18 = obj15; - ref QuestSequence reference19 = ref span9[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -282103,22 +340210,30 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span10 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference20 = ref span10[0]; + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference20 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2012232u, new Vector3(660.8529f, 36.423218f, 89.09741f), 957); - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span11 = CollectionsMarshal.AsSpan(list27); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + span5 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list27; reference20 = questStep4; - ref QuestStep reference21 = ref span10[1]; + index2++; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 1040850u, new Vector3(411.0321f, 7.9535227f, 302.8152f), 957) { StopDistance = 1f, @@ -282127,62 +340242,88 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 14111u; + span6 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span6[index3] = 14111u; obj17.KillEnemyDataIds = list28; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list29; reference21 = obj17; - ref QuestStep reference22 = ref span10[2]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1040850u, new Vector3(411.0321f, 7.9535227f, 302.8152f), 957); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list30; reference22 = questStep5; - ref QuestStep reference23 = ref span10[3]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012231u, new Vector3(343.9536f, 6.362976f, 372.54907f), 957); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list31; reference23 = questStep6; obj16.Steps = list26; reference19 = obj16; - ref QuestSequence reference24 = ref span9[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); obj18.Steps = list32; reference24 = obj18; - ref QuestSequence reference25 = ref span9[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -282190,7 +340331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); obj19.Steps = list33; reference25 = obj19; questRoot3.QuestSequence = list23; @@ -282200,29 +340343,35 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot4.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span15 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span15[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963); - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; obj20.Steps = list36; reference26 = obj20; - ref QuestSequence reference27 = ref span15[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -282230,7 +340379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1041282u, new Vector3(67.826294f, -24.693443f, -238.08661f), 963) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041282u, new Vector3(67.826294f, -24.693443f, -238.08661f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282240,16 +340391,18 @@ public static class AssemblyQuestLoader }; obj21.Steps = list37; reference27 = obj21; - ref QuestSequence reference28 = ref span15[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span17 = CollectionsMarshal.AsSpan(list38); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282257,7 +340410,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; @@ -282270,13 +340424,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot5.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span18 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span18[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -282284,18 +340441,23 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963); obj23.Steps = list41; reference29 = obj23; - ref QuestSequence reference30 = ref span18[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282305,7 +340467,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list42; reference30 = obj24; - ref QuestSequence reference31 = ref span18[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -282313,24 +340476,33 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference32 = ref span19[0]; + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference32 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012395u, new Vector3(-108.20172f, 14.877502f, 156.20654f), 963); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = null; - span20[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = null; + span5 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; questStep7.CompletionQuestVariablesFlags = list44; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span4 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF015_04270_Q1_000_000"), @@ -282338,23 +340510,32 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list45; reference32 = questStep7; - ref QuestStep reference33 = ref span19[1]; + index2++; + ref QuestStep reference33 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012396u, new Vector3(-106.126526f, 15.0911255f, 154.49756f), 963); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span21 = CollectionsMarshal.AsSpan(list46); - span21[0] = null; - span21[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + span5 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; questStep8.CompletionQuestVariablesFlags = list46; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + span4 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF015_04270_Q1_000_000"), @@ -282362,28 +340543,33 @@ public static class AssemblyQuestLoader }; questStep8.DialogueChoices = list47; reference33 = questStep8; - span19[2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) { StopDistance = 7f }; obj25.Steps = list43; reference31 = obj25; - ref QuestSequence reference34 = ref span18[3]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span22 = CollectionsMarshal.AsSpan(list48); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.102844f, 7.704563f, 106.27705f), 963); - span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) + index2 = 3; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.102844f, 7.704563f, 106.27705f), 963); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) { StopDistance = 2f, DisableNavmesh = true }; - span22[2] = new QuestStep(EInteractionType.CompleteQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282400,13 +340586,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot6.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span23 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference35 = ref span23[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -282414,19 +340603,23 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963); + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963); obj27.Steps = list51; reference35 = obj27; - ref QuestSequence reference36 = ref span23[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span24 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference37 = ref span24[0]; + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1041154u, new Vector3(112.01648f, 26.99999f, 53.81848f), 963) { AethernetShortcut = new AethernetShortcut @@ -282438,16 +340631,23 @@ public static class AssemblyQuestLoader num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span25 = CollectionsMarshal.AsSpan(list53); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list53; reference37 = obj29; - ref QuestStep reference38 = ref span24[1]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) { StopDistance = 7f, @@ -282457,21 +340657,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span26 = CollectionsMarshal.AsSpan(list54); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list54; reference38 = obj30; obj28.Steps = list52; reference36 = obj28; - ref QuestSequence reference39 = ref span23[2]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -282479,7 +340686,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282496,24 +340705,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot7.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span27 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference40 = ref span27[0]; + index = 7; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); obj32.Steps = list58; reference40 = obj32; - ref QuestSequence reference41 = ref span27[1]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -282521,14 +340736,17 @@ public static class AssemblyQuestLoader num2 = 4; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span28 = CollectionsMarshal.AsSpan(list59); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.856667f, 13.068996f, 118.292465f), 963); - span28[1] = new QuestStep(EInteractionType.WalkTo, 194u, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.856667f, 13.068996f, 118.292465f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 194u, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) { StopDistance = 3f, DisableNavmesh = true }; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282536,24 +340754,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - span28[3] = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; obj33.Steps = list59; reference41 = obj33; - ref QuestSequence reference42 = ref span27[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2012387u, new Vector3(-58.27423f, 0.9613037f, -199.42017f), 963); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012387u, new Vector3(-58.27423f, 0.9613037f, -199.42017f), 963); obj34.Steps = list60; reference42 = obj34; - ref QuestSequence reference43 = ref span27[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -282561,21 +340784,27 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2012388u, new Vector3(-65.62909f, 13.992493f, 129.1676f), 963); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012388u, new Vector3(-65.62909f, 13.992493f, 129.1676f), 963); obj35.Steps = list61; reference43 = obj35; - ref QuestSequence reference44 = ref span27[4]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); obj36.Steps = list62; reference44 = obj36; - ref QuestSequence reference45 = ref span27[5]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 5 @@ -282583,18 +340812,23 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1037466u, new Vector3(-205.31018f, 36f, 135.39331f), 963); + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037466u, new Vector3(-205.31018f, 36f, 135.39331f), 963); obj37.Steps = list63; reference45 = obj37; - ref QuestSequence reference46 = ref span27[6]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041145u, new Vector3(-63.34027f, 14f, 126.207275f), 963); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041145u, new Vector3(-63.34027f, 14f, 126.207275f), 963); obj38.Steps = list64; reference46 = obj38; questRoot7.QuestSequence = list57; @@ -282604,13 +340838,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot8.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span29 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span29[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -282618,21 +340855,27 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); obj39.Steps = list67; reference47 = obj39; - ref QuestSequence reference48 = ref span29[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1041147u, new Vector3(-90.25714f, 24.010002f, 70.54236f), 963); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041147u, new Vector3(-90.25714f, 24.010002f, 70.54236f), 963); obj40.Steps = list68; reference48 = obj40; - ref QuestSequence reference49 = ref span29[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -282640,12 +340883,16 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list69)[0]; + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012390u, new Vector3(-88.39557f, 25.223145f, 66.453f), 963); num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF018_04273_Q1_000_000"), @@ -282655,15 +340902,18 @@ public static class AssemblyQuestLoader reference50 = questStep9; obj41.Steps = list69; reference49 = obj41; - ref QuestSequence reference51 = ref span29[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); obj42.Steps = list71; reference51 = obj42; questRoot8.QuestSequence = list66; @@ -282673,13 +340923,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list72); + index = 0; + span[index] = "liza"; questRoot9.Author = list72; - num = 3; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span30 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference52 = ref span30[0]; + index = 3; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + span2 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -282687,35 +340940,47 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); obj43.Steps = list74; reference52 = obj43; - ref QuestSequence reference53 = ref span30[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span31 = CollectionsMarshal.AsSpan(list75); - ref QuestStep reference54 = ref span31[0]; + index2 = 7; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012393u, new Vector3(-238.88f, 35.965454f, 122.78931f), 963); - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span32[4] = null; - span32[5] = null; + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + span5 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; questStep10.CompletionQuestVariablesFlags = list76; num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q3_000_000"), @@ -282723,23 +340988,32 @@ public static class AssemblyQuestLoader }; questStep10.DialogueChoices = list77; reference54 = questStep10; - ref QuestStep reference55 = ref span31[1]; + num2++; + ref QuestStep reference55 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012393u, new Vector3(-238.88f, 35.965454f, 122.78931f), 963); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span33 = CollectionsMarshal.AsSpan(list78); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span33[4] = null; - span33[5] = null; + index3 = 6; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; questStep11.CompletionQuestVariablesFlags = list78; num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q3_000_000"), @@ -282747,23 +341021,32 @@ public static class AssemblyQuestLoader }; questStep11.DialogueChoices = list79; reference55 = questStep11; - ref QuestStep reference56 = ref span31[2]; + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2012392u, new Vector3(-237.10992f, 35.965454f, 122.75879f), 963); - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span34 = CollectionsMarshal.AsSpan(list80); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span34[4] = null; - span34[5] = null; + index3 = 6; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span5 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; questStep12.CompletionQuestVariablesFlags = list80; num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q2_000_000"), @@ -282771,23 +341054,32 @@ public static class AssemblyQuestLoader }; questStep12.DialogueChoices = list81; reference56 = questStep12; - ref QuestStep reference57 = ref span31[3]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2012391u, new Vector3(-235.52307f, 35.965454f, 122.23999f), 963); - num3 = 6; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span35 = CollectionsMarshal.AsSpan(list82); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span35[4] = null; - span35[5] = null; + index3 = 6; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span5 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; questStep13.CompletionQuestVariablesFlags = list82; num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q1_000_000"), @@ -282795,23 +341087,32 @@ public static class AssemblyQuestLoader }; questStep13.DialogueChoices = list83; reference57 = questStep13; - ref QuestStep reference58 = ref span31[4]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2012391u, new Vector3(-235.52307f, 35.965454f, 122.23999f), 963); - num3 = 6; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span36 = CollectionsMarshal.AsSpan(list84); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span36[4] = null; - span36[5] = null; + index3 = 6; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + span5 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; questStep14.CompletionQuestVariablesFlags = list84; num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q1_000_000"), @@ -282819,37 +341120,52 @@ public static class AssemblyQuestLoader }; questStep14.DialogueChoices = list85; reference58 = questStep14; - ref QuestStep reference59 = ref span31[5]; + num2++; + ref QuestStep reference59 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1041149u, new Vector3(-226.64227f, 36f, 108.56787f), 963); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span37 = CollectionsMarshal.AsSpan(list86); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + span5 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list86; reference59 = questStep15; - ref QuestStep reference60 = ref span31[6]; + num2++; + ref QuestStep reference60 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1041148u, new Vector3(-223.59052f, 36f, 143.328f), 963); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span38 = CollectionsMarshal.AsSpan(list87); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list87; reference60 = questStep16; obj44.Steps = list75; reference53 = obj44; - ref QuestSequence reference61 = ref span30[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -282857,7 +341173,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); obj45.Steps = list88; reference61 = obj45; questRoot9.QuestSequence = list73; @@ -282867,24 +341185,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list89); + index = 0; + span[index] = "liza"; questRoot10.Author = list89; - num = 4; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span39 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference62 = ref span39[0]; + index = 4; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + span2 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040884u, new Vector3(-176.13495f, 36f, 28.244385f), 963); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040884u, new Vector3(-176.13495f, 36f, 28.244385f), 963); obj46.Steps = list91; reference62 = obj46; - ref QuestSequence reference63 = ref span39[1]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -282892,57 +341216,69 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1041514u, new Vector3(-133.59277f, 30.999994f, 0.07623291f), 963); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041514u, new Vector3(-133.59277f, 30.999994f, 0.07623291f), 963); obj47.Steps = list92; reference63 = obj47; - ref QuestSequence reference64 = ref span39[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 9; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span40 = CollectionsMarshal.AsSpan(list93); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.8164f, 30.999998f, 11.496266f), 963) + index2 = 9; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.8164f, 30.999998f, 11.496266f), 963) { DelaySecondsAtStart = 2f, Sprint = false }; - span40[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-63.309746f, 31.051857f, 20.292212f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-63.309746f, 31.051857f, 20.292212f), 963) { StopDistance = 100f, Sprint = false }; - span40[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.410736f, 30.999716f, 20.657598f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.410736f, 30.999716f, 20.657598f), 963) { Sprint = false }; - span40[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-16.034935f, 27.05736f, 31.972898f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-16.034935f, 27.05736f, 31.972898f), 963) { StopDistance = 100f, Sprint = false }; - span40[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.071863f, 27.000011f, 27.903757f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.071863f, 27.000011f, 27.903757f), 963) { Sprint = false }; - span40[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(20.139565f, 26.999846f, 34.94524f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(20.139565f, 26.999846f, 34.94524f), 963) { StopDistance = 100f, Sprint = false }; - span40[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.18388f, 26.999989f, 41.661907f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.18388f, 26.999989f, 41.661907f), 963) { DelaySecondsAtStart = 2f, Sprint = false }; - span40[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(56.11211f, 26.999992f, 47.213455f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(56.11211f, 26.999992f, 47.213455f), 963) { StopDistance = 100f, Sprint = false }; - span40[8] = new QuestStep(EInteractionType.WalkTo, 1041514u, new Vector3(70.07179f, 26.99999f, 61.356277f), 963) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1041514u, new Vector3(70.07179f, 26.99999f, 61.356277f), 963) { StopDistance = 2f, DelaySecondsAtStart = 8f, @@ -282950,7 +341286,8 @@ public static class AssemblyQuestLoader }; obj48.Steps = list93; reference64 = obj48; - ref QuestSequence reference65 = ref span39[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -282958,7 +341295,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040885u, new Vector3(-173.05261f, 36f, 25.589355f), 963); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040885u, new Vector3(-173.05261f, 36f, 25.589355f), 963); obj49.Steps = list94; reference65 = obj49; questRoot10.QuestSequence = list90; @@ -282968,24 +341307,30 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "liza"; questRoot11.Author = list95; - num = 5; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span41 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference66 = ref span41[0]; + index = 5; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); obj50.Steps = list97; reference66 = obj50; - ref QuestSequence reference67 = ref span41[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 @@ -282993,51 +341338,62 @@ public static class AssemblyQuestLoader num2 = 5; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span42 = CollectionsMarshal.AsSpan(list98); - span42[0] = new QuestStep(EInteractionType.Interact, 1041141u, new Vector3(-614.313f, -22.39482f, 509.72766f), 961); - span42[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-655.5854f, -22.394821f, 498.91443f), 961) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041141u, new Vector3(-614.313f, -22.39482f, 509.72766f), 961); + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-655.5854f, -22.394821f, 498.91443f), 961) { StopDistance = 1f, Mount = true }; - span42[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-686.881f, -25.994936f, 443.804f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-686.881f, -25.994936f, 443.804f), 961) { StopDistance = 1f }; - span42[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-738.11304f, -25.933691f, 487.78436f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-738.11304f, -25.933691f, 487.78436f), 961) { StopDistance = 1f }; - span42[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961) { StopDistance = 1f }; obj51.Steps = list98; reference67 = obj51; - ref QuestSequence reference68 = ref span41[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list99)[0]; + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference69 = ref span3[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(-838.7837f, -39.605896f, 518.9479f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span43 = CollectionsMarshal.AsSpan(list100); - span43[0] = 14064u; - span43[1] = 14065u; + index3 = 2; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + span6 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span6[num3] = 14064u; + num3++; + span6[num3] = 14065u; obj53.KillEnemyDataIds = list100; reference69 = obj53; obj52.Steps = list99; reference68 = obj52; - ref QuestSequence reference70 = ref span41[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 @@ -283045,18 +341401,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1041137u, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041137u, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961); obj54.Steps = list101; reference70 = obj54; - ref QuestSequence reference71 = ref span41[4]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); obj55.Steps = list102; reference71 = obj55; questRoot11.QuestSequence = list96; @@ -283070,13 +341431,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -283084,18 +341448,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(258.35046f, -10.140662f, -95.71985f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis @@ -283103,7 +341472,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZH018_04313_Q1_000_100"), @@ -283113,7 +341484,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -283121,18 +341493,23 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(-175.03741f, 12.098856f, 6.8771067f), 961); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(-175.03741f, 12.098856f, 6.8771067f), 961); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -283145,13 +341522,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 4; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 4; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -283159,21 +341539,27 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962); + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1041295u, new Vector3(-22.568176f, -16.246908f, 91.75244f), 962); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041295u, new Vector3(-22.568176f, -16.246908f, 91.75244f), 962); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -283181,22 +341567,30 @@ public static class AssemblyQuestLoader num2 = 3; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1037066u, new Vector3(65.01868f, -14.446999f, 78.26355f), 962); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span5 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list13; reference9 = questStep; - ref QuestStep reference10 = ref span3[1]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1040985u, new Vector3(56.77881f, 5.1499996f, -73.86902f), 962) { AethernetShortcut = new AethernetShortcut @@ -283208,16 +341602,23 @@ public static class AssemblyQuestLoader num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span5 = CollectionsMarshal.AsSpan(list14); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list14; reference10 = obj9; - ref QuestStep reference11 = ref span3[2]; + index2++; + ref QuestStep reference11 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2012610u, new Vector3(-363.6988f, 20.279175f, 92.729004f), 962) { AethernetShortcut = new AethernetShortcut @@ -283226,29 +341627,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + span5 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj10.CompletionQuestVariablesFlags = list15; reference11 = obj10; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference12 = ref span2[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283265,13 +341675,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span7[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -283279,24 +341692,30 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041296u, new Vector3(-32.913757f, 2.400051f, -8.804504f), 962); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041296u, new Vector3(-32.913757f, 2.400051f, -8.804504f), 962); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 2012438u, new Vector3(-33.310486f, 2.8533936f, -9.048645f), 962) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012438u, new Vector3(-33.310486f, 2.8533936f, -9.048645f), 962) { StopDistance = 4f }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span7[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -283304,8 +341723,9 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1041297u, new Vector3(-167.55939f, 6.6576204f, 129.07605f), 962) { AethernetShortcut = new AethernetShortcut @@ -283318,16 +341738,23 @@ public static class AssemblyQuestLoader num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span9 = CollectionsMarshal.AsSpan(list22); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list22; reference16 = obj15; - ref QuestStep reference17 = ref span8[1]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Say, 1041299u, new Vector3(-126.17688f, 29.890081f, -201.80054f), 962) { AethernetShortcut = new AethernetShortcut @@ -283340,19 +341767,26 @@ public static class AssemblyQuestLoader Key = "TEXT_AKTKZI002_04317_SAYTODO_000_060" } }; - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span10 = CollectionsMarshal.AsSpan(list23); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span5 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list23; reference17 = obj16; - ref QuestStep reference18 = ref span8[2]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1037234u, new Vector3(16.922241f, 23.499975f, -136.67511f), 962) { SkipConditions = new SkipConditions @@ -283366,26 +341800,35 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span11 = CollectionsMarshal.AsSpan(list24); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list24; reference18 = obj17; obj14.Steps = list21; reference15 = obj14; - ref QuestSequence reference19 = ref span7[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 2012439u, new Vector3(-32.822205f, 2.8533936f, -9.842102f), 962) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2012439u, new Vector3(-32.822205f, 2.8533936f, -9.842102f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283402,13 +341845,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; questRoot4.Author = list26; - num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span12 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span12[0]; + index = 3; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -283416,7 +341862,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list28)[0]; + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.AcceptQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -283433,10 +341881,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span4 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI003_04318_Q1_000_000"), @@ -283446,46 +341896,62 @@ public static class AssemblyQuestLoader reference21 = obj20; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference22 = ref span12[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span13 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span13[0]; + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012440u, new Vector3(213.9773f, 8.224609f, -33.737732f), 962); num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list31; reference23 = questStep2; - ref QuestStep reference24 = ref span13[1]; + num2++; + ref QuestStep reference24 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012441u, new Vector3(168.0476f, 1.296936f, 53.94055f), 962); - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + span5 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; obj21.Steps = list30; reference22 = obj21; - ref QuestSequence reference25 = ref span12[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -283493,7 +341959,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283510,26 +341978,32 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot5.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span16[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962); - span17[1] = new QuestStep(EInteractionType.AcceptQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span16[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -283537,7 +342011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1041308u, new Vector3(190.6615f, 18.89543f, -91.44739f), 962) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041308u, new Vector3(190.6615f, 18.89543f, -91.44739f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283547,16 +342023,18 @@ public static class AssemblyQuestLoader }; obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span16[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283564,7 +342042,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); obj25.Steps = list38; reference28 = obj25; questRoot5.QuestSequence = list35; @@ -283574,13 +342053,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot6.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span19 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span19[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -283588,12 +342070,16 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference30 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.AcceptQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI005_04320_Q1_000_000"), @@ -283603,18 +342089,22 @@ public static class AssemblyQuestLoader reference30 = questStep4; obj26.Steps = list41; reference29 = obj26; - ref QuestSequence reference31 = ref span19[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1041314u, new Vector3(78.3855f, -29.79994f, 159.5636f), 956); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041314u, new Vector3(78.3855f, -29.79994f, 159.5636f), 956); obj27.Steps = list43; reference31 = obj27; - ref QuestSequence reference32 = ref span19[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -283622,22 +342112,27 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Emote, 2012494u, new Vector3(78.96533f, -29.098999f, 161.02844f), 956) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2012494u, new Vector3(78.96533f, -29.098999f, 161.02844f), 956) { StopDistance = 5f, Emote = EEmote.Pray }; obj28.Steps = list44; reference32 = obj28; - ref QuestSequence reference33 = ref span19[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); obj29.Steps = list45; reference33 = obj29; questRoot6.QuestSequence = list40; @@ -283647,13 +342142,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot7.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span20 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span20[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -283661,27 +342159,34 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956); obj30.Steps = list48; reference34 = obj30; - ref QuestSequence reference35 = ref span20[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(379.89767f, 68.15723f, -169.26231f), 956) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 13415u; + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span6 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span6[num3] = 13415u; obj32.KillEnemyDataIds = list50; obj32.CombatItemUse = new CombatItemUse { @@ -283692,7 +342197,8 @@ public static class AssemblyQuestLoader reference36 = obj32; obj31.Steps = list49; reference35 = obj31; - ref QuestSequence reference37 = ref span20[2]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -283700,7 +342206,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet @@ -283714,24 +342222,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot8.Author = list52; - num = 4; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span21 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference38 = ref span21[0]; + index = 4; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); obj34.Steps = list54; reference38 = obj34; - ref QuestSequence reference39 = ref span21[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -283739,7 +342253,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(262.07907f, -18.527845f, 183.61182f), 956) { StopDistance = 1f, @@ -283748,26 +342264,32 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 14123u; + span6 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span6[index3] = 14123u; obj36.KillEnemyDataIds = list56; reference40 = obj36; obj35.Steps = list55; reference39 = obj35; - ref QuestSequence reference41 = ref span21[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1041128u, new Vector3(263.1112f, -18.597479f, 185.99219f), 956) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041128u, new Vector3(263.1112f, -18.597479f, 185.99219f), 956) { StopDistance = 5f }; obj37.Steps = list57; reference41 = obj37; - ref QuestSequence reference42 = ref span21[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -283775,7 +342297,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); obj38.Steps = list58; reference42 = obj38; questRoot8.QuestSequence = list53; @@ -283785,21 +342309,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "alydev"; questRoot9.Author = list59; - num = 3; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span22 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference43 = ref span22[0]; + index = 3; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -283818,7 +342347,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list61; reference43 = obj39; - ref QuestSequence reference44 = ref span22[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -283826,30 +342356,37 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list62)[0]; + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-62.2731f, 60.627563f, 786.55927f), 960) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span23 = CollectionsMarshal.AsSpan(list63); - span23[0] = 14047u; - span23[1] = 14048u; + index3 = 2; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span6 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span6[num3] = 14047u; + num3++; + span6[num3] = 14048u; obj41.KillEnemyDataIds = list63; reference45 = obj41; obj40.Steps = list62; reference44 = obj40; - ref QuestSequence reference46 = ref span22[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list64)[0]; + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 5f, @@ -283870,7 +342407,9 @@ public static class AssemblyQuestLoader num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ001_04337_Q1_000_014"), @@ -283887,13 +342426,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "alydev"; questRoot10.Author = list66; - num = 4; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span24 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference48 = ref span24[0]; + index = 4; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -283901,7 +342443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { StopDistance = 5f, Fly = true, @@ -283921,22 +342465,26 @@ public static class AssemblyQuestLoader }; obj44.Steps = list68; reference48 = obj44; - ref QuestSequence reference49 = ref span24[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) { StopDistance = 5f, Fly = true }; obj45.Steps = list69; reference49 = obj45; - ref QuestSequence reference50 = ref span24[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -283944,17 +342492,21 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list70)[0]; + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Emote, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) { StopDistance = 5f, Fly = true, Emote = EEmote.Pet }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + index3 = 1; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + span4 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ002_04338_Q1_000_015"), @@ -283964,15 +342516,18 @@ public static class AssemblyQuestLoader reference51 = obj47; obj46.Steps = list70; reference50 = obj46; - ref QuestSequence reference52 = ref span24[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { StopDistance = 5f, Fly = true, @@ -283999,13 +342554,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "alydev"; questRoot11.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span25 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference53 = ref span25[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -284013,7 +342571,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) { StopDistance = 10f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -284032,16 +342592,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference53 = obj49; - ref QuestSequence reference54 = ref span25[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span26 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference55 = ref span26[0]; + index2 = 4; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2012307u, new Vector3(-678.00415f, 72.06836f, 119.035645f), 960) { Fly = true @@ -284049,30 +342611,44 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span27 = CollectionsMarshal.AsSpan(list77); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj51.CompletionQuestVariablesFlags = list77; reference55 = obj51; - ref QuestStep reference56 = ref span26[1]; + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012308u, new Vector3(-635.49255f, 77.408936f, 46.61621f), 960); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span28 = CollectionsMarshal.AsSpan(list78); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span5 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list78; reference56 = questStep5; - ref QuestStep reference57 = ref span26[2]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 2012305u, new Vector3(-398.3368f, 88.85327f, 314.44263f), 960) { Fly = true @@ -284080,32 +342656,46 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span29 = CollectionsMarshal.AsSpan(list79); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list79; reference57 = obj52; - ref QuestStep reference58 = ref span26[3]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012306u, new Vector3(-641.8402f, 78.93494f, 445.21252f), 960); - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span30 = CollectionsMarshal.AsSpan(list80); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span5 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list80; reference58 = questStep6; obj50.Steps = list76; reference54 = obj50; - ref QuestSequence reference59 = ref span25[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -284113,7 +342703,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) { StopDistance = 10f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -284139,21 +342731,26 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "alydev"; questRoot12.Author = list82; - num = 3; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span31 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference60 = ref span31[0]; + index = 3; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 5f, Fly = true, @@ -284173,7 +342770,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list84; reference60 = obj54; - ref QuestSequence reference61 = ref span31[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -284181,8 +342779,9 @@ public static class AssemblyQuestLoader num2 = 3; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span32 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference62 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference62 = ref span3[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2012309u, new Vector3(-346.02887f, 86.44226f, 283.71094f), 960) { Fly = true @@ -284190,30 +342789,44 @@ public static class AssemblyQuestLoader num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span33 = CollectionsMarshal.AsSpan(list86); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj56.CompletionQuestVariablesFlags = list86; reference62 = obj56; - ref QuestStep reference63 = ref span32[1]; + index2++; + ref QuestStep reference63 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012310u, new Vector3(-342.12262f, 86.10657f, 278.09558f), 960); - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span34 = CollectionsMarshal.AsSpan(list87); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span5 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list87; reference63 = questStep7; - ref QuestStep reference64 = ref span32[2]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 2012312u, new Vector3(-292.77484f, 91.38623f, 317.09766f), 960) { Fly = true @@ -284221,26 +342834,35 @@ public static class AssemblyQuestLoader num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span35 = CollectionsMarshal.AsSpan(list88); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj57.CompletionQuestVariablesFlags = list88; reference64 = obj57; obj55.Steps = list85; reference61 = obj55; - ref QuestSequence reference65 = ref span31[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.CompleteQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 5f, @@ -284259,10 +342881,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ004_04340_Q1_000_012"), @@ -284279,13 +342903,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "alydev"; questRoot13.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span36 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference67 = ref span36[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -284293,7 +342920,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list93)[0]; + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep obj61 = new QuestStep(EInteractionType.AcceptQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) { StopDistance = 5f, @@ -284315,7 +342944,9 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ005_04341_Q1_000_001"), @@ -284325,29 +342956,35 @@ public static class AssemblyQuestLoader reference68 = obj61; obj60.Steps = list93; reference67 = obj60; - ref QuestSequence reference69 = ref span36[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2012311u, new Vector3(-746.9749f, 63.1875f, 7.248047f), 960) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 14046u; + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span6 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span6[num3] = 14046u; obj63.KillEnemyDataIds = list96; reference70 = obj63; obj62.Steps = list95; reference69 = obj62; - ref QuestSequence reference71 = ref span36[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -284355,7 +342992,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) { StopDistance = 5f, Fly = true, @@ -284382,24 +343021,30 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "liza"; questRoot14.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span37 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference72 = ref span37[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); obj65.Steps = list100; reference72 = obj65; - ref QuestSequence reference73 = ref span37[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -284407,7 +343052,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list101)[0]; + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference74 = ref span3[index2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(-41.26438f, 274.85336f, -523.8633f), 960) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -284415,8 +343062,9 @@ public static class AssemblyQuestLoader num3 = 2; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span38 = CollectionsMarshal.AsSpan(list102); - ref ComplexCombatData reference75 = ref span38[0]; + Span span7 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + ref ComplexCombatData reference75 = ref span7[index3]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 13315u, @@ -284425,46 +343073,62 @@ public static class AssemblyQuestLoader int num4 = 6; List list103 = new List(num4); CollectionsMarshal.SetCount(list103, num4); - Span span39 = CollectionsMarshal.AsSpan(list103); - span39[0] = null; - span39[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = null; + span5 = CollectionsMarshal.AsSpan(list103); + int num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; obj68.CompletionQuestVariablesFlags = list103; reference75 = obj68; - ref ComplexCombatData reference76 = ref span38[1]; + index3++; + ref ComplexCombatData reference76 = ref span7[index3]; ComplexCombatData obj69 = new ComplexCombatData { DataId = 14097u, MinimumKillCount = 1u }; - num4 = 6; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span40 = CollectionsMarshal.AsSpan(list104); - span40[0] = null; - span40[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + num5 = 6; + List list104 = new List(num5); + CollectionsMarshal.SetCount(list104, num5); + span5 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj69.CompletionQuestVariablesFlags = list104; reference76 = obj69; obj67.ComplexCombatData = list102; reference74 = obj67; obj66.Steps = list101; reference73 = obj66; - ref QuestSequence reference77 = ref span37[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); obj70.Steps = list105; reference77 = obj70; questRoot14.QuestSequence = list99; @@ -284474,13 +343138,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "liza"; questRoot15.Author = list106; - num = 3; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span41 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference78 = ref span41[0]; + index = 3; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -284488,70 +343155,96 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); obj71.Steps = list108; reference78 = obj71; - ref QuestSequence reference79 = ref span41[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span42 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference80 = ref span42[0]; + index2 = 4; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference80 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.55028f, 269.00006f, -683.68896f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span43 = CollectionsMarshal.AsSpan(list110); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + span5 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list110; skipConditions.StepIf = skipStepConditions; obj73.SkipConditions = skipConditions; reference80 = obj73; - ref QuestStep reference81 = ref span42[1]; + num2++; + ref QuestStep reference81 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1040880u, new Vector3(-110.185425f, 269.2062f, -713.5271f), 960); num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span44 = CollectionsMarshal.AsSpan(list111); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list111; reference81 = questStep8; - ref QuestStep reference82 = ref span42[2]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1040881u, new Vector3(-201.86163f, 288.6714f, -466.331f), 960); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span45 = CollectionsMarshal.AsSpan(list112); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span5 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list112; num3 = 1; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ010_04346_Q1_000_000"), @@ -284559,23 +343252,31 @@ public static class AssemblyQuestLoader }; questStep9.DialogueChoices = list113; reference82 = questStep9; - ref QuestStep reference83 = ref span42[3]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1040879u, new Vector3(-184.52734f, 267.47086f, -292.65283f), 960); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span46 = CollectionsMarshal.AsSpan(list114); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + span5 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list114; reference83 = questStep10; obj72.Steps = list109; reference79 = obj72; - ref QuestSequence reference84 = ref span41[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -284583,7 +343284,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); obj74.Steps = list115; reference84 = obj74; questRoot15.QuestSequence = list107; @@ -284593,21 +343296,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "alydev"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "alydev"; questRoot16.Author = list116; - num = 4; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span47 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference85 = ref span47[0]; + index = 4; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041058u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041058u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) { StopDistance = 5f, Fly = true, @@ -284627,7 +343335,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list118; reference85 = obj75; - ref QuestSequence reference86 = ref span47[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -284635,8 +343344,9 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span48 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference87 = ref span48[0]; + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1038012u, new Vector3(-655.9396f, 70.96863f, 302.90674f), 960) { Fly = true @@ -284644,18 +343354,26 @@ public static class AssemblyQuestLoader num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span49 = CollectionsMarshal.AsSpan(list120); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list120; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span4 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ012_04348_Q2_000_200"), @@ -284663,7 +343381,8 @@ public static class AssemblyQuestLoader }; obj77.DialogueChoices = list121; reference87 = obj77; - ref QuestStep reference88 = ref span48[1]; + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { Fly = true @@ -284671,18 +343390,26 @@ public static class AssemblyQuestLoader num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj78.CompletionQuestVariablesFlags = list122; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span4 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ012_04348_Q1_000_100"), @@ -284692,21 +343419,25 @@ public static class AssemblyQuestLoader reference88 = obj78; obj76.Steps = list119; reference86 = obj76; - ref QuestSequence reference89 = ref span47[2]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2012685u, new Vector3(-115.09888f, 55.527588f, 537.52954f), 960) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012685u, new Vector3(-115.09888f, 55.527588f, 537.52954f), 960) { Fly = true }; obj79.Steps = list124; reference89 = obj79; - ref QuestSequence reference90 = ref span47[3]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -284714,7 +343445,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) { StopDistance = 5f, Fly = true, @@ -284745,13 +343478,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "alydev"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "alydev"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -284759,7 +343495,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) { StopDistance = 5f, Fly = true, @@ -284779,22 +343517,26 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) { StopDistance = 5f, Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -284802,29 +343544,35 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) { StopDistance = 5f, Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) { StopDistance = 5f, Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -284832,22 +343580,27 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) { StopDistance = 5f, Fly = true }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) { StopDistance = 5f, Fly = true, @@ -284874,13 +343627,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span2 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span2[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -284888,12 +343644,16 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZK001_04354_Q1_000_100"), @@ -284903,32 +343663,37 @@ public static class AssemblyQuestLoader reference8 = questStep; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span3 = CollectionsMarshal.AsSpan(list13); - span3[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(588.5607f, 437.99976f, 299.7425f), 960) + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(588.5607f, 437.99976f, 299.7425f), 960) { JumpDestination = new JumpDestination { Position = new Vector3(602.4677f, 438.6276f, 297.1612f) } }; - ref QuestStep reference10 = ref span3[1]; + num2++; + ref QuestStep reference10 = ref span3[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(656.94653f, 437.98502f, 302.6322f), 960) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 14044u; + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + Span span5 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span5[num3] = 14044u; obj9.KillEnemyDataIds = list14; obj9.CombatItemUse = new CombatItemUse { @@ -284938,7 +343703,8 @@ public static class AssemblyQuestLoader reference10 = obj9; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -284946,7 +343712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); obj10.Steps = list15; reference11 = obj10; questRoot2.QuestSequence = list10; @@ -284956,24 +343724,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 4; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 4; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960); obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -284981,49 +343755,67 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 2012560u, new Vector3(510.3379f, 436.9724f, 307.20984f), 960); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012560u, new Vector3(510.3379f, 436.9724f, 307.20984f), 960); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span4[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012752u, new Vector3(687.2511f, 440.48218f, 375.3567f), 960); num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list21; reference15 = questStep2; - ref QuestStep reference16 = ref span5[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012753u, new Vector3(688.74634f, 440.45154f, 381.21606f), 960); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span6 = CollectionsMarshal.AsSpan(list22); + 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); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference17 = ref span4[3]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -285031,13 +343823,16 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span8 = CollectionsMarshal.AsSpan(list23); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.91565f, 440.4633f, 404.94272f), 960); - span8[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012032u, new Vector3(661.76843f, 439.96326f, 411.73413f), 960) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.91565f, 440.4633f, 404.94272f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012032u, new Vector3(661.76843f, 439.96326f, 411.73413f), 960) { AetherCurrentId = 2818391u }; - span8[2] = new QuestStep(EInteractionType.CompleteQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; @@ -285050,24 +343845,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot4.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span9 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span9[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036452u, new Vector3(-2.2736206f, 0f, -8.835022f), 351); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036452u, new Vector3(-2.2736206f, 0f, -8.835022f), 351); obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span9[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -285075,7 +343876,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1038570u, new Vector3(-374.6853f, 7.999938f, 45.822754f), 129) + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038570u, new Vector3(-374.6853f, 7.999938f, 45.822754f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -285086,15 +343889,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference20 = ref span9[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj17.Steps = list28; reference20 = obj17; questRoot4.QuestSequence = list25; @@ -285104,13 +343910,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "liza"; questRoot5.Author = list29; - num = 10; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span10 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span10[0]; + index = 10; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -285118,24 +343927,30 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj18.Steps = list31; reference21 = obj18; - ref QuestSequence reference22 = ref span10[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1038584u, new Vector3(47.68445f, -16.246998f, 147.02063f), 962) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038584u, new Vector3(47.68445f, -16.246998f, 147.02063f), 962) { StopDistance = 5f }; obj19.Steps = list32; reference22 = obj19; - ref QuestSequence reference23 = ref span10[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -285143,29 +343958,35 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span10[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span11 = CollectionsMarshal.AsSpan(list34); - span11[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanScholarsHarbor }; - span11[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-56.737106f, -15.127001f, 130.76611f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-56.737106f, -15.127001f, 130.76611f), 962) { StopDistance = 0.25f }; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span10[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -285173,34 +343994,40 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span12 = CollectionsMarshal.AsSpan(list35); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-8.38828f, 3.2249968f, 9.224017f), 962); - span12[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.03130532f, 3.2249997f, 8.909777f), 962) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-8.38828f, 3.2249968f, 9.224017f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.03130532f, 3.2249997f, 8.909777f), 962) { StopDistance = 0.25f }; obj22.Steps = list35; reference25 = obj22; - ref QuestSequence reference26 = ref span10[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - span13[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan }; - span13[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(66.10567f, 5.0999994f, -63.37148f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(66.10567f, 5.0999994f, -63.37148f), 962) { StopDistance = 0.25f }; obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span10[6]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -285208,35 +344035,42 @@ public static class AssemblyQuestLoader num2 = 3; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span14 = CollectionsMarshal.AsSpan(list37); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.30914f, 8.920153f, -89.12467f), 962); - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.67595f, 15.025446f, -134.08261f), 962); - span14[2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.4629783f, 41.37599f, -142.5033f), 962) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.30914f, 8.920153f, -89.12467f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.67595f, 15.025446f, -134.08261f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.4629783f, 41.37599f, -142.5033f), 962) { StopDistance = 0.25f }; obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span10[7]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span15 = CollectionsMarshal.AsSpan(list38); - span15[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanRostra }; - span15[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(149.26689f, 18.800978f, -142.65858f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(149.26689f, 18.800978f, -142.65858f), 962) { StopDistance = 0.25f }; obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span10[8]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 8 @@ -285244,16 +344078,19 @@ public static class AssemblyQuestLoader num2 = 3; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span16 = CollectionsMarshal.AsSpan(list39); - span16[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanLeveilleurEstate }; - span16[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanJourneysEnd }; - span16[2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-82.642426f, 1.0594833f, 30.052902f), 962) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-82.642426f, 1.0594833f, 30.052902f), 962) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -285264,20 +344101,23 @@ public static class AssemblyQuestLoader }; obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span10[9]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span17 = CollectionsMarshal.AsSpan(list40); - span17[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987 }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1038586u, new Vector3(-0.015319824f, 1.9073486E-06f, -0.77819824f), 987); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038586u, new Vector3(-0.015319824f, 1.9073486E-06f, -0.77819824f), 987); obj27.Steps = list40; reference30 = obj27; questRoot5.QuestSequence = list30; @@ -285287,13 +344127,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot6.Author = list41; - num = 8; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span18 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span18[0]; + index = 8; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -285301,37 +344144,45 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038670u, new Vector3(-2.609314f, 1.9073486E-06f, 0.16778564f), 987) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038670u, new Vector3(-2.609314f, 1.9073486E-06f, 0.16778564f), 987) { StopDistance = 5f }; obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span18[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span19 = CollectionsMarshal.AsSpan(list44); - span19[0] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.009068698f, 1.151502f, 14.81335f), 987) + index2 = 4; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.009068698f, 1.151502f, 14.81335f), 987) { TargetTerritoryId = (ushort)962 }; - span19[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanBaldesionAnnex }; - span19[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanStudium }; - span19[3] = new QuestStep(EInteractionType.Interact, 1038675u, new Vector3(-301.38098f, 18.47832f, 10.849121f), 962); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038675u, new Vector3(-301.38098f, 18.47832f, 10.849121f), 962); obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference33 = ref span18[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -285339,70 +344190,97 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference34 = ref span20[0]; + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011828u, new Vector3(-320.72937f, 20.248657f, 57.99951f), 962); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span21 = CollectionsMarshal.AsSpan(list46); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list46; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + span4 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q5_000_071") }; questStep4.DialogueChoices = list47; reference34 = questStep4; - ref QuestStep reference35 = ref span20[1]; + index2++; + ref QuestStep reference35 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2011825u, new Vector3(-370.47382f, 20.248657f, 100.1449f), 962); num3 = 6; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span22 = CollectionsMarshal.AsSpan(list48); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list48; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + span4 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q2_000_049") }; questStep5.DialogueChoices = list49; reference35 = questStep5; - ref QuestStep reference36 = ref span20[2]; + index2++; + ref QuestStep reference36 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2011826u, new Vector3(-385.36664f, 20.248657f, 43.289795f), 962); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span23 = CollectionsMarshal.AsSpan(list50); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list50; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new DialogueChoice + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + span4 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q3_000_055") @@ -285411,18 +344289,22 @@ public static class AssemblyQuestLoader reference36 = questStep6; obj30.Steps = list45; reference33 = obj30; - ref QuestSequence reference37 = ref span18[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj31.Steps = list52; reference37 = obj31; - ref QuestSequence reference38 = ref span18[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -285430,21 +344312,27 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj32.Steps = list53; reference38 = obj32; - ref QuestSequence reference39 = ref span18[5]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj33.Steps = list54; reference39 = obj33; - ref QuestSequence reference40 = ref span18[6]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 6 @@ -285452,18 +344340,23 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962); obj34.Steps = list55; reference40 = obj34; - ref QuestSequence reference41 = ref span18[7]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) { StopDistance = 5f }; @@ -285476,13 +344369,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot7.Author = list57; - num = 9; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span24 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference42 = ref span24[0]; + index = 9; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -285490,21 +344386,26 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038681u, new Vector3(-281.11694f, 19.003874f, 18.966919f), 962) + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038681u, new Vector3(-281.11694f, 19.003874f, 18.966919f), 962) { StopDistance = 5f }; obj36.Steps = list59; reference42 = obj36; - ref QuestSequence reference43 = ref span24[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1038682u, new Vector3(-69.13867f, -15.127f, 113.572876f), 962) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038682u, new Vector3(-69.13867f, -15.127f, 113.572876f), 962) { AethernetShortcut = new AethernetShortcut { @@ -285514,7 +344415,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list60; reference43 = obj37; - ref QuestSequence reference44 = ref span24[2]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -285522,23 +344424,29 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span25 = CollectionsMarshal.AsSpan(list61); - span25[0] = new QuestStep(EInteractionType.Interact, 1037079u, new Vector3(-81.04071f, -13.777f, 117.32654f), 962); - span25[1] = new QuestStep(EInteractionType.Interact, 1037078u, new Vector3(-42.557434f, -14.1693125f, 111.49768f), 962); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037079u, new Vector3(-81.04071f, -13.777f, 117.32654f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037078u, new Vector3(-42.557434f, -14.1693125f, 111.49768f), 962); obj38.Steps = list61; reference44 = obj38; - ref QuestSequence reference45 = ref span24[3]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.066784f, -14.169313f, 107.68768f), 962); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.066784f, -14.169313f, 107.68768f), 962); obj39.Steps = list62; reference45 = obj39; - ref QuestSequence reference46 = ref span24[4]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 4 @@ -285546,12 +344454,16 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list63)[0]; + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference47 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2011831u, new Vector3(-86.90015f, -12.985474f, 130.47986f), 962); num3 = 1; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q3_000_130"), @@ -285561,20 +344473,25 @@ public static class AssemblyQuestLoader reference47 = questStep7; obj40.Steps = list63; reference46 = obj40; - ref QuestSequence reference48 = ref span24[5]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list65)[0]; + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2011832u, new Vector3(-74.57086f, -12.985474f, 141.1001f), 962); - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span4 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q5_000_150"), @@ -285584,7 +344501,8 @@ public static class AssemblyQuestLoader reference49 = questStep8; obj41.Steps = list65; reference48 = obj41; - ref QuestSequence reference50 = ref span24[6]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 6 @@ -285592,12 +344510,16 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list67)[0]; + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2011833u, new Vector3(-74.57086f, -12.985474f, 148.11926f), 962); num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q6_000_170"), @@ -285607,21 +344529,25 @@ public static class AssemblyQuestLoader reference51 = questStep9; obj42.Steps = list67; reference50 = obj42; - ref QuestSequence reference52 = ref span24[7]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1038683u, new Vector3(-36.697998f, -14.169313f, 114.76306f), 962) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038683u, new Vector3(-36.697998f, -14.169313f, 114.76306f), 962) { StopDistance = 6.9f }; obj43.Steps = list69; reference52 = obj43; - ref QuestSequence reference53 = ref span24[8]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -285629,9 +344555,11 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span26 = CollectionsMarshal.AsSpan(list70); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.79008f, -16.247002f, 108.36692f), 962); - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.79008f, -16.247002f, 108.36692f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); obj44.Steps = list70; reference53 = obj44; questRoot7.QuestSequence = list58; @@ -285641,24 +344569,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot8.Author = list71; - num = 7; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span27 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference54 = ref span27[0]; + index = 7; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); obj45.Steps = list73; reference54 = obj45; - ref QuestSequence reference55 = ref span27[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -285666,7 +344600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) { AethernetShortcut = new AethernetShortcut { @@ -285676,45 +344612,51 @@ public static class AssemblyQuestLoader }; obj46.Steps = list74; reference55 = obj46; - ref QuestSequence reference56 = ref span27[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span28 = CollectionsMarshal.AsSpan(list75); - span28[0] = new QuestStep(EInteractionType.Interact, 1038753u, new Vector3(-234.21082f, 12.969517f, -27.054321f), 962); - span28[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-202.6663f, 13.470648f, -49.497906f), 962) + index2 = 6; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038753u, new Vector3(-234.21082f, 12.969517f, -27.054321f), 962); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-202.6663f, 13.470648f, -49.497906f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-138.0897f, 21.879826f, -144.57791f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-138.0897f, 21.879826f, -144.57791f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-89.6808f, 24.953402f, -138.54071f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-89.6808f, 24.953402f, -138.54071f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-16.652283f, 41.37599f, -145.70506f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-16.652283f, 41.37599f, -145.70506f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-77.90129f, 41.37599f, -209.40958f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1038753u, new Vector3(-77.90129f, 41.37599f, -209.40958f), 962) { - NpcWaitDistance = 1f, - Sprint = false, Comment = "Should auto-trigger the next step once Alisaie is here" }; obj47.Steps = list75; reference56 = obj47; - ref QuestSequence reference57 = ref span27[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -285722,28 +344664,36 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1038688u, new Vector3(-69.5354f, 18.043928f, -321.40082f), 962); + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038688u, new Vector3(-69.5354f, 18.043928f, -321.40082f), 962); obj48.Steps = list76; reference57 = obj48; - span27[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference58 = ref span27[5]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span29 = CollectionsMarshal.AsSpan(list77); - span29[0] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); - span29[1] = new QuestStep(EInteractionType.Interact, 1037473u, new Vector3(-27.17633f, 170.40298f, -722.46893f), 956); - span29[2] = new QuestStep(EInteractionType.Interact, 1037472u, new Vector3(-74.69299f, 170.403f, -755.67255f), 956); + index2 = 3; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037473u, new Vector3(-27.17633f, 170.40298f, -722.46893f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037472u, new Vector3(-74.69299f, 170.403f, -755.67255f), 956); obj49.Steps = list77; reference58 = obj49; - ref QuestSequence reference59 = ref span27[6]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -285751,7 +344701,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); obj50.Steps = list78; reference59 = obj50; questRoot8.QuestSequence = list72; @@ -285761,24 +344713,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot9.Author = list79; - num = 9; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span30 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference60 = ref span30[0]; + index = 9; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); obj51.Steps = list81; reference60 = obj51; - ref QuestSequence reference61 = ref span30[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -285786,32 +344744,40 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); obj52.Steps = list82; reference61 = obj52; - ref QuestSequence reference62 = ref span30[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list83)[0]; + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 14024u; + index3 = 1; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + span5 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span5[num3] = 14024u; obj54.KillEnemyDataIds = list84; reference63 = obj54; obj53.Steps = list83; reference62 = obj53; - ref QuestSequence reference64 = ref span30[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -285819,18 +344785,23 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956); obj55.Steps = list85; reference64 = obj55; - ref QuestSequence reference65 = ref span30[4]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list86)[0]; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) { StopDistance = 1f, @@ -285839,14 +344810,17 @@ public static class AssemblyQuestLoader num3 = 2; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span31 = CollectionsMarshal.AsSpan(list87); - span31[0] = 14023u; - span31[1] = 14022u; + span5 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span5[index3] = 14023u; + index3++; + span5[index3] = 14022u; obj57.KillEnemyDataIds = list87; reference66 = obj57; obj56.Steps = list86; reference65 = obj56; - ref QuestSequence reference67 = ref span30[5]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 5 @@ -285854,28 +344828,35 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.UseItem, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) { ItemId = 2003129u }; obj58.Steps = list88; reference67 = obj58; - ref QuestSequence reference68 = ref span30[6]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 6 }; - num2 = 4; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span32 = CollectionsMarshal.AsSpan(list89); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.61905f, 182.78828f, -704.0299f), 956); - span32[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011980u, new Vector3(346.51697f, 209.3385f, -767.7577f), 956) + index2 = 4; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.61905f, 182.78828f, -704.0299f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011980u, new Vector3(346.51697f, 209.3385f, -767.7577f), 956) { AetherCurrentId = 2818314u }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(280.38452f, 216.34708f, -823.3921f), 956); - span32[3] = new QuestStep(EInteractionType.UseItem, 1038701u, new Vector3(280.38452f, 216.34708f, -823.3921f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(280.38452f, 216.34708f, -823.3921f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1038701u, new Vector3(280.38452f, 216.34708f, -823.3921f), 956) { DelaySecondsAtStart = 2f, Mount = false, @@ -285883,7 +344864,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list89; reference68 = obj59; - ref QuestSequence reference69 = ref span30[7]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 7 @@ -285891,20 +344873,25 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1038757u, new Vector3(-1.9074707f, 170.403f, -751.5221f), 956); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038757u, new Vector3(-1.9074707f, 170.403f, -751.5221f), 956); obj60.Steps = list90; reference69 = obj60; - ref QuestSequence reference70 = ref span30[8]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span33 = CollectionsMarshal.AsSpan(list91); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(254.80028f, 163.44171f, -626.4951f), 956); - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(254.80028f, 163.44171f, -626.4951f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); obj61.Steps = list91; reference70 = obj61; questRoot9.QuestSequence = list80; @@ -285914,13 +344901,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "liza"; questRoot10.Author = list92; - num = 7; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span34 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference71 = ref span34[0]; + index = 7; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -285928,26 +344918,32 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); obj62.Steps = list94; reference71 = obj62; - ref QuestSequence reference72 = ref span34[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - Span span35 = CollectionsMarshal.AsSpan(list95); - span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) + index2 = 2; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) { Aetheryte = EAetheryteLocation.LabyrinthosArcheion }; - span35[1] = new QuestStep(EInteractionType.Interact, 1037475u, new Vector3(379.14087f, 170.1f, -410.97125f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037475u, new Vector3(379.14087f, 170.1f, -410.97125f), 956); obj63.Steps = list95; reference72 = obj63; - ref QuestSequence reference73 = ref span34[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -285955,49 +344951,67 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1038712u, new Vector3(415.8236f, 166.41167f, -451.10248f), 956); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038712u, new Vector3(415.8236f, 166.41167f, -451.10248f), 956); obj64.Steps = list96; reference73 = obj64; - ref QuestSequence reference74 = ref span34[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span36 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference75 = ref span36[0]; + index2 = 2; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference75 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1038714u, new Vector3(383.01672f, 166.19273f, -464.7746f), 956); - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span37 = CollectionsMarshal.AsSpan(list98); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + span6 = CollectionsMarshal.AsSpan(list98); + 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); questStep10.CompletionQuestVariablesFlags = list98; reference75 = questStep10; - ref QuestStep reference76 = ref span36[1]; + num2++; + ref QuestStep reference76 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1038716u, new Vector3(468.10095f, 166.2036f, -458.2132f), 956); num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span38 = CollectionsMarshal.AsSpan(list99); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list99; reference76 = questStep11; obj65.Steps = list97; reference74 = obj65; - ref QuestSequence reference77 = ref span34[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -286005,24 +345019,30 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1038717u, new Vector3(579.91907f, 168.84044f, -517.3572f), 956); + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038717u, new Vector3(579.91907f, 168.84044f, -517.3572f), 956); obj66.Steps = list100; reference77 = obj66; - ref QuestSequence reference78 = ref span34[5]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Snipe, 2011839u, new Vector3(576.8367f, 168.99365f, -519.18823f), 956) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2011839u, new Vector3(576.8367f, 168.99365f, -519.18823f), 956) { Comment = "Shoot Large Green Bird" }; obj67.Steps = list101; reference78 = obj67; - ref QuestSequence reference79 = ref span34[6]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -286030,7 +345050,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038718u, new Vector3(644.9835f, 185.14716f, -130.23578f), 956); + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038718u, new Vector3(644.9835f, 185.14716f, -130.23578f), 956); obj68.Steps = list102; reference79 = obj68; questRoot10.QuestSequence = list93; @@ -286040,24 +345062,30 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "liza"; questRoot11.Author = list103; - num = 8; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span39 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference80 = ref span39[0]; + index = 8; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038719u, new Vector3(646.3264f, 185.07715f, -131.97534f), 956); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038719u, new Vector3(646.3264f, 185.07715f, -131.97534f), 956); obj69.Steps = list105; reference80 = obj69; - ref QuestSequence reference81 = ref span39[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -286065,34 +345093,42 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span40 = CollectionsMarshal.AsSpan(list106); - span40[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011981u, new Vector3(748.53125f, 106.7063f, 66.75818f), 956) + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011981u, new Vector3(748.53125f, 106.7063f, 66.75818f), 956) { AetherCurrentId = 2818315u }; - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(760.1999f, 145.74788f, -52.025288f), 956); - ref QuestStep reference82 = ref span40[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(760.1999f, 145.74788f, -52.025288f), 956); + index2++; + ref QuestStep reference82 = ref span3[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2011840u, new Vector3(828.33594f, 147.8446f, -72.22095f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = 14020u; + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = 14020u; obj71.KillEnemyDataIds = list107; reference82 = obj71; obj70.Steps = list106; reference81 = obj70; - ref QuestSequence reference83 = ref span39[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list108)[0]; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011841u, new Vector3(813.6262f, 158.64807f, 126.57361f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -286100,12 +345136,15 @@ public static class AssemblyQuestLoader num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 14021u; + span5 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span5[index3] = 14021u; obj73.KillEnemyDataIds = list109; reference84 = obj73; obj72.Steps = list108; reference83 = obj72; - ref QuestSequence reference85 = ref span39[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -286113,26 +345152,32 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1038722u, new Vector3(621.3015f, 97.13325f, 182.17737f), 956); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038722u, new Vector3(621.3015f, 97.13325f, 182.17737f), 956); obj74.Steps = list110; reference85 = obj74; - ref QuestSequence reference86 = ref span39[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span41 = CollectionsMarshal.AsSpan(list111); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.16574f, 83.132675f, 74.693695f), 956) + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.16574f, 83.132675f, 74.693695f), 956) { Comment = "Avoids aggroing some enemies on the hill" }; - span41[1] = new QuestStep(EInteractionType.Interact, 2011842u, new Vector3(492.1797f, 64.86609f, -44.571655f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011842u, new Vector3(492.1797f, 64.86609f, -44.571655f), 956); obj75.Steps = list111; reference86 = obj75; - ref QuestSequence reference87 = ref span39[5]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -286140,63 +345185,88 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span42 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference88 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference88 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span43 = CollectionsMarshal.AsSpan(list113); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span6 = CollectionsMarshal.AsSpan(list113); + 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); questStep12.CompletionQuestVariablesFlags = list113; reference88 = questStep12; - ref QuestStep reference89 = ref span42[1]; + index2++; + ref QuestStep reference89 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1038707u, new Vector3(455.80212f, 65.16199f, -150.04199f), 956); num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span44 = CollectionsMarshal.AsSpan(list114); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list114; reference89 = questStep13; - ref QuestStep reference90 = ref span42[2]; + index2++; + ref QuestStep reference90 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1038708u, new Vector3(408.31604f, 65.3329f, -130.11371f), 956); - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span45 = CollectionsMarshal.AsSpan(list115); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + span6 = CollectionsMarshal.AsSpan(list115); + 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); questStep14.CompletionQuestVariablesFlags = list115; reference90 = questStep14; obj76.Steps = list112; reference87 = obj76; - ref QuestSequence reference91 = ref span39[6]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 2011843u, new Vector3(312.64197f, 97.3678f, -257.34344f), 956); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011843u, new Vector3(312.64197f, 97.3678f, -257.34344f), 956); obj77.Steps = list116; reference91 = obj77; - ref QuestSequence reference92 = ref span39[7]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -286204,7 +345274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038732u, new Vector3(321.43127f, 97.50893f, -279.92682f), 956) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038732u, new Vector3(321.43127f, 97.50893f, -279.92682f), 956) { StopDistance = 5f }; @@ -286217,27 +345289,33 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot12.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span46 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference93 = ref span46[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038731u, new Vector3(324.84924f, 97.07327f, -282.21564f), 956) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038731u, new Vector3(324.84924f, 97.07327f, -282.21564f), 956) { StopDistance = 5f }; obj79.Steps = list120; reference93 = obj79; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -286245,27 +345323,33 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span47 = CollectionsMarshal.AsSpan(list121); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(304.306f, 84.01365f, -292.01114f), 956) + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(304.306f, 84.01365f, -292.01114f), 956) { DisableNavmesh = true, Mount = true }; - span47[1] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); obj80.Steps = list121; reference94 = obj80; - ref QuestSequence reference95 = ref span46[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1038738u, new Vector3(177.05042f, 56.567654f, -409.41486f), 956); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038738u, new Vector3(177.05042f, 56.567654f, -409.41486f), 956); obj81.Steps = list122; reference95 = obj81; - ref QuestSequence reference96 = ref span46[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -286273,21 +345357,26 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.15488f, 81.17488f, -534.99316f), 956) + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.15488f, 81.17488f, -534.99316f), 956) { StopDistance = 0.25f }; obj82.Steps = list123; reference96 = obj82; - ref QuestSequence reference97 = ref span46[4]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038740u, new Vector3(-256.27533f, 79.75535f, -502.12863f), 956); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038740u, new Vector3(-256.27533f, 79.75535f, -502.12863f), 956); obj83.Steps = list124; reference97 = obj83; questRoot12.QuestSequence = list119; @@ -286297,13 +345386,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot13.Author = list125; - num = 4; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span48 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference98 = ref span48[0]; + index = 4; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -286311,21 +345403,27 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038741u, new Vector3(-257.9538f, 79.7362f, -502.06763f), 956); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038741u, new Vector3(-257.9538f, 79.7362f, -502.06763f), 956); obj84.Steps = list127; reference98 = obj84; - ref QuestSequence reference99 = ref span48[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); obj85.Steps = list128; reference99 = obj85; - ref QuestSequence reference100 = ref span48[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -286333,23 +345431,28 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span49 = CollectionsMarshal.AsSpan(list129); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.34096f, 71.49686f, -241.08495f), 956) + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.34096f, 71.49686f, -241.08495f), 956) { Comment = "Needed for Navmesh" }; - span49[1] = new QuestStep(EInteractionType.Interact, 1038744u, new Vector3(315.4497f, 96.90322f, -259.23553f), 956); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038744u, new Vector3(315.4497f, 96.90322f, -259.23553f), 956); obj86.Steps = list129; reference100 = obj86; - ref QuestSequence reference101 = ref span48[3]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038747u, new Vector3(-1.6022339f, 41.37599f, -141.16125f), 962) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038747u, new Vector3(-1.6022339f, 41.37599f, -141.16125f), 962) { StopDistance = 5f }; @@ -286362,13 +345465,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "liza"; questRoot14.Author = list131; - num = 6; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span50 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference102 = ref span50[0]; + index = 6; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -286376,27 +345482,33 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) { StopDistance = 5f }; obj88.Steps = list133; reference102 = obj88; - ref QuestSequence reference103 = ref span50[1]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1038745u, new Vector3(1.663208f, 41.37599f, -141.00867f), 962) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038745u, new Vector3(1.663208f, 41.37599f, -141.00867f), 962) { StopDistance = 5f }; obj89.Steps = list134; reference103 = obj89; - ref QuestSequence reference104 = ref span50[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -286404,21 +345516,26 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) { StopDistance = 5f }; obj90.Steps = list135; reference104 = obj90; - ref QuestSequence reference105 = ref span50[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1040284u, new Vector3(219.22632f, 25.041138f, -160.60126f), 962) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040284u, new Vector3(219.22632f, 25.041138f, -160.60126f), 962) { AethernetShortcut = new AethernetShortcut { @@ -286428,7 +345545,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list136; reference105 = obj91; - ref QuestSequence reference106 = ref span50[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 4 @@ -286436,19 +345554,23 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1040285u, new Vector3(222.03394f, 21.878136f, -120.43945f), 962); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040285u, new Vector3(222.03394f, 21.878136f, -120.43945f), 962); obj92.Steps = list137; reference106 = obj92; - ref QuestSequence reference107 = ref span50[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span51 = CollectionsMarshal.AsSpan(list138); - span51[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AethernetShortcut = new AethernetShortcut @@ -286457,7 +345579,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987); obj93.Steps = list138; reference107 = obj93; questRoot14.QuestSequence = list132; @@ -286467,13 +345590,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot15.Author = list139; - num = 8; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span52 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference108 = ref span52[0]; + index = 8; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -286481,26 +345607,32 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041250u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041250u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); obj94.Steps = list141; reference108 = obj94; - ref QuestSequence reference109 = ref span52[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span53 = CollectionsMarshal.AsSpan(list142); - span53[0] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) { TargetTerritoryId = (ushort)962 }; - span53[1] = new QuestStep(EInteractionType.Interact, 1038592u, new Vector3(-83.05487f, 6.6169996f, -39.383606f), 962); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038592u, new Vector3(-83.05487f, 6.6169996f, -39.383606f), 962); obj95.Steps = list142; reference109 = obj95; - ref QuestSequence reference110 = ref span52[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -286508,21 +345640,27 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 2011947u, new Vector3(-15.4574585f, 2.7922974f, -8.98761f), 962); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011947u, new Vector3(-15.4574585f, 2.7922974f, -8.98761f), 962); obj96.Steps = list143; reference110 = obj96; - ref QuestSequence reference111 = ref span52[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957); obj97.Steps = list144; reference111 = obj97; - ref QuestSequence reference112 = ref span52[4]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -286530,27 +345668,33 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) { DisableNavmesh = true }; obj98.Steps = list145; reference112 = obj98; - ref QuestSequence reference113 = ref span52[5]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Emote, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) { Emote = EEmote.Deny }; obj99.Steps = list146; reference113 = obj99; - ref QuestSequence reference114 = ref span52[6]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 @@ -286558,18 +345702,23 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1038598u, new Vector3(187.42651f, 9.9744425f, 592.2178f), 957); + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038598u, new Vector3(187.42651f, 9.9744425f, 592.2178f), 957); obj100.Steps = list147; reference114 = obj100; - ref QuestSequence reference115 = ref span52[7]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038597u, new Vector3(189.25769f, 9.9744425f, 590.0206f), 957); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038597u, new Vector3(189.25769f, 9.9744425f, 590.0206f), 957); obj101.Steps = list148; reference115 = obj101; questRoot15.QuestSequence = list140; @@ -286579,13 +345728,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "liza"; questRoot16.Author = list149; - num = 4; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span54 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference116 = ref span54[0]; + index = 4; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -286593,34 +345745,44 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038600u, new Vector3(189.92896f, 9.9744425f, 589.89844f), 957); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038600u, new Vector3(189.92896f, 9.9744425f, 589.89844f), 957); obj102.Steps = list151; reference116 = obj102; - ref QuestSequence reference117 = ref span54[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span55 = CollectionsMarshal.AsSpan(list152); - span55[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) + index2 = 6; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) { StopDistance = 5f, Aetheryte = EAetheryteLocation.ThavnairYedlihmad }; - span55[1] = new QuestStep(EInteractionType.Interact, 2011948u, new Vector3(204.66919f, 2.243042f, 715.4192f), 957); - span55[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); - span55[3] = new QuestStep(EInteractionType.Interact, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011948u, new Vector3(204.66919f, 2.243042f, 715.4192f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; - span55[4] = new QuestStep(EInteractionType.Interact, 2011949u, new Vector3(200f, 1.7547607f, 768.9784f), 957); - span55[5] = new QuestStep(EInteractionType.Interact, 1037623u, new Vector3(220.78271f, 1.8349868f, 759.4263f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011949u, new Vector3(200f, 1.7547607f, 768.9784f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037623u, new Vector3(220.78271f, 1.8349868f, 759.4263f), 957); obj103.Steps = list152; reference117 = obj103; - ref QuestSequence reference118 = ref span54[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -286628,28 +345790,34 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span56 = CollectionsMarshal.AsSpan(list153); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(223.328f, -0.6f, 752.7248f), 957) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(223.328f, -0.6f, 752.7248f), 957) { DisableNavmesh = true, Sprint = true }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.03053f, 0.7659681f, 732.0563f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.03053f, 0.7659681f, 732.0563f), 957) { DisableNavmesh = true }; - span56[2] = new QuestStep(EInteractionType.Interact, 1038606u, new Vector3(277.72937f, 2.9636285f, 703.7003f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038606u, new Vector3(277.72937f, 2.9636285f, 703.7003f), 957); obj104.Steps = list153; reference118 = obj104; - ref QuestSequence reference119 = ref span54[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj105.Steps = list154; reference119 = obj105; questRoot16.QuestSequence = list150; @@ -286659,13 +345827,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot17.Author = list155; - num = 7; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span57 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference120 = ref span57[0]; + index = 7; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -286673,21 +345844,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj106.Steps = list157; reference120 = obj106; - ref QuestSequence reference121 = ref span57[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj107.Steps = list158; reference121 = obj107; - ref QuestSequence reference122 = ref span57[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -286695,25 +345872,30 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list159)[0]; + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957); num3 = 3; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span58 = CollectionsMarshal.AsSpan(list160); - span58[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q2_000_086"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A2_000_088") }; - span58[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q3_000_096"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A3_000_098") }; - span58[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q5_000_106"), @@ -286723,36 +345905,43 @@ public static class AssemblyQuestLoader reference123 = questStep15; obj108.Steps = list159; reference122 = obj108; - ref QuestSequence reference124 = ref span57[3]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span59 = CollectionsMarshal.AsSpan(list161); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9156f, 4.763735f, 657.83264f), 957); - span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.03275f, 4.763736f, 658.2807f), 957); - ref QuestStep reference125 = ref span59[2]; + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9156f, 4.763735f, 657.83264f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.03275f, 4.763736f, 658.2807f), 957); + num2++; + ref QuestStep reference125 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1037626u, new Vector3(166.61316f, 4.763736f, 681.7273f), 957); - num3 = 3; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span60 = CollectionsMarshal.AsSpan(list162); - span60[0] = new DialogueChoice + index3 = 3; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + span4 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q6_000_147"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A6_000_149") }; - span60[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q7_000_157"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A7_000_158") }; - span60[2] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q8_000_162"), @@ -286762,7 +345951,8 @@ public static class AssemblyQuestLoader reference125 = questStep16; obj109.Steps = list161; reference124 = obj109; - ref QuestSequence reference126 = ref span57[4]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -286770,25 +345960,30 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list163)[0]; + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference127 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1037624u, new Vector3(213.91614f, 15.136713f, 517.72327f), 957); num3 = 3; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span61 = CollectionsMarshal.AsSpan(list164); - span61[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q9_000_198"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A9_000_200") }; - span61[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q10_000_207"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A10_000_209") }; - span61[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q11_000_216"), @@ -286798,21 +345993,25 @@ public static class AssemblyQuestLoader reference127 = questStep17; obj110.Steps = list163; reference126 = obj110; - ref QuestSequence reference128 = ref span57[5]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(199.48804f, 1.769943f, 738.9843f), 957) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(199.48804f, 1.769943f, 738.9843f), 957) { StopDistance = 0.25f }; obj111.Steps = list165; reference128 = obj111; - ref QuestSequence reference129 = ref span57[6]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -286820,7 +346019,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038609u, new Vector3(199.35901f, 5.873753f, 612.787f), 957); + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038609u, new Vector3(199.35901f, 5.873753f, 612.787f), 957); obj112.Steps = list166; reference129 = obj112; questRoot17.QuestSequence = list156; @@ -286830,27 +346031,33 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "liza"; questRoot18.Author = list167; - num = 8; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span62 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference130 = ref span62[0]; + index = 8; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038611u, new Vector3(201.86157f, 5.880045f, 612.02405f), 957) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038611u, new Vector3(201.86157f, 5.880045f, 612.02405f), 957) { StopDistance = 5f }; obj113.Steps = list169; reference130 = obj113; - ref QuestSequence reference131 = ref span62[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -286858,13 +346065,16 @@ public static class AssemblyQuestLoader num2 = 2; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span63 = CollectionsMarshal.AsSpan(list170); - ref QuestStep reference132 = ref span63[0]; + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + ref QuestStep reference132 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.AcceptQuest, 1041331u, new Vector3(202.4414f, 1.769943f, 727.7484f), 957); - num3 = 1; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = new DialogueChoice + index3 = 1; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + span4 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/044/AktKza201_04489", @@ -286874,21 +346084,26 @@ public static class AssemblyQuestLoader questStep18.DialogueChoices = list171; questStep18.PickUpQuestId = new QuestId(4489); reference132 = questStep18; - span63[1] = new QuestStep(EInteractionType.Interact, 2011951u, new Vector3(105.1499f, 7.7667847f, 581.5061f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011951u, new Vector3(105.1499f, 7.7667847f, 581.5061f), 957); obj114.Steps = list170; reference131 = obj114; - ref QuestSequence reference133 = ref span62[2]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 2011952u, new Vector3(-13.290649f, 32.333862f, 499.07666f), 957); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011952u, new Vector3(-13.290649f, 32.333862f, 499.07666f), 957); obj115.Steps = list172; reference133 = obj115; - ref QuestSequence reference134 = ref span62[3]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -286896,7 +346111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list173)[0]; + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957) { StopDistance = 0.25f, @@ -286905,23 +346122,29 @@ public static class AssemblyQuestLoader num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = 14006u; + span5 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span5[index3] = 14006u; obj117.KillEnemyDataIds = list174; reference135 = obj117; obj116.Steps = list173; reference134 = obj116; - ref QuestSequence reference136 = ref span62[4]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957); obj118.Steps = list175; reference136 = obj118; - ref QuestSequence reference137 = ref span62[5]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -286929,28 +346152,34 @@ public static class AssemblyQuestLoader num2 = 2; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span64 = CollectionsMarshal.AsSpan(list176); - span64[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011990u, new Vector3(-176.10437f, 21.530457f, 537.8346f), 957) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011990u, new Vector3(-176.10437f, 21.530457f, 537.8346f), 957) { AetherCurrentId = 2818329u }; - span64[1] = new QuestStep(EInteractionType.Interact, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj119.Steps = list176; reference137 = obj119; - ref QuestSequence reference138 = ref span62[6]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span65 = CollectionsMarshal.AsSpan(list177); - span65[0] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957); - span65[1] = new QuestStep(EInteractionType.Interact, 1037645u, new Vector3(-271.0155f, 0.7022661f, 588.8303f), 957); + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037645u, new Vector3(-271.0155f, 0.7022661f, 588.8303f), 957); obj120.Steps = list177; reference138 = obj120; - ref QuestSequence reference139 = ref span62[7]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -286958,7 +346187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj121.Steps = list178; reference139 = obj121; questRoot18.QuestSequence = list168; @@ -286968,24 +346199,30 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; questRoot19.Author = list179; - num = 10; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span66 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference140 = ref span66[0]; + index = 10; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj122.Steps = list181; reference140 = obj122; - ref QuestSequence reference141 = ref span66[1]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -286993,27 +346230,33 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1038620u, new Vector3(-477.68372f, 5.0817194f, 19.21106f), 957); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038620u, new Vector3(-477.68372f, 5.0817194f, 19.21106f), 957); obj123.Steps = list182; reference141 = obj123; - ref QuestSequence reference142 = ref span66[2]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span67 = CollectionsMarshal.AsSpan(list183); - span67[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) { StopDistance = 5f, Aetheryte = EAetheryteLocation.ThavnairGreatWork }; - span67[1] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); obj124.Steps = list183; reference142 = obj124; - ref QuestSequence reference143 = ref span66[3]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 @@ -287021,35 +346264,43 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj125.Steps = list184; reference143 = obj125; - ref QuestSequence reference144 = ref span66[4]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span68 = CollectionsMarshal.AsSpan(list185); - span68[0] = new QuestStep(EInteractionType.Interact, 1038636u, new Vector3(-485.70996f, 49.103825f, 152.91064f), 957) + index2 = 4; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038636u, new Vector3(-485.70996f, 49.103825f, 152.91064f), 957) { StopDistance = 5f }; - span68[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) { StopDistance = 4f }; - span68[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-436.3368f, 38.647118f, 166.13683f), 957); - span68[3] = new QuestStep(EInteractionType.WalkTo, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-436.3368f, 38.647118f, 166.13683f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj126.Steps = list185; reference144 = obj126; - ref QuestSequence reference145 = ref span66[5]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 5 @@ -287057,52 +346308,62 @@ public static class AssemblyQuestLoader num2 = 4; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span69 = CollectionsMarshal.AsSpan(list186); - span69[0] = new QuestStep(EInteractionType.Interact, 1041219u, new Vector3(-425.43683f, 38.413155f, 160.11292f), 957) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041219u, new Vector3(-425.43683f, 38.413155f, 160.11292f), 957) { StopDistance = 5f }; - span69[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041219u, new Vector3(-419.6078f, 43.950115f, 87.3025f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041219u, new Vector3(-419.6078f, 43.950115f, 87.3025f), 957) { StopDistance = 4f }; - span69[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.35034f, 46.160213f, 93.2392f), 957); - span69[3] = new QuestStep(EInteractionType.WalkTo, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.35034f, 46.160213f, 93.2392f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj127.Steps = list186; reference145 = obj127; - ref QuestSequence reference146 = ref span66[6]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 6 }; - num2 = 4; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span70 = CollectionsMarshal.AsSpan(list187); - span70[0] = new QuestStep(EInteractionType.Interact, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) + index2 = 4; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) { StopDistance = 5f }; - span70[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041220u, new Vector3(-444.7032f, 49.551f, 97.1969f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041220u, new Vector3(-444.7032f, 49.551f, 97.1969f), 957) { StopDistance = 4f }; - span70[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-433.19608f, 46.94587f, 93.295135f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-433.19608f, 46.94587f, 93.295135f), 957) { StopDistance = 0.35f }; - span70[3] = new QuestStep(EInteractionType.WalkTo, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj128.Steps = list187; reference146 = obj128; - ref QuestSequence reference147 = ref span66[7]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 7 @@ -287110,38 +346371,46 @@ public static class AssemblyQuestLoader num2 = 4; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span71 = CollectionsMarshal.AsSpan(list188); - span71[0] = new QuestStep(EInteractionType.Interact, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) { StopDistance = 5f }; - span71[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041221u, new Vector3(-484.5909f, 54.18516f, 128.3601f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041221u, new Vector3(-484.5909f, 54.18516f, 128.3601f), 957) { StopDistance = 4f }; - span71[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-472.65085f, 53.779083f, 124.34451f), 957); - span71[3] = new QuestStep(EInteractionType.WalkTo, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-472.65085f, 53.779083f, 124.34451f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj129.Steps = list188; reference147 = obj129; - ref QuestSequence reference148 = ref span66[8]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) { StopDistance = 5f }; obj130.Steps = list189; reference148 = obj130; - ref QuestSequence reference149 = ref span66[9]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -287149,7 +346418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj131.Steps = list190; reference149 = obj131; questRoot19.QuestSequence = list180; @@ -287159,24 +346430,30 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "liza"; questRoot20.Author = list191; - num = 7; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span72 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference150 = ref span72[0]; + index = 7; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj132.Steps = list193; reference150 = obj132; - ref QuestSequence reference151 = ref span72[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -287184,31 +346461,39 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list194)[0]; + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + ref QuestStep reference152 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = 14004u; + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + span5 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span5[num3] = 14004u; obj134.KillEnemyDataIds = list195; reference152 = obj134; obj133.Steps = list194; reference151 = obj133; - ref QuestSequence reference153 = ref span72[2]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957); obj135.Steps = list196; reference153 = obj135; - ref QuestSequence reference154 = ref span72[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -287216,21 +346501,27 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1038639u, new Vector3(-15.030151f, 84.48873f, -71.000244f), 957); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038639u, new Vector3(-15.030151f, 84.48873f, -71.000244f), 957); obj136.Steps = list197; reference154 = obj136; - ref QuestSequence reference155 = ref span72[4]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 2011954u, new Vector3(31.60144f, 90.22656f, -154.65027f), 957); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011954u, new Vector3(31.60144f, 90.22656f, -154.65027f), 957); obj137.Steps = list198; reference155 = obj137; - ref QuestSequence reference156 = ref span72[5]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 5 @@ -287238,18 +346529,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1038641u, new Vector3(34.62268f, 90.26942f, -159.80774f), 957); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038641u, new Vector3(34.62268f, 90.26942f, -159.80774f), 957); obj138.Steps = list199; reference156 = obj138; - ref QuestSequence reference157 = ref span72[6]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -287262,13 +346558,16 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "liza"; questRoot21.Author = list201; - num = 8; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span73 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference158 = ref span73[0]; + index = 8; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -287276,26 +346575,32 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); obj140.Steps = list203; reference158 = obj140; - ref QuestSequence reference159 = ref span73[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span74 = CollectionsMarshal.AsSpan(list204); - span74[0] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) + index2 = 2; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { PickUpQuestId = new QuestId(4203) }; - span74[1] = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); obj141.Steps = list204; reference159 = obj141; - ref QuestSequence reference160 = ref span73[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 @@ -287303,12 +346608,16 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list205)[0]; + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA118_04374_Q1_000_041") @@ -287317,21 +346626,26 @@ public static class AssemblyQuestLoader reference161 = questStep19; obj142.Steps = list205; reference160 = obj142; - ref QuestSequence reference162 = ref span73[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span75 = CollectionsMarshal.AsSpan(list207); - span75[0] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); - span75[1] = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957); - span75[2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); + index2 = 3; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); obj143.Steps = list207; reference162 = obj143; - ref QuestSequence reference163 = ref span73[4]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 4 @@ -287339,23 +346653,30 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1038645u, new Vector3(-549.24854f, 9.817465f, -563.04266f), 957); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038645u, new Vector3(-549.24854f, 9.817465f, -563.04266f), 957); obj144.Steps = list208; reference163 = obj144; - ref QuestSequence reference164 = ref span73[5]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list209)[0]; + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1038648u, new Vector3(-557.641f, 9.672808f, -555.04694f), 957); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span4 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA118_04374_Q2_000_141") @@ -287364,7 +346685,8 @@ public static class AssemblyQuestLoader reference165 = questStep20; obj145.Steps = list209; reference164 = obj145; - ref QuestSequence reference166 = ref span73[6]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 6 @@ -287372,21 +346694,26 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.68971f, 88.84356f, -608.6588f), 957) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.68971f, 88.84356f, -608.6588f), 957) { StopDistance = 0.25f }; obj146.Steps = list211; reference166 = obj146; - ref QuestSequence reference167 = ref span73[7]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); obj147.Steps = list212; reference167 = obj147; questRoot21.QuestSequence = list202; @@ -287396,13 +346723,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "liza"; questRoot22.Author = list213; - num = 5; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span76 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference168 = ref span76[0]; + index = 5; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -287410,32 +346740,40 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); obj148.Steps = list215; reference168 = obj148; - ref QuestSequence reference169 = ref span76[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span77 = CollectionsMarshal.AsSpan(list216); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.02301f, 95.24942f, -697.3925f), 957); - span77[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.47051f, 99.96379f, -711.17303f), 957); - span77[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011991u, new Vector3(-49.271423f, 94.0719f, -710.7805f), 957) + index2 = 4; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.02301f, 95.24942f, -697.3925f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.47051f, 99.96379f, -711.17303f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011991u, new Vector3(-49.271423f, 94.0719f, -710.7805f), 957) { DisableNavmesh = true, AetherCurrentId = 2818330u }; - span77[3] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj149.Steps = list216; reference169 = obj149; - ref QuestSequence reference170 = ref span76[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -287443,12 +346781,16 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list217)[0]; + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + ref QuestStep reference171 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1038651u, new Vector3(-699.67194f, -0.06901036f, -565.0569f), 957); num3 = 1; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA119_04375_Q1_000_056") @@ -287457,21 +346799,25 @@ public static class AssemblyQuestLoader reference171 = questStep21; obj150.Steps = list217; reference170 = obj150; - ref QuestSequence reference172 = ref span76[3]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1038652u, new Vector3(-704.09705f, -0.090369135f, -562.4323f), 957) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038652u, new Vector3(-704.09705f, -0.090369135f, -562.4323f), 957) { StopDistance = 6f }; obj151.Steps = list219; reference172 = obj151; - ref QuestSequence reference173 = ref span76[4]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -287479,7 +346825,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -287492,24 +346840,30 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list221); + index = 0; + span[index] = "liza"; questRoot23.Author = list221; - num = 4; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span78 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference174 = ref span78[0]; + index = 4; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + span2 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957); + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957); obj153.Steps = list223; reference174 = obj153; - ref QuestSequence reference175 = ref span78[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -287517,21 +346871,27 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1038656u, new Vector3(203.96729f, 60.34319f, -595.8496f), 957); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038656u, new Vector3(203.96729f, 60.34319f, -595.8496f), 957); obj154.Steps = list224; reference175 = obj154; - ref QuestSequence reference176 = ref span78[2]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1038657u, new Vector3(201.98364f, 60.34776f, -594.0185f), 957); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038657u, new Vector3(201.98364f, 60.34776f, -594.0185f), 957); obj155.Steps = list225; reference176 = obj155; - ref QuestSequence reference177 = ref span78[3]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -287539,8 +346899,9 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span79 = CollectionsMarshal.AsSpan(list226); - span79[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -287550,7 +346911,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1038589u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038589u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); obj156.Steps = list226; reference177 = obj156; questRoot23.QuestSequence = list222; @@ -287560,27 +346922,33 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "liza"; questRoot24.Author = list227; - num = 6; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span80 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference178 = ref span80[0]; + index = 6; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987) { StopDistance = 5f }; obj157.Steps = list229; reference178 = obj157; - ref QuestSequence reference179 = ref span80[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -287588,24 +346956,30 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957) + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj158.Steps = list230; reference179 = obj158; - ref QuestSequence reference180 = ref span80[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 2011956u, new Vector3(-632.04395f, -0.015319824f, -659.6018f), 957); + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011956u, new Vector3(-632.04395f, -0.015319824f, -659.6018f), 957); obj159.Steps = list231; reference180 = obj159; - ref QuestSequence reference181 = ref span80[3]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -287613,7 +346987,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 957) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 957) { DutyOptions = new DutyOptions { @@ -287623,19 +346999,23 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference181 = obj160; - span80[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference182 = ref span80[5]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); obj161.Steps = list233; reference182 = obj161; questRoot24.QuestSequence = list228; @@ -287645,13 +347025,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "liza"; questRoot25.Author = list234; - num = 8; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span81 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference183 = ref span81[0]; + index = 8; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -287659,21 +347042,27 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); obj162.Steps = list236; reference183 = obj162; - ref QuestSequence reference184 = ref span81[1]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1040283u, new Vector3(210.31506f, 60.712387f, -600.76294f), 957); + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040283u, new Vector3(210.31506f, 60.712387f, -600.76294f), 957); obj163.Steps = list237; reference184 = obj163; - ref QuestSequence reference185 = ref span81[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -287681,29 +347070,35 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1040255u, new Vector3(57.26709f, -27.000013f, 177.5387f), 963) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040255u, new Vector3(57.26709f, -27.000013f, 177.5387f), 963) { StopDistance = 5f }; obj164.Steps = list238; reference185 = obj164; - ref QuestSequence reference186 = ref span81[3]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span82 = CollectionsMarshal.AsSpan(list239); - span82[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2 = 2; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAlzadaalsPeace }; - span82[1] = new QuestStep(EInteractionType.Interact, 1040256u, new Vector3(-4.135254f, -1.9999973f, 85.40466f), 963); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040256u, new Vector3(-4.135254f, -1.9999973f, 85.40466f), 963); obj165.Steps = list239; reference186 = obj165; - ref QuestSequence reference187 = ref span81[4]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -287711,21 +347106,27 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1040257u, new Vector3(-99.3515f, 20f, 110.52112f), 963); + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040257u, new Vector3(-99.3515f, 20f, 110.52112f), 963); obj166.Steps = list240; reference187 = obj166; - ref QuestSequence reference188 = ref span81[5]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1040258u, new Vector3(-149.43164f, 27.999998f, 171.12988f), 963); + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040258u, new Vector3(-149.43164f, 27.999998f, 171.12988f), 963); obj167.Steps = list241; reference188 = obj167; - ref QuestSequence reference189 = ref span81[6]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -287733,27 +347134,33 @@ public static class AssemblyQuestLoader num2 = 3; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span83 = CollectionsMarshal.AsSpan(list242); - span83[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAirship }; - span83[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMeghaduta }; - span83[2] = new QuestStep(EInteractionType.Interact, 1040259u, new Vector3(-341.93945f, 55f, -70.603516f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040259u, new Vector3(-341.93945f, 55f, -70.603516f), 963); obj168.Steps = list242; reference189 = obj168; - ref QuestSequence reference190 = ref span81[7]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040260u, new Vector3(-377.27936f, 45.00252f, -28.610718f), 963); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040260u, new Vector3(-377.27936f, 45.00252f, -28.610718f), 963); obj169.Steps = list243; reference190 = obj169; questRoot25.QuestSequence = list235; @@ -287763,13 +347170,16 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "liza"; questRoot26.Author = list244; - num = 7; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span84 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference191 = ref span84[0]; + index = 7; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + span2 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -287777,21 +347187,27 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040261u, new Vector3(-377.61505f, 45.002518f, -29.922974f), 963); + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040261u, new Vector3(-377.61505f, 45.002518f, -29.922974f), 963); obj170.Steps = list246; reference191 = obj170; - ref QuestSequence reference192 = ref span84[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1040262u, new Vector3(-237.01843f, 36f, 58.976074f), 963); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040262u, new Vector3(-237.01843f, 36f, 58.976074f), 963); obj171.Steps = list247; reference192 = obj171; - ref QuestSequence reference193 = ref span84[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -287799,26 +347215,32 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span85 = CollectionsMarshal.AsSpan(list248); - span85[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanRuveydahFibers }; - span85[1] = new QuestStep(EInteractionType.Interact, 1040264u, new Vector3(-106.49274f, 30.999998f, -14.54187f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040264u, new Vector3(-106.49274f, 30.999998f, -14.54187f), 963); obj172.Steps = list248; reference193 = obj172; - ref QuestSequence reference194 = ref span84[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1040266u, new Vector3(3.982544f, -2.9207662E-05f, 0.99176025f), 963); + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040266u, new Vector3(3.982544f, -2.9207662E-05f, 0.99176025f), 963); obj173.Steps = list249; reference194 = obj173; - ref QuestSequence reference195 = ref span84[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -287826,23 +347248,28 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1040268u, new Vector3(87.5105f, 1.8631812f, -121.41614f), 963); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040268u, new Vector3(87.5105f, 1.8631812f, -121.41614f), 963); obj174.Steps = list250; reference195 = obj174; - ref QuestSequence reference196 = ref span84[5]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - Span span86 = CollectionsMarshal.AsSpan(list251); - span86[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2 = 2; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHighCrucible }; - span86[1] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -287853,7 +347280,8 @@ public static class AssemblyQuestLoader }; obj175.Steps = list251; reference196 = obj175; - ref QuestSequence reference197 = ref span84[6]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -287861,15 +347289,19 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list252)[0]; + span3 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference198 = ref span3[index2]; QuestStep obj177 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 6f }; - num3 = 1; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = new DialogueChoice + index3 = 1; + List list253 = new List(index3); + CollectionsMarshal.SetCount(list253, index3); + span4 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA123_04379_Q1_000_163") @@ -287885,24 +347317,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "liza"; questRoot27.Author = list254; - num = 7; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span87 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference199 = ref span87[0]; + index = 7; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038769u, new Vector3(-88.700745f, 3.8989394f, 0.8086548f), 962); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038769u, new Vector3(-88.700745f, 3.8989394f, 0.8086548f), 962); obj178.Steps = list256; reference199 = obj178; - ref QuestSequence reference200 = ref span87[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -287910,18 +347348,23 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1038771u, new Vector3(-107.49988f, 3.8006456f, 26.29126f), 962); + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038771u, new Vector3(-107.49988f, 3.8006456f, 26.29126f), 962); obj179.Steps = list257; reference200 = obj179; - ref QuestSequence reference201 = ref span87[2]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1038773u, new Vector3(-280.232f, 20f, -67.36859f), 962) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038773u, new Vector3(-280.232f, 20f, -67.36859f), 962) { AethernetShortcut = new AethernetShortcut { @@ -287931,7 +347374,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list258; reference201 = obj180; - ref QuestSequence reference202 = ref span87[3]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -287939,24 +347383,30 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1038776u, new Vector3(-310.78058f, 20.0375f, -92.82062f), 962); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038776u, new Vector3(-310.78058f, 20.0375f, -92.82062f), 962); obj181.Steps = list259; reference202 = obj181; - ref QuestSequence reference203 = ref span87[4]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962) { StopDistance = 5f }; obj182.Steps = list260; reference203 = obj182; - ref QuestSequence reference204 = ref span87[5]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -287964,18 +347414,23 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1038760u, new Vector3(-298.5733f, 22.423145f, -149.67578f), 962); + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038760u, new Vector3(-298.5733f, 22.423145f, -149.67578f), 962); obj183.Steps = list261; reference204 = obj183; - ref QuestSequence reference205 = ref span87[6]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038780u, new Vector3(-394.91876f, 20.8f, -107.927124f), 962); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038780u, new Vector3(-394.91876f, 20.8f, -107.927124f), 962); obj184.Steps = list262; reference205 = obj184; questRoot27.QuestSequence = list255; @@ -287985,13 +347440,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot28.Author = list263; - num = 4; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span88 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference206 = ref span88[0]; + index = 4; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 0 @@ -287999,19 +347457,23 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038781u, new Vector3(-393.2403f, 20.8f, -105.760315f), 962); + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038781u, new Vector3(-393.2403f, 20.8f, -105.760315f), 962); obj185.Steps = list265; reference206 = obj185; - ref QuestSequence reference207 = ref span88[1]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span89 = CollectionsMarshal.AsSpan(list266); - span89[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AethernetShortcut = new AethernetShortcut @@ -288020,10 +347482,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span89[1] = new QuestStep(EInteractionType.Interact, 1038784u, new Vector3(-0.22894287f, 1.9073486E-06f, -11.12384f), 987); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038784u, new Vector3(-0.22894287f, 1.9073486E-06f, -11.12384f), 987); obj186.Steps = list266; reference207 = obj186; - ref QuestSequence reference208 = ref span88[2]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 @@ -288031,7 +347495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list267)[0]; + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -288039,7 +347505,9 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB102_04381_Q1_000_067") @@ -288048,15 +347516,18 @@ public static class AssemblyQuestLoader reference209 = obj188; obj187.Steps = list267; reference208 = obj187; - ref QuestSequence reference210 = ref span88[3]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038796u, new Vector3(745.9678f, 69.999954f, 525.2003f), 621) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038796u, new Vector3(745.9678f, 69.999954f, 525.2003f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -288070,13 +347541,16 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list270); + index = 0; + span[index] = "liza"; questRoot29.Author = list270; - num = 6; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span90 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference211 = ref span90[0]; + index = 6; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + span2 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -288084,29 +347558,36 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038802u, new Vector3(746.63916f, 69.999954f, 523.39966f), 621) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038802u, new Vector3(746.63916f, 69.999954f, 523.39966f), 621) { StopDistance = 5f }; obj190.Steps = list272; reference211 = obj190; - ref QuestSequence reference212 = ref span90[1]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list273)[0]; + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference213 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { StopDistance = 7f }; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new DialogueChoice + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + span4 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB103_04382_Q1_000_052") @@ -288115,7 +347596,8 @@ public static class AssemblyQuestLoader reference213 = obj192; obj191.Steps = list273; reference212 = obj191; - ref QuestSequence reference214 = ref span90[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -288123,19 +347605,23 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1038804u, new Vector3(251.81958f, 121.999985f, -360.586f), 737); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038804u, new Vector3(251.81958f, 121.999985f, -360.586f), 737); obj193.Steps = list275; reference214 = obj193; - ref QuestSequence reference215 = ref span90[3]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span91 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference216 = ref span91[0]; + index2 = 5; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference216 = ref span3[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1038811u, new Vector3(244.31213f, 122f, -362.96637f), 737) { StopDistance = 7f, @@ -288144,34 +347630,48 @@ public static class AssemblyQuestLoader num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span92 = CollectionsMarshal.AsSpan(list277); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj195.CompletionQuestVariablesFlags = list277; reference216 = obj195; - ref QuestStep reference217 = ref span91[1]; + num2++; + ref QuestStep reference217 = ref span3[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1038812u, new Vector3(245.77698f, 122f, -366.47595f), 737) { StopDistance = 7f, Comment = "Sicard" }; - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span93 = CollectionsMarshal.AsSpan(list278); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + span6 = CollectionsMarshal.AsSpan(list278); + 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); obj196.CompletionQuestVariablesFlags = list278; reference217 = obj196; - ref QuestStep reference218 = ref span91[2]; + num2++; + ref QuestStep reference218 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1038813u, new Vector3(250.78198f, 122f, -366.84216f), 737) { StopDistance = 7f, @@ -288180,34 +347680,48 @@ public static class AssemblyQuestLoader num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span94 = CollectionsMarshal.AsSpan(list279); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj197.CompletionQuestVariablesFlags = list279; reference218 = obj197; - ref QuestStep reference219 = ref span91[3]; + num2++; + ref QuestStep reference219 = ref span3[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1038814u, new Vector3(251.23975f, 122f, -363.9124f), 737) { StopDistance = 7f, Comment = "Lucia" }; - num3 = 6; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span95 = CollectionsMarshal.AsSpan(list280); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + span6 = CollectionsMarshal.AsSpan(list280); + 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); obj198.CompletionQuestVariablesFlags = list280; reference219 = obj198; - ref QuestStep reference220 = ref span91[4]; + num2++; + ref QuestStep reference220 = ref span3[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1038815u, new Vector3(250.17163f, 122f, -352.34613f), 737) { StopDistance = 7f, @@ -288216,18 +347730,25 @@ public static class AssemblyQuestLoader num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span96 = CollectionsMarshal.AsSpan(list281); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list281; reference220 = obj199; obj194.Steps = list276; reference215 = obj194; - ref QuestSequence reference221 = ref span90[4]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -288235,21 +347756,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1038816u, new Vector3(254.23047f, 122f, -364.9806f), 737) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038816u, new Vector3(254.23047f, 122f, -364.9806f), 737) { StopDistance = 7f }; obj200.Steps = list282; reference221 = obj200; - ref QuestSequence reference222 = ref span90[5]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038817u, new Vector3(756.31335f, 69.9999f, 534.3251f), 621) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038817u, new Vector3(756.31335f, 69.9999f, 534.3251f), 621) { StopDistance = 7f }; @@ -288262,13 +347788,16 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "liza"; questRoot30.Author = list284; - num = 8; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span97 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference223 = ref span97[0]; + index = 8; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -288276,40 +347805,49 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038824u, new Vector3(750.97266f, 69.99991f, 534.78296f), 621); + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038824u, new Vector3(750.97266f, 69.99991f, 534.78296f), 621); obj202.Steps = list286; reference223 = obj202; - ref QuestSequence reference224 = ref span97[1]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list287)[0]; + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + ref QuestStep reference225 = ref span3[num2]; QuestStep obj204 = new QuestStep(EInteractionType.SinglePlayerDuty, 1038825u, new Vector3(742.5803f, 69.99999f, 539.6046f), 621) { Comment = "A Frosty Reception" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = "(Thancred) How many enemies get pulled during the stealth section is random; if you pull multiple you can die here. Can probably be fixed by retrying on very easy."; + index3 = 1; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + span = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span[num3] = "(Thancred) How many enemies get pulled during the stealth section is random; if you pull multiple you can die here. Can probably be fixed by retrying on very easy."; singlePlayerDutyOptions.Notes = list288; obj204.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 2; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span98 = CollectionsMarshal.AsSpan(list289); - span98[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list289); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef(264u), Answer = new ExcelRef(267u) }; - span98[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef(268u) @@ -288318,11 +347856,13 @@ public static class AssemblyQuestLoader reference225 = obj204; obj203.Steps = list287; reference224 = obj203; - span97[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference226 = ref span97[3]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 3 @@ -288330,27 +347870,33 @@ public static class AssemblyQuestLoader num2 = 2; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span99 = CollectionsMarshal.AsSpan(list290); - span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) { StopDistance = 7f, Aetheryte = EAetheryteLocation.GarlemaldCampBrokenGlass }; - span99[1] = new QuestStep(EInteractionType.Interact, 1038826u, new Vector3(-399.31335f, 22.03761f, 454.45935f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038826u, new Vector3(-399.31335f, 22.03761f, 454.45935f), 958); obj205.Steps = list290; reference226 = obj205; - ref QuestSequence reference227 = ref span97[4]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1038836u, new Vector3(-439.9939f, 22.000002f, 497.79492f), 958); + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038836u, new Vector3(-439.9939f, 22.000002f, 497.79492f), 958); obj206.Steps = list291; reference227 = obj206; - ref QuestSequence reference228 = ref span97[5]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 5 @@ -288358,24 +347904,30 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1038835u, new Vector3(-366.17078f, 22f, 514.4884f), 958); + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038835u, new Vector3(-366.17078f, 22f, 514.4884f), 958); obj207.Steps = list292; reference228 = obj207; - ref QuestSequence reference229 = ref span97[6]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1038828u, new Vector3(-334.5846f, 23.803606f, 404.65393f), 958) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038828u, new Vector3(-334.5846f, 23.803606f, 404.65393f), 958) { StopDistance = 7f }; obj208.Steps = list293; reference229 = obj208; - ref QuestSequence reference230 = ref span97[7]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -288383,7 +347935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038837u, new Vector3(-353.41425f, 22.717295f, 435.62976f), 958) + span3 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038837u, new Vector3(-353.41425f, 22.717295f, 435.62976f), 958) { StopDistance = 5f }; @@ -288396,27 +347950,33 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; questRoot31.Author = list295; - num = 8; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span100 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference231 = ref span100[0]; + index = 8; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038839u, new Vector3(-350.1488f, 22.738518f, 435.56873f), 958) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038839u, new Vector3(-350.1488f, 22.738518f, 435.56873f), 958) { StopDistance = 7f }; obj210.Steps = list297; reference231 = obj210; - ref QuestSequence reference232 = ref span100[1]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -288424,43 +347984,52 @@ public static class AssemblyQuestLoader num2 = 4; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span101 = CollectionsMarshal.AsSpan(list298); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-210.6673f, 15.799101f, 451.78333f), 958); - span101[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012000u, new Vector3(-184.22223f, 31.937134f, 423.6056f), 958) + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-210.6673f, 15.799101f, 451.78333f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012000u, new Vector3(-184.22223f, 31.937134f, 423.6056f), 958) { StopDistance = 5f, DisableNavmesh = true, AetherCurrentId = 2818344u }; - span101[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-188.84349f, 20.31553f, 406.13293f), 958) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-188.84349f, 20.31553f, 406.13293f), 958) { StopDistance = 1f, DisableNavmesh = true, Mount = true }; - span101[3] = new QuestStep(EInteractionType.Interact, 1038840u, new Vector3(-157.06122f, 18.316332f, 364.06494f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038840u, new Vector3(-157.06122f, 18.316332f, 364.06494f), 958); obj211.Steps = list298; reference232 = obj211; - ref QuestSequence reference233 = ref span100[2]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span102 = CollectionsMarshal.AsSpan(list299); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-135.94785f, 3.426586f, 360.1115f), 958) + index2 = 3; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-135.94785f, 3.426586f, 360.1115f), 958) { StopDistance = 1f, DisableNavmesh = true, Mount = true }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.166317f, -0.8113563f, 374.09103f), 958); - span102[2] = new QuestStep(EInteractionType.Interact, 2012076u, new Vector3(-31.265808f, -0.25946045f, 362.81372f), 958); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.166317f, -0.8113563f, 374.09103f), 958); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012076u, new Vector3(-31.265808f, -0.25946045f, 362.81372f), 958); obj212.Steps = list299; reference233 = obj212; - ref QuestSequence reference234 = ref span100[3]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -288468,21 +348037,27 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2012077u, new Vector3(36.942017f, -12.039368f, 362.2339f), 958); + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012077u, new Vector3(36.942017f, -12.039368f, 362.2339f), 958); obj213.Steps = list300; reference234 = obj213; - ref QuestSequence reference235 = ref span100[4]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1038843u, new Vector3(66.84973f, -14.344919f, 385.7328f), 958); + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038843u, new Vector3(66.84973f, -14.344919f, 385.7328f), 958); obj214.Steps = list301; reference235 = obj214; - ref QuestSequence reference236 = ref span100[5]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 5 @@ -288490,22 +348065,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) { Comment = "Follow Girl in Green" }; obj215.Steps = list302; reference236 = obj215; - ref QuestSequence reference237 = ref span100[6]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 6 }; - num2 = 13; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span103 = CollectionsMarshal.AsSpan(list303); - ref QuestStep reference238 = ref span103[0]; + index2 = 13; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + ref QuestStep reference238 = ref span3[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) { Comment = "retry point", @@ -288517,96 +348096,111 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = new DialogueChoice + index3 = 1; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + span4 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB105_04384_Q1_000_116") }; obj217.DialogueChoices = list304; reference238 = obj217; - span103[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(156.66682f, -18.078814f, 361.58972f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(156.66682f, -18.078814f, 361.58972f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(204.82344f, -19.113703f, 373.52936f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(204.82344f, -19.113703f, 373.52936f), 958) { DelaySecondsAtStart = 1f, Mount = false, Sprint = false }; - span103[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(232.28406f, -16.777779f, 339.1168f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(232.28406f, -16.777779f, 339.1168f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.79572f, -13.174152f, 317.53406f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.79572f, -13.174152f, 317.53406f), 958) { DelaySecondsAtStart = 8f, Mount = false, Sprint = false }; - span103[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(287.9112f, -11.811615f, 292.6589f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(287.9112f, -11.811615f, 292.6589f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.9364f, -10.539692f, 254.19264f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.9364f, -10.539692f, 254.19264f), 958) { Mount = false, Sprint = false }; - span103[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(354.5913f, -5.5008125f, 245.22939f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(354.5913f, -5.5008125f, 245.22939f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(354.71964f, -2.2201555f, 233.99152f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(354.71964f, -2.2201555f, 233.99152f), 958) { DelaySecondsAtStart = 1f, Mount = false, Sprint = false }; - span103[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(382.75116f, 2.7549856f, 226.49387f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(382.75116f, 2.7549856f, 226.49387f), 958) { StopDistance = 40f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[10] = new QuestStep(EInteractionType.WalkTo, 1038845u, new Vector3(408.44272f, 4.965298f, 208.22794f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1038845u, new Vector3(408.44272f, 4.965298f, 208.22794f), 958) { StopDistance = 45f, Mount = false, Sprint = false, IgnoreDistanceToObject = true }; - span103[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(426.39246f, 5.348692f, 194.86263f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(426.39246f, 5.348692f, 194.86263f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[12] = new QuestStep(EInteractionType.WalkTo, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958) { Mount = false, RestartNavigationIfCancelled = false }; obj216.Steps = list303; reference237 = obj216; - ref QuestSequence reference239 = ref span100[7]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -288614,7 +348208,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958); + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958); obj218.Steps = list305; reference239 = obj218; questRoot31.QuestSequence = list296; @@ -288624,27 +348220,33 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "liza"; questRoot32.Author = list306; - num = 9; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span104 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference240 = ref span104[0]; + index = 9; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958) { StopDistance = 5f }; obj219.Steps = list308; reference240 = obj219; - ref QuestSequence reference241 = ref span104[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -288652,24 +348254,30 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1038849u, new Vector3(588.464f, 38.372063f, 216.6018f), 958); + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038849u, new Vector3(588.464f, 38.372063f, 216.6018f), 958); obj220.Steps = list309; reference241 = obj220; - ref QuestSequence reference242 = ref span104[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1038850u, new Vector3(589.8069f, 38.372063f, 217.54773f), 958) + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038850u, new Vector3(589.8069f, 38.372063f, 217.54773f), 958) { StopDistance = 5f }; obj221.Steps = list310; reference242 = obj221; - ref QuestSequence reference243 = ref span104[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 @@ -288677,27 +348285,33 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1038851u, new Vector3(591.33276f, 38.372063f, 214.55713f), 958) + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038851u, new Vector3(591.33276f, 38.372063f, 214.55713f), 958) { StopDistance = 5f }; obj222.Steps = list311; reference243 = obj222; - ref QuestSequence reference244 = ref span104[4]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1038852u, new Vector3(585.046f, 38.372063f, 216.05249f), 958) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038852u, new Vector3(585.046f, 38.372063f, 216.05249f), 958) { StopDistance = 5f }; obj223.Steps = list312; reference244 = obj223; - ref QuestSequence reference245 = ref span104[5]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 @@ -288705,23 +348319,28 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958); + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958); obj224.Steps = list313; reference245 = obj224; - ref QuestSequence reference246 = ref span104[6]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - Span span105 = CollectionsMarshal.AsSpan(list314); - span105[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012001u, new Vector3(194.81189f, -12.863403f, 644.28174f), 958) + index2 = 2; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012001u, new Vector3(194.81189f, -12.863403f, 644.28174f), 958) { AetherCurrentId = 2818345u }; - ref QuestStep reference247 = ref span105[1]; + num2++; + ref QuestStep reference247 = ref span3[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, 1038853u, new Vector3(156.75586f, -14.955569f, 623.22424f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -288729,14 +348348,17 @@ public static class AssemblyQuestLoader num3 = 2; List list315 = new List(num3); CollectionsMarshal.SetCount(list315, num3); - Span span106 = CollectionsMarshal.AsSpan(list315); - span106[0] = 14085u; - span106[1] = 14086u; + span5 = CollectionsMarshal.AsSpan(list315); + index3 = 0; + span5[index3] = 14085u; + index3++; + span5[index3] = 14086u; obj226.KillEnemyDataIds = list315; reference247 = obj226; obj225.Steps = list314; reference246 = obj225; - ref QuestSequence reference248 = ref span104[7]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 7 @@ -288744,22 +348366,27 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) { Mount = false, RestartNavigationIfCancelled = false }; obj227.Steps = list316; reference248 = obj227; - ref QuestSequence reference249 = ref span104[8]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038856u, new Vector3(137.65161f, -13.278784f, 648.249f), 958) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038856u, new Vector3(137.65161f, -13.278784f, 648.249f), 958) { StopDistance = 5f }; @@ -288772,13 +348399,16 @@ public static class AssemblyQuestLoader num = 1; List list318 = new List(num); CollectionsMarshal.SetCount(list318, num); - CollectionsMarshal.AsSpan(list318)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list318); + index = 0; + span[index] = "liza"; questRoot33.Author = list318; - num = 8; - List list319 = new List(num); - CollectionsMarshal.SetCount(list319, num); - Span span107 = CollectionsMarshal.AsSpan(list319); - ref QuestSequence reference250 = ref span107[0]; + index = 8; + List list319 = new List(index); + CollectionsMarshal.SetCount(list319, index); + span2 = CollectionsMarshal.AsSpan(list319); + num = 0; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -288786,24 +348416,30 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) + span3 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) { StopDistance = 5f }; obj229.Steps = list320; reference250 = obj229; - ref QuestSequence reference251 = ref span107[1]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1038857u, new Vector3(559.0753f, 32.322315f, 159.4414f), 958); + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038857u, new Vector3(559.0753f, 32.322315f, 159.4414f), 958); obj230.Steps = list321; reference251 = obj230; - ref QuestSequence reference252 = ref span107[2]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 2 @@ -288811,21 +348447,27 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1038858u, new Vector3(596.5818f, 32.318665f, 138.8418f), 958); + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038858u, new Vector3(596.5818f, 32.318665f, 138.8418f), 958); obj231.Steps = list322; reference252 = obj231; - ref QuestSequence reference253 = ref span107[3]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1038862u, new Vector3(504.96667f, 19.447378f, 175.73816f), 958); + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038862u, new Vector3(504.96667f, 19.447378f, 175.73816f), 958); obj232.Steps = list323; reference253 = obj232; - ref QuestSequence reference254 = ref span107[4]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 4 @@ -288833,21 +348475,27 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1038863u, new Vector3(310.71948f, -16.262552f, 357.01526f), 958); + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038863u, new Vector3(310.71948f, -16.262552f, 357.01526f), 958); obj233.Steps = list324; reference254 = obj233; - ref QuestSequence reference255 = ref span107[5]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 2012083u, new Vector3(429.86182f, -17.410583f, 543.6942f), 958); + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012083u, new Vector3(429.86182f, -17.410583f, 543.6942f), 958); obj234.Steps = list325; reference255 = obj234; - ref QuestSequence reference256 = ref span107[6]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 6 @@ -288855,18 +348503,23 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1038865u, new Vector3(583.85596f, -15.842519f, 625.63513f), 958); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038865u, new Vector3(583.85596f, -15.842519f, 625.63513f), 958); obj235.Steps = list326; reference256 = obj235; - ref QuestSequence reference257 = ref span107[7]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038867u, new Vector3(605.9509f, 34.7239f, 202.47192f), 958); + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038867u, new Vector3(605.9509f, 34.7239f, 202.47192f), 958); obj236.Steps = list327; reference257 = obj236; questRoot33.QuestSequence = list319; @@ -288876,13 +348529,16 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - CollectionsMarshal.AsSpan(list328)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list328); + index = 0; + span[index] = "liza"; questRoot34.Author = list328; - num = 7; - List list329 = new List(num); - CollectionsMarshal.SetCount(list329, num); - Span span108 = CollectionsMarshal.AsSpan(list329); - ref QuestSequence reference258 = ref span108[0]; + index = 7; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + span2 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -288890,25 +348546,31 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038868u, new Vector3(605.9204f, 34.7239f, 201.09851f), 958); + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038868u, new Vector3(605.9204f, 34.7239f, 201.09851f), 958); obj237.Steps = list330; reference258 = obj237; - ref QuestSequence reference259 = ref span108[1]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Interact, 1039864u, new Vector3(-334.12683f, 23.803606f, 405.2644f), 958) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039864u, new Vector3(-334.12683f, 23.803606f, 405.2644f), 958) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj238.Steps = list331; reference259 = obj238; - ref QuestSequence reference260 = ref span108[2]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -288916,27 +348578,33 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1039870u, new Vector3(-358.14453f, 22.554066f, 430.01453f), 958) + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039870u, new Vector3(-358.14453f, 22.554066f, 430.01453f), 958) { StopDistance = 5f }; obj239.Steps = list332; reference260 = obj239; - ref QuestSequence reference261 = ref span108[3]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1039878u, new Vector3(-362.1729f, 22.071072f, 434.01233f), 958) + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039878u, new Vector3(-362.1729f, 22.071072f, 434.01233f), 958) { StopDistance = 7f }; obj240.Steps = list333; reference261 = obj240; - ref QuestSequence reference262 = ref span108[4]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -288944,15 +348612,19 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list334)[0]; + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + ref QuestStep reference263 = ref span3[index2]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(-308.36963f, 22.468344f, 365.7129f), 958) { Comment = "Follow Alphinaud and Alisaie" }; - num3 = 1; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = new DialogueChoice + index3 = 1; + List list335 = new List(index3); + CollectionsMarshal.SetCount(list335, index3); + span4 = CollectionsMarshal.AsSpan(list335); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB108_04387_Q1_000_161") @@ -288961,39 +348633,45 @@ public static class AssemblyQuestLoader reference263 = obj242; obj241.Steps = list334; reference262 = obj241; - ref QuestSequence reference264 = ref span108[5]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span109 = CollectionsMarshal.AsSpan(list336); - span109[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-286.71664f, 5.6315875f, 264.1926f), 958) + index2 = 4; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-286.71664f, 5.6315875f, 264.1926f), 958) { NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span109[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-126.2175f, 0.18809877f, 233.39058f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-126.2175f, 0.18809877f, 233.39058f), 958) { NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span109[2] = new QuestStep(EInteractionType.WalkTo, 1039882u, new Vector3(67.2465f, 0.33215836f, 149.8282f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1039882u, new Vector3(67.2465f, 0.33215836f, 149.8282f), 958) { Mount = false, Sprint = false }; - span109[3] = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(66.50907f, 0.26087344f, 149.46323f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(66.50907f, 0.26087344f, 149.46323f), 958) { StopDistance = 1f }; obj243.Steps = list336; reference264 = obj243; - ref QuestSequence reference265 = ref span108[6]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue @@ -289001,7 +348679,9 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) { StopDistance = 5f }; @@ -289014,27 +348694,33 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "liza"; questRoot35.Author = list338; - num = 12; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span110 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference266 = ref span110[0]; + index = 12; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) { StopDistance = 5f }; obj245.Steps = list340; reference266 = obj245; - ref QuestSequence reference267 = ref span110[1]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 @@ -289042,7 +348728,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list341)[0]; + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + ref QuestStep reference268 = ref span3[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.04597f, 0.96746624f, 103.04115f), 958) { StopDistance = 1f, @@ -289051,28 +348739,34 @@ public static class AssemblyQuestLoader num3 = 2; List list342 = new List(num3); CollectionsMarshal.SetCount(list342, num3); - Span span111 = CollectionsMarshal.AsSpan(list342); - span111[0] = 14083u; - span111[1] = 14084u; + span5 = CollectionsMarshal.AsSpan(list342); + index3 = 0; + span5[index3] = 14083u; + index3++; + span5[index3] = 14084u; obj247.KillEnemyDataIds = list342; reference268 = obj247; obj246.Steps = list341; reference267 = obj246; - ref QuestSequence reference269 = ref span110[2]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1038761u, new Vector3(169.2378f, 0.99992824f, 105.82129f), 958) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038761u, new Vector3(169.2378f, 0.99992824f, 105.82129f), 958) { StopDistance = 5f }; obj248.Steps = list343; reference269 = obj248; - ref QuestSequence reference270 = ref span110[3]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 3 @@ -289080,35 +348774,43 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - ref QuestStep reference271 = ref CollectionsMarshal.AsSpan(list344)[0]; + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + ref QuestStep reference271 = ref span3[index2]; QuestStep obj250 = new QuestStep(EInteractionType.Combat, null, new Vector3(301.11044f, 5.506278f, 78.14653f), 958) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list345 = new List(num3); - CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = 14082u; + index3 = 1; + List list345 = new List(index3); + CollectionsMarshal.SetCount(list345, index3); + span5 = CollectionsMarshal.AsSpan(list345); + num3 = 0; + span5[num3] = 14082u; obj250.KillEnemyDataIds = list345; reference271 = obj250; obj249.Steps = list344; reference270 = obj249; - ref QuestSequence reference272 = ref span110[4]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1038766u, new Vector3(301.19775f, 5.5300293f, 76.67651f), 958) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038766u, new Vector3(301.19775f, 5.5300293f, 76.67651f), 958) { StopDistance = 5f }; obj251.Steps = list346; reference272 = obj251; - ref QuestSequence reference273 = ref span110[5]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 5 @@ -289116,18 +348818,23 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1040164u, new Vector3(387.28918f, 3.8935592f, 71.97681f), 958); + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040164u, new Vector3(387.28918f, 3.8935592f, 71.97681f), 958); obj252.Steps = list347; reference273 = obj252; - ref QuestSequence reference274 = ref span110[6]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list348)[0]; + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + ref QuestStep reference275 = ref span3[num2]; QuestStep obj254 = new QuestStep(EInteractionType.Combat, null, new Vector3(527.62775f, 14.620869f, -164.97536f), 958) { StopDistance = 1f, @@ -289136,12 +348843,15 @@ public static class AssemblyQuestLoader num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = 14081u; + span5 = CollectionsMarshal.AsSpan(list349); + index3 = 0; + span5[index3] = 14081u; obj254.KillEnemyDataIds = list349; reference275 = obj254; obj253.Steps = list348; reference274 = obj253; - ref QuestSequence reference276 = ref span110[7]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 7 @@ -289149,24 +348859,30 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1040750u, new Vector3(526.9092f, 14.616225f, -162.85956f), 958) + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040750u, new Vector3(526.9092f, 14.616225f, -162.85956f), 958) { StopDistance = 5f }; obj255.Steps = list350; reference276 = obj255; - ref QuestSequence reference277 = ref span110[8]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1039886u, new Vector3(520.8667f, 10.800001f, -352.49866f), 958); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039886u, new Vector3(520.8667f, 10.800001f, -352.49866f), 958); obj256.Steps = list351; reference277 = obj256; - ref QuestSequence reference278 = ref span110[9]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 9 @@ -289174,21 +348890,27 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); obj257.Steps = list352; reference278 = obj257; - ref QuestSequence reference279 = ref span110[10]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1039890u, new Vector3(528.2825f, -36.65f, -251.48401f), 958); + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + span3 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039890u, new Vector3(528.2825f, -36.65f, -251.48401f), 958); obj258.Steps = list353; reference279 = obj258; - ref QuestSequence reference280 = ref span110[11]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -289196,7 +348918,9 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039892u, new Vector3(547.5393f, -35.24417f, -192.27899f), 958); + span3 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039892u, new Vector3(547.5393f, -35.24417f, -192.27899f), 958); obj259.Steps = list354; reference280 = obj259; questRoot35.QuestSequence = list339; @@ -289206,24 +348930,30 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list355); + index = 0; + span[index] = "liza"; questRoot36.Author = list355; - num = 6; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span112 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference281 = ref span112[0]; + index = 6; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + span2 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj260.Steps = list357; reference281 = obj260; - ref QuestSequence reference282 = ref span112[1]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -289231,25 +348961,33 @@ public static class AssemblyQuestLoader num2 = 6; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span113 = CollectionsMarshal.AsSpan(list358); - ref QuestStep reference283 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + ref QuestStep reference283 = ref span3[index2]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958) { Comment = "Caeso" }; - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span114 = CollectionsMarshal.AsSpan(list359); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list359 = new List(index3); + CollectionsMarshal.SetCount(list359, index3); + span6 = CollectionsMarshal.AsSpan(list359); + 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); obj262.CompletionQuestVariablesFlags = list359; reference283 = obj262; - ref QuestStep reference284 = ref span113[1]; + index2++; + ref QuestStep reference284 = ref span3[index2]; QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1037718u, new Vector3(512.62683f, -36.65f, -160.3266f), 958) { Comment = "Octavia" @@ -289257,34 +348995,48 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span115 = CollectionsMarshal.AsSpan(list360); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj263.CompletionQuestVariablesFlags = list360; reference284 = obj263; - ref QuestStep reference285 = ref span113[2]; + index2++; + ref QuestStep reference285 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.34732f, -36.65f, -178.38684f), 958); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span116 = CollectionsMarshal.AsSpan(list361); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list361 = new List(index3); + CollectionsMarshal.SetCount(list361, index3); + span6 = CollectionsMarshal.AsSpan(list361); + 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); skipStepConditions.CompletionQuestVariablesFlags = list361; skipConditions.StepIf = skipStepConditions; questStep22.SkipConditions = skipConditions; reference285 = questStep22; - ref QuestStep reference286 = ref span113[3]; + index2++; + ref QuestStep reference286 = ref span3[index2]; QuestStep obj264 = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958) { Comment = "Sabinianus" @@ -289292,33 +349044,47 @@ public static class AssemblyQuestLoader num3 = 6; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - Span span117 = CollectionsMarshal.AsSpan(list362); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list362); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj264.CompletionQuestVariablesFlags = list362; reference286 = obj264; - ref QuestStep reference287 = ref span113[4]; + index2++; + ref QuestStep reference287 = ref span3[index2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 1037717u, new Vector3(495.35352f, -36.06746f, -205.1576f), 958) { Comment = "Marcellinus" }; - num3 = 6; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - Span span118 = CollectionsMarshal.AsSpan(list363); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + span6 = CollectionsMarshal.AsSpan(list363); + 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); obj265.CompletionQuestVariablesFlags = list363; reference287 = obj265; - ref QuestStep reference288 = ref span113[5]; + index2++; + ref QuestStep reference288 = ref span3[index2]; QuestStep obj266 = new QuestStep(EInteractionType.Interact, 2012062u, new Vector3(512.1679f, -34.82775f, -201.7169f), 958) { Comment = "Magitek Radio" @@ -289326,29 +349092,39 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span119 = CollectionsMarshal.AsSpan(list364); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj266.CompletionQuestVariablesFlags = list364; reference288 = obj266; obj261.Steps = list358; reference282 = obj261; - ref QuestSequence reference289 = ref span112[2]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958); obj267.Steps = list365; reference289 = obj267; - ref QuestSequence reference290 = ref span112[3]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 3 @@ -289356,42 +349132,50 @@ public static class AssemblyQuestLoader num2 = 3; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span120 = CollectionsMarshal.AsSpan(list366); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.01605f, -36.61611f, -237.499f), 958) + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.01605f, -36.61611f, -237.499f), 958) { Mount = true }; - span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.66595f, -36.616203f, -244.51854f), 958) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.66595f, -36.616203f, -244.51854f), 958) { DisableNavmesh = true }; - span120[2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); obj268.Steps = list366; reference290 = obj268; - ref QuestSequence reference291 = ref span112[4]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - Span span121 = CollectionsMarshal.AsSpan(list367); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.021f, -36.616203f, -244.6051f), 958) + index2 = 3; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.021f, -36.616203f, -244.6051f), 958) { Mount = true }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.7444f, -36.61608f, -225.64955f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.7444f, -36.61608f, -225.64955f), 958) { DisableNavmesh = true }; - span121[2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958) { DisableNavmesh = true }; obj269.Steps = list367; reference291 = obj269; - ref QuestSequence reference292 = ref span112[5]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -289399,7 +349183,9 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj270.Steps = list368; reference292 = obj270; questRoot36.QuestSequence = list356; @@ -289409,24 +349195,30 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - CollectionsMarshal.AsSpan(list369)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list369); + index = 0; + span[index] = "liza"; questRoot37.Author = list369; - num = 7; - List list370 = new List(num); - CollectionsMarshal.SetCount(list370, num); - Span span122 = CollectionsMarshal.AsSpan(list370); - ref QuestSequence reference293 = ref span122[0]; + index = 7; + List list370 = new List(index); + CollectionsMarshal.SetCount(list370, index); + span2 = CollectionsMarshal.AsSpan(list370); + num = 0; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj271.Steps = list371; reference293 = obj271; - ref QuestSequence reference294 = ref span122[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -289434,35 +349226,46 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span123 = CollectionsMarshal.AsSpan(list372); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.7644f, -36.650005f, -228.76685f), 958); - span123[1] = new QuestStep(EInteractionType.Interact, 1039901u, new Vector3(408.65186f, 15.5581665f, -496.14713f), 958); + span3 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.7644f, -36.650005f, -228.76685f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039901u, new Vector3(408.65186f, 15.5581665f, -496.14713f), 958); obj272.Steps = list372; reference294 = obj272; - ref QuestSequence reference295 = ref span122[2]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span124 = CollectionsMarshal.AsSpan(list373); - ref QuestStep reference296 = ref span124[0]; + index2 = 5; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + span3 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref QuestStep reference296 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2012093u, new Vector3(381.73486f, 15.548889f, -503.2578f), 958); - num3 = 6; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - Span span125 = CollectionsMarshal.AsSpan(list374); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list374 = new List(index3); + CollectionsMarshal.SetCount(list374, index3); + span6 = CollectionsMarshal.AsSpan(list374); + 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); questStep23.CompletionQuestVariablesFlags = list374; reference296 = questStep23; - ref QuestStep reference297 = ref span124[1]; + num2++; + ref QuestStep reference297 = ref span3[num2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2012094u, new Vector3(381.64343f, 25.986084f, -503.19678f), 958) { Mount = true, @@ -289471,37 +349274,52 @@ public static class AssemblyQuestLoader num3 = 6; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - Span span126 = CollectionsMarshal.AsSpan(list375); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list375); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj274.CompletionQuestVariablesFlags = list375; reference297 = obj274; - span124[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012005u, new Vector3(382.1621f, 25.894531f, -482.20038f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012005u, new Vector3(382.1621f, 25.894531f, -482.20038f), 958) { AetherCurrentId = 2818349u }; - ref QuestStep reference298 = ref span124[3]; + num2++; + ref QuestStep reference298 = ref span3[num2]; QuestStep obj275 = new QuestStep(EInteractionType.Interact, 2012095u, new Vector3(423.1173f, 16.311829f, -570.3365f), 958) { Comment = "Warmachine Wreckage" }; - num3 = 6; - List list376 = new List(num3); - CollectionsMarshal.SetCount(list376, num3); - Span span127 = CollectionsMarshal.AsSpan(list376); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list376 = new List(index3); + CollectionsMarshal.SetCount(list376, index3); + span6 = CollectionsMarshal.AsSpan(list376); + 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); obj275.CompletionQuestVariablesFlags = list376; reference298 = obj275; - ref QuestStep reference299 = ref span124[4]; + num2++; + ref QuestStep reference299 = ref span3[num2]; QuestStep obj276 = new QuestStep(EInteractionType.Interact, 2012096u, new Vector3(381.9486f, 16.617004f, -635.33997f), 958) { Comment = "Children's Slide" @@ -289509,18 +349327,25 @@ public static class AssemblyQuestLoader num3 = 6; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - Span span128 = CollectionsMarshal.AsSpan(list377); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj276.CompletionQuestVariablesFlags = list377; reference299 = obj276; obj273.Steps = list373; reference295 = obj273; - ref QuestSequence reference300 = ref span122[3]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 3 @@ -289528,30 +349353,36 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj277.Steps = list378; reference300 = obj277; - ref QuestSequence reference301 = ref span122[4]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span129 = CollectionsMarshal.AsSpan(list379); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.73416f, 15.085039f, -614.55194f), 958) + index2 = 2; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + span3 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.73416f, 15.085039f, -614.55194f), 958) { DisableNavmesh = true, Mount = true }; - span129[1] = new QuestStep(EInteractionType.Interact, 2012100u, new Vector3(445.76172f, 15.487854f, -648.61523f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012100u, new Vector3(445.76172f, 15.487854f, -648.61523f), 958) { DisableNavmesh = true }; obj278.Steps = list379; reference301 = obj278; - ref QuestSequence reference302 = ref span122[5]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = 5 @@ -289559,18 +349390,23 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj279.Steps = list380; reference302 = obj279; - ref QuestSequence reference303 = ref span122[6]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj280.Steps = list381; reference303 = obj280; questRoot37.QuestSequence = list370; @@ -289580,13 +349416,16 @@ public static class AssemblyQuestLoader num = 1; List list382 = new List(num); CollectionsMarshal.SetCount(list382, num); - CollectionsMarshal.AsSpan(list382)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list382); + index = 0; + span[index] = "liza"; questRoot38.Author = list382; - num = 6; - List list383 = new List(num); - CollectionsMarshal.SetCount(list383, num); - Span span130 = CollectionsMarshal.AsSpan(list383); - ref QuestSequence reference304 = ref span130[0]; + index = 6; + List list383 = new List(index); + CollectionsMarshal.SetCount(list383, index); + span2 = CollectionsMarshal.AsSpan(list383); + num = 0; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 0 @@ -289594,24 +349433,30 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038789u, new Vector3(413.13794f, 16.102577f, -578.4848f), 958) + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038789u, new Vector3(413.13794f, 16.102577f, -578.4848f), 958) { StopDistance = 5f }; obj281.Steps = list384; reference304 = obj281; - ref QuestSequence reference305 = ref span130[1]; + num++; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); obj282.Steps = list385; reference305 = obj282; - ref QuestSequence reference306 = ref span130[2]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = 2 @@ -289619,24 +349464,30 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.UseItem, 2012101u, new Vector3(270.25244f, 10.452393f, -579.7666f), 958) + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2012101u, new Vector3(270.25244f, 10.452393f, -579.7666f), 958) { ItemId = 2003229u }; obj283.Steps = list386; reference306 = obj283; - ref QuestSequence reference307 = ref span130[3]; + num++; + ref QuestSequence reference307 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + span3 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); obj284.Steps = list387; reference307 = obj284; - ref QuestSequence reference308 = ref span130[4]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = 4 @@ -289644,18 +349495,23 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 2012106u, new Vector3(339.1621f, 10.788086f, -530.54095f), 958); + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012106u, new Vector3(339.1621f, 10.788086f, -530.54095f), 958); obj285.Steps = list388; reference308 = obj285; - ref QuestSequence reference309 = ref span130[5]; + num++; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + span3 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) { StopDistance = 5f }; @@ -289668,13 +349524,16 @@ public static class AssemblyQuestLoader num = 1; List list390 = new List(num); CollectionsMarshal.SetCount(list390, num); - CollectionsMarshal.AsSpan(list390)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list390); + index = 0; + span[index] = "liza"; questRoot39.Author = list390; - num = 5; - List list391 = new List(num); - CollectionsMarshal.SetCount(list391, num); - Span span131 = CollectionsMarshal.AsSpan(list391); - ref QuestSequence reference310 = ref span131[0]; + index = 5; + List list391 = new List(index); + CollectionsMarshal.SetCount(list391, index); + span2 = CollectionsMarshal.AsSpan(list391); + num = 0; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 0 @@ -289682,39 +349541,50 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) { StopDistance = 5f }; obj287.Steps = list392; reference310 = obj287; - ref QuestSequence reference311 = ref span131[1]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span132 = CollectionsMarshal.AsSpan(list393); - ref QuestStep reference312 = ref span132[0]; + index2 = 2; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + span3 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + ref QuestStep reference312 = ref span3[num2]; QuestStep obj289 = new QuestStep(EInteractionType.Interact, 1038790u, new Vector3(495.41467f, -36.06746f, -205.12708f), 958) { Comment = "Marcellinus" }; - num3 = 6; - List list394 = new List(num3); - CollectionsMarshal.SetCount(list394, num3); - Span span133 = CollectionsMarshal.AsSpan(list394); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list394 = new List(index3); + CollectionsMarshal.SetCount(list394, index3); + span6 = CollectionsMarshal.AsSpan(list394); + 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); obj289.CompletionQuestVariablesFlags = list394; reference312 = obj289; - ref QuestStep reference313 = ref span132[1]; + num2++; + ref QuestStep reference313 = ref span3[num2]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 1038791u, new Vector3(512.62683f, -36.65f, -160.3266f), 958) { Comment = "Octavia" @@ -289722,18 +349592,25 @@ public static class AssemblyQuestLoader num3 = 6; List list395 = new List(num3); CollectionsMarshal.SetCount(list395, num3); - Span span134 = CollectionsMarshal.AsSpan(list395); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list395); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj290.CompletionQuestVariablesFlags = list395; reference313 = obj290; obj288.Steps = list393; reference311 = obj288; - ref QuestSequence reference314 = ref span131[2]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 2 @@ -289741,12 +349618,16 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - ref QuestStep reference315 = ref CollectionsMarshal.AsSpan(list396)[0]; + span3 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + ref QuestStep reference315 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); - num3 = 1; - List list397 = new List(num3); - CollectionsMarshal.SetCount(list397, num3); - CollectionsMarshal.AsSpan(list397)[0] = new DialogueChoice + index3 = 1; + List list397 = new List(index3); + CollectionsMarshal.SetCount(list397, index3); + span4 = CollectionsMarshal.AsSpan(list397); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMB113_04392_Q1_000_031"), @@ -289756,20 +349637,25 @@ public static class AssemblyQuestLoader reference315 = questStep24; obj291.Steps = list396; reference314 = obj291; - ref QuestSequence reference316 = ref span131[3]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference317 = ref CollectionsMarshal.AsSpan(list398)[0]; + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + span3 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + ref QuestStep reference317 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2012107u, new Vector3(279.37744f, 10.8185425f, -232.98999f), 958); num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list399); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB113_04392_Q2_000_051") @@ -289778,7 +349664,8 @@ public static class AssemblyQuestLoader reference317 = questStep25; obj292.Steps = list398; reference316 = obj292; - ref QuestSequence reference318 = ref span131[4]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = byte.MaxValue @@ -289786,7 +349673,9 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); obj293.Steps = list400; reference318 = obj293; questRoot39.QuestSequence = list391; @@ -289796,24 +349685,30 @@ public static class AssemblyQuestLoader num = 1; List list401 = new List(num); CollectionsMarshal.SetCount(list401, num); - CollectionsMarshal.AsSpan(list401)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list401); + index = 0; + span[index] = "liza"; questRoot40.Author = list401; - num = 9; - List list402 = new List(num); - CollectionsMarshal.SetCount(list402, num); - Span span135 = CollectionsMarshal.AsSpan(list402); - ref QuestSequence reference319 = ref span135[0]; + index = 9; + List list402 = new List(index); + CollectionsMarshal.SetCount(list402, index); + span2 = CollectionsMarshal.AsSpan(list402); + num = 0; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list403 = new List(num2); - CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); + index2 = 1; + List list403 = new List(index2); + CollectionsMarshal.SetCount(list403, index2); + span3 = CollectionsMarshal.AsSpan(list403); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); obj294.Steps = list403; reference319 = obj294; - ref QuestSequence reference320 = ref span135[1]; + num++; + ref QuestSequence reference320 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 1 @@ -289821,26 +349716,32 @@ public static class AssemblyQuestLoader num2 = 2; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span136 = CollectionsMarshal.AsSpan(list404); - span136[0] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958) + span3 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958) { PickUpQuestId = new QuestId(4498) }; - span136[1] = new QuestStep(EInteractionType.Interact, 1039917u, new Vector3(495.50623f, 10.800001f, -425.2232f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039917u, new Vector3(495.50623f, 10.800001f, -425.2232f), 958); obj295.Steps = list404; reference320 = obj295; - ref QuestSequence reference321 = ref span135[2]; + num++; + ref QuestSequence reference321 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958); + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958); obj296.Steps = list405; reference321 = obj296; - ref QuestSequence reference322 = ref span135[3]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj297 = new QuestSequence { Sequence = 3 @@ -289848,28 +349749,34 @@ public static class AssemblyQuestLoader num2 = 2; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span137 = CollectionsMarshal.AsSpan(list406); - span137[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) { StopDistance = 7f, DisableNavmesh = true, Aetheryte = EAetheryteLocation.GarlemaldTertium }; - span137[1] = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958); obj297.Steps = list406; reference322 = obj297; - ref QuestSequence reference323 = ref span135[4]; + num++; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj298 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); obj298.Steps = list407; reference323 = obj298; - ref QuestSequence reference324 = ref span135[5]; + num++; + ref QuestSequence reference324 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 5 @@ -289877,19 +349784,23 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1039924u, new Vector3(547.5089f, -35.24417f, -192.73676f), 958); + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039924u, new Vector3(547.5089f, -35.24417f, -192.73676f), 958); obj299.Steps = list408; reference324 = obj299; - ref QuestSequence reference325 = ref span135[6]; + num++; + ref QuestSequence reference325 = ref span2[num]; QuestSequence obj300 = new QuestSequence { Sequence = 6 }; - num2 = 8; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - Span span138 = CollectionsMarshal.AsSpan(list409); - ref QuestStep reference326 = ref span138[0]; + index2 = 8; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + span3 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + ref QuestStep reference326 = ref span3[num2]; QuestStep obj301 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.89374f, -36.65f, -193.11551f), 958) { DisableNavmesh = true, @@ -289897,16 +349808,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list410 = new List(num3); - CollectionsMarshal.SetCount(list410, num3); - Span span139 = CollectionsMarshal.AsSpan(list410); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list410 = new List(index3); + CollectionsMarshal.SetCount(list410, index3); + span6 = CollectionsMarshal.AsSpan(list410); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list410; skipStepConditions2.NearPosition = new NearPositionCondition { @@ -289917,11 +349834,13 @@ public static class AssemblyQuestLoader skipConditions2.StepIf = skipStepConditions2; obj301.SkipConditions = skipConditions2; reference326 = obj301; - span138[1] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) { PickUpQuestId = new QuestId(4232) }; - ref QuestStep reference327 = ref span138[2]; + num2++; + ref QuestStep reference327 = ref span3[num2]; QuestStep obj302 = new QuestStep(EInteractionType.Combat, 2012111u, new Vector3(507.042f, 8.8654175f, 64.68298f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -289929,21 +349848,30 @@ public static class AssemblyQuestLoader num3 = 1; List list411 = new List(num3); CollectionsMarshal.SetCount(list411, num3); - CollectionsMarshal.AsSpan(list411)[0] = 14078u; + span5 = CollectionsMarshal.AsSpan(list411); + index3 = 0; + span5[index3] = 14078u; obj302.KillEnemyDataIds = list411; - num3 = 6; - List list412 = new List(num3); - CollectionsMarshal.SetCount(list412, num3); - Span span140 = CollectionsMarshal.AsSpan(list412); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list412 = new List(index3); + CollectionsMarshal.SetCount(list412, index3); + span6 = CollectionsMarshal.AsSpan(list412); + 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); obj302.CompletionQuestVariablesFlags = list412; reference327 = obj302; - ref QuestStep reference328 = ref span138[3]; + num2++; + ref QuestStep reference328 = ref span3[num2]; QuestStep obj303 = new QuestStep(EInteractionType.Combat, 2012109u, new Vector3(338.49072f, 2.304016f, 94.77368f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -289951,26 +349879,35 @@ public static class AssemblyQuestLoader num3 = 1; List list413 = new List(num3); CollectionsMarshal.SetCount(list413, num3); - CollectionsMarshal.AsSpan(list413)[0] = 14079u; + span5 = CollectionsMarshal.AsSpan(list413); + index3 = 0; + span5[index3] = 14079u; obj303.KillEnemyDataIds = list413; obj303.CombatItemUse = new CombatItemUse { ItemId = 2003231u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List list414 = new List(num3); - CollectionsMarshal.SetCount(list414, num3); - Span span141 = CollectionsMarshal.AsSpan(list414); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list414 = new List(index3); + CollectionsMarshal.SetCount(list414, index3); + span6 = CollectionsMarshal.AsSpan(list414); + 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); obj303.CompletionQuestVariablesFlags = list414; reference328 = obj303; - ref QuestStep reference329 = ref span138[4]; + num2++; + ref QuestStep reference329 = ref span3[num2]; QuestStep obj304 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.57295f, 1.3869624f, 124.77198f), 958) { Comment = "Avoids combat" @@ -289980,32 +349917,46 @@ public static class AssemblyQuestLoader num3 = 6; List list415 = new List(num3); CollectionsMarshal.SetCount(list415, num3); - Span span142 = CollectionsMarshal.AsSpan(list415); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list415); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list415; skipConditions3.StepIf = skipStepConditions3; obj304.SkipConditions = skipConditions3; reference329 = obj304; - ref QuestStep reference330 = ref span138[5]; + num2++; + ref QuestStep reference330 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2012108u, new Vector3(79.42322f, 0.62561035f, 153.24634f), 958); - num3 = 6; - List list416 = new List(num3); - CollectionsMarshal.SetCount(list416, num3); - Span span143 = CollectionsMarshal.AsSpan(list416); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list416 = new List(index3); + CollectionsMarshal.SetCount(list416, index3); + span6 = CollectionsMarshal.AsSpan(list416); + 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); questStep26.CompletionQuestVariablesFlags = list416; reference330 = questStep26; - ref QuestStep reference331 = ref span138[6]; + num2++; + ref QuestStep reference331 = ref span3[num2]; QuestStep obj305 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.886705f, -0.47744966f, 353.66968f), 958) { Comment = "Avoids combat" @@ -290015,27 +349966,36 @@ public static class AssemblyQuestLoader num3 = 6; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - Span span144 = CollectionsMarshal.AsSpan(list417); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list417; skipConditions4.StepIf = skipStepConditions4; obj305.SkipConditions = skipConditions4; reference331 = obj305; - ref QuestStep reference332 = ref span138[7]; + num2++; + ref QuestStep reference332 = ref span3[num2]; QuestStep obj306 = new QuestStep(EInteractionType.Combat, 2012110u, new Vector3(-25.558899f, -12.954956f, 396.96338f), 958) { DisableNavmesh = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = 14080u; + index3 = 1; + List list418 = new List(index3); + CollectionsMarshal.SetCount(list418, index3); + span5 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span5[num3] = 14080u; obj306.KillEnemyDataIds = list418; obj306.CombatItemUse = new CombatItemUse { @@ -290045,18 +350005,25 @@ public static class AssemblyQuestLoader num3 = 6; List list419 = new List(num3); CollectionsMarshal.SetCount(list419, num3); - Span span145 = CollectionsMarshal.AsSpan(list419); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list419); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj306.CompletionQuestVariablesFlags = list419; reference332 = obj306; obj300.Steps = list409; reference325 = obj300; - ref QuestSequence reference333 = ref span135[7]; + num++; + ref QuestSequence reference333 = ref span2[num]; QuestSequence obj307 = new QuestSequence { Sequence = 7 @@ -290064,18 +350031,23 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1039930u, new Vector3(-208.33148f, 15.486622f, 450.88867f), 958); + span3 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039930u, new Vector3(-208.33148f, 15.486622f, 450.88867f), 958); obj307.Steps = list420; reference333 = obj307; - ref QuestSequence reference334 = ref span135[8]; + num++; + ref QuestSequence reference334 = ref span2[num]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); + index2 = 1; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + span3 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); obj308.Steps = list421; reference334 = obj308; questRoot40.QuestSequence = list402; @@ -290085,13 +350057,16 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - CollectionsMarshal.AsSpan(list422)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list422); + index = 0; + span[index] = "liza"; questRoot41.Author = list422; - num = 3; - List list423 = new List(num); - CollectionsMarshal.SetCount(list423, num); - Span span146 = CollectionsMarshal.AsSpan(list423); - ref QuestSequence reference335 = ref span146[0]; + index = 3; + List list423 = new List(index); + CollectionsMarshal.SetCount(list423, index); + span2 = CollectionsMarshal.AsSpan(list423); + num = 0; + ref QuestSequence reference335 = ref span2[num]; QuestSequence obj309 = new QuestSequence { Sequence = 0 @@ -290099,39 +350074,47 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); + span3 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); obj309.Steps = list424; reference335 = obj309; - ref QuestSequence reference336 = ref span146[1]; + num++; + ref QuestSequence reference336 = ref span2[num]; QuestSequence obj310 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - Span span147 = CollectionsMarshal.AsSpan(list425); - span147[0] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) + index2 = 3; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + span3 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) { PickUpQuestId = new QuestId(4216) }; - ref QuestStep reference337 = ref span147[1]; + num2++; + ref QuestStep reference337 = ref span3[num2]; QuestStep obj311 = new QuestStep(EInteractionType.AcceptQuest, 1041765u, new Vector3(-323.4455f, 22f, 487.81555f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list426 = new List(num3); - CollectionsMarshal.SetCount(list426, num3); - CollectionsMarshal.AsSpan(list426)[0] = new QuestId(4502); + index3 = 1; + List list426 = new List(index3); + CollectionsMarshal.SetCount(list426, index3); + Span span7 = CollectionsMarshal.AsSpan(list426); + num3 = 0; + span7[num3] = new QuestId(4502); skipAetheryteCondition.QuestsCompleted = list426; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; obj311.SkipConditions = skipConditions5; obj311.PickUpQuestId = new QuestId(4502); reference337 = obj311; - ref QuestStep reference338 = ref span147[2]; + num2++; + ref QuestStep reference338 = ref span3[num2]; QuestStep obj312 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039932u, new Vector3(-357.99194f, 22f, 488.3954f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -290140,11 +350123,15 @@ public static class AssemblyQuestLoader num3 = 4; List list427 = new List(num3); CollectionsMarshal.SetCount(list427, num3); - Span span148 = CollectionsMarshal.AsSpan(list427); - span148[0] = "Instance probably only works on very easy difficulty"; - span148[1] = "AI doesn't move to first enemy"; - span148[2] = "AI doesn't unmount from the Magitek Reaper"; - span148[3] = "Navmesh takes 5+ minutes to build"; + span = CollectionsMarshal.AsSpan(list427); + index3 = 0; + span[index3] = "Instance probably only works on very easy difficulty"; + index3++; + span[index3] = "AI doesn't move to first enemy"; + index3++; + span[index3] = "AI doesn't unmount from the Magitek Reaper"; + index3++; + span[index3] = "Navmesh takes 5+ minutes to build"; singlePlayerDutyOptions2.Notes = list427; obj312.SinglePlayerDutyOptions = singlePlayerDutyOptions2; obj312.SkipConditions = new SkipConditions @@ -290159,16 +350146,18 @@ public static class AssemblyQuestLoader } } }; - num3 = 3; - List list428 = new List(num3); - CollectionsMarshal.SetCount(list428, num3); - Span span149 = CollectionsMarshal.AsSpan(list428); - span149[0] = new DialogueChoice + index3 = 3; + List list428 = new List(index3); + CollectionsMarshal.SetCount(list428, index3); + span4 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB115_04394_Q1_000_042") }; - span149[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -290176,7 +350165,8 @@ public static class AssemblyQuestLoader Answer = new ExcelRef(247u), SpecialCondition = "NoDutyActions" }; - span149[2] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -290187,7 +350177,8 @@ public static class AssemblyQuestLoader reference338 = obj312; obj310.Steps = list425; reference336 = obj310; - ref QuestSequence reference339 = ref span146[2]; + num++; + ref QuestSequence reference339 = ref span2[num]; QuestSequence obj313 = new QuestSequence { Sequence = byte.MaxValue @@ -290195,7 +350186,9 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039933u, new Vector3(-369.2531f, 22.20836f, 403.76892f), 958) + span3 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039933u, new Vector3(-369.2531f, 22.20836f, 403.76892f), 958) { StopDistance = 5f }; @@ -290208,24 +350201,30 @@ public static class AssemblyQuestLoader num = 1; List list430 = new List(num); CollectionsMarshal.SetCount(list430, num); - CollectionsMarshal.AsSpan(list430)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list430); + index = 0; + span[index] = "liza"; questRoot42.Author = list430; - num = 7; - List list431 = new List(num); - CollectionsMarshal.SetCount(list431, num); - Span span150 = CollectionsMarshal.AsSpan(list431); - ref QuestSequence reference340 = ref span150[0]; + index = 7; + List list431 = new List(index); + CollectionsMarshal.SetCount(list431, index); + span2 = CollectionsMarshal.AsSpan(list431); + num = 0; + ref QuestSequence reference340 = ref span2[num]; QuestSequence obj314 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039940u, new Vector3(-371.29785f, 22.255f, 400.71716f), 958); + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + span3 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039940u, new Vector3(-371.29785f, 22.255f, 400.71716f), 958); obj314.Steps = list432; reference340 = obj314; - ref QuestSequence reference341 = ref span150[1]; + num++; + ref QuestSequence reference341 = ref span2[num]; QuestSequence obj315 = new QuestSequence { Sequence = 1 @@ -290233,26 +350232,32 @@ public static class AssemblyQuestLoader num2 = 1; List list433 = new List(num2); CollectionsMarshal.SetCount(list433, num2); - CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1039942u, new Vector3(-462.57727f, 20.805109f, -340.68823f), 958); + span3 = CollectionsMarshal.AsSpan(list433); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039942u, new Vector3(-462.57727f, 20.805109f, -340.68823f), 958); obj315.Steps = list433; reference341 = obj315; - ref QuestSequence reference342 = ref span150[2]; + num++; + ref QuestSequence reference342 = ref span2[num]; QuestSequence obj316 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list434 = new List(num2); - CollectionsMarshal.SetCount(list434, num2); - Span span151 = CollectionsMarshal.AsSpan(list434); - span151[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012006u, new Vector3(-602.04474f, 34.286987f, -325.85645f), 958) + index2 = 2; + List list434 = new List(index2); + CollectionsMarshal.SetCount(list434, index2); + span3 = CollectionsMarshal.AsSpan(list434); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012006u, new Vector3(-602.04474f, 34.286987f, -325.85645f), 958) { AetherCurrentId = 2818350u }; - span151[1] = new QuestStep(EInteractionType.Interact, 1039946u, new Vector3(-476.0052f, 10.889291f, -678.0652f), 958); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039946u, new Vector3(-476.0052f, 10.889291f, -678.0652f), 958); obj316.Steps = list434; reference342 = obj316; - ref QuestSequence reference343 = ref span150[3]; + num++; + ref QuestSequence reference343 = ref span2[num]; QuestSequence obj317 = new QuestSequence { Sequence = 3 @@ -290260,31 +350265,38 @@ public static class AssemblyQuestLoader num2 = 2; List list435 = new List(num2); CollectionsMarshal.SetCount(list435, num2); - Span span152 = CollectionsMarshal.AsSpan(list435); - ref QuestStep reference344 = ref span152[0]; + span3 = CollectionsMarshal.AsSpan(list435); + index2 = 0; + ref QuestStep reference344 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1042016u, new Vector3(-483.299f, 10.889291f, -677.4243f), 958); num3 = 1; List list436 = new List(num3); CollectionsMarshal.SetCount(list436, num3); - CollectionsMarshal.AsSpan(list436)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list436); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB116_04395_Q3_000_206") }; questStep27.DialogueChoices = list436; reference344 = questStep27; - span152[1] = new QuestStep(EInteractionType.Interact, 2012112u, new Vector3(-516.7163f, -190.02063f, -675.288f), 958); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012112u, new Vector3(-516.7163f, -190.02063f, -675.288f), 958); obj317.Steps = list435; reference343 = obj317; - ref QuestSequence reference345 = ref span150[4]; + num++; + ref QuestSequence reference345 = ref span2[num]; QuestSequence obj318 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.Duty, null, null, 958) + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + span3 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 958) { DutyOptions = new DutyOptions { @@ -290293,11 +350305,13 @@ public static class AssemblyQuestLoader }; obj318.Steps = list437; reference345 = obj318; - span150[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference346 = ref span150[6]; + num++; + ref QuestSequence reference346 = ref span2[num]; QuestSequence obj319 = new QuestSequence { Sequence = byte.MaxValue @@ -290305,7 +350319,9 @@ public static class AssemblyQuestLoader num2 = 1; List list438 = new List(num2); CollectionsMarshal.SetCount(list438, num2); - CollectionsMarshal.AsSpan(list438)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039969u, new Vector3(2.029419f, 0f, 33.585083f), 1024) + span3 = CollectionsMarshal.AsSpan(list438); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039969u, new Vector3(2.029419f, 0f, 33.585083f), 1024) { StopDistance = 4f }; @@ -290318,24 +350334,30 @@ public static class AssemblyQuestLoader num = 1; List list439 = new List(num); CollectionsMarshal.SetCount(list439, num); - CollectionsMarshal.AsSpan(list439)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list439); + index = 0; + span[index] = "liza"; questRoot43.Author = list439; - num = 7; - List list440 = new List(num); - CollectionsMarshal.SetCount(list440, num); - Span span153 = CollectionsMarshal.AsSpan(list440); - ref QuestSequence reference347 = ref span153[0]; + index = 7; + List list440 = new List(index); + CollectionsMarshal.SetCount(list440, index); + span2 = CollectionsMarshal.AsSpan(list440); + num = 0; + ref QuestSequence reference347 = ref span2[num]; QuestSequence obj320 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - CollectionsMarshal.AsSpan(list441)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039974u, new Vector3(2.5177002f, 0f, 26.840576f), 1024); + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + span3 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039974u, new Vector3(2.5177002f, 0f, 26.840576f), 1024); obj320.Steps = list441; reference347 = obj320; - ref QuestSequence reference348 = ref span153[1]; + num++; + ref QuestSequence reference348 = ref span2[num]; QuestSequence obj321 = new QuestSequence { Sequence = 1 @@ -290343,12 +350365,16 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - ref QuestStep reference349 = ref CollectionsMarshal.AsSpan(list442)[0]; + span3 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + ref QuestStep reference349 = ref span3[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2012116u, new Vector3(5.585561E-05f, 6.62077f, -0.00103838f), 1024); - num3 = 1; - List list443 = new List(num3); - CollectionsMarshal.SetCount(list443, num3); - CollectionsMarshal.AsSpan(list443)[0] = new DialogueChoice + index3 = 1; + List list443 = new List(index3); + CollectionsMarshal.SetCount(list443, index3); + span4 = CollectionsMarshal.AsSpan(list443); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB117_04396_Q1_000_060") @@ -290357,26 +350383,30 @@ public static class AssemblyQuestLoader reference349 = questStep28; obj321.Steps = list442; reference348 = obj321; - span153[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference350 = ref span153[3]; + num++; + ref QuestSequence reference350 = ref span2[num]; QuestSequence obj322 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list444 = new List(num2); - CollectionsMarshal.SetCount(list444, num2); - Span span154 = CollectionsMarshal.AsSpan(list444); - span154[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) + index2 = 2; + List list444 = new List(index2); + CollectionsMarshal.SetCount(list444, index2); + span3 = CollectionsMarshal.AsSpan(list444); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) { DisableNavmesh = true, Mount = true, Aetheryte = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - ref QuestStep reference351 = ref span154[1]; + num2++; + ref QuestStep reference351 = ref span3[num2]; QuestStep obj323 = new QuestStep(EInteractionType.Combat, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -290384,12 +350414,15 @@ public static class AssemblyQuestLoader num3 = 1; List list445 = new List(num3); CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = 14077u; + span5 = CollectionsMarshal.AsSpan(list445); + index3 = 0; + span5[index3] = 14077u; obj323.KillEnemyDataIds = list445; reference351 = obj323; obj322.Steps = list444; reference350 = obj322; - ref QuestSequence reference352 = ref span153[4]; + num++; + ref QuestSequence reference352 = ref span2[num]; QuestSequence obj324 = new QuestSequence { Sequence = 4 @@ -290397,21 +350430,27 @@ public static class AssemblyQuestLoader num2 = 1; List list446 = new List(num2); CollectionsMarshal.SetCount(list446, num2); - CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.Interact, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959); + span3 = CollectionsMarshal.AsSpan(list446); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959); obj324.Steps = list446; reference352 = obj324; - ref QuestSequence reference353 = ref span153[5]; + num++; + ref QuestSequence reference353 = ref span2[num]; QuestSequence obj325 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list447 = new List(num2); - CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.Interact, 2012118u, new Vector3(-423.9109f, 136.9497f, 573.47986f), 959); + index2 = 1; + List list447 = new List(index2); + CollectionsMarshal.SetCount(list447, index2); + span3 = CollectionsMarshal.AsSpan(list447); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012118u, new Vector3(-423.9109f, 136.9497f, 573.47986f), 959); obj325.Steps = list447; reference353 = obj325; - ref QuestSequence reference354 = ref span153[6]; + num++; + ref QuestSequence reference354 = ref span2[num]; QuestSequence obj326 = new QuestSequence { Sequence = byte.MaxValue @@ -290419,7 +350458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - CollectionsMarshal.AsSpan(list448)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042050u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); + span3 = CollectionsMarshal.AsSpan(list448); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042050u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); obj326.Steps = list448; reference354 = obj326; questRoot43.QuestSequence = list440; @@ -290429,55 +350470,61 @@ public static class AssemblyQuestLoader num = 1; List list449 = new List(num); CollectionsMarshal.SetCount(list449, num); - CollectionsMarshal.AsSpan(list449)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list449); + index = 0; + span[index] = "liza"; questRoot44.Author = list449; - num = 10; - List list450 = new List(num); - CollectionsMarshal.SetCount(list450, num); - Span span155 = CollectionsMarshal.AsSpan(list450); - ref QuestSequence reference355 = ref span155[0]; + index = 10; + List list450 = new List(index); + CollectionsMarshal.SetCount(list450, index); + span2 = CollectionsMarshal.AsSpan(list450); + num = 0; + ref QuestSequence reference355 = ref span2[num]; QuestSequence obj327 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list451 = new List(num2); - CollectionsMarshal.SetCount(list451, num2); - CollectionsMarshal.AsSpan(list451)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039978u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); + index2 = 1; + List list451 = new List(index2); + CollectionsMarshal.SetCount(list451, index2); + span3 = CollectionsMarshal.AsSpan(list451); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039978u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); obj327.Steps = list451; reference355 = obj327; - ref QuestSequence reference356 = ref span155[1]; + num++; + ref QuestSequence reference356 = ref span2[num]; QuestSequence obj328 = new QuestSequence { Sequence = 1 }; - num2 = 3; + num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - Span span156 = CollectionsMarshal.AsSpan(list452); - span156[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.84747f, 169.00388f, 554.70496f), 959); - span156[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-381.02145f, 169.08925f, 546.18756f), 959) - { - DisableNavmesh = true - }; - span156[2] = new QuestStep(EInteractionType.Interact, 1039979u, new Vector3(-351.97992f, 103.09564f, 514.4884f), 959) + span3 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039979u, new Vector3(-351.97992f, 103.09564f, 514.4884f), 959) { DisableNavmesh = true }; obj328.Steps = list452; reference356 = obj328; - ref QuestSequence reference357 = ref span155[2]; + num++; + ref QuestSequence reference357 = ref span2[num]; QuestSequence obj329 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.Interact, 1039980u, new Vector3(-262.3484f, 75.328064f, 500.08386f), 959); + index2 = 1; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + span3 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039980u, new Vector3(-262.3484f, 75.328064f, 500.08386f), 959); obj329.Steps = list453; reference357 = obj329; - ref QuestSequence reference358 = ref span155[3]; + num++; + ref QuestSequence reference358 = ref span2[num]; QuestSequence obj330 = new QuestSequence { Sequence = 3 @@ -290485,21 +350532,27 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.Interact, 1039981u, new Vector3(-258.56415f, 73.19127f, 455.49695f), 959); + span3 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039981u, new Vector3(-258.56415f, 73.19127f, 455.49695f), 959); obj330.Steps = list454; reference358 = obj330; - ref QuestSequence reference359 = ref span155[4]; + num++; + ref QuestSequence reference359 = ref span2[num]; QuestSequence obj331 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 1039982u, new Vector3(-193.13348f, 57.684105f, 410.849f), 959); + index2 = 1; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + span3 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039982u, new Vector3(-193.13348f, 57.684105f, 410.849f), 959); obj331.Steps = list455; reference359 = obj331; - ref QuestSequence reference360 = ref span155[5]; + num++; + ref QuestSequence reference360 = ref span2[num]; QuestSequence obj332 = new QuestSequence { Sequence = 5 @@ -290507,56 +350560,71 @@ public static class AssemblyQuestLoader num2 = 9; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span157 = CollectionsMarshal.AsSpan(list456); - span157[0] = new QuestStep(EInteractionType.Interact, 1039985u, new Vector3(-189.92908f, 58.229942f, 419.7605f), 959) + span3 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039985u, new Vector3(-189.92908f, 58.229942f, 419.7605f), 959) { NpcWaitDistance = 5f }; - span157[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-144.128f, 57.30617f, 459.4606f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-144.128f, 57.30617f, 459.4606f), 959) { NpcWaitDistance = 1f, Mount = true }; - span157[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-67.99789f, 52.72147f, 481.2938f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-67.99789f, 52.72147f, 481.2938f), 959) { NpcWaitDistance = 1f }; - span157[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.280434f, 42.36871f, 467.25403f), 959); - span157[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(19.588282f, 34.185432f, 427.5583f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.280434f, 42.36871f, 467.25403f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(19.588282f, 34.185432f, 427.5583f), 959) { NpcWaitDistance = 1f }; - span157[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(104.9116f, 41.95557f, 455.229f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(104.9116f, 41.95557f, 455.229f), 959) { NpcWaitDistance = 1f }; - span157[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.55694f, 46.506252f, 456.90314f), 959); - span157[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.81705f, 54.55443f, 468.51056f), 959); - span157[8] = new QuestStep(EInteractionType.WalkTo, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.55694f, 46.506252f, 456.90314f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.81705f, 54.55443f, 468.51056f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); obj332.Steps = list456; reference360 = obj332; - ref QuestSequence reference361 = ref span155[6]; + num++; + ref QuestSequence reference361 = ref span2[num]; QuestSequence obj333 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - ref QuestStep reference362 = ref CollectionsMarshal.AsSpan(list457)[0]; + index2 = 1; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + span3 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference362 = ref span3[num2]; QuestStep obj334 = new QuestStep(EInteractionType.Combat, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list458 = new List(num3); - CollectionsMarshal.SetCount(list458, num3); - CollectionsMarshal.AsSpan(list458)[0] = 14076u; + index3 = 1; + List list458 = new List(index3); + CollectionsMarshal.SetCount(list458, index3); + span5 = CollectionsMarshal.AsSpan(list458); + num3 = 0; + span5[num3] = 14076u; obj334.KillEnemyDataIds = list458; reference362 = obj334; obj333.Steps = list457; reference361 = obj333; - ref QuestSequence reference363 = ref span155[7]; + num++; + ref QuestSequence reference363 = ref span2[num]; QuestSequence obj335 = new QuestSequence { Sequence = 7 @@ -290564,35 +350632,44 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959); + span3 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959); obj335.Steps = list459; reference363 = obj335; - ref QuestSequence reference364 = ref span155[8]; + num++; + ref QuestSequence reference364 = ref span2[num]; QuestSequence obj336 = new QuestSequence { Sequence = 8 }; - num2 = 5; - List list460 = new List(num2); - CollectionsMarshal.SetCount(list460, num2); - Span span158 = CollectionsMarshal.AsSpan(list460); - span158[0] = new QuestStep(EInteractionType.Interact, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); - span158[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(87.202805f, 66.4619f, 565.21094f), 959) + index2 = 5; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + span3 = CollectionsMarshal.AsSpan(list460); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(87.202805f, 66.4619f, 565.21094f), 959) { NpcWaitDistance = 1f }; - span158[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(193.26242f, 105.96505f, 674.10205f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(193.26242f, 105.96505f, 674.10205f), 959) { NpcWaitDistance = 1f }; - span158[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(216.4619f, 74.850296f, 526.7501f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(216.4619f, 74.850296f, 526.7501f), 959) { NpcWaitDistance = 1f }; - span158[4] = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); obj336.Steps = list460; reference364 = obj336; - ref QuestSequence reference365 = ref span155[9]; + num++; + ref QuestSequence reference365 = ref span2[num]; QuestSequence obj337 = new QuestSequence { Sequence = byte.MaxValue @@ -290600,7 +350677,9 @@ public static class AssemblyQuestLoader num2 = 1; List list461 = new List(num2); CollectionsMarshal.SetCount(list461, num2); - CollectionsMarshal.AsSpan(list461)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039984u, new Vector3(183.39807f, 58.834427f, 427.29822f), 959); + span3 = CollectionsMarshal.AsSpan(list461); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039984u, new Vector3(183.39807f, 58.834427f, 427.29822f), 959); obj337.Steps = list461; reference365 = obj337; questRoot44.QuestSequence = list450; @@ -290610,26 +350689,33 @@ public static class AssemblyQuestLoader num = 1; List list462 = new List(num); CollectionsMarshal.SetCount(list462, num); - CollectionsMarshal.AsSpan(list462)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list462); + index = 0; + span[index] = "liza"; questRoot45.Author = list462; - num = 5; - List list463 = new List(num); - CollectionsMarshal.SetCount(list463, num); - Span span159 = CollectionsMarshal.AsSpan(list463); - ref QuestSequence reference366 = ref span159[0]; + index = 5; + List list463 = new List(index); + CollectionsMarshal.SetCount(list463, index); + span2 = CollectionsMarshal.AsSpan(list463); + num = 0; + ref QuestSequence reference366 = ref span2[num]; QuestSequence obj338 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list464 = new List(num2); - CollectionsMarshal.SetCount(list464, num2); - ref QuestStep reference367 = ref CollectionsMarshal.AsSpan(list464)[0]; + index2 = 1; + List list464 = new List(index2); + CollectionsMarshal.SetCount(list464, index2); + span3 = CollectionsMarshal.AsSpan(list464); + num2 = 0; + ref QuestStep reference367 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); num3 = 1; List list465 = new List(num3); CollectionsMarshal.SetCount(list465, num3); - CollectionsMarshal.AsSpan(list465)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list465); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMB119_04398_Q1_000_001"), @@ -290639,7 +350725,8 @@ public static class AssemblyQuestLoader reference367 = questStep29; obj338.Steps = list464; reference366 = obj338; - ref QuestSequence reference368 = ref span159[1]; + num++; + ref QuestSequence reference368 = ref span2[num]; QuestSequence obj339 = new QuestSequence { Sequence = 1 @@ -290647,12 +350734,16 @@ public static class AssemblyQuestLoader num2 = 1; List list466 = new List(num2); CollectionsMarshal.SetCount(list466, num2); - ref QuestStep reference369 = ref CollectionsMarshal.AsSpan(list466)[0]; + span3 = CollectionsMarshal.AsSpan(list466); + index2 = 0; + ref QuestStep reference369 = ref span3[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); - num3 = 1; - List list467 = new List(num3); - CollectionsMarshal.SetCount(list467, num3); - CollectionsMarshal.AsSpan(list467)[0] = new DialogueChoice + index3 = 1; + List list467 = new List(index3); + CollectionsMarshal.SetCount(list467, index3); + span4 = CollectionsMarshal.AsSpan(list467); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB119_04398_Q2_000_010") @@ -290661,15 +350752,18 @@ public static class AssemblyQuestLoader reference369 = questStep30; obj339.Steps = list466; reference368 = obj339; - ref QuestSequence reference370 = ref span159[2]; + num++; + ref QuestSequence reference370 = ref span2[num]; QuestSequence obj340 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list468 = new List(num2); - CollectionsMarshal.SetCount(list468, num2); - CollectionsMarshal.AsSpan(list468)[0] = new QuestStep(EInteractionType.Duty, null, null, 1028) + index2 = 1; + List list468 = new List(index2); + CollectionsMarshal.SetCount(list468, index2); + span3 = CollectionsMarshal.AsSpan(list468); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1028) { Comment = "The Dark Inside", DutyOptions = new DutyOptions @@ -290679,11 +350773,13 @@ public static class AssemblyQuestLoader }; obj340.Steps = list468; reference370 = obj340; - span159[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference371 = ref span159[4]; + num++; + ref QuestSequence reference371 = ref span2[num]; QuestSequence obj341 = new QuestSequence { Sequence = byte.MaxValue @@ -290691,7 +350787,9 @@ public static class AssemblyQuestLoader num2 = 1; List list469 = new List(num2); CollectionsMarshal.SetCount(list469, num2); - CollectionsMarshal.AsSpan(list469)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) + span3 = CollectionsMarshal.AsSpan(list469); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) { StopDistance = 5f }; @@ -290704,27 +350802,33 @@ public static class AssemblyQuestLoader num = 1; List list470 = new List(num); CollectionsMarshal.SetCount(list470, num); - CollectionsMarshal.AsSpan(list470)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list470); + index = 0; + span[index] = "liza"; questRoot46.Author = list470; - num = 7; - List list471 = new List(num); - CollectionsMarshal.SetCount(list471, num); - Span span160 = CollectionsMarshal.AsSpan(list471); - ref QuestSequence reference372 = ref span160[0]; + index = 7; + List list471 = new List(index); + CollectionsMarshal.SetCount(list471, index); + span2 = CollectionsMarshal.AsSpan(list471); + num = 0; + ref QuestSequence reference372 = ref span2[num]; QuestSequence obj342 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list472 = new List(num2); - CollectionsMarshal.SetCount(list472, num2); - CollectionsMarshal.AsSpan(list472)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) + index2 = 1; + List list472 = new List(index2); + CollectionsMarshal.SetCount(list472, index2); + span3 = CollectionsMarshal.AsSpan(list472); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) { StopDistance = 5f }; obj342.Steps = list472; reference372 = obj342; - ref QuestSequence reference373 = ref span160[1]; + num++; + ref QuestSequence reference373 = ref span2[num]; QuestSequence obj343 = new QuestSequence { Sequence = 1 @@ -290732,25 +350836,31 @@ public static class AssemblyQuestLoader num2 = 1; List list473 = new List(num2); CollectionsMarshal.SetCount(list473, num2); - CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.Interact, 1038872u, new Vector3(-434.13446f, 136.0188f, 570.1228f), 959); + span3 = CollectionsMarshal.AsSpan(list473); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038872u, new Vector3(-434.13446f, 136.0188f, 570.1228f), 959); obj343.Steps = list473; reference373 = obj343; - ref QuestSequence reference374 = ref span160[2]; + num++; + ref QuestSequence reference374 = ref span2[num]; QuestSequence obj344 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list474 = new List(num2); - CollectionsMarshal.SetCount(list474, num2); - CollectionsMarshal.AsSpan(list474)[0] = new QuestStep(EInteractionType.Interact, 2012173u, new Vector3(-409.75055f, 172.25903f, 548.94324f), 959) + index2 = 1; + List list474 = new List(index2); + CollectionsMarshal.SetCount(list474, index2); + span3 = CollectionsMarshal.AsSpan(list474); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012173u, new Vector3(-409.75055f, 172.25903f, 548.94324f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj344.Steps = list474; reference374 = obj344; - ref QuestSequence reference375 = ref span160[3]; + num++; + ref QuestSequence reference375 = ref span2[num]; QuestSequence obj345 = new QuestSequence { Sequence = 3 @@ -290758,29 +350868,35 @@ public static class AssemblyQuestLoader num2 = 1; List list475 = new List(num2); CollectionsMarshal.SetCount(list475, num2); - CollectionsMarshal.AsSpan(list475)[0] = new QuestStep(EInteractionType.Interact, 2012174u, new Vector3(-446.09753f, 163.31726f, 593.0419f), 959) + span3 = CollectionsMarshal.AsSpan(list475); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012174u, new Vector3(-446.09753f, 163.31726f, 593.0419f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj345.Steps = list475; reference375 = obj345; - ref QuestSequence reference376 = ref span160[4]; + num++; + ref QuestSequence reference376 = ref span2[num]; QuestSequence obj346 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list476 = new List(num2); - CollectionsMarshal.SetCount(list476, num2); - CollectionsMarshal.AsSpan(list476)[0] = new QuestStep(EInteractionType.Interact, 2012175u, new Vector3(-407.37012f, 156.8169f, 594.23206f), 959) + index2 = 1; + List list476 = new List(index2); + CollectionsMarshal.SetCount(list476, index2); + span3 = CollectionsMarshal.AsSpan(list476); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012175u, new Vector3(-407.37012f, 156.8169f, 594.23206f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj346.Steps = list476; reference376 = obj346; - ref QuestSequence reference377 = ref span160[5]; + num++; + ref QuestSequence reference377 = ref span2[num]; QuestSequence obj347 = new QuestSequence { Sequence = 5 @@ -290788,22 +350904,27 @@ public static class AssemblyQuestLoader num2 = 1; List list477 = new List(num2); CollectionsMarshal.SetCount(list477, num2); - CollectionsMarshal.AsSpan(list477)[0] = new QuestStep(EInteractionType.Interact, 2012176u, new Vector3(-399.588f, 147.4784f, 566.1554f), 959) + span3 = CollectionsMarshal.AsSpan(list477); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012176u, new Vector3(-399.588f, 147.4784f, 566.1554f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj347.Steps = list477; reference377 = obj347; - ref QuestSequence reference378 = ref span160[6]; + num++; + ref QuestSequence reference378 = ref span2[num]; QuestSequence obj348 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list478 = new List(num2); - CollectionsMarshal.SetCount(list478, num2); - CollectionsMarshal.AsSpan(list478)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038876u, new Vector3(-445.54822f, 136.0188f, 552.5748f), 959); + index2 = 1; + List list478 = new List(index2); + CollectionsMarshal.SetCount(list478, index2); + span3 = CollectionsMarshal.AsSpan(list478); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038876u, new Vector3(-445.54822f, 136.0188f, 552.5748f), 959); obj348.Steps = list478; reference378 = obj348; questRoot46.QuestSequence = list471; @@ -290818,14 +350939,17 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -290833,35 +350957,45 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038880u, new Vector3(-382.2843f, 169.00394f, 549.6758f), 959) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038880u, new Vector3(-382.2843f, 169.00394f, 549.6758f), 959) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence2 = questSequence; - num2 = 6; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.42538f, 98.98749f, 526.5519f), 959) + index2 = 6; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.42538f, 98.98749f, 526.5519f), 959) { DisableNavmesh = true, Mount = true }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.482517f, 42.360725f, 466.64243f), 959); - span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(113.70272f, 45.552776f, 460.49585f), 959); - span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.9883f, 54.543076f, 468.93378f), 959); - span2[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.817184f, 55.823048f, 476.34058f), 959); - span2[5] = new QuestStep(EInteractionType.Interact, 1038884u, new Vector3(295.1858f, 87.78831f, 538.8723f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.482517f, 42.360725f, 466.64243f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(113.70272f, 45.552776f, 460.49585f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.9883f, 54.543076f, 468.93378f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.817184f, 55.823048f, 476.34058f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038884u, new Vector3(295.1858f, 87.78831f, 538.8723f), 959); questSequence2.Steps = list4; reference2 = questSequence; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 2 @@ -290869,21 +351003,27 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038888u, new Vector3(446.95203f, 69.15293f, 540.032f), 959); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038888u, new Vector3(446.95203f, 69.15293f, 540.032f), 959); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 2012177u, new Vector3(486.71704f, 70.69495f, 538.90283f), 959); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012177u, new Vector3(486.71704f, 70.69495f, 538.90283f), 959); obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 4 @@ -290891,19 +351031,24 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1040516u, new Vector3(205.52368f, 59.358307f, 405.87463f), 959); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040516u, new Vector3(205.52368f, 59.358307f, 405.87463f), 959); obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence3 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference7 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1040518u, new Vector3(205.06592f, 59.911327f, 411.42883f), 959) { StopDistance = 5f @@ -290911,7 +351056,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list8); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC102_04400_Q1_000_151") @@ -290920,7 +351067,8 @@ public static class AssemblyQuestLoader reference7 = obj5; questSequence3.Steps = list4; reference6 = questSequence; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -290928,7 +351076,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); obj6.Steps = list9; reference8 = obj6; questRoot3.QuestSequence = list2; @@ -290939,25 +351089,31 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "liza"; questRoot4.Author = list10; QuestRoot questRoot5 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span3 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference9 = ref span3[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); obj7.Steps = list11; reference9 = obj7; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -290966,37 +351122,44 @@ public static class AssemblyQuestLoader num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.922524f, -105.8306f, -397.17743f), 959) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.922524f, -105.8306f, -397.17743f), 959) { DisableNavmesh = true, Mount = true }; - span4[1] = new QuestStep(EInteractionType.Interact, 1038897u, new Vector3(30.838379f, -132.94641f, -435.47723f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038897u, new Vector3(30.838379f, -132.94641f, -435.47723f), 959); questSequence4.Steps = list4; reference10 = questSequence; - ref QuestSequence reference11 = ref span3[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence5 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span5 = CollectionsMarshal.AsSpan(list4); - span5[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) { Aetheryte = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.500526f, -129.20917f, -521.85284f), 959); - span5[2] = new QuestStep(EInteractionType.Interact, 1038901u, new Vector3(120.531006f, -132.86647f, -555.0164f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.500526f, -129.20917f, -521.85284f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038901u, new Vector3(120.531006f, -132.86647f, -555.0164f), 959) { DisableNavmesh = true }; questSequence5.Steps = list4; reference11 = questSequence; - ref QuestSequence reference12 = ref span3[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -291004,26 +351167,33 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1038902u, new Vector3(-124.864624f, -132.87448f, -471.91577f), 959); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038902u, new Vector3(-124.864624f, -132.87448f, -471.91577f), 959); obj8.Steps = list12; reference12 = obj8; - ref QuestSequence reference13 = ref span3[4]; + num++; + ref QuestSequence reference13 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence6 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span6 = CollectionsMarshal.AsSpan(list4); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.783533f, -49.589592f, -339.60205f), 959); - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.39724f, -49.589592f, -336.63968f), 959); - span6[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.34293f, -49.589592f, -367.6591f), 959) + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.783533f, -49.589592f, -339.60205f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.39724f, -49.589592f, -336.63968f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.34293f, -49.589592f, -367.6591f), 959) { DisableNavmesh = true }; - span6[3] = new QuestStep(EInteractionType.CompleteQuest, 1038903u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038903u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); questSequence6.Steps = list4; reference13 = questSequence; questRoot5.QuestSequence = list2; @@ -291034,14 +351204,17 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; questRoot6.Author = list13; QuestRoot questRoot7 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span7 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference14 = ref span7[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -291049,30 +351222,36 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); obj9.Steps = list14; reference14 = obj9; - ref QuestSequence reference15 = ref span7[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence7 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span8 = CollectionsMarshal.AsSpan(list4); - span8[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012013u, new Vector3(29.1046f, -47.739f, -550.4077f), 959) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012013u, new Vector3(29.1046f, -47.739f, -550.4077f), 959) { AetherCurrentId = 2818362u }; - span8[1] = new QuestStep(EInteractionType.Interact, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; questSequence7.Steps = list4; reference15 = questSequence; - ref QuestSequence reference16 = ref span7[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291081,8 +351260,9 @@ public static class AssemblyQuestLoader num2 = 9; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span9 = CollectionsMarshal.AsSpan(list4); - span9[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-451.1233f, -168f, -623.01324f), 959) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-451.1233f, -168f, -623.01324f), 959) { StopDistance = 1f, Mount = false, @@ -291092,7 +351272,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-448.59048f, -166.16438f, -628.15826f) } }; - span9[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-448.59048f, -166.16438f, -628.15826f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-448.59048f, -166.16438f, -628.15826f), 959) { Comment = "Platform 2", JumpDestination = new JumpDestination @@ -291100,7 +351281,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-446.64853f, -164.36438f, -633.6268f) } }; - span9[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.64853f, -164.36438f, -633.6268f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.64853f, -164.36438f, -633.6268f), 959) { Comment = "Platform 3", JumpDestination = new JumpDestination @@ -291108,7 +351290,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-445.29623f, -162.56439f, -639.4988f) } }; - span9[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.29623f, -162.56439f, -639.4988f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.29623f, -162.56439f, -639.4988f), 959) { Comment = "Platform 4", JumpDestination = new JumpDestination @@ -291117,7 +351300,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.7f } }; - span9[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-444.56757f, -160.76439f, -644.749f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-444.56757f, -160.76439f, -644.749f), 959) { Comment = "Platform 5", JumpDestination = new JumpDestination @@ -291125,7 +351309,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-445.23477f, -158.96439f, -651.54956f) } }; - span9[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.23477f, -158.96439f, -651.54956f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.23477f, -158.96439f, -651.54956f), 959) { Comment = "Platform 6", JumpDestination = new JumpDestination @@ -291134,7 +351319,8 @@ public static class AssemblyQuestLoader DelaySeconds = 1f } }; - span9[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.45673f, -157.16441f, -658.25415f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.45673f, -157.16441f, -658.25415f), 959) { Comment = "Platform 7", JumpDestination = new JumpDestination @@ -291142,7 +351328,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-449.8167f, -155.36438f, -663.3387f) } }; - span9[7] = new QuestStep(EInteractionType.Jump, null, new Vector3(-449.8167f, -155.36438f, -663.3387f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-449.8167f, -155.36438f, -663.3387f), 959) { Comment = "Jump onto the big thing", JumpDestination = new JumpDestination @@ -291150,23 +351337,26 @@ public static class AssemblyQuestLoader Position = new Vector3(-458.69357f, -155.56349f, -661.287f) } }; - ref QuestStep reference17 = ref span9[8]; + index2++; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2012178u, new Vector3(-486.59497f, -154.37555f, -689.26526f), 959) { StopDistance = 3f }; QuestStep questStep2 = questStep; - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span10 = CollectionsMarshal.AsSpan(list15); - span10[0] = new DialogueChoice + index3 = 2; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC104_04402_Q1_000_071"), Answer = new ExcelRef("TEXT_AKTKMC104_04402_A1_000_074") }; - span10[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC104_04402_Q2_000_081") @@ -291175,21 +351365,24 @@ public static class AssemblyQuestLoader reference17 = questStep; questSequence8.Steps = list4; reference16 = questSequence; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence9 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span11 = CollectionsMarshal.AsSpan(list4); - span11[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012011u, new Vector3(-482.7497f, -154.95538f, -595.72754f), 959) + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012011u, new Vector3(-482.7497f, -154.95538f, -595.72754f), 959) { AetherCurrentId = 2818360u }; - span11[1] = new QuestStep(EInteractionType.Jump, 1038912u, new Vector3(-462.06528f, -155.5629f, -625.5277f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, 1038912u, new Vector3(-462.06528f, -155.5629f, -625.5277f), 959) { JumpDestination = new JumpDestination { @@ -291197,13 +351390,15 @@ public static class AssemblyQuestLoader StopDistance = 8f } }; - span11[2] = new QuestStep(EInteractionType.Interact, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) { DelaySecondsAtStart = 3f }; questSequence9.Steps = list4; reference18 = questSequence; - ref QuestSequence reference19 = ref span7[4]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -291211,21 +351406,26 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-455.40552f, -168f, -620.05035f), 959) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-455.40552f, -168f, -620.05035f), 959) { ItemId = 2003236u }; obj10.Steps = list16; reference19 = obj10; - ref QuestSequence reference20 = ref span7[5]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) { DelaySecondsAtStart = 2f }; @@ -291239,14 +351439,17 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; questRoot8.Author = list18; QuestRoot questRoot9 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span12 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference21 = ref span12[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -291254,24 +351457,30 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) { StopDistance = 5f }; obj12.Steps = list19; reference21 = obj12; - ref QuestSequence reference22 = ref span12[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); obj13.Steps = list20; reference22 = obj13; - ref QuestSequence reference23 = ref span12[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291280,9 +351489,11 @@ public static class AssemblyQuestLoader num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span13 = CollectionsMarshal.AsSpan(list4); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959); - span13[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959) { StopDistance = 1f, Mount = false, @@ -291294,7 +351505,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.36722f, -160.81464f, -258.94827f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.36722f, -160.81464f, -258.94827f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -291305,7 +351517,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.09705f, -159.31464f, -262.08554f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.09705f, -159.31464f, -262.08554f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -291316,7 +351529,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.5647f, -157.81464f, -265.16046f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.5647f, -157.81464f, -265.16046f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -291327,7 +351541,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-358.55756f, -156.31464f, -268.07187f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-358.55756f, -156.31464f, -268.07187f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -291338,7 +351553,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-360.63412f, -154.81462f, -270.27368f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-360.63412f, -154.81462f, -270.27368f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -291349,7 +351565,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - ref QuestStep reference24 = ref span13[7]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1038923u, new Vector3(-376.27222f, -151.67168f, -267.90265f), 959) { StopDistance = 7f @@ -291357,7 +351574,9 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_Q1_000_073"), @@ -291367,21 +351586,24 @@ public static class AssemblyQuestLoader reference24 = obj14; questSequence10.Steps = list4; reference23 = questSequence; - ref QuestSequence reference25 = ref span12[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence11 = questSequence; - num2 = 9; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span14 = CollectionsMarshal.AsSpan(list4); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) + index2 = 9; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) { StopDistance = 1f }; - span14[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) { StopDistance = 1f, Mount = false, @@ -291393,7 +351615,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-333.76025f, -160.81464f, -359.79532f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-333.76025f, -160.81464f, -359.79532f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -291404,7 +351627,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.20718f, -159.31462f, -358.21957f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.20718f, -159.31462f, -358.21957f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -291415,7 +351639,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.62347f, -157.81464f, -356.00974f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.62347f, -157.81464f, -356.00974f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -291426,7 +351651,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-340.34265f, -156.31462f, -353.9171f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-340.34265f, -156.31462f, -353.9171f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -291437,7 +351663,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.2541f, -154.81462f, -350.6315f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.2541f, -154.81462f, -350.6315f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -291448,19 +351675,23 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.69525f, -152.67764f, -344.93723f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.69525f, -152.67764f, -344.93723f), 959) { DisableNavmesh = true }; - ref QuestStep reference26 = ref span14[8]; + num2++; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1038924u, new Vector3(-329.97632f, -151.67169f, -333.76062f), 959) { StopDistance = 5f }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_Q1_000_118"), @@ -291470,7 +351701,8 @@ public static class AssemblyQuestLoader reference26 = obj15; questSequence11.Steps = list4; reference25 = questSequence; - ref QuestSequence reference27 = ref span12[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -291478,21 +351710,27 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); obj16.Steps = list23; reference27 = obj16; - ref QuestSequence reference28 = ref span12[5]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1038925u, new Vector3(-506.52325f, -161.84383f, -258.68628f), 959); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038925u, new Vector3(-506.52325f, -161.84383f, -258.68628f), 959); obj17.Steps = list24; reference28 = obj17; - ref QuestSequence reference29 = ref span12[6]; + num++; + ref QuestSequence reference29 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 @@ -291501,7 +351739,9 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list4)[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1038926u, new Vector3(-28.244446f, -131.29884f, -585.7481f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow @@ -291509,7 +351749,9 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_SYSTEM_000_215") @@ -291518,15 +351760,18 @@ public static class AssemblyQuestLoader reference30 = obj18; questSequence12.Steps = list4; reference29 = questSequence; - ref QuestSequence reference31 = ref span12[7]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); obj19.Steps = list26; reference31 = obj19; questRoot9.QuestSequence = list2; @@ -291537,14 +351782,17 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "liza"; questRoot10.Author = list27; QuestRoot questRoot11 = questRoot; - num = 11; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span15 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference32 = ref span15[0]; + index = 11; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -291552,46 +351800,55 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); obj20.Steps = list28; reference32 = obj20; - ref QuestSequence reference33 = ref span15[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence13 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span16 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference34 = ref span16[0]; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new QuestId(4240); + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = new QuestId(4240); skipAetheryteCondition.QuestsCompleted = list29; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj21.SkipConditions = skipConditions; obj21.PickUpQuestId = new QuestId(4240); reference34 = obj21; - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959) { PickUpQuestId = new QuestId(4241) }; - span16[2] = new QuestStep(EInteractionType.Interact, 1038928u, new Vector3(146.37976f, -137.32071f, -504.26492f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038928u, new Vector3(146.37976f, -137.32071f, -504.26492f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; questSequence13.Steps = list4; reference33 = questSequence; - ref QuestSequence reference35 = ref span15[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291600,12 +351857,16 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list4)[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference36 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC106_04404_Q1_000_021"), @@ -291615,21 +351876,25 @@ public static class AssemblyQuestLoader reference36 = questStep3; questSequence14.Steps = list4; reference35 = questSequence; - ref QuestSequence reference37 = ref span15[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Emote, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959) { Emote = EEmote.Stretch }; obj22.Steps = list31; reference37 = obj22; - ref QuestSequence reference38 = ref span15[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -291637,24 +351902,30 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); obj23.Steps = list32; reference38 = obj23; - ref QuestSequence reference39 = ref span15[5]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(595.4731f, -167.50227f, -511.4072f), 959) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(595.4731f, -167.50227f, -511.4072f), 959) { StopDistance = 0.25f }; obj24.Steps = list33; reference39 = obj24; - ref QuestSequence reference40 = ref span15[6]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 @@ -291662,27 +351933,33 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(547.8397f, -167.50174f, -526.3702f), 959) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(547.8397f, -167.50174f, -526.3702f), 959) { StopDistance = 0.25f }; obj25.Steps = list34; reference40 = obj25; - ref QuestSequence reference41 = ref span15[7]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(572.45984f, -167.50163f, -577.03906f), 959) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(572.45984f, -167.50163f, -577.03906f), 959) { StopDistance = 0.25f }; obj26.Steps = list35; reference41 = obj26; - ref QuestSequence reference42 = ref span15[8]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -291690,27 +351967,33 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(617.89886f, -167.50163f, -594.92847f), 959) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(617.89886f, -167.50163f, -594.92847f), 959) { StopDistance = 0.25f }; obj27.Steps = list36; reference42 = obj27; - ref QuestSequence reference43 = ref span15[9]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(622.8754f, -167.50217f, -659.45184f), 959) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(622.8754f, -167.50217f, -659.45184f), 959) { StopDistance = 0.25f }; obj28.Steps = list37; reference43 = obj28; - ref QuestSequence reference44 = ref span15[10]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -291718,7 +352001,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038932u, new Vector3(617.05945f, -168.00002f, -656.58044f), 959) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038932u, new Vector3(617.05945f, -168.00002f, -656.58044f), 959) { StopDistance = 7f }; @@ -291732,28 +352017,34 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot12.Author = list39; QuestRoot questRoot13 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span17 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference45 = ref span17[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038931u, new Vector3(615.8998f, -168f, -657.7402f), 959) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038931u, new Vector3(615.8998f, -168f, -657.7402f), 959) { StopDistance = 7f }; obj30.Steps = list40; reference45 = obj30; - ref QuestSequence reference46 = ref span17[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -291761,27 +352052,33 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 2012184u, new Vector3(73.83838f, -133.07397f, -512.2606f), 959) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012184u, new Vector3(73.83838f, -133.07397f, -512.2606f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj31.Steps = list41; reference46 = obj31; - ref QuestSequence reference47 = ref span17[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) { Comment = "Follow Urianger" }; obj32.Steps = list42; reference47 = obj32; - ref QuestSequence reference48 = ref span17[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -291790,8 +352087,9 @@ public static class AssemblyQuestLoader num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span18 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference49 = ref span18[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) { Comment = "retry point", @@ -291803,55 +352101,64 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC107_04405_Q1_000_043") }; obj33.DialogueChoices = list43; reference49 = obj33; - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-6.025082f, -28.32315f, -215.77702f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-6.025082f, -28.32315f, -215.77702f), 959) { DelaySecondsAtStart = 2f, DisableNavmesh = true, Mount = false, Sprint = false }; - span18[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(15.536669f, -7.1210613f, -177.33519f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(15.536669f, -7.1210613f, -177.33519f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.73667f, -5.0926046f, -171.87782f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.73667f, -5.0926046f, -171.87782f), 959) { Mount = false, Sprint = false }; - span18[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(-22.370995f, 14.627041f, -132.87657f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(-22.370995f, 14.627041f, -132.87657f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.210857f, 26.867788f, -109.43445f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.210857f, 26.867788f, -109.43445f), 959) { Mount = false, Sprint = false }; - span18[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(1.7508065f, 46.95068f, -69.89246f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(1.7508065f, 46.95068f, -69.89246f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.261765f, 74.98867f, -32.961533f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.261765f, 74.98867f, -32.961533f), 959) { DelaySecondsAtStart = 1f, Mount = false, @@ -291859,15 +352166,18 @@ public static class AssemblyQuestLoader }; questSequence15.Steps = list4; reference48 = questSequence; - ref QuestSequence reference50 = ref span17[4]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) { StopDistance = 5f }; @@ -291881,14 +352191,17 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot14.Author = list45; QuestRoot questRoot15 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span19 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference51 = ref span19[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -291896,30 +352209,36 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) { StopDistance = 5f }; obj35.Steps = list46; reference51 = obj35; - ref QuestSequence reference52 = ref span19[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence16 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span20 = CollectionsMarshal.AsSpan(list4); - span20[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012010u, new Vector3(42.58789f, 124.01001f, -167.04059f), 959) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012010u, new Vector3(42.58789f, 124.01001f, -167.04059f), 959) { AetherCurrentId = 2818359u }; - span20[1] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); questSequence16.Steps = list4; reference52 = questSequence; - ref QuestSequence reference53 = ref span19[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291928,55 +352247,69 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2012235u, new Vector3(183.30652f, 87.20532f, -30.47229f), 959) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Combat, 2012235u, new Vector3(183.30652f, 87.20532f, -30.47229f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; + QuestStep questStep4 = questStep; num3 = 3; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span21 = CollectionsMarshal.AsSpan(list47); - span21[0] = 13998u; - span21[1] = 14093u; - span21[2] = 13998u; - obj36.KillEnemyDataIds = list47; - reference54 = obj36; + Span span6 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span6[index3] = 13998u; + index3++; + span6[index3] = 14093u; + index3++; + span6[index3] = 13998u; + questStep4.KillEnemyDataIds = list47; + reference54 = questStep; questSequence17.Steps = list4; reference53 = questSequence; - ref QuestSequence reference55 = ref span19[3]; - QuestSequence obj37 = new QuestSequence + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 2012433u, new Vector3(183.30652f, 87.17468f, -30.380737f), 959); - obj37.Steps = list48; - reference55 = obj37; - ref QuestSequence reference56 = ref span19[4]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 4 }; num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); - obj38.Steps = list49; - reference56 = obj38; - ref QuestSequence reference57 = ref span19[5]; + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence18 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span22 = CollectionsMarshal.AsSpan(list4); - span22[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(304.50522f, -144f, -558.8681f), 959) + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(304.50522f, -144f, -558.8681f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, JumpDestination = new JumpDestination @@ -291985,40 +352318,49 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - span22[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012012u, new Vector3(316.39575f, -154.98596f, -595.5444f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012012u, new Vector3(316.39575f, -154.98596f, -595.5444f), 959) { StopDistance = 3f, AetherCurrentId = 2818361u }; - span22[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.1467f, -167.87698f, -605.0467f), 959); - span22[3] = new QuestStep(EInteractionType.Interact, 1038937u, new Vector3(381.7959f, -168.00002f, -594.62885f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.1467f, -167.87698f, -605.0467f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038937u, new Vector3(381.7959f, -168.00002f, -594.62885f), 959); questSequence18.Steps = list4; reference57 = questSequence; - ref QuestSequence reference58 = ref span19[6]; - QuestSequence obj39 = new QuestSequence + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 6 }; num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Snipe, 2012337u, new Vector3(466.8496f, -168.01715f, -654.13904f), 959) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2012337u, new Vector3(466.8496f, -168.01715f, -654.13904f), 959) { Comment = "Find \"Runninway?\"" }; - obj39.Steps = list50; - reference58 = obj39; - ref QuestSequence reference59 = ref span19[7]; - QuestSequence obj40 = new QuestSequence + obj38.Steps = list50; + reference58 = obj38; + num++; + ref QuestSequence reference59 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038944u, new Vector3(361.65405f, -168.00002f, -628.19867f), 959); - obj40.Steps = list51; - reference59 = obj40; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038944u, new Vector3(361.65405f, -168.00002f, -628.19867f), 959); + obj39.Steps = list51; + reference59 = obj39; questRoot15.QuestSequence = list2; AddQuest(questId7, questRoot); QuestId questId8 = new QuestId(4407); @@ -292027,78 +352369,94 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot16.Author = list52; QuestRoot questRoot17 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span23 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference60 = ref span23[0]; - QuestSequence obj41 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 0 }; num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038946u, new Vector3(362.50854f, -168.00002f, -625.11633f), 959) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038946u, new Vector3(362.50854f, -168.00002f, -625.11633f), 959) { StopDistance = 5f }; - obj41.Steps = list53; - reference60 = obj41; - ref QuestSequence reference61 = ref span23[1]; + obj40.Steps = list53; + reference60 = obj40; + num++; + ref QuestSequence reference61 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence19 = questSequence; - num2 = 5; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span24 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference62 = ref span24[0]; - QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959) + index2 = 5; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference62 = ref span3[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new QuestId(4516); + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = new QuestId(4516); skipAetheryteCondition2.QuestsCompleted = list54; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; - obj42.SkipConditions = skipConditions2; - obj42.PickUpQuestId = new QuestId(4516); - reference62 = obj42; - ref QuestStep reference63 = ref span24[1]; + obj41.SkipConditions = skipConditions2; + obj41.PickUpQuestId = new QuestId(4516); + reference62 = obj41; + num2++; + ref QuestStep reference63 = ref span3[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959); - QuestStep questStep4 = questStep; + QuestStep questStep5 = questStep; num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/042/AktKze014_04253", Prompt = new ExcelRef("TEXT_AKTKZE014_04253_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZE014_04253_A1_000_002") }; - questStep4.DialogueChoices = list55; + questStep5.DialogueChoices = list55; questStep.PickUpQuestId = new QuestId(4253); reference63 = questStep; - span24[2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959 }; - span24[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.32143f, -49.589592f, -690.11676f), 959); - span24[4] = new QuestStep(EInteractionType.Interact, 1038947u, new Vector3(184.00854f, -49.589592f, -627.9545f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.32143f, -49.589592f, -690.11676f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038947u, new Vector3(184.00854f, -49.589592f, -627.9545f), 959); questSequence19.Steps = list4; reference61 = questSequence; - ref QuestSequence reference64 = ref span23[2]; + num++; + ref QuestSequence reference64 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -292107,53 +352465,67 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(167.0076f, -49.589592f, -637.9577f), 959) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference65 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(167.0076f, -49.589592f, -637.9577f), 959) { StopDistance = 3f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 4; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span25 = CollectionsMarshal.AsSpan(list56); - span25[0] = 13995u; - span25[1] = 13996u; - span25[2] = 13997u; - span25[3] = 13995u; - obj43.KillEnemyDataIds = list56; - reference65 = obj43; + QuestStep questStep6 = questStep; + index3 = 4; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span6 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span6[num3] = 13995u; + num3++; + span6[num3] = 13996u; + num3++; + span6[num3] = 13997u; + num3++; + span6[num3] = 13995u; + questStep6.KillEnemyDataIds = list56; + reference65 = questStep; questSequence20.Steps = list4; reference64 = questSequence; - ref QuestSequence reference66 = ref span23[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence21 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span26 = CollectionsMarshal.AsSpan(list4); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(172.90228f, -49.589603f, -509.59824f), 959); - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.495846f, -49.589592f, -301.7225f), 959); - span26[2] = new QuestStep(EInteractionType.Interact, 1038950u, new Vector3(-2.7008667f, -27.758478f, -214.77081f), 959); + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(172.90228f, -49.589603f, -509.59824f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.495846f, -49.589592f, -301.7225f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038950u, new Vector3(-2.7008667f, -27.758478f, -214.77081f), 959); questSequence21.Steps = list4; reference66 = questSequence; - ref QuestSequence reference67 = ref span23[4]; - QuestSequence obj44 = new QuestSequence + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038952u, new Vector3(-609.12494f, 128.67769f, 572.0454f), 959) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038952u, new Vector3(-609.12494f, 128.67769f, 572.0454f), 959) { StopDistance = 5f }; - obj44.Steps = list57; - reference67 = obj44; + obj42.Steps = list57; + reference67 = obj42; questRoot17.QuestSequence = list2; AddQuest(questId8, questRoot); QuestId questId9 = new QuestId(4408); @@ -292162,28 +352534,34 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; questRoot18.Author = list58; QuestRoot questRoot19 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span27 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference68 = ref span27[0]; - QuestSequence obj45 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038953u, new Vector3(-611.1391f, 128.6778f, 566.8573f), 959) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038953u, new Vector3(-611.1391f, 128.6778f, 566.8573f), 959) { StopDistance = 5f }; - obj45.Steps = list59; - reference68 = obj45; - ref QuestSequence reference69 = ref span27[1]; + obj43.Steps = list59; + reference68 = obj43; + num++; + ref QuestSequence reference69 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -292192,8 +352570,9 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span28 = CollectionsMarshal.AsSpan(list4); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-614.86835f, 128.67761f, 677.33923f), 959) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-614.86835f, 128.67761f, 677.33923f), 959) { Comment = "Avoids Combat", SkipConditions = new SkipConditions @@ -292204,29 +352583,35 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) { TargetTerritoryId = (ushort)1024, Fly = true }; - span28[2] = new QuestStep(EInteractionType.Interact, 1038960u, new Vector3(0.99176025f, 0f, 22.171326f), 1024); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038960u, new Vector3(0.99176025f, 0f, 22.171326f), 1024); questSequence22.Steps = list4; reference69 = questSequence; - ref QuestSequence reference70 = ref span27[2]; - QuestSequence obj46 = new QuestSequence + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1038963u, new Vector3(-338.2467f, 23.803604f, 407.79736f), 958) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038963u, new Vector3(-338.2467f, 23.803604f, 407.79736f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; - obj46.Steps = list60; - reference70 = obj46; - ref QuestSequence reference71 = ref span27[3]; + obj44.Steps = list60; + reference70 = obj44; + num++; + ref QuestSequence reference71 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292235,7 +352620,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1038965u, new Vector3(-104.9668f, 3.8989396f, 9.262146f), 962) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038965u, new Vector3(-104.9668f, 3.8989396f, 9.262146f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -292246,35 +352633,41 @@ public static class AssemblyQuestLoader }; questSequence23.Steps = list61; reference71 = questSequence; - ref QuestSequence reference72 = ref span27[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence24 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span29 = CollectionsMarshal.AsSpan(list4); - span29[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987 }; - ref QuestStep reference73 = ref span29[1]; - QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012188u, new Vector3(-0.015319824f, -0.015319824f, -5.081299f), 987); + num2++; + ref QuestStep reference73 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012188u, new Vector3(-0.015319824f, -0.015319824f, -5.081299f), 987); num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC110_04408_Q3_000_170") }; - questStep5.DialogueChoices = list62; - reference73 = questStep5; + questStep7.DialogueChoices = list62; + reference73 = questStep7; questSequence24.Steps = list4; reference72 = questSequence; - ref QuestSequence reference74 = ref span27[5]; + num++; + ref QuestSequence reference74 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -292283,8 +352676,10 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj47 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference75 = ref span3[index2]; + QuestStep obj45 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { AethernetShortcut = new AethernetShortcut { @@ -292292,16 +352687,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span4 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC110_04408_Q4_000_204") }; - obj47.DialogueChoices = list63; - reference75 = obj47; + obj45.DialogueChoices = list63; + reference75 = obj45; questSequence25.Steps = list4; reference74 = questSequence; questRoot19.QuestSequence = list2; @@ -292312,28 +352709,34 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list64); + index = 0; + span[index] = "liza"; questRoot20.Author = list64; QuestRoot questRoot21 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span30 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference76 = ref span30[0]; - QuestSequence obj48 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038969u, new Vector3(-104.478516f, 3.8989394f, 7.003784f), 962) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038969u, new Vector3(-104.478516f, 3.8989394f, 7.003784f), 962) { StopDistance = 5f }; - obj48.Steps = list65; - reference76 = obj48; - ref QuestSequence reference77 = ref span30[1]; + obj46.Steps = list65; + reference76 = obj46; + num++; + ref QuestSequence reference77 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 @@ -292342,49 +352745,60 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) { TargetTerritoryId = (ushort)987 }; questSequence26.Steps = list66; reference77 = questSequence; - ref QuestSequence reference78 = ref span30[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence27 = questSequence; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 957) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 957) { Comment = "Quest automatically progresses once teleported to Yedlihmad", AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; questSequence27.Steps = list67; reference78 = questSequence; - ref QuestSequence reference79 = ref span30[3]; - QuestSequence obj49 = new QuestSequence + num++; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = 3 }; num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1038978u, new Vector3(202.34985f, 1.7699993f, 757.71716f), 957); - obj49.Steps = list68; - reference79 = obj49; - ref QuestSequence reference80 = ref span30[4]; + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence28 = questSequence; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Duty, null, null, 957) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 957) { DutyOptions = new DutyOptions { @@ -292394,24 +352808,28 @@ public static class AssemblyQuestLoader }; questSequence28.Steps = list69; reference80 = questSequence; - span30[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference81 = ref span30[6]; - QuestSequence obj50 = new QuestSequence + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) { StopDistance = 5f }; - obj50.Steps = list70; - reference81 = obj50; + obj48.Steps = list70; + reference81 = obj48; questRoot21.QuestSequence = list2; AddQuest(questId10, questRoot); QuestId questId11 = new QuestId(4410); @@ -292420,50 +352838,62 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot22.Author = list71; QuestRoot questRoot23 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span31 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference82 = ref span31[0]; - QuestSequence obj51 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) { StopDistance = 5f }; - obj51.Steps = list72; - reference82 = obj51; - ref QuestSequence reference83 = ref span31[1]; - QuestSequence obj52 = new QuestSequence + obj49.Steps = list72; + reference82 = obj49; + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 1 }; num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(2.7618408f, -1.9999962f, 97.30664f), 963); - obj52.Steps = list73; - reference83 = obj52; - ref QuestSequence reference84 = ref span31[2]; - QuestSequence obj53 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1037313u, new Vector3(137.71265f, 4.783756f, -153.9483f), 963); - obj53.Steps = list74; - reference84 = obj53; - ref QuestSequence reference85 = ref span31[3]; + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292472,14 +352902,15 @@ public static class AssemblyQuestLoader num2 = 4; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span32 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference86 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference86 = ref span3[index2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(81.33277f, 1.8631814f, -96.56102f), 963) { DisableNavmesh = true, Sprint = true }; - QuestStep questStep6 = questStep; + QuestStep questStep8 = questStep; SkipConditions skipConditions3 = new SkipConditions(); SkipConditions skipConditions4 = skipConditions3; SkipStepConditions skipStepConditions = new SkipStepConditions(); @@ -292487,88 +352918,119 @@ public static class AssemblyQuestLoader num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span33 = CollectionsMarshal.AsSpan(list75); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list75; skipConditions4.StepIf = skipStepConditions; - questStep6.SkipConditions = skipConditions3; + questStep8.SkipConditions = skipConditions3; reference86 = questStep; - ref QuestStep reference87 = ref span32[1]; + index2++; + ref QuestStep reference87 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037314u, new Vector3(15.701477f, 0.9f, -115.22089f), 963) { Comment = "Varsra" }; - QuestStep questStep7 = questStep; - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span34 = CollectionsMarshal.AsSpan(list76); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list76; + QuestStep questStep9 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep9.CompletionQuestVariablesFlags = list75; reference87 = questStep; - ref QuestStep reference88 = ref span32[2]; + index2++; + ref QuestStep reference88 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037316u, new Vector3(-47.04364f, 0.9199997f, -94.95697f), 963) { Comment = "Zeytahnur" }; - QuestStep questStep8 = questStep; + QuestStep questStep10 = questStep; num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span35 = CollectionsMarshal.AsSpan(list77); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list77; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list75; reference88 = questStep; - ref QuestStep reference89 = ref span32[3]; + index2++; + ref QuestStep reference89 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037315u, new Vector3(-19.60791f, 0.8999999f, -60.68518f), 963) { Comment = "Rahdvira" }; - QuestStep questStep9 = questStep; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span36 = CollectionsMarshal.AsSpan(list78); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list78; + QuestStep questStep11 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep11.CompletionQuestVariablesFlags = list75; reference89 = questStep; questSequence29.Steps = list4; reference85 = questSequence; - ref QuestSequence reference90 = ref span31[4]; - QuestSequence obj54 = new QuestSequence + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(-37.667046f, -0.00014948845f, -136.80333f), 963) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(-37.667046f, -0.00014948845f, -136.80333f), 963) { StopDistance = 0.25f }; - obj54.Steps = list79; - reference90 = obj54; - ref QuestSequence reference91 = ref span31[5]; + obj52.Steps = list76; + reference90 = obj52; + num++; + ref QuestSequence reference91 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 @@ -292577,62 +353039,76 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span37 = CollectionsMarshal.AsSpan(list4); - span37[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMehrydesMeyhane }; - span37[1] = new QuestStep(EInteractionType.Interact, 1039001u, new Vector3(-20.096191f, 3.0099998f, -226.79486f), 963); - span37[2] = new QuestStep(EInteractionType.Interact, 1037317u, new Vector3(-25.314758f, 1.7999934f, -185.96173f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039001u, new Vector3(-20.096191f, 3.0099998f, -226.79486f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037317u, new Vector3(-25.314758f, 1.7999934f, -185.96173f), 963); questSequence30.Steps = list4; reference91 = questSequence; - ref QuestSequence reference92 = ref span31[6]; - QuestSequence obj55 = new QuestSequence + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); - obj55.Steps = list80; - reference92 = obj55; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); + obj53.Steps = list77; + reference92 = obj53; questRoot23.QuestSequence = list2; AddQuest(questId11, questRoot); QuestId questId12 = new QuestId(4411); questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; - questRoot24.Author = list81; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "liza"; + questRoot24.Author = list78; QuestRoot questRoot25 = questRoot; - num = 13; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span38 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference93 = ref span38[0]; - QuestSequence obj56 = new QuestSequence + index = 13; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); - obj56.Steps = list82; - reference93 = obj56; - ref QuestSequence reference94 = ref span38[1]; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence31 = questSequence; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1039002u, new Vector3(57.04193f, 26.99999f, 46.383568f), 963) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039002u, new Vector3(57.04193f, 26.99999f, 46.383568f), 963) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -292641,9 +353117,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence31.Steps = list83; + questSequence31.Steps = list80; reference94 = questSequence; - ref QuestSequence reference95 = ref span38[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -292652,25 +353129,31 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span39 = CollectionsMarshal.AsSpan(list4); - span39[0] = new QuestStep(EInteractionType.Interact, 1039539u, new Vector3(87.662964f, 27.06f, 28.030762f), 963); - span39[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039539u, new Vector3(87.662964f, 27.06f, 28.030762f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanKama }; - span39[2] = new QuestStep(EInteractionType.Interact, 1039540u, new Vector3(149.79773f, 27.049997f, 39.627686f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039540u, new Vector3(149.79773f, 27.049997f, 39.627686f), 963); questSequence32.Steps = list4; reference95 = questSequence; - ref QuestSequence reference96 = ref span38[3]; + num++; + ref QuestSequence reference96 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence33 = questSequence; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) { AethernetShortcut = new AethernetShortcut { @@ -292678,159 +353161,198 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence33.Steps = list84; + questSequence33.Steps = list81; reference96 = questSequence; - ref QuestSequence reference97 = ref span38[4]; - QuestSequence obj57 = new QuestSequence + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); - obj57.Steps = list85; - reference97 = obj57; - ref QuestSequence reference98 = ref span38[5]; - QuestSequence obj58 = new QuestSequence + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); + obj55.Steps = list82; + reference97 = obj55; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2012194u, new Vector3(-103.83765f, 24.948364f, 87.57141f), 963); - obj58.Steps = list86; - reference98 = obj58; - ref QuestSequence reference99 = ref span38[6]; - QuestSequence obj59 = new QuestSequence + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1037321u, new Vector3(-143.14496f, 24f, 93.003784f), 963); - obj59.Steps = list87; - reference99 = obj59; - ref QuestSequence reference100 = ref span38[7]; - QuestSequence obj60 = new QuestSequence + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037321u, new Vector3(-143.14496f, 24f, 93.003784f), 963); + obj57.Steps = list84; + reference99 = obj57; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2012195u, new Vector3(-104.57007f, 25.192627f, 87.63245f), 963); - obj60.Steps = list88; - reference100 = obj60; - ref QuestSequence reference101 = ref span38[8]; - QuestSequence obj61 = new QuestSequence + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1037319u, new Vector3(-123.49127f, 24f, 88.57861f), 963); - obj61.Steps = list89; - reference101 = obj61; - ref QuestSequence reference102 = ref span38[9]; - QuestSequence obj62 = new QuestSequence + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037319u, new Vector3(-123.49127f, 24f, 88.57861f), 963); + obj59.Steps = list86; + reference101 = obj59; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2012196u, new Vector3(-104.234375f, 24.734863f, 87.57141f), 963); - obj62.Steps = list90; - reference102 = obj62; - ref QuestSequence reference103 = ref span38[10]; - QuestSequence obj63 = new QuestSequence + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 10 }; num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1037320u, new Vector3(-115.739685f, 24f, 97.0625f), 963); - obj63.Steps = list91; - reference103 = obj63; - ref QuestSequence reference104 = ref span38[11]; - QuestSequence obj64 = new QuestSequence + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037320u, new Vector3(-115.739685f, 24f, 97.0625f), 963); + obj61.Steps = list88; + reference103 = obj61; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); - obj64.Steps = list92; - reference104 = obj64; - ref QuestSequence reference105 = ref span38[12]; - QuestSequence obj65 = new QuestSequence + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); + obj62.Steps = list89; + reference104 = obj62; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963); - obj65.Steps = list93; - reference105 = obj65; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963); + obj63.Steps = list90; + reference105 = obj63; questRoot25.QuestSequence = list2; AddQuest(questId12, questRoot); QuestId questId13 = new QuestId(4412); questRoot = new QuestRoot(); QuestRoot questRoot26 = questRoot; num = 1; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; - questRoot26.Author = list94; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; + questRoot26.Author = list91; QuestRoot questRoot27 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span40 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference106 = ref span40[0]; - QuestSequence obj66 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039004u, new Vector3(-158.80066f, 23.999973f, 112.291016f), 963); - obj66.Steps = list95; - reference106 = obj66; - ref QuestSequence reference107 = ref span40[1]; - QuestSequence obj67 = new QuestSequence + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1039005u, new Vector3(-207.7821f, 36f, 76.798584f), 963); - obj67.Steps = list96; - reference107 = obj67; - ref QuestSequence reference108 = ref span40[2]; - QuestSequence obj68 = new QuestSequence + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039005u, new Vector3(-207.7821f, 36f, 76.798584f), 963); + obj65.Steps = list93; + reference107 = obj65; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1039007u, new Vector3(499.87024f, 51.57471f, -597.1924f), 957) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039007u, new Vector3(499.87024f, 51.57471f, -597.1924f), 957) { StopDistance = 5f }; - obj68.Steps = list97; - reference108 = obj68; - ref QuestSequence reference109 = ref span40[3]; + obj66.Steps = list94; + reference108 = obj66; + num++; + ref QuestSequence reference109 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292839,156 +353361,191 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2012197u, new Vector3(454.06262f, 29.251465f, -491.3253f), 957) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; + QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2012197u, new Vector3(454.06262f, 29.251465f, -491.3253f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 13994u; - obj69.KillEnemyDataIds = list98; - reference110 = obj69; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + span6 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span6[index3] = 13994u; + obj67.KillEnemyDataIds = list95; + reference110 = obj67; questSequence34.Steps = list4; reference109 = questSequence; - ref QuestSequence reference111 = ref span40[4]; + num++; + ref QuestSequence reference111 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence35 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj70 = new QuestStep(EInteractionType.Combat, 2012198u, new Vector3(391.07336f, 14.389221f, -444.29694f), 957) + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; + QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2012198u, new Vector3(391.07336f, 14.389221f, -444.29694f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span41 = CollectionsMarshal.AsSpan(list99); - span41[0] = 13992u; - span41[1] = 13993u; - obj70.KillEnemyDataIds = list99; - reference112 = obj70; + index3 = 2; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + span6 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span6[num3] = 13992u; + num3++; + span6[num3] = 13993u; + obj68.KillEnemyDataIds = list96; + reference112 = obj68; questSequence35.Steps = list4; reference111 = questSequence; - ref QuestSequence reference113 = ref span40[5]; - QuestSequence obj71 = new QuestSequence + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1039010u, new Vector3(382.71155f, 3.1168795f, -270.4662f), 957); - obj71.Steps = list100; - reference113 = obj71; - ref QuestSequence reference114 = ref span40[6]; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 6, Comment = "TODO Missing completion flags" }; QuestSequence questSequence36 = questSequence; - num2 = 5; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span42 = CollectionsMarshal.AsSpan(list4); - span42[0] = new QuestStep(EInteractionType.Interact, 1039014u, new Vector3(367.33044f, 3.1168795f, -247.6997f), 957); - span42[1] = new QuestStep(EInteractionType.Interact, 1039015u, new Vector3(369.10046f, 3.1168795f, -247.39453f), 957); - span42[2] = new QuestStep(EInteractionType.Interact, 1039017u, new Vector3(391.77527f, 3.3857868f, -207.75165f), 957); - span42[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) + index2 = 5; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039014u, new Vector3(367.33044f, 3.1168795f, -247.6997f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039015u, new Vector3(369.10046f, 3.1168795f, -247.39453f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039017u, new Vector3(391.77527f, 3.3857868f, -207.75165f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) { Aetheryte = EAetheryteLocation.ThavnairPalakasStand }; - span42[4] = new QuestStep(EInteractionType.Interact, 1039016u, new Vector3(438.22375f, 3.1179183f, -224.10931f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039016u, new Vector3(438.22375f, 3.1179183f, -224.10931f), 957); questSequence36.Steps = list4; reference114 = questSequence; - ref QuestSequence reference115 = ref span40[7]; - QuestSequence obj72 = new QuestSequence + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); - obj72.Steps = list101; - reference115 = obj72; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); + obj70.Steps = list98; + reference115 = obj70; questRoot27.QuestSequence = list2; AddQuest(questId13, questRoot); QuestId questId14 = new QuestId(4413); questRoot = new QuestRoot(); QuestRoot questRoot28 = questRoot; num = 1; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; - questRoot28.Author = list102; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; + questRoot28.Author = list99; QuestRoot questRoot29 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span43 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference116 = ref span43[0]; - QuestSequence obj73 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); - obj73.Steps = list103; - reference116 = obj73; - ref QuestSequence reference117 = ref span43[1]; - QuestSequence obj74 = new QuestSequence + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1039022u, new Vector3(399.3744f, 3.1168792f, -272.84656f), 957) + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039022u, new Vector3(399.3744f, 3.1168792f, -272.84656f), 957) { DisableNavmesh = true }; - obj74.Steps = list104; - reference117 = obj74; - ref QuestSequence reference118 = ref span43[2]; + obj72.Steps = list101; + reference117 = obj72; + num++; + ref QuestSequence reference118 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence37 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span44 = CollectionsMarshal.AsSpan(list4); - span44[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011995u, new Vector3(118.45581f, 4.92865f, -343.89258f), 957) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011995u, new Vector3(118.45581f, 4.92865f, -343.89258f), 957) { AetherCurrentId = 2818331u }; - ref QuestStep reference119 = ref span44[1]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1039023u, new Vector3(55.77173f, 14.571876f, -330.46472f), 957); + num2++; + ref QuestStep reference119 = ref span3[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1039023u, new Vector3(55.77173f, 14.571876f, -330.46472f), 957); num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new DialogueChoice + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + span4 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD105_04413_Q1_000_095"), Answer = new ExcelRef("TEXT_AKTKMD105_04413_A1_000_096") }; - questStep10.DialogueChoices = list105; - reference119 = questStep10; + questStep12.DialogueChoices = list102; + reference119 = questStep12; questSequence37.Steps = list4; reference118 = questSequence; - ref QuestSequence reference120 = ref span43[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292997,189 +353554,235 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj75 = new QuestStep(EInteractionType.Combat, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference121 = ref span3[index2]; + QuestStep obj73 = new QuestStep(EInteractionType.Combat, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = 13991u; - span45[1] = 13990u; - obj75.KillEnemyDataIds = list106; - reference121 = obj75; + index3 = 2; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span6 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span6[num3] = 13991u; + num3++; + span6[num3] = 13990u; + obj73.KillEnemyDataIds = list103; + reference121 = obj73; questSequence38.Steps = list4; reference120 = questSequence; - ref QuestSequence reference122 = ref span43[4]; - QuestSequence obj76 = new QuestSequence + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957); - obj76.Steps = list107; - reference122 = obj76; - ref QuestSequence reference123 = ref span43[5]; - QuestSequence obj77 = new QuestSequence + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2012200u, new Vector3(53.72693f, 18.264954f, -291.58472f), 957); - obj77.Steps = list108; - reference123 = obj77; - ref QuestSequence reference124 = ref span43[6]; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence39 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2012201u, new Vector3(237.62866f, 7.156433f, -273.33484f), 957) + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference125 = ref span3[num2]; + QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2012201u, new Vector3(237.62866f, 7.156433f, -273.33484f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 13989u; - obj78.KillEnemyDataIds = list109; - reference125 = obj78; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + span6 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span6[index3] = 13989u; + obj76.KillEnemyDataIds = list106; + reference125 = obj76; questSequence39.Steps = list4; reference124 = questSequence; - ref QuestSequence reference126 = ref span43[7]; - QuestSequence obj79 = new QuestSequence + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2012202u, new Vector3(311.4519f, 7.7667847f, -198.23004f), 957); - obj79.Steps = list110; - reference126 = obj79; - ref QuestSequence reference127 = ref span43[8]; - QuestSequence obj80 = new QuestSequence + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039027u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); - obj80.Steps = list111; - reference127 = obj80; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039027u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); + obj78.Steps = list108; + reference127 = obj78; questRoot29.QuestSequence = list2; AddQuest(questId14, questRoot); QuestId questId15 = new QuestId(4414); questRoot = new QuestRoot(); QuestRoot questRoot30 = questRoot; num = 1; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; - questRoot30.Author = list112; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; + questRoot30.Author = list109; QuestRoot questRoot31 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span46 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference128 = ref span46[0]; - QuestSequence obj81 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039028u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); - obj81.Steps = list113; - reference128 = obj81; - ref QuestSequence reference129 = ref span46[1]; - QuestSequence obj82 = new QuestSequence + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957); - obj82.Steps = list114; - reference129 = obj82; - ref QuestSequence reference130 = ref span46[2]; - QuestSequence obj83 = new QuestSequence + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1039030u, new Vector3(408.65186f, 13.167275f, -184.37476f), 957); - obj83.Steps = list115; - reference130 = obj83; - ref QuestSequence reference131 = ref span46[3]; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence40 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span47 = CollectionsMarshal.AsSpan(list4); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.0377f, 15.147404f, -147.8739f), 957); - span47[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011996u, new Vector3(550.01135f, 25.467285f, -159.1059f), 957) + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.0377f, 15.147404f, -147.8739f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011996u, new Vector3(550.01135f, 25.467285f, -159.1059f), 957) { DisableNavmesh = true, AetherCurrentId = 2818332u }; - span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(536.3203f, 12.722106f, -95.65565f), 957); - ref QuestStep reference132 = ref span47[3]; - QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(498.18472f, 4.909424f, 1.4510483f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(536.3203f, 12.722106f, -95.65565f), 957); + num2++; + ref QuestStep reference132 = ref span3[num2]; + QuestStep obj82 = new QuestStep(EInteractionType.Combat, null, new Vector3(498.18472f, 4.909424f, 1.4510483f), 957) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 13988u; - obj84.KillEnemyDataIds = list116; - reference132 = obj84; + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span6 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span6[num3] = 13988u; + obj82.KillEnemyDataIds = list113; + reference132 = obj82; questSequence40.Steps = list4; reference131 = questSequence; - ref QuestSequence reference133 = ref span46[4]; - QuestSequence obj85 = new QuestSequence + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1039034u, new Vector3(494.83484f, 5.376761f, 2.7313232f), 957); - obj85.Steps = list117; - reference133 = obj85; - ref QuestSequence reference134 = ref span46[5]; - QuestSequence obj86 = new QuestSequence + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1039035u, new Vector3(573.5714f, 16.272768f, 130.11365f), 957); - obj86.Steps = list118; - reference134 = obj86; - ref QuestSequence reference135 = ref span46[6]; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 6 @@ -293188,165 +353791,210 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span48 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference136 = ref span48[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference136 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(521.0876f, 11.819632f, 266.03055f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep11 = questStep; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 13987u; - questStep11.KillEnemyDataIds = list119; - QuestStep questStep12 = questStep; - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span49 = CollectionsMarshal.AsSpan(list120); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list120; - reference136 = questStep; - ref QuestStep reference137 = ref span48[1]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(571.6434f, 32.12932f, 370.01733f), 957) - { - StopDistance = 0.25f, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; QuestStep questStep13 = questStep; num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 13986u; - questStep13.KillEnemyDataIds = list121; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + span6 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span6[index3] = 13987u; + questStep13.KillEnemyDataIds = list116; QuestStep questStep14 = questStep; - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list122; - reference137 = questStep; - ref QuestStep reference138 = ref span48[2]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(660.18604f, 44.997604f, 196.7378f), 957) + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep14.CompletionQuestVariablesFlags = list75; + reference136 = questStep; + index2++; + ref QuestStep reference137 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(571.6434f, 32.12932f, 370.01733f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep15 = questStep; - num3 = 2; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span51 = CollectionsMarshal.AsSpan(list123); - span51[0] = 13985u; - span51[1] = 13984u; - questStep15.KillEnemyDataIds = list123; + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + span6 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span6[index3] = 13986u; + questStep15.KillEnemyDataIds = list117; QuestStep questStep16 = questStep; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span52 = CollectionsMarshal.AsSpan(list124); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list124; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep16.CompletionQuestVariablesFlags = list75; + reference137 = questStep; + index2++; + ref QuestStep reference138 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(660.18604f, 44.997604f, 196.7378f), 957) + { + StopDistance = 0.25f, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + QuestStep questStep17 = questStep; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span6 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span6[index3] = 13985u; + index3++; + span6[index3] = 13984u; + questStep17.KillEnemyDataIds = list118; + QuestStep questStep18 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep18.CompletionQuestVariablesFlags = list75; reference138 = questStep; questSequence41.Steps = list4; reference135 = questSequence; - ref QuestSequence reference139 = ref span46[7]; - QuestSequence obj87 = new QuestSequence + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039036u, new Vector3(628.62585f, 37.497498f, 246.02112f), 957); - obj87.Steps = list125; - reference139 = obj87; + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039036u, new Vector3(628.62585f, 37.497498f, 246.02112f), 957); + obj85.Steps = list119; + reference139 = obj85; questRoot31.QuestSequence = list2; AddQuest(questId15, questRoot); QuestId questId16 = new QuestId(4415); questRoot = new QuestRoot(); QuestRoot questRoot32 = questRoot; num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; - questRoot32.Author = list126; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; + questRoot32.Author = list120; QuestRoot questRoot33 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span53 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference140 = ref span53[0]; - QuestSequence obj88 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039047u, new Vector3(537.77356f, 10.226297f, 238.75781f), 957); - obj88.Steps = list127; - reference140 = obj88; - ref QuestSequence reference141 = ref span53[1]; - QuestSequence obj89 = new QuestSequence + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 2012207u, new Vector3(270.0083f, 11.550964f, 147.6615f), 957); - obj89.Steps = list128; - reference141 = obj89; - ref QuestSequence reference142 = ref span53[2]; - QuestSequence obj90 = new QuestSequence + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1039051u, new Vector3(153.33789f, -35.629883f, 141.25269f), 957) + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039051u, new Vector3(153.33789f, -35.629883f, 141.25269f), 957) { DisableNavmesh = true }; - obj90.Steps = list129; - reference142 = obj90; - ref QuestSequence reference143 = ref span53[3]; + obj88.Steps = list123; + reference142 = obj88; + num++; + ref QuestSequence reference143 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence42 = questSequence; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 2012208u, new Vector3(163.80554f, -60.471558f, 133.25696f), 957) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012208u, new Vector3(163.80554f, -60.471558f, 133.25696f), 957) { StopDistance = 1f, DisableNavmesh = true }; - questSequence42.Steps = list130; + questSequence42.Steps = list124; reference143 = questSequence; - ref QuestSequence reference144 = ref span53[4]; + num++; + ref QuestSequence reference144 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 @@ -293355,147 +354003,187 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span54 = CollectionsMarshal.AsSpan(list4); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.94444f, -0.6f, 145.83025f), 957) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.94444f, -0.6f, 145.83025f), 957) { DisableNavmesh = true, Mount = true }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.0308f, 0.57823455f, 150.66217f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.0308f, 0.57823455f, 150.66217f), 957) { DisableNavmesh = true }; - span54[2] = new QuestStep(EInteractionType.Interact, 1039052u, new Vector3(155.2605f, 11.6644f, 217.85303f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039052u, new Vector3(155.2605f, 11.6644f, 217.85303f), 957); questSequence43.Steps = list4; reference144 = questSequence; - ref QuestSequence reference145 = ref span53[5]; - QuestSequence obj91 = new QuestSequence + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039056u, new Vector3(-36.484375f, 25.65825f, -319.87494f), 957) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039056u, new Vector3(-36.484375f, 25.65825f, -319.87494f), 957) { StopDistance = 5f }; - obj91.Steps = list131; - reference145 = obj91; + obj89.Steps = list125; + reference145 = obj89; questRoot33.QuestSequence = list2; AddQuest(questId16, questRoot); QuestId questId17 = new QuestId(4416); questRoot = new QuestRoot(); QuestRoot questRoot34 = questRoot; num = 1; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; - questRoot34.Author = list132; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + span = CollectionsMarshal.AsSpan(list126); + index = 0; + span[index] = "liza"; + questRoot34.Author = list126; QuestRoot questRoot35 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span55 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference146 = ref span55[0]; - QuestSequence obj92 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039058u, new Vector3(-38.19336f, 25.818825f, -318.47113f), 957); - obj92.Steps = list133; - reference146 = obj92; - ref QuestSequence reference147 = ref span55[1]; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence44 = questSequence; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1039059u, new Vector3(381.88745f, 3.1168795f, -262.0432f), 957) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039059u, new Vector3(381.88745f, 3.1168795f, -262.0432f), 957) { StopDistance = 15f, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - questSequence44.Steps = list134; + questSequence44.Steps = list128; reference147 = questSequence; - ref QuestSequence reference148 = ref span55[2]; - QuestSequence obj93 = new QuestSequence + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957) + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957) { StopDistance = 7f }; - obj93.Steps = list135; - reference148 = obj93; - ref QuestSequence reference149 = ref span55[3]; + obj91.Steps = list129; + reference148 = obj91; + num++; + ref QuestSequence reference149 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence45 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span56 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference150 = ref span56[0]; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference150 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1037628u, new Vector3(432.9137f, 3.1168795f, -243.76288f), 957); - QuestStep questStep17 = questStep; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span57 = CollectionsMarshal.AsSpan(list136); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list136; - reference150 = questStep; - ref QuestStep reference151 = ref span56[1]; - questStep = new QuestStep(EInteractionType.Interact, 1040449u, new Vector3(368.64258f, 3.5858154f, -238.3612f), 957); - QuestStep questStep18 = questStep; - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span58 = CollectionsMarshal.AsSpan(list137); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list137; - reference151 = questStep; - ref QuestStep reference152 = ref span56[2]; - questStep = new QuestStep(EInteractionType.Interact, 1037629u, new Vector3(430.01453f, 13.027412f, -200.85455f), 957); QuestStep questStep19 = questStep; num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span59 = CollectionsMarshal.AsSpan(list138); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list138; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list75; + reference150 = questStep; + num2++; + ref QuestStep reference151 = ref span3[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); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep20.CompletionQuestVariablesFlags = list75; + reference151 = questStep; + num2++; + ref QuestStep reference152 = ref span3[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); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list75; reference152 = questStep; questSequence45.Steps = list4; reference149 = questSequence; - ref QuestSequence reference153 = ref span55[4]; + num++; + ref QuestSequence reference153 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -293504,16 +354192,19 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span60 = CollectionsMarshal.AsSpan(list4); - span60[0] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957) { PickUpQuestId = new QuestId(4259) }; - span60[1] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957) { PickUpQuestId = new QuestId(4257) }; - span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957); questSequence46.Steps = list4; reference153 = questSequence; questRoot35.QuestSequence = list2; @@ -293522,72 +354213,86 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot36 = questRoot; num = 1; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; - questRoot36.Author = list139; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; + questRoot36.Author = list130; QuestRoot questRoot37 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span61 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference154 = ref span61[0]; - QuestSequence obj94 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039068u, new Vector3(425.10107f, 3.1168795f, -262.62305f), 957) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039068u, new Vector3(425.10107f, 3.1168795f, -262.62305f), 957) { StopDistance = 8f }; - obj94.Steps = list140; - reference154 = obj94; - ref QuestSequence reference155 = ref span61[1]; - QuestSequence obj95 = new QuestSequence + obj92.Steps = list131; + reference154 = obj92; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1040351u, new Vector3(518.2726f, 54.344826f, -597.83325f), 957) + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040351u, new Vector3(518.2726f, 54.344826f, -597.83325f), 957) { Fly = true }; - obj95.Steps = list141; - reference155 = obj95; - ref QuestSequence reference156 = ref span61[2]; + obj93.Steps = list132; + reference155 = obj93; + num++; + ref QuestSequence reference156 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence47 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span62 = CollectionsMarshal.AsSpan(list4); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.50446f, 55.259193f, -683.829f), 957) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.50446f, 55.259193f, -683.829f), 957) { TargetTerritoryId = (ushort)963, Fly = true, Comment = "Travel to Radz-at-Han" }; - span62[1] = new QuestStep(EInteractionType.Interact, 1040354u, new Vector3(1.8157349f, -1.9999962f, 95.750244f), 963); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040354u, new Vector3(1.8157349f, -1.9999962f, 95.750244f), 963); questSequence47.Steps = list4; reference156 = questSequence; - ref QuestSequence reference157 = ref span61[3]; + num++; + ref QuestSequence reference157 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence48 = questSequence; num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1040358u, new Vector3(-69.62695f, 25.000006f, -35.324707f), 963) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040358u, new Vector3(-69.62695f, 25.000006f, -35.324707f), 963) { AethernetShortcut = new AethernetShortcut { @@ -293595,82 +354300,100 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence48.Steps = list142; + questSequence48.Steps = list133; reference157 = questSequence; - ref QuestSequence reference158 = ref span61[4]; - QuestSequence obj96 = new QuestSequence + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1040359u, new Vector3(-121.26343f, 31f, 9.109558f), 963); - obj96.Steps = list143; - reference158 = obj96; - ref QuestSequence reference159 = ref span61[5]; - QuestSequence obj97 = new QuestSequence + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040359u, new Vector3(-121.26343f, 31f, 9.109558f), 963); + obj94.Steps = list134; + reference158 = obj94; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 2012209u, new Vector3(-206.65302f, 35.99597f, 67.46008f), 963); - obj97.Steps = list144; - reference159 = obj97; - ref QuestSequence reference160 = ref span61[6]; - QuestSequence obj98 = new QuestSequence + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040360u, new Vector3(-207.17181f, 36f, 71.70203f), 963) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040360u, new Vector3(-207.17181f, 36f, 71.70203f), 963) { StopDistance = 7f }; - obj98.Steps = list145; - reference160 = obj98; + obj96.Steps = list136; + reference160 = obj96; questRoot37.QuestSequence = list2; AddQuest(questId18, questRoot); QuestId questId19 = new QuestId(4418); questRoot = new QuestRoot(); QuestRoot questRoot38 = questRoot; num = 1; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; - questRoot38.Author = list146; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "liza"; + questRoot38.Author = list137; QuestRoot questRoot39 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span63 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference161 = ref span63[0]; - QuestSequence obj99 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040372u, new Vector3(-214.40454f, 36f, 64.86609f), 963); - obj99.Steps = list147; - reference161 = obj99; - ref QuestSequence reference162 = ref span63[1]; - QuestSequence obj100 = new QuestSequence + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040372u, new Vector3(-214.40454f, 36f, 64.86609f), 963); + obj97.Steps = list138; + reference161 = obj97; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1040373u, new Vector3(-0.3204956f, -2.514571E-07f, -2.1210327f), 963); - obj100.Steps = list148; - reference162 = obj100; - ref QuestSequence reference163 = ref span63[2]; + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -293679,31 +354402,38 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span64 = CollectionsMarshal.AsSpan(list4); - span64[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.RadzAtHan }; - span64[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost }; - span64[2] = new QuestStep(EInteractionType.Interact, 1040374u, new Vector3(-145.80005f, 3.9999294f, -83.9704f), 963); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040374u, new Vector3(-145.80005f, 3.9999294f, -83.9704f), 963); questSequence49.Steps = list4; reference163 = questSequence; - ref QuestSequence reference164 = ref span63[3]; - QuestSequence obj101 = new QuestSequence + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1040375u, new Vector3(-172.1676f, 4.061f, -87.90729f), 963); - obj101.Steps = list149; - reference164 = obj101; - ref QuestSequence reference165 = ref span63[4]; + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 @@ -293712,32 +354442,39 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1040375u, new Vector3(-172.1676f, 4.061f, -87.90729f), 963); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference166 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD110_04418_Q2_000_172"), Answer = new ExcelRef("TEXT_AKTKMD110_04418_A2_000_173") }; - questStep20.DialogueChoices = list150; - reference166 = questStep20; + questStep22.DialogueChoices = list141; + reference166 = questStep22; questSequence50.Steps = list4; reference165 = questSequence; - ref QuestSequence reference167 = ref span63[5]; + num++; + ref QuestSequence reference167 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence51 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference168 = ref span3[num2]; + QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AethernetShortcut = new AethernetShortcut { @@ -293746,82 +354483,98 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + span4 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD110_04418_Q3_000_223"), Answer = new ExcelRef("TEXT_AKTKMD110_04418_A3_000_225") }; - obj102.DialogueChoices = list151; - reference168 = obj102; + obj100.DialogueChoices = list142; + reference168 = obj100; questSequence51.Steps = list4; reference167 = questSequence; - ref QuestSequence reference169 = ref span63[6]; - QuestSequence obj103 = new QuestSequence + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1040379u, new Vector3(8.010925f, 3.02f, -198.19946f), 963); - obj103.Steps = list152; - reference169 = obj103; - ref QuestSequence reference170 = ref span63[7]; - QuestSequence obj104 = new QuestSequence + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040382u, new Vector3(2.9450073f, -1.9999962f, 87.44946f), 963) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040382u, new Vector3(2.9450073f, -1.9999962f, 87.44946f), 963) { StopDistance = 5f }; - obj104.Steps = list153; - reference170 = obj104; + obj102.Steps = list144; + reference170 = obj102; questRoot39.QuestSequence = list2; AddQuest(questId19, questRoot); QuestId questId20 = new QuestId(4419); questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; - questRoot40.Author = list154; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; + questRoot40.Author = list145; QuestRoot questRoot41 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span65 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference171 = ref span65[0]; - QuestSequence obj105 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040386u, new Vector3(5.1116943f, -1.9999962f, 88.12085f), 963) + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040386u, new Vector3(5.1116943f, -1.9999962f, 88.12085f), 963) { StopDistance = 5f }; - obj105.Steps = list155; - reference171 = obj105; - ref QuestSequence reference172 = ref span65[1]; + obj103.Steps = list146; + reference171 = obj103; + num++; + ref QuestSequence reference172 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence52 = questSequence; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -293831,9 +354584,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - questSequence52.Steps = list156; + questSequence52.Steps = list147; reference172 = questSequence; - ref QuestSequence reference173 = ref span65[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -293842,7 +354596,9 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list4)[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference174 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Interact, 2012123u, new Vector3(-64.042114f, -37.70508f, -210.52875f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -293852,93 +354608,106 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - QuestStep questStep21 = questStep; - num3 = 4; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span66 = CollectionsMarshal.AsSpan(list157); - span66[0] = new DialogueChoice + QuestStep questStep23 = questStep; + index3 = 4; + list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q2_000_071") }; - span66[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q3_000_083"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A3_000_087") }; - span66[2] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q4_000_113"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A4_000_114") }; - span66[3] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q5_000_129"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A5_000_131") }; - questStep21.DialogueChoices = list157; + questStep23.DialogueChoices = list15; reference174 = questStep; questSequence53.Steps = list4; reference173 = questSequence; - ref QuestSequence reference175 = ref span65[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence54 = questSequence; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) { StopDistance = 6f }; - questSequence54.Steps = list158; - reference175 = questSequence; + obj104.Steps = list148; + reference175 = obj104; questRoot41.QuestSequence = list2; AddQuest(questId20, questRoot); QuestId questId21 = new QuestId(4420); questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "liza"; - questRoot42.Author = list159; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "liza"; + questRoot42.Author = list149; QuestRoot questRoot43 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span67 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference176 = ref span67[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence55 = questSequence; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) { StopDistance = 6f }; - questSequence55.Steps = list160; - reference176 = questSequence; - ref QuestSequence reference177 = ref span67[1]; + obj105.Steps = list150; + reference176 = obj105; + num++; + ref QuestSequence reference177 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence56 = questSequence; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + QuestSequence questSequence54 = questSequence; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -293947,23 +354716,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - questSequence56.Steps = list161; + questSequence54.Steps = list151; reference177 = questSequence; - span67[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference178 = ref span67[3]; + num++; + ref QuestSequence reference178 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence57 = questSequence; + QuestSequence questSequence55 = questSequence; num2 = 5; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span68 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference179 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference179 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Jump, null, new Vector3(-6.1157894f, 2.0849845f, -4.654831f), 1031) { JumpDestination = new JumpDestination @@ -293971,267 +354743,339 @@ public static class AssemblyQuestLoader Position = new Vector3(-1.5539734f, 3.6164591f, -1.1141448f) } }; - QuestStep questStep22 = questStep; + QuestStep questStep24 = questStep; skipConditions3 = new SkipConditions(); SkipConditions skipConditions5 = skipConditions3; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions3 = skipStepConditions; num3 = 6; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span69 = CollectionsMarshal.AsSpan(list162); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - skipStepConditions3.CompletionQuestVariablesFlags = list162; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + skipStepConditions3.CompletionQuestVariablesFlags = list75; skipConditions5.StepIf = skipStepConditions; - questStep22.SkipConditions = skipConditions3; + questStep24.SkipConditions = skipConditions3; reference179 = questStep; - ref QuestStep reference180 = ref span68[1]; + index2++; + ref QuestStep reference180 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Interact, 2012128u, new Vector3(-0.001528129f, 4.931927f, 0.01416349f), 1031); - QuestStep questStep23 = questStep; - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span70 = CollectionsMarshal.AsSpan(list163); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list163; - reference180 = questStep; - ref QuestStep reference181 = ref span68[2]; - questStep = new QuestStep(EInteractionType.Interact, 1039993u, new Vector3(20.61493f, 0.2999945f, -9.353821f), 1031); - QuestStep questStep24 = questStep; - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span71 = CollectionsMarshal.AsSpan(list164); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list164; - reference181 = questStep; - ref QuestStep reference182 = ref span68[3]; - questStep = new QuestStep(EInteractionType.Interact, 1039994u, new Vector3(51.163452f, 0.8999986f, 2.1209717f), 1031); QuestStep questStep25 = questStep; - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span72 = CollectionsMarshal.AsSpan(list165); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep25.CompletionQuestVariablesFlags = list165; - reference182 = questStep; - ref QuestStep reference183 = ref span68[4]; - questStep = new QuestStep(EInteractionType.Interact, 1039995u, new Vector3(-37.003174f, 0.90000004f, -4.1657104f), 1031); + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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)1, 0, EQuestWorkMode.Bitwise); + questStep25.CompletionQuestVariablesFlags = list75; + reference180 = questStep; + index2++; + ref QuestStep reference181 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1039993u, new Vector3(20.61493f, 0.2999945f, -9.353821f), 1031); QuestStep questStep26 = questStep; num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span73 = CollectionsMarshal.AsSpan(list166); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list166; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep26.CompletionQuestVariablesFlags = list75; + reference181 = questStep; + index2++; + ref QuestStep reference182 = ref span3[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); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep27.CompletionQuestVariablesFlags = list75; + reference182 = questStep; + index2++; + ref QuestStep reference183 = ref span3[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); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list75; reference183 = questStep; - questSequence57.Steps = list4; + questSequence55.Steps = list4; reference178 = questSequence; - ref QuestSequence reference184 = ref span67[4]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2012129u, new Vector3(-0.07635498f, 2.2124634f, 61.600586f), 1031); - obj106.Steps = list167; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012129u, new Vector3(-0.07635498f, 2.2124634f, 61.600586f), 1031); + obj106.Steps = list152; reference184 = obj106; - ref QuestSequence reference185 = ref span67[5]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence58 = questSequence; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) { StopDistance = 5f }; - questSequence58.Steps = list168; - reference185 = questSequence; + obj107.Steps = list153; + reference185 = obj107; questRoot43.QuestSequence = list2; AddQuest(questId21, questRoot); QuestId questId22 = new QuestId(4421); questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; - questRoot44.Author = list169; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "liza"; + questRoot44.Author = list154; QuestRoot questRoot45 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span74 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference186 = ref span74[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence59 = questSequence; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) { StopDistance = 5f }; - questSequence59.Steps = list170; - reference186 = questSequence; - ref QuestSequence reference187 = ref span74[1]; - QuestSequence obj107 = new QuestSequence + obj108.Steps = list155; + reference186 = obj108; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); - obj107.Steps = list171; - reference187 = obj107; - ref QuestSequence reference188 = ref span74[2]; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence60 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj108 = new QuestStep(EInteractionType.Combat, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961) + QuestSequence questSequence56 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference189 = ref span3[num2]; + questStep = new QuestStep(EInteractionType.Combat, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 3; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span75 = CollectionsMarshal.AsSpan(list172); - span75[0] = 13447u; - span75[1] = 13448u; - span75[2] = 13449u; - obj108.KillEnemyDataIds = list172; - obj108.CombatItemUse = new CombatItemUse + QuestStep questStep29 = questStep; + index3 = 3; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span6 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span6[num3] = 13447u; + num3++; + span6[num3] = 13448u; + num3++; + span6[num3] = 13449u; + questStep29.KillEnemyDataIds = list157; + questStep.CombatItemUse = new CombatItemUse { ItemId = 2003232u, Condition = ECombatItemUseCondition.HealthPercent, Value = 50 }; - reference189 = obj108; - questSequence60.Steps = list4; + reference189 = questStep; + questSequence56.Steps = list4; reference188 = questSequence; - ref QuestSequence reference190 = ref span74[3]; - QuestSequence obj109 = new QuestSequence + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); - obj109.Steps = list173; - reference190 = obj109; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); + obj110.Steps = list158; + reference190 = obj110; questRoot45.QuestSequence = list2; AddQuest(questId22, questRoot); QuestId questId23 = new QuestId(4422); questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; - questRoot46.Author = list174; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "liza"; + questRoot46.Author = list159; QuestRoot questRoot47 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span76 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference191 = ref span76[0]; - QuestSequence obj110 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); - obj110.Steps = list175; - reference191 = obj110; - ref QuestSequence reference192 = ref span76[1]; - QuestSequence obj111 = new QuestSequence + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1040000u, new Vector3(173.2356f, 7.4767504f, 325.64282f), 961); - obj111.Steps = list176; - reference192 = obj111; - ref QuestSequence reference193 = ref span76[2]; - QuestSequence obj112 = new QuestSequence + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1040003u, new Vector3(229.02258f, 8.085857f, 195.39172f), 961); - obj112.Steps = list177; - reference193 = obj112; - ref QuestSequence reference194 = ref span76[3]; + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence61 = questSequence; + QuestSequence questSequence57 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep27 = new QuestStep(EInteractionType.CompleteQuest, 1040009u, new Vector3(366.84216f, -1.0297052f, 157.61035f), 961); + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference195 = ref span3[index2]; + QuestStep questStep30 = new QuestStep(EInteractionType.CompleteQuest, 1040009u, new Vector3(366.84216f, -1.0297052f, 157.61035f), 961); num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + span4 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME104_04422_Q1_000_094"), Answer = new ExcelRef("TEXT_AKTKME104_04422_A1_000_095") }; - questStep27.DialogueChoices = list178; - reference195 = questStep27; - questSequence61.Steps = list4; + questStep30.DialogueChoices = list163; + reference195 = questStep30; + questSequence57.Steps = list4; reference194 = questSequence; questRoot47.QuestSequence = list2; AddQuest(questId23, questRoot); @@ -294239,349 +355083,428 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; - questRoot48.Author = list179; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + span = CollectionsMarshal.AsSpan(list164); + index = 0; + span[index] = "liza"; + questRoot48.Author = list164; QuestRoot questRoot49 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span77 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference196 = ref span77[0]; - questSequence = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence62 = questSequence; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040014u, new Vector3(368.88684f, -1.1050489f, 158.0376f), 961) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040014u, new Vector3(368.88684f, -1.1050489f, 158.0376f), 961) { StopDistance = 5f }; - questSequence62.Steps = list180; - reference196 = questSequence; - ref QuestSequence reference197 = ref span77[1]; - QuestSequence obj113 = new QuestSequence + obj114.Steps = list165; + reference196 = obj114; + num++; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1040015u, new Vector3(225.78772f, 7.3858566f, 201.37329f), 961); - obj113.Steps = list181; - reference197 = obj113; - ref QuestSequence reference198 = ref span77[2]; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence63 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span78 = CollectionsMarshal.AsSpan(list4); - span78[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + QuestSequence questSequence58 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 6f, Aetheryte = EAetheryteLocation.ElpisAnagnorisis }; - span78[1] = new QuestStep(EInteractionType.Interact, 1040018u, new Vector3(156.45068f, 17.339952f, 53.665894f), 961); - questSequence63.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040018u, new Vector3(156.45068f, 17.339952f, 53.665894f), 961); + questSequence58.Steps = list4; reference198 = questSequence; - ref QuestSequence reference199 = ref span77[3]; - QuestSequence obj114 = new QuestSequence + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1040019u, new Vector3(148.66858f, 16.93996f, 35.477173f), 961); - obj114.Steps = list182; - reference199 = obj114; - ref QuestSequence reference200 = ref span77[4]; + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence64 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1040023u, new Vector3(152.54431f, 16.385857f, 73.258545f), 961); - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + QuestSequence questSequence59 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference201 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q1_000_106"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A1_000_107") }; - questStep28.DialogueChoices = list183; - reference201 = questStep28; - questSequence64.Steps = list4; + questStep31.DialogueChoices = list168; + reference201 = questStep31; + questSequence59.Steps = list4; reference200 = questSequence; - ref QuestSequence reference202 = ref span77[5]; + num++; + ref QuestSequence reference202 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence65 = questSequence; + QuestSequence questSequence60 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference203 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1040970u, new Vector3(146.13562f, 10.385858f, 121.47705f), 961); + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference203 = ref span3[index2]; + QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1040970u, new Vector3(146.13562f, 10.385858f, 121.47705f), 961); num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + span4 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q4_000_178"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A4_000_180") }; - questStep29.DialogueChoices = list184; - reference203 = questStep29; - questSequence65.Steps = list4; + questStep32.DialogueChoices = list169; + reference203 = questStep32; + questSequence60.Steps = list4; reference202 = questSequence; - ref QuestSequence reference204 = ref span77[6]; - QuestSequence obj115 = new QuestSequence + num++; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1040025u, new Vector3(171.83179f, 8.3426f, 180.62097f), 961); - obj115.Steps = list185; - reference204 = obj115; - ref QuestSequence reference205 = ref span77[7]; + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence66 = questSequence; + QuestSequence questSequence61 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1040971u, new Vector3(92.851074f, 10.665586f, 107.133545f), 961); - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference206 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q7_000_313"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A7_000_314") }; - questStep30.DialogueChoices = list186; - reference206 = questStep30; - questSequence66.Steps = list4; + questStep33.DialogueChoices = list171; + reference206 = questStep33; + questSequence61.Steps = list4; reference205 = questSequence; - ref QuestSequence reference207 = ref span77[8]; - QuestSequence obj116 = new QuestSequence + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); - obj116.Steps = list187; - reference207 = obj116; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); + obj118.Steps = list172; + reference207 = obj118; questRoot49.QuestSequence = list2; AddQuest(questId24, questRoot); QuestId questId25 = new QuestId(4424); questRoot = new QuestRoot(); QuestRoot questRoot50 = questRoot; num = 1; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; - questRoot50.Author = list188; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + span = CollectionsMarshal.AsSpan(list173); + index = 0; + span[index] = "liza"; + questRoot50.Author = list173; QuestRoot questRoot51 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span79 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference208 = ref span79[0]; - QuestSequence obj117 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); - obj117.Steps = list189; - reference208 = obj117; - ref QuestSequence reference209 = ref span79[1]; - QuestSequence obj118 = new QuestSequence + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1040031u, new Vector3(269.42847f, 5.8683457f, 266.3462f), 961); - obj118.Steps = list190; - reference209 = obj118; - ref QuestSequence reference210 = ref span79[2]; - QuestSequence obj119 = new QuestSequence + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1040036u, new Vector3(360.1892f, 2.9879394f, 2.6397705f), 961); - obj119.Steps = list191; - reference210 = obj119; - ref QuestSequence reference211 = ref span79[3]; + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence67 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span80 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference212 = ref span80[0]; + QuestSequence questSequence62 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference212 = ref span3[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2012131u, new Vector3(369.19202f, 2.9754639f, 1.5411377f), 961) { ItemId = 2003234u, GroundTarget = true }; - QuestStep questStep31 = questStep; + QuestStep questStep34 = questStep; num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span81 = CollectionsMarshal.AsSpan(list192); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep31.CompletionQuestVariablesFlags = list192; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep34.CompletionQuestVariablesFlags = list75; reference212 = questStep; - ref QuestStep reference213 = ref span80[1]; + num2++; + ref QuestStep reference213 = ref span3[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2012132u, new Vector3(373.18982f, 2.9754639f, 10.788086f), 961) { ItemId = 2003234u, GroundTarget = true }; - QuestStep questStep32 = questStep; - num3 = 6; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span82 = CollectionsMarshal.AsSpan(list193); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep32.CompletionQuestVariablesFlags = list193; + QuestStep questStep35 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep35.CompletionQuestVariablesFlags = list75; reference213 = questStep; - questSequence67.Steps = list4; + questSequence62.Steps = list4; reference211 = questSequence; - ref QuestSequence reference214 = ref span79[4]; - QuestSequence obj120 = new QuestSequence + num++; + ref QuestSequence reference214 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1040036u, new Vector3(360.1892f, 2.9879394f, 2.6397705f), 961); - obj120.Steps = list194; - reference214 = obj120; - ref QuestSequence reference215 = ref span79[5]; - QuestSequence obj121 = new QuestSequence + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); - obj121.Steps = list195; - reference215 = obj121; + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); + obj123.Steps = list178; + reference215 = obj123; questRoot51.QuestSequence = list2; AddQuest(questId25, questRoot); QuestId questId26 = new QuestId(4425); questRoot = new QuestRoot(); QuestRoot questRoot52 = questRoot; num = 1; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; - questRoot52.Author = list196; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; + questRoot52.Author = list179; QuestRoot questRoot53 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span83 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference216 = ref span83[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference216 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence68 = questSequence; + QuestSequence questSequence63 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference217 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep33 = new QuestStep(EInteractionType.AcceptQuest, 1040050u, new Vector3(560.32654f, 9.796983f, 63.70642f), 961); + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference217 = ref span3[index2]; + QuestStep questStep36 = new QuestStep(EInteractionType.AcceptQuest, 1040050u, new Vector3(560.32654f, 9.796983f, 63.70642f), 961); num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + span4 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME107_04425_Q1_000_024"), Answer = new ExcelRef("TEXT_AKTKME107_04425_A1_000_025") }; - questStep33.DialogueChoices = list197; - reference217 = questStep33; - questSequence68.Steps = list4; + questStep36.DialogueChoices = list180; + reference217 = questStep36; + questSequence63.Steps = list4; reference216 = questSequence; - ref QuestSequence reference218 = ref span83[1]; - QuestSequence obj122 = new QuestSequence + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); - obj122.Steps = list198; - reference218 = obj122; - ref QuestSequence reference219 = ref span83[2]; + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence69 = questSequence; + QuestSequence questSequence64 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span84 = CollectionsMarshal.AsSpan(list4); - span84[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012020u, new Vector3(628.2388f, 8.316829f, 107.9021f), 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012020u, new Vector3(628.2388f, 8.316829f, 107.9021f), 961) { AetherCurrentId = 2818374u }; - span84[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(475.2184f, -17.473314f, 47.986946f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(475.2184f, -17.473314f, 47.986946f), 961) { JumpDestination = new JumpDestination { @@ -294589,71 +355512,82 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span84[2] = new QuestStep(EInteractionType.Interact, 1040052u, new Vector3(349.14172f, -14.766006f, -111.61981f), 961); - questSequence69.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040052u, new Vector3(349.14172f, -14.766006f, -111.61981f), 961); + questSequence64.Steps = list4; reference219 = questSequence; - ref QuestSequence reference220 = ref span83[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence70 = questSequence; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1040055u, new Vector3(349.5078f, -14.757837f, -115.15985f), 961) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040055u, new Vector3(349.5078f, -14.757837f, -115.15985f), 961) { StopDistance = 7f }; - questSequence70.Steps = list199; - reference220 = questSequence; - ref QuestSequence reference221 = ref span83[4]; + obj125.Steps = list182; + reference220 = obj125; + num++; + ref QuestSequence reference221 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence71 = questSequence; + QuestSequence questSequence65 = questSequence; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKME107_04425_SAYTODO_000_190" } }; - questSequence71.Steps = list200; + questSequence65.Steps = list183; reference221 = questSequence; - ref QuestSequence reference222 = ref span83[5]; + num++; + ref QuestSequence reference222 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence72 = questSequence; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) + QuestSequence questSequence66 = questSequence; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKME107_04425_SAYTODO_000_210" } }; - questSequence72.Steps = list201; + questSequence66.Steps = list184; reference222 = questSequence; - ref QuestSequence reference223 = ref span83[6]; + num++; + ref QuestSequence reference223 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence73 = questSequence; + QuestSequence questSequence67 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span85 = CollectionsMarshal.AsSpan(list4); - span85[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-55.662647f, -16.696985f, -81.29199f), 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-55.662647f, -16.696985f, -81.29199f), 961) { StopDistance = 0.25f, DisableNavmesh = true, @@ -294662,517 +355596,621 @@ public static class AssemblyQuestLoader Position = new Vector3(-58.75509f, -15.402463f, -83.133934f) } }; - span85[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-64.19198f, -15.332472f, -84.65695f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-64.19198f, -15.332472f, -84.65695f), 961) { StopDistance = 0.25f, Emote = EEmote.Wave }; - questSequence73.Steps = list4; + questSequence67.Steps = list4; reference223 = questSequence; - ref QuestSequence reference224 = ref span83[7]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence74 = questSequence; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040069u, new Vector3(134.90503f, 10.385856f, 88.91431f), 961) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040069u, new Vector3(134.90503f, 10.385856f, 88.91431f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - questSequence74.Steps = list202; - reference224 = questSequence; + obj126.Steps = list185; + reference224 = obj126; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); QuestId questId27 = new QuestId(4426); questRoot = new QuestRoot(); QuestRoot questRoot54 = questRoot; num = 1; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; - questRoot54.Author = list203; + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; + questRoot54.Author = list186; QuestRoot questRoot55 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span86 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference225 = ref span86[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence75 = questSequence; num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040071u, new Vector3(132.82971f, 10.385857f, 89.34155f), 961) + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040071u, new Vector3(132.82971f, 10.385857f, 89.34155f), 961) { StopDistance = 5f }; - questSequence75.Steps = list204; - reference225 = questSequence; - ref QuestSequence reference226 = ref span86[1]; + obj127.Steps = list187; + reference225 = obj127; + num++; + ref QuestSequence reference226 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence76 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span87 = CollectionsMarshal.AsSpan(list4); - span87[0] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961) + QuestSequence questSequence68 = questSequence; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961) { PickUpQuestId = new QuestId(4507) }; - span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-109.12761f, -34.0357f, 397.6694f), 961); - span87[2] = new QuestStep(EInteractionType.Interact, 1040073u, new Vector3(-164.11078f, -41.02881f, 377.37073f), 961); - questSequence76.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-109.12761f, -34.0357f, 397.6694f), 961); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040073u, new Vector3(-164.11078f, -41.02881f, 377.37073f), 961); + questSequence68.Steps = list4; reference226 = questSequence; - ref QuestSequence reference227 = ref span86[2]; - QuestSequence obj123 = new QuestSequence + num++; + ref QuestSequence reference227 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1040080u, new Vector3(-530.2358f, -26.214441f, 490.6233f), 961); - obj123.Steps = list205; - reference227 = obj123; - ref QuestSequence reference228 = ref span86[3]; + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence77 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span88 = CollectionsMarshal.AsSpan(list4); - span88[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + QuestSequence questSequence69 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 6f, Aetheryte = EAetheryteLocation.ElpisTwelveWonders }; - span88[1] = new QuestStep(EInteractionType.Interact, 1040081u, new Vector3(-659.35767f, -22.39482f, 525.44434f), 961); - questSequence77.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040081u, new Vector3(-659.35767f, -22.39482f, 525.44434f), 961); + questSequence69.Steps = list4; reference228 = questSequence; - ref QuestSequence reference229 = ref span86[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference229 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence78 = questSequence; num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) { StopDistance = 5f }; - questSequence78.Steps = list206; - reference229 = questSequence; + obj129.Steps = list189; + reference229 = obj129; questRoot55.QuestSequence = list2; AddQuest(questId27, questRoot); QuestId questId28 = new QuestId(4427); questRoot = new QuestRoot(); QuestRoot questRoot56 = questRoot; num = 1; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; - questRoot56.Author = list207; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; + questRoot56.Author = list190; QuestRoot questRoot57 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span89 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference230 = ref span89[0]; - questSequence = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence79 = questSequence; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040083u, new Vector3(-659.3271f, -22.39482f, 525.47485f), 961) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040083u, new Vector3(-659.3271f, -22.39482f, 525.47485f), 961) { StopDistance = 5f }; - questSequence79.Steps = list208; - reference230 = questSequence; - ref QuestSequence reference231 = ref span89[1]; - questSequence = new QuestSequence + obj130.Steps = list191; + reference230 = obj130; + num++; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence80 = questSequence; num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) { StopDistance = 5f }; - questSequence80.Steps = list209; - reference231 = questSequence; - ref QuestSequence reference232 = ref span89[2]; + obj131.Steps = list192; + reference231 = obj131; + num++; + ref QuestSequence reference232 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence81 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span90 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference233 = ref span90[0]; + QuestSequence questSequence70 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference233 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2012135u, new Vector3(-621.2711f, -19.241638f, 546.50183f), 961); - QuestStep questStep34 = questStep; - num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span91 = CollectionsMarshal.AsSpan(list210); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep34.CompletionQuestVariablesFlags = list210; + QuestStep questStep37 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep37.CompletionQuestVariablesFlags = list75; reference233 = questStep; - ref QuestStep reference234 = ref span90[1]; + num2++; + ref QuestStep reference234 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 2012136u, new Vector3(-583.85596f, -20.035156f, 543.572f), 961); - QuestStep questStep35 = questStep; + QuestStep questStep38 = questStep; num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span92 = CollectionsMarshal.AsSpan(list211); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep35.CompletionQuestVariablesFlags = list211; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep38.CompletionQuestVariablesFlags = list75; reference234 = questStep; - questSequence81.Steps = list4; + questSequence70.Steps = list4; reference232 = questSequence; - ref QuestSequence reference235 = ref span89[3]; - QuestSequence obj124 = new QuestSequence + num++; + ref QuestSequence reference235 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 2012137u, new Vector3(-577.1725f, -21.469482f, 482.56653f), 961); - obj124.Steps = list212; - reference235 = obj124; - ref QuestSequence reference236 = ref span89[4]; - QuestSequence obj125 = new QuestSequence + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 2012138u, new Vector3(-601.0681f, -25.345276f, 438.37634f), 961); - obj125.Steps = list213; - reference236 = obj125; - ref QuestSequence reference237 = ref span89[5]; - QuestSequence obj126 = new QuestSequence + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2012139u, new Vector3(-686.5492f, -26.138794f, 441.24512f), 961); - obj126.Steps = list214; - reference237 = obj126; - ref QuestSequence reference238 = ref span89[6]; + List list195 = new List(num2); + CollectionsMarshal.SetCount(list195, num2); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence82 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 2012140u, new Vector3(-731.7464f, -27.084778f, 460.77673f), 961); - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice + QuestSequence questSequence71 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference239 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME109_04427_Q3_000_163"), Answer = new ExcelRef("TEXT_AKTKME109_04427_A3_000_164") }; - questStep36.DialogueChoices = list215; - reference239 = questStep36; - questSequence82.Steps = list4; + questStep39.DialogueChoices = list196; + reference239 = questStep39; + questSequence71.Steps = list4; reference238 = questSequence; - ref QuestSequence reference240 = ref span89[7]; + num++; + ref QuestSequence reference240 = ref span2[num]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence83 = questSequence; + QuestSequence questSequence72 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span93 = CollectionsMarshal.AsSpan(list4); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-734.30804f, -28.391644f, 432.59787f), 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-734.30804f, -28.391644f, 432.59787f), 961) { Mount = true }; - span93[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012021u, new Vector3(-754.757f, -36.02661f, 411.12378f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012021u, new Vector3(-754.757f, -36.02661f, 411.12378f), 961) { DisableNavmesh = true, AetherCurrentId = 2818375u }; - span93[2] = new QuestStep(EInteractionType.Interact, 2012141u, new Vector3(-789.08984f, -36.05713f, 486.41187f), 961); - questSequence83.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012141u, new Vector3(-789.08984f, -36.05713f, 486.41187f), 961); + questSequence72.Steps = list4; reference240 = questSequence; - ref QuestSequence reference241 = ref span89[8]; - QuestSequence obj127 = new QuestSequence + num++; + ref QuestSequence reference241 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 2012142u, new Vector3(-803.4028f, -36.514893f, 513.6034f), 961); - obj127.Steps = list216; - reference241 = obj127; - ref QuestSequence reference242 = ref span89[9]; - QuestSequence obj128 = new QuestSequence + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040087u, new Vector3(-664.1489f, -22.39482f, 533.8368f), 961); - obj128.Steps = list217; - reference242 = obj128; + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040087u, new Vector3(-664.1489f, -22.39482f, 533.8368f), 961); + obj136.Steps = list198; + reference242 = obj136; questRoot57.QuestSequence = list2; AddQuest(questId28, questRoot); QuestId questId29 = new QuestId(4428); questRoot = new QuestRoot(); QuestRoot questRoot58 = questRoot; num = 1; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; - questRoot58.Author = list218; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "liza"; + questRoot58.Author = list199; QuestRoot questRoot59 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span94 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference243 = ref span94[0]; - QuestSequence obj129 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference243 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040088u, new Vector3(-655.72595f, -22.394821f, 521.87366f), 961); - obj129.Steps = list219; - reference243 = obj129; - ref QuestSequence reference244 = ref span94[1]; + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence84 = questSequence; + QuestSequence questSequence73 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span95 = CollectionsMarshal.AsSpan(list4); - span95[0] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961) { PickUpQuestId = new QuestId(4288) }; - span95[1] = new QuestStep(EInteractionType.Interact, 1040092u, new Vector3(-340.9629f, -39.973907f, 368.06274f), 961); - questSequence84.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040092u, new Vector3(-340.9629f, -39.973907f, 368.06274f), 961); + questSequence73.Steps = list4; reference244 = questSequence; - ref QuestSequence reference245 = ref span94[2]; - QuestSequence obj130 = new QuestSequence + num++; + ref QuestSequence reference245 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1040097u, new Vector3(-213.79413f, -33.401405f, 242.35901f), 961); - obj130.Steps = list220; - reference245 = obj130; - ref QuestSequence reference246 = ref span94[3]; + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence85 = questSequence; + QuestSequence questSequence74 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference247 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(-207.7455f, -30.993412f, 232.53859f), 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference247 = ref span3[index2]; + QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-207.7455f, -30.993412f, 232.53859f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span96 = CollectionsMarshal.AsSpan(list221); - span96[0] = 14075u; - span96[1] = 14074u; - obj131.KillEnemyDataIds = list221; - reference247 = obj131; - questSequence85.Steps = list4; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + span6 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span6[index3] = 14075u; + index3++; + span6[index3] = 14074u; + obj139.KillEnemyDataIds = list202; + reference247 = obj139; + questSequence74.Steps = list4; reference246 = questSequence; - ref QuestSequence reference248 = ref span94[4]; - QuestSequence obj132 = new QuestSequence + num++; + ref QuestSequence reference248 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2012145u, new Vector3(-212.23773f, -31.876099f, 233.66138f), 961); - obj132.Steps = list222; - reference248 = obj132; - ref QuestSequence reference249 = ref span94[5]; - questSequence = new QuestSequence + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence86 = questSequence; num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040100u, new Vector3(-638.1476f, -22.39482f, 504.90576f), 961) + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040100u, new Vector3(-638.1476f, -22.39482f, 504.90576f), 961) { StopDistance = 5f }; - questSequence86.Steps = list223; - reference249 = questSequence; + obj141.Steps = list204; + reference249 = obj141; questRoot59.QuestSequence = list2; AddQuest(questId29, questRoot); QuestId questId30 = new QuestId(4429); questRoot = new QuestRoot(); QuestRoot questRoot60 = questRoot; num = 1; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; - questRoot60.Author = list224; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + span = CollectionsMarshal.AsSpan(list205); + index = 0; + span[index] = "liza"; + questRoot60.Author = list205; QuestRoot questRoot61 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span97 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference250 = ref span97[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference250 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence87 = questSequence; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040101u, new Vector3(-635.5841f, -22.39482f, 505.08887f), 961) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040101u, new Vector3(-635.5841f, -22.39482f, 505.08887f), 961) { StopDistance = 5f }; - questSequence87.Steps = list225; - reference250 = questSequence; - ref QuestSequence reference251 = ref span97[1]; - questSequence = new QuestSequence + obj142.Steps = list206; + reference250 = obj142; + num++; + ref QuestSequence reference251 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence88 = questSequence; num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1040102u, new Vector3(-106.61487f, -10.281434f, 236.07227f), 961) + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040102u, new Vector3(-106.61487f, -10.281434f, 236.07227f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - questSequence88.Steps = list226; - reference251 = questSequence; - ref QuestSequence reference252 = ref span97[2]; - QuestSequence obj133 = new QuestSequence + obj143.Steps = list207; + reference251 = obj143; + num++; + ref QuestSequence reference252 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1040104u, new Vector3(-182.17749f, 12.500029f, -10.971252f), 961); - obj133.Steps = list227; - reference252 = obj133; - ref QuestSequence reference253 = ref span97[3]; - questSequence = new QuestSequence + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence89 = questSequence; num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1040106u, new Vector3(-350.20984f, 161.78714f, 26.108154f), 961) + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040106u, new Vector3(-350.20984f, 161.78714f, 26.108154f), 961) { StopDistance = 5f }; - questSequence89.Steps = list228; - reference253 = questSequence; - ref QuestSequence reference254 = ref span97[4]; - QuestSequence obj134 = new QuestSequence + obj145.Steps = list209; + reference253 = obj145; + num++; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2012146u, new Vector3(-554.345f, 147.44788f, 98.25281f), 961); - obj134.Steps = list229; - reference254 = obj134; - ref QuestSequence reference255 = ref span97[5]; + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence90 = questSequence; + QuestSequence questSequence75 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference256 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep37 = new QuestStep(EInteractionType.CompleteQuest, 1040109u, new Vector3(-491.11166f, 140.39177f, -113.81708f), 961); - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = new DialogueChoice + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference256 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME111_04429_Q2_000_094"), Answer = new ExcelRef("TEXT_AKTKME111_04429_A2_000_096") }; - questStep37.DialogueChoices = list230; - reference256 = questStep37; - questSequence90.Steps = list4; + questStep40.DialogueChoices = list211; + reference256 = questStep40; + questSequence75.Steps = list4; reference255 = questSequence; questRoot61.QuestSequence = list2; AddQuest(questId30, questRoot); @@ -295180,531 +356218,623 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot62 = questRoot; num = 1; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; - questRoot62.Author = list231; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + span = CollectionsMarshal.AsSpan(list212); + index = 0; + span[index] = "liza"; + questRoot62.Author = list212; QuestRoot questRoot63 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span98 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference257 = ref span98[0]; - QuestSequence obj135 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference257 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040109u, new Vector3(-491.11166f, 140.39177f, -113.81708f), 961); - obj135.Steps = list232; - reference257 = obj135; - ref QuestSequence reference258 = ref span98[1]; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence91 = questSequence; + QuestSequence questSequence76 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span99 = CollectionsMarshal.AsSpan(list4); - span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 7f, Aetheryte = EAetheryteLocation.ElpisPoietenOikos }; - span99[1] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); - questSequence91.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); + questSequence76.Steps = list4; reference258 = questSequence; - ref QuestSequence reference259 = ref span98[2]; - QuestSequence obj136 = new QuestSequence + num++; + ref QuestSequence reference259 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); - obj136.Steps = list233; - reference259 = obj136; - ref QuestSequence reference260 = ref span98[3]; - QuestSequence obj137 = new QuestSequence + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); - obj137.Steps = list234; - reference260 = obj137; - ref QuestSequence reference261 = ref span98[4]; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence92 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestSequence questSequence77 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference262 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040116u, new Vector3(-578.4542f, 159.66537f, -173.75458f), 961); - QuestStep questStep38 = questStep; + QuestStep questStep41 = questStep; num3 = 4; - list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span100 = CollectionsMarshal.AsSpan(list157); - span100[0] = new DialogueChoice + list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + span4 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q1_000_072") }; - span100[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q2_000_076"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A2_000_077") }; - span100[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q3_000_089"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A3_000_091") }; - span100[3] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q4_000_098"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A4_000_099") }; - questStep38.DialogueChoices = list157; + questStep41.DialogueChoices = list15; reference262 = questStep; - questSequence92.Steps = list4; + questSequence77.Steps = list4; reference261 = questSequence; - ref QuestSequence reference263 = ref span98[5]; - QuestSequence obj138 = new QuestSequence + num++; + ref QuestSequence reference263 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); - obj138.Steps = list235; - reference263 = obj138; - ref QuestSequence reference264 = ref span98[6]; + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence93 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span101 = CollectionsMarshal.AsSpan(list4); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.33386f, 159.16429f, -197.54811f), 961) + QuestSequence questSequence78 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.33386f, 159.16429f, -197.54811f), 961) { Mount = true }; - ref QuestStep reference265 = ref span101[1]; + num2++; + ref QuestStep reference265 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040117u, new Vector3(-442.43536f, 140.56909f, -155.5047f), 961) { Comment = "Talk (2, 2, 1)" }; - QuestStep questStep39 = questStep; - num3 = 4; - list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span102 = CollectionsMarshal.AsSpan(list157); - span102[0] = new DialogueChoice + QuestStep questStep42 = questStep; + index3 = 4; + list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q5_000_152") }; - span102[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q6_000_154"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A6_000_156") }; - span102[2] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q7_000_168"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A7_000_170") }; - span102[3] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q8_000_181"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A8_000_182") }; - questStep39.DialogueChoices = list157; + questStep42.DialogueChoices = list15; reference265 = questStep; - questSequence93.Steps = list4; + questSequence78.Steps = list4; reference264 = questSequence; - ref QuestSequence reference266 = ref span98[7]; - QuestSequence obj139 = new QuestSequence + num++; + ref QuestSequence reference266 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); - obj139.Steps = list236; - reference266 = obj139; + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); + obj151.Steps = list217; + reference266 = obj151; questRoot63.QuestSequence = list2; AddQuest(questId31, questRoot); QuestId questId32 = new QuestId(4431); questRoot = new QuestRoot(); QuestRoot questRoot64 = questRoot; num = 1; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; - questRoot64.Author = list237; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; + questRoot64.Author = list218; QuestRoot questRoot65 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span103 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference267 = ref span103[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference267 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence94 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep40 = new QuestStep(EInteractionType.AcceptQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); + QuestSequence questSequence79 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference268 = ref span3[num2]; + QuestStep questStep43 = new QuestStep(EInteractionType.AcceptQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + span4 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME113_04431_Q1_000_014"), Answer = new ExcelRef("TEXT_AKTKME113_04431_A1_000_016") }; - questStep40.DialogueChoices = list238; - reference268 = questStep40; - questSequence94.Steps = list4; + questStep43.DialogueChoices = list219; + reference268 = questStep43; + questSequence79.Steps = list4; reference267 = questSequence; - ref QuestSequence reference269 = ref span103[1]; - QuestSequence obj140 = new QuestSequence + num++; + ref QuestSequence reference269 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1040118u, new Vector3(-814.51135f, 169.52979f, -194.35425f), 961); - obj140.Steps = list239; - reference269 = obj140; - ref QuestSequence reference270 = ref span103[2]; - QuestSequence obj141 = new QuestSequence + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1040121u, new Vector3(-833.9513f, 169.52928f, -61.905884f), 961); - obj141.Steps = list240; - reference270 = obj141; - ref QuestSequence reference271 = ref span103[3]; - QuestSequence obj142 = new QuestSequence + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1040121u, new Vector3(-833.9513f, 169.52928f, -61.905884f), 961); - obj142.Steps = list241; - reference271 = obj142; - ref QuestSequence reference272 = ref span103[4]; - QuestSequence obj143 = new QuestSequence + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1040124u, new Vector3(-848.38635f, 286.97595f, -175.86023f), 961); - obj143.Steps = list242; - reference272 = obj143; - ref QuestSequence reference273 = ref span103[5]; - QuestSequence obj144 = new QuestSequence + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1040126u, new Vector3(-719.7833f, 365.28336f, -334.64563f), 961); - obj144.Steps = list243; - reference273 = obj144; - ref QuestSequence reference274 = ref span103[6]; - questSequence = new QuestSequence + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence95 = questSequence; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) { StopDistance = 5f }; - questSequence95.Steps = list244; - reference274 = questSequence; + obj157.Steps = list225; + reference274 = obj157; questRoot65.QuestSequence = list2; AddQuest(questId32, questRoot); QuestId questId33 = new QuestId(4432); questRoot = new QuestRoot(); QuestRoot questRoot66 = questRoot; num = 1; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; - questRoot66.Author = list245; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "liza"; + questRoot66.Author = list226; QuestRoot questRoot67 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span104 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference275 = ref span104[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference275 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence96 = questSequence; num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) { StopDistance = 5f }; - questSequence96.Steps = list246; - reference275 = questSequence; - ref QuestSequence reference276 = ref span104[1]; + obj158.Steps = list227; + reference275 = obj158; + num++; + ref QuestSequence reference276 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence97 = questSequence; - num2 = 2; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span105 = CollectionsMarshal.AsSpan(list247); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.88638f, 146.9291f, 84.30863f), 961); - span105[1] = new QuestStep(EInteractionType.Interact, 2012149u, new Vector3(-353.1396f, 146.92908f, 143.57214f), 961); - questSequence97.Steps = list247; + QuestSequence questSequence80 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.88638f, 146.9291f, 84.30863f), 961); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012149u, new Vector3(-353.1396f, 146.92908f, 143.57214f), 961); + questSequence80.Steps = list4; reference276 = questSequence; - ref QuestSequence reference277 = ref span104[2]; + num++; + ref QuestSequence reference277 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence98 = questSequence; + QuestSequence questSequence81 = questSequence; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - questSequence98.Steps = list248; + questSequence81.Steps = list228; reference277 = questSequence; - span104[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference278 = ref span104[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference278 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence99 = questSequence; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) { StopDistance = 5f }; - questSequence99.Steps = list249; - reference278 = questSequence; + obj159.Steps = list229; + reference278 = obj159; questRoot67.QuestSequence = list2; AddQuest(questId33, questRoot); QuestId questId34 = new QuestId(4433); questRoot = new QuestRoot(); QuestRoot questRoot68 = questRoot; num = 1; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; - questRoot68.Author = list250; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + span = CollectionsMarshal.AsSpan(list230); + index = 0; + span[index] = "liza"; + questRoot68.Author = list230; QuestRoot questRoot69 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span106 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference279 = ref span106[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference279 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence100 = questSequence; num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) { StopDistance = 5f }; - questSequence100.Steps = list251; - reference279 = questSequence; - ref QuestSequence reference280 = ref span106[1]; + obj160.Steps = list231; + reference279 = obj160; + num++; + ref QuestSequence reference280 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence101 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span107 = CollectionsMarshal.AsSpan(list4); - span107[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012026u, new Vector3(-555.6268f, 158.09863f, 172.41162f), 961) + QuestSequence questSequence82 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012026u, new Vector3(-555.6268f, 158.09863f, 172.41162f), 961) { AetherCurrentId = 2818380u }; - ref QuestStep reference281 = ref span107[1]; - QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1040132u, new Vector3(-513.6339f, 156.7207f, 198.68762f), 961); - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice + num2++; + ref QuestStep reference281 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q1_000_021") }; - questStep41.DialogueChoices = list252; - reference281 = questStep41; - questSequence101.Steps = list4; + questStep44.DialogueChoices = list232; + reference281 = questStep44; + questSequence82.Steps = list4; reference280 = questSequence; - ref QuestSequence reference282 = ref span106[2]; - QuestSequence obj145 = new QuestSequence + num++; + ref QuestSequence reference282 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1040134u, new Vector3(-515.2819f, 156.84904f, 199.32861f), 961); - obj145.Steps = list253; - reference282 = obj145; - ref QuestSequence reference283 = ref span106[3]; + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence102 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span108 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference284 = ref span108[0]; - questStep = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) + QuestSequence questSequence83 = questSequence; + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference284 = ref span3[num2]; + QuestStep obj162 = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; - QuestStep questStep42 = questStep; SkipConditions skipConditions6 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new QuestId(4511); - skipAetheryteCondition3.QuestsCompleted = list254; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + span5 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span5[index3] = new QuestId(4511); + skipAetheryteCondition3.QuestsCompleted = list234; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition3; - questStep42.SkipConditions = skipConditions6; - questStep.PickUpQuestId = new QuestId(4511); - reference284 = questStep; - ref QuestStep reference285 = ref span108[1]; - questStep = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) + obj162.SkipConditions = skipConditions6; + obj162.PickUpQuestId = new QuestId(4511); + reference284 = obj162; + num2++; + ref QuestStep reference285 = ref span3[num2]; + QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; - QuestStep questStep43 = questStep; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = new QuestId(4313); - skipAetheryteCondition4.QuestsCompleted = list255; + index3 = 1; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + span5 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span5[num3] = new QuestId(4313); + skipAetheryteCondition4.QuestsCompleted = list235; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition4; - questStep43.SkipConditions = skipConditions7; - questStep.PickUpQuestId = new QuestId(4313); - reference285 = questStep; - span108[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-531.21313f, 159.97144f, -244.95073f), 961); - ref QuestStep reference286 = ref span108[3]; - QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2012151u, new Vector3(-481.8647f, 157.36621f, -367.48303f), 961); + obj163.SkipConditions = skipConditions7; + obj163.PickUpQuestId = new QuestId(4313); + reference285 = obj163; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-531.21313f, 159.97144f, -244.95073f), 961); + num2++; + ref QuestStep reference286 = ref span3[num2]; + QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2012151u, new Vector3(-481.8647f, 157.36621f, -367.48303f), 961); num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = new DialogueChoice + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + span4 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q2_000_062") }; - questStep44.DialogueChoices = list256; - reference286 = questStep44; - questSequence102.Steps = list4; + questStep45.DialogueChoices = list236; + reference286 = questStep45; + questSequence83.Steps = list4; reference283 = questSequence; - ref QuestSequence reference287 = ref span106[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference287 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence103 = questSequence; num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1042043u, new Vector3(-342.5498f, 294.93375f, -559.62463f), 961) + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042043u, new Vector3(-342.5498f, 294.93375f, -559.62463f), 961) { StopDistance = 6f }; - questSequence103.Steps = list257; - reference287 = questSequence; - ref QuestSequence reference288 = ref span106[5]; + obj164.Steps = list237; + reference287 = obj164; + num++; + ref QuestSequence reference288 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence104 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span109 = CollectionsMarshal.AsSpan(list4); - span109[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012025u, new Vector3(-402.945f, 327.7484f, -691.3405f), 961) + QuestSequence questSequence84 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012025u, new Vector3(-402.945f, 327.7484f, -691.3405f), 961) { AetherCurrentId = 2818379u }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1040135u, new Vector3(-407.46167f, 329.89032f, -759.24316f), 961); - questSequence104.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040135u, new Vector3(-407.46167f, 329.89032f, -759.24316f), 961); + questSequence84.Steps = list4; reference288 = questSequence; questRoot69.QuestSequence = list2; AddQuest(questId34, questRoot); @@ -295712,321 +356842,386 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot70 = questRoot; num = 1; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; - questRoot70.Author = list258; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "liza"; + questRoot70.Author = list238; QuestRoot questRoot71 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span110 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference289 = ref span110[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference289 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence105 = questSequence; num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040136u, new Vector3(-405.69165f, 329.81177f, -760.1892f), 961) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040136u, new Vector3(-405.69165f, 329.81177f, -760.1892f), 961) { StopDistance = 5f }; - questSequence105.Steps = list259; - reference289 = questSequence; - ref QuestSequence reference290 = ref span110[1]; + obj165.Steps = list239; + reference289 = obj165; + num++; + ref QuestSequence reference290 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence106 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference291 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2012153u, new Vector3(-207.7821f, 306.63f, -653.13196f), 961); - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = new DialogueChoice + QuestSequence questSequence85 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference291 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME116_04434_Q1_000_021") }; - questStep45.DialogueChoices = list260; - reference291 = questStep45; - questSequence106.Steps = list4; + questStep46.DialogueChoices = list240; + reference291 = questStep46; + questSequence85.Steps = list4; reference290 = questSequence; - ref QuestSequence reference292 = ref span110[2]; - QuestSequence obj146 = new QuestSequence + num++; + ref QuestSequence reference292 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); - obj146.Steps = list261; - reference292 = obj146; - ref QuestSequence reference293 = ref span110[3]; - QuestSequence obj147 = new QuestSequence + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1040141u, new Vector3(242.20642f, 165.84848f, -608.6061f), 961); - obj147.Steps = list262; - reference293 = obj147; - ref QuestSequence reference294 = ref span110[4]; - QuestSequence obj148 = new QuestSequence + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); - obj148.Steps = list263; - reference294 = obj148; + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); + obj168.Steps = list243; + reference294 = obj168; questRoot71.QuestSequence = list2; AddQuest(questId35, questRoot); QuestId questId36 = new QuestId(4435); questRoot = new QuestRoot(); QuestRoot questRoot72 = questRoot; num = 1; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "liza"; - questRoot72.Author = list264; + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "liza"; + questRoot72.Author = list244; QuestRoot questRoot73 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span111 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference295 = ref span111[0]; - QuestSequence obj149 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference295 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040140u, new Vector3(-44.63269f, 151.69983f, -623.43787f), 961); - obj149.Steps = list265; - reference295 = obj149; - ref QuestSequence reference296 = ref span111[1]; - QuestSequence obj150 = new QuestSequence + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 2012155u, new Vector3(16.54684f, 128.4602f, -549.886f), 961); - obj150.Steps = list266; - reference296 = obj150; - ref QuestSequence reference297 = ref span111[2]; - QuestSequence obj151 = new QuestSequence + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 2012158u, new Vector3(197.31433f, 91.569336f, -656.91614f), 961); - obj151.Steps = list267; - reference297 = obj151; - ref QuestSequence reference298 = ref span111[3]; - QuestSequence obj152 = new QuestSequence + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 2012161u, new Vector3(306.84363f, 138.47559f, -749.4774f), 961); - obj152.Steps = list268; - reference298 = obj152; - ref QuestSequence reference299 = ref span111[4]; - QuestSequence obj153 = new QuestSequence + List list248 = new List(num2); + CollectionsMarshal.SetCount(list248, num2); + span3 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2012164u, new Vector3(413.5653f, 148.63806f, -418.69232f), 961); - obj153.Steps = list269; - reference299 = obj153; - ref QuestSequence reference300 = ref span111[5]; - questSequence = new QuestSequence + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence107 = questSequence; num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040147u, new Vector3(412.28345f, 148.76953f, -417.34955f), 961) + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040147u, new Vector3(412.28345f, 148.76953f, -417.34955f), 961) { StopDistance = 5f }; - questSequence107.Steps = list270; - reference300 = questSequence; + obj174.Steps = list250; + reference300 = obj174; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); QuestId questId37 = new QuestId(4436); questRoot = new QuestRoot(); QuestRoot questRoot74 = questRoot; num = 1; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; - questRoot74.Author = list271; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "liza"; + questRoot74.Author = list251; QuestRoot questRoot75 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span112 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference301 = ref span112[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference301 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence108 = questSequence; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040148u, new Vector3(416.15918f, 148.81448f, -418.53973f), 961) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040148u, new Vector3(416.15918f, 148.81448f, -418.53973f), 961) { StopDistance = 5f }; - questSequence108.Steps = list272; - reference301 = questSequence; - ref QuestSequence reference302 = ref span112[1]; - QuestSequence obj154 = new QuestSequence + obj175.Steps = list252; + reference301 = obj175; + num++; + ref QuestSequence reference302 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 2012167u, new Vector3(436.057f, 149.12634f, -360.2503f), 961); - obj154.Steps = list273; - reference302 = obj154; - ref QuestSequence reference303 = ref span112[2]; + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence109 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span113 = CollectionsMarshal.AsSpan(list4); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(463.18567f, 138.58543f, -273.41803f), 961) + QuestSequence questSequence86 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(463.18567f, 138.58543f, -273.41803f), 961) { DisableNavmesh = true, Mount = true }; - span113[1] = new QuestStep(EInteractionType.Interact, 2012169u, new Vector3(523.7352f, 139.29956f, -186.9383f), 961); - questSequence109.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012169u, new Vector3(523.7352f, 139.29956f, -186.9383f), 961); + questSequence86.Steps = list4; reference303 = questSequence; - ref QuestSequence reference304 = ref span112[3]; + num++; + ref QuestSequence reference304 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence110 = questSequence; + QuestSequence questSequence87 = questSequence; num2 = 2; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span114 = CollectionsMarshal.AsSpan(list274); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(726.4087f, 139.19812f, -131.47159f), 961); - span114[1] = new QuestStep(EInteractionType.Interact, 2012170u, new Vector3(805.0812f, 153.521f, -210.55933f), 961); - questSequence110.Steps = list274; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(726.4087f, 139.19812f, -131.47159f), 961); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012170u, new Vector3(805.0812f, 153.521f, -210.55933f), 961); + questSequence87.Steps = list4; reference304 = questSequence; - ref QuestSequence reference305 = ref span112[4]; - QuestSequence obj155 = new QuestSequence + num++; + ref QuestSequence reference305 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 2012171u, new Vector3(741.39f, 148.05823f, -356.55762f), 961); - obj155.Steps = list275; - reference305 = obj155; - ref QuestSequence reference306 = ref span112[5]; - questSequence = new QuestSequence + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence111 = questSequence; num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040151u, new Vector3(504.35632f, 151.56888f, -303.88342f), 961) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040151u, new Vector3(504.35632f, 151.56888f, -303.88342f), 961) { StopDistance = 5f }; - questSequence111.Steps = list276; - reference306 = questSequence; + obj178.Steps = list255; + reference306 = obj178; questRoot75.QuestSequence = list2; AddQuest(questId37, questRoot); QuestId questId38 = new QuestId(4437); questRoot = new QuestRoot(); QuestRoot questRoot76 = questRoot; num = 1; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "liza"; - questRoot76.Author = list277; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "liza"; + questRoot76.Author = list256; QuestRoot questRoot77 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span115 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference307 = ref span115[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference307 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence112 = questSequence; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040152u, new Vector3(508.75085f, 151.51599f, -303.39514f), 961) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040152u, new Vector3(508.75085f, 151.51599f, -303.39514f), 961) { StopDistance = 5f }; - questSequence112.Steps = list278; - reference307 = questSequence; - ref QuestSequence reference308 = ref span115[1]; - QuestSequence obj156 = new QuestSequence + obj179.Steps = list257; + reference307 = obj179; + num++; + ref QuestSequence reference308 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1040154u, new Vector3(-401.23596f, 329.78302f, -760.3418f), 961); - obj156.Steps = list279; - reference308 = obj156; - ref QuestSequence reference309 = ref span115[2]; + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence113 = questSequence; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 961) + QuestSequence questSequence88 = questSequence; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 961) { DutyOptions = new DutyOptions { @@ -296034,105 +357229,122 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 787u } }; - questSequence113.Steps = list280; + questSequence88.Steps = list259; reference309 = questSequence; - span115[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference310 = ref span115[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference310 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence114 = questSequence; num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) { StopDistance = 5f }; - questSequence114.Steps = list281; - reference310 = questSequence; + obj181.Steps = list260; + reference310 = obj181; questRoot77.QuestSequence = list2; AddQuest(questId38, questRoot); QuestId questId39 = new QuestId(4438); questRoot = new QuestRoot(); QuestRoot questRoot78 = questRoot; num = 1; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; - questRoot78.Author = list282; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; + questRoot78.Author = list261; QuestRoot questRoot79 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span116 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference311 = ref span116[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference311 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence115 = questSequence; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) { StopDistance = 5f }; - questSequence115.Steps = list283; - reference311 = questSequence; - ref QuestSequence reference312 = ref span116[1]; + obj182.Steps = list262; + reference311 = obj182; + num++; + ref QuestSequence reference312 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence116 = questSequence; + QuestSequence questSequence89 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference313 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1040160u, new Vector3(265.156f, 46.937138f, 790.70715f), 961) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference313 = ref span3[index2]; + QuestStep obj183 = new QuestStep(EInteractionType.Interact, 1040160u, new Vector3(265.156f, 46.937138f, 790.70715f), 961) { Fly = true }; num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + span4 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME120_04438_Q1_000_008") }; - obj157.DialogueChoices = list284; - reference313 = obj157; - questSequence116.Steps = list4; + obj183.DialogueChoices = list263; + reference313 = obj183; + questSequence89.Steps = list4; reference312 = questSequence; - ref QuestSequence reference314 = ref span116[2]; - QuestSequence obj158 = new QuestSequence + num++; + ref QuestSequence reference314 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844); - obj158.Steps = list285; - reference314 = obj158; - ref QuestSequence reference315 = ref span116[3]; + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence117 = questSequence; + QuestSequence questSequence90 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span117 = CollectionsMarshal.AsSpan(list4); - span117[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -296142,8 +357354,9 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); - questSequence117.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); + questSequence90.Steps = list4; reference315 = questSequence; questRoot79.QuestSequence = list2; AddQuest(questId39, questRoot); @@ -296151,36 +357364,44 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot80 = questRoot; num = 1; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; - questRoot80.Author = list286; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + span = CollectionsMarshal.AsSpan(list265); + index = 0; + span[index] = "liza"; + questRoot80.Author = list265; QuestRoot questRoot81 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span118 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference316 = ref span118[0]; - QuestSequence obj159 = new QuestSequence + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference316 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); - obj159.Steps = list287; - reference316 = obj159; - ref QuestSequence reference317 = ref span118[1]; + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence118 = questSequence; + QuestSequence questSequence91 = questSequence; num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039668u, new Vector3(-389.97485f, 21.999998f, 501.85388f), 958) + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039668u, new Vector3(-389.97485f, 21.999998f, 501.85388f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -296188,78 +357409,86 @@ public static class AssemblyQuestLoader Enabled = true } }; - questSequence118.Steps = list288; + questSequence91.Steps = list267; reference317 = questSequence; - span118[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference318 = ref span118[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference318 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence119 = questSequence; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039675u, new Vector3(-404.8982f, 21.999998f, 416.3423f), 958) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039675u, new Vector3(-404.8982f, 21.999998f, 416.3423f), 958) { StopDistance = 6f }; - questSequence119.Steps = list289; - reference318 = questSequence; + obj186.Steps = list268; + reference318 = obj186; questRoot81.QuestSequence = list2; AddQuest(questId40, questRoot); QuestId questId41 = new QuestId(4440); questRoot = new QuestRoot(); QuestRoot questRoot82 = questRoot; num = 1; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; - questRoot82.Author = list290; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + span = CollectionsMarshal.AsSpan(list269); + index = 0; + span[index] = "liza"; + questRoot82.Author = list269; QuestRoot questRoot83 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span119 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference319 = ref span119[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference319 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence120 = questSequence; num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039681u, new Vector3(-401.3886f, 22.030764f, 419.94336f), 958) + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039681u, new Vector3(-401.3886f, 22.030764f, 419.94336f), 958) { StopDistance = 5f }; - questSequence120.Steps = list291; - reference319 = questSequence; - ref QuestSequence reference320 = ref span119[1]; - QuestSequence obj160 = new QuestSequence + obj187.Steps = list270; + reference319 = obj187; + num++; + ref QuestSequence reference320 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1039685u, new Vector3(108.018555f, -10.587427f, 269.4895f), 962); - obj160.Steps = list292; - reference320 = obj160; - ref QuestSequence reference321 = ref span119[2]; + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence121 = questSequence; + QuestSequence questSequence92 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -296269,23 +357498,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - questSequence121.Steps = list4; + questSequence92.Steps = list4; reference321 = questSequence; - ref QuestSequence reference322 = ref span119[3]; + num++; + ref QuestSequence reference322 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence122 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span120 = CollectionsMarshal.AsSpan(list4); - span120[0] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) + QuestSequence questSequence93 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) { TargetTerritoryId = (ushort)962 }; - span120[1] = new QuestStep(EInteractionType.Interact, 1039683u, new Vector3(-3.1586914f, 41.530132f, -160.35712f), 962) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039683u, new Vector3(-3.1586914f, 41.530132f, -160.35712f), 962) { AethernetShortcut = new AethernetShortcut { @@ -296293,282 +357525,348 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanRostra } }; - questSequence122.Steps = list4; + questSequence93.Steps = list4; reference322 = questSequence; - ref QuestSequence reference323 = ref span119[4]; - QuestSequence obj161 = new QuestSequence + num++; + ref QuestSequence reference323 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 2012211u, new Vector3(0.38146973f, 43.59497f, -273.30438f), 962); - obj161.Steps = list293; - reference323 = obj161; - ref QuestSequence reference324 = ref span119[5]; - QuestSequence obj162 = new QuestSequence + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039693u, new Vector3(2.5177002f, 40.2f, -235.67566f), 962); - obj162.Steps = list294; - reference324 = obj162; + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039693u, new Vector3(2.5177002f, 40.2f, -235.67566f), 962); + obj190.Steps = list273; + reference324 = obj190; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); QuestId questId42 = new QuestId(4441); questRoot = new QuestRoot(); QuestRoot questRoot84 = questRoot; num = 1; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; - questRoot84.Author = list295; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + span = CollectionsMarshal.AsSpan(list274); + index = 0; + span[index] = "liza"; + questRoot84.Author = list274; QuestRoot questRoot85 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span121 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference325 = ref span121[0]; - questSequence = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference325 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence123 = questSequence; num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039701u, new Vector3(4.257263f, 40.2f, -234.21082f), 962) + List list275 = new List(num2); + CollectionsMarshal.SetCount(list275, num2); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039701u, new Vector3(4.257263f, 40.2f, -234.21082f), 962) { StopDistance = 5f }; - questSequence123.Steps = list296; - reference325 = questSequence; - ref QuestSequence reference326 = ref span121[1]; - questSequence = new QuestSequence + obj191.Steps = list275; + reference325 = obj191; + num++; + ref QuestSequence reference326 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence124 = questSequence; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1039702u, new Vector3(422.0492f, 166.41168f, -453.42188f), 956) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039702u, new Vector3(422.0492f, 166.41168f, -453.42188f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; - questSequence124.Steps = list297; - reference326 = questSequence; - ref QuestSequence reference327 = ref span121[2]; + obj192.Steps = list276; + reference326 = obj192; + num++; + ref QuestSequence reference327 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence125 = questSequence; + QuestSequence questSequence94 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span122 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference328 = ref span122[0]; - QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 1039545u, new Vector3(361.80652f, 170.1f, -393.36237f), 956); - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference328 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF103_04441_Q1_000_096") }; - questStep46.DialogueChoices = list298; - reference328 = questStep46; - span122[1] = new QuestStep(EInteractionType.Interact, 1039711u, new Vector3(346.4254f, 90.90158f, -371.1147f), 956); - questSequence125.Steps = list4; + questStep47.DialogueChoices = list277; + reference328 = questStep47; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039711u, new Vector3(346.4254f, 90.90158f, -371.1147f), 956); + questSequence94.Steps = list4; reference327 = questSequence; - ref QuestSequence reference329 = ref span121[3]; - QuestSequence obj163 = new QuestSequence + num++; + ref QuestSequence reference329 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1039712u, new Vector3(380.69727f, 79.691376f, 299.3667f), 956); - obj163.Steps = list299; - reference329 = obj163; - ref QuestSequence reference330 = ref span121[4]; + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence126 = questSequence; + QuestSequence questSequence95 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference331 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep47 = new QuestStep(EInteractionType.Interact, 1039721u, new Vector3(362.02026f, 79.691376f, 302.11328f), 956); + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference331 = ref span3[index2]; + QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 1039721u, new Vector3(362.02026f, 79.691376f, 302.11328f), 956); num3 = 1; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = new DialogueChoice + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + span4 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF103_04441_Q1_000_181") }; - questStep47.DialogueChoices = list300; - reference331 = questStep47; - questSequence126.Steps = list4; + questStep48.DialogueChoices = list279; + reference331 = questStep48; + questSequence95.Steps = list4; reference330 = questSequence; - ref QuestSequence reference332 = ref span121[5]; - QuestSequence obj164 = new QuestSequence + num++; + ref QuestSequence reference332 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1039722u, new Vector3(194.41516f, -23.530436f, 303.91382f), 956); - obj164.Steps = list301; - reference332 = obj164; - ref QuestSequence reference333 = ref span121[6]; - QuestSequence obj165 = new QuestSequence + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1040448u, new Vector3(-21.286377f, -30.155542f, 637.41516f), 956); - obj165.Steps = list302; - reference333 = obj165; - ref QuestSequence reference334 = ref span121[7]; - QuestSequence obj166 = new QuestSequence + List list281 = new List(num2); + CollectionsMarshal.SetCount(list281, num2); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039740u, new Vector3(-19.058533f, -30.155542f, 637.07935f), 956); - obj166.Steps = list303; - reference334 = obj166; + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039740u, new Vector3(-19.058533f, -30.155542f, 637.07935f), 956); + obj196.Steps = list282; + reference334 = obj196; questRoot85.QuestSequence = list2; AddQuest(questId42, questRoot); QuestId questId43 = new QuestId(4442); questRoot = new QuestRoot(); QuestRoot questRoot86 = questRoot; num = 1; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; - questRoot86.Author = list304; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + span = CollectionsMarshal.AsSpan(list283); + index = 0; + span[index] = "liza"; + questRoot86.Author = list283; QuestRoot questRoot87 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span123 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference335 = ref span123[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference335 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence127 = questSequence; num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039733u, new Vector3(-20.767578f, -30.155542f, 638.7273f), 956) + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039733u, new Vector3(-20.767578f, -30.155542f, 638.7273f), 956) { StopDistance = 5f }; - questSequence127.Steps = list305; - reference335 = questSequence; - ref QuestSequence reference336 = ref span123[1]; - QuestSequence obj167 = new QuestSequence + obj197.Steps = list284; + reference335 = obj197; + num++; + ref QuestSequence reference336 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1039750u, new Vector3(28.091797f, -31.530422f, 90.196045f), 956); - obj167.Steps = list306; - reference336 = obj167; - ref QuestSequence reference337 = ref span123[2]; + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence128 = questSequence; + QuestSequence questSequence96 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span124 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference338 = ref span124[0]; + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference338 = ref span3[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037271u, new Vector3(84.64172f, -31.530367f, 31.021484f), 956); - QuestStep questStep48 = questStep; - num3 = 6; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - Span span125 = CollectionsMarshal.AsSpan(list307); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep48.CompletionQuestVariablesFlags = list307; - reference338 = questStep; - ref QuestStep reference339 = ref span124[1]; - questStep = new QuestStep(EInteractionType.Interact, 1037253u, new Vector3(34.74475f, -28.549177f, 45.548096f), 956); QuestStep questStep49 = questStep; - num3 = 6; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span126 = CollectionsMarshal.AsSpan(list308); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep49.CompletionQuestVariablesFlags = list308; - reference339 = questStep; - ref QuestStep reference340 = ref span124[2]; - questStep = new QuestStep(EInteractionType.Interact, 1037275u, new Vector3(106.126465f, -29.529999f, -14.450317f), 956); + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep49.CompletionQuestVariablesFlags = list75; + reference338 = questStep; + index2++; + ref QuestStep reference339 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1037253u, new Vector3(34.74475f, -28.549177f, 45.548096f), 956); QuestStep questStep50 = questStep; num3 = 6; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - Span span127 = CollectionsMarshal.AsSpan(list309); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep50.CompletionQuestVariablesFlags = list309; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep50.CompletionQuestVariablesFlags = list75; + reference339 = questStep; + index2++; + ref QuestStep reference340 = ref span3[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); + span7 = CollectionsMarshal.AsSpan(list75); + 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); + questStep51.CompletionQuestVariablesFlags = list75; reference340 = questStep; - questSequence128.Steps = list4; + questSequence96.Steps = list4; reference337 = questSequence; - ref QuestSequence reference341 = ref span123[3]; + num++; + ref QuestSequence reference341 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence129 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span128 = CollectionsMarshal.AsSpan(list4); - span128[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) + QuestSequence questSequence97 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) { StopDistance = 7f, Aetheryte = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - span128[1] = new QuestStep(EInteractionType.CompleteQuest, 1039761u, new Vector3(-17.685242f, -31.53043f, -76.798706f), 956); - questSequence129.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039761u, new Vector3(-17.685242f, -31.53043f, -76.798706f), 956); + questSequence97.Steps = list4; reference341 = questSequence; questRoot87.QuestSequence = list2; AddQuest(questId43, questRoot); @@ -296576,117 +357874,141 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot88 = questRoot; num = 1; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "liza"; - questRoot88.Author = list310; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "liza"; + questRoot88.Author = list286; QuestRoot questRoot89 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span129 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference342 = ref span129[0]; - questSequence = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference342 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence130 = questSequence; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039762u, new Vector3(-15.610046f, -31.53043f, -78.324646f), 956) + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039762u, new Vector3(-15.610046f, -31.53043f, -78.324646f), 956) { StopDistance = 5f }; - questSequence130.Steps = list311; - reference342 = questSequence; - ref QuestSequence reference343 = ref span129[1]; - QuestSequence obj168 = new QuestSequence + obj199.Steps = list287; + reference342 = obj199; + num++; + ref QuestSequence reference343 = ref span2[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1039766u, new Vector3(127.45862f, -17.530378f, -73.50275f), 956); - obj168.Steps = list312; - reference343 = obj168; - ref QuestSequence reference344 = ref span129[2]; + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence131 = questSequence; + QuestSequence questSequence98 = questSequence; num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Snipe, 2012212u, new Vector3(126.35986f, -17.532654f, -77.073364f), 956) + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2012212u, new Vector3(126.35986f, -17.532654f, -77.073364f), 956) { StopDistance = 5f, Comment = "Find Points of Interest" }; - questSequence131.Steps = list313; + questSequence98.Steps = list289; reference344 = questSequence; - ref QuestSequence reference345 = ref span129[3]; + num++; + ref QuestSequence reference345 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence132 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference346 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj169 = new QuestStep(EInteractionType.Combat, 2012213u, new Vector3(218.12769f, -25.742065f, 104.600464f), 956) + QuestSequence questSequence99 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference346 = ref span3[num2]; + QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2012213u, new Vector3(218.12769f, -25.742065f, 104.600464f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - CollectionsMarshal.AsSpan(list314)[0] = 13983u; - obj169.KillEnemyDataIds = list314; - reference346 = obj169; - questSequence132.Steps = list4; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + span6 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span6[index3] = 13983u; + obj201.KillEnemyDataIds = list290; + reference346 = obj201; + questSequence99.Steps = list4; reference345 = questSequence; - ref QuestSequence reference347 = ref span129[4]; - QuestSequence obj170 = new QuestSequence + num++; + ref QuestSequence reference347 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1040391u, new Vector3(211.65784f, -25.759167f, 98.22229f), 956); - obj170.Steps = list315; - reference347 = obj170; - ref QuestSequence reference348 = ref span129[5]; - QuestSequence obj171 = new QuestSequence + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1040392u, new Vector3(187.396f, -23.530434f, 281.42212f), 956); - obj171.Steps = list316; - reference348 = obj171; - ref QuestSequence reference349 = ref span129[6]; + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence133 = questSequence; + QuestSequence questSequence100 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span130 = CollectionsMarshal.AsSpan(list4); - span130[0] = new QuestStep(EInteractionType.Interact, 1039549u, new Vector3(229.87708f, -18.742016f, 298.72583f), 956) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039549u, new Vector3(229.87708f, -18.742016f, 298.72583f), 956) { TargetTerritoryId = (ushort)956 }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1040397u, new Vector3(372.39636f, 79.691376f, 299.1836f), 956); - questSequence133.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040397u, new Vector3(372.39636f, 79.691376f, 299.1836f), 956); + questSequence100.Steps = list4; reference349 = questSequence; questRoot89.QuestSequence = list2; AddQuest(questId44, questRoot); @@ -296694,158 +358016,187 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot90 = questRoot; num = 1; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "liza"; - questRoot90.Author = list317; + List list293 = new List(num); + CollectionsMarshal.SetCount(list293, num); + span = CollectionsMarshal.AsSpan(list293); + index = 0; + span[index] = "liza"; + questRoot90.Author = list293; QuestRoot questRoot91 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span131 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference350 = ref span131[0]; - questSequence = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference350 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence134 = questSequence; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956) { StopDistance = 5f }; - questSequence134.Steps = list318; - reference350 = questSequence; - ref QuestSequence reference351 = ref span131[1]; - QuestSequence obj172 = new QuestSequence + obj204.Steps = list294; + reference350 = obj204; + num++; + ref QuestSequence reference351 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(494.8042f, 65.06f, -37.70508f), 956); - obj172.Steps = list319; - reference351 = obj172; - ref QuestSequence reference352 = ref span131[2]; - QuestSequence obj173 = new QuestSequence + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - obj173.Steps = list320; - reference352 = obj173; - ref QuestSequence reference353 = ref span131[3]; + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence135 = questSequence; + QuestSequence questSequence101 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference354 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(422.61563f, 65.31176f, -121.74779f), 956) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference354 = ref span3[index2]; + QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(422.61563f, 65.31176f, -121.74779f), 956) { StopDistance = 0.25f }; - num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice + index3 = 1; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + span4 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMF106_04444_Q3_000_125"), Answer = new ExcelRef("TEXT_AKTKMF106_04444_A3_000_126") }; - obj174.DialogueChoices = list321; - reference354 = obj174; - questSequence135.Steps = list4; + obj207.DialogueChoices = list297; + reference354 = obj207; + questSequence101.Steps = list4; reference353 = questSequence; - ref QuestSequence reference355 = ref span131[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference355 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence136 = questSequence; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(407.89633f, 65.16199f, -119.62697f), 956) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(407.89633f, 65.16199f, -119.62697f), 956) { StopDistance = 0.25f }; - questSequence136.Steps = list322; - reference355 = questSequence; - ref QuestSequence reference356 = ref span131[5]; - questSequence = new QuestSequence + obj208.Steps = list298; + reference355 = obj208; + num++; + ref QuestSequence reference356 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence137 = questSequence; num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(463.33115f, 65.16199f, -66.60645f), 956) + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(463.33115f, 65.16199f, -66.60645f), 956) { StopDistance = 0.25f }; - questSequence137.Steps = list323; - reference356 = questSequence; - ref QuestSequence reference357 = ref span131[6]; - questSequence = new QuestSequence + obj209.Steps = list299; + reference356 = obj209; + num++; + ref QuestSequence reference357 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence138 = questSequence; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(485.30798f, 65.16199f, -96.01148f), 956) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(485.30798f, 65.16199f, -96.01148f), 956) { StopDistance = 0.25f }; - questSequence138.Steps = list324; - reference357 = questSequence; - ref QuestSequence reference358 = ref span131[7]; - QuestSequence obj175 = new QuestSequence + obj210.Steps = list300; + reference357 = obj210; + num++; + ref QuestSequence reference358 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - obj175.Steps = list325; - reference358 = obj175; - ref QuestSequence reference359 = ref span131[8]; + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); + obj211.Steps = list301; + reference358 = obj211; + num++; + ref QuestSequence reference359 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence139 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference360 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep51 = new QuestStep(EInteractionType.CompleteQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956); + QuestSequence questSequence102 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference360 = ref span3[num2]; + QuestStep questStep52 = new QuestStep(EInteractionType.CompleteQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956); num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = new DialogueChoice + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + span4 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMF106_04444_Q4_000_272"), Answer = new ExcelRef("TEXT_AKTKMF106_04444_A4_000_273") }; - questStep51.DialogueChoices = list326; - reference360 = questStep51; - questSequence139.Steps = list4; + questStep52.DialogueChoices = list302; + reference360 = questStep52; + questSequence102.Steps = list4; reference359 = questSequence; questRoot91.QuestSequence = list2; AddQuest(questId45, questRoot); @@ -296853,503 +358204,630 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot92 = questRoot; num = 1; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "liza"; - questRoot92.Author = list327; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + span = CollectionsMarshal.AsSpan(list303); + index = 0; + span[index] = "liza"; + questRoot92.Author = list303; QuestRoot questRoot93 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span132 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference361 = ref span132[0]; - QuestSequence obj176 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference361 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040401u, new Vector3(374.83777f, 79.691376f, 298.08484f), 956); - obj176.Steps = list328; - reference361 = obj176; - ref QuestSequence reference362 = ref span132[1]; + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040401u, new Vector3(374.83777f, 79.691376f, 298.08484f), 956); + obj212.Steps = list304; + reference361 = obj212; + num++; + ref QuestSequence reference362 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence140 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span133 = CollectionsMarshal.AsSpan(list4); - span133[0] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956) + QuestSequence questSequence103 = questSequence; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956) { PickUpQuestId = new QuestId(4480) }; - span133[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) { StopDistance = 0.75f, Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - span133[2] = new QuestStep(EInteractionType.Interact, 1039687u, new Vector3(-18.875488f, -31.53043f, -76.98181f), 956); - questSequence140.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039687u, new Vector3(-18.875488f, -31.53043f, -76.98181f), 956); + questSequence103.Steps = list4; reference362 = questSequence; - ref QuestSequence reference363 = ref span132[2]; - QuestSequence obj177 = new QuestSequence + num++; + ref QuestSequence reference363 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1040409u, new Vector3(-99.076904f, -28.516306f, -60.013794f), 956); - obj177.Steps = list329; - reference363 = obj177; - ref QuestSequence reference364 = ref span132[3]; + List list305 = new List(num2); + CollectionsMarshal.SetCount(list305, num2); + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040409u, new Vector3(-99.076904f, -28.516306f, -60.013794f), 956); + obj213.Steps = list305; + reference363 = obj213; + num++; + ref QuestSequence reference364 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence141 = questSequence; - num2 = 8; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span134 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference365 = ref span134[0]; + QuestSequence questSequence104 = questSequence; + index2 = 8; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference365 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040422u, new Vector3(-37.125244f, -29.530075f, -169.14624f), 956) { Comment = "Distracted Researcher" }; - QuestStep questStep52 = questStep; - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span135 = CollectionsMarshal.AsSpan(list330); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span135[5] = null; - questStep52.CompletionQuestVariablesFlags = list330; + QuestStep questStep53 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + questStep53.CompletionQuestVariablesFlags = list75; reference365 = questStep; - ref QuestStep reference366 = ref span134[1]; + num2++; + ref QuestStep reference366 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040416u, new Vector3(3.0670166f, -29.530357f, -126.17688f), 956) { Comment = "Hyperventilating Engineer" }; - QuestStep questStep53 = questStep; + QuestStep questStep54 = questStep; num3 = 6; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - Span span136 = CollectionsMarshal.AsSpan(list331); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span136[5] = null; - questStep53.CompletionQuestVariablesFlags = list331; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + questStep54.CompletionQuestVariablesFlags = list75; reference366 = questStep; - ref QuestStep reference367 = ref span134[2]; + num2++; + ref QuestStep reference367 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040420u, new Vector3(40.634766f, -17.53038f, -69.62695f), 956) { Comment = "Harried Aetherologist" }; - QuestStep questStep54 = questStep; - num3 = 6; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - Span span137 = CollectionsMarshal.AsSpan(list332); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span137[5] = null; - questStep54.CompletionQuestVariablesFlags = list332; + QuestStep questStep55 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + questStep55.CompletionQuestVariablesFlags = list75; reference367 = questStep; - ref QuestStep reference368 = ref span134[3]; + num2++; + ref QuestStep reference368 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040421u, new Vector3(48.142212f, -31.53043f, -48.111755f), 956) { Mount = true, Comment = "Grimacing Naturalist" }; - QuestStep questStep55 = questStep; + QuestStep questStep56 = questStep; num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span138 = CollectionsMarshal.AsSpan(list333); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span138[5] = null; - questStep55.CompletionQuestVariablesFlags = list333; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + questStep56.CompletionQuestVariablesFlags = list75; reference368 = questStep; - ref QuestStep reference369 = ref span134[4]; + num2++; + ref QuestStep reference369 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040417u, new Vector3(59.311768f, -29.530416f, -24.429688f), 956) { Comment = "Ponderous Mathematician" }; - QuestStep questStep56 = questStep; - num3 = 6; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - Span span139 = CollectionsMarshal.AsSpan(list334); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span139[5] = null; - questStep56.CompletionQuestVariablesFlags = list334; + QuestStep questStep57 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + 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++; + span7[num3] = null; + questStep57.CompletionQuestVariablesFlags = list75; reference369 = questStep; - ref QuestStep reference370 = ref span134[5]; + num2++; + ref QuestStep reference370 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040418u, new Vector3(-19.394226f, -29.530432f, 10.299805f), 956) { Mount = true, Comment = "Despondent Engineer" }; - QuestStep questStep57 = questStep; + QuestStep questStep58 = questStep; num3 = 6; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - Span span140 = CollectionsMarshal.AsSpan(list335); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span140[5] = null; - questStep57.CompletionQuestVariablesFlags = list335; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + questStep58.CompletionQuestVariablesFlags = list75; reference370 = questStep; - ref QuestStep reference371 = ref span134[6]; + num2++; + ref QuestStep reference371 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040423u, new Vector3(-22.232422f, -31.530355f, 38.071167f), 956) { Mount = true, Comment = "Skeptical Researcher" }; - QuestStep questStep58 = questStep; - num3 = 6; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span141 = CollectionsMarshal.AsSpan(list336); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span141[5] = null; - questStep58.CompletionQuestVariablesFlags = list336; + QuestStep questStep59 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span7[num3] = null; + questStep59.CompletionQuestVariablesFlags = list75; reference371 = questStep; - ref QuestStep reference372 = ref span134[7]; + num2++; + ref QuestStep reference372 = ref span3[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040419u, new Vector3(-15.762573f, -31.530432f, -51.59082f), 956) { Comment = "Anxious Engineer" }; - QuestStep questStep59 = questStep; + QuestStep questStep60 = questStep; num3 = 6; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - Span span142 = CollectionsMarshal.AsSpan(list337); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span142[5] = null; - questStep59.CompletionQuestVariablesFlags = list337; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span7 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span7[index3] = null; + questStep60.CompletionQuestVariablesFlags = list75; reference372 = questStep; - questSequence141.Steps = list4; + questSequence104.Steps = list4; reference364 = questSequence; - ref QuestSequence reference373 = ref span132[4]; - QuestSequence obj178 = new QuestSequence + num++; + ref QuestSequence reference373 = ref span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956); - obj178.Steps = list338; - reference373 = obj178; - ref QuestSequence reference374 = ref span132[5]; - questSequence = new QuestSequence + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956); + obj214.Steps = list306; + reference373 = obj214; + num++; + ref QuestSequence reference374 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence142 = questSequence; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 2012220u, new Vector3(-74.418274f, -29.58728f, -53.23877f), 956) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012220u, new Vector3(-74.418274f, -29.58728f, -53.23877f), 956) { StopDistance = 5f }; - questSequence142.Steps = list339; - reference374 = questSequence; - ref QuestSequence reference375 = ref span132[6]; - questSequence = new QuestSequence + obj215.Steps = list307; + reference374 = obj215; + num++; + ref QuestSequence reference375 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence143 = questSequence; num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) { StopDistance = 5f }; - questSequence143.Steps = list340; - reference375 = questSequence; + obj216.Steps = list308; + reference375 = obj216; questRoot93.QuestSequence = list2; AddQuest(questId46, questRoot); QuestId questId47 = new QuestId(4446); questRoot = new QuestRoot(); QuestRoot questRoot94 = questRoot; num = 1; - List list341 = new List(num); - CollectionsMarshal.SetCount(list341, num); - CollectionsMarshal.AsSpan(list341)[0] = "liza"; - questRoot94.Author = list341; + List list309 = new List(num); + CollectionsMarshal.SetCount(list309, num); + span = CollectionsMarshal.AsSpan(list309); + index = 0; + span[index] = "liza"; + questRoot94.Author = list309; QuestRoot questRoot95 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span143 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference376 = ref span143[0]; - questSequence = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference376 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence144 = questSequence; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) { StopDistance = 5f }; - questSequence144.Steps = list342; - reference376 = questSequence; - ref QuestSequence reference377 = ref span143[1]; + obj217.Steps = list310; + reference376 = obj217; + num++; + ref QuestSequence reference377 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence145 = questSequence; + QuestSequence questSequence105 = questSequence; num2 = 4; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span144 = CollectionsMarshal.AsSpan(list4); - span144[0] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956) { PickUpQuestId = new QuestId(4329) }; - ref QuestStep reference378 = ref span144[1]; + index2++; + ref QuestStep reference378 = ref span3[index2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041683u, new Vector3(-29.984009f, -31.53043f, -23.758362f), 956); - QuestStep questStep60 = questStep; - num3 = 1; - List list343 = new List(num3); - CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = new DialogueChoice + QuestStep questStep61 = questStep; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + span4 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/044/AktKzi101_04484", Prompt = new ExcelRef("TEXT_AKTKZI101_04484_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZI101_04484_A1_000_002") }; - questStep60.DialogueChoices = list343; + questStep61.DialogueChoices = list311; questStep.PickUpQuestId = new QuestId(4484); reference378 = questStep; - ref QuestStep reference379 = ref span144[2]; + index2++; + ref QuestStep reference379 = ref span3[index2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); - QuestStep questStep61 = questStep; + QuestStep questStep62 = questStep; num3 = 1; - List list344 = new List(num3); - CollectionsMarshal.SetCount(list344, num3); - CollectionsMarshal.AsSpan(list344)[0] = new DialogueChoice + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + span4 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/043/AktKzi005_04320", Prompt = new ExcelRef("TEXT_AKTKZI005_04320_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZI005_04320_A1_000_003") }; - questStep61.DialogueChoices = list344; + questStep62.DialogueChoices = list312; questStep.PickUpQuestId = new QuestId(4320); reference379 = questStep; - span144[3] = new QuestStep(EInteractionType.Interact, 1040444u, new Vector3(-424.24664f, -31.831255f, -38.895264f), 956); - questSequence145.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040444u, new Vector3(-424.24664f, -31.831255f, -38.895264f), 956); + questSequence105.Steps = list4; reference377 = questSequence; - ref QuestSequence reference380 = ref span143[2]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference380 = ref span2[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 2012223u, new Vector3(-427.2984f, -31.418396f, -38.19336f), 956); - obj179.Steps = list345; - reference380 = obj179; - ref QuestSequence reference381 = ref span143[3]; - QuestSequence obj180 = new QuestSequence + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012223u, new Vector3(-427.2984f, -31.418396f, -38.19336f), 956); + obj218.Steps = list313; + reference380 = obj218; + num++; + ref QuestSequence reference381 = ref span2[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1040446u, new Vector3(-697.4136f, -31.621387f, 164.11072f), 956); - obj180.Steps = list346; - reference381 = obj180; - ref QuestSequence reference382 = ref span143[4]; + List list314 = new List(num2); + CollectionsMarshal.SetCount(list314, num2); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040446u, new Vector3(-697.4136f, -31.621387f, 164.11072f), 956); + obj219.Steps = list314; + reference381 = obj219; + num++; + ref QuestSequence reference382 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence146 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span145 = CollectionsMarshal.AsSpan(list4); - span145[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) + QuestSequence questSequence106 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) { StopDistance = 6f, Aetheryte = EAetheryteLocation.LabyrinthosAporia }; - span145[1] = new QuestStep(EInteractionType.Interact, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); - questSequence146.Steps = list4; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); + questSequence106.Steps = list4; reference382 = questSequence; - ref QuestSequence reference383 = ref span143[5]; - QuestSequence obj181 = new QuestSequence + num++; + ref QuestSequence reference383 = ref span2[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1040450u, new Vector3(-754.4213f, -29.529999f, 389.70007f), 956); - obj181.Steps = list347; - reference383 = obj181; - ref QuestSequence reference384 = ref span143[6]; - QuestSequence obj182 = new QuestSequence + List list315 = new List(num2); + CollectionsMarshal.SetCount(list315, num2); + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040450u, new Vector3(-754.4213f, -29.529999f, 389.70007f), 956); + obj220.Steps = list315; + reference383 = obj220; + num++; + ref QuestSequence reference384 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); - obj182.Steps = list348; - reference384 = obj182; + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); + obj221.Steps = list316; + reference384 = obj221; questRoot95.QuestSequence = list2; AddQuest(questId47, questRoot); QuestId questId48 = new QuestId(4447); questRoot = new QuestRoot(); QuestRoot questRoot96 = questRoot; num = 1; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "liza"; - questRoot96.Author = list349; + List list317 = new List(num); + CollectionsMarshal.SetCount(list317, num); + span = CollectionsMarshal.AsSpan(list317); + index = 0; + span[index] = "liza"; + questRoot96.Author = list317; QuestRoot questRoot97 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span146 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference385 = ref span146[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference385 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence147 = questSequence; num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040451u, new Vector3(-709.28516f, -31.53043f, 321.46167f), 956) + List list318 = new List(num2); + CollectionsMarshal.SetCount(list318, num2); + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040451u, new Vector3(-709.28516f, -31.53043f, 321.46167f), 956) { StopDistance = 5f }; - questSequence147.Steps = list350; - reference385 = questSequence; - ref QuestSequence reference386 = ref span146[1]; - QuestSequence obj183 = new QuestSequence + obj222.Steps = list318; + reference385 = obj222; + num++; + ref QuestSequence reference386 = ref span2[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1040454u, new Vector3(-613.18384f, -19.786552f, 626.8557f), 956); - obj183.Steps = list351; - reference386 = obj183; - ref QuestSequence reference387 = ref span146[2]; + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040454u, new Vector3(-613.18384f, -19.786552f, 626.8557f), 956); + obj223.Steps = list319; + reference386 = obj223; + num++; + ref QuestSequence reference387 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence148 = questSequence; + QuestSequence questSequence107 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference388 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2012225u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference388 = ref span3[index2]; + questStep = new QuestStep(EInteractionType.Combat, 2012225u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list352 = new List(num3); - CollectionsMarshal.SetCount(list352, num3); - Span span147 = CollectionsMarshal.AsSpan(list352); - span147[0] = 13982u; - span147[1] = 13981u; - span147[2] = 13980u; - obj184.KillEnemyDataIds = list352; - reference388 = obj184; - questSequence148.Steps = list4; + QuestStep questStep63 = questStep; + index3 = 3; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span6 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span6[num3] = 13982u; + num3++; + span6[num3] = 13981u; + num3++; + span6[num3] = 13980u; + questStep63.KillEnemyDataIds = list320; + reference388 = questStep; + questSequence107.Steps = list4; reference387 = questSequence; - ref QuestSequence reference389 = ref span146[3]; - QuestSequence obj185 = new QuestSequence + num++; + ref QuestSequence reference389 = ref span2[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 2012442u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956); - obj185.Steps = list353; - reference389 = obj185; - ref QuestSequence reference390 = ref span146[4]; + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012442u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956); + obj224.Steps = list321; + reference389 = obj224; + num++; + ref QuestSequence reference390 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence149 = questSequence; + QuestSequence questSequence108 = questSequence; num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span148 = CollectionsMarshal.AsSpan(list4); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-601.1813f, -24.48022f, 633.1958f), 956) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-601.1813f, -24.48022f, 633.1958f), 956) { Mount = true, Comment = "Avoids aggro + possible navmesh issue" }; - span148[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.4733f, -22.860794f, 666.64417f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.4733f, -22.860794f, 666.64417f), 956) { Comment = "Avoids aggro + possible navmesh issue" }; - span148[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011985u, new Vector3(-547.7532f, -18.051514f, 661.86f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011985u, new Vector3(-547.7532f, -18.051514f, 661.86f), 956) { AetherCurrentId = 2818316u }; - span148[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.94707f, -29.933468f, 674.6727f), 956); - span148[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-120.48093f, -21.96263f, 685.2332f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.94707f, -29.933468f, 674.6727f), 956); + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-120.48093f, -21.96263f, 685.2332f), 956) { DisableNavmesh = true, JumpDestination = new JumpDestination @@ -297359,18 +358837,21 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span148[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011986u, new Vector3(-128.06903f, -20.523438f, 676.7223f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011986u, new Vector3(-128.06903f, -20.523438f, 676.7223f), 956) { DisableNavmesh = true, AetherCurrentId = 2818317u }; - span148[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.01625f, -30.313616f, 670.05585f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.01625f, -30.313616f, 670.05585f), 956) { DisableNavmesh = true, Mount = true }; - span148[7] = new QuestStep(EInteractionType.CompleteQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); - questSequence149.Steps = list4; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); + questSequence108.Steps = list4; reference390 = questSequence; questRoot97.QuestSequence = list2; AddQuest(questId48, questRoot); @@ -297378,219 +358859,266 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot98 = questRoot; num = 1; - List list354 = new List(num); - CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "liza"; - questRoot98.Author = list354; + List list322 = new List(num); + CollectionsMarshal.SetCount(list322, num); + span = CollectionsMarshal.AsSpan(list322); + index = 0; + span[index] = "liza"; + questRoot98.Author = list322; QuestRoot questRoot99 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span149 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference391 = ref span149[0]; - QuestSequence obj186 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference391 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); - obj186.Steps = list355; - reference391 = obj186; - ref QuestSequence reference392 = ref span149[1]; + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); + obj225.Steps = list323; + reference391 = obj225; + num++; + ref QuestSequence reference392 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence150 = questSequence; + QuestSequence questSequence109 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span150 = CollectionsMarshal.AsSpan(list4); - span150[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) { Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - ref QuestStep reference393 = ref span150[1]; - QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 2012226u, new Vector3(-11.6427f, -31.540405f, -81.28485f), 956); + index2++; + ref QuestStep reference393 = ref span3[index2]; + QuestStep questStep64 = new QuestStep(EInteractionType.Interact, 2012226u, new Vector3(-11.6427f, -31.540405f, -81.28485f), 956); num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = new DialogueChoice + List list324 = new List(num3); + CollectionsMarshal.SetCount(list324, num3); + span4 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF110_04448_Q1_000_031") }; - questStep62.DialogueChoices = list356; - reference393 = questStep62; - questSequence150.Steps = list4; + questStep64.DialogueChoices = list324; + reference393 = questStep64; + questSequence109.Steps = list4; reference392 = questSequence; - ref QuestSequence reference394 = ref span149[2]; - QuestSequence obj187 = new QuestSequence + num++; + ref QuestSequence reference394 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1040457u, new Vector3(36.51477f, -16.246998f, 129.47266f), 962); - obj187.Steps = list357; - reference394 = obj187; - ref QuestSequence reference395 = ref span149[3]; + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040457u, new Vector3(36.51477f, -16.246998f, 129.47266f), 962); + obj226.Steps = list325; + reference394 = obj226; + num++; + ref QuestSequence reference395 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence151 = questSequence; + QuestSequence questSequence110 = questSequence; num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1040466u, new Vector3(-702.4186f, -31.53043f, 301.93018f), 956) + List list326 = new List(num2); + CollectionsMarshal.SetCount(list326, num2); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040466u, new Vector3(-702.4186f, -31.53043f, 301.93018f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - questSequence151.Steps = list358; + questSequence110.Steps = list326; reference395 = questSequence; - ref QuestSequence reference396 = ref span149[4]; + num++; + ref QuestSequence reference396 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence152 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference397 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep63 = new QuestStep(EInteractionType.Interact, 1040467u, new Vector3(-620.63025f, -27.670597f, 302.17432f), 956); - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - CollectionsMarshal.AsSpan(list359)[0] = new DialogueChoice + QuestSequence questSequence111 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference397 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF110_04448_Q2_000_111") }; - questStep63.DialogueChoices = list359; - reference397 = questStep63; - questSequence152.Steps = list4; + questStep65.DialogueChoices = list327; + reference397 = questStep65; + questSequence111.Steps = list4; reference396 = questSequence; - ref QuestSequence reference398 = ref span149[5]; + num++; + ref QuestSequence reference398 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence153 = questSequence; + QuestSequence questSequence112 = questSequence; num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1040468u, new Vector3(-598.32153f, -191.11913f, 301.71655f), 956) + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040468u, new Vector3(-598.32153f, -191.11913f, 301.71655f), 956) { StopDistance = 7f }; - questSequence153.Steps = list360; + questSequence112.Steps = list328; reference398 = questSequence; - ref QuestSequence reference399 = ref span149[6]; - QuestSequence obj188 = new QuestSequence + num++; + ref QuestSequence reference399 = ref span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-413.49243f, -220.16248f, 301.63266f), 956) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-413.49243f, -220.16248f, 301.63266f), 956) { RestartNavigationIfCancelled = false }; - obj188.Steps = list361; - reference399 = obj188; - ref QuestSequence reference400 = ref span149[7]; - QuestSequence obj189 = new QuestSequence + obj227.Steps = list329; + reference399 = obj227; + num++; + ref QuestSequence reference400 = ref span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); - obj189.Steps = list362; - reference400 = obj189; + List list330 = new List(num2); + CollectionsMarshal.SetCount(list330, num2); + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); + obj228.Steps = list330; + reference400 = obj228; questRoot99.QuestSequence = list2; AddQuest(questId49, questRoot); QuestId questId50 = new QuestId(4449); questRoot = new QuestRoot(); QuestRoot questRoot100 = questRoot; num = 1; - List list363 = new List(num); - CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; - questRoot100.Author = list363; + List list331 = new List(num); + CollectionsMarshal.SetCount(list331, num); + span = CollectionsMarshal.AsSpan(list331); + index = 0; + span[index] = "liza"; + questRoot100.Author = list331; QuestRoot questRoot101 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span151 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference401 = ref span151[0]; - QuestSequence obj190 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference401 = ref span2[num]; + QuestSequence obj229 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); - obj190.Steps = list364; - reference401 = obj190; - ref QuestSequence reference402 = ref span151[1]; - QuestSequence obj191 = new QuestSequence + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); + obj229.Steps = list332; + reference401 = obj229; + num++; + ref QuestSequence reference402 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1040487u, new Vector3(-234.6991f, -224.38274f, 349.01953f), 956); - obj191.Steps = list365; - reference402 = obj191; - ref QuestSequence reference403 = ref span151[2]; + List list333 = new List(num2); + CollectionsMarshal.SetCount(list333, num2); + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040487u, new Vector3(-234.6991f, -224.38274f, 349.01953f), 956); + obj230.Steps = list333; + reference402 = obj230; + num++; + ref QuestSequence reference403 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence154 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference404 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep64 = new QuestStep(EInteractionType.Duty, null, null, 956); - DutyOptions obj192 = new DutyOptions + QuestSequence questSequence113 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference404 = ref span3[num2]; + QuestStep questStep66 = new QuestStep(EInteractionType.Duty, null, null, 956); + DutyOptions obj231 = new DutyOptions { ContentFinderConditionId = 786u }; num3 = 1; - List list366 = new List(num3); - CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = "No VBM module"; - obj192.Notes = list366; - questStep64.DutyOptions = obj192; - reference404 = questStep64; - questSequence154.Steps = list4; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + span = CollectionsMarshal.AsSpan(list334); + index3 = 0; + span[index3] = "No VBM module"; + obj231.Notes = list334; + questStep66.DutyOptions = obj231; + reference404 = questStep66; + questSequence113.Steps = list4; reference403 = questSequence; - span151[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference405 = ref span151[4]; + num++; + ref QuestSequence reference405 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence155 = questSequence; + QuestSequence questSequence114 = questSequence; num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Duty, null, null, 1030) + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1030) { DutyOptions = new DutyOptions { @@ -297598,34 +359126,41 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 790u } }; - questSequence155.Steps = list367; + questSequence114.Steps = list335; reference405 = questSequence; - span151[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference406 = ref span151[6]; - QuestSequence obj193 = new QuestSequence + num++; + ref QuestSequence reference406 = ref span2[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1040503u, new Vector3(-221.4237f, -224.3827f, 364.40063f), 956); - obj193.Steps = list368; - reference406 = obj193; - ref QuestSequence reference407 = ref span151[7]; + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040503u, new Vector3(-221.4237f, -224.3827f, 364.40063f), 956); + obj232.Steps = list336; + reference406 = obj232; + num++; + ref QuestSequence reference407 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence156 = questSequence; + QuestSequence questSequence115 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference408 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj194 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + span3 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference408 = ref span3[index2]; + QuestStep obj233 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -297634,17 +359169,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num3 = 1; - List list369 = new List(num3); - CollectionsMarshal.SetCount(list369, num3); - CollectionsMarshal.AsSpan(list369)[0] = new DialogueChoice + index3 = 1; + List list337 = new List(index3); + CollectionsMarshal.SetCount(list337, index3); + span4 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF111_04449_Q4_000_344") }; - obj194.DialogueChoices = list369; - reference408 = obj194; - questSequence156.Steps = list4; + obj233.DialogueChoices = list337; + reference408 = obj233; + questSequence115.Steps = list4; reference407 = questSequence; questRoot101.QuestSequence = list2; AddQuest(questId50, questRoot); @@ -297657,13 +359194,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -297671,21 +359211,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1039793u, new Vector3(3.3111572f, 40.2f, -231.64728f), 962) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039793u, new Vector3(3.3111572f, 40.2f, -231.64728f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297695,7 +359240,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -297703,18 +359249,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1039804u, new Vector3(-0.16790771f, 41.37599f, -146.65448f), 962); + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039804u, new Vector3(-0.16790771f, 41.37599f, -146.65448f), 962); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297724,7 +359275,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -297732,42 +359284,50 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2012347u, new Vector3(31.143677f, 5.081238f, -62.485718f), 962); int num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span2 = CollectionsMarshal.AsSpan(list8); - span2[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q2_000_221") }; - span2[1] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q3_000_240"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A3_000_241") }; - span2[2] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q4_000_256"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A4_000_258") }; - span2[3] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q5_000_276"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A5_000_278") }; - span2[4] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q6_000_298"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A6_000_300") }; - span2[5] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q7_000_305"), @@ -297777,15 +359337,18 @@ public static class AssemblyQuestLoader reference6 = questStep; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037047u, new Vector3(26.718506f, 5.1499996f, -65.87323f), 962) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037047u, new Vector3(26.718506f, 5.1499996f, -65.87323f), 962) { StopDistance = 5f }; @@ -297798,13 +359361,16 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list10); + index = 0; + span[index] = "liza"; questRoot2.Author = list10; - num = 6; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span3[0]; + index = 6; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + span2 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -297812,18 +359378,23 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962); obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297833,7 +359404,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -297841,7 +359413,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1039820u, new Vector3(-87.02222f, -13.777f, 147.29529f), 962) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039820u, new Vector3(-87.02222f, -13.777f, 147.29529f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297851,21 +359425,25 @@ public static class AssemblyQuestLoader }; obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span3[3]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1039821u, new Vector3(-86.96118f, -13.777f, 149.70618f), 962) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039821u, new Vector3(-86.96118f, -13.777f, 149.70618f), 962) { StopDistance = 5f }; obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span3[4]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -297873,8 +359451,9 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span4 = CollectionsMarshal.AsSpan(list16); - span4[0] = new QuestStep(EInteractionType.Interact, 1039823u, new Vector3(-282.09363f, 19.003872f, 20.248657f), 962) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039823u, new Vector3(-282.09363f, 19.003872f, 20.248657f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297882,7 +359461,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - span4[1] = new QuestStep(EInteractionType.Interact, 1039825u, new Vector3(223.46838f, 24.898844f, -149.58423f), 962) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039825u, new Vector3(223.46838f, 24.898844f, -149.58423f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297892,15 +359472,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list16; reference12 = obj11; - ref QuestSequence reference13 = ref span3[5]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj13 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, @@ -297910,10 +359493,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + span4 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG102_04451_Q1_000_143") @@ -297929,13 +359514,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "liza"; questRoot3.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span5[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -297943,22 +359531,26 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; obj14.Steps = list21; reference15 = obj14; - ref QuestSequence reference16 = ref span5[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + index2 = 3; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -297970,17 +359562,20 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1039827u, new Vector3(-323.38446f, -224.2727f, 301.56396f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039827u, new Vector3(-323.38446f, -224.2727f, 301.56396f), 956) { Fly = false }; obj15.Steps = list22; reference16 = obj15; - ref QuestSequence reference17 = ref span5[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -297988,12 +359583,16 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference18 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1039847u, new Vector3(-334.92035f, -224.19772f, 311.9402f), 956); num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG103_04452_Q1_000_183") @@ -298002,15 +359601,18 @@ public static class AssemblyQuestLoader reference18 = questStep2; obj16.Steps = list23; reference17 = obj16; - ref QuestSequence reference19 = ref span5[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039852u, new Vector3(-376.1197f, 80.7959f, 607.6904f), 960) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039852u, new Vector3(-376.1197f, 80.7959f, 607.6904f), 960) { StopDistance = 5f }; @@ -298023,13 +359625,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; questRoot4.Author = list26; - num = 6; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span7 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span7[0]; + index = 6; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -298037,24 +359642,30 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039853u, new Vector3(-377.7066f, 80.86001f, 606.53076f), 960) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039853u, new Vector3(-377.7066f, 80.86001f, 606.53076f), 960) { StopDistance = 7f }; obj18.Steps = list28; reference20 = obj18; - ref QuestSequence reference21 = ref span7[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); obj19.Steps = list29; reference21 = obj19; - ref QuestSequence reference22 = ref span7[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -298062,63 +359673,88 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference23 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012351u, new Vector3(-11.490112f, 61.905884f, 533.6842f), 960); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span9 = CollectionsMarshal.AsSpan(list31); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list31; reference23 = questStep3; - ref QuestStep reference24 = ref span8[1]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1040292u, new Vector3(6.5460815f, 60.71497f, 554.4059f), 960); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list32); + 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); questStep4.CompletionQuestVariablesFlags = list32; reference24 = questStep4; - ref QuestStep reference25 = ref span8[2]; + index2++; + ref QuestStep reference25 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1040293u, new Vector3(56.77881f, 99.37216f, 665.5221f), 960); - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span11 = CollectionsMarshal.AsSpan(list33); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span5 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list33; reference25 = questStep5; obj20.Steps = list30; reference22 = obj20; - ref QuestSequence reference26 = ref span7[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); obj21.Steps = list34; reference26 = obj21; - ref QuestSequence reference27 = ref span7[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -298126,18 +359762,23 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1040294u, new Vector3(-373.00684f, 90.107704f, 460.99023f), 960); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040294u, new Vector3(-373.00684f, 90.107704f, 460.99023f), 960); obj22.Steps = list35; reference27 = obj22; - ref QuestSequence reference28 = ref span7[5]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039769u, new Vector3(-482.9328f, 73.09421f, 310.9331f), 960); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039769u, new Vector3(-482.9328f, 73.09421f, 310.9331f), 960); obj23.Steps = list36; reference28 = obj23; questRoot4.QuestSequence = list27; @@ -298147,13 +359788,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "liza"; questRoot5.Author = list37; - num = 7; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span12 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference29 = ref span12[0]; + index = 7; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -298161,22 +359805,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039772u, new Vector3(-476.2188f, 73.47535f, 309.86487f), 960) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039772u, new Vector3(-476.2188f, 73.47535f, 309.86487f), 960) { StopDistance = 7f }; obj24.Steps = list39; reference29 = obj24; - ref QuestSequence reference30 = ref span12[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span13 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference31 = ref span13[0]; + index2 = 4; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 8f @@ -298184,38 +359832,53 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span14 = CollectionsMarshal.AsSpan(list41); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list41); + 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); obj26.CompletionQuestVariablesFlags = list41; reference31 = obj26; - ref QuestStep reference32 = ref span13[1]; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 8f }; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span15 = CollectionsMarshal.AsSpan(list42); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + span5 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list42; reference32 = obj27; - span13[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 10f, Aetheryte = EAetheryteLocation.UltimaThuleReahTahra }; - ref QuestStep reference33 = ref span13[3]; + num2++; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1038006u, new Vector3(-490.6844f, 88.871994f, 207.35486f), 960) { StopDistance = 8f @@ -298223,18 +359886,25 @@ public static class AssemblyQuestLoader num3 = 6; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span16 = CollectionsMarshal.AsSpan(list43); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list43); + 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); obj28.CompletionQuestVariablesFlags = list43; reference33 = obj28; obj25.Steps = list40; reference30 = obj25; - ref QuestSequence reference34 = ref span12[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -298242,63 +359912,88 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1039775u, new Vector3(-469.3523f, 55.880516f, -36.66742f), 960); + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039775u, new Vector3(-469.3523f, 55.880516f, -36.66742f), 960); obj29.Steps = list44; reference34 = obj29; - ref QuestSequence reference35 = ref span12[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span17 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference36 = ref span17[0]; + index2 = 3; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012283u, new Vector3(-465.1103f, 56.47351f, -30.71643f), 960); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span18 = CollectionsMarshal.AsSpan(list46); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + span5 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list46; reference36 = questStep6; - ref QuestStep reference37 = ref span17[1]; + num2++; + ref QuestStep reference37 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012281u, new Vector3(-472.25153f, 56.26001f, -20.676025f), 960); num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span19 = CollectionsMarshal.AsSpan(list47); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list47); + 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); questStep7.CompletionQuestVariablesFlags = list47; reference37 = questStep7; - ref QuestStep reference38 = ref span17[2]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012282u, new Vector3(-479.3927f, 56.290405f, -33.676758f), 960); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span20 = CollectionsMarshal.AsSpan(list48); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + span5 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list48; reference38 = questStep8; obj30.Steps = list45; reference35 = obj30; - ref QuestSequence reference39 = ref span12[4]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -298306,18 +360001,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2012284u, new Vector3(-474.32672f, 56.198975f, -41.031555f), 960); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012284u, new Vector3(-474.32672f, 56.198975f, -41.031555f), 960); obj31.Steps = list49; reference39 = obj31; - ref QuestSequence reference40 = ref span12[5]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) { StopDistance = 1f, @@ -298326,12 +360026,15 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 14002u; + Span span6 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span6[num4] = 14002u; obj33.KillEnemyDataIds = list51; reference41 = obj33; obj32.Steps = list50; reference40 = obj32; - ref QuestSequence reference42 = ref span12[6]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -298339,7 +360042,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) { StopDistance = 8f }; @@ -298352,24 +360057,30 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "liza"; questRoot6.Author = list53; - num = 5; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span21 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference43 = ref span21[0]; + index = 5; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041214u, new Vector3(-575.00574f, 65.25543f, -190.02063f), 960); + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041214u, new Vector3(-575.00574f, 65.25543f, -190.02063f), 960); obj35.Steps = list55; reference43 = obj35; - ref QuestSequence reference44 = ref span21[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -298377,27 +360088,33 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1040295u, new Vector3(-504.0513f, 73.32458f, 273.9757f), 960) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040295u, new Vector3(-504.0513f, 73.32458f, 273.9757f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj36.Steps = list56; reference44 = obj36; - ref QuestSequence reference45 = ref span21[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1040306u, new Vector3(-772.3049f, 59.814697f, 55.954834f), 960) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040306u, new Vector3(-772.3049f, 59.814697f, 55.954834f), 960) { StopDistance = 8f }; obj37.Steps = list57; reference45 = obj37; - ref QuestSequence reference46 = ref span21[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -298405,20 +360122,25 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1040301u, new Vector3(-620.44714f, 92.1207f, -203.35706f), 960); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040301u, new Vector3(-620.44714f, 92.1207f, -203.35706f), 960); obj38.Steps = list58; reference46 = obj38; - ref QuestSequence reference47 = ref span21[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span22 = CollectionsMarshal.AsSpan(list59); - span22[0] = new QuestStep(EInteractionType.Interact, 2012544u, new Vector3(-608.7807f, 92.12769f, -208f), 960); - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 2012429u, new Vector3(-471.27496f, 232.19641f, -253.10144f), 960) + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012544u, new Vector3(-608.7807f, 92.12769f, -208f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2012429u, new Vector3(-471.27496f, 232.19641f, -253.10144f), 960) { StopDistance = 5f, Mount = false @@ -298432,13 +360154,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "liza"; questRoot7.Author = list60; - num = 7; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span23 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference48 = ref span23[0]; + index = 7; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -298446,24 +360171,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040307u, new Vector3(-469.29126f, 232.2548f, -252.8573f), 960) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040307u, new Vector3(-469.29126f, 232.2548f, -252.8573f), 960) { StopDistance = 5f }; obj40.Steps = list62; reference48 = obj40; - ref QuestSequence reference49 = ref span23[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1040315u, new Vector3(-345.87628f, 254.66968f, -277.27173f), 960); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040315u, new Vector3(-345.87628f, 254.66968f, -277.27173f), 960); obj41.Steps = list63; reference49 = obj41; - ref QuestSequence reference50 = ref span23[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -298471,27 +360202,34 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1040313u, new Vector3(-339.10126f, 255.53401f, -281.75793f), 960); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040313u, new Vector3(-339.10126f, 255.53401f, -281.75793f), 960); obj42.Steps = list64; reference50 = obj42; - ref QuestSequence reference51 = ref span23[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span24 = CollectionsMarshal.AsSpan(list65); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.91977f, 262.7334f, -332.3608f), 960); - span24[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012030u, new Vector3(-333.547f, 270.83228f, -361.50153f), 960) + index2 = 3; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.91977f, 262.7334f, -332.3608f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012030u, new Vector3(-333.547f, 270.83228f, -361.50153f), 960) { AetherCurrentId = 2818389u }; - span24[2] = new QuestStep(EInteractionType.Interact, 1040317u, new Vector3(-200.57983f, 268.01642f, -312.58112f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040317u, new Vector3(-200.57983f, 268.01642f, -312.58112f), 960); obj43.Steps = list65; reference51 = obj43; - ref QuestSequence reference52 = ref span23[4]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 @@ -298499,37 +360237,48 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj44.Steps = list66; reference52 = obj44; - ref QuestSequence reference53 = ref span23[5]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 5 }; - num2 = 6; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span25 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference54 = ref span25[0]; + index2 = 6; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + ref QuestStep reference54 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.10138f, 269.016f, -591.87366f), 960); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span26 = CollectionsMarshal.AsSpan(list68); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + span5 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list68; skipConditions.StepIf = skipStepConditions; questStep9.SkipConditions = skipConditions; reference54 = questStep9; - ref QuestStep reference55 = ref span25[1]; + num2++; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 2012354u, new Vector3(30.777344f, 272.51086f, -600.7019f), 960) { StopDistance = 4f, @@ -298538,38 +360287,53 @@ public static class AssemblyQuestLoader num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list69); + 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); obj46.CompletionQuestVariablesFlags = list69; reference55 = obj46; - ref QuestStep reference56 = ref span25[2]; + num2++; + ref QuestStep reference56 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 2012355u, new Vector3(64.10315f, 272.4497f, -616.4492f), 960) { StopDistance = 4f }; - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list70 = new List(num4); + CollectionsMarshal.SetCount(list70, num4); + span5 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list70; reference56 = obj47; - span25[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 8f, Aetheryte = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - ref QuestStep reference57 = ref span25[4]; + num2++; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 2012356u, new Vector3(115.526f, 272.99915f, -617.853f), 960) { StopDistance = 4f @@ -298577,35 +360341,49 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list71); + 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); obj48.CompletionQuestVariablesFlags = list71; reference57 = obj48; - ref QuestStep reference58 = ref span25[5]; + num2++; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2012357u, new Vector3(151.59839f, 272.9381f, -592.5841f), 960) { StopDistance = 4f }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span30 = CollectionsMarshal.AsSpan(list72); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + span5 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list72; reference58 = obj49; obj45.Steps = list67; reference53 = obj45; - ref QuestSequence reference59 = ref span23[6]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -298613,7 +360391,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj50.Steps = list73; reference59 = obj50; questRoot7.QuestSequence = list61; @@ -298623,24 +360403,30 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "liza"; questRoot8.Author = list74; - num = 5; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span31 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference60 = ref span31[0]; + index = 5; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj51.Steps = list76; reference60 = obj51; - ref QuestSequence reference61 = ref span31[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -298648,21 +360434,27 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1040329u, new Vector3(75.69995f, 268.99997f, -528.3436f), 960); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040329u, new Vector3(75.69995f, 268.99997f, -528.3436f), 960); obj52.Steps = list77; reference61 = obj52; - ref QuestSequence reference62 = ref span31[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); obj53.Steps = list78; reference62 = obj53; - ref QuestSequence reference63 = ref span31[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 @@ -298670,18 +360462,23 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); obj54.Steps = list79; reference63 = obj54; - ref QuestSequence reference64 = ref span31[4]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039759u, new Vector3(86.778076f, 269.0949f, -491.66098f), 960) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039759u, new Vector3(86.778076f, 269.0949f, -491.66098f), 960) { StopDistance = 7f }; @@ -298694,13 +360491,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; questRoot9.Author = list81; - num = 4; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span32 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference65 = ref span32[0]; + index = 4; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -298708,24 +360508,30 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039760u, new Vector3(82.65808f, 269.0903f, -490.44025f), 960) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039760u, new Vector3(82.65808f, 269.0903f, -490.44025f), 960) { StopDistance = 7f }; obj56.Steps = list83; reference65 = obj56; - ref QuestSequence reference66 = ref span32[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1040338u, new Vector3(-344.44196f, 263.13083f, -463.70648f), 960); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040338u, new Vector3(-344.44196f, 263.13083f, -463.70648f), 960); obj57.Steps = list84; reference66 = obj57; - ref QuestSequence reference67 = ref span32[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -298733,29 +360539,35 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1040339u, new Vector3(-341.78687f, 263.37482f, -461.44812f), 960); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040339u, new Vector3(-341.78687f, 263.37482f, -461.44812f), 960); obj58.Steps = list85; reference67 = obj58; - ref QuestSequence reference68 = ref span32[3]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span33 = CollectionsMarshal.AsSpan(list86); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.215565f, 269.00882f, -703.63995f), 960) + index2 = 3; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.215565f, 269.00882f, -703.63995f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - span33[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012031u, new Vector3(13.107483f, 275.56262f, -756.40497f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012031u, new Vector3(13.107483f, 275.56262f, -756.40497f), 960) { DisableNavmesh = true, AetherCurrentId = 2818390u }; - span33[2] = new QuestStep(EInteractionType.CompleteQuest, 1039778u, new Vector3(184.03906f, 269.03912f, -637.6288f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039778u, new Vector3(184.03906f, 269.03912f, -637.6288f), 960); obj59.Steps = list86; reference68 = obj59; questRoot9.QuestSequence = list82; @@ -298765,13 +360577,16 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "liza"; questRoot10.Author = list87; - num = 10; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span34 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference69 = ref span34[0]; + index = 10; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -298779,33 +360594,40 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039782u, new Vector3(183.12354f, 269.0203f, -633.5393f), 960) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039782u, new Vector3(183.12354f, 269.0203f, -633.5393f), 960) { StopDistance = 6f }; obj60.Steps = list89; reference69 = obj60; - ref QuestSequence reference70 = ref span34[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span35 = CollectionsMarshal.AsSpan(list90); - span35[0] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960) + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960) { PickUpQuestId = new QuestId(4342) }; - span35[1] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960) { PickUpQuestId = new QuestId(4346) }; - span35[2] = new QuestStep(EInteractionType.Interact, 1039787u, new Vector3(434.37854f, 284.02585f, -328.51147f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039787u, new Vector3(434.37854f, 284.02585f, -328.51147f), 960); obj61.Steps = list90; reference70 = obj61; - ref QuestSequence reference71 = ref span34[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -298813,46 +360635,56 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span36 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference72 = ref span36[0]; + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012794u, new Vector3(440.7262f, 285.29785f, -319.50867f), 960); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG110_04459_Q1_000_041") }; questStep10.DialogueChoices = list92; reference72 = questStep10; - ref QuestStep reference73 = ref span36[1]; + index2++; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2012286u, new Vector3(506.98096f, 439.68872f, 157f), 960) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span37 = CollectionsMarshal.AsSpan(list93); - span37[0] = 14000u; - span37[1] = 14001u; + num4 = 2; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + span6 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span6[num3] = 14000u; + num3++; + span6[num3] = 14001u; obj63.KillEnemyDataIds = list93; reference73 = obj63; obj62.Steps = list91; reference71 = obj62; - ref QuestSequence reference74 = ref span34[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2012287u, new Vector3(506.98096f, 439.68872f, 157f), 960); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012287u, new Vector3(506.98096f, 439.68872f, 157f), 960); obj64.Steps = list94; reference74 = obj64; - ref QuestSequence reference75 = ref span34[4]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 @@ -298860,24 +360692,30 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1039790u, new Vector3(508.53735f, 439.695f, 155.59619f), 960) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039790u, new Vector3(508.53735f, 439.695f, 155.59619f), 960) { StopDistance = 5f }; obj65.Steps = list95; reference75 = obj65; - ref QuestSequence reference76 = ref span34[5]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 2012288u, new Vector3(493.33936f, 439.68872f, 174.9447f), 960); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012288u, new Vector3(493.33936f, 439.68872f, 174.9447f), 960); obj66.Steps = list96; reference76 = obj66; - ref QuestSequence reference77 = ref span34[6]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 6 @@ -298885,7 +360723,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list97)[0]; + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2012289u, new Vector3(490.44006f, 439.68872f, 191.30237f), 960) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -298893,28 +360733,34 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 13999u; + span6 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span6[num4] = 13999u; obj68.KillEnemyDataIds = list98; reference78 = obj68; obj67.Steps = list97; reference77 = obj67; - ref QuestSequence reference79 = ref span34[7]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span38 = CollectionsMarshal.AsSpan(list99); - span38[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012033u, new Vector3(539.26904f, 437.9796f, 239.39868f), 960) + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012033u, new Vector3(539.26904f, 437.9796f, 239.39868f), 960) { AetherCurrentId = 2818392u }; - span38[1] = new QuestStep(EInteractionType.Interact, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); obj69.Steps = list99; reference79 = obj69; - ref QuestSequence reference80 = ref span34[8]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 8 @@ -298922,66 +360768,90 @@ public static class AssemblyQuestLoader num2 = 3; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span39 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference81 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + ref QuestStep reference81 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1038039u, new Vector3(521.9348f, 436.99805f, 329.76257f), 960); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span40 = CollectionsMarshal.AsSpan(list101); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + span5 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list101; reference81 = questStep11; - ref QuestStep reference82 = ref span39[1]; + index2++; + ref QuestStep reference82 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1038041u, new Vector3(517.54016f, 436.99878f, 345.44885f), 960); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span41 = CollectionsMarshal.AsSpan(list102); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list102); + 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); questStep12.CompletionQuestVariablesFlags = list102; reference82 = questStep12; - ref QuestStep reference83 = ref span39[2]; + index2++; + ref QuestStep reference83 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1038045u, new Vector3(504.6615f, 437.1449f, 347.64624f), 960); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span42 = CollectionsMarshal.AsSpan(list103); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list103; reference83 = questStep13; obj70.Steps = list100; reference80 = obj70; - ref QuestSequence reference84 = ref span34[9]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span43 = CollectionsMarshal.AsSpan(list104); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + index2 = 2; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 5f, Aetheryte = EAetheryteLocation.UltimaThuleBaseOmicron }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); obj71.Steps = list104; reference84 = obj71; questRoot10.QuestSequence = list88; @@ -298991,13 +360861,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "liza"; questRoot11.Author = list105; - num = 7; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span44 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference85 = ref span44[0]; + index = 7; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -299005,31 +360878,38 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040340u, new Vector3(544.51807f, 437.9998f, 301.4419f), 960) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040340u, new Vector3(544.51807f, 437.9998f, 301.4419f), 960) { StopDistance = 5f }; obj72.Steps = list107; reference85 = obj72; - ref QuestSequence reference86 = ref span44[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) { PickUpQuestId = new QuestId(4355) }; - ref QuestStep reference87 = ref span45[1]; + num2++; + ref QuestStep reference87 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/043/AktKzk001_04354", @@ -299039,10 +360919,12 @@ public static class AssemblyQuestLoader questStep14.DialogueChoices = list109; questStep14.PickUpQuestId = new QuestId(4354); reference87 = questStep14; - span45[2] = new QuestStep(EInteractionType.Interact, 1040343u, new Vector3(624.3839f, 441.9763f, 437.33875f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040343u, new Vector3(624.3839f, 441.9763f, 437.33875f), 960); obj73.Steps = list108; reference86 = obj73; - ref QuestSequence reference88 = ref span44[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -299050,21 +360932,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2012359u, new Vector3(623.3462f, 442.95398f, 441.00085f), 960); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012359u, new Vector3(623.3462f, 442.95398f, 441.00085f), 960); obj74.Steps = list110; reference88 = obj74; - ref QuestSequence reference89 = ref span44[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1040344u, new Vector3(624.99414f, 441.9763f, 439.9939f), 960); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040344u, new Vector3(624.99414f, 441.9763f, 439.9939f), 960); obj75.Steps = list111; reference89 = obj75; - ref QuestSequence reference90 = ref span44[4]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -299072,24 +360960,30 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Snipe, 2012360u, new Vector3(525.13916f, 441.03137f, 375.50916f), 960) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 2012360u, new Vector3(525.13916f, 441.03137f, 375.50916f), 960) { Comment = "Find Errant Omicron" }; obj76.Steps = list112; reference90 = obj76; - ref QuestSequence reference91 = ref span44[5]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1040349u, new Vector3(636.92664f, 438.64966f, 248.0658f), 960); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040349u, new Vector3(636.92664f, 438.64966f, 248.0658f), 960); obj77.Steps = list113; reference91 = obj77; - ref QuestSequence reference92 = ref span44[6]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -299097,20 +360991,24 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span46 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference93 = ref span46[0]; + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference93 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2012796u, new Vector3(639.27673f, 439.78027f, 241.77905f), 960); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + num4 = 1; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG111_04460_Q1_000_135") }; questStep15.DialogueChoices = list115; reference93 = questStep15; - span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1041157u, new Vector3(801.63257f, 478.9742f, 196.79553f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041157u, new Vector3(801.63257f, 478.9742f, 196.79553f), 960); obj78.Steps = list114; reference92 = obj78; questRoot11.QuestSequence = list106; @@ -299120,24 +361018,30 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "liza"; questRoot12.Author = list116; - num = 5; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span47 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference94 = ref span47[0]; + index = 5; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041158u, new Vector3(799.9846f, 479.0242f, 199.42017f), 960); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041158u, new Vector3(799.9846f, 479.0242f, 199.42017f), 960); obj79.Steps = list118; reference94 = obj79; - ref QuestSequence reference95 = ref span47[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -299145,27 +361049,33 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1040342u, new Vector3(546.07446f, 437.9998f, 303.8529f), 960) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040342u, new Vector3(546.07446f, 437.9998f, 303.8529f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj80.Steps = list119; reference95 = obj80; - ref QuestSequence reference96 = ref span47[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Snipe, 1039565u, new Vector3(609.4606f, 440.4633f, 398.42822f), 960) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 1039565u, new Vector3(609.4606f, 440.4633f, 398.42822f), 960) { Comment = "Identify Anomaly (Head, Elbow or Knee)" }; obj81.Steps = list120; reference96 = obj81; - ref QuestSequence reference97 = ref span47[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -299173,18 +361083,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1041159u, new Vector3(624.0176f, 441.9763f, 439.78027f), 960); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041159u, new Vector3(624.0176f, 441.9763f, 439.78027f), 960); obj82.Steps = list121; reference97 = obj82; - ref QuestSequence reference98 = ref span47[4]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041162u, new Vector3(623.5598f, 441.9763f, 436.78955f), 960); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041162u, new Vector3(623.5598f, 441.9763f, 436.78955f), 960); obj83.Steps = list122; reference98 = obj83; questRoot12.QuestSequence = list117; @@ -299194,13 +361109,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot13.Author = list123; - num = 6; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span48 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference99 = ref span48[0]; + index = 6; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -299208,24 +361126,30 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041161u, new Vector3(622.4308f, 441.9763f, 436.17908f), 960); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041161u, new Vector3(622.4308f, 441.9763f, 436.17908f), 960); obj84.Steps = list125; reference99 = obj84; - ref QuestSequence reference100 = ref span48[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1041163u, new Vector3(493.15625f, 436.8645f, 360.46387f), 960) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041163u, new Vector3(493.15625f, 436.8645f, 360.46387f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj85.Steps = list126; reference100 = obj85; - ref QuestSequence reference101 = ref span48[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -299233,37 +361157,45 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span49 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference102 = ref span49[0]; + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2012795u, new Vector3(492.48486f, 438.04077f, 365.43823f), 960); num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG113_04462_Q1_000_040") }; questStep16.DialogueChoices = list128; reference102 = questStep16; - span49[1] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(460.563f, 417.0675f, 415.21326f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(460.563f, 417.0675f, 415.21326f), 960); obj86.Steps = list127; reference101 = obj86; - ref QuestSequence reference103 = ref span48[3]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1041166u, new Vector3(459.25073f, 417.0675f, 414.66382f), 960) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041166u, new Vector3(459.25073f, 417.0675f, 414.66382f), 960) { StopDistance = 5f }; obj87.Steps = list129; reference103 = obj87; - ref QuestSequence reference104 = ref span48[4]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -299271,21 +361203,26 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(231.45715f, 566f, 317.96698f), 960) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(231.45715f, 566f, 317.96698f), 960) { StopDistance = 1f }; obj88.Steps = list130; reference104 = obj88; - ref QuestSequence reference105 = ref span48[5]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041167u, new Vector3(221.20996f, 566f, 314.4121f), 960); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041167u, new Vector3(221.20996f, 566f, 314.4121f), 960); obj89.Steps = list131; reference105 = obj89; questRoot13.QuestSequence = list124; @@ -299295,13 +361232,16 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot14.Author = list132; - num = 6; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span50 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference106 = ref span50[0]; + index = 6; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -299309,35 +361249,47 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041168u, new Vector3(222.52222f, 565.99994f, 313.1914f), 960); + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041168u, new Vector3(222.52222f, 565.99994f, 313.1914f), 960); obj90.Steps = list134; reference106 = obj90; - ref QuestSequence reference107 = ref span50[1]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span51 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference108 = ref span51[0]; + index2 = 6; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2012364u, new Vector3(203.9978f, 565.9723f, 296.98633f), 960); - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span52 = CollectionsMarshal.AsSpan(list136); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + span5 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list136; num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG114_04463_Q1_000_031"), @@ -299345,79 +361297,116 @@ public static class AssemblyQuestLoader }; questStep17.DialogueChoices = list137; reference108 = questStep17; - ref QuestStep reference109 = ref span51[1]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2012367u, new Vector3(185.74805f, 568.902f, 240.03955f), 960); - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span53 = CollectionsMarshal.AsSpan(list138); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + span5 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list138; reference109 = questStep18; - ref QuestStep reference110 = ref span51[2]; + num2++; + ref QuestStep reference110 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2012368u, new Vector3(163.16467f, 567.13196f, 280.93384f), 960); num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span54 = CollectionsMarshal.AsSpan(list139); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list139); + 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)8, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list139; reference110 = questStep19; - ref QuestStep reference111 = ref span51[3]; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2012366u, new Vector3(157.24414f, 566.03345f, 295.97925f), 960); - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span55 = CollectionsMarshal.AsSpan(list140); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list140 = new List(num4); + CollectionsMarshal.SetCount(list140, num4); + span5 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list140; reference111 = questStep20; - ref QuestStep reference112 = ref span51[4]; + num2++; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2012369u, new Vector3(104.29541f, 569.2682f, 297.16943f), 960); num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span56 = CollectionsMarshal.AsSpan(list141); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list141); + 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)4, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list141; reference112 = questStep21; - ref QuestStep reference113 = ref span51[5]; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2012365u, new Vector3(78.99597f, 566.27747f, 241.9928f), 960); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span57 = CollectionsMarshal.AsSpan(list142); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + span5 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list142; num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG114_04463_Q2_000_061"), @@ -299427,7 +361416,8 @@ public static class AssemblyQuestLoader reference113 = questStep22; obj91.Steps = list135; reference107 = obj91; - ref QuestSequence reference114 = ref span50[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -299435,21 +361425,27 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1041171u, new Vector3(39.993896f, 567.5f, 192.88928f), 960); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041171u, new Vector3(39.993896f, 567.5f, 192.88928f), 960); obj92.Steps = list144; reference114 = obj92; - ref QuestSequence reference115 = ref span50[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1041170u, new Vector3(145.28113f, 566f, 390.7987f), 960); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041170u, new Vector3(145.28113f, 566f, 390.7987f), 960); obj93.Steps = list145; reference115 = obj93; - ref QuestSequence reference116 = ref span50[4]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -299457,18 +361453,23 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.462573f, 637.1029f, 2.690414f), 1027); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.462573f, 637.1029f, 2.690414f), 1027); obj94.Steps = list146; reference116 = obj94; - ref QuestSequence reference117 = ref span50[5]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041173u, new Vector3(1.663208f, 637.10297f, 5.2338257f), 960) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041173u, new Vector3(1.663208f, 637.10297f, 5.2338257f), 960) { StopDistance = 5f, DisableNavmesh = true @@ -299482,13 +361483,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "liza"; questRoot15.Author = list148; - num = 9; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span58 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference118 = ref span58[0]; + index = 9; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -299496,21 +361500,26 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042216u, new Vector3(4.196167f, 637.10297f, 4.2266846f), 960) + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042216u, new Vector3(4.196167f, 637.10297f, 4.2266846f), 960) { DisableNavmesh = true }; obj96.Steps = list150; reference118 = obj96; - ref QuestSequence reference119 = ref span58[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Duty, null, null, 960) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 960) { DutyOptions = new DutyOptions { @@ -299519,11 +361528,13 @@ public static class AssemblyQuestLoader }; obj97.Steps = list151; reference119 = obj97; - span58[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference120 = ref span58[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 3 @@ -299531,7 +361542,9 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Duty, null, null, 1029) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1029) { DutyOptions = new DutyOptions { @@ -299540,19 +361553,23 @@ public static class AssemblyQuestLoader }; obj98.Steps = list152; reference120 = obj98; - span58[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference121 = ref span58[5]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1041179u, new Vector3(99.99231f, 0f, 89.98242f), 1026) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1041179u, new Vector3(99.99231f, 0f, 89.98242f), 1026) { DisableNavmesh = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -299562,11 +361579,13 @@ public static class AssemblyQuestLoader }; obj99.Steps = list153; reference121 = obj99; - span58[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference122 = ref span58[7]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 7 @@ -299574,26 +361593,34 @@ public static class AssemblyQuestLoader num2 = 8; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span59 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference123 = ref span59[0]; + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1041188u, new Vector3(-0.16790771f, 0f, 0.8086548f), 351) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span60 = CollectionsMarshal.AsSpan(list155); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + span5 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list155; reference123 = obj101; - ref QuestStep reference124 = ref span59[1]; + index2++; + ref QuestStep reference124 = ref span3[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1041181u, new Vector3(-1.236023f, 0f, 0.6560669f), 351) { StopDistance = 5f @@ -299601,30 +361628,44 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span61 = CollectionsMarshal.AsSpan(list156); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list156); + 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); obj102.CompletionQuestVariablesFlags = list156; reference124 = obj102; - ref QuestStep reference125 = ref span59[2]; + index2++; + ref QuestStep reference125 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1041182u, new Vector3(-6.4240723f, 0.009977884f, -4.7455444f), 351); - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span62 = CollectionsMarshal.AsSpan(list157); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + span5 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list157; reference125 = questStep23; - ref QuestStep reference126 = ref span59[3]; + index2++; + ref QuestStep reference126 = ref span3[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1041184u, new Vector3(-7.034485f, 0f, -5.8442383f), 351) { StopDistance = 5f @@ -299632,87 +361673,126 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span63 = CollectionsMarshal.AsSpan(list158); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list158); + 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); obj103.CompletionQuestVariablesFlags = list158; reference126 = obj103; - ref QuestStep reference127 = ref span59[4]; + index2++; + ref QuestStep reference127 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1041183u, new Vector3(6.6376343f, 0f, -6.790344f), 351); - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span64 = CollectionsMarshal.AsSpan(list159); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list159 = new List(num4); + CollectionsMarshal.SetCount(list159, num4); + span5 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list159; reference127 = questStep24; - ref QuestStep reference128 = ref span59[5]; + index2++; + ref QuestStep reference128 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1041187u, new Vector3(10.482849f, 0f, -8.255188f), 351); num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span65 = CollectionsMarshal.AsSpan(list160); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list160); + 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); questStep25.CompletionQuestVariablesFlags = list160; reference128 = questStep25; - ref QuestStep reference129 = ref span59[6]; + index2++; + ref QuestStep reference129 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1041185u, new Vector3(25.864014f, -1f, -5.7526855f), 351); - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span66 = CollectionsMarshal.AsSpan(list161); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + span5 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list161; reference129 = questStep26; - ref QuestStep reference130 = ref span59[7]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1041186u, new Vector3(29.984009f, -1f, 0.1373291f), 351); num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span67 = CollectionsMarshal.AsSpan(list162); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list162); + 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)4, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list162; reference130 = questStep27; obj100.Steps = list154; reference122 = obj100; - ref QuestSequence reference131 = ref span58[8]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference132 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.CompleteQuest, 1041189u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + num4 = 1; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + span4 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG115_04464_Q13_000_391") @@ -299728,13 +361808,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot16.Author = list165; - num = 2; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span68 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference133 = ref span68[0]; + index = 2; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -299742,18 +361825,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); obj105.Steps = list167; reference133 = obj105; - ref QuestSequence reference134 = ref span68[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); obj106.Steps = list168; reference134 = obj106; questRoot16.QuestSequence = list166; @@ -299763,13 +361851,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; questRoot17.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span69 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference135 = ref span69[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -299777,7 +361868,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041268u, new Vector3(-81.1933f, 1.0795165f, 36.51477f), 962) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041268u, new Vector3(-81.1933f, 1.0795165f, 36.51477f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -299788,21 +361881,25 @@ public static class AssemblyQuestLoader }; obj107.Steps = list171; reference135 = obj107; - ref QuestSequence reference136 = ref span69[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1039508u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039508u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj108.Steps = list172; reference136 = obj108; - ref QuestSequence reference137 = ref span69[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -299810,8 +361907,9 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span70 = CollectionsMarshal.AsSpan(list173); - span70[0] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -299821,18 +361919,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span70[1] = new QuestStep(EInteractionType.Interact, 2012425u, new Vector3(0.10675049f, -0.015319824f, -8.163635f), 844); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012425u, new Vector3(0.10675049f, -0.015319824f, -8.163635f), 844); obj109.Steps = list173; reference137 = obj109; - ref QuestSequence reference138 = ref span69[3]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961) { NextQuestId = new QuestId(4476) }; @@ -299845,13 +361947,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "liza"; questRoot18.Author = list175; - num = 5; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span71 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference139 = ref span71[0]; + index = 5; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -299859,25 +361964,31 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961); obj111.Steps = list177; reference139 = obj111; - ref QuestSequence reference140 = ref span71[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1041272u, new Vector3(228.19861f, 7.3858566f, 239.94812f), 961) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041272u, new Vector3(228.19861f, 7.3858566f, 239.94812f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; obj112.Steps = list178; reference140 = obj112; - ref QuestSequence reference141 = ref span71[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -299885,7 +361996,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list179)[0]; + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + ref QuestStep reference142 = ref span3[index2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) { Fly = true @@ -299893,7 +362006,9 @@ public static class AssemblyQuestLoader num3 = 1; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKRA102_04476_SYSTEM_046") @@ -299902,15 +362017,18 @@ public static class AssemblyQuestLoader reference142 = obj114; obj113.Steps = list179; reference141 = obj113; - ref QuestSequence reference143 = ref span71[3]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -299919,7 +362037,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list181; reference143 = obj115; - ref QuestSequence reference144 = ref span71[4]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -299927,7 +362046,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041501u, new Vector3(101.51831f, -9.999997E-12f, 101.60974f), 1025) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041501u, new Vector3(101.51831f, -9.999997E-12f, 101.60974f), 1025) { StopDistance = 5f, NextQuestId = new QuestId(4477) @@ -299941,24 +362062,30 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot19.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span72 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference145 = ref span72[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041276u, new Vector3(99.07678f, 7.6875f, -66.971924f), 1025); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041276u, new Vector3(99.07678f, 7.6875f, -66.971924f), 1025); obj117.Steps = list185; reference145 = obj117; - ref QuestSequence reference146 = ref span72[1]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -299966,7 +362093,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -299975,15 +362104,18 @@ public static class AssemblyQuestLoader }; obj118.Steps = list186; reference146 = obj118; - ref QuestSequence reference147 = ref span72[2]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041502u, new Vector3(99.22937f, 7.6875f, -67.88745f), 1025) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041502u, new Vector3(99.22937f, 7.6875f, -67.88745f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4478) @@ -299997,13 +362129,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot20.Author = list188; - num = 3; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span73 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference148 = ref span73[0]; + index = 3; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -300011,21 +362146,26 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041503u, new Vector3(100.87732f, 7.6875f, -67.61273f), 1025) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041503u, new Vector3(100.87732f, 7.6875f, -67.61273f), 1025) { StopDistance = 4f }; obj120.Steps = list190; reference148 = obj120; - ref QuestSequence reference149 = ref span73[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -300034,7 +362174,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list191; reference149 = obj121; - ref QuestSequence reference150 = ref span73[2]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -300042,7 +362183,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) { StopDistance = 5f, NextQuestId = new QuestId(4479) @@ -300056,27 +362199,33 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; questRoot21.Author = list193; - num = 6; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span74 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference151 = ref span74[0]; + index = 6; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) { StopDistance = 5f }; obj123.Steps = list195; reference151 = obj123; - ref QuestSequence reference152 = ref span74[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -300084,18 +362233,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1041279u, new Vector3(114.54944f, -9.999999E-12f, -25.742065f), 1025); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041279u, new Vector3(114.54944f, -9.999999E-12f, -25.742065f), 1025); obj124.Steps = list196; reference152 = obj124; - ref QuestSequence reference153 = ref span74[2]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -300104,11 +362258,13 @@ public static class AssemblyQuestLoader }; obj125.Steps = list197; reference153 = obj125; - span74[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference154 = ref span74[4]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -300116,21 +362272,26 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1041280u, new Vector3(98.95471f, -1E-11f, -29.953552f), 1025) + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041280u, new Vector3(98.95471f, -1E-11f, -29.953552f), 1025) { StopDistance = 5f }; obj126.Steps = list198; reference154 = obj126; - ref QuestSequence reference155 = ref span74[5]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041934u, new Vector3(-639.765f, -27.175016f, 301.1062f), 956) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041934u, new Vector3(-639.765f, -27.175016f, 301.1062f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, NextQuestId = new QuestId(4635) @@ -300144,13 +362305,16 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; questRoot22.Author = list200; - num = 7; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span75 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference156 = ref span75[0]; + index = 7; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -300158,21 +362322,27 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956); + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956); obj128.Steps = list202; reference156 = obj128; - ref QuestSequence reference157 = ref span75[1]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 2012725u, new Vector3(693.1715f, 99.01575f, 123.52173f), 956); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012725u, new Vector3(693.1715f, 99.01575f, 123.52173f), 956); obj129.Steps = list203; reference157 = obj129; - ref QuestSequence reference158 = ref span75[2]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 @@ -300180,24 +362350,30 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 2012726u, new Vector3(806.79016f, 154.10083f, -149.64526f), 956); + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012726u, new Vector3(806.79016f, 154.10083f, -149.64526f), 956); obj130.Steps = list204; reference158 = obj130; - ref QuestSequence reference159 = ref span75[3]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1041681u, new Vector3(436.69788f, 166.19273f, -430.4723f), 956) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041681u, new Vector3(436.69788f, 166.19273f, -430.4723f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; obj131.Steps = list205; reference159 = obj131; - ref QuestSequence reference160 = ref span75[4]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -300205,32 +362381,40 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1041668u, new Vector3(394.12524f, 173.82095f, -646.75366f), 956); + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041668u, new Vector3(394.12524f, 173.82095f, -646.75366f), 956); obj132.Steps = list206; reference160 = obj132; - ref QuestSequence reference161 = ref span75[5]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list207)[0]; + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 14069u; + num4 = 1; + List list208 = new List(num4); + CollectionsMarshal.SetCount(list208, num4); + span6 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span6[num3] = 14069u; obj134.KillEnemyDataIds = list208; reference162 = obj134; obj133.Steps = list207; reference161 = obj133; - ref QuestSequence reference163 = ref span75[6]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -300238,7 +362422,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) { StopDistance = 5f }; @@ -300251,26 +362437,33 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; questRoot23.Author = list210; - num = 3; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span76 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference164 = ref span76[0]; + index = 3; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference165 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1041683u, new Vector3(-29.984009f, -31.53043f, -23.758362f), 956); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI101_04484_Q1_000_000"), @@ -300280,7 +362473,8 @@ public static class AssemblyQuestLoader reference165 = questStep29; obj136.Steps = list212; reference164 = obj136; - ref QuestSequence reference166 = ref span76[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -300288,18 +362482,23 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1041684u, new Vector3(50.43103f, -29.530062f, 27.115234f), 956); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041684u, new Vector3(50.43103f, -29.530062f, 27.115234f), 956); obj137.Steps = list214; reference166 = obj137; - ref QuestSequence reference167 = ref span76[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041685u, new Vector3(154.89429f, -17.530376f, -66.2395f), 956); + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041685u, new Vector3(154.89429f, -17.530376f, -66.2395f), 956); obj138.Steps = list215; reference167 = obj138; questRoot23.QuestSequence = list211; @@ -300309,13 +362508,16 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "liza"; questRoot24.Author = list216; - num = 7; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span77 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference168 = ref span77[0]; + index = 7; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -300323,12 +362525,16 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list218)[0]; + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + ref QuestStep reference169 = ref span3[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.AcceptQuest, 1041331u, new Vector3(202.4414f, 1.769943f, 727.7484f), 957); - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new DialogueChoice + num4 = 1; + List list219 = new List(num4); + CollectionsMarshal.SetCount(list219, num4); + span4 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA201_04489_Q1_000_004"), @@ -300338,18 +362544,22 @@ public static class AssemblyQuestLoader reference169 = questStep30; obj139.Steps = list218; reference168 = obj139; - ref QuestSequence reference170 = ref span77[1]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1041333u, new Vector3(190.6919f, 14.1185875f, 489.4635f), 957); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041333u, new Vector3(190.6919f, 14.1185875f, 489.4635f), 957); obj140.Steps = list220; reference170 = obj140; - ref QuestSequence reference171 = ref span77[2]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -300357,18 +362567,23 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957); obj141.Steps = list221; reference171 = obj141; - ref QuestSequence reference172 = ref span77[3]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list222)[0]; + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference173 = ref span3[num2]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, null, new Vector3(167.34262f, 41.652294f, 409.31412f), 957) { StopDistance = 1f, @@ -300377,12 +362592,15 @@ public static class AssemblyQuestLoader num3 = 1; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = 14043u; + span6 = CollectionsMarshal.AsSpan(list223); + num4 = 0; + span6[num4] = 14043u; obj143.KillEnemyDataIds = list223; reference173 = obj143; obj142.Steps = list222; reference172 = obj142; - ref QuestSequence reference174 = ref span77[4]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 4 @@ -300390,27 +362608,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1041338u, new Vector3(167.1626f, 41.614826f, 409.53687f), 957) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041338u, new Vector3(167.1626f, 41.614826f, 409.53687f), 957) { StopDistance = 7f }; obj144.Steps = list224; reference174 = obj144; - ref QuestSequence reference175 = ref span77[5]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957) { StopDistance = 5f }; obj145.Steps = list225; reference175 = obj145; - ref QuestSequence reference176 = ref span77[6]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -300418,7 +362642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj146.Steps = list226; reference176 = obj146; questRoot24.QuestSequence = list217; @@ -300428,24 +362654,30 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "liza"; questRoot25.Author = list227; - num = 8; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span78 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference177 = ref span78[0]; + index = 8; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj147.Steps = list229; reference177 = obj147; - ref QuestSequence reference178 = ref span78[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -300453,27 +362685,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) { Fly = true }; obj148.Steps = list230; reference178 = obj148; - ref QuestSequence reference179 = ref span78[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) { StopDistance = 7f }; obj149.Steps = list231; reference179 = obj149; - ref QuestSequence reference180 = ref span78[3]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -300481,63 +362719,88 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span79 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference181 = ref span79[0]; + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference181 = ref span3[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1041342u, new Vector3(-123.9491f, 0.3411509f, 642.8778f), 957); - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span80 = CollectionsMarshal.AsSpan(list233); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list233 = new List(num4); + CollectionsMarshal.SetCount(list233, num4); + span5 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list233; reference181 = questStep31; - ref QuestStep reference182 = ref span79[1]; + index2++; + ref QuestStep reference182 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1041344u, new Vector3(-160.29602f, -0.10002975f, 661.86f), 957); num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span81 = CollectionsMarshal.AsSpan(list234); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list234); + 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); questStep32.CompletionQuestVariablesFlags = list234; reference182 = questStep32; - ref QuestStep reference183 = ref span79[2]; + index2++; + ref QuestStep reference183 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1041343u, new Vector3(-181.10938f, 0.2237328f, 640.2533f), 957); - num3 = 6; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - Span span82 = CollectionsMarshal.AsSpan(list235); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + span5 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list235; reference183 = questStep33; obj150.Steps = list232; reference180 = obj150; - ref QuestSequence reference184 = ref span78[4]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957); + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957); obj151.Steps = list236; reference184 = obj151; - ref QuestSequence reference185 = ref span78[5]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -300545,7 +362808,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list237)[0]; + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1041345u, new Vector3(-112.596375f, 35.468357f, 392.87402f), 957) { Fly = true @@ -300553,7 +362818,9 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA202_04490_Q1_000_042"), @@ -300563,29 +362830,35 @@ public static class AssemblyQuestLoader reference186 = obj153; obj152.Steps = list237; reference185 = obj152; - ref QuestSequence reference187 = ref span78[6]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - ref QuestStep reference188 = ref CollectionsMarshal.AsSpan(list239)[0]; + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + ref QuestStep reference188 = ref span3[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 2012325u, new Vector3(-206.16473f, 20.645447f, 229.20569f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 14042u; + num4 = 1; + List list240 = new List(num4); + CollectionsMarshal.SetCount(list240, num4); + span6 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span6[num3] = 14042u; obj155.KillEnemyDataIds = list240; reference188 = obj155; obj154.Steps = list239; reference187 = obj154; - ref QuestSequence reference189 = ref span78[7]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -300593,7 +362866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) { Fly = true, NextQuestId = new QuestId(4491) @@ -300607,27 +362882,33 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "liza"; questRoot26.Author = list242; - num = 6; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span83 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference190 = ref span83[0]; + index = 6; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) { StopDistance = 7f }; obj157.Steps = list244; reference190 = obj157; - ref QuestSequence reference191 = ref span83[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -300635,32 +362916,38 @@ public static class AssemblyQuestLoader num2 = 2; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span84 = CollectionsMarshal.AsSpan(list245); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - span84[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj158.Steps = list245; reference191 = obj158; - ref QuestSequence reference192 = ref span83[2]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span85 = CollectionsMarshal.AsSpan(list246); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957); - span85[1] = new QuestStep(EInteractionType.Interact, 1041347u, new Vector3(171.40454f, 4.763736f, 670.7103f), 957) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041347u, new Vector3(171.40454f, 4.763736f, 670.7103f), 957) { Fly = true }; obj159.Steps = list246; reference192 = obj159; - ref QuestSequence reference193 = ref span83[3]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -300668,22 +362955,26 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1041348u, new Vector3(176.83679f, 10.170378f, 549.0044f), 957) + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041348u, new Vector3(176.83679f, 10.170378f, 549.0044f), 957) { Fly = true }; obj160.Steps = list247; reference193 = obj160; - ref QuestSequence reference194 = ref span83[4]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span86 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference195 = ref span86[0]; + index2 = 5; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj162 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.2226f, 10.08736f, 604.91754f), 957) { Fly = true @@ -300693,32 +362984,46 @@ public static class AssemblyQuestLoader num3 = 6; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - Span span87 = CollectionsMarshal.AsSpan(list249); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list249); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list249; skipConditions2.StepIf = skipStepConditions2; obj162.SkipConditions = skipConditions2; reference195 = obj162; - ref QuestStep reference196 = ref span86[1]; + num2++; + ref QuestStep reference196 = ref span3[num2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1037655u, new Vector3(218.73804f, 10.087359f, 605.249f), 957); - num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span88 = CollectionsMarshal.AsSpan(list250); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list250 = new List(num4); + CollectionsMarshal.SetCount(list250, num4); + span5 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep34.CompletionQuestVariablesFlags = list250; reference196 = questStep34; - ref QuestStep reference197 = ref span86[2]; + num2++; + ref QuestStep reference197 = ref span3[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1037656u, new Vector3(208.1482f, 4.5989733f, 672.0835f), 957) { Fly = true @@ -300726,54 +363031,75 @@ public static class AssemblyQuestLoader num3 = 6; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span89 = CollectionsMarshal.AsSpan(list251); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list251); + 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); obj163.CompletionQuestVariablesFlags = list251; reference197 = obj163; - ref QuestStep reference198 = ref span86[3]; + num2++; + ref QuestStep reference198 = ref span3[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.044f, 1.8294137f, 708.1364f), 957); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span90 = CollectionsMarshal.AsSpan(list252); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list252 = new List(num4); + CollectionsMarshal.SetCount(list252, num4); + span5 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list252; skipConditions3.StepIf = skipStepConditions3; questStep35.SkipConditions = skipConditions3; reference198 = questStep35; - ref QuestStep reference199 = ref span86[4]; + num2++; + ref QuestStep reference199 = ref span3[num2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1037708u, new Vector3(160.84534f, 1.8294137f, 710.68884f), 957); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span91 = CollectionsMarshal.AsSpan(list253); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list253); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list253; skipConditions4.StepIf = skipStepConditions4; questStep36.SkipConditions = skipConditions4; reference199 = questStep36; obj161.Steps = list248; reference194 = obj161; - ref QuestSequence reference200 = ref span83[5]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -300781,12 +363107,14 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span92 = CollectionsMarshal.AsSpan(list254); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957) { NextQuestId = new QuestId(4492) }; @@ -300799,24 +363127,30 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list255); + index = 0; + span[index] = "liza"; questRoot27.Author = list255; - num = 5; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span93 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference201 = ref span93[0]; + index = 5; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + span2 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957); obj165.Steps = list257; reference201 = obj165; - ref QuestSequence reference202 = ref span93[1]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -300824,27 +363158,31 @@ public static class AssemblyQuestLoader num2 = 2; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span94 = CollectionsMarshal.AsSpan(list258); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - span94[1] = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) { Fly = true }; obj166.Steps = list258; reference202 = obj166; - ref QuestSequence reference203 = ref span93[2]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 }; - num2 = 8; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - Span span95 = CollectionsMarshal.AsSpan(list259); - ref QuestStep reference204 = ref span95[0]; + index2 = 8; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) { SkipConditions = new SkipConditions @@ -300855,53 +363193,63 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = new DialogueChoice + num4 = 1; + List list260 = new List(num4); + CollectionsMarshal.SetCount(list260, num4); + span4 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZA204_04492_Q1_000_054") }; obj168.DialogueChoices = list260; reference204 = obj168; - span95[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(196.16476f, 9.8597355f, 555.2623f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(196.16476f, 9.8597355f, 555.2623f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - span95[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.92545f, 10.335635f, 567.79816f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.92545f, 10.335635f, 567.79816f), 957) { Mount = false, Sprint = false }; - span95[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(170.85558f, 9.90086f, 552.88477f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(170.85558f, 9.90086f, 552.88477f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - span95[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.38617f, 14.520461f, 539.5006f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.38617f, 14.520461f, 539.5006f), 957) { Mount = false, Sprint = false }; - span95[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(135.2287f, 19.553255f, 527.03894f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(135.2287f, 19.553255f, 527.03894f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - span95[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.45122f, 23.673492f, 500.76654f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.45122f, 23.673492f, 500.76654f), 957) { Mount = false, Sprint = false }; - span95[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.16548f, 23.302423f, 481.5656f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.16548f, 23.302423f, 481.5656f), 957); obj167.Steps = list259; reference203 = obj167; - ref QuestSequence reference205 = ref span93[3]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -300909,26 +363257,31 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1041394u, new Vector3(-30.289246f, 29.867386f, 458.15198f), 957) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041394u, new Vector3(-30.289246f, 29.867386f, 458.15198f), 957) { Fly = true }; obj169.Steps = list261; reference205 = obj169; - ref QuestSequence reference206 = ref span93[4]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span96 = CollectionsMarshal.AsSpan(list262); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj170.Steps = list262; reference206 = obj170; questRoot27.QuestSequence = list256; @@ -300938,13 +363291,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot28.Author = list263; - num = 5; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span97 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference207 = ref span97[0]; + index = 5; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -300952,47 +363308,65 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042175u, new Vector3(386.83142f, 12.541633f, -311.20776f), 957); + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042175u, new Vector3(386.83142f, 12.541633f, -311.20776f), 957); obj171.Steps = list265; reference207 = obj171; - ref QuestSequence reference208 = ref span97[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span98 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference209 = ref span98[0]; + index2 = 3; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference209 = ref span3[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1041400u, new Vector3(422.53748f, 3.1168795f, -268.1468f), 957); num3 = 6; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span99 = CollectionsMarshal.AsSpan(list267); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list267); + 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); questStep37.CompletionQuestVariablesFlags = list267; reference209 = questStep37; - ref QuestStep reference210 = ref span98[1]; + num2++; + ref QuestStep reference210 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1041398u, new Vector3(437.39978f, 3.1168795f, -248.64581f), 957); - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span100 = CollectionsMarshal.AsSpan(list268); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + span5 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list268; reference210 = questStep38; - ref QuestStep reference211 = ref span98[2]; + num2++; + ref QuestStep reference211 = ref span3[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1041399u, new Vector3(365.9265f, 3.1168795f, -245.53296f), 957) { Fly = true @@ -301000,18 +363374,25 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span101 = CollectionsMarshal.AsSpan(list269); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list269); + 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); obj173.CompletionQuestVariablesFlags = list269; reference211 = obj173; obj172.Steps = list266; reference208 = obj172; - ref QuestSequence reference212 = ref span97[2]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -301019,34 +363400,40 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span102 = CollectionsMarshal.AsSpan(list270); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957) { Fly = true }; - span102[1] = new QuestStep(EInteractionType.Interact, 1042187u, new Vector3(404.89807f, 7.6153164f, -200.64093f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042187u, new Vector3(404.89807f, 7.6153164f, -200.64093f), 957) { DisableNavmesh = true }; obj174.Steps = list270; reference212 = obj174; - ref QuestSequence reference213 = ref span97[3]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span103 = CollectionsMarshal.AsSpan(list271); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957); - span103[1] = new QuestStep(EInteractionType.Interact, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { Fly = true }; obj175.Steps = list271; reference213 = obj175; - ref QuestSequence reference214 = ref span97[4]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -301054,7 +363441,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true, NextQuestId = new QuestId(4494) @@ -301068,24 +363457,30 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot29.Author = list273; - num = 6; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span104 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference215 = ref span104[0]; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); obj177.Steps = list275; reference215 = obj177; - ref QuestSequence reference216 = ref span104[1]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -301093,48 +363488,65 @@ public static class AssemblyQuestLoader num2 = 3; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span105 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference217 = ref span105[0]; + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference217 = ref span3[index2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2012454u, new Vector3(519.6764f, 13.01593f, -339.5285f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 14041u; + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + span6 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span6[num3] = 14041u; obj179.KillEnemyDataIds = list277; num3 = 6; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - Span span106 = CollectionsMarshal.AsSpan(list278); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list278); + 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); obj179.CompletionQuestVariablesFlags = list278; reference217 = obj179; - ref QuestStep reference218 = ref span105[1]; + index2++; + ref QuestStep reference218 = ref span3[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2012453u, new Vector3(556.02344f, 9.170593f, -382.00964f), 957) { Fly = true }; - num3 = 6; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - Span span107 = CollectionsMarshal.AsSpan(list279); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list279 = new List(num4); + CollectionsMarshal.SetCount(list279, num4); + span5 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list279; reference218 = obj180; - ref QuestStep reference219 = ref span105[2]; + index2++; + ref QuestStep reference219 = ref span3[index2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2012452u, new Vector3(515.8617f, 7.4310913f, -413.59583f), 957) { Fly = true @@ -301142,32 +363554,42 @@ public static class AssemblyQuestLoader num3 = 6; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - Span span108 = CollectionsMarshal.AsSpan(list280); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list280); + 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); obj181.CompletionQuestVariablesFlags = list280; reference219 = obj181; obj178.Steps = list276; reference216 = obj178; - ref QuestSequence reference220 = ref span104[2]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1041404u, new Vector3(503.9596f, 9.601132f, -368.15448f), 957) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041404u, new Vector3(503.9596f, 9.601132f, -368.15448f), 957) { Fly = true }; obj182.Steps = list281; reference220 = obj182; - ref QuestSequence reference221 = ref span104[3]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -301175,26 +363597,33 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true }; obj183.Steps = list282; reference221 = obj183; - ref QuestSequence reference222 = ref span104[4]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list283)[0]; + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1041405u, new Vector3(377.67603f, 3.1168795f, -238.57489f), 957); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + num4 = 1; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + span4 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF102_04494_Q1_000_033"), @@ -301204,7 +363633,8 @@ public static class AssemblyQuestLoader reference223 = questStep39; obj184.Steps = list283; reference222 = obj184; - ref QuestSequence reference224 = ref span104[5]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -301212,7 +363642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { NextQuestId = new QuestId(4495) }; @@ -301225,24 +363657,30 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "liza"; questRoot30.Author = list286; - num = 6; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span109 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference225 = ref span109[0]; + index = 6; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041406u, new Vector3(405.02014f, 3.0593626f, -212.90918f), 957); + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041406u, new Vector3(405.02014f, 3.0593626f, -212.90918f), 957); obj186.Steps = list288; reference225 = obj186; - ref QuestSequence reference226 = ref span109[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -301250,7 +363688,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list289)[0]; + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference227 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1041407u, new Vector3(672.5414f, 41.21271f, 145.46423f), 957) { Fly = true @@ -301258,7 +363698,9 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list290); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF103_04495_Q1_000_016"), @@ -301268,21 +363710,25 @@ public static class AssemblyQuestLoader reference227 = obj188; obj187.Steps = list289; reference226 = obj187; - ref QuestSequence reference228 = ref span109[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) { Fly = true }; obj189.Steps = list291; reference228 = obj189; - ref QuestSequence reference229 = ref span109[3]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -301290,29 +363736,37 @@ public static class AssemblyQuestLoader num2 = 6; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span110 = CollectionsMarshal.AsSpan(list292); - ref QuestStep reference230 = ref span110[0]; + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + ref QuestStep reference230 = ref span3[index2]; QuestStep obj191 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(573.3712f, 22.500977f, 284.17334f), 957) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span111 = CollectionsMarshal.AsSpan(list293); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list293 = new List(num4); + CollectionsMarshal.SetCount(list293, num4); + span5 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list293; skipConditions5.StepIf = skipStepConditions5; obj191.SkipConditions = skipConditions5; reference230 = obj191; - ref QuestStep reference231 = ref span110[1]; + index2++; + ref QuestStep reference231 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 2012455u, new Vector3(574.91406f, 24.979004f, 284.3518f), 957) { IgnoreDistanceToObject = true @@ -301320,102 +363774,140 @@ public static class AssemblyQuestLoader num3 = 6; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span112 = CollectionsMarshal.AsSpan(list294); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list294); + 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); obj192.CompletionQuestVariablesFlags = list294; reference231 = obj192; - ref QuestStep reference232 = ref span110[2]; + index2++; + ref QuestStep reference232 = ref span3[index2]; QuestStep obj193 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(603.8397f, 21.10483f, 233.13884f), 957) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span113 = CollectionsMarshal.AsSpan(list295); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + span5 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list295; skipConditions6.StepIf = skipStepConditions6; obj193.SkipConditions = skipConditions6; reference232 = obj193; - ref QuestStep reference233 = ref span110[3]; + index2++; + ref QuestStep reference233 = ref span3[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 2012457u, new Vector3(604.60803f, 22.903748f, 233.63086f), 957); num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span114 = CollectionsMarshal.AsSpan(list296); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list296); + 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); questStep40.CompletionQuestVariablesFlags = list296; reference233 = questStep40; - ref QuestStep reference234 = ref span110[4]; + index2++; + ref QuestStep reference234 = ref span3[index2]; QuestStep obj194 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(585.39026f, 36.73129f, 279.6089f), 957) { Fly = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span115 = CollectionsMarshal.AsSpan(list297); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list297 = new List(num4); + CollectionsMarshal.SetCount(list297, num4); + span5 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list297; skipConditions7.StepIf = skipStepConditions7; obj194.SkipConditions = skipConditions7; reference234 = obj194; - ref QuestStep reference235 = ref span110[5]; + index2++; + ref QuestStep reference235 = ref span3[index2]; QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 2012456u, new Vector3(584.0084f, 38.254395f, 278.7976f), 957); num3 = 6; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - Span span116 = CollectionsMarshal.AsSpan(list298); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list298); + 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); questStep41.CompletionQuestVariablesFlags = list298; reference235 = questStep41; obj190.Steps = list292; reference229 = obj190; - ref QuestSequence reference236 = ref span109[4]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) { Fly = true }; obj195.Steps = list299; reference236 = obj195; - ref QuestSequence reference237 = ref span109[5]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -301423,15 +363915,19 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - ref QuestStep reference238 = ref CollectionsMarshal.AsSpan(list300)[0]; + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + ref QuestStep reference238 = ref span3[index2]; QuestStep obj197 = new QuestStep(EInteractionType.CompleteQuest, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + num4 = 1; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + span4 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF103_04495_Q2_000_045"), @@ -301449,24 +363945,30 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "liza"; questRoot31.Author = list302; - num = 6; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span117 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference239 = ref span117[0]; + index = 6; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041403u, new Vector3(411.7036f, 3.1168795f, -266.89557f), 957); + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041403u, new Vector3(411.7036f, 3.1168795f, -266.89557f), 957); obj198.Steps = list304; reference239 = obj198; - ref QuestSequence reference240 = ref span117[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -301474,32 +363976,38 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2012460u, new Vector3(240.52795f, 7.095398f, -556.5729f), 957) + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012460u, new Vector3(240.52795f, 7.095398f, -556.5729f), 957) { Fly = true }; obj199.Steps = list305; reference240 = obj199; - ref QuestSequence reference241 = ref span117[2]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - Span span118 = CollectionsMarshal.AsSpan(list306); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(274.3244f, 6.2260103f, -553.4195f), 957) + index2 = 2; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(274.3244f, 6.2260103f, -553.4195f), 957) { Mount = false }; - span118[1] = new QuestStep(EInteractionType.Interact, 1041410u, new Vector3(271.5343f, 6.226011f, -556.54236f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041410u, new Vector3(271.5343f, 6.226011f, -556.54236f), 957) { StopDistance = 5f }; obj200.Steps = list306; reference241 = obj200; - ref QuestSequence reference242 = ref span117[3]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -301507,27 +364015,33 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj201.Steps = list307; reference242 = obj201; - ref QuestSequence reference243 = ref span117[4]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1041401u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041401u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { Fly = true }; obj202.Steps = list308; reference243 = obj202; - ref QuestSequence reference244 = ref span117[5]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -301535,7 +364049,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true, NextQuestId = new QuestId(4497) @@ -301549,26 +364065,33 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "liza"; questRoot32.Author = list310; - num = 9; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span119 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference245 = ref span119[0]; + index = 9; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + span2 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference246 = ref CollectionsMarshal.AsSpan(list312)[0]; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference246 = ref span3[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list313); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF201_04497_Q1_000_012"), @@ -301578,7 +364101,8 @@ public static class AssemblyQuestLoader reference246 = questStep42; obj204.Steps = list312; reference245 = obj204; - ref QuestSequence reference247 = ref span119[1]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -301586,35 +364110,41 @@ public static class AssemblyQuestLoader num2 = 2; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span120 = CollectionsMarshal.AsSpan(list314); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - span120[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj205.Steps = list314; reference247 = obj205; - ref QuestSequence reference248 = ref span119[2]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span121 = CollectionsMarshal.AsSpan(list315); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - span121[1] = new QuestStep(EInteractionType.Interact, 1041412u, new Vector3(93.88867f, 8.462445f, 566.0028f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041412u, new Vector3(93.88867f, 8.462445f, 566.0028f), 957) { Fly = true }; obj206.Steps = list315; reference248 = obj206; - ref QuestSequence reference249 = ref span119[3]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -301622,7 +364152,9 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference250 = ref CollectionsMarshal.AsSpan(list316)[0]; + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference250 = ref span3[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.0419f, 67.704025f, -545.84924f), 957) { StopDistance = 1f, @@ -301630,29 +364162,35 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = 14039u; + num4 = 1; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + span6 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span6[num3] = 14039u; obj208.KillEnemyDataIds = list317; reference250 = obj208; obj207.Steps = list316; reference249 = obj207; - ref QuestSequence reference251 = ref span119[4]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1041415u, new Vector3(-282.3072f, 67.844055f, -543.1144f), 957) + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span3 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041415u, new Vector3(-282.3072f, 67.844055f, -543.1144f), 957) { StopDistance = 7f }; obj209.Steps = list318; reference251 = obj209; - ref QuestSequence reference252 = ref span119[5]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 5 @@ -301660,27 +364198,33 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1041417u, new Vector3(388.7235f, 22.369963f, -488.42606f), 957) + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041417u, new Vector3(388.7235f, 22.369963f, -488.42606f), 957) { Fly = true }; obj210.Steps = list319; reference252 = obj210; - ref QuestSequence reference253 = ref span119[6]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj211.Steps = list320; reference253 = obj211; - ref QuestSequence reference254 = ref span119[7]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 7 @@ -301688,18 +364232,23 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1041421u, new Vector3(401.8158f, 3.0714467f, -214.74023f), 957); + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041421u, new Vector3(401.8158f, 3.0714467f, -214.74023f), 957); obj212.Steps = list321; reference254 = obj212; - ref QuestSequence reference255 = ref span119[8]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); obj213.Steps = list322; reference255 = obj213; questRoot32.QuestSequence = list311; @@ -301709,13 +364258,16 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - CollectionsMarshal.AsSpan(list323)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list323); + index = 0; + span[index] = "liza"; questRoot33.Author = list323; - num = 5; - List list324 = new List(num); - CollectionsMarshal.SetCount(list324, num); - Span span122 = CollectionsMarshal.AsSpan(list324); - ref QuestSequence reference256 = ref span122[0]; + index = 5; + List list324 = new List(index); + CollectionsMarshal.SetCount(list324, index); + span2 = CollectionsMarshal.AsSpan(list324); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -301723,21 +364275,27 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958); + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958); obj214.Steps = list325; reference256 = obj214; - ref QuestSequence reference257 = ref span122[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); obj215.Steps = list326; reference257 = obj215; - ref QuestSequence reference258 = ref span122[2]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 2 @@ -301745,63 +364303,88 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); obj216.Steps = list327; reference258 = obj216; - ref QuestSequence reference259 = ref span122[3]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span123 = CollectionsMarshal.AsSpan(list328); - ref QuestStep reference260 = ref span123[0]; + index2 = 3; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + ref QuestStep reference260 = ref span3[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 2012616u, new Vector3(-332.3263f, 22.354431f, 457.7859f), 958); num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span124 = CollectionsMarshal.AsSpan(list329); - span124[0] = null; - span124[1] = null; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list329); + 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); questStep43.CompletionQuestVariablesFlags = list329; reference260 = questStep43; - ref QuestStep reference261 = ref span123[1]; + num2++; + ref QuestStep reference261 = ref span3[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2012618u, new Vector3(-338.03314f, 23.727722f, 394.88806f), 958); - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span125 = CollectionsMarshal.AsSpan(list330); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list330 = new List(num4); + CollectionsMarshal.SetCount(list330, num4); + span5 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep44.CompletionQuestVariablesFlags = list330; reference261 = questStep44; - ref QuestStep reference262 = ref span123[2]; + num2++; + ref QuestStep reference262 = ref span3[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2012617u, new Vector3(-434.8974f, 22.262878f, 425.58936f), 958); num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span126 = CollectionsMarshal.AsSpan(list331); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list331); + 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); questStep45.CompletionQuestVariablesFlags = list331; reference262 = questStep45; obj217.Steps = list328; reference259 = obj217; - ref QuestSequence reference263 = ref span122[4]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -301809,7 +364392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); obj218.Steps = list332; reference263 = obj218; questRoot33.QuestSequence = list324; @@ -301819,26 +364404,33 @@ public static class AssemblyQuestLoader num = 1; List list333 = new List(num); CollectionsMarshal.SetCount(list333, num); - CollectionsMarshal.AsSpan(list333)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list333); + index = 0; + span[index] = "goatzone"; questRoot34.Author = list333; - num = 3; - List list334 = new List(num); - CollectionsMarshal.SetCount(list334, num); - Span span127 = CollectionsMarshal.AsSpan(list334); - ref QuestSequence reference264 = ref span127[0]; + index = 3; + List list334 = new List(index); + CollectionsMarshal.SetCount(list334, index); + span2 = CollectionsMarshal.AsSpan(list334); + num = 0; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference265 = ref CollectionsMarshal.AsSpan(list335)[0]; + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference265 = ref span3[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = new DialogueChoice + num4 = 1; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + span4 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC102_04499_Q1_000_000"), @@ -301848,7 +364440,8 @@ public static class AssemblyQuestLoader reference265 = questStep46; obj219.Steps = list335; reference264 = obj219; - ref QuestSequence reference266 = ref span127[1]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -301856,21 +364449,26 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 2012620u, new Vector3(64.68298f, -14.358765f, 395.22388f), 958) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012620u, new Vector3(64.68298f, -14.358765f, 395.22388f), 958) { Fly = true }; obj220.Steps = list337; reference266 = obj220; - ref QuestSequence reference267 = ref span127[2]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass, NextQuestId = new QuestId(4500) @@ -301888,13 +364486,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "goatzone"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "goatzone"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -301902,21 +364503,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -301924,33 +364531,40 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 2012622u, new Vector3(413.35156f, -18.814392f, 614.43494f), 958); int num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC103_04500_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZC103_04500_A1_000_001") }; - span2[1] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC103_04500_Q2_000_000"), @@ -301968,13 +364582,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "goatzone"; questRoot2.Author = list8; - num = 5; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span3[0]; + index = 5; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -301982,37 +364599,45 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958) { Fly = true }; obj5.Steps = list10; reference6 = obj5; - ref QuestSequence reference7 = ref span3[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2012329u, new Vector3(376.82153f, -18.875488f, 512.65735f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = 14094u; - span4[1] = 14095u; + num4 = 2; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span5 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span5[num3] = 14094u; + num3++; + span5[num3] = 14095u; obj7.KillEnemyDataIds = list12; reference8 = obj7; obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -302020,24 +364645,30 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) { Fly = true }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span3[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958); obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span3[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -302045,7 +364676,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -302058,24 +364691,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 3; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 3; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041765u, new Vector3(-323.4455f, 22f, 487.81555f), 958); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041765u, new Vector3(-323.4455f, 22f, 487.81555f), 958); obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -302083,21 +364722,26 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1041766u, new Vector3(513.6339f, -19.82022f, -309.1936f), 958) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041766u, new Vector3(513.6339f, -19.82022f, -309.1936f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958); obj13.Steps = list20; reference14 = obj13; questRoot3.QuestSequence = list17; @@ -302107,13 +364751,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "goatzone"; questRoot4.Author = list21; - num = 5; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span6[0]; + index = 5; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -302121,12 +364768,16 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958); num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD102_04503_Q1_000_000"), @@ -302136,21 +364787,25 @@ public static class AssemblyQuestLoader reference16 = questStep2; obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958) { Fly = true }; obj15.Steps = list25; reference17 = obj15; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -302158,21 +364813,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 2012623u, new Vector3(168.26111f, 11.36792f, -102.92212f), 958); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012623u, new Vector3(168.26111f, 11.36792f, -102.92212f), 958); obj16.Steps = list26; reference18 = obj16; - ref QuestSequence reference19 = ref span6[3]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958); obj17.Steps = list27; reference19 = obj17; - ref QuestSequence reference20 = ref span6[4]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -302180,7 +364841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium, NextQuestId = new QuestId(4504) @@ -302194,26 +364857,33 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "goatzone"; questRoot5.Author = list29; - num = 4; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span7 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span7[0]; + index = 4; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference22 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.AcceptQuest, 1041768u, new Vector3(539.9404f, -36.65f, -132.37207f), 958); - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span4 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD103_04504_Q1_000_000"), @@ -302223,7 +364893,8 @@ public static class AssemblyQuestLoader reference22 = questStep3; obj19.Steps = list31; reference21 = obj19; - ref QuestSequence reference23 = ref span7[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -302231,21 +364902,26 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) { Fly = true }; obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span7[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list34)[0]; + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2012331u, new Vector3(150.89636f, 23.147888f, -414.9386f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -302253,12 +364929,15 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 14092u; + span5 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span5[num4] = 14092u; obj22.KillEnemyDataIds = list35; reference25 = obj22; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference26 = ref span7[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -302266,12 +364945,16 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 2012629u, new Vector3(155.74878f, 23.147888f, -414.29773f), 958); - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + span4 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD103_04504_Q2_000_000"), @@ -302289,28 +364972,34 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list38); + index = 0; + span[index] = "goatzone"; questRoot6.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span8 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span8[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + span2 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) { StopDistance = 7f, Fly = true }; obj24.Steps = list40; reference28 = obj24; - ref QuestSequence reference29 = ref span8[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -302318,27 +365007,33 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1041771u, new Vector3(-157.67151f, 10.8f, -530.6325f), 958) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041771u, new Vector3(-157.67151f, 10.8f, -530.6325f), 958) { Fly = true }; obj25.Steps = list41; reference29 = obj25; - ref QuestSequence reference30 = ref span8[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1041773u, new Vector3(-78.446655f, 10.5f, -590.08167f), 958) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041773u, new Vector3(-78.446655f, 10.5f, -590.08167f), 958) { Fly = true }; obj26.Steps = list42; reference30 = obj26; - ref QuestSequence reference31 = ref span8[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -302346,18 +365041,23 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1041774u, new Vector3(-44.815796f, 10.8f, -614.40454f), 958); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041774u, new Vector3(-44.815796f, 10.8f, -614.40454f), 958); obj27.Steps = list43; reference31 = obj27; - ref QuestSequence reference32 = ref span8[4]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list44)[0]; + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref QuestStep reference33 = ref span3[num2]; QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium @@ -302365,7 +365065,9 @@ public static class AssemblyQuestLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD104_04505_Q1_000_000"), @@ -302383,13 +365085,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "goatzone"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "goatzone"; questRoot7.Author = list46; - num = 7; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span9 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span9[0]; + index = 7; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -302397,15 +365102,19 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list48)[0]; + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.AcceptQuest, 1041776u, new Vector3(541.89355f, -36.65f, -132.64673f), 958) { StopDistance = 5f }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span4 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q1_000_000"), @@ -302415,15 +365124,18 @@ public static class AssemblyQuestLoader reference35 = obj31; obj30.Steps = list48; reference34 = obj30; - ref QuestSequence reference36 = ref span9[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -302431,7 +365143,9 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q2_000_000"), @@ -302441,7 +365155,8 @@ public static class AssemblyQuestLoader reference37 = obj33; obj32.Steps = list50; reference36 = obj32; - ref QuestSequence reference38 = ref span9[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -302449,27 +365164,33 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1041778u, new Vector3(-322.10272f, 10.85f, -576.04333f), 958) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041778u, new Vector3(-322.10272f, 10.85f, -576.04333f), 958) { Fly = true }; obj34.Steps = list52; reference38 = obj34; - ref QuestSequence reference39 = ref span9[3]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2012746u, new Vector3(-580.6211f, 10.482849f, -721.18713f), 958) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + span3 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012746u, new Vector3(-580.6211f, 10.482849f, -721.18713f), 958) { Fly = true }; obj35.Steps = list53; reference39 = obj35; - ref QuestSequence reference40 = ref span9[4]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -302477,32 +365198,40 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list54)[0]; + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.31705f, 10.799999f, -592.71124f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 14091u; + num4 = 1; + List list55 = new List(num4); + CollectionsMarshal.SetCount(list55, num4); + span5 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span5[num3] = 14091u; obj37.KillEnemyDataIds = list55; reference41 = obj37; obj36.Steps = list54; reference40 = obj36; - ref QuestSequence reference42 = ref span9[5]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1041782u, new Vector3(-274.0063f, 10.8f, -590.41736f), 958); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041782u, new Vector3(-274.0063f, 10.8f, -590.41736f), 958); obj38.Steps = list56; reference42 = obj38; - ref QuestSequence reference43 = ref span9[6]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -302510,7 +365239,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list57)[0]; + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.CompleteQuest, 1041784u, new Vector3(-342.67188f, 22f, 499.07666f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -302518,7 +365249,9 @@ public static class AssemblyQuestLoader num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q3_000_000"), @@ -302535,24 +365268,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "liza"; questRoot8.Author = list59; - num = 5; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span10 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span10[0]; + index = 5; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span10[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -302560,21 +365299,27 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference47 = ref span10[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference48 = ref span10[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 @@ -302582,60 +365327,84 @@ public static class AssemblyQuestLoader num2 = 3; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span11 = CollectionsMarshal.AsSpan(list64); - ref QuestStep reference49 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference49 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1037947u, new Vector3(115.28186f, 7.385857f, 306.11108f), 961); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span12 = CollectionsMarshal.AsSpan(list65); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span6 = CollectionsMarshal.AsSpan(list65); + 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); questStep5.CompletionQuestVariablesFlags = list65; reference49 = questStep5; - ref QuestStep reference50 = ref span11[1]; + index2++; + ref QuestStep reference50 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1037945u, new Vector3(144.79285f, 8.025643f, 202.47192f), 961); num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span13 = CollectionsMarshal.AsSpan(list66); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list66); + 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); questStep6.CompletionQuestVariablesFlags = list66; reference50 = questStep6; - ref QuestStep reference51 = ref span11[2]; + index2++; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1037962u, new Vector3(180.8346f, 10.385859f, 113.35925f), 961); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span14 = CollectionsMarshal.AsSpan(list67); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + span6 = CollectionsMarshal.AsSpan(list67); + 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); questStep7.CompletionQuestVariablesFlags = list67; reference51 = questStep7; obj44.Steps = list64; reference48 = obj44; - ref QuestSequence reference52 = ref span10[4]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); obj45.Steps = list68; reference52 = obj45; questRoot8.QuestSequence = list60; @@ -302645,13 +365414,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot9.Author = list69; - num = 4; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span15 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference53 = ref span15[0]; + index = 4; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -302659,20 +365431,25 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961); + span3 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961); obj46.Steps = list71; reference53 = obj46; - ref QuestSequence reference54 = ref span15[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span16 = CollectionsMarshal.AsSpan(list72); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-588.7367f, 158.76302f, -195.30913f), 961); - ref QuestStep reference55 = ref span16[1]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-588.7367f, 158.76302f, -195.30913f), 961); + num2++; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-318.20203f, 147.32677f, -31.146088f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -302680,12 +365457,15 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 14070u; + span5 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span5[num4] = 14070u; obj48.KillEnemyDataIds = list73; reference55 = obj48; obj47.Steps = list72; reference54 = obj47; - ref QuestSequence reference56 = ref span15[2]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -302693,21 +365473,26 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1040888u, new Vector3(-320.0885f, 147.4287f, -30.594421f), 961) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1040888u, new Vector3(-320.0885f, 147.4287f, -30.594421f), 961) { StopDistance = 5f }; obj49.Steps = list74; reference56 = obj49; - ref QuestSequence reference57 = ref span15[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -302720,13 +365505,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "liza"; questRoot10.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span17 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference58 = ref span17[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -302734,21 +365522,27 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959); obj51.Steps = list78; reference58 = obj51; - ref QuestSequence reference59 = ref span17[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); obj52.Steps = list79; reference59 = obj52; - ref QuestSequence reference60 = ref span17[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -302756,25 +365550,33 @@ public static class AssemblyQuestLoader num2 = 3; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span18 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference61 = ref span18[0]; + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref QuestStep reference61 = ref span3[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1041745u, new Vector3(66.23938f, -133.00002f, -432.8222f), 959) { Comment = "Cheerful Loporrit" }; - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span19 = CollectionsMarshal.AsSpan(list81); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + span6 = CollectionsMarshal.AsSpan(list81); + 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); obj54.CompletionQuestVariablesFlags = list81; reference61 = obj54; - ref QuestStep reference62 = ref span18[1]; + index2++; + ref QuestStep reference62 = ref span3[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1041746u, new Vector3(-85.83203f, -133.0356f, -507.1336f), 959) { Comment = "Stern Loporrit" @@ -302782,48 +365584,66 @@ public static class AssemblyQuestLoader num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span20 = CollectionsMarshal.AsSpan(list82); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list82); + 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); obj55.CompletionQuestVariablesFlags = list82; reference62 = obj55; - ref QuestStep reference63 = ref span18[2]; + index2++; + ref QuestStep reference63 = ref span3[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 1041744u, new Vector3(-110.12439f, -133.07341f, -556.7865f), 959) { Comment = "Easygoing Loporrit" }; - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span21 = CollectionsMarshal.AsSpan(list83); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + span6 = CollectionsMarshal.AsSpan(list83); + 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); obj56.CompletionQuestVariablesFlags = list83; reference63 = obj56; obj53.Steps = list80; reference60 = obj53; - ref QuestSequence reference64 = ref span17[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZE101_04516_Q3_000_000"), @@ -302840,13 +365660,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot11.Author = list86; - num = 6; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span22 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference66 = ref span22[0]; + index = 6; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -302854,24 +365677,30 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); obj58.Steps = list88; reference66 = obj58; - ref QuestSequence reference67 = ref span22[1]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) { Fly = true }; obj59.Steps = list89; reference67 = obj59; - ref QuestSequence reference68 = ref span22[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -302879,62 +365708,81 @@ public static class AssemblyQuestLoader num2 = 2; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span23 = CollectionsMarshal.AsSpan(list90); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - span23[1] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); obj60.Steps = list90; reference68 = obj60; - ref QuestSequence reference69 = ref span22[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span24 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference70 = ref span24[0]; + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2012508u, new Vector3(-7.4312134f, 42.61841f, 428.27502f), 959) { Fly = true }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span25 = CollectionsMarshal.AsSpan(list92); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + span6 = CollectionsMarshal.AsSpan(list92); + 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); obj62.CompletionQuestVariablesFlags = list92; reference70 = obj62; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.65185f, 40.539097f, 458.56393f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.65185f, 40.539097f, 458.56393f), 959) { Fly = true }; - ref QuestStep reference71 = ref span24[2]; + num2++; + ref QuestStep reference71 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012509u, new Vector3(-56.50421f, 40.299072f, 459.64746f), 959); num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span26 = CollectionsMarshal.AsSpan(list93); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list93); + 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)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list93; reference71 = questStep9; obj61.Steps = list91; reference69 = obj61; - ref QuestSequence reference72 = ref span22[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -302942,23 +365790,28 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span27 = CollectionsMarshal.AsSpan(list94); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); obj63.Steps = list94; reference72 = obj63; - ref QuestSequence reference73 = ref span22[5]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -302973,13 +365826,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot12.Author = list96; - num = 7; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span28 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference74 = ref span28[0]; + index = 7; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -302987,24 +365843,30 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041558u, new Vector3(291.2489f, -144f, -477.95837f), 959); + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041558u, new Vector3(291.2489f, -144f, -477.95837f), 959); obj65.Steps = list98; reference74 = obj65; - ref QuestSequence reference75 = ref span28[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1041560u, new Vector3(304.219f, 106.43858f, 37.00305f), 959) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041560u, new Vector3(304.219f, 106.43858f, 37.00305f), 959) { Fly = true }; obj66.Steps = list99; reference75 = obj66; - ref QuestSequence reference76 = ref span28[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -303012,24 +365874,30 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1041817u, new Vector3(477.37842f, 140.67236f, 109.453f), 959) + span3 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041817u, new Vector3(477.37842f, 140.67236f, 109.453f), 959) { Fly = true }; obj67.Steps = list100; reference76 = obj67; - ref QuestSequence reference77 = ref span28[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 2012510u, new Vector3(477.28687f, 140.64233f, 109.42236f), 959); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012510u, new Vector3(477.28687f, 140.64233f, 109.42236f), 959); obj68.Steps = list101; reference77 = obj68; - ref QuestSequence reference78 = ref span28[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 @@ -303037,38 +365905,46 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list102)[0]; + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(626.34064f, 143.6347f, 58.013206f), 959) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span29 = CollectionsMarshal.AsSpan(list103); - span29[0] = 14098u; - span29[1] = 14099u; + num4 = 2; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = 14098u; + num3++; + span5[num3] = 14099u; obj70.KillEnemyDataIds = list103; reference79 = obj70; obj69.Steps = list102; reference78 = obj69; - ref QuestSequence reference80 = ref span28[5]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1041561u, new Vector3(625.0857f, 143.85222f, 56.321045f), 959) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041561u, new Vector3(625.0857f, 143.85222f, 56.321045f), 959) { StopDistance = 5f }; obj71.Steps = list104; reference80 = obj71; - ref QuestSequence reference81 = ref span28[6]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -303076,7 +365952,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041564u, new Vector3(-338.36884f, -168f, -613.7637f), 959) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041564u, new Vector3(-338.36884f, -168f, -613.7637f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -303091,27 +365969,33 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list106); + index = 0; + span[index] = "liza"; questRoot13.Author = list106; - num = 7; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span30 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference82 = ref span30[0]; + index = 7; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + span2 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041903u, new Vector3(-332.02112f, -168f, -609.91833f), 959) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041903u, new Vector3(-332.02112f, -168f, -609.91833f), 959) { StopDistance = 6.5f }; obj73.Steps = list108; reference82 = obj73; - ref QuestSequence reference83 = ref span30[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -303119,30 +366003,36 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.UseItem, 2012512u, new Vector3(-457.29767f, -158.12933f, -585.77856f), 959) + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2012512u, new Vector3(-457.29767f, -158.12933f, -585.77856f), 959) { Fly = true, ItemId = 2003328u }; obj74.Steps = list109; reference83 = obj74; - ref QuestSequence reference84 = ref span30[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span31 = CollectionsMarshal.AsSpan(list110); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-325.3802f, -152.73842f, -746.0951f), 959) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-325.3802f, -152.73842f, -746.0951f), 959) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.Interact, 2012513u, new Vector3(-326.8025f, -151.26276f, -748.5008f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012513u, new Vector3(-326.8025f, -151.26276f, -748.5008f), 959); obj75.Steps = list110; reference84 = obj75; - ref QuestSequence reference85 = ref span30[3]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -303150,9 +366040,11 @@ public static class AssemblyQuestLoader num2 = 9; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span32 = CollectionsMarshal.AsSpan(list111); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.33234f, -161.8501f, -738.81055f), 959); - span32[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.4264f, -168f, -676.6854f), 959) + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.33234f, -161.8501f, -738.81055f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.4264f, -168f, -676.6854f), 959) { StopDistance = 1f, Comment = "Platform 1", @@ -303162,7 +366054,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-431.76593f, -166.55412f, -679.5478f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-431.76593f, -166.55412f, -679.5478f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -303172,7 +366065,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-430.03564f, -165.05414f, -682.2485f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-430.03564f, -165.05414f, -682.2485f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -303182,7 +366076,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.49857f, -163.55414f, -684.8062f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.49857f, -163.55414f, -684.8062f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -303192,7 +366087,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.48633f, -162.05414f, -687.71533f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.48633f, -162.05414f, -687.71533f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -303202,7 +366098,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.7118f, -160.55414f, -691.17804f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.7118f, -160.55414f, -691.17804f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -303212,23 +366109,27 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-434.91986f, -158.88745f, -693.17865f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-434.91986f, -158.88745f, -693.17865f), 959) { DisableNavmesh = true }; - span32[8] = new QuestStep(EInteractionType.Interact, 2012611u, new Vector3(-450.33954f, -158.12933f, -694.42285f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012611u, new Vector3(-450.33954f, -158.12933f, -694.42285f), 959); obj76.Steps = list111; reference85 = obj76; - ref QuestSequence reference86 = ref span30[4]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span33 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference87 = ref span33[0]; + index2 = 4; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference87 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.9189f, -158.88948f, -651.8319f), 959) { Fly = true @@ -303238,32 +366139,46 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span34 = CollectionsMarshal.AsSpan(list113); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list113); + 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); skipStepConditions.CompletionQuestVariablesFlags = list113; skipConditions.StepIf = skipStepConditions; obj78.SkipConditions = skipConditions; reference87 = obj78; - ref QuestStep reference88 = ref span33[1]; + num2++; + ref QuestStep reference88 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012514u, new Vector3(-549.12646f, -158.86176f, -649.2866f), 959); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span35 = CollectionsMarshal.AsSpan(list114); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + span6 = CollectionsMarshal.AsSpan(list114); + 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); questStep10.CompletionQuestVariablesFlags = list114; reference88 = questStep10; - ref QuestStep reference89 = ref span33[2]; + num2++; + ref QuestStep reference89 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-549.3165f, -158.89796f, -468.4637f), 959) { Fly = true @@ -303273,34 +366188,48 @@ public static class AssemblyQuestLoader num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span36 = CollectionsMarshal.AsSpan(list115); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list115); + 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)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list115; skipConditions2.StepIf = skipStepConditions2; obj79.SkipConditions = skipConditions2; reference89 = obj79; - ref QuestStep reference90 = ref span33[3]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012515u, new Vector3(-549.157f, -158.89221f, -465.87323f), 959); - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span37 = CollectionsMarshal.AsSpan(list116); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + span6 = CollectionsMarshal.AsSpan(list116); + 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); questStep11.CompletionQuestVariablesFlags = list116; reference90 = questStep11; obj77.Steps = list112; reference86 = obj77; - ref QuestSequence reference91 = ref span30[5]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 5 @@ -303308,39 +366237,45 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1041818u, new Vector3(-295.76562f, -144f, -547.0817f), 959) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041818u, new Vector3(-295.76562f, -144f, -547.0817f), 959) { Fly = true }; obj80.Steps = list117; reference91 = obj80; - ref QuestSequence reference92 = ref span30[6]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041819u, new Vector3(-295.64362f, -144f, -546.2882f), 959); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041819u, new Vector3(-295.64362f, -144f, -546.2882f), 959); obj81.Steps = list118; reference92 = obj81; questRoot13.QuestSequence = list107; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(4521); QuestRoot questRoot14 = new QuestRoot(); - num = 2; + num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span38 = CollectionsMarshal.AsSpan(list119); - span38[0] = "JerryWester"; - span38[1] = "Wigglez"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "JerryWester"; questRoot14.Author = list119; - num = 5; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span39 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference93 = ref span39[0]; + index = 5; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -303348,8 +366283,9 @@ public static class AssemblyQuestLoader num2 = 5; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span40 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference94 = ref span40[0]; + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep obj83 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -303360,26 +366296,32 @@ public static class AssemblyQuestLoader num3 = 2; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span41 = CollectionsMarshal.AsSpan(list122); - span41[0] = 140; - span41[1] = 212; + Span span7 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span7[num4] = 140; + num4++; + span7[num4] = 212; skipStepConditions3.InTerritory = list122; skipConditions3.StepIf = skipStepConditions3; obj83.SkipConditions = skipConditions3; reference94 = obj83; - ref QuestStep reference95 = ref span40[1]; + index2++; + ref QuestStep reference95 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 212; + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + span7 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span7[num3] = 212; skipStepConditions4.InTerritory = list123; skipConditions4.StepIf = skipStepConditions4; questStep12.SkipConditions = skipConditions4; reference95 = questStep12; - ref QuestStep reference96 = ref span40[2]; + index2++; + ref QuestStep reference96 = ref span3[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 @@ -303389,12 +366331,15 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 212; + span7 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span7[num4] = 212; skipStepConditions5.InTerritory = list124; skipConditions5.StepIf = skipStepConditions5; obj84.SkipConditions = skipConditions5; reference96 = obj84; - span40[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -303405,34 +366350,40 @@ public static class AssemblyQuestLoader } } }; - span40[4] = new QuestStep(EInteractionType.AcceptQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj82.Steps = list121; reference93 = obj82; - ref QuestSequence reference97 = ref span39[1]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span42 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference98 = ref span42[0]; + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference98 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 140; + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + span7 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span7[num3] = 140; skipStepConditions6.InTerritory = list126; skipConditions6.StepIf = skipStepConditions6; obj86.SkipConditions = skipConditions6; reference98 = obj86; - ref QuestStep reference99 = ref span42[1]; + num2++; + ref QuestStep reference99 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 @@ -303442,15 +366393,19 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 140; + span7 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span7[num4] = 140; skipStepConditions7.InTerritory = list127; skipConditions7.StepIf = skipStepConditions7; obj87.SkipConditions = skipConditions7; reference99 = obj87; - span42[2] = new QuestStep(EInteractionType.Interact, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140); obj85.Steps = list125; reference97 = obj85; - ref QuestSequence reference100 = ref span39[2]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -303458,31 +366413,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1006633u, new Vector3(-396.7804f, 27.883184f, -739.3149f), 140); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006633u, new Vector3(-396.7804f, 27.883184f, -739.3149f), 140); obj88.Steps = list128; reference100 = obj88; - ref QuestSequence reference101 = ref span39[3]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span43 = CollectionsMarshal.AsSpan(list129); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.56866f, 61.87613f, -839.6979f), 140); - span43[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(-625.56866f, 61.87613f, -839.6979f), 140) - { - DelaySecondsAtStart = 5f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-660.1891f, 62.11622f, -809.68207f), 140); - span43[3] = new QuestStep(EInteractionType.Combat, null, new Vector3(-660.1891f, 62.11622f, -809.68207f), 140) - { - DelaySecondsAtStart = 3f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span43[4] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002252u, new Vector3(-662.25684f, 62.333008f, -805.478f), 140) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002252u, new Vector3(-662.25684f, 62.333008f, -805.478f), 140) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -303491,7 +366438,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list129; reference101 = obj89; - ref QuestSequence reference102 = ref span39[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -303499,7 +366447,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) { StopDistance = 7f }; @@ -303512,21 +366462,26 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "JerryWester"; questRoot15.Author = list131; - num = 8; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span44 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference103 = ref span44[0]; + index = 8; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -303540,7 +366495,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list133; reference103 = obj91; - ref QuestSequence reference104 = ref span44[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -303548,21 +366504,26 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1006668u, new Vector3(-115.19043f, 47.372406f, 28.67163f), 147) + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1006668u, new Vector3(-115.19043f, 47.372406f, 28.67163f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj92.Steps = list134; reference104 = obj92; - ref QuestSequence reference105 = ref span44[2]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Duty, null, null, 147) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 147) { DutyOptions = new DutyOptions { @@ -303572,11 +366533,13 @@ public static class AssemblyQuestLoader }; obj93.Steps = list135; reference105 = obj93; - span44[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference106 = ref span44[4]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -303584,7 +366547,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Duty, null, null, 1053) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1053) { DutyOptions = new DutyOptions { @@ -303594,19 +366559,23 @@ public static class AssemblyQuestLoader }; obj94.Steps = list136; reference106 = obj94; - span44[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference107 = ref span44[6]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039201u, new Vector3(-704.0055f, -185.66042f, 479.9724f), 1053) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039201u, new Vector3(-704.0055f, -185.66042f, 479.9724f), 1053) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -303615,7 +366584,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list137; reference107 = obj95; - ref QuestSequence reference108 = ref span44[7]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -303623,12 +366593,14 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span45 = CollectionsMarshal.AsSpan(list138); - span45[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.25277f, 2.1f, 0f), 212) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.25277f, 2.1f, 0f), 212) { TargetTerritoryId = (ushort)212 }; - span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1006692u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006692u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj96.Steps = list138; reference108 = obj96; questRoot15.QuestSequence = list132; @@ -303638,21 +366610,26 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot16.Author = list139; - num = 4; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span46 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference109 = ref span46[0]; + index = 4; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042242u, new Vector3(72.43445f, 5.1f, -75.30328f), 962) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042242u, new Vector3(72.43445f, 5.1f, -75.30328f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -303665,7 +366642,8 @@ public static class AssemblyQuestLoader }; obj97.Steps = list141; reference109 = obj97; - ref QuestSequence reference110 = ref span46[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -303673,7 +366651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2012872u, new Vector3(-86.930725f, -12.985474f, 140.30664f), 962) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012872u, new Vector3(-86.930725f, -12.985474f, 140.30664f), 962) { AethernetShortcut = new AethernetShortcut { @@ -303683,18 +366663,22 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference110 = obj98; - ref QuestSequence reference111 = ref span46[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1042427u, new Vector3(-84.06195f, -13.777f, 140.12354f), 962); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042427u, new Vector3(-84.06195f, -13.777f, 140.12354f), 962); obj99.Steps = list143; reference111 = obj99; - ref QuestSequence reference112 = ref span46[3]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -303702,7 +366686,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042428u, new Vector3(222.85791f, 24.942732f, -197.71118f), 962) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042428u, new Vector3(222.85791f, 24.942732f, -197.71118f), 962) { AethernetShortcut = new AethernetShortcut { @@ -303719,30 +366705,36 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list145); + index = 0; + span[index] = "liza"; questRoot17.Author = list145; - num = 2; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span47 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference113 = ref span47[0]; + index = 2; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + span2 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span48 = CollectionsMarshal.AsSpan(list147); - span48[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, DisableNavmesh = true }; - span48[1] = new QuestStep(EInteractionType.AcceptQuest, 1041232u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041232u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); obj101.Steps = list147; reference113 = obj101; - ref QuestSequence reference114 = ref span47[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -303750,12 +366742,14 @@ public static class AssemblyQuestLoader num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span49 = CollectionsMarshal.AsSpan(list148); - span49[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); obj102.Steps = list148; reference114 = obj102; questRoot17.QuestSequence = list146; @@ -303765,24 +366759,30 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "liza"; questRoot18.Author = list149; - num = 6; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span50 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference115 = ref span50[0]; + index = 6; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); obj103.Steps = list151; reference115 = obj103; - ref QuestSequence reference116 = ref span50[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -303790,7 +366790,9 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -303801,50 +366803,59 @@ public static class AssemblyQuestLoader }; obj104.Steps = list152; reference116 = obj104; - ref QuestSequence reference117 = ref span50[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list153)[0]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference118 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1039571u, new Vector3(-24.429688f, 3.0099995f, -225.42157f), 963); - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span51 = CollectionsMarshal.AsSpan(list154); - span51[0] = new DialogueChoice + num4 = 6; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + span4 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q9_100_111") }; - span51[1] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A1_000_001") }; - span51[2] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q2_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A2_000_001") }; - span51[3] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q3_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A3_000_001") }; - span51[4] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q4_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A4_000_001") }; - span51[5] = new DialogueChoice + num3++; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q5_000_000"), @@ -303854,7 +366865,8 @@ public static class AssemblyQuestLoader reference118 = questStep13; obj105.Steps = list153; reference117 = obj105; - ref QuestSequence reference119 = ref span50[3]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 3 @@ -303862,24 +366874,30 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1039574u, new Vector3(-13.870483f, 1.51f, -178.14911f), 963); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039574u, new Vector3(-13.870483f, 1.51f, -178.14911f), 963); obj106.Steps = list155; reference119 = obj106; - ref QuestSequence reference120 = ref span50[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1039577u, new Vector3(1.7852783f, -3.2177195E-06f, -13.687378f), 963) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039577u, new Vector3(1.7852783f, -3.2177195E-06f, -13.687378f), 963) { StopDistance = 5f }; obj107.Steps = list156; reference120 = obj107; - ref QuestSequence reference121 = ref span50[5]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -303887,7 +366905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039578u, new Vector3(-254.50525f, 4.3609705f, 570.94666f), 957) + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039578u, new Vector3(-254.50525f, 4.3609705f, 570.94666f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -303901,24 +366921,30 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "liza"; questRoot19.Author = list158; - num = 5; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span52 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference122 = ref span52[0]; + index = 5; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039579u, new Vector3(-251.3009f, 4.388065f, 571.5265f), 957); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039579u, new Vector3(-251.3009f, 4.388065f, 571.5265f), 957); obj109.Steps = list160; reference122 = obj109; - ref QuestSequence reference123 = ref span52[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -303926,7 +366952,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -303938,16 +366966,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list161; reference123 = obj110; - ref QuestSequence reference124 = ref span52[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span53 = CollectionsMarshal.AsSpan(list162); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-350.9551f, 18.999998f, 56.043774f), 962) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-350.9551f, 18.999998f, 56.043774f), 962) { AethernetShortcut = new AethernetShortcut { @@ -303955,10 +366985,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - span53[1] = new QuestStep(EInteractionType.Interact, 1039581u, new Vector3(-398.45886f, 19f, 92.48486f), 962); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039581u, new Vector3(-398.45886f, 19f, 92.48486f), 962); obj111.Steps = list162; reference124 = obj111; - ref QuestSequence reference125 = ref span52[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -303966,8 +366998,9 @@ public static class AssemblyQuestLoader num2 = 3; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span54 = CollectionsMarshal.AsSpan(list163); - span54[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -303979,25 +367012,30 @@ public static class AssemblyQuestLoader } } }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span54[2] = new QuestStep(EInteractionType.Interact, 1039582u, new Vector3(-325.2461f, -224.27272f, 298.39014f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039582u, new Vector3(-325.2461f, -224.27272f, 298.39014f), 956) { Fly = false }; obj112.Steps = list163; reference125 = obj112; - ref QuestSequence reference126 = ref span52[4]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039585u, new Vector3(-267.5365f, 0.15800172f, 603.41797f), 957) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039585u, new Vector3(-267.5365f, 0.15800172f, 603.41797f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -304011,13 +367049,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot20.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span55 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference127 = ref span55[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -304025,18 +367066,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039586u, new Vector3(-264.5152f, 0.24978253f, 605.6763f), 957); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039586u, new Vector3(-264.5152f, 0.24978253f, 605.6763f), 957); obj114.Steps = list167; reference127 = obj114; - ref QuestSequence reference128 = ref span55[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list168)[0]; + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref QuestStep reference129 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Duty, null, null, 957); DutyOptions obj116 = new DutyOptions { @@ -304045,17 +367091,21 @@ public static class AssemblyQuestLoader num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = "No VBM module"; + span = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span[num4] = "No VBM module"; obj116.Notes = list169; questStep14.DutyOptions = obj116; reference129 = questStep14; obj115.Steps = list168; reference128 = obj115; - span55[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference130 = ref span55[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -304063,7 +367113,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039590u, new Vector3(113.69495f, -350.00003f, -72.19049f), 1056) + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039590u, new Vector3(113.69495f, -350.00003f, -72.19049f), 1056) { StopDistance = 7f }; @@ -304076,27 +367128,33 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; questRoot21.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span56 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference131 = ref span56[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039591u, new Vector3(107.71338f, -350f, -73.68585f), 1056) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039591u, new Vector3(107.71338f, -350f, -73.68585f), 1056) { StopDistance = 5f }; obj118.Steps = list173; reference131 = obj118; - ref QuestSequence reference132 = ref span56[1]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -304104,27 +367162,33 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1039595u, new Vector3(107.83545f, -350f, -84.82495f), 1056) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039595u, new Vector3(107.83545f, -350f, -84.82495f), 1056) { StopDistance = 5f }; obj119.Steps = list174; reference132 = obj119; - ref QuestSequence reference133 = ref span56[2]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj120.Steps = list175; reference133 = obj120; - ref QuestSequence reference134 = ref span56[3]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -304132,12 +367196,16 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list176)[0]; + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.CompleteQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); - num3 = 1; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new DialogueChoice + num4 = 1; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + span4 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH105_04530_Q2_000_000"), @@ -304154,24 +367222,30 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "liza"; questRoot22.Author = list178; - num = 4; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span57 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference136 = ref span57[0]; + index = 4; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); obj122.Steps = list180; reference136 = obj122; - ref QuestSequence reference137 = ref span57[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -304179,23 +367253,27 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1039589u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039589u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj123.Steps = list181; reference137 = obj123; - ref QuestSequence reference138 = ref span57[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span58 = CollectionsMarshal.AsSpan(list182); - ref QuestStep reference139 = ref span58[0]; + index2 = 3; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference139 = ref span3[num2]; QuestStep obj125 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(169.31848f, 5.3451567f, 633.7924f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -304205,37 +367283,52 @@ public static class AssemblyQuestLoader num3 = 6; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span59 = CollectionsMarshal.AsSpan(list183); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list183); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list183; skipConditions8.StepIf = skipStepConditions8; obj125.SkipConditions = skipConditions8; reference139 = obj125; - ref QuestStep reference140 = ref span58[1]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1037631u, new Vector3(166.64368f, 5.34517f, 635.9807f), 957) { StopDistance = 5f }; - num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span60 = CollectionsMarshal.AsSpan(list184); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list184 = new List(num4); + CollectionsMarshal.SetCount(list184, num4); + span6 = CollectionsMarshal.AsSpan(list184); + 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); obj126.CompletionQuestVariablesFlags = list184; num3 = 1; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list185); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH106_04531_Q1_000_000"), @@ -304243,23 +367336,31 @@ public static class AssemblyQuestLoader }; obj126.DialogueChoices = list185; reference140 = obj126; - ref QuestStep reference141 = ref span58[2]; + num2++; + ref QuestStep reference141 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1039606u, new Vector3(215.80823f, 9.935694f, 561.27246f), 957); - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span61 = CollectionsMarshal.AsSpan(list186); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list186 = new List(num4); + CollectionsMarshal.SetCount(list186, num4); + span6 = CollectionsMarshal.AsSpan(list186); + 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); questStep16.CompletionQuestVariablesFlags = list186; reference141 = questStep16; obj124.Steps = list182; reference138 = obj124; - ref QuestSequence reference142 = ref span57[3]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -304267,7 +367368,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -304285,24 +367388,30 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list188); + index = 0; + span[index] = "liza"; questRoot23.Author = list188; - num = 7; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span62 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference143 = ref span62[0]; + index = 7; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + span2 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039609u, new Vector3(-343.09918f, 55f, -74.84558f), 963); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039609u, new Vector3(-343.09918f, 55f, -74.84558f), 963); obj128.Steps = list190; reference143 = obj128; - ref QuestSequence reference144 = ref span62[1]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -304310,7 +367419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1039611u, new Vector3(124.1626f, 4.856044f, -139.63531f), 963) + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039611u, new Vector3(124.1626f, 4.856044f, -139.63531f), 963) { AethernetShortcut = new AethernetShortcut { @@ -304320,21 +367431,25 @@ public static class AssemblyQuestLoader }; obj129.Steps = list191; reference144 = obj129; - ref QuestSequence reference145 = ref span62[2]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-9.536926f, 2.8f, -15.243774f), 962) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-9.536926f, 2.8f, -15.243774f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj130.Steps = list192; reference145 = obj130; - ref QuestSequence reference146 = ref span62[3]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -304342,7 +367457,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1039615u, new Vector3(-297.13898f, 20.8f, -189.59338f), 962) + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039615u, new Vector3(-297.13898f, 20.8f, -189.59338f), 962) { AethernetShortcut = new AethernetShortcut { @@ -304352,15 +367469,18 @@ public static class AssemblyQuestLoader }; obj131.Steps = list193; reference146 = obj131; - ref QuestSequence reference147 = ref span62[4]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1039616u, new Vector3(227.06946f, 25.041138f, -159.2279f), 962) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039616u, new Vector3(227.06946f, 25.041138f, -159.2279f), 962) { AethernetShortcut = new AethernetShortcut { @@ -304370,7 +367490,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list194; reference147 = obj132; - ref QuestSequence reference148 = ref span62[5]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -304378,7 +367499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-94.118614f, 3.8989394f, 1.0696089f), 962) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-94.118614f, 3.8989394f, 1.0696089f), 962) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -304389,15 +367512,18 @@ public static class AssemblyQuestLoader }; obj133.Steps = list195; reference148 = obj133; - ref QuestSequence reference149 = ref span62[6]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039617u, new Vector3(-93.91931f, 3.8989394f, -1.1750488f), 962); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039617u, new Vector3(-93.91931f, 3.8989394f, -1.1750488f), 962); obj134.Steps = list196; reference149 = obj134; questRoot23.QuestSequence = list189; @@ -304407,13 +367533,16 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list197); + index = 0; + span[index] = "liza"; questRoot24.Author = list197; - num = 8; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span63 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference150 = ref span63[0]; + index = 8; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + span2 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -304421,18 +367550,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039618u, new Vector3(-95.96399f, 3.933468f, 0.503479f), 962); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039618u, new Vector3(-95.96399f, 3.933468f, 0.503479f), 962); obj135.Steps = list199; reference150 = obj135; - ref QuestSequence reference151 = ref span63[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1039619u, new Vector3(-344.625f, 19f, 71.61047f), 962) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039619u, new Vector3(-344.625f, 19f, 71.61047f), 962) { AethernetShortcut = new AethernetShortcut { @@ -304442,7 +367576,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list200; reference151 = obj136; - ref QuestSequence reference152 = ref span63[2]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -304450,21 +367585,27 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2012844u, new Vector3(-4.3793945f, 5.569519f, 13.809326f), 1057); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012844u, new Vector3(-4.3793945f, 5.569519f, 13.809326f), 1057); obj137.Steps = list201; reference152 = obj137; - ref QuestSequence reference153 = ref span63[3]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1039620u, new Vector3(-1.5107422f, -7.012859E-07f, -2.609314f), 1057); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039620u, new Vector3(-1.5107422f, -7.012859E-07f, -2.609314f), 1057); obj138.Steps = list202; reference153 = obj138; - ref QuestSequence reference154 = ref span63[4]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -304472,27 +367613,33 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1039622u, new Vector3(-341.78687f, 19f, 69.10803f), 962) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039622u, new Vector3(-341.78687f, 19f, 69.10803f), 962) { StopDistance = 5f }; obj139.Steps = list203; reference154 = obj139; - ref QuestSequence reference155 = ref span63[5]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1039623u, new Vector3(-477.89734f, 4.678896f, 29.55664f), 957) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039623u, new Vector3(-477.89734f, 4.678896f, 29.55664f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj140.Steps = list204; reference155 = obj140; - ref QuestSequence reference156 = ref span63[6]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -304500,8 +367647,9 @@ public static class AssemblyQuestLoader num2 = 3; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span64 = CollectionsMarshal.AsSpan(list205); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.9973f, 1.2090492f, 118.133255f), 957) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.9973f, 1.2090492f, 118.133255f), 957) { StopDistance = 4f, Fly = true, @@ -304514,7 +367662,8 @@ public static class AssemblyQuestLoader } } }; - span64[1] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) { Mount = false, SkipConditions = new SkipConditions @@ -304525,7 +367674,8 @@ public static class AssemblyQuestLoader } } }; - span64[2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) { SkipConditions = new SkipConditions { @@ -304537,15 +367687,18 @@ public static class AssemblyQuestLoader }; obj141.Steps = list205; reference156 = obj141; - ref QuestSequence reference157 = ref span63[7]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -304558,13 +367711,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot25.Author = list207; - num = 4; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span65 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference158 = ref span65[0]; + index = 4; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -304572,18 +367728,23 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957); obj143.Steps = list209; reference158 = obj143; - ref QuestSequence reference159 = ref span65[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list210)[0]; + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference160 = ref span3[num2]; QuestStep obj145 = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { Fly = true @@ -304591,7 +367752,9 @@ public static class AssemblyQuestLoader num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMH109_04534_Q2_000_120") @@ -304600,7 +367763,8 @@ public static class AssemblyQuestLoader reference160 = obj145; obj144.Steps = list210; reference159 = obj144; - ref QuestSequence reference161 = ref span65[2]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 @@ -304608,18 +367772,23 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1039632u, new Vector3(106.614746f, -350f, -78.56879f), 1056); + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039632u, new Vector3(106.614746f, -350f, -78.56879f), 1056); obj146.Steps = list212; reference161 = obj146; - ref QuestSequence reference162 = ref span65[3]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 2012837u, new Vector3(110.03284f, -350.02673f, -82.90228f), 1056); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2012837u, new Vector3(110.03284f, -350.02673f, -82.90228f), 1056); obj147.Steps = list213; reference162 = obj147; questRoot25.QuestSequence = list208; @@ -304629,13 +367798,16 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list214); + index = 0; + span[index] = "liza"; questRoot26.Author = list214; - num = 5; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span66 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference163 = ref span66[0]; + index = 5; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + span2 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -304643,24 +367815,30 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039633u, new Vector3(111.46704f, -350f, -83.14642f), 1056) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039633u, new Vector3(111.46704f, -350f, -83.14642f), 1056) { StopDistance = 5f }; obj148.Steps = list216; reference163 = obj148; - ref QuestSequence reference164 = ref span66[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1039636u, new Vector3(114.27478f, 0.65204185f, 7.4310913f), 635); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039636u, new Vector3(114.27478f, 0.65204185f, 7.4310913f), 635); obj149.Steps = list217; reference164 = obj149; - ref QuestSequence reference165 = ref span66[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -304668,26 +367846,33 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1039638u, new Vector3(-511.6503f, 11.97528f, 108.11011f), 957) + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039638u, new Vector3(-511.6503f, 11.97528f, 108.11011f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj150.Steps = list218; reference165 = obj150; - ref QuestSequence reference166 = ref span66[3]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list219)[0]; + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + ref QuestStep reference167 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1039639u, new Vector3(-513.6644f, 11.97528f, 106.06543f), 957); - num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new DialogueChoice + num4 = 1; + List list220 = new List(num4); + CollectionsMarshal.SetCount(list220, num4); + span4 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH110_04535_Q2_000_000"), @@ -304697,7 +367882,8 @@ public static class AssemblyQuestLoader reference167 = questStep17; obj151.Steps = list219; reference166 = obj151; - ref QuestSequence reference168 = ref span66[4]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -304705,7 +367891,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -304723,21 +367911,26 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; questRoot27.Author = list222; - num = 7; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span67 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference169 = ref span67[0]; + index = 7; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042267u, new Vector3(-104.997375f, 3.8989396f, 13.290527f), 962) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042267u, new Vector3(-104.997375f, 3.8989396f, 13.290527f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -304755,7 +367948,8 @@ public static class AssemblyQuestLoader }; obj153.Steps = list224; reference169 = obj153; - ref QuestSequence reference170 = ref span67[1]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -304763,31 +367957,38 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 2012860u, new Vector3(42.160645f, 20.462341f, -683.1617f), 156) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012860u, new Vector3(42.160645f, 20.462341f, -683.1617f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj154.Steps = list225; reference170 = obj154; - ref QuestSequence reference171 = ref span67[2]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1042268u, new Vector3(178.5763f, -15.5223675f, -496.14713f), 156) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042268u, new Vector3(178.5763f, -15.5223675f, -496.14713f), 156) { Fly = true }; obj155.Steps = list226; reference171 = obj155; - span67[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference172 = ref span67[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 4 @@ -304795,19 +367996,23 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1042269u, new Vector3(1.449585f, 0.05000399f, -18.661804f), 1061); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042269u, new Vector3(1.449585f, 0.05000399f, -18.661804f), 1061); obj156.Steps = list227; reference172 = obj156; - ref QuestSequence reference173 = ref span67[5]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span68 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference174 = ref span68[0]; + index2 = 3; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2012863u, new Vector3(0.1327076f, 2.960754f, 6.778096f), 1061) { StopDistance = 5f, @@ -304816,46 +368021,67 @@ public static class AssemblyQuestLoader num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span69 = CollectionsMarshal.AsSpan(list229); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list229); + 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); obj158.CompletionQuestVariablesFlags = list229; reference174 = obj158; - ref QuestStep reference175 = ref span68[1]; + num2++; + ref QuestStep reference175 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2012865u, new Vector3(-21.21936f, 0.7837547f, -58.66461f), 1061); - num3 = 6; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - Span span70 = CollectionsMarshal.AsSpan(list230); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list230 = new List(num4); + CollectionsMarshal.SetCount(list230, num4); + span6 = CollectionsMarshal.AsSpan(list230); + 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); questStep18.CompletionQuestVariablesFlags = list230; reference175 = questStep18; - ref QuestStep reference176 = ref span68[2]; + num2++; + ref QuestStep reference176 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2012864u, new Vector3(59.830566f, 5.0201416f, 69.10803f), 1061); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span71 = CollectionsMarshal.AsSpan(list231); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list231); + 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)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list231; reference176 = questStep19; obj157.Steps = list228; reference173 = obj157; - ref QuestSequence reference177 = ref span67[6]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -304863,7 +368089,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042273u, new Vector3(3.5248413f, 0.0999997f, 14.145081f), 1061) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042273u, new Vector3(3.5248413f, 0.0999997f, 14.145081f), 1061) { NextQuestId = new QuestId(4537) }; @@ -304876,27 +368104,33 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list233); + index = 0; + span[index] = "liza"; questRoot28.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span72 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference178 = ref span72[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + span2 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042275u, new Vector3(5.7526245f, 0.0999997f, 11.703674f), 1061) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042275u, new Vector3(5.7526245f, 0.0999997f, 11.703674f), 1061) { StopDistance = 5f }; obj160.Steps = list235; reference178 = obj160; - ref QuestSequence reference179 = ref span72[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -304904,18 +368138,23 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1042276u, new Vector3(45.76172f, 0.05f, 6.9733276f), 1061); + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042276u, new Vector3(45.76172f, 0.05f, 6.9733276f), 1061); obj161.Steps = list236; reference179 = obj161; - ref QuestSequence reference180 = ref span72[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -304924,7 +368163,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list237; reference180 = obj162; - ref QuestSequence reference181 = ref span72[3]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -304932,7 +368172,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) { StopDistance = 5f, NextQuestId = new QuestId(4538) @@ -304946,27 +368188,33 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "liza"; questRoot29.Author = list239; - num = 6; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span73 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference182 = ref span73[0]; + index = 6; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) { StopDistance = 5f }; obj164.Steps = list241; reference182 = obj164; - ref QuestSequence reference183 = ref span73[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -304974,24 +368222,30 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1042279u, new Vector3(13.290527f, 0.099999696f, -2.243164f), 1061); + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042279u, new Vector3(13.290527f, 0.099999696f, -2.243164f), 1061); obj165.Steps = list242; reference183 = obj165; - ref QuestSequence reference184 = ref span73[2]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj166.Steps = list243; reference184 = obj166; - ref QuestSequence reference185 = ref span73[3]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -304999,40 +368253,55 @@ public static class AssemblyQuestLoader num2 = 3; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span74 = CollectionsMarshal.AsSpan(list244); - ref QuestStep reference186 = ref span74[0]; + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2012866u, new Vector3(-0.015319824f, 6.6376343f, -78.81293f), 635) { StopDistance = 5f, IgnoreDistanceToObject = true }; - num3 = 6; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - Span span75 = CollectionsMarshal.AsSpan(list245); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list245 = new List(num4); + CollectionsMarshal.SetCount(list245, num4); + span6 = CollectionsMarshal.AsSpan(list245); + 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); obj168.CompletionQuestVariablesFlags = list245; reference186 = obj168; - ref QuestStep reference187 = ref span74[1]; + index2++; + ref QuestStep reference187 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1042283u, new Vector3(-59.250793f, -4.6778445E-15f, -29.984009f), 635); num3 = 6; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - Span span76 = CollectionsMarshal.AsSpan(list246); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list246); + 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)4, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list246; reference187 = questStep20; - ref QuestStep reference188 = ref span74[2]; + index2++; + ref QuestStep reference188 = ref span3[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1042284u, new Vector3(208.69751f, 13.5620365f, -140.30676f), 635) { AethernetShortcut = new AethernetShortcut @@ -305041,32 +368310,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachNorthEast } }; - num3 = 6; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - Span span77 = CollectionsMarshal.AsSpan(list247); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + span6 = CollectionsMarshal.AsSpan(list247); + 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); obj169.CompletionQuestVariablesFlags = list247; reference188 = obj169; obj167.Steps = list244; reference185 = obj167; - ref QuestSequence reference189 = ref span73[4]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635); obj170.Steps = list248; reference189 = obj170; - ref QuestSequence reference190 = ref span73[5]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -305074,7 +368353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) { StopDistance = 5f, NextQuestId = new QuestId(4539) @@ -305088,21 +368369,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list250); + index = 0; + span[index] = "liza"; questRoot30.Author = list250; - num = 8; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span78 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference191 = ref span78[0]; + index = 8; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + span2 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -305116,7 +368402,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list252; reference191 = obj172; - ref QuestSequence reference192 = ref span78[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -305124,7 +368411,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1042286u, new Vector3(-207.04968f, 18f, 87.84619f), 130) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042286u, new Vector3(-207.04968f, 18f, 87.84619f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -305135,18 +368424,22 @@ public static class AssemblyQuestLoader }; obj173.Steps = list253; reference192 = obj173; - ref QuestSequence reference193 = ref span78[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1042287u, new Vector3(-164.47705f, 14.004999f, 49.576538f), 130); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042287u, new Vector3(-164.47705f, 14.004999f, 49.576538f), 130); obj174.Steps = list254; reference193 = obj174; - ref QuestSequence reference194 = ref span78[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 @@ -305154,35 +368447,41 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span79 = CollectionsMarshal.AsSpan(list255); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span79[1] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) { Fly = true }; obj175.Steps = list255; reference194 = obj175; - ref QuestSequence reference195 = ref span78[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span80 = CollectionsMarshal.AsSpan(list256); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(135.51227f, 10.850319f, -487.7127f), 146) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(135.51227f, 10.850319f, -487.7127f), 146) { Fly = true }; - span80[1] = new QuestStep(EInteractionType.Interact, 2012869u, new Vector3(137.4685f, 10.696533f, -488.36502f), 146); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012869u, new Vector3(137.4685f, 10.696533f, -488.36502f), 146); obj176.Steps = list256; reference195 = obj176; - ref QuestSequence reference196 = ref span78[5]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 @@ -305190,32 +368489,38 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) { Fly = true }; obj177.Steps = list257; reference196 = obj177; - ref QuestSequence reference197 = ref span78[6]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span81 = CollectionsMarshal.AsSpan(list258); - span81[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 2; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span81[1] = new QuestStep(EInteractionType.Interact, 1042281u, new Vector3(1.9378662f, 0.099999696f, -0.44250488f), 1061); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042281u, new Vector3(1.9378662f, 0.099999696f, -0.44250488f), 1061); obj178.Steps = list258; reference197 = obj178; - ref QuestSequence reference198 = ref span78[7]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -305223,7 +368528,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { Fly = true, NextQuestId = new QuestId(4666) @@ -305237,21 +368544,26 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list260); + index = 0; + span[index] = "liza"; questRoot31.Author = list260; - num = 7; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span82 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference199 = ref span82[0]; + index = 7; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + span2 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list262)[0]; + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1042487u, new Vector3(32.272827f, -4.4237822E-07f, -0.7477417f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan @@ -305259,7 +368571,9 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB811_04542_Q4_000_000"), @@ -305269,7 +368583,8 @@ public static class AssemblyQuestLoader reference200 = obj181; obj180.Steps = list262; reference199 = obj180; - ref QuestSequence reference201 = ref span82[1]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -305277,18 +368592,23 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1042488u, new Vector3(150.68274f, 4.783756f, -145.00653f), 963); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042488u, new Vector3(150.68274f, 4.783756f, -145.00653f), 963); obj182.Steps = list264; reference201 = obj182; - ref QuestSequence reference202 = ref span82[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1042489u, new Vector3(147.75305f, 27.06f, 36.057007f), 963) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042489u, new Vector3(147.75305f, 27.06f, 36.057007f), 963) { AethernetShortcut = new AethernetShortcut { @@ -305298,7 +368618,8 @@ public static class AssemblyQuestLoader }; obj183.Steps = list265; reference202 = obj183; - ref QuestSequence reference203 = ref span82[3]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -305306,7 +368627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -305318,16 +368641,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list266; reference203 = obj184; - ref QuestSequence reference204 = ref span82[4]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - num2 = 7; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span83 = CollectionsMarshal.AsSpan(list267); - span83[0] = new QuestStep(EInteractionType.None, null, null, 819) + index2 = 7; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -305335,7 +368660,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -305346,7 +368672,8 @@ public static class AssemblyQuestLoader } } }; - span83[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -305357,7 +368684,8 @@ public static class AssemblyQuestLoader } } }; - span83[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -305367,24 +368695,32 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference205 = ref span83[4]; + num2++; + ref QuestStep reference205 = ref span3[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Interact, 1042493u, new Vector3(-106.73688f, 14.173656f, 756.4354f), 813) { Fly = true }; - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span84 = CollectionsMarshal.AsSpan(list268); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + span6 = CollectionsMarshal.AsSpan(list268); + 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); obj186.CompletionQuestVariablesFlags = list268; reference205 = obj186; - ref QuestStep reference206 = ref span83[5]; + num2++; + ref QuestStep reference206 = ref span3[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1042491u, new Vector3(-137.22437f, 9.572956f, 708.3999f), 813) { StopDistance = 1f, @@ -305393,35 +368729,49 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span85 = CollectionsMarshal.AsSpan(list269); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list269); + 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); obj187.CompletionQuestVariablesFlags = list269; reference206 = obj187; - ref QuestStep reference207 = ref span83[6]; + num2++; + ref QuestStep reference207 = ref span3[num2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1042492u, new Vector3(-218.76862f, 1.9084097f, 756.16077f), 813) { Fly = true }; - num3 = 6; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span86 = CollectionsMarshal.AsSpan(list270); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + span6 = CollectionsMarshal.AsSpan(list270); + 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); obj188.CompletionQuestVariablesFlags = list270; reference207 = obj188; obj185.Steps = list267; reference204 = obj185; - ref QuestSequence reference208 = ref span82[5]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 5 @@ -305429,8 +368779,9 @@ public static class AssemblyQuestLoader num2 = 2; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span87 = CollectionsMarshal.AsSpan(list271); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -305440,19 +368791,22 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.Interact, 1042494u, new Vector3(-54.032227f, 2.015483f, 677.9125f), 813); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042494u, new Vector3(-54.032227f, 2.015483f, 677.9125f), 813); obj189.Steps = list271; reference208 = obj189; - ref QuestSequence reference209 = ref span82[6]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span88 = CollectionsMarshal.AsSpan(list272); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2 = 4; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { SkipConditions = new SkipConditions { @@ -305462,7 +368816,8 @@ public static class AssemblyQuestLoader } } }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { DisableNavmesh = true, Comment = "these bridges have navmesh problems", @@ -305474,7 +368829,8 @@ public static class AssemblyQuestLoader } } }; - span88[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(105.453514f, -1.5952542f, 604.3535f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(105.453514f, -1.5952542f, 604.3535f), 813) { SkipConditions = new SkipConditions { @@ -305484,7 +368840,8 @@ public static class AssemblyQuestLoader } } }; - span88[3] = new QuestStep(EInteractionType.CompleteQuest, 1042497u, new Vector3(220.7522f, 12.699311f, 229.84656f), 813) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042497u, new Vector3(220.7522f, 12.699311f, 229.84656f), 813) { Fly = true, NextQuestId = new QuestId(4543) @@ -305498,13 +368855,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot32.Author = list273; - num = 11; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span89 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference210 = ref span89[0]; + index = 11; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -305512,7 +368872,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - ref QuestStep reference211 = ref CollectionsMarshal.AsSpan(list275)[0]; + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + ref QuestStep reference211 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.AcceptQuest, 1042499u, new Vector3(217.51733f, 12.445339f, 228.44275f), 813) { StopDistance = 5f @@ -305520,7 +368882,9 @@ public static class AssemblyQuestLoader num3 = 1; List list276 = new List(num3); CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list276); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB812_04543_Q1_000_000"), @@ -305530,15 +368894,18 @@ public static class AssemblyQuestLoader reference211 = obj192; obj191.Steps = list275; reference210 = obj191; - ref QuestSequence reference212 = ref span89[1]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1042502u, new Vector3(-57.38922f, -36.72638f, -254.53583f), 819) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042502u, new Vector3(-57.38922f, -36.72638f, -254.53583f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -305549,7 +368916,8 @@ public static class AssemblyQuestLoader }; obj193.Steps = list277; reference212 = obj193; - ref QuestSequence reference213 = ref span89[2]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 2 @@ -305557,7 +368925,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1042505u, new Vector3(148.11926f, 27.06f, 36.240112f), 963) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042505u, new Vector3(148.11926f, 27.06f, 36.240112f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -305568,46 +368938,62 @@ public static class AssemblyQuestLoader }; obj194.Steps = list278; reference213 = obj194; - ref QuestSequence reference214 = ref span89[3]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span90 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference215 = ref span90[0]; + index2 = 2; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference215 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1037341u, new Vector3(133.77576f, 26.99999f, 12.405518f), 963); - num3 = 6; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span91 = CollectionsMarshal.AsSpan(list280); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + span6 = CollectionsMarshal.AsSpan(list280); + 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); questStep21.CompletionQuestVariablesFlags = list280; reference215 = questStep21; - ref QuestStep reference216 = ref span90[1]; + num2++; + ref QuestStep reference216 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1037352u, new Vector3(112.10791f, 26.99999f, 25.253662f), 963); num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span92 = CollectionsMarshal.AsSpan(list281); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list281); + 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)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list281; reference216 = questStep22; obj195.Steps = list279; reference214 = obj195; - ref QuestSequence reference217 = ref span89[4]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 4 @@ -305615,21 +369001,27 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1042506u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042506u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); obj196.Steps = list282; reference217 = obj196; - ref QuestSequence reference218 = ref span89[5]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1042508u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042508u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); obj197.Steps = list283; reference218 = obj197; - ref QuestSequence reference219 = ref span89[6]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 6 @@ -305637,19 +369029,23 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1037324u, new Vector3(-4.257263f, 27f, 36.362183f), 963); + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037324u, new Vector3(-4.257263f, 27f, 36.362183f), 963); obj198.Steps = list284; reference219 = obj198; - ref QuestSequence reference220 = ref span89[7]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span93 = CollectionsMarshal.AsSpan(list285); - span93[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-3.0175605f, 27f, 36.584843f), 963) + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-3.0175605f, 27f, 36.584843f), 963) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -305657,10 +369053,12 @@ public static class AssemblyQuestLoader Position = new Vector3(-3.6922705f, -1.9999962f, 52.106045f) } }; - span93[1] = new QuestStep(EInteractionType.Interact, 1042509u, new Vector3(-29.373718f, -1.9999962f, 130.93762f), 963); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042509u, new Vector3(-29.373718f, -1.9999962f, 130.93762f), 963); obj199.Steps = list285; reference220 = obj199; - ref QuestSequence reference221 = ref span89[8]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 8 @@ -305668,28 +369066,34 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1042510u, new Vector3(-337.57538f, 3.2215352f, 365.7129f), 957) + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042510u, new Vector3(-337.57538f, 3.2215352f, 365.7129f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj200.Steps = list286; reference221 = obj200; - ref QuestSequence reference222 = ref span89[9]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1042511u, new Vector3(-376.669f, 1.1651754f, 379.23242f), 957) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042511u, new Vector3(-376.669f, 1.1651754f, 379.23242f), 957) { StopDistance = 5f }; obj201.Steps = list287; reference222 = obj201; - ref QuestSequence reference223 = ref span89[10]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -305697,7 +369101,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963) + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, NextQuestId = new QuestId(4641) @@ -305711,29 +369117,36 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list289); + index = 0; + span[index] = "liza"; questRoot33.Author = list289; - num = 9; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span94 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference224 = ref span94[0]; + index = 9; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + span2 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list291)[0]; + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + ref QuestStep reference225 = ref span3[num2]; QuestStep obj204 = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = new DialogueChoice + num4 = 1; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + span4 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q1_000_004"), @@ -305743,7 +369156,8 @@ public static class AssemblyQuestLoader reference225 = obj204; obj203.Steps = list291; reference224 = obj203; - ref QuestSequence reference226 = ref span94[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -305751,36 +369165,51 @@ public static class AssemblyQuestLoader num2 = 3; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span95 = CollectionsMarshal.AsSpan(list293); - ref QuestStep reference227 = ref span95[0]; + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference227 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1042303u, new Vector3(183.79492f, 10.683311f, 557.42737f), 957); num3 = 6; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span96 = CollectionsMarshal.AsSpan(list294); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list294); + 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); questStep23.CompletionQuestVariablesFlags = list294; reference227 = questStep23; - ref QuestStep reference228 = ref span95[1]; + index2++; + ref QuestStep reference228 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1042305u, new Vector3(200f, 10.114502f, 579.1256f), 957); - num3 = 6; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span97 = CollectionsMarshal.AsSpan(list295); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + span6 = CollectionsMarshal.AsSpan(list295); + 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); questStep24.CompletionQuestVariablesFlags = list295; reference228 = questStep24; - ref QuestStep reference229 = ref span95[2]; + index2++; + ref QuestStep reference229 = ref span3[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1042304u, new Vector3(171.58765f, 4.763736f, 683.37524f), 957) { Fly = true @@ -305788,32 +369217,42 @@ public static class AssemblyQuestLoader num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span98 = CollectionsMarshal.AsSpan(list296); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list296); + 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)4, 0, EQuestWorkMode.Bitwise); obj206.CompletionQuestVariablesFlags = list296; reference229 = obj206; obj205.Steps = list293; reference226 = obj205; - ref QuestSequence reference230 = ref span94[2]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1042306u, new Vector3(-260.6394f, 14.412592f, 202.62451f), 957) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042306u, new Vector3(-260.6394f, 14.412592f, 202.62451f), 957) { Fly = true }; obj207.Steps = list297; reference230 = obj207; - ref QuestSequence reference231 = ref span94[3]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -305821,36 +369260,43 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span99 = CollectionsMarshal.AsSpan(list298); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - span99[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj208.Steps = list298; reference231 = obj208; - ref QuestSequence reference232 = ref span94[4]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span100 = CollectionsMarshal.AsSpan(list299); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - ref QuestStep reference233 = ref span100[1]; + num2++; + ref QuestStep reference233 = ref span3[num2]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 1042307u, new Vector3(121.01929f, 6.780056f, 585.59546f), 957) { Fly = true }; - num3 = 1; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = new DialogueChoice + num4 = 1; + List list300 = new List(num4); + CollectionsMarshal.SetCount(list300, num4); + span4 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q4_000_081") @@ -305859,7 +369305,8 @@ public static class AssemblyQuestLoader reference233 = obj210; obj209.Steps = list299; reference232 = obj209; - ref QuestSequence reference234 = ref span94[5]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -305867,7 +369314,9 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list301)[0]; + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + ref QuestStep reference235 = ref span3[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1042310u, new Vector3(-488.7007f, 4.563182f, 18.20398f), 957) { StopDistance = 5f @@ -305875,7 +369324,9 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list302); + num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q5_000_115") @@ -305884,18 +369335,22 @@ public static class AssemblyQuestLoader reference235 = obj212; obj211.Steps = list301; reference234 = obj211; - ref QuestSequence reference236 = ref span94[6]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.25264f, 5.220791f, 606.4928f), 957); + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.25264f, 5.220791f, 606.4928f), 957); obj213.Steps = list303; reference236 = obj213; - ref QuestSequence reference237 = ref span94[7]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 7 @@ -305903,23 +369358,28 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj214.Steps = list304; reference237 = obj214; - ref QuestSequence reference238 = ref span94[8]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span101 = CollectionsMarshal.AsSpan(list305); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1042313u, new Vector3(-78.690796f, 40.010006f, 323.2318f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042313u, new Vector3(-78.690796f, 40.010006f, 323.2318f), 957) { Fly = true }; @@ -305932,13 +369392,16 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "liza"; questRoot34.Author = list306; - num = 10; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span102 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference239 = ref span102[0]; + index = 10; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -305946,24 +369409,30 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957); obj216.Steps = list308; reference239 = obj216; - ref QuestSequence reference240 = ref span102[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 2012919u, new Vector3(-464.22522f, 5.3864136f, 22.445984f), 957) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012919u, new Vector3(-464.22522f, 5.3864136f, 22.445984f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj217.Steps = list309; reference240 = obj217; - ref QuestSequence reference241 = ref span102[2]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -305971,36 +369440,44 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list310)[0]; + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + ref QuestStep reference242 = ref span3[index2]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, null, new Vector3(-363.06543f, 55.300343f, -108.32965f), 957) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 14681u; + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + span5 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span5[num3] = 14681u; obj219.KillEnemyDataIds = list311; reference242 = obj219; obj218.Steps = list310; reference241 = obj218; - ref QuestSequence reference243 = ref span102[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1042318u, new Vector3(-360.49445f, 54.680054f, -102.9527f), 957) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042318u, new Vector3(-360.49445f, 54.680054f, -102.9527f), 957) { StopDistance = 7f }; obj220.Steps = list312; reference243 = obj220; - ref QuestSequence reference244 = ref span102[4]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 4 @@ -306008,24 +369485,30 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957) + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj221.Steps = list313; reference244 = obj221; - ref QuestSequence reference245 = ref span102[5]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1042322u, new Vector3(-523.36926f, 10.9199f, 85.34363f), 957); + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042322u, new Vector3(-523.36926f, 10.9199f, 85.34363f), 957); obj222.Steps = list314; reference245 = obj222; - ref QuestSequence reference246 = ref span102[6]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 6 @@ -306033,40 +369516,55 @@ public static class AssemblyQuestLoader num2 = 3; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span103 = CollectionsMarshal.AsSpan(list315); - ref QuestStep reference247 = ref span103[0]; + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + ref QuestStep reference247 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1042324u, new Vector3(-558.0072f, 11.802552f, 114.03064f), 957); num3 = 6; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - Span span104 = CollectionsMarshal.AsSpan(list316); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list316); + 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)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list316; reference247 = questStep25; - ref QuestStep reference248 = ref span103[1]; + index2++; + ref QuestStep reference248 = ref span3[index2]; QuestStep obj224 = new QuestStep(EInteractionType.Interact, 1042325u, new Vector3(-552.75806f, 1.120665f, 23.392029f), 957) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span105 = CollectionsMarshal.AsSpan(list317); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + span6 = CollectionsMarshal.AsSpan(list317); + 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); obj224.CompletionQuestVariablesFlags = list317; reference248 = obj224; - ref QuestStep reference249 = ref span103[2]; + index2++; + ref QuestStep reference249 = ref span3[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 1042323u, new Vector3(-480.33875f, 1.9096844f, -13.53479f), 957) { Fly = true @@ -306074,29 +369572,39 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span106 = CollectionsMarshal.AsSpan(list318); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list318); + 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); obj225.CompletionQuestVariablesFlags = list318; reference249 = obj225; obj223.Steps = list315; reference246 = obj223; - ref QuestSequence reference250 = ref span102[7]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957); + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957); obj226.Steps = list319; reference250 = obj226; - ref QuestSequence reference251 = ref span102[8]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 8 @@ -306104,21 +369612,26 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + span3 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj227.Steps = list320; reference251 = obj227; - ref QuestSequence reference252 = ref span102[9]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -306133,13 +369646,16 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list322); + index = 0; + span[index] = "liza"; questRoot35.Author = list322; - num = 7; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span107 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference253 = ref span107[0]; + index = 7; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + span2 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -306147,25 +369663,31 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj229.Steps = list324; reference253 = obj229; - ref QuestSequence reference254 = ref span107[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj230.Steps = list325; reference254 = obj230; - ref QuestSequence reference255 = ref span107[2]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 2 @@ -306173,27 +369695,33 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 2012921u, new Vector3(128.89294f, 16f, -437.9187f), 957) + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012921u, new Vector3(128.89294f, 16f, -437.9187f), 957) { Fly = true }; obj231.Steps = list326; reference255 = obj231; - ref QuestSequence reference256 = ref span107[3]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1042328u, new Vector3(128.31311f, 16.178802f, -439.78027f), 957) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042328u, new Vector3(128.31311f, 16.178802f, -439.78027f), 957) { StopDistance = 4.5f }; obj232.Steps = list327; reference256 = obj232; - ref QuestSequence reference257 = ref span107[4]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 4 @@ -306201,27 +369729,33 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) { Fly = true }; obj233.Steps = list328; reference257 = obj233; - ref QuestSequence reference258 = ref span107[5]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1042330u, new Vector3(383.1692f, 3.1168795f, -263.8133f), 957) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042330u, new Vector3(383.1692f, 3.1168795f, -263.8133f), 957) { Fly = true }; obj234.Steps = list329; reference258 = obj234; - ref QuestSequence reference259 = ref span107[6]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue @@ -306229,7 +369763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306243,24 +369779,30 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list331); + index = 0; + span[index] = "liza"; questRoot36.Author = list331; - num = 6; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span108 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference260 = ref span108[0]; + index = 6; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + span2 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj236.Steps = list333; reference260 = obj236; - ref QuestSequence reference261 = ref span108[1]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 1 @@ -306268,40 +369810,51 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1042336u, new Vector3(409.964f, 18.253498f, -461.53967f), 957) + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042336u, new Vector3(409.964f, 18.253498f, -461.53967f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj237.Steps = list334; reference261 = obj237; - ref QuestSequence reference262 = ref span108[2]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span109 = CollectionsMarshal.AsSpan(list335); - ref QuestStep reference263 = ref span109[0]; + index2 = 2; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference263 = ref span3[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2012970u, new Vector3(197.4364f, 9.323181f, -438.71216f), 957) { Fly = true }; - num3 = 6; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span110 = CollectionsMarshal.AsSpan(list336); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + span6 = CollectionsMarshal.AsSpan(list336); + 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); obj239.CompletionQuestVariablesFlags = list336; reference263 = obj239; - ref QuestStep reference264 = ref span109[1]; + num2++; + ref QuestStep reference264 = ref span3[num2]; QuestStep obj240 = new QuestStep(EInteractionType.Combat, 2012924u, new Vector3(179.33923f, 7.309021f, -392.44684f), 957) { Fly = true, @@ -306310,23 +369863,32 @@ public static class AssemblyQuestLoader num3 = 1; List list337 = new List(num3); CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = 14683u; + span5 = CollectionsMarshal.AsSpan(list337); + num4 = 0; + span5[num4] = 14683u; obj240.KillEnemyDataIds = list337; - num3 = 6; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - Span span111 = CollectionsMarshal.AsSpan(list338); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + span6 = CollectionsMarshal.AsSpan(list338); + 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); obj240.CompletionQuestVariablesFlags = list338; reference264 = obj240; obj238.Steps = list335; reference262 = obj238; - ref QuestSequence reference265 = ref span108[3]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 @@ -306334,27 +369896,33 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1042339u, new Vector3(145.95251f, 9.608223f, -234.24127f), 957) + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042339u, new Vector3(145.95251f, 9.608223f, -234.24127f), 957) { Fly = true }; obj241.Steps = list339; reference265 = obj241; - ref QuestSequence reference266 = ref span108[4]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1042343u, new Vector3(142.53455f, 10.132848f, -232.89844f), 957) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042343u, new Vector3(142.53455f, 10.132848f, -232.89844f), 957) { StopDistance = 7f }; obj242.Steps = list340; reference266 = obj242; - ref QuestSequence reference267 = ref span108[5]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue @@ -306362,7 +369930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306376,27 +369946,33 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "skiaz"; + span = CollectionsMarshal.AsSpan(list342); + index = 0; + span[index] = "skiaz"; questRoot37.Author = list342; - num = 8; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span112 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference268 = ref span112[0]; + index = 8; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + span2 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + span3 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true }; obj244.Steps = list344; reference268 = obj244; - ref QuestSequence reference269 = ref span112[1]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -306404,8 +369980,9 @@ public static class AssemblyQuestLoader num2 = 3; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span113 = CollectionsMarshal.AsSpan(list345); - ref QuestStep reference270 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + ref QuestStep reference270 = ref span3[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Combat, 2012925u, new Vector3(-108.01868f, 40.17688f, 182.5741f), 957) { Fly = true, @@ -306414,22 +369991,28 @@ public static class AssemblyQuestLoader num3 = 1; List list346 = new List(num3); CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 14684u; + span5 = CollectionsMarshal.AsSpan(list346); + num4 = 0; + span5[num4] = 14684u; obj246.KillEnemyDataIds = list346; reference270 = obj246; - ref QuestStep reference271 = ref span113[1]; + index2++; + ref QuestStep reference271 = ref span3[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 2012926u, new Vector3(-53.574463f, 56.22937f, 66.056274f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list347 = new List(num3); - CollectionsMarshal.SetCount(list347, num3); - CollectionsMarshal.AsSpan(list347)[0] = 14685u; + num4 = 1; + List list347 = new List(num4); + CollectionsMarshal.SetCount(list347, num4); + span5 = CollectionsMarshal.AsSpan(list347); + num3 = 0; + span5[num3] = 14685u; obj247.KillEnemyDataIds = list347; reference271 = obj247; - ref QuestStep reference272 = ref span113[2]; + index2++; + ref QuestStep reference272 = ref span3[index2]; QuestStep obj248 = new QuestStep(EInteractionType.Combat, 2012927u, new Vector3(-246.05176f, 18.509094f, 128.58777f), 957) { Fly = true, @@ -306438,26 +370021,32 @@ public static class AssemblyQuestLoader num3 = 1; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 14684u; + span5 = CollectionsMarshal.AsSpan(list348); + num4 = 0; + span5[num4] = 14684u; obj248.KillEnemyDataIds = list348; reference272 = obj248; obj245.Steps = list345; reference269 = obj245; - ref QuestSequence reference273 = ref span112[2]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + span3 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) { Fly = true }; obj249.Steps = list349; reference273 = obj249; - ref QuestSequence reference274 = ref span112[3]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 @@ -306465,15 +370054,19 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list350)[0]; + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + ref QuestStep reference275 = ref span3[index2]; QuestStep obj251 = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) { Fly = true }; - num3 = 1; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = new DialogueChoice + num4 = 1; + List list351 = new List(num4); + CollectionsMarshal.SetCount(list351, num4); + span4 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK005_04549_Q2_000_046"), @@ -306483,21 +370076,25 @@ public static class AssemblyQuestLoader reference275 = obj251; obj250.Steps = list350; reference274 = obj250; - ref QuestSequence reference276 = ref span112[4]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1042347u, new Vector3(178.7594f, 5.6198997f, 617.02905f), 957) + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042347u, new Vector3(178.7594f, 5.6198997f, 617.02905f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj252.Steps = list352; reference276 = obj252; - ref QuestSequence reference277 = ref span112[5]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 5 @@ -306505,28 +370102,34 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1042346u, new Vector3(175.21924f, 5.629661f, 614.12976f), 957) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042346u, new Vector3(175.21924f, 5.629661f, 614.12976f), 957) { Fly = true }; obj253.Steps = list353; reference277 = obj253; - ref QuestSequence reference278 = ref span112[6]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 2012928u, new Vector3(185.62585f, 60.318848f, -605.98157f), 957) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012928u, new Vector3(185.62585f, 60.318848f, -605.98157f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj254.Steps = list354; reference278 = obj254; - ref QuestSequence reference279 = ref span112[7]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue @@ -306534,7 +370137,9 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj255.Steps = list355; reference279 = obj255; questRoot37.QuestSequence = list343; @@ -306548,13 +370153,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -306562,12 +370170,16 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK006_04550_Q1_000_007"), @@ -306577,18 +370189,22 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2012929u, new Vector3(-73.74689f, 39.96338f, 321.58386f), 957); + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012929u, new Vector3(-73.74689f, 39.96338f, 321.58386f), 957); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -306596,7 +370212,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj3.Steps = list6; reference4 = obj3; questRoot.QuestSequence = list2; @@ -306606,24 +370224,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj4.Steps = list9; reference5 = obj4; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -306631,25 +370255,33 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference7 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1042363u, new Vector3(227.58826f, 4.933288f, 644.4037f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span5 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list11; reference7 = obj6; - ref QuestStep reference8 = ref span3[1]; + index2++; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1042364u, new Vector3(198.93188f, 1.7699993f, 707.1183f), 957) { Fly = true @@ -306657,43 +370289,59 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span5 = CollectionsMarshal.AsSpan(list12); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list12; reference8 = obj7; - ref QuestStep reference9 = ref span3[2]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1042365u, new Vector3(177.66077f, 5.331657f, 651.27026f), 957) { Fly = true }; - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + span5 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list13; reference9 = obj8; obj5.Steps = list10; reference6 = obj5; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -306706,13 +370354,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -306720,24 +370371,30 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj10.Steps = list17; reference11 = obj10; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957) { Fly = true }; obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference13 = ref span7[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -306745,22 +370402,27 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1042366u, new Vector3(185.56494f, 1.8742322f, 760.4332f), 957) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042366u, new Vector3(185.56494f, 1.8742322f, 760.4332f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span7[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -306773,13 +370435,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list21); + index = 0; + span[index] = "liza"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span8[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + span2 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -306787,18 +370452,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference16 = ref span8[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, 2012850u, new Vector3(-399.74066f, 58.91504f, -354.97064f), 957) { Fly = true, @@ -306807,14 +370477,17 @@ public static class AssemblyQuestLoader num3 = 2; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span9 = CollectionsMarshal.AsSpan(list25); - span9[0] = 14674u; - span9[1] = 14675u; + Span span6 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span6[index3] = 14674u; + index3++; + span6[index3] = 14675u; obj16.KillEnemyDataIds = list25; reference17 = obj16; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference18 = ref span8[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -306822,7 +370495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306836,24 +370511,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "liza"; questRoot5.Author = list27; - num = 5; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span10 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference19 = ref span10[0]; + index = 5; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj18.Steps = list29; reference19 = obj18; - ref QuestSequence reference20 = ref span10[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -306861,28 +370542,34 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj19.Steps = list30; reference20 = obj19; - ref QuestSequence reference21 = ref span10[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) { Fly = true }; obj20.Steps = list31; reference21 = obj20; - ref QuestSequence reference22 = ref span10[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -306890,8 +370577,9 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span11 = CollectionsMarshal.AsSpan(list32); - span11[0] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) { SkipConditions = new SkipConditions { @@ -306901,25 +370589,30 @@ public static class AssemblyQuestLoader } } }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.76804f, 21.84539f, -466.46533f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.76804f, 21.84539f, -466.46533f), 957) { DisableNavmesh = true }; - span11[2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) { DisableNavmesh = true }; obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span10[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306933,13 +370626,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot6.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span12 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference24 = ref span12[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -306947,19 +370643,23 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj23.Steps = list36; reference24 = obj23; - ref QuestSequence reference25 = ref span12[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span13 = CollectionsMarshal.AsSpan(list37); - ref QuestStep reference26 = ref span13[0]; + index2 = 4; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1043108u, new Vector3(336.41565f, 0.9428888f, 624.10913f), 957) { SkipConditions = new SkipConditions @@ -306970,17 +370670,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span4 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK105_04555_Q1_000_000") }; obj25.DialogueChoices = list38; reference26 = obj25; - ref QuestStep reference27 = ref span13[1]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2012853u, new Vector3(392.66028f, 57.602783f, 630.64f), 957) { Fly = true @@ -306988,46 +370691,67 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span14 = CollectionsMarshal.AsSpan(list39); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list39; reference27 = obj26; - ref QuestStep reference28 = ref span13[2]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012854u, new Vector3(422.99524f, 62.91284f, 584.161f), 957); - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span15 = CollectionsMarshal.AsSpan(list40); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list40; reference28 = questStep2; - ref QuestStep reference29 = ref span13[3]; + num2++; + ref QuestStep reference29 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012852u, new Vector3(445.27344f, 68.46716f, 588.03687f), 957); num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span16 = CollectionsMarshal.AsSpan(list41); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list41; reference29 = questStep3; obj24.Steps = list37; reference25 = obj24; - ref QuestSequence reference30 = ref span12[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -307035,8 +370759,9 @@ public static class AssemblyQuestLoader num2 = 3; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span17 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference31 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1043107u, new Vector3(376.51636f, 55.220497f, 601.0985f), 957) { SkipConditions = new SkipConditions @@ -307047,17 +370772,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span4 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK105_04555_Q2_000_000") }; obj28.DialogueChoices = list43; reference31 = obj28; - span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(236.26051f, 2.3393192f, 644.57275f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(236.26051f, 2.3393192f, 644.57275f), 957) { SkipConditions = new SkipConditions { @@ -307067,7 +370795,8 @@ public static class AssemblyQuestLoader } } }; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307080,24 +370809,30 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot7.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span18 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference32 = ref span18[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj29.Steps = list46; reference32 = obj29; - ref QuestSequence reference33 = ref span18[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -307105,8 +370840,9 @@ public static class AssemblyQuestLoader num2 = 3; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span19 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference34 = ref span19[0]; + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1042368u, new Vector3(-485.771f, 39.62969f, 114.213745f), 957) { Fly = true, @@ -307115,23 +370851,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list48 = new List>(num3); CollectionsMarshal.SetCount(list48, num3); - Span> span20 = CollectionsMarshal.AsSpan(list48); - span20[0] = null; - span20[1] = null; - ref List reference35 = ref span20[2]; + Span> span7 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + ref List reference35 = ref span7[index3]; int num4 = 1; List list49 = new List(num4); CollectionsMarshal.SetCount(list49, num4); - CollectionsMarshal.AsSpan(list49)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list49); + int index4 = 0; + span5[index4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference35 = list49; - span20[3] = null; - span20[4] = null; - span20[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj31.RequiredQuestVariables = list48; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + span4 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q1_000_000"), @@ -307139,7 +370885,8 @@ public static class AssemblyQuestLoader }; obj31.DialogueChoices = list50; reference34 = obj31; - ref QuestStep reference36 = ref span19[1]; + index2++; + ref QuestStep reference36 = ref span3[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1042369u, new Vector3(-561.2726f, 11.802609f, 128.95398f), 957) { Fly = true @@ -307147,23 +370894,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list51 = new List>(num3); CollectionsMarshal.SetCount(list51, num3); - Span> span21 = CollectionsMarshal.AsSpan(list51); - span21[0] = null; - span21[1] = null; - ref List reference37 = ref span21[2]; - num4 = 1; - List list52 = new List(num4); - CollectionsMarshal.SetCount(list52, num4); - CollectionsMarshal.AsSpan(list52)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + ref List reference37 = ref span7[index3]; + index4 = 1; + List list52 = new List(index4); + CollectionsMarshal.SetCount(list52, index4); + span5 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference37 = list52; - span21[3] = null; - span21[4] = null; - span21[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj32.RequiredQuestVariables = list51; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + span4 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q2_000_000"), @@ -307171,28 +370928,39 @@ public static class AssemblyQuestLoader }; obj32.DialogueChoices = list53; reference36 = obj32; - ref QuestStep reference38 = ref span19[2]; + index2++; + ref QuestStep reference38 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1042370u, new Vector3(-506.37067f, 5.1961365f, 63.401123f), 957); num3 = 6; List> list54 = new List>(num3); CollectionsMarshal.SetCount(list54, num3); - Span> span22 = CollectionsMarshal.AsSpan(list54); - span22[0] = null; - span22[1] = null; - ref List reference39 = ref span22[2]; + span7 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + ref List reference39 = ref span7[index3]; num4 = 1; List list55 = new List(num4); CollectionsMarshal.SetCount(list55, num4); - CollectionsMarshal.AsSpan(list55)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list55); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference39 = list55; - span22[3] = null; - span22[4] = null; - span22[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; questStep4.RequiredQuestVariables = list54; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new DialogueChoice + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span4 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q3_000_000"), @@ -307202,15 +370970,18 @@ public static class AssemblyQuestLoader reference38 = questStep4; obj30.Steps = list47; reference33 = obj30; - ref QuestSequence reference40 = ref span18[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + span3 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307223,13 +370994,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; questRoot8.Author = list58; - num = 4; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span23 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference41 = ref span23[0]; + index = 4; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -307237,21 +371011,27 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj34.Steps = list60; reference41 = obj34; - ref QuestSequence reference42 = ref span23[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); obj35.Steps = list61; reference42 = obj35; - ref QuestSequence reference43 = ref span23[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -307259,8 +371039,9 @@ public static class AssemblyQuestLoader num2 = 6; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span24 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference44 = ref span24[0]; + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.3157f, 3.1168795f, -241.61731f), 957) { Fly = true, @@ -307271,36 +371052,50 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list63; skipConditions.StepIf = skipStepConditions; obj37.SkipConditions = skipConditions; reference44 = obj37; - ref QuestStep reference45 = ref span24[1]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Action, 1042372u, new Vector3(441.062f, 3.5405273f, -238.78845f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj38.CompletionQuestVariablesFlags = list64; reference45 = obj38; - ref QuestStep reference46 = ref span24[2]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.90213f, 3.1168797f, -226.82733f), 957) { Fly = true, @@ -307311,36 +371106,50 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span27 = CollectionsMarshal.AsSpan(list65); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions2.StepIf = skipStepConditions2; obj39.SkipConditions = skipConditions2; reference46 = obj39; - ref QuestStep reference47 = ref span24[3]; + index2++; + ref QuestStep reference47 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 1042371u, new Vector3(376.7605f, 3.3540652f, -225.33002f), 957) { StopDistance = 5f, Action = EAction.BlueGulal }; - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span28 = CollectionsMarshal.AsSpan(list66); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span5 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list66; reference47 = obj40; - ref QuestStep reference48 = ref span24[4]; + index2++; + ref QuestStep reference48 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.06558f, 13.027411f, -307.05457f), 957) { Fly = true, @@ -307351,53 +371160,69 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span29 = CollectionsMarshal.AsSpan(list67); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list67; skipConditions3.StepIf = skipStepConditions3; obj41.SkipConditions = skipConditions3; reference48 = obj41; - ref QuestStep reference49 = ref span24[5]; + index2++; + ref QuestStep reference49 = ref span3[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Action, 1042373u, new Vector3(406.1189f, 13.0274105f, -311.0857f), 957) { StopDistance = 5f, Action = EAction.RedGulal }; - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span30 = CollectionsMarshal.AsSpan(list68); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + span5 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list68; reference49 = obj42; obj36.Steps = list62; reference43 = obj36; - ref QuestSequence reference50 = ref span23[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span31 = CollectionsMarshal.AsSpan(list69); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.065f, 13.027411f, -306.9749f), 957) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.065f, 13.027411f, -306.9749f), 957) { StopDistance = 10000f, Mount = false, Comment = "Unmount from Quest Mount" }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307411,13 +371236,16 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list70); + index = 0; + span[index] = "liza"; questRoot9.Author = list70; - num = 4; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span32 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference51 = ref span32[0]; + index = 4; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + span2 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -307425,18 +371253,23 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj44.Steps = list72; reference51 = obj44; - ref QuestSequence reference52 = ref span32[1]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1042376u, new Vector3(205.34058f, 63.981293f, -640.4059f), 957) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042376u, new Vector3(205.34058f, 63.981293f, -640.4059f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -307448,7 +371281,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference52 = obj45; - ref QuestSequence reference53 = ref span32[2]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -307456,18 +371290,23 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2012908u, new Vector3(208.23987f, 65.62903f, -642.1149f), 957); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012908u, new Vector3(208.23987f, 65.62903f, -642.1149f), 957); obj46.Steps = list74; reference53 = obj46; - ref QuestSequence reference54 = ref span32[3]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307481,13 +371320,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "liza"; questRoot10.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span33 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference55 = ref span33[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -307495,18 +371337,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj48.Steps = list78; reference55 = obj48; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list79)[0]; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) { StopDistance = 0.25f, @@ -307517,12 +371364,15 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = 14676u; + span6 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span6[index3] = 14676u; obj50.KillEnemyDataIds = list80; reference57 = obj50; obj49.Steps = list79; reference56 = obj49; - ref QuestSequence reference58 = ref span33[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -307530,21 +371380,26 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1042378u, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042378u, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) { StopDistance = 5f }; obj51.Steps = list81; reference58 = obj51; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307558,13 +371413,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; questRoot11.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span34 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference60 = ref span34[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -307572,48 +371430,62 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj53.Steps = list85; reference60 = obj53; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.4443f, 4.030203f, 520.76807f), 957) + index2 = 5; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.4443f, 4.030203f, 520.76807f), 957) { Fly = true }; - ref QuestStep reference62 = ref span35[1]; + num2++; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2012880u, new Vector3(-669.4896f, -36.42328f, 522.6367f), 957) { DisableNavmesh = true, Fly = true }; - num3 = 6; - List> list87 = new List>(num3); - CollectionsMarshal.SetCount(list87, num3); - Span> span36 = CollectionsMarshal.AsSpan(list87); - span36[0] = null; - ref List reference63 = ref span36[1]; - num4 = 2; - List list88 = new List(num4); - CollectionsMarshal.SetCount(list88, num4); - Span span37 = CollectionsMarshal.AsSpan(list88); - span37[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span37[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List> list87 = new List>(index3); + CollectionsMarshal.SetCount(list87, index3); + span7 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span7[num3] = null; + num3++; + ref List reference63 = ref span7[num3]; + index4 = 2; + List list88 = new List(index4); + CollectionsMarshal.SetCount(list88, index4); + span5 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference63 = list88; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj55.RequiredQuestVariables = list87; reference62 = obj55; - ref QuestStep reference64 = ref span35[2]; + num2++; + ref QuestStep reference64 = ref span3[num2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2012881u, new Vector3(-652.4605f, -31.784546f, 554.46704f), 957) { DisableNavmesh = true, @@ -307622,47 +371494,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list89 = new List>(num3); CollectionsMarshal.SetCount(list89, num3); - Span> span38 = CollectionsMarshal.AsSpan(list89); - span38[0] = null; - ref List reference65 = ref span38[1]; + span7 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference65 = ref span7[index3]; num4 = 2; List list90 = new List(num4); CollectionsMarshal.SetCount(list90, num4); - Span span39 = CollectionsMarshal.AsSpan(list90); - span39[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span39[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list90); + index4 = 0; + span5[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference65 = list90; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj56.RequiredQuestVariables = list89; reference64 = obj56; - ref QuestStep reference66 = ref span35[3]; + num2++; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 2012882u, new Vector3(-729.9458f, -38.864807f, 600.5187f), 957) { Fly = true }; - num3 = 6; - List> list91 = new List>(num3); - CollectionsMarshal.SetCount(list91, num3); - Span> span40 = CollectionsMarshal.AsSpan(list91); - span40[0] = null; - ref List reference67 = ref span40[1]; - num4 = 2; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span41 = CollectionsMarshal.AsSpan(list92); - span41[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span41[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list91 = new List>(index3); + CollectionsMarshal.SetCount(list91, index3); + span7 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span7[num3] = null; + num3++; + ref List reference67 = ref span7[num3]; + index4 = 2; + List list92 = new List(index4); + CollectionsMarshal.SetCount(list92, index4); + span5 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference67 = list92; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj57.RequiredQuestVariables = list91; reference66 = obj57; - ref QuestStep reference68 = ref span35[4]; + num2++; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 2012883u, new Vector3(-746.0593f, -38.92578f, 597.0397f), 957) { Fly = true @@ -307670,25 +371560,34 @@ public static class AssemblyQuestLoader num3 = 6; List> list93 = new List>(num3); CollectionsMarshal.SetCount(list93, num3); - Span> span42 = CollectionsMarshal.AsSpan(list93); - span42[0] = null; - ref List reference69 = ref span42[1]; + span7 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference69 = ref span7[index3]; num4 = 2; List list94 = new List(num4); CollectionsMarshal.SetCount(list94, num4); - Span span43 = CollectionsMarshal.AsSpan(list94); - span43[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span43[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list94); + index4 = 0; + span5[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference69 = list94; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj58.RequiredQuestVariables = list93; reference68 = obj58; obj54.Steps = list86; reference61 = obj54; - ref QuestSequence reference70 = ref span34[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -307696,7 +371595,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307710,24 +371611,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot12.Author = list96; - num = 3; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span44 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference71 = ref span44[0]; + index = 3; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj60.Steps = list98; reference71 = obj60; - ref QuestSequence reference72 = ref span44[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -307735,32 +371642,42 @@ public static class AssemblyQuestLoader num2 = 3; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span45 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference73 = ref span45[0]; + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1042384u, new Vector3(562.7068f, 12.048153f, 157.85449f), 957) { Fly = true }; - num3 = 6; - List> list100 = new List>(num3); - CollectionsMarshal.SetCount(list100, num3); - Span> span46 = CollectionsMarshal.AsSpan(list100); - span46[0] = null; - span46[1] = null; - ref List reference74 = ref span46[2]; - num4 = 2; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span47 = CollectionsMarshal.AsSpan(list101); - span47[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span47[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list100 = new List>(index3); + CollectionsMarshal.SetCount(list100, index3); + span7 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference74 = ref span7[num3]; + index4 = 2; + List list101 = new List(index4); + CollectionsMarshal.SetCount(list101, index4); + span5 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference74 = list101; - span46[3] = null; - span46[4] = null; - span46[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj62.RequiredQuestVariables = list100; reference73 = obj62; - ref QuestStep reference75 = ref span45[1]; + index2++; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 1042385u, new Vector3(614.43494f, 38.455334f, 193.77429f), 957) { Fly = true @@ -307768,57 +371685,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list102 = new List>(num3); CollectionsMarshal.SetCount(list102, num3); - Span> span48 = CollectionsMarshal.AsSpan(list102); - span48[0] = null; - span48[1] = null; - ref List reference76 = ref span48[2]; + span7 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + ref List reference76 = ref span7[index3]; num4 = 2; List list103 = new List(num4); CollectionsMarshal.SetCount(list103, num4); - Span span49 = CollectionsMarshal.AsSpan(list103); - span49[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list103); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index4++; + span5[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference76 = list103; - span48[3] = null; - span48[4] = null; - span48[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj63.RequiredQuestVariables = list102; reference75 = obj63; - ref QuestStep reference77 = ref span45[2]; + index2++; + ref QuestStep reference77 = ref span3[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1042386u, new Vector3(607.35486f, 18.607574f, 212.14612f), 957) { Fly = true }; - num3 = 6; - List> list104 = new List>(num3); - CollectionsMarshal.SetCount(list104, num3); - Span> span50 = CollectionsMarshal.AsSpan(list104); - span50[0] = null; - span50[1] = null; - ref List reference78 = ref span50[2]; - num4 = 2; - List list105 = new List(num4); - CollectionsMarshal.SetCount(list105, num4); - Span span51 = CollectionsMarshal.AsSpan(list105); - span51[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span51[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list104 = new List>(index3); + CollectionsMarshal.SetCount(list104, index3); + span7 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference78 = ref span7[num3]; + index4 = 2; + List list105 = new List(index4); + CollectionsMarshal.SetCount(list105, index4); + span5 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span5[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference78 = list105; - span50[3] = null; - span50[4] = null; - span50[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj64.RequiredQuestVariables = list104; reference77 = obj64; obj61.Steps = list99; reference72 = obj61; - ref QuestSequence reference79 = ref span44[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307831,13 +371768,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot13.Author = list107; - num = 3; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span52 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference80 = ref span52[0]; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -307845,19 +371785,23 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj66.Steps = list109; reference80 = obj66; - ref QuestSequence reference81 = ref span52[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span53 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference82 = ref span53[0]; + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1042390u, new Vector3(376.089f, 3.1168795f, -241.77924f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand @@ -307865,36 +371809,50 @@ public static class AssemblyQuestLoader num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span54 = CollectionsMarshal.AsSpan(list111); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj68.CompletionQuestVariablesFlags = list111; reference82 = obj68; - ref QuestStep reference83 = ref span53[1]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1042389u, new Vector3(-416.31195f, 10.9610405f, 11.48999f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span55 = CollectionsMarshal.AsSpan(list112); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span5 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj69.CompletionQuestVariablesFlags = list112; reference83 = obj69; obj67.Steps = list110; reference81 = obj67; - ref QuestSequence reference84 = ref span52[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -307902,7 +371860,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307915,24 +371875,30 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot14.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span56 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference85 = ref span56[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj71.Steps = list116; reference85 = obj71; - ref QuestSequence reference86 = ref span56[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -307940,8 +371906,9 @@ public static class AssemblyQuestLoader num2 = 3; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span57 = CollectionsMarshal.AsSpan(list117); - ref QuestStep reference87 = ref span57[0]; + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2012884u, new Vector3(111.46704f, 5.935669f, -294.36182f), 957) { Fly = true, @@ -307951,44 +371918,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list118 = new List>(num3); CollectionsMarshal.SetCount(list118, num3); - Span> span58 = CollectionsMarshal.AsSpan(list118); - span58[0] = null; - ref List reference88 = ref span58[1]; + span7 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference88 = ref span7[index3]; num4 = 1; List list119 = new List(num4); CollectionsMarshal.SetCount(list119, num4); - CollectionsMarshal.AsSpan(list119)[0] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list119); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference88 = list119; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj73.RequiredQuestVariables = list118; reference87 = obj73; - ref QuestStep reference89 = ref span57[1]; + index2++; + ref QuestStep reference89 = ref span3[index2]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2012885u, new Vector3(108.17114f, 8.224609f, -373.22046f), 957) { Fly = true, ItemId = 2003420u }; - num3 = 6; - List> list120 = new List>(num3); - CollectionsMarshal.SetCount(list120, num3); - Span> span59 = CollectionsMarshal.AsSpan(list120); - span59[0] = null; - ref List reference90 = ref span59[1]; - num4 = 1; - List list121 = new List(num4); - CollectionsMarshal.SetCount(list121, num4); - CollectionsMarshal.AsSpan(list121)[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list120 = new List>(index3); + CollectionsMarshal.SetCount(list120, index3); + span7 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span7[num3] = null; + num3++; + ref List reference90 = ref span7[num3]; + index4 = 1; + List list121 = new List(index4); + CollectionsMarshal.SetCount(list121, index4); + span5 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); reference90 = list121; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj74.RequiredQuestVariables = list120; reference89 = obj74; - ref QuestStep reference91 = ref span57[2]; + index2++; + ref QuestStep reference91 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.UseItem, 2012886u, new Vector3(135.91211f, 6.4850464f, -327.5349f), 957) { Fly = true, @@ -307997,91 +371982,128 @@ public static class AssemblyQuestLoader num3 = 6; List> list122 = new List>(num3); CollectionsMarshal.SetCount(list122, num3); - Span> span60 = CollectionsMarshal.AsSpan(list122); - span60[0] = null; - ref List reference92 = ref span60[1]; + span7 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference92 = ref span7[index3]; num4 = 1; List list123 = new List(num4); CollectionsMarshal.SetCount(list123, num4); - CollectionsMarshal.AsSpan(list123)[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list123); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference92 = list123; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj75.RequiredQuestVariables = list122; reference91 = obj75; obj72.Steps = list117; reference86 = obj72; - ref QuestSequence reference93 = ref span56[2]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span61 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference94 = ref span61[0]; + index2 = 3; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference94 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012884u, new Vector3(111.46704f, 5.935669f, -294.36182f), 957); - num3 = 6; - List> list125 = new List>(num3); - CollectionsMarshal.SetCount(list125, num3); - Span> span62 = CollectionsMarshal.AsSpan(list125); - span62[0] = null; - span62[1] = null; - ref List reference95 = ref span62[2]; - num4 = 1; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - CollectionsMarshal.AsSpan(list126)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list125 = new List>(index3); + CollectionsMarshal.SetCount(list125, index3); + span7 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference95 = ref span7[num3]; + index4 = 1; + List list126 = new List(index4); + CollectionsMarshal.SetCount(list126, index4); + span5 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span5[num4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference95 = list126; - span62[3] = null; - span62[4] = null; - span62[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; questStep5.RequiredQuestVariables = list125; reference94 = questStep5; - ref QuestStep reference96 = ref span61[1]; + num2++; + ref QuestStep reference96 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012885u, new Vector3(108.17114f, 8.224609f, -373.22046f), 957); num3 = 6; List> list127 = new List>(num3); CollectionsMarshal.SetCount(list127, num3); - Span> span63 = CollectionsMarshal.AsSpan(list127); - span63[0] = null; - span63[1] = null; - ref List reference97 = ref span63[2]; + span7 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + ref List reference97 = ref span7[index3]; num4 = 1; List list128 = new List(num4); CollectionsMarshal.SetCount(list128, num4); - CollectionsMarshal.AsSpan(list128)[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list128); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference97 = list128; - span63[3] = null; - span63[4] = null; - span63[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; questStep6.RequiredQuestVariables = list127; reference96 = questStep6; - ref QuestStep reference98 = ref span61[2]; + num2++; + ref QuestStep reference98 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012886u, new Vector3(135.91211f, 6.4850464f, -327.5349f), 957); - num3 = 6; - List> list129 = new List>(num3); - CollectionsMarshal.SetCount(list129, num3); - Span> span64 = CollectionsMarshal.AsSpan(list129); - span64[0] = null; - span64[1] = null; - ref List reference99 = ref span64[2]; - num4 = 1; - List list130 = new List(num4); - CollectionsMarshal.SetCount(list130, num4); - CollectionsMarshal.AsSpan(list130)[0] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list129 = new List>(index3); + CollectionsMarshal.SetCount(list129, index3); + span7 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference99 = ref span7[num3]; + index4 = 1; + List list130 = new List(index4); + CollectionsMarshal.SetCount(list130, index4); + span5 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference99 = list130; - span64[3] = null; - span64[4] = null; - span64[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; questStep7.RequiredQuestVariables = list129; reference98 = questStep7; obj76.Steps = list124; reference93 = obj76; - ref QuestSequence reference100 = ref span56[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -308089,7 +372111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308102,24 +372126,30 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list132); + index = 0; + span[index] = "liza"; questRoot15.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span65 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference101 = ref span65[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + span2 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj78.Steps = list134; reference101 = obj78; - ref QuestSequence reference102 = ref span65[1]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -308127,19 +372157,23 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); obj79.Steps = list135; reference102 = obj79; - ref QuestSequence reference103 = ref span65[2]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span66 = CollectionsMarshal.AsSpan(list136); - ref QuestStep reference104 = ref span66[0]; + index2 = 6; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.44138f, 38.836067f, 375.43958f), 957) { Fly = true, @@ -308150,36 +372184,50 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span67 = CollectionsMarshal.AsSpan(list137); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list137; skipConditions4.StepIf = skipStepConditions4; obj81.SkipConditions = skipConditions4; reference104 = obj81; - ref QuestStep reference105 = ref span66[1]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 2012887u, new Vector3(90.71484f, 38.70359f, 377.7981f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span68 = CollectionsMarshal.AsSpan(list138); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span5 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list138; reference105 = obj82; - ref QuestStep reference106 = ref span66[2]; + num2++; + ref QuestStep reference106 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.42284f, 50.283375f, 165.20433f), 957) { Fly = true, @@ -308190,36 +372238,50 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span69 = CollectionsMarshal.AsSpan(list139); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list139; skipConditions5.StepIf = skipStepConditions5; obj83.SkipConditions = skipConditions5; reference106 = obj83; - ref QuestStep reference107 = ref span66[3]; + num2++; + ref QuestStep reference107 = ref span3[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Action, 2012888u, new Vector3(-74.2962f, 50.095337f, 160.41797f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span70 = CollectionsMarshal.AsSpan(list140); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + span5 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list140; reference107 = obj84; - ref QuestStep reference108 = ref span66[4]; + num2++; + ref QuestStep reference108 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.75089f, 35.536575f, 98.20429f), 957) { Fly = true, @@ -308230,38 +372292,52 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span71 = CollectionsMarshal.AsSpan(list141); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list141; skipConditions6.StepIf = skipStepConditions6; obj85.SkipConditions = skipConditions6; reference108 = obj85; - ref QuestStep reference109 = ref span66[5]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Action, 2012889u, new Vector3(-197.9859f, 36.209595f, 94.102295f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span72 = CollectionsMarshal.AsSpan(list142); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + span5 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list142; reference109 = obj86; obj80.Steps = list136; reference103 = obj80; - ref QuestSequence reference110 = ref span65[3]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -308269,12 +372345,14 @@ public static class AssemblyQuestLoader num2 = 2; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span73 = CollectionsMarshal.AsSpan(list143); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.59158f, 39.9961f, 320.7581f), 957) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.59158f, 39.9961f, 320.7581f), 957) { Fly = true }; - span73[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Mount = false, Comment = "TODO Verify this properly unmounts" @@ -308288,24 +372366,30 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list144); + index = 0; + span[index] = "liza"; questRoot16.Author = list144; - num = 3; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span74 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference111 = ref span74[0]; + index = 3; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + span2 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj88.Steps = list146; reference111 = obj88; - ref QuestSequence reference112 = ref span74[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -308313,7 +372397,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list147)[0]; + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference113 = ref span3[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2012855u, new Vector3(-255.23767f, 69.13855f, -527.8248f), 957) { Fly = true, @@ -308322,20 +372408,25 @@ public static class AssemblyQuestLoader num3 = 1; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = 14677u; + span6 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span6[index3] = 14677u; obj90.KillEnemyDataIds = list148; reference113 = obj90; obj89.Steps = list147; reference112 = obj89; - ref QuestSequence reference114 = ref span74[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308349,13 +372440,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "liza"; questRoot17.Author = list150; - num = 5; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span75 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference115 = ref span75[0]; + index = 5; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -308363,25 +372457,31 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj92.Steps = list152; reference115 = obj92; - ref QuestSequence reference116 = ref span75[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1042469u, new Vector3(-578.5153f, -0.01527307f, -36.514893f), 957) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042469u, new Vector3(-578.5153f, -0.01527307f, -36.514893f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj93.Steps = list153; reference116 = obj93; - ref QuestSequence reference117 = ref span75[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -308389,28 +372489,34 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.UseItem, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) { StopDistance = 4f, ItemId = 2003401u }; obj94.Steps = list154; reference117 = obj94; - ref QuestSequence reference118 = ref span75[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) { StopDistance = 4f }; obj95.Steps = list155; reference118 = obj95; - ref QuestSequence reference119 = ref span75[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -308418,7 +372524,9 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308431,24 +372539,30 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "liza"; questRoot18.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span76 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference120 = ref span76[0]; + index = 3; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj97.Steps = list159; reference120 = obj97; - ref QuestSequence reference121 = ref span76[1]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -308456,63 +372570,87 @@ public static class AssemblyQuestLoader num2 = 3; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span77 = CollectionsMarshal.AsSpan(list160); - ref QuestStep reference122 = ref span77[0]; + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference122 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2012858u, new Vector3(280.78125f, 0.045776367f, 556.7252f), 957) { Fly = true }; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span78 = CollectionsMarshal.AsSpan(list161); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + span5 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list161; reference122 = obj99; - ref QuestStep reference123 = ref span77[1]; + index2++; + ref QuestStep reference123 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012857u, new Vector3(303.36462f, 0.015197754f, 530.44934f), 957); num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span79 = CollectionsMarshal.AsSpan(list162); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list162); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list162; reference123 = questStep8; - ref QuestStep reference124 = ref span77[2]; + index2++; + ref QuestStep reference124 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012856u, new Vector3(281.94092f, 0.015197754f, 510.64307f), 957); - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span80 = CollectionsMarshal.AsSpan(list163); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list163 = new List(index3); + CollectionsMarshal.SetCount(list163, index3); + span5 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list163; reference124 = questStep9; obj98.Steps = list160; reference121 = obj98; - ref QuestSequence reference125 = ref span76[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308525,13 +372663,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot19.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span81 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference126 = ref span81[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -308539,21 +372680,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj101.Steps = list167; reference126 = obj101; - ref QuestSequence reference127 = ref span81[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2012892u, new Vector3(-120.19531f, 41.000854f, 340.41345f), 957); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012892u, new Vector3(-120.19531f, 41.000854f, 340.41345f), 957); obj102.Steps = list168; reference127 = obj102; - ref QuestSequence reference128 = ref span81[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -308561,22 +372708,27 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1042458u, new Vector3(416.5254f, 8.834262f, -344.38086f), 957) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042458u, new Vector3(416.5254f, 8.834262f, -344.38086f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj103.Steps = list169; reference128 = obj103; - ref QuestSequence reference129 = ref span81[3]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308590,13 +372742,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; questRoot20.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span82 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span82[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -308604,18 +372759,23 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj105.Steps = list173; reference130 = obj105; - ref QuestSequence reference131 = ref span82[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.UseItem, 2012893u, new Vector3(267.32275f, 7.156433f, -476.34088f), 957) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2012893u, new Vector3(267.32275f, 7.156433f, -476.34088f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -308623,7 +372783,8 @@ public static class AssemblyQuestLoader }; obj106.Steps = list174; reference131 = obj106; - ref QuestSequence reference132 = ref span82[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -308631,7 +372792,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list175)[0]; + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference133 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2012894u, new Vector3(257.09924f, 6.6071167f, -468.0705f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -308639,20 +372802,25 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 14678u; + span6 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span6[index3] = 14678u; obj108.KillEnemyDataIds = list176; reference133 = obj108; obj107.Steps = list175; reference132 = obj107; - ref QuestSequence reference134 = ref span82[3]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308666,13 +372834,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "liza"; questRoot21.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span83 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference135 = ref span83[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -308680,40 +372851,51 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj110.Steps = list180; reference135 = obj110; - ref QuestSequence reference136 = ref span83[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span84 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference137 = ref span84[0]; + index2 = 6; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference137 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(263.92963f, 7.600955f, 289.10162f), 957) { Fly = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span85 = CollectionsMarshal.AsSpan(list182); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list182 = new List(index3); + CollectionsMarshal.SetCount(list182, index3); + span5 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list182; skipConditions7.StepIf = skipStepConditions7; obj112.SkipConditions = skipConditions7; reference137 = obj112; - ref QuestStep reference138 = ref span84[1]; + num2++; + ref QuestStep reference138 = ref span3[num2]; QuestStep obj113 = new QuestStep(EInteractionType.UseItem, 2012902u, new Vector3(264.88135f, 8.773865f, 287.98352f), 957) { ItemId = 2003405u @@ -308721,37 +372903,51 @@ public static class AssemblyQuestLoader num3 = 6; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span86 = CollectionsMarshal.AsSpan(list183); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj113.CompletionQuestVariablesFlags = list183; reference138 = obj113; - ref QuestStep reference139 = ref span84[2]; + num2++; + ref QuestStep reference139 = ref span3[num2]; QuestStep obj114 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.84723f, 6.94503f, 359.85526f), 957) { Fly = true }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span87 = CollectionsMarshal.AsSpan(list184); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + span5 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list184; skipConditions8.StepIf = skipStepConditions8; obj114.SkipConditions = skipConditions8; reference139 = obj114; - ref QuestStep reference140 = ref span84[3]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj115 = new QuestStep(EInteractionType.UseItem, 2012901u, new Vector3(340.07776f, 8.2855835f, 360.3723f), 957) { ItemId = 2003405u @@ -308759,37 +372955,51 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span88 = CollectionsMarshal.AsSpan(list185); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj115.CompletionQuestVariablesFlags = list185; reference140 = obj115; - ref QuestStep reference141 = ref span84[4]; + num2++; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj116 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(254.98802f, 7.049597f, 373.44046f), 957) { Fly = true }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span89 = CollectionsMarshal.AsSpan(list186); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + span5 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list186; skipConditions9.StepIf = skipStepConditions9; obj116.SkipConditions = skipConditions9; reference141 = obj116; - ref QuestStep reference142 = ref span84[5]; + num2++; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj117 = new QuestStep(EInteractionType.UseItem, 2012900u, new Vector3(254.8103f, 8.377136f, 375.20398f), 957) { ItemId = 2003405u @@ -308797,18 +373007,25 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span90 = CollectionsMarshal.AsSpan(list187); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list187); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj117.CompletionQuestVariablesFlags = list187; reference142 = obj117; obj111.Steps = list181; reference136 = obj111; - ref QuestSequence reference143 = ref span83[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -308816,7 +373033,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308829,24 +373048,30 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list189); + index = 0; + span[index] = "liza"; questRoot22.Author = list189; - num = 4; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span91 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference144 = ref span91[0]; + index = 4; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + span2 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj119.Steps = list191; reference144 = obj119; - ref QuestSequence reference145 = ref span91[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -308854,13 +373079,15 @@ public static class AssemblyQuestLoader num2 = 2; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span92 = CollectionsMarshal.AsSpan(list192); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.61847f, 7.3659906f, 22.413525f), 957) + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.61847f, 7.3659906f, 22.413525f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - span92[1] = new QuestStep(EInteractionType.UseItem, 2012895u, new Vector3(461.8142f, 9.262146f, 24.2771f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2012895u, new Vector3(461.8142f, 9.262146f, 24.2771f), 957) { StopDistance = 5f, ItemId = 2003407u, @@ -308868,18 +373095,22 @@ public static class AssemblyQuestLoader }; obj120.Steps = list192; reference145 = obj120; - ref QuestSequence reference146 = ref span91[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 2012897u, new Vector3(458.39624f, 7.4005737f, 23.788818f), 957); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012897u, new Vector3(458.39624f, 7.4005737f, 23.788818f), 957); obj121.Steps = list193; reference146 = obj121; - ref QuestSequence reference147 = ref span91[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -308887,7 +373118,9 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308901,24 +373134,30 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "liza"; questRoot23.Author = list195; - num = 3; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span93 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference148 = ref span93[0]; + index = 3; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj123.Steps = list197; reference148 = obj123; - ref QuestSequence reference149 = ref span93[1]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -308926,64 +373165,85 @@ public static class AssemblyQuestLoader num2 = 2; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span94 = CollectionsMarshal.AsSpan(list198); - ref QuestStep reference150 = ref span94[0]; + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference150 = ref span3[index2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 2012903u, new Vector3(37.03357f, 22.507019f, -8.133057f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = 14679u; + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + span6 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span6[num3] = 14679u; obj125.KillEnemyDataIds = list199; num3 = 6; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span95 = CollectionsMarshal.AsSpan(list200); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list200; reference150 = obj125; - ref QuestStep reference151 = ref span94[1]; + index2++; + ref QuestStep reference151 = ref span3[index2]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2012904u, new Vector3(116.68567f, 22.262878f, -71.000244f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = 14679u; + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span6 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span6[num3] = 14679u; obj126.KillEnemyDataIds = list201; num3 = 6; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span96 = CollectionsMarshal.AsSpan(list202); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list202; reference151 = obj126; obj124.Steps = list198; reference149 = obj124; - ref QuestSequence reference152 = ref span93[2]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308996,13 +373256,16 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list204); + index = 0; + span[index] = "liza"; questRoot24.Author = list204; - num = 3; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span97 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference153 = ref span97[0]; + index = 3; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span2 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -309010,40 +373273,51 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj128.Steps = list206; reference153 = obj128; - ref QuestSequence reference154 = ref span97[1]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span98 = CollectionsMarshal.AsSpan(list207); - ref QuestStep reference155 = ref span98[0]; + index2 = 4; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + span3 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference155 = ref span3[num2]; QuestStep obj130 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.680695f, 38.981216f, 249.31558f), 957) { Fly = true }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span99 = CollectionsMarshal.AsSpan(list208); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span5 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list208; skipConditions10.StepIf = skipStepConditions10; obj130.SkipConditions = skipConditions10; reference155 = obj130; - ref QuestStep reference156 = ref span98[1]; + num2++; + ref QuestStep reference156 = ref span3[num2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 2012907u, new Vector3(95.140015f, -29.404175f, 183.94751f), 957) { DisableNavmesh = true @@ -309051,33 +373325,47 @@ public static class AssemblyQuestLoader num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span100 = CollectionsMarshal.AsSpan(list209); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj131.CompletionQuestVariablesFlags = list209; reference156 = obj131; - ref QuestStep reference157 = ref span98[2]; + num2++; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2012906u, new Vector3(74.84546f, -35.41626f, 212.05457f), 957) { Fly = true }; - num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span101 = CollectionsMarshal.AsSpan(list210); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span5 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj132.CompletionQuestVariablesFlags = list210; reference157 = obj132; - ref QuestStep reference158 = ref span98[3]; + num2++; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2012905u, new Vector3(132.7992f, -25.558899f, 206.74438f), 957) { Fly = true @@ -309085,18 +373373,25 @@ public static class AssemblyQuestLoader num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span102 = CollectionsMarshal.AsSpan(list211); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list211; reference158 = obj133; obj129.Steps = list207; reference154 = obj129; - ref QuestSequence reference159 = ref span97[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -309104,14 +373399,16 @@ public static class AssemblyQuestLoader num2 = 2; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span103 = CollectionsMarshal.AsSpan(list212); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.10968f, 5.2216215f, 201.52365f), 957) + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.10968f, 5.2216215f, 201.52365f), 957) { DisableNavmesh = true, Mount = true, Fly = true }; - span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -309124,24 +373421,30 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "liza"; questRoot25.Author = list213; - num = 3; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span104 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference160 = ref span104[0]; + index = 3; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj135.Steps = list215; reference160 = obj135; - ref QuestSequence reference161 = ref span104[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -309149,8 +373452,9 @@ public static class AssemblyQuestLoader num2 = 4; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span105 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference162 = ref span105[0]; + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference162 = ref span3[index2]; QuestStep obj137 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.12948f, 89.78411f, -666.6682f), 957) { Fly = true, @@ -309163,21 +373467,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span106 = CollectionsMarshal.AsSpan(list217); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + span5 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list217; skipConditions11.StepIf = skipStepConditions11; obj137.SkipConditions = skipConditions11; reference162 = obj137; - ref QuestStep reference163 = ref span105[1]; + index2++; + ref QuestStep reference163 = ref span3[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Emote, 1042462u, new Vector3(-73.86902f, 89.90596f, -666.0411f), 957) { StopDistance = 7f, @@ -309186,34 +373497,48 @@ public static class AssemblyQuestLoader num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span107 = CollectionsMarshal.AsSpan(list218); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj138.CompletionQuestVariablesFlags = list218; reference163 = obj138; - ref QuestStep reference164 = ref span105[2]; + index2++; + ref QuestStep reference164 = ref span3[index2]; QuestStep obj139 = new QuestStep(EInteractionType.Emote, 1042461u, new Vector3(-85.160645f, 100.062004f, -715.3277f), 957) { Fly = true, Emote = EEmote.Doubt }; - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span108 = CollectionsMarshal.AsSpan(list219); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + span5 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj139.CompletionQuestVariablesFlags = list219; reference164 = obj139; - ref QuestStep reference165 = ref span105[3]; + index2++; + ref QuestStep reference165 = ref span3[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Emote, 1042460u, new Vector3(-143.66376f, 95.4186f, -702.4491f), 957) { Fly = true, @@ -309222,26 +373547,35 @@ public static class AssemblyQuestLoader num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span109 = CollectionsMarshal.AsSpan(list220); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj140.CompletionQuestVariablesFlags = list220; reference165 = obj140; obj136.Steps = list216; reference161 = obj136; - ref QuestSequence reference166 = ref span104[2]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -309255,13 +373589,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; questRoot26.Author = list222; - num = 5; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span110 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference167 = ref span110[0]; + index = 5; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -309269,25 +373606,31 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj142.Steps = list224; reference167 = obj142; - ref QuestSequence reference168 = ref span110[1]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1042466u, new Vector3(-525.2003f, 6.158311f, -574.5785f), 957) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042466u, new Vector3(-525.2003f, 6.158311f, -574.5785f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj143.Steps = list225; reference168 = obj143; - ref QuestSequence reference169 = ref span110[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -309295,21 +373638,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2012977u, new Vector3(-526.66516f, 6.1188354f, -579.52246f), 957); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012977u, new Vector3(-526.66516f, 6.1188354f, -579.52246f), 957); obj144.Steps = list226; reference169 = obj144; - ref QuestSequence reference170 = ref span110[3]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1042467u, new Vector3(-582.5437f, 9.775031f, -553.64307f), 957); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042467u, new Vector3(-582.5437f, 9.775031f, -553.64307f), 957); obj145.Steps = list227; reference170 = obj145; - ref QuestSequence reference171 = ref span110[4]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -309317,7 +373666,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -309331,24 +373682,30 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "liza"; questRoot27.Author = list229; - num = 5; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span111 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference172 = ref span111[0]; + index = 5; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj147.Steps = list231; reference172 = obj147; - ref QuestSequence reference173 = ref span111[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -309356,67 +373713,92 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj148.Steps = list232; reference173 = obj148; - ref QuestSequence reference174 = ref span111[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span112 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference175 = ref span112[0]; + index2 = 3; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + ref QuestStep reference175 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012910u, new Vector3(-790.15796f, -0.25946045f, -110.09387f), 957); - num3 = 6; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - Span span113 = CollectionsMarshal.AsSpan(list234); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + span5 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list234; reference175 = questStep10; - ref QuestStep reference176 = ref span112[1]; + num2++; + ref QuestStep reference176 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012911u, new Vector3(-843.0457f, -0.22894287f, -71.03082f), 957); num3 = 6; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - Span span114 = CollectionsMarshal.AsSpan(list235); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list235); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list235; reference176 = questStep11; - ref QuestStep reference177 = ref span112[2]; + num2++; + ref QuestStep reference177 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2012909u, new Vector3(-856.4126f, -0.25946045f, -159.83832f), 957); - num3 = 6; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - Span span115 = CollectionsMarshal.AsSpan(list236); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + span5 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list236; reference177 = questStep12; obj149.Steps = list233; reference174 = obj149; - ref QuestSequence reference178 = ref span111[3]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -309424,21 +373806,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) { Fly = true }; obj150.Steps = list237; reference178 = obj150; - ref QuestSequence reference179 = ref span111[4]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -309451,13 +373838,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list239); + index = 0; + span[index] = "liza"; questRoot28.Author = list239; - num = 5; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span116 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference180 = ref span116[0]; + index = 5; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + span2 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -309465,25 +373855,31 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj152.Steps = list241; reference180 = obj152; - ref QuestSequence reference181 = ref span116[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj153.Steps = list242; reference181 = obj153; - ref QuestSequence reference182 = ref span116[2]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 @@ -309491,8 +373887,9 @@ public static class AssemblyQuestLoader num2 = 3; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span117 = CollectionsMarshal.AsSpan(list243); - ref QuestStep reference183 = ref span117[0]; + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + ref QuestStep reference183 = ref span3[index2]; QuestStep obj155 = new QuestStep(EInteractionType.Say, 1042472u, new Vector3(352.5597f, 20.552443f, 6.362976f), 957) { Fly = true, @@ -309504,23 +373901,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list244 = new List>(num3); CollectionsMarshal.SetCount(list244, num3); - Span> span118 = CollectionsMarshal.AsSpan(list244); - span118[0] = null; - ref List reference184 = ref span118[1]; + span7 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference184 = ref span7[index3]; num4 = 1; List list245 = new List(num4); CollectionsMarshal.SetCount(list245, num4); - CollectionsMarshal.AsSpan(list245)[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list245); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference184 = list245; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj155.RequiredQuestVariables = list244; - num3 = 1; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - CollectionsMarshal.AsSpan(list246)[0] = new DialogueChoice + index3 = 1; + List list246 = new List(index3); + CollectionsMarshal.SetCount(list246, index3); + span4 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q1_000_000"), @@ -309528,7 +373935,8 @@ public static class AssemblyQuestLoader }; obj155.DialogueChoices = list246; reference183 = obj155; - ref QuestStep reference185 = ref span117[1]; + index2++; + ref QuestStep reference185 = ref span3[index2]; QuestStep obj156 = new QuestStep(EInteractionType.Say, 1042387u, new Vector3(398.94702f, 6.591665f, 50.492065f), 957) { Fly = true, @@ -309540,23 +373948,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list247 = new List>(num3); CollectionsMarshal.SetCount(list247, num3); - Span> span119 = CollectionsMarshal.AsSpan(list247); - span119[0] = null; - ref List reference186 = ref span119[1]; - num4 = 1; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - CollectionsMarshal.AsSpan(list248)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference186 = ref span7[index3]; + index4 = 1; + List list248 = new List(index4); + CollectionsMarshal.SetCount(list248, index4); + span5 = CollectionsMarshal.AsSpan(list248); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference186 = list248; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj156.RequiredQuestVariables = list247; - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = new DialogueChoice + index3 = 1; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + span4 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q2_000_000"), @@ -309564,7 +373982,8 @@ public static class AssemblyQuestLoader }; obj156.DialogueChoices = list249; reference185 = obj156; - ref QuestStep reference187 = ref span117[2]; + index2++; + ref QuestStep reference187 = ref span3[index2]; QuestStep obj157 = new QuestStep(EInteractionType.Say, 1042388u, new Vector3(408.95703f, 7.8583245f, 5.0201416f), 957) { Fly = true, @@ -309576,23 +373995,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list250 = new List>(num3); CollectionsMarshal.SetCount(list250, num3); - Span> span120 = CollectionsMarshal.AsSpan(list250); - span120[0] = null; - ref List reference188 = ref span120[1]; + span7 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span7[index3] = null; + index3++; + ref List reference188 = ref span7[index3]; num4 = 1; List list251 = new List(num4); CollectionsMarshal.SetCount(list251, num4); - CollectionsMarshal.AsSpan(list251)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list251); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference188 = list251; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; obj157.RequiredQuestVariables = list250; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice + index3 = 1; + List list252 = new List(index3); + CollectionsMarshal.SetCount(list252, index3); + span4 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q3_000_000"), @@ -309602,21 +374031,25 @@ public static class AssemblyQuestLoader reference187 = obj157; obj154.Steps = list243; reference182 = obj154; - ref QuestSequence reference189 = ref span116[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) { Fly = true }; obj158.Steps = list253; reference189 = obj158; - ref QuestSequence reference190 = ref span116[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -309624,7 +374057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -309638,24 +374073,30 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list255); + index = 0; + span[index] = "liza"; questRoot29.Author = list255; - num = 3; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span121 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference191 = ref span121[0]; + index = 3; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + span2 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj160.Steps = list257; reference191 = obj160; - ref QuestSequence reference192 = ref span121[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -309663,8 +374104,9 @@ public static class AssemblyQuestLoader num2 = 3; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span122 = CollectionsMarshal.AsSpan(list258); - ref QuestStep reference193 = ref span122[0]; + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + ref QuestStep reference193 = ref span3[index2]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, 2012915u, new Vector3(-383.505f, 1.0527954f, 362.99683f), 957) { Fly = true, @@ -309673,21 +374115,30 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 14680u; + span6 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span6[index3] = 14680u; obj162.KillEnemyDataIds = list259; - num3 = 6; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span123 = CollectionsMarshal.AsSpan(list260); - span123[0] = null; - span123[1] = null; - span123[2] = null; - span123[3] = null; - span123[4] = null; - span123[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list260 = new List(index3); + CollectionsMarshal.SetCount(list260, index3); + span5 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list260; reference193 = obj162; - ref QuestStep reference194 = ref span122[1]; + index2++; + ref QuestStep reference194 = ref span3[index2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 2012914u, new Vector3(-399.83215f, 1.6326294f, 291.73718f), 957) { Fly = true @@ -309695,49 +374146,67 @@ public static class AssemblyQuestLoader num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span124 = CollectionsMarshal.AsSpan(list261); - span124[0] = null; - span124[1] = null; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj163.CompletionQuestVariablesFlags = list261; reference194 = obj163; - ref QuestStep reference195 = ref span122[2]; + index2++; + ref QuestStep reference195 = ref span3[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2012913u, new Vector3(-444.0528f, 0.38146973f, 249.53076f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 14680u; + index3 = 1; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + span6 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span6[num3] = 14680u; obj164.KillEnemyDataIds = list262; num3 = 6; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - Span span125 = CollectionsMarshal.AsSpan(list263); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj164.CompletionQuestVariablesFlags = list263; reference195 = obj164; obj161.Steps = list258; reference192 = obj161; - ref QuestSequence reference196 = ref span121[2]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -309750,13 +374219,16 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list265); + index = 0; + span[index] = "liza"; questRoot30.Author = list265; - num = 4; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span126 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference197 = ref span126[0]; + index = 4; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + span2 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -309764,7 +374236,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list267)[0]; + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference198 = ref span3[index2]; QuestStep obj167 = new QuestStep(EInteractionType.AcceptQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -309781,10 +374255,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + span4 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBZ001_04579_Q1_000_000"), @@ -309794,21 +374270,25 @@ public static class AssemblyQuestLoader reference198 = obj167; obj166.Steps = list267; reference197 = obj166; - ref QuestSequence reference199 = ref span126[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1042736u, new Vector3(-396.17004f, 22.142666f, 463.00452f), 958) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042736u, new Vector3(-396.17004f, 22.142666f, 463.00452f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj168.Steps = list269; reference199 = obj168; - ref QuestSequence reference200 = ref span126[2]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -309816,18 +374296,23 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1042731u, new Vector3(-416.64764f, 21.708784f, 409.90308f), 958); + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042731u, new Vector3(-416.64764f, 21.708784f, 409.90308f), 958); obj169.Steps = list270; reference200 = obj169; - ref QuestSequence reference201 = ref span126[3]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958) { NextQuestId = new QuestId(4580) }; @@ -309840,13 +374325,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list272); + index = 0; + span[index] = "liza"; questRoot31.Author = list272; - num = 7; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span127 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference202 = ref span127[0]; + index = 7; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + span2 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -309854,24 +374342,30 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958); + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958); obj171.Steps = list274; reference202 = obj171; - ref QuestSequence reference203 = ref span127[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1042737u, new Vector3(453.57434f, 11.500888f, 176.28735f), 958) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042737u, new Vector3(453.57434f, 11.500888f, 176.28735f), 958) { Fly = true }; obj172.Steps = list275; reference203 = obj172; - ref QuestSequence reference204 = ref span127[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 @@ -309879,8 +374373,9 @@ public static class AssemblyQuestLoader num2 = 3; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span128 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference205 = ref span128[0]; + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference205 = ref span3[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1042740u, new Vector3(580.5293f, 32.31866f, 143.05322f), 958) { Fly = true @@ -309888,60 +374383,84 @@ public static class AssemblyQuestLoader num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span129 = CollectionsMarshal.AsSpan(list277); - span129[0] = null; - span129[1] = null; - span129[2] = null; - span129[3] = null; - span129[4] = null; - span129[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj174.CompletionQuestVariablesFlags = list277; reference205 = obj174; - ref QuestStep reference206 = ref span128[1]; + index2++; + ref QuestStep reference206 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1042739u, new Vector3(586.694f, 32.318665f, 140.7644f), 958); - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span130 = CollectionsMarshal.AsSpan(list278); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + span5 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list278; reference206 = questStep13; - ref QuestStep reference207 = ref span128[2]; + index2++; + ref QuestStep reference207 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1042741u, new Vector3(578.20996f, 38.372063f, 215.89978f), 958); num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span131 = CollectionsMarshal.AsSpan(list279); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list279; reference207 = questStep14; obj173.Steps = list276; reference204 = obj173; - ref QuestSequence reference208 = ref span127[3]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1042738u, new Vector3(574.21216f, 38.372063f, 211.99353f), 958) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042738u, new Vector3(574.21216f, 38.372063f, 211.99353f), 958) { StopDistance = 5f }; obj175.Steps = list280; reference208 = obj175; - ref QuestSequence reference209 = ref span127[4]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -309949,33 +374468,41 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1042744u, new Vector3(578.912f, 32.318665f, 140.7644f), 958); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042744u, new Vector3(578.912f, 32.318665f, 140.7644f), 958); obj176.Steps = list281; reference209 = obj176; - ref QuestSequence reference210 = ref span127[5]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - ref QuestStep reference211 = ref CollectionsMarshal.AsSpan(list282)[0]; + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + ref QuestStep reference211 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, null, new Vector3(439.23065f, 3.0308545f, 65.572105f), 958) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = 14686u; + index3 = 1; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + span6 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span6[num3] = 14686u; obj178.KillEnemyDataIds = list283; reference211 = obj178; obj177.Steps = list282; reference210 = obj177; - ref QuestSequence reference212 = ref span127[6]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -309983,12 +374510,14 @@ public static class AssemblyQuestLoader num2 = 2; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span132 = CollectionsMarshal.AsSpan(list284); - span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(576.40137f, 38.372063f, 213.64067f), 958) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(576.40137f, 38.372063f, 213.64067f), 958) { Fly = true }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958) { StopDistance = 5f, NextQuestId = new QuestId(4581) @@ -310002,24 +374531,30 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list285); + index = 0; + span[index] = "liza"; questRoot32.Author = list285; - num = 8; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span133 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference213 = ref span133[0]; + index = 8; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + span2 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958); + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958); obj180.Steps = list287; reference213 = obj180; - ref QuestSequence reference214 = ref span133[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -310027,27 +374562,33 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1042751u, new Vector3(-344.22827f, 23.742596f, 421.68298f), 958) + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042751u, new Vector3(-344.22827f, 23.742596f, 421.68298f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj181.Steps = list288; reference214 = obj181; - ref QuestSequence reference215 = ref span133[2]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1042753u, new Vector3(76.645996f, 10.49723f, -75.51697f), 958) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042753u, new Vector3(76.645996f, 10.49723f, -75.51697f), 958) { Fly = true }; obj182.Steps = list289; reference215 = obj182; - ref QuestSequence reference216 = ref span133[3]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -310055,24 +374596,30 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1042752u, new Vector3(75.21167f, 10.494146f, -75.05914f), 958); + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042752u, new Vector3(75.21167f, 10.494146f, -75.05914f), 958); obj183.Steps = list290; reference216 = obj183; - ref QuestSequence reference217 = ref span133[4]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 2012954u, new Vector3(79.9115f, 10.482849f, -220.35559f), 958) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span3 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012954u, new Vector3(79.9115f, 10.482849f, -220.35559f), 958) { Fly = true }; obj184.Steps = list291; reference217 = obj184; - ref QuestSequence reference218 = ref span133[5]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -310080,21 +374627,26 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 2012955u, new Vector3(62.394165f, 10.452393f, -316.64f), 958) + span3 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012955u, new Vector3(62.394165f, 10.452393f, -316.64f), 958) { Fly = true }; obj185.Steps = list292; reference218 = obj185; - ref QuestSequence reference219 = ref span133[6]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list293)[0]; + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + ref QuestStep reference220 = ref span3[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, null, new Vector3(-31.511757f, 23.164677f, -415.98322f), 958) { StopDistance = 0.5f, @@ -310104,14 +374656,17 @@ public static class AssemblyQuestLoader num3 = 2; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span134 = CollectionsMarshal.AsSpan(list294); - span134[0] = 14687u; - span134[1] = 14688u; + span6 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span6[index3] = 14687u; + index3++; + span6[index3] = 14688u; obj187.KillEnemyDataIds = list294; reference220 = obj187; obj186.Steps = list293; reference219 = obj186; - ref QuestSequence reference221 = ref span133[7]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -310119,7 +374674,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042759u, new Vector3(-28.427612f, 23.164675f, -414.0536f), 958) + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042759u, new Vector3(-28.427612f, 23.164675f, -414.0536f), 958) { NextQuestId = new QuestId(4582) }; @@ -310132,27 +374689,33 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "liza"; questRoot33.Author = list296; - num = 6; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span135 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference222 = ref span135[0]; + index = 6; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042765u, new Vector3(-29.404175f, 23.164677f, -414.87756f), 958) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042765u, new Vector3(-29.404175f, 23.164677f, -414.87756f), 958) { StopDistance = 5f }; obj189.Steps = list298; reference222 = obj189; - ref QuestSequence reference223 = ref span135[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -310160,42 +374723,51 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1042766u, new Vector3(-416.25085f, 21.684832f, 408.1941f), 958) + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042766u, new Vector3(-416.25085f, 21.684832f, 408.1941f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj190.Steps = list299; reference223 = obj190; - ref QuestSequence reference224 = ref span135[2]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list300)[0]; + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference225 = ref span3[num2]; QuestStep obj192 = new QuestStep(EInteractionType.SinglePlayerDuty, 1042769u, new Vector3(-336.99554f, 10.799999f, -602.1057f), 958) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 2; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - Span span136 = CollectionsMarshal.AsSpan(list301); - span136[0] = "(phase 1) AI doesn't move automatically"; - span136[1] = "(phase 2) AI doesn't target enemy"; + index3 = 2; + List list301 = new List(index3); + CollectionsMarshal.SetCount(list301, index3); + span = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span[num3] = "(phase 1) AI doesn't move automatically"; + num3++; + span[num3] = "(phase 2) AI doesn't target enemy"; singlePlayerDutyOptions.Notes = list301; obj192.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference225 = obj192; obj191.Steps = list300; reference224 = obj191; - span135[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference226 = ref span135[4]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -310203,21 +374775,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1042770u, new Vector3(-415.21326f, 21.765957f, 409.99463f), 958) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042770u, new Vector3(-415.21326f, 21.765957f, 409.99463f), 958) { StopDistance = 5f }; obj193.Steps = list302; reference226 = obj193; - ref QuestSequence reference227 = ref span135[5]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -310235,13 +374812,16 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "pot0to"; questRoot34.Author = list304; - num = 6; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span137 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference228 = ref span137[0]; + index = 6; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + span2 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -310249,7 +374829,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -310262,16 +374844,18 @@ public static class AssemblyQuestLoader }; obj195.Steps = list306; reference228 = obj195; - ref QuestSequence reference229 = ref span137[1]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span138 = CollectionsMarshal.AsSpan(list307); - span138[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-265.16965f, 8.184065f, 183.24426f), 129) + index2 = 7; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-265.16965f, 8.184065f, 183.24426f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -310280,18 +374864,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span138[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-280.7175f, 10.35225f, 197.09795f), 129); - span138[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-279.7466f, 11.3272505f, 188.46881f), 129); - span138[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.0631f, 11.852187f, 188.60892f), 129) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-280.7175f, 10.35225f, 197.09795f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-279.7466f, 11.3272505f, 188.46881f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.0631f, 11.852187f, 188.60892f), 129) { DisableNavmesh = true }; - span138[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-266.19342f, 11.852209f, 190.92015f), 129); - span138[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-278.93945f, 14.847251f, 194.7018f), 129); - span138[6] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-266.19342f, 11.852209f, 190.92015f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-278.93945f, 14.847251f, 194.7018f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); obj196.Steps = list307; reference229 = obj196; - ref QuestSequence reference230 = ref span137[2]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -310299,24 +374890,30 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj197.Steps = list308; reference230 = obj197; - ref QuestSequence reference231 = ref span137[3]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 2012878u, new Vector3(129.65588f, -13.565308f, 156.35913f), 132); + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012878u, new Vector3(129.65588f, -13.565308f, 156.35913f), 132); obj198.Steps = list309; reference231 = obj198; - ref QuestSequence reference232 = ref span137[4]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 4 @@ -310324,7 +374921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1042600u, new Vector3(-20.431885f, 14.000006f, 5.2948f), 131) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042600u, new Vector3(-20.431885f, 14.000006f, 5.2948f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -310335,15 +374934,18 @@ public static class AssemblyQuestLoader }; obj199.Steps = list310; reference232 = obj199; - ref QuestSequence reference233 = ref span137[5]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4650) @@ -310357,13 +374959,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "liza"; questRoot35.Author = list312; - num = 8; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span139 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference234 = ref span139[0]; + index = 8; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -310371,19 +374976,23 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042796u, new Vector3(-12.100403f, -16.147f, 153.76514f), 962); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042796u, new Vector3(-12.100403f, -16.147f, 153.76514f), 962); obj201.Steps = list314; reference234 = obj201; - ref QuestSequence reference235 = ref span139[1]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span140 = CollectionsMarshal.AsSpan(list315); - span140[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + index2 = 3; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -310395,14 +375004,17 @@ public static class AssemblyQuestLoader } } }; - span140[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span140[2] = new QuestStep(EInteractionType.Interact, 1042797u, new Vector3(-393.20978f, -220.20282f, 283.16162f), 956); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042797u, new Vector3(-393.20978f, -220.20282f, 283.16162f), 956); obj202.Steps = list315; reference235 = obj202; - ref QuestSequence reference236 = ref span139[2]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 2 @@ -310410,12 +375022,16 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list316)[0]; + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference237 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1042799u, new Vector3(-395.37653f, -220.20282f, 285.66406f), 956); num3 = 1; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list317); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR601_04586_Q2_000_107") @@ -310424,18 +375040,22 @@ public static class AssemblyQuestLoader reference237 = questStep15; obj203.Steps = list316; reference236 = obj203; - ref QuestSequence reference238 = ref span139[3]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(43.289795f, -1.4816303E-06f, -55.680176f), 963); + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span3 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(43.289795f, -1.4816303E-06f, -55.680176f), 963); obj204.Steps = list318; reference238 = obj204; - ref QuestSequence reference239 = ref span139[4]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -310443,8 +375063,9 @@ public static class AssemblyQuestLoader num2 = 3; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span141 = CollectionsMarshal.AsSpan(list319); - ref QuestStep reference240 = ref span141[0]; + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + ref QuestStep reference240 = ref span3[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1042887u, new Vector3(108.72046f, 26.999989f, 14.90802f), 963) { AethernetShortcut = new AethernetShortcut @@ -310453,57 +375074,80 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span142 = CollectionsMarshal.AsSpan(list320); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span5 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj206.CompletionQuestVariablesFlags = list320; reference240 = obj206; - ref QuestStep reference241 = ref span141[1]; + index2++; + ref QuestStep reference241 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1039539u, new Vector3(87.662964f, 27.06f, 28.030762f), 963); num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span143 = CollectionsMarshal.AsSpan(list321); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list321; reference241 = questStep16; - ref QuestStep reference242 = ref span141[2]; + index2++; + ref QuestStep reference242 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1042804u, new Vector3(87.35791f, 26.99999f, 56.687256f), 963); - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span144 = CollectionsMarshal.AsSpan(list322); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + span5 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list322; reference242 = questStep17; obj205.Steps = list319; reference239 = obj205; - ref QuestSequence reference243 = ref span139[5]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - ref QuestStep reference244 = ref CollectionsMarshal.AsSpan(list323)[0]; + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + ref QuestStep reference244 = ref span3[num2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(116.01684f, 26.99999f, 45.689087f), 963) { StopDistance = 0.25f @@ -310511,7 +375155,9 @@ public static class AssemblyQuestLoader num3 = 1; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - CollectionsMarshal.AsSpan(list324)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR601_04586_Q5_000_225"), @@ -310521,7 +375167,8 @@ public static class AssemblyQuestLoader reference244 = obj208; obj207.Steps = list323; reference243 = obj207; - ref QuestSequence reference245 = ref span139[6]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 6 @@ -310529,7 +375176,9 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1039541u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039541u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) { AethernetShortcut = new AethernetShortcut { @@ -310539,15 +375188,18 @@ public static class AssemblyQuestLoader }; obj209.Steps = list325; reference245 = obj209; - ref QuestSequence reference246 = ref span139[7]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042805u, new Vector3(-57.480774f, 14f, 106.82837f), 963) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042805u, new Vector3(-57.480774f, 14f, 106.82837f), 963) { StopDistance = 4f, NextQuestId = new QuestId(4587) @@ -310561,13 +375213,16 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list327); + index = 0; + span[index] = "liza"; questRoot36.Author = list327; - num = 12; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - Span span145 = CollectionsMarshal.AsSpan(list328); - ref QuestSequence reference247 = ref span145[0]; + index = 12; + List list328 = new List(index); + CollectionsMarshal.SetCount(list328, index); + span2 = CollectionsMarshal.AsSpan(list328); + num = 0; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -310575,24 +375230,30 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042807u, new Vector3(-59.06775f, 13.999993f, 114.67151f), 963) + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042807u, new Vector3(-59.06775f, 13.999993f, 114.67151f), 963) { StopDistance = 6f }; obj211.Steps = list329; reference247 = obj211; - ref QuestSequence reference248 = ref span145[1]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-378.43903f, 22f, 494.9873f), 958); + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-378.43903f, 22f, 494.9873f), 958); obj212.Steps = list330; reference248 = obj212; - ref QuestSequence reference249 = ref span145[2]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -310600,56 +375261,75 @@ public static class AssemblyQuestLoader num2 = 3; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span146 = CollectionsMarshal.AsSpan(list331); - ref QuestStep reference250 = ref span146[0]; + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + ref QuestStep reference250 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1042811u, new Vector3(-323.23187f, 22f, 500.35852f), 958); - num3 = 6; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - Span span147 = CollectionsMarshal.AsSpan(list332); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + span5 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list332; reference250 = questStep18; - span146[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.7818f, 25.227219f, 423.6428f), 958) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.7818f, 25.227219f, 423.6428f), 958) { Fly = true }; - ref QuestStep reference251 = ref span146[2]; + index2++; + ref QuestStep reference251 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1042810u, new Vector3(-276.41718f, 25.227219f, 425.4673f), 958); num3 = 6; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - Span span148 = CollectionsMarshal.AsSpan(list333); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list333; reference251 = questStep19; obj213.Steps = list331; reference249 = obj213; - ref QuestSequence reference252 = ref span145[3]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-331.9679f, 22.585815f, 430.56573f), 958) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-331.9679f, 22.585815f, 430.56573f), 958) { Fly = true }; obj214.Steps = list334; reference252 = obj214; - ref QuestSequence reference253 = ref span145[4]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 @@ -310657,24 +375337,30 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1042829u, new Vector3(-330.86145f, 22.310896f, 431.4182f), 958); + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042829u, new Vector3(-330.86145f, 22.310896f, 431.4182f), 958); obj215.Steps = list335; reference253 = obj215; - ref QuestSequence reference254 = ref span145[5]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1042813u, new Vector3(591.30237f, 34.877754f, 191.30237f), 958) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042813u, new Vector3(591.30237f, 34.877754f, 191.30237f), 958) { Fly = true }; obj216.Steps = list336; reference254 = obj216; - ref QuestSequence reference255 = ref span145[6]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 6 @@ -310682,24 +375368,30 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1043126u, new Vector3(605.9509f, 34.7239f, 203.32642f), 958) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043126u, new Vector3(605.9509f, 34.7239f, 203.32642f), 958) { StopDistance = 5f }; obj217.Steps = list337; reference255 = obj217; - ref QuestSequence reference256 = ref span145[7]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1042816u, new Vector3(31.967651f, -132.9464f, -563.5615f), 959); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042816u, new Vector3(31.967651f, -132.9464f, -563.5615f), 959); obj218.Steps = list338; reference256 = obj218; - ref QuestSequence reference257 = ref span145[8]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 8 @@ -310707,15 +375399,19 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - ref QuestStep reference258 = ref CollectionsMarshal.AsSpan(list339)[0]; + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + ref QuestStep reference258 = ref span3[index2]; QuestStep obj220 = new QuestStep(EInteractionType.Interact, 1042818u, new Vector3(-1.6327515f, -28.024765f, -216.23566f), 959) { Fly = true }; - num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + index3 = 1; + List list340 = new List(index3); + CollectionsMarshal.SetCount(list340, index3); + span4 = CollectionsMarshal.AsSpan(list340); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR602_04587_Q4_000_294"), @@ -310725,21 +375421,25 @@ public static class AssemblyQuestLoader reference258 = obj220; obj219.Steps = list339; reference257 = obj219; - ref QuestSequence reference259 = ref span145[9]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1038930u, new Vector3(-415.39636f, 136.98077f, 575.7992f), 959) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1038930u, new Vector3(-415.39636f, 136.98077f, 575.7992f), 959) { Fly = true }; obj221.Steps = list341; reference259 = obj221; - ref QuestSequence reference260 = ref span145[10]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 10 @@ -310747,8 +375447,9 @@ public static class AssemblyQuestLoader num2 = 3; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span149 = CollectionsMarshal.AsSpan(list342); - span149[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -310760,22 +375461,27 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span149[2] = new QuestStep(EInteractionType.Interact, 1042800u, new Vector3(-393.0572f, -220.20284f, 284.71802f), 956); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042800u, new Vector3(-393.0572f, -220.20284f, 284.71802f), 956); obj222.Steps = list342; reference260 = obj222; - ref QuestSequence reference261 = ref span145[11]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042822u, new Vector3(111.039795f, -10.587426f, 280.38452f), 962); + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042822u, new Vector3(111.039795f, -10.587426f, 280.38452f), 962); obj223.Steps = list343; reference261 = obj223; questRoot36.QuestSequence = list328; @@ -310785,13 +375491,16 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "JerryWester"; questRoot37.Author = list344; - num = 5; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span150 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference262 = ref span150[0]; + index = 5; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -310799,36 +375508,45 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); + span3 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); obj224.Steps = list346; reference262 = obj224; - ref QuestSequence reference263 = ref span150[1]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - ref QuestStep reference264 = ref CollectionsMarshal.AsSpan(list347)[0]; + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + ref QuestStep reference264 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.SinglePlayerDuty, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); num3 = 2; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - Span span151 = CollectionsMarshal.AsSpan(list348); - span151[0] = "AI doesn't move after starting the instance, so enemies won't be triggered"; - span151[1] = "(First Barrier) If the player is too far south, after being stunned by Vishap's roar, AI doesn't move out of the AOE and dies to the Cauterize"; + span = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span[index3] = "AI doesn't move after starting the instance, so enemies won't be triggered"; + index3++; + span[index3] = "(First Barrier) If the player is too far south, after being stunned by Vishap's roar, AI doesn't move out of the AOE and dies to the Cauterize"; singlePlayerDutyOptions2.Notes = list348; questStep20.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference264 = questStep20; obj225.Steps = list347; reference263 = obj225; - span150[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference265 = ref span150[3]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 3 @@ -310836,28 +375554,34 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1010978u, new Vector3(-157.57996f, 304.1538f, -314.53424f), 155); + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1010978u, new Vector3(-157.57996f, 304.1538f, -314.53424f), 155); obj226.Steps = list349; reference265 = obj226; - ref QuestSequence reference266 = ref span150[4]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span152 = CollectionsMarshal.AsSpan(list350); - span152[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span152[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span152[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj227.Steps = list350; reference266 = obj227; questRoot37.QuestSequence = list345; @@ -310867,13 +375591,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list351); + index = 0; + span[index] = "liza"; questRoot38.Author = list351; - num = 7; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span153 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference267 = ref span153[0]; + index = 7; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + span2 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -310881,24 +375608,30 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj228.Steps = list353; reference267 = obj228; - ref QuestSequence reference268 = ref span153[1]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1039655u, new Vector3(-478.29407f, 4.851227f, 22.507019f), 957) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039655u, new Vector3(-478.29407f, 4.851227f, 22.507019f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj229.Steps = list354; reference268 = obj229; - ref QuestSequence reference269 = ref span153[2]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -310906,25 +375639,31 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { StopDistance = 5f, TargetTerritoryId = (ushort)1056 }; obj230.Steps = list355; reference269 = obj230; - ref QuestSequence reference270 = ref span153[3]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1039663u, new Vector3(110.82617f, -350f, -81.9563f), 1056); + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + span3 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039663u, new Vector3(110.82617f, -350f, -81.9563f), 1056); obj231.Steps = list356; reference270 = obj231; - ref QuestSequence reference271 = ref span153[4]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 4 @@ -310932,34 +375671,42 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - ref QuestStep reference272 = ref CollectionsMarshal.AsSpan(list357)[0]; + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + ref QuestStep reference272 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Duty, null, null, 1056); DutyOptions obj233 = new DutyOptions { ContentFinderConditionId = 869u }; - num3 = 1; - List list358 = new List(num3); - CollectionsMarshal.SetCount(list358, num3); - CollectionsMarshal.AsSpan(list358)[0] = "No VBM module"; + index3 = 1; + List list358 = new List(index3); + CollectionsMarshal.SetCount(list358, index3); + span = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span[num3] = "No VBM module"; obj233.Notes = list358; questStep21.DutyOptions = obj233; reference272 = questStep21; obj232.Steps = list357; reference271 = obj232; - span153[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference273 = ref span153[6]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042063u, new Vector3(-88.51758f, 376.4496f, -158.31238f), 1089) + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + span3 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042063u, new Vector3(-88.51758f, 376.4496f, -158.31238f), 1089) { StopDistance = 7f }; @@ -310972,13 +375719,16 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list360); + index = 0; + span[index] = "liza"; questRoot39.Author = list360; - num = 5; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span154 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference274 = ref span154[0]; + index = 5; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + span2 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 0 @@ -310986,80 +375736,112 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042064u, new Vector3(-83.72626f, 376.38647f, -158.0072f), 1089) + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042064u, new Vector3(-83.72626f, 376.38647f, -158.0072f), 1089) { StopDistance = 7f }; obj235.Steps = list362; reference274 = obj235; - ref QuestSequence reference275 = ref span154[1]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - Span span155 = CollectionsMarshal.AsSpan(list363); - ref QuestStep reference276 = ref span155[0]; + index2 = 4; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + ref QuestStep reference276 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1042066u, new Vector3(-48.69159f, 367.85046f, -109.33093f), 1089); num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span156 = CollectionsMarshal.AsSpan(list364); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list364; reference276 = questStep22; - ref QuestStep reference277 = ref span155[1]; + num2++; + ref QuestStep reference277 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1043790u, new Vector3(-10.360962f, 359.19916f, -106.70636f), 1089); - num3 = 6; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span157 = CollectionsMarshal.AsSpan(list365); - span157[0] = null; - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + span5 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list365; reference277 = questStep23; - ref QuestStep reference278 = ref span155[2]; + num2++; + ref QuestStep reference278 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1043791u, new Vector3(-9.87262f, 350.62988f, -61.539734f), 1089); num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span158 = CollectionsMarshal.AsSpan(list366); - span158[0] = null; - span158[1] = null; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list366; reference278 = questStep24; - ref QuestStep reference279 = ref span155[3]; + num2++; + ref QuestStep reference279 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1043792u, new Vector3(4.043579f, 350.57257f, -49.45453f), 1089); - num3 = 6; - List list367 = new List(num3); - CollectionsMarshal.SetCount(list367, num3); - Span span159 = CollectionsMarshal.AsSpan(list367); - span159[0] = null; - span159[1] = null; - span159[2] = null; - span159[3] = null; - span159[4] = null; - span159[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list367 = new List(index3); + CollectionsMarshal.SetCount(list367, index3); + span5 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list367; reference279 = questStep25; obj236.Steps = list363; reference275 = obj236; - ref QuestSequence reference280 = ref span154[2]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 2 @@ -311067,30 +375849,37 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 2013042u, new Vector3(38.071167f, 348.04297f, 4.3792725f), 1089); + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013042u, new Vector3(38.071167f, 348.04297f, 4.3792725f), 1089); obj237.Steps = list368; reference280 = obj237; - ref QuestSequence reference281 = ref span154[3]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - Span span160 = CollectionsMarshal.AsSpan(list369); - span160[0] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) + index2 = 3; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + span3 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) { TargetTerritoryId = (ushort)1089 }; - span160[1] = new QuestStep(EInteractionType.Interact, 2013113u, new Vector3(-280.0794f, -716.7621f, 133.95886f), 1089) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013113u, new Vector3(-280.0794f, -716.7621f, 133.95886f), 1089) { TargetTerritoryId = (ushort)1089 }; - span160[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.0746f, -718.0001f, 206.78001f), 1089); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.0746f, -718.0001f, 206.78001f), 1089); obj238.Steps = list369; reference281 = obj238; - ref QuestSequence reference282 = ref span154[4]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -311098,7 +375887,9 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043800u, new Vector3(100.11438f, -718.4441f, 206.77502f), 1089) + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043800u, new Vector3(100.11438f, -718.4441f, 206.77502f), 1089) { StopDistance = 5f }; @@ -311111,27 +375902,33 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - CollectionsMarshal.AsSpan(list371)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list371); + index = 0; + span[index] = "liza"; questRoot40.Author = list371; - num = 5; - List list372 = new List(num); - CollectionsMarshal.SetCount(list372, num); - Span span161 = CollectionsMarshal.AsSpan(list372); - ref QuestSequence reference283 = ref span161[0]; + index = 5; + List list372 = new List(index); + CollectionsMarshal.SetCount(list372, index); + span2 = CollectionsMarshal.AsSpan(list372); + num = 0; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043802u, new Vector3(103.4104f, -718.33905f, 207.87354f), 1089) + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + span3 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043802u, new Vector3(103.4104f, -718.33905f, 207.87354f), 1089) { StopDistance = 7f }; obj240.Steps = list373; reference283 = obj240; - ref QuestSequence reference284 = ref span161[1]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -311139,21 +375936,27 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1043804u, new Vector3(220.59961f, -699.9556f, 90.01294f), 1089); + span3 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043804u, new Vector3(220.59961f, -699.9556f, 90.01294f), 1089); obj241.Steps = list374; reference284 = obj241; - ref QuestSequence reference285 = ref span161[2]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1043806u, new Vector3(217.39526f, -699.9557f, 91.17261f), 1089); + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + span3 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043806u, new Vector3(217.39526f, -699.9557f, 91.17261f), 1089); obj242.Steps = list375; reference285 = obj242; - ref QuestSequence reference286 = ref span161[3]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -311161,12 +375964,14 @@ public static class AssemblyQuestLoader num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span162 = CollectionsMarshal.AsSpan(list376); - span162[0] = new QuestStep(EInteractionType.Interact, 2013112u, new Vector3(259.9318f, -706.408f, 90.01325f), 1089) + span3 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013112u, new Vector3(259.9318f, -706.408f, 90.01325f), 1089) { TargetTerritoryId = (ushort)1089 }; - span162[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1043808u, new Vector3(-1.5107422f, -698.0104f, -150.83551f), 1089) + index2++; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1043808u, new Vector3(-1.5107422f, -698.0104f, -150.83551f), 1089) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -311175,15 +375980,18 @@ public static class AssemblyQuestLoader }; obj243.Steps = list376; reference286 = obj243; - ref QuestSequence reference287 = ref span161[4]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043812u, new Vector3(-1.1750488f, -698.0104f, -135.63751f), 1089) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043812u, new Vector3(-1.1750488f, -698.0104f, -135.63751f), 1089) { StopDistance = 5f }; @@ -311196,13 +376004,16 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list378); + index = 0; + span[index] = "liza"; questRoot41.Author = list378; - num = 5; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span163 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference288 = ref span163[0]; + index = 5; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + span2 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -311210,70 +376021,96 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043815u, new Vector3(1.7241821f, -698.0104f, -138.1095f), 1089) + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043815u, new Vector3(1.7241821f, -698.0104f, -138.1095f), 1089) { StopDistance = 5f }; obj245.Steps = list380; reference288 = obj245; - ref QuestSequence reference289 = ref span163[1]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - Span span164 = CollectionsMarshal.AsSpan(list381); - span164[0] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.02930583f, -692.6403f, -232.4083f), 1089) + index2 = 4; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.02930583f, -692.6403f, -232.4083f), 1089) { TargetTerritoryId = (ushort)1089 }; - ref QuestStep reference290 = ref span164[1]; + num2++; + ref QuestStep reference290 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1043792u, new Vector3(4.043579f, 350.57257f, -49.45453f), 1089); num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - Span span165 = CollectionsMarshal.AsSpan(list382); - span165[0] = null; - span165[1] = null; - span165[2] = null; - span165[3] = null; - span165[4] = null; - span165[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list382); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list382; reference290 = questStep26; - ref QuestStep reference291 = ref span164[2]; + num2++; + ref QuestStep reference291 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1043791u, new Vector3(-9.87262f, 350.62988f, -61.539734f), 1089); - num3 = 6; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - Span span166 = CollectionsMarshal.AsSpan(list383); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + span5 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list383; reference291 = questStep27; - ref QuestStep reference292 = ref span164[3]; + num2++; + ref QuestStep reference292 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1043790u, new Vector3(-10.360962f, 359.19916f, -106.70636f), 1089); num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span167 = CollectionsMarshal.AsSpan(list384); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list384; reference292 = questStep28; obj246.Steps = list381; reference289 = obj246; - ref QuestSequence reference293 = ref span163[2]; + num++; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -311281,33 +376118,40 @@ public static class AssemblyQuestLoader num2 = 2; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span168 = CollectionsMarshal.AsSpan(list385); - span168[0] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) + span3 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) { TargetTerritoryId = (ushort)1089 }; - span168[1] = new QuestStep(EInteractionType.Interact, 1043814u, new Vector3(0.6866455f, -698.0104f, -139.75745f), 1089); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043814u, new Vector3(0.6866455f, -698.0104f, -139.75745f), 1089); obj247.Steps = list385; reference293 = obj247; - ref QuestSequence reference294 = ref span163[3]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - Span span169 = CollectionsMarshal.AsSpan(list386); - span169[0] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.015197754f, -692.65283f, -232.41016f), 1089) + index2 = 2; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + span3 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.015197754f, -692.65283f, -232.41016f), 1089) { TargetTerritoryId = (ushort)1089 }; - ref QuestStep reference295 = ref span169[1]; + num2++; + ref QuestStep reference295 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1043816u, new Vector3(13.595764f, 359.19916f, -110.12439f), 1089); - num3 = 1; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - CollectionsMarshal.AsSpan(list387)[0] = new DialogueChoice + index3 = 1; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + span4 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI104_04595_SYSTEM_000_322") @@ -311316,7 +376160,8 @@ public static class AssemblyQuestLoader reference295 = questStep29; obj248.Steps = list386; reference294 = obj248; - ref QuestSequence reference296 = ref span163[4]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue @@ -311324,7 +376169,9 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; @@ -311337,27 +376184,33 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list389); + index = 0; + span[index] = "liza"; questRoot42.Author = list389; - num = 10; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span170 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference297 = ref span170[0]; + index = 10; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + span2 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; obj250.Steps = list391; reference297 = obj250; - ref QuestSequence reference298 = ref span170[1]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 @@ -311365,27 +376218,34 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; obj251.Steps = list392; reference298 = obj251; - ref QuestSequence reference299 = ref span170[2]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span171 = CollectionsMarshal.AsSpan(list393); - span171[0] = new QuestStep(EInteractionType.Interact, 1043829u, new Vector3(-47.257202f, -0.509538f, -22.568176f), 1077); - span171[1] = new QuestStep(EInteractionType.Interact, 1043831u, new Vector3(-12.710815f, -0.50953794f, -49.45453f), 1077); - span171[2] = new QuestStep(EInteractionType.Interact, 1043830u, new Vector3(35.14148f, -0.50953794f, -38.651123f), 1077); + index2 = 3; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + span3 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043829u, new Vector3(-47.257202f, -0.509538f, -22.568176f), 1077); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043831u, new Vector3(-12.710815f, -0.50953794f, -49.45453f), 1077); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043830u, new Vector3(35.14148f, -0.50953794f, -38.651123f), 1077); obj252.Steps = list393; reference299 = obj252; - ref QuestSequence reference300 = ref span170[3]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 3 @@ -311393,24 +376253,30 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(27.317875f, -0.43000424f, -13.701547f), 1077) + span3 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(27.317875f, -0.43000424f, -13.701547f), 1077) { StopDistance = 0.25f }; obj253.Steps = list394; reference300 = obj253; - ref QuestSequence reference301 = ref span170[4]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(28.591307f, -0.43000418f, -12.1619835f), 1077); + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + span3 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(28.591307f, -0.43000418f, -12.1619835f), 1077); obj254.Steps = list395; reference301 = obj254; - ref QuestSequence reference302 = ref span170[5]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 5 @@ -311418,12 +376284,16 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - ref QuestStep reference303 = ref CollectionsMarshal.AsSpan(list396)[0]; + span3 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + ref QuestStep reference303 = ref span3[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1043832u, new Vector3(104.234375f, -0.50953794f, -22.62915f), 1077); num3 = 1; List list397 = new List(num3); CollectionsMarshal.SetCount(list397, num3); - CollectionsMarshal.AsSpan(list397)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list397); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI105_04596_Q1_000_000"), @@ -311433,18 +376303,22 @@ public static class AssemblyQuestLoader reference303 = questStep30; obj255.Steps = list396; reference302 = obj255; - ref QuestSequence reference304 = ref span170[6]; + num++; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1043833u, new Vector3(61.69214f, -0.40188107f, 46.463623f), 1077); + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + span3 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043833u, new Vector3(61.69214f, -0.40188107f, 46.463623f), 1077); obj256.Steps = list398; reference304 = obj256; - ref QuestSequence reference305 = ref span170[7]; + num++; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 7 @@ -311452,23 +376326,30 @@ public static class AssemblyQuestLoader num2 = 1; List list399 = new List(num2); CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1043834u, new Vector3(56.198975f, 16.517479f, 82.20032f), 1077); + span3 = CollectionsMarshal.AsSpan(list399); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043834u, new Vector3(56.198975f, 16.517479f, 82.20032f), 1077); obj257.Steps = list399; reference305 = obj257; - ref QuestSequence reference306 = ref span170[8]; + num++; + ref QuestSequence reference306 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list400 = new List(num2); - CollectionsMarshal.SetCount(list400, num2); - ref QuestStep reference307 = ref CollectionsMarshal.AsSpan(list400)[0]; + index2 = 1; + List list400 = new List(index2); + CollectionsMarshal.SetCount(list400, index2); + span3 = CollectionsMarshal.AsSpan(list400); + num2 = 0; + ref QuestStep reference307 = ref span3[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1043835u, new Vector3(134.41675f, 24.30001f, 60.501953f), 1077); - num3 = 1; - List list401 = new List(num3); - CollectionsMarshal.SetCount(list401, num3); - CollectionsMarshal.AsSpan(list401)[0] = new DialogueChoice + index3 = 1; + List list401 = new List(index3); + CollectionsMarshal.SetCount(list401, index3); + span4 = CollectionsMarshal.AsSpan(list401); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI105_04596_Q2_000_000"), @@ -311478,7 +376359,8 @@ public static class AssemblyQuestLoader reference307 = questStep31; obj258.Steps = list400; reference306 = obj258; - ref QuestSequence reference308 = ref span170[9]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -311486,7 +376368,9 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043836u, new Vector3(1.0223389f, -0.4f, -68.223145f), 1077) + span3 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043836u, new Vector3(1.0223389f, -0.4f, -68.223145f), 1077) { StopDistance = 5f }; @@ -311499,21 +376383,26 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list403); + index = 0; + span[index] = "liza"; questRoot43.Author = list403; - num = 6; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span172 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference309 = ref span172[0]; + index = 6; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + span2 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - ref QuestStep reference310 = ref CollectionsMarshal.AsSpan(list405)[0]; + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + ref QuestStep reference310 = ref span3[num2]; QuestStep obj261 = new QuestStep(EInteractionType.AcceptQuest, 1043839u, new Vector3(-0.25946045f, -0.4f, -70.72565f), 1077) { StopDistance = 7f @@ -311521,7 +376410,9 @@ public static class AssemblyQuestLoader num3 = 1; List list406 = new List(num3); CollectionsMarshal.SetCount(list406, num3); - CollectionsMarshal.AsSpan(list406)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list406); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI106_04597_Q1_000_000"), @@ -311531,7 +376422,8 @@ public static class AssemblyQuestLoader reference310 = obj261; obj260.Steps = list405; reference309 = obj260; - ref QuestSequence reference311 = ref span172[1]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 1 @@ -311539,12 +376431,16 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - ref QuestStep reference312 = ref CollectionsMarshal.AsSpan(list407)[0]; + span3 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + ref QuestStep reference312 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013053u, new Vector3(-0.16790771f, -0.16790771f, -74.87604f), 1077); - num3 = 1; - List list408 = new List(num3); - CollectionsMarshal.SetCount(list408, num3); - CollectionsMarshal.AsSpan(list408)[0] = new DialogueChoice + index3 = 1; + List list408 = new List(index3); + CollectionsMarshal.SetCount(list408, index3); + span4 = CollectionsMarshal.AsSpan(list408); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI106_04597_SYSTEM_000_120") @@ -311553,19 +376449,23 @@ public static class AssemblyQuestLoader reference312 = questStep32; obj262.Steps = list407; reference311 = obj262; - span172[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference313 = ref span172[3]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Duty, null, null, 1092) + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + span3 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1092) { DutyOptions = new DutyOptions { @@ -311574,11 +376474,13 @@ public static class AssemblyQuestLoader }; obj263.Steps = list409; reference313 = obj263; - span172[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference314 = ref span172[5]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -311586,7 +376488,9 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043840u, new Vector3(-29.434692f, -0.21963555f, 52.506226f), 1077) + span3 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043840u, new Vector3(-29.434692f, -0.21963555f, 52.506226f), 1077) { StopDistance = 5f }; @@ -311599,27 +376503,33 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list411); + index = 0; + span[index] = "liza"; questRoot44.Author = list411; - num = 4; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span173 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference315 = ref span173[0]; + index = 4; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + span2 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043841u, new Vector3(-27.145874f, -0.21963556f, 50.492065f), 1077) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043841u, new Vector3(-27.145874f, -0.21963556f, 50.492065f), 1077) { StopDistance = 5f }; obj265.Steps = list413; reference315 = obj265; - ref QuestSequence reference316 = ref span173[1]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -311627,23 +376537,30 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Interact, 1043844u, new Vector3(-50.736267f, -0.4300005f, -11.795227f), 1077); + span3 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043844u, new Vector3(-50.736267f, -0.4300005f, -11.795227f), 1077); obj266.Steps = list414; reference316 = obj266; - ref QuestSequence reference317 = ref span173[2]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - ref QuestStep reference318 = ref CollectionsMarshal.AsSpan(list415)[0]; + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + span3 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + ref QuestStep reference318 = ref span3[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1043846u, new Vector3(-31.99823f, -0.21963498f, 51.499146f), 1077); num3 = 1; List list416 = new List(num3); CollectionsMarshal.SetCount(list416, num3); - CollectionsMarshal.AsSpan(list416)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list416); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI107_04598_SYSTEM_000_221") @@ -311652,7 +376569,8 @@ public static class AssemblyQuestLoader reference318 = questStep33; obj267.Steps = list415; reference317 = obj267; - ref QuestSequence reference319 = ref span173[3]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue @@ -311660,12 +376578,16 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - ref QuestStep reference320 = ref CollectionsMarshal.AsSpan(list417)[0]; + span3 = CollectionsMarshal.AsSpan(list417); + index2 = 0; + ref QuestStep reference320 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.CompleteQuest, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963); - num3 = 1; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = new DialogueChoice + index3 = 1; + List list418 = new List(index3); + CollectionsMarshal.SetCount(list418, index3); + span4 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI107_04598_SYSTEM_000_401") @@ -311681,21 +376603,26 @@ public static class AssemblyQuestLoader num = 1; List list419 = new List(num); CollectionsMarshal.SetCount(list419, num); - CollectionsMarshal.AsSpan(list419)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list419); + index = 0; + span[index] = "liza"; questRoot45.Author = list419; - num = 9; - List list420 = new List(num); - CollectionsMarshal.SetCount(list420, num); - Span span174 = CollectionsMarshal.AsSpan(list420); - ref QuestSequence reference321 = ref span174[0]; + index = 9; + List list420 = new List(index); + CollectionsMarshal.SetCount(list420, index); + span2 = CollectionsMarshal.AsSpan(list420); + num = 0; + ref QuestSequence reference321 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - ref QuestStep reference322 = ref CollectionsMarshal.AsSpan(list421)[0]; + index2 = 1; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + span3 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + ref QuestStep reference322 = ref span3[num2]; QuestStep obj270 = new QuestStep(EInteractionType.AcceptQuest, 1043848u, new Vector3(-1.5717163f, 0.008460393f, -1.8463745f), 1078) { StopDistance = 7f @@ -311703,7 +376630,9 @@ public static class AssemblyQuestLoader num3 = 1; List list422 = new List(num3); CollectionsMarshal.SetCount(list422, num3); - CollectionsMarshal.AsSpan(list422)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list422); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_Q1_000_000"), @@ -311713,7 +376642,8 @@ public static class AssemblyQuestLoader reference322 = obj270; obj269.Steps = list421; reference321 = obj269; - ref QuestSequence reference323 = ref span174[1]; + num++; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 @@ -311721,13 +376651,15 @@ public static class AssemblyQuestLoader num2 = 2; List list423 = new List(num2); CollectionsMarshal.SetCount(list423, num2); - Span span175 = CollectionsMarshal.AsSpan(list423); - span175[0] = new QuestStep(EInteractionType.Interact, 2013077u, new Vector3(-0.015319824f, 1.2359009f, 5.3864136f), 1078) + span3 = CollectionsMarshal.AsSpan(list423); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013077u, new Vector3(-0.015319824f, 1.2359009f, 5.3864136f), 1078) { StopDistance = 4f, TargetTerritoryId = (ushort)963 }; - ref QuestStep reference324 = ref span175[1]; + index2++; + ref QuestStep reference324 = ref span3[index2]; QuestStep obj272 = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 5f, @@ -311737,10 +376669,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - num3 = 1; - List list424 = new List(num3); - CollectionsMarshal.SetCount(list424, num3); - CollectionsMarshal.AsSpan(list424)[0] = new DialogueChoice + index3 = 1; + List list424 = new List(index3); + CollectionsMarshal.SetCount(list424, index3); + span4 = CollectionsMarshal.AsSpan(list424); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_Q3_000_000"), @@ -311750,15 +376684,18 @@ public static class AssemblyQuestLoader reference324 = obj272; obj271.Steps = list423; reference323 = obj271; - ref QuestSequence reference325 = ref span174[2]; + num++; + ref QuestSequence reference325 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - ref QuestStep reference326 = ref CollectionsMarshal.AsSpan(list425)[0]; + index2 = 1; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + span3 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + ref QuestStep reference326 = ref span3[num2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -311770,7 +376707,9 @@ public static class AssemblyQuestLoader num3 = 1; List list426 = new List(num3); CollectionsMarshal.SetCount(list426, num3); - CollectionsMarshal.AsSpan(list426)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list426); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_SYSTEM_000_211") @@ -311779,7 +376718,8 @@ public static class AssemblyQuestLoader reference326 = obj274; obj273.Steps = list425; reference325 = obj273; - ref QuestSequence reference327 = ref span174[3]; + num++; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 3 @@ -311787,18 +376727,23 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-353.3227f, 54.999992f, -79.60632f), 963); + span3 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-353.3227f, 54.999992f, -79.60632f), 963); obj275.Steps = list427; reference327 = obj275; - ref QuestSequence reference328 = ref span174[4]; + num++; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list428 = new List(num2); - CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + index2 = 1; + List list428 = new List(index2); + CollectionsMarshal.SetCount(list428, index2); + span3 = CollectionsMarshal.AsSpan(list428); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AethernetShortcut = new AethernetShortcut { @@ -311808,7 +376753,8 @@ public static class AssemblyQuestLoader }; obj276.Steps = list428; reference328 = obj276; - ref QuestSequence reference329 = ref span174[5]; + num++; + ref QuestSequence reference329 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 5 @@ -311816,27 +376762,33 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-33.52105f, 0.59983087f, -74.57541f), 963) + span3 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-33.52105f, 0.59983087f, -74.57541f), 963) { StopDistance = 0.25f }; obj277.Steps = list429; reference329 = obj277; - ref QuestSequence reference330 = ref span174[6]; + num++; + ref QuestSequence reference330 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + span3 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) { StopDistance = 7f }; obj278.Steps = list430; reference330 = obj278; - ref QuestSequence reference331 = ref span174[7]; + num++; + ref QuestSequence reference331 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = 7 @@ -311844,7 +376796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - CollectionsMarshal.AsSpan(list431)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-159.23143f, 36.051323f, 70.24f), 963) + span3 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-159.23143f, 36.051323f, 70.24f), 963) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -311855,15 +376809,18 @@ public static class AssemblyQuestLoader }; obj279.Steps = list431; reference331 = obj279; - ref QuestSequence reference332 = ref span174[8]; + num++; + ref QuestSequence reference332 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043857u, new Vector3(-158.15979f, 36.051323f, 67.36853f), 963); + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + span3 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043857u, new Vector3(-158.15979f, 36.051323f, 67.36853f), 963); obj280.Steps = list432; reference332 = obj280; questRoot45.QuestSequence = list420; @@ -311877,13 +376834,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -311891,18 +376851,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043858u, new Vector3(-159.89929f, 36.051323f, 67.27698f), 963); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043858u, new Vector3(-159.89929f, 36.051323f, 67.27698f), 963); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -311914,7 +376879,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI109_04600_SYSTEM_000_020") @@ -311923,7 +376890,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -311931,7 +376899,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { StopDistance = 5f }; @@ -311944,28 +376914,34 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - num = 8; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 8; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042192u, new Vector3(200.48828f, 567.50006f, 242.78625f), 960) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042192u, new Vector3(200.48828f, 567.50006f, 242.78625f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -311973,37 +376949,45 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1043518u, new Vector3(456.32092f, 437.00073f, 315.69385f), 960) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043518u, new Vector3(456.32092f, 437.00073f, 315.69385f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span3[0]; + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013076u, new Vector3(456.65674f, 438.04077f, 310.2616f), 960); - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + span4 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; questStep.DialogueChoices = list12; reference8 = questStep; - span3[1] = new QuestStep(EInteractionType.Interact, 2013034u, new Vector3(304.37158f, 483.48206f, 143.14478f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013034u, new Vector3(304.37158f, 483.48206f, 143.14478f), 960); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span2[3]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -312011,85 +376995,105 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - ref QuestStep reference10 = ref span4[1]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960); num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q6_000_000") }; questStep2.DialogueChoices = list14; reference10 = questStep2; - span4[2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.50006f, 246.72314f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.50006f, 246.72314f), 960); obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference12 = ref span5[0]; + index2 = 5; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference12 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span5 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list16; num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheredItem + Span span6 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38276u, ItemCount = 3 }; questStep3.ItemsToGather = list17; reference12 = questStep3; - ref QuestStep reference13 = ref span5[1]; + num2++; + ref QuestStep reference13 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + span5 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list18; num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38300u, ItemCount = 3 }; questStep4.ItemsToGather = list19; reference13 = questStep4; - ref QuestStep reference14 = ref span5[2]; + num2++; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + span4 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; obj10.DialogueChoices = list20; reference14 = obj10; - ref QuestStep reference15 = ref span5[3]; + num2++; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 @@ -312097,17 +377101,21 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q6_000_000") }; obj11.DialogueChoices = list21; reference15 = obj11; - span5[4] = new QuestStep(EInteractionType.Interact, 1044190u, new Vector3(203.84521f, 567.50006f, 246.87573f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044190u, new Vector3(203.84521f, 567.50006f, 246.87573f), 960); obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference16 = ref span2[5]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 5 @@ -312115,34 +377123,42 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference17 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960); - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span4 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; questStep5.DialogueChoices = list23; reference17 = questStep5; - span6[1] = new QuestStep(EInteractionType.Interact, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); obj12.Steps = list22; reference16 = obj12; - ref QuestSequence reference18 = ref span2[6]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1043521u, new Vector3(3.3721924f, 499.6105f, 34.195435f), 1073); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043521u, new Vector3(3.3721924f, 499.6105f, 34.195435f), 1073); obj13.Steps = list24; reference18 = obj13; - ref QuestSequence reference19 = ref span2[7]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -312150,12 +377166,14 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); obj14.Steps = list25; reference19 = obj14; questRoot2.QuestSequence = list8; @@ -312165,24 +377183,30 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "plogon_enjoyer"; questRoot3.Author = list26; - num = 9; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span8 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span8[0]; + index = 9; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj15.Steps = list28; reference20 = obj15; - ref QuestSequence reference21 = ref span8[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -312190,8 +377214,9 @@ public static class AssemblyQuestLoader num2 = 2; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span9 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference22 = ref span9[0]; + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference22 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { Mount = true @@ -312199,38 +377224,45 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI002_04602_Q5_000_000") }; obj17.DialogueChoices = list30; reference22 = obj17; - span9[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj16.Steps = list29; reference21 = obj16; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span10 = CollectionsMarshal.AsSpan(list31); - span10[0] = new QuestStep(EInteractionType.Interact, 2012484u, new Vector3(492.48486f, 438.04077f, 365.43823f), 960) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012484u, new Vector3(492.48486f, 438.04077f, 365.43823f), 960) { TargetTerritoryId = (ushort)960, Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span10[1] = new QuestStep(EInteractionType.Interact, 1043527u, new Vector3(463.5537f, 417.06747f, 407.12585f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043527u, new Vector3(463.5537f, 417.06747f, 407.12585f), 960); obj18.Steps = list31; reference23 = obj18; - ref QuestSequence reference24 = ref span8[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -312238,36 +377270,43 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span11 = CollectionsMarshal.AsSpan(list32); - span11[0] = new QuestStep(EInteractionType.Interact, 2012485u, new Vector3(469.3828f, 418.14294f, 403.3722f), 960) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012485u, new Vector3(469.3828f, 418.14294f, 403.3722f), 960) { TargetTerritoryId = (ushort)960 }; - span11[1] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) { Mount = true }; - span11[2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) { Mount = true }; obj19.Steps = list32; reference24 = obj19; - ref QuestSequence reference25 = ref span8[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1043531u, new Vector3(502.49475f, 436.99988f, 324.84924f), 960) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043531u, new Vector3(502.49475f, 436.99988f, 324.84924f), 960) { Mount = true }; obj20.Steps = list33; reference25 = obj20; - ref QuestSequence reference26 = ref span8[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -312275,28 +377314,34 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1043533u, new Vector3(77.3479f, 269.00006f, -607.72107f), 960) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043533u, new Vector3(77.3479f, 269.00006f, -607.72107f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj21.Steps = list34; reference26 = obj21; - ref QuestSequence reference27 = ref span8[6]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1043537u, new Vector3(-321.24823f, 263.2611f, -523.7049f), 960) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043537u, new Vector3(-321.24823f, 263.2611f, -523.7049f), 960) { Fly = true }; obj22.Steps = list35; reference27 = obj22; - ref QuestSequence reference28 = ref span8[7]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 7 @@ -312304,83 +377349,101 @@ public static class AssemblyQuestLoader num2 = 5; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span12 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference29 = ref span12[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + span5 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep6.RequiredQuestAcceptedJob = list37; num3 = 1; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list38); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38277u, ItemCount = 3 }; questStep6.ItemsToGather = list38; reference29 = questStep6; - ref QuestStep reference30 = ref span12[1]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + span5 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep7.RequiredQuestAcceptedJob = list39; num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38301u, ItemCount = 3 }; questStep7.ItemsToGather = list40; reference30 = questStep7; - span12[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span12[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span12[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj23.Steps = list36; reference28 = obj23; - ref QuestSequence reference31 = ref span8[8]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span13 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference32 = ref span13[0]; + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference32 = ref span3[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { Fly = true }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice + index3 = 1; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span4 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI002_04602_Q2_000_000") }; obj25.DialogueChoices = list42; reference32 = obj25; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj24.Steps = list41; reference31 = obj24; questRoot3.QuestSequence = list27; @@ -312390,13 +377453,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "plogon_enjoyer"; questRoot4.Author = list43; - num = 8; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span14[0]; + index = 8; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -312404,19 +377470,23 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj26.Steps = list45; reference33 = obj26; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span15 = CollectionsMarshal.AsSpan(list46); - ref QuestStep reference35 = ref span15[0]; + index2 = 2; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { Mount = true @@ -312424,20 +377494,24 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q9_000_000") }; obj28.DialogueChoices = list47; reference35 = obj28; - span15[1] = new QuestStep(EInteractionType.Interact, 1043539u, new Vector3(205.92041f, 566f, 257.2517f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043539u, new Vector3(205.92041f, 566f, 257.2517f), 960) { Fly = true }; obj27.Steps = list46; reference34 = obj27; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -312445,33 +377519,39 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj29.Steps = list48; reference36 = obj29; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = new QuestStep(EInteractionType.Interact, 1043552u, new Vector3(103.837524f, 269.41934f, -514.6105f), 960) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043552u, new Vector3(103.837524f, 269.41934f, -514.6105f), 960) { Fly = true }; - span16[1] = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) { Fly = true }; obj30.Steps = list49; reference37 = obj30; - ref QuestSequence reference38 = ref span14[4]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -312479,29 +377559,36 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) { Fly = true }; obj31.Steps = list50; reference38 = obj31; - ref QuestSequence reference39 = ref span14[5]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) { Fly = true }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q2_000_000") @@ -312510,7 +377597,8 @@ public static class AssemblyQuestLoader reference40 = obj33; obj32.Steps = list51; reference39 = obj32; - ref QuestSequence reference41 = ref span14[6]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 6 @@ -312518,68 +377606,83 @@ public static class AssemblyQuestLoader num2 = 5; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span17 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference42 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference42 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 960); num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = EExtendedClassJob.Miner; + span5 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span5[index3] = EExtendedClassJob.Miner; questStep8.RequiredQuestAcceptedJob = list54; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new GatheredItem + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + span6 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38278u, ItemCount = 3 }; questStep8.ItemsToGather = list55; reference42 = questStep8; - ref QuestStep reference43 = ref span17[1]; + index2++; + ref QuestStep reference43 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 960); num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = EExtendedClassJob.Botanist; + span5 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span5[index3] = EExtendedClassJob.Botanist; questStep9.RequiredQuestAcceptedJob = list56; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheredItem + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span6 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38302u, ItemCount = 3 }; questStep9.ItemsToGather = list57; reference43 = questStep9; - span17[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span17[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span17[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj34.Steps = list53; reference41 = obj34; - ref QuestSequence reference44 = ref span14[7]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span18 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference45 = ref span18[0]; + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { Fly = true @@ -312587,14 +377690,17 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q8_000_000") }; obj36.DialogueChoices = list59; reference45 = obj36; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj35.Steps = list58; reference44 = obj35; questRoot4.QuestSequence = list44; @@ -312604,13 +377710,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "plogon_enjoyer"; questRoot5.Author = list60; - num = 6; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span19 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference46 = ref span19[0]; + index = 6; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -312618,41 +377727,49 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj37.Steps = list62; reference46 = obj37; - ref QuestSequence reference47 = ref span19[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span20 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference48 = ref span20[0]; + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + index3 = 1; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + span4 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI004_04604_Q5_000_000") }; obj39.DialogueChoices = list64; reference48 = obj39; - span20[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj38.Steps = list63; reference47 = obj38; - ref QuestSequence reference49 = ref span19[2]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -312660,29 +377777,35 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1043559u, new Vector3(-573.3883f, 73.033104f, 212.78699f), 960) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043559u, new Vector3(-573.3883f, 73.033104f, 212.78699f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj40.Steps = list65; reference49 = obj40; - ref QuestSequence reference50 = ref span19[3]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj41.Steps = list66; reference50 = obj41; - ref QuestSequence reference51 = ref span19[4]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -312690,42 +377813,53 @@ public static class AssemblyQuestLoader num2 = 5; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span21 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference52 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 398); num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = EExtendedClassJob.Miner; + span5 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span5[index3] = EExtendedClassJob.Miner; questStep10.RequiredQuestAcceptedJob = list68; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheredItem + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span6 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38279u, ItemCount = 3 }; questStep10.ItemsToGather = list69; reference52 = questStep10; - ref QuestStep reference53 = ref span21[1]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 398); num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = EExtendedClassJob.Botanist; + span5 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span5[index3] = EExtendedClassJob.Botanist; questStep11.RequiredQuestAcceptedJob = list70; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheredItem + index3 = 1; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + span6 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38303u, ItemCount = 3 }; questStep11.ItemsToGather = list71; reference53 = questStep11; - span21[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, @@ -312738,27 +377872,31 @@ public static class AssemblyQuestLoader } } }; - span21[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span21[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj42.Steps = list67; reference51 = obj42; - ref QuestSequence reference54 = ref span19[5]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span22 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference55 = ref span22[0]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference55 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -312767,14 +377905,17 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI004_04604_Q4_000_000") }; obj44.DialogueChoices = list73; reference55 = obj44; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj43.Steps = list72; reference54 = obj43; questRoot5.QuestSequence = list61; @@ -312784,13 +377925,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "plogon_enjoyer"; questRoot6.Author = list74; - num = 8; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span23 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference56 = ref span23[0]; + index = 8; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -312798,40 +377942,48 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj45.Steps = list76; reference56 = obj45; - ref QuestSequence reference57 = ref span23[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span24 = CollectionsMarshal.AsSpan(list77); - ref QuestStep reference58 = ref span24[0]; + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span4 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI005_04605_Q5_000_000") }; obj47.DialogueChoices = list78; reference58 = obj47; - span24[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj46.Steps = list77; reference57 = obj46; - ref QuestSequence reference59 = ref span23[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -312839,33 +377991,39 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span25 = CollectionsMarshal.AsSpan(list79); - span25[0] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span25[1] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) { Fly = true }; obj48.Steps = list79; reference59 = obj48; - ref QuestSequence reference60 = ref span23[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1043584u, new Vector3(803.7993f, 478.7742f, 200.73242f), 960) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043584u, new Vector3(803.7993f, 478.7742f, 200.73242f), 960) { Fly = true }; obj49.Steps = list80; reference60 = obj49; - ref QuestSequence reference61 = ref span23[4]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -312873,36 +378031,43 @@ public static class AssemblyQuestLoader num2 = 3; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span26 = CollectionsMarshal.AsSpan(list81); - span26[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span26[1] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span26[2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj50.Steps = list81; reference61 = obj50; - ref QuestSequence reference62 = ref span23[5]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 2013033u, new Vector3(203.50952f, 567.4983f, 244.2511f), 960); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013033u, new Vector3(203.50952f, 567.4983f, 244.2511f), 960); obj51.Steps = list82; reference62 = obj51; - ref QuestSequence reference63 = ref span23[6]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 @@ -312910,68 +378075,83 @@ public static class AssemblyQuestLoader num2 = 5; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference64 = ref span27[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = EExtendedClassJob.Miner; + span5 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span5[index3] = EExtendedClassJob.Miner; questStep12.RequiredQuestAcceptedJob = list84; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new GatheredItem + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span6 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38280u, ItemCount = 3 }; questStep12.ItemsToGather = list85; reference64 = questStep12; - ref QuestStep reference65 = ref span27[1]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = EExtendedClassJob.Botanist; + span5 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span5[index3] = EExtendedClassJob.Botanist; questStep13.RequiredQuestAcceptedJob = list86; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new GatheredItem + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + span6 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38304u, ItemCount = 3 }; questStep13.ItemsToGather = list87; reference65 = questStep13; - span27[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span27[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span27[4] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj52.Steps = list83; reference63 = obj52; - ref QuestSequence reference66 = ref span23[7]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span28 = CollectionsMarshal.AsSpan(list88); - ref QuestStep reference67 = ref span28[0]; + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -312980,14 +378160,17 @@ public static class AssemblyQuestLoader num3 = 1; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI005_04605_Q6_000_000") }; obj54.DialogueChoices = list89; reference67 = obj54; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); obj53.Steps = list88; reference66 = obj53; questRoot6.QuestSequence = list75; @@ -312997,13 +378180,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "plogon_enjoyer"; questRoot7.Author = list90; - num = 5; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span29 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference68 = ref span29[0]; + index = 5; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -313011,40 +378197,48 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj55.Steps = list92; reference68 = obj55; - ref QuestSequence reference69 = ref span29[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span30 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference70 = ref span30[0]; + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span4 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI006_04606_Q5_000_000") }; obj57.DialogueChoices = list94; reference70 = obj57; - span30[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj56.Steps = list93; reference69 = obj56; - ref QuestSequence reference71 = ref span29[2]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -313052,25 +378246,33 @@ public static class AssemblyQuestLoader num2 = 4; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span31 = CollectionsMarshal.AsSpan(list95); - span31[0] = new QuestStep(EInteractionType.Interact, 1043424u, new Vector3(197.07019f, 567.49976f, 246.23486f), 960); - span31[1] = new QuestStep(EInteractionType.Interact, 1043423u, new Vector3(200.67139f, 567.4998f, 236.10278f), 960); - span31[2] = new QuestStep(EInteractionType.Interact, 1043592u, new Vector3(206.43921f, 567.49976f, 236.89624f), 960); - span31[3] = new QuestStep(EInteractionType.Interact, 1043593u, new Vector3(218.4939f, 565.99994f, 247.18079f), 960); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043424u, new Vector3(197.07019f, 567.49976f, 246.23486f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043423u, new Vector3(200.67139f, 567.4998f, 236.10278f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043592u, new Vector3(206.43921f, 567.49976f, 236.89624f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043593u, new Vector3(218.4939f, 565.99994f, 247.18079f), 960); obj58.Steps = list95; reference71 = obj58; - ref QuestSequence reference72 = ref span29[3]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960); obj59.Steps = list96; reference72 = obj59; - ref QuestSequence reference73 = ref span29[4]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -313078,8 +378280,9 @@ public static class AssemblyQuestLoader num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span32 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference74 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference74 = ref span3[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -313088,14 +378291,17 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI006_04606_Q6_000_000") }; obj61.DialogueChoices = list98; reference74 = obj61; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj60.Steps = list97; reference73 = obj60; questRoot7.QuestSequence = list91; @@ -313105,24 +378311,30 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot8.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span33 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference75 = ref span33[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj62.Steps = list101; reference75 = obj62; - ref QuestSequence reference76 = ref span33[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -313130,61 +378342,75 @@ public static class AssemblyQuestLoader num2 = 3; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span34 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference77 = ref span34[0]; + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference77 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list103; num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38281u, ItemCount = 3 }; questStep14.ItemsToGather = list104; reference77 = questStep14; - ref QuestStep reference78 = ref span34[1]; + index2++; + ref QuestStep reference78 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + span5 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list105; num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38305u, ItemCount = 3 }; questStep15.ItemsToGather = list106; reference78 = questStep15; - span34[2] = new QuestStep(EInteractionType.Interact, 1044042u, new Vector3(507.0725f, 436.99997f, 340.07776f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044042u, new Vector3(507.0725f, 436.99997f, 340.07776f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj63.Steps = list102; reference76 = obj63; - ref QuestSequence reference79 = ref span33[2]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span35 = CollectionsMarshal.AsSpan(list107); - span35[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960 }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj64.Steps = list107; reference79 = obj64; questRoot8.QuestSequence = list100; @@ -313194,13 +378420,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot9.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span36 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference80 = ref span36[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -313208,23 +378437,28 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj65.Steps = list110; reference80 = obj65; - ref QuestSequence reference81 = ref span36[1]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span37 = CollectionsMarshal.AsSpan(list111); - span37[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference82 = ref span37[1]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Say, 1044043u, new Vector3(-7.1260376f, 498.9474f, -5.416992f), 1073) { ChatMessage = new ChatMessage @@ -313232,19 +378466,26 @@ public static class AssemblyQuestLoader Key = "TEXT_BANOMI102_04608_SAYTODO_000_050" } }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span38 = CollectionsMarshal.AsSpan(list112); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span7 = CollectionsMarshal.AsSpan(list112); + 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); obj67.CompletionQuestVariablesFlags = list112; reference82 = obj67; - ref QuestStep reference83 = ref span37[2]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Say, 1044044u, new Vector3(11.215393f, 499.7763f, -23.239563f), 1073) { ChatMessage = new ChatMessage @@ -313255,18 +378496,25 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span39 = CollectionsMarshal.AsSpan(list113); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj68.CompletionQuestVariablesFlags = list113; reference83 = obj68; obj66.Steps = list111; reference81 = obj66; - ref QuestSequence reference84 = ref span36[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -313274,12 +378522,14 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span40 = CollectionsMarshal.AsSpan(list114); - span40[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj69.Steps = list114; reference84 = obj69; questRoot9.QuestSequence = list109; @@ -313289,24 +378539,30 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; questRoot10.Author = list115; - num = 2; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span41 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference85 = ref span41[0]; + index = 2; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj70.Steps = list117; reference85 = obj70; - ref QuestSequence reference86 = ref span41[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -313314,47 +378570,59 @@ public static class AssemblyQuestLoader num2 = 4; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span42 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference87 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + span5 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep16.RequiredQuestAcceptedJob = list119; num3 = 1; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38282u, ItemCount = 3 }; questStep16.ItemsToGather = list120; reference87 = questStep16; - ref QuestStep reference88 = ref span42[1]; + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + span5 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep17.RequiredQuestAcceptedJob = list121; num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38306u, ItemCount = 3 }; questStep17.ItemsToGather = list122; reference88 = questStep17; - span42[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span42[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj71.Steps = list118; reference86 = obj71; questRoot10.QuestSequence = list116; @@ -313364,24 +378632,30 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot11.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span43 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference89 = ref span43[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + span3 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj72.Steps = list125; reference89 = obj72; - ref QuestSequence reference90 = ref span43[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -313389,8 +378663,9 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span44 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference91 = ref span44[0]; + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference91 = ref span3[index2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1044046u, new Vector3(-585.3514f, 74.4431f, 238.33057f), 960) { StopDistance = 9f, @@ -313403,37 +378678,52 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list127 = new List>(num3); - CollectionsMarshal.SetCount(list127, num3); - Span> span45 = CollectionsMarshal.AsSpan(list127); - span45[0] = null; - span45[1] = null; - ref List reference92 = ref span45[2]; + index3 = 6; + List> list127 = new List>(index3); + CollectionsMarshal.SetCount(list127, index3); + Span> span8 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference92 = ref span8[num3]; int num4 = 2; List list128 = new List(num4); CollectionsMarshal.SetCount(list128, num4); - Span span46 = CollectionsMarshal.AsSpan(list128); - span46[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span46[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list128); + int num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference92 = list128; - span45[3] = null; - span45[4] = null; - span45[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj74.RequiredQuestVariables = list127; num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span47 = CollectionsMarshal.AsSpan(list129); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list129; reference91 = obj74; - ref QuestStep reference93 = ref span44[1]; + index2++; + ref QuestStep reference93 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1044047u, new Vector3(36.66736f, 269.16718f, -627.83246f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa, @@ -313445,83 +378735,114 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list130 = new List>(num3); - CollectionsMarshal.SetCount(list130, num3); - Span> span48 = CollectionsMarshal.AsSpan(list130); - span48[0] = null; - span48[1] = null; - ref List reference94 = ref span48[2]; - num4 = 2; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span49 = CollectionsMarshal.AsSpan(list131); - span49[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3 = 6; + List> list130 = new List>(index3); + CollectionsMarshal.SetCount(list130, index3); + span8 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference94 = ref span8[num3]; + num5 = 2; + List list131 = new List(num5); + CollectionsMarshal.SetCount(list131, num5); + span7 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4++; + span7[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference94 = list131; - span48[3] = null; - span48[4] = null; - span48[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj75.RequiredQuestVariables = list130; num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span50 = CollectionsMarshal.AsSpan(list132); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list132; reference93 = obj75; - ref QuestStep reference95 = ref span44[2]; + index2++; + ref QuestStep reference95 = ref span3[index2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1044045u, new Vector3(510.64307f, 436.9999f, 332.41772f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num3 = 6; - List> list133 = new List>(num3); - CollectionsMarshal.SetCount(list133, num3); - Span> span51 = CollectionsMarshal.AsSpan(list133); - span51[0] = null; - span51[1] = null; - ref List reference96 = ref span51[2]; + index3 = 6; + List> list133 = new List>(index3); + CollectionsMarshal.SetCount(list133, index3); + span8 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference96 = ref span8[num3]; num4 = 2; List list134 = new List(num4); CollectionsMarshal.SetCount(list134, num4); - Span span52 = CollectionsMarshal.AsSpan(list134); - span52[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span52[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list134); + num5 = 0; + span7[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span7[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference96 = list134; - span51[3] = null; - span51[4] = null; - span51[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj76.RequiredQuestVariables = list133; num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span53 = CollectionsMarshal.AsSpan(list135); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list135; reference95 = obj76; obj73.Steps = list126; reference90 = obj73; - ref QuestSequence reference97 = ref span43[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span54 = CollectionsMarshal.AsSpan(list136); - span54[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron, @@ -313538,7 +378859,8 @@ public static class AssemblyQuestLoader } } }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj77.Steps = list136; reference97 = obj77; questRoot11.QuestSequence = list124; @@ -313548,13 +378870,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "plogon_enjoyer"; questRoot12.Author = list137; - num = 3; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span55 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference98 = ref span55[0]; + index = 3; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -313562,68 +378887,86 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj78.Steps = list139; reference98 = obj78; - ref QuestSequence reference99 = ref span55[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span56 = CollectionsMarshal.AsSpan(list140); - span56[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 6; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference100 = ref span56[1]; + num2++; + ref QuestStep reference100 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + span5 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep18.RequiredQuestAcceptedJob = list141; num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38284u, ItemCount = 3 }; questStep18.ItemsToGather = list142; reference100 = questStep18; - ref QuestStep reference101 = ref span56[2]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + span5 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep19.RequiredQuestAcceptedJob = list143; num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38308u, ItemCount = 3 }; questStep19.ItemsToGather = list144; reference101 = questStep19; - span56[3] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span56[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - span56[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); obj79.Steps = list140; reference99 = obj79; - ref QuestSequence reference102 = ref span55[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -313631,12 +378974,14 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span57 = CollectionsMarshal.AsSpan(list145); - span57[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960 }; - span57[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj80.Steps = list145; reference102 = obj80; questRoot12.QuestSequence = list138; @@ -313646,24 +378991,30 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "liza"; questRoot13.Author = list146; - num = 2; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span58 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference103 = ref span58[0]; + index = 2; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj81.Steps = list148; reference103 = obj81; - ref QuestSequence reference104 = ref span58[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -313671,47 +379022,59 @@ public static class AssemblyQuestLoader num2 = 4; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span59 = CollectionsMarshal.AsSpan(list149); - ref QuestStep reference105 = ref span59[0]; + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + span5 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list150; num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38283u, ItemCount = 3 }; questStep20.ItemsToGather = list151; reference105 = questStep20; - ref QuestStep reference106 = ref span59[1]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span5 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list152; num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38307u, ItemCount = 3 }; questStep21.ItemsToGather = list153; reference106 = questStep21; - span59[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj82.Steps = list149; reference104 = obj82; questRoot13.QuestSequence = list147; @@ -313721,24 +379084,30 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "liza"; questRoot14.Author = list154; - num = 3; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - Span span60 = CollectionsMarshal.AsSpan(list155); - ref QuestSequence reference107 = ref span60[0]; + index = 3; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj83.Steps = list156; reference107 = obj83; - ref QuestSequence reference108 = ref span60[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -313746,26 +379115,34 @@ public static class AssemblyQuestLoader num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span61 = CollectionsMarshal.AsSpan(list157); - ref QuestStep reference109 = ref span61[0]; + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1044048u, new Vector3(-347.70734f, 263.0844f, -463.73694f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span62 = CollectionsMarshal.AsSpan(list158); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span7 = CollectionsMarshal.AsSpan(list158); + 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); obj85.CompletionQuestVariablesFlags = list158; reference109 = obj85; - ref QuestStep reference110 = ref span61[1]; + index2++; + ref QuestStep reference110 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1044049u, new Vector3(-376.21124f, 266.08542f, -551.90356f), 960) { Fly = true @@ -313773,32 +379150,41 @@ public static class AssemblyQuestLoader num3 = 6; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span63 = CollectionsMarshal.AsSpan(list159); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list159; reference110 = obj86; obj84.Steps = list157; reference108 = obj84; - ref QuestSequence reference111 = ref span60[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span64 = CollectionsMarshal.AsSpan(list160); - span64[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj87.Steps = list160; reference111 = obj87; questRoot14.QuestSequence = list155; @@ -313808,13 +379194,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "plogon_enjoyer"; questRoot15.Author = list161; - num = 3; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span65 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference112 = ref span65[0]; + index = 3; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + span2 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -313822,64 +379211,80 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj88.Steps = list163; reference112 = obj88; - ref QuestSequence reference113 = ref span65[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span66 = CollectionsMarshal.AsSpan(list164); - span66[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 4; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference114 = ref span66[1]; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + span5 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep22.RequiredQuestAcceptedJob = list165; num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38285u, ItemCount = 3 }; questStep22.ItemsToGather = list166; reference114 = questStep22; - ref QuestStep reference115 = ref span66[2]; + num2++; + ref QuestStep reference115 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list167 = new List(index3); + CollectionsMarshal.SetCount(list167, index3); + span5 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep23.RequiredQuestAcceptedJob = list167; num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38309u, ItemCount = 3 }; questStep23.ItemsToGather = list168; reference115 = questStep23; - span66[3] = new QuestStep(EInteractionType.Interact, 1044050u, new Vector3(472.03772f, 437.00162f, 336.6598f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044050u, new Vector3(472.03772f, 437.00162f, 336.6598f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj89.Steps = list164; reference113 = obj89; - ref QuestSequence reference116 = ref span65[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -313887,13 +379292,15 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span67 = CollectionsMarshal.AsSpan(list169); - span67[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj90.Steps = list169; reference116 = obj90; questRoot15.QuestSequence = list162; @@ -313903,24 +379310,30 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "plogon_enjoyer"; questRoot16.Author = list170; - num = 2; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span68 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference117 = ref span68[0]; + index = 2; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj91.Steps = list172; reference117 = obj91; - ref QuestSequence reference118 = ref span68[1]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -313928,48 +379341,60 @@ public static class AssemblyQuestLoader num2 = 4; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span69 = CollectionsMarshal.AsSpan(list173); - ref QuestStep reference119 = ref span69[0]; + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference119 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list174 = new List(index3); + CollectionsMarshal.SetCount(list174, index3); + span5 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep24.RequiredQuestAcceptedJob = list174; num3 = 1; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list175); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38286u, ItemCount = 3 }; questStep24.ItemsToGather = list175; reference119 = questStep24; - ref QuestStep reference120 = ref span69[1]; + index2++; + ref QuestStep reference120 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + span5 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep25.RequiredQuestAcceptedJob = list176; num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38310u, ItemCount = 3 }; questStep25.ItemsToGather = list177; reference120 = questStep25; - span69[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span69[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj92.Steps = list173; reference118 = obj92; questRoot16.QuestSequence = list171; @@ -313979,24 +379404,30 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list178); + index = 0; + span[index] = "plogon_enjoyer"; questRoot17.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span70 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference121 = ref span70[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + span2 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj93.Steps = list180; reference121 = obj93; - ref QuestSequence reference122 = ref span70[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -314004,8 +379435,9 @@ public static class AssemblyQuestLoader num2 = 6; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span71 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference123 = ref span71[0]; + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1044051u, new Vector3(-543.20593f, 72.39467f, 298.146f), 960) { Fly = true, @@ -314018,24 +379450,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list182 = new List>(num3); - CollectionsMarshal.SetCount(list182, num3); - Span> span72 = CollectionsMarshal.AsSpan(list182); - span72[0] = null; - span72[1] = null; - span72[2] = null; - ref List reference124 = ref span72[3]; - num4 = 1; - List list183 = new List(num4); - CollectionsMarshal.SetCount(list183, num4); - CollectionsMarshal.AsSpan(list183)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list182 = new List>(index3); + CollectionsMarshal.SetCount(list182, index3); + span8 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference124 = ref span8[num3]; + num5 = 1; + List list183 = new List(num5); + CollectionsMarshal.SetCount(list183, num5); + span7 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference124 = list183; - span72[4] = null; - span72[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj95.RequiredQuestVariables = list182; reference123 = obj95; - ref QuestStep reference125 = ref span71[1]; + index2++; + ref QuestStep reference125 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1044052u, new Vector3(-110.27698f, 53.589848f, 538.41455f), 960) { Fly = true @@ -314043,21 +379484,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list184 = new List>(num3); CollectionsMarshal.SetCount(list184, num3); - Span> span73 = CollectionsMarshal.AsSpan(list184); - span73[0] = null; - span73[1] = null; - span73[2] = null; - ref List reference126 = ref span73[3]; + span8 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference126 = ref span8[index3]; num4 = 1; List list185 = new List(num4); CollectionsMarshal.SetCount(list185, num4); - CollectionsMarshal.AsSpan(list185)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list185); + num5 = 0; + span7[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference126 = list185; - span73[4] = null; - span73[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj96.RequiredQuestVariables = list184; reference125 = obj96; - ref QuestStep reference127 = ref span71[2]; + index2++; + ref QuestStep reference127 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1044054u, new Vector3(83.69568f, 269.0921f, -483.0854f), 960) { Fly = true, @@ -314070,24 +379520,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list186 = new List>(num3); - CollectionsMarshal.SetCount(list186, num3); - Span> span74 = CollectionsMarshal.AsSpan(list186); - span74[0] = null; - span74[1] = null; - span74[2] = null; - ref List reference128 = ref span74[3]; - num4 = 1; - List list187 = new List(num4); - CollectionsMarshal.SetCount(list187, num4); - CollectionsMarshal.AsSpan(list187)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list186 = new List>(index3); + CollectionsMarshal.SetCount(list186, index3); + span8 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference128 = ref span8[num3]; + num5 = 1; + List list187 = new List(num5); + CollectionsMarshal.SetCount(list187, num5); + span7 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference128 = list187; - span74[4] = null; - span74[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj97.RequiredQuestVariables = list186; reference127 = obj97; - ref QuestStep reference129 = ref span71[3]; + index2++; + ref QuestStep reference129 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1044053u, new Vector3(-225.66571f, 271.7499f, -308.6748f), 960) { Fly = true @@ -314095,21 +379554,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list188 = new List>(num3); CollectionsMarshal.SetCount(list188, num3); - Span> span75 = CollectionsMarshal.AsSpan(list188); - span75[0] = null; - span75[1] = null; - span75[2] = null; - ref List reference130 = ref span75[3]; + span8 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference130 = ref span8[index3]; num4 = 1; List list189 = new List(num4); CollectionsMarshal.SetCount(list189, num4); - CollectionsMarshal.AsSpan(list189)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list189); + num5 = 0; + span7[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference130 = list189; - span75[4] = null; - span75[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj98.RequiredQuestVariables = list188; reference129 = obj98; - ref QuestStep reference131 = ref span71[4]; + index2++; + ref QuestStep reference131 = ref span3[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1044056u, new Vector3(582.7573f, 441.71567f, 427.9392f), 960) { Fly = true, @@ -314122,24 +379590,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list190 = new List>(num3); - CollectionsMarshal.SetCount(list190, num3); - Span> span76 = CollectionsMarshal.AsSpan(list190); - span76[0] = null; - span76[1] = null; - span76[2] = null; - ref List reference132 = ref span76[3]; - num4 = 1; - List list191 = new List(num4); - CollectionsMarshal.SetCount(list191, num4); - CollectionsMarshal.AsSpan(list191)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list190 = new List>(index3); + CollectionsMarshal.SetCount(list190, index3); + span8 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference132 = ref span8[num3]; + num5 = 1; + List list191 = new List(num5); + CollectionsMarshal.SetCount(list191, num5); + span7 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference132 = list191; - span76[4] = null; - span76[5] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; obj99.RequiredQuestVariables = list190; reference131 = obj99; - ref QuestStep reference133 = ref span71[5]; + index2++; + ref QuestStep reference133 = ref span3[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1044055u, new Vector3(636.59106f, 438.6276f, 271.5343f), 960) { Fly = true @@ -314147,38 +379624,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list192 = new List>(num3); CollectionsMarshal.SetCount(list192, num3); - Span> span77 = CollectionsMarshal.AsSpan(list192); - span77[0] = null; - span77[1] = null; - span77[2] = null; - ref List reference134 = ref span77[3]; + span8 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + ref List reference134 = ref span8[index3]; num4 = 1; List list193 = new List(num4); CollectionsMarshal.SetCount(list193, num4); - CollectionsMarshal.AsSpan(list193)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list193); + num5 = 0; + span7[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference134 = list193; - span77[4] = null; - span77[5] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; obj100.RequiredQuestVariables = list192; reference133 = obj100; obj94.Steps = list181; reference122 = obj94; - ref QuestSequence reference135 = ref span70[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span78 = CollectionsMarshal.AsSpan(list194); - span78[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj101.Steps = list194; reference135 = obj101; questRoot17.QuestSequence = list179; @@ -314188,13 +379676,16 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list195); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list195; - num = 3; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span79 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference136 = ref span79[0]; + index = 3; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + span2 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -314202,64 +379693,80 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj102.Steps = list197; reference136 = obj102; - ref QuestSequence reference137 = ref span79[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span80 = CollectionsMarshal.AsSpan(list198); - span80[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 4; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference138 = ref span80[1]; + num2++; + ref QuestStep reference138 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + span5 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list199; num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38287u, ItemCount = 3 }; questStep26.ItemsToGather = list200; reference138 = questStep26; - ref QuestStep reference139 = ref span80[2]; + num2++; + ref QuestStep reference139 = ref span3[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span5 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list201; num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38311u, ItemCount = 3 }; questStep27.ItemsToGather = list202; reference139 = questStep27; - span80[3] = new QuestStep(EInteractionType.Interact, 1044057u, new Vector3(490.2876f, 436.9998f, 312.3064f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044057u, new Vector3(490.2876f, 436.9998f, 312.3064f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj103.Steps = list198; reference137 = obj103; - ref QuestSequence reference140 = ref span79[2]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -314267,13 +379774,15 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span81 = CollectionsMarshal.AsSpan(list203); - span81[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -314286,24 +379795,30 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list204); + index = 0; + span[index] = "pot0to"; questRoot19.Author = list204; - num = 3; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span82 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference141 = ref span82[0]; + index = 3; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + span2 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj105.Steps = list206; reference141 = obj105; - ref QuestSequence reference142 = ref span82[1]; + num++; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -314311,71 +379826,88 @@ public static class AssemblyQuestLoader num2 = 6; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span83 = CollectionsMarshal.AsSpan(list207); - span83[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference143 = ref span83[1]; + index2++; + ref QuestStep reference143 = ref span3[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span5 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep28.RequiredQuestAcceptedJob = list208; num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38288u, ItemCount = 3 }; questStep28.ItemsToGather = list209; reference143 = questStep28; - ref QuestStep reference144 = ref span83[2]; + index2++; + ref QuestStep reference144 = ref span3[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span5 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep29.RequiredQuestAcceptedJob = list210; num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38312u, ItemCount = 3 }; questStep29.ItemsToGather = list211; reference144 = questStep29; - span83[3] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span83[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - span83[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); obj106.Steps = list207; reference142 = obj106; - ref QuestSequence reference145 = ref span82[2]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span84 = CollectionsMarshal.AsSpan(list212); - span84[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960 }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj107.Steps = list212; reference145 = obj107; questRoot19.QuestSequence = list205; @@ -314385,13 +379917,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list213); + index = 0; + span[index] = "plogon_enjoyer"; questRoot20.Author = list213; - num = 3; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span85 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference146 = ref span85[0]; + index = 3; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + span2 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -314399,18 +379934,23 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj108.Steps = list215; reference146 = obj108; - ref QuestSequence reference147 = ref span85[1]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.UseItem, 1044058u, new Vector3(371.9386f, 288.95316f, -627.7409f), 960) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1044058u, new Vector3(371.9386f, 288.95316f, -627.7409f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa, @@ -314418,7 +379958,8 @@ public static class AssemblyQuestLoader }; obj109.Steps = list216; reference147 = obj109; - ref QuestSequence reference148 = ref span85[2]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -314426,14 +379967,16 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span86 = CollectionsMarshal.AsSpan(list217); - span86[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Fly = true }; @@ -314446,24 +379989,30 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot21.Author = list218; - num = 4; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span87 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference149 = ref span87[0]; + index = 4; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj111.Steps = list220; reference149 = obj111; - ref QuestSequence reference150 = ref span87[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -314471,61 +380020,76 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span88 = CollectionsMarshal.AsSpan(list221); - span88[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); obj112.Steps = list221; reference150 = obj112; - ref QuestSequence reference151 = ref span87[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span89 = CollectionsMarshal.AsSpan(list222); - ref QuestStep reference152 = ref span89[0]; + index2 = 3; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list223 = new List(index3); + CollectionsMarshal.SetCount(list223, index3); + span5 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep30.RequiredQuestAcceptedJob = list223; num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38289u, ItemCount = 3 }; questStep30.ItemsToGather = list224; reference152 = questStep30; - ref QuestStep reference153 = ref span89[1]; + num2++; + ref QuestStep reference153 = ref span3[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + span5 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep31.RequiredQuestAcceptedJob = list225; num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38313u, ItemCount = 3 }; questStep31.ItemsToGather = list226; reference153 = questStep31; - span89[2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); obj113.Steps = list222; reference151 = obj113; - ref QuestSequence reference154 = ref span87[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -314533,12 +380097,14 @@ public static class AssemblyQuestLoader num2 = 2; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span90 = CollectionsMarshal.AsSpan(list227); - span90[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj114.Steps = list227; reference154 = obj114; questRoot21.QuestSequence = list219; @@ -314548,24 +380114,30 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "liza"; questRoot22.Author = list228; - num = 4; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span91 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference155 = ref span91[0]; + index = 4; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + span2 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj115.Steps = list230; reference155 = obj115; - ref QuestSequence reference156 = ref span91[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -314573,40 +380145,51 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1044060u, new Vector3(57.75537f, 269.00012f, -674.49457f), 960) + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044060u, new Vector3(57.75537f, 269.00012f, -674.49457f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj116.Steps = list231; reference156 = obj116; - ref QuestSequence reference157 = ref span91[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span92 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference158 = ref span92[0]; + index2 = 2; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Action, 1044063u, new Vector3(-193.53015f, 269.23087f, -315.63293f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span93 = CollectionsMarshal.AsSpan(list233); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list233 = new List(index3); + CollectionsMarshal.SetCount(list233, index3); + span7 = CollectionsMarshal.AsSpan(list233); + 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); obj118.CompletionQuestVariablesFlags = list233; reference158 = obj118; - ref QuestStep reference159 = ref span92[1]; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Action, 1044062u, new Vector3(-213.42798f, 268.01166f, -299.5194f), 960) { Fly = true, @@ -314615,18 +380198,25 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span94 = CollectionsMarshal.AsSpan(list234); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list234; reference159 = obj119; obj117.Steps = list232; reference157 = obj117; - ref QuestSequence reference160 = ref span91[3]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -314634,13 +380224,15 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span95 = CollectionsMarshal.AsSpan(list235); - span95[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj120.Steps = list235; reference160 = obj120; questRoot22.QuestSequence = list229; @@ -314650,24 +380242,30 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "liza"; questRoot23.Author = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span96 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference161 = ref span96[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj121.Steps = list238; reference161 = obj121; - ref QuestSequence reference162 = ref span96[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -314675,63 +380273,77 @@ public static class AssemblyQuestLoader num2 = 3; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span97 = CollectionsMarshal.AsSpan(list239); - ref QuestStep reference163 = ref span97[0]; + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + ref QuestStep reference163 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + span5 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list240; num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list241); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38290u, ItemCount = 3 }; questStep32.ItemsToGather = list241; reference163 = questStep32; - ref QuestStep reference164 = ref span97[1]; + index2++; + ref QuestStep reference164 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list242 = new List(index3); + CollectionsMarshal.SetCount(list242, index3); + span5 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list242; num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38314u, ItemCount = 3 }; questStep33.ItemsToGather = list243; reference164 = questStep33; - span97[2] = new QuestStep(EInteractionType.Interact, 1044064u, new Vector3(86.503296f, 269.08234f, -515.0683f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044064u, new Vector3(86.503296f, 269.08234f, -515.0683f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj122.Steps = list239; reference162 = obj122; - ref QuestSequence reference165 = ref span96[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span98 = CollectionsMarshal.AsSpan(list244); - span98[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj123.Steps = list244; reference165 = obj123; questRoot23.QuestSequence = list237; @@ -314741,13 +380353,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "plogon_enjoyer"; questRoot24.Author = list245; - num = 3; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span99 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference166 = ref span99[0]; + index = 3; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -314755,63 +380370,79 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj124.Steps = list247; reference166 = obj124; - ref QuestSequence reference167 = ref span99[1]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span100 = CollectionsMarshal.AsSpan(list248); - span100[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 4; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference168 = ref span100[1]; + num2++; + ref QuestStep reference168 = ref span3[num2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + span5 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep34.RequiredQuestAcceptedJob = list249; num3 = 1; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38291u, ItemCount = 3 }; questStep34.ItemsToGather = list250; reference168 = questStep34; - ref QuestStep reference169 = ref span100[2]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + span5 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep35.RequiredQuestAcceptedJob = list251; num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38315u, ItemCount = 3 }; questStep35.ItemsToGather = list252; reference169 = questStep35; - span100[3] = new QuestStep(EInteractionType.Interact, 1044065u, new Vector3(478.9348f, 437.0016f, 340.505f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044065u, new Vector3(478.9348f, 437.0016f, 340.505f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj125.Steps = list248; reference167 = obj125; - ref QuestSequence reference170 = ref span99[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -314819,13 +380450,15 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span101 = CollectionsMarshal.AsSpan(list253); - span101[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj126.Steps = list253; reference170 = obj126; questRoot24.QuestSequence = list246; @@ -314835,24 +380468,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "plogon_enjoyer"; questRoot25.Author = list254; - num = 4; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span102 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference171 = ref span102[0]; + index = 4; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj127.Steps = list256; reference171 = obj127; - ref QuestSequence reference172 = ref span102[1]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -314860,40 +380499,46 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span103 = CollectionsMarshal.AsSpan(list257); - span103[0] = new QuestStep(EInteractionType.Interact, 2013073u, new Vector3(334.37085f, 483.17688f, 158.28174f), 960) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013073u, new Vector3(334.37085f, 483.17688f, 158.28174f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span103[1] = new QuestStep(EInteractionType.Interact, 1044066u, new Vector3(493.58362f, 436.99985f, 317.09766f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044066u, new Vector3(493.58362f, 436.99985f, 317.09766f), 960) { Fly = true }; obj128.Steps = list257; reference172 = obj128; - ref QuestSequence reference173 = ref span102[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span104 = CollectionsMarshal.AsSpan(list258); - span104[0] = new QuestStep(EInteractionType.Action, 1044068u, new Vector3(638.5748f, 438.6276f, 260.3341f), 960) + index2 = 2; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1044068u, new Vector3(638.5748f, 438.6276f, 260.3341f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - span104[1] = new QuestStep(EInteractionType.Action, 1044069u, new Vector3(668.0552f, 440.4633f, 360.79956f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 1044069u, new Vector3(668.0552f, 440.4633f, 360.79956f), 960) { Fly = true, Action = EAction.ElectrixFlux }; obj129.Steps = list258; reference173 = obj129; - ref QuestSequence reference174 = ref span102[3]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -314901,14 +380546,16 @@ public static class AssemblyQuestLoader num2 = 2; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span105 = CollectionsMarshal.AsSpan(list259); - span105[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -314921,24 +380568,30 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list260); + index = 0; + span[index] = "plogon_enjoyer"; questRoot26.Author = list260; - num = 3; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span106 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference175 = ref span106[0]; + index = 3; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + span2 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj131.Steps = list262; reference175 = obj131; - ref QuestSequence reference176 = ref span106[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -314946,68 +380599,83 @@ public static class AssemblyQuestLoader num2 = 4; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span107 = CollectionsMarshal.AsSpan(list263); - span107[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference177 = ref span107[1]; + index2++; + ref QuestStep reference177 = ref span3[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list264 = new List(index3); + CollectionsMarshal.SetCount(list264, index3); + span5 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep36.RequiredQuestAcceptedJob = list264; num3 = 1; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list265); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38292u, ItemCount = 3 }; questStep36.ItemsToGather = list265; reference177 = questStep36; - ref QuestStep reference178 = ref span107[2]; + index2++; + ref QuestStep reference178 = ref span3[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list266 = new List(index3); + CollectionsMarshal.SetCount(list266, index3); + span5 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep37.RequiredQuestAcceptedJob = list266; num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38316u, ItemCount = 3 }; questStep37.ItemsToGather = list267; reference178 = questStep37; - span107[3] = new QuestStep(EInteractionType.Interact, 1044070u, new Vector3(132.34143f, 269.00006f, -654.6273f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044070u, new Vector3(132.34143f, 269.00006f, -654.6273f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj132.Steps = list263; reference176 = obj132; - ref QuestSequence reference179 = ref span106[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span108 = CollectionsMarshal.AsSpan(list268); - span108[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -315020,13 +380688,16 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list269); + index = 0; + span[index] = "plogon_enjoyer"; questRoot27.Author = list269; - num = 3; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span109 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference180 = ref span109[0]; + index = 3; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + span2 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -315034,75 +380705,93 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj134.Steps = list271; reference180 = obj134; - ref QuestSequence reference181 = ref span109[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span110 = CollectionsMarshal.AsSpan(list272); - span110[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + index2 = 6; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference182 = ref span110[1]; + num2++; + ref QuestStep reference182 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - CollectionsMarshal.AsSpan(list273)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + span5 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list273; num3 = 1; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list274); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38293u, ItemCount = 3 }; questStep38.ItemsToGather = list274; reference182 = questStep38; - ref QuestStep reference183 = ref span110[2]; + num2++; + ref QuestStep reference183 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list275 = new List(index3); + CollectionsMarshal.SetCount(list275, index3); + span5 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list275; num3 = 1; List list276 = new List(num3); CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list276); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38317u, ItemCount = 3 }; questStep39.ItemsToGather = list276; reference183 = questStep39; - span110[3] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span110[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Mount = true, Fly = true }; - span110[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960) { Fly = true }; obj135.Steps = list272; reference181 = obj135; - ref QuestSequence reference184 = ref span109[2]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -315110,13 +380799,15 @@ public static class AssemblyQuestLoader num2 = 2; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span111 = CollectionsMarshal.AsSpan(list277); - span111[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Fly = true }; @@ -315129,24 +380820,30 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list278); + index = 0; + span[index] = "liza"; questRoot28.Author = list278; - num = 3; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span112 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference185 = ref span112[0]; + index = 3; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + span2 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj137.Steps = list280; reference185 = obj137; - ref QuestSequence reference186 = ref span112[1]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -315154,63 +380851,77 @@ public static class AssemblyQuestLoader num2 = 3; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span113 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference187 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference187 = ref span3[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + span5 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep40.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38294u, ItemCount = 3 }; questStep40.ItemsToGather = list283; reference187 = questStep40; - ref QuestStep reference188 = ref span113[1]; + index2++; + ref QuestStep reference188 = ref span3[index2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + span5 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep41.RequiredQuestAcceptedJob = list284; num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38318u, ItemCount = 3 }; questStep41.ItemsToGather = list285; reference188 = questStep41; - span113[2] = new QuestStep(EInteractionType.Interact, 1044071u, new Vector3(46.066895f, 268.99976f, -584.77155f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044071u, new Vector3(46.066895f, 268.99976f, -584.77155f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj138.Steps = list281; reference186 = obj138; - ref QuestSequence reference189 = ref span112[2]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span114 = CollectionsMarshal.AsSpan(list286); - span114[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj139.Steps = list286; reference189 = obj139; questRoot28.QuestSequence = list279; @@ -315220,13 +380931,16 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "liza"; questRoot29.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span115 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference190 = ref span115[0]; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -315234,24 +380948,30 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj140.Steps = list289; reference190 = obj140; - ref QuestSequence reference191 = ref span115[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1044072u, new Vector3(-541.9547f, 74.3691f, 208.39233f), 960) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044072u, new Vector3(-541.9547f, 74.3691f, 208.39233f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj141.Steps = list290; reference191 = obj141; - ref QuestSequence reference192 = ref span115[2]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 @@ -315259,26 +380979,34 @@ public static class AssemblyQuestLoader num2 = 2; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span116 = CollectionsMarshal.AsSpan(list291); - ref QuestStep reference193 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference193 = ref span3[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Action, 2013132u, new Vector3(-327.04663f, 88.48706f, 293.04944f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - num3 = 6; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span117 = CollectionsMarshal.AsSpan(list292); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list292 = new List(index3); + CollectionsMarshal.SetCount(list292, index3); + span7 = CollectionsMarshal.AsSpan(list292); + 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); obj143.CompletionQuestVariablesFlags = list292; reference193 = obj143; - ref QuestStep reference194 = ref span116[1]; + index2++; + ref QuestStep reference194 = ref span3[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Action, 2013131u, new Vector3(-324.8493f, 88.05969f, 269.79468f), 960) { Fly = true, @@ -315287,32 +381015,41 @@ public static class AssemblyQuestLoader num3 = 6; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - Span span118 = CollectionsMarshal.AsSpan(list293); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list293; reference194 = obj144; obj142.Steps = list291; reference192 = obj142; - ref QuestSequence reference195 = ref span115[3]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span119 = CollectionsMarshal.AsSpan(list294); - span119[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj145.Steps = list294; reference195 = obj145; questRoot29.QuestSequence = list288; @@ -315322,13 +381059,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; questRoot30.Author = list295; - num = 3; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span120 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference196 = ref span120[0]; + index = 3; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -315336,59 +381076,74 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj146.Steps = list297; reference196 = obj146; - ref QuestSequence reference197 = ref span120[1]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span121 = CollectionsMarshal.AsSpan(list298); - ref QuestStep reference198 = ref span121[0]; + index2 = 3; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference198 = ref span3[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list299 = new List(index3); + CollectionsMarshal.SetCount(list299, index3); + span5 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep42.RequiredQuestAcceptedJob = list299; num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38295u, ItemCount = 3 }; questStep42.ItemsToGather = list300; reference198 = questStep42; - ref QuestStep reference199 = ref span121[1]; + num2++; + ref QuestStep reference199 = ref span3[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list301 = new List(index3); + CollectionsMarshal.SetCount(list301, index3); + span5 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep43.RequiredQuestAcceptedJob = list301; num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38319u, ItemCount = 3 }; questStep43.ItemsToGather = list302; reference199 = questStep43; - span121[2] = new QuestStep(EInteractionType.Interact, 1044074u, new Vector3(-585.90063f, 75.22713f, 256.67188f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044074u, new Vector3(-585.90063f, 75.22713f, 256.67188f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj147.Steps = list298; reference197 = obj147; - ref QuestSequence reference200 = ref span120[2]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -315396,13 +381151,15 @@ public static class AssemblyQuestLoader num2 = 2; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span122 = CollectionsMarshal.AsSpan(list303); - span122[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj148.Steps = list303; reference200 = obj148; questRoot30.QuestSequence = list296; @@ -315412,24 +381169,30 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "liza"; questRoot31.Author = list304; - num = 4; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span123 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference201 = ref span123[0]; + index = 4; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + span2 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj149.Steps = list306; reference201 = obj149; - ref QuestSequence reference202 = ref span123[1]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -315437,61 +381200,76 @@ public static class AssemblyQuestLoader num2 = 2; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span124 = CollectionsMarshal.AsSpan(list307); - span124[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - span124[1] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); obj150.Steps = list307; reference202 = obj150; - ref QuestSequence reference203 = ref span123[2]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - Span span125 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference204 = ref span125[0]; + index2 = 3; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list309 = new List(index3); + CollectionsMarshal.SetCount(list309, index3); + span5 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list309; num3 = 1; List list310 = new List(num3); CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list310); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38296u, ItemCount = 3 }; questStep44.ItemsToGather = list310; reference204 = questStep44; - ref QuestStep reference205 = ref span125[1]; + num2++; + ref QuestStep reference205 = ref span3[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + span5 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list311; num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38320u, ItemCount = 3 }; questStep45.ItemsToGather = list312; reference205 = questStep45; - span125[2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); obj151.Steps = list308; reference203 = obj151; - ref QuestSequence reference206 = ref span123[3]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -315499,12 +381277,14 @@ public static class AssemblyQuestLoader num2 = 2; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span126 = CollectionsMarshal.AsSpan(list313); - span126[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + span3 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj152.Steps = list313; reference206 = obj152; questRoot31.QuestSequence = list305; @@ -315514,24 +381294,30 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list314); + index = 0; + span[index] = "liza"; questRoot32.Author = list314; - num = 3; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span127 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference207 = ref span127[0]; + index = 3; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + span2 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj153.Steps = list316; reference207 = obj153; - ref QuestSequence reference208 = ref span127[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -315539,63 +381325,77 @@ public static class AssemblyQuestLoader num2 = 3; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span128 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference209 = ref span128[0]; + span3 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; QuestStep questStep46 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + span5 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; questStep46.RequiredQuestAcceptedJob = list318; num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - CollectionsMarshal.AsSpan(list319)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38297u, ItemCount = 3 }; questStep46.ItemsToGather = list319; reference209 = questStep46; - ref QuestStep reference210 = ref span128[1]; + index2++; + ref QuestStep reference210 = ref span3[index2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span5 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; questStep47.RequiredQuestAcceptedJob = list320; num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38321u, ItemCount = 3 }; questStep47.ItemsToGather = list321; reference210 = questStep47; - span128[2] = new QuestStep(EInteractionType.Interact, 1044076u, new Vector3(-499.96188f, 77.00467f, 241.07727f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044076u, new Vector3(-499.96188f, 77.00467f, 241.07727f), 960) { StopDistance = 9f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj154.Steps = list317; reference208 = obj154; - ref QuestSequence reference211 = ref span127[2]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - Span span129 = CollectionsMarshal.AsSpan(list322); - span129[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj155.Steps = list322; reference211 = obj155; questRoot32.QuestSequence = list315; @@ -315605,13 +381405,16 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - CollectionsMarshal.AsSpan(list323)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list323); + index = 0; + span[index] = "liza"; questRoot33.Author = list323; - num = 3; - List list324 = new List(num); - CollectionsMarshal.SetCount(list324, num); - Span span130 = CollectionsMarshal.AsSpan(list324); - ref QuestSequence reference212 = ref span130[0]; + index = 3; + List list324 = new List(index); + CollectionsMarshal.SetCount(list324, index); + span2 = CollectionsMarshal.AsSpan(list324); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -315619,62 +381422,77 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj156.Steps = list325; reference212 = obj156; - ref QuestSequence reference213 = ref span130[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - Span span131 = CollectionsMarshal.AsSpan(list326); - ref QuestStep reference214 = ref span131[0]; + index2 = 3; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + ref QuestStep reference214 = ref span3[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Gather, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; - num3 = 1; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list327 = new List(index3); + CollectionsMarshal.SetCount(list327, index3); + span5 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span5[num3] = EExtendedClassJob.Miner; obj158.RequiredQuestAcceptedJob = list327; num3 = 1; List list328 = new List(num3); CollectionsMarshal.SetCount(list328, num3); - CollectionsMarshal.AsSpan(list328)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list328); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38299u, ItemCount = 3 }; obj158.ItemsToGather = list328; reference214 = obj158; - ref QuestStep reference215 = ref span131[1]; + num2++; + ref QuestStep reference215 = ref span3[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Gather, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list329 = new List(index3); + CollectionsMarshal.SetCount(list329, index3); + span5 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span5[num3] = EExtendedClassJob.Botanist; obj159.RequiredQuestAcceptedJob = list329; num3 = 1; List list330 = new List(num3); CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new GatheredItem + span6 = CollectionsMarshal.AsSpan(list330); + index3 = 0; + span6[index3] = new GatheredItem { ItemId = 38323u, ItemCount = 3 }; obj159.ItemsToGather = list330; reference215 = obj159; - span131[2] = new QuestStep(EInteractionType.Interact, 1044081u, new Vector3(-503.99023f, 74.16917f, 261.82947f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044081u, new Vector3(-503.99023f, 74.16917f, 261.82947f), 960); obj157.Steps = list326; reference213 = obj157; - ref QuestSequence reference216 = ref span130[2]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -315682,13 +381500,15 @@ public static class AssemblyQuestLoader num2 = 2; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span132 = CollectionsMarshal.AsSpan(list331); - span132[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj160.Steps = list331; reference216 = obj160; questRoot33.QuestSequence = list324; @@ -315698,24 +381518,30 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "liza"; questRoot34.Author = list332; - num = 4; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span133 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference217 = ref span133[0]; + index = 4; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj161.Steps = list334; reference217 = obj161; - ref QuestSequence reference218 = ref span133[1]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -315723,16 +381549,20 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list335)[0]; + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + ref QuestStep reference219 = ref span3[index2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1044078u, new Vector3(97.154175f, 269.09738f, -498.3139f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = new DialogueChoice + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + span4 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANOMI127_04633_Q1_000_000"), @@ -315742,21 +381572,25 @@ public static class AssemblyQuestLoader reference219 = obj163; obj162.Steps = list335; reference218 = obj162; - ref QuestSequence reference220 = ref span133[2]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1044079u, new Vector3(99.412476f, 269.09763f, -497.1237f), 960) + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044079u, new Vector3(99.412476f, 269.09763f, -497.1237f), 960) { StopDistance = 5f }; obj164.Steps = list337; reference220 = obj164; - ref QuestSequence reference221 = ref span133[3]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -315764,13 +381598,15 @@ public static class AssemblyQuestLoader num2 = 2; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span134 = CollectionsMarshal.AsSpan(list338); - span134[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span134[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj165.Steps = list338; reference221 = obj165; questRoot34.QuestSequence = list333; @@ -315780,24 +381616,30 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list339); + index = 0; + span[index] = "plogon_enjoyer"; questRoot35.Author = list339; - num = 3; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span135 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference222 = ref span135[0]; + index = 3; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + span2 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj166.Steps = list341; reference222 = obj166; - ref QuestSequence reference223 = ref span135[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -315805,66 +381647,81 @@ public static class AssemblyQuestLoader num2 = 4; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span136 = CollectionsMarshal.AsSpan(list342); - span136[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference224 = ref span136[1]; + index2++; + ref QuestStep reference224 = ref span3[index2]; QuestStep questStep48 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = EExtendedClassJob.Miner; + span5 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span5[index3] = EExtendedClassJob.Miner; questStep48.RequiredQuestAcceptedJob = list343; - num3 = 1; - List list344 = new List(num3); - CollectionsMarshal.SetCount(list344, num3); - CollectionsMarshal.AsSpan(list344)[0] = new GatheredItem + index3 = 1; + List list344 = new List(index3); + CollectionsMarshal.SetCount(list344, index3); + span6 = CollectionsMarshal.AsSpan(list344); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38298u, ItemCount = 3 }; questStep48.ItemsToGather = list344; reference224 = questStep48; - ref QuestStep reference225 = ref span136[2]; + index2++; + ref QuestStep reference225 = ref span3[index2]; QuestStep questStep49 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list345 = new List(num3); CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = EExtendedClassJob.Botanist; + span5 = CollectionsMarshal.AsSpan(list345); + index3 = 0; + span5[index3] = EExtendedClassJob.Botanist; questStep49.RequiredQuestAcceptedJob = list345; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = new GatheredItem + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + span6 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 38322u, ItemCount = 3 }; questStep49.ItemsToGather = list346; reference225 = questStep49; - span136[3] = new QuestStep(EInteractionType.Interact, 1044077u, new Vector3(474.9674f, 437.00165f, 338.094f), 960) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044077u, new Vector3(474.9674f, 437.00165f, 338.094f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj167.Steps = list342; reference223 = obj167; - ref QuestSequence reference226 = ref span135[2]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - Span span137 = CollectionsMarshal.AsSpan(list347); - span137[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span137[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj168.Steps = list347; reference226 = obj168; questRoot35.QuestSequence = list340; @@ -315874,13 +381731,16 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list348); + index = 0; + span[index] = "liza"; questRoot36.Author = list348; - num = 5; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span138 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference227 = ref span138[0]; + index = 5; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + span2 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -315888,7 +381748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041258u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041258u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, SkipConditions = new SkipConditions @@ -315901,22 +381763,26 @@ public static class AssemblyQuestLoader }; obj169.Steps = list350; reference227 = obj169; - ref QuestSequence reference228 = ref span138[1]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1041270u, new Vector3(-830.5333f, 169.52928f, -56.809387f), 961) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + span3 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041270u, new Vector3(-830.5333f, 169.52928f, -56.809387f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; obj170.Steps = list351; reference228 = obj170; - ref QuestSequence reference229 = ref span138[2]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -315924,28 +381790,34 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1043488u, new Vector3(643.48804f, 158.6388f, -254.35266f), 961) + span3 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043488u, new Vector3(643.48804f, 158.6388f, -254.35266f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; obj171.Steps = list352; reference229 = obj171; - ref QuestSequence reference230 = ref span138[3]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + span3 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) { Fly = true }; obj172.Steps = list353; reference230 = obj172; - ref QuestSequence reference231 = ref span138[4]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -315953,7 +381825,9 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) + span3 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4636) @@ -315967,27 +381841,33 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list355); + index = 0; + span[index] = "liza"; questRoot37.Author = list355; - num = 3; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span139 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference232 = ref span139[0]; + index = 3; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + span2 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) { StopDistance = 4f }; obj174.Steps = list357; reference232 = obj174; - ref QuestSequence reference233 = ref span139[1]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -315995,7 +381875,9 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + span3 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316004,15 +381886,18 @@ public static class AssemblyQuestLoader }; obj175.Steps = list358; reference233 = obj175; - ref QuestSequence reference234 = ref span139[2]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043492u, new Vector3(100.175415f, -9.999999E-12f, -25.833557f), 1025) + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + span3 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043492u, new Vector3(100.175415f, -9.999999E-12f, -25.833557f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4637) @@ -316026,13 +381911,16 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list360); + index = 0; + span[index] = "liza"; questRoot38.Author = list360; - num = 5; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span140 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference235 = ref span140[0]; + index = 5; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + span2 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -316040,21 +381928,27 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043491u, new Vector3(101.79285f, -1E-11f, -26.901672f), 1025); + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043491u, new Vector3(101.79285f, -1E-11f, -26.901672f), 1025); obj177.Steps = list362; reference235 = obj177; - ref QuestSequence reference236 = ref span140[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1043494u, new Vector3(99.99231f, -9.999997E-12f, 99.83972f), 1025); + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043494u, new Vector3(99.99231f, -9.999997E-12f, 99.83972f), 1025); obj178.Steps = list363; reference236 = obj178; - ref QuestSequence reference237 = ref span140[2]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -316062,18 +381956,23 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1043493u, new Vector3(98.31384f, -9.999999E-12f, -26.901672f), 1025); + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043493u, new Vector3(98.31384f, -9.999999E-12f, -26.901672f), 1025); obj179.Steps = list364; reference237 = obj179; - ref QuestSequence reference238 = ref span140[3]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316082,7 +381981,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list365; reference238 = obj180; - ref QuestSequence reference239 = ref span140[4]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -316090,7 +381990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4638) @@ -316104,27 +382006,33 @@ public static class AssemblyQuestLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - CollectionsMarshal.AsSpan(list367)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list367); + index = 0; + span[index] = "liza"; questRoot39.Author = list367; - num = 4; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - Span span141 = CollectionsMarshal.AsSpan(list368); - ref QuestSequence reference240 = ref span141[0]; + index = 4; + List list368 = new List(index); + CollectionsMarshal.SetCount(list368, index); + span2 = CollectionsMarshal.AsSpan(list368); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + span3 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) { StopDistance = 4f }; obj182.Steps = list369; reference240 = obj182; - ref QuestSequence reference241 = ref span141[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -316132,21 +382040,26 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1043785u, new Vector3(98.55798f, -1E-11f, -26.474487f), 1025) + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043785u, new Vector3(98.55798f, -1E-11f, -26.474487f), 1025) { StopDistance = 4f }; obj183.Steps = list370; reference241 = obj183; - ref QuestSequence reference242 = ref span141[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316155,7 +382068,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list371; reference242 = obj184; - ref QuestSequence reference243 = ref span141[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -316163,7 +382077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) + span3 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4639) @@ -316177,27 +382093,33 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - CollectionsMarshal.AsSpan(list373)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list373); + index = 0; + span[index] = "liza"; questRoot40.Author = list373; - num = 3; - List list374 = new List(num); - CollectionsMarshal.SetCount(list374, num); - Span span142 = CollectionsMarshal.AsSpan(list374); - ref QuestSequence reference244 = ref span142[0]; + index = 3; + List list374 = new List(index); + CollectionsMarshal.SetCount(list374, index); + span2 = CollectionsMarshal.AsSpan(list374); + num = 0; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + span3 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) { StopDistance = 4f }; obj186.Steps = list375; reference244 = obj186; - ref QuestSequence reference245 = ref span142[1]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -316205,7 +382127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + span3 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316214,15 +382138,18 @@ public static class AssemblyQuestLoader }; obj187.Steps = list376; reference245 = obj187; - ref QuestSequence reference246 = ref span142[2]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) { StopDistance = 6f, NextQuestId = new QuestId(4640) @@ -316236,13 +382163,16 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list378); + index = 0; + span[index] = "liza"; questRoot41.Author = list378; - num = 5; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span143 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference247 = ref span143[0]; + index = 5; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + span2 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -316250,24 +382180,30 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) { StopDistance = 6f }; obj189.Steps = list380; reference247 = obj189; - ref QuestSequence reference248 = ref span143[1]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1043499u, new Vector3(100.35852f, 0f, 94.71277f), 1093); + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043499u, new Vector3(100.35852f, 0f, 94.71277f), 1093); obj190.Steps = list381; reference248 = obj190; - ref QuestSequence reference249 = ref span143[2]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -316275,29 +382211,35 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span144 = CollectionsMarshal.AsSpan(list382); - span144[0] = new QuestStep(EInteractionType.Interact, 2013032u, new Vector3(99.9981f, 1.1515f, 120.2372f), 1093) + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013032u, new Vector3(99.9981f, 1.1515f, 120.2372f), 1093) { TargetTerritoryId = (ushort)1025 }; - span144[1] = new QuestStep(EInteractionType.Interact, 1043500u, new Vector3(99.809204f, -1E-11f, -25.68097f), 1025); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1043500u, new Vector3(99.809204f, -1E-11f, -25.68097f), 1025); obj191.Steps = list382; reference249 = obj191; - ref QuestSequence reference250 = ref span143[3]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1043503u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + span3 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043503u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj192.Steps = list383; reference250 = obj192; - ref QuestSequence reference251 = ref span143[4]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -316305,7 +382247,9 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { NextQuestId = new QuestId(4756) }; @@ -316318,33 +382262,40 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list385); + index = 0; + span[index] = "liza"; questRoot42.Author = list385; - num = 10; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span145 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference252 = ref span145[0]; + index = 10; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + span2 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list387)[0]; + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + span3 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + ref QuestStep reference253 = ref span3[num2]; QuestStep questStep50 = new QuestStep(EInteractionType.AcceptQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963); num3 = 2; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - Span span146 = CollectionsMarshal.AsSpan(list388); - span146[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB821_04641_Q2_000_000"), Answer = new ExcelRef("TEXT_CHRHDB821_04641_A2_000_002") }; - span146[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB821_04641_Q3_000_000"), @@ -316354,7 +382305,8 @@ public static class AssemblyQuestLoader reference253 = questStep50; obj194.Steps = list387; reference252 = obj194; - ref QuestSequence reference254 = ref span145[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 @@ -316362,36 +382314,43 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1042524u, new Vector3(-432.70013f, 22.328213f, 508.75085f), 958) + span3 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042524u, new Vector3(-432.70013f, 22.328213f, 508.75085f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj195.Steps = list389; reference254 = obj195; - ref QuestSequence reference255 = ref span145[2]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - Span span147 = CollectionsMarshal.AsSpan(list390); - span147[0] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) + index2 = 3; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + span3 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) { StopDistance = 0.5f, TargetTerritoryId = (ushort)1024, Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - span147[1] = new QuestStep(EInteractionType.Interact, 2012529u, new Vector3(0.07623291f, 0.83917236f, 52.506226f), 1024) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012529u, new Vector3(0.07623291f, 0.83917236f, 52.506226f), 1024) { TargetTerritoryId = (ushort)958 }; - span147[2] = new QuestStep(EInteractionType.Interact, 1042525u, new Vector3(-446.0365f, 10.5f, -616.14404f), 958); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042525u, new Vector3(-446.0365f, 10.5f, -616.14404f), 958); obj196.Steps = list390; reference255 = obj196; - ref QuestSequence reference256 = ref span145[3]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 @@ -316399,24 +382358,30 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1042526u, new Vector3(-657.9232f, 130.61172f, 722.62134f), 959) + span3 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042526u, new Vector3(-657.9232f, 130.61172f, 722.62134f), 959) { StopDistance = 7f }; obj197.Steps = list391; reference256 = obj197; - ref QuestSequence reference257 = ref span145[4]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1042528u, new Vector3(-15.213318f, -129.20917f, -475.6695f), 959); + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + span3 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042528u, new Vector3(-15.213318f, -129.20917f, -475.6695f), 959); obj198.Steps = list392; reference257 = obj198; - ref QuestSequence reference258 = ref span145[5]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 5 @@ -316424,29 +382389,35 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Interact, 1042531u, new Vector3(-103.07471f, -137.41672f, -444.66315f), 959) + span3 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042531u, new Vector3(-103.07471f, -137.41672f, -444.66315f), 959) { Fly = true }; obj199.Steps = list393; reference258 = obj199; - ref QuestSequence reference259 = ref span145[6]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span148 = CollectionsMarshal.AsSpan(list394); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.250706f, -133.00002f, -587.20355f), 959) + index2 = 2; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + span3 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.250706f, -133.00002f, -587.20355f), 959) { Fly = true }; - span148[1] = new QuestStep(EInteractionType.Interact, 1042532u, new Vector3(-60.624146f, -132.80109f, -587.4266f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042532u, new Vector3(-60.624146f, -132.80109f, -587.4266f), 959); obj200.Steps = list394; reference259 = obj200; - ref QuestSequence reference260 = ref span145[7]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 7 @@ -316454,18 +382425,23 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1037816u, new Vector3(114.3053f, -132.87448f, -559.35f), 959); + span3 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037816u, new Vector3(114.3053f, -132.87448f, -559.35f), 959); obj201.Steps = list395; reference260 = obj201; - ref QuestSequence reference261 = ref span145[8]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 2013061u, new Vector3(249.19507f, 66.544556f, 367.2693f), 959) + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + span3 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013061u, new Vector3(249.19507f, 66.544556f, 367.2693f), 959) { StopDistance = 0.5f, Fly = true, @@ -316473,7 +382449,8 @@ public static class AssemblyQuestLoader }; obj202.Steps = list396; reference261 = obj202; - ref QuestSequence reference262 = ref span145[9]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -316481,7 +382458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) + span3 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) { StopDistance = 7f, NextQuestId = new QuestId(4642) @@ -316495,27 +382474,33 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - CollectionsMarshal.AsSpan(list398)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list398); + index = 0; + span[index] = "liza"; questRoot43.Author = list398; - num = 6; - List list399 = new List(num); - CollectionsMarshal.SetCount(list399, num); - Span span149 = CollectionsMarshal.AsSpan(list399); - ref QuestSequence reference263 = ref span149[0]; + index = 6; + List list399 = new List(index); + CollectionsMarshal.SetCount(list399, index); + span2 = CollectionsMarshal.AsSpan(list399); + num = 0; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list400 = new List(num2); - CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) + index2 = 1; + List list400 = new List(index2); + CollectionsMarshal.SetCount(list400, index2); + span3 = CollectionsMarshal.AsSpan(list400); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) { StopDistance = 6f }; obj204.Steps = list400; reference263 = obj204; - ref QuestSequence reference264 = ref span149[1]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -316523,28 +382508,34 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1042548u, new Vector3(1.5106201f, 70.01534f, -1.083435f), 959) + span3 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042548u, new Vector3(1.5106201f, 70.01534f, -1.083435f), 959) { Fly = true }; obj205.Steps = list401; reference264 = obj205; - ref QuestSequence reference265 = ref span149[2]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.Interact, 2013062u, new Vector3(-129.83911f, 61.661743f, 120.80554f), 959) + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + span3 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013062u, new Vector3(-129.83911f, 61.661743f, 120.80554f), 959) { StopDistance = 0.5f, Fly = true }; obj206.Steps = list402; reference265 = obj206; - ref QuestSequence reference266 = ref span149[3]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -316552,27 +382543,33 @@ public static class AssemblyQuestLoader num2 = 1; List list403 = new List(num2); CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.Interact, 2013063u, new Vector3(-249.22565f, 81.712036f, 134.1726f), 959) + span3 = CollectionsMarshal.AsSpan(list403); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013063u, new Vector3(-249.22565f, 81.712036f, 134.1726f), 959) { Fly = true }; obj207.Steps = list403; reference266 = obj207; - ref QuestSequence reference267 = ref span149[4]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list404 = new List(num2); - CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.Interact, 2013064u, new Vector3(-358.23608f, 104.53955f, 117.234985f), 959) + index2 = 1; + List list404 = new List(index2); + CollectionsMarshal.SetCount(list404, index2); + span3 = CollectionsMarshal.AsSpan(list404); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013064u, new Vector3(-358.23608f, 104.53955f, 117.234985f), 959) { Fly = true }; obj208.Steps = list404; reference267 = obj208; - ref QuestSequence reference268 = ref span149[5]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -316580,7 +382577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042555u, new Vector3(31.204712f, -5.351952E-07f, -0.77819824f), 963) + span3 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042555u, new Vector3(31.204712f, -5.351952E-07f, -0.77819824f), 963) { StopDistance = 5f, NextQuestId = new QuestId(4718) @@ -316594,20 +382593,26 @@ public static class AssemblyQuestLoader num = 1; List list406 = new List(num); CollectionsMarshal.SetCount(list406, num); - CollectionsMarshal.AsSpan(list406)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list406); + index = 0; + span[index] = "liza"; questRoot44.Author = list406; - num = 1; - List list407 = new List(num); - CollectionsMarshal.SetCount(list407, num); - ref QuestSequence reference269 = ref CollectionsMarshal.AsSpan(list407)[0]; + index = 1; + List list407 = new List(index); + CollectionsMarshal.SetCount(list407, index); + span2 = CollectionsMarshal.AsSpan(list407); + num = 0; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043621u, new Vector3(174.12073f, 14.095924f, 667.5669f), 135); + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span3 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043621u, new Vector3(174.12073f, 14.095924f, 667.5669f), 135); obj210.Steps = list408; reference269 = obj210; questRoot44.QuestSequence = list407; @@ -316621,13 +382626,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "pot0to"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "pot0to"; questRoot.Author = list; - num = 11; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 11; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -316635,7 +382643,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -316648,15 +382658,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2013108u, new Vector3(-75.70001f, -4.7455444f, -27.664612f), 419) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013108u, new Vector3(-75.70001f, -4.7455444f, -27.664612f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -316667,7 +382680,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -316675,28 +382689,34 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567 }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -316704,63 +382724,88 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(72.46509f, 203.98001f, 125.993774f), 478); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(72.46509f, 203.98001f, 125.993774f), 478); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference7 = ref span2[0]; + index2 = 3; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference7 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1042608u, new Vector3(-9.323303f, 206.49942f, 38.77307f), 478); int num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span3 = CollectionsMarshal.AsSpan(list9); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list9); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list9; reference7 = questStep; - ref QuestStep reference8 = ref span2[1]; + num2++; + ref QuestStep reference8 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1042609u, new Vector3(-49.149292f, 209.18335f, -103.01367f), 478); - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + span4 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list10; reference8 = questStep2; - ref QuestStep reference9 = ref span2[2]; + num2++; + ref QuestStep reference9 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1042610u, new Vector3(56.961792f, 214.19846f, -81.43744f), 478); num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list11; reference9 = questStep3; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference10 = ref span[6]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -316768,24 +382813,30 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(-30.20218f, 214.49994f, 91.81962f), 478) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(-30.20218f, 214.49994f, 91.81962f), 478) { StopDistance = 1f }; obj7.Steps = list12; reference10 = obj7; - ref QuestSequence reference11 = ref span[7]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1042613u, new Vector3(-22.38501f, 203.69724f, 93.18677f), 478); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042613u, new Vector3(-22.38501f, 203.69724f, 93.18677f), 478); obj8.Steps = list13; reference11 = obj8; - ref QuestSequence reference12 = ref span[8]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 8 @@ -316793,33 +382844,41 @@ public static class AssemblyQuestLoader num2 = 4; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567, Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - span6[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)568 }; - span6[2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567); - span6[3] = new QuestStep(EInteractionType.Interact, 2013110u, new Vector3(-1.8158569f, 0.015197754f, 5.1727905f), 568); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013110u, new Vector3(-1.8158569f, 0.015197754f, 5.1727905f), 568); obj9.Steps = list14; reference12 = obj9; - ref QuestSequence reference13 = ref span[9]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1042611u, new Vector3(-75.48645f, -4.734931f, -26.901672f), 419); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042611u, new Vector3(-75.48645f, -4.734931f, -26.901672f), 419); obj10.Steps = list15; reference13 = obj10; - ref QuestSequence reference14 = ref span[10]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -316827,7 +382886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4662) @@ -316836,28 +382897,38 @@ public static class AssemblyQuestLoader reference14 = obj11; questRoot.QuestSequence = list2; AddQuest(questId, questRoot); - QuestId questId2 = new QuestId(4652); + QuestId questId2 = new QuestId(4660); QuestRoot questRoot2 = new QuestRoot(); num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "Censored"; questRoot2.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference15 = ref span7[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043950u, new Vector3(29.833603f, -5.9604645E-07f, -0.25688922f), 963) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044132u, new Vector3(-319.26453f, 44.8282f, 36.301147f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.RadzAtHan, + To = EAetheryteLocation.RadzAtHanMeghaduta + }, SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -316868,180 +382939,18 @@ public static class AssemblyQuestLoader }; obj12.Steps = list19; reference15 = obj12; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 2; + num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = new QuestStep(EInteractionType.Interact, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963); - span8[1] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - ItemId = 38420u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - }, - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj13.Steps = list20; - reference16 = obj13; - ref QuestSequence reference17 = ref span7[2]; - QuestSequence obj14 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj14.Steps = list21; - reference17 = obj14; - questRoot2.QuestSequence = list18; - AddQuest(questId2, questRoot2); - QuestId questId3 = new QuestId(4653); - QuestRoot questRoot3 = new QuestRoot(); - num = 1; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "CryoTechnic"; - questRoot3.Author = list22; - num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference18 = ref span9[0]; - QuestSequence obj15 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj15.Steps = list24; - reference18 = obj15; - ref QuestSequence reference19 = ref span9[1]; - QuestSequence obj16 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 38420u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj16.Steps = list25; - reference19 = obj16; - ref QuestSequence reference20 = ref span9[2]; - QuestSequence obj17 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj17.Steps = list26; - reference20 = obj17; - questRoot3.QuestSequence = list23; - AddQuest(questId3, questRoot3); - QuestId questId4 = new QuestId(4660); - QuestRoot questRoot4 = new QuestRoot(); - num = 1; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "Censored"; - questRoot4.Author = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span10 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span10[0]; - QuestSequence obj18 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044132u, new Vector3(-319.26453f, 44.8282f, 36.301147f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanMeghaduta - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj18.Steps = list29; - reference21 = obj18; - ref QuestSequence reference22 = ref span10[1]; - QuestSequence obj19 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317049,33 +382958,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost } }; - obj19.Steps = list30; - reference22 = obj19; - ref QuestSequence reference23 = ref span10[2]; - QuestSequence obj20 = new QuestSequence + obj13.Steps = list20; + reference16 = obj13; + num++; + ref QuestSequence reference17 = ref span2[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span11 = CollectionsMarshal.AsSpan(list31); - ref QuestStep reference24 = ref span11[0]; + index2 = 4; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference18 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1044136u, new Vector3(-157.8852f, 3.999719f, -64.49994f), 963); - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span12 = CollectionsMarshal.AsSpan(list32); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list32; - reference24 = questStep4; - ref QuestStep reference25 = ref span11[1]; - QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044139u, new Vector3(3.5248413f, 2.9999907f, -196.1242f), 963) + num4 = 6; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list22; + reference18 = questStep4; + num2++; + ref QuestStep reference19 = ref span3[num2]; + QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1044139u, new Vector3(3.5248413f, 2.9999907f, -196.1242f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317084,19 +383002,26 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span13 = CollectionsMarshal.AsSpan(list33); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj21.CompletionQuestVariablesFlags = list33; - reference25 = obj21; - ref QuestStep reference26 = ref span11[2]; - QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044142u, new Vector3(48.874634f, 26.999975f, 45.090332f), 963) + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + span4 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj15.CompletionQuestVariablesFlags = list23; + reference19 = obj15; + num2++; + ref QuestStep reference20 = ref span3[num2]; + QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1044142u, new Vector3(48.874634f, 26.999975f, 45.090332f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317104,20 +383029,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span14 = CollectionsMarshal.AsSpan(list34); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj22.CompletionQuestVariablesFlags = list34; - reference26 = obj22; - ref QuestStep reference27 = ref span11[3]; - QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1044145u, new Vector3(-112.7489f, 29.037842f, 239.55127f), 963) + num4 = 6; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + span4 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj16.CompletionQuestVariablesFlags = list24; + reference20 = obj16; + num2++; + ref QuestStep reference21 = ref span3[num2]; + QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1044145u, new Vector3(-112.7489f, 29.037842f, 239.55127f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317126,28 +383058,37 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span15 = CollectionsMarshal.AsSpan(list35); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj23.CompletionQuestVariablesFlags = list35; - reference27 = obj23; - obj20.Steps = list31; - reference23 = obj20; - ref QuestSequence reference28 = ref span10[3]; - QuestSequence obj24 = new QuestSequence + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + span4 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj17.CompletionQuestVariablesFlags = list25; + reference21 = obj17; + obj14.Steps = list21; + reference17 = obj14; + num++; + ref QuestSequence reference22 = ref span2[num]; + QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317156,30 +383097,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4661) }; - obj24.Steps = list36; - reference28 = obj24; - questRoot4.QuestSequence = list28; - AddQuest(questId4, questRoot4); - QuestId questId5 = new QuestId(4661); - QuestRoot questRoot5 = new QuestRoot(); + obj18.Steps = list26; + reference22 = obj18; + questRoot2.QuestSequence = list18; + AddQuest(questId2, questRoot2); + QuestId questId3 = new QuestId(4661); + QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; - questRoot5.Author = list37; - num = 3; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span16 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference29 = ref span16[0]; - QuestSequence obj25 = new QuestSequence + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "Censored"; + questRoot3.Author = list27; + index = 3; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference23 = ref span2[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -317196,19 +383142,21 @@ public static class AssemblyQuestLoader } } }; - obj25.Steps = list39; - reference29 = obj25; - ref QuestSequence reference30 = ref span16[1]; - QuestSequence obj26 = new QuestSequence + obj19.Steps = list29; + reference23 = obj19; + num++; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj20 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - 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) + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; + QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044221u, new Vector3(99.32092f, 4.7837553f, -158.98376f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317216,20 +383164,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span18 = CollectionsMarshal.AsSpan(list41); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj27.CompletionQuestVariablesFlags = list41; - reference31 = obj27; - ref QuestStep reference32 = ref span17[1]; - QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1044218u, new Vector3(17.135864f, -2.000002f, 96.025024f), 963) + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + span4 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj21.CompletionQuestVariablesFlags = list31; + reference25 = obj21; + index2++; + ref QuestStep reference26 = ref span3[index2]; + QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044218u, new Vector3(17.135864f, -2.000002f, 96.025024f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317239,33 +383194,47 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span19 = CollectionsMarshal.AsSpan(list42); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj28.CompletionQuestVariablesFlags = list42; - reference32 = obj28; - ref QuestStep reference33 = ref span17[2]; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + span4 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj22.CompletionQuestVariablesFlags = list32; + reference26 = obj22; + index2++; + ref QuestStep reference27 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1044217u, new Vector3(-71.54962f, -2.0001035f, 150.83533f), 963); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span20 = CollectionsMarshal.AsSpan(list43); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list43; - reference33 = questStep5; - ref QuestStep reference34 = ref span17[3]; - QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1044215u, new Vector3(-278.0957f, 36f, 69.10803f), 963) + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + span4 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list33; + reference27 = questStep5; + index2++; + ref QuestStep reference28 = ref span3[index2]; + QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1044215u, new Vector3(-278.0957f, 36f, 69.10803f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317275,28 +383244,37 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span21 = CollectionsMarshal.AsSpan(list44); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj29.CompletionQuestVariablesFlags = list44; - reference34 = obj29; - obj26.Steps = list40; - reference30 = obj26; - ref QuestSequence reference35 = ref span16[2]; - QuestSequence obj30 = new QuestSequence + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + span4 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj23.CompletionQuestVariablesFlags = list34; + reference28 = obj23; + obj20.Steps = list30; + reference24 = obj20; + num++; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317305,30 +383283,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost } }; - obj30.Steps = list45; - reference35 = obj30; - questRoot5.QuestSequence = list38; - AddQuest(questId5, questRoot5); - QuestId questId6 = new QuestId(4662); - QuestRoot questRoot6 = new QuestRoot(); + obj24.Steps = list35; + reference29 = obj24; + questRoot3.QuestSequence = list28; + AddQuest(questId3, questRoot3); + QuestId questId4 = new QuestId(4662); + QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "pot0to"; - questRoot6.Author = list46; - num = 12; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span22 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference36 = ref span22[0]; - QuestSequence obj31 = new QuestSequence + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "pot0to"; + questRoot4.Author = list36; + index = 12; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -317339,17 +383322,20 @@ public static class AssemblyQuestLoader } } }; - obj31.Steps = list48; - reference36 = obj31; - ref QuestSequence reference37 = ref span22[1]; - QuestSequence obj32 = new QuestSequence + obj25.Steps = list38; + reference30 = obj25; + num++; + ref QuestSequence reference31 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2013288u, new Vector3(102.67798f, 11.9782715f, 40.238037f), 628) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013288u, new Vector3(102.67798f, 11.9782715f, 40.238037f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -317358,17 +383344,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - obj32.Steps = list49; - reference37 = obj32; - ref QuestSequence reference38 = ref span22[2]; - QuestSequence obj33 = new QuestSequence + obj26.Steps = list39; + reference31 = obj26; + num++; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 2013289u, new Vector3(362.11182f, 0.7171631f, 763.17993f), 613) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013289u, new Vector3(362.11182f, 0.7171631f, 763.17993f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -317377,149 +383366,183 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - obj33.Steps = list50; - reference38 = obj33; - ref QuestSequence reference39 = ref span22[3]; - QuestSequence obj34 = new QuestSequence + obj27.Steps = list40; + reference32 = obj27; + num++; + ref QuestSequence reference33 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1044958u, new Vector3(-172.38116f, -7.000106f, 46.799316f), 628); - obj34.Steps = list51; - reference39 = obj34; - ref QuestSequence reference40 = ref span22[4]; - QuestSequence obj35 = new QuestSequence + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044958u, new Vector3(-172.38116f, -7.000106f, 46.799316f), 628); + obj28.Steps = list41; + reference33 = obj28; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference35 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1044963u, new Vector3(34.470093f, 4f, 77.805664f), 628); - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + num4 = 1; + List list43 = new List(num4); + CollectionsMarshal.SetCount(list43, num4); + Span span5 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA301_04662_Q4_000_000"), Answer = new ExcelRef("TEXT_AKTKSA301_04662_A4_000_001") }; - questStep6.DialogueChoices = list53; - reference41 = questStep6; - obj35.Steps = list52; - reference40 = obj35; - ref QuestSequence reference42 = ref span22[5]; - QuestSequence obj36 = new QuestSequence + questStep6.DialogueChoices = list43; + reference35 = questStep6; + obj29.Steps = list42; + reference34 = obj29; + num++; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1044965u, new Vector3(35.934937f, 4f, 76.49341f), 628); - obj36.Steps = list54; - reference42 = obj36; - ref QuestSequence reference43 = ref span22[6]; - QuestSequence obj37 = new QuestSequence + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044965u, new Vector3(35.934937f, 4f, 76.49341f), 628); + obj30.Steps = list44; + reference36 = obj30; + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1044967u, new Vector3(24.795776f, 4.0000014f, 39.230957f), 628); - obj37.Steps = list55; - reference43 = obj37; - ref QuestSequence reference44 = ref span22[7]; - QuestSequence obj38 = new QuestSequence + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044967u, new Vector3(24.795776f, 4.0000014f, 39.230957f), 628); + obj31.Steps = list45; + reference37 = obj31; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj32 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1044968u, new Vector3(-52.71997f, 16.054996f, -17.135986f), 628); - obj38.Steps = list56; - reference44 = obj38; - ref QuestSequence reference45 = ref span22[8]; - QuestSequence obj39 = new QuestSequence + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044968u, new Vector3(-52.71997f, 16.054996f, -17.135986f), 628); + obj32.Steps = list46; + reference38 = obj32; + num++; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1045117u, new Vector3(736.0189f, 0.10766173f, -298.5733f), 613) + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045117u, new Vector3(736.0189f, 0.10766173f, -298.5733f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - obj39.Steps = list57; - reference45 = obj39; - ref QuestSequence reference46 = ref span22[9]; - QuestSequence obj40 = new QuestSequence + obj33.Steps = list47; + reference39 = obj33; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1044972u, new Vector3(706.4773f, 1f, -261.40234f), 613); - obj40.Steps = list58; - reference46 = obj40; - ref QuestSequence reference47 = ref span22[10]; - QuestSequence obj41 = new QuestSequence + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044972u, new Vector3(706.4773f, 1f, -261.40234f), 613); + obj34.Steps = list48; + reference40 = obj34; + num++; + ref QuestSequence reference41 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 10 }; num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1044973u, new Vector3(114.51892f, 12.000001f, 101.3656f), 628); - obj41.Steps = list59; - reference47 = obj41; - ref QuestSequence reference48 = ref span22[11]; - QuestSequence obj42 = new QuestSequence + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044973u, new Vector3(114.51892f, 12.000001f, 101.3656f), 628); + obj35.Steps = list49; + reference41 = obj35; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4761) }; - obj42.Steps = list60; - reference48 = obj42; - questRoot6.QuestSequence = list47; - AddQuest(questId6, questRoot6); - QuestId questId7 = new QuestId(4666); - QuestRoot questRoot7 = new QuestRoot(); + obj36.Steps = list50; + reference42 = obj36; + questRoot4.QuestSequence = list37; + AddQuest(questId4, questRoot4); + QuestId questId5 = new QuestId(4666); + QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; - questRoot7.Author = list61; - num = 5; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span23 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference49 = ref span23[0]; - QuestSequence obj43 = new QuestSequence + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; + questRoot5.Author = list51; + index = 5; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -317530,118 +383553,140 @@ public static class AssemblyQuestLoader } } }; - obj43.Steps = list63; - reference49 = obj43; - ref QuestSequence reference50 = ref span23[1]; - QuestSequence obj44 = new QuestSequence + obj37.Steps = list53; + reference43 = obj37; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true }; - obj44.Steps = list64; - reference50 = obj44; - ref QuestSequence reference51 = ref span23[2]; - QuestSequence obj45 = new QuestSequence + obj38.Steps = list54; + reference44 = obj38; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1044299u, new Vector3(-85.89307f, 3f, 84.58069f), 1061) + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044299u, new Vector3(-85.89307f, 3f, 84.58069f), 1061) { StopDistance = 5f }; - obj45.Steps = list65; - reference51 = obj45; - ref QuestSequence reference52 = ref span23[3]; - QuestSequence obj46 = new QuestSequence + obj39.Steps = list55; + reference45 = obj39; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { ContentFinderConditionId = 911u } }; - obj46.Steps = list66; - reference52 = obj46; - ref QuestSequence reference53 = ref span23[4]; - QuestSequence obj47 = new QuestSequence + obj40.Steps = list56; + reference46 = obj40; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044303u, new Vector3(-7.2786255f, 0.0999997f, 5.874695f), 1061) + List list57 = new List(num2); + CollectionsMarshal.SetCount(list57, num2); + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044303u, new Vector3(-7.2786255f, 0.0999997f, 5.874695f), 1061) { NextQuestId = new QuestId(4667) }; - obj47.Steps = list67; - reference53 = obj47; - questRoot7.QuestSequence = list62; - AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(4667); - QuestRoot questRoot8 = new QuestRoot(); + obj41.Steps = list57; + reference47 = obj41; + questRoot5.QuestSequence = list52; + AddQuest(questId5, questRoot5); + QuestId questId6 = new QuestId(4667); + QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; - questRoot8.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span24 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference54 = ref span24[0]; - QuestSequence obj48 = new QuestSequence + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; + questRoot6.Author = list58; + index = 5; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044304u, new Vector3(-6.6377563f, 0.0999997f, 7.2785034f), 1061); - obj48.Steps = list70; - reference54 = obj48; - ref QuestSequence reference55 = ref span24[1]; - QuestSequence obj49 = new QuestSequence + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044304u, new Vector3(-6.6377563f, 0.0999997f, 7.2785034f), 1061); + obj42.Steps = list60; + reference48 = obj42; + num++; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - 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) + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + ref QuestStep reference50 = ref span3[index2]; + QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2012871u, new Vector3(15.945618f, 1.7547607f, -61.600708f), 1061) { TargetTerritoryId = (ushort)156 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 1061; - skipStepConditions.NotInTerritory = list72; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + Span span6 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span6[num4] = 1061; + skipStepConditions.NotInTerritory = list62; skipConditions.StepIf = skipStepConditions; - obj50.SkipConditions = skipConditions; - reference56 = obj50; - span25[1] = new QuestStep(EInteractionType.Interact, 1044306u, new Vector3(-149.58423f, 42.86022f, -182.8794f), 156) + obj44.SkipConditions = skipConditions; + reference50 = obj44; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044306u, new Vector3(-149.58423f, 42.86022f, -182.8794f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -317653,82 +383698,97 @@ public static class AssemblyQuestLoader } } }; - obj49.Steps = list71; - reference55 = obj49; - ref QuestSequence reference57 = ref span24[2]; - QuestSequence obj51 = new QuestSequence + obj43.Steps = list61; + reference49 = obj43; + num++; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span26 = CollectionsMarshal.AsSpan(list73); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.23871f, 31.274973f, -772.4912f), 156) + index2 = 3; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.23871f, 31.274973f, -772.4912f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-693.9247f, 261.1125f, 436.2933f), 155) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-693.9247f, 261.1125f, 436.2933f), 155) { Fly = true }; - span26[2] = new QuestStep(EInteractionType.Interact, 1044310u, new Vector3(-674.21985f, 254.80737f, 490.77588f), 155); - obj51.Steps = list73; - reference57 = obj51; - ref QuestSequence reference58 = ref span24[3]; - QuestSequence obj52 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044310u, new Vector3(-674.21985f, 254.80737f, 490.77588f), 155); + obj45.Steps = list63; + reference51 = obj45; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span27 = CollectionsMarshal.AsSpan(list74); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(180.50424f, 360.59534f, -609.197f), 155) + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(180.50424f, 360.59534f, -609.197f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span27[1] = new QuestStep(EInteractionType.Interact, 1044314u, new Vector3(182.5741f, 360.90265f, -610.2846f), 155); - obj52.Steps = list74; - reference58 = obj52; - ref QuestSequence reference59 = ref span24[4]; - QuestSequence obj53 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044314u, new Vector3(182.5741f, 360.90265f, -610.2846f), 155); + obj46.Steps = list64; + reference52 = obj46; + num++; + ref QuestSequence reference53 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) { NextQuestId = new QuestId(4668) }; - obj53.Steps = list75; - reference59 = obj53; - questRoot8.QuestSequence = list69; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(4668); - QuestRoot questRoot9 = new QuestRoot(); + obj47.Steps = list65; + reference53 = obj47; + questRoot6.QuestSequence = list59; + AddQuest(questId6, questRoot6); + QuestId questId7 = new QuestId(4668); + QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; - questRoot9.Author = list76; - num = 6; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span28 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference60 = ref span28[0]; - QuestSequence obj54 = new QuestSequence + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + span = CollectionsMarshal.AsSpan(list66); + index = 0; + span[index] = "liza"; + questRoot7.Author = list66; + index = 6; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + span2 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -317739,114 +383799,136 @@ public static class AssemblyQuestLoader } } }; - obj54.Steps = list78; - reference60 = obj54; - ref QuestSequence reference61 = ref span28[1]; - QuestSequence obj55 = new QuestSequence + obj48.Steps = list68; + reference54 = obj48; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1044319u, new Vector3(-45.91449f, -4.1435657f, 8.8349f), 132) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044319u, new Vector3(-45.91449f, -4.1435657f, 8.8349f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj55.Steps = list79; - reference61 = obj55; - ref QuestSequence reference62 = ref span28[2]; - QuestSequence obj56 = new QuestSequence + obj49.Steps = list69; + reference55 = obj49; + num++; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span29 = CollectionsMarshal.AsSpan(list80); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23065f, 1.2987103f, 6.734147f), 132) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23065f, 1.2987103f, 6.734147f), 132) { TargetTerritoryId = (ushort)133 }; - span29[1] = new QuestStep(EInteractionType.Interact, 1044323u, new Vector3(-140.45929f, 5.046544f, -40.48224f), 133); - obj56.Steps = list80; - reference62 = obj56; - ref QuestSequence reference63 = ref span28[3]; - QuestSequence obj57 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044323u, new Vector3(-140.45929f, 5.046544f, -40.48224f), 133); + obj50.Steps = list70; + reference56 = obj50; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1043024u, new Vector3(-239.94812f, 0.8012663f, 384.60352f), 153) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043024u, new Vector3(-239.94812f, 0.8012663f, 384.60352f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - obj57.Steps = list81; - reference63 = obj57; - ref QuestSequence reference64 = ref span28[4]; - QuestSequence obj58 = new QuestSequence + obj51.Steps = list71; + reference57 = obj51; + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list82)[0]; - QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1044328u, new Vector3(-246.08228f, 0.7061289f, 384.08484f), 153) + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference59 = ref span3[index2]; + QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1044328u, new Vector3(-246.08228f, 0.7061289f, 384.08484f), 153) { StopDistance = 7f }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + num4 = 1; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + span5 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKEA203_04668_SYSTEM_000_122") }; - obj59.DialogueChoices = list83; - reference65 = obj59; - obj58.Steps = list82; - reference64 = obj58; - ref QuestSequence reference66 = ref span28[5]; - QuestSequence obj60 = new QuestSequence + obj53.DialogueChoices = list73; + reference59 = obj53; + obj52.Steps = list72; + reference58 = obj52; + num++; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) { NextQuestId = new QuestId(4669) }; - obj60.Steps = list84; - reference66 = obj60; - questRoot9.QuestSequence = list77; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(4669); - QuestRoot questRoot10 = new QuestRoot(); + obj54.Steps = list74; + reference60 = obj54; + questRoot7.QuestSequence = list67; + AddQuest(questId7, questRoot7); + QuestId questId8 = new QuestId(4669); + QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; - questRoot10.Author = list85; - num = 4; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span30 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference67 = ref span30[0]; - QuestSequence obj61 = new QuestSequence + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + span = CollectionsMarshal.AsSpan(list75); + index = 0; + span[index] = "liza"; + questRoot8.Author = list75; + index = 4; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + span2 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -317857,91 +383939,108 @@ public static class AssemblyQuestLoader } } }; - obj61.Steps = list87; - reference67 = obj61; - ref QuestSequence reference68 = ref span30[1]; - QuestSequence obj62 = new QuestSequence + obj55.Steps = list77; + reference61 = obj55; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj62.Steps = list88; - reference68 = obj62; - ref QuestSequence reference69 = ref span30[2]; - QuestSequence obj63 = new QuestSequence + obj56.Steps = list78; + reference62 = obj56; + num++; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1044335u, new Vector3(-1.3886108f, 0.0999997f, 0.59503174f), 1061) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044335u, new Vector3(-1.3886108f, 0.0999997f, 0.59503174f), 1061) { StopDistance = 5f }; - obj63.Steps = list89; - reference69 = obj63; - ref QuestSequence reference70 = ref span30[3]; - QuestSequence obj64 = new QuestSequence + obj57.Steps = list79; + reference63 = obj57; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, NextQuestId = new QuestId(4791) }; - obj64.Steps = list90; - reference70 = obj64; - questRoot10.QuestSequence = list86; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(4670); - QuestRoot questRoot11 = new QuestRoot(); + obj58.Steps = list80; + reference64 = obj58; + questRoot8.QuestSequence = list76; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(4670); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; - questRoot11.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span31 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference71 = ref span31[0]; - QuestSequence obj65 = new QuestSequence + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + span = CollectionsMarshal.AsSpan(list81); + index = 0; + span[index] = "liza"; + questRoot9.Author = list81; + index = 4; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + span2 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { StopDistance = 5f }; - obj65.Steps = list93; - reference71 = obj65; - ref QuestSequence reference72 = ref span31[1]; - QuestSequence obj66 = new QuestSequence + obj59.Steps = list83; + reference65 = obj59; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1043821u, new Vector3(3.3721924f, 26.999998f, 37.216675f), 963) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043821u, new Vector3(3.3721924f, 26.999998f, 37.216675f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317949,17 +384048,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - obj66.Steps = list94; - reference72 = obj66; - ref QuestSequence reference73 = ref span31[2]; - QuestSequence obj67 = new QuestSequence + obj60.Steps = list84; + reference66 = obj60; + num++; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317967,17 +384069,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - obj67.Steps = list95; - reference73 = obj67; - ref QuestSequence reference74 = ref span31[3]; - QuestSequence obj68 = new QuestSequence + obj61.Steps = list85; + reference67 = obj61; + num++; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317986,286 +384091,361 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - obj68.Steps = list96; - reference74 = obj68; - questRoot11.QuestSequence = list92; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(4671); - QuestRoot questRoot12 = new QuestRoot(); + obj62.Steps = list86; + reference68 = obj62; + questRoot9.QuestSequence = list82; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(4671); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; - questRoot12.Author = list97; - num = 7; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span32 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span32[0]; - QuestSequence obj69 = new QuestSequence + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "liza"; + questRoot10.Author = list87; + index = 7; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference69 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044229u, new Vector3(-345.99835f, 55f, -63.645386f), 963); - obj69.Steps = list99; - reference75 = obj69; - ref QuestSequence reference76 = ref span32[1]; - QuestSequence obj70 = new QuestSequence + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044229u, new Vector3(-345.99835f, 55f, -63.645386f), 963); + obj63.Steps = list89; + reference69 = obj63; + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1044231u, new Vector3(535.7289f, -36.65f, -185.87018f), 958) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044231u, new Vector3(535.7289f, -36.65f, -185.87018f), 958) { StopDistance = 6f }; - obj70.Steps = list100; - reference76 = obj70; - ref QuestSequence reference77 = ref span32[2]; - QuestSequence obj71 = new QuestSequence + obj64.Steps = list90; + reference70 = obj64; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1044234u, new Vector3(-368.15448f, 21.999998f, 485.37415f), 958) + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044234u, new Vector3(-368.15448f, 21.999998f, 485.37415f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; - obj71.Steps = list101; - reference77 = obj71; - ref QuestSequence reference78 = ref span32[3]; - QuestSequence obj72 = new QuestSequence + obj65.Steps = list91; + reference71 = obj65; + num++; + ref QuestSequence reference72 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1044241u, new Vector3(55.161255f, -16.177f, 427.87805f), 958) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044241u, new Vector3(55.161255f, -16.177f, 427.87805f), 958) { Fly = true }; - obj72.Steps = list102; - reference78 = obj72; - ref QuestSequence reference79 = ref span32[4]; - QuestSequence obj73 = new QuestSequence + obj66.Steps = list92; + reference72 = obj66; + num++; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1045227u, new Vector3(150.04187f, -20.207552f, 509.88013f), 958) + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045227u, new Vector3(150.04187f, -20.207552f, 509.88013f), 958) { StopDistance = 5f }; - obj73.Steps = list103; - reference79 = obj73; - ref QuestSequence reference80 = ref span32[5]; - QuestSequence obj74 = new QuestSequence + obj67.Steps = list93; + reference73 = obj67; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1044243u, new Vector3(132.31091f, -12.950364f, 642.8473f), 958) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044243u, new Vector3(132.31091f, -12.950364f, 642.8473f), 958) { Fly = true }; - obj74.Steps = list104; - reference80 = obj74; - ref QuestSequence reference81 = ref span32[6]; + obj68.Steps = list94; + reference74 = obj68; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj69 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958) + { + AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass + }; + obj69.Steps = list95; + reference75 = obj69; + questRoot10.QuestSequence = list88; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(4672); + QuestRoot questRoot11 = new QuestRoot(); + num = 1; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; + questRoot11.Author = list96; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj70 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958); + obj70.Steps = list98; + reference76 = obj70; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj71 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044249u, new Vector3(-89.89093f, -9.408967f, 416.3423f), 958) + { + Fly = true + }; + obj71.Steps = list99; + reference77 = obj71; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj72 = new QuestSequence + { + Sequence = 2 + }; + index2 = 4; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; + QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2013226u, new Vector3(18.631226f, -12.314087f, 383.77966f), 958) + { + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num3 = 2; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span7 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span7[num4] = 16028u; + num4++; + span7[num4] = 16029u; + obj73.KillEnemyDataIds = list101; + num4 = 6; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + span4 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj73.CompletionQuestVariablesFlags = list102; + reference79 = obj73; + num2++; + ref QuestStep reference80 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2013307u, new Vector3(23.025818f, -9.2317505f, 337.5448f), 958); + num3 = 6; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span4 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list103; + reference80 = questStep7; + num2++; + ref QuestStep reference81 = ref span3[num2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013308u, new Vector3(75.33374f, -12.527649f, 339.40637f), 958); + num4 = 6; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + span4 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list104; + reference81 = questStep8; + num2++; + ref QuestStep reference82 = ref span3[num2]; + QuestStep obj74 = new QuestStep(EInteractionType.Combat, 2013051u, new Vector3(62.333008f, -10.635559f, 308.73572f), 958) + { + EnemySpawnType = EEnemySpawnType.AfterInteraction + }; + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + span7 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span7[num4] = 16030u; + obj74.KillEnemyDataIds = list105; + num4 = 6; + List list106 = new List(num4); + CollectionsMarshal.SetCount(list106, num4); + span4 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj74.CompletionQuestVariablesFlags = list106; + reference82 = obj74; + obj72.Steps = list100; + reference78 = obj72; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958) + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044250u, new Vector3(23.23944f, 1.1781613f, 144.70117f), 958) { - AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass + Fly = true }; - obj75.Steps = list105; - reference81 = obj75; - questRoot12.QuestSequence = list98; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(4672); - QuestRoot questRoot13 = new QuestRoot(); + obj75.Steps = list107; + reference83 = obj75; + questRoot11.QuestSequence = list97; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(4673); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; - questRoot13.Author = list106; - num = 4; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span33 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference82 = ref span33[0]; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; + questRoot12.Author = list108; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958); - obj76.Steps = list108; - reference82 = obj76; - ref QuestSequence reference83 = ref span33[1]; + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044252u, new Vector3(510.1244f, -36.65f, -161.73041f), 958); + obj76.Steps = list110; + reference84 = obj76; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1044249u, new Vector3(-89.89093f, -9.408967f, 416.3423f), 958) - { - Fly = true - }; - obj77.Steps = list109; - reference83 = obj77; - ref QuestSequence reference84 = ref span33[2]; - QuestSequence obj78 = new QuestSequence - { - Sequence = 2 - }; - num2 = 4; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span34 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference85 = ref span34[0]; - QuestStep obj79 = new QuestStep(EInteractionType.Combat, 2013226u, new Vector3(18.631226f, -12.314087f, 383.77966f), 958) - { - EnemySpawnType = EEnemySpawnType.AfterInteraction - }; - num3 = 2; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span35 = CollectionsMarshal.AsSpan(list111); - span35[0] = 16028u; - span35[1] = 16029u; - obj79.KillEnemyDataIds = list111; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj79.CompletionQuestVariablesFlags = list112; - reference85 = obj79; - 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 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; - ref QuestStep reference87 = ref span34[2]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013308u, new Vector3(75.33374f, -12.527649f, 339.40637f), 958); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span38 = CollectionsMarshal.AsSpan(list114); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list114; - reference87 = questStep8; - 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 - }; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 16030u; - obj80.KillEnemyDataIds = list115; - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span39 = CollectionsMarshal.AsSpan(list116); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj80.CompletionQuestVariablesFlags = list116; - reference88 = obj80; - obj78.Steps = list110; - reference84 = obj78; - ref QuestSequence reference89 = ref span33[3]; - QuestSequence obj81 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044250u, new Vector3(23.23944f, 1.1781613f, 144.70117f), 958) - { - Fly = true - }; - obj81.Steps = list117; - reference89 = obj81; - questRoot13.QuestSequence = list107; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(4673); - QuestRoot questRoot14 = new QuestRoot(); - num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; - questRoot14.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span40 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference90 = ref span40[0]; - QuestSequence obj82 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044252u, new Vector3(510.1244f, -36.65f, -161.73041f), 958); - obj82.Steps = list120; - reference90 = obj82; - ref QuestSequence reference91 = ref span40[1]; - QuestSequence obj83 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044257u, new Vector3(485.06897f, 10.800001f, -427.75616f), 958) + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044257u, new Vector3(485.06897f, 10.800001f, -427.75616f), 958) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -318273,90 +384453,103 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj83.Steps = list121; - reference91 = obj83; - span40[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference92 = ref span40[3]; - QuestSequence obj84 = new QuestSequence + obj77.Steps = list111; + reference85 = obj77; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044259u, new Vector3(528.9845f, -36.65f, -246.44855f), 958) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044259u, new Vector3(528.9845f, -36.65f, -246.44855f), 958) { StopDistance = 5f }; - obj84.Steps = list122; - reference92 = obj84; - questRoot14.QuestSequence = list119; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(4674); - QuestRoot questRoot15 = new QuestRoot(); + obj78.Steps = list112; + reference86 = obj78; + questRoot12.QuestSequence = list109; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(4674); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; - questRoot15.Author = list123; - num = 6; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span41 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span41[0]; - QuestSequence obj85 = new QuestSequence + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; + questRoot13.Author = list113; + index = 6; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044260u, new Vector3(527.9469f, -36.65f, -242.90839f), 958) + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044260u, new Vector3(527.9469f, -36.65f, -242.90839f), 958) { StopDistance = 5f }; - obj85.Steps = list125; - reference93 = obj85; - ref QuestSequence reference94 = ref span41[1]; - QuestSequence obj86 = new QuestSequence + obj79.Steps = list115; + reference87 = obj79; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2013224u, new Vector3(529.7681f, -36.65f, -243.843f), 958) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013224u, new Vector3(529.7681f, -36.65f, -243.843f), 958) { StopDistance = 5f }; - obj86.Steps = list126; - reference94 = obj86; - ref QuestSequence reference95 = ref span41[2]; - QuestSequence obj87 = new QuestSequence + obj80.Steps = list116; + reference88 = obj80; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1044263u, new Vector3(466.05627f, -18.123579f, 718.8982f), 958) + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044263u, new Vector3(466.05627f, -18.123579f, 718.8982f), 958) { Fly = true }; - obj87.Steps = list127; - reference95 = obj87; - ref QuestSequence reference96 = ref span41[3]; - QuestSequence obj88 = new QuestSequence + obj81.Steps = list117; + reference89 = obj81; + num++; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Duty, null, null, 958) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 958) { DutyOptions = new DutyOptions { @@ -318364,157 +384557,335 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 896u } }; - obj88.Steps = list128; - reference96 = obj88; - span41[4] = new QuestSequence + obj82.Steps = list118; + reference90 = obj82; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference97 = ref span41[5]; - QuestSequence obj89 = new QuestSequence + num++; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044270u, new Vector3(-247.21143f, -173f, 131.88367f), 1119); - obj89.Steps = list129; - reference97 = obj89; - questRoot15.QuestSequence = list124; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(4675); - QuestRoot questRoot16 = new QuestRoot(); + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044270u, new Vector3(-247.21143f, -173f, 131.88367f), 1119); + obj83.Steps = list119; + reference91 = obj83; + questRoot13.QuestSequence = list114; + AddQuest(questId13, questRoot13); + QuestId questId14 = new QuestId(4675); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; - questRoot16.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span42 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference98 = ref span42[0]; - QuestSequence obj90 = new QuestSequence + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + span = CollectionsMarshal.AsSpan(list120); + index = 0; + span[index] = "liza"; + questRoot14.Author = list120; + index = 7; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + span2 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044271u, new Vector3(-249.92749f, -173f, 126.35986f), 1119) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044271u, new Vector3(-249.92749f, -173f, 126.35986f), 1119) { StopDistance = 7f }; - obj90.Steps = list132; - reference98 = obj90; - ref QuestSequence reference99 = ref span42[1]; - QuestSequence obj91 = new QuestSequence + obj84.Steps = list122; + reference92 = obj84; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = new QuestStep(EInteractionType.Interact, 2013231u, new Vector3(-408.83502f, -117.81494f, 371.96924f), 1119) + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + span3 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013231u, new Vector3(-408.83502f, -117.81494f, 371.96924f), 1119) { TargetTerritoryId = (ushort)1119 }; - span43[1] = new QuestStep(EInteractionType.Interact, 1044274u, new Vector3(351.15576f, 33.99946f, -381.5824f), 1119); - obj91.Steps = list133; - reference99 = obj91; - ref QuestSequence reference100 = ref span42[2]; - QuestSequence obj92 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044274u, new Vector3(351.15576f, 33.99946f, -381.5824f), 1119); + obj85.Steps = list123; + reference93 = obj85; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2013232u, new Vector3(393.698f, 40.360107f, -273.0907f), 1119); - obj92.Steps = list134; - reference100 = obj92; - ref QuestSequence reference101 = ref span42[3]; - QuestSequence obj93 = new QuestSequence + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013232u, new Vector3(393.698f, 40.360107f, -273.0907f), 1119); + obj86.Steps = list124; + reference94 = obj86; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span44 = CollectionsMarshal.AsSpan(list135); - span44[0] = new QuestStep(EInteractionType.Interact, 2013230u, new Vector3(350.08765f, 34.86682f, -433.95135f), 1119) + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013230u, new Vector3(350.08765f, 34.86682f, -433.95135f), 1119) { TargetTerritoryId = (ushort)1119 }; - span44[1] = new QuestStep(EInteractionType.Interact, 2013233u, new Vector3(-261.1582f, -165.36206f, 229.08362f), 1119); - obj93.Steps = list135; - reference101 = obj93; - ref QuestSequence reference102 = ref span42[4]; - QuestSequence obj94 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013233u, new Vector3(-261.1582f, -165.36206f, 229.08362f), 1119); + obj87.Steps = list125; + reference95 = obj87; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2013234u, new Vector3(40.57373f, 365.98767f, -585.41235f), 1119); - obj94.Steps = list136; - reference102 = obj94; - ref QuestSequence reference103 = ref span42[5]; - QuestSequence obj95 = new QuestSequence + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013234u, new Vector3(40.57373f, 365.98767f, -585.41235f), 1119); + obj88.Steps = list126; + reference96 = obj88; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2013235u, new Vector3(-2.4262085f, 374.6853f, -601.0071f), 1119); - obj95.Steps = list137; - reference103 = obj95; - ref QuestSequence reference104 = ref span42[6]; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013235u, new Vector3(-2.4262085f, 374.6853f, -601.0071f), 1119); + obj89.Steps = list127; + reference97 = obj89; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj90 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044284u, new Vector3(464.34717f, -17.202883f, 705.0431f), 958) + { + StopDistance = 5f + }; + obj90.Steps = list128; + reference98 = obj90; + questRoot14.QuestSequence = list121; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(4676); + QuestRoot questRoot15 = new QuestRoot(); + num = 1; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + span = CollectionsMarshal.AsSpan(list129); + index = 0; + span[index] = "liza"; + questRoot15.Author = list129; + index = 5; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + span2 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj91 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044289u, new Vector3(465.81213f, -17.44166f, 707.3014f), 958) + { + StopDistance = 5f + }; + obj91.Steps = list131; + reference99 = obj91; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj92 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013239u, new Vector3(-347.40216f, 54.97815f, -64.89667f), 963) + { + AetheryteShortcut = EAetheryteLocation.RadzAtHan, + AethernetShortcut = new AethernetShortcut + { + From = EAetheryteLocation.RadzAtHan, + To = EAetheryteLocation.RadzAtHanMeghaduta + } + }; + obj92.Steps = list132; + reference100 = obj92; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj93 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; + QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1044290u, new Vector3(-212.63446f, 15.260341f, 460.34937f), 957); + num3 = 1; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + span5 = CollectionsMarshal.AsSpan(list134); + num4 = 0; + span5[num4] = new DialogueChoice + { + Type = EDialogChoiceType.List, + Prompt = new ExcelRef("TEXT_AKTKMJ107_04676_Q1_000_000"), + Answer = new ExcelRef("TEXT_AKTKMJ107_04676_A1_000_002") + }; + questStep9.DialogueChoices = list134; + reference102 = questStep9; + obj93.Steps = list133; + reference101 = obj93; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj94 = new QuestSequence + { + Sequence = 3 + }; + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference104 = ref span3[num2]; + QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957) + { + Fly = true + }; + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + span4 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj95.CompletionQuestVariablesFlags = list136; + reference104 = obj95; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); + obj94.Steps = list135; + reference103 = obj94; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044284u, new Vector3(464.34717f, -17.202883f, 705.0431f), 958) - { - StopDistance = 5f - }; - obj96.Steps = list138; - reference104 = obj96; - questRoot16.QuestSequence = list131; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(4676); - QuestRoot questRoot17 = new QuestRoot(); + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); + obj96.Steps = list137; + reference105 = obj96; + questRoot15.QuestSequence = list130; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(4677); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; - questRoot17.Author = list139; - num = 5; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span45 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference105 = ref span45[0]; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; + questRoot16.Author = list138; + index = 7; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044289u, new Vector3(465.81213f, -17.44166f, 707.3014f), 958) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference107 = ref span3[num2]; + QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + span5 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span5[num4] = new DialogueChoice { - StopDistance = 5f + Type = EDialogChoiceType.List, + Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q1_000_000"), + Answer = new ExcelRef("TEXT_AKTKMJ108_04677_A1_000_001") }; - obj97.Steps = list141; - reference105 = obj97; - ref QuestSequence reference106 = ref span45[1]; + questStep10.DialogueChoices = list141; + reference107 = questStep10; + obj97.Steps = list140; + reference106 = obj97; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -318522,231 +384893,136 @@ public static class AssemblyQuestLoader 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) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1041091u, new Vector3(-89.89093f, 89.42026f, -616.14404f), 957) { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanMeghaduta - } + Fly = true }; obj98.Steps = list142; - reference106 = obj98; - ref QuestSequence reference107 = ref span45[2]; + reference108 = obj98; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - 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); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_AKTKMJ107_04676_Q1_000_000"), - Answer = new ExcelRef("TEXT_AKTKMJ107_04676_A1_000_002") - }; - questStep9.DialogueChoices = list144; - reference108 = questStep9; - obj99.Steps = list143; - reference107 = obj99; - ref QuestSequence reference109 = ref span45[3]; - QuestSequence obj100 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span46 = CollectionsMarshal.AsSpan(list145); - ref QuestStep reference110 = ref span46[0]; - QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference110 = ref span3[num2]; + QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1037697u, new Vector3(-73.74689f, 99.94384f, -715.44977f), 957) { Fly = true }; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span47 = CollectionsMarshal.AsSpan(list146); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj101.CompletionQuestVariablesFlags = list146; - reference110 = obj101; - span46[1] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); - obj100.Steps = list145; - reference109 = obj100; - ref QuestSequence reference111 = ref span45[4]; - QuestSequence obj102 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); - obj102.Steps = list147; - reference111 = obj102; - questRoot17.QuestSequence = list140; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(4677); - QuestRoot questRoot18 = new QuestRoot(); - num = 1; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; - questRoot18.Author = list148; - num = 7; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span48 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference112 = ref span48[0]; - QuestSequence obj103 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list150)[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q1_000_000"), - Answer = new ExcelRef("TEXT_AKTKMJ108_04677_A1_000_001") - }; - questStep10.DialogueChoices = list151; - reference113 = questStep10; - obj103.Steps = list150; - reference112 = obj103; - ref QuestSequence reference114 = ref span48[1]; - QuestSequence obj104 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1041091u, new Vector3(-89.89093f, 89.42026f, -616.14404f), 957) - { - Fly = true - }; - obj104.Steps = list152; - reference114 = obj104; - ref QuestSequence reference115 = ref span48[2]; - QuestSequence obj105 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list153)[0]; - QuestStep obj106 = new QuestStep(EInteractionType.Interact, 1037697u, new Vector3(-73.74689f, 99.94384f, -715.44977f), 957) - { - Fly = true - }; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + num4 = 1; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + span5 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q2_000_063") }; - obj106.DialogueChoices = list154; - reference116 = obj106; - obj105.Steps = list153; - reference115 = obj105; - span48[3] = new QuestSequence + obj100.DialogueChoices = list144; + reference110 = obj100; + obj99.Steps = list143; + reference109 = obj99; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference117 = ref span48[4]; - QuestSequence obj107 = new QuestSequence + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Duty, null, null, 1125) + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1125) { DutyOptions = new DutyOptions { ContentFinderConditionId = 886u } }; - obj107.Steps = list155; - reference117 = obj107; - span48[5] = new QuestSequence + obj101.Steps = list145; + reference111 = obj101; + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference118 = ref span48[6]; - QuestSequence obj108 = new QuestSequence + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) { StopDistance = 5f }; - obj108.Steps = list156; - reference118 = obj108; - questRoot18.QuestSequence = list149; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(4678); - QuestRoot questRoot19 = new QuestRoot(); + obj102.Steps = list146; + reference112 = obj102; + questRoot16.QuestSequence = list139; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(4678); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; - questRoot19.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span49 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference119 = ref span49[0]; - QuestSequence obj109 = new QuestSequence + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + span = CollectionsMarshal.AsSpan(list147); + index = 0; + span[index] = "liza"; + questRoot17.Author = list147; + index = 3; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + span2 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) { StopDistance = 5f }; - obj109.Steps = list159; - reference119 = obj109; - ref QuestSequence reference120 = ref span49[1]; - QuestSequence obj110 = new QuestSequence + obj103.Steps = list149; + reference113 = obj103; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - 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) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference115 = ref span3[num2]; + QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -318756,50 +385032,60 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new DialogueChoice + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span5 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMJ109_04678_SYSTEM_000_021") }; - obj111.DialogueChoices = list161; - reference121 = obj111; - obj110.Steps = list160; - reference120 = obj110; - ref QuestSequence reference122 = ref span49[2]; - QuestSequence obj112 = new QuestSequence + obj105.DialogueChoices = list151; + reference115 = obj105; + obj104.Steps = list150; + reference114 = obj104; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); - obj112.Steps = list162; - reference122 = obj112; - questRoot19.QuestSequence = list158; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(4681); - QuestRoot questRoot20 = new QuestRoot(); + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + obj106.Steps = list152; + reference116 = obj106; + questRoot17.QuestSequence = list148; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(4681); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; - questRoot20.Author = list163; - num = 7; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span50 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference123 = ref span50[0]; - QuestSequence obj113 = new QuestSequence + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + span = CollectionsMarshal.AsSpan(list153); + index = 0; + span[index] = "liza"; + questRoot18.Author = list153; + index = 7; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + span2 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044910u, new Vector3(23.75824f, 2.453333f, -12.680237f), 962) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044910u, new Vector3(23.75824f, 2.453333f, -12.680237f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -318810,170 +385096,211 @@ public static class AssemblyQuestLoader } } }; - obj113.Steps = list165; - reference123 = obj113; - ref QuestSequence reference124 = ref span50[1]; - QuestSequence obj114 = new QuestSequence + obj107.Steps = list155; + reference117 = obj107; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj114.Steps = list166; - reference124 = obj114; - ref QuestSequence reference125 = ref span50[2]; - QuestSequence obj115 = new QuestSequence + obj108.Steps = list156; + reference118 = obj108; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span51 = CollectionsMarshal.AsSpan(list167); - ref QuestStep reference126 = ref span51[0]; - QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1044914u, new Vector3(-120.409f, -137.41672f, -526.63464f), 959) + index2 = 3; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference120 = ref span3[num2]; + QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1044914u, new Vector3(-120.409f, -137.41672f, -526.63464f), 959) + { + Fly = true + }; + num4 = 6; + List list158 = new List(num4); + CollectionsMarshal.SetCount(list158, num4); + span4 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj110.CompletionQuestVariablesFlags = list158; + reference120 = obj110; + num2++; + ref QuestStep reference121 = ref span3[num2]; + QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1044913u, new Vector3(55.161255f, -129.40565f, -636.8048f), 959) { Fly = true }; num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span52 = CollectionsMarshal.AsSpan(list168); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj116.CompletionQuestVariablesFlags = list168; - reference126 = obj116; - ref QuestStep reference127 = ref span51[1]; - QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1044913u, new Vector3(55.161255f, -129.40565f, -636.8048f), 959) + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + span4 = CollectionsMarshal.AsSpan(list159); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj111.CompletionQuestVariablesFlags = list159; + reference121 = obj111; + num2++; + ref QuestStep reference122 = ref span3[num2]; + QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1044912u, new Vector3(61.41748f, -137.4167f, -606.28674f), 959) { Fly = true }; - num3 = 6; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span53 = CollectionsMarshal.AsSpan(list169); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj117.CompletionQuestVariablesFlags = list169; - reference127 = obj117; - ref QuestStep reference128 = ref span51[2]; - QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1044912u, new Vector3(61.41748f, -137.4167f, -606.28674f), 959) - { - Fly = true - }; - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span54 = CollectionsMarshal.AsSpan(list170); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj118.CompletionQuestVariablesFlags = list170; - reference128 = obj118; - obj115.Steps = list167; - reference125 = obj115; - ref QuestSequence reference129 = ref span50[3]; - QuestSequence obj119 = new QuestSequence + num4 = 6; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + span4 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj112.CompletionQuestVariablesFlags = list160; + reference122 = obj112; + obj109.Steps = list157; + reference119 = obj109; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) { Fly = true }; - obj119.Steps = list171; - reference129 = obj119; - ref QuestSequence reference130 = ref span50[4]; - QuestSequence obj120 = new QuestSequence + obj113.Steps = list161; + reference123 = obj113; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1044919u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044919u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) { Fly = true }; - obj120.Steps = list172; - reference130 = obj120; - ref QuestSequence reference131 = ref span50[5]; - QuestSequence obj121 = new QuestSequence + obj114.Steps = list162; + reference124 = obj114; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1044920u, new Vector3(-170.42804f, -49.399723f, -289.5705f), 959) + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044920u, new Vector3(-170.42804f, -49.399723f, -289.5705f), 959) { Fly = true }; - obj121.Steps = list173; - reference131 = obj121; - ref QuestSequence reference132 = ref span50[6]; - QuestSequence obj122 = new QuestSequence + obj115.Steps = list163; + reference125 = obj115; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span55 = CollectionsMarshal.AsSpan(list174); - span55[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38843u, ItemCount = 3 }; - span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1044921u, new Vector3(-170.0008f, -49.34972f, -287.22064f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044921u, new Vector3(-170.0008f, -49.34972f, -287.22064f), 959) { StopDistance = 5f }; - obj122.Steps = list174; - reference132 = obj122; - questRoot20.QuestSequence = list164; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(4682); - QuestRoot questRoot21 = new QuestRoot(); + obj116.Steps = list164; + reference126 = obj116; + questRoot18.QuestSequence = list154; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(4682); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "kaiser"; - questRoot21.Author = list175; - num = 5; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span56 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference133 = ref span56[0]; - QuestSequence obj123 = new QuestSequence + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "kaiser"; + questRoot19.Author = list165; + index = 5; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span57 = CollectionsMarshal.AsSpan(list177); - span57[0] = new QuestStep(EInteractionType.None, null, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true, @@ -318991,22 +385318,26 @@ public static class AssemblyQuestLoader } } }; - span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true }; - obj123.Steps = list177; - reference133 = obj123; - ref QuestSequence reference134 = ref span56[1]; - QuestSequence obj124 = new QuestSequence + obj117.Steps = list167; + reference127 = obj117; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1044924u, new Vector3(344.625f, -168.00002f, -403.89105f), 959) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044924u, new Vector3(344.625f, -168.00002f, -403.89105f), 959) { StopDistance = 5f, Fly = true, @@ -319019,17 +385350,20 @@ public static class AssemblyQuestLoader } } }; - obj124.Steps = list178; - reference134 = obj124; - ref QuestSequence reference135 = ref span56[2]; - QuestSequence obj125 = new QuestSequence + obj118.Steps = list168; + reference128 = obj118; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1044926u, new Vector3(500.96887f, -164.43474f, -698.3902f), 959) + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044926u, new Vector3(500.96887f, -164.43474f, -698.3902f), 959) { StopDistance = 5f, Fly = true, @@ -319042,160 +385376,199 @@ public static class AssemblyQuestLoader } } }; - obj125.Steps = list179; - reference135 = obj125; - ref QuestSequence reference136 = ref span56[3]; - QuestSequence obj126 = new QuestSequence + obj119.Steps = list169; + reference129 = obj119; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj120 = new QuestSequence + { + Sequence = 3 + }; + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) + { + StopDistance = 5f, + Fly = true, + AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj120.Steps = list170; + reference130 = obj120; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj121 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 2; + List list171 = new List(num2); + CollectionsMarshal.SetCount(list171, num2); + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) + { + ItemId = 38845u, + ItemCount = 2 + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) + { + StopDistance = 5f, + Fly = true, + AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj121.Steps = list171; + reference131 = obj121; + questRoot19.QuestSequence = list166; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(4683); + QuestRoot questRoot20 = new QuestRoot(); + num = 1; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + span = CollectionsMarshal.AsSpan(list172); + index = 0; + span[index] = "liza"; + questRoot20.Author = list172; + index = 7; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + span2 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj122 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + obj122.Steps = list174; + reference132 = obj122; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj123 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044932u, new Vector3(12.436096f, 3.2249978f, 3.829956f), 962) + { + AetheryteShortcut = EAetheryteLocation.OldSharlayan + }; + obj123.Steps = list175; + reference133 = obj123; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj124 = new QuestSequence + { + Sequence = 2 + }; + index2 = 3; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + ref QuestStep reference135 = ref span3[num2]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1044934u, new Vector3(75.12012f, 5.149998f, -44.724243f), 962); + num3 = 6; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + span4 = CollectionsMarshal.AsSpan(list177); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list177; + reference135 = questStep11; + num2++; + ref QuestStep reference136 = ref span3[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1044933u, new Vector3(15.609924f, 2.3729992f, -72.19049f), 962); + num4 = 6; + List list178 = new List(num4); + CollectionsMarshal.SetCount(list178, num4); + span4 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list178; + reference136 = questStep12; + num2++; + ref QuestStep reference137 = ref span3[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1044935u, new Vector3(11.36792f, 41.37599f, -140.5509f), 962); + num3 = 6; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + span4 = CollectionsMarshal.AsSpan(list179); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list179; + reference137 = questStep13; + obj124.Steps = list176; + reference134 = obj124; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 3 }; num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) - { - StopDistance = 5f, - Fly = true, - AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj126.Steps = list180; - reference136 = obj126; - ref QuestSequence reference137 = ref span56[4]; - QuestSequence obj127 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span58 = CollectionsMarshal.AsSpan(list181); - span58[0] = new QuestStep(EInteractionType.Craft, null, null, 959) - { - ItemId = 38845u, - ItemCount = 2 - }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) - { - StopDistance = 5f, - Fly = true, - AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj127.Steps = list181; - reference137 = obj127; - questRoot21.QuestSequence = list176; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(4683); - QuestRoot questRoot22 = new QuestRoot(); - num = 1; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; - questRoot22.Author = list182; - num = 7; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span59 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference138 = ref span59[0]; - QuestSequence obj128 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); - obj128.Steps = list184; - reference138 = obj128; - ref QuestSequence reference139 = ref span59[1]; - QuestSequence obj129 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1044932u, new Vector3(12.436096f, 3.2249978f, 3.829956f), 962) - { - AetheryteShortcut = EAetheryteLocation.OldSharlayan - }; - obj129.Steps = list185; - reference139 = obj129; - ref QuestSequence reference140 = ref span59[2]; - QuestSequence obj130 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span60 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference141 = ref span60[0]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1044934u, new Vector3(75.12012f, 5.149998f, -44.724243f), 962); - num3 = 6; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - Span span61 = CollectionsMarshal.AsSpan(list187); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list187; - reference141 = questStep11; - ref QuestStep reference142 = ref span60[1]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1044933u, new Vector3(15.609924f, 2.3729992f, -72.19049f), 962); - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span62 = CollectionsMarshal.AsSpan(list188); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list188; - reference142 = questStep12; - 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 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; - ref QuestSequence reference144 = ref span59[3]; - QuestSequence obj131 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1044936u, new Vector3(-328.99976f, 20.0375f, -113.359314f), 962) + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044936u, new Vector3(-328.99976f, 20.0375f, -113.359314f), 962) { AethernetShortcut = new AethernetShortcut { @@ -319203,17 +385576,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - obj131.Steps = list190; - reference144 = obj131; - ref QuestSequence reference145 = ref span59[4]; - QuestSequence obj132 = new QuestSequence + obj125.Steps = list180; + reference138 = obj125; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -319222,313 +385598,379 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - obj132.Steps = list191; - reference145 = obj132; - ref QuestSequence reference146 = ref span59[5]; - QuestSequence obj133 = new QuestSequence + obj126.Steps = list181; + reference139 = obj126; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959) + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj133.Steps = list192; - reference146 = obj133; - ref QuestSequence reference147 = ref span59[6]; - QuestSequence obj134 = new QuestSequence + obj127.Steps = list182; + reference140 = obj127; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span64 = CollectionsMarshal.AsSpan(list193); - span64[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38847u, ItemCount = 2 }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959); - obj134.Steps = list193; - reference147 = obj134; - questRoot22.QuestSequence = list183; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(4684); - QuestRoot questRoot23 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959); + obj128.Steps = list183; + reference141 = obj128; + questRoot20.QuestSequence = list173; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(4684); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "AnimaMachinae"; - questRoot23.Author = list194; - num = 8; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span65 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference148 = ref span65[0]; - QuestSequence obj135 = new QuestSequence + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + span = CollectionsMarshal.AsSpan(list184); + index = 0; + span[index] = "AnimaMachinae"; + questRoot21.Author = list184; + index = 8; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + span2 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); - obj135.Steps = list196; - reference148 = obj135; - ref QuestSequence reference149 = ref span65[1]; - QuestSequence obj136 = new QuestSequence + List list186 = new List(num2); + CollectionsMarshal.SetCount(list186, num2); + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + obj129.Steps = list186; + reference142 = obj129; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 2013281u, new Vector3(-330.19f, 105.1499f, 554.5586f), 959) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013281u, new Vector3(-330.19f, 105.1499f, 554.5586f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - obj136.Steps = list197; - reference149 = obj136; - ref QuestSequence reference150 = ref span65[2]; - QuestSequence obj137 = new QuestSequence + obj130.Steps = list187; + reference143 = obj130; + num++; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1044942u, new Vector3(-331.838f, 105.39431f, 551.2322f), 959); - obj137.Steps = list198; - reference150 = obj137; - ref QuestSequence reference151 = ref span65[3]; - QuestSequence obj138 = new QuestSequence + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044942u, new Vector3(-331.838f, 105.39431f, 551.2322f), 959); + obj131.Steps = list188; + reference144 = obj131; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1044931u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044931u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj138.Steps = list199; - reference151 = obj138; - ref QuestSequence reference152 = ref span65[4]; - QuestSequence obj139 = new QuestSequence + obj132.Steps = list189; + reference145 = obj132; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { Fly = true }; - obj139.Steps = list200; - reference152 = obj139; - ref QuestSequence reference153 = ref span65[5]; - QuestSequence obj140 = new QuestSequence + obj133.Steps = list190; + reference146 = obj133; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span66 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference154 = ref span66[0]; - QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1044944u, new Vector3(-463.55383f, -157.99237f, -513.3593f), 959) + index2 = 3; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + span3 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference148 = ref span3[num2]; + QuestStep obj135 = new QuestStep(EInteractionType.Interact, 1044944u, new Vector3(-463.55383f, -157.99237f, -513.3593f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3 = 6; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span67 = CollectionsMarshal.AsSpan(list202); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj141.CompletionQuestVariablesFlags = list202; - reference154 = obj141; - ref QuestStep reference155 = ref span66[1]; - QuestStep obj142 = new QuestStep(EInteractionType.Interact, 1044945u, new Vector3(-540.1236f, -167.8502f, -620.63025f), 959) + num4 = 6; + List list192 = new List(num4); + CollectionsMarshal.SetCount(list192, num4); + span4 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj135.CompletionQuestVariablesFlags = list192; + reference148 = obj135; + num2++; + ref QuestStep reference149 = ref span3[num2]; + QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1044945u, new Vector3(-540.1236f, -167.8502f, -620.63025f), 959) { Fly = true }; num3 = 6; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span68 = CollectionsMarshal.AsSpan(list203); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj142.CompletionQuestVariablesFlags = list203; - reference155 = obj142; - span66[2] = new QuestStep(EInteractionType.Interact, 1044943u, new Vector3(-414.54187f, -158.1177f, -639.9481f), 959) + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + span4 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj136.CompletionQuestVariablesFlags = list193; + reference149 = obj136; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044943u, new Vector3(-414.54187f, -158.1177f, -639.9481f), 959) { Fly = true }; - obj140.Steps = list201; - reference153 = obj140; - ref QuestSequence reference156 = ref span65[6]; - QuestSequence obj143 = new QuestSequence + obj134.Steps = list191; + reference147 = obj134; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959) + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj143.Steps = list204; - reference156 = obj143; - ref QuestSequence reference157 = ref span65[7]; - QuestSequence obj144 = new QuestSequence + obj137.Steps = list194; + reference150 = obj137; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span69 = CollectionsMarshal.AsSpan(list205); - span69[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38849u, ItemCount = 1 }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959); - obj144.Steps = list205; - reference157 = obj144; - questRoot23.QuestSequence = list195; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(4685); - QuestRoot questRoot24 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959); + obj138.Steps = list195; + reference151 = obj138; + questRoot21.QuestSequence = list185; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(4685); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "kaiser"; - questRoot24.Author = list206; - num = 4; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span70 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference158 = ref span70[0]; - QuestSequence obj145 = new QuestSequence + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "kaiser"; + questRoot22.Author = list196; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list208)[0]; - QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; + QuestStep obj140 = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj147 = new SkipAetheryteCondition + SkipAetheryteCondition obj141 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference160 = ref span70[1]; - QuestSequence obj148 = new QuestSequence + num4 = 1; + List list199 = new List(num4); + CollectionsMarshal.SetCount(list199, num4); + span6 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span6[num3] = 959; + obj141.InTerritory = list199; + skipConditions2.AetheryteShortcutIf = obj141; + obj140.SkipConditions = skipConditions2; + reference153 = obj140; + obj139.Steps = list198; + reference152 = obj139; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1044953u, new Vector3(-340.53564f, 104.34723f, 531.3954f), 959) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044953u, new Vector3(-340.53564f, 104.34723f, 531.3954f), 959) { StopDistance = 5f, Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - obj148.Steps = list210; - reference160 = obj148; - ref QuestSequence reference161 = ref span70[2]; - QuestSequence obj149 = new QuestSequence + obj142.Steps = list200; + reference154 = obj142; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959) + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959) { StopDistance = 5f }; - obj149.Steps = list211; - reference161 = obj149; - ref QuestSequence reference162 = ref span70[3]; - QuestSequence obj150 = new QuestSequence + obj143.Steps = list201; + reference155 = obj143; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span71 = CollectionsMarshal.AsSpan(list212); - span71[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38851u, ItemCount = 1 }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959); - obj150.Steps = list212; - reference162 = obj150; - questRoot24.QuestSequence = list207; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(4686); - QuestRoot questRoot25 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959); + obj144.Steps = list202; + reference156 = obj144; + questRoot22.QuestSequence = list197; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(4686); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "pot0to"; - questRoot25.Author = list213; - num = 6; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span72 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference163 = ref span72[0]; - QuestSequence obj151 = new QuestSequence + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "pot0to"; + questRoot23.Author = list203; + index = 6; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + List list205 = new List(num2); + CollectionsMarshal.SetCount(list205, num2); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { Fly = true, SkipConditions = new SkipConditions @@ -319539,237 +385981,285 @@ public static class AssemblyQuestLoader } } }; - obj151.Steps = list215; - reference163 = obj151; - ref QuestSequence reference164 = ref span72[1]; - QuestSequence obj152 = new QuestSequence + obj145.Steps = list205; + reference157 = obj145; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1044404u, new Vector3(-203.5401f, -48.949738f, -280.232f), 959); - obj152.Steps = list216; - reference164 = obj152; - ref QuestSequence reference165 = ref span72[2]; - QuestSequence obj153 = new QuestSequence + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044404u, new Vector3(-203.5401f, -48.949738f, -280.232f), 959); + obj146.Steps = list206; + reference158 = obj146; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1044406u, new Vector3(-174.63953f, -49.149708f, -248.67633f), 959); - obj153.Steps = list217; - reference165 = obj153; - ref QuestSequence reference166 = ref span72[3]; - QuestSequence obj154 = new QuestSequence + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044406u, new Vector3(-174.63953f, -49.149708f, -248.67633f), 959); + obj147.Steps = list207; + reference159 = obj147; + num++; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1044407u, new Vector3(-196.49048f, -48.874695f, -301.01477f), 959); - obj154.Steps = list218; - reference166 = obj154; - ref QuestSequence reference167 = ref span72[4]; - QuestSequence obj155 = new QuestSequence + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044407u, new Vector3(-196.49048f, -48.874695f, -301.01477f), 959); + obj148.Steps = list208; + reference160 = obj148; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1044414u, new Vector3(-170.79425f, -48.89972f, -282.18512f), 959); - obj155.Steps = list219; - reference167 = obj155; - ref QuestSequence reference168 = ref span72[5]; - QuestSequence obj156 = new QuestSequence + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044414u, new Vector3(-170.79425f, -48.89972f, -282.18512f), 959); + obj149.Steps = list209; + reference161 = obj149; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); - obj156.Steps = list220; - reference168 = obj156; - questRoot25.QuestSequence = list214; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(4687); - QuestRoot questRoot26 = new QuestRoot(); + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + obj150.Steps = list210; + reference162 = obj150; + questRoot23.QuestSequence = list204; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(4687); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; - questRoot26.Author = list221; - num = 3; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span73 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference169 = ref span73[0]; - QuestSequence obj157 = new QuestSequence + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "liza"; + questRoot24.Author = list211; + index = 3; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span74 = CollectionsMarshal.AsSpan(list223); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span74[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj157.Steps = list223; - reference169 = obj157; - ref QuestSequence reference170 = ref span73[1]; - QuestSequence obj158 = new QuestSequence + List list213 = new List(num2); + CollectionsMarshal.SetCount(list213, num2); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj151.Steps = list213; + reference163 = obj151; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1044564u, new Vector3(456.13794f, -167.50003f, -759.02954f), 959) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044564u, new Vector3(456.13794f, -167.50003f, -759.02954f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj158.Steps = list224; - reference170 = obj158; - ref QuestSequence reference171 = ref span73[2]; - QuestSequence obj159 = new QuestSequence + obj152.Steps = list214; + reference164 = obj152; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span75 = CollectionsMarshal.AsSpan(list225); - span75[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38853u, ItemCount = 3 }; - span75[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span75[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj159.Steps = list225; - reference171 = obj159; - questRoot26.QuestSequence = list222; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(4688); - QuestRoot questRoot27 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj153.Steps = list215; + reference165 = obj153; + questRoot24.QuestSequence = list212; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(4688); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "liza"; - questRoot27.Author = list226; - num = 4; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span76 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference172 = ref span76[0]; - QuestSequence obj160 = new QuestSequence + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "liza"; + questRoot25.Author = list216; + index = 4; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span77 = CollectionsMarshal.AsSpan(list228); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj160.Steps = list228; - reference172 = obj160; - ref QuestSequence reference173 = ref span76[1]; - QuestSequence obj161 = new QuestSequence + index2 = 2; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj154.Steps = list218; + reference166 = obj154; + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959) + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj161.Steps = list229; - reference173 = obj161; - ref QuestSequence reference174 = ref span76[2]; - QuestSequence obj162 = new QuestSequence + obj155.Steps = list219; + reference167 = obj155; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span78 = CollectionsMarshal.AsSpan(list230); - span78[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38855u, ItemCount = 2 }; - span78[1] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959); - obj162.Steps = list230; - reference174 = obj162; - ref QuestSequence reference175 = ref span76[3]; - QuestSequence obj163 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959); + obj156.Steps = list220; + reference168 = obj156; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - Span span79 = CollectionsMarshal.AsSpan(list231); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj163.Steps = list231; - reference175 = obj163; - questRoot27.QuestSequence = list227; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(4689); - QuestRoot questRoot28 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj157.Steps = list221; + reference169 = obj157; + questRoot25.QuestSequence = list217; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(4689); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; - questRoot28.Author = list232; - num = 3; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span80 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference176 = ref span80[0]; - QuestSequence obj164 = new QuestSequence + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; + questRoot26.Author = list222; + index = 3; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span81 = CollectionsMarshal.AsSpan(list234); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span81[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj164.Steps = list234; - reference176 = obj164; - ref QuestSequence reference177 = ref span80[1]; - QuestSequence obj165 = new QuestSequence + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj158.Steps = list224; + reference170 = obj158; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span82 = CollectionsMarshal.AsSpan(list235); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.51479f, -105.22506f, -511.04712f), 959) + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.51479f, -105.22506f, -511.04712f), 959) { Fly = true, SkipConditions = new SkipConditions @@ -319780,225 +386270,269 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.Interact, 1044572u, new Vector3(-638.056f, -143.79326f, -513.0846f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044572u, new Vector3(-638.056f, -143.79326f, -513.0846f), 959) { Fly = true }; - obj165.Steps = list235; - reference177 = obj165; - ref QuestSequence reference178 = ref span80[2]; - QuestSequence obj166 = new QuestSequence + obj159.Steps = list225; + reference171 = obj159; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span83 = CollectionsMarshal.AsSpan(list236); - span83[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38857u, ItemCount = 4 }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span83[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj166.Steps = list236; - reference178 = obj166; - questRoot28.QuestSequence = list233; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(4690); - QuestRoot questRoot29 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj160.Steps = list226; + reference172 = obj160; + questRoot26.QuestSequence = list223; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(4690); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; - questRoot29.Author = list237; - num = 5; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span84 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference179 = ref span84[0]; - QuestSequence obj167 = new QuestSequence + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + span = CollectionsMarshal.AsSpan(list227); + index = 0; + span[index] = "liza"; + questRoot27.Author = list227; + index = 5; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + span2 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span85 = CollectionsMarshal.AsSpan(list239); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span85[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj167.Steps = list239; - reference179 = obj167; - ref QuestSequence reference180 = ref span84[1]; - QuestSequence obj168 = new QuestSequence + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj161.Steps = list229; + reference173 = obj161; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1044567u, new Vector3(-17.502136f, -47.192066f, -528.03845f), 959) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044567u, new Vector3(-17.502136f, -47.192066f, -528.03845f), 959) { Fly = true }; - obj168.Steps = list240; - reference180 = obj168; - ref QuestSequence reference181 = ref span84[2]; - QuestSequence obj169 = new QuestSequence + obj162.Steps = list230; + reference174 = obj162; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) { Fly = true, Emote = EEmote.Dance }; - obj169.Steps = list241; - reference181 = obj169; - ref QuestSequence reference182 = ref span84[3]; - QuestSequence obj170 = new QuestSequence + obj163.Steps = list231; + reference175 = obj163; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) { Emote = EEmote.Dance }; - obj170.Steps = list242; - reference182 = obj170; - ref QuestSequence reference183 = ref span84[4]; - QuestSequence obj171 = new QuestSequence + obj164.Steps = list232; + reference176 = obj164; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span86 = CollectionsMarshal.AsSpan(list243); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj171.Steps = list243; - reference183 = obj171; - questRoot29.QuestSequence = list238; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(4691); - QuestRoot questRoot30 = new QuestRoot(); + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj165.Steps = list233; + reference177 = obj165; + questRoot27.QuestSequence = list228; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(4691); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; - questRoot30.Author = list244; - num = 4; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span87 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference184 = ref span87[0]; - QuestSequence obj172 = new QuestSequence + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "liza"; + questRoot28.Author = list234; + index = 4; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span88 = CollectionsMarshal.AsSpan(list246); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span88[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj172.Steps = list246; - reference184 = obj172; - ref QuestSequence reference185 = ref span87[1]; - QuestSequence obj173 = new QuestSequence + index2 = 2; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj166.Steps = list236; + reference178 = obj166; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959) + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj173.Steps = list247; - reference185 = obj173; - ref QuestSequence reference186 = ref span87[2]; - QuestSequence obj174 = new QuestSequence + obj167.Steps = list237; + reference179 = obj167; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span89 = CollectionsMarshal.AsSpan(list248); - span89[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38859u, ItemCount = 3 }; - span89[1] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959); - obj174.Steps = list248; - reference186 = obj174; - ref QuestSequence reference187 = ref span87[3]; - QuestSequence obj175 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959); + obj168.Steps = list238; + reference180 = obj168; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span90 = CollectionsMarshal.AsSpan(list249); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj175.Steps = list249; - reference187 = obj175; - questRoot30.QuestSequence = list245; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(4692); - QuestRoot questRoot31 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj169.Steps = list239; + reference181 = obj169; + questRoot28.QuestSequence = list235; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(4692); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "Kaiser"; - questRoot31.Author = list250; - num = 3; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span91 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference188 = ref span91[0]; - QuestSequence obj176 = new QuestSequence + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + span = CollectionsMarshal.AsSpan(list240); + index = 0; + span[index] = "Kaiser"; + questRoot29.Author = list240; + index = 3; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + span2 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span92 = CollectionsMarshal.AsSpan(list252); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span92[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj176.Steps = list252; - reference188 = obj176; - ref QuestSequence reference189 = ref span91[1]; - QuestSequence obj177 = new QuestSequence + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj170.Steps = list242; + reference182 = obj170; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1044569u, new Vector3(-385.6718f, -151.67168f, -261.28027f), 959) + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044569u, new Vector3(-385.6718f, -151.67168f, -261.28027f), 959) { StopDistance = 5f, Fly = true, @@ -320016,23 +386550,26 @@ public static class AssemblyQuestLoader } } }; - obj177.Steps = list253; - reference189 = obj177; - ref QuestSequence reference190 = ref span91[2]; - QuestSequence obj178 = new QuestSequence + obj171.Steps = list243; + reference183 = obj171; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - Span span93 = CollectionsMarshal.AsSpan(list254); - span93[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38861u, ItemCount = 2 }; - span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -320049,102 +386586,123 @@ public static class AssemblyQuestLoader } } }; - span93[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj178.Steps = list254; - reference190 = obj178; - questRoot31.QuestSequence = list251; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(4693); - QuestRoot questRoot32 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj172.Steps = list244; + reference184 = obj172; + questRoot29.QuestSequence = list241; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(4693); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "kaiser"; - questRoot32.Author = list255; - num = 3; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span94 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference191 = ref span94[0]; - QuestSequence obj179 = new QuestSequence + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "kaiser"; + questRoot30.Author = list245; + index = 3; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + span2 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span95 = CollectionsMarshal.AsSpan(list257); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span95[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj179.Steps = list257; - reference191 = obj179; - ref QuestSequence reference192 = ref span94[1]; - QuestSequence obj180 = new QuestSequence + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj173.Steps = list247; + reference185 = obj173; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959) { StopDistance = 5f }; - obj180.Steps = list258; - reference192 = obj180; - ref QuestSequence reference193 = ref span94[2]; - QuestSequence obj181 = new QuestSequence + obj174.Steps = list248; + reference186 = obj174; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - Span span96 = CollectionsMarshal.AsSpan(list259); - span96[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38863u, ItemCount = 3 }; - span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span96[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj181.Steps = list259; - reference193 = obj181; - questRoot32.QuestSequence = list256; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(4694); - QuestRoot questRoot33 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj175.Steps = list249; + reference187 = obj175; + questRoot30.QuestSequence = list246; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(4694); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "kaiser"; - questRoot33.Author = list260; - num = 4; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span97 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference194 = ref span97[0]; - QuestSequence obj182 = new QuestSequence + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + span = CollectionsMarshal.AsSpan(list250); + index = 0; + span[index] = "kaiser"; + questRoot31.Author = list250; + index = 4; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + span2 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span98 = CollectionsMarshal.AsSpan(list262); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span98[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj182.Steps = list262; - reference194 = obj182; - ref QuestSequence reference195 = ref span97[1]; - QuestSequence obj183 = new QuestSequence + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj176.Steps = list252; + reference188 = obj176; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959) + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959) { StopDistance = 5f, Fly = true, @@ -320157,40 +386715,46 @@ public static class AssemblyQuestLoader } } }; - obj183.Steps = list263; - reference195 = obj183; - ref QuestSequence reference196 = ref span97[2]; - QuestSequence obj184 = new QuestSequence + obj177.Steps = list253; + reference189 = obj177; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span99 = CollectionsMarshal.AsSpan(list264); - span99[0] = new QuestStep(EInteractionType.Action, 2013257u, new Vector3(-706.41644f, -140.39832f, -433.76825f), 959) + index2 = 2; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 2013257u, new Vector3(-706.41644f, -140.39832f, -433.76825f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - span99[1] = new QuestStep(EInteractionType.Action, 2013256u, new Vector3(-739.0097f, -139.72687f, -539.0555f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2013256u, new Vector3(-739.0097f, -139.72687f, -539.0555f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - obj184.Steps = list264; - reference196 = obj184; - ref QuestSequence reference197 = ref span97[3]; - QuestSequence obj185 = new QuestSequence + obj178.Steps = list254; + reference190 = obj178; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) { StopDistance = 5f, Fly = true, @@ -320208,383 +386772,462 @@ public static class AssemblyQuestLoader } } }; - obj185.Steps = list265; - reference197 = obj185; - questRoot33.QuestSequence = list261; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(4695); - QuestRoot questRoot34 = new QuestRoot(); + obj179.Steps = list255; + reference191 = obj179; + questRoot31.QuestSequence = list251; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(4695); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; - questRoot34.Author = list266; - num = 3; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span100 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference198 = ref span100[0]; - QuestSequence obj186 = new QuestSequence + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "liza"; + questRoot32.Author = list256; + index = 3; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span101 = CollectionsMarshal.AsSpan(list268); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span101[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj186.Steps = list268; - reference198 = obj186; - ref QuestSequence reference199 = ref span100[1]; - QuestSequence obj187 = new QuestSequence + index2 = 2; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj180.Steps = list258; + reference192 = obj180; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1044580u, new Vector3(323.84216f, -144.00002f, -539.086f), 959) + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044580u, new Vector3(323.84216f, -144.00002f, -539.086f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj187.Steps = list269; - reference199 = obj187; - ref QuestSequence reference200 = ref span100[2]; - QuestSequence obj188 = new QuestSequence + obj181.Steps = list259; + reference193 = obj181; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span102 = CollectionsMarshal.AsSpan(list270); - span102[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38865u, ItemCount = 3 }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span102[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj188.Steps = list270; - reference200 = obj188; - questRoot34.QuestSequence = list267; - AddQuest(questId34, questRoot34); - QuestId questId35 = new QuestId(4696); - QuestRoot questRoot35 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj182.Steps = list260; + reference194 = obj182; + questRoot32.QuestSequence = list257; + AddQuest(questId32, questRoot32); + QuestId questId33 = new QuestId(4696); + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; - questRoot35.Author = list271; - num = 4; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span103 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference201 = ref span103[0]; - QuestSequence obj189 = new QuestSequence + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; + questRoot33.Author = list261; + index = 4; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span104 = CollectionsMarshal.AsSpan(list273); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span104[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj189.Steps = list273; - reference201 = obj189; - ref QuestSequence reference202 = ref span103[1]; - QuestSequence obj190 = new QuestSequence + List list263 = new List(num2); + CollectionsMarshal.SetCount(list263, num2); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj183.Steps = list263; + reference195 = obj183; + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); - obj190.Steps = list274; - reference202 = obj190; - ref QuestSequence reference203 = ref span103[2]; - QuestSequence obj191 = new QuestSequence + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + obj184.Steps = list264; + reference196 = obj184; + num++; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - Span span105 = CollectionsMarshal.AsSpan(list275); - span105[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38867u, ItemCount = 1 }; - span105[1] = new QuestStep(EInteractionType.Interact, 1044581u, new Vector3(-691.37103f, -152.75392f, -706.9963f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044581u, new Vector3(-691.37103f, -152.75392f, -706.9963f), 959) { Fly = true }; - obj191.Steps = list275; - reference203 = obj191; - ref QuestSequence reference204 = ref span103[3]; - QuestSequence obj192 = new QuestSequence + obj185.Steps = list265; + reference197 = obj185; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span106 = CollectionsMarshal.AsSpan(list276); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + index2 = 2; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span106[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj192.Steps = list276; - reference204 = obj192; - questRoot35.QuestSequence = list272; - AddQuest(questId35, questRoot35); - QuestId questId36 = new QuestId(4697); - QuestRoot questRoot36 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj186.Steps = list266; + reference198 = obj186; + questRoot33.QuestSequence = list262; + AddQuest(questId33, questRoot33); + QuestId questId34 = new QuestId(4697); + QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "liza"; - questRoot36.Author = list277; - num = 3; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span107 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference205 = ref span107[0]; - QuestSequence obj193 = new QuestSequence + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + span = CollectionsMarshal.AsSpan(list267); + index = 0; + span[index] = "liza"; + questRoot34.Author = list267; + index = 3; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + span2 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span108 = CollectionsMarshal.AsSpan(list279); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj193.Steps = list279; - reference205 = obj193; - ref QuestSequence reference206 = ref span107[1]; - QuestSequence obj194 = new QuestSequence + List list269 = new List(num2); + CollectionsMarshal.SetCount(list269, num2); + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj187.Steps = list269; + reference199 = obj187; + num++; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span109 = CollectionsMarshal.AsSpan(list280); - ref QuestStep reference207 = ref span109[0]; - QuestStep obj195 = new QuestStep(EInteractionType.Interact, 2013259u, new Vector3(725.03235f, 150.92688f, 134.96594f), 959) + index2 = 2; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference201 = ref span3[num2]; + QuestStep obj189 = new QuestStep(EInteractionType.Interact, 2013259u, new Vector3(725.03235f, 150.92688f, 134.96594f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; num3 = 6; - List> list281 = new List>(num3); - CollectionsMarshal.SetCount(list281, num3); - Span> span110 = CollectionsMarshal.AsSpan(list281); - span110[0] = null; - span110[1] = null; - ref List reference208 = ref span110[2]; - int num4 = 1; - List list282 = new List(num4); - CollectionsMarshal.SetCount(list282, num4); - CollectionsMarshal.AsSpan(list282)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - reference208 = list282; - span110[3] = null; - span110[4] = null; - span110[5] = null; - obj195.RequiredQuestVariables = list281; - reference207 = obj195; - ref QuestStep reference209 = ref span109[1]; - QuestStep obj196 = new QuestStep(EInteractionType.Interact, 2013260u, new Vector3(725.063f, 141.37488f, 233.02039f), 959) + List> list271 = new List>(num3); + CollectionsMarshal.SetCount(list271, num3); + Span> span8 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + ref List reference202 = ref span8[num4]; + int num5 = 1; + List list272 = new List(num5); + CollectionsMarshal.SetCount(list272, num5); + span4 = CollectionsMarshal.AsSpan(list272); + int index3 = 0; + span4[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + reference202 = list272; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + obj189.RequiredQuestVariables = list271; + reference201 = obj189; + num2++; + ref QuestStep reference203 = ref span3[num2]; + QuestStep obj190 = new QuestStep(EInteractionType.Interact, 2013260u, new Vector3(725.063f, 141.37488f, 233.02039f), 959) { Fly = true }; - num3 = 6; - List> list283 = new List>(num3); - CollectionsMarshal.SetCount(list283, num3); - Span> span111 = CollectionsMarshal.AsSpan(list283); - span111[0] = null; - span111[1] = null; - ref List reference210 = ref span111[2]; - num4 = 1; - List list284 = new List(num4); - CollectionsMarshal.SetCount(list284, num4); - CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - reference210 = list284; - span111[3] = null; - span111[4] = null; - span111[5] = null; - obj196.RequiredQuestVariables = list283; - reference209 = obj196; - obj194.Steps = list280; - reference206 = obj194; - ref QuestSequence reference211 = ref span107[2]; - QuestSequence obj197 = new QuestSequence + num4 = 6; + List> list273 = new List>(num4); + CollectionsMarshal.SetCount(list273, num4); + span8 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + ref List reference204 = ref span8[num3]; + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + span4 = CollectionsMarshal.AsSpan(list274); + num5 = 0; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + reference204 = list274; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + obj190.RequiredQuestVariables = list273; + reference203 = obj190; + obj188.Steps = list270; + reference200 = obj188; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span112 = CollectionsMarshal.AsSpan(list285); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + List list275 = new List(num2); + CollectionsMarshal.SetCount(list275, num2); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span112[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj197.Steps = list285; - reference211 = obj197; - questRoot36.QuestSequence = list278; - AddQuest(questId36, questRoot36); - QuestId questId37 = new QuestId(4698); - QuestRoot questRoot37 = new QuestRoot(); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj191.Steps = list275; + reference205 = obj191; + questRoot34.QuestSequence = list268; + AddQuest(questId34, questRoot34); + QuestId questId35 = new QuestId(4698); + QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; - questRoot37.Author = list286; - num = 3; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span113 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference212 = ref span113[0]; - QuestSequence obj198 = new QuestSequence + List list276 = new List(num); + CollectionsMarshal.SetCount(list276, num); + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "liza"; + questRoot35.Author = list276; + index = 3; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span114 = CollectionsMarshal.AsSpan(list288); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span114[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj198.Steps = list288; - reference212 = obj198; - ref QuestSequence reference213 = ref span113[1]; - QuestSequence obj199 = new QuestSequence + index2 = 2; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj192.Steps = list278; + reference206 = obj192; + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1044583u, new Vector3(-52.018066f, -137.4167f, -622.4613f), 959) + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044583u, new Vector3(-52.018066f, -137.4167f, -622.4613f), 959) { Fly = true }; - obj199.Steps = list289; - reference213 = obj199; - ref QuestSequence reference214 = ref span113[2]; - QuestSequence obj200 = new QuestSequence + obj193.Steps = list279; + reference207 = obj193; + num++; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span115 = CollectionsMarshal.AsSpan(list290); - span115[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38869u, ItemCount = 4 }; - span115[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span115[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj200.Steps = list290; - reference214 = obj200; - questRoot37.QuestSequence = list287; - AddQuest(questId37, questRoot37); - QuestId questId38 = new QuestId(4699); - QuestRoot questRoot38 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj194.Steps = list280; + reference208 = obj194; + questRoot35.QuestSequence = list277; + AddQuest(questId35, questRoot35); + QuestId questId36 = new QuestId(4699); + QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "pot0to"; - questRoot38.Author = list291; - num = 4; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span116 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference215 = ref span116[0]; - QuestSequence obj201 = new QuestSequence + List list281 = new List(num); + CollectionsMarshal.SetCount(list281, num); + span = CollectionsMarshal.AsSpan(list281); + index = 0; + span[index] = "pot0to"; + questRoot36.Author = list281; + index = 4; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + span2 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span117 = CollectionsMarshal.AsSpan(list293); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj201.Steps = list293; - reference215 = obj201; - ref QuestSequence reference216 = ref span116[1]; - QuestSequence obj202 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj195.Steps = list283; + reference209 = obj195; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); - obj202.Steps = list294; - reference216 = obj202; - ref QuestSequence reference217 = ref span116[2]; - QuestSequence obj203 = new QuestSequence + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + obj196.Steps = list284; + reference210 = obj196; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - Span span118 = CollectionsMarshal.AsSpan(list295); - span118[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38871u, ItemCount = 1 }; - span118[1] = new QuestStep(EInteractionType.Interact, 1044584u, new Vector3(563.8971f, -167.50002f, -594.53723f), 959) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044584u, new Vector3(563.8971f, -167.50002f, -594.53723f), 959) { Fly = true }; - obj203.Steps = list295; - reference217 = obj203; - ref QuestSequence reference218 = ref span116[3]; - QuestSequence obj204 = new QuestSequence + obj197.Steps = list285; + reference211 = obj197; + num++; + ref QuestSequence reference212 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span119 = CollectionsMarshal.AsSpan(list296); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + index2 = 2; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); - obj204.Steps = list296; - reference218 = obj204; - questRoot38.QuestSequence = list292; - AddQuest(questId38, questRoot38); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + obj198.Steps = list286; + reference212 = obj198; + questRoot36.QuestSequence = list282; + AddQuest(questId36, questRoot36); } private static void LoadQuests94() @@ -320594,13 +387237,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -320608,26 +387254,32 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -320635,7 +387287,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Say, 1044585u, new Vector3(-496.14713f, -154.93994f, -484.88593f), 959) + span3 = CollectionsMarshal.AsSpan(list5); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Say, 1044585u, new Vector3(-496.14713f, -154.93994f, -484.88593f), 959) { Fly = true, ChatMessage = new ChatMessage @@ -320645,21 +387299,25 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -320667,12 +387325,14 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span3 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -320682,26 +387342,32 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -320709,25 +387375,31 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + span3 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + num3 = 3; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38873u, ItemCount = 3 }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span6[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list9; @@ -320737,13 +387409,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "liza"; questRoot3.Author = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span7 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span7[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -320751,27 +387426,33 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span8 = CollectionsMarshal.AsSpan(list15); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span8[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list15); + 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); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span7[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959) + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959) { StopDistance = 0.5f, Fly = true }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span7[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -320779,30 +387460,35 @@ public static class AssemblyQuestLoader num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + span3 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38875u, ItemCount = 1 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj12.Steps = list18; reference12 = obj12; questRoot3.QuestSequence = list14; @@ -320812,13 +387498,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "liza"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span11[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -320826,27 +387515,33 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list21); + 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); obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span11[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959) + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span11[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -320854,30 +387549,35 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + span3 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38877u, ItemCount = 2 }; - span13[1] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span11[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj16.Steps = list24; reference16 = obj16; questRoot4.QuestSequence = list20; @@ -320887,13 +387587,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; questRoot5.Author = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span15 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span15[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -320901,23 +387604,29 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list27); + 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); obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span15[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span15[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 @@ -320925,76 +387634,100 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span17 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference20 = ref span17[0]; + span3 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + ref QuestStep reference20 = ref span3[num3]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1044590u, new Vector3(-536.9497f, -157.99246f, -693.75146f), 959) { StopDistance = 1f, Fly = true }; - int num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + int num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span4 = CollectionsMarshal.AsSpan(list30); + int num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list30; reference20 = obj20; - ref QuestStep reference21 = ref span17[1]; + num3++; + ref QuestStep reference21 = ref span3[num3]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044591u, new Vector3(-502.58643f, -161.38867f, -773.251f), 959) { Fly = true }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list31 = new List(num5); + CollectionsMarshal.SetCount(list31, num5); + span4 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list31; reference21 = obj21; - ref QuestStep reference22 = ref span17[2]; + num3++; + ref QuestStep reference22 = ref span3[num3]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044589u, new Vector3(-433.03577f, -167.50002f, -741.7258f), 959) { Fly = true }; - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span20 = CollectionsMarshal.AsSpan(list32); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + span4 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list32; reference22 = obj22; obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference23 = ref span15[3]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span21 = CollectionsMarshal.AsSpan(list33); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj23.Steps = list33; reference23 = obj23; questRoot5.QuestSequence = list26; @@ -321004,13 +387737,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list34); + index = 0; + span[index] = "liza"; questRoot6.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span22 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference24 = ref span22[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + span2 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -321018,26 +387754,32 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span23 = CollectionsMarshal.AsSpan(list36); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span23[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list36); + 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); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span22[1]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1044592u, new Vector3(-493.40048f, -158.89024f, -384.29846f), 959) + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044592u, new Vector3(-493.40048f, -158.89024f, -384.29846f), 959) { Fly = true }; obj25.Steps = list37; reference25 = obj25; - ref QuestSequence reference26 = ref span22[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -321045,18 +387787,21 @@ public static class AssemblyQuestLoader num2 = 3; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span24 = CollectionsMarshal.AsSpan(list38); - span24[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + span3 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38879u, ItemCount = 2 }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span24[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list35; @@ -321066,26 +387811,32 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot7.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span25 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference27 = ref span25[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span26 = CollectionsMarshal.AsSpan(list41); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span25[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -321093,30 +387844,36 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + span3 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span25[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span27 = CollectionsMarshal.AsSpan(list43); - span27[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + num3 = 2; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38881u, ItemCount = 1 }; - span27[1] = new QuestStep(EInteractionType.Interact, 1044602u, new Vector3(463.0349f, -167.81126f, -490.13504f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044602u, new Vector3(463.0349f, -167.81126f, -490.13504f), 959) { Fly = true }; obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference30 = ref span25[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -321124,13 +387881,15 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span28 = CollectionsMarshal.AsSpan(list44); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span3 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj30.Steps = list44; reference30 = obj30; questRoot7.QuestSequence = list40; @@ -321140,26 +387899,32 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; questRoot8.Author = list45; - num = 4; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span29 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference31 = ref span29[0]; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + span2 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span30 = CollectionsMarshal.AsSpan(list47); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span30[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span29[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -321167,78 +387932,103 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959); + span3 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959); obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference33 = ref span29[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span31 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference34 = ref span31[0]; + num3 = 3; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference34 = ref span3[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Action, 2013262u, new Vector3(34.98889f, -47.56244f, -531.5481f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span32 = CollectionsMarshal.AsSpan(list50); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list50 = new List(num5); + CollectionsMarshal.SetCount(list50, num5); + span4 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list50; reference34 = obj34; - ref QuestStep reference35 = ref span31[1]; + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Action, 2013263u, new Vector3(49.79016f, -133.07397f, -558.9227f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span33 = CollectionsMarshal.AsSpan(list51); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + span4 = CollectionsMarshal.AsSpan(list51); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list51; reference35 = obj35; - ref QuestStep reference36 = ref span31[2]; + num2++; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Action, 2013261u, new Vector3(-34.28705f, -129.2287f, -495.71985f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span34 = CollectionsMarshal.AsSpan(list52); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list52 = new List(num5); + CollectionsMarshal.SetCount(list52, num5); + span4 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list52; reference36 = obj36; obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference37 = ref span29[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -321246,12 +388036,14 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span35 = CollectionsMarshal.AsSpan(list53); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span3 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) { Mount = false }; @@ -321264,26 +388056,32 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "liza"; questRoot9.Author = list54; - num = 4; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span36 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference38 = ref span36[0]; + index = 4; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span37 = CollectionsMarshal.AsSpan(list56); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference39 = ref span36[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -321291,31 +388089,37 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959) + span3 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959) { StopDistance = 1f, Fly = true }; obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference40 = ref span36[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span38 = CollectionsMarshal.AsSpan(list58); - span38[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + num3 = 2; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38883u, ItemCount = 3 }; - span38[1] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959); obj40.Steps = list58; reference40 = obj40; - ref QuestSequence reference41 = ref span36[3]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -321323,13 +388127,15 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span39 = CollectionsMarshal.AsSpan(list59); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span3 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj41.Steps = list59; reference41 = obj41; questRoot9.QuestSequence = list55; @@ -321339,26 +388145,32 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list60); + index = 0; + span[index] = "liza"; questRoot10.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span40 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span40[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + span2 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span41 = CollectionsMarshal.AsSpan(list62); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj42.Steps = list62; reference42 = obj42; - ref QuestSequence reference43 = ref span40[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -321366,92 +388178,123 @@ public static class AssemblyQuestLoader num2 = 4; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span42 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference44 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + ref QuestStep reference44 = ref span3[num3]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2013264u, new Vector3(47.01306f, -132.86035f, -504.08182f), 959) { Fly = true }; - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span43 = CollectionsMarshal.AsSpan(list64); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span4 = CollectionsMarshal.AsSpan(list64); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list64; reference44 = obj44; - ref QuestStep reference45 = ref span42[1]; + num3++; + ref QuestStep reference45 = ref span3[num3]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 2013266u, new Vector3(64.65234f, -132.61621f, -451.133f), 959) { Fly = true }; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span44 = CollectionsMarshal.AsSpan(list65); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list65 = new List(num5); + CollectionsMarshal.SetCount(list65, num5); + span4 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list65; reference45 = obj45; - ref QuestStep reference46 = ref span42[2]; + num3++; + ref QuestStep reference46 = ref span3[num3]; QuestStep obj46 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.153883f, -132.7894f, -444.4903f), 959) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span45 = CollectionsMarshal.AsSpan(list66); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list66 = new List(num4); + CollectionsMarshal.SetCount(list66, num4); + span4 = CollectionsMarshal.AsSpan(list66); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list66; skipConditions.StepIf = skipStepConditions; obj46.SkipConditions = skipConditions; reference46 = obj46; - ref QuestStep reference47 = ref span42[3]; + num3++; + ref QuestStep reference47 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013265u, new Vector3(15.060608f, -131.27338f, -444.0528f), 959); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span46 = CollectionsMarshal.AsSpan(list67); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list67 = new List(num5); + CollectionsMarshal.SetCount(list67, num5); + span4 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list67; reference47 = questStep; obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference48 = ref span40[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span47 = CollectionsMarshal.AsSpan(list68); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj47.Steps = list68; reference48 = obj47; questRoot10.QuestSequence = list61; @@ -321461,13 +388304,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list69); + index = 0; + span[index] = "liza"; questRoot11.Author = list69; - num = 3; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span48 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference49 = ref span48[0]; + index = 3; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + span2 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -321475,27 +388321,33 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span49 = CollectionsMarshal.AsSpan(list71); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list71); + 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); obj48.Steps = list71; reference49 = obj48; - ref QuestSequence reference50 = ref span48[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1044610u, new Vector3(588.281f, -161.13907f, -761.0742f), 959) + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044610u, new Vector3(588.281f, -161.13907f, -761.0742f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj49.Steps = list72; reference50 = obj49; - ref QuestSequence reference51 = ref span48[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -321503,18 +388355,21 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span50 = CollectionsMarshal.AsSpan(list73); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + span3 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38885u, ItemCount = 1 }; - span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span50[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj50.Steps = list73; reference51 = obj50; questRoot11.QuestSequence = list70; @@ -321524,26 +388379,32 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "liza"; questRoot12.Author = list74; - num = 3; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span51 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference52 = ref span51[0]; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span52 = CollectionsMarshal.AsSpan(list76); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj51.Steps = list76; reference52 = obj51; - ref QuestSequence reference53 = ref span51[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -321551,16 +388412,20 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; + span3 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + ref QuestStep reference54 = ref span3[num3]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1044613u, new Vector3(493.55298f, -163.52985f, -711.54346f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span5 = CollectionsMarshal.AsSpan(list78); + num5 = 0; + span5[num5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANLOP125_04711_Q1_000_000"), @@ -321570,21 +388435,24 @@ public static class AssemblyQuestLoader reference54 = obj53; obj52.Steps = list77; reference53 = obj52; - ref QuestSequence reference55 = ref span51[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span53 = CollectionsMarshal.AsSpan(list79); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span53[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj54.Steps = list79; reference55 = obj54; questRoot12.QuestSequence = list75; @@ -321594,13 +388462,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot13.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span54 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference56 = ref span54[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -321608,26 +388479,32 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span55 = CollectionsMarshal.AsSpan(list82); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list82); + 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); obj55.Steps = list82; reference56 = obj55; - ref QuestSequence reference57 = ref span54[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959) + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959) { Fly = true }; obj56.Steps = list83; reference57 = obj56; - ref QuestSequence reference58 = ref span54[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -321635,29 +388512,34 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span56 = CollectionsMarshal.AsSpan(list84); - span56[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + span3 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38887u, ItemCount = 3 }; - span56[1] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959); obj57.Steps = list84; reference58 = obj57; - ref QuestSequence reference59 = ref span54[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span57 = CollectionsMarshal.AsSpan(list85); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span57[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj58.Steps = list85; reference59 = obj58; questRoot13.QuestSequence = list81; @@ -321667,13 +388549,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot14.Author = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span58 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference60 = ref span58[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -321681,27 +388566,33 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span59 = CollectionsMarshal.AsSpan(list88); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span59[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3 = CollectionsMarshal.AsSpan(list88); + 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); obj59.Steps = list88; reference60 = obj59; - ref QuestSequence reference61 = ref span58[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1044616u, new Vector3(-630.67065f, -140.39087f, -789.79175f), 959) + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044616u, new Vector3(-630.67065f, -140.39087f, -789.79175f), 959) { StopDistance = 0.5f, Fly = true }; obj60.Steps = list89; reference61 = obj60; - ref QuestSequence reference62 = ref span58[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -321709,18 +388600,21 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span60 = CollectionsMarshal.AsSpan(list90); - span60[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + span3 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38889u, ItemCount = 1 }; - span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj61.Steps = list90; reference62 = obj61; questRoot14.QuestSequence = list87; @@ -321730,26 +388624,32 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "pot0to"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "pot0to"; questRoot15.Author = list91; - num = 5; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span61 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference63 = ref span61[0]; + index = 5; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span62 = CollectionsMarshal.AsSpan(list93); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span62[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj62.Steps = list93; reference63 = obj62; - ref QuestSequence reference64 = ref span61[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -321757,28 +388657,34 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + span3 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { Fly = true }; obj63.Steps = list94; reference64 = obj63; - ref QuestSequence reference65 = ref span61[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { ItemId = 2003449u, GroundTarget = true }; obj64.Steps = list95; reference65 = obj64; - ref QuestSequence reference66 = ref span61[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -321786,28 +388692,33 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + span3 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { ItemId = 2003449u, GroundTarget = true }; obj65.Steps = list96; reference66 = obj65; - ref QuestSequence reference67 = ref span61[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span63 = CollectionsMarshal.AsSpan(list97); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span63[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj66.Steps = list97; reference67 = obj66; questRoot15.QuestSequence = list92; @@ -321817,13 +388728,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list98); + index = 0; + span[index] = "liza"; questRoot16.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span64 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference68 = ref span64[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + span2 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -321831,7 +388745,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044553u, new Vector3(-96.910095f, 3.1843073f, 6.8207397f), 819) + span3 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044553u, new Vector3(-96.910095f, 3.1843073f, 6.8207397f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -321844,22 +388760,26 @@ public static class AssemblyQuestLoader }; obj67.Steps = list100; reference68 = obj67; - ref QuestSequence reference69 = ref span64[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1044554u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044554u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj68.Steps = list101; reference69 = obj68; - ref QuestSequence reference70 = ref span64[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -321867,7 +388787,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044558u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); + span3 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044558u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); obj69.Steps = list102; reference70 = obj69; questRoot16.QuestSequence = list99; @@ -321877,21 +388799,26 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "liza"; questRoot17.Author = list103; - num = 4; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span65 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference71 = ref span65[0]; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list105)[0]; + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1044547u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -321903,10 +388830,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + num5 = 1; + List list106 = new List(num5); + CollectionsMarshal.SetCount(list106, num5); + span5 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS681_04716_Q1_000_003"), @@ -321916,7 +388845,8 @@ public static class AssemblyQuestLoader reference72 = obj71; obj70.Steps = list105; reference71 = obj70; - ref QuestSequence reference73 = ref span65[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -321924,25 +388854,31 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); + span3 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); obj72.Steps = list107; reference73 = obj72; - ref QuestSequence reference74 = ref span65[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2013247u, new Vector3(428.15283f, 3.2196045f, 23.483582f), 817) + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013247u, new Vector3(428.15283f, 3.2196045f, 23.483582f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj73.Steps = list108; reference74 = obj73; - ref QuestSequence reference75 = ref span65[3]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -321950,7 +388886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) + span3 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -321965,21 +388903,26 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "liza"; questRoot18.Author = list110; - num = 2; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span66 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference76 = ref span66[0]; + index = 2; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044550u, new Vector3(-239.70398f, 51.05899f, 622.2477f), 816) + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044550u, new Vector3(-239.70398f, 51.05899f, 622.2477f), 816) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -321993,7 +388936,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list112; reference76 = obj75; - ref QuestSequence reference77 = ref span66[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -322001,7 +388945,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044562u, new Vector3(-294.97223f, 67.46317f, 603.6621f), 816) + span3 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044562u, new Vector3(-294.97223f, 67.46317f, 603.6621f), 816) { Fly = true }; @@ -322014,29 +388960,36 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot19.Author = list114; - num = 9; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span67 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference78 = ref span67[0]; + index = 9; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list116)[0]; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj78 = new QuestStep(EInteractionType.AcceptQuest, 1042558u, new Vector3(33.066284f, -5.8859587E-07f, -2.2125854f), 963) { StopDistance = 5f }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + span5 = CollectionsMarshal.AsSpan(list117); + num5 = 0; + span5[num5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q6_000_000"), @@ -322046,7 +388999,8 @@ public static class AssemblyQuestLoader reference79 = obj78; obj77.Steps = list116; reference78 = obj77; - ref QuestSequence reference80 = ref span67[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -322054,55 +389008,73 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1042560u, new Vector3(431.96765f, 3.1168795f, -250.5379f), 957) + span3 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1042560u, new Vector3(431.96765f, 3.1168795f, -250.5379f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj79.Steps = list118; reference80 = obj79; - ref QuestSequence reference81 = ref span67[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span68 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference82 = ref span68[0]; + num3 = 2; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference82 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1042564u, new Vector3(423.63623f, 3.1168795f, -273.8537f), 957); - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span69 = CollectionsMarshal.AsSpan(list120); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list120 = new List(num5); + CollectionsMarshal.SetCount(list120, num5); + span4 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list120; reference82 = questStep2; - ref QuestStep reference83 = ref span68[1]; + num2++; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1042565u, new Vector3(393.14856f, 3.1164212f, -212.9397f), 957) { Fly = true }; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span70 = CollectionsMarshal.AsSpan(list121); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list121 = new List(num4); + CollectionsMarshal.SetCount(list121, num4); + span4 = CollectionsMarshal.AsSpan(list121); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list121; reference83 = obj81; obj80.Steps = list119; reference81 = obj80; - ref QuestSequence reference84 = ref span67[3]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -322110,27 +389082,33 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1042567u, new Vector3(374.80737f, 3.1168795f, -256.45844f), 957) + span3 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1042567u, new Vector3(374.80737f, 3.1168795f, -256.45844f), 957) { Fly = true }; obj82.Steps = list122; reference84 = obj82; - ref QuestSequence reference85 = ref span67[4]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1042572u, new Vector3(374.44104f, 3.1168795f, -257.64862f), 957) + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042572u, new Vector3(374.44104f, 3.1168795f, -257.64862f), 957) { StopDistance = 5f }; obj83.Steps = list123; reference85 = obj83; - ref QuestSequence reference86 = ref span67[5]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -322138,15 +389116,19 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list124)[0]; + span3 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref QuestStep reference87 = ref span3[num3]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2013267u, new Vector3(205.70679f, 7.9193726f, -180.34644f), 957) { Fly = true }; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = new DialogueChoice + num5 = 1; + List list125 = new List(num5); + CollectionsMarshal.SetCount(list125, num5); + span5 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q4_000_000"), @@ -322156,23 +389138,28 @@ public static class AssemblyQuestLoader reference87 = obj85; obj84.Steps = list124; reference86 = obj84; - ref QuestSequence reference88 = ref span67[6]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list126)[0]; + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference89 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2013268u, new Vector3(36.209595f, 17.196838f, -232.68488f), 957) { Fly = true }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = new DialogueChoice + num4 = 1; + List list127 = new List(num4); + CollectionsMarshal.SetCount(list127, num4); + span5 = CollectionsMarshal.AsSpan(list127); + num5 = 0; + span5[num5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q5_000_000"), @@ -322182,7 +389169,8 @@ public static class AssemblyQuestLoader reference89 = obj87; obj86.Steps = list126; reference88 = obj86; - ref QuestSequence reference90 = ref span67[7]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 7 @@ -322190,18 +389178,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 2013269u, new Vector3(-13.565308f, 22.964722f, -346.7613f), 957); + span3 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2013269u, new Vector3(-13.565308f, 22.964722f, -346.7613f), 957); obj88.Steps = list128; reference90 = obj88; - ref QuestSequence reference91 = ref span67[8]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) { StopDistance = 7f, NextQuestId = new QuestId(4719) @@ -322215,13 +389208,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot20.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span71 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference92 = ref span71[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -322229,27 +389225,33 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) + span3 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) { StopDistance = 7f }; obj90.Steps = list132; reference92 = obj90; - ref QuestSequence reference93 = ref span71[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj91.Steps = list133; reference93 = obj91; - ref QuestSequence reference94 = ref span71[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -322257,27 +389259,33 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1044752u, new Vector3(-432.02875f, 22.24389f, 507.53027f), 958) + span3 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1044752u, new Vector3(-432.02875f, 22.24389f, 507.53027f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj92.Steps = list134; reference94 = obj92; - ref QuestSequence reference95 = ref span71[3]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1044754u, new Vector3(-458.3963f, 20.805109f, -333.69952f), 958) + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044754u, new Vector3(-458.3963f, 20.805109f, -333.69952f), 958) { Fly = true }; obj93.Steps = list135; reference95 = obj93; - ref QuestSequence reference96 = ref span71[4]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -322285,28 +389293,34 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2013272u, new Vector3(697.8712f, 30.105957f, -789.7612f), 958) + span3 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2013272u, new Vector3(697.8712f, 30.105957f, -789.7612f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj94.Steps = list136; reference96 = obj94; - ref QuestSequence reference97 = ref span71[5]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044762u, new Vector3(694.97217f, 30.104027f, -785.8244f), 958) + num3 = 1; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044762u, new Vector3(694.97217f, 30.104027f, -785.8244f), 958) { StopDistance = 5f }; obj95.Steps = list137; reference97 = obj95; - ref QuestSequence reference98 = ref span71[6]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -322314,7 +389328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + span3 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { StopDistance = 5f, NextQuestId = new QuestId(4754) @@ -322323,37 +389339,35 @@ public static class AssemblyQuestLoader reference98 = obj96; questRoot20.QuestSequence = list131; AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(4725); + QuestId questId21 = new QuestId(4735); QuestRoot questRoot21 = new QuestRoot(); num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list139); + index = 0; + span[index] = "liza"; questRoot21.Author = list139; - num = 4; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span72 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference99 = ref span72[0]; + index = 6; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + span2 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043890u, new Vector3(38.0238f, -24.6934f, -205.499f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj97.Steps = list141; reference99 = obj97; - ref QuestSequence reference100 = ref span72[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -322361,173 +389375,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2013276u, new Vector3(-192.17715f, 35.999996f, 57.092976f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHanRuveydahFibers - } - }; - obj98.Steps = list142; - reference100 = obj98; - ref QuestSequence reference101 = ref span72[2]; - QuestSequence obj99 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanRuveydahFibers, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 38940u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj99.Steps = list143; - reference101 = obj99; - ref QuestSequence reference102 = ref span72[3]; - QuestSequence obj100 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanRuveydahFibers, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj100.Steps = list144; - reference102 = obj100; - questRoot21.QuestSequence = list140; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(4726); - QuestRoot questRoot22 = new QuestRoot(); - num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "CryoTechnic"; - questRoot22.Author = list145; - num = 3; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span73 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference103 = ref span73[0]; - QuestSequence obj101 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj101.Steps = list147; - reference103 = obj101; - ref QuestSequence reference104 = ref span73[1]; - QuestSequence obj102 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 38940u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj102.Steps = list148; - reference104 = obj102; - ref QuestSequence reference105 = ref span73[2]; - QuestSequence obj103 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj103.Steps = list149; - reference105 = obj103; - questRoot22.QuestSequence = list146; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(4735); - QuestRoot questRoot23 = new QuestRoot(); - num = 1; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; - questRoot23.Author = list150; - num = 6; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span74 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference106 = ref span74[0]; - QuestSequence obj104 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); - obj104.Steps = list152; - reference106 = obj104; - ref QuestSequence reference107 = ref span74[1]; - QuestSequence obj105 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1045392u, new Vector3(-52.75049f, -1.5635975E-05f, -138.96393f), 963) + span3 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045392u, new Vector3(-52.75049f, -1.5635975E-05f, -138.96393f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322535,72 +389385,86 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - obj105.Steps = list153; - reference107 = obj105; - ref QuestSequence reference108 = ref span74[2]; - QuestSequence obj106 = new QuestSequence + obj98.Steps = list142; + reference100 = obj98; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list154)[0]; + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference102 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2013349u, new Vector3(-53.87964f, 0.59503174f, -141.71057f), 963); - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span75 = CollectionsMarshal.AsSpan(list155); - span75[0] = new DialogueChoice + num5 = 2; + List list144 = new List(num5); + CollectionsMarshal.SetCount(list144, num5); + span5 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKMK101_04735_A1_000_003") }; - span75[1] = new DialogueChoice + num4++; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q1_000_065") }; - questStep3.DialogueChoices = list155; - reference109 = questStep3; - obj106.Steps = list154; - reference108 = obj106; - ref QuestSequence reference110 = ref span74[3]; - QuestSequence obj107 = new QuestSequence + questStep3.DialogueChoices = list144; + reference102 = questStep3; + obj99.Steps = list143; + reference101 = obj99; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-52.03956f, -5.209446E-05f, -140.01839f), 963) + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + span3 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-52.03956f, -5.209446E-05f, -140.01839f), 963) { ItemId = 2003461u }; - obj107.Steps = list156; - reference110 = obj107; - ref QuestSequence reference111 = ref span74[4]; - QuestSequence obj108 = new QuestSequence + obj100.Steps = list145; + reference103 = obj100; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1045395u, new Vector3(-21.713623f, 1.7999926f, -181.81128f), 963); - obj108.Steps = list157; - reference111 = obj108; - ref QuestSequence reference112 = ref span74[5]; - QuestSequence obj109 = new QuestSequence + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045395u, new Vector3(-21.713623f, 1.7999926f, -181.81128f), 963); + obj101.Steps = list146; + reference104 = obj101; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; 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) + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + span3 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + ref QuestStep reference106 = ref span3[num3]; + QuestStep obj103 = new QuestStep(EInteractionType.CompleteQuest, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322608,57 +389472,67 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + num4 = 1; + List list148 = new List(num4); + CollectionsMarshal.SetCount(list148, num4); + span5 = CollectionsMarshal.AsSpan(list148); + num5 = 0; + span5[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q2_000_182") }; - obj110.DialogueChoices = list159; - reference113 = obj110; - obj109.Steps = list158; - reference112 = obj109; - questRoot23.QuestSequence = list151; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(4736); - QuestRoot questRoot24 = new QuestRoot(); + obj103.DialogueChoices = list148; + reference106 = obj103; + obj102.Steps = list147; + reference105 = obj102; + questRoot21.QuestSequence = list140; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(4736); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; - questRoot24.Author = list160; - num = 10; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span76 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference114 = ref span76[0]; - QuestSequence obj111 = new QuestSequence + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "liza"; + questRoot22.Author = list149; + index = 10; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045397u, new Vector3(0.6560669f, 0.01927659f, 0.869751f), 1161); - obj111.Steps = list162; - reference114 = obj111; - ref QuestSequence reference115 = ref span76[1]; - QuestSequence obj112 = new QuestSequence + num3 = 1; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045397u, new Vector3(0.6560669f, 0.01927659f, 0.869751f), 1161); + obj104.Steps = list151; + reference107 = obj104; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span77 = CollectionsMarshal.AsSpan(list163); - span77[0] = new QuestStep(EInteractionType.Interact, 2013358u, new Vector3(-0.015319824f, 1.2359009f, 5.9662476f), 1161) + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + span3 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2013358u, new Vector3(-0.015319824f, 1.2359009f, 5.9662476f), 1161) { StopDistance = 4f, TargetTerritoryId = (ushort)963 }; - span77[1] = new QuestStep(EInteractionType.Interact, 1039602u, new Vector3(142.04614f, 4.783756f, -146.47144f), 963) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1039602u, new Vector3(142.04614f, 4.783756f, -146.47144f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322666,17 +389540,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - obj112.Steps = list163; - reference115 = obj112; - ref QuestSequence reference116 = ref span76[2]; - QuestSequence obj113 = new QuestSequence + obj105.Steps = list152; + reference108 = obj105; + num++; + ref QuestSequence reference109 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1045401u, new Vector3(-144.45721f, 28.05f, 219.1958f), 963) + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045401u, new Vector3(-144.45721f, 28.05f, 219.1958f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322684,43 +389561,50 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanAirship } }; - obj113.Steps = list164; - reference116 = obj113; - ref QuestSequence reference117 = ref span76[3]; - QuestSequence obj114 = new QuestSequence + obj106.Steps = list153; + reference109 = obj106; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 3 }; 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) + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + span3 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + ref QuestStep reference111 = ref span3[num3]; + QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice + num5 = 1; + List list155 = new List(num5); + CollectionsMarshal.SetCount(list155, num5); + span5 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK102_04736_Q2_000_094") }; - obj115.DialogueChoices = list166; - reference118 = obj115; - obj114.Steps = list165; - reference117 = obj114; - ref QuestSequence reference119 = ref span76[4]; - QuestSequence obj116 = new QuestSequence + obj108.DialogueChoices = list155; + reference111 = obj108; + obj107.Steps = list154; + reference110 = obj107; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span78 = CollectionsMarshal.AsSpan(list167); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.0711417f, -28.723347f, -43.467506f), 956) + num3 = 2; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.0711417f, -28.723347f, -43.467506f), 956) { Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -322732,228 +389616,293 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.Interact, 1045407u, new Vector3(-32.578064f, -29.530006f, -125.96332f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045407u, new Vector3(-32.578064f, -29.530006f, -125.96332f), 956) { Fly = true }; - obj116.Steps = list167; - reference119 = obj116; - ref QuestSequence reference120 = ref span76[5]; - QuestSequence obj117 = new QuestSequence + obj109.Steps = list156; + reference112 = obj109; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1045412u, new Vector3(-6.57666f, -31.530346f, 54.276245f), 956) + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + span3 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045412u, new Vector3(-6.57666f, -31.530346f, 54.276245f), 956) { Fly = true }; - obj117.Steps = list168; - reference120 = obj117; - ref QuestSequence reference121 = ref span76[6]; - QuestSequence obj118 = new QuestSequence + obj110.Steps = list157; + reference113 = obj110; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1045417u, new Vector3(135.9425f, -16.146997f, 236.22485f), 962) + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045417u, new Vector3(135.9425f, -16.146997f, 236.22485f), 962) { StopDistance = 5f }; - obj118.Steps = list169; - reference121 = obj118; - ref QuestSequence reference122 = ref span76[7]; - QuestSequence obj119 = new QuestSequence + obj111.Steps = list158; + reference114 = obj111; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list170)[0]; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + span3 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + ref QuestStep reference116 = ref span3[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.Duty, null, null, 962); - DutyOptions obj120 = new DutyOptions + DutyOptions obj113 = new DutyOptions { ContentFinderConditionId = 822u }; - 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; - span76[8] = new QuestSequence + num4 = 1; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + span = CollectionsMarshal.AsSpan(list160); + num5 = 0; + span[num5] = "Navigation issues for area transitions"; + obj113.Notes = list160; + questStep4.DutyOptions = obj113; + reference116 = questStep4; + obj112.Steps = list159; + reference115 = obj112; + num++; + span2[num] = new QuestSequence { Sequence = 8 }; - ref QuestSequence reference124 = ref span76[9]; - QuestSequence obj121 = new QuestSequence + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) + num3 = 1; + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) { StopDistance = 7f }; - obj121.Steps = list172; - reference124 = obj121; - questRoot24.QuestSequence = list161; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(4737); - QuestRoot questRoot25 = new QuestRoot(); + obj114.Steps = list161; + reference117 = obj114; + questRoot22.QuestSequence = list150; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(4737); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "liza"; - questRoot25.Author = list173; - num = 5; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span79 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference125 = ref span79[0]; - QuestSequence obj122 = new QuestSequence + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "liza"; + questRoot23.Author = list162; + index = 5; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) { StopDistance = 7f }; - obj122.Steps = list175; - reference125 = obj122; - ref QuestSequence reference126 = ref span79[1]; - QuestSequence obj123 = new QuestSequence + obj115.Steps = list164; + reference118 = obj115; + num++; + ref QuestSequence reference119 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1040824u, new Vector3(-334.4015f, 23.803606f, 404.9286f), 958) + num3 = 1; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1040824u, new Vector3(-334.4015f, 23.803606f, 404.9286f), 958) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; - obj123.Steps = list176; - reference126 = obj123; - ref QuestSequence reference127 = ref span79[2]; - QuestSequence obj124 = new QuestSequence + obj116.Steps = list165; + reference119 = obj116; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1045425u, new Vector3(532.4635f, -36.65f, -191.48547f), 958) + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + span3 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045425u, new Vector3(532.4635f, -36.65f, -191.48547f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; - obj124.Steps = list177; - reference127 = obj124; - ref QuestSequence reference128 = ref span79[3]; - QuestSequence obj125 = new QuestSequence + obj117.Steps = list166; + reference120 = obj117; + num++; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span80 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference129 = ref span80[0]; + num3 = 5; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + ref QuestStep reference122 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1045490u, new Vector3(523.24695f, -36.65f, -156.02356f), 958); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span81 = CollectionsMarshal.AsSpan(list179); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list179; - reference129 = questStep5; - ref QuestStep reference130 = ref span80[1]; + num5 = 6; + List list168 = new List(num5); + CollectionsMarshal.SetCount(list168, num5); + span4 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list168; + reference122 = questStep5; + num2++; + ref QuestStep reference123 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1045491u, new Vector3(502.4032f, -36.65f, -178.27118f), 958); - num3 = 6; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span82 = CollectionsMarshal.AsSpan(list180); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list180; - reference130 = questStep6; - ref QuestStep reference131 = ref span80[2]; + num4 = 6; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + span4 = CollectionsMarshal.AsSpan(list169); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list169; + reference123 = questStep6; + num2++; + ref QuestStep reference124 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1037774u, new Vector3(518.181f, -36.65f, -212.14618f), 958); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span83 = CollectionsMarshal.AsSpan(list181); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list181; - reference131 = questStep7; - ref QuestStep reference132 = ref span80[3]; + num5 = 6; + List list170 = new List(num5); + CollectionsMarshal.SetCount(list170, num5); + span4 = CollectionsMarshal.AsSpan(list170); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list170; + reference124 = questStep7; + num2++; + ref QuestStep reference125 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1045489u, new Vector3(549.2484f, -36.615707f, -213.18384f), 958); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span84 = CollectionsMarshal.AsSpan(list182); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list182; - reference132 = questStep8; - ref QuestStep reference133 = ref span80[4]; + num4 = 6; + List list171 = new List(num4); + CollectionsMarshal.SetCount(list171, num4); + span4 = CollectionsMarshal.AsSpan(list171); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list171; + reference125 = questStep8; + num2++; + ref QuestStep reference126 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1037766u, new Vector3(545.3115f, -36.616177f, -265.00348f), 958); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span85 = CollectionsMarshal.AsSpan(list183); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list183; - reference133 = questStep9; - obj125.Steps = list178; - reference128 = obj125; - ref QuestSequence reference134 = ref span79[4]; - QuestSequence obj126 = new QuestSequence + num5 = 6; + List list172 = new List(num5); + CollectionsMarshal.SetCount(list172, num5); + span4 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list172; + reference126 = questStep9; + obj118.Steps = list167; + reference121 = obj118; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span86 = CollectionsMarshal.AsSpan(list184); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8861f, -36.65f, -245.12135f), 958) + List list173 = new List(num2); + CollectionsMarshal.SetCount(list173, num2); + span3 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8861f, -36.65f, -245.12135f), 958) { SkipConditions = new SkipConditions { @@ -322963,209 +389912,266 @@ public static class AssemblyQuestLoader } } }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1045430u, new Vector3(415.1521f, 15.558167f, -637.56775f), 958) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045430u, new Vector3(415.1521f, 15.558167f, -637.56775f), 958) { Fly = true }; - obj126.Steps = list184; - reference134 = obj126; - questRoot25.QuestSequence = list174; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(4738); - QuestRoot questRoot26 = new QuestRoot(); + obj119.Steps = list173; + reference127 = obj119; + questRoot23.QuestSequence = list163; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(4738); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - CollectionsMarshal.AsSpan(list185)[0] = "liza"; - questRoot26.Author = list185; - num = 7; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span87 = CollectionsMarshal.AsSpan(list186); - ref QuestSequence reference135 = ref span87[0]; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + span = CollectionsMarshal.AsSpan(list174); + index = 0; + span[index] = "liza"; + questRoot24.Author = list174; + index = 7; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span2 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj120 = new QuestSequence + { + Sequence = 0 + }; + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045431u, new Vector3(413.4431f, 15.5581665f, -638.3002f), 958) + { + StopDistance = 5f + }; + obj120.Steps = list176; + reference128 = obj120; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj121 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + span3 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045435u, new Vector3(-366.29285f, 10.803238f, -620.08093f), 958) + { + TargetTerritoryId = (ushort)1160, + Fly = true + }; + obj121.Steps = list177; + reference129 = obj121; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj122 = new QuestSequence + { + Sequence = 2 + }; + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045769u, new Vector3(10.421875f, 2.9999998f, 65.2323f), 1160); + obj122.Steps = list178; + reference130 = obj122; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj123 = new QuestSequence + { + Sequence = 3 + }; + num2 = 4; + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + span3 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + ref QuestStep reference132 = ref span3[num3]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013351u, new Vector3(21.10321f, 3.8604736f, 67.063354f), 1160); + num4 = 6; + List list180 = new List(num4); + CollectionsMarshal.SetCount(list180, num4); + span4 = CollectionsMarshal.AsSpan(list180); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list180; + reference132 = questStep10; + num3++; + ref QuestStep reference133 = ref span3[num3]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1045493u, new Vector3(-10.635559f, 3f, 42.435303f), 1160); + num5 = 6; + List list181 = new List(num5); + CollectionsMarshal.SetCount(list181, num5); + span4 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list181; + reference133 = questStep11; + num3++; + ref QuestStep reference134 = ref span3[num3]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013350u, new Vector3(9.353699f, 3.5552979f, 26.382812f), 1160); + num4 = 6; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + span4 = CollectionsMarshal.AsSpan(list182); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list182; + reference134 = questStep12; + num3++; + ref QuestStep reference135 = ref span3[num3]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1045492u, new Vector3(42.435303f, 3.1270661f, -9.353821f), 1160); + num5 = 6; + List list183 = new List(num5); + CollectionsMarshal.SetCount(list183, num5); + span4 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list183; + reference135 = questStep13; + obj123.Steps = list179; + reference131 = obj123; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj124 = new QuestSequence + { + Sequence = 4 + }; + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045439u, new Vector3(0.19836426f, 3f, -26.840637f), 1160); + obj124.Steps = list184; + reference136 = obj124; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj125 = new QuestSequence + { + Sequence = 5 + }; + num2 = 1; + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + span3 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1040825u, new Vector3(-333.27234f, 23.803606f, 406.05774f), 958) + { + StopDistance = 7f, + AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass + }; + obj125.Steps = list185; + reference137 = obj125; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj126 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045441u, new Vector3(507.43872f, -36.65f, -202.99078f), 958) + { + AetheryteShortcut = EAetheryteLocation.GarlemaldTertium + }; + obj126.Steps = list186; + reference138 = obj126; + questRoot24.QuestSequence = list175; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(4739); + QuestRoot questRoot25 = new QuestRoot(); + num = 1; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + span = CollectionsMarshal.AsSpan(list187); + index = 0; + span[index] = "liza"; + questRoot25.Author = list187; + index = 4; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + span2 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045431u, new Vector3(413.4431f, 15.5581665f, -638.3002f), 958) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045445u, new Vector3(508.5984f, -36.65f, -206.74457f), 958) { - StopDistance = 5f + StopDistance = 7f }; - obj127.Steps = list187; - reference135 = obj127; - ref QuestSequence reference136 = ref span87[1]; + obj127.Steps = list189; + reference139 = obj127; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1045435u, new Vector3(-366.29285f, 10.803238f, -620.08093f), 958) - { - TargetTerritoryId = (ushort)1160, - Fly = true - }; - obj128.Steps = list188; - reference136 = obj128; - ref QuestSequence reference137 = ref span87[2]; - QuestSequence obj129 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1045769u, new Vector3(10.421875f, 2.9999998f, 65.2323f), 1160); - obj129.Steps = list189; - reference137 = obj129; - ref QuestSequence reference138 = ref span87[3]; - QuestSequence obj130 = new QuestSequence - { - Sequence = 3 - }; - num2 = 4; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span88 = CollectionsMarshal.AsSpan(list190); - ref QuestStep reference139 = ref span88[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013351u, new Vector3(21.10321f, 3.8604736f, 67.063354f), 1160); - num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span89 = CollectionsMarshal.AsSpan(list191); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list191; - reference139 = questStep10; - ref QuestStep reference140 = ref span88[1]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1045493u, new Vector3(-10.635559f, 3f, 42.435303f), 1160); - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span90 = CollectionsMarshal.AsSpan(list192); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list192; - reference140 = questStep11; - ref QuestStep reference141 = ref span88[2]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013350u, new Vector3(9.353699f, 3.5552979f, 26.382812f), 1160); - num3 = 6; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span91 = CollectionsMarshal.AsSpan(list193); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list193; - reference141 = questStep12; - ref QuestStep reference142 = ref span88[3]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1045492u, new Vector3(42.435303f, 3.1270661f, -9.353821f), 1160); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span92 = CollectionsMarshal.AsSpan(list194); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list194; - reference142 = questStep13; - obj130.Steps = list190; - reference138 = obj130; - ref QuestSequence reference143 = ref span87[4]; - QuestSequence obj131 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1045439u, new Vector3(0.19836426f, 3f, -26.840637f), 1160); - obj131.Steps = list195; - reference143 = obj131; - ref QuestSequence reference144 = ref span87[5]; - QuestSequence obj132 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1040825u, new Vector3(-333.27234f, 23.803606f, 406.05774f), 958) - { - StopDistance = 7f, - AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass - }; - obj132.Steps = list196; - reference144 = obj132; - ref QuestSequence reference145 = ref span87[6]; - QuestSequence obj133 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045441u, new Vector3(507.43872f, -36.65f, -202.99078f), 958) - { - AetheryteShortcut = EAetheryteLocation.GarlemaldTertium - }; - obj133.Steps = list197; - reference145 = obj133; - questRoot26.QuestSequence = list186; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(4739); - QuestRoot questRoot27 = new QuestRoot(); - num = 1; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; - questRoot27.Author = list198; - num = 4; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span93 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference146 = ref span93[0]; - QuestSequence obj134 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045445u, new Vector3(508.5984f, -36.65f, -206.74457f), 958) - { - StopDistance = 7f - }; - obj134.Steps = list200; - reference146 = obj134; - ref QuestSequence reference147 = ref span93[1]; - QuestSequence obj135 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span94 = CollectionsMarshal.AsSpan(list201); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.4148f, 10.8f, -659.2858f), 958) + num3 = 2; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.4148f, 10.8f, -659.2858f), 958) { SkipConditions = new SkipConditions { @@ -323175,115 +390181,137 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference148 = ref span94[1]; - QuestStep obj136 = new QuestStep(EInteractionType.Combat, null, new Vector3(-80.826256f, 10.8f, -663.8825f), 958) + num2++; + ref QuestStep reference141 = ref span3[num2]; + QuestStep obj129 = new QuestStep(EInteractionType.Combat, null, new Vector3(-80.826256f, 10.8f, -663.8825f), 958) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 16332u; - obj136.KillEnemyDataIds = list202; - reference148 = obj136; - obj135.Steps = list201; - reference147 = obj135; - ref QuestSequence reference149 = ref span93[2]; - QuestSequence obj137 = new QuestSequence + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span6 = CollectionsMarshal.AsSpan(list191); + num5 = 0; + span6[num5] = 16332u; + obj129.KillEnemyDataIds = list191; + reference141 = obj129; + obj128.Steps = list190; + reference140 = obj128; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1045450u, new Vector3(-80.73547f, 10.8f, -659.75433f), 958) + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + span3 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045450u, new Vector3(-80.73547f, 10.8f, -659.75433f), 958) { StopDistance = 7f }; - obj137.Steps = list203; - reference149 = obj137; - ref QuestSequence reference150 = ref span93[3]; - QuestSequence obj138 = new QuestSequence + obj130.Steps = list192; + reference142 = obj130; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045452u, new Vector3(283.8025f, 10.8f, -231.61676f), 958) + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045452u, new Vector3(283.8025f, 10.8f, -231.61676f), 958) { StopDistance = 5f }; - obj138.Steps = list204; - reference150 = obj138; - questRoot27.QuestSequence = list199; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(4740); - QuestRoot questRoot28 = new QuestRoot(); + obj131.Steps = list193; + reference143 = obj131; + questRoot25.QuestSequence = list188; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(4740); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; - questRoot28.Author = list205; - num = 7; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span95 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference151 = ref span95[0]; - QuestSequence obj139 = new QuestSequence + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + span = CollectionsMarshal.AsSpan(list194); + index = 0; + span[index] = "liza"; + questRoot26.Author = list194; + index = 7; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + span2 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045448u, new Vector3(510.1244f, -36.65f, -204.97449f), 958) + List list196 = new List(num2); + CollectionsMarshal.SetCount(list196, num2); + span3 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045448u, new Vector3(510.1244f, -36.65f, -204.97449f), 958) { StopDistance = 5f }; - obj139.Steps = list207; - reference151 = obj139; - ref QuestSequence reference152 = ref span95[1]; - QuestSequence obj140 = new QuestSequence + obj132.Steps = list196; + reference144 = obj132; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1045456u, new Vector3(-541.9242f, 128.67758f, 585.1072f), 959) + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045456u, new Vector3(-541.9242f, 128.67758f, 585.1072f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - obj140.Steps = list208; - reference152 = obj140; - ref QuestSequence reference153 = ref span95[2]; - QuestSequence obj141 = new QuestSequence + obj133.Steps = list197; + reference145 = obj133; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1045458u, new Vector3(-197.49762f, 58.194954f, 407.27856f), 959) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045458u, new Vector3(-197.49762f, 58.194954f, 407.27856f), 959) { Fly = true }; - obj141.Steps = list209; - reference153 = obj141; - ref QuestSequence reference154 = ref span95[3]; - QuestSequence obj142 = new QuestSequence + obj134.Steps = list198; + reference146 = obj134; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span96 = CollectionsMarshal.AsSpan(list210); - span96[0] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + num3 = 3; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -323295,7 +390323,8 @@ public static class AssemblyQuestLoader } } }; - span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) { StopDistance = 1f, Fly = true, @@ -323307,336 +390336,427 @@ public static class AssemblyQuestLoader } } }; - span96[2] = new QuestStep(EInteractionType.Interact, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959) { Fly = true }; - obj142.Steps = list210; - reference154 = obj142; - ref QuestSequence reference155 = ref span95[4]; - QuestSequence obj143 = new QuestSequence + obj135.Steps = list199; + reference147 = obj135; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 2013353u, new Vector3(164.23279f, -49.607117f, -620.3861f), 959) + List list200 = new List(num2); + CollectionsMarshal.SetCount(list200, num2); + span3 = CollectionsMarshal.AsSpan(list200); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2013353u, new Vector3(164.23279f, -49.607117f, -620.3861f), 959) { Fly = true }; - obj143.Steps = list211; - reference155 = obj143; - ref QuestSequence reference156 = ref span95[5]; - QuestSequence obj144 = new QuestSequence + obj136.Steps = list200; + reference148 = obj136; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - 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) + num3 = 4; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference150 = ref span3[num2]; + QuestStep obj138 = new QuestStep(EInteractionType.Emote, 1045471u, new Vector3(158.61743f, -49.589592f, -626.42865f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span98 = CollectionsMarshal.AsSpan(list213); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj145.CompletionQuestVariablesFlags = list213; - reference157 = obj145; - ref QuestStep reference158 = ref span97[1]; - QuestStep obj146 = new QuestStep(EInteractionType.Emote, 1045470u, new Vector3(154.7417f, -49.589596f, -622.3087f), 959) + num5 = 6; + List list202 = new List(num5); + CollectionsMarshal.SetCount(list202, num5); + span4 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj138.CompletionQuestVariablesFlags = list202; + reference150 = obj138; + num2++; + ref QuestStep reference151 = ref span3[num2]; + QuestStep obj139 = new QuestStep(EInteractionType.Emote, 1045470u, new Vector3(154.7417f, -49.589596f, -622.3087f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span99 = CollectionsMarshal.AsSpan(list214); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj146.CompletionQuestVariablesFlags = list214; - reference158 = obj146; - ref QuestStep reference159 = ref span97[2]; - QuestStep obj147 = new QuestStep(EInteractionType.Emote, 1045472u, new Vector3(148.91272f, -49.589596f, -621.48474f), 959) + num4 = 6; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + span4 = CollectionsMarshal.AsSpan(list203); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj139.CompletionQuestVariablesFlags = list203; + reference151 = obj139; + num2++; + ref QuestStep reference152 = ref span3[num2]; + QuestStep obj140 = new QuestStep(EInteractionType.Emote, 1045472u, new Vector3(148.91272f, -49.589596f, -621.48474f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span100 = CollectionsMarshal.AsSpan(list215); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj147.CompletionQuestVariablesFlags = list215; - reference159 = obj147; - ref QuestStep reference160 = ref span97[3]; - QuestStep obj148 = new QuestStep(EInteractionType.Emote, 1045473u, new Vector3(152.42236f, -49.589592f, -614.8623f), 959) + num5 = 6; + List list204 = new List(num5); + CollectionsMarshal.SetCount(list204, num5); + span4 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj140.CompletionQuestVariablesFlags = list204; + reference152 = obj140; + num2++; + ref QuestStep reference153 = ref span3[num2]; + QuestStep obj141 = new QuestStep(EInteractionType.Emote, 1045473u, new Vector3(152.42236f, -49.589592f, -614.8623f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span101 = CollectionsMarshal.AsSpan(list216); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj148.CompletionQuestVariablesFlags = list216; - reference160 = obj148; - obj144.Steps = list212; - reference156 = obj144; - ref QuestSequence reference161 = ref span95[6]; - QuestSequence obj149 = new QuestSequence + num4 = 6; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + span4 = CollectionsMarshal.AsSpan(list205); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj141.CompletionQuestVariablesFlags = list205; + reference153 = obj141; + obj137.Steps = list201; + reference149 = obj137; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045474u, new Vector3(158.46484f, -49.589592f, -619.9894f), 959) + List list206 = new List(num2); + CollectionsMarshal.SetCount(list206, num2); + span3 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045474u, new Vector3(158.46484f, -49.589592f, -619.9894f), 959) { StopDistance = 6f }; - obj149.Steps = list217; - reference161 = obj149; - questRoot28.QuestSequence = list206; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(4741); - QuestRoot questRoot29 = new QuestRoot(); + obj142.Steps = list206; + reference154 = obj142; + questRoot26.QuestSequence = list195; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(4741); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; - questRoot29.Author = list218; - num = 4; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span102 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span102[0]; - QuestSequence obj150 = new QuestSequence + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; + questRoot27.Author = list207; + index = 4; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045611u, new Vector3(160.87585f, -49.589592f, -618.46344f), 959) + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045611u, new Vector3(160.87585f, -49.589592f, -618.46344f), 959) { StopDistance = 7f }; - obj150.Steps = list220; - reference162 = obj150; - ref QuestSequence reference163 = ref span102[1]; - QuestSequence obj151 = new QuestSequence + obj143.Steps = list209; + reference155 = obj143; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1045919u, new Vector3(-200.45782f, 59.021378f, 418.69226f), 959) + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + span3 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045919u, new Vector3(-200.45782f, 59.021378f, 418.69226f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - obj151.Steps = list221; - reference163 = obj151; - ref QuestSequence reference164 = ref span102[2]; - QuestSequence obj152 = new QuestSequence + obj144.Steps = list210; + reference156 = obj144; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span103 = CollectionsMarshal.AsSpan(list222); - ref QuestStep reference165 = ref span103[0]; + num3 = 3; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013354u, new Vector3(-2.7314453f, 73.8689f, 638.0254f), 1162); - num3 = 6; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span104 = CollectionsMarshal.AsSpan(list223); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list223; - reference165 = questStep14; - ref QuestStep reference166 = ref span103[1]; + num5 = 6; + List list212 = new List(num5); + CollectionsMarshal.SetCount(list212, num5); + span4 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep14.CompletionQuestVariablesFlags = list212; + reference158 = questStep14; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013355u, new Vector3(-44.87683f, 66.57507f, 547.6615f), 1162); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span105 = CollectionsMarshal.AsSpan(list224); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list224; - reference166 = questStep15; - ref QuestStep reference167 = ref span103[2]; + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + span4 = CollectionsMarshal.AsSpan(list213); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list213; + reference159 = questStep15; + num2++; + ref QuestStep reference160 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013356u, new Vector3(69.29114f, 56.71765f, 472.19043f), 1162); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span106 = CollectionsMarshal.AsSpan(list225); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list225; - reference167 = questStep16; - obj152.Steps = list222; - reference164 = obj152; - ref QuestSequence reference168 = ref span102[3]; - QuestSequence obj153 = new QuestSequence + num5 = 6; + List list214 = new List(num5); + CollectionsMarshal.SetCount(list214, num5); + span4 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list214; + reference160 = questStep16; + obj145.Steps = list211; + reference157 = obj145; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045479u, new Vector3(4.043579f, 58.561604f, 424.97888f), 1162); - obj153.Steps = list226; - reference168 = obj153; - questRoot29.QuestSequence = list219; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(4742); - QuestRoot questRoot30 = new QuestRoot(); + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045479u, new Vector3(4.043579f, 58.561604f, 424.97888f), 1162); + obj146.Steps = list215; + reference161 = obj146; + questRoot27.QuestSequence = list208; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(4742); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; - questRoot30.Author = list227; - num = 5; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span107 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference169 = ref span107[0]; - QuestSequence obj154 = new QuestSequence + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + span = CollectionsMarshal.AsSpan(list216); + index = 0; + span[index] = "liza"; + questRoot28.Author = list216; + index = 5; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + span2 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045482u, new Vector3(17.135864f, 56.573345f, 436.0265f), 1162) + num3 = 1; + List list218 = new List(num3); + CollectionsMarshal.SetCount(list218, num3); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045482u, new Vector3(17.135864f, 56.573345f, 436.0265f), 1162) { StopDistance = 5f }; - obj154.Steps = list229; - reference169 = obj154; - ref QuestSequence reference170 = ref span107[1]; - QuestSequence obj155 = new QuestSequence + obj147.Steps = list218; + reference162 = obj147; + num++; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 2013357u, new Vector3(97.520386f, 74.08252f, 607.90405f), 1162); - obj155.Steps = list230; - reference170 = obj155; - ref QuestSequence reference171 = ref span107[2]; - QuestSequence obj156 = new QuestSequence + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + span3 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2013357u, new Vector3(97.520386f, 74.08252f, 607.90405f), 1162); + obj148.Steps = list219; + reference163 = obj148; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Duty, null, null, 1159) + num3 = 1; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1159) { DutyOptions = new DutyOptions { ContentFinderConditionId = 949u } }; - obj156.Steps = list231; - reference171 = obj156; - span107[3] = new QuestSequence + obj149.Steps = list220; + reference164 = obj149; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference172 = ref span107[4]; - QuestSequence obj157 = new QuestSequence + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045757u, new Vector3(-136.03424f, 54.608093f, 427.60352f), 959); - obj157.Steps = list232; - reference172 = obj157; - questRoot30.QuestSequence = list228; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(4743); - QuestRoot questRoot31 = new QuestRoot(); + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + span3 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045757u, new Vector3(-136.03424f, 54.608093f, 427.60352f), 959); + obj150.Steps = list221; + reference165 = obj150; + questRoot28.QuestSequence = list217; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(4743); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; - questRoot31.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span108 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference173 = ref span108[0]; - QuestSequence obj158 = new QuestSequence + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; + questRoot29.Author = list222; + index = 4; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045758u, new Vector3(-135.85114f, 54.977272f, 432.02856f), 959) + num3 = 1; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045758u, new Vector3(-135.85114f, 54.977272f, 432.02856f), 959) { StopDistance = 7f }; - obj158.Steps = list235; - reference173 = obj158; - ref QuestSequence reference174 = ref span108[1]; - QuestSequence obj159 = new QuestSequence + obj151.Steps = list224; + reference166 = obj151; + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span109 = CollectionsMarshal.AsSpan(list236); - span109[0] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + span3 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -323648,7 +390768,8 @@ public static class AssemblyQuestLoader } } }; - span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) { StopDistance = 1f, Fly = true, @@ -323660,22 +390781,26 @@ public static class AssemblyQuestLoader } } }; - span109[2] = new QuestStep(EInteractionType.Interact, 1045466u, new Vector3(-20.126648f, -47.54357f, -491.99664f), 959) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045466u, new Vector3(-20.126648f, -47.54357f, -491.99664f), 959) { Fly = true }; - obj159.Steps = list236; - reference174 = obj159; - ref QuestSequence reference175 = ref span108[2]; - QuestSequence obj160 = new QuestSequence + obj152.Steps = list225; + reference167 = obj152; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list237)[0]; - QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference169 = ref span3[num2]; + QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -323684,76 +390809,92 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + num4 = 1; + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + span5 = CollectionsMarshal.AsSpan(list227); + num5 = 0; + span5[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK109_04743_Q1_000_000") }; - obj161.DialogueChoices = list238; - reference176 = obj161; - obj160.Steps = list237; - reference175 = obj160; - ref QuestSequence reference177 = ref span108[3]; - QuestSequence obj162 = new QuestSequence + obj154.DialogueChoices = list227; + reference169 = obj154; + obj153.Steps = list226; + reference168 = obj153; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); - obj162.Steps = list239; - reference177 = obj162; - questRoot31.QuestSequence = list234; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(4744); - QuestRoot questRoot32 = new QuestRoot(); + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + span3 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + obj155.Steps = list228; + reference170 = obj155; + questRoot29.QuestSequence = list223; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(4744); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; - questRoot32.Author = list240; - num = 5; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span110 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference178 = ref span110[0]; - QuestSequence obj163 = new QuestSequence + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "liza"; + questRoot30.Author = list229; + index = 5; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); - obj163.Steps = list242; - reference178 = obj163; - ref QuestSequence reference179 = ref span110[1]; - QuestSequence obj164 = new QuestSequence + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + span3 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + obj156.Steps = list231; + reference171 = obj156; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + span3 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) { StopDistance = 7f }; - obj164.Steps = list243; - reference179 = obj164; - ref QuestSequence reference180 = ref span110[2]; - QuestSequence obj165 = new QuestSequence + obj157.Steps = list232; + reference172 = obj157; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) + num3 = 1; + List list233 = new List(num3); + CollectionsMarshal.SetCount(list233, num3); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -323762,104 +390903,130 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - obj165.Steps = list244; - reference180 = obj165; - ref QuestSequence reference181 = ref span110[3]; - QuestSequence obj166 = new QuestSequence + obj158.Steps = list233; + reference173 = obj158; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1045690u, new Vector3(-168.9021f, -45.720856f, -167.83398f), 819); - obj166.Steps = list245; - reference181 = obj166; - ref QuestSequence reference182 = ref span110[4]; - QuestSequence obj167 = new QuestSequence + List list234 = new List(num2); + CollectionsMarshal.SetCount(list234, num2); + span3 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045690u, new Vector3(-168.9021f, -45.720856f, -167.83398f), 819); + obj159.Steps = list234; + reference174 = obj159; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045628u, new Vector3(24.2771f, 0f, 1.083313f), 819); - obj167.Steps = list246; - reference182 = obj167; - questRoot32.QuestSequence = list241; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(4745); - QuestRoot questRoot33 = new QuestRoot(); + num3 = 1; + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045628u, new Vector3(24.2771f, 0f, 1.083313f), 819); + obj160.Steps = list235; + reference175 = obj160; + questRoot30.QuestSequence = list230; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(4745); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; - questRoot33.Author = list247; - num = 6; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span111 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference183 = ref span111[0]; - QuestSequence obj168 = new QuestSequence + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "liza"; + questRoot31.Author = list236; + index = 6; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819); - obj168.Steps = list249; - reference183 = obj168; - ref QuestSequence reference184 = ref span111[1]; - QuestSequence obj169 = new QuestSequence + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + span3 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819); + obj161.Steps = list238; + reference176 = obj161; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) + num3 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; - obj169.Steps = list250; - reference184 = obj169; - ref QuestSequence reference185 = ref span111[2]; - QuestSequence obj170 = new QuestSequence + obj162.Steps = list239; + reference177 = obj162; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1045639u, new Vector3(21.957703f, 82.05f, 18.478638f), 820); - obj170.Steps = list251; - reference185 = obj170; - ref QuestSequence reference186 = ref span111[3]; - QuestSequence obj171 = new QuestSequence + List list240 = new List(num2); + CollectionsMarshal.SetCount(list240, num2); + span3 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045639u, new Vector3(21.957703f, 82.05f, 18.478638f), 820); + obj163.Steps = list240; + reference178 = obj163; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span112 = CollectionsMarshal.AsSpan(list252); - ref QuestStep reference187 = ref span112[0]; + num3 = 3; + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + ref QuestStep reference180 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1045635u, new Vector3(39.261353f, 83.001076f, -61.387024f), 820); - num3 = 6; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span113 = CollectionsMarshal.AsSpan(list253); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list253; - reference187 = questStep17; - ref QuestStep reference188 = ref span112[1]; - QuestStep obj172 = new QuestStep(EInteractionType.Interact, 1045633u, new Vector3(14.755432f, 23.099987f, 11.520508f), 820) + num5 = 6; + List list242 = new List(num5); + CollectionsMarshal.SetCount(list242, num5); + span4 = CollectionsMarshal.AsSpan(list242); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list242; + reference180 = questStep17; + num2++; + ref QuestStep reference181 = ref span3[num2]; + QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1045633u, new Vector3(14.755432f, 23.099987f, 11.520508f), 820) { AethernetShortcut = new AethernetShortcut { @@ -323867,20 +391034,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreMainstay } }; - num3 = 6; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - Span span114 = CollectionsMarshal.AsSpan(list254); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj172.CompletionQuestVariablesFlags = list254; - reference188 = obj172; - ref QuestStep reference189 = ref span112[2]; - QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1045634u, new Vector3(-93.40051f, -0.82003593f, 28.54956f), 820) + num4 = 6; + List list243 = new List(num4); + CollectionsMarshal.SetCount(list243, num4); + span4 = CollectionsMarshal.AsSpan(list243); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj165.CompletionQuestVariablesFlags = list243; + reference181 = obj165; + num2++; + ref QuestStep reference182 = ref span3[num2]; + QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1045634u, new Vector3(-93.40051f, -0.82003593f, 28.54956f), 820) { AethernetShortcut = new AethernetShortcut { @@ -323888,29 +391062,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreNightsoilPots } }; - num3 = 6; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - Span span115 = CollectionsMarshal.AsSpan(list255); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj173.CompletionQuestVariablesFlags = list255; - reference189 = obj173; - obj171.Steps = list252; - reference186 = obj171; - ref QuestSequence reference190 = ref span111[4]; - QuestSequence obj174 = new QuestSequence + num5 = 6; + List list244 = new List(num5); + CollectionsMarshal.SetCount(list244, num5); + span4 = CollectionsMarshal.AsSpan(list244); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj166.CompletionQuestVariablesFlags = list244; + reference182 = obj166; + obj164.Steps = list241; + reference179 = obj164; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + span3 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) { AethernetShortcut = new AethernetShortcut { @@ -323918,161 +391101,194 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Eulmore } }; - obj174.Steps = list256; - reference190 = obj174; - ref QuestSequence reference191 = ref span111[5]; - QuestSequence obj175 = new QuestSequence + obj167.Steps = list245; + reference183 = obj167; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) + num3 = 1; + List list246 = new List(num3); + CollectionsMarshal.SetCount(list246, num3); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) { StopDistance = 7f }; - obj175.Steps = list257; - reference191 = obj175; - questRoot33.QuestSequence = list248; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(4746); - QuestRoot questRoot34 = new QuestRoot(); + obj168.Steps = list246; + reference184 = obj168; + questRoot31.QuestSequence = list237; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(4746); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; - questRoot34.Author = list258; - num = 7; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span116 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference192 = ref span116[0]; - QuestSequence obj176 = new QuestSequence + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "liza"; + questRoot32.Author = list247; + index = 7; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + span3 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) { StopDistance = 7f }; - obj176.Steps = list260; - reference192 = obj176; - ref QuestSequence reference193 = ref span116[1]; - QuestSequence obj177 = new QuestSequence + obj169.Steps = list249; + reference185 = obj169; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + num3 = 1; + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - obj177.Steps = list261; - reference193 = obj177; - ref QuestSequence reference194 = ref span116[2]; - QuestSequence obj178 = new QuestSequence + obj170.Steps = list250; + reference186 = obj170; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Say, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + List list251 = new List(num2); + CollectionsMarshal.SetCount(list251, num2); + span3 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Say, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKML103_04746_SAYTODO_000_140" } }; - obj178.Steps = list262; - reference194 = obj178; - ref QuestSequence reference195 = ref span116[3]; - QuestSequence obj179 = new QuestSequence + obj171.Steps = list251; + reference187 = obj171; + num++; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1027754u, new Vector3(-108.20172f, -19.684433f, 380.2395f), 817); - obj179.Steps = list263; - reference195 = obj179; - ref QuestSequence reference196 = ref span116[4]; - QuestSequence obj180 = new QuestSequence + num3 = 1; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1027754u, new Vector3(-108.20172f, -19.684433f, 380.2395f), 817); + obj172.Steps = list252; + reference188 = obj172; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1045642u, new Vector3(-90.28766f, -19.118582f, 298.02393f), 817); - obj180.Steps = list264; - reference196 = obj180; - ref QuestSequence reference197 = ref span116[5]; - QuestSequence obj181 = new QuestSequence + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + span3 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045642u, new Vector3(-90.28766f, -19.118582f, 298.02393f), 817); + obj173.Steps = list253; + reference189 = obj173; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1045647u, new Vector3(-488.88385f, 45.58085f, -224.5976f), 815) + num3 = 1; + List list254 = new List(num3); + CollectionsMarshal.SetCount(list254, num3); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045647u, new Vector3(-488.88385f, 45.58085f, -224.5976f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; - obj181.Steps = list265; - reference197 = obj181; - ref QuestSequence reference198 = ref span116[6]; - QuestSequence obj182 = new QuestSequence + obj174.Steps = list254; + reference190 = obj174; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045648u, new Vector3(-205.95105f, -3.1999996f, -9.597961f), 819); - obj182.Steps = list266; - reference198 = obj182; - questRoot34.QuestSequence = list259; - AddQuest(questId34, questRoot34); - QuestId questId35 = new QuestId(4747); - QuestRoot questRoot35 = new QuestRoot(); + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + span3 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045648u, new Vector3(-205.95105f, -3.1999996f, -9.597961f), 819); + obj175.Steps = list255; + reference191 = obj175; + questRoot32.QuestSequence = list248; + AddQuest(questId32, questRoot32); + QuestId questId33 = new QuestId(4747); + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "liza"; - questRoot35.Author = list267; - num = 5; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span117 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference199 = ref span117[0]; - QuestSequence obj183 = new QuestSequence + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "liza"; + questRoot33.Author = list256; + index = 5; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045649u, new Vector3(-205.95105f, -3.1999998f, -11.490112f), 819); - obj183.Steps = list269; - reference199 = obj183; - ref QuestSequence reference200 = ref span117[1]; - QuestSequence obj184 = new QuestSequence + num3 = 1; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045649u, new Vector3(-205.95105f, -3.1999998f, -11.490112f), 819); + obj176.Steps = list258; + reference192 = obj176; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span118 = CollectionsMarshal.AsSpan(list270); - span118[0] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + span3 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -324081,18 +391297,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span118[1] = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); - obj184.Steps = list270; - reference200 = obj184; - ref QuestSequence reference201 = ref span117[2]; - QuestSequence obj185 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); + obj177.Steps = list259; + reference193 = obj177; + num++; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -324101,70 +391321,84 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - obj185.Steps = list271; - reference201 = obj185; - ref QuestSequence reference202 = ref span117[3]; - QuestSequence obj186 = new QuestSequence + obj178.Steps = list260; + reference194 = obj178; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1045652u, new Vector3(-109.91083f, 52.705315f, 401.26636f), 959) + List list261 = new List(num2); + CollectionsMarshal.SetCount(list261, num2); + span3 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045652u, new Vector3(-109.91083f, 52.705315f, 401.26636f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - obj186.Steps = list272; - reference202 = obj186; - ref QuestSequence reference203 = ref span117[4]; - QuestSequence obj187 = new QuestSequence + obj179.Steps = list261; + reference195 = obj179; + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045658u, new Vector3(40.634766f, 56.721893f, 465.7815f), 1162); - obj187.Steps = list273; - reference203 = obj187; - questRoot35.QuestSequence = list268; - AddQuest(questId35, questRoot35); - QuestId questId36 = new QuestId(4748); - QuestRoot questRoot36 = new QuestRoot(); + num3 = 1; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045658u, new Vector3(40.634766f, 56.721893f, 465.7815f), 1162); + obj180.Steps = list262; + reference196 = obj180; + questRoot33.QuestSequence = list257; + AddQuest(questId33, questRoot33); + QuestId questId34 = new QuestId(4748); + QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "liza"; - questRoot36.Author = list274; - num = 8; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span119 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference204 = ref span119[0]; - QuestSequence obj188 = new QuestSequence + List list263 = new List(num); + CollectionsMarshal.SetCount(list263, num); + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; + questRoot34.Author = list263; + index = 8; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045662u, new Vector3(32.913696f, 56.682667f, 468.162f), 1162) + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + span3 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045662u, new Vector3(32.913696f, 56.682667f, 468.162f), 1162) { StopDistance = 6f }; - obj188.Steps = list276; - reference204 = obj188; - ref QuestSequence reference205 = ref span119[1]; - QuestSequence obj189 = new QuestSequence + obj181.Steps = list265; + reference197 = obj181; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Duty, null, null, 1162) + num3 = 1; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1162) { DutyOptions = new DutyOptions { @@ -324172,131 +391406,159 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 823u } }; - obj189.Steps = list277; - reference205 = obj189; - span119[2] = new QuestSequence + obj182.Steps = list266; + reference198 = obj182; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference206 = ref span119[3]; - QuestSequence obj190 = new QuestSequence + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list278)[0]; + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + span3 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + ref QuestStep reference200 = ref span3[num3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1045667u, new Vector3(-374.19702f, -567.3385f, -440.63483f), 1184); - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new DialogueChoice + num4 = 1; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + span5 = CollectionsMarshal.AsSpan(list268); + num5 = 0; + span5[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKML105_04748_SYSTEM_000_406") }; - questStep18.DialogueChoices = list279; - reference207 = questStep18; - obj190.Steps = list278; - reference206 = obj190; - span119[4] = new QuestSequence + questStep18.DialogueChoices = list268; + reference200 = questStep18; + obj183.Steps = list267; + reference199 = obj183; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference208 = ref span119[5]; - QuestSequence obj191 = new QuestSequence + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 1181) + num3 = 1; + List list269 = new List(num3); + CollectionsMarshal.SetCount(list269, num3); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1181) { DutyOptions = new DutyOptions { ContentFinderConditionId = 964u } }; - obj191.Steps = list280; - reference208 = obj191; - span119[6] = new QuestSequence + obj184.Steps = list269; + reference201 = obj184; + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference209 = ref span119[7]; - QuestSequence obj192 = new QuestSequence + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045671u, new Vector3(27.237305f, 56.635868f, 480.3081f), 1162); - obj192.Steps = list281; - reference209 = obj192; - questRoot36.QuestSequence = list275; - AddQuest(questId36, questRoot36); - QuestId questId37 = new QuestId(4749); - QuestRoot questRoot37 = new QuestRoot(); + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + span3 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045671u, new Vector3(27.237305f, 56.635868f, 480.3081f), 1162); + obj185.Steps = list270; + reference202 = obj185; + questRoot34.QuestSequence = list264; + AddQuest(questId34, questRoot34); + QuestId questId35 = new QuestId(4749); + QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; - questRoot37.Author = list282; - num = 4; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span120 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference210 = ref span120[0]; - QuestSequence obj193 = new QuestSequence + List list271 = new List(num); + CollectionsMarshal.SetCount(list271, num); + span = CollectionsMarshal.AsSpan(list271); + index = 0; + span[index] = "liza"; + questRoot35.Author = list271; + index = 4; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + span2 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference203 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045674u, new Vector3(45.853394f, 56.66061f, 467.39905f), 1162) + num3 = 1; + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045674u, new Vector3(45.853394f, 56.66061f, 467.39905f), 1162) { StopDistance = 15f }; - obj193.Steps = list284; - reference210 = obj193; - ref QuestSequence reference211 = ref span120[1]; - QuestSequence obj194 = new QuestSequence + obj186.Steps = list273; + reference203 = obj186; + num++; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1045676u, new Vector3(-130.99878f, 54.110245f, 424.73486f), 959); - obj194.Steps = list285; - reference211 = obj194; - ref QuestSequence reference212 = ref span120[2]; - QuestSequence obj195 = new QuestSequence + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + span3 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1045676u, new Vector3(-130.99878f, 54.110245f, 424.73486f), 959); + obj187.Steps = list274; + reference204 = obj187; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1042201u, new Vector3(536.2782f, -36.65f, -191.51605f), 958) + num3 = 1; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042201u, new Vector3(536.2782f, -36.65f, -191.51605f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; - obj195.Steps = list286; - reference212 = obj195; - ref QuestSequence reference213 = ref span120[3]; - QuestSequence obj196 = new QuestSequence + obj188.Steps = list275; + reference205 = obj188; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037106u, new Vector3(4.0131226f, 41.530136f, -164.41602f), 962) + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + span3 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1037106u, new Vector3(4.0131226f, 41.530136f, -164.41602f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -324305,10 +391567,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanRostra } }; - obj196.Steps = list287; - reference213 = obj196; - questRoot37.QuestSequence = list283; - AddQuest(questId37, questRoot37); + obj189.Steps = list276; + reference206 = obj189; + questRoot35.QuestSequence = list272; + AddQuest(questId35, questRoot35); } private static void LoadQuests95() @@ -324318,13 +391580,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -324332,21 +391597,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045681u, new Vector3(5.8136597f, 41.530136f, -165.27051f), 962) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045681u, new Vector3(5.8136597f, 41.530136f, -165.27051f), 962) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -324359,7 +391629,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKML107_04750_SYSTEM_000_101") @@ -324368,7 +391640,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -324376,24 +391649,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844); + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844) { StopDistance = 5f }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -324401,7 +391680,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -324412,18 +391693,22 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1045688u, new Vector3(-2.456726f, 3.0299988f, -212.84814f), 963); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045688u, new Vector3(-2.456726f, 3.0299988f, -212.84814f), 963); obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -324431,7 +391716,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AethernetShortcut = new AethernetShortcut { @@ -324448,24 +391735,30 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "liza"; questRoot2.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -324473,7 +391766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -324485,15 +391780,18 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045691u, new Vector3(-257.0993f, 19.165915f, -44.327515f), 962) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045691u, new Vector3(-257.0993f, 19.165915f, -44.327515f), 962) { AethernetShortcut = new AethernetShortcut { @@ -324510,13 +391808,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 6; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span3 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span3[0]; + index = 6; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -324524,18 +391825,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045692u, new Vector3(-256.67206f, 19.26994f, -46.28064f), 962); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045692u, new Vector3(-256.67206f, 19.26994f, -46.28064f), 962); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span3[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.SinglePlayerDuty, 1045695u, new Vector3(135.57642f, -16.147f, 243.42712f), 962) { AethernetShortcut = new AethernetShortcut @@ -324545,22 +391851,26 @@ public static class AssemblyQuestLoader } }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span4 = CollectionsMarshal.AsSpan(list20); - span4[0] = "(phase 1) AI walks (a bit) towards enemies, but doesn't target them and doesn't attack"; - span4[1] = "(phase 1) AI doesn't move close enough to the tattered plumage; needs to be re-tested"; + index3 = 2; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + span = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span[num3] = "(phase 1) AI walks (a bit) towards enemies, but doesn't target them and doesn't attack"; + num3++; + span[num3] = "(phase 1) AI doesn't move close enough to the tattered plumage; needs to be re-tested"; singlePlayerDutyOptions.Notes = list20; obj14.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - span3[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -324568,24 +391878,30 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1045696u, new Vector3(135.729f, -16.146997f, 241.50452f), 962); + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045696u, new Vector3(135.729f, -16.146997f, 241.50452f), 962); obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span3[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) { StopDistance = 7f }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span3[5]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -324593,7 +391909,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045699u, new Vector3(-60.41046f, -15.127002f, 139.42163f), 962) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045699u, new Vector3(-60.41046f, -15.127002f, 139.42163f), 962) { StopDistance = 5f }; @@ -324606,21 +391924,26 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot4.Author = list24; - num = 7; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span5 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span5[0]; + index = 7; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1045700u, new Vector3(-58.54895f, -15.127001f, 139.45215f), 962) { StopDistance = 5f @@ -324628,7 +391951,9 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMM103_04753_Q1_000_000"), @@ -324638,7 +391963,8 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference20 = ref span5[1]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -324646,8 +391972,9 @@ public static class AssemblyQuestLoader num2 = 4; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span6 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference21 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 2013419u, new Vector3(-308.49164f, 20.248657f, 48.142212f), 962) { AethernetShortcut = new AethernetShortcut @@ -324656,74 +391983,105 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span7 = CollectionsMarshal.AsSpan(list29); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list29; reference21 = obj21; - ref QuestStep reference22 = ref span6[1]; + index2++; + ref QuestStep reference22 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013418u, new Vector3(-396.23108f, 20.2182f, 103.28821f), 962); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span8 = CollectionsMarshal.AsSpan(list30); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list30; reference22 = questStep; - ref QuestStep reference23 = ref span6[2]; + index2++; + ref QuestStep reference23 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2013417u, new Vector3(-404.25726f, 20.248657f, 59.00659f), 962); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span9 = CollectionsMarshal.AsSpan(list31); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + span5 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list31; reference23 = questStep2; - ref QuestStep reference24 = ref span6[3]; + index2++; + ref QuestStep reference24 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2013416u, new Vector3(-358.38867f, 20.309753f, 20.523315f), 962); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference25 = ref span5[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1045701u, new Vector3(-343.8316f, 18.999998f, 15.152161f), 962); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045701u, new Vector3(-343.8316f, 18.999998f, 15.152161f), 962); obj22.Steps = list33; reference25 = obj22; - ref QuestSequence reference26 = ref span5[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -324731,7 +392089,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1045702u, new Vector3(-131.15137f, 5.64997f, 44.663086f), 962) + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045702u, new Vector3(-131.15137f, 5.64997f, 44.663086f), 962) { AethernetShortcut = new AethernetShortcut { @@ -324741,20 +392101,25 @@ public static class AssemblyQuestLoader }; obj23.Steps = list34; reference26 = obj23; - ref QuestSequence reference27 = ref span5[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962); - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new DialogueChoice + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + span4 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMM103_04753_SYSTEM_000_302") @@ -324763,7 +392128,8 @@ public static class AssemblyQuestLoader reference28 = questStep4; obj24.Steps = list35; reference27 = obj24; - ref QuestSequence reference29 = ref span5[5]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -324771,23 +392137,28 @@ public static class AssemblyQuestLoader num2 = 2; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) + span3 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) { TargetTerritoryId = (ushort)987 }; - span11[1] = new QuestStep(EInteractionType.Interact, 2013420u, new Vector3(-0.10687256f, -0.015319824f, -7.614319f), 987); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013420u, new Vector3(-0.10687256f, -0.015319824f, -7.614319f), 987); obj25.Steps = list37; reference29 = obj25; - ref QuestSequence reference30 = ref span5[6]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; @@ -324800,13 +392171,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; questRoot5.Author = list39; - num = 6; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span12 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference31 = ref span12[0]; + index = 6; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -324814,21 +392188,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { StopDistance = 5f }; obj27.Steps = list41; reference31 = obj27; - ref QuestSequence reference32 = ref span12[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1044769u, new Vector3(145.73889f, 27.059998f, 36.819946f), 963) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044769u, new Vector3(145.73889f, 27.059998f, 36.819946f), 963) { AethernetShortcut = new AethernetShortcut { @@ -324838,7 +392217,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference32 = obj28; - ref QuestSequence reference33 = ref span12[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -324846,7 +392226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list43)[0]; + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.966597f, 5.8818626f, 580.4358f), 957) { Fly = true, @@ -324856,7 +392238,9 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData + Span span6 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span6[index3] = new ComplexCombatData { DataId = 13527u, MinimumKillCount = 1u, @@ -324867,22 +392251,26 @@ public static class AssemblyQuestLoader reference34 = obj30; obj29.Steps = list43; reference33 = obj29; - ref QuestSequence reference35 = ref span12[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1044774u, new Vector3(-483.57367f, 1.580146f, -24.551819f), 957) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044774u, new Vector3(-483.57367f, 1.580146f, -24.551819f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj31.Steps = list45; reference35 = obj31; - ref QuestSequence reference36 = ref span12[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -324890,21 +392278,26 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2013336u, new Vector3(-589.50183f, 2.2735596f, -285.42004f), 957) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013336u, new Vector3(-589.50183f, 2.2735596f, -285.42004f), 957) { Fly = true }; obj32.Steps = list46; reference36 = obj32; - ref QuestSequence reference37 = ref span12[5]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044772u, new Vector3(147.35632f, 27.059998f, 32.700073f), 963) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044772u, new Vector3(147.35632f, 27.059998f, 32.700073f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -324923,13 +392316,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot6.Author = list48; - num = 8; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span13 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference38 = ref span13[0]; + index = 8; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -324937,7 +392333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044783u, new Vector3(-313.4051f, 93.68002f, -316.7926f), 957) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044783u, new Vector3(-313.4051f, 93.68002f, -316.7926f), 957) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork, @@ -324951,23 +392349,28 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference38 = obj34; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1044788u, new Vector3(-42.191284f, 2.4950514f, -36.14868f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + span4 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB842_04755_Q2_000_000"), @@ -324977,7 +392380,8 @@ public static class AssemblyQuestLoader reference40 = obj36; obj35.Steps = list51; reference39 = obj35; - ref QuestSequence reference41 = ref span13[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -324985,8 +392389,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span14 = CollectionsMarshal.AsSpan(list53); - span14[0] = new QuestStep(EInteractionType.Interact, 1039544u, new Vector3(-29.617859f, 179.71387f, -826.2302f), 956) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1039544u, new Vector3(-29.617859f, 179.71387f, -826.2302f), 956) { TargetTerritoryId = (ushort)962, AethernetShortcut = new AethernetShortcut @@ -324995,24 +392400,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanHallOfArtifice } }; - span14[1] = new QuestStep(EInteractionType.Interact, 1044794u, new Vector3(-63.09613f, 18f, -297.59674f), 962); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044794u, new Vector3(-63.09613f, 18f, -297.59674f), 962); obj37.Steps = list53; reference41 = obj37; - ref QuestSequence reference42 = ref span13[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1044799u, new Vector3(408.49915f, 170.17088f, -431.7235f), 956) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044799u, new Vector3(408.49915f, 170.17088f, -431.7235f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; obj38.Steps = list54; reference42 = obj38; - ref QuestSequence reference43 = ref span13[4]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -325020,8 +392430,9 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span15 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference44 = ref span15[0]; + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1044805u, new Vector3(435.26355f, 65.16199f, -134.20312f), 956) { Fly = true @@ -325029,30 +392440,44 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span16 = CollectionsMarshal.AsSpan(list56); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list56; reference44 = obj40; - ref QuestStep reference45 = ref span15[1]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1044806u, new Vector3(414.87744f, 65.16199f, -117.784424f), 956); - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span17 = CollectionsMarshal.AsSpan(list57); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + span5 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list57; reference45 = questStep5; - ref QuestStep reference46 = ref span15[2]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1044807u, new Vector3(494.40747f, 65.16199f, -82.993835f), 956) { Fly = true @@ -325060,29 +392485,39 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span18 = CollectionsMarshal.AsSpan(list58); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list58; reference46 = obj41; obj39.Steps = list55; reference43 = obj39; - ref QuestSequence reference47 = ref span13[5]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1044809u, new Vector3(470.90857f, 65.16199f, -85.61841f), 956); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044809u, new Vector3(470.90857f, 65.16199f, -85.61841f), 956); obj42.Steps = list59; reference47 = obj42; - ref QuestSequence reference48 = ref span13[6]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 6 @@ -325090,21 +392525,26 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj43.Steps = list60; reference48 = obj43; - ref QuestSequence reference49 = ref span13[7]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { NextQuestId = new QuestId(4799) }; @@ -325117,13 +392557,16 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "liza"; questRoot7.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span19 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference50 = ref span19[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -325131,7 +392574,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, SkipConditions = new SkipConditions @@ -325144,31 +392589,37 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference50 = obj45; - ref QuestSequence reference51 = ref span19[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span20 = CollectionsMarshal.AsSpan(list65); - span20[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + index2 = 4; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956 }; - span20[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span20[2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) { TargetTerritoryId = (ushort)1079 }; - span20[3] = new QuestStep(EInteractionType.Interact, 2013338u, new Vector3(18.753235f, 197.52808f, 519.06604f), 1079); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013338u, new Vector3(18.753235f, 197.52808f, 519.06604f), 1079); obj46.Steps = list65; reference51 = obj46; - ref QuestSequence reference52 = ref span19[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -325176,7 +392627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Duty, null, null, 1079) + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1079) { DutyOptions = new DutyOptions { @@ -325185,15 +392638,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list66; reference52 = obj47; - ref QuestSequence reference53 = ref span19[3]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045330u, new Vector3(19.272095f, 197.41248f, 503.59338f), 1079) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045330u, new Vector3(19.272095f, 197.41248f, 503.59338f), 1079) { StopDistance = 5f, NextQuestId = new QuestId(4757) @@ -325207,13 +392663,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "liza"; questRoot8.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span21 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference54 = ref span21[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -325221,28 +392680,35 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045335u, new Vector3(18.20398f, 197.41248f, 504.75305f), 1079) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045335u, new Vector3(18.20398f, 197.41248f, 504.75305f), 1079) { StopDistance = 4f }; obj49.Steps = list70; reference54 = obj49; - ref QuestSequence reference55 = ref span21[1]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1045338u, new Vector3(32.181274f, 197.55081f, 506.98096f), 1079); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045338u, new Vector3(32.181274f, 197.55081f, 506.98096f), 1079); obj50.Steps = list71; reference55 = obj50; - span21[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference56 = ref span21[3]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -325250,7 +392716,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Duty, null, null, 1079) + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1079) { DutyOptions = new DutyOptions { @@ -325259,15 +392727,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list72; reference56 = obj51; - ref QuestSequence reference57 = ref span21[4]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) { StopDistance = 4f, NextQuestId = new QuestId(4758) @@ -325281,13 +392752,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "liza"; questRoot9.Author = list74; - num = 3; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span22 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference58 = ref span22[0]; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -325295,21 +392769,26 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) { StopDistance = 4f }; obj53.Steps = list76; reference58 = obj53; - ref QuestSequence reference59 = ref span22[1]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 1158) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1158) { DutyOptions = new DutyOptions { @@ -325318,7 +392797,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list77; reference59 = obj54; - ref QuestSequence reference60 = ref span22[2]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -325326,7 +392806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045348u, new Vector3(99.90076f, 0f, 104.478516f), 1158) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045348u, new Vector3(99.90076f, 0f, 104.478516f), 1158) { NextQuestId = new QuestId(4759) }; @@ -325339,24 +392821,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot10.Author = list79; - num = 3; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span23 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference61 = ref span23[0]; + index = 3; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045383u, new Vector3(98.10022f, 0f, 103.837524f), 1158); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045383u, new Vector3(98.10022f, 0f, 103.837524f), 1158); obj56.Steps = list81; reference61 = obj56; - ref QuestSequence reference62 = ref span23[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -325364,7 +392852,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Duty, null, null, 1158) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1158) { DutyOptions = new DutyOptions { @@ -325373,15 +392863,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list82; reference62 = obj57; - ref QuestSequence reference63 = ref span23[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045357u, new Vector3(28.610596f, 197.55505f, 509.72766f), 1079) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045357u, new Vector3(28.610596f, 197.55505f, 509.72766f), 1079) { StopDistance = 5f, NextQuestId = new QuestId(4760) @@ -325395,13 +392888,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "liza"; questRoot11.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span24 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference64 = ref span24[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -325409,38 +392905,46 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045356u, new Vector3(28.42749f, 197.55338f, 508.23218f), 1079) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045356u, new Vector3(28.42749f, 197.55338f, 508.23218f), 1079) { StopDistance = 4f }; obj59.Steps = list86; reference64 = obj59; - ref QuestSequence reference65 = ref span24[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span25 = CollectionsMarshal.AsSpan(list87); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - span25[1] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) { TargetTerritoryId = (ushort)1025 }; - span25[2] = new QuestStep(EInteractionType.Interact, 2013031u, new Vector3(99.96179f, 8.8349f, -71.03082f), 1025) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013031u, new Vector3(99.96179f, 8.8349f, -71.03082f), 1025) { TargetTerritoryId = (ushort)1093 }; - span25[3] = new QuestStep(EInteractionType.Interact, 1045364u, new Vector3(96.36072f, -4.5494874E-13f, 85.43518f), 1093); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045364u, new Vector3(96.36072f, -4.5494874E-13f, 85.43518f), 1093); obj60.Steps = list87; reference65 = obj60; - ref QuestSequence reference66 = ref span24[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -325448,31 +392952,38 @@ public static class AssemblyQuestLoader num2 = 3; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span26 = CollectionsMarshal.AsSpan(list88); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - span26[1] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) { TargetTerritoryId = (ushort)1079 }; - span26[2] = new QuestStep(EInteractionType.Interact, 1045371u, new Vector3(29.404175f, 197.55386f, 508.8424f), 1079); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045371u, new Vector3(29.404175f, 197.55386f, 508.8424f), 1079); obj61.Steps = list88; reference66 = obj61; - ref QuestSequence reference67 = ref span24[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1045372u, new Vector3(28.030762f, 197.55408f, 508.87305f), 1079); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045372u, new Vector3(28.030762f, 197.55408f, 508.87305f), 1079); obj62.Steps = list89; reference67 = obj62; - ref QuestSequence reference68 = ref span24[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -325480,7 +392991,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { NextQuestId = new QuestId(5252) }; @@ -325493,21 +393006,26 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; questRoot12.Author = list91; - num = 5; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span27 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference69 = ref span27[0]; + index = 5; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -325520,7 +393038,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list93; reference69 = obj64; - ref QuestSequence reference70 = ref span27[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -325528,19 +393047,23 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span28 = CollectionsMarshal.AsSpan(list94); - span28[0] = new QuestStep(EInteractionType.Interact, 1033637u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1033637u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) { TargetTerritoryId = (ushort)919, Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - ref QuestStep reference71 = ref span28[1]; + index2++; + ref QuestStep reference71 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + index3 = 1; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + span4 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_Q2_000_000"), @@ -325550,15 +393073,18 @@ public static class AssemblyQuestLoader reference71 = questStep6; obj65.Steps = list94; reference70 = obj65; - ref QuestSequence reference72 = ref span27[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list96)[0]; + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1045296u, new Vector3(-1.1750488f, 41.01997f, 30.289062f), 919) { StopDistance = 7f @@ -325566,7 +393092,9 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_Q5_000_000") @@ -325575,7 +393103,8 @@ public static class AssemblyQuestLoader reference73 = obj67; obj66.Steps = list96; reference72 = obj66; - ref QuestSequence reference74 = ref span27[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 @@ -325583,16 +393112,20 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list98)[0]; + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + ref QuestStep reference75 = ref span3[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Instruction, 1045299u, new Vector3(84.73328f, 0f, 106.46216f), 991) { StopDistance = 7f, Comment = "Really short sequence of the Christmas minigame" }; - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice + index3 = 1; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + span4 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_SYSTEM_100_076") @@ -325601,15 +393134,18 @@ public static class AssemblyQuestLoader reference75 = obj69; obj68.Steps = list98; reference74 = obj68; - ref QuestSequence reference76 = ref span27[4]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) { StopDistance = 7f, NextQuestId = new QuestId(4762) @@ -325623,13 +393159,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "liza"; questRoot13.Author = list101; - num = 6; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span29 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference77 = ref span29[0]; + index = 6; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -325637,7 +393176,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list103)[0]; + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.AcceptQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) { StopDistance = 7f @@ -325645,7 +393186,9 @@ public static class AssemblyQuestLoader num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA402_04762_Q1_000_000"), @@ -325655,18 +393198,22 @@ public static class AssemblyQuestLoader reference78 = obj72; obj71.Steps = list103; reference77 = obj71; - ref QuestSequence reference79 = ref span29[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1045301u, new Vector3(-36.636963f, 41f, 57.66382f), 919); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045301u, new Vector3(-36.636963f, 41f, 57.66382f), 919); obj73.Steps = list105; reference79 = obj73; - ref QuestSequence reference80 = ref span29[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -325674,50 +393221,69 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span30 = CollectionsMarshal.AsSpan(list106); - ref QuestStep reference81 = ref span30[0]; + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference81 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1045308u, new Vector3(-18.35669f, 40.999996f, -17.898865f), 919); - num3 = 6; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span31 = CollectionsMarshal.AsSpan(list107); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list107; reference81 = questStep7; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.634434f, 41f, 13.581184f), 919); - ref QuestStep reference82 = ref span30[2]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.634434f, 41f, 13.581184f), 919); + index2++; + ref QuestStep reference82 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span32 = CollectionsMarshal.AsSpan(list108); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list108; reference82 = questStep8; obj74.Steps = list106; reference80 = obj74; - ref QuestSequence reference83 = ref span29[3]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1045311u, new Vector3(57.78589f, 35f, 81.55945f), 919); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045311u, new Vector3(57.78589f, 35f, 81.55945f), 919); obj75.Steps = list109; reference83 = obj75; - ref QuestSequence reference84 = ref span29[4]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -325725,21 +393291,26 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1045614u, new Vector3(53.116577f, 34.999966f, 78.01941f), 919) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045614u, new Vector3(53.116577f, 34.999966f, 78.01941f), 919) { StopDistance = 7f }; obj76.Steps = list110; reference84 = obj76; - ref QuestSequence reference85 = ref span29[5]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4812) @@ -325748,18 +393319,21 @@ public static class AssemblyQuestLoader reference85 = obj77; questRoot13.QuestSequence = list102; AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(4764); + QuestId questId14 = new QuestId(4773); QuestRoot questRoot14 = new QuestRoot(); num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list112); + index = 0; + span[index] = "pot0to"; questRoot14.Author = list112; - num = 3; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span33 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference86 = ref span33[0]; + index = 3; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + span2 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -325767,228 +393341,10 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); - obj78.Steps = list114; - reference86 = obj78; - ref QuestSequence reference87 = ref span33[1]; - QuestSequence obj79 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2013383u, new Vector3(-332.38727f, -2.395752f, 14.969055f), 129); - obj79.Steps = list115; - reference87 = obj79; - ref QuestSequence reference88 = ref span33[2]; - QuestSequence obj80 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); - obj80.Steps = list116; - reference88 = obj80; - questRoot14.QuestSequence = list113; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(4771); - QuestRoot questRoot15 = new QuestRoot(); - num = 1; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "CryoTechnic"; - questRoot15.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span34 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference89 = ref span34[0]; - QuestSequence obj81 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj81.Steps = list119; - reference89 = obj81; - ref QuestSequence reference90 = ref span34[1]; - QuestSequence obj82 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 2013384u, new Vector3(-23.036152f, 1.510001f, -192.78279f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHanMehrydesMeyhane - } - }; - obj82.Steps = list120; - reference90 = obj82; - ref QuestSequence reference91 = ref span34[2]; - QuestSequence obj83 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanMehrydesMeyhane, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 40322u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj83.Steps = list121; - reference91 = obj83; - ref QuestSequence reference92 = ref span34[3]; - QuestSequence obj84 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj84.Steps = list122; - reference92 = obj84; - questRoot15.QuestSequence = list118; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(4772); - QuestRoot questRoot16 = new QuestRoot(); - num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "CryoTechnic"; - questRoot16.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span35 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span35[0]; - QuestSequence obj85 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj85.Steps = list125; - reference93 = obj85; - ref QuestSequence reference94 = ref span35[1]; - QuestSequence obj86 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 40322u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj86.Steps = list126; - reference94 = obj86; - ref QuestSequence reference95 = ref span35[2]; - QuestSequence obj87 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj87.Steps = list127; - reference95 = obj87; - questRoot16.QuestSequence = list124; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(4773); - QuestRoot questRoot17 = new QuestRoot(); - num = 1; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "pot0to"; - questRoot17.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span36 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference96 = ref span36[0]; - QuestSequence obj88 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list130)[0]; - QuestStep obj89 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; + QuestStep obj79 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -325999,71 +393355,85 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj90 = new SkipAetheryteCondition + SkipAetheryteCondition obj80 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference98 = ref span36[1]; - QuestSequence obj91 = new QuestSequence + index3 = 1; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + Span span7 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span7[num3] = 131; + obj80.InTerritory = list115; + skipConditions.AetheryteShortcutIf = obj80; + obj79.SkipConditions = skipConditions; + reference87 = obj79; + obj78.Steps = list114; + reference86 = obj78; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span37 = CollectionsMarshal.AsSpan(list132); - span37[0] = new QuestStep(EInteractionType.Interact, 1045580u, new Vector3(-11.215393f, 14.000013f, 18.417542f), 131); - span37[1] = new QuestStep(EInteractionType.Interact, 1045578u, new Vector3(0.9613037f, 15.000003f, -6.4851074f), 131); - span37[2] = new QuestStep(EInteractionType.Interact, 1045579u, new Vector3(16.372864f, 14.000015f, -16.342468f), 131); - obj91.Steps = list132; - reference98 = obj91; - ref QuestSequence reference99 = ref span36[2]; - QuestSequence obj92 = new QuestSequence + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045580u, new Vector3(-11.215393f, 14.000013f, 18.417542f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045578u, new Vector3(0.9613037f, 15.000003f, -6.4851074f), 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045579u, new Vector3(16.372864f, 14.000015f, -16.342468f), 131); + obj81.Steps = list116; + reference88 = obj81; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { NextQuestId = new QuestId(4774) }; - obj92.Steps = list133; - reference99 = obj92; - questRoot17.QuestSequence = list129; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(4774); - QuestRoot questRoot18 = new QuestRoot(); + obj82.Steps = list117; + reference89 = obj82; + questRoot14.QuestSequence = list113; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(4774); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; - questRoot18.Author = list134; - num = 8; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span38 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference100 = ref span38[0]; - QuestSequence obj93 = new QuestSequence + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; + questRoot15.Author = list118; + index = 8; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference91 = ref span3[num2]; + QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326073,29 +393443,34 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj95 = new SkipAetheryteCondition + SkipAetheryteCondition obj85 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = 131; - obj95.InTerritory = list137; - skipConditions2.AetheryteShortcutIf = obj95; - obj94.SkipConditions = skipConditions2; - reference101 = obj94; - obj93.Steps = list136; - reference100 = obj93; - ref QuestSequence reference102 = ref span38[1]; - QuestSequence obj96 = new QuestSequence + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + span7 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span7[index3] = 131; + obj85.InTerritory = list121; + skipConditions2.AetheryteShortcutIf = obj85; + obj84.SkipConditions = skipConditions2; + reference91 = obj84; + obj83.Steps = list120; + reference90 = obj83; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1045582u, new Vector3(-344.53345f, -2.3744698f, 16.494995f), 129) + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045582u, new Vector3(-344.53345f, -2.3744698f, 16.494995f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326104,17 +393479,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaArcanist } }; - obj96.Steps = list138; - reference102 = obj96; - ref QuestSequence reference103 = ref span38[2]; - QuestSequence obj97 = new QuestSequence + obj86.Steps = list122; + reference92 = obj86; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1045584u, new Vector3(-233.17316f, 5.999995f, 167.86438f), 129) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045584u, new Vector3(-233.17316f, 5.999995f, 167.86438f), 129) { AethernetShortcut = new AethernetShortcut { @@ -326122,72 +393500,95 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - obj97.Steps = list139; - reference103 = obj97; - ref QuestSequence reference104 = ref span38[3]; - QuestSequence obj98 = new QuestSequence + obj87.Steps = list123; + reference93 = obj87; + num++; + ref QuestSequence reference94 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 3 }; num2 = 4; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span39 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference105 = ref span39[0]; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference95 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1045585u, new Vector3(-269.3675f, 7.352252f, 201.43433f), 129); - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span40 = CollectionsMarshal.AsSpan(list141); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list141; - reference105 = questStep9; - span39[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.1194f, 11.32725f, 188.80133f), 129); - span39[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-267.55106f, 11.852168f, 189.20018f), 129) + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span5 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list125; + reference95 = questStep9; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.1194f, 11.32725f, 188.80133f), 129); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-267.55106f, 11.852168f, 189.20018f), 129) { DisableNavmesh = true }; - ref QuestStep reference106 = ref span39[3]; + index2++; + ref QuestStep reference96 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1045586u, new Vector3(-246.50952f, 16.347235f, 192.12634f), 129); num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span41 = CollectionsMarshal.AsSpan(list142); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list142; - reference106 = questStep10; - obj98.Steps = list140; - reference104 = obj98; - ref QuestSequence reference107 = ref span38[4]; - QuestSequence obj99 = new QuestSequence + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + span5 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list126; + reference96 = questStep10; + obj88.Steps = list124; + reference94 = obj88; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); - obj99.Steps = list143; - reference107 = obj99; - ref QuestSequence reference108 = ref span38[5]; - QuestSequence obj100 = new QuestSequence + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); + obj89.Steps = list127; + reference97 = obj89; + num++; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1045587u, new Vector3(-3.7995605f, 39.999966f, 36.697876f), 128) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045587u, new Vector3(-3.7995605f, 39.999966f, 36.697876f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326196,17 +393597,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj100.Steps = list144; - reference108 = obj100; - ref QuestSequence reference109 = ref span38[6]; - QuestSequence obj101 = new QuestSequence + obj90.Steps = list128; + reference98 = obj90; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1045601u, new Vector3(-26.962769f, 45.95137f, -27.054321f), 134) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045601u, new Vector3(-26.962769f, 45.95137f, -27.054321f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -326215,17 +393619,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - obj101.Steps = list145; - reference109 = obj101; - ref QuestSequence reference110 = ref span38[7]; - QuestSequence obj102 = new QuestSequence + obj91.Steps = list129; + reference99 = obj91; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326235,31 +393642,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4775) }; - obj102.Steps = list146; - reference110 = obj102; - questRoot18.QuestSequence = list135; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(4775); - QuestRoot questRoot19 = new QuestRoot(); + obj92.Steps = list130; + reference100 = obj92; + questRoot15.QuestSequence = list119; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(4775); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; - questRoot19.Author = list147; - num = 6; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span42 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference111 = ref span42[0]; - QuestSequence obj103 = new QuestSequence + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "liza"; + questRoot16.Author = list131; + index = 6; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference102 = ref span3[num2]; + QuestStep obj94 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326269,85 +393681,102 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition obj105 = new SkipAetheryteCondition + SkipAetheryteCondition obj95 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference113 = ref span42[1]; - QuestSequence obj106 = new QuestSequence + index3 = 1; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + span7 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span7[num3] = 131; + obj95.InTerritory = list134; + skipConditions3.AetheryteShortcutIf = obj95; + obj94.SkipConditions = skipConditions3; + reference102 = obj94; + obj93.Steps = list133; + reference101 = obj93; + num++; + ref QuestSequence reference103 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1045603u, new Vector3(56.198975f, -8.45414f, 99.22937f), 132) + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045603u, new Vector3(56.198975f, -8.45414f, 99.22937f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj106.Steps = list151; - reference113 = obj106; - ref QuestSequence reference114 = ref span42[2]; - QuestSequence obj107 = new QuestSequence + obj96.Steps = list135; + reference103 = obj96; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1045604u, new Vector3(76.89014f, -6f, 55.283447f), 148) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045604u, new Vector3(76.89014f, -6f, 55.283447f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj107.Steps = list152; - reference114 = obj107; - ref QuestSequence reference115 = ref span42[3]; - QuestSequence obj108 = new QuestSequence + obj97.Steps = list136; + reference104 = obj97; + num++; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2013282u, new Vector3(190.1731f, -8.529846f, -44.35797f), 148) + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013282u, new Vector3(190.1731f, -8.529846f, -44.35797f), 148) { Fly = true }; - obj108.Steps = list153; - reference115 = obj108; - ref QuestSequence reference116 = ref span42[4]; - QuestSequence obj109 = new QuestSequence + obj98.Steps = list137; + reference105 = obj98; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2013255u, new Vector3(341.48157f, -4.501404f, -145.8916f), 148) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013255u, new Vector3(341.48157f, -4.501404f, -145.8916f), 148) { Fly = true }; - obj109.Steps = list154; - reference116 = obj109; - ref QuestSequence reference117 = ref span42[5]; - QuestSequence obj110 = new QuestSequence + obj99.Steps = list138; + reference106 = obj99; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) + List list139 = new List(num2); + CollectionsMarshal.SetCount(list139, num2); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326357,31 +393786,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4776) }; - obj110.Steps = list155; - reference117 = obj110; - questRoot19.QuestSequence = list148; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(4776); - QuestRoot questRoot20 = new QuestRoot(); + obj100.Steps = list139; + reference107 = obj100; + questRoot16.QuestSequence = list132; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(4776); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; - questRoot20.Author = list156; - num = 8; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span43 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference118 = ref span43[0]; - QuestSequence obj111 = new QuestSequence + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "liza"; + questRoot17.Author = list140; + index = 8; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference109 = ref span3[num2]; + QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326391,29 +393825,34 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions4 = new SkipConditions(); - SkipAetheryteCondition obj113 = new SkipAetheryteCondition + SkipAetheryteCondition obj103 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = 131; - obj113.InTerritory = list159; - skipConditions4.AetheryteShortcutIf = obj113; - obj112.SkipConditions = skipConditions4; - reference119 = obj112; - obj111.Steps = list158; - reference118 = obj111; - ref QuestSequence reference120 = ref span43[1]; - QuestSequence obj114 = new QuestSequence + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + span7 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span7[index3] = 131; + obj103.InTerritory = list143; + skipConditions4.AetheryteShortcutIf = obj103; + obj102.SkipConditions = skipConditions4; + reference109 = obj102; + obj101.Steps = list142; + reference108 = obj101; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1045605u, new Vector3(-166.09448f, 2.0333128f, -17.288513f), 418) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045605u, new Vector3(-166.09448f, 2.0333128f, -17.288513f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -326422,19 +393861,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj114.Steps = list160; - reference120 = obj114; - ref QuestSequence reference121 = ref span43[2]; - QuestSequence obj115 = new QuestSequence + obj104.Steps = list144; + reference110 = obj104; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span44 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference122 = ref span44[0]; - QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1045608u, new Vector3(-14.145203f, 11.965044f, 27.756104f), 419) + index2 = 3; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; + QuestStep obj106 = new QuestStep(EInteractionType.Interact, 1045608u, new Vector3(-14.145203f, 11.965044f, 27.756104f), 419) { AethernetShortcut = new AethernetShortcut { @@ -326442,68 +393883,94 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - num3 = 6; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span45 = CollectionsMarshal.AsSpan(list162); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj116.CompletionQuestVariablesFlags = list162; - reference122 = obj116; - ref QuestStep reference123 = ref span44[1]; + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span5 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj106.CompletionQuestVariablesFlags = list146; + reference112 = obj106; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1045609u, new Vector3(-10.8797f, 11.96515f, 53.543823f), 419); num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span46 = CollectionsMarshal.AsSpan(list163); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list163; - reference123 = questStep11; - ref QuestStep reference124 = ref span44[2]; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + span5 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list147; + reference113 = questStep11; + num2++; + ref QuestStep reference114 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1045607u, new Vector3(-55.89386f, 11.965071f, 39.78015f), 419); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span47 = CollectionsMarshal.AsSpan(list164); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list164; - reference124 = questStep12; - obj115.Steps = list161; - reference121 = obj115; - ref QuestSequence reference125 = ref span43[3]; - QuestSequence obj117 = new QuestSequence + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span5 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list148; + reference114 = questStep12; + obj105.Steps = list145; + reference111 = obj105; + num++; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1045610u, new Vector3(30.929932f, 11.965028f, 33.6156f), 419); - obj117.Steps = list165; - reference125 = obj117; - ref QuestSequence reference126 = ref span43[4]; - QuestSequence obj118 = new QuestSequence + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045610u, new Vector3(30.929932f, 11.965028f, 33.6156f), 419); + obj107.Steps = list149; + reference115 = obj107; + num++; + ref QuestSequence reference116 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1045713u, new Vector3(92.454346f, 24.06099f, -40.177063f), 418) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045713u, new Vector3(92.454346f, 24.06099f, -40.177063f), 418) { AethernetShortcut = new AethernetShortcut { @@ -326511,39 +393978,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj118.Steps = list166; - reference126 = obj118; - ref QuestSequence reference127 = ref span43[5]; - QuestSequence obj119 = new QuestSequence + obj108.Steps = list150; + reference116 = obj108; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); - obj119.Steps = list167; - reference127 = obj119; - ref QuestSequence reference128 = ref span43[6]; - QuestSequence obj120 = new QuestSequence + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); + obj109.Steps = list151; + reference117 = obj109; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); - obj120.Steps = list168; - reference128 = obj120; - ref QuestSequence reference129 = ref span43[7]; - QuestSequence obj121 = new QuestSequence + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); + obj110.Steps = list152; + reference118 = obj110; + num++; + ref QuestSequence reference119 = ref span2[num]; + 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, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326553,31 +394029,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4777) }; - obj121.Steps = list169; - reference129 = obj121; - questRoot20.QuestSequence = list157; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(4777); - QuestRoot questRoot21 = new QuestRoot(); + obj111.Steps = list153; + reference119 = obj111; + questRoot17.QuestSequence = list141; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(4777); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; - questRoot21.Author = list170; - num = 3; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span48 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference130 = ref span48[0]; - QuestSequence obj122 = new QuestSequence + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + span = CollectionsMarshal.AsSpan(list154); + index = 0; + span[index] = "liza"; + questRoot18.Author = list154; + index = 3; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + span2 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference121 = ref span3[num2]; + QuestStep obj113 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326587,29 +394068,34 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions5 = new SkipConditions(); - SkipAetheryteCondition obj124 = new SkipAetheryteCondition + SkipAetheryteCondition obj114 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = 131; - obj124.InTerritory = list173; - skipConditions5.AetheryteShortcutIf = obj124; - obj123.SkipConditions = skipConditions5; - reference131 = obj123; - obj122.Steps = list172; - reference130 = obj122; - ref QuestSequence reference132 = ref span48[1]; - QuestSequence obj125 = new QuestSequence + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + span7 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span7[index3] = 131; + obj114.InTerritory = list157; + skipConditions5.AetheryteShortcutIf = obj114; + obj113.SkipConditions = skipConditions5; + reference121 = obj113; + obj112.Steps = list156; + reference120 = obj112; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1045715u, new Vector3(21.042175f, 29.999996f, -16.342468f), 131) + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045715u, new Vector3(21.042175f, 29.999996f, -16.342468f), 131) { AethernetShortcut = new AethernetShortcut { @@ -326617,46 +394103,54 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj125.Steps = list174; - reference132 = obj125; - ref QuestSequence reference133 = ref span48[2]; - QuestSequence obj126 = new QuestSequence + obj115.Steps = list158; + reference122 = obj115; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(4778) }; - obj126.Steps = list175; - reference133 = obj126; - questRoot21.QuestSequence = list171; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(4778); - QuestRoot questRoot22 = new QuestRoot(); + obj116.Steps = list159; + reference123 = obj116; + questRoot18.QuestSequence = list155; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(4778); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; - questRoot22.Author = list176; - num = 2; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span49 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference134 = ref span49[0]; - QuestSequence obj127 = new QuestSequence + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; + questRoot19.Author = list160; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list178)[0]; - QuestStep obj128 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference125 = ref span3[index2]; + QuestStep obj118 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -326667,110 +394161,131 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions6 = new SkipConditions(); - SkipAetheryteCondition obj129 = new SkipAetheryteCondition + SkipAetheryteCondition obj119 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference136 = ref span49[1]; - QuestSequence obj130 = new QuestSequence + index3 = 1; + List list163 = new List(index3); + CollectionsMarshal.SetCount(list163, index3); + span7 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span7[num3] = 131; + obj119.InTerritory = list163; + skipConditions6.AetheryteShortcutIf = obj119; + obj118.SkipConditions = skipConditions6; + reference125 = obj118; + obj117.Steps = list162; + reference124 = obj117; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f }; - obj130.Steps = list180; - reference136 = obj130; - questRoot22.QuestSequence = list177; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(4779); - QuestRoot questRoot23 = new QuestRoot(); + obj120.Steps = list164; + reference126 = obj120; + questRoot19.QuestSequence = list161; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(4779); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "pot0to"; - questRoot23.Author = list181; - num = 6; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span50 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference137 = ref span50[0]; - QuestSequence obj131 = new QuestSequence + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "pot0to"; + questRoot20.Author = list165; + index = 6; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list183)[0]; - QuestStep obj132 = new QuestStep(EInteractionType.AcceptQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference128 = ref span3[index2]; + QuestStep obj122 = new QuestStep(EInteractionType.AcceptQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + span4 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBWIL901_04779_Q1_000_000"), Answer = new ExcelRef("TEXT_SUBWIL901_04779_A1_000_001") }; - obj132.DialogueChoices = list184; - reference138 = obj132; - obj131.Steps = list183; - reference137 = obj131; - ref QuestSequence reference139 = ref span50[1]; - QuestSequence obj133 = new QuestSequence + obj122.DialogueChoices = list168; + reference128 = obj122; + obj121.Steps = list167; + reference127 = obj121; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1045616u, new Vector3(-379.7818f, -59f, 131.48694f), 145) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045616u, new Vector3(-379.7818f, -59f, 131.48694f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - obj133.Steps = list185; - reference139 = obj133; - ref QuestSequence reference140 = ref span50[2]; - QuestSequence obj134 = new QuestSequence + obj123.Steps = list169; + reference129 = obj123; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 2013396u, new Vector3(-69.96271f, -21.011719f, -10.177856f), 145) + List list170 = new List(num2); + CollectionsMarshal.SetCount(list170, num2); + span3 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013396u, new Vector3(-69.96271f, -21.011719f, -10.177856f), 145) { Fly = true }; - obj134.Steps = list186; - reference140 = obj134; - ref QuestSequence reference141 = ref span50[3]; - QuestSequence obj135 = new QuestSequence + obj124.Steps = list170; + reference130 = obj124; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1045618u, new Vector3(-37.43042f, 11.0769615f, -257.5876f), 133) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + span3 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045618u, new Vector3(-37.43042f, 11.0769615f, -257.5876f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -326779,17 +394294,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj135.Steps = list187; - reference141 = obj135; - ref QuestSequence reference142 = ref span50[4]; - QuestSequence obj136 = new QuestSequence + obj125.Steps = list171; + reference131 = obj125; + num++; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326798,42 +394316,50 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj136.Steps = list188; - reference142 = obj136; - ref QuestSequence reference143 = ref span50[5]; - QuestSequence obj137 = new QuestSequence + obj126.Steps = list172; + reference132 = obj126; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128); - obj137.Steps = list189; - reference143 = obj137; - questRoot23.QuestSequence = list182; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(4780); - QuestRoot questRoot24 = new QuestRoot(); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128); + obj127.Steps = list173; + reference133 = obj127; + questRoot20.QuestSequence = list166; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(4780); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "pot0to"; - questRoot24.Author = list190; - num = 7; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span51 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference144 = ref span51[0]; - QuestSequence obj138 = new QuestSequence + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + span = CollectionsMarshal.AsSpan(list174); + index = 0; + span[index] = "pot0to"; + questRoot21.Author = list174; + index = 7; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span2 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list192)[0]; - QuestStep obj139 = new QuestStep(EInteractionType.AcceptQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; + QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326844,277 +394370,334 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 128; - skipAetheryteCondition.InTerritory = list193; + index3 = 1; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + span7 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span7[num3] = 128; + skipAetheryteCondition.InTerritory = list177; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition; - obj139.SkipConditions = skipConditions7; - reference145 = obj139; - obj138.Steps = list192; - reference144 = obj138; - ref QuestSequence reference146 = ref span51[1]; - QuestSequence obj140 = new QuestSequence + obj129.SkipConditions = skipConditions7; + reference135 = obj129; + obj128.Steps = list176; + reference134 = obj128; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1045620u, new Vector3(157.57996f, 14.09586f, 685.81665f), 135) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045620u, new Vector3(157.57996f, 14.09586f, 685.81665f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - obj140.Steps = list194; - reference146 = obj140; - ref QuestSequence reference147 = ref span51[2]; - QuestSequence obj141 = new QuestSequence + obj130.Steps = list178; + reference136 = obj130; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span52 = CollectionsMarshal.AsSpan(list195); - span52[0] = new QuestStep(EInteractionType.Interact, 1045624u, new Vector3(199.51172f, 14.119263f, 670.6492f), 135); - span52[1] = new QuestStep(EInteractionType.Interact, 1045623u, new Vector3(162.67639f, 8.973654f, 613.9772f), 135) + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045624u, new Vector3(199.51172f, 14.119263f, 670.6492f), 135); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045623u, new Vector3(162.67639f, 8.973654f, 613.9772f), 135) { Fly = true }; - span52[2] = new QuestStep(EInteractionType.Interact, 1045625u, new Vector3(217.18164f, 8.973654f, 615.77783f), 135); - obj141.Steps = list195; - reference147 = obj141; - ref QuestSequence reference148 = ref span51[3]; - QuestSequence obj142 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045625u, new Vector3(217.18164f, 8.973654f, 615.77783f), 135); + obj131.Steps = list179; + reference137 = obj131; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1045621u, new Vector3(162.89001f, 12.126945f, 637.0182f), 135) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045621u, new Vector3(162.89001f, 12.126945f, 637.0182f), 135) { Fly = true }; - obj142.Steps = list196; - reference148 = obj142; - ref QuestSequence reference149 = ref span51[4]; - QuestSequence obj143 = new QuestSequence + obj132.Steps = list180; + reference138 = obj132; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 2013397u, new Vector3(247.8523f, 6.6986694f, 783.505f), 135); - obj143.Steps = list197; - reference149 = obj143; - ref QuestSequence reference150 = ref span51[5]; - QuestSequence obj144 = new QuestSequence + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013397u, new Vector3(247.8523f, 6.6986694f, 783.505f), 135); + obj133.Steps = list181; + reference139 = obj133; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1045626u, new Vector3(248.27954f, 6.7779655f, 784.6647f), 135); - obj144.Steps = list198; - reference150 = obj144; - ref QuestSequence reference151 = ref span51[6]; - QuestSequence obj145 = new QuestSequence + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045626u, new Vector3(248.27954f, 6.7779655f, 784.6647f), 135); + obj134.Steps = list182; + reference140 = obj134; + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list199)[0]; - QuestStep obj146 = new QuestStep(EInteractionType.CompleteQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + ref QuestStep reference142 = ref span3[index2]; + QuestStep obj136 = new QuestStep(EInteractionType.CompleteQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; num3 = 1; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + span4 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBWIL902_04780_Q2_000_000"), Answer = new ExcelRef("TEXT_SUBWIL902_04780_A2_000_001") }; - obj146.DialogueChoices = list200; - reference152 = obj146; - obj145.Steps = list199; - reference151 = obj145; - questRoot24.QuestSequence = list191; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(4787); - QuestRoot questRoot25 = new QuestRoot(); + obj136.DialogueChoices = list184; + reference142 = obj136; + obj135.Steps = list183; + reference141 = obj135; + questRoot21.QuestSequence = list175; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(4787); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; - questRoot25.Author = list201; - num = 7; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span53 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference153 = ref span53[0]; - QuestSequence obj147 = new QuestSequence + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "liza"; + questRoot22.Author = list185; + index = 7; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list203)[0]; + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + ref QuestStep reference144 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new DialogueChoice + index3 = 1; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + span4 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q1_000_007"), Answer = new ExcelRef("TEXT_BANALL310_04787_A1_000_002") }; - questStep13.DialogueChoices = list204; - reference154 = questStep13; - obj147.Steps = list203; - reference153 = obj147; - ref QuestSequence reference155 = ref span53[1]; - QuestSequence obj148 = new QuestSequence + questStep13.DialogueChoices = list188; + reference144 = questStep13; + obj137.Steps = list187; + reference143 = obj137; + num++; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1045899u, new Vector3(-164.99585f, -49.302116f, -284.22986f), 959) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045899u, new Vector3(-164.99585f, -49.302116f, -284.22986f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - obj148.Steps = list205; - reference155 = obj148; - ref QuestSequence reference156 = ref span53[2]; - QuestSequence obj149 = new QuestSequence + obj138.Steps = list189; + reference145 = obj138; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); - obj149.Steps = list206; - reference156 = obj149; - ref QuestSequence reference157 = ref span53[3]; - QuestSequence obj150 = new QuestSequence + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + obj139.Steps = list190; + reference146 = obj139; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - obj150.Steps = list207; - reference157 = obj150; - ref QuestSequence reference158 = ref span53[4]; - QuestSequence obj151 = new QuestSequence + obj140.Steps = list191; + reference147 = obj140; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 5f }; - obj151.Steps = list208; - reference158 = obj151; - ref QuestSequence reference159 = ref span53[5]; - QuestSequence obj152 = new QuestSequence + obj141.Steps = list192; + reference148 = obj141; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list209)[0]; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + ref QuestStep reference150 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); num3 = 4; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span54 = CollectionsMarshal.AsSpan(list210); - span54[0] = new DialogueChoice + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + span4 = CollectionsMarshal.AsSpan(list194); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q3_000_112") }; - span54[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q4_000_116"), Answer = new ExcelRef("TEXT_BANALL310_04787_A4_000_003") }; - span54[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q5_000_120"), Answer = new ExcelRef("TEXT_BANALL310_04787_A5_000_002") }; - span54[3] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q6_000_124"), Answer = new ExcelRef("TEXT_BANALL310_04787_A6_000_003") }; - questStep14.DialogueChoices = list210; - reference160 = questStep14; - obj152.Steps = list209; - reference159 = obj152; - ref QuestSequence reference161 = ref span53[6]; - QuestSequence obj153 = new QuestSequence + questStep14.DialogueChoices = list194; + reference150 = questStep14; + obj142.Steps = list193; + reference149 = obj142; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 5f }; - obj153.Steps = list211; - reference161 = obj153; - questRoot25.QuestSequence = list202; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(4788); - QuestRoot questRoot26 = new QuestRoot(); + obj143.Steps = list195; + reference151 = obj143; + questRoot22.QuestSequence = list186; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(4788); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; - questRoot26.Author = list212; - num = 6; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span55 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference162 = ref span55[0]; - QuestSequence obj154 = new QuestSequence + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; + questRoot23.Author = list196; + index = 6; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -327126,140 +394709,165 @@ public static class AssemblyQuestLoader } } }; - obj154.Steps = list214; - reference162 = obj154; - ref QuestSequence reference163 = ref span55[1]; - QuestSequence obj155 = new QuestSequence + obj144.Steps = list198; + reference152 = obj144; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span56 = CollectionsMarshal.AsSpan(list215); - span56[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 3; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span56[1] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - span56[2] = new QuestStep(EInteractionType.Interact, 1045904u, new Vector3(201.46484f, 567.4998f, 241.32141f), 960); - obj155.Steps = list215; - reference163 = obj155; - ref QuestSequence reference164 = ref span55[2]; - QuestSequence obj156 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045904u, new Vector3(201.46484f, 567.4998f, 241.32141f), 960); + obj145.Steps = list199; + reference153 = obj145; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list216)[0]; - QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1045905u, new Vector3(491.6609f, 436.9997f, 301.22827f), 960) + List list200 = new List(num2); + CollectionsMarshal.SetCount(list200, num2); + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference155 = ref span3[index2]; + QuestStep obj147 = new QuestStep(EInteractionType.Interact, 1045905u, new Vector3(491.6609f, 436.9997f, 301.22827f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span4 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q1_000_049"), Answer = new ExcelRef("TEXT_BANALL320_04788_A1_000_001") }; - obj157.DialogueChoices = list217; - reference165 = obj157; - obj156.Steps = list216; - reference164 = obj156; - ref QuestSequence reference166 = ref span55[3]; - QuestSequence obj158 = new QuestSequence + obj147.DialogueChoices = list201; + reference155 = obj147; + obj146.Steps = list200; + reference154 = obj146; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span57 = CollectionsMarshal.AsSpan(list218); - span57[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960 }; - span57[1] = new QuestStep(EInteractionType.Interact, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); - obj158.Steps = list218; - reference166 = obj158; - ref QuestSequence reference167 = ref span55[4]; - QuestSequence obj159 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + obj148.Steps = list202; + reference156 = obj148; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list219)[0]; - QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2013445u, new Vector3(-386.83148f, 80.85742f, 603.6621f), 960) + List list203 = new List(num2); + CollectionsMarshal.SetCount(list203, num2); + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference158 = ref span3[index2]; + QuestStep obj150 = new QuestStep(EInteractionType.Interact, 2013445u, new Vector3(-386.83148f, 80.85742f, 603.6621f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; num3 = 2; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span58 = CollectionsMarshal.AsSpan(list220); - span58[0] = new DialogueChoice + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + span4 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q2_000_090") }; - span58[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q3_000_130"), Answer = new ExcelRef("TEXT_BANALL320_04788_A3_000_003") }; - obj160.DialogueChoices = list220; - reference168 = obj160; - obj159.Steps = list219; - reference167 = obj159; - ref QuestSequence reference169 = ref span55[5]; - QuestSequence obj161 = new QuestSequence + obj150.DialogueChoices = list204; + reference158 = obj150; + obj149.Steps = list203; + reference157 = obj149; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045914u, new Vector3(202.89917f, 567.4998f, 239.9176f), 960) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045914u, new Vector3(202.89917f, 567.4998f, 239.9176f), 960) { StopDistance = 7f }; - obj161.Steps = list221; - reference169 = obj161; - questRoot26.QuestSequence = list213; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(4791); - QuestRoot questRoot27 = new QuestRoot(); + obj151.Steps = list205; + reference159 = obj151; + questRoot23.QuestSequence = list197; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(4791); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; - questRoot27.Author = list222; - num = 8; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span59 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference170 = ref span59[0]; - QuestSequence obj162 = new QuestSequence + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "liza"; + questRoot24.Author = list206; + index = 8; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -327270,176 +394878,210 @@ public static class AssemblyQuestLoader } } }; - obj162.Steps = list224; - reference170 = obj162; - ref QuestSequence reference171 = ref span59[1]; - QuestSequence obj163 = new QuestSequence + obj152.Steps = list208; + reference160 = obj152; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span60 = CollectionsMarshal.AsSpan(list225); - span60[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 2; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true }; - span60[1] = new QuestStep(EInteractionType.Interact, 1045968u, new Vector3(5.661072f, 0.099999696f, 5.8441772f), 1061); - obj163.Steps = list225; - reference171 = obj163; - ref QuestSequence reference172 = ref span59[2]; - QuestSequence obj164 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045968u, new Vector3(5.661072f, 0.099999696f, 5.8441772f), 1061); + obj153.Steps = list209; + reference161 = obj153; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list226)[0]; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + ref QuestStep reference163 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1045971u, new Vector3(1.3580322f, 0.099999696f, 27.237305f), 1061); - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new DialogueChoice + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + span4 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKEA301_04791_Q1_100_000") }; - questStep15.DialogueChoices = list227; - reference173 = questStep15; - obj164.Steps = list226; - reference172 = obj164; - ref QuestSequence reference174 = ref span59[3]; - QuestSequence obj165 = new QuestSequence + questStep15.DialogueChoices = list211; + reference163 = questStep15; + obj154.Steps = list210; + reference162 = obj154; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2013455u, new Vector3(-510.1244f, 128.64868f, 607.9956f), 959) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013455u, new Vector3(-510.1244f, 128.64868f, 607.9956f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - obj165.Steps = list228; - reference174 = obj165; - ref QuestSequence reference175 = ref span59[4]; - QuestSequence obj166 = new QuestSequence + obj155.Steps = list212; + reference164 = obj155; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + List list213 = new List(num2); + CollectionsMarshal.SetCount(list213, num2); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj166.Steps = list229; - reference175 = obj166; - ref QuestSequence reference176 = ref span59[5]; - QuestSequence obj167 = new QuestSequence + obj156.Steps = list213; + reference165 = obj156; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1045974u, new Vector3(2.3651123f, 0.099999696f, -11.215393f), 1061) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045974u, new Vector3(2.3651123f, 0.099999696f, -11.215393f), 1061) { StopDistance = 5f }; - obj167.Steps = list230; - reference176 = obj167; - ref QuestSequence reference177 = ref span59[6]; - QuestSequence obj168 = new QuestSequence + obj157.Steps = list214; + reference166 = obj157; + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + span3 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { ContentFinderConditionId = 962u } }; - obj168.Steps = list231; - reference177 = obj168; - ref QuestSequence reference178 = ref span59[7]; - QuestSequence obj169 = new QuestSequence + obj158.Steps = list215; + reference167 = obj158; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045982u, new Vector3(945.2506f, -950f, -940.55084f), 1182) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045982u, new Vector3(945.2506f, -950f, -940.55084f), 1182) { NextQuestId = new QuestId(4792) }; - obj169.Steps = list232; - reference178 = obj169; - questRoot27.QuestSequence = list223; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(4792); - QuestRoot questRoot28 = new QuestRoot(); + obj159.Steps = list216; + reference168 = obj159; + questRoot24.QuestSequence = list207; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(4792); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; - questRoot28.Author = list233; - num = 6; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span61 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference179 = ref span61[0]; - QuestSequence obj170 = new QuestSequence + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; + questRoot25.Author = list217; + index = 6; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045985u, new Vector3(945.18945f, -950f, -937.8042f), 1182) + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045985u, new Vector3(945.18945f, -950f, -937.8042f), 1182) { StopDistance = 4f }; - obj170.Steps = list235; - reference179 = obj170; - ref QuestSequence reference180 = ref span61[1]; - QuestSequence obj171 = new QuestSequence + obj160.Steps = list219; + reference169 = obj160; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 2013456u, new Vector3(-192.6452f, 18.32605f, 24.36853f), 152) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013456u, new Vector3(-192.6452f, 18.32605f, 24.36853f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - obj171.Steps = list236; - reference180 = obj171; - ref QuestSequence reference181 = ref span61[2]; - QuestSequence obj172 = new QuestSequence + obj161.Steps = list220; + reference170 = obj161; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1045992u, new Vector3(-277.45483f, 16.000862f, 50.461548f), 129) + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045992u, new Vector3(-277.45483f, 16.000862f, 50.461548f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -327448,17 +395090,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaArcanist } }; - obj172.Steps = list237; - reference181 = obj172; - ref QuestSequence reference182 = ref span61[3]; - QuestSequence obj173 = new QuestSequence + obj162.Steps = list221; + reference171 = obj162; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1045994u, new Vector3(-13.7178955f, 68.37596f, 125.65808f), 135) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045994u, new Vector3(-13.7178955f, 68.37596f, 125.65808f), 135) { AethernetShortcut = new AethernetShortcut { @@ -327466,307 +395111,390 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - obj173.Steps = list238; - reference182 = obj173; - ref QuestSequence reference183 = ref span61[4]; - QuestSequence obj174 = new QuestSequence + obj163.Steps = list222; + reference172 = obj163; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 4 }; num2 = 4; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span62 = CollectionsMarshal.AsSpan(list239); - span62[0] = new QuestStep(EInteractionType.Interact, 1045996u, new Vector3(85.9845f, 68.34592f, 348.989f), 135) + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1045996u, new Vector3(85.9845f, 68.34592f, 348.989f), 135) { Fly = true }; - span62[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(45.021595f, 71.30157f, 376.23453f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(45.021595f, 71.30157f, 376.23453f), 135) { Mount = false, Sprint = false }; - span62[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(43.50745f, 71.30162f, 379.11874f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(43.50745f, 71.30162f, 379.11874f), 135) { StopDistance = 10f, Mount = false, Sprint = false }; - span62[3] = new QuestStep(EInteractionType.WalkTo, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135) { StopDistance = 1f, Mount = false, Sprint = false }; - obj174.Steps = list239; - reference183 = obj174; - ref QuestSequence reference184 = ref span61[5]; - QuestSequence obj175 = new QuestSequence + obj164.Steps = list223; + reference173 = obj164; + num++; + ref QuestSequence reference174 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135); - obj175.Steps = list240; - reference184 = obj175; - questRoot28.QuestSequence = list234; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(4794); - QuestRoot questRoot29 = new QuestRoot(); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135); + obj165.Steps = list224; + reference174 = obj165; + questRoot25.QuestSequence = list218; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(4794); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; - questRoot29.Author = list241; - num = 6; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span63 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference185 = ref span63[0]; - QuestSequence obj176 = new QuestSequence + List list225 = new List(num); + CollectionsMarshal.SetCount(list225, num); + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; + questRoot26.Author = list225; + index = 6; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044156u, new Vector3(-276.3562f, 39.993896f, 224.26172f), 1055); - obj176.Steps = list243; - reference185 = obj176; - ref QuestSequence reference186 = ref span63[1]; - QuestSequence obj177 = new QuestSequence + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044156u, new Vector3(-276.3562f, 39.993896f, 224.26172f), 1055); + obj166.Steps = list227; + reference175 = obj166; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 2013553u, new Vector3(-389.82227f, 3.250122f, 238.02539f), 1055); - obj177.Steps = list244; - reference186 = obj177; - ref QuestSequence reference187 = ref span63[2]; - QuestSequence obj178 = new QuestSequence + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013553u, new Vector3(-389.82227f, 3.250122f, 238.02539f), 1055); + obj167.Steps = list228; + reference176 = obj167; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); - obj178.Steps = list245; - reference187 = obj178; - ref QuestSequence reference188 = ref span63[3]; - QuestSequence obj179 = new QuestSequence + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); + obj168.Steps = list229; + reference177 = obj168; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span64 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference189 = ref span64[0]; + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference179 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1046279u, new Vector3(-147.17328f, 48.330666f, 164.38538f), 1055); num3 = 6; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - Span span65 = CollectionsMarshal.AsSpan(list247); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list247; - reference189 = questStep16; - ref QuestStep reference190 = ref span64[1]; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + span5 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list231; + reference179 = questStep16; + num2++; + ref QuestStep reference180 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1046281u, new Vector3(-118.21167f, 91.550545f, 398.79456f), 1055); - num3 = 6; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span66 = CollectionsMarshal.AsSpan(list248); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list248; - reference190 = questStep17; - obj179.Steps = list246; - reference188 = obj179; - ref QuestSequence reference191 = ref span63[4]; - QuestSequence obj180 = new QuestSequence + index3 = 6; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + span5 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list232; + reference180 = questStep17; + obj169.Steps = list230; + reference178 = obj169; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); - obj180.Steps = list249; - reference191 = obj180; - ref QuestSequence reference192 = ref span63[5]; - QuestSequence obj181 = new QuestSequence + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); + obj170.Steps = list233; + reference181 = obj170; + num++; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046284u, new Vector3(-402.2431f, 1.7196094f, 226.4591f), 1055) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046284u, new Vector3(-402.2431f, 1.7196094f, 226.4591f), 1055) { StopDistance = 5f }; - obj181.Steps = list250; - reference192 = obj181; - questRoot29.QuestSequence = list242; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(4799); - QuestRoot questRoot30 = new QuestRoot(); + obj171.Steps = list234; + reference182 = obj171; + questRoot26.QuestSequence = list226; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(4799); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; - questRoot30.Author = list251; - num = 5; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span67 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference193 = ref span67[0]; - QuestSequence obj182 = new QuestSequence + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + span = CollectionsMarshal.AsSpan(list235); + index = 0; + span[index] = "liza"; + questRoot27.Author = list235; + index = 5; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + span2 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963); - obj182.Steps = list253; - reference193 = obj182; - ref QuestSequence reference194 = ref span67[1]; - QuestSequence obj183 = new QuestSequence + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963); + obj172.Steps = list237; + reference183 = obj172; + num++; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1044815u, new Vector3(182.17737f, 5.3180933f, 646.3873f), 957) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044815u, new Vector3(182.17737f, 5.3180933f, 646.3873f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - obj183.Steps = list254; - reference194 = obj183; - ref QuestSequence reference195 = ref span67[2]; - QuestSequence obj184 = new QuestSequence + obj173.Steps = list238; + reference184 = obj173; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 2 }; num2 = 4; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span68 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference196 = ref span68[0]; + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + ref QuestStep reference186 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1044821u, new Vector3(216.38806f, 10.035135f, 613.79407f), 957); num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span69 = CollectionsMarshal.AsSpan(list256); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list256; - reference196 = questStep18; - ref QuestStep reference197 = ref span68[1]; - QuestStep obj185 = new QuestStep(EInteractionType.Interact, 1044822u, new Vector3(244.09851f, 9.916463f, 575.8601f), 957) + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + span5 = CollectionsMarshal.AsSpan(list240); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list240; + reference186 = questStep18; + index2++; + ref QuestStep reference187 = ref span3[index2]; + QuestStep obj175 = new QuestStep(EInteractionType.Interact, 1044822u, new Vector3(244.09851f, 9.916463f, 575.8601f), 957) { Fly = true }; - num3 = 6; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span70 = CollectionsMarshal.AsSpan(list257); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj185.CompletionQuestVariablesFlags = list257; - reference197 = obj185; - ref QuestStep reference198 = ref span68[2]; - QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(203.62158f, 1.7700036f, 711.6622f), 957) + index3 = 6; + List list241 = new List(index3); + CollectionsMarshal.SetCount(list241, index3); + span5 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj175.CompletionQuestVariablesFlags = list241; + reference187 = obj175; + index2++; + ref QuestStep reference188 = ref span3[index2]; + QuestStep obj176 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(203.62158f, 1.7700036f, 711.6622f), 957) { Fly = true }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span71 = CollectionsMarshal.AsSpan(list258); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - skipStepConditions.CompletionQuestVariablesFlags = list258; + List list242 = new List(num3); + CollectionsMarshal.SetCount(list242, num3); + span5 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + skipStepConditions.CompletionQuestVariablesFlags = list242; skipConditions8.StepIf = skipStepConditions; - obj186.SkipConditions = skipConditions8; - reference198 = obj186; - ref QuestStep reference199 = ref span68[3]; + obj176.SkipConditions = skipConditions8; + reference188 = obj176; + index2++; + ref QuestStep reference189 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1044820u, new Vector3(205.09644f, 1.7700036f, 710.84155f), 957); - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span72 = CollectionsMarshal.AsSpan(list259); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list259; - reference199 = questStep19; - obj184.Steps = list255; - reference195 = obj184; - ref QuestSequence reference200 = ref span67[3]; - QuestSequence obj187 = new QuestSequence + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + span5 = CollectionsMarshal.AsSpan(list243); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list243; + reference189 = questStep19; + obj174.Steps = list239; + reference185 = obj174; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1044824u, new Vector3(212.4513f, 4.763736f, 653.65063f), 957) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044824u, new Vector3(212.4513f, 4.763736f, 653.65063f), 957) { Fly = true }; - obj187.Steps = list260; - reference200 = obj187; - ref QuestSequence reference201 = ref span67[4]; - QuestSequence obj188 = new QuestSequence + obj177.Steps = list244; + reference190 = obj177; + num++; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044830u, new Vector3(25.680908f, 1.5596709f, 634.5464f), 957) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044830u, new Vector3(25.680908f, 1.5596709f, 634.5464f), 957) { StopDistance = 5f, NextQuestId = new QuestId(4800) }; - obj188.Steps = list261; - reference201 = obj188; - questRoot30.QuestSequence = list252; - AddQuest(questId30, questRoot30); + obj178.Steps = list245; + reference191 = obj178; + questRoot27.QuestSequence = list236; + AddQuest(questId27, questRoot27); } private static void LoadQuests96() @@ -327776,13 +395504,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -327790,29 +395521,35 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044835u, new Vector3(24.338135f, 1.6764785f, 631.1284f), 957) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044835u, new Vector3(24.338135f, 1.6764785f, 631.1284f), 957) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.503275f, 56.94149f, 74.85906f), 957) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.503275f, 56.94149f, 74.85906f), 957) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1044751u, new Vector3(-16.617126f, 56.856533f, 74.052f), 957); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1044751u, new Vector3(-16.617126f, 56.856533f, 74.052f), 957); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -327820,7 +395557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Duty, null, null, 1183) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1183) { DutyOptions = new DutyOptions { @@ -327829,15 +395568,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { StopDistance = 5f }; @@ -327845,20 +395587,21 @@ public static class AssemblyQuestLoader reference4 = obj4; questRoot.QuestSequence = list2; AddQuest(questId, questRoot); - QuestId questId2 = new QuestId(4801); + QuestId questId2 = new QuestId(4812); QuestRoot questRoot2 = new QuestRoot(); num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot2.Author = list7; - questRoot2.IsSeasonalQuest = true; - questRoot2.SeasonalQuestExpiry = new DateTime(2025, 11, 27, 14, 59, 0, DateTimeKind.Utc); - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 6; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -327866,9 +395609,11 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { - AetheryteShortcut = EAetheryteLocation.GoldSaucer, + AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -327879,251 +395624,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(2.900159f, 20.999727f, 59.821472f), 144) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GoldSaucerEntranceCardSquares, - To = EAetheryteLocation.GoldSaucerWonderSquareWest - }, - JumpDestination = new JumpDestination - { - Position = new Vector3(7.2141614f, 3.9997299f, 60.4036f) - } - }; - 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); - CollectionsMarshal.AsSpan(list11)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_SUBGSC901_04801_SYSTEM_000_011") - }; - questStep.DialogueChoices = list11; - reference7 = questStep; - obj6.Steps = list10; - reference6 = obj6; - ref QuestSequence reference8 = ref span3[2]; - QuestSequence obj7 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046439u, new Vector3(-17.868408f, -3.8732372E-12f, -37.857666f), 1197); - obj7.Steps = list12; - reference8 = obj7; - questRoot2.QuestSequence = list8; - AddQuest(questId2, questRoot2); - QuestId questId3 = new QuestId(4806); - QuestRoot questRoot3 = new QuestRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "CryoTechnic"; - questRoot3.Author = list13; - num = 3; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span5[0]; - QuestSequence obj8 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj8.Steps = list15; - reference9 = obj8; - ref QuestSequence reference10 = ref span5[1]; - QuestSequence obj9 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 41032u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj9.Steps = list16; - reference10 = obj9; - ref QuestSequence reference11 = ref span5[2]; - QuestSequence obj10 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj10.Steps = list17; - reference11 = obj10; - questRoot3.QuestSequence = list14; - AddQuest(questId3, questRoot3); - QuestId questId4 = new QuestId(4807); - QuestRoot questRoot4 = new QuestRoot(); - num = 1; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "CryoTechnic"; - questRoot4.Author = list18; - num = 3; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span6 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference12 = ref span6[0]; - QuestSequence obj11 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj11.Steps = list20; - reference12 = obj11; - ref QuestSequence reference13 = ref span6[1]; - QuestSequence obj12 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHanHighCrucible, - To = EAetheryteLocation.RadzAtHan - }, - ItemId = 41032u, - ItemCount = 3, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - Item = new SkipItemConditions() - } - } - }; - obj12.Steps = list21; - reference13 = obj12; - ref QuestSequence reference14 = ref span6[2]; - QuestSequence obj13 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) - { - AetheryteShortcut = EAetheryteLocation.RadzAtHan, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.RadzAtHan, - To = EAetheryteLocation.RadzAtHanHighCrucible - } - }; - obj13.Steps = list22; - reference14 = obj13; - questRoot4.QuestSequence = list19; - AddQuest(questId4, questRoot4); - QuestId questId5 = new QuestId(4812); - QuestRoot questRoot5 = new QuestRoot(); - num = 1; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; - questRoot5.Author = list23; - num = 6; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span7 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference15 = ref span7[0]; - QuestSequence obj14 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) - { - AetheryteShortcut = EAetheryteLocation.OldSharlayan, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj14.Steps = list25; - reference15 = obj14; - ref QuestSequence reference16 = ref span7[1]; - QuestSequence obj15 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1046136u, new Vector3(-341.39008f, 22.3f, -103.74609f), 962) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046136u, new Vector3(-341.39008f, 22.3f, -103.74609f), 962) { AethernetShortcut = new AethernetShortcut { @@ -328131,31 +395643,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - obj15.Steps = list26; - reference16 = obj15; - ref QuestSequence reference17 = ref span7[2]; - QuestSequence obj16 = new QuestSequence + obj6.Steps = list10; + reference6 = obj6; + num++; + ref QuestSequence reference7 = ref span2[num]; + QuestSequence obj7 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1046138u, new Vector3(30.960571f, 5.1499996f, -66.88031f), 962) + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046138u, new Vector3(30.960571f, 5.1499996f, -66.88031f), 962) { StopDistance = 7f }; - obj16.Steps = list27; - reference17 = obj16; - ref QuestSequence reference18 = ref span7[3]; - QuestSequence obj17 = new QuestSequence + obj7.Steps = list11; + reference7 = obj7; + num++; + ref QuestSequence reference8 = ref span2[num]; + QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1046139u, new Vector3(87.63245f, -16.247002f, 123.76587f), 962) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046139u, new Vector3(87.63245f, -16.247002f, 123.76587f), 962) { AethernetShortcut = new AethernetShortcut { @@ -328163,60 +395681,71 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - obj17.Steps = list28; - reference18 = obj17; - ref QuestSequence reference19 = ref span7[4]; - QuestSequence obj18 = new QuestSequence + obj8.Steps = list12; + reference8 = obj8; + num++; + ref QuestSequence reference9 = ref span2[num]; + QuestSequence obj9 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1046141u, new Vector3(-133.4707f, 28.049995f, 219.65356f), 963) + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046141u, new Vector3(-133.4707f, 28.049995f, 219.65356f), 963) { StopDistance = 5f }; - obj18.Steps = list29; - reference19 = obj18; - ref QuestSequence reference20 = ref span7[5]; - QuestSequence obj19 = new QuestSequence + obj9.Steps = list13; + reference9 = obj9; + num++; + ref QuestSequence reference10 = ref span2[num]; + QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 2013721u, new Vector3(406.30188f, 13.01593f, -299.8551f), 957) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 2013721u, new Vector3(406.30188f, 13.01593f, -299.8551f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, NextQuestId = new QuestId(4813) }; - obj19.Steps = list30; - reference20 = obj19; - questRoot5.QuestSequence = list24; - AddQuest(questId5, questRoot5); - QuestId questId6 = new QuestId(4813); - QuestRoot questRoot6 = new QuestRoot(); + obj10.Steps = list14; + reference10 = obj10; + questRoot2.QuestSequence = list8; + AddQuest(questId2, questRoot2); + QuestId questId3 = new QuestId(4813); + QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; - questRoot6.Author = list31; - num = 7; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span8 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference21 = ref span8[0]; - QuestSequence obj20 = new QuestSequence + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; + questRoot3.Author = list15; + index = 7; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; + QuestSequence obj11 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -328228,151 +395757,193 @@ public static class AssemblyQuestLoader } } }; - obj20.Steps = list33; - reference21 = obj20; - ref QuestSequence reference22 = ref span8[1]; - QuestSequence obj21 = new QuestSequence + obj11.Steps = list17; + reference11 = obj11; + num++; + ref QuestSequence reference12 = ref span2[num]; + QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) { StopDistance = 5f }; - obj21.Steps = list34; - reference22 = obj21; - ref QuestSequence reference23 = ref span8[2]; - QuestSequence obj22 = new QuestSequence + obj12.Steps = list18; + reference12 = obj12; + num++; + ref QuestSequence reference13 = ref span2[num]; + QuestSequence obj13 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span9 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference24 = ref span9[0]; - QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1037703u, new Vector3(423.7887f, 3.1168795f, -269.73376f), 957); + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; + QuestStep questStep = new QuestStep(EInteractionType.Interact, 1037703u, new Vector3(423.7887f, 3.1168795f, -269.73376f), 957); + int num3 = 6; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span4 = CollectionsMarshal.AsSpan(list20); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep.CompletionQuestVariablesFlags = list20; + reference14 = questStep; + index2++; + ref QuestStep reference15 = ref span3[index2]; + QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1037707u, new Vector3(432.02856f, 5.912681f, -225.20789f), 957); + num4 = 6; + List list21 = new List(num4); + CollectionsMarshal.SetCount(list21, num4); + span4 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list21; + reference15 = questStep2; + index2++; + ref QuestStep reference16 = ref span3[index2]; + QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1039517u, new Vector3(376.6078f, 5.709401f, -220.50812f), 957); num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span10 = CollectionsMarshal.AsSpan(list36); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list36; - reference24 = questStep2; - 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 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; - ref QuestStep reference26 = ref span9[2]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1039517u, new Vector3(376.6078f, 5.709401f, -220.50812f), 957); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span12 = CollectionsMarshal.AsSpan(list38); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list38; - reference26 = questStep4; - obj22.Steps = list35; - reference23 = obj22; - ref QuestSequence reference27 = ref span8[3]; - QuestSequence obj23 = new QuestSequence + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + span4 = CollectionsMarshal.AsSpan(list22); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list22; + reference16 = questStep3; + obj13.Steps = list19; + reference13 = obj13; + num++; + ref QuestSequence reference17 = ref span2[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(545.292f, 10.612534f, 232.90868f), 957) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(545.292f, 10.612534f, 232.90868f), 957) { StopDistance = 0.5f, Fly = true }; - obj23.Steps = list39; - reference27 = obj23; - ref QuestSequence reference28 = ref span8[4]; - QuestSequence obj24 = new QuestSequence + obj14.Steps = list23; + reference17 = obj14; + num++; + ref QuestSequence reference18 = ref span2[num]; + QuestSequence obj15 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957) + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957) { StopDistance = 7f }; - obj24.Steps = list40; - reference28 = obj24; - ref QuestSequence reference29 = ref span8[5]; - QuestSequence obj25 = new QuestSequence + obj15.Steps = list24; + reference18 = obj15; + num++; + ref QuestSequence reference19 = ref span2[num]; + QuestSequence obj16 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; - obj25.Steps = list41; - reference29 = obj25; - ref QuestSequence reference30 = ref span8[6]; - QuestSequence obj26 = new QuestSequence + obj16.Steps = list25; + reference19 = obj16; + num++; + ref QuestSequence reference20 = ref span2[num]; + QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962); - obj26.Steps = list42; - reference30 = obj26; - questRoot6.QuestSequence = list32; - AddQuest(questId6, questRoot6); - QuestId questId7 = new QuestId(4815); - QuestRoot questRoot7 = new QuestRoot(); + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962); + obj17.Steps = list26; + reference20 = obj17; + questRoot3.QuestSequence = list16; + AddQuest(questId3, questRoot3); + QuestId questId4 = new QuestId(4815); + QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; - questRoot7.Author = list43; - num = 3; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span13 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference31 = ref span13[0]; - QuestSequence obj27 = new QuestSequence + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + span = CollectionsMarshal.AsSpan(list27); + index = 0; + span[index] = "liza"; + questRoot4.Author = list27; + index = 3; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + span2 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span2[num]; + QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046399u, new Vector3(130.05261f, -16.077408f, 190.72253f), 962) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046399u, new Vector3(130.05261f, -16.077408f, 190.72253f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -328388,59 +395959,70 @@ public static class AssemblyQuestLoader } } }; - obj27.Steps = list45; - reference31 = obj27; - ref QuestSequence reference32 = ref span13[1]; - QuestSequence obj28 = new QuestSequence + obj18.Steps = list29; + reference21 = obj18; + num++; + ref QuestSequence reference22 = ref span2[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1046401u, new Vector3(92.27124f, -29.53f, -6.607239f), 956) + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046401u, new Vector3(92.27124f, -29.53f, -6.607239f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - obj28.Steps = list46; - reference32 = obj28; - ref QuestSequence reference33 = ref span13[2]; - QuestSequence obj29 = new QuestSequence + obj19.Steps = list30; + reference22 = obj19; + num++; + ref QuestSequence reference23 = ref span2[num]; + QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046403u, new Vector3(-31.99823f, -31.53043f, -53.26935f), 956) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046403u, new Vector3(-31.99823f, -31.53043f, -53.26935f), 956) { Fly = true }; - obj29.Steps = list47; - reference33 = obj29; - questRoot7.QuestSequence = list44; - AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(4816); - QuestRoot questRoot8 = new QuestRoot(); + obj20.Steps = list31; + reference23 = obj20; + questRoot4.QuestSequence = list28; + AddQuest(questId4, questRoot4); + QuestId questId5 = new QuestId(4816); + QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "kaiser"; - questRoot8.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span14 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference34 = ref span14[0]; - QuestSequence obj30 = new QuestSequence + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "kaiser"; + questRoot5.Author = list32; + index = 4; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + span2 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference24 = ref span2[num]; + QuestSequence obj21 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + span3 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -328457,33 +396039,39 @@ public static class AssemblyQuestLoader } } }; - obj30.Steps = list50; - reference34 = obj30; - ref QuestSequence reference35 = ref span14[1]; - QuestSequence obj31 = new QuestSequence + obj21.Steps = list34; + reference24 = obj21; + num++; + ref QuestSequence reference25 = ref span2[num]; + QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1046404u, new Vector3(-707.6982f, -31.53043f, 280.38452f), 956) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046404u, new Vector3(-707.6982f, -31.53043f, 280.38452f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - obj31.Steps = list51; - reference35 = obj31; - ref QuestSequence reference36 = ref span14[2]; - QuestSequence obj32 = new QuestSequence + obj22.Steps = list35; + reference25 = obj22; + num++; + ref QuestSequence reference26 = ref span2[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 2 }; 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) + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; + QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -328500,27 +396088,32 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span5 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBCTS606_04816_Q2_000_055") }; - obj33.DialogueChoices = list53; - reference37 = obj33; - obj32.Steps = list52; - reference36 = obj32; - ref QuestSequence reference38 = ref span14[3]; - QuestSequence obj34 = new QuestSequence + obj24.DialogueChoices = list37; + reference27 = obj24; + obj23.Steps = list36; + reference26 = obj23; + num++; + ref QuestSequence reference28 = ref span2[num]; + QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -328537,79 +396130,95 @@ public static class AssemblyQuestLoader } } }; - obj34.Steps = list54; - reference38 = obj34; - questRoot8.QuestSequence = list49; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(4817); - QuestRoot questRoot9 = new QuestRoot(); + obj25.Steps = list38; + reference28 = obj25; + questRoot5.QuestSequence = list33; + AddQuest(questId5, questRoot5); + QuestId questId6 = new QuestId(4817); + QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; - questRoot9.Author = list55; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span15 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference39 = ref span15[0]; - QuestSequence obj35 = new QuestSequence + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + span = CollectionsMarshal.AsSpan(list39); + index = 0; + span[index] = "liza"; + questRoot6.Author = list39; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + span2 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span2[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; - obj35.Steps = list57; - reference39 = obj35; - ref QuestSequence reference40 = ref span15[1]; - QuestSequence obj36 = new QuestSequence + obj26.Steps = list41; + reference29 = obj26; + num++; + ref QuestSequence reference30 = ref span2[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 2014140u, new Vector3(-30.960571f, -17.47168f, 191.36328f), 1185); - obj36.Steps = list58; - reference40 = obj36; - ref QuestSequence reference41 = ref span15[2]; - QuestSequence obj37 = new QuestSequence + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014140u, new Vector3(-30.960571f, -17.47168f, 191.36328f), 1185); + obj27.Steps = list42; + reference30 = obj27; + num++; + ref QuestSequence reference31 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); - obj37.Steps = list59; - reference41 = obj37; - questRoot9.QuestSequence = list56; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(4818); - QuestRoot questRoot10 = new QuestRoot(); + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); + obj28.Steps = list43; + reference31 = obj28; + questRoot6.QuestSequence = list40; + AddQuest(questId6, questRoot6); + QuestId questId7 = new QuestId(4818); + QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; - questRoot10.Author = list60; - num = 5; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span16 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span16[0]; - QuestSequence obj38 = new QuestSequence + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; + questRoot7.Author = list44; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference32 = ref span2[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -328620,18 +396229,20 @@ public static class AssemblyQuestLoader } } }; - obj38.Steps = list62; - reference42 = obj38; - ref QuestSequence reference43 = ref span16[1]; - QuestSequence obj39 = new QuestSequence + obj29.Steps = list46; + reference32 = obj29; + num++; + ref QuestSequence reference33 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span17 = CollectionsMarshal.AsSpan(list63); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.44312f, 15.094683f, 33.75105f), 418) + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.44312f, 15.094683f, 33.75105f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328640,18 +396251,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - span17[1] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); - obj39.Steps = list63; - reference43 = obj39; - ref QuestSequence reference44 = ref span16[2]; - QuestSequence obj40 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + obj30.Steps = list47; + reference33 = obj30; + num++; + ref QuestSequence reference34 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1048253u, new Vector3(-223.95673f, -16.134916f, -64.2558f), 419) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048253u, new Vector3(-223.95673f, -16.134916f, -64.2558f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328660,17 +396275,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - obj40.Steps = list64; - reference44 = obj40; - ref QuestSequence reference45 = ref span16[3]; - QuestSequence obj41 = new QuestSequence + obj31.Steps = list48; + reference34 = obj31; + num++; + ref QuestSequence reference35 = ref span2[num]; + QuestSequence obj32 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AethernetShortcut = new AethernetShortcut { @@ -328678,44 +396296,52 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj41.Steps = list65; - reference45 = obj41; - ref QuestSequence reference46 = ref span16[4]; - QuestSequence obj42 = new QuestSequence + obj32.Steps = list49; + reference35 = obj32; + num++; + ref QuestSequence reference36 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { NextQuestId = new QuestId(4819) }; - obj42.Steps = list66; - reference46 = obj42; - questRoot10.QuestSequence = list61; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(4819); - QuestRoot questRoot11 = new QuestRoot(); + obj33.Steps = list50; + reference36 = obj33; + questRoot7.QuestSequence = list45; + AddQuest(questId7, questRoot7); + QuestId questId8 = new QuestId(4819); + QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; - questRoot11.Author = list67; - num = 7; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span18 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span18[0]; - QuestSequence obj43 = new QuestSequence + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; + questRoot8.Author = list51; + index = 7; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -328726,78 +396352,95 @@ public static class AssemblyQuestLoader } } }; - obj43.Steps = list69; - reference47 = obj43; - ref QuestSequence reference48 = ref span18[1]; - QuestSequence obj44 = new QuestSequence + obj34.Steps = list53; + reference37 = obj34; + num++; + ref QuestSequence reference38 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1006433u, new Vector3(202.80762f, 309.07346f, -220.69128f), 155) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1006433u, new Vector3(202.80762f, 309.07346f, -220.69128f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj44.Steps = list70; - reference48 = obj44; - ref QuestSequence reference49 = ref span18[2]; - QuestSequence obj45 = new QuestSequence + obj35.Steps = list54; + reference38 = obj35; + num++; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1048260u, new Vector3(39.017212f, 208.71985f, 410.26917f), 155) + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048260u, new Vector3(39.017212f, 208.71985f, 410.26917f), 155) { Fly = true }; - obj45.Steps = list71; - reference49 = obj45; - ref QuestSequence reference50 = ref span18[3]; - QuestSequence obj46 = new QuestSequence + obj36.Steps = list55; + reference39 = obj36; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list72)[0]; - QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-20.404095f, 200.07019f, 519.84406f), 155) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; + QuestStep obj38 = new QuestStep(EInteractionType.Combat, null, new Vector3(-20.404095f, 200.07019f, 519.84406f), 155) { Fly = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 17605u; - obj47.KillEnemyDataIds = list73; - reference51 = obj47; - obj46.Steps = list72; - reference50 = obj46; - ref QuestSequence reference52 = ref span18[4]; - QuestSequence obj48 = new QuestSequence + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + Span span6 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span6[num4] = 17605u; + obj38.KillEnemyDataIds = list57; + reference41 = obj38; + obj37.Steps = list56; + reference40 = obj37; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1048261u, new Vector3(-19.424805f, 197.58359f, 527.5502f), 155); - obj48.Steps = list74; - reference52 = obj48; - ref QuestSequence reference53 = ref span18[5]; - QuestSequence obj49 = new QuestSequence + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048261u, new Vector3(-19.424805f, 197.58359f, 527.5502f), 155); + obj39.Steps = list58; + reference42 = obj39; + num++; + ref QuestSequence reference43 = ref span2[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328806,45 +396449,53 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj49.Steps = list75; - reference53 = obj49; - ref QuestSequence reference54 = ref span18[6]; - QuestSequence obj50 = new QuestSequence + obj40.Steps = list59; + reference43 = obj40; + num++; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { NextQuestId = new QuestId(4820) }; - obj50.Steps = list76; - reference54 = obj50; - questRoot11.QuestSequence = list68; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(4820); - QuestRoot questRoot12 = new QuestRoot(); + obj41.Steps = list60; + reference44 = obj41; + questRoot8.QuestSequence = list52; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(4820); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; - questRoot12.Author = list77; - num = 8; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span19 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span19[0]; - QuestSequence obj51 = new QuestSequence + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; + questRoot9.Author = list61; + index = 8; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list79)[0]; - QuestStep obj52 = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference46 = ref span3[num2]; + QuestStep obj43 = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -328855,132 +396506,160 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA121_04820_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBA121_04820_A1_000_001") }; - obj52.DialogueChoices = list80; - reference56 = obj52; - obj51.Steps = list79; - reference55 = obj51; - ref QuestSequence reference57 = ref span19[1]; - QuestSequence obj53 = new QuestSequence + obj43.DialogueChoices = list64; + reference46 = obj43; + obj42.Steps = list63; + reference45 = obj42; + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj53.Steps = list81; - reference57 = obj53; - ref QuestSequence reference58 = ref span19[2]; - QuestSequence obj54 = new QuestSequence + obj44.Steps = list65; + reference47 = obj44; + num++; + ref QuestSequence reference48 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1048270u, new Vector3(459.76953f, 161.99915f, -493.33948f), 397) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048270u, new Vector3(459.76953f, 161.99915f, -493.33948f), 397) { Fly = true }; - obj54.Steps = list82; - reference58 = obj54; - ref QuestSequence reference59 = ref span19[3]; - QuestSequence obj55 = new QuestSequence + obj45.Steps = list66; + reference48 = obj45; + num++; + ref QuestSequence reference49 = ref span2[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span20 = CollectionsMarshal.AsSpan(list83); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.6491f, 164.30826f, -541.31744f), 397); - ref QuestStep reference60 = ref span20[1]; - QuestStep obj56 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.58475f, 157.40831f, -558.01215f), 397) + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.6491f, 164.30826f, -541.31744f), 397); + index2++; + ref QuestStep reference50 = ref span3[index2]; + QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.58475f, 157.40831f, -558.01215f), 397) { Fly = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span21 = CollectionsMarshal.AsSpan(list84); - span21[0] = 17606u; - span21[1] = 17607u; - obj56.KillEnemyDataIds = list84; - reference60 = obj56; - obj55.Steps = list83; - reference59 = obj55; - ref QuestSequence reference61 = ref span19[4]; - QuestSequence obj57 = new QuestSequence + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + span6 = CollectionsMarshal.AsSpan(list68); + num4 = 0; + span6[num4] = 17606u; + num4++; + span6[num4] = 17607u; + obj47.KillEnemyDataIds = list68; + reference50 = obj47; + obj46.Steps = list67; + reference49 = obj46; + num++; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1048278u, new Vector3(452.84204f, 157.40831f, -556.87805f), 397) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048278u, new Vector3(452.84204f, 157.40831f, -556.87805f), 397) { StopDistance = 7f }; - obj57.Steps = list85; - reference61 = obj57; - ref QuestSequence reference62 = ref span19[5]; - QuestSequence obj58 = new QuestSequence + obj48.Steps = list69; + reference51 = obj48; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 5 }; 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) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference53 = ref span3[index2]; + QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(466.1211f, 161.96898f, -488.2508f), 397) { Comment = "You automatically spawn triggering combat", EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span22 = CollectionsMarshal.AsSpan(list87); - span22[0] = 17608u; - span22[1] = 17609u; - span22[2] = 17610u; - obj59.KillEnemyDataIds = list87; - reference63 = obj59; - obj58.Steps = list86; - reference62 = obj58; - ref QuestSequence reference64 = ref span19[6]; - QuestSequence obj60 = new QuestSequence + num4 = 3; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + span6 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span6[num3] = 17608u; + num3++; + span6[num3] = 17609u; + num3++; + span6[num3] = 17610u; + obj50.KillEnemyDataIds = list71; + reference53 = obj50; + obj49.Steps = list70; + reference52 = obj49; + num++; + ref QuestSequence reference54 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1048271u, new Vector3(464.3778f, 161.94708f, -488.45657f), 397); - obj60.Steps = list88; - reference64 = obj60; - ref QuestSequence reference65 = ref span19[7]; - QuestSequence obj61 = new QuestSequence + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048271u, new Vector3(464.3778f, 161.94708f, -488.45657f), 397); + obj51.Steps = list72; + reference54 = obj51; + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328990,30 +396669,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4821) }; - obj61.Steps = list89; - reference65 = obj61; - questRoot12.QuestSequence = list78; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(4821); - QuestRoot questRoot13 = new QuestRoot(); + obj52.Steps = list73; + reference55 = obj52; + questRoot9.QuestSequence = list62; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(4821); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; - questRoot13.Author = list90; - num = 5; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span23 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference66 = ref span23[0]; - QuestSequence obj62 = new QuestSequence + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + span = CollectionsMarshal.AsSpan(list74); + index = 0; + span[index] = "liza"; + questRoot10.Author = list74; + index = 5; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + span2 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -329024,61 +396708,79 @@ public static class AssemblyQuestLoader } } }; - obj62.Steps = list92; - reference66 = obj62; - ref QuestSequence reference67 = ref span23[1]; - QuestSequence obj63 = new QuestSequence + obj53.Steps = list76; + reference56 = obj53; + num++; + ref QuestSequence reference57 = ref span2[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span24 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference68 = ref span24[0]; - QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2013677u, new Vector3(-226.0014f, -11.520569f, 339.9862f), 400) + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference58 = ref span3[index2]; + QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2013677u, new Vector3(-226.0014f, -11.520569f, 339.9862f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span25 = CollectionsMarshal.AsSpan(list94); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj64.CompletionQuestVariablesFlags = list94; - reference68 = obj64; - 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 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; - ref QuestSequence reference70 = ref span23[2]; - QuestSequence obj65 = new QuestSequence + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + span4 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj55.CompletionQuestVariablesFlags = list78; + reference58 = obj55; + index2++; + ref QuestStep reference59 = ref span3[index2]; + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2013676u, new Vector3(-187.79285f, -10.544006f, 366.99463f), 400); + num4 = 6; + List list79 = new List(num4); + CollectionsMarshal.SetCount(list79, num4); + span4 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list79; + reference59 = questStep4; + obj54.Steps = list77; + reference57 = obj54; + num++; + ref QuestSequence reference60 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list96)[0]; - QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2013681u, new Vector3(-527.7333f, 147.11218f, 15.27417f), 399) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + ref QuestStep reference61 = ref span3[num2]; + QuestStep obj57 = new QuestStep(EInteractionType.Combat, 2013681u, new Vector3(-527.7333f, 147.11218f, 15.27417f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -329090,22 +396792,27 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; 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; - ref QuestSequence reference72 = ref span23[3]; - QuestSequence obj67 = new QuestSequence + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + span6 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span6[num4] = 17611u; + obj57.KillEnemyDataIds = list81; + reference61 = obj57; + obj56.Steps = list80; + reference60 = obj56; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1048284u, new Vector3(107.80493f, 34.723892f, -8.560364f), 418) + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048284u, new Vector3(107.80493f, 34.723892f, -8.560364f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -329114,45 +396821,53 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj67.Steps = list98; - reference72 = obj67; - ref QuestSequence reference73 = ref span23[4]; - QuestSequence obj68 = new QuestSequence + obj58.Steps = list82; + reference62 = obj58; + num++; + ref QuestSequence reference63 = ref span2[num]; + QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f, NextQuestId = new QuestId(4822) }; - obj68.Steps = list99; - reference73 = obj68; - questRoot13.QuestSequence = list91; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(4822); - QuestRoot questRoot14 = new QuestRoot(); + obj59.Steps = list83; + reference63 = obj59; + questRoot10.QuestSequence = list75; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(4822); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; - questRoot14.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span27 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference74 = ref span27[0]; - QuestSequence obj69 = new QuestSequence + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "liza"; + questRoot11.Author = list84; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -329164,94 +396879,124 @@ public static class AssemblyQuestLoader } } }; - obj69.Steps = list102; - reference74 = obj69; - ref QuestSequence reference75 = ref span27[1]; - QuestSequence obj70 = new QuestSequence + obj60.Steps = list86; + reference64 = obj60; + num++; + ref QuestSequence reference65 = ref span2[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f }; - obj70.Steps = list103; - reference75 = obj70; - ref QuestSequence reference76 = ref span27[2]; - QuestSequence obj71 = new QuestSequence + obj61.Steps = list87; + reference65 = obj61; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span28 = CollectionsMarshal.AsSpan(list104); - ref QuestStep reference77 = ref span28[0]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1048286u, new Vector3(106.248535f, 34.723896f, 4.257263f), 418); + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference67 = ref span3[index2]; + QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1048286u, new Vector3(106.248535f, 34.723896f, 4.257263f), 418); + num4 = 6; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + span4 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list89; + reference67 = questStep5; + index2++; + ref QuestStep reference68 = ref span3[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1048285u, new Vector3(-21.316895f, 5.504703f, 37.64392f), 418); num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span29 = CollectionsMarshal.AsSpan(list105); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list105; - reference77 = questStep6; - ref QuestStep reference78 = ref span28[1]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048285u, new Vector3(-21.316895f, 5.504703f, 37.64392f), 418); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span30 = CollectionsMarshal.AsSpan(list106); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list106; - reference78 = questStep7; - 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 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; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + span4 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list90; + reference68 = questStep6; + index2++; + ref QuestStep reference69 = ref span3[index2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048287u, new Vector3(-65.049255f, 18.457891f, -77.04285f), 418); + num4 = 6; + List list91 = new List(num4); + CollectionsMarshal.SetCount(list91, num4); + span4 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list91; num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + span5 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA141_04822_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBA141_04822_A1_000_001") }; - questStep8.DialogueChoices = list108; - reference79 = questStep8; - obj71.Steps = list104; - reference76 = obj71; - ref QuestSequence reference80 = ref span27[3]; - QuestSequence obj72 = new QuestSequence + questStep7.DialogueChoices = list92; + reference69 = questStep7; + obj62.Steps = list88; + reference66 = obj62; + num++; + ref QuestSequence reference70 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + span3 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut { @@ -329259,54 +397004,64 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj72.Steps = list109; - reference80 = obj72; - ref QuestSequence reference81 = ref span27[4]; - QuestSequence obj73 = new QuestSequence + obj63.Steps = list93; + reference70 = obj63; + num++; + ref QuestSequence reference71 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; 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); - CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; + QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418); + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + span5 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA141_04822_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGBA141_04822_A3_000_002") }; - questStep9.DialogueChoices = list111; - questStep9.NextQuestId = new QuestId(4823); - reference82 = questStep9; - obj73.Steps = list110; - reference81 = obj73; - questRoot14.QuestSequence = list101; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(4823); - QuestRoot questRoot15 = new QuestRoot(); + questStep8.DialogueChoices = list95; + questStep8.NextQuestId = new QuestId(4823); + reference72 = questStep8; + obj64.Steps = list94; + reference71 = obj64; + questRoot11.QuestSequence = list85; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(4823); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; - questRoot15.Author = list112; - num = 7; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span32 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference83 = ref span32[0]; - QuestSequence obj74 = new QuestSequence + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; + questRoot12.Author = list96; + index = 7; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference73 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -329317,64 +397072,77 @@ public static class AssemblyQuestLoader } } }; - obj74.Steps = list114; - reference83 = obj74; - ref QuestSequence reference84 = ref span32[1]; - QuestSequence obj75 = new QuestSequence + obj65.Steps = list98; + reference73 = obj65; + num++; + ref QuestSequence reference74 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - obj75.Steps = list115; - reference84 = obj75; - ref QuestSequence reference85 = ref span32[2]; - QuestSequence obj76 = new QuestSequence + obj66.Steps = list99; + reference74 = obj66; + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048288u, new Vector3(-576.3485f, -52.88129f, -418.6618f), 401) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048288u, new Vector3(-576.3485f, -52.88129f, -418.6618f), 401) { StopDistance = 5f, Comment = "Dreams of a New Day" }; - obj76.Steps = list116; - reference85 = obj76; - span32[3] = new QuestSequence + obj67.Steps = list100; + reference75 = obj67; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference86 = ref span32[4]; - QuestSequence obj77 = new QuestSequence + num++; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1048290u, new Vector3(-781.796f, -90.0236f, -759.7925f), 401) + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048290u, new Vector3(-781.796f, -90.0236f, -759.7925f), 401) { StopDistance = 5f }; - obj77.Steps = list117; - reference86 = obj77; - ref QuestSequence reference87 = ref span32[5]; - QuestSequence obj78 = new QuestSequence + obj68.Steps = list101; + reference76 = obj68; + num++; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -329383,17 +397151,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj78.Steps = list118; - reference87 = obj78; - ref QuestSequence reference88 = ref span32[6]; - QuestSequence obj79 = new QuestSequence + obj69.Steps = list102; + reference77 = obj69; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -329402,30 +397173,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj79.Steps = list119; - reference88 = obj79; - questRoot15.QuestSequence = list113; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(4824); - QuestRoot questRoot16 = new QuestRoot(); + obj70.Steps = list103; + reference78 = obj70; + questRoot12.QuestSequence = list97; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(4824); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; - questRoot16.Author = list120; - num = 8; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span33 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference89 = ref span33[0]; - QuestSequence obj80 = new QuestSequence + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + span = CollectionsMarshal.AsSpan(list104); + index = 0; + span[index] = "liza"; + questRoot13.Author = list104; + index = 8; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + span2 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -329436,17 +397212,20 @@ public static class AssemblyQuestLoader } } }; - obj80.Steps = list122; - reference89 = obj80; - ref QuestSequence reference90 = ref span33[1]; - QuestSequence obj81 = new QuestSequence + obj71.Steps = list106; + reference79 = obj71; + num++; + ref QuestSequence reference80 = ref span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1046291u, new Vector3(-409.07916f, 3.9999695f, 14.846985f), 129) + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046291u, new Vector3(-409.07916f, 3.9999695f, 14.846985f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -329455,19 +397234,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaArcanist } }; - obj81.Steps = list123; - reference90 = obj81; - ref QuestSequence reference91 = ref span33[2]; - QuestSequence obj82 = new QuestSequence + obj72.Steps = list107; + reference80 = obj72; + num++; + ref QuestSequence reference81 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span34 = CollectionsMarshal.AsSpan(list124); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-387.69412f, 5.999984f, 41.170013f), 129); - span34[1] = new QuestStep(EInteractionType.Interact, 1046292u, new Vector3(-195.36127f, 19.999954f, 112.962524f), 129) + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-387.69412f, 5.999984f, 41.170013f), 129); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046292u, new Vector3(-195.36127f, 19.999954f, 112.962524f), 129) { AethernetShortcut = new AethernetShortcut { @@ -329475,70 +397257,95 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - obj82.Steps = list124; - reference91 = obj82; - ref QuestSequence reference92 = ref span33[3]; - QuestSequence obj83 = new QuestSequence + obj73.Steps = list108; + reference81 = obj73; + num++; + ref QuestSequence reference82 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span35 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference93 = ref span35[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001540u, new Vector3(-202.68567f, 16f, 56.99243f), 129); + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + ref QuestStep reference83 = ref span3[index2]; + QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1001540u, new Vector3(-202.68567f, 16f, 56.99243f), 129); num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span36 = CollectionsMarshal.AsSpan(list126); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list126; - reference93 = questStep10; - ref QuestStep reference94 = ref span35[1]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + span4 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list110; + reference83 = questStep9; + index2++; + ref QuestStep reference84 = ref span3[index2]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); + num4 = 6; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + span4 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list111; + reference84 = questStep10; + index2++; + ref QuestStep reference85 = ref span3[index2]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003277u, new Vector3(-136.67511f, 18.2f, 16.494995f), 129); num3 = 6; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span37 = CollectionsMarshal.AsSpan(list127); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list127; - reference94 = questStep11; - ref QuestStep reference95 = ref span35[2]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1003277u, new Vector3(-136.67511f, 18.2f, 16.494995f), 129); - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span38 = CollectionsMarshal.AsSpan(list128); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list128; - reference95 = questStep12; - obj83.Steps = list125; - reference92 = obj83; - ref QuestSequence reference96 = ref span33[4]; - QuestSequence obj84 = new QuestSequence + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + span4 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list112; + reference85 = questStep11; + obj74.Steps = list109; + reference82 = obj74; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1046293u, new Vector3(-143.35852f, 3.9999998f, 189.6543f), 129) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046293u, new Vector3(-143.35852f, 3.9999998f, 189.6543f), 129) { AethernetShortcut = new AethernetShortcut { @@ -329546,73 +397353,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - obj84.Steps = list129; - reference96 = obj84; - ref QuestSequence reference97 = ref span33[5]; - QuestSequence obj85 = new QuestSequence + obj75.Steps = list113; + reference86 = obj75; + num++; + ref QuestSequence reference87 = ref span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1046294u, new Vector3(-115.19043f, 20f, 111.95532f), 129) + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046294u, new Vector3(-115.19043f, 20f, 111.95532f), 129) { StopDistance = 1f }; - obj85.Steps = list130; - reference97 = obj85; - ref QuestSequence reference98 = ref span33[6]; - QuestSequence obj86 = new QuestSequence + obj76.Steps = list114; + reference87 = obj76; + num++; + ref QuestSequence reference88 = ref span2[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Action, 1046296u, new Vector3(-114.42743f, 20f, 111.283936f), 129) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + span3 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Action, 1046296u, new Vector3(-114.42743f, 20f, 111.283936f), 129) { StopDistance = 10f, Action = EAction.Esuna }; - obj86.Steps = list131; - reference98 = obj86; - ref QuestSequence reference99 = ref span33[7]; - QuestSequence obj87 = new QuestSequence + obj77.Steps = list115; + reference88 = obj77; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { NextQuestId = new QuestId(4825) }; - obj87.Steps = list132; - reference99 = obj87; - questRoot16.QuestSequence = list121; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(4825); - QuestRoot questRoot17 = new QuestRoot(); + obj78.Steps = list116; + reference89 = obj78; + questRoot13.QuestSequence = list105; + AddQuest(questId13, questRoot13); + QuestId questId14 = new QuestId(4825); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; - questRoot17.Author = list133; - num = 7; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span39 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference100 = ref span39[0]; - QuestSequence obj88 = new QuestSequence + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "liza"; + questRoot14.Author = list117; + index = 7; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -329623,127 +397444,152 @@ public static class AssemblyQuestLoader } } }; - obj88.Steps = list135; - reference100 = obj88; - ref QuestSequence reference101 = ref span39[1]; - QuestSequence obj89 = new QuestSequence + obj79.Steps = list119; + reference90 = obj79; + num++; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1047092u, new Vector3(297.38306f, -33.02986f, 284.99268f), 138) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047092u, new Vector3(297.38306f, -33.02986f, 284.99268f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - obj89.Steps = list136; - reference101 = obj89; - ref QuestSequence reference102 = ref span39[2]; - QuestSequence obj90 = new QuestSequence + obj80.Steps = list120; + reference91 = obj80; + num++; + ref QuestSequence reference92 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1046297u, new Vector3(211.68835f, -25.006758f, 230.85376f), 138) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046297u, new Vector3(211.68835f, -25.006758f, 230.85376f), 138) { Fly = true }; - obj90.Steps = list137; - reference102 = obj90; - ref QuestSequence reference103 = ref span39[3]; - QuestSequence obj91 = new QuestSequence + obj81.Steps = list121; + reference92 = obj81; + num++; + ref QuestSequence reference93 = ref span2[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 3 }; 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) + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; + QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(465.86716f, 11.231914f, 326.10486f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span40 = CollectionsMarshal.AsSpan(list139); - span40[0] = 17612u; - span40[1] = 17613u; - obj92.KillEnemyDataIds = list139; - reference104 = obj92; - obj91.Steps = list138; - reference103 = obj91; - ref QuestSequence reference105 = ref span39[4]; - QuestSequence obj93 = new QuestSequence + num4 = 2; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + span6 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span6[num3] = 17612u; + num3++; + span6[num3] = 17613u; + obj83.KillEnemyDataIds = list123; + reference94 = obj83; + obj82.Steps = list122; + reference93 = obj82; + num++; + ref QuestSequence reference95 = ref span2[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1046302u, new Vector3(465.50684f, 11.444184f, 330.89185f), 138) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046302u, new Vector3(465.50684f, 11.444184f, 330.89185f), 138) { StopDistance = 7f }; - obj93.Steps = list140; - reference105 = obj93; - ref QuestSequence reference106 = ref span39[5]; - QuestSequence obj94 = new QuestSequence + obj84.Steps = list124; + reference95 = obj84; + num++; + ref QuestSequence reference96 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Action, 1046303u, new Vector3(462.39404f, 11.569952f, 329.57947f), 138) + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, 1046303u, new Vector3(462.39404f, 11.569952f, 329.57947f), 138) { StopDistance = 10f, Action = EAction.Esuna }; - obj94.Steps = list141; - reference106 = obj94; - ref QuestSequence reference107 = ref span39[6]; - QuestSequence obj95 = new QuestSequence + obj85.Steps = list125; + reference96 = obj85; + num++; + ref QuestSequence reference97 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4826) }; - obj95.Steps = list142; - reference107 = obj95; - questRoot17.QuestSequence = list134; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(4826); - QuestRoot questRoot18 = new QuestRoot(); + obj86.Steps = list126; + reference97 = obj86; + questRoot14.QuestSequence = list118; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(4826); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; - questRoot18.Author = list143; - num = 6; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span41 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference108 = ref span41[0]; - QuestSequence obj96 = new QuestSequence + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + span = CollectionsMarshal.AsSpan(list127); + index = 0; + span[index] = "liza"; + questRoot15.Author = list127; + index = 6; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + span2 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference98 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -329754,110 +397600,321 @@ public static class AssemblyQuestLoader } } }; - obj96.Steps = list145; - reference108 = obj96; - ref QuestSequence reference109 = ref span41[1]; - QuestSequence obj97 = new QuestSequence + obj87.Steps = list129; + reference98 = obj87; + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - obj97.Steps = list146; - reference109 = obj97; - ref QuestSequence reference110 = ref span41[2]; - QuestSequence obj98 = new QuestSequence + obj88.Steps = list130; + reference99 = obj88; + num++; + ref QuestSequence reference100 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1046309u, new Vector3(106.7063f, 22.880846f, 618.4634f), 135) + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046309u, new Vector3(106.7063f, 22.880846f, 618.4634f), 135) { Fly = true }; - obj98.Steps = list147; - reference110 = obj98; - ref QuestSequence reference111 = ref span41[3]; - QuestSequence obj99 = new QuestSequence + obj89.Steps = list131; + reference100 = obj89; + num++; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1046308u, new Vector3(217.39526f, 14.096056f, 658.7776f), 135) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046308u, new Vector3(217.39526f, 14.096056f, 658.7776f), 135) { Fly = true }; - obj99.Steps = list148; - reference111 = obj99; - ref QuestSequence reference112 = ref span41[4]; - QuestSequence obj100 = new QuestSequence + obj90.Steps = list132; + reference101 = obj90; + num++; + ref QuestSequence reference102 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 4 }; 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); + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference103 = ref span3[index2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135); num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + span5 = CollectionsMarshal.AsSpan(list134); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA221_04826_Q1_000_048"), Answer = new ExcelRef("TEXT_KINGBA221_04826_A1_000_002") }; - questStep13.DialogueChoices = list150; - reference113 = questStep13; - obj100.Steps = list149; - reference112 = obj100; - ref QuestSequence reference114 = ref span41[5]; - QuestSequence obj101 = new QuestSequence + questStep12.DialogueChoices = list134; + reference103 = questStep12; + obj91.Steps = list133; + reference102 = obj91; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4827) }; - obj101.Steps = list151; - reference114 = obj101; - questRoot18.QuestSequence = list144; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(4827); - QuestRoot questRoot19 = new QuestRoot(); + obj92.Steps = list135; + reference104 = obj92; + questRoot15.QuestSequence = list128; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(4827); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; - questRoot19.Author = list152; - num = 6; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span42 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference115 = ref span42[0]; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "liza"; + questRoot16.Author = list136; + index = 6; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference105 = ref span2[num]; + QuestSequence obj93 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + { + AetheryteShortcut = EAetheryteLocation.Limsa, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj93.Steps = list138; + reference105 = obj93; + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj94 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046310u, new Vector3(268.39087f, -25f, 264.05737f), 138) + { + AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport + }; + obj94.Steps = list139; + reference106 = obj94; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj95 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046311u, new Vector3(384.60352f, 0.14576934f, 74.32666f), 139) + { + AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake + }; + obj95.Steps = list140; + reference107 = obj95; + num++; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj96 = new QuestSequence + { + Sequence = 3 + }; + index2 = 3; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference109 = ref span3[num2]; + QuestStep obj97 = new QuestStep(EInteractionType.Action, 1046314u, new Vector3(457.60278f, 4.1072555f, 103.89868f), 139) + { + Action = EAction.Esuna + }; + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + span4 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj97.CompletionQuestVariablesFlags = list142; + reference109 = obj97; + num2++; + ref QuestStep reference110 = ref span3[num2]; + QuestStep obj98 = new QuestStep(EInteractionType.Action, 1046313u, new Vector3(432.6084f, 8.108173f, 133.80627f), 139) + { + Action = EAction.Esuna + }; + num3 = 6; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + span4 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj98.CompletionQuestVariablesFlags = list143; + reference110 = obj98; + num2++; + ref QuestStep reference111 = ref span3[num2]; + QuestStep obj99 = new QuestStep(EInteractionType.Action, 1046312u, new Vector3(413.0464f, 3.616333f, 113.969604f), 139) + { + Action = EAction.Esuna + }; + num4 = 6; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + span4 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj99.CompletionQuestVariablesFlags = list144; + reference111 = obj99; + obj96.Steps = list141; + reference108 = obj96; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj100 = new QuestSequence + { + Sequence = 4 + }; + num2 = 1; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046316u, new Vector3(415.8236f, 8.12099f, 40.72632f), 139); + obj100.Steps = list145; + reference112 = obj100; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj101 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + { + AetheryteShortcut = EAetheryteLocation.Limsa, + NextQuestId = new QuestId(4828) + }; + obj101.Steps = list146; + reference113 = obj101; + questRoot16.QuestSequence = list137; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(4828); + QuestRoot questRoot17 = new QuestRoot(); + num = 1; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + span = CollectionsMarshal.AsSpan(list147); + index = 0; + span[index] = "liza"; + questRoot17.Author = list147; + index = 8; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + span2 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -329868,205 +397925,66 @@ public static class AssemblyQuestLoader } } }; - obj102.Steps = list154; - reference115 = obj102; - ref QuestSequence reference116 = ref span42[1]; + obj102.Steps = list149; + reference114 = obj102; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1046310u, new Vector3(268.39087f, -25f, 264.05737f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport - }; - obj103.Steps = list155; - reference116 = obj103; - ref QuestSequence reference117 = ref span42[2]; - QuestSequence obj104 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1046311u, new Vector3(384.60352f, 0.14576934f, 74.32666f), 139) - { - AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake - }; - obj104.Steps = list156; - reference117 = obj104; - ref QuestSequence reference118 = ref span42[3]; - QuestSequence obj105 = new QuestSequence - { - Sequence = 3 - }; - num2 = 3; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - 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 - }; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span44 = CollectionsMarshal.AsSpan(list158); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj106.CompletionQuestVariablesFlags = list158; - reference119 = obj106; - 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 - }; - 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; - 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 - }; - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span46 = CollectionsMarshal.AsSpan(list160); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj108.CompletionQuestVariablesFlags = list160; - reference121 = obj108; - obj105.Steps = list157; - reference118 = obj105; - ref QuestSequence reference122 = ref span42[4]; - QuestSequence obj109 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1046316u, new Vector3(415.8236f, 8.12099f, 40.72632f), 139); - obj109.Steps = list161; - reference122 = obj109; - ref QuestSequence reference123 = ref span42[5]; - QuestSequence obj110 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) - { - AetheryteShortcut = EAetheryteLocation.Limsa, - NextQuestId = new QuestId(4828) - }; - obj110.Steps = list162; - reference123 = obj110; - questRoot19.QuestSequence = list153; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(4828); - QuestRoot questRoot20 = new QuestRoot(); - num = 1; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; - questRoot20.Author = list163; - num = 8; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span47 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference124 = ref span47[0]; - QuestSequence obj111 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) - { - AetheryteShortcut = EAetheryteLocation.Limsa, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj111.Steps = list165; - reference124 = obj111; - ref QuestSequence reference125 = ref span47[1]; - QuestSequence obj112 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list166)[0]; - QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference116 = ref span3[num2]; + QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span5 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA241_04828_Q1_000_013"), Answer = new ExcelRef("TEXT_KINGBA241_04828_A1_000_001") }; - obj113.DialogueChoices = list167; - reference126 = obj113; - obj112.Steps = list166; - reference125 = obj112; - ref QuestSequence reference127 = ref span47[2]; - QuestSequence obj114 = new QuestSequence + obj104.DialogueChoices = list151; + reference116 = obj104; + obj103.Steps = list150; + reference115 = obj103; + num++; + ref QuestSequence reference117 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137); - obj114.Steps = list168; - reference127 = obj114; - ref QuestSequence reference128 = ref span47[3]; - QuestSequence obj115 = new QuestSequence + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137); + obj105.Steps = list152; + reference117 = obj105; + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list169)[0]; - QuestStep obj116 = new QuestStep(EInteractionType.Combat, 2013561u, new Vector3(-220.44714f, 35.78235f, 268.05518f), 137) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference119 = ref span3[num2]; + QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2013561u, new Vector3(-220.44714f, 35.78235f, 268.05518f), 137) { StopDistance = 0.25f, Fly = true, @@ -330074,90 +397992,110 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span48 = CollectionsMarshal.AsSpan(list170); - span48[0] = 17614u; - span48[1] = 17615u; - span48[2] = 17616u; - obj116.KillEnemyDataIds = list170; - reference129 = obj116; - obj115.Steps = list169; - reference128 = obj115; - ref QuestSequence reference130 = ref span47[4]; - QuestSequence obj117 = new QuestSequence + num4 = 3; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + span6 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span6[num3] = 17614u; + num3++; + span6[num3] = 17615u; + num3++; + span6[num3] = 17616u; + obj107.KillEnemyDataIds = list154; + reference119 = obj107; + obj106.Steps = list153; + reference118 = obj106; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); - obj117.Steps = list171; - reference130 = obj117; - ref QuestSequence reference131 = ref span47[5]; - QuestSequence obj118 = new QuestSequence + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); + obj108.Steps = list155; + reference120 = obj108; + num++; + ref QuestSequence reference121 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); - obj118.Steps = list172; - reference131 = obj118; - ref QuestSequence reference132 = ref span47[6]; - QuestSequence obj119 = new QuestSequence + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); + obj109.Steps = list156; + reference121 = obj109; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - obj119.Steps = list173; - reference132 = obj119; - ref QuestSequence reference133 = ref span47[7]; - QuestSequence obj120 = new QuestSequence + obj110.Steps = list157; + reference122 = obj110; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4829) }; - obj120.Steps = list174; - reference133 = obj120; - questRoot20.QuestSequence = list164; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(4829); - QuestRoot questRoot21 = new QuestRoot(); + obj111.Steps = list158; + reference123 = obj111; + questRoot17.QuestSequence = list148; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(4829); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; - questRoot21.Author = list175; - num = 7; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span49 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference134 = ref span49[0]; - QuestSequence obj121 = new QuestSequence + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + span = CollectionsMarshal.AsSpan(list159); + index = 0; + span[index] = "liza"; + questRoot18.Author = list159; + index = 7; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + span2 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -330168,74 +398106,90 @@ public static class AssemblyQuestLoader } } }; - obj121.Steps = list177; - reference134 = obj121; - ref QuestSequence reference135 = ref span49[1]; - QuestSequence obj122 = new QuestSequence + obj112.Steps = list161; + reference124 = obj112; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - obj122.Steps = list178; - reference135 = obj122; - ref QuestSequence reference136 = ref span49[2]; - QuestSequence obj123 = new QuestSequence + obj113.Steps = list162; + reference125 = obj113; + num++; + ref QuestSequence reference126 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137); - obj123.Steps = list179; - reference136 = obj123; - span49[3] = new QuestSequence + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137); + obj114.Steps = list163; + reference126 = obj114; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference137 = ref span49[4]; - QuestSequence obj124 = new QuestSequence + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) { StopDistance = 5f }; - obj124.Steps = list180; - reference137 = obj124; - ref QuestSequence reference138 = ref span49[5]; - QuestSequence obj125 = new QuestSequence + obj115.Steps = list164; + reference127 = obj115; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1046320u, new Vector3(267.01758f, -25f, 264.88135f), 138) + List list165 = new List(num2); + CollectionsMarshal.SetCount(list165, num2); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046320u, new Vector3(267.01758f, -25f, 264.88135f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - obj125.Steps = list181; - reference138 = obj125; - ref QuestSequence reference139 = ref span49[6]; - QuestSequence obj126 = new QuestSequence + obj116.Steps = list165; + reference128 = obj116; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -330244,30 +398198,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj126.Steps = list182; - reference139 = obj126; - questRoot21.QuestSequence = list176; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(4830); - QuestRoot questRoot22 = new QuestRoot(); + obj117.Steps = list166; + reference129 = obj117; + questRoot18.QuestSequence = list160; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(4830); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; - questRoot22.Author = list183; - num = 7; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span50 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference140 = ref span50[0]; - QuestSequence obj127 = new QuestSequence + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + span = CollectionsMarshal.AsSpan(list167); + index = 0; + span[index] = "liza"; + questRoot19.Author = list167; + index = 7; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + span2 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -330278,19 +398237,21 @@ public static class AssemblyQuestLoader } } }; - obj127.Steps = list185; - reference140 = obj127; - ref QuestSequence reference141 = ref span50[1]; - QuestSequence obj128 = new QuestSequence + obj118.Steps = list169; + reference130 = obj118; + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - 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) + index2 = 3; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference132 = ref span3[num2]; + QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1019038u, new Vector3(-55.222473f, -2.9000003f, -65.65961f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330307,78 +398268,107 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - Span span52 = CollectionsMarshal.AsSpan(list187); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj129.CompletionQuestVariablesFlags = list187; - reference142 = obj129; - ref QuestStep reference143 = ref span51[1]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1019003u, new Vector3(-41.24518f, -3.0000017f, -63.09613f), 628); + List list171 = new List(num3); + CollectionsMarshal.SetCount(list171, num3); + span4 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj120.CompletionQuestVariablesFlags = list171; + reference132 = obj120; + num2++; + ref QuestStep reference133 = ref span3[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019003u, new Vector3(-41.24518f, -3.0000017f, -63.09613f), 628); + num4 = 6; + List list172 = new List(num4); + CollectionsMarshal.SetCount(list172, num4); + span4 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list172; + reference133 = questStep13; + num2++; + ref QuestStep reference134 = ref span3[num2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1019069u, new Vector3(-62.119568f, 8f, -56.62628f), 628); num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span53 = CollectionsMarshal.AsSpan(list188); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list188; - reference143 = questStep14; - ref QuestStep reference144 = ref span51[2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019069u, new Vector3(-62.119568f, 8f, -56.62628f), 628); - num3 = 6; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span54 = CollectionsMarshal.AsSpan(list189); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list189; - reference144 = questStep15; - obj128.Steps = list186; - reference141 = obj128; - ref QuestSequence reference145 = ref span50[2]; - QuestSequence obj130 = new QuestSequence + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + span4 = CollectionsMarshal.AsSpan(list173); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep14.CompletionQuestVariablesFlags = list173; + reference134 = questStep14; + obj119.Steps = list170; + reference131 = obj119; + num++; + ref QuestSequence reference135 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1051620u, new Vector3(111.40613f, 11.997255f, -52.048523f), 628); - obj130.Steps = list190; - reference145 = obj130; - ref QuestSequence reference146 = ref span50[3]; - QuestSequence obj131 = new QuestSequence + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051620u, new Vector3(111.40613f, 11.997255f, -52.048523f), 628); + obj121.Steps = list174; + reference135 = obj121; + num++; + ref QuestSequence reference136 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628); - obj131.Steps = list191; - reference146 = obj131; - ref QuestSequence reference147 = ref span50[4]; - QuestSequence obj132 = new QuestSequence + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628); + obj122.Steps = list175; + reference136 = obj122; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 2013689u, new Vector3(29.251465f, 5.935669f, -129.62543f), 628) + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013689u, new Vector3(29.251465f, 5.935669f, -129.62543f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330386,17 +398376,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRakuzaDistrict } }; - obj132.Steps = list192; - reference147 = obj132; - ref QuestSequence reference148 = ref span50[5]; - QuestSequence obj133 = new QuestSequence + obj123.Steps = list176; + reference137 = obj123; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 2013690u, new Vector3(14.114502f, 3.982544f, 43.411865f), 628) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013690u, new Vector3(14.114502f, 3.982544f, 43.411865f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330404,17 +398397,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - obj133.Steps = list193; - reference148 = obj133; - ref QuestSequence reference149 = ref span50[6]; - QuestSequence obj134 = new QuestSequence + obj124.Steps = list177; + reference138 = obj124; + num++; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330423,31 +398419,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4831) }; - obj134.Steps = list194; - reference149 = obj134; - questRoot22.QuestSequence = list184; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(4831); - QuestRoot questRoot23 = new QuestRoot(); + obj125.Steps = list178; + reference139 = obj125; + questRoot19.QuestSequence = list168; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(4831); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "liza"; - questRoot23.Author = list195; - num = 6; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span55 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference150 = ref span55[0]; - QuestSequence obj135 = new QuestSequence + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + span = CollectionsMarshal.AsSpan(list179); + index = 0; + span[index] = "liza"; + questRoot20.Author = list179; + index = 6; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + span2 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list197)[0]; - QuestStep obj136 = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + span3 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference141 = ref span3[num2]; + QuestStep obj127 = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330458,28 +398459,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + num4 = 1; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + span5 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA311_04831_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBA311_04831_A2_000_002") }; - obj136.DialogueChoices = list198; - reference151 = obj136; - obj135.Steps = list197; - reference150 = obj135; - ref QuestSequence reference152 = ref span55[1]; - QuestSequence obj137 = new QuestSequence + obj127.DialogueChoices = list182; + reference141 = obj127; + obj126.Steps = list181; + reference140 = obj126; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + span3 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) { AethernetShortcut = new AethernetShortcut { @@ -330487,83 +398493,107 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - obj137.Steps = list199; - reference152 = obj137; - ref QuestSequence reference153 = ref span55[2]; - QuestSequence obj138 = new QuestSequence + obj128.Steps = list183; + reference142 = obj128; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - 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); + index2 = 2; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference144 = ref span3[num2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019169u, new Vector3(476.82898f, 30.113333f, 763.546f), 613); num3 = 6; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - Span span57 = CollectionsMarshal.AsSpan(list201); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list201; - reference154 = questStep16; - 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 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; - ref QuestSequence reference156 = ref span55[3]; - QuestSequence obj139 = new QuestSequence + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + span4 = CollectionsMarshal.AsSpan(list185); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list185; + reference144 = questStep15; + num2++; + ref QuestStep reference145 = ref span3[num2]; + QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1019167u, new Vector3(447.56226f, 34.29651f, 732.66187f), 613); + num4 = 6; + List list186 = new List(num4); + CollectionsMarshal.SetCount(list186, num4); + span4 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list186; + reference145 = questStep16; + obj129.Steps = list184; + reference143 = obj129; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1048299u, new Vector3(463.46216f, 29.787891f, 736.8428f), 613); - obj139.Steps = list203; - reference156 = obj139; - ref QuestSequence reference157 = ref span55[4]; - QuestSequence obj140 = new QuestSequence + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048299u, new Vector3(463.46216f, 29.787891f, 736.8428f), 613); + obj130.Steps = list187; + reference146 = obj130; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span59 = CollectionsMarshal.AsSpan(list204); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(426.16245f, 0.7213422f, 195.08597f), 613) + index2 = 2; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(426.16245f, 0.7213422f, 195.08597f), 613) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 1048301u, new Vector3(427.78674f, 0.5689501f, 195.39172f), 613); - obj140.Steps = list204; - reference157 = obj140; - ref QuestSequence reference158 = ref span55[5]; - QuestSequence obj141 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048301u, new Vector3(427.78674f, 0.5689501f, 195.39172f), 613); + obj131.Steps = list188; + reference147 = obj131; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330573,30 +398603,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4832) }; - obj141.Steps = list205; - reference158 = obj141; - questRoot23.QuestSequence = list196; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(4832); - QuestRoot questRoot24 = new QuestRoot(); + obj132.Steps = list189; + reference148 = obj132; + questRoot20.QuestSequence = list180; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(4832); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; - questRoot24.Author = list206; - num = 5; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span60 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference159 = ref span60[0]; - QuestSequence obj142 = new QuestSequence + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; + questRoot21.Author = list190; + index = 5; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330607,19 +398642,21 @@ public static class AssemblyQuestLoader } } }; - obj142.Steps = list208; - reference159 = obj142; - ref QuestSequence reference160 = ref span60[1]; - QuestSequence obj143 = new QuestSequence + obj133.Steps = list192; + reference149 = obj133; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span61 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference161 = ref span61[0]; - QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1019260u, new Vector3(417.5935f, 68.02854f, -110.24652f), 614) + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + ref QuestStep reference151 = ref span3[index2]; + QuestStep obj135 = new QuestStep(EInteractionType.Interact, 1019260u, new Vector3(417.5935f, 68.02854f, -110.24652f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -330631,85 +398668,114 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span62 = CollectionsMarshal.AsSpan(list210); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj144.CompletionQuestVariablesFlags = list210; - reference161 = obj144; - ref QuestStep reference162 = ref span61[1]; - QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1019257u, new Vector3(468.55872f, 68.02771f, -93.21747f), 614); + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + span4 = CollectionsMarshal.AsSpan(list194); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj135.CompletionQuestVariablesFlags = list194; + reference151 = obj135; + index2++; + ref QuestStep reference152 = ref span3[index2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1019257u, new Vector3(468.55872f, 68.02771f, -93.21747f), 614); + num4 = 6; + List list195 = new List(num4); + CollectionsMarshal.SetCount(list195, num4); + span4 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list195; + reference152 = questStep17; + index2++; + ref QuestStep reference153 = ref span3[index2]; + QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614); num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span63 = CollectionsMarshal.AsSpan(list211); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list211; - reference162 = questStep18; - ref QuestStep reference163 = ref span61[2]; - QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614); - num3 = 6; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span64 = CollectionsMarshal.AsSpan(list212); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list212; - reference163 = questStep19; - obj143.Steps = list209; - reference160 = obj143; - ref QuestSequence reference164 = ref span60[2]; - QuestSequence obj145 = new QuestSequence + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + span4 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list196; + reference153 = questStep18; + obj134.Steps = list193; + reference150 = obj134; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1048302u, new Vector3(399.95422f, 76.04927f, -114.885254f), 614) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048302u, new Vector3(399.95422f, 76.04927f, -114.885254f), 614) { StopDistance = 0.5f, Fly = true }; - obj145.Steps = list213; - reference164 = obj145; - ref QuestSequence reference165 = ref span60[3]; - QuestSequence obj146 = new QuestSequence + obj136.Steps = list197; + reference154 = obj136; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1048304u, new Vector3(421.3473f, 1.7278045f, -278.70605f), 614) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048304u, new Vector3(421.3473f, 1.7278045f, -278.70605f), 614) { Fly = true }; - obj146.Steps = list214; - reference165 = obj146; - ref QuestSequence reference166 = ref span60[4]; - QuestSequence obj147 = new QuestSequence + obj137.Steps = list198; + reference155 = obj137; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330719,30 +398785,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4833) }; - obj147.Steps = list215; - reference166 = obj147; - questRoot24.QuestSequence = list207; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(4833); - QuestRoot questRoot25 = new QuestRoot(); + obj138.Steps = list199; + reference156 = obj138; + questRoot21.QuestSequence = list191; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(4833); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; - questRoot25.Author = list216; - num = 5; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span65 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference167 = ref span65[0]; - QuestSequence obj148 = new QuestSequence + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + span = CollectionsMarshal.AsSpan(list200); + index = 0; + span[index] = "liza"; + questRoot22.Author = list200; + index = 5; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + span2 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330753,17 +398824,20 @@ public static class AssemblyQuestLoader } } }; - obj148.Steps = list218; - reference167 = obj148; - ref QuestSequence reference168 = ref span65[1]; - QuestSequence obj149 = new QuestSequence + obj139.Steps = list202; + reference157 = obj139; + num++; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 2013691u, new Vector3(203.8147f, 12.069824f, 773.0067f), 613) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013691u, new Vector3(203.8147f, 12.069824f, 773.0067f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -330772,56 +398846,68 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - obj149.Steps = list219; - reference168 = obj149; - ref QuestSequence reference169 = ref span65[2]; - QuestSequence obj150 = new QuestSequence + obj140.Steps = list203; + reference158 = obj140; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 2 }; 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) + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference160 = ref span3[index2]; + QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2013692u, new Vector3(138.59766f, 9.292725f, 676.6002f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span66 = CollectionsMarshal.AsSpan(list221); - span66[0] = 17617u; - span66[1] = 17618u; - span66[2] = 17619u; - obj151.KillEnemyDataIds = list221; - reference170 = obj151; - obj150.Steps = list220; - reference169 = obj150; - ref QuestSequence reference171 = ref span65[3]; - QuestSequence obj152 = new QuestSequence + num4 = 3; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + span6 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span6[num3] = 17617u; + num3++; + span6[num3] = 17618u; + num3++; + span6[num3] = 17619u; + obj142.KillEnemyDataIds = list205; + reference160 = obj142; + obj141.Steps = list204; + reference159 = obj141; + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2013693u, new Vector3(167.89502f, 2.1209717f, 561.27246f), 613) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013693u, new Vector3(167.89502f, 2.1209717f, 561.27246f), 613) { Fly = true }; - obj152.Steps = list222; - reference171 = obj152; - ref QuestSequence reference172 = ref span65[4]; - QuestSequence obj153 = new QuestSequence + obj143.Steps = list206; + reference161 = obj143; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330831,30 +398917,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4834) }; - obj153.Steps = list223; - reference172 = obj153; - questRoot25.QuestSequence = list217; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(4834); - QuestRoot questRoot26 = new QuestRoot(); + obj144.Steps = list207; + reference162 = obj144; + questRoot22.QuestSequence = list201; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(4834); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; - questRoot26.Author = list224; - num = 7; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span67 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference173 = ref span67[0]; - QuestSequence obj154 = new QuestSequence + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + span = CollectionsMarshal.AsSpan(list208); + index = 0; + span[index] = "liza"; + questRoot23.Author = list208; + index = 7; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + span2 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref QuestSequence reference163 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330865,18 +398956,20 @@ public static class AssemblyQuestLoader } } }; - obj154.Steps = list226; - reference173 = obj154; - ref QuestSequence reference174 = ref span67[1]; - QuestSequence obj155 = new QuestSequence + obj145.Steps = list210; + reference163 = obj145; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span68 = CollectionsMarshal.AsSpan(list227); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(42.052795f, 4.000001f, 71.14965f), 628) + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(42.052795f, 4.000001f, 71.14965f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330884,66 +398977,81 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - span68[1] = new QuestStep(EInteractionType.Interact, 1018984u, new Vector3(42.34375f, 4.8365364f, 73.83838f), 628); - obj155.Steps = list227; - reference174 = obj155; - ref QuestSequence reference175 = ref span67[2]; - QuestSequence obj156 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1018984u, new Vector3(42.34375f, 4.8365364f, 73.83838f), 628); + obj146.Steps = list211; + reference164 = obj146; + num++; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); - obj156.Steps = list228; - reference175 = obj156; - ref QuestSequence reference176 = ref span67[3]; - QuestSequence obj157 = new QuestSequence + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); + obj147.Steps = list212; + reference165 = obj147; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.UseItem, 2013694u, new Vector3(517.2654f, 0.99176025f, -692.10345f), 613) + List list213 = new List(num2); + CollectionsMarshal.SetCount(list213, num2); + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013694u, new Vector3(517.2654f, 0.99176025f, -692.10345f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, ItemId = 2003492u }; - obj157.Steps = list229; - reference176 = obj157; - ref QuestSequence reference177 = ref span67[4]; - QuestSequence obj158 = new QuestSequence + obj148.Steps = list213; + reference166 = obj148; + num++; + ref QuestSequence reference167 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list230)[0]; - QuestStep obj159 = new QuestStep(EInteractionType.Combat, 2013695u, new Vector3(519.76794f, 0.99176025f, -679.8352f), 613) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + span3 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref QuestStep reference168 = ref span3[num2]; + QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2013695u, new Vector3(519.76794f, 0.99176025f, -679.8352f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 17620u; - obj159.KillEnemyDataIds = list231; - reference178 = obj159; - obj158.Steps = list230; - reference177 = obj158; - ref QuestSequence reference179 = ref span67[5]; - QuestSequence obj160 = new QuestSequence + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + span6 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span6[num4] = 17620u; + obj150.KillEnemyDataIds = list215; + reference168 = obj150; + obj149.Steps = list214; + reference167 = obj149; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628) + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330959,44 +399067,52 @@ public static class AssemblyQuestLoader } } }; - obj160.Steps = list232; - reference179 = obj160; - ref QuestSequence reference180 = ref span67[6]; - QuestSequence obj161 = new QuestSequence + obj151.Steps = list216; + reference169 = obj151; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { NextQuestId = new QuestId(4835) }; - obj161.Steps = list233; - reference180 = obj161; - questRoot26.QuestSequence = list225; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(4835); - QuestRoot questRoot27 = new QuestRoot(); + obj152.Steps = list217; + reference170 = obj152; + questRoot23.QuestSequence = list209; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(4835); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; - questRoot27.Author = list234; - num = 7; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span69 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference181 = ref span69[0]; - QuestSequence obj162 = new QuestSequence + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; + questRoot24.Author = list218; + index = 7; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -331007,19 +399123,21 @@ public static class AssemblyQuestLoader } } }; - obj162.Steps = list236; - reference181 = obj162; - ref QuestSequence reference182 = ref span69[1]; - QuestSequence obj163 = new QuestSequence + obj153.Steps = list220; + reference171 = obj153; + num++; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - 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) + index2 = 3; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference173 = ref span3[num2]; + QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1019350u, new Vector3(563.2562f, -19.505632f, 319.11182f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -331030,97 +399148,130 @@ public static class AssemblyQuestLoader } } }; + num4 = 6; + List list222 = new List(num4); + CollectionsMarshal.SetCount(list222, num4); + span4 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj155.CompletionQuestVariablesFlags = list222; + reference173 = obj155; + num2++; + ref QuestStep reference174 = ref span3[num2]; + QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1019351u, new Vector3(548.8822f, -19.505648f, 295.1858f), 622); num3 = 6; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - Span span71 = CollectionsMarshal.AsSpan(list238); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj164.CompletionQuestVariablesFlags = list238; - reference183 = obj164; - ref QuestStep reference184 = ref span70[1]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019351u, new Vector3(548.8822f, -19.505648f, 295.1858f), 622); - num3 = 6; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span72 = CollectionsMarshal.AsSpan(list239); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list239; - reference184 = questStep20; - 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 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; - ref QuestSequence reference186 = ref span69[2]; - QuestSequence obj165 = new QuestSequence + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + span4 = CollectionsMarshal.AsSpan(list223); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list223; + reference174 = questStep19; + num2++; + ref QuestStep reference175 = ref span3[num2]; + QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622); + num4 = 6; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + span4 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep20.CompletionQuestVariablesFlags = list224; + reference175 = questStep20; + obj154.Steps = list221; + reference172 = obj154; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622) + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622) { Fly = true }; - obj165.Steps = list241; - reference186 = obj165; - ref QuestSequence reference187 = ref span69[3]; - QuestSequence obj166 = new QuestSequence + obj156.Steps = list225; + reference176 = obj156; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622); - obj166.Steps = list242; - reference187 = obj166; - span69[4] = new QuestSequence + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622); + obj157.Steps = list226; + reference177 = obj157; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference188 = ref span69[5]; - QuestSequence obj167 = new QuestSequence + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1048307u, new Vector3(-494.56018f, 71.630486f, -518.9441f), 622); - obj167.Steps = list243; - reference188 = obj167; - ref QuestSequence reference189 = ref span69[6]; - QuestSequence obj168 = new QuestSequence + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048307u, new Vector3(-494.56018f, 71.630486f, -518.9441f), 622); + obj158.Steps = list227; + reference178 = obj158; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -331129,30 +399280,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj168.Steps = list244; - reference189 = obj168; - questRoot27.QuestSequence = list235; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(4836); - QuestRoot questRoot28 = new QuestRoot(); + obj159.Steps = list228; + reference179 = obj159; + questRoot24.QuestSequence = list219; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(4836); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; - questRoot28.Author = list245; - num = 4; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span74 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference190 = ref span74[0]; - QuestSequence obj169 = new QuestSequence + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + span = CollectionsMarshal.AsSpan(list229); + index = 0; + span[index] = "liza"; + questRoot25.Author = list229; + index = 4; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + span2 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -331163,116 +399319,149 @@ public static class AssemblyQuestLoader } } }; - obj169.Steps = list247; - reference190 = obj169; - ref QuestSequence reference191 = ref span74[1]; - QuestSequence obj170 = new QuestSequence + obj160.Steps = list231; + reference180 = obj160; + num++; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - 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) + index2 = 3; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference182 = ref span3[num2]; + QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1020193u, new Vector3(26.108154f, 0f, 25.253662f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; num3 = 6; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span76 = CollectionsMarshal.AsSpan(list249); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj171.CompletionQuestVariablesFlags = list249; - reference192 = obj171; - ref QuestStep reference193 = ref span75[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1019483u, new Vector3(-37.521973f, 1.2530026f, 36.301147f), 635); + List list233 = new List(num3); + CollectionsMarshal.SetCount(list233, num3); + span4 = CollectionsMarshal.AsSpan(list233); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj162.CompletionQuestVariablesFlags = list233; + reference182 = obj162; + num2++; + ref QuestStep reference183 = ref span3[num2]; + QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1019483u, new Vector3(-37.521973f, 1.2530026f, 36.301147f), 635); + num4 = 6; + List list234 = new List(num4); + CollectionsMarshal.SetCount(list234, num4); + span4 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list234; + reference183 = questStep21; + num2++; + ref QuestStep reference184 = ref span3[num2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1019484u, new Vector3(-66.5141f, -5.9571908E-15f, -22.964844f), 635); num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span77 = CollectionsMarshal.AsSpan(list250); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list250; - reference193 = questStep22; - ref QuestStep reference194 = ref span75[2]; - QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1019484u, new Vector3(-66.5141f, -5.9571908E-15f, -22.964844f), 635); - num3 = 6; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span78 = CollectionsMarshal.AsSpan(list251); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list251; - reference194 = questStep23; - obj170.Steps = list248; - reference191 = obj170; - ref QuestSequence reference195 = ref span74[2]; - QuestSequence obj172 = new QuestSequence + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + span4 = CollectionsMarshal.AsSpan(list235); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep22.CompletionQuestVariablesFlags = list235; + reference184 = questStep22; + obj161.Steps = list232; + reference181 = obj161; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1048311u, new Vector3(460.86804f, 41.92747f, 335.10327f), 612) + List list236 = new List(num2); + CollectionsMarshal.SetCount(list236, num2); + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048311u, new Vector3(460.86804f, 41.92747f, 335.10327f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - obj172.Steps = list252; - reference195 = obj172; - ref QuestSequence reference196 = ref span74[3]; - QuestSequence obj173 = new QuestSequence + obj163.Steps = list236; + reference185 = obj163; + num++; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(4837) }; - obj173.Steps = list253; - reference196 = obj173; - questRoot28.QuestSequence = list246; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(4837); - QuestRoot questRoot29 = new QuestRoot(); + obj164.Steps = list237; + reference186 = obj164; + questRoot25.QuestSequence = list230; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(4837); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; - questRoot29.Author = list254; - num = 6; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span79 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference197 = ref span79[0]; - QuestSequence obj174 = new QuestSequence + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "liza"; + questRoot26.Author = list238; + index = 6; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + span2 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) + List list240 = new List(num2); + CollectionsMarshal.SetCount(list240, num2); + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -331283,111 +399472,134 @@ public static class AssemblyQuestLoader } } }; - obj174.Steps = list256; - reference197 = obj174; - ref QuestSequence reference198 = ref span79[1]; - QuestSequence obj175 = new QuestSequence + obj165.Steps = list240; + reference187 = obj165; + num++; + ref QuestSequence reference188 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1048313u, new Vector3(-621.973f, 41.999973f, -2.02948f), 621) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048313u, new Vector3(-621.973f, 41.999973f, -2.02948f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - obj175.Steps = list257; - reference198 = obj175; - ref QuestSequence reference199 = ref span79[2]; - QuestSequence obj176 = new QuestSequence + obj166.Steps = list241; + reference188 = obj166; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) + List list242 = new List(num2); + CollectionsMarshal.SetCount(list242, num2); + span3 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) { Fly = true }; - obj176.Steps = list258; - reference199 = obj176; - ref QuestSequence reference200 = ref span79[3]; - QuestSequence obj177 = new QuestSequence + obj167.Steps = list242; + reference189 = obj167; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list259)[0]; - QuestStep obj178 = new QuestStep(EInteractionType.Combat, 2013705u, new Vector3(-379.0799f, 6.149353f, -83.237976f), 621) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref QuestStep reference191 = ref span3[num2]; + QuestStep obj169 = new QuestStep(EInteractionType.Combat, 2013705u, new Vector3(-379.0799f, 6.149353f, -83.237976f), 621) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span80 = CollectionsMarshal.AsSpan(list260); - span80[0] = 17621u; - span80[1] = 17622u; - span80[2] = 17623u; - obj178.KillEnemyDataIds = list260; - reference201 = obj178; - obj177.Steps = list259; - reference200 = obj177; - ref QuestSequence reference202 = ref span79[4]; - QuestSequence obj179 = new QuestSequence + num4 = 3; + List list244 = new List(num4); + CollectionsMarshal.SetCount(list244, num4); + span6 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span6[num3] = 17621u; + num3++; + span6[num3] = 17622u; + num3++; + span6[num3] = 17623u; + obj169.KillEnemyDataIds = list244; + reference191 = obj169; + obj168.Steps = list243; + reference190 = obj168; + num++; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) { Fly = true }; - obj179.Steps = list261; - reference202 = obj179; - ref QuestSequence reference203 = ref span79[5]; - QuestSequence obj180 = new QuestSequence + obj170.Steps = list245; + reference192 = obj170; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, NextQuestId = new QuestId(4838) }; - obj180.Steps = list262; - reference203 = obj180; - questRoot29.QuestSequence = list255; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(4838); - QuestRoot questRoot30 = new QuestRoot(); + obj171.Steps = list246; + reference193 = obj171; + questRoot26.QuestSequence = list239; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(4838); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; - questRoot30.Author = list263; - num = 6; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span81 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference204 = ref span81[0]; - QuestSequence obj181 = new QuestSequence + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "liza"; + questRoot27.Author = list247; + index = 6; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -331398,153 +399610,181 @@ public static class AssemblyQuestLoader } } }; - obj181.Steps = list265; - reference204 = obj181; - ref QuestSequence reference205 = ref span81[1]; - QuestSequence obj182 = new QuestSequence + obj172.Steps = list249; + reference194 = obj172; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1048316u, new Vector3(-537.3159f, 8.282911f, 11.612061f), 621) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048316u, new Vector3(-537.3159f, 8.282911f, 11.612061f), 621) { Fly = true }; - obj182.Steps = list266; - reference205 = obj182; - ref QuestSequence reference206 = ref span81[2]; - QuestSequence obj183 = new QuestSequence + obj173.Steps = list250; + reference195 = obj173; + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1048317u, new Vector3(-281.48322f, 263.00684f, 633.8445f), 620) + List list251 = new List(num2); + CollectionsMarshal.SetCount(list251, num2); + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048317u, new Vector3(-281.48322f, 263.00684f, 633.8445f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - obj183.Steps = list267; - reference206 = obj183; - ref QuestSequence reference207 = ref span81[3]; - QuestSequence obj184 = new QuestSequence + obj174.Steps = list251; + reference196 = obj174; + num++; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 10; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span82 = CollectionsMarshal.AsSpan(list268); - span82[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-232.29796f, 264.9192f, 613.139f), 620) + index2 = 10; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-232.29796f, 264.9192f, 613.139f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-241.38339f, 264.6151f, 617.0616f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-241.38339f, 264.6151f, 617.0616f), 620) { Mount = false, Sprint = false }; - span82[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-256.2343f, 264.3857f, 607.0586f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-256.2343f, 264.3857f, 607.0586f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.83409f, 265.36874f, 597.0437f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.83409f, 265.36874f, 597.0437f), 620) { Mount = false, Sprint = false }; - span82[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-241.25351f, 264.14194f, 622.3978f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-241.25351f, 264.14194f, 622.3978f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-249.86191f, 264.12744f, 618.1598f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-249.86191f, 264.12744f, 618.1598f), 620) { Mount = false, Sprint = false }; - span82[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-246.00586f, 265.5263f, 587.24493f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-246.00586f, 265.5263f, 587.24493f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.25114f, 265.31882f, 605.55786f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.25114f, 265.31882f, 605.55786f), 620) { Mount = false, Sprint = false }; - span82[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-264.12643f, 263.13184f, 563.91364f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-264.12643f, 263.13184f, 563.91364f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[9] = new QuestStep(EInteractionType.WalkTo, 1048317u, new Vector3(-256.79233f, 264.02664f, 550.90546f), 620) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1048317u, new Vector3(-256.79233f, 264.02664f, 550.90546f), 620) { Mount = false, Sprint = false }; - obj184.Steps = list268; - reference207 = obj184; - ref QuestSequence reference208 = ref span81[4]; - QuestSequence obj185 = new QuestSequence + obj175.Steps = list252; + reference197 = obj175; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1048319u, new Vector3(-311.32983f, 257.52652f, 741.1459f), 620) + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048319u, new Vector3(-311.32983f, 257.52652f, 741.1459f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - obj185.Steps = list269; - reference208 = obj185; - ref QuestSequence reference209 = ref span81[5]; - QuestSequence obj186 = new QuestSequence + obj176.Steps = list253; + reference198 = obj176; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { NextQuestId = new QuestId(4839) }; - obj186.Steps = list270; - reference209 = obj186; - questRoot30.QuestSequence = list264; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(4839); - QuestRoot questRoot31 = new QuestRoot(); + obj177.Steps = list254; + reference199 = obj177; + questRoot27.QuestSequence = list248; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(4839); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; - questRoot31.Author = list271; - num = 7; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span83 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference210 = ref span83[0]; - QuestSequence obj187 = new QuestSequence + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + span = CollectionsMarshal.AsSpan(list255); + index = 0; + span[index] = "liza"; + questRoot28.Author = list255; + index = 7; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + span2 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -331555,139 +399795,170 @@ public static class AssemblyQuestLoader } } }; - obj187.Steps = list273; - reference210 = obj187; - ref QuestSequence reference211 = ref span83[1]; - QuestSequence obj188 = new QuestSequence + obj178.Steps = list257; + reference200 = obj178; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1048320u, new Vector3(135.63745f, 118.27393f, -685.5116f), 620) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048320u, new Vector3(135.63745f, 118.27393f, -685.5116f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - obj188.Steps = list274; - reference211 = obj188; - ref QuestSequence reference212 = ref span83[2]; - QuestSequence obj189 = new QuestSequence + obj179.Steps = list258; + reference201 = obj179; + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) { StopDistance = 5f }; - obj189.Steps = list275; - reference212 = obj189; - ref QuestSequence reference213 = ref span83[3]; - QuestSequence obj190 = new QuestSequence + obj180.Steps = list259; + reference202 = obj180; + num++; + ref QuestSequence reference203 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - 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) + index2 = 2; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; + QuestStep obj182 = new QuestStep(EInteractionType.Combat, null, new Vector3(-88.44731f, 101.93955f, -691.41956f), 620) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 17624u; - obj191.KillEnemyDataIds = list277; - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span85 = CollectionsMarshal.AsSpan(list278); - span85[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; - obj191.CompletionQuestVariablesFlags = list278; - reference214 = obj191; - span84[1] = new QuestStep(EInteractionType.Interact, 2013706u, new Vector3(-83.36011f, 104.6311f, -686.64075f), 620); - obj190.Steps = list276; - reference213 = obj190; - ref QuestSequence reference215 = ref span83[4]; - QuestSequence obj192 = new QuestSequence + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + span6 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span6[num4] = 17624u; + obj182.KillEnemyDataIds = list261; + num4 = 6; + List list262 = new List(num4); + CollectionsMarshal.SetCount(list262, num4); + span4 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span4[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + obj182.CompletionQuestVariablesFlags = list262; + reference204 = obj182; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013706u, new Vector3(-83.36011f, 104.6311f, -686.64075f), 620); + obj181.Steps = list260; + reference203 = obj181; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) + List list263 = new List(num2); + CollectionsMarshal.SetCount(list263, num2); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - obj192.Steps = list279; - reference215 = obj192; - ref QuestSequence reference216 = ref span83[5]; - QuestSequence obj193 = new QuestSequence + obj183.Steps = list263; + reference205 = obj183; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1048323u, new Vector3(55.039307f, 115.59516f, -282.5208f), 620) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048323u, new Vector3(55.039307f, 115.59516f, -282.5208f), 620) { Fly = true }; - obj193.Steps = list280; - reference216 = obj193; - ref QuestSequence reference217 = ref span83[6]; - QuestSequence obj194 = new QuestSequence + obj184.Steps = list264; + reference206 = obj184; + num++; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, NextQuestId = new QuestId(4840) }; - obj194.Steps = list281; - reference217 = obj194; - questRoot31.QuestSequence = list272; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(4840); - QuestRoot questRoot32 = new QuestRoot(); + obj185.Steps = list265; + reference207 = obj185; + questRoot28.QuestSequence = list256; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(4840); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; - questRoot32.Author = list282; - num = 5; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span86 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference218 = ref span86[0]; - QuestSequence obj195 = new QuestSequence + List list266 = new List(num); + CollectionsMarshal.SetCount(list266, num); + span = CollectionsMarshal.AsSpan(list266); + index = 0; + span[index] = "liza"; + questRoot29.Author = list266; + index = 5; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + span2 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -331698,89 +399969,106 @@ public static class AssemblyQuestLoader } } }; - obj195.Steps = list284; - reference218 = obj195; - ref QuestSequence reference219 = ref span86[1]; - QuestSequence obj196 = new QuestSequence + obj186.Steps = list268; + reference208 = obj186; + num++; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + List list269 = new List(num2); + CollectionsMarshal.SetCount(list269, num2); + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - obj196.Steps = list285; - reference219 = obj196; - ref QuestSequence reference220 = ref span86[2]; - QuestSequence obj197 = new QuestSequence + obj187.Steps = list269; + reference209 = obj187; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1048325u, new Vector3(713.5576f, 69.99999f, 617.02905f), 621) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048325u, new Vector3(713.5576f, 69.99999f, 617.02905f), 621) { Fly = true }; - obj197.Steps = list286; - reference220 = obj197; - ref QuestSequence reference221 = ref span86[3]; - QuestSequence obj198 = new QuestSequence + obj188.Steps = list270; + reference210 = obj188; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1048326u, new Vector3(754.5432f, 70f, 583.6727f), 621) + List list271 = new List(num2); + CollectionsMarshal.SetCount(list271, num2); + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048326u, new Vector3(754.5432f, 70f, 583.6727f), 621) { Fly = true }; - obj198.Steps = list287; - reference221 = obj198; - ref QuestSequence reference222 = ref span86[4]; - QuestSequence obj199 = new QuestSequence + obj189.Steps = list271; + reference211 = obj189; + num++; + ref QuestSequence reference212 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + span3 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, NextQuestId = new QuestId(4841) }; - obj199.Steps = list288; - reference222 = obj199; - questRoot32.QuestSequence = list283; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(4841); - QuestRoot questRoot33 = new QuestRoot(); + obj190.Steps = list272; + reference212 = obj190; + questRoot29.QuestSequence = list267; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(4841); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list289 = new List(num); - CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "liza"; - questRoot33.Author = list289; - num = 6; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span87 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference223 = ref span87[0]; - QuestSequence obj200 = new QuestSequence + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; + questRoot30.Author = list273; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + List list275 = new List(num2); + CollectionsMarshal.SetCount(list275, num2); + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -331791,60 +400079,73 @@ public static class AssemblyQuestLoader } } }; - obj200.Steps = list291; - reference223 = obj200; - ref QuestSequence reference224 = ref span87[1]; - QuestSequence obj201 = new QuestSequence + obj191.Steps = list275; + reference213 = obj191; + num++; + ref QuestSequence reference214 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) { Fly = true }; - obj201.Steps = list292; - reference224 = obj201; - ref QuestSequence reference225 = ref span87[2]; - QuestSequence obj202 = new QuestSequence + obj192.Steps = list276; + reference214 = obj192; + num++; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) { Comment = "The Mightiest Shield" }; - obj202.Steps = list293; - reference225 = obj202; - span87[3] = new QuestSequence + obj193.Steps = list277; + reference215 = obj193; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference226 = ref span87[4]; - QuestSequence obj203 = new QuestSequence + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621); - obj203.Steps = list294; - reference226 = obj203; - ref QuestSequence reference227 = ref span87[5]; - QuestSequence obj204 = new QuestSequence + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621); + obj194.Steps = list278; + reference216 = obj194; + num++; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -331853,30 +400154,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj204.Steps = list295; - reference227 = obj204; - questRoot33.QuestSequence = list290; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(4842); - QuestRoot questRoot34 = new QuestRoot(); + obj195.Steps = list279; + reference217 = obj195; + questRoot30.QuestSequence = list274; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(4842); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; - questRoot34.Author = list296; - num = 5; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span88 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference228 = ref span88[0]; - QuestSequence obj205 = new QuestSequence + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "liza"; + questRoot31.Author = list280; + index = 5; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -331887,86 +400193,103 @@ public static class AssemblyQuestLoader } } }; - obj205.Steps = list298; - reference228 = obj205; - ref QuestSequence reference229 = ref span88[1]; - QuestSequence obj206 = new QuestSequence + obj196.Steps = list282; + reference218 = obj196; + num++; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1048335u, new Vector3(-16.739136f, 0.5999997f, -55.10034f), 963) + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048335u, new Vector3(-16.739136f, 0.5999997f, -55.10034f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; - obj206.Steps = list299; - reference229 = obj206; - ref QuestSequence reference230 = ref span88[2]; - QuestSequence obj207 = new QuestSequence + obj197.Steps = list283; + reference219 = obj197; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1048337u, new Vector3(155.87085f, 5.297462f, 618.2803f), 957) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048337u, new Vector3(155.87085f, 5.297462f, 618.2803f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - obj207.Steps = list300; - reference230 = obj207; - ref QuestSequence reference231 = ref span88[3]; - QuestSequence obj208 = new QuestSequence + obj198.Steps = list284; + reference220 = obj198; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 2013708u, new Vector3(48.90515f, 90.22656f, -83.024414f), 957) + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013708u, new Vector3(48.90515f, 90.22656f, -83.024414f), 957) { StopDistance = 0.5f }; - obj208.Steps = list301; - reference231 = obj208; - ref QuestSequence reference232 = ref span88[4]; - QuestSequence obj209 = new QuestSequence + obj199.Steps = list285; + reference221 = obj199; + num++; + ref QuestSequence reference222 = ref span2[num]; + QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { NextQuestId = new QuestId(4843) }; - obj209.Steps = list302; - reference232 = obj209; - questRoot34.QuestSequence = list297; - AddQuest(questId34, questRoot34); - QuestId questId35 = new QuestId(4843); - QuestRoot questRoot35 = new QuestRoot(); + obj200.Steps = list286; + reference222 = obj200; + questRoot31.QuestSequence = list281; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(4843); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "liza"; - questRoot35.Author = list303; - num = 8; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span89 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference233 = ref span89[0]; - QuestSequence obj210 = new QuestSequence + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "liza"; + questRoot32.Author = list287; + index = 8; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference223 = ref span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -331977,31 +400300,37 @@ public static class AssemblyQuestLoader } } }; - obj210.Steps = list305; - reference233 = obj210; - ref QuestSequence reference234 = ref span89[1]; - QuestSequence obj211 = new QuestSequence + obj201.Steps = list289; + reference223 = obj201; + num++; + ref QuestSequence reference224 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; - obj211.Steps = list306; - reference234 = obj211; - ref QuestSequence reference235 = ref span89[2]; - QuestSequence obj212 = new QuestSequence + obj202.Steps = list290; + reference224 = obj202; + num++; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1048340u, new Vector3(-186.69415f, 4.0499983f, -108.11017f), 963) + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048340u, new Vector3(-186.69415f, 4.0499983f, -108.11017f), 963) { AethernetShortcut = new AethernetShortcut { @@ -332009,17 +400338,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost } }; - obj212.Steps = list307; - reference235 = obj212; - ref QuestSequence reference236 = ref span89[3]; - QuestSequence obj213 = new QuestSequence + obj203.Steps = list291; + reference225 = obj203; + num++; + ref QuestSequence reference226 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AethernetShortcut = new AethernetShortcut { @@ -332027,97 +400359,116 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - obj213.Steps = list308; - reference236 = obj213; - ref QuestSequence reference237 = ref span89[4]; - QuestSequence obj214 = new QuestSequence + obj204.Steps = list292; + reference226 = obj204; + num++; + ref QuestSequence reference227 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1048343u, new Vector3(-336.53772f, 52.243706f, -165.05688f), 957) + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048343u, new Vector3(-336.53772f, 52.243706f, -165.05688f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; - obj214.Steps = list309; - reference237 = obj214; - ref QuestSequence reference238 = ref span89[5]; - QuestSequence obj215 = new QuestSequence + obj205.Steps = list293; + reference227 = obj205; + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list310)[0]; - QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.5108f, -0.015813708f, -710.37146f), 957) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; + QuestStep obj207 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.5108f, -0.015813708f, -710.37146f), 957) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 17625u; - obj216.KillEnemyDataIds = list311; - reference239 = obj216; - obj215.Steps = list310; - reference238 = obj215; - ref QuestSequence reference240 = ref span89[6]; - QuestSequence obj217 = new QuestSequence + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + span6 = CollectionsMarshal.AsSpan(list295); + num4 = 0; + span6[num4] = 17625u; + obj207.KillEnemyDataIds = list295; + reference229 = obj207; + obj206.Steps = list294; + reference228 = obj206; + num++; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1048344u, new Vector3(-419.028f, 0.06509568f, -710.9331f), 957) + List list296 = new List(num2); + CollectionsMarshal.SetCount(list296, num2); + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048344u, new Vector3(-419.028f, 0.06509568f, -710.9331f), 957) { StopDistance = 7f }; - obj217.Steps = list312; - reference240 = obj217; - ref QuestSequence reference241 = ref span89[7]; - QuestSequence obj218 = new QuestSequence + obj208.Steps = list296; + reference230 = obj208; + num++; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4844) }; - obj218.Steps = list313; - reference241 = obj218; - questRoot35.QuestSequence = list304; - AddQuest(questId35, questRoot35); - QuestId questId36 = new QuestId(4844); - QuestRoot questRoot36 = new QuestRoot(); + obj209.Steps = list297; + reference231 = obj209; + questRoot32.QuestSequence = list288; + AddQuest(questId32, questRoot32); + QuestId questId33 = new QuestId(4844); + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "liza"; - questRoot36.Author = list314; - num = 7; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span90 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference242 = ref span90[0]; - QuestSequence obj219 = new QuestSequence + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + span = CollectionsMarshal.AsSpan(list298); + index = 0; + span[index] = "liza"; + questRoot33.Author = list298; + index = 7; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + span2 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332128,183 +400479,233 @@ public static class AssemblyQuestLoader } } }; - obj219.Steps = list316; - reference242 = obj219; - ref QuestSequence reference243 = ref span90[1]; - QuestSequence obj220 = new QuestSequence + obj210.Steps = list300; + reference232 = obj210; + num++; + ref QuestSequence reference233 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - obj220.Steps = list317; - reference243 = obj220; - ref QuestSequence reference244 = ref span90[2]; - QuestSequence obj221 = new QuestSequence + obj211.Steps = list301; + reference233 = obj211; + num++; + ref QuestSequence reference234 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - Span span91 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference245 = ref span91[0]; - QuestStep obj222 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.82042f, 82.46339f, -549.32526f), 957) + List list302 = new List(num2); + CollectionsMarshal.SetCount(list302, num2); + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + ref QuestStep reference235 = ref span3[index2]; + QuestStep obj213 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.82042f, 82.46339f, -549.32526f), 957) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - ref ComplexCombatData reference246 = ref CollectionsMarshal.AsSpan(list319)[0]; - ComplexCombatData obj223 = new ComplexCombatData + num4 = 1; + List list303 = new List(num4); + CollectionsMarshal.SetCount(list303, num4); + Span span7 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + ref ComplexCombatData reference236 = ref span7[num3]; + ComplexCombatData obj214 = new ComplexCombatData { DataId = 17626u }; - int num4 = 6; - List list320 = new List(num4); - CollectionsMarshal.SetCount(list320, num4); - Span span92 = CollectionsMarshal.AsSpan(list320); - span92[0] = null; - span92[1] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = null; - obj223.CompletionQuestVariablesFlags = list320; - reference246 = obj223; - obj222.ComplexCombatData = list319; - reference245 = obj222; - span91[1] = new QuestStep(EInteractionType.UseItem, 17626u, new Vector3(77.01221f, 82.459785f, -549.218f), 957) + int num5 = 6; + List list304 = new List(num5); + CollectionsMarshal.SetCount(list304, num5); + span4 = CollectionsMarshal.AsSpan(list304); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + obj214.CompletionQuestVariablesFlags = list304; + reference236 = obj214; + obj213.ComplexCombatData = list303; + reference235 = obj213; + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 17626u, new Vector3(77.01221f, 82.459785f, -549.218f), 957) { ItemId = 2003495u }; - obj221.Steps = list318; - reference244 = obj221; - ref QuestSequence reference247 = ref span90[3]; - QuestSequence obj224 = new QuestSequence + obj212.Steps = list302; + reference234 = obj212; + num++; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957); - obj224.Steps = list321; - reference247 = obj224; - ref QuestSequence reference248 = ref span90[4]; - QuestSequence obj225 = new QuestSequence + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957); + obj215.Steps = list305; + reference237 = obj215; + num++; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1048350u, new Vector3(-508.53745f, 12.375278f, 97.3678f), 957) + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048350u, new Vector3(-508.53745f, 12.375278f, 97.3678f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; - obj225.Steps = list322; - reference248 = obj225; - ref QuestSequence reference249 = ref span90[5]; - QuestSequence obj226 = new QuestSequence + obj216.Steps = list306; + reference238 = obj216; + num++; + ref QuestSequence reference239 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - 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) + index2 = 3; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference240 = ref span3[num2]; + QuestStep obj218 = new QuestStep(EInteractionType.Interact, 1048354u, new Vector3(154.28394f, 5.2641535f, 618.40234f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; num3 = 6; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span94 = CollectionsMarshal.AsSpan(list324); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj227.CompletionQuestVariablesFlags = list324; - reference250 = obj227; - ref QuestStep reference251 = ref span93[1]; - QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1048355u, new Vector3(227.98499f, 10.19656f, 563.31726f), 957); + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + span4 = CollectionsMarshal.AsSpan(list308); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj218.CompletionQuestVariablesFlags = list308; + reference240 = obj218; + num2++; + ref QuestStep reference241 = ref span3[num2]; + QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1048355u, new Vector3(227.98499f, 10.19656f, 563.31726f), 957); + num4 = 6; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + span4 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep23.CompletionQuestVariablesFlags = list309; + reference241 = questStep23; + num2++; + ref QuestStep reference242 = ref span3[num2]; + QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1048352u, new Vector3(195.5138f, 15.136732f, 529.015f), 957); num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span95 = CollectionsMarshal.AsSpan(list325); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list325; - reference251 = questStep24; - ref QuestStep reference252 = ref span93[2]; - QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1048352u, new Vector3(195.5138f, 15.136732f, 529.015f), 957); - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span96 = CollectionsMarshal.AsSpan(list326); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep25.CompletionQuestVariablesFlags = list326; - reference252 = questStep25; - obj226.Steps = list323; - reference249 = obj226; - ref QuestSequence reference253 = ref span90[6]; - QuestSequence obj228 = new QuestSequence + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + span4 = CollectionsMarshal.AsSpan(list310); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep24.CompletionQuestVariablesFlags = list310; + reference242 = questStep24; + obj217.Steps = list307; + reference239 = obj217; + num++; + ref QuestSequence reference243 = ref span2[num]; + QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + List list311 = new List(num2); + CollectionsMarshal.SetCount(list311, num2); + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { NextQuestId = new QuestId(4845) }; - obj228.Steps = list327; - reference253 = obj228; - questRoot36.QuestSequence = list315; - AddQuest(questId36, questRoot36); - QuestId questId37 = new QuestId(4845); - QuestRoot questRoot37 = new QuestRoot(); + obj219.Steps = list311; + reference243 = obj219; + questRoot33.QuestSequence = list299; + AddQuest(questId33, questRoot33); + QuestId questId34 = new QuestId(4845); + QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - CollectionsMarshal.AsSpan(list328)[0] = "liza"; - questRoot37.Author = list328; - num = 9; - List list329 = new List(num); - CollectionsMarshal.SetCount(list329, num); - Span span97 = CollectionsMarshal.AsSpan(list329); - ref QuestSequence reference254 = ref span97[0]; - QuestSequence obj229 = new QuestSequence + List list312 = new List(num); + CollectionsMarshal.SetCount(list312, num); + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "liza"; + questRoot34.Author = list312; + index = 9; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference244 = ref span2[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - ref QuestStep reference255 = ref CollectionsMarshal.AsSpan(list330)[0]; - QuestStep obj230 = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + ref QuestStep reference245 = ref span3[num2]; + QuestStep obj221 = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332315,30 +400716,34 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice + num4 = 1; + List list315 = new List(num4); + CollectionsMarshal.SetCount(list315, num4); + span5 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA531_04845_Q2_000_200"), Answer = new ExcelRef("TEXT_KINGBA531_04845_A1_000_200") }; - obj230.DialogueChoices = list331; - reference255 = obj230; - obj229.Steps = list330; - reference254 = obj229; - ref QuestSequence reference256 = ref span97[1]; - QuestSequence obj231 = new QuestSequence + obj221.DialogueChoices = list315; + reference245 = obj221; + obj220.Steps = list314; + reference244 = obj220; + num++; + ref QuestSequence reference246 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - Span span98 = CollectionsMarshal.AsSpan(list332); - ref QuestStep reference257 = ref span98[0]; - QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1048357u, new Vector3(-183.21509f, 36f, 53.116577f), 963) + List list316 = new List(num2); + CollectionsMarshal.SetCount(list316, num2); + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference247 = ref span3[index2]; + QuestStep obj223 = new QuestStep(EInteractionType.Interact, 1048357u, new Vector3(-183.21509f, 36f, 53.116577f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -332348,56 +400753,79 @@ public static class AssemblyQuestLoader } }; 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; - ref QuestStep reference258 = ref span98[1]; - QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048359u, new Vector3(-175.0058f, 36.051327f, 104.20386f), 963); + List list317 = new List(num3); + CollectionsMarshal.SetCount(list317, num3); + span4 = CollectionsMarshal.AsSpan(list317); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj223.CompletionQuestVariablesFlags = list317; + reference247 = obj223; + index2++; + ref QuestStep reference248 = ref span3[index2]; + QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1048359u, new Vector3(-175.0058f, 36.051327f, 104.20386f), 963); + num4 = 6; + List list318 = new List(num4); + CollectionsMarshal.SetCount(list318, num4); + span4 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep25.CompletionQuestVariablesFlags = list318; + reference248 = questStep25; + index2++; + ref QuestStep reference249 = ref span3[index2]; + QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048360u, new Vector3(-237.41516f, 35.999996f, 102.067505f), 963); num3 = 6; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - Span span100 = CollectionsMarshal.AsSpan(list334); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list334; - reference258 = questStep26; - ref QuestStep reference259 = ref span98[2]; - QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1048360u, new Vector3(-237.41516f, 35.999996f, 102.067505f), 963); - num3 = 6; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - Span span101 = CollectionsMarshal.AsSpan(list335); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep27.CompletionQuestVariablesFlags = list335; - reference259 = questStep27; - obj231.Steps = list332; - reference256 = obj231; - ref QuestSequence reference260 = ref span97[2]; - QuestSequence obj233 = new QuestSequence + List list319 = new List(num3); + CollectionsMarshal.SetCount(list319, num3); + span4 = CollectionsMarshal.AsSpan(list319); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep26.CompletionQuestVariablesFlags = list319; + reference249 = questStep26; + obj222.Steps = list316; + reference246 = obj222; + num++; + ref QuestSequence reference250 = ref span2[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1048362u, new Vector3(-10.544006f, 2.999996f, -204.91345f), 963) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048362u, new Vector3(-10.544006f, 2.999996f, -204.91345f), 963) { AethernetShortcut = new AethernetShortcut { @@ -332405,55 +400833,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - obj233.Steps = list336; - reference260 = obj233; - ref QuestSequence reference261 = ref span97[3]; - QuestSequence obj234 = new QuestSequence + obj224.Steps = list320; + reference250 = obj224; + num++; + ref QuestSequence reference251 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1048361u, new Vector3(9.262146f, 0.92f, -103.31885f), 963); - obj234.Steps = list337; - reference261 = obj234; - ref QuestSequence reference262 = ref span97[4]; - QuestSequence obj235 = new QuestSequence + List list321 = new List(num2); + CollectionsMarshal.SetCount(list321, num2); + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048361u, new Vector3(9.262146f, 0.92f, -103.31885f), 963); + obj225.Steps = list321; + reference251 = obj225; + num++; + ref QuestSequence reference252 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1048363u, new Vector3(369.40564f, 3.9809039f, -219.40955f), 957) + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048363u, new Vector3(369.40564f, 3.9809039f, -219.40955f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - obj235.Steps = list338; - reference262 = obj235; - ref QuestSequence reference263 = ref span97[5]; - QuestSequence obj236 = new QuestSequence + obj226.Steps = list322; + reference252 = obj226; + num++; + ref QuestSequence reference253 = ref span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957); - obj236.Steps = list339; - reference263 = obj236; - ref QuestSequence reference264 = ref span97[6]; - QuestSequence obj237 = new QuestSequence + List list323 = new List(num2); + CollectionsMarshal.SetCount(list323, num2); + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957); + obj227.Steps = list323; + reference253 = obj227; + num++; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = 6 }; - num2 = 12; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - 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) + index2 = 12; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + ref QuestStep reference255 = ref span3[num2]; + QuestStep obj229 = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957) { StopDistance = 0.25f, Fly = true, @@ -332466,125 +400905,149 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - CollectionsMarshal.AsSpan(list341)[0] = new DialogueChoice + num4 = 1; + List list325 = new List(num4); + CollectionsMarshal.SetCount(list325, num4); + span5 = CollectionsMarshal.AsSpan(list325); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGBA531_04845_Q1_000_054") }; - obj238.DialogueChoices = list341; - reference265 = obj238; - span102[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(387.43045f, 5.8062716f, -203.20459f), 957) + obj229.DialogueChoices = list325; + reference255 = obj229; + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(387.43045f, 5.8062716f, -203.20459f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.85394f, 3.0972311f, -220.57103f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.85394f, 3.0972311f, -220.57103f), 957) { Mount = false, Sprint = false }; - span102[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(398.46808f, 12.103142f, -174.068f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(398.46808f, 12.103142f, -174.068f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(395.88028f, 10.267179f, -192.21916f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(395.88028f, 10.267179f, -192.21916f), 957) { Mount = false, Sprint = false }; - span102[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(395.6862f, 11.099065f, -169.7558f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(395.6862f, 11.099065f, -169.7558f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.42825f, 12.946791f, -180.08061f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.42825f, 12.946791f, -180.08061f), 957) { Mount = false, Sprint = false }; - span102[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(368.02908f, 5.7749786f, -135.06207f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(368.02908f, 5.7749786f, -135.06207f), 957) { Mount = false, Sprint = false }; - span102[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.81885f, 18.925224f, -43.56831f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.81885f, 18.925224f, -43.56831f), 957) { Mount = false, Sprint = false }; - span102[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(274.41418f, 17.838093f, -2.1020741f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(274.41418f, 17.838093f, -2.1020741f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.60135f, 19.312042f, -1.2628903f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.60135f, 19.312042f, -1.2628903f), 957) { Mount = false, Sprint = false }; - span102[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.453f, 16.725914f, 14.936783f), 957) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.453f, 16.725914f, 14.936783f), 957) { Mount = false, Sprint = false }; - obj237.Steps = list340; - reference264 = obj237; - ref QuestSequence reference266 = ref span97[7]; - QuestSequence obj239 = new QuestSequence + obj228.Steps = list324; + reference254 = obj228; + num++; + ref QuestSequence reference256 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1048368u, new Vector3(239.33765f, 11.061386f, 69.99304f), 957); - obj239.Steps = list342; - reference266 = obj239; - ref QuestSequence reference267 = ref span97[8]; - QuestSequence obj240 = new QuestSequence + List list326 = new List(num2); + CollectionsMarshal.SetCount(list326, num2); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048368u, new Vector3(239.33765f, 11.061386f, 69.99304f), 957); + obj230.Steps = list326; + reference256 = obj230; + num++; + ref QuestSequence reference257 = ref span2[num]; + QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4846) }; - obj240.Steps = list343; - reference267 = obj240; - questRoot37.QuestSequence = list329; - AddQuest(questId37, questRoot37); - QuestId questId38 = new QuestId(4846); - QuestRoot questRoot38 = new QuestRoot(); + obj231.Steps = list327; + reference257 = obj231; + questRoot34.QuestSequence = list313; + AddQuest(questId34, questRoot34); + QuestId questId35 = new QuestId(4846); + QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; - questRoot38.Author = list344; - num = 7; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span103 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference268 = ref span103[0]; - QuestSequence obj241 = new QuestSequence + List list328 = new List(num); + CollectionsMarshal.SetCount(list328, num); + span = CollectionsMarshal.AsSpan(list328); + index = 0; + span[index] = "liza"; + questRoot35.Author = list328; + index = 7; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + span2 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference258 = ref span2[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + List list330 = new List(num2); + CollectionsMarshal.SetCount(list330, num2); + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332595,17 +401058,20 @@ public static class AssemblyQuestLoader } } }; - obj241.Steps = list346; - reference268 = obj241; - ref QuestSequence reference269 = ref span103[1]; - QuestSequence obj242 = new QuestSequence + obj232.Steps = list330; + reference258 = obj232; + num++; + ref QuestSequence reference259 = ref span2[num]; + QuestSequence obj233 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -332614,18 +401080,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj242.Steps = list347; - reference269 = obj242; - ref QuestSequence reference270 = ref span103[2]; - QuestSequence obj243 = new QuestSequence + obj233.Steps = list331; + reference259 = obj233; + num++; + ref QuestSequence reference260 = ref span2[num]; + QuestSequence obj234 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - Span span104 = CollectionsMarshal.AsSpan(list348); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.87598f, -15.862221f, -236.6933f), 1190) + List list332 = new List(num2); + CollectionsMarshal.SetCount(list332, num2); + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.87598f, -15.862221f, -236.6933f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan, SkipConditions = new SkipConditions @@ -332636,99 +401104,119 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference271 = ref span104[1]; - QuestStep obj244 = new QuestStep(EInteractionType.Combat, null, new Vector3(442.79218f, -16.660347f, -111.04725f), 1190) + index2++; + ref QuestStep reference261 = ref span3[index2]; + QuestStep obj235 = new QuestStep(EInteractionType.Combat, null, new Vector3(442.79218f, -16.660347f, -111.04725f), 1190) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = 17627u; - obj244.KillEnemyDataIds = list349; - reference271 = obj244; - obj243.Steps = list348; - reference270 = obj243; - ref QuestSequence reference272 = ref span103[3]; - QuestSequence obj245 = new QuestSequence + List list333 = new List(num3); + CollectionsMarshal.SetCount(list333, num3); + span6 = CollectionsMarshal.AsSpan(list333); + num4 = 0; + span6[num4] = 17627u; + obj235.KillEnemyDataIds = list333; + reference261 = obj235; + obj234.Steps = list332; + reference260 = obj234; + num++; + ref QuestSequence reference262 = ref span2[num]; + QuestSequence obj236 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1048369u, new Vector3(441.5503f, -16.619904f, -109.14783f), 1190) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048369u, new Vector3(441.5503f, -16.619904f, -109.14783f), 1190) { StopDistance = 7f }; - obj245.Steps = list350; - reference272 = obj245; - ref QuestSequence reference273 = ref span103[4]; - QuestSequence obj246 = new QuestSequence + obj236.Steps = list334; + reference262 = obj236; + num++; + ref QuestSequence reference263 = ref span2[num]; + QuestSequence obj237 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1048333u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048333u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; - obj246.Steps = list351; - reference273 = obj246; - ref QuestSequence reference274 = ref span103[5]; - QuestSequence obj247 = new QuestSequence + obj237.Steps = list335; + reference263 = obj237; + num++; + ref QuestSequence reference264 = ref span2[num]; + QuestSequence obj238 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1048372u, new Vector3(-53.177734f, -1.9999962f, 147.60046f), 963) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048372u, new Vector3(-53.177734f, -1.9999962f, 147.60046f), 963) { StopDistance = 7f }; - obj247.Steps = list352; - reference274 = obj247; - ref QuestSequence reference275 = ref span103[6]; - QuestSequence obj248 = new QuestSequence + obj238.Steps = list336; + reference264 = obj238; + num++; + ref QuestSequence reference265 = ref span2[num]; + QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + List list337 = new List(num2); + CollectionsMarshal.SetCount(list337, num2); + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4847) }; - obj248.Steps = list353; - reference275 = obj248; - questRoot38.QuestSequence = list345; - AddQuest(questId38, questRoot38); - QuestId questId39 = new QuestId(4847); - QuestRoot questRoot39 = new QuestRoot(); + obj239.Steps = list337; + reference265 = obj239; + questRoot35.QuestSequence = list329; + AddQuest(questId35, questRoot35); + QuestId questId36 = new QuestId(4847); + QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list354 = new List(num); - CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "liza"; - questRoot39.Author = list354; - num = 5; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span105 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference276 = ref span105[0]; - QuestSequence obj249 = new QuestSequence + List list338 = new List(num); + CollectionsMarshal.SetCount(list338, num); + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "liza"; + questRoot36.Author = list338; + index = 5; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference266 = ref span2[num]; + QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332739,17 +401227,20 @@ public static class AssemblyQuestLoader } } }; - obj249.Steps = list356; - reference276 = obj249; - ref QuestSequence reference277 = ref span105[1]; - QuestSequence obj250 = new QuestSequence + obj240.Steps = list340; + reference266 = obj240; + num++; + ref QuestSequence reference267 = ref span2[num]; + QuestSequence obj241 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957) + List list341 = new List(num2); + CollectionsMarshal.SetCount(list341, num2); + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -332759,32 +401250,39 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanGateOfFirstSight } }; - obj250.Steps = list357; - reference277 = obj250; - span105[2] = new QuestSequence + obj241.Steps = list341; + reference267 = obj241; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference278 = ref span105[3]; - QuestSequence obj251 = new QuestSequence + num++; + ref QuestSequence reference268 = ref span2[num]; + QuestSequence obj242 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957); - obj251.Steps = list358; - reference278 = obj251; - ref QuestSequence reference279 = ref span105[4]; - QuestSequence obj252 = new QuestSequence + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957); + obj242.Steps = list342; + reference268 = obj242; + num++; + ref QuestSequence reference269 = ref span2[num]; + QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + List list343 = new List(num2); + CollectionsMarshal.SetCount(list343, num2); + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -332793,30 +401291,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj252.Steps = list359; - reference279 = obj252; - questRoot39.QuestSequence = list355; - AddQuest(questId39, questRoot39); - QuestId questId40 = new QuestId(4848); - QuestRoot questRoot40 = new QuestRoot(); + obj243.Steps = list343; + reference269 = obj243; + questRoot36.QuestSequence = list339; + AddQuest(questId36, questRoot36); + QuestId questId37 = new QuestId(4848); + QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "liza"; - questRoot40.Author = list360; - num = 4; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span106 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference280 = ref span106[0]; - QuestSequence obj253 = new QuestSequence + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "liza"; + questRoot37.Author = list344; + index = 4; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference270 = ref span2[num]; + QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046333u, new Vector3(-92.21033f, 3.9999995f, -99.321045f), 130) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046333u, new Vector3(-92.21033f, 3.9999995f, -99.321045f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -332827,17 +401330,20 @@ public static class AssemblyQuestLoader } } }; - obj253.Steps = list362; - reference280 = obj253; - ref QuestSequence reference281 = ref span106[1]; - QuestSequence obj254 = new QuestSequence + obj244.Steps = list346; + reference270 = obj244; + num++; + ref QuestSequence reference271 = ref span2[num]; + QuestSequence obj245 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1046334u, new Vector3(89.09741f, 12f, 49.484985f), 131) + List list347 = new List(num2); + CollectionsMarshal.SetCount(list347, num2); + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046334u, new Vector3(89.09741f, 12f, 49.484985f), 131) { AethernetShortcut = new AethernetShortcut { @@ -332845,32 +401351,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - obj254.Steps = list363; - reference281 = obj254; - ref QuestSequence reference282 = ref span106[2]; - QuestSequence obj255 = new QuestSequence + obj245.Steps = list347; + reference271 = obj245; + num++; + ref QuestSequence reference272 = ref span2[num]; + QuestSequence obj246 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1046336u, new Vector3(-408.52985f, -55.904274f, 120.74463f), 145) + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046336u, new Vector3(-408.52985f, -55.904274f, 120.74463f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - obj255.Steps = list364; - reference282 = obj255; - ref QuestSequence reference283 = ref span106[3]; - QuestSequence obj256 = new QuestSequence + obj246.Steps = list348; + reference272 = obj246; + num++; + ref QuestSequence reference273 = ref span2[num]; + QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; 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) + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + ref QuestStep reference274 = ref span3[index2]; + QuestStep obj248 = new QuestStep(EInteractionType.CompleteQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131) { AethernetShortcut = new AethernetShortcut { @@ -332878,43 +401390,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 1; - List list366 = new List(num3); - CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = new DialogueChoice + num4 = 1; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + span5 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGBB101_04848_Q3_000_000") }; - obj257.DialogueChoices = list366; - obj257.NextQuestId = new QuestId(4849); - reference284 = obj257; - obj256.Steps = list365; - reference283 = obj256; - questRoot40.QuestSequence = list361; - AddQuest(questId40, questRoot40); - QuestId questId41 = new QuestId(4849); - QuestRoot questRoot41 = new QuestRoot(); + obj248.DialogueChoices = list350; + obj248.NextQuestId = new QuestId(4849); + reference274 = obj248; + obj247.Steps = list349; + reference273 = obj247; + questRoot37.QuestSequence = list345; + AddQuest(questId37, questRoot37); + QuestId questId38 = new QuestId(4849); + QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list367 = new List(num); - CollectionsMarshal.SetCount(list367, num); - CollectionsMarshal.AsSpan(list367)[0] = "liza"; - questRoot41.Author = list367; - num = 10; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - Span span107 = CollectionsMarshal.AsSpan(list368); - ref QuestSequence reference285 = ref span107[0]; - QuestSequence obj258 = new QuestSequence + List list351 = new List(num); + CollectionsMarshal.SetCount(list351, num); + span = CollectionsMarshal.AsSpan(list351); + index = 0; + span[index] = "liza"; + questRoot38.Author = list351; + index = 10; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + span2 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference275 = ref span2[num]; + QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - 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) + index2 = 4; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + span3 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + ref QuestStep reference276 = ref span3[num2]; + QuestStep obj250 = new QuestStep(EInteractionType.UseItem, null, new Vector3(89.036255f, 12f, 47.287598f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -332924,7 +401442,7 @@ public static class AssemblyQuestLoader }, ItemId = 43537u }; - SkipConditions obj260 = new SkipConditions + SkipConditions obj251 = new SkipConditions { StepIf = new SkipStepConditions { @@ -332934,19 +401452,22 @@ public static class AssemblyQuestLoader } } }; - SkipAetheryteCondition obj261 = new SkipAetheryteCondition + SkipAetheryteCondition obj252 = new SkipAetheryteCondition { InSameTerritory = true }; 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; - span108[1] = new QuestStep(EInteractionType.EquipItem, null, null, 131) + List list354 = new List(num3); + CollectionsMarshal.SetCount(list354, num3); + Span span8 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span8[num4] = 131; + obj252.InTerritory = list354; + obj251.AetheryteShortcutIf = obj252; + obj250.SkipConditions = obj251; + reference276 = obj250; + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 131) { ItemId = 41808u, SkipConditions = new SkipConditions @@ -332960,19 +401481,24 @@ public static class AssemblyQuestLoader } } }; - span108[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); - span108[3] = new QuestStep(EInteractionType.AcceptQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131); - obj258.Steps = list369; - reference285 = obj258; - ref QuestSequence reference287 = ref span107[1]; - QuestSequence obj262 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131); + obj249.Steps = list353; + reference275 = obj249; + num++; + ref QuestSequence reference277 = ref span2[num]; + QuestSequence obj253 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1046338u, new Vector3(11.428955f, 3.9999998f, -135.69855f), 130) + List list355 = new List(num2); + CollectionsMarshal.SetCount(list355, num2); + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046338u, new Vector3(11.428955f, 3.9999998f, -135.69855f), 130) { AethernetShortcut = new AethernetShortcut { @@ -332980,105 +401506,127 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj262.Steps = list371; - reference287 = obj262; - ref QuestSequence reference288 = ref span107[2]; - QuestSequence obj263 = new QuestSequence + obj253.Steps = list355; + reference277 = obj253; + num++; + ref QuestSequence reference278 = ref span2[num]; + QuestSequence obj254 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1046339u, new Vector3(28.335938f, 3.9999995f, -136.36993f), 130); - obj263.Steps = list372; - reference288 = obj263; - ref QuestSequence reference289 = ref span107[3]; - QuestSequence obj264 = new QuestSequence + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + span3 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046339u, new Vector3(28.335938f, 3.9999995f, -136.36993f), 130); + obj254.Steps = list356; + reference278 = obj254; + num++; + ref QuestSequence reference279 = ref span2[num]; + QuestSequence obj255 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span109 = CollectionsMarshal.AsSpan(list373); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.120266f, 3.9179347f, -166.70798f), 130) + List list357 = new List(num2); + CollectionsMarshal.SetCount(list357, num2); + span3 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.120266f, 3.9179347f, -166.70798f), 130) { Comment = "Zone transition" }; - span109[1] = new QuestStep(EInteractionType.Interact, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141) { Fly = true }; - obj264.Steps = list373; - reference289 = obj264; - ref QuestSequence reference290 = ref span107[4]; - QuestSequence obj265 = new QuestSequence + obj255.Steps = list357; + reference279 = obj255; + num++; + ref QuestSequence reference280 = ref span2[num]; + QuestSequence obj256 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141); - obj265.Steps = list374; - reference290 = obj265; - span107[5] = new QuestSequence + index2 = 1; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span3 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141); + obj256.Steps = list358; + reference280 = obj256; + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference291 = ref span107[6]; - QuestSequence obj266 = new QuestSequence + num++; + ref QuestSequence reference281 = ref span2[num]; + QuestSequence obj257 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1046345u, new Vector3(-92.30188f, 4f, -99.77875f), 130) + List list359 = new List(num2); + CollectionsMarshal.SetCount(list359, num2); + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046345u, new Vector3(-92.30188f, 4f, -99.77875f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - obj266.Steps = list375; - reference291 = obj266; - ref QuestSequence reference292 = ref span107[7]; - QuestSequence obj267 = new QuestSequence + obj257.Steps = list359; + reference281 = obj257; + num++; + ref QuestSequence reference282 = ref span2[num]; + QuestSequence obj258 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 1004332u, new Vector3(-103.92926f, 4f, -97.88666f), 130); - obj267.Steps = list376; - reference292 = obj267; - ref QuestSequence reference293 = ref span107[8]; - QuestSequence obj268 = new QuestSequence + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1004332u, new Vector3(-103.92926f, 4f, -97.88666f), 130); + obj258.Steps = list360; + reference282 = obj258; + num++; + ref QuestSequence reference283 = ref span2[num]; + QuestSequence obj259 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); - obj268.Steps = list377; - reference293 = obj268; - ref QuestSequence reference294 = ref span107[9]; - QuestSequence obj269 = new QuestSequence + List list361 = new List(num2); + CollectionsMarshal.SetCount(list361, num2); + span3 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); + obj259.Steps = list361; + reference283 = obj259; + num++; + ref QuestSequence reference284 = ref span2[num]; + QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) { NextQuestId = new QuestId(4850) }; - obj269.Steps = list378; - reference294 = obj269; - questRoot41.QuestSequence = list368; - AddQuest(questId41, questRoot41); + obj260.Steps = list362; + reference284 = obj260; + questRoot38.QuestSequence = list352; + AddQuest(questId38, questRoot38); } private static void LoadQuests97() @@ -333089,14 +401637,17 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - num = 9; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 9; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence questSequence = new QuestSequence { Sequence = 0 @@ -333105,7 +401656,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj = new QuestStep(EInteractionType.AcceptQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -333120,7 +401673,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB111_04850_Q1_000_100"), @@ -333130,21 +401685,25 @@ public static class AssemblyQuestLoader reference2 = obj; questSequence2.Steps = list3; reference = questSequence; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + span3 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -333152,148 +401711,187 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1046351u, new Vector3(-192.40106f, 15.001892f, 447.2876f), 153) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046351u, new Vector3(-192.40106f, 15.001892f, 447.2876f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence3 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference7 = ref span2[0]; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2013569u, new Vector3(-161.36414f, 1.083313f, 480.12512f), 153) { Fly = true }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj5.CompletionQuestVariablesFlags = list8; + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span5 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj5.CompletionQuestVariablesFlags = list9; reference7 = obj5; - ref QuestStep reference8 = ref span2[1]; + index2++; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 2013570u, new Vector3(-111.77234f, 0.503479f, 356.2218f), 153) { Fly = true }; num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj6.CompletionQuestVariablesFlags = list9; - reference8 = obj6; - ref QuestStep reference9 = ref span2[2]; - QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2013571u, new Vector3(-130.84619f, 1.1138916f, 308.58313f), 153) - { - Fly = true - }; - num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj7.CompletionQuestVariablesFlags = list10; + span5 = CollectionsMarshal.AsSpan(list10); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj6.CompletionQuestVariablesFlags = list10; + reference8 = obj6; + index2++; + ref QuestStep reference9 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj7.CompletionQuestVariablesFlags = list11; reference9 = obj7; - questSequence3.Steps = list3; + questSequence3.Steps = list8; reference6 = questSequence; - ref QuestSequence reference10 = ref span[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1046356u, new Vector3(-48.233826f, 1.0262487f, 452.59778f), 153) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046356u, new Vector3(-48.233826f, 1.0262487f, 452.59778f), 153) { Fly = true }; - obj8.Steps = list11; + obj8.Steps = list12; reference10 = obj8; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 2013572u, new Vector3(-237.1405f, 0.59503174f, 502.79993f), 153) + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013572u, new Vector3(-237.1405f, 0.59503174f, 502.79993f), 153) { Fly = true }; - obj9.Steps = list12; + obj9.Steps = list13; reference11 = obj9; - ref QuestSequence reference12 = ref span[7]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.303873f, 19.952045f, 199.71306f), 153) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.303873f, 19.952045f, 199.71306f), 153) { Fly = true }; - span6[1] = new QuestStep(EInteractionType.Interact, 1046362u, new Vector3(22.934265f, 19.877338f, 195.91052f), 153); - obj10.Steps = list13; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046362u, new Vector3(22.934265f, 19.877338f, 195.91052f), 153); + obj10.Steps = list14; reference12 = obj10; - ref QuestSequence reference13 = ref span[8]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046368u, new Vector3(205.06592f, 8.722662f, -74.08258f), 153) + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046368u, new Vector3(205.06592f, 8.722662f, -74.08258f), 153) { Fly = true, NextQuestId = new QuestId(4851) }; - obj11.Steps = list14; + obj11.Steps = list15; reference13 = obj11; questRoot3.QuestSequence = list2; AddQuest(questId, questRoot); @@ -333301,24 +401899,29 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot4 = questRoot; num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; - questRoot4.Author = list15; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; + questRoot4.Author = list16; QuestRoot questRoot5 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span7 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference14 = ref span7[0]; + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -333329,17 +401932,20 @@ public static class AssemblyQuestLoader } } }; - obj12.Steps = list16; + obj12.Steps = list17; reference14 = obj12; - ref QuestSequence reference15 = ref span7[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154) + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -333350,133 +401956,170 @@ public static class AssemblyQuestLoader } } }; - obj13.Steps = list17; + obj13.Steps = list18; reference15 = obj13; - ref QuestSequence reference16 = ref span7[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence4 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span8 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference17 = ref span8[0]; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference17 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1046374u, new Vector3(-43.90027f, -40.94998f, 190.875f), 154); num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep.CompletionQuestVariablesFlags = list18; - reference17 = questStep; - ref QuestStep reference18 = ref span8[1]; - QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1046375u, new Vector3(-13.748474f, -38.971447f, 190.11206f), 154); - num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list19; + span5 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep.CompletionQuestVariablesFlags = list19; + reference17 = questStep; + num2++; + ref QuestStep reference18 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list20; reference18 = questStep2; - ref QuestStep reference19 = ref span8[2]; + num2++; + ref QuestStep reference19 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1046376u, new Vector3(-25.345276f, -34.650696f, 172.96094f), 154); num3 = 6; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list20; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + span5 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list21; reference19 = questStep3; - questSequence4.Steps = list3; + questSequence4.Steps = list8; reference16 = questSequence; - ref QuestSequence reference20 = ref span7[3]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list21)[0]; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference21 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1046377u, new Vector3(-54.76471f, -40.876083f, 239.36829f), 154) { Fly = true }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span4 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB121_04851_Q1_000_100"), Answer = new ExcelRef("TEXT_KINGBB121_04851_A2_000_100") }; - obj15.DialogueChoices = list22; + obj15.DialogueChoices = list23; reference21 = obj15; - obj14.Steps = list21; + obj14.Steps = list22; reference20 = obj14; - ref QuestSequence reference22 = ref span7[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1046379u, new Vector3(-62.60785f, -45.560196f, 269.4895f), 154); num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + span4 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB121_04851_Q2_000_200"), Answer = new ExcelRef("TEXT_KINGBB121_04851_A2_000_200") }; - questStep4.DialogueChoices = list24; + questStep4.DialogueChoices = list25; reference23 = questStep4; - obj16.Steps = list23; + obj16.Steps = list24; reference22 = obj16; - ref QuestSequence reference24 = ref span7[5]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154); - obj17.Steps = list25; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154); + obj17.Steps = list26; reference24 = obj17; - ref QuestSequence reference25 = ref span7[6]; + num++; + ref QuestSequence reference25 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence5 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span12 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference26 = ref span12[0]; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference26 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 2013574u, new Vector3(-297.47473f, 58.91504f, -274.61664f), 612) { StopDistance = 1f, @@ -333490,80 +402133,106 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span13 = CollectionsMarshal.AsSpan(list26); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj18.CompletionQuestVariablesFlags = list26; + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + span5 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj18.CompletionQuestVariablesFlags = list27; reference26 = obj18; - ref QuestStep reference27 = ref span12[1]; + num2++; + ref QuestStep reference27 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2013575u, new Vector3(-325.42914f, 61.661743f, -266.1021f), 612) { Fly = true }; num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span14 = CollectionsMarshal.AsSpan(list27); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj19.CompletionQuestVariablesFlags = list27; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + span5 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj19.CompletionQuestVariablesFlags = list28; reference27 = obj19; - ref QuestStep reference28 = ref span12[2]; + num2++; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 2013573u, new Vector3(-292.80542f, 61.875244f, -326.833f), 612) { Mount = false, Sprint = true }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj20.CompletionQuestVariablesFlags = list28; + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + span5 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj20.CompletionQuestVariablesFlags = list29; reference28 = obj20; - questSequence5.Steps = list3; + questSequence5.Steps = list8; reference25 = questSequence; - ref QuestSequence reference29 = ref span7[7]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1046381u, new Vector3(-278.21777f, 59.704876f, -333.547f), 612); - obj21.Steps = list29; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + span3 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046381u, new Vector3(-278.21777f, 59.704876f, -333.547f), 612); + obj21.Steps = list30; reference29 = obj21; - ref QuestSequence reference30 = ref span7[8]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(4852) }; - obj22.Steps = list30; + obj22.Steps = list31; reference30 = obj22; questRoot5.QuestSequence = list2; AddQuest(questId2, questRoot); @@ -333571,24 +402240,29 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot6 = questRoot; num = 1; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; - questRoot6.Author = list31; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + span = CollectionsMarshal.AsSpan(list32); + index = 0; + span[index] = "liza"; + questRoot6.Author = list32; QuestRoot questRoot7 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span16 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference31 = ref span16[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -333599,17 +402273,20 @@ public static class AssemblyQuestLoader } } }; - obj23.Steps = list32; + obj23.Steps = list33; reference31 = obj23; - ref QuestSequence reference32 = ref span16[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1046382u, new Vector3(-183.18463f, 100.88573f, -541.4359f), 399) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046382u, new Vector3(-183.18463f, 100.88573f, -541.4359f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -333618,108 +402295,137 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IdyllshireEpilogueGate } }; - obj24.Steps = list33; + obj24.Steps = list34; reference32 = obj24; - ref QuestSequence reference33 = ref span16[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence6 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span17 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference34 = ref span17[0]; + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 2013576u, new Vector3(-173.87659f, 110.27698f, -343.64844f), 399) { Fly = true }; num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span18 = CollectionsMarshal.AsSpan(list34); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj25.CompletionQuestVariablesFlags = list34; - reference34 = obj25; - ref QuestStep reference35 = ref span17[1]; - QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2013578u, new Vector3(-139.97101f, 111.039795f, -270.58832f), 399) - { - Fly = true - }; - num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span19 = CollectionsMarshal.AsSpan(list35); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj26.CompletionQuestVariablesFlags = list35; + span5 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj25.CompletionQuestVariablesFlags = list35; + reference34 = obj25; + index2++; + ref QuestStep reference35 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj26.CompletionQuestVariablesFlags = list36; reference35 = obj26; - ref QuestStep reference36 = ref span17[2]; + index2++; + ref QuestStep reference36 = ref span3[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2013577u, new Vector3(-69.29126f, 100.938354f, -336.47675f), 399) { Fly = true }; num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj27.CompletionQuestVariablesFlags = list36; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + span5 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj27.CompletionQuestVariablesFlags = list37; reference36 = obj27; - questSequence6.Steps = list3; + questSequence6.Steps = list8; reference33 = questSequence; - ref QuestSequence reference37 = ref span16[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference37 = ref span2[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence7 = questSequence; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list37)[0]; - QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1046383u, new Vector3(1.8463135f, 103.4929f, -280.14038f), 399) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; + QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1046383u, new Vector3(1.8463135f, 103.4929f, -280.14038f), 399) { StopDistance = 1f, Fly = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + span4 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB131_04852_Q2_000_200"), Answer = new ExcelRef("TEXT_KINGBB131_04852_A1_000_200") }; - obj28.DialogueChoices = list38; - reference38 = obj28; - questSequence7.Steps = list37; - reference37 = questSequence; - ref QuestSequence reference39 = ref span16[4]; - QuestSequence obj29 = new QuestSequence + obj29.DialogueChoices = list39; + reference38 = obj29; + obj28.Steps = list38; + reference37 = obj28; + num++; + ref QuestSequence reference39 = ref span2[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1046384u, new Vector3(289.08203f, 163.68987f, 288.19702f), 397) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + span3 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046384u, new Vector3(289.08203f, 163.68987f, 288.19702f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -333731,79 +402437,95 @@ public static class AssemblyQuestLoader } } }; - obj29.Steps = list39; - reference39 = obj29; - ref QuestSequence reference40 = ref span16[5]; - QuestSequence obj30 = new QuestSequence + obj30.Steps = list40; + reference39 = obj30; + num++; + ref QuestSequence reference40 = ref span2[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list40)[0]; - QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.81232f, 179.55281f, -45.167038f), 397) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; + QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.81232f, 179.55281f, -45.167038f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 17642u; - obj31.KillEnemyDataIds = list41; - reference41 = obj31; - obj30.Steps = list40; - reference40 = obj30; - ref QuestSequence reference42 = ref span16[6]; - QuestSequence obj32 = new QuestSequence + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span6 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span6[index3] = 17642u; + obj32.KillEnemyDataIds = list42; + reference41 = obj32; + obj31.Steps = list41; + reference40 = obj31; + num++; + ref QuestSequence reference42 = ref span2[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1046385u, new Vector3(246.20422f, 180.63304f, -41.61145f), 397); - obj32.Steps = list42; - reference42 = obj32; - ref QuestSequence reference43 = ref span16[7]; - QuestSequence obj33 = new QuestSequence + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(4853) }; - obj33.Steps = list43; - reference43 = obj33; + obj34.Steps = list44; + reference43 = obj34; questRoot7.QuestSequence = list2; AddQuest(questId3, questRoot); QuestId questId4 = new QuestId(4853); questRoot = new QuestRoot(); QuestRoot questRoot8 = questRoot; num = 1; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; - questRoot8.Author = list44; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + span = CollectionsMarshal.AsSpan(list45); + index = 0; + span[index] = "liza"; + questRoot8.Author = list45; QuestRoot questRoot9 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span21 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference44 = ref span21[0]; - QuestSequence obj34 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference44 = ref span2[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -333814,92 +402536,110 @@ public static class AssemblyQuestLoader } } }; - obj34.Steps = list45; - reference44 = obj34; - ref QuestSequence reference45 = ref span21[1]; - QuestSequence obj35 = new QuestSequence + obj35.Steps = list46; + reference44 = obj35; + num++; + ref QuestSequence reference45 = ref span2[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2014381u, new Vector3(-64.59149f, -0.5036011f, 7.7667847f), 132) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014381u, new Vector3(-64.59149f, -0.5036011f, 7.7667847f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj35.Steps = list46; - reference45 = obj35; - ref QuestSequence reference46 = ref span21[2]; - QuestSequence obj36 = new QuestSequence + obj36.Steps = list47; + reference45 = obj36; + num++; + ref QuestSequence reference46 = ref span2[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046388u, new Vector3(-275.01337f, 27.017544f, 636.8047f), 146) + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046388u, new Vector3(-275.01337f, 27.017544f, 636.8047f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - obj36.Steps = list47; - reference46 = obj36; - span21[3] = new QuestSequence + obj37.Steps = list48; + reference46 = obj37; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference47 = ref span21[4]; - QuestSequence obj37 = new QuestSequence + num++; + ref QuestSequence reference47 = ref span2[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1046391u, new Vector3(-414.87756f, -0.4116819f, 747.7378f), 146); - obj37.Steps = list48; - reference47 = obj37; - ref QuestSequence reference48 = ref span21[5]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046393u, new Vector3(204.48608f, 8.565186f, -71.488525f), 153) + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046393u, new Vector3(204.48608f, 8.565186f, -71.488525f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj38.Steps = list49; - reference48 = obj38; + obj39.Steps = list50; + reference48 = obj39; questRoot9.QuestSequence = list2; AddQuest(questId4, questRoot); QuestId questId5 = new QuestId(4854); questRoot = new QuestRoot(); QuestRoot questRoot10 = questRoot; num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; - questRoot10.Author = list50; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; + questRoot10.Author = list51; QuestRoot questRoot11 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span22 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference49 = ref span22[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference49 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence8 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep obj39 = new QuestStep(EInteractionType.AcceptQuest, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) + QuestSequence questSequence7 = questSequence; + index2 = 1; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference50 = ref span3[num2]; + QuestStep obj40 = new QuestStep(EInteractionType.AcceptQuest, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -333909,39 +402649,46 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj40 = new SkipAetheryteCondition + SkipAetheryteCondition obj41 = new SkipAetheryteCondition { InSameTerritory = true }; + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span7 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span7[num3] = 133; + obj41.InTerritory = list52; + skipConditions.AetheryteShortcutIf = obj41; + obj40.SkipConditions = skipConditions; num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 133; - obj40.InTerritory = list51; - skipConditions.AetheryteShortcutIf = obj40; - obj39.SkipConditions = skipConditions; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + span4 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB201_04854_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBB201_04854_A1_000_002") }; - obj39.DialogueChoices = list52; - reference50 = obj39; - questSequence8.Steps = list3; + obj40.DialogueChoices = list53; + reference50 = obj40; + questSequence7.Steps = list8; reference49 = questSequence; - ref QuestSequence reference51 = ref span22[1]; - QuestSequence obj41 = new QuestSequence + num++; + ref QuestSequence reference51 = ref span2[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2013738u, new Vector3(-6.9123535f, -1.4191895f, 5.508484f), 132) + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013738u, new Vector3(-6.9123535f, -1.4191895f, 5.508484f), 132) { AethernetShortcut = new AethernetShortcut { @@ -333949,59 +402696,69 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - obj41.Steps = list53; - reference51 = obj41; - ref QuestSequence reference52 = ref span22[2]; - QuestSequence obj42 = new QuestSequence + obj42.Steps = list54; + reference51 = obj42; + num++; + ref QuestSequence reference52 = ref span2[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); - obj42.Steps = list54; - reference52 = obj42; - ref QuestSequence reference53 = ref span22[3]; - QuestSequence obj43 = new QuestSequence + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) { NextQuestId = new QuestId(4855) }; - obj43.Steps = list55; - reference53 = obj43; + obj44.Steps = list56; + reference53 = obj44; questRoot11.QuestSequence = list2; AddQuest(questId5, questRoot); QuestId questId6 = new QuestId(4855); questRoot = new QuestRoot(); QuestRoot questRoot12 = questRoot; num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; - questRoot12.Author = list56; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; + questRoot12.Author = list57; QuestRoot questRoot13 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span23 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference54 = ref span23[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference54 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence9 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span24 = CollectionsMarshal.AsSpan(list3); - span24[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) + QuestSequence questSequence8 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, ItemId = 43538u, @@ -334020,7 +402777,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 41809u, SkipConditions = new SkipConditions @@ -334034,19 +402792,24 @@ public static class AssemblyQuestLoader } } }; - span24[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 132); - span24[3] = new QuestStep(EInteractionType.AcceptQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); - questSequence9.Steps = list3; + num2++; + span3[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 132); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); + questSequence8.Steps = list8; reference54 = questSequence; - ref QuestSequence reference55 = ref span23[1]; - QuestSequence obj44 = new QuestSequence + num++; + ref QuestSequence reference55 = ref span2[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) { AethernetShortcut = new AethernetShortcut { @@ -334054,19 +402817,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj44.Steps = list57; - reference55 = obj44; - ref QuestSequence reference56 = ref span23[2]; + obj45.Steps = list58; + reference55 = obj45; + num++; + ref QuestSequence reference56 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence10 = questSequence; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list58)[0]; - QuestStep obj45 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) + QuestSequence questSequence9 = questSequence; + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; + QuestStep obj46 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) { AethernetShortcut = new AethernetShortcut { @@ -334074,60 +402840,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice + index3 = 1; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + span4 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB202_04855_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBB202_04855_A1_000_001") }; - obj45.DialogueChoices = list59; - reference57 = obj45; - questSequence10.Steps = list58; + obj46.DialogueChoices = list60; + reference57 = obj46; + questSequence9.Steps = list59; reference56 = questSequence; - ref QuestSequence reference58 = ref span23[3]; - QuestSequence obj46 = new QuestSequence + num++; + ref QuestSequence reference58 = ref span2[num]; + QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) { StopDistance = 5f, NextQuestId = new QuestId(4856) }; - obj46.Steps = list60; - reference58 = obj46; + obj47.Steps = list61; + reference58 = obj47; questRoot13.QuestSequence = list2; AddQuest(questId6, questRoot); QuestId questId7 = new QuestId(4856); questRoot = new QuestRoot(); QuestRoot questRoot14 = questRoot; num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; - questRoot14.Author = list61; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "liza"; + questRoot14.Author = list62; QuestRoot questRoot15 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span25 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference59 = ref span25[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference59 = ref span2[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence11 = questSequence; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list62)[0]; - QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) + QuestSequence questSequence10 = questSequence; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; + QuestStep obj48 = new QuestStep(EInteractionType.AcceptQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -334137,123 +402913,147 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj48 = new SkipAetheryteCondition + SkipAetheryteCondition obj49 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 133; - obj48.InTerritory = list63; - skipConditions2.AetheryteShortcutIf = obj48; - obj47.SkipConditions = skipConditions2; - reference60 = obj47; - questSequence11.Steps = list62; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span7 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span7[index3] = 133; + obj49.InTerritory = list64; + skipConditions2.AetheryteShortcutIf = obj49; + obj48.SkipConditions = skipConditions2; + reference60 = obj48; + questSequence10.Steps = list63; reference59 = questSequence; - ref QuestSequence reference61 = ref span25[1]; - QuestSequence obj49 = new QuestSequence + num++; + ref QuestSequence reference61 = ref span2[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj49.Steps = list64; - reference61 = obj49; - ref QuestSequence reference62 = ref span25[2]; - QuestSequence obj50 = new QuestSequence + obj50.Steps = list65; + reference61 = obj50; + num++; + ref QuestSequence reference62 = ref span2[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1049798u, new Vector3(229.84656f, 302.04782f, -289.2348f), 155); - obj50.Steps = list65; - reference62 = obj50; - ref QuestSequence reference63 = ref span25[3]; - QuestSequence obj51 = new QuestSequence + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2013740u, new Vector3(301.13672f, 358.99734f, -575.8297f), 155) + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013740u, new Vector3(301.13672f, 358.99734f, -575.8297f), 155) { Fly = true }; - obj51.Steps = list66; - reference63 = obj51; - ref QuestSequence reference64 = ref span25[4]; - QuestSequence obj52 = new QuestSequence + obj52.Steps = list67; + reference63 = obj52; + num++; + ref QuestSequence reference64 = ref span2[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list67)[0]; - QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(403.64606f, 346.8219f, -669.97644f), 155) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; + QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(403.64606f, 346.8219f, -669.97644f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 17628u; - obj53.KillEnemyDataIds = list68; - reference65 = obj53; - obj52.Steps = list67; - reference64 = obj52; - ref QuestSequence reference66 = ref span25[5]; - QuestSequence obj54 = new QuestSequence + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + span6 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span6[num3] = 17628u; + obj54.KillEnemyDataIds = list69; + reference65 = obj54; + obj53.Steps = list68; + reference64 = obj53; + num++; + ref QuestSequence reference66 = ref span2[num]; + QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049800u, new Vector3(215.77783f, 302f, -253.86438f), 155) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049800u, new Vector3(215.77783f, 302f, -253.86438f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, NextQuestId = new QuestId(4857) }; - obj54.Steps = list69; - reference66 = obj54; + obj55.Steps = list70; + reference66 = obj55; questRoot15.QuestSequence = list2; AddQuest(questId7, questRoot); QuestId questId8 = new QuestId(4857); questRoot = new QuestRoot(); QuestRoot questRoot16 = questRoot; num = 1; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; - questRoot16.Author = list70; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; + questRoot16.Author = list71; QuestRoot questRoot17 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span26 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference67 = ref span26[0]; - QuestSequence obj55 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference67 = ref span2[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + span3 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -334265,17 +403065,20 @@ public static class AssemblyQuestLoader } } }; - obj55.Steps = list71; - reference67 = obj55; - ref QuestSequence reference68 = ref span26[1]; - QuestSequence obj56 = new QuestSequence + obj56.Steps = list72; + reference67 = obj56; + num++; + ref QuestSequence reference68 = ref span2[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.UseItem, 2013741u, new Vector3(107.28613f, 11.9782715f, -76.676636f), 628) + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013741u, new Vector3(107.28613f, 11.9782715f, -76.676636f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334285,19 +403088,22 @@ public static class AssemblyQuestLoader }, ItemId = 2003500u }; - obj56.Steps = list72; - reference68 = obj56; - ref QuestSequence reference69 = ref span26[2]; + obj57.Steps = list73; + reference68 = obj57; + num++; + ref QuestSequence reference69 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence12 = questSequence; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list73)[0]; - QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1049801u, new Vector3(445.9143f, 29.750532f, 770.8705f), 613) + QuestSequence questSequence11 = questSequence; + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; + QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1049801u, new Vector3(445.9143f, 29.750532f, 770.8705f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -334307,123 +403113,153 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span4 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB221_04857_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBB221_04857_A2_000_001") }; - obj57.DialogueChoices = list74; - reference70 = obj57; - questSequence12.Steps = list73; + obj58.DialogueChoices = list75; + reference70 = obj58; + questSequence11.Steps = list74; reference69 = questSequence; - ref QuestSequence reference71 = ref span26[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence13 = questSequence; + QuestSequence questSequence12 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span27 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference72 = ref span27[0]; - QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2013742u, new Vector3(411.79517f, 16.250854f, 832.4863f), 613) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; + QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2013742u, new Vector3(411.79517f, 16.250854f, 832.4863f), 613) { Fly = true, ItemId = 2003559u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new ComplexCombatData + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span8 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 17629u }; - obj58.ComplexCombatData = list75; + obj59.ComplexCombatData = list76; num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span28 = CollectionsMarshal.AsSpan(list76); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj58.CompletionQuestVariablesFlags = list76; - reference72 = obj58; - ref QuestStep reference73 = ref span27[1]; - QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2013743u, new Vector3(338.4298f, 0.6866455f, 793.4232f), 613) - { - Fly = true, - ItemId = 2003559u, - EnemySpawnType = EEnemySpawnType.AfterItemUse - }; - num3 = 1; - List list77 = new List(num3); + List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new ComplexCombatData - { - DataId = 17629u - }; - obj59.ComplexCombatData = list77; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span29 = CollectionsMarshal.AsSpan(list78); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj59.CompletionQuestVariablesFlags = list78; - reference73 = obj59; - ref QuestStep reference74 = ref span27[2]; - QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2013744u, new Vector3(415.61f, 0.7171631f, 730.4341f), 613) + span5 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj59.CompletionQuestVariablesFlags = list77; + reference72 = obj59; + index2++; + ref QuestStep reference73 = ref span3[index2]; + QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2013743u, new Vector3(338.4298f, 0.6866455f, 793.4232f), 613) { Fly = true, ItemId = 2003559u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new ComplexCombatData + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + span8 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span8[num3] = new ComplexCombatData { DataId = 17629u }; - obj60.ComplexCombatData = list79; - reference74 = obj60; - questSequence13.Steps = list3; + obj60.ComplexCombatData = list78; + num3 = 6; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span5 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj60.CompletionQuestVariablesFlags = list79; + reference73 = obj60; + index2++; + ref QuestStep reference74 = ref span3[index2]; + QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2013744u, new Vector3(415.61f, 0.7171631f, 730.4341f), 613) + { + Fly = true, + ItemId = 2003559u, + EnemySpawnType = EEnemySpawnType.AfterItemUse + }; + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + span8 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span8[num3] = new ComplexCombatData + { + DataId = 17629u + }; + obj61.ComplexCombatData = list80; + reference74 = obj61; + questSequence12.Steps = list8; reference71 = questSequence; - ref QuestSequence reference75 = ref span26[4]; - QuestSequence obj61 = new QuestSequence + num++; + ref QuestSequence reference75 = ref span2[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1049802u, new Vector3(444.6936f, 29.73244f, 770.9315f), 613) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049802u, new Vector3(444.6936f, 29.73244f, 770.9315f), 613) { Fly = true }; - obj61.Steps = list80; - reference75 = obj61; - ref QuestSequence reference76 = ref span26[5]; - QuestSequence obj62 = new QuestSequence + obj62.Steps = list81; + reference75 = obj62; + num++; + ref QuestSequence reference76 = ref span2[num]; + QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049803u, new Vector3(105.85181f, 12.000005f, -75.70001f), 628) + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049803u, new Vector3(105.85181f, 12.000005f, -75.70001f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334433,32 +403269,37 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4858) }; - obj62.Steps = list81; - reference76 = obj62; + obj63.Steps = list82; + reference76 = obj63; questRoot17.QuestSequence = list2; AddQuest(questId8, questRoot); QuestId questId9 = new QuestId(4858); questRoot = new QuestRoot(); QuestRoot questRoot18 = questRoot; num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; - questRoot18.Author = list82; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "liza"; + questRoot18.Author = list83; QuestRoot questRoot19 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span30 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference77 = ref span30[0]; - QuestSequence obj63 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference77 = ref span2[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049804u, new Vector3(105.69922f, 12.000006f, -77.37854f), 628) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049804u, new Vector3(105.69922f, 12.000006f, -77.37854f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334474,32 +403315,38 @@ public static class AssemblyQuestLoader } } }; - obj63.Steps = list83; - reference77 = obj63; - ref QuestSequence reference78 = ref span30[1]; - QuestSequence obj64 = new QuestSequence + obj64.Steps = list84; + reference77 = obj64; + num++; + ref QuestSequence reference78 = ref span2[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.UseItem, 2013747u, new Vector3(-57.63336f, 3.9520264f, -142.22937f), 130) + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013747u, new Vector3(-57.63336f, 3.9520264f, -142.22937f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, ItemId = 2003503u }; - obj64.Steps = list84; - reference78 = obj64; - ref QuestSequence reference79 = ref span30[2]; - QuestSequence obj65 = new QuestSequence + obj65.Steps = list85; + reference78 = obj65; + num++; + ref QuestSequence reference79 = ref span2[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) { AethernetShortcut = new AethernetShortcut { @@ -334507,19 +403354,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - obj65.Steps = list85; - reference79 = obj65; - ref QuestSequence reference80 = ref span30[3]; + obj66.Steps = list86; + reference79 = obj66; + num++; + ref QuestSequence reference80 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence14 = questSequence; + QuestSequence questSequence13 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-286.10168f, -32f, 92.85731f), 141) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference81 = ref span3[index2]; + QuestStep questStep5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-286.10168f, -32f, 92.85731f), 141) { StopDistance = 0.5f, Fly = true, @@ -334530,32 +403380,45 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; + QuestStep questStep6 = questStep5; num3 = 9; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span31 = CollectionsMarshal.AsSpan(list86); - span31[0] = 17632u; - span31[1] = 17633u; - span31[2] = 17634u; - span31[3] = 17635u; - span31[4] = 17636u; - span31[5] = 17637u; - span31[6] = 17638u; - span31[7] = 17639u; - span31[8] = 17640u; - obj66.KillEnemyDataIds = list86; - reference81 = obj66; - questSequence14.Steps = list3; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + span6 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span6[index3] = 17632u; + index3++; + span6[index3] = 17633u; + index3++; + span6[index3] = 17634u; + index3++; + span6[index3] = 17635u; + index3++; + span6[index3] = 17636u; + index3++; + span6[index3] = 17637u; + index3++; + span6[index3] = 17638u; + index3++; + span6[index3] = 17639u; + index3++; + span6[index3] = 17640u; + questStep6.KillEnemyDataIds = list87; + reference81 = questStep5; + questSequence13.Steps = list8; reference80 = questSequence; - ref QuestSequence reference82 = ref span30[4]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1049806u, new Vector3(-152.60547f, 14.004998f, 46.73828f), 130) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049806u, new Vector3(-152.60547f, 14.004998f, 46.73828f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -334564,60 +403427,69 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - obj67.Steps = list87; + obj67.Steps = list88; reference82 = obj67; - ref QuestSequence reference83 = ref span30[5]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference83 = ref span2[num]; + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence15 = questSequence; num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list88)[0]; - QuestStep obj68 = new QuestStep(EInteractionType.CompleteQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; + QuestStep obj69 = new QuestStep(EInteractionType.CompleteQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) { StopDistance = 5f }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span4 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB231_04858_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGBB231_04858_A3_000_002") }; - obj68.DialogueChoices = list89; - obj68.NextQuestId = new QuestId(4859); - reference84 = obj68; - questSequence15.Steps = list88; - reference83 = questSequence; + obj69.DialogueChoices = list90; + obj69.NextQuestId = new QuestId(4859); + reference84 = obj69; + obj68.Steps = list89; + reference83 = obj68; questRoot19.QuestSequence = list2; AddQuest(questId9, questRoot); QuestId questId10 = new QuestId(4859); questRoot = new QuestRoot(); QuestRoot questRoot20 = questRoot; num = 1; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; - questRoot20.Author = list90; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "liza"; + questRoot20.Author = list91; QuestRoot questRoot21 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span32 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference85 = ref span32[0]; - QuestSequence obj69 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference85 = ref span2[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -334634,85 +403506,101 @@ public static class AssemblyQuestLoader } } }; - obj69.Steps = list91; - reference85 = obj69; - ref QuestSequence reference86 = ref span32[1]; - QuestSequence obj70 = new QuestSequence + obj70.Steps = list92; + reference85 = obj70; + num++; + ref QuestSequence reference86 = ref span2[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span33 = CollectionsMarshal.AsSpan(list92); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.193803f, 2.4684885f, -133.5494f), 148) + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.193803f, 2.4684885f, -133.5494f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - span33[1] = new QuestStep(EInteractionType.Interact, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); - obj70.Steps = list92; - reference86 = obj70; - ref QuestSequence reference87 = ref span32[2]; - QuestSequence obj71 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list93)[0]; - QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + span4 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB241_04859_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBB241_04859_A2_000_001") }; - questStep5.DialogueChoices = list94; - reference88 = questStep5; - obj71.Steps = list93; - reference87 = obj71; - ref QuestSequence reference89 = ref span32[3]; - QuestSequence obj72 = new QuestSequence + questStep7.DialogueChoices = list95; + reference88 = questStep7; + obj72.Steps = list94; + reference87 = obj72; + num++; + ref QuestSequence reference89 = ref span2[num]; + QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049808u, new Vector3(17.013733f, 2.0418286f, -129.83911f), 148) + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049808u, new Vector3(17.013733f, 2.0418286f, -129.83911f), 148) { StopDistance = 7f }; - obj72.Steps = list95; - reference89 = obj72; + obj73.Steps = list96; + reference89 = obj73; questRoot21.QuestSequence = list2; AddQuest(questId10, questRoot); QuestId questId11 = new QuestId(4860); questRoot = new QuestRoot(); QuestRoot questRoot22 = questRoot; num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; - questRoot22.Author = list96; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; + questRoot22.Author = list97; QuestRoot questRoot23 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span34 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference90 = ref span34[0]; - QuestSequence obj73 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference90 = ref span2[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046835u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046835u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -334724,277 +403612,351 @@ public static class AssemblyQuestLoader } } }; - obj73.Steps = list97; - reference90 = obj73; - ref QuestSequence reference91 = ref span34[1]; - QuestSequence obj74 = new QuestSequence + obj74.Steps = list98; + reference90 = obj74; + num++; + ref QuestSequence reference91 = ref span2[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span35 = CollectionsMarshal.AsSpan(list98); - span35[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987 }; - span35[1] = new QuestStep(EInteractionType.Interact, 2013592u, new Vector3(-0.045776367f, -0.015319824f, -8.98761f), 987); - obj74.Steps = list98; - reference91 = obj74; - ref QuestSequence reference92 = ref span34[2]; - QuestSequence obj75 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1046493u, new Vector3(-80.094604f, 1.2172644f, 28.244385f), 962); - obj75.Steps = list99; - reference92 = obj75; - span34[3] = new QuestSequence + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046493u, new Vector3(-80.094604f, 1.2172644f, 28.244385f), 962); + obj76.Steps = list100; + reference92 = obj76; + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference93 = ref span34[4]; + num++; + ref QuestSequence reference93 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence16 = questSequence; + QuestSequence questSequence14 = questSequence; num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span36 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference94 = ref span36[0]; - QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1046495u, new Vector3(8.194031f, 16.35219f, 11.215393f), 1206) - { - StopDistance = 7f - }; - num3 = 6; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span37 = CollectionsMarshal.AsSpan(list100); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj76.CompletionQuestVariablesFlags = list100; - reference94 = obj76; - ref QuestStep reference95 = ref span36[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1046498u, new Vector3(-4.0742188f, 16.347223f, 1.3884888f), 1206); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span38 = CollectionsMarshal.AsSpan(list101); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list101; - reference95 = questStep6; - ref QuestStep reference96 = ref span36[2]; - QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1046496u, new Vector3(-3.768982f, 16.347233f, -0.5951538f), 1206) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; + QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1046495u, new Vector3(8.194031f, 16.35219f, 11.215393f), 1206) { StopDistance = 7f }; + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + span5 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj77.CompletionQuestVariablesFlags = list101; + reference94 = obj77; + index2++; + ref QuestStep reference95 = ref span3[index2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1046498u, new Vector3(-4.0742188f, 16.347223f, 1.3884888f), 1206); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span39 = CollectionsMarshal.AsSpan(list102); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj77.CompletionQuestVariablesFlags = list102; - reference96 = obj77; - ref QuestStep reference97 = ref span36[3]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1046497u, new Vector3(3.5552979f, 16.861145f, -18.08197f), 1206); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span40 = CollectionsMarshal.AsSpan(list103); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list103; - reference97 = questStep7; - ref QuestStep reference98 = ref span36[4]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1047584u, new Vector3(-8.957031f, 21.347244f, -35.751892f), 1206); + span5 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list102; + reference95 = questStep8; + index2++; + ref QuestStep reference96 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj78.CompletionQuestVariablesFlags = list103; + reference96 = obj78; + index2++; + ref QuestStep reference97 = ref span3[index2]; + QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1046497u, new Vector3(3.5552979f, 16.861145f, -18.08197f), 1206); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span41 = CollectionsMarshal.AsSpan(list104); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list104; - reference98 = questStep8; - questSequence16.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list104; + reference97 = questStep9; + index2++; + ref QuestStep reference98 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list105; + reference98 = questStep10; + questSequence14.Steps = list8; reference93 = questSequence; - ref QuestSequence reference99 = ref span34[5]; - QuestSequence obj78 = new QuestSequence + num++; + ref QuestSequence reference99 = ref span2[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1046502u, new Vector3(2.090454f, 18.350365f, 31.143677f), 1206); - obj78.Steps = list105; - reference99 = obj78; - ref QuestSequence reference100 = ref span34[6]; - QuestSequence obj79 = new QuestSequence + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046503u, new Vector3(110.154785f, -16.560854f, 144.15198f), 1185) + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046503u, new Vector3(110.154785f, -16.560854f, 144.15198f), 1185) { StopDistance = 7f }; - obj79.Steps = list106; - reference100 = obj79; + obj80.Steps = list107; + reference100 = obj80; questRoot23.QuestSequence = list2; AddQuest(questId11, questRoot); QuestId questId12 = new QuestId(4861); questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; - questRoot24.Author = list107; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; + questRoot24.Author = list108; QuestRoot questRoot25 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span42 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference101 = ref span42[0]; - QuestSequence obj80 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference101 = ref span2[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) - { - StopDistance = 7f - }; - obj80.Steps = list108; - reference101 = obj80; - ref QuestSequence reference102 = ref span42[1]; - QuestSequence obj81 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) { StopDistance = 7f }; obj81.Steps = list109; - reference102 = obj81; - ref QuestSequence reference103 = ref span42[2]; + reference101 = obj81; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj82 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(22.221941f, -14f, 94.1764f), 1185) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) { - StopDistance = 0.25f + StopDistance = 7f }; obj82.Steps = list110; - reference103 = obj82; - ref QuestSequence reference104 = ref span42[3]; + reference102 = obj82; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj83 = new QuestSequence { - Sequence = 3 + Sequence = 2 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(-12.395758f, 0f, 21.762516f), 1185) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(22.221941f, -14f, 94.1764f), 1185) { StopDistance = 0.25f }; obj83.Steps = list111; - reference104 = obj83; - ref QuestSequence reference105 = ref span42[4]; + reference103 = obj83; + num++; + ref QuestSequence reference104 = ref span2[num]; + QuestSequence obj84 = new QuestSequence + { + Sequence = 3 + }; + num2 = 1; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(-12.395758f, 0f, 21.762516f), 1185) + { + StopDistance = 0.25f + }; + obj84.Steps = list112; + reference104 = obj84; + num++; + ref QuestSequence reference105 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence17 = questSequence; - num2 = 4; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span43 = CollectionsMarshal.AsSpan(list112); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) + QuestSequence questSequence15 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) { StopDistance = 7f, Aetheryte = EAetheryteLocation.Tuliyollal }; - span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); - span43[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBrightploomPost }; - span43[3] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(105.193634f, 42f, -341.83524f), 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(105.193634f, 42f, -341.83524f), 1185) { StopDistance = 0.25f }; - questSequence17.Steps = list112; + questSequence15.Steps = list8; reference105 = questSequence; - ref QuestSequence reference106 = ref span42[5]; - QuestSequence obj84 = new QuestSequence + num++; + ref QuestSequence reference106 = ref span2[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 5 }; num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(41.811092f, 47.072273f, -408.94568f), 1185) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(41.811092f, 47.072273f, -408.94568f), 1185) { StopDistance = 0.25f }; - obj84.Steps = list113; - reference106 = obj84; - ref QuestSequence reference107 = ref span42[6]; - QuestSequence obj85 = new QuestSequence + obj85.Steps = list113; + reference106 = obj85; + num++; + ref QuestSequence reference107 = ref span2[num]; + QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046508u, new Vector3(40.878906f, 46.999996f, -412.9854f), 1185) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046508u, new Vector3(40.878906f, 46.999996f, -412.9854f), 1185) { StopDistance = 5f }; - obj85.Steps = list114; - reference107 = obj85; + obj86.Steps = list114; + reference107 = obj86; questRoot25.QuestSequence = list2; AddQuest(questId12, questRoot); QuestId questId13 = new QuestId(4862); @@ -335003,103 +403965,123 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; questRoot26.Author = list115; QuestRoot questRoot27 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span44 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference108 = ref span44[0]; - QuestSequence obj86 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference108 = ref span2[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 0 }; num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) { StopDistance = 7f }; - obj86.Steps = list116; - reference108 = obj86; - ref QuestSequence reference109 = ref span44[1]; - QuestSequence obj87 = new QuestSequence + obj87.Steps = list116; + reference108 = obj87; + num++; + ref QuestSequence reference109 = ref span2[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) { StopDistance = 7f }; - obj87.Steps = list117; - reference109 = obj87; - ref QuestSequence reference110 = ref span44[2]; - QuestSequence obj88 = new QuestSequence + obj88.Steps = list117; + reference109 = obj88; + num++; + ref QuestSequence reference110 = ref span2[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 2 }; num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(114.4164f, 46.999996f, -125.71052f), 1185) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(114.4164f, 46.999996f, -125.71052f), 1185) { StopDistance = 0.25f }; - obj88.Steps = list118; - reference110 = obj88; - ref QuestSequence reference111 = ref span44[3]; - QuestSequence obj89 = new QuestSequence + obj89.Steps = list118; + reference110 = obj89; + num++; + ref QuestSequence reference111 = ref span2[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(-182.43765f, 39.935753f, 16.35889f), 1185) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(-182.43765f, 39.935753f, 16.35889f), 1185) { StopDistance = 0.25f }; - obj89.Steps = list119; - reference111 = obj89; - ref QuestSequence reference112 = ref span44[4]; - QuestSequence obj90 = new QuestSequence + obj90.Steps = list119; + reference111 = obj90; + num++; + ref QuestSequence reference112 = ref span2[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 4 }; num2 = 2; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span45 = CollectionsMarshal.AsSpan(list120); - span45[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheResplendentQuarter }; - span45[1] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-317.23196f, 2.9999998f, -13.00843f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-317.23196f, 2.9999998f, -13.00843f), 1185) { StopDistance = 0.25f }; - obj90.Steps = list120; - reference112 = obj90; - ref QuestSequence reference113 = ref span44[5]; - QuestSequence obj91 = new QuestSequence + obj91.Steps = list120; + reference112 = obj91; + num++; + ref QuestSequence reference113 = ref span2[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span46 = CollectionsMarshal.AsSpan(list121); - span46[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { Comment = "Dirigible Landing", AethernetShard = EAetheryteLocation.TuliyollalDirigibleLanding }; - span46[1] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-273.17014f, 0.0722692f, 129.50276f), 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-273.17014f, 0.0722692f, 129.50276f), 1185) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -335108,19 +404090,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj91.Steps = list121; - reference113 = obj91; - ref QuestSequence reference114 = ref span44[6]; - QuestSequence obj92 = new QuestSequence + obj92.Steps = list121; + reference113 = obj92; + num++; + ref QuestSequence reference114 = ref span2[num]; + QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046510u, new Vector3(-195.6665f, -4.927734f, 132.18884f), 1185); - obj92.Steps = list122; - reference114 = obj92; + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046510u, new Vector3(-195.6665f, -4.927734f, 132.18884f), 1185); + obj93.Steps = list122; + reference114 = obj93; questRoot27.QuestSequence = list2; AddQuest(questId13, questRoot); QuestId questId14 = new QuestId(4863); @@ -335129,134 +404114,165 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot28.Author = list123; QuestRoot questRoot29 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span47 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference115 = ref span47[0]; - QuestSequence obj93 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference115 = ref span2[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046511u, new Vector3(-196.58203f, -5.0000086f, 127.18384f), 1185) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + span3 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046511u, new Vector3(-196.58203f, -5.0000086f, 127.18384f), 1185) { StopDistance = 7f }; - obj93.Steps = list124; - reference115 = obj93; - ref QuestSequence reference116 = ref span47[1]; + obj94.Steps = list124; + reference115 = obj94; + num++; + ref QuestSequence reference116 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence18 = questSequence; + QuestSequence questSequence16 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep obj94 = new QuestStep(EInteractionType.Interact, 2013593u, new Vector3(-195.75806f, -4.928711f, 129.80847f), 1185) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference117 = ref span3[index2]; + QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2013593u, new Vector3(-195.75806f, -4.928711f, 129.80847f), 1185) { StopDistance = 4.5f }; num3 = 3; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span48 = CollectionsMarshal.AsSpan(list125); - span48[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q3_000_000") }; - span48[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q10_000_000") }; - span48[2] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMA104_04863_A2_000_001") }; - obj94.DialogueChoices = list125; - num3 = 8; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span49 = CollectionsMarshal.AsSpan(list126); - span49[0] = 0u; - span49[1] = 1u; - span49[2] = 2u; - span49[3] = 3u; - span49[4] = 0u; - span49[5] = 1u; - span49[6] = 2u; - span49[7] = 3u; - obj94.PointMenuChoices = list126; - reference117 = obj94; - questSequence18.Steps = list3; + obj95.DialogueChoices = list125; + index3 = 8; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + span6 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span6[num3] = 0u; + num3++; + span6[num3] = 1u; + num3++; + span6[num3] = 2u; + num3++; + span6[num3] = 3u; + num3++; + span6[num3] = 0u; + num3++; + span6[num3] = 1u; + num3++; + span6[num3] = 2u; + num3++; + span6[num3] = 3u; + obj95.PointMenuChoices = list126; + reference117 = obj95; + questSequence16.Steps = list8; reference116 = questSequence; - ref QuestSequence reference118 = ref span47[2]; - QuestSequence obj95 = new QuestSequence + num++; + ref QuestSequence reference118 = ref span2[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span50 = CollectionsMarshal.AsSpan(list127); - span50[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheForardCabins }; - span50[1] = new QuestStep(EInteractionType.Interact, 1046512u, new Vector3(-46.433228f, -6.080007f, 161.08948f), 1185); - obj95.Steps = list127; - reference118 = obj95; - ref QuestSequence reference119 = ref span47[3]; - QuestSequence obj96 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 3 }; num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; - obj96.Steps = list128; - reference119 = obj96; - ref QuestSequence reference120 = ref span47[4]; - QuestSequence obj97 = new QuestSequence + obj97.Steps = list128; + reference119 = obj97; + num++; + ref QuestSequence reference120 = ref span2[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1046515u, new Vector3(-44.90735f, -10.000009f, 138.71973f), 1185); - obj97.Steps = list129; - reference120 = obj97; - ref QuestSequence reference121 = ref span47[5]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence19 = questSequence; + QuestSequence questSequence17 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span51 = CollectionsMarshal.AsSpan(list3); - span51[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBaysideBevyMarketplace }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) { Comment = "Resplentend Quarter Lamp nav", AethernetShortcut = new AethernetShortcut @@ -335265,12 +404281,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - span51[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalVollokShoonsa }; - span51[3] = new QuestStep(EInteractionType.CompleteQuest, 1046517u, new Vector3(-178.97314f, 120.749985f, -320.21063f), 1185); - questSequence19.Steps = list3; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046517u, new Vector3(-178.97314f, 120.749985f, -320.21063f), 1185); + questSequence17.Steps = list8; reference121 = questSequence; questRoot29.QuestSequence = list2; AddQuest(questId14, questRoot); @@ -335280,50 +404298,61 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot30.Author = list130; QuestRoot questRoot31 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span52 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference122 = ref span52[0]; - QuestSequence obj98 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046522u, new Vector3(-177.17255f, 120.79523f, -318.37952f), 1185) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046522u, new Vector3(-177.17255f, 120.79523f, -318.37952f), 1185) { StopDistance = 5f }; - obj98.Steps = list131; - reference122 = obj98; - ref QuestSequence reference123 = ref span52[1]; - QuestSequence obj99 = new QuestSequence + obj99.Steps = list131; + reference122 = obj99; + num++; + ref QuestSequence reference123 = ref span2[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 1 }; num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1046523u, new Vector3(-54.276367f, 95.49999f, -100.75531f), 1185) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046523u, new Vector3(-54.276367f, 95.49999f, -100.75531f), 1185) { StopDistance = 5f }; - obj99.Steps = list132; - reference123 = obj99; - ref QuestSequence reference124 = ref span52[2]; - QuestSequence obj100 = new QuestSequence + obj100.Steps = list132; + reference123 = obj100; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1046528u, new Vector3(-182.29956f, -5.0000095f, 121.29382f), 1185) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046528u, new Vector3(-182.29956f, -5.0000095f, 121.29382f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -335331,30 +404360,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - obj100.Steps = list133; - reference124 = obj100; - ref QuestSequence reference125 = ref span52[3]; - QuestSequence obj101 = new QuestSequence + obj101.Steps = list133; + reference124 = obj101; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 3 }; num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1046533u, new Vector3(-164.29395f, -14.999356f, 208.72815f), 1185); - obj101.Steps = list134; - reference125 = obj101; - ref QuestSequence reference126 = ref span52[4]; - questSequence = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence20 = questSequence; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list135)[0]; - QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2013594u, new Vector3(-36.087585f, -10.055725f, 145.28113f), 1185) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference127 = ref span3[num2]; + QuestStep obj104 = new QuestStep(EInteractionType.Interact, 2013594u, new Vector3(-36.087585f, -10.055725f, 145.28113f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -335365,26 +404399,31 @@ public static class AssemblyQuestLoader num3 = 1; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA105_04864_SYSTEM_000_060") }; - obj102.DialogueChoices = list136; - reference127 = obj102; - questSequence20.Steps = list135; - reference126 = questSequence; - ref QuestSequence reference128 = ref span52[5]; - QuestSequence obj103 = new QuestSequence + obj104.DialogueChoices = list136; + reference127 = obj104; + obj103.Steps = list135; + reference126 = obj103; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); - obj103.Steps = list137; - reference128 = obj103; + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); + obj105.Steps = list137; + reference128 = obj105; questRoot31.QuestSequence = list2; AddQuest(questId15, questRoot); QuestId questId16 = new QuestId(4865); @@ -335393,67 +404432,82 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; questRoot32.Author = list138; QuestRoot questRoot33 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span53 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference129 = ref span53[0]; - QuestSequence obj104 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046684u, new Vector3(-33.218933f, -10.00001f, 147.41736f), 1185) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046684u, new Vector3(-33.218933f, -10.00001f, 147.41736f), 1185) { StopDistance = 7f }; - obj104.Steps = list139; - reference129 = obj104; - ref QuestSequence reference130 = ref span53[1]; - QuestSequence obj105 = new QuestSequence + obj106.Steps = list139; + reference129 = obj106; + num++; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 1 }; num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1046686u, new Vector3(-287.28168f, -8.941224E-06f, 129.93054f), 1185); - obj105.Steps = list140; - reference130 = obj105; - span53[2] = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046686u, new Vector3(-287.28168f, -8.941224E-06f, 129.93054f), 1185); + obj107.Steps = list140; + reference130 = obj107; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference131 = ref span53[3]; - QuestSequence obj106 = new QuestSequence + num++; + ref QuestSequence reference131 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1046691u, new Vector3(-289.53992f, 10.95645f, -791.56177f), 1188) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046691u, new Vector3(-289.53992f, 10.95645f, -791.56177f), 1188) { DisableNavmesh = true }; - obj106.Steps = list141; - reference131 = obj106; - ref QuestSequence reference132 = ref span53[4]; - QuestSequence obj107 = new QuestSequence + obj108.Steps = list141; + reference131 = obj108; + num++; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046694u, new Vector3(-264.8203f, 5.6243224f, -571.80133f), 1188); - obj107.Steps = list142; - reference132 = obj107; + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046694u, new Vector3(-264.8203f, 5.6243224f, -571.80133f), 1188); + obj109.Steps = list142; + reference132 = obj109; questRoot33.QuestSequence = list2; AddQuest(questId16, questRoot); QuestId questId17 = new QuestId(4866); @@ -335462,134 +404516,177 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot34.Author = list143; QuestRoot questRoot35 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span54 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference133 = ref span54[0]; - QuestSequence obj108 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046695u, new Vector3(-266.5904f, 5.6852775f, -570.0008f), 1188) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046695u, new Vector3(-266.5904f, 5.6852775f, -570.0008f), 1188) { StopDistance = 7f }; - obj108.Steps = list144; - reference133 = obj108; - ref QuestSequence reference134 = ref span54[1]; + obj110.Steps = list144; + reference133 = obj110; + num++; + ref QuestSequence reference134 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence21 = questSequence; + QuestSequence questSequence18 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span55 = CollectionsMarshal.AsSpan(list3); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-176.0706f, 6.27715f, -486.288f), 1188); - span55[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-176.0706f, 6.27715f, -486.288f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaOkHanu }; - ref QuestStep reference135 = ref span55[2]; - QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1046699u, new Vector3(-218.555f, 6.4016876f, -477.77527f), 1188); - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span56 = CollectionsMarshal.AsSpan(list145); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list145; - reference135 = questStep9; - ref QuestStep reference136 = ref span55[3]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013621u, new Vector3(-232.95953f, 6.7596436f, -479.2096f), 1188); + index2++; + ref QuestStep reference135 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list145; + reference135 = questStep11; + index2++; + ref QuestStep reference136 = ref span3[index2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013621u, new Vector3(-232.95953f, 6.7596436f, -479.2096f), 1188); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span57 = CollectionsMarshal.AsSpan(list146); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list146; - reference136 = questStep10; - questSequence21.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list146; + reference136 = questStep12; + questSequence18.Steps = list8; reference134 = questSequence; - ref QuestSequence reference137 = ref span54[2]; - QuestSequence obj109 = new QuestSequence + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1046700u, new Vector3(-255.14612f, 2.5820477f, -468.19257f), 1188); - obj109.Steps = list147; - reference137 = obj109; - ref QuestSequence reference138 = ref span54[3]; + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + span3 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence22 = questSequence; + QuestSequence questSequence19 = questSequence; num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span58 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference139 = ref span58[0]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2013622u, new Vector3(-167.58984f, 7.5531616f, -532.6162f), 1188); - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span59 = CollectionsMarshal.AsSpan(list148); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list148; - reference139 = questStep11; - ref QuestStep reference140 = ref span58[1]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013623u, new Vector3(-97.85614f, 11.917236f, -528.52673f), 1188); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference139 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list148; + reference139 = questStep13; + index2++; + ref QuestStep reference140 = ref span3[index2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013623u, new Vector3(-97.85614f, 11.917236f, -528.52673f), 1188); num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span60 = CollectionsMarshal.AsSpan(list149); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list149; - reference140 = questStep12; - questSequence22.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep14.CompletionQuestVariablesFlags = list149; + reference140 = questStep14; + questSequence19.Steps = list8; reference138 = questSequence; - ref QuestSequence reference141 = ref span54[4]; - QuestSequence obj110 = new QuestSequence + num++; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046701u, new Vector3(-103.16626f, 9.773315f, -533.37915f), 1188); - obj110.Steps = list150; - reference141 = obj110; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046701u, new Vector3(-103.16626f, 9.773315f, -533.37915f), 1188); + obj112.Steps = list150; + reference141 = obj112; questRoot35.QuestSequence = list2; AddQuest(questId17, questRoot); QuestId questId18 = new QuestId(4867); @@ -335598,146 +404695,192 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; questRoot36.Author = list151; QuestRoot questRoot37 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span61 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference142 = ref span61[0]; - QuestSequence obj111 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 0 }; num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046702u, new Vector3(-122.453674f, 9.842161f, -441.21466f), 1188) + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046702u, new Vector3(-122.453674f, 9.842161f, -441.21466f), 1188) { StopDistance = 5f }; - obj111.Steps = list152; - reference142 = obj111; - ref QuestSequence reference143 = ref span61[1]; - QuestSequence obj112 = new QuestSequence + obj113.Steps = list152; + reference142 = obj113; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1046707u, new Vector3(39.16992f, 0.998726f, -390.0359f), 1188); - obj112.Steps = list153; - reference143 = obj112; - ref QuestSequence reference144 = ref span61[2]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence23 = questSequence; + QuestSequence questSequence20 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span62 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference145 = ref span62[0]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2013624u, new Vector3(86.71704f, -0.13739014f, -388.8152f), 1188); - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span63 = CollectionsMarshal.AsSpan(list154); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list154; - reference145 = questStep13; - ref QuestStep reference146 = ref span62[1]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1046712u, new Vector3(142.1073f, 0.7218611f, -421.5f), 1188); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference145 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list154; + reference145 = questStep15; + index2++; + ref QuestStep reference146 = ref span3[index2]; + QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1046712u, new Vector3(142.1073f, 0.7218611f, -421.5f), 1188); num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span64 = CollectionsMarshal.AsSpan(list155); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list155; - reference146 = questStep14; - ref QuestStep reference147 = ref span62[2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013625u, new Vector3(131.0597f, -0.13739014f, -370.2907f), 1188); - num3 = 6; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - Span span65 = CollectionsMarshal.AsSpan(list156); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list156; - reference147 = questStep15; - ref QuestStep reference148 = ref span62[3]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013626u, new Vector3(177.44714f, -0.13739014f, -371.63348f), 1188); + span5 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list155; + reference146 = questStep16; + index2++; + ref QuestStep reference147 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list156; + reference147 = questStep17; + index2++; + ref QuestStep reference148 = ref span3[index2]; + QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2013626u, new Vector3(177.44714f, -0.13739014f, -371.63348f), 1188); num3 = 6; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - Span span66 = CollectionsMarshal.AsSpan(list157); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list157; - reference148 = questStep16; - questSequence23.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list157; + reference148 = questStep18; + questSequence20.Steps = list8; reference144 = questSequence; - ref QuestSequence reference149 = ref span61[3]; - QuestSequence obj113 = new QuestSequence + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1046713u, new Vector3(225.11633f, -0.40000004f, -352.19354f), 1188); - obj113.Steps = list158; - reference149 = obj113; - ref QuestSequence reference150 = ref span61[4]; - QuestSequence obj114 = new QuestSequence + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 4 }; num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Snipe, 1046718u, new Vector3(-101.18262f, 9.773315f, -532.15845f), 1188) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 1046718u, new Vector3(-101.18262f, 9.773315f, -532.15845f), 1188) { Comment = "Inspect Eye, Carrying Pole and Tail", AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj114.Steps = list159; - reference150 = obj114; - ref QuestSequence reference151 = ref span61[5]; - QuestSequence obj115 = new QuestSequence + obj116.Steps = list159; + reference150 = obj116; + num++; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046723u, new Vector3(-103.379944f, 9.773315f, -537.0718f), 1188) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046723u, new Vector3(-103.379944f, 9.773315f, -537.0718f), 1188) { StopDistance = 7f }; - obj115.Steps = list160; - reference151 = obj115; + obj117.Steps = list160; + reference151 = obj117; questRoot37.QuestSequence = list2; AddQuest(questId18, questRoot); QuestId questId19 = new QuestId(4868); @@ -335746,339 +404889,411 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list161); + index = 0; + span[index] = "liza"; questRoot38.Author = list161; QuestRoot questRoot39 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span67 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference152 = ref span67[0]; - QuestSequence obj116 = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 0 }; num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046725u, new Vector3(-105.85187f, 9.773315f, -536.9192f), 1188) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046725u, new Vector3(-105.85187f, 9.773315f, -536.9192f), 1188) { StopDistance = 7f }; - obj116.Steps = list162; - reference152 = obj116; - ref QuestSequence reference153 = ref span67[1]; - QuestSequence obj117 = new QuestSequence + obj118.Steps = list162; + reference152 = obj118; + num++; + ref QuestSequence reference153 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1046840u, new Vector3(214.52649f, 10.257622f, -577.11145f), 1188); - obj117.Steps = list163; - reference153 = obj117; - ref QuestSequence reference154 = ref span67[2]; - QuestSequence obj118 = new QuestSequence + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 2 }; num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span68 = CollectionsMarshal.AsSpan(list164); - span68[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013934u, new Vector3(299.48877f, 1.3884888f, -688.4413f), 1188) + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013934u, new Vector3(299.48877f, 1.3884888f, -688.4413f), 1188) { AetherCurrentId = 2818419u }; - span68[1] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188); - obj118.Steps = list164; - reference154 = obj118; - ref QuestSequence reference155 = ref span67[3]; - QuestSequence obj119 = new QuestSequence + index2++; + span3[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 span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1046729u, new Vector3(323.0487f, 4.24628f, -638.4833f), 1188); - obj119.Steps = list165; - reference155 = obj119; - ref QuestSequence reference156 = ref span67[4]; - QuestSequence obj120 = new QuestSequence + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 4 }; num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1046731u, new Vector3(-182.20801f, 2.399998f, -388.50995f), 1188) + span3 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046731u, new Vector3(-182.20801f, 2.399998f, -388.50995f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj120.Steps = list166; - reference156 = obj120; - ref QuestSequence reference157 = ref span67[5]; - QuestSequence obj121 = new QuestSequence + obj122.Steps = list166; + reference156 = obj122; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1046733u, new Vector3(-445.97546f, 1.5936834f, -205.2796f), 1188); - obj121.Steps = list167; - reference157 = obj121; - ref QuestSequence reference158 = ref span67[6]; - QuestSequence obj122 = new QuestSequence + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 6 }; num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2013627u, new Vector3(-576.2875f, -0.015319824f, -140.42883f), 1188); - obj122.Steps = list168; - reference158 = obj122; - ref QuestSequence reference159 = ref span67[7]; - QuestSequence obj123 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span69 = CollectionsMarshal.AsSpan(list169); - span69[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013935u, new Vector3(-599.57275f, 5.142273f, -179.46143f), 1188) + index2 = 2; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013935u, new Vector3(-599.57275f, 5.142273f, -179.46143f), 1188) { AetherCurrentId = 2818420u }; - span69[1] = new QuestStep(EInteractionType.Interact, 1046733u, new Vector3(-445.97546f, 1.5936834f, -205.2796f), 1188); - obj123.Steps = list169; - reference159 = obj123; - ref QuestSequence reference160 = ref span67[8]; + num2++; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 8 }; - QuestSequence questSequence24 = questSequence; + QuestSequence questSequence21 = questSequence; num2 = 4; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span70 = CollectionsMarshal.AsSpan(list170); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-510.37933f, -0.39999998f, -277.78192f), 1188); - span70[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-521.0261f, -0.40000004f, -329.19336f), 1188); - span70[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013936u, new Vector3(-638.056f, 6.5460815f, -486.50342f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-510.37933f, -0.39999998f, -277.78192f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-521.0261f, -0.40000004f, -329.19336f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013936u, new Vector3(-638.056f, 6.5460815f, -486.50342f), 1188) { AetherCurrentId = 2818423u }; - span70[3] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - questSequence24.Steps = list170; + questSequence21.Steps = list8; reference160 = questSequence; - ref QuestSequence reference161 = ref span67[9]; - QuestSequence obj124 = new QuestSequence + num++; + ref QuestSequence reference161 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj124.Steps = list171; - reference161 = obj124; + obj126.Steps = list170; + reference161 = obj126; questRoot39.QuestSequence = list2; AddQuest(questId19, questRoot); QuestId questId20 = new QuestId(4869); questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; - questRoot40.Author = list172; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; + questRoot40.Author = list171; QuestRoot questRoot41 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span71 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference162 = ref span71[0]; - QuestSequence obj125 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188); - obj125.Steps = list173; - reference162 = obj125; - ref QuestSequence reference163 = ref span71[1]; - QuestSequence obj126 = new QuestSequence + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + span3 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1046738u, new Vector3(-155.6878f, 2.7463636f, -383.1388f), 1188); - obj126.Steps = list174; - reference163 = obj126; - ref QuestSequence reference164 = ref span71[2]; - QuestSequence obj127 = new QuestSequence + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list175)[0]; - QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2013630u, new Vector3(-63.21814f, 2.1820068f, -237.90344f), 1188) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + ref QuestStep reference165 = ref span3[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Combat, 2013630u, new Vector3(-63.21814f, 2.1820068f, -237.90344f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 17688u; - obj128.KillEnemyDataIds = list176; - reference165 = obj128; - obj127.Steps = list175; - reference164 = obj127; - ref QuestSequence reference166 = ref span71[3]; - QuestSequence obj129 = new QuestSequence + index3 = 1; + List list175 = new List(index3); + CollectionsMarshal.SetCount(list175, index3); + span6 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span6[num3] = 17688u; + obj130.KillEnemyDataIds = list175; + reference165 = obj130; + obj129.Steps = list174; + reference164 = obj129; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list177)[0]; - QuestStep obj130 = new QuestStep(EInteractionType.Combat, 2013631u, new Vector3(217.05945f, 1.083313f, -218.61603f), 1188) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + ref QuestStep reference167 = ref span3[num2]; + QuestStep obj132 = new QuestStep(EInteractionType.Combat, 2013631u, new Vector3(217.05945f, 1.083313f, -218.61603f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = 17689u; - obj130.KillEnemyDataIds = list178; - reference167 = obj130; - obj129.Steps = list177; - reference166 = obj129; - ref QuestSequence reference168 = ref span71[4]; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + span6 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span6[index3] = 17689u; + obj132.KillEnemyDataIds = list177; + reference167 = obj132; + obj131.Steps = list176; + reference166 = obj131; + num++; + ref QuestSequence reference168 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence25 = questSequence; + QuestSequence questSequence22 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span72 = CollectionsMarshal.AsSpan(list3); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.21774f, 7.475274f, -215.19496f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.21774f, 7.475274f, -215.19496f), 1188) { DisableNavmesh = true, Mount = true }; - span72[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013938u, new Vector3(516.80774f, 17.959839f, -348.0431f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013938u, new Vector3(516.80774f, 17.959839f, -348.0431f), 1188) { AetherCurrentId = 2818425u }; - ref QuestStep reference169 = ref span72[2]; - QuestStep obj131 = new QuestStep(EInteractionType.Combat, 2013632u, new Vector3(656.7025f, 7.309021f, -289.44843f), 1188) + index2++; + ref QuestStep reference169 = ref span3[index2]; + QuestStep obj133 = new QuestStep(EInteractionType.Combat, 2013632u, new Vector3(656.7025f, 7.309021f, -289.44843f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = 17690u; - obj131.KillEnemyDataIds = list179; - reference169 = obj131; - questSequence25.Steps = list3; + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + span6 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span6[num3] = 17690u; + obj133.KillEnemyDataIds = list178; + reference169 = obj133; + questSequence22.Steps = list8; reference168 = questSequence; - ref QuestSequence reference170 = ref span71[5]; - QuestSequence obj132 = new QuestSequence + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span73 = CollectionsMarshal.AsSpan(list180); - span73[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + index2 = 3; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaDockPoga }; - span73[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013937u, new Vector3(918.15063f, 10.116699f, -404.10468f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013937u, new Vector3(918.15063f, 10.116699f, -404.10468f), 1188) { AetherCurrentId = 2818424u }; - span73[2] = new QuestStep(EInteractionType.Interact, 2013633u, new Vector3(659.4186f, 26.321777f, -515.343f), 1188); - obj132.Steps = list180; - reference170 = obj132; - ref QuestSequence reference171 = ref span71[6]; - QuestSequence obj133 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046744u, new Vector3(-101.64038f, 9.773315f, -535.3323f), 1188) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046744u, new Vector3(-101.64038f, 9.773315f, -535.3323f), 1188) { StopDistance = 7f }; - obj133.Steps = list181; - reference171 = obj133; + obj135.Steps = list180; + reference171 = obj135; questRoot41.QuestSequence = list2; AddQuest(questId20, questRoot); QuestId questId21 = new QuestId(4870); questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; - questRoot42.Author = list182; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + span = CollectionsMarshal.AsSpan(list181); + index = 0; + span[index] = "liza"; + questRoot42.Author = list181; QuestRoot questRoot43 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span74 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference172 = ref span74[0]; - QuestSequence obj134 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188) { StopDistance = 7f }; - obj134.Steps = list183; - reference172 = obj134; - ref QuestSequence reference173 = ref span74[1]; + obj136.Steps = list182; + reference172 = obj136; + num++; + ref QuestSequence reference173 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence26 = questSequence; + QuestSequence questSequence23 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span75 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference174 = ref span75[0]; - QuestStep obj135 = new QuestStep(EInteractionType.Say, 1046753u, new Vector3(-205.768f, 6.277146f, -439.3531f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference174 = ref span3[index2]; + QuestStep obj137 = new QuestStep(EInteractionType.Say, 1046753u, new Vector3(-205.768f, 6.277146f, -439.3531f), 1188) { ChatMessage = new ChatMessage { @@ -336086,19 +405301,53 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span76 = CollectionsMarshal.AsSpan(list184); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj135.CompletionQuestVariablesFlags = list184; - reference174 = obj135; - ref QuestStep reference175 = ref span75[1]; - QuestStep obj136 = new QuestStep(EInteractionType.Say, 1046699u, new Vector3(-218.555f, 6.4016876f, -477.77527f), 1188) + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + span5 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj137.CompletionQuestVariablesFlags = list183; + reference174 = obj137; + index2++; + ref QuestStep reference175 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj138.CompletionQuestVariablesFlags = list184; + reference175 = obj138; + index2++; + ref QuestStep reference176 = ref span3[index2]; + QuestStep obj139 = new QuestStep(EInteractionType.Say, 1046752u, new Vector3(-218.18878f, 9.558153f, -545.0065f), 1188) { ChatMessage = new ChatMessage { @@ -336108,92 +405357,91 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span77 = CollectionsMarshal.AsSpan(list185); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj136.CompletionQuestVariablesFlags = list185; - reference175 = obj136; - ref QuestStep reference176 = ref span75[2]; - QuestStep obj137 = new QuestStep(EInteractionType.Say, 1046752u, new Vector3(-218.18878f, 9.558153f, -545.0065f), 1188) - { - ChatMessage = new ChatMessage - { - Key = "TEXT_KINGMA111_04870_SAYTODO_000_046" - } - }; - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span78 = CollectionsMarshal.AsSpan(list186); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj137.CompletionQuestVariablesFlags = list186; - reference176 = obj137; - questSequence26.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj139.CompletionQuestVariablesFlags = list185; + reference176 = obj139; + questSequence23.Steps = list8; reference173 = questSequence; - ref QuestSequence reference177 = ref span74[2]; - QuestSequence obj138 = new QuestSequence + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188); - obj138.Steps = list187; - reference177 = obj138; - ref QuestSequence reference178 = ref span74[3]; - QuestSequence obj139 = new QuestSequence + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1046754u, new Vector3(64.774536f, 0.7218611f, -385.85492f), 1188); - obj139.Steps = list188; - reference178 = obj139; - ref QuestSequence reference179 = ref span74[4]; - QuestSequence obj140 = new QuestSequence + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1051615u, new Vector3(-46.76892f, 1.60855f, -390.2495f), 1188) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051615u, new Vector3(-46.76892f, 1.60855f, -390.2495f), 1188) { StopDistance = 5f }; - obj140.Steps = list189; - reference179 = obj140; - ref QuestSequence reference180 = ref span74[5]; + obj142.Steps = list188; + reference179 = obj142; + num++; + ref QuestSequence reference180 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence27 = questSequence; + QuestSequence questSequence24 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span79 = CollectionsMarshal.AsSpan(list3); - span79[0] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) { PickUpQuestId = new QuestId(5064) }; - span79[1] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188) { PickUpQuestId = new QuestId(5081) }; - span79[2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -336202,7 +405450,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - questSequence27.Steps = list3; + questSequence24.Steps = list8; reference180 = questSequence; questRoot43.QuestSequence = list2; AddQuest(questId21, questRoot); @@ -336210,35 +405458,43 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; - questRoot44.Author = list190; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + span = CollectionsMarshal.AsSpan(list189); + index = 0; + span[index] = "liza"; + questRoot44.Author = list189; QuestRoot questRoot45 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span80 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference181 = ref span80[0]; - QuestSequence obj141 = new QuestSequence + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047743u, new Vector3(-32.24237f, -10.00001f, 145.5863f), 1185); - obj141.Steps = list191; - reference181 = obj141; - ref QuestSequence reference182 = ref span80[1]; - QuestSequence obj142 = new QuestSequence + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1046542u, new Vector3(-277.54633f, 1.6659498E-05f, 90.50122f), 1185) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046542u, new Vector3(-277.54633f, 1.6659498E-05f, 90.50122f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -336246,351 +405502,447 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj142.Steps = list192; - reference182 = obj142; - span80[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference183 = ref span80[3]; - QuestSequence obj143 = new QuestSequence + obj144.Steps = list191; + reference182 = obj144; + num++; + ref QuestSequence reference183 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046548u, new Vector3(400.2898f, -155.52307f, -383.19983f), 1187); - obj143.Steps = list193; - reference183 = obj143; + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046548u, new Vector3(400.2898f, -155.52307f, -383.19983f), 1187); + obj145.Steps = list192; + reference183 = obj145; questRoot45.QuestSequence = list2; AddQuest(questId22, questRoot); QuestId questId23 = new QuestId(4872); questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; - questRoot46.Author = list194; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; + questRoot46.Author = list193; QuestRoot questRoot47 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span81 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference184 = ref span81[0]; - QuestSequence obj144 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference184 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046552u, new Vector3(374.5022f, -156.32852f, -389.2119f), 1187) + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046552u, new Vector3(374.5022f, -156.32852f, -389.2119f), 1187) { StopDistance = 7f }; - obj144.Steps = list195; - reference184 = obj144; - ref QuestSequence reference185 = ref span81[1]; + obj146.Steps = list194; + reference184 = obj146; + num++; + ref QuestSequence reference185 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence28 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span82 = CollectionsMarshal.AsSpan(list3); - span82[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) + QuestSequence questSequence25 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) { Aetheryte = EAetheryteLocation.UrqopachaWachunpelo }; - ref QuestStep reference186 = ref span82[1]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1046557u, new Vector3(353.07837f, -160.20226f, -447.5014f), 1187); + num2++; + ref QuestStep reference186 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list195; + reference186 = questStep19; + num2++; + ref QuestStep reference187 = ref span3[num2]; + QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1046559u, new Vector3(285.96924f, -165.65608f, -443.44244f), 1187); num3 = 6; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - Span span83 = CollectionsMarshal.AsSpan(list196); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list196; - reference186 = questStep17; - ref QuestStep reference187 = ref span82[2]; - QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1046559u, new Vector3(285.96924f, -165.65608f, -443.44244f), 1187); - num3 = 6; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span84 = CollectionsMarshal.AsSpan(list197); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list197; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep20.CompletionQuestVariablesFlags = list196; + index3 = 1; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + span4 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA113_04872_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMA113_04872_A1_000_001") }; - questStep18.DialogueChoices = list198; - reference187 = questStep18; - ref QuestStep reference188 = ref span82[3]; - QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1046558u, new Vector3(229.20569f, -168.26689f, -461.63123f), 1187); + questStep20.DialogueChoices = list197; + reference187 = questStep20; + num2++; + ref QuestStep reference188 = ref span3[num2]; + QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1046558u, new Vector3(229.20569f, -168.26689f, -461.63123f), 1187); num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span85 = CollectionsMarshal.AsSpan(list199); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list199; - reference188 = questStep19; - questSequence28.Steps = list3; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + span5 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list198; + reference188 = questStep21; + questSequence25.Steps = list8; reference185 = questSequence; - ref QuestSequence reference189 = ref span81[2]; - QuestSequence obj145 = new QuestSequence + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1046560u, new Vector3(373.8308f, -156.3404f, -388.87616f), 1187); - obj145.Steps = list200; - reference189 = obj145; - ref QuestSequence reference190 = ref span81[3]; - QuestSequence obj146 = new QuestSequence + List list199 = new List(num2); + CollectionsMarshal.SetCount(list199, num2); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1046566u, new Vector3(225.63513f, -168.17073f, -460.37994f), 1187); - obj146.Steps = list201; - reference190 = obj146; - ref QuestSequence reference191 = ref span81[4]; + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence29 = questSequence; + QuestSequence questSequence26 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span86 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference192 = ref span86[0]; - QuestStep obj147 = new QuestStep(EInteractionType.Interact, 1046561u, new Vector3(221.85083f, -168.23709f, -461.11237f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference192 = ref span3[index2]; + QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1046561u, new Vector3(221.85083f, -168.23709f, -461.11237f), 1187) { StopDistance = 7f }; + index3 = 6; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + span5 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj149.CompletionQuestVariablesFlags = list201; + reference192 = obj149; + index2++; + ref QuestStep reference193 = ref span3[index2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1046562u, new Vector3(205.82886f, -168.37514f, -466.42255f), 1187); num3 = 6; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span87 = CollectionsMarshal.AsSpan(list202); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj147.CompletionQuestVariablesFlags = list202; - reference192 = obj147; - ref QuestStep reference193 = ref span86[1]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1046562u, new Vector3(205.82886f, -168.37514f, -466.42255f), 1187); - num3 = 6; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span88 = CollectionsMarshal.AsSpan(list203); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list203; - reference193 = questStep20; - ref QuestStep reference194 = ref span86[2]; - QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1046564u, new Vector3(227.37463f, -168.41432f, -486.19824f), 1187); + span5 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep22.CompletionQuestVariablesFlags = list202; + reference193 = questStep22; + index2++; + ref QuestStep reference194 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep23.CompletionQuestVariablesFlags = list203; + reference194 = questStep23; + index2++; + ref QuestStep reference195 = ref span3[index2]; + QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1046563u, new Vector3(230.6095f, -168.27045f, -474.87604f), 1187); num3 = 6; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - Span span89 = CollectionsMarshal.AsSpan(list204); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list204; - reference194 = questStep21; - ref QuestStep reference195 = ref span86[3]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1046563u, new Vector3(230.6095f, -168.27045f, -474.87604f), 1187); - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span90 = CollectionsMarshal.AsSpan(list205); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list205; - reference195 = questStep22; - questSequence29.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep24.CompletionQuestVariablesFlags = list204; + reference195 = questStep24; + questSequence26.Steps = list8; reference191 = questSequence; - ref QuestSequence reference196 = ref span81[5]; - QuestSequence obj148 = new QuestSequence + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list206)[0]; - QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2013644u, new Vector3(225.63513f, -168.16968f, -460.37994f), 1187); - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = new DialogueChoice + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference197 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA113_04872_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMA113_04872_A2_000_001") }; - questStep23.DialogueChoices = list207; - reference197 = questStep23; - obj148.Steps = list206; - reference196 = obj148; - ref QuestSequence reference198 = ref span81[6]; - QuestSequence obj149 = new QuestSequence + questStep25.DialogueChoices = list206; + reference197 = questStep25; + obj150.Steps = list205; + reference196 = obj150; + num++; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046992u, new Vector3(209.43005f, -168.34697f, -465.38495f), 1187); - obj149.Steps = list208; - reference198 = obj149; + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046992u, new Vector3(209.43005f, -168.34697f, -465.38495f), 1187); + obj151.Steps = list207; + reference198 = obj151; questRoot47.QuestSequence = list2; AddQuest(questId23, questRoot); QuestId questId24 = new QuestId(4873); questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "liza"; - questRoot48.Author = list209; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + span = CollectionsMarshal.AsSpan(list208); + index = 0; + span[index] = "liza"; + questRoot48.Author = list208; QuestRoot questRoot49 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span91 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference199 = ref span91[0]; - QuestSequence obj150 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046570u, new Vector3(210.65076f, -168.37555f, -468.95557f), 1187); - obj150.Steps = list210; - reference199 = obj150; - ref QuestSequence reference200 = ref span91[1]; - QuestSequence obj151 = new QuestSequence + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1046574u, new Vector3(313.1609f, -156.11737f, -396.07843f), 1187); - obj151.Steps = list211; - reference200 = obj151; - ref QuestSequence reference201 = ref span91[2]; - QuestSequence obj152 = new QuestSequence + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + span3 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1046577u, new Vector3(495.32312f, -136.24503f, -383.56604f), 1187); - obj152.Steps = list212; - reference201 = obj152; - ref QuestSequence reference202 = ref span91[3]; - QuestSequence obj153 = new QuestSequence + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span92 = CollectionsMarshal.AsSpan(list213); - span92[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013924u, new Vector3(353.56665f, -107.71344f, -238.81903f), 1187) + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013924u, new Vector3(353.56665f, -107.71344f, -238.81903f), 1187) { AetherCurrentId = 2818404u }; - span92[1] = new QuestStep(EInteractionType.Interact, 1046580u, new Vector3(403.5553f, -116.815155f, -170.24493f), 1187); - obj153.Steps = list213; - reference202 = obj153; - ref QuestSequence reference203 = ref span91[4]; + index2++; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence30 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference204 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1048192u, new Vector3(402.48718f, -116.815155f, -171.58777f), 1187); + QuestSequence questSequence27 = questSequence; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; + QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048192u, new Vector3(402.48718f, -116.815155f, -171.58777f), 1187); num3 = 1; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list214); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA114_04873_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMA114_04873_A1_000_001") }; - questStep24.DialogueChoices = list214; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 3u; - questStep24.PointMenuChoices = list215; - reference204 = questStep24; - questSequence30.Steps = list3; + questStep26.DialogueChoices = list214; + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + span6 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span6[num3] = 3u; + questStep26.PointMenuChoices = list215; + reference204 = questStep26; + questSequence27.Steps = list213; reference203 = questSequence; - ref QuestSequence reference205 = ref span91[5]; - QuestSequence obj154 = new QuestSequence + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); - obj154.Steps = list216; - reference205 = obj154; + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); + obj156.Steps = list216; + reference205 = obj156; questRoot49.QuestSequence = list2; AddQuest(questId24, questRoot); QuestId questId25 = new QuestId(4874); @@ -336599,160 +405951,213 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; questRoot50.Author = list217; QuestRoot questRoot51 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span93 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference206 = ref span93[0]; - QuestSequence obj155 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046993u, new Vector3(400.07617f, -116.81039f, -220.93542f), 1187); - obj155.Steps = list218; - reference206 = obj155; - ref QuestSequence reference207 = ref span93[1]; - QuestSequence obj156 = new QuestSequence + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + span3 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 1 }; num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list219)[0]; - QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + ref QuestStep reference208 = ref span3[index2]; + QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA115_04874_Q10_000_000") }; - questStep25.DialogueChoices = list220; - reference208 = questStep25; - obj156.Steps = list219; - reference207 = obj156; - ref QuestSequence reference209 = ref span93[2]; - QuestSequence obj157 = new QuestSequence + questStep27.DialogueChoices = list220; + reference208 = questStep27; + obj158.Steps = list219; + reference207 = obj158; + num++; + ref QuestSequence reference209 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1046589u, new Vector3(-417.16644f, -45.851826f, -461.84485f), 1187); - obj157.Steps = list221; - reference209 = obj157; - ref QuestSequence reference210 = ref span93[3]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence31 = questSequence; + QuestSequence questSequence28 = questSequence; num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span94 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference211 = ref span94[0]; - QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2013591u, new Vector3(-354.45184f, -39.993958f, -541.8937f), 1187); - num3 = 6; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span95 = CollectionsMarshal.AsSpan(list222); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list222; - reference211 = questStep26; - ref QuestStep reference212 = ref span94[1]; - QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 2013590u, new Vector3(-353.5058f, -34.836426f, -572.015f), 1187); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference211 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list222; + reference211 = questStep28; + index2++; + ref QuestStep reference212 = ref span3[index2]; + QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2013590u, new Vector3(-353.5058f, -34.836426f, -572.015f), 1187); num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span96 = CollectionsMarshal.AsSpan(list223); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep27.CompletionQuestVariablesFlags = list223; - reference212 = questStep27; - ref QuestStep reference213 = ref span94[2]; - QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2013589u, new Vector3(-374.8684f, -34.77533f, -584.71045f), 1187); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span97 = CollectionsMarshal.AsSpan(list224); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep28.CompletionQuestVariablesFlags = list224; - reference213 = questStep28; - ref QuestStep reference214 = ref span94[3]; - QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2013587u, new Vector3(-387.16718f, -38.19336f, -571.0079f), 1187); + span5 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep29.CompletionQuestVariablesFlags = list223; + reference212 = questStep29; + index2++; + ref QuestStep reference213 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep30.CompletionQuestVariablesFlags = list224; + reference213 = questStep30; + index2++; + ref QuestStep reference214 = ref span3[index2]; + QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2013587u, new Vector3(-387.16718f, -38.19336f, -571.0079f), 1187); num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span98 = CollectionsMarshal.AsSpan(list225); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep29.CompletionQuestVariablesFlags = list225; - reference214 = questStep29; - ref QuestStep reference215 = ref span94[4]; - QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2013588u, new Vector3(-400.04578f, -35.355164f, -587.18243f), 1187); - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span99 = CollectionsMarshal.AsSpan(list226); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep30.CompletionQuestVariablesFlags = list226; - reference215 = questStep30; - questSequence31.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list225); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep31.CompletionQuestVariablesFlags = list225; + reference214 = questStep31; + index2++; + ref QuestStep reference215 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep32.CompletionQuestVariablesFlags = list226; + reference215 = questStep32; + questSequence28.Steps = list8; reference210 = questSequence; - ref QuestSequence reference216 = ref span93[4]; + num++; + ref QuestSequence reference216 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence32 = questSequence; - num2 = 3; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span100 = CollectionsMarshal.AsSpan(list227); - span100[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013925u, new Vector3(-458.30475f, -29.678833f, -493.9193f), 1187) + QuestSequence questSequence29 = questSequence; + index2 = 3; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013925u, new Vector3(-458.30475f, -29.678833f, -493.9193f), 1187) { AetherCurrentId = 2818405u }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.73465f, -42.923626f, -484.1638f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.73465f, -42.923626f, -484.1638f), 1187) { DisableNavmesh = true, Mount = true }; - span100[2] = new QuestStep(EInteractionType.CompleteQuest, 1046585u, new Vector3(-420.95068f, -45.625298f, -461.50916f), 1187); - questSequence32.Steps = list227; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046585u, new Vector3(-420.95068f, -45.625298f, -461.50916f), 1187); + questSequence29.Steps = list227; reference216 = questSequence; questRoot51.QuestSequence = list2; AddQuest(questId25, questRoot); @@ -336762,241 +406167,314 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list228); + index = 0; + span[index] = "liza"; questRoot52.Author = list228; QuestRoot questRoot53 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span101 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference217 = ref span101[0]; - QuestSequence obj158 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047746u, new Vector3(-402.97552f, -46.22406f, -467.55176f), 1187) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047746u, new Vector3(-402.97552f, -46.22406f, -467.55176f), 1187) { StopDistance = 5f }; - obj158.Steps = list229; - reference217 = obj158; - ref QuestSequence reference218 = ref span101[1]; - QuestSequence obj159 = new QuestSequence + obj160.Steps = list229; + reference217 = obj160; + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span102 = CollectionsMarshal.AsSpan(list230); - span102[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013926u, new Vector3(-202.80768f, -72.129456f, -199.02344f), 1187) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013926u, new Vector3(-202.80768f, -72.129456f, -199.02344f), 1187) { AetherCurrentId = 2818408u }; - span102[1] = new QuestStep(EInteractionType.Interact, 1046591u, new Vector3(340.59656f, -160.10922f, -430.19763f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046591u, new Vector3(340.59656f, -160.10922f, -430.19763f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj159.Steps = list230; - reference218 = obj159; - ref QuestSequence reference219 = ref span101[2]; + obj161.Steps = list230; + reference218 = obj161; + num++; + ref QuestSequence reference219 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence33 = questSequence; + QuestSequence questSequence30 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span103 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference220 = ref span103[0]; - QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1046593u, new Vector3(345.60156f, -160.20251f, -438.4375f), 1187); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference220 = ref span3[index2]; + QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1046593u, new Vector3(345.60156f, -160.20251f, -438.4375f), 1187); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span104 = CollectionsMarshal.AsSpan(list231); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep31.CompletionQuestVariablesFlags = list231; - reference220 = questStep31; - ref QuestStep reference221 = ref span103[1]; - QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1046594u, new Vector3(333.30273f, -160.24759f, -436.08765f), 1187); - num3 = 6; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span105 = CollectionsMarshal.AsSpan(list232); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep32.CompletionQuestVariablesFlags = list232; - reference221 = questStep32; - ref QuestStep reference222 = ref span103[2]; - QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1046595u, new Vector3(343.00745f, -160.2025f, -461.9364f), 1187); + span5 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep33.CompletionQuestVariablesFlags = list231; + reference220 = questStep33; + index2++; + ref QuestStep reference221 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep34.CompletionQuestVariablesFlags = list232; + reference221 = questStep34; + index2++; + ref QuestStep reference222 = ref span3[index2]; + QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1046595u, new Vector3(343.00745f, -160.2025f, -461.9364f), 1187); num3 = 6; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - Span span106 = CollectionsMarshal.AsSpan(list233); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep33.CompletionQuestVariablesFlags = list233; - reference222 = questStep33; - questSequence33.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep35.CompletionQuestVariablesFlags = list233; + reference222 = questStep35; + questSequence30.Steps = list8; reference219 = questSequence; - ref QuestSequence reference223 = ref span101[3]; - QuestSequence obj160 = new QuestSequence + num++; + ref QuestSequence reference223 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1046596u, new Vector3(289.41772f, -169.2173f, -456.59576f), 1187); - obj160.Steps = list234; - reference223 = obj160; - ref QuestSequence reference224 = ref span101[4]; - QuestSequence obj161 = new QuestSequence + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 4 }; num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1046592u, new Vector3(348.8059f, -145.95174f, -473.65533f), 1187); - obj161.Steps = list235; - reference224 = obj161; - ref QuestSequence reference225 = ref span101[5]; - QuestSequence obj162 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1046600u, new Vector3(268.39087f, -173.48611f, -611.5053f), 1187); - obj162.Steps = list236; - reference225 = obj162; - ref QuestSequence reference226 = ref span101[6]; + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence34 = questSequence; + QuestSequence questSequence31 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span107 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference227 = ref span107[0]; - QuestStep obj163 = new QuestStep(EInteractionType.Combat, 2013595u, new Vector3(309.49866f, -173.11359f, -667.3228f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference227 = ref span3[index2]; + QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013595u, new Vector3(309.49866f, -173.11359f, -667.3228f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = 17691u; - obj163.KillEnemyDataIds = list237; + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span6 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span6[num3] = 17691u; + obj165.KillEnemyDataIds = list237; num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span108 = CollectionsMarshal.AsSpan(list238); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj163.CompletionQuestVariablesFlags = list238; - reference227 = obj163; - ref QuestStep reference228 = ref span107[1]; - QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2013596u, new Vector3(282.6123f, -173.11359f, -715.1751f), 1187) + span5 = CollectionsMarshal.AsSpan(list238); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj165.CompletionQuestVariablesFlags = list238; + reference227 = obj165; + index2++; + ref QuestStep reference228 = ref span3[index2]; + QuestStep obj166 = new QuestStep(EInteractionType.Combat, 2013596u, new Vector3(282.6123f, -173.11359f, -715.1751f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 17691u; - obj164.KillEnemyDataIds = list239; + index3 = 1; + List list239 = new List(index3); + CollectionsMarshal.SetCount(list239, index3); + span6 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span6[num3] = 17691u; + obj166.KillEnemyDataIds = list239; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - Span span109 = CollectionsMarshal.AsSpan(list240); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj164.CompletionQuestVariablesFlags = list240; - reference228 = obj164; - ref QuestStep reference229 = ref span107[2]; - QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013597u, new Vector3(346.60852f, -173.05261f, -725.85645f), 1187) + span5 = CollectionsMarshal.AsSpan(list240); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj166.CompletionQuestVariablesFlags = list240; + reference228 = obj166; + index2++; + ref QuestStep reference229 = ref span3[index2]; + QuestStep obj167 = new QuestStep(EInteractionType.Combat, 2013597u, new Vector3(346.60852f, -173.05261f, -725.85645f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = 17691u; - obj165.KillEnemyDataIds = list241; + index3 = 1; + List list241 = new List(index3); + CollectionsMarshal.SetCount(list241, index3); + span6 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + span6[num3] = 17691u; + obj167.KillEnemyDataIds = list241; num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - Span span110 = CollectionsMarshal.AsSpan(list242); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj165.CompletionQuestVariablesFlags = list242; - reference229 = obj165; - questSequence34.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj167.CompletionQuestVariablesFlags = list242; + reference229 = obj167; + questSequence31.Steps = list8; reference226 = questSequence; - ref QuestSequence reference230 = ref span101[7]; - QuestSequence obj166 = new QuestSequence + num++; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1046742u, new Vector3(391.56165f, -161.96266f, -690.3945f), 1187); - obj166.Steps = list243; - reference230 = obj166; - ref QuestSequence reference231 = ref span101[8]; - QuestSequence obj167 = new QuestSequence + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span111 = CollectionsMarshal.AsSpan(list244); - span111[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013927u, new Vector3(414.7555f, -141.03918f, -681.0254f), 1187) + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013927u, new Vector3(414.7555f, -141.03918f, -681.0254f), 1187) { AetherCurrentId = 2818409u }; - span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1046599u, new Vector3(342.09204f, -160.20251f, -449.2104f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046599u, new Vector3(342.09204f, -160.20251f, -449.2104f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj167.Steps = list244; - reference231 = obj167; + obj169.Steps = list244; + reference231 = obj169; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); QuestId questId27 = new QuestId(4876); @@ -337005,93 +406483,114 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list245); + index = 0; + span[index] = "liza"; questRoot54.Author = list245; QuestRoot questRoot55 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span112 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference232 = ref span112[0]; - QuestSequence obj168 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046792u, new Vector3(341.26794f, -160.2025f, -447.04358f), 1187); - obj168.Steps = list246; - reference232 = obj168; - ref QuestSequence reference233 = ref span112[1]; - QuestSequence obj169 = new QuestSequence + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1046575u, new Vector3(309.74292f, -156.11737f, -394.9798f), 1187); - obj169.Steps = list247; - reference233 = obj169; - ref QuestSequence reference234 = ref span112[2]; - QuestSequence obj170 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1046793u, new Vector3(215.198f, -167.97874f, -457.847f), 1187); - obj170.Steps = list248; - reference234 = obj170; - ref QuestSequence reference235 = ref span112[3]; - QuestSequence obj171 = new QuestSequence + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 3 }; num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1046796u, new Vector3(218.1582f, -168.08926f, -458.70148f), 1187); - obj171.Steps = list249; - reference235 = obj171; - ref QuestSequence reference236 = ref span112[4]; + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence35 = questSequence; - num2 = 3; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span113 = CollectionsMarshal.AsSpan(list250); - span113[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013928u, new Vector3(-134.59985f, -93.06476f, -582.9404f), 1187) + QuestSequence questSequence32 = questSequence; + index2 = 3; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013928u, new Vector3(-134.59985f, -93.06476f, -582.9404f), 1187) { AetherCurrentId = 2818410u }; - span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.69964f, -140.34076f, -601.33215f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.69964f, -140.34076f, -601.33215f), 1187) { DisableNavmesh = true, Mount = true }; - span113[2] = new QuestStep(EInteractionType.Emote, 1046802u, new Vector3(-27.847778f, -145.02602f, -648.73737f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1046802u, new Vector3(-27.847778f, -145.02602f, -648.73737f), 1187) { Emote = EEmote.Cheer }; - questSequence35.Steps = list250; + questSequence32.Steps = list250; reference236 = questSequence; - ref QuestSequence reference237 = ref span112[5]; - QuestSequence obj172 = new QuestSequence + num++; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); - obj172.Steps = list251; - reference237 = obj172; + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); + obj174.Steps = list251; + reference237 = obj174; questRoot55.QuestSequence = list2; AddQuest(questId27, questRoot); QuestId questId28 = new QuestId(4877); @@ -337100,73 +406599,88 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list252); + index = 0; + span[index] = "liza"; questRoot56.Author = list252; QuestRoot questRoot57 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span114 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference238 = ref span114[0]; - QuestSequence obj173 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); - obj173.Steps = list253; - reference238 = obj173; - ref QuestSequence reference239 = ref span114[1]; - QuestSequence obj174 = new QuestSequence + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1047502u, new Vector3(196.27673f, -169.29994f, -483.48212f), 1187) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047502u, new Vector3(196.27673f, -169.29994f, -483.48212f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj174.Steps = list254; - reference239 = obj174; - ref QuestSequence reference240 = ref span114[2]; - QuestSequence obj175 = new QuestSequence + obj176.Steps = list254; + reference239 = obj176; + num++; + ref QuestSequence reference240 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1046946u, new Vector3(275.7152f, -168.6204f, -453.8186f), 1187) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046946u, new Vector3(275.7152f, -168.6204f, -453.8186f), 1187) { StopDistance = 5f }; - obj175.Steps = list255; - reference240 = obj175; - ref QuestSequence reference241 = ref span114[3]; + obj177.Steps = list255; + reference240 = obj177; + num++; + ref QuestSequence reference241 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence36 = questSequence; + QuestSequence questSequence33 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span115 = CollectionsMarshal.AsSpan(list3); - span115[0] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) { Comment = "Traveler to the Rescue", PickUpQuestId = new QuestId(5039) }; - span115[1] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Comment = "Crisis of Corruption", PickUpQuestId = new QuestId(5051) }; - span115[2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -337175,7 +406689,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - questSequence36.Steps = list3; + questSequence33.Steps = list8; reference241 = questSequence; questRoot57.QuestSequence = list2; AddQuest(questId28, questRoot); @@ -337185,61 +406699,75 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - CollectionsMarshal.AsSpan(list256)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "liza"; questRoot58.Author = list256; QuestRoot questRoot59 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span116 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference242 = ref span116[0]; - QuestSequence obj176 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference242 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); - obj176.Steps = list257; - reference242 = obj176; - ref QuestSequence reference243 = ref span116[1]; - QuestSequence obj177 = new QuestSequence + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1046761u, new Vector3(-32.669617f, -10.0000105f, 143.72461f), 1185); - obj177.Steps = list258; - reference243 = obj177; - ref QuestSequence reference244 = ref span116[2]; - QuestSequence obj178 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - obj178.Steps = list259; - reference244 = obj178; - ref QuestSequence reference245 = ref span116[3]; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[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 span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence37 = questSequence; + QuestSequence questSequence34 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span117 = CollectionsMarshal.AsSpan(list3); - span117[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalWachumeqimeqi }; - span117[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-130.34163f, -14.999287f, 198.40685f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-130.34163f, -14.999287f, 198.40685f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337247,27 +406775,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - span117[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.40268f, -19.754322f, 202.20439f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.40268f, -19.754322f, 202.20439f), 1185) { DisableNavmesh = true }; - span117[3] = new QuestStep(EInteractionType.Interact, 1046763u, new Vector3(-114.64105f, -19.642736f, 201.12915f), 1185); - questSequence37.Steps = list3; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046763u, new Vector3(-114.64105f, -19.642736f, 201.12915f), 1185); + questSequence34.Steps = list8; reference245 = questSequence; - ref QuestSequence reference246 = ref span116[4]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference246 = ref span2[num]; + QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) { StopDistance = 7f }; - obj179.Steps = list260; - reference246 = obj179; + obj181.Steps = list260; + reference246 = obj181; questRoot59.QuestSequence = list2; AddQuest(questId29, questRoot); QuestId questId30 = new QuestId(4879); @@ -337276,36 +406809,44 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; questRoot60.Author = list261; QuestRoot questRoot61 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span118 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference247 = ref span118[0]; - QuestSequence obj180 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference247 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) { StopDistance = 7f }; - obj180.Steps = list262; - reference247 = obj180; - ref QuestSequence reference248 = ref span118[1]; - QuestSequence obj181 = new QuestSequence + obj182.Steps = list262; + reference247 = obj182; + num++; + ref QuestSequence reference248 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1046764u, new Vector3(139.94043f, -14f, 12.405518f), 1185) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046764u, new Vector3(139.94043f, -14f, 12.405518f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337313,28 +406854,34 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalWachumeqimeqi } }; - obj181.Steps = list263; - reference248 = obj181; - ref QuestSequence reference249 = ref span118[2]; - QuestSequence obj182 = new QuestSequence + obj183.Steps = list263; + reference248 = obj183; + num++; + ref QuestSequence reference249 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 2 }; num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1046766u, new Vector3(55.252808f, -14f, 87.99878f), 1185); - obj182.Steps = list264; - reference249 = obj182; - ref QuestSequence reference250 = ref span118[3]; - QuestSequence obj183 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046766u, new Vector3(55.252808f, -14f, 87.99878f), 1185); + obj184.Steps = list264; + reference249 = obj184; + num++; + ref QuestSequence reference250 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Duty, null, null, 1185) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1185) { DutyOptions = new DutyOptions { @@ -337342,51 +406889,61 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 826u } }; - obj183.Steps = list265; - reference250 = obj183; - span118[4] = new QuestSequence + obj185.Steps = list265; + reference250 = obj185; + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference251 = ref span118[5]; - QuestSequence obj184 = new QuestSequence + num++; + ref QuestSequence reference251 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 5 }; num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1046790u, new Vector3(748.71436f, 114.61811f, 565.3314f), 1188) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046790u, new Vector3(748.71436f, 114.61811f, 565.3314f), 1188) { StopDistance = 5f }; - obj184.Steps = list266; - reference251 = obj184; - ref QuestSequence reference252 = ref span118[6]; - QuestSequence obj185 = new QuestSequence + obj186.Steps = list266; + reference251 = obj186; + num++; + ref QuestSequence reference252 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1046776u, new Vector3(552.1476f, 115.77393f, 222.156f), 1188); - obj185.Steps = list267; - reference252 = obj185; - ref QuestSequence reference253 = ref span118[7]; - QuestSequence obj186 = new QuestSequence + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046781u, new Vector3(579.9801f, 119.49004f, 148.76013f), 1188) + span3 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046781u, new Vector3(579.9801f, 119.49004f, 148.76013f), 1188) { StopDistance = 5f }; - obj186.Steps = list268; - reference253 = obj186; + obj188.Steps = list268; + reference253 = obj188; questRoot61.QuestSequence = list2; AddQuest(questId30, questRoot); QuestId questId31 = new QuestId(4880); @@ -337395,42 +406952,50 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list269); + index = 0; + span[index] = "liza"; questRoot62.Author = list269; QuestRoot questRoot63 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span119 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference254 = ref span119[0]; - QuestSequence obj187 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046785u, new Vector3(577.7523f, 119.49004f, 148.66858f), 1188) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046785u, new Vector3(577.7523f, 119.49004f, 148.66858f), 1188) { StopDistance = 5f }; - obj187.Steps = list270; - reference254 = obj187; - ref QuestSequence reference255 = ref span119[1]; + obj189.Steps = list270; + reference254 = obj189; + num++; + ref QuestSequence reference255 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence38 = questSequence; + QuestSequence questSequence35 = questSequence; num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span120 = CollectionsMarshal.AsSpan(list3); - span120[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaManyFires }; - span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(533.37555f, 122.98077f, 790.01416f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(533.37555f, 122.98077f, 790.01416f), 1188) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -337439,52 +407004,61 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalIhuykatumu } }; - span120[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.3003f, 120.81023f, 803.62744f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.3003f, 120.81023f, 803.62744f), 1188) { DisableNavmesh = true }; - span120[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013943u, new Vector3(485.89294f, 121.3855f, 831.29626f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013943u, new Vector3(485.89294f, 121.3855f, 831.29626f), 1188) { AetherCurrentId = 2818428u }; - span120[4] = new QuestStep(EInteractionType.Interact, 1046603u, new Vector3(127.15344f, 110.20095f, 259.66272f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046603u, new Vector3(127.15344f, 110.20095f, 259.66272f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - questSequence38.Steps = list3; + questSequence35.Steps = list8; reference255 = questSequence; - ref QuestSequence reference256 = ref span119[2]; - QuestSequence obj188 = new QuestSequence + num++; + ref QuestSequence reference256 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span121 = CollectionsMarshal.AsSpan(list271); - span121[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013940u, new Vector3(48.966187f, 111.31445f, 287.15955f), 1188) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013940u, new Vector3(48.966187f, 111.31445f, 287.15955f), 1188) { AetherCurrentId = 2818422u }; - span121[1] = new QuestStep(EInteractionType.Interact, 1046608u, new Vector3(-427.84772f, 121.633446f, 280.93384f), 1188); - obj188.Steps = list271; - reference256 = obj188; - ref QuestSequence reference257 = ref span119[3]; - QuestSequence obj189 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span122 = CollectionsMarshal.AsSpan(list272); - span122[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaEarthenshire }; - span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj189.Steps = list272; - reference257 = obj189; + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); + obj191.Steps = list272; + reference257 = obj191; questRoot63.QuestSequence = list2; AddQuest(questId31, questRoot); QuestId questId32 = new QuestId(4881); @@ -337493,104 +407067,127 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "liza"; questRoot64.Author = list273; QuestRoot questRoot65 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span123 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference258 = ref span123[0]; - QuestSequence obj190 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference258 = ref span2[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj190.Steps = list274; - reference258 = obj190; - ref QuestSequence reference259 = ref span123[1]; - QuestSequence obj191 = new QuestSequence + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 1 }; num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Snipe, 1046614u, new Vector3(-473.5943f, 121.63345f, 343.7704f), 1188) + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Snipe, 1046614u, new Vector3(-473.5943f, 121.63345f, 343.7704f), 1188) { Comment = "Click (from left to right) worn tools, Kaahe, crafting materials, untouched meal" }; - obj191.Steps = list275; - reference259 = obj191; - ref QuestSequence reference260 = ref span123[2]; - QuestSequence obj192 = new QuestSequence + obj193.Steps = list275; + reference259 = obj193; + num++; + ref QuestSequence reference260 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj192.Steps = list276; - reference260 = obj192; - ref QuestSequence reference261 = ref span123[3]; - QuestSequence obj193 = new QuestSequence + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 3 }; num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 2013598u, new Vector3(-560.5707f, 121.5686f, 368.52063f), 1188); - obj193.Steps = list277; - reference261 = obj193; - ref QuestSequence reference262 = ref span123[4]; - QuestSequence obj194 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[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 span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - Span span124 = CollectionsMarshal.AsSpan(list278); - span124[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013939u, new Vector3(-294.20923f, 110.73462f, 640.00903f), 1188) + index2 = 2; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013939u, new Vector3(-294.20923f, 110.73462f, 640.00903f), 1188) { AetherCurrentId = 2818421u }; - span124[1] = new QuestStep(EInteractionType.Interact, 2013599u, new Vector3(-293.20215f, 109.57495f, 691.432f), 1188); - obj194.Steps = list278; - reference262 = obj194; - ref QuestSequence reference263 = ref span123[5]; - QuestSequence obj195 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 5 }; num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1046615u, new Vector3(-463.6759f, 121.632996f, 332.23462f), 1188) + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046615u, new Vector3(-463.6759f, 121.632996f, 332.23462f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj195.Steps = list279; - reference263 = obj195; - ref QuestSequence reference264 = ref span123[6]; - QuestSequence obj196 = new QuestSequence + obj197.Steps = list279; + reference263 = obj197; + num++; + ref QuestSequence reference264 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051455u, new Vector3(-447.8676f, 122.89019f, 348.47034f), 1188) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051455u, new Vector3(-447.8676f, 122.89019f, 348.47034f), 1188) { StopDistance = 5f }; - obj196.Steps = list280; - reference264 = obj196; + obj198.Steps = list280; + reference264 = obj198; questRoot65.QuestSequence = list2; AddQuest(questId32, questRoot); QuestId questId33 = new QuestId(4882); @@ -337599,72 +407196,89 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list281); + index = 0; + span[index] = "liza"; questRoot66.Author = list281; QuestRoot questRoot67 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span125 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference265 = ref span125[0]; - QuestSequence obj197 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference265 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 0 }; num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046617u, new Vector3(-450.248f, 122.950645f, 345.6626f), 1188) + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046617u, new Vector3(-450.248f, 122.950645f, 345.6626f), 1188) { StopDistance = 5f }; - obj197.Steps = list282; - reference265 = obj197; - ref QuestSequence reference266 = ref span125[1]; - QuestSequence obj198 = new QuestSequence + obj199.Steps = list282; + reference265 = obj199; + num++; + ref QuestSequence reference266 = ref span2[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1046676u, new Vector3(-529.015f, 122.12203f, 341.75623f), 1188); - obj198.Steps = list283; - reference266 = obj198; - ref QuestSequence reference267 = ref span125[2]; - QuestSequence obj199 = new QuestSequence + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 2 }; num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1051018u, new Vector3(160.20447f, -17.964504f, 166.55212f), 1185) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051018u, new Vector3(160.20447f, -17.964504f, 166.55212f), 1185) { StopDistance = 5f }; - obj199.Steps = list284; - reference267 = obj199; - ref QuestSequence reference268 = ref span125[3]; - QuestSequence obj200 = new QuestSequence + obj201.Steps = list284; + reference267 = obj201; + num++; + ref QuestSequence reference268 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - obj200.Steps = list285; - reference268 = obj200; - ref QuestSequence reference269 = ref span125[4]; - QuestSequence obj201 = new QuestSequence + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 4 }; num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1046624u, new Vector3(-32.455933f, -17.972866f, 184.6189f), 1185) + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046624u, new Vector3(-32.455933f, -17.972866f, 184.6189f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337672,17 +407286,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj201.Steps = list286; - reference269 = obj201; - ref QuestSequence reference270 = ref span125[5]; - QuestSequence obj202 = new QuestSequence + obj203.Steps = list286; + reference269 = obj203; + num++; + ref QuestSequence reference270 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337690,8 +407307,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalWachumeqimeqi } }; - obj202.Steps = list287; - reference270 = obj202; + obj204.Steps = list287; + reference270 = obj204; questRoot67.QuestSequence = list2; AddQuest(questId33, questRoot); QuestId questId34 = new QuestId(4883); @@ -337700,34 +407317,41 @@ public static class AssemblyQuestLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - CollectionsMarshal.AsSpan(list288)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list288); + index = 0; + span[index] = "liza"; questRoot68.Author = list288; QuestRoot questRoot69 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span126 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference271 = ref span126[0]; - QuestSequence obj203 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference271 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 0 }; num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185); - obj203.Steps = list289; - reference271 = obj203; - ref QuestSequence reference272 = ref span126[1]; - QuestSequence obj204 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185); + obj205.Steps = list289; + reference271 = obj205; + num++; + ref QuestSequence reference272 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span127 = CollectionsMarshal.AsSpan(list290); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-164.51695f, -14.999356f, 208.03928f), 1185) + index2 = 2; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-164.51695f, -14.999356f, 208.03928f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337735,18 +407359,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - span127[1] = new QuestStep(EInteractionType.Interact, 1048375u, new Vector3(-166.85742f, -14.999356f, 208.30078f), 1185); - obj204.Steps = list290; - reference272 = obj204; - ref QuestSequence reference273 = ref span126[2]; - QuestSequence obj205 = new QuestSequence + num2++; + span3[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 span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 2 }; num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046681u, new Vector3(-194.78143f, 120.795235f, -359.24316f), 1185) + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046681u, new Vector3(-194.78143f, 120.795235f, -359.24316f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337758,34 +407386,39 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj205.Steps = list291; - reference273 = obj205; - ref QuestSequence reference274 = ref span126[3]; - QuestSequence obj206 = new QuestSequence + obj207.Steps = list291; + reference273 = obj207; + num++; + ref QuestSequence reference274 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list292)[0]; - QuestStep obj207 = new QuestStep(EInteractionType.CompleteQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + ref QuestStep reference275 = ref span3[num2]; + QuestStep obj209 = new QuestStep(EInteractionType.CompleteQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) { StopDistance = 7f }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + span4 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMB104_04883_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMB104_04883_A1_000_001") }; - obj207.DialogueChoices = list293; - reference275 = obj207; - obj206.Steps = list292; - reference274 = obj206; + obj209.DialogueChoices = list293; + reference275 = obj209; + obj208.Steps = list292; + reference274 = obj208; questRoot69.QuestSequence = list2; AddQuest(questId34, questRoot); QuestId questId35 = new QuestId(4884); @@ -337794,38 +407427,46 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list294); + index = 0; + span[index] = "liza"; questRoot70.Author = list294; QuestRoot questRoot71 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span128 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference276 = ref span128[0]; - QuestSequence obj208 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference276 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 0 }; num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) { StopDistance = 7f }; - obj208.Steps = list295; - reference276 = obj208; - ref QuestSequence reference277 = ref span128[1]; + obj210.Steps = list295; + reference276 = obj210; + num++; + ref QuestSequence reference277 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence39 = questSequence; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list296)[0]; - QuestStep obj209 = new QuestStep(EInteractionType.Interact, 2013605u, new Vector3(-161.36414f, -14.999634f, 208.33142f), 1185) + QuestSequence questSequence36 = questSequence; + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + ref QuestStep reference278 = ref span3[num2]; + QuestStep obj211 = new QuestStep(EInteractionType.Interact, 2013605u, new Vector3(-161.36414f, -14.999634f, 208.33142f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -337837,110 +407478,132 @@ public static class AssemblyQuestLoader num3 = 1; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - CollectionsMarshal.AsSpan(list297)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list297); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMB105_04884_Q1_000_000") }; - obj209.DialogueChoices = list297; - reference278 = obj209; - questSequence39.Steps = list296; + obj211.DialogueChoices = list297; + reference278 = obj211; + questSequence36.Steps = list296; reference277 = questSequence; - span128[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference279 = ref span128[3]; + num++; + ref QuestSequence reference279 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence40 = questSequence; + QuestSequence questSequence37 = questSequence; num2 = 3; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span129 = CollectionsMarshal.AsSpan(list298); - span129[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) { PickUpQuestId = new QuestId(5085) }; - span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) { PickUpQuestId = new QuestId(5074) }; - span129[2] = new QuestStep(EInteractionType.Interact, 1046876u, new Vector3(-505.66876f, 121.633156f, 327.62634f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046876u, new Vector3(-505.66876f, 121.633156f, 327.62634f), 1188) { StopDistance = 5f }; - questSequence40.Steps = list298; + questSequence37.Steps = list298; reference279 = questSequence; - ref QuestSequence reference280 = ref span128[4]; - QuestSequence obj210 = new QuestSequence + num++; + ref QuestSequence reference280 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1046633u, new Vector3(-798.2147f, 127.87157f, 468.61975f), 1188); - obj210.Steps = list299; - reference280 = obj210; - ref QuestSequence reference281 = ref span128[5]; - QuestSequence obj211 = new QuestSequence + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 5 }; num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj211.Steps = list300; - reference281 = obj211; - ref QuestSequence reference282 = ref span128[6]; - QuestSequence obj212 = new QuestSequence + obj213.Steps = list300; + reference281 = obj213; + num++; + ref QuestSequence reference282 = ref span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj212.Steps = list301; - reference282 = obj212; - ref QuestSequence reference283 = ref span128[7]; - QuestSequence obj213 = new QuestSequence + obj214.Steps = list301; + reference282 = obj214; + num++; + ref QuestSequence reference283 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 7 }; num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj213.Steps = list302; - reference283 = obj213; - ref QuestSequence reference284 = ref span128[8]; - QuestSequence obj214 = new QuestSequence + obj215.Steps = list302; + reference283 = obj215; + num++; + ref QuestSequence reference284 = ref span2[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046877u, new Vector3(-529.0761f, 122.122025f, 341.7257f), 1188) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046877u, new Vector3(-529.0761f, 122.122025f, 341.7257f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj214.Steps = list303; - reference284 = obj214; + obj216.Steps = list303; + reference284 = obj216; questRoot71.QuestSequence = list2; AddQuest(questId35, questRoot); QuestId questId36 = new QuestId(4885); @@ -337949,182 +407612,218 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "liza"; questRoot72.Author = list304; QuestRoot questRoot73 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span130 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference285 = ref span130[0]; - QuestSequence obj215 = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference285 = ref span2[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 0 }; num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046642u, new Vector3(-530.38837f, 122.122025f, 340.93237f), 1188) + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046642u, new Vector3(-530.38837f, 122.122025f, 340.93237f), 1188) { StopDistance = 5f }; - obj215.Steps = list305; - reference285 = obj215; - ref QuestSequence reference286 = ref span130[1]; - QuestSequence obj216 = new QuestSequence + obj217.Steps = list305; + reference285 = obj217; + num++; + ref QuestSequence reference286 = ref span2[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1046677u, new Vector3(-405.90527f, 121.63345f, 278.91956f), 1188); - obj216.Steps = list306; - reference286 = obj216; - ref QuestSequence reference287 = ref span130[2]; - QuestSequence obj217 = new QuestSequence + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[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 span2[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 2 }; num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1046644u, new Vector3(569.0242f, 115.13427f, 236.25537f), 1188) + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046644u, new Vector3(569.0242f, 115.13427f, 236.25537f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj217.Steps = list307; - reference287 = obj217; - ref QuestSequence reference288 = ref span130[3]; + obj219.Steps = list307; + reference287 = obj219; + num++; + ref QuestSequence reference288 = ref span2[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence41 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span131 = CollectionsMarshal.AsSpan(list3); - span131[0] = new QuestStep(EInteractionType.Interact, 1046646u, new Vector3(566.8573f, 115.180565f, 236.59106f), 1188) + QuestSequence questSequence38 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046646u, new Vector3(566.8573f, 115.180565f, 236.59106f), 1188) { StopDistance = 4f }; - span131[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(552.2429f, 115.77921f, 221.62932f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(552.2429f, 115.77921f, 221.62932f), 1188) { NpcWaitDistance = 1f }; - span131[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(562.5982f, 115.49999f, 191.69548f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(562.5982f, 115.49999f, 191.69548f), 1188) { NpcWaitDistance = 1f }; - span131[3] = new QuestStep(EInteractionType.WalkTo, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188) { StopDistance = 1f }; - questSequence41.Steps = list3; + questSequence38.Steps = list8; reference288 = questSequence; - ref QuestSequence reference289 = ref span130[4]; - QuestSequence obj218 = new QuestSequence + num++; + ref QuestSequence reference289 = ref span2[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 4 }; num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Emote, 1046678u, new Vector3(605.61523f, 119.490036f, 185.04602f), 1188) + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1046678u, new Vector3(605.61523f, 119.490036f, 185.04602f), 1188) { Emote = EEmote.Happy }; - obj218.Steps = list308; - reference289 = obj218; - ref QuestSequence reference290 = ref span130[5]; - questSequence = new QuestSequence + obj220.Steps = list308; + reference289 = obj220; + num++; + ref QuestSequence reference290 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence42 = questSequence; - num2 = 3; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span132 = CollectionsMarshal.AsSpan(list309); - span132[0] = new QuestStep(EInteractionType.Interact, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188); - span132[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046647u, new Vector3(573.42645f, 119.49004f, 171.78094f), 1188) + index2 = 3; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046647u, new Vector3(573.42645f, 119.49004f, 171.78094f), 1188) { NpcWaitDistance = 1f }; - span132[2] = new QuestStep(EInteractionType.WalkTo, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188) { StopDistance = 1f }; - questSequence42.Steps = list309; - reference290 = questSequence; - ref QuestSequence reference291 = ref span130[6]; - QuestSequence obj219 = new QuestSequence + obj221.Steps = list309; + reference290 = obj221; + num++; + ref QuestSequence reference291 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 6 }; num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Emote, 1046679u, new Vector3(590.41736f, 119.49004f, 144.09094f), 1188) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1046679u, new Vector3(590.41736f, 119.49004f, 144.09094f), 1188) { Emote = EEmote.Happy }; - obj219.Steps = list310; - reference291 = obj219; - ref QuestSequence reference292 = ref span130[7]; + obj222.Steps = list310; + reference291 = obj222; + num++; + ref QuestSequence reference292 = ref span2[num]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence43 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span133 = CollectionsMarshal.AsSpan(list3); - span133[0] = new QuestStep(EInteractionType.Interact, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188); - span133[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(575.20374f, 119.49004f, 180.12602f), 1188) + QuestSequence questSequence39 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(575.20374f, 119.49004f, 180.12602f), 1188) { NpcWaitDistance = 3f }; - span133[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(556.4156f, 115.49999f, 184.765f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(556.4156f, 115.49999f, 184.765f), 1188) { NpcWaitDistance = 1f }; - span133[3] = new QuestStep(EInteractionType.WalkTo, 1046649u, new Vector3(543.78577f, 115.55489f, 165.23987f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046649u, new Vector3(543.78577f, 115.55489f, 165.23987f), 1188) { StopDistance = 1f }; - questSequence43.Steps = list3; + questSequence39.Steps = list8; reference292 = questSequence; - ref QuestSequence reference293 = ref span130[8]; - QuestSequence obj220 = new QuestSequence + num++; + ref QuestSequence reference293 = ref span2[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 8 }; num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Emote, 1046680u, new Vector3(545.3727f, 116.722374f, 152.88f), 1188) + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1046680u, new Vector3(545.3727f, 116.722374f, 152.88f), 1188) { Emote = EEmote.Happy }; - obj220.Steps = list311; - reference293 = obj220; - ref QuestSequence reference294 = ref span130[9]; - QuestSequence obj221 = new QuestSequence + obj223.Steps = list311; + reference293 = obj223; + num++; + ref QuestSequence reference294 = ref span2[num]; + QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) { StopDistance = 5f }; - obj221.Steps = list312; - reference294 = obj221; + obj224.Steps = list312; + reference294 = obj224; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); QuestId questId37 = new QuestId(4886); @@ -338133,258 +407832,311 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list313); + index = 0; + span[index] = "liza"; questRoot74.Author = list313; QuestRoot questRoot75 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span134 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference295 = ref span134[0]; - QuestSequence obj222 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference295 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 0 }; num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) { StopDistance = 5f }; - obj222.Steps = list314; - reference295 = obj222; - ref QuestSequence reference296 = ref span134[1]; - QuestSequence obj223 = new QuestSequence + obj225.Steps = list314; + reference295 = obj225; + num++; + ref QuestSequence reference296 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span135 = CollectionsMarshal.AsSpan(list315); - span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.60944f, 116.17938f, 166.65599f), 1188); - span135[1] = new QuestStep(EInteractionType.Interact, 2013610u, new Vector3(454.7036f, 112.077515f, 163.25623f), 1188); - obj223.Steps = list315; - reference296 = obj223; - ref QuestSequence reference297 = ref span134[2]; - QuestSequence obj224 = new QuestSequence + index2 = 2; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.60944f, 116.17938f, 166.65599f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013610u, new Vector3(454.7036f, 112.077515f, 163.25623f), 1188); + obj226.Steps = list315; + reference296 = obj226; + num++; + ref QuestSequence reference297 = ref span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 2 }; num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list316)[0]; - QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(169.65424f, 110.795235f, 256.5983f), 1188) + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference298 = ref span3[index2]; + QuestStep obj228 = new QuestStep(EInteractionType.Combat, null, new Vector3(169.65424f, 110.795235f, 256.5983f), 1188) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span136 = CollectionsMarshal.AsSpan(list317); - span136[0] = 17692u; - span136[1] = 17693u; - span136[2] = 17694u; - obj225.KillEnemyDataIds = list317; - reference298 = obj225; - obj224.Steps = list316; - reference297 = obj224; - ref QuestSequence reference299 = ref span134[3]; - QuestSequence obj226 = new QuestSequence + index3 = 3; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + span6 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span6[num3] = 17692u; + num3++; + span6[num3] = 17693u; + num3++; + span6[num3] = 17694u; + obj228.KillEnemyDataIds = list317; + reference298 = obj228; + obj227.Steps = list316; + reference297 = obj227; + num++; + ref QuestSequence reference299 = ref span2[num]; + QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1046653u, new Vector3(160.29602f, 111.00074f, 258.83875f), 1188); - obj226.Steps = list318; - reference299 = obj226; - ref QuestSequence reference300 = ref span134[4]; - QuestSequence obj227 = new QuestSequence + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span3 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046653u, new Vector3(160.29602f, 111.00074f, 258.83875f), 1188); + obj229.Steps = list318; + reference299 = obj229; + num++; + ref QuestSequence reference300 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 4 }; num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 2013612u, new Vector3(317.95215f, 115.92273f, 229.96863f), 1188); - obj227.Steps = list319; - reference300 = obj227; - ref QuestSequence reference301 = ref span134[5]; + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013612u, new Vector3(317.95215f, 115.92273f, 229.96863f), 1188); + obj230.Steps = list319; + reference300 = obj230; + num++; + ref QuestSequence reference301 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence44 = questSequence; - num2 = 18; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span137 = CollectionsMarshal.AsSpan(list3); - span137[0] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(367.16077f, 109.99999f, 285.20248f), 1188) + QuestSequence questSequence40 = questSequence; + index2 = 18; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(367.16077f, 109.99999f, 285.20248f), 1188) { StopDistance = 50f }; - span137[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(373.7373f, 109.940544f, 292.05542f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(373.7373f, 109.940544f, 292.05542f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(401.49612f, 110.34416f, 358.39096f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(401.49612f, 110.34416f, 358.39096f), 1188) { StopDistance = 50f }; - span137[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(405.0139f, 110.18579f, 363.32675f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(405.0139f, 110.18579f, 363.32675f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[4] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(431.14557f, 110.30115f, 445.72592f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(431.14557f, 110.30115f, 445.72592f), 1188) { StopDistance = 50f, NpcWaitDistance = 1f }; - span137[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(432.67133f, 111.30688f, 454.02933f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(432.67133f, 111.30688f, 454.02933f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[6] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(414.60312f, 111.47869f, 583.3106f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(414.60312f, 111.47869f, 583.3106f), 1188) { StopDistance = 50f }; - span137[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(407.84457f, 111.124214f, 596.85754f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(407.84457f, 111.124214f, 596.85754f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - span137[8] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(337.6815f, 110.679726f, 659.7985f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(337.6815f, 110.679726f, 659.7985f), 1188) { StopDistance = 50f, Mount = false }; - span137[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(329.07404f, 110.1352f, 664.1191f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(329.07404f, 110.1352f, 664.1191f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - span137[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(294.8306f, 110.1453f, 680.0281f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(294.8306f, 110.1453f, 680.0281f), 1188) { Mount = false }; - span137[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.90924f, 111.677704f, 696.8132f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.90924f, 111.677704f, 696.8132f), 1188) { Mount = false }; - span137[12] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(260.1857f, 113.90375f, 718.9069f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(260.1857f, 113.90375f, 718.9069f), 1188) { StopDistance = 50f, Mount = false }; - span137[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(263.2977f, 115.22446f, 726.2601f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(263.2977f, 115.22446f, 726.2601f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - span137[14] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(302.6931f, 117.88865f, 758.6998f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(302.6931f, 117.88865f, 758.6998f), 1188) { StopDistance = 50f, Mount = false }; - span137[15] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(309.86523f, 118.87516f, 761.77924f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(309.86523f, 118.87516f, 761.77924f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[16] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.30682f, 122.056854f, 777.90155f), 1188); - span137[17] = new QuestStep(EInteractionType.WalkTo, 2013614u, new Vector3(336.99548f, 123.21655f, 778.6526f), 1188); - questSequence44.Steps = list3; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.30682f, 122.056854f, 777.90155f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 2013614u, new Vector3(336.99548f, 123.21655f, 778.6526f), 1188); + questSequence40.Steps = list8; reference301 = questSequence; - ref QuestSequence reference302 = ref span134[6]; + num++; + ref QuestSequence reference302 = ref span2[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence45 = questSequence; + QuestSequence questSequence41 = questSequence; num2 = 10; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span138 = CollectionsMarshal.AsSpan(list3); - span138[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(381.548f, 121.013245f, 762.6797f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(381.548f, 121.013245f, 762.6797f), 1188) { StopDistance = 50f, Mount = false }; - span138[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(413.78464f, 117.67805f, 753.82654f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(413.78464f, 117.67805f, 753.82654f), 1188) { StopDistance = 30f, Mount = false }; - span138[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(430.26556f, 117.201416f, 746.65106f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(430.26556f, 117.201416f, 746.65106f), 1188) { StopDistance = 30f, DelaySecondsAtStart = 2f, Mount = false }; - span138[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(454.3518f, 117.324524f, 740.7899f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(454.3518f, 117.324524f, 740.7899f), 1188) { StopDistance = 30f, DelaySecondsAtStart = 2f, Mount = false }; - span138[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.93594f, 119.74193f, 718.53876f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.93594f, 119.74193f, 718.53876f), 1188) { Mount = false }; - span138[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(528.67334f, 121.77753f, 734.24115f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(528.67334f, 121.77753f, 734.24115f), 1188) { StopDistance = 100f, Mount = false }; - span138[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(541.26227f, 122.58829f, 731.3827f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(541.26227f, 122.58829f, 731.3827f), 1188) { StopDistance = 100f, NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span138[7] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(639.90125f, 118.65023f, 708.77124f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(639.90125f, 118.65023f, 708.77124f), 1188) { Mount = false, Sprint = false }; - span138[8] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(671.42f, 118.15654f, 670.4708f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(671.42f, 118.15654f, 670.4708f), 1188) { Mount = false, Sprint = false }; - span138[9] = new QuestStep(EInteractionType.WalkTo, 2013617u, new Vector3(682.8259f, 116.96033f, 646.44836f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 2013617u, new Vector3(682.8259f, 116.96033f, 646.44836f), 1188) { Mount = false, Sprint = false }; - questSequence45.Steps = list3; + questSequence41.Steps = list8; reference302 = questSequence; - ref QuestSequence reference303 = ref span134[7]; - QuestSequence obj228 = new QuestSequence + num++; + ref QuestSequence reference303 = ref span2[num]; + QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) { StopDistance = 5f }; - obj228.Steps = list320; - reference303 = obj228; + obj231.Steps = list320; + reference303 = obj231; questRoot75.QuestSequence = list2; AddQuest(questId37, questRoot); QuestId questId38 = new QuestId(4887); @@ -338393,105 +408145,127 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list321); + index = 0; + span[index] = "liza"; questRoot76.Author = list321; QuestRoot questRoot77 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span139 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference304 = ref span139[0]; - QuestSequence obj229 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference304 = ref span2[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 0 }; num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) { StopDistance = 5f }; - obj229.Steps = list322; - reference304 = obj229; - ref QuestSequence reference305 = ref span139[1]; - QuestSequence obj230 = new QuestSequence + obj232.Steps = list322; + reference304 = obj232; + num++; + ref QuestSequence reference305 = ref span2[num]; + QuestSequence obj233 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1046662u, new Vector3(380.14795f, 110.47756f, 187.18237f), 1188); - obj230.Steps = list323; - reference305 = obj230; - ref QuestSequence reference306 = ref span139[2]; + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046662u, new Vector3(380.14795f, 110.47756f, 187.18237f), 1188); + obj233.Steps = list323; + reference305 = obj233; + num++; + ref QuestSequence reference306 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence46 = questSequence; + QuestSequence questSequence42 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span140 = CollectionsMarshal.AsSpan(list3); - span140[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013942u, new Vector3(130.44934f, 115.15979f, 522.9114f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013942u, new Vector3(130.44934f, 115.15979f, 522.9114f), 1188) { AetherCurrentId = 2818427u }; - span140[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.692627f, 109.2f, 490.56314f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.692627f, 109.2f, 490.56314f), 1188) { Mount = false }; - span140[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.322823f, 109.2f, 475.24792f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.322823f, 109.2f, 475.24792f), 1188) { Mount = true }; - span140[3] = new QuestStep(EInteractionType.UseItem, 2013619u, new Vector3(-96.33026f, 109.57495f, 488.30383f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013619u, new Vector3(-96.33026f, 109.57495f, 488.30383f), 1188) { ItemId = 2003484u }; - questSequence46.Steps = list3; + questSequence42.Steps = list8; reference306 = questSequence; - ref QuestSequence reference307 = ref span139[3]; - QuestSequence obj231 = new QuestSequence + num++; + ref QuestSequence reference307 = ref span2[num]; + QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.UseItem, 2013620u, new Vector3(-61.661743f, 109.57495f, 390.6156f), 1188) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2013620u, new Vector3(-61.661743f, 109.57495f, 390.6156f), 1188) { ItemId = 2003484u }; - obj231.Steps = list324; - reference307 = obj231; - ref QuestSequence reference308 = ref span139[4]; - QuestSequence obj232 = new QuestSequence + obj234.Steps = list324; + reference307 = obj234; + num++; + ref QuestSequence reference308 = ref span2[num]; + QuestSequence obj235 = new QuestSequence { Sequence = 4 }; num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1046663u, new Vector3(-3.1586914f, 109.20001f, 287.95288f), 1188); - obj232.Steps = list325; - reference308 = obj232; - ref QuestSequence reference309 = ref span139[5]; - QuestSequence obj233 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046663u, new Vector3(-3.1586914f, 109.20001f, 287.95288f), 1188); + obj235.Steps = list325; + reference308 = obj235; + num++; + ref QuestSequence reference309 = ref span2[num]; + QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj233.Steps = list326; - reference309 = obj233; + obj236.Steps = list326; + reference309 = obj236; questRoot77.QuestSequence = list2; AddQuest(questId38, questRoot); QuestId questId39 = new QuestId(4888); @@ -338500,38 +408274,46 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list327); + index = 0; + span[index] = "liza"; questRoot78.Author = list327; QuestRoot questRoot79 = questRoot; - num = 2; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span141 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference310 = ref span141[0]; - QuestSequence obj234 = new QuestSequence + index = 2; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference310 = ref span2[num]; + QuestSequence obj237 = new QuestSequence { Sequence = 0 }; num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188); - obj234.Steps = list328; - reference310 = obj234; - ref QuestSequence reference311 = ref span141[1]; - QuestSequence obj235 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188); + obj237.Steps = list328; + reference310 = obj237; + num++; + ref QuestSequence reference311 = ref span2[num]; + QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) { StopDistance = 5f }; - obj235.Steps = list329; - reference311 = obj235; + obj238.Steps = list329; + reference311 = obj238; questRoot79.QuestSequence = list2; AddQuest(questId39, questRoot); QuestId questId40 = new QuestId(4889); @@ -338540,100 +408322,120 @@ public static class AssemblyQuestLoader num = 1; List list330 = new List(num); CollectionsMarshal.SetCount(list330, num); - CollectionsMarshal.AsSpan(list330)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list330); + index = 0; + span[index] = "liza"; questRoot80.Author = list330; QuestRoot questRoot81 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span142 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference312 = ref span142[0]; - QuestSequence obj236 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference312 = ref span2[num]; + QuestSequence obj239 = new QuestSequence { Sequence = 0 }; num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) { StopDistance = 5f }; - obj236.Steps = list331; - reference312 = obj236; - ref QuestSequence reference313 = ref span142[1]; - QuestSequence obj237 = new QuestSequence + obj239.Steps = list331; + reference312 = obj239; + num++; + ref QuestSequence reference313 = ref span2[num]; + QuestSequence obj240 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1046810u, new Vector3(-769.22253f, 124.35208f, 465.87305f), 1188) + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046810u, new Vector3(-769.22253f, 124.35208f, 465.87305f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj237.Steps = list332; - reference313 = obj237; - ref QuestSequence reference314 = ref span142[2]; - QuestSequence obj238 = new QuestSequence + obj240.Steps = list332; + reference313 = obj240; + num++; + ref QuestSequence reference314 = ref span2[num]; + QuestSequence obj241 = new QuestSequence { Sequence = 2 }; num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span143 = CollectionsMarshal.AsSpan(list333); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-899.7249f, 143.00594f, 472.3082f), 1188) + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-899.7249f, 143.00594f, 472.3082f), 1188) { TargetTerritoryId = (ushort)1187, Fly = true }; - span143[1] = new QuestStep(EInteractionType.Interact, 1046814u, new Vector3(655.6953f, 83.46234f, 642.11475f), 1187); - obj238.Steps = list333; - reference314 = obj238; - ref QuestSequence reference315 = ref span142[3]; - QuestSequence obj239 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046814u, new Vector3(655.6953f, 83.46234f, 642.11475f), 1187); + obj241.Steps = list333; + reference314 = obj241; + num++; + ref QuestSequence reference315 = ref span2[num]; + QuestSequence obj242 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span144 = CollectionsMarshal.AsSpan(list334); - span144[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) + index2 = 2; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) { Aetheryte = EAetheryteLocation.UrqopachaWorlarsEcho }; - span144[1] = new QuestStep(EInteractionType.Interact, 1046819u, new Vector3(482.96326f, 114.935f, 622.76636f), 1187); - obj239.Steps = list334; - reference315 = obj239; - ref QuestSequence reference316 = ref span142[4]; - QuestSequence obj240 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046819u, new Vector3(482.96326f, 114.935f, 622.76636f), 1187); + obj242.Steps = list334; + reference315 = obj242; + num++; + ref QuestSequence reference316 = ref span2[num]; + QuestSequence obj243 = new QuestSequence { Sequence = 4 }; num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1046824u, new Vector3(358.87683f, 130.34726f, 597.2838f), 1187); - obj240.Steps = list335; - reference316 = obj240; - ref QuestSequence reference317 = ref span142[5]; - QuestSequence obj241 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046824u, new Vector3(358.87683f, 130.34726f, 597.2838f), 1187); + obj243.Steps = list335; + reference316 = obj243; + num++; + ref QuestSequence reference317 = ref span2[num]; + QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + span3 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) { StopDistance = 7f }; - obj241.Steps = list336; - reference317 = obj241; + obj244.Steps = list336; + reference317 = obj244; questRoot81.QuestSequence = list2; AddQuest(questId40, questRoot); QuestId questId41 = new QuestId(4890); @@ -338642,164 +408444,212 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list337); + index = 0; + span[index] = "liza"; questRoot82.Author = list337; QuestRoot questRoot83 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span145 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference318 = ref span145[0]; - QuestSequence obj242 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference318 = ref span2[num]; + QuestSequence obj245 = new QuestSequence { Sequence = 0 }; num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047507u, new Vector3(367.51343f, 130.34726f, 608.05664f), 1187) + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047507u, new Vector3(367.51343f, 130.34726f, 608.05664f), 1187) { StopDistance = 7f }; - obj242.Steps = list338; - reference318 = obj242; - ref QuestSequence reference319 = ref span145[1]; + obj245.Steps = list338; + reference318 = obj245; + num++; + ref QuestSequence reference319 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence47 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span146 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference320 = ref span146[0]; - QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1046937u, new Vector3(365.0415f, 129.04726f, 651.1177f), 1187); + QuestSequence questSequence43 = questSequence; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference320 = ref span3[num2]; + QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1046937u, new Vector3(365.0415f, 129.04726f, 651.1177f), 1187); num3 = 6; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - Span span147 = CollectionsMarshal.AsSpan(list339); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep34.CompletionQuestVariablesFlags = list339; - reference320 = questStep34; - ref QuestStep reference321 = ref span146[1]; - QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1046938u, new Vector3(511.65015f, 111.134995f, 697.9934f), 1187); - num3 = 6; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - Span span148 = CollectionsMarshal.AsSpan(list340); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep35.CompletionQuestVariablesFlags = list340; - reference321 = questStep35; - ref QuestStep reference322 = ref span146[2]; - QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1046939u, new Vector3(493.9192f, 111.135f, 553.58203f), 1187); + span5 = CollectionsMarshal.AsSpan(list339); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep36.CompletionQuestVariablesFlags = list339; + reference320 = questStep36; + num2++; + ref QuestStep reference321 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list340); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep37.CompletionQuestVariablesFlags = list340; + reference321 = questStep37; + num2++; + ref QuestStep reference322 = ref span3[num2]; + QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1046939u, new Vector3(493.9192f, 111.135f, 553.58203f), 1187); num3 = 6; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span149 = CollectionsMarshal.AsSpan(list341); - span149[0] = null; - span149[1] = null; - span149[2] = null; - span149[3] = null; - span149[4] = null; - span149[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep36.CompletionQuestVariablesFlags = list341; - reference322 = questStep36; - questSequence47.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list341); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep38.CompletionQuestVariablesFlags = list341; + reference322 = questStep38; + questSequence43.Steps = list8; reference319 = questSequence; - ref QuestSequence reference323 = ref span145[2]; - QuestSequence obj243 = new QuestSequence + num++; + ref QuestSequence reference323 = ref span2[num]; + QuestSequence obj246 = new QuestSequence { Sequence = 2 }; num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 2013635u, new Vector3(372.88464f, 130.32727f, 601.0681f), 1187); - obj243.Steps = list342; - reference323 = obj243; - ref QuestSequence reference324 = ref span145[3]; - QuestSequence obj244 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013635u, new Vector3(372.88464f, 130.32727f, 601.0681f), 1187); + obj246.Steps = list342; + reference323 = obj246; + num++; + ref QuestSequence reference324 = ref span2[num]; + QuestSequence obj247 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1046834u, new Vector3(406.8512f, 121.05475f, 501.24353f), 1187); - obj244.Steps = list343; - reference324 = obj244; - ref QuestSequence reference325 = ref span145[4]; - QuestSequence obj245 = new QuestSequence + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046834u, new Vector3(406.8512f, 121.05475f, 501.24353f), 1187); + obj247.Steps = list343; + reference324 = obj247; + num++; + ref QuestSequence reference325 = ref span2[num]; + QuestSequence obj248 = new QuestSequence { Sequence = 4 }; num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1046838u, new Vector3(137.68213f, 18.595926f, 225.0857f), 1187); - obj245.Steps = list344; - reference325 = obj245; - ref QuestSequence reference326 = ref span145[5]; - QuestSequence obj246 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046838u, new Vector3(137.68213f, 18.595926f, 225.0857f), 1187); + obj248.Steps = list344; + reference325 = obj248; + num++; + ref QuestSequence reference326 = ref span2[num]; + QuestSequence obj249 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1046839u, new Vector3(-200.39673f, 35.298744f, -39.292053f), 1187); - obj246.Steps = list345; - reference326 = obj246; - ref QuestSequence reference327 = ref span145[6]; - QuestSequence obj247 = new QuestSequence + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046839u, new Vector3(-200.39673f, 35.298744f, -39.292053f), 1187); + obj249.Steps = list345; + reference326 = obj249; + num++; + ref QuestSequence reference327 = ref span2[num]; + QuestSequence obj250 = new QuestSequence { Sequence = 6 }; num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span150 = CollectionsMarshal.AsSpan(list346); - span150[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013929u, new Vector3(-198.47418f, 23.11737f, -56.565247f), 1187) + span3 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013929u, new Vector3(-198.47418f, 23.11737f, -56.565247f), 1187) { DisableNavmesh = true, AetherCurrentId = 2818406u }; - span150[1] = new QuestStep(EInteractionType.Interact, 1046844u, new Vector3(-499.6262f, 59.211838f, 152.81909f), 1187); - obj247.Steps = list346; - reference327 = obj247; - ref QuestSequence reference328 = ref span145[7]; - QuestSequence obj248 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046844u, new Vector3(-499.6262f, 59.211838f, 152.81909f), 1187); + obj250.Steps = list346; + reference327 = obj250; + num++; + ref QuestSequence reference328 = ref span2[num]; + QuestSequence obj251 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1046849u, new Vector3(-327.44336f, 71.23984f, 336.38513f), 1187); - obj248.Steps = list347; - reference328 = obj248; - ref QuestSequence reference329 = ref span145[8]; - QuestSequence obj249 = new QuestSequence + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046849u, new Vector3(-327.44336f, 71.23984f, 336.38513f), 1187); + obj251.Steps = list347; + reference328 = obj251; + num++; + ref QuestSequence reference329 = ref span2[num]; + QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); - obj249.Steps = list348; - reference329 = obj249; + span3 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); + obj252.Steps = list348; + reference329 = obj252; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); QuestId questId42 = new QuestId(4891); @@ -338808,33 +408658,41 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list349); + index = 0; + span[index] = "liza"; questRoot84.Author = list349; QuestRoot questRoot85 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span151 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference330 = ref span151[0]; - QuestSequence obj250 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference330 = ref span2[num]; + QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); - obj250.Steps = list350; - reference330 = obj250; - ref QuestSequence reference331 = ref span151[1]; - QuestSequence obj251 = new QuestSequence + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); + obj253.Steps = list350; + reference330 = obj253; + num++; + ref QuestSequence reference331 = ref span2[num]; + QuestSequence obj254 = new QuestSequence { Sequence = 1 }; num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Duty, null, null, 1187) + span3 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1187) { DutyOptions = new DutyOptions { @@ -338842,31 +408700,35 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 824u } }; - obj251.Steps = list351; - reference331 = obj251; - span151[2] = new QuestSequence + obj254.Steps = list351; + reference331 = obj254; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference332 = ref span151[3]; - QuestSequence obj252 = new QuestSequence + num++; + ref QuestSequence reference332 = ref span2[num]; + QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span152 = CollectionsMarshal.AsSpan(list352); - span152[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013931u, new Vector3(70.17627f, 0.6560669f, 746.4254f), 1187) + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013931u, new Vector3(70.17627f, 0.6560669f, 746.4254f), 1187) { AetherCurrentId = 2818411u }; - span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj252.Steps = list352; - reference332 = obj252; + obj255.Steps = list352; + reference332 = obj255; questRoot85.QuestSequence = list2; AddQuest(questId42, questRoot); QuestId questId43 = new QuestId(4892); @@ -338875,141 +408737,185 @@ public static class AssemblyQuestLoader num = 1; List list353 = new List(num); CollectionsMarshal.SetCount(list353, num); - CollectionsMarshal.AsSpan(list353)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list353); + index = 0; + span[index] = "liza"; questRoot86.Author = list353; QuestRoot questRoot87 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span153 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference333 = ref span153[0]; - QuestSequence obj253 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference333 = ref span2[num]; + QuestSequence obj256 = new QuestSequence { Sequence = 0 }; num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187); - obj253.Steps = list354; - reference333 = obj253; - ref QuestSequence reference334 = ref span153[1]; + span3 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187); + obj256.Steps = list354; + reference333 = obj256; + num++; + ref QuestSequence reference334 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence48 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span154 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference335 = ref span154[0]; - QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1046872u, new Vector3(361.80652f, 129.04724f, 652.12476f), 1187) + QuestSequence questSequence44 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference335 = ref span3[num2]; + QuestStep obj257 = new QuestStep(EInteractionType.Interact, 1046872u, new Vector3(361.80652f, 129.04724f, 652.12476f), 1187) { StopDistance = 5f }; - num3 = 6; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span155 = CollectionsMarshal.AsSpan(list355); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj254.CompletionQuestVariablesFlags = list355; - reference335 = obj254; - ref QuestStep reference336 = ref span154[1]; - QuestStep questStep37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(497.05786f, 111.134995f, 558.38666f), 1187); + index3 = 6; + List list355 = new List(index3); + CollectionsMarshal.SetCount(list355, index3); + span5 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj257.CompletionQuestVariablesFlags = list355; + reference335 = obj257; + num2++; + ref QuestStep reference336 = ref span3[num2]; + questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(497.05786f, 111.134995f, 558.38666f), 1187); + QuestStep questStep39 = questStep5; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span156 = CollectionsMarshal.AsSpan(list356); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list356; skipConditions3.StepIf = skipStepConditions; - questStep37.SkipConditions = skipConditions3; - reference336 = questStep37; - ref QuestStep reference337 = ref span154[2]; - QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1046874u, new Vector3(492.97314f, 111.135f, 557.7324f), 1187) + questStep39.SkipConditions = skipConditions3; + reference336 = questStep5; + num2++; + ref QuestStep reference337 = ref span3[num2]; + QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1046874u, new Vector3(492.97314f, 111.135f, 557.7324f), 1187) { StopDistance = 5f }; - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span157 = CollectionsMarshal.AsSpan(list357); - span157[0] = null; - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj255.CompletionQuestVariablesFlags = list357; - reference337 = obj255; - ref QuestStep reference338 = ref span154[3]; - QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1046873u, new Vector3(513.2981f, 111.135f, 697.4745f), 1187) + index3 = 6; + List list357 = new List(index3); + CollectionsMarshal.SetCount(list357, index3); + span5 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj258.CompletionQuestVariablesFlags = list357; + reference337 = obj258; + num2++; + ref QuestStep reference338 = ref span3[num2]; + QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1046873u, new Vector3(513.2981f, 111.135f, 697.4745f), 1187) { StopDistance = 5f }; num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span158 = CollectionsMarshal.AsSpan(list358); - span158[0] = null; - span158[1] = null; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj256.CompletionQuestVariablesFlags = list358; - reference338 = obj256; - questSequence48.Steps = list3; + span5 = CollectionsMarshal.AsSpan(list358); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj259.CompletionQuestVariablesFlags = list358; + reference338 = obj259; + questSequence44.Steps = list8; reference334 = questSequence; - ref QuestSequence reference339 = ref span153[2]; - QuestSequence obj257 = new QuestSequence + num++; + ref QuestSequence reference339 = ref span2[num]; + QuestSequence obj260 = new QuestSequence { Sequence = 2 }; num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 2013636u, new Vector3(405.56946f, 122.51465f, 613.3668f), 1187); - obj257.Steps = list359; - reference339 = obj257; - ref QuestSequence reference340 = ref span153[3]; - QuestSequence obj258 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013636u, new Vector3(405.56946f, 122.51465f, 613.3668f), 1187); + obj260.Steps = list359; + reference339 = obj260; + num++; + ref QuestSequence reference340 = ref span2[num]; + QuestSequence obj261 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1046936u, new Vector3(355.76404f, 130.34726f, 595.0254f), 1187); - obj258.Steps = list360; - reference340 = obj258; - ref QuestSequence reference341 = ref span153[4]; - QuestSequence obj259 = new QuestSequence + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046936u, new Vector3(355.76404f, 130.34726f, 595.0254f), 1187); + obj261.Steps = list360; + reference340 = obj261; + num++; + ref QuestSequence reference341 = ref span2[num]; + QuestSequence obj262 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) + span3 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) { StopDistance = 7f }; - obj259.Steps = list361; - reference341 = obj259; + obj262.Steps = list361; + reference341 = obj262; questRoot87.QuestSequence = list2; AddQuest(questId43, questRoot); QuestId questId44 = new QuestId(4893); @@ -339018,80 +408924,96 @@ public static class AssemblyQuestLoader num = 1; List list362 = new List(num); CollectionsMarshal.SetCount(list362, num); - CollectionsMarshal.AsSpan(list362)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list362); + index = 0; + span[index] = "liza"; questRoot88.Author = list362; QuestRoot questRoot89 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span159 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference342 = ref span159[0]; - QuestSequence obj260 = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference342 = ref span2[num]; + QuestSequence obj263 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046881u, new Vector3(368.9784f, 130.34726f, 610.5592f), 1187) + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046881u, new Vector3(368.9784f, 130.34726f, 610.5592f), 1187) { StopDistance = 7f }; - obj260.Steps = list363; - reference342 = obj260; - ref QuestSequence reference343 = ref span159[1]; - QuestSequence obj261 = new QuestSequence + obj263.Steps = list363; + reference342 = obj263; + num++; + ref QuestSequence reference343 = ref span2[num]; + QuestSequence obj264 = new QuestSequence { Sequence = 1 }; num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - ref QuestStep reference344 = ref CollectionsMarshal.AsSpan(list364)[0]; - QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1046884u, new Vector3(536.82764f, 105.12397f, 660.05945f), 1187); - num3 = 1; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - CollectionsMarshal.AsSpan(list365)[0] = new DialogueChoice + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + ref QuestStep reference344 = ref span3[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); + span4 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMB114_04893_Q3_000_000") }; - questStep38.DialogueChoices = list365; - reference344 = questStep38; - obj261.Steps = list364; - reference343 = obj261; - ref QuestSequence reference345 = ref span159[2]; - questSequence = new QuestSequence + questStep40.DialogueChoices = list365; + reference344 = questStep40; + obj264.Steps = list364; + reference343 = obj264; + num++; + ref QuestSequence reference345 = ref span2[num]; + QuestSequence obj265 = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence49 = questSequence; - num2 = 3; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - Span span160 = CollectionsMarshal.AsSpan(list366); - span160[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(551.6129f, 103.3147f, 660.07434f), 1187) + index2 = 3; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(551.6129f, 103.3147f, 660.07434f), 1187) { Mount = true }; - span160[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(564.4495f, 98.513535f, 613.08606f), 1187); - span160[2] = new QuestStep(EInteractionType.WalkTo, 1046885u, new Vector3(566.1762f, 98.513535f, 564.2549f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(564.4495f, 98.513535f, 613.08606f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046885u, new Vector3(566.1762f, 98.513535f, 564.2549f), 1187) { StopDistance = 1f }; - questSequence49.Steps = list366; - reference345 = questSequence; - ref QuestSequence reference346 = ref span159[3]; - QuestSequence obj262 = new QuestSequence + obj265.Steps = list366; + reference345 = obj265; + num++; + ref QuestSequence reference346 = ref span2[num]; + QuestSequence obj266 = new QuestSequence { Sequence = 3 }; num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - ref QuestStep reference347 = ref CollectionsMarshal.AsSpan(list367)[0]; - QuestStep obj263 = new QuestStep(EInteractionType.Combat, null, new Vector3(585.3602f, 98.73023f, 548.79535f), 1187) + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + ref QuestStep reference347 = ref span3[index2]; + QuestStep obj267 = new QuestStep(EInteractionType.Combat, null, new Vector3(585.3602f, 98.73023f, 548.79535f), 1187) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -339099,109 +409021,132 @@ public static class AssemblyQuestLoader num3 = 1; List list368 = new List(num3); CollectionsMarshal.SetCount(list368, num3); - CollectionsMarshal.AsSpan(list368)[0] = 17695u; - obj263.KillEnemyDataIds = list368; - reference347 = obj263; - obj262.Steps = list367; - reference346 = obj262; - ref QuestSequence reference348 = ref span159[4]; - QuestSequence obj264 = new QuestSequence + span6 = CollectionsMarshal.AsSpan(list368); + index3 = 0; + span6[index3] = 17695u; + obj267.KillEnemyDataIds = list368; + reference347 = obj267; + obj266.Steps = list367; + reference346 = obj266; + num++; + ref QuestSequence reference348 = ref span2[num]; + QuestSequence obj268 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1046887u, new Vector3(565.88074f, 98.513535f, 566.4606f), 1187); - obj264.Steps = list369; - reference348 = obj264; - ref QuestSequence reference349 = ref span159[5]; + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + span3 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046887u, new Vector3(565.88074f, 98.513535f, 566.4606f), 1187); + obj268.Steps = list369; + reference348 = obj268; + num++; + ref QuestSequence reference349 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence50 = questSequence; + QuestSequence questSequence45 = questSequence; num2 = 3; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span161 = CollectionsMarshal.AsSpan(list370); - span161[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(559.54816f, 98.436874f, 539.67975f), 1187) + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(559.54816f, 98.436874f, 539.67975f), 1187) { Mount = true }; - span161[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(508.8067f, 104.9486f, 449.75946f), 1187); - span161[2] = new QuestStep(EInteractionType.WalkTo, 1046886u, new Vector3(474.6922f, 109.06019f, 417.7015f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(508.8067f, 104.9486f, 449.75946f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1046886u, new Vector3(474.6922f, 109.06019f, 417.7015f), 1187) { StopDistance = 1f }; - questSequence50.Steps = list370; + questSequence45.Steps = list370; reference349 = questSequence; - ref QuestSequence reference350 = ref span159[6]; - QuestSequence obj265 = new QuestSequence + num++; + ref QuestSequence reference350 = ref span2[num]; + QuestSequence obj269 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - ref QuestStep reference351 = ref CollectionsMarshal.AsSpan(list371)[0]; - QuestStep obj266 = new QuestStep(EInteractionType.Combat, null, new Vector3(470.6856f, 109.359344f, 395.2364f), 1187) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + ref QuestStep reference351 = ref span3[num2]; + QuestStep obj270 = new QuestStep(EInteractionType.Combat, null, new Vector3(470.6856f, 109.359344f, 395.2364f), 1187) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = 17696u; - obj266.KillEnemyDataIds = list372; - reference351 = obj266; - obj265.Steps = list371; - reference350 = obj265; - ref QuestSequence reference352 = ref span159[7]; - QuestSequence obj267 = new QuestSequence + index3 = 1; + List list372 = new List(index3); + CollectionsMarshal.SetCount(list372, index3); + span6 = CollectionsMarshal.AsSpan(list372); + num3 = 0; + span6[num3] = 17696u; + obj270.KillEnemyDataIds = list372; + reference351 = obj270; + obj269.Steps = list371; + reference350 = obj269; + num++; + ref QuestSequence reference352 = ref span2[num]; + QuestSequence obj271 = new QuestSequence { Sequence = 7 }; num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1046890u, new Vector3(473.0448f, 108.868965f, 419.33313f), 1187); - obj267.Steps = list373; - reference352 = obj267; - ref QuestSequence reference353 = ref span159[8]; - QuestSequence obj268 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046890u, new Vector3(473.0448f, 108.868965f, 419.33313f), 1187); + obj271.Steps = list373; + reference352 = obj271; + num++; + ref QuestSequence reference353 = ref span2[num]; + QuestSequence obj272 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - Span span162 = CollectionsMarshal.AsSpan(list374); - span162[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046889u, new Vector3(489.753f, 107.692184f, 424.54318f), 1187) + index2 = 2; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span3 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046889u, new Vector3(489.753f, 107.692184f, 424.54318f), 1187) { Mount = true }; - span162[1] = new QuestStep(EInteractionType.WalkTo, 1046889u, new Vector3(570.6724f, 119.33488f, 359.8228f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, 1046889u, new Vector3(570.6724f, 119.33488f, 359.8228f), 1187) { StopDistance = 1f }; - obj268.Steps = list374; - reference353 = obj268; - ref QuestSequence reference354 = ref span159[9]; - QuestSequence obj269 = new QuestSequence + obj272.Steps = list374; + reference353 = obj272; + num++; + ref QuestSequence reference354 = ref span2[num]; + QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) { StopDistance = 5f }; - obj269.Steps = list375; - reference354 = obj269; + obj273.Steps = list375; + reference354 = obj273; questRoot89.QuestSequence = list2; AddQuest(questId44, questRoot); QuestId questId45 = new QuestId(4894); @@ -339210,120 +409155,147 @@ public static class AssemblyQuestLoader num = 1; List list376 = new List(num); CollectionsMarshal.SetCount(list376, num); - CollectionsMarshal.AsSpan(list376)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list376); + index = 0; + span[index] = "liza"; questRoot90.Author = list376; QuestRoot questRoot91 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span163 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference355 = ref span163[0]; - QuestSequence obj270 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference355 = ref span2[num]; + QuestSequence obj274 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) { StopDistance = 5f }; - obj270.Steps = list377; - reference355 = obj270; - ref QuestSequence reference356 = ref span163[1]; + obj274.Steps = list377; + reference355 = obj274; + num++; + ref QuestSequence reference356 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence51 = questSequence; + QuestSequence questSequence46 = questSequence; num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span164 = CollectionsMarshal.AsSpan(list3); - span164[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013933u, new Vector3(398.79456f, 85.9845f, 261.3717f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013933u, new Vector3(398.79456f, 85.9845f, 261.3717f), 1187) { AetherCurrentId = 2818413u }; - span164[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.70453f, 56.34349f, 226.48372f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.70453f, 56.34349f, 226.48372f), 1187) { DisableNavmesh = true, Mount = true }; - span164[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(380.3574f, 59.728928f, -3.9185147f), 1187); - span164[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013932u, new Vector3(368.33752f, 61.05127f, -9.2317505f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(380.3574f, 59.728928f, -3.9185147f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013932u, new Vector3(368.33752f, 61.05127f, -9.2317505f), 1187) { DisableNavmesh = true, AetherCurrentId = 2818412u }; - span164[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.56342f, 57.53834f, 10.309054f), 1187); - span164[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(308.72827f, 60.2934f, 111.43004f), 1187); - span164[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.1766f, 29.79629f, 184.32184f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.56342f, 57.53834f, 10.309054f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(308.72827f, 60.2934f, 111.43004f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.1766f, 29.79629f, 184.32184f), 1187) { DisableNavmesh = true }; - span164[7] = new QuestStep(EInteractionType.Interact, 1046894u, new Vector3(170.91626f, 19.997774f, 241.32141f), 1187); - questSequence51.Steps = list3; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046894u, new Vector3(170.91626f, 19.997774f, 241.32141f), 1187); + questSequence46.Steps = list8; reference356 = questSequence; - ref QuestSequence reference357 = ref span163[2]; - QuestSequence obj271 = new QuestSequence + num++; + ref QuestSequence reference357 = ref span2[num]; + QuestSequence obj275 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1046896u, new Vector3(-419.6994f, 69.50964f, 169.69556f), 1187); - obj271.Steps = list378; - reference357 = obj271; - ref QuestSequence reference358 = ref span163[3]; - QuestSequence obj272 = new QuestSequence + index2 = 1; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + span3 = CollectionsMarshal.AsSpan(list378); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046896u, new Vector3(-419.6994f, 69.50964f, 169.69556f), 1187); + obj275.Steps = list378; + reference357 = obj275; + num++; + ref QuestSequence reference358 = ref span2[num]; + QuestSequence obj276 = new QuestSequence { Sequence = 3 }; num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1046898u, new Vector3(-594.81195f, 58.34162f, 122.48413f), 1187); - obj272.Steps = list379; - reference358 = obj272; - ref QuestSequence reference359 = ref span163[4]; - QuestSequence obj273 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046898u, new Vector3(-594.81195f, 58.34162f, 122.48413f), 1187); + obj276.Steps = list379; + reference358 = obj276; + num++; + ref QuestSequence reference359 = ref span2[num]; + QuestSequence obj277 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - Span span165 = CollectionsMarshal.AsSpan(list380); - span165[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013930u, new Vector3(-812.8939f, 57.480713f, 105.485596f), 1187) + index2 = 2; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013930u, new Vector3(-812.8939f, 57.480713f, 105.485596f), 1187) { AetherCurrentId = 2818407u }; - span165[1] = new QuestStep(EInteractionType.Duty, null, null, 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1187) { DutyOptions = new DutyOptions { ContentFinderConditionId = 832u } }; - obj273.Steps = list380; - reference359 = obj273; - span163[5] = new QuestSequence + obj277.Steps = list380; + reference359 = obj277; + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference360 = ref span163[6]; - QuestSequence obj274 = new QuestSequence + num++; + ref QuestSequence reference360 = ref span2[num]; + QuestSequence obj278 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046909u, new Vector3(-803.1586f, 56.144436f, 139.20801f), 1187); - obj274.Steps = list381; - reference360 = obj274; + span3 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046909u, new Vector3(-803.1586f, 56.144436f, 139.20801f), 1187); + obj278.Steps = list381; + reference360 = obj278; questRoot91.QuestSequence = list2; AddQuest(questId45, questRoot); QuestId questId46 = new QuestId(4895); @@ -339332,55 +409304,66 @@ public static class AssemblyQuestLoader num = 1; List list382 = new List(num); CollectionsMarshal.SetCount(list382, num); - CollectionsMarshal.AsSpan(list382)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list382); + index = 0; + span[index] = "liza"; questRoot92.Author = list382; QuestRoot questRoot93 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span166 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference361 = ref span166[0]; - QuestSequence obj275 = new QuestSequence + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference361 = ref span2[num]; + QuestSequence obj279 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046914u, new Vector3(-806.3325f, 56.050728f, 134.44714f), 1187) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + span3 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046914u, new Vector3(-806.3325f, 56.050728f, 134.44714f), 1187) { StopDistance = 5f }; - obj275.Steps = list383; - reference361 = obj275; - ref QuestSequence reference362 = ref span166[1]; - QuestSequence obj276 = new QuestSequence + obj279.Steps = list383; + reference361 = obj279; + num++; + ref QuestSequence reference362 = ref span2[num]; + QuestSequence obj280 = new QuestSequence { Sequence = 1 }; num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj276.Steps = list384; - reference362 = obj276; - ref QuestSequence reference363 = ref span166[2]; - QuestSequence obj277 = new QuestSequence + obj280.Steps = list384; + reference362 = obj280; + num++; + ref QuestSequence reference363 = ref span2[num]; + QuestSequence obj281 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) { StopDistance = 5f }; - obj277.Steps = list385; - reference363 = obj277; + obj281.Steps = list385; + reference363 = obj281; questRoot93.QuestSequence = list2; AddQuest(questId46, questRoot); QuestId questId47 = new QuestId(4896); @@ -339389,48 +409372,57 @@ public static class AssemblyQuestLoader num = 1; List list386 = new List(num); CollectionsMarshal.SetCount(list386, num); - CollectionsMarshal.AsSpan(list386)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list386); + index = 0; + span[index] = "liza"; questRoot94.Author = list386; QuestRoot questRoot95 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span167 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference364 = ref span167[0]; - QuestSequence obj278 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference364 = ref span2[num]; + QuestSequence obj282 = new QuestSequence { Sequence = 0 }; num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046918u, new Vector3(365.31616f, 130.34726f, 602.34985f), 1187) + span3 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046918u, new Vector3(365.31616f, 130.34726f, 602.34985f), 1187) { StopDistance = 7f }; - obj278.Steps = list387; - reference364 = obj278; - ref QuestSequence reference365 = ref span167[1]; + obj282.Steps = list387; + reference364 = obj282; + num++; + ref QuestSequence reference365 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence52 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span168 = CollectionsMarshal.AsSpan(list3); - span168[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + QuestSequence questSequence47 = questSequence; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, PickUpQuestId = new QuestId(5055) }; - span168[1] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f, PickUpQuestId = new QuestId(5047) }; - span168[2] = new QuestStep(EInteractionType.Interact, 1046926u, new Vector3(-163.95825f, -14.999357f, 208.27039f), 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046926u, new Vector3(-163.95825f, -14.999357f, 208.27039f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -339439,42 +409431,51 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - questSequence52.Steps = list3; + questSequence47.Steps = list8; reference365 = questSequence; - ref QuestSequence reference366 = ref span167[2]; - QuestSequence obj279 = new QuestSequence + num++; + ref QuestSequence reference366 = ref span2[num]; + QuestSequence obj283 = new QuestSequence { Sequence = 2 }; num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 1046940u, new Vector3(-202.74664f, -15f, 296.55908f), 1185); - obj279.Steps = list388; - reference366 = obj279; - ref QuestSequence reference367 = ref span167[3]; - QuestSequence obj280 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046940u, new Vector3(-202.74664f, -15f, 296.55908f), 1185); + obj283.Steps = list388; + reference366 = obj283; + num++; + ref QuestSequence reference367 = ref span2[num]; + QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1046929u, new Vector3(-199.08447f, -14.999306f, 306.35522f), 1185) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + span3 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046929u, new Vector3(-199.08447f, -14.999306f, 306.35522f), 1185) { StopDistance = 5f }; - obj280.Steps = list389; - reference367 = obj280; - ref QuestSequence reference368 = ref span167[4]; - QuestSequence obj281 = new QuestSequence + obj284.Steps = list389; + reference367 = obj284; + num++; + ref QuestSequence reference368 = ref span2[num]; + QuestSequence obj285 = new QuestSequence { Sequence = 4 }; num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1046930u, new Vector3(-141.31384f, 51.999996f, 7.94989f), 1185) + span3 = CollectionsMarshal.AsSpan(list390); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046930u, new Vector3(-141.31384f, 51.999996f, 7.94989f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -339483,19 +409484,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj281.Steps = list390; - reference368 = obj281; - ref QuestSequence reference369 = ref span167[5]; - QuestSequence obj282 = new QuestSequence + obj285.Steps = list390; + reference368 = obj285; + num++; + ref QuestSequence reference369 = ref span2[num]; + QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); - obj282.Steps = list391; - reference369 = obj282; + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); + obj286.Steps = list391; + reference369 = obj286; questRoot95.QuestSequence = list2; AddQuest(questId47, questRoot); QuestId questId48 = new QuestId(4897); @@ -339504,34 +409508,41 @@ public static class AssemblyQuestLoader num = 1; List list392 = new List(num); CollectionsMarshal.SetCount(list392, num); - CollectionsMarshal.AsSpan(list392)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list392); + index = 0; + span[index] = "liza"; questRoot96.Author = list392; QuestRoot questRoot97 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span169 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference370 = ref span169[0]; - QuestSequence obj283 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference370 = ref span2[num]; + QuestSequence obj287 = new QuestSequence { Sequence = 0 }; num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); - obj283.Steps = list393; - reference370 = obj283; - ref QuestSequence reference371 = ref span169[1]; - QuestSequence obj284 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); + obj287.Steps = list393; + reference370 = obj287; + num++; + ref QuestSequence reference371 = ref span2[num]; + QuestSequence obj288 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span170 = CollectionsMarshal.AsSpan(list394); - span170[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.15686f, 11.01f, -13.636331f), 1185) + index2 = 2; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + span3 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.15686f, 11.01f, -13.636331f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -339539,57 +409550,68 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalDirigibleLanding } }; - span170[1] = new QuestStep(EInteractionType.Interact, 1047509u, new Vector3(-426.47443f, 11.01f, -13.626343f), 1185); - obj284.Steps = list394; - reference371 = obj284; - span169[2] = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047509u, new Vector3(-426.47443f, 11.01f, -13.626343f), 1185); + obj288.Steps = list394; + reference371 = obj288; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference372 = ref span169[3]; - QuestSequence obj285 = new QuestSequence + num++; + ref QuestSequence reference372 = ref span2[num]; + QuestSequence obj289 = new QuestSequence { Sequence = 3 }; num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1047608u, new Vector3(15.152161f, 8.205901f, -655.848f), 1189) + span3 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047608u, new Vector3(15.152161f, 8.205901f, -655.848f), 1189) { StopDistance = 7f }; - obj285.Steps = list395; - reference372 = obj285; - ref QuestSequence reference373 = ref span169[4]; - QuestSequence obj286 = new QuestSequence + obj289.Steps = list395; + reference372 = obj289; + num++; + ref QuestSequence reference373 = ref span2[num]; + QuestSequence obj290 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - Span span171 = CollectionsMarshal.AsSpan(list396); - span171[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013944u, new Vector3(-114.39691f, 5.8441772f, -527.1229f), 1189) + index2 = 2; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + span3 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013944u, new Vector3(-114.39691f, 5.8441772f, -527.1229f), 1189) { AetherCurrentId = 2818434u }; - span171[1] = new QuestStep(EInteractionType.Interact, 1047515u, new Vector3(-227.74097f, 14.458079f, -440.32965f), 1189); - obj286.Steps = list396; - reference373 = obj286; - ref QuestSequence reference374 = ref span169[5]; - QuestSequence obj287 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047515u, new Vector3(-227.74097f, 14.458079f, -440.32965f), 1189); + obj290.Steps = list396; + reference373 = obj290; + num++; + ref QuestSequence reference374 = ref span2[num]; + QuestSequence obj291 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047520u, new Vector3(-350.72864f, 16.964071f, -428.4276f), 1189) + span3 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047520u, new Vector3(-350.72864f, 16.964071f, -428.4276f), 1189) { StopDistance = 1f }; - obj287.Steps = list397; - reference374 = obj287; + obj291.Steps = list397; + reference374 = obj291; questRoot97.QuestSequence = list2; AddQuest(questId48, questRoot); QuestId questId49 = new QuestId(4898); @@ -339598,132 +409620,176 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - CollectionsMarshal.AsSpan(list398)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list398); + index = 0; + span[index] = "liza"; questRoot98.Author = list398; QuestRoot questRoot99 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span172 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference375 = ref span172[0]; - QuestSequence obj288 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference375 = ref span2[num]; + QuestSequence obj292 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047521u, new Vector3(-352.22406f, 15.683111f, -433.12738f), 1189) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047521u, new Vector3(-352.22406f, 15.683111f, -433.12738f), 1189) { StopDistance = 7f }; - obj288.Steps = list399; - reference375 = obj288; - ref QuestSequence reference376 = ref span172[1]; - QuestSequence obj289 = new QuestSequence + obj292.Steps = list399; + reference375 = obj292; + num++; + ref QuestSequence reference376 = ref span2[num]; + QuestSequence obj293 = new QuestSequence { Sequence = 1 }; num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1047525u, new Vector3(-524.01013f, 28.760696f, -422.3545f), 1189); - obj289.Steps = list400; - reference376 = obj289; - ref QuestSequence reference377 = ref span172[2]; + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047525u, new Vector3(-524.01013f, 28.760696f, -422.3545f), 1189); + obj293.Steps = list400; + reference376 = obj293; + num++; + ref QuestSequence reference377 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence53 = questSequence; - num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span173 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference378 = ref span173[0]; - QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 2013646u, new Vector3(-505.85184f, 30.411133f, -341.3291f), 1189); + QuestSequence questSequence48 = questSequence; + index2 = 5; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference378 = ref span3[num2]; + QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 2013646u, new Vector3(-505.85184f, 30.411133f, -341.3291f), 1189); num3 = 6; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - Span span174 = CollectionsMarshal.AsSpan(list401); - span174[0] = null; - span174[1] = null; - span174[2] = null; - span174[3] = null; - span174[4] = null; - span174[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep39.CompletionQuestVariablesFlags = list401; - reference378 = questStep39; - ref QuestStep reference379 = ref span173[1]; - QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1047533u, new Vector3(-431.44885f, 28.068893f, -332.6925f), 1189); - num3 = 6; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - Span span175 = CollectionsMarshal.AsSpan(list402); - span175[0] = null; - span175[1] = null; - span175[2] = null; - span175[3] = null; - span175[4] = null; - span175[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep40.CompletionQuestVariablesFlags = list402; - reference379 = questStep40; - ref QuestStep reference380 = ref span173[2]; - QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1051340u, new Vector3(-400.6867f, 20.478943f, -396.65833f), 1189); + span5 = CollectionsMarshal.AsSpan(list401); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep41.CompletionQuestVariablesFlags = list401; + reference378 = questStep41; + num2++; + ref QuestStep reference379 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep42.CompletionQuestVariablesFlags = list402; + reference379 = questStep42; + num2++; + ref QuestStep reference380 = ref span3[num2]; + QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 1051340u, new Vector3(-400.6867f, 20.478943f, -396.65833f), 1189); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span176 = CollectionsMarshal.AsSpan(list403); - span176[0] = null; - span176[1] = null; - span176[2] = null; - span176[3] = null; - span176[4] = null; - span176[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep41.CompletionQuestVariablesFlags = list403; - reference380 = questStep41; - span173[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) + span5 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep43.CompletionQuestVariablesFlags = list403; + reference380 = questStep43; + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) { Aetheryte = EAetheryteLocation.YakTelIqBraax }; - ref QuestStep reference381 = ref span173[4]; - QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 2013645u, new Vector3(-425.5589f, 23.544617f, -484.97754f), 1189); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span177 = CollectionsMarshal.AsSpan(list404); - span177[0] = null; - span177[1] = null; - span177[2] = null; - span177[3] = null; - span177[4] = null; - span177[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep42.CompletionQuestVariablesFlags = list404; - reference381 = questStep42; - questSequence53.Steps = list3; + num2++; + ref QuestStep reference381 = ref span3[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); + span5 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep44.CompletionQuestVariablesFlags = list404; + reference381 = questStep44; + questSequence48.Steps = list8; reference377 = questSequence; - ref QuestSequence reference382 = ref span172[3]; - QuestSequence obj290 = new QuestSequence + num++; + ref QuestSequence reference382 = ref span2[num]; + QuestSequence obj294 = new QuestSequence { Sequence = 3 }; num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 2013647u, new Vector3(-523.43024f, 28.732666f, -423.0869f), 1189); - obj290.Steps = list405; - reference382 = obj290; - ref QuestSequence reference383 = ref span172[4]; - QuestSequence obj291 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013647u, new Vector3(-523.43024f, 28.732666f, -423.0869f), 1189); + obj294.Steps = list405; + reference382 = obj294; + num++; + ref QuestSequence reference383 = ref span2[num]; + QuestSequence obj295 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047544u, new Vector3(-520.25635f, 28.760696f, -422.11035f), 1189); - obj291.Steps = list406; - reference383 = obj291; + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + span3 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047544u, new Vector3(-520.25635f, 28.760696f, -422.11035f), 1189); + obj295.Steps = list406; + reference383 = obj295; questRoot99.QuestSequence = list2; AddQuest(questId49, questRoot); QuestId questId50 = new QuestId(4899); @@ -339732,84 +409798,104 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - CollectionsMarshal.AsSpan(list407)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list407); + index = 0; + span[index] = "liza"; questRoot100.Author = list407; QuestRoot questRoot101 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span178 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference384 = ref span178[0]; - QuestSequence obj292 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference384 = ref span2[num]; + QuestSequence obj296 = new QuestSequence { Sequence = 0 }; num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047545u, new Vector3(-521.0803f, 28.760695f, -420.79803f), 1189); - obj292.Steps = list408; - reference384 = obj292; - ref QuestSequence reference385 = ref span178[1]; - QuestSequence obj293 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047545u, new Vector3(-521.0803f, 28.760695f, -420.79803f), 1189); + obj296.Steps = list408; + reference384 = obj296; + num++; + ref QuestSequence reference385 = ref span2[num]; + QuestSequence obj297 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1047534u, new Vector3(-423.9109f, 23.536806f, -487.41895f), 1189); - obj293.Steps = list409; - reference385 = obj293; - ref QuestSequence reference386 = ref span178[2]; - QuestSequence obj294 = new QuestSequence + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + span3 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047534u, new Vector3(-423.9109f, 23.536806f, -487.41895f), 1189); + obj297.Steps = list409; + reference385 = obj297; + num++; + ref QuestSequence reference386 = ref span2[num]; + QuestSequence obj298 = new QuestSequence { Sequence = 2 }; num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1047548u, new Vector3(-65.23236f, 4.5670285f, -403.21973f), 1189); - obj294.Steps = list410; - reference386 = obj294; - ref QuestSequence reference387 = ref span178[3]; - QuestSequence obj295 = new QuestSequence + span3 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047548u, new Vector3(-65.23236f, 4.5670285f, -403.21973f), 1189); + obj298.Steps = list410; + reference386 = obj298; + num++; + ref QuestSequence reference387 = ref span2[num]; + QuestSequence obj299 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1047550u, new Vector3(410.45227f, 19.820219f, -460.8988f), 1189); - obj295.Steps = list411; - reference387 = obj295; - ref QuestSequence reference388 = ref span178[4]; - QuestSequence obj296 = new QuestSequence + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047550u, new Vector3(410.45227f, 19.820219f, -460.8988f), 1189); + obj299.Steps = list411; + reference387 = obj299; + num++; + ref QuestSequence reference388 = ref span2[num]; + QuestSequence obj300 = new QuestSequence { Sequence = 4 }; num2 = 2; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span179 = CollectionsMarshal.AsSpan(list412); - span179[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013945u, new Vector3(416.06763f, 15.518433f, -545.0065f), 1189) + span3 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013945u, new Vector3(416.06763f, 15.518433f, -545.0065f), 1189) { AetherCurrentId = 2818435u }; - span179[1] = new QuestStep(EInteractionType.Interact, 1047552u, new Vector3(476.70703f, 19.460531f, -358.23608f), 1189); - obj296.Steps = list412; - reference388 = obj296; - ref QuestSequence reference389 = ref span178[5]; - QuestSequence obj297 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047552u, new Vector3(476.70703f, 19.460531f, -358.23608f), 1189); + obj300.Steps = list412; + reference388 = obj300; + num++; + ref QuestSequence reference389 = ref span2[num]; + QuestSequence obj301 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047763u, new Vector3(477.5005f, 19.52627f, -359.8841f), 1189); - obj297.Steps = list413; - reference389 = obj297; + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047763u, new Vector3(477.5005f, 19.52627f, -359.8841f), 1189); + obj301.Steps = list413; + reference389 = obj301; questRoot101.QuestSequence = list2; AddQuest(questId50, questRoot); } @@ -339821,13 +409907,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -339835,24 +409924,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047764u, new Vector3(474.9065f, 19.501463f, -358.05298f), 1189) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047764u, new Vector3(474.9065f, 19.501463f, -358.05298f), 1189) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1047618u, new Vector3(539.6658f, 9.54172f, -219.22644f), 1189); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047618u, new Vector3(539.6658f, 9.54172f, -219.22644f), 1189); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -339860,24 +409955,30 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1047555u, new Vector3(-524.58997f, 28.760696f, -424.2771f), 1189) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047555u, new Vector3(-524.58997f, 28.760696f, -424.2771f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 2013649u, new Vector3(-521.9959f, 28.732666f, -422.65967f), 1189); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013649u, new Vector3(-521.9959f, 28.732666f, -422.65967f), 1189); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -339885,7 +409986,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047558u, new Vector3(-518.51685f, 28.775951f, -420.95068f), 1189) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047558u, new Vector3(-518.51685f, 28.775951f, -420.95068f), 1189) { StopDistance = 7f }; @@ -339898,27 +410001,33 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 5; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 5; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047561u, new Vector3(-519.4324f, 28.767723f, -419.24164f), 1189) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047561u, new Vector3(-519.4324f, 28.767723f, -419.24164f), 1189) { StopDistance = 7f }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -339926,21 +410035,27 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1047563u, new Vector3(-433.06635f, 18.428335f, -392.32477f), 1189); + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047563u, new Vector3(-433.06635f, 18.428335f, -392.32477f), 1189); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[3]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -339948,18 +410063,23 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list9; @@ -339969,13 +410089,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span3 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span3[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -339983,23 +410106,28 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span3[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span4 = CollectionsMarshal.AsSpan(list18); - span4[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013946u, new Vector3(-550.6218f, -4.3793945f, -137.68219f), 1189) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013946u, new Vector3(-550.6218f, -4.3793945f, -137.68219f), 1189) { AetherCurrentId = 2818438u }; - span4[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047570u, new Vector3(-526.9398f, 28.760693f, -425.98615f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047570u, new Vector3(-526.9398f, 28.760693f, -425.98615f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -340009,11 +410137,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - span3[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference13 = ref span3[3]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -340021,7 +410146,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) { StopDistance = 7f }; @@ -340034,27 +410161,33 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot4.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span5 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span5[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) { StopDistance = 7f }; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span5[1]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -340062,13 +410195,16 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference16 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference16 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1050872u, new Vector3(-408.71295f, 20.420113f, -398.8861f), 1189); int num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list24); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/051/KinGzd201_05110", @@ -340078,25 +410214,31 @@ public static class AssemblyQuestLoader questStep.DialogueChoices = list24; questStep.PickUpQuestId = new QuestId(5110); reference16 = questStep; - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { PickUpQuestId = new QuestId(5094) }; - span6[2] = new QuestStep(EInteractionType.Interact, 1047577u, new Vector3(600.76294f, 11.096121f, 23.788818f), 1189); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047577u, new Vector3(600.76294f, 11.096121f, 23.788818f), 1189); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference17 = ref span5[2]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1048230u, new Vector3(612.57336f, -33.408688f, 214.83167f), 1189); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048230u, new Vector3(612.57336f, -33.408688f, 214.83167f), 1189); obj16.Steps = list25; reference17 = obj16; - ref QuestSequence reference18 = ref span5[3]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -340104,24 +410246,30 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1048229u, new Vector3(622.2781f, -58.68765f, 176.83679f), 1189) + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048229u, new Vector3(622.2781f, -58.68765f, 176.83679f), 1189) { Mount = true }; obj17.Steps = list26; reference18 = obj17; - ref QuestSequence reference19 = ref span5[4]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1047582u, new Vector3(719.72217f, -93.15191f, 338.55188f), 1189); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047582u, new Vector3(719.72217f, -93.15191f, 338.55188f), 1189); obj18.Steps = list27; reference19 = obj18; - ref QuestSequence reference20 = ref span5[5]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -340129,22 +410277,27 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.UseItem, 2013651u, new Vector3(718.59314f, -90.92853f, 335.8662f), 1189) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013651u, new Vector3(718.59314f, -90.92853f, 335.8662f), 1189) { StopDistance = 4f, ItemId = 2003487u }; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference21 = ref span5[6]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047587u, new Vector3(739.37585f, -133.17699f, 516.5636f), 1189); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047587u, new Vector3(739.37585f, -133.17699f, 516.5636f), 1189); obj20.Steps = list29; reference21 = obj20; questRoot4.QuestSequence = list21; @@ -340154,13 +410307,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "liza"; questRoot5.Author = list30; - num = 6; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span7 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span7[0]; + index = 6; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -340168,60 +410324,80 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047588u, new Vector3(738.85693f, -133.17517f, 514.9767f), 1189); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047588u, new Vector3(738.85693f, -133.17517f, 514.9767f), 1189); obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span7[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span8 = CollectionsMarshal.AsSpan(list33); - span8[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) + index2 = 4; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) { Aetheryte = EAetheryteLocation.YakTelMamook }; - span8[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013953u, new Vector3(747.18835f, -176.4096f, 712.64197f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013953u, new Vector3(747.18835f, -176.4096f, 712.64197f), 1189) { AetherCurrentId = 2818443u }; - ref QuestStep reference24 = ref span8[2]; + num2++; + ref QuestStep reference24 = ref span3[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1047592u, new Vector3(561.4862f, -142.49185f, 502.46423f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span9 = CollectionsMarshal.AsSpan(list34); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span5 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list34; reference24 = obj23; - ref QuestStep reference25 = ref span8[3]; + num2++; + ref QuestStep reference25 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1047593u, new Vector3(535.97314f, -142.49185f, 497.94763f), 1189); num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span10 = CollectionsMarshal.AsSpan(list35); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list35; reference25 = questStep2; obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference26 = ref span7[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -340229,21 +410405,27 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1047594u, new Vector3(601.9531f, -137.17401f, 489.79932f), 1189); + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047594u, new Vector3(601.9531f, -137.17401f, 489.79932f), 1189); obj24.Steps = list36; reference26 = obj24; - ref QuestSequence reference27 = ref span7[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1047595u, new Vector3(626.94727f, -137.12654f, 510.3075f), 1189); + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047595u, new Vector3(626.94727f, -137.12654f, 510.3075f), 1189); obj25.Steps = list37; reference27 = obj25; - ref QuestSequence reference28 = ref span7[4]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -340251,21 +410433,26 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1047596u, new Vector3(360.06702f, -113.97448f, 595.0254f), 1189) + span3 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047596u, new Vector3(360.06702f, -113.97448f, 595.0254f), 1189) { StopDistance = 5f }; obj26.Steps = list38; reference28 = obj26; - ref QuestSequence reference29 = ref span7[5]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047601u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + span3 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047601u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); obj27.Steps = list39; reference29 = obj27; questRoot5.QuestSequence = list31; @@ -340275,13 +410462,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot6.Author = list40; - num = 6; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span11 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span11[0]; + index = 6; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -340289,21 +410479,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047607u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047607u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); obj28.Steps = list42; reference30 = obj28; - ref QuestSequence reference31 = ref span11[1]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1047614u, new Vector3(-106.34015f, -192.35985f, 586.6636f), 1189); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047614u, new Vector3(-106.34015f, -192.35985f, 586.6636f), 1189); obj29.Steps = list43; reference31 = obj29; - ref QuestSequence reference32 = ref span11[2]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -340311,33 +410507,40 @@ public static class AssemblyQuestLoader num2 = 3; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span12 = CollectionsMarshal.AsSpan(list44); - span12[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013949u, new Vector3(-114.33588f, -212.20728f, 623.77356f), 1189) + span3 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013949u, new Vector3(-114.33588f, -212.20728f, 623.77356f), 1189) { DisableNavmesh = true, Mount = true, AetherCurrentId = 2818436u }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.97611f, -197.49266f, 595.45026f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.97611f, -197.49266f, 595.45026f), 1189) { DisableNavmesh = true, Mount = true }; - span12[2] = new QuestStep(EInteractionType.Interact, 1047620u, new Vector3(-365.22473f, -165.5307f, 517.66235f), 1189); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047620u, new Vector3(-365.22473f, -165.5307f, 517.66235f), 1189); obj30.Steps = list44; reference32 = obj30; - ref QuestSequence reference33 = ref span11[3]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1047626u, new Vector3(-637.53723f, -183.38272f, 562.06604f), 1189); + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047626u, new Vector3(-637.53723f, -183.38272f, 562.06604f), 1189); obj31.Steps = list45; reference33 = obj31; - ref QuestSequence reference34 = ref span11[4]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -340345,15 +410548,19 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + ref QuestStep reference35 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1047617u, new Vector3(-702.6017f, -199.5873f, 620.1113f), 1189) { StopDistance = 5f }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + span4 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMC109_04905_Q1_000_000"), @@ -340363,20 +410570,23 @@ public static class AssemblyQuestLoader reference35 = obj33; obj32.Steps = list46; reference34 = obj32; - ref QuestSequence reference36 = ref span11[5]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span13 = CollectionsMarshal.AsSpan(list48); - span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013951u, new Vector3(-676.5698f, -163.98877f, 236.16382f), 1189) + index2 = 2; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013951u, new Vector3(-676.5698f, -163.98877f, 236.16382f), 1189) { AetherCurrentId = 2818441u }; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1047632u, new Vector3(723.537f, -133.17401f, 543.1144f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047632u, new Vector3(723.537f, -133.17401f, 543.1144f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; @@ -340389,13 +410599,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot7.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span14 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span14[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -340403,52 +410616,70 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047636u, new Vector3(720.2715f, -133.174f, 545.00635f), 1189) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047636u, new Vector3(720.2715f, -133.174f, 545.00635f), 1189) { StopDistance = 6f }; obj35.Steps = list51; reference37 = obj35; - ref QuestSequence reference38 = ref span14[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span15 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference39 = ref span15[0]; + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1047641u, new Vector3(624.65857f, -137.12656f, 513.69495f), 1189); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span16 = CollectionsMarshal.AsSpan(list53); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list53; reference39 = questStep3; - ref QuestStep reference40 = ref span15[1]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1047640u, new Vector3(561.8219f, -142.49185f, 502.7389f), 1189); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span17 = CollectionsMarshal.AsSpan(list54); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + span5 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list54; reference40 = questStep4; obj36.Steps = list52; reference38 = obj36; - ref QuestSequence reference41 = ref span14[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -340456,21 +410687,27 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1047638u, new Vector3(604.8219f, -137.17403f, 488.27344f), 1189); + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047638u, new Vector3(604.8219f, -137.17403f, 488.27344f), 1189); obj37.Steps = list55; reference41 = obj37; - ref QuestSequence reference42 = ref span14[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1047644u, new Vector3(213.8551f, -161.35498f, 417.01367f), 1189); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047644u, new Vector3(213.8551f, -161.35498f, 417.01367f), 1189); obj38.Steps = list56; reference42 = obj38; - ref QuestSequence reference43 = ref span14[4]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -340478,27 +410715,33 @@ public static class AssemblyQuestLoader num2 = 3; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013952u, new Vector3(205.15747f, -193.59125f, 160.99792f), 1189) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013952u, new Vector3(205.15747f, -193.59125f, 160.99792f), 1189) { AetherCurrentId = 2818442u }; - span18[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013950u, new Vector3(39.352905f, -158.61761f, -2.3347168f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013950u, new Vector3(39.352905f, -158.61761f, -2.3347168f), 1189) { AetherCurrentId = 2818437u }; - span18[2] = new QuestStep(EInteractionType.Interact, 2013652u, new Vector3(-11.306946f, -166.15558f, 4.3792725f), 1189); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013652u, new Vector3(-11.306946f, -166.15558f, 4.3792725f), 1189); obj39.Steps = list57; reference43 = obj39; - ref QuestSequence reference44 = ref span14[5]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; @@ -340511,13 +410754,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list59); + index = 0; + span[index] = "liza"; questRoot8.Author = list59; - num = 7; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span19 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span19[0]; + index = 7; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + span2 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -340525,22 +410771,26 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span19[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span20 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference47 = ref span20[0]; + index2 = 4; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + span3 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + ref QuestStep reference47 = ref span3[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 1047659u, new Vector3(-8.133057f, -166.18016f, 2.1209717f), 1189) { StopDistance = 5f @@ -340548,30 +410798,44 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span21 = CollectionsMarshal.AsSpan(list63); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list63; reference47 = obj43; - ref QuestStep reference48 = ref span20[1]; + num2++; + ref QuestStep reference48 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1047655u, new Vector3(-9.567444f, -166.3551f, -3.5858765f), 1189); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span22 = CollectionsMarshal.AsSpan(list64); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list64; reference48 = questStep5; - ref QuestStep reference49 = ref span20[2]; + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1047557u, new Vector3(-11.001831f, -166.37114f, -6.1799316f), 1189) { StopDistance = 7f @@ -340579,35 +410843,49 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span23 = CollectionsMarshal.AsSpan(list65); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list65; reference49 = obj44; - ref QuestStep reference50 = ref span20[3]; + num2++; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1047656u, new Vector3(-12.64978f, -166.20668f, -3.2807007f), 1189) { StopDistance = 7f }; - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span24 = CollectionsMarshal.AsSpan(list66); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span5 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list66; reference50 = obj45; obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference51 = ref span19[2]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -340615,24 +410893,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; obj46.Steps = list67; reference51 = obj46; - ref QuestSequence reference52 = ref span19[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1047664u, new Vector3(64.16406f, -178.47437f, 399.70996f), 1189); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047664u, new Vector3(64.16406f, -178.47437f, 399.70996f), 1189); obj47.Steps = list68; reference52 = obj47; - ref QuestSequence reference53 = ref span19[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -340640,8 +410924,9 @@ public static class AssemblyQuestLoader num2 = 7; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span25 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference54 = ref span25[0]; + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference54 = ref span3[index2]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.721737f, -214.22571f, 435.2371f), 1189) { DisableNavmesh = true, @@ -340652,124 +410937,176 @@ public static class AssemblyQuestLoader num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span26 = CollectionsMarshal.AsSpan(list70); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list70; skipConditions.StepIf = skipStepConditions; obj49.SkipConditions = skipConditions; reference54 = obj49; - ref QuestStep reference55 = ref span25[1]; + index2++; + ref QuestStep reference55 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2013653u, new Vector3(-3.0060425f, -215.01495f, 475.9746f), 1189); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span27 = CollectionsMarshal.AsSpan(list71); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + span5 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list71; reference55 = questStep6; - ref QuestStep reference56 = ref span25[2]; + index2++; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.934677f, -215.01515f, 540.4687f), 1189); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span28 = CollectionsMarshal.AsSpan(list72); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list72; skipConditions2.StepIf = skipStepConditions2; questStep7.SkipConditions = skipConditions2; reference56 = questStep7; - ref QuestStep reference57 = ref span25[3]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013655u, new Vector3(-4.928711f, -213.2143f, 543.8773f), 1189); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span29 = CollectionsMarshal.AsSpan(list73); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span5 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list73; reference57 = questStep8; - ref QuestStep reference58 = ref span25[4]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2013654u, new Vector3(-55.86328f, -213.6416f, 522.57556f), 1189); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span30 = CollectionsMarshal.AsSpan(list74); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list74; reference58 = questStep9; - ref QuestStep reference59 = ref span25[5]; + index2++; + ref QuestStep reference59 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013672u, new Vector3(-147.84473f, -215.04541f, 356.0692f), 1189); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span31 = CollectionsMarshal.AsSpan(list75); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span5 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list75; reference59 = questStep10; - ref QuestStep reference60 = ref span25[6]; + index2++; + ref QuestStep reference60 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2013675u, new Vector3(-152.02563f, -214.06885f, 327.38232f), 1189); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list76; reference60 = questStep11; obj48.Steps = list69; reference53 = obj48; - ref QuestSequence reference61 = ref span19[5]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span33 = CollectionsMarshal.AsSpan(list77); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-136.90475f, -215.01514f, 330.17505f), 1189) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-136.90475f, -215.01514f, 330.17505f), 1189) { Mount = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1047669u, new Vector3(-96.87958f, -214.29678f, 385.27502f), 1189); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047669u, new Vector3(-96.87958f, -214.29678f, 385.27502f), 1189); obj50.Steps = list77; reference61 = obj50; - ref QuestSequence reference62 = ref span19[6]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -340777,9 +411114,11 @@ public static class AssemblyQuestLoader num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span34 = CollectionsMarshal.AsSpan(list78); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.8908f, -164.33757f, 40.24882f), 1189); - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.8908f, -164.33757f, 40.24882f), 1189); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); obj51.Steps = list78; reference62 = obj51; questRoot8.QuestSequence = list60; @@ -340789,24 +411128,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot9.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span35 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference63 = ref span35[0]; + index = 5; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); obj52.Steps = list81; reference63 = obj52; - ref QuestSequence reference64 = ref span35[1]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -340814,27 +411159,33 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 2013656u, new Vector3(-12.3446045f, -166.24707f, 2.3651123f), 1189) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013656u, new Vector3(-12.3446045f, -166.24707f, 2.3651123f), 1189) { StopDistance = 4.5f }; obj53.Steps = list82; reference64 = obj53; - ref QuestSequence reference65 = ref span35[2]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1047678u, new Vector3(498.37476f, -146.73578f, 481.07104f), 1189) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047678u, new Vector3(498.37476f, -146.73578f, 481.07104f), 1189) { StopDistance = 7f }; obj54.Steps = list83; reference65 = obj54; - ref QuestSequence reference66 = ref span35[3]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -340842,7 +411193,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047682u, new Vector3(353.56665f, -113.97447f, 597.0397f), 1189) + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047682u, new Vector3(353.56665f, -113.97447f, 597.0397f), 1189) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -340851,19 +411204,18 @@ public static class AssemblyQuestLoader }; obj55.Steps = list84; reference66 = obj55; - span35[4] = new QuestSequence - { - Sequence = 4 - }; - ref QuestSequence reference67 = ref span35[5]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047688u, new Vector3(359.48718f, -113.97447f, 595.45276f), 1189) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + span3 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047688u, new Vector3(359.48718f, -113.97447f, 595.45276f), 1189) { StopDistance = 7f }; @@ -340876,13 +411228,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list86); + index = 0; + span[index] = "liza"; questRoot10.Author = list86; - num = 8; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span36 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference68 = ref span36[0]; + index = 8; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + span2 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -340890,33 +411245,40 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047695u, new Vector3(503.19666f, -137.174f, 559.47205f), 1189) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047695u, new Vector3(503.19666f, -137.174f, 559.47205f), 1189) { StopDistance = 7f }; obj57.Steps = list88; reference68 = obj57; - ref QuestSequence reference69 = ref span36[1]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span37 = CollectionsMarshal.AsSpan(list89); - span37[0] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189) + index2 = 3; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189) { PickUpQuestId = new QuestId(5103) }; - span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) { PickUpQuestId = new QuestId(5114) }; - span37[2] = new QuestStep(EInteractionType.Interact, 1047701u, new Vector3(572.7473f, -117.35814f, 288.3192f), 1189); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047701u, new Vector3(572.7473f, -117.35814f, 288.3192f), 1189); obj58.Steps = list89; reference69 = obj58; - ref QuestSequence reference70 = ref span36[2]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -340924,24 +411286,30 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1047623u, new Vector3(531.18164f, -130.77031f, 307.45398f), 1189); + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047623u, new Vector3(531.18164f, -130.77031f, 307.45398f), 1189); obj59.Steps = list90; reference70 = obj59; - ref QuestSequence reference71 = ref span36[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 2013658u, new Vector3(740.93225f, -133.19604f, 515.80054f), 1189) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013658u, new Vector3(740.93225f, -133.19604f, 515.80054f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj60.Steps = list91; reference71 = obj60; - ref QuestSequence reference72 = ref span36[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 @@ -340949,15 +411317,19 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list92)[0]; + span3 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference73 = ref span3[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1047707u, new Vector3(-711.1162f, -199.5873f, 624.1703f), 1189) { StopDistance = 5f }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + span4 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMC113_04909_Q1_000_090") @@ -340966,15 +411338,18 @@ public static class AssemblyQuestLoader reference73 = obj62; obj61.Steps = list92; reference72 = obj61; - ref QuestSequence reference74 = ref span36[5]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Duty, null, null, 1189) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1189) { DutyOptions = new DutyOptions { @@ -340984,11 +411359,13 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference74 = obj63; - span36[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference75 = ref span36[7]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -340996,7 +411373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047718u, new Vector3(-156.4508f, -14.999485f, 210.40662f), 1185); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047718u, new Vector3(-156.4508f, -14.999485f, 210.40662f), 1185); obj64.Steps = list95; reference75 = obj64; questRoot10.QuestSequence = list87; @@ -341006,27 +411385,33 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot11.Author = list96; - num = 2; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span38 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference76 = ref span38[0]; + index = 2; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046541u, new Vector3(-166.85742f, -14.999356f, 208.27039f), 1185) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046541u, new Vector3(-166.85742f, -14.999356f, 208.27039f), 1185) { DisableNavmesh = true }; obj65.Steps = list98; reference76 = obj65; - ref QuestSequence reference77 = ref span38[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -341034,7 +411419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) { StopDistance = 4f }; @@ -341047,27 +411434,33 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "liza"; questRoot12.Author = list100; - num = 7; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span39 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference78 = ref span39[0]; + index = 7; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) { StopDistance = 4f }; obj67.Steps = list102; reference78 = obj67; - ref QuestSequence reference79 = ref span39[1]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -341075,18 +411468,23 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1047730u, new Vector3(-32.089783f, 95.5f, -77.683716f), 1185); + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047730u, new Vector3(-32.089783f, 95.5f, -77.683716f), 1185); obj68.Steps = list103; reference79 = obj68; - ref QuestSequence reference80 = ref span39[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1047731u, new Vector3(93.18677f, -14f, 34.74475f), 1185) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047731u, new Vector3(93.18677f, -14f, 34.74475f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -341096,7 +411494,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list104; reference80 = obj69; - ref QuestSequence reference81 = ref span39[3]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -341104,21 +411503,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1047735u, new Vector3(-31.296265f, -10.00001f, 87.907104f), 1185); + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047735u, new Vector3(-31.296265f, -10.00001f, 87.907104f), 1185); obj70.Steps = list105; reference81 = obj70; - ref QuestSequence reference82 = ref span39[4]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1047740u, new Vector3(-51.407654f, -19.32829f, 211.84094f), 1185); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047740u, new Vector3(-51.407654f, -19.32829f, 211.84094f), 1185); obj71.Steps = list106; reference82 = obj71; - ref QuestSequence reference83 = ref span39[5]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 @@ -341126,7 +411531,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1047812u, new Vector3(-85.06909f, 100.04267f, -169.8482f), 1185) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047812u, new Vector3(-85.06909f, 100.04267f, -169.8482f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -341136,15 +411543,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list107; reference83 = obj72; - ref QuestSequence reference84 = ref span39[6]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -341161,13 +411571,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; questRoot13.Author = list109; - num = 6; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span40 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference85 = ref span40[0]; + index = 6; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -341175,25 +411588,32 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185); + span3 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185); obj74.Steps = list111; reference85 = obj74; - ref QuestSequence reference86 = ref span40[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1047484u, new Vector3(50.980347f, 48f, -430.8385f), 1185); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047484u, new Vector3(50.980347f, 48f, -430.8385f), 1185); obj75.Steps = list112; reference86 = obj75; - span40[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference87 = ref span40[3]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -341201,26 +411621,32 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1046948u, new Vector3(276.2035f, 10.511233f, 663.447f), 1190); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046948u, new Vector3(276.2035f, 10.511233f, 663.447f), 1190); obj76.Steps = list113; reference87 = obj76; - ref QuestSequence reference88 = ref span40[4]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span41 = CollectionsMarshal.AsSpan(list114); - span41[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013954u, new Vector3(296.0708f, 2.3651123f, 504.02075f), 1190) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013954u, new Vector3(296.0708f, 2.3651123f, 504.02075f), 1190) { AetherCurrentId = 2818449u }; - span41[1] = new QuestStep(EInteractionType.Interact, 1046951u, new Vector3(259.266f, -6.482896f, 474.84546f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046951u, new Vector3(259.266f, -6.482896f, 474.84546f), 1190); obj77.Steps = list114; reference88 = obj77; - ref QuestSequence reference89 = ref span40[5]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -341228,7 +411654,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) { StopDistance = 5f }; @@ -341241,27 +411669,33 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "liza"; questRoot14.Author = list116; - num = 8; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span42 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference90 = ref span42[0]; + index = 8; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) { StopDistance = 5f }; obj79.Steps = list118; reference90 = obj79; - ref QuestSequence reference91 = ref span42[1]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -341269,29 +411703,36 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span43 = CollectionsMarshal.AsSpan(list119); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniHhusatahwi }; - span43[1] = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); obj80.Steps = list119; reference91 = obj80; - ref QuestSequence reference92 = ref span42[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list120)[0]; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD102_04913_SYSTEM_000_021") @@ -341300,7 +411741,8 @@ public static class AssemblyQuestLoader reference93 = questStep12; obj81.Steps = list120; reference92 = obj81; - ref QuestSequence reference94 = ref span42[3]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -341308,27 +411750,33 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span44 = CollectionsMarshal.AsSpan(list122); - span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - span44[1] = new QuestStep(EInteractionType.Interact, 1046957u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046957u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); obj82.Steps = list122; reference94 = obj82; - ref QuestSequence reference95 = ref span42[4]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1046958u, new Vector3(-348.0431f, 18.031187f, -194.01855f), 1190); + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046958u, new Vector3(-348.0431f, 18.031187f, -194.01855f), 1190); obj83.Steps = list123; reference95 = obj83; - ref QuestSequence reference96 = ref span42[5]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -341336,34 +411784,42 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list124)[0]; + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference97 = ref span3[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-352.34854f, 18.081078f, -196.42653f), 1190) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span45 = CollectionsMarshal.AsSpan(list125); - span45[0] = 17697u; - span45[1] = 17698u; + index3 = 2; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span6 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span6[num3] = 17697u; + num3++; + span6[num3] = 17698u; obj85.KillEnemyDataIds = list125; reference97 = obj85; obj84.Steps = list124; reference96 = obj84; - ref QuestSequence reference98 = ref span42[6]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1046963u, new Vector3(-550.5303f, 29.792864f, -190.05121f), 1190); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046963u, new Vector3(-550.5303f, 29.792864f, -190.05121f), 1190); obj86.Steps = list126; reference98 = obj86; - ref QuestSequence reference99 = ref span42[7]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -341371,7 +411827,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -341384,24 +411842,30 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot15.Author = list128; - num = 8; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span46 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference100 = ref span46[0]; + index = 8; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046965u, new Vector3(-314.35114f, 18.83441f, -177.5998f), 1190); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046965u, new Vector3(-314.35114f, 18.83441f, -177.5998f), 1190); obj88.Steps = list130; reference100 = obj88; - ref QuestSequence reference101 = ref span46[1]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -341409,88 +411873,118 @@ public static class AssemblyQuestLoader num2 = 3; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span47 = CollectionsMarshal.AsSpan(list131); - span47[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013956u, new Vector3(-602.92975f, 37.735474f, -352.3766f), 1190) + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013956u, new Vector3(-602.92975f, 37.735474f, -352.3766f), 1190) { AetherCurrentId = 2818453u }; - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-598.1151f, 30.742912f, -80.21621f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-598.1151f, 30.742912f, -80.21621f), 1190) { Comment = "Avoids combat" }; - span47[2] = new QuestStep(EInteractionType.Interact, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj89.Steps = list131; reference101 = obj89; - ref QuestSequence reference102 = ref span46[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 7; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span48 = CollectionsMarshal.AsSpan(list132); - ref QuestStep reference103 = ref span48[0]; + index2 = 7; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference103 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2013798u, new Vector3(-636.5912f, 28.366455f, -34.62274f), 1190); num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span49 = CollectionsMarshal.AsSpan(list133); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list133; reference103 = questStep13; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-633.4026f, 27.22425f, -62.308163f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-633.4026f, 27.22425f, -62.308163f), 1190) { Mount = true }; - span48[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.0745f, 29.140228f, -93.67751f), 1190); - span48[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013955u, new Vector3(-709.43774f, 33.401978f, -80.36932f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.0745f, 29.140228f, -93.67751f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013955u, new Vector3(-709.43774f, 33.401978f, -80.36932f), 1190) { AetherCurrentId = 2818450u }; - ref QuestStep reference104 = ref span48[4]; + num2++; + ref QuestStep reference104 = ref span3[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 2013799u, new Vector3(-687.89197f, 27.115234f, -57.114563f), 1190) { DisableNavmesh = true }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span50 = CollectionsMarshal.AsSpan(list134); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + span5 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list134; reference104 = obj91; - span48[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-725.3725f, 28.795446f, -39.464005f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-725.3725f, 28.795446f, -39.464005f), 1190) { Mount = true }; - ref QuestStep reference105 = ref span48[6]; + num2++; + ref QuestStep reference105 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013800u, new Vector3(-723.8728f, 30.319702f, -12.497192f), 1190); num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span51 = CollectionsMarshal.AsSpan(list135); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list135; reference105 = questStep14; obj90.Steps = list132; reference102 = obj90; - ref QuestSequence reference106 = ref span46[3]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -341498,24 +411992,30 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1046968u, new Vector3(-727.26025f, 29.026073f, -19.424805f), 1190) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046968u, new Vector3(-727.26025f, 29.026073f, -19.424805f), 1190) { StopDistance = 6f }; obj92.Steps = list136; reference106 = obj92; - ref QuestSequence reference107 = ref span46[4]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); obj93.Steps = list137; reference107 = obj93; - ref QuestSequence reference108 = ref span46[5]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 5 @@ -341523,21 +412023,27 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 2013801u, new Vector3(-415.36584f, 17.654663f, 652.61304f), 1190); + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013801u, new Vector3(-415.36584f, 17.654663f, 652.61304f), 1190); obj94.Steps = list138; reference108 = obj94; - ref QuestSequence reference109 = ref span46[6]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); obj95.Steps = list139; reference109 = obj95; - ref QuestSequence reference110 = ref span46[7]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -341545,7 +412051,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj96.Steps = list140; reference110 = obj96; questRoot15.QuestSequence = list129; @@ -341555,24 +412063,30 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot16.Author = list141; - num = 4; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span52 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference111 = ref span52[0]; + index = 4; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj97.Steps = list143; reference111 = obj97; - ref QuestSequence reference112 = ref span52[1]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -341580,14 +412094,18 @@ public static class AssemblyQuestLoader num2 = 4; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span53 = CollectionsMarshal.AsSpan(list144); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.89136f, 26.786625f, -46.720688f), 1190); - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-676.2089f, 26.02775f, -43.611156f), 1190); - span53[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-689.61786f, 26.372868f, -33.830494f), 1190) + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.89136f, 26.786625f, -46.720688f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-676.2089f, 26.02775f, -43.611156f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-689.61786f, 26.372868f, -33.830494f), 1190) { DisableNavmesh = true }; - span53[3] = new QuestStep(EInteractionType.UseItem, 2013804u, new Vector3(-690.69965f, 27.17627f, -26.230347f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013804u, new Vector3(-690.69965f, 27.17627f, -26.230347f), 1190) { StopDistance = 4.5f, ItemId = 2003507u, @@ -341595,21 +412113,25 @@ public static class AssemblyQuestLoader }; obj98.Steps = list144; reference112 = obj98; - ref QuestSequence reference113 = ref span52[2]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1046970u, new Vector3(-563.01215f, 24.654175f, 26.199707f), 1190) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046970u, new Vector3(-563.01215f, 24.654175f, 26.199707f), 1190) { StopDistance = 4f }; obj99.Steps = list145; reference113 = obj99; - ref QuestSequence reference114 = ref span52[3]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -341617,7 +412139,9 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046972u, new Vector3(-441.70294f, 21.84097f, -117.81494f), 1190); + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046972u, new Vector3(-441.70294f, 21.84097f, -117.81494f), 1190); obj100.Steps = list146; reference114 = obj100; questRoot16.QuestSequence = list142; @@ -341627,27 +412151,33 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list147); + index = 0; + span[index] = "liza"; questRoot17.Author = list147; - num = 8; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span54 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference115 = ref span54[0]; + index = 8; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + span2 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046973u, new Vector3(-442.58795f, 21.820835f, -118.638916f), 1190) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046973u, new Vector3(-442.58795f, 21.820835f, -118.638916f), 1190) { StopDistance = 5f }; obj101.Steps = list149; reference115 = obj101; - ref QuestSequence reference116 = ref span54[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -341655,24 +412185,30 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190); + span3 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190); obj102.Steps = list150; reference116 = obj102; - ref QuestSequence reference117 = ref span54[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Emote, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190) { Emote = EEmote.Poke }; obj103.Steps = list151; reference117 = obj103; - ref QuestSequence reference118 = ref span54[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -341680,12 +412216,16 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list152)[0]; + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference119 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013805u, new Vector3(-225.78778f, 1.0223389f, 71.7937f), 1190); - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + index3 = 1; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + span4 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q3_000_000"), @@ -341695,22 +412235,27 @@ public static class AssemblyQuestLoader reference119 = questStep15; obj104.Steps = list152; reference118 = obj104; - ref QuestSequence reference120 = ref span54[4]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span55 = CollectionsMarshal.AsSpan(list154); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.49104f, 1.3946064f, 178.915f), 1190); - ref QuestStep reference121 = ref span55[1]; + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.49104f, 1.3946064f, 178.915f), 1190); + num2++; + ref QuestStep reference121 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013806u, new Vector3(5.081238f, -5.1118164f, 167.28455f), 1190); num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q4_000_000"), @@ -341720,7 +412265,8 @@ public static class AssemblyQuestLoader reference121 = questStep16; obj105.Steps = list154; reference120 = obj105; - ref QuestSequence reference122 = ref span54[5]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -341728,18 +412274,23 @@ public static class AssemblyQuestLoader num2 = 3; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span56 = CollectionsMarshal.AsSpan(list156); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.420094f, 3.3226922f, 262.78665f), 1190); - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.42842f, 3.2765028f, 281.39154f), 1190); - ref QuestStep reference123 = ref span56[2]; + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.420094f, 3.3226922f, 262.78665f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.42842f, 3.2765028f, 281.39154f), 1190); + index2++; + ref QuestStep reference123 = ref span3[index2]; QuestStep obj107 = new QuestStep(EInteractionType.Interact, 2013807u, new Vector3(37.15564f, 4.2266846f, 290.66907f), 1190) { StopDistance = 1f }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + span4 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q5_000_000"), @@ -341749,21 +412300,25 @@ public static class AssemblyQuestLoader reference123 = obj107; obj106.Steps = list156; reference122 = obj106; - ref QuestSequence reference124 = ref span54[6]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(160.01617f, 8.759198f, 514.9438f), 1190) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(160.01617f, 8.759198f, 514.9438f), 1190) { StopDistance = 0.25f }; obj108.Steps = list158; reference124 = obj108; - ref QuestSequence reference125 = ref span54[7]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -341771,7 +412326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); obj109.Steps = list159; reference125 = obj109; questRoot17.QuestSequence = list148; @@ -341781,24 +412338,30 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list160); + index = 0; + span[index] = "liza"; questRoot18.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span57 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference126 = ref span57[0]; + index = 4; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + span2 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); obj110.Steps = list162; reference126 = obj110; - ref QuestSequence reference127 = ref span57[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -341806,24 +412369,30 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1048057u, new Vector3(-313.74078f, 18.853605f, -178.8205f), 1190) + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048057u, new Vector3(-313.74078f, 18.853605f, -178.8205f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj111.Steps = list163; reference127 = obj111; - ref QuestSequence reference128 = ref span57[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1046981u, new Vector3(-354.08563f, 19.34956f, -99.13794f), 1190); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046981u, new Vector3(-354.08563f, 19.34956f, -99.13794f), 1190); obj112.Steps = list164; reference128 = obj112; - ref QuestSequence reference129 = ref span57[3]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -341831,7 +412400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); obj113.Steps = list165; reference129 = obj113; questRoot18.QuestSequence = list161; @@ -341841,24 +412412,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "liza"; questRoot19.Author = list166; - num = 5; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span58 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference130 = ref span58[0]; + index = 5; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); obj114.Steps = list168; reference130 = obj114; - ref QuestSequence reference131 = ref span58[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -341866,21 +412443,27 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1051610u, new Vector3(-123.88806f, 16.006582f, -375.9671f), 1190); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051610u, new Vector3(-123.88806f, 16.006582f, -375.9671f), 1190); obj115.Steps = list169; reference131 = obj115; - ref QuestSequence reference132 = ref span58[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1046986u, new Vector3(198.74878f, -17.59426f, -520.9888f), 1190); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046986u, new Vector3(198.74878f, -17.59426f, -520.9888f), 1190); obj116.Steps = list170; reference132 = obj116; - ref QuestSequence reference133 = ref span58[3]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -341888,29 +412471,34 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span59 = CollectionsMarshal.AsSpan(list171); - span59[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniMehwahhetsoan }; - span59[1] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); obj117.Steps = list171; reference133 = obj117; - ref QuestSequence reference134 = ref span58[4]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span60 = CollectionsMarshal.AsSpan(list172); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(299.9144f, -15.679968f, -508.8957f), 1190) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(299.9144f, -15.679968f, -508.8957f), 1190) { Mount = true }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1046996u, new Vector3(343.9231f, -16.501034f, -444.23596f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046996u, new Vector3(343.9231f, -16.501034f, -444.23596f), 1190); obj118.Steps = list172; reference134 = obj118; questRoot19.QuestSequence = list167; @@ -341920,13 +412508,16 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list173); + index = 0; + span[index] = "liza"; questRoot20.Author = list173; - num = 5; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span61 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference135 = ref span61[0]; + index = 5; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + span2 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -341934,27 +412525,33 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046995u, new Vector3(344.8081f, -16.536486f, -442.8626f), 1190) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046995u, new Vector3(344.8081f, -16.536486f, -442.8626f), 1190) { StopDistance = 6f }; obj119.Steps = list175; reference135 = obj119; - ref QuestSequence reference136 = ref span61[1]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 2013809u, new Vector3(342.61072f, -16.434021f, -441.91656f), 1190) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013809u, new Vector3(342.61072f, -16.434021f, -441.91656f), 1190) { StopDistance = 4f }; obj120.Steps = list176; reference136 = obj120; - ref QuestSequence reference137 = ref span61[2]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -341962,23 +412559,28 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2013852u, new Vector3(119.61548f, -14.694458f, -517.052f), 1190); + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013852u, new Vector3(119.61548f, -14.694458f, -517.052f), 1190); obj121.Steps = list177; reference137 = obj121; - ref QuestSequence reference138 = ref span61[3]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span62 = CollectionsMarshal.AsSpan(list178); - span62[0] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) + index2 = 5; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) { PickUpQuestId = new QuestId(5138) }; - ref QuestStep reference139 = ref span62[1]; + num2++; + ref QuestStep reference139 = ref span3[num2]; QuestStep obj123 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.84927f, -0.84392637f, 435.0579f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi @@ -341988,28 +412590,35 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new QuestId(5140); + Span span7 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span7[index3] = new QuestId(5140); skipStepConditions3.QuestsCompleted = list179; skipConditions3.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new QuestId(5140); + index3 = 1; + List list180 = new List(index3); + CollectionsMarshal.SetCount(list180, index3); + span7 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span7[num3] = new QuestId(5140); skipAetheryteCondition.QuestsCompleted = list180; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; obj123.SkipConditions = skipConditions3; reference139 = obj123; - span62[2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) { StopDistance = 6f, PickUpQuestId = new QuestId(5140) }; - span62[3] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190) { PickUpQuestId = new QuestId(5130) }; - ref QuestStep reference140 = ref span62[4]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1047001u, new Vector3(-194.5373f, 16.084282f, -382.9862f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings @@ -342017,7 +412626,9 @@ public static class AssemblyQuestLoader num3 = 1; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD108_04919_SYSTEM_000_043") @@ -342026,7 +412637,8 @@ public static class AssemblyQuestLoader reference140 = obj124; obj122.Steps = list178; reference138 = obj122; - ref QuestSequence reference141 = ref span61[4]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -342034,7 +412646,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) + span3 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) { StopDistance = 5f }; @@ -342047,27 +412661,33 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot21.Author = list183; - num = 9; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span63 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference142 = ref span63[0]; + index = 9; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) { StopDistance = 5f }; obj126.Steps = list185; reference142 = obj126; - ref QuestSequence reference143 = ref span63[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -342075,22 +412695,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1047012u, new Vector3(-1.3580933f, 3.095488f, -48.630554f), 1170) + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047012u, new Vector3(-1.3580933f, 3.095488f, -48.630554f), 1170) { StopDistance = 5f }; obj127.Steps = list186; reference143 = obj127; - ref QuestSequence reference144 = ref span63[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span64 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference145 = ref span64[0]; + index2 = 5; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + ref QuestStep reference145 = ref span3[num2]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1047020u, new Vector3(-142.01575f, 44.999992f, 18.631226f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -342100,77 +412724,112 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span65 = CollectionsMarshal.AsSpan(list188); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + span5 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj129.CompletionQuestVariablesFlags = list188; reference145 = obj129; - ref QuestStep reference146 = ref span64[1]; + num2++; + ref QuestStep reference146 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1047019u, new Vector3(-84.031494f, 52f, 10.635498f), 1185); num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span66 = CollectionsMarshal.AsSpan(list189); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list189; reference146 = questStep17; - ref QuestStep reference147 = ref span64[2]; + num2++; + ref QuestStep reference147 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1047022u, new Vector3(-96.48285f, 68.41271f, -34.53119f), 1185); - num3 = 6; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span67 = CollectionsMarshal.AsSpan(list190); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list190 = new List(index3); + CollectionsMarshal.SetCount(list190, index3); + span5 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list190; reference147 = questStep18; - ref QuestStep reference148 = ref span64[3]; + num2++; + ref QuestStep reference148 = ref span3[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1047023u, new Vector3(-226.0014f, 39.99999f, 15.976135f), 1185); num3 = 6; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span68 = CollectionsMarshal.AsSpan(list191); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list191; reference148 = questStep19; - ref QuestStep reference149 = ref span64[4]; + num2++; + ref QuestStep reference149 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1047021u, new Vector3(-254.01697f, 40.075134f, -28.091919f), 1185); - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span69 = CollectionsMarshal.AsSpan(list192); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + span5 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list192; reference149 = questStep20; obj128.Steps = list187; reference144 = obj128; - ref QuestSequence reference150 = ref span63[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 @@ -342178,21 +412837,25 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span70 = CollectionsMarshal.AsSpan(list193); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.63573f, 45.171337f, 12.003954f), 1185); - span70[1] = new QuestStep(EInteractionType.Interact, 1047026u, new Vector3(-176.4096f, 44.999992f, 34.470093f), 1185); + span3 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.63573f, 45.171337f, 12.003954f), 1185); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047026u, new Vector3(-176.4096f, 44.999992f, 34.470093f), 1185); obj130.Steps = list193; reference150 = obj130; - ref QuestSequence reference151 = ref span63[4]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span71 = CollectionsMarshal.AsSpan(list194); - ref QuestStep reference152 = ref span71[0]; + index2 = 4; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref QuestStep reference152 = ref span3[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2013810u, new Vector3(-194.75098f, -4.928711f, 129.90002f), 1185) { AethernetShortcut = new AethernetShortcut @@ -342204,16 +412867,23 @@ public static class AssemblyQuestLoader num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span72 = CollectionsMarshal.AsSpan(list195); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj132.CompletionQuestVariablesFlags = list195; reference152 = obj132; - ref QuestStep reference153 = ref span71[1]; + num2++; + ref QuestStep reference153 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2013813u, new Vector3(-23.483704f, -10.025269f, 145.25061f), 1185) { AethernetShortcut = new AethernetShortcut @@ -342222,49 +412892,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - num3 = 6; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span73 = CollectionsMarshal.AsSpan(list196); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + span5 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list196; reference153 = obj133; - ref QuestStep reference154 = ref span71[2]; + num2++; + ref QuestStep reference154 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2013811u, new Vector3(11.886719f, -14.023071f, 105.882324f), 1185); num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span74 = CollectionsMarshal.AsSpan(list197); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list197; reference154 = questStep21; - ref QuestStep reference155 = ref span71[3]; + num2++; + ref QuestStep reference155 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2013812u, new Vector3(84.611206f, -16.586609f, 117.02136f), 1185); - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span75 = CollectionsMarshal.AsSpan(list198); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span5 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list198; reference155 = questStep22; obj131.Steps = list194; reference151 = obj131; - ref QuestSequence reference156 = ref span63[5]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 5 @@ -342272,21 +412963,27 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1046843u, new Vector3(-18.783936f, -10.00001f, 95.109375f), 1185); + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046843u, new Vector3(-18.783936f, -10.00001f, 95.109375f), 1185); obj134.Steps = list199; reference156 = obj134; - ref QuestSequence reference157 = ref span63[6]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1047031u, new Vector3(-42.77112f, -19.74437f, 231.46399f), 1185); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047031u, new Vector3(-42.77112f, -19.74437f, 231.46399f), 1185); obj135.Steps = list200; reference157 = obj135; - ref QuestSequence reference158 = ref span63[7]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 7 @@ -342294,21 +412991,26 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1047033u, new Vector3(-152.51392f, -14.999287f, 270.64917f), 1185) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047033u, new Vector3(-152.51392f, -14.999287f, 270.64917f), 1185) { StopDistance = 5f }; obj136.Steps = list201; reference158 = obj136; - ref QuestSequence reference159 = ref span63[8]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342325,13 +413027,16 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list203); + index = 0; + span[index] = "liza"; questRoot22.Author = list203; - num = 4; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span76 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference160 = ref span76[0]; + index = 4; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + span2 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -342339,24 +413044,30 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185); obj138.Steps = list205; reference160 = obj138; - ref QuestSequence reference161 = ref span76[1]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Snipe, 2014033u, new Vector3(65.659546f, -14.023071f, 25.680908f), 1185) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2014033u, new Vector3(65.659546f, -14.023071f, 25.680908f), 1185) { Comment = "Inspect Helm, Corpse, Weapon" }; obj139.Steps = list206; reference161 = obj139; - ref QuestSequence reference162 = ref span76[2]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -342364,7 +413075,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1047036u, new Vector3(-180.07172f, 120.795235f, -346.2425f), 1185) + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047036u, new Vector3(-180.07172f, 120.795235f, -346.2425f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342374,15 +413087,18 @@ public static class AssemblyQuestLoader }; obj140.Steps = list207; reference162 = obj140; - ref QuestSequence reference163 = ref span76[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) { StopDistance = 5f }; @@ -342395,13 +413111,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list209); + index = 0; + span[index] = "liza"; questRoot23.Author = list209; - num = 5; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span77 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference164 = ref span77[0]; + index = 5; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + span2 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -342409,22 +413128,26 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) { StopDistance = 5f }; obj142.Steps = list211; reference164 = obj142; - ref QuestSequence reference165 = ref span77[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span78 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference166 = ref span78[0]; + index2 = 3; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1047050u, new Vector3(-218.9823f, 39.999985f, 9.414734f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -342437,46 +413160,67 @@ public static class AssemblyQuestLoader num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span79 = CollectionsMarshal.AsSpan(list213); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list213; reference166 = obj144; - ref QuestStep reference167 = ref span78[1]; + num2++; + ref QuestStep reference167 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1047048u, new Vector3(-244.77002f, 14.99999f, 75.12012f), 1185); - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span80 = CollectionsMarshal.AsSpan(list214); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + span5 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list214; reference167 = questStep23; - ref QuestStep reference168 = ref span78[2]; + num2++; + ref QuestStep reference168 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1047049u, new Vector3(-262.89777f, 2.096911E-05f, 71.06128f), 1185); num3 = 6; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span81 = CollectionsMarshal.AsSpan(list215); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list215; reference168 = questStep24; obj143.Steps = list212; reference165 = obj143; - ref QuestSequence reference169 = ref span77[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -342484,60 +413228,84 @@ public static class AssemblyQuestLoader num2 = 3; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span82 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference170 = ref span82[0]; + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference170 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1047047u, new Vector3(-62.424683f, -10.00001f, 105.97388f), 1185); - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span83 = CollectionsMarshal.AsSpan(list217); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + span5 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list217; reference170 = questStep25; - ref QuestStep reference171 = ref span82[1]; + index2++; + ref QuestStep reference171 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1047046u, new Vector3(-10.727112f, -10.00001f, 88.27344f), 1185); num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span84 = CollectionsMarshal.AsSpan(list218); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list218; reference171 = questStep26; - ref QuestStep reference172 = ref span82[2]; + index2++; + ref QuestStep reference172 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1047051u, new Vector3(53.45227f, -14f, 90.562256f), 1185); - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span85 = CollectionsMarshal.AsSpan(list219); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + span5 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list219; reference172 = questStep27; obj145.Steps = list216; reference169 = obj145; - ref QuestSequence reference173 = ref span77[3]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1047056u, new Vector3(-172.7779f, 120.75f, -321.09564f), 1185) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047056u, new Vector3(-172.7779f, 120.75f, -321.09564f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342547,7 +413315,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list220; reference173 = obj146; - ref QuestSequence reference174 = ref span77[4]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -342555,7 +413324,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047062u, new Vector3(-65.84277f, 100f, -158.98376f), 1185); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047062u, new Vector3(-65.84277f, 100f, -158.98376f), 1185); obj147.Steps = list221; reference174 = obj147; questRoot23.QuestSequence = list210; @@ -342565,27 +413336,33 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; questRoot24.Author = list222; - num = 9; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span86 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference175 = ref span86[0]; + index = 9; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047063u, new Vector3(-64.07269f, 100f, -159.80774f), 1185) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047063u, new Vector3(-64.07269f, 100f, -159.80774f), 1185) { StopDistance = 5f }; obj148.Steps = list224; reference175 = obj148; - ref QuestSequence reference176 = ref span86[1]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -342593,7 +413370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1047068u, new Vector3(41.85547f, 47.072277f, -409.01813f), 1185) + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047068u, new Vector3(41.85547f, 47.072277f, -409.01813f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342603,25 +413382,30 @@ public static class AssemblyQuestLoader }; obj149.Steps = list225; reference176 = obj149; - span86[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference177 = ref span86[3]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1047075u, new Vector3(470.69495f, 2.2817478f, 460.9292f), 1190) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + span3 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047075u, new Vector3(470.69495f, 2.2817478f, 460.9292f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj150.Steps = list226; reference177 = obj150; - ref QuestSequence reference178 = ref span86[4]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -342629,67 +413413,93 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1047079u, new Vector3(-284.38245f, 16.00464f, -61.661743f), 1190) + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047079u, new Vector3(-284.38245f, 16.00464f, -61.661743f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj151.Steps = list227; reference178 = obj151; - ref QuestSequence reference179 = ref span86[5]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span87 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference180 = ref span87[0]; + index2 = 4; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference180 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1047498u, new Vector3(-367.45258f, 20.14268f, -92.63757f), 1190); num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span88 = CollectionsMarshal.AsSpan(list229); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list229; reference180 = questStep28; - span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.66742f, 18.137554f, -137.36826f), 1190); - ref QuestStep reference181 = ref span87[2]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.66742f, 18.137554f, -137.36826f), 1190); + num2++; + ref QuestStep reference181 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1047080u, new Vector3(-364.70593f, 18.08191f, -139.45221f), 1190); - num3 = 6; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - Span span89 = CollectionsMarshal.AsSpan(list230); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + span5 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list230; reference181 = questStep29; - ref QuestStep reference182 = ref span87[3]; + num2++; + ref QuestStep reference182 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span90 = CollectionsMarshal.AsSpan(list231); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list231; reference182 = questStep30; obj152.Steps = list228; reference179 = obj152; - ref QuestSequence reference183 = ref span86[6]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 6 @@ -342697,26 +413507,32 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1047081u, new Vector3(-327.90118f, 18.106325f, -146.74603f), 1190); + span3 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047081u, new Vector3(-327.90118f, 18.106325f, -146.74603f), 1190); obj153.Steps = list232; reference183 = obj153; - ref QuestSequence reference184 = ref span86[7]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span91 = CollectionsMarshal.AsSpan(list233); - span91[0] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190) { PickUpQuestId = new QuestId(5144) }; - span91[1] = new QuestStep(EInteractionType.Interact, 1047082u, new Vector3(-171.37408f, 15.684817f, -358.9685f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047082u, new Vector3(-171.37408f, 15.684817f, -358.9685f), 1190); obj154.Steps = list233; reference184 = obj154; - ref QuestSequence reference185 = ref span86[8]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -342724,7 +413540,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047083u, new Vector3(-168.41382f, 15.771556f, -355.64203f), 1190) + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047083u, new Vector3(-168.41382f, 15.771556f, -355.64203f), 1190) { StopDistance = 7f }; @@ -342737,27 +413555,33 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list235); + index = 0; + span[index] = "liza"; questRoot25.Author = list235; - num = 5; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span92 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference186 = ref span92[0]; + index = 5; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + span2 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047084u, new Vector3(-167.07104f, 15.74114f, -359.39575f), 1190) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047084u, new Vector3(-167.07104f, 15.74114f, -359.39575f), 1190) { StopDistance = 7f }; obj156.Steps = list237; reference186 = obj156; - ref QuestSequence reference187 = ref span92[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -342765,24 +413589,30 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1047089u, new Vector3(-142.77869f, 15.869456f, -314.22906f), 1190); + span3 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047089u, new Vector3(-142.77869f, 15.869456f, -314.22906f), 1190); obj157.Steps = list238; reference187 = obj157; - ref QuestSequence reference188 = ref span92[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1047090u, new Vector3(-144.09094f, 15.900455f, -311.54346f), 1190) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + span3 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047090u, new Vector3(-144.09094f, 15.900455f, -311.54346f), 1190) { StopDistance = 5f }; obj158.Steps = list239; reference188 = obj158; - ref QuestSequence reference189 = ref span92[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 3 @@ -342790,23 +413620,28 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1047355u, new Vector3(-83.42114f, 16.538801f, -235.64508f), 1190); + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047355u, new Vector3(-83.42114f, 16.538801f, -235.64508f), 1190); obj159.Steps = list240; reference189 = obj159; - ref QuestSequence reference190 = ref span92[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span93 = CollectionsMarshal.AsSpan(list241); - span93[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013959u, new Vector3(-63.21814f, 18.844849f, -174.85315f), 1190) + index2 = 2; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013959u, new Vector3(-63.21814f, 18.844849f, -174.85315f), 1190) { AetherCurrentId = 2818451u }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -342819,13 +413654,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "liza"; questRoot26.Author = list242; - num = 7; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span94 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference191 = ref span94[0]; + index = 7; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 @@ -342833,28 +413671,36 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); obj161.Steps = list244; reference191 = obj161; - ref QuestSequence reference192 = ref span94[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span95 = CollectionsMarshal.AsSpan(list245); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.919f, 19.416311f, -140.61546f), 1190); - span95[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-203.91112f, 31.254747f, -75.537964f), 1190); - span95[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013957u, new Vector3(-192.18744f, 36.66736f, -53.177734f), 1190) + index2 = 4; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.919f, 19.416311f, -140.61546f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-203.91112f, 31.254747f, -75.537964f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013957u, new Vector3(-192.18744f, 36.66736f, -53.177734f), 1190) { AetherCurrentId = 2818454u }; - span95[3] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); obj162.Steps = list245; reference192 = obj162; - ref QuestSequence reference193 = ref span94[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -342862,34 +413708,42 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 2013814u, new Vector3(-201.00714f, 9.811523f, 18.264954f), 1190); + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013814u, new Vector3(-201.00714f, 9.811523f, 18.264954f), 1190); obj163.Steps = list246; reference193 = obj163; - ref QuestSequence reference194 = ref span94[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list247)[0]; + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + ref QuestStep reference195 = ref span3[num2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013815u, new Vector3(-176.28754f, 4.409851f, 147.11218f), 1190) { Comment = "two waves of enemies", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span96 = CollectionsMarshal.AsSpan(list248); - span96[0] = 17699u; - span96[1] = 17700u; + index3 = 2; + List list248 = new List(index3); + CollectionsMarshal.SetCount(list248, index3); + span6 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span6[num3] = 17699u; + num3++; + span6[num3] = 17700u; obj165.KillEnemyDataIds = list248; reference195 = obj165; obj164.Steps = list247; reference194 = obj164; - ref QuestSequence reference196 = ref span94[4]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -342897,21 +413751,27 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); obj166.Steps = list249; reference196 = obj166; - ref QuestSequence reference197 = ref span94[5]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1046979u, new Vector3(-156.66437f, 15.93609f, -311.02472f), 1190); + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046979u, new Vector3(-156.66437f, 15.93609f, -311.02472f), 1190); obj167.Steps = list250; reference197 = obj167; - ref QuestSequence reference198 = ref span94[6]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -342919,7 +413779,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); obj168.Steps = list251; reference198 = obj168; questRoot26.QuestSequence = list243; @@ -342929,24 +413791,30 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list252); + index = 0; + span[index] = "liza"; questRoot27.Author = list252; - num = 6; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span97 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference199 = ref span97[0]; + index = 6; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + span2 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); obj169.Steps = list254; reference199 = obj169; - ref QuestSequence reference200 = ref span97[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -342954,12 +413822,16 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list255)[0]; + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + ref QuestStep reference201 = ref span3[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2013816u, new Vector3(-144.51825f, 15.6710205f, -385.15295f), 1190); num3 = 1; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list256); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD115_04926_SYSTEM_000_010") @@ -342968,19 +413840,23 @@ public static class AssemblyQuestLoader reference201 = questStep31; obj170.Steps = list255; reference200 = obj170; - span97[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference202 = ref span97[3]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Duty, null, null, 1219) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + span3 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1219) { DutyOptions = new DutyOptions { @@ -342990,11 +413866,13 @@ public static class AssemblyQuestLoader }; obj171.Steps = list257; reference202 = obj171; - span97[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference203 = ref span97[5]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -343002,7 +413880,9 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047371u, new Vector3(650.5377f, 146.05669f, 695.46045f), 1191) + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047371u, new Vector3(650.5377f, 146.05669f, 695.46045f), 1191) { DisableNavmesh = true }; @@ -343015,28 +413895,34 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list259); + index = 0; + span[index] = "liza"; questRoot28.Author = list259; - num = 9; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span98 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference204 = ref span98[0]; + index = 9; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + span2 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047375u, new Vector3(648.0963f, 146.00774f, 694.026f), 1191) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047375u, new Vector3(648.0963f, 146.00774f, 694.026f), 1191) { StopDistance = 7f, DisableNavmesh = true }; obj173.Steps = list261; reference204 = obj173; - ref QuestSequence reference205 = ref span98[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -343044,21 +413930,27 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1047376u, new Vector3(572.83887f, 107.79388f, 483.5431f), 1191); + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047376u, new Vector3(572.83887f, 107.79388f, 483.5431f), 1191); obj174.Steps = list262; reference205 = obj174; - ref QuestSequence reference206 = ref span98[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1047381u, new Vector3(550.89636f, 143.6124f, 206.46973f), 1191); + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047381u, new Vector3(550.89636f, 143.6124f, 206.46973f), 1191); obj175.Steps = list263; reference206 = obj175; - ref QuestSequence reference207 = ref span98[3]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 3 @@ -343066,63 +413958,87 @@ public static class AssemblyQuestLoader num2 = 6; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span99 = CollectionsMarshal.AsSpan(list264); - span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { StopDistance = 8f, Aetheryte = EAetheryteLocation.HeritageFoundYyasulaniStation }; - ref QuestStep reference208 = ref span99[1]; + index2++; + ref QuestStep reference208 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013817u, new Vector3(482.62744f, 147.1427f, 224.23132f), 1191); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span100 = CollectionsMarshal.AsSpan(list265); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + span5 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list265; reference208 = questStep32; - ref QuestStep reference209 = ref span99[2]; + index2++; + ref QuestStep reference209 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 2013818u, new Vector3(465.72058f, 147.08167f, 202.68555f), 1191); num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span101 = CollectionsMarshal.AsSpan(list266); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list266; reference209 = questStep33; - span99[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013964u, new Vector3(397.8789f, 145.34216f, 224.2008f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013964u, new Vector3(397.8789f, 145.34216f, 224.2008f), 1191) { AetherCurrentId = 2818464u }; - ref QuestStep reference210 = ref span99[4]; + index2++; + ref QuestStep reference210 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.82584f, 145.82513f, 186.19025f), 1191); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span102 = CollectionsMarshal.AsSpan(list267); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list267 = new List(index3); + CollectionsMarshal.SetCount(list267, index3); + span5 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list267; skipConditions4.StepIf = skipStepConditions4; questStep34.SkipConditions = skipConditions4; reference210 = questStep34; - ref QuestStep reference211 = ref span99[5]; + index2++; + ref QuestStep reference211 = ref span3[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2013819u, new Vector3(485.83203f, 147.50891f, 184.22205f), 1191) { StopDistance = 4.5f @@ -343130,29 +414046,39 @@ public static class AssemblyQuestLoader num3 = 6; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span103 = CollectionsMarshal.AsSpan(list268); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj177.CompletionQuestVariablesFlags = list268; reference211 = obj177; obj176.Steps = list264; reference207 = obj176; - ref QuestSequence reference212 = ref span98[4]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1047388u, new Vector3(470.84766f, 145.83463f, 164.75159f), 1191); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + span3 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047388u, new Vector3(470.84766f, 145.83463f, 164.75159f), 1191); obj178.Steps = list269; reference212 = obj178; - ref QuestSequence reference213 = ref span98[5]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 5 @@ -343160,23 +414086,29 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span104 = CollectionsMarshal.AsSpan(list270); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.8908f, 145.62398f, 157.92116f), 1191); - span104[1] = new QuestStep(EInteractionType.Interact, 1047387u, new Vector3(467.4906f, 122.874016f, 44.815674f), 1191); + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.8908f, 145.62398f, 157.92116f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047387u, new Vector3(467.4906f, 122.874016f, 44.815674f), 1191); obj179.Steps = list270; reference213 = obj179; - ref QuestSequence reference214 = ref span98[6]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1047389u, new Vector3(328.96924f, 74.07415f, 86.86963f), 1191); + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047389u, new Vector3(328.96924f, 74.07415f, 86.86963f), 1191); obj180.Steps = list271; reference214 = obj180; - ref QuestSequence reference215 = ref span98[7]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 7 @@ -343184,18 +414116,23 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1047390u, new Vector3(313.31335f, 63.76171f, -87.6936f), 1191); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047390u, new Vector3(313.31335f, 63.76171f, -87.6936f), 1191); obj181.Steps = list272; reference215 = obj181; - ref QuestSequence reference216 = ref span98[8]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) { StopDistance = 5f }; @@ -343208,13 +414145,16 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list274); + index = 0; + span[index] = "liza"; questRoot29.Author = list274; - num = 4; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span105 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference217 = ref span105[0]; + index = 4; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + span2 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -343222,24 +414162,30 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) { StopDistance = 5f }; obj183.Steps = list276; reference217 = obj183; - ref QuestSequence reference218 = ref span105[1]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1047396u, new Vector3(33.035767f, 33.442226f, -262.47046f), 1191); + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + span3 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047396u, new Vector3(33.035767f, 33.442226f, -262.47046f), 1191); obj184.Steps = list277; reference218 = obj184; - ref QuestSequence reference219 = ref span105[2]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -343247,32 +414193,38 @@ public static class AssemblyQuestLoader num2 = 3; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span106 = CollectionsMarshal.AsSpan(list278); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.819763f, 28.072628f, -399.17023f), 1191); - span106[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-120.99963f, 28.090134f, -456.97507f), 1191) + span3 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.819763f, 28.072628f, -399.17023f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-120.99963f, 28.090134f, -456.97507f), 1191) { DisableNavmesh = true }; - span106[2] = new QuestStep(EInteractionType.Interact, 1047397u, new Vector3(-149.03491f, 25.971825f, -500.63324f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047397u, new Vector3(-149.03491f, 25.971825f, -500.63324f), 1191) { DisableNavmesh = true }; obj185.Steps = list278; reference219 = obj185; - ref QuestSequence reference220 = ref span105[3]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span107 = CollectionsMarshal.AsSpan(list279); - span107[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + index2 = 2; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { Aetheryte = EAetheryteLocation.HeritageFoundTheOutskirts }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); obj186.Steps = list279; reference220 = obj186; questRoot29.QuestSequence = list275; @@ -343282,13 +414234,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "liza"; questRoot30.Author = list280; - num = 6; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span108 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference221 = ref span108[0]; + index = 6; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -343296,21 +414251,27 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); + span3 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); obj187.Steps = list282; reference221 = obj187; - ref QuestSequence reference222 = ref span108[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1047405u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047405u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191); obj188.Steps = list283; reference222 = obj188; - ref QuestSequence reference223 = ref span108[2]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -343318,63 +414279,88 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span109 = CollectionsMarshal.AsSpan(list284); - ref QuestStep reference224 = ref span109[0]; + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + ref QuestStep reference224 = ref span3[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1047408u, new Vector3(22.9953f, 35.463512f, -332.02112f), 1191); - num3 = 6; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - Span span110 = CollectionsMarshal.AsSpan(list285); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list285 = new List(index3); + CollectionsMarshal.SetCount(list285, index3); + span5 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep35.CompletionQuestVariablesFlags = list285; reference224 = questStep35; - ref QuestStep reference225 = ref span109[1]; + index2++; + ref QuestStep reference225 = ref span3[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1047410u, new Vector3(48.17273f, 34.29345f, -380.60577f), 1191); num3 = 6; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - Span span111 = CollectionsMarshal.AsSpan(list286); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list286); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list286; reference225 = questStep36; - ref QuestStep reference226 = ref span109[2]; + index2++; + ref QuestStep reference226 = ref span3[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1047409u, new Vector3(10.849121f, 30.06934f, -458.7625f), 1191); - num3 = 6; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - Span span112 = CollectionsMarshal.AsSpan(list287); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list287 = new List(index3); + CollectionsMarshal.SetCount(list287, index3); + span5 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list287; reference226 = questStep37; obj189.Steps = list284; reference223 = obj189; - ref QuestSequence reference227 = ref span108[3]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1047411u, new Vector3(-66.78876f, 35.107204f, -249.56134f), 1191); + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047411u, new Vector3(-66.78876f, 35.107204f, -249.56134f), 1191); obj190.Steps = list288; reference227 = obj190; - ref QuestSequence reference228 = ref span108[4]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -343382,8 +414368,9 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span113 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference229 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference229 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2013821u, new Vector3(-182.42163f, 21.835632f, -411.0323f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -343391,21 +414378,30 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = 17701u; + span6 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span6[index3] = 17701u; obj192.KillEnemyDataIds = list290; - num3 = 6; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span114 = CollectionsMarshal.AsSpan(list291); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list291 = new List(index3); + CollectionsMarshal.SetCount(list291, index3); + span5 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj192.CompletionQuestVariablesFlags = list291; reference229 = obj192; - ref QuestStep reference230 = ref span113[1]; + index2++; + ref QuestStep reference230 = ref span3[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2013820u, new Vector3(-56.839844f, 21.835632f, -520.8057f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -343413,31 +414409,42 @@ public static class AssemblyQuestLoader num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = 17701u; + span6 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span6[index3] = 17701u; obj193.KillEnemyDataIds = list292; - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span115 = CollectionsMarshal.AsSpan(list293); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + span5 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list293; reference230 = obj193; obj191.Steps = list289; reference228 = obj191; - ref QuestSequence reference231 = ref span108[5]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); obj194.Steps = list294; reference231 = obj194; questRoot30.QuestSequence = list281; @@ -343447,13 +414454,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; questRoot31.Author = list295; - num = 9; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span116 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference232 = ref span116[0]; + index = 9; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -343461,24 +414471,30 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); obj195.Steps = list297; reference232 = obj195; - ref QuestSequence reference233 = ref span116[1]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1047412u, new Vector3(-146.56293f, 25.971825f, -494.98743f), 1191) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047412u, new Vector3(-146.56293f, 25.971825f, -494.98743f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj196.Steps = list298; reference233 = obj196; - ref QuestSequence reference234 = ref span116[2]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -343486,63 +414502,88 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1047414u, new Vector3(-146.19672f, 25.971825f, -498.1308f), 1191); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047414u, new Vector3(-146.19672f, 25.971825f, -498.1308f), 1191); obj197.Steps = list299; reference234 = obj197; - ref QuestSequence reference235 = ref span116[3]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span117 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference236 = ref span117[0]; + index2 = 3; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference236 = ref span3[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1047419u, new Vector3(-149.1264f, 30.999998f, -613.36694f), 1191); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span118 = CollectionsMarshal.AsSpan(list301); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list301; reference236 = questStep38; - ref QuestStep reference237 = ref span117[1]; + num2++; + ref QuestStep reference237 = ref span3[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1047420u, new Vector3(-142.50409f, 40.99999f, -698.8785f), 1191); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span119 = CollectionsMarshal.AsSpan(list302); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + span5 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep39.CompletionQuestVariablesFlags = list302; reference237 = questStep39; - ref QuestStep reference238 = ref span117[2]; + num2++; + ref QuestStep reference238 = ref span3[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1047421u, new Vector3(-69.13867f, 50.097145f, -670.06946f), 1191); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span120 = CollectionsMarshal.AsSpan(list303); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep40.CompletionQuestVariablesFlags = list303; reference238 = questStep40; obj198.Steps = list300; reference235 = obj198; - ref QuestSequence reference239 = ref span116[4]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 4 @@ -343550,21 +414591,27 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 2013896u, new Vector3(-202.65509f, 29.984009f, -595.636f), 1191); + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013896u, new Vector3(-202.65509f, 29.984009f, -595.636f), 1191); obj199.Steps = list304; reference239 = obj199; - ref QuestSequence reference240 = ref span116[5]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2013822u, new Vector3(120.408936f, 42.008057f, -468.19257f), 1191); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013822u, new Vector3(120.408936f, 42.008057f, -468.19257f), 1191); obj200.Steps = list305; reference240 = obj200; - ref QuestSequence reference241 = ref span116[6]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 6 @@ -343572,28 +414619,34 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span121 = CollectionsMarshal.AsSpan(list306); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(230.06555f, 67.24928f, -473.94547f), 1191); - span121[1] = new QuestStep(EInteractionType.Interact, 1047428u, new Vector3(248.70679f, 74.60507f, -547.9973f), 1191); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(230.06555f, 67.24928f, -473.94547f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047428u, new Vector3(248.70679f, 74.60507f, -547.9973f), 1191); obj201.Steps = list306; reference241 = obj201; - ref QuestSequence reference242 = ref span116[7]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span122 = CollectionsMarshal.AsSpan(list307); - span122[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013965u, new Vector3(204.57764f, 58.182617f, -678.49243f), 1191) + index2 = 2; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013965u, new Vector3(204.57764f, 58.182617f, -678.49243f), 1191) { AetherCurrentId = 2818465u }; - span122[1] = new QuestStep(EInteractionType.Interact, 1047433u, new Vector3(220.26392f, 55.931297f, -679.19434f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047433u, new Vector3(220.26392f, 55.931297f, -679.19434f), 1191); obj202.Steps = list307; reference242 = obj202; - ref QuestSequence reference243 = ref span116[8]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -343601,7 +414654,9 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) { StopDistance = 5f }; @@ -343614,27 +414669,33 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - CollectionsMarshal.AsSpan(list309)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list309); + index = 0; + span[index] = "liza"; questRoot32.Author = list309; - num = 6; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - Span span123 = CollectionsMarshal.AsSpan(list310); - ref QuestSequence reference244 = ref span123[0]; + index = 6; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + span2 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) { StopDistance = 5f }; obj204.Steps = list311; reference244 = obj204; - ref QuestSequence reference245 = ref span123[1]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -343642,27 +414703,33 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span124 = CollectionsMarshal.AsSpan(list312); - span124[0] = new QuestStep(EInteractionType.Interact, 2013853u, new Vector3(0.6560669f, 0.99176025f, 17.532532f), 1171) + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013853u, new Vector3(0.6560669f, 0.99176025f, 17.532532f), 1171) { StopDistance = 4.5f, TargetTerritoryId = (ushort)1191 }; - span124[1] = new QuestStep(EInteractionType.Interact, 1047444u, new Vector3(264.57617f, 68.46363f, -503.31888f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047444u, new Vector3(264.57617f, 68.46363f, -503.31888f), 1191); obj205.Steps = list312; reference245 = obj205; - ref QuestSequence reference246 = ref span123[2]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1047450u, new Vector3(484.6112f, 91.99999f, -500.3281f), 1191); + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047450u, new Vector3(484.6112f, 91.99999f, -500.3281f), 1191); obj206.Steps = list313; reference246 = obj206; - ref QuestSequence reference247 = ref span123[3]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -343670,46 +414737,56 @@ public static class AssemblyQuestLoader num2 = 4; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span125 = CollectionsMarshal.AsSpan(list314); - span125[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013968u, new Vector3(685.96924f, 139.17749f, -516.5637f), 1191) + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013968u, new Vector3(685.96924f, 139.17749f, -516.5637f), 1191) { AetherCurrentId = 2818470u }; - span125[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013967u, new Vector3(606.83594f, 127.55017f, -190.3869f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013967u, new Vector3(606.83594f, 127.55017f, -190.3869f), 1191) { AetherCurrentId = 2818469u }; - span125[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(554.8906f, 83.21251f, -226.04199f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(554.8906f, 83.21251f, -226.04199f), 1191) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference248 = ref span125[3]; + index2++; + ref QuestStep reference248 = ref span3[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, 2013823u, new Vector3(535.7595f, 85.31323f, -316.0296f), 1191) { Comment = "two waves of enemies", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - CollectionsMarshal.AsSpan(list315)[0] = 17702u; + index3 = 1; + List list315 = new List(index3); + CollectionsMarshal.SetCount(list315, index3); + span6 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span6[num3] = 17702u; obj208.KillEnemyDataIds = list315; reference248 = obj208; obj207.Steps = list314; reference247 = obj207; - ref QuestSequence reference249 = ref span123[4]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 2013824u, new Vector3(438.37634f, 77.62268f, -282.70392f), 1191); + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013824u, new Vector3(438.37634f, 77.62268f, -282.70392f), 1191); obj209.Steps = list316; reference249 = obj209; - ref QuestSequence reference250 = ref span123[5]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -343717,7 +414794,9 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047460u, new Vector3(450.33948f, 89.99999f, -474.815f), 1191) + span3 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047460u, new Vector3(450.33948f, 89.99999f, -474.815f), 1191) { StopDistance = 5f }; @@ -343730,27 +414809,33 @@ public static class AssemblyQuestLoader num = 1; List list318 = new List(num); CollectionsMarshal.SetCount(list318, num); - CollectionsMarshal.AsSpan(list318)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list318); + index = 0; + span[index] = "liza"; questRoot33.Author = list318; - num = 4; - List list319 = new List(num); - CollectionsMarshal.SetCount(list319, num); - Span span126 = CollectionsMarshal.AsSpan(list319); - ref QuestSequence reference251 = ref span126[0]; + index = 4; + List list319 = new List(index); + CollectionsMarshal.SetCount(list319, index); + span2 = CollectionsMarshal.AsSpan(list319); + num = 0; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047465u, new Vector3(452.71985f, 90f, -473.9605f), 1191) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047465u, new Vector3(452.71985f, 90f, -473.9605f), 1191) { StopDistance = 5f }; obj211.Steps = list320; reference251 = obj211; - ref QuestSequence reference252 = ref span126[1]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -343758,29 +414843,35 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1047770u, new Vector3(247.54712f, 72.69989f, -536.7361f), 1191); + span3 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047770u, new Vector3(247.54712f, 72.69989f, -536.7361f), 1191); obj212.Steps = list321; reference252 = obj212; - ref QuestSequence reference253 = ref span126[2]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - Span span127 = CollectionsMarshal.AsSpan(list322); - span127[0] = new QuestStep(EInteractionType.Interact, 2014030u, new Vector3(221.82031f, 54.58142f, -693.38525f), 1191) + index2 = 2; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + span3 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014030u, new Vector3(221.82031f, 54.58142f, -693.38525f), 1191) { TargetTerritoryId = (ushort)1171 }; - span127[1] = new QuestStep(EInteractionType.Interact, 1047775u, new Vector3(1.0527954f, 0.003171f, 0.6866455f), 1171) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047775u, new Vector3(1.0527954f, 0.003171f, 0.6866455f), 1171) { DelaySecondsAtStart = 3f }; obj213.Steps = list322; reference253 = obj213; - ref QuestSequence reference254 = ref span126[3]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -343788,7 +414879,9 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047781u, new Vector3(2.670288f, 0.003171f, 1.296936f), 1171) + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047781u, new Vector3(2.670288f, 0.003171f, 1.296936f), 1171) { StopDistance = 5f }; @@ -343801,27 +414894,33 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list324); + index = 0; + span[index] = "liza"; questRoot34.Author = list324; - num = 6; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span128 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference255 = ref span128[0]; + index = 6; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + span2 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047776u, new Vector3(-0.869812f, -2.9624603E-06f, -0.6256714f), 1171) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047776u, new Vector3(-0.869812f, -2.9624603E-06f, -0.6256714f), 1171) { StopDistance = 5f }; obj215.Steps = list326; reference255 = obj215; - ref QuestSequence reference256 = ref span128[1]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -343829,8 +414928,9 @@ public static class AssemblyQuestLoader num2 = 3; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span129 = CollectionsMarshal.AsSpan(list327); - span129[0] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) + span3 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -343842,32 +414942,39 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(5153) }; - span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { PickUpQuestId = new QuestId(5160) }; - span129[2] = new QuestStep(EInteractionType.Interact, 1048053u, new Vector3(-296.52863f, 45.88422f, -828.58014f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048053u, new Vector3(-296.52863f, 45.88422f, -828.58014f), 1191); obj216.Steps = list327; reference256 = obj216; - span128[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference257 = ref span128[3]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1048059u, new Vector3(0.6560669f, -6.050003f, 218.24976f), 1186) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048059u, new Vector3(0.6560669f, -6.050003f, 218.24976f), 1186) { StopDistance = 5f }; obj217.Steps = list328; reference257 = obj217; - ref QuestSequence reference258 = ref span128[4]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 4 @@ -343875,30 +414982,36 @@ public static class AssemblyQuestLoader num2 = 2; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span130 = CollectionsMarshal.AsSpan(list329); - span130[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineInformationCenter }; - span130[1] = new QuestStep(EInteractionType.Interact, 1048060u, new Vector3(5.935669f, 7.786434f, 27.450928f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048060u, new Vector3(5.935669f, 7.786434f, 27.450928f), 1186); obj218.Steps = list329; reference258 = obj218; - ref QuestSequence reference259 = ref span128[5]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span131 = CollectionsMarshal.AsSpan(list330); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.134756f, 8.467899f, 7.050073f), 1186); - span131[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) + index2 = 3; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.134756f, 8.467899f, 7.050073f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) { StopDistance = 11f, Aetheryte = EAetheryteLocation.SolutionNine }; - span131[2] = new QuestStep(EInteractionType.CompleteQuest, 1048061u, new Vector3(-97.94769f, 0.00054359436f, -0.10687256f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048061u, new Vector3(-97.94769f, 0.00054359436f, -0.10687256f), 1186); obj219.Steps = list330; reference259 = obj219; questRoot34.QuestSequence = list325; @@ -343908,13 +415021,16 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list331); + index = 0; + span[index] = "liza"; questRoot35.Author = list331; - num = 8; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span132 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference260 = ref span132[0]; + index = 8; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + span2 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -343922,47 +415038,57 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048062u, new Vector3(-136.43097f, 0.22516371f, -44.235962f), 1186) + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048062u, new Vector3(-136.43097f, 0.22516371f, -44.235962f), 1186) { StopDistance = 5f }; obj220.Steps = list333; reference260 = obj220; - ref QuestSequence reference261 = ref span132[1]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list334)[0]; + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + ref QuestStep reference262 = ref span3[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1048233u, new Vector3(-163.86664f, 0.9219522f, -51.529785f), 1186); num3 = 2; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - Span span133 = CollectionsMarshal.AsSpan(list335); - span133[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGME103_04934_SYSTEM_000_057") }; - span133[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGME103_04934_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGME103_04934_A1_000_003") }; questStep41.DialogueChoices = list335; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 2u; + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + span6 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span6[num3] = 2u; questStep41.PointMenuChoices = list336; reference262 = questStep41; obj221.Steps = list334; reference261 = obj221; - ref QuestSequence reference263 = ref span132[2]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -343970,27 +415096,33 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1048066u, new Vector3(-162.55438f, 0.92195225f, -52.384216f), 1186) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048066u, new Vector3(-162.55438f, 0.92195225f, -52.384216f), 1186) { StopDistance = 5f }; obj222.Steps = list337; reference263 = obj222; - ref QuestSequence reference264 = ref span132[3]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-163.83618f, 0.9219523f, -51.499268f), 1186) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-163.83618f, 0.9219523f, -51.499268f), 1186) { StopDistance = 5f }; obj223.Steps = list338; reference264 = obj223; - ref QuestSequence reference265 = ref span132[4]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 4 @@ -343998,34 +415130,41 @@ public static class AssemblyQuestLoader num2 = 3; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span134 = CollectionsMarshal.AsSpan(list339); - span134[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNexusArcade }; - span134[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186); - span134[2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186) { StopDistance = 0.25f, DelaySecondsAtStart = 3f }; obj224.Steps = list339; reference265 = obj224; - ref QuestSequence reference266 = ref span132[5]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-369.83575f, 14.000001f, 133.25919f), 1186) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-369.83575f, 14.000001f, 133.25919f), 1186) { StopDistance = 0.25f }; obj225.Steps = list340; reference266 = obj225; - ref QuestSequence reference267 = ref span132[6]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 6 @@ -344033,26 +415172,31 @@ public static class AssemblyQuestLoader num2 = 2; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span135 = CollectionsMarshal.AsSpan(list341); - span135[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResidentialSector }; - span135[1] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-401.3925f, 13.999998f, 273.74304f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-401.3925f, 13.999998f, 273.74304f), 1186) { StopDistance = 0.25f }; obj226.Steps = list341; reference267 = obj226; - ref QuestSequence reference268 = ref span132[7]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) { StopDistance = 5f }; @@ -344065,13 +415209,16 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list343); + index = 0; + span[index] = "liza"; questRoot36.Author = list343; - num = 5; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span136 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference269 = ref span136[0]; + index = 5; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + span2 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -344079,27 +415226,33 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) { StopDistance = 5f }; obj228.Steps = list345; reference269 = obj228; - ref QuestSequence reference270 = ref span136[1]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1048071u, new Vector3(2.029419f, 0.00054359436f, -97.45941f), 1186) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048071u, new Vector3(2.029419f, 0.00054359436f, -97.45941f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; obj229.Steps = list346; reference270 = obj229; - ref QuestSequence reference271 = ref span136[2]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -344107,31 +415260,38 @@ public static class AssemblyQuestLoader num2 = 3; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span137 = CollectionsMarshal.AsSpan(list347); - span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) { RestartNavigationIfCancelled = false }; - span137[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { DelaySecondsAtStart = 2f, AethernetShard = EAetheryteLocation.SolutionNineResolution }; - span137[2] = new QuestStep(EInteractionType.Interact, 1048073u, new Vector3(4.0740967f, 38.056595f, -375.50934f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048073u, new Vector3(4.0740967f, 38.056595f, -375.50934f), 1186); obj230.Steps = list347; reference271 = obj230; - ref QuestSequence reference272 = ref span136[3]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051346u, new Vector3(6.515503f, 38.056484f, -217.91418f), 1186); + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051346u, new Vector3(6.515503f, 38.056484f, -217.91418f), 1186); obj231.Steps = list348; reference272 = obj231; - ref QuestSequence reference273 = ref span136[4]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -344139,7 +415299,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186) + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; @@ -344152,24 +415314,30 @@ public static class AssemblyQuestLoader num = 1; List list350 = new List(num); CollectionsMarshal.SetCount(list350, num); - CollectionsMarshal.AsSpan(list350)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list350); + index = 0; + span[index] = "liza"; questRoot37.Author = list350; - num = 6; - List list351 = new List(num); - CollectionsMarshal.SetCount(list351, num); - Span span138 = CollectionsMarshal.AsSpan(list351); - ref QuestSequence reference274 = ref span138[0]; + index = 6; + List list351 = new List(index); + CollectionsMarshal.SetCount(list351, index); + span2 = CollectionsMarshal.AsSpan(list351); + num = 0; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186); + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + span3 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186); obj233.Steps = list352; reference274 = obj233; - ref QuestSequence reference275 = ref span138[1]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -344177,29 +415345,35 @@ public static class AssemblyQuestLoader num2 = 2; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span139 = CollectionsMarshal.AsSpan(list353); - span139[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.57825f, 0.5499997f, 5.1162424f), 1186) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.57825f, 0.5499997f, 5.1162424f), 1186) { RestartNavigationIfCancelled = false }; - span139[1] = new QuestStep(EInteractionType.Interact, 1048172u, new Vector3(250.59888f, 59.699997f, 9.201172f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048172u, new Vector3(250.59888f, 59.699997f, 9.201172f), 1186) { DelaySecondsAtStart = 2f }; obj234.Steps = list353; reference275 = obj234; - ref QuestSequence reference276 = ref span138[2]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 2013839u, new Vector3(336.4412f, 69.93213f, 5.78728f), 1186); + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013839u, new Vector3(336.4412f, 69.93213f, 5.78728f), 1186); obj235.Steps = list354; reference276 = obj235; - ref QuestSequence reference277 = ref span138[3]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -344207,7 +415381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list355)[0]; + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference278 = ref span3[index2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1048078u, new Vector3(346.0287f, 70f, 12.466553f), 1186) { StopDistance = 5f @@ -344215,7 +415391,9 @@ public static class AssemblyQuestLoader num3 = 1; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGME105_04936_SYSTEM_000_044") @@ -344224,33 +415402,40 @@ public static class AssemblyQuestLoader reference278 = obj237; obj236.Steps = list355; reference277 = obj236; - ref QuestSequence reference279 = ref span138[4]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - Span span140 = CollectionsMarshal.AsSpan(list357); - span140[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.63077f, 59.99995f, 50.459126f), 1186) + index2 = 5; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.63077f, 59.99995f, 50.459126f), 1186) { StopDistance = 1f }; - span140[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.64206f, 60f, 79.1161f), 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.64206f, 60f, 79.1161f), 1186) { StopDistance = 5f, NpcWaitDistance = 3f }; - span140[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(346.05466f, 50.75f, 153.15274f), 1186); - span140[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(293.66595f, 51.038002f, 172.77852f), 1186); - span140[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.3639f, 51.39998f, 199.20642f), 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(346.05466f, 50.75f, 153.15274f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(293.66595f, 51.038002f, 172.77852f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.3639f, 51.39998f, 199.20642f), 1186) { StopDistance = 2f }; obj238.Steps = list357; reference279 = obj238; - ref QuestSequence reference280 = ref span138[5]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -344258,7 +415443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048080u, new Vector3(299.45825f, 51.199978f, 202.04468f), 1186); + span3 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048080u, new Vector3(299.45825f, 51.199978f, 202.04468f), 1186); obj239.Steps = list358; reference280 = obj239; questRoot37.QuestSequence = list351; @@ -344268,27 +415455,33 @@ public static class AssemblyQuestLoader num = 1; List list359 = new List(num); CollectionsMarshal.SetCount(list359, num); - CollectionsMarshal.AsSpan(list359)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list359); + index = 0; + span[index] = "liza"; questRoot38.Author = list359; - num = 7; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - Span span141 = CollectionsMarshal.AsSpan(list360); - ref QuestSequence reference281 = ref span141[0]; + index = 7; + List list360 = new List(index); + CollectionsMarshal.SetCount(list360, index); + span2 = CollectionsMarshal.AsSpan(list360); + num = 0; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048236u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048236u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { StopDistance = 7f }; obj240.Steps = list361; reference281 = obj240; - ref QuestSequence reference282 = ref span141[1]; + num++; + ref QuestSequence reference282 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -344296,34 +415489,42 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1048084u, new Vector3(12.802246f, -1.6391277E-07f, 6.42395f), 1207); + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048084u, new Vector3(12.802246f, -1.6391277E-07f, 6.42395f), 1207); obj241.Steps = list362; reference282 = obj241; - ref QuestSequence reference283 = ref span141[2]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - Span span142 = CollectionsMarshal.AsSpan(list363); - span142[0] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) + index2 = 4; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; - span142[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNeonStein }; - span142[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTrueVue }; - span142[3] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); obj242.Steps = list363; reference283 = obj242; - ref QuestSequence reference284 = ref span141[3]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -344331,25 +415532,31 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); + span3 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); obj243.Steps = list364; reference284 = obj243; - ref QuestSequence reference285 = ref span141[4]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(364.32428f, 50.75f, 220.96391f), 1186) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span3 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(364.32428f, 50.75f, 220.96391f), 1186) { StopDistance = 5f, ItemId = 2003561u }; obj244.Steps = list365; reference285 = obj244; - ref QuestSequence reference286 = ref span141[5]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 5 @@ -344357,12 +415564,14 @@ public static class AssemblyQuestLoader num2 = 3; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span143 = CollectionsMarshal.AsSpan(list366); - span143[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span3 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTheArcadion }; - span143[1] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AethernetShortcut = new AethernetShortcut @@ -344371,18 +415580,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span143[2] = new QuestStep(EInteractionType.Interact, 1048189u, new Vector3(13.290527f, -1.7329884E-07f, 6.088318f), 1207); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048189u, new Vector3(13.290527f, -1.7329884E-07f, 6.088318f), 1207); obj245.Steps = list366; reference286 = obj245; - ref QuestSequence reference287 = ref span141[6]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048094u, new Vector3(4.5318604f, 0.046479464f, 5.5999756f), 1207) + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048094u, new Vector3(4.5318604f, 0.046479464f, 5.5999756f), 1207) { StopDistance = 7f }; @@ -344395,13 +415608,16 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list368); + index = 0; + span[index] = "liza"; questRoot39.Author = list368; - num = 5; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span144 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference288 = ref span144[0]; + index = 5; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + span2 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -344409,24 +415625,30 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051347u, new Vector3(4.3792725f, 0.04647946f, 5.6915283f), 1207); + span3 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051347u, new Vector3(4.3792725f, 0.04647946f, 5.6915283f), 1207); obj247.Steps = list370; reference288 = obj247; - ref QuestSequence reference289 = ref span144[1]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1048095u, new Vector3(-297.59674f, 45.88422f, -821.07275f), 1191) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048095u, new Vector3(-297.59674f, 45.88422f, -821.07275f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj248.Steps = list371; reference289 = obj248; - ref QuestSequence reference290 = ref span144[2]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 @@ -344434,21 +415656,27 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 2013840u, new Vector3(-485.49634f, 28.366455f, -576.22644f), 1191); + span3 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013840u, new Vector3(-485.49634f, 28.366455f, -576.22644f), 1191); obj249.Steps = list372; reference290 = obj249; - ref QuestSequence reference291 = ref span144[3]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1048098u, new Vector3(-603.32654f, -2.524255f, -488.4871f), 1191); + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + span3 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048098u, new Vector3(-603.32654f, -2.524255f, -488.4871f), 1191); obj250.Steps = list373; reference291 = obj250; - ref QuestSequence reference292 = ref span144[4]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = byte.MaxValue @@ -344456,12 +415684,14 @@ public static class AssemblyQuestLoader num2 = 2; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span145 = CollectionsMarshal.AsSpan(list374); - span145[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013969u, new Vector3(-585.41235f, 20.157104f, -469.44385f), 1191) + span3 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013969u, new Vector3(-585.41235f, 20.157104f, -469.44385f), 1191) { AetherCurrentId = 2818466u }; - span145[1] = new QuestStep(EInteractionType.CompleteQuest, 1048103u, new Vector3(-704.09705f, 54.03237f, -210.46777f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048103u, new Vector3(-704.09705f, 54.03237f, -210.46777f), 1191); obj251.Steps = list374; reference292 = obj251; questRoot39.QuestSequence = list369; @@ -344471,24 +415701,30 @@ public static class AssemblyQuestLoader num = 1; List list375 = new List(num); CollectionsMarshal.SetCount(list375, num); - CollectionsMarshal.AsSpan(list375)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list375); + index = 0; + span[index] = "liza"; questRoot40.Author = list375; - num = 7; - List list376 = new List(num); - CollectionsMarshal.SetCount(list376, num); - Span span146 = CollectionsMarshal.AsSpan(list376); - ref QuestSequence reference293 = ref span146[0]; + index = 7; + List list376 = new List(index); + CollectionsMarshal.SetCount(list376, index); + span2 = CollectionsMarshal.AsSpan(list376); + num = 0; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051412u, new Vector3(-704.0055f, 54.030636f, -210.58978f), 1191); + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051412u, new Vector3(-704.0055f, 54.030636f, -210.58978f), 1191); obj252.Steps = list377; reference293 = obj252; - ref QuestSequence reference294 = ref span146[1]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 1 @@ -344496,21 +415732,27 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1048104u, new Vector3(-519.9817f, 10.081686f, 81.1322f), 1191); + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048104u, new Vector3(-519.9817f, 10.081686f, 81.1322f), 1191); obj253.Steps = list378; reference294 = obj253; - ref QuestSequence reference295 = ref span146[2]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 2013841u, new Vector3(-556.0541f, 1.5411377f, 118.638916f), 1191); + index2 = 1; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + span3 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013841u, new Vector3(-556.0541f, 1.5411377f, 118.638916f), 1191); obj254.Steps = list379; reference295 = obj254; - ref QuestSequence reference296 = ref span146[3]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 3 @@ -344518,65 +415760,82 @@ public static class AssemblyQuestLoader num2 = 13; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span147 = CollectionsMarshal.AsSpan(list380); - span147[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-552.04144f, -2.079689f, 135.62419f), 1191) + span3 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-552.04144f, -2.079689f, 135.62419f), 1191) { Mount = true }; - span147[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-543.3764f, -1.6255682f, 170.78006f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-543.3764f, -1.6255682f, 170.78006f), 1191) { StopDistance = 50f }; - span147[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.3011f, -1.480176f, 158.82558f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.3011f, -1.480176f, 158.82558f), 1191) { DelaySecondsAtStart = 5f }; - span147[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-497.62363f, 0.7720427f, 171.72368f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-497.62363f, 0.7720427f, 171.72368f), 1191) { StopDistance = 50f }; - span147[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.01544f, 0.29254055f, 168.97873f), 1191); - span147[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-443.81244f, 3.592197f, 168.61993f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.01544f, 0.29254055f, 168.97873f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-443.81244f, 3.592197f, 168.61993f), 1191) { StopDistance = 100f }; - span147[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-447.27704f, 3.4107869f, 170.56796f), 1191); - span147[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-431.33353f, 4.24635f, 211.52757f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-447.27704f, 3.4107869f, 170.56796f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-431.33353f, 4.24635f, 211.52757f), 1191) { StopDistance = 100f }; - span147[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.35794f, 4.2450695f, 216.45123f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.35794f, 4.2450695f, 216.45123f), 1191) { DelaySecondsAtStart = 5f }; - span147[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-444.92905f, 3.5340097f, 257.89444f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-444.92905f, 3.5340097f, 257.89444f), 1191) { StopDistance = 100f }; - span147[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-441.83728f, 3.695872f, 256.8098f), 1191); - span147[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-472.45474f, 7.6260962f, 323.47836f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-441.83728f, 3.695872f, 256.8098f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-472.45474f, 7.6260962f, 323.47836f), 1191) { StopDistance = 100f, NpcWaitDistance = 5f }; - span147[12] = new QuestStep(EInteractionType.WalkTo, 2013719u, new Vector3(-482.0478f, 6.362976f, 323.62854f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 2013719u, new Vector3(-482.0478f, 6.362976f, 323.62854f), 1191); obj255.Steps = list380; reference296 = obj255; - ref QuestSequence reference297 = ref span146[4]; + num++; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1047466u, new Vector3(-469.3828f, 7.829801f, 315.32764f), 1191) + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047466u, new Vector3(-469.3828f, 7.829801f, 315.32764f), 1191) { StopDistance = 5f }; obj256.Steps = list381; reference297 = obj256; - ref QuestSequence reference298 = ref span146[5]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 5 @@ -344584,45 +415843,55 @@ public static class AssemblyQuestLoader num2 = 5; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span148 = CollectionsMarshal.AsSpan(list382); - span148[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { Aetheryte = EAetheryteLocation.HeritageFoundElectropeStrike }; - span148[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013972u, new Vector3(-29.007446f, 71.42737f, 335.37793f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013972u, new Vector3(-29.007446f, 71.42737f, 335.37793f), 1191) { AetherCurrentId = 2818472u }; - span148[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.293804f, 59.430523f, 343.74417f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.293804f, 59.430523f, 343.74417f), 1191) { DisableNavmesh = true, Mount = true }; - span148[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.53459f, 24.70902f, 438.2853f), 1191); - ref QuestStep reference299 = ref span148[4]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.53459f, 24.70902f, 438.2853f), 1191); + index2++; + ref QuestStep reference299 = ref span3[index2]; QuestStep obj258 = new QuestStep(EInteractionType.Combat, 2013842u, new Vector3(-234.18024f, 11.520508f, 512.50464f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - CollectionsMarshal.AsSpan(list383)[0] = 17703u; + index3 = 1; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + span6 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span6[num3] = 17703u; obj258.KillEnemyDataIds = list383; reference299 = obj258; obj257.Steps = list382; reference298 = obj257; - ref QuestSequence reference300 = ref span146[6]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - Span span149 = CollectionsMarshal.AsSpan(list384); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.18622f, 12.447574f, 328.13486f), 1191); - span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + index2 = 2; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + span3 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.18622f, 12.447574f, 328.13486f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 4f }; @@ -344635,13 +415904,16 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list385); + index = 0; + span[index] = "liza"; questRoot41.Author = list385; - num = 5; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span150 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference301 = ref span150[0]; + index = 5; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + span2 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 @@ -344649,102 +415921,143 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + span3 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 4f }; obj260.Steps = list387; reference301 = obj260; - ref QuestSequence reference302 = ref span150[1]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span151 = CollectionsMarshal.AsSpan(list388); - ref QuestStep reference303 = ref span151[0]; + index2 = 7; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + span3 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + ref QuestStep reference303 = ref span3[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 2013843u, new Vector3(-541.1918f, 4.1657104f, 304.0664f), 1191); num3 = 6; List list389 = new List(num3); CollectionsMarshal.SetCount(list389, num3); - Span span152 = CollectionsMarshal.AsSpan(list389); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list389); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep42.CompletionQuestVariablesFlags = list389; reference303 = questStep42; - ref QuestStep reference304 = ref span151[1]; + num2++; + ref QuestStep reference304 = ref span3[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 2013844u, new Vector3(-556.9696f, 3.616333f, 330.6172f), 1191); - num3 = 6; - List list390 = new List(num3); - CollectionsMarshal.SetCount(list390, num3); - Span span153 = CollectionsMarshal.AsSpan(list390); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list390 = new List(index3); + CollectionsMarshal.SetCount(list390, index3); + span5 = CollectionsMarshal.AsSpan(list390); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep43.CompletionQuestVariablesFlags = list390; reference304 = questStep43; - span151[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013970u, new Vector3(-600.09155f, 2.2124634f, 267.4143f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013970u, new Vector3(-600.09155f, 2.2124634f, 267.4143f), 1191) { AetherCurrentId = 2818467u }; - span151[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.9605f, 0.31490707f, 239.41946f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.9605f, 0.31490707f, 239.41946f), 1191) { Mount = true }; - ref QuestStep reference305 = ref span151[4]; + num2++; + ref QuestStep reference305 = ref span3[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2013845u, new Vector3(-597.9553f, 0.6866455f, 231.15894f), 1191); num3 = 6; List list391 = new List(num3); CollectionsMarshal.SetCount(list391, num3); - Span span154 = CollectionsMarshal.AsSpan(list391); - span154[0] = null; - span154[1] = null; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list391); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep44.CompletionQuestVariablesFlags = list391; reference305 = questStep44; - ref QuestStep reference306 = ref span151[5]; + num2++; + ref QuestStep reference306 = ref span3[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2013846u, new Vector3(-607.72107f, 0.59503174f, 190.3562f), 1191); - num3 = 6; - List list392 = new List(num3); - CollectionsMarshal.SetCount(list392, num3); - Span span155 = CollectionsMarshal.AsSpan(list392); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list392 = new List(index3); + CollectionsMarshal.SetCount(list392, index3); + span5 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep45.CompletionQuestVariablesFlags = list392; reference306 = questStep45; - ref QuestStep reference307 = ref span151[6]; + num2++; + ref QuestStep reference307 = ref span3[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 2013847u, new Vector3(-516.7468f, 4.623413f, 196.27673f), 1191); num3 = 6; List list393 = new List(num3); CollectionsMarshal.SetCount(list393, num3); - Span span156 = CollectionsMarshal.AsSpan(list393); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list393); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep46.CompletionQuestVariablesFlags = list393; reference307 = questStep46; obj261.Steps = list388; reference302 = obj261; - ref QuestSequence reference308 = ref span150[2]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = 2 @@ -344752,26 +416065,32 @@ public static class AssemblyQuestLoader num2 = 2; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span157 = CollectionsMarshal.AsSpan(list394); - span157[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.54523f, 7.334528f, 325.33124f), 1191); - span157[1] = new QuestStep(EInteractionType.Interact, 1048111u, new Vector3(-466.91083f, 7.972903f, 313.71008f), 1191); + span3 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.54523f, 7.334528f, 325.33124f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048111u, new Vector3(-466.91083f, 7.972903f, 313.71008f), 1191); obj262.Steps = list394; reference308 = obj262; - ref QuestSequence reference309 = ref span150[3]; + num++; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + span3 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 5f }; obj263.Steps = list395; reference309 = obj263; - ref QuestSequence reference310 = ref span150[4]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -344779,7 +416098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191); + span3 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191); obj264.Steps = list396; reference310 = obj264; questRoot41.QuestSequence = list386; @@ -344789,27 +416110,33 @@ public static class AssemblyQuestLoader num = 1; List list397 = new List(num); CollectionsMarshal.SetCount(list397, num); - CollectionsMarshal.AsSpan(list397)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list397); + index = 0; + span[index] = "liza"; questRoot42.Author = list397; - num = 5; - List list398 = new List(num); - CollectionsMarshal.SetCount(list398, num); - Span span158 = CollectionsMarshal.AsSpan(list398); - ref QuestSequence reference311 = ref span158[0]; + index = 5; + List list398 = new List(index); + CollectionsMarshal.SetCount(list398, index); + span2 = CollectionsMarshal.AsSpan(list398); + num = 0; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048112u, new Vector3(-464.8051f, 8.080162f, 315.4497f), 1191) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048112u, new Vector3(-464.8051f, 8.080162f, 315.4497f), 1191) { StopDistance = 5f }; obj265.Steps = list399; reference311 = obj265; - ref QuestSequence reference312 = ref span158[1]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -344817,32 +416144,38 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191) + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191) { StopDistance = 5f }; obj266.Steps = list400; reference312 = obj266; - ref QuestSequence reference313 = ref span158[2]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - Span span159 = CollectionsMarshal.AsSpan(list401); - span159[0] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191) + index2 = 2; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191) { PickUpQuestId = new QuestId(5159) }; - span159[1] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.2030723f, -486.6255f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.2030723f, -486.6255f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj267.Steps = list401; reference313 = obj267; - ref QuestSequence reference314 = ref span158[3]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 3 @@ -344850,26 +416183,31 @@ public static class AssemblyQuestLoader num2 = 2; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span160 = CollectionsMarshal.AsSpan(list402); - span160[0] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) + span3 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) { PickUpQuestId = new QuestId(5156) }; - span160[1] = new QuestStep(EInteractionType.Interact, 1048116u, new Vector3(-296.71173f, 31.884527f, -671.77844f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048116u, new Vector3(-296.71173f, 31.884527f, -671.77844f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj268.Steps = list402; reference314 = obj268; - ref QuestSequence reference315 = ref span158[4]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list403 = new List(num2); - CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) + index2 = 1; + List list403 = new List(index2); + CollectionsMarshal.SetCount(list403, index2); + span3 = CollectionsMarshal.AsSpan(list403); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) { StopDistance = 7f }; @@ -344882,13 +416220,16 @@ public static class AssemblyQuestLoader num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - CollectionsMarshal.AsSpan(list404)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list404); + index = 0; + span[index] = "liza"; questRoot43.Author = list404; - num = 4; - List list405 = new List(num); - CollectionsMarshal.SetCount(list405, num); - Span span161 = CollectionsMarshal.AsSpan(list405); - ref QuestSequence reference316 = ref span161[0]; + index = 4; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + span2 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = 0 @@ -344896,24 +416237,30 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) { StopDistance = 7f }; obj270.Steps = list406; reference316 = obj270; - ref QuestSequence reference317 = ref span161[1]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); obj271.Steps = list407; reference317 = obj271; - ref QuestSequence reference318 = ref span161[2]; + num++; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 2 @@ -344921,27 +416268,33 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - ref QuestStep reference319 = ref CollectionsMarshal.AsSpan(list408)[0]; + span3 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + ref QuestStep reference319 = ref span3[index2]; QuestStep questStep47 = new QuestStep(EInteractionType.SinglePlayerDuty, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list409 = new List(num3); - CollectionsMarshal.SetCount(list409, num3); - CollectionsMarshal.AsSpan(list409)[0] = "(phase 1) Gets stuck in the wall while walking to the evacuee NPCs"; + index3 = 1; + List list409 = new List(index3); + CollectionsMarshal.SetCount(list409, index3); + span = CollectionsMarshal.AsSpan(list409); + num3 = 0; + span[num3] = "(phase 1) Gets stuck in the wall while walking to the evacuee NPCs"; singlePlayerDutyOptions.Notes = list409; questStep47.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 2; List list410 = new List(num3); CollectionsMarshal.SetCount(list410, num3); - Span span162 = CollectionsMarshal.AsSpan(list410); - span162[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list410); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(357u), Answer = new ExcelRef(358u) }; - span162[1] = new DialogueChoice + index3++; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -344952,15 +416305,18 @@ public static class AssemblyQuestLoader reference319 = questStep47; obj272.Steps = list408; reference318 = obj272; - ref QuestSequence reference320 = ref span161[3]; + num++; + ref QuestSequence reference320 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) { StopDistance = 5f }; @@ -344973,13 +416329,16 @@ public static class AssemblyQuestLoader num = 1; List list412 = new List(num); CollectionsMarshal.SetCount(list412, num); - CollectionsMarshal.AsSpan(list412)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list412); + index = 0; + span[index] = "liza"; questRoot44.Author = list412; - num = 6; - List list413 = new List(num); - CollectionsMarshal.SetCount(list413, num); - Span span163 = CollectionsMarshal.AsSpan(list413); - ref QuestSequence reference321 = ref span163[0]; + index = 6; + List list413 = new List(index); + CollectionsMarshal.SetCount(list413, index); + span2 = CollectionsMarshal.AsSpan(list413); + num = 0; + ref QuestSequence reference321 = ref span2[num]; QuestSequence obj274 = new QuestSequence { Sequence = 0 @@ -344987,66 +416346,91 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) + span3 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) { StopDistance = 5f }; obj274.Steps = list414; reference321 = obj274; - ref QuestSequence reference322 = ref span163[1]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - Span span164 = CollectionsMarshal.AsSpan(list415); - ref QuestStep reference323 = ref span164[0]; + index2 = 3; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + span3 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + ref QuestStep reference323 = ref span3[num2]; QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 1048126u, new Vector3(371.4198f, 50.75f, 185.19873f), 1186); - num3 = 6; - List list416 = new List(num3); - CollectionsMarshal.SetCount(list416, num3); - Span span165 = CollectionsMarshal.AsSpan(list416); - span165[0] = null; - span165[1] = null; - span165[2] = null; - span165[3] = null; - span165[4] = null; - span165[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list416 = new List(index3); + CollectionsMarshal.SetCount(list416, index3); + span5 = CollectionsMarshal.AsSpan(list416); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep48.CompletionQuestVariablesFlags = list416; reference323 = questStep48; - ref QuestStep reference324 = ref span164[1]; + num2++; + ref QuestStep reference324 = ref span3[num2]; QuestStep questStep49 = new QuestStep(EInteractionType.Interact, 1048127u, new Vector3(373.73914f, 50.749996f, 235.40088f), 1186); num3 = 6; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - Span span166 = CollectionsMarshal.AsSpan(list417); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep49.CompletionQuestVariablesFlags = list417; reference324 = questStep49; - ref QuestStep reference325 = ref span164[2]; + num2++; + ref QuestStep reference325 = ref span3[num2]; QuestStep questStep50 = new QuestStep(EInteractionType.Interact, 1048128u, new Vector3(339.22327f, 52.212578f, 186.57202f), 1186); - num3 = 6; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - Span span167 = CollectionsMarshal.AsSpan(list418); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list418 = new List(index3); + CollectionsMarshal.SetCount(list418, index3); + span5 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep50.CompletionQuestVariablesFlags = list418; reference325 = questStep50; obj275.Steps = list415; reference322 = obj275; - ref QuestSequence reference326 = ref span163[2]; + num++; + ref QuestSequence reference326 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 2 @@ -345054,29 +416438,35 @@ public static class AssemblyQuestLoader num2 = 2; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span168 = CollectionsMarshal.AsSpan(list419); - span168[0] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + span3 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207 }; - span168[1] = new QuestStep(EInteractionType.Interact, 1048129u, new Vector3(0.045776367f, -3.0733645E-08f, 5.5389404f), 1207) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048129u, new Vector3(0.045776367f, -3.0733645E-08f, 5.5389404f), 1207) { StopDistance = 7f }; obj276.Steps = list419; reference326 = obj276; - ref QuestSequence reference327 = ref span163[3]; + num++; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1048131u, new Vector3(-12.9244995f, 0f, 2.8533936f), 1207); + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + span3 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048131u, new Vector3(-12.9244995f, 0f, 2.8533936f), 1207); obj277.Steps = list420; reference327 = obj277; - ref QuestSequence reference328 = ref span163[4]; + num++; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 4 @@ -345084,18 +416474,23 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.Interact, 1048133u, new Vector3(-9.87262f, 0f, 4.257263f), 1207); + span3 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048133u, new Vector3(-9.87262f, 0f, 4.257263f), 1207); obj278.Steps = list421; reference328 = obj278; - ref QuestSequence reference329 = ref span163[5]; + num++; + ref QuestSequence reference329 = ref span2[num]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) + index2 = 1; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + span3 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) { StopDistance = 5f }; @@ -345108,13 +416503,16 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - CollectionsMarshal.AsSpan(list423)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list423); + index = 0; + span[index] = "liza"; questRoot45.Author = list423; - num = 3; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - Span span169 = CollectionsMarshal.AsSpan(list424); - ref QuestSequence reference330 = ref span169[0]; + index = 3; + List list424 = new List(index); + CollectionsMarshal.SetCount(list424, index); + span2 = CollectionsMarshal.AsSpan(list424); + num = 0; + ref QuestSequence reference330 = ref span2[num]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -345122,27 +416520,33 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) + span3 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) { StopDistance = 5f }; obj280.Steps = list425; reference330 = obj280; - ref QuestSequence reference331 = ref span169[1]; + num++; + ref QuestSequence reference331 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.Interact, 1048134u, new Vector3(-2.9450073f, -0.44999987f, 2.1820068f), 1207) + index2 = 1; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + span3 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048134u, new Vector3(-2.9450073f, -0.44999987f, 2.1820068f), 1207) { StopDistance = 5f }; obj281.Steps = list426; reference331 = obj281; - ref QuestSequence reference332 = ref span169[2]; + num++; + ref QuestSequence reference332 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue @@ -345150,7 +416554,9 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191) + span3 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -345163,24 +416569,30 @@ public static class AssemblyQuestLoader num = 1; List list428 = new List(num); CollectionsMarshal.SetCount(list428, num); - CollectionsMarshal.AsSpan(list428)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list428); + index = 0; + span[index] = "liza"; questRoot46.Author = list428; - num = 9; - List list429 = new List(num); - CollectionsMarshal.SetCount(list429, num); - Span span170 = CollectionsMarshal.AsSpan(list429); - ref QuestSequence reference333 = ref span170[0]; + index = 9; + List list429 = new List(index); + CollectionsMarshal.SetCount(list429, index); + span2 = CollectionsMarshal.AsSpan(list429); + num = 0; + ref QuestSequence reference333 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191); + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + span3 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191); obj283.Steps = list430; reference333 = obj283; - ref QuestSequence reference334 = ref span170[1]; + num++; + ref QuestSequence reference334 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 1 @@ -345188,23 +416600,28 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span171 = CollectionsMarshal.AsSpan(list431); - span171[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-294.07196f, 44.504536f, -800.55725f), 1191); - span171[1] = new QuestStep(EInteractionType.Interact, 1048140u, new Vector3(-609.8878f, -13.387644f, -565.48413f), 1191) + span3 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-294.07196f, 44.504536f, -800.55725f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048140u, new Vector3(-609.8878f, -13.387644f, -565.48413f), 1191) { Fly = true }; obj284.Steps = list431; reference334 = obj284; - ref QuestSequence reference335 = ref span170[2]; + num++; + ref QuestSequence reference335 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.Duty, null, null, 1191) + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + span3 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1191) { DutyOptions = new DutyOptions { @@ -345214,11 +416631,13 @@ public static class AssemblyQuestLoader }; obj285.Steps = list432; reference335 = obj285; - span170[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference336 = ref span170[4]; + num++; + ref QuestSequence reference336 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 4 @@ -345226,7 +416645,9 @@ public static class AssemblyQuestLoader num2 = 1; List list433 = new List(num2); CollectionsMarshal.SetCount(list433, num2); - ref QuestStep reference337 = ref CollectionsMarshal.AsSpan(list433)[0]; + span3 = CollectionsMarshal.AsSpan(list433); + index2 = 0; + ref QuestStep reference337 = ref span3[index2]; QuestStep questStep51 = new QuestStep(EInteractionType.Duty, null, null, 1220); DutyOptions obj287 = new DutyOptions { @@ -345235,31 +416656,38 @@ public static class AssemblyQuestLoader num3 = 1; List list434 = new List(num3); CollectionsMarshal.SetCount(list434, num3); - CollectionsMarshal.AsSpan(list434)[0] = "No VBM module"; + span = CollectionsMarshal.AsSpan(list434); + index3 = 0; + span[index3] = "No VBM module"; obj287.Notes = list434; questStep51.DutyOptions = obj287; reference337 = questStep51; obj286.Steps = list433; reference336 = obj286; - span170[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference338 = ref span170[6]; + num++; + ref QuestSequence reference338 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list435 = new List(num2); - CollectionsMarshal.SetCount(list435, num2); - CollectionsMarshal.AsSpan(list435)[0] = new QuestStep(EInteractionType.Interact, 1048183u, new Vector3(97.45935f, 0f, 107.2251f), 1220) + index2 = 1; + List list435 = new List(index2); + CollectionsMarshal.SetCount(list435, index2); + span3 = CollectionsMarshal.AsSpan(list435); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048183u, new Vector3(97.45935f, 0f, 107.2251f), 1220) { StopDistance = 5f }; obj288.Steps = list435; reference338 = obj288; - ref QuestSequence reference339 = ref span170[7]; + num++; + ref QuestSequence reference339 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = 7 @@ -345267,21 +416695,26 @@ public static class AssemblyQuestLoader num2 = 1; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.Interact, 1048156u, new Vector3(104.57007f, 0f, 105.79077f), 1220) + span3 = CollectionsMarshal.AsSpan(list436); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048156u, new Vector3(104.57007f, 0f, 105.79077f), 1220) { StopDistance = 6f }; obj289.Steps = list436; reference339 = obj289; - ref QuestSequence reference340 = ref span170[8]; + num++; + ref QuestSequence reference340 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + span3 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); obj290.Steps = list437; reference340 = obj290; questRoot46.QuestSequence = list429; @@ -345291,13 +416724,16 @@ public static class AssemblyQuestLoader num = 1; List list438 = new List(num); CollectionsMarshal.SetCount(list438, num); - CollectionsMarshal.AsSpan(list438)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list438); + index = 0; + span[index] = "liza"; questRoot47.Author = list438; - num = 7; - List list439 = new List(num); - CollectionsMarshal.SetCount(list439, num); - Span span172 = CollectionsMarshal.AsSpan(list439); - ref QuestSequence reference341 = ref span172[0]; + index = 7; + List list439 = new List(index); + CollectionsMarshal.SetCount(list439, index); + span2 = CollectionsMarshal.AsSpan(list439); + num = 0; + ref QuestSequence reference341 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -345305,18 +416741,23 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); + span3 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); obj291.Steps = list440; reference341 = obj291; - ref QuestSequence reference342 = ref span172[1]; + num++; + ref QuestSequence reference342 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - CollectionsMarshal.AsSpan(list441)[0] = new QuestStep(EInteractionType.Interact, 2013767u, new Vector3(-99.321045f, 99.99231f, -193.89642f), 1185) + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + span3 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013767u, new Vector3(-99.321045f, 99.99231f, -193.89642f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -345327,7 +416768,8 @@ public static class AssemblyQuestLoader }; obj292.Steps = list441; reference342 = obj292; - ref QuestSequence reference343 = ref span172[2]; + num++; + ref QuestSequence reference343 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -345335,21 +416777,27 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1047794u, new Vector3(-32.974792f, 95.5f, -79.02649f), 1185); + span3 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047794u, new Vector3(-32.974792f, 95.5f, -79.02649f), 1185); obj293.Steps = list442; reference343 = obj293; - ref QuestSequence reference344 = ref span172[3]; + num++; + ref QuestSequence reference344 = ref span2[num]; QuestSequence obj294 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1047797u, new Vector3(120.10376f, 47f, -129.38129f), 1185); + index2 = 1; + List list443 = new List(index2); + CollectionsMarshal.SetCount(list443, index2); + span3 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047797u, new Vector3(120.10376f, 47f, -129.38129f), 1185); obj294.Steps = list443; reference344 = obj294; - ref QuestSequence reference345 = ref span172[4]; + num++; + ref QuestSequence reference345 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 4 @@ -345357,21 +416805,27 @@ public static class AssemblyQuestLoader num2 = 1; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - CollectionsMarshal.AsSpan(list444)[0] = new QuestStep(EInteractionType.Interact, 1047800u, new Vector3(42.038574f, 46.999996f, -290.15033f), 1185); + span3 = CollectionsMarshal.AsSpan(list444); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047800u, new Vector3(42.038574f, 46.999996f, -290.15033f), 1185); obj295.Steps = list444; reference345 = obj295; - ref QuestSequence reference346 = ref span172[5]; + num++; + ref QuestSequence reference346 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list445 = new List(num2); - CollectionsMarshal.SetCount(list445, num2); - CollectionsMarshal.AsSpan(list445)[0] = new QuestStep(EInteractionType.Interact, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); + index2 = 1; + List list445 = new List(index2); + CollectionsMarshal.SetCount(list445, index2); + span3 = CollectionsMarshal.AsSpan(list445); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); obj296.Steps = list445; reference346 = obj296; - ref QuestSequence reference347 = ref span172[6]; + num++; + ref QuestSequence reference347 = ref span2[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue @@ -345379,7 +416833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list446 = new List(num2); CollectionsMarshal.SetCount(list446, num2); - CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); + span3 = CollectionsMarshal.AsSpan(list446); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); obj297.Steps = list446; reference347 = obj297; questRoot47.QuestSequence = list439; @@ -345389,24 +416845,30 @@ public static class AssemblyQuestLoader num = 1; List list447 = new List(num); CollectionsMarshal.SetCount(list447, num); - CollectionsMarshal.AsSpan(list447)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list447); + index = 0; + span[index] = "liza"; questRoot48.Author = list447; - num = 3; - List list448 = new List(num); - CollectionsMarshal.SetCount(list448, num); - Span span173 = CollectionsMarshal.AsSpan(list448); - ref QuestSequence reference348 = ref span173[0]; + index = 3; + List list448 = new List(index); + CollectionsMarshal.SetCount(list448, index); + span2 = CollectionsMarshal.AsSpan(list448); + num = 0; + ref QuestSequence reference348 = ref span2[num]; QuestSequence obj298 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list449 = new List(num2); - CollectionsMarshal.SetCount(list449, num2); - CollectionsMarshal.AsSpan(list449)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047804u, new Vector3(121.66016f, 42f, -343.0686f), 1185); + index2 = 1; + List list449 = new List(index2); + CollectionsMarshal.SetCount(list449, index2); + span3 = CollectionsMarshal.AsSpan(list449); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047804u, new Vector3(121.66016f, 42f, -343.0686f), 1185); obj298.Steps = list449; reference348 = obj298; - ref QuestSequence reference349 = ref span173[1]; + num++; + ref QuestSequence reference349 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 1 @@ -345414,21 +416876,26 @@ public static class AssemblyQuestLoader num2 = 1; List list450 = new List(num2); CollectionsMarshal.SetCount(list450, num2); - CollectionsMarshal.AsSpan(list450)[0] = new QuestStep(EInteractionType.Interact, 1047806u, new Vector3(-179.55298f, 120.75f, -332.87555f), 1185) + span3 = CollectionsMarshal.AsSpan(list450); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047806u, new Vector3(-179.55298f, 120.75f, -332.87555f), 1185) { StopDistance = 7f }; obj299.Steps = list450; reference349 = obj299; - ref QuestSequence reference350 = ref span173[2]; + num++; + ref QuestSequence reference350 = ref span2[num]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list451 = new List(num2); - CollectionsMarshal.SetCount(list451, num2); - CollectionsMarshal.AsSpan(list451)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047809u, new Vector3(-47.56244f, -10.00001f, 97.21521f), 1185) + index2 = 1; + List list451 = new List(index2); + CollectionsMarshal.SetCount(list451, index2); + span3 = CollectionsMarshal.AsSpan(list451); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047809u, new Vector3(-47.56244f, -10.00001f, 97.21521f), 1185) { Comment = "Stops at the place where you can buy Lv99 gear", AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -345447,13 +416914,16 @@ public static class AssemblyQuestLoader num = 1; List list452 = new List(num); CollectionsMarshal.SetCount(list452, num); - CollectionsMarshal.AsSpan(list452)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list452); + index = 0; + span[index] = "liza"; questRoot49.Author = list452; - num = 9; - List list453 = new List(num); - CollectionsMarshal.SetCount(list453, num); - Span span174 = CollectionsMarshal.AsSpan(list453); - ref QuestSequence reference351 = ref span174[0]; + index = 9; + List list453 = new List(index); + CollectionsMarshal.SetCount(list453, index); + span2 = CollectionsMarshal.AsSpan(list453); + num = 0; + ref QuestSequence reference351 = ref span2[num]; QuestSequence obj301 = new QuestSequence { Sequence = 0 @@ -345461,19 +416931,23 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047810u, new Vector3(-47.470886f, -10.00001f, 98.649536f), 1185); + span3 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047810u, new Vector3(-47.470886f, -10.00001f, 98.649536f), 1185); obj301.Steps = list454; reference351 = obj301; - ref QuestSequence reference352 = ref span174[1]; + num++; + ref QuestSequence reference352 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - Span span175 = CollectionsMarshal.AsSpan(list455); - ref QuestStep reference353 = ref span175[0]; + index2 = 3; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + span3 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + ref QuestStep reference353 = ref span3[num2]; QuestStep obj303 = new QuestStep(EInteractionType.Interact, 1048029u, new Vector3(-711.1162f, -199.5873f, 624.1703f), 1189) { StopDistance = 5f, @@ -345487,10 +416961,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list456 = new List(num3); - CollectionsMarshal.SetCount(list456, num3); - CollectionsMarshal.AsSpan(list456)[0] = new DialogueChoice + index3 = 1; + List list456 = new List(index3); + CollectionsMarshal.SetCount(list456, index3); + span4 = CollectionsMarshal.AsSpan(list456); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "EventPathMove", @@ -345498,7 +416974,8 @@ public static class AssemblyQuestLoader }; obj303.DialogueChoices = list456; reference353 = obj303; - span175[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.30396f, -153.01865f, 529.2467f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.30396f, -153.01865f, 529.2467f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -345509,17 +416986,20 @@ public static class AssemblyQuestLoader } } }; - span175[2] = new QuestStep(EInteractionType.Interact, 1047813u, new Vector3(-826.32184f, -297.8752f, 875.15063f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047813u, new Vector3(-826.32184f, -297.8752f, 875.15063f), 1189) { Fly = true }; obj302.Steps = list455; reference352 = obj302; - span174[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference354 = ref span174[3]; + num++; + ref QuestSequence reference354 = ref span2[num]; QuestSequence obj304 = new QuestSequence { Sequence = 3 @@ -345527,32 +417007,39 @@ public static class AssemblyQuestLoader num2 = 1; List list457 = new List(num2); CollectionsMarshal.SetCount(list457, num2); - CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1047818u, new Vector3(-0.9918823f, 0.20000042f, -51.499268f), 1222) + span3 = CollectionsMarshal.AsSpan(list457); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047818u, new Vector3(-0.9918823f, 0.20000042f, -51.499268f), 1222) { StopDistance = 7f }; obj304.Steps = list457; reference354 = obj304; - span174[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference355 = ref span174[5]; + num++; + ref QuestSequence reference355 = ref span2[num]; QuestSequence obj305 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list458 = new List(num2); - CollectionsMarshal.SetCount(list458, num2); - CollectionsMarshal.AsSpan(list458)[0] = new QuestStep(EInteractionType.Interact, 1047829u, new Vector3(-0.13739014f, 105.00008f, 848.7831f), 1192) + index2 = 1; + List list458 = new List(index2); + CollectionsMarshal.SetCount(list458, index2); + span3 = CollectionsMarshal.AsSpan(list458); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047829u, new Vector3(-0.13739014f, 105.00008f, 848.7831f), 1192) { StopDistance = 7f, DisableNavmesh = true }; obj305.Steps = list458; reference355 = obj305; - ref QuestSequence reference356 = ref span174[6]; + num++; + ref QuestSequence reference356 = ref span2[num]; QuestSequence obj306 = new QuestSequence { Sequence = 6 @@ -345560,28 +417047,35 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1047833u, new Vector3(-26.657532f, 53.200012f, 794.67444f), 1192); + span3 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047833u, new Vector3(-26.657532f, 53.200012f, 794.67444f), 1192); obj306.Steps = list459; reference356 = obj306; - ref QuestSequence reference357 = ref span174[7]; + num++; + ref QuestSequence reference357 = ref span2[num]; QuestSequence obj307 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list460 = new List(num2); - CollectionsMarshal.SetCount(list460, num2); - Span span176 = CollectionsMarshal.AsSpan(list460); - span176[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + index2 = 3; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + span3 = CollectionsMarshal.AsSpan(list460); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - span176[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192); - span176[2] = new QuestStep(EInteractionType.Interact, 1047837u, new Vector3(-0.045776367f, 50.124947f, 365.16357f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047837u, new Vector3(-0.045776367f, 50.124947f, 365.16357f), 1192); obj307.Steps = list460; reference357 = obj307; - ref QuestSequence reference358 = ref span174[8]; + num++; + ref QuestSequence reference358 = ref span2[num]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue @@ -345589,7 +417083,9 @@ public static class AssemblyQuestLoader num2 = 1; List list461 = new List(num2); CollectionsMarshal.SetCount(list461, num2); - CollectionsMarshal.AsSpan(list461)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) + span3 = CollectionsMarshal.AsSpan(list461); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) { StopDistance = 7f }; @@ -345602,27 +417098,33 @@ public static class AssemblyQuestLoader num = 1; List list462 = new List(num); CollectionsMarshal.SetCount(list462, num); - CollectionsMarshal.AsSpan(list462)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list462); + index = 0; + span[index] = "liza"; questRoot50.Author = list462; - num = 7; - List list463 = new List(num); - CollectionsMarshal.SetCount(list463, num); - Span span177 = CollectionsMarshal.AsSpan(list463); - ref QuestSequence reference359 = ref span177[0]; + index = 7; + List list463 = new List(index); + CollectionsMarshal.SetCount(list463, index); + span2 = CollectionsMarshal.AsSpan(list463); + num = 0; + ref QuestSequence reference359 = ref span2[num]; QuestSequence obj309 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list464 = new List(num2); - CollectionsMarshal.SetCount(list464, num2); - CollectionsMarshal.AsSpan(list464)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) + index2 = 1; + List list464 = new List(index2); + CollectionsMarshal.SetCount(list464, index2); + span3 = CollectionsMarshal.AsSpan(list464); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) { StopDistance = 7f }; obj309.Steps = list464; reference359 = obj309; - ref QuestSequence reference360 = ref span177[1]; + num++; + ref QuestSequence reference360 = ref span2[num]; QuestSequence obj310 = new QuestSequence { Sequence = 1 @@ -345630,24 +417132,30 @@ public static class AssemblyQuestLoader num2 = 1; List list465 = new List(num2); CollectionsMarshal.SetCount(list465, num2); - CollectionsMarshal.AsSpan(list465)[0] = new QuestStep(EInteractionType.Interact, 2013770u, new Vector3(-0.045776367f, 53.177612f, 772.8236f), 1192) + span3 = CollectionsMarshal.AsSpan(list465); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013770u, new Vector3(-0.045776367f, 53.177612f, 772.8236f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj310.Steps = list465; reference360 = obj310; - ref QuestSequence reference361 = ref span177[2]; + num++; + ref QuestSequence reference361 = ref span2[num]; QuestSequence obj311 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list466 = new List(num2); - CollectionsMarshal.SetCount(list466, num2); - CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.Interact, 1047850u, new Vector3(-36.30127f, 53.200012f, 753.56665f), 1192); + index2 = 1; + List list466 = new List(index2); + CollectionsMarshal.SetCount(list466, index2); + span3 = CollectionsMarshal.AsSpan(list466); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047850u, new Vector3(-36.30127f, 53.200012f, 753.56665f), 1192); obj311.Steps = list466; reference361 = obj311; - ref QuestSequence reference362 = ref span177[3]; + num++; + ref QuestSequence reference362 = ref span2[num]; QuestSequence obj312 = new QuestSequence { Sequence = 3 @@ -345655,66 +417163,91 @@ public static class AssemblyQuestLoader num2 = 1; List list467 = new List(num2); CollectionsMarshal.SetCount(list467, num2); - CollectionsMarshal.AsSpan(list467)[0] = new QuestStep(EInteractionType.Interact, 1047855u, new Vector3(-131.12079f, 6.380001f, 551.75085f), 1192) + span3 = CollectionsMarshal.AsSpan(list467); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047855u, new Vector3(-131.12079f, 6.380001f, 551.75085f), 1192) { StopDistance = 6f }; obj312.Steps = list467; reference362 = obj312; - ref QuestSequence reference363 = ref span177[4]; + num++; + ref QuestSequence reference363 = ref span2[num]; QuestSequence obj313 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list468 = new List(num2); - CollectionsMarshal.SetCount(list468, num2); - Span span178 = CollectionsMarshal.AsSpan(list468); - ref QuestStep reference364 = ref span178[0]; + index2 = 3; + List list468 = new List(index2); + CollectionsMarshal.SetCount(list468, index2); + span3 = CollectionsMarshal.AsSpan(list468); + num2 = 0; + ref QuestStep reference364 = ref span3[num2]; QuestStep questStep52 = new QuestStep(EInteractionType.Interact, 1047860u, new Vector3(-194.75098f, 0.049999997f, 532.1278f), 1192); num3 = 6; List list469 = new List(num3); CollectionsMarshal.SetCount(list469, num3); - Span span179 = CollectionsMarshal.AsSpan(list469); - span179[0] = null; - span179[1] = null; - span179[2] = null; - span179[3] = null; - span179[4] = null; - span179[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list469); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep52.CompletionQuestVariablesFlags = list469; reference364 = questStep52; - ref QuestStep reference365 = ref span178[1]; + num2++; + ref QuestStep reference365 = ref span3[num2]; QuestStep questStep53 = new QuestStep(EInteractionType.Interact, 1047861u, new Vector3(-205.52374f, 6.4019995f, 555.01636f), 1192); - num3 = 6; - List list470 = new List(num3); - CollectionsMarshal.SetCount(list470, num3); - Span span180 = CollectionsMarshal.AsSpan(list470); - span180[0] = null; - span180[1] = null; - span180[2] = null; - span180[3] = null; - span180[4] = null; - span180[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list470 = new List(index3); + CollectionsMarshal.SetCount(list470, index3); + span5 = CollectionsMarshal.AsSpan(list470); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep53.CompletionQuestVariablesFlags = list470; reference365 = questStep53; - ref QuestStep reference366 = ref span178[2]; + num2++; + ref QuestStep reference366 = ref span3[num2]; QuestStep questStep54 = new QuestStep(EInteractionType.Interact, 1047862u, new Vector3(-183.73395f, 0.049998913f, 580.8651f), 1192); num3 = 6; List list471 = new List(num3); CollectionsMarshal.SetCount(list471, num3); - Span span181 = CollectionsMarshal.AsSpan(list471); - span181[0] = null; - span181[1] = null; - span181[2] = null; - span181[3] = null; - span181[4] = null; - span181[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list471); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep54.CompletionQuestVariablesFlags = list471; reference366 = questStep54; obj313.Steps = list468; reference363 = obj313; - ref QuestSequence reference367 = ref span177[5]; + num++; + ref QuestSequence reference367 = ref span2[num]; QuestSequence obj314 = new QuestSequence { Sequence = 5 @@ -345722,23 +417255,28 @@ public static class AssemblyQuestLoader num2 = 2; List list472 = new List(num2); CollectionsMarshal.SetCount(list472, num2); - Span span182 = CollectionsMarshal.AsSpan(list472); - span182[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.35655f, 0f, 606.5711f), 1192); - span182[1] = new QuestStep(EInteractionType.Interact, 1047868u, new Vector3(-183.18463f, -6.346533E-12f, 606.71387f), 1192) + span3 = CollectionsMarshal.AsSpan(list472); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.35655f, 0f, 606.5711f), 1192); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047868u, new Vector3(-183.18463f, -6.346533E-12f, 606.71387f), 1192) { StopDistance = 5f }; obj314.Steps = list472; reference367 = obj314; - ref QuestSequence reference368 = ref span177[6]; + num++; + ref QuestSequence reference368 = ref span2[num]; QuestSequence obj315 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list473 = new List(num2); - CollectionsMarshal.SetCount(list473, num2); - CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); + index2 = 1; + List list473 = new List(index2); + CollectionsMarshal.SetCount(list473, index2); + span3 = CollectionsMarshal.AsSpan(list473); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); obj315.Steps = list473; reference368 = obj315; questRoot50.QuestSequence = list463; @@ -345752,13 +417290,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 11; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 11; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -345766,21 +417307,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -345788,7 +417335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2013771u, new Vector3(-270.924f, -0.015319824f, 610.7423f), 1192) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -345796,23 +417345,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 17704u; + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = 17704u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -345820,24 +417375,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1047871u, new Vector3(-289.78418f, 0.049857892f, 523.9795f), 1192); + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047871u, new Vector3(-289.78418f, 0.049857892f, 523.9795f), 1192); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1047873u, new Vector3(-570.428f, 0.05000001f, 498.46643f), 1192) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + span3 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047873u, new Vector3(-570.428f, 0.05000001f, 498.46643f), 1192) { StopDistance = 5f }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 6 @@ -345845,56 +417406,76 @@ public static class AssemblyQuestLoader num2 = 4; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span2 = CollectionsMarshal.AsSpan(list10); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-528.32446f, 6.402005f, 525.08594f), 1192); - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-479.25574f, 6.4020014f, 586.5792f), 1192); - span2[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013976u, new Vector3(-516.6858f, 0.045776367f, 680.99475f), 1192) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-528.32446f, 6.402005f, 525.08594f), 1192); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-479.25574f, 6.4020014f, 586.5792f), 1192); + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013976u, new Vector3(-516.6858f, 0.045776367f, 680.99475f), 1192) { AetherCurrentId = 2818483u }; - span2[3] = new QuestStep(EInteractionType.Interact, 1047874u, new Vector3(-440.0855f, -0.81529194f, 458.4878f), 1192); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047874u, new Vector3(-440.0855f, -0.81529194f, 458.4878f), 1192); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[7]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference10 = ref span3[0]; + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference10 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013773u, new Vector3(-433.43256f, 1.3580322f, 500.2975f), 1192); - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span5 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list12; reference10 = questStep; - ref QuestStep reference11 = ref span3[1]; + num2++; + ref QuestStep reference11 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2013772u, new Vector3(-409.35382f, 1.3884888f, 487.29688f), 1192); num3 = 6; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span5 = CollectionsMarshal.AsSpan(list13); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list13); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list13; reference11 = questStep2; obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference12 = ref span[8]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 8 @@ -345902,30 +417483,39 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1047876u, new Vector3(-441.48932f, -0.8153026f, 459.1897f), 1192); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047876u, new Vector3(-441.48932f, -0.8153026f, 459.1897f), 1192); obj10.Steps = list14; reference12 = obj10; - ref QuestSequence reference13 = ref span[9]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 9 }; - num2 = 4; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.8012f, 0.028711677f, 490.62888f), 1192); - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-674.08075f, 0.092562795f, 451.85648f), 1192); - span6[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013974u, new Vector3(-698.8785f, 0.99176025f, 472.00732f), 1192) + index2 = 4; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.8012f, 0.028711677f, 490.62888f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-674.08075f, 0.092562795f, 451.85648f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013974u, new Vector3(-698.8785f, 0.99176025f, 472.00732f), 1192) { AetherCurrentId = 2818479u }; - ref QuestStep reference14 = ref span6[3]; + num2++; + ref QuestStep reference14 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span6 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF105_04950_SYSTEM_000_197") @@ -345934,7 +417524,8 @@ public static class AssemblyQuestLoader reference14 = questStep3; obj11.Steps = list15; reference13 = obj11; - ref QuestSequence reference15 = ref span[10]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -345942,7 +417533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192) { StopDistance = 5f }; @@ -345955,27 +417548,33 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "liza"; questRoot2.Author = list18; - num = 7; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference16 = ref span7[0]; + index = 7; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047883u, new Vector3(-701.16736f, 14.900001f, 312.42847f), 1192) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047883u, new Vector3(-701.16736f, 14.900001f, 312.42847f), 1192) { StopDistance = 7f }; obj13.Steps = list20; reference16 = obj13; - ref QuestSequence reference17 = ref span7[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -345983,71 +417582,96 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span8 = CollectionsMarshal.AsSpan(list21); - span8[0] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192) + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192) { PickUpQuestId = new QuestId(5174) }; - span8[1] = new QuestStep(EInteractionType.Interact, 1047884u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047884u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj14.Steps = list21; reference17 = obj14; - ref QuestSequence reference18 = ref span7[2]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span9 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference19 = ref span9[0]; + index2 = 3; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2013775u, new Vector3(260.88342f, 1.9683228f, 671.1986f), 1192); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span10 = CollectionsMarshal.AsSpan(list23); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list23; reference19 = questStep4; - ref QuestStep reference20 = ref span9[1]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2013774u, new Vector3(268.36035f, -0.7477417f, 628.1376f), 1192); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span11 = CollectionsMarshal.AsSpan(list24); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + span5 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list24; reference20 = questStep5; - ref QuestStep reference21 = ref span9[2]; + num2++; + ref QuestStep reference21 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1047889u, new Vector3(243.18298f, 0.10920419f, 602.8076f), 1192); num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span12 = CollectionsMarshal.AsSpan(list25); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list25; reference21 = questStep6; obj15.Steps = list22; reference18 = obj15; - ref QuestSequence reference22 = ref span7[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -346055,37 +417679,45 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 2013776u, new Vector3(304.95142f, -0.015319824f, 608.02625f), 1192); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013776u, new Vector3(304.95142f, -0.015319824f, 608.02625f), 1192); obj16.Steps = list26; reference22 = obj16; - ref QuestSequence reference23 = ref span7[4]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013977u, new Vector3(232.349f, -0.015319824f, 544.4877f), 1192) + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013977u, new Vector3(232.349f, -0.015319824f, 544.4877f), 1192) { AetherCurrentId = 2818484u }; - ref QuestStep reference24 = ref span13[1]; + num2++; + ref QuestStep reference24 = ref span3[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(383.26807f, -0.106494784f, 551.68506f), 1192) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 17705u; + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span4[num3] = 17705u; obj18.KillEnemyDataIds = list28; reference24 = obj18; obj17.Steps = list27; reference23 = obj17; - ref QuestSequence reference25 = ref span7[5]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -346093,21 +417725,26 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1047891u, new Vector3(381.39917f, -0.1618917f, 557.6714f), 1192) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047891u, new Vector3(381.39917f, -0.1618917f, 557.6714f), 1192) { StopDistance = 7f }; obj19.Steps = list29; reference25 = obj19; - ref QuestSequence reference26 = ref span7[6]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) { StopDistance = 7f }; @@ -346120,13 +417757,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; questRoot3.Author = list31; - num = 8; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span14 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference27 = ref span14[0]; + index = 8; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -346134,26 +417774,32 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) { StopDistance = 7f }; obj21.Steps = list33; reference27 = obj21; - ref QuestSequence reference28 = ref span14[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.8642f, 10.611866f, 322.41876f), 1192); - span15[1] = new QuestStep(EInteractionType.Interact, 1047899u, new Vector3(354.63477f, 23.427383f, 397.63477f), 1192); + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.8642f, 10.611866f, 322.41876f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047899u, new Vector3(354.63477f, 23.427383f, 397.63477f), 1192); obj22.Steps = list34; reference28 = obj22; - ref QuestSequence reference29 = ref span14[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -346161,109 +417807,155 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); obj23.Steps = list35; reference29 = obj23; - ref QuestSequence reference30 = ref span14[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 6; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference31 = ref span16[0]; + index2 = 6; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference31 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1047905u, new Vector3(390.4325f, 23.42738f, 398.76404f), 1192); num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list37; reference31 = questStep7; - ref QuestStep reference32 = ref span16[1]; + num2++; + ref QuestStep reference32 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1047902u, new Vector3(365.9265f, 22.685093f, 359.21265f), 1192); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list38; reference32 = questStep8; - ref QuestStep reference33 = ref span16[2]; + num2++; + ref QuestStep reference33 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1047903u, new Vector3(331.92944f, 22.684782f, 325.2461f), 1192); num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list39; reference33 = questStep9; - ref QuestStep reference34 = ref span16[3]; + num2++; + ref QuestStep reference34 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1047901u, new Vector3(316.15173f, 22.64806f, 399.89307f), 1192); - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span20 = CollectionsMarshal.AsSpan(list40); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + span5 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list40; reference34 = questStep10; - ref QuestStep reference35 = ref span16[4]; + num2++; + ref QuestStep reference35 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(367.99225f, 58.0012f, 409.66818f), 1192); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span21 = CollectionsMarshal.AsSpan(list41); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list41; skipConditions.StepIf = skipStepConditions; questStep11.SkipConditions = skipConditions; reference35 = questStep11; - ref QuestStep reference36 = ref span16[5]; + num2++; + ref QuestStep reference36 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1047904u, new Vector3(346.66968f, 58.000057f, 391.6228f), 1192); - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span22 = CollectionsMarshal.AsSpan(list42); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + span5 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list42; reference36 = questStep12; obj24.Steps = list36; reference30 = obj24; - ref QuestSequence reference37 = ref span14[4]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -346271,26 +417963,32 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); obj25.Steps = list43; reference37 = obj25; - ref QuestSequence reference38 = ref span14[5]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span23 = CollectionsMarshal.AsSpan(list44); - span23[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013978u, new Vector3(627.5271f, 9.048584f, 637.72034f), 1192) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013978u, new Vector3(627.5271f, 9.048584f, 637.72034f), 1192) { AetherCurrentId = 2818485u }; - span23[1] = new QuestStep(EInteractionType.Interact, 2013778u, new Vector3(699.0615f, 40.299072f, 377.9812f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013778u, new Vector3(699.0615f, 40.299072f, 377.9812f), 1192); obj26.Steps = list44; reference38 = obj26; - ref QuestSequence reference39 = ref span14[6]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 6 @@ -346298,17 +417996,21 @@ public static class AssemblyQuestLoader num2 = 2; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span24 = CollectionsMarshal.AsSpan(list45); - span24[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013975u, new Vector3(753.3696f, 45.09243f, 347.0511f), 1192) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013975u, new Vector3(753.3696f, 45.09243f, 347.0511f), 1192) { AetherCurrentId = 2818480u }; - ref QuestStep reference40 = ref span24[1]; + index2++; + ref QuestStep reference40 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1047911u, new Vector3(749.9961f, -12.716532f, 221.08789f), 1192); num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF107_04952_SYSTEM_100_174") @@ -346317,15 +418019,18 @@ public static class AssemblyQuestLoader reference40 = questStep13; obj27.Steps = list45; reference39 = obj27; - ref QuestSequence reference41 = ref span14[7]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047911u, new Vector3(749.9961f, -12.716532f, 221.08789f), 1192) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047911u, new Vector3(749.9961f, -12.716532f, 221.08789f), 1192) { StopDistance = 5f }; @@ -346338,13 +418043,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list48); + index = 0; + span[index] = "liza"; questRoot4.Author = list48; - num = 5; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span25 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference42 = ref span25[0]; + index = 5; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + span2 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -346352,22 +418060,26 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047915u, new Vector3(746.5476f, -12.716527f, 216.7544f), 1192) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047915u, new Vector3(746.5476f, -12.716527f, 216.7544f), 1192) { StopDistance = 5f }; obj29.Steps = list50; reference42 = obj29; - ref QuestSequence reference43 = ref span25[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span26 = CollectionsMarshal.AsSpan(list51); - ref QuestStep reference44 = ref span26[0]; + index2 = 3; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference44 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { TargetTerritoryId = (ushort)1192, @@ -346375,32 +418087,39 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new QuestId(5176); + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span7 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span7[num3] = new QuestId(5176); skipStepConditions2.QuestsCompleted = list52; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new QuestId(5176); + span7 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span7[index3] = new QuestId(5176); skipAetheryteCondition.QuestsCompleted = list53; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj31.SkipConditions = skipConditions2; reference44 = obj31; - span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192) { PickUpQuestId = new QuestId(5176) }; - span26[2] = new QuestStep(EInteractionType.Interact, 1047917u, new Vector3(35.721313f, 53.20001f, 753.1699f), 1192) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047917u, new Vector3(35.721313f, 53.20001f, 753.1699f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj30.Steps = list51; reference43 = obj30; - ref QuestSequence reference45 = ref span25[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -346408,26 +418127,32 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1047922u, new Vector3(353.04797f, 25.75336f, -11.551086f), 1192); + span3 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047922u, new Vector3(353.04797f, 25.75336f, -11.551086f), 1192); obj32.Steps = list54; reference45 = obj32; - ref QuestSequence reference46 = ref span25[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span27 = CollectionsMarshal.AsSpan(list55); - span27[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013982u, new Vector3(169.57349f, 29.220947f, -308.0644f), 1192) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013982u, new Vector3(169.57349f, 29.220947f, -308.0644f), 1192) { AetherCurrentId = 2818487u }; - span27[1] = new QuestStep(EInteractionType.Interact, 1047925u, new Vector3(260.02893f, 27.01824f, -183.61182f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047925u, new Vector3(260.02893f, 27.01824f, -183.61182f), 1192); obj33.Steps = list55; reference46 = obj33; - ref QuestSequence reference47 = ref span25[4]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -346435,7 +418160,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) { StopDistance = 7f }; @@ -346448,27 +418175,33 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot5.Author = list57; - num = 8; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span28 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference48 = ref span28[0]; + index = 8; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) { StopDistance = 7f }; obj35.Steps = list59; reference48 = obj35; - ref QuestSequence reference49 = ref span28[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -346476,21 +418209,27 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1047932u, new Vector3(605.0659f, 27.724148f, -184.77148f), 1192); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047932u, new Vector3(605.0659f, 27.724148f, -184.77148f), 1192); obj36.Steps = list60; reference49 = obj36; - ref QuestSequence reference50 = ref span28[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1047937u, new Vector3(586.8772f, 27.574875f, -195.20868f), 1192); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047937u, new Vector3(586.8772f, 27.574875f, -195.20868f), 1192); obj37.Steps = list61; reference50 = obj37; - ref QuestSequence reference51 = ref span28[3]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -346498,69 +418237,96 @@ public static class AssemblyQuestLoader num2 = 4; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span29 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference52 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1047944u, new Vector3(665.5221f, 24.999493f, -266.55988f), 1192); - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span30 = CollectionsMarshal.AsSpan(list63); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span5 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list63; reference52 = questStep14; - span29[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { Aetheryte = EAetheryteLocation.LivingMemoryLeynodePyro }; - ref QuestStep reference53 = ref span29[2]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1047943u, new Vector3(653.7117f, 24.999493f, -303.18152f), 1192); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span31 = CollectionsMarshal.AsSpan(list64); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list64; reference53 = questStep15; - ref QuestStep reference54 = ref span29[3]; + index2++; + ref QuestStep reference54 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1047942u, new Vector3(634.14966f, 24.999489f, -292.77484f), 1192); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span32 = CollectionsMarshal.AsSpan(list65); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + span5 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list65; reference54 = questStep16; obj38.Steps = list62; reference51 = obj38; - ref QuestSequence reference55 = ref span28[4]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list66)[0]; + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference56 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1047945u, new Vector3(514.7324f, 24.978758f, -126.57361f), 1192); num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMF109_04954_Q1_000_000"), @@ -346570,7 +418336,8 @@ public static class AssemblyQuestLoader reference56 = questStep17; obj39.Steps = list66; reference55 = obj39; - ref QuestSequence reference57 = ref span28[5]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 5 @@ -346578,21 +418345,27 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1047946u, new Vector3(501.45715f, 25.314697f, -140.39832f), 1192); + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047946u, new Vector3(501.45715f, 25.314697f, -140.39832f), 1192); obj40.Steps = list68; reference57 = obj40; - ref QuestSequence reference58 = ref span28[6]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1047939u, new Vector3(605.4933f, 27.724146f, -184.13062f), 1192); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047939u, new Vector3(605.4933f, 27.724146f, -184.13062f), 1192); obj41.Steps = list69; reference58 = obj41; - ref QuestSequence reference59 = ref span28[7]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -346600,7 +418373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; @@ -346613,24 +418388,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot6.Author = list71; - num = 9; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span33 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference60 = ref span33[0]; + index = 9; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192); obj43.Steps = list73; reference60 = obj43; - ref QuestSequence reference61 = ref span33[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -346638,21 +418419,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2013779u, new Vector3(755.1842f, 35.99597f, -388.50995f), 1192); + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013779u, new Vector3(755.1842f, 35.99597f, -388.50995f), 1192); obj44.Steps = list74; reference61 = obj44; - ref QuestSequence reference62 = ref span33[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); obj45.Steps = list75; reference62 = obj45; - ref QuestSequence reference63 = ref span33[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -346660,19 +418447,22 @@ public static class AssemblyQuestLoader num2 = 3; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span34 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference64 = ref span34[0]; + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2013780u, new Vector3(707.24023f, 50.06482f, -548.14984f), 1192); - num3 = 2; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span35 = CollectionsMarshal.AsSpan(list77); - span35[0] = new DialogueChoice + index3 = 2; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + span6 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_108") }; - span35[1] = new DialogueChoice + num3++; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_109"), @@ -346680,18 +418470,21 @@ public static class AssemblyQuestLoader }; questStep18.DialogueChoices = list77; reference64 = questStep18; - ref QuestStep reference65 = ref span34[1]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2013782u, new Vector3(722.25525f, 50.18689f, -573.6019f), 1192); num3 = 2; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span36 = CollectionsMarshal.AsSpan(list78); - span36[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_108") }; - span36[1] = new DialogueChoice + index3++; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_109"), @@ -346699,12 +418492,15 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list78; reference65 = questStep19; - ref QuestStep reference66 = ref span34[2]; + index2++; + ref QuestStep reference66 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span6 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_100_120") @@ -346713,23 +418509,27 @@ public static class AssemblyQuestLoader reference66 = questStep20; obj46.Steps = list76; reference63 = obj46; - ref QuestSequence reference67 = ref span33[4]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span37 = CollectionsMarshal.AsSpan(list80); - span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013979u, new Vector3(509.69702f, 36.972534f, -648.82886f), 1192) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013979u, new Vector3(509.69702f, 36.972534f, -648.82886f), 1192) { AetherCurrentId = 2818481u }; - span37[1] = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); obj47.Steps = list80; reference67 = obj47; - ref QuestSequence reference68 = ref span33[5]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -346737,12 +418537,16 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list81)[0]; + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference69 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMF110_04955_Q1_000_000"), @@ -346752,21 +418556,25 @@ public static class AssemblyQuestLoader reference69 = questStep21; obj48.Steps = list81; reference68 = obj48; - ref QuestSequence reference70 = ref span33[6]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1047633u, new Vector3(448.32532f, 84.9995f, -655.8175f), 1192) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047633u, new Vector3(448.32532f, 84.9995f, -655.8175f), 1192) { StopDistance = 5f }; obj49.Steps = list83; reference70 = obj49; - ref QuestSequence reference71 = ref span33[7]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 7 @@ -346774,12 +418582,16 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list84)[0]; + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1047965u, new Vector3(485.2826f, 106.244576f, -331.92957f), 1192); - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span6 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_244") @@ -346788,15 +418600,18 @@ public static class AssemblyQuestLoader reference72 = questStep22; obj50.Steps = list84; reference71 = obj50; - ref QuestSequence reference73 = ref span33[8]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047966u, new Vector3(488.609f, 106.244576f, -333.8827f), 1192) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047966u, new Vector3(488.609f, 106.244576f, -333.8827f), 1192) { StopDistance = 5f }; @@ -346809,13 +418624,16 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "liza"; questRoot7.Author = list87; - num = 5; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span38 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference74 = ref span38[0]; + index = 5; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -346823,22 +418641,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047970u, new Vector3(485.16064f, 106.24457f, -331.899f), 1192) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047970u, new Vector3(485.16064f, 106.24457f, -331.899f), 1192) { StopDistance = 5f }; obj52.Steps = list89; reference74 = obj52; - ref QuestSequence reference75 = ref span38[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span39 = CollectionsMarshal.AsSpan(list90); - ref QuestStep reference76 = ref span39[0]; + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference76 = ref span3[num2]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro @@ -346848,35 +418670,42 @@ public static class AssemblyQuestLoader num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = new QuestId(5178); + span7 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span7[index3] = new QuestId(5178); skipAetheryteCondition2.QuestsCompleted = list91; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj54.SkipConditions = skipConditions3; obj54.PickUpQuestId = new QuestId(5178); reference76 = obj54; - ref QuestStep reference77 = ref span39[1]; + num2++; + ref QuestStep reference77 = ref span3[num2]; QuestStep obj55 = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new QuestId(5179); + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + span7 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span7[num3] = new QuestId(5179); skipAetheryteCondition3.QuestsCompleted = list92; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition3; obj55.SkipConditions = skipConditions4; obj55.PickUpQuestId = new QuestId(5179); reference77 = obj55; - span39[2] = new QuestStep(EInteractionType.Interact, 1047971u, new Vector3(34.592163f, 53.20001f, 767.4829f), 1192) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047971u, new Vector3(34.592163f, 53.20001f, 767.4829f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj53.Steps = list90; reference75 = obj53; - ref QuestSequence reference78 = ref span38[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -346884,21 +418713,27 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1047976u, new Vector3(-56.992493f, 53.20001f, 768.39856f), 1192); + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047976u, new Vector3(-56.992493f, 53.20001f, 768.39856f), 1192); obj56.Steps = list93; reference78 = obj56; - ref QuestSequence reference79 = ref span38[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1047981u, new Vector3(-184.06964f, 37.39f, 57.75537f), 1192); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047981u, new Vector3(-184.06964f, 37.39f, 57.75537f), 1192); obj57.Steps = list94; reference79 = obj57; - ref QuestSequence reference80 = ref span38[4]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -346906,7 +418741,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); obj58.Steps = list95; reference80 = obj58; questRoot7.QuestSequence = list88; @@ -346916,24 +418753,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot8.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span40 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference81 = ref span40[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); obj59.Steps = list98; reference81 = obj59; - ref QuestSequence reference82 = ref span40[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -346941,99 +418784,139 @@ public static class AssemblyQuestLoader num2 = 6; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span41 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference83 = ref span41[0]; + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference83 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1047991u, new Vector3(-208.72821f, 30.49966f, -177.01996f), 1192); num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span42 = CollectionsMarshal.AsSpan(list100); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list100; reference83 = questStep23; - ref QuestStep reference84 = ref span41[1]; + index2++; + ref QuestStep reference84 = ref span3[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2013788u, new Vector3(-202.86877f, 29.984009f, -229.29736f), 1192); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span43 = CollectionsMarshal.AsSpan(list101); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + span5 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list101; reference84 = questStep24; - ref QuestStep reference85 = ref span41[2]; + index2++; + ref QuestStep reference85 = ref span3[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1047992u, new Vector3(-255.23767f, 31.341942f, -365.74353f), 1192); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span44 = CollectionsMarshal.AsSpan(list102); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list102; reference85 = questStep25; - ref QuestStep reference86 = ref span41[3]; + index2++; + ref QuestStep reference86 = ref span3[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2013789u, new Vector3(-286.97644f, 29.984009f, -335.74432f), 1192) { DisableNavmesh = true, Mount = true }; - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span45 = CollectionsMarshal.AsSpan(list103); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list103; reference86 = obj61; - span41[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { Aetheryte = EAetheryteLocation.LivingMemoryLeynodeAero }; - ref QuestStep reference87 = ref span41[5]; + index2++; + ref QuestStep reference87 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1047993u, new Vector3(-281.91046f, 54.31037f, -412.2835f), 1192); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span46 = CollectionsMarshal.AsSpan(list104); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list104; reference87 = questStep26; obj60.Steps = list99; reference82 = obj60; - ref QuestSequence reference88 = ref span40[2]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1047994u, new Vector3(-247.7608f, 30.999998f, -71.27496f), 1192); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + span3 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047994u, new Vector3(-247.7608f, 30.999998f, -71.27496f), 1192); obj62.Steps = list105; reference88 = obj62; - ref QuestSequence reference89 = ref span40[3]; + num++; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 @@ -347041,25 +418924,30 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span47 = CollectionsMarshal.AsSpan(list106); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.89844f, 30.099947f, -84.85613f), 1192); - span47[1] = new QuestStep(EInteractionType.Interact, 2013790u, new Vector3(-333.9132f, 33.951294f, -132.79932f), 1192); + span3 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.89844f, 30.099947f, -84.85613f), 1192); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013790u, new Vector3(-333.9132f, 33.951294f, -132.79932f), 1192); obj63.Steps = list106; reference89 = obj63; - ref QuestSequence reference90 = ref span40[4]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span48 = CollectionsMarshal.AsSpan(list107); - span48[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013983u, new Vector3(-484.18402f, 37.979614f, -50.003845f), 1192) + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013983u, new Vector3(-484.18402f, 37.979614f, -50.003845f), 1192) { AetherCurrentId = 2818488u }; - span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeAero }; @@ -347072,13 +418960,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot9.Author = list108; - num = 6; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span49 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference91 = ref span49[0]; + index = 6; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -347086,26 +418977,33 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192); + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192); obj65.Steps = list110; reference91 = obj65; - ref QuestSequence reference92 = ref span49[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list111)[0]; + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1048004u, new Vector3(-523.03357f, -10.000407f, -445.57874f), 1192) { StopDistance = 7f }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new DialogueChoice + index3 = 1; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span6 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF113_04958_SYSTEM_000_031") @@ -347114,7 +419012,8 @@ public static class AssemblyQuestLoader reference93 = obj67; obj66.Steps = list111; reference92 = obj66; - ref QuestSequence reference94 = ref span49[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -347122,29 +419021,35 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1048008u, new Vector3(-528.58777f, -10.000336f, -466.97186f), 1192) + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048008u, new Vector3(-528.58777f, -10.000336f, -466.97186f), 1192) { StopDistance = 5f }; obj68.Steps = list113; reference94 = obj68; - ref QuestSequence reference95 = ref span49[3]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span50 = CollectionsMarshal.AsSpan(list114); - span50[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013980u, new Vector3(-559.5941f, -6.0273438f, -508.53745f), 1192) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013980u, new Vector3(-559.5941f, -6.0273438f, -508.53745f), 1192) { AetherCurrentId = 2818482u }; - span50[1] = new QuestStep(EInteractionType.Interact, 1048009u, new Vector3(-485.86255f, 7.300079f, -705.4398f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048009u, new Vector3(-485.86255f, 7.300079f, -705.4398f), 1192); obj69.Steps = list114; reference95 = obj69; - ref QuestSequence reference96 = ref span49[4]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -347152,12 +419057,16 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list115)[0]; + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference97 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192); num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF113_04958_SYSTEM_000_124") @@ -347166,15 +419075,18 @@ public static class AssemblyQuestLoader reference97 = questStep27; obj70.Steps = list115; reference96 = obj70; - ref QuestSequence reference98 = ref span49[5]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) { StopDistance = 5f }; @@ -347187,13 +419099,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot10.Author = list118; - num = 7; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span51 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference99 = ref span51[0]; + index = 7; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -347201,22 +419116,26 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) { StopDistance = 5f }; obj72.Steps = list120; reference99 = obj72; - ref QuestSequence reference100 = ref span51[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span52 = CollectionsMarshal.AsSpan(list121); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, SkipConditions = new SkipConditions @@ -347227,13 +419146,15 @@ public static class AssemblyQuestLoader } } }; - span52[1] = new QuestStep(EInteractionType.Interact, 1048014u, new Vector3(-0.13739014f, 50.124947f, 363.05774f), 1192) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048014u, new Vector3(-0.13739014f, 50.124947f, 363.05774f), 1192) { Fly = true }; obj73.Steps = list121; reference100 = obj73; - ref QuestSequence reference101 = ref span51[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -347241,7 +419162,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -347251,19 +419174,23 @@ public static class AssemblyQuestLoader }; obj74.Steps = list122; reference101 = obj74; - span51[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference102 = ref span51[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Duty, null, null, 1221) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1221) { DutyOptions = new DutyOptions { @@ -347272,11 +419199,13 @@ public static class AssemblyQuestLoader }; obj75.Steps = list123; reference102 = obj75; - span51[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference103 = ref span51[6]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -347284,7 +419213,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048022u, new Vector3(-160.7843f, -14.999356f, 204.42505f), 1185) + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048022u, new Vector3(-160.7843f, -14.999356f, 204.42505f), 1185) { StopDistance = 7f }; @@ -347297,21 +419228,26 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list125); + index = 0; + span[index] = "liza"; questRoot11.Author = list125; - num = 3; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span53 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference104 = ref span53[0]; + index = 3; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + span2 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049786u, new Vector3(340.13867f, 50.75f, 231.37244f), 1186) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049786u, new Vector3(340.13867f, 50.75f, 231.37244f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -347329,7 +419265,8 @@ public static class AssemblyQuestLoader }; obj77.Steps = list127; reference104 = obj77; - ref QuestSequence reference105 = ref span53[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -347337,12 +419274,16 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list128)[0]; + span3 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference106 = ref span3[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new DialogueChoice + index3 = 1; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + span6 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA101_04960_SYSTEM_100_030") @@ -347351,15 +419292,18 @@ public static class AssemblyQuestLoader reference106 = questStep28; obj78.Steps = list128; reference105 = obj78; - ref QuestSequence reference107 = ref span53[2]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + span3 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(4961) @@ -347373,13 +419317,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list131); + index = 0; + span[index] = "liza"; questRoot12.Author = list131; - num = 3; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span54 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference108 = ref span54[0]; + index = 3; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + span2 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -347387,8 +419334,9 @@ public static class AssemblyQuestLoader num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span55 = CollectionsMarshal.AsSpan(list133); - ref QuestStep reference109 = ref span55[0]; + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, @@ -347404,7 +419352,9 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = 1224; + Span span8 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span8[index3] = 1224; skipStepConditions3.InTerritory = list134; skipStepConditions3.NearPosition = new NearPositionCondition { @@ -347414,29 +419364,35 @@ public static class AssemblyQuestLoader }; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = 1224; + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + span8 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span8[num3] = 1224; skipAetheryteCondition4.InTerritory = list135; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; obj81.SkipConditions = skipConditions5; reference109 = obj81; - span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) { StopDistance = 5f }; obj80.Steps = list133; reference108 = obj80; - ref QuestSequence reference110 = ref span54[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + span3 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347445,7 +419401,8 @@ public static class AssemblyQuestLoader }; obj82.Steps = list136; reference110 = obj82; - ref QuestSequence reference111 = ref span54[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -347453,7 +419410,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4962) @@ -347467,27 +419426,33 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list138); + index = 0; + span[index] = "liza"; questRoot13.Author = list138; - num = 4; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span56 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference112 = ref span56[0]; + index = 4; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + span2 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f }; obj84.Steps = list140; reference112 = obj84; - ref QuestSequence reference113 = ref span56[1]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -347495,7 +419460,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347504,21 +419471,25 @@ public static class AssemblyQuestLoader }; obj85.Steps = list141; reference113 = obj85; - ref QuestSequence reference114 = ref span56[2]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f }; obj86.Steps = list142; reference114 = obj86; - ref QuestSequence reference115 = ref span56[3]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -347526,7 +419497,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4963) @@ -347540,27 +419513,33 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list144); + index = 0; + span[index] = "liza"; questRoot14.Author = list144; - num = 3; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span57 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference116 = ref span57[0]; + index = 3; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + span2 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj88.Steps = list146; reference116 = obj88; - ref QuestSequence reference117 = ref span57[1]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -347568,22 +419547,26 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { StopDistance = 5f }; obj89.Steps = list147; reference117 = obj89; - ref QuestSequence reference118 = ref span57[2]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span58 = CollectionsMarshal.AsSpan(list148); - span58[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AethernetShortcut = new AethernetShortcut @@ -347592,7 +419575,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4964) @@ -347606,13 +419590,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "liza"; questRoot15.Author = list149; - num = 4; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span59 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference119 = ref span59[0]; + index = 4; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -347620,21 +419607,26 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) { StopDistance = 7f }; obj91.Steps = list151; reference119 = obj91; - ref QuestSequence reference120 = ref span59[1]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347643,7 +419635,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list152; reference120 = obj92; - ref QuestSequence reference121 = ref span59[2]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -347651,21 +419644,26 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj93.Steps = list153; reference121 = obj93; - ref QuestSequence reference122 = ref span59[3]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4965) @@ -347679,13 +419677,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot16.Author = list155; - num = 5; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span60 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference123 = ref span60[0]; + index = 5; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 @@ -347693,21 +419694,26 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049792u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049792u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj95.Steps = list157; reference123 = obj95; - ref QuestSequence reference124 = ref span60[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347716,7 +419722,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list158; reference124 = obj96; - ref QuestSequence reference125 = ref span60[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -347724,26 +419731,31 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj97.Steps = list159; reference125 = obj97; - ref QuestSequence reference126 = ref span60[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span61 = CollectionsMarshal.AsSpan(list160); - span61[0] = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) { TargetTerritoryId = (ushort)1186 }; - span61[1] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -347753,7 +419765,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list160; reference126 = obj98; - ref QuestSequence reference127 = ref span60[4]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -347761,7 +419774,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { NextQuestId = new QuestId(5289) }; @@ -347774,24 +419789,30 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list162); + index = 0; + span[index] = "liza"; questRoot17.Author = list162; - num = 2; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span62 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference128 = ref span62[0]; + index = 2; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + span2 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + span3 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj100.Steps = list164; reference128 = obj100; - ref QuestSequence reference129 = ref span62[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -347799,7 +419820,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj101.Steps = list165; reference129 = obj101; questRoot17.QuestSequence = list163; @@ -347809,24 +419832,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "plogon_enjoyer"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "plogon_enjoyer"; questRoot18.Author = list166; - num = 12; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span63 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference130 = ref span63[0]; + index = 12; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj102.Steps = list168; reference130 = obj102; - ref QuestSequence reference131 = ref span63[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -347834,7 +419863,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 2014440u, new Vector3(-100.23657f, -19.882507f, 211.13904f), 1185) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014440u, new Vector3(-100.23657f, -19.882507f, 211.13904f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347844,18 +419875,22 @@ public static class AssemblyQuestLoader }; obj103.Steps = list169; reference131 = obj103; - ref QuestSequence reference132 = ref span63[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1052476u, new Vector3(-100.175476f, -19.798239f, 209.73523f), 1185); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052476u, new Vector3(-100.175476f, -19.798239f, 209.73523f), 1185); obj104.Steps = list170; reference132 = obj104; - ref QuestSequence reference133 = ref span63[3]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -347863,12 +419898,16 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list171)[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference134 = ref span3[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1047183u, new Vector3(-194.93408f, 28f, -553.1548f), 1191); num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGLZ001_04967_Q2_000_000"), @@ -347878,26 +419917,30 @@ public static class AssemblyQuestLoader reference134 = questStep29; obj105.Steps = list171; reference133 = obj105; - ref QuestSequence reference135 = ref span63[4]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span64 = CollectionsMarshal.AsSpan(list173); - span64[0] = new QuestStep(EInteractionType.Interact, 1047173u, new Vector3(-283.0396f, 37.000023f, -573.7545f), 1191) + index2 = 2; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047173u, new Vector3(-283.0396f, 37.000023f, -573.7545f), 1191) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 1047174u, new Vector3(-138.35364f, 42.999657f, -663.2639f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047174u, new Vector3(-138.35364f, 42.999657f, -663.2639f), 1191) { Fly = true }; obj106.Steps = list173; reference135 = obj106; - ref QuestSequence reference136 = ref span63[5]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -347905,7 +419948,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -347916,15 +419961,18 @@ public static class AssemblyQuestLoader }; obj107.Steps = list174; reference136 = obj107; - ref QuestSequence reference137 = ref span63[6]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1047177u, new Vector3(-272.54144f, -9.063631E-06f, 143.57214f), 1185) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047177u, new Vector3(-272.54144f, -9.063631E-06f, 143.57214f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347934,7 +419982,8 @@ public static class AssemblyQuestLoader }; obj108.Steps = list175; reference137 = obj108; - ref QuestSequence reference138 = ref span63[7]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 7 @@ -347942,7 +419991,9 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1047179u, new Vector3(109.147705f, 42f, -353.29218f), 1185) + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047179u, new Vector3(109.147705f, 42f, -353.29218f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347952,15 +420003,18 @@ public static class AssemblyQuestLoader }; obj109.Steps = list176; reference138 = obj109; - ref QuestSequence reference139 = ref span63[8]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1047133u, new Vector3(180.37683f, -13.99f, 1.9073486f), 1185) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047133u, new Vector3(180.37683f, -13.99f, 1.9073486f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347970,7 +420024,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list177; reference139 = obj110; - ref QuestSequence reference140 = ref span63[9]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 9 @@ -347978,26 +420033,34 @@ public static class AssemblyQuestLoader num2 = 3; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span65 = CollectionsMarshal.AsSpan(list178); - span65[0] = new QuestStep(EInteractionType.Interact, 2014437u, new Vector3(166.8269f, -14.023071f, 3.2807007f), 1185); - span65[1] = new QuestStep(EInteractionType.Interact, 2014438u, new Vector3(203.05176f, -14.023071f, 11.642578f), 1185); - span65[2] = new QuestStep(EInteractionType.Interact, 2014439u, new Vector3(232.95947f, -14.023071f, -9.99469f), 1185); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014437u, new Vector3(166.8269f, -14.023071f, 3.2807007f), 1185); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014438u, new Vector3(203.05176f, -14.023071f, 11.642578f), 1185); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014439u, new Vector3(232.95947f, -14.023071f, -9.99469f), 1185); obj111.Steps = list178; reference140 = obj111; - ref QuestSequence reference141 = ref span63[10]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list179)[0]; + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference142 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice + index3 = 1; + List list180 = new List(index3); + CollectionsMarshal.SetCount(list180, index3); + span6 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGLZ001_04967_Q3_000_302") @@ -348006,7 +420069,8 @@ public static class AssemblyQuestLoader reference142 = questStep30; obj112.Steps = list179; reference141 = obj112; - ref QuestSequence reference143 = ref span63[11]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -348014,7 +420078,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj113.Steps = list181; reference143 = obj113; questRoot18.QuestSequence = list167; @@ -348024,24 +420090,30 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list182); + index = 0; + span[index] = "liza"; questRoot19.Author = list182; - num = 2; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span66 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference144 = ref span66[0]; + index = 2; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + span2 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047151u, new Vector3(130.2052f, -14f, 16.952698f), 1185); + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047151u, new Vector3(130.2052f, -14f, 16.952698f), 1185); obj114.Steps = list184; reference144 = obj114; - ref QuestSequence reference145 = ref span66[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -348049,7 +420121,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047164u, new Vector3(217.21204f, -14f, -8.316223f), 1185) + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047164u, new Vector3(217.21204f, -14f, -8.316223f), 1185) { NextQuestId = new QuestId(4990) }; @@ -348062,24 +420136,30 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; questRoot20.Author = list186; - num = 2; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span67 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference146 = ref span67[0]; + index = 2; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj116.Steps = list188; reference146 = obj116; - ref QuestSequence reference147 = ref span67[1]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -348087,13 +420167,16 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span68 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference148 = ref span68[0]; + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + ref QuestStep reference148 = ref span3[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = new GatheredItem + Span span9 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 43899u, ItemCount = 6, @@ -348101,7 +420184,8 @@ public static class AssemblyQuestLoader }; questStep31.ItemsToGather = list190; reference148 = questStep31; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348120,24 +420204,30 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "liza"; questRoot21.Author = list191; - num = 2; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span69 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference149 = ref span69[0]; + index = 2; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj118.Steps = list193; reference149 = obj118; - ref QuestSequence reference150 = ref span69[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -348145,13 +420235,16 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span70 = CollectionsMarshal.AsSpan(list194); - ref QuestStep reference151 = ref span70[0]; + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + ref QuestStep reference151 = ref span3[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 1185); - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheredItem + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + span9 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 43900u, ItemCount = 6, @@ -348159,7 +420252,8 @@ public static class AssemblyQuestLoader }; questStep32.ItemsToGather = list195; reference151 = questStep32; - span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348178,24 +420272,30 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; questRoot22.Author = list196; - num = 2; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span71 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference152 = ref span71[0]; + index = 2; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + span3 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj120.Steps = list198; reference152 = obj120; - ref QuestSequence reference153 = ref span71[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -348203,13 +420303,16 @@ public static class AssemblyQuestLoader num2 = 2; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span72 = CollectionsMarshal.AsSpan(list199); - ref QuestStep reference154 = ref span72[0]; + span3 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + ref QuestStep reference154 = ref span3[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 43901u, ItemCount = 6, @@ -348217,7 +420320,8 @@ public static class AssemblyQuestLoader }; questStep33.ItemsToGather = list200; reference154 = questStep33; - span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348236,24 +420340,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "liza"; questRoot23.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span73 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference155 = ref span73[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj122.Steps = list203; reference155 = obj122; - ref QuestSequence reference156 = ref span73[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -348261,7 +420371,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1047153u, new Vector3(-270.4662f, 40.0732f, -12.253052f), 1185) + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047153u, new Vector3(-270.4662f, 40.0732f, -12.253052f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -348271,28 +420383,33 @@ public static class AssemblyQuestLoader }; obj123.Steps = list204; reference156 = obj123; - ref QuestSequence reference157 = ref span73[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span74 = CollectionsMarshal.AsSpan(list205); - ref QuestStep reference158 = ref span74[0]; + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference158 = ref span3[num2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1185); - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new GatheredItem + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + span9 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 43913u, ItemCount = 1 }; questStep34.ItemsToGather = list206; reference158 = questStep34; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348311,13 +420428,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot24.Author = list207; - num = 2; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span75 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference159 = ref span75[0]; + index = 2; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -348325,24 +420445,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj125.Steps = list209; reference159 = obj125; - ref QuestSequence reference160 = ref span75[1]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span76 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference161 = ref span76[0]; + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference161 = ref span3[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 43902u, ItemCount = 6, @@ -348350,7 +420476,8 @@ public static class AssemblyQuestLoader }; questStep35.ItemsToGather = list211; reference161 = questStep35; - span76[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348369,13 +420496,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list212); + index = 0; + span[index] = "liza"; questRoot25.Author = list212; - num = 9; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span77 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference162 = ref span77[0]; + index = 9; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + span2 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -348383,24 +420513,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj127.Steps = list214; reference162 = obj127; - ref QuestSequence reference163 = ref span77[1]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1047155u, new Vector3(746.24243f, -133.18861f, 507.5608f), 1189) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047155u, new Vector3(746.24243f, -133.18861f, 507.5608f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj128.Steps = list215; reference163 = obj128; - ref QuestSequence reference164 = ref span77[2]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -348408,25 +420544,33 @@ public static class AssemblyQuestLoader num2 = 4; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span78 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference165 = ref span78[0]; + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference165 = ref span3[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1048981u, new Vector3(686.51855f, -137.174f, 534.8745f), 1189) { Fly = true }; - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span79 = CollectionsMarshal.AsSpan(list217); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + span5 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj130.CompletionQuestVariablesFlags = list217; reference165 = obj130; - ref QuestStep reference166 = ref span78[1]; + index2++; + ref QuestStep reference166 = ref span3[index2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1048973u, new Vector3(661.86f, -135.17876f, 582.11633f), 1189) { StopDistance = 4f @@ -348434,72 +420578,101 @@ public static class AssemblyQuestLoader num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span80 = CollectionsMarshal.AsSpan(list218); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj131.CompletionQuestVariablesFlags = list218; reference166 = obj131; - ref QuestStep reference167 = ref span78[2]; + index2++; + ref QuestStep reference167 = ref span3[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1047156u, new Vector3(632.5017f, -137.17401f, 590.8445f), 1189); - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span81 = CollectionsMarshal.AsSpan(list219); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + span5 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list219; reference167 = questStep36; - ref QuestStep reference168 = ref span78[3]; + index2++; + ref QuestStep reference168 = ref span3[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1048974u, new Vector3(621.51514f, -135.12726f, 531.1207f), 1189); num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span82 = CollectionsMarshal.AsSpan(list220); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list220; reference168 = questStep37; obj129.Steps = list216; reference164 = obj129; - ref QuestSequence reference169 = ref span77[3]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span83 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference170 = ref span83[0]; + index2 = 2; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 1047158u, new Vector3(539.69617f, -142.49185f, 481.65088f), 1189) { Fly = true }; - num3 = 6; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span84 = CollectionsMarshal.AsSpan(list222); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list222; reference170 = obj133; - ref QuestStep reference171 = ref span83[1]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1047157u, new Vector3(586.26685f, -142.4984f, 462.97388f), 1189) { Fly = true @@ -348507,18 +420680,25 @@ public static class AssemblyQuestLoader num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span85 = CollectionsMarshal.AsSpan(list223); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list223; reference171 = obj134; obj132.Steps = list221; reference169 = obj132; - ref QuestSequence reference172 = ref span77[4]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -348526,28 +420706,34 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1047159u, new Vector3(191.45496f, -160.64616f, 414.0536f), 1189) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047159u, new Vector3(191.45496f, -160.64616f, 414.0536f), 1189) { Fly = true }; obj135.Steps = list224; reference172 = obj135; - ref QuestSequence reference173 = ref span77[5]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj136.Steps = list225; reference173 = obj136; - ref QuestSequence reference174 = ref span77[6]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 6 @@ -348555,8 +420741,9 @@ public static class AssemblyQuestLoader num2 = 5; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span86 = CollectionsMarshal.AsSpan(list226); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.87848f, 4.0999737f, -551.09174f), 1189) + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.87848f, 4.0999737f, -551.09174f), 1189) { SkipConditions = new SkipConditions { @@ -348566,42 +420753,51 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference175 = ref span86[1]; + index2++; + ref QuestStep reference175 = ref span3[index2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span9 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 43914u, ItemCount = 1 }; questStep38.ItemsToGather = list227; reference175 = questStep38; - span86[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -33.187485f, -598.0982f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -33.187485f, -598.0982f), 1189) { Fly = true }; - span86[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -0.6f, -598.0982f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -0.6f, -598.0982f), 1189) { DisableNavmesh = true, Fly = true }; - span86[4] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) { Fly = true }; obj137.Steps = list226; reference174 = obj137; - ref QuestSequence reference176 = ref span77[7]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348612,7 +420808,8 @@ public static class AssemblyQuestLoader }; obj138.Steps = list228; reference176 = obj138; - ref QuestSequence reference177 = ref span77[8]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -348620,7 +420817,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj139.Steps = list229; reference177 = obj139; questRoot25.QuestSequence = list213; @@ -348634,12 +420833,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -348647,7 +420850,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048390u, new Vector3(15.243713f, -14.000001f, 85.83191f), 1185); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048390u, new Vector3(15.243713f, -14.000001f, 85.83191f), 1185); obj.Steps = list3; reference = obj; questRoot.QuestSequence = list2; @@ -348657,20 +420862,26 @@ public static class AssemblyQuestLoader num = 1; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list4); + index = 0; + span[index] = "liza"; questRoot2.Author = list4; - num = 1; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - ref QuestSequence reference2 = ref CollectionsMarshal.AsSpan(list5)[0]; + index = 1; + List list5 = new List(index); + CollectionsMarshal.SetCount(list5, index); + span2 = CollectionsMarshal.AsSpan(list5); + num = 0; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048548u, new Vector3(-109.48352f, -15f, 185.04602f), 1185); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048548u, new Vector3(-109.48352f, -15f, 185.04602f), 1185); obj2.Steps = list6; reference2 = obj2; questRoot2.QuestSequence = list5; @@ -348680,13 +420891,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "liza"; questRoot3.Author = list7; - num = 2; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference3 = ref span[0]; + index = 2; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -348694,7 +420908,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051454u, new Vector3(376.2417f, 50.749996f, 148.51599f), 1186) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051454u, new Vector3(376.2417f, 50.749996f, 148.51599f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -348712,15 +420928,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list9; reference3 = obj3; - ref QuestSequence reference4 = ref span[1]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049466u, new Vector3(-247.88281f, 30f, -631.15894f), 1191) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049466u, new Vector3(-247.88281f, 30f, -631.15894f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -348733,12 +420952,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "liza"; questRoot4.Author = list11; - num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - ref QuestSequence reference5 = ref CollectionsMarshal.AsSpan(list12)[0]; + index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -348746,7 +420969,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048510u, new Vector3(28.67163f, 50.13025f, -40.940002f), 1185); + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048510u, new Vector3(28.67163f, 50.13025f, -40.940002f), 1185); obj5.Steps = list13; reference5 = obj5; questRoot4.QuestSequence = list12; @@ -348756,20 +420981,26 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list14); + index = 0; + span[index] = "liza"; questRoot5.Author = list14; - num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list15)[0]; + index = 1; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + span2 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049155u, new Vector3(220.32495f, 74.847984f, -52.99463f), 1186); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049155u, new Vector3(220.32495f, 74.847984f, -52.99463f), 1186); obj6.Steps = list16; reference6 = obj6; questRoot5.QuestSequence = list15; @@ -348779,12 +421010,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot6.Author = list17; - num = 1; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - ref QuestSequence reference7 = ref CollectionsMarshal.AsSpan(list18)[0]; + index = 1; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -348792,7 +421027,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049088u, new Vector3(-157.64093f, 0.9219527f, -38.132385f), 1186); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049088u, new Vector3(-157.64093f, 0.9219527f, -38.132385f), 1186); obj7.Steps = list19; reference7 = obj7; questRoot6.QuestSequence = list18; @@ -348802,24 +421039,30 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot7.Author = list20; - num = 2; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span2 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference8 = ref span2[0]; + index = 2; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051413u, new Vector3(-75.21173f, -10.00001f, 138.8418f), 1185); + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + span3 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051413u, new Vector3(-75.21173f, -10.00001f, 138.8418f), 1185); obj8.Steps = list22; reference8 = obj8; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -348827,7 +421070,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + span3 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { NextQuestId = new QuestId(5010) }; @@ -348840,24 +421085,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot8.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span3 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference10 = ref span3[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj10.Steps = list26; reference10 = obj10; - ref QuestSequence reference11 = ref span3[1]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -348865,18 +421116,23 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1051414u, new Vector3(-90.348694f, -19.6019f, 212.54285f), 1185); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051414u, new Vector3(-90.348694f, -19.6019f, 212.54285f), 1185); obj11.Steps = list27; reference11 = obj11; - ref QuestSequence reference12 = ref span3[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { NextQuestId = new QuestId(5011) }; @@ -348889,13 +421145,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "liza"; questRoot9.Author = list29; - num = 5; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span4 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference13 = ref span4[0]; + index = 5; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -348903,24 +421162,30 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj13.Steps = list31; reference13 = obj13; - ref QuestSequence reference14 = ref span4[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1049457u, new Vector3(-223.92621f, 30f, -603.11285f), 1191) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049457u, new Vector3(-223.92621f, 30f, -603.11285f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj14.Steps = list32; reference14 = obj14; - ref QuestSequence reference15 = ref span4[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -348928,8 +421193,9 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span5 = CollectionsMarshal.AsSpan(list33); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.20557f, 38.80659f, -459.1674f), 1186) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.20557f, 38.80659f, -459.1674f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -348938,18 +421204,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResolution } }; - span5[1] = new QuestStep(EInteractionType.Interact, 1049180u, new Vector3(-67.27704f, 38.80659f, -459.22028f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049180u, new Vector3(-67.27704f, 38.80659f, -459.22028f), 1186); obj15.Steps = list33; reference15 = obj15; - ref QuestSequence reference16 = ref span4[3]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -348959,7 +421229,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list34; reference16 = obj16; - ref QuestSequence reference17 = ref span4[4]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -348967,7 +421238,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348986,24 +421259,30 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot10.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span6 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference18 = ref span6[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj18.Steps = list38; reference18 = obj18; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -349011,7 +421290,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -349022,15 +421303,18 @@ public static class AssemblyQuestLoader }; obj19.Steps = list39; reference19 = obj19; - ref QuestSequence reference20 = ref span6[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -349048,13 +421332,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot11.Author = list41; - num = 6; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span7 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference21 = ref span7[0]; + index = 6; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -349062,7 +421349,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051434u, new Vector3(28.580078f, -14f, 75.66943f), 1185) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051434u, new Vector3(28.580078f, -14f, 75.66943f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -349075,22 +421364,26 @@ public static class AssemblyQuestLoader }; obj21.Steps = list43; reference21 = obj21; - ref QuestSequence reference22 = ref span7[1]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; obj22.Steps = list44; reference22 = obj22; - ref QuestSequence reference23 = ref span7[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -349098,7 +421391,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Duty, null, null, 1190) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1190) { DutyOptions = new DutyOptions { @@ -349107,17 +421402,19 @@ public static class AssemblyQuestLoader }; obj23.Steps = list45; reference23 = obj23; - ref QuestSequence reference24 = ref span7[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) { - Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan, SkipConditions = new SkipConditions { @@ -349129,7 +421426,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list46; reference24 = obj24; - ref QuestSequence reference25 = ref span7[4]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -349137,7 +421435,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1051436u, new Vector3(476.73767f, 114.935f, 661.6769f), 1187) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051436u, new Vector3(476.73767f, 114.935f, 661.6769f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, SkipConditions = new SkipConditions @@ -349150,15 +421450,18 @@ public static class AssemblyQuestLoader }; obj25.Steps = list47; reference25 = obj25; - ref QuestSequence reference26 = ref span7[5]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051438u, new Vector3(-498.7717f, 59.21188f, 145.00647f), 1187) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051438u, new Vector3(-498.7717f, 59.21188f, 145.00647f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -349179,13 +421482,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot12.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span8 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference27 = ref span8[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -349193,7 +421499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) + span3 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -349211,15 +421519,18 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference27 = obj27; - ref QuestSequence reference28 = ref span8[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2014334u, new Vector3(-6.9123535f, 53.177612f, 761.68445f), 1192) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014334u, new Vector3(-6.9123535f, 53.177612f, 761.68445f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, SkipConditions = new SkipConditions @@ -349232,7 +421543,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list52; reference28 = obj28; - ref QuestSequence reference29 = ref span8[2]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -349240,8 +421552,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span9 = CollectionsMarshal.AsSpan(list53); - span9[0] = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { TargetTerritoryId = (ushort)1192, SkipConditions = new SkipConditions @@ -349252,7 +421565,8 @@ public static class AssemblyQuestLoader } } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1051443u, new Vector3(614.28235f, 9.022843f, 610.13184f), 1192) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051443u, new Vector3(614.28235f, 9.022843f, 610.13184f), 1192) { Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, @@ -349266,15 +421580,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list53; reference29 = obj29; - ref QuestSequence reference30 = ref span8[3]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -349283,7 +421600,8 @@ public static class AssemblyQuestLoader }; obj30.Steps = list54; reference30 = obj30; - ref QuestSequence reference31 = ref span8[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -349291,7 +421609,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1051442u, new Vector3(613.76355f, 9.022844f, 612.1156f), 1192) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051442u, new Vector3(613.76355f, 9.022844f, 612.1156f), 1192) { StopDistance = 7f, Fly = true, @@ -349306,15 +421626,18 @@ public static class AssemblyQuestLoader }; obj31.Steps = list55; reference31 = obj31; - ref QuestSequence reference32 = ref span8[5]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -349332,15 +421655,18 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list57); + index = 0; + span[index] = "liza"; questRoot13.Author = list57; questRoot13.IsSeasonalQuest = true; questRoot13.SeasonalQuestExpiry = new DateTime(2024, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span10 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference33 = ref span10[0]; + index = 6; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + span2 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -349348,7 +421674,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list59)[0]; + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1050998u, new Vector3(4.0131226f, 44.499996f, 126.17676f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -349366,22 +421694,27 @@ public static class AssemblyQuestLoader int num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 128; + Span span4 = CollectionsMarshal.AsSpan(list60); + int index3 = 0; + span4[index3] = 128; obj35.InTerritory = list60; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; reference34 = obj34; obj33.Steps = list59; reference33 = obj33; - ref QuestSequence reference35 = ref span10[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1050999u, new Vector3(4.837097f, 31.47563f, -256.97723f), 128) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + span3 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050999u, new Vector3(4.837097f, 31.47563f, -256.97723f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349391,7 +421724,8 @@ public static class AssemblyQuestLoader }; obj36.Steps = list61; reference35 = obj36; - ref QuestSequence reference36 = ref span10[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -349399,7 +421733,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1051000u, new Vector3(-100.175476f, 18.00033f, -15.030151f), 129) + span3 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051000u, new Vector3(-100.175476f, 18.00033f, -15.030151f), 129) { AethernetShortcut = new AethernetShortcut { @@ -349409,74 +421745,104 @@ public static class AssemblyQuestLoader }; obj37.Steps = list62; reference36 = obj37; - ref QuestSequence reference37 = ref span10[3]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span11 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference38 = ref span11[0]; + index2 = 4; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span12 = CollectionsMarshal.AsSpan(list64); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list64; reference38 = questStep; - ref QuestStep reference39 = ref span11[1]; + num2++; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1051003u, new Vector3(-188.12854f, 16f, 33.37146f), 129); num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span13 = CollectionsMarshal.AsSpan(list65); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list65; reference39 = questStep2; - ref QuestStep reference40 = ref span11[2]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1051002u, new Vector3(-205.005f, 15.999994f, 71.97681f), 129); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span14 = CollectionsMarshal.AsSpan(list66); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + span5 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list66; reference40 = questStep3; - ref QuestStep reference41 = ref span11[3]; + num2++; + ref QuestStep reference41 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1051004u, new Vector3(-243.03046f, 16.199997f, 40.97046f), 129); num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span15 = CollectionsMarshal.AsSpan(list67); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list67; reference41 = questStep4; obj38.Steps = list63; reference37 = obj38; - ref QuestSequence reference42 = ref span10[4]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -349484,7 +421850,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2014209u, new Vector3(-385.1225f, 5.996765f, 33.707153f), 129) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014209u, new Vector3(-385.1225f, 5.996765f, 33.707153f), 129) { AethernetShortcut = new AethernetShortcut { @@ -349494,15 +421862,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list68; reference42 = obj39; - ref QuestSequence reference43 = ref span10[5]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051001u, new Vector3(3.7994385f, 44.499992f, 126.05469f), 128) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051001u, new Vector3(3.7994385f, 44.499992f, 126.05469f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349520,15 +421891,18 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list70); + index = 0; + span[index] = "liza"; questRoot14.Author = list70; questRoot14.IsSeasonalQuest = true; questRoot14.SeasonalQuestExpiry = new DateTime(2024, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span16 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference44 = ref span16[0]; + index = 6; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + span2 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -349536,7 +421910,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list72)[0]; + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1051007u, new Vector3(2.2735596f, 44.499992f, 125.200195f), 128) { StopDistance = 5f, @@ -349552,25 +421928,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 128; + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span4 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span4[num3] = 128; obj43.InTerritory = list73; skipConditions2.AetheryteShortcutIf = obj43; obj42.SkipConditions = skipConditions2; reference45 = obj42; obj41.Steps = list72; reference44 = obj41; - ref QuestSequence reference46 = ref span16[1]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051008u, new Vector3(2.5481567f, 43.999977f, -206.71399f), 128) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051008u, new Vector3(2.5481567f, 43.999977f, -206.71399f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349580,7 +421961,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list74; reference46 = obj44; - ref QuestSequence reference47 = ref span16[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -349588,21 +421970,26 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1051009u, new Vector3(1.5106201f, 44f, -205.8595f), 128) + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051009u, new Vector3(1.5106201f, 44f, -205.8595f), 128) { StopDistance = 5f }; obj45.Steps = list75; reference47 = obj45; - ref QuestSequence reference48 = ref span16[3]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2014210u, new Vector3(-176.62323f, 40.97046f, 185.35132f), 128) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014210u, new Vector3(-176.62323f, 40.97046f, 185.35132f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349612,7 +421999,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list76; reference48 = obj46; - ref QuestSequence reference49 = ref span16[4]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 @@ -349620,21 +422008,26 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1051010u, new Vector3(-178.11859f, 40.999958f, 184.67993f), 128) + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051010u, new Vector3(-178.11859f, 40.999958f, 184.67993f), 128) { StopDistance = 5f }; obj47.Steps = list77; reference49 = obj47; - ref QuestSequence reference50 = ref span16[5]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list78)[0]; + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.CompleteQuest, 1051011u, new Vector3(-178.63745f, 40.999916f, 186.3584f), 128) { StopDistance = 7f @@ -349642,7 +422035,9 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESANX002_05016_Q52_000_082") @@ -349658,13 +422053,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot15.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span17 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference52 = ref span17[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -349672,21 +422070,27 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); obj50.Steps = list82; reference52 = obj50; - ref QuestSequence reference53 = ref span17[1]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050729u, new Vector3(187.51807f, 42.40001f, -350.36243f), 1185); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050729u, new Vector3(187.51807f, 42.40001f, -350.36243f), 1185); obj51.Steps = list83; reference53 = obj51; - ref QuestSequence reference54 = ref span17[2]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -349694,7 +422098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); + span3 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); obj52.Steps = list84; reference54 = obj52; questRoot15.QuestSequence = list81; @@ -349704,24 +422110,30 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "liza"; questRoot16.Author = list85; - num = 4; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span18 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference55 = ref span18[0]; + index = 4; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185); obj53.Steps = list87; reference55 = obj53; - ref QuestSequence reference56 = ref span18[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -349729,7 +422141,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1050733u, new Vector3(-16.83075f, -10.000011f, 93.12573f), 1185) + span3 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050733u, new Vector3(-16.83075f, -10.000011f, 93.12573f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -349739,20 +422153,25 @@ public static class AssemblyQuestLoader }; obj54.Steps = list88; reference56 = obj54; - ref QuestSequence reference57 = ref span18[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference58 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1050734u, new Vector3(79.301025f, -17.964588f, 199.57275f), 1185); - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + span6 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA002_05018_Q1_000_000"), @@ -349762,7 +422181,8 @@ public static class AssemblyQuestLoader reference58 = questStep5; obj55.Steps = list89; reference57 = obj55; - ref QuestSequence reference59 = ref span18[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -349770,7 +422190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185) + span3 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -349787,24 +422209,30 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "liza"; questRoot17.Author = list92; - num = 5; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span19 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference60 = ref span19[0]; + index = 5; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050735u, new Vector3(121.11084f, -17.972874f, 74.021484f), 1185); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050735u, new Vector3(121.11084f, -17.972874f, 74.021484f), 1185); obj57.Steps = list94; reference60 = obj57; - ref QuestSequence reference61 = ref span19[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -349812,24 +422240,30 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1050736u, new Vector3(31.47937f, -17.9643f, 167.46765f), 1185) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050736u, new Vector3(31.47937f, -17.9643f, 167.46765f), 1185) { StopDistance = 2f }; obj58.Steps = list95; reference61 = obj58; - ref QuestSequence reference62 = ref span19[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 2014232u, new Vector3(33.310425f, -16.678162f, 167.98657f), 1185); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + span3 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014232u, new Vector3(33.310425f, -16.678162f, 167.98657f), 1185); obj59.Steps = list96; reference62 = obj59; - ref QuestSequence reference63 = ref span19[3]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -349837,18 +422271,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); obj60.Steps = list97; reference63 = obj60; - ref QuestSequence reference64 = ref span19[4]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); obj61.Steps = list98; reference64 = obj61; questRoot17.QuestSequence = list93; @@ -349858,13 +422297,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot18.Author = list99; - num = 5; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span20 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference65 = ref span20[0]; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -349872,21 +422314,27 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051038u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051038u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); obj62.Steps = list101; reference65 = obj62; - ref QuestSequence reference66 = ref span20[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); obj63.Steps = list102; reference66 = obj63; - ref QuestSequence reference67 = ref span20[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -349894,66 +422342,91 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span21 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference68 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference68 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1051026u, new Vector3(109.910645f, -14f, 39.505493f), 1185); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span22 = CollectionsMarshal.AsSpan(list104); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list104; reference68 = questStep6; - ref QuestStep reference69 = ref span21[1]; + index2++; + ref QuestStep reference69 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051027u, new Vector3(12.527649f, -10.00001f, 35.599243f), 1185); - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span23 = CollectionsMarshal.AsSpan(list105); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + span5 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list105; reference69 = questStep7; - ref QuestStep reference70 = ref span21[2]; + index2++; + ref QuestStep reference70 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1051028u, new Vector3(-69.77954f, -10.00001f, 119.79846f), 1185); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span24 = CollectionsMarshal.AsSpan(list106); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list106; reference70 = questStep8; obj64.Steps = list103; reference67 = obj64; - ref QuestSequence reference71 = ref span20[3]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(-124.85585f, -5.0000095f, 130.06908f), 1185) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(-124.85585f, -5.0000095f, 130.06908f), 1185) { StopDistance = 0.25f }; obj65.Steps = list107; reference71 = obj65; - ref QuestSequence reference72 = ref span20[4]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -349961,7 +422434,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051029u, new Vector3(-249.77496f, -9.2517585E-06f, 138.01782f), 1185); + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051029u, new Vector3(-249.77496f, -9.2517585E-06f, 138.01782f), 1185); obj66.Steps = list108; reference72 = obj66; questRoot18.QuestSequence = list100; @@ -349971,24 +422446,30 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list109); + index = 0; + span[index] = "liza"; questRoot19.Author = list109; - num = 3; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span25 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference73 = ref span25[0]; + index = 3; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + span2 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); obj67.Steps = list111; reference73 = obj67; - ref QuestSequence reference74 = ref span25[1]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -349996,18 +422477,23 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); obj68.Steps = list112; reference74 = obj68; - ref QuestSequence reference75 = ref span25[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051031u, new Vector3(-56.6568f, 52.057556f, 20.767456f), 1185); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051031u, new Vector3(-56.6568f, 52.057556f, 20.767456f), 1185); obj69.Steps = list113; reference75 = obj69; questRoot19.QuestSequence = list110; @@ -350017,13 +422503,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list114); + index = 0; + span[index] = "liza"; questRoot20.Author = list114; - num = 5; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span26 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference76 = ref span26[0]; + index = 5; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + span2 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -350031,21 +422520,27 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); + span3 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); obj70.Steps = list116; reference76 = obj70; - ref QuestSequence reference77 = ref span26[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + span3 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); obj71.Steps = list117; reference77 = obj71; - ref QuestSequence reference78 = ref span26[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -350053,26 +422548,32 @@ public static class AssemblyQuestLoader num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span27 = CollectionsMarshal.AsSpan(list118); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-290.98425f, -9.417534E-06f, 179.37634f), 1185) + span3 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-290.98425f, -9.417534E-06f, 179.37634f), 1185) { DisableNavmesh = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 2014234u, new Vector3(-272.84656f, -0.015319824f, 191.39392f), 1185); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014234u, new Vector3(-272.84656f, -0.015319824f, 191.39392f), 1185); obj72.Steps = list118; reference78 = obj72; - ref QuestSequence reference79 = ref span26[3]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + span3 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); obj73.Steps = list119; reference79 = obj73; - ref QuestSequence reference80 = ref span26[4]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -350080,7 +422581,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); + span3 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); obj74.Steps = list120; reference80 = obj74; questRoot20.QuestSequence = list115; @@ -350090,24 +422593,30 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list121); + index = 0; + span[index] = "liza"; questRoot21.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span28 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference81 = ref span28[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + span2 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185); + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185); obj75.Steps = list123; reference81 = obj75; - ref QuestSequence reference82 = ref span28[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -350115,8 +422624,9 @@ public static class AssemblyQuestLoader num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span29 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference83 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference83 = ref span3[index2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1051036u, new Vector3(-134.72198f, 45.35523f, 52.20105f), 1185) { AethernetShortcut = new AethernetShortcut @@ -350125,43 +422635,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span30 = CollectionsMarshal.AsSpan(list125); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span5 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list125; reference83 = obj77; - ref QuestStep reference84 = ref span29[1]; + index2++; + ref QuestStep reference84 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1051035u, new Vector3(-104.38696f, 54.09999f, 19.33313f), 1185); num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span31 = CollectionsMarshal.AsSpan(list126); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list126; reference84 = questStep9; obj76.Steps = list124; reference82 = obj76; - ref QuestSequence reference85 = ref span28[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350178,13 +422704,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot22.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span32 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference86 = ref span32[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -350192,52 +422721,70 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); obj79.Steps = list130; reference86 = obj79; - ref QuestSequence reference87 = ref span32[1]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - Span span33 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference88 = ref span33[0]; + index2 = 2; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference88 = ref span3[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1048431u, new Vector3(88.48706f, -14f, 56.687256f), 1185) { StopDistance = 4f }; - num3 = 6; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span34 = CollectionsMarshal.AsSpan(list132); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + span5 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list132; reference88 = obj81; - ref QuestStep reference89 = ref span33[1]; + num2++; + ref QuestStep reference89 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1051037u, new Vector3(-35.29419f, -17.97287f, 169.02417f), 1185); num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span35 = CollectionsMarshal.AsSpan(list133); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list133; reference89 = questStep10; obj80.Steps = list131; reference87 = obj80; - ref QuestSequence reference90 = ref span32[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -350245,7 +422792,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); + span3 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); obj82.Steps = list134; reference90 = obj82; questRoot22.QuestSequence = list129; @@ -350255,26 +422804,33 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "liza"; questRoot23.Author = list135; - num = 3; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span36 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference91 = ref span36[0]; + index = 3; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list137)[0]; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference92 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.AcceptQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185); - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice + index3 = 1; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span6 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA009_05025_Q1_000_000"), @@ -350284,7 +422840,8 @@ public static class AssemblyQuestLoader reference92 = questStep11; obj83.Steps = list137; reference91 = obj83; - ref QuestSequence reference93 = ref span36[1]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -350292,7 +422849,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1051040u, new Vector3(-169.93976f, 59.999985f, -54.703613f), 1185) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051040u, new Vector3(-169.93976f, 59.999985f, -54.703613f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350302,15 +422861,18 @@ public static class AssemblyQuestLoader }; obj84.Steps = list139; reference93 = obj84; - ref QuestSequence reference94 = ref span36[2]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350327,13 +422889,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot24.Author = list141; - num = 5; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span37 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference95 = ref span37[0]; + index = 5; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -350341,18 +422906,23 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185); obj86.Steps = list143; reference95 = obj86; - ref QuestSequence reference96 = ref span37[1]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 2014235u, new Vector3(-80.094604f, -19.333252f, 179.49182f), 1185) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014235u, new Vector3(-80.094604f, -19.333252f, 179.49182f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350362,7 +422932,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list144; reference96 = obj87; - ref QuestSequence reference97 = ref span37[2]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -350370,18 +422941,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 2014236u, new Vector3(-154.34503f, -14.084106f, 548.24133f), 1185); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014236u, new Vector3(-154.34503f, -14.084106f, 548.24133f), 1185); obj88.Steps = list145; reference97 = obj88; - ref QuestSequence reference98 = ref span37[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 2014237u, new Vector3(-124.77307f, -5.0202637f, 113.11511f), 1185) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014237u, new Vector3(-124.77307f, -5.0202637f, 113.11511f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -350392,7 +422968,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list146; reference98 = obj89; - ref QuestSequence reference99 = ref span37[4]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -350400,7 +422977,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185) + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350417,24 +422996,30 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list148); + index = 0; + span[index] = "liza"; questRoot25.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span38 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference100 = ref span38[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + span2 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185); obj91.Steps = list150; reference100 = obj91; - ref QuestSequence reference101 = ref span38[1]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -350442,8 +423027,9 @@ public static class AssemblyQuestLoader num2 = 2; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span39 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference102 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Emote, 1051044u, new Vector3(-307.6372f, 3f, -50.8584f), 1185) { Emote = EEmote.Soothe @@ -350451,16 +423037,23 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span40 = CollectionsMarshal.AsSpan(list152); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list152; reference102 = obj93; - ref QuestStep reference103 = ref span39[1]; + index2++; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Emote, 1051045u, new Vector3(-49.42401f, -2.7939677E-09f, 16.647583f), 1185) { AethernetShortcut = new AethernetShortcut @@ -350470,29 +423063,38 @@ public static class AssemblyQuestLoader }, Emote = EEmote.Soothe }; - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span41 = CollectionsMarshal.AsSpan(list153); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + span5 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list153; reference103 = obj94; obj92.Steps = list151; reference101 = obj92; - ref QuestSequence reference104 = ref span38[2]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350509,13 +423111,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list155); + index = 0; + span[index] = "liza"; questRoot26.Author = list155; - num = 5; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span42 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference105 = ref span42[0]; + index = 5; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + span2 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -350523,63 +423128,88 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); + span3 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); obj96.Steps = list157; reference105 = obj96; - ref QuestSequence reference106 = ref span42[1]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - Span span43 = CollectionsMarshal.AsSpan(list158); - ref QuestStep reference107 = ref span43[0]; + index2 = 3; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + span3 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference107 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014238u, new Vector3(75.12012f, -17.990417f, 154.52808f), 1185); num3 = 6; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span44 = CollectionsMarshal.AsSpan(list159); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list159; reference107 = questStep12; - ref QuestStep reference108 = ref span43[1]; + num2++; + ref QuestStep reference108 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014239u, new Vector3(64.530396f, -17.990417f, 189.56274f), 1185); - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span45 = CollectionsMarshal.AsSpan(list160); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + span5 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list160; reference108 = questStep13; - ref QuestStep reference109 = ref span43[2]; + num2++; + ref QuestStep reference109 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014240u, new Vector3(131.91418f, -17.990417f, 112.2301f), 1185); num3 = 6; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - Span span46 = CollectionsMarshal.AsSpan(list161); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list161; reference109 = questStep14; obj97.Steps = list158; reference106 = obj97; - ref QuestSequence reference110 = ref span42[2]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -350587,18 +423217,23 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); obj98.Steps = list162; reference110 = obj98; - ref QuestSequence reference111 = ref span42[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1051048u, new Vector3(-227.95453f, 40.04104f, -42.648987f), 1185) { AethernetShortcut = new AethernetShortcut @@ -350607,10 +423242,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span6 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA012_05028_Q1_000_000"), @@ -350620,7 +423257,8 @@ public static class AssemblyQuestLoader reference112 = obj100; obj99.Steps = list163; reference111 = obj99; - ref QuestSequence reference113 = ref span42[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -350628,7 +423266,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185) + span3 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350645,24 +423285,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "liza"; questRoot27.Author = list166; - num = 4; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span47 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference114 = ref span47[0]; + index = 4; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185); obj102.Steps = list168; reference114 = obj102; - ref QuestSequence reference115 = ref span47[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -350670,7 +423316,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -350681,60 +423329,83 @@ public static class AssemblyQuestLoader }; obj103.Steps = list169; reference115 = obj103; - ref QuestSequence reference116 = ref span47[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span48 = CollectionsMarshal.AsSpan(list170); - ref QuestStep reference117 = ref span48[0]; + index2 = 3; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1048547u, new Vector3(-39.35309f, -17.972866f, 198.38245f), 1185); num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span49 = CollectionsMarshal.AsSpan(list171); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list171; reference117 = questStep15; - ref QuestStep reference118 = ref span48[1]; + num2++; + ref QuestStep reference118 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1048418u, new Vector3(-54.154297f, -17.972868f, 198.44348f), 1185); - num3 = 6; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span50 = CollectionsMarshal.AsSpan(list172); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list172 = new List(index3); + CollectionsMarshal.SetCount(list172, index3); + span5 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list172; reference118 = questStep16; - ref QuestStep reference119 = ref span48[2]; + num2++; + ref QuestStep reference119 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1048546u, new Vector3(-60.83777f, -17.972868f, 197.07019f), 1185); num3 = 6; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span51 = CollectionsMarshal.AsSpan(list173); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list173; reference119 = questStep17; obj104.Steps = list170; reference116 = obj104; - ref QuestSequence reference120 = ref span47[3]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -350742,7 +423413,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350759,24 +423432,30 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "liza"; questRoot28.Author = list175; - num = 3; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span52 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference121 = ref span52[0]; + index = 3; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); obj106.Steps = list177; reference121 = obj106; - ref QuestSequence reference122 = ref span52[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -350784,77 +423463,108 @@ public static class AssemblyQuestLoader num2 = 4; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span53 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference123 = ref span53[0]; + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference123 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2014104u, new Vector3(374.77686f, -154.07043f, -373.52563f), 1187); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span54 = CollectionsMarshal.AsSpan(list179); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + span5 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list179; reference123 = questStep18; - ref QuestStep reference124 = ref span53[1]; + index2++; + ref QuestStep reference124 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014106u, new Vector3(327.90112f, -152.20874f, -369.31415f), 1187); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span55 = CollectionsMarshal.AsSpan(list180); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list180; reference124 = questStep19; - ref QuestStep reference125 = ref span53[2]; + index2++; + ref QuestStep reference125 = ref span3[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 2014105u, new Vector3(330.6172f, -158.06824f, -399.8932f), 1187) { IgnoreDistanceToObject = true }; - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span56 = CollectionsMarshal.AsSpan(list181); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + span5 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list181; reference125 = obj108; - ref QuestStep reference126 = ref span53[3]; + index2++; + ref QuestStep reference126 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2014107u, new Vector3(275.7152f, -166.94897f, -462.7909f), 1187); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span57 = CollectionsMarshal.AsSpan(list182); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list182; reference126 = questStep20; obj107.Steps = list178; reference122 = obj107; - ref QuestSequence reference127 = ref span52[2]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); obj109.Steps = list183; reference127 = obj109; questRoot28.QuestSequence = list176; @@ -350864,13 +423574,16 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list184); + index = 0; + span[index] = "liza"; questRoot29.Author = list184; - num = 3; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span58 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference128 = ref span58[0]; + index = 3; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + span2 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -350878,37 +423591,48 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187); + span3 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187); obj110.Steps = list186; reference128 = obj110; - ref QuestSequence reference129 = ref span58[1]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span59 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference130 = ref span59[0]; + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + ref QuestStep reference130 = ref span3[num2]; QuestStep obj112 = new QuestStep(EInteractionType.UseItem, 1050671u, new Vector3(191.97375f, -87.10133f, -277.39374f), 1187) { Fly = true, ItemId = 2003601u }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span60 = CollectionsMarshal.AsSpan(list188); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + span5 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj112.CompletionQuestVariablesFlags = list188; reference130 = obj112; - ref QuestStep reference131 = ref span59[1]; + num2++; + ref QuestStep reference131 = ref span3[num2]; QuestStep obj113 = new QuestStep(EInteractionType.UseItem, 1050670u, new Vector3(132.86023f, -75.24902f, -213.2143f), 1187) { Fly = true, @@ -350917,18 +423641,25 @@ public static class AssemblyQuestLoader num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span61 = CollectionsMarshal.AsSpan(list189); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj113.CompletionQuestVariablesFlags = list189; reference131 = obj113; obj111.Steps = list187; reference129 = obj111; - ref QuestSequence reference132 = ref span58[2]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -350936,7 +423667,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187) + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -350949,24 +423682,30 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "liza"; questRoot30.Author = list191; - num = 3; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span62 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference133 = ref span62[0]; + index = 3; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187); obj115.Steps = list193; reference133 = obj115; - ref QuestSequence reference134 = ref span62[1]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -350974,21 +423713,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1050672u, new Vector3(550.65234f, -54.46781f, 42.83203f), 1187) + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050672u, new Vector3(550.65234f, -54.46781f, 42.83203f), 1187) { Fly = true }; obj116.Steps = list194; reference134 = obj116; - ref QuestSequence reference135 = ref span62[2]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187) { Fly = true }; @@ -351001,13 +423745,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list196); + index = 0; + span[index] = "liza"; questRoot31.Author = list196; - num = 3; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span63 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference136 = ref span63[0]; + index = 3; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + span2 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -351015,27 +423762,33 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187); obj118.Steps = list198; reference136 = obj118; - ref QuestSequence reference137 = ref span63[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span64 = CollectionsMarshal.AsSpan(list199); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.757f, -54.457268f, 57.29732f), 1187) + index2 = 2; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.757f, -54.457268f, 57.29732f), 1187) { StopDistance = 0.5f, Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 2014108u, new Vector3(521.84326f, -53.543945f, 57.938477f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014108u, new Vector3(521.84326f, -53.543945f, 57.938477f), 1187); obj119.Steps = list199; reference137 = obj119; - ref QuestSequence reference138 = ref span63[2]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -351043,7 +423796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187) + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187) { Fly = true }; @@ -351056,24 +423811,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "liza"; questRoot32.Author = list201; - num = 4; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span65 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference139 = ref span65[0]; + index = 4; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048694u, new Vector3(-401.7243f, -46.3959f, -449.5766f), 1187); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048694u, new Vector3(-401.7243f, -46.3959f, -449.5766f), 1187); obj121.Steps = list203; reference139 = obj121; - ref QuestSequence reference140 = ref span65[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -351081,36 +423842,47 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1050674u, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187); + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050674u, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187); obj122.Steps = list204; reference140 = obj122; - ref QuestSequence reference141 = ref span65[2]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span66 = CollectionsMarshal.AsSpan(list205); - ref QuestStep reference142 = ref span66[0]; + index2 = 3; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span3 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj124 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003604u }; - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span67 = CollectionsMarshal.AsSpan(list206); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + span5 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj124.CompletionQuestVariablesFlags = list206; reference142 = obj124; - ref QuestStep reference143 = ref span66[1]; + num2++; + ref QuestStep reference143 = ref span3[num2]; QuestStep obj125 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003605u @@ -351118,35 +423890,49 @@ public static class AssemblyQuestLoader num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span68 = CollectionsMarshal.AsSpan(list207); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list207; reference143 = obj125; - ref QuestStep reference144 = ref span66[2]; + num2++; + ref QuestStep reference144 = ref span3[num2]; QuestStep obj126 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003606u }; - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span69 = CollectionsMarshal.AsSpan(list208); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + span5 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list208; reference144 = obj126; obj123.Steps = list205; reference141 = obj123; - ref QuestSequence reference145 = ref span65[3]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -351154,12 +423940,16 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list209)[0]; + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference146 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.CompleteQuest, 1048694u, new Vector3(-401.7243f, -46.3959f, -449.5766f), 1187); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB005_05034_Q1_000_000"), @@ -351176,24 +423966,30 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list211); + index = 0; + span[index] = "liza"; questRoot33.Author = list211; - num = 4; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span70 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference147 = ref span70[0]; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + span2 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050675u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050675u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187); obj128.Steps = list213; reference147 = obj128; - ref QuestSequence reference148 = ref span70[1]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -351201,27 +423997,33 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1048690u, new Vector3(-406.42407f, -41.099792f, -565.6062f), 1187) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048690u, new Vector3(-406.42407f, -41.099792f, -565.6062f), 1187) { Fly = true }; obj129.Steps = list214; reference148 = obj129; - ref QuestSequence reference149 = ref span70[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1050676u, new Vector3(-517.052f, -11.170306f, -652.58264f), 1187) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050676u, new Vector3(-517.052f, -11.170306f, -652.58264f), 1187) { Fly = true }; obj130.Steps = list215; reference149 = obj130; - ref QuestSequence reference150 = ref span70[3]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -351229,7 +424031,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050716u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050716u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187) { Fly = true }; @@ -351242,24 +424046,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; questRoot34.Author = list217; - num = 5; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span71 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference151 = ref span71[0]; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187); obj132.Steps = list219; reference151 = obj132; - ref QuestSequence reference152 = ref span71[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -351267,38 +424077,46 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list220)[0]; + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span72 = CollectionsMarshal.AsSpan(list221); - span72[0] = 17643u; - span72[1] = 17644u; + index3 = 2; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + Span span7 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span7[num3] = 17643u; + num3++; + span7[num3] = 17644u; obj134.KillEnemyDataIds = list221; reference153 = obj134; obj133.Steps = list220; reference152 = obj133; - ref QuestSequence reference154 = ref span71[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) { StopDistance = 7f }; obj135.Steps = list222; reference154 = obj135; - ref QuestSequence reference155 = ref span71[3]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -351306,21 +424124,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2014112u, new Vector3(-68.07056f, -140.15417f, -678.9197f), 1187) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014112u, new Vector3(-68.07056f, -140.15417f, -678.9197f), 1187) { StopDistance = 4.5f }; obj136.Steps = list223; reference155 = obj136; - ref QuestSequence reference156 = ref span71[4]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187) { Fly = true }; @@ -351333,13 +424156,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; questRoot35.Author = list225; - num = 4; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span73 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference157 = ref span73[0]; + index = 4; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -351347,23 +424173,28 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); obj138.Steps = list227; reference157 = obj138; - ref QuestSequence reference158 = ref span73[1]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span74 = CollectionsMarshal.AsSpan(list228); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.7804f, -68.15436f, -139.24495f), 1187) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.7804f, -68.15436f, -139.24495f), 1187) { Fly = true }; - span74[1] = new QuestStep(EInteractionType.UseItem, 1050683u, new Vector3(-194.32367f, -67.68594f, -135.57642f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 1050683u, new Vector3(-194.32367f, -67.68594f, -135.57642f), 1187) { StopDistance = 5f, ItemId = 2003608u, @@ -351371,7 +424202,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list228; reference158 = obj139; - ref QuestSequence reference159 = ref span73[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -351379,64 +424211,87 @@ public static class AssemblyQuestLoader num2 = 3; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span75 = CollectionsMarshal.AsSpan(list229); - ref QuestStep reference160 = ref span75[0]; + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + ref QuestStep reference160 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2014115u, new Vector3(-191.63806f, -67.216064f, -130.11371f), 1187); num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span76 = CollectionsMarshal.AsSpan(list230); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list230; reference160 = questStep22; - ref QuestStep reference161 = ref span75[1]; + index2++; + ref QuestStep reference161 = ref span3[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 2014114u, new Vector3(-194.78143f, -67.24658f, -131.27338f), 1187) { StopDistance = 4.5f }; - num3 = 6; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span77 = CollectionsMarshal.AsSpan(list231); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + span5 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj141.CompletionQuestVariablesFlags = list231; reference161 = obj141; - ref QuestStep reference162 = ref span75[2]; + index2++; + ref QuestStep reference162 = ref span3[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2014113u, new Vector3(-197.9859f, -66.971924f, -130.87665f), 1187); num3 = 6; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - Span span78 = CollectionsMarshal.AsSpan(list232); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list232; reference162 = questStep23; obj140.Steps = list229; reference159 = obj140; - ref QuestSequence reference163 = ref span73[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span79 = CollectionsMarshal.AsSpan(list233); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-57.510014f, -130.50172f, -442.2758f), 1187) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-57.510014f, -130.50172f, -442.2758f), 1187) { Fly = true, SkipConditions = new SkipConditions @@ -351447,7 +424302,8 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); obj142.Steps = list233; reference163 = obj142; questRoot35.QuestSequence = list226; @@ -351457,13 +424313,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list234); + index = 0; + span[index] = "liza"; questRoot36.Author = list234; - num = 3; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span80 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference164 = ref span80[0]; + index = 3; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + span2 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -351471,33 +424330,41 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187); + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187); obj143.Steps = list236; reference164 = obj143; - ref QuestSequence reference165 = ref span80[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list237)[0]; + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + ref QuestStep reference166 = ref span3[num2]; QuestStep obj145 = new QuestStep(EInteractionType.Combat, 2014116u, new Vector3(-6.1189575f, -99.50415f, -247.97437f), 1187) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 17645u; + index3 = 1; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + span7 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span7[num3] = 17645u; obj145.KillEnemyDataIds = list238; reference166 = obj145; obj144.Steps = list237; reference165 = obj144; - ref QuestSequence reference167 = ref span80[2]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -351505,7 +424372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187) + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187) { StopDistance = 0.5f, Fly = true, @@ -351520,24 +424389,30 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list240); + index = 0; + span[index] = "liza"; questRoot37.Author = list240; - num = 4; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span81 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference168 = ref span81[0]; + index = 4; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + span2 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187); obj147.Steps = list242; reference168 = obj147; - ref QuestSequence reference169 = ref span81[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -351545,7 +424420,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list243)[0]; + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + ref QuestStep reference170 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.56268f, -129.27074f, -351.33496f), 1187) { StopDistance = 0.25f, @@ -351554,26 +424431,32 @@ public static class AssemblyQuestLoader num3 = 1; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - CollectionsMarshal.AsSpan(list244)[0] = 17646u; + span7 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span7[index3] = 17646u; obj149.KillEnemyDataIds = list244; reference170 = obj149; obj148.Steps = list243; reference169 = obj148; - ref QuestSequence reference171 = ref span81[2]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1050685u, new Vector3(256.94666f, -129.72865f, -355.73358f), 1187) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050685u, new Vector3(256.94666f, -129.72865f, -355.73358f), 1187) { StopDistance = 7f }; obj150.Steps = list245; reference171 = obj150; - ref QuestSequence reference172 = ref span81[3]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue @@ -351581,7 +424464,9 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -351594,21 +424479,26 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list247); + index = 0; + span[index] = "liza"; questRoot38.Author = list247; - num = 3; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span82 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference173 = ref span82[0]; + index = 3; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + span2 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051369u, new Vector3(357.83923f, -156.11935f, -386.43475f), 1187) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051369u, new Vector3(357.83923f, -156.11935f, -386.43475f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -351621,7 +424511,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list249; reference173 = obj152; - ref QuestSequence reference174 = ref span82[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 @@ -351629,18 +424520,23 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1051370u, new Vector3(302.02173f, -163.4447f, -420.34027f), 1187); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051370u, new Vector3(302.02173f, -163.4447f, -420.34027f), 1187); obj153.Steps = list250; reference174 = obj153; - ref QuestSequence reference175 = ref span82[2]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051371u, new Vector3(303.02893f, -163.416f, -421.53052f), 1187); + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051371u, new Vector3(303.02893f, -163.416f, -421.53052f), 1187); obj154.Steps = list251; reference175 = obj154; questRoot38.QuestSequence = list248; @@ -351650,13 +424546,16 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list252); + index = 0; + span[index] = "liza"; questRoot39.Author = list252; - num = 3; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span83 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference176 = ref span83[0]; + index = 3; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + span2 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -351664,39 +424563,50 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) { StopDistance = 5f }; obj155.Steps = list254; reference176 = obj155; - ref QuestSequence reference177 = ref span83[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span84 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference178 = ref span84[0]; + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + ref QuestStep reference178 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2014120u, new Vector3(-624.5365f, 63.46228f, 210.8949f), 1187) { Fly = true }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span85 = CollectionsMarshal.AsSpan(list256); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list256 = new List(index3); + CollectionsMarshal.SetCount(list256, index3); + span5 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj157.CompletionQuestVariablesFlags = list256; reference178 = obj157; - ref QuestStep reference179 = ref span84[1]; + num2++; + ref QuestStep reference179 = ref span3[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, 2014121u, new Vector3(-663.9048f, 61.875244f, 207.20227f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -351704,37 +424614,53 @@ public static class AssemblyQuestLoader num3 = 1; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = 17647u; + span7 = CollectionsMarshal.AsSpan(list257); + index3 = 0; + span7[index3] = 17647u; obj158.KillEnemyDataIds = list257; - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span86 = CollectionsMarshal.AsSpan(list258); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + span5 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj158.CompletionQuestVariablesFlags = list258; reference179 = obj158; - ref QuestStep reference180 = ref span84[2]; + num2++; + ref QuestStep reference180 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2014119u, new Vector3(-658.4421f, 59.03711f, 182.42151f), 1187); num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span87 = CollectionsMarshal.AsSpan(list259); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list259; reference180 = questStep24; obj156.Steps = list255; reference177 = obj156; - ref QuestSequence reference181 = ref span83[2]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -351742,7 +424668,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) { StopDistance = 5f, Fly = true @@ -351756,27 +424684,33 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list261); + index = 0; + span[index] = "liza"; questRoot40.Author = list261; - num = 5; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span88 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference182 = ref span88[0]; + index = 5; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + span2 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) { StopDistance = 5f }; obj160.Steps = list263; reference182 = obj160; - ref QuestSequence reference183 = ref span88[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -351784,24 +424718,30 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 2014123u, new Vector3(-84.55023f, 16.830688f, 17.288391f), 1187) + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014123u, new Vector3(-84.55023f, 16.830688f, 17.288391f), 1187) { StopDistance = 4.5f }; obj161.Steps = list264; reference183 = obj161; - ref QuestSequence reference184 = ref span88[2]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 2014124u, new Vector3(-299.64142f, 62.638306f, -66.331055f), 1187); + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014124u, new Vector3(-299.64142f, 62.638306f, -66.331055f), 1187); obj162.Steps = list265; reference184 = obj162; - ref QuestSequence reference185 = ref span88[3]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -351809,21 +424749,26 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1050691u, new Vector3(-300.28235f, 62.68029f, -68.89453f), 1187) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050691u, new Vector3(-300.28235f, 62.68029f, -68.89453f), 1187) { StopDistance = 7f }; obj163.Steps = list266; reference185 = obj163; - ref QuestSequence reference186 = ref span88[4]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) { StopDistance = 5f, Fly = true, @@ -351838,13 +424783,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "liza"; questRoot41.Author = list268; - num = 3; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span89 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference187 = ref span89[0]; + index = 3; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -351852,40 +424800,51 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) { StopDistance = 5f }; obj165.Steps = list270; reference187 = obj165; - ref QuestSequence reference188 = ref span89[1]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span90 = CollectionsMarshal.AsSpan(list271); - ref QuestStep reference189 = ref span90[0]; + index2 = 3; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + ref QuestStep reference189 = ref span3[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Instruction, 2014126u, new Vector3(-182.69635f, 51.68225f, 164.56848f), 1187) { Fly = true, Comment = "TODO Needs item use" }; - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span91 = CollectionsMarshal.AsSpan(list272); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list272 = new List(index3); + CollectionsMarshal.SetCount(list272, index3); + span5 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj167.CompletionQuestVariablesFlags = list272; reference189 = obj167; - ref QuestStep reference190 = ref span90[1]; + num2++; + ref QuestStep reference190 = ref span3[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2014125u, new Vector3(-161.57782f, 39.902344f, 252.39941f), 1187) { Fly = true @@ -351893,36 +424852,50 @@ public static class AssemblyQuestLoader num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span92 = CollectionsMarshal.AsSpan(list273); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list273); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list273; reference190 = obj168; - ref QuestStep reference191 = ref span90[2]; + num2++; + ref QuestStep reference191 = ref span3[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Instruction, 2014127u, new Vector3(-239.36829f, 49.79016f, 343.52625f), 1187) { Fly = true, Comment = "TODO Needs item use" }; - num3 = 6; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - Span span93 = CollectionsMarshal.AsSpan(list274); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + span5 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj169.CompletionQuestVariablesFlags = list274; reference191 = obj169; obj166.Steps = list271; reference188 = obj166; - ref QuestSequence reference192 = ref span89[2]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -351930,7 +424903,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) { StopDistance = 5f, Fly = true @@ -351944,27 +424919,33 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "liza"; questRoot42.Author = list276; - num = 3; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span94 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference193 = ref span94[0]; + index = 3; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050692u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050692u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) { StopDistance = 5f }; obj171.Steps = list278; reference193 = obj171; - ref QuestSequence reference194 = ref span94[1]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -351972,7 +424953,9 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list279)[0]; + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + ref QuestStep reference195 = ref span3[index2]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, 2014128u, new Vector3(-71.64111f, 18.295532f, 255.75635f), 1187) { Fly = true, @@ -351981,20 +424964,25 @@ public static class AssemblyQuestLoader num3 = 1; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 17649u; + span7 = CollectionsMarshal.AsSpan(list280); + index3 = 0; + span7[index3] = 17649u; obj173.KillEnemyDataIds = list280; reference195 = obj173; obj172.Steps = list279; reference194 = obj172; - ref QuestSequence reference196 = ref span94[2]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050720u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050720u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) { StopDistance = 5f, Fly = true @@ -352008,13 +424996,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list282); + index = 0; + span[index] = "liza"; questRoot43.Author = list282; - num = 3; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span95 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference197 = ref span95[0]; + index = 3; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + span2 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -352022,39 +425013,50 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) { StopDistance = 5f }; obj175.Steps = list284; reference197 = obj175; - ref QuestSequence reference198 = ref span95[1]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span96 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference199 = ref span96[0]; + index2 = 3; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + ref QuestStep reference199 = ref span3[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2014130u, new Vector3(438.651f, 103.80713f, 299.33618f), 1187) { Fly = true }; - num3 = 6; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span97 = CollectionsMarshal.AsSpan(list286); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list286 = new List(index3); + CollectionsMarshal.SetCount(list286, index3); + span5 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj177.CompletionQuestVariablesFlags = list286; reference199 = obj177; - ref QuestStep reference200 = ref span96[1]; + num2++; + ref QuestStep reference200 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2014129u, new Vector3(466.23938f, 106.767334f, 244.67834f), 1187) { Fly = true @@ -352062,32 +425064,46 @@ public static class AssemblyQuestLoader num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span98 = CollectionsMarshal.AsSpan(list287); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj178.CompletionQuestVariablesFlags = list287; reference200 = obj178; - ref QuestStep reference201 = ref span96[2]; + num2++; + ref QuestStep reference201 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2014131u, new Vector3(486.6255f, 112.71838f, 271.13745f), 1187); - num3 = 6; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span99 = CollectionsMarshal.AsSpan(list288); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + span5 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list288; reference201 = questStep25; obj176.Steps = list285; reference198 = obj176; - ref QuestSequence reference202 = ref span95[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -352095,7 +425111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -352109,27 +425127,33 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list290); + index = 0; + span[index] = "liza"; questRoot44.Author = list290; - num = 3; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span100 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference203 = ref span100[0]; + index = 3; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + span2 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) { StopDistance = 5f }; obj180.Steps = list292; reference203 = obj180; - ref QuestSequence reference204 = ref span100[1]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -352137,7 +425161,9 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list293)[0]; + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference205 = ref span3[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, null, new Vector3(375.92813f, 74.827896f, 411.13763f), 1187) { Fly = true, @@ -352146,20 +425172,25 @@ public static class AssemblyQuestLoader num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = 17484u; + span7 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span7[index3] = 17484u; obj182.KillEnemyDataIds = list294; reference205 = obj182; obj181.Steps = list293; reference204 = obj181; - ref QuestSequence reference206 = ref span100[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + span3 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) { StopDistance = 5f, Fly = true @@ -352173,13 +425204,16 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "liza"; questRoot45.Author = list296; - num = 5; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span101 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference207 = ref span101[0]; + index = 5; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -352187,27 +425221,33 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + span3 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f }; obj184.Steps = list298; reference207 = obj184; - ref QuestSequence reference208 = ref span101[1]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) { StopDistance = 4.5f }; obj185.Steps = list299; reference208 = obj185; - ref QuestSequence reference209 = ref span101[2]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -352215,41 +425255,52 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) { StopDistance = 4.5f }; obj186.Steps = list300; reference209 = obj186; - ref QuestSequence reference210 = ref span101[3]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span102 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference211 = ref span102[0]; + index2 = 4; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref QuestStep reference211 = ref span3[num2]; QuestStep obj188 = new QuestStep(EInteractionType.UseItem, 2014133u, new Vector3(387.59436f, 131.0597f, 640.772f), 1187) { StopDistance = 3f, IgnoreDistanceToObject = true, ItemId = 2003618u }; - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span103 = CollectionsMarshal.AsSpan(list302); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + span5 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list302; reference211 = obj188; - ref QuestStep reference212 = ref span102[1]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep obj189 = new QuestStep(EInteractionType.UseItem, 2014135u, new Vector3(489.95178f, 114.4884f, 698.3596f), 1187) { StopDistance = 3f, @@ -352259,16 +425310,23 @@ public static class AssemblyQuestLoader num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span104 = CollectionsMarshal.AsSpan(list303); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj189.CompletionQuestVariablesFlags = list303; reference212 = obj189; - ref QuestStep reference213 = ref span102[2]; + num2++; + ref QuestStep reference213 = ref span3[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Jump, null, new Vector3(530.3024f, 111.13472f, 604.9302f), 1187) { JumpDestination = new JumpDestination @@ -352279,21 +425337,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span105 = CollectionsMarshal.AsSpan(list304); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + span5 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list304; skipConditions3.StepIf = skipStepConditions; obj190.SkipConditions = skipConditions3; reference213 = obj190; - ref QuestStep reference214 = ref span102[3]; + num2++; + ref QuestStep reference214 = ref span3[num2]; QuestStep obj191 = new QuestStep(EInteractionType.UseItem, 2014134u, new Vector3(533.53174f, 114.24426f, 603.0823f), 1187) { StopDistance = 3f, @@ -352303,18 +425368,25 @@ public static class AssemblyQuestLoader num3 = 6; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - Span span106 = CollectionsMarshal.AsSpan(list305); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj191.CompletionQuestVariablesFlags = list305; reference214 = obj191; obj187.Steps = list301; reference210 = obj187; - ref QuestSequence reference215 = ref span101[4]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue @@ -352322,9 +425394,11 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span107 = CollectionsMarshal.AsSpan(list306); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(415.27682f, 122.535f, 564.56915f), 1187); - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(415.27682f, 122.535f, 564.56915f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f }; @@ -352337,27 +425411,33 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list307); + index = 0; + span[index] = "liza"; questRoot46.Author = list307; - num = 4; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span108 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference216 = ref span108[0]; + index = 4; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + span2 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) { StopDistance = 5f }; obj193.Steps = list309; reference216 = obj193; - ref QuestSequence reference217 = ref span108[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 @@ -352365,22 +425445,27 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Emote, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) + span3 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) { Fly = true, Emote = EEmote.Soothe }; obj194.Steps = list310; reference217 = obj194; - ref QuestSequence reference218 = ref span108[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Say, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) { ChatMessage = new ChatMessage { @@ -352389,7 +425474,8 @@ public static class AssemblyQuestLoader }; obj195.Steps = list311; reference218 = obj195; - ref QuestSequence reference219 = ref span108[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -352397,7 +425483,9 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) { StopDistance = 5f, Fly = true, @@ -352412,27 +425500,33 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list313); + index = 0; + span[index] = "liza"; questRoot47.Author = list313; - num = 5; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span109 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference220 = ref span109[0]; + index = 5; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + span2 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) { StopDistance = 1f }; obj197.Steps = list315; reference220 = obj197; - ref QuestSequence reference221 = ref span109[1]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 @@ -352440,71 +425534,93 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1050697u, new Vector3(190.4784f, 18.978786f, 210.49817f), 1187) + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050697u, new Vector3(190.4784f, 18.978786f, 210.49817f), 1187) { Fly = true }; obj198.Steps = list316; reference221 = obj198; - ref QuestSequence reference222 = ref span109[2]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span110 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference223 = ref span110[0]; + index2 = 2; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference223 = ref span3[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, null, new Vector3(238.52116f, 47.201637f, 78.30595f), 1187) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = 17650u; + index3 = 1; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + span7 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span7[num3] = 17650u; obj200.KillEnemyDataIds = list318; num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span111 = CollectionsMarshal.AsSpan(list319); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list319; reference223 = obj200; - ref QuestStep reference224 = ref span110[1]; + num2++; + ref QuestStep reference224 = ref span3[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(173.96666f, 56.288116f, -18.299652f), 1187) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 17650u; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + span7 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span7[num3] = 17650u; obj201.KillEnemyDataIds = list320; num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span112 = CollectionsMarshal.AsSpan(list321); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list321; reference224 = obj201; obj199.Steps = list317; reference222 = obj199; - ref QuestSequence reference225 = ref span109[3]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -352512,29 +425628,36 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list322)[0]; + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + ref QuestStep reference226 = ref span3[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 1050698u, new Vector3(97.642456f, 38.62021f, -35.81299f), 1187) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - CollectionsMarshal.AsSpan(list323)[0] = 17651u; + index3 = 1; + List list323 = new List(index3); + CollectionsMarshal.SetCount(list323, index3); + span7 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span7[num3] = 17651u; obj203.KillEnemyDataIds = list323; reference226 = obj203; obj202.Steps = list322; reference225 = obj202; - ref QuestSequence reference227 = ref span109[4]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) { StopDistance = 1f, Fly = true, @@ -352553,13 +425676,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -352567,22 +425693,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1048774u, new Vector3(495.35352f, 114.935f, 632.95935f), 1187) { Fly = true @@ -352590,33 +425720,47 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span4 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span3[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1048745u, new Vector3(383.3523f, 129.04726f, 657.52637f), 1187) { Fly = true }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span3[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1048747u, new Vector3(348.47034f, 130.34726f, 597.3755f), 1187) { Fly = true @@ -352624,18 +425768,25 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -352643,7 +425794,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) + span3 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) { StopDistance = 5f, Fly = true @@ -352657,24 +425810,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "liza"; questRoot2.Author = list9; - num = 4; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 4; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -352682,21 +425841,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span6[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1051196u, new Vector3(297.19995f, -172.65335f, -488.57864f), 1187); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051196u, new Vector3(297.19995f, -172.65335f, -488.57864f), 1187); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span6[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -352704,7 +425869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list10; @@ -352714,21 +425881,26 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list15); + index = 0; + span[index] = "liza"; questRoot3.Author = list15; - num = 5; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 5; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + span2 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -352746,7 +425918,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -352754,27 +425927,33 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1051199u, new Vector3(442.95398f, -116.815155f, -178.63745f), 1187) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051199u, new Vector3(442.95398f, -116.815155f, -178.63745f), 1187) { Fly = true }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span7[2]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span7[3]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -352782,18 +425961,23 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1048773u, new Vector3(576.2875f, -49.16388f, 37.00305f), 1187); + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048773u, new Vector3(576.2875f, -49.16388f, 37.00305f), 1187); obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span7[4]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -352808,13 +425992,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list22); + index = 0; + span[index] = "liza"; questRoot4.Author = list22; - num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span8 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span8[0]; + index = 3; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + span2 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -352822,7 +426009,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + span3 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -352839,10 +426028,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span5 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q1_000_000"), @@ -352852,47 +426043,63 @@ public static class AssemblyQuestLoader reference17 = obj17; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span9 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference19 = ref span9[0]; + index2 = 4; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference19 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1048629u, new Vector3(353.35315f, -158.06824f, -423.72784f), 1187); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list27; reference19 = questStep; - ref QuestStep reference20 = ref span9[1]; + num2++; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1051202u, new Vector3(338.55188f, -160.20284f, -450.9804f), 1187) { Fly = true }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span11 = CollectionsMarshal.AsSpan(list28); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + span4 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; - ref QuestStep reference21 = ref span9[2]; + num2++; + ref QuestStep reference21 = ref span3[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1051203u, new Vector3(283.22266f, -168.30641f, -452.26215f), 1187) { Fly = true @@ -352900,35 +426107,49 @@ public static class AssemblyQuestLoader num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list29; reference21 = obj20; - ref QuestStep reference22 = ref span9[3]; + num2++; + ref QuestStep reference22 = ref span3[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1048660u, new Vector3(246.3263f, -168.27f, -487.20532f), 1187) { Fly = true }; - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + span4 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list30; reference22 = obj21; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -352936,7 +426157,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference24 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Fly = true @@ -352944,7 +426167,9 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q2_000_000") @@ -352961,21 +426186,26 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot5.Author = list33; - num = 5; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span14 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span14[0]; + index = 5; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -352993,7 +426223,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list35; reference25 = obj24; - ref QuestSequence reference26 = ref span14[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -353001,29 +426232,36 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) { Fly = true }; obj25.Steps = list36; reference26 = obj25; - ref QuestSequence reference27 = ref span14[2]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + span3 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference28 = ref span3[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2014271u, new Vector3(560.9064f, -54.459473f, 22.781677f), 1187) { DisableNavmesh = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + span5 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB204_05054_Q1_000_000") @@ -353032,7 +426270,8 @@ public static class AssemblyQuestLoader reference28 = obj27; obj26.Steps = list37; reference27 = obj26; - ref QuestSequence reference29 = ref span14[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -353040,21 +426279,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051204u, new Vector3(562.7374f, -54.457336f, 21.530457f), 1187) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051204u, new Vector3(562.7374f, -54.457336f, 21.530457f), 1187) { StopDistance = 5f }; obj28.Steps = list39; reference29 = obj28; - ref QuestSequence reference30 = ref span14[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -353067,13 +426311,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list41); + index = 0; + span[index] = "liza"; questRoot6.Author = list41; - num = 5; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span15 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span15[0]; + index = 5; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + span2 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -353081,29 +426328,35 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f }; obj30.Steps = list43; reference31 = obj30; - ref QuestSequence reference32 = ref span15[1]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span16 = CollectionsMarshal.AsSpan(list44); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.22293f, 22.315279f, 284.40256f), 1187); - span16[1] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.22293f, 22.315279f, 284.40256f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187) { StopDistance = 5f }; obj31.Steps = list44; reference32 = obj31; - ref QuestSequence reference33 = ref span15[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -353111,7 +426364,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list45)[0]; + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2014272u, new Vector3(133.53162f, 22.2323f, 295.9182f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -353119,28 +426374,34 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 17652u; + Span span6 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span6[num4] = 17652u; obj33.KillEnemyDataIds = list46; reference34 = obj33; obj32.Steps = list45; reference33 = obj32; - ref QuestSequence reference35 = ref span15[3]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span17 = CollectionsMarshal.AsSpan(list47); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(150.55826f, 15.18635f, 247.66484f), 1187) + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(150.55826f, 15.18635f, 247.66484f), 1187) { Comment = "Avoids combat" }; - span17[1] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); obj34.Steps = list47; reference35 = obj34; - ref QuestSequence reference36 = ref span15[4]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -353148,7 +426409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -353162,21 +426425,26 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot7.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span18 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span18[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, @@ -353194,10 +426462,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + span5 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB302_05056_Q1_000_000"), @@ -353207,7 +426477,8 @@ public static class AssemblyQuestLoader reference38 = obj37; obj36.Steps = list51; reference37 = obj36; - ref QuestSequence reference39 = ref span18[1]; + num++; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -353215,22 +426486,26 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) { Fly = true }; obj38.Steps = list53; reference39 = obj38; - ref QuestSequence reference40 = ref span18[2]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference41 = ref span19[0]; + index2 = 3; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference41 = ref span3[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 2014275u, new Vector3(673.2433f, 124.40674f, 416.28137f), 1187) { StopDistance = 0.25f, @@ -353239,34 +426514,48 @@ public static class AssemblyQuestLoader num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span20 = CollectionsMarshal.AsSpan(list55); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list55; reference41 = obj40; - ref QuestStep reference42 = ref span19[1]; + num2++; + ref QuestStep reference42 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2014273u, new Vector3(631.58606f, 124.833984f, 405.7527f), 1187) { StopDistance = 0.25f, Fly = true }; - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span21 = CollectionsMarshal.AsSpan(list56); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + span4 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list56; reference42 = obj41; - ref QuestStep reference43 = ref span19[2]; + num2++; + ref QuestStep reference43 = ref span3[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 2014274u, new Vector3(637.93384f, 120.80554f, 352.34607f), 1187) { StopDistance = 0.25f, @@ -353275,18 +426564,25 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span22 = CollectionsMarshal.AsSpan(list57); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list57; reference43 = obj42; obj39.Steps = list54; reference40 = obj39; - ref QuestSequence reference44 = ref span18[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -353294,28 +426590,34 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1051213u, new Vector3(624.9331f, 122.30835f, 387.41125f), 1187) + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051213u, new Vector3(624.9331f, 122.30835f, 387.41125f), 1187) { StopDistance = 5f }; obj43.Steps = list58; reference44 = obj43; - ref QuestSequence reference45 = ref span18[4]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; obj44.Steps = list59; reference45 = obj44; - ref QuestSequence reference46 = ref span18[5]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -353323,7 +426625,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, Fly = true, @@ -353338,21 +426642,26 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; questRoot8.Author = list61; - num = 6; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span23 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference47 = ref span23[0]; + index = 6; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span3[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, @@ -353370,10 +426679,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + span5 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB303_05057_Q1_000_000"), @@ -353383,7 +426694,8 @@ public static class AssemblyQuestLoader reference48 = obj47; obj46.Steps = list63; reference47 = obj46; - ref QuestSequence reference49 = ref span23[1]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -353391,40 +426703,47 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1051214u, new Vector3(256.21423f, 25.563068f, 227.55774f), 1187) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051214u, new Vector3(256.21423f, 25.563068f, 227.55774f), 1187) { Fly = true }; obj48.Steps = list65; reference49 = obj48; - ref QuestSequence reference50 = ref span23[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span24 = CollectionsMarshal.AsSpan(list66); - span24[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(215.6255f, 24.677507f, 182.81274f), 1187) + index2 = 5; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(215.6255f, 24.677507f, 182.81274f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - span24[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(167.20306f, 24.205856f, 150.9515f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(167.20306f, 24.205856f, 150.9515f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - span24[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(202.11948f, 39.574707f, 86.737045f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(202.11948f, 39.574707f, 86.737045f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - ref QuestStep reference51 = ref span24[3]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187) { Mount = false, @@ -353434,13 +426753,17 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 17654u; + span6 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span6[num4] = 17654u; obj50.KillEnemyDataIds = list67; reference51 = obj50; - span24[4] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); obj49.Steps = list66; reference50 = obj49; - ref QuestSequence reference52 = ref span23[3]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -353448,37 +426771,44 @@ public static class AssemblyQuestLoader num2 = 3; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span25 = CollectionsMarshal.AsSpan(list68); - span25[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(235.00903f, 44.070503f, -28.761452f), 1187) + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(235.00903f, 44.070503f, -28.761452f), 1187) { NpcWaitDistance = 6.5f, Mount = false, Sprint = false }; - span25[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187) { NpcWaitDistance = 6.5f, Mount = false, Sprint = false }; - span25[2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); obj51.Steps = list68; reference52 = obj51; - ref QuestSequence reference53 = ref span23[4]; + num++; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1051215u, new Vector3(247.60815f, 29.59192f, -64.40839f), 1187) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051215u, new Vector3(247.60815f, 29.59192f, -64.40839f), 1187) { StopDistance = 5f }; obj52.Steps = list69; reference53 = obj52; - ref QuestSequence reference54 = ref span23[5]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -353486,7 +426816,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353501,21 +426833,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot9.Author = list71; - num = 8; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span26 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span26[0]; + index = 8; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span3 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353534,7 +426871,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list73; reference55 = obj54; - ref QuestSequence reference56 = ref span26[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -353542,27 +426880,33 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051216u, new Vector3(522.8502f, 111.135f, 614.3434f), 1187) + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051216u, new Vector3(522.8502f, 111.135f, 614.3434f), 1187) { Fly = true }; obj55.Steps = list74; reference56 = obj55; - ref QuestSequence reference57 = ref span26[2]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1051218u, new Vector3(-595.72754f, 58.576252f, 137.86523f), 1187) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051218u, new Vector3(-595.72754f, 58.576252f, 137.86523f), 1187) { Fly = true }; obj56.Steps = list75; reference57 = obj56; - ref QuestSequence reference58 = ref span26[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -353570,36 +426914,44 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1051221u, new Vector3(-670.25256f, 53.34527f, 126.29883f), 1187) + span3 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051221u, new Vector3(-670.25256f, 53.34527f, 126.29883f), 1187) { StopDistance = 0.25f, Fly = true }; obj57.Steps = list76; reference58 = obj57; - ref QuestSequence reference59 = ref span26[4]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list77)[0]; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-779.43585f, 61.86622f, 198.07907f), 1187) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 17655u; + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + span6 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span6[num3] = 17655u; obj59.KillEnemyDataIds = list78; reference60 = obj59; obj58.Steps = list77; reference59 = obj58; - ref QuestSequence reference61 = ref span26[5]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 5 @@ -353607,27 +426959,33 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1051223u, new Vector3(-781.3993f, 61.80422f, 198.2909f), 1187) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051223u, new Vector3(-781.3993f, 61.80422f, 198.2909f), 1187) { StopDistance = 8f }; obj60.Steps = list79; reference61 = obj60; - ref QuestSequence reference62 = ref span26[6]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1051225u, new Vector3(-787.5334f, 50.050797f, 88.54797f), 1187) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051225u, new Vector3(-787.5334f, 50.050797f, 88.54797f), 1187) { StopDistance = 5f }; obj61.Steps = list80; reference62 = obj61; - ref QuestSequence reference63 = ref span26[7]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -353635,7 +426993,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + span3 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353650,21 +427010,26 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list82); + index = 0; + span[index] = "liza"; questRoot10.Author = list82; - num = 6; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference64 = ref span27[0]; + index = 6; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + span2 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353683,7 +427048,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list84; reference64 = obj63; - ref QuestSequence reference65 = ref span27[1]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -353691,27 +427057,33 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; obj64.Steps = list85; reference65 = obj64; - ref QuestSequence reference66 = ref span27[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1051228u, new Vector3(476.2798f, -133.9321f, -353.01752f), 1187) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051228u, new Vector3(476.2798f, -133.9321f, -353.01752f), 1187) { Fly = true }; obj65.Steps = list86; reference66 = obj65; - ref QuestSequence reference67 = ref span27[3]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -353719,28 +427091,34 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1051230u, new Vector3(-23.422668f, 54.695663f, 533.1044f), 1187) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051230u, new Vector3(-23.422668f, 54.695663f, 533.1044f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; obj66.Steps = list87; reference67 = obj66; - ref QuestSequence reference68 = ref span27[4]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1051235u, new Vector3(-22.354492f, 54.58289f, 536.1256f), 1187) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051235u, new Vector3(-22.354492f, 54.58289f, 536.1256f), 1187) { StopDistance = 5f }; obj67.Steps = list88; reference68 = obj67; - ref QuestSequence reference69 = ref span27[5]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -353748,7 +427126,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051236u, new Vector3(426.3828f, 118.935f, 603.6621f), 1187) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051236u, new Vector3(426.3828f, 118.935f, 603.6621f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -353761,24 +427141,30 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list90); + index = 0; + span[index] = "liza"; questRoot11.Author = list90; - num = 4; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span28 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference70 = ref span28[0]; + index = 4; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + span2 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188); + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + span3 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188); obj69.Steps = list92; reference70 = obj69; - ref QuestSequence reference71 = ref span28[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -353786,28 +427172,33 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span29 = CollectionsMarshal.AsSpan(list93); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.41179f, 15.238003f, -677.9412f), 1188) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.41179f, 15.238003f, -677.9412f), 1188) { Fly = true }; - span29[1] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); obj70.Steps = list93; reference71 = obj70; - ref QuestSequence reference72 = ref span28[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span30 = CollectionsMarshal.AsSpan(list94); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(183.02583f, -0.40592146f, -568.2219f), 1188) + index2 = 4; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(183.02583f, -0.40592146f, -568.2219f), 1188) { Fly = true }; - ref QuestStep reference73 = ref span30[1]; + num2++; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2014163u, new Vector3(181.8722f, 0.99176025f, -568.5359f), 1188) { Fly = true, @@ -353816,33 +427207,47 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span31 = CollectionsMarshal.AsSpan(list95); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list95; reference73 = obj72; - ref QuestStep reference74 = ref span30[2]; + num2++; + ref QuestStep reference74 = ref span3[num2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2014161u, new Vector3(221.57617f, 0.99176025f, -610.7423f), 1188) { ItemId = 2003626u }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span32 = CollectionsMarshal.AsSpan(list96); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + span4 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list96; reference74 = obj73; - ref QuestStep reference75 = ref span30[3]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2014162u, new Vector3(244.953f, 1.1138916f, -569.2684f), 1188) { ItemId = 2003626u @@ -353850,18 +427255,25 @@ public static class AssemblyQuestLoader num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span33 = CollectionsMarshal.AsSpan(list97); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list97; reference75 = obj74; obj71.Steps = list94; reference72 = obj71; - ref QuestSequence reference76 = ref span28[3]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -353869,7 +427281,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -353883,24 +427297,30 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list99); + index = 0; + span[index] = "liza"; questRoot12.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span34 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference77 = ref span34[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + span2 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + span3 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188); obj76.Steps = list101; reference77 = obj76; - ref QuestSequence reference78 = ref span34[1]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -353908,8 +427328,9 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span35 = CollectionsMarshal.AsSpan(list102); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.05529f, 25.199324f, -523.8404f), 1188) + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.05529f, 25.199324f, -523.8404f), 1188) { Mount = true, SkipConditions = new SkipConditions @@ -353920,29 +427341,35 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference79 = ref span35[1]; + index2++; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2014195u, new Vector3(-314.2901f, 0.38146973f, -211.26117f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 17656u; + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + span6 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span6[num3] = 17656u; obj78.KillEnemyDataIds = list103; reference79 = obj78; obj77.Steps = list102; reference78 = obj77; - ref QuestSequence reference80 = ref span34[2]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -353956,13 +427383,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list105); + index = 0; + span[index] = "liza"; questRoot13.Author = list105; - num = 3; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span36 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference81 = ref span36[0]; + index = 3; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + span2 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -353970,18 +427400,23 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); obj80.Steps = list107; reference81 = obj80; - ref QuestSequence reference82 = ref span36[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list108)[0]; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference83 = ref span3[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2014196u, new Vector3(819.6382f, 14.084045f, -312.21484f), 1188) { Fly = true, @@ -353990,14 +427425,17 @@ public static class AssemblyQuestLoader num3 = 2; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span37 = CollectionsMarshal.AsSpan(list109); - span37[0] = 17657u; - span37[1] = 17658u; + span6 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span6[num4] = 17657u; + num4++; + span6[num4] = 17658u; obj82.KillEnemyDataIds = list109; reference83 = obj82; obj81.Steps = list108; reference82 = obj81; - ref QuestSequence reference84 = ref span36[2]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -354005,7 +427443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188) + span3 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -354018,24 +427458,30 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list111); + index = 0; + span[index] = "liza"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span38 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference85 = ref span38[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + span2 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); obj84.Steps = list113; reference85 = obj84; - ref QuestSequence reference86 = ref span38[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -354043,25 +427489,33 @@ public static class AssemblyQuestLoader num2 = 3; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span39 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference87 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014165u, new Vector3(255.57336f, -0.015319824f, -350.57605f), 1188) { Fly = true }; - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span40 = CollectionsMarshal.AsSpan(list115); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + span4 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list115; reference87 = obj86; - ref QuestStep reference88 = ref span39[1]; + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2014166u, new Vector3(198.74878f, -0.015319824f, -385.39716f), 1188) { Fly = true @@ -354069,43 +427523,59 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span41 = CollectionsMarshal.AsSpan(list116); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list116; reference88 = obj87; - ref QuestStep reference89 = ref span39[2]; + index2++; + ref QuestStep reference89 = ref span3[index2]; QuestStep obj88 = new QuestStep(EInteractionType.Interact, 2014164u, new Vector3(92.69849f, -0.015319824f, -409.26227f), 1188) { Fly = true }; - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span42 = CollectionsMarshal.AsSpan(list117); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + span4 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj88.CompletionQuestVariablesFlags = list117; reference89 = obj88; obj85.Steps = list114; reference86 = obj85; - ref QuestSequence reference90 = ref span38[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048821u, new Vector3(-39.35309f, 21.48717f, -69.44385f), 1188); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048821u, new Vector3(-39.35309f, 21.48717f, -69.44385f), 1188); obj89.Steps = list118; reference90 = obj89; questRoot14.QuestSequence = list112; @@ -354115,13 +427585,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list119); + index = 0; + span[index] = "liza"; questRoot15.Author = list119; - num = 4; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span43 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference91 = ref span43[0]; + index = 4; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + span2 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -354129,63 +427602,88 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); obj90.Steps = list121; reference91 = obj90; - ref QuestSequence reference92 = ref span43[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span44 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference93 = ref span44[0]; + index2 = 3; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference93 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2014167u, new Vector3(-241.56561f, 6.0578003f, -356.40503f), 1188); num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span45 = CollectionsMarshal.AsSpan(list123); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list123; reference93 = questStep2; - ref QuestStep reference94 = ref span44[1]; + num2++; + ref QuestStep reference94 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014168u, new Vector3(-262.50098f, 4.989685f, -318.25745f), 1188); - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span46 = CollectionsMarshal.AsSpan(list124); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list124; reference94 = questStep3; - ref QuestStep reference95 = ref span44[2]; + num2++; + ref QuestStep reference95 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014169u, new Vector3(-280.81183f, 4.989685f, -320.8515f), 1188); num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span47 = CollectionsMarshal.AsSpan(list125); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list125; reference95 = questStep4; obj91.Steps = list122; reference92 = obj91; - ref QuestSequence reference96 = ref span43[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -354193,8 +427691,9 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span48 = CollectionsMarshal.AsSpan(list126); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(399.21567f, -0.40000004f, -384.69452f), 1188) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(399.21567f, -0.40000004f, -384.69452f), 1188) { Comment = "Waypoint after swimming through the river", SkipConditions = new SkipConditions @@ -354205,7 +427704,8 @@ public static class AssemblyQuestLoader } } }; - span48[1] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -354218,15 +427718,18 @@ public static class AssemblyQuestLoader }; obj92.Steps = list126; reference96 = obj92; - ref QuestSequence reference97 = ref span43[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -354239,13 +427742,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot16.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span49 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference98 = ref span49[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -354253,36 +427759,47 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); obj94.Steps = list130; reference98 = obj94; - ref QuestSequence reference99 = ref span49[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - Span span50 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference100 = ref span50[0]; + index2 = 3; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - num3 = 6; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + span4 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list132; reference100 = obj96; - ref QuestStep reference101 = ref span50[1]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1048787u, new Vector3(-143.51111f, 9.842161f, -425.7115f), 1188) { Fly = true @@ -354290,35 +427807,49 @@ public static class AssemblyQuestLoader num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span52 = CollectionsMarshal.AsSpan(list133); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list133; reference101 = obj97; - ref QuestStep reference102 = ref span50[2]; + num2++; + ref QuestStep reference102 = ref span3[num2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span53 = CollectionsMarshal.AsSpan(list134); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + span4 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list134; reference102 = obj98; obj95.Steps = list131; reference99 = obj95; - ref QuestSequence reference103 = ref span49[2]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -354326,7 +427857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); + span3 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); obj99.Steps = list135; reference103 = obj99; questRoot16.QuestSequence = list129; @@ -354336,24 +427869,30 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list136); + index = 0; + span[index] = "liza"; questRoot17.Author = list136; - num = 5; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span54 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference104 = ref span54[0]; + index = 5; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + span2 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188); obj100.Steps = list138; reference104 = obj100; - ref QuestSequence reference105 = ref span54[1]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -354361,28 +427900,34 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1048837u, new Vector3(-613.2754f, 93.595924f, -476.95123f), 1188) + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048837u, new Vector3(-613.2754f, 93.595924f, -476.95123f), 1188) { Fly = true }; obj101.Steps = list139; reference105 = obj101; - ref QuestSequence reference106 = ref span54[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(-607.3569f, 93.57029f, -472.15475f), 1188) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-607.3569f, 93.57029f, -472.15475f), 1188) { StopDistance = 0.5f, Emote = EEmote.Pray }; obj102.Steps = list140; reference106 = obj102; - ref QuestSequence reference107 = ref span54[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -354390,21 +427935,26 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.36694f, 6.317712f, -463.53406f), 1188) + span3 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.36694f, 6.317712f, -463.53406f), 1188) { DisableNavmesh = true }; obj103.Steps = list141; reference107 = obj103; - ref QuestSequence reference108 = ref span54[4]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + span3 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188) { StopDistance = 7f }; @@ -354417,13 +427967,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot18.Author = list143; - num = 4; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span55 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference109 = ref span55[0]; + index = 4; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -354431,18 +427984,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); obj105.Steps = list145; reference109 = obj105; - ref QuestSequence reference110 = ref span55[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list146)[0]; + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { Fly = true, @@ -354451,12 +428009,15 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = 17659u; + span6 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span6[num4] = 17659u; obj107.KillEnemyDataIds = list147; reference111 = obj107; obj106.Steps = list146; reference110 = obj106; - ref QuestSequence reference112 = ref span55[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -354464,21 +428025,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) + span3 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { StopDistance = 7f }; obj108.Steps = list148; reference112 = obj108; - ref QuestSequence reference113 = ref span55[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + span3 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -354492,13 +428058,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "liza"; questRoot19.Author = list150; - num = 4; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span56 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference114 = ref span56[0]; + index = 4; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -354506,24 +428075,30 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); + span3 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); obj110.Steps = list152; reference114 = obj110; - ref QuestSequence reference115 = ref span56[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2014172u, new Vector3(-70.96979f, 6.515503f, -496.2692f), 1188) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + span3 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014172u, new Vector3(-70.96979f, 6.515503f, -496.2692f), 1188) { Fly = true }; obj111.Steps = list153; reference115 = obj111; - ref QuestSequence reference116 = ref span56[2]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -354531,8 +428106,9 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span57 = CollectionsMarshal.AsSpan(list154); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(623.9169f, 46.050114f, -526.32715f), 1188) + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(623.9169f, 46.050114f, -526.32715f), 1188) { Fly = true, SkipConditions = new SkipConditions @@ -354543,21 +428119,25 @@ public static class AssemblyQuestLoader } } }; - span57[1] = new QuestStep(EInteractionType.Interact, 2014173u, new Vector3(670.5576f, 42.923584f, -515.55664f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014173u, new Vector3(670.5576f, 42.923584f, -515.55664f), 1188) { Fly = true }; obj112.Steps = list154; reference116 = obj112; - ref QuestSequence reference117 = ref span56[3]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -354571,13 +428151,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list156); + index = 0; + span[index] = "liza"; questRoot20.Author = list156; - num = 3; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span58 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference118 = ref span58[0]; + index = 3; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + span2 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -354585,37 +428168,48 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); + span3 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); obj114.Steps = list158; reference118 = obj114; - ref QuestSequence reference119 = ref span58[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span59 = CollectionsMarshal.AsSpan(list159); - ref QuestStep reference120 = ref span59[0]; + index2 = 3; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + span3 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference120 = ref span3[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1048898u, new Vector3(524.1931f, 15.639493f, 5.4473877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span60 = CollectionsMarshal.AsSpan(list160); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + span4 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj116.CompletionQuestVariablesFlags = list160; reference120 = obj116; - ref QuestStep reference121 = ref span59[1]; + num2++; + ref QuestStep reference121 = ref span3[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1048897u, new Vector3(551.6593f, 12.326415f, -32.852783f), 1188) { Fly = true @@ -354623,32 +428217,46 @@ public static class AssemblyQuestLoader num3 = 6; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - Span span61 = CollectionsMarshal.AsSpan(list161); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list161); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj117.CompletionQuestVariablesFlags = list161; reference121 = obj117; - ref QuestStep reference122 = ref span59[2]; + num2++; + ref QuestStep reference122 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1048896u, new Vector3(513.0541f, 15.9776535f, -54.36792f), 1188); - num3 = 6; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span62 = CollectionsMarshal.AsSpan(list162); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + span4 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list162; reference122 = questStep5; obj115.Steps = list159; reference119 = obj115; - ref QuestSequence reference123 = ref span58[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -354656,7 +428264,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188) + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -354669,24 +428279,30 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list164); + index = 0; + span[index] = "liza"; questRoot21.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span63 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference124 = ref span63[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + span2 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051372u, new Vector3(-183.79492f, 6.5185943f, -498.0392f), 1188); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051372u, new Vector3(-183.79492f, 6.5185943f, -498.0392f), 1188); obj119.Steps = list166; reference124 = obj119; - ref QuestSequence reference125 = ref span63[1]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -354694,21 +428310,26 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1051373u, new Vector3(-232.07446f, 10.1700535f, -395.68176f), 1188) + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051373u, new Vector3(-232.07446f, 10.1700535f, -395.68176f), 1188) { Fly = true }; obj120.Steps = list167; reference125 = obj120; - ref QuestSequence reference126 = ref span63[2]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051374u, new Vector3(-229.02264f, 10.041226f, -396.2005f), 1188); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051374u, new Vector3(-229.02264f, 10.041226f, -396.2005f), 1188); obj121.Steps = list168; reference126 = obj121; questRoot21.QuestSequence = list165; @@ -354718,13 +428339,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; questRoot22.Author = list169; - num = 3; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span64 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference127 = ref span64[0]; + index = 3; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -354732,19 +428356,23 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); obj122.Steps = list171; reference127 = obj122; - ref QuestSequence reference128 = ref span64[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span65 = CollectionsMarshal.AsSpan(list172); - ref QuestStep reference129 = ref span65[0]; + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference129 = ref span3[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 2014174u, new Vector3(-756.89325f, 135.66797f, 83.78723f), 1188) { Fly = true @@ -354752,32 +428380,46 @@ public static class AssemblyQuestLoader num3 = 6; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span66 = CollectionsMarshal.AsSpan(list173); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list173); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj124.CompletionQuestVariablesFlags = list173; reference129 = obj124; - ref QuestStep reference130 = ref span65[1]; + num2++; + ref QuestStep reference130 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014175u, new Vector3(-786.3432f, 135.66797f, 121.9043f), 1188); - num3 = 6; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span67 = CollectionsMarshal.AsSpan(list174); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list174 = new List(num4); + CollectionsMarshal.SetCount(list174, num4); + span4 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list174; reference130 = questStep6; obj123.Steps = list172; reference128 = obj123; - ref QuestSequence reference131 = ref span64[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -354785,7 +428427,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188) + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -354798,24 +428442,30 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "liza"; questRoot23.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span68 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference132 = ref span68[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188); + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + span3 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188); obj126.Steps = list178; reference132 = obj126; - ref QuestSequence reference133 = ref span68[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -354823,29 +428473,35 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span69 = CollectionsMarshal.AsSpan(list179); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) + span3 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); obj127.Steps = list179; reference133 = obj127; - ref QuestSequence reference134 = ref span68[2]; + num++; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2014176u, new Vector3(-127.15344f, 109.57495f, 523.7964f), 1188) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014176u, new Vector3(-127.15344f, 109.57495f, 523.7964f), 1188) { Fly = true }; obj128.Steps = list180; reference134 = obj128; - ref QuestSequence reference135 = ref span68[3]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -354853,23 +428509,28 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span70 = CollectionsMarshal.AsSpan(list181); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); obj129.Steps = list181; reference135 = obj129; - ref QuestSequence reference136 = ref span68[4]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -354882,13 +428543,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot24.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span71 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference137 = ref span71[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -354896,19 +428560,23 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); obj131.Steps = list185; reference137 = obj131; - ref QuestSequence reference138 = ref span71[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span72 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference139 = ref span72[0]; + index2 = 4; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref QuestStep reference139 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014177u, new Vector3(-351.40002f, 109.57495f, 62.210938f), 1188) { Fly = true @@ -354916,33 +428584,47 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span73 = CollectionsMarshal.AsSpan(list187); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list187; reference139 = obj133; - ref QuestStep reference140 = ref span72[1]; + num2++; + ref QuestStep reference140 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014178u, new Vector3(-172.32019f, 109.54443f, 128.67932f), 1188) { Fly = true }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span74 = CollectionsMarshal.AsSpan(list188); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + span4 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list188; reference140 = obj134; - ref QuestStep reference141 = ref span72[2]; + num2++; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014179u, new Vector3(142.96167f, 109.57495f, 169.604f), 1188) { Fly = true @@ -354950,35 +428632,49 @@ public static class AssemblyQuestLoader num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span75 = CollectionsMarshal.AsSpan(list189); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list189; reference141 = obj135; - ref QuestStep reference142 = ref span72[3]; + num2++; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014180u, new Vector3(214.86218f, 109.54443f, 138.68921f), 1188) { Fly = true }; - num3 = 6; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span76 = CollectionsMarshal.AsSpan(list190); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list190 = new List(num4); + CollectionsMarshal.SetCount(list190, num4); + span4 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj136.CompletionQuestVariablesFlags = list190; reference142 = obj136; obj132.Steps = list186; reference138 = obj132; - ref QuestSequence reference143 = ref span71[2]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -354986,7 +428682,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188) + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -354999,24 +428697,30 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "liza"; questRoot25.Author = list192; - num = 6; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span77 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference144 = ref span77[0]; + index = 6; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188); obj138.Steps = list194; reference144 = obj138; - ref QuestSequence reference145 = ref span77[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -355024,26 +428728,33 @@ public static class AssemblyQuestLoader num2 = 2; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span78 = CollectionsMarshal.AsSpan(list195); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-444.31415f, 123.89709f, 129.46912f), 1188); - span78[1] = new QuestStep(EInteractionType.Interact, 1050709u, new Vector3(-474.2962f, 127.79511f, 98.89368f), 1188); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-444.31415f, 123.89709f, 129.46912f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050709u, new Vector3(-474.2962f, 127.79511f, 98.89368f), 1188); obj139.Steps = list195; reference145 = obj139; - ref QuestSequence reference146 = ref span77[2]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span79 = CollectionsMarshal.AsSpan(list196); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-520.54517f, 135.98334f, 67.06335f), 1188); - span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.2461f, 138.97241f, 57.90152f), 1188); - span79[2] = new QuestStep(EInteractionType.Interact, 1050710u, new Vector3(-599.7864f, 142.85991f, 35.934937f), 1188); + index2 = 3; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-520.54517f, 135.98334f, 67.06335f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.2461f, 138.97241f, 57.90152f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050710u, new Vector3(-599.7864f, 142.85991f, 35.934937f), 1188); obj140.Steps = list196; reference146 = obj140; - ref QuestSequence reference147 = ref span77[3]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -355051,7 +428762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list197)[0]; + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + ref QuestStep reference148 = ref span3[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(-539.3906f, 139.2539f, -65.13339f), 1188) { StopDistance = 0.25f, @@ -355060,26 +428773,32 @@ public static class AssemblyQuestLoader num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = 17660u; + span6 = CollectionsMarshal.AsSpan(list198); + num4 = 0; + span6[num4] = 17660u; obj142.KillEnemyDataIds = list198; reference148 = obj142; obj141.Steps = list197; reference147 = obj141; - ref QuestSequence reference149 = ref span77[4]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1050711u, new Vector3(-541.64954f, 139.2539f, -66.5141f), 1188) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + span3 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050711u, new Vector3(-541.64954f, 139.2539f, -66.5141f), 1188) { StopDistance = 5f }; obj143.Steps = list199; reference149 = obj143; - ref QuestSequence reference150 = ref span77[5]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -355087,12 +428806,14 @@ public static class AssemblyQuestLoader num2 = 2; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span80 = CollectionsMarshal.AsSpan(list200); - span80[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013941u, new Vector3(-754.11615f, 138.68921f, 122.66724f), 1188) + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013941u, new Vector3(-754.11615f, 138.68921f, 122.66724f), 1188) { AetherCurrentId = 2818426u }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -355105,24 +428826,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "liza"; questRoot26.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span81 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference151 = ref span81[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188); obj145.Steps = list203; reference151 = obj145; - ref QuestSequence reference152 = ref span81[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -355130,30 +428857,38 @@ public static class AssemblyQuestLoader num2 = 4; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span82 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference153 = ref span82[0]; + span3 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; QuestStep obj147 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.84617f, 116.64437f, 590.74945f), 1188) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span83 = CollectionsMarshal.AsSpan(list205); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + span4 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list205; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions.StepIf = skipStepConditions; obj147.SkipConditions = skipConditions; reference153 = obj147; - ref QuestStep reference154 = ref span82[1]; + index2++; + ref QuestStep reference154 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014184u, new Vector3(-5.1728516f, -6.729248f, 619.98914f), 1188) { DisableNavmesh = true, @@ -355162,33 +428897,47 @@ public static class AssemblyQuestLoader num3 = 6; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - Span span84 = CollectionsMarshal.AsSpan(list206); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list206); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list206; reference154 = obj148; - ref QuestStep reference155 = ref span82[2]; + index2++; + ref QuestStep reference155 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 2014182u, new Vector3(112.93201f, -2.7314453f, 542.9617f), 1188) { Fly = true }; - num3 = 6; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span85 = CollectionsMarshal.AsSpan(list207); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list207 = new List(num4); + CollectionsMarshal.SetCount(list207, num4); + span4 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list207; reference155 = obj149; - ref QuestStep reference156 = ref span82[3]; + index2++; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 2014183u, new Vector3(266.3462f, -1.9684448f, 498.58838f), 1188) { Fly = true @@ -355196,26 +428945,35 @@ public static class AssemblyQuestLoader num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span86 = CollectionsMarshal.AsSpan(list208); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list208; reference156 = obj150; obj146.Steps = list204; reference152 = obj146; - ref QuestSequence reference157 = ref span81[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; @@ -355228,13 +428986,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; questRoot27.Author = list210; - num = 3; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span87 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference158 = ref span87[0]; + index = 3; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -355242,24 +429003,30 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); obj152.Steps = list212; reference158 = obj152; - ref QuestSequence reference159 = ref span87[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj153.Steps = list213; reference159 = obj153; - ref QuestSequence reference160 = ref span87[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -355267,7 +429034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -355280,24 +429049,30 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list215); + index = 0; + span[index] = "liza"; questRoot28.Author = list215; - num = 5; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span88 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference161 = ref span88[0]; + index = 5; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + span2 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); obj155.Steps = list217; reference161 = obj155; - ref QuestSequence reference162 = ref span88[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -355305,21 +429080,27 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); + span3 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); obj156.Steps = list218; reference162 = obj156; - ref QuestSequence reference163 = ref span88[2]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 2014187u, new Vector3(-548.2719f, 133.83679f, 698.1765f), 1188); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014187u, new Vector3(-548.2719f, 133.83679f, 698.1765f), 1188); obj157.Steps = list219; reference163 = obj157; - ref QuestSequence reference164 = ref span88[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -355327,18 +429108,23 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); obj158.Steps = list220; reference164 = obj158; - ref QuestSequence reference165 = ref span88[4]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -355351,13 +429137,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "liza"; questRoot29.Author = list222; - num = 3; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span89 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference166 = ref span89[0]; + index = 3; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -355365,64 +429154,89 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); obj160.Steps = list224; reference166 = obj160; - ref QuestSequence reference167 = ref span89[1]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span90 = CollectionsMarshal.AsSpan(list225); - ref QuestStep reference168 = ref span90[0]; + index2 = 4; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference168 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048847u, new Vector3(615.2589f, 119.49003f, 197.58899f), 1188); - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span91 = CollectionsMarshal.AsSpan(list226); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + span4 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list226; reference168 = questStep7; - ref QuestStep reference169 = ref span90[1]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1048845u, new Vector3(568.7495f, 119.49004f, 159.53308f), 1188); num3 = 6; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span92 = CollectionsMarshal.AsSpan(list227); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list227; reference169 = questStep8; - ref QuestStep reference170 = ref span90[2]; + num2++; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1048846u, new Vector3(512.2606f, 114.99095f, 183.85596f), 1188) { Fly = true }; - num3 = 6; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span93 = CollectionsMarshal.AsSpan(list228); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + span4 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list228; reference170 = obj162; - ref QuestStep reference171 = ref span90[3]; + num2++; + ref QuestStep reference171 = ref span3[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1048844u, new Vector3(476.40186f, 119.9383f, 101.79285f), 1188) { Fly = true @@ -355430,18 +429244,25 @@ public static class AssemblyQuestLoader num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span94 = CollectionsMarshal.AsSpan(list229); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj163.CompletionQuestVariablesFlags = list229; reference171 = obj163; obj161.Steps = list225; reference167 = obj161; - ref QuestSequence reference172 = ref span89[2]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -355449,7 +429270,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) { Fly = true }; @@ -355462,24 +429285,30 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list231); + index = 0; + span[index] = "liza"; questRoot30.Author = list231; - num = 3; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span95 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference173 = ref span95[0]; + index = 3; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + span2 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + span3 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188); obj165.Steps = list233; reference173 = obj165; - ref QuestSequence reference174 = ref span95[1]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -355487,100 +429316,133 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span96 = CollectionsMarshal.AsSpan(list234); - ref QuestStep reference175 = ref span96[0]; + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + ref QuestStep reference175 = ref span3[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(444.93774f, 112.59213f, 206.74438f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - ref ComplexCombatData reference176 = ref CollectionsMarshal.AsSpan(list235)[0]; + num4 = 1; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + Span span7 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + ref ComplexCombatData reference176 = ref span7[num3]; ComplexCombatData obj168 = new ComplexCombatData { DataId = 17241u, RewardItemId = 2003643u, RewardItemCount = 1 }; - int num4 = 6; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span97 = CollectionsMarshal.AsSpan(list236); - span97[0] = null; - span97[1] = null; - span97[2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span97[3] = null; - span97[4] = null; - span97[5] = null; + int num5 = 6; + List list236 = new List(num5); + CollectionsMarshal.SetCount(list236, num5); + span4 = CollectionsMarshal.AsSpan(list236); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; obj168.CompletionQuestVariablesFlags = list236; reference176 = obj168; obj167.ComplexCombatData = list235; num3 = 6; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); - Span span98 = CollectionsMarshal.AsSpan(list237); - span98[0] = null; - span98[1] = null; - span98[2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span98[3] = null; - span98[4] = null; - span98[5] = null; + span4 = CollectionsMarshal.AsSpan(list237); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj167.CompletionQuestVariablesFlags = list237; reference175 = obj167; - ref QuestStep reference177 = ref span96[1]; + index2++; + ref QuestStep reference177 = ref span3[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(-21.622044f, 109.937355f, 217.64447f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - ref ComplexCombatData reference178 = ref CollectionsMarshal.AsSpan(list238)[0]; + num4 = 1; + List list238 = new List(num4); + CollectionsMarshal.SetCount(list238, num4); + span7 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + ref ComplexCombatData reference178 = ref span7[num3]; ComplexCombatData obj170 = new ComplexCombatData { DataId = 17242u, RewardItemId = 2003642u, RewardItemCount = 1 }; - num4 = 6; - List list239 = new List(num4); - CollectionsMarshal.SetCount(list239, num4); - Span span99 = CollectionsMarshal.AsSpan(list239); - span99[0] = null; - span99[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num6 = 6; + List list239 = new List(num6); + CollectionsMarshal.SetCount(list239, num6); + span4 = CollectionsMarshal.AsSpan(list239); + num5 = 0; + span4[num5] = null; + num5++; + span4[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; + num5++; + span4[num5] = null; obj170.CompletionQuestVariablesFlags = list239; reference178 = obj170; obj169.ComplexCombatData = list238; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - Span span100 = CollectionsMarshal.AsSpan(list240); - span100[0] = null; - span100[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = null; + span4 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; obj169.CompletionQuestVariablesFlags = list240; reference177 = obj169; obj166.Steps = list234; reference174 = obj166; - ref QuestSequence reference179 = ref span95[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + span3 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires @@ -355594,13 +429456,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list242); + index = 0; + span[index] = "liza"; questRoot31.Author = list242; - num = 3; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span101 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference180 = ref span101[0]; + index = 3; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + span2 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -355608,36 +429473,47 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); obj172.Steps = list244; reference180 = obj172; - ref QuestSequence reference181 = ref span101[1]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span102 = CollectionsMarshal.AsSpan(list245); - ref QuestStep reference182 = ref span102[0]; + index2 = 3; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + ref QuestStep reference182 = ref span3[num2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2014189u, new Vector3(194.93396f, 109.4834f, 145.25061f), 1188) { Fly = true }; - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span103 = CollectionsMarshal.AsSpan(list246); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + span4 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj174.CompletionQuestVariablesFlags = list246; reference182 = obj174; - ref QuestStep reference183 = ref span102[1]; + num2++; + ref QuestStep reference183 = ref span3[num2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2014191u, new Vector3(53.3302f, 109.17822f, 246.3263f), 1188) { Fly = true @@ -355645,35 +429521,49 @@ public static class AssemblyQuestLoader num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span104 = CollectionsMarshal.AsSpan(list247); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list247); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj175.CompletionQuestVariablesFlags = list247; reference183 = obj175; - ref QuestStep reference184 = ref span102[2]; + num2++; + ref QuestStep reference184 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2014190u, new Vector3(-19.119629f, 109.57495f, 182.02478f), 1188) { Fly = true }; - num3 = 6; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span105 = CollectionsMarshal.AsSpan(list248); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list248 = new List(num4); + CollectionsMarshal.SetCount(list248, num4); + span4 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj176.CompletionQuestVariablesFlags = list248; reference184 = obj176; obj173.Steps = list245; reference181 = obj173; - ref QuestSequence reference185 = ref span101[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -355681,7 +429571,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188) + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; @@ -355694,24 +429586,30 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list250); + index = 0; + span[index] = "liza"; questRoot32.Author = list250; - num = 5; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span106 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference186 = ref span106[0]; + index = 5; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + span2 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); obj178.Steps = list252; reference186 = obj178; - ref QuestSequence reference187 = ref span106[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -355719,21 +429617,27 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); + span3 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); obj179.Steps = list253; reference187 = obj179; - ref QuestSequence reference188 = ref span106[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span3 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); obj180.Steps = list254; reference188 = obj180; - ref QuestSequence reference189 = ref span106[3]; + num++; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -355741,18 +429645,23 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); + span3 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); obj181.Steps = list255; reference189 = obj181; - ref QuestSequence reference190 = ref span106[4]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051242u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051242u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188); obj182.Steps = list256; reference190 = obj182; questRoot32.QuestSequence = list251; @@ -355762,13 +429671,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "liza"; questRoot33.Author = list257; - num = 6; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span107 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference191 = ref span107[0]; + index = 6; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -355776,24 +429688,30 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + span3 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj183.Steps = list259; reference191 = obj183; - ref QuestSequence reference192 = ref span107[1]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1051244u, new Vector3(224.01758f, 10.257621f, -570.64166f), 1188) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051244u, new Vector3(224.01758f, 10.257621f, -570.64166f), 1188) { Fly = true }; obj184.Steps = list260; reference192 = obj184; - ref QuestSequence reference193 = ref span107[2]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -355801,23 +429719,29 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); obj185.Steps = list261; reference193 = obj185; - ref QuestSequence reference194 = ref span107[3]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span108 = CollectionsMarshal.AsSpan(list262); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.763844f, 1.8493831f, -555.61774f), 1188); - span108[1] = new QuestStep(EInteractionType.Interact, 2014284u, new Vector3(-123.30823f, 9.84198f, -419.11957f), 1188); + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.763844f, 1.8493831f, -555.61774f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014284u, new Vector3(-123.30823f, 9.84198f, -419.11957f), 1188); obj186.Steps = list262; reference194 = obj186; - ref QuestSequence reference195 = ref span107[4]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 @@ -355825,18 +429749,23 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + span3 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj187.Steps = list263; reference195 = obj187; - ref QuestSequence reference196 = ref span107[5]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051246u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051246u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188) { NextQuestId = new QuestId(5083) }; @@ -355849,13 +429778,16 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list265); + index = 0; + span[index] = "liza"; questRoot34.Author = list265; - num = 6; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span109 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference197 = ref span109[0]; + index = 6; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + span2 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -355863,24 +429795,30 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj189.Steps = list267; reference197 = obj189; - ref QuestSequence reference198 = ref span109[1]; + num++; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) { Fly = true }; obj190.Steps = list268; reference198 = obj190; - ref QuestSequence reference199 = ref span109[2]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -355888,7 +429826,9 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list269)[0]; + span3 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + ref QuestStep reference200 = ref span3[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2014198u, new Vector3(438.04077f, -0.015319824f, -395.43762f), 1188) { Fly = true, @@ -355897,23 +429837,29 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 17661u; + span6 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span6[num4] = 17661u; obj192.KillEnemyDataIds = list270; reference200 = obj192; obj191.Steps = list269; reference199 = obj191; - ref QuestSequence reference201 = ref span109[3]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 2014286u, new Vector3(440.78735f, 1.1749268f, -397.1161f), 1188); + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014286u, new Vector3(440.78735f, 1.1749268f, -397.1161f), 1188); obj193.Steps = list271; reference201 = obj193; - ref QuestSequence reference202 = ref span109[4]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -355921,21 +429867,26 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) { Fly = true }; obj194.Steps = list272; reference202 = obj194; - ref QuestSequence reference203 = ref span109[5]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051251u, new Vector3(654.7798f, 26.32866f, -490.95905f), 1188) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051251u, new Vector3(654.7798f, 26.32866f, -490.95905f), 1188) { Fly = true, NextQuestId = new QuestId(5084) @@ -355949,13 +429900,16 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list274); + index = 0; + span[index] = "liza"; questRoot35.Author = list274; - num = 6; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span110 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference204 = ref span110[0]; + index = 6; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + span2 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -355963,12 +429917,16 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list276)[0]; + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference205 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1051252u, new Vector3(654.6272f, 26.32866f, -491.02008f), 1188); - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new DialogueChoice + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + span5 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC204_05084_Q1_000_100"), @@ -355978,21 +429936,25 @@ public static class AssemblyQuestLoader reference205 = questStep9; obj196.Steps = list276; reference204 = obj196; - ref QuestSequence reference206 = ref span110[1]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1051253u, new Vector3(-122.972534f, 9.842161f, -421.1643f), 1188) + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051253u, new Vector3(-122.972534f, 9.842161f, -421.1643f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj197.Steps = list278; reference206 = obj197; - ref QuestSequence reference207 = ref span110[2]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -356000,8 +429962,9 @@ public static class AssemblyQuestLoader num2 = 3; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span111 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference208 = ref span111[0]; + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + ref QuestStep reference208 = ref span3[index2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { Fly = true @@ -356009,33 +429972,47 @@ public static class AssemblyQuestLoader num3 = 6; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - Span span112 = CollectionsMarshal.AsSpan(list280); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list280); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list280; reference208 = obj199; - ref QuestStep reference209 = ref span111[1]; + index2++; + ref QuestStep reference209 = ref span3[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) { Fly = true }; - num3 = 6; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - Span span113 = CollectionsMarshal.AsSpan(list281); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + span4 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list281; reference209 = obj200; - ref QuestStep reference210 = ref span111[2]; + index2++; + ref QuestStep reference210 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true @@ -356043,32 +430020,42 @@ public static class AssemblyQuestLoader num3 = 6; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - Span span114 = CollectionsMarshal.AsSpan(list282); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list282; reference210 = obj201; obj198.Steps = list279; reference207 = obj198; - ref QuestSequence reference211 = ref span110[3]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1051255u, new Vector3(-128.98456f, 9.84216f, -420.58447f), 1188) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051255u, new Vector3(-128.98456f, 9.84216f, -420.58447f), 1188) { Fly = true }; obj202.Steps = list283; reference211 = obj202; - ref QuestSequence reference212 = ref span110[4]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 4 @@ -356076,21 +430063,26 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1051258u, new Vector3(658.7167f, 5.2940493f, -335.07288f), 1188) + span3 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051258u, new Vector3(658.7167f, 5.2940493f, -335.07288f), 1188) { Fly = true }; obj203.Steps = list284; reference212 = obj203; - ref QuestSequence reference213 = ref span110[5]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051261u, new Vector3(-130.9682f, 9.842161f, -416.58655f), 1188) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051261u, new Vector3(-130.9682f, 9.842161f, -416.58655f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -356103,13 +430095,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "liza"; questRoot36.Author = list286; - num = 4; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span115 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference214 = ref span115[0]; + index = 4; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -356117,21 +430112,27 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj205.Steps = list288; reference214 = obj205; - ref QuestSequence reference215 = ref span115[1]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188); + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188); obj206.Steps = list289; reference215 = obj206; - ref QuestSequence reference216 = ref span115[2]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -356139,60 +430140,84 @@ public static class AssemblyQuestLoader num2 = 3; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span116 = CollectionsMarshal.AsSpan(list290); - ref QuestStep reference217 = ref span116[0]; + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + ref QuestStep reference217 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1048892u, new Vector3(-485.55737f, 121.633f, 329.9762f), 1188); - num3 = 6; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span117 = CollectionsMarshal.AsSpan(list291); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list291 = new List(num4); + CollectionsMarshal.SetCount(list291, num4); + span4 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list291; reference217 = questStep10; - ref QuestStep reference218 = ref span116[1]; + index2++; + ref QuestStep reference218 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); num3 = 6; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span118 = CollectionsMarshal.AsSpan(list292); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list292); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list292; reference218 = questStep11; - ref QuestStep reference219 = ref span116[2]; + index2++; + ref QuestStep reference219 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span119 = CollectionsMarshal.AsSpan(list293); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list293 = new List(num4); + CollectionsMarshal.SetCount(list293, num4); + span4 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list293; reference219 = questStep12; obj207.Steps = list290; reference216 = obj207; - ref QuestSequence reference220 = ref span115[3]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188) { Mount = true }; @@ -356205,13 +430230,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list295); + index = 0; + span[index] = "liza"; questRoot37.Author = list295; - num = 5; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span120 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference221 = ref span120[0]; + index = 5; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + span2 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -356219,21 +430247,27 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); obj209.Steps = list297; reference221 = obj209; - ref QuestSequence reference222 = ref span120[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); obj210.Steps = list298; reference222 = obj210; - ref QuestSequence reference223 = ref span120[2]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -356241,21 +430275,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + span3 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj211.Steps = list299; reference223 = obj211; - ref QuestSequence reference224 = ref span120[3]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); obj212.Steps = list300; reference224 = obj212; - ref QuestSequence reference225 = ref span120[4]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -356263,7 +430303,9 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) { NextQuestId = new QuestId(5087) }; @@ -356276,24 +430318,30 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "liza"; questRoot38.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span121 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference226 = ref span121[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj214.Steps = list304; reference226 = obj214; - ref QuestSequence reference227 = ref span121[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -356301,21 +430349,26 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj215.Steps = list305; reference227 = obj215; - ref QuestSequence reference228 = ref span121[2]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list306)[0]; + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + ref QuestStep reference229 = ref span3[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, null, new Vector3(627.93854f, 110.09355f, 334.26776f), 1188) { Fly = true, @@ -356324,12 +430377,15 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 17244u; + span6 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span6[num4] = 17244u; obj217.KillEnemyDataIds = list307; reference229 = obj217; obj216.Steps = list306; reference228 = obj216; - ref QuestSequence reference230 = ref span121[3]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 3 @@ -356337,21 +430393,26 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj218.Steps = list308; reference230 = obj218; - ref QuestSequence reference231 = ref span121[4]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + span3 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5088) @@ -356365,13 +430426,16 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "liza"; questRoot39.Author = list310; - num = 7; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span122 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference232 = ref span122[0]; + index = 7; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + span2 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -356379,12 +430443,16 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference233 = ref CollectionsMarshal.AsSpan(list312)[0]; + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference233 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice + num4 = 1; + List list313 = new List(num4); + CollectionsMarshal.SetCount(list313, num4); + span5 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC304_05088_Q1_000_100"), @@ -356394,21 +430462,25 @@ public static class AssemblyQuestLoader reference233 = questStep13; obj220.Steps = list312; reference232 = obj220; - ref QuestSequence reference234 = ref span122[1]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 2014289u, new Vector3(-422.50708f, 122.88086f, 338.88757f), 1188) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014289u, new Vector3(-422.50708f, 122.88086f, 338.88757f), 1188) { Mount = true }; obj221.Steps = list314; reference234 = obj221; - ref QuestSequence reference235 = ref span122[2]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -356416,18 +430488,23 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); obj222.Steps = list315; reference235 = obj222; - ref QuestSequence reference236 = ref span122[3]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list316)[0]; + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + span3 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + ref QuestStep reference237 = ref span3[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(-759f, 129.30363f, 237.35704f), 1188) { Fly = true, @@ -356436,12 +430513,15 @@ public static class AssemblyQuestLoader num3 = 1; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = 17662u; + span6 = CollectionsMarshal.AsSpan(list317); + num4 = 0; + span6[num4] = 17662u; obj224.KillEnemyDataIds = list317; reference237 = obj224; obj223.Steps = list316; reference236 = obj223; - ref QuestSequence reference238 = ref span122[4]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 4 @@ -356449,27 +430529,33 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1051268u, new Vector3(-756.80176f, 129.29285f, 240.7721f), 1188) + span3 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051268u, new Vector3(-756.80176f, 129.29285f, 240.7721f), 1188) { StopDistance = 7f }; obj225.Steps = list318; reference238 = obj225; - ref QuestSequence reference239 = ref span122[5]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1051269u, new Vector3(-566.73535f, 133.78297f, 721.3396f), 1188) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + span3 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051269u, new Vector3(-566.73535f, 133.78297f, 721.3396f), 1188) { Fly = true }; obj226.Steps = list319; reference239 = obj226; - ref QuestSequence reference240 = ref span122[6]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue @@ -356477,7 +430563,9 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) + span3 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5089) @@ -356491,27 +430579,33 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list321); + index = 0; + span[index] = "liza"; questRoot40.Author = list321; - num = 7; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span123 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference241 = ref span123[0]; + index = 7; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + span2 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051271u, new Vector3(-447.04358f, 122.95054f, 343.4348f), 1188) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051271u, new Vector3(-447.04358f, 122.95054f, 343.4348f), 1188) { StopDistance = 5f }; obj228.Steps = list323; reference241 = obj228; - ref QuestSequence reference242 = ref span123[1]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 @@ -356519,28 +430613,34 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1051273u, new Vector3(565.54517f, 115.5f, 193.22498f), 1188) + span3 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051273u, new Vector3(565.54517f, 115.5f, 193.22498f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj229.Steps = list324; reference242 = obj229; - ref QuestSequence reference243 = ref span123[2]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1051275u, new Vector3(-645.7771f, 127.95559f, 661.76843f), 1188) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span3 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051275u, new Vector3(-645.7771f, 127.95559f, 661.76843f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; obj230.Steps = list325; reference243 = obj230; - ref QuestSequence reference244 = ref span123[3]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 3 @@ -356548,15 +430648,19 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - ref QuestStep reference245 = ref CollectionsMarshal.AsSpan(list326)[0]; + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + ref QuestStep reference245 = ref span3[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1051270u, new Vector3(-565.2705f, 133.77481f, 720.7294f), 1188) { Fly = true }; - num3 = 1; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = new DialogueChoice + num4 = 1; + List list327 = new List(num4); + CollectionsMarshal.SetCount(list327, num4); + span5 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q1_000_100"), @@ -356566,21 +430670,25 @@ public static class AssemblyQuestLoader reference245 = obj232; obj231.Steps = list326; reference244 = obj231; - ref QuestSequence reference246 = ref span123[4]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051277u, new Vector3(-647.0283f, 127.88751f, 660.57825f), 1188) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051277u, new Vector3(-647.0283f, 127.88751f, 660.57825f), 1188) { Fly = true }; obj233.Steps = list328; reference246 = obj233; - ref QuestSequence reference247 = ref span123[5]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 5 @@ -356588,7 +430696,9 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - ref QuestStep reference248 = ref CollectionsMarshal.AsSpan(list329)[0]; + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + ref QuestStep reference248 = ref span3[index2]; QuestStep obj235 = new QuestStep(EInteractionType.Interact, 1051278u, new Vector3(-130.69354f, 9.84216f, -415.21326f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -356596,7 +430706,9 @@ public static class AssemblyQuestLoader num3 = 1; List list330 = new List(num3); CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q100_000_100") @@ -356605,15 +430717,18 @@ public static class AssemblyQuestLoader reference248 = obj235; obj234.Steps = list329; reference247 = obj234; - ref QuestSequence reference249 = ref span123[6]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051280u, new Vector3(-125.20032f, 9.842161f, -418.08197f), 1188); + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051280u, new Vector3(-125.20032f, 9.842161f, -418.08197f), 1188); obj236.Steps = list331; reference249 = obj236; questRoot40.QuestSequence = list322; @@ -356623,13 +430738,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list332); + index = 0; + span[index] = "liza"; questRoot41.Author = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span124 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference250 = ref span124[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + span2 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -356637,32 +430755,40 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); obj237.Steps = list334; reference250 = obj237; - ref QuestSequence reference251 = ref span124[1]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference252 = ref CollectionsMarshal.AsSpan(list335)[0]; + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference252 = ref span3[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.06216f, 20.027777f, 46.272446f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 17268u; + num4 = 1; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + span6 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span6[num3] = 17268u; obj239.KillEnemyDataIds = list336; reference252 = obj239; obj238.Steps = list335; reference251 = obj238; - ref QuestSequence reference253 = ref span124[2]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -356670,7 +430796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189) + span3 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -356683,24 +430811,30 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list338); + index = 0; + span[index] = "liza"; questRoot42.Author = list338; - num = 3; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span125 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference254 = ref span125[0]; + index = 3; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + span2 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189); + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189); obj241.Steps = list340; reference254 = obj241; - ref QuestSequence reference255 = ref span125[1]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -356708,41 +430842,48 @@ public static class AssemblyQuestLoader num2 = 3; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span126 = CollectionsMarshal.AsSpan(list341); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) { Fly = true }; - span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) { DisableNavmesh = true, Fly = true }; - span126[2] = new QuestStep(EInteractionType.Interact, 2014307u, new Vector3(-729.7932f, -107.83557f, -674.8608f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014307u, new Vector3(-729.7932f, -107.83557f, -674.8608f), 1189) { Fly = true }; obj242.Steps = list341; reference255 = obj242; - ref QuestSequence reference256 = ref span125[2]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span127 = CollectionsMarshal.AsSpan(list342); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) + index2 = 3; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) { Fly = true }; - span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) { DisableNavmesh = true, Fly = true }; - ref QuestStep reference257 = ref span127[2]; + num2++; + ref QuestStep reference257 = ref span3[num2]; QuestStep obj244 = new QuestStep(EInteractionType.CompleteQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189) { Fly = true @@ -356750,7 +430891,9 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list343); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD002_05091_Q1_000_000"), @@ -356767,13 +430910,16 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "liza"; questRoot43.Author = list344; - num = 4; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span128 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference258 = ref span128[0]; + index = 4; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -356781,18 +430927,23 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); + span3 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); obj245.Steps = list346; reference258 = obj245; - ref QuestSequence reference259 = ref span128[1]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - ref QuestStep reference260 = ref CollectionsMarshal.AsSpan(list347)[0]; + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + ref QuestStep reference260 = ref span3[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(158.97704f, 0.80940175f, -773.5188f), 1189) { StopDistance = 1f, @@ -356804,15 +430955,18 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 17663u; + num4 = 1; + List list348 = new List(num4); + CollectionsMarshal.SetCount(list348, num4); + span6 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span6[num3] = 17663u; obj247.KillEnemyDataIds = list348; reference260 = obj247; obj246.Steps = list347; reference259 = obj246; - ref QuestSequence reference261 = ref span128[2]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 2 @@ -356820,21 +430974,26 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051058u, new Vector3(159.47205f, 0.81595546f, -770.19916f), 1189) + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051058u, new Vector3(159.47205f, 0.81595546f, -770.19916f), 1189) { StopDistance = 7f }; obj248.Steps = list349; reference261 = obj248; - ref QuestSequence reference262 = ref span128[3]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -356848,13 +431007,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list351); + index = 0; + span[index] = "liza"; questRoot44.Author = list351; - num = 4; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span129 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference263 = ref span129[0]; + index = 4; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + span2 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -356862,24 +431024,30 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); obj250.Steps = list353; reference263 = obj250; - ref QuestSequence reference264 = ref span129[1]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189) { Fly = true }; obj251.Steps = list354; reference264 = obj251; - ref QuestSequence reference265 = ref span129[2]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 @@ -356887,18 +431055,23 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); obj252.Steps = list355; reference265 = obj252; - ref QuestSequence reference266 = ref span129[3]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + span3 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); obj253.Steps = list356; reference266 = obj253; questRoot44.QuestSequence = list352; @@ -356908,13 +431081,16 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - CollectionsMarshal.AsSpan(list357)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list357); + index = 0; + span[index] = "liza"; questRoot45.Author = list357; - num = 5; - List list358 = new List(num); - CollectionsMarshal.SetCount(list358, num); - Span span130 = CollectionsMarshal.AsSpan(list358); - ref QuestSequence reference267 = ref span130[0]; + index = 5; + List list358 = new List(index); + CollectionsMarshal.SetCount(list358, index); + span2 = CollectionsMarshal.AsSpan(list358); + num = 0; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 0 @@ -356922,21 +431098,27 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); + span3 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); obj254.Steps = list359; reference267 = obj254; - ref QuestSequence reference268 = ref span130[1]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 2014310u, new Vector3(499.8092f, 20.126648f, -345.84576f), 1189); + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014310u, new Vector3(499.8092f, 20.126648f, -345.84576f), 1189); obj255.Steps = list360; reference268 = obj255; - ref QuestSequence reference269 = ref span130[2]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = 2 @@ -356944,75 +431126,89 @@ public static class AssemblyQuestLoader num2 = 10; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span131 = CollectionsMarshal.AsSpan(list361); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.42645f, 15.455202f, -305.60803f), 1189) + span3 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.42645f, 15.455202f, -305.60803f), 1189) { Mount = false, Sprint = false }; - span131[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(515.47345f, 10.495132f, -260.93246f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(515.47345f, 10.495132f, -260.93246f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(532.88403f, 10.019356f, -237.4513f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(532.88403f, 10.019356f, -237.4513f), 1189) { DelaySecondsAtStart = 5f, Mount = false, Sprint = false }; - span131[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(543.8844f, 9.337766f, -190.25961f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(543.8844f, 9.337766f, -190.25961f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(530.938f, 10.278882f, -164.46059f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(530.938f, 10.278882f, -164.46059f), 1189) { Mount = false, Sprint = false }; - span131[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(564.2212f, 12.653475f, -126.851585f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(564.2212f, 12.653475f, -126.851585f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.95447f, 16.180645f, -78.99758f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.95447f, 16.180645f, -78.99758f), 1189) { Mount = false, Sprint = false }; - span131[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(599.5003f, 16.939411f, -34.30726f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(599.5003f, 16.939411f, -34.30726f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.5126f, 16.16554f, -24.822657f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.5126f, 16.16554f, -24.822657f), 1189) { Mount = false, Sprint = false }; - span131[9] = new QuestStep(EInteractionType.WalkTo, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189) { DelaySecondsAtStart = 25f }; obj256.Steps = list361; reference269 = obj256; - ref QuestSequence reference270 = ref span130[3]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189); + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189); obj257.Steps = list362; reference270 = obj257; - ref QuestSequence reference271 = ref span130[4]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue @@ -357020,12 +431216,14 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span132 = CollectionsMarshal.AsSpan(list363); - span132[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013948u, new Vector3(610.7728f, 9.597839f, 233.05103f), 1189) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013948u, new Vector3(610.7728f, 9.597839f, 233.05103f), 1189) { AetherCurrentId = 2818440u }; - ref QuestStep reference272 = ref span132[1]; + index2++; + ref QuestStep reference272 = ref span3[index2]; QuestStep obj259 = new QuestStep(EInteractionType.CompleteQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -357038,7 +431236,9 @@ public static class AssemblyQuestLoader num3 = 1; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - CollectionsMarshal.AsSpan(list364)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list364); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD005_05094_CHOICE1Q1_100_060"), @@ -357055,24 +431255,30 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list365); + index = 0; + span[index] = "liza"; questRoot46.Author = list365; - num = 4; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span133 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference273 = ref span133[0]; + index = 4; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + span2 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189); + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + span3 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189); obj260.Steps = list367; reference273 = obj260; - ref QuestSequence reference274 = ref span133[1]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -357080,37 +431286,45 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list368)[0]; + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + ref QuestStep reference275 = ref span3[index2]; QuestStep obj262 = new QuestStep(EInteractionType.Combat, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list369 = new List(num3); - CollectionsMarshal.SetCount(list369, num3); - Span span134 = CollectionsMarshal.AsSpan(list369); - span134[0] = 17664u; - span134[1] = 17665u; + num4 = 2; + List list369 = new List(num4); + CollectionsMarshal.SetCount(list369, num4); + span6 = CollectionsMarshal.AsSpan(list369); + num3 = 0; + span6[num3] = 17664u; + num3++; + span6[num3] = 17665u; obj262.KillEnemyDataIds = list369; reference275 = obj262; obj261.Steps = list368; reference274 = obj261; - ref QuestSequence reference276 = ref span133[2]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) { StopDistance = 7f }; obj263.Steps = list370; reference276 = obj263; - ref QuestSequence reference277 = ref span133[3]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -357118,7 +431332,9 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -357132,24 +431348,30 @@ public static class AssemblyQuestLoader num = 1; List list372 = new List(num); CollectionsMarshal.SetCount(list372, num); - CollectionsMarshal.AsSpan(list372)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list372); + index = 0; + span[index] = "liza"; questRoot47.Author = list372; - num = 3; - List list373 = new List(num); - CollectionsMarshal.SetCount(list373, num); - Span span135 = CollectionsMarshal.AsSpan(list373); - ref QuestSequence reference278 = ref span135[0]; + index = 3; + List list373 = new List(index); + CollectionsMarshal.SetCount(list373, index); + span2 = CollectionsMarshal.AsSpan(list373); + num = 0; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span3 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); obj265.Steps = list374; reference278 = obj265; - ref QuestSequence reference279 = ref span135[1]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -357157,36 +431379,51 @@ public static class AssemblyQuestLoader num2 = 3; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span136 = CollectionsMarshal.AsSpan(list375); - ref QuestStep reference280 = ref span136[0]; + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + ref QuestStep reference280 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014264u, new Vector3(405.1422f, 20.85907f, -482.10883f), 1189); num3 = 6; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - Span span137 = CollectionsMarshal.AsSpan(list376); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list376); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list376; reference280 = questStep14; - ref QuestStep reference281 = ref span136[1]; + index2++; + ref QuestStep reference281 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014266u, new Vector3(430.83838f, 20.126648f, -456.71783f), 1189); - num3 = 6; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - Span span138 = CollectionsMarshal.AsSpan(list377); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list377 = new List(num4); + CollectionsMarshal.SetCount(list377, num4); + span4 = CollectionsMarshal.AsSpan(list377); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list377; reference281 = questStep15; - ref QuestStep reference282 = ref span136[2]; + index2++; + ref QuestStep reference282 = ref span3[index2]; QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2014265u, new Vector3(395.92578f, 20.34021f, -453.02515f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -357194,31 +431431,42 @@ public static class AssemblyQuestLoader num3 = 1; List list378 = new List(num3); CollectionsMarshal.SetCount(list378, num3); - CollectionsMarshal.AsSpan(list378)[0] = 17666u; + span6 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + span6[num4] = 17666u; obj267.KillEnemyDataIds = list378; - num3 = 6; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span139 = CollectionsMarshal.AsSpan(list379); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list379 = new List(num4); + CollectionsMarshal.SetCount(list379, num4); + span4 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj267.CompletionQuestVariablesFlags = list379; reference282 = obj267; obj266.Steps = list375; reference279 = obj266; - ref QuestSequence reference283 = ref span135[2]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); obj268.Steps = list380; reference283 = obj268; questRoot47.QuestSequence = list373; @@ -357228,13 +431476,16 @@ public static class AssemblyQuestLoader num = 1; List list381 = new List(num); CollectionsMarshal.SetCount(list381, num); - CollectionsMarshal.AsSpan(list381)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list381); + index = 0; + span[index] = "liza"; questRoot48.Author = list381; - num = 3; - List list382 = new List(num); - CollectionsMarshal.SetCount(list382, num); - Span span140 = CollectionsMarshal.AsSpan(list382); - ref QuestSequence reference284 = ref span140[0]; + index = 3; + List list382 = new List(index); + CollectionsMarshal.SetCount(list382, index); + span2 = CollectionsMarshal.AsSpan(list382); + num = 0; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj269 = new QuestSequence { Sequence = 0 @@ -357242,19 +431493,23 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); + span3 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); obj269.Steps = list383; reference284 = obj269; - ref QuestSequence reference285 = ref span140[1]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj270 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - Span span141 = CollectionsMarshal.AsSpan(list384); - ref QuestStep reference286 = ref span141[0]; + index2 = 3; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + span3 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + ref QuestStep reference286 = ref span3[num2]; QuestStep obj271 = new QuestStep(EInteractionType.Interact, 1048961u, new Vector3(-444.38855f, 28.068893f, -363.66827f), 1189) { Fly = true, @@ -357263,37 +431518,51 @@ public static class AssemblyQuestLoader num3 = 6; List list385 = new List(num3); CollectionsMarshal.SetCount(list385, num3); - Span span142 = CollectionsMarshal.AsSpan(list385); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list385); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj271.CompletionQuestVariablesFlags = list385; reference286 = obj271; - ref QuestStep reference287 = ref span141[1]; + num2++; + ref QuestStep reference287 = ref span3[num2]; QuestStep obj272 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-632.6718f, 25.245409f, -159.94264f), 1189) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list386 = new List(num3); - CollectionsMarshal.SetCount(list386, num3); - Span span143 = CollectionsMarshal.AsSpan(list386); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list386 = new List(num4); + CollectionsMarshal.SetCount(list386, num4); + span4 = CollectionsMarshal.AsSpan(list386); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list386; skipConditions2.StepIf = skipStepConditions2; obj272.SkipConditions = skipConditions2; reference287 = obj272; - ref QuestStep reference288 = ref span141[2]; + num2++; + ref QuestStep reference288 = ref span3[num2]; QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1048995u, new Vector3(-639.27673f, 26.716875f, -161.05902f), 1189) { StopDistance = 7f @@ -357301,18 +431570,25 @@ public static class AssemblyQuestLoader num3 = 6; List list387 = new List(num3); CollectionsMarshal.SetCount(list387, num3); - Span span144 = CollectionsMarshal.AsSpan(list387); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list387); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj273.CompletionQuestVariablesFlags = list387; reference288 = obj273; obj270.Steps = list384; reference285 = obj270; - ref QuestSequence reference289 = ref span140[2]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue @@ -357320,7 +431596,9 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051410u, new Vector3(-9.140198f, 8.205902f, -652.9183f), 1189) + span3 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051410u, new Vector3(-9.140198f, 8.205902f, -652.9183f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -357338,24 +431616,30 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list389); + index = 0; + span[index] = "liza"; questRoot49.Author = list389; - num = 5; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span145 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference290 = ref span145[0]; + index = 5; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + span2 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189); + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189); obj275.Steps = list391; reference290 = obj275; - ref QuestSequence reference291 = ref span145[1]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 1 @@ -357363,43 +431647,54 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) { Fly = true }; obj276.Steps = list392; reference291 = obj276; - ref QuestSequence reference292 = ref span145[2]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span146 = CollectionsMarshal.AsSpan(list393); - ref QuestStep reference293 = ref span146[0]; + index2 = 6; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + span3 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + ref QuestStep reference293 = ref span3[num2]; QuestStep obj278 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-580.44604f, 22.457048f, -3.286837f), 1189) { Fly = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list394 = new List(num3); - CollectionsMarshal.SetCount(list394, num3); - Span span147 = CollectionsMarshal.AsSpan(list394); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list394 = new List(num4); + CollectionsMarshal.SetCount(list394, num4); + span4 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list394; skipConditions3.StepIf = skipStepConditions3; obj278.SkipConditions = skipConditions3; reference293 = obj278; - ref QuestStep reference294 = ref span146[1]; + num2++; + ref QuestStep reference294 = ref span3[num2]; QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 2014313u, new Vector3(-581.75024f, 23.697266f, -2.9450073f), 1189) { ItemId = 2003683u @@ -357407,37 +431702,51 @@ public static class AssemblyQuestLoader num3 = 6; List list395 = new List(num3); CollectionsMarshal.SetCount(list395, num3); - Span span148 = CollectionsMarshal.AsSpan(list395); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list395); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj279.CompletionQuestVariablesFlags = list395; reference294 = obj279; - ref QuestStep reference295 = ref span146[2]; + num2++; + ref QuestStep reference295 = ref span3[num2]; QuestStep obj280 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-506.6366f, 22.817732f, 32.985153f), 1189) { Fly = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - Span span149 = CollectionsMarshal.AsSpan(list396); - span149[0] = null; - span149[1] = null; - span149[2] = null; - span149[3] = null; - span149[4] = null; - span149[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list396 = new List(num4); + CollectionsMarshal.SetCount(list396, num4); + span4 = CollectionsMarshal.AsSpan(list396); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list396; skipConditions4.StepIf = skipStepConditions4; obj280.SkipConditions = skipConditions4; reference295 = obj280; - ref QuestStep reference296 = ref span146[3]; + num2++; + ref QuestStep reference296 = ref span3[num2]; QuestStep obj281 = new QuestStep(EInteractionType.UseItem, 2014314u, new Vector3(-505.9129f, 23.88031f, 32.455933f), 1189) { ItemId = 2003683u @@ -357445,37 +431754,51 @@ public static class AssemblyQuestLoader num3 = 6; List list397 = new List(num3); CollectionsMarshal.SetCount(list397, num3); - Span span150 = CollectionsMarshal.AsSpan(list397); - span150[0] = null; - span150[1] = null; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list397); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj281.CompletionQuestVariablesFlags = list397; reference296 = obj281; - ref QuestStep reference297 = ref span146[4]; + num2++; + ref QuestStep reference297 = ref span3[num2]; QuestStep obj282 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-414.84598f, 20.493914f, 74.74898f), 1189) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list398 = new List(num3); - CollectionsMarshal.SetCount(list398, num3); - Span span151 = CollectionsMarshal.AsSpan(list398); - span151[0] = null; - span151[1] = null; - span151[2] = null; - span151[3] = null; - span151[4] = null; - span151[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list398 = new List(num4); + CollectionsMarshal.SetCount(list398, num4); + span4 = CollectionsMarshal.AsSpan(list398); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list398; skipConditions5.StepIf = skipStepConditions5; obj282.SkipConditions = skipConditions5; reference297 = obj282; - ref QuestStep reference298 = ref span146[5]; + num2++; + ref QuestStep reference298 = ref span3[num2]; QuestStep obj283 = new QuestStep(EInteractionType.UseItem, 2014315u, new Vector3(-413.96204f, 21.896606f, 74.021484f), 1189) { ItemId = 2003683u @@ -357483,18 +431806,25 @@ public static class AssemblyQuestLoader num3 = 6; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - Span span152 = CollectionsMarshal.AsSpan(list399); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj283.CompletionQuestVariablesFlags = list399; reference298 = obj283; obj277.Steps = list393; reference292 = obj277; - ref QuestSequence reference299 = ref span145[3]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 3 @@ -357502,21 +431832,26 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) + span3 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) { Fly = true }; obj284.Steps = list400; reference299 = obj284; - ref QuestSequence reference300 = ref span145[4]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + span3 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189) { Fly = true }; @@ -357529,13 +431864,16 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - CollectionsMarshal.AsSpan(list402)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list402); + index = 0; + span[index] = "liza"; questRoot50.Author = list402; - num = 3; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - Span span153 = CollectionsMarshal.AsSpan(list403); - ref QuestSequence reference301 = ref span153[0]; + index = 3; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + span2 = CollectionsMarshal.AsSpan(list403); + num = 0; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 0 @@ -357543,24 +431881,30 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); + span3 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); obj286.Steps = list404; reference301 = obj286; - ref QuestSequence reference302 = ref span153[1]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1051367u, new Vector3(-503.95975f, 29.007706f, -394.43048f), 1189) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + span3 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051367u, new Vector3(-503.95975f, 29.007706f, -394.43048f), 1189) { Fly = true }; obj287.Steps = list405; reference302 = obj287; - ref QuestSequence reference303 = ref span153[2]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue @@ -357568,7 +431912,9 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); + span3 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); obj288.Steps = list406; reference303 = obj288; questRoot50.QuestSequence = list403; @@ -357582,13 +431928,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -357596,24 +431945,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Snipe, 2014250u, new Vector3(598.3214f, -137.19391f, 557.7018f), 1189) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2014250u, new Vector3(598.3214f, -137.19391f, 557.7018f), 1189) { Comment = "Inspect Flag, Red Head, Blue Head" }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -357621,7 +431976,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189) { StopDistance = 7f }; @@ -357634,24 +431991,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -357659,8 +432022,9 @@ public static class AssemblyQuestLoader num2 = 6; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.00457f, -212.91975f, 624.4216f), 1189) { Fly = true @@ -357671,38 +432035,52 @@ public static class AssemblyQuestLoader List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + int num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list10; skipConditions.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions; reference6 = obj6; - ref QuestStep reference7 = ref span3[1]; + index2++; + ref QuestStep reference7 = ref span3[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1051049u, new Vector3(-89.49426f, -213.64497f, 625.574f), 1189) { StopDistance = 4f }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + span4 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list11; skipConditions2.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions2; reference7 = obj7; - ref QuestStep reference8 = ref span3[2]; + index2++; + ref QuestStep reference8 = ref span3[index2]; QuestStep obj8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.188805f, -214.08376f, 674.54083f), 1189) { Fly = true @@ -357712,32 +432090,46 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list12; skipConditions3.StepIf = skipStepConditions3; obj8.SkipConditions = skipConditions3; reference8 = obj8; - ref QuestStep reference9 = ref span3[3]; + index2++; + ref QuestStep reference9 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1051051u, new Vector3(-122.88098f, -213.78055f, 673.39575f), 1189); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + span4 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list13; reference9 = questStep; - ref QuestStep reference10 = ref span3[4]; + index2++; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.65875f, -213.42487f, 608.63165f), 1189) { Fly = true @@ -357747,42 +432139,58 @@ public static class AssemblyQuestLoader num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list14; skipConditions4.StepIf = skipStepConditions4; obj9.SkipConditions = skipConditions4; reference10 = obj9; - ref QuestStep reference11 = ref span3[5]; + index2++; + ref QuestStep reference11 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1051050u, new Vector3(-143.63324f, -213.18237f, 609.0028f), 1189); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span9 = CollectionsMarshal.AsSpan(list15); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + span4 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list15; reference11 = questStep2; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference12 = ref span2[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -357796,13 +432204,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list17); + index = 0; + span[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span10 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span10[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + span2 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -357810,19 +432221,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189); + span3 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189); obj11.Steps = list19; reference13 = obj11; - ref QuestSequence reference14 = ref span10[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span11[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span3[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2014369u, new Vector3(328.20618f, -157.21375f, 429.4651f), 1189) { Fly = true @@ -357830,30 +432245,44 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list21; reference15 = obj13; - ref QuestStep reference16 = ref span11[1]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014368u, new Vector3(323.7201f, -157.76306f, 434.19543f), 1189); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span13 = CollectionsMarshal.AsSpan(list22); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + span4 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; - ref QuestStep reference17 = ref span11[2]; + num2++; + ref QuestStep reference17 = ref span3[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 2014256u, new Vector3(139.17749f, -162.24927f, 679.95715f), 1189) { Fly = true @@ -357861,32 +432290,46 @@ public static class AssemblyQuestLoader num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span14 = CollectionsMarshal.AsSpan(list23); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj14.CompletionQuestVariablesFlags = list23; reference17 = obj14; - ref QuestStep reference18 = ref span11[3]; + num2++; + ref QuestStep reference18 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014257u, new Vector3(144.67078f, -163.25635f, 663.84375f), 1189); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span15 = CollectionsMarshal.AsSpan(list24); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + span4 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list24; reference18 = questStep4; obj12.Steps = list20; reference14 = obj12; - ref QuestSequence reference19 = ref span10[2]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -357894,7 +432337,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189) { Fly = true }; @@ -357907,24 +432352,30 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "liza"; questRoot4.Author = list26; - num = 4; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span16 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span16[0]; + index = 4; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189); obj16.Steps = list28; reference20 = obj16; - ref QuestSequence reference21 = ref span16[1]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -357932,18 +432383,23 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); obj17.Steps = list29; reference21 = obj17; - ref QuestSequence reference22 = ref span16[2]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span3[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2014258u, new Vector3(87.02222f, -176.1654f, 328.3894f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -357951,12 +432407,15 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 17676u; + Span span5 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span5[num4] = 17676u; obj19.KillEnemyDataIds = list31; reference23 = obj19; obj18.Steps = list30; reference22 = obj18; - ref QuestSequence reference24 = ref span16[3]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -357964,7 +432423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); obj20.Steps = list32; reference24 = obj20; questRoot4.QuestSequence = list27; @@ -357974,24 +432435,30 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot5.Author = list33; - num = 6; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span17 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span17[0]; + index = 6; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189); obj21.Steps = list35; reference25 = obj21; - ref QuestSequence reference26 = ref span17[1]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -357999,15 +432466,19 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span3[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1051053u, new Vector3(257.1908f, -165.78062f, 146.74597f), 1189) { Fly = true }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span6 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZD105_05104_SYSTEM_100_004") @@ -358016,44 +432487,52 @@ public static class AssemblyQuestLoader reference27 = obj23; obj22.Steps = list36; reference26 = obj22; - ref QuestSequence reference28 = ref span17[2]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.75598f, -161.77667f, 117.129616f), 1189) + index2 = 6; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.75598f, -161.77667f, 117.129616f), 1189) { DisableNavmesh = true, Mount = true }; - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(255.7041f, -161.34225f, 101.95002f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(255.7041f, -161.34225f, 101.95002f), 1189) { DisableNavmesh = true }; - span18[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(218.3051f, -160.72849f, 78.95244f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(218.3051f, -160.72849f, 78.95244f), 1189) { DisableNavmesh = true }; - span18[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(168.0448f, -158.83824f, 31.171473f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(168.0448f, -158.83824f, 31.171473f), 1189) { DisableNavmesh = true }; - span18[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(144.163f, -156.25887f, -57.818764f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(144.163f, -156.25887f, -57.818764f), 1189) { DisableNavmesh = true }; - span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189) { StopDistance = 1f, DisableNavmesh = true }; obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference29 = ref span17[3]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -358061,25 +432540,31 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051054u, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189); + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051054u, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189); obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span17[4]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2014259u, new Vector3(65.049194f, -184.1612f, -70.237305f), 1189) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014259u, new Vector3(65.049194f, -184.1612f, -70.237305f), 1189) { DisableNavmesh = true, Mount = false }; obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference31 = ref span17[5]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -358087,7 +432572,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -358101,24 +432588,30 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list42); + index = 0; + span[index] = "liza"; questRoot6.Author = list42; - num = 4; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference32 = ref span19[0]; + index = 4; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + span2 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189); obj28.Steps = list44; reference32 = obj28; - ref QuestSequence reference33 = ref span19[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -358126,12 +432619,14 @@ public static class AssemblyQuestLoader num2 = 2; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span20 = CollectionsMarshal.AsSpan(list45); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.87303f, -174.86252f, 649.25995f), 1189) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.87303f, -174.86252f, 649.25995f), 1189) { Fly = true }; - ref QuestStep reference34 = ref span20[1]; + index2++; + ref QuestStep reference34 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) { StopDistance = 5f, @@ -358140,26 +432635,35 @@ public static class AssemblyQuestLoader num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span21 = CollectionsMarshal.AsSpan(list46); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list46; reference34 = obj30; obj29.Steps = list45; reference33 = obj29; - ref QuestSequence reference35 = ref span19[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Say, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Say, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) { StopDistance = 5f, ChatMessage = new ChatMessage @@ -358169,7 +432673,8 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference35 = obj31; - ref QuestSequence reference36 = ref span19[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -358177,7 +432682,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189) + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -358191,24 +432698,30 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list49); + index = 0; + span[index] = "liza"; questRoot7.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span22 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span22[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + span2 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + span3 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189); obj33.Steps = list51; reference37 = obj33; - ref QuestSequence reference38 = ref span22[1]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -358216,29 +432729,38 @@ public static class AssemblyQuestLoader num2 = 3; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span23 = CollectionsMarshal.AsSpan(list52); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.30347f, -195.42366f, 241.28633f), 1189) + span3 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.30347f, -195.42366f, 241.28633f), 1189) { Fly = true }; - ref QuestStep reference39 = ref span23[1]; + index2++; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.UseItem, 2014260u, new Vector3(177.44714f, -194.11005f, 239.61243f), 1189) { ItemId = 2003667u }; - num3 = 6; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + span4 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list53; reference39 = obj35; - ref QuestStep reference40 = ref span23[2]; + index2++; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.UseItem, 2014261u, new Vector3(164.47693f, -194.2627f, 237.50659f), 1189) { ItemId = 2003667u @@ -358246,26 +432768,35 @@ public static class AssemblyQuestLoader num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span25 = CollectionsMarshal.AsSpan(list54); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list54; reference40 = obj36; obj34.Steps = list52; reference38 = obj34; - ref QuestSequence reference41 = ref span22[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + span3 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) { Fly = true }; @@ -358278,13 +432809,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list56); + index = 0; + span[index] = "liza"; questRoot8.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span26 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference42 = ref span26[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + span2 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -358292,37 +432826,48 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189); obj38.Steps = list58; reference42 = obj38; - ref QuestSequence reference43 = ref span26[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span27 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference44 = ref span27[0]; + index2 = 3; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref QuestStep reference44 = ref span3[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1051408u, new Vector3(631.2809f, -137.12654f, 509.6665f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span28 = CollectionsMarshal.AsSpan(list60); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + span4 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list60; reference44 = obj40; - ref QuestStep reference45 = ref span27[1]; + num2++; + ref QuestStep reference45 = ref span3[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1048974u, new Vector3(621.51514f, -135.12726f, 531.1207f), 1189) { Fly = true @@ -358330,35 +432875,49 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span29 = CollectionsMarshal.AsSpan(list61); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list61; reference45 = obj41; - ref QuestStep reference46 = ref span27[2]; + num2++; + ref QuestStep reference46 = ref span3[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189) { Fly = true }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + span4 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list62; reference46 = obj42; obj39.Steps = list59; reference43 = obj39; - ref QuestSequence reference47 = ref span26[2]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -358366,7 +432925,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference48 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.CompleteQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189) { Fly = true @@ -358374,7 +432935,9 @@ public static class AssemblyQuestLoader num3 = 1; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD108_05107_Q1_000_000"), @@ -358391,27 +432954,33 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list65); + index = 0; + span[index] = "liza"; questRoot9.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span31 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span31[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + span2 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + span3 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) { Fly = true }; obj45.Steps = list67; reference49 = obj45; - ref QuestSequence reference50 = ref span31[1]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -358419,32 +432988,40 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; + span3 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2014262u, new Vector3(-443.83917f, -158.1903f, 343.34326f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span32 = CollectionsMarshal.AsSpan(list69); - span32[0] = 17743u; - span32[1] = 17744u; - span32[2] = 17745u; + num4 = 3; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + span5 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span5[num3] = 17743u; + num3++; + span5[num3] = 17744u; + num3++; + span5[num3] = 17745u; obj47.KillEnemyDataIds = list69; reference51 = obj47; obj46.Steps = list68; reference50 = obj46; - ref QuestSequence reference52 = ref span31[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) { Fly = true }; @@ -358457,13 +433034,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list71); + index = 0; + span[index] = "liza"; questRoot10.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span33 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span33[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + span2 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -358471,27 +433051,33 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) { Fly = true }; obj49.Steps = list73; reference53 = obj49; - ref QuestSequence reference54 = ref span33[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + span3 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) { Fly = true }; obj50.Steps = list74; reference54 = obj50; - ref QuestSequence reference55 = ref span33[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -358499,7 +433085,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Instruction, null, new Vector3(-433.617f, -156.24463f, 776.9229f), 1189) { Fly = true, @@ -358509,7 +433097,9 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 17267u, MinimumKillCount = 2u, @@ -358520,21 +433110,25 @@ public static class AssemblyQuestLoader reference56 = obj52; obj51.Steps = list75; reference55 = obj51; - ref QuestSequence reference57 = ref span33[3]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) { Fly = true }; obj53.Steps = list77; reference57 = obj53; - ref QuestSequence reference58 = ref span33[4]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -358542,7 +433136,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) + span3 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) { Fly = true }; @@ -358555,26 +433151,33 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list79); + index = 0; + span[index] = "liza"; questRoot11.Author = list79; - num = 4; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span34 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference59 = ref span34[0]; + index = 4; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + span2 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1050872u, new Vector3(-408.71295f, 20.420113f, -398.8861f), 1189); - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + num4 = 1; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + span6 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD201_05110_Q1_000_000"), @@ -358584,7 +433187,8 @@ public static class AssemblyQuestLoader reference60 = questStep5; obj55.Steps = list81; reference59 = obj55; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -358592,18 +433196,23 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189); + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189); obj56.Steps = list83; reference61 = obj56; - ref QuestSequence reference62 = ref span34[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference63 = ref span3[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2014142u, new Vector3(-372.45752f, 19.33313f, -694.45337f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -358611,12 +433220,15 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 17668u; + span5 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span5[num4] = 17668u; obj58.KillEnemyDataIds = list85; reference63 = obj58; obj57.Steps = list84; reference62 = obj57; - ref QuestSequence reference64 = ref span34[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -358624,12 +433236,14 @@ public static class AssemblyQuestLoader num2 = 2; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013947u, new Vector3(-184.74103f, 22.934265f, -751.6747f), 1189) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013947u, new Vector3(-184.74103f, 22.934265f, -751.6747f), 1189) { AetherCurrentId = 2818439u }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -358642,21 +433256,26 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list87); + index = 0; + span[index] = "liza"; questRoot12.Author = list87; - num = 4; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span36 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference65 = ref span36[0]; + index = 4; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + span2 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + span3 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -358674,7 +433293,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list89; reference65 = obj60; - ref QuestSequence reference66 = ref span36[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -358682,39 +433302,50 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { Fly = true }; obj61.Steps = list90; reference66 = obj61; - ref QuestSequence reference67 = ref span36[2]; + num++; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span37 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference68 = ref span37[0]; + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 1050876u, new Vector3(-455.92438f, 30.374397f, -423.148f), 1189) { Fly = true }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span38 = CollectionsMarshal.AsSpan(list92); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + span4 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list92; reference68 = obj63; - ref QuestStep reference69 = ref span37[1]; + num2++; + ref QuestStep reference69 = ref span3[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1050875u, new Vector3(-391.01245f, 28.068893f, -365.0111f), 1189) { Fly = true @@ -358722,18 +433353,25 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span39 = CollectionsMarshal.AsSpan(list93); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list93; reference69 = obj64; obj62.Steps = list91; reference67 = obj62; - ref QuestSequence reference70 = ref span36[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -358741,7 +433379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { Fly = true, NextQuestId = new QuestId(5112) @@ -358755,21 +433395,26 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "liza"; questRoot13.Author = list95; - num = 4; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span40 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference71 = ref span40[0]; + index = 4; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + span3 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference72 = ref span3[num2]; QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, @@ -358786,10 +433431,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + span6 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD203_05112_Q1_000_000"), @@ -358799,7 +433446,8 @@ public static class AssemblyQuestLoader reference72 = obj67; obj66.Steps = list97; reference71 = obj66; - ref QuestSequence reference73 = ref span40[1]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -358807,25 +433455,31 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1050877u, new Vector3(-39.871887f, 0.35915944f, -312.1233f), 1189) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050877u, new Vector3(-39.871887f, 0.35915944f, -312.1233f), 1189) { StopDistance = 1f, Fly = true }; obj68.Steps = list99; reference73 = obj68; - ref QuestSequence reference74 = ref span40[2]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2014144u, new Vector3(-43.10681f, 0.503479f, -312.36743f), 1189); + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014144u, new Vector3(-43.10681f, 0.503479f, -312.36743f), 1189); obj69.Steps = list100; reference74 = obj69; - ref QuestSequence reference75 = ref span40[3]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -358833,7 +433487,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189) { Fly = true, NextQuestId = new QuestId(5113) @@ -358847,24 +433503,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list102); + index = 0; + span[index] = "liza"; questRoot14.Author = list102; - num = 5; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span41 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference76 = ref span41[0]; + index = 5; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + span2 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189); obj71.Steps = list104; reference76 = obj71; - ref QuestSequence reference77 = ref span41[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -358872,21 +433534,26 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1050879u, new Vector3(595.7274f, 18.8562f, -85.55737f), 1189) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050879u, new Vector3(595.7274f, 18.8562f, -85.55737f), 1189) { Fly = true }; obj72.Steps = list105; reference77 = obj72; - ref QuestSequence reference78 = ref span41[2]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Combat, null, new Vector3(705.4334f, 28.302685f, 2.3153868f), 1189) { StopDistance = 1f, @@ -358896,14 +433563,17 @@ public static class AssemblyQuestLoader num3 = 2; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span42 = CollectionsMarshal.AsSpan(list107); - span42[0] = 17671u; - span42[1] = 17672u; + span5 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span5[num4] = 17671u; + num4++; + span5[num4] = 17672u; obj74.KillEnemyDataIds = list107; reference79 = obj74; obj73.Steps = list106; reference78 = obj73; - ref QuestSequence reference80 = ref span41[3]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -358911,21 +433581,26 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1050881u, new Vector3(595.6052f, 18.84498f, -85.55737f), 1189) + span3 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050881u, new Vector3(595.6052f, 18.84498f, -85.55737f), 1189) { Fly = true }; obj75.Steps = list108; reference80 = obj75; - ref QuestSequence reference81 = ref span41[4]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050882u, new Vector3(-408.31616f, 20.383144f, -399.28284f), 1189) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + span3 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050882u, new Vector3(-408.31616f, 20.383144f, -399.28284f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -358938,13 +433613,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list110); + index = 0; + span[index] = "liza"; questRoot15.Author = list110; - num = 4; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span43 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference82 = ref span43[0]; + index = 4; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + span2 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -358952,7 +433630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -358970,29 +433650,35 @@ public static class AssemblyQuestLoader }; obj77.Steps = list112; reference82 = obj77; - ref QuestSequence reference83 = ref span43[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list113)[0]; + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference84 = ref span3[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(343.74197f, -154.60175f, 328.8051f), 1189) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 17673u; + num4 = 1; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + span5 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span5[num3] = 17673u; obj79.KillEnemyDataIds = list114; reference84 = obj79; obj78.Steps = list113; reference83 = obj78; - ref QuestSequence reference85 = ref span43[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -359000,21 +433686,26 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1050885u, new Vector3(338.49072f, -155.05281f, 322.80444f), 1189) + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050885u, new Vector3(338.49072f, -155.05281f, 322.80444f), 1189) { StopDistance = 7f }; obj80.Steps = list115; reference85 = obj80; - ref QuestSequence reference86 = ref span43[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189); obj81.Steps = list116; reference86 = obj81; questRoot15.QuestSequence = list111; @@ -359024,13 +433715,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list117); + index = 0; + span[index] = "liza"; questRoot16.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span44 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference87 = ref span44[0]; + index = 4; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + span2 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -359038,7 +433732,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359057,16 +433753,18 @@ public static class AssemblyQuestLoader }; obj82.Steps = list119; reference87 = obj82; - ref QuestSequence reference88 = ref span44[1]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span45 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference89 = ref span45[0]; + index2 = 3; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference89 = ref span3[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2014147u, new Vector3(440.66528f, -150.77448f, 427.7256f), 1189) { Fly = true, @@ -359075,21 +433773,30 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 17674u; + span5 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span5[num4] = 17674u; obj84.KillEnemyDataIds = list121; - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span46 = CollectionsMarshal.AsSpan(list122); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + span4 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list122; reference89 = obj84; - ref QuestStep reference90 = ref span45[1]; + num2++; + ref QuestStep reference90 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2014148u, new Vector3(395.4679f, -152.42242f, 372.7931f), 1189) { Fly = true, @@ -359098,21 +433805,30 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 17674u; + span5 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span5[num4] = 17674u; obj85.KillEnemyDataIds = list123; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span47 = CollectionsMarshal.AsSpan(list124); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + span4 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list124; reference90 = obj85; - ref QuestStep reference91 = ref span45[2]; + num2++; + ref QuestStep reference91 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014149u, new Vector3(267.9026f, -160.05188f, 354.45166f), 1189) { Fly = true @@ -359120,18 +433836,25 @@ public static class AssemblyQuestLoader num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span48 = CollectionsMarshal.AsSpan(list125); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list125; reference91 = obj86; obj83.Steps = list120; reference88 = obj83; - ref QuestSequence reference92 = ref span44[2]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -359139,21 +433862,26 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2014150u, new Vector3(236.95728f, -167.52887f, 307.97278f), 1189) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014150u, new Vector3(236.95728f, -167.52887f, 307.97278f), 1189) { Fly = true }; obj87.Steps = list126; reference92 = obj87; - ref QuestSequence reference93 = ref span44[3]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050890u, new Vector3(661.7991f, -137.174f, 557.76294f), 1189) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050890u, new Vector3(661.7991f, -137.174f, 557.76294f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359168,13 +433896,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list128); + index = 0; + span[index] = "liza"; questRoot17.Author = list128; - num = 4; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span49 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference94 = ref span49[0]; + index = 4; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + span2 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -359182,24 +433913,30 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj89.Steps = list130; reference94 = obj89; - ref QuestSequence reference95 = ref span49[1]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1048985u, new Vector3(583.33704f, -143.60632f, 703.7612f), 1189) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048985u, new Vector3(583.33704f, -143.60632f, 703.7612f), 1189) { Fly = true }; obj90.Steps = list131; reference95 = obj90; - ref QuestSequence reference96 = ref span49[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -359207,23 +433944,28 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span50 = CollectionsMarshal.AsSpan(list132); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.729744f, -212.69492f, 523.0088f), 1189) + span3 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.729744f, -212.69492f, 523.0088f), 1189) { Fly = true }; - span50[1] = new QuestStep(EInteractionType.Interact, 2014151u, new Vector3(-60.95984f, -210.83392f, 522.02637f), 1189); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014151u, new Vector3(-60.95984f, -210.83392f, 522.02637f), 1189); obj91.Steps = list132; reference96 = obj91; - ref QuestSequence reference97 = ref span49[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359238,13 +433980,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list134); + index = 0; + span[index] = "liza"; questRoot18.Author = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span51 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference98 = ref span51[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + span2 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -359252,38 +433997,49 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj93.Steps = list136; reference98 = obj93; - ref QuestSequence reference99 = ref span51[1]; + num++; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span52 = CollectionsMarshal.AsSpan(list137); - ref QuestStep reference100 = ref span52[0]; + index2 = 2; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference100 = ref span3[num2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 2014153u, new Vector3(500.5111f, -150.04199f, 704.12744f), 1189) { Fly = true, ItemId = 2003624u, GroundTarget = true }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span53 = CollectionsMarshal.AsSpan(list138); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + span4 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list138; reference100 = obj95; - ref QuestStep reference101 = ref span52[1]; + num2++; + ref QuestStep reference101 = ref span3[num2]; QuestStep obj96 = new QuestStep(EInteractionType.UseItem, 2014152u, new Vector3(486.90015f, -150.04199f, 355.8556f), 1189) { Fly = true, @@ -359293,18 +434049,25 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span54 = CollectionsMarshal.AsSpan(list139); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list139); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list139; reference101 = obj96; obj94.Steps = list137; reference99 = obj94; - ref QuestSequence reference102 = ref span51[2]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -359312,7 +434075,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359327,24 +434092,30 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot19.Author = list141; - num = 11; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span55 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference103 = ref span55[0]; + index = 11; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj98.Steps = list143; reference103 = obj98; - ref QuestSequence reference104 = ref span55[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -359352,15 +434123,19 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list144)[0]; + span3 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1050897u, new Vector3(755.94714f, -132.59648f, 505.94324f), 1189) { Fly = true }; - num3 = 1; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + num4 = 1; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + span6 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD401_05118_Q1_000_000"), @@ -359370,21 +434145,25 @@ public static class AssemblyQuestLoader reference105 = obj100; obj99.Steps = list144; reference104 = obj99; - ref QuestSequence reference106 = ref span55[2]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + span3 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj101.Steps = list146; reference106 = obj101; - ref QuestSequence reference107 = ref span55[3]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -359392,8 +434171,9 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span56 = CollectionsMarshal.AsSpan(list147); - ref QuestStep reference108 = ref span56[0]; + span3 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference108 = ref span3[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1050901u, new Vector3(627.25244f, -137.174f, 591.8517f), 1189) { Fly = true @@ -359401,46 +434181,63 @@ public static class AssemblyQuestLoader num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span57 = CollectionsMarshal.AsSpan(list148); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list148; reference108 = obj103; - ref QuestStep reference109 = ref span56[1]; + index2++; + ref QuestStep reference109 = ref span3[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1050900u, new Vector3(575.55493f, -137.174f, 540.0929f), 1189) { Fly = true }; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span58 = CollectionsMarshal.AsSpan(list149); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + span4 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list149; reference109 = obj104; obj102.Steps = list147; reference107 = obj102; - ref QuestSequence reference110 = ref span55[4]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189); obj105.Steps = list150; reference110 = obj105; - ref QuestSequence reference111 = ref span55[5]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -359448,27 +434245,33 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj106.Steps = list151; reference111 = obj106; - ref QuestSequence reference112 = ref span55[6]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) { Fly = true }; obj107.Steps = list152; reference112 = obj107; - ref QuestSequence reference113 = ref span55[7]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 7 @@ -359476,22 +434279,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.UseItem, 2014154u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2014154u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) { Fly = true, ItemId = 2003625u }; obj108.Steps = list153; reference113 = obj108; - ref QuestSequence reference114 = ref span55[8]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference115 = ref span3[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2014248u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -359499,12 +434307,15 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 17675u; + span5 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span5[num4] = 17675u; obj110.KillEnemyDataIds = list155; reference115 = obj110; obj109.Steps = list154; reference114 = obj109; - ref QuestSequence reference116 = ref span55[9]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 9 @@ -359512,21 +434323,26 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) { Fly = true }; obj111.Steps = list156; reference116 = obj111; - ref QuestSequence reference117 = ref span55[10]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050903u, new Vector3(663.9962f, -137.17401f, 554.589f), 1189) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050903u, new Vector3(663.9962f, -137.17401f, 554.589f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -359540,13 +434356,16 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "liza"; questRoot20.Author = list158; - num = 5; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span59 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference118 = ref span59[0]; + index = 5; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -359554,18 +434373,23 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); obj113.Steps = list160; reference118 = obj113; - ref QuestSequence reference119 = ref span59[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1050706u, new Vector3(248.27954f, 15.999974f, 746.4866f), 1190) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050706u, new Vector3(248.27954f, 15.999974f, 746.4866f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -359576,7 +434400,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list161; reference119 = obj114; - ref QuestSequence reference120 = ref span59[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 @@ -359584,24 +434409,30 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 2014065u, new Vector3(250.04956f, 16.281311f, 744.3502f), 1190) + span3 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014065u, new Vector3(250.04956f, 16.281311f, 744.3502f), 1190) { StopDistance = 4f }; obj115.Steps = list162; reference120 = obj115; - ref QuestSequence reference121 = ref span59[3]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 2014073u, new Vector3(379.65967f, 0.19836426f, 419.6383f), 1190); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + span3 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014073u, new Vector3(379.65967f, 0.19836426f, 419.6383f), 1190); obj116.Steps = list163; reference121 = obj116; - ref QuestSequence reference122 = ref span59[4]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -359609,7 +434440,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); obj117.Steps = list164; reference122 = obj117; questRoot20.QuestSequence = list159; @@ -359619,24 +434452,30 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list165); + index = 0; + span[index] = "liza"; questRoot21.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span60 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference123 = ref span60[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + span2 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + span3 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); obj118.Steps = list167; reference123 = obj118; - ref QuestSequence reference124 = ref span60[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -359644,36 +434483,47 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2014074u, new Vector3(323.44543f, -0.6867676f, 488.2428f), 1190); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014074u, new Vector3(323.44543f, -0.6867676f, 488.2428f), 1190); obj119.Steps = list168; reference124 = obj119; - ref QuestSequence reference125 = ref span60[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span61 = CollectionsMarshal.AsSpan(list169); - ref QuestStep reference126 = ref span61[0]; + index2 = 5; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref QuestStep reference126 = ref span3[num2]; QuestStep obj121 = new QuestStep(EInteractionType.UseItem, 1050639u, new Vector3(377.92017f, -0.2627951f, 432.48633f), 1190) { ItemId = 2003580u }; - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span62 = CollectionsMarshal.AsSpan(list170); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + span4 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj121.CompletionQuestVariablesFlags = list170; reference126 = obj121; - ref QuestStep reference127 = ref span61[1]; + num2++; + ref QuestStep reference127 = ref span3[num2]; QuestStep obj122 = new QuestStep(EInteractionType.UseItem, 1050638u, new Vector3(368.42908f, -0.26279587f, 419.69934f), 1190) { ItemId = 2003580u @@ -359681,40 +434531,56 @@ public static class AssemblyQuestLoader num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span63 = CollectionsMarshal.AsSpan(list171); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list171; reference127 = obj122; - span61[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); - span61[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { DisableNavmesh = true }; - ref QuestStep reference128 = ref span61[4]; + num2++; + ref QuestStep reference128 = ref span3[num2]; QuestStep obj123 = new QuestStep(EInteractionType.UseItem, 1050640u, new Vector3(377.03516f, 6.07724f, 423.02576f), 1190) { ItemId = 2003580u }; - num3 = 6; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span64 = CollectionsMarshal.AsSpan(list172); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list172 = new List(num4); + CollectionsMarshal.SetCount(list172, num4); + span4 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj123.CompletionQuestVariablesFlags = list172; reference128 = obj123; obj120.Steps = list169; reference125 = obj120; - ref QuestSequence reference129 = ref span60[3]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -359722,13 +434588,16 @@ public static class AssemblyQuestLoader num2 = 3; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span65 = CollectionsMarshal.AsSpan(list173); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190); - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - span65[2] = new QuestStep(EInteractionType.CompleteQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); obj124.Steps = list173; reference129 = obj124; questRoot21.QuestSequence = list166; @@ -359738,24 +434607,30 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list174); + index = 0; + span[index] = "liza"; questRoot22.Author = list174; - num = 3; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span66 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference130 = ref span66[0]; + index = 3; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + span2 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190); + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190); obj125.Steps = list176; reference130 = obj125; - ref QuestSequence reference131 = ref span66[1]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -359763,8 +434638,9 @@ public static class AssemblyQuestLoader num2 = 4; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span67 = CollectionsMarshal.AsSpan(list177); - ref QuestStep reference132 = ref span67[0]; + span3 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + ref QuestStep reference132 = ref span3[index2]; QuestStep obj127 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.75098f, -0.25793338f, 435.93985f), 1190) { Fly = true @@ -359774,77 +434650,107 @@ public static class AssemblyQuestLoader num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span68 = CollectionsMarshal.AsSpan(list178); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list178; skipConditions5.StepIf = skipStepConditions5; obj127.SkipConditions = skipConditions5; reference132 = obj127; - ref QuestStep reference133 = ref span67[1]; + index2++; + ref QuestStep reference133 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span69 = CollectionsMarshal.AsSpan(list179); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + span4 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list179; reference133 = questStep6; - ref QuestStep reference134 = ref span67[2]; + index2++; + ref QuestStep reference134 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.75098f, -0.25793338f, 435.93985f), 1190); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span70 = CollectionsMarshal.AsSpan(list180); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list180; skipConditions6.StepIf = skipStepConditions6; questStep7.SkipConditions = skipConditions6; reference134 = questStep7; - ref QuestStep reference135 = ref span67[3]; + index2++; + ref QuestStep reference135 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1049275u, new Vector3(267.44482f, 10.96981f, 659.4796f), 1190) { Fly = true }; - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span71 = CollectionsMarshal.AsSpan(list181); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + span4 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list181; reference135 = obj128; obj126.Steps = list177; reference131 = obj126; - ref QuestSequence reference136 = ref span66[2]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span3 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190) { Fly = true }; @@ -359857,13 +434763,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list183); + index = 0; + span[index] = "liza"; questRoot23.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span72 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference137 = ref span72[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + span2 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -359871,25 +434780,31 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190); obj130.Steps = list185; reference137 = obj130; - ref QuestSequence reference138 = ref span72[1]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.UseItem, 2014043u, new Vector3(416.3119f, 7.248047f, 217.73096f), 1190) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + span3 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2014043u, new Vector3(416.3119f, 7.248047f, 217.73096f), 1190) { Fly = true, ItemId = 2003581u }; obj131.Steps = list186; reference138 = obj131; - ref QuestSequence reference139 = ref span72[2]; + num++; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -359897,7 +434812,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list187)[0]; + span3 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference140 = ref span3[index2]; QuestStep obj133 = new QuestStep(EInteractionType.Combat, 2014044u, new Vector3(415.7931f, 7.4005737f, 229.0531f), 1190) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -359905,20 +434822,25 @@ public static class AssemblyQuestLoader num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = 17733u; + span5 = CollectionsMarshal.AsSpan(list188); + num4 = 0; + span5[num4] = 17733u; obj133.KillEnemyDataIds = list188; reference140 = obj133; obj132.Steps = list187; reference139 = obj132; - ref QuestSequence reference141 = ref span72[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190) { Fly = true }; @@ -359931,13 +434853,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; questRoot24.Author = list190; - num = 7; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span73 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference142 = ref span73[0]; + index = 7; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -359945,24 +434870,30 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj135.Steps = list192; reference142 = obj135; - ref QuestSequence reference143 = ref span73[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Emote, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190) { Emote = EEmote.Pet }; obj136.Steps = list193; reference143 = obj136; - ref QuestSequence reference144 = ref span73[2]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -359970,21 +434901,27 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); obj137.Steps = list194; reference144 = obj137; - ref QuestSequence reference145 = ref span73[3]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj138.Steps = list195; reference145 = obj138; - ref QuestSequence reference146 = ref span73[4]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -359992,21 +434929,27 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 2014045u, new Vector3(341.1764f, 0.1373291f, 457.969f), 1190); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014045u, new Vector3(341.1764f, 0.1373291f, 457.969f), 1190); obj139.Steps = list196; reference146 = obj139; - ref QuestSequence reference147 = ref span73[5]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); obj140.Steps = list197; reference147 = obj140; - ref QuestSequence reference148 = ref span73[6]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -360014,7 +434957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj141.Steps = list198; reference148 = obj141; questRoot24.QuestSequence = list191; @@ -360024,24 +434969,30 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "liza"; questRoot25.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span74 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference149 = ref span74[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190); + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190); obj142.Steps = list201; reference149 = obj142; - ref QuestSequence reference150 = ref span74[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -360049,44 +435000,58 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190) + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj143.Steps = list202; reference150 = obj143; - ref QuestSequence reference151 = ref span74[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span75 = CollectionsMarshal.AsSpan(list203); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); - span75[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + index2 = 4; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + span3 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { DisableNavmesh = true }; - ref QuestStep reference152 = ref span75[2]; + num2++; + ref QuestStep reference152 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1050718u, new Vector3(365.5603f, 5.957231f, 424.58215f), 1190); - num3 = 6; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span76 = CollectionsMarshal.AsSpan(list204); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + span4 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list204; reference152 = questStep8; - span75[3] = new QuestStep(EInteractionType.Interact, 1050719u, new Vector3(384.51196f, -1.5122339f, 383.6881f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050719u, new Vector3(384.51196f, -1.5122339f, 383.6881f), 1190); obj144.Steps = list203; reference151 = obj144; - ref QuestSequence reference153 = ref span74[3]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -360094,7 +435059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -360112,24 +435079,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "liza"; questRoot26.Author = list206; - num = 3; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span77 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference154 = ref span77[0]; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190); obj146.Steps = list208; reference154 = obj146; - ref QuestSequence reference155 = ref span77[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 @@ -360137,7 +435110,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list209)[0]; + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference156 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2014075u, new Vector3(-446.06702f, 17.868286f, 34.286987f), 1190) { Fly = true, @@ -360146,20 +435121,25 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = 17734u; + span5 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span5[num4] = 17734u; obj148.KillEnemyDataIds = list210; reference156 = obj148; obj147.Steps = list209; reference155 = obj147; - ref QuestSequence reference157 = ref span77[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190) + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190) { Fly = true }; @@ -360172,13 +435152,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list212); + index = 0; + span[index] = "liza"; questRoot27.Author = list212; - num = 3; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span78 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference158 = ref span78[0]; + index = 3; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + span2 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -360186,24 +435169,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); obj150.Steps = list214; reference158 = obj150; - ref QuestSequence reference159 = ref span78[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Snipe, 2014046u, new Vector3(-344.65558f, 18.051392f, -141.92426f), 1190) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Snipe, 2014046u, new Vector3(-344.65558f, 18.051392f, -141.92426f), 1190) { Comment = "Click (from left to right) pump, middle of the connecting pipes, barrels" }; obj151.Steps = list215; reference159 = obj151; - ref QuestSequence reference160 = ref span78[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -360211,25 +435200,30 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list216)[0]; + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference161 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); - num3 = 3; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span79 = CollectionsMarshal.AsSpan(list217); - span79[0] = new DialogueChoice + num4 = 3; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + span6 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZE008_05126_A1_000_001") }; - span79[1] = new DialogueChoice + num3++; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZE008_05126_A1_000_002") }; - span79[2] = new DialogueChoice + num3++; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), @@ -360246,24 +435240,30 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list218); + index = 0; + span[index] = "liza"; questRoot28.Author = list218; - num = 5; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span80 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span80[0]; + index = 5; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + span2 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); obj153.Steps = list220; reference162 = obj153; - ref QuestSequence reference163 = ref span80[1]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -360271,24 +435271,30 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); obj154.Steps = list221; reference163 = obj154; - ref QuestSequence reference164 = ref span80[2]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + span3 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) { Fly = true }; obj155.Steps = list222; reference164 = obj155; - ref QuestSequence reference165 = ref span80[3]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 3 @@ -360296,21 +435302,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Emote, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) { Emote = EEmote.Dance }; obj156.Steps = list223; reference165 = obj156; - ref QuestSequence reference166 = ref span80[4]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190) { Fly = true }; @@ -360323,13 +435334,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; questRoot29.Author = list225; - num = 4; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span81 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference167 = ref span81[0]; + index = 4; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -360337,24 +435351,30 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050643u, new Vector3(-250.56848f, 22.956224f, -140.30676f), 1190); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050643u, new Vector3(-250.56848f, 22.956224f, -140.30676f), 1190); obj158.Steps = list227; reference167 = obj158; - ref QuestSequence reference168 = ref span81[1]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190) { Fly = true }; obj159.Steps = list228; reference168 = obj159; - ref QuestSequence reference169 = ref span81[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -360362,22 +435382,27 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Emote, 2014050u, new Vector3(-527.1229f, 29.526123f, -175.64667f), 1190) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 2014050u, new Vector3(-527.1229f, 29.526123f, -175.64667f), 1190) { StopDistance = 4f, Emote = EEmote.Respect }; obj160.Steps = list229; reference169 = obj160; - ref QuestSequence reference170 = ref span81[3]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + span3 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190); obj161.Steps = list230; reference170 = obj161; questRoot29.QuestSequence = list226; @@ -360387,13 +435412,16 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list231); + index = 0; + span[index] = "liza"; questRoot30.Author = list231; - num = 3; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span82 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference171 = ref span82[0]; + index = 3; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + span2 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -360401,24 +435429,30 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190); obj162.Steps = list233; reference171 = obj162; - ref QuestSequence reference172 = ref span82[1]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1049323u, new Vector3(-227.49683f, -1.2980607f, 298.6648f), 1190) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049323u, new Vector3(-227.49683f, -1.2980607f, 298.6648f), 1190) { Fly = true }; obj163.Steps = list234; reference172 = obj163; - ref QuestSequence reference173 = ref span82[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -360426,7 +435460,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190) + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190) { Fly = true }; @@ -360439,24 +435475,30 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list236); + index = 0; + span[index] = "liza"; questRoot31.Author = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span83 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference174 = ref span83[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + span2 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); obj165.Steps = list238; reference174 = obj165; - ref QuestSequence reference175 = ref span83[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -360464,25 +435506,30 @@ public static class AssemblyQuestLoader num2 = 2; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span84 = CollectionsMarshal.AsSpan(list239); - span84[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013958u, new Vector3(-620.3861f, -9.079163f, 323.3844f), 1190) + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013958u, new Vector3(-620.3861f, -9.079163f, 323.3844f), 1190) { AetherCurrentId = 2818455u }; - span84[1] = new QuestStep(EInteractionType.Interact, 1050645u, new Vector3(-650.0496f, -9.854074f, 327.26013f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050645u, new Vector3(-650.0496f, -9.854074f, 327.26013f), 1190); obj166.Steps = list239; reference175 = obj166; - ref QuestSequence reference176 = ref span83[2]; + num++; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-527.3558f, -17.206274f, 443.9363f), 1190); - span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-527.3558f, -17.206274f, 443.9363f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); obj167.Steps = list240; reference176 = obj167; questRoot31.QuestSequence = list237; @@ -360492,13 +435539,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list241); + index = 0; + span[index] = "liza"; questRoot32.Author = list241; - num = 4; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span86 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference177 = ref span86[0]; + index = 4; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + span2 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -360506,18 +435556,23 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050646u, new Vector3(-150.68292f, -2.4235957f, 408.43823f), 1190); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050646u, new Vector3(-150.68292f, -2.4235957f, 408.43823f), 1190); obj168.Steps = list243; reference177 = obj168; - ref QuestSequence reference178 = ref span86[1]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list244)[0]; + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + span3 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref QuestStep reference179 = ref span3[num2]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, null, new Vector3(-111.25304f, -27.185633f, 723.9165f), 1190) { Fly = true, @@ -360526,12 +435581,15 @@ public static class AssemblyQuestLoader num3 = 1; List list245 = new List(num3); CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 17736u; + span5 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span5[num4] = 17736u; obj170.KillEnemyDataIds = list245; reference179 = obj170; obj169.Steps = list244; reference178 = obj169; - ref QuestSequence reference180 = ref span86[2]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -360539,21 +435597,26 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1050647u, new Vector3(-113.93915f, -27.518993f, 725.1239f), 1190) + span3 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050647u, new Vector3(-113.93915f, -27.518993f, 725.1239f), 1190) { StopDistance = 7f }; obj171.Steps = list246; reference180 = obj171; - ref QuestSequence reference181 = ref span86[3]; + num++; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050648u, new Vector3(-149.34009f, -2.7338073f, 409.04858f), 1190) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050648u, new Vector3(-149.34009f, -2.7338073f, 409.04858f), 1190) { Fly = true }; @@ -360566,13 +435629,16 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list248); + index = 0; + span[index] = "liza"; questRoot33.Author = list248; - num = 3; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span87 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference182 = ref span87[0]; + index = 3; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + span2 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -360580,41 +435646,52 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190); obj173.Steps = list250; reference182 = obj173; - ref QuestSequence reference183 = ref span87[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - Span span88 = CollectionsMarshal.AsSpan(list251); - ref QuestStep reference184 = ref span88[0]; + index2 = 4; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + span3 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + ref QuestStep reference184 = ref span3[num2]; QuestStep obj175 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(357.06458f, 2.9521801f, 391.37265f), 1190) { Fly = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span89 = CollectionsMarshal.AsSpan(list252); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list252 = new List(num4); + CollectionsMarshal.SetCount(list252, num4); + span4 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list252; skipStepConditions7.Flying = ELockedSkipCondition.Locked; skipConditions7.StepIf = skipStepConditions7; obj175.SkipConditions = skipConditions7; reference184 = obj175; - ref QuestStep reference185 = ref span88[1]; + num2++; + ref QuestStep reference185 = ref span3[num2]; QuestStep obj176 = new QuestStep(EInteractionType.UseItem, 2014051u, new Vector3(334.88965f, 6.3934937f, 263.1112f), 1190) { Fly = true, @@ -360623,60 +435700,83 @@ public static class AssemblyQuestLoader num3 = 6; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span90 = CollectionsMarshal.AsSpan(list253); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj176.CompletionQuestVariablesFlags = list253; reference185 = obj176; - ref QuestStep reference186 = ref span88[2]; + num2++; + ref QuestStep reference186 = ref span3[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 2014053u, new Vector3(440.66528f, 5.874695f, 254.93237f), 1190) { Fly = true, ItemId = 2003587u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 17737u; + num4 = 1; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + span5 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span5[num3] = 17737u; obj177.KillEnemyDataIds = list254; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span91 = CollectionsMarshal.AsSpan(list255); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj177.CompletionQuestVariablesFlags = list255; reference186 = obj177; - ref QuestStep reference187 = ref span88[3]; + num2++; + ref QuestStep reference187 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.UseItem, 2014052u, new Vector3(545.5862f, 8.377136f, 293.01892f), 1190) { Fly = true, ItemId = 2003587u }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span92 = CollectionsMarshal.AsSpan(list256); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + span4 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj178.CompletionQuestVariablesFlags = list256; reference187 = obj178; obj174.Steps = list251; reference183 = obj174; - ref QuestSequence reference188 = ref span87[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -360684,7 +435784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190) + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190) { Fly = true }; @@ -360697,24 +435799,30 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list258); + index = 0; + span[index] = "liza"; questRoot34.Author = list258; - num = 3; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span93 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference189 = ref span93[0]; + index = 3; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + span2 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference189 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190); + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + span3 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190); obj180.Steps = list260; reference189 = obj180; - ref QuestSequence reference190 = ref span93[1]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -360722,21 +435830,26 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 2014054u, new Vector3(-756.1608f, 35.8739f, 67.52112f), 1190) + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014054u, new Vector3(-756.1608f, 35.8739f, 67.52112f), 1190) { Fly = true }; obj181.Steps = list261; reference190 = obj181; - ref QuestSequence reference191 = ref span93[2]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + span3 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190) { Fly = true }; @@ -360749,13 +435862,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list263); + index = 0; + span[index] = "liza"; questRoot35.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span94 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference192 = ref span94[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + span2 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -360763,24 +435879,30 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051375u, new Vector3(376.15015f, -1.4395642f, 379.26294f), 1190); + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051375u, new Vector3(376.15015f, -1.4395642f, 379.26294f), 1190); obj183.Steps = list265; reference192 = obj183; - ref QuestSequence reference193 = ref span94[1]; + num++; + ref QuestSequence reference193 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1051376u, new Vector3(420.98108f, 0.41827834f, 466.20886f), 1190) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + span3 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051376u, new Vector3(420.98108f, 0.41827834f, 466.20886f), 1190) { Fly = true }; obj184.Steps = list266; reference193 = obj184; - ref QuestSequence reference194 = ref span94[2]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -360788,7 +435910,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051377u, new Vector3(419.02795f, 0.2806556f, 468.43665f), 1190) + span3 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051377u, new Vector3(419.02795f, 0.2806556f, 468.43665f), 1190) { StopDistance = 7f }; @@ -360801,24 +435925,30 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list268); + index = 0; + span[index] = "liza"; questRoot36.Author = list268; - num = 3; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span95 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference195 = ref span95[0]; + index = 3; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + span2 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190); + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + span3 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190); obj186.Steps = list270; reference195 = obj186; - ref QuestSequence reference196 = ref span95[1]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -360826,7 +435956,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list271)[0]; + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + ref QuestStep reference197 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Combat, null, new Vector3(-335.70532f, 18.652002f, -543.8954f), 1190) { Fly = true, @@ -360835,26 +435967,34 @@ public static class AssemblyQuestLoader num3 = 2; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span96 = CollectionsMarshal.AsSpan(list272); - ref ComplexCombatData reference198 = ref span96[0]; + span7 = CollectionsMarshal.AsSpan(list272); + num4 = 0; + ref ComplexCombatData reference198 = ref span7[num4]; ComplexCombatData obj189 = new ComplexCombatData { DataId = 17274u, MinimumKillCount = 2u }; - int num4 = 6; - List list273 = new List(num4); - CollectionsMarshal.SetCount(list273, num4); - Span span97 = CollectionsMarshal.AsSpan(list273); - span97[0] = null; - span97[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + int num5 = 6; + List list273 = new List(num5); + CollectionsMarshal.SetCount(list273, num5); + span4 = CollectionsMarshal.AsSpan(list273); + int num6 = 0; + span4[num6] = null; + num6++; + span4[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; + num6++; + span4[num6] = null; obj189.CompletionQuestVariablesFlags = list273; reference198 = obj189; - span96[1] = new ComplexCombatData + num4++; + span7[num4] = new ComplexCombatData { DataId = 17738u, MinimumKillCount = 1u @@ -360863,15 +436003,18 @@ public static class AssemblyQuestLoader reference197 = obj188; obj187.Steps = list271; reference196 = obj187; - ref QuestSequence reference199 = ref span95[2]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190) + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + span3 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190) { Fly = true }; @@ -360884,13 +436027,16 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list275); + index = 0; + span[index] = "liza"; questRoot37.Author = list275; - num = 4; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span98 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference200 = ref span98[0]; + index = 4; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + span2 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -360898,24 +436044,29 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190); + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190); obj191.Steps = list277; reference200 = obj191; - ref QuestSequence reference201 = ref span98[1]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - Span span99 = CollectionsMarshal.AsSpan(list278); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) + index2 = 2; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) { Mount = true, Fly = true }; - span99[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(557.73425f, -71.68169f, -220.66245f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(557.73425f, -71.68169f, -220.66245f), 1190) { DisableNavmesh = true, Fly = true, @@ -360923,7 +436074,8 @@ public static class AssemblyQuestLoader }; obj192.Steps = list278; reference201 = obj192; - ref QuestSequence reference202 = ref span98[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -360931,28 +436083,33 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 2014055u, new Vector3(568.0475f, -77.16492f, -219.92828f), 1190) + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014055u, new Vector3(568.0475f, -77.16492f, -219.92828f), 1190) { DisableNavmesh = true }; obj193.Steps = list279; reference202 = obj193; - ref QuestSequence reference203 = ref span98[3]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span100 = CollectionsMarshal.AsSpan(list280); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) + index2 = 2; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) { DisableNavmesh = true, Mount = true, Fly = true }; - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190) { Fly = true }; @@ -360965,13 +436122,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list281); + index = 0; + span[index] = "liza"; questRoot38.Author = list281; - num = 4; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span101 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference204 = ref span101[0]; + index = 4; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + span2 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -360979,25 +436139,31 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190); obj195.Steps = list283; reference204 = obj195; - ref QuestSequence reference205 = ref span101[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1050654u, new Vector3(-509.05627f, 62.947567f, -438.68164f), 1190) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050654u, new Vector3(-509.05627f, 62.947567f, -438.68164f), 1190) { StopDistance = 0.25f, Fly = true }; obj196.Steps = list284; reference205 = obj196; - ref QuestSequence reference206 = ref span101[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -361005,18 +436171,23 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 2014056u, new Vector3(-509.60556f, 62.91284f, -437.15576f), 1190); + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014056u, new Vector3(-509.60556f, 62.91284f, -437.15576f), 1190); obj197.Steps = list285; reference206 = obj197; - ref QuestSequence reference207 = ref span101[3]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190) { Fly = true }; @@ -361029,13 +436200,16 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "liza"; questRoot39.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span102 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference208 = ref span102[0]; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -361043,46 +436217,59 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190); + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190); obj199.Steps = list289; reference208 = obj199; - ref QuestSequence reference209 = ref span102[1]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span103 = CollectionsMarshal.AsSpan(list290); - span103[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013960u, new Vector3(380.30054f, -16.983276f, -508.17123f), 1190) + index2 = 9; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013960u, new Vector3(380.30054f, -16.983276f, -508.17123f), 1190) { AetherCurrentId = 2818452u }; - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.9261f, -17.458832f, -435.18936f), 1190); - span103[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013961u, new Vector3(645.5939f, -11.7647705f, -417.65472f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.9261f, -17.458832f, -435.18936f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013961u, new Vector3(645.5939f, -11.7647705f, -417.65472f), 1190) { AetherCurrentId = 2818456u }; - span103[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(659.8994f, -16.525915f, -173.6375f), 1190); - span103[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013963u, new Vector3(658.2893f, 21.011597f, 82.993774f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(659.8994f, -16.525915f, -173.6375f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013963u, new Vector3(658.2893f, 21.011597f, 82.993774f), 1190) { AetherCurrentId = 2818458u }; - span103[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9425f, 6.210067f, -53.1092f), 1190); - span103[6] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013962u, new Vector3(183.88635f, 11.917236f, -59.342346f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9425f, 6.210067f, -53.1092f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013962u, new Vector3(183.88635f, 11.917236f, -59.342346f), 1190) { DisableNavmesh = true, AetherCurrentId = 2818457u }; - span103[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.40674f, -11.14023f, -126.13759f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.40674f, -11.14023f, -126.13759f), 1190) { DisableNavmesh = true }; - span103[8] = new QuestStep(EInteractionType.Interact, 1050656u, new Vector3(449.05762f, -17.316843f, -155.6878f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050656u, new Vector3(449.05762f, -17.316843f, -155.6878f), 1190); obj200.Steps = list290; reference209 = obj200; - ref QuestSequence reference210 = ref span102[2]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -361090,54 +436277,64 @@ public static class AssemblyQuestLoader num2 = 7; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span104 = CollectionsMarshal.AsSpan(list291); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.57977f, -18.2f, -244.50037f), 1190) + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.57977f, -18.2f, -244.50037f), 1190) { Mount = false, Sprint = false }; - span104[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.76282f, -18.2f, -293.1074f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.76282f, -18.2f, -293.1074f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - span104[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(370.89987f, -18.2f, -351.861f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(370.89987f, -18.2f, -351.861f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - span104[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.1876f, -18.2f, -381.36987f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.1876f, -18.2f, -381.36987f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - span104[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.26978f, -18.2f, -454.76865f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.26978f, -18.2f, -454.76865f), 1190) { Mount = false, Sprint = false }; - span104[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17739u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17739u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190) { StopDistance = 0.25f, NpcWaitDistance = 4f, Mount = false, Sprint = false }; - span104[6] = new QuestStep(EInteractionType.Interact, 2014057u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014057u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190); obj201.Steps = list291; reference210 = obj201; - ref QuestSequence reference211 = ref span102[3]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) { StopDistance = 5f }; @@ -361150,13 +436347,16 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list293); + index = 0; + span[index] = "liza"; questRoot40.Author = list293; - num = 4; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span105 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference212 = ref span105[0]; + index = 4; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + span2 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -361164,25 +436364,31 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190); + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190); obj203.Steps = list295; reference212 = obj203; - ref QuestSequence reference213 = ref span105[1]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1050703u, new Vector3(387.9911f, -1.4394518f, 373.95276f), 1190) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050703u, new Vector3(387.9911f, -1.4394518f, 373.95276f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj204.Steps = list296; reference213 = obj204; - ref QuestSequence reference214 = ref span105[2]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -361190,18 +436396,23 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 2014058u, new Vector3(389.7306f, -1.1139526f, 368.8258f), 1190); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014058u, new Vector3(389.7306f, -1.1139526f, 368.8258f), 1190); obj205.Steps = list297; reference214 = obj205; - ref QuestSequence reference215 = ref span105[3]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; @@ -361214,13 +436425,16 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list299); + index = 0; + span[index] = "liza"; questRoot41.Author = list299; - num = 5; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span106 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference216 = ref span106[0]; + index = 5; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + span2 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -361228,24 +436442,30 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190); + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190); obj207.Steps = list301; reference216 = obj207; - ref QuestSequence reference217 = ref span106[1]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190) { Mount = true }; obj208.Steps = list302; reference217 = obj208; - ref QuestSequence reference218 = ref span106[2]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -361253,30 +436473,37 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190); + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190); obj209.Steps = list303; reference218 = obj209; - ref QuestSequence reference219 = ref span106[3]; + num++; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span107 = CollectionsMarshal.AsSpan(list304); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + index2 = 3; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { Mount = true }; - span107[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - span107[2] = new QuestStep(EInteractionType.Interact, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190); obj210.Steps = list304; reference219 = obj210; - ref QuestSequence reference220 = ref span106[4]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue @@ -361284,7 +436511,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190) + span3 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190) { Emote = EEmote.Flex }; @@ -361297,24 +436526,30 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list306); + index = 0; + span[index] = "liza"; questRoot42.Author = list306; - num = 3; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span108 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference221 = ref span108[0]; + index = 3; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + span2 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051288u, new Vector3(274.52502f, -4.49502f, 463.5537f), 1190); + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051288u, new Vector3(274.52502f, -4.49502f, 463.5537f), 1190); obj212.Steps = list308; reference221 = obj212; - ref QuestSequence reference222 = ref span108[1]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 @@ -361322,7 +436557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1051289u, new Vector3(246.57043f, 15.999963f, 761.2573f), 1190) + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051289u, new Vector3(246.57043f, 15.999963f, 761.2573f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -361333,20 +436570,25 @@ public static class AssemblyQuestLoader }; obj213.Steps = list309; reference222 = obj213; - ref QuestSequence reference223 = ref span108[2]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref QuestStep reference224 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + span6 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE202_05141_Q1_000_000"), @@ -361364,13 +436606,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "liza"; questRoot43.Author = list312; - num = 4; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span109 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference225 = ref span109[0]; + index = 4; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -361378,25 +436623,31 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); obj215.Steps = list314; reference225 = obj215; - ref QuestSequence reference226 = ref span109[1]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1051294u, new Vector3(279.92664f, -4.184075f, 461.53955f), 1190) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051294u, new Vector3(279.92664f, -4.184075f, 461.53955f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj216.Steps = list315; reference226 = obj216; - ref QuestSequence reference227 = ref span109[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 @@ -361404,8 +436655,9 @@ public static class AssemblyQuestLoader num2 = 6; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span110 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference228 = ref span110[0]; + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference228 = ref span3[index2]; QuestStep obj218 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(450.56f, 7.0377436f, 489.10336f), 1190) { Fly = true @@ -361415,37 +436667,51 @@ public static class AssemblyQuestLoader num3 = 6; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - Span span111 = CollectionsMarshal.AsSpan(list317); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list317); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list317; skipStepConditions8.Flying = ELockedSkipCondition.Locked; skipConditions8.StepIf = skipStepConditions8; obj218.SkipConditions = skipConditions8; reference228 = obj218; - ref QuestStep reference229 = ref span110[1]; + index2++; + ref QuestStep reference229 = ref span3[index2]; QuestStep obj219 = new QuestStep(EInteractionType.Emote, 1051297u, new Vector3(470.84766f, 2.6501055f, 478.08032f), 1190) { Fly = true, Emote = EEmote.Dance }; - num3 = 6; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span112 = CollectionsMarshal.AsSpan(list318); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list318 = new List(num4); + CollectionsMarshal.SetCount(list318, num4); + span4 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj219.CompletionQuestVariablesFlags = list318; reference229 = obj219; - ref QuestStep reference230 = ref span110[2]; + index2++; + ref QuestStep reference230 = ref span3[index2]; QuestStep obj220 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190) { Fly = true @@ -361455,83 +436721,113 @@ public static class AssemblyQuestLoader num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span113 = CollectionsMarshal.AsSpan(list319); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list319); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list319; skipStepConditions9.Flying = ELockedSkipCondition.Locked; skipConditions9.StepIf = skipStepConditions9; obj220.SkipConditions = skipConditions9; reference230 = obj220; - ref QuestStep reference231 = ref span110[3]; + index2++; + ref QuestStep reference231 = ref span3[index2]; QuestStep obj221 = new QuestStep(EInteractionType.Emote, 1051296u, new Vector3(369.92432f, 5.9371996f, 434.71423f), 1190) { Emote = EEmote.Dance }; - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span114 = CollectionsMarshal.AsSpan(list320); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list320 = new List(num4); + CollectionsMarshal.SetCount(list320, num4); + span4 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj221.CompletionQuestVariablesFlags = list320; reference231 = obj221; - ref QuestStep reference232 = ref span110[4]; + index2++; + ref QuestStep reference232 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190); SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span115 = CollectionsMarshal.AsSpan(list321); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list321); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list321; skipStepConditions10.Flying = ELockedSkipCondition.Locked; skipConditions10.StepIf = skipStepConditions10; questStep11.SkipConditions = skipConditions10; reference232 = questStep11; - ref QuestStep reference233 = ref span110[5]; + index2++; + ref QuestStep reference233 = ref span3[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Emote, 1051298u, new Vector3(375.6007f, -1.619559f, 387.62476f), 1190) { Fly = true, Emote = EEmote.Dance }; - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span116 = CollectionsMarshal.AsSpan(list322); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list322 = new List(num4); + CollectionsMarshal.SetCount(list322, num4); + span4 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj222.CompletionQuestVariablesFlags = list322; reference233 = obj222; obj217.Steps = list316; reference227 = obj217; - ref QuestSequence reference234 = ref span109[3]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051313u, new Vector3(279.469f, -4.1346755f, 460.28845f), 1190) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051313u, new Vector3(279.469f, -4.1346755f, 460.28845f), 1190) { Fly = true, NextQuestId = new QuestId(5143) @@ -361545,13 +436841,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list324); + index = 0; + span[index] = "liza"; questRoot44.Author = list324; - num = 4; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span117 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference235 = ref span117[0]; + index = 4; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + span2 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -361559,19 +436858,23 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051295u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051295u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); obj224.Steps = list326; reference235 = obj224; - ref QuestSequence reference236 = ref span117[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - Span span118 = CollectionsMarshal.AsSpan(list327); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.1434f, -0.26282632f, 438.94763f), 1190) + index2 = 2; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.1434f, -0.26282632f, 438.94763f), 1190) { Fly = true, SkipConditions = new SkipConditions @@ -361582,7 +436885,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference237 = ref span118[1]; + num2++; + ref QuestStep reference237 = ref span3[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) { Fly = true @@ -361590,7 +436894,9 @@ public static class AssemblyQuestLoader num3 = 1; List list328 = new List(num3); CollectionsMarshal.SetCount(list328, num3); - CollectionsMarshal.AsSpan(list328)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list328); + num4 = 0; + span6[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE204_05143_Q1_000_000"), @@ -361600,7 +436906,8 @@ public static class AssemblyQuestLoader reference237 = obj226; obj225.Steps = list327; reference236 = obj225; - ref QuestSequence reference238 = ref span117[2]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -361608,21 +436915,26 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 2014319u, new Vector3(290.76062f, -2.6704102f, 455.34436f), 1190) + span3 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014319u, new Vector3(290.76062f, -2.6704102f, 455.34436f), 1190) { Fly = true }; obj227.Steps = list329; reference238 = obj227; - ref QuestSequence reference239 = ref span117[3]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051314u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + span3 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051314u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); obj228.Steps = list330; reference239 = obj228; questRoot44.QuestSequence = list325; @@ -361632,13 +436944,16 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list331); + index = 0; + span[index] = "liza"; questRoot45.Author = list331; - num = 3; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span119 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference240 = ref span119[0]; + index = 3; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + span2 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -361646,23 +436961,29 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190); + span3 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190); obj229.Steps = list333; reference240 = obj229; - ref QuestSequence reference241 = ref span119[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span120 = CollectionsMarshal.AsSpan(list334); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.2223f, 18.75252f, -115.513306f), 1190); - span120[1] = new QuestStep(EInteractionType.Interact, 1051300u, new Vector3(-69.840576f, -8.097445f, 78.538086f), 1190); + index2 = 2; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span3 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.2223f, 18.75252f, -115.513306f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051300u, new Vector3(-69.840576f, -8.097445f, 78.538086f), 1190); obj230.Steps = list334; reference241 = obj230; - ref QuestSequence reference242 = ref span119[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -361670,7 +436991,9 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190) + span3 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -361683,24 +437006,30 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list336); + index = 0; + span[index] = "liza"; questRoot46.Author = list336; - num = 5; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span121 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference243 = ref span121[0]; + index = 5; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + span2 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + span3 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190); obj232.Steps = list338; reference243 = obj232; - ref QuestSequence reference244 = ref span121[1]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -361708,27 +437037,33 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1051320u, new Vector3(-379.04938f, 18.055899f, -117.387695f), 1190) + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051320u, new Vector3(-379.04938f, 18.055899f, -117.387695f), 1190) { Fly = true }; obj233.Steps = list339; reference244 = obj233; - ref QuestSequence reference245 = ref span121[2]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) { Fly = true }; obj234.Steps = list340; reference245 = obj234; - ref QuestSequence reference246 = ref span121[3]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 3 @@ -361736,21 +437071,26 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 2014321u, new Vector3(-120.561584f, -4.0131226f, 117.69275f), 1190) + span3 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014321u, new Vector3(-120.561584f, -4.0131226f, 117.69275f), 1190) { Fly = true }; obj235.Steps = list341; reference246 = obj235; - ref QuestSequence reference247 = ref span121[4]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + span3 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) { Fly = true, NextQuestId = new QuestId(5146) @@ -361764,13 +437104,16 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list343); + index = 0; + span[index] = "liza"; questRoot47.Author = list343; - num = 6; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span122 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference248 = ref span122[0]; + index = 6; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + span2 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -361778,24 +437121,30 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190); + span3 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190); obj237.Steps = list345; reference248 = obj237; - ref QuestSequence reference249 = ref span122[1]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1051305u, new Vector3(-220.7218f, -1.1039281f, 244.00696f), 1190) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051305u, new Vector3(-220.7218f, -1.1039281f, 244.00696f), 1190) { Fly = true }; obj238.Steps = list346; reference249 = obj238; - ref QuestSequence reference250 = ref span122[2]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -361803,27 +437152,33 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1051306u, new Vector3(-230.9148f, -1.2759173f, 291.9203f), 1190) + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051306u, new Vector3(-230.9148f, -1.2759173f, 291.9203f), 1190) { Fly = true }; obj239.Steps = list347; reference250 = obj239; - ref QuestSequence reference251 = ref span122[3]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051307u, new Vector3(-207.69055f, -1.8966466f, 329.7932f), 1190) + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + span3 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051307u, new Vector3(-207.69055f, -1.8966466f, 329.7932f), 1190) { Fly = true }; obj240.Steps = list348; reference251 = obj240; - ref QuestSequence reference252 = ref span122[4]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -361831,21 +437186,26 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051308u, new Vector3(-170.45856f, 1.6625541f, 365.6825f), 1190) + span3 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051308u, new Vector3(-170.45856f, 1.6625541f, 365.6825f), 1190) { Fly = true }; obj241.Steps = list349; reference252 = obj241; - ref QuestSequence reference253 = ref span122[5]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051309u, new Vector3(-130.02216f, 1.8320833f, 318.6847f), 1190) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + span3 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051309u, new Vector3(-130.02216f, 1.8320833f, 318.6847f), 1190) { Fly = true, NextQuestId = new QuestId(5147) @@ -361859,13 +437219,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list351); + index = 0; + span[index] = "liza"; questRoot48.Author = list351; - num = 4; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span123 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference254 = ref span123[0]; + index = 4; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + span2 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -361873,27 +437236,33 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051333u, new Vector3(-127.82489f, 1.8010846f, 318.13525f), 1190) + span3 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051333u, new Vector3(-127.82489f, 1.8010846f, 318.13525f), 1190) { StopDistance = 5f }; obj243.Steps = list353; reference254 = obj243; - ref QuestSequence reference255 = ref span123[1]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051334u, new Vector3(-156.87805f, 9.228875f, 9.262146f), 1190) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051334u, new Vector3(-156.87805f, 9.228875f, 9.262146f), 1190) { Fly = true }; obj244.Steps = list354; reference255 = obj244; - ref QuestSequence reference256 = ref span123[2]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -361901,29 +437270,36 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - ref QuestStep reference257 = ref CollectionsMarshal.AsSpan(list355)[0]; + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference257 = ref span3[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Combat, null, new Vector3(-73.8012f, 8.56271f, -61.943523f), 1190) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = 17742u; + num4 = 1; + List list356 = new List(num4); + CollectionsMarshal.SetCount(list356, num4); + span5 = CollectionsMarshal.AsSpan(list356); + num3 = 0; + span5[num3] = 17742u; obj246.KillEnemyDataIds = list356; reference257 = obj246; obj245.Steps = list355; reference256 = obj245; - ref QuestSequence reference258 = ref span123[3]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) { Fly = true, NextQuestId = new QuestId(5148) @@ -361937,13 +437313,16 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - CollectionsMarshal.AsSpan(list358)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list358); + index = 0; + span[index] = "liza"; questRoot49.Author = list358; - num = 8; - List list359 = new List(num); - CollectionsMarshal.SetCount(list359, num); - Span span124 = CollectionsMarshal.AsSpan(list359); - ref QuestSequence reference259 = ref span124[0]; + index = 8; + List list359 = new List(index); + CollectionsMarshal.SetCount(list359, index); + span2 = CollectionsMarshal.AsSpan(list359); + num = 0; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 0 @@ -361951,21 +437330,27 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); + span3 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); obj248.Steps = list360; reference259 = obj248; - ref QuestSequence reference260 = ref span124[1]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 1051339u, new Vector3(-529.0761f, -17.160866f, 444.23596f), 1190); + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + span3 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051339u, new Vector3(-529.0761f, -17.160866f, 444.23596f), 1190); obj249.Steps = list361; reference260 = obj249; - ref QuestSequence reference261 = ref span124[2]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = 2 @@ -361973,65 +437358,91 @@ public static class AssemblyQuestLoader num2 = 3; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span125 = CollectionsMarshal.AsSpan(list362); - ref QuestStep reference262 = ref span125[0]; + span3 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + ref QuestStep reference262 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014323u, new Vector3(-600.3052f, -13.382202f, 379.99524f), 1190); num3 = 6; List list363 = new List(num3); CollectionsMarshal.SetCount(list363, num3); - Span span126 = CollectionsMarshal.AsSpan(list363); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list363); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list363; reference262 = questStep12; - ref QuestStep reference263 = ref span125[1]; + index2++; + ref QuestStep reference263 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014322u, new Vector3(-619.01276f, -14.114624f, 379.65967f), 1190); - num3 = 6; - List list364 = new List(num3); - CollectionsMarshal.SetCount(list364, num3); - Span span127 = CollectionsMarshal.AsSpan(list364); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list364 = new List(num4); + CollectionsMarshal.SetCount(list364, num4); + span4 = CollectionsMarshal.AsSpan(list364); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list364; reference263 = questStep13; - ref QuestStep reference264 = ref span125[2]; + index2++; + ref QuestStep reference264 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014324u, new Vector3(-639.30725f, -12.863403f, 369.46667f), 1190); num3 = 6; List list365 = new List(num3); CollectionsMarshal.SetCount(list365, num3); - Span span128 = CollectionsMarshal.AsSpan(list365); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list365); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list365; reference264 = questStep14; obj250.Steps = list362; reference261 = obj250; - ref QuestSequence reference265 = ref span124[3]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - ref QuestStep reference266 = ref CollectionsMarshal.AsSpan(list366)[0]; + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + ref QuestStep reference266 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051310u, new Vector3(-638.1476f, -11.576093f, 350.8506f), 1190); - num3 = 1; - List list367 = new List(num3); - CollectionsMarshal.SetCount(list367, num3); - CollectionsMarshal.AsSpan(list367)[0] = new DialogueChoice + num4 = 1; + List list367 = new List(num4); + CollectionsMarshal.SetCount(list367, num4); + span6 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE401_05148_Q2_000_000"), @@ -362041,7 +437452,8 @@ public static class AssemblyQuestLoader reference266 = questStep15; obj251.Steps = list366; reference265 = obj251; - ref QuestSequence reference267 = ref span124[4]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 4 @@ -362049,8 +437461,9 @@ public static class AssemblyQuestLoader num2 = 2; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span129 = CollectionsMarshal.AsSpan(list368); - ref QuestStep reference268 = ref span129[0]; + span3 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + ref QuestStep reference268 = ref span3[index2]; QuestStep obj253 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190) { Fly = true, @@ -362061,42 +437474,54 @@ public static class AssemblyQuestLoader num3 = 6; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - Span span130 = CollectionsMarshal.AsSpan(list369); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list369); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list369; skipStepConditions11.Flying = ELockedSkipCondition.Locked; skipConditions11.StepIf = skipStepConditions11; obj253.SkipConditions = skipConditions11; reference268 = obj253; - span129[1] = new QuestStep(EInteractionType.Interact, 1051315u, new Vector3(362.87476f, 5.9371996f, 427.2068f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051315u, new Vector3(362.87476f, 5.9371996f, 427.2068f), 1190); obj252.Steps = list368; reference267 = obj252; - ref QuestSequence reference269 = ref span124[5]; + num++; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span131 = CollectionsMarshal.AsSpan(list370); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + index2 = 3; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { Mount = true }; - span131[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - span131[2] = new QuestStep(EInteractionType.Interact, 1051321u, new Vector3(357.7782f, -1.0164845f, 438.37634f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051321u, new Vector3(357.7782f, -1.0164845f, 438.37634f), 1190); obj254.Steps = list370; reference269 = obj254; - ref QuestSequence reference270 = ref span124[6]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 6 @@ -362104,22 +437529,27 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj255.Steps = list371; reference270 = obj255; - ref QuestSequence reference271 = ref span124[7]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span3 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); obj256.Steps = list372; reference271 = obj256; questRoot49.QuestSequence = list359; @@ -362129,13 +437559,16 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - CollectionsMarshal.AsSpan(list373)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list373); + index = 0; + span[index] = "liza"; questRoot50.Author = list373; - num = 3; - List list374 = new List(num); - CollectionsMarshal.SetCount(list374, num); - Span span132 = CollectionsMarshal.AsSpan(list374); - ref QuestSequence reference272 = ref span132[0]; + index = 3; + List list374 = new List(index); + CollectionsMarshal.SetCount(list374, index); + span2 = CollectionsMarshal.AsSpan(list374); + num = 0; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 0 @@ -362143,7 +437576,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191) + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -362161,35 +437596,44 @@ public static class AssemblyQuestLoader }; obj257.Steps = list375; reference272 = obj257; - ref QuestSequence reference273 = ref span132[1]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - Span span133 = CollectionsMarshal.AsSpan(list376); - ref QuestStep reference274 = ref span133[0]; + index2 = 9; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + ref QuestStep reference274 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.22218f, 30f, -620.3656f), 1191); SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 6; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - Span span134 = CollectionsMarshal.AsSpan(list377); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list377 = new List(num4); + CollectionsMarshal.SetCount(list377, num4); + span4 = CollectionsMarshal.AsSpan(list377); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list377; skipStepConditions12.Flying = ELockedSkipCondition.Unlocked; skipConditions12.StepIf = skipStepConditions12; questStep16.SkipConditions = skipConditions12; reference274 = questStep16; - ref QuestStep reference275 = ref span133[1]; + num2++; + ref QuestStep reference275 = ref span3[num2]; QuestStep obj259 = new QuestStep(EInteractionType.UseItem, 2014079u, new Vector3(-213.24487f, 30.838379f, -618.0362f), 1191) { ItemId = 2003594u, @@ -362204,54 +437648,75 @@ public static class AssemblyQuestLoader num3 = 6; List list378 = new List(num3); CollectionsMarshal.SetCount(list378, num3); - Span span135 = CollectionsMarshal.AsSpan(list378); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj259.CompletionQuestVariablesFlags = list378; reference275 = obj259; - ref QuestStep reference276 = ref span133[2]; + num2++; + ref QuestStep reference276 = ref span3[num2]; QuestStep obj260 = new QuestStep(EInteractionType.UseItem, 2014079u, new Vector3(-213.24487f, 30.838379f, -618.0362f), 1191) { StopDistance = 0.25f, Fly = true, ItemId = 2003594u }; - num3 = 6; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span136 = CollectionsMarshal.AsSpan(list379); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list379 = new List(num4); + CollectionsMarshal.SetCount(list379, num4); + span4 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj260.CompletionQuestVariablesFlags = list379; reference276 = obj260; - ref QuestStep reference277 = ref span133[3]; + num2++; + ref QuestStep reference277 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-274.73184f, 36.99997f, -506.5031f), 1191); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); num3 = 6; List list380 = new List(num3); CollectionsMarshal.SetCount(list380, num3); - Span span137 = CollectionsMarshal.AsSpan(list380); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list380); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list380; skipStepConditions13.Flying = ELockedSkipCondition.Unlocked; skipConditions13.StepIf = skipStepConditions13; questStep17.SkipConditions = skipConditions13; reference277 = questStep17; - ref QuestStep reference278 = ref span133[4]; + num2++; + ref QuestStep reference278 = ref span3[num2]; QuestStep obj261 = new QuestStep(EInteractionType.UseItem, 2014078u, new Vector3(-272.8161f, 37.857544f, -504.9058f), 1191) { ItemId = 2003594u, @@ -362263,19 +437728,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list381 = new List(num3); - CollectionsMarshal.SetCount(list381, num3); - Span span138 = CollectionsMarshal.AsSpan(list381); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list381 = new List(num4); + CollectionsMarshal.SetCount(list381, num4); + span4 = CollectionsMarshal.AsSpan(list381); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj261.CompletionQuestVariablesFlags = list381; reference278 = obj261; - ref QuestStep reference279 = ref span133[5]; + num2++; + ref QuestStep reference279 = ref span3[num2]; QuestStep obj262 = new QuestStep(EInteractionType.UseItem, 2014078u, new Vector3(-272.8161f, 37.857544f, -504.9058f), 1191) { StopDistance = 0.25f, @@ -362285,35 +437757,49 @@ public static class AssemblyQuestLoader num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - Span span139 = CollectionsMarshal.AsSpan(list382); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list382); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj262.CompletionQuestVariablesFlags = list382; reference279 = obj262; - ref QuestStep reference280 = ref span133[6]; + num2++; + ref QuestStep reference280 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.93515f, 37.00001f, -611.26953f), 1191); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 6; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - Span span140 = CollectionsMarshal.AsSpan(list383); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + span4 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list383; skipStepConditions14.Flying = ELockedSkipCondition.Unlocked; skipConditions14.StepIf = skipStepConditions14; questStep18.SkipConditions = skipConditions14; reference280 = questStep18; - ref QuestStep reference281 = ref span133[7]; + num2++; + ref QuestStep reference281 = ref span3[num2]; QuestStep obj263 = new QuestStep(EInteractionType.UseItem, 2014080u, new Vector3(-349.1112f, 37.857544f, -610.5898f), 1191) { ItemId = 2003594u, @@ -362328,37 +437814,51 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span141 = CollectionsMarshal.AsSpan(list384); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span4 = CollectionsMarshal.AsSpan(list384); + num4 = 0; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = null; + num4++; + span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj263.CompletionQuestVariablesFlags = list384; reference281 = obj263; - ref QuestStep reference282 = ref span133[8]; + num2++; + ref QuestStep reference282 = ref span3[num2]; QuestStep obj264 = new QuestStep(EInteractionType.UseItem, 2014080u, new Vector3(-349.1112f, 37.857544f, -610.5898f), 1191) { StopDistance = 0.25f, Fly = true, ItemId = 2003594u }; - num3 = 6; - List list385 = new List(num3); - CollectionsMarshal.SetCount(list385, num3); - Span span142 = CollectionsMarshal.AsSpan(list385); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list385 = new List(num4); + CollectionsMarshal.SetCount(list385, num4); + span4 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = null; + num3++; + span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj264.CompletionQuestVariablesFlags = list385; reference282 = obj264; obj258.Steps = list376; reference273 = obj258; - ref QuestSequence reference283 = ref span132[2]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = byte.MaxValue @@ -362366,12 +437866,14 @@ public static class AssemblyQuestLoader num2 = 2; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span143 = CollectionsMarshal.AsSpan(list386); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.87784f, 30f, -577.24225f), 1191) + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.87784f, 30f, -577.24225f), 1191) { Fly = true }; - span143[1] = new QuestStep(EInteractionType.CompleteQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191); obj265.Steps = list386; reference283 = obj265; questRoot50.QuestSequence = list374; @@ -362385,13 +437887,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -362399,7 +437904,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -362417,26 +437924,30 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) { Mount = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1049475u, new Vector3(-69.87109f, 36.567646f, -217.39532f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049475u, new Vector3(-69.87109f, 36.567646f, -217.39532f), 1191) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -362444,7 +437955,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span3[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2014084u, new Vector3(-69.68799f, 36.972534f, -215.7168f), 1191) { StopDistance = 4.5f @@ -362452,7 +437965,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZF002_05150_Q1_100_008") @@ -362461,20 +437976,23 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + span3 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -362484,13 +438002,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list8); + index = 0; + span[index] = "liza"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + span2 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -362498,7 +438019,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) + span3 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -362516,18 +438039,22 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + span3 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -362535,29 +438062,35 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-185.05022f, 30.989729f, -513.96875f), 1191) + span3 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-185.05022f, 30.989729f, -513.96875f), 1191) { StopDistance = 0.5f, Fly = true }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[3]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-196.74313f, 34.982788f, -643.43665f), 1191) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + span3 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-196.74313f, 34.982788f, -643.43665f), 1191) { StopDistance = 0.5f, Fly = true }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span4[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -362565,22 +438098,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-165.5087f, 38.967262f, -706.4246f), 1191) + span3 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-165.5087f, 38.967262f, -706.4246f), 1191) { StopDistance = 0.5f, Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span4[5]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) { Fly = true }; @@ -362593,13 +438131,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list16); + index = 0; + span[index] = "liza"; questRoot3.Author = list16; - num = 6; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 6; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + span2 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -362607,7 +438148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) { Fly = true, Land = true, @@ -362627,22 +438170,26 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -362650,29 +438197,35 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Emote, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) + span3 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) { Fly = true, Emote = EEmote.Cheer }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span5[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Emote, 1050662u, new Vector3(149.7367f, 48.34552f, -463.5844f), 1191) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1050662u, new Vector3(149.7367f, 48.34552f, -463.5844f), 1191) { Fly = true, Emote = EEmote.Cheer }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -362680,7 +438233,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Emote, 1050727u, new Vector3(309.65125f, 71.38871f, -473.68585f), 1191) + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1050727u, new Vector3(309.65125f, 71.38871f, -473.68585f), 1191) { StopDistance = 0.25f, Fly = true, @@ -362688,15 +438243,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[5]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) { StopDistance = 0.25f, Fly = true @@ -362710,13 +438268,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list24); + index = 0; + span[index] = "liza"; questRoot4.Author = list24; - num = 4; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span6[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + span2 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -362724,32 +438285,40 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191); obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list27)[0]; + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference20 = ref span3[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(352.85733f, 82.089386f, -355.71875f), 1191) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 17677u; + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span5 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span5[num3] = 17677u; obj20.KillEnemyDataIds = list28; reference20 = obj20; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference21 = ref span6[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -362757,21 +438326,26 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1050664u, new Vector3(354.3297f, 82.042984f, -355.7641f), 1191) + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050664u, new Vector3(354.3297f, 82.042984f, -355.7641f), 1191) { StopDistance = 7f }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span6[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span3 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -362784,13 +438358,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list31); + index = 0; + span[index] = "liza"; questRoot5.Author = list31; - num = 3; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span7 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span7[0]; + index = 3; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + span2 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -362798,24 +438375,30 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051378u, new Vector3(-184.89362f, 29.978386f, -584.52734f), 1191); + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051378u, new Vector3(-184.89362f, 29.978386f, -584.52734f), 1191); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span7[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1051379u, new Vector3(-324.51367f, 36.98768f, -554.00934f), 1191) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051379u, new Vector3(-324.51367f, 36.98768f, -554.00934f), 1191) { Fly = true }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span7[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -362823,7 +438406,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051380u, new Vector3(-323.72015f, 36.98504f, -555.8404f), 1191); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051380u, new Vector3(-323.72015f, 36.98504f, -555.8404f), 1191); obj25.Steps = list35; reference25 = obj25; questRoot5.QuestSequence = list32; @@ -362833,21 +438418,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span8 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span8[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -362866,7 +438456,8 @@ public static class AssemblyQuestLoader }; obj26.Steps = list38; reference26 = obj26; - ref QuestSequence reference27 = ref span8[1]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -362874,8 +438465,9 @@ public static class AssemblyQuestLoader num2 = 5; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span9 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference28 = ref span9[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference28 = ref span3[index2]; QuestStep obj28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-731.0091f, 10.949384f, -113.12315f), 1191) { Fly = true @@ -362885,35 +438477,49 @@ public static class AssemblyQuestLoader num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span10 = CollectionsMarshal.AsSpan(list40); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list40; skipConditions.StepIf = skipStepConditions; obj28.SkipConditions = skipConditions; reference28 = obj28; - ref QuestStep reference29 = ref span9[1]; + index2++; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2014091u, new Vector3(-732.44836f, 11.459534f, -110.185425f), 1191) { StopDistance = 4f }; - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span11 = CollectionsMarshal.AsSpan(list41); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + span6 = CollectionsMarshal.AsSpan(list41); + 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); obj29.CompletionQuestVariablesFlags = list41; reference29 = obj29; - ref QuestStep reference30 = ref span9[2]; + index2++; + ref QuestStep reference30 = ref span3[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2014092u, new Vector3(-771.93866f, 8.2855835f, -37.583008f), 1191) { Fly = true @@ -362921,61 +438527,84 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span12 = CollectionsMarshal.AsSpan(list42); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list42; reference30 = obj30; - ref QuestStep reference31 = ref span9[3]; + index2++; + ref QuestStep reference31 = ref span3[index2]; QuestStep obj31 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-646.74786f, 17.395247f, 39.380535f), 1191) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span13 = CollectionsMarshal.AsSpan(list43); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + span6 = CollectionsMarshal.AsSpan(list43); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list43; skipConditions2.StepIf = skipStepConditions2; obj31.SkipConditions = skipConditions2; reference31 = obj31; - ref QuestStep reference32 = ref span9[4]; + index2++; + ref QuestStep reference32 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2014093u, new Vector3(-645.3804f, 17.837708f, 39.230957f), 1191); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span14 = CollectionsMarshal.AsSpan(list44); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list44; reference32 = questStep; obj27.Steps = list39; reference27 = obj27; - ref QuestSequence reference33 = ref span8[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + span3 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts @@ -362989,13 +438618,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "liza"; questRoot7.Author = list46; - num = 4; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span15 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span15[0]; + index = 4; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -363003,26 +438635,32 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj33.Steps = list48; reference34 = obj33; - ref QuestSequence reference35 = ref span15[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013971u, new Vector3(-286.15247f, 59.464355f, -263.6302f), 1191) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013971u, new Vector3(-286.15247f, 59.464355f, -263.6302f), 1191) { AetherCurrentId = 2818471u }; - span16[1] = new QuestStep(EInteractionType.Interact, 1050666u, new Vector3(-446.79944f, 37.14403f, -266.62097f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050666u, new Vector3(-446.79944f, 37.14403f, -266.62097f), 1191); obj34.Steps = list49; reference35 = obj34; - ref QuestSequence reference36 = ref span15[2]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -363030,36 +438668,42 @@ public static class AssemblyQuestLoader num2 = 13; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span17 = CollectionsMarshal.AsSpan(list50); - span17[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-442.6795f, 40.021717f, -293.11053f), 1191) + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-442.6795f, 40.021717f, -293.11053f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-447.5891f, 42.70318f, -318.90863f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-447.5891f, 42.70318f, -318.90863f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-498.92047f, 40.894764f, -325.42456f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-498.92047f, 40.894764f, -325.42456f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - ref QuestStep reference37 = ref span17[3]; + index2++; + ref QuestStep reference37 = ref span3[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(-529.6522f, 41.341557f, -311.63504f), 1191) { StopDistance = 0.5f, DisableNavmesh = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new ComplexCombatData + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span7 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span7[num3] = new ComplexCombatData { DataId = 17679u, MinimumKillCount = 1u, @@ -363068,61 +438712,73 @@ public static class AssemblyQuestLoader obj36.ComplexCombatData = list51; obj36.CombatDelaySecondsAtStart = 2f; reference37 = obj36; - span17[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-539.79065f, 42.696747f, -313.67438f), 1191); - span17[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-549.0783f, 38.5679f, -342.1571f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-539.79065f, 42.696747f, -313.67438f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-549.0783f, 38.5679f, -342.1571f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-558.5067f, 35.95048f, -376.88058f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-558.5067f, 35.95048f, -376.88058f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-596.211f, 30.139477f, -387.31094f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-596.211f, 30.139477f, -387.31094f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-608.17377f, 17.933014f, -420.98196f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-608.17377f, 17.933014f, -420.98196f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-611.266f, 10.040784f, -443.45764f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-611.266f, 10.040784f, -443.45764f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[10] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-609.279f, 1.6734335f, -468.76624f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-609.279f, 1.6734335f, -468.76624f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) + index2++; + span3[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[12] = new QuestStep(EInteractionType.Interact, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj35.Steps = list50; reference36 = obj35; - ref QuestSequence reference38 = ref span15[3]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + span3 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj37.Steps = list52; reference38 = obj37; questRoot7.QuestSequence = list47; @@ -363132,13 +438788,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list53); + index = 0; + span[index] = "liza"; questRoot8.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span18 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference39 = ref span18[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + span2 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -363146,7 +438805,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike, @@ -363165,26 +438826,30 @@ public static class AssemblyQuestLoader }; obj38.Steps = list55; reference39 = obj38; - ref QuestSequence reference40 = ref span18[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span19 = CollectionsMarshal.AsSpan(list56); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.850063f, 67.24198f, 182.26367f), 1191) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.850063f, 67.24198f, 182.26367f), 1191) { Fly = true }; - span19[1] = new QuestStep(EInteractionType.Emote, 1050667u, new Vector3(-51.46869f, 66.87813f, 180.07166f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.Emote, 1050667u, new Vector3(-51.46869f, 66.87813f, 180.07166f), 1191) { Emote = EEmote.Poke }; obj39.Steps = list56; reference40 = obj39; - ref QuestSequence reference41 = ref span18[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -363192,7 +438857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; @@ -363205,21 +438872,26 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list58); + index = 0; + span[index] = "liza"; questRoot9.Author = list58; - num = 3; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span20 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference42 = ref span20[0]; + index = 3; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + span2 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike, @@ -363238,7 +438910,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference42 = obj41; - ref QuestSequence reference43 = ref span20[1]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -363246,8 +438919,9 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span21 = CollectionsMarshal.AsSpan(list61); - ref QuestStep reference44 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + ref QuestStep reference44 = ref span3[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-174.01418f, 31.361284f, 268.5205f), 1191) { StopDistance = 0.5f, @@ -363257,23 +438931,32 @@ public static class AssemblyQuestLoader num3 = 2; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span22 = CollectionsMarshal.AsSpan(list62); - span22[0] = 17682u; - span22[1] = 17683u; + span5 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span5[index3] = 17682u; + index3++; + span5[index3] = 17683u; obj43.KillEnemyDataIds = list62; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span23 = CollectionsMarshal.AsSpan(list63); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span6 = CollectionsMarshal.AsSpan(list63); + 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); obj43.CompletionQuestVariablesFlags = list63; reference44 = obj43; - ref QuestStep reference45 = ref span21[1]; + index2++; + ref QuestStep reference45 = ref span3[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(-352.59204f, 39.809544f, -44.773865f), 1191) { StopDistance = 0.5f, @@ -363283,33 +438966,44 @@ public static class AssemblyQuestLoader num3 = 2; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span24 = CollectionsMarshal.AsSpan(list64); - span24[0] = 17680u; - span24[1] = 17681u; + span5 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span5[index3] = 17680u; + index3++; + span5[index3] = 17681u; obj44.KillEnemyDataIds = list64; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span25 = CollectionsMarshal.AsSpan(list65); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + span6 = CollectionsMarshal.AsSpan(list65); + 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); obj44.CompletionQuestVariablesFlags = list65; reference45 = obj44; obj42.Steps = list61; reference43 = obj42; - ref QuestSequence reference46 = ref span20[2]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; @@ -363322,13 +439016,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "liza"; questRoot10.Author = list67; - num = 4; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span26 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span26[0]; + index = 4; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -363336,35 +439033,47 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191); + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191); obj46.Steps = list69; reference47 = obj46; - ref QuestSequence reference48 = ref span26[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span27 = CollectionsMarshal.AsSpan(list70); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-392.35907f, -14.000012f, 635.3141f), 1191); - span27[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-415.87146f, -13.798597f, 656.2935f), 1191); - span27[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-442.4273f, -14.000011f, 696.89746f), 1191); - span27[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-457.70477f, -14.000011f, 697.2411f), 1191); - span27[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013973u, new Vector3(-457.66388f, -13.412781f, 693.1105f), 1191) + index2 = 7; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-392.35907f, -14.000012f, 635.3141f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-415.87146f, -13.798597f, 656.2935f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-442.4273f, -14.000011f, 696.89746f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-457.70477f, -14.000011f, 697.2411f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013973u, new Vector3(-457.66388f, -13.412781f, 693.1105f), 1191) { StopDistance = 4.5f, Comment = "While counterintuitive, this is the closest aether current/msq quest", AetherCurrentId = 2818473u }; - span27[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81693f, -2.2232819f, 665.8315f), 1191); - ref QuestStep reference49 = ref span27[6]; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81693f, -2.2232819f, 665.8315f), 1191); + num2++; + ref QuestStep reference49 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1050668u, new Vector3(195.08655f, 88.5662f, 669.36743f), 1191); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZF105_05159_Q1_100_006") @@ -363373,7 +439082,8 @@ public static class AssemblyQuestLoader reference49 = questStep2; obj47.Steps = list70; reference48 = obj47; - ref QuestSequence reference50 = ref span26[2]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -363381,74 +439091,105 @@ public static class AssemblyQuestLoader num2 = 4; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span28 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference51 = ref span28[0]; + span3 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference51 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014094u, new Vector3(216.44922f, 89.15845f, 657.3739f), 1191); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span29 = CollectionsMarshal.AsSpan(list73); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + span6 = CollectionsMarshal.AsSpan(list73); + 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); questStep3.CompletionQuestVariablesFlags = list73; reference51 = questStep3; - ref QuestStep reference52 = ref span28[1]; + index2++; + ref QuestStep reference52 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014096u, new Vector3(246.8451f, 90.71484f, 646.78406f), 1191); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span30 = CollectionsMarshal.AsSpan(list74); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list74; reference52 = questStep4; - ref QuestStep reference53 = ref span28[2]; + index2++; + ref QuestStep reference53 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014217u, new Vector3(232.47119f, 89.98242f, 614.4961f), 1191); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span31 = CollectionsMarshal.AsSpan(list75); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span6 = CollectionsMarshal.AsSpan(list75); + 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); questStep5.CompletionQuestVariablesFlags = list75; reference53 = questStep5; - ref QuestStep reference54 = ref span28[3]; + index2++; + ref QuestStep reference54 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014095u, new Vector3(218.34131f, 88.822754f, 621.7594f), 1191); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list76; reference54 = questStep6; obj48.Steps = list72; reference50 = obj48; - ref QuestSequence reference55 = ref span26[3]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050668u, new Vector3(195.08655f, 88.5662f, 669.36743f), 1191); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + span3 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050668u, new Vector3(195.08655f, 88.5662f, 669.36743f), 1191); obj49.Steps = list77; reference55 = obj49; questRoot10.QuestSequence = list68; @@ -363458,13 +439199,16 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list78); + index = 0; + span[index] = "liza"; questRoot11.Author = list78; - num = 4; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span33 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference56 = ref span33[0]; + index = 4; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + span2 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -363472,32 +439216,40 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); + span3 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); obj50.Steps = list80; reference56 = obj50; - ref QuestSequence reference57 = ref span33[1]; + num++; + ref QuestSequence reference57 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span3 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference58 = ref span3[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(213.87216f, 92.47675f, -298.49872f), 1191) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 17684u; + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + span5 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span5[num3] = 17684u; obj52.KillEnemyDataIds = list82; reference58 = obj52; obj51.Steps = list81; reference57 = obj51; - ref QuestSequence reference59 = ref span33[2]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -363505,28 +439257,35 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050803u, new Vector3(217.57837f, 92.40237f, -296.19293f), 1191) + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050803u, new Vector3(217.57837f, 92.40237f, -296.19293f), 1191) { StopDistance = 7f }; obj53.Steps = list83; reference59 = obj53; - ref QuestSequence reference60 = ref span33[3]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span34 = CollectionsMarshal.AsSpan(list84); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.68884f, 99.24859f, -171.97504f), 1191); - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.14713f, 100.07344f, -135.20776f), 1191); - span34[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013966u, new Vector3(77.53113f, 93.095215f, -144.9455f), 1191) + index2 = 4; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.68884f, 99.24859f, -171.97504f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.14713f, 100.07344f, -135.20776f), 1191); + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013966u, new Vector3(77.53113f, 93.095215f, -144.9455f), 1191) { AetherCurrentId = 2818468u }; - span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1050946u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050946u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -363539,13 +439298,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "liza"; questRoot12.Author = list85; - num = 5; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span35 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference61 = ref span35[0]; + index = 5; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -363553,7 +439315,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -363572,18 +439336,22 @@ public static class AssemblyQuestLoader }; obj55.Steps = list87; reference61 = obj55; - ref QuestSequence reference62 = ref span35[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); obj56.Steps = list88; reference62 = obj56; - ref QuestSequence reference63 = ref span35[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -363591,7 +439359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list89)[0]; + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference64 = ref span3[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1050807u, new Vector3(-165.97241f, 25.979595f, -502.80005f), 1191) { Fly = true @@ -363599,7 +439369,9 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZF202_05161_Q1_000_001"), @@ -363609,33 +439381,42 @@ public static class AssemblyQuestLoader reference64 = obj58; obj57.Steps = list89; reference63 = obj57; - ref QuestSequence reference65 = ref span35[3]; + num++; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span36 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference66 = ref span36[0]; + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference66 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 2014035u, new Vector3(-61.478638f, 35.355103f, -294.75854f), 1191) { Fly = true }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span37 = CollectionsMarshal.AsSpan(list92); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + span6 = CollectionsMarshal.AsSpan(list92); + 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); obj60.CompletionQuestVariablesFlags = list92; reference66 = obj60; - ref QuestStep reference67 = ref span36[1]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2014036u, new Vector3(-99.53461f, 36.9115f, -233.47827f), 1191) { Fly = true @@ -363643,35 +439424,49 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span38 = CollectionsMarshal.AsSpan(list93); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list93; reference67 = obj61; - ref QuestStep reference68 = ref span36[2]; + num2++; + ref QuestStep reference68 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2014037u, new Vector3(-38.31543f, 37.979614f, -221.5763f), 1191) { Fly = true }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span39 = CollectionsMarshal.AsSpan(list94); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span6 = CollectionsMarshal.AsSpan(list94); + 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); obj62.CompletionQuestVariablesFlags = list94; reference68 = obj62; obj59.Steps = list91; reference65 = obj59; - ref QuestSequence reference69 = ref span35[4]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -363679,7 +439474,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + span3 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -363694,21 +439491,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot13.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span40 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference70 = ref span40[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -363727,7 +439529,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list98; reference70 = obj64; - ref QuestSequence reference71 = ref span40[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -363735,27 +439538,33 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1050809u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050809u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) { Fly = true }; obj65.Steps = list99; reference71 = obj65; - ref QuestSequence reference72 = ref span40[2]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(-44.480103f, 33.495888f, -306.99628f), 1191) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(-44.480103f, 33.495888f, -306.99628f), 1191) { Fly = true }; obj66.Steps = list100; reference72 = obj66; - ref QuestSequence reference73 = ref span40[3]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -363763,21 +439572,26 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(516.28033f, 145.60376f, 228.34976f), 1191) + span3 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(516.28033f, 145.60376f, 228.34976f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation }; obj67.Steps = list101; reference73 = obj67; - ref QuestSequence reference74 = ref span40[4]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + span3 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { StopDistance = 5f, NextQuestId = new QuestId(5163) @@ -363791,13 +439605,16 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list103); + index = 0; + span[index] = "liza"; questRoot14.Author = list103; - num = 4; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span41 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference75 = ref span41[0]; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + span2 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -363805,7 +439622,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { StopDistance = 5f, Fly = true, @@ -363825,21 +439644,25 @@ public static class AssemblyQuestLoader }; obj69.Steps = list105; reference75 = obj69; - ref QuestSequence reference76 = ref span41[1]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1050957u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050957u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) { Fly = true }; obj70.Steps = list106; reference76 = obj70; - ref QuestSequence reference77 = ref span41[2]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -363847,8 +439670,9 @@ public static class AssemblyQuestLoader num2 = 2; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span42 = CollectionsMarshal.AsSpan(list107); - ref QuestStep reference78 = ref span42[0]; + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference78 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, 2014063u, new Vector3(46.00586f, 34.01233f, -411.33746f), 1191) { StopDistance = 0.5f, @@ -363858,21 +439682,30 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = 17685u; + span5 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span5[index3] = 17685u; obj72.KillEnemyDataIds = list108; - num3 = 6; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span43 = CollectionsMarshal.AsSpan(list109); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + span6 = CollectionsMarshal.AsSpan(list109); + 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); obj72.CompletionQuestVariablesFlags = list109; reference78 = obj72; - ref QuestStep reference79 = ref span42[1]; + index2++; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2014077u, new Vector3(-22.110352f, 34.6532f, -268.9403f), 1191) { StopDistance = 0.5f, @@ -363882,31 +439715,42 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 17685u; + span5 = CollectionsMarshal.AsSpan(list110); + index3 = 0; + span5[index3] = 17685u; obj73.KillEnemyDataIds = list110; - num3 = 6; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span44 = CollectionsMarshal.AsSpan(list111); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + span6 = CollectionsMarshal.AsSpan(list111); + 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); obj73.CompletionQuestVariablesFlags = list111; reference79 = obj73; obj71.Steps = list107; reference77 = obj71; - ref QuestSequence reference80 = ref span41[3]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050811u, new Vector3(-97.0932f, 28.796848f, -446.7079f), 1191) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + span3 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050811u, new Vector3(-97.0932f, 28.796848f, -446.7079f), 1191) { Fly = true }; @@ -363919,13 +439763,16 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list113); + index = 0; + span[index] = "liza"; questRoot15.Author = list113; - num = 3; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span45 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference81 = ref span45[0]; + index = 3; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + span2 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -363933,19 +439780,23 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186); + span3 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186); obj75.Steps = list115; reference81 = obj75; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span46 = CollectionsMarshal.AsSpan(list116); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.9273f, 13.999773f, 192.44756f), 1186) + index2 = 2; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + span3 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.9273f, 13.999773f, 192.44756f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -363953,10 +439804,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - span46[1] = new QuestStep(EInteractionType.Interact, 1050492u, new Vector3(-446.25012f, 13.999722f, 195.23914f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050492u, new Vector3(-446.25012f, 13.999722f, 195.23914f), 1186); obj76.Steps = list116; reference82 = obj76; - ref QuestSequence reference83 = ref span45[2]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -363964,14 +439817,17 @@ public static class AssemblyQuestLoader num2 = 3; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span47 = CollectionsMarshal.AsSpan(list117); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.1605f, 13.999999f, 162.65598f), 1186); - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.51483f, 13.999909f, 154.73817f), 1186) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.1605f, 13.999999f, 162.65598f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.51483f, 13.999909f, 154.73817f), 1186) { DisableNavmesh = true, Comment = "For some reason navmesh wanders off through the whole area" }; - span47[2] = new QuestStep(EInteractionType.CompleteQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -363988,26 +439844,33 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list118); + index = 0; + span[index] = "liza"; questRoot16.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span48 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference84 = ref span48[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + span2 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list120)[0]; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference85 = ref span3[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1051389u, new Vector3(501.12158f, 59.999813f, 163.83606f), 1186); num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG002_05165_Q1_000_000"), @@ -364017,7 +439880,8 @@ public static class AssemblyQuestLoader reference85 = questStep7; obj78.Steps = list120; reference84 = obj78; - ref QuestSequence reference86 = ref span48[1]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -364025,63 +439889,88 @@ public static class AssemblyQuestLoader num2 = 3; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span49 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference87 = ref span49[0]; + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference87 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2014339u, new Vector3(483.08533f, 61.386963f, 196.09363f), 1186); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span50 = CollectionsMarshal.AsSpan(list123); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + span6 = CollectionsMarshal.AsSpan(list123); + 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); questStep8.CompletionQuestVariablesFlags = list123; reference87 = questStep8; - ref QuestStep reference88 = ref span49[1]; + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014340u, new Vector3(444.3275f, 61.356445f, 242.38953f), 1186); num3 = 6; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span51 = CollectionsMarshal.AsSpan(list124); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list124; reference88 = questStep9; - ref QuestStep reference89 = ref span49[2]; + index2++; + ref QuestStep reference89 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014338u, new Vector3(456.2904f, 61.41748f, 68.89441f), 1186); - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span52 = CollectionsMarshal.AsSpan(list125); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + span6 = CollectionsMarshal.AsSpan(list125); + 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); questStep10.CompletionQuestVariablesFlags = list125; reference89 = questStep10; obj79.Steps = list122; reference86 = obj79; - ref QuestSequence reference90 = ref span48[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); obj80.Steps = list126; reference90 = obj80; - ref QuestSequence reference91 = ref span48[3]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -364089,21 +439978,26 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Emote, 1051391u, new Vector3(497.94763f, 59.99981f, 160.84534f), 1186) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, 1051391u, new Vector3(497.94763f, 59.99981f, 160.84534f), 1186) { Emote = EEmote.Doubt }; obj81.Steps = list127; reference91 = obj81; - ref QuestSequence reference92 = ref span48[4]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); obj82.Steps = list128; reference92 = obj82; questRoot16.QuestSequence = list119; @@ -364113,13 +440007,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list129); + index = 0; + span[index] = "liza"; questRoot17.Author = list129; - num = 5; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span53 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference93 = ref span53[0]; + index = 5; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + span2 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -364127,21 +440024,27 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); + span3 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); obj83.Steps = list131; reference93 = obj83; - ref QuestSequence reference94 = ref span53[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + span3 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); obj84.Steps = list132; reference94 = obj84; - ref QuestSequence reference95 = ref span53[2]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -364149,7 +440052,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list133)[0]; + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference96 = ref span3[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-206.10861f, 2.1999774f, 213.03752f), 1186) { StopDistance = 0.25f @@ -364157,7 +440062,9 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG003_05166_Q2_000_000"), @@ -364167,21 +440074,25 @@ public static class AssemblyQuestLoader reference96 = obj86; obj85.Steps = list133; reference95 = obj85; - ref QuestSequence reference97 = ref span53[3]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-23.899967f, -5.8484287f, 230.24123f), 1186) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + span3 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-23.899967f, -5.8484287f, 230.24123f), 1186) { StopDistance = 0.25f }; obj87.Steps = list135; reference97 = obj87; - ref QuestSequence reference98 = ref span53[4]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue @@ -364189,7 +440100,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051395u, new Vector3(-3.55542f, 0.0005434508f, -85.89307f), 1186) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051395u, new Vector3(-3.55542f, 0.0005434508f, -85.89307f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364206,24 +440119,30 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list137); + index = 0; + span[index] = "liza"; questRoot18.Author = list137; - num = 4; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span54 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference99 = ref span54[0]; + index = 4; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + span2 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186); obj89.Steps = list139; reference99 = obj89; - ref QuestSequence reference100 = ref span54[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -364231,21 +440150,25 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span55 = CollectionsMarshal.AsSpan(list140); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.07123f, 10.014936f, 1.7894125f), 1186); - span55[1] = new QuestStep(EInteractionType.Interact, 1049242u, new Vector3(-303.7309f, 10.014902f, 1.7241821f), 1186); + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.07123f, 10.014936f, 1.7894125f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049242u, new Vector3(-303.7309f, 10.014902f, 1.7241821f), 1186); obj90.Steps = list140; reference100 = obj90; - ref QuestSequence reference101 = ref span54[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span56 = CollectionsMarshal.AsSpan(list141); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) + index2 = 2; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + span3 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364253,10 +440176,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span56[1] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); obj91.Steps = list141; reference101 = obj91; - ref QuestSequence reference102 = ref span54[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -364264,7 +440189,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186) + span3 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364281,24 +440208,30 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list143); + index = 0; + span[index] = "liza"; questRoot19.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span57 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference103 = ref span57[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + span2 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + span3 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); obj93.Steps = list145; reference103 = obj93; - ref QuestSequence reference104 = ref span57[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -364306,60 +440239,84 @@ public static class AssemblyQuestLoader num2 = 3; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span58 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference105 = ref span58[0]; + span3 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference105 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1051400u, new Vector3(-56.351562f, 38.0566f, -347.1275f), 1186); - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span59 = CollectionsMarshal.AsSpan(list147); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + span6 = CollectionsMarshal.AsSpan(list147); + 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); questStep11.CompletionQuestVariablesFlags = list147; reference105 = questStep11; - ref QuestStep reference106 = ref span58[1]; + index2++; + ref QuestStep reference106 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1051399u, new Vector3(-26.230347f, 38.056416f, -310.81104f), 1186); num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span60 = CollectionsMarshal.AsSpan(list148); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list148; reference106 = questStep12; - ref QuestStep reference107 = ref span58[2]; + index2++; + ref QuestStep reference107 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1051398u, new Vector3(38.254395f, 38.0566f, -357.99194f), 1186); - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span61 = CollectionsMarshal.AsSpan(list149); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + span6 = CollectionsMarshal.AsSpan(list149); + 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); questStep13.CompletionQuestVariablesFlags = list149; reference107 = questStep13; obj94.Steps = list146; reference104 = obj94; - ref QuestSequence reference108 = ref span57[2]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + span3 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); obj95.Steps = list150; reference108 = obj95; questRoot19.QuestSequence = list144; @@ -364369,13 +440326,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list151); + index = 0; + span[index] = "liza"; questRoot20.Author = list151; - num = 4; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span62 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference109 = ref span62[0]; + index = 4; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + span2 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -364383,19 +440343,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051401u, new Vector3(383.90173f, 60f, 56.839844f), 1186); + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051401u, new Vector3(383.90173f, 60f, 56.839844f), 1186); obj96.Steps = list153; reference109 = obj96; - ref QuestSequence reference110 = ref span62[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span63 = CollectionsMarshal.AsSpan(list154); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364403,10 +440367,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span63[1] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); obj97.Steps = list154; reference110 = obj97; - ref QuestSequence reference111 = ref span62[2]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -364414,7 +440380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1051402u, new Vector3(-205.58484f, 1.9200057f, 7.583679f), 1186) + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051402u, new Vector3(-205.58484f, 1.9200057f, 7.583679f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364424,15 +440392,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list155; reference111 = obj98; - ref QuestSequence reference112 = ref span62[3]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051403u, new Vector3(13.992493f, -5.845003f, 269.91675f), 1186) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051403u, new Vector3(13.992493f, -5.845003f, 269.91675f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364449,13 +440420,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list157); + index = 0; + span[index] = "liza"; questRoot21.Author = list157; - num = 5; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span64 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference113 = ref span64[0]; + index = 5; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + span2 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -364463,19 +440437,23 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051404u, new Vector3(-157.33582f, 2.1999714f, 229.69409f), 1186); + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051404u, new Vector3(-157.33582f, 2.1999714f, 229.69409f), 1186); obj100.Steps = list159; reference113 = obj100; - ref QuestSequence reference114 = ref span64[1]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span65 = CollectionsMarshal.AsSpan(list160); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.70325f, 52.41666f, 211.24818f), 1186) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.70325f, 52.41666f, 211.24818f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364483,10 +440461,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTrueVue } }; - span65[1] = new QuestStep(EInteractionType.Interact, 1049154u, new Vector3(320.27148f, 52.41666f, 211.32214f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049154u, new Vector3(320.27148f, 52.41666f, 211.32214f), 1186); obj101.Steps = list160; reference114 = obj101; - ref QuestSequence reference115 = ref span64[2]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -364494,7 +440474,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186) + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364504,22 +440486,26 @@ public static class AssemblyQuestLoader }; obj102.Steps = list161; reference115 = obj102; - ref QuestSequence reference116 = ref span64[3]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Emote, 1051409u, new Vector3(-157.24426f, 2.1999712f, 231.21985f), 1186) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1051409u, new Vector3(-157.24426f, 2.1999712f, 231.21985f), 1186) { StopDistance = 4f, Emote = EEmote.Psych }; obj103.Steps = list162; reference116 = obj103; - ref QuestSequence reference117 = ref span64[4]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -364527,7 +440513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186); + span3 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186); obj104.Steps = list163; reference117 = obj104; questRoot21.QuestSequence = list158; @@ -364537,24 +440525,30 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list164); + index = 0; + span[index] = "liza"; questRoot22.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span66 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference118 = ref span66[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + span2 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + span3 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); obj105.Steps = list166; reference118 = obj105; - ref QuestSequence reference119 = ref span66[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -364562,18 +440556,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2014345u, new Vector3(-206.92761f, 0.25933838f, -106.58429f), 1186); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014345u, new Vector3(-206.92761f, 0.25933838f, -106.58429f), 1186); obj106.Steps = list167; reference119 = obj106; - ref QuestSequence reference120 = ref span66[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); obj107.Steps = list168; reference120 = obj107; questRoot22.QuestSequence = list165; @@ -364583,13 +440582,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list169); + index = 0; + span[index] = "liza"; questRoot23.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span67 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference121 = ref span67[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + span2 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -364597,12 +440599,16 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list171)[0]; + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference122 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1051069u, new Vector3(-313.43555f, 4.6900077f, -36.57599f), 1186); num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG009_05172_Q1_000_000"), @@ -364612,18 +440618,22 @@ public static class AssemblyQuestLoader reference122 = questStep14; obj108.Steps = list171; reference121 = obj108; - ref QuestSequence reference123 = ref span67[1]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2014292u, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + span3 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014292u, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186); obj109.Steps = list173; reference123 = obj109; - ref QuestSequence reference124 = ref span67[2]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 @@ -364631,21 +440641,26 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Instruction, null, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Instruction, null, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186) { Comment = "Catch the cat. Good luck!" }; obj110.Steps = list174; reference124 = obj110; - ref QuestSequence reference125 = ref span67[3]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051069u, new Vector3(-313.43555f, 4.6900077f, -36.57599f), 1186); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051069u, new Vector3(-313.43555f, 4.6900077f, -36.57599f), 1186); obj111.Steps = list175; reference125 = obj111; questRoot23.QuestSequence = list170; @@ -364655,13 +440670,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list176); + index = 0; + span[index] = "liza"; questRoot24.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span68 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference126 = ref span68[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + span2 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -364669,21 +440687,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); obj112.Steps = list178; reference126 = obj112; - ref QuestSequence reference127 = ref span68[1]; + num++; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); obj113.Steps = list179; reference127 = obj113; - ref QuestSequence reference128 = ref span68[2]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 @@ -364691,60 +440715,84 @@ public static class AssemblyQuestLoader num2 = 3; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span69 = CollectionsMarshal.AsSpan(list180); - ref QuestStep reference129 = ref span69[0]; + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051382u, new Vector3(317.46387f, 70.75f, -64.01166f), 1186); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span70 = CollectionsMarshal.AsSpan(list181); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + span6 = CollectionsMarshal.AsSpan(list181); + 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); questStep15.CompletionQuestVariablesFlags = list181; reference129 = questStep15; - ref QuestStep reference130 = ref span69[1]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1051383u, new Vector3(363.24097f, 50.75f, 185.77856f), 1186); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span71 = CollectionsMarshal.AsSpan(list182); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list182; reference130 = questStep16; - ref QuestStep reference131 = ref span69[2]; + index2++; + ref QuestStep reference131 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1051384u, new Vector3(253.52856f, 50.3f, 189.07446f), 1186); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span72 = CollectionsMarshal.AsSpan(list183); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + span6 = CollectionsMarshal.AsSpan(list183); + 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); questStep17.CompletionQuestVariablesFlags = list183; reference131 = questStep17; obj114.Steps = list180; reference128 = obj114; - ref QuestSequence reference132 = ref span68[3]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1051385u, new Vector3(451.5907f, 61.38527f, 319.44763f), 1186) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + span3 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051385u, new Vector3(451.5907f, 61.38527f, 319.44763f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364754,7 +440802,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list184; reference132 = obj115; - ref QuestSequence reference133 = ref span68[4]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -364762,7 +440811,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051386u, new Vector3(453.1776f, 61.38527f, 321.85852f), 1186); + span3 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051386u, new Vector3(453.1776f, 61.38527f, 321.85852f), 1186); obj116.Steps = list185; reference133 = obj116; questRoot24.QuestSequence = list177; @@ -364772,24 +440823,30 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; questRoot25.Author = list186; - num = 5; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span73 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference134 = ref span73[0]; + index = 5; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference134 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + span3 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192); obj117.Steps = list188; reference134 = obj117; - ref QuestSequence reference135 = ref span73[1]; + num++; + ref QuestSequence reference135 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -364797,25 +440854,31 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span74 = CollectionsMarshal.AsSpan(list189); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-529.96735f, 6.402005f, 524.4711f), 1192); - span74[1] = new QuestStep(EInteractionType.Interact, 1050618u, new Vector3(-444.0833f, -0.815298f, 482.10876f), 1192); + span3 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-529.96735f, 6.402005f, 524.4711f), 1192); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050618u, new Vector3(-444.0833f, -0.815298f, 482.10876f), 1192); obj118.Steps = list189; reference135 = obj118; - ref QuestSequence reference136 = ref span73[2]; + num++; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span75 = CollectionsMarshal.AsSpan(list190); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-377.65292f, 6.401951f, 531.36896f), 1192); - span75[1] = new QuestStep(EInteractionType.Interact, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); + index2 = 2; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-377.65292f, 6.401951f, 531.36896f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); obj119.Steps = list190; reference136 = obj119; - ref QuestSequence reference137 = ref span73[3]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 @@ -364823,22 +440886,27 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.UseItem, 2013899u, new Vector3(-287.31213f, 1.4190674f, 582.7573f), 1192) + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2013899u, new Vector3(-287.31213f, 1.4190674f, 582.7573f), 1192) { DisableNavmesh = true, ItemId = 2003566u }; obj120.Steps = list191; reference137 = obj120; - ref QuestSequence reference138 = ref span73[4]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + span3 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); obj121.Steps = list192; reference138 = obj121; questRoot25.QuestSequence = list187; @@ -364848,13 +440916,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list193); + index = 0; + span[index] = "liza"; questRoot26.Author = list193; - num = 3; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span76 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference139 = ref span76[0]; + index = 3; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + span2 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference139 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -364862,19 +440933,23 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192); + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192); obj122.Steps = list195; reference139 = obj122; - ref QuestSequence reference140 = ref span76[1]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span77 = CollectionsMarshal.AsSpan(list196); - ref QuestStep reference141 = ref span77[0]; + index2 = 4; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + ref QuestStep reference141 = ref span3[num2]; QuestStep obj124 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-549.43896f, 20.09976f, 630.3976f), 1192) { Fly = true @@ -364884,37 +440959,51 @@ public static class AssemblyQuestLoader num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span78 = CollectionsMarshal.AsSpan(list197); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list197; skipStepConditions3.Flying = ELockedSkipCondition.Locked; skipConditions3.StepIf = skipStepConditions3; obj124.SkipConditions = skipConditions3; reference141 = obj124; - ref QuestStep reference142 = ref span77[1]; + num2++; + ref QuestStep reference142 = ref span3[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 2013901u, new Vector3(-515.9838f, -0.015319824f, 625.14685f), 1192) { DisableNavmesh = true, Fly = true }; - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span79 = CollectionsMarshal.AsSpan(list198); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + span6 = CollectionsMarshal.AsSpan(list198); + 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); obj125.CompletionQuestVariablesFlags = list198; reference142 = obj125; - ref QuestStep reference143 = ref span77[2]; + num2++; + ref QuestStep reference143 = ref span3[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 2013902u, new Vector3(-496.78802f, 0.045776367f, 668.72656f), 1192) { Fly = true @@ -364922,35 +441011,49 @@ public static class AssemblyQuestLoader num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span80 = CollectionsMarshal.AsSpan(list199); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list199; reference143 = obj126; - ref QuestStep reference144 = ref span77[3]; + num2++; + ref QuestStep reference144 = ref span3[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 2013903u, new Vector3(-424.2771f, -0.10687256f, 660.7003f), 1192) { Fly = true }; - num3 = 6; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - Span span81 = CollectionsMarshal.AsSpan(list200); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list200 = new List(index3); + CollectionsMarshal.SetCount(list200, index3); + span6 = CollectionsMarshal.AsSpan(list200); + 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); obj127.CompletionQuestVariablesFlags = list200; reference144 = obj127; obj123.Steps = list196; reference140 = obj123; - ref QuestSequence reference145 = ref span76[2]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -364958,7 +441061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192) { Fly = true }; @@ -364971,24 +441076,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list202); + index = 0; + span[index] = "liza"; questRoot27.Author = list202; - num = 5; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span82 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference146 = ref span82[0]; + index = 5; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + span2 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192); obj129.Steps = list204; reference146 = obj129; - ref QuestSequence reference147 = ref span82[1]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 @@ -364996,26 +441107,32 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 2013904u, new Vector3(199.4812f, 1.1749268f, 642.96936f), 1192); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013904u, new Vector3(199.4812f, 1.1749268f, 642.96936f), 1192); obj130.Steps = list205; reference147 = obj130; - ref QuestSequence reference148 = ref span82[2]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span83 = CollectionsMarshal.AsSpan(list206); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(194.28456f, 0.000497818f, 628.7034f), 1192) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(194.28456f, 0.000497818f, 628.7034f), 1192) { Mount = true }; - span83[1] = new QuestStep(EInteractionType.Interact, 2013905u, new Vector3(252.30786f, 1.5411377f, 621.2711f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013905u, new Vector3(252.30786f, 1.5411377f, 621.2711f), 1192); obj131.Steps = list206; reference148 = obj131; - ref QuestSequence reference149 = ref span82[3]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 @@ -365023,26 +441140,34 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 2013909u, new Vector3(340.59656f, 23.605652f, 289.78406f), 1192); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2013909u, new Vector3(340.59656f, 23.605652f, 289.78406f), 1192); obj132.Steps = list207; reference149 = obj132; - ref QuestSequence reference150 = ref span82[4]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span84 = CollectionsMarshal.AsSpan(list208); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(690.5917f, 37.037296f, 469.6903f), 1192); - span84[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(668.59235f, 40.20963f, 447.41943f), 1192); - ref QuestStep reference151 = ref span84[2]; + index2 = 3; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(690.5917f, 37.037296f, 469.6903f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(668.59235f, 40.20963f, 447.41943f), 1192); + num2++; + ref QuestStep reference151 = ref span3[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.CompleteQuest, 1050622u, new Vector3(669.36743f, 40.305832f, 417.31885f), 1192); num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH003_05176_Q1_000_016"), @@ -365059,13 +441184,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list210); + index = 0; + span[index] = "liza"; questRoot28.Author = list210; - num = 5; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span85 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference152 = ref span85[0]; + index = 5; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + span2 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -365073,21 +441201,27 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); + span3 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); obj134.Steps = list212; reference152 = obj134; - ref QuestSequence reference153 = ref span85[1]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); obj135.Steps = list213; reference153 = obj135; - ref QuestSequence reference154 = ref span85[2]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -365095,29 +441229,35 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(406.71564f, 1.3939283f, 550.029f), 1192) + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(406.71564f, 1.3939283f, 550.029f), 1192) { StopDistance = 0.25f, Fly = true }; obj136.Steps = list214; reference154 = obj136; - ref QuestSequence reference155 = ref span85[3]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(577.7826f, 7.5857296f, 662.96063f), 1192) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + span3 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(577.7826f, 7.5857296f, 662.96063f), 1192) { StopDistance = 0.25f, Fly = true }; obj137.Steps = list215; reference155 = obj137; - ref QuestSequence reference156 = ref span85[4]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -365125,7 +441265,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050624u, new Vector3(581.1398f, 7.6887574f, 664.05725f), 1192) + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050624u, new Vector3(581.1398f, 7.6887574f, 664.05725f), 1192) { StopDistance = 5f }; @@ -365138,24 +441280,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "liza"; questRoot29.Author = list217; - num = 5; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span86 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference157 = ref span86[0]; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192); obj139.Steps = list219; reference157 = obj139; - ref QuestSequence reference158 = ref span86[1]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -365163,31 +441311,39 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1050626u, new Vector3(351.27795f, 48.949432f, -726.4973f), 1192); + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050626u, new Vector3(351.27795f, 48.949432f, -726.4973f), 1192); obj140.Steps = list220; reference158 = obj140; - ref QuestSequence reference159 = ref span86[2]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list221)[0]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference160 = ref span3[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(300.00925f, 44.086937f, -577.9258f), 1192) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = 17686u; + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + span5 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span5[num3] = 17686u; obj142.KillEnemyDataIds = list222; reference160 = obj142; obj141.Steps = list221; reference159 = obj141; - ref QuestSequence reference161 = ref span86[3]; + num++; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 @@ -365195,26 +441351,31 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1050627u, new Vector3(302.90674f, 43.98048f, -574.67004f), 1192) + span3 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050627u, new Vector3(302.90674f, 43.98048f, -574.67004f), 1192) { StopDistance = 7f }; obj143.Steps = list223; reference161 = obj143; - ref QuestSequence reference162 = ref span86[4]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span87 = CollectionsMarshal.AsSpan(list224); - span87[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013981u, new Vector3(315.20557f, 43.71704f, -539.3302f), 1192) + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013981u, new Vector3(315.20557f, 43.71704f, -539.3302f), 1192) { AetherCurrentId = 2818486u }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1050631u, new Vector3(354.4823f, 48.940357f, -726.1311f), 1192); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050631u, new Vector3(354.4823f, 48.940357f, -726.1311f), 1192); obj144.Steps = list224; reference162 = obj144; questRoot29.QuestSequence = list218; @@ -365224,13 +441385,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list225); + index = 0; + span[index] = "liza"; questRoot30.Author = list225; - num = 3; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span88 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference163 = ref span88[0]; + index = 3; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + span2 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -365238,21 +441402,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192); + span3 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192); obj145.Steps = list227; reference163 = obj145; - ref QuestSequence reference164 = ref span88[1]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2013913u, new Vector3(226.00134f, 35.75183f, -225.97089f), 1192); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + span3 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013913u, new Vector3(226.00134f, 35.75183f, -225.97089f), 1192); obj146.Steps = list228; reference164 = obj146; - ref QuestSequence reference165 = ref span88[2]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -365260,7 +441430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050633u, new Vector3(619.5315f, 27.724146f, -172.01501f), 1192) + span3 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050633u, new Vector3(619.5315f, 27.724146f, -172.01501f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; @@ -365273,24 +441445,30 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list230); + index = 0; + span[index] = "liza"; questRoot31.Author = list230; - num = 4; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span89 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference166 = ref span89[0]; + index = 4; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + span2 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050634u, new Vector3(-181.62811f, 30.999819f, 22.079773f), 1192); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050634u, new Vector3(-181.62811f, 30.999819f, 22.079773f), 1192); obj148.Steps = list232; reference166 = obj148; - ref QuestSequence reference167 = ref span89[1]; + num++; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -365298,7 +441476,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list233)[0]; + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference168 = ref span3[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1050635u, new Vector3(-201.83112f, 29.999939f, -124.28479f), 1192) { Fly = true @@ -365306,7 +441486,9 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH007_05180_Q1_000_005"), @@ -365316,23 +441498,28 @@ public static class AssemblyQuestLoader reference168 = obj150; obj149.Steps = list233; reference167 = obj149; - ref QuestSequence reference169 = ref span89[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list235)[0]; + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference170 = ref span3[num2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1050636u, new Vector3(-410.5135f, 30.49998f, -131.94476f), 1192) { Fly = true }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new DialogueChoice + index3 = 1; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + span4 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH007_05180_Q2_000_013"), @@ -365342,7 +441529,8 @@ public static class AssemblyQuestLoader reference170 = obj152; obj151.Steps = list235; reference169 = obj151; - ref QuestSequence reference171 = ref span89[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -365350,7 +441538,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050813u, new Vector3(-277.76f, 54.31037f, -382.58948f), 1192) + span3 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050813u, new Vector3(-277.76f, 54.31037f, -382.58948f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeAero }; @@ -365363,24 +441553,30 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "liza"; questRoot32.Author = list238; - num = 3; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span90 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference172 = ref span90[0]; + index = 3; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + span2 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050637u, new Vector3(-539.66583f, -10.000358f, -477.89734f), 1192); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050637u, new Vector3(-539.66583f, -10.000358f, -477.89734f), 1192); obj154.Steps = list240; reference172 = obj154; - ref QuestSequence reference173 = ref span90[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -365388,8 +441584,9 @@ public static class AssemblyQuestLoader num2 = 5; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span91 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference174 = ref span91[0]; + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + ref QuestStep reference174 = ref span3[index2]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2013918u, new Vector3(-429.89246f, -4.5319824f, -466.45306f), 1192) { StopDistance = 0.25f, @@ -365398,37 +441595,51 @@ public static class AssemblyQuestLoader num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - Span span92 = CollectionsMarshal.AsSpan(list242); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj156.CompletionQuestVariablesFlags = list242; reference174 = obj156; - ref QuestStep reference175 = ref span91[1]; + index2++; + ref QuestStep reference175 = ref span3[index2]; QuestStep obj157 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-647.346f, -5.0000005f, -455.4366f), 1192) { Fly = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span93 = CollectionsMarshal.AsSpan(list243); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + span6 = CollectionsMarshal.AsSpan(list243); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list243; skipConditions4.StepIf = skipStepConditions4; obj157.SkipConditions = skipConditions4; reference175 = obj157; - ref QuestStep reference176 = ref span91[2]; + index2++; + ref QuestStep reference176 = ref span3[index2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2013916u, new Vector3(-648.85944f, -3.7995605f, -454.06274f), 1192) { Mount = false @@ -365436,37 +441647,51 @@ public static class AssemblyQuestLoader num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span94 = CollectionsMarshal.AsSpan(list244); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj158.CompletionQuestVariablesFlags = list244; reference176 = obj158; - ref QuestStep reference177 = ref span91[3]; + index2++; + ref QuestStep reference177 = ref span3[index2]; QuestStep obj159 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-572.3234f, -2.729274f, -703.2586f), 1192) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - Span span95 = CollectionsMarshal.AsSpan(list245); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list245 = new List(index3); + CollectionsMarshal.SetCount(list245, index3); + span6 = CollectionsMarshal.AsSpan(list245); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list245; skipConditions5.StepIf = skipStepConditions5; obj159.SkipConditions = skipConditions5; reference177 = obj159; - ref QuestStep reference178 = ref span91[4]; + index2++; + ref QuestStep reference178 = ref span3[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2013917u, new Vector3(-573.14417f, -1.0529175f, -702.05237f), 1192) { Mount = false @@ -365474,26 +441699,35 @@ public static class AssemblyQuestLoader num3 = 6; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - Span span96 = CollectionsMarshal.AsSpan(list246); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list246); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj160.CompletionQuestVariablesFlags = list246; reference178 = obj160; obj155.Steps = list241; reference173 = obj155; - ref QuestSequence reference179 = ref span90[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050814u, new Vector3(-539.7269f, -10.000359f, -477.8363f), 1192) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050814u, new Vector3(-539.7269f, -10.000359f, -477.8363f), 1192) { Fly = true }; @@ -365506,15 +441740,18 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list248); + index = 0; + span[index] = "JerryWester"; questRoot33.Author = list248; questRoot33.IsSeasonalQuest = true; questRoot33.SeasonalQuestExpiry = new DateTime(2024, 8, 26, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span97 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference180 = ref span97[0]; + index = 6; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + span2 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -365522,7 +441759,9 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - ref QuestStep reference181 = ref CollectionsMarshal.AsSpan(list250)[0]; + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + ref QuestStep reference181 = ref span3[index2]; QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1050816u, new Vector3(14.328186f, 45.665993f, 131.33435f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -365537,26 +441776,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = 128; + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span8 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span8[num3] = 128; obj164.InTerritory = list251; skipConditions6.AetheryteShortcutIf = obj164; obj163.SkipConditions = skipConditions6; reference181 = obj163; obj162.Steps = list250; reference180 = obj162; - ref QuestSequence reference182 = ref span97[1]; + num++; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span98 = CollectionsMarshal.AsSpan(list252); - ref QuestStep reference183 = ref span98[0]; + index2 = 4; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + span3 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + ref QuestStep reference183 = ref span3[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { TargetTerritoryId = (ushort)137, @@ -365571,7 +441814,9 @@ public static class AssemblyQuestLoader num3 = 1; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = 137; + span8 = CollectionsMarshal.AsSpan(list253); + index3 = 0; + span8[index3] = 137; skipStepConditions6.InTerritory = list253; skipStepConditions6.AetheryteUnlocked = EAetheryteLocation.EasternLaNosceaCostaDelSol; skipConditions7.StepIf = skipStepConditions6; @@ -365581,7 +441826,8 @@ public static class AssemblyQuestLoader }; obj166.SkipConditions = skipConditions7; reference183 = obj166; - span98[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -365592,7 +441838,8 @@ public static class AssemblyQuestLoader } } }; - span98[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -365604,13 +441851,15 @@ public static class AssemblyQuestLoader } } }; - span98[3] = new QuestStep(EInteractionType.Interact, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) { StopDistance = 5f }; obj165.Steps = list252; reference182 = obj165; - ref QuestSequence reference184 = ref span97[2]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 @@ -365618,28 +441867,34 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1050818u, new Vector3(681.3915f, 9.601691f, 202.86865f), 137) + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050818u, new Vector3(681.3915f, 9.601691f, 202.86865f), 137) { StopDistance = 5f, Fly = true }; obj167.Steps = list254; reference184 = obj167; - ref QuestSequence reference185 = ref span97[3]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1050819u, new Vector3(770.13806f, 9.687993f, 246.29578f), 137) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050819u, new Vector3(770.13806f, 9.687993f, 246.29578f), 137) { Fly = true }; obj168.Steps = list255; reference185 = obj168; - ref QuestSequence reference186 = ref span97[4]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 4 @@ -365647,12 +441902,16 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list256)[0]; + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + ref QuestStep reference187 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014098u, new Vector3(769.0698f, 9.719971f, 246.99768f), 137); - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = new DialogueChoice + index3 = 1; + List list257 = new List(index3); + CollectionsMarshal.SetCount(list257, index3); + span4 = CollectionsMarshal.AsSpan(list257); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX001_05182_Q1_000_000"), @@ -365662,15 +441921,18 @@ public static class AssemblyQuestLoader reference187 = questStep19; obj169.Steps = list256; reference186 = obj169; - ref QuestSequence reference188 = ref span97[5]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list258)[0]; + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span3 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + ref QuestStep reference189 = ref span3[num2]; QuestStep obj171 = new QuestStep(EInteractionType.CompleteQuest, 1050820u, new Vector3(695.46045f, 9.614362f, 295.70447f), 137) { Fly = true @@ -365678,7 +441940,9 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX001_05182_Q2_000_000"), @@ -365696,15 +441960,18 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "JerryWester"; + span = CollectionsMarshal.AsSpan(list260); + index = 0; + span[index] = "JerryWester"; questRoot34.Author = list260; questRoot34.IsSeasonalQuest = true; questRoot34.SeasonalQuestExpiry = new DateTime(2024, 8, 26, 0, 0, 0, DateTimeKind.Utc); - num = 4; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span99 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference190 = ref span99[0]; + index = 4; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + span2 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -365712,40 +441979,51 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050828u, new Vector3(694.5753f, 9.578133f, 297.59656f), 137) + span3 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050828u, new Vector3(694.5753f, 9.578133f, 297.59656f), 137) { StopDistance = 5f }; obj172.Steps = list262; reference190 = obj172; - ref QuestSequence reference191 = ref span99[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span100 = CollectionsMarshal.AsSpan(list263); - ref QuestStep reference192 = ref span100[0]; + index2 = 2; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + span3 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + ref QuestStep reference192 = ref span3[num2]; QuestStep obj174 = new QuestStep(EInteractionType.Emote, 1050824u, new Vector3(507.68274f, 9.541115f, 428.54944f), 137) { Fly = true, Emote = EEmote.Uchiwasshoi }; - num3 = 6; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - Span span101 = CollectionsMarshal.AsSpan(list264); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list264 = new List(index3); + CollectionsMarshal.SetCount(list264, index3); + span6 = CollectionsMarshal.AsSpan(list264); + 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); obj174.CompletionQuestVariablesFlags = list264; reference192 = obj174; - ref QuestStep reference193 = ref span100[1]; + num2++; + ref QuestStep reference193 = ref span3[num2]; QuestStep obj175 = new QuestStep(EInteractionType.Emote, 1050825u, new Vector3(641.44336f, 11.697773f, 526.604f), 137) { Fly = true, @@ -365754,18 +442032,25 @@ public static class AssemblyQuestLoader num3 = 6; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - Span span102 = CollectionsMarshal.AsSpan(list265); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list265); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj175.CompletionQuestVariablesFlags = list265; reference193 = obj175; obj173.Steps = list263; reference191 = obj173; - ref QuestSequence reference194 = ref span99[2]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -365773,34 +442058,41 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1050829u, new Vector3(694.2092f, 9.619679f, 294.81946f), 137) + span3 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050829u, new Vector3(694.2092f, 9.619679f, 294.81946f), 137) { Fly = true }; obj176.Steps = list266; reference194 = obj176; - ref QuestSequence reference195 = ref span99[3]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span103 = CollectionsMarshal.AsSpan(list267); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) { Fly = true }; - ref QuestStep reference196 = ref span103[1]; + num2++; + ref QuestStep reference196 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.CompleteQuest, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) { StopDistance = 5f }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + span4 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX002_05183_Q1_000_000"), @@ -365817,15 +442109,18 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list269); + index = 0; + span[index] = "liza"; questRoot35.Author = list269; questRoot35.IsSeasonalQuest = true; questRoot35.SeasonalQuestExpiry = new DateTime(2024, 11, 4, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span104 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference197 = ref span104[0]; + index = 5; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + span2 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -365833,7 +442128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list271)[0]; + span3 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + ref QuestStep reference198 = ref span3[index2]; QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -365851,25 +442148,31 @@ public static class AssemblyQuestLoader num3 = 1; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - CollectionsMarshal.AsSpan(list272)[0] = 133; + span8 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span8[index3] = 133; obj181.InTerritory = list272; skipConditions8.AetheryteShortcutIf = obj181; obj180.SkipConditions = skipConditions8; reference198 = obj180; obj179.Steps = list271; reference197 = obj179; - ref QuestSequence reference199 = ref span104[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1050479u, new Vector3(-157.33582f, 7.982081f, -143.69421f), 133); + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050479u, new Vector3(-157.33582f, 7.982081f, -143.69421f), 133); obj182.Steps = list273; reference199 = obj182; - ref QuestSequence reference200 = ref span104[2]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -365877,24 +442180,30 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133); + span3 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133); obj183.Steps = list274; reference200 = obj183; - ref QuestSequence reference201 = ref span104[3]; + num++; + ref QuestSequence reference201 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Emote, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133) { Emote = EEmote.Soothe }; obj184.Steps = list275; reference201 = obj184; - ref QuestSequence reference202 = ref span104[4]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -365902,7 +442211,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -365920,23 +442231,28 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list277); + index = 0; + span[index] = "liza"; questRoot36.Author = list277; questRoot36.IsSeasonalQuest = true; questRoot36.SeasonalQuestExpiry = new DateTime(2024, 11, 4, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span105 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference203 = ref span105[0]; + index = 5; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + span2 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference204 = ref CollectionsMarshal.AsSpan(list279)[0]; + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference204 = ref span3[num2]; QuestStep obj187 = new QuestStep(EInteractionType.AcceptQuest, 1050485u, new Vector3(-48.69159f, 6.4999957f, -89.79938f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -365951,17 +442267,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 133; + index3 = 1; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + span8 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span8[num3] = 133; obj188.InTerritory = list280; skipConditions9.AetheryteShortcutIf = obj188; obj187.SkipConditions = skipConditions9; reference204 = obj187; obj186.Steps = list279; reference203 = obj186; - ref QuestSequence reference205 = ref span105[1]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -365969,21 +442288,27 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1050486u, new Vector3(-105.97394f, 6.9391603f, -133.95898f), 133); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050486u, new Vector3(-105.97394f, 6.9391603f, -133.95898f), 133); obj189.Steps = list281; reference205 = obj189; - ref QuestSequence reference206 = ref span105[2]; + num++; + ref QuestSequence reference206 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1050488u, new Vector3(12.619202f, 13.1293745f, -292.31714f), 133); + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050488u, new Vector3(12.619202f, 13.1293745f, -292.31714f), 133); obj190.Steps = list282; reference206 = obj190; - ref QuestSequence reference207 = ref span105[3]; + num++; + ref QuestSequence reference207 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 3 @@ -365991,18 +442316,23 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1050489u, new Vector3(153.76514f, 11.213254f, -221.5763f), 133); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050489u, new Vector3(153.76514f, 11.213254f, -221.5763f), 133); obj191.Steps = list283; reference207 = obj191; - ref QuestSequence reference208 = ref span105[4]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + span3 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -366019,15 +442349,18 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "Starr"; + span = CollectionsMarshal.AsSpan(list285); + index = 0; + span[index] = "Starr"; questRoot37.Author = list285; questRoot37.IsSeasonalQuest = true; questRoot37.SeasonalQuestExpiry = new DateTime(2025, 1, 16, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span106 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference209 = ref span106[0]; + index = 5; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + span2 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -366035,7 +442368,9 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list287)[0]; + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + ref QuestStep reference210 = ref span3[index2]; QuestStep obj194 = new QuestStep(EInteractionType.AcceptQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -366050,27 +442385,34 @@ public static class AssemblyQuestLoader num3 = 1; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = 128; + span8 = CollectionsMarshal.AsSpan(list288); + index3 = 0; + span8[index3] = 128; skipAetheryteCondition.InTerritory = list288; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition; obj194.SkipConditions = skipConditions10; reference210 = obj194; obj193.Steps = list287; reference209 = obj193; - ref QuestSequence reference211 = ref span106[1]; + num++; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list289)[0]; + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + ref QuestStep reference212 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1050357u, new Vector3(-4.6845703f, 40.000004f, 73.3501f), 128); - num3 = 1; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + index3 = 1; + List list290 = new List(index3); + CollectionsMarshal.SetCount(list290, index3); + span4 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q1_000_000"), @@ -366080,7 +442422,8 @@ public static class AssemblyQuestLoader reference212 = questStep20; obj195.Steps = list289; reference211 = obj195; - ref QuestSequence reference213 = ref span106[2]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -366088,12 +442431,16 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list291)[0]; + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference214 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1050358u, new Vector3(-18.143005f, 44f, -33.49359f), 128); num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q2_000_000"), @@ -366103,20 +442450,25 @@ public static class AssemblyQuestLoader reference214 = questStep21; obj196.Steps = list291; reference213 = obj196; - ref QuestSequence reference215 = ref span106[3]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list293)[0]; + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span3 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + ref QuestStep reference216 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1050359u, new Vector3(-44.235962f, 39.473606f, -163.77509f), 128); - num3 = 1; - List list294 = new List(num3); - CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = new DialogueChoice + index3 = 1; + List list294 = new List(index3); + CollectionsMarshal.SetCount(list294, index3); + span4 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q3_000_000"), @@ -366126,7 +442478,8 @@ public static class AssemblyQuestLoader reference216 = questStep22; obj197.Steps = list293; reference215 = obj197; - ref QuestSequence reference217 = ref span106[4]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -366134,7 +442487,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) { AethernetShortcut = new AethernetShortcut { @@ -366151,26 +442506,33 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "liza"; questRoot38.Author = list296; - num = 3; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span107 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference218 = ref span107[0]; + index = 3; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list298)[0]; + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference219 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.AcceptQuest, 1051600u, new Vector3(111.16199f, 4f, -98.92432f), 131); num3 = 1; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list299); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGYR301_05187_Q1_000_000"), @@ -366180,7 +442542,8 @@ public static class AssemblyQuestLoader reference219 = questStep23; obj199.Steps = list298; reference218 = obj199; - ref QuestSequence reference220 = ref span107[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -366188,21 +442551,26 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1051601u, new Vector3(-45.5177f, 7.9999995f, -100.72485f), 130) + span3 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051601u, new Vector3(-45.5177f, 7.9999995f, -100.72485f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj200.Steps = list300; reference220 = obj200; - ref QuestSequence reference221 = ref span107[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051600u, new Vector3(111.16199f, 4f, -98.92432f), 131) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + span3 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051600u, new Vector3(111.16199f, 4f, -98.92432f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -366220,13 +442588,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list302); + index = 0; + span[index] = "liza"; questRoot39.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span108 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference222 = ref span108[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + span2 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -366234,7 +442605,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + span3 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366252,16 +442625,18 @@ public static class AssemblyQuestLoader }; obj202.Steps = list304; reference222 = obj202; - ref QuestSequence reference223 = ref span108[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span109 = CollectionsMarshal.AsSpan(list305); - ref QuestStep reference224 = ref span109[0]; + index2 = 3; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + ref QuestStep reference224 = ref span3[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -366271,49 +442646,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span110 = CollectionsMarshal.AsSpan(list306); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + span6 = CollectionsMarshal.AsSpan(list306); + 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); obj204.CompletionQuestVariablesFlags = list306; reference224 = obj204; - ref QuestStep reference225 = ref span109[1]; + num2++; + ref QuestStep reference225 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1006440u, new Vector3(140.3982f, 4f, -54.154297f), 131); num3 = 6; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - Span span111 = CollectionsMarshal.AsSpan(list307); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list307); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list307; reference225 = questStep24; - ref QuestStep reference226 = ref span109[2]; + num2++; + ref QuestStep reference226 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1051655u, new Vector3(137.74304f, 4f, 5.9662476f), 131); - num3 = 6; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span112 = CollectionsMarshal.AsSpan(list308); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + span6 = CollectionsMarshal.AsSpan(list308); + 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); questStep25.CompletionQuestVariablesFlags = list308; reference226 = questStep25; obj203.Steps = list305; reference223 = obj203; - ref QuestSequence reference227 = ref span108[2]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -366321,25 +442717,31 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(146.12386f, 4f, -23.562449f), 131) + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(146.12386f, 4f, -23.562449f), 131) { StopDistance = 0.5f, Emote = EEmote.Angry }; obj205.Steps = list309; reference227 = obj205; - ref QuestSequence reference228 = ref span108[3]; + num++; + ref QuestSequence reference228 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131); + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span3 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131); obj206.Steps = list310; reference228 = obj206; - ref QuestSequence reference229 = ref span108[4]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue @@ -366347,8 +442749,9 @@ public static class AssemblyQuestLoader num2 = 2; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span113 = CollectionsMarshal.AsSpan(list311); - ref QuestStep reference230 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + ref QuestStep reference230 = ref span3[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 2012114u, new Vector3(0f, 1.15f, 10.23451f), 1255) { TargetTerritoryId = (ushort)131 @@ -366358,12 +442761,15 @@ public static class AssemblyQuestLoader num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = 131; + span8 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span8[index3] = 131; skipStepConditions7.InTerritory = list312; skipConditions11.StepIf = skipStepConditions7; obj208.SkipConditions = skipConditions11; reference230 = obj208; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) { StopDistance = 7f, NextQuestId = new QuestId(5189) @@ -366377,27 +442783,33 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list313); + index = 0; + span[index] = "liza"; questRoot40.Author = list313; - num = 7; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span114 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference231 = ref span114[0]; + index = 7; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + span2 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) { StopDistance = 7f }; obj209.Steps = list315; reference231 = obj209; - ref QuestSequence reference232 = ref span114[1]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -366405,30 +442817,37 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 2014419u, new Vector3(-158.86176f, 7.4921875f, 493.88867f), 146) + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014419u, new Vector3(-158.86176f, 7.4921875f, 493.88867f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj210.Steps = list316; reference232 = obj210; - ref QuestSequence reference233 = ref span114[2]; + num++; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - ref QuestStep reference234 = ref CollectionsMarshal.AsSpan(list317)[0]; + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference234 = ref span3[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1051661u, new Vector3(1.7852783f, 19.026453f, 581.62805f), 146) { StopDistance = 5f }; - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice + index3 = 1; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + span4 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBZ002_05189_Q1_000_000"), @@ -366438,7 +442857,8 @@ public static class AssemblyQuestLoader reference234 = obj212; obj211.Steps = list317; reference233 = obj211; - ref QuestSequence reference235 = ref span114[3]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -366446,7 +442866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list319)[0]; + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + ref QuestStep reference236 = ref span3[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146) { Fly = true, @@ -366455,23 +442877,29 @@ public static class AssemblyQuestLoader num3 = 1; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 18178u; + span5 = CollectionsMarshal.AsSpan(list320); + index3 = 0; + span5[index3] = 18178u; obj214.KillEnemyDataIds = list320; reference236 = obj214; obj213.Steps = list319; reference235 = obj213; - ref QuestSequence reference237 = ref span114[4]; + num++; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146); + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146); obj215.Steps = list321; reference237 = obj215; - ref QuestSequence reference238 = ref span114[5]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 5 @@ -366479,21 +442907,26 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) + span3 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) { Fly = true }; obj216.Steps = list322; reference238 = obj216; - ref QuestSequence reference239 = ref span114[6]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span3 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) { NextQuestId = new QuestId(5190) }; @@ -366506,13 +442939,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list324); + index = 0; + span[index] = "liza"; questRoot41.Author = list324; - num = 9; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span115 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference240 = ref span115[0]; + index = 9; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + span2 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 0 @@ -366520,18 +442956,23 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146); + span3 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146); obj218.Steps = list326; reference240 = obj218; - ref QuestSequence reference241 = ref span115[1]; + num++; + ref QuestSequence reference241 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + span3 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366542,7 +442983,8 @@ public static class AssemblyQuestLoader }; obj219.Steps = list327; reference241 = obj219; - ref QuestSequence reference242 = ref span115[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -366550,18 +442992,23 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185); + span3 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185); obj220.Steps = list328; reference242 = obj220; - ref QuestSequence reference243 = ref span115[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1051675u, new Vector3(358.23608f, 5.957184f, 428.36658f), 1190) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + span3 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051675u, new Vector3(358.23608f, 5.957184f, 428.36658f), 1190) { StopDistance = 1f, Fly = true, @@ -366569,7 +443016,8 @@ public static class AssemblyQuestLoader }; obj221.Steps = list329; reference243 = obj221; - ref QuestSequence reference244 = ref span115[4]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 @@ -366577,26 +443025,32 @@ public static class AssemblyQuestLoader num2 = 2; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span116 = CollectionsMarshal.AsSpan(list330); - span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.81656f, 5.9295864f, 435.17932f), 1190); - span116[1] = new QuestStep(EInteractionType.Interact, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190); + span3 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.81656f, 5.9295864f, 435.17932f), 1190); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190); obj222.Steps = list330; reference244 = obj222; - ref QuestSequence reference245 = ref span115[5]; + num++; + ref QuestSequence reference245 = ref span2[num]; QuestSequence obj223 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Emote, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span3 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190) { Emote = EEmote.Unbound }; obj223.Steps = list331; reference245 = obj223; - ref QuestSequence reference246 = ref span115[6]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 6 @@ -366604,26 +443058,32 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1051682u, new Vector3(387.5028f, -0.60167974f, 426.99304f), 1190); + span3 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051682u, new Vector3(387.5028f, -0.60167974f, 426.99304f), 1190); obj224.Steps = list332; reference246 = obj224; - ref QuestSequence reference247 = ref span115[7]; + num++; + ref QuestSequence reference247 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span117 = CollectionsMarshal.AsSpan(list333); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.24307f, 0.7699772f, 473.79095f), 1190) + index2 = 2; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + span3 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.24307f, 0.7699772f, 473.79095f), 1190) { Fly = true }; - span117[1] = new QuestStep(EInteractionType.Interact, 1051684u, new Vector3(426.04712f, 0.7461932f, 472.3125f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051684u, new Vector3(426.04712f, 0.7461932f, 472.3125f), 1190); obj225.Steps = list333; reference247 = obj225; - ref QuestSequence reference248 = ref span115[8]; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue @@ -366631,7 +443091,9 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366650,24 +443112,30 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list335); + index = 0; + span[index] = "liza"; questRoot42.Author = list335; - num = 11; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span118 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference249 = ref span118[0]; + index = 11; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + span2 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj227 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); obj227.Steps = list337; reference249 = obj227; - ref QuestSequence reference250 = ref span118[1]; + num++; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj228 = new QuestSequence { Sequence = 1 @@ -366675,7 +443143,9 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1051689u, new Vector3(273.33484f, 15.999998f, 740.6576f), 1190) + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1051689u, new Vector3(273.33484f, 15.999998f, 740.6576f), 1190) { AethernetShortcut = new AethernetShortcut { @@ -366685,22 +443155,27 @@ public static class AssemblyQuestLoader }; obj228.Steps = list338; reference250 = obj228; - span118[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference251 = ref span118[3]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1051691u, new Vector3(273.85364f, 15.999996f, 738.2771f), 1190); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + span3 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051691u, new Vector3(273.85364f, 15.999996f, 738.2771f), 1190); obj229.Steps = list339; reference251 = obj229; - ref QuestSequence reference252 = ref span118[4]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 4 @@ -366708,7 +443183,9 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366719,18 +443196,22 @@ public static class AssemblyQuestLoader }; obj230.Steps = list340; reference252 = obj230; - ref QuestSequence reference253 = ref span118[5]; + num++; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1051672u, new Vector3(-14.816589f, -19.881973f, 223.3158f), 1185); + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051672u, new Vector3(-14.816589f, -19.881973f, 223.3158f), 1185); obj231.Steps = list341; reference253 = obj231; - ref QuestSequence reference254 = ref span118[6]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 6 @@ -366738,27 +443219,33 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1051673u, new Vector3(-15.243774f, -19.762682f, 221.72876f), 1185) + span3 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051673u, new Vector3(-15.243774f, -19.762682f, 221.72876f), 1185) { StopDistance = 5f }; obj232.Steps = list342; reference254 = obj232; - ref QuestSequence reference255 = ref span118[7]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj233 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185) { StopDistance = 5f }; obj233.Steps = list343; reference255 = obj233; - ref QuestSequence reference256 = ref span118[8]; + num++; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj234 = new QuestSequence { Sequence = 8 @@ -366766,24 +443253,30 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1051671u, new Vector3(-17.95996f, -19.784014f, 224.17017f), 1185) + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051671u, new Vector3(-17.95996f, -19.784014f, 224.17017f), 1185) { StopDistance = 5f }; obj234.Steps = list344; reference256 = obj234; - ref QuestSequence reference257 = ref span118[9]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1051674u, new Vector3(-16.617126f, -19.752277f, 222.64429f), 1185); + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051674u, new Vector3(-16.617126f, -19.752277f, 222.64429f), 1185); obj235.Steps = list345; reference257 = obj235; - ref QuestSequence reference258 = ref span118[10]; + num++; + ref QuestSequence reference258 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -366791,9 +443284,11 @@ public static class AssemblyQuestLoader num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span119 = CollectionsMarshal.AsSpan(list346); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.643284f, -17.972864f, 203.87883f), 1185); - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + span3 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.643284f, -17.972864f, 203.87883f), 1185); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f, DisableNavmesh = true @@ -366807,21 +443302,26 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list347); + index = 0; + span[index] = "liza"; questRoot43.Author = list347; - num = 11; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span120 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference259 = ref span120[0]; + index = 11; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + span2 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + span3 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -366834,7 +443334,8 @@ public static class AssemblyQuestLoader }; obj237.Steps = list349; reference259 = obj237; - ref QuestSequence reference260 = ref span120[1]; + num++; + ref QuestSequence reference260 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 @@ -366842,8 +443343,9 @@ public static class AssemblyQuestLoader num2 = 2; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span121 = CollectionsMarshal.AsSpan(list350); - ref QuestStep reference261 = ref span121[0]; + span3 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + ref QuestStep reference261 = ref span3[index2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 1048501u, new Vector3(121.44653f, 42f, -347.34113f), 1185) { AethernetShortcut = new AethernetShortcut @@ -366852,43 +443354,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBrightploomPost } }; - num3 = 6; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span122 = CollectionsMarshal.AsSpan(list351); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list351 = new List(index3); + CollectionsMarshal.SetCount(list351, index3); + span6 = CollectionsMarshal.AsSpan(list351); + 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); obj239.CompletionQuestVariablesFlags = list351; reference261 = obj239; - ref QuestStep reference262 = ref span121[1]; + index2++; + ref QuestStep reference262 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048485u, new Vector3(142.62598f, 41.999996f, -319.4477f), 1185); num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span123 = CollectionsMarshal.AsSpan(list352); - span123[0] = null; - span123[1] = null; - span123[2] = null; - span123[3] = null; - span123[4] = null; - span123[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list352); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list352; reference262 = questStep26; obj238.Steps = list350; reference260 = obj238; - ref QuestSequence reference263 = ref span120[2]; + num++; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + span3 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -366898,7 +443416,8 @@ public static class AssemblyQuestLoader }; obj240.Steps = list353; reference263 = obj240; - ref QuestSequence reference264 = ref span120[3]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 @@ -366906,24 +443425,30 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051698u, new Vector3(-122.72839f, 27.990566f, -436.42328f), 1191); + span3 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051698u, new Vector3(-122.72839f, 27.990566f, -436.42328f), 1191); obj241.Steps = list354; reference264 = obj241; - ref QuestSequence reference265 = ref span120[4]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1051700u, new Vector3(-183.33722f, 30f, -627.2526f), 1191) + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + span3 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051700u, new Vector3(-183.33722f, 30f, -627.2526f), 1191) { Fly = true }; obj242.Steps = list355; reference265 = obj242; - ref QuestSequence reference266 = ref span120[5]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 5 @@ -366931,24 +443456,30 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1048037u, new Vector3(-289.66205f, 45.88422f, -832.3644f), 1191) + span3 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048037u, new Vector3(-289.66205f, 45.88422f, -832.3644f), 1191) { Fly = true }; obj243.Steps = list356; reference266 = obj243; - ref QuestSequence reference267 = ref span120[6]; + num++; + ref QuestSequence reference267 = ref span2[num]; QuestSequence obj244 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1051703u, new Vector3(-9.506409f, -6.0500045f, 269.00122f), 1186); + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051703u, new Vector3(-9.506409f, -6.0500045f, 269.00122f), 1186); obj244.Steps = list357; reference267 = obj244; - ref QuestSequence reference268 = ref span120[7]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 7 @@ -366956,8 +443487,9 @@ public static class AssemblyQuestLoader num2 = 3; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span124 = CollectionsMarshal.AsSpan(list358); - ref QuestStep reference269 = ref span124[0]; + span3 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + ref QuestStep reference269 = ref span3[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 1051704u, new Vector3(353.96338f, 50.75f, 243.06091f), 1186) { AethernetShortcut = new AethernetShortcut @@ -366966,19 +443498,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span125 = CollectionsMarshal.AsSpan(list359); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list359 = new List(index3); + CollectionsMarshal.SetCount(list359, index3); + span6 = CollectionsMarshal.AsSpan(list359); + 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); obj246.CompletionQuestVariablesFlags = list359; reference269 = obj246; - ref QuestStep reference270 = ref span124[1]; + index2++; + ref QuestStep reference270 = ref span3[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186) { StopDistance = 5f @@ -366986,43 +443525,60 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span126 = CollectionsMarshal.AsSpan(list360); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj247.CompletionQuestVariablesFlags = list360; reference270 = obj247; - ref QuestStep reference271 = ref span124[2]; + index2++; + ref QuestStep reference271 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1051705u, new Vector3(344.59448f, 50.75f, 195.45276f), 1186); - num3 = 6; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span127 = CollectionsMarshal.AsSpan(list361); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list361 = new List(index3); + CollectionsMarshal.SetCount(list361, index3); + span6 = CollectionsMarshal.AsSpan(list361); + 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); questStep27.CompletionQuestVariablesFlags = list361; reference271 = questStep27; obj245.Steps = list358; reference268 = obj245; - ref QuestSequence reference272 = ref span120[8]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj248 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1051706u, new Vector3(368.36792f, 50.75f, 219.34839f), 1186); + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051706u, new Vector3(368.36792f, 50.75f, 219.34839f), 1186); obj248.Steps = list362; reference272 = obj248; - ref QuestSequence reference273 = ref span120[9]; + num++; + ref QuestSequence reference273 = ref span2[num]; QuestSequence obj249 = new QuestSequence { Sequence = 9 @@ -367030,7 +443586,9 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1051708u, new Vector3(307.42346f, 70.0001f, -25.0401f), 1186) + span3 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051708u, new Vector3(307.42346f, 70.0001f, -25.0401f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -367040,15 +443598,18 @@ public static class AssemblyQuestLoader }; obj249.Steps = list363; reference273 = obj249; - ref QuestSequence reference274 = ref span120[10]; + num++; + ref QuestSequence reference274 = ref span2[num]; QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + span3 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) { StopDistance = 5f, NextQuestId = new QuestId(5295) @@ -367062,13 +443623,16 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list365); + index = 0; + span[index] = "liza"; questRoot44.Author = list365; - num = 9; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span128 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference275 = ref span128[0]; + index = 9; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + span2 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj251 = new QuestSequence { Sequence = 0 @@ -367076,7 +443640,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051712u, new Vector3(12.344482f, -14f, 96.17761f), 1185) + span3 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051712u, new Vector3(12.344482f, -14f, 96.17761f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -367094,22 +443660,26 @@ public static class AssemblyQuestLoader }; obj251.Steps = list367; reference275 = obj251; - ref QuestSequence reference276 = ref span128[1]; + num++; + ref QuestSequence reference276 = ref span2[num]; QuestSequence obj252 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 2014421u, new Vector3(-65.72064f, 2.39563f, -400.22894f), 1188) + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014421u, new Vector3(-65.72064f, 2.39563f, -400.22894f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj252.Steps = list368; reference276 = obj252; - ref QuestSequence reference277 = ref span128[2]; + num++; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj253 = new QuestSequence { Sequence = 2 @@ -367117,21 +443687,27 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); + span3 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); obj253.Steps = list369; reference277 = obj253; - ref QuestSequence reference278 = ref span128[3]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj254 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + span3 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); obj254.Steps = list370; reference278 = obj254; - ref QuestSequence reference279 = ref span128[4]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj255 = new QuestSequence { Sequence = 4 @@ -367139,7 +443715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - ref QuestStep reference280 = ref CollectionsMarshal.AsSpan(list371)[0]; + span3 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + ref QuestStep reference280 = ref span3[index2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1051718u, new Vector3(62.210938f, 0.7218611f, -333.94366f), 1188) { Fly = true @@ -367147,7 +443725,9 @@ public static class AssemblyQuestLoader num3 = 1; List list372 = new List(num3); CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list372); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q5_000_001"), @@ -367157,23 +443737,28 @@ public static class AssemblyQuestLoader reference280 = obj256; obj255.Steps = list371; reference279 = obj255; - ref QuestSequence reference281 = ref span128[5]; + num++; + ref QuestSequence reference281 = ref span2[num]; QuestSequence obj257 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - ref QuestStep reference282 = ref CollectionsMarshal.AsSpan(list373)[0]; + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + span3 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref QuestStep reference282 = ref span3[num2]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1051719u, new Vector3(-42.923706f, 21.48239f, -88.76172f), 1188) { Fly = true }; - num3 = 1; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - CollectionsMarshal.AsSpan(list374)[0] = new DialogueChoice + index3 = 1; + List list374 = new List(index3); + CollectionsMarshal.SetCount(list374, index3); + span4 = CollectionsMarshal.AsSpan(list374); + num3 = 0; + span4[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q6_000_001"), @@ -367183,7 +443768,8 @@ public static class AssemblyQuestLoader reference282 = obj258; obj257.Steps = list373; reference281 = obj257; - ref QuestSequence reference283 = ref span128[6]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj259 = new QuestSequence { Sequence = 6 @@ -367191,7 +443777,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list375)[0]; + span3 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + ref QuestStep reference284 = ref span3[index2]; QuestStep obj260 = new QuestStep(EInteractionType.Interact, 1051720u, new Vector3(-183.45923f, 0.39999998f, -73.74689f), 1188) { Fly = true @@ -367199,7 +443787,9 @@ public static class AssemblyQuestLoader num3 = 1; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - CollectionsMarshal.AsSpan(list376)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list376); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q7_000_001"), @@ -367209,22 +443799,26 @@ public static class AssemblyQuestLoader reference284 = obj260; obj259.Steps = list375; reference283 = obj259; - ref QuestSequence reference285 = ref span128[7]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj261 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1051859u, new Vector3(-73.411194f, 2.4000018f, -398.61145f), 1188) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051859u, new Vector3(-73.411194f, 2.4000018f, -398.61145f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj261.Steps = list377; reference285 = obj261; - ref QuestSequence reference286 = ref span128[8]; + num++; + ref QuestSequence reference286 = ref span2[num]; QuestSequence obj262 = new QuestSequence { Sequence = byte.MaxValue @@ -367232,8 +443826,9 @@ public static class AssemblyQuestLoader num2 = 3; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span129 = CollectionsMarshal.AsSpan(list378); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.3438f, 13.823656f, -238.32625f), 1188) + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.3438f, 13.823656f, -238.32625f), 1188) { Fly = true, SkipConditions = new SkipConditions @@ -367244,7 +443839,8 @@ public static class AssemblyQuestLoader } } }; - span129[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Fly = true, Aetheryte = EAetheryteLocation.KozamaukaDockPoga, @@ -367256,7 +443852,8 @@ public static class AssemblyQuestLoader } } }; - span129[2] = new QuestStep(EInteractionType.CompleteQuest, 1051721u, new Vector3(737.5753f, 8.14118f, -278.0957f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051721u, new Vector3(737.5753f, 8.14118f, -278.0957f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga @@ -367270,22 +443867,26 @@ public static class AssemblyQuestLoader num = 1; List list379 = new List(num); CollectionsMarshal.SetCount(list379, num); - CollectionsMarshal.AsSpan(list379)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list379); + index = 0; + span[index] = "liza"; questRoot45.Author = list379; - num = 8; - List list380 = new List(num); - CollectionsMarshal.SetCount(list380, num); - Span span130 = CollectionsMarshal.AsSpan(list380); - ref QuestSequence reference287 = ref span130[0]; + index = 8; + List list380 = new List(index); + CollectionsMarshal.SetCount(list380, index); + span2 = CollectionsMarshal.AsSpan(list380); + num = 0; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj263 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - Span span131 = CollectionsMarshal.AsSpan(list381); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + index2 = 2; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + span3 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367297,10 +443898,12 @@ public static class AssemblyQuestLoader } } }; - span131[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj263.Steps = list381; reference287 = obj263; - ref QuestSequence reference288 = ref span130[1]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj264 = new QuestSequence { Sequence = 1 @@ -367308,32 +443911,38 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span132 = CollectionsMarshal.AsSpan(list382); - span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + span3 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Mount = true }; - span132[1] = new QuestStep(EInteractionType.Interact, 2014423u, new Vector3(727.0161f, 8.010925f, -284.3214f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014423u, new Vector3(727.0161f, 8.010925f, -284.3214f), 1188) { Fly = true }; obj264.Steps = list382; reference288 = obj264; - ref QuestSequence reference289 = ref span130[2]; + num++; + ref QuestSequence reference289 = ref span2[num]; QuestSequence obj265 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + span3 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) { Fly = true }; obj265.Steps = list383; reference289 = obj265; - ref QuestSequence reference290 = ref span130[3]; + num++; + ref QuestSequence reference290 = ref span2[num]; QuestSequence obj266 = new QuestSequence { Sequence = 3 @@ -367341,7 +443950,9 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 2014424u, new Vector3(-90.62335f, 9.750427f, -515.31244f), 1188) + span3 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014424u, new Vector3(-90.62335f, 9.750427f, -515.31244f), 1188) { StopDistance = 0.5f, Fly = true, @@ -367349,21 +443960,25 @@ public static class AssemblyQuestLoader }; obj266.Steps = list384; reference290 = obj266; - ref QuestSequence reference291 = ref span130[4]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj267 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 2014425u, new Vector3(55.74109f, 21.896606f, -75.63898f), 1188) + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span3 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014425u, new Vector3(55.74109f, 21.896606f, -75.63898f), 1188) { Fly = true }; obj267.Steps = list385; reference291 = obj267; - ref QuestSequence reference292 = ref span130[5]; + num++; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj268 = new QuestSequence { Sequence = 5 @@ -367371,25 +443986,33 @@ public static class AssemblyQuestLoader num2 = 3; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span133 = CollectionsMarshal.AsSpan(list386); - ref QuestStep reference293 = ref span133[0]; + span3 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + ref QuestStep reference293 = ref span3[index2]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 2014599u, new Vector3(-300.1908f, 0.38146973f, -66.78876f), 1188) { Fly = true }; - num3 = 6; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span134 = CollectionsMarshal.AsSpan(list387); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + span6 = CollectionsMarshal.AsSpan(list387); + 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); obj269.CompletionQuestVariablesFlags = list387; reference293 = obj269; - ref QuestStep reference294 = ref span133[1]; + index2++; + ref QuestStep reference294 = ref span3[index2]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 2014600u, new Vector3(-338.4604f, 0.38146973f, -88.944885f), 1188) { Fly = true @@ -367397,57 +444020,76 @@ public static class AssemblyQuestLoader num3 = 6; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - Span span135 = CollectionsMarshal.AsSpan(list388); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj270.CompletionQuestVariablesFlags = list388; reference294 = obj270; - ref QuestStep reference295 = ref span133[2]; + index2++; + ref QuestStep reference295 = ref span3[index2]; QuestStep obj271 = new QuestStep(EInteractionType.Combat, 2014436u, new Vector3(-370.4433f, 0.38146973f, -111.436646f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - Span span136 = CollectionsMarshal.AsSpan(list389); - span136[0] = 18170u; - span136[1] = 18171u; + index3 = 2; + List list389 = new List(index3); + CollectionsMarshal.SetCount(list389, index3); + span5 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span5[num3] = 18170u; + num3++; + span5[num3] = 18171u; obj271.KillEnemyDataIds = list389; num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - Span span137 = CollectionsMarshal.AsSpan(list390); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list390); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj271.CompletionQuestVariablesFlags = list390; reference295 = obj271; obj268.Steps = list386; reference292 = obj268; - ref QuestSequence reference296 = ref span130[6]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj272 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 2014457u, new Vector3(-332.8451f, 0.38146973f, -68.89453f), 1188) + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span3 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014457u, new Vector3(-332.8451f, 0.38146973f, -68.89453f), 1188) { Fly = true }; obj272.Steps = list391; reference296 = obj272; - ref QuestSequence reference297 = ref span130[7]; + num++; + ref QuestSequence reference297 = ref span2[num]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue @@ -367455,7 +444097,9 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) + span3 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367468,22 +444112,26 @@ public static class AssemblyQuestLoader num = 1; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - CollectionsMarshal.AsSpan(list393)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list393); + index = 0; + span[index] = "liza"; questRoot46.Author = list393; - num = 7; - List list394 = new List(num); - CollectionsMarshal.SetCount(list394, num); - Span span138 = CollectionsMarshal.AsSpan(list394); - ref QuestSequence reference298 = ref span138[0]; + index = 7; + List list394 = new List(index); + CollectionsMarshal.SetCount(list394, index); + span2 = CollectionsMarshal.AsSpan(list394); + num = 0; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj274 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - Span span139 = CollectionsMarshal.AsSpan(list395); - span139[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + index2 = 2; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + span3 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367495,10 +444143,12 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj274.Steps = list395; reference298 = obj274; - ref QuestSequence reference299 = ref span138[1]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj275 = new QuestSequence { Sequence = 1 @@ -367506,7 +444156,9 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188) + span3 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188) { StopDistance = 2f, Fly = true, @@ -367514,18 +444166,22 @@ public static class AssemblyQuestLoader }; obj275.Steps = list396; reference299 = obj275; - ref QuestSequence reference300 = ref span138[2]; + num++; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj276 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + span3 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188); obj276.Steps = list397; reference300 = obj276; - ref QuestSequence reference301 = ref span138[3]; + num++; + ref QuestSequence reference301 = ref span2[num]; QuestSequence obj277 = new QuestSequence { Sequence = 3 @@ -367533,69 +444189,94 @@ public static class AssemblyQuestLoader num2 = 2; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span140 = CollectionsMarshal.AsSpan(list398); - span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.89976f, 3.8414032f, -279.8074f), 1188) + span3 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.89976f, 3.8414032f, -279.8074f), 1188) { Fly = true }; - span140[1] = new QuestStep(EInteractionType.Interact, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); obj277.Steps = list398; reference301 = obj277; - ref QuestSequence reference302 = ref span138[4]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj278 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - Span span141 = CollectionsMarshal.AsSpan(list399); - ref QuestStep reference303 = ref span141[0]; + index2 = 5; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + ref QuestStep reference303 = ref span3[num2]; QuestStep obj279 = new QuestStep(EInteractionType.Interact, 2014427u, new Vector3(183.79492f, -0.015319824f, -331.53284f), 1188) { Fly = true }; - num3 = 6; - List list400 = new List(num3); - CollectionsMarshal.SetCount(list400, num3); - Span span142 = CollectionsMarshal.AsSpan(list400); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list400 = new List(index3); + CollectionsMarshal.SetCount(list400, index3); + span6 = CollectionsMarshal.AsSpan(list400); + 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); obj279.CompletionQuestVariablesFlags = list400; reference303 = obj279; - ref QuestStep reference304 = ref span141[1]; + num2++; + ref QuestStep reference304 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2014428u, new Vector3(210.43713f, -0.015319824f, -343.77057f), 1188); num3 = 6; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - Span span143 = CollectionsMarshal.AsSpan(list401); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list401); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list401; reference304 = questStep28; - ref QuestStep reference305 = ref span141[2]; + num2++; + ref QuestStep reference305 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2014429u, new Vector3(213.21423f, -0.015319824f, -354.84857f), 1188); - num3 = 6; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - Span span144 = CollectionsMarshal.AsSpan(list402); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list402 = new List(index3); + CollectionsMarshal.SetCount(list402, index3); + span6 = CollectionsMarshal.AsSpan(list402); + 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); questStep29.CompletionQuestVariablesFlags = list402; reference305 = questStep29; - ref QuestStep reference306 = ref span141[3]; + num2++; + ref QuestStep reference306 = ref span3[num2]; QuestStep obj280 = new QuestStep(EInteractionType.Interact, 2014430u, new Vector3(229.93823f, -0.015319824f, -342.15308f), 1188) { Mount = true, @@ -367604,32 +444285,46 @@ public static class AssemblyQuestLoader num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span145 = CollectionsMarshal.AsSpan(list403); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span6 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = null; + index3++; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj280.CompletionQuestVariablesFlags = list403; reference306 = obj280; - ref QuestStep reference307 = ref span141[4]; + num2++; + ref QuestStep reference307 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2014431u, new Vector3(252.18579f, -0.015319824f, -371.20624f), 1188); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span146 = CollectionsMarshal.AsSpan(list404); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + span6 = CollectionsMarshal.AsSpan(list404); + 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)8, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list404; reference307 = questStep30; obj278.Steps = list399; reference302 = obj278; - ref QuestSequence reference308 = ref span138[5]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj281 = new QuestSequence { Sequence = 5 @@ -367637,22 +444332,27 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) + span3 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; obj281.Steps = list405; reference308 = obj281; - ref QuestSequence reference309 = ref span138[6]; + num++; + ref QuestSequence reference309 = ref span2[num]; QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + span3 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367665,13 +444365,16 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - CollectionsMarshal.AsSpan(list407)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list407); + index = 0; + span[index] = "liza"; questRoot47.Author = list407; - num = 8; - List list408 = new List(num); - CollectionsMarshal.SetCount(list408, num); - Span span147 = CollectionsMarshal.AsSpan(list408); - ref QuestSequence reference310 = ref span147[0]; + index = 8; + List list408 = new List(index); + CollectionsMarshal.SetCount(list408, index); + span2 = CollectionsMarshal.AsSpan(list408); + num = 0; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj283 = new QuestSequence { Sequence = 0 @@ -367679,8 +444382,9 @@ public static class AssemblyQuestLoader num2 = 2; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span148 = CollectionsMarshal.AsSpan(list409); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + span3 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367692,33 +444396,39 @@ public static class AssemblyQuestLoader } } }; - span148[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj283.Steps = list409; reference310 = obj283; - ref QuestSequence reference311 = ref span147[1]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj284 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - Span span149 = CollectionsMarshal.AsSpan(list410); - span149[0] = new QuestStep(EInteractionType.Interact, 1051733u, new Vector3(553.06323f, 115.84422f, 173.32715f), 1188) + index2 = 3; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + span3 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051733u, new Vector3(553.06323f, 115.84422f, 173.32715f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - span149[1] = new QuestStep(EInteractionType.Interact, 1051734u, new Vector3(588.7998f, 116.71518f, 216.84595f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051734u, new Vector3(588.7998f, 116.71518f, 216.84595f), 1188) { Fly = true }; - span149[2] = new QuestStep(EInteractionType.Interact, 1051735u, new Vector3(614.9232f, 119.49004f, 172.16748f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051735u, new Vector3(614.9232f, 119.49004f, 172.16748f), 1188) { Fly = true }; obj284.Steps = list410; reference311 = obj284; - ref QuestSequence reference312 = ref span147[2]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj285 = new QuestSequence { Sequence = 2 @@ -367726,27 +444436,33 @@ public static class AssemblyQuestLoader num2 = 1; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1051736u, new Vector3(573.3883f, 116f, 202.62451f), 1188) + span3 = CollectionsMarshal.AsSpan(list411); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051736u, new Vector3(573.3883f, 116f, 202.62451f), 1188) { Fly = true }; obj285.Steps = list411; reference312 = obj285; - ref QuestSequence reference313 = ref span147[3]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj286 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list412 = new List(num2); - CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 2014432u, new Vector3(663.569f, 117.50964f, 647.9437f), 1188) + index2 = 1; + List list412 = new List(index2); + CollectionsMarshal.SetCount(list412, index2); + span3 = CollectionsMarshal.AsSpan(list412); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014432u, new Vector3(663.569f, 117.50964f, 647.9437f), 1188) { Fly = true }; obj286.Steps = list412; reference313 = obj286; - ref QuestSequence reference314 = ref span147[4]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj287 = new QuestSequence { Sequence = 4 @@ -367754,27 +444470,33 @@ public static class AssemblyQuestLoader num2 = 1; List list413 = new List(num2); CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) + span3 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) { StopDistance = 5f }; obj287.Steps = list413; reference314 = obj287; - ref QuestSequence reference315 = ref span147[5]; + num++; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj288 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Interact, 1051739u, new Vector3(410.39136f, 122.23778f, 797.5432f), 1188) + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + span3 = CollectionsMarshal.AsSpan(list414); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051739u, new Vector3(410.39136f, 122.23778f, 797.5432f), 1188) { Fly = true }; obj288.Steps = list414; reference315 = obj288; - ref QuestSequence reference316 = ref span147[6]; + num++; + ref QuestSequence reference316 = ref span2[num]; QuestSequence obj289 = new QuestSequence { Sequence = 6 @@ -367782,21 +444504,26 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) + span3 = CollectionsMarshal.AsSpan(list415); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) { Fly = true }; obj289.Steps = list415; reference316 = obj289; - ref QuestSequence reference317 = ref span147[7]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list416 = new List(num2); - CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) + index2 = 1; + List list416 = new List(index2); + CollectionsMarshal.SetCount(list416, index2); + span3 = CollectionsMarshal.AsSpan(list416); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367809,13 +444536,16 @@ public static class AssemblyQuestLoader num = 1; List list417 = new List(num); CollectionsMarshal.SetCount(list417, num); - CollectionsMarshal.AsSpan(list417)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list417); + index = 0; + span[index] = "liza"; questRoot48.Author = list417; - num = 6; - List list418 = new List(num); - CollectionsMarshal.SetCount(list418, num); - Span span150 = CollectionsMarshal.AsSpan(list418); - ref QuestSequence reference318 = ref span150[0]; + index = 6; + List list418 = new List(index); + CollectionsMarshal.SetCount(list418, index); + span2 = CollectionsMarshal.AsSpan(list418); + num = 0; + ref QuestSequence reference318 = ref span2[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -367823,8 +444553,9 @@ public static class AssemblyQuestLoader num2 = 2; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span151 = CollectionsMarshal.AsSpan(list419); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + span3 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367836,21 +444567,26 @@ public static class AssemblyQuestLoader } } }; - span151[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj291.Steps = list419; reference318 = obj291; - ref QuestSequence reference319 = ref span150[1]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + span3 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj292.Steps = list420; reference319 = obj292; - ref QuestSequence reference320 = ref span150[2]; + num++; + ref QuestSequence reference320 = ref span2[num]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -367858,9 +444594,11 @@ public static class AssemblyQuestLoader num2 = 2; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - Span span152 = CollectionsMarshal.AsSpan(list421); - span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188); - ref QuestStep reference321 = ref span152[1]; + span3 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188); + index2++; + ref QuestStep reference321 = ref span3[index2]; QuestStep obj294 = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f @@ -367868,7 +444606,9 @@ public static class AssemblyQuestLoader num3 = 1; List list422 = new List(num3); CollectionsMarshal.SetCount(list422, num3); - CollectionsMarshal.AsSpan(list422)[0] = new DialogueChoice + span4 = CollectionsMarshal.AsSpan(list422); + index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL005_05197_Q1_000_001"), @@ -367878,18 +444618,22 @@ public static class AssemblyQuestLoader reference321 = obj294; obj293.Steps = list421; reference320 = obj293; - ref QuestSequence reference322 = ref span150[3]; + num++; + ref QuestSequence reference322 = ref span2[num]; QuestSequence obj295 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - CollectionsMarshal.AsSpan(list423)[0] = new QuestStep(EInteractionType.Interact, 2014435u, new Vector3(753.1699f, 11.459534f, -253.55927f), 1188); + index2 = 1; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + span3 = CollectionsMarshal.AsSpan(list423); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014435u, new Vector3(753.1699f, 11.459534f, -253.55927f), 1188); obj295.Steps = list423; reference322 = obj295; - ref QuestSequence reference323 = ref span150[4]; + num++; + ref QuestSequence reference323 = ref span2[num]; QuestSequence obj296 = new QuestSequence { Sequence = 4 @@ -367897,21 +444641,26 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.Interact, 1051742u, new Vector3(187.45703f, 0.7218611f, -458.18268f), 1188) + span3 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051742u, new Vector3(187.45703f, 0.7218611f, -458.18268f), 1188) { StopDistance = 5f }; obj296.Steps = list424; reference323 = obj296; - ref QuestSequence reference324 = ref span150[5]; + num++; + ref QuestSequence reference324 = ref span2[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051744u, new Vector3(820.6454f, 13.759646f, -230.12134f), 1188) + index2 = 1; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + span3 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051744u, new Vector3(820.6454f, 13.759646f, -230.12134f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367924,13 +444673,16 @@ public static class AssemblyQuestLoader num = 1; List list426 = new List(num); CollectionsMarshal.SetCount(list426, num); - CollectionsMarshal.AsSpan(list426)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list426); + index = 0; + span[index] = "liza"; questRoot49.Author = list426; - num = 3; - List list427 = new List(num); - CollectionsMarshal.SetCount(list427, num); - Span span153 = CollectionsMarshal.AsSpan(list427); - ref QuestSequence reference325 = ref span153[0]; + index = 3; + List list427 = new List(index); + CollectionsMarshal.SetCount(list427, index); + span2 = CollectionsMarshal.AsSpan(list427); + num = 0; + ref QuestSequence reference325 = ref span2[num]; QuestSequence obj298 = new QuestSequence { Sequence = 0 @@ -367938,8 +444690,9 @@ public static class AssemblyQuestLoader num2 = 2; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - Span span154 = CollectionsMarshal.AsSpan(list428); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + span3 = CollectionsMarshal.AsSpan(list428); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367951,21 +444704,26 @@ public static class AssemblyQuestLoader } } }; - span154[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj298.Steps = list428; reference325 = obj298; - ref QuestSequence reference326 = ref span153[1]; + num++; + ref QuestSequence reference326 = ref span2[num]; QuestSequence obj299 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list429 = new List(num2); - CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1051746u, new Vector3(824.6128f, 13.979889f, -227.16113f), 1188); + index2 = 1; + List list429 = new List(index2); + CollectionsMarshal.SetCount(list429, index2); + span3 = CollectionsMarshal.AsSpan(list429); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051746u, new Vector3(824.6128f, 13.979889f, -227.16113f), 1188); obj299.Steps = list429; reference326 = obj299; - ref QuestSequence reference327 = ref span153[2]; + num++; + ref QuestSequence reference327 = ref span2[num]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue @@ -367973,7 +444731,9 @@ public static class AssemblyQuestLoader num2 = 1; List list430 = new List(num2); CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + span3 = CollectionsMarshal.AsSpan(list430); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj300.Steps = list430; reference327 = obj300; questRoot49.QuestSequence = list427; @@ -367983,29 +444743,35 @@ public static class AssemblyQuestLoader num = 1; List list431 = new List(num); CollectionsMarshal.SetCount(list431, num); - CollectionsMarshal.AsSpan(list431)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list431); + index = 0; + span[index] = "liza"; questRoot50.Author = list431; - num = 3; - List list432 = new List(num); - CollectionsMarshal.SetCount(list432, num); - Span span155 = CollectionsMarshal.AsSpan(list432); - ref QuestSequence reference328 = ref span155[0]; + index = 3; + List list432 = new List(index); + CollectionsMarshal.SetCount(list432, index); + span2 = CollectionsMarshal.AsSpan(list432); + num = 0; + ref QuestSequence reference328 = ref span2[num]; QuestSequence obj301 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list433 = new List(num2); - CollectionsMarshal.SetCount(list433, num2); - Span span156 = CollectionsMarshal.AsSpan(list433); - span156[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span156[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + index2 = 2; + List list433 = new List(index2); + CollectionsMarshal.SetCount(list433, index2); + span3 = CollectionsMarshal.AsSpan(list433); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj301.Steps = list433; reference328 = obj301; - ref QuestSequence reference329 = ref span155[1]; + num++; + ref QuestSequence reference329 = ref span2[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 @@ -368013,36 +444779,42 @@ public static class AssemblyQuestLoader num2 = 3; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span157 = CollectionsMarshal.AsSpan(list434); - span157[0] = new QuestStep(EInteractionType.Interact, 1052301u, new Vector3(219.98926f, 10.289447f, -522.9115f), 1188) + span3 = CollectionsMarshal.AsSpan(list434); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052301u, new Vector3(219.98926f, 10.289447f, -522.9115f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - span157[1] = new QuestStep(EInteractionType.Interact, 1052300u, new Vector3(208.48401f, 10.257622f, -588.98303f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052300u, new Vector3(208.48401f, 10.257622f, -588.98303f), 1188) { Fly = true }; - span157[2] = new QuestStep(EInteractionType.Interact, 1052302u, new Vector3(171.03833f, 7.17552f, -602.6246f), 1188) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052302u, new Vector3(171.03833f, 7.17552f, -602.6246f), 1188) { Fly = true }; obj302.Steps = list434; reference329 = obj302; - ref QuestSequence reference330 = ref span155[2]; + num++; + ref QuestSequence reference330 = ref span2[num]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list435 = new List(num2); - CollectionsMarshal.SetCount(list435, num2); - Span span158 = CollectionsMarshal.AsSpan(list435); - span158[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + index2 = 2; + List list435 = new List(index2); + CollectionsMarshal.SetCount(list435, index2); + span3 = CollectionsMarshal.AsSpan(list435); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span158[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368059,13 +444831,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -368073,29 +444848,35 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1052303u, new Vector3(-191.66864f, 6.5458784f, -498.0392f), 1188) + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052303u, new Vector3(-191.66864f, 6.5458784f, -498.0392f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -368103,12 +444884,14 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list5); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368121,29 +444904,35 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list6); + index = 0; + span[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span4[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + span2 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span4[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -368151,18 +444940,21 @@ public static class AssemblyQuestLoader num2 = 3; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span6 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span6[0]; + span3 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + ref QuestStep reference6 = ref span3[num3]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, 2014482u, new Vector3(718.6847f, 6.1188354f, -105.60773f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - int num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 18172u; + int num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span4 = CollectionsMarshal.AsSpan(list10); + int index2 = 0; + span4[index2] = 18172u; obj6.KillEnemyDataIds = list10; obj6.SkipConditions = new SkipConditions { @@ -368176,95 +444968,128 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list11 = new List>(num3); - CollectionsMarshal.SetCount(list11, num3); - Span> span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = null; - span7[1] = null; - ref List reference7 = ref span7[2]; - int num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - CollectionsMarshal.AsSpan(list12)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List> list11 = new List>(index2); + CollectionsMarshal.SetCount(list11, index2); + Span> span5 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference7 = ref span5[num4]; + int num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + Span span6 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span6[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference7 = list12; - span7[3] = null; - span7[4] = null; - span7[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj6.RequiredQuestVariables = list11; reference6 = obj6; - ref QuestStep reference8 = ref span6[1]; + num3++; + ref QuestStep reference8 = ref span3[num3]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2014481u, new Vector3(581.78064f, 9.018005f, -180.49902f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 18172u; - obj7.KillEnemyDataIds = list13; - num3 = 6; - List> list14 = new List>(num3); - CollectionsMarshal.SetCount(list14, num3); - Span> span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - ref List reference9 = ref span8[2]; num4 = 1; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - CollectionsMarshal.AsSpan(list15)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + span4 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span4[index2] = 18172u; + obj7.KillEnemyDataIds = list13; + index2 = 6; + List> list14 = new List>(index2); + CollectionsMarshal.SetCount(list14, index2); + span5 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference9 = ref span5[num4]; + index3 = 1; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + span6 = CollectionsMarshal.AsSpan(list15); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference9 = list15; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj7.RequiredQuestVariables = list14; reference8 = obj7; - ref QuestStep reference10 = ref span6[2]; + num3++; + ref QuestStep reference10 = ref span3[num3]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2014480u, new Vector3(531.15125f, 12.527649f, -99.321045f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 18172u; - obj8.KillEnemyDataIds = list16; - num3 = 6; - List> list17 = new List>(num3); - CollectionsMarshal.SetCount(list17, num3); - Span> span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - ref List reference11 = ref span9[2]; num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - CollectionsMarshal.AsSpan(list18)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + span4 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span4[index2] = 18172u; + obj8.KillEnemyDataIds = list16; + index2 = 6; + List> list17 = new List>(index2); + CollectionsMarshal.SetCount(list17, index2); + span5 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference11 = ref span5[num4]; + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + span6 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference11 = list18; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj8.RequiredQuestVariables = list17; reference10 = obj8; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference12 = ref span4[2]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + span3 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368277,13 +445102,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list20); + index = 0; + span[index] = "liza"; questRoot3.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span11 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference13 = ref span11[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + span2 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -368291,23 +445119,28 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj10.Steps = list22; reference13 = obj10; - ref QuestSequence reference14 = ref span11[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1052304u, new Vector3(670.344f, 26.329378f, -531.2734f), 1188) + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052304u, new Vector3(670.344f, 26.329378f, -531.2734f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368326,7 +445159,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list23; reference14 = obj11; - ref QuestSequence reference15 = ref span11[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -368334,12 +445168,14 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368352,29 +445188,35 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list25); + index = 0; + span[index] = "liza"; questRoot4.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span14 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference16 = ref span14[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + span2 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span15 = CollectionsMarshal.AsSpan(list27); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span15[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj13.Steps = list27; reference16 = obj13; - ref QuestSequence reference17 = ref span14[1]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -368382,8 +445224,9 @@ public static class AssemblyQuestLoader num2 = 3; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span16 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference18 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref QuestStep reference18 = ref span3[num3]; QuestStep obj15 = new QuestStep(EInteractionType.UseItem, 2014484u, new Vector3(847.34875f, 15.8845825f, -192.67572f), 1188) { Fly = true, @@ -368402,64 +445245,86 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + span6 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list29; reference18 = obj15; - ref QuestStep reference19 = ref span16[1]; + num3++; + ref QuestStep reference19 = ref span3[num3]; QuestStep obj16 = new QuestStep(EInteractionType.UseItem, 2014485u, new Vector3(855.2223f, 15.945618f, -208.72821f), 1188) { ItemId = 2003717u }; - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + span6 = CollectionsMarshal.AsSpan(list30); + 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); obj16.CompletionQuestVariablesFlags = list30; reference19 = obj16; - ref QuestStep reference20 = ref span16[2]; + num3++; + ref QuestStep reference20 = ref span3[num3]; QuestStep obj17 = new QuestStep(EInteractionType.UseItem, 2014483u, new Vector3(868.1315f, 15.335266f, -203.96735f), 1188) { ItemId = 2003717u }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + span6 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list31; reference20 = obj17; obj14.Steps = list28; reference17 = obj14; - ref QuestSequence reference21 = ref span14[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - Span span20 = CollectionsMarshal.AsSpan(list32); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368476,7 +445341,8 @@ public static class AssemblyQuestLoader } } }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368489,13 +445355,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "liza"; questRoot5.Author = list33; - num = 5; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span21 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference22 = ref span21[0]; + index = 5; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -368503,23 +445372,28 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span22[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj19.Steps = list35; reference22 = obj19; - ref QuestSequence reference23 = ref span21[1]; + num++; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1052305u, new Vector3(474.20447f, 9.739183f, -207.90424f), 1188) + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052305u, new Vector3(474.20447f, 9.739183f, -207.90424f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368538,7 +445412,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list36; reference23 = obj20; - ref QuestSequence reference24 = ref span21[2]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -368546,29 +445421,38 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 2014486u, new Vector3(471.88513f, 9.933594f, -206.46985f), 1188) + span3 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2014486u, new Vector3(471.88513f, 9.933594f, -206.46985f), 1188) { StopDistance = 4.5f }; obj21.Steps = list37; reference24 = obj21; - ref QuestSequence reference25 = ref span21[3]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span23 = CollectionsMarshal.AsSpan(list38); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.1944f, 6.15866f, -196.99664f), 1188); - span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(610.0975f, 7.8043165f, -228.70596f), 1188); - span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(680.4834f, 10.053757f, -263.73697f), 1188); - span23[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.98376f, 9.793373f, -263.45914f), 1188); - span23[4] = new QuestStep(EInteractionType.Interact, 1052306u, new Vector3(791.37854f, 14.39521f, -206.53088f), 1188); + num3 = 5; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.1944f, 6.15866f, -196.99664f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(610.0975f, 7.8043165f, -228.70596f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(680.4834f, 10.053757f, -263.73697f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.98376f, 9.793373f, -263.45914f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052306u, new Vector3(791.37854f, 14.39521f, -206.53088f), 1188); obj22.Steps = list38; reference25 = obj22; - ref QuestSequence reference26 = ref span21[4]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -368576,8 +445460,9 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span24 = CollectionsMarshal.AsSpan(list39); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368594,7 +445479,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368607,29 +445493,35 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "liza"; questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span25 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference27 = ref span25[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span26 = CollectionsMarshal.AsSpan(list42); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj24.Steps = list42; reference27 = obj24; - ref QuestSequence reference28 = ref span25[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -368637,8 +445529,9 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span27 = CollectionsMarshal.AsSpan(list43); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.49648f, 8.736965f, -401.72836f), 1188) + span3 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.49648f, 8.736965f, -401.72836f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu, @@ -368650,31 +445543,42 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference29 = ref span27[1]; + num3++; + ref QuestStep reference29 = ref span3[num3]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1052307u, new Vector3(-111.0094f, 1.6987718f, -111.0094f), 1188) { Fly = true }; - num3 = 6; - List> list44 = new List>(num3); - CollectionsMarshal.SetCount(list44, num3); - Span> span28 = CollectionsMarshal.AsSpan(list44); - span28[0] = null; - ref List reference30 = ref span28[1]; - num4 = 1; - List list45 = new List(num4); - CollectionsMarshal.SetCount(list45, num4); - CollectionsMarshal.AsSpan(list45)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index2 = 6; + List> list44 = new List>(index2); + CollectionsMarshal.SetCount(list44, index2); + span5 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span5[num4] = null; + num4++; + ref List reference30 = ref span5[num4]; + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + span6 = CollectionsMarshal.AsSpan(list45); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference30 = list45; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj26.RequiredQuestVariables = list44; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span7 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL107_05205_Q1_000_000"), @@ -368682,31 +445586,42 @@ public static class AssemblyQuestLoader }; obj26.DialogueChoices = list46; reference29 = obj26; - ref QuestStep reference31 = ref span27[2]; + num3++; + ref QuestStep reference31 = ref span3[num3]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1052308u, new Vector3(-152.7276f, 3.6225784f, -349.87415f), 1188) { Fly = true }; - num3 = 6; - List> list47 = new List>(num3); - CollectionsMarshal.SetCount(list47, num3); - Span> span29 = CollectionsMarshal.AsSpan(list47); - span29[0] = null; - ref List reference32 = ref span29[1]; - num4 = 1; - List list48 = new List(num4); - CollectionsMarshal.SetCount(list48, num4); - CollectionsMarshal.AsSpan(list48)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index2 = 6; + List> list47 = new List>(index2); + CollectionsMarshal.SetCount(list47, index2); + span5 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span5[num4] = null; + num4++; + ref List reference32 = ref span5[num4]; + num5 = 1; + List list48 = new List(num5); + CollectionsMarshal.SetCount(list48, num5); + span6 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span6[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference32 = list48; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj27.RequiredQuestVariables = list47; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + span7 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL107_05205_Q2_000_000"), @@ -368716,20 +445631,23 @@ public static class AssemblyQuestLoader reference31 = obj27; obj25.Steps = list43; reference28 = obj25; - ref QuestSequence reference33 = ref span25[2]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span30 = CollectionsMarshal.AsSpan(list50); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368742,13 +445660,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "liza"; questRoot7.Author = list51; - num = 3; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span31 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference34 = ref span31[0]; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -368756,96 +445677,127 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span32 = CollectionsMarshal.AsSpan(list53); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span32[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj29.Steps = list53; reference34 = obj29; - ref QuestSequence reference35 = ref span31[1]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span33 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference36 = ref span33[0]; + num3 = 3; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference36 = ref span3[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2014540u, new Vector3(-24.887512f, 21.774597f, -88.76172f), 1188) { StopDistance = 1f, Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - num3 = 6; - List> list55 = new List>(num3); - CollectionsMarshal.SetCount(list55, num3); - Span> span34 = CollectionsMarshal.AsSpan(list55); - span34[0] = null; - ref List reference37 = ref span34[1]; - num4 = 1; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - CollectionsMarshal.AsSpan(list56)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index2 = 6; + List> list55 = new List>(index2); + CollectionsMarshal.SetCount(list55, index2); + span5 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span5[num4] = null; + num4++; + ref List reference37 = ref span5[num4]; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + span6 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference37 = list56; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj31.RequiredQuestVariables = list55; reference36 = obj31; - ref QuestStep reference38 = ref span33[1]; + num2++; + ref QuestStep reference38 = ref span3[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 2014487u, new Vector3(-45.426086f, 21.469421f, -80.27777f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List> list57 = new List>(num3); - CollectionsMarshal.SetCount(list57, num3); - Span> span35 = CollectionsMarshal.AsSpan(list57); - span35[0] = null; - ref List reference39 = ref span35[1]; - num4 = 1; - List list58 = new List(num4); - CollectionsMarshal.SetCount(list58, num4); - CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list57 = new List>(num4); + CollectionsMarshal.SetCount(list57, num4); + span5 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span5[index2] = null; + index2++; + ref List reference39 = ref span5[index2]; + num5 = 1; + List list58 = new List(num5); + CollectionsMarshal.SetCount(list58, num5); + span6 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span6[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference39 = list58; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj32.RequiredQuestVariables = list57; reference38 = obj32; - ref QuestStep reference40 = ref span33[2]; + num2++; + ref QuestStep reference40 = ref span3[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2014539u, new Vector3(-9.2317505f, 21.469421f, -74.418274f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List> list59 = new List>(num3); - CollectionsMarshal.SetCount(list59, num3); - Span> span36 = CollectionsMarshal.AsSpan(list59); - span36[0] = null; - ref List reference41 = ref span36[1]; - num4 = 1; - List list60 = new List(num4); - CollectionsMarshal.SetCount(list60, num4); - CollectionsMarshal.AsSpan(list60)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + index2 = 6; + List> list59 = new List>(index2); + CollectionsMarshal.SetCount(list59, index2); + span5 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span5[num4] = null; + num4++; + ref List reference41 = ref span5[num4]; + index3 = 1; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + span6 = CollectionsMarshal.AsSpan(list60); + num5 = 0; + span6[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference41 = list60; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj33.RequiredQuestVariables = list59; reference40 = obj33; obj30.Steps = list54; reference35 = obj30; - ref QuestSequence reference42 = ref span31[2]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -368853,12 +445805,14 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span37 = CollectionsMarshal.AsSpan(list61); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368871,29 +445825,35 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list62); + index = 0; + span[index] = "liza"; questRoot8.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span38 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference43 = ref span38[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + span2 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span39 = CollectionsMarshal.AsSpan(list64); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span39[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj35.Steps = list64; reference43 = obj35; - ref QuestSequence reference44 = ref span38[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -368901,28 +445861,34 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1052309u, new Vector3(-100.35864f, 4.7510896f, -304.3412f), 1188) + span3 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052309u, new Vector3(-100.35864f, 4.7510896f, -304.3412f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj36.Steps = list65; reference44 = obj36; - ref QuestSequence reference45 = ref span38[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1052310u, new Vector3(-103.01367f, 4.70791f, -305.40936f), 1188) + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052310u, new Vector3(-103.01367f, 4.70791f, -305.40936f), 1188) { StopDistance = 5f }; obj37.Steps = list66; reference45 = obj37; - ref QuestSequence reference46 = ref span38[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -368930,12 +445896,14 @@ public static class AssemblyQuestLoader num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span40 = CollectionsMarshal.AsSpan(list67); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368948,29 +445916,35 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list68); + index = 0; + span[index] = "liza"; questRoot9.Author = list68; - num = 3; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span41 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference47 = ref span41[0]; + index = 3; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + span2 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span42 = CollectionsMarshal.AsSpan(list70); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span42[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj39.Steps = list70; reference47 = obj39; - ref QuestSequence reference48 = ref span41[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -368978,71 +445952,95 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span43 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference49 = ref span43[0]; + span3 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + ref QuestStep reference49 = ref span3[num3]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1052319u, new Vector3(-185.07672f, 6.5185943f, -460.04425f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span44 = CollectionsMarshal.AsSpan(list72); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + span6 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list72; reference49 = obj41; - ref QuestStep reference50 = ref span43[1]; + num3++; + ref QuestStep reference50 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052318u, new Vector3(-217.12067f, 6.4016876f, -474.60138f), 1188); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span45 = CollectionsMarshal.AsSpan(list73); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + span6 = CollectionsMarshal.AsSpan(list73); + 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); questStep.CompletionQuestVariablesFlags = list73; reference50 = questStep; - ref QuestStep reference51 = ref span43[2]; + num3++; + ref QuestStep reference51 = ref span3[num3]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1052320u, new Vector3(-108.659546f, 9.773233f, -530.2052f), 1188) { Fly = true }; - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span46 = CollectionsMarshal.AsSpan(list74); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + span6 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list74; reference51 = obj42; obj40.Steps = list71; reference48 = obj40; - ref QuestSequence reference52 = ref span41[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span47 = CollectionsMarshal.AsSpan(list75); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + span3 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369055,13 +446053,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list76); + index = 0; + span[index] = "liza"; questRoot10.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span48 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference53 = ref span48[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + span2 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -369069,30 +446070,36 @@ public static class AssemblyQuestLoader num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span49 = CollectionsMarshal.AsSpan(list78); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj44.Steps = list78; reference53 = obj44; - ref QuestSequence reference54 = ref span48[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1052321u, new Vector3(103.227295f, 0.7218611f, -334.37097f), 1188) + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + span3 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052321u, new Vector3(103.227295f, 0.7218611f, -334.37097f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj45.Steps = list79; reference54 = obj45; - ref QuestSequence reference55 = ref span48[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -369100,65 +446107,89 @@ public static class AssemblyQuestLoader num2 = 3; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span50 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference56 = ref span50[0]; + span3 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + ref QuestStep reference56 = ref span3[num3]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2014488u, new Vector3(103.74609f, -0.015319824f, -339.13184f), 1188); - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span51 = CollectionsMarshal.AsSpan(list81); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + span6 = CollectionsMarshal.AsSpan(list81); + 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); questStep2.CompletionQuestVariablesFlags = list81; reference56 = questStep2; - ref QuestStep reference57 = ref span50[1]; + num3++; + ref QuestStep reference57 = ref span3[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014536u, new Vector3(106.21802f, -0.015319824f, -347.097f), 1188); - num3 = 6; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span52 = CollectionsMarshal.AsSpan(list82); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + span6 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list82; reference57 = questStep3; - ref QuestStep reference58 = ref span50[2]; + num3++; + ref QuestStep reference58 = ref span3[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014537u, new Vector3(112.93201f, -0.015319824f, -341.5122f), 1188); - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span53 = CollectionsMarshal.AsSpan(list83); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span6 = CollectionsMarshal.AsSpan(list83); + 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); questStep4.CompletionQuestVariablesFlags = list83; reference58 = questStep4; obj46.Steps = list80; reference55 = obj46; - ref QuestSequence reference59 = ref span48[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span54 = CollectionsMarshal.AsSpan(list84); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + span3 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369171,13 +446202,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list85); + index = 0; + span[index] = "liza"; questRoot11.Author = list85; - num = 5; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span55 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference60 = ref span55[0]; + index = 5; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + span2 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -369185,23 +446219,28 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span56 = CollectionsMarshal.AsSpan(list87); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span56[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj48.Steps = list87; reference60 = obj48; - ref QuestSequence reference61 = ref span55[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188) + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -369220,7 +446259,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list88; reference61 = obj49; - ref QuestSequence reference62 = ref span55[2]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -369228,102 +446268,139 @@ public static class AssemblyQuestLoader num2 = 3; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span57 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference63 = ref span57[0]; + span3 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + ref QuestStep reference63 = ref span3[num3]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2014491u, new Vector3(504.78357f, 15.396301f, -283.83307f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 18173u; - obj51.KillEnemyDataIds = list90; - num3 = 6; - List> list91 = new List>(num3); - CollectionsMarshal.SetCount(list91, num3); - Span> span58 = CollectionsMarshal.AsSpan(list91); - span58[0] = null; - span58[1] = null; - ref List reference64 = ref span58[2]; num4 = 1; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - CollectionsMarshal.AsSpan(list92)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + span4 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span4[index2] = 18173u; + obj51.KillEnemyDataIds = list90; + index2 = 6; + List> list91 = new List>(index2); + CollectionsMarshal.SetCount(list91, index2); + span5 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference64 = ref span5[num4]; + num5 = 1; + List list92 = new List(num5); + CollectionsMarshal.SetCount(list92, num5); + span6 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference64 = list92; - span58[3] = null; - span58[4] = null; - span58[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj51.RequiredQuestVariables = list91; reference63 = obj51; - ref QuestStep reference65 = ref span57[1]; + num3++; + ref QuestStep reference65 = ref span3[num3]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 2014489u, new Vector3(522.301f, 12.191956f, -273.97577f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 18173u; - obj52.KillEnemyDataIds = list93; - num3 = 6; - List> list94 = new List>(num3); - CollectionsMarshal.SetCount(list94, num3); - Span> span59 = CollectionsMarshal.AsSpan(list94); - span59[0] = null; - span59[1] = null; - ref List reference66 = ref span59[2]; num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - CollectionsMarshal.AsSpan(list95)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + span4 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span4[index2] = 18173u; + obj52.KillEnemyDataIds = list93; + index2 = 6; + List> list94 = new List>(index2); + CollectionsMarshal.SetCount(list94, index2); + span5 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference66 = ref span5[num4]; + index3 = 1; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + span6 = CollectionsMarshal.AsSpan(list95); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference66 = list95; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj52.RequiredQuestVariables = list94; reference65 = obj52; - ref QuestStep reference67 = ref span57[2]; + num3++; + ref QuestStep reference67 = ref span3[num3]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, 2014490u, new Vector3(485.6183f, 10.8185425f, -281.7884f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 18173u; - obj53.KillEnemyDataIds = list96; - num3 = 6; - List> list97 = new List>(num3); - CollectionsMarshal.SetCount(list97, num3); - Span> span60 = CollectionsMarshal.AsSpan(list97); - span60[0] = null; - span60[1] = null; - ref List reference68 = ref span60[2]; num4 = 1; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - CollectionsMarshal.AsSpan(list98)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + span4 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span4[index2] = 18173u; + obj53.KillEnemyDataIds = list96; + index2 = 6; + List> list97 = new List>(index2); + CollectionsMarshal.SetCount(list97, index2); + span5 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference68 = ref span5[num4]; + num5 = 1; + List list98 = new List(num5); + CollectionsMarshal.SetCount(list98, num5); + span6 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference68 = list98; - span60[3] = null; - span60[4] = null; - span60[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj53.RequiredQuestVariables = list97; reference67 = obj53; obj50.Steps = list89; reference62 = obj50; - ref QuestSequence reference69 = ref span55[3]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188); + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188); obj54.Steps = list99; reference69 = obj54; - ref QuestSequence reference70 = ref span55[4]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -369331,12 +446408,14 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span61 = CollectionsMarshal.AsSpan(list100); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369349,29 +446428,35 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list101); + index = 0; + span[index] = "liza"; questRoot12.Author = list101; - num = 3; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span62 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference71 = ref span62[0]; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + span2 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span63 = CollectionsMarshal.AsSpan(list103); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + span3 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj56.Steps = list103; reference71 = obj56; - ref QuestSequence reference72 = ref span62[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -369379,59 +446464,76 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span64 = CollectionsMarshal.AsSpan(list104); - ref QuestStep reference73 = ref span64[0]; + span3 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + ref QuestStep reference73 = ref span3[num3]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, 2014492u, new Vector3(-448.50842f, 0.9613037f, -113.69501f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu, ItemId = 2003721u }; - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span65 = CollectionsMarshal.AsSpan(list105); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + span6 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list105; reference73 = obj58; - ref QuestStep reference74 = ref span64[1]; + num3++; + ref QuestStep reference74 = ref span3[num3]; QuestStep obj59 = new QuestStep(EInteractionType.UseItem, 2014493u, new Vector3(-464.0421f, 0.62561035f, -119.95117f), 1188) { ItemId = 2003721u }; - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span66 = CollectionsMarshal.AsSpan(list106); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span6 = CollectionsMarshal.AsSpan(list106); + 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)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list106; reference74 = obj59; obj57.Steps = list104; reference72 = obj57; - ref QuestSequence reference75 = ref span62[2]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span67 = CollectionsMarshal.AsSpan(list107); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + span3 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369444,13 +446546,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list108); + index = 0; + span[index] = "liza"; questRoot13.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span68 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference76 = ref span68[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + span2 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -369458,24 +446563,28 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span69 = CollectionsMarshal.AsSpan(list110); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span69[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj61.Steps = list110; reference76 = obj61; - ref QuestSequence reference77 = ref span68[1]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span70 = CollectionsMarshal.AsSpan(list111); - ref QuestStep reference78 = ref span70[0]; + num3 = 3; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference78 = ref span3[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 2014494u, new Vector3(538.38403f, 15.701477f, -10.147278f), 1188) { Fly = true, @@ -369493,49 +446602,70 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span71 = CollectionsMarshal.AsSpan(list112); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + span6 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list112; reference78 = obj63; - ref QuestStep reference79 = ref span70[1]; + num2++; + ref QuestStep reference79 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014495u, new Vector3(528.77075f, 15.6710205f, -2.456726f), 1188); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span72 = CollectionsMarshal.AsSpan(list113); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span6 = CollectionsMarshal.AsSpan(list113); + 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)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list113; reference79 = questStep5; - ref QuestStep reference80 = ref span70[2]; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014496u, new Vector3(511.7417f, 12.954895f, -7.522766f), 1188); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span73 = CollectionsMarshal.AsSpan(list114); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + span6 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list114; reference80 = questStep6; obj62.Steps = list111; reference77 = obj62; - ref QuestSequence reference81 = ref span68[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -369543,12 +446673,14 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span74 = CollectionsMarshal.AsSpan(list115); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369561,29 +446693,35 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list116); + index = 0; + span[index] = "liza"; questRoot14.Author = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span75 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference82 = ref span75[0]; + index = 3; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + span2 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span76 = CollectionsMarshal.AsSpan(list118); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span76[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj65.Steps = list118; reference82 = obj65; - ref QuestSequence reference83 = ref span75[1]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -369591,108 +446729,144 @@ public static class AssemblyQuestLoader num2 = 3; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span77 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference84 = ref span77[0]; + span3 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + ref QuestStep reference84 = ref span3[num3]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2014497u, new Vector3(-130.7851f, 114.39685f, 240.31421f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = 18174u; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span4 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span4[num4] = 18174u; obj67.KillEnemyDataIds = list120; - num3 = 6; - List> list121 = new List>(num3); - CollectionsMarshal.SetCount(list121, num3); - Span> span78 = CollectionsMarshal.AsSpan(list121); - span78[0] = null; - span78[1] = null; - ref List reference85 = ref span78[2]; - num4 = 1; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - CollectionsMarshal.AsSpan(list122)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list121 = new List>(num4); + CollectionsMarshal.SetCount(list121, num4); + span5 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference85 = ref span5[index2]; + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + span6 = CollectionsMarshal.AsSpan(list122); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference85 = list122; - span78[3] = null; - span78[4] = null; - span78[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj67.RequiredQuestVariables = list121; reference84 = obj67; - ref QuestStep reference86 = ref span77[1]; + num3++; + ref QuestStep reference86 = ref span3[num3]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2014498u, new Vector3(-56.565247f, 111.77234f, 172.62524f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 18174u; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span4 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span4[num4] = 18174u; obj68.KillEnemyDataIds = list123; - num3 = 6; - List> list124 = new List>(num3); - CollectionsMarshal.SetCount(list124, num3); - Span> span79 = CollectionsMarshal.AsSpan(list124); - span79[0] = null; - span79[1] = null; - ref List reference87 = ref span79[2]; - num4 = 1; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - CollectionsMarshal.AsSpan(list125)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list124 = new List>(num4); + CollectionsMarshal.SetCount(list124, num4); + span5 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference87 = ref span5[index2]; + num5 = 1; + List list125 = new List(num5); + CollectionsMarshal.SetCount(list125, num5); + span6 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference87 = list125; - span79[3] = null; - span79[4] = null; - span79[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj68.RequiredQuestVariables = list124; reference86 = obj68; - ref QuestStep reference88 = ref span77[2]; + num3++; + ref QuestStep reference88 = ref span3[num3]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2014499u, new Vector3(-84.18408f, 111.436646f, 268.05518f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 18174u; + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span4 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span4[num4] = 18174u; obj69.KillEnemyDataIds = list126; - num3 = 6; - List> list127 = new List>(num3); - CollectionsMarshal.SetCount(list127, num3); - Span> span80 = CollectionsMarshal.AsSpan(list127); - span80[0] = null; - span80[1] = null; - ref List reference89 = ref span80[2]; - num4 = 1; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - CollectionsMarshal.AsSpan(list128)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list127 = new List>(num4); + CollectionsMarshal.SetCount(list127, num4); + span5 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference89 = ref span5[index2]; + index3 = 1; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span6 = CollectionsMarshal.AsSpan(list128); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference89 = list128; - span80[3] = null; - span80[4] = null; - span80[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj69.RequiredQuestVariables = list127; reference88 = obj69; obj66.Steps = list119; reference83 = obj66; - ref QuestSequence reference90 = ref span75[2]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span81 = CollectionsMarshal.AsSpan(list129); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + span3 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369705,13 +446879,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list130); + index = 0; + span[index] = "liza"; questRoot15.Author = list130; - num = 4; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span82 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference91 = ref span82[0]; + index = 4; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + span2 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -369719,30 +446896,36 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span83 = CollectionsMarshal.AsSpan(list132); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj71.Steps = list132; reference91 = obj71; - ref QuestSequence reference92 = ref span82[1]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1052324u, new Vector3(-248.18805f, 110.17465f, 189.01343f), 1188) + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + span3 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052324u, new Vector3(-248.18805f, 110.17465f, 189.01343f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; obj72.Steps = list133; reference92 = obj72; - ref QuestSequence reference93 = ref span82[2]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -369750,67 +446933,88 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span84 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference94 = ref span84[0]; + span3 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + ref QuestStep reference94 = ref span3[num3]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1052326u, new Vector3(-304.61584f, 110.20639f, 725.39856f), 1188) { Fly = true }; - num3 = 6; - List> list135 = new List>(num3); - CollectionsMarshal.SetCount(list135, num3); - Span> span85 = CollectionsMarshal.AsSpan(list135); - span85[0] = null; - ref List reference95 = ref span85[1]; - num4 = 1; - List list136 = new List(num4); - CollectionsMarshal.SetCount(list136, num4); - CollectionsMarshal.AsSpan(list136)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index2 = 6; + List> list135 = new List>(index2); + CollectionsMarshal.SetCount(list135, index2); + span5 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span5[num4] = null; + num4++; + ref List reference95 = ref span5[num4]; + num5 = 1; + List list136 = new List(num5); + CollectionsMarshal.SetCount(list136, num5); + span6 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference95 = list136; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj74.RequiredQuestVariables = list135; reference94 = obj74; - ref QuestStep reference96 = ref span84[1]; + num3++; + ref QuestStep reference96 = ref span3[num3]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1052435u, new Vector3(505.76025f, 115.10293f, 205.7373f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num3 = 6; - List> list137 = new List>(num3); - CollectionsMarshal.SetCount(list137, num3); - Span> span86 = CollectionsMarshal.AsSpan(list137); - span86[0] = null; - ref List reference97 = ref span86[1]; - num4 = 1; - List list138 = new List(num4); - CollectionsMarshal.SetCount(list138, num4); - CollectionsMarshal.AsSpan(list138)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list137 = new List>(num4); + CollectionsMarshal.SetCount(list137, num4); + span5 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span5[index2] = null; + index2++; + ref List reference97 = ref span5[index2]; + index3 = 1; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + span6 = CollectionsMarshal.AsSpan(list138); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference97 = list138; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj75.RequiredQuestVariables = list137; reference96 = obj75; obj73.Steps = list134; reference93 = obj73; - ref QuestSequence reference98 = ref span82[3]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span87 = CollectionsMarshal.AsSpan(list139); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369823,13 +447027,16 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list140); + index = 0; + span[index] = "liza"; questRoot16.Author = list140; - num = 4; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span88 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference99 = ref span88[0]; + index = 4; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + span2 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -369837,29 +447044,35 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span89 = CollectionsMarshal.AsSpan(list142); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span89[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj77.Steps = list142; reference99 = obj77; - ref QuestSequence reference100 = ref span88[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) { Fly = true }; obj78.Steps = list143; reference100 = obj78; - ref QuestSequence reference101 = ref span88[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -369867,92 +447080,122 @@ public static class AssemblyQuestLoader num2 = 3; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span90 = CollectionsMarshal.AsSpan(list144); - ref QuestStep reference102 = ref span90[0]; + span3 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + ref QuestStep reference102 = ref span3[num3]; QuestStep obj80 = new QuestStep(EInteractionType.Action, 1052328u, new Vector3(171.6792f, 16.762953f, -112.44379f), 1188) { Fly = true, Action = EAction.BosomBrook }; - num3 = 6; - List> list145 = new List>(num3); - CollectionsMarshal.SetCount(list145, num3); - Span> span91 = CollectionsMarshal.AsSpan(list145); - span91[0] = null; - span91[1] = null; - ref List reference103 = ref span91[2]; - num4 = 1; - List list146 = new List(num4); - CollectionsMarshal.SetCount(list146, num4); - CollectionsMarshal.AsSpan(list146)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + index2 = 6; + List> list145 = new List>(index2); + CollectionsMarshal.SetCount(list145, index2); + span5 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference103 = ref span5[num4]; + num5 = 1; + List list146 = new List(num5); + CollectionsMarshal.SetCount(list146, num5); + span6 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference103 = list146; - span91[3] = null; - span91[4] = null; - span91[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj80.RequiredQuestVariables = list145; reference102 = obj80; - ref QuestStep reference104 = ref span90[1]; + num3++; + ref QuestStep reference104 = ref span3[num3]; QuestStep obj81 = new QuestStep(EInteractionType.Action, 1052329u, new Vector3(216.7544f, 16.31888f, -99.687195f), 1188) { Fly = true, Action = EAction.BosomBrook }; - num3 = 6; - List> list147 = new List>(num3); - CollectionsMarshal.SetCount(list147, num3); - Span> span92 = CollectionsMarshal.AsSpan(list147); - span92[0] = null; - span92[1] = null; - ref List reference105 = ref span92[2]; - num4 = 1; - List list148 = new List(num4); - CollectionsMarshal.SetCount(list148, num4); - CollectionsMarshal.AsSpan(list148)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list147 = new List>(num4); + CollectionsMarshal.SetCount(list147, num4); + span5 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference105 = ref span5[index2]; + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span6 = CollectionsMarshal.AsSpan(list148); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference105 = list148; - span92[3] = null; - span92[4] = null; - span92[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj81.RequiredQuestVariables = list147; reference104 = obj81; - ref QuestStep reference106 = ref span90[2]; + num3++; + ref QuestStep reference106 = ref span3[num3]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 1052327u, new Vector3(186.38892f, 21.742897f, -74.47931f), 1188) { Fly = true, Action = EAction.BosomBrook }; - num3 = 6; - List> list149 = new List>(num3); - CollectionsMarshal.SetCount(list149, num3); - Span> span93 = CollectionsMarshal.AsSpan(list149); - span93[0] = null; - span93[1] = null; - ref List reference107 = ref span93[2]; - num4 = 1; - List list150 = new List(num4); - CollectionsMarshal.SetCount(list150, num4); - CollectionsMarshal.AsSpan(list150)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2 = 6; + List> list149 = new List>(index2); + CollectionsMarshal.SetCount(list149, index2); + span5 = CollectionsMarshal.AsSpan(list149); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference107 = ref span5[num4]; + num5 = 1; + List list150 = new List(num5); + CollectionsMarshal.SetCount(list150, num5); + span6 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference107 = list150; - span93[3] = null; - span93[4] = null; - span93[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj82.RequiredQuestVariables = list149; reference106 = obj82; obj79.Steps = list144; reference101 = obj79; - ref QuestSequence reference108 = ref span88[3]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span94 = CollectionsMarshal.AsSpan(list151); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369965,13 +447208,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list152); + index = 0; + span[index] = "liza"; questRoot17.Author = list152; - num = 3; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span95 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference109 = ref span95[0]; + index = 3; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + span2 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -369979,111 +447225,148 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span96 = CollectionsMarshal.AsSpan(list154); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span96[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj84.Steps = list154; reference109 = obj84; - ref QuestSequence reference110 = ref span95[1]; + num++; + ref QuestSequence reference110 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span97 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference111 = ref span97[0]; + num3 = 3; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, 2014500u, new Vector3(-217.15118f, 109.57495f, 562.005f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = 18175u; - obj86.KillEnemyDataIds = list156; - num3 = 6; - List> list157 = new List>(num3); - CollectionsMarshal.SetCount(list157, num3); - Span> span98 = CollectionsMarshal.AsSpan(list157); - span98[0] = null; - span98[1] = null; - ref List reference112 = ref span98[2]; num4 = 1; - List list158 = new List(num4); - CollectionsMarshal.SetCount(list158, num4); - CollectionsMarshal.AsSpan(list158)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + span4 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span4[index2] = 18175u; + obj86.KillEnemyDataIds = list156; + index2 = 6; + List> list157 = new List>(index2); + CollectionsMarshal.SetCount(list157, index2); + span5 = CollectionsMarshal.AsSpan(list157); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference112 = ref span5[num4]; + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span6 = CollectionsMarshal.AsSpan(list158); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference112 = list158; - span98[3] = null; - span98[4] = null; - span98[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj86.RequiredQuestVariables = list157; reference111 = obj86; - ref QuestStep reference113 = ref span97[1]; + num2++; + ref QuestStep reference113 = ref span3[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2014501u, new Vector3(-171.95392f, 109.57495f, 652.09424f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = 18175u; - obj87.KillEnemyDataIds = list159; - num3 = 6; - List> list160 = new List>(num3); - CollectionsMarshal.SetCount(list160, num3); - Span> span99 = CollectionsMarshal.AsSpan(list160); - span99[0] = null; - span99[1] = null; - ref List reference114 = ref span99[2]; num4 = 1; - List list161 = new List(num4); - CollectionsMarshal.SetCount(list161, num4); - CollectionsMarshal.AsSpan(list161)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + List list159 = new List(num4); + CollectionsMarshal.SetCount(list159, num4); + span4 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span4[index2] = 18175u; + obj87.KillEnemyDataIds = list159; + index2 = 6; + List> list160 = new List>(index2); + CollectionsMarshal.SetCount(list160, index2); + span5 = CollectionsMarshal.AsSpan(list160); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference114 = ref span5[num4]; + num5 = 1; + List list161 = new List(num5); + CollectionsMarshal.SetCount(list161, num5); + span6 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference114 = list161; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj87.RequiredQuestVariables = list160; reference113 = obj87; - ref QuestStep reference115 = ref span97[2]; + num2++; + ref QuestStep reference115 = ref span3[num2]; QuestStep obj88 = new QuestStep(EInteractionType.Combat, 2014502u, new Vector3(-126.756714f, 109.57495f, 765.68225f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 18175u; - obj88.KillEnemyDataIds = list162; - num3 = 6; - List> list163 = new List>(num3); - CollectionsMarshal.SetCount(list163, num3); - Span> span100 = CollectionsMarshal.AsSpan(list163); - span100[0] = null; - span100[1] = null; - ref List reference116 = ref span100[2]; num4 = 1; - List list164 = new List(num4); - CollectionsMarshal.SetCount(list164, num4); - CollectionsMarshal.AsSpan(list164)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + span4 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span4[index2] = 18175u; + obj88.KillEnemyDataIds = list162; + index2 = 6; + List> list163 = new List>(index2); + CollectionsMarshal.SetCount(list163, index2); + span5 = CollectionsMarshal.AsSpan(list163); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference116 = ref span5[num4]; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span6 = CollectionsMarshal.AsSpan(list164); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference116 = list164; - span100[3] = null; - span100[4] = null; - span100[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj88.RequiredQuestVariables = list163; reference115 = obj88; obj85.Steps = list155; reference110 = obj85; - ref QuestSequence reference117 = ref span95[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -370091,12 +447374,14 @@ public static class AssemblyQuestLoader num2 = 2; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span101 = CollectionsMarshal.AsSpan(list165); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370109,29 +447394,35 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "liza"; questRoot18.Author = list166; - num = 3; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span102 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference118 = ref span102[0]; + index = 3; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span103 = CollectionsMarshal.AsSpan(list168); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span103[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj90.Steps = list168; reference118 = obj90; - ref QuestSequence reference119 = ref span102[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -370139,27 +447430,32 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) + span3 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj91.Steps = list169; reference119 = obj91; - ref QuestSequence reference120 = ref span102[2]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span104 = CollectionsMarshal.AsSpan(list170); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370172,13 +447468,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list171); + index = 0; + span[index] = "liza"; questRoot19.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span105 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference121 = ref span105[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + span2 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -370186,24 +447485,28 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span106 = CollectionsMarshal.AsSpan(list173); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span106[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj93.Steps = list173; reference121 = obj93; - ref QuestSequence reference122 = ref span105[1]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span107 = CollectionsMarshal.AsSpan(list174); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(971.48047f, 7.1923084f, -254.86214f), 1188) + num3 = 2; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(971.48047f, 7.1923084f, -254.86214f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -370220,10 +447523,12 @@ public static class AssemblyQuestLoader } } }; - span107[1] = new QuestStep(EInteractionType.Interact, 1052331u, new Vector3(973.84595f, 7.192305f, -254.87152f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052331u, new Vector3(973.84595f, 7.192305f, -254.87152f), 1188); obj94.Steps = list174; reference122 = obj94; - ref QuestSequence reference123 = ref span105[2]; + num++; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -370231,26 +447536,31 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1052332u, new Vector3(978.027f, 7.1869507f, -257.3739f), 1188) + span3 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052332u, new Vector3(978.027f, 7.1869507f, -257.3739f), 1188) { StopDistance = 8f }; obj95.Steps = list175; reference123 = obj95; - ref QuestSequence reference124 = ref span105[3]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span108 = CollectionsMarshal.AsSpan(list176); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + span3 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370263,13 +447573,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list177); + index = 0; + span[index] = "liza"; questRoot20.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span109 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference125 = ref span109[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + span2 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -370277,77 +447590,102 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span110 = CollectionsMarshal.AsSpan(list179); - span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span110[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj97.Steps = list179; reference125 = obj97; - ref QuestSequence reference126 = ref span109[1]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span111 = CollectionsMarshal.AsSpan(list180); - ref QuestStep reference127 = ref span111[0]; + num3 = 3; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + ref QuestStep reference127 = ref span3[num2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1052333u, new Vector3(775.1736f, 12.871736f, -196.0022f), 1188) { Fly = true }; - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span112 = CollectionsMarshal.AsSpan(list181); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + span6 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list181; reference127 = obj99; - ref QuestStep reference128 = ref span111[1]; + num2++; + ref QuestStep reference128 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1052335u, new Vector3(867.76526f, 14.402381f, -171.31305f), 1188) { Fly = true }; - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span113 = CollectionsMarshal.AsSpan(list182); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + span6 = CollectionsMarshal.AsSpan(list182); + 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); obj100.CompletionQuestVariablesFlags = list182; reference128 = obj100; - ref QuestStep reference129 = ref span111[2]; + num2++; + ref QuestStep reference129 = ref span3[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1052334u, new Vector3(864.5609f, 15.056413f, -256.27533f), 1188) { Fly = true }; - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span114 = CollectionsMarshal.AsSpan(list183); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + span6 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list183; reference129 = obj101; obj98.Steps = list180; reference126 = obj98; - ref QuestSequence reference130 = ref span109[2]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -370355,26 +447693,31 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1052336u, new Vector3(838.4375f, 14.301746f, -222.06458f), 1188) + span3 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052336u, new Vector3(838.4375f, 14.301746f, -222.06458f), 1188) { Fly = true }; obj102.Steps = list184; reference130 = obj102; - ref QuestSequence reference131 = ref span109[3]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span115 = CollectionsMarshal.AsSpan(list185); - span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + span3 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370387,13 +447730,16 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list186); + index = 0; + span[index] = "liza"; questRoot21.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span116 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference132 = ref span116[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + span2 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -370401,24 +447747,28 @@ public static class AssemblyQuestLoader num2 = 2; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span117 = CollectionsMarshal.AsSpan(list188); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj104.Steps = list188; reference132 = obj104; - ref QuestSequence reference133 = ref span116[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span118 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference134 = ref span118[0]; + num3 = 3; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + ref QuestStep reference134 = ref span3[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2014504u, new Vector3(-232.22711f, 120.25635f, 26.199707f), 1188) { Fly = true, @@ -370426,89 +447776,122 @@ public static class AssemblyQuestLoader ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 18176u; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span4 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span4[num4] = 18176u; obj106.KillEnemyDataIds = list190; - num3 = 6; - List> list191 = new List>(num3); - CollectionsMarshal.SetCount(list191, num3); - Span> span119 = CollectionsMarshal.AsSpan(list191); - span119[0] = null; - span119[1] = null; - span119[2] = null; - ref List reference135 = ref span119[3]; - num4 = 1; - List list192 = new List(num4); - CollectionsMarshal.SetCount(list192, num4); - CollectionsMarshal.AsSpan(list192)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list191 = new List>(num4); + CollectionsMarshal.SetCount(list191, num4); + span5 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference135 = ref span5[index2]; + num5 = 1; + List list192 = new List(num5); + CollectionsMarshal.SetCount(list192, num5); + span6 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference135 = list192; - span119[4] = null; - span119[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj106.RequiredQuestVariables = list191; reference134 = obj106; - ref QuestStep reference136 = ref span118[1]; + num2++; + ref QuestStep reference136 = ref span3[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2014503u, new Vector3(-134.29468f, 120.62256f, 41.000854f), 1188) { Fly = true, ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 18176u; + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span4 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span4[num4] = 18176u; obj107.KillEnemyDataIds = list193; - num3 = 6; - List> list194 = new List>(num3); - CollectionsMarshal.SetCount(list194, num3); - Span> span120 = CollectionsMarshal.AsSpan(list194); - span120[0] = null; - span120[1] = null; - span120[2] = null; - ref List reference137 = ref span120[3]; - num4 = 1; - List list195 = new List(num4); - CollectionsMarshal.SetCount(list195, num4); - CollectionsMarshal.AsSpan(list195)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list194 = new List>(num4); + CollectionsMarshal.SetCount(list194, num4); + span5 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference137 = ref span5[index2]; + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + span6 = CollectionsMarshal.AsSpan(list195); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference137 = list195; - span120[4] = null; - span120[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj107.RequiredQuestVariables = list194; reference136 = obj107; - ref QuestStep reference138 = ref span118[2]; + num2++; + ref QuestStep reference138 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2014505u, new Vector3(-292.28656f, 119.46289f, 17.959839f), 1188) { Fly = true, ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = 18176u; + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span4 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span4[num4] = 18176u; obj108.KillEnemyDataIds = list196; - num3 = 6; - List> list197 = new List>(num3); - CollectionsMarshal.SetCount(list197, num3); - Span> span121 = CollectionsMarshal.AsSpan(list197); - span121[0] = null; - span121[1] = null; - span121[2] = null; - ref List reference139 = ref span121[3]; - num4 = 1; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - CollectionsMarshal.AsSpan(list198)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list197 = new List>(num4); + CollectionsMarshal.SetCount(list197, num4); + span5 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; + index2++; + ref List reference139 = ref span5[index2]; + num5 = 1; + List list198 = new List(num5); + CollectionsMarshal.SetCount(list198, num5); + span6 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference139 = list198; - span121[4] = null; - span121[5] = null; + index2++; + span5[index2] = null; + index2++; + span5[index2] = null; obj108.RequiredQuestVariables = list197; reference138 = obj108; obj105.Steps = list189; reference133 = obj105; - ref QuestSequence reference140 = ref span116[2]; + num++; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -370516,27 +447899,31 @@ public static class AssemblyQuestLoader num2 = 2; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span122 = CollectionsMarshal.AsSpan(list199); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + span3 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span122[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj109.Steps = list199; reference140 = obj109; - ref QuestSequence reference141 = ref span116[3]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - Span span123 = CollectionsMarshal.AsSpan(list200); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -370552,7 +447939,8 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370565,13 +447953,16 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list201); + index = 0; + span[index] = "liza"; questRoot22.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span124 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference142 = ref span124[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + span2 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference142 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -370579,39 +447970,46 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span125 = CollectionsMarshal.AsSpan(list203); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span125[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj111.Steps = list203; reference142 = obj111; - ref QuestSequence reference143 = ref span124[1]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list204)[0]; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference144 = ref span3[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1052337u, new Vector3(479.14844f, 113.54922f, 175.37183f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num3 = 2; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span126 = CollectionsMarshal.AsSpan(list205); - span126[0] = new DialogueChoice + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + span7 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL123_05221_Q1_000_000"), Answer = new ExcelRef("TEXT_BANPEL123_05221_A1_000_003") }; - span126[1] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL123_05221_Q2_000_000"), @@ -370621,7 +448019,8 @@ public static class AssemblyQuestLoader reference144 = obj113; obj112.Steps = list204; reference143 = obj112; - ref QuestSequence reference145 = ref span124[2]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -370629,12 +448028,14 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span127 = CollectionsMarshal.AsSpan(list206); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + span3 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370647,29 +448048,35 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list207); + index = 0; + span[index] = "liza"; questRoot23.Author = list207; - num = 5; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span128 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference146 = ref span128[0]; + index = 5; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + span2 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span129 = CollectionsMarshal.AsSpan(list209); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj115.Steps = list209; reference146 = obj115; - ref QuestSequence reference147 = ref span128[1]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -370677,7 +448084,9 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1052339u, new Vector3(910.3379f, 10.1397f, -381.36877f), 1188) + span3 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052339u, new Vector3(910.3379f, 10.1397f, -381.36877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -370696,18 +448105,22 @@ public static class AssemblyQuestLoader }; obj116.Steps = list210; reference147 = obj116; - ref QuestSequence reference148 = ref span128[2]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 2014506u, new Vector3(910.3379f, 10.421875f, -379.01886f), 1188); + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + span3 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014506u, new Vector3(910.3379f, 10.421875f, -379.01886f), 1188); obj117.Steps = list211; reference148 = obj117; - ref QuestSequence reference149 = ref span128[3]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 @@ -370715,19 +448128,23 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1052340u, new Vector3(789.9137f, 14.354868f, -215.77783f), 1188); + span3 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052340u, new Vector3(789.9137f, 14.354868f, -215.77783f), 1188); obj118.Steps = list212; reference149 = obj118; - ref QuestSequence reference150 = ref span128[4]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span130 = CollectionsMarshal.AsSpan(list213); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + span3 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -370743,7 +448160,8 @@ public static class AssemblyQuestLoader } } }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370756,13 +448174,16 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list214); + index = 0; + span[index] = "liza"; questRoot24.Author = list214; - num = 4; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span131 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference151 = ref span131[0]; + index = 4; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + span2 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -370770,24 +448191,28 @@ public static class AssemblyQuestLoader num2 = 2; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span132 = CollectionsMarshal.AsSpan(list216); - span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span132[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj120.Steps = list216; reference151 = obj120; - ref QuestSequence reference152 = ref span131[1]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span133 = CollectionsMarshal.AsSpan(list217); - span133[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + num3 = 2; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -370803,13 +448228,15 @@ public static class AssemblyQuestLoader } } }; - span133[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj121.Steps = list217; reference152 = obj121; - ref QuestSequence reference153 = ref span131[2]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -370817,27 +448244,32 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1052341u, new Vector3(239.49023f, 111.689354f, 699.3667f), 1188) + span3 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052341u, new Vector3(239.49023f, 111.689354f, 699.3667f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj122.Steps = list218; reference153 = obj122; - ref QuestSequence reference154 = ref span131[3]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span134 = CollectionsMarshal.AsSpan(list219); - span134[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span134[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370850,13 +448282,16 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list220); + index = 0; + span[index] = "liza"; questRoot25.Author = list220; - num = 4; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span135 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference155 = ref span135[0]; + index = 4; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + span2 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -370864,111 +448299,148 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span136 = CollectionsMarshal.AsSpan(list222); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span136[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj124.Steps = list222; reference155 = obj124; - ref QuestSequence reference156 = ref span135[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span137 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference157 = ref span137[0]; + num3 = 3; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference157 = ref span3[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2014508u, new Vector3(566.1554f, 123.552246f, 700.4043f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 18177u; - obj126.KillEnemyDataIds = list224; - num3 = 6; - List> list225 = new List>(num3); - CollectionsMarshal.SetCount(list225, num3); - Span> span138 = CollectionsMarshal.AsSpan(list225); - span138[0] = null; - span138[1] = null; - ref List reference158 = ref span138[2]; num4 = 1; - List list226 = new List(num4); - CollectionsMarshal.SetCount(list226, num4); - CollectionsMarshal.AsSpan(list226)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + span4 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span4[index2] = 18177u; + obj126.KillEnemyDataIds = list224; + index2 = 6; + List> list225 = new List>(index2); + CollectionsMarshal.SetCount(list225, index2); + span5 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference158 = ref span5[num4]; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + span6 = CollectionsMarshal.AsSpan(list226); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference158 = list226; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj126.RequiredQuestVariables = list225; reference157 = obj126; - ref QuestStep reference159 = ref span137[1]; + num2++; + ref QuestStep reference159 = ref span3[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2014509u, new Vector3(557.94604f, 124.65088f, 778.56104f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 18177u; - obj127.KillEnemyDataIds = list227; - num3 = 6; - List> list228 = new List>(num3); - CollectionsMarshal.SetCount(list228, num3); - Span> span139 = CollectionsMarshal.AsSpan(list228); - span139[0] = null; - span139[1] = null; - ref List reference160 = ref span139[2]; num4 = 1; - List list229 = new List(num4); - CollectionsMarshal.SetCount(list229, num4); - CollectionsMarshal.AsSpan(list229)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + span4 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span4[index2] = 18177u; + obj127.KillEnemyDataIds = list227; + index2 = 6; + List> list228 = new List>(index2); + CollectionsMarshal.SetCount(list228, index2); + span5 = CollectionsMarshal.AsSpan(list228); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference160 = ref span5[num4]; + num5 = 1; + List list229 = new List(num5); + CollectionsMarshal.SetCount(list229, num5); + span6 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span6[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference160 = list229; - span139[3] = null; - span139[4] = null; - span139[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj127.RequiredQuestVariables = list228; reference159 = obj127; - ref QuestStep reference161 = ref span137[2]; + num2++; + ref QuestStep reference161 = ref span3[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2014507u, new Vector3(721.8584f, 123.09448f, 729.9762f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 18177u; - obj128.KillEnemyDataIds = list230; - num3 = 6; - List> list231 = new List>(num3); - CollectionsMarshal.SetCount(list231, num3); - Span> span140 = CollectionsMarshal.AsSpan(list231); - span140[0] = null; - span140[1] = null; - ref List reference162 = ref span140[2]; num4 = 1; - List list232 = new List(num4); - CollectionsMarshal.SetCount(list232, num4); - CollectionsMarshal.AsSpan(list232)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + List list230 = new List(num4); + CollectionsMarshal.SetCount(list230, num4); + span4 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span4[index2] = 18177u; + obj128.KillEnemyDataIds = list230; + index2 = 6; + List> list231 = new List>(index2); + CollectionsMarshal.SetCount(list231, index2); + span5 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference162 = ref span5[num4]; + index3 = 1; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + span6 = CollectionsMarshal.AsSpan(list232); + num5 = 0; + span6[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference162 = list232; - span140[3] = null; - span140[4] = null; - span140[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj128.RequiredQuestVariables = list231; reference161 = obj128; obj125.Steps = list223; reference156 = obj125; - ref QuestSequence reference163 = ref span135[2]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -370976,26 +448448,31 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1052443u, new Vector3(641.8097f, 122.10785f, 730.70874f), 1188) + span3 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052443u, new Vector3(641.8097f, 122.10785f, 730.70874f), 1188) { Fly = true }; obj129.Steps = list233; reference163 = obj129; - ref QuestSequence reference164 = ref span135[3]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span141 = CollectionsMarshal.AsSpan(list234); - span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span141[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -371008,13 +448485,16 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list235); + index = 0; + span[index] = "liza"; questRoot26.Author = list235; - num = 4; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span142 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference165 = ref span142[0]; + index = 4; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + span2 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -371022,79 +448502,104 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span143 = CollectionsMarshal.AsSpan(list237); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span143[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj131.Steps = list237; reference165 = obj131; - ref QuestSequence reference166 = ref span142[1]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span144 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference167 = ref span144[0]; + num3 = 3; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + span3 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference167 = ref span3[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014511u, new Vector3(226.85583f, 2.9450073f, -199.6643f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span145 = CollectionsMarshal.AsSpan(list239); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + span6 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list239; reference167 = obj133; - ref QuestStep reference168 = ref span144[1]; + num2++; + ref QuestStep reference168 = ref span3[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014510u, new Vector3(218.1582f, 2.2124634f, -184.92413f), 1188) { StopDistance = 1f }; - num3 = 6; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span146 = CollectionsMarshal.AsSpan(list240); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span6 = CollectionsMarshal.AsSpan(list240); + 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); obj134.CompletionQuestVariablesFlags = list240; reference168 = obj134; - ref QuestStep reference169 = ref span144[2]; + num2++; + ref QuestStep reference169 = ref span3[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014512u, new Vector3(61.53955f, 8.102478f, -230.79272f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span147 = CollectionsMarshal.AsSpan(list241); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list241 = new List(num4); + CollectionsMarshal.SetCount(list241, num4); + span6 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list241; reference169 = obj135; obj132.Steps = list238; reference166 = obj132; - ref QuestSequence reference170 = ref span142[2]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -371102,27 +448607,31 @@ public static class AssemblyQuestLoader num2 = 2; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span148 = CollectionsMarshal.AsSpan(list242); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + span3 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span148[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj136.Steps = list242; reference170 = obj136; - ref QuestSequence reference171 = ref span142[3]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span149 = CollectionsMarshal.AsSpan(list243); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + span3 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -371139,7 +448648,8 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -371152,13 +448662,16 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "liza"; questRoot27.Author = list244; - num = 4; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span150 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference172 = ref span150[0]; + index = 4; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + span2 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -371166,23 +448679,28 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span151 = CollectionsMarshal.AsSpan(list246); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span151[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj138.Steps = list246; reference172 = obj138; - ref QuestSequence reference173 = ref span150[1]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + span3 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -371201,7 +448719,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list247; reference173 = obj139; - ref QuestSequence reference174 = ref span150[2]; + num++; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -371209,27 +448728,32 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Action, 1052345u, new Vector3(908.50684f, 5.7142797f, -337.85004f), 1188) + span3 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Action, 1052345u, new Vector3(908.50684f, 5.7142797f, -337.85004f), 1188) { Fly = true, Action = EAction.BosomBrook }; obj140.Steps = list248; reference174 = obj140; - ref QuestSequence reference175 = ref span150[3]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span152 = CollectionsMarshal.AsSpan(list249); - span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -371242,15 +448766,18 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "Starr"; + span = CollectionsMarshal.AsSpan(list250); + index = 0; + span[index] = "Starr"; questRoot28.Author = list250; questRoot28.IsSeasonalQuest = true; questRoot28.SeasonalQuestExpiry = new DateTime(2024, 12, 31, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span153 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference176 = ref span153[0]; + index = 6; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + span2 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference176 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -371258,7 +448785,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051801u, new Vector3(-49.485046f, 6.499997f, -90.348694f), 133) + span3 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051801u, new Vector3(-49.485046f, 6.499997f, -90.348694f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -371269,20 +448798,25 @@ public static class AssemblyQuestLoader }; obj142.Steps = list252; reference176 = obj142; - ref QuestSequence reference177 = ref span153[1]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list253)[0]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051808u, new Vector3(-53.60504f, 5.772882f, -99.931335f), 133); num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new DialogueChoice + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref QuestStep reference178 = ref span3[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051808u, new Vector3(-53.60504f, 5.772882f, -99.931335f), 133); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + span7 = CollectionsMarshal.AsSpan(list254); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESXMX001_05227_SYSTEM_000_025") @@ -371291,7 +448825,8 @@ public static class AssemblyQuestLoader reference178 = questStep7; obj143.Steps = list253; reference177 = obj143; - ref QuestSequence reference179 = ref span153[2]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -371299,63 +448834,88 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1051803u, new Vector3(33.951294f, -0.36796698f, 24.185547f), 1247); + span3 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051803u, new Vector3(33.951294f, -0.36796698f, 24.185547f), 1247); obj144.Steps = list255; reference179 = obj144; - ref QuestSequence reference180 = ref span153[3]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span154 = CollectionsMarshal.AsSpan(list256); - ref QuestStep reference181 = ref span154[0]; + num3 = 3; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + ref QuestStep reference181 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1051816u, new Vector3(18.142944f, 0.0028544795f, -0.289917f), 1247); - num3 = 6; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span155 = CollectionsMarshal.AsSpan(list257); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list257 = new List(num4); + CollectionsMarshal.SetCount(list257, num4); + span6 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list257; reference181 = questStep8; - ref QuestStep reference182 = ref span154[1]; + num2++; + ref QuestStep reference182 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1052469u, new Vector3(-15.640564f, 0.0026466753f, 18.142944f), 1247); - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span156 = CollectionsMarshal.AsSpan(list258); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + span6 = CollectionsMarshal.AsSpan(list258); + 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); questStep9.CompletionQuestVariablesFlags = list258; reference182 = questStep9; - ref QuestStep reference183 = ref span154[2]; + num2++; + ref QuestStep reference183 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1051813u, new Vector3(-5.1118164f, 1.21852545E-05f, -31.99823f), 1247); - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span157 = CollectionsMarshal.AsSpan(list259); - span157[0] = null; - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list259 = new List(num4); + CollectionsMarshal.SetCount(list259, num4); + span6 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list259; reference183 = questStep10; obj145.Steps = list256; reference180 = obj145; - ref QuestSequence reference184 = ref span153[4]; + num++; + ref QuestSequence reference184 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 4 @@ -371363,18 +448923,23 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1051804u, new Vector3(-3.4943848f, 0.0028544795f, -18.417664f), 1247); + span3 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051804u, new Vector3(-3.4943848f, 0.0028544795f, -18.417664f), 1247); obj146.Steps = list260; reference184 = obj146; - ref QuestSequence reference185 = ref span153[5]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247) + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247) { NextQuestId = new QuestId(5228) }; @@ -371387,15 +448952,18 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "Starr"; + span = CollectionsMarshal.AsSpan(list262); + index = 0; + span[index] = "Starr"; questRoot29.Author = list262; questRoot29.IsSeasonalQuest = true; questRoot29.SeasonalQuestExpiry = new DateTime(2024, 12, 31, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span158 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference186 = ref span158[0]; + index = 8; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + span2 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -371403,24 +448971,30 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247); + span3 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247); obj148.Steps = list264; reference186 = obj148; - ref QuestSequence reference187 = ref span158[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1051822u, new Vector3(61.478516f, -7.7123985f, 98.98523f), 132) + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051822u, new Vector3(61.478516f, -7.7123985f, 98.98523f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj149.Steps = list265; reference187 = obj149; - ref QuestSequence reference188 = ref span158[2]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -371428,8 +449002,9 @@ public static class AssemblyQuestLoader num2 = 2; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span159 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference189 = ref span159[0]; + span3 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + ref QuestStep reference189 = ref span3[num3]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1051807u, new Vector3(-53.635498f, 5.793307f, -99.931335f), 133) { TargetTerritoryId = (ushort)1247, @@ -371445,29 +449020,36 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 132; + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span8 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span8[num4] = 132; obj152.InTerritory = list267; skipConditions.AetheryteShortcutIf = obj152; obj151.SkipConditions = skipConditions; reference189 = obj151; - span159[1] = new QuestStep(EInteractionType.Interact, 1051823u, new Vector3(34.164917f, -0.37309912f, 23.605652f), 1247); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051823u, new Vector3(34.164917f, -0.37309912f, 23.605652f), 1247); obj150.Steps = list266; reference188 = obj150; - ref QuestSequence reference190 = ref span158[3]; + num++; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1051833u, new Vector3(35.568726f, -0.24490167f, 21.560913f), 1247); + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + span3 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051833u, new Vector3(35.568726f, -0.24490167f, 21.560913f), 1247); obj153.Steps = list268; reference190 = obj153; - ref QuestSequence reference191 = ref span158[4]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 4 @@ -371475,63 +449057,88 @@ public static class AssemblyQuestLoader num2 = 3; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span160 = CollectionsMarshal.AsSpan(list269); - ref QuestStep reference192 = ref span160[0]; + span3 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + ref QuestStep reference192 = ref span3[num3]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1051816u, new Vector3(18.142944f, 0.0028544795f, -0.289917f), 1247); - num3 = 6; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span161 = CollectionsMarshal.AsSpan(list270); - span161[0] = null; - span161[1] = null; - span161[2] = null; - span161[3] = null; - span161[4] = null; - span161[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + span6 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list270; reference192 = questStep11; - ref QuestStep reference193 = ref span160[1]; + num3++; + ref QuestStep reference193 = ref span3[num3]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1051809u, new Vector3(-15.823608f, 0.0028544795f, 9.84198f), 1247); - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span162 = CollectionsMarshal.AsSpan(list271); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span6 = CollectionsMarshal.AsSpan(list271); + 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); questStep12.CompletionQuestVariablesFlags = list271; reference193 = questStep12; - ref QuestStep reference194 = ref span160[2]; + num3++; + ref QuestStep reference194 = ref span3[num3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1051813u, new Vector3(-5.1118164f, 1.21852545E-05f, -31.99823f), 1247); - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span163 = CollectionsMarshal.AsSpan(list272); - span163[0] = null; - span163[1] = null; - span163[2] = null; - span163[3] = null; - span163[4] = null; - span163[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list272 = new List(num4); + CollectionsMarshal.SetCount(list272, num4); + span6 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list272; reference194 = questStep13; obj154.Steps = list269; reference191 = obj154; - ref QuestSequence reference195 = ref span158[5]; + num++; + ref QuestSequence reference195 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1051825u, new Vector3(-1.7853394f, 2.0028546f, -86.38135f), 1247); + num3 = 1; + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051825u, new Vector3(-1.7853394f, 2.0028546f, -86.38135f), 1247); obj155.Steps = list273; reference195 = obj155; - ref QuestSequence reference196 = ref span158[6]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 6 @@ -371539,41 +449146,47 @@ public static class AssemblyQuestLoader num2 = 2; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span164 = CollectionsMarshal.AsSpan(list274); - span164[0] = new QuestStep(EInteractionType.Interact, 2014535u, new Vector3(67.88733f, -0.77819824f, 51.224487f), 1247) + span3 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2014535u, new Vector3(67.88733f, -0.77819824f, 51.224487f), 1247) { TargetTerritoryId = (ushort)133 }; - span164[1] = new QuestStep(EInteractionType.Interact, 1051802u, new Vector3(-50.06488f, 6.499999f, -89.58569f), 133); + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051802u, new Vector3(-50.06488f, 6.499999f, -89.58569f), 133); obj156.Steps = list274; reference196 = obj156; - ref QuestSequence reference197 = ref span158[7]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051805u, new Vector3(33.401978f, -0.31104973f, 22.079773f), 1253); + num3 = 1; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051805u, new Vector3(33.401978f, -0.31104973f, 22.079773f), 1253); obj157.Steps = list275; reference197 = obj157; questRoot29.QuestSequence = list263; AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(5229); + QuestId questId30 = new QuestId(5233); QuestRoot questRoot30 = new QuestRoot(); num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list276); + index = 0; + span[index] = "liza"; questRoot30.Author = list276; - questRoot30.IsSeasonalQuest = true; - questRoot30.SeasonalQuestExpiry = new DateTime(2026, 1, 15, 14, 59, 0, DateTimeKind.Utc); - num = 6; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span165 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference198 = ref span165[0]; + index = 6; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + span2 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -371581,750 +449194,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Limsa, - To = EAetheryteLocation.LimsaAftcastle - } - }; - SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; - ref QuestSequence reference200 = ref span165[1]; - QuestSequence obj160 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1052388u, new Vector3(21.22528f, 39.99996f, 32.913696f), 128); - obj160.Steps = list280; - reference200 = obj160; - ref QuestSequence reference201 = ref span165[2]; - QuestSequence obj161 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1052387u, new Vector3(22.690125f, 39.999985f, 30.71643f), 128); - obj161.Steps = list281; - reference201 = obj161; - ref QuestSequence reference202 = ref span165[3]; - QuestSequence obj162 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); - obj162.Steps = list282; - reference202 = obj162; - ref QuestSequence reference203 = ref span165[4]; - QuestSequence obj163 = new QuestSequence - { - Sequence = 4 - }; - num2 = 2; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - 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); - 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; - span166[1] = new QuestStep(EInteractionType.Interact, 1052297u, new Vector3(-94.40759f, 40.999977f, -152.78864f), 128) - { - StopDistance = 6.1f, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.LimsaAftcastle, - To = EAetheryteLocation.LimsaCulinarian - } - }; - obj163.Steps = list283; - reference203 = obj163; - ref QuestSequence reference205 = ref span165[5]; - QuestSequence obj164 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.LimsaCulinarian, - To = EAetheryteLocation.LimsaAftcastle - }, - NextQuestId = new QuestId(5230) - }; - obj164.Steps = list285; - reference205 = obj164; - questRoot30.QuestSequence = list277; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(5230); - QuestRoot questRoot31 = new QuestRoot(); - num = 1; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "WigglyMuffin"; - questRoot31.Author = list286; - questRoot31.IsSeasonalQuest = true; - questRoot31.SeasonalQuestExpiry = new DateTime(2026, 1, 15, 14, 59, 0, DateTimeKind.Utc); - num = 6; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span168 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference206 = ref span168[0]; - QuestSequence obj165 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Limsa, - To = EAetheryteLocation.LimsaAftcastle - } - }; - SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - 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; - ref QuestSequence reference208 = ref span168[1]; - QuestSequence obj167 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1052295u, new Vector3(0.41192627f, 41.71661f, 140.33716f), 134) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.LimsaAftcastle, - To = EAetheryteLocation.LimsaZephyrGate - }, - SkipConditions = new SkipConditions - { - AethernetShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj167.Steps = list290; - reference208 = obj167; - ref QuestSequence reference209 = ref span168[2]; - QuestSequence obj168 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span169 = CollectionsMarshal.AsSpan(list291); - span169[0] = new QuestStep(EInteractionType.Interact, 1051866u, new Vector3(1.5411377f, 41.880928f, 140.67285f), 134); - span169[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.705452f, 43.45921f, 108.19539f), 134) - { - Mount = false - }; - span169[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134) - { - Mount = false - }; - obj168.Steps = list291; - reference209 = obj168; - ref QuestSequence reference210 = ref span168[3]; - QuestSequence obj169 = new QuestSequence - { - Sequence = 3 - }; - num2 = 3; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span170 = CollectionsMarshal.AsSpan(list292); - span170[0] = new QuestStep(EInteractionType.Interact, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134); - span170[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.27331f, 45.43442f, 89.30336f), 134) - { - Mount = false - }; - span170[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134) - { - Mount = false - }; - obj169.Steps = list292; - reference210 = obj169; - ref QuestSequence reference211 = ref span168[4]; - QuestSequence obj170 = new QuestSequence - { - Sequence = 4 - }; - num2 = 2; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span171 = CollectionsMarshal.AsSpan(list293); - span171[0] = new QuestStep(EInteractionType.Interact, 1051874u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134); - span171[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051874u, new Vector3(171.25195f, 60.953327f, 261.31067f), 134) - { - Mount = false - }; - obj170.Steps = list293; - reference211 = obj170; - ref QuestSequence reference212 = ref span168[5]; - QuestSequence obj171 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128); - obj171.Steps = list294; - reference212 = obj171; - questRoot31.QuestSequence = list287; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(5231); - QuestRoot questRoot32 = new QuestRoot(); - num = 1; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "WigglyMuffin"; - questRoot32.Author = list295; - questRoot32.IsSeasonalQuest = true; - questRoot32.SeasonalQuestExpiry = new DateTime(2025, 12, 31, 14, 59, 0, DateTimeKind.Utc); - num = 8; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span172 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference213 = ref span172[0]; - QuestSequence obj172 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipAetheryteCondition obj174 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference215 = ref span172[1]; - QuestSequence obj175 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list299)[0]; - QuestStep obj176 = new QuestStep(EInteractionType.Interact, 1054363u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) - { - TargetTerritoryId = (ushort)1309, - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions5 = new SkipConditions(); - SkipAetheryteCondition obj177 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference217 = ref span172[2]; - QuestSequence obj178 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - 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, - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions6 = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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 - }; - 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; - span175[1] = new QuestStep(EInteractionType.Interact, 1054362u, new Vector3(15.182739f, 0.0017376093f, -24.643372f), 1309); - obj178.Steps = list301; - reference217 = obj178; - ref QuestSequence reference219 = ref span172[3]; - QuestSequence obj181 = new QuestSequence - { - Sequence = 3 - }; - num2 = 3; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span177 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference220 = ref span177[0]; - QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1054367u, new Vector3(86.045654f, 5.995377f, -91.844055f), 133) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaLeatherworker - } - }; - SkipConditions skipConditions7 = new SkipConditions(); - SkipAetheryteCondition obj183 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - 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; - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaLeatherworker - } - }; - SkipConditions skipConditions8 = new SkipConditions(); - SkipAetheryteCondition obj185 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - 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; - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaLeatherworker - } - }; - SkipConditions skipConditions9 = new SkipConditions(); - SkipAetheryteCondition obj187 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference223 = ref span172[4]; - QuestSequence obj188 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - 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 - { - From = EAetheryteLocation.GridaniaLeatherworker, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipAetheryteCondition obj190 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference225 = ref span172[5]; - QuestSequence obj191 = new QuestSequence - { - Sequence = 5 - }; - num2 = 4; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span184 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference226 = ref span184[0]; - QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) - { - TargetTerritoryId = (ushort)1309, - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions11 = new SkipConditions(); - SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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 - }; - 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; - ref QuestStep reference227 = ref span184[1]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1054370u, new Vector3(-13.01593f, 0.0015269257f, 24.429688f), 1309); - num3 = 6; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - Span span186 = CollectionsMarshal.AsSpan(list315); - span186[0] = null; - span186[1] = null; - span186[2] = null; - span186[3] = null; - span186[4] = null; - span186[5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list315; - reference227 = questStep15; - ref QuestStep reference228 = ref span184[2]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1054369u, new Vector3(7.7973022f, 0.0028544795f, -15.701599f), 1309); - num3 = 6; - List list316 = new List(num3); - CollectionsMarshal.SetCount(list316, num3); - Span span187 = CollectionsMarshal.AsSpan(list316); - span187[0] = null; - span187[1] = null; - span187[2] = null; - span187[3] = null; - span187[4] = null; - span187[5] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list316; - reference228 = questStep16; - span184[3] = new QuestStep(EInteractionType.Interact, 1054371u, new Vector3(18.661804f, 2.0028546f, -93.0343f), 1309); - obj191.Steps = list312; - reference225 = obj191; - ref QuestSequence reference229 = ref span172[6]; - QuestSequence obj194 = new QuestSequence - { - Sequence = 6 - }; - num2 = 2; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - 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, - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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 - }; - 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; - ref QuestStep reference231 = ref span188[1]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1054374u, new Vector3(11.48999f, 0.0028544795f, -12.64978f), 1309); - num3 = 7; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span190 = CollectionsMarshal.AsSpan(list320); - span190[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q2_000_000"), - Answer = new ExcelRef("TEXT_FESXMX101_05231_A2_000_001") - }; - span190[1] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_FESXMX101_05231_SYSTEM_000_124") - }; - 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") - }; - 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") - }; - 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") - }; - 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") - }; - span190[6] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q7_000_000"), - Answer = new ExcelRef("TEXT_FESXMX101_05231_A7_000_002") - }; - questStep17.DialogueChoices = list320; - reference231 = questStep17; - obj194.Steps = list317; - reference229 = obj194; - ref QuestSequence reference232 = ref span172[7]; - QuestSequence obj197 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - ref QuestStep reference233 = ref CollectionsMarshal.AsSpan(list321)[0]; - QuestStep obj198 = new QuestStep(EInteractionType.CompleteQuest, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions13 = new SkipConditions(); - SkipAetheryteCondition obj199 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - reference233 = obj198; - obj197.Steps = list321; - reference232 = obj197; - questRoot32.QuestSequence = list296; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(5233); - QuestRoot questRoot33 = new QuestRoot(); - num = 1; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - CollectionsMarshal.AsSpan(list323)[0] = "liza"; - questRoot33.Author = list323; - num = 6; - List list324 = new List(num); - CollectionsMarshal.SetCount(list324, num); - Span span192 = CollectionsMarshal.AsSpan(list324); - ref QuestSequence reference234 = ref span192[0]; - QuestSequence obj200 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051950u, new Vector3(-15.335327f, -5.9003114E-09f, 31.3573f), 1185) + span3 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051950u, new Vector3(-15.335327f, -5.9003114E-09f, 31.3573f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -372335,271 +449207,342 @@ public static class AssemblyQuestLoader } } }; - obj200.Steps = list325; - reference234 = obj200; - ref QuestSequence reference235 = ref span192[1]; - QuestSequence obj201 = new QuestSequence + obj158.Steps = list278; + reference198 = obj158; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1052166u, new Vector3(567.6814f, -131.41925f, 610.1013f), 1189) + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + span3 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052166u, new Vector3(567.6814f, -131.41925f, 610.1013f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - obj201.Steps = list326; - reference235 = obj201; - ref QuestSequence reference236 = ref span192[2]; - QuestSequence obj202 = new QuestSequence + obj159.Steps = list279; + reference199 = obj159; + num++; + ref QuestSequence reference200 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 2014454u, new Vector3(-525.8412f, -158.37347f, 541.46643f), 1189) + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + span3 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2014454u, new Vector3(-525.8412f, -158.37347f, 541.46643f), 1189) { Fly = true }; - obj202.Steps = list327; - reference236 = obj202; - ref QuestSequence reference237 = ref span192[3]; - QuestSequence obj203 = new QuestSequence + obj160.Steps = list280; + reference200 = obj160; + num++; + ref QuestSequence reference201 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051954u, new Vector3(-531.57855f, -152.53433f, 645.777f), 1189); - obj203.Steps = list328; - reference237 = obj203; - ref QuestSequence reference238 = ref span192[4]; - QuestSequence obj204 = new QuestSequence + num3 = 1; + List list281 = new List(num3); + CollectionsMarshal.SetCount(list281, num3); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051954u, new Vector3(-531.57855f, -152.53433f, 645.777f), 1189); + obj161.Steps = list281; + reference201 = obj161; + num++; + ref QuestSequence reference202 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Duty, null, null, 1189) + List list282 = new List(num2); + CollectionsMarshal.SetCount(list282, num2); + span3 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Duty, null, null, 1189) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1015u } }; - obj204.Steps = list329; - reference238 = obj204; - ref QuestSequence reference239 = ref span192[5]; - QuestSequence obj205 = new QuestSequence + obj162.Steps = list282; + reference202 = obj162; + num++; + ref QuestSequence reference203 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051956u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) + num3 = 1; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + span3 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051956u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) { StopDistance = 7f, NextQuestId = new QuestId(5234) }; - obj205.Steps = list330; - reference239 = obj205; - questRoot33.QuestSequence = list324; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(5234); - QuestRoot questRoot34 = new QuestRoot(); + obj163.Steps = list283; + reference203 = obj163; + questRoot30.QuestSequence = list277; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(5234); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; - questRoot34.Author = list331; - num = 5; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span193 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference240 = ref span193[0]; - QuestSequence obj206 = new QuestSequence + List list284 = new List(num); + CollectionsMarshal.SetCount(list284, num); + span = CollectionsMarshal.AsSpan(list284); + index = 0; + span[index] = "liza"; + questRoot31.Author = list284; + index = 5; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + span2 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference204 = ref span2[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + span3 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) { StopDistance = 6f }; - obj206.Steps = list333; - reference240 = obj206; - ref QuestSequence reference241 = ref span193[1]; - QuestSequence obj207 = new QuestSequence + obj164.Steps = list286; + reference204 = obj164; + num++; + ref QuestSequence reference205 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + span3 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) { StopDistance = 6f }; - obj207.Steps = list334; - reference241 = obj207; - ref QuestSequence reference242 = ref span193[2]; - QuestSequence obj208 = new QuestSequence + obj165.Steps = list287; + reference205 = obj165; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 2 }; num2 = 4; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - 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); - 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; - ref QuestStep reference244 = ref span194[1]; - QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1051961u, new Vector3(-13.931519f, 41.999992f, -49.027283f), 1264); - num3 = 6; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - Span span196 = CollectionsMarshal.AsSpan(list337); - span196[0] = null; - span196[1] = null; - span196[2] = null; - span196[3] = null; - span196[4] = null; - span196[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list337; - reference244 = questStep19; - ref QuestStep reference245 = ref span194[2]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1051960u, new Vector3(15.457336f, 43.499985f, -137.25494f), 1264); - num3 = 6; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - Span span197 = CollectionsMarshal.AsSpan(list338); - span197[0] = null; - span197[1] = null; - span197[2] = null; - span197[3] = null; - span197[4] = null; - span197[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list338; - reference245 = questStep20; - ref QuestStep reference246 = ref span194[3]; - QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2014455u, new Vector3(71.213745f, 43.411865f, -84.00098f), 1264); - num3 = 6; - List list339 = new List(num3); - CollectionsMarshal.SetCount(list339, num3); - Span span198 = CollectionsMarshal.AsSpan(list339); - span198[0] = null; - span198[1] = null; - span198[2] = null; - span198[3] = null; - span198[4] = null; - span198[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list339; - num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + List list288 = new List(num2); + CollectionsMarshal.SetCount(list288, num2); + span3 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + ref QuestStep reference207 = ref span3[num3]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1051959u, new Vector3(-15.854187f, 41.99999f, -4.6845703f), 1264); + index2 = 6; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span6 = CollectionsMarshal.AsSpan(list289); + 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); + questStep14.CompletionQuestVariablesFlags = list289; + reference207 = questStep14; + num3++; + ref QuestStep reference208 = ref span3[num3]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051961u, new Vector3(-13.931519f, 41.999992f, -49.027283f), 1264); + num4 = 6; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + span6 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list290; + reference208 = questStep15; + num3++; + ref QuestStep reference209 = ref span3[num3]; + QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1051960u, new Vector3(15.457336f, 43.499985f, -137.25494f), 1264); + index2 = 6; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + span6 = CollectionsMarshal.AsSpan(list291); + 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); + questStep16.CompletionQuestVariablesFlags = list291; + reference209 = questStep16; + num3++; + ref QuestStep reference210 = ref span3[num3]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2014455u, new Vector3(71.213745f, 43.411865f, -84.00098f), 1264); + num4 = 6; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + span6 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list292; + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + span7 = CollectionsMarshal.AsSpan(list293); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA102_05234_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGEA102_05234_A2_000_001") }; - questStep21.DialogueChoices = list340; - reference246 = questStep21; - obj208.Steps = list335; - reference242 = obj208; - ref QuestSequence reference247 = ref span193[3]; - QuestSequence obj209 = new QuestSequence + questStep17.DialogueChoices = list293; + reference210 = questStep17; + obj166.Steps = list288; + reference206 = obj166; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1051958u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264); - obj209.Steps = list341; - reference247 = obj209; - ref QuestSequence reference248 = ref span193[4]; - QuestSequence obj210 = new QuestSequence + num3 = 1; + List list294 = new List(num3); + CollectionsMarshal.SetCount(list294, num3); + span3 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051958u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264); + obj167.Steps = list294; + reference211 = obj167; + num++; + ref QuestSequence reference212 = ref span2[num]; + QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051965u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + span3 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051965u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) { NextQuestId = new QuestId(5235) }; - obj210.Steps = list342; - reference248 = obj210; - questRoot34.QuestSequence = list332; - AddQuest(questId34, questRoot34); - QuestId questId35 = new QuestId(5235); - QuestRoot questRoot35 = new QuestRoot(); + obj168.Steps = list295; + reference212 = obj168; + questRoot31.QuestSequence = list285; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(5235); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; - questRoot35.Author = list343; - num = 6; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span199 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference249 = ref span199[0]; - QuestSequence obj211 = new QuestSequence + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + span = CollectionsMarshal.AsSpan(list296); + index = 0; + span[index] = "liza"; + questRoot32.Author = list296; + index = 6; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + span2 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051964u, new Vector3(0.56451416f, 41.999973f, -5.2339478f), 1264); - obj211.Steps = list345; - reference249 = obj211; - ref QuestSequence reference250 = ref span199[1]; - QuestSequence obj212 = new QuestSequence + num3 = 1; + List list298 = new List(num3); + CollectionsMarshal.SetCount(list298, num3); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051964u, new Vector3(0.56451416f, 41.999973f, -5.2339478f), 1264); + obj169.Steps = list298; + reference213 = obj169; + num++; + ref QuestSequence reference214 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1051967u, new Vector3(564.72107f, -131.41925f, 609.21643f), 1189) + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + span3 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051967u, new Vector3(564.72107f, -131.41925f, 609.21643f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - obj212.Steps = list346; - reference250 = obj212; - ref QuestSequence reference251 = ref span199[2]; - QuestSequence obj213 = new QuestSequence + obj170.Steps = list299; + reference214 = obj170; + num++; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 2014464u, new Vector3(-412.2835f, 2.9754639f, -57.846985f), 1185) + num3 = 1; + List list300 = new List(num3); + CollectionsMarshal.SetCount(list300, num3); + span3 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014464u, new Vector3(-412.2835f, 2.9754639f, -57.846985f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -372608,31 +449551,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalDirigibleLanding } }; - obj213.Steps = list347; - reference251 = obj213; - ref QuestSequence reference252 = ref span199[3]; - QuestSequence obj214 = new QuestSequence + obj171.Steps = list300; + reference215 = obj171; + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(-414.69446f, 3f, -55.10034f), 1185) + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + span3 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(-414.69446f, 3f, -55.10034f), 1185) { StopDistance = 5f }; - obj214.Steps = list348; - reference252 = obj214; - ref QuestSequence reference253 = ref span199[4]; - QuestSequence obj215 = new QuestSequence + obj172.Steps = list301; + reference216 = obj172; + num++; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(93.53023f, -14f, 50.456287f), 1185) + num3 = 1; + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(93.53023f, -14f, 50.456287f), 1185) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -372641,204 +449590,252 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Tuliyollal } }; - obj215.Steps = list349; - reference253 = obj215; - ref QuestSequence reference254 = ref span199[5]; - QuestSequence obj216 = new QuestSequence + obj173.Steps = list302; + reference217 = obj173; + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051972u, new Vector3(123.79639f, -14f, 27.115234f), 1185) + List list303 = new List(num2); + CollectionsMarshal.SetCount(list303, num2); + span3 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051972u, new Vector3(123.79639f, -14f, 27.115234f), 1185) { StopDistance = 5f, NextQuestId = new QuestId(5236) }; - obj216.Steps = list350; - reference254 = obj216; - questRoot35.QuestSequence = list344; - AddQuest(questId35, questRoot35); - QuestId questId36 = new QuestId(5236); - QuestRoot questRoot36 = new QuestRoot(); + obj174.Steps = list303; + reference218 = obj174; + questRoot32.QuestSequence = list297; + AddQuest(questId32, questRoot32); + QuestId questId33 = new QuestId(5236); + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list351 = new List(num); - CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; - questRoot36.Author = list351; - num = 7; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span200 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference255 = ref span200[0]; - QuestSequence obj217 = new QuestSequence + List list304 = new List(num); + CollectionsMarshal.SetCount(list304, num); + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "liza"; + questRoot33.Author = list304; + index = 7; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + span2 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference219 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051974u, new Vector3(121.782104f, -14f, 29.587158f), 1185) + num3 = 1; + List list306 = new List(num3); + CollectionsMarshal.SetCount(list306, num3); + span3 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051974u, new Vector3(121.782104f, -14f, 29.587158f), 1185) { StopDistance = 7f }; - obj217.Steps = list353; - reference255 = obj217; - ref QuestSequence reference256 = ref span200[1]; - QuestSequence obj218 = new QuestSequence + obj175.Steps = list306; + reference219 = obj175; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1052148u, new Vector3(-527.245f, -152.47649f, 663.6301f), 1189) + List list307 = new List(num2); + CollectionsMarshal.SetCount(list307, num2); + span3 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052148u, new Vector3(-527.245f, -152.47649f, 663.6301f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - obj218.Steps = list354; - reference256 = obj218; - ref QuestSequence reference257 = ref span200[2]; - QuestSequence obj219 = new QuestSequence + obj176.Steps = list307; + reference220 = obj176; + num++; + ref QuestSequence reference221 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - Span span201 = CollectionsMarshal.AsSpan(list355); - ref QuestStep reference258 = ref span201[0]; - QuestStep obj220 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) + num3 = 3; + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference222 = ref span3[num2]; + QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = 1265; - skipStepConditions4.InTerritory = list356; - skipConditions14.StepIf = skipStepConditions4; - obj220.SkipConditions = skipConditions14; - reference258 = obj220; - ref QuestStep reference259 = ref span201[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1052131u, new Vector3(-23.849854f, 43f, -25.192688f), 1265); - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span202 = CollectionsMarshal.AsSpan(list357); - span202[0] = null; - span202[1] = null; - span202[2] = null; - span202[3] = null; - span202[4] = null; - span202[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list357; - reference259 = questStep22; - ref QuestStep reference260 = ref span201[2]; - QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1052132u, new Vector3(-1.1139526f, 41.999992f, -110.15497f), 1265); - num3 = 6; - List list358 = new List(num3); - CollectionsMarshal.SetCount(list358, num3); - Span span203 = CollectionsMarshal.AsSpan(list358); - span203[0] = null; - span203[1] = null; - span203[2] = null; - span203[3] = null; - span203[4] = null; - span203[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list358; - reference260 = questStep23; - obj219.Steps = list355; - reference257 = obj219; - ref QuestSequence reference261 = ref span200[3]; - QuestSequence obj221 = new QuestSequence + SkipConditions skipConditions2 = new SkipConditions(); + SkipStepConditions skipStepConditions = new SkipStepConditions(); + num4 = 1; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + span8 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span8[index2] = 1265; + skipStepConditions.InTerritory = list309; + skipConditions2.StepIf = skipStepConditions; + obj178.SkipConditions = skipConditions2; + reference222 = obj178; + num2++; + ref QuestStep reference223 = ref span3[num2]; + QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1052131u, new Vector3(-23.849854f, 43f, -25.192688f), 1265); + index2 = 6; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + span6 = CollectionsMarshal.AsSpan(list310); + 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); + questStep18.CompletionQuestVariablesFlags = list310; + reference223 = questStep18; + num2++; + ref QuestStep reference224 = ref span3[num2]; + QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1052132u, new Vector3(-1.1139526f, 41.999992f, -110.15497f), 1265); + num4 = 6; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + span6 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list311; + reference224 = questStep19; + obj177.Steps = list308; + reference221 = obj177; + num++; + ref QuestSequence reference225 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1052139u, new Vector3(11.459534f, 41.99999f, -50.644714f), 1265); - obj221.Steps = list359; - reference261 = obj221; - ref QuestSequence reference262 = ref span200[4]; - QuestSequence obj222 = new QuestSequence + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + span3 = CollectionsMarshal.AsSpan(list312); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052139u, new Vector3(11.459534f, 41.99999f, -50.644714f), 1265); + obj179.Steps = list312; + reference225 = obj179; + num++; + ref QuestSequence reference226 = ref span2[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 4 }; - 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) + num3 = 1; + List list313 = new List(num3); + CollectionsMarshal.SetCount(list313, num3); + span3 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + ref QuestStep reference227 = ref span3[num2]; + QuestStep obj181 = new QuestStep(EInteractionType.Interact, 1051948u, new Vector3(11.36792f, 41.99999f, -50.55316f), 1265) { StopDistance = 5f }; - num3 = 5; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span204 = CollectionsMarshal.AsSpan(list361); - span204[0] = new DialogueChoice + index2 = 5; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span7 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q1_000_000") }; - span204[1] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q2_000_000") }; - span204[2] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A3_000_002") }; - span204[3] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q5_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A5_000_002") }; - span204[4] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q7_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A7_000_001") }; - obj223.DialogueChoices = list361; - num3 = 1; - List list362 = new List(num3); - CollectionsMarshal.SetCount(list362, num3); - CollectionsMarshal.AsSpan(list362)[0] = 0u; - obj223.PointMenuChoices = list362; - reference263 = obj223; - obj222.Steps = list360; - reference262 = obj222; - ref QuestSequence reference264 = ref span200[5]; - QuestSequence obj224 = new QuestSequence + obj181.DialogueChoices = list314; + num4 = 1; + List list315 = new List(num4); + CollectionsMarshal.SetCount(list315, num4); + span4 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span4[index2] = 0u; + obj181.PointMenuChoices = list315; + reference227 = obj181; + obj180.Steps = list313; + reference226 = obj180; + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1052163u, new Vector3(5.9662476f, 41.999992f, -47.226746f), 1265); - obj224.Steps = list363; - reference264 = obj224; - ref QuestSequence reference265 = ref span200[6]; - QuestSequence obj225 = new QuestSequence + List list316 = new List(num2); + CollectionsMarshal.SetCount(list316, num2); + span3 = CollectionsMarshal.AsSpan(list316); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052163u, new Vector3(5.9662476f, 41.999992f, -47.226746f), 1265); + obj182.Steps = list316; + reference228 = obj182; + num++; + ref QuestSequence reference229 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052145u, new Vector3(139.45215f, 42f, -354.84857f), 1185) + num3 = 1; + List list317 = new List(num3); + CollectionsMarshal.SetCount(list317, num3); + span3 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052145u, new Vector3(139.45215f, 42f, -354.84857f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -372847,32 +449844,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBrightploomPost } }; - obj225.Steps = list364; - reference265 = obj225; - questRoot36.QuestSequence = list352; - AddQuest(questId36, questRoot36); - QuestId questId37 = new QuestId(5237); - QuestRoot questRoot37 = new QuestRoot(); + obj183.Steps = list317; + reference229 = obj183; + questRoot33.QuestSequence = list305; + AddQuest(questId33, questRoot33); + QuestId questId34 = new QuestId(5237); + QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list365 = new List(num); - CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "liza"; - questRoot37.Author = list365; - questRoot37.IsSeasonalQuest = true; - questRoot37.SeasonalQuestExpiry = new DateTime(2025, 3, 17, 0, 0, 0, DateTimeKind.Utc); - num = 4; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span205 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference266 = ref span205[0]; - QuestSequence obj226 = new QuestSequence + List list318 = new List(num); + CollectionsMarshal.SetCount(list318, num); + span = CollectionsMarshal.AsSpan(list318); + index = 0; + span[index] = "liza"; + questRoot34.Author = list318; + questRoot34.IsSeasonalQuest = true; + questRoot34.SeasonalQuestExpiry = new DateTime(2025, 3, 17, 0, 0, 0, DateTimeKind.Utc); + index = 4; + List list319 = new List(index); + CollectionsMarshal.SetCount(list319, index); + span2 = CollectionsMarshal.AsSpan(list319); + num = 0; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) + List list320 = new List(num2); + CollectionsMarshal.SetCount(list320, num2); + span3 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -372883,17 +449885,20 @@ public static class AssemblyQuestLoader } } }; - obj226.Steps = list367; - reference266 = obj226; - ref QuestSequence reference267 = ref span205[1]; - QuestSequence obj227 = new QuestSequence + obj184.Steps = list320; + reference230 = obj184; + num++; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1051889u, new Vector3(-51.499268f, 18f, 60.471436f), 131) + num3 = 1; + List list321 = new List(num3); + CollectionsMarshal.SetCount(list321, num3); + span3 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051889u, new Vector3(-51.499268f, 18f, 60.471436f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -372909,19 +449914,21 @@ public static class AssemblyQuestLoader } } }; - obj227.Steps = list368; - reference267 = obj227; - ref QuestSequence reference268 = ref span205[2]; - QuestSequence obj228 = new QuestSequence + obj185.Steps = list321; + reference231 = obj185; + num++; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - 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) + List list322 = new List(num2); + CollectionsMarshal.SetCount(list322, num2); + span3 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + ref QuestStep reference233 = ref span3[num3]; + QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1051892u, new Vector3(130.05261f, 7.992012f, 75.94409f), 131) { AethernetShortcut = new AethernetShortcut { @@ -372929,20 +449936,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 6; - List list370 = new List(num3); - CollectionsMarshal.SetCount(list370, num3); - Span span207 = CollectionsMarshal.AsSpan(list370); - span207[0] = null; - span207[1] = null; - span207[2] = null; - span207[3] = null; - span207[4] = null; - span207[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj229.CompletionQuestVariablesFlags = list370; - reference269 = obj229; - ref QuestStep reference270 = ref span206[1]; - QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1051891u, new Vector3(148.39392f, 4f, -12.222534f), 131) + index2 = 6; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + span6 = CollectionsMarshal.AsSpan(list323); + 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)4, 0, EQuestWorkMode.Bitwise); + obj187.CompletionQuestVariablesFlags = list323; + reference233 = obj187; + num3++; + ref QuestStep reference234 = ref span3[num3]; + QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1051891u, new Vector3(148.39392f, 4f, -12.222534f), 131) { AethernetShortcut = new AethernetShortcut { @@ -372950,83 +449964,106 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list371 = new List(num3); - CollectionsMarshal.SetCount(list371, num3); - Span span208 = CollectionsMarshal.AsSpan(list371); - span208[0] = null; - span208[1] = null; - span208[2] = null; - span208[3] = null; - span208[4] = null; - span208[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj230.CompletionQuestVariablesFlags = list371; - reference270 = obj230; - ref QuestStep reference271 = ref span206[2]; - QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1051893u, new Vector3(107.59131f, 4f, -111.436646f), 131); - num3 = 6; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - Span span209 = CollectionsMarshal.AsSpan(list372); - span209[0] = null; - span209[1] = null; - span209[2] = null; - span209[3] = null; - span209[4] = null; - span209[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list372; - reference271 = questStep24; - obj228.Steps = list369; - reference268 = obj228; - ref QuestSequence reference272 = ref span205[3]; - QuestSequence obj231 = new QuestSequence + num4 = 6; + List list324 = new List(num4); + CollectionsMarshal.SetCount(list324, num4); + span6 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj188.CompletionQuestVariablesFlags = list324; + reference234 = obj188; + num3++; + ref QuestStep reference235 = ref span3[num3]; + QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1051893u, new Vector3(107.59131f, 4f, -111.436646f), 131); + index2 = 6; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + span6 = CollectionsMarshal.AsSpan(list325); + 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); + questStep20.CompletionQuestVariablesFlags = list325; + reference235 = questStep20; + obj186.Steps = list322; + reference232 = obj186; + num++; + ref QuestSequence reference236 = ref span2[num]; + QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list373)[0]; - QuestStep questStep25 = new QuestStep(EInteractionType.CompleteQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131); num3 = 1; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - CollectionsMarshal.AsSpan(list374)[0] = new DialogueChoice + List list326 = new List(num3); + CollectionsMarshal.SetCount(list326, num3); + span3 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + ref QuestStep reference237 = ref span3[num2]; + QuestStep questStep21 = new QuestStep(EInteractionType.CompleteQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131); + num4 = 1; + List list327 = new List(num4); + CollectionsMarshal.SetCount(list327, num4); + span7 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX001_05237_Q2_000_000"), Answer = new ExcelRef("TEXT_FESPDX001_05237_A2_000_001") }; - questStep25.DialogueChoices = list374; - questStep25.NextQuestId = new QuestId(5238); - reference273 = questStep25; - obj231.Steps = list373; - reference272 = obj231; - questRoot37.QuestSequence = list366; - AddQuest(questId37, questRoot37); - QuestId questId38 = new QuestId(5238); - QuestRoot questRoot38 = new QuestRoot(); + questStep21.DialogueChoices = list327; + questStep21.NextQuestId = new QuestId(5238); + reference237 = questStep21; + obj189.Steps = list326; + reference236 = obj189; + questRoot34.QuestSequence = list319; + AddQuest(questId34, questRoot34); + QuestId questId35 = new QuestId(5238); + QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - CollectionsMarshal.AsSpan(list375)[0] = "liza"; - questRoot38.Author = list375; - questRoot38.IsSeasonalQuest = true; - questRoot38.SeasonalQuestExpiry = new DateTime(2025, 3, 11, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list376 = new List(num); - CollectionsMarshal.SetCount(list376, num); - Span span210 = CollectionsMarshal.AsSpan(list376); - ref QuestSequence reference274 = ref span210[0]; - QuestSequence obj232 = new QuestSequence + List list328 = new List(num); + CollectionsMarshal.SetCount(list328, num); + span = CollectionsMarshal.AsSpan(list328); + index = 0; + span[index] = "liza"; + questRoot35.Author = list328; + questRoot35.IsSeasonalQuest = true; + questRoot35.SeasonalQuestExpiry = new DateTime(2025, 3, 11, 0, 0, 0, DateTimeKind.Utc); + index = 5; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + span2 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj190 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list377)[0]; - QuestStep obj233 = new QuestStep(EInteractionType.AcceptQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131) + List list330 = new List(num2); + CollectionsMarshal.SetCount(list330, num2); + span3 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + ref QuestStep reference239 = ref span3[num3]; + QuestStep obj191 = new QuestStep(EInteractionType.AcceptQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -373035,92 +450072,109 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - SkipConditions skipConditions15 = new SkipConditions(); - SkipAetheryteCondition obj234 = new SkipAetheryteCondition + SkipConditions skipConditions3 = new SkipConditions(); + SkipAetheryteCondition obj192 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference276 = ref span210[1]; - QuestSequence obj235 = new QuestSequence + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + span8 = CollectionsMarshal.AsSpan(list331); + num4 = 0; + span8[num4] = 131; + obj192.InTerritory = list331; + skipConditions3.AetheryteShortcutIf = obj192; + obj191.SkipConditions = skipConditions3; + reference239 = obj191; + obj190.Steps = list330; + reference238 = obj190; + num++; + ref QuestSequence reference240 = ref span2[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span211 = CollectionsMarshal.AsSpan(list379); - ref QuestStep reference277 = ref span211[0]; - QuestStep questStep26 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.184601f, 9.999999f, -35.359993f), 131); - SkipConditions skipConditions16 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list380 = new List(num3); - CollectionsMarshal.SetCount(list380, num3); - CollectionsMarshal.AsSpan(list380)[0] = 130; - skipStepConditions5.InTerritory = list380; - skipConditions16.StepIf = skipStepConditions5; - questStep26.SkipConditions = skipConditions16; - reference277 = questStep26; - ref QuestStep reference278 = ref span211[1]; - QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1051895u, new Vector3(-25.0401f, 4.9999785f, -131.45648f), 130); - num3 = 4; - List list381 = new List(num3); - CollectionsMarshal.SetCount(list381, num3); - Span span212 = CollectionsMarshal.AsSpan(list381); - span212[0] = new DialogueChoice + num3 = 2; + List list332 = new List(num3); + CollectionsMarshal.SetCount(list332, num3); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + ref QuestStep reference241 = ref span3[num2]; + QuestStep questStep22 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.184601f, 9.999999f, -35.359993f), 131); + SkipConditions skipConditions4 = new SkipConditions(); + SkipStepConditions skipStepConditions2 = new SkipStepConditions(); + num4 = 1; + List list333 = new List(num4); + CollectionsMarshal.SetCount(list333, num4); + span8 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span8[index2] = 130; + skipStepConditions2.InTerritory = list333; + skipConditions4.StepIf = skipStepConditions2; + questStep22.SkipConditions = skipConditions4; + reference241 = questStep22; + num2++; + ref QuestStep reference242 = ref span3[num2]; + QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1051895u, new Vector3(-25.0401f, 4.9999785f, -131.45648f), 130); + index2 = 4; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + span7 = CollectionsMarshal.AsSpan(list334); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q1_000_000") }; - span212[1] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q2_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A2_000_001") }; - span212[2] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q3_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A3_000_001") }; - span212[3] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q4_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A4_000_001") }; - questStep27.DialogueChoices = list381; - num3 = 3; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - Span span213 = CollectionsMarshal.AsSpan(list382); - span213[0] = 0u; - span213[1] = 1u; - span213[2] = 2u; - questStep27.PointMenuChoices = list382; - reference278 = questStep27; - obj235.Steps = list379; - reference276 = obj235; - ref QuestSequence reference279 = ref span210[2]; - QuestSequence obj236 = new QuestSequence + questStep23.DialogueChoices = list334; + num4 = 3; + List list335 = new List(num4); + CollectionsMarshal.SetCount(list335, num4); + span4 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span4[index2] = 0u; + index2++; + span4[index2] = 1u; + index2++; + span4[index2] = 2u; + questStep23.PointMenuChoices = list335; + reference242 = questStep23; + obj193.Steps = list332; + reference240 = obj193; + num++; + ref QuestSequence reference243 = ref span2[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1051899u, new Vector3(-53.421875f, 18f, 60.16626f), 131) + List list336 = new List(num2); + CollectionsMarshal.SetCount(list336, num2); + span3 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051899u, new Vector3(-53.421875f, 18f, 60.16626f), 131) { AethernetShortcut = new AethernetShortcut { @@ -373128,17 +450182,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGoldsmith } }; - obj236.Steps = list383; - reference279 = obj236; - ref QuestSequence reference280 = ref span210[3]; - QuestSequence obj237 = new QuestSequence + obj194.Steps = list336; + reference243 = obj194; + num++; + ref QuestSequence reference244 = ref span2[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) + num3 = 1; + List list337 = new List(num3); + CollectionsMarshal.SetCount(list337, num3); + span3 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) { AethernetShortcut = new AethernetShortcut { @@ -373146,41 +450203,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAdventurers } }; - obj237.Steps = list384; - reference280 = obj237; - ref QuestSequence reference281 = ref span210[4]; - QuestSequence obj238 = new QuestSequence + obj195.Steps = list337; + reference244 = obj195; + num++; + ref QuestSequence reference245 = ref span2[num]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051901u, new Vector3(-33.859802f, 5.0000005f, -130.6325f), 130); - obj238.Steps = list385; - reference281 = obj238; - questRoot38.QuestSequence = list376; - AddQuest(questId38, questRoot38); - QuestId questId39 = new QuestId(5239); - QuestRoot questRoot39 = new QuestRoot(); + List list338 = new List(num2); + CollectionsMarshal.SetCount(list338, num2); + span3 = CollectionsMarshal.AsSpan(list338); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051901u, new Vector3(-33.859802f, 5.0000005f, -130.6325f), 130); + obj196.Steps = list338; + reference245 = obj196; + questRoot35.QuestSequence = list329; + AddQuest(questId35, questRoot35); + QuestId questId36 = new QuestId(5239); + QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - CollectionsMarshal.AsSpan(list386)[0] = "liza"; - questRoot39.Author = list386; - num = 4; - List list387 = new List(num); - CollectionsMarshal.SetCount(list387, num); - Span span214 = CollectionsMarshal.AsSpan(list387); - ref QuestSequence reference282 = ref span214[0]; - QuestSequence obj239 = new QuestSequence + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + span = CollectionsMarshal.AsSpan(list339); + index = 0; + span[index] = "liza"; + questRoot36.Author = list339; + index = 4; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + span2 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference246 = ref span2[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048604u, new Vector3(36.75891f, -14.000003f, 57.694214f), 1185) + num3 = 1; + List list341 = new List(num3); + CollectionsMarshal.SetCount(list341, num3); + span3 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048604u, new Vector3(36.75891f, -14.000003f, 57.694214f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -373191,75 +450256,89 @@ public static class AssemblyQuestLoader } } }; - obj239.Steps = list388; - reference282 = obj239; - ref QuestSequence reference283 = ref span214[1]; - QuestSequence obj240 = new QuestSequence + obj197.Steps = list341; + reference246 = obj197; + num++; + ref QuestSequence reference247 = ref span2[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1051496u, new Vector3(-84.42822f, 15.678356f, -242.17596f), 1190) + List list342 = new List(num2); + CollectionsMarshal.SetCount(list342, num2); + span3 = CollectionsMarshal.AsSpan(list342); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1051496u, new Vector3(-84.42822f, 15.678356f, -242.17596f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - obj240.Steps = list389; - reference283 = obj240; - ref QuestSequence reference284 = ref span214[2]; - QuestSequence obj241 = new QuestSequence + obj198.Steps = list342; + reference247 = obj198; + num++; + ref QuestSequence reference248 = ref span2[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - Span span215 = CollectionsMarshal.AsSpan(list390); - span215[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) + num3 = 2; + List list343 = new List(num3); + CollectionsMarshal.SetCount(list343, num3); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - span215[1] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) { StopDistance = 5f }; - obj241.Steps = list390; - reference284 = obj241; - ref QuestSequence reference285 = ref span214[3]; - QuestSequence obj242 = new QuestSequence + obj199.Steps = list343; + reference248 = obj199; + num++; + ref QuestSequence reference249 = ref span2[num]; + QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190); - obj242.Steps = list391; - reference285 = obj242; - questRoot39.QuestSequence = list387; - AddQuest(questId39, questRoot39); - QuestId questId40 = new QuestId(5240); - QuestRoot questRoot40 = new QuestRoot(); + List list344 = new List(num2); + CollectionsMarshal.SetCount(list344, num2); + span3 = CollectionsMarshal.AsSpan(list344); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190); + obj200.Steps = list344; + reference249 = obj200; + questRoot36.QuestSequence = list340; + AddQuest(questId36, questRoot36); + QuestId questId37 = new QuestId(5240); + QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list392 = new List(num); - CollectionsMarshal.SetCount(list392, num); - CollectionsMarshal.AsSpan(list392)[0] = "liza"; - questRoot40.Author = list392; - num = 4; - List list393 = new List(num); - CollectionsMarshal.SetCount(list393, num); - Span span216 = CollectionsMarshal.AsSpan(list393); - ref QuestSequence reference286 = ref span216[0]; - QuestSequence obj243 = new QuestSequence + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + span = CollectionsMarshal.AsSpan(list345); + index = 0; + span[index] = "liza"; + questRoot37.Author = list345; + index = 4; + List list346 = new List(index); + CollectionsMarshal.SetCount(list346, index); + span2 = CollectionsMarshal.AsSpan(list346); + num = 0; + ref QuestSequence reference250 = ref span2[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) + num3 = 1; + List list347 = new List(num3); + CollectionsMarshal.SetCount(list347, num3); + span3 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -373270,122 +450349,145 @@ public static class AssemblyQuestLoader } } }; - obj243.Steps = list394; - reference286 = obj243; - ref QuestSequence reference287 = ref span216[1]; - QuestSequence obj244 = new QuestSequence + obj201.Steps = list347; + reference250 = obj201; + num++; + ref QuestSequence reference251 = ref span2[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 2014456u, new Vector3(-128.64886f, 16.311829f, -290.69965f), 1190) + List list348 = new List(num2); + CollectionsMarshal.SetCount(list348, num2); + span3 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2014456u, new Vector3(-128.64886f, 16.311829f, -290.69965f), 1190) { Fly = true }; - obj244.Steps = list395; - reference287 = obj244; - ref QuestSequence reference288 = ref span216[2]; - QuestSequence obj245 = new QuestSequence + obj202.Steps = list348; + reference251 = obj202; + num++; + ref QuestSequence reference252 = ref span2[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1048608u, new Vector3(-126.57361f, 15.67948f, -369.46674f), 1190) + num3 = 1; + List list349 = new List(num3); + CollectionsMarshal.SetCount(list349, num3); + span3 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048608u, new Vector3(-126.57361f, 15.67948f, -369.46674f), 1190) { Fly = true }; - obj245.Steps = list396; - reference288 = obj245; - ref QuestSequence reference289 = ref span216[3]; - QuestSequence obj246 = new QuestSequence + obj203.Steps = list349; + reference252 = obj203; + num++; + ref QuestSequence reference253 = ref span2[num]; + QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) + List list350 = new List(num2); + CollectionsMarshal.SetCount(list350, num2); + span3 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { Fly = true, NextQuestId = new QuestId(5241) }; - obj246.Steps = list397; - reference289 = obj246; - questRoot40.QuestSequence = list393; - AddQuest(questId40, questRoot40); - QuestId questId41 = new QuestId(5241); - QuestRoot questRoot41 = new QuestRoot(); + obj204.Steps = list350; + reference253 = obj204; + questRoot37.QuestSequence = list346; + AddQuest(questId37, questRoot37); + QuestId questId38 = new QuestId(5241); + QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list398 = new List(num); - CollectionsMarshal.SetCount(list398, num); - CollectionsMarshal.AsSpan(list398)[0] = "liza"; - questRoot41.Author = list398; - num = 2; - List list399 = new List(num); - CollectionsMarshal.SetCount(list399, num); - Span span217 = CollectionsMarshal.AsSpan(list399); - ref QuestSequence reference290 = ref span217[0]; - QuestSequence obj247 = new QuestSequence + List list351 = new List(num); + CollectionsMarshal.SetCount(list351, num); + span = CollectionsMarshal.AsSpan(list351); + index = 0; + span[index] = "liza"; + questRoot38.Author = list351; + index = 2; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + span2 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list400 = new List(num2); - CollectionsMarshal.SetCount(list400, num2); - Span span218 = CollectionsMarshal.AsSpan(list400); - span218[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.2864f, 20.16234f, -90.06508f), 1190); - span218[1] = new QuestStep(EInteractionType.AcceptQuest, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190); - obj247.Steps = list400; - reference290 = obj247; - ref QuestSequence reference291 = ref span217[1]; - QuestSequence obj248 = new QuestSequence + num3 = 2; + List list353 = new List(num3); + CollectionsMarshal.SetCount(list353, num3); + span3 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.2864f, 20.16234f, -90.06508f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190); + obj205.Steps = list353; + reference254 = obj205; + num++; + ref QuestSequence reference255 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - Span span219 = CollectionsMarshal.AsSpan(list401); - span219[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.53677f, 19.32763f, -99.326805f), 1190) + List list354 = new List(num2); + CollectionsMarshal.SetCount(list354, num2); + span3 = CollectionsMarshal.AsSpan(list354); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.53677f, 19.32763f, -99.326805f), 1190) { Mount = true }; - span219[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-91.25145f, 17.80576f, -267.2748f), 1190) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-91.25145f, 17.80576f, -267.2748f), 1190) { Fly = true }; - span219[2] = new QuestStep(EInteractionType.CompleteQuest, 1051497u, new Vector3(-91.5694f, 17.7503f, -268.54352f), 1190); - obj248.Steps = list401; - reference291 = obj248; - questRoot41.QuestSequence = list399; - AddQuest(questId41, questRoot41); - QuestId questId42 = new QuestId(5242); - QuestRoot questRoot42 = new QuestRoot(); + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051497u, new Vector3(-91.5694f, 17.7503f, -268.54352f), 1190); + obj206.Steps = list354; + reference255 = obj206; + questRoot38.QuestSequence = list352; + AddQuest(questId38, questRoot38); + QuestId questId39 = new QuestId(5242); + QuestRoot questRoot39 = new QuestRoot(); num = 1; - List list402 = new List(num); - CollectionsMarshal.SetCount(list402, num); - CollectionsMarshal.AsSpan(list402)[0] = "liza"; - questRoot42.Author = list402; - questRoot42.IsSeasonalQuest = true; - questRoot42.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - Span span220 = CollectionsMarshal.AsSpan(list403); - ref QuestSequence reference292 = ref span220[0]; - QuestSequence obj249 = new QuestSequence + List list355 = new List(num); + CollectionsMarshal.SetCount(list355, num); + span = CollectionsMarshal.AsSpan(list355); + index = 0; + span[index] = "liza"; + questRoot39.Author = list355; + questRoot39.IsSeasonalQuest = true; + questRoot39.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); + index = 6; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + span2 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference256 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list357 = new List(num3); + CollectionsMarshal.SetCount(list357, num3); + span3 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + ref QuestStep reference257 = ref span3[num2]; + QuestStep obj208 = new QuestStep(EInteractionType.AcceptQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -373394,30 +450496,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipAetheryteCondition obj251 = new SkipAetheryteCondition + SkipConditions skipConditions5 = new SkipConditions(); + SkipAetheryteCondition obj209 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference294 = ref span220[1]; - QuestSequence obj252 = new QuestSequence + index2 = 1; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + span8 = CollectionsMarshal.AsSpan(list358); + num4 = 0; + span8[num4] = 133; + obj209.InTerritory = list358; + skipConditions5.AetheryteShortcutIf = obj209; + obj208.SkipConditions = skipConditions5; + reference257 = obj208; + obj207.Steps = list357; + reference256 = obj207; + num++; + ref QuestSequence reference258 = ref span2[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1052065u, new Vector3(172.86938f, 15.699935f, -113.11517f), 133) + List list359 = new List(num2); + CollectionsMarshal.SetCount(list359, num2); + span3 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052065u, new Vector3(172.86938f, 15.699935f, -113.11517f), 133) { AethernetShortcut = new AethernetShortcut { @@ -373425,106 +450532,127 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - obj252.Steps = list406; - reference294 = obj252; - ref QuestSequence reference295 = ref span220[2]; - QuestSequence obj253 = new QuestSequence + obj210.Steps = list359; + reference258 = obj210; + num++; + ref QuestSequence reference259 = ref span2[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133); - obj253.Steps = list407; - reference295 = obj253; - ref QuestSequence reference296 = ref span220[3]; - QuestSequence obj254 = new QuestSequence + num3 = 1; + List list360 = new List(num3); + CollectionsMarshal.SetCount(list360, num3); + span3 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133); + obj211.Steps = list360; + reference259 = obj211; + num++; + ref QuestSequence reference260 = ref span2[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - 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(); - 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; - span221[1] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); - obj254.Steps = list408; - reference296 = obj254; - ref QuestSequence reference298 = ref span220[4]; - QuestSequence obj255 = new QuestSequence + List list361 = new List(num2); + CollectionsMarshal.SetCount(list361, num2); + span3 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + ref QuestStep reference261 = ref span3[num3]; + QuestStep questStep24 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.474687f, 8.372438f, -86.945724f), 133); + SkipConditions skipConditions6 = new SkipConditions(); + SkipStepConditions skipStepConditions3 = new SkipStepConditions(); + num4 = 1; + List list362 = new List(num4); + CollectionsMarshal.SetCount(list362, num4); + span8 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span8[index2] = 132; + skipStepConditions3.InTerritory = list362; + skipConditions6.StepIf = skipStepConditions3; + questStep24.SkipConditions = skipConditions6; + reference261 = questStep24; + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + obj212.Steps = list361; + reference260 = obj212; + num++; + ref QuestSequence reference262 = ref span2[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1052068u, new Vector3(11.36792f, 0.106995195f, 2.7618408f), 132); - obj255.Steps = list410; - reference298 = obj255; - ref QuestSequence reference299 = ref span220[5]; - QuestSequence obj256 = new QuestSequence + num3 = 1; + List list363 = new List(num3); + CollectionsMarshal.SetCount(list363, num3); + span3 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052068u, new Vector3(11.36792f, 0.106995195f, 2.7618408f), 132); + obj213.Steps = list363; + reference262 = obj213; + num++; + ref QuestSequence reference263 = ref span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - 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(); - 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; - span222[1] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) + List list364 = new List(num2); + CollectionsMarshal.SetCount(list364, num2); + span3 = CollectionsMarshal.AsSpan(list364); + num3 = 0; + ref QuestStep reference264 = ref span3[num3]; + QuestStep questStep25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.567871f, 1.2197373f, -15.778544f), 132); + SkipConditions skipConditions7 = new SkipConditions(); + SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + span8 = CollectionsMarshal.AsSpan(list365); + num4 = 0; + span8[num4] = 133; + skipStepConditions4.InTerritory = list365; + skipConditions7.StepIf = skipStepConditions4; + questStep25.SkipConditions = skipConditions7; + reference264 = questStep25; + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { NextQuestId = new QuestId(5243) }; - obj256.Steps = list411; - reference299 = obj256; - questRoot42.QuestSequence = list403; - AddQuest(questId42, questRoot42); - QuestId questId43 = new QuestId(5243); - QuestRoot questRoot43 = new QuestRoot(); + obj214.Steps = list364; + reference263 = obj214; + questRoot39.QuestSequence = list356; + AddQuest(questId39, questRoot39); + QuestId questId40 = new QuestId(5243); + QuestRoot questRoot40 = new QuestRoot(); num = 1; - List list413 = new List(num); - CollectionsMarshal.SetCount(list413, num); - CollectionsMarshal.AsSpan(list413)[0] = "liza"; - questRoot43.Author = list413; - questRoot43.IsSeasonalQuest = true; - questRoot43.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list414 = new List(num); - CollectionsMarshal.SetCount(list414, num); - Span span223 = CollectionsMarshal.AsSpan(list414); - ref QuestSequence reference301 = ref span223[0]; - QuestSequence obj257 = new QuestSequence + List list366 = new List(num); + CollectionsMarshal.SetCount(list366, num); + span = CollectionsMarshal.AsSpan(list366); + index = 0; + span[index] = "liza"; + questRoot40.Author = list366; + questRoot40.IsSeasonalQuest = true; + questRoot40.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); + index = 5; + List list367 = new List(index); + CollectionsMarshal.SetCount(list367, index); + span2 = CollectionsMarshal.AsSpan(list367); + num = 0; + ref QuestSequence reference265 = ref span2[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - 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) + num3 = 1; + List list368 = new List(num3); + CollectionsMarshal.SetCount(list368, num3); + span3 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + ref QuestStep reference266 = ref span3[num2]; + QuestStep obj216 = new QuestStep(EInteractionType.AcceptQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -373533,43 +450661,50 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - SkipConditions skipConditions20 = new SkipConditions(); - SkipAetheryteCondition obj259 = new SkipAetheryteCondition + SkipConditions skipConditions8 = new SkipConditions(); + SkipAetheryteCondition obj217 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; - ref QuestSequence reference303 = ref span223[1]; - QuestSequence obj260 = new QuestSequence + num4 = 1; + List list369 = new List(num4); + CollectionsMarshal.SetCount(list369, num4); + span8 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span8[index2] = 133; + obj217.InTerritory = list369; + skipConditions8.AetheryteShortcutIf = obj217; + obj216.SkipConditions = skipConditions8; + reference266 = obj216; + obj215.Steps = list368; + reference265 = obj215; + num++; + ref QuestSequence reference267 = ref span2[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(-49.973328f, 6.4999995f, -89.89093f), 133); - obj260.Steps = list417; - reference303 = obj260; - ref QuestSequence reference304 = ref span223[2]; - QuestSequence obj261 = new QuestSequence + List list370 = new List(num2); + CollectionsMarshal.SetCount(list370, num2); + span3 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(-49.973328f, 6.4999995f, -89.89093f), 133); + obj218.Steps = list370; + reference267 = obj218; + num++; + ref QuestSequence reference268 = ref span2[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - Span span224 = CollectionsMarshal.AsSpan(list418); - ref QuestStep reference305 = ref span224[0]; - QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1052070u, new Vector3(169.02417f, 15.5f, -93.492065f), 133) + num3 = 3; + List list371 = new List(num3); + CollectionsMarshal.SetCount(list371, num3); + span3 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + ref QuestStep reference269 = ref span3[num2]; + QuestStep obj220 = new QuestStep(EInteractionType.Interact, 1052070u, new Vector3(169.02417f, 15.5f, -93.492065f), 133) { AethernetShortcut = new AethernetShortcut { @@ -373577,76 +450712,102 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - num3 = 6; - List list419 = new List(num3); - CollectionsMarshal.SetCount(list419, num3); - Span span225 = CollectionsMarshal.AsSpan(list419); - span225[0] = null; - span225[1] = null; - span225[2] = null; - span225[3] = null; - span225[4] = null; - span225[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj262.CompletionQuestVariablesFlags = list419; - reference305 = obj262; - ref QuestStep reference306 = ref span224[1]; - QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1052071u, new Vector3(157.15259f, 15.699948f, -124.16266f), 133); - num3 = 6; - List list420 = new List(num3); - CollectionsMarshal.SetCount(list420, num3); - Span span226 = CollectionsMarshal.AsSpan(list420); - span226[0] = null; - span226[1] = null; - span226[2] = null; - span226[3] = null; - span226[4] = null; - span226[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep30.CompletionQuestVariablesFlags = list420; - reference306 = questStep30; - ref QuestStep reference307 = ref span224[2]; - QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1052072u, new Vector3(145.37268f, 13.599698f, -156.4508f), 133); - num3 = 6; - List list421 = new List(num3); - CollectionsMarshal.SetCount(list421, num3); - Span span227 = CollectionsMarshal.AsSpan(list421); - span227[0] = null; - span227[1] = null; - span227[2] = null; - span227[3] = null; - span227[4] = null; - span227[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep31.CompletionQuestVariablesFlags = list421; - reference307 = questStep31; - obj261.Steps = list418; - reference304 = obj261; - ref QuestSequence reference308 = ref span223[3]; - QuestSequence obj263 = new QuestSequence + index2 = 6; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + span6 = CollectionsMarshal.AsSpan(list372); + 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); + obj220.CompletionQuestVariablesFlags = list372; + reference269 = obj220; + num2++; + ref QuestStep reference270 = ref span3[num2]; + QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1052071u, new Vector3(157.15259f, 15.699948f, -124.16266f), 133); + num4 = 6; + List list373 = new List(num4); + CollectionsMarshal.SetCount(list373, num4); + span6 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep26.CompletionQuestVariablesFlags = list373; + reference270 = questStep26; + num2++; + ref QuestStep reference271 = ref span3[num2]; + QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1052072u, new Vector3(145.37268f, 13.599698f, -156.4508f), 133); + index2 = 6; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span6 = CollectionsMarshal.AsSpan(list374); + 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); + questStep27.CompletionQuestVariablesFlags = list374; + reference271 = questStep27; + obj219.Steps = list371; + reference268 = obj219; + num++; + ref QuestSequence reference272 = ref span2[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - Span span228 = CollectionsMarshal.AsSpan(list422); - span228[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) + List list375 = new List(num2); + CollectionsMarshal.SetCount(list375, num2); + span3 = CollectionsMarshal.AsSpan(list375); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) { StopDistance = 2f }; - span228[1] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) { DelaySecondsAtStart = 2f }; - obj263.Steps = list422; - reference308 = obj263; - ref QuestSequence reference309 = ref span223[4]; - QuestSequence obj264 = new QuestSequence + obj221.Steps = list375; + reference272 = obj221; + num++; + ref QuestSequence reference273 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - CollectionsMarshal.AsSpan(list423)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) + num3 = 1; + List list376 = new List(num3); + CollectionsMarshal.SetCount(list376, num3); + span3 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AethernetShortcut = new AethernetShortcut { @@ -373654,30 +450815,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - obj264.Steps = list423; - reference309 = obj264; - questRoot43.QuestSequence = list414; - AddQuest(questId43, questRoot43); - QuestId questId44 = new QuestId(5244); - QuestRoot questRoot44 = new QuestRoot(); + obj222.Steps = list376; + reference273 = obj222; + questRoot40.QuestSequence = list367; + AddQuest(questId40, questRoot40); + QuestId questId41 = new QuestId(5244); + QuestRoot questRoot41 = new QuestRoot(); num = 1; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - CollectionsMarshal.AsSpan(list424)[0] = "liza"; - questRoot44.Author = list424; - num = 5; - List list425 = new List(num); - CollectionsMarshal.SetCount(list425, num); - Span span229 = CollectionsMarshal.AsSpan(list425); - ref QuestSequence reference310 = ref span229[0]; - QuestSequence obj265 = new QuestSequence + List list377 = new List(num); + CollectionsMarshal.SetCount(list377, num); + span = CollectionsMarshal.AsSpan(list377); + index = 0; + span[index] = "liza"; + questRoot41.Author = list377; + index = 5; + List list378 = new List(index); + CollectionsMarshal.SetCount(list378, index); + span2 = CollectionsMarshal.AsSpan(list378); + num = 0; + ref QuestSequence reference274 = ref span2[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047679u, new Vector3(-165.36206f, -14.999356f, 203.93677f), 1185) + List list379 = new List(num2); + CollectionsMarshal.SetCount(list379, num2); + span3 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1047679u, new Vector3(-165.36206f, -14.999356f, 203.93677f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -373686,43 +450852,52 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - obj265.Steps = list426; - reference310 = obj265; - ref QuestSequence reference311 = ref span229[1]; - QuestSequence obj266 = new QuestSequence + obj223.Steps = list379; + reference274 = obj223; + num++; + ref QuestSequence reference275 = ref span2[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list427 = new List(num2); - CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + num3 = 1; + List list380 = new List(num3); + CollectionsMarshal.SetCount(list380, num3); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; - obj266.Steps = list427; - reference311 = obj266; - ref QuestSequence reference312 = ref span229[2]; - QuestSequence obj267 = new QuestSequence + obj224.Steps = list380; + reference275 = obj224; + num++; + ref QuestSequence reference276 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list428 = new List(num2); - CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Interact, 2014470u, new Vector3(-32.700073f, -17.47168f, 184.9851f), 1185); - obj267.Steps = list428; - reference312 = obj267; - ref QuestSequence reference313 = ref span229[3]; - QuestSequence obj268 = new QuestSequence + List list381 = new List(num2); + CollectionsMarshal.SetCount(list381, num2); + span3 = CollectionsMarshal.AsSpan(list381); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2014470u, new Vector3(-32.700073f, -17.47168f, 184.9851f), 1185); + obj225.Steps = list381; + reference276 = obj225; + num++; + ref QuestSequence reference277 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 3 }; - 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) + num3 = 1; + List list382 = new List(num3); + CollectionsMarshal.SetCount(list382, num3); + span3 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + ref QuestStep reference278 = ref span3[num2]; + QuestStep obj227 = new QuestStep(EInteractionType.Interact, 1047501u, new Vector3(-189.80707f, 120.74999f, -367.14734f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -373730,29 +450905,33 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalVollokShoonsa } }; - num3 = 1; - List list430 = new List(num3); - CollectionsMarshal.SetCount(list430, num3); - CollectionsMarshal.AsSpan(list430)[0] = new DialogueChoice + num4 = 1; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + span7 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMG101_05244_SYSTEM_000_301") }; - obj269.DialogueChoices = list430; - reference314 = obj269; - obj268.Steps = list429; - reference313 = obj268; - ref QuestSequence reference315 = ref span229[4]; - QuestSequence obj270 = new QuestSequence + obj227.DialogueChoices = list383; + reference278 = obj227; + obj226.Steps = list382; + reference277 = obj226; + num++; + ref QuestSequence reference279 = ref span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list431 = new List(num2); - CollectionsMarshal.SetCount(list431, num2); - 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) + List list384 = new List(num2); + CollectionsMarshal.SetCount(list384, num2); + span3 = CollectionsMarshal.AsSpan(list384); + num3 = 0; + ref QuestStep reference280 = ref span3[num3]; + QuestStep obj229 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -373762,75 +450941,90 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - SkipConditions skipConditions21 = new SkipConditions(); - SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - 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(); - 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; - 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; - AddQuest(questId44, questRoot44); - QuestId questId45 = new QuestId(5245); - QuestRoot questRoot45 = new QuestRoot(); + SkipConditions skipConditions9 = new SkipConditions(); + SkipStepConditions skipStepConditions5 = new SkipStepConditions(); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + span8 = CollectionsMarshal.AsSpan(list385); + num4 = 0; + span8[num4] = 1207; + skipStepConditions5.InTerritory = list385; + skipConditions9.StepIf = skipStepConditions5; + SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); + num4 = 1; + List list386 = new List(num4); + CollectionsMarshal.SetCount(list386, num4); + span8 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span8[index2] = 1207; + skipAetheryteCondition.InTerritory = list386; + skipConditions9.AetheryteShortcutIf = skipAetheryteCondition; + obj229.SkipConditions = skipConditions9; + reference280 = obj229; + num3++; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); + obj228.Steps = list384; + reference279 = obj228; + questRoot41.QuestSequence = list378; + AddQuest(questId41, questRoot41); + QuestId questId42 = new QuestId(5245); + QuestRoot questRoot42 = new QuestRoot(); num = 1; - List list434 = new List(num); - CollectionsMarshal.SetCount(list434, num); - CollectionsMarshal.AsSpan(list434)[0] = "liza"; - questRoot45.Author = list434; - num = 3; - List list435 = new List(num); - CollectionsMarshal.SetCount(list435, num); - Span span231 = CollectionsMarshal.AsSpan(list435); - ref QuestSequence reference317 = ref span231[0]; - QuestSequence obj272 = new QuestSequence + List list387 = new List(num); + CollectionsMarshal.SetCount(list387, num); + span = CollectionsMarshal.AsSpan(list387); + index = 0; + span[index] = "liza"; + questRoot42.Author = list387; + index = 3; + List list388 = new List(index); + CollectionsMarshal.SetCount(list388, index); + span2 = CollectionsMarshal.AsSpan(list388); + num = 0; + ref QuestSequence reference281 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list436 = new List(num2); - CollectionsMarshal.SetCount(list436, num2); - CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); - obj272.Steps = list436; - reference317 = obj272; - ref QuestSequence reference318 = ref span231[1]; - QuestSequence obj273 = new QuestSequence + num3 = 1; + List list389 = new List(num3); + CollectionsMarshal.SetCount(list389, num3); + span3 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); + obj230.Steps = list389; + reference281 = obj230; + num++; + ref QuestSequence reference282 = ref span2[num]; + QuestSequence obj231 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - 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) + List list390 = new List(num2); + CollectionsMarshal.SetCount(list390, num2); + span3 = CollectionsMarshal.AsSpan(list390); + num3 = 0; + ref QuestStep reference283 = ref span3[num3]; + QuestStep obj232 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; - SkipConditions skipConditions22 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list438 = new List(num3); - CollectionsMarshal.SetCount(list438, num3); - CollectionsMarshal.AsSpan(list438)[0] = 1186; - skipStepConditions9.InTerritory = list438; - skipConditions22.StepIf = skipStepConditions9; - obj274.SkipConditions = skipConditions22; - reference319 = obj274; - span232[1] = new QuestStep(EInteractionType.Interact, 1052191u, new Vector3(20.248657f, 38.0566f, -388.90674f), 1186) + SkipConditions skipConditions10 = new SkipConditions(); + SkipStepConditions skipStepConditions6 = new SkipStepConditions(); + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + span8 = CollectionsMarshal.AsSpan(list391); + num4 = 0; + span8[num4] = 1186; + skipStepConditions6.InTerritory = list391; + skipConditions10.StepIf = skipStepConditions6; + obj232.SkipConditions = skipConditions10; + reference283 = obj232; + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052191u, new Vector3(20.248657f, 38.0566f, -388.90674f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -373838,83 +451032,97 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResolution } }; - obj273.Steps = list437; - reference318 = obj273; - ref QuestSequence reference320 = ref span231[2]; - QuestSequence obj275 = new QuestSequence + obj231.Steps = list390; + reference282 = obj231; + num++; + ref QuestSequence reference284 = ref span2[num]; + QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list439 = new List(num2); - CollectionsMarshal.SetCount(list439, num2); - CollectionsMarshal.AsSpan(list439)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052198u, new Vector3(-303.2426f, 9.519508f, 51.80432f), 1186) + num3 = 1; + List list392 = new List(num3); + CollectionsMarshal.SetCount(list392, num3); + span3 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052198u, new Vector3(-303.2426f, 9.519508f, 51.80432f), 1186) { StopDistance = 5f }; - obj275.Steps = list439; - reference320 = obj275; - questRoot45.QuestSequence = list435; - AddQuest(questId45, questRoot45); - QuestId questId46 = new QuestId(5246); - QuestRoot questRoot46 = new QuestRoot(); + obj233.Steps = list392; + reference284 = obj233; + questRoot42.QuestSequence = list388; + AddQuest(questId42, questRoot42); + QuestId questId43 = new QuestId(5246); + QuestRoot questRoot43 = new QuestRoot(); num = 1; - List list440 = new List(num); - CollectionsMarshal.SetCount(list440, num); - CollectionsMarshal.AsSpan(list440)[0] = "liza"; - questRoot46.Author = list440; - num = 7; - List list441 = new List(num); - CollectionsMarshal.SetCount(list441, num); - Span span233 = CollectionsMarshal.AsSpan(list441); - ref QuestSequence reference321 = ref span233[0]; - QuestSequence obj276 = new QuestSequence + List list393 = new List(num); + CollectionsMarshal.SetCount(list393, num); + span = CollectionsMarshal.AsSpan(list393); + index = 0; + span[index] = "liza"; + questRoot43.Author = list393; + index = 6; + List list394 = new List(index); + CollectionsMarshal.SetCount(list394, index); + span2 = CollectionsMarshal.AsSpan(list394); + num = 0; + ref QuestSequence reference285 = ref span2[num]; + QuestSequence obj234 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list442 = new List(num2); - CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052202u, new Vector3(-305.83655f, 9.519508f, 53.147095f), 1186) + List list395 = new List(num2); + CollectionsMarshal.SetCount(list395, num2); + span3 = CollectionsMarshal.AsSpan(list395); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052202u, new Vector3(-305.83655f, 9.519508f, 53.147095f), 1186) { StopDistance = 5f }; - obj276.Steps = list442; - reference321 = obj276; - ref QuestSequence reference322 = ref span233[1]; - QuestSequence obj277 = new QuestSequence + obj234.Steps = list395; + reference285 = obj234; + num++; + ref QuestSequence reference286 = ref span2[num]; + QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - Span span234 = CollectionsMarshal.AsSpan(list443); - span234[0] = new QuestStep(EInteractionType.Interact, 1052205u, new Vector3(-257.0382f, 30f, -569.05475f), 1191) + num3 = 3; + List list396 = new List(num3); + CollectionsMarshal.SetCount(list396, num3); + span3 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052205u, new Vector3(-257.0382f, 30f, -569.05475f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; - span234[1] = new QuestStep(EInteractionType.Interact, 1052204u, new Vector3(-158.25134f, 25.984516f, -521.90436f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052204u, new Vector3(-158.25134f, 25.984516f, -521.90436f), 1191) { Fly = true }; - span234[2] = new QuestStep(EInteractionType.Interact, 1052206u, new Vector3(-137.86536f, 35f, -568.29175f), 1191) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052206u, new Vector3(-137.86536f, 35f, -568.29175f), 1191) { Fly = true }; - obj277.Steps = list443; - reference322 = obj277; - ref QuestSequence reference323 = ref span233[2]; - QuestSequence obj278 = new QuestSequence + obj235.Steps = list396; + reference286 = obj235; + num++; + ref QuestSequence reference287 = ref span2[num]; + QuestSequence obj236 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list444 = new List(num2); - CollectionsMarshal.SetCount(list444, num2); - 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) + List list397 = new List(num2); + CollectionsMarshal.SetCount(list397, num2); + span3 = CollectionsMarshal.AsSpan(list397); + num3 = 0; + ref QuestStep reference288 = ref span3[num3]; + QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -373924,170 +451132,201 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - SkipConditions skipConditions23 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - 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(); - 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; - span235[1] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); - obj278.Steps = list444; - reference323 = obj278; - ref QuestSequence reference325 = ref span233[3]; - QuestSequence obj280 = new QuestSequence + SkipConditions skipConditions11 = new SkipConditions(); + SkipStepConditions skipStepConditions7 = new SkipStepConditions(); + num4 = 1; + List list398 = new List(num4); + CollectionsMarshal.SetCount(list398, num4); + span8 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span8[index2] = 1207; + skipStepConditions7.InTerritory = list398; + skipConditions11.StepIf = skipStepConditions7; + SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span8 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span8[num4] = 1207; + skipAetheryteCondition2.InTerritory = list399; + skipConditions11.AetheryteShortcutIf = skipAetheryteCondition2; + obj237.SkipConditions = skipConditions11; + reference288 = obj237; + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + obj236.Steps = list397; + reference287 = obj236; + num++; + ref QuestSequence reference289 = ref span2[num]; + QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list447 = new List(num2); - CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.Interact, 1052207u, new Vector3(-609.3385f, -3.3580189f, -504.5701f), 1191) + num3 = 1; + List list400 = new List(num3); + CollectionsMarshal.SetCount(list400, num3); + span3 = CollectionsMarshal.AsSpan(list400); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052207u, new Vector3(-609.3385f, -3.3580189f, -504.5701f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; - obj280.Steps = list447; - reference325 = obj280; - ref QuestSequence reference326 = ref span233[4]; - QuestSequence obj281 = new QuestSequence + obj238.Steps = list400; + reference289 = obj238; + num++; + ref QuestSequence reference290 = ref span2[num]; + QuestSequence obj239 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list448 = new List(num2); - CollectionsMarshal.SetCount(list448, num2); - ref QuestStep reference327 = ref CollectionsMarshal.AsSpan(list448)[0]; - QuestStep questStep32 = new QuestStep(EInteractionType.Duty, null, null, 1191); - DutyOptions obj282 = new DutyOptions + List list401 = new List(num2); + CollectionsMarshal.SetCount(list401, num2); + span3 = CollectionsMarshal.AsSpan(list401); + num3 = 0; + ref QuestStep reference291 = ref span3[num3]; + QuestStep questStep28 = new QuestStep(EInteractionType.Duty, null, null, 1191); + DutyOptions obj240 = new DutyOptions { Enabled = true, ContentFinderConditionId = 1008u }; - num3 = 2; - List list449 = new List(num3); - CollectionsMarshal.SetCount(list449, num3); - Span span236 = CollectionsMarshal.AsSpan(list449); - span236[0] = "(boss 2) Requires vbm's auto-turn gaze option"; - span236[1] = "(boss 3) Dashes (such as on SMN) will dash into the hole"; - obj282.Notes = list449; - questStep32.DutyOptions = obj282; - reference327 = questStep32; - obj281.Steps = list448; - reference326 = obj281; - span233[5] = new QuestSequence - { - Sequence = 5 - }; - ref QuestSequence reference328 = ref span233[6]; - QuestSequence obj283 = new QuestSequence + num4 = 2; + List list402 = new List(num4); + CollectionsMarshal.SetCount(list402, num4); + span = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span[index2] = "(boss 2) Requires vbm's auto-turn gaze option"; + index2++; + span[index2] = "(boss 3) Dashes (such as on SMN) will dash into the hole"; + obj240.Notes = list402; + questStep28.DutyOptions = obj240; + reference291 = questStep28; + obj239.Steps = list401; + reference290 = obj239; + num++; + ref QuestSequence reference292 = ref span2[num]; + QuestSequence obj241 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list450 = new List(num2); - CollectionsMarshal.SetCount(list450, num2); - CollectionsMarshal.AsSpan(list450)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052213u, new Vector3(117.02136f, 12.5f, -67.826416f), 1254) + num3 = 1; + List list403 = new List(num3); + CollectionsMarshal.SetCount(list403, num3); + span3 = CollectionsMarshal.AsSpan(list403); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052213u, new Vector3(117.02136f, 12.5f, -67.826416f), 1254) { StopDistance = 6f }; - obj283.Steps = list450; - reference328 = obj283; - questRoot46.QuestSequence = list441; - AddQuest(questId46, questRoot46); - QuestId questId47 = new QuestId(5247); - QuestRoot questRoot47 = new QuestRoot(); + obj241.Steps = list403; + reference292 = obj241; + questRoot43.QuestSequence = list394; + AddQuest(questId43, questRoot43); + QuestId questId44 = new QuestId(5247); + QuestRoot questRoot44 = new QuestRoot(); num = 1; - List list451 = new List(num); - CollectionsMarshal.SetCount(list451, num); - CollectionsMarshal.AsSpan(list451)[0] = "liza"; - questRoot47.Author = list451; - num = 6; - List list452 = new List(num); - CollectionsMarshal.SetCount(list452, num); - Span span237 = CollectionsMarshal.AsSpan(list452); - ref QuestSequence reference329 = ref span237[0]; - QuestSequence obj284 = new QuestSequence + List list404 = new List(num); + CollectionsMarshal.SetCount(list404, num); + span = CollectionsMarshal.AsSpan(list404); + index = 0; + span[index] = "liza"; + questRoot44.Author = list404; + index = 6; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + span2 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref QuestSequence reference293 = ref span2[num]; + QuestSequence obj242 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052217u, new Vector3(118.242065f, 12.5f, -69.0166f), 1254) + List list406 = new List(num2); + CollectionsMarshal.SetCount(list406, num2); + span3 = CollectionsMarshal.AsSpan(list406); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052217u, new Vector3(118.242065f, 12.5f, -69.0166f), 1254) { StopDistance = 6f }; - obj284.Steps = list453; - reference329 = obj284; - ref QuestSequence reference330 = ref span237[1]; - QuestSequence obj285 = new QuestSequence + obj242.Steps = list406; + reference293 = obj242; + num++; + ref QuestSequence reference294 = ref span2[num]; + QuestSequence obj243 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list454 = new List(num2); - CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.Interact, 2014471u, new Vector3(39.32251f, 13.260071f, 51.865356f), 1254); - obj285.Steps = list454; - reference330 = obj285; - ref QuestSequence reference331 = ref span237[2]; - QuestSequence obj286 = new QuestSequence + num3 = 1; + List list407 = new List(num3); + CollectionsMarshal.SetCount(list407, num3); + span3 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014471u, new Vector3(39.32251f, 13.260071f, 51.865356f), 1254); + obj243.Steps = list407; + reference294 = obj243; + num++; + ref QuestSequence reference295 = ref span2[num]; + QuestSequence obj244 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 2014472u, new Vector3(101.8844f, 12.588623f, 130.44934f), 1254); - obj286.Steps = list455; - reference331 = obj286; - ref QuestSequence reference332 = ref span237[3]; - QuestSequence obj287 = new QuestSequence + List list408 = new List(num2); + CollectionsMarshal.SetCount(list408, num2); + span3 = CollectionsMarshal.AsSpan(list408); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 2014472u, new Vector3(101.8844f, 12.588623f, 130.44934f), 1254); + obj244.Steps = list408; + reference295 = obj244; + num++; + ref QuestSequence reference296 = ref span2[num]; + QuestSequence obj245 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list456 = new List(num2); - CollectionsMarshal.SetCount(list456, num2); - CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.Interact, 2014473u, new Vector3(39.597046f, 13.260071f, 53.45227f), 1254); - obj287.Steps = list456; - reference332 = obj287; - ref QuestSequence reference333 = ref span237[4]; - QuestSequence obj288 = new QuestSequence + num3 = 1; + List list409 = new List(num3); + CollectionsMarshal.SetCount(list409, num3); + span3 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014473u, new Vector3(39.597046f, 13.260071f, 53.45227f), 1254); + obj245.Steps = list409; + reference296 = obj245; + num++; + ref QuestSequence reference297 = ref span2[num]; + QuestSequence obj246 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1052227u, new Vector3(-581.2009f, -1.7638817f, -505.45514f), 1191) + List list410 = new List(num2); + CollectionsMarshal.SetCount(list410, num2); + span3 = CollectionsMarshal.AsSpan(list410); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052227u, new Vector3(-581.2009f, -1.7638817f, -505.45514f), 1191) { StopDistance = 5f }; - obj288.Steps = list457; - reference333 = obj288; - ref QuestSequence reference334 = ref span237[5]; - QuestSequence obj289 = new QuestSequence + obj246.Steps = list410; + reference297 = obj246; + num++; + ref QuestSequence reference298 = ref span2[num]; + QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list458 = new List(num2); - CollectionsMarshal.SetCount(list458, num2); - Span span238 = CollectionsMarshal.AsSpan(list458); - ref QuestStep reference335 = ref span238[0]; - QuestStep obj290 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + num3 = 2; + List list411 = new List(num3); + CollectionsMarshal.SetCount(list411, num3); + span3 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + ref QuestStep reference299 = ref span3[num2]; + QuestStep obj248 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -374097,199 +451336,251 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - SkipConditions skipConditions24 = new SkipConditions(); - SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - 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(); - 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; - 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; - AddQuest(questId47, questRoot47); - QuestId questId48 = new QuestId(5248); - QuestRoot questRoot48 = new QuestRoot(); + SkipConditions skipConditions12 = new SkipConditions(); + SkipStepConditions skipStepConditions8 = new SkipStepConditions(); + index2 = 1; + List list412 = new List(index2); + CollectionsMarshal.SetCount(list412, index2); + span8 = CollectionsMarshal.AsSpan(list412); + num4 = 0; + span8[num4] = 1207; + skipStepConditions8.InTerritory = list412; + skipConditions12.StepIf = skipStepConditions8; + SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); + num4 = 1; + List list413 = new List(num4); + CollectionsMarshal.SetCount(list413, num4); + span8 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + span8[index2] = 1207; + skipAetheryteCondition3.InTerritory = list413; + skipConditions12.AetheryteShortcutIf = skipAetheryteCondition3; + obj248.SkipConditions = skipConditions12; + reference299 = obj248; + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + obj247.Steps = list411; + reference298 = obj247; + questRoot44.QuestSequence = list405; + AddQuest(questId44, questRoot44); + QuestId questId45 = new QuestId(5248); + QuestRoot questRoot45 = new QuestRoot(); num = 1; - List list461 = new List(num); - CollectionsMarshal.SetCount(list461, num); - CollectionsMarshal.AsSpan(list461)[0] = "liza"; - questRoot48.Author = list461; - num = 6; - List list462 = new List(num); - CollectionsMarshal.SetCount(list462, num); - Span span239 = CollectionsMarshal.AsSpan(list462); - ref QuestSequence reference336 = ref span239[0]; - QuestSequence obj291 = new QuestSequence + List list414 = new List(num); + CollectionsMarshal.SetCount(list414, num); + span = CollectionsMarshal.AsSpan(list414); + index = 0; + span[index] = "liza"; + questRoot45.Author = list414; + index = 6; + List list415 = new List(index); + CollectionsMarshal.SetCount(list415, index); + span2 = CollectionsMarshal.AsSpan(list415); + num = 0; + ref QuestSequence reference300 = ref span2[num]; + QuestSequence obj249 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list463 = new List(num2); - CollectionsMarshal.SetCount(list463, num2); - CollectionsMarshal.AsSpan(list463)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052233u, new Vector3(-0.80877686f, -4.1909516E-08f, 6.42395f), 1207) + List list416 = new List(num2); + CollectionsMarshal.SetCount(list416, num2); + span3 = CollectionsMarshal.AsSpan(list416); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052233u, new Vector3(-0.80877686f, -4.1909516E-08f, 6.42395f), 1207) { StopDistance = 5f }; - obj291.Steps = list463; - reference336 = obj291; - ref QuestSequence reference337 = ref span239[1]; - QuestSequence obj292 = new QuestSequence + obj249.Steps = list416; + reference300 = obj249; + num++; + ref QuestSequence reference301 = ref span2[num]; + QuestSequence obj250 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list464 = new List(num2); - CollectionsMarshal.SetCount(list464, num2); - Span span240 = CollectionsMarshal.AsSpan(list464); - span240[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) + num3 = 2; + List list417 = new List(num3); + CollectionsMarshal.SetCount(list417, num3); + span3 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - span240[1] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) { StopDistance = 5f }; - obj292.Steps = list464; - reference337 = obj292; - ref QuestSequence reference338 = ref span239[2]; - QuestSequence obj293 = new QuestSequence + obj250.Steps = list417; + reference301 = obj250; + num++; + ref QuestSequence reference302 = ref span2[num]; + QuestSequence obj251 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list465 = new List(num2); - CollectionsMarshal.SetCount(list465, num2); - Span span241 = CollectionsMarshal.AsSpan(list465); - span241[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) + List list418 = new List(num2); + CollectionsMarshal.SetCount(list418, num2); + span3 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; - span241[1] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); - obj293.Steps = list465; - reference338 = obj293; - ref QuestSequence reference339 = ref span239[3]; - QuestSequence obj294 = new QuestSequence + num3++; + span3[num3] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); + obj251.Steps = list418; + reference302 = obj251; + num++; + ref QuestSequence reference303 = ref span2[num]; + QuestSequence obj252 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list466 = new List(num2); - CollectionsMarshal.SetCount(list466, num2); - CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.Interact, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); - obj294.Steps = list466; - reference339 = obj294; - ref QuestSequence reference340 = ref span239[4]; - QuestSequence obj295 = new QuestSequence + num3 = 1; + List list419 = new List(num3); + CollectionsMarshal.SetCount(list419, num3); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); + obj252.Steps = list419; + reference303 = obj252; + num++; + ref QuestSequence reference304 = ref span2[num]; + QuestSequence obj253 = new QuestSequence { Sequence = 4 }; num2 = 4; - List list467 = new List(num2); - CollectionsMarshal.SetCount(list467, num2); - 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) + List list420 = new List(num2); + CollectionsMarshal.SetCount(list420, num2); + span3 = CollectionsMarshal.AsSpan(list420); + num3 = 0; + ref QuestStep reference305 = ref span3[num3]; + QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1052247u, new Vector3(224.96375f, -16.329428f, -527.6417f), 1190) { Fly = true }; - num3 = 6; - List list468 = new List(num3); - CollectionsMarshal.SetCount(list468, num3); - Span span243 = CollectionsMarshal.AsSpan(list468); - span243[0] = null; - span243[1] = null; - span243[2] = null; - span243[3] = null; - span243[4] = null; - span243[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj296.CompletionQuestVariablesFlags = list468; - num3 = 1; - List list469 = new List(num3); - CollectionsMarshal.SetCount(list469, num3); - CollectionsMarshal.AsSpan(list469)[0] = new DialogueChoice + index2 = 6; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + span6 = CollectionsMarshal.AsSpan(list421); + 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)1, 0, EQuestWorkMode.Bitwise); + obj254.CompletionQuestVariablesFlags = list421; + num4 = 1; + List list422 = new List(num4); + CollectionsMarshal.SetCount(list422, num4); + span7 = CollectionsMarshal.AsSpan(list422); + index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMG105_05248_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMG105_05248_A2_000_002") }; - obj296.DialogueChoices = list469; - reference341 = obj296; - ref QuestStep reference342 = ref span242[1]; - QuestStep obj297 = new QuestStep(EInteractionType.Interact, 1052245u, new Vector3(276.78333f, -16.53927f, -562.7985f), 1190) + obj254.DialogueChoices = list422; + reference305 = obj254; + num3++; + ref QuestStep reference306 = ref span3[num3]; + QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1052245u, new Vector3(276.78333f, -16.53927f, -562.7985f), 1190) { Fly = true }; - num3 = 6; - List list470 = new List(num3); - CollectionsMarshal.SetCount(list470, num3); - Span span244 = CollectionsMarshal.AsSpan(list470); - span244[0] = null; - span244[1] = null; - span244[2] = null; - span244[3] = null; - span244[4] = null; - span244[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj297.CompletionQuestVariablesFlags = list470; - reference342 = obj297; - ref QuestStep reference343 = ref span242[2]; - QuestStep obj298 = new QuestStep(EInteractionType.Interact, 1052243u, new Vector3(332.26514f, -14.986355f, -558.95325f), 1190) + index2 = 6; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + span6 = CollectionsMarshal.AsSpan(list423); + 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); + obj255.CompletionQuestVariablesFlags = list423; + reference306 = obj255; + num3++; + ref QuestStep reference307 = ref span3[num3]; + QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1052243u, new Vector3(332.26514f, -14.986355f, -558.95325f), 1190) { Fly = true }; - num3 = 6; - List list471 = new List(num3); - CollectionsMarshal.SetCount(list471, num3); - Span span245 = CollectionsMarshal.AsSpan(list471); - span245[0] = null; - span245[1] = null; - span245[2] = null; - span245[3] = null; - span245[4] = null; - span245[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj298.CompletionQuestVariablesFlags = list471; - reference343 = obj298; - ref QuestStep reference344 = ref span242[3]; - QuestStep obj299 = new QuestStep(EInteractionType.Interact, 1052239u, new Vector3(354.57385f, -17.082237f, -452.5063f), 1190) + num4 = 6; + List list424 = new List(num4); + CollectionsMarshal.SetCount(list424, num4); + span6 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = null; + index2++; + span6[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj256.CompletionQuestVariablesFlags = list424; + reference307 = obj256; + num3++; + ref QuestStep reference308 = ref span3[num3]; + QuestStep obj257 = new QuestStep(EInteractionType.Interact, 1052239u, new Vector3(354.57385f, -17.082237f, -452.5063f), 1190) { Fly = true }; - num3 = 6; - List list472 = new List(num3); - CollectionsMarshal.SetCount(list472, num3); - Span span246 = CollectionsMarshal.AsSpan(list472); - span246[0] = null; - span246[1] = null; - span246[2] = null; - span246[3] = null; - span246[4] = null; - span246[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj299.CompletionQuestVariablesFlags = list472; - reference344 = obj299; - obj295.Steps = list467; - reference340 = obj295; - ref QuestSequence reference345 = ref span239[5]; - QuestSequence obj300 = new QuestSequence + index2 = 6; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + span6 = CollectionsMarshal.AsSpan(list425); + 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)4, 0, EQuestWorkMode.Bitwise); + obj257.CompletionQuestVariablesFlags = list425; + reference308 = obj257; + obj253.Steps = list420; + reference304 = obj253; + num++; + ref QuestSequence reference309 = ref span2[num]; + QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list473 = new List(num2); - CollectionsMarshal.SetCount(list473, num2); - Span span247 = CollectionsMarshal.AsSpan(list473); - span247[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.4884f, -15.679954f, -504.85742f), 1190) + num3 = 3; + List list426 = new List(num3); + CollectionsMarshal.SetCount(list426, num3); + span3 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.4884f, -15.679954f, -504.85742f), 1190) { SkipConditions = new SkipConditions { @@ -374299,7 +451590,8 @@ public static class AssemblyQuestLoader } } }; - span247[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) { Fly = true, SkipConditions = new SkipConditions @@ -374310,113 +451602,138 @@ public static class AssemblyQuestLoader } } }; - span247[2] = new QuestStep(EInteractionType.CompleteQuest, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); - obj300.Steps = list473; - reference345 = obj300; - questRoot48.QuestSequence = list462; - AddQuest(questId48, questRoot48); - QuestId questId49 = new QuestId(5249); - QuestRoot questRoot49 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); + obj258.Steps = list426; + reference309 = obj258; + questRoot45.QuestSequence = list415; + AddQuest(questId45, questRoot45); + QuestId questId46 = new QuestId(5249); + QuestRoot questRoot46 = new QuestRoot(); num = 1; - List list474 = new List(num); - CollectionsMarshal.SetCount(list474, num); - CollectionsMarshal.AsSpan(list474)[0] = "liza"; - questRoot49.Author = list474; - num = 6; - List list475 = new List(num); - CollectionsMarshal.SetCount(list475, num); - Span span248 = CollectionsMarshal.AsSpan(list475); - ref QuestSequence reference346 = ref span248[0]; - QuestSequence obj301 = new QuestSequence + List list427 = new List(num); + CollectionsMarshal.SetCount(list427, num); + span = CollectionsMarshal.AsSpan(list427); + index = 0; + span[index] = "liza"; + questRoot46.Author = list427; + index = 6; + List list428 = new List(index); + CollectionsMarshal.SetCount(list428, index); + span2 = CollectionsMarshal.AsSpan(list428); + num = 0; + ref QuestSequence reference310 = ref span2[num]; + QuestSequence obj259 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list476 = new List(num2); - CollectionsMarshal.SetCount(list476, num2); - CollectionsMarshal.AsSpan(list476)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); - obj301.Steps = list476; - reference346 = obj301; - ref QuestSequence reference347 = ref span248[1]; - QuestSequence obj302 = new QuestSequence + List list429 = new List(num2); + CollectionsMarshal.SetCount(list429, num2); + span3 = CollectionsMarshal.AsSpan(list429); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); + obj259.Steps = list429; + reference310 = obj259; + num++; + ref QuestSequence reference311 = ref span2[num]; + QuestSequence obj260 = new QuestSequence { Sequence = 1 }; - 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); + num3 = 1; + List list430 = new List(num3); + CollectionsMarshal.SetCount(list430, num3); + span3 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + ref QuestStep reference312 = ref span3[num2]; + QuestStep questStep29 = new QuestStep(EInteractionType.SinglePlayerDuty, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 4; - List list478 = new List(num3); - CollectionsMarshal.SetCount(list478, num3); - Span span249 = CollectionsMarshal.AsSpan(list478); - span249[0] = "(pre-fight) AI doesn't move to the Rroneeks or interact with them"; - span249[1] = "(phase 1/2) No VBM module, so doesn't target the leg, doesn't avoid AOEs and dies"; - span249[2] = "(phase 1) AI doesn't pull boss"; - span249[3] = "(phase 2) AI runs away with the stack marker; doesn't pick up orbs"; - singlePlayerDutyOptions.Notes = list478; - questStep33.SinglePlayerDutyOptions = singlePlayerDutyOptions; - reference348 = questStep33; - obj302.Steps = list477; - reference347 = obj302; - span248[2] = new QuestSequence + num4 = 4; + List list431 = new List(num4); + CollectionsMarshal.SetCount(list431, num4); + span = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span[index2] = "(pre-fight) AI doesn't move to the Rroneeks or interact with them"; + index2++; + span[index2] = "(phase 1/2) No VBM module, so doesn't target the leg, doesn't avoid AOEs and dies"; + index2++; + span[index2] = "(phase 1) AI doesn't pull boss"; + index2++; + span[index2] = "(phase 2) AI runs away with the stack marker; doesn't pick up orbs"; + singlePlayerDutyOptions.Notes = list431; + questStep29.SinglePlayerDutyOptions = singlePlayerDutyOptions; + reference312 = questStep29; + obj260.Steps = list430; + reference311 = obj260; + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference349 = ref span248[3]; - QuestSequence obj303 = new QuestSequence + num++; + ref QuestSequence reference313 = ref span2[num]; + QuestSequence obj261 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list479 = new List(num2); - CollectionsMarshal.SetCount(list479, num2); - CollectionsMarshal.AsSpan(list479)[0] = new QuestStep(EInteractionType.Interact, 1052252u, new Vector3(299.15308f, -15.629961f, -518.4253f), 1190) + List list432 = new List(num2); + CollectionsMarshal.SetCount(list432, num2); + span3 = CollectionsMarshal.AsSpan(list432); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.Interact, 1052252u, new Vector3(299.15308f, -15.629961f, -518.4253f), 1190) { StopDistance = 5f }; - obj303.Steps = list479; - reference349 = obj303; - ref QuestSequence reference350 = ref span248[4]; - QuestSequence obj304 = new QuestSequence + obj261.Steps = list432; + reference313 = obj261; + num++; + ref QuestSequence reference314 = ref span2[num]; + QuestSequence obj262 = new QuestSequence { Sequence = 4 }; - 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) + num3 = 1; + List list433 = new List(num3); + CollectionsMarshal.SetCount(list433, num3); + span3 = CollectionsMarshal.AsSpan(list433); + num2 = 0; + ref QuestStep reference315 = ref span3[num2]; + QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1052255u, new Vector3(-123.91852f, 16.187744f, -296.80328f), 1190) { Fly = true }; - num3 = 1; - List list481 = new List(num3); - CollectionsMarshal.SetCount(list481, num3); - CollectionsMarshal.AsSpan(list481)[0] = new DialogueChoice + index2 = 1; + List list434 = new List(index2); + CollectionsMarshal.SetCount(list434, index2); + span7 = CollectionsMarshal.AsSpan(list434); + num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMG106_05249_SYSTEM_000_402") }; - obj305.DialogueChoices = list481; - reference351 = obj305; - obj304.Steps = list480; - reference350 = obj304; - ref QuestSequence reference352 = ref span248[5]; - QuestSequence obj306 = new QuestSequence + obj263.DialogueChoices = list434; + reference315 = obj263; + obj262.Steps = list433; + reference314 = obj262; + num++; + ref QuestSequence reference316 = ref span2[num]; + QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list482 = new List(num2); - CollectionsMarshal.SetCount(list482, num2); - CollectionsMarshal.AsSpan(list482)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052259u, new Vector3(-171.03839f, 15.75679f, -372.45752f), 1190); - obj306.Steps = list482; - reference352 = obj306; - questRoot49.QuestSequence = list475; - AddQuest(questId49, questRoot49); + List list435 = new List(num2); + CollectionsMarshal.SetCount(list435, num2); + span3 = CollectionsMarshal.AsSpan(list435); + num3 = 0; + span3[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052259u, new Vector3(-171.03839f, 15.75679f, -372.45752f), 1190); + obj264.Steps = list435; + reference316 = obj264; + questRoot46.QuestSequence = list428; + AddQuest(questId46, questRoot46); } private static void LoadQuests105() @@ -374426,13 +451743,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -374440,19 +451760,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052261u, new Vector3(-172.25916f, 15.73959f, -376.1197f), 1190); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052261u, new Vector3(-172.25916f, 15.73959f, -376.1197f), 1190); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -374468,22 +451792,28 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1207; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 1207; skipStepConditions.InTerritory = list5; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 1207; + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + span4 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span4[num3] = 1207; skipAetheryteCondition.InTerritory = list6; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj3.SkipConditions = skipConditions; reference3 = obj3; - span2[1] = new QuestStep(EInteractionType.Interact, 1052521u, new Vector3(-1.8463745f, -3.4458935E-08f, 5.8441772f), 1207); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052521u, new Vector3(-1.8463745f, -3.4458935E-08f, 5.8441772f), 1207); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -374491,21 +451821,27 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1052269u, new Vector3(-2.456726f, -7.2107476E-08f, 8.987488f), 1207); + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052269u, new Vector3(-2.456726f, -7.2107476E-08f, 8.987488f), 1207); obj4.Steps = list7; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1052271u, new Vector3(-0.41204834f, -3.9115548E-08f, 6.240906f), 1207); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052271u, new Vector3(-0.41204834f, -3.9115548E-08f, 6.240906f), 1207); obj5.Steps = list8; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -374513,21 +451849,26 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1052272u, new Vector3(0.19836426f, 0.00054359436f, -94.98743f), 1186) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052272u, new Vector3(0.19836426f, 0.00054359436f, -94.98743f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; obj6.Steps = list9; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052267u, new Vector3(-3.7080078f, -7.4505806E-08f, 9.170593f), 1207) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052267u, new Vector3(-3.7080078f, -7.4505806E-08f, 9.170593f), 1207) { StopDistance = 7f }; @@ -374540,15 +451881,18 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "Starr"; + span = CollectionsMarshal.AsSpan(list11); + index = 0; + span[index] = "Starr"; questRoot2.Author = list11; questRoot2.IsSeasonalQuest = true; questRoot2.SeasonalQuestExpiry = new DateTime(2025, 2, 17, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference8 = ref span3[0]; + index = 8; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + span2 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -374556,7 +451900,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list13)[0]; + span3 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference9 = ref span3[index2]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -374574,22 +451920,27 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 133; + span4 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span4[index3] = 133; obj10.InTerritory = list14; skipConditions2.AetheryteShortcutIf = obj10; obj9.SkipConditions = skipConditions2; reference9 = obj9; obj8.Steps = list13; reference8 = obj8; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1052368u, new Vector3(-273.02972f, 8.083828f, -175.49408f), 133) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + span3 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052368u, new Vector3(-273.02972f, 8.083828f, -175.49408f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374599,7 +451950,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list15; reference10 = obj11; - ref QuestSequence reference11 = ref span3[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -374607,8 +451959,9 @@ public static class AssemblyQuestLoader num2 = 5; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span4 = CollectionsMarshal.AsSpan(list16); - ref QuestStep reference12 = ref span4[0]; + span3 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference12 = ref span3[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 1052371u, new Vector3(-83.45166f, 7.316897f, -125.474915f), 133) { AethernetShortcut = new AethernetShortcut @@ -374617,61 +451970,86 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); + index3 = 6; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); 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); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list17; reference12 = obj13; - ref QuestStep reference13 = ref span4[1]; + index2++; + ref QuestStep reference13 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052370u, new Vector3(-63.889526f, 7.1254845f, -114.85474f), 133); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span6 = CollectionsMarshal.AsSpan(list18); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list18; reference13 = questStep; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-52.803135f, 7.148118f, -115.562614f), 133); - span4[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); - ref QuestStep reference14 = ref span4[4]; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-52.803135f, 7.148118f, -115.562614f), 133); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); + index2++; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1052369u, new Vector3(-41.33673f, 6.2679696f, -104.14282f), 133); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + span5 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list19; reference14 = questStep2; obj12.Steps = list16; reference11 = obj12; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); - span8[1] = new QuestStep(EInteractionType.Interact, 2014516u, new Vector3(81.651f, 6.0272217f, -101.1521f), 133) + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014516u, new Vector3(81.651f, 6.0272217f, -101.1521f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374681,7 +452059,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference15 = obj14; - ref QuestSequence reference16 = ref span3[4]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 4 @@ -374689,22 +452068,30 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span9 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference17 = ref span9[0]; + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference17 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1052377u, new Vector3(138.01782f, 13.595509f, -102.64752f), 133); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference17 = questStep3; - ref QuestStep reference18 = ref span9[1]; + index2++; + ref QuestStep reference18 = ref span3[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1052375u, new Vector3(-68.77246f, 6.88836f, -134.3252f), 133) { AethernetShortcut = new AethernetShortcut @@ -374713,19 +452100,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span11 = CollectionsMarshal.AsSpan(list23); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span5 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list23; reference18 = obj16; - ref QuestStep reference19 = ref span9[2]; + index2++; + ref QuestStep reference19 = ref span3[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1052380u, new Vector3(10.391357f, 0.5406719f, -1.7853394f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -374740,35 +452134,46 @@ public static class AssemblyQuestLoader num3 = 2; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = 132; - span12[1] = 133; + span4 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span4[index3] = 132; + index3++; + span4[index3] = 133; skipAetheryteCondition2.InTerritory = list24; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj17.SkipConditions = skipConditions3; - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span13 = CollectionsMarshal.AsSpan(list25); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + span5 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list25; reference19 = obj17; obj15.Steps = list21; reference16 = obj15; - ref QuestSequence reference20 = ref span3[5]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + span3 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374785,7 +452190,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list26; reference20 = obj18; - ref QuestSequence reference21 = ref span3[6]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 6 @@ -374793,18 +452199,23 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133); + span3 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133); obj19.Steps = list27; reference21 = obj19; - ref QuestSequence reference22 = ref span3[7]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374821,13 +452232,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list29); + index = 0; + span[index] = "liza"; questRoot3.Author = list29; - num = 6; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span14[0]; + index = 6; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + span2 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -374835,7 +452249,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048609u, new Vector3(-10.696594f, 2.4000525f, -31.174255f), 962) + span3 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048609u, new Vector3(-10.696594f, 2.4000525f, -31.174255f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -374848,21 +452264,25 @@ public static class AssemblyQuestLoader }; obj21.Steps = list31; reference23 = obj21; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + span3 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj22.Steps = list32; reference24 = obj22; - ref QuestSequence reference25 = ref span14[2]; + num++; + ref QuestSequence reference25 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -374870,31 +452290,38 @@ public static class AssemblyQuestLoader num2 = 3; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) + span3 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - span15[1] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) { TargetTerritoryId = (ushort)1025 }; - span15[2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); obj23.Steps = list33; reference25 = obj23; - ref QuestSequence reference26 = ref span14[3]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 2014542u, new Vector3(104.57007f, -0.015319824f, 46.25f), 1025); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + span3 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014542u, new Vector3(104.57007f, -0.015319824f, 46.25f), 1025); obj24.Steps = list34; reference26 = obj24; - ref QuestSequence reference27 = ref span14[4]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -374902,18 +452329,23 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); obj25.Steps = list35; reference27 = obj25; - ref QuestSequence reference28 = ref span14[5]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + span3 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; @@ -374926,13 +452358,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list37); + index = 0; + span[index] = "Censored"; questRoot4.Author = list37; - num = 4; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span16 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference29 = ref span16[0]; + index = 4; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + span2 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -374940,7 +452375,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052591u, new Vector3(71.854614f, -16.247f, 118.242065f), 962) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052591u, new Vector3(71.854614f, -16.247f, 118.242065f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -374958,21 +452395,25 @@ public static class AssemblyQuestLoader }; obj27.Steps = list39; reference29 = obj27; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2014652u, new Vector3(-648.73737f, 130.0221f, 717.3723f), 959) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + span3 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014652u, new Vector3(-648.73737f, 130.0221f, 717.3723f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj28.Steps = list40; reference30 = obj28; - ref QuestSequence reference31 = ref span16[2]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -374980,21 +452421,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1052592u, new Vector3(25.680908f, -137.41669f, -411.30695f), 959) + span3 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052592u, new Vector3(25.680908f, -137.41669f, -411.30695f), 959) { Fly = true }; obj29.Steps = list41; reference31 = obj29; - ref QuestSequence reference32 = ref span16[3]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) { NextQuestId = new QuestId(5254) }; @@ -375007,13 +452453,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list43); + index = 0; + span[index] = "liza"; questRoot5.Author = list43; - num = 7; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span17 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span17[0]; + index = 7; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + span2 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -375021,24 +452470,30 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); obj31.Steps = list45; reference33 = obj31; - ref QuestSequence reference34 = ref span17[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-51.255127f, -3.3378603E-06f, -72.64819f), 1237) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + span3 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-51.255127f, -3.3378603E-06f, -72.64819f), 1237) { StopDistance = 7f }; obj32.Steps = list46; reference34 = obj32; - ref QuestSequence reference35 = ref span17[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -375046,27 +452501,33 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-40.065205f, 11.930657f, -95.35249f), 1237) + span3 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-40.065205f, 11.930657f, -95.35249f), 1237) { StopDistance = 0.5f }; obj33.Steps = list47; reference35 = obj33; - ref QuestSequence reference36 = ref span17[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-425.39127f, 47.861256f, 212.72206f), 1237) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-425.39127f, 47.861256f, 212.72206f), 1237) { StopDistance = 0.5f }; obj34.Steps = list48; reference36 = obj34; - ref QuestSequence reference37 = ref span17[4]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -375074,52 +452535,65 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(533.5678f, 39.006783f, 167.32143f), 1237) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(533.5678f, 39.006783f, 167.32143f), 1237) { StopDistance = 0.5f }; obj35.Steps = list49; reference37 = obj35; - ref QuestSequence reference38 = ref span17[5]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference39 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014657u, new Vector3(533.53174f, 38.986816f, 167.25415f), 1237); num3 = 2; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span18 = CollectionsMarshal.AsSpan(list51); - span18[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK102_05254_Q2_000_000") }; - span18[1] = new DialogueChoice + index3++; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWK102_05254_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGWK102_05254_A3_000_001") }; questStep4.DialogueChoices = list51; - num3 = 5; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span19 = CollectionsMarshal.AsSpan(list52); - span19[0] = 0u; - span19[1] = 1u; - span19[2] = 2u; - span19[3] = 3u; - span19[4] = 4u; + index3 = 5; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span7 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span7[num3] = 0u; + num3++; + span7[num3] = 1u; + num3++; + span7[num3] = 2u; + num3++; + span7[num3] = 3u; + num3++; + span7[num3] = 4u; questStep4.PointMenuChoices = list52; reference39 = questStep4; obj36.Steps = list50; reference38 = obj36; - ref QuestSequence reference40 = ref span17[6]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -375127,12 +452601,14 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span20 = CollectionsMarshal.AsSpan(list53); - span20[0] = new QuestStep(EInteractionType.Action, null, null, 1237) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Action, null, null, 1237) { Action = EAction.DutyAction1 }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) { NextQuestId = new QuestId(5409) }; @@ -375145,21 +452621,26 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list54); + index = 0; + span[index] = "liza"; questRoot6.Author = list54; - num = 7; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span21 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference41 = ref span21[0]; + index = 7; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + span2 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052565u, new Vector3(706.69104f, -133.174f, 530.7545f), 1189) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052565u, new Vector3(706.69104f, -133.174f, 530.7545f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -375172,7 +452653,8 @@ public static class AssemblyQuestLoader }; obj38.Steps = list56; reference41 = obj38; - ref QuestSequence reference42 = ref span21[1]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -375180,29 +452662,35 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + span3 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true }; obj39.Steps = list57; reference42 = obj39; - ref QuestSequence reference43 = ref span21[2]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span22 = CollectionsMarshal.AsSpan(list58); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(562.12634f, -137.174f, 563.6532f), 1189) + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + span3 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(562.12634f, -137.174f, 563.6532f), 1189) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.Interact, 1052568u, new Vector3(562.46277f, -137.17401f, 565.1482f), 1189); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052568u, new Vector3(562.46277f, -137.17401f, 565.1482f), 1189); obj40.Steps = list58; reference43 = obj40; - ref QuestSequence reference44 = ref span21[3]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -375210,24 +452698,33 @@ public static class AssemblyQuestLoader num2 = 3; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span23 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference45 = ref span23[0]; + span3 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference45 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1052569u, new Vector3(561.94385f, -137.17401f, 561.9745f), 1189); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span24 = CollectionsMarshal.AsSpan(list60); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list60; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + span6 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q1_000_000"), @@ -375235,23 +452732,32 @@ public static class AssemblyQuestLoader }; questStep5.DialogueChoices = list61; reference45 = questStep5; - ref QuestStep reference46 = ref span23[1]; + index2++; + ref QuestStep reference46 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1053754u, new Vector3(559.8688f, -137.174f, 563.9581f), 1189); num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span25 = CollectionsMarshal.AsSpan(list62); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list62; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + span6 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q2_000_000"), @@ -375259,23 +452765,32 @@ public static class AssemblyQuestLoader }; questStep6.DialogueChoices = list63; reference46 = questStep6; - ref QuestStep reference47 = ref span23[2]; + index2++; + ref QuestStep reference47 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1053755u, new Vector3(564.6599f, -137.174f, 563.8971f), 1189); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list64; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice + index3 = 1; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + span6 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q3_000_000"), @@ -375285,21 +452800,25 @@ public static class AssemblyQuestLoader reference47 = questStep7; obj41.Steps = list59; reference44 = obj41; - ref QuestSequence reference48 = ref span21[4]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1053756u, new Vector3(686.48804f, -137.17401f, 552.697f), 1189) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053756u, new Vector3(686.48804f, -137.17401f, 552.697f), 1189) { Fly = true }; obj42.Steps = list66; reference48 = obj42; - ref QuestSequence reference49 = ref span21[5]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -375307,56 +452826,70 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + span3 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true }; obj43.Steps = list67; reference49 = obj43; - ref QuestSequence reference50 = ref span21[6]; + num++; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span27 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference51 = ref span27[0]; + index2 = 3; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + span3 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference51 = ref span3[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = EExtendedClassJob.Miner; + Span span8 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep8.RequiredQuestAcceptedJob = list69; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span9 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48009u, ItemCount = 3 }; questStep8.ItemsToGather = list70; reference51 = questStep8; - ref QuestStep reference52 = ref span27[1]; + num2++; + ref QuestStep reference52 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep9.RequiredQuestAcceptedJob = list71; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheredItem + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span9 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48010u, ItemCount = 3 }; questStep9.ItemsToGather = list72; reference52 = questStep9; - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -375370,13 +452903,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list73); + index = 0; + span[index] = "liza"; questRoot7.Author = list73; - num = 4; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span28 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference53 = ref span28[0]; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + span2 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -375384,24 +452920,30 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + span3 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj45.Steps = list75; reference53 = obj45; - ref QuestSequence reference54 = ref span28[1]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) { Fly = true }; obj46.Steps = list76; reference54 = obj46; - ref QuestSequence reference55 = ref span28[2]; + num++; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -375409,57 +452951,71 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span29 = CollectionsMarshal.AsSpan(list77); - ref QuestStep reference56 = ref span29[0]; + span3 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep10.RequiredQuestAcceptedJob = list78; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new GatheredItem + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + span9 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48012u, ItemCount = 3 }; questStep10.ItemsToGather = list79; reference56 = questStep10; - ref QuestStep reference57 = ref span29[1]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep11.RequiredQuestAcceptedJob = list80; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheredItem + index3 = 1; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + span9 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48013u, ItemCount = 3 }; questStep11.ItemsToGather = list81; reference57 = questStep11; - span29[2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) { Fly = true, Land = true }; obj47.Steps = list77; reference55 = obj47; - ref QuestSequence reference58 = ref span28[3]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -375473,13 +453029,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list83); + index = 0; + span[index] = "Theo"; questRoot8.Author = list83; - num = 6; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span30 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference59 = ref span30[0]; + index = 6; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + span2 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -375487,24 +453046,30 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + span3 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj49.Steps = list85; reference59 = obj49; - ref QuestSequence reference60 = ref span30[1]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + span3 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj50.Steps = list86; reference60 = obj50; - ref QuestSequence reference61 = ref span30[2]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -375512,7 +453077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1053765u, new Vector3(-256.21423f, 1.9912608E-05f, 98.527466f), 1185) + span3 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053765u, new Vector3(-256.21423f, 1.9912608E-05f, 98.527466f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -375530,18 +453097,22 @@ public static class AssemblyQuestLoader }; obj51.Steps = list87; reference61 = obj51; - ref QuestSequence reference62 = ref span30[3]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1053767u, new Vector3(-219.2569f, 39.99999f, -10.8797f), 1185); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + span3 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053767u, new Vector3(-219.2569f, 39.99999f, -10.8797f), 1185); obj52.Steps = list88; reference62 = obj52; - ref QuestSequence reference63 = ref span30[4]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 4 @@ -375549,7 +453120,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1053770u, new Vector3(528.4962f, -150f, 739.89465f), 1189) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053770u, new Vector3(528.4962f, -150f, 739.89465f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375563,50 +453136,62 @@ public static class AssemblyQuestLoader }; obj53.Steps = list89; reference63 = obj53; - ref QuestSequence reference64 = ref span30[5]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span31 = CollectionsMarshal.AsSpan(list90); - ref QuestStep reference65 = ref span31[0]; + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference65 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep12.RequiredQuestAcceptedJob = list91; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheredItem + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + span9 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48015u, ItemCount = 3 }; questStep12.ItemsToGather = list92; reference65 = questStep12; - ref QuestStep reference66 = ref span31[1]; + num2++; + ref QuestStep reference66 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep13.RequiredQuestAcceptedJob = list93; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new GatheredItem + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + span9 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48016u, ItemCount = 3 }; questStep13.ItemsToGather = list94; reference66 = questStep13; - span31[2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375632,13 +453217,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list95); + index = 0; + span[index] = "Theo"; questRoot9.Author = list95; - num = 8; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span32 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference67 = ref span32[0]; + index = 8; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + span2 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -375646,21 +453234,26 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189) + span3 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189) { Fly = true }; obj55.Steps = list97; reference67 = obj55; - ref QuestSequence reference68 = ref span32[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + span3 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -375673,7 +453266,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list98; reference68 = obj56; - ref QuestSequence reference69 = ref span32[2]; + num++; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -375681,19 +453275,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191); + span3 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191); obj57.Steps = list99; reference69 = obj57; - ref QuestSequence reference70 = ref span32[3]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span33 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference71 = ref span33[0]; + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + span3 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference71 = ref span3[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 2014662u, new Vector3(28.94629f, 35.446655f, -330.73932f), 1191) { Fly = true @@ -375701,43 +453299,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list101 = new List>(num3); CollectionsMarshal.SetCount(list101, num3); - Span> span34 = CollectionsMarshal.AsSpan(list101); - ref List reference72 = ref span34[0]; + Span> span10 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + ref List reference72 = ref span10[index3]; int num4 = 1; List list102 = new List(num4); CollectionsMarshal.SetCount(list102, num4); - CollectionsMarshal.AsSpan(list102)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list102); + int index4 = 0; + span5[index4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference72 = list102; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; obj59.RequiredQuestVariables = list101; reference71 = obj59; - ref QuestStep reference73 = ref span33[1]; + num2++; + ref QuestStep reference73 = ref span3[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1053774u, new Vector3(10.055664f, 34.83803f, -387.2282f), 1191) { Fly = true }; - num3 = 6; - List> list103 = new List>(num3); - CollectionsMarshal.SetCount(list103, num3); - Span> span35 = CollectionsMarshal.AsSpan(list103); - ref List reference74 = ref span35[0]; - num4 = 1; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - CollectionsMarshal.AsSpan(list104)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list103 = new List>(index3); + CollectionsMarshal.SetCount(list103, index3); + span10 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + ref List reference74 = ref span10[num3]; + index4 = 1; + List list104 = new List(index4); + CollectionsMarshal.SetCount(list104, index4); + span5 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span5[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference74 = list104; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; obj60.RequiredQuestVariables = list103; reference73 = obj60; - ref QuestStep reference75 = ref span33[2]; + num2++; + ref QuestStep reference75 = ref span3[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1053773u, new Vector3(-13.748474f, 34.838024f, -403.55536f), 1191) { Fly = true @@ -375745,23 +453361,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list105 = new List>(num3); CollectionsMarshal.SetCount(list105, num3); - Span> span36 = CollectionsMarshal.AsSpan(list105); - ref List reference76 = ref span36[0]; + span10 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + ref List reference76 = ref span10[index3]; num4 = 1; List list106 = new List(num4); CollectionsMarshal.SetCount(list106, num4); - CollectionsMarshal.AsSpan(list106)[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list106); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); reference76 = list106; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; obj61.RequiredQuestVariables = list105; reference75 = obj61; obj58.Steps = list100; reference70 = obj58; - ref QuestSequence reference77 = ref span32[4]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -375769,21 +453394,26 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(-54.151768f, 30.108292f, -418.1114f), 1191) + span3 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(-54.151768f, 30.108292f, -418.1114f), 1191) { Fly = true }; obj62.Steps = list107; reference77 = obj62; - ref QuestSequence reference78 = ref span32[5]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + span3 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -375796,7 +453426,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list108; reference78 = obj63; - ref QuestSequence reference79 = ref span32[6]; + num++; + ref QuestSequence reference79 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 6 @@ -375804,53 +453435,67 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189); + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189); obj64.Steps = list109; reference79 = obj64; - ref QuestSequence reference80 = ref span32[7]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span37 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference81 = ref span37[0]; + index2 = 3; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference81 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + span8 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list111; num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list112); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48018u, ItemCount = 3 }; questStep14.ItemsToGather = list112; reference81 = questStep14; - ref QuestStep reference82 = ref span37[1]; + num2++; + ref QuestStep reference82 = ref span3[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + span8 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list113; num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48019u, ItemCount = 3 }; questStep15.ItemsToGather = list114; reference82 = questStep15; - span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375876,13 +453521,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "Theo"; questRoot10.Author = list115; - num = 8; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span38 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference83 = ref span38[0]; + index = 8; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -375890,18 +453538,23 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj66.Steps = list117; reference83 = obj66; - ref QuestSequence reference84 = ref span38[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1053776u, new Vector3(-333.0282f, 18.46631f, -407.8584f), 1189) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053776u, new Vector3(-333.0282f, 18.46631f, -407.8584f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, @@ -375920,7 +453573,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list118; reference84 = obj67; - ref QuestSequence reference85 = ref span38[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -375928,21 +453582,26 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1053778u, new Vector3(-424.30762f, 23.535458f, -496.2997f), 1189) + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053778u, new Vector3(-424.30762f, 23.535458f, -496.2997f), 1189) { Fly = true }; obj68.Steps = list119; reference85 = obj68; - ref QuestSequence reference86 = ref span38[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375961,7 +453620,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list120; reference86 = obj69; - ref QuestSequence reference87 = ref span38[4]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -375969,84 +453629,115 @@ public static class AssemblyQuestLoader num2 = 3; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span39 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference88 = ref span39[0]; + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 1053782u, new Vector3(705.3176f, -133.17163f, 515.3734f), 1189) { Fly = true }; - num3 = 6; - List> list122 = new List>(num3); - CollectionsMarshal.SetCount(list122, num3); - Span> span40 = CollectionsMarshal.AsSpan(list122); - ref List reference89 = ref span40[0]; - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - CollectionsMarshal.AsSpan(list123)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list122 = new List>(index3); + CollectionsMarshal.SetCount(list122, index3); + span10 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + ref List reference89 = ref span10[num3]; + index4 = 1; + List list123 = new List(index4); + CollectionsMarshal.SetCount(list123, index4); + span5 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span5[num4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference89 = list123; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; obj71.RequiredQuestVariables = list122; reference88 = obj71; - ref QuestStep reference90 = ref span39[1]; + index2++; + ref QuestStep reference90 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1053783u, new Vector3(636.89624f, -137.174f, 570.5499f), 1189); num3 = 6; List> list124 = new List>(num3); CollectionsMarshal.SetCount(list124, num3); - Span> span41 = CollectionsMarshal.AsSpan(list124); - ref List reference91 = ref span41[0]; + span10 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + ref List reference91 = ref span10[index3]; num4 = 1; List list125 = new List(num4); CollectionsMarshal.SetCount(list125, num4); - CollectionsMarshal.AsSpan(list125)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list125); + index4 = 0; + span5[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference91 = list125; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; questStep16.RequiredQuestVariables = list124; reference90 = questStep16; - ref QuestStep reference92 = ref span39[2]; + index2++; + ref QuestStep reference92 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1053784u, new Vector3(664.33203f, -137.17398f, 546.2882f), 1189); - num3 = 6; - List> list126 = new List>(num3); - CollectionsMarshal.SetCount(list126, num3); - Span> span42 = CollectionsMarshal.AsSpan(list126); - ref List reference93 = ref span42[0]; - num4 = 1; - List list127 = new List(num4); - CollectionsMarshal.SetCount(list127, num4); - CollectionsMarshal.AsSpan(list127)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list126 = new List>(index3); + CollectionsMarshal.SetCount(list126, index3); + span10 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + ref List reference93 = ref span10[num3]; + index4 = 1; + List list127 = new List(index4); + CollectionsMarshal.SetCount(list127, index4); + span5 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span5[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference93 = list127; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; questStep17.RequiredQuestVariables = list126; reference92 = questStep17; obj70.Steps = list121; reference87 = obj70; - ref QuestSequence reference94 = ref span38[5]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true }; obj72.Steps = list128; reference94 = obj72; - ref QuestSequence reference95 = ref span38[6]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 6 @@ -376054,42 +453745,53 @@ public static class AssemblyQuestLoader num2 = 3; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span43 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference96 = ref span43[0]; + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference96 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep18.RequiredQuestAcceptedJob = list130; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new GatheredItem + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span9 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48021u, ItemCount = 3 }; questStep18.ItemsToGather = list131; reference96 = questStep18; - ref QuestStep reference97 = ref span43[1]; + index2++; + ref QuestStep reference97 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep19.RequiredQuestAcceptedJob = list132; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new GatheredItem + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span9 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48022u, ItemCount = 3 }; questStep19.ItemsToGather = list133; reference97 = questStep19; - span43[2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376108,15 +453810,18 @@ public static class AssemblyQuestLoader }; obj73.Steps = list129; reference95 = obj73; - ref QuestSequence reference98 = ref span38[7]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189); obj74.Steps = list134; reference98 = obj74; questRoot10.QuestSequence = list116; @@ -376126,13 +453831,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "Censored"; questRoot11.Author = list135; - num = 4; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span44 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference99 = ref span44[0]; + index = 4; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -376140,21 +453848,27 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj75.Steps = list137; reference99 = obj75; - ref QuestSequence reference100 = ref span44[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1053785u, new Vector3(600.7323f, -141.2465f, 801.41907f), 1189); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053785u, new Vector3(600.7323f, -141.2465f, 801.41907f), 1189); obj76.Steps = list138; reference100 = obj76; - ref QuestSequence reference101 = ref span44[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 @@ -376162,18 +453876,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1053787u, new Vector3(596.7345f, -143.12323f, 769.9243f), 1189); + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053787u, new Vector3(596.7345f, -143.12323f, 769.9243f), 1189); obj77.Steps = list139; reference101 = obj77; - ref QuestSequence reference102 = ref span44[3]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053788u, new Vector3(476.82898f, -150f, 769.5276f), 1189) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + span3 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053788u, new Vector3(476.82898f, -150f, 769.5276f), 1189) { Fly = true }; @@ -376186,13 +453905,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot12.Author = list141; - num = 2; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span45 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference103 = ref span45[0]; + index = 2; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -376200,53 +453922,67 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj79.Steps = list143; reference103 = obj79; - ref QuestSequence reference104 = ref span45[1]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span46 = CollectionsMarshal.AsSpan(list144); - ref QuestStep reference105 = ref span46[0]; + index2 = 3; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + span3 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + ref QuestStep reference105 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list145; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheredItem + index3 = 1; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + span9 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48024u, ItemCount = 3 }; questStep20.ItemsToGather = list146; reference105 = questStep20; - ref QuestStep reference106 = ref span46[1]; + num2++; + ref QuestStep reference106 = ref span3[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list147; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = new GatheredItem + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + span9 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48025u, ItemCount = 3 }; questStep21.ItemsToGather = list148; reference106 = questStep21; - span46[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376272,13 +454008,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list149); + index = 0; + span[index] = "liza"; questRoot13.Author = list149; - num = 4; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span47 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference107 = ref span47[0]; + index = 4; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + span2 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -376286,19 +454025,23 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj81.Steps = list151; reference107 = obj81; - ref QuestSequence reference108 = ref span47[1]; + num++; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span48 = CollectionsMarshal.AsSpan(list152); - ref QuestStep reference109 = ref span48[0]; + index2 = 3; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference109 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 2014697u, new Vector3(245.01404f, -158.3429f, 720.4851f), 1189) { StopDistance = 0.5f, @@ -376307,34 +454050,48 @@ public static class AssemblyQuestLoader num3 = 6; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span49 = CollectionsMarshal.AsSpan(list153); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list153; reference109 = obj83; - ref QuestStep reference110 = ref span48[1]; + num2++; + ref QuestStep reference110 = ref span3[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 2014699u, new Vector3(242.14539f, -158.67859f, 668.39087f), 1189) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span50 = CollectionsMarshal.AsSpan(list154); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + span5 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list154; reference110 = obj84; - ref QuestStep reference111 = ref span48[2]; + num2++; + ref QuestStep reference111 = ref span3[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2014698u, new Vector3(195.33069f, -158.09875f, 726.43616f), 1189) { StopDistance = 0.5f, @@ -376343,18 +454100,25 @@ public static class AssemblyQuestLoader num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span51 = CollectionsMarshal.AsSpan(list155); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list155; reference111 = obj85; obj82.Steps = list152; reference108 = obj82; - ref QuestSequence reference112 = ref span47[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -376362,27 +454126,32 @@ public static class AssemblyQuestLoader num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span52 = CollectionsMarshal.AsSpan(list156); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true }; - span52[1] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj86.Steps = list156; reference112 = obj86; - ref QuestSequence reference113 = ref span47[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376408,13 +454177,16 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "liza"; questRoot14.Author = list158; - num = 2; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span53 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference114 = ref span53[0]; + index = 2; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -376422,53 +454194,67 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj88.Steps = list160; reference114 = obj88; - ref QuestSequence reference115 = ref span53[1]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span54 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference116 = ref span54[0]; + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + span3 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference116 = ref span3[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + span8 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep22.RequiredQuestAcceptedJob = list162; num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48027u, ItemCount = 3 }; questStep22.ItemsToGather = list163; reference116 = questStep22; - ref QuestStep reference117 = ref span54[1]; + num2++; + ref QuestStep reference117 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span8 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep23.RequiredQuestAcceptedJob = list164; num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48028u, ItemCount = 3 }; questStep23.ItemsToGather = list165; reference117 = questStep23; - span54[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376494,13 +454280,16 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list166); + index = 0; + span[index] = "liza"; questRoot15.Author = list166; - num = 3; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span55 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference118 = ref span55[0]; + index = 3; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + span2 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -376508,64 +454297,80 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj90.Steps = list168; reference118 = obj90; - ref QuestSequence reference119 = ref span55[1]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span56 = CollectionsMarshal.AsSpan(list169); - ref QuestStep reference120 = ref span56[0]; + index2 = 4; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + span3 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref QuestStep reference120 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + span8 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep24.RequiredQuestAcceptedJob = list170; num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48030u, ItemCount = 3 }; questStep24.ItemsToGather = list171; reference120 = questStep24; - ref QuestStep reference121 = ref span56[1]; + num2++; + ref QuestStep reference121 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list172 = new List(index3); + CollectionsMarshal.SetCount(list172, index3); + span8 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep25.RequiredQuestAcceptedJob = list172; num3 = 1; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48031u, ItemCount = 3 }; questStep25.ItemsToGather = list173; reference121 = questStep25; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true }; - span56[3] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj91.Steps = list169; reference119 = obj91; - ref QuestSequence reference122 = ref span55[2]; + num++; + ref QuestSequence reference122 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -376573,7 +454378,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376599,24 +454406,30 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list175); + index = 0; + span[index] = "liza"; questRoot16.Author = list175; - num = 4; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span57 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference123 = ref span57[0]; + index = 4; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + span2 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference123 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + span3 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj93.Steps = list177; reference123 = obj93; - ref QuestSequence reference124 = ref span57[1]; + num++; + ref QuestSequence reference124 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -376624,30 +454437,36 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span58 = CollectionsMarshal.AsSpan(list178); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.46579f, -160.31227f, 431.11423f), 1189) + span3 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.46579f, -160.31227f, 431.11423f), 1189) { StopDistance = 1f, Fly = true }; - span58[1] = new QuestStep(EInteractionType.Interact, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) { StopDistance = 7f }; obj94.Steps = list178; reference124 = obj94; - ref QuestSequence reference125 = ref span57[2]; + num++; + ref QuestSequence reference125 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 2014727u, new Vector3(215.5946f, -159.96033f, 430.13647f), 1189); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014727u, new Vector3(215.5946f, -159.96033f, 430.13647f), 1189); obj95.Steps = list179; reference125 = obj95; - ref QuestSequence reference126 = ref span57[3]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -376655,7 +454474,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376681,24 +454502,30 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list181); + index = 0; + span[index] = "liza"; questRoot17.Author = list181; - num = 3; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span59 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference127 = ref span59[0]; + index = 3; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + span2 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj97.Steps = list183; reference127 = obj97; - ref QuestSequence reference128 = ref span59[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -376706,62 +454533,77 @@ public static class AssemblyQuestLoader num2 = 4; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span60 = CollectionsMarshal.AsSpan(list184); - ref QuestStep reference129 = ref span60[0]; + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference129 = ref span3[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span8 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list185; num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48033u, ItemCount = 3 }; questStep26.ItemsToGather = list186; reference129 = questStep26; - ref QuestStep reference130 = ref span60[1]; + index2++; + ref QuestStep reference130 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + span8 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list187; num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48034u, ItemCount = 3 }; questStep27.ItemsToGather = list188; reference130 = questStep27; - span60[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - span60[3] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj98.Steps = list184; reference128 = obj98; - ref QuestSequence reference131 = ref span59[2]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376787,13 +454629,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list190); + index = 0; + span[index] = "liza"; questRoot18.Author = list190; - num = 2; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span61 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference132 = ref span61[0]; + index = 2; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + span2 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -376801,53 +454646,67 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj100.Steps = list192; reference132 = obj100; - ref QuestSequence reference133 = ref span61[1]; + num++; + ref QuestSequence reference133 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span62 = CollectionsMarshal.AsSpan(list193); - ref QuestStep reference134 = ref span62[0]; + index2 = 3; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference134 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list194 = new List(index3); + CollectionsMarshal.SetCount(list194, index3); + span8 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep28.RequiredQuestAcceptedJob = list194; num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48036u, ItemCount = 3 }; questStep28.ItemsToGather = list195; reference134 = questStep28; - ref QuestStep reference135 = ref span62[1]; + num2++; + ref QuestStep reference135 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + span8 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep29.RequiredQuestAcceptedJob = list196; num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48037u, ItemCount = 3 }; questStep29.ItemsToGather = list197; reference135 = questStep29; - span62[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376873,13 +454732,16 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "liza"; questRoot19.Author = list198; - num = 2; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span63 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference136 = ref span63[0]; + index = 2; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference136 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -376887,53 +454749,67 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj102.Steps = list200; reference136 = obj102; - ref QuestSequence reference137 = ref span63[1]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span64 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference138 = ref span64[0]; + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference138 = ref span3[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + span8 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep30.RequiredQuestAcceptedJob = list202; num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48039u, ItemCount = 3 }; questStep30.ItemsToGather = list203; reference138 = questStep30; - ref QuestStep reference139 = ref span64[1]; + num2++; + ref QuestStep reference139 = ref span3[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + span8 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep31.RequiredQuestAcceptedJob = list204; num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48040u, ItemCount = 3 }; questStep31.ItemsToGather = list205; reference139 = questStep31; - span64[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376959,13 +454835,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "liza"; questRoot20.Author = list206; - num = 2; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span65 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference140 = ref span65[0]; + index = 2; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference140 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -376973,53 +454852,67 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj104.Steps = list208; reference140 = obj104; - ref QuestSequence reference141 = ref span65[1]; + num++; + ref QuestSequence reference141 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span66 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference142 = ref span66[0]; + index2 = 3; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + span3 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference142 = ref span3[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + span8 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list210; num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48042u, ItemCount = 3 }; questStep32.ItemsToGather = list211; reference142 = questStep32; - ref QuestStep reference143 = ref span66[1]; + num2++; + ref QuestStep reference143 = ref span3[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + span8 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list212; num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48043u, ItemCount = 3 }; questStep33.ItemsToGather = list213; reference143 = questStep33; - span66[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377045,13 +454938,16 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list214); + index = 0; + span[index] = "liza"; questRoot21.Author = list214; - num = 3; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span67 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference144 = ref span67[0]; + index = 3; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + span2 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -377059,36 +454955,47 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj106.Steps = list216; reference144 = obj106; - ref QuestSequence reference145 = ref span67[1]; + num++; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span68 = CollectionsMarshal.AsSpan(list217); - ref QuestStep reference146 = ref span68[0]; + index2 = 3; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + span3 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + ref QuestStep reference146 = ref span3[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1052580u, new Vector3(495.1704f, -146.73546f, 500.6637f), 1189) { Fly = true }; - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span69 = CollectionsMarshal.AsSpan(list218); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + span5 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list218; reference146 = obj108; - ref QuestStep reference147 = ref span68[1]; + num2++; + ref QuestStep reference147 = ref span3[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1052579u, new Vector3(607.9651f, -137.174f, 499.71765f), 1189) { Fly = true @@ -377096,35 +455003,49 @@ public static class AssemblyQuestLoader num3 = 6; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span70 = CollectionsMarshal.AsSpan(list219); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj109.CompletionQuestVariablesFlags = list219; reference147 = obj109; - ref QuestStep reference148 = ref span68[2]; + num2++; + ref QuestStep reference148 = ref span3[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1052578u, new Vector3(695.09424f, -137.17401f, 543.26685f), 1189) { Fly = true }; - num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span71 = CollectionsMarshal.AsSpan(list220); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + span5 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj110.CompletionQuestVariablesFlags = list220; reference148 = obj110; obj107.Steps = list217; reference145 = obj107; - ref QuestSequence reference149 = ref span67[2]; + num++; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -377132,7 +455053,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span3 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -377145,24 +455068,30 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "Theo"; questRoot22.Author = list222; - num = 2; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span72 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference150 = ref span72[0]; + index = 2; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + span3 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj112.Steps = list224; reference150 = obj112; - ref QuestSequence reference151 = ref span72[1]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -377170,42 +455099,53 @@ public static class AssemblyQuestLoader num2 = 3; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span73 = CollectionsMarshal.AsSpan(list225); - ref QuestStep reference152 = ref span73[0]; + span3 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + ref QuestStep reference152 = ref span3[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep34.RequiredQuestAcceptedJob = list226; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + span9 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48045u, ItemCount = 3 }; questStep34.ItemsToGather = list227; reference152 = questStep34; - ref QuestStep reference153 = ref span73[1]; + index2++; + ref QuestStep reference153 = ref span3[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list228 = new List(num3); CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list228); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep35.RequiredQuestAcceptedJob = list228; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new GatheredItem + index3 = 1; + List list229 = new List(index3); + CollectionsMarshal.SetCount(list229, index3); + span9 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48046u, ItemCount = 3 }; questStep35.ItemsToGather = list229; reference153 = questStep35; - span73[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377231,24 +455171,30 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list230); + index = 0; + span[index] = "Censored"; questRoot23.Author = list230; - num = 2; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span74 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference154 = ref span74[0]; + index = 2; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + span2 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj114.Steps = list232; reference154 = obj114; - ref QuestSequence reference155 = ref span74[1]; + num++; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -377256,42 +455202,53 @@ public static class AssemblyQuestLoader num2 = 3; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span75 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference156 = ref span75[0]; + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference156 = ref span3[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep36.RequiredQuestAcceptedJob = list234; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new GatheredItem + index3 = 1; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + span9 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48048u, ItemCount = 3 }; questStep36.ItemsToGather = list235; reference156 = questStep36; - ref QuestStep reference157 = ref span75[1]; + index2++; + ref QuestStep reference157 = ref span3[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep37.RequiredQuestAcceptedJob = list236; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new GatheredItem + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + span9 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48049u, ItemCount = 3 }; questStep37.ItemsToGather = list237; reference157 = questStep37; - span75[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377317,24 +455274,30 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "Censored"; questRoot24.Author = list238; - num = 4; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span76 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference158 = ref span76[0]; + index = 4; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + span2 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj116.Steps = list240; reference158 = obj116; - ref QuestSequence reference159 = ref span76[1]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -377342,22 +455305,26 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) + span3 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) { Fly = true }; obj117.Steps = list241; reference159 = obj117; - ref QuestSequence reference160 = ref span76[2]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span77 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference161 = ref span77[0]; + index2 = 3; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + ref QuestStep reference161 = ref span3[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Action, 2014724u, new Vector3(232.89844f, -160.29602f, 432.5475f), 1189) { Fly = true, @@ -377366,39 +455333,54 @@ public static class AssemblyQuestLoader num3 = 6; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - Span span78 = CollectionsMarshal.AsSpan(list243); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list243; reference161 = obj119; - ref QuestStep reference162 = ref span77[1]; + num2++; + ref QuestStep reference162 = ref span3[num2]; QuestStep obj120 = new QuestStep(EInteractionType.Action, 2014725u, new Vector3(238.20862f, -160.54016f, 401.3275f), 1189) { Action = EAction.ShroudedLuminescence }; - num3 = 6; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span79 = CollectionsMarshal.AsSpan(list244); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list244 = new List(index3); + CollectionsMarshal.SetCount(list244, index3); + span5 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj120.CompletionQuestVariablesFlags = list244; reference162 = obj120; - span77[2] = new QuestStep(EInteractionType.Action, 2014726u, new Vector3(205.06592f, -160.54016f, 397.5432f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 2014726u, new Vector3(205.06592f, -160.54016f, 397.5432f), 1189) { Action = EAction.ShroudedLuminescence }; obj118.Steps = list242; reference160 = obj118; - ref QuestSequence reference163 = ref span76[3]; + num++; + ref QuestSequence reference163 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -377406,7 +455388,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span3 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377432,24 +455416,30 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list246); + index = 0; + span[index] = "Theo"; questRoot25.Author = list246; - num = 2; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span80 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference164 = ref span80[0]; + index = 2; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + span2 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + span3 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj122.Steps = list248; reference164 = obj122; - ref QuestSequence reference165 = ref span80[1]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue @@ -377457,42 +455447,53 @@ public static class AssemblyQuestLoader num2 = 3; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span81 = CollectionsMarshal.AsSpan(list249); - ref QuestStep reference166 = ref span81[0]; + span3 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference166 = ref span3[index2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list250; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new GatheredItem + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + span9 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48051u, ItemCount = 3 }; questStep38.ItemsToGather = list251; reference166 = questStep38; - ref QuestStep reference167 = ref span81[1]; + index2++; + ref QuestStep reference167 = ref span3[index2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list252; - num3 = 1; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = new GatheredItem + index3 = 1; + List list253 = new List(index3); + CollectionsMarshal.SetCount(list253, index3); + span9 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48052u, ItemCount = 3 }; questStep39.ItemsToGather = list253; reference167 = questStep39; - span81[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377518,24 +455519,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list254); + index = 0; + span[index] = "liza"; questRoot26.Author = list254; - num = 3; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span82 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference168 = ref span82[0]; + index = 3; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + span2 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + span3 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj124.Steps = list256; reference168 = obj124; - ref QuestSequence reference169 = ref span82[1]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -377543,8 +455550,9 @@ public static class AssemblyQuestLoader num2 = 3; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span83 = CollectionsMarshal.AsSpan(list257); - ref QuestStep reference170 = ref span83[0]; + span3 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + ref QuestStep reference170 = ref span3[index2]; QuestStep obj126 = new QuestStep(EInteractionType.Say, 1052572u, new Vector3(642.2064f, -137.17401f, 557.76294f), 1189) { Fly = true, @@ -377556,16 +455564,23 @@ public static class AssemblyQuestLoader num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - Span span84 = CollectionsMarshal.AsSpan(list258); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list258; reference170 = obj126; - ref QuestStep reference171 = ref span83[1]; + index2++; + ref QuestStep reference171 = ref span3[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Say, 1052573u, new Vector3(686.8544f, -137.174f, 513.72546f), 1189) { Fly = true, @@ -377574,19 +455589,26 @@ public static class AssemblyQuestLoader Key = "TEXT_BANMAM115_05275_SAYTODO_000_030" } }; - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span85 = CollectionsMarshal.AsSpan(list259); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list259 = new List(index3); + CollectionsMarshal.SetCount(list259, index3); + span5 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list259; reference171 = obj127; - ref QuestStep reference172 = ref span83[2]; + index2++; + ref QuestStep reference172 = ref span3[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Say, 1052574u, new Vector3(584.4967f, -142.49187f, 484.2754f), 1189) { Fly = true, @@ -377598,26 +455620,35 @@ public static class AssemblyQuestLoader num3 = 6; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span86 = CollectionsMarshal.AsSpan(list260); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list260; reference172 = obj128; obj125.Steps = list257; reference169 = obj125; - ref QuestSequence reference173 = ref span82[2]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -377630,13 +455661,16 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list262); + index = 0; + span[index] = "Censored"; questRoot27.Author = list262; - num = 2; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span87 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference174 = ref span87[0]; + index = 2; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + span2 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference174 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -377644,53 +455678,67 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj130.Steps = list264; reference174 = obj130; - ref QuestSequence reference175 = ref span87[1]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - Span span88 = CollectionsMarshal.AsSpan(list265); - ref QuestStep reference176 = ref span88[0]; + index2 = 3; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + ref QuestStep reference176 = ref span3[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list266 = new List(index3); + CollectionsMarshal.SetCount(list266, index3); + span8 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep40.RequiredQuestAcceptedJob = list266; num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48054u, ItemCount = 3 }; questStep40.ItemsToGather = list267; reference176 = questStep40; - ref QuestStep reference177 = ref span88[1]; + num2++; + ref QuestStep reference177 = ref span3[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + span8 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep41.RequiredQuestAcceptedJob = list268; num3 = 1; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48055u, ItemCount = 3 }; questStep41.ItemsToGather = list269; reference177 = questStep41; - span88[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377716,13 +455764,16 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list270); + index = 0; + span[index] = "Censored"; questRoot28.Author = list270; - num = 2; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span89 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference178 = ref span89[0]; + index = 2; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + span2 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -377730,53 +455781,67 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj132.Steps = list272; reference178 = obj132; - ref QuestSequence reference179 = ref span89[1]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span90 = CollectionsMarshal.AsSpan(list273); - ref QuestStep reference180 = ref span90[0]; + index2 = 3; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + span3 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference180 = ref span3[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + span8 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep42.RequiredQuestAcceptedJob = list274; num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list275); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48057u, ItemCount = 3 }; questStep42.ItemsToGather = list275; reference180 = questStep42; - ref QuestStep reference181 = ref span90[1]; + num2++; + ref QuestStep reference181 = ref span3[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list276 = new List(index3); + CollectionsMarshal.SetCount(list276, index3); + span8 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep43.RequiredQuestAcceptedJob = list276; num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48058u, ItemCount = 3 }; questStep43.ItemsToGather = list277; reference181 = questStep43; - span90[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377802,13 +455867,16 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list278); + index = 0; + span[index] = "liza"; questRoot29.Author = list278; - num = 2; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span91 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference182 = ref span91[0]; + index = 2; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + span2 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference182 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -377816,53 +455884,67 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj134.Steps = list280; reference182 = obj134; - ref QuestSequence reference183 = ref span91[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span92 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference184 = ref span92[0]; + index2 = 3; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + span3 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + ref QuestStep reference184 = ref span3[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + span8 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48060u, ItemCount = 3 }; questStep44.ItemsToGather = list283; reference184 = questStep44; - ref QuestStep reference185 = ref span92[1]; + num2++; + ref QuestStep reference185 = ref span3[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + span8 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list284; num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48061u, ItemCount = 3 }; questStep45.ItemsToGather = list285; reference185 = questStep45; - span92[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377888,13 +455970,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list286); + index = 0; + span[index] = "liza"; questRoot30.Author = list286; - num = 2; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span93 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference186 = ref span93[0]; + index = 2; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + span2 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -377902,53 +455987,67 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj136.Steps = list288; reference186 = obj136; - ref QuestSequence reference187 = ref span93[1]; + num++; + ref QuestSequence reference187 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span94 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference188 = ref span94[0]; + index2 = 3; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + ref QuestStep reference188 = ref span3[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list290 = new List(index3); + CollectionsMarshal.SetCount(list290, index3); + span8 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep46.RequiredQuestAcceptedJob = list290; num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48063u, ItemCount = 3 }; questStep46.ItemsToGather = list291; reference188 = questStep46; - ref QuestStep reference189 = ref span94[1]; + num2++; + ref QuestStep reference189 = ref span3[num2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list292 = new List(index3); + CollectionsMarshal.SetCount(list292, index3); + span8 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep47.RequiredQuestAcceptedJob = list292; num3 = 1; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48064u, ItemCount = 3 }; questStep47.ItemsToGather = list293; reference189 = questStep47; - span94[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377974,13 +456073,16 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list294); + index = 0; + span[index] = "liza"; questRoot31.Author = list294; - num = 4; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span95 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference190 = ref span95[0]; + index = 4; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + span2 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference190 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -377988,59 +456090,81 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj138.Steps = list296; reference190 = obj138; - ref QuestSequence reference191 = ref span95[1]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span96 = CollectionsMarshal.AsSpan(list297); - ref QuestStep reference192 = ref span96[0]; + index2 = 2; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + span3 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + ref QuestStep reference192 = ref span3[num2]; QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 2014732u, new Vector3(542.71765f, -149.06543f, 768.6426f), 1189); - num3 = 6; - List> list298 = new List>(num3); - CollectionsMarshal.SetCount(list298, num3); - Span> span97 = CollectionsMarshal.AsSpan(list298); - span97[0] = null; - ref List reference193 = ref span97[1]; + index3 = 6; + List> list298 = new List>(index3); + CollectionsMarshal.SetCount(list298, index3); + span10 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span10[num3] = null; + num3++; + ref List reference193 = ref span10[num3]; num4 = 1; List list299 = new List(num4); CollectionsMarshal.SetCount(list299, num4); - CollectionsMarshal.AsSpan(list299)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list299); + index4 = 0; + span5[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference193 = list299; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; questStep48.RequiredQuestVariables = list298; reference192 = questStep48; - ref QuestStep reference194 = ref span96[1]; + num2++; + ref QuestStep reference194 = ref span3[num2]; QuestStep questStep49 = new QuestStep(EInteractionType.Interact, 2014731u, new Vector3(540.5508f, -148.51611f, 763.6072f), 1189); num3 = 6; List> list300 = new List>(num3); CollectionsMarshal.SetCount(list300, num3); - Span> span98 = CollectionsMarshal.AsSpan(list300); - span98[0] = null; - ref List reference195 = ref span98[1]; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - CollectionsMarshal.AsSpan(list301)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + span10 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span10[index3] = null; + index3++; + ref List reference195 = ref span10[index3]; + index4 = 1; + List list301 = new List(index4); + CollectionsMarshal.SetCount(list301, index4); + span5 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span5[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference195 = list301; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; questStep49.RequiredQuestVariables = list300; reference194 = questStep49; obj139.Steps = list297; reference191 = obj139; - ref QuestSequence reference196 = ref span95[2]; + num++; + ref QuestSequence reference196 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -378048,21 +456172,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1054142u, new Vector3(-415.06067f, 23.50628f, -464.4084f), 1189) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054142u, new Vector3(-415.06067f, 23.50628f, -464.4084f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; obj140.Steps = list302; reference196 = obj140; - ref QuestSequence reference197 = ref span95[3]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + span3 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378088,13 +456217,16 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list304); + index = 0; + span[index] = "liza"; questRoot32.Author = list304; - num = 2; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span99 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference198 = ref span99[0]; + index = 2; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + span2 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -378102,53 +456234,67 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj142.Steps = list306; reference198 = obj142; - ref QuestSequence reference199 = ref span99[1]; + num++; + ref QuestSequence reference199 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span100 = CollectionsMarshal.AsSpan(list307); - ref QuestStep reference200 = ref span100[0]; + index2 = 3; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; QuestStep questStep50 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + span8 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep50.RequiredQuestAcceptedJob = list308; num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list309); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48066u, ItemCount = 3 }; questStep50.ItemsToGather = list309; reference200 = questStep50; - ref QuestStep reference201 = ref span100[1]; + num2++; + ref QuestStep reference201 = ref span3[num2]; QuestStep questStep51 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + span8 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep51.RequiredQuestAcceptedJob = list310; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48067u, ItemCount = 3 }; questStep51.ItemsToGather = list311; reference201 = questStep51; - span100[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378174,13 +456320,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list312); + index = 0; + span[index] = "liza"; questRoot33.Author = list312; - num = 4; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span101 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference202 = ref span101[0]; + index = 4; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + span2 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 @@ -378188,24 +456337,30 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj144.Steps = list314; reference202 = obj144; - ref QuestSequence reference203 = ref span101[1]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + span3 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) { Fly = true }; obj145.Steps = list315; reference203 = obj145; - ref QuestSequence reference204 = ref span101[2]; + num++; + ref QuestSequence reference204 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 @@ -378213,26 +456368,34 @@ public static class AssemblyQuestLoader num2 = 3; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span102 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference205 = ref span102[0]; + span3 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference205 = ref span3[index2]; QuestStep obj147 = new QuestStep(EInteractionType.Action, 2014730u, new Vector3(370.29065f, -156.69495f, 707.9728f), 1189) { Fly = true, Action = EAction.ShroudedLuminescence }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span103 = CollectionsMarshal.AsSpan(list317); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + span5 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj147.CompletionQuestVariablesFlags = list317; reference205 = obj147; - ref QuestStep reference206 = ref span102[1]; + index2++; + ref QuestStep reference206 = ref span3[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Action, 2014728u, new Vector3(377.4319f, -150.53027f, 803.952f), 1189) { Fly = true, @@ -378241,44 +456404,60 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span104 = CollectionsMarshal.AsSpan(list318); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list318; reference206 = obj148; - ref QuestStep reference207 = ref span102[2]; + index2++; + ref QuestStep reference207 = ref span3[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Action, 2014729u, new Vector3(283.4668f, -151.26276f, 796.8108f), 1189) { Fly = true, Action = EAction.ShroudedLuminescence }; - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span105 = CollectionsMarshal.AsSpan(list319); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list319 = new List(index3); + CollectionsMarshal.SetCount(list319, index3); + span5 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list319; reference207 = obj149; obj146.Steps = list316; reference204 = obj146; - ref QuestSequence reference208 = ref span101[3]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + span3 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378304,13 +456483,16 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list321); + index = 0; + span[index] = "liza"; questRoot34.Author = list321; - num = 2; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span106 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference209 = ref span106[0]; + index = 2; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + span2 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -378318,53 +456500,67 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj151.Steps = list323; reference209 = obj151; - ref QuestSequence reference210 = ref span106[1]; + num++; + ref QuestSequence reference210 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - Span span107 = CollectionsMarshal.AsSpan(list324); - ref QuestStep reference211 = ref span107[0]; + index2 = 3; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + span3 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + ref QuestStep reference211 = ref span3[num2]; QuestStep questStep52 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - CollectionsMarshal.AsSpan(list325)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep52.RequiredQuestAcceptedJob = list325; - num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = new GatheredItem + index3 = 1; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + span9 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48069u, ItemCount = 3 }; questStep52.ItemsToGather = list326; reference211 = questStep52; - ref QuestStep reference212 = ref span107[1]; + num2++; + ref QuestStep reference212 = ref span3[num2]; QuestStep questStep53 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep53.RequiredQuestAcceptedJob = list327; - num3 = 1; - List list328 = new List(num3); - CollectionsMarshal.SetCount(list328, num3); - CollectionsMarshal.AsSpan(list328)[0] = new GatheredItem + index3 = 1; + List list328 = new List(index3); + CollectionsMarshal.SetCount(list328, index3); + span9 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48070u, ItemCount = 3 }; questStep53.ItemsToGather = list328; reference212 = questStep53; - span107[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378390,13 +456586,16 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list329); + index = 0; + span[index] = "liza"; questRoot35.Author = list329; - num = 2; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span108 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference213 = ref span108[0]; + index = 2; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + span2 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -378404,53 +456603,67 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj153.Steps = list331; reference213 = obj153; - ref QuestSequence reference214 = ref span108[1]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - Span span109 = CollectionsMarshal.AsSpan(list332); - ref QuestStep reference215 = ref span109[0]; + index2 = 3; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + ref QuestStep reference215 = ref span3[num2]; QuestStep questStep54 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - CollectionsMarshal.AsSpan(list333)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep54.RequiredQuestAcceptedJob = list333; - num3 = 1; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - CollectionsMarshal.AsSpan(list334)[0] = new GatheredItem + index3 = 1; + List list334 = new List(index3); + CollectionsMarshal.SetCount(list334, index3); + span9 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48072u, ItemCount = 3 }; questStep54.ItemsToGather = list334; reference215 = questStep54; - ref QuestStep reference216 = ref span109[1]; + num2++; + ref QuestStep reference216 = ref span3[num2]; QuestStep questStep55 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep55.RequiredQuestAcceptedJob = list335; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = new GatheredItem + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + span9 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48073u, ItemCount = 3 }; questStep55.ItemsToGather = list336; reference216 = questStep55; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378476,13 +456689,16 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "Theo"; + span = CollectionsMarshal.AsSpan(list337); + index = 0; + span[index] = "Theo"; questRoot36.Author = list337; - num = 3; - List list338 = new List(num); - CollectionsMarshal.SetCount(list338, num); - Span span110 = CollectionsMarshal.AsSpan(list338); - ref QuestSequence reference217 = ref span110[0]; + index = 3; + List list338 = new List(index); + CollectionsMarshal.SetCount(list338, index); + span2 = CollectionsMarshal.AsSpan(list338); + num = 0; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -378490,18 +456706,23 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj155.Steps = list339; reference217 = obj155; - ref QuestSequence reference218 = ref span110[1]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list340)[0]; + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + span3 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + ref QuestStep reference219 = ref span3[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1052577u, new Vector3(613.39734f, 16.222143f, 1.7547607f), 1189) { Fly = true @@ -378509,23 +456730,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list341 = new List>(num3); CollectionsMarshal.SetCount(list341, num3); - Span> span111 = CollectionsMarshal.AsSpan(list341); - span111[0] = null; - ref List reference220 = ref span111[1]; + span10 = CollectionsMarshal.AsSpan(list341); + index3 = 0; + span10[index3] = null; + index3++; + ref List reference220 = ref span10[index3]; num4 = 1; List list342 = new List(num4); CollectionsMarshal.SetCount(list342, num4); - CollectionsMarshal.AsSpan(list342)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list342); + index4 = 0; + span5[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference220 = list342; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; obj157.RequiredQuestVariables = list341; reference219 = obj157; obj156.Steps = list340; reference218 = obj156; - ref QuestSequence reference221 = ref span110[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -378533,7 +456763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span3 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -378546,24 +456778,30 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list344); + index = 0; + span[index] = "liza"; questRoot37.Author = list344; - num = 2; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span112 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference222 = ref span112[0]; + index = 2; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + span2 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + span3 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj159.Steps = list346; reference222 = obj159; - ref QuestSequence reference223 = ref span112[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -378571,42 +456809,53 @@ public static class AssemblyQuestLoader num2 = 3; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span113 = CollectionsMarshal.AsSpan(list347); - ref QuestStep reference224 = ref span113[0]; + span3 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + ref QuestStep reference224 = ref span3[index2]; QuestStep questStep56 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list348 = new List(index3); + CollectionsMarshal.SetCount(list348, index3); + span8 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span8[num3] = EExtendedClassJob.Miner; questStep56.RequiredQuestAcceptedJob = list348; num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list349); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48075u, ItemCount = 3 }; questStep56.ItemsToGather = list349; reference224 = questStep56; - ref QuestStep reference225 = ref span113[1]; + index2++; + ref QuestStep reference225 = ref span3[index2]; QuestStep questStep57 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list350 = new List(index3); + CollectionsMarshal.SetCount(list350, index3); + span8 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span8[num3] = EExtendedClassJob.Botanist; questStep57.RequiredQuestAcceptedJob = list350; num3 = 1; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = new GatheredItem + span9 = CollectionsMarshal.AsSpan(list351); + index3 = 0; + span9[index3] = new GatheredItem { ItemId = 48076u, ItemCount = 3 }; questStep57.ItemsToGather = list351; reference225 = questStep57; - span113[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378632,24 +456881,30 @@ public static class AssemblyQuestLoader num = 1; List list352 = new List(num); CollectionsMarshal.SetCount(list352, num); - CollectionsMarshal.AsSpan(list352)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list352); + index = 0; + span[index] = "liza"; questRoot38.Author = list352; - num = 3; - List list353 = new List(num); - CollectionsMarshal.SetCount(list353, num); - Span span114 = CollectionsMarshal.AsSpan(list353); - ref QuestSequence reference226 = ref span114[0]; + index = 3; + List list353 = new List(index); + CollectionsMarshal.SetCount(list353, index); + span2 = CollectionsMarshal.AsSpan(list353); + num = 0; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + span3 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj161.Steps = list354; reference226 = obj161; - ref QuestSequence reference227 = ref span114[1]; + num++; + ref QuestSequence reference227 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -378657,30 +456912,40 @@ public static class AssemblyQuestLoader num2 = 3; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span115 = CollectionsMarshal.AsSpan(list355); - ref QuestStep reference228 = ref span115[0]; + span3 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference228 = ref span3[index2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1054144u, new Vector3(527.6721f, -135.12724f, 585.687f), 1189) { Fly = true }; - num3 = 6; - List> list356 = new List>(num3); - CollectionsMarshal.SetCount(list356, num3); - Span> span116 = CollectionsMarshal.AsSpan(list356); - span116[0] = null; - span116[1] = null; - ref List reference229 = ref span116[2]; - num4 = 1; - List list357 = new List(num4); - CollectionsMarshal.SetCount(list357, num4); - CollectionsMarshal.AsSpan(list357)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list356 = new List>(index3); + CollectionsMarshal.SetCount(list356, index3); + span10 = CollectionsMarshal.AsSpan(list356); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + ref List reference229 = ref span10[num3]; + index4 = 1; + List list357 = new List(index4); + CollectionsMarshal.SetCount(list357, index4); + span5 = CollectionsMarshal.AsSpan(list357); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference229 = list357; - span116[3] = null; - span116[4] = null; - span116[5] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; obj163.RequiredQuestVariables = list356; reference228 = obj163; - ref QuestStep reference230 = ref span115[1]; + index2++; + ref QuestStep reference230 = ref span3[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1054145u, new Vector3(627.77136f, -135.12726f, 545.18945f), 1189) { Fly = true @@ -378688,53 +456953,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list358 = new List>(num3); CollectionsMarshal.SetCount(list358, num3); - Span> span117 = CollectionsMarshal.AsSpan(list358); - span117[0] = null; - span117[1] = null; - ref List reference231 = ref span117[2]; + span10 = CollectionsMarshal.AsSpan(list358); + index3 = 0; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + ref List reference231 = ref span10[index3]; num4 = 1; List list359 = new List(num4); CollectionsMarshal.SetCount(list359, num4); - CollectionsMarshal.AsSpan(list359)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list359); + index4 = 0; + span5[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference231 = list359; - span117[3] = null; - span117[4] = null; - span117[5] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; obj164.RequiredQuestVariables = list358; reference230 = obj164; - ref QuestStep reference232 = ref span115[2]; + index2++; + ref QuestStep reference232 = ref span3[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054143u, new Vector3(668.4214f, -135.17874f, 581.96375f), 1189) { Fly = true }; - num3 = 6; - List> list360 = new List>(num3); - CollectionsMarshal.SetCount(list360, num3); - Span> span118 = CollectionsMarshal.AsSpan(list360); - span118[0] = null; - span118[1] = null; - ref List reference233 = ref span118[2]; - num4 = 1; - List list361 = new List(num4); - CollectionsMarshal.SetCount(list361, num4); - CollectionsMarshal.AsSpan(list361)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list360 = new List>(index3); + CollectionsMarshal.SetCount(list360, index3); + span10 = CollectionsMarshal.AsSpan(list360); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + ref List reference233 = ref span10[num3]; + index4 = 1; + List list361 = new List(index4); + CollectionsMarshal.SetCount(list361, index4); + span5 = CollectionsMarshal.AsSpan(list361); + num4 = 0; + span5[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference233 = list361; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; obj165.RequiredQuestVariables = list360; reference232 = obj165; obj162.Steps = list355; reference227 = obj162; - ref QuestSequence reference234 = ref span114[2]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + span3 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378760,13 +457045,16 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list363); + index = 0; + span[index] = "liza"; questRoot39.Author = list363; - num = 2; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span119 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference235 = ref span119[0]; + index = 2; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + span2 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -378774,53 +457062,67 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + span3 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj167.Steps = list365; reference235 = obj167; - ref QuestSequence reference236 = ref span119[1]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - Span span120 = CollectionsMarshal.AsSpan(list366); - ref QuestStep reference237 = ref span120[0]; + index2 = 3; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + span3 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + ref QuestStep reference237 = ref span3[num2]; QuestStep questStep58 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list367 = new List(num3); CollectionsMarshal.SetCount(list367, num3); - CollectionsMarshal.AsSpan(list367)[0] = EExtendedClassJob.Miner; + span8 = CollectionsMarshal.AsSpan(list367); + index3 = 0; + span8[index3] = EExtendedClassJob.Miner; questStep58.RequiredQuestAcceptedJob = list367; - num3 = 1; - List list368 = new List(num3); - CollectionsMarshal.SetCount(list368, num3); - CollectionsMarshal.AsSpan(list368)[0] = new GatheredItem + index3 = 1; + List list368 = new List(index3); + CollectionsMarshal.SetCount(list368, index3); + span9 = CollectionsMarshal.AsSpan(list368); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48081u, ItemCount = 3 }; questStep58.ItemsToGather = list368; reference237 = questStep58; - ref QuestStep reference238 = ref span120[1]; + num2++; + ref QuestStep reference238 = ref span3[num2]; QuestStep questStep59 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - CollectionsMarshal.AsSpan(list369)[0] = EExtendedClassJob.Botanist; + span8 = CollectionsMarshal.AsSpan(list369); + index3 = 0; + span8[index3] = EExtendedClassJob.Botanist; questStep59.RequiredQuestAcceptedJob = list369; - num3 = 1; - List list370 = new List(num3); - CollectionsMarshal.SetCount(list370, num3); - CollectionsMarshal.AsSpan(list370)[0] = new GatheredItem + index3 = 1; + List list370 = new List(index3); + CollectionsMarshal.SetCount(list370, index3); + span9 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + span9[num3] = new GatheredItem { ItemId = 48082u, ItemCount = 3 }; questStep59.ItemsToGather = list370; reference238 = questStep59; - span120[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378846,13 +457148,16 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - CollectionsMarshal.AsSpan(list371)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list371); + index = 0; + span[index] = "liza"; questRoot40.Author = list371; - num = 7; - List list372 = new List(num); - CollectionsMarshal.SetCount(list372, num); - Span span121 = CollectionsMarshal.AsSpan(list372); - ref QuestSequence reference239 = ref span121[0]; + index = 7; + List list372 = new List(index); + CollectionsMarshal.SetCount(list372, index); + span2 = CollectionsMarshal.AsSpan(list372); + num = 0; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -378860,7 +457165,9 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + span3 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -378871,16 +457178,18 @@ public static class AssemblyQuestLoader }; obj169.Steps = list373; reference239 = obj169; - ref QuestSequence reference240 = ref span121[1]; + num++; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - Span span122 = CollectionsMarshal.AsSpan(list374); - ref QuestStep reference241 = ref span122[0]; + index2 = 2; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + span3 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + ref QuestStep reference241 = ref span3[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223 @@ -378890,15 +457199,19 @@ public static class AssemblyQuestLoader num3 = 1; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - CollectionsMarshal.AsSpan(list375)[0] = 1223; + span4 = CollectionsMarshal.AsSpan(list375); + index3 = 0; + span4[index3] = 1223; skipStepConditions2.InTerritory = list375; skipConditions4.StepIf = skipStepConditions2; obj171.SkipConditions = skipConditions4; reference241 = obj171; - span122[1] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj170.Steps = list374; reference240 = obj170; - ref QuestSequence reference242 = ref span121[2]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -378906,22 +457219,26 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 2014718u, new Vector3(3.0975342f, -0.015319824f, -6.3325195f), 1223) + span3 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014718u, new Vector3(3.0975342f, -0.015319824f, -6.3325195f), 1223) { StopDistance = 4.5f }; obj172.Steps = list376; reference242 = obj172; - ref QuestSequence reference243 = ref span121[3]; + num++; + ref QuestSequence reference243 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - Span span123 = CollectionsMarshal.AsSpan(list377); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.6605f, 14.000002f, 137.47444f), 1186) + index2 = 3; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + span3 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.6605f, 14.000002f, 137.47444f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -378929,14 +457246,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - span123[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.1231f, 2.2290611f, 206.59184f), 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.1231f, 2.2290611f, 206.59184f), 1186) { DisableNavmesh = true }; - span123[2] = new QuestStep(EInteractionType.Interact, 1053743u, new Vector3(-231.61676f, 2.1997917f, 302.60156f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053743u, new Vector3(-231.61676f, 2.1997917f, 302.60156f), 1186); obj173.Steps = list377; reference243 = obj173; - ref QuestSequence reference244 = ref span121[4]; + num++; + ref QuestSequence reference244 = ref span2[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -378944,9 +457264,11 @@ public static class AssemblyQuestLoader num2 = 3; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span124 = CollectionsMarshal.AsSpan(list378); - span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.43587f, 2.19987f, 265.6901f), 1186); - ref QuestStep reference245 = ref span124[1]; + span3 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.43587f, 2.19987f, 265.6901f), 1186); + index2++; + ref QuestStep reference245 = ref span3[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223, @@ -378958,27 +457280,32 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - CollectionsMarshal.AsSpan(list379)[0] = 1223; + index3 = 1; + List list379 = new List(index3); + CollectionsMarshal.SetCount(list379, index3); + span4 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span4[num3] = 1223; skipStepConditions3.InTerritory = list379; skipConditions5.StepIf = skipStepConditions3; obj175.SkipConditions = skipConditions5; reference245 = obj175; - span124[2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj174.Steps = list378; reference244 = obj174; - ref QuestSequence reference246 = ref span121[5]; + num++; + ref QuestSequence reference246 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - Span span125 = CollectionsMarshal.AsSpan(list380); - ref QuestStep reference247 = ref span125[0]; + index2 = 2; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + span3 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + ref QuestStep reference247 = ref span3[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.0740967f, 0.8086548f, 10.574402f), 1223) { TargetTerritoryId = (ushort)1186 @@ -378988,12 +457315,15 @@ public static class AssemblyQuestLoader num3 = 1; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - CollectionsMarshal.AsSpan(list381)[0] = 1223; + span4 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span4[index3] = 1223; skipStepConditions4.NotInTerritory = list381; skipConditions6.StepIf = skipStepConditions4; obj177.SkipConditions = skipConditions6; reference247 = obj177; - ref QuestStep reference248 = ref span125[1]; + num2++; + ref QuestStep reference248 = ref span3[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { AethernetShortcut = new AethernetShortcut @@ -379002,10 +457332,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num3 = 1; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - CollectionsMarshal.AsSpan(list382)[0] = new DialogueChoice + index3 = 1; + List list382 = new List(index3); + CollectionsMarshal.SetCount(list382, index3); + span6 = CollectionsMarshal.AsSpan(list382); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA201_05289_SYSTEM_100_171") @@ -379014,7 +457346,8 @@ public static class AssemblyQuestLoader reference248 = obj178; obj176.Steps = list380; reference246 = obj176; - ref QuestSequence reference249 = ref span121[6]; + num++; + ref QuestSequence reference249 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -379022,7 +457355,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + span3 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5290) @@ -379036,27 +457371,33 @@ public static class AssemblyQuestLoader num = 1; List list384 = new List(num); CollectionsMarshal.SetCount(list384, num); - CollectionsMarshal.AsSpan(list384)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list384); + index = 0; + span[index] = "liza"; questRoot41.Author = list384; - num = 3; - List list385 = new List(num); - CollectionsMarshal.SetCount(list385, num); - Span span126 = CollectionsMarshal.AsSpan(list385); - ref QuestSequence reference250 = ref span126[0]; + index = 3; + List list385 = new List(index); + CollectionsMarshal.SetCount(list385, index); + span2 = CollectionsMarshal.AsSpan(list385); + num = 0; + ref QuestSequence reference250 = ref span2[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + span3 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { StopDistance = 5f }; obj180.Steps = list386; reference250 = obj180; - ref QuestSequence reference251 = ref span126[1]; + num++; + ref QuestSequence reference251 = ref span2[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -379064,7 +457405,9 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + span3 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379073,15 +457416,18 @@ public static class AssemblyQuestLoader }; obj181.Steps = list387; reference251 = obj181; - ref QuestSequence reference252 = ref span126[2]; + num++; + ref QuestSequence reference252 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + span3 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5291) @@ -379095,13 +457441,16 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list389); + index = 0; + span[index] = "liza"; questRoot42.Author = list389; - num = 3; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span127 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference253 = ref span127[0]; + index = 3; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + span2 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference253 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -379109,21 +457458,26 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + span3 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj183.Steps = list391; reference253 = obj183; - ref QuestSequence reference254 = ref span127[1]; + num++; + ref QuestSequence reference254 = ref span2[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + span3 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379132,7 +457486,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list392; reference254 = obj184; - ref QuestSequence reference255 = ref span127[2]; + num++; + ref QuestSequence reference255 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -379140,7 +457495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + span3 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5292) @@ -379154,27 +457511,33 @@ public static class AssemblyQuestLoader num = 1; List list394 = new List(num); CollectionsMarshal.SetCount(list394, num); - CollectionsMarshal.AsSpan(list394)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list394); + index = 0; + span[index] = "liza"; questRoot43.Author = list394; - num = 7; - List list395 = new List(num); - CollectionsMarshal.SetCount(list395, num); - Span span128 = CollectionsMarshal.AsSpan(list395); - ref QuestSequence reference256 = ref span128[0]; + index = 7; + List list395 = new List(index); + CollectionsMarshal.SetCount(list395, index); + span2 = CollectionsMarshal.AsSpan(list395); + num = 0; + ref QuestSequence reference256 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + span3 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj186.Steps = list396; reference256 = obj186; - ref QuestSequence reference257 = ref span128[1]; + num++; + ref QuestSequence reference257 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -379182,8 +457545,9 @@ public static class AssemblyQuestLoader num2 = 2; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span129 = CollectionsMarshal.AsSpan(list397); - ref QuestStep reference258 = ref span129[0]; + span3 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + ref QuestStep reference258 = ref span3[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) { TargetTerritoryId = (ushort)1186 @@ -379193,12 +457557,15 @@ public static class AssemblyQuestLoader num3 = 1; List list398 = new List(num3); CollectionsMarshal.SetCount(list398, num3); - CollectionsMarshal.AsSpan(list398)[0] = 1224; + span4 = CollectionsMarshal.AsSpan(list398); + index3 = 0; + span4[index3] = 1224; skipStepConditions5.NotInTerritory = list398; skipConditions7.StepIf = skipStepConditions5; obj188.SkipConditions = skipConditions7; reference258 = obj188; - span129[1] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -379208,15 +457575,18 @@ public static class AssemblyQuestLoader }; obj187.Steps = list397; reference257 = obj187; - ref QuestSequence reference259 = ref span128[2]; + num++; + ref QuestSequence reference259 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - ref QuestStep reference260 = ref CollectionsMarshal.AsSpan(list399)[0]; + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + span3 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + ref QuestStep reference260 = ref span3[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1053748u, new Vector3(392.44666f, 61.38526f, 325.82593f), 1186) { AethernetShortcut = new AethernetShortcut @@ -379225,10 +457595,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num3 = 1; - List list400 = new List(num3); - CollectionsMarshal.SetCount(list400, num3); - CollectionsMarshal.AsSpan(list400)[0] = new DialogueChoice + index3 = 1; + List list400 = new List(index3); + CollectionsMarshal.SetCount(list400, index3); + span6 = CollectionsMarshal.AsSpan(list400); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA204_05292_SYSTEM_100_141") @@ -379237,11 +457609,13 @@ public static class AssemblyQuestLoader reference260 = obj190; obj189.Steps = list399; reference259 = obj189; - span128[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference261 = ref span128[4]; + num++; + ref QuestSequence reference261 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -379249,7 +457623,9 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + span3 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379258,19 +457634,23 @@ public static class AssemblyQuestLoader }; obj191.Steps = list401; reference261 = obj191; - span128[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference262 = ref span128[6]; + num++; + ref QuestSequence reference262 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223) + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + span3 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223) { NextQuestId = new QuestId(5293) }; @@ -379283,13 +457663,16 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list403); + index = 0; + span[index] = "liza"; questRoot44.Author = list403; - num = 5; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span130 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference263 = ref span130[0]; + index = 5; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + span2 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference263 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -379297,25 +457680,31 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + span3 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj193.Steps = list405; reference263 = obj193; - ref QuestSequence reference264 = ref span130[1]; + num++; + ref QuestSequence reference264 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1053750u, new Vector3(357.96143f, 89.921364f, -149.49268f), 1191) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + span3 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053750u, new Vector3(357.96143f, 89.921364f, -149.49268f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation }; obj194.Steps = list406; reference264 = obj194; - ref QuestSequence reference265 = ref span130[2]; + num++; + ref QuestSequence reference265 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -379323,19 +457712,23 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + span3 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj195.Steps = list407; reference265 = obj195; - ref QuestSequence reference266 = ref span130[3]; + num++; + ref QuestSequence reference266 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - Span span131 = CollectionsMarshal.AsSpan(list408); - ref QuestStep reference267 = ref span131[0]; + index2 = 2; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + span3 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + ref QuestStep reference267 = ref span3[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.0740967f, 0.8086548f, 10.574402f), 1223) { TargetTerritoryId = (ushort)1186 @@ -379345,12 +457738,15 @@ public static class AssemblyQuestLoader num3 = 1; List list409 = new List(num3); CollectionsMarshal.SetCount(list409, num3); - CollectionsMarshal.AsSpan(list409)[0] = 1223; + span4 = CollectionsMarshal.AsSpan(list409); + index3 = 0; + span4[index3] = 1223; skipStepConditions6.NotInTerritory = list409; skipConditions8.StepIf = skipStepConditions6; obj197.SkipConditions = skipConditions8; reference267 = obj197; - span131[1] = new QuestStep(EInteractionType.Interact, 1053751u, new Vector3(-296.4676f, 9.520004f, 27.328857f), 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053751u, new Vector3(-296.4676f, 9.520004f, 27.328857f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -379360,7 +457756,8 @@ public static class AssemblyQuestLoader }; obj196.Steps = list408; reference266 = obj196; - ref QuestSequence reference268 = ref span130[4]; + num++; + ref QuestSequence reference268 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -379368,8 +457765,9 @@ public static class AssemblyQuestLoader num2 = 2; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - Span span132 = CollectionsMarshal.AsSpan(list410); - span132[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + span3 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AethernetShortcut = new AethernetShortcut @@ -379378,7 +457776,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { NextQuestId = new QuestId(5294) }; @@ -379391,24 +457790,30 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list411); + index = 0; + span[index] = "liza"; questRoot45.Author = list411; - num = 5; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span133 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference269 = ref span133[0]; + index = 5; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + span2 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference269 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + span3 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); obj199.Steps = list413; reference269 = obj199; - ref QuestSequence reference270 = ref span133[1]; + num++; + ref QuestSequence reference270 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -379416,7 +457821,9 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + span3 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379425,21 +457832,25 @@ public static class AssemblyQuestLoader }; obj200.Steps = list414; reference270 = obj200; - ref QuestSequence reference271 = ref span133[2]; + num++; + ref QuestSequence reference271 = ref span2[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + span3 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj201.Steps = list415; reference271 = obj201; - ref QuestSequence reference272 = ref span133[3]; + num++; + ref QuestSequence reference272 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -379447,23 +457858,27 @@ public static class AssemblyQuestLoader num2 = 3; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span134 = CollectionsMarshal.AsSpan(list416); - ref QuestStep reference273 = ref span134[0]; + span3 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + ref QuestStep reference273 = ref span3[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.06517491f, 1.083085f, 8.115898f), 1224) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list417 = new List(num3); - CollectionsMarshal.SetCount(list417, num3); - CollectionsMarshal.AsSpan(list417)[0] = 1224; + index3 = 1; + List list417 = new List(index3); + CollectionsMarshal.SetCount(list417, index3); + span4 = CollectionsMarshal.AsSpan(list417); + num3 = 0; + span4[num3] = 1224; skipStepConditions7.NotInTerritory = list417; skipConditions9.StepIf = skipStepConditions7; obj203.SkipConditions = skipConditions9; reference273 = obj203; - ref QuestStep reference274 = ref span134[1]; + index2++; + ref QuestStep reference274 = ref span3[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223, @@ -379478,39 +457893,47 @@ public static class AssemblyQuestLoader num3 = 1; List list418 = new List(num3); CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = 1223; + span4 = CollectionsMarshal.AsSpan(list418); + index3 = 0; + span4[index3] = 1223; skipStepConditions8.InTerritory = list418; skipConditions10.StepIf = skipStepConditions8; obj204.SkipConditions = skipConditions10; reference274 = obj204; - span134[2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj202.Steps = list416; reference272 = obj202; - ref QuestSequence reference275 = ref span133[4]; + num++; + ref QuestSequence reference275 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - Span span135 = CollectionsMarshal.AsSpan(list419); - ref QuestStep reference276 = ref span135[0]; + index2 = 2; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + span3 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + ref QuestStep reference276 = ref span3[num2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.074883f, 0.8100026f, 10.57586f), 1223) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list420 = new List(num3); - CollectionsMarshal.SetCount(list420, num3); - CollectionsMarshal.AsSpan(list420)[0] = 1223; + index3 = 1; + List list420 = new List(index3); + CollectionsMarshal.SetCount(list420, index3); + span4 = CollectionsMarshal.AsSpan(list420); + num3 = 0; + span4[num3] = 1223; skipStepConditions9.NotInTerritory = list420; skipConditions11.StepIf = skipStepConditions9; obj206.SkipConditions = skipConditions11; reference276 = obj206; - span135[1] = new QuestStep(EInteractionType.CompleteQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { StopDistance = 7f }; @@ -379523,13 +457946,16 @@ public static class AssemblyQuestLoader num = 1; List list421 = new List(num); CollectionsMarshal.SetCount(list421, num); - CollectionsMarshal.AsSpan(list421)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list421); + index = 0; + span[index] = "Censored"; questRoot46.Author = list421; - num = 10; - List list422 = new List(num); - CollectionsMarshal.SetCount(list422, num); - Span span136 = CollectionsMarshal.AsSpan(list422); - ref QuestSequence reference277 = ref span136[0]; + index = 10; + List list422 = new List(index); + CollectionsMarshal.SetCount(list422, index); + span2 = CollectionsMarshal.AsSpan(list422); + num = 0; + ref QuestSequence reference277 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -379537,8 +457963,9 @@ public static class AssemblyQuestLoader num2 = 2; List list423 = new List(num2); CollectionsMarshal.SetCount(list423, num2); - Span span137 = CollectionsMarshal.AsSpan(list423); - span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(311.757f, 70.0001f, -27.256859f), 1186) + span3 = CollectionsMarshal.AsSpan(list423); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(311.757f, 70.0001f, -27.256859f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -379568,21 +457995,25 @@ public static class AssemblyQuestLoader } } }; - span137[1] = new QuestStep(EInteractionType.AcceptQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) { StopDistance = 5f }; obj207.Steps = list423; reference277 = obj207; - ref QuestSequence reference278 = ref span136[1]; + num++; + ref QuestSequence reference278 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list424 = new List(num2); - CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186) + index2 = 1; + List list424 = new List(index2); + CollectionsMarshal.SetCount(list424, index2); + span3 = CollectionsMarshal.AsSpan(list424); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -379592,7 +458023,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list424; reference278 = obj208; - ref QuestSequence reference279 = ref span136[2]; + num++; + ref QuestSequence reference279 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -379600,50 +458032,69 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186); + span3 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186); obj209.Steps = list425; reference279 = obj209; - ref QuestSequence reference280 = ref span136[3]; + num++; + ref QuestSequence reference280 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - Span span138 = CollectionsMarshal.AsSpan(list426); - ref QuestStep reference281 = ref span138[0]; + index2 = 3; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + span3 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + ref QuestStep reference281 = ref span3[num2]; QuestStep questStep60 = new QuestStep(EInteractionType.Interact, 1053619u, new Vector3(-127.244995f, 2.199962f, 236.71313f), 1186); num3 = 6; List list427 = new List(num3); CollectionsMarshal.SetCount(list427, num3); - Span span139 = CollectionsMarshal.AsSpan(list427); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list427); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep60.CompletionQuestVariablesFlags = list427; reference281 = questStep60; - ref QuestStep reference282 = ref span138[1]; + num2++; + ref QuestStep reference282 = ref span3[num2]; QuestStep questStep61 = new QuestStep(EInteractionType.Interact, 1053620u, new Vector3(-172.80847f, 2.2299733f, 207.96509f), 1186); - num3 = 6; - List list428 = new List(num3); - CollectionsMarshal.SetCount(list428, num3); - Span span140 = CollectionsMarshal.AsSpan(list428); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list428 = new List(index3); + CollectionsMarshal.SetCount(list428, index3); + span5 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep61.CompletionQuestVariablesFlags = list428; reference282 = questStep61; - span138[2] = new QuestStep(EInteractionType.Interact, 1053621u, new Vector3(-262.77563f, 2.1999757f, 236.25537f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053621u, new Vector3(-262.77563f, 2.1999757f, 236.25537f), 1186); obj210.Steps = list426; reference280 = obj210; - ref QuestSequence reference283 = ref span136[4]; + num++; + ref QuestSequence reference283 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 4 @@ -379651,21 +458102,27 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1053626u, new Vector3(-323.26245f, 13.999997f, 178.0575f), 1186); + span3 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053626u, new Vector3(-323.26245f, 13.999997f, 178.0575f), 1186); obj211.Steps = list429; reference283 = obj211; - ref QuestSequence reference284 = ref span136[5]; + num++; + ref QuestSequence reference284 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.Interact, 1053623u, new Vector3(-252.21643f, 2.199965f, 257.95374f), 1186); + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + span3 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053623u, new Vector3(-252.21643f, 2.199965f, 257.95374f), 1186); obj212.Steps = list430; reference284 = obj212; - ref QuestSequence reference285 = ref span136[6]; + num++; + ref QuestSequence reference285 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 6 @@ -379673,7 +458130,9 @@ public static class AssemblyQuestLoader num2 = 1; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - ref QuestStep reference286 = ref CollectionsMarshal.AsSpan(list431)[0]; + span3 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + ref QuestStep reference286 = ref span3[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1053627u, new Vector3(-580.22437f, -0.89430946f, -521.5991f), 1191) { Fly = true, @@ -379682,7 +458141,9 @@ public static class AssemblyQuestLoader num3 = 1; List list432 = new List(num3); CollectionsMarshal.SetCount(list432, num3); - CollectionsMarshal.AsSpan(list432)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list432); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB921_05295_SYSTEM_000_122") @@ -379691,18 +458152,22 @@ public static class AssemblyQuestLoader reference286 = obj214; obj213.Steps = list431; reference285 = obj213; - ref QuestSequence reference287 = ref span136[7]; + num++; + ref QuestSequence reference287 = ref span2[num]; QuestSequence obj215 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list433 = new List(num2); - CollectionsMarshal.SetCount(list433, num2); - CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1053630u, new Vector3(96.75745f, 12.03999f, 144.48767f), 1254); + index2 = 1; + List list433 = new List(index2); + CollectionsMarshal.SetCount(list433, index2); + span3 = CollectionsMarshal.AsSpan(list433); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053630u, new Vector3(96.75745f, 12.03999f, 144.48767f), 1254); obj215.Steps = list433; reference287 = obj215; - ref QuestSequence reference288 = ref span136[8]; + num++; + ref QuestSequence reference288 = ref span2[num]; QuestSequence obj216 = new QuestSequence { Sequence = 8 @@ -379710,47 +458175,65 @@ public static class AssemblyQuestLoader num2 = 3; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span141 = CollectionsMarshal.AsSpan(list434); - ref QuestStep reference289 = ref span141[0]; + span3 = CollectionsMarshal.AsSpan(list434); + index2 = 0; + ref QuestStep reference289 = ref span3[index2]; QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 2014622u, new Vector3(97.70349f, 12.588623f, 127.885864f), 1254); - num3 = 6; - List list435 = new List(num3); - CollectionsMarshal.SetCount(list435, num3); - Span span142 = CollectionsMarshal.AsSpan(list435); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list435 = new List(index3); + CollectionsMarshal.SetCount(list435, index3); + span5 = CollectionsMarshal.AsSpan(list435); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep62.CompletionQuestVariablesFlags = list435; reference289 = questStep62; - ref QuestStep reference290 = ref span141[1]; + index2++; + ref QuestStep reference290 = ref span3[index2]; QuestStep questStep63 = new QuestStep(EInteractionType.Interact, 2014623u, new Vector3(66.9718f, 13.534729f, 96.69641f), 1254); num3 = 6; List list436 = new List(num3); CollectionsMarshal.SetCount(list436, num3); - Span span143 = CollectionsMarshal.AsSpan(list436); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list436); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep63.CompletionQuestVariablesFlags = list436; reference290 = questStep63; - span141[2] = new QuestStep(EInteractionType.Interact, 2014624u, new Vector3(104.14282f, 12.924377f, 4.9591064f), 1254); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014624u, new Vector3(104.14282f, 12.924377f, 4.9591064f), 1254); obj216.Steps = list434; reference288 = obj216; - ref QuestSequence reference291 = ref span136[9]; + num++; + ref QuestSequence reference291 = ref span2[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053633u, new Vector3(81.49841f, 12.039999f, 48.02002f), 1254) + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + span3 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053633u, new Vector3(81.49841f, 12.039999f, 48.02002f), 1254) { NextQuestId = new QuestId(5296) }; @@ -379763,13 +458246,16 @@ public static class AssemblyQuestLoader num = 1; List list438 = new List(num); CollectionsMarshal.SetCount(list438, num); - CollectionsMarshal.AsSpan(list438)[0] = "Censored"; + span = CollectionsMarshal.AsSpan(list438); + index = 0; + span[index] = "Censored"; questRoot47.Author = list438; - num = 7; - List list439 = new List(num); - CollectionsMarshal.SetCount(list439, num); - Span span144 = CollectionsMarshal.AsSpan(list439); - ref QuestSequence reference292 = ref span144[0]; + index = 7; + List list439 = new List(index); + CollectionsMarshal.SetCount(list439, index); + span2 = CollectionsMarshal.AsSpan(list439); + num = 0; + ref QuestSequence reference292 = ref span2[num]; QuestSequence obj218 = new QuestSequence { Sequence = 0 @@ -379777,18 +458263,23 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053634u, new Vector3(90.22656f, 12.03999f, 147.08167f), 1254); + span3 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053634u, new Vector3(90.22656f, 12.03999f, 147.08167f), 1254); obj218.Steps = list440; reference292 = obj218; - ref QuestSequence reference293 = ref span144[1]; + num++; + ref QuestSequence reference293 = ref span2[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - CollectionsMarshal.AsSpan(list441)[0] = new QuestStep(EInteractionType.Interact, 1053637u, new Vector3(232.47119f, 50.749866f, 210.193f), 1186) + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + span3 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053637u, new Vector3(232.47119f, 50.749866f, 210.193f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -379799,7 +458290,8 @@ public static class AssemblyQuestLoader }; obj219.Steps = list441; reference293 = obj219; - ref QuestSequence reference294 = ref span144[2]; + num++; + ref QuestSequence reference294 = ref span2[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -379807,24 +458299,30 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1053641u, new Vector3(-255.51239f, 26.1f, 103.04407f), 1191) + span3 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053641u, new Vector3(-255.51239f, 26.1f, 103.04407f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; obj220.Steps = list442; reference294 = obj220; - ref QuestSequence reference295 = ref span144[3]; + num++; + ref QuestSequence reference295 = ref span2[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1053646u, new Vector3(-91.66095f, 46.00767f, 390.64624f), 1191); + index2 = 1; + List list443 = new List(index2); + CollectionsMarshal.SetCount(list443, index2); + span3 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053646u, new Vector3(-91.66095f, 46.00767f, 390.64624f), 1191); obj221.Steps = list443; reference295 = obj221; - ref QuestSequence reference296 = ref span144[4]; + num++; + ref QuestSequence reference296 = ref span2[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 @@ -379832,15 +458330,19 @@ public static class AssemblyQuestLoader num2 = 1; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - ref QuestStep reference297 = ref CollectionsMarshal.AsSpan(list444)[0]; + span3 = CollectionsMarshal.AsSpan(list444); + index2 = 0; + ref QuestStep reference297 = ref span3[index2]; QuestStep obj223 = new QuestStep(EInteractionType.Interact, 1053649u, new Vector3(113.63391f, 83.57817f, 552.20874f), 1191) { Fly = true }; - num3 = 1; - List list445 = new List(num3); - CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = new DialogueChoice + index3 = 1; + List list445 = new List(index3); + CollectionsMarshal.SetCount(list445, index3); + span6 = CollectionsMarshal.AsSpan(list445); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB922_05296_Q1_000_000"), @@ -379850,21 +458352,25 @@ public static class AssemblyQuestLoader reference297 = obj223; obj222.Steps = list444; reference296 = obj222; - ref QuestSequence reference298 = ref span144[5]; + num++; + ref QuestSequence reference298 = ref span2[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list446 = new List(num2); - CollectionsMarshal.SetCount(list446, num2); - CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.Interact, 1053650u, new Vector3(175.95166f, 83.2133f, 652.64355f), 1191) + index2 = 1; + List list446 = new List(index2); + CollectionsMarshal.SetCount(list446, index2); + span3 = CollectionsMarshal.AsSpan(list446); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053650u, new Vector3(175.95166f, 83.2133f, 652.64355f), 1191) { Fly = true }; obj224.Steps = list446; reference298 = obj224; - ref QuestSequence reference299 = ref span144[6]; + num++; + ref QuestSequence reference299 = ref span2[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -379872,7 +458378,9 @@ public static class AssemblyQuestLoader num2 = 1; List list447 = new List(num2); CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053652u, new Vector3(236.62158f, 50.749947f, 209.97937f), 1186) + span3 = CollectionsMarshal.AsSpan(list447); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053652u, new Vector3(236.62158f, 50.749947f, 209.97937f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -379891,23 +458399,28 @@ public static class AssemblyQuestLoader num = 1; List list448 = new List(num); CollectionsMarshal.SetCount(list448, num); - CollectionsMarshal.AsSpan(list448)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list448); + index = 0; + span[index] = "WigglyMuffin"; questRoot48.Author = list448; questRoot48.IsSeasonalQuest = true; questRoot48.SeasonalQuestExpiry = new DateTime(2025, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 4; - List list449 = new List(num); - CollectionsMarshal.SetCount(list449, num); - Span span145 = CollectionsMarshal.AsSpan(list449); - ref QuestSequence reference300 = ref span145[0]; + index = 4; + List list449 = new List(index); + CollectionsMarshal.SetCount(list449, index); + span2 = CollectionsMarshal.AsSpan(list449); + num = 0; + ref QuestSequence reference300 = ref span2[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list450 = new List(num2); - CollectionsMarshal.SetCount(list450, num2); - ref QuestStep reference301 = ref CollectionsMarshal.AsSpan(list450)[0]; + index2 = 1; + List list450 = new List(index2); + CollectionsMarshal.SetCount(list450, index2); + span3 = CollectionsMarshal.AsSpan(list450); + num2 = 0; + ref QuestStep reference301 = ref span3[num2]; QuestStep obj227 = new QuestStep(EInteractionType.AcceptQuest, 1053660u, new Vector3(3.5552979f, 44.499996f, 125.62744f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -379925,14 +458438,17 @@ public static class AssemblyQuestLoader num3 = 1; List list451 = new List(num3); CollectionsMarshal.SetCount(list451, num3); - CollectionsMarshal.AsSpan(list451)[0] = 128; + span4 = CollectionsMarshal.AsSpan(list451); + index3 = 0; + span4[index3] = 128; obj228.InTerritory = list451; skipConditions12.AetheryteShortcutIf = obj228; obj227.SkipConditions = skipConditions12; reference301 = obj227; obj226.Steps = list450; reference300 = obj226; - ref QuestSequence reference302 = ref span145[1]; + num++; + ref QuestSequence reference302 = ref span2[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 @@ -379940,26 +458456,32 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.Interact, 1001024u, new Vector3(28.519043f, 44.499977f, 176.3789f), 128); + span3 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1001024u, new Vector3(28.519043f, 44.499977f, 176.3789f), 128); obj229.Steps = list452; reference302 = obj229; - ref QuestSequence reference303 = ref span145[2]; + num++; + ref QuestSequence reference303 = ref span2[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - Span span146 = CollectionsMarshal.AsSpan(list453); - span146[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.724976f, 44.5f, 186.5f), 128); - span146[1] = new QuestStep(EInteractionType.Interact, 1053662u, new Vector3(-32.425476f, 71.50164f, 135.91211f), 135) + index2 = 2; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + span3 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.724976f, 44.5f, 186.5f), 128); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053662u, new Vector3(-32.425476f, 71.50164f, 135.91211f), 135) { Mount = true }; obj230.Steps = list453; reference303 = obj230; - ref QuestSequence reference304 = ref span145[3]; + num++; + ref QuestSequence reference304 = ref span2[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -379967,7 +458489,9 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) + span3 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) { NextQuestId = new QuestId(5298) }; @@ -379980,23 +458504,28 @@ public static class AssemblyQuestLoader num = 1; List list455 = new List(num); CollectionsMarshal.SetCount(list455, num); - CollectionsMarshal.AsSpan(list455)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list455); + index = 0; + span[index] = "WigglyMuffin"; questRoot49.Author = list455; questRoot49.IsSeasonalQuest = true; questRoot49.SeasonalQuestExpiry = new DateTime(2025, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list456 = new List(num); - CollectionsMarshal.SetCount(list456, num); - Span span147 = CollectionsMarshal.AsSpan(list456); - ref QuestSequence reference305 = ref span147[0]; + index = 8; + List list456 = new List(index); + CollectionsMarshal.SetCount(list456, index); + span2 = CollectionsMarshal.AsSpan(list456); + num = 0; + ref QuestSequence reference305 = ref span2[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - ref QuestStep reference306 = ref CollectionsMarshal.AsSpan(list457)[0]; + index2 = 1; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + span3 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference306 = ref span3[num2]; QuestStep obj233 = new QuestStep(EInteractionType.AcceptQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -380011,17 +458540,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list458 = new List(num3); - CollectionsMarshal.SetCount(list458, num3); - CollectionsMarshal.AsSpan(list458)[0] = 135; + index3 = 1; + List list458 = new List(index3); + CollectionsMarshal.SetCount(list458, index3); + span4 = CollectionsMarshal.AsSpan(list458); + num3 = 0; + span4[num3] = 135; obj234.InTerritory = list458; skipConditions13.AetheryteShortcutIf = obj234; obj233.SkipConditions = skipConditions13; reference306 = obj233; obj232.Steps = list457; reference305 = obj232; - ref QuestSequence reference307 = ref span147[1]; + num++; + ref QuestSequence reference307 = ref span2[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 @@ -380029,21 +458561,26 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1053666u, new Vector3(184.40515f, 32.156242f, 112.962524f), 135) + span3 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053666u, new Vector3(184.40515f, 32.156242f, 112.962524f), 135) { Fly = true }; obj235.Steps = list459; reference307 = obj235; - ref QuestSequence reference308 = ref span147[2]; + num++; + ref QuestSequence reference308 = ref span2[num]; QuestSequence obj236 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list460 = new List(num2); - CollectionsMarshal.SetCount(list460, num2); - ref QuestStep reference309 = ref CollectionsMarshal.AsSpan(list460)[0]; + index2 = 1; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + span3 = CollectionsMarshal.AsSpan(list460); + num2 = 0; + ref QuestStep reference309 = ref span3[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1053667u, new Vector3(76.24927f, 71.28403f, 366.3844f), 135) { Fly = true @@ -380051,7 +458588,9 @@ public static class AssemblyQuestLoader num3 = 1; List list461 = new List(num3); CollectionsMarshal.SetCount(list461, num3); - CollectionsMarshal.AsSpan(list461)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list461); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESANX102_05298_Q50_000_001"), @@ -380061,7 +458600,8 @@ public static class AssemblyQuestLoader reference309 = obj237; obj236.Steps = list460; reference308 = obj236; - ref QuestSequence reference310 = ref span147[3]; + num++; + ref QuestSequence reference310 = ref span2[num]; QuestSequence obj238 = new QuestSequence { Sequence = 3 @@ -380069,27 +458609,33 @@ public static class AssemblyQuestLoader num2 = 1; List list462 = new List(num2); CollectionsMarshal.SetCount(list462, num2); - CollectionsMarshal.AsSpan(list462)[0] = new QuestStep(EInteractionType.Interact, 1053669u, new Vector3(-43.47296f, 55.10932f, 488.1819f), 135) + span3 = CollectionsMarshal.AsSpan(list462); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053669u, new Vector3(-43.47296f, 55.10932f, 488.1819f), 135) { Fly = true }; obj238.Steps = list462; reference310 = obj238; - ref QuestSequence reference311 = ref span147[4]; + num++; + ref QuestSequence reference311 = ref span2[num]; QuestSequence obj239 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list463 = new List(num2); - CollectionsMarshal.SetCount(list463, num2); - CollectionsMarshal.AsSpan(list463)[0] = new QuestStep(EInteractionType.Interact, 1053671u, new Vector3(6.6071167f, 44.311028f, 797.3906f), 135) + index2 = 1; + List list463 = new List(index2); + CollectionsMarshal.SetCount(list463, index2); + span3 = CollectionsMarshal.AsSpan(list463); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053671u, new Vector3(6.6071167f, 44.311028f, 797.3906f), 135) { Fly = true }; obj239.Steps = list463; reference311 = obj239; - ref QuestSequence reference312 = ref span147[5]; + num++; + ref QuestSequence reference312 = ref span2[num]; QuestSequence obj240 = new QuestSequence { Sequence = 5 @@ -380097,32 +458643,38 @@ public static class AssemblyQuestLoader num2 = 2; List list464 = new List(num2); CollectionsMarshal.SetCount(list464, num2); - Span span148 = CollectionsMarshal.AsSpan(list464); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(134.80649f, 58.968193f, 935.78265f), 135) + span3 = CollectionsMarshal.AsSpan(list464); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(134.80649f, 58.968193f, 935.78265f), 135) { Fly = true }; - span148[1] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135) { Land = true }; obj240.Steps = list464; reference312 = obj240; - ref QuestSequence reference313 = ref span147[6]; + num++; + ref QuestSequence reference313 = ref span2[num]; QuestSequence obj241 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list465 = new List(num2); - CollectionsMarshal.SetCount(list465, num2); - CollectionsMarshal.AsSpan(list465)[0] = new QuestStep(EInteractionType.Interact, 1053676u, new Vector3(24.39917f, 44.499973f, 163.07312f), 128) + index2 = 1; + List list465 = new List(index2); + CollectionsMarshal.SetCount(list465, index2); + span3 = CollectionsMarshal.AsSpan(list465); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053676u, new Vector3(24.39917f, 44.499973f, 163.07312f), 128) { Fly = true }; obj241.Steps = list465; reference313 = obj241; - ref QuestSequence reference314 = ref span147[7]; + num++; + ref QuestSequence reference314 = ref span2[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -380130,7 +458682,9 @@ public static class AssemblyQuestLoader num2 = 1; List list466 = new List(num2); CollectionsMarshal.SetCount(list466, num2); - CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053677u, new Vector3(-178.4848f, 40.99994f, 185.44287f), 128); + span3 = CollectionsMarshal.AsSpan(list466); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053677u, new Vector3(-178.4848f, 40.99994f, 185.44287f), 128); obj242.Steps = list466; reference314 = obj242; questRoot49.QuestSequence = list456; @@ -380140,22 +458694,26 @@ public static class AssemblyQuestLoader num = 1; List list467 = new List(num); CollectionsMarshal.SetCount(list467, num); - CollectionsMarshal.AsSpan(list467)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list467); + index = 0; + span[index] = "liza"; questRoot50.Author = list467; - num = 5; - List list468 = new List(num); - CollectionsMarshal.SetCount(list468, num); - Span span149 = CollectionsMarshal.AsSpan(list468); - ref QuestSequence reference315 = ref span149[0]; + index = 5; + List list468 = new List(index); + CollectionsMarshal.SetCount(list468, index); + span2 = CollectionsMarshal.AsSpan(list468); + num = 0; + ref QuestSequence reference315 = ref span2[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list469 = new List(num2); - CollectionsMarshal.SetCount(list469, num2); - Span span150 = CollectionsMarshal.AsSpan(list469); - ref QuestStep reference316 = ref span150[0]; + index2 = 2; + List list469 = new List(index2); + CollectionsMarshal.SetCount(list469, index2); + span3 = CollectionsMarshal.AsSpan(list469); + num2 = 0; + ref QuestStep reference316 = ref span3[num2]; QuestStep obj244 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -380168,28 +458726,34 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list470 = new List(num3); - CollectionsMarshal.SetCount(list470, num3); - CollectionsMarshal.AsSpan(list470)[0] = 1207; + index3 = 1; + List list470 = new List(index3); + CollectionsMarshal.SetCount(list470, index3); + span4 = CollectionsMarshal.AsSpan(list470); + num3 = 0; + span4[num3] = 1207; skipStepConditions10.InTerritory = list470; skipConditions14.StepIf = skipStepConditions10; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; List list471 = new List(num3); CollectionsMarshal.SetCount(list471, num3); - CollectionsMarshal.AsSpan(list471)[0] = 1207; + span4 = CollectionsMarshal.AsSpan(list471); + index3 = 0; + span4[index3] = 1207; skipAetheryteCondition3.InTerritory = list471; skipConditions14.AetheryteShortcutIf = skipAetheryteCondition3; obj244.SkipConditions = skipConditions14; reference316 = obj244; - span150[1] = new QuestStep(EInteractionType.AcceptQuest, 1052483u, new Vector3(-4.8982544f, -6.439014E-08f, 8.926453f), 1207) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052483u, new Vector3(-4.8982544f, -6.439014E-08f, 8.926453f), 1207) { StopDistance = 7f }; obj243.Steps = list469; reference315 = obj243; - ref QuestSequence reference317 = ref span149[1]; + num++; + ref QuestSequence reference317 = ref span2[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -380197,12 +458761,16 @@ public static class AssemblyQuestLoader num2 = 1; List list472 = new List(num2); CollectionsMarshal.SetCount(list472, num2); - ref QuestStep reference318 = ref CollectionsMarshal.AsSpan(list472)[0]; + span3 = CollectionsMarshal.AsSpan(list472); + index2 = 0; + ref QuestStep reference318 = ref span3[index2]; QuestStep questStep64 = new QuestStep(EInteractionType.Interact, 2014751u, new Vector3(-19.699463f, 2.7008667f, -30.258667f), 1207); - num3 = 1; - List list473 = new List(num3); - CollectionsMarshal.SetCount(list473, num3); - CollectionsMarshal.AsSpan(list473)[0] = new DialogueChoice + index3 = 1; + List list473 = new List(index3); + CollectionsMarshal.SetCount(list473, index3); + span6 = CollectionsMarshal.AsSpan(list473); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMH101_05299_SYSTEM_000_031") @@ -380211,25 +458779,30 @@ public static class AssemblyQuestLoader reference318 = questStep64; obj245.Steps = list472; reference317 = obj245; - span149[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference319 = ref span149[3]; + num++; + ref QuestSequence reference319 = ref span2[num]; QuestSequence obj246 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list474 = new List(num2); - CollectionsMarshal.SetCount(list474, num2); - CollectionsMarshal.AsSpan(list474)[0] = new QuestStep(EInteractionType.Interact, 1053810u, new Vector3(5.7526245f, 0.49999905f, 3.40271f), 1268) + index2 = 1; + List list474 = new List(index2); + CollectionsMarshal.SetCount(list474, index2); + span3 = CollectionsMarshal.AsSpan(list474); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053810u, new Vector3(5.7526245f, 0.49999905f, 3.40271f), 1268) { StopDistance = 7f }; obj246.Steps = list474; reference319 = obj246; - ref QuestSequence reference320 = ref span149[4]; + num++; + ref QuestSequence reference320 = ref span2[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue @@ -380237,7 +458810,9 @@ public static class AssemblyQuestLoader num2 = 1; List list475 = new List(num2); CollectionsMarshal.SetCount(list475, num2); - CollectionsMarshal.AsSpan(list475)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) + span3 = CollectionsMarshal.AsSpan(list475); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) { StopDistance = 7f }; @@ -380254,13 +458829,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -380268,22 +458846,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span3[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2014672u, new Vector3(17.19253f, 0.9405764f, 8.082603f), 1268) { TargetTerritoryId = (ushort)1207 @@ -380293,15 +458875,19 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1268; + Span span4 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span4[index3] = 1268; skipStepConditions.NotInTerritory = list5; skipConditions.StepIf = skipStepConditions; obj3.SkipConditions = skipConditions; reference3 = obj3; - span2[1] = new QuestStep(EInteractionType.Interact, 2014674u, new Vector3(-4.4404297f, -0.015319824f, 8.895996f), 1207); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014674u, new Vector3(-4.4404297f, -0.015319824f, 8.895996f), 1207); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -380309,23 +458895,27 @@ public static class AssemblyQuestLoader num2 = 2; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span3[0]; + span3 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span3[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.01455665f, 1f, 16.05096f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = 1207; + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + span4 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span4[num3] = 1207; skipStepConditions2.NotInTerritory = list7; skipConditions2.StepIf = skipStepConditions2; obj5.SkipConditions = skipConditions2; reference5 = obj5; - ref QuestStep reference6 = ref span3[1]; + index2++; + ref QuestStep reference6 = ref span3[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1053820u, new Vector3(0.59503174f, -6.0500035f, 226.6117f), 1186) { AethernetShortcut = new AethernetShortcut @@ -380337,36 +458927,46 @@ public static class AssemblyQuestLoader num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMH102_05300_Q1_000_034") }; obj6.DialogueChoices = list8; - num3 = 4; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = 0u; - span4[1] = 1u; - span4[2] = 2u; - span4[3] = 3u; + index3 = 4; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span6 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span6[num3] = 0u; + num3++; + span6[num3] = 1u; + num3++; + span6[num3] = 2u; + num3++; + span6[num3] = 3u; obj6.PointMenuChoices = list9; reference6 = obj6; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1053824u, new Vector3(-0.25946045f, -6.050004f, 223.55994f), 1186); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053824u, new Vector3(-0.25946045f, -6.050004f, 223.55994f), 1186); obj7.Steps = list10; reference7 = obj7; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -380374,7 +458974,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053827u, new Vector3(-306.0807f, 10.0149355f, 1.8157349f), 1186) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053827u, new Vector3(-306.0807f, 10.0149355f, 1.8157349f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380391,27 +458993,33 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "liza"; questRoot2.Author = list12; - num = 6; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference9 = ref span5[0]; + index = 6; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053830u, new Vector3(-343.31274f, 10.014645f, -11.703674f), 1186) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053830u, new Vector3(-343.31274f, 10.014645f, -11.703674f), 1186) { StopDistance = 5f }; obj9.Steps = list14; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -380419,7 +459027,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1053835u, new Vector3(312.73352f, 70.00006f, 10.72699f), 1186) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053835u, new Vector3(312.73352f, 70.00006f, 10.72699f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380429,22 +459039,26 @@ public static class AssemblyQuestLoader }; obj10.Steps = list15; reference10 = obj10; - ref QuestSequence reference11 = ref span5[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Emote, 1053838u, new Vector3(313.74072f, 70.00006f, 9.811523f), 1186) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1053838u, new Vector3(313.74072f, 70.00006f, 9.811523f), 1186) { StopDistance = 5f, Emote = EEmote.Rally }; obj11.Steps = list16; reference11 = obj11; - ref QuestSequence reference12 = ref span5[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 @@ -380452,66 +459066,91 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1053839u, new Vector3(311.39075f, 70.00006f, 10.421875f), 1186) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053839u, new Vector3(311.39075f, 70.00006f, 10.421875f), 1186) { StopDistance = 7f }; obj12.Steps = list17; reference12 = obj12; - ref QuestSequence reference13 = ref span5[4]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference14 = ref span6[0]; + index2 = 3; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + span3 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + ref QuestStep reference14 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1053841u, new Vector3(343.34326f, 50.75f, 190.05103f), 1186); num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list19; reference14 = questStep; - ref QuestStep reference15 = ref span6[1]; + num2++; + ref QuestStep reference15 = ref span3[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1053843u, new Vector3(350.1183f, 50.75f, 244.80042f), 1186); - num3 = 6; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + span7 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list20; reference15 = questStep2; - ref QuestStep reference16 = ref span6[2]; + num2++; + ref QuestStep reference16 = ref span3[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1053842u, new Vector3(380.84985f, 52.25f, 235.21777f), 1186); num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span9 = CollectionsMarshal.AsSpan(list21); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list21; reference16 = questStep3; obj13.Steps = list18; reference13 = obj13; - ref QuestSequence reference17 = ref span5[5]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -380519,7 +459158,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053844u, new Vector3(241.01624f, 50.75f, 273.91467f), 1186); + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053844u, new Vector3(241.01624f, 50.75f, 273.91467f), 1186); obj14.Steps = list22; reference17 = obj14; questRoot2.QuestSequence = list13; @@ -380529,27 +459170,33 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list23); + index = 0; + span[index] = "liza"; questRoot3.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span10 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference18 = ref span10[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + span2 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053845u, new Vector3(239.88696f, 50.749996f, 273.9757f), 1186) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + span3 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053845u, new Vector3(239.88696f, 50.749996f, 273.9757f), 1186) { StopDistance = 5f }; obj15.Steps = list25; reference18 = obj15; - ref QuestSequence reference19 = ref span10[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -380557,21 +459204,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1053847u, new Vector3(314.62573f, 70.00009f, 0.7476196f), 1186); + span3 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053847u, new Vector3(314.62573f, 70.00009f, 0.7476196f), 1186); obj16.Steps = list26; reference19 = obj16; - ref QuestSequence reference20 = ref span10[2]; + num++; + ref QuestSequence reference20 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1053851u, new Vector3(351.70508f, 60f, 78.446655f), 1186); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + span3 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053851u, new Vector3(351.70508f, 60f, 78.446655f), 1186); obj17.Steps = list27; reference20 = obj17; - ref QuestSequence reference21 = ref span10[3]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -380579,7 +459232,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2014675u, new Vector3(270.83228f, 50.736206f, 123.00293f), 1186) + span3 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014675u, new Vector3(270.83228f, 50.736206f, 123.00293f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380589,15 +459244,18 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference21 = obj18; - ref QuestSequence reference22 = ref span10[4]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + span3 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) { StopDistance = 5f }; @@ -380610,13 +459268,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list30); + index = 0; + span[index] = "liza"; questRoot4.Author = list30; - num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span11 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference23 = ref span11[0]; + index = 3; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + span2 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -380624,40 +459285,48 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) { StopDistance = 5f }; obj20.Steps = list32; reference23 = obj20; - ref QuestSequence reference24 = ref span11[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span12 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference25 = ref span12[0]; + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + span3 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference25 = ref span3[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 1207; + index3 = 1; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + span4 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span4[num3] = 1207; skipStepConditions3.InTerritory = list34; skipConditions3.StepIf = skipStepConditions3; obj22.SkipConditions = skipConditions3; reference25 = obj22; - span12[1] = new QuestStep(EInteractionType.Interact, 1053860u, new Vector3(-4.348877f, -4.3092264E-08f, 6.576599f), 1207); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053860u, new Vector3(-4.348877f, -4.3092264E-08f, 6.576599f), 1207); obj21.Steps = list33; reference24 = obj21; - ref QuestSequence reference26 = ref span11[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -380665,7 +459334,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053864u, new Vector3(-2.456726f, -7.357661E-08f, 9.109558f), 1207); + span3 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053864u, new Vector3(-2.456726f, -7.357661E-08f, 9.109558f), 1207); obj23.Steps = list35; reference26 = obj23; questRoot4.QuestSequence = list31; @@ -380675,27 +459346,33 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list36); + index = 0; + span[index] = "liza"; questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span13 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference27 = ref span13[0]; + index = 6; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + span2 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.618828E-08f, 6.8512573f), 1207) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.618828E-08f, 6.8512573f), 1207) { StopDistance = 7f }; obj24.Steps = list38; reference27 = obj24; - ref QuestSequence reference28 = ref span13[1]; + num++; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -380703,8 +459380,9 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span14 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference29 = ref span14[0]; + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference29 = ref span3[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.01455665f, 1f, 16.05096f), 1207) { TargetTerritoryId = (ushort)1186 @@ -380714,12 +459392,15 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 1207; + span4 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span4[index3] = 1207; skipStepConditions4.NotInTerritory = list40; skipConditions4.StepIf = skipStepConditions4; obj26.SkipConditions = skipConditions4; reference29 = obj26; - span14[1] = new QuestStep(EInteractionType.Interact, 1053865u, new Vector3(-70.72565f, 42.8066f, -546.95966f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053865u, new Vector3(-70.72565f, 42.8066f, -546.95966f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380729,15 +459410,18 @@ public static class AssemblyQuestLoader }; obj25.Steps = list39; reference28 = obj25; - ref QuestSequence reference30 = ref span13[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Duty, null, null, 1186) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + span3 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1186) { DutyOptions = new DutyOptions { @@ -380747,11 +459431,13 @@ public static class AssemblyQuestLoader }; obj27.Steps = list41; reference30 = obj27; - span13[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference31 = ref span13[4]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 4 @@ -380759,7 +459445,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Duty, null, null, 1275) + span3 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1275) { DutyOptions = new DutyOptions { @@ -380768,15 +459456,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference31 = obj28; - ref QuestSequence reference32 = ref span13[5]; + num++; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + span3 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) { StopDistance = 5f }; @@ -380789,13 +459480,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list44); + index = 0; + span[index] = "liza"; questRoot6.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span15 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference33 = ref span15[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + span2 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -380803,27 +459497,33 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) + span3 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) { StopDistance = 5f }; obj30.Steps = list46; reference33 = obj30; - ref QuestSequence reference34 = ref span15[1]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + span3 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207) { StopDistance = 5f }; obj31.Steps = list47; reference34 = obj31; - ref QuestSequence reference35 = ref span15[2]; + num++; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -380831,21 +459531,27 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 2014733u, new Vector3(0.015197754f, -0.4730835f, -0.38153076f), 1207); + span3 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014733u, new Vector3(0.015197754f, -0.4730835f, -0.38153076f), 1207); obj32.Steps = list48; reference35 = obj32; - ref QuestSequence reference36 = ref span15[3]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + span3 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207); obj33.Steps = list49; reference36 = obj33; - ref QuestSequence reference37 = ref span15[4]; + num++; + ref QuestSequence reference37 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -380853,23 +459559,27 @@ public static class AssemblyQuestLoader num2 = 4; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span16 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference38 = ref span16[0]; + span3 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + ref QuestStep reference38 = ref span3[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 1207; + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + span4 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span4[num3] = 1207; skipStepConditions5.NotInTerritory = list51; skipConditions5.StepIf = skipStepConditions5; obj35.SkipConditions = skipConditions5; reference38 = obj35; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.58365f, 14.029998f, 272.07394f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.58365f, 14.029998f, 272.07394f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380877,11 +459587,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.75183f, 13.499982f, 269.15036f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.75183f, 13.499982f, 269.15036f), 1186) { DisableNavmesh = true }; - span16[3] = new QuestStep(EInteractionType.CompleteQuest, 1053874u, new Vector3(-402.48724f, 13.699979f, 240.98572f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053874u, new Vector3(-402.48724f, 13.699979f, 240.98572f), 1186); obj34.Steps = list50; reference37 = obj34; questRoot6.QuestSequence = list45; @@ -380891,24 +459603,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list52); + index = 0; + span[index] = "liza"; questRoot7.Author = list52; - num = 6; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span17 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference39 = ref span17[0]; + index = 6; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + span2 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference39 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053878u, new Vector3(-403.3418f, 14.029999f, 272.9381f), 1186); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053878u, new Vector3(-403.3418f, 14.029999f, 272.9381f), 1186); obj36.Steps = list54; reference39 = obj36; - ref QuestSequence reference40 = ref span17[1]; + num++; + ref QuestSequence reference40 = ref span2[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -380916,21 +459634,26 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1053881u, new Vector3(-240.89423f, 30f, -595.36127f), 1191) + span3 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053881u, new Vector3(-240.89423f, 30f, -595.36127f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj37.Steps = list55; reference40 = obj37; - ref QuestSequence reference41 = ref span17[2]; + num++; + ref QuestSequence reference41 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list56)[0]; + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + span3 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference42 = ref span3[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(205.08792f, 86.3551f, -419.18634f), 1191) { StopDistance = 0.5f, @@ -380940,14 +459663,17 @@ public static class AssemblyQuestLoader num3 = 2; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = 18476u; - span18[1] = 18477u; + span6 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span6[index3] = 18476u; + index3++; + span6[index3] = 18477u; obj39.KillEnemyDataIds = list57; reference42 = obj39; obj38.Steps = list56; reference41 = obj38; - ref QuestSequence reference43 = ref span17[3]; + num++; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -380955,24 +459681,30 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1053885u, new Vector3(204.21143f, 86.28118f, -420.09613f), 1191); + span3 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053885u, new Vector3(204.21143f, 86.28118f, -420.09613f), 1191); obj40.Steps = list58; reference43 = obj40; - ref QuestSequence reference44 = ref span17[4]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1053890u, new Vector3(-242.45062f, 29.999998f, -575.3109f), 1191) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + span3 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053890u, new Vector3(-242.45062f, 29.999998f, -575.3109f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj41.Steps = list59; reference44 = obj41; - ref QuestSequence reference45 = ref span17[5]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -380980,7 +459712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054150u, new Vector3(-5.9052734f, -3.5390258E-08f, 6.790222f), 1207); + span3 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054150u, new Vector3(-5.9052734f, -3.5390258E-08f, 6.790222f), 1207); obj42.Steps = list60; reference45 = obj42; questRoot7.QuestSequence = list53; @@ -380990,21 +459724,26 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "liza"; questRoot8.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span19 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference46 = ref span19[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + span3 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -381017,7 +459756,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference46 = obj43; - ref QuestSequence reference47 = ref span19[1]; + num++; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -381025,24 +459765,30 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185); + span3 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185); obj44.Steps = list64; reference47 = obj44; - ref QuestSequence reference48 = ref span19[2]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(9.3022995f, -10.00001f, 57.288975f), 1185) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + span3 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(9.3022995f, -10.00001f, 57.288975f), 1185) { StopDistance = 0.5f }; obj45.Steps = list65; reference48 = obj45; - ref QuestSequence reference49 = ref span19[3]; + num++; + ref QuestSequence reference49 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -381050,7 +459796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053739u, new Vector3(2.1514893f, -10.00001f, 56.137817f), 1185); + span3 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053739u, new Vector3(2.1514893f, -10.00001f, 56.137817f), 1185); obj46.Steps = list66; reference49 = obj46; questRoot8.QuestSequence = list62; @@ -381060,21 +459808,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "liza"; questRoot9.Author = list67; - num = 8; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span20 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference50 = ref span20[0]; + index = 8; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference50 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038915u, new Vector3(188.06738f, -17.9643f, 43.289795f), 1185) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + span3 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038915u, new Vector3(188.06738f, -17.9643f, 43.289795f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -381092,7 +459845,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list69; reference50 = obj47; - ref QuestSequence reference51 = ref span20[1]; + num++; + ref QuestSequence reference51 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -381100,23 +459854,30 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); + span3 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); obj48.Steps = list70; reference51 = obj48; - ref QuestSequence reference52 = ref span20[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list71)[0]; + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + span3 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + ref QuestStep reference53 = ref span3[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span5 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGKD001_05309_SYSTEM_000_201") @@ -381125,11 +459886,13 @@ public static class AssemblyQuestLoader reference53 = questStep4; obj49.Steps = list71; reference52 = obj49; - span20[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference54 = ref span20[4]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -381137,81 +459900,114 @@ public static class AssemblyQuestLoader num2 = 4; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span21 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference55 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference55 = ref span3[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1042454u, new Vector3(33.554565f, 18.511625f, 6.362976f), 1277); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span22 = CollectionsMarshal.AsSpan(list74); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list74; reference55 = questStep5; - ref QuestStep reference56 = ref span21[1]; + index2++; + ref QuestStep reference56 = ref span3[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1042894u, new Vector3(16.281311f, 16.35219f, -10.666138f), 1277); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span23 = CollectionsMarshal.AsSpan(list75); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span7 = CollectionsMarshal.AsSpan(list75); + 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); questStep6.CompletionQuestVariablesFlags = list75; reference56 = questStep6; - ref QuestStep reference57 = ref span21[2]; + index2++; + ref QuestStep reference57 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1046341u, new Vector3(0.38146973f, 16.34722f, -6.4240723f), 1277); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span24 = CollectionsMarshal.AsSpan(list76); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list76; reference57 = questStep7; - ref QuestStep reference58 = ref span21[3]; + index2++; + ref QuestStep reference58 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1046350u, new Vector3(-18.509216f, 16.352419f, 3.40271f), 1277); - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span25 = CollectionsMarshal.AsSpan(list77); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + span7 = CollectionsMarshal.AsSpan(list77); + 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)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list77; reference58 = questStep8; obj50.Steps = list73; reference54 = obj50; - ref QuestSequence reference59 = ref span20[5]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1039720u, new Vector3(32.822144f, 18.355127f, -3.402832f), 1277); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + span3 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1039720u, new Vector3(32.822144f, 18.355127f, -3.402832f), 1277); obj51.Steps = list78; reference59 = obj51; - span20[6] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference60 = ref span20[7]; + num++; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -381219,7 +460015,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) { StopDistance = 5f, NextQuestId = new QuestId(5310) @@ -381233,27 +460031,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list80); + index = 0; + span[index] = "liza"; questRoot10.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span26 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference61 = ref span26[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + span2 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + span3 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) { StopDistance = 5f }; obj53.Steps = list82; reference61 = obj53; - ref QuestSequence reference62 = ref span26[1]; + num++; + ref QuestSequence reference62 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -381261,8 +460065,9 @@ public static class AssemblyQuestLoader num2 = 3; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference63 = ref span27[0]; + span3 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference63 = ref span3[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2014647u, new Vector3(34.01233f, 3.118126f, 32.39708f), 1269) { StopDistance = 4f, @@ -381271,54 +460076,77 @@ public static class AssemblyQuestLoader num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span28 = CollectionsMarshal.AsSpan(list84); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list84; reference63 = obj55; - ref QuestStep reference64 = ref span27[1]; + index2++; + ref QuestStep reference64 = ref span3[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014645u, new Vector3(-37.70508f, 1.3274536f, -35.965576f), 1269); - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span29 = CollectionsMarshal.AsSpan(list85); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + span7 = CollectionsMarshal.AsSpan(list85); + 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); questStep9.CompletionQuestVariablesFlags = list85; reference64 = questStep9; - ref QuestStep reference65 = ref span27[2]; + index2++; + ref QuestStep reference65 = ref span3[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014646u, new Vector3(10.391357f, 30.869019f, -69.04712f), 1269); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span30 = CollectionsMarshal.AsSpan(list86); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list86; reference65 = questStep10; obj54.Steps = list83; reference62 = obj54; - ref QuestSequence reference66 = ref span26[2]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052452u, new Vector3(-1.9074707f, 0.90001047f, 15.8845825f), 1269) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052452u, new Vector3(-1.9074707f, 0.90001047f, 15.8845825f), 1269) { NextQuestId = new QuestId(5311) }; @@ -381331,13 +460159,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list88); + index = 0; + span[index] = "liza"; questRoot11.Author = list88; - num = 2; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span31 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference67 = ref span31[0]; + index = 2; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + span2 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference67 = ref span2[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -381345,21 +460176,26 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053794u, new Vector3(-0.015319824f, 0f, -21.103333f), 1269) + span3 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053794u, new Vector3(-0.015319824f, 0f, -21.103333f), 1269) { StopDistance = 5f }; obj57.Steps = list90; reference67 = obj57; - ref QuestSequence reference68 = ref span31[1]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053797u, new Vector3(-77.592224f, 5f, -15.396423f), 1269); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + span3 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053797u, new Vector3(-77.592224f, 5f, -15.396423f), 1269); obj58.Steps = list91; reference68 = obj58; questRoot11.QuestSequence = list89; @@ -381369,13 +460205,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list92); + index = 0; + span[index] = "liza"; questRoot12.Author = list92; - num = 2; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span32 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference69 = ref span32[0]; + index = 2; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + span2 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -381383,22 +460222,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053798u, new Vector3(841.9165f, 72.713615f, -700.3434f), 1252) + span3 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053798u, new Vector3(841.9165f, 72.713615f, -700.3434f), 1252) { StopDistance = 5f, Comment = "This requires queueing into Occult Crescent: South Horn, so isn't started automatically" }; obj59.Steps = list94; reference69 = obj59; - ref QuestSequence reference70 = ref span32[1]; + num++; + ref QuestSequence reference70 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053799u, new Vector3(867.9177f, 72.7133f, -677.48535f), 1252); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + span3 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053799u, new Vector3(867.9177f, 72.7133f, -677.48535f), 1252); obj60.Steps = list95; reference70 = obj60; questRoot12.QuestSequence = list93; @@ -381408,13 +460252,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list96); + index = 0; + span[index] = "liza"; questRoot13.Author = list96; - num = 2; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span33 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference71 = ref span33[0]; + index = 2; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + span2 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -381422,21 +460269,26 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053796u, new Vector3(868.10095f, 72.75855f, -677.3938f), 1252) + span3 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053796u, new Vector3(868.10095f, 72.75855f, -677.3938f), 1252) { Comment = "This requires queueing into Occult Crescent: South Horn AND equipping a phantom job, so isn't started automatically" }; obj61.Steps = list98; reference71 = obj61; - ref QuestSequence reference72 = ref span33[1]; + num++; + ref QuestSequence reference72 = ref span2[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053800u, new Vector3(822.8733f, 72.673935f, -678.7671f), 1252); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053800u, new Vector3(822.8733f, 72.673935f, -678.7671f), 1252); obj62.Steps = list99; reference72 = obj62; questRoot13.QuestSequence = list97; @@ -381446,13 +460298,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list100); + index = 0; + span[index] = "liza"; questRoot14.Author = list100; - num = 4; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span34 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference73 = ref span34[0]; + index = 4; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + span2 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -381460,12 +460315,16 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list102)[0]; + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference74 = ref span3[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span5 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGKW001_05319_Q1_000_000"), @@ -381475,18 +460334,22 @@ public static class AssemblyQuestLoader reference74 = questStep11; obj63.Steps = list102; reference73 = obj63; - ref QuestSequence reference75 = ref span34[1]; + num++; + ref QuestSequence reference75 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1053907u, new Vector3(-49.485046f, 4.999985f, 33.12732f), 1278); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053907u, new Vector3(-49.485046f, 4.999985f, 33.12732f), 1278); obj64.Steps = list104; reference75 = obj64; - ref QuestSequence reference76 = ref span34[2]; + num++; + ref QuestSequence reference76 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -381494,18 +460357,23 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj65.Steps = list105; reference76 = obj65; - ref QuestSequence reference77 = ref span34[3]; + num++; + ref QuestSequence reference77 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + span3 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); obj66.Steps = list106; reference77 = obj66; questRoot14.QuestSequence = list101; @@ -381515,15 +460383,18 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list107); + index = 0; + span[index] = "liza"; questRoot15.Author = list107; questRoot15.IsSeasonalQuest = true; questRoot15.SeasonalQuestExpiry = new DateTime(2025, 8, 26, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span35 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference78 = ref span35[0]; + index = 8; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + span2 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -381531,7 +460402,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list109)[0]; + span3 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + ref QuestStep reference79 = ref span3[index2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1053941u, new Vector3(14.328186f, 45.665993f, 131.33435f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -381549,29 +460422,35 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 128; + span4 = CollectionsMarshal.AsSpan(list110); + index3 = 0; + span4[index3] = 128; obj69.InTerritory = list110; skipConditions6.AetheryteShortcutIf = obj69; obj68.SkipConditions = skipConditions6; reference79 = obj68; obj67.Steps = list109; reference78 = obj67; - ref QuestSequence reference80 = ref span35[1]; + num++; + ref QuestSequence reference80 = ref span2[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1053942u, new Vector3(705.989f, 9.4453125f, 483.14636f), 137) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + span3 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053942u, new Vector3(705.989f, 9.4453125f, 483.14636f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj70.Steps = list111; reference80 = obj70; - ref QuestSequence reference81 = ref span35[2]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -381579,27 +460458,34 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(755.61664f, 38.19999f, 475.95694f), 137); - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); - span36[2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137); + span3 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(755.61664f, 38.19999f, 475.95694f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137); obj71.Steps = list112; reference81 = obj71; - ref QuestSequence reference82 = ref span35[3]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1053944u, new Vector3(772.91516f, 38.99997f, 396.90234f), 137) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + span3 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053944u, new Vector3(772.91516f, 38.99997f, 396.90234f), 137) { StopDistance = 7f }; obj72.Steps = list113; reference82 = obj72; - ref QuestSequence reference83 = ref span35[4]; + num++; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -381607,61 +460493,83 @@ public static class AssemblyQuestLoader num2 = 6; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span37 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference84 = ref span37[0]; + span3 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference84 = ref span3[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span38 = CollectionsMarshal.AsSpan(list115); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + span7 = CollectionsMarshal.AsSpan(list115); + 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)1, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list115; skipConditions7.StepIf = skipStepConditions6; questStep12.SkipConditions = skipConditions7; reference84 = questStep12; - ref QuestStep reference85 = ref span37[1]; + index2++; + ref QuestStep reference85 = ref span3[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1053949u, new Vector3(738.4298f, 36.23682f, 482.0172f), 137); num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span39 = CollectionsMarshal.AsSpan(list116); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list116; reference85 = questStep13; - ref QuestStep reference86 = ref span37[2]; + index2++; + ref QuestStep reference86 = ref span3[index2]; QuestStep obj74 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(703.2868f, 9.050781f, 481.25787f), 137) { DisableNavmesh = true }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span40 = CollectionsMarshal.AsSpan(list117); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list117 = new List(index3); + CollectionsMarshal.SetCount(list117, index3); + span7 = CollectionsMarshal.AsSpan(list117); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list117; skipConditions8.StepIf = skipStepConditions7; obj74.SkipConditions = skipConditions8; reference86 = obj74; - ref QuestStep reference87 = ref span37[3]; + index2++; + ref QuestStep reference87 = ref span3[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1053947u, new Vector3(695.9181f, 8.4f, 442.31323f), 137) { Mount = false @@ -381669,33 +460577,47 @@ public static class AssemblyQuestLoader num3 = 6; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span41 = CollectionsMarshal.AsSpan(list118); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list118; reference87 = obj75; - ref QuestStep reference88 = ref span37[4]; + index2++; + ref QuestStep reference88 = ref span3[index2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1053946u, new Vector3(849.2407f, 8.4f, 461.17346f), 137) { Mount = false }; - num3 = 6; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span42 = CollectionsMarshal.AsSpan(list119); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + span7 = CollectionsMarshal.AsSpan(list119); + 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); obj76.CompletionQuestVariablesFlags = list119; reference88 = obj76; - ref QuestStep reference89 = ref span37[5]; + index2++; + ref QuestStep reference89 = ref span3[index2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1053945u, new Vector3(872.0989f, 8.4f, 402.8534f), 137) { Mount = false @@ -381703,38 +460625,48 @@ public static class AssemblyQuestLoader num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span43 = CollectionsMarshal.AsSpan(list120); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list120; reference89 = obj77; obj73.Steps = list114; reference83 = obj73; - ref QuestSequence reference90 = ref span35[5]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span44 = CollectionsMarshal.AsSpan(list121); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + span3 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) { Mount = false }; - span44[1] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137) { StopDistance = 7f, DelaySecondsAtStart = 5f }; obj78.Steps = list121; reference90 = obj78; - ref QuestSequence reference91 = ref span35[6]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 6 @@ -381742,26 +460674,31 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 2014686u, new Vector3(794.4304f, 37.247192f, 394.3694f), 137) + span3 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014686u, new Vector3(794.4304f, 37.247192f, 394.3694f), 137) { DisableNavmesh = true }; obj79.Steps = list122; reference91 = obj79; - ref QuestSequence reference92 = ref span35[7]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span45 = CollectionsMarshal.AsSpan(list123); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) + index2 = 2; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + span3 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) { Mount = false }; - span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1051599u, new Vector3(775.0209f, 38.999977f, 398.2146f), 137) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051599u, new Vector3(775.0209f, 38.999977f, 398.2146f), 137) { StopDistance = 7f, DelaySecondsAtStart = 5f @@ -381775,15 +460712,18 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list124); + index = 0; + span[index] = "liza"; questRoot16.Author = list124; questRoot16.IsSeasonalQuest = true; questRoot16.SeasonalQuestExpiry = new DateTime(2025, 6, 11, 0, 0, 0, DateTimeKind.Utc); - num = 9; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span46 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference93 = ref span46[0]; + index = 9; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + span2 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -381791,7 +460731,9 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049020u, new Vector3(-86.32031f, 4f, -104.35651f), 130) + span3 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049020u, new Vector3(-86.32031f, 4f, -104.35651f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -381804,20 +460746,23 @@ public static class AssemblyQuestLoader }; obj81.Steps = list126; reference93 = obj81; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span47 = CollectionsMarshal.AsSpan(list127); - span47[0] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) + index2 = 4; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + span3 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) { PickUpQuestId = new QuestId(434) }; - ref QuestStep reference95 = ref span47[1]; + num2++; + ref QuestStep reference95 = ref span3[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { TargetTerritoryId = (ushort)144, @@ -381830,10 +460775,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 144; + index3 = 1; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + span4 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span4[num3] = 144; skipStepConditions8.InTerritory = list128; skipStepConditions8.AetheryteUnlocked = EAetheryteLocation.GoldSaucer; skipConditions9.StepIf = skipStepConditions8; @@ -381841,15 +460788,18 @@ public static class AssemblyQuestLoader num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span48 = CollectionsMarshal.AsSpan(list129); - span48[0] = 130; - span48[1] = 144; + span4 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span4[index3] = 130; + index3++; + span4[index3] = 144; skipAetheryteCondition.InTerritory = list129; skipAetheryteCondition.AetheryteUnlocked = EAetheryteLocation.GoldSaucer; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition; obj83.SkipConditions = skipConditions9; reference95 = obj83; - span47[2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -381862,7 +460812,8 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(435) }; - span47[3] = new QuestStep(EInteractionType.Interact, 1049021u, new Vector3(-80.91864f, -1.2629791E-05f, 46.463623f), 144) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049021u, new Vector3(-80.91864f, -1.2629791E-05f, 46.463623f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -381880,7 +460831,8 @@ public static class AssemblyQuestLoader }; obj82.Steps = list127; reference94 = obj82; - ref QuestSequence reference96 = ref span46[2]; + num++; + ref QuestSequence reference96 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -381888,8 +460840,9 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span49 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference97 = ref span49[0]; + span3 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference97 = ref span3[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1049029u, new Vector3(10.452393f, 20.99973f, 39.597046f), 144) { AethernetShortcut = new AethernetShortcut @@ -381898,62 +460851,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerWonderSquareWest } }; - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + span7 = CollectionsMarshal.AsSpan(list131); + 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); obj85.CompletionQuestVariablesFlags = list131; reference97 = obj85; - ref QuestStep reference98 = ref span49[1]; + index2++; + ref QuestStep reference98 = ref span3[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1049028u, new Vector3(55.77173f, 3.9997194f, 42.313232f), 144); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list132; reference98 = questStep14; - ref QuestStep reference99 = ref span49[2]; + index2++; + ref QuestStep reference99 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1049027u, new Vector3(7.003784f, 3.9997306f, 78.20239f), 144); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span52 = CollectionsMarshal.AsSpan(list133); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + span7 = CollectionsMarshal.AsSpan(list133); + 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); questStep15.CompletionQuestVariablesFlags = list133; reference99 = questStep15; obj84.Steps = list130; reference96 = obj84; - ref QuestSequence reference100 = ref span46[3]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list134)[0]; + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference101 = ref span3[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1049023u, new Vector3(-12.863403f, -1.1376108E-16f, -7.9804688f), 144); num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESGSC901_05322_Q1_000_000"), @@ -381963,7 +460941,8 @@ public static class AssemblyQuestLoader reference101 = questStep16; obj86.Steps = list134; reference100 = obj86; - ref QuestSequence reference102 = ref span46[4]; + num++; + ref QuestSequence reference102 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 4 @@ -381971,7 +460950,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2014700u, new Vector3(107.7439f, 12.985352f, -45.212524f), 144) + span3 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014700u, new Vector3(107.7439f, 12.985352f, -45.212524f), 144) { AethernetShortcut = new AethernetShortcut { @@ -381981,21 +460962,25 @@ public static class AssemblyQuestLoader }; obj87.Steps = list136; reference102 = obj87; - ref QuestSequence reference103 = ref span46[5]; + num++; + ref QuestSequence reference103 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2014702u, new Vector3(94.346436f, 13.01593f, -5.935791f), 144) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + span3 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014702u, new Vector3(94.346436f, 13.01593f, -5.935791f), 144) { StopDistance = 4.5f }; obj88.Steps = list137; reference103 = obj88; - ref QuestSequence reference104 = ref span46[6]; + num++; + ref QuestSequence reference104 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 6 @@ -382003,7 +460988,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1049025u, new Vector3(33.49353f, -5f, -58.54895f), 144) + span3 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049025u, new Vector3(33.49353f, -5f, -58.54895f), 144) { AethernetShortcut = new AethernetShortcut { @@ -382013,15 +461000,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list138; reference104 = obj89; - ref QuestSequence reference105 = ref span46[7]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj90 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2014703u, new Vector3(-67.00244f, -0.015319824f, 39.230957f), 144) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + span3 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014703u, new Vector3(-67.00244f, -0.015319824f, 39.230957f), 144) { AethernetShortcut = new AethernetShortcut { @@ -382031,7 +461021,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list139; reference105 = obj90; - ref QuestSequence reference106 = ref span46[8]; + num++; + ref QuestSequence reference106 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -382039,7 +461030,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049026u, new Vector3(-31.937195f, 0.044279926f, 18.32605f), 144) + span3 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049026u, new Vector3(-31.937195f, 0.044279926f, 18.32605f), 144) { StopDistance = 5f }; @@ -382052,26 +461045,33 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list141); + index = 0; + span[index] = "liza"; questRoot17.Author = list141; - num = 4; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span53 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference107 = ref span53[0]; + index = 4; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + span2 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list143)[0]; + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference108 = ref span3[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.AcceptQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + span5 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ001_05323_Q1_000_000"), @@ -382081,7 +461081,8 @@ public static class AssemblyQuestLoader reference108 = questStep17; obj92.Steps = list143; reference107 = obj92; - ref QuestSequence reference109 = ref span53[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -382089,49 +461090,67 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span54 = CollectionsMarshal.AsSpan(list145); - ref QuestStep reference110 = ref span54[0]; + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1052633u, new Vector3(-87.26642f, 0.3205882f, 82.26135f), 1237); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span55 = CollectionsMarshal.AsSpan(list146); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span7 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list146; reference110 = questStep18; - ref QuestStep reference111 = ref span54[1]; + index2++; + ref QuestStep reference111 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1052632u, new Vector3(79.81995f, 0.30599445f, 98.89368f), 1237); - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span56 = CollectionsMarshal.AsSpan(list147); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + span7 = CollectionsMarshal.AsSpan(list147); + 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); questStep19.CompletionQuestVariablesFlags = list147; reference111 = questStep19; obj93.Steps = list145; reference109 = obj93; - ref QuestSequence reference112 = ref span53[2]; + num++; + ref QuestSequence reference112 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2013711u, new Vector3(-85.98462f, 4.2266846f, -63.767517f), 1237); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2013711u, new Vector3(-85.98462f, 4.2266846f, -63.767517f), 1237); obj94.Steps = list148; reference112 = obj94; - ref QuestSequence reference113 = ref span53[3]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -382139,7 +461158,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237) + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237) { NextQuestId = new QuestId(5324) }; @@ -382152,26 +461173,33 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list150); + index = 0; + span[index] = "liza"; questRoot18.Author = list150; - num = 5; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span57 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference114 = ref span57[0]; + index = 5; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + span2 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list152)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + span3 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference115 = ref span3[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.AcceptQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + span5 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ002_05324_Q1_000_000"), @@ -382181,7 +461209,8 @@ public static class AssemblyQuestLoader reference115 = questStep20; obj96.Steps = list152; reference114 = obj96; - ref QuestSequence reference116 = ref span57[1]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -382189,21 +461218,27 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1052634u, new Vector3(-32.39496f, 1.5f, 31.631958f), 1237); + span3 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052634u, new Vector3(-32.39496f, 1.5f, 31.631958f), 1237); obj97.Steps = list154; reference116 = obj97; - ref QuestSequence reference117 = ref span57[2]; + num++; + ref QuestSequence reference117 = ref span2[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1052635u, new Vector3(46.61621f, 0.8794936f, 51.377075f), 1237); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + span3 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1052635u, new Vector3(46.61621f, 0.8794936f, 51.377075f), 1237); obj98.Steps = list155; reference117 = obj98; - ref QuestSequence reference118 = ref span57[3]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -382211,36 +461246,42 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1052636u, new Vector3(29.95337f, 1f, -70.45099f), 1237); + span3 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1052636u, new Vector3(29.95337f, 1f, -70.45099f), 1237); obj99.Steps = list156; reference118 = obj99; - ref QuestSequence reference119 = ref span57[4]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + span3 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); obj100.Steps = list157; reference119 = obj100; questRoot18.QuestSequence = list151; AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(5325); + QuestId questId19 = new QuestId(5326); QuestRoot questRoot19 = new QuestRoot(); num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list158); + index = 0; + span[index] = "Theo"; questRoot19.Author = list158; - questRoot19.IsSeasonalQuest = true; - questRoot19.SeasonalQuestExpiry = new DateTime(2026, 2, 16, 14, 59, 0, DateTimeKind.Utc); - num = 7; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span58 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference120 = ref span58[0]; + index = 7; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + span2 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -382248,183 +461289,10 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - 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, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipAetheryteCondition obj103 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - 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; - ref QuestSequence reference122 = ref span58[1]; - QuestSequence obj104 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 2014714u, new Vector3(-45.212524f, 6.7596436f, -127.42816f), 133); - obj104.Steps = list162; - reference122 = obj104; - ref QuestSequence reference123 = ref span58[2]; - QuestSequence obj105 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - 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 - { - Enabled = true - }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = "You only need to complete one cake layer to complete the duty."; - obj106.Notes = list164; - questStep21.SinglePlayerDutyOptions = obj106; - num3 = 3; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span59 = CollectionsMarshal.AsSpan(list165); - span59[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "custom/009/FesVlt2026Entrance_00938", - Prompt = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_Q1_000_000"), - Answer = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_A1_000_001") - }; - span59[1] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "custom/009/FesVlt2026Entrance_00938", - Prompt = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_Q2_000_000"), - Answer = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_A2_000_002") - }; - span59[2] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - ExcelSheet = "custom/009/FesVlt2026Entrance_00938", - Prompt = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_TALK_SYSTEM_000_015") - }; - questStep21.DialogueChoices = list165; - reference124 = questStep21; - obj105.Steps = list163; - reference123 = obj105; - ref QuestSequence reference125 = ref span58[3]; - QuestSequence obj107 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list166)[0]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1054048u, new Vector3(-47.196167f, 6.7986083f, -124.80359f), 133); - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_FESVLX201_05325_Q3_000_000"), - Answer = new ExcelRef("TEXT_FESVLX201_05325_A1_000_002") - }; - questStep22.DialogueChoices = list167; - reference126 = questStep22; - obj107.Steps = list166; - reference125 = obj107; - ref QuestSequence reference127 = ref span58[4]; - QuestSequence obj108 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1054050u, new Vector3(-45.15149f, 6.8105283f, -125.352905f), 133); - obj108.Steps = list168; - reference127 = obj108; - ref QuestSequence reference128 = ref span58[5]; - QuestSequence obj109 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1054052u, new Vector3(92.729004f, 12.160356f, -247.88281f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaAmphitheatre, - To = EAetheryteLocation.GridaniaLancer - } - }; - obj109.Steps = list169; - reference128 = obj109; - ref QuestSequence reference129 = ref span58[6]; - QuestSequence obj110 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054137u, new Vector3(-52.811523f, 6.5f, -88.39557f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaLancer, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - obj110.Steps = list170; - reference129 = obj110; - questRoot19.QuestSequence = list159; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(5326); - QuestRoot questRoot20 = new QuestRoot(); - num = 1; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "Theo"; - questRoot20.Author = list171; - num = 7; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span60 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span60[0]; - QuestSequence obj111 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list173)[0]; - QuestStep obj112 = new QuestStep(EInteractionType.AcceptQuest, 1051949u, new Vector3(141.2832f, 42f, -351.9494f), 1185) + span3 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference121 = ref span3[index2]; + QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1051949u, new Vector3(141.2832f, 42f, -351.9494f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -382440,29 +461308,34 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + index3 = 1; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + span5 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA201_05326_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGEA201_05326_A2_000_001") }; - obj112.DialogueChoices = list174; - reference131 = obj112; - obj111.Steps = list173; - reference130 = obj111; - ref QuestSequence reference132 = ref span60[1]; - QuestSequence obj113 = new QuestSequence + obj102.DialogueChoices = list161; + reference121 = obj102; + obj101.Steps = list160; + reference120 = obj101; + num++; + ref QuestSequence reference122 = ref span2[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list175)[0]; - QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1054347u, new Vector3(730.03735f, -133.17451f, 542.2903f), 1189) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference123 = ref span3[num2]; + QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1054347u, new Vector3(730.03735f, -133.17451f, 542.2903f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -382474,26 +461347,31 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + span5 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA201_05326_SYSTEM_000_103") }; - obj114.DialogueChoices = list176; - reference133 = obj114; - obj113.Steps = list175; - reference132 = obj113; - ref QuestSequence reference134 = ref span60[2]; - QuestSequence obj115 = new QuestSequence + obj104.DialogueChoices = list163; + reference123 = obj104; + obj103.Steps = list162; + reference122 = obj103; + num++; + ref QuestSequence reference124 = ref span2[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1054301u, new Vector3(-502.76953f, -162.12943f, 419.8518f), 1189) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + span3 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054301u, new Vector3(-502.76953f, -162.12943f, 419.8518f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -382504,126 +461382,150 @@ public static class AssemblyQuestLoader } } }; - obj115.Steps = list177; - reference134 = obj115; - ref QuestSequence reference135 = ref span60[3]; - QuestSequence obj116 = new QuestSequence + obj105.Steps = list164; + reference124 = obj105; + num++; + ref QuestSequence reference125 = ref span2[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - 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) + index2 = 2; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + span3 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + ref QuestStep reference126 = ref span3[num2]; + QuestStep obj107 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 }; - SkipConditions skipConditions11 = new SkipConditions(); + SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - 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; - span61[1] = new QuestStep(EInteractionType.Interact, 2014786u, new Vector3(-2.456726f, 41.97754f, -2.822998f), 1265); - obj116.Steps = list178; - reference135 = obj116; - ref QuestSequence reference137 = ref span60[4]; - QuestSequence obj118 = new QuestSequence + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + span4 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span4[num3] = 1265; + skipStepConditions9.InTerritory = list166; + skipConditions10.StepIf = skipStepConditions9; + obj107.SkipConditions = skipConditions10; + reference126 = obj107; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014786u, new Vector3(-2.456726f, 41.97754f, -2.822998f), 1265); + obj106.Steps = list165; + reference125 = obj106; + num++; + ref QuestSequence reference127 = ref span2[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Duty, null, null, 1265) + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1265) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1058u } }; - obj118.Steps = list180; - reference137 = obj118; - ref QuestSequence reference138 = ref span60[5]; - QuestSequence obj119 = new QuestSequence + obj108.Steps = list167; + reference127 = obj108; + num++; + ref QuestSequence reference128 = ref span2[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1054310u, new Vector3(-5.2339478f, 41.999985f, -5.935791f), 1265); - obj119.Steps = list181; - reference138 = obj119; - ref QuestSequence reference139 = ref span60[6]; - QuestSequence obj120 = new QuestSequence + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + span3 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054310u, new Vector3(-5.2339478f, 41.999985f, -5.935791f), 1265); + obj109.Steps = list168; + reference128 = obj109; + num++; + ref QuestSequence reference129 = ref span2[num]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054313u, new Vector3(-1.9074707f, 41.99998f, -4.4709473f), 1265) + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + span3 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054313u, new Vector3(-1.9074707f, 41.99998f, -4.4709473f), 1265) { NextQuestId = new QuestId(5327) }; - obj120.Steps = list182; - reference139 = obj120; - questRoot20.QuestSequence = list172; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(5327); - QuestRoot questRoot21 = new QuestRoot(); + obj110.Steps = list169; + reference129 = obj110; + questRoot19.QuestSequence = list159; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(5327); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "Theo"; - questRoot21.Author = list183; - num = 6; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span62 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference140 = ref span62[0]; - QuestSequence obj121 = new QuestSequence + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + span = CollectionsMarshal.AsSpan(list170); + index = 0; + span[index] = "Theo"; + questRoot20.Author = list170; + index = 6; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + span2 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference130 = ref span2[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - 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) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference131 = ref span3[num2]; + QuestStep obj112 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 }; - SkipConditions skipConditions12 = new SkipConditions(); + SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 1265; - skipStepConditions10.InTerritory = list186; - skipConditions12.StepIf = skipStepConditions10; - obj122.SkipConditions = skipConditions12; - reference141 = obj122; - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1054311u, new Vector3(-2.9450073f, 41.99998f, -7.034485f), 1265); - obj121.Steps = list185; - reference140 = obj121; - ref QuestSequence reference142 = ref span62[1]; - QuestSequence obj123 = new QuestSequence + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + span4 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span4[index3] = 1265; + skipStepConditions10.InTerritory = list173; + skipConditions11.StepIf = skipStepConditions10; + obj112.SkipConditions = skipConditions11; + reference131 = obj112; + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054311u, new Vector3(-2.9450073f, 41.99998f, -7.034485f), 1265); + obj111.Steps = list172; + reference130 = obj111; + num++; + ref QuestSequence reference132 = ref span2[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1054315u, new Vector3(133.22644f, 42f, -348.95862f), 1185) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + span3 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054315u, new Vector3(133.22644f, 42f, -348.95862f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -382639,17 +461541,20 @@ public static class AssemblyQuestLoader } } }; - obj123.Steps = list187; - reference142 = obj123; - ref QuestSequence reference143 = ref span62[2]; - QuestSequence obj124 = new QuestSequence + obj113.Steps = list174; + reference132 = obj113; + num++; + ref QuestSequence reference133 = ref span2[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 2014787u, new Vector3(-326.16168f, 18.44812f, -104.57007f), 1190) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + span3 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014787u, new Vector3(-326.16168f, 18.44812f, -104.57007f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -382660,108 +461565,135 @@ public static class AssemblyQuestLoader } } }; - obj124.Steps = list188; - reference143 = obj124; - ref QuestSequence reference144 = ref span62[3]; - QuestSequence obj125 = new QuestSequence + obj114.Steps = list175; + reference133 = obj114; + num++; + ref QuestSequence reference134 = ref span2[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span64 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference145 = ref span64[0]; - QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1049334u, new Vector3(-139.05548f, 1.4543211f, 324.72717f), 1190) + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + span3 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference135 = ref span3[index2]; + QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1049334u, new Vector3(-139.05548f, 1.4543211f, 324.72717f), 1190) { Fly = true }; - num3 = 6; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span65 = CollectionsMarshal.AsSpan(list190); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj126.CompletionQuestVariablesFlags = list190; - reference145 = obj126; - ref QuestStep reference146 = ref span64[1]; - QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1054321u, new Vector3(-145.25067f, 2.0168247f, 374.3191f), 1190) + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + span7 = CollectionsMarshal.AsSpan(list177); + 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); + obj116.CompletionQuestVariablesFlags = list177; + reference135 = obj116; + index2++; + ref QuestStep reference136 = ref span3[index2]; + QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1054321u, new Vector3(-145.25067f, 2.0168247f, 374.3191f), 1190) { Mount = true }; num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span66 = CollectionsMarshal.AsSpan(list191); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj127.CompletionQuestVariablesFlags = list191; - reference146 = obj127; - span64[2] = new QuestStep(EInteractionType.Interact, 1049327u, new Vector3(-207.47699f, -1.806f, 367.87964f), 1190) + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + span7 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj117.CompletionQuestVariablesFlags = list178; + reference136 = obj117; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1049327u, new Vector3(-207.47699f, -1.806f, 367.87964f), 1190) { Mount = true }; - obj125.Steps = list189; - reference144 = obj125; - ref QuestSequence reference147 = ref span62[4]; - QuestSequence obj128 = new QuestSequence + obj115.Steps = list176; + reference134 = obj115; + num++; + ref QuestSequence reference137 = ref span2[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1054324u, new Vector3(-171.89288f, 1.6836945f, 347.219f), 1190) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + span3 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054324u, new Vector3(-171.89288f, 1.6836945f, 347.219f), 1190) { Mount = true }; - obj128.Steps = list192; - reference147 = obj128; - ref QuestSequence reference148 = ref span62[5]; - QuestSequence obj129 = new QuestSequence + obj118.Steps = list179; + reference137 = obj118; + num++; + ref QuestSequence reference138 = ref span2[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + span3 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) { Fly = true, NextQuestId = new QuestId(5328) }; - obj129.Steps = list193; - reference148 = obj129; - questRoot21.QuestSequence = list184; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(5328); - QuestRoot questRoot22 = new QuestRoot(); + obj119.Steps = list180; + reference138 = obj119; + questRoot20.QuestSequence = list171; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(5328); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "Theo"; - questRoot22.Author = list194; - num = 2; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span67 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference149 = ref span67[0]; - QuestSequence obj130 = new QuestSequence + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + span = CollectionsMarshal.AsSpan(list181); + index = 0; + span[index] = "Theo"; + questRoot21.Author = list181; + index = 2; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + span2 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference139 = ref span2[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + span3 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, @@ -382773,41 +461705,49 @@ public static class AssemblyQuestLoader } } }; - obj130.Steps = list196; - reference149 = obj130; - ref QuestSequence reference150 = ref span67[1]; - QuestSequence obj131 = new QuestSequence + obj120.Steps = list183; + reference139 = obj120; + num++; + ref QuestSequence reference140 = ref span2[num]; + QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054331u, new Vector3(-322.80463f, 18.201778f, -97.88666f), 1190); - obj131.Steps = list197; - reference150 = obj131; - questRoot22.QuestSequence = list195; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(5329); - QuestRoot questRoot23 = new QuestRoot(); + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + span3 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054331u, new Vector3(-322.80463f, 18.201778f, -97.88666f), 1190); + obj121.Steps = list184; + reference140 = obj121; + questRoot21.QuestSequence = list182; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(5329); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "Theo"; - questRoot23.Author = list198; - num = 4; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span68 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference151 = ref span68[0]; - QuestSequence obj132 = new QuestSequence + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + span = CollectionsMarshal.AsSpan(list185); + index = 0; + span[index] = "Theo"; + questRoot22.Author = list185; + index = 4; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + span2 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference141 = ref span2[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054336u, new Vector3(-325.73438f, 18.38136f, -100.41962f), 1190) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + span3 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054336u, new Vector3(-325.73438f, 18.38136f, -100.41962f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -382818,42 +461758,51 @@ public static class AssemblyQuestLoader } } }; - obj132.Steps = list200; - reference151 = obj132; - ref QuestSequence reference152 = ref span68[1]; - QuestSequence obj133 = new QuestSequence + obj122.Steps = list187; + reference141 = obj122; + num++; + ref QuestSequence reference142 = ref span2[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1054339u, new Vector3(-167.19312f, 16.031612f, -333.3944f), 1190) + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + span3 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054339u, new Vector3(-167.19312f, 16.031612f, -333.3944f), 1190) { Fly = true }; - obj133.Steps = list201; - reference152 = obj133; - ref QuestSequence reference153 = ref span68[2]; - QuestSequence obj134 = new QuestSequence + obj123.Steps = list188; + reference142 = obj123; + num++; + ref QuestSequence reference143 = ref span2[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1054342u, new Vector3(-262.92822f, 32f, -658.2894f), 1191); - obj134.Steps = list202; - reference153 = obj134; - ref QuestSequence reference154 = ref span68[3]; - QuestSequence obj135 = new QuestSequence + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + span3 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054342u, new Vector3(-262.92822f, 32f, -658.2894f), 1191); + obj124.Steps = list189; + reference143 = obj124; + num++; + ref QuestSequence reference144 = ref span2[num]; + QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054357u, new Vector3(141.2832f, 42f, -351.9494f), 1185) + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + span3 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054357u, new Vector3(141.2832f, 42f, -351.9494f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -382869,30 +461818,35 @@ public static class AssemblyQuestLoader } } }; - obj135.Steps = list203; - reference154 = obj135; - questRoot23.QuestSequence = list199; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(5330); - QuestRoot questRoot24 = new QuestRoot(); + obj125.Steps = list190; + reference144 = obj125; + questRoot22.QuestSequence = list186; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(5330); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "CryoTechnic"; - questRoot24.Author = list204; - num = 6; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span69 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference155 = ref span69[0]; - QuestSequence obj136 = new QuestSequence + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + span = CollectionsMarshal.AsSpan(list191); + index = 0; + span[index] = "CryoTechnic"; + questRoot23.Author = list191; + index = 6; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + span2 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference145 = ref span2[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054642u, new Vector3(532.8602f, 105.007805f, 645.2887f), 1187) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + span3 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054642u, new Vector3(532.8602f, 105.007805f, 645.2887f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, SkipConditions = new SkipConditions @@ -382903,114 +461857,137 @@ public static class AssemblyQuestLoader } } }; - obj136.Steps = list206; - reference155 = obj136; - ref QuestSequence reference156 = ref span69[1]; - QuestSequence obj137 = new QuestSequence + obj126.Steps = list193; + reference145 = obj126; + num++; + ref QuestSequence reference146 = ref span2[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1054643u, new Vector3(514.3053f, 142.24991f, 793.3623f), 1187) + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + span3 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054643u, new Vector3(514.3053f, 142.24991f, 793.3623f), 1187) { Fly = true, Land = true }; - obj137.Steps = list207; - reference156 = obj137; - ref QuestSequence reference157 = ref span69[2]; - QuestSequence obj138 = new QuestSequence + obj127.Steps = list194; + reference146 = obj127; + num++; + ref QuestSequence reference147 = ref span2[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span70 = CollectionsMarshal.AsSpan(list208); - span70[0] = new QuestStep(EInteractionType.Interact, 1054646u, new Vector3(488.7921f, 112.435005f, 704.12744f), 1187) + index2 = 5; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + span3 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054646u, new Vector3(488.7921f, 112.435005f, 704.12744f), 1187) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.Interact, 1054647u, new Vector3(496.20813f, 114.935f, 619.43994f), 1187); - span70[2] = new QuestStep(EInteractionType.Interact, 1054645u, new Vector3(528.1909f, 107.134995f, 532.3109f), 1187); - span70[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.62186f, 124.51217f, 558.175f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054647u, new Vector3(496.20813f, 114.935f, 619.43994f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054645u, new Vector3(528.1909f, 107.134995f, 532.3109f), 1187); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.62186f, 124.51217f, 558.175f), 1187) { Fly = false }; - span70[4] = new QuestStep(EInteractionType.Interact, 1054644u, new Vector3(376.51636f, 124.51213f, 549.0653f), 1187); - obj138.Steps = list208; - reference157 = obj138; - ref QuestSequence reference158 = ref span69[3]; - QuestSequence obj139 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054644u, new Vector3(376.51636f, 124.51213f, 549.0653f), 1187); + obj128.Steps = list195; + reference147 = obj128; + num++; + ref QuestSequence reference148 = ref span2[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span71 = CollectionsMarshal.AsSpan(list209); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(387.4519f, 124.59686f, 559.0204f), 1187); - span71[1] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) + List list196 = new List(num2); + CollectionsMarshal.SetCount(list196, num2); + span3 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(387.4519f, 124.59686f, 559.0204f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) { Fly = true }; - obj139.Steps = list209; - reference158 = obj139; - ref QuestSequence reference159 = ref span69[4]; - QuestSequence obj140 = new QuestSequence + obj129.Steps = list196; + reference148 = obj129; + num++; + ref QuestSequence reference149 = ref span2[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187); - obj140.Steps = list210; - reference159 = obj140; - ref QuestSequence reference160 = ref span69[5]; - QuestSequence obj141 = new QuestSequence + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + span3 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187); + obj130.Steps = list197; + reference149 = obj130; + num++; + ref QuestSequence reference150 = ref span2[num]; + QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span72 = CollectionsMarshal.AsSpan(list211); - span72[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + span3 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 46198u, ItemCount = 3 }; - span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj141.Steps = list211; - reference160 = obj141; - questRoot24.QuestSequence = list205; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(5331); - QuestRoot questRoot25 = new QuestRoot(); + obj131.Steps = list198; + reference150 = obj131; + questRoot23.QuestSequence = list192; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(5331); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "CryoTechnic"; - questRoot25.Author = list212; - num = 6; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span73 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference161 = ref span73[0]; - QuestSequence obj142 = new QuestSequence + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + span = CollectionsMarshal.AsSpan(list199); + index = 0; + span[index] = "CryoTechnic"; + questRoot24.Author = list199; + index = 6; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + span2 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference151 = ref span2[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + span3 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383022,58 +461999,69 @@ public static class AssemblyQuestLoader } } }; - obj142.Steps = list214; - reference161 = obj142; - ref QuestSequence reference162 = ref span73[1]; - QuestSequence obj143 = new QuestSequence + obj132.Steps = list201; + reference151 = obj132; + num++; + ref QuestSequence reference152 = ref span2[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span74 = CollectionsMarshal.AsSpan(list215); - ref QuestStep reference163 = ref span74[0]; - QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + span3 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + ref QuestStep reference153 = ref span3[index2]; + QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions13 = new SkipConditions(); + SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - 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; - span74[1] = new QuestStep(EInteractionType.Interact, 1054650u, new Vector3(16.983276f, 0.4f, 145.09802f), 1297); - obj143.Steps = list215; - reference162 = obj143; - ref QuestSequence reference164 = ref span73[2]; - QuestSequence obj145 = new QuestSequence + index3 = 1; + List list203 = new List(index3); + CollectionsMarshal.SetCount(list203, index3); + span4 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span4[num3] = 1187; + skipStepConditions11.NotInTerritory = list203; + skipConditions12.StepIf = skipStepConditions11; + obj134.SkipConditions = skipConditions12; + reference153 = obj134; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054650u, new Vector3(16.983276f, 0.4f, 145.09802f), 1297); + obj133.Steps = list202; + reference152 = obj133; + num++; + ref QuestSequence reference154 = ref span2[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Emote, 1054651u, new Vector3(22.537537f, 0.4f, 146.68494f), 1297) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1054651u, new Vector3(22.537537f, 0.4f, 146.68494f), 1297) { Emote = EEmote.Soothe }; - obj145.Steps = list217; - reference164 = obj145; - ref QuestSequence reference165 = ref span73[3]; - QuestSequence obj146 = new QuestSequence + obj135.Steps = list204; + reference154 = obj135; + num++; + ref QuestSequence reference155 = ref span2[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187) + List list205 = new List(num2); + CollectionsMarshal.SetCount(list205, num2); + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187) { Fly = true, Land = true, @@ -383086,34 +462074,40 @@ public static class AssemblyQuestLoader } } }; - obj146.Steps = list218; - reference165 = obj146; - ref QuestSequence reference166 = ref span73[4]; - QuestSequence obj147 = new QuestSequence + obj136.Steps = list205; + reference155 = obj136; + num++; + ref QuestSequence reference156 = ref span2[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span75 = CollectionsMarshal.AsSpan(list219); - span75[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + span3 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46200u, ItemCount = 1 }; - span75[1] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187); - obj147.Steps = list219; - reference166 = obj147; - ref QuestSequence reference167 = ref span73[5]; - QuestSequence obj148 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187); + obj137.Steps = list206; + reference156 = obj137; + num++; + ref QuestSequence reference157 = ref span2[num]; + QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + span3 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, Land = true, @@ -383131,30 +462125,35 @@ public static class AssemblyQuestLoader } } }; - obj148.Steps = list220; - reference167 = obj148; - questRoot25.QuestSequence = list213; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(5332); - QuestRoot questRoot26 = new QuestRoot(); + obj138.Steps = list207; + reference157 = obj138; + questRoot24.QuestSequence = list200; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(5332); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "CryoTechnic"; - questRoot26.Author = list221; - num = 5; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span76 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference168 = ref span76[0]; - QuestSequence obj149 = new QuestSequence + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + span = CollectionsMarshal.AsSpan(list208); + index = 0; + span[index] = "CryoTechnic"; + questRoot25.Author = list208; + index = 5; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + span2 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref QuestSequence reference158 = ref span2[num]; + QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383166,92 +462165,108 @@ public static class AssemblyQuestLoader } } }; - obj149.Steps = list223; - reference168 = obj149; - ref QuestSequence reference169 = ref span76[1]; - QuestSequence obj150 = new QuestSequence + obj139.Steps = list210; + reference158 = obj139; + num++; + ref QuestSequence reference159 = ref span2[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1054673u, new Vector3(433.40198f, 116.435f, 677.14954f), 1187) + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054673u, new Vector3(433.40198f, 116.435f, 677.14954f), 1187) { Fly = true }; - obj150.Steps = list224; - reference169 = obj150; - ref QuestSequence reference170 = ref span76[2]; - QuestSequence obj151 = new QuestSequence + obj140.Steps = list211; + reference159 = obj140; + num++; + ref QuestSequence reference160 = ref span2[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - 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) + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference161 = ref span3[num2]; + QuestStep obj142 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, Fly = true }; - SkipConditions skipConditions14 = new SkipConditions(); + SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 1187; - skipStepConditions12.NotInTerritory = list226; - skipConditions14.StepIf = skipStepConditions12; - obj152.SkipConditions = skipConditions14; - reference171 = obj152; - span77[1] = new QuestStep(EInteractionType.Interact, 1054654u, new Vector3(-26.352356f, 0.19851297f, 65.11023f), 1297); - obj151.Steps = list225; - reference170 = obj151; - ref QuestSequence reference172 = ref span76[3]; - QuestSequence obj153 = new QuestSequence + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + span4 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span4[index3] = 1187; + skipStepConditions12.NotInTerritory = list213; + skipConditions13.StepIf = skipStepConditions12; + obj142.SkipConditions = skipConditions13; + reference161 = obj142; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054654u, new Vector3(-26.352356f, 0.19851297f, 65.11023f), 1297); + obj141.Steps = list212; + reference160 = obj141; + num++; + ref QuestSequence reference162 = ref span2[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span78 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference173 = ref span78[0]; - QuestStep obj154 = new QuestStep(EInteractionType.Interact, 2014858u, new Vector3(-0.9003296f, 23.330994f, -89.21954f), 1297) + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + span3 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + ref QuestStep reference163 = ref span3[index2]; + QuestStep obj144 = new QuestStep(EInteractionType.Interact, 2014858u, new Vector3(-0.9003296f, 23.330994f, -89.21954f), 1297) { TargetTerritoryId = (ushort)1187 }; - SkipConditions skipConditions15 = new SkipConditions(); + SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - 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; - span78[1] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187); - obj153.Steps = list227; - reference172 = obj153; - ref QuestSequence reference174 = ref span76[4]; - QuestSequence obj155 = new QuestSequence + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + span4 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span4[num3] = 1297; + skipStepConditions13.NotInTerritory = list215; + skipConditions14.StepIf = skipStepConditions13; + obj144.SkipConditions = skipConditions14; + reference163 = obj144; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187); + obj143.Steps = list214; + reference162 = obj143; + num++; + ref QuestSequence reference164 = ref span2[num]; + QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - Span span79 = CollectionsMarshal.AsSpan(list229); - span79[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 2; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46202u, ItemCount = 1 }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383268,30 +462283,35 @@ public static class AssemblyQuestLoader } } }; - obj155.Steps = list229; - reference174 = obj155; - questRoot26.QuestSequence = list222; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(5333); - QuestRoot questRoot27 = new QuestRoot(); + obj145.Steps = list216; + reference164 = obj145; + questRoot25.QuestSequence = list209; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(5333); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "WigglyMuffin, CryoTechnic"; - questRoot27.Author = list230; - num = 6; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span80 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference175 = ref span80[0]; - QuestSequence obj156 = new QuestSequence + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + span = CollectionsMarshal.AsSpan(list217); + index = 0; + span[index] = "WigglyMuffin, CryoTechnic"; + questRoot26.Author = list217; + index = 6; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + span2 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference165 = ref span2[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + span3 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383303,55 +462323,66 @@ public static class AssemblyQuestLoader } } }; - obj156.Steps = list232; - reference175 = obj156; - ref QuestSequence reference176 = ref span80[1]; - QuestSequence obj157 = new QuestSequence + obj146.Steps = list219; + reference165 = obj146; + num++; + ref QuestSequence reference166 = ref span2[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - 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) + index2 = 2; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + span3 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference167 = ref span3[num2]; + QuestStep obj148 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions16 = new SkipConditions(); + SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions14 = new SkipStepConditions(); num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 1187; - skipStepConditions14.NotInTerritory = list234; - skipConditions16.StepIf = skipStepConditions14; - obj158.SkipConditions = skipConditions16; - reference177 = obj158; - span81[1] = new QuestStep(EInteractionType.Interact, 1054655u, new Vector3(-71.61066f, 5.9649034f, 65.72058f), 1297); - obj157.Steps = list233; - reference176 = obj157; - ref QuestSequence reference178 = ref span80[2]; - QuestSequence obj159 = new QuestSequence + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + span4 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span4[index3] = 1187; + skipStepConditions14.NotInTerritory = list221; + skipConditions15.StepIf = skipStepConditions14; + obj148.SkipConditions = skipConditions15; + reference167 = obj148; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054655u, new Vector3(-71.61066f, 5.9649034f, 65.72058f), 1297); + obj147.Steps = list220; + reference166 = obj147; + num++; + ref QuestSequence reference168 = ref span2[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1054674u, new Vector3(-134.11157f, 6.5164585f, 61.81433f), 1297); - obj159.Steps = list235; - reference178 = obj159; - ref QuestSequence reference179 = ref span80[3]; - QuestSequence obj160 = new QuestSequence + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + span3 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054674u, new Vector3(-134.11157f, 6.5164585f, 61.81433f), 1297); + obj149.Steps = list222; + reference168 = obj149; + num++; + ref QuestSequence reference169 = ref span2[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1054657u, new Vector3(446.1891f, 118.92377f, 543.93823f), 1187) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + span3 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054657u, new Vector3(446.1891f, 118.92377f, 543.93823f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383363,17 +462394,20 @@ public static class AssemblyQuestLoader } } }; - obj160.Steps = list236; - reference179 = obj160; - ref QuestSequence reference180 = ref span80[4]; - QuestSequence obj161 = new QuestSequence + obj150.Steps = list223; + reference169 = obj150; + num++; + ref QuestSequence reference170 = ref span2[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383385,23 +462419,26 @@ public static class AssemblyQuestLoader } } }; - obj161.Steps = list237; - reference180 = obj161; - ref QuestSequence reference181 = ref span80[5]; - QuestSequence obj162 = new QuestSequence + obj151.Steps = list224; + reference170 = obj151; + num++; + ref QuestSequence reference171 = ref span2[num]; + QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span82 = CollectionsMarshal.AsSpan(list238); - span82[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46204u, ItemCount = 1 }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383418,30 +462455,35 @@ public static class AssemblyQuestLoader } } }; - obj162.Steps = list238; - reference181 = obj162; - questRoot27.QuestSequence = list231; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(5334); - QuestRoot questRoot28 = new QuestRoot(); + obj152.Steps = list225; + reference171 = obj152; + questRoot26.QuestSequence = list218; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(5334); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "WigglyMuffin"; - questRoot28.Author = list239; - num = 8; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span83 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference182 = ref span83[0]; - QuestSequence obj163 = new QuestSequence + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + span = CollectionsMarshal.AsSpan(list226); + index = 0; + span[index] = "WigglyMuffin"; + questRoot27.Author = list226; + index = 8; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + span2 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference172 = ref span2[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383453,113 +462495,133 @@ public static class AssemblyQuestLoader } } }; - obj163.Steps = list241; - reference182 = obj163; - ref QuestSequence reference183 = ref span83[1]; - QuestSequence obj164 = new QuestSequence + obj153.Steps = list228; + reference172 = obj153; + num++; + ref QuestSequence reference173 = ref span2[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - 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) + index2 = 4; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference174 = ref span3[num2]; + QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions17 = new SkipConditions(); + SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - 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; - span84[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.0223392f, 0.39999998f, 150.66316f), 1297) + index3 = 1; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + span4 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span4[num3] = 1187; + skipStepConditions15.NotInTerritory = list230; + skipConditions16.StepIf = skipStepConditions15; + obj155.SkipConditions = skipConditions16; + reference174 = obj155; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.0223392f, 0.39999998f, 150.66316f), 1297) { DisableNavmesh = true, Mount = true }; - span84[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) { DisableNavmesh = true }; - span84[3] = new QuestStep(EInteractionType.Interact, 1055121u, new Vector3(-105.94348f, 4.0711794f, 153.1853f), 1297) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055121u, new Vector3(-105.94348f, 4.0711794f, 153.1853f), 1297) { DisableNavmesh = true }; - obj164.Steps = list242; - reference183 = obj164; - ref QuestSequence reference185 = ref span83[2]; - QuestSequence obj166 = new QuestSequence + obj154.Steps = list229; + reference173 = obj154; + num++; + ref QuestSequence reference175 = ref span2[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 2 }; num2 = 4; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span85 = CollectionsMarshal.AsSpan(list244); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + span3 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) { DisableNavmesh = true, Mount = true }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.9967885f, 0.39999998f, 162.83284f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.9967885f, 0.39999998f, 162.83284f), 1297) { DisableNavmesh = true }; - span85[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.107587256f, 40.897377f, 312.03854f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.107587256f, 40.897377f, 312.03854f), 1297) { DisableNavmesh = true }; - span85[3] = new QuestStep(EInteractionType.Interact, 2014980u, new Vector3(0.03678493f, 42.45785f, 314.6959f), 1297); - obj166.Steps = list244; - reference185 = obj166; - ref QuestSequence reference186 = ref span83[3]; - QuestSequence obj167 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014980u, new Vector3(0.03678493f, 42.45785f, 314.6959f), 1297); + obj156.Steps = list231; + reference175 = obj156; + num++; + ref QuestSequence reference176 = ref span2[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1054659u, new Vector3(-1.9684448f, 38.852776f, 302.6626f), 1297); - obj167.Steps = list245; - reference186 = obj167; - ref QuestSequence reference187 = ref span83[4]; - QuestSequence obj168 = new QuestSequence + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054659u, new Vector3(-1.9684448f, 38.852776f, 302.6626f), 1297); + obj157.Steps = list232; + reference176 = obj157; + num++; + ref QuestSequence reference177 = ref span2[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span86 = CollectionsMarshal.AsSpan(list246); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.3840146f, 0.37490904f, 181.20703f), 1297) + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + span3 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.3840146f, 0.37490904f, 181.20703f), 1297) { DisableNavmesh = true, Mount = true }; - span86[1] = new QuestStep(EInteractionType.Interact, 1054661u, new Vector3(-73.19757f, 5.964904f, 66.84973f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054661u, new Vector3(-73.19757f, 5.964904f, 66.84973f), 1297) { DisableNavmesh = true }; - obj168.Steps = list246; - reference187 = obj168; - ref QuestSequence reference188 = ref span83[5]; - QuestSequence obj169 = new QuestSequence + obj158.Steps = list233; + reference177 = obj158; + num++; + ref QuestSequence reference178 = ref span2[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span87 = CollectionsMarshal.AsSpan(list247); - span87[0] = new QuestStep(EInteractionType.Interact, 1054675u, new Vector3(-360.61652f, 113.62453f, 560.1738f), 1187) + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + span3 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054675u, new Vector3(-360.61652f, 113.62453f, 560.1738f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383576,7 +462638,8 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.Interact, 1054662u, new Vector3(-355.51996f, 101.70931f, 497.0016f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054662u, new Vector3(-355.51996f, 101.70931f, 497.0016f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383593,17 +462656,20 @@ public static class AssemblyQuestLoader } } }; - obj169.Steps = list247; - reference188 = obj169; - ref QuestSequence reference189 = ref span83[6]; - QuestSequence obj170 = new QuestSequence + obj159.Steps = list234; + reference178 = obj159; + num++; + ref QuestSequence reference179 = ref span2[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + span3 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383620,23 +462686,26 @@ public static class AssemblyQuestLoader } } }; - obj170.Steps = list248; - reference189 = obj170; - ref QuestSequence reference190 = ref span83[7]; - QuestSequence obj171 = new QuestSequence + obj160.Steps = list235; + reference179 = obj160; + num++; + ref QuestSequence reference180 = ref span2[num]; + QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span88 = CollectionsMarshal.AsSpan(list249); - span88[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + index2 = 2; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + span3 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46206u, ItemCount = 1 }; - span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383653,30 +462722,35 @@ public static class AssemblyQuestLoader } } }; - obj171.Steps = list249; - reference190 = obj171; - questRoot28.QuestSequence = list240; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(5335); - QuestRoot questRoot29 = new QuestRoot(); + obj161.Steps = list236; + reference180 = obj161; + questRoot27.QuestSequence = list227; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(5335); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "WigglyMuffin"; - questRoot29.Author = list250; - num = 3; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span89 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference191 = ref span89[0]; - QuestSequence obj172 = new QuestSequence + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + span = CollectionsMarshal.AsSpan(list237); + index = 0; + span[index] = "WigglyMuffin"; + questRoot28.Author = list237; + index = 3; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + span2 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference181 = ref span2[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + span3 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383688,82 +462762,99 @@ public static class AssemblyQuestLoader } } }; - obj172.Steps = list252; - reference191 = obj172; - ref QuestSequence reference192 = ref span89[1]; - QuestSequence obj173 = new QuestSequence + obj162.Steps = list239; + reference181 = obj162; + num++; + ref QuestSequence reference182 = ref span2[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - 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) + index2 = 4; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + span3 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + ref QuestStep reference183 = ref span3[num2]; + QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions18 = new SkipConditions(); + SkipConditions skipConditions17 = new SkipConditions(); SkipStepConditions skipStepConditions16 = new SkipStepConditions(); num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 1187; - skipStepConditions16.NotInTerritory = list254; - skipConditions18.StepIf = skipStepConditions16; - obj174.SkipConditions = skipConditions18; - reference193 = obj174; - span90[1] = new QuestStep(EInteractionType.Interact, 1054668u, new Vector3(-56.565247f, 4.000225f, 50.736206f), 1297); - ref QuestStep reference194 = ref span90[2]; - QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1054669u, new Vector3(-50.30902f, 1.3218602f, 175.09729f), 1297); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = new DialogueChoice + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + span4 = CollectionsMarshal.AsSpan(list241); + index3 = 0; + span4[index3] = 1187; + skipStepConditions16.NotInTerritory = list241; + skipConditions17.StepIf = skipStepConditions16; + obj164.SkipConditions = skipConditions17; + reference183 = obj164; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054668u, new Vector3(-56.565247f, 4.000225f, 50.736206f), 1297); + num2++; + ref QuestStep reference184 = ref span3[num2]; + QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1054669u, new Vector3(-50.30902f, 1.3218602f, 175.09729f), 1297); + index3 = 1; + List list242 = new List(index3); + CollectionsMarshal.SetCount(list242, index3); + span5 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span5[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANYOK006_05335_Q1_000_000"), Answer = new ExcelRef("TEXT_BANYOK006_05335_A1_000_001") }; - questStep23.DialogueChoices = list255; - reference194 = questStep23; - span90[3] = new QuestStep(EInteractionType.Interact, 1054667u, new Vector3(71.33594f, 3.942892f, 186.93823f), 1297); - obj173.Steps = list253; - reference192 = obj173; - ref QuestSequence reference195 = ref span89[2]; - QuestSequence obj175 = new QuestSequence + questStep21.DialogueChoices = list242; + reference184 = questStep21; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054667u, new Vector3(71.33594f, 3.942892f, 186.93823f), 1297); + obj163.Steps = list240; + reference182 = obj163; + num++; + ref QuestSequence reference185 = ref span2[num]; + QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054670u, new Vector3(-2.2736206f, 38.852776f, 304.82947f), 1297); - obj175.Steps = list256; - reference195 = obj175; - questRoot29.QuestSequence = list251; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(5336); - QuestRoot questRoot30 = new QuestRoot(); + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + span3 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054670u, new Vector3(-2.2736206f, 38.852776f, 304.82947f), 1297); + obj165.Steps = list243; + reference185 = obj165; + questRoot28.QuestSequence = list238; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(5336); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "WigglyMuffin"; - questRoot30.Author = list257; - num = 4; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span91 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference196 = ref span91[0]; - QuestSequence obj176 = new QuestSequence + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + span = CollectionsMarshal.AsSpan(list244); + index = 0; + span[index] = "WigglyMuffin"; + questRoot29.Author = list244; + index = 4; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + span2 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference186 = ref span2[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + span3 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383775,79 +462866,94 @@ public static class AssemblyQuestLoader } } }; - obj176.Steps = list259; - reference196 = obj176; - ref QuestSequence reference197 = ref span91[1]; - QuestSequence obj177 = new QuestSequence + obj166.Steps = list246; + reference186 = obj166; + num++; + ref QuestSequence reference187 = ref span2[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span92 = CollectionsMarshal.AsSpan(list260); - ref QuestStep reference198 = ref span92[0]; - QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + ref QuestStep reference188 = ref span3[index2]; + QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, Fly = true }; - SkipConditions skipConditions19 = new SkipConditions(); + SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions17 = new SkipStepConditions(); num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 1187; - skipStepConditions17.NotInTerritory = list261; - skipConditions19.StepIf = skipStepConditions17; - obj178.SkipConditions = skipConditions19; - reference198 = obj178; - span92[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + List list248 = new List(num3); + CollectionsMarshal.SetCount(list248, num3); + span4 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span4[index3] = 1187; + skipStepConditions17.NotInTerritory = list248; + skipConditions18.StepIf = skipStepConditions17; + obj168.SkipConditions = skipConditions18; + reference188 = obj168; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span92[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) { Fly = false }; - span92[3] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); - obj177.Steps = list260; - reference197 = obj177; - ref QuestSequence reference199 = ref span91[2]; - QuestSequence obj179 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + obj167.Steps = list247; + reference187 = obj167; + num++; + ref QuestSequence reference189 = ref span2[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span93 = CollectionsMarshal.AsSpan(list262); - span93[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 4; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + span3 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46208u, ItemCount = 3 }; - span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) { Mount = true, Fly = false }; - span93[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.10631f, 1.8898277f, 100.54272f), 1297) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.10631f, 1.8898277f, 100.54272f), 1297) { Fly = false }; - span93[3] = new QuestStep(EInteractionType.Interact, 1055816u, new Vector3(98.924194f, 1.890541f, 98.74109f), 1297); - obj179.Steps = list262; - reference199 = obj179; - ref QuestSequence reference200 = ref span91[3]; - QuestSequence obj180 = new QuestSequence + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055816u, new Vector3(98.924194f, 1.890541f, 98.74109f), 1297); + obj169.Steps = list249; + reference189 = obj169; + num++; + ref QuestSequence reference190 = ref span2[num]; + QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + span3 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -383860,30 +462966,35 @@ public static class AssemblyQuestLoader } } }; - obj180.Steps = list263; - reference200 = obj180; - questRoot30.QuestSequence = list258; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(5337); - QuestRoot questRoot31 = new QuestRoot(); + obj170.Steps = list250; + reference190 = obj170; + questRoot29.QuestSequence = list245; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(5337); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "WigglyMuffin"; - questRoot31.Author = list264; - num = 3; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span94 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference201 = ref span94[0]; - QuestSequence obj181 = new QuestSequence + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + span = CollectionsMarshal.AsSpan(list251); + index = 0; + span[index] = "WigglyMuffin"; + questRoot30.Author = list251; + index = 3; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + span2 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference191 = ref span2[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383895,29 +463006,34 @@ public static class AssemblyQuestLoader } } }; - obj181.Steps = list266; - reference201 = obj181; - ref QuestSequence reference202 = ref span94[1]; - QuestSequence obj182 = new QuestSequence + obj171.Steps = list253; + reference191 = obj171; + num++; + ref QuestSequence reference192 = ref span2[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187); - obj182.Steps = list267; - reference202 = obj182; - ref QuestSequence reference203 = ref span94[2]; - QuestSequence obj183 = new QuestSequence + List list254 = new List(num2); + CollectionsMarshal.SetCount(list254, num2); + span3 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187); + obj172.Steps = list254; + reference192 = obj172; + num++; + ref QuestSequence reference193 = ref span2[num]; + QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span95 = CollectionsMarshal.AsSpan(list268); - span95[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + index2 = 2; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + span3 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46210u, ItemCount = 2, @@ -383929,31 +463045,37 @@ public static class AssemblyQuestLoader } } }; - span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187); - obj183.Steps = list268; - reference203 = obj183; - questRoot31.QuestSequence = list265; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(5338); - QuestRoot questRoot32 = new QuestRoot(); + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187); + obj173.Steps = list255; + reference193 = obj173; + questRoot30.QuestSequence = list252; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(5338); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "CryoTechnic"; - questRoot32.Author = list269; - num = 4; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span96 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference204 = ref span96[0]; - QuestSequence obj184 = new QuestSequence + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + span = CollectionsMarshal.AsSpan(list256); + index = 0; + span[index] = "CryoTechnic"; + questRoot31.Author = list256; + index = 4; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + span2 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference194 = ref span2[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + span3 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383965,17 +463087,20 @@ public static class AssemblyQuestLoader } } }; - obj184.Steps = list271; - reference204 = obj184; - ref QuestSequence reference205 = ref span96[1]; - QuestSequence obj185 = new QuestSequence + obj174.Steps = list258; + reference194 = obj174; + num++; + ref QuestSequence reference195 = ref span2[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187) { Fly = true, Land = true, @@ -383988,34 +463113,40 @@ public static class AssemblyQuestLoader } } }; - obj185.Steps = list272; - reference205 = obj185; - ref QuestSequence reference206 = ref span96[2]; - QuestSequence obj186 = new QuestSequence + obj175.Steps = list259; + reference195 = obj175; + num++; + ref QuestSequence reference196 = ref span2[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span97 = CollectionsMarshal.AsSpan(list273); - span97[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + span3 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 46212u, ItemCount = 3 }; - span97[1] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187); - obj186.Steps = list273; - reference206 = obj186; - ref QuestSequence reference207 = ref span96[3]; - QuestSequence obj187 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187); + obj176.Steps = list260; + reference196 = obj176; + num++; + ref QuestSequence reference197 = ref span2[num]; + QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + span3 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384027,30 +463158,35 @@ public static class AssemblyQuestLoader } } }; - obj187.Steps = list274; - reference207 = obj187; - questRoot32.QuestSequence = list270; - AddQuest(questId32, questRoot32); - QuestId questId33 = new QuestId(5339); - QuestRoot questRoot33 = new QuestRoot(); + obj177.Steps = list261; + reference197 = obj177; + questRoot31.QuestSequence = list257; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(5339); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "CryoTechnic"; - questRoot33.Author = list275; - num = 3; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span98 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference208 = ref span98[0]; - QuestSequence obj188 = new QuestSequence + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + span = CollectionsMarshal.AsSpan(list262); + index = 0; + span[index] = "CryoTechnic"; + questRoot32.Author = list262; + index = 3; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + span2 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference198 = ref span2[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + span3 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384062,19 +463198,21 @@ public static class AssemblyQuestLoader } } }; - obj188.Steps = list277; - reference208 = obj188; - ref QuestSequence reference209 = ref span98[1]; - QuestSequence obj189 = new QuestSequence + obj178.Steps = list264; + reference198 = obj178; + num++; + ref QuestSequence reference199 = ref span2[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - 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) + index2 = 3; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + span3 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + ref QuestStep reference200 = ref span3[num2]; + QuestStep obj180 = new QuestStep(EInteractionType.Interact, 1055818u, new Vector3(583.276f, 120.7841f, 382.55884f), 1187) { Fly = true, Land = true, @@ -384087,25 +463225,34 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list279 = new List>(num3); - CollectionsMarshal.SetCount(list279, num3); - Span> span100 = CollectionsMarshal.AsSpan(list279); - span100[0] = null; - ref List reference211 = ref span100[1]; + index3 = 6; + List> list266 = new List>(index3); + CollectionsMarshal.SetCount(list266, index3); + Span> span8 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference201 = ref span8[num3]; int num4 = 1; - List list280 = new List(num4); - CollectionsMarshal.SetCount(list280, num4); - CollectionsMarshal.AsSpan(list280)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - reference211 = list280; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = null; - obj190.RequiredQuestVariables = list279; - reference210 = obj190; - ref QuestStep reference212 = ref span99[1]; - QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1055819u, new Vector3(442.31323f, 101.649635f, 363.21045f), 1187) + List list267 = new List(num4); + CollectionsMarshal.SetCount(list267, num4); + span7 = CollectionsMarshal.AsSpan(list267); + int index4 = 0; + span7[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + reference201 = list267; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + obj180.RequiredQuestVariables = list266; + reference200 = obj180; + num2++; + ref QuestStep reference202 = ref span3[num2]; + QuestStep obj181 = new QuestStep(EInteractionType.Interact, 1055819u, new Vector3(442.31323f, 101.649635f, 363.21045f), 1187) { Fly = true, Land = true, @@ -384119,24 +463266,33 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List> list281 = new List>(num3); - CollectionsMarshal.SetCount(list281, num3); - Span> span101 = CollectionsMarshal.AsSpan(list281); - span101[0] = null; - ref List reference213 = ref span101[1]; - num4 = 1; - List list282 = new List(num4); - CollectionsMarshal.SetCount(list282, num4); - CollectionsMarshal.AsSpan(list282)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - reference213 = list282; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; - obj191.RequiredQuestVariables = list281; - reference212 = obj191; - ref QuestStep reference214 = ref span99[2]; - QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1055820u, new Vector3(379.50696f, 78.73412f, 440.63464f), 1187) + List> list268 = new List>(num3); + CollectionsMarshal.SetCount(list268, num3); + span8 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference203 = ref span8[index3]; + index4 = 1; + List list269 = new List(index4); + CollectionsMarshal.SetCount(list269, index4); + span7 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span7[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + reference203 = list269; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + obj181.RequiredQuestVariables = list268; + reference202 = obj181; + num2++; + ref QuestStep reference204 = ref span3[num2]; + QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1055820u, new Vector3(379.50696f, 78.73412f, 440.63464f), 1187) { Fly = true, Land = true, @@ -384149,63 +463305,79 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list283 = new List>(num3); - CollectionsMarshal.SetCount(list283, num3); - Span> span102 = CollectionsMarshal.AsSpan(list283); - span102[0] = null; - ref List reference215 = ref span102[1]; + index3 = 6; + List> list270 = new List>(index3); + CollectionsMarshal.SetCount(list270, index3); + span8 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference205 = ref span8[num3]; num4 = 1; - List list284 = new List(num4); - CollectionsMarshal.SetCount(list284, num4); - CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - reference215 = list284; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = null; - obj192.RequiredQuestVariables = list283; - reference214 = obj192; - obj189.Steps = list278; - reference209 = obj189; - ref QuestSequence reference216 = ref span98[2]; - QuestSequence obj193 = new QuestSequence + List list271 = new List(num4); + CollectionsMarshal.SetCount(list271, num4); + span7 = CollectionsMarshal.AsSpan(list271); + index4 = 0; + span7[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + reference205 = list271; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + obj182.RequiredQuestVariables = list270; + reference204 = obj182; + obj179.Steps = list265; + reference199 = obj179; + num++; + ref QuestSequence reference206 = ref span2[num]; + QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + span3 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj193.Steps = list285; - reference216 = obj193; - questRoot33.QuestSequence = list276; - AddQuest(questId33, questRoot33); - QuestId questId34 = new QuestId(5340); - QuestRoot questRoot34 = new QuestRoot(); + obj183.Steps = list272; + reference206 = obj183; + questRoot32.QuestSequence = list263; + AddQuest(questId32, questRoot32); + QuestId questId33 = new QuestId(5340); + QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "CryoTechnic"; - questRoot34.Author = list286; - num = 4; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span103 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference217 = ref span103[0]; - QuestSequence obj194 = new QuestSequence + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "CryoTechnic"; + questRoot33.Author = list273; + index = 4; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference207 = ref span2[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + span3 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384217,67 +463389,326 @@ public static class AssemblyQuestLoader } } }; - obj194.Steps = list288; - reference217 = obj194; - ref QuestSequence reference218 = ref span103[1]; - QuestSequence obj195 = new QuestSequence + obj184.Steps = list275; + reference207 = obj184; + num++; + ref QuestSequence reference208 = ref span2[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span104 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference219 = ref span104[0]; - QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + span3 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference209 = ref span3[index2]; + QuestStep obj186 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions20 = new SkipConditions(); + SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions18 = new SkipStepConditions(); num3 = 1; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = 1187; - skipStepConditions18.NotInTerritory = list290; - skipConditions20.StepIf = skipStepConditions18; - obj196.SkipConditions = skipConditions20; - reference219 = obj196; - span104[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + span4 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span4[index3] = 1187; + skipStepConditions18.NotInTerritory = list277; + skipConditions19.StepIf = skipStepConditions18; + obj186.SkipConditions = skipConditions19; + reference209 = obj186; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span104[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); - obj195.Steps = list289; - reference218 = obj195; - ref QuestSequence reference220 = ref span103[2]; - QuestSequence obj197 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + obj185.Steps = list276; + reference208 = obj185; + num++; + ref QuestSequence reference210 = ref span2[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span105 = CollectionsMarshal.AsSpan(list291); - span105[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 4; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46214u, ItemCount = 3 }; - span105[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.66426f, 1.8905385f, 65.188644f), 1297); - span105[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.68089f, 3.372309f, 67.41638f), 1297); - span105[3] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); - obj197.Steps = list291; + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.66426f, 1.8905385f, 65.188644f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.68089f, 3.372309f, 67.41638f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + obj187.Steps = list278; + reference210 = obj187; + num++; + ref QuestSequence reference211 = ref span2[num]; + QuestSequence obj188 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true, + Land = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj188.Steps = list279; + reference211 = obj188; + questRoot33.QuestSequence = list274; + AddQuest(questId33, questRoot33); + QuestId questId34 = new QuestId(5341); + QuestRoot questRoot34 = new QuestRoot(); + num = 1; + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + span = CollectionsMarshal.AsSpan(list280); + index = 0; + span[index] = "CryoTechnic"; + questRoot34.Author = list280; + index = 4; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + span2 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference212 = ref span2[num]; + QuestSequence obj189 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj189.Steps = list282; + reference212 = obj189; + num++; + ref QuestSequence reference213 = ref span2[num]; + QuestSequence obj190 = new QuestSequence + { + Sequence = 1 + }; + num2 = 4; + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + span3 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + ref QuestStep reference214 = ref span3[index2]; + QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) + { + TargetTerritoryId = (ushort)1297 + }; + SkipConditions skipConditions20 = new SkipConditions(); + SkipStepConditions skipStepConditions19 = new SkipStepConditions(); + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + span4 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span4[num3] = 1187; + skipStepConditions19.NotInTerritory = list284; + skipConditions20.StepIf = skipStepConditions19; + obj191.SkipConditions = skipConditions20; + reference214 = obj191; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + { + Fly = false + }; + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.2292f, 3.372309f, 66.11308f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + obj190.Steps = list283; + reference213 = obj190; + num++; + ref QuestSequence reference215 = ref span2[num]; + QuestSequence obj192 = new QuestSequence + { + Sequence = 2 + }; + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + span3 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + { + ItemId = 46216u, + ItemCount = 3 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + obj192.Steps = list285; + reference215 = obj192; + num++; + ref QuestSequence reference216 = ref span2[num]; + QuestSequence obj193 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + span3 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true, + Land = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj193.Steps = list286; + reference216 = obj193; + questRoot34.QuestSequence = list281; + AddQuest(questId34, questRoot34); + QuestId questId35 = new QuestId(5342); + QuestRoot questRoot35 = new QuestRoot(); + num = 1; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + span = CollectionsMarshal.AsSpan(list287); + index = 0; + span[index] = "CryoTechnic"; + questRoot35.Author = list287; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + span2 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference217 = ref span2[num]; + QuestSequence obj194 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + span3 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj194.Steps = list289; + reference217 = obj194; + num++; + ref QuestSequence reference218 = ref span2[num]; + QuestSequence obj195 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list290 = new List(num2); + CollectionsMarshal.SetCount(list290, num2); + span3 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + ref QuestStep reference219 = ref span3[index2]; + QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + { + TargetTerritoryId = (ushort)1297 + }; + SkipConditions skipConditions21 = new SkipConditions(); + SkipStepConditions skipStepConditions20 = new SkipStepConditions(); + num3 = 1; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + span4 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span4[index3] = 1187; + skipStepConditions20.NotInTerritory = list291; + skipConditions21.StepIf = skipStepConditions20; + obj196.SkipConditions = skipConditions21; + reference219 = obj196; + obj195.Steps = list290; + reference218 = obj195; + num++; + ref QuestSequence reference220 = ref span2[num]; + QuestSequence obj197 = new QuestSequence + { + Sequence = 2 + }; + index2 = 2; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + { + ItemId = 46218u, + ItemCount = 3 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055824u, new Vector3(520.714f, 111.135f, 608.5145f), 1187) + { + Fly = true, + Land = true + }; + obj197.Steps = list292; reference220 = obj197; - ref QuestSequence reference221 = ref span103[3]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + span3 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384290,30 +463721,35 @@ public static class AssemblyQuestLoader } } }; - obj198.Steps = list292; + obj198.Steps = list293; reference221 = obj198; - questRoot34.QuestSequence = list287; - AddQuest(questId34, questRoot34); - QuestId questId35 = new QuestId(5341); - QuestRoot questRoot35 = new QuestRoot(); + questRoot35.QuestSequence = list288; + AddQuest(questId35, questRoot35); + QuestId questId36 = new QuestId(5343); + QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "CryoTechnic"; - questRoot35.Author = list293; - num = 4; - List list294 = new List(num); + List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - Span span106 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference222 = ref span106[0]; + span = CollectionsMarshal.AsSpan(list294); + index = 0; + span[index] = "WigglyMuffin"; + questRoot36.Author = list294; + index = 4; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + span2 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384325,170 +463761,122 @@ public static class AssemblyQuestLoader } } }; - obj199.Steps = list295; + obj199.Steps = list296; reference222 = obj199; - ref QuestSequence reference223 = ref span106[1]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span107 = CollectionsMarshal.AsSpan(list296); - ref QuestStep reference224 = ref span107[0]; + num2 = 3; + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + ref QuestStep reference224 = ref span3[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions21 = new SkipConditions(); - SkipStepConditions skipStepConditions19 = new SkipStepConditions(); - num3 = 1; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - CollectionsMarshal.AsSpan(list297)[0] = 1187; - skipStepConditions19.NotInTerritory = list297; - skipConditions21.StepIf = skipStepConditions19; - obj201.SkipConditions = skipConditions21; + SkipConditions skipConditions22 = new SkipConditions(); + SkipStepConditions skipStepConditions21 = new SkipStepConditions(); + index3 = 1; + List list298 = new List(index3); + CollectionsMarshal.SetCount(list298, index3); + span4 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span4[num3] = 1187; + skipStepConditions21.NotInTerritory = list298; + skipConditions22.StepIf = skipStepConditions21; + obj201.SkipConditions = skipConditions22; reference224 = obj201; - span107[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span107[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.2292f, 3.372309f, 66.11308f), 1297); - span107[3] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); - obj200.Steps = list296; + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055786u, new Vector3(97.24573f, 4.942853f, 198.19934f), 1297); + obj200.Steps = list297; reference223 = obj200; - ref QuestSequence reference225 = ref span106[2]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span108 = CollectionsMarshal.AsSpan(list298); - span108[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 3; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + span3 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + ref QuestStep reference226 = ref span3[num2]; + QuestStep obj203 = new QuestStep(EInteractionType.UseItem, 2014944u, new Vector3(162.2566f, 3.905f, 88.95158f), 1297) { - ItemId = 46216u, - ItemCount = 3 + ItemId = 2003777u }; - span108[1] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); - obj202.Steps = list298; + num3 = 6; + List list300 = new List(num3); + CollectionsMarshal.SetCount(list300, num3); + span7 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = null; + index3++; + span7[index3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + obj203.CompletionQuestVariablesFlags = list300; + reference226 = obj203; + num2++; + ref QuestStep reference227 = ref span3[num2]; + QuestStep obj204 = new QuestStep(EInteractionType.UseItem, 2014946u, new Vector3(99.3091f, 5.821984f, 15.11211f), 1297) + { + ItemId = 2003777u + }; + index3 = 6; + List list301 = new List(index3); + CollectionsMarshal.SetCount(list301, index3); + span7 = CollectionsMarshal.AsSpan(list301); + 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)10, null, EQuestWorkMode.Bitwise); + obj204.CompletionQuestVariablesFlags = list301; + reference227 = obj204; + num2++; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2014945u, new Vector3(72.99576f, 3.579935f, 29.1846f), 1297) + { + ItemId = 2003777u + }; + obj202.Steps = list299; reference225 = obj202; - ref QuestSequence reference226 = ref span106[3]; - QuestSequence obj203 = new QuestSequence + num++; + ref QuestSequence reference228 = ref span2[num]; + QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) - { - Fly = true, - Land = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj203.Steps = list299; - reference226 = obj203; - questRoot35.QuestSequence = list294; - AddQuest(questId35, questRoot35); - QuestId questId36 = new QuestId(5342); - QuestRoot questRoot36 = new QuestRoot(); - num = 1; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - CollectionsMarshal.AsSpan(list300)[0] = "CryoTechnic"; - questRoot36.Author = list300; - num = 4; - List list301 = new List(num); - CollectionsMarshal.SetCount(list301, num); - Span span109 = CollectionsMarshal.AsSpan(list301); - ref QuestSequence reference227 = ref span109[0]; - QuestSequence obj204 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj204.Steps = list302; - reference227 = obj204; - ref QuestSequence reference228 = ref span109[1]; - QuestSequence obj205 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list303)[0]; - QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) - { - TargetTerritoryId = (ushort)1297 - }; - SkipConditions skipConditions22 = new SkipConditions(); - SkipStepConditions skipStepConditions20 = new SkipStepConditions(); - num3 = 1; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = 1187; - skipStepConditions20.NotInTerritory = list304; - skipConditions22.StepIf = skipStepConditions20; - obj206.SkipConditions = skipConditions22; - reference229 = obj206; - obj205.Steps = list303; - reference228 = obj205; - ref QuestSequence reference230 = ref span109[2]; - QuestSequence obj207 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span110 = CollectionsMarshal.AsSpan(list305); - span110[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) - { - ItemId = 46218u, - ItemCount = 3 - }; - 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; - ref QuestSequence reference231 = ref span109[3]; - QuestSequence obj208 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384501,30 +463889,35 @@ public static class AssemblyQuestLoader } } }; - obj208.Steps = list306; - reference231 = obj208; - questRoot36.QuestSequence = list301; + obj205.Steps = list302; + reference228 = obj205; + questRoot36.QuestSequence = list295; AddQuest(questId36, questRoot36); - QuestId questId37 = new QuestId(5343); + QuestId questId37 = new QuestId(5344); QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "WigglyMuffin"; - questRoot37.Author = list307; - num = 4; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span111 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference232 = ref span111[0]; - QuestSequence obj209 = new QuestSequence + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + span = CollectionsMarshal.AsSpan(list303); + index = 0; + span[index] = "WigglyMuffin"; + questRoot37.Author = list303; + index = 4; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + span2 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference229 = ref span2[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + span3 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384536,97 +463929,175 @@ public static class AssemblyQuestLoader } } }; - obj209.Steps = list309; - reference232 = obj209; - ref QuestSequence reference233 = ref span111[1]; - QuestSequence obj210 = new QuestSequence + obj206.Steps = list305; + reference229 = obj206; + num++; + ref QuestSequence reference230 = ref span2[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - Span span112 = CollectionsMarshal.AsSpan(list310); - ref QuestStep reference234 = ref span112[0]; - QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) + num2 = 1; + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + span3 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187) { - TargetTerritoryId = (ushort)1297 + Fly = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } }; - SkipConditions skipConditions23 = new SkipConditions(); - SkipStepConditions skipStepConditions21 = new SkipStepConditions(); - 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; - span112[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) - { - Fly = false - }; - span112[2] = new QuestStep(EInteractionType.Interact, 1055786u, new Vector3(97.24573f, 4.942853f, 198.19934f), 1297); - obj210.Steps = list310; - reference233 = obj210; - ref QuestSequence reference235 = ref span111[2]; - QuestSequence obj212 = new QuestSequence + obj207.Steps = list306; + reference230 = obj207; + num++; + ref QuestSequence reference231 = ref span2[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - num2 = 3; + index2 = 2; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + span3 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) + { + ItemId = 46220u, + ItemCount = 1 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187); + obj208.Steps = list307; + reference231 = obj208; + num++; + ref QuestSequence reference232 = ref span2[num]; + QuestSequence obj209 = new QuestSequence + { + Sequence = byte.MaxValue + }; + num2 = 1; + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + span3 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true + }; + obj209.Steps = list308; + reference232 = obj209; + questRoot37.QuestSequence = list304; + AddQuest(questId37, questRoot37); + QuestId questId38 = new QuestId(5345); + QuestRoot questRoot38 = new QuestRoot(); + num = 1; + List list309 = new List(num); + CollectionsMarshal.SetCount(list309, num); + span = CollectionsMarshal.AsSpan(list309); + index = 0; + span[index] = "CryoTechnic"; + questRoot38.Author = list309; + index = 4; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + span2 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference233 = ref span2[num]; + QuestSequence obj210 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + span3 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj210.Steps = list311; + reference233 = obj210; + num++; + ref QuestSequence reference234 = ref span2[num]; + QuestSequence obj211 = new QuestSequence + { + Sequence = 1 + }; + num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - 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) + span3 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference235 = ref span3[index2]; + QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { - ItemId = 2003777u + TargetTerritoryId = (ushort)1297, + Fly = true }; - num3 = 6; - List list313 = new List(num3); + SkipConditions skipConditions23 = new SkipConditions(); + SkipStepConditions skipStepConditions22 = new SkipStepConditions(); + num3 = 1; + List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - Span span114 = CollectionsMarshal.AsSpan(list313); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - obj213.CompletionQuestVariablesFlags = list313; - reference236 = obj213; - ref QuestStep reference237 = ref span113[1]; - QuestStep obj214 = new QuestStep(EInteractionType.UseItem, 2014946u, new Vector3(99.3091f, 5.821984f, 15.11211f), 1297) - { - ItemId = 2003777u - }; - num3 = 6; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span115 = CollectionsMarshal.AsSpan(list314); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); - obj214.CompletionQuestVariablesFlags = list314; - reference237 = obj214; - span113[2] = new QuestStep(EInteractionType.UseItem, 2014945u, new Vector3(72.99576f, 3.579935f, 29.1846f), 1297) - { - ItemId = 2003777u - }; - obj212.Steps = list312; + span4 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span4[index3] = 1187; + skipStepConditions22.NotInTerritory = list313; + skipConditions23.StepIf = skipStepConditions22; + obj212.SkipConditions = skipConditions23; reference235 = obj212; - ref QuestSequence reference238 = ref span111[3]; - QuestSequence obj215 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); + obj211.Steps = list312; + reference234 = obj211; + num++; + ref QuestSequence reference236 = ref span2[num]; + QuestSequence obj213 = new QuestSequence + { + Sequence = 2 + }; + index2 = 2; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + span3 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + { + ItemId = 46222u, + ItemCount = 4 + }; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); + obj213.Steps = list314; + reference236 = obj213; + num++; + ref QuestSequence reference237 = ref span2[num]; + QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384639,221 +464110,234 @@ public static class AssemblyQuestLoader } } }; - obj215.Steps = list315; - reference238 = obj215; - questRoot37.QuestSequence = list308; - AddQuest(questId37, questRoot37); - QuestId questId38 = new QuestId(5344); - QuestRoot questRoot38 = new QuestRoot(); + obj214.Steps = list315; + reference237 = obj214; + questRoot38.QuestSequence = list310; + AddQuest(questId38, questRoot38); + QuestId questId39 = new QuestId(5346); + QuestRoot questRoot39 = new QuestRoot(); num = 1; List list316 = new List(num); CollectionsMarshal.SetCount(list316, num); - CollectionsMarshal.AsSpan(list316)[0] = "WigglyMuffin"; - questRoot38.Author = list316; - num = 4; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span116 = CollectionsMarshal.AsSpan(list317); - ref QuestSequence reference239 = ref span116[0]; + span = CollectionsMarshal.AsSpan(list316); + index = 0; + span[index] = "WigglyMuffin"; + questRoot39.Author = list316; + index = 3; + List list317 = new List(index); + CollectionsMarshal.SetCount(list317, index); + span2 = CollectionsMarshal.AsSpan(list317); + num = 0; + ref QuestSequence reference238 = ref span2[num]; + QuestSequence obj215 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + span3 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj215.Steps = list318; + reference238 = obj215; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj216 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj216.Steps = list318; - reference239 = obj216; - ref QuestSequence reference240 = ref span116[1]; - QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; + num2 = 4; 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) + span3 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + ref QuestStep reference240 = ref span3[index2]; + QuestStep obj217 = new QuestStep(EInteractionType.Emote, 1055796u, new Vector3(-486.8086f, 60.107265f, 138.56714f), 1187) { Fly = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } + Emote = EEmote.Poke }; - obj217.Steps = list319; + index3 = 6; + List> list320 = new List>(index3); + CollectionsMarshal.SetCount(list320, index3); + span8 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference241 = ref span8[num3]; + index4 = 1; + List list321 = new List(index4); + CollectionsMarshal.SetCount(list321, index4); + span7 = CollectionsMarshal.AsSpan(list321); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + reference241 = list321; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + obj217.RequiredQuestVariables = list320; reference240 = obj217; - ref QuestSequence reference241 = ref span116[2]; - QuestSequence obj218 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - Span span117 = CollectionsMarshal.AsSpan(list320); - span117[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) - { - ItemId = 46220u, - ItemCount = 1 - }; - span117[1] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187); - obj218.Steps = list320; - reference241 = obj218; - ref QuestSequence reference242 = ref span116[3]; - QuestSequence obj219 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) - { - Fly = true - }; - obj219.Steps = list321; - reference242 = obj219; - questRoot38.QuestSequence = list317; - AddQuest(questId38, questRoot38); - QuestId questId39 = new QuestId(5345); - QuestRoot questRoot39 = new QuestRoot(); - num = 1; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "CryoTechnic"; - questRoot39.Author = list322; - num = 4; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span118 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference243 = ref span118[0]; - QuestSequence obj220 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2++; + ref QuestStep reference242 = ref span3[index2]; + QuestStep obj218 = new QuestStep(EInteractionType.Emote, 1055797u, new Vector3(-195.02557f, 40.181572f, 15.518433f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } + Emote = EEmote.Poke }; - obj220.Steps = list324; - reference243 = obj220; - ref QuestSequence reference244 = ref span118[1]; + num3 = 6; + List> list322 = new List>(num3); + CollectionsMarshal.SetCount(list322, num3); + span8 = CollectionsMarshal.AsSpan(list322); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference243 = ref span8[index3]; + num4 = 1; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + span7 = CollectionsMarshal.AsSpan(list323); + index4 = 0; + span7[index4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + reference243 = list323; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + obj218.RequiredQuestVariables = list322; + reference242 = obj218; + index2++; + ref QuestStep reference244 = ref span3[index2]; + QuestStep obj219 = new QuestStep(EInteractionType.Emote, 1055798u, new Vector3(-434.40912f, 118.59887f, 553.8567f), 1187) + { + Fly = true, + Emote = EEmote.Poke + }; + index3 = 6; + List> list324 = new List>(index3); + CollectionsMarshal.SetCount(list324, index3); + span8 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span8[num3] = null; + num3++; + ref List reference245 = ref span8[num3]; + index4 = 1; + List list325 = new List(index4); + CollectionsMarshal.SetCount(list325, index4); + span7 = CollectionsMarshal.AsSpan(list325); + num4 = 0; + span7[num4] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + reference245 = list325; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + obj219.RequiredQuestVariables = list324; + reference244 = obj219; + index2++; + ref QuestStep reference246 = ref span3[index2]; + QuestStep obj220 = new QuestStep(EInteractionType.Emote, 1055789u, new Vector3(509.69702f, 111.134995f, 693.78186f), 1187) + { + Fly = true, + Emote = EEmote.Poke + }; + num3 = 6; + List> list326 = new List>(num3); + CollectionsMarshal.SetCount(list326, num3); + span8 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span8[index3] = null; + index3++; + ref List reference247 = ref span8[index3]; + num4 = 1; + List list327 = new List(num4); + CollectionsMarshal.SetCount(list327, num4); + span7 = CollectionsMarshal.AsSpan(list327); + index4 = 0; + span7[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + reference247 = list327; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + obj220.RequiredQuestVariables = list326; + reference246 = obj220; + obj216.Steps = list319; + reference239 = obj216; + num++; + ref QuestSequence reference248 = ref span2[num]; QuestSequence obj221 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - Span span119 = CollectionsMarshal.AsSpan(list325); - ref QuestStep reference245 = ref span119[0]; - QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) - { - TargetTerritoryId = (ushort)1297, - Fly = true - }; - SkipConditions skipConditions24 = new SkipConditions(); - SkipStepConditions skipStepConditions22 = new SkipStepConditions(); - num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = 1187; - skipStepConditions22.NotInTerritory = list326; - skipConditions24.StepIf = skipStepConditions22; - obj222.SkipConditions = skipConditions24; - reference245 = obj222; - span119[1] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); - obj221.Steps = list325; - reference244 = obj221; - ref QuestSequence reference246 = ref span118[2]; - QuestSequence obj223 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - Span span120 = CollectionsMarshal.AsSpan(list327); - span120[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) - { - ItemId = 46222u, - ItemCount = 4 - }; - span120[1] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); - obj223.Steps = list327; - reference246 = obj223; - ref QuestSequence reference247 = ref span118[3]; - QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + span3 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, - Land = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj224.Steps = list328; - reference247 = obj224; - questRoot39.QuestSequence = list323; + obj221.Steps = list328; + reference248 = obj221; + questRoot39.QuestSequence = list317; AddQuest(questId39, questRoot39); - QuestId questId40 = new QuestId(5346); + QuestId questId40 = new QuestId(5347); QuestRoot questRoot40 = new QuestRoot(); num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list329); + index = 0; + span[index] = "CryoTechnic"; questRoot40.Author = list329; - num = 3; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span121 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference248 = ref span121[0]; - QuestSequence obj225 = new QuestSequence + index = 4; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + span2 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference249 = ref span2[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 0 }; num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384865,215 +464349,72 @@ public static class AssemblyQuestLoader } } }; - obj225.Steps = list331; - reference248 = obj225; - ref QuestSequence reference249 = ref span121[1]; - QuestSequence obj226 = new QuestSequence + obj222.Steps = list331; + reference249 = obj222; + num++; + ref QuestSequence reference250 = ref span2[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - Span span122 = CollectionsMarshal.AsSpan(list332); - ref QuestStep reference250 = ref span122[0]; - QuestStep obj227 = new QuestStep(EInteractionType.Emote, 1055796u, new Vector3(-486.8086f, 60.107265f, 138.56714f), 1187) - { - Fly = true, - Emote = EEmote.Poke - }; - num3 = 6; - List> list333 = new List>(num3); - CollectionsMarshal.SetCount(list333, num3); - Span> span123 = CollectionsMarshal.AsSpan(list333); - span123[0] = null; - ref List reference251 = ref span123[1]; - num4 = 1; - List list334 = new List(num4); - CollectionsMarshal.SetCount(list334, num4); - CollectionsMarshal.AsSpan(list334)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - reference251 = list334; - span123[2] = null; - span123[3] = null; - span123[4] = null; - span123[5] = null; - obj227.RequiredQuestVariables = list333; - reference250 = obj227; - ref QuestStep reference252 = ref span122[1]; - QuestStep obj228 = new QuestStep(EInteractionType.Emote, 1055797u, new Vector3(-195.02557f, 40.181572f, 15.518433f), 1187) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - Emote = EEmote.Poke - }; - num3 = 6; - List> list335 = new List>(num3); - CollectionsMarshal.SetCount(list335, num3); - Span> span124 = CollectionsMarshal.AsSpan(list335); - span124[0] = null; - ref List reference253 = ref span124[1]; - num4 = 1; - List list336 = new List(num4); - CollectionsMarshal.SetCount(list336, num4); - CollectionsMarshal.AsSpan(list336)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - reference253 = list336; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = null; - obj228.RequiredQuestVariables = list335; - reference252 = obj228; - 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 - }; - 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; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = null; - obj229.RequiredQuestVariables = list337; - reference254 = obj229; - ref QuestStep reference256 = ref span122[3]; - QuestStep obj230 = new QuestStep(EInteractionType.Emote, 1055789u, new Vector3(509.69702f, 111.134995f, 693.78186f), 1187) - { - Fly = true, - Emote = EEmote.Poke - }; - num3 = 6; - List> list339 = new List>(num3); - CollectionsMarshal.SetCount(list339, num3); - Span> span126 = CollectionsMarshal.AsSpan(list339); - span126[0] = null; - ref List reference257 = ref span126[1]; - num4 = 1; - List list340 = new List(num4); - CollectionsMarshal.SetCount(list340, num4); - CollectionsMarshal.AsSpan(list340)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - reference257 = list340; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = null; - obj230.RequiredQuestVariables = list339; - reference256 = obj230; - obj226.Steps = list332; - reference249 = obj226; - ref QuestSequence reference258 = ref span121[2]; - QuestSequence obj231 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho - }; - obj231.Steps = list341; - reference258 = obj231; - questRoot40.QuestSequence = list330; - AddQuest(questId40, questRoot40); - QuestId questId41 = new QuestId(5347); - QuestRoot questRoot41 = new QuestRoot(); - num = 1; - List list342 = new List(num); - CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "CryoTechnic"; - questRoot41.Author = list342; - num = 4; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span127 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference259 = ref span127[0]; - QuestSequence obj232 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj232.Steps = list344; - reference259 = obj232; - ref QuestSequence reference260 = ref span127[1]; - QuestSequence obj233 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - 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) + index2 = 2; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + span3 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + ref QuestStep reference251 = ref span3[num2]; + QuestStep obj224 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; - SkipConditions skipConditions25 = new SkipConditions(); + SkipConditions skipConditions24 = new SkipConditions(); SkipStepConditions skipStepConditions23 = new SkipStepConditions(); - 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; - span128[1] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); - obj233.Steps = list345; - reference260 = obj233; - ref QuestSequence reference262 = ref span127[2]; - QuestSequence obj235 = new QuestSequence + index3 = 1; + List list333 = new List(index3); + CollectionsMarshal.SetCount(list333, index3); + span4 = CollectionsMarshal.AsSpan(list333); + num3 = 0; + span4[num3] = 1187; + skipStepConditions23.NotInTerritory = list333; + skipConditions24.StepIf = skipStepConditions23; + obj224.SkipConditions = skipConditions24; + reference251 = obj224; + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); + obj223.Steps = list332; + reference250 = obj223; + num++; + ref QuestSequence reference252 = ref span2[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - Span span129 = CollectionsMarshal.AsSpan(list347); - span129[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + span3 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46224u, ItemCount = 2 }; - span129[1] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); - obj235.Steps = list347; - reference262 = obj235; - ref QuestSequence reference263 = ref span127[3]; - QuestSequence obj236 = new QuestSequence + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); + obj225.Steps = list334; + reference252 = obj225; + num++; + ref QuestSequence reference253 = ref span2[num]; + QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + span3 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385086,30 +464427,35 @@ public static class AssemblyQuestLoader } } }; - obj236.Steps = list348; - reference263 = obj236; - questRoot41.QuestSequence = list343; - AddQuest(questId41, questRoot41); - QuestId questId42 = new QuestId(5348); - QuestRoot questRoot42 = new QuestRoot(); + obj226.Steps = list335; + reference253 = obj226; + questRoot40.QuestSequence = list330; + AddQuest(questId40, questRoot40); + QuestId questId41 = new QuestId(5348); + QuestRoot questRoot41 = new QuestRoot(); num = 1; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "CryoTechnic"; - questRoot42.Author = list349; - num = 3; - List list350 = new List(num); - CollectionsMarshal.SetCount(list350, num); - Span span130 = CollectionsMarshal.AsSpan(list350); - ref QuestSequence reference264 = ref span130[0]; - QuestSequence obj237 = new QuestSequence + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + span = CollectionsMarshal.AsSpan(list336); + index = 0; + span[index] = "CryoTechnic"; + questRoot41.Author = list336; + index = 3; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + span2 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference254 = ref span2[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + List list338 = new List(num2); + CollectionsMarshal.SetCount(list338, num2); + span3 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385121,17 +464467,20 @@ public static class AssemblyQuestLoader } } }; - obj237.Steps = list351; - reference264 = obj237; - ref QuestSequence reference265 = ref span130[1]; - QuestSequence obj238 = new QuestSequence + obj227.Steps = list338; + reference254 = obj227; + num++; + ref QuestSequence reference255 = ref span2[num]; + QuestSequence obj228 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + span3 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385143,23 +464492,26 @@ public static class AssemblyQuestLoader } } }; - obj238.Steps = list352; - reference265 = obj238; - ref QuestSequence reference266 = ref span130[2]; - QuestSequence obj239 = new QuestSequence + obj228.Steps = list339; + reference255 = obj228; + num++; + ref QuestSequence reference256 = ref span2[num]; + QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - Span span131 = CollectionsMarshal.AsSpan(list353); - span131[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + List list340 = new List(num2); + CollectionsMarshal.SetCount(list340, num2); + span3 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46226u, ItemCount = 1 }; - span131[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385172,30 +464524,35 @@ public static class AssemblyQuestLoader } } }; - obj239.Steps = list353; - reference266 = obj239; - questRoot42.QuestSequence = list350; - AddQuest(questId42, questRoot42); - QuestId questId43 = new QuestId(5349); - QuestRoot questRoot43 = new QuestRoot(); + obj229.Steps = list340; + reference256 = obj229; + questRoot41.QuestSequence = list337; + AddQuest(questId41, questRoot41); + QuestId questId42 = new QuestId(5349); + QuestRoot questRoot42 = new QuestRoot(); num = 1; - List list354 = new List(num); - CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "CryoTechnic"; - questRoot43.Author = list354; - num = 3; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span132 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference267 = ref span132[0]; - QuestSequence obj240 = new QuestSequence + List list341 = new List(num); + CollectionsMarshal.SetCount(list341, num); + span = CollectionsMarshal.AsSpan(list341); + index = 0; + span[index] = "CryoTechnic"; + questRoot42.Author = list341; + index = 3; + List list342 = new List(index); + CollectionsMarshal.SetCount(list342, index); + span2 = CollectionsMarshal.AsSpan(list342); + num = 0; + ref QuestSequence reference257 = ref span2[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + span3 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385207,18 +464564,20 @@ public static class AssemblyQuestLoader } } }; - obj240.Steps = list356; - reference267 = obj240; - ref QuestSequence reference268 = ref span132[1]; - QuestSequence obj241 = new QuestSequence + obj230.Steps = list343; + reference257 = obj230; + num++; + ref QuestSequence reference258 = ref span2[num]; + QuestSequence obj231 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - Span span133 = CollectionsMarshal.AsSpan(list357); - span133[0] = new QuestStep(EInteractionType.Say, 1055825u, new Vector3(254.56616f, 34.20388f, 156.60327f), 1187) + List list344 = new List(num2); + CollectionsMarshal.SetCount(list344, num2); + span3 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Say, 1055825u, new Vector3(254.56616f, 34.20388f, 156.60327f), 1187) { Fly = true, Land = true, @@ -385227,29 +464586,34 @@ public static class AssemblyQuestLoader Key = "TEXT_BANYOK114_05349_SAYTODO_000_010" } }; - span133[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(145.29918f, 34.203415f, 104.64879f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(145.29918f, 34.203415f, 104.64879f), 1187) { Fly = true, Land = true }; - span133[2] = new QuestStep(EInteractionType.Say, 1055826u, new Vector3(145.76941f, 34.203403f, 101.548706f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.Say, 1055826u, new Vector3(145.76941f, 34.203403f, 101.548706f), 1187) { ChatMessage = new ChatMessage { Key = "TEXT_BANYOK114_05349_SAYTODO_000_010" } }; - obj241.Steps = list357; - reference268 = obj241; - ref QuestSequence reference269 = ref span132[2]; - QuestSequence obj242 = new QuestSequence + obj231.Steps = list344; + reference258 = obj231; + num++; + ref QuestSequence reference259 = ref span2[num]; + QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + span3 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385267,10 +464631,10 @@ public static class AssemblyQuestLoader } } }; - obj242.Steps = list358; - reference269 = obj242; - questRoot43.QuestSequence = list355; - AddQuest(questId43, questRoot43); + obj232.Steps = list345; + reference259 = obj232; + questRoot42.QuestSequence = list342; + AddQuest(questId42, questRoot42); } private static void LoadQuests107() @@ -385280,13 +464644,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "CryoTechnic"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "CryoTechnic"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -385294,7 +464661,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385308,21 +464677,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -385330,24 +464703,29 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46228u, ItemCount = 1 }; - span2[1] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385369,13 +464747,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list7); + index = 0; + span[index] = "CryoTechnic"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + span2 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -385383,7 +464764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385397,15 +464780,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1055805u, new Vector3(134.08093f, 31.956184f, 376.9436f), 1187) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + span3 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055805u, new Vector3(134.08093f, 31.956184f, 376.9436f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385419,7 +464805,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -385427,7 +464814,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385449,21 +464838,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list12); + index = 0; + span[index] = "WigglyMuffin"; questRoot3.Author = list12; - num = 4; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span4[0]; + index = 4; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + span2 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + span3 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385477,7 +464871,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span4[1]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -385485,8 +464880,9 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span5[0]; + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference10 = ref span3[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -385496,40 +464892,49 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 1187; + Span span4 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span4[index3] = 1187; skipStepConditions.NotInTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span5[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span6 = CollectionsMarshal.AsSpan(list17); - span6[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 3; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + span3 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46230u, ItemCount = 3 }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) { Fly = false }; - span6[2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span4[3]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -385537,7 +464942,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385559,21 +464966,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list19); + index = 0; + span[index] = "WigglyMuffin"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span7[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + span2 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + span3 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385587,7 +464999,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -385595,47 +465008,56 @@ public static class AssemblyQuestLoader num2 = 3; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference15 = ref span8[0]; + span3 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference15 = ref span3[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 1187; + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + span4 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span4[num3] = 1187; skipStepConditions2.NotInTerritory = list23; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference15 = obj15; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span8[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference16 = ref span7[2]; + num++; + ref QuestSequence reference16 = ref span2[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span9 = CollectionsMarshal.AsSpan(list24); - span9[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + span3 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46232u, ItemCount = 4 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1055807u, new Vector3(-76.46301f, 6.180734f, 35.75183f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055807u, new Vector3(-76.46301f, 6.180734f, 35.75183f), 1297); obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span7[3]; + num++; + ref QuestSequence reference17 = ref span2[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -385643,7 +465065,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385665,21 +465089,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list26); + index = 0; + span[index] = "WigglyMuffin"; questRoot5.Author = list26; - num = 4; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span10 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference18 = ref span10[0]; + index = 4; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + span2 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference18 = ref span2[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + span3 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385693,7 +465122,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span10[1]; + num++; + ref QuestSequence reference19 = ref span2[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -385701,8 +465131,9 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference20 = ref span11[0]; + span3 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference20 = ref span3[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -385712,27 +465143,34 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = 1187; + span4 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span4[index3] = 1187; skipStepConditions3.NotInTerritory = list30; skipConditions3.StepIf = skipStepConditions3; obj20.SkipConditions = skipConditions3; reference20 = obj20; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.796455f, 5.969013f, 48.502377f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.796455f, 5.969013f, 48.502377f), 1297) { Fly = false }; - span11[2] = new QuestStep(EInteractionType.Interact, 1055808u, new Vector3(-143.63324f, 5.9494705f, 58.457275f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055808u, new Vector3(-143.63324f, 5.9494705f, 58.457275f), 1297); obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference21 = ref span10[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1055809u, new Vector3(703.8834f, 75.19972f, 633.3562f), 1187) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + span3 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055809u, new Vector3(703.8834f, 75.19972f, 633.3562f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385746,7 +465184,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span10[3]; + num++; + ref QuestSequence reference22 = ref span2[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -385754,7 +465193,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385775,21 +465216,26 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list33); + index = 0; + span[index] = "WigglyMuffin"; questRoot6.Author = list33; - num = 4; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span12[0]; + index = 4; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + span2 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span2[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + span3 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385803,7 +465249,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list35; reference23 = obj23; - ref QuestSequence reference24 = ref span12[1]; + num++; + ref QuestSequence reference24 = ref span2[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -385811,47 +465258,56 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference25 = ref span13[0]; + span3 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference25 = ref span3[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 1187; + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + span4 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span4[num3] = 1187; skipStepConditions4.NotInTerritory = list37; skipConditions4.StepIf = skipStepConditions4; obj25.SkipConditions = skipConditions4; reference25 = obj25; - span13[1] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference26 = ref span12[2]; + num++; + ref QuestSequence reference26 = ref span2[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + span3 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46234u, ItemCount = 2 }; - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) { Fly = false }; - span14[2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj26.Steps = list38; reference26 = obj26; - ref QuestSequence reference27 = ref span12[3]; + num++; + ref QuestSequence reference27 = ref span2[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -385859,7 +465315,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385881,21 +465339,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list40); + index = 0; + span[index] = "CryoTechnic"; questRoot7.Author = list40; - num = 4; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span15 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference28 = ref span15[0]; + index = 4; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + span2 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference28 = ref span2[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + span3 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385909,7 +465372,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span15[1]; + num++; + ref QuestSequence reference29 = ref span2[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -385917,56 +465381,66 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1055810u, new Vector3(530.44934f, 107.13501f, 539.0554f), 1187) + span3 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055810u, new Vector3(530.44934f, 107.13501f, 539.0554f), 1187) { Fly = true }; obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference30 = ref span15[2]; + num++; + ref QuestSequence reference30 = ref span2[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span16 = CollectionsMarshal.AsSpan(list44); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(552.27673f, 108.55478f, 727.94354f), 1187) + index2 = 6; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + span3 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(552.27673f, 108.55478f, 727.94354f), 1187) { Mount = false, Fly = false }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.60175f, 119.49903f, 758.57855f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.60175f, 119.49903f, 758.57855f), 1187) { DisableNavmesh = true, Mount = false, Fly = false }; - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.2725f, 127.72187f, 781.8777f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.2725f, 127.72187f, 781.8777f), 1187) { Mount = false, Fly = false }; - span16[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.19476f, 135.24232f, 801.69586f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.19476f, 135.24232f, 801.69586f), 1187) { DisableNavmesh = true, Mount = false, Fly = false }; - span16[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(516.9529f, 142.24991f, 797.651f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(516.9529f, 142.24991f, 797.651f), 1187) { Mount = false, Fly = false }; - span16[5] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Mount = false, Fly = false }; obj30.Steps = list44; reference30 = obj30; - ref QuestSequence reference31 = ref span15[3]; + num++; + ref QuestSequence reference31 = ref span2[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -385974,7 +465448,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386000,21 +465476,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list46); + index = 0; + span[index] = "CryoTechnic"; questRoot8.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span17 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference32 = ref span17[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + span2 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference32 = ref span2[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + span3 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386028,7 +465509,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference33 = ref span17[1]; + num++; + ref QuestSequence reference33 = ref span2[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -386036,7 +465518,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + span3 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386050,16 +465534,18 @@ public static class AssemblyQuestLoader }; obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference34 = ref span17[2]; + num++; + ref QuestSequence reference34 = ref span2[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span18 = CollectionsMarshal.AsSpan(list50); - span18[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + span3 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46236u, ItemCount = 3, @@ -386071,7 +465557,8 @@ public static class AssemblyQuestLoader } } }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + num2++; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386097,13 +465584,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "CryoTechnic"; + span = CollectionsMarshal.AsSpan(list51); + index = 0; + span[index] = "CryoTechnic"; questRoot9.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference35 = ref span19[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + span2 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference35 = ref span2[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -386111,7 +465601,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386125,16 +465617,18 @@ public static class AssemblyQuestLoader }; obj35.Steps = list53; reference35 = obj35; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span2[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span20 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference37 = ref span20[0]; + index2 = 2; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + span3 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference37 = ref span3[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -386144,15 +465638,19 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 1187; + span4 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span4[index3] = 1187; skipStepConditions5.NotInTerritory = list55; skipConditions5.StepIf = skipStepConditions5; obj37.SkipConditions = skipConditions5; reference37 = obj37; - span20[1] = new QuestStep(EInteractionType.Interact, 1055791u, new Vector3(21.469421f, 13.538549f, 283.6194f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055791u, new Vector3(21.469421f, 13.538549f, 283.6194f), 1297); obj36.Steps = list54; reference36 = obj36; - ref QuestSequence reference38 = ref span19[2]; + num++; + ref QuestSequence reference38 = ref span2[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -386160,51 +465658,64 @@ public static class AssemblyQuestLoader num2 = 17; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span21 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference39 = ref span21[0]; + span3 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference39 = ref span3[index2]; QuestStep obj39 = new QuestStep(EInteractionType.UseItem, 2014955u, new Vector3(21.35857f, 15.18271f, 288.9486f), 1297) { Mount = true, ItemId = 2003778u }; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span22 = CollectionsMarshal.AsSpan(list57); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span5 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); obj39.CompletionQuestVariablesFlags = list57; reference39 = obj39; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.474648f, 13.538554f, 299.35413f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.474648f, 13.538554f, 299.35413f), 1297) { DisableNavmesh = true, Mount = true }; - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.922432f, 13.538555f, 299.98282f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.922432f, 13.538555f, 299.98282f), 1297) { DisableNavmesh = true, Mount = true }; - span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.25193f, 13.538491f, 335.66028f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.25193f, 13.538491f, 335.66028f), 1297) { DisableNavmesh = true, Mount = true }; - span21[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.59439f, 13.538559f, 335.311f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.59439f, 13.538559f, 335.311f), 1297) { DisableNavmesh = true, Mount = true }; - span21[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(27.471945f, 13.538559f, 345.5773f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(27.471945f, 13.538559f, 345.5773f), 1297) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference40 = ref span21[6]; + index2++; + ref QuestStep reference40 = ref span3[index2]; QuestStep obj40 = new QuestStep(EInteractionType.UseItem, 2014958u, new Vector3(25.25208f, 15.1827f, 343.7696f), 1297) { Mount = true, @@ -386213,89 +465724,114 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span23 = CollectionsMarshal.AsSpan(list58); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)9, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)9, null, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list58; reference40 = obj40; - span21[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.319462f, 13.538559f, 359.63834f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.319462f, 13.538559f, 359.63834f), 1297) { DisableNavmesh = true, Mount = true }; - span21[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.500497f, 13.538549f, 359.83508f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.500497f, 13.538549f, 359.83508f), 1297) { DisableNavmesh = true, Mount = true }; - span21[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.350124f, 13.538551f, 347.12094f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.350124f, 13.538551f, 347.12094f), 1297) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference41 = ref span21[10]; + index2++; + ref QuestStep reference41 = ref span3[index2]; QuestStep obj41 = new QuestStep(EInteractionType.UseItem, 2014957u, new Vector3(-24.51654f, 15.1827f, 343.9439f), 1297) { Mount = true, ItemId = 2003778u }; - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span24 = CollectionsMarshal.AsSpan(list59); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)11, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + span5 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)11, null, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; - span21[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-36.89487f, 13.5385475f, 335.85452f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-36.89487f, 13.5385475f, 335.85452f), 1297) { DisableNavmesh = true, Mount = true }; - span21[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.796112f, 13.53848f, 335.2269f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.796112f, 13.53848f, 335.2269f), 1297) { DisableNavmesh = true, Mount = true }; - span21[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.585648f, 13.538531f, 299.03348f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.585648f, 13.538531f, 299.03348f), 1297) { DisableNavmesh = true, Mount = true }; - span21[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-34.23524f, 13.538542f, 298.76367f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-34.23524f, 13.538542f, 298.76367f), 1297) { DisableNavmesh = true, Mount = true }; - span21[15] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.993502f, 13.538543f, 287.8971f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.993502f, 13.538543f, 287.8971f), 1297) { DisableNavmesh = true, Mount = true }; - span21[16] = new QuestStep(EInteractionType.UseItem, 2014956u, new Vector3(-20.50371f, 15.1827f, 288.8894f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2014956u, new Vector3(-20.50371f, 15.1827f, 288.8894f), 1297) { Mount = true, ItemId = 2003778u }; obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference42 = ref span19[3]; + num++; + ref QuestSequence reference42 = ref span2[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + span3 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386316,13 +465852,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "WigglyMuffin, CryoTechnic"; + span = CollectionsMarshal.AsSpan(list61); + index = 0; + span[index] = "WigglyMuffin, CryoTechnic"; questRoot10.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span25 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference43 = ref span25[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + span2 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference43 = ref span2[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -386330,7 +465869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386344,15 +465885,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference44 = ref span25[1]; + num++; + ref QuestSequence reference44 = ref span2[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1055792u, new Vector3(425.4978f, 118.935005f, 606.897f), 1187) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + span3 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055792u, new Vector3(425.4978f, 118.935005f, 606.897f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386366,7 +465910,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference44 = obj44; - ref QuestSequence reference45 = ref span25[2]; + num++; + ref QuestSequence reference45 = ref span2[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -386374,8 +465919,9 @@ public static class AssemblyQuestLoader num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span26 = CollectionsMarshal.AsSpan(list65); - span26[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + span3 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46238u, ItemCount = 1, @@ -386387,21 +465933,25 @@ public static class AssemblyQuestLoader } } }; - span26[1] = new QuestStep(EInteractionType.Interact, 1055793u, new Vector3(424.33813f, 118.935005f, 609.308f), 1187) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055793u, new Vector3(424.33813f, 118.935005f, 609.308f), 1187) { Fly = true }; obj45.Steps = list65; reference45 = obj45; - ref QuestSequence reference46 = ref span25[3]; + num++; + ref QuestSequence reference46 = ref span2[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + span3 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386422,13 +465972,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "WigglyMuffin, CryoTechnic"; + span = CollectionsMarshal.AsSpan(list67); + index = 0; + span[index] = "WigglyMuffin, CryoTechnic"; questRoot11.Author = list67; - num = 4; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span27 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span27[0]; + index = 4; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + span2 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span2[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -386436,7 +465989,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386450,16 +466005,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list69; reference47 = obj47; - ref QuestSequence reference48 = ref span27[1]; + num++; + ref QuestSequence reference48 = ref span2[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference49 = ref span28[0]; + index2 = 3; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + span3 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference49 = ref span3[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2014948u, new Vector3(-485.1251f, 49.18068f, -302.4295f), 1187) { Fly = true, @@ -386475,16 +466032,23 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list71; reference49 = obj49; - ref QuestStep reference50 = ref span28[1]; + num2++; + ref QuestStep reference50 = ref span3[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2014949u, new Vector3(-556.6002f, 55.26223f, -305.9056f), 1187) { Fly = true, @@ -386497,19 +466061,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span30 = CollectionsMarshal.AsSpan(list72); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + span5 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list72; reference50 = obj50; - ref QuestStep reference51 = ref span28[2]; + num2++; + ref QuestStep reference51 = ref span3[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2014947u, new Vector3(-503.3189f, 57.45695f, -196.0937f), 1187) { Fly = true, @@ -386525,18 +466096,25 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span31 = CollectionsMarshal.AsSpan(list73); - span31[0] = null; - span31[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + span5 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj51.CompletionQuestVariablesFlags = list73; reference51 = obj51; obj48.Steps = list70; reference48 = obj48; - ref QuestSequence reference52 = ref span27[2]; + num++; + ref QuestSequence reference52 = ref span2[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -386544,8 +466122,9 @@ public static class AssemblyQuestLoader num2 = 4; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span32 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference53 = ref span32[0]; + span3 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference53 = ref span3[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -386554,37 +466133,45 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 1187; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + span4 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span4[num3] = 1187; skipStepConditions6.NotInTerritory = list75; skipConditions6.StepIf = skipStepConditions6; obj53.SkipConditions = skipConditions6; reference53 = obj53; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.667403f, 0.39999998f, 157.18628f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.667403f, 0.39999998f, 157.18628f), 1297) { DisableNavmesh = true }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-81.35781f, 4.0711737f, 162.40425f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-81.35781f, 4.0711737f, 162.40425f), 1297) { DisableNavmesh = true }; - span32[3] = new QuestStep(EInteractionType.Interact, 1055794u, new Vector3(-92.729065f, 4.071174f, 172.07593f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055794u, new Vector3(-92.729065f, 4.071174f, 172.07593f), 1297) { Fly = true }; obj52.Steps = list74; reference52 = obj52; - ref QuestSequence reference54 = ref span27[3]; + num++; + ref QuestSequence reference54 = ref span2[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + span3 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386605,13 +466192,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "WigglyMuffin, CryoTechnic"; + span = CollectionsMarshal.AsSpan(list77); + index = 0; + span[index] = "WigglyMuffin, CryoTechnic"; questRoot12.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span33 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span33[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + span2 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span2[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -386619,7 +466209,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386633,16 +466225,18 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference55 = obj55; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span2[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span34 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference57 = ref span34[0]; + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + span3 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + ref QuestStep reference57 = ref span3[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -386652,15 +466246,19 @@ public static class AssemblyQuestLoader num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = 1187; + span4 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span4[index3] = 1187; skipStepConditions7.NotInTerritory = list81; skipConditions7.StepIf = skipStepConditions7; obj57.SkipConditions = skipConditions7; reference57 = obj57; - span34[1] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj56.Steps = list80; reference56 = obj56; - ref QuestSequence reference58 = ref span33[2]; + num++; + ref QuestSequence reference58 = ref span2[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -386668,8 +466266,9 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span35 = CollectionsMarshal.AsSpan(list82); - span35[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + span3 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46240u, ItemCount = 4, @@ -386681,18 +466280,22 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.Interact, 1055795u, new Vector3(76.98169f, 3.871f, 20.248657f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055795u, new Vector3(76.98169f, 3.871f, 20.248657f), 1297); obj58.Steps = list82; reference58 = obj58; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span2[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + span3 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386713,13 +466316,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list84); + index = 0; + span[index] = "WigglyMuffin"; questRoot13.Author = list84; - num = 4; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span36 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference60 = ref span36[0]; + index = 4; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + span2 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference60 = ref span2[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -386727,7 +466333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386741,16 +466349,18 @@ public static class AssemblyQuestLoader }; obj60.Steps = list86; reference60 = obj60; - ref QuestSequence reference61 = ref span36[1]; + num++; + ref QuestSequence reference61 = ref span2[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span37 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference62 = ref span37[0]; + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + span3 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference62 = ref span3[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -386758,20 +466368,26 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = 1187; + index3 = 1; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + span4 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span4[num3] = 1187; skipStepConditions8.NotInTerritory = list88; skipConditions8.StepIf = skipStepConditions8; obj62.SkipConditions = skipConditions8; reference62 = obj62; - span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.53954f, 0f, 66.45418f), 1297); - span37[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.61164f, 1.8846376f, 59.062263f), 1297); - span37[3] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.53954f, 0f, 66.45418f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.61164f, 1.8846376f, 59.062263f), 1297); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj61.Steps = list87; reference61 = obj61; - ref QuestSequence reference63 = ref span36[2]; + num++; + ref QuestSequence reference63 = ref span2[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -386779,8 +466395,9 @@ public static class AssemblyQuestLoader num2 = 4; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span38 = CollectionsMarshal.AsSpan(list89); - span38[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + span3 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46242u, ItemCount = 1, @@ -386792,23 +466409,29 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.179123f, 0f, 65.47386f), 1297); - span38[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297); - span38[3] = new QuestStep(EInteractionType.Interact, 1055811u, new Vector3(-94.5907f, 4.071177f, 155.68774f), 1297) + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.179123f, 0f, 65.47386f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055811u, new Vector3(-94.5907f, 4.071177f, 155.68774f), 1297) { DisableNavmesh = true }; obj63.Steps = list89; reference63 = obj63; - ref QuestSequence reference64 = ref span36[3]; + num++; + ref QuestSequence reference64 = ref span2[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + span3 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386829,13 +466452,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list91); + index = 0; + span[index] = "WigglyMuffin"; questRoot14.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span39 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference65 = ref span39[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + span2 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference65 = ref span2[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -386843,7 +466469,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386857,16 +466485,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list93; reference65 = obj65; - ref QuestSequence reference66 = ref span39[1]; + num++; + ref QuestSequence reference66 = ref span2[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span40 = CollectionsMarshal.AsSpan(list94); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.02783f, -116.81516f, -190.65091f), 1187) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + span3 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.02783f, -116.81516f, -190.65091f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -386883,12 +466513,15 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference67 = ref span40[1]; + num2++; + ref QuestStep reference67 = ref span3[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1055812u, new Vector3(429.80078f, -116.815155f, -188.28113f), 1187); num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANYOK128_05363_Q1_000_000"), @@ -386898,7 +466531,8 @@ public static class AssemblyQuestLoader reference67 = questStep; obj66.Steps = list94; reference66 = obj66; - ref QuestSequence reference68 = ref span39[2]; + num++; + ref QuestSequence reference68 = ref span2[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -386906,7 +466540,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span3 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386932,22 +466568,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list97); + index = 0; + span[index] = "liza"; questRoot15.Author = list97; - num = 7; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span41 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference69 = ref span41[0]; + index = 7; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + span2 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference69 = ref span2[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span42 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference70 = ref span42[0]; + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + span3 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference70 = ref span3[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -386960,10 +466600,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 1207; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + span4 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span4[num3] = 1207; skipStepConditions9.InTerritory = list100; skipConditions9.StepIf = skipStepConditions9; SkipAetheryteCondition obj70 = new SkipAetheryteCondition @@ -386973,15 +466615,19 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 1207; + span4 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span4[index3] = 1207; obj70.InTerritory = list101; skipConditions9.AetheryteShortcutIf = obj70; obj69.SkipConditions = skipConditions9; reference70 = obj69; - span42[1] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + num2++; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj68.Steps = list99; reference69 = obj68; - ref QuestSequence reference71 = ref span41[1]; + num++; + ref QuestSequence reference71 = ref span2[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -386989,37 +466635,45 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span43 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference72 = ref span43[0]; + span3 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference72 = ref span3[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 1207; + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + span4 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span4[num3] = 1207; skipStepConditions10.NotInTerritory = list103; skipConditions10.StepIf = skipStepConditions10; obj72.SkipConditions = skipConditions10; reference72 = obj72; - span43[1] = new QuestStep(EInteractionType.Interact, 1054503u, new Vector3(291.4015f, 50.749996f, 155.19946f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054503u, new Vector3(291.4015f, 50.749996f, 155.19946f), 1186); obj71.Steps = list102; reference71 = obj71; - ref QuestSequence reference73 = ref span41[2]; + num++; + ref QuestSequence reference73 = ref span2[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1054509u, new Vector3(291.432f, 50.75f, 153.79565f), 1186); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + span3 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054509u, new Vector3(291.432f, 50.75f, 153.79565f), 1186); obj73.Steps = list104; reference73 = obj73; - ref QuestSequence reference74 = ref span41[3]; + num++; + ref QuestSequence reference74 = ref span2[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -387027,52 +466681,75 @@ public static class AssemblyQuestLoader num2 = 3; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span44 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference75 = ref span44[0]; + span3 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + ref QuestStep reference75 = ref span3[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1056091u, new Vector3(349.17212f, 50.75f, 198.38245f), 1186); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list106; reference75 = questStep2; - ref QuestStep reference76 = ref span44[1]; + index2++; + ref QuestStep reference76 = ref span3[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1056090u, new Vector3(341.26794f, 50.75f, 146.68494f), 1186); - num3 = 6; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span46 = CollectionsMarshal.AsSpan(list107); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + span5 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list107; reference76 = questStep3; - ref QuestStep reference77 = ref span44[2]; + index2++; + ref QuestStep reference77 = ref span3[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1054508u, new Vector3(377.3098f, 50.749996f, 115.098755f), 1186); num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span47 = CollectionsMarshal.AsSpan(list108); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list108; - num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice + index3 = 1; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + span6 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI101_05364_Q3_000_000"), @@ -387082,46 +466759,62 @@ public static class AssemblyQuestLoader reference77 = questStep4; obj74.Steps = list105; reference74 = obj74; - ref QuestSequence reference78 = ref span41[4]; + num++; + ref QuestSequence reference78 = ref span2[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span48 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference79 = ref span48[0]; + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + span3 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference79 = ref span3[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1054507u, new Vector3(465.2932f, 60f, 149.79773f), 1186); num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span49 = CollectionsMarshal.AsSpan(list111); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list111; reference79 = questStep5; - ref QuestStep reference80 = ref span48[1]; + num2++; + ref QuestStep reference80 = ref span3[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1054506u, new Vector3(465.44592f, 59.999886f, 196.58191f), 1186); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span50 = CollectionsMarshal.AsSpan(list112); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + span5 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list112; reference80 = questStep6; obj75.Steps = list110; reference78 = obj75; - ref QuestSequence reference81 = ref span41[5]; + num++; + ref QuestSequence reference81 = ref span2[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -387129,21 +466822,27 @@ public static class AssemblyQuestLoader num2 = 3; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span51 = CollectionsMarshal.AsSpan(list113); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.45462f, 60f, 142.0744f), 1186); - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.92972f, 60f, 120.31207f), 1186); - span51[2] = new QuestStep(EInteractionType.Interact, 1056092u, new Vector3(350.78967f, 59.999996f, 76.798584f), 1186); + span3 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.45462f, 60f, 142.0744f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.92972f, 60f, 120.31207f), 1186); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1056092u, new Vector3(350.78967f, 59.999996f, 76.798584f), 1186); obj76.Steps = list113; reference81 = obj76; - ref QuestSequence reference82 = ref span41[6]; + num++; + ref QuestSequence reference82 = ref span2[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + span3 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) { StopDistance = 7f }; @@ -387156,13 +466855,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list115); + index = 0; + span[index] = "liza"; questRoot16.Author = list115; - num = 6; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span52 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference83 = ref span52[0]; + index = 6; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + span2 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference83 = ref span2[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -387170,30 +466872,37 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) + span3 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) { StopDistance = 7f }; obj78.Steps = list117; reference83 = obj78; - ref QuestSequence reference84 = ref span52[1]; + num++; + ref QuestSequence reference84 = ref span2[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span53 = CollectionsMarshal.AsSpan(list118); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.0448f, 13.499981f, 269.6568f), 1186); - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.7604f, 14.029999f, 272.61798f), 1186) + index2 = 3; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + span3 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.0448f, 13.499981f, 269.6568f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.7604f, 14.029999f, 272.61798f), 1186) { DisableNavmesh = true }; - span53[2] = new QuestStep(EInteractionType.Interact, 1054518u, new Vector3(-368.00183f, 14f, 228.90051f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054518u, new Vector3(-368.00183f, 14f, 228.90051f), 1186); obj79.Steps = list118; reference84 = obj79; - ref QuestSequence reference85 = ref span52[2]; + num++; + ref QuestSequence reference85 = ref span2[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -387201,21 +466910,27 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 2014833u, new Vector3(-328.48102f, 13.992493f, 161.24207f), 1186); + span3 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014833u, new Vector3(-328.48102f, 13.992493f, 161.24207f), 1186); obj80.Steps = list119; reference85 = obj80; - ref QuestSequence reference86 = ref span52[3]; + num++; + ref QuestSequence reference86 = ref span2[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 2014834u, new Vector3(-242.69476f, 2.1820068f, 212.4513f), 1186); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + span3 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014834u, new Vector3(-242.69476f, 2.1820068f, 212.4513f), 1186); obj81.Steps = list120; reference86 = obj81; - ref QuestSequence reference87 = ref span52[4]; + num++; + ref QuestSequence reference87 = ref span2[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -387223,18 +466938,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2014835u, new Vector3(-141.31384f, 2.1820068f, 212.9701f), 1186); + span3 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014835u, new Vector3(-141.31384f, 2.1820068f, 212.9701f), 1186); obj82.Steps = list121; reference87 = obj82; - ref QuestSequence reference88 = ref span52[5]; + num++; + ref QuestSequence reference88 = ref span2[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + span3 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); obj83.Steps = list122; reference88 = obj83; questRoot16.QuestSequence = list116; @@ -387244,13 +466964,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list123); + index = 0; + span[index] = "liza"; questRoot17.Author = list123; - num = 9; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span54 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference89 = ref span54[0]; + index = 9; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + span2 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference89 = ref span2[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -387258,24 +466981,30 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); + span3 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); obj84.Steps = list125; reference89 = obj84; - ref QuestSequence reference90 = ref span54[1]; + num++; + ref QuestSequence reference90 = ref span2[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1054535u, new Vector3(0.503479f, -4.5634806E-08f, 6.7596436f), 1207) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + span3 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054535u, new Vector3(0.503479f, -4.5634806E-08f, 6.7596436f), 1207) { StopDistance = 7f }; obj85.Steps = list126; reference90 = obj85; - ref QuestSequence reference91 = ref span54[2]; + num++; + ref QuestSequence reference91 = ref span2[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -387283,24 +467012,30 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1054536u, new Vector3(-5.1728516f, -4.656613E-08f, 7.1869507f), 1207) + span3 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054536u, new Vector3(-5.1728516f, -4.656613E-08f, 7.1869507f), 1207) { StopDistance = 7f }; obj86.Steps = list127; reference91 = obj86; - ref QuestSequence reference92 = ref span54[3]; + num++; + ref QuestSequence reference92 = ref span2[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1054543u, new Vector3(-284.596f, 45.884224f, -812.55817f), 1191); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + span3 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054543u, new Vector3(-284.596f, 45.884224f, -812.55817f), 1191); obj87.Steps = list128; reference92 = obj87; - ref QuestSequence reference93 = ref span54[4]; + num++; + ref QuestSequence reference93 = ref span2[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -387308,12 +467043,16 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list129)[0]; + span3 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference94 = ref span3[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1054543u, new Vector3(-284.596f, 45.884224f, -812.55817f), 1191); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI103_05366_SYSTEM_000_081") @@ -387322,29 +467061,35 @@ public static class AssemblyQuestLoader reference94 = questStep7; obj88.Steps = list129; reference93 = obj88; - ref QuestSequence reference95 = ref span54[5]; + num++; + ref QuestSequence reference95 = ref span2[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list131)[0]; + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + span3 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference96 = ref span3[num2]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, null, new Vector3(219.38443f, 57.060833f, -661.6021f), 1191) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 18915u; + index3 = 1; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + Span span7 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span7[num3] = 18915u; obj90.KillEnemyDataIds = list132; reference96 = obj90; obj89.Steps = list131; reference95 = obj89; - ref QuestSequence reference97 = ref span54[6]; + num++; + ref QuestSequence reference97 = ref span2[num]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -387352,22 +467097,28 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1054544u, new Vector3(210.40662f, 57.66854f, -651.3619f), 1191); + span3 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054544u, new Vector3(210.40662f, 57.66854f, -651.3619f), 1191); obj91.Steps = list133; reference97 = obj91; - span54[7] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference98 = ref span54[8]; + num++; + ref QuestSequence reference98 = ref span2[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + span3 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171) { StopDistance = 7f }; @@ -387380,13 +467131,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list135); + index = 0; + span[index] = "liza"; questRoot18.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span55 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference99 = ref span55[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + span2 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference99 = ref span2[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -387394,24 +467148,30 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171); + span3 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171); obj93.Steps = list137; reference99 = obj93; - ref QuestSequence reference100 = ref span55[1]; + num++; + ref QuestSequence reference100 = ref span2[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + span3 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj94.Steps = list138; reference100 = obj94; - ref QuestSequence reference101 = ref span55[2]; + num++; + ref QuestSequence reference101 = ref span2[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -387419,8 +467179,9 @@ public static class AssemblyQuestLoader num2 = 3; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span56 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference102 = ref span56[0]; + span3 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference102 = ref span3[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1054549u, new Vector3(-303.8529f, 33.89061f, -546.7765f), 1191) { Fly = true @@ -387428,33 +467189,47 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span57 = CollectionsMarshal.AsSpan(list140); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list140; reference102 = obj96; - ref QuestStep reference103 = ref span56[1]; + index2++; + ref QuestStep reference103 = ref span3[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1054548u, new Vector3(-182.97095f, 28f, -570.0313f), 1191) { Fly = true }; - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span58 = CollectionsMarshal.AsSpan(list141); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + span5 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list141; reference103 = obj97; - ref QuestStep reference104 = ref span56[2]; + index2++; + ref QuestStep reference104 = ref span3[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1054547u, new Vector3(-111.49768f, 42.99968f, -658.7778f), 1191) { Fly = true @@ -387462,34 +467237,45 @@ public static class AssemblyQuestLoader num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span59 = CollectionsMarshal.AsSpan(list142); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list142; reference104 = obj98; obj95.Steps = list139; reference101 = obj95; - ref QuestSequence reference105 = ref span55[3]; + num++; + ref QuestSequence reference105 = ref span2[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list143)[0]; + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + span3 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference106 = ref span3[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) { Fly = true }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + span6 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI104_05367_Q1_000_000"), @@ -387499,11 +467285,13 @@ public static class AssemblyQuestLoader reference106 = obj100; obj99.Steps = list143; reference105 = obj99; - span55[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference107 = ref span55[5]; + num++; + ref QuestSequence reference107 = ref span2[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -387511,7 +467299,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054550u, new Vector3(-24.307678f, 38.806587f, -411.2459f), 1186) + span3 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054550u, new Vector3(-24.307678f, 38.806587f, -411.2459f), 1186) { StopDistance = 7f }; @@ -387524,27 +467314,33 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list146); + index = 0; + span[index] = "liza"; questRoot19.Author = list146; - num = 13; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span60 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference108 = ref span60[0]; + index = 13; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + span2 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference108 = ref span2[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054551u, new Vector3(-23.544739f, 38.806587f, -412.19202f), 1186) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + span3 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054551u, new Vector3(-23.544739f, 38.806587f, -412.19202f), 1186) { StopDistance = 7f }; obj102.Steps = list148; reference108 = obj102; - ref QuestSequence reference109 = ref span60[1]; + num++; + ref QuestSequence reference109 = ref span2[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -387552,12 +467348,16 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list149)[0]; + span3 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference110 = ref span3[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1054936u, new Vector3(-57.41974f, 42.8066f, -546.7765f), 1186); num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_000_061") @@ -387566,24 +467366,30 @@ public static class AssemblyQuestLoader reference110 = questStep8; obj103.Steps = list149; reference109 = obj103; - span60[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference111 = ref span60[3]; + num++; + ref QuestSequence reference111 = ref span2[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + span3 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference112 = ref span3[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014877u, new Vector3(-53.76658f, 0.4967778f, 10.78857f), 1299); - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + span6 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_000_117") @@ -387592,7 +467398,8 @@ public static class AssemblyQuestLoader reference112 = questStep9; obj104.Steps = list151; reference111 = obj104; - ref QuestSequence reference113 = ref span60[4]; + num++; + ref QuestSequence reference113 = ref span2[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -387600,27 +467407,33 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.UseItem, 2014879u, new Vector3(-31.18711f, 1.386986f, 14.38922f), 1299) + span3 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2014879u, new Vector3(-31.18711f, 1.386986f, 14.38922f), 1299) { ItemId = 2003767u }; obj105.Steps = list153; reference113 = obj105; - ref QuestSequence reference114 = ref span60[5]; + num++; + ref QuestSequence reference114 = ref span2[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.UseItem, 2014880u, new Vector3(5.563949f, 1.29885f, -7.714191f), 1299) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + span3 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.UseItem, 2014880u, new Vector3(5.563949f, 1.29885f, -7.714191f), 1299) { ItemId = 2003789u }; obj106.Steps = list154; reference114 = obj106; - ref QuestSequence reference115 = ref span60[6]; + num++; + ref QuestSequence reference115 = ref span2[num]; QuestSequence obj107 = new QuestSequence { Sequence = 6 @@ -387628,43 +467441,57 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1054888u, new Vector3(-9.079163f, 0.9997301f, -45.731323f), 1299); + span3 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054888u, new Vector3(-9.079163f, 0.9997301f, -45.731323f), 1299); obj107.Steps = list155; reference115 = obj107; - ref QuestSequence reference116 = ref span60[7]; + num++; + ref QuestSequence reference116 = ref span2[num]; QuestSequence obj108 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list156)[0]; + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + span3 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference117 = ref span3[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014883u, new Vector3(6.94281f, 1.480042f, -53.72705f), 1299); num3 = 1; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_120_250") }; questStep10.DialogueChoices = list157; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span61 = CollectionsMarshal.AsSpan(list158); - span61[0] = 0u; - span61[1] = 0u; - span61[2] = 4u; - span61[3] = 10u; - span61[4] = 8u; - span61[5] = 11u; + index3 = 6; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + span7 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span7[num3] = 0u; + num3++; + span7[num3] = 0u; + num3++; + span7[num3] = 4u; + num3++; + span7[num3] = 10u; + num3++; + span7[num3] = 8u; + num3++; + span7[num3] = 11u; questStep10.PointMenuChoices = list158; reference117 = questStep10; obj108.Steps = list156; reference116 = obj108; - ref QuestSequence reference118 = ref span60[8]; + num++; + ref QuestSequence reference118 = ref span2[num]; QuestSequence obj109 = new QuestSequence { Sequence = 8 @@ -387672,24 +467499,30 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.UseItem, 2014881u, new Vector3(7.765003f, 1.296952f, 5.581435f), 1299) + span3 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2014881u, new Vector3(7.765003f, 1.296952f, 5.581435f), 1299) { ItemId = 2003768u }; obj109.Steps = list159; reference118 = obj109; - ref QuestSequence reference119 = ref span60[9]; + num++; + ref QuestSequence reference119 = ref span2[num]; QuestSequence obj110 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1054901u, new Vector3(15.6710205f, -1.036562E-06f, 28.244385f), 1299); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + span3 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054901u, new Vector3(15.6710205f, -1.036562E-06f, 28.244385f), 1299); obj110.Steps = list160; reference119 = obj110; - ref QuestSequence reference120 = ref span60[10]; + num++; + ref QuestSequence reference120 = ref span2[num]; QuestSequence obj111 = new QuestSequence { Sequence = 10 @@ -387697,24 +467530,30 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1054907u, new Vector3(43.289795f, 0.30650482f, 12.436096f), 1299); + span3 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054907u, new Vector3(43.289795f, 0.30650482f, 12.436096f), 1299); obj111.Steps = list161; reference120 = obj111; - ref QuestSequence reference121 = ref span60[11]; + num++; + ref QuestSequence reference121 = ref span2[num]; QuestSequence obj112 = new QuestSequence { Sequence = 11 }; - num2 = 4; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span62 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference122 = ref span62[0]; + index2 = 4; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + span3 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference122 = ref span3[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2014884u, new Vector3(44.99468f, 0.7551205f, 18.96421f), 1299); num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387722,12 +467561,15 @@ public static class AssemblyQuestLoader }; questStep11.DialogueChoices = list163; reference122 = questStep11; - ref QuestStep reference123 = ref span62[1]; + num2++; + ref QuestStep reference123 = ref span3[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014885u, new Vector3(50.98755f, 0.7551f, 19.03446f), 1299); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + span6 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387735,12 +467577,15 @@ public static class AssemblyQuestLoader }; questStep12.DialogueChoices = list164; reference123 = questStep12; - ref QuestStep reference124 = ref span62[2]; + num2++; + ref QuestStep reference124 = ref span3[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014887u, new Vector3(51.00287f, 0.7551f, 24.9874f), 1299); num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387748,12 +467593,15 @@ public static class AssemblyQuestLoader }; questStep13.DialogueChoices = list165; reference124 = questStep13; - ref QuestStep reference125 = ref span62[3]; + num2++; + ref QuestStep reference125 = ref span3[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014886u, new Vector3(44.9988f, 0.7551f, 25.03204f), 1299); - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + span6 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387763,7 +467611,8 @@ public static class AssemblyQuestLoader reference125 = questStep14; obj112.Steps = list162; reference121 = obj112; - ref QuestSequence reference126 = ref span60[12]; + num++; + ref QuestSequence reference126 = ref span2[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -387771,7 +467620,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); + span3 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); obj113.Steps = list167; reference126 = obj113; questRoot19.QuestSequence = list147; @@ -387781,24 +467632,30 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list168); + index = 0; + span[index] = "liza"; questRoot20.Author = list168; - num = 10; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span63 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference127 = ref span63[0]; + index = 10; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + span2 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference127 = ref span2[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + span3 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); obj114.Steps = list170; reference127 = obj114; - ref QuestSequence reference128 = ref span63[1]; + num++; + ref QuestSequence reference128 = ref span2[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -387806,21 +467663,27 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 2014889u, new Vector3(-6.637756f, 0.9917603f, 32.45593f), 1299); + span3 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014889u, new Vector3(-6.637756f, 0.9917603f, 32.45593f), 1299); obj115.Steps = list171; reference128 = obj115; - ref QuestSequence reference129 = ref span63[2]; + num++; + ref QuestSequence reference129 = ref span2[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1054918u, new Vector3(4.0740967f, 1.1999817f, 41.82495f), 1299); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + span3 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054918u, new Vector3(4.0740967f, 1.1999817f, 41.82495f), 1299); obj116.Steps = list172; reference129 = obj116; - ref QuestSequence reference130 = ref span63[3]; + num++; + ref QuestSequence reference130 = ref span2[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -387828,24 +467691,30 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.UseItem, 2014909u, new Vector3(5.5639f, 1.2989f, -7.7142f), 1299) + span3 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.UseItem, 2014909u, new Vector3(5.5639f, 1.2989f, -7.7142f), 1299) { ItemId = 2003769u }; obj117.Steps = list173; reference130 = obj117; - ref QuestSequence reference131 = ref span63[4]; + num++; + ref QuestSequence reference131 = ref span2[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + span3 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); obj118.Steps = list174; reference131 = obj118; - ref QuestSequence reference132 = ref span63[5]; + num++; + ref QuestSequence reference132 = ref span2[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -387853,77 +467722,109 @@ public static class AssemblyQuestLoader num2 = 4; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span64 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference133 = ref span64[0]; + span3 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference133 = ref span3[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014913u, new Vector3(48.28509f, 0.7955156f, -15.36493f), 1299); num3 = 6; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span65 = CollectionsMarshal.AsSpan(list176); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list176; reference133 = questStep15; - ref QuestStep reference134 = ref span64[1]; + index2++; + ref QuestStep reference134 = ref span3[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2014891u, new Vector3(45.64126f, 0.9739f, -23.77144f), 1299); - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span66 = CollectionsMarshal.AsSpan(list177); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + span5 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list177; reference134 = questStep16; - ref QuestStep reference135 = ref span64[2]; + index2++; + ref QuestStep reference135 = ref span3[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2014890u, new Vector3(32.00146f, 1.173118f, -22.75444f), 1299); num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span67 = CollectionsMarshal.AsSpan(list178); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list178; reference135 = questStep17; - ref QuestStep reference136 = ref span64[3]; + index2++; + ref QuestStep reference136 = ref span3[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2014892u, new Vector3(32.07058f, 0.8092833f, -9.735413f), 1299); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span68 = CollectionsMarshal.AsSpan(list179); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + span5 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list179; reference136 = questStep18; obj119.Steps = list175; reference132 = obj119; - ref QuestSequence reference137 = ref span63[6]; + num++; + ref QuestSequence reference137 = ref span2[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + span3 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); obj120.Steps = list180; reference137 = obj120; - ref QuestSequence reference138 = ref span63[7]; + num++; + ref QuestSequence reference138 = ref span2[num]; QuestSequence obj121 = new QuestSequence { Sequence = 7 @@ -387931,8 +467832,9 @@ public static class AssemblyQuestLoader num2 = 4; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span69 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference139 = ref span69[0]; + span3 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + ref QuestStep reference139 = ref span3[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1054935u, new Vector3(47.287598f, -8.0940923E-13f, -21.561035f), 1299) { SkipConditions = new SkipConditions @@ -387946,18 +467848,26 @@ public static class AssemblyQuestLoader num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span70 = CollectionsMarshal.AsSpan(list182); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span70[4] = null; - span70[5] = null; + span5 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj122.CompletionQuestVariablesFlags = list182; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + index3 = 1; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + span6 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q5_000_000"), @@ -387965,29 +467875,38 @@ public static class AssemblyQuestLoader }; obj122.DialogueChoices = list183; reference139 = obj122; - ref QuestStep reference140 = ref span69[1]; + index2++; + ref QuestStep reference140 = ref span3[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014894u, new Vector3(39.08986f, 1.296936f, -24.0025f), 1299); num3 = 6; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span71 = CollectionsMarshal.AsSpan(list184); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span71[4] = null; - span71[5] = null; + span5 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; questStep19.CompletionQuestVariablesFlags = list184; - num3 = 2; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span72 = CollectionsMarshal.AsSpan(list185); - span72[0] = new DialogueChoice + index3 = 2; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + span6 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI106_05369_SYSTEM_000_350") }; - span72[1] = new DialogueChoice + num3++; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q7_000_000"), @@ -387997,12 +467916,15 @@ public static class AssemblyQuestLoader num3 = 2; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span73 = CollectionsMarshal.AsSpan(list186); - span73[0] = 3u; - span73[1] = 4u; + span7 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span7[index3] = 3u; + index3++; + span7[index3] = 4u; questStep19.PointMenuChoices = list186; reference140 = questStep19; - ref QuestStep reference141 = ref span69[2]; + index2++; + ref QuestStep reference141 = ref span3[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1054931u, new Vector3(38.223755f, 0f, -13.443237f), 1299) { SkipConditions = new SkipConditions @@ -388013,21 +467935,29 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - Span span74 = CollectionsMarshal.AsSpan(list187); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span74[4] = null; - span74[5] = null; + index3 = 6; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + span5 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; obj123.CompletionQuestVariablesFlags = list187; num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q6_000_000"), @@ -388035,25 +467965,29 @@ public static class AssemblyQuestLoader }; obj123.DialogueChoices = list188; reference141 = obj123; - ref QuestStep reference142 = ref span69[3]; + index2++; + ref QuestStep reference142 = ref span3[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2014893u, new Vector3(43.16655f, 1.244391f, -18.57025f), 1299); - num3 = 3; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span75 = CollectionsMarshal.AsSpan(list189); - span75[0] = new DialogueChoice + index3 = 3; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + span6 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q8_000_000"), Answer = new ExcelRef("TEXT_KINGMI106_05369_A8_000_005") }; - span75[1] = new DialogueChoice + num3++; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q9_000_000"), Answer = new ExcelRef("TEXT_KINGMI106_05369_A9_000_006") }; - span75[2] = new DialogueChoice + num3++; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q10_000_000"), @@ -388063,18 +467997,22 @@ public static class AssemblyQuestLoader reference142 = questStep20; obj121.Steps = list181; reference138 = obj121; - ref QuestSequence reference143 = ref span63[8]; + num++; + ref QuestSequence reference143 = ref span2[num]; QuestSequence obj124 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1054938u, new Vector3(47.837036f, 0f, -10.025269f), 1299); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + span3 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054938u, new Vector3(47.837036f, 0f, -10.025269f), 1299); obj124.Steps = list190; reference143 = obj124; - ref QuestSequence reference144 = ref span63[9]; + num++; + ref QuestSequence reference144 = ref span2[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -388082,7 +468020,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054560u, new Vector3(-5.1118164f, -4.656613E-08f, 7.095398f), 1207); + span3 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054560u, new Vector3(-5.1118164f, -4.656613E-08f, 7.095398f), 1207); obj125.Steps = list191; reference144 = obj125; questRoot20.QuestSequence = list169; @@ -388092,24 +468032,30 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list192); + index = 0; + span[index] = "liza"; questRoot21.Author = list192; - num = 4; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span76 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference145 = ref span76[0]; + index = 4; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + span2 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference145 = ref span2[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054555u, new Vector3(-4.1047363f, -7.7714425E-08f, 9.536865f), 1207); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + span3 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054555u, new Vector3(-4.1047363f, -7.7714425E-08f, 9.536865f), 1207); obj126.Steps = list194; reference145 = obj126; - ref QuestSequence reference146 = ref span76[1]; + num++; + ref QuestSequence reference146 = ref span2[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -388117,12 +468063,14 @@ public static class AssemblyQuestLoader num2 = 2; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span77 = CollectionsMarshal.AsSpan(list195); - span77[0] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) + span3 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; - span77[1] = new QuestStep(EInteractionType.Interact, 1054561u, new Vector3(20.58435f, 38.056595f, -388.20483f), 1186) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054561u, new Vector3(20.58435f, 38.056595f, -388.20483f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -388132,18 +468080,22 @@ public static class AssemblyQuestLoader }; obj127.Steps = list195; reference146 = obj127; - ref QuestSequence reference147 = ref span76[2]; + num++; + ref QuestSequence reference147 = ref span2[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1054565u, new Vector3(18.539673f, 38.0566f, -387.16718f), 1186); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + span3 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054565u, new Vector3(18.539673f, 38.0566f, -387.16718f), 1186); obj128.Steps = list196; reference147 = obj128; - ref QuestSequence reference148 = ref span76[3]; + num++; + ref QuestSequence reference148 = ref span2[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -388151,7 +468103,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192) + span3 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; @@ -388164,24 +468118,30 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list198); + index = 0; + span[index] = "liza"; questRoot22.Author = list198; - num = 8; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span78 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference149 = ref span78[0]; + index = 8; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + span2 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference149 = ref span2[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + span3 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192); obj130.Steps = list200; reference149 = obj130; - ref QuestSequence reference150 = ref span78[1]; + num++; + ref QuestSequence reference150 = ref span2[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -388189,21 +468149,26 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1054576u, new Vector3(-0.16790771f, 50.12495f, 364.8584f), 1192) + span3 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054576u, new Vector3(-0.16790771f, 50.12495f, 364.8584f), 1192) { Fly = true }; obj131.Steps = list201; reference150 = obj131; - ref QuestSequence reference151 = ref span78[2]; + num++; + ref QuestSequence reference151 = ref span2[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + span3 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -388212,11 +468177,13 @@ public static class AssemblyQuestLoader }; obj132.Steps = list202; reference151 = obj132; - span78[3] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference152 = ref span78[4]; + num++; + ref QuestSequence reference152 = ref span2[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -388224,7 +468191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Duty, null, null, 1312) + span3 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1312) { DutyOptions = new DutyOptions { @@ -388233,25 +468202,30 @@ public static class AssemblyQuestLoader }; obj133.Steps = list203; reference152 = obj133; - span78[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference153 = ref span78[6]; + num++; + ref QuestSequence reference153 = ref span2[num]; QuestSequence obj134 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1054597u, new Vector3(5.8136597f, 50.12495f, 369.80237f), 1192) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + span3 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054597u, new Vector3(5.8136597f, 50.12495f, 369.80237f), 1192) { StopDistance = 5f }; obj134.Steps = list204; reference153 = obj134; - ref QuestSequence reference154 = ref span78[7]; + num++; + ref QuestSequence reference154 = ref span2[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -388259,7 +468233,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191) + span3 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts @@ -388273,24 +468249,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list206); + index = 0; + span[index] = "liza"; questRoot23.Author = list206; - num = 6; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span79 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference155 = ref span79[0]; + index = 6; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + span2 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference155 = ref span2[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + span3 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191); obj136.Steps = list208; reference155 = obj136; - ref QuestSequence reference156 = ref span79[1]; + num++; + ref QuestSequence reference156 = ref span2[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -388298,27 +468280,33 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1055852u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191) + span3 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1055852u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191) { Fly = true }; obj137.Steps = list209; reference156 = obj137; - ref QuestSequence reference157 = ref span79[2]; + num++; + ref QuestSequence reference157 = ref span2[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.203068f, -486.6255f), 1191) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + span3 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.203068f, -486.6255f), 1191) { Fly = true }; obj138.Steps = list210; reference157 = obj138; - ref QuestSequence reference158 = ref span79[3]; + num++; + ref QuestSequence reference158 = ref span2[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -388326,27 +468314,33 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1054612u, new Vector3(-670.95447f, 52.96887f, -203.35706f), 1191) + span3 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054612u, new Vector3(-670.95447f, 52.96887f, -203.35706f), 1191) { Fly = true }; obj139.Steps = list211; reference158 = obj139; - ref QuestSequence reference159 = ref span79[4]; + num++; + ref QuestSequence reference159 = ref span2[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1054614u, new Vector3(-554.4366f, 44.324562f, -159.5636f), 1191) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + span3 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054614u, new Vector3(-554.4366f, 44.324562f, -159.5636f), 1191) { StopDistance = 7f }; obj140.Steps = list212; reference159 = obj140; - ref QuestSequence reference160 = ref span79[5]; + num++; + ref QuestSequence reference160 = ref span2[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -388354,8 +468348,9 @@ public static class AssemblyQuestLoader num2 = 2; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span80 = CollectionsMarshal.AsSpan(list213); - span80[0] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + span3 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -388365,7 +468360,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); + index2++; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); obj141.Steps = list213; reference160 = obj141; questRoot23.QuestSequence = list207; @@ -388375,24 +468371,30 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + span = CollectionsMarshal.AsSpan(list214); + index = 0; + span[index] = "liza"; questRoot24.Author = list214; - num = 5; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span81 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference161 = ref span81[0]; + index = 5; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + span2 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference161 = ref span2[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + span3 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); obj142.Steps = list216; reference161 = obj142; - ref QuestSequence reference162 = ref span81[1]; + num++; + ref QuestSequence reference162 = ref span2[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -388400,12 +468402,16 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list217)[0]; + span3 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + ref QuestStep reference163 = ref span3[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); num3 = 1; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI110_05373_SYSTEM_000_040") @@ -388414,21 +468420,25 @@ public static class AssemblyQuestLoader reference163 = questStep21; obj143.Steps = list217; reference162 = obj143; - ref QuestSequence reference164 = ref span81[2]; + num++; + ref QuestSequence reference164 = ref span2[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1054618u, new Vector3(1.296936f, 50.12499f, 704.7378f), 1192) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + span3 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054618u, new Vector3(1.296936f, 50.12499f, 704.7378f), 1192) { StopDistance = 7f }; obj144.Steps = list219; reference164 = obj144; - ref QuestSequence reference165 = ref span81[3]; + num++; + ref QuestSequence reference165 = ref span2[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 @@ -388436,7 +468446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1054624u, new Vector3(-105.638245f, 100.04267f, -202.47198f), 1185) + span3 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054624u, new Vector3(-105.638245f, 100.04267f, -202.47198f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -388447,15 +468459,18 @@ public static class AssemblyQuestLoader }; obj145.Steps = list220; reference165 = obj145; - ref QuestSequence reference166 = ref span81[4]; + num++; + ref QuestSequence reference166 = ref span2[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054628u, new Vector3(-23.941406f, 38.0566f, -389.0288f), 1186) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + span3 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054628u, new Vector3(-23.941406f, 38.0566f, -389.0288f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -388473,13 +468488,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list222); + index = 0; + span[index] = "WigglyMuffin"; questRoot25.Author = list222; - num = 13; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span82 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference167 = ref span82[0]; + index = 13; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + span2 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference167 = ref span2[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -388487,7 +468505,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) + span3 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -388505,15 +468525,18 @@ public static class AssemblyQuestLoader }; obj147.Steps = list224; reference167 = obj147; - ref QuestSequence reference168 = ref span82[1]; + num++; + ref QuestSequence reference168 = ref span2[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 2014821u, new Vector3(342.03088f, -1.3275757f, 438.4984f), 1190) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + span3 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014821u, new Vector3(342.03088f, -1.3275757f, 438.4984f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, SkipConditions = new SkipConditions @@ -388531,7 +468554,8 @@ public static class AssemblyQuestLoader }; obj148.Steps = list225; reference168 = obj148; - ref QuestSequence reference169 = ref span82[2]; + num++; + ref QuestSequence reference169 = ref span2[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -388539,24 +468563,30 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1054466u, new Vector3(420.37073f, -0.65818214f, 390.67664f), 1190); + span3 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054466u, new Vector3(420.37073f, -0.65818214f, 390.67664f), 1190); obj149.Steps = list226; reference169 = obj149; - ref QuestSequence reference170 = ref span82[3]; + num++; + ref QuestSequence reference170 = ref span2[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2014823u, new Vector3(478.96545f, 4.7455444f, 237.53711f), 1190) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + span3 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014823u, new Vector3(478.96545f, 4.7455444f, 237.53711f), 1190) { Fly = true }; obj150.Steps = list227; reference170 = obj150; - ref QuestSequence reference171 = ref span82[4]; + num++; + ref QuestSequence reference171 = ref span2[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -388564,27 +468594,33 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2014824u, new Vector3(349.813f, 7.1869507f, 220.78271f), 1190) + span3 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 2014824u, new Vector3(349.813f, 7.1869507f, 220.78271f), 1190) { Fly = true }; obj151.Steps = list228; reference171 = obj151; - ref QuestSequence reference172 = ref span82[5]; + num++; + ref QuestSequence reference172 = ref span2[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2014822u, new Vector3(402.42603f, -11.276428f, 40.604248f), 1190) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + span3 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014822u, new Vector3(402.42603f, -11.276428f, 40.604248f), 1190) { Fly = true }; obj152.Steps = list229; reference172 = obj152; - ref QuestSequence reference173 = ref span82[6]; + num++; + ref QuestSequence reference173 = ref span2[num]; QuestSequence obj153 = new QuestSequence { Sequence = 6 @@ -388592,12 +468628,16 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list230)[0]; + span3 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + ref QuestStep reference174 = ref span3[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1054467u, new Vector3(254.38306f, -7.9001174f, 465.17126f), 1190); - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice + index3 = 1; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + span6 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGYX901_05374_SYSTEM_000_301") @@ -388606,20 +468646,25 @@ public static class AssemblyQuestLoader reference174 = questStep22; obj153.Steps = list230; reference173 = obj153; - ref QuestSequence reference175 = ref span82[7]; + num++; + ref QuestSequence reference175 = ref span2[num]; QuestSequence obj154 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list232)[0]; + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + span3 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference176 = ref span3[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1054469u, new Vector3(-215.04541f, 45.13145f, -756.89325f), 1190); num3 = 1; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - CollectionsMarshal.AsSpan(list233)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGYX901_05374_SYSTEM_200_402") @@ -388628,11 +468673,13 @@ public static class AssemblyQuestLoader reference176 = questStep23; obj154.Steps = list232; reference175 = obj154; - span82[8] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 8 }; - ref QuestSequence reference177 = ref span82[9]; + num++; + ref QuestSequence reference177 = ref span2[num]; QuestSequence obj155 = new QuestSequence { Sequence = 9 @@ -388640,21 +468687,27 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); + span3 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); obj155.Steps = list234; reference177 = obj155; - ref QuestSequence reference178 = ref span82[10]; + num++; + ref QuestSequence reference178 = ref span2[num]; QuestSequence obj156 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + span3 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); obj156.Steps = list235; reference178 = obj156; - ref QuestSequence reference179 = ref span82[11]; + num++; + ref QuestSequence reference179 = ref span2[num]; QuestSequence obj157 = new QuestSequence { Sequence = 11 @@ -388662,7 +468715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Duty, null, null, 1301) + span3 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Duty, null, null, 1301) { DutyOptions = new DutyOptions { @@ -388671,15 +468726,18 @@ public static class AssemblyQuestLoader }; obj157.Steps = list236; reference179 = obj157; - ref QuestSequence reference180 = ref span82[12]; + num++; + ref QuestSequence reference180 = ref span2[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + span3 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -388704,15 +468762,18 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list238); + index = 0; + span[index] = "WigglyMuffin"; questRoot26.Author = list238; questRoot26.IsSeasonalQuest = true; questRoot26.SeasonalQuestExpiry = new DateTime(2025, 11, 4, 14, 59, 0, DateTimeKind.Utc); - num = 9; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span83 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference181 = ref span83[0]; + index = 9; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + span2 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference181 = ref span2[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -388720,7 +468781,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list240)[0]; + span3 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + ref QuestStep reference182 = ref span3[index2]; QuestStep obj160 = new QuestStep(EInteractionType.AcceptQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -388732,12 +468795,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span84 = CollectionsMarshal.AsSpan(list241); - span84[0] = 132; - span84[1] = 133; + index3 = 2; + List list241 = new List(index3); + CollectionsMarshal.SetCount(list241, index3); + span4 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + span4[num3] = 132; + num3++; + span4[num3] = 133; skipAetheryteCondition.InTerritory = list241; skipConditions11.AetheryteShortcutIf = skipAetheryteCondition; skipConditions11.AethernetShortcutIf = new SkipAetheryteCondition @@ -388748,20 +468813,25 @@ public static class AssemblyQuestLoader reference182 = obj160; obj159.Steps = list240; reference181 = obj159; - ref QuestSequence reference183 = ref span83[1]; + num++; + ref QuestSequence reference183 = ref span2[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list242)[0]; + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + span3 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + ref QuestStep reference184 = ref span3[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1054484u, new Vector3(-55.680176f, 6.2813034f, -106.004456f), 133); num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESHLX101_05375_EVENTAREA_WARP_000_031") @@ -388770,7 +468840,8 @@ public static class AssemblyQuestLoader reference184 = questStep24; obj161.Steps = list242; reference183 = obj161; - ref QuestSequence reference185 = ref span83[2]; + num++; + ref QuestSequence reference185 = ref span2[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 @@ -388778,36 +468849,48 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + span3 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj162.Steps = list244; reference185 = obj162; - ref QuestSequence reference186 = ref span83[3]; + num++; + ref QuestSequence reference186 = ref span2[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span85 = CollectionsMarshal.AsSpan(list245); - ref QuestStep reference187 = ref span85[0]; + index2 = 2; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + span3 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + ref QuestStep reference187 = ref span3[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1054486u, new Vector3(4.2266846f, 17f, 11.947815f), 1305); - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span86 = CollectionsMarshal.AsSpan(list246); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list246 = new List(index3); + CollectionsMarshal.SetCount(list246, index3); + span5 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list246; reference187 = questStep25; - span85[1] = new QuestStep(EInteractionType.Interact, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305); obj163.Steps = list245; reference186 = obj163; - ref QuestSequence reference188 = ref span83[4]; + num++; + ref QuestSequence reference188 = ref span2[num]; QuestSequence obj164 = new QuestSequence { Sequence = 4 @@ -388815,8 +468898,9 @@ public static class AssemblyQuestLoader num2 = 3; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span87 = CollectionsMarshal.AsSpan(list247); - ref QuestStep reference189 = ref span87[0]; + span3 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + ref QuestStep reference189 = ref span3[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054488u, new Vector3(9.109558f, 0f, 100.02283f), 1305) { Mount = true @@ -388824,53 +468908,71 @@ public static class AssemblyQuestLoader num3 = 6; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - Span span88 = CollectionsMarshal.AsSpan(list248); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj165.CompletionQuestVariablesFlags = list248; reference189 = obj165; - ref QuestStep reference190 = ref span87[1]; + index2++; + ref QuestStep reference190 = ref span3[index2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1054487u, new Vector3(-43.86969f, 0f, -5.8442383f), 1305) { Mount = true }; - num3 = 6; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span89 = CollectionsMarshal.AsSpan(list249); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + span5 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); obj166.CompletionQuestVariablesFlags = list249; reference190 = obj166; - span87[2] = new QuestStep(EInteractionType.Interact, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) { Mount = true }; obj164.Steps = list247; reference188 = obj164; - ref QuestSequence reference191 = ref span83[5]; + num++; + ref QuestSequence reference191 = ref span2[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + span3 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305) { Mount = true }; obj167.Steps = list250; reference191 = obj167; - ref QuestSequence reference192 = ref span83[6]; + num++; + ref QuestSequence reference192 = ref span2[num]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -388878,7 +468980,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list251)[0]; + span3 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + ref QuestStep reference193 = ref span3[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -388893,9 +468997,11 @@ public static class AssemblyQuestLoader num3 = 2; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span90 = CollectionsMarshal.AsSpan(list252); - span90[0] = 132; - span90[1] = 133; + span4 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span4[index3] = 132; + index3++; + span4[index3] = 133; skipAetheryteCondition2.InTerritory = list252; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions12.AethernetShortcutIf = new SkipAetheryteCondition @@ -388906,30 +469012,39 @@ public static class AssemblyQuestLoader reference193 = obj169; obj168.Steps = list251; reference192 = obj168; - ref QuestSequence reference194 = ref span83[7]; + num++; + ref QuestSequence reference194 = ref span2[num]; QuestSequence obj170 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span91 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference195 = ref span91[0]; + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + span3 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref QuestStep reference195 = ref span3[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1054477u, new Vector3(-52.903076f, 6.8124895f, -123.39978f), 133); - num3 = 6; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - Span span92 = CollectionsMarshal.AsSpan(list254); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list254 = new List(index3); + CollectionsMarshal.SetCount(list254, index3); + span5 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list254; reference195 = questStep26; - ref QuestStep reference196 = ref span91[1]; + num2++; + ref QuestStep reference196 = ref span3[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 1054491u, new Vector3(-317.21985f, 7.3121967f, -200.763f), 133) { AethernetShortcut = new AethernetShortcut @@ -388941,18 +469056,25 @@ public static class AssemblyQuestLoader num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span93 = CollectionsMarshal.AsSpan(list255); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = null; + span5 = CollectionsMarshal.AsSpan(list255); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; obj171.CompletionQuestVariablesFlags = list255; reference196 = obj171; obj170.Steps = list253; reference194 = obj170; - ref QuestSequence reference197 = ref span83[8]; + num++; + ref QuestSequence reference197 = ref span2[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -388960,7 +469082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) + span3 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AethernetShortcut = new AethernetShortcut { @@ -388978,23 +469102,28 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list257); + index = 0; + span[index] = "WigglyMuffin"; questRoot27.Author = list257; questRoot27.IsSeasonalQuest = true; questRoot27.SeasonalQuestExpiry = new DateTime(2025, 11, 4, 14, 59, 0, DateTimeKind.Utc); - num = 7; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span94 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference198 = ref span94[0]; + index = 7; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + span2 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference198 = ref span2[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list259)[0]; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + span3 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference199 = ref span3[num2]; QuestStep obj174 = new QuestStep(EInteractionType.AcceptQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -389006,12 +469135,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 2; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span95 = CollectionsMarshal.AsSpan(list260); - span95[0] = 132; - span95[1] = 133; + index3 = 2; + List list260 = new List(index3); + CollectionsMarshal.SetCount(list260, index3); + span4 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span4[num3] = 132; + num3++; + span4[num3] = 133; skipAetheryteCondition3.InTerritory = list260; skipConditions13.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions13.AethernetShortcutIf = new SkipAetheryteCondition @@ -389022,7 +469153,8 @@ public static class AssemblyQuestLoader reference199 = obj174; obj173.Steps = list259; reference198 = obj173; - ref QuestSequence reference200 = ref span94[1]; + num++; + ref QuestSequence reference200 = ref span2[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -389030,43 +469162,53 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span96 = CollectionsMarshal.AsSpan(list261); - ref QuestStep reference201 = ref span96[0]; + span3 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + ref QuestStep reference201 = ref span3[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1054484u, new Vector3(-55.680176f, 6.2813034f, -106.004456f), 133); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); num3 = 1; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 1305; + span4 = CollectionsMarshal.AsSpan(list262); + index3 = 0; + span4[index3] = 1305; skipStepConditions11.InTerritory = list262; skipConditions14.StepIf = skipStepConditions11; questStep27.SkipConditions = skipConditions14; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + index3 = 1; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + span6 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span6[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESHLX102_05376_EVENTAREA_WARP_110_005") }; questStep27.DialogueChoices = list263; reference201 = questStep27; - span96[1] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj175.Steps = list261; reference200 = obj175; - ref QuestSequence reference202 = ref span94[2]; + num++; + ref QuestSequence reference202 = ref span2[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + span3 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj176.Steps = list264; reference202 = obj176; - ref QuestSequence reference203 = ref span94[3]; + num++; + ref QuestSequence reference203 = ref span2[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -389074,8 +469216,9 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span97 = CollectionsMarshal.AsSpan(list265); - ref QuestStep reference204 = ref span97[0]; + span3 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + ref QuestStep reference204 = ref span3[index2]; QuestStep obj178 = new QuestStep(EInteractionType.Action, 1054486u, new Vector3(4.2266846f, 17f, 11.947815f), 1305) { Action = EAction.TreatersTrick @@ -389083,48 +469226,64 @@ public static class AssemblyQuestLoader num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span98 = CollectionsMarshal.AsSpan(list266); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); obj178.CompletionQuestVariablesFlags = list266; reference204 = obj178; - span97[1] = new QuestStep(EInteractionType.Action, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305) + index2++; + span3[index2] = new QuestStep(EInteractionType.Action, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305) { Action = EAction.TrickstersTreat }; obj177.Steps = list265; reference203 = obj177; - ref QuestSequence reference205 = ref span94[4]; + num++; + ref QuestSequence reference205 = ref span2[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span99 = CollectionsMarshal.AsSpan(list267); - ref QuestStep reference206 = ref span99[0]; + index2 = 3; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + span3 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + ref QuestStep reference206 = ref span3[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Action, 1054488u, new Vector3(9.109558f, 0f, 100.02283f), 1305) { Action = EAction.TreatersTrick }; - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span100 = CollectionsMarshal.AsSpan(list268); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + span5 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list268; reference206 = obj180; - ref QuestStep reference207 = ref span99[1]; + num2++; + ref QuestStep reference207 = ref span3[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Action, 1054487u, new Vector3(-43.86969f, 0f, -5.8442383f), 1305) { Action = EAction.TreatersTrick @@ -389132,22 +469291,30 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span101 = CollectionsMarshal.AsSpan(list269); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); obj181.CompletionQuestVariablesFlags = list269; reference207 = obj181; - span99[2] = new QuestStep(EInteractionType.Action, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) + num2++; + span3[num2] = new QuestStep(EInteractionType.Action, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) { Action = EAction.TrickstersTreat }; obj179.Steps = list267; reference205 = obj179; - ref QuestSequence reference208 = ref span94[5]; + num++; + ref QuestSequence reference208 = ref span2[num]; QuestSequence obj182 = new QuestSequence { Sequence = 5 @@ -389155,26 +469322,31 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span102 = CollectionsMarshal.AsSpan(list270); - span102[0] = new QuestStep(EInteractionType.WalkTo, 1054794u, new Vector3(-50.278336f, 0f, -36.070293f), 1305) + span3 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.WalkTo, 1054794u, new Vector3(-50.278336f, 0f, -36.070293f), 1305) { Mount = false }; - span102[1] = new QuestStep(EInteractionType.Interact, 1054794u, new Vector3(72.129395f, 0f, -0.5340576f), 1305) + index2++; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054794u, new Vector3(72.129395f, 0f, -0.5340576f), 1305) { Mount = true }; obj182.Steps = list270; reference208 = obj182; - ref QuestSequence reference209 = ref span94[6]; + num++; + ref QuestSequence reference209 = ref span2[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list271)[0]; + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + span3 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + ref QuestStep reference210 = ref span3[num2]; QuestStep obj184 = new QuestStep(EInteractionType.CompleteQuest, 1054496u, new Vector3(-49.485046f, 6.4999943f, -90.836975f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -389186,12 +469358,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span103 = CollectionsMarshal.AsSpan(list272); - span103[0] = 132; - span103[1] = 133; + index3 = 2; + List list272 = new List(index3); + CollectionsMarshal.SetCount(list272, index3); + span4 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span4[num3] = 132; + num3++; + span4[num3] = 133; skipAetheryteCondition4.InTerritory = list272; skipConditions15.AetheryteShortcutIf = skipAetheryteCondition4; skipConditions15.AethernetShortcutIf = new SkipAetheryteCondition @@ -389209,13 +469383,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list273); + index = 0; + span[index] = "WigglyMuffin"; questRoot28.Author = list273; - num = 8; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span104 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference211 = ref span104[0]; + index = 8; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + span2 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference211 = ref span2[num]; QuestSequence obj185 = new QuestSequence { Sequence = 0 @@ -389223,7 +469400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) + span3 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -389241,17 +469420,20 @@ public static class AssemblyQuestLoader }; obj185.Steps = list275; reference211 = obj185; - ref QuestSequence reference212 = ref span104[1]; + num++; + ref QuestSequence reference212 = ref span2[num]; QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span105 = CollectionsMarshal.AsSpan(list276); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.43686f, 50.749672f, 151.8797f), 1186); - span105[1] = new QuestStep(EInteractionType.Interact, 1054748u, new Vector3(441.5503f, 60f, 88.91431f), 1186) + index2 = 2; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + span3 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.43686f, 50.749672f, 151.8797f), 1186); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054748u, new Vector3(441.5503f, 60f, 88.91431f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -389262,7 +469444,8 @@ public static class AssemblyQuestLoader }; obj186.Steps = list276; reference212 = obj186; - ref QuestSequence reference213 = ref span104[2]; + num++; + ref QuestSequence reference213 = ref span2[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 @@ -389270,7 +469453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1054753u, new Vector3(639.33765f, 146.06567f, 706.4773f), 1191) + span3 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054753u, new Vector3(639.33765f, 146.06567f, 706.4773f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation, @@ -389284,18 +469469,22 @@ public static class AssemblyQuestLoader }; obj187.Steps = list277; reference213 = obj187; - ref QuestSequence reference214 = ref span104[3]; + num++; + ref QuestSequence reference214 = ref span2[num]; QuestSequence obj188 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1054757u, new Vector3(-185.29034f, 15.695002f, -385.00043f), 1190); + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + span3 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054757u, new Vector3(-185.29034f, 15.695002f, -385.00043f), 1190); obj188.Steps = list278; reference214 = obj188; - ref QuestSequence reference215 = ref span104[4]; + num++; + ref QuestSequence reference215 = ref span2[num]; QuestSequence obj189 = new QuestSequence { Sequence = 4 @@ -389303,40 +469492,48 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1054760u, new Vector3(-277.27173f, 15.865601f, -195.36127f), 1190) + span3 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054760u, new Vector3(-277.27173f, 15.865601f, -195.36127f), 1190) { Fly = true }; obj189.Steps = list279; reference215 = obj189; - ref QuestSequence reference216 = ref span104[5]; + num++; + ref QuestSequence reference216 = ref span2[num]; QuestSequence obj190 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span106 = CollectionsMarshal.AsSpan(list280); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-342.82297f, 18.182781f, -161.67989f), 1190) + index2 = 4; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + span3 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-342.82297f, 18.182781f, -161.67989f), 1190) { Land = true }; - span106[1] = new QuestStep(EInteractionType.Interact, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190) { Fly = true }; - span106[2] = new QuestStep(EInteractionType.Interact, 1049384u, new Vector3(-321.98065f, 18.589752f, -114.39691f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1049384u, new Vector3(-321.98065f, 18.589752f, -114.39691f), 1190) { Fly = true }; - span106[3] = new QuestStep(EInteractionType.Interact, 1054763u, new Vector3(-282.12408f, 18.276659f, -87.296875f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054763u, new Vector3(-282.12408f, 18.276659f, -87.296875f), 1190) { Fly = true }; obj190.Steps = list280; reference216 = obj190; - ref QuestSequence reference217 = ref span104[6]; + num++; + ref QuestSequence reference217 = ref span2[num]; QuestSequence obj191 = new QuestSequence { Sequence = 6 @@ -389344,18 +469541,23 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1054764u, new Vector3(-306.32483f, 18.195349f, -87.60205f), 1190); + span3 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054764u, new Vector3(-306.32483f, 18.195349f, -87.60205f), 1190); obj191.Steps = list281; reference217 = obj191; - ref QuestSequence reference218 = ref span104[7]; + num++; + ref QuestSequence reference218 = ref span2[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054767u, new Vector3(-419.3637f, 21.14813f, -142.74823f), 1190) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + span3 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054767u, new Vector3(-419.3637f, 21.14813f, -142.74823f), 1190) { Fly = true, NextQuestId = new QuestId(5379) @@ -389369,13 +469571,16 @@ public static class AssemblyQuestLoader num = 1; List list283 = new List(num); CollectionsMarshal.SetCount(list283, num); - CollectionsMarshal.AsSpan(list283)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list283); + index = 0; + span[index] = "WigglyMuffin"; questRoot29.Author = list283; - num = 12; - List list284 = new List(num); - CollectionsMarshal.SetCount(list284, num); - Span span107 = CollectionsMarshal.AsSpan(list284); - ref QuestSequence reference219 = ref span107[0]; + index = 12; + List list284 = new List(index); + CollectionsMarshal.SetCount(list284, index); + span2 = CollectionsMarshal.AsSpan(list284); + num = 0; + ref QuestSequence reference219 = ref span2[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -389383,7 +469588,9 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054773u, new Vector3(-329.21344f, 18.02224f, -137.28546f), 1190) + span3 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054773u, new Vector3(-329.21344f, 18.02224f, -137.28546f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, @@ -389397,21 +469604,25 @@ public static class AssemblyQuestLoader }; obj193.Steps = list285; reference219 = obj193; - ref QuestSequence reference220 = ref span107[1]; + num++; + ref QuestSequence reference220 = ref span2[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + span3 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190) { Fly = true }; obj194.Steps = list286; reference220 = obj194; - ref QuestSequence reference221 = ref span107[2]; + num++; + ref QuestSequence reference221 = ref span2[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -389419,24 +469630,30 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190); + span3 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190); obj195.Steps = list287; reference221 = obj195; - ref QuestSequence reference222 = ref span107[3]; + num++; + ref QuestSequence reference222 = ref span2[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1054777u, new Vector3(-186.81628f, (float)Math.E * 63f / 92f, 303.42554f), 1190) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + span3 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054777u, new Vector3(-186.81628f, (float)Math.E * 63f / 92f, 303.42554f), 1190) { Fly = true }; obj196.Steps = list288; reference222 = obj196; - ref QuestSequence reference223 = ref span107[4]; + num++; + ref QuestSequence reference223 = ref span2[num]; QuestSequence obj197 = new QuestSequence { Sequence = 4 @@ -389444,27 +469661,33 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1054778u, new Vector3(-127.6723f, 1.5186902f, 336.7207f), 1190) + span3 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054778u, new Vector3(-127.6723f, 1.5186902f, 336.7207f), 1190) { Fly = true }; obj197.Steps = list289; reference223 = obj197; - ref QuestSequence reference224 = ref span107[5]; + num++; + ref QuestSequence reference224 = ref span2[num]; QuestSequence obj198 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1054779u, new Vector3(-168.29181f, -1.8273239f, 402.7008f), 1190) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + span3 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054779u, new Vector3(-168.29181f, -1.8273239f, 402.7008f), 1190) { Fly = true }; obj198.Steps = list290; reference224 = obj198; - ref QuestSequence reference225 = ref span107[6]; + num++; + ref QuestSequence reference225 = ref span2[num]; QuestSequence obj199 = new QuestSequence { Sequence = 6 @@ -389472,22 +469695,26 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1054780u, new Vector3(-111.28406f, -7.4034004f, 529.9f), 1190) + span3 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054780u, new Vector3(-111.28406f, -7.4034004f, 529.9f), 1190) { Fly = true }; obj199.Steps = list291; reference225 = obj199; - ref QuestSequence reference226 = ref span107[7]; + num++; + ref QuestSequence reference226 = ref span2[num]; QuestSequence obj200 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span108 = CollectionsMarshal.AsSpan(list292); - ref QuestStep reference227 = ref span108[0]; + index2 = 3; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + span3 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + ref QuestStep reference227 = ref span3[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2014869u, new Vector3(-286.18298f, -45.91449f, 624.567f), 1190) { Fly = true @@ -389495,36 +469722,51 @@ public static class AssemblyQuestLoader num3 = 6; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - Span span109 = CollectionsMarshal.AsSpan(list293); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + span5 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = null; + index3++; + span5[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list293; reference227 = obj201; - ref QuestStep reference228 = ref span108[1]; + num2++; + ref QuestStep reference228 = ref span3[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2014868u, new Vector3(-273.82324f, -44.38855f, 627.25244f), 1190); - num3 = 6; - List list294 = new List(num3); - CollectionsMarshal.SetCount(list294, num3); - Span span110 = CollectionsMarshal.AsSpan(list294); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list294 = new List(index3); + CollectionsMarshal.SetCount(list294, index3); + span5 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = null; + num3++; + span5[num3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list294; reference228 = questStep28; - span108[2] = new QuestStep(EInteractionType.Interact, 2014867u, new Vector3(-214.12988f, -39.871887f, 659.8153f), 1190) + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014867u, new Vector3(-214.12988f, -39.871887f, 659.8153f), 1190) { Fly = true }; obj200.Steps = list292; reference226 = obj200; - ref QuestSequence reference229 = ref span107[8]; + num++; + ref QuestSequence reference229 = ref span2[num]; QuestSequence obj202 = new QuestSequence { Sequence = 8 @@ -389532,19 +469774,23 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1054782u, new Vector3(-186.69415f, -33.644463f, 658.50305f), 1190); + span3 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054782u, new Vector3(-186.69415f, -33.644463f, 658.50305f), 1190); obj202.Steps = list295; reference229 = obj202; - ref QuestSequence reference230 = ref span107[9]; + num++; + ref QuestSequence reference230 = ref span2[num]; QuestSequence obj203 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span111 = CollectionsMarshal.AsSpan(list296); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(475.81485f, 3.2201807f, 466.20187f), 1190) + index2 = 2; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + span3 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(475.81485f, 3.2201807f, 466.20187f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, @@ -389561,10 +469807,12 @@ public static class AssemblyQuestLoader } } }; - span111[1] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); obj203.Steps = list296; reference230 = obj203; - ref QuestSequence reference231 = ref span107[10]; + num++; + ref QuestSequence reference231 = ref span2[num]; QuestSequence obj204 = new QuestSequence { Sequence = 10 @@ -389572,18 +469820,23 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); + span3 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); obj204.Steps = list297; reference231 = obj204; - ref QuestSequence reference232 = ref span107[11]; + num++; + ref QuestSequence reference232 = ref span2[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + span3 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -389608,13 +469861,16 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list299); + index = 0; + span[index] = "WigglyMuffin"; questRoot30.Author = list299; - num = 4; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span112 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference233 = ref span112[0]; + index = 4; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + span2 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference233 = ref span2[num]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -389622,24 +469878,30 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039457u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + span3 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039457u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj206.Steps = list301; reference233 = obj206; - ref QuestSequence reference234 = ref span112[1]; + num++; + ref QuestSequence reference234 = ref span2[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Emote, 1039456u, new Vector3(28.854736f, 0f, 13.351624f), 1278) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + span3 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Emote, 1039456u, new Vector3(28.854736f, 0f, 13.351624f), 1278) { Emote = EEmote.Doubt }; obj207.Steps = list302; reference234 = obj207; - ref QuestSequence reference235 = ref span112[2]; + num++; + ref QuestSequence reference235 = ref span2[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -389647,18 +469909,23 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); + span3 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); obj208.Steps = list303; reference235 = obj208; - ref QuestSequence reference236 = ref span112[3]; + num++; + ref QuestSequence reference236 = ref span2[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 2014937u, new Vector3(27.60829f, 0f, 11.74576f), 1278) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + span3 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014937u, new Vector3(27.60829f, 0f, 11.74576f), 1278) { NextQuestId = new QuestId(5381) }; @@ -389671,13 +469938,16 @@ public static class AssemblyQuestLoader num = 1; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - CollectionsMarshal.AsSpan(list305)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list305); + index = 0; + span[index] = "WigglyMuffin"; questRoot31.Author = list305; - num = 3; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span113 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference237 = ref span113[0]; + index = 3; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + span2 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference237 = ref span2[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -389685,21 +469955,27 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + span3 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj210.Steps = list307; reference237 = obj210; - ref QuestSequence reference238 = ref span113[1]; + num++; + ref QuestSequence reference238 = ref span2[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + span3 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj211.Steps = list308; reference238 = obj211; - ref QuestSequence reference239 = ref span113[2]; + num++; + ref QuestSequence reference239 = ref span2[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue @@ -389707,7 +469983,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278) + span3 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278) { NextQuestId = new QuestId(5382) }; @@ -389720,26 +469998,33 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list310); + index = 0; + span[index] = "WigglyMuffin"; questRoot32.Author = list310; - num = 2; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span114 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference240 = ref span114[0]; + index = 2; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + span2 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference240 = ref span2[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list312)[0]; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + span3 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference241 = ref span3[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice + span6 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGKW103_05382_Q1_000_000"), @@ -389750,7 +470035,8 @@ public static class AssemblyQuestLoader reference241 = questStep29; obj213.Steps = list312; reference240 = obj213; - ref QuestSequence reference242 = ref span114[1]; + num++; + ref QuestSequence reference242 = ref span2[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -389758,7 +470044,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053905u, new Vector3(29.55664f, 0f, 10.788086f), 1278); + span3 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053905u, new Vector3(29.55664f, 0f, 10.788086f), 1278); obj214.Steps = list314; reference242 = obj214; questRoot32.QuestSequence = list311; @@ -389772,13 +470060,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "WigglyMuffin"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -389786,7 +470077,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054946u, new Vector3(-44.38855f, 2.8244886f, -23.91095f), 819) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054946u, new Vector3(-44.38855f, 2.8244886f, -23.91095f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -389799,16 +470092,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.860016f, 0f, -122.96661f), 819) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + span3 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.860016f, 0f, -122.96661f), 819) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -389821,10 +470116,12 @@ public static class AssemblyQuestLoader Position = new Vector3(-109.03213f, 1.9211035f, -128.47693f) } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1054948u, new Vector3(-106.126526f, -47.55987f, -136.0647f), 819); + num2++; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054948u, new Vector3(-106.126526f, -47.55987f, -136.0647f), 819); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -389832,27 +470129,33 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1054949u, new Vector3(404.65393f, 85.387535f, -699.54987f), 816) + span3 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054949u, new Vector3(404.65393f, 85.387535f, -699.54987f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1054950u, new Vector3(543.2975f, 109.2974f, -869.4133f), 816) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + span3 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 1054950u, new Vector3(543.2975f, 109.2974f, -869.4133f), 816) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -389860,21 +470163,26 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1054999u, new Vector3(418.44812f, 89.44323f, -777.0962f), 816) + span3 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.Interact, 1054999u, new Vector3(418.44812f, 89.44323f, -777.0962f), 816) { Fly = true }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054942u, new Vector3(424.09387f, 89.42931f, -772.27435f), 816); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + span3 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054942u, new Vector3(424.09387f, 89.42931f, -772.27435f), 816); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -389884,13 +470192,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list9); + index = 0; + span[index] = "WigglyMuffin"; questRoot2.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + span2 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -389898,7 +470209,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + span3 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -389911,15 +470224,18 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + span3 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list10; @@ -389929,13 +470245,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list13); + index = 0; + span[index] = "WigglyMuffin"; questRoot3.Author = list13; - num = 3; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span4[0]; + index = 3; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + span2 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -389943,7 +470262,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + span3 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -389956,15 +470277,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span4[1]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 2014910u, new Vector3(541.2074f, 109.4176f, -871.7104f), 816) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + span3 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.Interact, 2014910u, new Vector3(541.2074f, 109.4176f, -871.7104f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -389977,7 +470301,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -389985,7 +470310,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + span3 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -390005,24 +470332,30 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "WigglyMuffin"; + span = CollectionsMarshal.AsSpan(list18); + index = 0; + span[index] = "WigglyMuffin"; questRoot4.Author = list18; - num = 3; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span5 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference12 = ref span5[0]; + index = 3; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + span2 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + span3 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); obj12.Steps = list20; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -390030,12 +470363,16 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; + span3 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference14 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052624u, new Vector3(-42.008118f, 11.869998f, -95.75043f), 1237); int num3 = 1; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list22); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK201_05409_SYSTEM_100_021") @@ -390044,4244 +470381,21 @@ public static class AssemblyQuestLoader reference14 = questStep; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference15 = ref span5[2]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + span3 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); obj14.Steps = list23; reference15 = obj14; questRoot4.QuestSequence = list19; AddQuest(questId4, questRoot4); - QuestId questId5 = new QuestId(5410); - QuestRoot questRoot5 = new QuestRoot(); - num = 1; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "WigglyMuffin"; - questRoot5.Author = list24; - num = 7; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference16 = ref span6[0]; - QuestSequence obj15 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); - obj15.Steps = list26; - reference16 = obj15; - ref QuestSequence reference17 = ref span6[1]; - QuestSequence obj16 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(288.74634f, 52.002327f, -381.64343f), 1291); - obj16.Steps = list27; - reference17 = obj16; - ref QuestSequence reference18 = ref span6[2]; - QuestSequence obj17 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span7 = CollectionsMarshal.AsSpan(list28); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.95572f, 59.50008f, -449.5014f), 1291); - span7[1] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(180.5135f, 59.50008f, -450.65436f), 1291) - { - StopDistance = 0.25f, - Mount = false - }; - obj17.Steps = list28; - reference18 = obj17; - ref QuestSequence reference19 = ref span6[3]; - QuestSequence obj18 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span8 = CollectionsMarshal.AsSpan(list29); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.49808f, -3.201358f, -374.8919f), 1291); - span8[1] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(-232.33755f, -4.477512f, -370.6558f), 1291) - { - StopDistance = 0.25f, - Mount = false - }; - obj18.Steps = list29; - reference19 = obj18; - ref QuestSequence reference20 = ref span6[4]; - QuestSequence obj19 = new QuestSequence - { - Sequence = 4 - }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span9 = CollectionsMarshal.AsSpan(list30); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.80423f, 12.618442f, 470.09174f), 1291); - span9[1] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(-397.88083f, 13.0445385f, 474.38928f), 1291) - { - StopDistance = 0.25f, - Mount = false - }; - obj19.Steps = list30; - reference20 = obj19; - ref QuestSequence reference21 = ref span6[5]; - QuestSequence obj20 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; - QuestStep obj21 = new QuestStep(EInteractionType.Snipe, 2014920u, new Vector3(-46.72509f, 22.42642f, 417.836f), 1291) - { - Comment = "Click (from left to right) Spiky Crystalline Tree, Flowery Shrub, Tree with Purple Canopy?, Iridescent Terrain, Seemingly Glassblown Bloom" - }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_KINGWK202_05410_Q2_000_000") - }; - span10[1] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_KINGWK202_05410_Q3_000_000"), - Answer = new ExcelRef("TEXT_KINGWK202_05410_A3_000_001") - }; - obj21.DialogueChoices = list32; - num3 = 5; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span11 = CollectionsMarshal.AsSpan(list33); - span11[0] = 0u; - span11[1] = 1u; - span11[2] = 2u; - span11[3] = 3u; - span11[4] = 4u; - obj21.PointMenuChoices = list33; - reference22 = obj21; - obj20.Steps = list31; - reference21 = obj20; - ref QuestSequence reference23 = ref span6[6]; - QuestSequence obj22 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span12 = CollectionsMarshal.AsSpan(list34); - span12[0] = new QuestStep(EInteractionType.Action, null, null, 1291) - { - Comment = "Use Stellar Return to teleport back", - Action = EAction.DutyAction1 - }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1053328u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291) - { - NextQuestId = new QuestId(5411) - }; - obj22.Steps = list34; - reference23 = obj22; - questRoot5.QuestSequence = list25; - AddQuest(questId5, questRoot5); - QuestId questId6 = new QuestId(5411); - QuestRoot questRoot6 = new QuestRoot(); - num = 1; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "WigglyMuffin"; - questRoot6.Author = list35; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference24 = ref span13[0]; - QuestSequence obj23 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list37)[0]; - QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_KINGWZ201_05411_Q1_000_000"), - Answer = new ExcelRef("TEXT_KINGWZ201_05411_A1_000_001") - }; - questStep2.DialogueChoices = list38; - reference25 = questStep2; - obj23.Steps = list37; - reference24 = obj23; - ref QuestSequence reference26 = ref span13[1]; - QuestSequence obj24 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1053332u, new Vector3(446.98242f, 59.965904f, -479.81995f), 1291); - obj24.Steps = list39; - reference26 = obj24; - ref QuestSequence reference27 = ref span13[2]; - QuestSequence obj25 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291) - { - NextQuestId = new QuestId(5412) - }; - obj25.Steps = list40; - reference27 = obj25; - questRoot6.QuestSequence = list36; - AddQuest(questId6, questRoot6); - QuestId questId7 = new QuestId(5412); - QuestRoot questRoot7 = new QuestRoot(); - num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "WigglyMuffin"; - questRoot7.Author = list41; - num = 5; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span14 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference28 = ref span14[0]; - QuestSequence obj26 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291); - obj26.Steps = list43; - reference28 = obj26; - ref QuestSequence reference29 = ref span14[1]; - QuestSequence obj27 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1053336u, new Vector3(-28.366577f, -10.3759985f, -113.206726f), 1291); - obj27.Steps = list44; - reference29 = obj27; - ref QuestSequence reference30 = ref span14[2]; - QuestSequence obj28 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - 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 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; - ref QuestStep reference32 = ref span15[1]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014924u, new Vector3(-218.8908f, -8.711901f, -128.8406f), 1291); - num3 = 6; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span17 = CollectionsMarshal.AsSpan(list47); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list47; - reference32 = questStep4; - 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 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; - ref QuestSequence reference34 = ref span14[3]; - QuestSequence obj29 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1053336u, new Vector3(-28.366577f, -10.3759985f, -113.206726f), 1291); - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_KINGWZ202_05412_Q1_000_000"), - Answer = new ExcelRef("TEXT_KINGWZ202_05412_A1_000_001") - }; - questStep6.DialogueChoices = list50; - reference35 = questStep6; - obj29.Steps = list49; - reference34 = obj29; - ref QuestSequence reference36 = ref span14[4]; - QuestSequence obj30 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span19 = CollectionsMarshal.AsSpan(list51); - span19[0] = new QuestStep(EInteractionType.Action, null, null, 1291) - { - Comment = "Use Stellar Return to teleport back", - Action = EAction.DutyAction1 - }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291) - { - NextQuestId = new QuestId(5413) - }; - obj30.Steps = list51; - reference36 = obj30; - questRoot7.QuestSequence = list42; - AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(5413); - QuestRoot questRoot8 = new QuestRoot(); - num = 1; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "WigglyMuffin"; - questRoot8.Author = list52; - num = 3; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span20 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference37 = ref span20[0]; - QuestSequence obj31 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291); - obj31.Steps = list54; - reference37 = obj31; - ref QuestSequence reference38 = ref span20[1]; - QuestSequence obj32 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - 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); - CollectionsMarshal.AsSpan(list56)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_KINGWZ203_05413_Q2_000_000") - }; - questStep7.DialogueChoices = list56; - reference39 = questStep7; - obj32.Steps = list55; - reference38 = obj32; - ref QuestSequence reference40 = ref span20[2]; - QuestSequence obj33 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291) - { - NextQuestId = new QuestId(5414) - }; - obj33.Steps = list57; - reference40 = obj33; - questRoot8.QuestSequence = list53; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(5414); - QuestRoot questRoot9 = new QuestRoot(); - num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "WigglyMuffin"; - questRoot9.Author = list58; - num = 6; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span21 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference41 = ref span21[0]; - QuestSequence obj34 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list60)[0]; - QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_KINGWZ204_05414_Q1_000_000"), - Answer = new ExcelRef("TEXT_KINGWZ204_05414_A1_000_001") - }; - questStep8.DialogueChoices = list61; - reference42 = questStep8; - obj34.Steps = list60; - reference41 = obj34; - ref QuestSequence reference43 = ref span21[1]; - QuestSequence obj35 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(349.01953f, 52.612263f, -438.98682f), 1291); - obj35.Steps = list62; - reference43 = obj35; - ref QuestSequence reference44 = ref span21[2]; - QuestSequence obj36 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(401.85794f, 65.49993f, -516.0078f), 1291); - span22[1] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(401.46838f, 65.49994f, -516.78503f), 1291) - { - StopDistance = 0.25f, - Mount = false - }; - obj36.Steps = list63; - reference44 = obj36; - ref QuestSequence reference45 = ref span21[3]; - QuestSequence obj37 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span23 = CollectionsMarshal.AsSpan(list64); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.5788f, 53.05f, -105.28f), 1291); - span23[1] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(312.84088f, 53.049995f, -100.085434f), 1291) - { - StopDistance = 0.25f, - Mount = false - }; - obj37.Steps = list64; - reference45 = obj37; - ref QuestSequence reference46 = ref span21[4]; - QuestSequence obj38 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - 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); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_KINGWZ204_05414_Q9_000_000") - }; - questStep9.DialogueChoices = list66; - reference47 = questStep9; - obj38.Steps = list65; - reference46 = obj38; - ref QuestSequence reference48 = ref span21[5]; - QuestSequence obj39 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span24 = CollectionsMarshal.AsSpan(list67); - span24[0] = new QuestStep(EInteractionType.Action, null, null, 1291) - { - Comment = "Use Stellar Return to teleport back", - Action = EAction.DutyAction1 - }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - obj39.Steps = list67; - reference48 = obj39; - questRoot9.QuestSequence = list59; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(5425); - QuestRoot questRoot10 = new QuestRoot(); - num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "WigglyMuffin"; - questRoot10.Author = list68; - questRoot10.IsSeasonalQuest = true; - questRoot10.SeasonalQuestExpiry = new DateTime(2026, 4, 6, 14, 59, 0, DateTimeKind.Utc); - num = 10; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span25 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference49 = ref span25[0]; - QuestSequence obj40 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list70)[0]; - QuestStep obj41 = new QuestStep(EInteractionType.AcceptQuest, 1056053u, new Vector3(-50.003845f, 6.5f, -89.76886f), 133) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj42 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 133; - obj42.InTerritory = list71; - skipConditions.AetheryteShortcutIf = obj42; - obj41.SkipConditions = skipConditions; - reference50 = obj41; - obj40.Steps = list70; - reference49 = obj40; - ref QuestSequence reference51 = ref span25[1]; - QuestSequence obj43 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1056054u, new Vector3(24.64331f, -1.0772418f, 58.121582f), 132) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaAmphitheatre, - To = EAetheryteLocation.Gridania - }, - SkipConditions = new SkipConditions - { - AethernetShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj43.Steps = list72; - reference51 = obj43; - ref QuestSequence reference52 = ref span25[2]; - QuestSequence obj44 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span26 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference53 = ref span26[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1056057u, new Vector3(25.497803f, -8f, 104.93628f), 132); - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span27 = CollectionsMarshal.AsSpan(list74); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list74; - reference53 = questStep10; - ref QuestStep reference54 = ref span26[1]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1056059u, new Vector3(24.093994f, -8f, 119.40173f), 132); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span28 = CollectionsMarshal.AsSpan(list75); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list75; - reference54 = questStep11; - span26[2] = new QuestStep(EInteractionType.Interact, 1056058u, new Vector3(33.920776f, -8.20001f, 125.56641f), 132); - obj44.Steps = list73; - reference52 = obj44; - ref QuestSequence reference55 = ref span25[3]; - QuestSequence obj45 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1056060u, new Vector3(24.673828f, -1.0534565f, 58.701416f), 132); - obj45.Steps = list76; - reference55 = obj45; - ref QuestSequence reference56 = ref span25[4]; - QuestSequence obj46 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1056061u, new Vector3(-41.21466f, 10.918522f, -232.25757f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - obj46.Steps = list77; - reference56 = obj46; - ref QuestSequence reference57 = ref span25[5]; - QuestSequence obj47 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1056063u, new Vector3(126.51245f, 12.991126f, -92.484924f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaAmphitheatre, - To = EAetheryteLocation.GridaniaLeatherworker - } - }; - obj47.Steps = list78; - reference57 = obj47; - ref QuestSequence reference58 = ref span25[6]; - QuestSequence obj48 = new QuestSequence - { - Sequence = 6 - }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1056065u, new Vector3(-52.262207f, 6.774475f, -110.307495f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaLeatherworker, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - obj48.Steps = list79; - reference58 = obj48; - ref QuestSequence reference59 = ref span25[7]; - QuestSequence obj49 = new QuestSequence - { - Sequence = 7 - }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span29 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference60 = ref span29[0]; - QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1056067u, new Vector3(-54.551025f, 6.851239f, -110.948364f), 133) - { - IgnoreQuestMarker = true - }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "custom/009/FesEst2026Entrance_00960", - Prompt = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_Q1_000_000"), - Answer = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_A1_000_001"), - PromptIsRegularExpression = true - }; - obj50.DialogueChoices = list81; - reference60 = obj50; - ref QuestStep reference61 = ref span29[1]; - QuestStep obj51 = new QuestStep(EInteractionType.Action, null, null, 1336) - { - StopDistance = 0f, - Action = EAction.PruningPirouette - }; - num3 = 8; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span30 = CollectionsMarshal.AsSpan(list82); - span30[0] = 2015072u; - span30[1] = 2015073u; - span30[2] = 2015074u; - span30[3] = 2015075u; - span30[4] = 2015076u; - span30[5] = 2015077u; - span30[6] = 2015078u; - span30[7] = 2015079u; - obj51.DataIds = list82; - num3 = 9; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span31 = CollectionsMarshal.AsSpan(list83); - span31[0] = new Vector3(-700.0023f, -0.15729797f, -721.67926f); - span31[1] = new Vector3(-700.1704f, -0.0301615f, 77.54147f); - span31[2] = new Vector3(-699.9926f, -0.021064043f, 877.55304f); - span31[3] = new Vector3(99.99213f, -0.100738764f, -721.9226f); - span31[4] = new Vector3(99.92716f, 4.7683716E-07f, 77.599335f); - span31[5] = new Vector3(100.40486f, 0.20596194f, 877.50397f); - span31[6] = new Vector3(899.93384f, 0.03615737f, -722.4109f); - span31[7] = new Vector3(900.052f, 0.23717809f, 77.897415f); - span31[8] = new Vector3(900.26733f, -0.30200624f, 877.5144f); - obj51.WaypointPositions = list83; - reference61 = obj51; - obj49.Steps = list80; - reference59 = obj49; - ref QuestSequence reference62 = ref span25[8]; - QuestSequence obj52 = new QuestSequence - { - Sequence = 8 - }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1056065u, new Vector3(-52.262207f, 6.774475f, -110.307495f), 133); - obj52.Steps = list84; - reference62 = obj52; - ref QuestSequence reference63 = ref span25[9]; - QuestSequence obj53 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; - QuestStep obj54 = new QuestStep(EInteractionType.CompleteQuest, 1056056u, new Vector3(-50.003845f, 6.5f, -89.7384f), 133) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj55 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 133; - obj55.InTerritory = list86; - skipConditions2.AetheryteShortcutIf = obj55; - obj54.SkipConditions = skipConditions2; - reference64 = obj54; - obj53.Steps = list85; - reference63 = obj53; - questRoot10.QuestSequence = list69; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(5426); - QuestRoot questRoot11 = new QuestRoot(); - num = 1; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "WigglyMuffin"; - questRoot11.Author = list87; - num = 5; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span32 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference65 = ref span32[0]; - QuestSequence obj56 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056011u, new Vector3(-22.568176f, 38.056595f, -389.05933f), 1186) - { - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineResolution - } - }; - obj56.Steps = list89; - reference65 = obj56; - ref QuestSequence reference66 = ref span32[1]; - QuestSequence obj57 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span33 = CollectionsMarshal.AsSpan(list90); - ref QuestStep reference67 = ref span33[0]; - QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) - { - TargetTerritoryId = (ushort)1207, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNineResolution, - To = EAetheryteLocation.SolutionNineNeonStein - } - }; - SkipConditions skipConditions3 = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 1207; - skipStepConditions.InTerritory = list91; - skipConditions3.StepIf = skipStepConditions; - SkipAetheryteCondition obj59 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 1207; - obj59.InTerritory = list92; - skipConditions3.AetheryteShortcutIf = obj59; - obj58.SkipConditions = skipConditions3; - reference67 = obj58; - span33[1] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); - obj57.Steps = list90; - reference66 = obj57; - ref QuestSequence reference68 = ref span32[2]; - QuestSequence obj60 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1056119u, new Vector3(130.41882f, -16.560858f, 165.85034f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj60.Steps = list93; - reference68 = obj60; - ref QuestSequence reference69 = ref span32[3]; - QuestSequence obj61 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2014993u, new Vector3(129.9068f, -16.56085f, 163.5934f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj61.Steps = list94; - reference69 = obj61; - ref QuestSequence reference70 = ref span32[4]; - QuestSequence obj62 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056126u, new Vector3(132.6466f, -15.89986f, 176.01282f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj62.Steps = list95; - reference70 = obj62; - questRoot11.QuestSequence = list88; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(5427); - QuestRoot questRoot12 = new QuestRoot(); - num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "WigglyMuffin"; - questRoot12.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span34 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference71 = ref span34[0]; - QuestSequence obj63 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056126u, new Vector3(132.6466f, -15.89986f, 176.01282f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj63.Steps = list98; - reference71 = obj63; - ref QuestSequence reference72 = ref span34[1]; - QuestSequence obj64 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1056131u, new Vector3(14.663879f, -19.587986f, 195.11707f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj64.Steps = list99; - reference72 = obj64; - ref QuestSequence reference73 = ref span34[2]; - QuestSequence obj65 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1056136u, new Vector3(6.3324585f, 50.700012f, 725.6428f), 1192) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj65.Steps = list100; - reference73 = obj65; - ref QuestSequence reference74 = ref span34[3]; - QuestSequence obj66 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1056140u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj66.Steps = list101; - reference74 = obj66; - ref QuestSequence reference75 = ref span34[4]; - QuestSequence obj67 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056141u, new Vector3(-7.5532227f, -0.003462526f, -7.950012f), 1334); - obj67.Steps = list102; - reference75 = obj67; - questRoot12.QuestSequence = list97; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(5428); - QuestRoot questRoot13 = new QuestRoot(); - num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "WigglyMuffin"; - questRoot13.Author = list103; - num = 7; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span35 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference76 = ref span35[0]; - QuestSequence obj68 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span36 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference77 = ref span36[0]; - QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span37 = CollectionsMarshal.AsSpan(list106); - span37[0] = 1334; - span37[1] = 1332; - skipStepConditions2.InTerritory = list106; - skipConditions4.StepIf = skipStepConditions2; - SkipAetheryteCondition obj70 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span38 = CollectionsMarshal.AsSpan(list107); - span38[0] = 1334; - span38[1] = 1332; - obj70.InTerritory = list107; - skipConditions4.AetheryteShortcutIf = obj70; - obj69.SkipConditions = skipConditions4; - reference77 = obj69; - span36[1] = new QuestStep(EInteractionType.AcceptQuest, 1056141u, new Vector3(-7.5532227f, -0.003462526f, -7.950012f), 1334); - obj68.Steps = list105; - reference76 = obj68; - ref QuestSequence reference78 = ref span35[1]; - QuestSequence obj71 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span39 = CollectionsMarshal.AsSpan(list108); - ref QuestStep reference79 = ref span39[0]; - QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions5 = new SkipConditions(); - SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 2; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span40 = CollectionsMarshal.AsSpan(list109); - span40[0] = 1334; - span40[1] = 1332; - skipStepConditions3.InTerritory = list109; - skipConditions5.StepIf = skipStepConditions3; - SkipAetheryteCondition obj73 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span41 = CollectionsMarshal.AsSpan(list110); - span41[0] = 1334; - span41[1] = 1332; - obj73.InTerritory = list110; - skipConditions5.AetheryteShortcutIf = obj73; - obj72.SkipConditions = skipConditions5; - reference79 = obj72; - span39[1] = new QuestStep(EInteractionType.Interact, 1056145u, new Vector3(-2.1210327f, 4.3585896E-07f, -43.808716f), 1334); - obj71.Steps = list108; - reference78 = obj71; - ref QuestSequence reference80 = ref span35[2]; - QuestSequence obj74 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Duty, null, null, 1334) - { - DutyOptions = new DutyOptions - { - Enabled = true, - ContentFinderConditionId = 1064u - } - }; - obj74.Steps = list111; - reference80 = obj74; - span35[3] = new QuestSequence - { - Sequence = 3 - }; - ref QuestSequence reference81 = ref span35[4]; - QuestSequence obj75 = new QuestSequence - { - Sequence = 4 - }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span42 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference82 = ref span42[0]; - QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - 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 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 skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 1332; - skipStepConditions5.InTerritory = list115; - skipConditions7.StepIf = skipStepConditions5; - obj78.SkipConditions = skipConditions7; - reference83 = obj78; - span42[2] = new QuestStep(EInteractionType.Interact, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj75.Steps = list112; - reference81 = obj75; - ref QuestSequence reference84 = ref span35[5]; - QuestSequence obj79 = new QuestSequence - { - Sequence = 5 - }; - num2 = 3; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span45 = CollectionsMarshal.AsSpan(list116); - ref QuestStep reference85 = ref span45[0]; - QuestStep obj80 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - 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 - }; - num3 = 2; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span47 = CollectionsMarshal.AsSpan(list118); - span47[0] = 1334; - span47[1] = 1332; - obj81.InTerritory = list118; - 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 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; - reference84 = obj79; - ref QuestSequence reference87 = ref span35[6]; - QuestSequence obj83 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 3; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span48 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference88 = ref span48[0]; - QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 2; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span49 = CollectionsMarshal.AsSpan(list121); - span49[0] = 1334; - span49[1] = 1332; - skipStepConditions8.InTerritory = list121; - skipConditions10.StepIf = skipStepConditions8; - SkipAetheryteCondition obj85 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = 1334; - span50[1] = 1332; - obj85.InTerritory = list122; - skipConditions10.AetheryteShortcutIf = obj85; - obj84.SkipConditions = skipConditions10; - reference88 = obj84; - ref QuestStep reference89 = ref span48[1]; - QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions11 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 1332; - skipStepConditions9.InTerritory = list123; - skipConditions11.StepIf = skipStepConditions9; - obj86.SkipConditions = skipConditions11; - reference89 = obj86; - span48[2] = new QuestStep(EInteractionType.CompleteQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj83.Steps = list120; - reference87 = obj83; - questRoot13.QuestSequence = list104; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(5429); - QuestRoot questRoot14 = new QuestRoot(); - num = 1; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "WigglyMuffin"; - questRoot14.Author = list124; - num = 4; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span51 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference90 = ref span51[0]; - QuestSequence obj87 = new QuestSequence - { - Sequence = 0 - }; - num2 = 3; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span52 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference91 = ref span52[0]; - QuestStep obj88 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 2; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span53 = CollectionsMarshal.AsSpan(list127); - span53[0] = 1334; - span53[1] = 1332; - skipStepConditions10.InTerritory = list127; - skipConditions12.StepIf = skipStepConditions10; - SkipAetheryteCondition obj89 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span54 = CollectionsMarshal.AsSpan(list128); - span54[0] = 1334; - span54[1] = 1332; - obj89.InTerritory = list128; - skipConditions12.AetheryteShortcutIf = obj89; - obj88.SkipConditions = skipConditions12; - reference91 = obj88; - ref QuestStep reference92 = ref span52[1]; - QuestStep obj90 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions13 = new SkipConditions(); - SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 1332; - skipStepConditions11.InTerritory = list129; - skipConditions13.StepIf = skipStepConditions11; - obj90.SkipConditions = skipConditions13; - reference92 = obj90; - span52[2] = new QuestStep(EInteractionType.AcceptQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj87.Steps = list126; - reference90 = obj87; - ref QuestSequence reference93 = ref span51[1]; - QuestSequence obj91 = new QuestSequence - { - Sequence = 1 - }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span55 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference94 = ref span55[0]; - QuestStep obj92 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span56 = CollectionsMarshal.AsSpan(list131); - span56[0] = 1334; - span56[1] = 1332; - skipStepConditions12.InTerritory = list131; - skipConditions14.StepIf = skipStepConditions12; - SkipAetheryteCondition obj93 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span57 = CollectionsMarshal.AsSpan(list132); - span57[0] = 1334; - span57[1] = 1332; - obj93.InTerritory = list132; - skipConditions14.AetheryteShortcutIf = obj93; - obj92.SkipConditions = skipConditions14; - reference94 = obj92; - ref QuestStep reference95 = ref span55[1]; - QuestStep obj94 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = 1332; - skipStepConditions13.InTerritory = list133; - skipConditions15.StepIf = skipStepConditions13; - obj94.SkipConditions = skipConditions15; - reference95 = obj94; - ref QuestStep reference96 = ref span55[2]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1056159u, new Vector3(273.67053f, -115.97899f, -458.3963f), 1332); - num3 = 1; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_KINGMJ104_05429_Q1_000_032"), - Answer = new ExcelRef("TEXT_KINGMJ104_05429_A1_000_001") - }; - questStep12.DialogueChoices = list134; - reference96 = questStep12; - obj91.Steps = list130; - reference93 = obj91; - ref QuestSequence reference97 = ref span51[2]; - QuestSequence obj95 = new QuestSequence - { - Sequence = 2 - }; - num2 = 5; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span58 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference98 = ref span58[0]; - QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 2; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span59 = CollectionsMarshal.AsSpan(list136); - span59[0] = 1334; - span59[1] = 1332; - skipStepConditions14.InTerritory = list136; - skipConditions16.StepIf = skipStepConditions14; - SkipAetheryteCondition obj97 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span60 = CollectionsMarshal.AsSpan(list137); - span60[0] = 1334; - span60[1] = 1332; - obj97.InTerritory = list137; - skipConditions16.AetheryteShortcutIf = obj97; - obj96.SkipConditions = skipConditions16; - reference98 = obj96; - ref QuestStep reference99 = ref span58[1]; - QuestStep obj98 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = 1332; - skipStepConditions15.InTerritory = list138; - skipConditions17.StepIf = skipStepConditions15; - obj98.SkipConditions = skipConditions17; - reference99 = obj98; - ref QuestStep reference100 = ref span58[2]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1056152u, new Vector3(246.3263f, -115.9987f, -389.57812f), 1332); - num3 = 6; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span61 = CollectionsMarshal.AsSpan(list139); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list139; - reference100 = questStep13; - ref QuestStep reference101 = ref span58[3]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1056153u, new Vector3(219.25684f, -115.53908f, -402.7619f), 1332); - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span62 = CollectionsMarshal.AsSpan(list140); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list140; - reference101 = questStep14; - span58[4] = new QuestStep(EInteractionType.Interact, 1056154u, new Vector3(193.86584f, -115.92868f, -388.99823f), 1332); - obj95.Steps = list135; - reference97 = obj95; - ref QuestSequence reference102 = ref span51[3]; - QuestSequence obj99 = new QuestSequence - { - Sequence = byte.MaxValue - }; - 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 skipConditions18 = new SkipConditions(); - SkipStepConditions skipStepConditions16 = new SkipStepConditions(); - num3 = 2; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span64 = CollectionsMarshal.AsSpan(list142); - span64[0] = 1334; - span64[1] = 1332; - skipStepConditions16.InTerritory = list142; - skipConditions18.StepIf = skipStepConditions16; - SkipAetheryteCondition obj101 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span65 = CollectionsMarshal.AsSpan(list143); - span65[0] = 1334; - span65[1] = 1332; - obj101.InTerritory = list143; - skipConditions18.AetheryteShortcutIf = obj101; - obj100.SkipConditions = skipConditions18; - reference103 = obj100; - ref QuestStep reference104 = ref span63[1]; - QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions19 = new SkipConditions(); - SkipStepConditions skipStepConditions17 = new SkipStepConditions(); - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = 1332; - skipStepConditions17.InTerritory = list144; - skipConditions19.StepIf = skipStepConditions17; - obj102.SkipConditions = skipConditions19; - reference104 = obj102; - span63[2] = new QuestStep(EInteractionType.CompleteQuest, 1056159u, new Vector3(273.67053f, -115.97899f, -458.3963f), 1332); - obj99.Steps = list141; - reference102 = obj99; - questRoot14.QuestSequence = list125; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(5430); - QuestRoot questRoot15 = new QuestRoot(); - num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "WigglyMuffin"; - questRoot15.Author = list145; - num = 8; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span66 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference105 = ref span66[0]; - QuestSequence obj103 = new QuestSequence - { - Sequence = 0 - }; - num2 = 3; - 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 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 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 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 = 1 - }; - 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 skipConditions22 = new SkipConditions(); - SkipStepConditions skipStepConditions20 = new SkipStepConditions(); - num3 = 2; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span71 = CollectionsMarshal.AsSpan(list152); - span71[0] = 1334; - span71[1] = 1332; - skipStepConditions20.InTerritory = list152; - skipConditions22.StepIf = skipStepConditions20; - SkipAetheryteCondition obj109 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span72 = CollectionsMarshal.AsSpan(list153); - span72[0] = 1334; - span72[1] = 1332; - obj109.InTerritory = list153; - skipConditions22.AetheryteShortcutIf = obj109; - obj108.SkipConditions = skipConditions22; - reference109 = obj108; - ref QuestStep reference110 = ref span70[1]; - QuestStep obj110 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions23 = new SkipConditions(); - SkipStepConditions skipStepConditions21 = new SkipStepConditions(); - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = 1332; - skipStepConditions21.InTerritory = list154; - skipConditions23.StepIf = skipStepConditions21; - obj110.SkipConditions = skipConditions23; - reference110 = obj110; - span70[2] = new QuestStep(EInteractionType.Interact, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj107.Steps = list151; - reference108 = obj107; - ref QuestSequence reference111 = ref span66[2]; - QuestSequence obj111 = new QuestSequence - { - Sequence = 2 - }; - 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 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 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 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 - { - Sequence = 6 - }; - 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 skipStepConditions30 = new SkipStepConditions(); - num3 = 2; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span86 = CollectionsMarshal.AsSpan(list172); - span86[0] = 1334; - span86[1] = 1332; - skipStepConditions30.InTerritory = list172; - skipConditions32.StepIf = skipStepConditions30; - SkipAetheryteCondition obj129 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span87 = CollectionsMarshal.AsSpan(list173); - span87[0] = 1334; - span87[1] = 1332; - obj129.InTerritory = list173; - skipConditions32.AetheryteShortcutIf = obj129; - obj128.SkipConditions = skipConditions32; - reference124 = obj128; - ref QuestStep reference125 = ref span85[1]; - QuestStep obj130 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions33 = new SkipConditions(); - SkipStepConditions skipStepConditions31 = new SkipStepConditions(); - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = 1332; - skipStepConditions31.InTerritory = list174; - skipConditions33.StepIf = skipStepConditions31; - obj130.SkipConditions = skipConditions33; - reference125 = obj130; - ref QuestStep reference126 = ref span85[2]; - QuestStep obj131 = new QuestStep(EInteractionType.UseItem, 1056483u, new Vector3(236.04175f, -113.757126f, -352.92596f), 1332) - { - ItemId = 2003804u, - GroundTarget = true - }; - num3 = 6; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - Span span88 = CollectionsMarshal.AsSpan(list175); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - obj131.CompletionQuestVariablesFlags = list175; - reference126 = obj131; - ref QuestStep reference127 = ref span85[3]; - QuestStep obj132 = new QuestStep(EInteractionType.UseItem, 1056482u, new Vector3(209.09436f, -115.990005f, -411.64264f), 1332) - { - ItemId = 2003804u, - GroundTarget = true - }; - num3 = 6; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span89 = CollectionsMarshal.AsSpan(list176); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); - obj132.CompletionQuestVariablesFlags = list176; - reference127 = obj132; - span85[4] = new QuestStep(EInteractionType.UseItem, 1056481u, new Vector3(194.23206f, -115.99002f, -415.76257f), 1332) - { - ItemId = 2003804u, - GroundTarget = true - }; - obj127.Steps = list171; - reference123 = obj127; - ref QuestSequence reference128 = ref span66[7]; - QuestSequence obj133 = new QuestSequence - { - Sequence = byte.MaxValue - }; - 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 skipConditions34 = new SkipConditions(); - SkipStepConditions skipStepConditions32 = new SkipStepConditions(); - num3 = 2; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - Span span91 = CollectionsMarshal.AsSpan(list178); - span91[0] = 1334; - span91[1] = 1332; - skipStepConditions32.InTerritory = list178; - skipConditions34.StepIf = skipStepConditions32; - SkipAetheryteCondition obj135 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span92 = CollectionsMarshal.AsSpan(list179); - span92[0] = 1334; - span92[1] = 1332; - obj135.InTerritory = list179; - skipConditions34.AetheryteShortcutIf = obj135; - obj134.SkipConditions = skipConditions34; - reference129 = obj134; - ref QuestStep reference130 = ref span90[1]; - QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions35 = new SkipConditions(); - SkipStepConditions skipStepConditions33 = new SkipStepConditions(); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = 1332; - skipStepConditions33.InTerritory = list180; - skipConditions35.StepIf = skipStepConditions33; - obj136.SkipConditions = skipConditions35; - reference130 = obj136; - span90[2] = new QuestStep(EInteractionType.CompleteQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj133.Steps = list177; - reference128 = obj133; - questRoot15.QuestSequence = list146; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(5431); - QuestRoot questRoot16 = new QuestRoot(); - num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "WigglyMuffin"; - questRoot16.Author = list181; - num = 6; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span93 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference131 = ref span93[0]; - QuestSequence obj137 = new QuestSequence - { - Sequence = 0 - }; - num2 = 3; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span94 = CollectionsMarshal.AsSpan(list183); - ref QuestStep reference132 = ref span94[0]; - QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - 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 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 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 = 1 - }; - 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 skipConditions38 = new SkipConditions(); - SkipStepConditions skipStepConditions36 = new SkipStepConditions(); - num3 = 2; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span98 = CollectionsMarshal.AsSpan(list188); - span98[0] = 1334; - span98[1] = 1332; - skipStepConditions36.InTerritory = list188; - skipConditions38.StepIf = skipStepConditions36; - SkipAetheryteCondition obj143 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span99 = CollectionsMarshal.AsSpan(list189); - span99[0] = 1334; - span99[1] = 1332; - obj143.InTerritory = list189; - skipConditions38.AetheryteShortcutIf = obj143; - obj142.SkipConditions = skipConditions38; - reference135 = obj142; - ref QuestStep reference136 = ref span97[1]; - QuestStep obj144 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions39 = new SkipConditions(); - SkipStepConditions skipStepConditions37 = new SkipStepConditions(); - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 1332; - skipStepConditions37.InTerritory = list190; - skipConditions39.StepIf = skipStepConditions37; - obj144.SkipConditions = skipConditions39; - reference136 = obj144; - span97[2] = new QuestStep(EInteractionType.Interact, 2014994u, new Vector3(281.166f, -115.979f, -530.4824f), 1332); - obj141.Steps = list187; - reference134 = obj141; - ref QuestSequence reference137 = ref span93[2]; - QuestSequence obj145 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - Span span100 = CollectionsMarshal.AsSpan(list191); - ref QuestStep reference138 = ref span100[0]; - QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - 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 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 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 = 3 - }; - 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 skipConditions42 = new SkipConditions(); - SkipStepConditions skipStepConditions40 = new SkipStepConditions(); - num3 = 2; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span104 = CollectionsMarshal.AsSpan(list196); - span104[0] = 1334; - span104[1] = 1332; - skipStepConditions40.InTerritory = list196; - skipConditions42.StepIf = skipStepConditions40; - SkipAetheryteCondition obj151 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span105 = CollectionsMarshal.AsSpan(list197); - span105[0] = 1334; - span105[1] = 1332; - obj151.InTerritory = list197; - skipConditions42.AetheryteShortcutIf = obj151; - obj150.SkipConditions = skipConditions42; - reference141 = obj150; - ref QuestStep reference142 = ref span103[1]; - QuestStep obj152 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions43 = new SkipConditions(); - SkipStepConditions skipStepConditions41 = new SkipStepConditions(); - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = 1332; - skipStepConditions41.InTerritory = list198; - skipConditions43.StepIf = skipStepConditions41; - obj152.SkipConditions = skipConditions43; - reference142 = obj152; - span103[2] = new QuestStep(EInteractionType.Interact, 1056167u, new Vector3(323.84216f, -117.47925f, -489.37213f), 1332); - obj149.Steps = list195; - reference140 = obj149; - ref QuestSequence reference143 = ref span93[4]; - QuestSequence obj153 = new QuestSequence - { - Sequence = 4 - }; - num2 = 3; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span106 = CollectionsMarshal.AsSpan(list199); - ref QuestStep reference144 = ref span106[0]; - QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - 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 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 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 - }; - 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 skipConditions46 = new SkipConditions(); - SkipStepConditions skipStepConditions44 = new SkipStepConditions(); - num3 = 2; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span110 = CollectionsMarshal.AsSpan(list204); - span110[0] = 1334; - span110[1] = 1332; - skipStepConditions44.InTerritory = list204; - skipConditions46.StepIf = skipStepConditions44; - SkipAetheryteCondition obj159 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span111 = CollectionsMarshal.AsSpan(list205); - span111[0] = 1334; - span111[1] = 1332; - obj159.InTerritory = list205; - skipConditions46.AetheryteShortcutIf = obj159; - obj158.SkipConditions = skipConditions46; - reference147 = obj158; - ref QuestStep reference148 = ref span109[1]; - QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions47 = new SkipConditions(); - SkipStepConditions skipStepConditions45 = new SkipStepConditions(); - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 1332; - skipStepConditions45.InTerritory = list206; - skipConditions47.StepIf = skipStepConditions45; - obj160.SkipConditions = skipConditions47; - reference148 = obj160; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj157.Steps = list203; - reference146 = obj157; - questRoot16.QuestSequence = list182; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(5432); - QuestRoot questRoot17 = new QuestRoot(); - num = 1; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "WigglyMuffin"; - questRoot17.Author = list207; - num = 4; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span112 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference149 = ref span112[0]; - QuestSequence obj161 = new QuestSequence - { - Sequence = 0 - }; - num2 = 3; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span113 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference150 = ref span113[0]; - QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - 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 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 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 - }; - 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 skipConditions50 = new SkipConditions(); - SkipStepConditions skipStepConditions48 = new SkipStepConditions(); - num3 = 2; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span117 = CollectionsMarshal.AsSpan(list214); - span117[0] = 1334; - span117[1] = 1332; - skipStepConditions48.InTerritory = list214; - skipConditions50.StepIf = skipStepConditions48; - SkipAetheryteCondition obj167 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span118 = CollectionsMarshal.AsSpan(list215); - span118[0] = 1334; - span118[1] = 1332; - obj167.InTerritory = list215; - skipConditions50.AetheryteShortcutIf = obj167; - obj166.SkipConditions = skipConditions50; - reference153 = obj166; - ref QuestStep reference154 = ref span116[1]; - QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions51 = new SkipConditions(); - SkipStepConditions skipStepConditions49 = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 1332; - skipStepConditions49.InTerritory = list216; - skipConditions51.StepIf = skipStepConditions49; - obj168.SkipConditions = skipConditions51; - reference154 = obj168; - span116[2] = new QuestStep(EInteractionType.Interact, 2014995u, new Vector3(247.3097f, -116.025f, -532.7819f), 1332); - obj165.Steps = list213; - reference152 = obj165; - ref QuestSequence reference155 = ref span112[2]; - QuestSequence obj169 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span119 = CollectionsMarshal.AsSpan(list217); - ref QuestStep reference156 = ref span119[0]; - QuestStep obj170 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - 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; - reference155 = obj169; - ref QuestSequence reference158 = ref span112[3]; - QuestSequence obj173 = new QuestSequence - { - Sequence = byte.MaxValue - }; - 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) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions54 = new SkipConditions(); - SkipStepConditions skipStepConditions52 = new SkipStepConditions(); - num3 = 2; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span123 = CollectionsMarshal.AsSpan(list222); - span123[0] = 1334; - span123[1] = 1332; - skipStepConditions52.InTerritory = list222; - skipConditions54.StepIf = skipStepConditions52; - SkipAetheryteCondition obj175 = new SkipAetheryteCondition - { - 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 skipStepConditions56 = new SkipStepConditions(); - num3 = 2; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span130 = CollectionsMarshal.AsSpan(list232); - span130[0] = 1334; - span130[1] = 1332; - skipStepConditions56.InTerritory = list232; - skipConditions58.StepIf = skipStepConditions56; - SkipAetheryteCondition obj183 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span131 = CollectionsMarshal.AsSpan(list233); - span131[0] = 1334; - span131[1] = 1332; - obj183.InTerritory = list233; - skipConditions58.AetheryteShortcutIf = obj183; - obj182.SkipConditions = skipConditions58; - reference165 = obj182; - ref QuestStep reference166 = ref span129[1]; - QuestStep obj184 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions59 = new SkipConditions(); - SkipStepConditions skipStepConditions57 = new SkipStepConditions(); - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 1332; - skipStepConditions57.InTerritory = list234; - skipConditions59.StepIf = skipStepConditions57; - obj184.SkipConditions = skipConditions59; - reference166 = obj184; - ref QuestStep reference167 = ref span129[2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1056173u, new Vector3(293.96497f, -98f, -281.6358f), 1332); - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new DialogueChoice - { - 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 - }; - 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 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 - }; - num3 = 2; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span134 = CollectionsMarshal.AsSpan(list239); - span134[0] = 1334; - span134[1] = 1332; - obj188.InTerritory = list239; - 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 skipConditions61 = new SkipConditions(); - SkipStepConditions skipStepConditions59 = new SkipStepConditions(); - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 1332; - skipStepConditions59.InTerritory = list240; - skipConditions61.StepIf = skipStepConditions59; - obj189.SkipConditions = skipConditions61; - reference171 = obj189; - ref QuestStep reference172 = ref span132[2]; - QuestStep questStep16 = new QuestStep(EInteractionType.SinglePlayerDuty, 1056268u, new Vector3(264.7898f, -115f, -630.7317f), 1332); - SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = "Not implemented in Boss Mod yet."; - singlePlayerDutyOptions.Notes = list241; - questStep16.SinglePlayerDutyOptions = singlePlayerDutyOptions; - reference172 = questStep16; - obj186.Steps = list237; - reference169 = obj186; - span125[6] = new QuestSequence - { - Sequence = 6 - }; - ref QuestSequence reference173 = ref span125[7]; - QuestSequence obj190 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 3; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span135 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference174 = ref span135[0]; - QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions62 = new SkipConditions(); - SkipStepConditions skipStepConditions60 = new SkipStepConditions(); - num3 = 2; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span136 = CollectionsMarshal.AsSpan(list243); - span136[0] = 1334; - span136[1] = 1332; - skipStepConditions60.InTerritory = list243; - skipConditions62.StepIf = skipStepConditions60; - SkipAetheryteCondition obj192 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span137 = CollectionsMarshal.AsSpan(list244); - span137[0] = 1334; - span137[1] = 1332; - obj192.InTerritory = list244; - skipConditions62.AetheryteShortcutIf = obj192; - obj191.SkipConditions = skipConditions62; - reference174 = obj191; - ref QuestStep reference175 = ref span135[1]; - QuestStep obj193 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions63 = new SkipConditions(); - SkipStepConditions skipStepConditions61 = new SkipStepConditions(); - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 1332; - skipStepConditions61.InTerritory = list245; - skipConditions63.StepIf = skipStepConditions61; - obj193.SkipConditions = skipConditions63; - reference175 = obj193; - span135[2] = new QuestStep(EInteractionType.CompleteQuest, 1056175u, new Vector3(280.59814f, -115.97899f, -422.78174f), 1332); - obj190.Steps = list242; - reference173 = obj190; - questRoot18.QuestSequence = list226; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(5434); - QuestRoot questRoot19 = new QuestRoot(); - num = 1; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "WigglyMuffin"; - questRoot19.Author = list246; - num = 5; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span138 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference176 = ref span138[0]; - QuestSequence obj194 = new QuestSequence - { - Sequence = 0 - }; - num2 = 3; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span139 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference177 = ref span139[0]; - QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions64 = new SkipConditions(); - SkipStepConditions skipStepConditions62 = new SkipStepConditions(); - num3 = 2; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span140 = CollectionsMarshal.AsSpan(list249); - span140[0] = 1334; - span140[1] = 1332; - skipStepConditions62.InTerritory = list249; - skipConditions64.StepIf = skipStepConditions62; - SkipAetheryteCondition obj196 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span141 = CollectionsMarshal.AsSpan(list250); - span141[0] = 1334; - span141[1] = 1332; - obj196.InTerritory = list250; - skipConditions64.AetheryteShortcutIf = obj196; - obj195.SkipConditions = skipConditions64; - reference177 = obj195; - ref QuestStep reference178 = ref span139[1]; - QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions65 = new SkipConditions(); - SkipStepConditions skipStepConditions63 = new SkipStepConditions(); - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = 1332; - skipStepConditions63.InTerritory = list251; - skipConditions65.StepIf = skipStepConditions63; - obj197.SkipConditions = skipConditions65; - reference178 = obj197; - span139[2] = new QuestStep(EInteractionType.AcceptQuest, 1056175u, new Vector3(280.59814f, -115.97899f, -422.78174f), 1332); - obj194.Steps = list248; - reference176 = obj194; - ref QuestSequence reference179 = ref span138[1]; - QuestSequence obj198 = new QuestSequence - { - Sequence = 1 - }; - num2 = 3; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span142 = CollectionsMarshal.AsSpan(list252); - ref QuestStep reference180 = ref span142[0]; - QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions66 = new SkipConditions(); - SkipStepConditions skipStepConditions64 = new SkipStepConditions(); - num3 = 2; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span143 = CollectionsMarshal.AsSpan(list253); - span143[0] = 1334; - span143[1] = 1332; - skipStepConditions64.InTerritory = list253; - skipConditions66.StepIf = skipStepConditions64; - SkipAetheryteCondition obj200 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - Span span144 = CollectionsMarshal.AsSpan(list254); - span144[0] = 1334; - span144[1] = 1332; - obj200.InTerritory = list254; - skipConditions66.AetheryteShortcutIf = obj200; - obj199.SkipConditions = skipConditions66; - reference180 = obj199; - ref QuestStep reference181 = ref span142[1]; - QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions67 = new SkipConditions(); - SkipStepConditions skipStepConditions65 = new SkipStepConditions(); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = 1332; - skipStepConditions65.InTerritory = list255; - skipConditions67.StepIf = skipStepConditions65; - obj201.SkipConditions = skipConditions67; - reference181 = obj201; - span142[2] = new QuestStep(EInteractionType.Interact, 1056179u, new Vector3(281.17798f, -115f, -643.061f), 1332); - obj198.Steps = list252; - reference179 = obj198; - ref QuestSequence reference182 = ref span138[2]; - QuestSequence obj202 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span145 = CollectionsMarshal.AsSpan(list256); - ref QuestStep reference183 = ref span145[0]; - QuestStep obj203 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions68 = new SkipConditions(); - SkipStepConditions skipStepConditions66 = new SkipStepConditions(); - num3 = 2; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span146 = CollectionsMarshal.AsSpan(list257); - span146[0] = 1334; - span146[1] = 1332; - skipStepConditions66.InTerritory = list257; - skipConditions68.StepIf = skipStepConditions66; - SkipAetheryteCondition obj204 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span147 = CollectionsMarshal.AsSpan(list258); - span147[0] = 1334; - span147[1] = 1332; - obj204.InTerritory = list258; - skipConditions68.AetheryteShortcutIf = obj204; - obj203.SkipConditions = skipConditions68; - reference183 = obj203; - ref QuestStep reference184 = ref span145[1]; - QuestStep obj205 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions69 = new SkipConditions(); - SkipStepConditions skipStepConditions67 = new SkipStepConditions(); - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 1332; - skipStepConditions67.InTerritory = list259; - skipConditions69.StepIf = skipStepConditions67; - obj205.SkipConditions = skipConditions69; - reference184 = obj205; - span145[2] = new QuestStep(EInteractionType.Interact, 2014998u, new Vector3(281.0471f, -98f, -277.821f), 1332); - obj202.Steps = list256; - reference182 = obj202; - ref QuestSequence reference185 = ref span138[3]; - QuestSequence obj206 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1056190u, new Vector3(-1.8158569f, 53.200012f, 768.24585f), 1192) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj206.Steps = list260; - reference185 = obj206; - ref QuestSequence reference186 = ref span138[4]; - QuestSequence obj207 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056199u, new Vector3(17.31897f, 38.80659f, -410.5135f), 1186) - { - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineResolution - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj207.Steps = list261; - reference186 = obj207; - questRoot19.QuestSequence = list247; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(5435); - QuestRoot questRoot20 = new QuestRoot(); - num = 1; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "WigglyMuffin"; - questRoot20.Author = list262; - num = 4; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span148 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference187 = ref span148[0]; - QuestSequence obj208 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) - { - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTrueVue - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj208.Steps = list264; - reference187 = obj208; - ref QuestSequence reference188 = ref span148[1]; - QuestSequence obj209 = new QuestSequence - { - Sequence = 1 - }; - num2 = 2; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - Span span149 = CollectionsMarshal.AsSpan(list265); - span149[0] = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) - { - TargetTerritoryId = (ushort)1223 - }; - span149[1] = new QuestStep(EInteractionType.Interact, 1056301u, new Vector3(5.5999756f, 0f, 2.822876f), 1223); - obj209.Steps = list265; - reference188 = obj209; - ref QuestSequence reference189 = ref span148[2]; - QuestSequence obj210 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1056301u, new Vector3(5.5999756f, 0f, 2.822876f), 1223); - obj210.Steps = list266; - reference189 = obj210; - ref QuestSequence reference190 = ref span148[3]; - QuestSequence obj211 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span150 = CollectionsMarshal.AsSpan(list267); - ref QuestStep reference191 = ref span150[0]; - QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224 - }; - SkipConditions skipConditions70 = new SkipConditions(); - SkipStepConditions skipStepConditions68 = new SkipStepConditions(); - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 1224; - skipStepConditions68.NotInTerritory = list268; - skipConditions70.StepIf = skipStepConditions68; - obj212.SkipConditions = skipConditions70; - reference191 = obj212; - span150[1] = new QuestStep(EInteractionType.CompleteQuest, 1056303u, new Vector3(0.2288208f, -2.3919762E-12f, -13.229614f), 1224) - { - NextQuestId = new QuestId(5436) - }; - obj211.Steps = list267; - reference190 = obj211; - questRoot20.QuestSequence = list263; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(5436); - QuestRoot questRoot21 = new QuestRoot(); - num = 1; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "WigglyMuffin"; - questRoot21.Author = list269; - num = 3; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span151 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference192 = ref span151[0]; - QuestSequence obj213 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span152 = CollectionsMarshal.AsSpan(list271); - span152[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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 - }; - 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 - } - }; - obj214.Steps = list272; - reference193 = obj214; - ref QuestSequence reference194 = ref span151[2]; - QuestSequence obj215 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span153 = CollectionsMarshal.AsSpan(list273); - ref QuestStep reference195 = ref span153[0]; - QuestStep obj216 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224 - }; - SkipConditions skipConditions71 = new SkipConditions(); - SkipStepConditions skipStepConditions69 = new SkipStepConditions(); - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = 1224; - skipStepConditions69.NotInTerritory = list274; - skipConditions71.StepIf = skipStepConditions69; - obj216.SkipConditions = skipConditions71; - reference195 = obj216; - span153[1] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) - { - NextQuestId = new QuestId(5437) - }; - obj215.Steps = list273; - reference194 = obj215; - questRoot21.QuestSequence = list270; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(5437); - QuestRoot questRoot22 = new QuestRoot(); - num = 1; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "WigglyMuffin"; - questRoot22.Author = list275; - num = 5; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span154 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference196 = ref span154[0]; - QuestSequence obj217 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span155 = CollectionsMarshal.AsSpan(list277); - span155[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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 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 - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTrueVue - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj218.Steps = list278; - reference197 = obj218; - ref QuestSequence reference198 = ref span154[2]; - QuestSequence obj219 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span156 = CollectionsMarshal.AsSpan(list279); - span156[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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 list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) - { - DutyOptions = new DutyOptions - { - ContentFinderConditionId = 1070u - } - }; - obj220.Steps = list280; - reference199 = obj220; - ref QuestSequence reference200 = ref span154[4]; - QuestSequence obj221 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span157 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference201 = ref span157[0]; - QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224 - }; - SkipConditions skipConditions72 = new SkipConditions(); - SkipStepConditions skipStepConditions70 = new SkipStepConditions(); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = 1224; - skipStepConditions70.NotInTerritory = list282; - skipConditions72.StepIf = skipStepConditions70; - obj222.SkipConditions = skipConditions72; - reference201 = obj222; - span157[1] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) - { - NextQuestId = new QuestId(5438) - }; - obj221.Steps = list281; - reference200 = obj221; - questRoot22.QuestSequence = list276; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(5438); - QuestRoot questRoot23 = new QuestRoot(); - num = 1; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - CollectionsMarshal.AsSpan(list283)[0] = "WigglyMuffin"; - questRoot23.Author = list283; - num = 5; - List list284 = new List(num); - CollectionsMarshal.SetCount(list284, num); - Span span158 = CollectionsMarshal.AsSpan(list284); - ref QuestSequence reference202 = ref span158[0]; - QuestSequence obj223 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span159 = CollectionsMarshal.AsSpan(list285); - span159[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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 - }; - 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 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 - }; - 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 - }; - 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 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 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) - }; - obj227.Steps = list291; - reference208 = obj227; - questRoot23.QuestSequence = list284; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(5439); - QuestRoot questRoot24 = new QuestRoot(); - num = 1; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "WigglyMuffin"; - questRoot24.Author = list292; - num = 4; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span164 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference209 = ref span164[0]; - QuestSequence obj228 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span165 = CollectionsMarshal.AsSpan(list294); - span165[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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 list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) - { - DutyOptions = new DutyOptions - { - ContentFinderConditionId = 1072u - } - }; - obj229.Steps = list295; - reference210 = obj229; - span164[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference211 = ref span164[3]; - QuestSequence obj230 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) - { - NextQuestId = new QuestId(5440) - }; - obj230.Steps = list296; - reference211 = obj230; - questRoot24.QuestSequence = list293; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(5440); - QuestRoot questRoot25 = new QuestRoot(); - num = 1; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "WigglyMuffin"; - questRoot25.Author = list297; - num = 6; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span166 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference212 = ref span166[0]; - QuestSequence obj231 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span167 = CollectionsMarshal.AsSpan(list299); - span167[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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 - }; - 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 - } - }; - obj232.Steps = list300; - reference213 = obj232; - span166[2] = new QuestSequence - { - Sequence = 2 - }; - ref QuestSequence reference214 = ref span166[3]; - QuestSequence obj233 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1056316u, new Vector3(-3.5858765f, 0.25695172f, -4.3793945f), 1223); - obj233.Steps = list301; - reference214 = obj233; - ref QuestSequence reference215 = ref span166[4]; - QuestSequence obj234 = new QuestSequence - { - Sequence = 4 - }; - num2 = 2; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - Span span168 = CollectionsMarshal.AsSpan(list302); - span168[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) - { - TargetTerritoryId = (ushort)1224, - AetheryteShortcut = EAetheryteLocation.SolutionNine, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.SolutionNine, - To = EAetheryteLocation.SolutionNineTheArcadion - }, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - 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") - }; - 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 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 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 - }; - 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 - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj236.Steps = list307; - reference218 = obj236; - ref QuestSequence reference219 = ref span169[1]; - QuestSequence obj237 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1057901u, new Vector3(-33.951355f, 5.0000005f, -130.87665f), 130) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj237.Steps = list308; - reference219 = obj237; - ref QuestSequence reference220 = ref span169[2]; - QuestSequence obj238 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span170 = CollectionsMarshal.AsSpan(list309); - ref QuestStep reference221 = ref span170[0]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1057909u, new Vector3(29.984009f, 4.0999947f, -152.63605f), 130); - num3 = 6; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - Span span171 = CollectionsMarshal.AsSpan(list310); - span171[0] = null; - span171[1] = null; - span171[2] = null; - span171[3] = null; - span171[4] = null; - span171[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list310; - reference221 = questStep20; - span170[1] = new QuestStep(EInteractionType.Interact, 1057906u, new Vector3(33.6156f, 3.9999995f, -140.91711f), 130); - obj238.Steps = list309; - reference220 = obj238; - ref QuestSequence reference222 = ref span169[3]; - QuestSequence obj239 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - Span span172 = CollectionsMarshal.AsSpan(list311); - ref QuestStep reference223 = ref span172[0]; - QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1057911u, new Vector3(10.36084f, 7.9999804f, -109.26984f), 130); - num3 = 6; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span173 = CollectionsMarshal.AsSpan(list312); - span173[0] = null; - span173[1] = null; - span173[2] = null; - span173[3] = null; - span173[4] = null; - span173[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list312; - reference223 = questStep21; - span172[1] = new QuestStep(EInteractionType.Interact, 1057912u, new Vector3(15.396301f, 6.999997f, -82.993835f), 130); - obj239.Steps = list311; - reference222 = obj239; - ref QuestSequence reference224 = ref span169[4]; - QuestSequence obj240 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1058069u, new Vector3(-15.121765f, 7.999998f, -112.81f), 130); - obj240.Steps = list313; - reference224 = obj240; - ref QuestSequence reference225 = ref span169[5]; - QuestSequence obj241 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1057902u, new Vector3(-12.100403f, 7.999999f, -110.76526f), 130); - obj241.Steps = list314; - reference225 = obj241; - ref QuestSequence reference226 = ref span169[6]; - QuestSequence obj242 = new QuestSequence - { - Sequence = 6 - }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); - obj242.Steps = list315; - reference226 = obj242; - ref QuestSequence reference227 = ref span169[7]; - QuestSequence obj243 = new QuestSequence - { - Sequence = 7 - }; - num2 = 2; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - Span span174 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference228 = ref span174[0]; - QuestStep obj244 = new QuestStep(EInteractionType.Interact, 1055771u, new Vector3(-37.369385f, 5.0000005f, -130.14423f), 130) - { - IgnoreQuestMarker = true - }; - num3 = 3; - 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") - }; - 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") - }; - span175[2] = new DialogueChoice - { - Type = EDialogChoiceType.YesNo, - ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", - Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_CONFIRM_100_004") - }; - obj244.DialogueChoices = list317; - reference228 = obj244; - ref QuestStep reference229 = ref span174[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.FateAction, null, new Vector3(-38.322124f, 3.9999998f, -144.23155f), 130); - num3 = 4; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span176 = CollectionsMarshal.AsSpan(list318); - span176[0] = new FateActionTarget - { - DataId = 18862u, - Action = EAction.CheerRhythmYellow - }; - span176[1] = new FateActionTarget - { - DataId = 18860u, - Action = EAction.CheerRhythmBlue - }; - span176[2] = new FateActionTarget - { - DataId = 18861u, - Action = EAction.CheerRhythmGreen - }; - span176[3] = new FateActionTarget - { - DataId = 18859u, - Action = EAction.CheerRhythmRed - }; - questStep22.FateActionTargets = list318; - reference229 = questStep22; - obj243.Steps = list316; - reference227 = obj243; - ref QuestSequence reference230 = ref span169[8]; - QuestSequence obj245 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) - { - NextQuestId = new QuestId(5445) - }; - obj245.Steps = list319; - reference230 = obj245; - questRoot26.QuestSequence = list306; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(5445); - QuestRoot questRoot27 = new QuestRoot(); - num = 1; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "WigglyMuffin"; - questRoot27.Author = list320; - questRoot27.IsSeasonalQuest = true; - questRoot27.SeasonalQuestExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc); - num = 3; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span177 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference231 = ref span177[0]; - QuestSequence obj246 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) - { - AetheryteShortcut = EAetheryteLocation.Uldah, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj246.Steps = list322; - reference231 = obj246; - ref QuestSequence reference232 = ref span177[1]; - QuestSequence obj247 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); - obj247.Steps = list323; - reference232 = obj247; - ref QuestSequence reference233 = ref span177[2]; - QuestSequence obj248 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); - obj248.Steps = list324; - reference233 = obj248; - questRoot27.QuestSequence = list321; - AddQuest(questId27, questRoot27); } } diff --git a/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs b/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs index 1e42eaf..1fdeeaf 100644 --- a/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs +++ b/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Runtime.InteropServices; using System.Text.Json; using System.Text.Json.Serialization; @@ -12,24 +11,20 @@ public sealed class StringListOrValueConverter : JsonConverter> { if (reader.TokenType == JsonTokenType.String) { - int num = 1; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = reader.GetString(); - return list; + return new List(1) { reader.GetString() }; } if (reader.TokenType != JsonTokenType.StartArray) { throw new JsonException(); } reader.Read(); - List list2 = new List(); + List list = new List(); while (reader.TokenType != JsonTokenType.EndArray) { - list2.Add(reader.GetString()); + list.Add(reader.GetString()); reader.Read(); } - return list2; + return list; } public override void Write(Utf8JsonWriter writer, List? value, JsonSerializerOptions options) diff --git a/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs b/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs deleted file mode 100644 index cff0f70..0000000 --- a/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Questionable.Model.Common.Converter; - -public sealed class VectorListConverter : JsonConverter> -{ - private static readonly VectorConverter ItemConverter = new VectorConverter(); - - public override List Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartArray) - { - throw new JsonException(); - } - List list = new List(); - while (reader.Read()) - { - if (reader.TokenType == JsonTokenType.EndArray) - { - return list; - } - list.Add(ItemConverter.Read(ref reader, typeof(Vector3), options)); - } - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, List value, JsonSerializerOptions options) - { - writer.WriteStartArray(); - foreach (Vector3 item in value) - { - ItemConverter.Write(writer, item, options); - } - writer.WriteEndArray(); - } -} diff --git a/Questionable.Model/Questionable.Model.CommonClassJob b/Questionable.Model/Questionable.Model.CommonClassJob index b56a76d..8a2ad38 100644 --- a/Questionable.Model/Questionable.Model.CommonClassJob +++ b/Questionable.Model/Questionable.Model.CommonClassJob @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-classjob.json", + "$id": "https://git.carvel.li//liza/Questionable/raw/refs/heads/main/Questionable.Model/common-classjob.json", "type": "string", "enum": [ "Gladiator", diff --git a/Questionable.Model/Questionable.Model.CommonCompletionFlags b/Questionable.Model/Questionable.Model.CommonCompletionFlags index 27a6325..caf61fb 100644 --- a/Questionable.Model/Questionable.Model.CommonCompletionFlags +++ b/Questionable.Model/Questionable.Model.CommonCompletionFlags @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-completionflags.json", + "$id": "https://git.carvel.li//liza/Questionable/raw/refs/heads/main/Questionable.Model/common-completionflags.json", "type": "array", "description": "Quest Variables that dictate whether or not this step is skipped: null is don't check, positive values need to be set, negative values need to be unset", "items": { diff --git a/Questionable.Model/Questionable.Model.CommonRequiredVariables b/Questionable.Model/Questionable.Model.CommonRequiredVariables deleted file mode 100644 index e827599..0000000 --- a/Questionable.Model/Questionable.Model.CommonRequiredVariables +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-requiredvariables.json", - "type": "array", - "description": "Certain quests (primarily beast tribes/allied societies) have a RNG element to spawning targets, and the step should be skipped in its entirety if none of the sets below match", - "minItems": 6, - "maxItems": 6, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "type": [ - "number", - "object" - ], - "properties": { - "High": { - "type": [ - "number", - "null" - ], - "minimum": 0, - "maximum": 15 - }, - "Low": { - "type": [ - "number", - "null" - ], - "minimum": 0, - "maximum": 15 - } - }, - "minimum": 0, - "maximum": 255 - } - } -} diff --git a/Questionable.Model/Questionable.Model.CommonVector3 b/Questionable.Model/Questionable.Model.CommonVector3 index 8a1119c..1024bc0 100644 --- a/Questionable.Model/Questionable.Model.CommonVector3 +++ b/Questionable.Model/Questionable.Model.CommonVector3 @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json", + "$id": "https://git.carvel.li//liza/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json", "type": "object", "description": "Position in the world", "properties": { diff --git a/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs b/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs index 8476b03..4b17700 100644 --- a/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs +++ b/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs @@ -202,38 +202,6 @@ public sealed class ActionConverter : EnumConverter { EAction.TreatersTrick, "Treater's Trick" - }, - { - EAction.CheerRhythmRed, - "Cheer Rhythm: Red" - }, - { - EAction.CheerRhythmBlue, - "Cheer Rhythm: Blue" - }, - { - EAction.CheerRhythmGreen, - "Cheer Rhythm: Green" - }, - { - 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.Converter/InteractionTypeConverter.cs b/Questionable.Model/Questionable.Model.Questing.Converter/InteractionTypeConverter.cs index 8036ad4..9df6f07 100644 --- a/Questionable.Model/Questionable.Model.Questing.Converter/InteractionTypeConverter.cs +++ b/Questionable.Model/Questionable.Model.Questing.Converter/InteractionTypeConverter.cs @@ -126,10 +126,6 @@ public sealed class InteractionTypeConverter : EnumConverter { EInteractionType.CompleteQuest, "CompleteQuest" - }, - { - EInteractionType.FateAction, - "FateAction" } }; diff --git a/Questionable.Model/Questionable.Model.Questing.Converter/StatusConverter.cs b/Questionable.Model/Questionable.Model.Questing.Converter/StatusConverter.cs index 68a1bed..ea28d3a 100644 --- a/Questionable.Model/Questionable.Model.Questing.Converter/StatusConverter.cs +++ b/Questionable.Model/Questionable.Model.Questing.Converter/StatusConverter.cs @@ -5,17 +5,11 @@ namespace Questionable.Model.Questing.Converter; public sealed class StatusConverter : EnumConverter { - private static readonly Dictionary Values = new Dictionary + private static readonly Dictionary Values = new Dictionary { { - { - EStatus.Hidden, - "Hidden" - }, - { - EStatus.FaceInTheCrowd, - "FaceInTheCrowd" - } - }; + EStatus.Hidden, + "Hidden" + } }; public StatusConverter() : base((IReadOnlyDictionary)Values) diff --git a/Questionable.Model/Questionable.Model.Questing/Converter/ElementIdConverter.cs b/Questionable.Model/Questionable.Model.Questing/Converter/ElementIdConverter.cs new file mode 100644 index 0000000..a5c9746 --- /dev/null +++ b/Questionable.Model/Questionable.Model.Questing/Converter/ElementIdConverter.cs @@ -0,0 +1,21 @@ +using System; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Questionable.Model.Questing.Converter; + +public sealed class ElementIdConverter : JsonConverter +{ + public override ElementId Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType == JsonTokenType.Number) + return new QuestId(reader.GetUInt16()); + else + return ElementId.FromString(reader.GetString() ?? throw new JsonException()); + } + + public override void Write(Utf8JsonWriter writer, ElementId value, JsonSerializerOptions options) + { + writer.WriteStringValue(value.ToString()); + } +} diff --git a/Questionable.Model/Questionable.Model.Questing/Converter/ElementIdListConverter.cs b/Questionable.Model/Questionable.Model.Questing/Converter/ElementIdListConverter.cs new file mode 100644 index 0000000..34d6768 --- /dev/null +++ b/Questionable.Model/Questionable.Model.Questing/Converter/ElementIdListConverter.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Questionable.Model.Questing.Converter; + +public sealed class ElementIdListConverter : JsonConverter> +{ + public override List Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartArray) + throw new JsonException(); + + reader.Read(); + + List values = []; + while (reader.TokenType != JsonTokenType.EndArray) + { + + if (reader.TokenType == JsonTokenType.Number) + values.Add(new QuestId(reader.GetUInt16())); + else + values.Add(ElementId.FromString(reader.GetString() ?? throw new JsonException())); + + reader.Read(); + } + + return values; + } + + public override void Write(Utf8JsonWriter writer, List value, JsonSerializerOptions options) + { + writer.WriteStartArray(); + foreach (ElementId elementId in value) + { + writer.WriteStringValue(elementId.ToString()); + } + writer.WriteEndArray(); + } +} diff --git a/Questionable.Model/Questionable.Model.Questing/Converter/QuestWorkConfigConverter.cs b/Questionable.Model/Questionable.Model.Questing/Converter/QuestWorkConfigConverter.cs new file mode 100644 index 0000000..65c97d1 --- /dev/null +++ b/Questionable.Model/Questionable.Model.Questing/Converter/QuestWorkConfigConverter.cs @@ -0,0 +1,63 @@ +using System; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Questionable.Model.Questing.Converter; + +public sealed class QuestWorkConfigConverter : JsonConverter +{ + public override QuestWorkValue Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType == JsonTokenType.Number) + return new QuestWorkValue(reader.GetByte()); + + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException(); + + byte? high = null, low = null; + EQuestWorkMode mode = EQuestWorkMode.Bitwise; + while (reader.Read()) + { + switch (reader.TokenType) + { + case JsonTokenType.PropertyName: + string? propertyName = reader.GetString(); + if (propertyName == null || !reader.Read()) + throw new JsonException(); + + switch (propertyName) + { + case nameof(QuestWorkValue.High): + high = reader.GetByte(); + break; + + case nameof(QuestWorkValue.Low): + low = reader.GetByte(); + break; + + case nameof(QuestWorkValue.Mode): + mode = new QuestWorkModeConverter().Read(ref reader, typeof(EQuestWorkMode), options); + break; + + default: + throw new JsonException(); + } + + break; + + case JsonTokenType.EndObject: + return new QuestWorkValue(high, low, mode); + + default: + throw new JsonException(); + } + } + + throw new JsonException(); + } + + public override void Write(Utf8JsonWriter writer, QuestWorkValue value, JsonSerializerOptions options) + { + writer.WriteStringValue(value.ToString()); + } +} diff --git a/Questionable.Model/Questionable.Model.Questing/DutyOptions.cs b/Questionable.Model/Questionable.Model.Questing/DutyOptions.cs index 2d961eb..a9c08d5 100644 --- a/Questionable.Model/Questionable.Model.Questing/DutyOptions.cs +++ b/Questionable.Model/Questionable.Model.Questing/DutyOptions.cs @@ -11,6 +11,4 @@ public class DutyOptions public bool LowPriority { get; set; } public List Notes { get; set; } = new List(); - - public EDutyMode? DutyMode { get; set; } } diff --git a/Questionable.Model/Questionable.Model.Questing/EAction.cs b/Questionable.Model/Questionable.Model.Questing/EAction.cs index 50f443b..625eea0 100644 --- a/Questionable.Model/Questionable.Model.Questing/EAction.cs +++ b/Questionable.Model/Questionable.Model.Questing/EAction.cs @@ -62,14 +62,6 @@ public enum EAction BigSneeze = 1765, TrickstersTreat = 44517, TreatersTrick = 44518, - CheerRhythmRed = 44501, - CheerRhythmBlue = 44502, - CheerRhythmGreen = 44503, - CheerRhythmYellow = 44504, - PruningPirouette = 45127, - RoaringEggscapade = 42039, - TheSpriganator = 42038, - CurtainCall = 11063, Prospect = 227, CollectMiner = 240, LuckOfTheMountaineer = 4081, diff --git a/Questionable.Model/Questionable.Model.Questing/EDutyMode.cs b/Questionable.Model/Questionable.Model.Questing/EDutyMode.cs deleted file mode 100644 index eba16ca..0000000 --- a/Questionable.Model/Questionable.Model.Questing/EDutyMode.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Questionable.Model.Questing; - -public enum EDutyMode -{ - Support, - UnsyncSolo, - UnsyncParty -} diff --git a/Questionable.Model/Questionable.Model.Questing/EInteractionType.cs b/Questionable.Model/Questionable.Model.Questing/EInteractionType.cs index 8a9f1e8..beafa71 100644 --- a/Questionable.Model/Questionable.Model.Questing/EInteractionType.cs +++ b/Questionable.Model/Questionable.Model.Questing/EInteractionType.cs @@ -35,6 +35,5 @@ public enum EInteractionType UnlockTaxiStand, Instruction, AcceptQuest, - CompleteQuest, - FateAction + CompleteQuest } diff --git a/Questionable.Model/Questionable.Model.Questing/EStatus.cs b/Questionable.Model/Questionable.Model.Questing/EStatus.cs index 4201de1..6bba960 100644 --- a/Questionable.Model/Questionable.Model.Questing/EStatus.cs +++ b/Questionable.Model/Questionable.Model.Questing/EStatus.cs @@ -10,7 +10,6 @@ public enum EStatus : uint GatheringRateUp = 218u, Prospect = 225u, Hidden = 614u, - FaceInTheCrowd = 1494u, Eukrasia = 2606u, Jog = 4209u } diff --git a/Questionable.Model/Questionable.Model.Questing/ElementId.cs b/Questionable.Model/Questionable.Model.Questing/ElementId.cs index 661f8ae..03b94c3 100644 --- a/Questionable.Model/Questionable.Model.Questing/ElementId.cs +++ b/Questionable.Model/Questionable.Model.Questing/ElementId.cs @@ -95,7 +95,7 @@ public abstract class ElementId : IComparable, IEquatable if (value.StartsWith("A")) { value = value.Substring(1); - string[] array = value.Split('x'); + string[] array = value.Split(new char[1] { 'x' }); if (array.Length == 2) { return new AlliedSocietyDailyId(byte.Parse(array[0], CultureInfo.InvariantCulture), byte.Parse(array[1], CultureInfo.InvariantCulture)); diff --git a/Questionable.Model/Questionable.Model.Questing/FateActionTarget.cs b/Questionable.Model/Questionable.Model.Questing/FateActionTarget.cs deleted file mode 100644 index 3903794..0000000 --- a/Questionable.Model/Questionable.Model.Questing/FateActionTarget.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Questionable.Model.Questing; - -public sealed class FateActionTarget -{ - public uint DataId { get; set; } - - public EAction Action { get; set; } -} diff --git a/Questionable.Model/Questionable.Model.Questing/FateDefinition.cs b/Questionable.Model/Questionable.Model.Questing/FateDefinition.cs deleted file mode 100644 index 6ed25f5..0000000 --- a/Questionable.Model/Questionable.Model.Questing/FateDefinition.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using System.Text.Json.Serialization; -using Questionable.Model.Common; -using Questionable.Model.Common.Converter; - -namespace Questionable.Model.Questing; - -public sealed class FateDefinition -{ - public string Name { get; set; } = string.Empty; - - public string Description { get; set; } = string.Empty; - - public ushort TerritoryId { get; set; } - - public EAetheryteLocation Aetheryte { get; set; } - - [JsonConverter(typeof(VectorConverter))] - public Vector3 Position { get; set; } - - public List Targets { get; set; } = new List(); - - public EStatus? RequiredStatusId { get; set; } - - public uint? TransformNpcDataId { get; set; } - - [JsonConverter(typeof(VectorConverter))] - public Vector3? TransformNpcPosition { get; set; } - - public List? TransformDialogueChoices { get; set; } - - public ushort? RequiredQuestId { get; set; } - - public EAction? StopAction { get; set; } - - public DateTime? EventExpiry { get; set; } -} diff --git a/Questionable.Model/Questionable.Model.Questing/GCPurchaseInfo.cs b/Questionable.Model/Questionable.Model.Questing/GCPurchaseInfo.cs deleted file mode 100644 index 44de4af..0000000 --- a/Questionable.Model/Questionable.Model.Questing/GCPurchaseInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Questionable.Model.Questing; - -public sealed class GCPurchaseInfo -{ - public uint ItemId { get; set; } - - public int RankTab { get; set; } - - public int CategoryTab { get; set; } -} diff --git a/Questionable.Model/Questionable.Model.Questing/QuestRoot.cs b/Questionable.Model/Questionable.Model.Questing/QuestRoot.cs index 2d171de..80ab7f7 100644 --- a/Questionable.Model/Questionable.Model.Questing/QuestRoot.cs +++ b/Questionable.Model/Questionable.Model.Questing/QuestRoot.cs @@ -16,10 +16,10 @@ public sealed class QuestRoot public string? Comment { get; set; } - [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + [JsonIgnore(/*Could not decode attribute arguments.*/)] public bool? IsSeasonalQuest { get; set; } - [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + [JsonIgnore(/*Could not decode attribute arguments.*/)] public DateTime? SeasonalQuestExpiry { get; set; } public List QuestSequence { get; set; } = new List(); diff --git a/Questionable.Model/Questionable.Model.Questing/QuestStep.cs b/Questionable.Model/Questionable.Model.Questing/QuestStep.cs index 23acd5d..542ae24 100644 --- a/Questionable.Model/Questionable.Model.Questing/QuestStep.cs +++ b/Questionable.Model/Questionable.Model.Questing/QuestStep.cs @@ -15,11 +15,6 @@ public sealed class QuestStep public uint? DataId { get; set; } - public List DataIds { get; set; } = new List(); - - [JsonConverter(typeof(VectorListConverter))] - public List WaypointPositions { get; set; } = new List(); - [JsonConverter(typeof(VectorConverter))] public Vector3? Position { get; set; } @@ -27,7 +22,7 @@ public sealed class QuestStep public ushort TerritoryId { get; set; } - [JsonIgnore(Condition = JsonIgnoreCondition.Never)] + [JsonIgnore(/*Could not decode attribute arguments.*/)] public EInteractionType InteractionType { get; set; } public float? NpcWaitDistance { get; set; } @@ -54,8 +49,6 @@ public sealed class QuestStep public bool? RestartNavigationIfCancelled { get; set; } - public bool IgnoreQuestMarker { get; set; } - public string? Comment { get; set; } public EAetheryteLocation? Aetheryte { get; set; } @@ -75,8 +68,6 @@ public sealed class QuestStep public int? ItemCount { get; set; } - public bool? RequireHq { get; set; } - public EEmote? Emote { get; set; } public ChatMessage? ChatMessage { get; set; } @@ -95,8 +86,6 @@ public sealed class QuestStep public List ComplexCombatData { get; set; } = new List(); - public List FateActionTargets { get; set; } = new List(); - public CombatItemUse? CombatItemUse { get; set; } public float? CombatDelaySecondsAtStart { get; set; } @@ -127,8 +116,6 @@ public sealed class QuestStep public PurchaseMenu? PurchaseMenu { get; set; } - public GCPurchaseInfo? GCPurchase { get; set; } - [JsonConverter(typeof(ElementIdConverter))] public ElementId? PickUpQuestId { get; set; } diff --git a/Questionable.Model/Questionable.Model.Questing/QuestWorkValue.cs b/Questionable.Model/Questionable.Model.Questing/QuestWorkValue.cs index 5d5caa8..c732ff7 100644 --- a/Questionable.Model/Questionable.Model.Questing/QuestWorkValue.cs +++ b/Questionable.Model/Questionable.Model.Questing/QuestWorkValue.cs @@ -21,15 +21,15 @@ public sealed class QuestWorkValue(byte? high, byte? low, EQuestWorkMode mode) { if (High.HasValue && Low.HasValue) { - return ((byte)((High.Value << 4) + Low.Value)).ToString(); + return ((byte)(High << 4).Value + Low).ToString(); } if (High.HasValue) { - return High.Value + "H"; + return High + "H"; } if (Low.HasValue) { - return Low.Value + "L"; + return Low + "L"; } return "-"; } diff --git a/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs b/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs deleted file mode 100644 index f689404..0000000 --- a/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using System.Text.Json.Serialization; -using Questionable.Model.Common; -using Questionable.Model.Common.Converter; -using Questionable.Model.Questing.Converter; - -namespace Questionable.Model.Questing; - -public sealed class SeasonalDutyDefinition -{ - public string Name { get; set; } = string.Empty; - - public ushort TerritoryId { get; set; } - - public EAetheryteLocation Aetheryte { get; set; } - - public AethernetShortcut? AethernetShortcut { get; set; } - - public uint NpcDataId { get; set; } - - [JsonConverter(typeof(VectorConverter))] - public Vector3 NpcPosition { get; set; } - - public List DialogueChoices { get; set; } = new List(); - - public ushort DutyTerritoryId { get; set; } - - public List DataIds { get; set; } = new List(); - - [JsonConverter(typeof(VectorListConverter))] - public List WaypointPositions { get; set; } = new List(); - - [JsonConverter(typeof(ActionConverter))] - public EAction Action { get; set; } - - public float StopDistance { get; set; } - - public ushort? RequiredQuestId { get; set; } - - public DateTime? EventExpiry { get; set; } -} diff --git a/Questionable.Model/Questionable.Model.Questing/SkipItemConditions.cs b/Questionable.Model/Questionable.Model.Questing/SkipItemConditions.cs index 84e26a6..5553d12 100644 --- a/Questionable.Model/Questionable.Model.Questing/SkipItemConditions.cs +++ b/Questionable.Model/Questionable.Model.Questing/SkipItemConditions.cs @@ -3,8 +3,4 @@ namespace Questionable.Model.Questing; public sealed class SkipItemConditions { public bool NotInInventory { get; set; } - - public bool InInventory { get; set; } - - public bool BetterOrEqualItemEquipped { get; set; } } diff --git a/Questionable.Model/Questionable.Model.Questing/SkipStepConditions.cs b/Questionable.Model/Questionable.Model.Questing/SkipStepConditions.cs index 69d6e24..4368e7d 100644 --- a/Questionable.Model/Questionable.Model.Questing/SkipStepConditions.cs +++ b/Questionable.Model/Questionable.Model.Questing/SkipStepConditions.cs @@ -61,6 +61,6 @@ public sealed class SkipStepConditions public override string ToString() { - return $"{"Never"}: {Never}, {"CompletionQuestVariablesFlags"}: {CompletionQuestVariablesFlags}, {"Flying"}: {Flying}, {"Chocobo"}: {Chocobo}, {"Diving"}: {Diving}, {"NotTargetable"}: {NotTargetable}, {"InTerritory"}: {string.Join(" ", InTerritory)}, {"NotInTerritory"}: {string.Join(" ", NotInTerritory)}, {"Item"}: {Item}, {"QuestsAccepted"}: {string.Join(" ", QuestsAccepted)}, {"QuestsCompleted"}: {string.Join(" ", QuestsCompleted)}, {"NotNamePlateIconId"}: {string.Join(" ", NotNamePlateIconId)}, {"NearPosition"}: {NearPosition}, {"ExtraCondition"}: {ExtraCondition}"; + return string.Format("{0}: {1}, {2}: {3}, {4}: {5}, {6}: {7}, {8}: {9}, {10}: {11}, {12}: {13}, {14}: {15}, {16}: {17}, {18}: {19}, {20}: {21}, {22}: {23}, {24}: {25}, {26}: {27}", "Never", Never, "CompletionQuestVariablesFlags", CompletionQuestVariablesFlags, "Flying", Flying, "Chocobo", Chocobo, "Diving", Diving, "NotTargetable", NotTargetable, "InTerritory", string.Join(" ", InTerritory), "NotInTerritory", string.Join(" ", NotInTerritory), "Item", Item, "QuestsAccepted", string.Join(" ", QuestsAccepted), "QuestsCompleted", string.Join(" ", QuestsCompleted), "NotNamePlateIconId", string.Join(" ", NotNamePlateIconId), "NearPosition", NearPosition, "ExtraCondition", ExtraCondition); } } diff --git a/Questionable.Model/Questionable.Model.csproj b/Questionable.Model/Questionable.Model.csproj index 5fff03a..172938a 100644 --- a/Questionable.Model/Questionable.Model.csproj +++ b/Questionable.Model/Questionable.Model.csproj @@ -3,7 +3,7 @@ Questionable.Model False - netcoreapp1.0 + netstandard2.0 12.0 @@ -17,14 +17,19 @@ - - - + + + C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.32\System.Numerics.Vectors.dll + + + C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.32\System.Text.Json.dll + + \ No newline at end of file diff --git a/Questionable.Model/Questionable.Model/AssemblyModelLoader.cs b/Questionable.Model/Questionable.Model/AssemblyModelLoader.cs index 37e5996..39d47ae 100644 --- a/Questionable.Model/Questionable.Model/AssemblyModelLoader.cs +++ b/Questionable.Model/Questionable.Model/AssemblyModelLoader.cs @@ -12,7 +12,5 @@ public static class AssemblyModelLoader public static Stream CommonCompletionFlags => typeof(AssemblyModelLoader).Assembly.GetManifestResourceStream("Questionable.Model.CommonCompletionFlags"); - public static Stream CommonRequiredVariables => typeof(AssemblyModelLoader).Assembly.GetManifestResourceStream("Questionable.Model.CommonRequiredVariables"); - public static Stream CommonVector3 => typeof(AssemblyModelLoader).Assembly.GetManifestResourceStream("Questionable.Model.CommonVector3"); } diff --git a/Questionable/--y__InlineArray2.cs b/Questionable/--y__InlineArray2.cs deleted file mode 100644 index 2de6edd..0000000 --- a/Questionable/--y__InlineArray2.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[StructLayout(LayoutKind.Auto)] -[InlineArray(2)] -internal struct _003C_003Ey__InlineArray2 -{ -} diff --git a/Questionable/--y__InlineArray7.cs b/Questionable/--y__InlineArray7.cs deleted file mode 100644 index 54c6b1e..0000000 --- a/Questionable/--y__InlineArray7.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[StructLayout(LayoutKind.Auto)] -[InlineArray(7)] -internal struct _003C_003Ey__InlineArray7 -{ -} diff --git a/Questionable/-PrivateImplementationDetails-.cs b/Questionable/-PrivateImplementationDetails-.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Questionable/Questionable.Controller.CombatModules/ItemUseModule.cs b/Questionable/Questionable.Controller.CombatModules/ItemUseModule.cs index bdc48d6..75c4639 100644 --- a/Questionable/Questionable.Controller.CombatModules/ItemUseModule.cs +++ b/Questionable/Questionable.Controller.CombatModules/ItemUseModule.cs @@ -29,12 +29,6 @@ internal sealed class ItemUseModule : ICombatModule private DateTime _continueAt; - private bool _itemUsePending; - - private DateTime _itemUsePendingUntil; - - private int _lastKnownItemCount; - public ItemUseModule(IServiceProvider serviceProvider, ICondition condition, ILogger logger) { _serviceProvider = serviceProvider; @@ -55,19 +49,13 @@ internal sealed class ItemUseModule : ICombatModule return _delegate != null; } - public unsafe bool Start(CombatController.CombatData combatData) + public bool Start(CombatController.CombatData combatData) { if (_delegate.Start(combatData)) { _combatData = combatData; _isDoingRotation = true; _continueAt = DateTime.Now; - if (_combatData?.CombatItemUse != null) - { - InventoryManager* ptr = InventoryManager.Instance(); - _lastKnownItemCount = ptr->GetInventoryItemCount(_combatData.CombatItemUse.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0); - _itemUsePending = false; - } return true; } return false; @@ -100,29 +88,16 @@ internal sealed class ItemUseModule : ICombatModule { if (_isDoingRotation) { - int inventoryItemCount = InventoryManager.Instance()->GetInventoryItemCount(_combatData.CombatItemUse.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0); - if (_itemUsePending) - { - if (DateTime.Now < _itemUsePendingUntil) - { - _logger.LogDebug("Item use pending; ignoring temporary inventory count={Count}", inventoryItemCount); - } - else - { - _itemUsePending = false; - } - } - if (!_itemUsePending && inventoryItemCount == 0) + if (InventoryManager.Instance()->GetInventoryItemCount(_combatData.CombatItemUse.ItemId, isHq: false, checkEquipped: true, checkArmory: true, 0) == 0) { _isDoingRotation = false; _delegate.Stop(); - return; } - _lastKnownItemCount = inventoryItemCount; - if (ShouldUseItem(nextTarget)) + else if (ShouldUseItem(nextTarget)) { - _itemUsePending = true; - _itemUsePendingUntil = DateTime.Now.AddSeconds(3.0); + _isDoingRotation = false; + _delegate.Stop(); + _logger.LogInformation("Using item {ItemId}", _combatData.CombatItemUse.ItemId); AgentInventoryContext.Instance()->UseItem(_combatData.CombatItemUse.ItemId, InventoryType.Invalid, 0u, 0); _continueAt = DateTime.Now.AddSeconds(2.0); } diff --git a/Questionable/Questionable.Controller.DebugCommands/AbandonDutyCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/AbandonDutyCommandHandler.cs deleted file mode 100644 index f3e7452..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/AbandonDutyCommandHandler.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Questionable.Functions; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class AbandonDutyCommandHandler : IDebugCommandHandler -{ - private readonly GameFunctions _gameFunctions; - - public string CommandName => "abandon-duty"; - - public AbandonDutyCommandHandler(GameFunctions gameFunctions) - { - _gameFunctions = gameFunctions; - } - - public void Execute(string[] arguments) - { - _gameFunctions.AbandonDuty(); - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/AethernetCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/AethernetCommandHandler.cs deleted file mode 100644 index f56905b..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/AethernetCommandHandler.cs +++ /dev/null @@ -1,116 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Plugin.Services; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model.Common; -using Questionable.Model.Questing.Converter; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class AethernetCommandHandler : IDebugCommandHandler -{ - private readonly IDataManager _dataManager; - - private readonly IClientState _clientState; - - private readonly AetheryteFunctions _aetheryteFunctions; - - private readonly IChatGui _chatGui; - - public string CommandName => "aethernet"; - - public AethernetCommandHandler(IDataManager dataManager, IClientState clientState, AetheryteFunctions aetheryteFunctions, IChatGui chatGui) - { - _dataManager = dataManager; - _clientState = clientState; - _aetheryteFunctions = aetheryteFunctions; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - ushort territoryType = _clientState.TerritoryType; - Dictionary values = AethernetShardConverter.Values; - AetheryteData aetheryteData = new AetheryteData(_dataManager); - HashSet hashSet = new HashSet(); - Dictionary> dictionary = new Dictionary>(); - EAetheryteLocation key; - string value; - foreach (KeyValuePair item3 in values) - { - item3.Deconstruct(out key, out value); - EAetheryteLocation key2 = key; - string text = value; - if (aetheryteData.TerritoryIds.TryGetValue(key2, out var value2) && value2 == territoryType) - { - int num = text.IndexOf(']', StringComparison.Ordinal); - if (num > 0) - { - string item = text.Substring(1, num - 1); - hashSet.Add(item); - } - } - } - if (hashSet.Count == 0) - { - _chatGui.Print("No aethernet shards found in current zone.", "Questionable", 576); - return; - } - foreach (KeyValuePair item4 in values) - { - item4.Deconstruct(out key, out value); - EAetheryteLocation eAetheryteLocation = key; - string text2 = value; - int num2 = text2.IndexOf(']', StringComparison.Ordinal); - if (num2 <= 0) - { - continue; - } - string text3 = text2.Substring(1, num2 - 1); - if (hashSet.Contains(text3)) - { - if (!dictionary.ContainsKey(text3)) - { - dictionary[text3] = new List<(EAetheryteLocation, string, bool)>(); - } - bool item2 = _aetheryteFunctions.IsAetheryteUnlocked(eAetheryteLocation); - dictionary[text3].Add((eAetheryteLocation, text2, item2)); - } - } - foreach (KeyValuePair> item5 in dictionary.OrderBy>, string>((KeyValuePair> x) => x.Key)) - { - item5.Deconstruct(out value, out var value3); - string value4 = value; - List<(EAetheryteLocation, string, bool)> list = value3; - List<(EAetheryteLocation, string, bool)> list2 = list.Where<(EAetheryteLocation, string, bool)>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => x.Unlocked).ToList(); - List<(EAetheryteLocation, string, bool)> list3 = list.Where<(EAetheryteLocation, string, bool)>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => !x.Unlocked).ToList(); - _chatGui.Print($"Aethernet Shards in {value4} ({list.Count} total):", "Questionable", 576); - _chatGui.Print($" Unlocked: {list2.Count}", "Questionable", 576); - _chatGui.Print($" Missing: {list3.Count}", "Questionable", 576); - _chatGui.Print("", "Questionable", 576); - if (list3.Count > 0) - { - _chatGui.Print("Missing/Unattuned Aethernet Shards:", "Questionable", 576); - foreach (var item6 in list3.OrderBy<(EAetheryteLocation, string, bool), string>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => x.Name)) - { - _chatGui.Print(" " + item6.Item2, "Questionable", 576); - } - _chatGui.Print("", "Questionable", 576); - } - if (list2.Count > 0) - { - _chatGui.Print("Unlocked Aethernet Shards:", "Questionable", 576); - foreach (var item7 in list2.OrderBy<(EAetheryteLocation, string, bool), string>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => x.Name)) - { - _chatGui.Print(" " + item7.Item2, "Questionable", 576); - } - } - if (dictionary.Count > 1) - { - _chatGui.Print("", "Questionable", 576); - } - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/DebugCommandExecutor.cs b/Questionable/Questionable.Controller.DebugCommands/DebugCommandExecutor.cs deleted file mode 100644 index b2fd9fd..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/DebugCommandExecutor.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class DebugCommandExecutor -{ - private readonly Dictionary _handlers; - - public DebugCommandExecutor(IEnumerable handlers) - { - _handlers = handlers.ToDictionary((IDebugCommandHandler h) => h.CommandName, StringComparer.OrdinalIgnoreCase); - } - - public bool TryExecute(string command, string[] arguments) - { - if (_handlers.TryGetValue(command, out IDebugCommandHandler value)) - { - value.Execute(arguments); - return true; - } - return false; - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/DebugOverlayCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/DebugOverlayCommandHandler.cs deleted file mode 100644 index abdca92..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/DebugOverlayCommandHandler.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Dalamud.Plugin.Services; -using Questionable.Model; -using Questionable.Model.Questing; -using Questionable.Windows; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class DebugOverlayCommandHandler : IDebugCommandHandler -{ - private readonly DebugOverlay _debugOverlay; - - private readonly QuestRegistry _questRegistry; - - private readonly IChatGui _chatGui; - - public string CommandName => "do"; - - public DebugOverlayCommandHandler(DebugOverlay debugOverlay, QuestRegistry questRegistry, IChatGui chatGui) - { - _debugOverlay = debugOverlay; - _questRegistry = questRegistry; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - ElementId elementId; - if (!_debugOverlay.DrawConditions()) - { - _chatGui.PrintError("You don't have the debug overlay enabled.", "Questionable", 576); - } - else if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out elementId) && elementId != null) - { - if (_questRegistry.TryGetQuest(elementId, out Quest quest)) - { - _debugOverlay.HighlightedQuest = quest.Id; - _chatGui.Print($"Set highlighted quest to {elementId} ({quest.Info.Name}).", "Questionable", 576); - } - else - { - _chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576); - } - } - else - { - _debugOverlay.HighlightedQuest = null; - _chatGui.Print("Cleared highlighted quest.", "Questionable", 576); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/FestivalsCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/FestivalsCommandHandler.cs deleted file mode 100644 index b855864..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/FestivalsCommandHandler.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Collections.Generic; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class FestivalsCommandHandler : IDebugCommandHandler -{ - private readonly IChatGui _chatGui; - - public string CommandName => "festivals"; - - public FestivalsCommandHandler(IChatGui chatGui) - { - _chatGui = chatGui; - } - - public unsafe void Execute(string[] arguments) - { - List list = new List(); - for (byte b = 0; b < 4; b++) - { - GameMain.Festival festival = GameMain.Instance()->ActiveFestivals[b]; - if (festival.Id == 0) - { - list.Add($"Slot {b}: None"); - } - else - { - list.Add($"Slot {b}: {festival.Id}({festival.Phase})"); - } - } - _chatGui.Print("Festival slots:", "Questionable", 576); - foreach (string item in list) - { - _chatGui.Print(" " + item, "Questionable", 576); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/IDebugCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/IDebugCommandHandler.cs deleted file mode 100644 index 7662992..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/IDebugCommandHandler.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Questionable.Controller.DebugCommands; - -internal interface IDebugCommandHandler -{ - string CommandName { get; } - - void Execute(string[] arguments); -} diff --git a/Questionable/Questionable.Controller.DebugCommands/MountIdCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/MountIdCommandHandler.cs deleted file mode 100644 index 29962f3..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/MountIdCommandHandler.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Dalamud.Plugin.Services; -using Lumina.Excel.Sheets; -using Questionable.Functions; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class MountIdCommandHandler : IDebugCommandHandler -{ - private readonly GameFunctions _gameFunctions; - - private readonly IDataManager _dataManager; - - private readonly IChatGui _chatGui; - - public string CommandName => "mountid"; - - public MountIdCommandHandler(GameFunctions gameFunctions, IDataManager dataManager, IChatGui chatGui) - { - _gameFunctions = gameFunctions; - _dataManager = dataManager; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - ushort? mountId = _gameFunctions.GetMountId(); - if (mountId.HasValue) - { - Mount? rowOrDefault = _dataManager.GetExcelSheet().GetRowOrDefault(mountId.Value); - _chatGui.Print($"Mount ID: {mountId}, Name: {rowOrDefault?.Singular}, Obtainable: {((rowOrDefault?.Order == -1) ? "No" : "Yes")}", "Questionable", 576); - } - else - { - _chatGui.Print("You are not mounted.", "Questionable", 576); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/NextQuestCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/NextQuestCommandHandler.cs deleted file mode 100644 index bf640eb..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/NextQuestCommandHandler.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Dalamud.Plugin.Services; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class NextQuestCommandHandler : IDebugCommandHandler -{ - private readonly QuestController _questController; - - private readonly QuestRegistry _questRegistry; - - private readonly QuestFunctions _questFunctions; - - private readonly IChatGui _chatGui; - - public string CommandName => "next"; - - public NextQuestCommandHandler(QuestController questController, QuestRegistry questRegistry, QuestFunctions questFunctions, IChatGui chatGui) - { - _questController = questController; - _questRegistry = questRegistry; - _questFunctions = questFunctions; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out ElementId elementId) && elementId != null) - { - Quest quest; - if (_questFunctions.IsQuestLocked(elementId)) - { - _chatGui.PrintError($"Quest {elementId} is locked.", "Questionable", 576); - } - else if (_questRegistry.TryGetQuest(elementId, out quest)) - { - _questController.SetNextQuest(quest); - _chatGui.Print($"Set next quest to {elementId} ({quest.Info.Name}).", "Questionable", 576); - } - else - { - _chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576); - } - } - else - { - _questController.SetNextQuest(null); - _chatGui.Print("Cleared next quest.", "Questionable", 576); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/QuestKillsCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/QuestKillsCommandHandler.cs deleted file mode 100644 index 72c9403..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/QuestKillsCommandHandler.cs +++ /dev/null @@ -1,220 +0,0 @@ -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.Services; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class QuestKillsCommandHandler : IDebugCommandHandler -{ - private readonly QuestController _questController; - - private readonly QuestFunctions _questFunctions; - - private readonly IDataManager _dataManager; - - private readonly IObjectTable _objectTable; - - private readonly IChatGui _chatGui; - - public string CommandName => "quest-kills"; - - public QuestKillsCommandHandler(QuestController questController, QuestFunctions questFunctions, IDataManager dataManager, IObjectTable objectTable, IChatGui chatGui) - { - _questController = questController; - _questFunctions = questFunctions; - _dataManager = dataManager; - _objectTable = objectTable; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - (QuestController.QuestProgress, QuestController.ECurrentQuestType)? currentQuestDetails = _questController.CurrentQuestDetails; - if (!currentQuestDetails.HasValue) - { - _chatGui.PrintError("No active quest.", "Questionable", 576); - return; - } - QuestController.QuestProgress item = currentQuestDetails.Value.Item1; - Questionable.Model.Quest quest = item.Quest; - QuestProgressInfo questProgressInfo = null; - if (quest.Id is QuestId elementId) - { - questProgressInfo = _questFunctions.GetQuestProgressInfo(elementId); - } - if (questProgressInfo == null) - { - _chatGui.PrintError("Unable to retrieve quest progress information.", "Questionable", 576); - return; - } - QuestSequence questSequence = quest.FindSequence(item.Sequence); - if (questSequence == null) - { - _chatGui.PrintError($"Sequence {item.Sequence} not found for quest {quest.Id}.", "Questionable", 576); - return; - } - QuestStep questStep = ((item.Step < questSequence.Steps.Count) ? questSequence.Steps[item.Step] : null); - if (questStep == null) - { - _chatGui.PrintError($"Step {item.Step} not found in sequence {item.Sequence}.", "Questionable", 576); - return; - } - _chatGui.Print($"Quest: {quest.Info.Name} ({quest.Id})", "Questionable", 576); - _chatGui.Print($"Sequence: {item.Sequence}, Step: {item.Step}", "Questionable", 576); - _chatGui.Print("", "Questionable", 576); - _chatGui.Print("Quest Variables: " + string.Join(", ", questProgressInfo.Variables.Select((byte v, int i) => $"[{i}]={v}")), "Questionable", 576); - _chatGui.Print("", "Questionable", 576); - ExcelSheet bnpcNameSheet = _dataManager.GetExcelSheet(); - HashSet hashSet = new HashSet(questStep.KillEnemyDataIds); - foreach (ComplexCombatData complexCombatDatum in questStep.ComplexCombatData) - { - hashSet.Add(complexCombatDatum.DataId); - } - if (hashSet.Count > 0) - { - _chatGui.Print($"All Enemy DataIds Found: {hashSet.Count}", "Questionable", 576); - foreach (uint item3 in hashSet.OrderBy((uint x) => x)) - { - (string Name, bool Found) tuple = GetEnemyName(item3); - var (value, _) = tuple; - if (tuple.Found) - { - _chatGui.Print($" - {value} (DataId: {item3})", "Questionable", 576); - } - else - { - _chatGui.Print($" - DataId: {item3}", "Questionable", 576); - } - } - _chatGui.Print("", "Questionable", 576); - } - if (questStep.ComplexCombatData.Count > 0) - { - _chatGui.Print($"Complex Combat Data Entries: {questStep.ComplexCombatData.Count}", "Questionable", 576); - _chatGui.Print("Kill Progress:", "Questionable", 576); - if (questStep.ComplexCombatData.Count == 1 && hashSet.Count > 1) - { - ComplexCombatData complexCombatData = questStep.ComplexCombatData[0]; - int num = -1; - byte? b = null; - for (int num2 = 0; num2 < complexCombatData.CompletionQuestVariablesFlags.Count; num2++) - { - QuestWorkValue questWorkValue = complexCombatData.CompletionQuestVariablesFlags[num2]; - if (questWorkValue != null && questWorkValue.Low.HasValue) - { - num = num2; - b = questWorkValue.Low; - break; - } - } - byte b2 = (byte)(((num >= 0 && num < questProgressInfo.Variables.Count) ? questProgressInfo.Variables[num] : 0) & 0xF); - string value2 = (b.HasValue ? $" {b2}/{b}" : ""); - string value3 = ((b.HasValue && b2 >= b) ? "✓" : "○"); - foreach (uint item4 in hashSet.OrderBy((uint x) => x)) - { - (string Name, bool Found) tuple3 = GetEnemyName(item4); - var (value4, _) = tuple3; - if (tuple3.Found) - { - _chatGui.Print($" {value3} Slay {value4}.{value2} (DataId: {item4})", "Questionable", 576); - } - else - { - _chatGui.Print($" {value3} Slay enemy.{value2} (DataId: {item4})", "Questionable", 576); - } - } - } - else - { - for (int num3 = 0; num3 < questStep.ComplexCombatData.Count; num3++) - { - ComplexCombatData complexCombatData2 = questStep.ComplexCombatData[num3]; - int num4 = -1; - byte? b3 = null; - bool flag = false; - for (int num5 = 0; num5 < complexCombatData2.CompletionQuestVariablesFlags.Count; num5++) - { - QuestWorkValue questWorkValue2 = complexCombatData2.CompletionQuestVariablesFlags[num5]; - if (questWorkValue2 != null) - { - if (questWorkValue2.Low.HasValue) - { - num4 = num5; - b3 = questWorkValue2.Low; - flag = false; - break; - } - if (questWorkValue2.High.HasValue) - { - num4 = num5; - b3 = questWorkValue2.High; - flag = true; - break; - } - } - } - byte b4 = (byte)((num4 >= 0 && num4 < questProgressInfo.Variables.Count) ? questProgressInfo.Variables[num4] : 0); - byte b5 = (flag ? ((byte)(b4 >> 4)) : ((byte)(b4 & 0xF))); - string value5; - if (complexCombatData2.NameId.HasValue) - { - BNpcName? bNpcName = bnpcNameSheet?.GetRowOrDefault(complexCombatData2.NameId.Value); - value5 = ((!bNpcName.HasValue || string.IsNullOrEmpty(bNpcName.Value.Singular.ToString())) ? "enemy" : bNpcName.Value.Singular.ToString()); - } - else - { - (string Name, bool Found) tuple5 = GetEnemyName(complexCombatData2.DataId); - string item2 = tuple5.Name; - value5 = (tuple5.Found ? item2 : "enemy"); - } - string value6 = (b3.HasValue ? $" {b5}/{b3}" : ""); - string value7 = ((b3.HasValue && b5 >= b3) ? "✓" : "○"); - string value8 = (complexCombatData2.NameId.HasValue ? $" (DataId: {complexCombatData2.DataId}, NameId: {complexCombatData2.NameId})" : $" (DataId: {complexCombatData2.DataId})"); - _chatGui.Print($" {value7} Slay {value5}.{value6}{value8}", "Questionable", 576); - } - } - _chatGui.Print("", "Questionable", 576); - } - else if (questStep.KillEnemyDataIds.Count == 0) - { - _chatGui.Print("No kill enemy data for this step.", "Questionable", 576); - _chatGui.Print("", "Questionable", 576); - } - if (questStep.CompletionQuestVariablesFlags.Count <= 0 || !questStep.CompletionQuestVariablesFlags.Any((QuestWorkValue x) => x != null)) - { - return; - } - _chatGui.Print("Completion Flags (Debug):", "Questionable", 576); - for (int num6 = 0; num6 < questStep.CompletionQuestVariablesFlags.Count; num6++) - { - QuestWorkValue questWorkValue3 = questStep.CompletionQuestVariablesFlags[num6]; - if (questWorkValue3 != null) - { - int num7 = ((num6 < questProgressInfo.Variables.Count) ? questProgressInfo.Variables[num6] : 0); - byte b6 = (byte)(num7 >> 4); - byte b7 = (byte)(num7 & 0xF); - string value9 = (((!questWorkValue3.High.HasValue || questWorkValue3.High == b6) && (!questWorkValue3.Low.HasValue || questWorkValue3.Low == b7)) ? " ✓" : " ✗"); - _chatGui.Print($" [{num6}] Expected: H={questWorkValue3.High?.ToString(CultureInfo.InvariantCulture) ?? "any"} L={questWorkValue3.Low?.ToString(CultureInfo.InvariantCulture) ?? "any"} | Actual: H={b6.ToString(CultureInfo.InvariantCulture)} L={b7.ToString(CultureInfo.InvariantCulture)}{value9}", "Questionable", 576); - } - } - (string Name, bool Found) GetEnemyName(uint dataId) - { - if (_objectTable.FirstOrDefault((IGameObject x) => x is IBattleNpc battleNpc2 && battleNpc2.BaseId == dataId) is IBattleNpc { NameId: not 0u } battleNpc) - { - BNpcName? bNpcName2 = bnpcNameSheet?.GetRowOrDefault(battleNpc.NameId); - if (bNpcName2.HasValue && !string.IsNullOrEmpty(bNpcName2.Value.Singular.ToString())) - { - return (Name: bNpcName2.Value.Singular.ToString(), Found: true); - } - } - return (Name: string.Empty, Found: false); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/SequencesCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/SequencesCommandHandler.cs deleted file mode 100644 index 3e3c9f6..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/SequencesCommandHandler.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Questionable.Model.Questing; -using Questionable.Windows; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class SequencesCommandHandler : IDebugCommandHandler -{ - private readonly QuestSequenceWindow _questSequenceWindow; - - public string CommandName => "seq"; - - public SequencesCommandHandler(QuestSequenceWindow questSequenceWindow) - { - _questSequenceWindow = questSequenceWindow; - } - - public void Execute(string[] arguments) - { - if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out ElementId elementId) && elementId != null) - { - _questSequenceWindow.OpenForQuest(elementId); - } - else - { - _questSequenceWindow.ToggleOrUncollapse(); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/SetupCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/SetupCommandHandler.cs deleted file mode 100644 index 685b435..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/SetupCommandHandler.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Questionable.Windows; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class SetupCommandHandler : IDebugCommandHandler -{ - private readonly OneTimeSetupWindow _oneTimeSetupWindow; - - public string CommandName => "setup"; - - public SetupCommandHandler(OneTimeSetupWindow oneTimeSetupWindow) - { - _oneTimeSetupWindow = oneTimeSetupWindow; - } - - public void Execute(string[] arguments) - { - _oneTimeSetupWindow.IsOpenAndUncollapsed = true; - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/SimulateQuestCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/SimulateQuestCommandHandler.cs deleted file mode 100644 index da762f3..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/SimulateQuestCommandHandler.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Dalamud.Plugin.Services; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class SimulateQuestCommandHandler : IDebugCommandHandler -{ - private readonly QuestController _questController; - - private readonly QuestRegistry _questRegistry; - - private readonly IChatGui _chatGui; - - public string CommandName => "sim"; - - public SimulateQuestCommandHandler(QuestController questController, QuestRegistry questRegistry, IChatGui chatGui) - { - _questController = questController; - _questRegistry = questRegistry; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out ElementId elementId) && elementId != null) - { - if (_questRegistry.TryGetQuest(elementId, out Quest quest)) - { - byte sequence = 0; - int step = 0; - if (arguments.Length >= 2 && byte.TryParse(arguments[1], out var result)) - { - QuestSequence questSequence = quest.FindSequence(result); - if (questSequence != null) - { - sequence = questSequence.Sequence; - if (arguments.Length >= 3 && int.TryParse(arguments[2], out var result2) && questSequence.FindStep(result2) != null) - { - step = result2; - } - } - } - _questController.SimulateQuest(quest, sequence, step); - _chatGui.Print($"Simulating quest {elementId} ({quest.Info.Name}).", "Questionable", 576); - } - else - { - _chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576); - } - } - else - { - _questController.SimulateQuest(null, 0, 0); - _chatGui.Print("Cleared simulated quest.", "Questionable", 576); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/TaxiCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/TaxiCommandHandler.cs deleted file mode 100644 index 45de1dc..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/TaxiCommandHandler.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System.Collections.Generic; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class TaxiCommandHandler : IDebugCommandHandler -{ - private readonly IDataManager _dataManager; - - private readonly IClientState _clientState; - - private readonly IChatGui _chatGui; - - public string CommandName => "taxi"; - - public TaxiCommandHandler(IDataManager dataManager, IClientState clientState, IChatGui chatGui) - { - _dataManager = dataManager; - _clientState = clientState; - _chatGui = chatGui; - } - - public unsafe void Execute(string[] arguments) - { - List list = new List(); - ExcelSheet excelSheet = _dataManager.GetExcelSheet(); - UIState* ptr = UIState.Instance(); - if (ptr == null) - { - _chatGui.PrintError("UIState is null", "Questionable", 576); - return; - } - for (int i = 0; i < 192; i++) - { - uint num = (uint)(i + 1179648); - try - { - if (excelSheet.HasRow(num) && ptr->IsChocoboTaxiStandUnlocked(num)) - { - string value = excelSheet.GetRow(num).PlaceName.ToString(); - if (string.IsNullOrEmpty(value)) - { - value = "Unknown"; - } - list.Add($"{value} (ID: {i}, Row: 0x{num:X})"); - } - } - catch - { - } - } - _chatGui.Print($"Unlocked taxi stands ({list.Count}):", "Questionable", 576); - if (list.Count == 0) - { - _chatGui.Print(" (No unlocked taxi stands found)", "Questionable", 576); - return; - } - foreach (string item in list) - { - _chatGui.Print(" - " + item, "Questionable", 576); - } - } -} diff --git a/Questionable/Questionable.Controller.DebugCommands/UnlockLinksCommandHandler.cs b/Questionable/Questionable.Controller.DebugCommands/UnlockLinksCommandHandler.cs deleted file mode 100644 index 06dc43d..0000000 --- a/Questionable/Questionable.Controller.DebugCommands/UnlockLinksCommandHandler.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Plugin.Services; -using Questionable.Functions; - -namespace Questionable.Controller.DebugCommands; - -internal sealed class UnlockLinksCommandHandler : IDebugCommandHandler -{ - private readonly GameFunctions _gameFunctions; - - private readonly IChatGui _chatGui; - - private IReadOnlyList _previouslyUnlockedUnlockLinks = Array.Empty(); - - public string CommandName => "unlock-links"; - - public UnlockLinksCommandHandler(GameFunctions gameFunctions, IChatGui chatGui) - { - _gameFunctions = gameFunctions; - _chatGui = chatGui; - } - - public void Execute(string[] arguments) - { - IReadOnlyList unlockLinks = _gameFunctions.GetUnlockLinks(); - if (unlockLinks.Count >= 0) - { - _chatGui.Print($"Saved {unlockLinks.Count} unlock links to log.", "Questionable", 576); - List list = unlockLinks.Except(_previouslyUnlockedUnlockLinks).ToList(); - if (_previouslyUnlockedUnlockLinks.Count > 0 && list.Count > 0) - { - _chatGui.Print("New unlock links: " + string.Join(", ", list), "Questionable", 576); - } - } - else - { - _chatGui.PrintError("Could not query unlock links.", "Questionable", 576); - } - _previouslyUnlockedUnlockLinks = unlockLinks; - } - - public void Reset() - { - _previouslyUnlockedUnlockLinks = Array.Empty(); - } -} diff --git a/Questionable/Questionable.Controller.GameUi/AutoSnipeHandler.cs b/Questionable/Questionable.Controller.GameUi/AutoSnipeHandler.cs deleted file mode 100644 index 47d8a1a..0000000 --- a/Questionable/Questionable.Controller.GameUi/AutoSnipeHandler.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using Dalamud.Hooking; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.Event; -using FFXIVClientStructs.FFXIV.Common.Lua; -using Microsoft.Extensions.Logging; - -namespace Questionable.Controller.GameUi; - -internal sealed class AutoSnipeHandler : IDisposable -{ - private unsafe delegate ulong EnqueueSnipeTaskDelegate(EventSceneModuleImplBase* scene, lua_State* state); - - private readonly QuestController _questController; - - private readonly Configuration _configuration; - - private readonly ILogger _logger; - - private readonly Hook? _enqueueSnipeTaskHook; - - public unsafe AutoSnipeHandler(QuestController questController, Configuration configuration, IGameInteropProvider gameInteropProvider, ILogger logger) - { - _questController = questController; - _configuration = configuration; - _logger = logger; - try - { - _enqueueSnipeTaskHook = gameInteropProvider.HookFromSignature("48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC 50 48 8B F9 48 8D 4C 24 ??", EnqueueSnipeTask); - _enqueueSnipeTaskHook.Enable(); - _logger.LogInformation("AutoSnipeHandler enabled"); - } - catch (Exception exception) - { - _logger.LogError(exception, "Failed to initialize AutoSnipeHandler"); - _enqueueSnipeTaskHook = null; - } - } - - private unsafe ulong EnqueueSnipeTask(EventSceneModuleImplBase* scene, lua_State* state) - { - if (_configuration.General.AutoSnipe && _questController.IsRunning) - { - _logger.LogDebug("Auto-completing snipe task"); - TValue* top = state->top; - top->tt = 3; - top->value.n = 1.0; - state->top++; - return 1uL; - } - return _enqueueSnipeTaskHook.Original(scene, state); - } - - public void Dispose() - { - if (_enqueueSnipeTaskHook != null) - { - _enqueueSnipeTaskHook.Disable(); - _enqueueSnipeTaskHook.Dispose(); - _logger.LogInformation("AutoSnipeHandler disabled"); - } - } -} diff --git a/Questionable/Questionable.Controller.GameUi/ChocoboNameHandler.cs b/Questionable/Questionable.Controller.GameUi/ChocoboNameHandler.cs deleted file mode 100644 index 621d8c0..0000000 --- a/Questionable/Questionable.Controller.GameUi/ChocoboNameHandler.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Text; -using Dalamud.Game.Addon.Lifecycle; -using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Component.GUI; -using LLib.GameUI; -using Microsoft.Extensions.Logging; -using Questionable.Model.Questing; - -namespace Questionable.Controller.GameUi; - -internal sealed class ChocoboNameHandler : IDisposable -{ - private static readonly HashSet ChocoboQuestIds = new HashSet - { - new QuestId(700), - new QuestId(701), - new QuestId(702) - }; - - private readonly QuestController _questController; - - private readonly Configuration _configuration; - - private readonly IAddonLifecycle _addonLifecycle; - - private readonly ILogger _logger; - - private bool _awaitingConfirmation; - - public ChocoboNameHandler(QuestController questController, Configuration configuration, IAddonLifecycle addonLifecycle, ILogger logger) - { - _questController = questController; - _configuration = configuration; - _addonLifecycle = addonLifecycle; - _logger = logger; - _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "InputString", OnInputStringSetup); - _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "SelectYesno", OnSelectYesNoSetup); - } - - public void Dispose() - { - _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "SelectYesno", OnSelectYesNoSetup); - _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "InputString", OnInputStringSetup); - } - - private bool IsChocoboQuestActive() - { - QuestController.QuestProgress currentQuest = _questController.CurrentQuest; - if (currentQuest != null) - { - return ChocoboQuestIds.Contains(currentQuest.Quest.Id); - } - return false; - } - - private unsafe void OnInputStringSetup(AddonEvent type, AddonArgs args) - { - if (_questController.IsRunning && IsChocoboQuestActive()) - { - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - if (LAddon.IsAddonReady(address)) - { - string validatedChocoboName = GetValidatedChocoboName(_configuration.Advanced.ChocoboName); - _logger.LogInformation("Entering chocobo name: {Name}", validatedChocoboName); - FireInputStringCallback(address, validatedChocoboName); - _awaitingConfirmation = true; - } - } - } - - private unsafe void OnSelectYesNoSetup(AddonEvent type, AddonArgs args) - { - if (_questController.IsRunning && _awaitingConfirmation) - { - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - if (LAddon.IsAddonReady(address)) - { - _logger.LogInformation("Confirming chocobo name"); - ClickYes(address); - _awaitingConfirmation = false; - } - } - } - - private static string GetValidatedChocoboName(string? configuredName) - { - if (string.IsNullOrWhiteSpace(configuredName)) - { - return "Kweh"; - } - string text = configuredName.Trim(); - if (text.Length < 2 || text.Length > 20) - { - return "Kweh"; - } - string text2 = text.Substring(0, 1).ToUpperInvariant(); - string text3; - if (text.Length <= 1) - { - text3 = string.Empty; - } - else - { - string text4 = text; - text3 = text4.Substring(1, text4.Length - 1).ToLowerInvariant(); - } - return text2 + text3; - } - - private unsafe void FireInputStringCallback(AtkUnitBase* addon, string text) - { - AtkComponentNode* componentNodeById = addon->GetComponentNodeById(9u); - if (componentNodeById == null) - { - _logger.LogWarning("Could not find text input node in InputString addon"); - return; - } - AtkComponentTextInput* asAtkComponentTextInput = componentNodeById->GetAsAtkComponentTextInput(); - if (asAtkComponentTextInput == null) - { - _logger.LogWarning("Node is not a text input component"); - return; - } - asAtkComponentTextInput->SetText(text); - AtkValue* ptr = stackalloc AtkValue[2]; - ptr->Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr->Int = 0; - byte[] bytes = Encoding.UTF8.GetBytes(text); - nint num = Marshal.AllocHGlobal(bytes.Length + 1); - Marshal.Copy(bytes, 0, num, bytes.Length); - Marshal.WriteByte(num + bytes.Length, 0); - ptr[1].Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.String; - ptr[1].String = (byte*)num; - addon->FireCallback(2u, ptr); - Marshal.FreeHGlobal(num); - } - - private unsafe static void ClickYes(AtkUnitBase* addon) - { - AtkValue* ptr = stackalloc AtkValue[1]; - ptr->Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int; - ptr->Int = 0; - addon->FireCallback(1u, ptr); - } -} diff --git a/Questionable/Questionable.Controller.GameUi/CraftworksSupplyController.cs b/Questionable/Questionable.Controller.GameUi/CraftworksSupplyController.cs index 45b61dc..b89880f 100644 --- a/Questionable/Questionable.Controller.GameUi/CraftworksSupplyController.cs +++ b/Questionable/Questionable.Controller.GameUi/CraftworksSupplyController.cs @@ -97,12 +97,12 @@ internal sealed class CraftworksSupplyController : IDisposable { return; } - ushort blockedParentId = address->BlockedParentId; - if (blockedParentId == 0) + ushort contextMenuParentId = address->ContextMenuParentId; + if (contextMenuParentId == 0) { return; } - AtkUnitBase* addonById = AtkStage.Instance()->RaptureAtkUnitManager->GetAddonById(blockedParentId); + AtkUnitBase* addonById = AtkStage.Instance()->RaptureAtkUnitManager->GetAddonById(contextMenuParentId); if (addonById->NameString == "BankaCraftworksSupply") { _logger.LogInformation("Picking item for {AddonName}", addonById->NameString); @@ -138,7 +138,7 @@ internal sealed class CraftworksSupplyController : IDisposable address->Close(fireCallback: true); if (addonById->NameString == "BankaCraftworksSupply") { - _framework.RunOnTick((Action)InteractWithBankaCraftworksSupply, TimeSpan.FromMilliseconds(50L), 0, default(CancellationToken)); + _framework.RunOnTick((Action)InteractWithBankaCraftworksSupply, TimeSpan.FromMilliseconds(50L, 0L), 0, default(CancellationToken)); } } else diff --git a/Questionable/Questionable.Controller.GameUi/CreditsController.cs b/Questionable/Questionable.Controller.GameUi/CreditsController.cs index c184d1f..a924b08 100644 --- a/Questionable/Questionable.Controller.GameUi/CreditsController.cs +++ b/Questionable/Questionable.Controller.GameUi/CreditsController.cs @@ -38,30 +38,15 @@ internal sealed class CreditsController : IDisposable private static bool _pendingDispose; - private static int _handledConsecutiveCutscenes; - - private static int _maxConsecutiveSkips = 5; - - private static DateTime _lastHandledAt = DateTime.MinValue; - - private static readonly TimeSpan _reentrancySuppress = TimeSpan.FromMilliseconds(500L); - - private static long _lastHandledAddr; - - private static readonly TimeSpan _consecutiveResetWindow = TimeSpan.FromSeconds(10L); - private readonly IAddonLifecycle _addonLifecycle; - private readonly Configuration _configuration; - private readonly ILogger _logger; private static readonly object _lock = new object(); - public CreditsController(IAddonLifecycle addonLifecycle, Configuration configuration, ILogger logger) + public CreditsController(IAddonLifecycle addonLifecycle, ILogger logger) { _addonLifecycle = addonLifecycle; - _configuration = configuration; _logger = logger; lock (_lock) { @@ -78,117 +63,70 @@ internal sealed class CreditsController : IDisposable private unsafe void CreditScrollPostSetup(AddonEvent type, AddonArgs args) { - HandleCutscene(delegate + _logger.LogInformation("Closing Credits sequence scroll post-setup"); + if (args.Addon.Address == IntPtr.Zero) { - _logger.LogInformation("CreditScrollPostSetup: attempting to close credits sequence (scroll)."); - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - address->FireCallbackInt(-2); - }, args); - } - - private unsafe void CreditPostSetup(AddonEvent type, AddonArgs args) - { - HandleCutscene(delegate - { - _logger.LogInformation("CreditPostSetup: attempting to close credits sequence."); - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - address->FireCallbackInt(-2); - }, args); - } - - private unsafe void CreditPlayerPostSetup(AddonEvent type, AddonArgs args) - { - HandleCutscene(delegate - { - _logger.LogInformation("CreditPlayerPostSetup: attempting to close CreditPlayer."); - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - address->Close(fireCallback: true); - }, args); - } - - private void HandleCutscene(Action nativeAction, AddonArgs args) - { - if (_configuration.General.CinemaMode) - { - _logger.LogDebug("HandleCutscene: Cinema Mode enabled, not skipping cutscene."); - return; - } - long num = ((args.Addon.Address == IntPtr.Zero) ? 0 : ((IntPtr)args.Addon.Address).ToInt64()); - if (num == 0L) - { - _logger.LogInformation("HandleCutscene: Addon address is zero, skipping."); + _logger.LogInformation("CreditScrollPostSetup: Addon address is zero, skipping."); return; } lock (_lock) { - if (_lastHandledAt != DateTime.MinValue && DateTime.Now - _lastHandledAt > _consecutiveResetWindow) - { - if (_handledConsecutiveCutscenes != 0) - { - _logger.LogDebug("HandleCutscene: long pause detected ({Elapsed}), resetting consecutive counter (was {Was}).", DateTime.Now - _lastHandledAt, _handledConsecutiveCutscenes); - } - _handledConsecutiveCutscenes = 0; - } - if (DateTime.Now - _lastHandledAt < _reentrancySuppress && num == _lastHandledAddr) - { - _logger.LogDebug("HandleCutscene: suppressed re-entrant invocation for same addon (addr=0x{Address:X}).", num); - return; - } - if (_handledConsecutiveCutscenes >= _maxConsecutiveSkips) - { - _logger.LogInformation("HandleCutscene: reached max consecutive skips ({MaxSkips}), unregistering listeners.", _maxConsecutiveSkips); - TryUnregisterAndClear(); - return; - } - _lastHandledAt = DateTime.Now; - _lastHandledAddr = num; - _handledConsecutiveCutscenes++; - _logger.LogDebug("HandleCutscene: handling cutscene #{Count} (addr=0x{Address:X}).", _handledConsecutiveCutscenes, num); - } - try - { - nativeAction(); - _logger.LogInformation("HandleCutscene: native action executed for addon at 0x{Address:X}.", num); - } - catch (Exception exception) - { - _logger.LogError(exception, "HandleCutscene: exception while executing native action for addon at 0x{Address:X}.", num); - } - lock (_lock) - { - if (_handledConsecutiveCutscenes >= _maxConsecutiveSkips && !_deferDisposeUntilCutsceneEnds) - { - _logger.LogDebug("HandleCutscene: max handled reached and no defer active, unregistering now."); - TryUnregisterAndClear(); - } - else - { - _logger.LogDebug("HandleCutscene: leaving listeners registered (handled {Count}/{Max}).", _handledConsecutiveCutscenes, _maxConsecutiveSkips); - } - } - } - - private void TryUnregisterAndClear() - { - if (_registeredLifecycle != null) - { - try + if (_registeredLifecycle != null) { _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditPlayerArray, _creditPlayerHandler); _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditArray, _creditHandler); _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditScrollArray, _creditScrollHandler); - _logger.LogDebug("TryUnregisterAndClear: listeners unregistered successfully."); - } - catch (Exception exception) - { - _logger.LogError(exception, "TryUnregisterAndClear: exception while unregistering listeners."); + _registeredLifecycle = null; + _instance = null; } } - _registeredLifecycle = null; - _instance = null; - _handledConsecutiveCutscenes = 0; - _lastHandledAddr = 0L; - _lastHandledAt = DateTime.MinValue; + AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; + address->FireCallbackInt(-2); + } + + private unsafe void CreditPostSetup(AddonEvent type, AddonArgs args) + { + _logger.LogInformation("Closing Credits sequence post-setup"); + if (args.Addon.Address == IntPtr.Zero) + { + _logger.LogInformation("CreditPostSetup: Addon address is zero, skipping."); + return; + } + lock (_lock) + { + if (_registeredLifecycle != null) + { + _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditPlayerArray, _creditPlayerHandler); + _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditArray, _creditHandler); + _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditScrollArray, _creditScrollHandler); + _registeredLifecycle = null; + _instance = null; + } + } + AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; + address->FireCallbackInt(-2); + } + + private unsafe void CreditPlayerPostSetup(AddonEvent type, AddonArgs args) + { + _logger.LogInformation("Closing CreditPlayer"); + if (args.Addon.Address == IntPtr.Zero) + { + return; + } + lock (_lock) + { + if (_registeredLifecycle != null) + { + _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditPlayerArray, _creditPlayerHandler); + _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditArray, _creditHandler); + _registeredLifecycle.UnregisterListener(AddonEvent.PostSetup, CreditScrollArray, _creditScrollHandler); + _registeredLifecycle = null; + _instance = null; + } + } + AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; + address->Close(fireCallback: true); } public static void DeferDisposeUntilCutsceneEnds() @@ -243,9 +181,6 @@ internal sealed class CreditsController : IDisposable _registeredLifecycle = null; _instance = null; _pendingDispose = false; - _handledConsecutiveCutscenes = 0; - _lastHandledAddr = 0L; - _lastHandledAt = DateTime.MinValue; _logger.LogDebug("CreditsController listeners unregistered and disposed (primary instance)."); } } diff --git a/Questionable/Questionable.Controller.GameUi/GCShopHandler.cs b/Questionable/Questionable.Controller.GameUi/GCShopHandler.cs deleted file mode 100644 index e88a530..0000000 --- a/Questionable/Questionable.Controller.GameUi/GCShopHandler.cs +++ /dev/null @@ -1,152 +0,0 @@ -using System; -using Dalamud.Plugin.Services; -using LLib.Shop; -using Microsoft.Extensions.Logging; -using Questionable.Model.Questing; - -namespace Questionable.Controller.GameUi; - -internal sealed class GCShopHandler : IDisposable -{ - private enum GCShopState - { - Inactive, - Purchasing, - Completed - } - - private readonly QuestController _questController; - - private readonly GrandCompanyShop _gcShop; - - private readonly IObjectTable _objectTable; - - private readonly IFramework _framework; - - private readonly ILogger _logger; - - private GCShopState _state; - - private GCPurchaseInfo? _currentPurchase; - - private DateTime _lastActionTime = DateTime.MinValue; - - private bool _purchaseCompletedThisStep; - - public bool IsActive => _state != GCShopState.Inactive; - - public GCShopHandler(QuestController questController, GrandCompanyShop gcShop, IObjectTable objectTable, IFramework framework, ILogger logger) - { - _questController = questController; - _gcShop = gcShop; - _objectTable = objectTable; - _framework = framework; - _logger = logger; - _gcShop.PurchaseCompleted += OnPurchaseCompleted; - _framework.Update += OnFrameworkUpdate; - } - - public void Dispose() - { - _framework.Update -= OnFrameworkUpdate; - _gcShop.PurchaseCompleted -= OnPurchaseCompleted; - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (_objectTable.LocalPlayer == null) - { - return; - } - if (!_questController.IsRunning) - { - if (_state != GCShopState.Inactive) - { - Reset(); - } - return; - } - CheckForGCPurchase(); - if (_state == GCShopState.Purchasing) - { - HandlePurchasing(); - } - else if (_state == GCShopState.Completed) - { - _logger.LogInformation("GC shop purchase completed!"); - _state = GCShopState.Inactive; - _lastActionTime = DateTime.MinValue; - } - } - - private void CheckForGCPurchase() - { - QuestController.QuestProgress currentQuest = _questController.CurrentQuest; - if (currentQuest == null) - { - if (_currentPurchase != null) - { - Reset(); - } - return; - } - GCPurchaseInfo gCPurchaseInfo = (currentQuest.Quest.FindSequence(currentQuest.Sequence)?.FindStep(currentQuest.Step))?.GCPurchase; - if (gCPurchaseInfo == null) - { - if (_currentPurchase != null) - { - _currentPurchase = null; - _purchaseCompletedThisStep = false; - } - if (_gcShop.IsOpen) - { - _logger.LogDebug("GC shop is open but current step has no GCPurchase. Quest={QuestId}, Seq={Sequence}, Step={Step}", currentQuest.Quest.Id, currentQuest.Sequence, currentQuest.Step); - } - } - else - { - if (_currentPurchase != gCPurchaseInfo) - { - _currentPurchase = gCPurchaseInfo; - _purchaseCompletedThisStep = false; - } - if (_gcShop.IsOpen && _state == GCShopState.Inactive && !_purchaseCompletedThisStep) - { - _logger.LogInformation("GC shop is open. Starting purchase of item {ItemId}.", gCPurchaseInfo.ItemId); - _state = GCShopState.Purchasing; - } - } - } - - private void HandlePurchasing() - { - if (_gcShop.IsOpen && _currentPurchase != null && !((DateTime.Now - _lastActionTime).TotalMilliseconds < 500.0)) - { - if (!_gcShop.IsPurchaseInProgress) - { - _gcShop.StartPurchase(_currentPurchase.ItemId, _currentPurchase.RankTab, _currentPurchase.CategoryTab); - _lastActionTime = DateTime.Now; - } - _gcShop.ProcessPurchase(); - } - } - - private void OnPurchaseCompleted(object? sender, PurchaseCompletedEventArgs e) - { - if (_state == GCShopState.Purchasing && _currentPurchase != null && _questController.IsRunning && e.Success && e.ItemId == _currentPurchase.ItemId) - { - _logger.LogInformation("GC purchase of item {ItemId} completed successfully", e.ItemId); - _gcShop.CloseShop(); - _purchaseCompletedThisStep = true; - _state = GCShopState.Completed; - } - } - - private void Reset() - { - _state = GCShopState.Inactive; - _currentPurchase = null; - _lastActionTime = DateTime.MinValue; - _purchaseCompletedThisStep = false; - } -} diff --git a/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs b/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs index ac3dee9..2d42f14 100644 --- a/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs +++ b/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs @@ -6,6 +6,7 @@ using System.Runtime.InteropServices; using System.Text.RegularExpressions; using Dalamud.Game.Addon.Lifecycle; using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game.Event; @@ -57,14 +58,8 @@ internal sealed class InteractionUiController : IDisposable private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - private readonly ShopController _shopController; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - private readonly BossModIpc _bossModIpc; private readonly Configuration _configuration; @@ -81,7 +76,7 @@ internal sealed class InteractionUiController : IDisposable { get { - if (!_isInitialCheck && !_questController.IsRunning && !_fateController.IsRunning && !_seasonalDutyController.IsRunning) + if (!_isInitialCheck && !_questController.IsRunning) { return _territoryData.IsQuestBattleInstance(_clientState.TerritoryType); } @@ -89,7 +84,7 @@ internal sealed class InteractionUiController : IDisposable } } - public unsafe InteractionUiController(IAddonLifecycle addonLifecycle, IDataManager dataManager, QuestFunctions questFunctions, AetheryteFunctions aetheryteFunctions, ExcelFunctions excelFunctions, QuestController questController, GatheringPointRegistry gatheringPointRegistry, QuestRegistry questRegistry, QuestData questData, TerritoryData territoryData, IGameGui gameGui, ITargetManager targetManager, IPluginLog pluginLog, IClientState clientState, IObjectTable objectTable, ShopController shopController, FateController fateController, SeasonalDutyController seasonalDutyController, BossModIpc bossModIpc, Configuration configuration, ILogger logger) + public unsafe InteractionUiController(IAddonLifecycle addonLifecycle, IDataManager dataManager, QuestFunctions questFunctions, AetheryteFunctions aetheryteFunctions, ExcelFunctions excelFunctions, QuestController questController, GatheringPointRegistry gatheringPointRegistry, QuestRegistry questRegistry, QuestData questData, TerritoryData territoryData, IGameGui gameGui, ITargetManager targetManager, IPluginLog pluginLog, IClientState clientState, ShopController shopController, BossModIpc bossModIpc, Configuration configuration, ILogger logger) { _addonLifecycle = addonLifecycle; _dataManager = dataManager; @@ -104,10 +99,7 @@ internal sealed class InteractionUiController : IDisposable _gameGui = gameGui; _targetManager = targetManager; _clientState = clientState; - _objectTable = objectTable; _shopController = shopController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _bossModIpc = bossModIpc; _configuration = configuration; _logger = logger; @@ -121,7 +113,6 @@ internal sealed class InteractionUiController : IDisposable _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "DifficultySelectYesNo", DifficultySelectYesNoPostSetup); _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "PointMenu", PointMenuPostSetup); _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "HousingSelectBlock", HousingSelectBlockPostSetup); - _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "EasterMowingResult", EasterMowingResultPostSetup); if (_gameGui.TryGetAddonByName("RhythmAction", out var addonPtr)) { addonPtr->Close(fireCallback: true); @@ -373,7 +364,9 @@ internal sealed class InteractionUiController : IDisposable int num = 1; List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = valueOrDefault; + Span span = CollectionsMarshal.AsSpan(list2); + int index = 0; + span[index] = valueOrDefault; source = list2; } } @@ -459,24 +452,6 @@ internal sealed class InteractionUiController : IDisposable } } } - if (_fateController.IsRunning) - { - List list4 = _fateController.CurrentFate?.TransformDialogueChoices; - if (list4 != null) - { - _logger.LogInformation("Adding {Count} dialogue choices from active FATE", list4.Count); - 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"); @@ -664,55 +639,12 @@ internal sealed class InteractionUiController : IDisposable return; } QuestController.QuestProgress simulatedQuest = _questController.SimulatedQuest; - if (simulatedQuest != null && HandleTravelYesNo(addonSelectYesno, simulatedQuest, text)) + if (simulatedQuest == null || !HandleTravelYesNo(addonSelectYesno, simulatedQuest, text)) { - return; - } - QuestController.QuestProgress nextQuest = _questController.NextQuest; - if (nextQuest != null && CheckQuestYesNo(addonSelectYesno, nextQuest, text, checkAllSteps)) - { - return; - } - if (_fateController.IsRunning) - { - List list = _fateController.CurrentFate?.TransformDialogueChoices; - if (list != null) + QuestController.QuestProgress nextQuest = _questController.NextQuest; + if (nextQuest != null) { - foreach (DialogueChoice item in list) - { - 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; - } + CheckQuestYesNo(addonSelectYesno, nextQuest, text, checkAllSteps); } } } @@ -751,6 +683,7 @@ internal sealed class InteractionUiController : IDisposable if (aetheryte.HasValue) { EAetheryteLocation valueOrDefault = aetheryte.GetValueOrDefault(); + Span span2; Span span; switch (_aetheryteFunctions.CanRegisterFreeOrFavoriteAetheryte(valueOrDefault)) { @@ -760,12 +693,12 @@ internal sealed class InteractionUiController : IDisposable int num2 = 1 + list.Count; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); + span2 = CollectionsMarshal.AsSpan(list3); int num = 0; span = CollectionsMarshal.AsSpan(list); - span.CopyTo(span3.Slice(num, span.Length)); + span.CopyTo(span2.Slice(num, span.Length)); num += span.Length; - span3[num] = new DialogueChoice + span2[num] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "Addon", @@ -783,7 +716,7 @@ internal sealed class InteractionUiController : IDisposable CollectionsMarshal.SetCount(list2, num); span = CollectionsMarshal.AsSpan(list2); int num2 = 0; - Span span2 = CollectionsMarshal.AsSpan(list); + span2 = CollectionsMarshal.AsSpan(list); span2.CopyTo(span.Slice(num2, span2.Length)); num2 += span2.Length; span[num2] = new DialogueChoice @@ -924,18 +857,14 @@ internal sealed class InteractionUiController : IDisposable { _logger.LogTrace("FindTargetTerritoryFromQuestStep (current): {CurrentTerritory}, {TargetTerritory}", questStep.TerritoryId, questStep.TargetTerritoryId); } - if (questStep != null && (questStep.TerritoryId != _clientState.TerritoryType || !questStep.TargetTerritoryId.HasValue) && questStep.InteractionType == EInteractionType.Gather) + if (questStep != null && (questStep.TerritoryId != _clientState.TerritoryType || !questStep.TargetTerritoryId.HasValue) && questStep.InteractionType == EInteractionType.Gather && _gatheringPointRegistry.TryGetGatheringPointId(questStep.ItemsToGather[0].ItemId, ((EClassJob?)_clientState.LocalPlayer?.ClassJob.RowId).GetValueOrDefault(), out GatheringPointId gatheringPointId) && _gatheringPointRegistry.TryGetGatheringPoint(gatheringPointId, out GatheringRoot gatheringRoot)) { - IGameObject gameObject = _objectTable[0]; - if (_gatheringPointRegistry.TryGetGatheringPointId(questStep.ItemsToGather[0].ItemId, ((EClassJob?)(gameObject as ICharacter)?.ClassJob.RowId).GetValueOrDefault(), out GatheringPointId gatheringPointId) && _gatheringPointRegistry.TryGetGatheringPoint(gatheringPointId, out GatheringRoot gatheringRoot)) + foreach (QuestStep step in gatheringRoot.Steps) { - foreach (QuestStep step in gatheringRoot.Steps) + if (step.TerritoryId == _clientState.TerritoryType && step.TargetTerritoryId.HasValue) { - if (step.TerritoryId == _clientState.TerritoryType && step.TargetTerritoryId.HasValue) - { - _logger.LogTrace("FindTargetTerritoryFromQuestStep (gathering): {CurrentTerritory}, {TargetTerritory}", step.TerritoryId, step.TargetTerritoryId); - return step.TargetTerritoryId; - } + _logger.LogTrace("FindTargetTerritoryFromQuestStep (gathering): {CurrentTerritory}, {TargetTerritory}", step.TerritoryId, step.TargetTerritoryId); + return step.TargetTerritoryId; } } } @@ -1052,35 +981,6 @@ internal sealed class InteractionUiController : IDisposable } } - private unsafe void EasterMowingResultPostSetup(AddonEvent type, AddonArgs args) - { - if (_seasonalDutyController.IsRunning || ShouldHandleUiInteractions) - { - _logger.LogInformation("Dismissing EasterMowingResult"); - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - AtkValue* values = stackalloc AtkValue[3] - { - new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = -1 - }, - new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 1 - }, - new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 1 - } - }; - address->FireCallback(3u, values); - address->Close(fireCallback: true); - } - } - private StringOrRegex? ResolveReference(Questionable.Model.Quest? quest, string? excelSheet, ExcelRef? excelRef, bool isRegExp) { if (excelRef == null) @@ -1104,7 +1004,6 @@ internal sealed class InteractionUiController : IDisposable public void Dispose() { - _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "EasterMowingResult", EasterMowingResultPostSetup); _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "HousingSelectBlock", HousingSelectBlockPostSetup); _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "PointMenu", PointMenuPostSetup); _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "DifficultySelectYesNo", DifficultySelectYesNoPostSetup); diff --git a/Questionable/Questionable.Controller.GameUi/QteController.cs b/Questionable/Questionable.Controller.GameUi/QteController.cs deleted file mode 100644 index 6bc45b0..0000000 --- a/Questionable/Questionable.Controller.GameUi/QteController.cs +++ /dev/null @@ -1,113 +0,0 @@ -using System; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Component.GUI; -using FFXIVClientStructs.Interop; -using LLib.GameUI; -using Microsoft.Extensions.Logging; -using Questionable.Controller.Utils; - -namespace Questionable.Controller.GameUi; - -internal sealed class QteController : IDisposable -{ - private readonly Configuration _configuration; - - private readonly IGameGui _gameGui; - - private readonly IGameConfig _gameConfig; - - private readonly IFramework _framework; - - private readonly ILogger _logger; - - private long _throttler = Environment.TickCount64; - - private readonly Random _random = new Random(); - - private bool _hasDirectChat; - - private bool _directChatWasEnabled; - - public QteController(Configuration configuration, IGameGui gameGui, IGameConfig gameConfig, IFramework framework, ILogger logger) - { - _configuration = configuration; - _gameGui = gameGui; - _gameConfig = gameConfig; - _framework = framework; - _logger = logger; - _framework.Update += OnUpdate; - } - - private unsafe void OnUpdate(IFramework framework) - { - AtkUnitBase* addonPtr; - if (!_configuration.General.AutoSolveQte) - { - EnableDirectChatIfNeeded(); - } - else if (_gameGui.TryGetAddonByName("QTE", out addonPtr) && LAddon.IsAddonReady(addonPtr) && addonPtr->IsVisible) - { - DisableDirectChatIfNeeded(); - if (Environment.TickCount64 >= _throttler) - { - if (IsChatLogFocused()) - { - WindowsKeypress.SendKeypress(WindowsKeypress.LimitedKeys.Escape); - } - WindowsKeypress.SendKeypress(WindowsKeypress.LimitedKeys.A); - _throttler = Environment.TickCount64 + _random.Next(25, 50); - } - } - else - { - EnableDirectChatIfNeeded(); - } - } - - private unsafe bool IsChatLogFocused() - { - AtkStage* ptr = AtkStage.Instance(); - if (ptr == null) - { - return false; - } - Span> entries = ptr->RaptureAtkUnitManager->AtkUnitManager.FocusedUnitsList.Entries; - for (int i = 0; i < entries.Length; i++) - { - Pointer pointer = entries[i]; - if (pointer.Value != null && pointer.Value->NameString == "ChatLog") - { - return true; - } - } - return false; - } - - private void EnableDirectChatIfNeeded() - { - if (_hasDirectChat) - { - _gameConfig.UiControl.Set("DirectChat", _directChatWasEnabled); - _hasDirectChat = false; - } - } - - private void DisableDirectChatIfNeeded() - { - if (!_hasDirectChat && _gameConfig.UiControl.TryGetBool("DirectChat", out var value)) - { - _directChatWasEnabled = value; - if (value) - { - _gameConfig.UiControl.Set("DirectChat", value: false); - } - _hasDirectChat = true; - } - } - - public void Dispose() - { - _framework.Update -= OnUpdate; - EnableDirectChatIfNeeded(); - } -} diff --git a/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs b/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs index c8b5ab7..24a2d6f 100644 --- a/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs +++ b/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs @@ -54,37 +54,68 @@ internal sealed class MovementOverrideController List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new BlacklistedArea(1191, new Vector3(-223.0412f, 31.937134f, -584.03906f), 5f, 7.75f); - span[1] = new BlacklistedPoint(128, new Vector3(2f, 40.25f, 36.5f), new Vector3(0.25f, 40.25f, 36.5f)); - span[2] = new BlacklistedPoint(132, new Vector3(29f, -8f, 120.5f), new Vector3(28.265165f, -8.000001f, 120.149734f)); - span[3] = new BlacklistedPoint(132, new Vector3(28.25f, -8f, 125f), new Vector3(27.372725f, -8.200001f, 125.55859f)); - span[4] = new BlacklistedPoint(132, new Vector3(32.25f, -8f, 126.5f), new Vector3(32.022232f, -8.200011f, 126.86095f)); - span[5] = new BlacklistedPoint(205, new Vector3(26.75f, 0.5f, 20.75f), new Vector3(27.179117f, 0.26728272f, 19.714373f)); - span[6] = new BlacklistedPoint(130, new Vector3(59.5f, 4.25f, -118f), new Vector3(60.551353f, 4f, -119.76446f)); - span[7] = new BlacklistedPoint(145, new Vector3(-139.75f, -32.25f, 75.25f), new Vector3(-139.57748f, -33.785175f, 77.87906f)); - span[8] = new BlacklistedPoint(146, new Vector3(-201.75f, 10.5f, -265.5f), new Vector3(-203.75235f, 10.130764f, -265.15314f)); - span[9] = new BlacklistedArea(135, new Vector3(156.11499f, 15.518433f, 673.21277f), 0.5f, 5f); - span[10] = new BlacklistedPoint(139, new Vector3(366f, -2.5f, 95.5f), new Vector3(362.65973f, -3.4f, 96.6896f), 2f); - span[11] = new BlacklistedPoint(155, new Vector3(-478.75f, 149.25f, -305.75f), new Vector3(-476.1802f, 149.06573f, -304.7811f)); - span[12] = new BlacklistedPoint(351, new Vector3(3.25f, 0.75f, 8.5f), new Vector3(4f, 0f, 9.5f)); - span[13] = new BlacklistedPoint(418, new Vector3(-136.75f, 2.75f, 9f), new Vector3(-138.66408f, 2.0333426f, 8.860787f), 1f); - span[14] = new BlacklistedPoint(401, new Vector3(-14.75f, -136.75f, 515.75f), new Vector3(-17.631899f, -137.39148f, 512.6676f), 2f); - span[15] = new BlacklistedPoint(397, new Vector3(-93.75f, 87.75f, -715.5f), new Vector3(-87.78183f, 87.188995f, -713.3343f), 2f); - span[16] = new BlacklistedPoint(400, new Vector3(384f, -74f, 648.75f), new Vector3(386.0543f, -72.409454f, 652.0184f), 3f); - span[17] = new BlacklistedPoint(399, new Vector3(-514.4851f, 149.63762f, -480.58087f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); - span[18] = new BlacklistedPoint(399, new Vector3(-534.5f, 153f, -476.75f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); - span[19] = new BlacklistedPoint(478, new Vector3(14.5f, 215.25f, -101.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); - span[20] = new BlacklistedPoint(478, new Vector3(11f, 215.5f, -104.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); - span[21] = new BlacklistedPoint(1189, new Vector3(574f, -142.25f, 504.25f), new Vector3(574.44183f, -142.12766f, 507.60065f)); - span[22] = new BlacklistedPoint(814, new Vector3(-324f, 348.75f, -181.75f), new Vector3(-322.75076f, 347.0529f, -177.69328f), 3f); - span[23] = new BlacklistedPoint(956, new Vector3(6.25f, -27.75f, -41.5f), new Vector3(5.0831127f, -28.213453f, -42.239136f)); - span[24] = new BlacklistedPoint(1189, new Vector3(-115.75f, -213.75f, 336.5f), new Vector3(-112.40265f, -215.01514f, 339.0067f), 2f); - span[25] = new BlacklistedPoint(1190, new Vector3(-292.29004f, 18.598045f, -133.83907f), new Vector3(-288.20895f, 18.652182f, -132.67445f), 4f); - span[26] = new BlacklistedPoint(1191, new Vector3(-108f, 29.25f, -350.75f), new Vector3(-107.56289f, 29.008266f, -348.80087f)); - span[27] = new BlacklistedPoint(1191, new Vector3(-105.75f, 29.75f, -351f), new Vector3(-105.335304f, 29.017048f, -348.85077f)); - span[28] = new BlacklistedPoint(1186, new Vector3(284.25f, 50.75f, 171.25f), new Vector3(284.25f, 50.75f, 166.25f)); - span[29] = new BlacklistedPoint(1186, new Vector3(283.75f, 50.75f, 167.25f), new Vector3(284.25f, 50.75f, 166.25f)); - span[30] = new BlacklistedPoint(1186, new Vector3(287.75f, 51.25f, 172f), new Vector3(288.875f, 50.75f, 166.25f)); + int num2 = 0; + span[num2] = new BlacklistedArea(1191, new Vector3(-223.0412f, 31.937134f, -584.03906f), 5f, 7.75f); + num2++; + span[num2] = new BlacklistedPoint(128, new Vector3(2f, 40.25f, 36.5f), new Vector3(0.25f, 40.25f, 36.5f)); + num2++; + span[num2] = new BlacklistedPoint(132, new Vector3(29f, -8f, 120.5f), new Vector3(28.265165f, -8.000001f, 120.149734f)); + num2++; + span[num2] = new BlacklistedPoint(132, new Vector3(28.25f, -8f, 125f), new Vector3(27.372725f, -8.200001f, 125.55859f)); + num2++; + span[num2] = new BlacklistedPoint(132, new Vector3(32.25f, -8f, 126.5f), new Vector3(32.022232f, -8.200011f, 126.86095f)); + num2++; + span[num2] = new BlacklistedPoint(205, new Vector3(26.75f, 0.5f, 20.75f), new Vector3(27.179117f, 0.26728272f, 19.714373f)); + num2++; + span[num2] = new BlacklistedPoint(130, new Vector3(59.5f, 4.25f, -118f), new Vector3(60.551353f, 4f, -119.76446f)); + num2++; + span[num2] = new BlacklistedPoint(145, new Vector3(-139.75f, -32.25f, 75.25f), new Vector3(-139.57748f, -33.785175f, 77.87906f)); + num2++; + span[num2] = new BlacklistedPoint(146, new Vector3(-201.75f, 10.5f, -265.5f), new Vector3(-203.75235f, 10.130764f, -265.15314f)); + num2++; + span[num2] = new BlacklistedArea(135, new Vector3(156.11499f, 15.518433f, 673.21277f), 0.5f, 5f); + num2++; + span[num2] = new BlacklistedPoint(139, new Vector3(366f, -2.5f, 95.5f), new Vector3(362.65973f, -3.4f, 96.6896f), 2f); + num2++; + span[num2] = new BlacklistedPoint(155, new Vector3(-478.75f, 149.25f, -305.75f), new Vector3(-476.1802f, 149.06573f, -304.7811f)); + num2++; + span[num2] = new BlacklistedPoint(351, new Vector3(3.25f, 0.75f, 8.5f), new Vector3(4f, 0f, 9.5f)); + num2++; + span[num2] = new BlacklistedPoint(418, new Vector3(-136.75f, 2.75f, 9f), new Vector3(-138.66408f, 2.0333426f, 8.860787f), 1f); + num2++; + span[num2] = new BlacklistedPoint(401, new Vector3(-14.75f, -136.75f, 515.75f), new Vector3(-17.631899f, -137.39148f, 512.6676f), 2f); + num2++; + span[num2] = new BlacklistedPoint(397, new Vector3(-93.75f, 87.75f, -715.5f), new Vector3(-87.78183f, 87.188995f, -713.3343f), 2f); + num2++; + span[num2] = new BlacklistedPoint(400, new Vector3(384f, -74f, 648.75f), new Vector3(386.0543f, -72.409454f, 652.0184f), 3f); + num2++; + span[num2] = new BlacklistedPoint(399, new Vector3(-514.4851f, 149.63762f, -480.58087f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); + num2++; + span[num2] = new BlacklistedPoint(399, new Vector3(-534.5f, 153f, -476.75f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); + num2++; + span[num2] = new BlacklistedPoint(478, new Vector3(14.5f, 215.25f, -101.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); + num2++; + span[num2] = new BlacklistedPoint(478, new Vector3(11f, 215.5f, -104.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); + num2++; + span[num2] = new BlacklistedPoint(1189, new Vector3(574f, -142.25f, 504.25f), new Vector3(574.44183f, -142.12766f, 507.60065f)); + num2++; + span[num2] = new BlacklistedPoint(814, new Vector3(-324f, 348.75f, -181.75f), new Vector3(-322.75076f, 347.0529f, -177.69328f), 3f); + num2++; + span[num2] = new BlacklistedPoint(956, new Vector3(6.25f, -27.75f, -41.5f), new Vector3(5.0831127f, -28.213453f, -42.239136f)); + num2++; + span[num2] = new BlacklistedPoint(1189, new Vector3(-115.75f, -213.75f, 336.5f), new Vector3(-112.40265f, -215.01514f, 339.0067f), 2f); + num2++; + span[num2] = new BlacklistedPoint(1190, new Vector3(-292.29004f, 18.598045f, -133.83907f), new Vector3(-288.20895f, 18.652182f, -132.67445f), 4f); + num2++; + span[num2] = new BlacklistedPoint(1191, new Vector3(-108f, 29.25f, -350.75f), new Vector3(-107.56289f, 29.008266f, -348.80087f)); + num2++; + span[num2] = new BlacklistedPoint(1191, new Vector3(-105.75f, 29.75f, -351f), new Vector3(-105.335304f, 29.017048f, -348.85077f)); + num2++; + span[num2] = new BlacklistedPoint(1186, new Vector3(284.25f, 50.75f, 171.25f), new Vector3(284.25f, 50.75f, 166.25f)); + num2++; + span[num2] = new BlacklistedPoint(1186, new Vector3(283.75f, 50.75f, 167.25f), new Vector3(284.25f, 50.75f, 166.25f)); + num2++; + span[num2] = new BlacklistedPoint(1186, new Vector3(287.75f, 51.25f, 172f), new Vector3(288.875f, 50.75f, 166.25f)); BlacklistedLocations = list; } } diff --git a/Questionable/Questionable.Controller.Steps.Common/Mount.cs b/Questionable/Questionable.Controller.Steps.Common/Mount.cs index 449dd38..7819d05 100644 --- a/Questionable/Questionable.Controller.Steps.Common/Mount.cs +++ b/Questionable/Questionable.Controller.Steps.Common/Mount.cs @@ -50,7 +50,7 @@ internal static class Mount } } - internal sealed class MountEvaluator(GameFunctions gameFunctions, ICondition condition, TerritoryData territoryData, IClientState clientState, IObjectTable objectTable, ILogger logger) + internal sealed class MountEvaluator(GameFunctions gameFunctions, ICondition condition, TerritoryData territoryData, IClientState clientState, ILogger logger) { public unsafe MountResult EvaluateMountState(MountTask task, bool dryRun, ref DateTime retryAt) { @@ -71,7 +71,7 @@ internal static class Mount } if (task.MountIf == EMountIf.AwayFromPosition) { - float num = System.Numerics.Vector3.Distance((FFXIVClientStructs.FFXIV.Common.Math.Vector3)(objectTable[0]?.Position ?? ((System.Numerics.Vector3)FFXIVClientStructs.FFXIV.Common.Math.Vector3.Zero)), task.Position.GetValueOrDefault()); + float num = System.Numerics.Vector3.Distance((FFXIVClientStructs.FFXIV.Common.Math.Vector3)(clientState.LocalPlayer?.Position ?? ((System.Numerics.Vector3)FFXIVClientStructs.FFXIV.Common.Math.Vector3.Zero)), task.Position.GetValueOrDefault()); if (task.TerritoryId == clientState.TerritoryType && num < 30f && !Conditions.Instance()->Diving) { logger.Log(logLevel, "Not using mount, as we're close to the target"); @@ -159,7 +159,7 @@ internal static class Mount } } - internal sealed class UnmountExecutor(ICondition condition, ILogger logger, GameFunctions gameFunctions, IObjectTable objectTable) : TaskExecutor() + internal sealed class UnmountExecutor(ICondition condition, ILogger logger, GameFunctions gameFunctions, IClientState clientState) : TaskExecutor() { private bool _unmountTriggered; @@ -221,9 +221,10 @@ internal static class Mount private unsafe bool IsUnmounting() { - if (objectTable[0] is IPlayerCharacter playerCharacter) + IPlayerCharacter localPlayer = clientState.LocalPlayer; + if (localPlayer != null) { - BattleChara* address = (BattleChara*)playerCharacter.Address; + BattleChara* address = (BattleChara*)localPlayer.Address; return (address->Mount.Flags & 1) == 1; } return false; diff --git a/Questionable/Questionable.Controller.Steps.Common/SendNotification.cs b/Questionable/Questionable.Controller.Steps.Common/SendNotification.cs index 363fc0f..2752635 100644 --- a/Questionable/Questionable.Controller.Steps.Common/SendNotification.cs +++ b/Questionable/Questionable.Controller.Steps.Common/SendNotification.cs @@ -10,14 +10,14 @@ namespace Questionable.Controller.Steps.Common; internal static class SendNotification { - internal sealed class Factory(Configuration configuration, AutoDutyIpc autoDutyIpc, BossModIpc bossModIpc, TerritoryData territoryData) : SimpleTaskFactory() + internal sealed class Factory(AutomatonIpc automatonIpc, AutoDutyIpc autoDutyIpc, BossModIpc bossModIpc, TerritoryData territoryData) : SimpleTaskFactory() { public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step) { switch (step.InteractionType) { case EInteractionType.Snipe: - if (!configuration.General.AutoSnipe) + if (!automatonIpc.IsAutoSnipeEnabled) { return new Task(step.InteractionType, step.Comment); } @@ -59,7 +59,7 @@ internal static class SendNotification } } - internal sealed class Executor(IChatGui chatGui, Configuration configuration) : TaskExecutor() + internal sealed class Executor(NotificationMasterIpc notificationMasterIpc, IChatGui chatGui, Configuration configuration) : TaskExecutor() { protected override bool Start() { @@ -142,6 +142,7 @@ internal static class SendNotification XivChatEntry chat = xivChatEntry; chatGui.Print(chat); } + notificationMasterIpc.Notify(text2); return true; } diff --git a/Questionable/Questionable.Controller.Steps.Gathering/DoGather.cs b/Questionable/Questionable.Controller.Steps.Gathering/DoGather.cs index 1ae0405..f3c04bd 100644 --- a/Questionable/Questionable.Controller.Steps.Gathering/DoGather.cs +++ b/Questionable/Questionable.Controller.Steps.Gathering/DoGather.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Linq; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.UI; @@ -31,7 +30,7 @@ internal static class DoGather } } - internal sealed class GatherExecutor(GatheringController gatheringController, GameFunctions gameFunctions, IGameGui gameGui, IObjectTable objectTable, ICondition condition, ILogger logger) : TaskExecutor() + internal sealed class GatherExecutor(GatheringController gatheringController, GameFunctions gameFunctions, IGameGui gameGui, IClientState clientState, ICondition condition, ILogger logger) : TaskExecutor() { private bool _wasGathering; @@ -269,7 +268,7 @@ internal static class DoGather private EAction PickAction(EAction minerAction, EAction botanistAction) { - if ((objectTable[0] as ICharacter)?.ClassJob.RowId == 16) + if (clientState.LocalPlayer?.ClassJob.RowId == 16) { return minerAction; } diff --git a/Questionable/Questionable.Controller.Steps.Gathering/DoGatherCollectable.cs b/Questionable/Questionable.Controller.Steps.Gathering/DoGatherCollectable.cs index e6cb13a..c6ef831 100644 --- a/Questionable/Questionable.Controller.Steps.Gathering/DoGatherCollectable.cs +++ b/Questionable/Questionable.Controller.Steps.Gathering/DoGatherCollectable.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Text; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Component.GUI; @@ -28,7 +27,7 @@ internal static class DoGatherCollectable } } - internal sealed class GatherCollectableExecutor(GatheringController gatheringController, GameFunctions gameFunctions, IObjectTable objectTable, IGameGui gameGui, ILogger logger) : TaskExecutor() + internal sealed class GatherCollectableExecutor(GatheringController gatheringController, GameFunctions gameFunctions, IClientState clientState, IGameGui gameGui, ILogger logger) : TaskExecutor() { private Queue? _actionQueue; @@ -138,42 +137,42 @@ internal static class DoGatherCollectable private Queue GetNextActions(NodeCondition nodeCondition) { - uint num = (objectTable[0] as ICharacter)?.CurrentGp ?? 0; - logger.LogTrace("Getting next actions (with {GP} GP, {MeticulousCollectability}~ meticulous, {ScourCollectability}~ scour)", num, nodeCondition.CollectabilityFromMeticulous, nodeCondition.CollectabilityFromScour); + uint currentGp = clientState.LocalPlayer.CurrentGp; + logger.LogTrace("Getting next actions (with {GP} GP, {MeticulousCollectability}~ meticulous, {ScourCollectability}~ scour)", currentGp, nodeCondition.CollectabilityFromMeticulous, nodeCondition.CollectabilityFromScour); Queue queue = new Queue(); - uint num2 = nodeCondition.CollectabilityToGoal(base.Task.Request.Collectability); - if (num2 <= nodeCondition.CollectabilityFromMeticulous) + uint num = nodeCondition.CollectabilityToGoal(base.Task.Request.Collectability); + if (num <= nodeCondition.CollectabilityFromMeticulous) { - logger.LogTrace("Can get all needed {NeededCollectability} from {Collectability}~ meticulous", num2, nodeCondition.CollectabilityFromMeticulous); + logger.LogTrace("Can get all needed {NeededCollectability} from {Collectability}~ meticulous", num, nodeCondition.CollectabilityFromMeticulous); queue.Enqueue(PickAction(EAction.MeticulousMiner, EAction.MeticulousBotanist)); return queue; } - if (num2 <= nodeCondition.CollectabilityFromScour) + if (num <= nodeCondition.CollectabilityFromScour) { - logger.LogTrace("Can get all needed {NeededCollectability} from {Collectability}~ scour", num2, nodeCondition.CollectabilityFromScour); + logger.LogTrace("Can get all needed {NeededCollectability} from {Collectability}~ scour", num, nodeCondition.CollectabilityFromScour); queue.Enqueue(PickAction(EAction.ScourMiner, EAction.ScourBotanist)); return queue; } - if (!nodeCondition.ScrutinyActive && num >= 200) + if (!nodeCondition.ScrutinyActive && currentGp >= 200) { - logger.LogTrace("Still missing {NeededCollectability} collectability, scrutiny inactive", num2); + logger.LogTrace("Still missing {NeededCollectability} collectability, scrutiny inactive", num); queue.Enqueue(PickAction(EAction.ScrutinyMiner, EAction.ScrutinyBotanist)); return queue; } if (nodeCondition.ScrutinyActive) { - logger.LogTrace("Scrutiny active, need {NeededCollectability} and we expect {Collectability}~ meticulous", num2, nodeCondition.CollectabilityFromMeticulous); + logger.LogTrace("Scrutiny active, need {NeededCollectability} and we expect {Collectability}~ meticulous", num, nodeCondition.CollectabilityFromMeticulous); queue.Enqueue(PickAction(EAction.MeticulousMiner, EAction.MeticulousBotanist)); return queue; } - logger.LogTrace("Scrutiny active, need {NeededCollectability} and we expect {Collectability}~ scour", num2, nodeCondition.CollectabilityFromScour); + logger.LogTrace("Scrutiny active, need {NeededCollectability} and we expect {Collectability}~ scour", num, nodeCondition.CollectabilityFromScour); queue.Enqueue(PickAction(EAction.ScourMiner, EAction.ScourBotanist)); return queue; } private EAction PickAction(EAction minerAction, EAction botanistAction) { - if ((objectTable[0] as ICharacter)?.ClassJob.RowId == 16) + if (clientState.LocalPlayer?.ClassJob.RowId == 16) { return minerAction; } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Action.cs b/Questionable/Questionable.Controller.Steps.Interactions/Action.cs index 3522fcd..72796f6 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Action.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Action.cs @@ -22,10 +22,6 @@ internal static class Action { return Array.Empty(); } - if (step.DataIds.Count > 0) - { - return Array.Empty(); - } ArgumentNullException.ThrowIfNull(step.Action, "step.Action"); ITask task = OnObject(step.DataId, quest, step.Action.Value, step.CompletionQuestVariablesFlags); if (step.Action.Value.RequiresMount()) @@ -90,9 +86,6 @@ internal static class Action _continueAt = DateTime.Now.AddSeconds(0.5); return true; } - logger.LogInformation("Object {DataId} is untargetable, using action {Action} without target", base.Task.DataId, base.Task.Action); - _usedAction = gameFunctions.UseAction(base.Task.Action); - _continueAt = DateTime.Now.AddSeconds(0.5); return true; } _usedAction = gameFunctions.UseAction(base.Task.Action); @@ -111,18 +104,11 @@ internal static class Action if (base.Task.DataId.HasValue) { IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.DataId.Value); - if (gameObject == null) + if (gameObject == null || !gameObject.IsTargetable) { return ETaskResult.StillRunning; } - if (gameObject.IsTargetable) - { - _usedAction = gameFunctions.UseAction(gameObject, base.Task.Action); - } - else - { - _usedAction = gameFunctions.UseAction(base.Task.Action); - } + _usedAction = gameFunctions.UseAction(gameObject, base.Task.Action); _continueAt = DateTime.Now.AddSeconds(0.5); } else diff --git a/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs b/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs deleted file mode 100644 index 003a2da..0000000 --- a/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs +++ /dev/null @@ -1,347 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Controller.Steps.Interactions; - -internal static class ClearObjectsWithAction -{ - internal sealed class Factory : ITaskFactory - { - public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) - { - if (step.InteractionType != EInteractionType.Action) - { - return Array.Empty(); - } - if (step.DataIds.Count == 0) - { - return Array.Empty(); - } - if (!step.Action.HasValue) - { - return Array.Empty(); - } - return new global::_003C_003Ez__ReadOnlySingleElementList(new ClearTask(step.DataIds, step.Action.Value, step.TerritoryId, step.CalculateActualStopDistance(), step.WaypointPositions)); - } - } - - internal sealed record ClearTask(List DataIds, EAction Action, ushort TerritoryId, float StopDistance, List WaypointPositions) : ITask - { - public bool ShouldRedoOnInterrupt() - { - return true; - } - - public override string ToString() - { - return $"ClearObjects({Action}, {DataIds.Count} types)"; - } - } - - internal sealed class ClearTaskExecutor(MovementController movementController, GameFunctions gameFunctions, IClientState clientState, IObjectTable objectTable, ILogger logger) : TaskExecutor() - { - private enum State - { - FindingObject, - MovingToObject, - UsingAction, - WaitingAfterAction, - MovingToWaypoint, - WaitingForTransition - } - - private const float VisitedPositionRadius = 5f; - - private State _state; - - private DateTime _noObjectFoundSince = DateTime.MaxValue; - - private DateTime _waitUntil = DateTime.MinValue; - - private DateTime _waypointReachedAt = DateTime.MaxValue; - - private Vector3 _lastPlayerPosition; - - private readonly List _visitedPositions = new List(); - - private readonly List _triedWaypointIndices = new List(); - - protected override bool Start() - { - if (clientState.TerritoryType != base.Task.TerritoryId) - { - return true; - } - return TryFindAndMove(); - } - - private bool IsVisitedPosition(Vector3 position) - { - foreach (Vector3 visitedPosition in _visitedPositions) - { - if (Vector3.Distance(visitedPosition, position) <= 5f) - { - return true; - } - } - return false; - } - - private IGameObject? FindNearestUnvisitedObject() - { - IGameObject gameObject = objectTable[0]; - if (gameObject == null) - { - return null; - } - IGameObject result = null; - float num = float.MaxValue; - foreach (IGameObject item in objectTable) - { - ObjectKind objectKind = item.ObjectKind; - if ((objectKind == ObjectKind.Player || objectKind - 8 <= ObjectKind.BattleNpc || objectKind == ObjectKind.Housing) ? true : false) - { - continue; - } - bool flag = false; - foreach (uint dataId in base.Task.DataIds) - { - if (item.BaseId == dataId) - { - flag = true; - break; - } - } - if (flag && !IsVisitedPosition(item.Position)) - { - float num2 = Vector3.Distance(gameObject.Position, item.Position); - if (num2 < num) - { - result = item; - num = num2; - } - } - } - return result; - } - - private bool AnyMatchingObjectsExist() - { - foreach (IGameObject item in objectTable) - { - ObjectKind objectKind = item.ObjectKind; - if ((objectKind == ObjectKind.Player || objectKind - 8 <= ObjectKind.BattleNpc || objectKind == ObjectKind.Housing) ? true : false) - { - continue; - } - foreach (uint dataId in base.Task.DataIds) - { - if (item.BaseId == dataId) - { - return true; - } - } - } - return false; - } - - private bool TryFindAndMove() - { - IGameObject gameObject = FindNearestUnvisitedObject(); - if (gameObject == null) - { - _state = State.FindingObject; - if (_noObjectFoundSince == DateTime.MaxValue) - { - _noObjectFoundSince = DateTime.Now; - } - return true; - } - _noObjectFoundSince = DateTime.MaxValue; - Vector3 position = gameObject.Position; - logger.LogInformation("Moving to object {DataId} at {Position}", gameObject.BaseId, position); - movementController.NavigateTo(EMovementType.Quest, gameObject.BaseId, position, fly: false, sprint: true, base.Task.StopDistance); - _state = State.MovingToObject; - return true; - } - - private (Vector3 Position, int Index)? FindNextWaypoint() - { - IGameObject gameObject = objectTable[0]; - if (gameObject == null || base.Task.WaypointPositions.Count == 0) - { - return null; - } - (Vector3, int)? result = null; - float num = float.MaxValue; - for (int i = 0; i < base.Task.WaypointPositions.Count; i++) - { - if (!_triedWaypointIndices.Contains(i)) - { - float num2 = Vector3.Distance(gameObject.Position, base.Task.WaypointPositions[i]); - if (num2 < num) - { - result = (base.Task.WaypointPositions[i], i); - num = num2; - } - } - } - return result; - } - - private void NavigateToNextWaypoint() - { - (Vector3, int)? tuple = FindNextWaypoint(); - if (!tuple.HasValue) - { - logger.LogInformation("All waypoints tried without transition, resetting"); - _triedWaypointIndices.Clear(); - tuple = FindNextWaypoint(); - if (!tuple.HasValue) - { - logger.LogWarning("No waypoint positions configured, waiting for transition"); - _state = State.WaitingForTransition; - _lastPlayerPosition = objectTable[0]?.Position ?? Vector3.Zero; - return; - } - } - _triedWaypointIndices.Add(tuple.Value.Item2); - logger.LogInformation("Moving to waypoint {Index} at {Position}", tuple.Value.Item2, tuple.Value.Item1); - movementController.NavigateTo(EMovementType.Quest, null, tuple.Value.Item1, fly: false, sprint: true, 0f); - _state = State.MovingToWaypoint; - } - - public override ETaskResult Update() - { - if (clientState.TerritoryType != base.Task.TerritoryId) - { - return ETaskResult.TaskComplete; - } - switch (_state) - { - case State.FindingObject: - if (_noObjectFoundSince != DateTime.MaxValue && DateTime.Now > _noObjectFoundSince.AddSeconds(3.0)) - { - if (AnyMatchingObjectsExist()) - { - logger.LogInformation("Matching objects still exist, clearing visited positions and retrying"); - _visitedPositions.Clear(); - _noObjectFoundSince = DateTime.MaxValue; - } - else - { - logger.LogInformation("No matching objects remain, moving to waypoint"); - NavigateToNextWaypoint(); - } - return ETaskResult.StillRunning; - } - TryFindAndMove(); - return ETaskResult.StillRunning; - case State.MovingToObject: - { - if (movementController.IsPathfinding || movementController.IsPathRunning) - { - return ETaskResult.StillRunning; - } - DateTime movementStartedAt = movementController.MovementStartedAt; - if (movementStartedAt == DateTime.MaxValue || movementStartedAt.AddSeconds(2.0) >= DateTime.Now) - { - return ETaskResult.StillRunning; - } - IGameObject gameObject2 = FindNearestUnvisitedObject(); - IGameObject gameObject3 = objectTable[0]; - if (gameObject2 != null && gameObject3 != null && Vector3.Distance(gameObject3.Position, gameObject2.Position) <= 5f) - { - _visitedPositions.Add(gameObject2.Position); - _state = State.UsingAction; - } - else - { - logger.LogInformation("Target no longer valid at destination, finding next"); - TryFindAndMove(); - } - return ETaskResult.StillRunning; - } - case State.UsingAction: - if (gameFunctions.UseAction(base.Task.Action)) - { - logger.LogInformation("Used action {Action}", base.Task.Action); - _waitUntil = DateTime.Now.AddSeconds(1.0); - _state = State.WaitingAfterAction; - } - return ETaskResult.StillRunning; - case State.WaitingAfterAction: - if (DateTime.Now < _waitUntil) - { - return ETaskResult.StillRunning; - } - TryFindAndMove(); - return ETaskResult.StillRunning; - case State.MovingToWaypoint: - { - if (movementController.IsPathfinding || movementController.IsPathRunning) - { - return ETaskResult.StillRunning; - } - DateTime movementStartedAt2 = movementController.MovementStartedAt; - if (movementStartedAt2 == DateTime.MaxValue || movementStartedAt2.AddSeconds(2.0) >= DateTime.Now) - { - return ETaskResult.StillRunning; - } - logger.LogInformation("Reached waypoint, waiting for zone transition"); - _state = State.WaitingForTransition; - _lastPlayerPosition = objectTable[0]?.Position ?? Vector3.Zero; - _waypointReachedAt = DateTime.Now; - return ETaskResult.StillRunning; - } - case State.WaitingForTransition: - { - IGameObject gameObject = objectTable[0]; - if (gameObject != null) - { - float num = Vector3.Distance(_lastPlayerPosition, gameObject.Position); - if (num > 50f) - { - logger.LogInformation("Zone transition detected (moved {Distance}), resuming plant clearing", num); - _visitedPositions.Clear(); - _triedWaypointIndices.Clear(); - _noObjectFoundSince = DateTime.MaxValue; - _state = State.FindingObject; - return ETaskResult.StillRunning; - } - } - if (FindNearestUnvisitedObject() != null) - { - logger.LogInformation("New objects detected, resuming plant clearing"); - _visitedPositions.Clear(); - _triedWaypointIndices.Clear(); - _noObjectFoundSince = DateTime.MaxValue; - TryFindAndMove(); - return ETaskResult.StillRunning; - } - if (_waypointReachedAt != DateTime.MaxValue && DateTime.Now > _waypointReachedAt.AddSeconds(3.0)) - { - logger.LogInformation("No transition at this waypoint, trying next"); - NavigateToNextWaypoint(); - } - return ETaskResult.StillRunning; - } - default: - return ETaskResult.TaskComplete; - } - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } -} diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs b/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs index f7ad257..0b7b8b1 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs @@ -6,10 +6,10 @@ using Dalamud.Game.ClientState.Conditions; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel; using FFXIVClientStructs.FFXIV.Client.System.Input; +using FFXIVClientStructs.FFXIV.Client.System.String; using FFXIVClientStructs.FFXIV.Client.UI; using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Common; -using Questionable.Controller.Utils; using Questionable.Model; using Questionable.Model.Questing; @@ -37,12 +37,10 @@ internal static class Dive } } - internal sealed class DoDive(ICondition condition, ILogger logger) : AbstractDelayedTaskExecutor(TimeSpan.FromSeconds(5L)), IStoppableTaskExecutor, ITaskExecutor + internal sealed class DoDive(ICondition condition, ILogger logger) : AbstractDelayedTaskExecutor(TimeSpan.FromSeconds(5L)) { private readonly Queue<(uint Type, nint Key)> _keysToPress = new Queue<(uint, nint)>(); - private readonly HashSet _pressedKeys = new HashSet(); - private int _attempts; protected override bool StartInternal() @@ -68,31 +66,12 @@ internal static class Dive return ETaskResult.StillRunning; } logger.LogDebug("{Action} key {KeyCode:X2}", (result.Item1 == 256) ? "Pressing" : "Releasing", result.Item2); - WindowsKeypress.SendMessage((nint)Device.Instance()->hWnd, result.Item1, result.Item2); - if (result.Item1 == 256) - { - _pressedKeys.Add(result.Item2); - } - else if (result.Item1 == 257) - { - _pressedKeys.Remove(result.Item2); - } + NativeMethods.SendMessage((nint)Device.Instance()->hWnd, result.Item1, result.Item2, IntPtr.Zero); return ETaskResult.StillRunning; } return base.Update(); } - public unsafe void StopNow() - { - foreach (nint pressedKey in _pressedKeys) - { - logger.LogDebug("Releasing stuck key {KeyCode:X2} on stop", pressedKey); - WindowsKeypress.SendMessage((nint)Device.Instance()->hWnd, 257u, pressedKey); - } - _pressedKeys.Clear(); - _keysToPress.Clear(); - } - public override bool ShouldInterruptOnDamage() { return false; @@ -104,7 +83,7 @@ internal static class Dive { return ETaskResult.TaskComplete; } - if (_attempts >= 5) + if (_attempts >= 3) { throw new TaskException("Please dive manually."); } @@ -115,23 +94,18 @@ internal static class Dive private unsafe void Descend() { - Keybind* keybind = UIInputData.Instance()->GetKeybind(InputId.MOVE_DESCENT); - if (keybind == null) - { - throw new TaskException("Could not find descent keybind"); - } - Span keySettings = keybind->KeySettings; - SeVirtualKey key = keySettings[0].Key; - KeyModifierFlag keyModifier = keySettings[0].KeyModifier; - SeVirtualKey key2 = keySettings[1].Key; - KeyModifierFlag keyModifier2 = keySettings[1].KeyModifier; - logger.LogInformation("Dive keybind: {Key1} + {Modifier1}, {Key2} + {Modifier2}", key, keyModifier, key2, keyModifier2); + UIInputData.Keybind keybind = default(UIInputData.Keybind); + Utf8String* name = Utf8String.FromString("MOVE_DESCENT"); + UIInputData.Instance()->GetKeybindByName(name, (Keybind*)(&keybind)); + logger.LogInformation("Dive keybind: {Key1} + {Modifier1}, {Key2} + {Modifier2}", keybind.Key, keybind.Modifier, keybind.AltKey, keybind.AltModifier); int num = 2; List> list = new List>(num); CollectionsMarshal.SetCount(list, num); Span> span = CollectionsMarshal.AsSpan(list); - span[0] = GetKeysToPress(key, keyModifier); - span[1] = GetKeysToPress(key2, keyModifier2); + int num2 = 0; + span[num2] = GetKeysToPress(keybind.Key, keybind.Modifier); + num2++; + span[num2] = GetKeysToPress(keybind.AltKey, keybind.AltModifier); List list2 = (from x in list where x != null select (x)).MinBy((List x) => x.Count); @@ -142,10 +116,8 @@ internal static class Dive foreach (nint item in list2) { _keysToPress.Enqueue((256u, item)); - for (int num2 = 0; num2 < 15; num2++) - { - _keysToPress.Enqueue((0u, 0)); - } + _keysToPress.Enqueue((0u, 0)); + _keysToPress.Enqueue((0u, 0)); } for (int num3 = 0; num3 < 5; num3++) { @@ -159,18 +131,29 @@ internal static class Dive } } - private static List? GetKeysToPress(SeVirtualKey key, KeyModifierFlag modifier) + private static class NativeMethods + { + public const uint WM_KEYUP = 257u; + + public const uint WM_KEYDOWN = 256u; + + [DllImport("user32.dll", CharSet = CharSet.Auto)] + [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] + public static extern nint SendMessage(nint hWnd, uint Msg, nint wParam, nint lParam); + } + + private static List? GetKeysToPress(SeVirtualKey key, ModifierFlag modifier) { List list = new List(); - if ((modifier & KeyModifierFlag.Ctrl) != KeyModifierFlag.None) + if (modifier.HasFlag(ModifierFlag.Ctrl)) { list.Add(17); } - if ((modifier & KeyModifierFlag.Shift) != KeyModifierFlag.None) + if (modifier.HasFlag(ModifierFlag.Shift)) { list.Add(16); } - if ((modifier & KeyModifierFlag.Alt) != KeyModifierFlag.None) + if (modifier.HasFlag(ModifierFlag.Alt)) { list.Add(18); } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Duty.cs b/Questionable/Questionable.Controller.Steps.Interactions/Duty.cs index afa27f0..eea2ce7 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Duty.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Duty.cs @@ -3,9 +3,7 @@ using System.Collections.Generic; using Dalamud.Game.ClientState.Conditions; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.Group; using LLib.Gear; -using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Common; using Questionable.Controller.Steps.Shared; using Questionable.Controller.Utils; @@ -19,7 +17,7 @@ namespace Questionable.Controller.Steps.Interactions; internal static class Duty { - internal sealed class Factory(AutoDutyIpc autoDutyIpc, Configuration configuration) : ITaskFactory + internal sealed class Factory(AutoDutyIpc autoDutyIpc) : ITaskFactory { public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) { @@ -28,94 +26,36 @@ internal static class Duty yield break; } ArgumentNullException.ThrowIfNull(step.DutyOptions, "step.DutyOptions"); + uint contentFinderConditionId; + int dutyMode; if (autoDutyIpc.IsConfiguredToRunContent(step.DutyOptions)) { - AutoDutyIpc.DutyMode dutyMode = GetDutyMode(step.DutyOptions.ContentFinderConditionId, step.DutyOptions.DutyMode); - if (dutyMode == AutoDutyIpc.DutyMode.UnsyncRegular && (step.DutyOptions.DutyMode == EDutyMode.UnsyncParty || (!step.DutyOptions.DutyMode.HasValue && configuration.Duties.DutyModeOverrides.TryGetValue(step.DutyOptions.ContentFinderConditionId, out var value) && value == EDutyMode.UnsyncParty) || (!step.DutyOptions.DutyMode.HasValue && !configuration.Duties.DutyModeOverrides.ContainsKey(step.DutyOptions.ContentFinderConditionId) && configuration.Duties.DefaultDutyMode == EDutyMode.UnsyncParty))) + contentFinderConditionId = step.DutyOptions.ContentFinderConditionId; + ElementId id = quest.Id; + if (id is QuestId) { - yield return new WaitForPartyTask(); - } - yield return new StartAutoDutyTask(step.DutyOptions.ContentFinderConditionId, dutyMode); - yield return new WaitAutoDutyTask(step.DutyOptions.ContentFinderConditionId); - if (!QuestWorkUtils.HasCompletionFlags(step.CompletionQuestVariablesFlags)) - { - yield return new WaitAtEnd.WaitNextStepOrSequence(); + ushort value = id.Value; + if (value >= 357 && value <= 360) + { + dutyMode = 2; + goto IL_00b2; + } } + dutyMode = 1; + goto IL_00b2; } - else if (!step.DutyOptions.LowPriority) + if (!step.DutyOptions.LowPriority) { yield return new OpenDutyFinderTask(step.DutyOptions.ContentFinderConditionId); } - } - - private AutoDutyIpc.DutyMode GetDutyMode(uint cfcId, EDutyMode? stepDutyMode) - { - if (stepDutyMode.HasValue) + yield break; + IL_00b2: + yield return new StartAutoDutyTask(contentFinderConditionId, (AutoDutyIpc.DutyMode)dutyMode); + yield return new WaitAutoDutyTask(step.DutyOptions.ContentFinderConditionId); + if (!QuestWorkUtils.HasCompletionFlags(step.CompletionQuestVariablesFlags)) { - return ConvertToAutoDutyMode(stepDutyMode.Value); + yield return new WaitAtEnd.WaitNextStepOrSequence(); } - if (configuration.Duties.DutyModeOverrides.TryGetValue(cfcId, out var value)) - { - return ConvertToAutoDutyMode(value); - } - return ConvertToAutoDutyMode(configuration.Duties.DefaultDutyMode); - } - - private static AutoDutyIpc.DutyMode ConvertToAutoDutyMode(EDutyMode mode) - { - return mode switch - { - EDutyMode.Support => AutoDutyIpc.DutyMode.Support, - EDutyMode.UnsyncSolo => AutoDutyIpc.DutyMode.UnsyncRegular, - EDutyMode.UnsyncParty => AutoDutyIpc.DutyMode.UnsyncRegular, - _ => AutoDutyIpc.DutyMode.Support, - }; - } - } - - internal sealed record WaitForPartyTask : ITask - { - public override string ToString() - { - return "WaitForParty"; - } - } - - internal sealed class WaitForPartyExecutor(IChatGui chatGui, ILogger logger) : TaskExecutor() - { - private DateTime _lastWarningTime = DateTime.MinValue; - - protected override bool Start() - { - logger.LogInformation("Waiting for party members before starting duty..."); - return true; - } - - public unsafe override ETaskResult Update() - { - GroupManager* ptr = GroupManager.Instance(); - if (ptr == null) - { - return ETaskResult.StillRunning; - } - byte memberCount = ptr->MainGroup.MemberCount; - bool isAlliance = ptr->MainGroup.IsAlliance; - if (memberCount > 1 || isAlliance) - { - logger.LogInformation("Party detected with {MemberCount} members, proceeding with duty", memberCount); - return ETaskResult.TaskComplete; - } - if (DateTime.Now - _lastWarningTime > TimeSpan.FromSeconds(10L)) - { - chatGui.Print("[Questionable] Waiting for party members before starting duty (Unsync Party mode)...", "Questionable", 576); - _lastWarningTime = DateTime.Now; - } - return ETaskResult.StillRunning; - } - - public override bool ShouldInterruptOnDamage() - { - return false; } } @@ -135,28 +75,25 @@ internal static class Duty { throw new TaskException("Failed to get territory ID for content finder condition"); } - if (base.Task.DutyMode != AutoDutyIpc.DutyMode.UnsyncRegular) + InventoryManager* intPtr = InventoryManager.Instance(); + if (intPtr == null) { - InventoryManager* intPtr = InventoryManager.Instance(); - if (intPtr == null) + throw new TaskException("Inventory unavailable"); + } + InventoryContainer* inventoryContainer = intPtr->GetInventoryContainer(InventoryType.EquippedItems); + if (inventoryContainer == null) + { + throw new TaskException("Equipped items unavailable"); + } + short num = gearStatsCalculator.CalculateAverageItemLevel(inventoryContainer); + if (contentFinderConditionData.RequiredItemLevel > num) + { + string text = $"Could not use AutoDuty to queue for {contentFinderConditionData.Name}, required item level: {contentFinderConditionData.RequiredItemLevel}, current item level: {num}."; + if (!sendNotificationExecutor.Start(new SendNotification.Task(EInteractionType.Duty, text))) { - throw new TaskException("Inventory unavailable"); - } - InventoryContainer* inventoryContainer = intPtr->GetInventoryContainer(InventoryType.EquippedItems); - if (inventoryContainer == null) - { - throw new TaskException("Equipped items unavailable"); - } - short num = gearStatsCalculator.CalculateAverageItemLevel(inventoryContainer); - if (contentFinderConditionData.RequiredItemLevel > num) - { - string text = $"Could not use AutoDuty to queue for {contentFinderConditionData.Name}, required item level: {contentFinderConditionData.RequiredItemLevel}, current item level: {num}."; - if (!sendNotificationExecutor.Start(new SendNotification.Task(EInteractionType.Duty, text))) - { - chatGui.PrintError(text, "Questionable", 576); - } - return false; + chatGui.PrintError(text, "Questionable", 576); } + return false; } autoDutyIpc.StartInstance(base.Task.ContentFinderConditionId, base.Task.DutyMode); return true; @@ -255,124 +192,4 @@ internal static class Duty return false; } } - - internal sealed record StartLevelingModeTask(int RequiredLevel, string? QuestName) : ITask - { - public override string ToString() - { - return $"StartLevelingMode(target: Lv{RequiredLevel} for '{QuestName}')"; - } - } - - internal sealed class StartLevelingModeExecutor(AutoDutyIpc autoDutyIpc, ICondition condition, ILogger logger) : TaskExecutor(), IStoppableTaskExecutor, ITaskExecutor - { - private DateTime _startTime; - - protected override bool Start() - { - logger.LogInformation("Starting AutoDuty Leveling mode to reach level {RequiredLevel} for quest '{QuestName}'", base.Task.RequiredLevel, base.Task.QuestName); - if (condition[ConditionFlag.BoundByDuty] || condition[ConditionFlag.InDutyQueue]) - { - logger.LogInformation("Already in duty or queue, skipping start"); - return true; - } - if (!autoDutyIpc.IsStopped()) - { - logger.LogInformation("AutoDuty is already running, waiting for it"); - _startTime = DateTime.Now; - return true; - } - autoDutyIpc.StartLevelingMode(); - _startTime = DateTime.Now; - return true; - } - - public override ETaskResult Update() - { - bool flag = condition[ConditionFlag.BoundByDuty]; - bool flag2 = condition[ConditionFlag.InDutyQueue]; - if (flag || flag2) - { - logger.LogInformation("AutoDuty started successfully (inDuty={InDuty}, inQueue={InQueue})", flag, flag2); - return ETaskResult.TaskComplete; - } - if (!autoDutyIpc.IsStopped()) - { - return ETaskResult.StillRunning; - } - if (DateTime.Now - _startTime < TimeSpan.FromSeconds(10L)) - { - return ETaskResult.StillRunning; - } - logger.LogError("AutoDuty failed to start leveling mode after 10 seconds"); - return ETaskResult.TaskComplete; - } - - public void StopNow() - { - autoDutyIpc.Stop(); - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } - - internal sealed record WaitLevelingModeTask(int RequiredLevel) : ITask - { - public override string ToString() - { - return $"WaitLevelingMode(until Lv{RequiredLevel})"; - } - } - - internal sealed class WaitLevelingModeExecutor(AutoDutyIpc autoDutyIpc, IObjectTable objectTable, ICondition condition, IChatGui chatGui, ILogger logger) : TaskExecutor(), IStoppableTaskExecutor, ITaskExecutor - { - private bool _wasInDuty; - - private DateTime _lastStatusMessage = DateTime.MinValue; - - protected override bool Start() - { - _wasInDuty = false; - return true; - } - - public override ETaskResult Update() - { - bool flag = condition[ConditionFlag.BoundByDuty]; - bool flag2 = condition[ConditionFlag.InDutyQueue]; - if (flag && !_wasInDuty) - { - logger.LogInformation("Entered duty for leveling"); - _wasInDuty = true; - } - byte b = objectTable.LocalPlayer?.Level ?? 0; - if (b >= base.Task.RequiredLevel) - { - logger.LogInformation("Reached required level {RequiredLevel} (current: {CurrentLevel})", base.Task.RequiredLevel, b); - chatGui.Print($"Reached level {b}, can now continue MSQ.", "Questionable", 576); - autoDutyIpc.DisableLevelingMode(); - return ETaskResult.TaskComplete; - } - if (autoDutyIpc.IsStopped() && !flag && !flag2 && _wasInDuty && DateTime.Now - _lastStatusMessage > TimeSpan.FromSeconds(30L)) - { - int num = base.Task.RequiredLevel - b; - logger.LogInformation("Waiting for leveling mode to continue (current: {CurrentLevel}, need: {RequiredLevel}, {LevelsNeeded} more levels needed)", b, base.Task.RequiredLevel, num); - _lastStatusMessage = DateTime.Now; - } - return ETaskResult.StillRunning; - } - - public void StopNow() - { - autoDutyIpc.Stop(); - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs b/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs index fb1603a..e724d07 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs @@ -161,6 +161,7 @@ internal static class EquipItem { return new List(); } + Span span; switch (item.Value.EquipSlotCategory.RowId) { case 1u: @@ -175,10 +176,12 @@ internal static class EquipItem case 10u: case 11u: { - int num = 1; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = (ushort)(item.Value.EquipSlotCategory.RowId - 1); + int index = 1; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + span = CollectionsMarshal.AsSpan(list4); + int num = 0; + span[num] = (ushort)(item.Value.EquipSlotCategory.RowId - 1); return list4; } case 12u: @@ -186,17 +189,21 @@ internal static class EquipItem int num = 2; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - span[0] = 11; - span[1] = 12; + span = CollectionsMarshal.AsSpan(list3); + int index = 0; + span[index] = 11; + index++; + span[index] = 12; return list3; } case 13u: { - int num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = 0; + int index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span = CollectionsMarshal.AsSpan(list2); + int num = 0; + span[num] = 0; return list2; } case 17u: @@ -204,7 +211,9 @@ internal static class EquipItem int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = 13; + span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = 13; return list; } default: diff --git a/Questionable/Questionable.Controller.Steps.Interactions/EquipRecommended.cs b/Questionable/Questionable.Controller.Steps.Interactions/EquipRecommended.cs index e1bd631..a403649 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/EquipRecommended.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/EquipRecommended.cs @@ -1,6 +1,5 @@ using System; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.UI.Misc; @@ -44,7 +43,7 @@ internal static class EquipRecommended } } - internal sealed class DoEquipRecommended(IObjectTable objectTable, IChatGui chatGui, ICondition condition) : TaskExecutor() + internal sealed class DoEquipRecommended(IClientState clientState, IChatGui chatGui, ICondition condition) : TaskExecutor() { private bool _checkedOrTriggeredEquipmentUpdate; @@ -56,11 +55,7 @@ internal static class EquipRecommended { return false; } - if (!(objectTable[0] is ICharacter character)) - { - return false; - } - RecommendEquipModule.Instance()->SetupForClassJob((byte)character.ClassJob.RowId); + RecommendEquipModule.Instance()->SetupForClassJob((byte)clientState.LocalPlayer.ClassJob.RowId); return true; } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/FateAction.cs b/Questionable/Questionable.Controller.Steps.Interactions/FateAction.cs deleted file mode 100644 index dcae0c7..0000000 --- a/Questionable/Questionable.Controller.Steps.Interactions/FateAction.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Game.ClientState.Objects.Types; -using Microsoft.Extensions.Logging; -using Questionable.Controller.Steps.Common; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Controller.Steps.Interactions; - -internal static class FateAction -{ - internal sealed class Factory : ITaskFactory - { - public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) - { - if (step.InteractionType != EInteractionType.FateAction) - { - return Array.Empty(); - } - if (step.FateActionTargets.Count == 0) - { - throw new InvalidOperationException("FateAction step requires FateActionTargets"); - } - return new global::_003C_003Ez__ReadOnlyArray(new ITask[2] - { - new Mount.UnmountTask(), - new UseOnTargets(step.FateActionTargets) - }); - } - } - - internal sealed record UseOnTargets(IList Targets) : ITask - { - public bool ShouldRedoOnInterrupt() - { - return true; - } - - public override string ToString() - { - return $"FateAction({Targets.Count} targets)"; - } - } - - internal sealed class UseOnTargetsExecutor(GameFunctions gameFunctions, ILogger logger) : TaskExecutor() - { - private DateTime _nextActionAt = DateTime.MinValue; - - protected override bool Start() - { - logger.LogInformation("Starting FateAction: {Count} targets [{Targets}]", base.Task.Targets.Count, string.Join(", ", base.Task.Targets.Select((FateActionTarget t) => $"{t.DataId}→{t.Action}"))); - return true; - } - - public override ETaskResult Update() - { - if (DateTime.Now < _nextActionAt) - { - return ETaskResult.StillRunning; - } - foreach (FateActionTarget target in base.Task.Targets) - { - 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)); - return ETaskResult.StillRunning; - } - } - _nextActionAt = DateTime.Now.AddSeconds(0.25); - return ETaskResult.StillRunning; - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } -} diff --git a/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs b/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs deleted file mode 100644 index 8075e71..0000000 --- a/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs +++ /dev/null @@ -1,182 +0,0 @@ -using System; -using System.Collections.Generic; -using Dalamud.Game.ClientState.Objects.Types; -using Microsoft.Extensions.Logging; -using Questionable.Functions; -using Questionable.Model.Questing; - -namespace Questionable.Controller.Steps.Interactions; - -internal static class FateFarming -{ - internal sealed record WaitForFateTargets(IReadOnlyList Targets) : ITask - { - public override string ToString() - { - return $"WaitForFateTargets({Targets.Count} targets)"; - } - } - - internal sealed class WaitForFateTargetsExecutor(GameFunctions gameFunctions, ILogger logger) : TaskExecutor() - { - private DateTime _nextPollAt = DateTime.MinValue; - - private bool _loggedWaitingForFate; - - protected override bool Start() - { - logger.LogInformation("Waiting for FATE targets to appear ({Count} targets)", base.Task.Targets.Count); - _loggedWaitingForFate = false; - return true; - } - - public override ETaskResult Update() - { - if (DateTime.Now < _nextPollAt) - { - return ETaskResult.StillRunning; - } - ushort currentFateId = gameFunctions.GetCurrentFateId(); - if (currentFateId == 0) - { - if (!_loggedWaitingForFate) - { - logger.LogInformation("No active FATE yet, waiting for FATE to start before checking targets"); - _loggedWaitingForFate = true; - } - _nextPollAt = DateTime.Now.AddSeconds(1.0); - return ETaskResult.StillRunning; - } - _loggedWaitingForFate = false; - foreach (FateActionTarget target in base.Task.Targets) - { - IGameObject gameObject = gameFunctions.FindObjectByDataId(target.DataId, null, warnIfMissing: false); - if (gameObject != null && gameObject.IsTargetable) - { - logger.LogInformation("FATE {FateId} active and target {DataId} is targetable", currentFateId, target.DataId); - return ETaskResult.TaskComplete; - } - } - _nextPollAt = DateTime.Now.AddSeconds(1.0); - return ETaskResult.StillRunning; - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } - - internal sealed record SyncFateLevel : ITask - { - public override string ToString() - { - return "SyncFateLevel"; - } - } - - internal sealed class SyncFateLevelExecutor(GameFunctions gameFunctions, ILogger logger) : TaskExecutor() - { - protected override bool Start() - { - logger.LogInformation("Syncing to FATE level"); - return true; - } - - public override ETaskResult Update() - { - ushort currentFateId = gameFunctions.GetCurrentFateId(); - if (currentFateId == 0) - { - logger.LogDebug("No active FATE to sync to, skipping"); - return ETaskResult.TaskComplete; - } - gameFunctions.SyncToFate(currentFateId); - return ETaskResult.TaskComplete; - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } - - internal sealed record FateActionLoop(IReadOnlyList Targets, EStatus? RequiredStatusId = null) : ITask - { - public bool ShouldRedoOnInterrupt() - { - return true; - } - - public override string ToString() - { - return $"FateActionLoop({Targets.Count} targets)"; - } - } - - internal sealed class FateActionLoopExecutor(GameFunctions gameFunctions, ILogger logger) : TaskExecutor() - { - private DateTime _nextActionAt = DateTime.MinValue; - - private ushort _trackedFateId; - - private bool _fateWasActive; - - protected override bool Start() - { - _trackedFateId = gameFunctions.GetCurrentFateId(); - logger.LogInformation("Starting FATE action loop with {Count} targets, tracking FATE {FateId}", base.Task.Targets.Count, _trackedFateId); - return true; - } - - public override ETaskResult Update() - { - if (DateTime.Now < _nextActionAt) - { - return ETaskResult.StillRunning; - } - if (base.Task.RequiredStatusId.HasValue && !gameFunctions.HasStatus(base.Task.RequiredStatusId.Value)) - { - 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(); - if (_trackedFateId != 0) - { - logger.LogInformation("Now tracking FATE {FateId}", _trackedFateId); - } - } - if (_trackedFateId != 0 && !gameFunctions.IsFateStillActive(_trackedFateId)) - { - logger.LogInformation("FATE {FateId} is no longer running, cycle complete", _trackedFateId); - return ETaskResult.TaskComplete; - } - foreach (FateActionTarget target in base.Task.Targets) - { - IGameObject gameObject = gameFunctions.FindObjectByDataId(target.DataId, null, warnIfMissing: false); - if (gameObject != null && gameObject.IsTargetable) - { - bool flag2 = gameFunctions.UseAction(gameObject, target.Action); - _nextActionAt = (flag2 ? DateTime.Now.AddSeconds(2.5) : DateTime.Now.AddSeconds(0.5)); - return ETaskResult.StillRunning; - } - } - _nextActionAt = DateTime.Now.AddSeconds(0.25); - return ETaskResult.StillRunning; - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } -} diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Interact.cs b/Questionable/Questionable.Controller.Steps.Interactions/Interact.cs index 88708e8..40fa3db 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Interact.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Interact.cs @@ -11,6 +11,7 @@ using FFXIVClientStructs.FFXIV.Client.Game.UI; using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Shared; using Questionable.Controller.Utils; +using Questionable.External; using Questionable.Functions; using Questionable.Model; using Questionable.Model.Questing; @@ -19,7 +20,7 @@ namespace Questionable.Controller.Steps.Interactions; internal static class Interact { - internal sealed class Factory(Configuration configuration) : ITaskFactory + internal sealed class Factory(AutomatonIpc automatonIpc, Configuration configuration) : ITaskFactory { public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) { @@ -40,7 +41,7 @@ internal static class Interact } else if (step.InteractionType == EInteractionType.Snipe) { - if (!configuration.General.AutoSnipe) + if (!automatonIpc.IsAutoSnipeEnabled) { yield break; } @@ -64,7 +65,7 @@ internal static class Interact uint value = step.DataId.Value; EInteractionType interactionType2 = step.InteractionType; int skipMarkerCheck; - if (!step.IgnoreQuestMarker && !step.TargetTerritoryId.HasValue && !(quest.Id is SatisfactionSupplyNpcId)) + if (!step.TargetTerritoryId.HasValue && !(quest.Id is SatisfactionSupplyNpcId)) { SkipConditions skipConditions = step.SkipConditions; if (skipConditions != null) @@ -72,22 +73,21 @@ internal static class Interact SkipStepConditions stepIf = skipConditions.StepIf; if (stepIf != null && stepIf.Never) { - goto IL_025f; + goto IL_0247; } } if (step.InteractionType != EInteractionType.PurchaseItem) { skipMarkerCheck = ((step.DataId == 1052475) ? 1 : 0); - goto IL_0260; + goto IL_0248; } } - goto IL_025f; - IL_0260: - yield return new Task(value, quest, interactionType2, (byte)skipMarkerCheck != 0, step.PickUpItemId ?? step.GCPurchase?.ItemId, step.TaxiStandId, step.SkipConditions?.StepIf, step.CompletionQuestVariablesFlags); - yield break; - IL_025f: + goto IL_0247; + IL_0247: skipMarkerCheck = 1; - goto IL_0260; + goto IL_0248; + IL_0248: + yield return new Task(value, quest, interactionType2, (byte)skipMarkerCheck != 0, step.PickUpItemId, step.TaxiStandId, step.SkipConditions?.StepIf, step.CompletionQuestVariablesFlags); } } @@ -107,13 +107,11 @@ internal static class Interact public SkipStepConditions? SkipConditions { get; init; } - public EStatus? CompletionStatusId { get; init; } - public List CompletionQuestVariablesFlags { get; } public bool HasCompletionQuestVariablesFlags { get; } - public Task(uint DataId, Quest? Quest, EInteractionType InteractionType, bool SkipMarkerCheck = false, uint? PickUpItemId = null, byte? TaxiStandId = null, SkipStepConditions? SkipConditions = null, List? CompletionQuestVariablesFlags = null, EStatus? CompletionStatusId = null) + public Task(uint DataId, Quest? Quest, EInteractionType InteractionType, bool SkipMarkerCheck = false, uint? PickUpItemId = null, byte? TaxiStandId = null, SkipStepConditions? SkipConditions = null, List? CompletionQuestVariablesFlags = null) { this.DataId = DataId; this.Quest = Quest; @@ -122,7 +120,6 @@ internal static class Interact this.PickUpItemId = PickUpItemId; this.TaxiStandId = TaxiStandId; this.SkipConditions = SkipConditions; - this.CompletionStatusId = CompletionStatusId; this.CompletionQuestVariablesFlags = CompletionQuestVariablesFlags ?? new List(); HasCompletionQuestVariablesFlags = Quest != null && CompletionQuestVariablesFlags != null && QuestWorkUtils.HasCompletionFlags(CompletionQuestVariablesFlags); base._002Ector(); @@ -139,7 +136,7 @@ internal static class Interact } [CompilerGenerated] - public void Deconstruct(out uint DataId, out Quest? Quest, out EInteractionType InteractionType, out bool SkipMarkerCheck, out uint? PickUpItemId, out byte? TaxiStandId, out SkipStepConditions? SkipConditions, out List? CompletionQuestVariablesFlags, out EStatus? CompletionStatusId) + public void Deconstruct(out uint DataId, out Quest? Quest, out EInteractionType InteractionType, out bool SkipMarkerCheck, out uint? PickUpItemId, out byte? TaxiStandId, out SkipStepConditions? SkipConditions, out List? CompletionQuestVariablesFlags) { DataId = this.DataId; Quest = this.Quest; @@ -149,7 +146,6 @@ internal static class Interact TaxiStandId = this.TaxiStandId; SkipConditions = this.SkipConditions; CompletionQuestVariablesFlags = this.CompletionQuestVariablesFlags; - CompletionStatusId = this.CompletionStatusId; } } @@ -177,10 +173,6 @@ internal static class Interact protected override bool Start() { InteractionType = base.Task.InteractionType; - _interactionState = EInteractionState.None; - _needsUnmount = false; - delayedFinalCheck = false; - _continueAt = DateTime.MinValue; IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.DataId); if (gameObject == null) { @@ -228,20 +220,11 @@ internal static class Interact } _needsUnmount = false; } - EStatus? completionStatusId = base.Task.CompletionStatusId; - if (completionStatusId.HasValue) - { - EStatus valueOrDefault = completionStatusId.GetValueOrDefault(); - if (gameFunctions.HasStatus(valueOrDefault)) - { - return ETaskResult.TaskComplete; - } - } uint? pickUpItemId = base.Task.PickUpItemId; if (pickUpItemId.HasValue) { - uint valueOrDefault2 = pickUpItemId.GetValueOrDefault(); - if (InventoryManager.Instance()->GetInventoryItemCount(valueOrDefault2, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0) + uint valueOrDefault = pickUpItemId.GetValueOrDefault(); + if (InventoryManager.Instance()->GetInventoryItemCount(valueOrDefault, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0) { return ETaskResult.TaskComplete; } @@ -251,8 +234,8 @@ internal static class Interact byte? taxiStandId = base.Task.TaxiStandId; if (taxiStandId.HasValue) { - byte valueOrDefault3 = taxiStandId.GetValueOrDefault(); - if (UIState.Instance()->IsChocoboTaxiStandUnlocked((uint)(valueOrDefault3 + 1179648))) + byte valueOrDefault2 = taxiStandId.GetValueOrDefault(); + if (UIState.Instance()->IsChocoboTaxiStandUnlocked((uint)(valueOrDefault2 + 1179648))) { return ETaskResult.TaskComplete; } @@ -276,7 +259,6 @@ internal static class Interact { if (base.ProgressContext.WasInterrupted()) { - logger.LogDebug("Interaction with {DataId} was interrupted", base.Task.DataId); return ETaskResult.StillRunning; } if (base.ProgressContext.WasSuccessful() || _interactionState == EInteractionState.InteractionConfirmed) diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs b/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs index 13e2974..cced3bf 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Numerics; using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; using Microsoft.Extensions.Logging; @@ -48,17 +47,12 @@ internal static class Jump } } - internal abstract class JumpBase(MovementController movementController, IObjectTable objectTable, IFramework framework) : TaskExecutor() where T : class, IJumpTask + internal abstract class JumpBase(MovementController movementController, IClientState clientState, IFramework framework) : TaskExecutor() where T : class, IJumpTask { protected unsafe override bool Start() { - IGameObject gameObject = _003CobjectTable_003EP[0]; - if (gameObject == null) - { - return false; - } float num = base.Task.JumpDestination.CalculateStopDistance(); - if ((gameObject.Position - base.Task.JumpDestination.Position).Length() <= num) + if ((_003CclientState_003EP.LocalPlayer.Position - base.Task.JumpDestination.Position).Length() <= num) { return false; } @@ -67,7 +61,9 @@ internal static class Jump int num2 = 1; List list = new List(num2); CollectionsMarshal.SetCount(list, num2); - CollectionsMarshal.AsSpan(list)[0] = base.Task.JumpDestination.Position; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = base.Task.JumpDestination.Position; movementController.NavigateTo(EMovementType.Quest, dataId, list, fly: false, sprint: false, base.Task.JumpDestination.StopDistance ?? num); _003Cframework_003EP.RunOnTick(delegate { @@ -98,8 +94,8 @@ internal static class Jump internal sealed class DoSingleJump : JumpBase { - public DoSingleJump(MovementController movementController, IObjectTable objectTable, IFramework framework) - : base(movementController, objectTable, framework) + public DoSingleJump(MovementController movementController, IClientState clientState, IFramework framework) + : base(movementController, clientState, framework) { } } @@ -114,19 +110,19 @@ internal static class Jump internal sealed class DoRepeatedJumps : JumpBase { - private readonly IObjectTable _objectTable; + private readonly IClientState _clientState; private DateTime _continueAt; private int _attempts; - public DoRepeatedJumps(MovementController movementController, IObjectTable objectTable, IFramework framework, ICondition condition, ILogger logger) + public DoRepeatedJumps(MovementController movementController, IClientState clientState, IFramework framework, ICondition condition, ILogger logger) { _003Ccondition_003EP = condition; _003Clogger_003EP = logger; - _objectTable = objectTable; + _clientState = clientState; _continueAt = DateTime.MinValue; - base._002Ector(movementController, objectTable, framework); + base._002Ector(movementController, clientState, framework); } protected override bool Start() @@ -141,17 +137,12 @@ internal static class Jump { return ETaskResult.StillRunning; } - IGameObject gameObject = _objectTable[0]; - if (gameObject == null) - { - return ETaskResult.TaskComplete; - } float num = base.Task.JumpDestination.CalculateStopDistance(); - if ((gameObject.Position - base.Task.JumpDestination.Position).Length() <= num || gameObject.Position.Y >= base.Task.JumpDestination.Position.Y - 0.5f) + if ((_clientState.LocalPlayer.Position - base.Task.JumpDestination.Position).Length() <= num || _clientState.LocalPlayer.Position.Y >= base.Task.JumpDestination.Position.Y - 0.5f) { return ETaskResult.TaskComplete; } - _003Clogger_003EP.LogTrace("Y-Heights for jumps: player={A}, target={B}", gameObject.Position.Y, base.Task.JumpDestination.Position.Y - 0.5f); + _003Clogger_003EP.LogTrace("Y-Heights for jumps: player={A}, target={B}", _clientState.LocalPlayer.Position.Y, base.Task.JumpDestination.Position.Y - 0.5f); if (ActionManager.Instance()->UseAction(ActionType.GeneralAction, 2u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null)) { _attempts++; diff --git a/Questionable/Questionable.Controller.Steps.Interactions/SinglePlayerDuty.cs b/Questionable/Questionable.Controller.Steps.Interactions/SinglePlayerDuty.cs index 5fa1820..ceec543 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/SinglePlayerDuty.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/SinglePlayerDuty.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Numerics; using Dalamud.Game.ClientState.Conditions; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; @@ -28,7 +29,7 @@ internal static class SinglePlayerDuty public const ushort Naadam = 688; } - internal sealed class Factory(BossModIpc bossModIpc, TerritoryData territoryData, ICondition condition, IClientState clientState, IObjectTable objectTable) : ITaskFactory + internal sealed class Factory(BossModIpc bossModIpc, TerritoryData territoryData, ICondition condition, IClientState clientState) : ITaskFactory { public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) { @@ -69,7 +70,7 @@ internal static class SinglePlayerDuty { return true; } - Vector3 vector = objectTable[0]?.Position ?? default(Vector3); + Vector3 vector = clientState.LocalPlayer?.Position ?? default(Vector3); return (new Vector3(352.01f, -1.45f, 288.59f) - vector).Length() < 10f; }, "Wait(moving to Ovoo)"); yield return new Mount.UnmountTask(); diff --git a/Questionable/Questionable.Controller.Steps.Movement/LandExecutor.cs b/Questionable/Questionable.Controller.Steps.Movement/LandExecutor.cs index 090f096..348c077 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/LandExecutor.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/LandExecutor.cs @@ -7,7 +7,7 @@ using Microsoft.Extensions.Logging; namespace Questionable.Controller.Steps.Movement; -internal sealed class LandExecutor(IObjectTable objectTable, ICondition condition, ILogger logger) : TaskExecutor() +internal sealed class LandExecutor(IClientState clientState, ICondition condition, ILogger logger) : TaskExecutor() { private bool _landing; @@ -45,7 +45,7 @@ internal sealed class LandExecutor(IObjectTable objectTable, ICondition conditio private unsafe bool AttemptLanding() { - Character* ptr = (Character*)(objectTable[0]?.Address ?? 0); + Character* ptr = (Character*)(clientState.LocalPlayer?.Address ?? 0); if (ptr != null && ActionManager.Instance()->GetActionStatus(ActionType.GeneralAction, 23u, 3758096384uL, checkRecastActive: true, checkCastingActive: true, null) == 0) { logger.LogInformation("Attempting to land"); diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs index bbc96a0..1488b04 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Numerics; using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Plugin.Services; using LLib; @@ -29,8 +28,6 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - private readonly ICondition _condition; private readonly Questionable.Controller.Steps.Common.Mount.MountEvaluator _mountEvaluator; @@ -49,13 +46,12 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE private (Questionable.Controller.Steps.Common.Mount.MountExecutor Executor, Questionable.Controller.Steps.Common.Mount.MountTask Task)? _mountDuringMovement; - public MoveExecutor(MovementController movementController, GameFunctions gameFunctions, ILogger logger, IClientState clientState, IObjectTable objectTable, ICondition condition, IDataManager dataManager, Questionable.Controller.Steps.Common.Mount.MountEvaluator mountEvaluator, IServiceProvider serviceProvider) + public MoveExecutor(MovementController movementController, GameFunctions gameFunctions, ILogger logger, IClientState clientState, ICondition condition, IDataManager dataManager, Questionable.Controller.Steps.Common.Mount.MountEvaluator mountEvaluator, IServiceProvider serviceProvider) { _movementController = movementController; _gameFunctions = gameFunctions; _logger = logger; _clientState = clientState; - _objectTable = objectTable; _condition = condition; _serviceProvider = serviceProvider; _mountEvaluator = mountEvaluator; @@ -87,7 +83,9 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = _destination; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = _destination; movementController.NavigateTo(EMovementType.Quest, dataId, list, base.Task.Fly, base.Task.Sprint ?? (!_mountDuringMovement.HasValue), base.Task.StopDistance, base.Task.IgnoreDistanceToObject ? new float?(float.MaxValue) : ((float?)null), base.Task.Land); }; } @@ -97,7 +95,7 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE _canRestart = base.Task.RestartNavigation; _destination = base.Task.Destination; float num = base.Task.StopDistance ?? 3f; - Vector3? vector = _objectTable[0]?.Position; + Vector3? vector = _clientState.LocalPlayer?.Position; float num2 = ((!vector.HasValue) ? float.MaxValue : Vector3.Distance(vector.Value, _destination)); if (num2 > num) { @@ -172,8 +170,7 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE { return ETaskResult.StillRunning; } - IGameObject gameObject = _objectTable[0]; - if (_canRestart && gameObject != null && Vector3.Distance(gameObject.Position, _destination) > (base.Task.StopDistance ?? 3f) + 5f) + if (_canRestart && Vector3.Distance(_clientState.LocalPlayer.Position, _destination) > (base.Task.StopDistance ?? 3f) + 5f) { _canRestart = false; if (_clientState.TerritoryType == base.Task.TerritoryId) diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs index b7919fc..a87e3f9 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Numerics; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Common; @@ -14,14 +13,10 @@ namespace Questionable.Controller.Steps.Movement; internal static class MoveTo { - internal sealed class Factory(IClientState clientState, IObjectTable objectTable, AetheryteData aetheryteData, TerritoryData territoryData, ILogger logger) : ITaskFactory + internal sealed class Factory(IClientState clientState, AetheryteData aetheryteData, TerritoryData territoryData, ILogger logger) : ITaskFactory { public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) { - if (step.DataIds.Count > 0) - { - return Array.Empty(); - } if (step.Position.HasValue) { return CreateMoveTasks(step, step.Position.Value); @@ -30,10 +25,6 @@ internal static class MoveTo { return new global::_003C_003Ez__ReadOnlySingleElementList(new WaitForNearDataId(step.DataId.Value, step.StopDistance.Value)); } - if (step != null && step.DataId.HasValue && !step.Position.HasValue) - { - return CreateMoveToObjectTasks(step); - } EAetheryteLocation valueOrDefault = default(EAetheryteLocation); bool flag; if (step != null) @@ -46,13 +37,13 @@ internal static class MoveTo { valueOrDefault = aetheryte.GetValueOrDefault(); flag = true; - goto IL_00e2; + goto IL_00a3; } } } flag = false; - goto IL_00e2; - IL_00e2: + goto IL_00a3; + IL_00a3: if (flag) { return CreateMoveTasks(step, aetheryteData.Locations[valueOrDefault]); @@ -69,20 +60,9 @@ 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]; - if (step.InteractionType == EInteractionType.Jump && step.JumpDestination != null && gameObject != null && (gameObject.Position - step.JumpDestination.Position).Length() <= (step.JumpDestination.StopDistance ?? 1f)) + if (step.InteractionType == EInteractionType.Jump && step.JumpDestination != null && (clientState.LocalPlayer.Position - step.JumpDestination.Position).Length() <= (step.JumpDestination.StopDistance ?? 1f)) { logger.LogInformation("We're at the jump destination, skipping movement"); yield break; diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs deleted file mode 100644 index 9424935..0000000 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Questionable.Model.Questing; - -namespace Questionable.Controller.Steps.Movement; - -internal sealed record MoveToObject(QuestStep Step) : ITask -{ - public bool ShouldRedoOnInterrupt() - { - return true; - } - - public override string ToString() - { - return $"MoveToObject({Step.DataId})"; - } -} diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs deleted file mode 100644 index 54b6e09..0000000 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Functions; -using Questionable.Model; - -namespace Questionable.Controller.Steps.Movement; - -internal sealed class MoveToObjectExecutor(MovementController movementController, GameFunctions gameFunctions, IClientState clientState, IObjectTable objectTable, ILogger logger) : TaskExecutor() -{ - private DateTime _startedLookingAt = DateTime.MaxValue; - - private Vector3 _destination; - - private bool _moving; - - protected override bool Start() - { - if (!base.Task.Step.DataId.HasValue) - { - logger.LogWarning("MoveToObject task has no DataId"); - return false; - } - if (clientState.TerritoryType != base.Task.Step.TerritoryId) - { - logger.LogInformation("Not in correct territory yet, waiting"); - return true; - } - _startedLookingAt = DateTime.Now; - return TryStartMovement(); - } - - private IGameObject? FindDistantObjectByDataId(uint dataId) - { - IGameObject gameObject = objectTable[0]; - if (gameObject == null) - { - return null; - } - float num = base.Task.Step.CalculateActualStopDistance(); - IGameObject result = null; - float num2 = float.MaxValue; - foreach (IGameObject item in objectTable) - { - ObjectKind objectKind = item.ObjectKind; - bool flag = ((objectKind == ObjectKind.Player || objectKind - 8 <= ObjectKind.BattleNpc || objectKind == ObjectKind.Housing) ? true : false); - if (!flag && item.BaseId == dataId) - { - float num3 = Vector3.Distance(gameObject.Position, item.Position); - if (!(num3 <= num) && num3 < num2) - { - result = item; - num2 = num3; - } - } - } - return result; - } - - private bool TryStartMovement() - { - IGameObject gameObject = FindDistantObjectByDataId(base.Task.Step.DataId.Value); - if (gameObject == null) - { - gameObject = gameFunctions.FindObjectByDataId(base.Task.Step.DataId.Value, null, warnIfMissing: false); - if (gameObject == null) - { - logger.LogInformation("Object {DataId} not found yet, waiting", base.Task.Step.DataId); - return true; - } - IGameObject gameObject2 = objectTable[0]; - float num = base.Task.Step.CalculateActualStopDistance(); - if (gameObject2 != null && Vector3.Distance(gameObject2.Position, gameObject.Position) <= num) - { - logger.LogInformation("Only nearby objects with DataId {DataId} remain, skipping", base.Task.Step.DataId); - return true; - } - } - _destination = gameObject.Position; - logger.LogInformation("Moving to object {DataId} at {Position}", base.Task.Step.DataId, _destination); - movementController.NavigateTo(EMovementType.Quest, base.Task.Step.DataId, _destination, fly: false, base.Task.Step.Sprint ?? true, base.Task.Step.CalculateActualStopDistance()); - _moving = true; - return true; - } - - public override ETaskResult Update() - { - if (clientState.TerritoryType != base.Task.Step.TerritoryId) - { - return ETaskResult.StillRunning; - } - if (!_moving) - { - if (_startedLookingAt != DateTime.MaxValue && DateTime.Now > _startedLookingAt.AddSeconds(3.0)) - { - logger.LogInformation("Object {DataId} not found after timeout, skipping step", base.Task.Step.DataId); - return ETaskResult.TaskComplete; - } - if (!TryStartMovement()) - { - return ETaskResult.TaskComplete; - } - if (!_moving) - { - return ETaskResult.StillRunning; - } - } - if (movementController.IsPathfinding || movementController.IsPathRunning) - { - return ETaskResult.StillRunning; - } - DateTime movementStartedAt = movementController.MovementStartedAt; - if (movementStartedAt == DateTime.MaxValue || movementStartedAt.AddSeconds(2.0) >= DateTime.Now) - { - return ETaskResult.StillRunning; - } - return ETaskResult.TaskComplete; - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } -} diff --git a/Questionable/Questionable.Controller.Steps.Movement/WaitForNearDataIdExecutor.cs b/Questionable/Questionable.Controller.Steps.Movement/WaitForNearDataIdExecutor.cs index e35ffe5..3047e12 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/WaitForNearDataIdExecutor.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/WaitForNearDataIdExecutor.cs @@ -4,7 +4,7 @@ using Questionable.Functions; namespace Questionable.Controller.Steps.Movement; -internal sealed class WaitForNearDataIdExecutor(GameFunctions gameFunctions, IObjectTable objectTable) : TaskExecutor() +internal sealed class WaitForNearDataIdExecutor(GameFunctions gameFunctions, IClientState clientState) : TaskExecutor() { protected override bool Start() { @@ -14,8 +14,7 @@ internal sealed class WaitForNearDataIdExecutor(GameFunctions gameFunctions, IOb public override ETaskResult Update() { IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.DataId); - IGameObject gameObject2 = objectTable[0]; - if (gameObject == null || gameObject2 == null || (gameObject.Position - gameObject2.Position).Length() > base.Task.StopDistance) + if (gameObject == null || (gameObject.Position - clientState.LocalPlayer.Position).Length() > base.Task.StopDistance) { throw new TaskException("Object not found or too far away, no position so we can't move"); } diff --git a/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs b/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs index 8071c56..19c4e37 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Common; @@ -51,7 +50,7 @@ internal static class AethernetShortcut } } - internal sealed class UseAethernetShortcut(ILogger logger, AetheryteFunctions aetheryteFunctions, GameFunctions gameFunctions, QuestFunctions questFunctions, IClientState clientState, IObjectTable objectTable, AetheryteData aetheryteData, TerritoryData territoryData, LifestreamIpc lifestreamIpc, MovementController movementController, ICondition condition) : TaskExecutor() + internal sealed class UseAethernetShortcut(ILogger logger, AetheryteFunctions aetheryteFunctions, GameFunctions gameFunctions, QuestFunctions questFunctions, IClientState clientState, AetheryteData aetheryteData, TerritoryData territoryData, LifestreamIpc lifestreamIpc, MovementController movementController, ICondition condition) : TaskExecutor() { private bool _moving; @@ -99,12 +98,7 @@ internal static class AethernetShortcut if (aetheryteFunctions.IsAetheryteUnlocked(base.Task.From) && aetheryteFunctions.IsAetheryteUnlocked(base.Task.To)) { ushort territoryType = clientState.TerritoryType; - IGameObject gameObject = objectTable[0]; - if (gameObject == null) - { - return false; - } - Vector3 playerPosition = gameObject.Position; + Vector3 playerPosition = clientState.LocalPlayer.Position; if (aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.From) < aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.To)) { if (aetheryteData.CalculateDistance(playerPosition, territoryType, base.Task.From) < (base.Task.From.IsFirmamentAetheryte() ? 11f : 4f)) @@ -119,10 +113,14 @@ internal static class AethernetShortcut List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new Vector3(0f, 8.442986f, 9f); - span[1] = new Vector3(9f, 8.442986f, 0f); - span[2] = new Vector3(-9f, 8.442986f, 0f); - span[3] = new Vector3(0f, 8.442986f, -9f); + int num2 = 0; + span[num2] = new Vector3(0f, 8.442986f, 9f); + num2++; + span[num2] = new Vector3(9f, 8.442986f, 0f); + num2++; + span[num2] = new Vector3(-9f, 8.442986f, 0f); + num2++; + span[num2] = new Vector3(0f, 8.442986f, -9f); Vector3 to = list.MinBy((Vector3 x) => Vector3.Distance(playerPosition, x)); _moving = true; movementController.NavigateTo(EMovementType.Quest, (uint)base.Task.From, to, fly: false, sprint: true, 0.25f); @@ -204,7 +202,7 @@ internal static class AethernetShortcut DoTeleport(); return ETaskResult.StillRunning; } - Vector3? vector = objectTable[0]?.Position; + Vector3? vector = clientState.LocalPlayer?.Position; if (!vector.HasValue) { return ETaskResult.StillRunning; diff --git a/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs b/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs index 5a00a82..0d90d65 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Common; @@ -46,7 +45,7 @@ internal static class AetheryteShortcut } } - internal sealed class UseAetheryteShortcut(ILogger logger, AetheryteFunctions aetheryteFunctions, QuestFunctions questFunctions, IClientState clientState, IObjectTable objectTable, IChatGui chatGui, ICondition condition, AetheryteData aetheryteData, ExtraConditionUtils extraConditionUtils) : TaskExecutor() + internal sealed class UseAetheryteShortcut(ILogger logger, AetheryteFunctions aetheryteFunctions, QuestFunctions questFunctions, IClientState clientState, IChatGui chatGui, ICondition condition, AetheryteData aetheryteData, ExtraConditionUtils extraConditionUtils) : TaskExecutor() { private bool _teleported; @@ -117,15 +116,14 @@ internal static class AetheryteShortcut return true; } } - IGameObject gameObject = objectTable[0]; NearPositionCondition nearPosition = skipAetheryteCondition.NearPosition; - if (nearPosition != null && clientState.TerritoryType == nearPosition.TerritoryId && gameObject != null && Vector3.Distance(nearPosition.Position, gameObject.Position) <= nearPosition.MaximumDistance) + if (nearPosition != null && clientState.TerritoryType == nearPosition.TerritoryId && Vector3.Distance(nearPosition.Position, clientState.LocalPlayer.Position) <= nearPosition.MaximumDistance) { logger.LogInformation("Skipping aetheryte shortcut, as we're near the position"); return true; } NearPositionCondition notNearPosition = skipAetheryteCondition.NotNearPosition; - if (notNearPosition != null && clientState.TerritoryType == notNearPosition.TerritoryId && gameObject != null && notNearPosition.MaximumDistance <= Vector3.Distance(notNearPosition.Position, gameObject.Position)) + if (notNearPosition != null && clientState.TerritoryType == notNearPosition.TerritoryId && notNearPosition.MaximumDistance <= Vector3.Distance(notNearPosition.Position, clientState.LocalPlayer.Position)) { logger.LogInformation("Skipping aetheryte shortcut, as we're not near the position"); return true; @@ -136,27 +134,23 @@ internal static class AetheryteShortcut return true; } } - if (base.Task.ExpectedTerritoryId == territoryType) + if (base.Task.ExpectedTerritoryId == territoryType && !skipAetheryteCondition.Never) { - IGameObject gameObject2 = objectTable[0]; - if (gameObject2 != null && !skipAetheryteCondition.Never) + if (skipAetheryteCondition != null && skipAetheryteCondition.InSameTerritory) { - if (skipAetheryteCondition != null && skipAetheryteCondition.InSameTerritory) - { - logger.LogInformation("Skipping aetheryte teleport due to SkipCondition (InSameTerritory)"); - return true; - } - Vector3 position = gameObject2.Position; - if (base.Task.Step.Position.HasValue && (position - base.Task.Step.Position.Value).Length() < base.Task.Step.CalculateActualStopDistance()) - { - logger.LogInformation("Skipping aetheryte teleport, we're near the target"); - return true; - } - if (aetheryteData.CalculateDistance(position, territoryType, base.Task.TargetAetheryte) < 20f || (base.Task.Step.AethernetShortcut != null && (aetheryteData.CalculateDistance(position, territoryType, base.Task.Step.AethernetShortcut.From) < 20f || aetheryteData.CalculateDistance(position, territoryType, base.Task.Step.AethernetShortcut.To) < 20f))) - { - logger.LogInformation("Skipping aetheryte teleport"); - return true; - } + logger.LogInformation("Skipping aetheryte teleport due to SkipCondition (InSameTerritory)"); + return true; + } + Vector3 position = clientState.LocalPlayer.Position; + if (base.Task.Step.Position.HasValue && (position - base.Task.Step.Position.Value).Length() < base.Task.Step.CalculateActualStopDistance()) + { + logger.LogInformation("Skipping aetheryte teleport, we're near the target"); + return true; + } + if (aetheryteData.CalculateDistance(position, territoryType, base.Task.TargetAetheryte) < 20f || (base.Task.Step.AethernetShortcut != null && (aetheryteData.CalculateDistance(position, territoryType, base.Task.Step.AethernetShortcut.From) < 20f || aetheryteData.CalculateDistance(position, territoryType, base.Task.Step.AethernetShortcut.To) < 20f))) + { + logger.LogInformation("Skipping aetheryte teleport"); + return true; } } } @@ -214,7 +208,7 @@ internal static class AetheryteShortcut } } - internal sealed class MoveAwayFromAetheryteExecutor(MoveExecutor moveExecutor, AetheryteData aetheryteData, IClientState clientState, IObjectTable objectTable) : TaskExecutor() + internal sealed class MoveAwayFromAetheryteExecutor(MoveExecutor moveExecutor, AetheryteData aetheryteData, IClientState clientState) : TaskExecutor() { private static readonly Dictionary> AetherytesToMoveFrom; @@ -225,12 +219,7 @@ internal static class AetheryteShortcut protected override bool Start() { - IGameObject gameObject = objectTable[0]; - if (gameObject == null) - { - return false; - } - Vector3 playerPosition = gameObject.Position; + Vector3 playerPosition = clientState.LocalPlayer.Position; if (aetheryteData.CalculateDistance(playerPosition, clientState.TerritoryType, base.Task.TargetAetheryte) >= 20f) { return false; @@ -257,10 +246,14 @@ internal static class AetheryteShortcut List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new Vector3(0f, 8.8f, 15.5f); - span[1] = new Vector3(0f, 8.8f, -15.5f); - span[2] = new Vector3(15.5f, 8.8f, 0f); - span[3] = new Vector3(-15.5f, 8.8f, 0f); + int num2 = 0; + span[num2] = new Vector3(0f, 8.8f, 15.5f); + num2++; + span[num2] = new Vector3(0f, 8.8f, -15.5f); + num2++; + span[num2] = new Vector3(15.5f, 8.8f, 0f); + num2++; + span[num2] = new Vector3(-15.5f, 8.8f, 0f); dictionary.Add(EAetheryteLocation.SolutionNine, list); AetherytesToMoveFrom = dictionary; } diff --git a/Questionable/Questionable.Controller.Steps.Shared/Craft.cs b/Questionable/Questionable.Controller.Steps.Shared/Craft.cs index 282765f..d8fff19 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/Craft.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/Craft.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.UI.Agent; @@ -31,26 +30,26 @@ internal static class Craft return new global::_003C_003Ez__ReadOnlyArray(new ITask[2] { new Questionable.Controller.Steps.Common.Mount.UnmountTask(), - new CraftTask(step.ItemId.Value, step.ItemCount.Value, step.RequireHq == true) + new CraftTask(step.ItemId.Value, step.ItemCount.Value) }); } } - internal sealed record CraftTask(uint ItemId, int ItemCount, bool RequireHq) : ITask + internal sealed record CraftTask(uint ItemId, int ItemCount) : ITask { public override string ToString() { - return $"Craft {ItemCount}x {ItemId}{(RequireHq ? " (HQ)" : "")} (with Artisan)"; + return $"Craft {ItemCount}x {ItemId} (with Artisan)"; } } - internal sealed class DoCraft(IDataManager dataManager, IObjectTable objectTable, ArtisanIpc artisanIpc, ILogger logger) : TaskExecutor() + internal sealed class DoCraft(IDataManager dataManager, IClientState clientState, ArtisanIpc artisanIpc, ILogger logger) : TaskExecutor() { protected override bool Start() { if (HasRequestedItems()) { - logger.LogInformation("Already own {ItemCount}x {ItemId}{HqSuffix}", base.Task.ItemCount, base.Task.ItemId, base.Task.RequireHq ? " (HQ)" : ""); + logger.LogInformation("Already own {ItemCount}x {ItemId}", base.Task.ItemCount, base.Task.ItemId); return false; } RecipeLookup? rowOrDefault = dataManager.GetExcelSheet().GetRowOrDefault(base.Task.ItemId); @@ -58,7 +57,7 @@ internal static class Craft { throw new TaskException($"Item {base.Task.ItemId} is not craftable"); } - uint num = (EClassJob?)(objectTable[0] as ICharacter)?.ClassJob.RowId switch + uint num = (EClassJob)clientState.LocalPlayer.ClassJob.RowId switch { EClassJob.Carpenter => rowOrDefault.Value.CRP.RowId, EClassJob.Blacksmith => rowOrDefault.Value.BSM.RowId, @@ -89,7 +88,7 @@ internal static class Craft throw new TaskException($"Unable to determine recipe for item {base.Task.ItemId}"); } int num2 = base.Task.ItemCount - GetOwnedItemCount(); - logger.LogInformation("Starting craft for item {ItemId} with recipe {RecipeId} for {RemainingItemCount} items{HqSuffix}", base.Task.ItemId, num, num2, base.Task.RequireHq ? " (HQ required)" : ""); + logger.LogInformation("Starting craft for item {ItemId} with recipe {RecipeId} for {RemainingItemCount} items", base.Task.ItemId, num, num2); if (!artisanIpc.CraftItem((ushort)num, num2)) { throw new TaskException($"Failed to start Artisan craft for recipe {num}"); @@ -129,16 +128,7 @@ internal static class Craft private unsafe int GetOwnedItemCount() { InventoryManager* ptr = InventoryManager.Instance(); - if (base.Task.RequireHq) - { - int inventoryItemCount = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0); - logger.LogTrace("HQ item count for {ItemId}: {Count}", base.Task.ItemId, inventoryItemCount); - return inventoryItemCount; - } - int inventoryItemCount2 = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: false, checkEquipped: false, checkArmory: true, 0); - int inventoryItemCount3 = ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0); - logger.LogTrace("Total item count for {ItemId}: {NqCount} NQ + {HqCount} HQ = {Total}", base.Task.ItemId, inventoryItemCount2, inventoryItemCount3, inventoryItemCount2 + inventoryItemCount3); - return inventoryItemCount2 + inventoryItemCount3; + return ptr->GetInventoryItemCount(base.Task.ItemId, isHq: false, checkEquipped: false, checkArmory: true, 0) + ptr->GetInventoryItemCount(base.Task.ItemId, isHq: true, checkEquipped: false, checkArmory: true, 0); } public override bool ShouldInterruptOnDamage() diff --git a/Questionable/Questionable.Controller.Steps.Shared/ExtraConditionUtils.cs b/Questionable/Questionable.Controller.Steps.Shared/ExtraConditionUtils.cs index 0f12b04..b629f1c 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/ExtraConditionUtils.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/ExtraConditionUtils.cs @@ -9,17 +9,14 @@ internal sealed class ExtraConditionUtils { private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - - public ExtraConditionUtils(IClientState clientState, IObjectTable objectTable) + public ExtraConditionUtils(IClientState clientState) { _clientState = clientState; - _objectTable = objectTable; } public bool MatchesExtraCondition(EExtraSkipCondition skipCondition) { - Vector3? vector = _objectTable[0]?.Position; + Vector3? vector = _clientState.LocalPlayer?.Position; if (vector.HasValue && _clientState.TerritoryType != 0) { return MatchesExtraCondition(skipCondition, vector.Value, _clientState.TerritoryType); diff --git a/Questionable/Questionable.Controller.Steps.Shared/Gather.cs b/Questionable/Questionable.Controller.Steps.Shared/Gather.cs index ef618eb..366255d 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/Gather.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/Gather.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Text; using Dalamud.Game.Text.SeStringHandling; using Dalamud.Plugin.Services; @@ -43,7 +42,7 @@ internal static class Gather } } - internal sealed class DelayedGatheringExecutor(GatheringPointRegistry gatheringPointRegistry, TerritoryData territoryData, IClientState clientState, IObjectTable objectTable, IServiceProvider serviceProvider, ILogger logger) : TaskExecutor(), IExtraTaskCreator, ITaskExecutor + internal sealed class DelayedGatheringExecutor(GatheringPointRegistry gatheringPointRegistry, TerritoryData territoryData, IClientState clientState, IServiceProvider serviceProvider, ILogger logger) : TaskExecutor(), IExtraTaskCreator, ITaskExecutor { protected override bool Start() { @@ -57,8 +56,8 @@ internal static class Gather public IEnumerable CreateExtraTasks() { - EClassJob valueOrDefault = ((EClassJob?)(objectTable[0] as ICharacter)?.ClassJob.RowId).GetValueOrDefault(); - if (!gatheringPointRegistry.TryGetGatheringPointId(base.Task.GatheredItem.ItemId, valueOrDefault, out GatheringPointId gatheringPointId)) + EClassJob rowId = (EClassJob)clientState.LocalPlayer.ClassJob.RowId; + if (!gatheringPointRegistry.TryGetGatheringPointId(base.Task.GatheredItem.ItemId, rowId, out GatheringPointId gatheringPointId)) { throw new TaskException($"No gathering point found for item {base.Task.GatheredItem.ItemId}"); } @@ -70,7 +69,7 @@ internal static class Gather { yield break; } - switch (valueOrDefault) + switch (rowId) { case EClassJob.Miner: yield return new Questionable.Controller.Steps.Interactions.Action.TriggerStatusIfMissing(EStatus.Prospect, EAction.Prospect); diff --git a/Questionable/Questionable.Controller.Steps.Shared/SkipCondition.cs b/Questionable/Questionable.Controller.Steps.Shared/SkipCondition.cs index 0c8ffe0..45449dc 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/SkipCondition.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/SkipCondition.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Numerics; @@ -46,18 +45,14 @@ internal static class SkipCondition } } - internal sealed class CheckSkip(ILogger logger, Configuration configuration, AetheryteFunctions aetheryteFunctions, GameFunctions gameFunctions, QuestFunctions questFunctions, IClientState clientState, IObjectTable objectTable, ICondition condition, ExtraConditionUtils extraConditionUtils, ClassJobUtils classJobUtils) : TaskExecutor() + internal sealed class CheckSkip(ILogger logger, Configuration configuration, AetheryteFunctions aetheryteFunctions, GameFunctions gameFunctions, QuestFunctions questFunctions, IClientState clientState, ICondition condition, ExtraConditionUtils extraConditionUtils, ClassJobUtils classJobUtils) : TaskExecutor() { protected override bool Start() { SkipStepConditions skipConditions = base.Task.SkipConditions; QuestStep step = base.Task.Step; ElementId elementId = base.Task.ElementId; - ILogger logger = logger; - object[] array = new object[1]; - object reference = skipConditions; - array[0] = string.Join(",", new ReadOnlySpan(in reference)); - logger.LogInformation("Checking skip conditions; {ConfiguredConditions}", array); + logger.LogInformation("Checking skip conditions; {ConfiguredConditions}", string.Join(",", skipConditions)); if (CheckFlyingCondition(step, skipConditions)) { return true; @@ -205,10 +200,9 @@ internal static class SkipCondition if (skipConditions.NotTargetable && step != null && step.DataId.HasValue) { IGameObject gameObject = gameFunctions.FindObjectByDataId(step.DataId.Value); - IGameObject gameObject2 = objectTable[0]; if (gameObject == null) { - if (gameObject2 != null && (step.Position.GetValueOrDefault() - gameObject2.Position).Length() < 100f) + if ((step.Position.GetValueOrDefault() - clientState.LocalPlayer.Position).Length() < 100f) { logger.LogInformation("Skipping step, object is not nearby (but we are)"); return true; @@ -253,22 +247,6 @@ internal static class SkipCondition return true; } } - item = skipConditions.Item; - if (item != null && item.InInventory && step != null && step.ItemId.HasValue) - { - InventoryManager* ptr2 = InventoryManager.Instance(); - if (ptr2->GetInventoryItemCount(step.ItemId.Value, isHq: false, checkEquipped: true, checkArmory: true, 0) > 0 || ptr2->GetInventoryItemCount(step.ItemId.Value, isHq: true, checkEquipped: true, checkArmory: true, 0) > 0) - { - logger.LogInformation("Skipping step, item with itemId {ItemId} already in inventory", step.ItemId.Value); - return true; - } - } - item = skipConditions.Item; - if (item != null && item.BetterOrEqualItemEquipped && step != null && step.ItemId.HasValue && IsBetterOrEqualItemEquipped(step.ItemId.Value)) - { - logger.LogInformation("Skipping step, better or equal item than {ItemId} is already equipped", step.ItemId.Value); - return true; - } return false; } @@ -346,10 +324,9 @@ internal static class SkipCondition private bool CheckLevelCondition(SkipStepConditions skipConditions) { - ICharacter character = objectTable[0] as ICharacter; - if (skipConditions.MinimumLevel.HasValue && character != null && character.Level >= skipConditions.MinimumLevel.Value) + if (skipConditions.MinimumLevel.HasValue && clientState.LocalPlayer != null && clientState.LocalPlayer.Level >= skipConditions.MinimumLevel.Value) { - logger.LogInformation("Skipping step, as player level {CurrentLevel} >= minimum level {MinLevel}", character.Level, skipConditions.MinimumLevel.Value); + logger.LogInformation("Skipping step, as player level {CurrentLevel} >= minimum level {MinLevel}", clientState.LocalPlayer.Level, skipConditions.MinimumLevel.Value); return true; } return false; @@ -414,9 +391,9 @@ internal static class SkipCondition if (requiredCurrentJob != null && requiredCurrentJob.Count > 0) { List list = step.RequiredCurrentJob.SelectMany((EExtendedClassJob x) => classJobUtils.AsIndividualJobs(x, elementId)).ToList(); - EClassJob valueOrDefault = ((EClassJob?)(objectTable[0] as ICharacter)?.ClassJob.RowId).GetValueOrDefault(); - logger.LogInformation("Checking current job {CurrentJob} against {ExpectedJobs}", valueOrDefault, string.Join(",", list)); - if (!list.Contains(valueOrDefault)) + EClassJob rowId = (EClassJob)clientState.LocalPlayer.ClassJob.RowId; + logger.LogInformation("Checking current job {CurrentJob} against {ExpectedJobs}", rowId, string.Join(",", list)); + if (!list.Contains(rowId)) { logger.LogInformation("Skipping step, as step requires a different job"); return true; @@ -428,15 +405,14 @@ internal static class SkipCondition private bool CheckPositionCondition(SkipStepConditions skipConditions) { - IGameObject gameObject = objectTable[0]; NearPositionCondition nearPosition = skipConditions.NearPosition; - if (nearPosition != null && clientState.TerritoryType == nearPosition.TerritoryId && gameObject != null && Vector3.Distance(nearPosition.Position, gameObject.Position) <= nearPosition.MaximumDistance) + if (nearPosition != null && clientState.TerritoryType == nearPosition.TerritoryId && Vector3.Distance(nearPosition.Position, clientState.LocalPlayer.Position) <= nearPosition.MaximumDistance) { logger.LogInformation("Skipping step, as we're near the position"); return true; } NearPositionCondition notNearPosition = skipConditions.NotNearPosition; - if (notNearPosition != null && clientState.TerritoryType == notNearPosition.TerritoryId && gameObject != null && notNearPosition.MaximumDistance <= Vector3.Distance(notNearPosition.Position, gameObject.Position)) + if (notNearPosition != null && clientState.TerritoryType == notNearPosition.TerritoryId && notNearPosition.MaximumDistance <= Vector3.Distance(notNearPosition.Position, clientState.LocalPlayer.Position)) { logger.LogInformation("Skipping step, as we're not near the position"); return true; @@ -485,39 +461,6 @@ internal static class SkipCondition return false; } - private unsafe bool IsBetterOrEqualItemEquipped(uint itemId) - { - if (objectTable[0] == null) - { - return false; - } - InventoryManager* ptr = InventoryManager.Instance(); - if (ptr == null) - { - return false; - } - uint itemLevel = gameFunctions.GetItemLevel(itemId); - if (itemLevel == 0) - { - logger.LogWarning("Could not get item level for item {ItemId}, skipping equip step", itemId); - return true; - } - if (ptr->GetInventoryItemCount(itemId, isHq: false, checkEquipped: true, checkArmory: true, 0) == 0 && ptr->GetInventoryItemCount(itemId, isHq: true, checkEquipped: true, checkArmory: true, 0) == 0) - { - logger.LogInformation("Item {ItemId} not found in inventory, skipping equip step", itemId); - return true; - } - InventoryItem* inventorySlot = ptr->GetInventoryContainer(InventoryType.EquippedItems)->GetInventorySlot(0); - if (inventorySlot == null || inventorySlot->ItemId == 0) - { - logger.LogDebug("No item equipped in main hand slot, should equip item {ItemId}", itemId); - return false; - } - uint itemLevel2 = gameFunctions.GetItemLevel(inventorySlot->ItemId); - logger.LogDebug("Comparing equipped item level {EquippedLevel} with target item level {TargetLevel}", itemLevel2, itemLevel); - return itemLevel2 >= itemLevel; - } - public override ETaskResult Update() { return ETaskResult.SkipRemainingTasksForStep; diff --git a/Questionable/Questionable.Controller.Steps.Shared/SwitchClassJob.cs b/Questionable/Questionable.Controller.Steps.Shared/SwitchClassJob.cs index 7cc8302..79756cd 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/SwitchClassJob.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/SwitchClassJob.cs @@ -1,5 +1,4 @@ using System.Linq; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.UI.Misc; using LLib.GameData; @@ -32,11 +31,11 @@ internal static class SwitchClassJob } } - internal sealed class SwitchClassJobExecutor(IObjectTable objectTable) : AbstractDelayedTaskExecutor() + internal sealed class SwitchClassJobExecutor(IClientState clientState) : AbstractDelayedTaskExecutor() { protected unsafe override bool StartInternal() { - if ((objectTable[0] as ICharacter)?.ClassJob.RowId == (uint?)base.Task.ClassJob) + if (clientState.LocalPlayer.ClassJob.RowId == (uint)base.Task.ClassJob) { return false; } diff --git a/Questionable/Questionable.Controller.Steps.Shared/WaitAtEnd.cs b/Questionable/Questionable.Controller.Steps.Shared/WaitAtEnd.cs index 977f25a..6c2f566 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/WaitAtEnd.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/WaitAtEnd.cs @@ -17,7 +17,7 @@ namespace Questionable.Controller.Steps.Shared; internal static class WaitAtEnd { - internal sealed class Factory(IClientState clientState, IObjectTable objectTable, ICondition condition, TerritoryData territoryData, AutoDutyIpc autoDutyIpc, BossModIpc bossModIpc) : ITaskFactory + internal sealed class Factory(IClientState clientState, ICondition condition, TerritoryData territoryData, AutoDutyIpc autoDutyIpc, BossModIpc bossModIpc) : ITaskFactory { public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) { @@ -53,20 +53,19 @@ internal static class WaitAtEnd case EInteractionType.WaitForManualProgress: case EInteractionType.Snipe: case EInteractionType.Instruction: - case EInteractionType.FateAction: return new global::_003C_003Ez__ReadOnlySingleElementList(new WaitNextStepOrSequence()); case EInteractionType.Duty: if (autoDutyIpc.IsConfiguredToRunContent(step.DutyOptions)) { break; } - goto IL_01a1; + goto IL_019d; case EInteractionType.SinglePlayerDuty: if (bossModIpc.IsConfiguredToRunSoloInstance(quest.Id, step.SinglePlayerDutyOptions)) { break; } - goto IL_01a1; + goto IL_019d; case EInteractionType.WalkTo: case EInteractionType.Jump: return new global::_003C_003Ez__ReadOnlySingleElementList(Next(quest, sequence)); @@ -84,13 +83,13 @@ internal static class WaitAtEnd { break; } - goto IL_0288; + goto IL_0284; case EInteractionType.UseItem: if (!step.TargetTerritoryId.HasValue) { break; } - goto IL_0288; + goto IL_0284; case EInteractionType.AcceptQuest: { WaitQuestAccepted waitQuestAccepted = new WaitQuestAccepted(step.PickUpQuestId ?? quest.Id); @@ -121,19 +120,19 @@ internal static class WaitAtEnd } return new global::_003C_003Ez__ReadOnlyArray(new ITask[2] { waitQuestCompleted, waitDelay2 }); } - IL_01a1: + IL_019d: return new global::_003C_003Ez__ReadOnlySingleElementList(new EndAutomation()); - IL_0288: + IL_0284: if (step.TerritoryId != step.TargetTerritoryId) { task = new WaitCondition.Task(() => clientState.TerritoryType == step.TargetTerritoryId, "Wait(tp to territory: " + territoryData.GetNameAndId(step.TargetTerritoryId.Value) + ")"); } else { - Vector3 lastPosition = step.Position ?? objectTable[0]?.Position ?? Vector3.Zero; + Vector3 lastPosition = step.Position ?? clientState.LocalPlayer?.Position ?? Vector3.Zero; task = new WaitCondition.Task(delegate { - Vector3? vector = objectTable[0]?.Position; + Vector3? vector = clientState.LocalPlayer?.Position; return vector.HasValue && (lastPosition - vector.Value).Length() > 2f; }, "Wait(tp away from " + lastPosition.ToString("G", CultureInfo.InvariantCulture) + ")"); } @@ -197,40 +196,15 @@ internal static class WaitAtEnd } } - internal sealed class WaitNextStepOrSequenceExecutor(QuestController questController) : TaskExecutor() + internal sealed class WaitNextStepOrSequenceExecutor : TaskExecutor { - private ElementId? _questId; - - private byte _initialSequence; - - private int _initialStep; - protected override bool Start() { - QuestController.QuestProgress currentQuest = questController.CurrentQuest; - if (currentQuest != null) - { - _questId = currentQuest.Quest.Id; - _initialSequence = currentQuest.Sequence; - _initialStep = currentQuest.Step; - } return true; } public override ETaskResult Update() { - if (_questId != null) - { - QuestController.QuestProgress currentQuest = questController.CurrentQuest; - if (currentQuest == null || currentQuest.Quest.Id != _questId) - { - return ETaskResult.TaskComplete; - } - if (currentQuest.Sequence != _initialSequence || currentQuest.Step != _initialStep) - { - return ETaskResult.TaskComplete; - } - } return ETaskResult.StillRunning; } diff --git a/Questionable/Questionable.Controller.Steps/TaskCreator.cs b/Questionable/Questionable.Controller.Steps/TaskCreator.cs index 3a77da0..e804787 100644 --- a/Questionable/Questionable.Controller.Steps/TaskCreator.cs +++ b/Questionable/Questionable.Controller.Steps/TaskCreator.cs @@ -43,15 +43,19 @@ internal sealed class TaskCreator int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new WaitAtEnd.WaitNextStepOrSequence(); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new WaitAtEnd.WaitNextStepOrSequence(); list2 = list; } else if (step == null) { - int num = 1; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); - CollectionsMarshal.AsSpan(list3)[0] = new WaitAtEnd.WaitNextStepOrSequence(); + int index = 1; + List list3 = new List(index); + CollectionsMarshal.SetCount(list3, index); + Span span = CollectionsMarshal.AsSpan(list3); + int num = 0; + span[num] = new WaitAtEnd.WaitNextStepOrSequence(); list2 = list3; } else diff --git a/Questionable/Questionable.Controller.Steps/TaskExecutor.cs b/Questionable/Questionable.Controller.Steps/TaskExecutor.cs index ab27e90..bc18729 100644 --- a/Questionable/Questionable.Controller.Steps/TaskExecutor.cs +++ b/Questionable/Questionable.Controller.Steps/TaskExecutor.cs @@ -33,7 +33,6 @@ internal abstract class TaskExecutor : ITaskExecutor where T : class, ITask if (task is T task2) { Task = task2; - ProgressContext = null; return Start(); } throw new TaskException($"Unable to cast {task.GetType()} to {typeof(T)}"); diff --git a/Questionable/Questionable.Controller.Utils/PartyWatchDog.cs b/Questionable/Questionable.Controller.Utils/PartyWatchDog.cs index c5767af..0ae0983 100644 --- a/Questionable/Questionable.Controller.Utils/PartyWatchDog.cs +++ b/Questionable/Questionable.Controller.Utils/PartyWatchDog.cs @@ -4,32 +4,24 @@ using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.Game.Group; using LLib.GameData; using Microsoft.Extensions.Logging; -using Questionable.Data; -using Questionable.Model.Questing; namespace Questionable.Controller.Utils; -internal sealed class PartyWatchdog : IDisposable +internal sealed class PartyWatchDog : IDisposable { private readonly QuestController _questController; - private readonly Configuration _configuration; - - private readonly TerritoryData _territoryData; - private readonly IClientState _clientState; private readonly IChatGui _chatGui; - private readonly ILogger _logger; + private readonly ILogger _logger; private ushort? _uncheckedTeritoryId; - public PartyWatchdog(QuestController questController, Configuration configuration, TerritoryData territoryData, IClientState clientState, IChatGui chatGui, ILogger logger) + public PartyWatchDog(QuestController questController, IClientState clientState, IChatGui chatGui, ILogger logger) { _questController = questController; - _configuration = configuration; - _territoryData = territoryData; _clientState = clientState; _chatGui = chatGui; _logger = logger; @@ -38,116 +30,92 @@ internal sealed class PartyWatchdog : IDisposable private unsafe void TerritoryChanged(ushort newTerritoryId) { - if (!_configuration.Advanced.DisablePartyWatchdog) + switch ((ETerritoryIntendedUse)GameMain.Instance()->CurrentTerritoryIntendedUseId) { - switch ((ETerritoryIntendedUse)GameMain.Instance()->CurrentTerritoryIntendedUseId) - { - case ETerritoryIntendedUse.Gaol: - case ETerritoryIntendedUse.Frontline: - case ETerritoryIntendedUse.LordOfVerminion: - case ETerritoryIntendedUse.Diadem: - case ETerritoryIntendedUse.CrystallineConflict: - case ETerritoryIntendedUse.DeepDungeon: - case ETerritoryIntendedUse.TreasureMapDuty: - case ETerritoryIntendedUse.Battlehall: - case ETerritoryIntendedUse.CrystallineConflict2: - case ETerritoryIntendedUse.Diadem2: - case ETerritoryIntendedUse.RivalWings: - case ETerritoryIntendedUse.Eureka: - case ETerritoryIntendedUse.LeapOfFaith: - case ETerritoryIntendedUse.OceanFishing: - case ETerritoryIntendedUse.Diadem3: - case ETerritoryIntendedUse.Bozja: - case ETerritoryIntendedUse.Battlehall2: - case ETerritoryIntendedUse.Battlehall3: - case ETerritoryIntendedUse.LargeScaleRaid: - case ETerritoryIntendedUse.LargeScaleSavageRaid: - case ETerritoryIntendedUse.Blunderville: - StopIfRunning($"Unsupported Area entered ({newTerritoryId})"); - break; - case ETerritoryIntendedUse.Dungeon: - case ETerritoryIntendedUse.VariantDungeon: - case ETerritoryIntendedUse.AllianceRaid: - case ETerritoryIntendedUse.Trial: - case ETerritoryIntendedUse.Raid: - case ETerritoryIntendedUse.Raid2: - case ETerritoryIntendedUse.SeasonalEvent: - case ETerritoryIntendedUse.SeasonalEvent2: - case ETerritoryIntendedUse.CriterionDuty: - case ETerritoryIntendedUse.CriterionSavageDuty: - _uncheckedTeritoryId = newTerritoryId; - _logger.LogInformation("Will check territory {TerritoryId} after loading", newTerritoryId); - break; - case ETerritoryIntendedUse.StartingArea: - case ETerritoryIntendedUse.QuestArea: - case ETerritoryIntendedUse.QuestBattle: - case (ETerritoryIntendedUse)11: - case ETerritoryIntendedUse.QuestArea2: - case ETerritoryIntendedUse.ResidentialArea: - case ETerritoryIntendedUse.HousingInstances: - case ETerritoryIntendedUse.QuestArea3: - case (ETerritoryIntendedUse)19: - case ETerritoryIntendedUse.ChocoboSquare: - case ETerritoryIntendedUse.RestorationEvent: - case ETerritoryIntendedUse.Sanctum: - case ETerritoryIntendedUse.GoldSaucer: - case (ETerritoryIntendedUse)24: - case ETerritoryIntendedUse.HallOfTheNovice: - case ETerritoryIntendedUse.QuestBattle2: - case ETerritoryIntendedUse.Barracks: - case ETerritoryIntendedUse.SeasonalEventDuty: - case (ETerritoryIntendedUse)36: - case ETerritoryIntendedUse.Unknown1: - case (ETerritoryIntendedUse)42: - case ETerritoryIntendedUse.MaskedCarnivale: - case ETerritoryIntendedUse.IslandSanctuary: - case ETerritoryIntendedUse.QuestArea4: - case (ETerritoryIntendedUse)55: - case ETerritoryIntendedUse.TribalInstance: - break; - } + case ETerritoryIntendedUse.Gaol: + case ETerritoryIntendedUse.Frontline: + case ETerritoryIntendedUse.LordOfVerminion: + case ETerritoryIntendedUse.Diadem: + case ETerritoryIntendedUse.CrystallineConflict: + case ETerritoryIntendedUse.DeepDungeon: + case ETerritoryIntendedUse.TreasureMapDuty: + case ETerritoryIntendedUse.Battlehall: + case ETerritoryIntendedUse.CrystallineConflict2: + case ETerritoryIntendedUse.Diadem2: + case ETerritoryIntendedUse.RivalWings: + case ETerritoryIntendedUse.Eureka: + case ETerritoryIntendedUse.LeapOfFaith: + case ETerritoryIntendedUse.OceanFishing: + case ETerritoryIntendedUse.Diadem3: + case ETerritoryIntendedUse.Bozja: + case ETerritoryIntendedUse.Battlehall2: + case ETerritoryIntendedUse.Battlehall3: + case ETerritoryIntendedUse.LargeScaleRaid: + case ETerritoryIntendedUse.LargeScaleSavageRaid: + case ETerritoryIntendedUse.Blunderville: + StopIfRunning($"Unsupported Area entered ({newTerritoryId})"); + break; + case ETerritoryIntendedUse.Dungeon: + case ETerritoryIntendedUse.VariantDungeon: + case ETerritoryIntendedUse.AllianceRaid: + case ETerritoryIntendedUse.Trial: + case ETerritoryIntendedUse.Raid: + case ETerritoryIntendedUse.Raid2: + case ETerritoryIntendedUse.SeasonalEvent: + case ETerritoryIntendedUse.SeasonalEvent2: + case ETerritoryIntendedUse.CriterionDuty: + case ETerritoryIntendedUse.CriterionSavageDuty: + _uncheckedTeritoryId = newTerritoryId; + _logger.LogInformation("Will check territory {TerritoryId} after loading", newTerritoryId); + break; + case ETerritoryIntendedUse.StartingArea: + case ETerritoryIntendedUse.QuestArea: + case ETerritoryIntendedUse.QuestBattle: + case (ETerritoryIntendedUse)11: + case ETerritoryIntendedUse.QuestArea2: + case ETerritoryIntendedUse.ResidentialArea: + case ETerritoryIntendedUse.HousingInstances: + case ETerritoryIntendedUse.QuestArea3: + case (ETerritoryIntendedUse)19: + case ETerritoryIntendedUse.ChocoboSquare: + case ETerritoryIntendedUse.RestorationEvent: + case ETerritoryIntendedUse.Sanctum: + case ETerritoryIntendedUse.GoldSaucer: + case (ETerritoryIntendedUse)24: + case ETerritoryIntendedUse.HallOfTheNovice: + case ETerritoryIntendedUse.QuestBattle2: + case ETerritoryIntendedUse.Barracks: + case ETerritoryIntendedUse.SeasonalEventDuty: + case (ETerritoryIntendedUse)36: + case ETerritoryIntendedUse.Unknown1: + case (ETerritoryIntendedUse)42: + case ETerritoryIntendedUse.MaskedCarnivale: + case ETerritoryIntendedUse.IslandSanctuary: + case ETerritoryIntendedUse.QuestArea4: + case (ETerritoryIntendedUse)55: + case ETerritoryIntendedUse.TribalInstance: + break; } } public unsafe void Update() { - if (_configuration.Advanced.DisablePartyWatchdog || _uncheckedTeritoryId != _clientState.TerritoryType || GameMain.Instance()->TerritoryLoadState != 2) + if (_uncheckedTeritoryId != _clientState.TerritoryType || GameMain.Instance()->TerritoryLoadState != 2) { return; } GroupManager* ptr = GroupManager.Instance(); - if (ptr == null) + if (ptr != null) { - return; - } - byte memberCount = ptr->MainGroup.MemberCount; - bool isAlliance = ptr->MainGroup.IsAlliance; - _logger.LogDebug("Territory {TerritoryId} with {MemberCount} members, alliance: {IsInAlliance}", _uncheckedTeritoryId, memberCount, isAlliance); - if (memberCount > 1 || isAlliance) - { - if (!IsDutyConfiguredForParty(_uncheckedTeritoryId.Value)) + byte memberCount = ptr->MainGroup.MemberCount; + bool isAlliance = ptr->MainGroup.IsAlliance; + _logger.LogDebug("Territory {TerritoryId} with {MemberCount} members, alliance: {IsInAlliance}", _uncheckedTeritoryId, memberCount, isAlliance); + if (memberCount > 1 || isAlliance) { StopIfRunning("Other party members present"); } - else - { - _logger.LogInformation("Party detected but duty is configured for Unsync (Party) mode, continuing"); - } + _uncheckedTeritoryId = null; } - _uncheckedTeritoryId = null; - } - - private bool IsDutyConfiguredForParty(ushort territoryId) - { - if (!_territoryData.TryGetContentFinderConditionIdForTerritory(territoryId, out var cfcId)) - { - return false; - } - if (_configuration.Duties.DutyModeOverrides.TryGetValue(cfcId, out var value)) - { - return value == EDutyMode.UnsyncParty; - } - return _configuration.Duties.DefaultDutyMode == EDutyMode.UnsyncParty; } private void StopIfRunning(string reason) diff --git a/Questionable/Questionable.Controller.Utils/WindowsKeypress.cs b/Questionable/Questionable.Controller.Utils/WindowsKeypress.cs deleted file mode 100644 index 0b3ffc7..0000000 --- a/Questionable/Questionable.Controller.Utils/WindowsKeypress.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel; - -namespace Questionable.Controller.Utils; - -internal static class WindowsKeypress -{ - public enum LimitedKeys - { - A = 65, - Escape = 27 - } - - private static class NativeMethods - { - [DllImport("user32.dll", CharSet = CharSet.Auto)] - [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] - public static extern nint SendMessage(nint hWnd, uint Msg, nint wParam, nint lParam); - } - - public const uint WM_KEYUP = 257u; - - public const uint WM_KEYDOWN = 256u; - - public unsafe static void SendKeypress(LimitedKeys key) - { - void* hWnd = Device.Instance()->hWnd; - NativeMethods.SendMessage((nint)hWnd, 256u, (nint)key, IntPtr.Zero); - NativeMethods.SendMessage((nint)hWnd, 257u, (nint)key, IntPtr.Zero); - } - - public static void SendMessage(nint hWnd, uint msg, nint key) - { - NativeMethods.SendMessage(hWnd, msg, key, IntPtr.Zero); - } -} diff --git a/Questionable/Questionable.Controller/CombatController.cs b/Questionable/Questionable.Controller/CombatController.cs index 37f3875..76e7f35 100644 --- a/Questionable/Questionable.Controller/CombatController.cs +++ b/Questionable/Questionable.Controller/CombatController.cs @@ -4,7 +4,9 @@ using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using Dalamud.Game.ClientState.Conditions; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Enums; +using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; @@ -321,13 +323,12 @@ internal sealed class CombatController : IDisposable } } } - IGameObject localPlayer = _objectTable[0]; IGameObject gameObject = (from x in _objectTable select new { GameObject = x, Priority = GetKillPriority(x).Priority, - Distance = Vector3.Distance(x.Position, localPlayer?.Position ?? Vector3.Zero) + Distance = Vector3.Distance(x.Position, _clientState.LocalPlayer.Position) } into x where x.Priority > 0 orderby x.Priority descending, x.Distance @@ -354,8 +355,7 @@ internal sealed class CombatController : IDisposable } if (gameObject is IBattleNpc battleNpc && battleNpc.StatusFlags.HasFlag(StatusFlags.InCombat)) { - IGameObject? gameObject2 = _objectTable[0]; - if (gameObject.TargetObjectId == gameObject2?.GameObjectId) + if (gameObject.TargetObjectId == _clientState.LocalPlayer?.GameObjectId) { return (Priority: num.Value + 150, Reason: text + "/Targeted"); } @@ -393,12 +393,11 @@ internal sealed class CombatController : IDisposable } List complexCombatDatas = _currentFight.Data.ComplexCombatDatas; GameObject* address = (GameObject*)gameObject.Address; - IGameObject gameObject2 = _objectTable[0]; - if (address->FateId != 0 && _currentFight.Data.SpawnType != EEnemySpawnType.FateEnemies && gameObject.TargetObjectId != gameObject2?.GameObjectId) + if (address->FateId != 0 && _currentFight.Data.SpawnType != EEnemySpawnType.FateEnemies && gameObject.TargetObjectId != _clientState.LocalPlayer?.GameObjectId) { return (Priority: null, Reason: "FATE mob"); } - Vector3 value = gameObject2?.Position ?? Vector3.Zero; + Vector3 value = _clientState.LocalPlayer?.Position ?? Vector3.Zero; bool flag = _currentFight.Data.SpawnType != EEnemySpawnType.FinishCombatIfAny && (_currentFight.Data.SpawnType != EEnemySpawnType.OverworldEnemies || !(Vector3.Distance(value, battleNpc.Position) >= 50f)) && _currentFight.Data.SpawnType != EEnemySpawnType.FateEnemies; if (complexCombatDatas.Count > 0) { @@ -431,7 +430,6 @@ internal sealed class CombatController : IDisposable private void SetTarget(IGameObject? target) { - IGameObject gameObject = _objectTable[0]; if (target == null) { if (_targetManager.Target != null) @@ -440,9 +438,9 @@ internal sealed class CombatController : IDisposable _targetManager.Target = null; } } - else if (gameObject != null && Vector3.Distance(gameObject.Position, target.Position) > 55f) + else if (Vector3.Distance(_clientState.LocalPlayer.Position, target.Position) > 55f) { - _logger.LogInformation("Moving to target, distance: {Distance:N2}", Vector3.Distance(gameObject.Position, target.Position)); + _logger.LogInformation("Moving to target, distance: {Distance:N2}", Vector3.Distance(_clientState.LocalPlayer.Position, target.Position)); MoveToTarget(target); } else @@ -470,52 +468,48 @@ internal sealed class CombatController : IDisposable private void MoveToTarget(IGameObject gameObject) { - IGameObject gameObject2 = _objectTable[0]; - if (gameObject2 == null) + IPlayerCharacter localPlayer = _clientState.LocalPlayer; + if (localPlayer == null) { return; } - float num = gameObject2.HitboxRadius + gameObject.HitboxRadius; - float num2 = Vector3.Distance(gameObject2.Position, gameObject.Position); - ICharacter character = gameObject2 as ICharacter; - bool flag = character != null; - bool flag2; - if (flag) + float num = localPlayer.HitboxRadius + gameObject.HitboxRadius; + float num2 = Vector3.Distance(localPlayer.Position, gameObject.Position); + byte? b = localPlayer.ClassJob.ValueNullable?.Role; + bool flag; + if (b.HasValue) { - byte? b = character.ClassJob.ValueNullable?.Role; - if (b.HasValue) + byte valueOrDefault = b.GetValueOrDefault(); + if ((uint)(valueOrDefault - 3) <= 1u) { - byte valueOrDefault = b.GetValueOrDefault(); - if ((uint)(valueOrDefault - 3) <= 1u) - { - flag2 = true; - goto IL_00a3; - } + flag = true; + goto IL_008e; } - flag2 = false; - goto IL_00a3; } - goto IL_00a7; - IL_00a7: + flag = false; + goto IL_008e; + IL_008e: float num3 = (flag ? 20f : 2.9f); - bool flag3 = num2 - num >= num3; - bool flag4 = IsInLineOfSight(gameObject); - if (flag3 || !flag4) + bool flag2 = num2 - num >= num3; + bool flag3 = IsInLineOfSight(gameObject); + if (flag2 || !flag3) { - bool flag5 = num2 - num > 5f; - if (!flag3 && !flag4) + bool flag4 = num2 - num > 5f; + if (!flag2 && !flag3) { num3 = Math.Min(num3, num2) / 2f; - flag5 = true; + flag4 = true; } - if (!flag5) + if (!flag4) { _logger.LogInformation("Moving to {TargetName} ({BaseId}) to attack", gameObject.Name, gameObject.BaseId); MovementController movementController = _movementController; int num4 = 1; List list = new List(num4); CollectionsMarshal.SetCount(list, num4); - CollectionsMarshal.AsSpan(list)[0] = gameObject.Position; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = gameObject.Position; movementController.NavigateTo(EMovementType.Combat, null, list, fly: false, sprint: false, num3 + num - 0.25f, float.MaxValue); } else @@ -524,20 +518,11 @@ internal sealed class CombatController : IDisposable _movementController.NavigateTo(EMovementType.Combat, null, gameObject.Position, fly: false, sprint: false, num3 + num - 0.25f, float.MaxValue); } } - return; - IL_00a3: - flag = flag2; - goto IL_00a7; } internal unsafe bool IsInLineOfSight(IGameObject target) { - IGameObject gameObject = _objectTable[0]; - if (gameObject == null) - { - return false; - } - Vector3 position = gameObject.Position; + Vector3 position = _clientState.LocalPlayer.Position; position.Y += 2f; Vector3 position2 = target.Position; position2.Y += 2f; diff --git a/Questionable/Questionable.Controller/CommandHandler.cs b/Questionable/Questionable.Controller/CommandHandler.cs index e51b203..5367b7e 100644 --- a/Questionable/Questionable.Controller/CommandHandler.cs +++ b/Questionable/Questionable.Controller/CommandHandler.cs @@ -1,8 +1,20 @@ using System; -using System.Runtime.CompilerServices; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.Command; using Dalamud.Plugin.Services; +using FFXIVClientStructs.FFXIV.Client.Game; +using FFXIVClientStructs.FFXIV.Client.Game.UI; +using Lumina.Excel; +using Lumina.Excel.Sheets; +using Questionable.Data; using Questionable.Functions; +using Questionable.Model; +using Questionable.Model.Common; +using Questionable.Model.Questing; +using Questionable.Model.Questing.Converter; using Questionable.Windows; namespace Questionable.Controller; @@ -21,71 +33,67 @@ internal sealed class CommandHandler : IDisposable private readonly MovementController _movementController; + private readonly QuestRegistry _questRegistry; + private readonly ConfigWindow _configWindow; + private readonly DebugOverlay _debugOverlay; + private readonly OneTimeSetupWindow _oneTimeSetupWindow; private readonly QuestWindow _questWindow; private readonly QuestSelectionWindow _questSelectionWindow; - private readonly QuestSequenceWindow _questSequenceWindow; - private readonly JournalProgressWindow _journalProgressWindow; private readonly PriorityWindow _priorityWindow; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - - private readonly FateSelectionWindow _fateSelectionWindow; - - private readonly SeasonalDutySelectionWindow _seasonalDutySelectionWindow; - private readonly ITargetManager _targetManager; + private readonly QuestFunctions _questFunctions; + + private readonly GameFunctions _gameFunctions; + + private readonly AetheryteFunctions _aetheryteFunctions; + + private readonly IDataManager _dataManager; + private readonly IClientState _clientState; + private readonly IObjectTable _objectTable; + private readonly Configuration _configuration; - private readonly ChangelogWindow _changelogWindow; + private IReadOnlyList _previouslyUnlockedUnlockLinks = Array.Empty(); - public CommandHandler(ICommandManager commandManager, IChatGui chatGui, QuestController questController, MovementController movementController, FateController fateController, SeasonalDutyController seasonalDutyController, QuestRegistry questRegistry, ConfigWindow configWindow, DebugOverlay debugOverlay, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, QuestSelectionWindow questSelectionWindow, QuestSequenceWindow questSequenceWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, FateSelectionWindow fateSelectionWindow, SeasonalDutySelectionWindow seasonalDutySelectionWindow, ITargetManager targetManager, QuestFunctions questFunctions, GameFunctions gameFunctions, AetheryteFunctions aetheryteFunctions, IDataManager dataManager, IClientState clientState, IObjectTable objectTable, Configuration configuration, ChangelogWindow changelogWindow) + public CommandHandler(ICommandManager commandManager, IChatGui chatGui, QuestController questController, MovementController movementController, QuestRegistry questRegistry, ConfigWindow configWindow, DebugOverlay debugOverlay, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, QuestSelectionWindow questSelectionWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, ITargetManager targetManager, QuestFunctions questFunctions, GameFunctions gameFunctions, AetheryteFunctions aetheryteFunctions, IDataManager dataManager, IClientState clientState, IObjectTable objectTable, Configuration configuration) { _commandManager = commandManager; _chatGui = 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; _targetManager = targetManager; + _questFunctions = questFunctions; + _gameFunctions = gameFunctions; + _aetheryteFunctions = aetheryteFunctions; + _dataManager = dataManager; _clientState = clientState; + _objectTable = objectTable; _configuration = configuration; - _changelogWindow = changelogWindow; _clientState.Logout += OnLogout; - ICommandManager commandManager2 = _commandManager; - CommandInfo commandInfo = new CommandInfo(ProcessCommand); - string separator = Environment.NewLine + "\t"; - InlineArray7 buffer = default(InlineArray7); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 0) = "Opens the Questing window"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 1) = "/qst help - displays simplified commands"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 2) = "/qst help-all - displays all available commands"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 3) = "/qst config - opens the configuration window"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 4) = "/qst changelog - opens the changelog window"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 5) = "/qst start - starts doing quests"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 6) = "/qst stop - stops doing quests"; - commandInfo.HelpMessage = string.Join(separator, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, string>(in buffer, 7)); - commandManager2.AddHandler("/qst", commandInfo); + _commandManager.AddHandler("/qst", new CommandInfo(ProcessCommand) + { + HelpMessage = string.Join(Environment.NewLine + "\t", "Opens the Questing window", "/qst help - displays simplified commands", "/qst help-all - displays all available commands", "/qst config - opens the configuration window", "/qst start - starts doing quests", "/qst stop - stops doing quests") + }); } private void ProcessCommand(string command, string arguments) @@ -102,20 +110,17 @@ internal sealed class CommandHandler : IDisposable _chatGui.Print("/qst help - displays simplified commands", "Questionable", 576); _chatGui.Print("/qst help-all - displays all available commands", "Questionable", 576); _chatGui.Print("/qst config - opens the configuration window", "Questionable", 576); - _chatGui.Print("/qst changelog - opens the changelog window", "Questionable", 576); _chatGui.Print("/qst start - starts doing quests", "Questionable", 576); _chatGui.Print("/qst stop - stops doing quests", "Questionable", 576); _chatGui.Print("/qst reload - reload all quest data", "Questionable", 576); - _chatGui.Print("/qst fate / duty - toggles the farming window", "Questionable", 576); break; - case "ha": case "help-all": + case "ha": _chatGui.Print("Available commands:", "Questionable", 576); _chatGui.Print("/qst - toggles the Questing window", "Questionable", 576); _chatGui.Print("/qst help - displays available commands", "Questionable", 576); _chatGui.Print("/qst help-all - displays all available commands", "Questionable", 576); _chatGui.Print("/qst config - opens the configuration window", "Questionable", 576); - _chatGui.Print("/qst changelog - opens the changelog window", "Questionable", 576); _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); @@ -123,17 +128,12 @@ internal sealed class CommandHandler : IDisposable _chatGui.Print("/qst zone - shows all quests starting in the current zone (only includes quests with a known quest path, and currently visible unaccepted quests)", "Questionable", 576); _chatGui.Print("/qst journal - toggles the Journal Progress window", "Questionable", 576); _chatGui.Print("/qst priority - toggles the Priority window", "Questionable", 576); - _chatGui.Print("/qst fate / duty - toggles the farming window", "Questionable", 576); _chatGui.Print("/qst handle-interrupt - makes Questionable handle queued interrupts immediately (useful if you manually start combat)", "Questionable", 576); break; case "c": case "config": _configWindow.ToggleOrUncollapse(); break; - case "cl": - case "changelog": - _changelogWindow.ToggleOrUncollapse(); - break; case "start": _questWindow.IsOpenAndUncollapsed = true; _questController.Start("Start command"); @@ -141,8 +141,6 @@ internal sealed class CommandHandler : IDisposable case "stop": _movementController.Stop(); _questController.Stop("Stop command"); - _fateController.Stop("Stop command"); - _seasonalDutyController.Stop("Stop command"); break; case "reload": _questWindow.Reload(); @@ -162,14 +160,6 @@ internal sealed class CommandHandler : IDisposable case "priority": _priorityWindow.ToggleOrUncollapse(); break; - case "f": - case "fate": - _fateSelectionWindow.ToggleOrUncollapse(); - break; - case "d": - case "duty": - _seasonalDutySelectionWindow.ToggleOrUncollapse(); - break; case "handle-interrupt": _questController.InterruptQueueWithCombat(); break; @@ -183,8 +173,441 @@ internal sealed class CommandHandler : IDisposable } } - private void ProcessDebugCommand(string command, string arguments) + private unsafe void ProcessDebugCommand(string command, string arguments) { + if (OpenSetupIfNeeded(arguments)) + { + return; + } + string[] array = arguments.Split(' '); + string text = array[0]; + if (text == null) + { + return; + } + switch (text.Length) + { + case 4: + switch (text[0]) + { + case 'n': + if (text == "next") + { + SetNextQuest(array.Skip(1).ToArray()); + } + break; + case 't': + { + if (!(text == "taxi")) + { + break; + } + List list5 = new List(); + ExcelSheet excelSheet = _dataManager.GetExcelSheet(); + UIState* ptr = UIState.Instance(); + if (ptr == null) + { + _chatGui.PrintError("UIState is null", "Questionable", 576); + break; + } + for (int num10 = 0; num10 < 192; num10++) + { + uint num11 = (uint)(num10 + 1179648); + try + { + if (excelSheet.HasRow(num11) && ptr->IsChocoboTaxiStandUnlocked(num11)) + { + string value14 = excelSheet.GetRow(num11).PlaceName.ToString(); + if (string.IsNullOrEmpty(value14)) + { + value14 = "Unknown"; + } + list5.Add($"{value14} (ID: {num10}, Row: 0x{num11:X})"); + } + } + catch + { + } + } + _chatGui.Print($"Unlocked taxi stands ({list5.Count}):", "Questionable", 576); + if (list5.Count == 0) + { + _chatGui.Print(" (No unlocked taxi stands found)", "Questionable", 576); + break; + } + { + foreach (string item5 in list5) + { + _chatGui.Print(" - " + item5, "Questionable", 576); + } + break; + } + } + } + break; + case 12: + switch (text[0]) + { + case 'a': + if (text == "abandon-duty") + { + _gameFunctions.AbandonDuty(); + } + break; + case 'u': + { + if (!(text == "unlock-links")) + { + break; + } + IReadOnlyList unlockLinks = _gameFunctions.GetUnlockLinks(); + if (unlockLinks.Count >= 0) + { + _chatGui.Print($"Saved {unlockLinks.Count} unlock links to log.", "Questionable", 576); + List list6 = unlockLinks.Except(_previouslyUnlockedUnlockLinks).ToList(); + if (_previouslyUnlockedUnlockLinks.Count > 0 && list6.Count > 0) + { + _chatGui.Print("New unlock links: " + string.Join(", ", list6), "Questionable", 576); + } + } + else + { + _chatGui.PrintError("Could not query unlock links.", "Questionable", 576); + } + _previouslyUnlockedUnlockLinks = unlockLinks; + break; + } + } + break; + case 9: + switch (text[0]) + { + case 'f': + { + if (!(text == "festivals")) + { + break; + } + List list4 = new List(); + for (byte b8 = 0; b8 < 4; b8++) + { + GameMain.Festival festival = GameMain.Instance()->ActiveFestivals[b8]; + if (festival.Id == 0) + { + list4.Add($"Slot {b8}: None"); + } + else + { + list4.Add($"Slot {b8}: {festival.Id}({festival.Phase})"); + } + } + _chatGui.Print("Festival slots:", "Questionable", 576); + { + foreach (string item6 in list4) + { + _chatGui.Print(" " + item6, "Questionable", 576); + } + break; + } + } + case 'a': + { + if (!(text == "aethernet")) + { + break; + } + ushort territoryType = _clientState.TerritoryType; + Dictionary values = AethernetShardConverter.Values; + AetheryteData aetheryteData = new AetheryteData(_dataManager); + HashSet hashSet2 = new HashSet(); + Dictionary> dictionary = new Dictionary>(); + EAetheryteLocation key; + string value10; + foreach (KeyValuePair item7 in values) + { + item7.Deconstruct(out key, out value10); + EAetheryteLocation key2 = key; + string text2 = value10; + if (aetheryteData.TerritoryIds.TryGetValue(key2, out var value11) && value11 == territoryType) + { + int num8 = text2.IndexOf(']', StringComparison.Ordinal); + if (num8 > 0) + { + string item3 = text2.Substring(1, num8 - 1); + hashSet2.Add(item3); + } + } + } + if (hashSet2.Count == 0) + { + _chatGui.Print("No aethernet shards found in current zone.", "Questionable", 576); + break; + } + foreach (KeyValuePair item8 in values) + { + item8.Deconstruct(out key, out value10); + EAetheryteLocation eAetheryteLocation = key; + string text3 = value10; + int num9 = text3.IndexOf(']', StringComparison.Ordinal); + if (num9 <= 0) + { + continue; + } + string text4 = text3.Substring(1, num9 - 1); + if (hashSet2.Contains(text4)) + { + if (!dictionary.ContainsKey(text4)) + { + dictionary[text4] = new List<(EAetheryteLocation, string, bool)>(); + } + bool item4 = _aetheryteFunctions.IsAetheryteUnlocked(eAetheryteLocation); + dictionary[text4].Add((eAetheryteLocation, text3, item4)); + } + } + { + foreach (KeyValuePair> item9 in dictionary.OrderBy>, string>((KeyValuePair> x) => x.Key)) + { + item9.Deconstruct(out value10, out var value12); + string value13 = value10; + List<(EAetheryteLocation, string, bool)> list = value12; + List<(EAetheryteLocation, string, bool)> list2 = list.Where<(EAetheryteLocation, string, bool)>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => x.Unlocked).ToList(); + List<(EAetheryteLocation, string, bool)> list3 = list.Where<(EAetheryteLocation, string, bool)>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => !x.Unlocked).ToList(); + _chatGui.Print($"Aethernet Shards in {value13} ({list.Count} total):", "Questionable", 576); + _chatGui.Print($" Unlocked: {list2.Count}", "Questionable", 576); + _chatGui.Print($" Missing: {list3.Count}", "Questionable", 576); + _chatGui.Print("", "Questionable", 576); + if (list3.Count > 0) + { + _chatGui.Print("Missing/Unattuned Aethernet Shards:", "Questionable", 576); + foreach (var item10 in list3.OrderBy<(EAetheryteLocation, string, bool), string>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => x.Name)) + { + _chatGui.Print(" " + item10.Item2, "Questionable", 576); + } + _chatGui.Print("", "Questionable", 576); + } + if (list2.Count > 0) + { + _chatGui.Print("Unlocked Aethernet Shards:", "Questionable", 576); + foreach (var item11 in list2.OrderBy<(EAetheryteLocation, string, bool), string>(((EAetheryteLocation Location, string Name, bool Unlocked) x) => x.Name)) + { + _chatGui.Print(" " + item11.Item2, "Questionable", 576); + } + } + if (dictionary.Count > 1) + { + _chatGui.Print("", "Questionable", 576); + } + } + break; + } + } + } + break; + case 5: + if (text == "setup") + { + _oneTimeSetupWindow.IsOpenAndUncollapsed = true; + } + break; + case 2: + if (text == "do") + { + ConfigureDebugOverlay(array.Skip(1).ToArray()); + } + break; + case 3: + if (text == "sim") + { + SetSimulatedQuest(array.Skip(1).ToArray()); + } + break; + case 7: + if (text == "mountid") + { + PrintMountId(); + } + break; + case 11: + { + if (!(text == "quest-kills")) + { + break; + } + (QuestController.QuestProgress, QuestController.ECurrentQuestType)? currentQuestDetails = _questController.CurrentQuestDetails; + if (!currentQuestDetails.HasValue) + { + _chatGui.PrintError("No active quest.", "Questionable", 576); + break; + } + QuestController.QuestProgress item = currentQuestDetails.Value.Item1; + Questionable.Model.Quest quest = item.Quest; + QuestProgressInfo questProgressInfo = null; + if (quest.Id is QuestId elementId) + { + questProgressInfo = _questFunctions.GetQuestProgressInfo(elementId); + } + if (questProgressInfo == null) + { + _chatGui.PrintError("Unable to retrieve quest progress information.", "Questionable", 576); + break; + } + QuestSequence questSequence = quest.FindSequence(item.Sequence); + if (questSequence == null) + { + _chatGui.PrintError($"Sequence {item.Sequence} not found for quest {quest.Id}.", "Questionable", 576); + break; + } + QuestStep questStep = ((item.Step < questSequence.Steps.Count) ? questSequence.Steps[item.Step] : null); + if (questStep == null) + { + _chatGui.PrintError($"Step {item.Step} not found in sequence {item.Sequence}.", "Questionable", 576); + break; + } + _chatGui.Print($"Quest: {quest.Info.Name} ({quest.Id})", "Questionable", 576); + _chatGui.Print($"Sequence: {item.Sequence}, Step: {item.Step}", "Questionable", 576); + _chatGui.Print("", "Questionable", 576); + _chatGui.Print("Quest Variables: " + string.Join(", ", questProgressInfo.Variables.Select((byte v, int i) => $"[{i}]={v}")), "Questionable", 576); + _chatGui.Print("", "Questionable", 576); + ExcelSheet bnpcNameSheet = _dataManager.GetExcelSheet(); + HashSet hashSet = new HashSet(questStep.KillEnemyDataIds); + foreach (ComplexCombatData complexCombatDatum in questStep.ComplexCombatData) + { + hashSet.Add(complexCombatDatum.DataId); + } + if (hashSet.Count > 0) + { + _chatGui.Print($"All Enemy DataIds Found: {hashSet.Count}", "Questionable", 576); + foreach (uint item12 in hashSet.OrderBy((uint x) => x)) + { + (string Name, bool Found) tuple = GetEnemyName(item12); + var (value, _) = tuple; + if (tuple.Found) + { + _chatGui.Print($" - {value} (DataId: {item12})", "Questionable", 576); + } + else + { + _chatGui.Print($" - DataId: {item12}", "Questionable", 576); + } + } + _chatGui.Print("", "Questionable", 576); + } + if (questStep.ComplexCombatData.Count > 0) + { + _chatGui.Print($"Complex Combat Data Entries: {questStep.ComplexCombatData.Count}", "Questionable", 576); + _chatGui.Print("Kill Progress:", "Questionable", 576); + if (questStep.ComplexCombatData.Count == 1 && hashSet.Count > 1) + { + ComplexCombatData complexCombatData = questStep.ComplexCombatData[0]; + int num = -1; + byte? b = null; + for (int num2 = 0; num2 < complexCombatData.CompletionQuestVariablesFlags.Count; num2++) + { + QuestWorkValue questWorkValue = complexCombatData.CompletionQuestVariablesFlags[num2]; + if (questWorkValue != null && questWorkValue.Low.HasValue) + { + num = num2; + b = questWorkValue.Low; + break; + } + } + byte b2 = (byte)(((num >= 0 && num < questProgressInfo.Variables.Count) ? questProgressInfo.Variables[num] : 0) & 0xF); + string value2 = (b.HasValue ? $" {b2}/{b}" : ""); + string value3 = ((b.HasValue && b2 >= b) ? "✓" : "○"); + foreach (uint item13 in hashSet.OrderBy((uint x) => x)) + { + (string Name, bool Found) tuple3 = GetEnemyName(item13); + var (value4, _) = tuple3; + if (tuple3.Found) + { + _chatGui.Print($" {value3} Slay {value4}.{value2} (DataId: {item13})", "Questionable", 576); + } + else + { + _chatGui.Print($" {value3} Slay enemy.{value2} (DataId: {item13})", "Questionable", 576); + } + } + } + else + { + for (int num3 = 0; num3 < questStep.ComplexCombatData.Count; num3++) + { + ComplexCombatData complexCombatData2 = questStep.ComplexCombatData[num3]; + int num4 = -1; + byte? b3 = null; + bool flag = false; + for (int num5 = 0; num5 < complexCombatData2.CompletionQuestVariablesFlags.Count; num5++) + { + QuestWorkValue questWorkValue2 = complexCombatData2.CompletionQuestVariablesFlags[num5]; + if (questWorkValue2 != null) + { + if (questWorkValue2.Low.HasValue) + { + num4 = num5; + b3 = questWorkValue2.Low; + flag = false; + break; + } + if (questWorkValue2.High.HasValue) + { + num4 = num5; + b3 = questWorkValue2.High; + flag = true; + break; + } + } + } + byte b4 = (byte)((num4 >= 0 && num4 < questProgressInfo.Variables.Count) ? questProgressInfo.Variables[num4] : 0); + byte b5 = (flag ? ((byte)(b4 >> 4)) : ((byte)(b4 & 0xF))); + string value5; + if (complexCombatData2.NameId.HasValue) + { + BNpcName? bNpcName = bnpcNameSheet?.GetRowOrDefault(complexCombatData2.NameId.Value); + value5 = ((!bNpcName.HasValue || string.IsNullOrEmpty(bNpcName.Value.Singular.ToString())) ? "enemy" : bNpcName.Value.Singular.ToString()); + } + else + { + (string Name, bool Found) tuple5 = GetEnemyName(complexCombatData2.DataId); + string item2 = tuple5.Name; + value5 = (tuple5.Found ? item2 : "enemy"); + } + string value6 = (b3.HasValue ? $" {b5}/{b3}" : ""); + string value7 = ((b3.HasValue && b5 >= b3) ? "✓" : "○"); + string value8 = (complexCombatData2.NameId.HasValue ? $" (DataId: {complexCombatData2.DataId}, NameId: {complexCombatData2.NameId})" : $" (DataId: {complexCombatData2.DataId})"); + _chatGui.Print($" {value7} Slay {value5}.{value6}{value8}", "Questionable", 576); + } + } + _chatGui.Print("", "Questionable", 576); + } + else if (questStep.KillEnemyDataIds.Count == 0) + { + _chatGui.Print("No kill enemy data for this step.", "Questionable", 576); + _chatGui.Print("", "Questionable", 576); + } + if (questStep.CompletionQuestVariablesFlags.Count <= 0 || !questStep.CompletionQuestVariablesFlags.Any((QuestWorkValue x) => x != null)) + { + break; + } + _chatGui.Print("Completion Flags (Debug):", "Questionable", 576); + for (int num6 = 0; num6 < questStep.CompletionQuestVariablesFlags.Count; num6++) + { + QuestWorkValue questWorkValue3 = questStep.CompletionQuestVariablesFlags[num6]; + if (questWorkValue3 != null) + { + int num7 = ((num6 < questProgressInfo.Variables.Count) ? questProgressInfo.Variables[num6] : 0); + byte b6 = (byte)(num7 >> 4); + byte b7 = (byte)(num7 & 0xF); + string value9 = (((!questWorkValue3.High.HasValue || questWorkValue3.High == b6) && (!questWorkValue3.Low.HasValue || questWorkValue3.Low == b7)) ? " ✓" : " ✗"); + _chatGui.Print($" [{num6}] Expected: H={questWorkValue3.High?.ToString(CultureInfo.InvariantCulture) ?? "any"} L={questWorkValue3.Low?.ToString(CultureInfo.InvariantCulture) ?? "any"} | Actual: H={b6.ToString(CultureInfo.InvariantCulture)} L={b7.ToString(CultureInfo.InvariantCulture)}{value9}", "Questionable", 576); + } + } + break; + } + case 6: + case 8: + case 10: + break; + } } private bool OpenSetupIfNeeded(string arguments) @@ -204,8 +627,110 @@ internal sealed class CommandHandler : IDisposable return false; } + private void ConfigureDebugOverlay(string[] arguments) + { + ElementId elementId; + if (!_debugOverlay.DrawConditions()) + { + _chatGui.PrintError("You don't have the debug overlay enabled.", "Questionable", 576); + } + else if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out elementId) && elementId != null) + { + if (_questRegistry.TryGetQuest(elementId, out Questionable.Model.Quest quest)) + { + _debugOverlay.HighlightedQuest = quest.Id; + _chatGui.Print($"Set highlighted quest to {elementId} ({quest.Info.Name}).", "Questionable", 576); + } + else + { + _chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576); + } + } + else + { + _debugOverlay.HighlightedQuest = null; + _chatGui.Print("Cleared highlighted quest.", "Questionable", 576); + } + } + + private void SetNextQuest(string[] arguments) + { + if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out ElementId elementId) && elementId != null) + { + Questionable.Model.Quest quest; + if (_questFunctions.IsQuestLocked(elementId)) + { + _chatGui.PrintError($"Quest {elementId} is locked.", "Questionable", 576); + } + else if (_questRegistry.TryGetQuest(elementId, out quest)) + { + _questController.SetNextQuest(quest); + _chatGui.Print($"Set next quest to {elementId} ({quest.Info.Name}).", "Questionable", 576); + } + else + { + _chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576); + } + } + else + { + _questController.SetNextQuest(null); + _chatGui.Print("Cleared next quest.", "Questionable", 576); + } + } + + private void SetSimulatedQuest(string[] arguments) + { + if (arguments.Length >= 1 && ElementId.TryFromString(arguments[0], out ElementId elementId) && elementId != null) + { + if (_questRegistry.TryGetQuest(elementId, out Questionable.Model.Quest quest)) + { + byte sequence = 0; + int step = 0; + if (arguments.Length >= 2 && byte.TryParse(arguments[1], out var result)) + { + QuestSequence questSequence = quest.FindSequence(result); + if (questSequence != null) + { + sequence = questSequence.Sequence; + if (arguments.Length >= 3 && int.TryParse(arguments[2], out var result2) && questSequence.FindStep(result2) != null) + { + step = result2; + } + } + } + _questController.SimulateQuest(quest, sequence, step); + _chatGui.Print($"Simulating quest {elementId} ({quest.Info.Name}).", "Questionable", 576); + } + else + { + _chatGui.PrintError($"Unknown quest {elementId}.", "Questionable", 576); + } + } + else + { + _questController.SimulateQuest(null, 0, 0); + _chatGui.Print("Cleared simulated quest.", "Questionable", 576); + } + } + + private void PrintMountId() + { + ushort? mountId = _gameFunctions.GetMountId(); + if (mountId.HasValue) + { + Mount? rowOrDefault = _dataManager.GetExcelSheet().GetRowOrDefault(mountId.Value); + _chatGui.Print($"Mount ID: {mountId}, Name: {rowOrDefault?.Singular}, Obtainable: {((rowOrDefault?.Order == -1) ? "No" : "Yes")}", "Questionable", 576); + } + else + { + _chatGui.Print("You are not mounted.", "Questionable", 576); + } + } + private void OnLogout(int type, int code) { + _previouslyUnlockedUnlockLinks = Array.Empty(); } public void Dispose() diff --git a/Questionable/Questionable.Controller/ContextMenuController.cs b/Questionable/Questionable.Controller/ContextMenuController.cs index fca8f7a..f772ae8 100644 --- a/Questionable/Questionable.Controller/ContextMenuController.cs +++ b/Questionable/Questionable.Controller/ContextMenuController.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Gui.ContextMenu; using Dalamud.Game.Text; using Dalamud.Plugin.Services; @@ -44,11 +43,9 @@ internal sealed class ContextMenuController : IDisposable private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - private readonly ILogger _logger; - public ContextMenuController(IContextMenu contextMenu, QuestController questController, GatheringPointRegistry gatheringPointRegistry, GatheringData gatheringData, QuestRegistry questRegistry, QuestData questData, GameFunctions gameFunctions, QuestFunctions questFunctions, IGameGui gameGui, IChatGui chatGui, IClientState clientState, IObjectTable objectTable, ILogger logger) + public ContextMenuController(IContextMenu contextMenu, QuestController questController, GatheringPointRegistry gatheringPointRegistry, GatheringData gatheringData, QuestRegistry questRegistry, QuestData questData, GameFunctions gameFunctions, QuestFunctions questFunctions, IGameGui gameGui, IChatGui chatGui, IClientState clientState, ILogger logger) { _contextMenu = contextMenu; _questController = questController; @@ -61,7 +58,6 @@ internal sealed class ContextMenuController : IDisposable _gameGui = gameGui; _chatGui = chatGui; _clientState = clientState; - _objectTable = objectTable; _logger = logger; _contextMenu.OnMenuOpened += MenuOpened; } @@ -117,11 +113,7 @@ internal sealed class ContextMenuController : IDisposable private unsafe void AddContextMenuEntry(IMenuOpenedArgs args, uint itemId, uint npcId, EClassJob classJob, string verb) { - if (!(_objectTable[0] is ICharacter { ClassJob: var classJob2 })) - { - return; - } - EClassJob rowId = (EClassJob)classJob2.RowId; + EClassJob rowId = (EClassJob)_clientState.LocalPlayer.ClassJob.RowId; bool flag = classJob != rowId; if (flag) { @@ -200,7 +192,9 @@ internal sealed class ContextMenuController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new GatheredItem + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new GatheredItem { ItemId = itemId, ItemCount = quantity, diff --git a/Questionable/Questionable.Controller/FateController.cs b/Questionable/Questionable.Controller/FateController.cs deleted file mode 100644 index d8c1d42..0000000 --- a/Questionable/Questionable.Controller/FateController.cs +++ /dev/null @@ -1,165 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Runtime.InteropServices; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Controller.Steps; -using Questionable.Controller.Steps.Common; -using Questionable.Controller.Steps.Interactions; -using Questionable.Controller.Steps.Movement; -using Questionable.Controller.Steps.Shared; -using Questionable.Functions; -using Questionable.Model.Questing; - -namespace Questionable.Controller; - -internal sealed class FateController : MiniTaskController -{ - private readonly MovementController _movementController; - - private readonly GameFunctions _gameFunctions; - - private readonly IClientState _clientState; - - private readonly ILogger _logger; - - private FateDefinition? _currentFate; - - private int _completedCycles; - - private int? _cycleLimit; - - private DateTime _startTime; - - public bool IsRunning => _currentFate != null; - - public FateDefinition? CurrentFate => _currentFate; - - public int CompletedCycles => _completedCycles; - - public int? CycleLimit => _cycleLimit; - - public TimeSpan ElapsedTime - { - get - { - if (!IsRunning) - { - return TimeSpan.Zero; - } - return DateTime.UtcNow - _startTime; - } - } - - public FateController(IChatGui chatGui, ICondition condition, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, ILogger logger, MovementController movementController, GameFunctions gameFunctions, IClientState clientState) - : base(chatGui, condition, serviceProvider, interruptHandler, dataManager, logger) - { - _movementController = movementController; - _gameFunctions = gameFunctions; - _clientState = clientState; - _logger = logger; - } - - public void Start(FateDefinition fate, int? cycleLimit = null) - { - _currentFate = fate; - _completedCycles = 0; - _cycleLimit = cycleLimit; - _startTime = DateTime.UtcNow; - _logger.LogInformation("Starting FATE farming: {FateName} (limit: {Limit})", fate.Name, cycleLimit?.ToString(CultureInfo.InvariantCulture) ?? "unlimited"); - EnqueueFateCycle(); - } - - public void Update() - { - if (_currentFate == null || _movementController.IsPathfinding || _movementController.IsPathRunning) - { - return; - } - if (_taskQueue.AllTasksComplete) - { - _completedCycles++; - if (_cycleLimit.HasValue && _completedCycles >= _cycleLimit.Value) - { - _logger.LogInformation("FATE cycle limit reached ({Cycles}/{Limit})", _completedCycles, _cycleLimit.Value); - Stop("Cycle limit reached"); - return; - } - EnqueueFateCycle(); - } - UpdateCurrentTask(); - } - - private void EnqueueFateCycle() - { - if (_currentFate != null) - { - _logger.LogInformation("Enqueuing FATE cycle for {FateName}", _currentFate.Name); - if (_clientState.TerritoryType != _currentFate.TerritoryId) - { - _taskQueue.Enqueue(new AetheryteShortcut.Task(null, null, _currentFate.Aetheryte, _currentFate.TerritoryId)); - } - if (_currentFate.RequiredStatusId.HasValue && _currentFate.TransformNpcDataId.HasValue && _currentFate.TransformNpcPosition.HasValue && !_gameFunctions.HasStatus(_currentFate.RequiredStatusId.Value)) - { - _logger.LogInformation("Player missing required status {StatusId}, enqueuing transform", _currentFate.RequiredStatusId.Value); - _taskQueue.Enqueue(new MoveTask(_currentFate.TerritoryId, _currentFate.TransformNpcPosition.Value, null, 3f)); - _taskQueue.Enqueue(new Mount.UnmountTask()); - TaskQueue taskQueue = _taskQueue; - uint value = _currentFate.TransformNpcDataId.Value; - EStatus? requiredStatusId = _currentFate.RequiredStatusId; - taskQueue.Enqueue(new Interact.Task(value, null, EInteractionType.Interact, SkipMarkerCheck: true, null, null, null, null, requiredStatusId)); - _taskQueue.Enqueue(new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(2L))); - } - _taskQueue.Enqueue(new MoveTask(_currentFate.TerritoryId, _currentFate.Position, null, 5f)); - _taskQueue.Enqueue(new Mount.UnmountTask()); - _taskQueue.Enqueue(new FateFarming.WaitForFateTargets(_currentFate.Targets)); - _taskQueue.Enqueue(new FateFarming.SyncFateLevel()); - _taskQueue.Enqueue(new FateFarming.FateActionLoop(_currentFate.Targets, _currentFate.RequiredStatusId)); - _taskQueue.Enqueue(new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(3L))); - } - } - - public override void Stop(string label) - { - if (_currentFate != null) - { - _logger.LogInformation("Stopping FATE farming: {Label} (completed {Cycles} cycles)", label, _completedCycles); - if (_currentFate.StopAction.HasValue && _currentFate.RequiredStatusId.HasValue && _gameFunctions.HasStatus(_currentFate.RequiredStatusId.Value)) - { - _logger.LogInformation("Using stop action {Action} to remove transformation", _currentFate.StopAction.Value); - _gameFunctions.UseAction(_currentFate.StopAction.Value); - } - _currentFate = 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/FateDefinitionRegistry.cs b/Questionable/Questionable.Controller/FateDefinitionRegistry.cs deleted file mode 100644 index f296b90..0000000 --- a/Questionable/Questionable.Controller/FateDefinitionRegistry.cs +++ /dev/null @@ -1,148 +0,0 @@ -#define RELEASE -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text.Json; -using Dalamud.Plugin; -using Microsoft.Extensions.Logging; -using Questionable.FatePaths; -using Questionable.Model.Questing; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Controller; - -internal sealed class FateDefinitionRegistry -{ - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly ILogger _logger; - - private readonly Dictionary _definitions = new Dictionary(); - - public IReadOnlyDictionary Definitions => _definitions; - - public FateDefinitionRegistry(IDalamudPluginInterface pluginInterface, ILogger logger) - { - _pluginInterface = pluginInterface; - _logger = logger; - Reload(); - } - - public void Reload() - { - _definitions.Clear(); - LoadFromAssembly(); - try - { - LoadFromDirectory(new DirectoryInfo(Path.Combine(_pluginInterface.ConfigDirectory.FullName, "FateDefinitions"))); - } - catch (Exception exception) - { - _logger.LogError(exception, "Failed to load FATE definitions from user directory (some may have been successfully loaded)"); - } - RemoveExpiredDefinitions(); - _logger.LogInformation("Loaded {Count} FATE definitions in total", _definitions.Count); - } - - [Conditional("RELEASE")] - private void LoadFromAssembly() - { - _logger.LogInformation("Loading FATE definitions from assembly"); - IReadOnlyDictionary definitions = AssemblyFateDefinitionLoader.GetDefinitions(); - _logger.LogInformation("AssemblyFateDefinitionLoader returned {Count} definitions", definitions.Count); - foreach (var (key, value) in definitions) - { - _definitions[key] = value; - } - _logger.LogInformation("Loaded {Count} FATE 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, "FatePaths")); - if (directoryInfo2.Exists) - { - try - { - LoadFromDirectory(directoryInfo2); - } - catch (Exception exception) - { - _definitions.Clear(); - _logger.LogError(exception, "Failed to load FATE definitions from project directory"); - } - } - } - - private void LoadFromDirectory(DirectoryInfo directory) - { - if (!directory.Exists) - { - _logger.LogInformation("Not loading FATE 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); - FateDefinition fateDefinition = JsonSerializer.Deserialize(utf8Json); - if (fateDefinition != null) - { - _definitions[num.Value] = fateDefinition; - } - } - catch (Exception exception) - { - _logger.LogError(exception, "Unable to load FATE 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 FATE 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.Controller/GatheringPointRegistry.cs b/Questionable/Questionable.Controller/GatheringPointRegistry.cs index 09344b2..043993a 100644 --- a/Questionable/Questionable.Controller/GatheringPointRegistry.cs +++ b/Questionable/Questionable.Controller/GatheringPointRegistry.cs @@ -61,9 +61,7 @@ internal sealed class GatheringPointRegistry : IDisposable private void LoadGatheringPointsFromAssembly() { _logger.LogInformation("Loading gathering points from assembly"); - IReadOnlyDictionary locations = AssemblyGatheringLocationLoader.GetLocations(); - _logger.LogInformation("AssemblyGatheringLocationLoader returned {Count} locations", locations.Count); - foreach (var (value, value2) in locations) + foreach (var (value, value2) in AssemblyGatheringLocationLoader.GetLocations()) { _gatheringPoints[new GatheringPointId(value)] = value2; } @@ -74,31 +72,27 @@ internal sealed class GatheringPointRegistry : IDisposable private void LoadGatheringPointsFromProjectDirectory() { DirectoryInfo directoryInfo = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent; - _logger.LogInformation("Looking for gathering paths in solution directory: {SolutionDirectory}", directoryInfo?.FullName ?? "(null)"); - if (directoryInfo != null) + if (directoryInfo == null) { - DirectoryInfo directoryInfo2 = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "GatheringPaths")); - _logger.LogInformation("Gathering paths project directory: {PathProjectDirectory}, Exists: {Exists}", directoryInfo2.FullName, directoryInfo2.Exists); - if (!directoryInfo2.Exists) + return; + } + DirectoryInfo directoryInfo2 = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "GatheringPaths")); + if (!directoryInfo2.Exists) + { + return; + } + try + { + foreach (string value in ExpansionData.ExpansionFolders.Values) { - return; - } - try - { - foreach (string value in ExpansionData.ExpansionFolders.Values) - { - LoadFromDirectory(new DirectoryInfo(Path.Combine(directoryInfo2.FullName, value))); - } - return; - } - catch (Exception exception) - { - _gatheringPoints.Clear(); - _logger.LogError(exception, "Failed to load gathering points from project directory"); - return; + LoadFromDirectory(new DirectoryInfo(Path.Combine(directoryInfo2.FullName, value))); } } - _logger.LogWarning("Could not determine solution directory from assembly location: {AssemblyLocation}", _pluginInterface.AssemblyLocation.FullName); + catch (Exception exception) + { + _gatheringPoints.Clear(); + _logger.LogError(exception, "Failed to load gathering points from project directory"); + } } private void LoadGatheringPointFromStream(string fileName, Stream stream) diff --git a/Questionable/Questionable.Controller/InterruptHandler.cs b/Questionable/Questionable.Controller/InterruptHandler.cs index f336ec8..304d4a6 100644 --- a/Questionable/Questionable.Controller/InterruptHandler.cs +++ b/Questionable/Questionable.Controller/InterruptHandler.cs @@ -1,6 +1,5 @@ using System; using System.Runtime.InteropServices; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Hooking; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; @@ -15,6 +14,11 @@ internal sealed class InterruptHandler : IDisposable { private unsafe delegate void ProcessActionEffect(uint sourceId, Character* sourceCharacter, Vector3* pos, EffectHeader* effectHeader, EffectEntry* effectArray, ulong* effectTail); + private static class Signatures + { + internal const string ActionEffect = "40 ?? 56 57 41 ?? 41 ?? 41 ?? 48 ?? ?? ?? ?? ?? ?? ?? 48"; + } + [StructLayout(LayoutKind.Explicit)] private struct EffectEntry { @@ -131,21 +135,18 @@ internal sealed class InterruptHandler : IDisposable private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - private readonly TerritoryData _territoryData; private readonly ILogger _logger; public event EventHandler? Interrupted; - public unsafe InterruptHandler(IGameInteropProvider gameInteropProvider, IClientState clientState, IObjectTable objectTable, TerritoryData territoryData, ILogger logger) + public unsafe InterruptHandler(IGameInteropProvider gameInteropProvider, IClientState clientState, TerritoryData territoryData, ILogger logger) { _clientState = clientState; - _objectTable = objectTable; _territoryData = territoryData; _logger = logger; - _processActionEffectHook = gameInteropProvider.HookFromAddress(ActionEffectHandler.Addresses.Receive.Value, HandleProcessActionEffect); + _processActionEffectHook = gameInteropProvider.HookFromSignature("40 ?? 56 57 41 ?? 41 ?? 41 ?? 48 ?? ?? ?? ?? ?? ?? ?? 48", HandleProcessActionEffect); _processActionEffectHook.Enable(); } @@ -157,12 +158,11 @@ internal sealed class InterruptHandler : IDisposable { return; } - IGameObject gameObject = _objectTable[0]; for (int i = 0; i < effectHeader->TargetCount; i++) { int num = (int)(effectTail[i] & 0xFFFFFFFFu); EffectEntry* ptr = effectArray + 8 * i; - bool flag = (uint)num == gameObject?.GameObjectId; + bool flag = (uint)num == _clientState.LocalPlayer?.GameObjectId; if (flag) { EActionEffectType type = ptr->Type; diff --git a/Questionable/Questionable.Controller/MiniTaskController.cs b/Questionable/Questionable.Controller/MiniTaskController.cs index 3897001..7c428a4 100644 --- a/Questionable/Questionable.Controller/MiniTaskController.cs +++ b/Questionable/Questionable.Controller/MiniTaskController.cs @@ -179,7 +179,9 @@ internal abstract class MiniTaskController : IDisposable int num = 1; List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new WaitAtEnd.WaitDelay(); + Span span = CollectionsMarshal.AsSpan(list2); + int index = 0; + span[index] = new WaitAtEnd.WaitDelay(); taskQueue.InterruptWith(list2); } LogTasksAfterInterruption(); @@ -194,7 +196,9 @@ internal abstract class MiniTaskController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new WaitAtEnd.WaitDelay(); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new WaitAtEnd.WaitDelay(); taskQueue.InterruptWith(list); LogTasksAfterInterruption(); } @@ -211,10 +215,6 @@ internal abstract class MiniTaskController : IDisposable public void OnErrorToast(ref SeString message, ref bool isHandled) { - if (_taskQueue.AllTasksComplete) - { - return; - } if (_taskQueue.CurrentTaskExecutor is IToastAware toastAware && toastAware.OnErrorToast(message)) { isHandled = true; diff --git a/Questionable/Questionable.Controller/MovementController.cs b/Questionable/Questionable.Controller/MovementController.cs index 2296b8e..7cb1cc6 100644 --- a/Questionable/Questionable.Controller/MovementController.cs +++ b/Questionable/Questionable.Controller/MovementController.cs @@ -13,7 +13,6 @@ using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Ipc.Exceptions; using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Enums; using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.Game.Control; using Microsoft.Extensions.Logging; @@ -74,8 +73,6 @@ internal sealed class MovementController : IDisposable private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - private readonly GameFunctions _gameFunctions; private readonly ChatFunctions _chatFunctions; @@ -86,24 +83,12 @@ internal sealed class MovementController : IDisposable private readonly AetheryteData _aetheryteData; - private readonly Configuration _configuration; - private readonly ILogger _logger; private CancellationTokenSource? _cancellationTokenSource; private Task>? _pathfindTask; - private long _pathfindStartTime; - - private Vector3? _lastKnownPosition; - - private long _lastPositionUpdateTime; - - private Vector3? _expectedPosition; - - private bool _isTrackingPlayerInput; - public bool IsNavmeshReady { get @@ -153,87 +138,32 @@ internal sealed class MovementController : IDisposable public int BuiltNavmeshPercent => _navmeshIpc.GetBuildProgress(); - public bool IsNavmeshPathfindInProgress => _navmeshIpc.IsPathfindInProgress; - - public int NumQueuedPathfindRequests => _navmeshIpc.NumQueuedPathfindRequests; - - public event EventHandler? PlayerInputDetected; - - public MovementController(NavmeshIpc navmeshIpc, IClientState clientState, IObjectTable objectTable, GameFunctions gameFunctions, ChatFunctions chatFunctions, ICondition condition, MovementOverrideController movementOverrideController, AetheryteData aetheryteData, Configuration configuration, ILogger logger) + public MovementController(NavmeshIpc navmeshIpc, IClientState clientState, GameFunctions gameFunctions, ChatFunctions chatFunctions, ICondition condition, MovementOverrideController movementOverrideController, AetheryteData aetheryteData, ILogger logger) { _navmeshIpc = navmeshIpc; _clientState = clientState; - _objectTable = objectTable; _gameFunctions = gameFunctions; _chatFunctions = chatFunctions; _condition = condition; _movementOverrideController = movementOverrideController; _aetheryteData = aetheryteData; - _configuration = configuration; _logger = logger; } public unsafe void Update() { - if (IsPathRunning && _isTrackingPlayerInput && DetectPlayerInputInterference()) - { - _logger.LogInformation("Player input detected during automatic movement, raising event to stop automation"); - this.PlayerInputDetected?.Invoke(this, EventArgs.Empty); - Stop(); - return; - } if (_pathfindTask != null && Destination != null) { - if (!_pathfindTask.IsCompleted && Environment.TickCount64 - _pathfindStartTime > 30000 && _navmeshIpc.NumQueuedPathfindRequests > 5) - { - _logger.LogWarning("Pathfinding appears stuck: {QueuedRequests} queued requests, task running for {Duration}ms", _navmeshIpc.NumQueuedPathfindRequests, Environment.TickCount64 - _pathfindStartTime); - } if (_pathfindTask.IsCompletedSuccessfully) { _logger.LogInformation("Pathfinding complete, got {Count} points", _pathfindTask.Result.Count); if (_pathfindTask.Result.Count == 0) { - if (Destination.NavmeshCalculations == 1) - { - _logger.LogWarning("Initial pathfinding returned 0 points, attempting to find accessible destination"); - Vector3? vector = TryFindAccessibleDestination(Destination.Position, Destination.IsFlying, Destination.Land); - if (vector.HasValue && Vector3.Distance(Destination.Position, vector.Value) < 30f) - { - _logger.LogInformation("Retrying pathfinding with adjusted destination: {AdjustedDestination}", vector.Value.ToString("G", CultureInfo.InvariantCulture)); - Restart(Destination with - { - Position = vector.Value - }); - return; - } - if (Destination.IsFlying && Destination.Land) - { - _logger.LogWarning("Adjusted destination failed, trying tolerance-based pathfinding"); - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready for tolerance-based pathfinding"); - return; - } - _cancellationTokenSource = new CancellationTokenSource(); - _cancellationTokenSource.CancelAfter(TimeSpan.FromSeconds(30L)); - Vector3 vector2 = _objectTable[0]?.Position ?? Vector3.Zero; - if (Destination.IsFlying) - { - Vector3 vector3 = vector2; - vector3.Y = vector2.Y + 0.2f; - vector2 = vector3; - } - _pathfindStartTime = Environment.TickCount64; - _pathfindTask = _navmeshIpc.PathfindWithTolerance(vector2, Destination.Position, Destination.IsFlying, 10f, _cancellationTokenSource.Token); - Destination.NavmeshCalculations++; - return; - } - } ResetPathfinding(); throw new PathfindingFailedException(); } List list = _pathfindTask.Result.Skip(1).ToList(); - Vector3 p = _objectTable[0]?.Position ?? list[0]; + Vector3 p = _clientState.LocalPlayer?.Position ?? list[0]; if (Destination.IsFlying && !_condition[ConditionFlag.InFlight] && _condition[ConditionFlag.Mounted] && (IsOnFlightPath(p) || list.Any(IsOnFlightPath))) { ActionManager.Instance()->UseAction(ActionType.GeneralAction, 2u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null); @@ -244,17 +174,11 @@ internal sealed class MovementController : IDisposable (list, _) = tuple; if (tuple.Item2 && Destination.ShouldRecalculateNavmesh()) { - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready for recalculation"); - return; - } Destination.NavmeshCalculations++; Destination.PartialRoute.AddRange(list); _logger.LogInformation("Running navmesh recalculation with fudged point ({From} to {To})", list.Last(), Destination.Position); _cancellationTokenSource = new CancellationTokenSource(); _cancellationTokenSource.CancelAfter(TimeSpan.FromSeconds(30L)); - _pathfindStartTime = Environment.TickCount64; _pathfindTask = _navmeshIpc.Pathfind(list.Last(), Destination.Position, Destination.IsFlying, _cancellationTokenSource.Token); return; } @@ -263,7 +187,6 @@ internal sealed class MovementController : IDisposable _logger.LogInformation("Navigating via route: [{Route}]", string.Join(" → ", _pathfindTask.Result.Select((Vector3 x) => x.ToString("G", CultureInfo.InvariantCulture)))); _navmeshIpc.MoveTo(list, Destination.IsFlying); MovementStartedAt = DateTime.Now; - StartPlayerInputTracking(); ResetPathfinding(); } else if (_pathfindTask.IsCompleted) @@ -297,7 +220,7 @@ internal sealed class MovementController : IDisposable Restart(Destination); return; } - Vector3 vector4 = _objectTable[0]?.Position ?? Vector3.Zero; + Vector3 vector = _clientState.LocalPlayer?.Position ?? Vector3.Zero; if (Destination.MovementType == EMovementType.Landing) { if (!_condition[ConditionFlag.InFlight]) @@ -305,9 +228,9 @@ internal sealed class MovementController : IDisposable Stop(); } } - else if ((vector4 - Destination.Position).Length() < Destination.StopDistance) + else if ((vector - Destination.Position).Length() < Destination.StopDistance) { - if (vector4.Y - Destination.Position.Y <= Destination.VerticalStopDistance) + if (vector.Y - Destination.Position.Y <= Destination.VerticalStopDistance) { Stop(); } @@ -316,7 +239,7 @@ internal sealed class MovementController : IDisposable IGameObject gameObject = _gameFunctions.FindObjectByDataId(Destination.DataId.Value); if ((gameObject is ICharacter || gameObject is IEventObj) ? true : false) { - if (Math.Abs(vector4.Y - gameObject.Position.Y) < 1.95f) + if (Math.Abs(vector.Y - gameObject.Position.Y) < 1.95f) { Stop(); } @@ -327,7 +250,7 @@ internal sealed class MovementController : IDisposable { Stop(); } - else if (Math.Abs(vector4.Y - gameObject.Position.Y) < 1.95f) + else if (Math.Abs(vector.Y - gameObject.Position.Y) < 1.95f) { Stop(); } @@ -345,80 +268,14 @@ internal sealed class MovementController : IDisposable else { List waypoints = _navmeshIpc.GetWaypoints(); - Vector3? vector5 = _objectTable[0]?.Position; - if (vector5.HasValue && (!Destination.ShouldRecalculateNavmesh() || !RecalculateNavmesh(waypoints, vector5.Value)) && !Destination.IsFlying && !_condition[ConditionFlag.Mounted] && !_gameFunctions.HasStatusPreventingSprint() && Destination.CanSprint) + Vector3? vector2 = _clientState.LocalPlayer?.Position; + if (vector2.HasValue && (!Destination.ShouldRecalculateNavmesh() || !RecalculateNavmesh(waypoints, vector2.Value)) && !Destination.IsFlying && !_condition[ConditionFlag.Mounted] && !_gameFunctions.HasStatusPreventingSprint() && Destination.CanSprint) { - TriggerSprintIfNeeded(waypoints, vector5.Value); + TriggerSprintIfNeeded(waypoints, vector2.Value); } } } - private void StartPlayerInputTracking() - { - IGameObject gameObject = _objectTable[0]; - if (gameObject != null) - { - _lastKnownPosition = gameObject.Position; - _expectedPosition = gameObject.Position; - _lastPositionUpdateTime = Environment.TickCount64; - _isTrackingPlayerInput = true; - } - } - - private bool DetectPlayerInputInterference() - { - if (!_configuration.General.StopOnPlayerInput) - { - return false; - } - if (!_isTrackingPlayerInput || !_lastKnownPosition.HasValue) - { - return false; - } - IGameObject gameObject = _objectTable[0]; - if (gameObject == null) - { - return false; - } - Vector3 position = gameObject.Position; - long tickCount = Environment.TickCount64; - if (tickCount - _lastPositionUpdateTime < 100) - { - return false; - } - List waypoints = _navmeshIpc.GetWaypoints(); - if (waypoints.Count > 0) - { - _expectedPosition = waypoints[0]; - } - if (_expectedPosition.HasValue) - { - Vector3 vector = Vector3.Normalize(_expectedPosition.Value - _lastKnownPosition.Value); - Vector3 value = position - _lastKnownPosition.Value; - if (value.Length() > 0.1f) - { - Vector3 vector2 = Vector3.Normalize(value); - float num = Vector3.Dot(vector, vector2); - if (num < 0.7f) - { - _logger.LogDebug("Player movement detected: alignment={Alignment:F2}, actual={Actual}, expected={Expected}", num, value.ToString("G", CultureInfo.InvariantCulture), vector.ToString("G", CultureInfo.InvariantCulture)); - return true; - } - } - } - _lastKnownPosition = position; - _lastPositionUpdateTime = tickCount; - return false; - } - - private void StopPlayerInputTracking() - { - _isTrackingPlayerInput = false; - _lastKnownPosition = null; - _expectedPosition = null; - _lastPositionUpdateTime = 0L; - } - private void Restart(DestinationData destination) { Stop(); @@ -431,7 +288,9 @@ internal sealed class MovementController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = destination.Position; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = destination.Position; NavigateTo(EMovementType.None, dataId, list, fly: false, sprint: false, destination.StopDistance, destination.VerticalStopDistance); } @@ -460,11 +319,6 @@ internal sealed class MovementController : IDisposable public void NavigateTo(EMovementType type, uint? dataId, Vector3 to, bool fly, bool sprint, float? stopDistance = null, float? verticalStopDistance = null, bool land = false) { - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready, cannot start navigation to {Position}", to.ToString("G", CultureInfo.InvariantCulture)); - return; - } fly |= _condition[ConditionFlag.Diving]; if (fly && land) { @@ -477,7 +331,7 @@ internal sealed class MovementController : IDisposable Destination.NavmeshCalculations++; _cancellationTokenSource = new CancellationTokenSource(); _cancellationTokenSource.CancelAfter(TimeSpan.FromSeconds(30L)); - Vector3 vector2 = _objectTable[0]?.Position ?? Vector3.Zero; + Vector3 vector2 = _clientState.LocalPlayer.Position; if (fly && _aetheryteData.CalculateDistance(vector2, _clientState.TerritoryType, EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead) < 11f) { Vector3 vector = vector2; @@ -491,25 +345,11 @@ internal sealed class MovementController : IDisposable vector.Y = vector2.Y + 0.2f; vector2 = vector; } - _pathfindStartTime = Environment.TickCount64; - if (fly && land) - { - _logger.LogInformation("Using tolerance-based pathfinding for landing (tolerance: 5.0)"); - _pathfindTask = _navmeshIpc.PathfindWithTolerance(vector2, to, fly, 5f, _cancellationTokenSource.Token); - } - else - { - _pathfindTask = _navmeshIpc.Pathfind(vector2, to, fly, _cancellationTokenSource.Token); - } + _pathfindTask = _navmeshIpc.Pathfind(vector2, to, fly, _cancellationTokenSource.Token); } public void NavigateTo(EMovementType type, uint? dataId, List to, bool fly, bool sprint, float? stopDistance, float? verticalStopDistance = null, bool land = false) { - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready, cannot start navigation to {Position}", to.Last().ToString("G", CultureInfo.InvariantCulture)); - return; - } fly |= _condition[ConditionFlag.Diving]; if (fly && land && to.Count > 0) { @@ -522,7 +362,6 @@ internal sealed class MovementController : IDisposable _logger.LogInformation("Moving to {Destination}", Destination); _navmeshIpc.MoveTo(to, fly); MovementStartedAt = DateTime.Now; - StartPlayerInputTracking(); } public void ResetPathfinding() @@ -541,51 +380,6 @@ internal sealed class MovementController : IDisposable _pathfindTask = null; } - private Vector3? TryFindAccessibleDestination(Vector3 target, bool flying, bool landing) - { - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready, cannot find accessible destination"); - return null; - } - float[] array = ((!(flying && landing)) ? ((!flying) ? new float[3] { 1f, 3f, 5f } : new float[3] { 2f, 5f, 10f }) : new float[3] { 5f, 10f, 15f }); - float[] array2 = ((!flying) ? new float[3] { 1f, 2f, 3f } : new float[3] { 3f, 5f, 10f }); - for (int i = 0; i < array.Length; i++) - { - float num = array[i]; - float num2 = array2[Math.Min(i, array2.Length - 1)]; - Vector3? vector = _navmeshIpc.FindNearestMeshPoint(target, num, num2); - if (vector.HasValue) - { - float num3 = Vector3.Distance(target, vector.Value); - if (num3 <= num * 1.5f) - { - if (i > 0) - { - _logger.LogInformation("Adjusted destination from {Original} to {Adjusted} (distance: {Distance:F2}, extent: {ExtentXZ}/{ExtentY})", target.ToString("G", CultureInfo.InvariantCulture), vector.Value.ToString("G", CultureInfo.InvariantCulture), num3, num, num2); - } - return vector.Value; - } - } - Vector3? pointOnFloor = _navmeshIpc.GetPointOnFloor(target, flying, num); - if (!pointOnFloor.HasValue) - { - continue; - } - float num4 = Vector3.Distance(target, pointOnFloor.Value); - if (num4 <= num * 1.5f) - { - if (i > 0) - { - _logger.LogInformation("Adjusted destination via floor point from {Original} to {Adjusted} (distance: {Distance:F2}, extent: {ExtentXZ})", target.ToString("G", CultureInfo.InvariantCulture), pointOnFloor.Value.ToString("G", CultureInfo.InvariantCulture), num4, num); - } - return pointOnFloor.Value; - } - } - _logger.LogWarning("Could not find accessible mesh point near {Target} within max extent {MaxExtent}", target.ToString("G", CultureInfo.InvariantCulture), array[^1]); - return null; - } - private unsafe bool RecalculateNavmesh(List navPoints, Vector3 start) { if (Destination == null) @@ -616,52 +410,17 @@ internal sealed class MovementController : IDisposable if (Math.Abs((double)num - Destination.LastWaypoint.Distance2DAtLastUpdate) < 0.5) { int navmeshCalculations = Destination.NavmeshCalculations; - switch (navmeshCalculations) + if (navmeshCalculations % 6 == 1) { - case 1: - case 7: - _logger.LogWarning("Jumping to try and resolve navmesh problem (n = {Calculations}) at {Position}", navmeshCalculations, Destination.Position.ToString("G", CultureInfo.InvariantCulture)); + _logger.LogWarning("Jumping to try and resolve navmesh problem (n = {Calculations})", navmeshCalculations); ActionManager.Instance()->UseAction(ActionType.GeneralAction, 2u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null); Destination.NavmeshCalculations++; Destination.LastWaypoint.UpdatedAt = Environment.TickCount64; - break; - case 5: - _logger.LogWarning("Reloading navmesh (n = {Calculations}) at {Position}", navmeshCalculations, Destination.Position.ToString("G", CultureInfo.InvariantCulture)); - _navmeshIpc.Reload(); - Destination.LastWaypoint.UpdatedAt = Environment.TickCount64; - break; - case 6: - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready after reload (n = {Calculations})", navmeshCalculations); - return false; - } - _logger.LogInformation("Navmesh ready after reload, restarting navigation (n = {Calculations})", navmeshCalculations); + } + else + { + _logger.LogWarning("Recalculating navmesh (n = {Calculations})", navmeshCalculations); Restart(Destination); - break; - case 8: - _logger.LogWarning("Rebuilding navmesh (n = {Calculations}) at {Position}", navmeshCalculations, Destination.Position.ToString("G", CultureInfo.InvariantCulture)); - _navmeshIpc.Rebuild(); - Destination.LastWaypoint.UpdatedAt = Environment.TickCount64; - break; - case 9: - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready after rebuild (n = {Calculations})", navmeshCalculations); - return false; - } - _logger.LogInformation("Navmesh ready after rebuild, restarting navigation (n = {Calculations})", navmeshCalculations); - Restart(Destination); - break; - default: - if (!IsNavmeshReady) - { - _logger.LogWarning("Navmesh not ready for recalculation (n = {Calculations})", navmeshCalculations); - return false; - } - _logger.LogWarning("Recalculating navmesh (n = {Calculations}) at {Position}", navmeshCalculations, Destination.Position.ToString("G", CultureInfo.InvariantCulture)); - Restart(Destination); - break; } Destination.NavmeshCalculations = navmeshCalculations + 1; return true; @@ -688,14 +447,14 @@ internal sealed class MovementController : IDisposable bool flag2; switch (GameMain.Instance()->CurrentTerritoryIntendedUseId) { - case TerritoryIntendedUse.Town: - case TerritoryIntendedUse.BeforeTrialDung: - case TerritoryIntendedUse.HousingOutdoor: - case TerritoryIntendedUse.HousingIndoor: - case TerritoryIntendedUse.SoloOverworldInstances: - case TerritoryIntendedUse.ChocoboSquareOld: - case TerritoryIntendedUse.GoldSaucer: - case TerritoryIntendedUse.SoloDuty: + case 0: + case 7: + case 13: + case 14: + case 15: + case 19: + case 23: + case 29: flag2 = true; break; default: @@ -717,7 +476,6 @@ internal sealed class MovementController : IDisposable public void Stop() { - StopPlayerInputTracking(); _navmeshIpc.Stop(); ResetPathfinding(); Destination = null; diff --git a/Questionable/Questionable.Controller/QuestController.cs b/Questionable/Questionable.Controller/QuestController.cs index ecbe977..2962d70 100644 --- a/Questionable/Questionable.Controller/QuestController.cs +++ b/Questionable/Questionable.Controller/QuestController.cs @@ -6,10 +6,8 @@ using System.Numerics; using Dalamud.Game.ClientState.Conditions; using Dalamud.Game.ClientState.Keys; using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Gui.Toast; using Dalamud.Game.Text.SeStringHandling; -using Dalamud.Plugin; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; using Microsoft.Extensions.Logging; @@ -17,7 +15,6 @@ using Questionable.Controller.Steps; using Questionable.Controller.Steps.Interactions; using Questionable.Controller.Steps.Shared; using Questionable.Data; -using Questionable.External; using Questionable.Functions; using Questionable.Model; using Questionable.Model.Questing; @@ -87,8 +84,6 @@ internal sealed class QuestController : MiniTaskController private readonly IClientState _clientState; - private readonly IObjectTable _objectTable; - private readonly GameFunctions _gameFunctions; private readonly QuestFunctions _questFunctions; @@ -99,14 +94,8 @@ internal sealed class QuestController : MiniTaskController private readonly GatheringController _gatheringController; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - private readonly QuestRegistry _questRegistry; - private readonly JournalData _journalData; - private readonly IKeyState _keyState; private readonly IChatGui _chatGui; @@ -121,10 +110,6 @@ internal sealed class QuestController : MiniTaskController private readonly SinglePlayerDutyConfigComponent _singlePlayerDutyConfigComponent; - private readonly AutoDutyIpc _autoDutyIpc; - - private readonly IDalamudPluginInterface _pluginInterface; - private readonly ILogger _logger; private readonly object _progressLock = new object(); @@ -157,16 +142,6 @@ internal sealed class QuestController : MiniTaskController private DateTime _lastAutoRefresh = DateTime.MinValue; - private bool _lastEscDown; - - private int _escPressCount; - - private DateTime _lastEscPressTime = DateTime.MinValue; - - private static readonly TimeSpan EscDoublePressWindow = TimeSpan.FromSeconds(1L); - - private HashSet _stopConditionsMetAtStart = new HashSet(); - private const char ClipboardSeparator = ';'; public EAutomationType AutomationType @@ -248,20 +223,16 @@ internal sealed class QuestController : MiniTaskController public event AutomationTypeChangedEventHandler? AutomationTypeChanged; - public QuestController(IClientState clientState, IObjectTable objectTable, GameFunctions gameFunctions, QuestFunctions questFunctions, MovementController movementController, CombatController combatController, GatheringController gatheringController, FateController fateController, SeasonalDutyController seasonalDutyController, ILogger logger, QuestRegistry questRegistry, JournalData journalData, IKeyState keyState, IChatGui chatGui, ICondition condition, IToastGui toastGui, Configuration configuration, TaskCreator taskCreator, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, AutoDutyIpc autoDutyIpc, IDalamudPluginInterface pluginInterface) + public QuestController(IClientState clientState, GameFunctions gameFunctions, QuestFunctions questFunctions, MovementController movementController, CombatController combatController, GatheringController gatheringController, ILogger logger, QuestRegistry questRegistry, IKeyState keyState, IChatGui chatGui, ICondition condition, IToastGui toastGui, Configuration configuration, TaskCreator taskCreator, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent) : base(chatGui, condition, serviceProvider, interruptHandler, dataManager, logger) { _clientState = clientState; - _objectTable = objectTable; _gameFunctions = gameFunctions; _questFunctions = questFunctions; _movementController = movementController; _combatController = combatController; _gatheringController = gatheringController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _questRegistry = questRegistry; - _journalData = journalData; _keyState = keyState; _chatGui = chatGui; _condition = condition; @@ -269,21 +240,18 @@ internal sealed class QuestController : MiniTaskController _configuration = configuration; _taskCreator = taskCreator; _singlePlayerDutyConfigComponent = singlePlayerDutyConfigComponent; - _autoDutyIpc = autoDutyIpc; - _pluginInterface = pluginInterface; _logger = logger; _toastGui.ErrorToast += base.OnErrorToast; _toastGui.Toast += OnNormalToast; _condition.ConditionChange += OnConditionChange; _clientState.Logout += OnLogout; - _movementController.PlayerInputDetected += OnPlayerInputDetected; } public void Reload() { lock (_progressLock) { - _logger.LogInformation("Reload, resetting current quest progress"); + _logger.LogInformation("Reload, resetting curent quest progress"); ResetInternalState(); ResetAutoRefreshState(); _questRegistry.Reload(); @@ -332,101 +300,40 @@ internal sealed class QuestController : MiniTaskController { StopAllDueToConditionFailed("Logged out"); } - bool flag; if (_condition[ConditionFlag.Unconscious]) { - if (!_condition[ConditionFlag.Unconscious] || !_condition[ConditionFlag.SufferingStatusAffliction63] || _clientState.TerritoryType != 1052) + if ((!_condition[ConditionFlag.Unconscious] || !_condition[ConditionFlag.SufferingStatusAffliction63] || _clientState.TerritoryType != 1052) && !(_taskQueue.CurrentTaskExecutor is Duty.WaitAutoDutyExecutor) && !_taskQueue.AllTasksComplete) { - ITaskExecutor currentTaskExecutor = _taskQueue.CurrentTaskExecutor; - flag = ((currentTaskExecutor is Duty.WaitAutoDutyExecutor || currentTaskExecutor is Duty.WaitLevelingModeExecutor) ? true : false); - if (!flag && !_taskQueue.AllTasksComplete) - { - StopAllDueToConditionFailed("HP = 0"); - } + StopAllDueToConditionFailed("HP = 0"); } } - else if (_configuration.General.UseEscToCancelQuesting) + else if (_configuration.General.UseEscToCancelQuesting && _keyState[VirtualKey.ESCAPE] && !_taskQueue.AllTasksComplete) { - if (_keyState[VirtualKey.ESCAPE] && !_lastEscDown) - { - DateTime now = DateTime.Now; - if (now - _lastEscPressTime <= EscDoublePressWindow) - { - _escPressCount++; - } - else - { - _escPressCount = 1; - } - _lastEscPressTime = now; - if (_escPressCount >= 2) - { - if (!_taskQueue.AllTasksComplete) - { - StopAllDueToConditionFailed("ESC pressed twice"); - } - _escPressCount = 0; - } - } - if (!_keyState[VirtualKey.ESCAPE] && DateTime.Now - _lastEscPressTime > EscDoublePressWindow) - { - _escPressCount = 0; - } - _lastEscDown = _keyState[VirtualKey.ESCAPE]; + StopAllDueToConditionFailed("ESC pressed"); } - else + if (_configuration.Stop.Enabled && _configuration.Stop.LevelToStopAfter && _clientState.LocalPlayer != null) { - _lastEscDown = _keyState[VirtualKey.ESCAPE]; - _escPressCount = 0; - _lastEscPressTime = DateTime.MinValue; + int level = _clientState.LocalPlayer.Level; + if (level >= _configuration.Stop.TargetLevel && IsRunning) + { + _logger.LogInformation("Reached level stop condition (level: {CurrentLevel}, target: {TargetLevel})", level, _configuration.Stop.TargetLevel); + _chatGui.Print($"Reached or exceeded target level {_configuration.Stop.TargetLevel}.", "Questionable", 576); + Stop($"Level stop condition reached [{level}]"); + return; + } } - if (_configuration.Stop.Enabled && _startedQuest != null) + if (_configuration.Stop.Enabled && _configuration.Stop.SequenceToStopAfter && CurrentQuest != null) { - string text = _startedQuest.Quest.Id.ToString(); - if (_configuration.Stop.LevelStopMode != Configuration.EStopConditionMode.Off && IsRunning && _objectTable[0] is IPlayerCharacter playerCharacter && playerCharacter.Level >= _configuration.Stop.TargetLevel) + int sequence = CurrentQuest.Sequence; + if (sequence >= _configuration.Stop.TargetSequence && IsRunning) { - string item = $"level:{_configuration.Stop.TargetLevel}"; - if (_configuration.Stop.LevelStopMode != Configuration.EStopConditionMode.Pause || !_stopConditionsMetAtStart.Contains(item)) - { - _logger.LogInformation("Reached level stop condition (current: {CurrentLevel}, target: {TargetLevel}, mode: {Mode})", playerCharacter.Level, _configuration.Stop.TargetLevel, _configuration.Stop.LevelStopMode); - _chatGui.Print($"Character level {playerCharacter.Level} reached target level {_configuration.Stop.TargetLevel}.", "Questionable", 576); - Stop($"Level stop condition reached [{playerCharacter.Level}]"); - return; - } - } - if (_configuration.Stop.QuestSequences.TryGetValue(text, out var value) && value.HasValue) - { - int sequence = _startedQuest.Sequence; - if (sequence >= value.Value && IsRunning) - { - Configuration.EStopConditionMode valueOrDefault = _configuration.Stop.QuestStopModes.GetValueOrDefault(text, Configuration.EStopConditionMode.Pause); - string item2 = $"questseq:{text}:{sequence}"; - if (valueOrDefault != Configuration.EStopConditionMode.Pause || !_stopConditionsMetAtStart.Contains(item2)) - { - _logger.LogInformation("Reached quest-specific sequence stop condition (quest: {QuestId}, sequence: {CurrentSequence}, target: {TargetSequence})", _startedQuest.Quest.Id, sequence, value.Value); - _chatGui.Print($"Quest '{_startedQuest.Quest.Info.Name}' reached sequence {sequence}, configured stop sequence is {value.Value}.", "Questionable", 576); - Stop($"Quest-specific sequence stop condition reached [{text}@{sequence}]"); - return; - } - } - } - else if (_configuration.Stop.SequenceStopMode != Configuration.EStopConditionMode.Off && CurrentQuest != null) - { - int sequence2 = CurrentQuest.Sequence; - if (sequence2 >= _configuration.Stop.TargetSequence && IsRunning) - { - string item3 = $"sequence:{text}:{sequence2}"; - if (_configuration.Stop.SequenceStopMode != Configuration.EStopConditionMode.Pause || !_stopConditionsMetAtStart.Contains(item3)) - { - _logger.LogInformation("Reached global quest sequence stop condition (sequence: {CurrentSequence}, target: {TargetSequence}, mode: {Mode})", sequence2, _configuration.Stop.TargetSequence, _configuration.Stop.SequenceStopMode); - _chatGui.Print($"Quest sequence {sequence2} reached target sequence {_configuration.Stop.TargetSequence}.", "Questionable", 576); - Stop($"Sequence stop condition reached [{sequence2}]"); - return; - } - } + _logger.LogInformation("Reached quest sequence stop condition (sequence: {CurrentSequence}, target: {TargetSequence})", sequence, _configuration.Stop.TargetSequence); + _chatGui.Print($"Quest sequence {sequence} reached target sequence {_configuration.Stop.TargetSequence}.", "Questionable", 576); + Stop($"Sequence stop condition reached [{sequence}]"); + return; } } - flag = AutomationType == EAutomationType.Automatic && (_taskQueue.AllTasksComplete || _taskQueue.CurrentTaskExecutor?.CurrentTask is WaitAtEnd.WaitQuestAccepted); + bool flag = AutomationType == EAutomationType.Automatic && (_taskQueue.AllTasksComplete || _taskQueue.CurrentTaskExecutor?.CurrentTask is WaitAtEnd.WaitQuestAccepted); bool flag2; if (flag) { @@ -437,14 +344,14 @@ internal sealed class QuestController : MiniTaskController if (step == 0 || step == 255) { flag2 = true; - goto IL_0800; + goto IL_0422; } } flag2 = false; - goto IL_0800; + goto IL_0422; } - goto IL_0804; - IL_0804: + goto IL_0426; + IL_0426: if (flag && DateTime.Now >= CurrentQuest.StepProgress.StartedAt.AddSeconds(15.0)) { lock (_progressLock) @@ -460,9 +367,9 @@ internal sealed class QuestController : MiniTaskController UpdateCurrentTask(); } return; - IL_0800: + IL_0422: flag = flag2; - goto IL_0804; + goto IL_0426; } private void CheckAutoRefreshCondition() @@ -476,12 +383,12 @@ internal sealed class QuestController : MiniTaskController _lastProgressUpdate = DateTime.Now; return; } - IGameObject gameObject = _objectTable[0]; - if (gameObject == null) + IPlayerCharacter localPlayer = _clientState.LocalPlayer; + if (localPlayer == null) { return; } - Vector3 position = gameObject.Position; + Vector3 position = localPlayer.Position; if (CurrentQuest == null) { return; @@ -514,7 +421,7 @@ internal sealed class QuestController : MiniTaskController { if (_configuration.General.AutoStepRefreshEnabled && AutomationType == EAutomationType.Automatic && IsRunning && CurrentQuest != null && _clientState.IsLoggedIn) { - return _objectTable[0] != null; + return _clientState.LocalPlayer != null; } return false; } @@ -543,7 +450,7 @@ internal sealed class QuestController : MiniTaskController private bool HasWaitingTasks() { ITask task = _taskQueue.CurrentTaskExecutor?.CurrentTask; - if (task is WaitAtEnd.WaitObjectAtPosition || task is WaitAtEnd.WaitForCompletionFlags || task is Duty.StartLevelingModeTask || task is Duty.WaitLevelingModeTask) + if (task is WaitAtEnd.WaitObjectAtPosition || task is WaitAtEnd.WaitForCompletionFlags) { return true; } @@ -567,7 +474,7 @@ internal sealed class QuestController : MiniTaskController private bool HasSystemConditionsPreventingRefresh() { - if (_movementController.IsNavmeshReady && !_condition[ConditionFlag.InCombat] && !_condition[ConditionFlag.Unconscious] && !_condition[ConditionFlag.BoundByDuty] && !_condition[ConditionFlag.InDutyQueue] && !_condition[ConditionFlag.InDeepDungeon] && !_condition[ConditionFlag.WatchingCutscene] && !_condition[ConditionFlag.WatchingCutscene78] && !_condition[ConditionFlag.BetweenAreas] && !_condition[ConditionFlag.BetweenAreas51] && !_gameFunctions.IsOccupied() && !_movementController.IsPathfinding && !_movementController.IsPathRunning) + if (_movementController.IsNavmeshReady && !_condition[ConditionFlag.InCombat] && !_condition[ConditionFlag.Unconscious] && !_condition[ConditionFlag.BoundByDuty] && !_condition[ConditionFlag.InDeepDungeon] && !_condition[ConditionFlag.WatchingCutscene] && !_condition[ConditionFlag.WatchingCutscene78] && !_condition[ConditionFlag.BetweenAreas] && !_condition[ConditionFlag.BetweenAreas51] && !_gameFunctions.IsOccupied() && !_movementController.IsPathfinding && !_movementController.IsPathRunning) { return DateTime.Now < _safeAnimationEnd; } @@ -599,7 +506,7 @@ internal sealed class QuestController : MiniTaskController int num = ManualPriorityQuests.RemoveAll((Quest q) => _questFunctions.IsQuestComplete(q.Id)); if (num > 0) { - _logger.LogInformation("Removed {Count} completed priority {QuestWord}", num, (num == 1) ? "quest" : "quests"); + _logger.LogInformation("Removed {Count} completed priority quest(s)", num); } } if (_pendingQuest != null) @@ -668,26 +575,6 @@ internal sealed class QuestController : MiniTaskController } if (elementId == null || elementId.Value == 0) { - ITask task = _taskQueue.CurrentTaskExecutor?.CurrentTask; - bool flag = ((task is Duty.StartLevelingModeTask || task is Duty.WaitLevelingModeTask) ? true : false); - if (flag || _taskQueue.RemainingTasks.Any((ITask t) => (t is Duty.StartLevelingModeTask || t is Duty.WaitLevelingModeTask) ? true : false)) - { - DebugState = "Leveling mode active"; - return; - } - (bool isLevelLocked, int levelsNeeded, int requiredLevel, string? questName) msqLevelLockInfo = _questFunctions.GetMsqLevelLockInfo(); - bool item = msqLevelLockInfo.isLevelLocked; - int item2 = msqLevelLockInfo.levelsNeeded; - int item3 = msqLevelLockInfo.requiredLevel; - string item4 = msqLevelLockInfo.questName; - int currentPlayerLevel = (_objectTable[0] as IPlayerCharacter)?.Level ?? 0; - if (item && _autoDutyIpc.IsConfiguredToRunLevelingMode(currentPlayerLevel) && AutomationType == EAutomationType.Automatic && !_condition[ConditionFlag.BoundByDuty] && !_condition[ConditionFlag.InDutyQueue] && _taskQueue.AllTasksComplete) - { - _logger.LogInformation("MSQ '{QuestName}' requires level {RequiredLevel}, current level is {CurrentLevel} ({LevelsNeeded} levels needed). Starting AutoDuty Leveling mode.", item4, item3, item3 - item2, item2); - _taskQueue.Enqueue(new Duty.StartLevelingModeTask(item3, item4)); - _taskQueue.Enqueue(new Duty.WaitLevelingModeTask(item3)); - return; - } if (_startedQuest != null) { switch (mainScenarioQuestState) @@ -705,15 +592,11 @@ internal sealed class QuestController : MiniTaskController } questProgress = null; } - else if (_startedQuest == null || _startedQuest.Quest.Id != elementId) + else { - if (_startedQuest != null && !_taskQueue.AllTasksComplete) - { - questProgress = _startedQuest; - b = _startedQuest.Sequence; - } - else + if (_startedQuest == null || _startedQuest.Quest.Id != elementId) { + Quest quest; if (_configuration.Stop.Enabled && _startedQuest != null && _configuration.Stop.QuestsToStopAfter.Contains(_startedQuest.Quest.Id) && _questFunctions.IsQuestComplete(_startedQuest.Quest.Id)) { ElementId id = _startedQuest.Quest.Id; @@ -721,129 +604,88 @@ internal sealed class QuestController : MiniTaskController _chatGui.Print("Completed quest '" + _startedQuest.Quest.Info.Name + "', which is configured as a stopping point.", "Questionable", 576); _startedQuest = null; Stop($"Stopping point [{id}] reached"); - return; } - if (_questRegistry.TryGetQuest(elementId, out Quest quest)) + else if (_questRegistry.TryGetQuest(elementId, out quest)) { _logger.LogInformation("New quest: {QuestName}", quest.Info.Name); _startedQuest = new QuestProgress(quest, b); - if (_objectTable[0] is IPlayerCharacter playerCharacter && playerCharacter.Level < quest.Info.Level) + if (_clientState.LocalPlayer != null && _clientState.LocalPlayer.Level < quest.Info.Level) { - if (_autoDutyIpc.IsConfiguredToRunLevelingMode(playerCharacter.Level) && AutomationType == EAutomationType.Automatic && !_condition[ConditionFlag.BoundByDuty]) - { - _logger.LogInformation("Player level ({PlayerLevel}) < quest level ({QuestLevel}), starting AutoDuty Leveling mode", playerCharacter.Level, quest.Info.Level); - ClearTasksInternal(); - _taskQueue.Enqueue(new Duty.StartLevelingModeTask(quest.Info.Level, quest.Info.Name)); - _taskQueue.Enqueue(new Duty.WaitLevelingModeTask(quest.Info.Level)); - } - else - { - _logger.LogInformation("Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel})", playerCharacter.Level, quest.Info.Level); - Stop("Quest level too high"); - } + _logger.LogInformation("Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel}", _clientState.LocalPlayer.Level, quest.Info.Level); + Stop("Quest level too high"); + return; } - else + if (AutomationType == EAutomationType.SingleQuestB) { - if (AutomationType == EAutomationType.SingleQuestB) - { - _logger.LogInformation("Single quest is finished"); - AutomationType = EAutomationType.Manual; - } - CheckNextTasks("Different Quest"); + _logger.LogInformation("Single quest is finished"); + AutomationType = EAutomationType.Manual; } - return; + CheckNextTasks("Different Quest"); } - if (_startedQuest != null) + else if (_startedQuest != null) { _logger.LogInformation("No active quest anymore? Not sure what happened..."); _startedQuest = null; Stop("No active Quest"); - return; } - questProgress = null; + return; } - } - else - { questProgress = _startedQuest; } } if (questProgress == null) { - ITask task = _taskQueue.CurrentTaskExecutor?.CurrentTask; - bool flag = ((task is Duty.StartLevelingModeTask || task is Duty.WaitLevelingModeTask) ? true : false); - if (flag || _taskQueue.RemainingTasks.Any((ITask t) => (t is Duty.StartLevelingModeTask || t is Duty.WaitLevelingModeTask) ? true : false)) - { - DebugState = "Leveling mode active"; - return; - } DebugState = "No quest active"; Stop("No quest active"); + return; } - else if (questProgress.Step == 255) - { - DebugState = $"Waiting for sequence update (current: {questProgress.Sequence})"; - if (!_taskQueue.AllTasksComplete) - { - DebugState = "Step 255 - processing interrupted tasks"; - } - else - { - if (this.CurrentQuest == null) - { - return; - } - TimeSpan timeSpan = DateTime.Now - this.CurrentQuest.StepProgress.StartedAt; - if (timeSpan > TimeSpan.FromSeconds(3L)) - { - _logger.LogWarning("Step 255 with no tasks for {WaitTime:F1}s, retrying step to ensure completion (quest: {QuestId}, sequence: {Sequence})", timeSpan.TotalSeconds, questProgress.Quest.Id, questProgress.Sequence); - QuestSequence questSequence = questProgress.Quest.FindSequence(questProgress.Sequence); - if (questSequence != null && questSequence.Steps.Count > 0) - { - this.CurrentQuest.SetStep(questSequence.Steps.Count - 1); - CheckNextTasks("Retry last step at 255"); - } - } - } - } - else if (_gameFunctions.IsOccupied() && !_gameFunctions.IsOccupiedWithCustomDeliveryNpc(questProgress.Quest)) + if (_gameFunctions.IsOccupied() && !_gameFunctions.IsOccupiedWithCustomDeliveryNpc(questProgress.Quest)) { DebugState = "Occupied"; + return; } - else if (_movementController.IsPathfinding) + if (_movementController.IsPathfinding) { DebugState = "Pathfinding is running"; + return; } - else if (_movementController.IsPathRunning) + if (_movementController.IsPathRunning) { DebugState = "Path is running"; + return; } - else if (DateTime.Now < _safeAnimationEnd) + if (DateTime.Now < _safeAnimationEnd) { DebugState = "Waiting for Animation"; + return; } - else if (questProgress.Sequence != b) + if (questProgress.Sequence != b) { questProgress.SetSequence(b); CheckNextTasks($"New sequence {questProgress == _startedQuest}/{_questFunctions.GetCurrentQuestInternal(allowNewMsq: true)}"); } + QuestSequence questSequence = questProgress.Quest.FindSequence(questProgress.Sequence); + if (questSequence == null) + { + DebugState = $"Sequence {questProgress.Sequence} not found"; + Stop("Unknown sequence"); + } + else if (questProgress.Step == 255) + { + DebugState = "Step completed"; + if (!_taskQueue.AllTasksComplete) + { + CheckNextTasks("Step complete"); + } + } + else if (questSequence.Steps.Count > 0 && questProgress.Step >= questSequence.Steps.Count) + { + DebugState = "Step not found"; + Stop("Unknown step"); + } else { - QuestSequence questSequence2 = questProgress.Quest.FindSequence(questProgress.Sequence); - if (questSequence2 == null) - { - DebugState = $"Sequence {questProgress.Sequence} not found"; - Stop("Unknown sequence"); - } - else if (questSequence2.Steps.Count > 0 && questProgress.Step >= questSequence2.Steps.Count) - { - DebugState = "Step not found"; - Stop("Unknown step"); - } - else - { - DebugState = null; - } + DebugState = null; } } } @@ -890,21 +732,15 @@ internal sealed class QuestController : MiniTaskController _logger.LogWarning("Ignoring 'increase step count' for different sequence (expected {ExpectedSequence}, but we are at {CurrentSequence}", sequence, questSequence.Sequence); } _logger.LogInformation("Increasing step count from {CurrentValue}", CurrentQuest.Step); - bool num = CurrentQuest.Step + 1 >= questSequence.Steps.Count; - if (num) - { - CurrentQuest.SetStep(255); - } - else + if (CurrentQuest.Step + 1 < questSequence.Steps.Count) { CurrentQuest.SetStep(CurrentQuest.Step + 1); } - ResetAutoRefreshState(); - if (num) + else { - _logger.LogInformation("Completed last step in sequence, waiting for game to update sequence"); - return; + CurrentQuest.SetStep(255); } + ResetAutoRefreshState(); } using (_logger.BeginScope("IncStepCt")) { @@ -924,8 +760,6 @@ internal sealed class QuestController : MiniTaskController _taskQueue.Reset(); _combatController.Stop("ClearTasksInternal"); _gatheringController.Stop("ClearTasksInternal"); - _fateController.Stop("ClearTasksInternal"); - _seasonalDutyController.Stop("ClearTasksInternal"); } public override void Stop(string label) @@ -940,7 +774,6 @@ internal sealed class QuestController : MiniTaskController _nextQuest = null; _gatheringQuest = null; _lastTaskUpdate = DateTime.Now; - _stopConditionsMetAtStart.Clear(); ResetAutoRefreshState(); } } @@ -952,8 +785,6 @@ internal sealed class QuestController : MiniTaskController _movementController.Stop(); _combatController.Stop(label); _gatheringController.Stop(label); - _fateController.Stop(label); - _seasonalDutyController.Stop(label); } private void CheckNextTasks(string label) @@ -1055,12 +886,8 @@ internal sealed class QuestController : MiniTaskController { using (_logger.BeginScope("Q/" + label)) { - if (!CheckAndBlockForStopConditions()) - { - RecordStopConditionsMetAtStart(); - AutomationType = EAutomationType.Automatic; - ExecuteNextStep(); - } + AutomationType = EAutomationType.Automatic; + ExecuteNextStep(); } } @@ -1068,12 +895,8 @@ internal sealed class QuestController : MiniTaskController { using (_logger.BeginScope("GQ/" + label)) { - if (!CheckAndBlockForStopConditions()) - { - RecordStopConditionsMetAtStart(); - AutomationType = EAutomationType.GatheringOnly; - ExecuteNextStep(); - } + AutomationType = EAutomationType.GatheringOnly; + ExecuteNextStep(); } } @@ -1081,12 +904,8 @@ internal sealed class QuestController : MiniTaskController { using (_logger.BeginScope("SQ/" + label)) { - if (!CheckAndBlockForStopConditions()) - { - RecordStopConditionsMetAtStart(); - AutomationType = EAutomationType.SingleQuestA; - ExecuteNextStep(); - } + AutomationType = EAutomationType.SingleQuestA; + ExecuteNextStep(); } } @@ -1099,109 +918,6 @@ internal sealed class QuestController : MiniTaskController } } - private void RecordStopConditionsMetAtStart() - { - _stopConditionsMetAtStart.Clear(); - if (!_configuration.Stop.Enabled) - { - return; - } - if (_configuration.Stop.LevelStopMode == Configuration.EStopConditionMode.Pause && _objectTable[0] is IPlayerCharacter playerCharacter && playerCharacter.Level >= _configuration.Stop.TargetLevel) - { - _stopConditionsMetAtStart.Add($"level:{_configuration.Stop.TargetLevel}"); - _logger.LogDebug("Recording level stop condition as already met at start: {Level}", _configuration.Stop.TargetLevel); - } - if (_configuration.Stop.SequenceStopMode == Configuration.EStopConditionMode.Pause && _startedQuest != null) - { - string text = _startedQuest.Quest.Id.ToString(); - if (!_configuration.Stop.QuestSequences.ContainsKey(text)) - { - int sequence = _startedQuest.Sequence; - if (sequence >= _configuration.Stop.TargetSequence) - { - _stopConditionsMetAtStart.Add($"sequence:{text}:{sequence}"); - _logger.LogDebug("Recording global sequence stop condition as already met at start: quest {QuestId}, sequence {Sequence}", text, sequence); - } - } - } - foreach (ElementId item in _configuration.Stop.QuestsToStopAfter) - { - string text2 = item.ToString(); - if (_configuration.Stop.QuestStopModes.GetValueOrDefault(text2, Configuration.EStopConditionMode.Pause) == Configuration.EStopConditionMode.Pause && _configuration.Stop.QuestSequences.TryGetValue(text2, out var value) && value.HasValue && _questFunctions.IsQuestAccepted(item)) - { - QuestProgressInfo questProgressInfo = _questFunctions.GetQuestProgressInfo(item); - if (questProgressInfo != null && questProgressInfo.Sequence >= value.Value) - { - _stopConditionsMetAtStart.Add($"questseq:{text2}:{questProgressInfo.Sequence}"); - _logger.LogDebug("Recording quest sequence stop condition as already met at start: quest {QuestId}, sequence {Sequence}", text2, questProgressInfo.Sequence); - } - } - } - } - - private bool CheckAndBlockForStopConditions() - { - if (!_configuration.Stop.Enabled) - { - return false; - } - if (_configuration.Stop.LevelStopMode == Configuration.EStopConditionMode.Stop && _objectTable[0] is IPlayerCharacter playerCharacter && playerCharacter.Level >= _configuration.Stop.TargetLevel) - { - _logger.LogInformation("Blocking start: Level stop condition already met (current: {CurrentLevel}, target: {TargetLevel})", playerCharacter.Level, _configuration.Stop.TargetLevel); - _chatGui.Print($"Cannot start: Character level {playerCharacter.Level} has reached target level {_configuration.Stop.TargetLevel}.", "Questionable", 576); - return true; - } - foreach (ElementId item in _configuration.Stop.QuestsToStopAfter) - { - string key = item.ToString(); - if (_configuration.Stop.QuestStopModes.GetValueOrDefault(key, Configuration.EStopConditionMode.Pause) != Configuration.EStopConditionMode.Stop) - { - continue; - } - if (_configuration.Stop.QuestSequences.TryGetValue(key, out var value) && value.HasValue) - { - if (!_questFunctions.IsQuestAccepted(item)) - { - continue; - } - QuestProgressInfo questProgressInfo = _questFunctions.GetQuestProgressInfo(item); - if (questProgressInfo != null && questProgressInfo.Sequence >= value.Value) - { - if (_questRegistry.TryGetQuest(item, out Quest quest)) - { - _logger.LogInformation("Blocking start: Quest '{QuestName}' is at sequence {CurrentSequence}, stop sequence is {StopSequence}", quest.Info.Name, questProgressInfo.Sequence, value.Value); - _chatGui.Print($"Cannot start: Quest '{quest.Info.Name}' is at sequence {questProgressInfo.Sequence}, configured stop sequence is {value.Value}.", "Questionable", 576); - } - return true; - } - } - else if (_questFunctions.IsQuestComplete(item)) - { - if (_questRegistry.TryGetQuest(item, out Quest quest2)) - { - _logger.LogInformation("Blocking start: Quest '{QuestName}' is already complete and configured as a stop condition", quest2.Info.Name); - _chatGui.Print("Cannot start: Quest '" + quest2.Info.Name + "' is complete and configured as a stopping point.", "Questionable", 576); - } - return true; - } - } - if (_configuration.Stop.SequenceStopMode == Configuration.EStopConditionMode.Stop && _startedQuest != null) - { - string key2 = _startedQuest.Quest.Id.ToString(); - if (!_configuration.Stop.QuestSequences.ContainsKey(key2)) - { - int sequence = _startedQuest.Sequence; - if (sequence >= _configuration.Stop.TargetSequence) - { - _logger.LogInformation("Blocking start: Global sequence stop condition already met (current: {CurrentSequence}, target: {TargetSequence})", sequence, _configuration.Stop.TargetSequence); - _chatGui.Print($"Cannot start: Quest sequence {sequence} has reached target sequence {_configuration.Stop.TargetSequence}.", "Questionable", 576); - return true; - } - } - } - return false; - } - private void ExecuteNextStep() { ClearTasksInternal(); @@ -1212,23 +928,6 @@ internal sealed class QuestController : MiniTaskController var (questSequence, step, flag) = GetNextStep(); if (CurrentQuest == null || questSequence == null) { - _logger.LogDebug("ExecuteNextStep: No current quest or sequence. Checking leveling mode conditions."); - if (AutomationType == EAutomationType.Automatic && !_condition[ConditionFlag.BoundByDuty]) - { - (bool isLevelLocked, int levelsNeeded, int requiredLevel, string? questName) msqLevelLockInfo = _questFunctions.GetMsqLevelLockInfo(); - bool item = msqLevelLockInfo.isLevelLocked; - int item2 = msqLevelLockInfo.levelsNeeded; - int item3 = msqLevelLockInfo.requiredLevel; - string item4 = msqLevelLockInfo.questName; - int currentPlayerLevel = (_objectTable[0] as IPlayerCharacter)?.Level ?? 0; - if (item && _autoDutyIpc.IsConfiguredToRunLevelingMode(currentPlayerLevel)) - { - _logger.LogInformation("MSQ '{QuestName}' requires level {RequiredLevel}, current level is {CurrentLevel} ({LevelsNeeded} levels needed). Starting AutoDuty Leveling mode.", item4, item3, item3 - item2, item2); - _taskQueue.Enqueue(new Duty.StartLevelingModeTask(item3, item4)); - _taskQueue.Enqueue(new Duty.WaitLevelingModeTask(item3)); - return; - } - } if (CurrentQuestDetails?.Progress.Quest.Id is SatisfactionSupplyNpcId && CurrentQuestDetails?.Progress.Sequence == 1) { (QuestProgress, ECurrentQuestType)? currentQuestDetails = CurrentQuestDetails; @@ -1240,25 +939,23 @@ internal sealed class QuestController : MiniTaskController _logger.LogInformation("Completed delivery quest"); SetGatheringQuest(null); Stop("Gathering quest complete"); - goto IL_02d0; + goto IL_01dc; } } } _logger.LogWarning("Could not retrieve next quest step, not doing anything [{QuestId}, {Sequence}, {Step}]", CurrentQuest?.Quest.Id, CurrentQuest?.Sequence, CurrentQuest?.Step); - goto IL_02d0; + goto IL_01dc; } - goto IL_02dc; - IL_02dc: + goto IL_01e8; + IL_01e8: _movementController.Stop(); _combatController.Stop("Execute next step"); _gatheringController.Stop("Execute next step"); - _fateController.Stop("Execute next step"); - _seasonalDutyController.Stop("Execute next step"); try { - foreach (ITask item5 in _taskCreator.CreateTasks(CurrentQuest.Quest, CurrentQuest.Sequence, questSequence, step)) + foreach (ITask item in _taskCreator.CreateTasks(CurrentQuest.Quest, CurrentQuest.Sequence, questSequence, step)) { - _taskQueue.Enqueue(item5); + _taskQueue.Enqueue(item); } ResetAutoRefreshState(); return; @@ -1270,12 +967,12 @@ internal sealed class QuestController : MiniTaskController Stop("Tasks failed to create"); return; } - IL_02d0: + IL_01dc: if (CurrentQuest == null || !flag) { return; } - goto IL_02dc; + goto IL_01e8; } public string ToStatString() @@ -1430,7 +1127,6 @@ internal sealed class QuestController : MiniTaskController _logger.LogWarning("Could not find quest {QuestId} during import", questElement); } _logger.LogInformation("Imported {Count} priority quests", ManualPriorityQuests.Count); - SavePriorityQuests(); } public string ExportQuestPriority() @@ -1441,7 +1137,6 @@ internal sealed class QuestController : MiniTaskController public void ClearQuestPriority() { ManualPriorityQuests.Clear(); - SavePriorityQuests(); } public bool AddQuestPriority(ElementId elementId) @@ -1449,7 +1144,6 @@ internal sealed class QuestController : MiniTaskController if (_questRegistry.TryGetQuest(elementId, out Quest quest) && !ManualPriorityQuests.Contains(quest)) { ManualPriorityQuests.Add(quest); - SavePriorityQuests(); return true; } return false; @@ -1457,25 +1151,25 @@ internal sealed class QuestController : MiniTaskController public int AddAllAvailableQuests() { - List list = (from q in _questRegistry.AllQuests.Where(delegate(Quest quest2) + List list = (from q in _questRegistry.AllQuests.Where(delegate(Quest quest) { - if (quest2.Root.Disabled || _questFunctions.IsQuestRemoved(quest2.Id) || _questFunctions.IsQuestComplete(quest2.Id) || _questFunctions.IsQuestAccepted(quest2.Id) || quest2.Info.IsRepeatable) + if (quest.Root.Disabled || _questFunctions.IsQuestRemoved(quest.Id) || _questFunctions.IsQuestComplete(quest.Id) || _questFunctions.IsQuestAccepted(quest.Id) || quest.Info.IsRepeatable) { return false; } - if (quest2.Info.AlliedSociety != EAlliedSociety.None) + if (quest.Info.AlliedSociety != EAlliedSociety.None) { - _logger.LogDebug("Excluding allied society quest {QuestId} from bulk add", quest2.Id); + _logger.LogDebug("Excluding allied society quest {QuestId} from bulk add", quest.Id); return false; } - if (quest2.Info is QuestInfo questInfo && _journalData.MoogleDeliveryGenreId.HasValue && questInfo.JournalGenre == _journalData.MoogleDeliveryGenreId.Value) + if (quest.Info is QuestInfo { MoogleDeliveryLevel: >0 }) { - _logger.LogDebug("Excluding moogle delivery quest {QuestId} from bulk add", quest2.Id); + _logger.LogDebug("Excluding moogle delivery quest {QuestId} from bulk add", quest.Id); return false; } - if (!_questFunctions.IsReadyToAcceptQuest(quest2.Id)) + if (!_questFunctions.IsReadyToAcceptQuest(quest.Id)) { - _logger.LogTrace("Quest {QuestId} not ready to accept", quest2.Id); + _logger.LogTrace("Quest {QuestId} not ready to accept", quest.Id); return false; } return true; @@ -1485,16 +1179,11 @@ internal sealed class QuestController : MiniTaskController int num = 0; foreach (ElementId item in list) { - if (_questRegistry.TryGetQuest(item, out Quest quest) && !ManualPriorityQuests.Contains(quest)) + if (AddQuestPriority(item)) { - ManualPriorityQuests.Add(quest); num++; } } - if (num > 0) - { - SavePriorityQuests(); - } return num; } @@ -1505,7 +1194,6 @@ internal sealed class QuestController : MiniTaskController if (_questRegistry.TryGetQuest(elementId, out Quest quest) && !ManualPriorityQuests.Contains(quest)) { ManualPriorityQuests.Insert(index, quest); - SavePriorityQuests(); } return true; } @@ -1517,39 +1205,14 @@ internal sealed class QuestController : MiniTaskController } } - public void LoadPriorityQuests() + public bool WasLastTaskUpdateWithin(TimeSpan timeSpan) { - if (!_configuration.General.PersistPriorityQuestsBetweenSessions) + _logger.LogInformation("Last update: {Update}", _lastTaskUpdate); + if (!IsRunning) { - _logger.LogDebug("Priority quest persistence is disabled, skipping load"); - return; + return DateTime.Now <= _lastTaskUpdate.Add(timeSpan); } - ManualPriorityQuests.Clear(); - foreach (ElementId priorityQuest in _configuration.General.PriorityQuests) - { - if (_questRegistry.TryGetQuest(priorityQuest, out Quest quest)) - { - ManualPriorityQuests.Add(quest); - continue; - } - _logger.LogWarning("Could not find quest {QuestId} during load from config", priorityQuest); - } - if (ManualPriorityQuests.Count > 0) - { - _logger.LogInformation("Loaded {Count} priority quests from configuration", ManualPriorityQuests.Count); - } - } - - public void SavePriorityQuests() - { - if (!_configuration.General.PersistPriorityQuestsBetweenSessions) - { - _logger.LogDebug("Priority quest persistence is disabled, skipping save"); - return; - } - _configuration.General.PriorityQuests = ManualPriorityQuests.Select((Quest q) => q.Id).ToList(); - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogDebug("Saved {Count} priority quests to configuration", ManualPriorityQuests.Count); + return true; } private void OnConditionChange(ConditionFlag flag, bool value) @@ -1579,21 +1242,6 @@ internal sealed class QuestController : MiniTaskController { _logger.LogInformation("Clearing priority quests on logout"); ManualPriorityQuests.Clear(); - if (_configuration.General.PersistPriorityQuestsBetweenSessions) - { - _configuration.General.PriorityQuests.Clear(); - _pluginInterface.SavePluginConfig(_configuration); - } - } - } - - private void OnPlayerInputDetected(object? sender, EventArgs e) - { - if (AutomationType != EAutomationType.Manual && IsRunning) - { - _logger.LogInformation("Player input detected during movement, stopping quest automation"); - _chatGui.Print("Player input detected - stopping quest automation.", "Questionable", 576); - Stop("Player input detected"); } } @@ -1603,7 +1251,6 @@ internal sealed class QuestController : MiniTaskController _toastGui.Toast -= OnNormalToast; _condition.ConditionChange -= OnConditionChange; _clientState.Logout -= OnLogout; - _movementController.PlayerInputDetected -= OnPlayerInputDetected; base.Dispose(); } } diff --git a/Questionable/Questionable.Controller/QuestRegistry.cs b/Questionable/Questionable.Controller/QuestRegistry.cs index 861d63f..e42a2ca 100644 --- a/Questionable/Questionable.Controller/QuestRegistry.cs +++ b/Questionable/Questionable.Controller/QuestRegistry.cs @@ -131,7 +131,7 @@ internal sealed class QuestRegistry } if (_questData.TryGetQuestInfo(elementId2, out IQuestInfo questInfo)) { - goto IL_01ae; + goto IL_01c8; } if (elementId2 is UnlockLinkId unlockLinkId) { @@ -147,16 +147,18 @@ internal sealed class QuestRegistry text = $"Unlock Link {unlockLinkId.Value}"; } questInfo = new UnlockLinkQuestInfo(unlockLinkId, text, 0u, dateTime); + _logger.LogDebug("Created UnlockLinkQuestInfo for {QuestId} from assembly", elementId2); _questData.AddOrReplaceQuestInfo(questInfo); - goto IL_01ae; + goto IL_01c8; } _logger.LogWarning("Not loading unknown quest {QuestId} from assembly: Quest not found in quest data", elementId2); goto end_IL_003d; - IL_01ae: + IL_01c8: if (flag2 || flag3) { - bool isSeasonal = flag ?? questInfo.IsSeasonalQuest; - _questData.ApplySeasonalOverride(elementId2, isSeasonal, dateTime); + bool flag4 = flag ?? questInfo.IsSeasonalQuest; + _questData.ApplySeasonalOverride(elementId2, flag4, dateTime); + _logger.LogDebug("Applied seasonal override for quest {QuestId} from assembly: IsSeasonal={IsSeasonal}, Expiry={Expiry}", elementId2, flag4, dateTime?.ToString("o") ?? "(null)"); } IQuestInfo questInfo2 = _questData.GetQuestInfo(elementId2); Quest quest = new Quest diff --git a/Questionable/Questionable.Controller/SeasonalDutyController.cs b/Questionable/Questionable.Controller/SeasonalDutyController.cs deleted file mode 100644 index 5b7aa9e..0000000 --- a/Questionable/Questionable.Controller/SeasonalDutyController.cs +++ /dev/null @@ -1,170 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Runtime.InteropServices; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Controller.Steps; -using Questionable.Controller.Steps.Common; -using Questionable.Controller.Steps.Interactions; -using Questionable.Controller.Steps.Movement; -using Questionable.Controller.Steps.Shared; -using Questionable.Functions; -using Questionable.Model.Questing; - -namespace Questionable.Controller; - -internal sealed class SeasonalDutyController : MiniTaskController -{ - private readonly MovementController _movementController; - - private readonly GameFunctions _gameFunctions; - - private readonly IClientState _clientState; - - private readonly ILogger _logger; - - private SeasonalDutyDefinition? _currentDuty; - - private int _completedCycles; - - private int? _cycleLimit; - - private DateTime _startTime; - - public bool IsRunning => _currentDuty != null; - - public SeasonalDutyDefinition? CurrentDuty => _currentDuty; - - public int CompletedCycles => _completedCycles; - - public int? CycleLimit => _cycleLimit; - - public TimeSpan ElapsedTime - { - get - { - if (!IsRunning) - { - return TimeSpan.Zero; - } - return DateTime.UtcNow - _startTime; - } - } - - public SeasonalDutyController(IChatGui chatGui, ICondition condition, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, ILogger logger, MovementController movementController, GameFunctions gameFunctions, IClientState clientState) - : base(chatGui, condition, serviceProvider, interruptHandler, dataManager, logger) - { - _movementController = movementController; - _gameFunctions = gameFunctions; - _clientState = clientState; - _logger = logger; - } - - public void Start(SeasonalDutyDefinition duty, int? cycleLimit = null) - { - _currentDuty = duty; - _completedCycles = 0; - _cycleLimit = cycleLimit; - _startTime = DateTime.UtcNow; - _logger.LogInformation("Starting seasonal duty farming: {DutyName} (limit: {Limit})", duty.Name, cycleLimit?.ToString(CultureInfo.InvariantCulture) ?? "unlimited"); - EnqueueDutyCycle(); - } - - public void Update() - { - if (_currentDuty == null || _movementController.IsPathfinding || _movementController.IsPathRunning) - { - return; - } - if (_taskQueue.AllTasksComplete) - { - _completedCycles++; - if (_cycleLimit.HasValue && _completedCycles >= _cycleLimit.Value) - { - _logger.LogInformation("Seasonal duty cycle limit reached ({Cycles}/{Limit})", _completedCycles, _cycleLimit.Value); - Stop("Cycle limit reached"); - return; - } - EnqueueDutyCycle(); - } - UpdateCurrentTask(); - } - - private void EnqueueDutyCycle() - { - if (_currentDuty == null) - { - return; - } - SeasonalDutyDefinition duty = _currentDuty; - _logger.LogInformation("Enqueuing seasonal duty cycle for {DutyName}", duty.Name); - if (_clientState.TerritoryType != duty.DutyTerritoryId) - { - if (_clientState.TerritoryType != duty.TerritoryId) - { - _taskQueue.Enqueue(new AetheryteShortcut.Task(null, null, duty.Aetheryte, duty.TerritoryId)); - } - if (duty.AethernetShortcut != null) - { - _taskQueue.Enqueue(new AethernetShortcut.Task(duty.AethernetShortcut.From, duty.AethernetShortcut.To)); - } - _taskQueue.Enqueue(new MoveTask(duty.TerritoryId, duty.NpcPosition, null, 3f)); - _taskQueue.Enqueue(new Mount.UnmountTask()); - bool interacted = false; - _taskQueue.Enqueue(new WaitCondition.Task(delegate - { - if (_clientState.TerritoryType == _currentDuty.DutyTerritoryId) - { - return true; - } - if (!interacted) - { - interacted = _gameFunctions.InteractWith(duty.NpcDataId); - } - return false; - }, $"InteractAndWait(territory: {duty.DutyTerritoryId})")); - } - _taskQueue.Enqueue(new ClearObjectsWithAction.ClearTask(duty.DataIds, duty.Action, duty.DutyTerritoryId, duty.StopDistance, duty.WaypointPositions)); - _taskQueue.Enqueue(new WaitCondition.Task(() => _clientState.TerritoryType != _currentDuty.DutyTerritoryId, "Wait(duty end)")); - _taskQueue.Enqueue(new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(3L))); - } - - public override void Stop(string label) - { - if (_currentDuty != null) - { - _logger.LogInformation("Stopping seasonal duty farming: {Label} (completed {Cycles} cycles)", label, _completedCycles); - _currentDuty = null; - _completedCycles = 0; - _cycleLimit = null; - _taskQueue.Reset(); - } - } - - public override IList GetRemainingTaskNames() - { - ITask task = _taskQueue.CurrentTaskExecutor?.CurrentTask; - if (task != null) - { - string text = task.ToString() ?? "?"; - IList remainingTaskNames = base.GetRemainingTaskNames(); - int num = 1 + remainingTaskNames.Count; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = text; - num2++; - { - foreach (string item in remainingTaskNames) - { - span[num2] = item; - num2++; - } - return list; - } - } - return base.GetRemainingTaskNames(); - } -} diff --git a/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs b/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs deleted file mode 100644 index 17259b5..0000000 --- a/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs +++ /dev/null @@ -1,148 +0,0 @@ -#define RELEASE -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text.Json; -using Dalamud.Plugin; -using Microsoft.Extensions.Logging; -using Questionable.Model.Questing; -using Questionable.SeasonalDutyPaths; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Controller; - -internal sealed class SeasonalDutyDefinitionRegistry -{ - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly ILogger _logger; - - private readonly Dictionary _definitions = new Dictionary(); - - public IReadOnlyDictionary Definitions => _definitions; - - public SeasonalDutyDefinitionRegistry(IDalamudPluginInterface pluginInterface, ILogger logger) - { - _pluginInterface = pluginInterface; - _logger = logger; - Reload(); - } - - public void Reload() - { - _definitions.Clear(); - LoadFromAssembly(); - try - { - LoadFromDirectory(new DirectoryInfo(Path.Combine(_pluginInterface.ConfigDirectory.FullName, "SeasonalDutyDefinitions"))); - } - catch (Exception exception) - { - _logger.LogError(exception, "Failed to load seasonal duty definitions from user directory (some may have been successfully loaded)"); - } - RemoveExpiredDefinitions(); - _logger.LogInformation("Loaded {Count} seasonal duty definitions in total", _definitions.Count); - } - - [Conditional("RELEASE")] - private void LoadFromAssembly() - { - _logger.LogInformation("Loading seasonal duty definitions from assembly"); - IReadOnlyDictionary definitions = AssemblySeasonalDutyDefinitionLoader.GetDefinitions(); - _logger.LogInformation("AssemblySeasonalDutyDefinitionLoader returned {Count} definitions", definitions.Count); - foreach (var (key, value) in definitions) - { - _definitions[key] = value; - } - _logger.LogInformation("Loaded {Count} seasonal duty definitions from assembly", _definitions.Count); - } - - [Conditional("DEBUG")] - private void LoadFromProjectDirectory() - { - DirectoryInfo directoryInfo = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent; - if (directoryInfo == null) - { - return; - } - DirectoryInfo directoryInfo2 = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "SeasonalDutyPaths")); - if (directoryInfo2.Exists) - { - try - { - LoadFromDirectory(directoryInfo2); - } - catch (Exception exception) - { - _definitions.Clear(); - _logger.LogError(exception, "Failed to load seasonal duty definitions from project directory"); - } - } - } - - private void LoadFromDirectory(DirectoryInfo directory) - { - if (!directory.Exists) - { - _logger.LogInformation("Not loading seasonal duty definitions from {DirectoryName} (doesn't exist)", directory); - return; - } - FileInfo[] files = directory.GetFiles("*.json"); - foreach (FileInfo fileInfo in files) - { - try - { - ushort? num = ExtractIdFromName(fileInfo.Name); - if (!num.HasValue) - { - continue; - } - using FileStream utf8Json = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read); - SeasonalDutyDefinition seasonalDutyDefinition = JsonSerializer.Deserialize(utf8Json); - if (seasonalDutyDefinition != null) - { - _definitions[num.Value] = seasonalDutyDefinition; - } - } - catch (Exception exception) - { - _logger.LogError(exception, "Unable to load seasonal duty definition file {FileName}", fileInfo.FullName); - } - } - } - - private void RemoveExpiredDefinitions() - { - foreach (ushort item in (from kvp in _definitions.Where>(delegate(KeyValuePair kvp) - { - DateTime? eventExpiry = kvp.Value.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - return EventInfoComponent.NormalizeExpiry(valueOrDefault) < DateTime.UtcNow; - } - return false; - }) - select kvp.Key).ToList()) - { - _logger.LogInformation("Removing expired seasonal duty definition {Id} '{Name}'", item, _definitions[item].Name); - _definitions.Remove(item); - } - } - - private static ushort? ExtractIdFromName(string fileName) - { - string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName); - if (!fileNameWithoutExtension.Contains('_', StringComparison.Ordinal)) - { - return null; - } - if (ushort.TryParse(fileNameWithoutExtension.Split('_', 2)[0], out var result)) - { - return result; - } - return null; - } -} diff --git a/Questionable/Questionable.Data/ChangelogData.cs b/Questionable/Questionable.Data/ChangelogData.cs deleted file mode 100644 index e81f31c..0000000 --- a/Questionable/Questionable.Data/ChangelogData.cs +++ /dev/null @@ -1,1022 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using Questionable.Model.Changelog; - -namespace Questionable.Data; - -internal static class ChangelogData -{ - public static readonly List Changelogs; - - static ChangelogData() - { - int num = 64; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - ref ChangelogEntry reference = ref span[0]; - DateOnly releaseDate = new DateOnly(2026, 3, 24); - int num2 = 1; - List list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); - ref ChangeEntry reference2 = ref CollectionsMarshal.AsSpan(list2)[0]; - int num3 = 2; - List list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = "Add duty handling to external and qst"; - span2[1] = "Fix duty farming NPC interact getting stuck after zone transition into duty"; - reference2 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list3); - reference = new ChangelogEntry("7.4.19", releaseDate, list2); - ref ChangelogEntry reference3 = ref span[1]; - DateOnly releaseDate2 = new DateOnly(2026, 3, 24); - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span3 = CollectionsMarshal.AsSpan(list4); - ref ChangeEntry reference4 = ref span3[0]; - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = "Add seasonal duty farming system (/qst duty)"; - reference4 = new ChangeEntry(EChangeCategory.Added, "New Features", list5); - ref ChangeEntry reference5 = ref span3[1]; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = "Add Hatching-tide 2026 quest"; - reference5 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list6); - ref ChangeEntry reference6 = ref span3[2]; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = "Quest path fixes"; - reference6 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list7); - reference3 = new ChangelogEntry("7.4.18", releaseDate2, list4); - ref ChangelogEntry reference7 = ref span[2]; - DateOnly releaseDate3 = new DateOnly(2026, 3, 1); - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - ref ChangeEntry reference8 = ref CollectionsMarshal.AsSpan(list8)[0]; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = "Quest path fixes"; - reference8 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list9); - reference7 = new ChangelogEntry("7.4.17", releaseDate3, list8); - ref ChangelogEntry reference9 = ref span[3]; - DateOnly releaseDate4 = new DateOnly(2026, 3, 1); - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref ChangeEntry reference10 = ref CollectionsMarshal.AsSpan(list10)[0]; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = "Enable TextAdvance, PandorasBox, and Automaton IPC integration during FATE farming"; - reference10 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list11); - reference9 = new ChangelogEntry("7.4.16", releaseDate4, list10); - ref ChangelogEntry reference11 = ref span[4]; - DateOnly releaseDate5 = new DateOnly(2026, 2, 28); - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - ref ChangeEntry reference12 = ref CollectionsMarshal.AsSpan(list12)[0]; - num3 = 2; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = "Fix FATE transform interact task never completing after NPC dialogue"; - span4[1] = "Fix FATE farming loop not detecting completion when NPCs persist after FATE ends"; - reference12 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list13); - reference11 = new ChangelogEntry("7.4.15", releaseDate5, list12); - ref ChangelogEntry reference13 = ref span[5]; - DateOnly releaseDate6 = new DateOnly(2026, 2, 27); - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref ChangeEntry reference14 = ref span5[0]; - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = "Added prerequisite quest requirement to FATE farming definitions"; - span6[1] = "Show active FATE in main quest UI and disable quest start during FATE farming"; - reference14 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list15); - ref ChangeEntry reference15 = ref span5[1]; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = "Fixed FATE farming buff expiry and added Curtain Call cleanup on stop"; - reference15 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list16); - reference13 = new ChangelogEntry("7.4.14", releaseDate6, list14); - ref ChangelogEntry reference16 = ref span[6]; - DateOnly releaseDate7 = new DateOnly(2026, 2, 27); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref ChangeEntry reference17 = ref CollectionsMarshal.AsSpan(list17)[0]; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = "Fixed an issue where FATE actions were not performed during the Little Ladies Day (2026) FATE event"; - reference17 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list18); - reference16 = new ChangelogEntry("7.4.13", releaseDate7, list17); - ref ChangelogEntry reference18 = ref span[7]; - DateOnly releaseDate8 = new DateOnly(2026, 2, 26); - num2 = 3; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref ChangeEntry reference19 = ref span7[0]; - num3 = 3; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = "Add Saved Presets tab to quest priority window"; - span8[1] = "Add passive FATE handling and per npc ability handling"; - span8[2] = "Add FATE farming support"; - reference19 = new ChangeEntry(EChangeCategory.Added, "New Features", list20); - ref ChangeEntry reference20 = ref span7[1]; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = "Add Little Ladies' Day 2026 quests"; - reference20 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list21); - ref ChangeEntry reference21 = ref span7[2]; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = "Quest path fixes"; - reference21 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list22); - reference18 = new ChangelogEntry("7.4.12", releaseDate8, list19); - ref ChangelogEntry reference22 = ref span[8]; - DateOnly releaseDate9 = new DateOnly(2026, 2, 2); - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref ChangeEntry reference23 = ref span9[0]; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = "Add Valentione's Day 2026 quest (The Icing on the Cake)"; - reference23 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list24); - ref ChangeEntry reference24 = ref span9[1]; - num3 = 2; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = "Updated Duty journal to include missing duty types"; - span10[1] = "Added various missing sequences to quests"; - reference24 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list25); - reference22 = new ChangelogEntry("7.4.11", releaseDate9, list23); - ref ChangelogEntry reference25 = ref span[9]; - DateOnly releaseDate10 = new DateOnly(2026, 1, 18); - num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span11 = CollectionsMarshal.AsSpan(list26); - ref ChangeEntry reference26 = ref span11[0]; - num3 = 5; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = "Added quest blacklisting"; - span12[1] = "Added MSQ Priority config"; - span12[2] = "Added Quest priority persistence config"; - span12[3] = "Added Duties tab to Journal"; - span12[4] = "Added GC shop handling and chocobo naming for chocobo quests"; - reference26 = new ChangeEntry(EChangeCategory.Added, "Major Features", list27); - ref ChangeEntry reference27 = ref span11[1]; - num3 = 5; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span13 = CollectionsMarshal.AsSpan(list28); - span13[0] = "Removed PandorasBox dependency and added QTE handling"; - span13[1] = "Removed CBT dependency and added Snipe handling"; - span13[2] = "Added drag reordering to Stop condition quests"; - span13[3] = "Ignore item level requirements if using Unsync config"; - span13[4] = "Setting a Stop quest to Off no longer removes it from the list"; - reference27 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list28); - reference25 = new ChangelogEntry("7.4.10", releaseDate10, list26); - ref ChangelogEntry reference28 = ref span[10]; - DateOnly releaseDate11 = new DateOnly(2025, 12, 31); - num2 = 3; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span14 = CollectionsMarshal.AsSpan(list29); - ref ChangeEntry reference29 = ref span14[0]; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = "Add Heavensturn (2026) quests"; - reference29 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list30); - ref ChangeEntry reference30 = ref span14[1]; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = "Added missing quest sequences"; - reference30 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list31); - ref ChangeEntry reference31 = ref span14[2]; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = "Fixed leveling mode not restarting properly"; - reference31 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list32); - reference28 = new ChangelogEntry("7.4.9", releaseDate11, list29); - ref ChangelogEntry reference32 = ref span[11]; - DateOnly releaseDate12 = new DateOnly(2025, 12, 29); - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref ChangeEntry reference33 = ref CollectionsMarshal.AsSpan(list33)[0]; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = "Fixed infinite teleport loop when multiple quests compete for priority"; - span15[1] = "Fixed leveling mode enabling for quest duties"; - reference33 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list34); - reference32 = new ChangelogEntry("7.4.8", releaseDate12, list33); - ref ChangelogEntry reference34 = ref span[12]; - DateOnly releaseDate13 = new DateOnly(2025, 12, 28); - num2 = 4; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref ChangeEntry reference35 = ref span16[0]; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = "Added leveling mode when underleveled for MSQ"; - reference35 = new ChangeEntry(EChangeCategory.Added, "Major Features", list36); - ref ChangeEntry reference36 = ref span16[1]; - num3 = 3; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = "Added missing dungeons to Duties"; - span17[1] = "Added Normal Raids and Alliance Raids to duties tab"; - span17[2] = "Added Pause/Stop modes to stop conditions"; - reference36 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list37); - ref ChangeEntry reference37 = ref span16[2]; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = "Added leveling mode IPC: IsLevelingModeEnabled, SetLevelingModeEnabled, GetMsqLevelLockInfo, StartLevelingMode, StopLevelingMode"; - reference37 = new ChangeEntry(EChangeCategory.Added, "IPC Changes", list38); - ref ChangeEntry reference38 = ref span16[3]; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = "Fixed UI appearing in duties when debuff or interrupts occur"; - reference38 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list39); - reference34 = new ChangelogEntry("7.4.7", releaseDate13, list35); - ref ChangelogEntry reference39 = ref span[13]; - DateOnly releaseDate14 = new DateOnly(2025, 12, 23); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span18 = CollectionsMarshal.AsSpan(list40); - ref ChangeEntry reference40 = ref span18[0]; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = "Added Cinema Mode to not skip cutscenes"; - reference40 = new ChangeEntry(EChangeCategory.Added, "Major Features", list41); - ref ChangeEntry reference41 = ref span18[1]; - num3 = 2; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span19 = CollectionsMarshal.AsSpan(list42); - span19[0] = "Added handling for Unsync (Party) to Party Watchdog and configuration to disable if in party"; - span19[1] = "Stop conditions now act as a true stop"; - reference41 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list42); - reference39 = new ChangelogEntry("7.4.6", releaseDate14, list40); - ref ChangelogEntry reference42 = ref span[14]; - DateOnly releaseDate15 = new DateOnly(2025, 12, 22); - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref ChangeEntry reference43 = ref CollectionsMarshal.AsSpan(list43)[0]; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = "Dive adjustments"; - span20[1] = "Logging message adjustments"; - reference43 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list44); - reference42 = new ChangelogEntry("7.4.5", releaseDate15, list43); - ref ChangelogEntry reference44 = ref span[15]; - DateOnly releaseDate16 = new DateOnly(2025, 12, 21); - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span21 = CollectionsMarshal.AsSpan(list45); - ref ChangeEntry reference45 = ref span21[0]; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = "Changelog only shows once per update now"; - reference45 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list46); - ref ChangeEntry reference46 = ref span21[1]; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = "Fixed gathering paths loading"; - reference46 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list47); - reference44 = new ChangelogEntry("7.4.4", releaseDate16, list45); - ref ChangelogEntry reference47 = ref span[16]; - DateOnly releaseDate17 = new DateOnly(2025, 12, 21); - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref ChangeEntry reference48 = ref CollectionsMarshal.AsSpan(list48)[0]; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = "Fixed changelog version checks"; - reference48 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list49); - reference47 = new ChangelogEntry("7.4.3", releaseDate17, list48); - ref ChangelogEntry reference49 = ref span[17]; - DateOnly releaseDate18 = new DateOnly(2025, 12, 20); - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span22 = CollectionsMarshal.AsSpan(list50); - ref ChangeEntry reference50 = ref span22[0]; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = "Add 7.4 Starlight Celebration (2025) quest"; - reference50 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list51); - ref ChangeEntry reference51 = ref span22[1]; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = "Fixed 7.4 MSQ"; - reference51 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list52); - reference49 = new ChangelogEntry("7.4.2", releaseDate18, list50); - ref ChangelogEntry reference52 = ref span[18]; - DateOnly releaseDate19 = new DateOnly(2025, 12, 19); - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref ChangeEntry reference53 = ref CollectionsMarshal.AsSpan(list53)[0]; - num3 = 2; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span23 = CollectionsMarshal.AsSpan(list54); - span23[0] = "Add 7.4 MSQ"; - span23[1] = "Add 7.4 Arcadion Raid quests"; - reference53 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list54); - reference52 = new ChangelogEntry("7.4.1", releaseDate19, list53); - ref ChangelogEntry reference54 = ref span[19]; - DateOnly releaseDate20 = new DateOnly(2025, 12, 17); - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new ChangeEntry(EChangeCategory.Changed, "Api 14 update"); - reference54 = new ChangelogEntry("7.4.0", releaseDate20, list55); - ref ChangelogEntry reference55 = ref span[20]; - DateOnly releaseDate21 = new DateOnly(2025, 12, 6); - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span24 = CollectionsMarshal.AsSpan(list56); - ref ChangeEntry reference56 = ref span24[0]; - num3 = 4; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span25 = CollectionsMarshal.AsSpan(list57); - span25[0] = "Added reloading and rebuilding to movement system"; - span25[1] = "Improved interrupts and refresh states to allow continuation of questing"; - span25[2] = "Added player input detection to stop automation when manually moving character"; - span25[3] = "Added various missing quest sequences"; - reference56 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list57); - ref ChangeEntry reference57 = ref span24[1]; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = "Fixed reset task state to prevent stuck interactions after interruption"; - reference57 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list58); - reference55 = new ChangelogEntry("7.38.9", releaseDate21, list56); - ref ChangelogEntry reference58 = ref span[21]; - DateOnly releaseDate22 = new DateOnly(2025, 11, 29); - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span26 = CollectionsMarshal.AsSpan(list59); - ref ChangeEntry reference59 = ref span26[0]; - num3 = 3; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span27 = CollectionsMarshal.AsSpan(list60); - span27[0] = "Movement update with automatic retrying if character can't reach target position"; - span27[1] = "Added Hunt mob data"; - span27[2] = "Refactored commands"; - reference59 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list60); - ref ChangeEntry reference60 = ref span26[1]; - num3 = 3; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span28 = CollectionsMarshal.AsSpan(list61); - span28[0] = "Fixed quest (Way of the Archer)"; - span28[1] = "Fixed quest (Spirithold Broken)"; - span28[2] = "Fixed quest (It's Probably Not Pirates)"; - reference60 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list61); - reference58 = new ChangelogEntry("7.38.8", releaseDate22, list59); - ref ChangelogEntry reference61 = ref span[22]; - DateOnly releaseDate23 = new DateOnly(2025, 11, 25); - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span29 = CollectionsMarshal.AsSpan(list62); - ref ChangeEntry reference62 = ref span29[0]; - num3 = 2; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span30 = CollectionsMarshal.AsSpan(list63); - span30[0] = "Added individual sequence stop condition for each quest"; - span30[1] = "Added Trials to Duties tab in config"; - reference62 = new ChangeEntry(EChangeCategory.Added, "Major features", list63); - ref ChangeEntry reference63 = ref span29[1]; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = "Added IPC for stop conditions: GetQuestSequenceStopCondition, SetQuestSequenceStopCondition, RemoveQuestSequenceStopCondition, GetAllQuestSequenceStopConditions"; - reference63 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list64); - reference61 = new ChangelogEntry("7.38.7", releaseDate23, list62); - ref ChangelogEntry reference64 = ref span[23]; - DateOnly releaseDate24 = new DateOnly(2025, 11, 25); - num2 = 3; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span31 = CollectionsMarshal.AsSpan(list65); - ref ChangeEntry reference65 = ref span31[0]; - num3 = 2; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span32 = CollectionsMarshal.AsSpan(list66); - span32[0] = "Updated Allied Society journal text"; - span32[1] = "Improved Allied Society rank handling"; - reference65 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list66); - ref ChangeEntry reference66 = ref span31[1]; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = "Added IPC for Allied Society: AddAlliedSocietyOptimalQuests, GetAlliedSocietyOptimalQuests"; - reference66 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list67); - ref ChangeEntry reference67 = ref span31[2]; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = "Fixed quest (We Come in Peace)"; - reference67 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list68); - reference64 = new ChangelogEntry("7.38.6", releaseDate24, list65); - ref ChangelogEntry reference68 = ref span[24]; - DateOnly releaseDate25 = new DateOnly(2025, 11, 24); - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span33 = CollectionsMarshal.AsSpan(list69); - ref ChangeEntry reference69 = ref span33[0]; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = "Added Allied Society daily allowance tracker with bulk quest adding buttons"; - reference69 = new ChangeEntry(EChangeCategory.Added, "Major features", list70); - ref ChangeEntry reference70 = ref span33[1]; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = "Added IPC for Allied Society: GetRemainingAllowances, GetTimeUntilReset, GetAvailableQuestIds, GetAllAvailableQuestCounts, IsMaxRank, GetCurrentRank, GetSocietiesWithAvailableQuests"; - reference70 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list71); - reference68 = new ChangelogEntry("7.38.5", releaseDate25, list69); - ref ChangelogEntry reference71 = ref span[25]; - DateOnly releaseDate26 = new DateOnly(2025, 11, 23); - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span34 = CollectionsMarshal.AsSpan(list72); - ref ChangeEntry reference72 = ref span34[0]; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = "Explicitly declare support for BMR singleplayer duty (The Rematch)"; - reference72 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list73); - ref ChangeEntry reference73 = ref span34[1]; - num3 = 8; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span35 = CollectionsMarshal.AsSpan(list74); - span35[0] = "Fixed quest (Microbrewing) to not get stuck near ramp"; - span35[1] = "Fixed quest (The Illuminated Land) where pathing would kill the player due to fall damage"; - span35[2] = "Fixed quest (It's Probably Not Pirates) improper pathing and removed unneeded step"; - span35[3] = "Fixed quest (The Black Wolf's Ultimatum) not exiting landing area"; - span35[4] = "Fixed quest (Magiteknical Failure) from not interacting with NPC due to being mounted"; - span35[5] = "Fixed quest (We Come in Peace) shortcut navigation"; - span35[6] = "Fixed quest (Poisoned Hearts) where incorrect pathing caused the player to die"; - span35[7] = "Fixed quests (Savage Snares) and (An Apple a Day) not detecting kills"; - reference73 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list74); - reference71 = new ChangelogEntry("7.38.4", releaseDate26, list72); - ref ChangelogEntry reference74 = ref span[26]; - DateOnly releaseDate27 = new DateOnly(2025, 11, 23); - num2 = 3; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span36 = CollectionsMarshal.AsSpan(list75); - ref ChangeEntry reference75 = ref span36[0]; - num3 = 2; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span37 = CollectionsMarshal.AsSpan(list76); - span37[0] = "Added RequireHq to crafting InteractionType"; - span37[1] = "Mark GC quests as Locked if rank not achieved"; - reference75 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list76); - ref ChangeEntry reference76 = ref span36[1]; - num3 = 2; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span38 = CollectionsMarshal.AsSpan(list77); - span38[0] = "Added IPC for stop conditions: GetStopConditionsEnabled, SetStopConditionsEnabled, GetStopQuestList, AddStopQuest, RemoveStopQuest, ClearStopQuests, GetLevelStopCondition, SetLevelStopCondition, GetSequenceStopCondition, SetSequenceStopCondition"; - span38[1] = "Added IPC for priority quests: GetPriorityQuests, RemovePriorityQuest, ReorderPriorityQuest, GetAvailablePresets, GetPresetQuests, AddPresetToPriority, IsPresetAvailable, IsQuestInPriority, GetQuestPriorityIndex, HasAvailablePriorityQuests"; - reference76 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list77); - ref ChangeEntry reference77 = ref span36[2]; - num3 = 3; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span39 = CollectionsMarshal.AsSpan(list78); - span39[0] = "Fixed line breaks not working in dialog strings"; - span39[1] = "Fixed quest (Labor of Love)"; - span39[2] = "Fixed quest (Sea of Sorrow)"; - reference77 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list78); - reference74 = new ChangelogEntry("7.38.3", releaseDate27, list75); - ref ChangelogEntry reference78 = ref span[27]; - DateOnly releaseDate28 = new DateOnly(2025, 11, 18); - num2 = 3; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span40 = CollectionsMarshal.AsSpan(list79); - ref ChangeEntry reference79 = ref span40[0]; - num3 = 2; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span41 = CollectionsMarshal.AsSpan(list80); - span41[0] = "Auto Duty unsync options for each duty (Duty Support, Unsync Solo, Unsync Party)"; - span41[1] = "Added Auto Duty unsync options to quest schema and updated quests using old unsync method"; - reference79 = new ChangeEntry(EChangeCategory.Added, "Major features", list80); - ref ChangeEntry reference80 = ref span40[1]; - num3 = 3; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span42 = CollectionsMarshal.AsSpan(list81); - span42[0] = "Added IPC for duty sync handling: GetDefaultDutyMode, SetDefaultDutyMode"; - span42[1] = "Added IPC for duty mode overrides: GetDutyModeOverride, SetDutyModeOverride"; - span42[2] = "Added IPC for clearing overrides: ClearDutyModeOverride, ClearAllDutyModeOverrides"; - reference80 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list81); - span40[2] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest (Constant Cravings)"); - reference78 = new ChangelogEntry("7.38.2", releaseDate28, list79); - ref ChangelogEntry reference81 = ref span[28]; - DateOnly releaseDate29 = new DateOnly(2025, 11, 18); - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span43 = CollectionsMarshal.AsSpan(list82); - ref ChangeEntry reference82 = ref span43[0]; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = "Added new fields to quest schema"; - reference82 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list83); - ref ChangeEntry reference83 = ref span43[1]; - num3 = 3; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span44 = CollectionsMarshal.AsSpan(list84); - span44[0] = "A Faerie Tale Come True"; - span44[1] = "Constant Cravings"; - span44[2] = "A Bridge Too Full"; - reference83 = new ChangeEntry(EChangeCategory.QuestUpdates, "Added new quest paths", list84); - ref ChangeEntry reference84 = ref span43[2]; - num3 = 3; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span45 = CollectionsMarshal.AsSpan(list85); - span45[0] = "Fixed various quest schemas"; - span45[1] = "Fixed changelog bullet point encoding"; - span45[2] = "Fixed item use to wait until item is used before next action"; - reference84 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list85); - reference81 = new ChangelogEntry("7.38.1", releaseDate29, list82); - ref ChangelogEntry reference85 = ref span[29]; - DateOnly releaseDate30 = new DateOnly(2025, 11, 17); - num2 = 5; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span46 = CollectionsMarshal.AsSpan(list86); - ref ChangeEntry reference86 = ref span46[0]; - num3 = 2; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span47 = CollectionsMarshal.AsSpan(list87); - span47[0] = "Quest sequence window to show expected sequences in each quest (with quest searching)"; - span47[1] = "Changelog"; - reference86 = new ChangeEntry(EChangeCategory.Added, "Major features", list87); - ref ChangeEntry reference87 = ref span46[1]; - num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span48 = CollectionsMarshal.AsSpan(list88); - span48[0] = "Updated quest schemas"; - span48[1] = "Added search bar to preferred mounts and capitalization to mirror game mount names"; - reference87 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list88); - ref ChangeEntry reference88 = ref span46[2]; - num3 = 3; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span49 = CollectionsMarshal.AsSpan(list89); - span49[0] = "Renamed IsQuestCompleted → IsQuestComplete"; - span49[1] = "Renamed IsQuestAvailable → IsReadyToAcceptQuest"; - span49[2] = "Added GetCurrentTask IPC"; - reference88 = new ChangeEntry(EChangeCategory.Changed, "IPC changes", list89); - span46[3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added all Hildibrand quests"); - span46[4] = new ChangeEntry(EChangeCategory.Fixed, "Fixed credits/cutscenes playback"); - reference85 = new ChangelogEntry("7.38.0", releaseDate30, list86); - ref ChangelogEntry reference89 = ref span[30]; - DateOnly releaseDate31 = new DateOnly(2025, 11, 8); - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Fall Guys quest (Just Crowning Around)"); - reference89 = new ChangelogEntry("6.38", releaseDate31, list90); - ref ChangelogEntry reference90 = ref span[31]; - DateOnly releaseDate32 = new DateOnly(2025, 11, 8); - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Cosmic Exploration and various unlock quests"); - reference90 = new ChangelogEntry("6.37", releaseDate32, list91); - ref ChangelogEntry reference91 = ref span[32]; - DateOnly releaseDate33 = new DateOnly(2025, 11, 2); - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 6 quest (With High Spirits)"); - reference91 = new ChangelogEntry("6.36", releaseDate33, list92); - ref ChangelogEntry reference92 = ref span[33]; - DateOnly releaseDate34 = new DateOnly(2025, 10, 28); - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed level 3 MSQ handling if character started on non-XP buff world"); - reference92 = new ChangelogEntry("6.35", releaseDate34, list93); - ref ChangelogEntry reference93 = ref span[34]; - DateOnly releaseDate35 = new DateOnly(2025, 10, 23); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span50 = CollectionsMarshal.AsSpan(list94); - span50[0] = new ChangeEntry(EChangeCategory.Added, "Added clear priority quests on logout and on completion config settings"); - span50[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed priority quest importing to respect import order"); - reference93 = new ChangelogEntry("6.34", releaseDate35, list94); - ref ChangelogEntry reference94 = ref span[35]; - DateOnly releaseDate36 = new DateOnly(2025, 10, 23); - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed RSR combat module"); - reference94 = new ChangelogEntry("6.33", releaseDate36, list95); - ref ChangelogEntry reference95 = ref span[36]; - DateOnly releaseDate37 = new DateOnly(2025, 10, 23); - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 5 quest (Forged in Corn)"); - reference95 = new ChangelogEntry("6.32", releaseDate37, list96); - ref ChangelogEntry reference96 = ref span[37]; - DateOnly releaseDate38 = new DateOnly(2025, 10, 21); - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new ChangeEntry(EChangeCategory.Changed, "Added checks for moogle and allied society quests when using add all available quests"); - reference96 = new ChangelogEntry("6.31", releaseDate38, list97); - ref ChangelogEntry reference97 = ref span[38]; - DateOnly releaseDate39 = new DateOnly(2025, 10, 21); - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new ChangeEntry(EChangeCategory.Added, "Added button to journal that allows adding all available quests to priority"); - reference97 = new ChangelogEntry("6.30", releaseDate39, list98); - ref ChangelogEntry reference98 = ref span[39]; - DateOnly releaseDate40 = new DateOnly(2025, 10, 20); - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span51 = CollectionsMarshal.AsSpan(list99); - ref ChangeEntry reference99 = ref span51[0]; - num3 = 2; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span52 = CollectionsMarshal.AsSpan(list100); - span52[0] = "Added item count to combat handling rework"; - span52[1] = "Updated Pandora conflicting features"; - reference99 = new ChangeEntry(EChangeCategory.Changed, "Combat handling improvements", list100); - span51[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest to purchase Gysahl Greens if not in inventory"); - reference98 = new ChangelogEntry("6.29", releaseDate40, list99); - ref ChangelogEntry reference100 = ref span[40]; - DateOnly releaseDate41 = new DateOnly(2025, 10, 19); - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new ChangeEntry(EChangeCategory.Changed, "Reworked kill count combat handling - combat and enemy kills are now processed instantly"); - reference100 = new ChangelogEntry("6.28", releaseDate41, list101); - ref ChangelogEntry reference101 = ref span[41]; - DateOnly releaseDate42 = new DateOnly(2025, 10, 18); - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span53 = CollectionsMarshal.AsSpan(list102); - span53[0] = new ChangeEntry(EChangeCategory.Changed, "Improved Aether Current checking logic"); - span53[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Chocobo Taxi Stand CheckSkip error and Patch 7.3 Fantasia unlock quest date/time"); - reference101 = new ChangelogEntry("6.27", releaseDate42, list102); - ref ChangelogEntry reference102 = ref span[42]; - DateOnly releaseDate43 = new DateOnly(2025, 10, 18); - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests"); - reference102 = new ChangelogEntry("6.26", releaseDate43, list103); - ref ChangelogEntry reference103 = ref span[43]; - DateOnly releaseDate44 = new DateOnly(2025, 10, 17); - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added All Saints' Wake 2025 quests and 7.35 Yok Huy rank 4 quests"); - reference103 = new ChangelogEntry("6.25", releaseDate44, list104); - ref ChangelogEntry reference104 = ref span[44]; - DateOnly releaseDate45 = new DateOnly(2025, 10, 16); - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests and Deep Dungeon quest"); - reference104 = new ChangelogEntry("6.24", releaseDate45, list105); - ref ChangelogEntry reference105 = ref span[45]; - DateOnly releaseDate46 = new DateOnly(2025, 10, 13); - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quest (Larder Logistics)"); - reference105 = new ChangelogEntry("6.23", releaseDate46, list106); - ref ChangelogEntry reference106 = ref span[46]; - DateOnly releaseDate47 = new DateOnly(2025, 10, 12); - num2 = 3; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span54 = CollectionsMarshal.AsSpan(list107); - span54[0] = new ChangeEntry(EChangeCategory.Changed, "Prevent disabled or Locked quests from being started as 'Start as next quest'"); - span54[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); - span54[2] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Yok Huy quest and journal quest chain priority issues"); - reference106 = new ChangelogEntry("6.22", releaseDate47, list107); - ref ChangelogEntry reference107 = ref span[47]; - DateOnly releaseDate48 = new DateOnly(2025, 10, 12); - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span55 = CollectionsMarshal.AsSpan(list108); - span55[0] = new ChangeEntry(EChangeCategory.Added, "Added expansion abbreviation to journal window"); - span55[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); - reference107 = new ChangelogEntry("6.21", releaseDate48, list108); - ref ChangelogEntry reference108 = ref span[48]; - DateOnly releaseDate49 = new DateOnly(2025, 10, 10); - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span56 = CollectionsMarshal.AsSpan(list109); - span56[0] = new ChangeEntry(EChangeCategory.Changed, "Allow completed repeatable quests to be used with 'Add quest and requirements to priority' feature"); - span56[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 quest (A Work of Cart)"); - reference108 = new ChangelogEntry("6.20", releaseDate49, list109); - ref ChangelogEntry reference109 = ref span[49]; - DateOnly releaseDate50 = new DateOnly(2025, 10, 9); - num2 = 3; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span57 = CollectionsMarshal.AsSpan(list110); - span57[0] = new ChangeEntry(EChangeCategory.Added, "Added config to batch Allied Society quest turn-ins"); - span57[1] = new ChangeEntry(EChangeCategory.Changed, "Repeatable quests now show correct availability state in journal"); - span57[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 2 quests"); - reference109 = new ChangelogEntry("6.19", releaseDate50, list110); - ref ChangelogEntry reference110 = ref span[50]; - DateOnly releaseDate51 = new DateOnly(2025, 10, 9); - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span58 = CollectionsMarshal.AsSpan(list111); - span58[0] = new ChangeEntry(EChangeCategory.Changed, "Show once completed quests with improved state display"); - span58[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy daily quest and improvements to various Yok Huy quests"); - reference110 = new ChangelogEntry("6.18", releaseDate51, list111); - ref ChangelogEntry reference111 = ref span[51]; - DateOnly releaseDate52 = new DateOnly(2025, 10, 8); - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 and rank 2 quests"); - reference111 = new ChangelogEntry("6.17", releaseDate52, list112); - ref ChangelogEntry reference112 = ref span[52]; - DateOnly releaseDate53 = new DateOnly(2025, 10, 8); - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon quest (Faerie Tale)"); - reference112 = new ChangelogEntry("6.16", releaseDate53, list113); - ref ChangelogEntry reference113 = ref span[53]; - DateOnly releaseDate54 = new DateOnly(2025, 10, 8); - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span59 = CollectionsMarshal.AsSpan(list114); - span59[0] = new ChangeEntry(EChangeCategory.Changed, "Dalamud cleanup"); - span59[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest level requirement check log spam"); - reference113 = new ChangelogEntry("6.15", releaseDate54, list114); - ref ChangelogEntry reference114 = ref span[54]; - DateOnly releaseDate55 = new DateOnly(2025, 10, 8); - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check logic if quest were MSQ"); - reference114 = new ChangelogEntry("6.14", releaseDate55, list115); - ref ChangelogEntry reference115 = ref span[55]; - DateOnly releaseDate56 = new DateOnly(2025, 10, 8); - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span60 = CollectionsMarshal.AsSpan(list116); - ref ChangeEntry reference116 = ref span60[0]; - num3 = 3; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span61 = CollectionsMarshal.AsSpan(list117); - span61[0] = "Context menu option to add required quests and their chain to priority list"; - span61[1] = "AetheryteShortcut to multiple quests"; - span61[2] = "Artisan as a recommended plugin/dependency"; - reference116 = new ChangeEntry(EChangeCategory.Added, "Quest improvements", list117); - span60[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check and priority list issues"); - reference115 = new ChangelogEntry("6.13", releaseDate56, list116); - ref ChangelogEntry reference117 = ref span[56]; - DateOnly releaseDate57 = new DateOnly(2025, 10, 7); - num2 = 4; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span62 = CollectionsMarshal.AsSpan(list118); - ref ChangeEntry reference118 = ref span62[0]; - num3 = 4; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span63 = CollectionsMarshal.AsSpan(list119); - span63[0] = "FATE combat handling with auto level syncing"; - span63[1] = "Start accepted quests from journal with 'Start as next quest'"; - span63[2] = "Update quest tracking when quests are hidden or prioritised in game"; - span63[3] = "QuestMap as a recommended plugin/dependency"; - reference118 = new ChangeEntry(EChangeCategory.Added, "FATE and quest tracking", list119); - ref ChangeEntry reference119 = ref span62[1]; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span64 = CollectionsMarshal.AsSpan(list120); - span64[0] = "Always prioritise next quest during teleportation/zone transitions"; - span64[1] = "Improved accepted quest logic with abandoned quest detection"; - span64[2] = "Show quests without quest paths as Locked"; - reference119 = new ChangeEntry(EChangeCategory.Changed, "Quest prioritisation improvements", list120); - span62[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon, Hildibrand, Yok Huy, Monster Hunter Wilds Collab, and Doman Enclave quests"); - span62[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed accepted/active quest display and Hildibrand quest issues"); - reference117 = new ChangelogEntry("6.12", releaseDate57, list118); - ref ChangelogEntry reference120 = ref span[57]; - DateOnly releaseDate58 = new DateOnly(2025, 10, 3); - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new ChangeEntry(EChangeCategory.Changed, "Added remaining checks for quest priority to prevent infinite teleport looping"); - reference120 = new ChangelogEntry("6.11", releaseDate58, list121); - ref ChangelogEntry reference121 = ref span[58]; - DateOnly releaseDate59 = new DateOnly(2025, 10, 2); - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref ChangeEntry reference122 = ref CollectionsMarshal.AsSpan(list122)[0]; - num3 = 2; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span65 = CollectionsMarshal.AsSpan(list123); - span65[0] = "Don't show quests as available if player doesn't meet level requirements"; - span65[1] = "Updated 'required for MSQ' text in Crystal Tower quest preset window"; - reference122 = new ChangeEntry(EChangeCategory.Changed, "Quest window improvements", list123); - reference121 = new ChangelogEntry("6.10", releaseDate59, list122); - ref ChangelogEntry reference123 = ref span[59]; - DateOnly releaseDate60 = new DateOnly(2025, 9, 21); - num2 = 5; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span66 = CollectionsMarshal.AsSpan(list124); - ref ChangeEntry reference124 = ref span66[0]; - num3 = 4; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span67 = CollectionsMarshal.AsSpan(list125); - span67[0] = "Reworked event quest handling - automatically displays when events are active"; - span67[1] = "Reworked journal system with improved filtering and display"; - span67[2] = "Reworked Priority Quests tab (Manual Priority and Quest Presets)"; - span67[3] = "Quest path viewer site (https://wigglymuffin.github.io/FFXIV-Tools/)"; - reference124 = new ChangeEntry(EChangeCategory.Added, "Major system reworks", list125); - ref ChangeEntry reference125 = ref span66[1]; - num3 = 4; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span68 = CollectionsMarshal.AsSpan(list126); - span68[0] = "Questionable.IsQuestCompleted"; - span68[1] = "Questionable.IsQuestAvailable"; - span68[2] = "Questionable.IsQuestAccepted"; - span68[3] = "Questionable.IsQuestUnobtainable"; - reference125 = new ChangeEntry(EChangeCategory.Added, "New IPC commands", list126); - ref ChangeEntry reference126 = ref span66[2]; - num3 = 5; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span69 = CollectionsMarshal.AsSpan(list127); - span69[0] = "Improved JSON quest validation with specific error reasons"; - span69[1] = "Added stop at sequence stop condition"; - span69[2] = "Improved Pandora plugin conflict detection"; - span69[3] = "Improved DialogueChoices regex matching"; - span69[4] = "Improved refresh checker for all quest states"; - reference126 = new ChangeEntry(EChangeCategory.Changed, "Various improvements", list127); - span66[3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.31 Occult Crescent quests"); - span66[4] = new ChangeEntry(EChangeCategory.Fixed, "Fixed cutscene crashes, Single Player Duty triggers, and various quest issues"); - reference123 = new ChangelogEntry("6.9", releaseDate60, list124); - ref ChangelogEntry reference127 = ref span[60]; - DateOnly releaseDate61 = new DateOnly(2025, 9, 2); - num2 = 4; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span70 = CollectionsMarshal.AsSpan(list128); - ref ChangeEntry reference128 = ref span70[0]; - num3 = 4; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span71 = CollectionsMarshal.AsSpan(list129); - span71[0] = "Help commands and priority quest command"; - span71[1] = "Prevent 'CompleteQuest' step setting"; - span71[2] = "Duty counts and controls in 'Quest Battles' tab"; - span71[3] = "'Refresh quest timer' setting (WIP)"; - reference128 = new ChangeEntry(EChangeCategory.Added, "Command and UI improvements", list129); - span70[1] = new ChangeEntry(EChangeCategory.Changed, "Improved 'Clear All' buttons to require CTRL being held"); - span70[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Zodiac quests and 7.31 Cosmic/Occult Crescent quests"); - span70[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Fishing for Friendship and Cosmic Exploration quests"); - reference127 = new ChangelogEntry("6.8", releaseDate61, list128); - ref ChangelogEntry reference129 = ref span[61]; - DateOnly releaseDate62 = new DateOnly(2025, 8, 27); - num2 = 4; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span72 = CollectionsMarshal.AsSpan(list130); - ref ChangeEntry reference130 = ref span72[0]; - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span73 = CollectionsMarshal.AsSpan(list131); - span73[0] = "Icon to 'Clear All' button in stop conditions"; - span73[1] = "Duty counts and 'Enable All' button in 'Duties' tab"; - reference130 = new ChangeEntry(EChangeCategory.Added, "UI improvements", list131); - span72[1] = new ChangeEntry(EChangeCategory.Changed, "Renamed 'Clear' button to 'Clear All' in priority window"); - span72[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Rising 2025 Event Quests"); - span72[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed clipboard assigning blacklist to whitelist in 'Duties' tab"); - reference129 = new ChangelogEntry("6.7", releaseDate62, list130); - ref ChangelogEntry reference131 = ref span[62]; - DateOnly releaseDate63 = new DateOnly(2025, 8, 25); - num2 = 2; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span74 = CollectionsMarshal.AsSpan(list132); - ref ChangeEntry reference132 = ref span74[0]; - num3 = 2; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span75 = CollectionsMarshal.AsSpan(list133); - span75[0] = "Missing emotes to schema and emote handler"; - span75[1] = "Improved stop conditions with 'Clear All' button"; - reference132 = new ChangeEntry(EChangeCategory.Added, "Emote support and stop conditions", list133); - span74[1] = new ChangeEntry(EChangeCategory.Changed, "Stop at level functionality"); - reference131 = new ChangelogEntry("6.6", releaseDate63, list132); - ref ChangelogEntry reference133 = ref span[63]; - DateOnly releaseDate64 = new DateOnly(2025, 8, 25); - num2 = 2; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span76 = CollectionsMarshal.AsSpan(list134); - span76[0] = new ChangeEntry(EChangeCategory.Fixed, "Potential fix to single/solo duties softlocking"); - span76[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added San d'Oria: The Second Walk and various side quests"); - reference133 = new ChangelogEntry("6.5", releaseDate64, list134); - Changelogs = list; - } -} diff --git a/Questionable/Questionable.Data/DutyInfo.cs b/Questionable/Questionable.Data/DutyInfo.cs deleted file mode 100644 index b37e13e..0000000 --- a/Questionable/Questionable.Data/DutyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Collections.Immutable; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using Questionable.Model.Questing; - -namespace Questionable.Data; - -public sealed record DutyInfo(uint ContentFinderConditionId, uint ContentId, string Name, uint ContentTypeId, string ContentTypeName, ushort Level, ushort ItemLevel, ImmutableList UnlockQuests, bool IsHighEndDuty, EDutyCategory DutyCategory) -{ - public bool IsUnlocked => UIState.IsInstanceContentUnlocked(ContentId); - - public bool? IsCompleted - { - get - { - if (DutyCategory != EDutyCategory.DeepDungeon) - { - return UIState.IsInstanceContentCompleted((ushort)ContentId); - } - return null; - } - } -} diff --git a/Questionable/Questionable.Data/DutyUnlockData.cs b/Questionable/Questionable.Data/DutyUnlockData.cs deleted file mode 100644 index edee09d..0000000 --- a/Questionable/Questionable.Data/DutyUnlockData.cs +++ /dev/null @@ -1,394 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Linq; -using Dalamud.Game; -using Dalamud.Plugin.Services; -using Dalamud.Utility; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Microsoft.Extensions.Logging; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Data; - -internal sealed class DutyUnlockData -{ - private static class ContentTypeIds - { - public const uint Dungeon = 2u; - - public const uint Guildhest = 3u; - - public const uint Trial = 4u; - - public const uint Raid = 5u; - - public const uint PvP = 6u; - - public const uint QuestBattle = 7u; - - public const uint DeepDungeon = 21u; - - public const uint AllianceRaid = 26u; - - public const uint Ultimate = 28u; - - public const uint VCDungeonFinder = 29u; - - public const uint Criterion = 30u; - - public const uint CriterionSavage = 31u; - } - - private static class ContentMemberTypeIds - { - public const byte LightParty = 2; - - public const byte FullParty = 3; - - public const byte Alliance = 4; - } - - private readonly ImmutableDictionary _duties; - - private readonly ImmutableDictionary> _questToDuties; - - private readonly ImmutableDictionary> _dutyToQuests; - - private readonly ILogger _logger; - - public DutyUnlockData(IDataManager dataManager, ILogger logger) - { - _logger = logger; - ExcelSheet excelSheet = dataManager.GetExcelSheet(); - ExcelSheet excelSheet2 = dataManager.GetExcelSheet(); - ImmutableDictionary immutableDictionary = (from c in excelSheet - where c.RowId != 0 && c.Content.RowId != 0 && c.ContentLinkType == 1 - group c by c.Content.RowId).ToImmutableDictionary((IGrouping g) => g.Key, (IGrouping g) => g.First().RowId); - Dictionary> dictionary = new Dictionary>(); - Dictionary> dictionary2 = new Dictionary>(); - foreach (QuestEx item in excelSheet2.Where((QuestEx q) => q.RowId != 0)) - { - uint rowId = item.InstanceContentUnlock.RowId; - if (rowId != 0 && immutableDictionary.TryGetValue(rowId, out var value)) - { - QuestId questId = QuestId.FromRowId(item.RowId); - if (!dictionary.ContainsKey(questId)) - { - dictionary[questId] = new List(); - } - dictionary[questId].Add(value); - if (!dictionary2.ContainsKey(value)) - { - dictionary2[value] = new List(); - } - dictionary2[value].Add(questId); - } - } - _questToDuties = dictionary.ToImmutableDictionary((KeyValuePair> x) => x.Key, (KeyValuePair> x) => x.Value.ToImmutableList()); - _dutyToQuests = dictionary2.ToImmutableDictionary((KeyValuePair> x) => x.Key, (KeyValuePair> x) => x.Value.ToImmutableList()); - Dictionary dictionary3 = new Dictionary(); - foreach (ContentFinderCondition item2 in excelSheet.Where((ContentFinderCondition x) => x.RowId != 0 && x.Content.RowId != 0)) - { - if (item2.ContentLinkType != 1) - { - continue; - } - ContentType? valueNullable = item2.ContentType.ValueNullable; - if (!valueNullable.HasValue) - { - continue; - } - uint rowId2 = valueNullable.Value.RowId; - if (rowId2 - 6 <= 1) - { - continue; - } - string text = FixName(item2.Name.ToDalamudString().ToString(), dataManager.Language); - if (!string.IsNullOrWhiteSpace(text) && !IsExcludedContent(text, item2.RowId)) - { - List value2; - ImmutableList unlockQuests = (dictionary2.TryGetValue(item2.RowId, out value2) ? value2.ToImmutableList() : ImmutableList.Empty); - uint rowId3 = item2.ContentMemberType.RowId; - EDutyCategory? eDutyCategory = DetermineDutyCategory(rowId2, text, item2.HighEndDuty, item2.RowId, (byte)rowId3, item2.ContentLinkType); - if (eDutyCategory.HasValue) - { - DutyInfo value3 = new DutyInfo(item2.RowId, item2.Content.RowId, text, rowId2, valueNullable.Value.Name.ToDalamudString().ToString(), item2.ClassJobLevelRequired, item2.ItemLevelRequired, unlockQuests, item2.HighEndDuty, eDutyCategory.Value); - dictionary3[item2.RowId] = value3; - } - } - } - _duties = dictionary3.ToImmutableDictionary(); - _logger.LogInformation("Loaded {DutyCount} duties with {QuestMappings} quest unlock mappings", _duties.Count, _questToDuties.Values.Sum((ImmutableList x) => x.Count)); - } - - private static bool IsExcludedContent(string name, uint cfcId) - { - if (cfcId - 69 <= 2) - { - return true; - } - return false; - } - - private static EDutyCategory? DetermineDutyCategory(uint contentTypeId, string name, bool isHighEndDuty, uint cfcId, byte contentMemberType, byte contentLinkType) - { - if (name.EndsWith("(Chaotic)", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.ChaoticAllianceRaid; - } - switch (contentTypeId) - { - case 2u: - if (name.EndsWith("(Hard)", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.HardDungeon; - } - return EDutyCategory.Dungeon; - case 3u: - return EDutyCategory.Guildhest; - case 4u: - if (name.EndsWith("(Unreal)", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.UnrealTrial; - } - if (name.EndsWith("(Extreme)", StringComparison.OrdinalIgnoreCase) || name.StartsWith("The Minstrel's Ballad:", StringComparison.OrdinalIgnoreCase) || isHighEndDuty) - { - return EDutyCategory.ExtremeTrial; - } - if (name.EndsWith("(Hard)", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.HardTrial; - } - return EDutyCategory.Trial; - case 5u: - if (contentMemberType == 4) - { - if (isHighEndDuty) - { - return EDutyCategory.ChaoticAllianceRaid; - } - return EDutyCategory.AllianceRaid; - } - if (name.EndsWith("(Savage)", StringComparison.OrdinalIgnoreCase) || isHighEndDuty) - { - return EDutyCategory.SavageRaid; - } - return EDutyCategory.NormalRaid; - case 21u: - if (name.Contains("Quantum", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.QuantumBattle; - } - return EDutyCategory.DeepDungeon; - case 26u: - if (isHighEndDuty) - { - return EDutyCategory.ChaoticAllianceRaid; - } - return EDutyCategory.AllianceRaid; - case 28u: - return EDutyCategory.Ultimate; - case 29u: - case 30u: - if (name.EndsWith("(Savage)", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.CriterionSavage; - } - if (name.StartsWith("Another", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.CriterionDungeon; - } - return EDutyCategory.VariantDungeon; - case 31u: - return EDutyCategory.CriterionSavage; - default: - if (name.EndsWith("(Savage)", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.SavageRaid; - } - if (name.EndsWith("(Extreme)", StringComparison.OrdinalIgnoreCase) || name.StartsWith("The Minstrel's Ballad:", StringComparison.OrdinalIgnoreCase)) - { - return EDutyCategory.ExtremeTrial; - } - return null; - } - } - - private static string FixName(string name, ClientLanguage language) - { - if (string.IsNullOrEmpty(name) || language != ClientLanguage.English) - { - return name; - } - return string.Concat(name[0].ToString().ToUpper(CultureInfo.InvariantCulture).AsSpan(), name.AsSpan(1)); - } - - public IEnumerable GetAllDuties() - { - return _duties.Values; - } - - public IEnumerable GetDutiesByContentType(uint contentTypeId) - { - return _duties.Values.Where((DutyInfo d) => d.ContentTypeId == contentTypeId); - } - - public IEnumerable GetDutiesByCategory(EDutyCategory category) - { - return _duties.Values.Where((DutyInfo d) => d.DutyCategory == category); - } - - public IEnumerable GetDungeons() - { - return GetDutiesByCategory(EDutyCategory.Dungeon); - } - - public IEnumerable GetHardDungeons() - { - return GetDutiesByCategory(EDutyCategory.HardDungeon); - } - - public IEnumerable GetGuildhests() - { - return GetDutiesByCategory(EDutyCategory.Guildhest); - } - - public IEnumerable GetTrials() - { - return GetDutiesByCategory(EDutyCategory.Trial); - } - - public IEnumerable GetHardTrials() - { - return GetDutiesByCategory(EDutyCategory.HardTrial); - } - - public IEnumerable GetExtremeTrials() - { - return GetDutiesByCategory(EDutyCategory.ExtremeTrial); - } - - public IEnumerable GetUnrealTrials() - { - return GetDutiesByCategory(EDutyCategory.UnrealTrial); - } - - public IEnumerable GetNormalRaids() - { - return GetDutiesByCategory(EDutyCategory.NormalRaid); - } - - public IEnumerable GetSavageRaids() - { - return GetDutiesByCategory(EDutyCategory.SavageRaid); - } - - public IEnumerable GetUltimateRaids() - { - return GetDutiesByCategory(EDutyCategory.Ultimate); - } - - public IEnumerable GetAllianceRaids() - { - return GetDutiesByCategory(EDutyCategory.AllianceRaid); - } - - public IEnumerable GetChaoticAllianceRaids() - { - return GetDutiesByCategory(EDutyCategory.ChaoticAllianceRaid); - } - - public IEnumerable GetDeepDungeons() - { - return GetDutiesByCategory(EDutyCategory.DeepDungeon); - } - - public IEnumerable GetVariantDungeons() - { - return GetDutiesByCategory(EDutyCategory.VariantDungeon); - } - - public IEnumerable GetCriterionDungeons() - { - return GetDutiesByCategory(EDutyCategory.CriterionDungeon); - } - - public IEnumerable GetCriterionSavageDungeons() - { - return GetDutiesByCategory(EDutyCategory.CriterionSavage); - } - - public IEnumerable GetQuantumBattles() - { - return GetDutiesByCategory(EDutyCategory.QuantumBattle); - } - - public IEnumerable GetDutiesUnlockedByQuest(QuestId questId) - { - if (!_questToDuties.TryGetValue(questId, out ImmutableList value)) - { - yield break; - } - foreach (uint item in value) - { - if (_duties.TryGetValue(item, out DutyInfo value2)) - { - yield return value2; - } - } - } - - public IEnumerable GetUnlockQuestsForDuty(uint cfcId) - { - if (_dutyToQuests.TryGetValue(cfcId, out ImmutableList value)) - { - return value; - } - return Array.Empty(); - } - - public bool IsDutyUnlocked(uint cfcId) - { - if (!_duties.TryGetValue(cfcId, out DutyInfo value)) - { - return false; - } - return UIState.IsInstanceContentUnlocked(value.ContentId); - } - - public static bool IsContentUnlocked(uint contentId) - { - return UIState.IsInstanceContentUnlocked(contentId); - } - - public bool TryGetDuty(uint cfcId, [NotNullWhen(true)] out DutyInfo? duty) - { - return _duties.TryGetValue(cfcId, out duty); - } - - public DutyInfo? GetDuty(uint cfcId) - { - return _duties.GetValueOrDefault(cfcId); - } - - public IEnumerable GetUnlockedDuties() - { - return _duties.Values.Where((DutyInfo d) => UIState.IsInstanceContentUnlocked(d.ContentId)); - } - - public IEnumerable GetLockedDuties() - { - return _duties.Values.Where((DutyInfo d) => !UIState.IsInstanceContentUnlocked(d.ContentId)); - } - - public IEnumerable GetDutiesWithUnlockQuests() - { - return _duties.Values.Where((DutyInfo d) => d.UnlockQuests.Count > 0); - } -} diff --git a/Questionable/Questionable.Data/EDutyCategory.cs b/Questionable/Questionable.Data/EDutyCategory.cs deleted file mode 100644 index f374ac6..0000000 --- a/Questionable/Questionable.Data/EDutyCategory.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace Questionable.Data; - -public enum EDutyCategory -{ - Dungeon, - HardDungeon, - Guildhest, - Trial, - HardTrial, - ExtremeTrial, - UnrealTrial, - NormalRaid, - SavageRaid, - AllianceRaid, - ChaoticAllianceRaid, - Ultimate, - DeepDungeon, - VariantDungeon, - CriterionDungeon, - CriterionSavage, - QuantumBattle -} diff --git a/Questionable/Questionable.Data/HuntMobData.cs b/Questionable/Questionable.Data/HuntMobData.cs deleted file mode 100644 index ed478ca..0000000 --- a/Questionable/Questionable.Data/HuntMobData.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System.Collections.Generic; -using Dalamud.Plugin.Services; -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace Questionable.Data; - -internal sealed class HuntMobData -{ - private readonly HashSet _aRankDataIds = new HashSet(); - - private readonly HashSet _sRankDataIds = new HashSet(); - - private readonly HashSet _allHuntMobDataIds = new HashSet(); - - public const float SafeDistance = 15f; - - public IReadOnlySet ARankDataIds => _aRankDataIds; - - public IReadOnlySet SRankDataIds => _sRankDataIds; - - public IReadOnlySet AllHuntMobDataIds => _allHuntMobDataIds; - - public HuntMobData(IDataManager dataManager) - { - ExcelSheet excelSheet = dataManager.GetExcelSheet(); - if (excelSheet == null) - { - return; - } - foreach (NotoriousMonster item in excelSheet) - { - byte rank = item.Rank; - if ((uint)(rank - 2) > 1u) - { - continue; - } - uint rowId = item.BNpcBase.RowId; - if (rowId != 0) - { - _allHuntMobDataIds.Add(rowId); - if (item.Rank == 2) - { - _aRankDataIds.Add(rowId); - } - else if (item.Rank == 3) - { - _sRankDataIds.Add(rowId); - } - } - } - } - - public bool IsHuntMob(uint dataId) - { - return _allHuntMobDataIds.Contains(dataId); - } - - public bool IsARank(uint dataId) - { - return _aRankDataIds.Contains(dataId); - } - - public bool IsSRank(uint dataId) - { - return _sRankDataIds.Contains(dataId); - } -} diff --git a/Questionable/Questionable.Data/JournalData.cs b/Questionable/Questionable.Data/JournalData.cs index 68ad162..5afa170 100644 --- a/Questionable/Questionable.Data/JournalData.cs +++ b/Questionable/Questionable.Data/JournalData.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using Dalamud.Plugin.Services; -using Lumina.Excel; using Lumina.Excel.Sheets; using Microsoft.Extensions.Logging; using Questionable.Model; @@ -86,12 +85,6 @@ internal sealed class JournalData private readonly ILogger _logger; - public uint? SeasonalEventsCategoryId { get; } - - public IReadOnlySet SeasonalEventGenreIds { get; } - - public uint? MoogleDeliveryGenreId { get; } - public List Genres { get; } public List Categories { get; } @@ -104,38 +97,7 @@ internal sealed class JournalData { JournalData journalData = this; _logger = logger; - ExcelSheet excelSheet = dataManager.GetExcelSheet(); - JournalCategory journalCategory = dataManager.GetExcelSheet().FirstOrDefault((JournalCategory x) => x.Name.ToString().Equals("Seasonal Events", StringComparison.OrdinalIgnoreCase)); - if (journalCategory.RowId != 0) - { - SeasonalEventsCategoryId = journalCategory.RowId; - } - else - { - SeasonalEventsCategoryId = null; - _logger.LogWarning("Could not find 'Seasonal Events' JournalCategory - seasonal event detection may not work correctly"); - } - if (SeasonalEventsCategoryId.HasValue) - { - SeasonalEventGenreIds = (from x in excelSheet - where x.RowId != 0 && x.JournalCategory.RowId == journalData.SeasonalEventsCategoryId.Value - select x.RowId).ToHashSet(); - } - else - { - SeasonalEventGenreIds = new HashSet(); - } - JournalGenre journalGenre = excelSheet.FirstOrDefault((JournalGenre x) => x.Name.ToString().Equals("Delivery Moogle Quests", StringComparison.OrdinalIgnoreCase)); - if (journalGenre.RowId != 0) - { - MoogleDeliveryGenreId = journalGenre.RowId; - } - else - { - MoogleDeliveryGenreId = null; - _logger.LogWarning("Could not find 'Delivery Moogle Quests' JournalGenre - moogle delivery quest detection may not work correctly"); - } - List list = (from x in excelSheet + List list = (from x in dataManager.GetExcelSheet() where x.RowId != 0 && x.Icon > 0 select new Genre(x, questData.GetAllByJournalGenre(x.RowId))).ToList(); QuestRedo row = dataManager.GetExcelSheet().GetRow(1u); @@ -158,7 +120,9 @@ internal sealed class JournalData select new Category(x, journalData.Genres.Where((Genre y) => y.CategoryId == x.RowId).ToList())).ToList(); Sections = (from x in dataManager.GetExcelSheet() select new Section(x, journalData.Categories.Where((Category y) => y.SectionId == x.RowId).ToList())).ToList(); + _logger.LogDebug("Resolving OtherQuests section id..."); OtherQuestsSectionRowId = GetOtherQuestsSectionRowId(dataManager); + _logger.LogDebug("Resolved OtherQuestsSectionRowId = {Id}", OtherQuestsSectionRowId); int? otherQuestsSectionRowId = OtherQuestsSectionRowId; if (otherQuestsSectionRowId.HasValue) { @@ -168,19 +132,20 @@ internal sealed class JournalData if (section != null) { int num = 0; + foreach (Category category in section.Categories) { - foreach (Category category in section.Categories) + foreach (Genre genre in category.Genres) { - foreach (Genre genre in category.Genres) - { - genre.IsUnderOtherQuests = true; - num++; - } + genre.IsUnderOtherQuests = true; + num++; } - return; } + _logger.LogInformation("Marked {Count} genres as under 'Other Quests' (section id {Id})", num, valueOrDefault); + } + else + { + _logger.LogWarning("OtherQuestsSectionRowId {Id} found but matching Section not present in constructed Sections", valueOrDefault); } - _logger.LogWarning("OtherQuestsSectionRowId = {Id} found, but matching Section not present in constructed Sections", valueOrDefault); } else { diff --git a/Questionable/Questionable.Data/QuestData.cs b/Questionable/Questionable.Data/QuestData.cs index d7776c2..b792f6f 100644 --- a/Questionable/Questionable.Data/QuestData.cs +++ b/Questionable/Questionable.Data/QuestData.cs @@ -7,7 +7,6 @@ using System.Runtime.InteropServices; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game.UI; using LLib.GameData; -using Lumina.Excel; using Lumina.Excel.Sheets; using Microsoft.Extensions.Logging; using Questionable.Model; @@ -86,12 +85,11 @@ internal sealed class QuestData startingCities[item.Quest.RowId] = b; } } - ExcelSheet questExSheet = dataManager.GetExcelSheet(); List list = new List(); list.AddRange(from x in dataManager.GetExcelSheet() where x.RowId != 0 where x.IssuerLocation.RowId != 0 - select new QuestInfo(x, questExSheet.GetRow(x.RowId), questChapters.GetValueOrDefault(x.RowId), startingCities.GetValueOrDefault(x.RowId), journalGenreOverrides)); + select new QuestInfo(x, questChapters.GetValueOrDefault(x.RowId), startingCities.GetValueOrDefault(x.RowId), journalGenreOverrides)); list.AddRange(from x in dataManager.GetExcelSheet() where x.RowId != 0 && x.Npc.RowId != 0 select new SatisfactionSupplyInfo(x)); @@ -111,7 +109,7 @@ internal sealed class QuestData list3.Add(0); list3.AddRange((from QuestInfo y in quests.Where((IQuestInfo y) => (uint)y.AlliedSociety == (byte)x.RowId && y.IsRepeatable) select (byte)y.AlliedSocietyRank).Distinct()); - return new global::_003C_003Ez__ReadOnlyList(list3).Select((byte rank) => new AlliedSocietyDailyInfo(x, rank, classJobUtils)); + return new _003C_003Ez__ReadOnlyList(list3).Select((byte rank) => new AlliedSocietyDailyInfo(x, rank, classJobUtils)); } return new global::_003C_003Ez__ReadOnlySingleElementList(new AlliedSocietyDailyInfo(x, 0, classJobUtils)); })); @@ -119,21 +117,36 @@ internal sealed class QuestData List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); Span span = CollectionsMarshal.AsSpan(list2); - span[0] = new AethernetQuestInfo(new AethernetId(1), "Limsa Lominsa"); - span[1] = new AethernetQuestInfo(new AethernetId(2), "Gridania"); - span[2] = new AethernetQuestInfo(new AethernetId(3), "Ul'dah"); - span[3] = new AethernetQuestInfo(new AethernetId(4), "The Gold Saucer"); - span[4] = new AethernetQuestInfo(new AethernetId(5), "Ishgard"); - span[5] = new AethernetQuestInfo(new AethernetId(6), "Idyllshire"); - span[6] = new AethernetQuestInfo(new AethernetId(7), "Rhalgr's Reach"); - span[7] = new AethernetQuestInfo(new AethernetId(8), "Kugane"); - span[8] = new AethernetQuestInfo(new AethernetId(9), "Doman Enclave"); - span[9] = new AethernetQuestInfo(new AethernetId(10), "The Crystarium"); - span[10] = new AethernetQuestInfo(new AethernetId(11), "Eulmore"); - span[11] = new AethernetQuestInfo(new AethernetId(12), "Old Sharlayan"); - span[12] = new AethernetQuestInfo(new AethernetId(13), "Radz-at-Han"); - span[13] = new AethernetQuestInfo(new AethernetId(14), "Tuliyollal"); - span[14] = new AethernetQuestInfo(new AethernetId(15), "Solution Nine"); + int num2 = 0; + span[num2] = new AethernetQuestInfo(new AethernetId(1), "Limsa Lominsa"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(2), "Gridania"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(3), "Ul'dah"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(4), "The Gold Saucer"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(5), "Ishgard"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(6), "Idyllshire"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(7), "Rhalgr's Reach"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(8), "Kugane"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(9), "Doman Enclave"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(10), "The Crystarium"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(11), "Eulmore"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(12), "Old Sharlayan"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(13), "Radz-at-Han"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(14), "Tuliyollal"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(15), "Solution Nine"); List collection = list2; List collection2 = new List(); quests.AddRange(collection); @@ -320,10 +333,12 @@ internal sealed class QuestData throw new ArgumentOutOfRangeException("classJob"); case EClassJob.Gladiator: { - int num = 1; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = 63u; + int num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span = CollectionsMarshal.AsSpan(list43); + int num = 0; + span[num] = 63u; list2 = list43; break; } @@ -332,19 +347,24 @@ internal sealed class QuestData int num = 3; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span27 = CollectionsMarshal.AsSpan(list42); - span27[0] = 72u; - span27[1] = 73u; - span27[2] = 74u; + Span span = CollectionsMarshal.AsSpan(list42); + int num2 = 0; + span[num2] = 72u; + num2++; + span[num2] = 73u; + num2++; + span[num2] = 74u; list2 = list42; break; } case EClassJob.Marauder: { - int num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = 64u; + int num2 = 1; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + Span span = CollectionsMarshal.AsSpan(list41); + int num = 0; + span[num] = 64u; list2 = list41; break; } @@ -353,19 +373,24 @@ internal sealed class QuestData int num = 3; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span26 = CollectionsMarshal.AsSpan(list40); - span26[0] = 76u; - span26[1] = 77u; - span26[2] = 78u; + Span span = CollectionsMarshal.AsSpan(list40); + int num2 = 0; + span[num2] = 76u; + num2++; + span[num2] = 77u; + num2++; + span[num2] = 78u; list2 = list40; break; } case EClassJob.Conjurer: { - int num = 1; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = 65u; + int num2 = 1; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + Span span = CollectionsMarshal.AsSpan(list39); + int num = 0; + span[num] = 65u; list2 = list39; break; } @@ -374,19 +399,24 @@ internal sealed class QuestData int num = 3; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span25 = CollectionsMarshal.AsSpan(list38); - span25[0] = 86u; - span25[1] = 87u; - span25[2] = 88u; + Span span = CollectionsMarshal.AsSpan(list38); + int num2 = 0; + span[num2] = 86u; + num2++; + span[num2] = 87u; + num2++; + span[num2] = 88u; list2 = list38; break; } case EClassJob.Arcanist: { - int num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = 66u; + int num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + Span span = CollectionsMarshal.AsSpan(list37); + int num = 0; + span[num] = 66u; list2 = list37; break; } @@ -395,22 +425,28 @@ internal sealed class QuestData int num = 3; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span24 = CollectionsMarshal.AsSpan(list36); - span24[0] = 127u; - span24[1] = 128u; - span24[2] = 129u; + Span span = CollectionsMarshal.AsSpan(list36); + int num2 = 0; + span[num2] = 127u; + num2++; + span[num2] = 128u; + num2++; + span[num2] = 129u; list2 = list36; break; } case EClassJob.Scholar: { - int num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span23 = CollectionsMarshal.AsSpan(list35); - span23[0] = 90u; - span23[1] = 91u; - span23[2] = 92u; + int num2 = 3; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span = CollectionsMarshal.AsSpan(list35); + int num = 0; + span[num] = 90u; + num++; + span[num] = 91u; + num++; + span[num] = 92u; list2 = list35; break; } @@ -419,19 +455,24 @@ internal sealed class QuestData int num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = 67u; + Span span = CollectionsMarshal.AsSpan(list34); + int num2 = 0; + span[num2] = 67u; list2 = list34; break; } case EClassJob.Monk: { - int num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span22 = CollectionsMarshal.AsSpan(list33); - span22[0] = 98u; - span22[1] = 99u; - span22[2] = 100u; + int num2 = 3; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span = CollectionsMarshal.AsSpan(list33); + int num = 0; + span[num] = 98u; + num++; + span[num] = 99u; + num++; + span[num] = 100u; list2 = list33; break; } @@ -440,19 +481,24 @@ internal sealed class QuestData int num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = 68u; + Span span = CollectionsMarshal.AsSpan(list32); + int num2 = 0; + span[num2] = 68u; list2 = list32; break; } case EClassJob.Dragoon: { - int num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span21 = CollectionsMarshal.AsSpan(list31); - span21[0] = 102u; - span21[1] = 103u; - span21[2] = 104u; + int num2 = 3; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span = CollectionsMarshal.AsSpan(list31); + int num = 0; + span[num] = 102u; + num++; + span[num] = 103u; + num++; + span[num] = 104u; list2 = list31; break; } @@ -461,19 +507,24 @@ internal sealed class QuestData int num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = 69u; + Span span = CollectionsMarshal.AsSpan(list30); + int num2 = 0; + span[num2] = 69u; list2 = list30; break; } case EClassJob.Ninja: { - int num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span20 = CollectionsMarshal.AsSpan(list29); - span20[0] = 106u; - span20[1] = 107u; - span20[2] = 108u; + int num2 = 3; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + Span span = CollectionsMarshal.AsSpan(list29); + int num = 0; + span[num] = 106u; + num++; + span[num] = 107u; + num++; + span[num] = 108u; list2 = list29; break; } @@ -482,19 +533,24 @@ internal sealed class QuestData int num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = 70u; + Span span = CollectionsMarshal.AsSpan(list28); + int num2 = 0; + span[num2] = 70u; list2 = list28; break; } case EClassJob.Bard: { - int num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span19 = CollectionsMarshal.AsSpan(list27); - span19[0] = 113u; - span19[1] = 114u; - span19[2] = 115u; + int num2 = 3; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + Span span = CollectionsMarshal.AsSpan(list27); + int num = 0; + span[num] = 113u; + num++; + span[num] = 114u; + num++; + span[num] = 115u; list2 = list27; break; } @@ -503,19 +559,24 @@ internal sealed class QuestData int num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = 71u; + Span span = CollectionsMarshal.AsSpan(list26); + int num2 = 0; + span[num2] = 71u; list2 = list26; break; } case EClassJob.BlackMage: { - int num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span18 = CollectionsMarshal.AsSpan(list25); - span18[0] = 123u; - span18[1] = 124u; - span18[2] = 125u; + int num2 = 3; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + Span span = CollectionsMarshal.AsSpan(list25); + int num = 0; + span[num] = 123u; + num++; + span[num] = 124u; + num++; + span[num] = 125u; list2 = list25; break; } @@ -524,22 +585,28 @@ internal sealed class QuestData int num = 3; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span17 = CollectionsMarshal.AsSpan(list24); - span17[0] = 80u; - span17[1] = 81u; - span17[2] = 82u; + Span span = CollectionsMarshal.AsSpan(list24); + int num2 = 0; + span[num2] = 80u; + num2++; + span[num2] = 81u; + num2++; + span[num2] = 82u; list2 = list24; break; } case EClassJob.Astrologian: { - int num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span16 = CollectionsMarshal.AsSpan(list23); - span16[0] = 94u; - span16[1] = 95u; - span16[2] = 96u; + int num2 = 3; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + Span span = CollectionsMarshal.AsSpan(list23); + int num = 0; + span[num] = 94u; + num++; + span[num] = 95u; + num++; + span[num] = 96u; list2 = list23; break; } @@ -548,21 +615,26 @@ internal sealed class QuestData int num = 3; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span15 = CollectionsMarshal.AsSpan(list22); - span15[0] = 117u; - span15[1] = 118u; - span15[2] = 119u; + Span span = CollectionsMarshal.AsSpan(list22); + int num2 = 0; + span[num2] = 117u; + num2++; + span[num2] = 118u; + num2++; + span[num2] = 119u; list2 = list22; break; } case EClassJob.Samurai: { - int num = 2; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span14 = CollectionsMarshal.AsSpan(list21); - span14[0] = 110u; - span14[1] = 111u; + int num2 = 2; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + Span span = CollectionsMarshal.AsSpan(list21); + int num = 0; + span[num] = 110u; + num++; + span[num] = 111u; list2 = list21; break; } @@ -571,22 +643,28 @@ internal sealed class QuestData int num = 2; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span13 = CollectionsMarshal.AsSpan(list20); - span13[0] = 131u; - span13[1] = 132u; + Span span = CollectionsMarshal.AsSpan(list20); + int num2 = 0; + span[num2] = 131u; + num2++; + span[num2] = 132u; list2 = list20; break; } case EClassJob.BlueMage: { - int num = 4; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span12 = CollectionsMarshal.AsSpan(list19); - span12[0] = 134u; - span12[1] = 135u; - span12[2] = 146u; - span12[3] = 170u; + int num2 = 4; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + Span span = CollectionsMarshal.AsSpan(list19); + int num = 0; + span[num] = 134u; + num++; + span[num] = 135u; + num++; + span[num] = 146u; + num++; + span[num] = 170u; list2 = list19; break; } @@ -595,16 +673,20 @@ internal sealed class QuestData int num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = 84u; + Span span = CollectionsMarshal.AsSpan(list18); + int num2 = 0; + span[num2] = 84u; list2 = list18; break; } case EClassJob.Dancer: { - int num = 1; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = 121u; + int num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + Span span = CollectionsMarshal.AsSpan(list17); + int num = 0; + span[num] = 121u; list2 = list17; break; } @@ -613,16 +695,20 @@ internal sealed class QuestData int num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = 152u; + Span span = CollectionsMarshal.AsSpan(list16); + int num2 = 0; + span[num2] = 152u; list2 = list16; break; } case EClassJob.Reaper: { - int num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = 153u; + int num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span = CollectionsMarshal.AsSpan(list15); + int num = 0; + span[num] = 153u; list2 = list15; break; } @@ -631,16 +717,20 @@ internal sealed class QuestData int num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = 176u; + Span span = CollectionsMarshal.AsSpan(list14); + int num2 = 0; + span[num2] = 176u; list2 = list14; break; } case EClassJob.Pictomancer: { - int num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = 177u; + int num2 = 1; + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + Span span = CollectionsMarshal.AsSpan(list13); + int num = 0; + span[num] = 177u; list2 = list13; break; } @@ -649,22 +739,28 @@ internal sealed class QuestData int num = 3; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span11 = CollectionsMarshal.AsSpan(list12); - span11[0] = 48u; - span11[1] = 49u; - span11[2] = 50u; + Span span = CollectionsMarshal.AsSpan(list12); + int num2 = 0; + span[num2] = 48u; + num2++; + span[num2] = 49u; + num2++; + span[num2] = 50u; list2 = list12; break; } case EClassJob.Armorer: { - int num = 3; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span10 = CollectionsMarshal.AsSpan(list11); - span10[0] = 36u; - span10[1] = 37u; - span10[2] = 38u; + int num2 = 3; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + Span span = CollectionsMarshal.AsSpan(list11); + int num = 0; + span[num] = 36u; + num++; + span[num] = 37u; + num++; + span[num] = 38u; list2 = list11; break; } @@ -673,22 +769,28 @@ internal sealed class QuestData int num = 3; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span9 = CollectionsMarshal.AsSpan(list10); - span9[0] = 33u; - span9[1] = 34u; - span9[2] = 35u; + Span span = CollectionsMarshal.AsSpan(list10); + int num2 = 0; + span[num2] = 33u; + num2++; + span[num2] = 34u; + num2++; + span[num2] = 35u; list2 = list10; break; } case EClassJob.Carpenter: { - int num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span8 = CollectionsMarshal.AsSpan(list9); - span8[0] = 30u; - span8[1] = 31u; - span8[2] = 32u; + int num2 = 3; + List list9 = new List(num2); + CollectionsMarshal.SetCount(list9, num2); + Span span = CollectionsMarshal.AsSpan(list9); + int num = 0; + span[num] = 30u; + num++; + span[num] = 31u; + num++; + span[num] = 32u; list2 = list9; break; } @@ -697,22 +799,28 @@ internal sealed class QuestData int num = 3; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span7 = CollectionsMarshal.AsSpan(list8); - span7[0] = 51u; - span7[1] = 52u; - span7[2] = 53u; + Span span = CollectionsMarshal.AsSpan(list8); + int num2 = 0; + span[num2] = 51u; + num2++; + span[num2] = 52u; + num2++; + span[num2] = 53u; list2 = list8; break; } case EClassJob.Goldsmith: { - int num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span6 = CollectionsMarshal.AsSpan(list7); - span6[0] = 39u; - span6[1] = 40u; - span6[2] = 41u; + int num2 = 3; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span = CollectionsMarshal.AsSpan(list7); + int num = 0; + span[num] = 39u; + num++; + span[num] = 40u; + num++; + span[num] = 41u; list2 = list7; break; } @@ -721,22 +829,28 @@ internal sealed class QuestData int num = 3; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span5 = CollectionsMarshal.AsSpan(list6); - span5[0] = 42u; - span5[1] = 43u; - span5[2] = 44u; + Span span = CollectionsMarshal.AsSpan(list6); + int num2 = 0; + span[num2] = 42u; + num2++; + span[num2] = 43u; + num2++; + span[num2] = 44u; list2 = list6; break; } case EClassJob.Weaver: { - int num = 3; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - Span span4 = CollectionsMarshal.AsSpan(list5); - span4[0] = 45u; - span4[1] = 46u; - span4[2] = 47u; + int num2 = 3; + List list5 = new List(num2); + CollectionsMarshal.SetCount(list5, num2); + Span span = CollectionsMarshal.AsSpan(list5); + int num = 0; + span[num] = 45u; + num++; + span[num] = 46u; + num++; + span[num] = 47u; list2 = list5; break; } @@ -745,22 +859,28 @@ internal sealed class QuestData int num = 3; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - Span span3 = CollectionsMarshal.AsSpan(list4); - span3[0] = 54u; - span3[1] = 55u; - span3[2] = 56u; + Span span = CollectionsMarshal.AsSpan(list4); + int num2 = 0; + span[num2] = 54u; + num2++; + span[num2] = 55u; + num2++; + span[num2] = 56u; list2 = list4; break; } case EClassJob.Botanist: { - int num = 3; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = 57u; - span2[1] = 58u; - span2[2] = 59u; + int num2 = 3; + List list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span = CollectionsMarshal.AsSpan(list3); + int num = 0; + span[num] = 57u; + num++; + span[num] = 58u; + num++; + span[num] = 59u; list2 = list3; break; } @@ -770,9 +890,12 @@ internal sealed class QuestData List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = 60u; - span[1] = 61u; - span[2] = 62u; + int num2 = 0; + span[num2] = 60u; + num2++; + span[num2] = 61u; + num2++; + span[num2] = 62u; list2 = list; break; } @@ -836,188 +959,244 @@ internal sealed class QuestData List> list = new List>(num); CollectionsMarshal.SetCount(list, num); Span> span = CollectionsMarshal.AsSpan(list); - ref List reference = ref span[0]; + int num2 = 0; + ref List reference = ref span[num2]; List list2; if (eClassJob != EClassJob.Gladiator) { - int num2 = 2; - list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); + int num3 = 2; + list2 = new List(num3); + CollectionsMarshal.SetCount(list2, num3); Span span2 = CollectionsMarshal.AsSpan(list2); - span2[0] = 253; - span2[1] = 261; + int num4 = 0; + span2[num4] = 253; + num4++; + span2[num4] = 261; } else { - int num2 = 4; - list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); - Span span3 = CollectionsMarshal.AsSpan(list2); - span3[0] = 177; - span3[1] = 285; - span3[2] = 286; - span3[3] = 288; + int num4 = 4; + list2 = new List(num4); + CollectionsMarshal.SetCount(list2, num4); + Span span2 = CollectionsMarshal.AsSpan(list2); + int num3 = 0; + span2[num3] = 177; + num3++; + span2[num3] = 285; + num3++; + span2[num3] = 286; + num3++; + span2[num3] = 288; } reference = list2; - ref List reference2 = ref span[1]; + num2++; + ref List reference2 = ref span[num2]; List list3; if (eClassJob != EClassJob.Pugilist) { - int num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span4 = CollectionsMarshal.AsSpan(list3); - span4[0] = 533; - span4[1] = 555; + int num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span2 = CollectionsMarshal.AsSpan(list3); + int num4 = 0; + span2[num4] = 533; + num4++; + span2[num4] = 555; } else { - int num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span5 = CollectionsMarshal.AsSpan(list3); - span5[0] = 178; - span5[1] = 532; - span5[2] = 553; - span5[3] = 698; + int num4 = 4; + list3 = new List(num4); + CollectionsMarshal.SetCount(list3, num4); + Span span2 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span2[num3] = 178; + num3++; + span2[num3] = 532; + num3++; + span2[num3] = 553; + num3++; + span2[num3] = 698; } reference2 = list3; - ref List reference3 = ref span[2]; + num2++; + ref List reference3 = ref span[num2]; List list4; if (eClassJob != EClassJob.Marauder) { - int num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span6 = CollectionsMarshal.AsSpan(list4); - span6[0] = 311; - span6[1] = 314; + int num3 = 2; + list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + Span span2 = CollectionsMarshal.AsSpan(list4); + int num4 = 0; + span2[num4] = 311; + num4++; + span2[num4] = 314; } else { - int num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span7 = CollectionsMarshal.AsSpan(list4); - span7[0] = 179; - span7[1] = 310; - span7[2] = 312; - span7[3] = 315; + int num4 = 4; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span2 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + span2[num3] = 179; + num3++; + span2[num3] = 310; + num3++; + span2[num3] = 312; + num3++; + span2[num3] = 315; } reference3 = list4; - ref List reference4 = ref span[3]; + num2++; + ref List reference4 = ref span[num2]; List list5; if (eClassJob != EClassJob.Lancer) { - int num2 = 2; - list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span8 = CollectionsMarshal.AsSpan(list5); - span8[0] = 23; - span8[1] = 35; + int num3 = 2; + list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + Span span2 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span2[num4] = 23; + num4++; + span2[num4] = 35; } else { - int num2 = 4; - list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span9 = CollectionsMarshal.AsSpan(list5); - span9[0] = 180; - span9[1] = 132; - span9[2] = 218; - span9[3] = 143; + int num4 = 4; + list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span2 = CollectionsMarshal.AsSpan(list5); + int num3 = 0; + span2[num3] = 180; + num3++; + span2[num3] = 132; + num3++; + span2[num3] = 218; + num3++; + span2[num3] = 143; } reference4 = list5; - ref List reference5 = ref span[4]; + num2++; + ref List reference5 = ref span[num2]; List list6; if (eClassJob != EClassJob.Archer) { - int num2 = 2; - list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span10 = CollectionsMarshal.AsSpan(list6); - span10[0] = 21; - span10[1] = 67; + int num3 = 2; + list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + Span span2 = CollectionsMarshal.AsSpan(list6); + int num4 = 0; + span2[num4] = 21; + num4++; + span2[num4] = 67; } else { - int num2 = 4; - list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span11 = CollectionsMarshal.AsSpan(list6); - span11[0] = 181; - span11[1] = 131; - span11[2] = 219; - span11[3] = 134; + int num4 = 4; + list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span2 = CollectionsMarshal.AsSpan(list6); + int num3 = 0; + span2[num3] = 181; + num3++; + span2[num3] = 131; + num3++; + span2[num3] = 219; + num3++; + span2[num3] = 134; } reference5 = list6; - ref List reference6 = ref span[5]; + num2++; + ref List reference6 = ref span[num2]; List list7; if (eClassJob != EClassJob.Conjurer) { - int num2 = 2; - list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span12 = CollectionsMarshal.AsSpan(list7); - span12[0] = 22; - span12[1] = 91; + int num3 = 2; + list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span2 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span2[num4] = 22; + num4++; + span2[num4] = 91; } else { - int num2 = 4; - list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span13 = CollectionsMarshal.AsSpan(list7); - span13[0] = 182; - span13[1] = 133; - span13[2] = 211; - span13[3] = 147; + int num4 = 4; + list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span2 = CollectionsMarshal.AsSpan(list7); + int num3 = 0; + span2[num3] = 182; + num3++; + span2[num3] = 133; + num3++; + span2[num3] = 211; + num3++; + span2[num3] = 147; } reference6 = list7; - ref List reference7 = ref span[6]; + num2++; + ref List reference7 = ref span[num2]; List list8; if (eClassJob != EClassJob.Thaumaturge) { - int num2 = 2; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span14 = CollectionsMarshal.AsSpan(list8); - span14[0] = 345; - span14[1] = 348; + int num3 = 2; + list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span2 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span2[num4] = 345; + num4++; + span2[num4] = 348; } else { - int num2 = 4; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span15 = CollectionsMarshal.AsSpan(list8); - span15[0] = 183; - span15[1] = 344; - span15[2] = 346; - span15[3] = 349; + int num4 = 4; + list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span2 = CollectionsMarshal.AsSpan(list8); + int num3 = 0; + span2[num3] = 183; + num3++; + span2[num3] = 344; + num3++; + span2[num3] = 346; + num3++; + span2[num3] = 349; } reference7 = list8; - ref List reference8 = ref span[7]; + num2++; + ref List reference8 = ref span[num2]; List list9; if (eClassJob != EClassJob.Arcanist) { - int num2 = 2; - list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - Span span16 = CollectionsMarshal.AsSpan(list9); - span16[0] = 453; - span16[1] = 456; + int num3 = 2; + list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + Span span2 = CollectionsMarshal.AsSpan(list9); + int num4 = 0; + span2[num4] = 453; + num4++; + span2[num4] = 456; } else { - int num2 = 4; - list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - Span span17 = CollectionsMarshal.AsSpan(list9); - span17[0] = 451; - span17[1] = 452; - span17[2] = 454; - span17[3] = 457; + int num4 = 4; + list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); + Span span2 = CollectionsMarshal.AsSpan(list9); + int num3 = 0; + span2[num3] = 451; + num3++; + span2[num3] = 452; + num3++; + span2[num3] = 454; + num3++; + span2[num3] = 457; } reference8 = list9; return (from x in list.SelectMany((List x) => x) @@ -1039,7 +1218,7 @@ internal sealed class QuestData } else { - _ = value is UnlockLinkQuestInfo; + _logger.LogWarning("ApplySeasonalOverride: Quest {QuestId} not found in QuestData (could not apply seasonal override)", questId); } } @@ -1047,6 +1226,7 @@ internal sealed class QuestData { ArgumentNullException.ThrowIfNull(info, "info"); _quests[info.QuestId] = info; + _logger.LogDebug("Added or replaced QuestInfo for {QuestId} in QuestData", info.QuestId); } static QuestData() @@ -1056,262 +1236,378 @@ internal sealed class QuestData List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = 1744; - span[1] = 1759; - span[2] = 1760; - span[3] = 2111; + int num2 = 0; + span[num2] = 1744; + num2++; + span[num2] = 1759; + num2++; + span[num2] = 1760; + num2++; + span[num2] = 2111; dictionary.Add(397u, list); - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span2 = CollectionsMarshal.AsSpan(list2); - span2[0] = 1771; - span2[1] = 1790; - span2[2] = 1797; - span2[3] = 1802; + num2 = 4; + List list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); + span = CollectionsMarshal.AsSpan(list2); + num = 0; + span[num] = 1771; + num++; + span[num] = 1790; + num++; + span[num] = 1797; + num++; + span[num] = 1802; dictionary.Add(398u, list2); num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - span3[0] = 1936; - span3[1] = 1945; - span3[2] = 1963; - span3[3] = 1966; + span = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span[num2] = 1936; + num2++; + span[num2] = 1945; + num2++; + span[num2] = 1963; + num2++; + span[num2] = 1966; dictionary.Add(399u, list3); - num = 4; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - Span span4 = CollectionsMarshal.AsSpan(list4); - span4[0] = 1819; - span4[1] = 1823; - span4[2] = 1828; - span4[3] = 1835; + num2 = 4; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + span = CollectionsMarshal.AsSpan(list4); + num = 0; + span[num] = 1819; + num++; + span[num] = 1823; + num++; + span[num] = 1828; + num++; + span[num] = 1835; dictionary.Add(400u, list4); num = 4; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - span5[0] = 1748; - span5[1] = 1874; - span5[2] = 1909; - span5[3] = 1910; + span = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span[num2] = 1748; + num2++; + span[num2] = 1874; + num2++; + span[num2] = 1909; + num2++; + span[num2] = 1910; dictionary.Add(401u, list5); - num = 4; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - span6[0] = 2639; - span6[1] = 2661; - span6[2] = 2816; - span6[3] = 2821; + num2 = 4; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + span = CollectionsMarshal.AsSpan(list6); + num = 0; + span[num] = 2639; + num++; + span[num] = 2661; + num++; + span[num] = 2816; + num++; + span[num] = 2821; dictionary.Add(612u, list6); num = 4; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - span7[0] = 2632; - span7[1] = 2673; - span7[2] = 2687; - span7[3] = 2693; + span = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span[num2] = 2632; + num2++; + span[num2] = 2673; + num2++; + span[num2] = 2687; + num2++; + span[num2] = 2693; dictionary.Add(613u, list7); - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - span8[0] = 2724; - span8[1] = 2728; - span8[2] = 2730; - span8[3] = 2733; + num2 = 4; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + span = CollectionsMarshal.AsSpan(list8); + num = 0; + span[num] = 2724; + num++; + span[num] = 2728; + num++; + span[num] = 2730; + num++; + span[num] = 2733; dictionary.Add(614u, list8); num = 4; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - span9[0] = 2655; - span9[1] = 2842; - span9[2] = 2851; - span9[3] = 2860; + span = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span[num2] = 2655; + num2++; + span[num2] = 2842; + num2++; + span[num2] = 2851; + num2++; + span[num2] = 2860; dictionary.Add(620u, list9); - num = 4; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - span10[0] = 2877; - span10[1] = 2880; - span10[2] = 2881; - span10[3] = 2883; + num2 = 4; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); + span = CollectionsMarshal.AsSpan(list10); + num = 0; + span[num] = 2877; + num++; + span[num] = 2880; + num++; + span[num] = 2881; + num++; + span[num] = 2883; dictionary.Add(621u, list10); num = 4; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - span11[0] = 2760; - span11[1] = 2771; - span11[2] = 2782; - span11[3] = 2791; + span = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span[num2] = 2760; + num2++; + span[num2] = 2771; + num2++; + span[num2] = 2782; + num2++; + span[num2] = 2791; dictionary.Add(622u, list11); - num = 4; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - span12[0] = 3380; - span12[1] = 3384; - span12[2] = 3385; - span12[3] = 3386; + num2 = 4; + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + span = CollectionsMarshal.AsSpan(list12); + num = 0; + span[num] = 3380; + num++; + span[num] = 3384; + num++; + span[num] = 3385; + num++; + span[num] = 3386; dictionary.Add(813u, list12); num = 4; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - span13[0] = 3360; - span13[1] = 3371; - span13[2] = 3537; - span13[3] = 3556; + span = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span[num2] = 3360; + num2++; + span[num2] = 3371; + num2++; + span[num2] = 3537; + num2++; + span[num2] = 3556; dictionary.Add(814u, list13); - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - span14[0] = 3375; - span14[1] = 3503; - span14[2] = 3511; - span14[3] = 3525; + num2 = 4; + List list14 = new List(num2); + CollectionsMarshal.SetCount(list14, num2); + span = CollectionsMarshal.AsSpan(list14); + num = 0; + span[num] = 3375; + num++; + span[num] = 3503; + num++; + span[num] = 3511; + num++; + span[num] = 3525; dictionary.Add(815u, list14); num = 4; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - span15[0] = 3395; - span15[1] = 3398; - span15[2] = 3404; - span15[3] = 3427; + span = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span[num2] = 3395; + num2++; + span[num2] = 3398; + num2++; + span[num2] = 3404; + num2++; + span[num2] = 3427; dictionary.Add(816u, list15); - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - span16[0] = 3444; - span16[1] = 3467; - span16[2] = 3478; - span16[3] = 3656; + num2 = 4; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + span = CollectionsMarshal.AsSpan(list16); + num = 0; + span[num] = 3444; + num++; + span[num] = 3467; + num++; + span[num] = 3478; + num++; + span[num] = 3656; dictionary.Add(817u, list16); num = 4; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - span17[0] = 3588; - span17[1] = 3592; - span17[2] = 3593; - span17[3] = 3594; + span = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span[num2] = 3588; + num2++; + span[num2] = 3592; + num2++; + span[num2] = 3593; + num2++; + span[num2] = 3594; dictionary.Add(818u, list17); - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - span18[0] = 4320; - span18[1] = 4329; - span18[2] = 4480; - span18[3] = 4484; + num2 = 4; + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); + span = CollectionsMarshal.AsSpan(list18); + num = 0; + span[num] = 4320; + num++; + span[num] = 4329; + num++; + span[num] = 4480; + num++; + span[num] = 4484; dictionary.Add(956u, list18); num = 4; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - span19[0] = 4203; - span19[1] = 4257; - span19[2] = 4259; - span19[3] = 4489; + span = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span[num2] = 4203; + num2++; + span[num2] = 4257; + num2++; + span[num2] = 4259; + num2++; + span[num2] = 4489; dictionary.Add(957u, list19); - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - span20[0] = 4216; - span20[1] = 4232; - span20[2] = 4498; - span20[3] = 4502; + num2 = 4; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + span = CollectionsMarshal.AsSpan(list20); + num = 0; + span[num] = 4216; + num++; + span[num] = 4232; + num++; + span[num] = 4498; + num++; + span[num] = 4502; dictionary.Add(958u, list20); num = 4; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - span21[0] = 4240; - span21[1] = 4241; - span21[2] = 4253; - span21[3] = 4516; + span = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span[num2] = 4240; + num2++; + span[num2] = 4241; + num2++; + span[num2] = 4253; + num2++; + span[num2] = 4516; dictionary.Add(959u, list21); - num = 4; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - span22[0] = 4342; - span22[1] = 4346; - span22[2] = 4354; - span22[3] = 4355; + num2 = 4; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + span = CollectionsMarshal.AsSpan(list22); + num = 0; + span[num] = 4342; + num++; + span[num] = 4346; + num++; + span[num] = 4354; + num++; + span[num] = 4355; dictionary.Add(960u, list22); num = 4; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - span23[0] = 4288; - span23[1] = 4313; - span23[2] = 4507; - span23[3] = 4511; + span = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span[num2] = 4288; + num2++; + span[num2] = 4313; + num2++; + span[num2] = 4507; + num2++; + span[num2] = 4511; dictionary.Add(961u, list23); - num = 4; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - span24[0] = 5039; - span24[1] = 5047; - span24[2] = 5051; - span24[3] = 5055; + num2 = 4; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + span = CollectionsMarshal.AsSpan(list24); + num = 0; + span[num] = 5039; + num++; + span[num] = 5047; + num++; + span[num] = 5051; + num++; + span[num] = 5055; dictionary.Add(1187u, list24); num = 4; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - span25[0] = 5064; - span25[1] = 5074; - span25[2] = 5081; - span25[3] = 5085; + span = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span[num2] = 5064; + num2++; + span[num2] = 5074; + num2++; + span[num2] = 5081; + num2++; + span[num2] = 5085; dictionary.Add(1188u, list25); - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - span26[0] = 5094; - span26[1] = 5103; - span26[2] = 5110; - span26[3] = 5114; + num2 = 4; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + span = CollectionsMarshal.AsSpan(list26); + num = 0; + span[num] = 5094; + num++; + span[num] = 5103; + num++; + span[num] = 5110; + num++; + span[num] = 5114; dictionary.Add(1189u, list26); num = 4; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - span27[0] = 5130; - span27[1] = 5138; - span27[2] = 5140; - span27[3] = 5144; + span = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span[num2] = 5130; + num2++; + span[num2] = 5138; + num2++; + span[num2] = 5140; + num2++; + span[num2] = 5144; dictionary.Add(1190u, list27); - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - span28[0] = 5153; - span28[1] = 5156; - span28[2] = 5159; - span28[3] = 5160; + num2 = 4; + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); + span = CollectionsMarshal.AsSpan(list28); + num = 0; + span[num] = 5153; + num++; + span[num] = 5156; + num++; + span[num] = 5159; + num++; + span[num] = 5160; dictionary.Add(1191u, list28); num = 4; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - span29[0] = 5174; - span29[1] = 5176; - span29[2] = 5178; - span29[3] = 5179; + span = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span[num2] = 5174; + num2++; + span[num2] = 5176; + num2++; + span[num2] = 5178; + num2++; + span[num2] = 5179; dictionary.Add(1192u, list29); AetherCurrentQuestsByTerritory = dictionary.ToImmutableDictionary((KeyValuePair> x) => x.Key, (KeyValuePair> x) => x.Value.Select((ushort y) => new QuestId(y)).ToImmutableList()); AetherCurrentQuests = AetherCurrentQuestsByTerritory.Values.SelectMany((ImmutableList x) => x).ToImmutableHashSet(); diff --git a/Questionable/Questionable.Data/TerritoryData.cs b/Questionable/Questionable.Data/TerritoryData.cs index d9e748c..ef15072 100644 --- a/Questionable/Questionable.Data/TerritoryData.cs +++ b/Questionable/Questionable.Data/TerritoryData.cs @@ -33,8 +33,6 @@ internal sealed class TerritoryData private readonly ImmutableDictionary _contentFinderConditions; - private readonly ImmutableDictionary _territoryToContentFinderCondition; - private readonly ImmutableDictionary<(ElementId QuestId, byte Index), uint> _questBattlesToContentFinderCondition; public TerritoryData(IDataManager dataManager) @@ -69,9 +67,6 @@ internal sealed class TerritoryData return flag && x.ContentType.RowId != 6; }) select new ContentFinderConditionData(x, dataManager.Language)).ToImmutableDictionary((ContentFinderConditionData x) => x.ContentFinderConditionId, (ContentFinderConditionData x) => x); - _territoryToContentFinderCondition = (from x in dataManager.GetExcelSheet() - where x.RowId != 0 && x.TerritoryType.RowId != 0 - group x by x.TerritoryType.RowId).ToImmutableDictionary((IGrouping g) => g.Key, (IGrouping g) => g.First().RowId); _questBattlesToContentFinderCondition = (from x in (from x in dataManager.GetExcelSheet() where x.RowId != 0 && x.IssuerLocation.RowId != 0 select x).SelectMany(GetQuestBattles) @@ -143,11 +138,6 @@ internal sealed class TerritoryData return false; } - public bool TryGetContentFinderConditionIdForTerritory(ushort territoryId, out uint cfcId) - { - return _territoryToContentFinderCondition.TryGetValue(territoryId, out cfcId); - } - public IEnumerable<(ElementId QuestId, byte Index, ContentFinderConditionData Data)> GetAllQuestsWithQuestBattles() { return _questBattlesToContentFinderCondition.Select, (ElementId, byte, ContentFinderConditionData)>((KeyValuePair<(ElementId QuestId, byte Index), uint> x) => (QuestId: x.Key.QuestId, Index: x.Key.Index, _contentFinderConditions[x.Value])); @@ -159,7 +149,7 @@ internal sealed class TerritoryData { return name; } - return string.Concat(name[0].ToString().ToUpper(CultureInfo.InvariantCulture).AsSpan(), name.AsSpan(1)); + return string.Concat(name[0].ToString().ToUpper(CultureInfo.InvariantCulture), name.AsSpan(1)); } private static IEnumerable<(ElementId QuestId, byte Index, uint QuestBattleId)> GetQuestBattles(Quest quest) diff --git a/Questionable/Questionable.External/AutoDutyIpc.cs b/Questionable/Questionable.External/AutoDutyIpc.cs index 257efc4..801f1bd 100644 --- a/Questionable/Questionable.External/AutoDutyIpc.cs +++ b/Questionable/Questionable.External/AutoDutyIpc.cs @@ -33,12 +33,6 @@ internal sealed class AutoDutyIpc private readonly ICallGateSubscriber _stop; - private bool _loggedContentHasPathQueryWarning; - - private bool _loggedLevelingModeWarning; - - public const int MinimumLevelForLevelingMode = 15; - public AutoDutyIpc(IDalamudPluginInterface pluginInterface, Configuration configuration, TerritoryData territoryData, ILogger logger) { _configuration = configuration; @@ -49,8 +43,6 @@ internal sealed class AutoDutyIpc _run = pluginInterface.GetIpcSubscriber("AutoDuty.Run"); _isStopped = pluginInterface.GetIpcSubscriber("AutoDuty.IsStopped"); _stop = pluginInterface.GetIpcSubscriber("AutoDuty.Stop"); - _loggedContentHasPathQueryWarning = false; - _loggedLevelingModeWarning = false; } public bool IsConfiguredToRunContent(DutyOptions? dutyOptions) @@ -78,24 +70,6 @@ internal sealed class AutoDutyIpc return false; } - public bool IsConfiguredToRunLevelingMode() - { - return _configuration.Duties.RunLevelingModeWhenUnderleveled; - } - - public bool IsConfiguredToRunLevelingMode(int currentPlayerLevel) - { - if (!_configuration.Duties.RunLevelingModeWhenUnderleveled) - { - return false; - } - if (currentPlayerLevel < 15) - { - return false; - } - return true; - } - public bool HasPath(uint cfcId) { if (!_territoryData.TryGetContentFinderCondition(cfcId, out TerritoryData.ContentFinderConditionData contentFinderConditionData)) @@ -108,11 +82,7 @@ internal sealed class AutoDutyIpc } catch (IpcError ipcError) { - if (!_loggedContentHasPathQueryWarning) - { - _logger.LogWarning("Unable to query AutoDuty for path in territory {TerritoryType}: {Message}", contentFinderConditionData.TerritoryId, ipcError.Message); - _loggedContentHasPathQueryWarning = true; - } + _logger.LogWarning("Unable to query AutoDuty for path in territory {TerritoryType}: {Message}", contentFinderConditionData.TerritoryId, ipcError.Message); return false; } } @@ -125,7 +95,6 @@ internal sealed class AutoDutyIpc } try { - _setConfig.InvokeAction("leveling", "None"); _setConfig.InvokeAction("Unsynced", $"{dutyMode == DutyMode.UnsyncRegular}"); ICallGateSubscriber setConfig = _setConfig; setConfig.InvokeAction("dutyModeEnum", dutyMode switch @@ -142,40 +111,6 @@ internal sealed class AutoDutyIpc } } - public bool StartLevelingMode() - { - try - { - if (!IsStopped()) - { - _logger.LogDebug("AutoDuty is already running, not starting leveling mode again"); - return true; - } - _logger.LogInformation("Starting AutoDuty Leveling mode (Support) - AutoDuty will select the best dungeon"); - _setConfig.InvokeAction("leveling", "Support"); - _run.InvokeAction(0u, 1, !_configuration.Advanced.DisableAutoDutyBareMode); - return true; - } - catch (IpcError ipcError) - { - if (!_loggedLevelingModeWarning) - { - _logger.LogWarning("Unable to start AutoDuty Leveling mode: {Message}", ipcError.Message); - _loggedLevelingModeWarning = true; - } - return false; - } - catch (Exception exception) - { - if (!_loggedLevelingModeWarning) - { - _logger.LogWarning(exception, "Unable to start AutoDuty Leveling mode"); - _loggedLevelingModeWarning = true; - } - return false; - } - } - public bool IsStopped() { try @@ -188,36 +123,16 @@ internal sealed class AutoDutyIpc } } - public void DisableLevelingMode() - { - try - { - _logger.LogInformation("Disabling AutoDuty leveling mode"); - _setConfig.InvokeAction("leveling", "None"); - } - catch (IpcError ipcError) - { - _logger.LogWarning("Unable to disable AutoDuty leveling mode: {Message}", ipcError.Message); - } - } - public void Stop() { try { _logger.LogInformation("Calling AutoDuty.Stop"); - try - { - _setConfig.InvokeAction("leveling", "None"); - } - catch (IpcError) - { - } _stop.InvokeAction(); } - catch (IpcError ipcError2) + catch (IpcError ipcError) { - throw new TaskException("Unable to stop AutoDuty: " + ipcError2.Message, ipcError2); + throw new TaskException("Unable to stop AutoDuty: " + ipcError.Message, ipcError); } } } diff --git a/Questionable/Questionable.External/AutomatonIpc.cs b/Questionable/Questionable.External/AutomatonIpc.cs index 5f6eb1b..de6e379 100644 --- a/Questionable/Questionable.External/AutomatonIpc.cs +++ b/Questionable/Questionable.External/AutomatonIpc.cs @@ -1,153 +1,42 @@ -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; using Dalamud.Plugin; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc.Exceptions; -using Dalamud.Plugin.Services; using Microsoft.Extensions.Logging; -using Questionable.Controller; -using Questionable.Data; namespace Questionable.External; -internal sealed class AutomatonIpc : IDisposable +internal sealed class AutomatonIpc { - private static readonly ImmutableHashSet ConflictingTweaks = new HashSet - { - "DateWithDestiny", "AutoFollow", "ClickToMove", "AutoPillion", "AutoInvite", "AutoBusy", "FateToolKit", "AutoQueue", "EnhancedDutyStartEnd", "EnhancedLoginLogout", - "GettingTooAttached", "RetrieveMateria" - }.ToImmutableHashSet(); - - private const string AutoSnipeTweak = "AutoSnipeQuests"; - - private readonly Configuration _configuration; - - private readonly QuestController _questController; - - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - - private readonly TerritoryData _territoryData; - - private readonly IClientState _clientState; - - private readonly IFramework _framework; - private readonly ILogger _logger; private readonly ICallGateSubscriber _isTweakEnabled; - private readonly ICallGateSubscriber _setTweakState; + private bool _loggedIpcError; - private HashSet? _pausedTweaks; - - private bool _wasFateRunning; - - public AutomatonIpc(Configuration configuration, IDalamudPluginInterface pluginInterface, QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, TerritoryData territoryData, IClientState clientState, IFramework framework, ILogger logger) + public bool IsAutoSnipeEnabled { - _configuration = configuration; - _questController = questController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; - _territoryData = territoryData; - _clientState = clientState; - _framework = framework; - _logger = logger; - _isTweakEnabled = pluginInterface.GetIpcSubscriber("Automaton.IsTweakEnabled"); - _setTweakState = pluginInterface.GetIpcSubscriber("Automaton.SetTweakState"); - _questController.AutomationTypeChanged += OnAutomationTypeChanged; - _framework.Update += OnFrameworkUpdate; - } - - private void OnAutomationTypeChanged(object sender, QuestController.EAutomationType automationType) - { - if (automationType != QuestController.EAutomationType.Manual && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) - { - Task.Run((Action)DisableConflictingTweaks); - } - else if (!_fateController.IsRunning && !_seasonalDutyController.IsRunning) - { - Task.Run((Action)RestoreConflictingTweaks); - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - bool flag = _fateController.IsRunning || _seasonalDutyController.IsRunning; - if (flag != _wasFateRunning) - { - _wasFateRunning = flag; - if (flag && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) - { - Task.Run((Action)DisableConflictingTweaks); - } - else if (_questController.AutomationType == QuestController.EAutomationType.Manual) - { - Task.Run((Action)RestoreConflictingTweaks); - } - } - } - - private void DisableConflictingTweaks() - { - if (_pausedTweaks != null) - { - return; - } - _pausedTweaks = new HashSet(); - foreach (string conflictingTweak in ConflictingTweaks) - { - TryDisableTweak(conflictingTweak); - } - if (_configuration.General.AutoSnipe) - { - TryDisableTweak("AutoSnipeQuests"); - } - } - - private void TryDisableTweak(string tweak) - { - try - { - if (_isTweakEnabled.InvokeFunc(tweak)) - { - _setTweakState.InvokeAction(tweak, arg2: false); - _pausedTweaks.Add(tweak); - _logger.LogInformation("Paused Automaton tweak: {Tweak}", tweak); - } - } - catch (IpcError) - { - } - } - - private void RestoreConflictingTweaks() - { - if (_pausedTweaks == null) - { - return; - } - foreach (string pausedTweak in _pausedTweaks) + get { try { - _setTweakState.InvokeAction(pausedTweak, arg2: true); - _logger.LogInformation("Restored Automaton tweak: {Tweak}", pausedTweak); + return _isTweakEnabled.InvokeFunc("AutoSnipeQuests"); } - catch (IpcError) + catch (IpcError exception) { + if (!_loggedIpcError) + { + _loggedIpcError = true; + _logger.LogWarning(exception, "Could not query automaton for tweak status, probably not installed"); + } + return false; } } - _pausedTweaks = null; } - public void Dispose() + public AutomatonIpc(IDalamudPluginInterface pluginInterface, ILogger logger) { - _framework.Update -= OnFrameworkUpdate; - _questController.AutomationTypeChanged -= OnAutomationTypeChanged; - RestoreConflictingTweaks(); + _logger = logger; + _isTweakEnabled = pluginInterface.GetIpcSubscriber("Automaton.IsTweakEnabled"); + logger.LogInformation("Automaton auto-snipe enabled: {IsTweakEnabled}", IsAutoSnipeEnabled); } } diff --git a/Questionable/Questionable.External/NavmeshIpc.cs b/Questionable/Questionable.External/NavmeshIpc.cs index f7fc7b0..949d9d7 100644 --- a/Questionable/Questionable.External/NavmeshIpc.cs +++ b/Questionable/Questionable.External/NavmeshIpc.cs @@ -11,18 +11,12 @@ namespace Questionable.External; internal sealed class NavmeshIpc { - private readonly IDalamudPluginInterface _pluginInterface; - private readonly ILogger _logger; private readonly ICallGateSubscriber _isNavReady; private readonly ICallGateSubscriber>> _navPathfind; - private readonly ICallGateSubscriber _navPathfindInProgress; - - private readonly ICallGateSubscriber _navNumQueuedRequests; - private readonly ICallGateSubscriber, bool, object> _pathMoveTo; private readonly ICallGateSubscriber _pathStop; @@ -35,34 +29,8 @@ internal sealed class NavmeshIpc private readonly ICallGateSubscriber _queryPointOnFloor; - private readonly ICallGateSubscriber _queryNearestPoint; - private readonly ICallGateSubscriber _buildProgress; - private readonly ICallGateSubscriber _navReload; - - private readonly ICallGateSubscriber _navRebuild; - - public bool IsNavmeshAvailable - { - get - { - try - { - _isNavReady.InvokeFunc(); - return true; - } - catch (IpcNotReadyError) - { - return false; - } - catch (IpcError) - { - return true; - } - } - } - public bool IsReady { get @@ -93,62 +61,22 @@ internal sealed class NavmeshIpc } } - public bool IsPathfindInProgress - { - get - { - try - { - return _navPathfindInProgress.InvokeFunc(); - } - catch (IpcError) - { - return false; - } - } - } - - public int NumQueuedPathfindRequests - { - get - { - try - { - return _navNumQueuedRequests.InvokeFunc(); - } - catch (IpcError) - { - return 0; - } - } - } - public NavmeshIpc(IDalamudPluginInterface pluginInterface, ILogger logger) { - _pluginInterface = pluginInterface; _logger = logger; _isNavReady = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.IsReady"); _navPathfind = pluginInterface.GetIpcSubscriber>>("vnavmesh.Nav.PathfindCancelable"); - _navPathfindInProgress = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.PathfindInProgress"); - _navNumQueuedRequests = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.PathfindNumQueued"); _pathMoveTo = pluginInterface.GetIpcSubscriber, bool, object>("vnavmesh.Path.MoveTo"); _pathStop = pluginInterface.GetIpcSubscriber("vnavmesh.Path.Stop"); _pathIsRunning = pluginInterface.GetIpcSubscriber("vnavmesh.Path.IsRunning"); _pathListWaypoints = pluginInterface.GetIpcSubscriber>("vnavmesh.Path.ListWaypoints"); _pathSetTolerance = pluginInterface.GetIpcSubscriber("vnavmesh.Path.SetTolerance"); _queryPointOnFloor = pluginInterface.GetIpcSubscriber("vnavmesh.Query.Mesh.PointOnFloor"); - _queryNearestPoint = pluginInterface.GetIpcSubscriber("vnavmesh.Query.Mesh.NearestPoint"); _buildProgress = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.BuildProgress"); - _navReload = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.Reload"); - _navRebuild = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.Rebuild"); } public void Stop() { - if (!IsNavmeshAvailable) - { - return; - } try { _pathStop.InvokeAction(); @@ -159,44 +87,8 @@ internal sealed class NavmeshIpc } } - public void Reload() - { - if (!IsNavmeshAvailable) - { - return; - } - try - { - _navReload.InvokeFunc(); - } - catch (IpcError exception) - { - _logger.LogWarning(exception, "Could not reload navmesh"); - } - } - - public void Rebuild() - { - if (!IsNavmeshAvailable) - { - return; - } - try - { - _navRebuild.InvokeFunc(); - } - catch (IpcError exception) - { - _logger.LogWarning(exception, "Could not rebuild navmesh"); - } - } - public Task> Pathfind(Vector3 localPlayerPosition, Vector3 targetPosition, bool fly, CancellationToken cancellationToken) { - if (!IsNavmeshAvailable) - { - return Task.FromResult(new List()); - } try { _pathSetTolerance.InvokeAction(0.25f); @@ -209,30 +101,8 @@ internal sealed class NavmeshIpc } } - public Task> PathfindWithTolerance(Vector3 localPlayerPosition, Vector3 targetPosition, bool fly, float tolerance, CancellationToken cancellationToken) - { - if (!IsNavmeshAvailable) - { - return Task.FromResult(new List()); - } - try - { - _pathSetTolerance.InvokeAction(tolerance); - return _pluginInterface.GetIpcSubscriber>>("vnavmesh.Nav.PathfindWithToleranceCancelable").InvokeFunc(localPlayerPosition, targetPosition, fly, tolerance, cancellationToken); - } - catch (IpcError exception) - { - _logger.LogWarning(exception, "Could not pathfind with tolerance via navmesh"); - return Task.FromException>(exception); - } - } - public void MoveTo(List position, bool fly) { - if (!IsNavmeshAvailable) - { - return; - } Stop(); try { @@ -256,30 +126,6 @@ internal sealed class NavmeshIpc } } - public Vector3? GetPointOnFloor(Vector3 position, bool unlandable, float halfExtentXZ) - { - try - { - return _queryPointOnFloor.InvokeFunc(position, unlandable, halfExtentXZ); - } - catch (IpcError) - { - return null; - } - } - - public Vector3? FindNearestMeshPoint(Vector3 position, float halfExtentXZ, float halfExtentY) - { - try - { - return _queryNearestPoint.InvokeFunc(position, halfExtentXZ, halfExtentY); - } - catch (IpcError) - { - return null; - } - } - public List GetWaypoints() { if (IsPathRunning) diff --git a/Questionable/Questionable.External/PandorasBoxIpc.cs b/Questionable/Questionable.External/PandorasBoxIpc.cs index 9a51124..bd17117 100644 --- a/Questionable/Questionable.External/PandorasBoxIpc.cs +++ b/Questionable/Questionable.External/PandorasBoxIpc.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Collections.Immutable; -using System.Threading.Tasks; using Dalamud.Plugin; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Ipc.Exceptions; @@ -21,81 +20,72 @@ internal sealed class PandorasBoxIpc : IDisposable "Pandora Quick Gather", "Switch Gatherers Automatically" }.ToImmutableHashSet(); - private const string AutoActiveTimeManeuverFeature = "Auto Active Time Maneuver"; - - private readonly Configuration _configuration; + private readonly IFramework _framework; private readonly QuestController _questController; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - private readonly TerritoryData _territoryData; private readonly IClientState _clientState; - private readonly IFramework _framework; - private readonly ILogger _logger; private readonly ICallGateSubscriber _getFeatureEnabled; private readonly ICallGateSubscriber _setFeatureEnabled; + private bool _loggedIpcError; + private HashSet? _pausedFeatures; - private bool _wasFateRunning; - - public PandorasBoxIpc(Configuration configuration, IDalamudPluginInterface pluginInterface, QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, TerritoryData territoryData, IClientState clientState, IFramework framework, ILogger logger) + public bool IsAutoActiveTimeManeuverEnabled { - _configuration = configuration; + get + { + try + { + return _getFeatureEnabled.InvokeFunc("Auto Active Time Maneuver") == true; + } + catch (IpcError exception) + { + if (!_loggedIpcError) + { + _loggedIpcError = true; + _logger.LogWarning(exception, "Could not query pandora's box for feature status, probably not installed"); + } + return false; + } + } + } + + public PandorasBoxIpc(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, TerritoryData territoryData, IClientState clientState, ILogger logger) + { + _framework = framework; _questController = questController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _territoryData = territoryData; _clientState = clientState; - _framework = framework; _logger = logger; _getFeatureEnabled = pluginInterface.GetIpcSubscriber("PandorasBox.GetFeatureEnabled"); _setFeatureEnabled = pluginInterface.GetIpcSubscriber("PandorasBox.SetFeatureEnabled"); - _questController.AutomationTypeChanged += OnAutomationTypeChanged; - _framework.Update += OnFrameworkUpdate; + logger.LogInformation("Pandora's Box auto active time maneuver enabled: {IsAtmEnabled}", IsAutoActiveTimeManeuverEnabled); + _framework.Update += OnUpdate; } - private void OnAutomationTypeChanged(object sender, QuestController.EAutomationType automationType) + private void OnUpdate(IFramework framework) { - if (automationType != QuestController.EAutomationType.Manual && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) + if ((_questController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual) && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) { - Task.Run((Action)DisableConflictingFeatures); + DisableConflictingFeatures(); } - else if (!_fateController.IsRunning && !_seasonalDutyController.IsRunning) + else { - Task.Run((Action)RestoreConflictingFeatures); - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - bool flag = _fateController.IsRunning || _seasonalDutyController.IsRunning; - if (flag != _wasFateRunning) - { - _wasFateRunning = flag; - if (flag && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) - { - Task.Run((Action)DisableConflictingFeatures); - } - else if (_questController.AutomationType == QuestController.EAutomationType.Manual) - { - Task.Run((Action)RestoreConflictingFeatures); - } + RestoreConflictingFeatures(); } } public void Dispose() { - _framework.Update -= OnFrameworkUpdate; - _questController.AutomationTypeChanged -= OnAutomationTypeChanged; + _framework.Update -= OnUpdate; RestoreConflictingFeatures(); } @@ -108,27 +98,19 @@ internal sealed class PandorasBoxIpc : IDisposable _pausedFeatures = new HashSet(); foreach (string conflictingFeature in ConflictingFeatures) { - TryDisableFeature(conflictingFeature); - } - if (_configuration.General.AutoSolveQte) - { - TryDisableFeature("Auto Active Time Maneuver"); - } - } - - private void TryDisableFeature(string feature) - { - try - { - if (_getFeatureEnabled.InvokeFunc(feature) == true) + try { - _setFeatureEnabled.InvokeAction(feature, arg2: false); - _pausedFeatures.Add(feature); - _logger.LogInformation("Paused Pandora's Box feature: {Feature}", feature); + if (_getFeatureEnabled.InvokeFunc(conflictingFeature) == true) + { + _setFeatureEnabled.InvokeAction(conflictingFeature, arg2: false); + _pausedFeatures.Add(conflictingFeature); + _logger.LogInformation("Paused Pandora's Box feature: {Feature}", conflictingFeature); + } + } + catch (IpcError exception) + { + _logger.LogWarning(exception, "Failed to pause Pandora's Box feature: {Feature}", conflictingFeature); } - } - catch (IpcError) - { } } @@ -145,8 +127,9 @@ internal sealed class PandorasBoxIpc : IDisposable _setFeatureEnabled.InvokeAction(pausedFeature, arg2: true); _logger.LogInformation("Restored Pandora's Box feature: {Feature}", pausedFeature); } - catch (IpcError) + catch (IpcError exception) { + _logger.LogWarning(exception, "Failed to restore Pandora's Box feature: {Feature}", pausedFeature); } } _pausedFeatures = null; diff --git a/Questionable/Questionable.External/QuestionableIpc.cs b/Questionable/Questionable.External/QuestionableIpc.cs index b598cb7..4149792 100644 --- a/Questionable/Questionable.External/QuestionableIpc.cs +++ b/Questionable/Questionable.External/QuestionableIpc.cs @@ -1,21 +1,14 @@ using System; using System.Collections.Generic; -using System.Collections.Immutable; using System.Linq; using System.Numerics; -using System.Runtime.InteropServices; using Dalamud.Plugin; using Dalamud.Plugin.Ipc; -using FFXIVClientStructs.FFXIV.Client.Game; -using Microsoft.Extensions.DependencyInjection; using Questionable.Controller; -using Questionable.Controller.Steps; -using Questionable.Data; using Questionable.Functions; using Questionable.Model; using Questionable.Model.Questing; using Questionable.Windows; -using Questionable.Windows.JournalComponents; using Questionable.Windows.QuestComponents; namespace Questionable.External; @@ -37,39 +30,12 @@ internal sealed class QuestionableIpc : IDisposable public required ushort TerritoryId { get; init; } } - public sealed class TaskData - { - public required string TaskName { get; init; } - - public required int RemainingTaskCount { get; init; } - } - - public sealed class StopConditionData - { - public required bool Enabled { get; init; } - - public required int TargetValue { get; init; } - } - - public sealed class MsqLevelLockData - { - public required bool IsLevelLocked { get; init; } - - public required int LevelsNeeded { get; init; } - - public required int RequiredLevel { get; init; } - - public required string? QuestName { get; init; } - } - private const string IpcIsRunning = "Questionable.IsRunning"; private const string IpcGetCurrentQuestId = "Questionable.GetCurrentQuestId"; private const string IpcGetCurrentStepData = "Questionable.GetCurrentStepData"; - private const string IpcGetCurrentTask = "Questionable.GetCurrentTask"; - private const string IpcGetCurrentlyActiveEventQuests = "Questionable.GetCurrentlyActiveEventQuests"; private const string IpcStartQuest = "Questionable.StartQuest"; @@ -78,26 +44,14 @@ internal sealed class QuestionableIpc : IDisposable private const string IpcIsQuestLocked = "Questionable.IsQuestLocked"; - private const string IpcIsQuestComplete = "Questionable.IsQuestComplete"; + private const string IpcIsQuestCompleted = "Questionable.IsQuestCompleted"; - private const string IpcIsReadyToAcceptQuest = "Questionable.IsReadyToAcceptQuest"; + private const string IpcIsQuestAvailable = "Questionable.IsQuestAvailable"; private const string IpcIsQuestAccepted = "Questionable.IsQuestAccepted"; private const string IpcIsQuestUnobtainable = "Questionable.IsQuestUnobtainable"; - private const string IpcGetDefaultDutyMode = "Questionable.GetDefaultDutyMode"; - - private const string IpcSetDefaultDutyMode = "Questionable.SetDefaultDutyMode"; - - private const string IpcGetDutyModeOverride = "Questionable.GetDutyModeOverride"; - - private const string IpcSetDutyModeOverride = "Questionable.SetDutyModeOverride"; - - private const string IpcClearDutyModeOverride = "Questionable.ClearDutyModeOverride"; - - private const string IpcClearAllDutyModeOverrides = "Questionable.ClearAllDutyModeOverrides"; - private const string IpcImportQuestPriority = "Questionable.ImportQuestPriority"; private const string IpcClearQuestPriority = "Questionable.ClearQuestPriority"; @@ -108,136 +62,20 @@ internal sealed class QuestionableIpc : IDisposable private const string IpcExportQuestPriority = "Questionable.ExportQuestPriority"; - private const string IpcGetPriorityQuests = "Questionable.GetPriorityQuests"; - - private const string IpcRemovePriorityQuest = "Questionable.RemovePriorityQuest"; - - private const string IpcReorderPriorityQuest = "Questionable.ReorderPriorityQuest"; - - private const string IpcGetAvailablePresets = "Questionable.GetAvailablePresets"; - - private const string IpcGetPresetQuests = "Questionable.GetPresetQuests"; - - private const string IpcAddPresetToPriority = "Questionable.AddPresetToPriority"; - - private const string IpcIsPresetAvailable = "Questionable.IsPresetAvailable"; - - private const string IpcIsQuestInPriority = "Questionable.IsQuestInPriority"; - - private const string IpcGetQuestPriorityIndex = "Questionable.GetQuestPriorityIndex"; - - private const string IpcHasAvailablePriorityQuests = "Questionable.HasAvailablePriorityQuests"; - - private const string IpcGetStopConditionsEnabled = "Questionable.GetStopConditionsEnabled"; - - private const string IpcSetStopConditionsEnabled = "Questionable.SetStopConditionsEnabled"; - - private const string IpcGetStopQuestList = "Questionable.GetStopQuestList"; - - private const string IpcAddStopQuest = "Questionable.AddStopQuest"; - - private const string IpcRemoveStopQuest = "Questionable.RemoveStopQuest"; - - private const string IpcClearStopQuests = "Questionable.ClearStopQuests"; - - private const string IpcGetLevelStopCondition = "Questionable.GetLevelStopCondition"; - - private const string IpcSetLevelStopCondition = "Questionable.SetLevelStopCondition"; - - private const string IpcGetSequenceStopCondition = "Questionable.GetSequenceStopCondition"; - - private const string IpcSetSequenceStopCondition = "Questionable.SetSequenceStopCondition"; - - private const string IpcGetQuestSequenceStopCondition = "Questionable.GetQuestSequenceStopCondition"; - - private const string IpcSetQuestSequenceStopCondition = "Questionable.SetQuestSequenceStopCondition"; - - private const string IpcRemoveQuestSequenceStopCondition = "Questionable.RemoveQuestSequenceStopCondition"; - - private const string IpcGetAllQuestSequenceStopConditions = "Questionable.GetAllQuestSequenceStopConditions"; - - private const string IpcGetLevelStopMode = "Questionable.GetLevelStopMode"; - - private const string IpcSetLevelStopMode = "Questionable.SetLevelStopMode"; - - private const string IpcGetSequenceStopMode = "Questionable.GetSequenceStopMode"; - - private const string IpcSetSequenceStopMode = "Questionable.SetSequenceStopMode"; - - private const string IpcGetQuestStopMode = "Questionable.GetQuestStopMode"; - - private const string IpcSetQuestStopMode = "Questionable.SetQuestStopMode"; - - private const string IpcGetAlliedSocietyRemainingAllowances = "Questionable.AlliedSociety.GetRemainingAllowances"; - - private const string IpcGetAlliedSocietyTimeUntilReset = "Questionable.AlliedSociety.GetTimeUntilReset"; - - private const string IpcGetAlliedSocietyAvailableQuestIds = "Questionable.AlliedSociety.GetAvailableQuestIds"; - - private const string IpcGetAlliedSocietyAllAvailableQuestCounts = "Questionable.AlliedSociety.GetAllAvailableQuestCounts"; - - private const string IpcGetAlliedSocietyIsMaxRank = "Questionable.AlliedSociety.IsMaxRank"; - - private const string IpcGetAlliedSocietyCurrentRank = "Questionable.AlliedSociety.GetCurrentRank"; - - private const string IpcGetAlliedSocietiesWithAvailableQuests = "Questionable.AlliedSociety.GetSocietiesWithAvailableQuests"; - - private const string IpcAddAlliedSocietyOptimalQuests = "Questionable.AlliedSociety.AddOptimalQuests"; - - private const string IpcGetAlliedSocietyOptimalQuests = "Questionable.AlliedSociety.GetOptimalQuests"; - - private const string IpcIsLevelingModeEnabled = "Questionable.IsLevelingModeEnabled"; - - private const string IpcSetLevelingModeEnabled = "Questionable.SetLevelingModeEnabled"; - - private const string IpcGetMsqLevelLockInfo = "Questionable.GetMsqLevelLockInfo"; - - private const string IpcStartLevelingMode = "Questionable.StartLevelingMode"; - - private const string IpcStopLevelingMode = "Questionable.StopLevelingMode"; - - private const string IpcGetBlacklistedQuests = "Questionable.GetBlacklistedQuests"; - - private const string IpcAddBlacklistedQuest = "Questionable.AddBlacklistedQuest"; - - private const string IpcRemoveBlacklistedQuest = "Questionable.RemoveBlacklistedQuest"; - - private const string IpcClearBlacklistedQuests = "Questionable.ClearBlacklistedQuests"; - - private const string IpcIsQuestBlacklisted = "Questionable.IsQuestBlacklisted"; - - private const string IpcGetMsqPriorityMode = "Questionable.GetMsqPriorityMode"; - - private const string IpcSetMsqPriorityMode = "Questionable.SetMsqPriorityMode"; - private readonly QuestController _questController; private readonly QuestRegistry _questRegistry; private readonly QuestFunctions _questFunctions; - private readonly QuestData _questData; - private readonly ManualPriorityComponent _manualPriorityComponent; - private readonly PresetBuilderComponent _presetBuilderComponent; - - private readonly Configuration _configuration; - - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly IServiceProvider _serviceProvider; - - private readonly AutoDutyIpc _autoDutyIpc; - private readonly ICallGateProvider _isRunning; private readonly ICallGateProvider _getCurrentQuestId; private readonly ICallGateProvider _getCurrentStepData; - private readonly ICallGateProvider _getCurrentTask; - private readonly ICallGateProvider> _getCurrentlyActiveEventQuests; private readonly ICallGateProvider _startQuest; @@ -246,26 +84,14 @@ internal sealed class QuestionableIpc : IDisposable private readonly ICallGateProvider _isQuestLocked; - private readonly ICallGateProvider _IsQuestComplete; + private readonly ICallGateProvider _isQuestCompleted; - private readonly ICallGateProvider _IsReadyToAcceptQuest; + private readonly ICallGateProvider _isQuestAvailable; private readonly ICallGateProvider _isQuestAccepted; private readonly ICallGateProvider _isQuestUnobtainable; - private readonly ICallGateProvider _getDefaultDutyMode; - - private readonly ICallGateProvider _setDefaultDutyMode; - - private readonly ICallGateProvider _getDutyModeOverride; - - private readonly ICallGateProvider _setDutyModeOverride; - - private readonly ICallGateProvider _clearDutyModeOverride; - - private readonly ICallGateProvider _clearAllDutyModeOverrides; - private readonly ICallGateProvider _importQuestPriority; private readonly ICallGateProvider _addQuestPriority; @@ -276,129 +102,19 @@ internal sealed class QuestionableIpc : IDisposable private readonly ICallGateProvider _exportQuestPriority; - private readonly ICallGateProvider> _getPriorityQuests; - - private readonly ICallGateProvider _removePriorityQuest; - - private readonly ICallGateProvider _reorderPriorityQuest; - - private readonly ICallGateProvider> _getAvailablePresets; - - private readonly ICallGateProvider> _getPresetQuests; - - private readonly ICallGateProvider _addPresetToPriority; - - private readonly ICallGateProvider _isPresetAvailable; - - private readonly ICallGateProvider _isQuestInPriority; - - private readonly ICallGateProvider _getQuestPriorityIndex; - - private readonly ICallGateProvider _hasAvailablePriorityQuests; - - private readonly ICallGateProvider _getStopConditionsEnabled; - - private readonly ICallGateProvider _setStopConditionsEnabled; - - private readonly ICallGateProvider> _getStopQuestList; - - private readonly ICallGateProvider _addStopQuest; - - private readonly ICallGateProvider _removeStopQuest; - - private readonly ICallGateProvider _clearStopQuests; - - private readonly ICallGateProvider _getLevelStopCondition; - - private readonly ICallGateProvider _setLevelStopCondition; - - private readonly ICallGateProvider _getSequenceStopCondition; - - private readonly ICallGateProvider _setSequenceStopCondition; - - private readonly ICallGateProvider _getQuestSequenceStopCondition; - - private readonly ICallGateProvider _setQuestSequenceStopCondition; - - private readonly ICallGateProvider _removeQuestSequenceStopCondition; - - private readonly ICallGateProvider> _getAllQuestSequenceStopConditions; - - private readonly ICallGateProvider _getLevelStopMode; - - private readonly ICallGateProvider _setLevelStopMode; - - private readonly ICallGateProvider _getSequenceStopMode; - - private readonly ICallGateProvider _setSequenceStopMode; - - private readonly ICallGateProvider _getQuestStopMode; - - private readonly ICallGateProvider _setQuestStopMode; - - private readonly ICallGateProvider _getAlliedSocietyRemainingAllowances; - - private readonly ICallGateProvider _getAlliedSocietyTimeUntilReset; - - private readonly ICallGateProvider> _getAlliedSocietyAvailableQuestIds; - - private readonly ICallGateProvider> _getAlliedSocietyAllAvailableQuestCounts; - - private readonly ICallGateProvider _getAlliedSocietyIsMaxRank; - - private readonly ICallGateProvider _getAlliedSocietyCurrentRank; - - private readonly ICallGateProvider> _getAlliedSocietiesWithAvailableQuests; - - private readonly ICallGateProvider _addAlliedSocietyOptimalQuests; - - private readonly ICallGateProvider> _getAlliedSocietyOptimalQuests; - - private readonly ICallGateProvider _isLevelingModeEnabled; - - private readonly ICallGateProvider _setLevelingModeEnabled; - - private readonly ICallGateProvider _getMsqLevelLockInfo; - - private readonly ICallGateProvider _startLevelingMode; - - private readonly ICallGateProvider _stopLevelingMode; - - private readonly ICallGateProvider> _getBlacklistedQuests; - - private readonly ICallGateProvider _addBlacklistedQuest; - - private readonly ICallGateProvider _removeBlacklistedQuest; - - private readonly ICallGateProvider _clearBlacklistedQuests; - - private readonly ICallGateProvider _isQuestBlacklisted; - - private readonly ICallGateProvider _getMsqPriorityMode; - - private readonly ICallGateProvider _setMsqPriorityMode; - - public QuestionableIpc(QuestController questController, EventInfoComponent eventInfoComponent, QuestRegistry questRegistry, QuestFunctions questFunctions, QuestData questData, ManualPriorityComponent manualPriorityComponent, PresetBuilderComponent presetBuilderComponent, Configuration configuration, IDalamudPluginInterface pluginInterface, IServiceProvider serviceProvider, AutoDutyIpc autoDutyIpc) + public QuestionableIpc(QuestController questController, EventInfoComponent eventInfoComponent, QuestRegistry questRegistry, QuestFunctions questFunctions, ManualPriorityComponent manualPriorityComponent, IDalamudPluginInterface pluginInterface) { QuestionableIpc questionableIpc = this; _questController = questController; _questRegistry = questRegistry; _questFunctions = questFunctions; - _questData = questData; _manualPriorityComponent = manualPriorityComponent; - _presetBuilderComponent = presetBuilderComponent; - _configuration = configuration; - _pluginInterface = pluginInterface; - _serviceProvider = serviceProvider; - _autoDutyIpc = autoDutyIpc; _isRunning = pluginInterface.GetIpcProvider("Questionable.IsRunning"); _isRunning.RegisterFunc(() => questController.AutomationType != QuestController.EAutomationType.Manual || questController.IsRunning); _getCurrentQuestId = pluginInterface.GetIpcProvider("Questionable.GetCurrentQuestId"); _getCurrentQuestId.RegisterFunc(() => questController.CurrentQuest?.Quest.Id.ToString()); _getCurrentStepData = pluginInterface.GetIpcProvider("Questionable.GetCurrentStepData"); _getCurrentStepData.RegisterFunc(GetStepData); - _getCurrentTask = pluginInterface.GetIpcProvider("Questionable.GetCurrentTask"); - _getCurrentTask.RegisterFunc(GetCurrentTask); _getCurrentlyActiveEventQuests = pluginInterface.GetIpcProvider>("Questionable.GetCurrentlyActiveEventQuests"); _getCurrentlyActiveEventQuests.RegisterFunc(() => (from q in eventInfoComponent.GetCurrentlyActiveEventQuests() select q.ToString()).ToList()); @@ -408,26 +124,14 @@ internal sealed class QuestionableIpc : IDisposable _startSingleQuest.RegisterFunc((string questId) => questionableIpc.StartQuest(questId, single: true)); _isQuestLocked = pluginInterface.GetIpcProvider("Questionable.IsQuestLocked"); _isQuestLocked.RegisterFunc(IsQuestLocked); - _IsQuestComplete = pluginInterface.GetIpcProvider("Questionable.IsQuestComplete"); - _IsQuestComplete.RegisterFunc(IsQuestComplete); - _IsReadyToAcceptQuest = pluginInterface.GetIpcProvider("Questionable.IsReadyToAcceptQuest"); - _IsReadyToAcceptQuest.RegisterFunc(IsReadyToAcceptQuest); + _isQuestCompleted = pluginInterface.GetIpcProvider("Questionable.IsQuestCompleted"); + _isQuestCompleted.RegisterFunc(IsQuestCompleted); + _isQuestAvailable = pluginInterface.GetIpcProvider("Questionable.IsQuestAvailable"); + _isQuestAvailable.RegisterFunc(IsQuestAvailable); _isQuestAccepted = pluginInterface.GetIpcProvider("Questionable.IsQuestAccepted"); _isQuestAccepted.RegisterFunc(IsQuestAccepted); _isQuestUnobtainable = pluginInterface.GetIpcProvider("Questionable.IsQuestUnobtainable"); _isQuestUnobtainable.RegisterFunc(IsQuestUnobtainable); - _getDefaultDutyMode = pluginInterface.GetIpcProvider("Questionable.GetDefaultDutyMode"); - _getDefaultDutyMode.RegisterFunc(GetDefaultDutyMode); - _setDefaultDutyMode = pluginInterface.GetIpcProvider("Questionable.SetDefaultDutyMode"); - _setDefaultDutyMode.RegisterFunc(SetDefaultDutyMode); - _getDutyModeOverride = pluginInterface.GetIpcProvider("Questionable.GetDutyModeOverride"); - _getDutyModeOverride.RegisterFunc(GetDutyModeOverride); - _setDutyModeOverride = pluginInterface.GetIpcProvider("Questionable.SetDutyModeOverride"); - _setDutyModeOverride.RegisterFunc(SetDutyModeOverride); - _clearDutyModeOverride = pluginInterface.GetIpcProvider("Questionable.ClearDutyModeOverride"); - _clearDutyModeOverride.RegisterFunc(ClearDutyModeOverride); - _clearAllDutyModeOverrides = pluginInterface.GetIpcProvider("Questionable.ClearAllDutyModeOverrides"); - _clearAllDutyModeOverrides.RegisterFunc(ClearAllDutyModeOverrides); _importQuestPriority = pluginInterface.GetIpcProvider("Questionable.ImportQuestPriority"); _importQuestPriority.RegisterFunc(ImportQuestPriority); _addQuestPriority = pluginInterface.GetIpcProvider("Questionable.AddQuestPriority"); @@ -438,152 +142,6 @@ internal sealed class QuestionableIpc : IDisposable _insertQuestPriority.RegisterFunc(InsertQuestPriority); _exportQuestPriority = pluginInterface.GetIpcProvider("Questionable.ExportQuestPriority"); _exportQuestPriority.RegisterFunc(_manualPriorityComponent.EncodeQuestPriority); - _getPriorityQuests = pluginInterface.GetIpcProvider>("Questionable.GetPriorityQuests"); - _getPriorityQuests.RegisterFunc(GetPriorityQuests); - _removePriorityQuest = pluginInterface.GetIpcProvider("Questionable.RemovePriorityQuest"); - _removePriorityQuest.RegisterFunc(RemovePriorityQuest); - _reorderPriorityQuest = pluginInterface.GetIpcProvider("Questionable.ReorderPriorityQuest"); - _reorderPriorityQuest.RegisterFunc(ReorderPriorityQuest); - _getAvailablePresets = pluginInterface.GetIpcProvider>("Questionable.GetAvailablePresets"); - _getAvailablePresets.RegisterFunc(GetAvailablePresets); - _getPresetQuests = pluginInterface.GetIpcProvider>("Questionable.GetPresetQuests"); - _getPresetQuests.RegisterFunc(GetPresetQuests); - _addPresetToPriority = pluginInterface.GetIpcProvider("Questionable.AddPresetToPriority"); - _addPresetToPriority.RegisterFunc(AddPresetToPriority); - _isPresetAvailable = pluginInterface.GetIpcProvider("Questionable.IsPresetAvailable"); - _isPresetAvailable.RegisterFunc(IsPresetAvailable); - _isQuestInPriority = pluginInterface.GetIpcProvider("Questionable.IsQuestInPriority"); - _isQuestInPriority.RegisterFunc(IsQuestInPriority); - _getQuestPriorityIndex = pluginInterface.GetIpcProvider("Questionable.GetQuestPriorityIndex"); - _getQuestPriorityIndex.RegisterFunc(GetQuestPriorityIndex); - _hasAvailablePriorityQuests = pluginInterface.GetIpcProvider("Questionable.HasAvailablePriorityQuests"); - _hasAvailablePriorityQuests.RegisterFunc(HasAvailablePriorityQuests); - _getStopConditionsEnabled = pluginInterface.GetIpcProvider("Questionable.GetStopConditionsEnabled"); - _getStopConditionsEnabled.RegisterFunc(GetStopConditionsEnabled); - _setStopConditionsEnabled = pluginInterface.GetIpcProvider("Questionable.SetStopConditionsEnabled"); - _setStopConditionsEnabled.RegisterFunc(SetStopConditionsEnabled); - _getStopQuestList = pluginInterface.GetIpcProvider>("Questionable.GetStopQuestList"); - _getStopQuestList.RegisterFunc(GetStopQuestList); - _addStopQuest = pluginInterface.GetIpcProvider("Questionable.AddStopQuest"); - _addStopQuest.RegisterFunc(AddStopQuest); - _removeStopQuest = pluginInterface.GetIpcProvider("Questionable.RemoveStopQuest"); - _removeStopQuest.RegisterFunc(RemoveStopQuest); - _clearStopQuests = pluginInterface.GetIpcProvider("Questionable.ClearStopQuests"); - _clearStopQuests.RegisterFunc(ClearStopQuests); - _getLevelStopCondition = pluginInterface.GetIpcProvider("Questionable.GetLevelStopCondition"); - _getLevelStopCondition.RegisterFunc(GetLevelStopCondition); - _setLevelStopCondition = pluginInterface.GetIpcProvider("Questionable.SetLevelStopCondition"); - _setLevelStopCondition.RegisterFunc(SetLevelStopCondition); - _getSequenceStopCondition = pluginInterface.GetIpcProvider("Questionable.GetSequenceStopCondition"); - _getSequenceStopCondition.RegisterFunc(GetSequenceStopCondition); - _setSequenceStopCondition = pluginInterface.GetIpcProvider("Questionable.SetSequenceStopCondition"); - _setSequenceStopCondition.RegisterFunc(SetSequenceStopCondition); - _getQuestSequenceStopCondition = pluginInterface.GetIpcProvider("Questionable.GetQuestSequenceStopCondition"); - _getQuestSequenceStopCondition.RegisterFunc(GetQuestSequenceStopCondition); - _setQuestSequenceStopCondition = pluginInterface.GetIpcProvider("Questionable.SetQuestSequenceStopCondition"); - _setQuestSequenceStopCondition.RegisterFunc(SetQuestSequenceStopCondition); - _removeQuestSequenceStopCondition = pluginInterface.GetIpcProvider("Questionable.RemoveQuestSequenceStopCondition"); - _removeQuestSequenceStopCondition.RegisterFunc(RemoveQuestSequenceStopCondition); - _getAllQuestSequenceStopConditions = pluginInterface.GetIpcProvider>("Questionable.GetAllQuestSequenceStopConditions"); - _getAllQuestSequenceStopConditions.RegisterFunc(GetAllQuestSequenceStopConditions); - _getLevelStopMode = pluginInterface.GetIpcProvider("Questionable.GetLevelStopMode"); - _getLevelStopMode.RegisterFunc(() => (int)questionableIpc._configuration.Stop.LevelStopMode); - _setLevelStopMode = pluginInterface.GetIpcProvider("Questionable.SetLevelStopMode"); - _setLevelStopMode.RegisterFunc(delegate(int mode) - { - if (!Enum.IsDefined(typeof(Configuration.EStopConditionMode), mode)) - { - return false; - } - questionableIpc._configuration.Stop.LevelStopMode = (Configuration.EStopConditionMode)mode; - questionableIpc._pluginInterface.SavePluginConfig(questionableIpc._configuration); - return true; - }); - _getSequenceStopMode = pluginInterface.GetIpcProvider("Questionable.GetSequenceStopMode"); - _getSequenceStopMode.RegisterFunc(() => (int)questionableIpc._configuration.Stop.SequenceStopMode); - _setSequenceStopMode = pluginInterface.GetIpcProvider("Questionable.SetSequenceStopMode"); - _setSequenceStopMode.RegisterFunc(delegate(int mode) - { - if (!Enum.IsDefined(typeof(Configuration.EStopConditionMode), mode)) - { - return false; - } - questionableIpc._configuration.Stop.SequenceStopMode = (Configuration.EStopConditionMode)mode; - questionableIpc._pluginInterface.SavePluginConfig(questionableIpc._configuration); - return true; - }); - _getQuestStopMode = pluginInterface.GetIpcProvider("Questionable.GetQuestStopMode"); - _getQuestStopMode.RegisterFunc((string questId) => (int)(questionableIpc._configuration.Stop.QuestStopModes.TryGetValue(questId, out var value) ? value : ((Configuration.EStopConditionMode)(-1)))); - _setQuestStopMode = pluginInterface.GetIpcProvider("Questionable.SetQuestStopMode"); - _setQuestStopMode.RegisterFunc(delegate(string questId, int mode) - { - if (!Enum.IsDefined(typeof(Configuration.EStopConditionMode), mode)) - { - return false; - } - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null && questionableIpc._questRegistry.IsKnownQuest(elementId)) - { - if (mode == 0) - { - questionableIpc._configuration.Stop.QuestsToStopAfter.Remove(elementId); - questionableIpc._configuration.Stop.QuestStopModes.Remove(questId); - questionableIpc._configuration.Stop.QuestSequences.Remove(questId); - } - else - { - if (!questionableIpc._configuration.Stop.QuestsToStopAfter.Contains(elementId)) - { - questionableIpc._configuration.Stop.QuestsToStopAfter.Add(elementId); - } - questionableIpc._configuration.Stop.QuestStopModes[questId] = (Configuration.EStopConditionMode)mode; - } - questionableIpc._pluginInterface.SavePluginConfig(questionableIpc._configuration); - return true; - } - return false; - }); - _getAlliedSocietyRemainingAllowances = pluginInterface.GetIpcProvider("Questionable.AlliedSociety.GetRemainingAllowances"); - _getAlliedSocietyRemainingAllowances.RegisterFunc(GetAlliedSocietyRemainingAllowances); - _getAlliedSocietyTimeUntilReset = pluginInterface.GetIpcProvider("Questionable.AlliedSociety.GetTimeUntilReset"); - _getAlliedSocietyTimeUntilReset.RegisterFunc(GetAlliedSocietyTimeUntilReset); - _getAlliedSocietyAvailableQuestIds = pluginInterface.GetIpcProvider>("Questionable.AlliedSociety.GetAvailableQuestIds"); - _getAlliedSocietyAvailableQuestIds.RegisterFunc(GetAlliedSocietyAvailableQuestIds); - _getAlliedSocietyAllAvailableQuestCounts = pluginInterface.GetIpcProvider>("Questionable.AlliedSociety.GetAllAvailableQuestCounts"); - _getAlliedSocietyAllAvailableQuestCounts.RegisterFunc(GetAlliedSocietyAllAvailableQuestCounts); - _getAlliedSocietyIsMaxRank = pluginInterface.GetIpcProvider("Questionable.AlliedSociety.IsMaxRank"); - _getAlliedSocietyIsMaxRank.RegisterFunc(GetAlliedSocietyIsMaxRank); - _getAlliedSocietyCurrentRank = pluginInterface.GetIpcProvider("Questionable.AlliedSociety.GetCurrentRank"); - _getAlliedSocietyCurrentRank.RegisterFunc(GetAlliedSocietyCurrentRank); - _getAlliedSocietiesWithAvailableQuests = pluginInterface.GetIpcProvider>("Questionable.AlliedSociety.GetSocietiesWithAvailableQuests"); - _getAlliedSocietiesWithAvailableQuests.RegisterFunc(GetAlliedSocietiesWithAvailableQuests); - _addAlliedSocietyOptimalQuests = pluginInterface.GetIpcProvider("Questionable.AlliedSociety.AddOptimalQuests"); - _addAlliedSocietyOptimalQuests.RegisterFunc(AddAlliedSocietyOptimalQuests); - _getAlliedSocietyOptimalQuests = pluginInterface.GetIpcProvider>("Questionable.AlliedSociety.GetOptimalQuests"); - _getAlliedSocietyOptimalQuests.RegisterFunc(GetAlliedSocietyOptimalQuests); - _isLevelingModeEnabled = pluginInterface.GetIpcProvider("Questionable.IsLevelingModeEnabled"); - _isLevelingModeEnabled.RegisterFunc(IsLevelingModeEnabled); - _setLevelingModeEnabled = pluginInterface.GetIpcProvider("Questionable.SetLevelingModeEnabled"); - _setLevelingModeEnabled.RegisterFunc(SetLevelingModeEnabled); - _getMsqLevelLockInfo = pluginInterface.GetIpcProvider("Questionable.GetMsqLevelLockInfo"); - _getMsqLevelLockInfo.RegisterFunc(GetMsqLevelLockInfo); - _startLevelingMode = pluginInterface.GetIpcProvider("Questionable.StartLevelingMode"); - _startLevelingMode.RegisterFunc(StartLevelingMode); - _stopLevelingMode = pluginInterface.GetIpcProvider("Questionable.StopLevelingMode"); - _stopLevelingMode.RegisterFunc(StopLevelingMode); - _getBlacklistedQuests = pluginInterface.GetIpcProvider>("Questionable.GetBlacklistedQuests"); - _getBlacklistedQuests.RegisterFunc(GetBlacklistedQuests); - _addBlacklistedQuest = pluginInterface.GetIpcProvider("Questionable.AddBlacklistedQuest"); - _addBlacklistedQuest.RegisterFunc(AddBlacklistedQuest); - _removeBlacklistedQuest = pluginInterface.GetIpcProvider("Questionable.RemoveBlacklistedQuest"); - _removeBlacklistedQuest.RegisterFunc(RemoveBlacklistedQuest); - _clearBlacklistedQuests = pluginInterface.GetIpcProvider("Questionable.ClearBlacklistedQuests"); - _clearBlacklistedQuests.RegisterFunc(ClearBlacklistedQuests); - _isQuestBlacklisted = pluginInterface.GetIpcProvider("Questionable.IsQuestBlacklisted"); - _isQuestBlacklisted.RegisterFunc(IsQuestBlacklistedIpc); - _getMsqPriorityMode = pluginInterface.GetIpcProvider("Questionable.GetMsqPriorityMode"); - _getMsqPriorityMode.RegisterFunc(GetMsqPriorityMode); - _setMsqPriorityMode = pluginInterface.GetIpcProvider("Questionable.SetMsqPriorityMode"); - _setMsqPriorityMode.RegisterFunc(SetMsqPriorityMode); } private bool StartQuest(string questId, bool single) @@ -632,22 +190,6 @@ internal sealed class QuestionableIpc : IDisposable }; } - private TaskData? GetCurrentTask() - { - ITask task = _questController.TaskQueue.CurrentTaskExecutor?.CurrentTask; - if (task == null) - { - return null; - } - int remainingTaskCount = _questController.TaskQueue.RemainingTasks.Count(); - string taskName = task.ToString() ?? "Unknown"; - return new TaskData - { - TaskName = taskName, - RemainingTaskCount = remainingTaskCount - }; - } - private bool IsQuestLocked(string questId) { if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null && _questRegistry.TryGetQuest(elementId, out Quest _)) @@ -657,7 +199,7 @@ internal sealed class QuestionableIpc : IDisposable return true; } - private bool IsQuestComplete(string questId) + private bool IsQuestCompleted(string questId) { if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) { @@ -666,7 +208,7 @@ internal sealed class QuestionableIpc : IDisposable return false; } - private bool IsReadyToAcceptQuest(string questId) + private bool IsQuestAvailable(string questId) { if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) { @@ -693,59 +235,6 @@ internal sealed class QuestionableIpc : IDisposable return false; } - private int GetDefaultDutyMode() - { - return (int)_configuration.Duties.DefaultDutyMode; - } - - private bool SetDefaultDutyMode(int dutyMode) - { - if (!Enum.IsDefined(typeof(EDutyMode), dutyMode)) - { - return false; - } - _configuration.Duties.DefaultDutyMode = (EDutyMode)dutyMode; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private int GetDutyModeOverride(uint contentFinderConditionId) - { - if (_configuration.Duties.DutyModeOverrides.TryGetValue(contentFinderConditionId, out var value)) - { - return (int)value; - } - return -1; - } - - private bool SetDutyModeOverride(uint contentFinderConditionId, int dutyMode) - { - if (!Enum.IsDefined(typeof(EDutyMode), dutyMode)) - { - return false; - } - _configuration.Duties.DutyModeOverrides[contentFinderConditionId] = (EDutyMode)dutyMode; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private bool ClearDutyModeOverride(uint contentFinderConditionId) - { - bool num = _configuration.Duties.DutyModeOverrides.Remove(contentFinderConditionId); - if (num) - { - _pluginInterface.SavePluginConfig(_configuration); - } - return num; - } - - private bool ClearAllDutyModeOverrides() - { - _configuration.Duties.DutyModeOverrides.Clear(); - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - private bool ImportQuestPriority(string encodedQuestPriority) { List questElements = PriorityWindow.DecodeQuestPriority(encodedQuestPriority); @@ -765,7 +254,7 @@ internal sealed class QuestionableIpc : IDisposable { return _questController.AddQuestPriority(elementId); } - return false; + return true; } private bool InsertQuestPriority(int index, string questId) @@ -774,689 +263,6 @@ internal sealed class QuestionableIpc : IDisposable { return _questController.InsertQuestPriority(index, elementId); } - return false; - } - - private List GetPriorityQuests() - { - return _questController.ManualPriorityQuests.Select((Quest q) => q.Id.ToString()).ToList(); - } - - private bool RemovePriorityQuest(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - Quest quest = _questController.ManualPriorityQuests.FirstOrDefault((Quest q) => q.Id.Equals(elementId)); - if (quest != null) - { - _questController.ManualPriorityQuests.Remove(quest); - return true; - } - } - return false; - } - - private bool ReorderPriorityQuest(string questId, int newIndex) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - Quest quest = _questController.ManualPriorityQuests.FirstOrDefault((Quest q) => q.Id.Equals(elementId)); - if (quest != null && newIndex >= 0 && newIndex < _questController.ManualPriorityQuests.Count) - { - _questController.ManualPriorityQuests.Remove(quest); - _questController.ManualPriorityQuests.Insert(newIndex, quest); - return true; - } - } - return false; - } - - private List GetAvailablePresets() - { - return new List - { - "aether_currents_hw", "aether_currents_sb", "aether_currents_shb", "aether_currents_ew", "aether_currents_dt", "aethernet_limsa", "aethernet_gridania", "aethernet_uldah", "aethernet_goldsaucer", "aethernet_ishgard", - "aethernet_idyllshire", "aethernet_rhalgrs_reach", "aethernet_kugane", "aethernet_doman_enclave", "aethernet_the_crystarium", "aethernet_eulmore", "aethernet_old_sharlayan", "aethernet_radz_at_han", "aethernet_tuliyollal", "aethernet_solution_nine", - "crystal_tower", "hard_primals" - }; - } - - private List GetPresetQuests(string presetName) - { - List source; - switch (presetName) - { - case "aether_currents_hw": - source = GetAetherCurrentQuestsByExpansion(EExpansionVersion.Heavensward); - break; - case "aether_currents_sb": - source = GetAetherCurrentQuestsByExpansion(EExpansionVersion.Stormblood); - break; - case "aether_currents_shb": - source = GetAetherCurrentQuestsByExpansion(EExpansionVersion.Shadowbringers); - break; - case "aether_currents_ew": - source = GetAetherCurrentQuestsByExpansion(EExpansionVersion.Endwalker); - break; - case "aether_currents_dt": - source = GetAetherCurrentQuestsByExpansion(EExpansionVersion.Dawntrail); - break; - case "aethernet_limsa": - { - int num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = new AethernetId(1); - source = list15; - break; - } - case "aethernet_gridania": - { - int num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new AethernetId(2); - source = list14; - break; - } - case "aethernet_uldah": - { - int num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new AethernetId(3); - source = list13; - break; - } - case "aethernet_goldsaucer": - { - int num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = new AethernetId(4); - source = list12; - break; - } - case "aethernet_ishgard": - { - int num = 1; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new AethernetId(5); - source = list11; - break; - } - case "aethernet_idyllshire": - { - int num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = new AethernetId(6); - source = list10; - break; - } - case "aethernet_rhalgrs_reach": - { - int num = 1; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = new AethernetId(7); - source = list9; - break; - } - case "aethernet_kugane": - { - int num = 1; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = new AethernetId(8); - source = list8; - break; - } - case "aethernet_doman_enclave": - { - int num = 1; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = new AethernetId(9); - source = list7; - break; - } - case "aethernet_the_crystarium": - { - int num = 1; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = new AethernetId(10); - source = list6; - break; - } - case "aethernet_eulmore": - { - int num = 1; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = new AethernetId(11); - source = list5; - break; - } - case "aethernet_old_sharlayan": - { - int num = 1; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = new AethernetId(12); - source = list4; - break; - } - case "aethernet_radz_at_han": - { - int num = 1; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); - CollectionsMarshal.AsSpan(list3)[0] = new AethernetId(13); - source = list3; - break; - } - case "aethernet_tuliyollal": - { - int num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new AethernetId(14); - source = list2; - break; - } - case "aethernet_solution_nine": - { - int num = 1; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new AethernetId(15); - source = list; - break; - } - case "crystal_tower": - source = QuestData.CrystalTowerQuests.Cast().ToList(); - break; - case "hard_primals": - source = QuestData.HardModePrimals.Cast().ToList(); - break; - default: - source = new List(); - break; - } - return source.Select((ElementId q) => q.ToString()).ToList(); - } - - private int AddPresetToPriority(string presetName) - { - List presetQuests = GetPresetQuests(presetName); - int num = 0; - foreach (string item in presetQuests) - { - if (ElementId.TryFromString(item, out ElementId elementId) && elementId != null && (_questFunctions.IsReadyToAcceptQuest(elementId) || _questFunctions.IsQuestAccepted(elementId)) && !_questController.ManualPriorityQuests.Any((Quest q) => q.Id.Equals(elementId)) && _questRegistry.IsKnownQuest(elementId) && _questController.AddQuestPriority(elementId)) - { - num++; - } - } - return num; - } - - private static List GetAetherCurrentQuestsByExpansion(EExpansionVersion expansion) - { - uint[] territoryRanges = expansion switch - { - EExpansionVersion.Heavensward => new uint[5] { 397u, 398u, 399u, 400u, 401u }, - EExpansionVersion.Stormblood => new uint[6] { 612u, 613u, 614u, 620u, 621u, 622u }, - EExpansionVersion.Shadowbringers => new uint[6] { 813u, 814u, 815u, 816u, 817u, 818u }, - EExpansionVersion.Endwalker => new uint[6] { 956u, 957u, 958u, 959u, 960u, 961u }, - EExpansionVersion.Dawntrail => new uint[6] { 1187u, 1188u, 1189u, 1190u, 1191u, 1192u }, - _ => Array.Empty(), - }; - return QuestData.AetherCurrentQuestsByTerritory.Where>>((KeyValuePair> kvp) => ((ReadOnlySpan)territoryRanges).Contains(kvp.Key)).SelectMany((KeyValuePair> kvp) => kvp.Value).Cast() - .ToList(); - } - - private bool IsPresetAvailable(string presetName) - { - return GetAvailablePresets().Contains(presetName); - } - - private bool IsQuestInPriority(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - return _questController.ManualPriorityQuests.Any((Quest q) => q.Id.Equals(elementId)); - } - return false; - } - - private int GetQuestPriorityIndex(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - Quest quest = _questController.ManualPriorityQuests.FirstOrDefault((Quest q) => q.Id.Equals(elementId)); - if (quest != null) - { - return _questController.ManualPriorityQuests.IndexOf(quest); - } - } - return -1; - } - - private bool HasAvailablePriorityQuests() - { - return _questFunctions.GetNextPriorityQuestsThatCanBeAccepted().Any((PriorityQuestInfo x) => x.IsAvailable); - } - - private bool GetStopConditionsEnabled() - { - return _configuration.Stop.Enabled; - } - - private bool SetStopConditionsEnabled(bool enabled) - { - _configuration.Stop.Enabled = enabled; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private List GetStopQuestList() - { - return _configuration.Stop.QuestsToStopAfter.Select((ElementId q) => q.ToString()).ToList(); - } - - private bool AddStopQuest(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null && _questRegistry.IsKnownQuest(elementId) && !_configuration.Stop.QuestsToStopAfter.Contains(elementId)) - { - _configuration.Stop.QuestsToStopAfter.Add(elementId); - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - return false; - } - - private bool RemoveStopQuest(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - bool num = _configuration.Stop.QuestsToStopAfter.Remove(elementId); - if (num) - { - _configuration.Stop.QuestSequences.Remove(questId); - _pluginInterface.SavePluginConfig(_configuration); - } - return num; - } - return false; - } - - private bool ClearStopQuests() - { - _configuration.Stop.QuestsToStopAfter.Clear(); - _configuration.Stop.QuestSequences.Clear(); - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private StopConditionData GetLevelStopCondition() - { - return new StopConditionData - { - Enabled = (_configuration.Stop.LevelStopMode != Configuration.EStopConditionMode.Off), - TargetValue = _configuration.Stop.TargetLevel - }; - } - - private bool SetLevelStopCondition(bool enabled, int targetLevel) - { - if (targetLevel < 1 || targetLevel > 100) - { - return false; - } - _configuration.Stop.LevelStopMode = (enabled ? Configuration.EStopConditionMode.Pause : Configuration.EStopConditionMode.Off); - _configuration.Stop.TargetLevel = targetLevel; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private StopConditionData GetSequenceStopCondition() - { - return new StopConditionData - { - Enabled = (_configuration.Stop.SequenceStopMode != Configuration.EStopConditionMode.Off), - TargetValue = _configuration.Stop.TargetSequence - }; - } - - private bool SetSequenceStopCondition(bool enabled, int targetSequence) - { - if (targetSequence < 0 || targetSequence > 255) - { - return false; - } - _configuration.Stop.SequenceStopMode = (enabled ? Configuration.EStopConditionMode.Pause : Configuration.EStopConditionMode.Off); - _configuration.Stop.TargetSequence = targetSequence; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private int GetQuestSequenceStopCondition(string questId) - { - if (_configuration.Stop.QuestSequences.TryGetValue(questId, out var value) && value.HasValue) - { - return value.Value; - } - return -1; - } - - private bool SetQuestSequenceStopCondition(string questId, int targetSequence) - { - if (targetSequence < 0 || targetSequence > 255) - { - return false; - } - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null && _questRegistry.IsKnownQuest(elementId)) - { - if (!_configuration.Stop.QuestsToStopAfter.Contains(elementId)) - { - _configuration.Stop.QuestsToStopAfter.Add(elementId); - } - _configuration.Stop.QuestSequences[questId] = targetSequence; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - return false; - } - - private bool RemoveQuestSequenceStopCondition(string questId) - { - bool num = _configuration.Stop.QuestSequences.Remove(questId); - if (num) - { - _pluginInterface.SavePluginConfig(_configuration); - } - return num; - } - - private Dictionary GetAllQuestSequenceStopConditions() - { - return _configuration.Stop.QuestSequences.Where>((KeyValuePair kvp) => kvp.Value.HasValue).ToDictionary((KeyValuePair kvp) => kvp.Key, (KeyValuePair kvp) => kvp.Value.Value); - } - - private unsafe int GetAlliedSocietyRemainingAllowances() - { - QuestManager* ptr = QuestManager.Instance(); - if (ptr == null) - { - return 12; - } - return (int)ptr->GetBeastTribeAllowance(); - } - - private long GetAlliedSocietyTimeUntilReset() - { - TimeSpan item = AlliedSocietyJournalComponent.CalculateTimeUntilReset().TimeUntilReset; - return item.Ticks; - } - - private List GetAlliedSocietyAvailableQuestIds(byte alliedSocietyId) - { - if (!Enum.IsDefined(typeof(EAlliedSociety), alliedSocietyId)) - { - return new List(); - } - EAlliedSociety alliedSociety = (EAlliedSociety)alliedSocietyId; - return (from q in _serviceProvider.GetRequiredService().GetAvailableAlliedSocietyQuests(alliedSociety) - select q.ToString()).ToList(); - } - - private Dictionary GetAlliedSocietyAllAvailableQuestCounts() - { - Dictionary dictionary = new Dictionary(); - AlliedSocietyQuestFunctions requiredService = _serviceProvider.GetRequiredService(); - EAlliedSociety[] values = Enum.GetValues(); - foreach (EAlliedSociety eAlliedSociety in values) - { - if (eAlliedSociety != EAlliedSociety.None) - { - int count = requiredService.GetAvailableAlliedSocietyQuests(eAlliedSociety).Count; - if (count > 0) - { - dictionary[(byte)eAlliedSociety] = count; - } - } - } - return dictionary; - } - - private unsafe bool GetAlliedSocietyIsMaxRank(byte alliedSocietyId) - { - if (!Enum.IsDefined(typeof(EAlliedSociety), alliedSocietyId) || alliedSocietyId == 0) - { - return false; - } - QuestManager* ptr = QuestManager.Instance(); - if (ptr == null) - { - return false; - } - byte b = (byte)(ptr->BeastReputation[alliedSocietyId - 1].Rank & 0x7F); - return b >= (EAlliedSociety)alliedSocietyId switch - { - EAlliedSociety.Amaljaa => 3, - EAlliedSociety.Sylphs => 3, - EAlliedSociety.Kobolds => 3, - EAlliedSociety.Sahagin => 3, - EAlliedSociety.Ixal => 7, - _ => 8, - }; - } - - private unsafe int GetAlliedSocietyCurrentRank(byte alliedSocietyId) - { - if (!Enum.IsDefined(typeof(EAlliedSociety), alliedSocietyId) || alliedSocietyId == 0) - { - return -1; - } - QuestManager* ptr = QuestManager.Instance(); - if (ptr == null) - { - return -1; - } - return (byte)(ptr->BeastReputation[alliedSocietyId - 1].Rank & 0x7F); - } - - private List GetAlliedSocietiesWithAvailableQuests() - { - List list = new List(); - AlliedSocietyQuestFunctions requiredService = _serviceProvider.GetRequiredService(); - EAlliedSociety[] values = Enum.GetValues(); - foreach (EAlliedSociety eAlliedSociety in values) - { - if (eAlliedSociety != EAlliedSociety.None && requiredService.GetAvailableAlliedSocietyQuests(eAlliedSociety).Count > 0) - { - list.Add((byte)eAlliedSociety); - } - } - return list; - } - - private int AddAlliedSocietyOptimalQuests(byte alliedSocietyId) - { - if (!Enum.IsDefined(typeof(EAlliedSociety), alliedSocietyId) || alliedSocietyId == 0) - { - return 0; - } - EAlliedSociety eAlliedSociety = (EAlliedSociety)alliedSocietyId; - List availableAlliedSocietyQuests = _serviceProvider.GetRequiredService().GetAvailableAlliedSocietyQuests(eAlliedSociety); - if (availableAlliedSocietyQuests.Count == 0) - { - return 0; - } - Quest quest; - List list = (from QuestInfo questInfo in availableAlliedSocietyQuests.Select((QuestId questId) => _questData.GetQuestInfo(questId)) - where _questRegistry.TryGetQuest(questInfo.QuestId, out quest) && !quest.Root.Disabled - where !_questController.ManualPriorityQuests.Any((Quest pq) => pq.Id.Equals(questInfo.QuestId)) - orderby questInfo.AlliedSocietyRank descending - select questInfo).ToList(); - if (list.Count == 0) - { - return 0; - } - int val = (((int)eAlliedSociety <= 5) ? 12 : 3); - int alliedSocietyRemainingAllowances = GetAlliedSocietyRemainingAllowances(); - int count = Math.Min(Math.Min(val, alliedSocietyRemainingAllowances), list.Count); - int num = 0; - foreach (QuestInfo item in list.Take(count)) - { - if (_questController.AddQuestPriority(item.QuestId)) - { - num++; - } - } - return num; - } - - private List GetAlliedSocietyOptimalQuests(byte alliedSocietyId) - { - if (!Enum.IsDefined(typeof(EAlliedSociety), alliedSocietyId) || alliedSocietyId == 0) - { - return new List(); - } - EAlliedSociety eAlliedSociety = (EAlliedSociety)alliedSocietyId; - List availableAlliedSocietyQuests = _serviceProvider.GetRequiredService().GetAvailableAlliedSocietyQuests(eAlliedSociety); - if (availableAlliedSocietyQuests.Count == 0) - { - return new List(); - } - Quest quest; - List list = (from QuestInfo questInfo in availableAlliedSocietyQuests.Select((QuestId questId) => _questData.GetQuestInfo(questId)) - where _questRegistry.TryGetQuest(questInfo.QuestId, out quest) && !quest.Root.Disabled - where !_questController.ManualPriorityQuests.Any((Quest pq) => pq.Id.Equals(questInfo.QuestId)) - orderby questInfo.AlliedSocietyRank descending - select questInfo).ToList(); - if (list.Count == 0) - { - return new List(); - } - int val = (((int)eAlliedSociety <= 5) ? 12 : 3); - int alliedSocietyRemainingAllowances = GetAlliedSocietyRemainingAllowances(); - int count = Math.Min(Math.Min(val, alliedSocietyRemainingAllowances), list.Count); - return (from q in list.Take(count) - select q.QuestId.ToString()).ToList(); - } - - private bool IsLevelingModeEnabled() - { - return _configuration.Duties.RunLevelingModeWhenUnderleveled; - } - - private bool SetLevelingModeEnabled(bool enabled) - { - _configuration.Duties.RunLevelingModeWhenUnderleveled = enabled; - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private MsqLevelLockData? GetMsqLevelLockInfo() - { - var (flag, levelsNeeded, requiredLevel, questName) = _questFunctions.GetMsqLevelLockInfo(); - if (!flag) - { - return null; - } - return new MsqLevelLockData - { - IsLevelLocked = flag, - LevelsNeeded = levelsNeeded, - RequiredLevel = requiredLevel, - QuestName = questName - }; - } - - private bool StartLevelingMode() - { - if (!_autoDutyIpc.IsConfiguredToRunLevelingMode()) - { - return false; - } - return _autoDutyIpc.StartLevelingMode(); - } - - private bool StopLevelingMode() - { - try - { - _autoDutyIpc.Stop(); - return true; - } - catch - { - return false; - } - } - - private List GetBlacklistedQuests() - { - return _configuration.General.BlacklistedQuests.Select((ElementId q) => q.ToString()).ToList(); - } - - private bool AddBlacklistedQuest(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null && _configuration.General.BlacklistedQuests.Add(elementId)) - { - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - return false; - } - - private bool RemoveBlacklistedQuest(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - bool num = _configuration.General.BlacklistedQuests.Remove(elementId); - if (num) - { - _pluginInterface.SavePluginConfig(_configuration); - } - return num; - } - return false; - } - - private bool ClearBlacklistedQuests() - { - _configuration.General.BlacklistedQuests.Clear(); - _pluginInterface.SavePluginConfig(_configuration); - return true; - } - - private bool IsQuestBlacklistedIpc(string questId) - { - if (ElementId.TryFromString(questId, out ElementId elementId) && elementId != null) - { - return _questFunctions.IsQuestBlacklisted(elementId); - } - return false; - } - - private int GetMsqPriorityMode() - { - return (int)_configuration.General.MsqPriority; - } - - private bool SetMsqPriorityMode(int mode) - { - if (!Enum.IsDefined(typeof(Configuration.EMsqPriorityMode), mode)) - { - return false; - } - _configuration.General.MsqPriority = (Configuration.EMsqPriorityMode)mode; - _pluginInterface.SavePluginConfig(_configuration); return true; } @@ -1469,72 +275,14 @@ internal sealed class QuestionableIpc : IDisposable _importQuestPriority.UnregisterFunc(); _isQuestUnobtainable.UnregisterFunc(); _isQuestAccepted.UnregisterFunc(); - _IsReadyToAcceptQuest.UnregisterFunc(); - _IsQuestComplete.UnregisterFunc(); + _isQuestAvailable.UnregisterFunc(); + _isQuestCompleted.UnregisterFunc(); _isQuestLocked.UnregisterFunc(); _startSingleQuest.UnregisterFunc(); _startQuest.UnregisterFunc(); _getCurrentlyActiveEventQuests.UnregisterFunc(); - _getCurrentTask.UnregisterFunc(); _getCurrentStepData.UnregisterFunc(); _getCurrentQuestId.UnregisterFunc(); _isRunning.UnregisterFunc(); - _clearAllDutyModeOverrides.UnregisterFunc(); - _clearDutyModeOverride.UnregisterFunc(); - _setDutyModeOverride.UnregisterFunc(); - _getDutyModeOverride.UnregisterFunc(); - _setDefaultDutyMode.UnregisterFunc(); - _getDefaultDutyMode.UnregisterFunc(); - _hasAvailablePriorityQuests.UnregisterFunc(); - _getQuestPriorityIndex.UnregisterFunc(); - _isQuestInPriority.UnregisterFunc(); - _isPresetAvailable.UnregisterFunc(); - _addPresetToPriority.UnregisterFunc(); - _getPresetQuests.UnregisterFunc(); - _getAvailablePresets.UnregisterFunc(); - _reorderPriorityQuest.UnregisterFunc(); - _removePriorityQuest.UnregisterFunc(); - _getPriorityQuests.UnregisterFunc(); - _getAllQuestSequenceStopConditions.UnregisterFunc(); - _removeQuestSequenceStopCondition.UnregisterFunc(); - _setQuestSequenceStopCondition.UnregisterFunc(); - _getQuestSequenceStopCondition.UnregisterFunc(); - _setSequenceStopCondition.UnregisterFunc(); - _getSequenceStopCondition.UnregisterFunc(); - _setLevelStopCondition.UnregisterFunc(); - _getLevelStopCondition.UnregisterFunc(); - _clearStopQuests.UnregisterFunc(); - _removeStopQuest.UnregisterFunc(); - _addStopQuest.UnregisterFunc(); - _getStopQuestList.UnregisterFunc(); - _setStopConditionsEnabled.UnregisterFunc(); - _getStopConditionsEnabled.UnregisterFunc(); - _setQuestStopMode.UnregisterFunc(); - _getQuestStopMode.UnregisterFunc(); - _setSequenceStopMode.UnregisterFunc(); - _getSequenceStopMode.UnregisterFunc(); - _setLevelStopMode.UnregisterFunc(); - _getLevelStopMode.UnregisterFunc(); - _getAlliedSocietiesWithAvailableQuests.UnregisterFunc(); - _getAlliedSocietyCurrentRank.UnregisterFunc(); - _getAlliedSocietyIsMaxRank.UnregisterFunc(); - _getAlliedSocietyAllAvailableQuestCounts.UnregisterFunc(); - _getAlliedSocietyAvailableQuestIds.UnregisterFunc(); - _getAlliedSocietyTimeUntilReset.UnregisterFunc(); - _getAlliedSocietyRemainingAllowances.UnregisterFunc(); - _addAlliedSocietyOptimalQuests.UnregisterFunc(); - _getAlliedSocietyOptimalQuests.UnregisterFunc(); - _stopLevelingMode.UnregisterFunc(); - _startLevelingMode.UnregisterFunc(); - _getMsqLevelLockInfo.UnregisterFunc(); - _setLevelingModeEnabled.UnregisterFunc(); - _isLevelingModeEnabled.UnregisterFunc(); - _isQuestBlacklisted.UnregisterFunc(); - _clearBlacklistedQuests.UnregisterFunc(); - _removeBlacklistedQuest.UnregisterFunc(); - _addBlacklistedQuest.UnregisterFunc(); - _getBlacklistedQuests.UnregisterFunc(); - _setMsqPriorityMode.UnregisterFunc(); - _getMsqPriorityMode.UnregisterFunc(); } } diff --git a/Questionable/Questionable.External/TextAdvanceIpc.cs b/Questionable/Questionable.External/TextAdvanceIpc.cs index 948c72c..573a68a 100644 --- a/Questionable/Questionable.External/TextAdvanceIpc.cs +++ b/Questionable/Questionable.External/TextAdvanceIpc.cs @@ -1,5 +1,4 @@ using System; -using Dalamud.Game.ClientState.Conditions; using Dalamud.Plugin; using Dalamud.Plugin.Ipc; using Dalamud.Plugin.Services; @@ -11,41 +10,31 @@ internal sealed class TextAdvanceIpc : IDisposable { public sealed class ExternalTerritoryConfig { - public bool? EnableQuestAccept; + public bool? EnableQuestAccept = true; - public bool? EnableQuestComplete; + public bool? EnableQuestComplete = true; - public bool? EnableRewardPick; + public bool? EnableRewardPick = true; - public bool? EnableRequestHandin; + public bool? EnableRequestHandin = true; - public bool? EnableCutsceneEsc; + public bool? EnableCutsceneEsc = true; - public bool? EnableCutsceneSkipConfirm; + public bool? EnableCutsceneSkipConfirm = true; - public bool? EnableTalkSkip; + public bool? EnableTalkSkip = true; - public bool? EnableRequestFill; + public bool? EnableRequestFill = true; - public bool? EnableAutoInteract; + public bool? EnableAutoInteract = false; } private bool _isExternalControlActivated; - private bool _lastCinemaModeState; - - private bool _lastInCutsceneState; - private readonly QuestController _questController; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - private readonly Configuration _configuration; - private readonly ICondition _condition; - private readonly IFramework _framework; private readonly ICallGateSubscriber _isInExternalControl; @@ -56,14 +45,13 @@ internal sealed class TextAdvanceIpc : IDisposable private readonly string _pluginName; - public TextAdvanceIpc(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, Configuration configuration, ICondition condition) + private readonly ExternalTerritoryConfig _externalTerritoryConfig = new ExternalTerritoryConfig(); + + public TextAdvanceIpc(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, Configuration configuration) { _framework = framework; _questController = questController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _configuration = configuration; - _condition = condition; _isInExternalControl = pluginInterface.GetIpcSubscriber("TextAdvance.IsInExternalControl"); _enableExternalControl = pluginInterface.GetIpcSubscriber("TextAdvance.EnableExternalControl"); _disableExternalControl = pluginInterface.GetIpcSubscriber("TextAdvance.DisableExternalControl"); @@ -82,54 +70,17 @@ internal sealed class TextAdvanceIpc : IDisposable private void OnUpdate(IFramework framework) { - bool flag = _questController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual || _fateController.IsRunning || _seasonalDutyController.IsRunning; - if (!_configuration.General.ConfigureTextAdvance || !flag) + bool flag = _questController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual; + if (_configuration.General.ConfigureTextAdvance && flag) { - if (_isExternalControlActivated && (_disableExternalControl.InvokeFunc(_pluginName) || !_isInExternalControl.InvokeFunc())) + if (!_isInExternalControl.InvokeFunc() && _enableExternalControl.InvokeFunc(_pluginName, _externalTerritoryConfig)) { - _isExternalControlActivated = false; - } - return; - } - bool cinemaMode = _configuration.General.CinemaMode; - bool flag2 = _condition[ConditionFlag.OccupiedInCutSceneEvent] || _condition[ConditionFlag.WatchingCutscene] || _condition[ConditionFlag.WatchingCutscene78]; - bool flag3 = cinemaMode != _lastCinemaModeState || (cinemaMode && flag2 != _lastInCutsceneState); - if (!_isExternalControlActivated) - { - if (!_isInExternalControl.InvokeFunc()) - { - ExternalTerritoryConfig arg = CreateExternalTerritoryConfig(cinemaMode, flag2); - if (_enableExternalControl.InvokeFunc(_pluginName, arg)) - { - _isExternalControlActivated = true; - _lastCinemaModeState = cinemaMode; - _lastInCutsceneState = flag2; - } + _isExternalControlActivated = true; } } - else if (flag3) + else if (_isExternalControlActivated && (_disableExternalControl.InvokeFunc(_pluginName) || !_isInExternalControl.InvokeFunc())) { - ExternalTerritoryConfig arg2 = CreateExternalTerritoryConfig(cinemaMode, flag2); - _enableExternalControl.InvokeFunc(_pluginName, arg2); - _lastCinemaModeState = cinemaMode; - _lastInCutsceneState = flag2; + _isExternalControlActivated = false; } } - - private static ExternalTerritoryConfig CreateExternalTerritoryConfig(bool cinemaMode, bool inCutscene) - { - bool flag = cinemaMode && inCutscene; - return new ExternalTerritoryConfig - { - EnableQuestAccept = true, - EnableQuestComplete = true, - EnableRewardPick = true, - EnableRequestHandin = true, - EnableCutsceneEsc = !cinemaMode, - EnableCutsceneSkipConfirm = !cinemaMode, - EnableTalkSkip = !flag, - EnableRequestFill = true, - EnableAutoInteract = false - }; - } } diff --git a/Questionable/Questionable.Functions/AetheryteFunctions.cs b/Questionable/Questionable.Functions/AetheryteFunctions.cs index 9df51af..f3e40d3 100644 --- a/Questionable/Questionable.Functions/AetheryteFunctions.cs +++ b/Questionable/Questionable.Functions/AetheryteFunctions.cs @@ -22,16 +22,16 @@ internal sealed class AetheryteFunctions private readonly IDataManager _dataManager; - private readonly IObjectTable _objectTable; + private readonly IClientState _clientState; public DateTime ReturnRequestedAt { get; set; } = DateTime.MinValue; - public AetheryteFunctions(IServiceProvider serviceProvider, ILogger logger, IDataManager dataManager, IObjectTable objectTable) + public AetheryteFunctions(IServiceProvider serviceProvider, ILogger logger, IDataManager dataManager, IClientState clientState) { _serviceProvider = serviceProvider; _logger = logger; _dataManager = dataManager; - _objectTable = objectTable; + _clientState = clientState; } public unsafe bool IsAetheryteUnlocked(uint aetheryteId, out byte subIndex) @@ -114,7 +114,7 @@ internal sealed class AetheryteFunctions public unsafe AetheryteRegistrationResult CanRegisterFreeOrFavoriteAetheryte(EAetheryteLocation aetheryteLocation) { - if (_objectTable[0] == null) + if (_clientState.LocalPlayer == null) { return AetheryteRegistrationResult.NotPossible; } diff --git a/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs b/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs index 20b8fea..56b62be 100644 --- a/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs +++ b/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs @@ -77,7 +77,9 @@ internal sealed class AlliedSocietyQuestFunctions int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = npcData; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = npcData; questsByAlliedSociety[item] = list; } } diff --git a/Questionable/Questionable.Functions/ChatFunctions.cs b/Questionable/Questionable.Functions/ChatFunctions.cs index a32c14d..6211668 100644 --- a/Questionable/Questionable.Functions/ChatFunctions.cs +++ b/Questionable/Questionable.Functions/ChatFunctions.cs @@ -4,12 +4,13 @@ using System.Collections.ObjectModel; using System.Linq; using System.Runtime.InteropServices; using System.Text; +using Dalamud.Game; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.System.Framework; using FFXIVClientStructs.FFXIV.Client.System.Memory; using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI; using Lumina.Excel.Sheets; using Microsoft.Extensions.Logging; using Questionable.Model.Questing; @@ -20,6 +21,11 @@ internal sealed class ChatFunctions { private delegate void ProcessChatBoxDelegate(nint uiModule, nint message, nint unused, byte a4); + private static class Signatures + { + internal const string SendChat = "48 89 5C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 48 8B F2 48 8B F9 45 84 C9"; + } + [StructLayout(LayoutKind.Explicit)] private readonly struct ChatPayload : IDisposable { @@ -66,7 +72,7 @@ internal sealed class ChatFunctions _gameFunctions = gameFunctions; _targetManager = targetManager; _logger = logger; - _processChatBox = Marshal.GetDelegateForFunctionPointer(UIModule.Addresses.ProcessChatBoxEntry.Value); + _processChatBox = Marshal.GetDelegateForFunctionPointer(sigScanner.ScanText("48 89 5C 24 ?? 48 89 74 24 ?? 57 48 83 EC 20 48 8B F2 48 8B F9 45 84 C9")); _emoteCommands = (from x in dataManager.GetExcelSheet() where x.RowId != 0 where x.TextCommand.IsValid diff --git a/Questionable/Questionable.Functions/ExcelFunctions.cs b/Questionable/Questionable.Functions/ExcelFunctions.cs index 96ee27e..7f56002 100644 --- a/Questionable/Questionable.Functions/ExcelFunctions.cs +++ b/Questionable/Questionable.Functions/ExcelFunctions.cs @@ -74,7 +74,7 @@ internal sealed class ExcelFunctions switch (excelSheet) { case "GimmickYesNo": - return _dataManager.GetExcelSheet().GetRowOrDefault(rowId)?.Message; + return _dataManager.GetExcelSheet().GetRowOrDefault(rowId)?.Unknown0; case "Warp": return _dataManager.GetExcelSheet().GetRowOrDefault(rowId)?.Name; case "Addon": diff --git a/Questionable/Questionable.Functions/GameFunctions.cs b/Questionable/Questionable.Functions/GameFunctions.cs index d9d615a..c33a64e 100644 --- a/Questionable/Questionable.Functions/GameFunctions.cs +++ b/Questionable/Questionable.Functions/GameFunctions.cs @@ -4,7 +4,9 @@ using System.Collections.ObjectModel; using System.Linq; using System.Numerics; using System.Runtime.InteropServices; +using Dalamud.Game; using Dalamud.Game.ClientState.Conditions; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Enums; using Dalamud.Game.ClientState.Objects.SubKinds; using Dalamud.Game.ClientState.Objects.Types; @@ -12,7 +14,6 @@ using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; using FFXIVClientStructs.FFXIV.Client.Game.Character; using FFXIVClientStructs.FFXIV.Client.Game.Control; -using FFXIVClientStructs.FFXIV.Client.Game.Event; using FFXIVClientStructs.FFXIV.Client.Game.Fate; using FFXIVClientStructs.FFXIV.Client.Game.Object; using FFXIVClientStructs.FFXIV.Client.Game.UI; @@ -33,6 +34,11 @@ internal sealed class GameFunctions { private delegate void AbandonDutyDelegate(bool a1); + private static class Signatures + { + internal const string AbandonDuty = "E8 ?? ?? ?? ?? 41 B2 01 EB 39"; + } + private readonly QuestFunctions _questFunctions; private readonly IDataManager _dataManager; @@ -68,7 +74,7 @@ internal sealed class GameFunctions _gameGui = gameGui; _configuration = configuration; _logger = logger; - _abandonDuty = Marshal.GetDelegateForFunctionPointer(EventFramework.Addresses.LeaveCurrentContent.Value); + _abandonDuty = Marshal.GetDelegateForFunctionPointer(sigScanner.ScanText("E8 ?? ?? ?? ?? 41 B2 01 EB 39")); _territoryToAetherCurrentCompFlgSet = (from x in dataManager.GetExcelSheet() where x.RowId != 0 where x.AetherCurrentCompFlgSet.RowId != 0 @@ -98,7 +104,7 @@ internal sealed class GameFunctions public unsafe ushort? GetMountId() { - BattleChara* ptr = (BattleChara*)(_objectTable.LocalPlayer?.Address ?? 0); + BattleChara* ptr = (BattleChara*)(_clientState.LocalPlayer?.Address ?? 0); if (ptr != null && ptr->Mount.MountId != 0) { return ptr->Mount.MountId; @@ -121,7 +127,7 @@ internal sealed class GameFunctions return false; } - public IGameObject? FindObjectByDataId(uint dataId, Dalamud.Game.ClientState.Objects.Enums.ObjectKind? kind = null, bool warnIfMissing = true) + public IGameObject? FindObjectByDataId(uint dataId, Dalamud.Game.ClientState.Objects.Enums.ObjectKind? kind = null) { foreach (IGameObject item in _objectTable) { @@ -132,10 +138,7 @@ internal sealed class GameFunctions return item; } } - if (warnIfMissing) - { - _logger.LogWarning("Could not find GameObject with dataId {DataId}", dataId); - } + _logger.LogWarning("Could not find GameObject with dataId {DataId}", dataId); return null; } @@ -200,14 +203,14 @@ internal sealed class GameFunctions if (gameObject != null) { Vector3 position = gameObject.Position; - return ActionManager.Instance()->UseActionLocation(ActionType.EventItem, itemId, 3758096384uL, &position, 0u, 0); + return ActionManager.Instance()->UseActionLocation(ActionType.KeyItem, itemId, 3758096384uL, &position, 0u, 0); } return false; } public unsafe bool UseItemOnPosition(Vector3 position, uint itemId) { - return ActionManager.Instance()->UseActionLocation(ActionType.EventItem, itemId, 3758096384uL, &position, 0u, 0); + return ActionManager.Instance()->UseActionLocation(ActionType.KeyItem, itemId, 3758096384uL, &position, 0u, 0); } public unsafe bool UseAction(EAction action) @@ -284,7 +287,7 @@ internal sealed class GameFunctions { return true; } - IPlayerCharacter localPlayer = _objectTable.LocalPlayer; + IPlayerCharacter localPlayer = _clientState.LocalPlayer; if (localPlayer == null) { return false; @@ -305,7 +308,7 @@ internal sealed class GameFunctions private unsafe bool HasCharacterStatusPreventingMountOrSprint() { - IPlayerCharacter localPlayer = _objectTable.LocalPlayer; + IPlayerCharacter localPlayer = _clientState.LocalPlayer; if (localPlayer == null) { return false; @@ -321,7 +324,7 @@ internal sealed class GameFunctions public unsafe bool HasStatus(EStatus statusId) { - IPlayerCharacter localPlayer = _objectTable.LocalPlayer; + IPlayerCharacter localPlayer = _clientState.LocalPlayer; if (localPlayer == null) { return false; @@ -420,7 +423,7 @@ internal sealed class GameFunctions public unsafe bool IsOccupied() { - if (!_clientState.IsLoggedIn || _objectTable.LocalPlayer == null) + if (!_clientState.IsLoggedIn || _clientState.LocalPlayer == null) { return true; } @@ -544,7 +547,7 @@ internal sealed class GameFunctions public unsafe bool SyncToFate(uint fateId) { - IPlayerCharacter localPlayer = _objectTable.LocalPlayer; + IPlayerCharacter localPlayer = _clientState.LocalPlayer; if (localPlayer == null) { _logger.LogWarning("Cannot sync to FATE: LocalPlayer is null"); @@ -584,30 +587,6 @@ internal sealed class GameFunctions return ptr->CurrentFate->FateId; } - public unsafe bool IsFateStillActive(ushort fateId) - { - if (fateId == 0) - { - return false; - } - FateManager* ptr = FateManager.Instance(); - if (ptr == null) - { - return false; - } - FateContext* fateById = ptr->GetFateById(fateId); - if (fateById == null) - { - return false; - } - return fateById->State == FateState.Running; - } - - public uint GetItemLevel(uint itemId) - { - return (_dataManager.GetExcelSheet()?.GetRowOrDefault(itemId))?.LevelItem.RowId ?? 0; - } - private unsafe void ExecuteCommand(string command) { try diff --git a/Questionable/Questionable.Functions/GameSignatures.cs b/Questionable/Questionable.Functions/GameSignatures.cs deleted file mode 100644 index e875bdd..0000000 --- a/Questionable/Questionable.Functions/GameSignatures.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Questionable.Functions; - -internal static class GameSignatures -{ - internal const string EnqueueSnipeTask = "48 89 5C 24 ?? 48 89 6C 24 ?? 48 89 74 24 ?? 57 48 83 EC 50 48 8B F9 48 8D 4C 24 ??"; -} diff --git a/Questionable/Questionable.Functions/QuestFunctions.cs b/Questionable/Questionable.Functions/QuestFunctions.cs index fd59a92..0b4d691 100644 --- a/Questionable/Questionable.Functions/QuestFunctions.cs +++ b/Questionable/Questionable.Functions/QuestFunctions.cs @@ -32,8 +32,6 @@ internal sealed class QuestFunctions private readonly QuestData _questData; - private readonly JournalData _journalData; - private readonly AetheryteFunctions _aetheryteFunctions; private readonly AlliedSocietyQuestFunctions _alliedSocietyQuestFunctions; @@ -46,8 +44,6 @@ internal sealed class QuestFunctions private readonly IDataManager _dataManager; - private readonly IObjectTable _objectTable; - private readonly IClientState _clientState; private readonly IGameGui _gameGui; @@ -60,8 +56,6 @@ internal sealed class QuestFunctions private readonly HashSet _alreadyLoggedLevelRequirements = new HashSet(); - private readonly HashSet _alreadyLoggedGcLockedQuests = new HashSet(); - private ElementId? _lastLoggedLevelLockedMsq; private ElementId? _lastLoggedForcedClassQuest; @@ -70,24 +64,16 @@ internal sealed class QuestFunctions private ElementId? _lastLoggedNotReadyQuest; - private ElementId? _lastLoggedAcceptedHiddenMsq; - - private bool _loggedNoClassQuestsAvailable; - - private bool _loggedAdventurerClass; - - public QuestFunctions(QuestRegistry questRegistry, QuestData questData, JournalData journalData, AetheryteFunctions aetheryteFunctions, AlliedSocietyQuestFunctions alliedSocietyQuestFunctions, AlliedSocietyData alliedSocietyData, AetheryteData aetheryteData, Configuration configuration, IDataManager dataManager, IObjectTable objectTable, IClientState clientState, IGameGui gameGui, IAetheryteList aetheryteList, ILogger logger) + public QuestFunctions(QuestRegistry questRegistry, QuestData questData, AetheryteFunctions aetheryteFunctions, AlliedSocietyQuestFunctions alliedSocietyQuestFunctions, AlliedSocietyData alliedSocietyData, AetheryteData aetheryteData, Configuration configuration, IDataManager dataManager, IClientState clientState, IGameGui gameGui, IAetheryteList aetheryteList, ILogger logger) { _questRegistry = questRegistry; _questData = questData; - _journalData = journalData; _aetheryteFunctions = aetheryteFunctions; _alliedSocietyQuestFunctions = alliedSocietyQuestFunctions; _alliedSocietyData = alliedSocietyData; _aetheryteData = aetheryteData; _configuration = configuration; _dataManager = dataManager; - _objectTable = objectTable; _clientState = clientState; _gameGui = gameGui; _aetheryteList = aetheryteList; @@ -167,19 +153,17 @@ internal sealed class QuestFunctions QuestReference questReference = GetMainScenarioQuest().Item1; if (questReference.CurrentQuest != null && !_questRegistry.IsKnownQuest(questReference.CurrentQuest)) { - if (questReference.CurrentQuest is QuestId questId && _alreadyLoggedUnobtainableQuestsDetailed.Add(questId.Value)) - { - _logger.LogWarning("MSQ {MsqQuestId} is not in the quest registry, resetting to NoQuest", questReference.CurrentQuest); - } + _logger.LogWarning("MSQ {MsqQuestId} is not in the quest registry, resetting to NoQuest", questReference.CurrentQuest); questReference = QuestReference.NoQuest(questReference.State); } - byte currentLevel = _objectTable.LocalPlayer?.Level ?? 0; + byte currentLevel = _clientState.LocalPlayer?.Level ?? 0; if (questReference.CurrentQuest != null) { Questionable.Model.Quest quest; bool flag = _questRegistry.TryGetQuest(questReference.CurrentQuest, out quest); bool flag2 = IsQuestAccepted(questReference.CurrentQuest); - EClassJob valueOrDefault = ((EClassJob?)_objectTable.LocalPlayer?.ClassJob.RowId).GetValueOrDefault(); + _logger.LogTrace("MSQ check: QuestId={QuestId}, InRegistry={InRegistry}, Level={QuestLevel}, CurrentLevel={CurrentLevel}, IsAccepted={IsAccepted}", questReference.CurrentQuest, flag, ((int?)quest?.Info.Level) ?? (-1), currentLevel, flag2); + EClassJob valueOrDefault = ((EClassJob?)_clientState.LocalPlayer?.ClassJob.RowId).GetValueOrDefault(); if (valueOrDefault != EClassJob.Adventurer) { QuestInfo questInfo = (from x in _questData.GetClassJobQuests(valueOrDefault) @@ -192,14 +176,12 @@ internal sealed class QuestFunctions return new QuestReference(questInfo.QuestId, QuestManager.GetQuestSequence(questInfo.QuestId.Value), questReference.State); } } - if (flag && quest.Info.Level > currentLevel && !flag2 && _configuration.General.MsqPriority != Configuration.EMsqPriorityMode.Manual) + if (flag && quest.Info.Level > currentLevel && !flag2) { if (_lastLoggedLevelLockedMsq != questReference.CurrentQuest) { _logger.LogInformation("MSQ {MsqId} requires level {RequiredLevel}, current level {CurrentLevel}. Checking for early class quests to level up.", questReference.CurrentQuest, quest.Info.Level, currentLevel); _lastLoggedLevelLockedMsq = questReference.CurrentQuest; - _loggedNoClassQuestsAvailable = false; - _loggedAdventurerClass = false; } if (valueOrDefault != EClassJob.Adventurer) { @@ -207,30 +189,30 @@ internal sealed class QuestFunctions List lockedQuests = _questData.GetLockedClassQuests(); List list = (from x in classJobQuests.Where(delegate(QuestInfo x) { - bool num3 = x.Level <= currentLevel && x.Level <= 5; - bool flag4 = !IsQuestComplete(x.QuestId); - bool flag5 = !lockedQuests.Contains(x.QuestId); - return num3 && flag4 && flag5; + bool num2 = x.Level <= currentLevel && x.Level <= 5; + bool flag3 = !IsQuestComplete(x.QuestId); + bool flag4 = !lockedQuests.Contains(x.QuestId); + return num2 && flag3 && flag4; }) orderby x.Level select x).ToList(); if (list.Count > 0) { - ElementId questId2 = list.First().QuestId; - if (!IsQuestComplete(questId2)) + ElementId questId = list.First().QuestId; + if (!IsQuestComplete(questId)) { - if (_lastLoggedForcedClassQuest != questId2) + if (_lastLoggedForcedClassQuest != questId) { - _logger.LogInformation("MSQ level locked. Forcing class quest {ClassQuestId} for {ClassJob} (level {QuestLevel})", questId2, valueOrDefault, list.First().Level); - _lastLoggedForcedClassQuest = questId2; + _logger.LogInformation("MSQ level locked. Forcing class quest {ClassQuestId} for {ClassJob} (level {QuestLevel})", questId, valueOrDefault, list.First().Level); + _lastLoggedForcedClassQuest = questId; } - return new QuestReference(questId2, QuestManager.GetQuestSequence(questId2.Value), questReference.State); + return new QuestReference(questId, QuestManager.GetQuestSequence(questId.Value), questReference.State); } } - else if (!_loggedNoClassQuestsAvailable) + else if (_lastLoggedLevelLockedMsq == questReference.CurrentQuest && _lastLoggedForcedClassQuest == null) { _logger.LogWarning("No class quests passed the filter for {ClassJob} at level {CurrentLevel}", valueOrDefault, currentLevel); - _loggedNoClassQuestsAvailable = true; + _lastLoggedLevelLockedMsq = null; } List list2 = (from x in _questRegistry.GetKnownClassJobQuests(valueOrDefault, includeRoleQuests: false) where x.Level <= currentLevel && x.Level <= 5 && !IsQuestAcceptedOrComplete(x.QuestId) && IsReadyToAcceptQuest(x.QuestId) @@ -238,20 +220,15 @@ internal sealed class QuestFunctions select x).ToList(); if (list2.Count > 0) { - ElementId questId3 = list2.First().QuestId; - _logger.LogInformation("MSQ level locked. Prioritizing class quest {ClassQuestId} for {ClassJob} (level {QuestLevel}) from registry", questId3, valueOrDefault, list2.First().Level); - return new QuestReference(questId3, QuestManager.GetQuestSequence(questId3.Value), questReference.State); - } - if (!_loggedNoClassQuestsAvailable) - { - _logger.LogWarning("MSQ level locked but no available early class quests found for {ClassJob} at level {CurrentLevel}", valueOrDefault, currentLevel); - _loggedNoClassQuestsAvailable = true; + ElementId questId2 = list2.First().QuestId; + _logger.LogInformation("MSQ level locked. Prioritizing class quest {ClassQuestId} for {ClassJob} (level {QuestLevel}) from registry", questId2, valueOrDefault, list2.First().Level); + return new QuestReference(questId2, QuestManager.GetQuestSequence(questId2.Value), questReference.State); } + _logger.LogWarning("MSQ level locked but no available early class quests found for {ClassJob} at level {CurrentLevel}", valueOrDefault, currentLevel); } - else if (!_loggedAdventurerClass) + else { _logger.LogWarning("Current class is Adventurer, cannot find class quests"); - _loggedAdventurerClass = true; } Questionable.Model.Quest quest2; ElementId elementId = (from x in GetNextPriorityQuestsThatCanBeAccepted() @@ -263,45 +240,30 @@ internal sealed class QuestFunctions _logger.LogInformation("MSQ {MsqId} requires level {RequiredLevel}, current level {CurrentLevel}. Prioritizing early class quest {ClassQuestId} (from priority list)", questReference.CurrentQuest, quest.Info.Level, currentLevel, elementId); return new QuestReference(elementId, QuestManager.GetQuestSequence(elementId.Value), questReference.State); } - if (!_loggedNoClassQuestsAvailable) - { - _logger.LogWarning("MSQ {MsqId} is level locked (requires {RequiredLevel}, current {CurrentLevel}) and no early class quests available. Cannot proceed.", questReference.CurrentQuest, quest.Info.Level, currentLevel); - _loggedNoClassQuestsAvailable = true; - } + _logger.LogWarning("MSQ {MsqId} is level locked (requires {RequiredLevel}, current {CurrentLevel}) and no early class quests available. Cannot proceed.", questReference.CurrentQuest, quest.Info.Level, currentLevel); return QuestReference.NoQuest(MainScenarioQuestState.Unavailable); } _lastLoggedLevelLockedMsq = null; _lastLoggedForcedClassQuest = null; - _loggedNoClassQuestsAvailable = false; - _loggedAdventurerClass = false; } - bool num = questReference.CurrentQuest != null && !IsQuestAccepted(questReference.CurrentQuest); - bool flag3 = true; - if (num) + if (questReference.CurrentQuest != null && !IsQuestAccepted(questReference.CurrentQuest)) { - switch (_configuration.General.MsqPriority) + if (allowNewMsq) { - case Configuration.EMsqPriorityMode.Always: - if (allowNewMsq) - { - return questReference; - } - break; - case Configuration.EMsqPriorityMode.Manual: - flag3 = false; - break; + return questReference; } + questReference = QuestReference.NoQuest(questReference.State); } List<(ElementId, byte)> list3 = new List<(ElementId, byte)>(); - for (int num2 = ptr->TrackedQuests.Length - 1; num2 >= 0; num2--) + for (int num = ptr->TrackedQuests.Length - 1; num >= 0; num--) { - TrackingWork trackingWork = ptr->TrackedQuests[num2]; + TrackingWork trackingWork = ptr->TrackedQuests[num]; switch (trackingWork.QuestType) { case 1: { ElementId elementId2 = new QuestId(ptr->NormalQuests[trackingWork.Index].QuestId); - if (_questRegistry.IsKnownQuest(elementId2) && !IsQuestBlacklisted(elementId2)) + if (_questRegistry.IsKnownQuest(elementId2)) { list3.Add((elementId2, QuestManager.GetQuestSequence(elementId2.Value))); } @@ -364,7 +326,7 @@ internal sealed class QuestFunctions { return new QuestReference(elementId3, QuestManager.GetQuestSequence(elementId3.Value), questReference.State); } - if (flag3 && questReference.CurrentQuest != null) + if (questReference.CurrentQuest != null) { return questReference; } @@ -404,7 +366,7 @@ internal sealed class QuestFunctions _logger.LogTrace("GetMainScenarioQuest: scenarioTree->Data is null"); return (QuestReference.NoQuest(MainScenarioQuestState.LoadingScreen), "Scenario Tree Data is null"); } - QuestId questId = new QuestId(ptr->Data->MainScenarioQuestIds[0]); + QuestId questId = new QuestId(ptr->Data->CurrentScenarioQuest); string item = $"sq: {questId}"; if (questId.Value == 0) { @@ -476,11 +438,7 @@ internal sealed class QuestFunctions QuestManager* ptr2 = QuestManager.Instance(); if (IsQuestAccepted(questId) && ptr2->GetQuestById(questId.Value)->IsHidden) { - if (_lastLoggedAcceptedHiddenMsq != questId) - { - _logger.LogInformation("GetMainScenarioQuest: Quest {QuestId} is accepted but hidden", questId); - _lastLoggedAcceptedHiddenMsq = questId; - } + _logger.LogInformation("GetMainScenarioQuest: Quest {QuestId} is accepted but hidden", questId); return (QuestReference.NoQuest(MainScenarioQuestState.Available), "Quest accepted but hidden"); } if (IsQuestComplete(questId)) @@ -498,32 +456,17 @@ internal sealed class QuestFunctions return (QuestReference.NoQuest(MainScenarioQuestState.Unavailable), $"Not readdy to accept quest {questId.Value}"); } _lastLoggedNotReadyQuest = null; - if (!(_objectTable.LocalPlayer?.Level).HasValue) + if (!(_clientState.LocalPlayer?.Level).HasValue) { _logger.LogTrace("GetMainScenarioQuest: In loading screen"); return (QuestReference.NoQuest(MainScenarioQuestState.LoadingScreen), "In loading screen"); } - _lastLoggedAcceptedHiddenMsq = null; return (new QuestReference(questId, QuestManager.GetQuestSequence(questId.Value), MainScenarioQuestState.Available), item); } - private static byte GetRequiredGCRank(QuestId questId) - { - return questId.Value switch - { - 1128 => 8, - 1129 => 8, - 1130 => 8, - 1131 => 9, - 1132 => 9, - 1133 => 9, - _ => 1, - }; - } - private unsafe bool IsOnAlliedSocietyMount() { - BattleChara* ptr = (BattleChara*)(_objectTable.LocalPlayer?.Address ?? 0); + BattleChara* ptr = (BattleChara*)(_clientState.LocalPlayer?.Address ?? 0); if (ptr != null && ptr->Mount.MountId != 0) { return _alliedSocietyData.Mounts.ContainsKey(ptr->Mount.MountId); @@ -545,7 +488,7 @@ internal sealed class QuestFunctions if (dataId.HasValue) { uint valueOrDefault = dataId.GetValueOrDefault(); - return ((ReadOnlySpan)dataIds).Contains(valueOrDefault); + return dataIds.Contains(valueOrDefault); } } return false; @@ -595,10 +538,11 @@ internal sealed class QuestFunctions { return new PriorityQuestInfo(x, "Can't teleport to start"); } + DefaultInterpolatedStringHandler handler; if (gil < EstimateTeleportCosts(quest)) { IFormatProvider invariantCulture = CultureInfo.InvariantCulture; - DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(32, 2, invariantCulture); + handler = new DefaultInterpolatedStringHandler(32, 2, invariantCulture); handler.AppendLiteral("Not enough gil, estimated cost: "); handler.AppendFormatted(EstimateTeleportCosts(quest), "N0"); handler.AppendFormatted(SeIconChar.Gil.ToIconString()); @@ -633,7 +577,14 @@ internal sealed class QuestFunctions } return (EAetheryteLocation?)null; }).FirstOrDefault((EAetheryteLocation? y) => y.HasValue); - return value.HasValue ? new PriorityQuestInfo(x, $"Aetheryte locked: {value}") : new PriorityQuestInfo(x); + if (value.HasValue) + { + handler = new DefaultInterpolatedStringHandler(18, 1); + handler.AppendLiteral("Aetheryte locked: "); + handler.AppendFormatted(value); + return new PriorityQuestInfo(x, handler.ToStringAndClear()); + } + return new PriorityQuestInfo(x); }).ToList(); } @@ -662,7 +613,7 @@ internal sealed class QuestFunctions } if (!_configuration.Advanced.SkipClassJobQuests) { - EClassJob valueOrDefault = ((EClassJob?)_objectTable.LocalPlayer?.ClassJob.RowId).GetValueOrDefault(); + EClassJob valueOrDefault = ((EClassJob?)_clientState.LocalPlayer?.ClassJob.RowId).GetValueOrDefault(); uint[] shadowbringersRoleQuestChapters = QuestData.AllRoleQuestChapters.Select((IReadOnlyList x) => x[0]).ToArray(); if (valueOrDefault != EClassJob.Adventurer) { @@ -674,7 +625,7 @@ internal sealed class QuestFunctions QuestInfo questInfo = info as QuestInfo; if (questInfo != null) { - if (((ReadOnlySpan)shadowbringersRoleQuestChapters).Contains(questInfo.NewGamePlusChapter)) + if (shadowbringersRoleQuestChapters.Contains(questInfo.NewGamePlusChapter)) { return !QuestData.FinalShadowbringersRoleQuests.Any(IsQuestComplete); } @@ -695,10 +646,6 @@ internal sealed class QuestFunctions public unsafe bool IsReadyToAcceptQuest(ElementId questId, bool ignoreLevel = false) { - if (IsQuestBlacklisted(questId)) - { - return false; - } _questRegistry.TryGetQuest(questId, out Questionable.Model.Quest quest); if (quest != null) { @@ -724,22 +671,22 @@ internal sealed class QuestFunctions { return false; } - goto IL_0082; + goto IL_0077; } } if (IsQuestAcceptedOrComplete(questId)) { return false; } - goto IL_0082; - IL_0082: + goto IL_0077; + IL_0077: if (IsQuestLocked(questId)) { return false; } if (!ignoreLevel) { - byte b = _objectTable.LocalPlayer?.Level ?? 0; + byte b = _clientState.LocalPlayer?.Level ?? 0; if (b == 0) { return false; @@ -764,11 +711,6 @@ internal sealed class QuestFunctions return true; } - public bool IsQuestBlacklisted(ElementId questId) - { - return _configuration.General.BlacklistedQuests.Contains(questId); - } - public bool IsQuestAcceptedOrComplete(ElementId elementId) { if (!IsQuestComplete(elementId)) @@ -910,28 +852,18 @@ internal sealed class QuestFunctions return true; } QuestInfo questInfo = (QuestInfo)_questData.GetQuestInfo(questId); - if (questInfo.GrandCompany != FFXIVClientStructs.FFXIV.Client.UI.Agent.GrandCompany.None) + if (questInfo.GrandCompany != FFXIVClientStructs.FFXIV.Client.UI.Agent.GrandCompany.None && questInfo.GrandCompany != GetGrandCompany()) { - FFXIVClientStructs.FFXIV.Client.UI.Agent.GrandCompany grandCompany = GetGrandCompany(); - byte grandCompanyRank = GetGrandCompanyRank(); - byte requiredGCRank = GetRequiredGCRank(questId); - if (questInfo.GrandCompany != grandCompany || grandCompanyRank < requiredGCRank) - { - if (_alreadyLoggedGcLockedQuests.Add(questId.Value)) - { - _logger.LogDebug("Quest {QuestId} locked: required GC {RequiredGc}, required rank {RequiredRank}, player GC {PlayerGc}, player rank {PlayerRank}", questId, questInfo.GrandCompany, requiredGCRank, grandCompany, grandCompanyRank); - } - return true; - } + return true; } if (questInfo.AlliedSociety != EAlliedSociety.None && questInfo.IsRepeatable) { return !IsDailyAlliedSocietyQuestAndAvailableToday(questId); } - if (_journalData.MoogleDeliveryGenreId.HasValue && questInfo.JournalGenre == _journalData.MoogleDeliveryGenreId.Value) + if (questInfo.IsMoogleDeliveryQuest) { byte b = PlayerState.Instance()->DeliveryLevel; - if (extraCompletedQuest != null && _questData.TryGetQuestInfo(extraCompletedQuest, out IQuestInfo questInfo2) && questInfo2 is QuestInfo questInfo3 && _journalData.MoogleDeliveryGenreId.HasValue && questInfo3.JournalGenre == _journalData.MoogleDeliveryGenreId.Value) + if (extraCompletedQuest != null && _questData.TryGetQuestInfo(extraCompletedQuest, out IQuestInfo questInfo2) && questInfo2 is QuestInfo { IsMoogleDeliveryQuest: not false }) { b++; } @@ -965,7 +897,7 @@ internal sealed class QuestFunctions private static bool IsQuestLocked(UnlockLinkId unlockLinkId) { - return IsQuestUnobtainableStatic(unlockLinkId); + return IsQuestUnobtainable(unlockLinkId); } private bool IsQuestLocked(AethernetId aethernetId) @@ -1029,24 +961,11 @@ internal sealed class QuestFunctions } if (elementId is UnlockLinkId unlockLinkId) { - return IsQuestUnobtainableStatic(unlockLinkId); + return IsQuestUnobtainable(unlockLinkId); } return false; } - private static bool IsQuestUnobtainableStatic(UnlockLinkId unlockLinkId) - { - if (unlockLinkId.Value == 506) - { - return !IsFestivalActive(160, (ushort)2); - } - if (unlockLinkId.Value == 568) - { - return !IsFestivalActive(160, (ushort)3); - } - return true; - } - public unsafe bool IsQuestUnobtainable(QuestId questId, ElementId? extraCompletedQuest = null) { IQuestInfo questInfo = _questData.GetQuestInfo(questId); @@ -1071,6 +990,10 @@ internal sealed class QuestFunctions } if (DateTime.UtcNow > dateTime) { + if (_alreadyLoggedUnobtainableQuestsDetailed.Add(questId.Value)) + { + _logger.LogDebug("UnlockLink quest {QuestId} unobtainable: expiry {ExpiryUtc} (UTC) is before now {NowUtc}", questId, dateTime.ToString("o"), DateTime.UtcNow.ToString("o")); + } return true; } } @@ -1079,24 +1002,25 @@ internal sealed class QuestFunctions { return true; } - if (questInfo2.JournalGenre.HasValue && _journalData.SeasonalEventGenreIds.Contains(questInfo2.JournalGenre.Value)) + if (questInfo2.JournalGenre >= 234 && questInfo2.JournalGenre <= 247) { if (_questRegistry.TryGetQuest(questId, out Questionable.Model.Quest quest)) { List list = quest?.Root?.QuestSequence; if (list != null && list.Count > 0) { - goto IL_01fd; + goto IL_0288; } } if (_alreadyLoggedUnobtainableQuestsDetailed.Add(questId.Value)) { _questData.ApplySeasonalOverride(questId, isSeasonal: true, null); + _logger.LogDebug("Quest {QuestId} unobtainable: journal genre is 'event (seasonal)' and no quest path", questId); } return true; } - goto IL_01fd; - IL_01fd: + goto IL_0288; + IL_0288: if (questInfo2.QuestLocks.Count > 0) { int num = questInfo2.QuestLocks.Count((QuestId x) => IsQuestComplete(x) || x.Equals(extraCompletedQuest)); @@ -1115,15 +1039,42 @@ internal sealed class QuestFunctions DateTime valueOrDefault = seasonalQuestExpiry.GetValueOrDefault(); TimeSpan timeOfDay2 = valueOrDefault.TimeOfDay; TimeSpan timeSpan2 = new TimeSpan(23, 59, 59); - DateTime dateTime2 = ((!(timeOfDay2 == TimeSpan.Zero) && !(timeOfDay2 == timeSpan2)) ? ((valueOrDefault.Kind == DateTimeKind.Utc) ? valueOrDefault : valueOrDefault.ToUniversalTime()) : EventInfoComponent.AtDailyReset(DateOnly.FromDateTime(valueOrDefault))); + bool flag2 = false; + DateTime dateTime2; + if (timeOfDay2 == TimeSpan.Zero || timeOfDay2 == timeSpan2) + { + dateTime2 = EventInfoComponent.AtDailyReset(DateOnly.FromDateTime(valueOrDefault)); + flag2 = true; + } + else + { + dateTime2 = ((valueOrDefault.Kind == DateTimeKind.Utc) ? valueOrDefault : valueOrDefault.ToUniversalTime()); + } + if (_alreadyLoggedUnobtainableQuestsDetailed.Add(questId.Value)) + { + _logger.LogDebug("Quest {QuestId} seasonal expiry raw={ExpiryRaw} Kind={Kind} TimeOfDay={TimeOfDay}", questId, valueOrDefault.ToString("o"), valueOrDefault.Kind, valueOrDefault.TimeOfDay); + _logger.LogDebug("Quest {QuestId} normalized expiryUtc={ExpiryUtc:o} treatedAsDailyReset={TreatedAsDailyReset}", questId, dateTime2, flag2); + _logger.LogTrace("Quest {QuestId} expiry check: nowUtc={Now:o}, expiryUtc={Expiry:o}, expired={Expired}", questId, DateTime.UtcNow, dateTime2, DateTime.UtcNow > dateTime2); + } if (DateTime.UtcNow > dateTime2) { + if (_alreadyLoggedUnobtainableQuestsDetailed.Add(questId.Value)) + { + _logger.LogDebug("Quest {QuestId} unobtainable: seasonal expiry {ExpiryUtc} (UTC) is before now {NowUtc}", questId, dateTime2.ToString("o"), DateTime.UtcNow.ToString("o")); + } return true; } } - if ((questInfo2.IsSeasonalEvent || questInfo2.IsSeasonalQuest) && !questInfo2.SeasonalQuestExpiry.HasValue && !_configuration.General.ShowIncompleteSeasonalEvents) + if ((questInfo2.IsSeasonalEvent || questInfo2.IsSeasonalQuest) && !(questInfo2.SeasonalQuestExpiry is DateTime)) { - return true; + if (_alreadyLoggedUnobtainableQuestsDetailed.Add(questId.Value)) + { + _logger.LogDebug("Quest {QuestId} is seasonal/event with no expiry; ShowIncompleteSeasonalEvents={ShowIncomplete}", questId, _configuration.General.ShowIncompleteSeasonalEvents); + } + if (!_configuration.General.ShowIncompleteSeasonalEvents) + { + return true; + } } if (_questData.GetLockedClassQuests().Contains(questId)) { @@ -1188,6 +1139,19 @@ internal sealed class QuestFunctions return false; } + private static bool IsQuestUnobtainable(UnlockLinkId unlockLinkId) + { + if (unlockLinkId.Value == 506) + { + return !IsFestivalActive(160, (ushort)2); + } + if (unlockLinkId.Value == 568) + { + return !IsFestivalActive(160, (ushort)3); + } + return true; + } + private unsafe static bool IsFestivalActive(ushort id, ushort? phase = null) { for (int i = 0; i < GameMain.Instance()->ActiveFestivals.Length; i++) @@ -1304,52 +1268,8 @@ internal sealed class QuestFunctions return (FFXIVClientStructs.FFXIV.Client.UI.Agent.GrandCompany)PlayerState.Instance()->GrandCompany; } - public unsafe byte GetGrandCompanyRank() - { - return PlayerState.Instance()->GetGrandCompanyRank(); - } - public bool IsMainScenarioQuestComplete() { return IsQuestComplete(_questData.LastMainScenarioQuestId); } - - public (bool isLevelLocked, int levelsNeeded, int requiredLevel, string? questName) GetMsqLevelLockInfo() - { - byte b = _objectTable.LocalPlayer?.Level ?? 0; - if (b == 0) - { - return (isLevelLocked: false, levelsNeeded: 0, requiredLevel: 0, questName: null); - } - QuestReference item = GetMainScenarioQuest().Item1; - if (item.CurrentQuest == null) - { - return (isLevelLocked: false, levelsNeeded: 0, requiredLevel: 0, questName: null); - } - if (IsQuestAccepted(item.CurrentQuest)) - { - return (isLevelLocked: false, levelsNeeded: 0, requiredLevel: 0, questName: null); - } - if (_questRegistry.TryGetQuest(item.CurrentQuest, out Questionable.Model.Quest quest)) - { - int level = quest.Info.Level; - if (level <= b) - { - return (isLevelLocked: false, levelsNeeded: 0, requiredLevel: level, questName: null); - } - int item2 = level - b; - return (isLevelLocked: true, levelsNeeded: item2, requiredLevel: level, questName: quest.Info.Name); - } - if (item.CurrentQuest is QuestId elementId && _questData.TryGetQuestInfo(elementId, out IQuestInfo questInfo) && questInfo is QuestInfo questInfo2) - { - int level2 = questInfo2.Level; - if (level2 <= b) - { - return (isLevelLocked: false, levelsNeeded: 0, requiredLevel: level2, questName: null); - } - int item3 = level2 - b; - return (isLevelLocked: true, levelsNeeded: item3, requiredLevel: level2, questName: questInfo2.Name); - } - return (isLevelLocked: false, levelsNeeded: 0, requiredLevel: 0, questName: null); - } } diff --git a/Questionable/Questionable.Model.Changelog/ChangeCategoryExtensions.cs b/Questionable/Questionable.Model.Changelog/ChangeCategoryExtensions.cs deleted file mode 100644 index 6e17787..0000000 --- a/Questionable/Questionable.Model.Changelog/ChangeCategoryExtensions.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Numerics; - -namespace Questionable.Model.Changelog; - -internal static class ChangeCategoryExtensions -{ - public static string ToDisplayString(this EChangeCategory category) - { - return category switch - { - EChangeCategory.Added => "Added", - EChangeCategory.Changed => "Changed", - EChangeCategory.Fixed => "Fixed", - EChangeCategory.Removed => "Removed", - EChangeCategory.QuestUpdates => "Quest Updates", - _ => category.ToString(), - }; - } - - public static Vector4 GetColor(this EChangeCategory category) - { - return category switch - { - EChangeCategory.Added => new Vector4(0.3f, 0.8f, 0.4f, 1f), - EChangeCategory.Changed => new Vector4(0.4f, 0.6f, 0.9f, 1f), - EChangeCategory.Fixed => new Vector4(0.9f, 0.6f, 0.3f, 1f), - EChangeCategory.Removed => new Vector4(0.9f, 0.3f, 0.3f, 1f), - EChangeCategory.QuestUpdates => new Vector4(0.8f, 0.8f, 0.4f, 1f), - _ => new Vector4(0.7f, 0.7f, 0.7f, 1f), - }; - } -} diff --git a/Questionable/Questionable.Model.Changelog/ChangeEntry.cs b/Questionable/Questionable.Model.Changelog/ChangeEntry.cs deleted file mode 100644 index 13574e2..0000000 --- a/Questionable/Questionable.Model.Changelog/ChangeEntry.cs +++ /dev/null @@ -1,5 +0,0 @@ -using System.Collections.Generic; - -namespace Questionable.Model.Changelog; - -internal sealed record ChangeEntry(EChangeCategory Category, string Description, List? SubItems = null); diff --git a/Questionable/Questionable.Model.Changelog/ChangelogEntry.cs b/Questionable/Questionable.Model.Changelog/ChangelogEntry.cs deleted file mode 100644 index 6486361..0000000 --- a/Questionable/Questionable.Model.Changelog/ChangelogEntry.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Questionable.Model.Changelog; - -internal sealed record ChangelogEntry(string Version, DateOnly ReleaseDate, List Changes) -{ - public bool IsNewVersion(string? lastViewedVersion, IReadOnlyList allChangelogs) - { - if (string.IsNullOrEmpty(lastViewedVersion)) - { - return true; - } - int num = -1; - int num2 = -1; - for (int i = 0; i < allChangelogs.Count; i++) - { - if (allChangelogs[i].Version == Version) - { - num = i; - } - if (allChangelogs[i].Version == lastViewedVersion) - { - num2 = i; - } - } - if (num2 == -1) - { - return true; - } - if (num == -1) - { - return false; - } - return num < num2; - } -} diff --git a/Questionable/Questionable.Model.Changelog/EChangeCategory.cs b/Questionable/Questionable.Model.Changelog/EChangeCategory.cs deleted file mode 100644 index ff67e49..0000000 --- a/Questionable/Questionable.Model.Changelog/EChangeCategory.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace Questionable.Model.Changelog; - -internal enum EChangeCategory -{ - Added, - Changed, - Fixed, - Removed, - QuestUpdates -} diff --git a/Questionable/Questionable.Model/AlliedSocietyDailyInfo.cs b/Questionable/Questionable.Model/AlliedSocietyDailyInfo.cs index 09a6f49..9eb661c 100644 --- a/Questionable/Questionable.Model/AlliedSocietyDailyInfo.cs +++ b/Questionable/Questionable.Model/AlliedSocietyDailyInfo.cs @@ -95,7 +95,7 @@ internal sealed class AlliedSocietyDailyInfo : IQuestInfo List list4 = new List(); list4.AddRange(classJobUtils.AsIndividualJobs(EExtendedClassJob.DoW, null)); list4.AddRange(classJobUtils.AsIndividualJobs(EExtendedClassJob.DoM, null)); - readOnlyList = new global::_003C_003Ez__ReadOnlyList(list4); + readOnlyList = new _003C_003Ez__ReadOnlyList(list4); } ClassJobs = readOnlyList; Expansion = (EExpansionVersion)beastTribe.Expansion.RowId; diff --git a/Questionable/Questionable.Model/ItemReward.cs b/Questionable/Questionable.Model/ItemReward.cs index 204ce18..09b48cf 100644 --- a/Questionable/Questionable.Model/ItemReward.cs +++ b/Questionable/Questionable.Model/ItemReward.cs @@ -18,12 +18,12 @@ public abstract record ItemReward(ItemRewardDetails Item) internal static ItemReward? CreateFromItem(Item item, ElementId elementId) { - uint? num = item.ItemAction.ValueNullable?.RowId; + ushort? num = item.ItemAction.ValueNullable?.Type; if (num.HasValue && num == 1322) { return new MountReward(new ItemRewardDetails(item, elementId), item.ItemAction.Value.Data[0]); } - num = item.ItemAction.ValueNullable?.RowId; + num = item.ItemAction.ValueNullable?.Type; if (num.HasValue && num == 853) { return new MinionReward(new ItemRewardDetails(item, elementId), item.ItemAction.Value.Data[0]); @@ -40,7 +40,7 @@ public abstract record ItemReward(ItemRewardDetails Item) TripleTriadCard valueOrDefault4 = valueOrDefault3.GetValueOrDefault(); return new TripleTriadCardReward(new ItemRewardDetails(item, elementId), (ushort)valueOrDefault4.RowId); } - num = item.ItemAction.ValueNullable?.RowId; + num = item.ItemAction.ValueNullable?.Type; if (num.HasValue && num == 20086) { return new FashionAccessoryReward(new ItemRewardDetails(item, elementId), item.ItemAction.Value.Data[0]); diff --git a/Questionable/Questionable.Model/QuestEx.cs b/Questionable/Questionable.Model/QuestEx.cs deleted file mode 100644 index 0f247bc..0000000 --- a/Questionable/Questionable.Model/QuestEx.cs +++ /dev/null @@ -1,421 +0,0 @@ -using System; -using System.CodeDom.Compiler; -using System.Runtime.CompilerServices; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Lumina.Text.ReadOnly; - -namespace Questionable.Model; - -[GeneratedCode("Lumina.Excel.Generator", "2.0.0")] -[Sheet("Quest", 179568153u)] -public readonly struct QuestEx : IExcelRow -{ - public readonly struct QuestParamsStruct - { - public ReadOnlySeString ScriptInstruction => _003Cpage_003EP.ReadString(_003Coffset_003EP, _003CparentOffset_003EP); - - public uint ScriptArg => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 4); - - public QuestParamsStruct(ExcelPage page, uint parentOffset, uint offset) - { - _003Cpage_003EP = page; - _003CparentOffset_003EP = parentOffset; - _003Coffset_003EP = offset; - } - } - - public readonly struct QuestListenerParamsStruct - { - public uint Listener => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP); - - public uint ConditionValue => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 4); - - public ushort Behavior => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 8); - - public byte ActorSpawnSeq => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 10); - - public byte ActorDespawnSeq => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 11); - - public byte Unknown0 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 12); - - public byte Unknown1 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 13); - - public byte QuestUInt8A => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 14); - - public byte ConditionType => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 15); - - public byte ConditionOperator => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 16); - - public bool VisibleBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 0); - - public bool ConditionBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 1); - - public bool ItemBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 2); - - public bool AnnounceBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 3); - - public bool BehaviorBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 4); - - public bool AcceptBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 5); - - public bool QualifiedBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 6); - - public bool CanTargetBool => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 17, 7); - - public QuestListenerParamsStruct(ExcelPage page, uint parentOffset, uint offset) - { - _003Cpage_003EP = page; - _003Coffset_003EP = offset; - } - } - - public readonly struct TodoParamsStruct - { - public unsafe Collection> ToDoLocation => new Collection>(_003Cpage_003EP, _003CparentOffset_003EP, _003Coffset_003EP, (delegate*>)(&ToDoLocationCtor), 8); - - public byte ToDoCompleteSeq => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 32); - - public byte ToDoQty => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 33); - - public byte CountableNum => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 34); - - public TodoParamsStruct(ExcelPage page, uint parentOffset, uint offset) - { - _003Cpage_003EP = page; - _003CparentOffset_003EP = parentOffset; - _003Coffset_003EP = offset; - } - - private static RowRef ToDoLocationCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt32(offset + i * 4), page.Language); - } - } - - public ExcelPage ExcelPage => _003Cpage_003EP; - - public uint RowOffset => _003Coffset_003EP; - - public uint RowId => _003Crow_003EP; - - public ReadOnlySeString Name => _003Cpage_003EP.ReadString(_003Coffset_003EP, _003Coffset_003EP); - - public unsafe Collection QuestParams => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&QuestParamsCtor), 50); - - public unsafe Collection QuestListenerParams => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&QuestListenerParamsCtor), 64); - - public unsafe Collection TodoParams => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&TodoParamsCtor), 24); - - public uint GilReward => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2548); - - public RowRef CurrencyReward => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2552), _003Cpage_003EP.Language); - - public uint CurrencyRewardCount => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2556); - - public unsafe Collection Reward => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&RewardCtor), 7); - - public unsafe Collection> OptionalItemReward => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&OptionalItemRewardCtor), 5); - - public RowRef InstanceContentUnlock => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2608), _003Cpage_003EP.Language); - - public ushort ExpFactor => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2612); - - public RowRef EmoteReward => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2614), _003Cpage_003EP.Language); - - public RowRef ActionReward => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2616), _003Cpage_003EP.Language); - - public unsafe Collection SystemReward => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&SystemRewardCtor), 2); - - public ushort GCTypeReward => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2622); - - public unsafe Collection> ItemCatalyst => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&ItemCatalystCtor), 3); - - public unsafe Collection ItemCountCatalyst => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&ItemCountCatalystCtor), 3); - - public byte ItemRewardType => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2630); - - public unsafe Collection ItemCountReward => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&ItemCountRewardCtor), 7); - - public unsafe Collection> RewardStain => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&RewardStainCtor), 7); - - public unsafe Collection OptionalItemCountReward => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&OptionalItemCountRewardCtor), 5); - - public unsafe Collection> OptionalItemStainReward => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&OptionalItemStainRewardCtor), 5); - - public unsafe Collection> GeneralActionReward => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&GeneralActionRewardCtor), 2); - - public RowRef OtherReward => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2657), _003Cpage_003EP.Language); - - public byte Tomestone => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2658); - - public byte TomestoneReward => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2659); - - public byte TomestoneCountReward => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2660); - - public byte ReputationReward => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2661); - - public bool Unknown0 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2662); - - public bool Unknown1 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2663); - - public bool Unknown2 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2664); - - public bool Unknown3 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2665); - - public bool Unknown4 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2666); - - public bool Unknown5 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2667); - - public bool Unknown6 => _003Cpage_003EP.ReadBool(_003Coffset_003EP + 2668); - - public unsafe Collection OptionalItemIsHQReward => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&OptionalItemIsHQRewardCtor), 5); - - public ReadOnlySeString Id => _003Cpage_003EP.ReadString(_003Coffset_003EP + 2676, _003Coffset_003EP); - - public unsafe Collection> PreviousQuest => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&PreviousQuestCtor), 3); - - public unsafe Collection> QuestLock => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&QuestLockCtor), 2); - - public unsafe Collection> InstanceContent => new Collection>(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*>)(&InstanceContentCtor), 3); - - public RowRef IssuerStart - { - get - { - ExcelModule module = _003Cpage_003EP.Module; - uint rowId = _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2712); - InlineArray2 buffer = default(InlineArray2); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 0) = typeof(EObjName); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 1) = typeof(ENpcResident); - return RowRef.GetFirstValidRowOrUntyped(module, rowId, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, Type>(in buffer, 2), -965341264, _003Cpage_003EP.Language); - } - } - - public RowRef IssuerLocation => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2716), _003Cpage_003EP.Language); - - public RowRef TargetEnd - { - get - { - ExcelModule module = _003Cpage_003EP.Module; - uint rowId = _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2720); - InlineArray2 buffer = default(InlineArray2); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 0) = typeof(EObjName); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 1) = typeof(ENpcResident); - return RowRef.GetFirstValidRowOrUntyped(module, rowId, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, Type>(in buffer, 2), -965341264, _003Cpage_003EP.Language); - } - } - - public RowRef JournalGenre => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2724), _003Cpage_003EP.Language); - - public uint Icon => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2728); - - public uint IconSpecial => _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2732); - - public RowRef MountRequired => new RowRef(_003Cpage_003EP.Module, (uint)_003Cpage_003EP.ReadInt32(_003Coffset_003EP + 2736), _003Cpage_003EP.Language); - - public unsafe Collection ClassJobLevel => new Collection(_003Cpage_003EP, _003Coffset_003EP, _003Coffset_003EP, (delegate*)(&ClassJobLevelCtor), 2); - - public ushort Header => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2744); - - public RowRef Festival => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2746), _003Cpage_003EP.Language); - - public ushort BellStart => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2748); - - public ushort BellEnd => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2750); - - public ushort BeastReputationValue => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2752); - - public SubrowRef ClientBehavior => new SubrowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2754), _003Cpage_003EP.Language); - - public SubrowRef QuestClassJobSupply => new SubrowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2756), _003Cpage_003EP.Language); - - public RowRef PlaceName => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2758), _003Cpage_003EP.Language); - - public ushort SortKey => _003Cpage_003EP.ReadUInt16(_003Coffset_003EP + 2760); - - public RowRef Expansion => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2762), _003Cpage_003EP.Language); - - public RowRef ClassJobCategory0 => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2763), _003Cpage_003EP.Language); - - public byte QuestLevelOffset => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2764); - - public RowRef ClassJobCategory1 => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2765), _003Cpage_003EP.Language); - - public byte PreviousQuestJoin => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2766); - - public byte Unknown7 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2767); - - public byte QuestLockJoin => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2768); - - public byte Unknown8 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2769); - - public byte Unknown9 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2770); - - public RowRef ClassJobUnlock => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2771), _003Cpage_003EP.Language); - - public RowRef GrandCompany => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2772), _003Cpage_003EP.Language); - - public RowRef GrandCompanyRank => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2773), _003Cpage_003EP.Language); - - public byte InstanceContentJoin => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2774); - - public byte FestivalBegin => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2775); - - public byte FestivalEnd => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2776); - - public RowRef BeastTribe => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2777), _003Cpage_003EP.Language); - - public RowRef BeastReputationRank => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2778), _003Cpage_003EP.Language); - - public RowRef SatisfactionNpc => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2779), _003Cpage_003EP.Language); - - public byte SatisfactionLevel => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2780); - - public RowRef DeliveryQuest => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2781), _003Cpage_003EP.Language); - - public byte RepeatIntervalType => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2782); - - public RowRef QuestRepeatFlag => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2783), _003Cpage_003EP.Language); - - public byte Type => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2784); - - public byte Unknown_70 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2785); - - public byte LevelMax => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2786); - - public RowRef ClassJobRequired => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2787), _003Cpage_003EP.Language); - - public RowRef QuestRewardOtherDisplay => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2788), _003Cpage_003EP.Language); - - public byte Unknown10 => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2789); - - public RowRef EventIconType => new RowRef(_003Cpage_003EP.Module, _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2790), _003Cpage_003EP.Language); - - public byte DailyQuestPool => _003Cpage_003EP.ReadUInt8(_003Coffset_003EP + 2791); - - public bool IsHouseRequired => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 0); - - public bool IsRepeatable => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 1); - - public bool CanCancel => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 2); - - public bool Introduction => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 3); - - public bool HideOfferIcon => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 4); - - public bool Unknown12 => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 5); - - public bool Unknown13 => _003Cpage_003EP.ReadPackedBool(_003Coffset_003EP + 2792, 6); - - public QuestEx(ExcelPage page, uint offset, uint row) - { - _003Cpage_003EP = page; - _003Coffset_003EP = offset; - _003Crow_003EP = row; - } - - private static QuestParamsStruct QuestParamsCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new QuestParamsStruct(page, parentOffset, offset + 4 + i * 8); - } - - private static QuestListenerParamsStruct QuestListenerParamsCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new QuestListenerParamsStruct(page, parentOffset, offset + 404 + i * 20); - } - - private static TodoParamsStruct TodoParamsCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new TodoParamsStruct(page, parentOffset, offset + 1684 + i * 36); - } - - private static RowRef RewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadUInt8(offset + 2630) switch - { - 1 => RowRef.Create(page.Module, page.ReadUInt32(offset + 2560 + i * 4), page.Language), - 3 => RowRef.Create(page.Module, page.ReadUInt32(offset + 2560 + i * 4), page.Language), - 5 => RowRef.Create(page.Module, page.ReadUInt32(offset + 2560 + i * 4), page.Language), - 6 => RowRef.CreateSubrow(page.Module, page.ReadUInt32(offset + 2560 + i * 4), page.Language), - 7 => RowRef.Create(page.Module, page.ReadUInt32(offset + 2560 + i * 4), page.Language), - _ => RowRef.CreateUntyped(page.ReadUInt32(offset + 2560 + i * 4), page.Language), - }; - } - - private static RowRef OptionalItemRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt32(offset + 2588 + i * 4), page.Language); - } - - private static ushort SystemRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadUInt16(offset + 2618 + i * 2); - } - - private static RowRef ItemCatalystCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt8(offset + 2624 + i), page.Language); - } - - private static byte ItemCountCatalystCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadUInt8(offset + 2627 + i); - } - - private static byte ItemCountRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadUInt8(offset + 2631 + i); - } - - private static RowRef RewardStainCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt8(offset + 2638 + i), page.Language); - } - - private static byte OptionalItemCountRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadUInt8(offset + 2645 + i); - } - - private static RowRef OptionalItemStainRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt8(offset + 2650 + i), page.Language); - } - - private static RowRef GeneralActionRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt8(offset + 2655 + i), page.Language); - } - - private static bool OptionalItemIsHQRewardCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadBool(offset + 2669 + i); - } - - private static RowRef PreviousQuestCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt32(offset + 2680 + i * 4), page.Language); - } - - private static RowRef QuestLockCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt32(offset + 2692 + i * 4), page.Language); - } - - private static RowRef InstanceContentCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return new RowRef(page.Module, page.ReadUInt32(offset + 2700 + i * 4), page.Language); - } - - private static ushort ClassJobLevelCtor(ExcelPage page, uint parentOffset, uint offset, uint i) - { - return page.ReadUInt16(offset + 2740 + i * 2); - } - - static QuestEx IExcelRow.Create(ExcelPage page, uint offset, uint row) - { - return new QuestEx(page, offset, row); - } -} diff --git a/Questionable/Questionable.Model/QuestInfo.cs b/Questionable/Questionable.Model/QuestInfo.cs index de80595..319e5a2 100644 --- a/Questionable/Questionable.Model/QuestInfo.cs +++ b/Questionable/Questionable.Model/QuestInfo.cs @@ -60,6 +60,8 @@ internal sealed class QuestInfo : IQuestInfo public byte MoogleDeliveryLevel { get; } + public bool IsMoogleDeliveryQuest => JournalGenre == 87; + public IReadOnlyList ItemRewards { get; } public EExpansionVersion Expansion { get; } @@ -68,7 +70,7 @@ internal sealed class QuestInfo : IQuestInfo public bool IsSeasonalQuest { get; internal set; } - public QuestInfo(Lumina.Excel.Sheets.Quest ogquest, QuestEx quest, uint newGamePlusChapter, byte startingCity, JournalGenreOverrides journalGenreOverrides, bool isSeasonalEventQuest = false, DateTime? seasonalQuestExpiry = null) + public QuestInfo(Lumina.Excel.Sheets.Quest quest, uint newGamePlusChapter, byte startingCity, JournalGenreOverrides journalGenreOverrides, bool isSeasonalEventQuest = false, DateTime? seasonalQuestExpiry = null) { QuestId = Questionable.Model.Questing.QuestId.FromRowId(quest.RowId); string value = QuestId.Value switch diff --git a/Questionable/Questionable.Validation.Validators/JsonSchemaValidator.cs b/Questionable/Questionable.Validation.Validators/JsonSchemaValidator.cs index 104dcae..6843c44 100644 --- a/Questionable/Questionable.Validation.Validators/JsonSchemaValidator.cs +++ b/Questionable/Questionable.Validation.Validators/JsonSchemaValidator.cs @@ -34,7 +34,6 @@ internal sealed class JsonSchemaValidator : IQuestValidator SchemaRegistry.Global.Register(new Uri("https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-aetheryte.json"), JsonSchema.FromStream(AssemblyModelLoader.CommonAetheryte).AsTask().Result); SchemaRegistry.Global.Register(new Uri("https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-classjob.json"), JsonSchema.FromStream(AssemblyModelLoader.CommonClassJob).AsTask().Result); SchemaRegistry.Global.Register(new Uri("https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-completionflags.json"), JsonSchema.FromStream(AssemblyModelLoader.CommonCompletionFlags).AsTask().Result); - SchemaRegistry.Global.Register(new Uri("https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-requiredvariables.json"), JsonSchema.FromStream(AssemblyModelLoader.CommonRequiredVariables).AsTask().Result); SchemaRegistry.Global.Register(new Uri("https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json"), JsonSchema.FromStream(AssemblyModelLoader.CommonVector3).AsTask().Result); SchemaRegistry.Global.Register(new Uri("https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/QuestPaths/quest-v1.json"), JsonSchema.FromStream(AssemblyQuestLoader.QuestSchema).AsTask().Result); } @@ -68,7 +67,6 @@ internal sealed class JsonSchemaValidator : IQuestValidator RegisterLocalIfExistsFromPath(Find("common-aetheryte.json"), "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-aetheryte.json"); RegisterLocalIfExistsFromPath(Find("common-classjob.json"), "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-classjob.json"); RegisterLocalIfExistsFromPath(Find("common-completionflags.json"), "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-completionflags.json"); - RegisterLocalIfExistsFromPath(Find("common-requiredvariables.json"), "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-requiredvariables.json"); RegisterLocalIfExistsFromPath(Find("common-vector3.json"), "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json"); RegisterLocalIfExistsFromPath(Find("quest-v1.json"), "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/QuestPaths/quest-v1.json"); static void RegisterLocalIfExistsFromPath(string? path, string registrationUri) diff --git a/Questionable/Questionable.Validation/QuestValidator.cs b/Questionable/Questionable.Validation/QuestValidator.cs index 053f4b8..be612e6 100644 --- a/Questionable/Questionable.Validation/QuestValidator.cs +++ b/Questionable/Questionable.Validation/QuestValidator.cs @@ -27,6 +27,7 @@ internal sealed class QuestValidator { _validators = validators.ToList(); _logger = logger; + _logger.LogInformation("Validators: {Validators}", string.Join(", ", _validators.Select((IQuestValidator x) => x.GetType().Name))); } public void Reset() @@ -107,7 +108,7 @@ internal sealed class QuestValidator AlliedSociety = x.Key, Type = EIssueType.QuestDisabled, Severity = EIssueSeverity.None, - Description = $"{x.Value.Count} disabled {((x.Value.Count == 1) ? "quest" : "quests")}: {value}" + Description = $"{x.Value.Count} disabled quest(s): {value}" }; }); } diff --git a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogCategoryComponent.cs b/Questionable/Questionable.Windows.ChangelogComponents/ChangelogCategoryComponent.cs deleted file mode 100644 index 6a009d1..0000000 --- a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogCategoryComponent.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System.Collections.Generic; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Utility.Raii; -using Questionable.Model.Changelog; - -namespace Questionable.Windows.ChangelogComponents; - -internal static class ChangelogCategoryComponent -{ - public static void DrawCategoryGroup(EChangeCategory category, List changes, float baseX) - { - DrawCategoryHeader(category switch - { - EChangeCategory.Added => FontAwesomeIcon.Plus, - EChangeCategory.Changed => FontAwesomeIcon.Edit, - EChangeCategory.Fixed => FontAwesomeIcon.Wrench, - EChangeCategory.Removed => FontAwesomeIcon.Minus, - EChangeCategory.QuestUpdates => FontAwesomeIcon.Map, - _ => FontAwesomeIcon.Circle, - }, category switch - { - EChangeCategory.Added => new Vector4(0.5f, 1f, 0.6f, 1f), - EChangeCategory.Changed => new Vector4(0.6f, 0.85f, 1f, 1f), - EChangeCategory.Fixed => new Vector4(1f, 0.85f, 0.5f, 1f), - EChangeCategory.Removed => new Vector4(1f, 0.5f, 0.5f, 1f), - EChangeCategory.QuestUpdates => new Vector4(1f, 1f, 0.6f, 1f), - _ => new Vector4(0.9f, 0.9f, 0.9f, 1f), - }, category.ToDisplayString(), baseX); - ImGui.Spacing(); - float changeIndent = 28f; - foreach (ChangeEntry change in changes) - { - DrawChange(change, baseX, changeIndent); - } - } - - private static void DrawCategoryHeader(FontAwesomeIcon icon, Vector4 color, string text, float baseX) - { - float cursorPosY = ImGui.GetCursorPosY(); - ImGui.SetCursorPosX(baseX); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(in color, icon.ToIconString()); - } - ImGui.SameLine(); - ImGui.SetCursorPosY(cursorPosY); - using (ImRaii.PushColor(ImGuiCol.Text, color)) - { - ImGui.TextUnformatted(text); - } - } - - private static void DrawChange(ChangeEntry change, float baseX, float changeIndent) - { - ImGui.SetCursorPosX(baseX + changeIndent); - float cursorPosY = ImGui.GetCursorPosY(); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), FontAwesomeIcon.CaretRight.ToIconString()); - } - ImGui.SameLine(); - ImGui.SetCursorPosY(cursorPosY); - float num = ImGui.GetContentRegionAvail().X - 8f; - ImGui.PushTextWrapPos(ImGui.GetCursorPosX() + num); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), change.Description); - ImGui.PopTextWrapPos(); - if (change.SubItems != null && change.SubItems.Count > 0) - { - DrawSubItems(change.SubItems, baseX, changeIndent); - } - } - - private static void DrawSubItems(List subItems, float baseX, float changeIndent) - { - float num = changeIndent + 20f; - foreach (string subItem in subItems) - { - ImGui.SetCursorPosX(baseX + num); - float cursorPosY = ImGui.GetCursorPosY(); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(new Vector4(0.85f, 0.85f, 0.92f, 1f), FontAwesomeIcon.AngleRight.ToIconString()); - } - ImGui.SameLine(); - ImGui.SetCursorPosY(cursorPosY); - float num2 = ImGui.GetContentRegionAvail().X - 8f; - ImGui.PushTextWrapPos(ImGui.GetCursorPosX() + num2); - ImGui.TextColored(new Vector4(0.85f, 0.85f, 0.92f, 1f), subItem); - ImGui.PopTextWrapPos(); - } - } -} diff --git a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogEntryComponent.cs b/Questionable/Questionable.Windows.ChangelogComponents/ChangelogEntryComponent.cs deleted file mode 100644 index 28267b1..0000000 --- a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogEntryComponent.cs +++ /dev/null @@ -1,152 +0,0 @@ -using System; -using System.Globalization; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Utility.Raii; -using Questionable.Data; -using Questionable.Model.Changelog; - -namespace Questionable.Windows.ChangelogComponents; - -internal sealed class ChangelogEntryComponent -{ - private readonly Configuration _configuration; - - private readonly int _windowOpenCount; - - private readonly float _animationTime; - - public ChangelogEntryComponent(Configuration configuration, int windowOpenCount, float animationTime) - { - _configuration = configuration; - _windowOpenCount = windowOpenCount; - _animationTime = animationTime; - } - - public void Draw(ChangelogEntry changelog, bool isLatest, bool hasSetInitialState) - { - bool isNew = changelog.IsNewVersion(_configuration.LastViewedChangelogVersion, ChangelogData.Changelogs); - ImGui.GetWindowDrawList(); - string text = changelog.ReleaseDate.ToString("MMMM dd, yyyy", CultureInfo.InvariantCulture); - if (!hasSetInitialState) - { - ImGui.SetNextItemOpen(isLatest, ImGuiCond.Always); - } - string text2 = "v" + changelog.Version; - float fontSize = ImGui.GetFontSize(); - float num = fontSize; - Vector2 versionSize; - using (ImRaii.PushFont(UiBuilder.MonoFont)) - { - versionSize = ImGui.CalcTextSize(text2); - } - Vector2 dateSize = ImGui.CalcTextSize(text); - float scaledIconFontSize = fontSize * 0.85f; - float x = ImGui.GetContentRegionAvail().X; - bool flag; - using (ImRaii.PushColor(ImGuiCol.Header, new Vector4(0.2f, 0.18f, 0.25f, 0.6f))) - { - using (ImRaii.PushColor(ImGuiCol.HeaderHovered, new Vector4(0.3f, 0.25f, 0.35f, 0.8f))) - { - using (ImRaii.PushColor(ImGuiCol.HeaderActive, new Vector4(0.25f, 0.22f, 0.3f, 1f))) - { - Vector2 cursorPos = ImGui.GetCursorPos(); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - ImU8String label = new ImU8String(19, 2); - label.AppendLiteral("###header_"); - label.AppendFormatted(changelog.Version); - label.AppendLiteral("_changes_"); - label.AppendFormatted(_windowOpenCount); - flag = ImGui.CollapsingHeader(label); - Vector2 cursorPos2 = ImGui.GetCursorPos(); - float verticalOffset = (cursorPos2.Y - cursorPos.Y - num) * 0.5f - 1f; - DrawVersionText(text2, versionSize, cursorPos, verticalOffset); - DrawNewBadge(isNew, cursorScreenPos, x); - DrawDateWithIcon(text, dateSize, scaledIconFontSize, cursorScreenPos, cursorPos, x, verticalOffset, fontSize); - ImGui.SetCursorPos(cursorPos2); - } - } - } - if (flag) - { - DrawChangelogContent(changelog); - } - } - - private static void DrawVersionText(string versionText, Vector2 versionSize, Vector2 headerStartPos, float verticalOffset) - { - float x = headerStartPos.X + ImGui.GetStyle().FramePadding.X * 2f + 20f; - using (ImRaii.PushFont(UiBuilder.MonoFont)) - { - ImGui.SetCursorPos(new Vector2(x, headerStartPos.Y + verticalOffset)); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 0.95f, 1f), versionText); - } - } - - private void DrawNewBadge(bool isNew, Vector2 headerStartScreenPos, float availableWidth) - { - if (isNew) - { - float num = 2.5f; - float w = (MathF.Sin(_animationTime * num) + 1f) * 0.5f * 0.15f; - float frameHeight = ImGui.GetFrameHeight(); - float frameRounding = ImGui.GetStyle().FrameRounding; - ImGui.GetWindowDrawList().AddRectFilled(headerStartScreenPos, headerStartScreenPos + new Vector2(availableWidth, frameHeight), ImGui.ColorConvertFloat4ToU32(new Vector4(0.5f, 1f, 0.6f, w)), frameRounding); - } - } - - private static void DrawDateWithIcon(string dateText, Vector2 dateSize, float scaledIconFontSize, Vector2 headerStartScreenPos, Vector2 headerStartPos, float availableWidth, float verticalOffset, float defaultFontSize) - { - string text = FontAwesomeIcon.Calendar.ToIconString(); - Vector2 vector; - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - vector = ImGui.CalcTextSize(text); - } - float num = vector.X * (scaledIconFontSize / defaultFontSize); - float num2 = num + 4f + dateSize.X; - float num3 = availableWidth - num2 - 12f; - Vector2 pos = headerStartScreenPos + new Vector2(num3, verticalOffset); - ImGui.GetWindowDrawList().AddText(UiBuilder.IconFont, scaledIconFontSize, pos, ImGui.ColorConvertFloat4ToU32(new Vector4(0.65f, 0.6f, 0.8f, 1f)), text); - ImGui.SetCursorPos(new Vector2(num3 + num + 4f, headerStartPos.Y + verticalOffset)); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), dateText); - } - - private static void DrawChangelogContent(ChangelogEntry changelog) - { - Vector2 cursorPos = ImGui.GetCursorPos(); - Vector2 vector = new Vector2(16f, 8f); - float x = ImGui.GetContentRegionAvail().X; - IOrderedEnumerable> orderedEnumerable = from changeEntry in changelog.Changes - group changeEntry by changeEntry.Category into g - orderby g.Key - select g; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.ChannelsSplit(2); - windowDrawList.ChannelsSetCurrent(1); - float baseX = cursorPos.X + vector.X; - ImGui.SetCursorPos(cursorPos + new Vector2(vector.X, vector.Y)); - bool flag = true; - foreach (IGrouping item in orderedEnumerable) - { - if (!flag) - { - ImGui.Spacing(); - } - ChangelogCategoryComponent.DrawCategoryGroup(item.Key, item.ToList(), baseX); - flag = false; - } - Vector2 cursorPos2 = ImGui.GetCursorPos(); - windowDrawList.ChannelsSetCurrent(0); - ImGui.SetCursorPos(cursorPos); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - ImGui.SetCursorPos(cursorPos2 + new Vector2(0f, vector.Y)); - Vector2 cursorScreenPos2 = ImGui.GetCursorScreenPos(); - windowDrawList.AddRectFilled(cursorScreenPos, new Vector2(cursorScreenPos.X + x, cursorScreenPos2.Y), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.5f)), 4f); - windowDrawList.AddRect(cursorScreenPos, new Vector2(cursorScreenPos.X + x, cursorScreenPos2.Y), ImGui.ColorConvertFloat4ToU32(new Vector4(0.55f, 0.45f, 0.75f, 0.15f)), 4f, ImDrawFlags.None, 1f); - windowDrawList.ChannelsMerge(); - ImGui.SetCursorPos(new Vector2(cursorPos.X, cursorPos2.Y + vector.Y + 2f)); - } -} diff --git a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogFooterComponent.cs b/Questionable/Questionable.Windows.ChangelogComponents/ChangelogFooterComponent.cs deleted file mode 100644 index 558e6bc..0000000 --- a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogFooterComponent.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; - -namespace Questionable.Windows.ChangelogComponents; - -internal sealed class ChangelogFooterComponent -{ - public static void Draw(Action onConfirm) - { - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X; - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, 2f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.4f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 1f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 1f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.4f))); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 8f); - float num = 120f; - float num2 = (ImGui.GetContentRegionAvail().X - num) * 0.5f; - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + num2); - using (ImRaii.PushColor(ImGuiCol.Button, new Vector4(0.55f, 0.45f, 0.75f, 0.6f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonHovered, new Vector4(0.65f, 0.55f, 0.85f, 0.8f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonActive, new Vector4(0.75f, 0.55f, 0.95f, 1f))) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.CheckCircle, "Got It!")) - { - onConfirm(); - } - } - } - } - } -} diff --git a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogHeaderComponent.cs b/Questionable/Questionable.Windows.ChangelogComponents/ChangelogHeaderComponent.cs deleted file mode 100644 index 53af959..0000000 --- a/Questionable/Questionable.Windows.ChangelogComponents/ChangelogHeaderComponent.cs +++ /dev/null @@ -1,251 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Utility.Raii; - -namespace Questionable.Windows.ChangelogComponents; - -internal sealed class ChangelogHeaderComponent -{ - private float _animationTime; - - public void Reset() - { - _animationTime = 0f; - } - - public void Draw(Action onCloseClicked) - { - _animationTime += ImGui.GetIO().DeltaTime; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X; - float headerHeight = 120f; - DrawBackground(windowDrawList, cursorScreenPos, x, headerHeight); - DrawAnimatedBorder(windowDrawList, cursorScreenPos, x, headerHeight); - DrawSparkles(windowDrawList, cursorScreenPos, x, headerHeight); - DrawCloseButton(windowDrawList, cursorScreenPos, x, onCloseClicked); - DrawHeaderContent(cursorScreenPos, x, headerHeight); - DrawAccentLine(windowDrawList, cursorScreenPos, x, headerHeight); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 8f); - } - - private void DrawBackground(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight) - { - float num = (MathF.Sin(_animationTime * 1.5f) + 1f) * 0.5f * 0.03f; - uint num2 = ImGui.ColorConvertFloat4ToU32(new Vector4(0.15f + num, 0.1f + num, 0.2f + num, 0.95f)); - uint num3 = ImGui.ColorConvertFloat4ToU32(new Vector4(0.08f, 0.05f, 0.12f, 0.95f)); - drawList.AddRectFilledMultiColor(headerStartPos, headerStartPos + new Vector2(contentWidth, headerHeight), num2, num2, num3, num3); - } - - private void DrawAnimatedBorder(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight) - { - float num = 100f; - float num2 = 250f; - float num3 = _animationTime * num % num2; - float num4 = MathF.Ceiling(contentWidth / num2) + 2f; - for (int i = 0; (float)i < num4; i++) - { - float num5 = (float)i * num2 - num3; - float num6 = num5 + num2; - if (!(num6 < 0f) && !(num5 > contentWidth)) - { - float num7 = MathF.Max(0f, num5); - float num8 = MathF.Min(contentWidth, num6); - float num9 = (num7 - num5) / num2; - float num10 = (num8 - num5) / num2; - float num11 = (MathF.Sin(num9 * (float)Math.PI * 2f - (float)Math.PI / 2f) + 1f) * 0.5f; - float num12 = (MathF.Sin(num10 * (float)Math.PI * 2f - (float)Math.PI / 2f) + 1f) * 0.5f; - Vector4 value = new Vector4(0.75f, 0.55f, 0.95f, num11 * 0.8f); - Vector4 value2 = new Vector4(0.55f, 0.75f, 0.95f, num11 * 0.8f); - Vector4 value3 = new Vector4(0.75f, 0.55f, 0.95f, num12 * 0.8f); - Vector4 value4 = new Vector4(0.55f, 0.75f, 0.95f, num12 * 0.8f); - float num13 = (num9 + num10) * 0.5f; - Vector4 input = Vector4.Lerp(value, value2, num13); - Vector4 input2 = Vector4.Lerp(value3, value4, num13 + 0.2f); - drawList.AddRectFilledMultiColor(headerStartPos + new Vector2(num7, 0f), headerStartPos + new Vector2(num8, 3f), ImGui.ColorConvertFloat4ToU32(input), ImGui.ColorConvertFloat4ToU32(input2), ImGui.ColorConvertFloat4ToU32(input2), ImGui.ColorConvertFloat4ToU32(input)); - } - } - } - - private void DrawSparkles(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight) - { - int num = 12; - for (int i = 0; i < num; i++) - { - float num2 = (float)i * 123.456f; - float num3 = 0.8f + (float)(i % 3) * 0.15f; - float num4 = _animationTime * num3; - float x = num2 * 12.345f % 1f * contentWidth; - float y = (MathF.Sin(num4 + num2) + 1f) * 0.5f * headerHeight; - Vector2 pos = headerStartPos + new Vector2(x, y); - float num5 = (MathF.Sin(num4 * 3f + num2 * 2f) + 1f) * 0.5f; - float alpha = num5 * 0.6f; - float size = 2f + num5 * 1.5f; - DrawSparkleShape(drawList, pos, size, alpha, i % 4, num4); - } - } - - private static void DrawSparkleShape(ImDrawListPtr drawList, Vector2 pos, float size, float alpha, int type, float time) - { - switch (type) - { - case 0: - DrawCrossSparkle(drawList, pos, size, alpha); - break; - case 1: - DrawDiamondSparkle(drawList, pos, size, alpha); - break; - case 2: - DrawStarSparkle(drawList, pos, size, alpha, time); - break; - default: - DrawCircleSparkle(drawList, pos, size, alpha); - break; - } - } - - private static void DrawCrossSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha) - { - float num = size * 0.8f; - float thickness = MathF.Max(1f, size * 0.3f); - drawList.AddLine(pos - new Vector2(num, 0f), pos + new Vector2(num, 0f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha)), thickness); - drawList.AddLine(pos - new Vector2(0f, num), pos + new Vector2(0f, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha)), thickness); - drawList.AddCircleFilled(pos, size * 1.5f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.2f))); - } - - private static void DrawDiamondSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha) - { - float num = size * 0.7f; - Vector2 p = pos + new Vector2(0f, 0f - num); - Vector2 p2 = pos + new Vector2(num, 0f); - Vector2 p3 = pos + new Vector2(0f, num); - Vector2 p4 = pos + new Vector2(0f - num, 0f); - drawList.AddQuadFilled(p, p2, p3, p4, ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha * 0.8f))); - drawList.AddCircleFilled(pos, size * 1.6f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.25f))); - } - - private static void DrawStarSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha, float time) - { - for (int i = 0; i < 4; i++) - { - float num = (float)i * (float)Math.PI * 0.5f; - float num2 = size * 0.3f; - float num3 = size * 0.9f; - float x = num - 0.3f; - float x2 = num + 0.3f; - Vector2 p = pos + new Vector2(MathF.Cos(x) * num2, MathF.Sin(x) * num2); - Vector2 p2 = pos + new Vector2(MathF.Cos(num) * num3, MathF.Sin(num) * num3); - Vector2 p3 = pos + new Vector2(MathF.Cos(x2) * num2, MathF.Sin(x2) * num2); - drawList.AddTriangleFilled(p, p2, p3, ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha))); - } - drawList.AddCircleFilled(pos, size * 1.7f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.3f))); - } - - private static void DrawCircleSparkle(ImDrawListPtr drawList, Vector2 pos, float size, float alpha) - { - drawList.AddCircleFilled(pos, size, ImGui.ColorConvertFloat4ToU32(new Vector4(0.9f, 0.8f, 1f, alpha))); - drawList.AddCircleFilled(pos, size * 1.8f, ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, alpha * 0.3f))); - } - - private void DrawCloseButton(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, Action onCloseClicked) - { - float num = 32f; - Vector2 vector = headerStartPos + new Vector2(contentWidth - num - 8f, 8f); - Vector2 center = vector + new Vector2(num * 0.5f, num * 0.5f); - Vector2 mousePos = ImGui.GetMousePos(); - bool flag = mousePos.X >= vector.X && mousePos.X <= vector.X + num && mousePos.Y >= vector.Y && mousePos.Y <= vector.Y + num; - float w = (flag ? 0.9f : 0.5f); - float num2 = (flag ? ((MathF.Sin(_animationTime * 4f) + 1f) * 0.5f * 0.1f) : 0f); - uint col = (flag ? ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f + num2, 0.55f, 0.95f, w)) : ImGui.ColorConvertFloat4ToU32(new Vector4(0.55f, 0.45f, 0.75f, w))); - drawList.AddCircleFilled(center, num * 0.4f, col); - DrawAnimatedCross(drawList, center, flag); - ImGui.SetCursorScreenPos(vector); - ImGui.InvisibleButton("CloseButton", new Vector2(num, num)); - if (ImGui.IsItemClicked()) - { - onCloseClicked(obj: false); - } - } - - private void DrawAnimatedCross(ImDrawListPtr drawList, Vector2 center, bool isHovered) - { - float thickness = 2f; - float w = (isHovered ? 1f : 0.8f); - float x = (isHovered ? (MathF.Sin(_animationTime * 6f) * 0.1f) : 0f); - float num = MathF.Cos(x); - float num2 = MathF.Sin(x); - float num3 = 8f * 0.5f; - Vector2 vector = new Vector2((0f - num3) * num - (0f - num3) * num2, (0f - num3) * num2 + (0f - num3) * num); - Vector2 vector2 = new Vector2(num3 * num - num3 * num2, num3 * num2 + num3 * num); - Vector2 vector3 = new Vector2((0f - num3) * num - num3 * num2, (0f - num3) * num2 + num3 * num); - Vector2 vector4 = new Vector2(num3 * num - (0f - num3) * num2, num3 * num2 + (0f - num3) * num); - drawList.AddLine(center + vector, center + vector2, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, w)), thickness); - drawList.AddLine(center + vector3, center + vector4, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, w)), thickness); - } - - private void DrawHeaderContent(Vector2 headerStartPos, float contentWidth, float headerHeight) - { - float fadeIn = MathF.Min(1f, _animationTime * 2f); - ImGui.SetCursorScreenPos(headerStartPos); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 30f); - float centerX = contentWidth * 0.5f; - DrawIcon(centerX, fadeIn); - DrawTitle(centerX, fadeIn); - DrawSubtitle(centerX); - } - - private void DrawIcon(float centerX, float fadeIn) - { - float num = MathF.Sin(_animationTime * 2f) * 3f; - float num2 = MathF.Sin(_animationTime * 1.5f + (float)Math.PI / 2f) * 1.5f; - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - string text = FontAwesomeIcon.FileAlt.ToIconString(); - ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f + num2); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + num); - float w = (MathF.Sin(_animationTime * 3f) + 1f) * 0.5f * 0.3f; - Vector4 input = ((_animationTime * 0.5f % 1f < 0.5f) ? new Vector4(0.75f, 0.55f, 0.95f, w) : new Vector4(0.55f, 0.75f, 0.95f, w)); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - ImGui.GetWindowDrawList().AddText(UiBuilder.IconFont, ImGui.GetFontSize() * 1.2f, cursorScreenPos + new Vector2(2f, 2f), ImGui.ColorConvertFloat4ToU32(input), text); - ImGui.PushStyleVar(ImGuiStyleVar.Alpha, fadeIn); - ImGui.TextColored(new Vector4(0.75f, 0.55f, 0.95f, 1f), text); - ImGui.PopStyleVar(); - } - ImGui.SetCursorPosY(ImGui.GetCursorPosY() - num + 4f); - } - - private void DrawTitle(float centerX, float fadeIn) - { - float num = MathF.Max(0f, 1f - (_animationTime - 0.1f) * 3f); - float num2 = num * num * (3f - 2f * num) * 20f; - using (ImRaii.PushFont(UiBuilder.MonoFont)) - { - string text = "What's New in Questionable?"; - ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f - num2); - ImGui.PushStyleVar(ImGuiStyleVar.Alpha, fadeIn); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), text); - ImGui.PopStyleVar(); - } - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 6f); - } - - private void DrawSubtitle(float centerX) - { - float val = MathF.Max(0f, MathF.Min(1f, (_animationTime - 0.3f) * 2f)); - string text = "Stay up to date with the latest features and improvements"; - ImGui.SetCursorPosX(centerX - ImGui.CalcTextSize(text).X * 0.5f); - ImGui.PushStyleVar(ImGuiStyleVar.Alpha, val); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 0.9f), text); - ImGui.PopStyleVar(); - } - - private void DrawAccentLine(ImDrawListPtr drawList, Vector2 headerStartPos, float contentWidth, float headerHeight) - { - ImGui.SetCursorScreenPos(headerStartPos + new Vector2(0f, headerHeight)); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float num = (MathF.Sin(_animationTime * 2f + (float)Math.PI) + 1f) * 0.5f; - drawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(contentWidth, 2f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.6f + num * 0.4f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.2f + num * 0.2f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.2f + num * 0.2f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.75f, 0.55f, 0.95f, 0.6f + num * 0.4f))); - } -} diff --git a/Questionable/Questionable.Windows.ConfigComponents/BlacklistConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/BlacklistConfigComponent.cs deleted file mode 100644 index 287c2da..0000000 --- a/Questionable/Questionable.Windows.ConfigComponents/BlacklistConfigComponent.cs +++ /dev/null @@ -1,248 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Plugin; -using Questionable.Controller; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; -using Questionable.Windows.QuestComponents; -using Questionable.Windows.Utils; - -namespace Questionable.Windows.ConfigComponents; - -internal sealed class BlacklistConfigComponent : ConfigComponent -{ - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly QuestSelector _questSelector; - - private readonly QuestRegistry _questRegistry; - - private readonly QuestFunctions _questFunctions; - - private readonly QuestTooltipComponent _questTooltipComponent; - - private readonly UiUtils _uiUtils; - - public BlacklistConfigComponent(IDalamudPluginInterface pluginInterface, QuestSelector questSelector, QuestFunctions questFunctions, QuestRegistry questRegistry, QuestTooltipComponent questTooltipComponent, UiUtils uiUtils, Configuration configuration) - : base(pluginInterface, configuration) - { - BlacklistConfigComponent blacklistConfigComponent = this; - _pluginInterface = pluginInterface; - _questSelector = questSelector; - _questRegistry = questRegistry; - _questFunctions = questFunctions; - _questTooltipComponent = questTooltipComponent; - _uiUtils = uiUtils; - _questSelector.SuggestionPredicate = (Quest quest) => !configuration.General.BlacklistedQuests.Contains(quest.Id); - _questSelector.DefaultPredicate = (Quest quest) => !quest.Root.Disabled && questFunctions.IsQuestAccepted(quest.Id); - _questSelector.QuestSelected = delegate(Quest quest) - { - configuration.General.BlacklistedQuests.Add(quest.Id); - blacklistConfigComponent.Save(); - }; - } - - public override void DrawTab() - { - using ImRaii.IEndObject endObject = ImRaii.TabItem("Blacklist###QuestBlacklist"); - if (!endObject) - { - return; - } - ImGui.TextWrapped("Blacklisted quests will never be automatically picked up or executed by Questionable."); - ImGui.TextWrapped("Use this to permanently skip specific quests you don't want to do."); - ImGui.Separator(); - DrawCurrentlyAcceptedQuests(); - HashSet blacklistedQuests = base.Configuration.General.BlacklistedQuests; - ImU8String text = new ImU8String(22, 1); - text.AppendLiteral("Blacklisted Quests ("); - text.AppendFormatted(blacklistedQuests.Count); - text.AppendLiteral("):"); - ImGui.Text(text); - using (ImRaii.IEndObject endObject2 = ImRaii.Child("BlacklistedQuestsList", new Vector2(-1f, 200f), border: true)) - { - if (endObject2) - { - if (blacklistedQuests.Count > 0) - { - ElementId elementId = null; - int num = 0; - foreach (ElementId item in blacklistedQuests.OrderBy((ElementId x) => x.ToString())) - { - if (!_questRegistry.TryGetQuest(item, out Quest quest)) - { - ImU8String id = new ImU8String(5, 1); - id.AppendLiteral("Quest"); - id.AppendFormatted(item); - using (ImRaii.PushId(id)) - { - ImGui.AlignTextToFramePadding(); - Vector4 col = new Vector4(0.7f, 0.7f, 0.7f, 1f); - ImU8String text2 = new ImU8String(16, 1); - text2.AppendLiteral("Unknown Quest ("); - text2.AppendFormatted(item); - text2.AppendLiteral(")"); - ImGui.TextColored(in col, text2); - ImGui.SameLine(ImGui.GetContentRegionAvail().X - ImGui.CalcTextSize(FontAwesomeIcon.Times.ToIconString()).X - ImGui.GetStyle().FramePadding.X * 2f); - if (ImGuiComponents.IconButton($"##Remove{num}", FontAwesomeIcon.Times)) - { - elementId = item; - } - } - num++; - continue; - } - ImU8String id2 = new ImU8String(5, 1); - id2.AppendLiteral("Quest"); - id2.AppendFormatted(item); - using (ImRaii.PushId(id2)) - { - (Vector4, FontAwesomeIcon, string) questStyle = _uiUtils.GetQuestStyle(item); - bool flag; - using (_pluginInterface.UiBuilder.IconFontFixedWidthHandle.Push()) - { - ImGui.AlignTextToFramePadding(); - ImGui.TextColored(in questStyle.Item1, questStyle.Item2.ToIconString()); - flag = ImGui.IsItemHovered(); - } - ImGui.SameLine(); - ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(quest.Info.Name); - flag |= ImGui.IsItemHovered(); - if (flag) - { - _questTooltipComponent.Draw(quest.Info); - } - ImGui.SameLine(ImGui.GetContentRegionAvail().X - ImGui.CalcTextSize(FontAwesomeIcon.Times.ToIconString()).X - ImGui.GetStyle().FramePadding.X * 2f); - if (ImGuiComponents.IconButton($"##Remove{num}", FontAwesomeIcon.Times)) - { - elementId = item; - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Remove from blacklist"); - } - } - num++; - } - if (elementId != null) - { - base.Configuration.General.BlacklistedQuests.Remove(elementId); - Save(); - } - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0.7f, 0.7f, 0.7f, 1f)); - ImGui.TextWrapped("No quests blacklisted. Use the dropdown above or add from currently accepted quests."); - ImGui.PopStyleColor(); - } - } - } - _questSelector.DrawSelection(); - if (blacklistedQuests.Count <= 0) - { - return; - } - using (ImRaii.Disabled(!ImGui.IsKeyDown(ImGuiKey.ModCtrl))) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Trash, "Clear All")) - { - base.Configuration.General.BlacklistedQuests.Clear(); - Save(); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("Hold CTRL to enable this button."); - } - } - - private void DrawCurrentlyAcceptedQuests() - { - List currentlyAcceptedQuests = GetCurrentlyAcceptedQuests(); - ImGui.Text("Currently Accepted Quests:"); - using (ImRaii.IEndObject endObject = ImRaii.Child("AcceptedQuestsList", new Vector2(-1f, 100f), border: true)) - { - if (endObject) - { - if (currentlyAcceptedQuests.Count > 0) - { - foreach (Quest item in currentlyAcceptedQuests) - { - ImU8String id = new ImU8String(13, 1); - id.AppendLiteral("AcceptedQuest"); - id.AppendFormatted(item.Id); - using (ImRaii.PushId(id)) - { - (Vector4, FontAwesomeIcon, string) questStyle = _uiUtils.GetQuestStyle(item.Id); - bool flag = false; - bool flag2 = base.Configuration.General.BlacklistedQuests.Contains(item.Id); - using (_pluginInterface.UiBuilder.IconFontFixedWidthHandle.Push()) - { - ImGui.AlignTextToFramePadding(); - ImGui.TextColored(flag2 ? new Vector4(0.5f, 0.5f, 0.5f, 1f) : questStyle.Item1, questStyle.Item2.ToIconString()); - flag = ImGui.IsItemHovered(); - } - ImGui.SameLine(); - ImGui.AlignTextToFramePadding(); - ImGui.TextColored(flag2 ? new Vector4(0.7f, 0.7f, 0.7f, 1f) : new Vector4(1f, 1f, 1f, 1f), item.Info.Name); - if (flag | ImGui.IsItemHovered()) - { - _questTooltipComponent.Draw(item.Info); - } - ImGui.SameLine(ImGui.GetContentRegionAvail().X - ImGui.CalcTextSize(FontAwesomeIcon.Ban.ToIconString()).X - ImGui.GetStyle().FramePadding.X * 2f); - using (ImRaii.Disabled(flag2)) - { - if (ImGuiComponents.IconButton($"##Blacklist{item.Id}", FontAwesomeIcon.Ban)) - { - base.Configuration.General.BlacklistedQuests.Add(item.Id); - Save(); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip(flag2 ? "Quest already blacklisted" : "Add this quest to blacklist"); - } - } - } - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0.7f, 0.7f, 0.7f, 1f)); - ImGui.TextWrapped("No quests currently accepted"); - ImGui.PopStyleColor(); - } - } - } - ImGui.Spacing(); - } - - private List GetCurrentlyAcceptedQuests() - { - List list = new List(); - try - { - foreach (Quest allQuest in _questRegistry.AllQuests) - { - if (_questFunctions.IsQuestAccepted(allQuest.Id)) - { - list.Add(allQuest); - } - } - list.Sort((Quest a, Quest b) => string.Compare(a.Info.Name, b.Info.Name, StringComparison.OrdinalIgnoreCase)); - } - catch (Exception) - { - list.Clear(); - } - return list; - } -} diff --git a/Questionable/Questionable.Windows.ConfigComponents/DebugConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/DebugConfigComponent.cs index ce8b997..f5a4f8b 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/DebugConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/DebugConfigComponent.cs @@ -22,8 +22,6 @@ internal sealed class DebugConfigComponent : ConfigComponent } ImGui.TextColored(ImGuiColors.DalamudRed, "Enabling any option here may cause unexpected behavior. Use at your own risk."); ImGui.Separator(); - DrawChocoboSettings(); - ImGui.Separator(); bool v = base.Configuration.Advanced.DebugOverlay; if (ImGui.Checkbox("Enable debug overlay", ref v)) { @@ -54,23 +52,15 @@ internal sealed class DebugConfigComponent : ConfigComponent base.Configuration.Advanced.AdditionalStatusInformation = v4; Save(); } - bool v5 = base.Configuration.Advanced.DisablePartyWatchdog; - if (ImGui.Checkbox("Disable Party Watchdog", ref v5)) - { - base.Configuration.Advanced.DisablePartyWatchdog = v5; - Save(); - } - ImGui.SameLine(); - ImGuiComponents.HelpMarker("The Party Watchdog stops Questionable when entering certain zones with other party members, or when entering unsupported content. Disabling this allows Questionable to continue working while in a party, but may cause unexpected behavior in group content."); ImGui.Separator(); ImGui.Text("AutoDuty Settings"); using (ImRaii.PushIndent()) { ImGui.AlignTextToFramePadding(); - bool v6 = base.Configuration.Advanced.DisableAutoDutyBareMode; - if (ImGui.Checkbox("Use Pre-Loop/Loop/Post-Loop settings", ref v6)) + bool v5 = base.Configuration.Advanced.DisableAutoDutyBareMode; + if (ImGui.Checkbox("Use Pre-Loop/Loop/Post-Loop settings", ref v5)) { - base.Configuration.Advanced.DisableAutoDutyBareMode = v6; + base.Configuration.Advanced.DisableAutoDutyBareMode = v5; Save(); } ImGui.SameLine(); @@ -80,97 +70,46 @@ internal sealed class DebugConfigComponent : ConfigComponent ImGui.Text("Quest/Interaction Skips"); using (ImRaii.PushIndent()) { - bool v7 = base.Configuration.Advanced.SkipAetherCurrents; - if (ImGui.Checkbox("Don't pick up aether currents/aether current quests", ref v7)) + bool v6 = base.Configuration.Advanced.SkipAetherCurrents; + if (ImGui.Checkbox("Don't pick up aether currents/aether current quests", ref v6)) { - base.Configuration.Advanced.SkipAetherCurrents = v7; + base.Configuration.Advanced.SkipAetherCurrents = v6; Save(); } ImGui.SameLine(); ImGuiComponents.HelpMarker("If not done during the MSQ by Questionable, you have to manually pick up any missed aether currents/quests. There is no way to automatically pick up all missing aether currents."); - bool v8 = base.Configuration.Advanced.SkipClassJobQuests; - if (ImGui.Checkbox("Don't pick up class/job/role quests", ref v8)) + bool v7 = base.Configuration.Advanced.SkipClassJobQuests; + if (ImGui.Checkbox("Don't pick up class/job/role quests", ref v7)) { - base.Configuration.Advanced.SkipClassJobQuests = v8; + base.Configuration.Advanced.SkipClassJobQuests = v7; Save(); } ImGui.SameLine(); ImGuiComponents.HelpMarker("Class and job skills for A Realm Reborn, Heavensward and (for the Lv70 skills) Stormblood are locked behind quests. Not recommended if you plan on queueing for instances with duty finder/party finder.\n\nNote: This setting is ignored for the first class/job quest if your character is not high enough level to start the level 4 MSQ."); - bool v9 = base.Configuration.Advanced.SkipARealmRebornHardModePrimals; - if (ImGui.Checkbox("Don't pick up ARR hard mode primal quests", ref v9)) + bool v8 = base.Configuration.Advanced.SkipARealmRebornHardModePrimals; + if (ImGui.Checkbox("Don't pick up ARR hard mode primal quests", ref v8)) { - base.Configuration.Advanced.SkipARealmRebornHardModePrimals = v9; + base.Configuration.Advanced.SkipARealmRebornHardModePrimals = v8; Save(); } ImGui.SameLine(); ImGuiComponents.HelpMarker("Hard mode Ifrit/Garuda/Titan are required for the Patch 2.5 quest 'Good Intentions' and to start Heavensward."); - bool v10 = base.Configuration.Advanced.SkipCrystalTowerRaids; - if (ImGui.Checkbox("Don't pick up Crystal Tower quests", ref v10)) + bool v9 = base.Configuration.Advanced.SkipCrystalTowerRaids; + if (ImGui.Checkbox("Don't pick up Crystal Tower quests", ref v9)) { - base.Configuration.Advanced.SkipCrystalTowerRaids = v10; + base.Configuration.Advanced.SkipCrystalTowerRaids = v9; Save(); } ImGui.SameLine(); ImGuiComponents.HelpMarker("Crystal Tower raids are required for the Patch 2.55 quest 'A Time to Every Purpose' and to start Heavensward."); - bool v11 = base.Configuration.Advanced.PreventQuestCompletion; - if (ImGui.Checkbox("Prevent quest completion", ref v11)) + bool v10 = base.Configuration.Advanced.PreventQuestCompletion; + if (ImGui.Checkbox("Prevent quest completion", ref v10)) { - base.Configuration.Advanced.PreventQuestCompletion = v11; + base.Configuration.Advanced.PreventQuestCompletion = v10; Save(); } ImGui.SameLine(); ImGuiComponents.HelpMarker("When enabled, Questionable will not attempt to turn-in and complete quests. This will do everything automatically except the final turn-in step."); } } - - private void DrawChocoboSettings() - { - ImGui.Text("Chocobo Settings"); - using (ImRaii.PushIndent()) - { - ImGui.AlignTextToFramePadding(); - ImGui.Text("Chocobo Name:"); - ImGui.SameLine(); - string buf = base.Configuration.Advanced.ChocoboName; - ImGui.SetNextItemWidth(200f); - if (ImGui.InputText("##ChocoboName", ref buf, 20)) - { - string chocoboName = FormatChocoboName(buf); - base.Configuration.Advanced.ChocoboName = chocoboName; - Save(); - } - if (!string.IsNullOrEmpty(buf) && buf.Length < 2) - { - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.DalamudRed, "Name must be at least 2 characters"); - } - ImGui.SameLine(); - ImGuiComponents.HelpMarker("The name to give your chocobo during the 'My Little Chocobo' quest.\nMust be 2-20 characters. First letter will be capitalized.\nIf left empty, defaults to 'Kweh'."); - } - } - - private static string FormatChocoboName(string name) - { - if (string.IsNullOrEmpty(name)) - { - return string.Empty; - } - name = name.Trim(); - if (name.Length == 0) - { - return string.Empty; - } - string text = name.Substring(0, 1).ToUpperInvariant(); - string text2; - if (name.Length <= 1) - { - text2 = string.Empty; - } - else - { - string text3 = name; - text2 = text3.Substring(1, text3.Length - 1).ToLowerInvariant(); - } - return text + text2; - } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/DutyConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/DutyConfigComponent.cs index 426c4c3..c91dbaa 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/DutyConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/DutyConfigComponent.cs @@ -27,80 +27,33 @@ internal sealed class DutyConfigComponent : ConfigComponent private const string DutyClipboardPrefix = "qst:duty:"; - private const string ModePrefix = "M:"; - - private static readonly string[] DutyModeLabels = new string[3] { "Duty Support", "Unsync (Solo)", "Unsync (Party)" }; - private readonly QuestRegistry _questRegistry; private readonly AutoDutyIpc _autoDutyIpc; private readonly Dictionary> _contentFinderConditionNames; - private readonly Dictionary> _allTrialNames; - - private readonly Dictionary> _allNormalRaidNames; - - private readonly Dictionary> _allAllianceRaidNames; - public DutyConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration, IDataManager dataManager, QuestRegistry questRegistry, AutoDutyIpc autoDutyIpc, TerritoryData territoryData) : base(pluginInterface, configuration) { _questRegistry = questRegistry; _autoDutyIpc = autoDutyIpc; - _contentFinderConditionNames = (from x in dataManager.GetExcelSheet() - where x.RowId != 0 && x.Content.RowId != 0 && x.ContentType.RowId == 2 + _contentFinderConditionNames = (from x in dataManager.GetExcelSheet() + where x.RowId != 0 && !x.Unknown16 + orderby x.Unknown15 + select x.Content.ValueNullable into x + where x.HasValue + select x.Value into x select new { Expansion = (EExpansionVersion)x.TerritoryType.Value.ExVersion.RowId, CfcId = x.RowId, - Name = (territoryData.GetContentFinderCondition(x.RowId)?.Name ?? x.Name.ToDalamudString().ToString()), + Name = (territoryData.GetContentFinderCondition(x.RowId)?.Name ?? "?"), TerritoryId = x.TerritoryType.RowId, + ContentType = x.ContentType.RowId, Level = x.ClassJobLevelRequired, SortKey = x.SortKey } into x - orderby x.SortKey - group x by x.Expansion).ToDictionary(x => x.Key, x => x.Select(y => new DutyInfo(y.CfcId, y.TerritoryId, ConfigComponent.FormatLevel(y.Level) + " " + y.Name)).ToList()); - _allTrialNames = (from x in dataManager.GetExcelSheet() - where x.RowId != 0 && x.Content.RowId != 0 && x.ContentType.RowId == 4 - select new - { - Expansion = (EExpansionVersion)x.TerritoryType.Value.ExVersion.RowId, - CfcId = x.RowId, - Name = (territoryData.GetContentFinderCondition(x.RowId)?.Name ?? x.Name.ToDalamudString().ToString()), - TerritoryId = x.TerritoryType.RowId, - Level = x.ClassJobLevelRequired, - SortKey = x.SortKey - } into x - orderby x.SortKey - group x by x.Expansion).ToDictionary(x => x.Key, x => x.Select(y => new DutyInfo(y.CfcId, y.TerritoryId, ConfigComponent.FormatLevel(y.Level) + " " + y.Name)).ToList()); - _allNormalRaidNames = (from x in dataManager.GetExcelSheet() - where x.RowId != 0 && x.Content.RowId != 0 && x.ContentType.RowId == 5 - where x.ContentMemberType.RowId == 3 - select new - { - Expansion = (EExpansionVersion)x.TerritoryType.Value.ExVersion.RowId, - CfcId = x.RowId, - Name = (territoryData.GetContentFinderCondition(x.RowId)?.Name ?? x.Name.ToDalamudString().ToString()), - TerritoryId = x.TerritoryType.RowId, - Level = x.ClassJobLevelRequired, - SortKey = x.SortKey - } into x - orderby x.SortKey - group x by x.Expansion).ToDictionary(x => x.Key, x => x.Select(y => new DutyInfo(y.CfcId, y.TerritoryId, ConfigComponent.FormatLevel(y.Level) + " " + y.Name)).ToList()); - _allAllianceRaidNames = (from x in dataManager.GetExcelSheet() - where x.RowId != 0 && x.Content.RowId != 0 && x.ContentType.RowId == 5 - where x.ContentMemberType.RowId == 4 - select new - { - Expansion = (EExpansionVersion)x.TerritoryType.Value.ExVersion.RowId, - CfcId = x.RowId, - Name = (territoryData.GetContentFinderCondition(x.RowId)?.Name ?? x.Name.ToDalamudString().ToString()), - TerritoryId = x.TerritoryType.RowId, - Level = x.ClassJobLevelRequired, - SortKey = x.SortKey - } into x - orderby x.SortKey group x by x.Expansion).ToDictionary(x => x.Key, x => x.Select(y => new DutyInfo(y.CfcId, y.TerritoryId, ConfigComponent.FormatLevel(y.Level) + " " + y.Name)).ToList()); } @@ -119,40 +72,6 @@ internal sealed class DutyConfigComponent : ConfigComponent } ImGui.SameLine(); ImGuiComponents.HelpMarker("The combat module used for this is configured by AutoDuty, ignoring whichever selection you've made in Questionable's \"General\" configuration."); - using (ImRaii.Disabled(!v)) - { - using (ImRaii.PushIndent(ImGui.GetFrameHeight() + ImGui.GetStyle().ItemInnerSpacing.X)) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed)) - { - ImGui.TextUnformatted("Work in Progress:"); - ImGui.BulletText("Duty Support mode is limited."); - ImGui.BulletText("Unsynced modes require being significantly overleveled or having a high-level party member."); - ImGui.BulletText("Most players will need to use Duty Support mode when progressing normally through the game."); - } - } - ImGui.Spacing(); - bool v2 = base.Configuration.Duties.RunLevelingModeWhenUnderleveled; - if (ImGui.Checkbox("Run AutoDuty Leveling mode when underleveled for MSQ", ref v2)) - { - base.Configuration.Duties.RunLevelingModeWhenUnderleveled = v2; - Save(); - } - ImGui.SameLine(); - ImGuiComponents.HelpMarker("When enabled, Questionable will automatically run AutoDuty's Leveling mode when your character is underleveled for the next Main Scenario Quest.\n\nLeveling mode runs the highest available dungeon for your level to gain XP.\n\nThis is useful for characters without the Road to 90 XP buff who may not have enough XP to continue the MSQ."); - ImGui.Spacing(); - ImGui.Text("Default duty mode:"); - ImGui.SameLine(); - int currentItem = (int)base.Configuration.Duties.DefaultDutyMode; - ImGui.SetNextItemWidth(200f); - if (ImGui.Combo((ImU8String)"##DefaultDutyMode", ref currentItem, (ReadOnlySpan)DutyModeLabels, DutyModeLabels.Length)) - { - base.Configuration.Duties.DefaultDutyMode = (EDutyMode)currentItem; - Save(); - } - ImGui.SameLine(); - ImGuiComponents.HelpMarker("\ufffd Duty Support: Run with NPC party members (level synced)\n\ufffd Unsync (Solo): Run alone at your current level (unsynced)\n\ufffd Unsync (Party): Run with your party at current level (unsynced)\n\nYou can override this setting for individual duties below."); - } ImGui.Separator(); using (ImRaii.Disabled(!v)) { @@ -163,37 +82,8 @@ internal sealed class DutyConfigComponent : ConfigComponent Util.OpenLink("https://docs.google.com/spreadsheets/d/151RlpqRcCpiD_VbQn6Duf-u-S71EP7d0mx3j1PDNoNA/edit?pli=1#gid=0"); } ImGui.Separator(); - ImGui.Text("You can override the settings for each individual duty:"); - using ImRaii.IEndObject endObject2 = ImRaii.TabBar("DutyTypeTabs"); - if (endObject2) - { - using (ImRaii.IEndObject endObject3 = ImRaii.TabItem("Dungeons")) - { - if (endObject3) - { - DrawConfigTable(v, _contentFinderConditionNames); - } - } - using (ImRaii.IEndObject endObject4 = ImRaii.TabItem("Trials")) - { - if (endObject4) - { - DrawConfigTable(v, _allTrialNames); - } - } - using (ImRaii.IEndObject endObject5 = ImRaii.TabItem("Normal Raids")) - { - if (endObject5) - { - DrawConfigTable(v, _allNormalRaidNames); - } - } - using ImRaii.IEndObject endObject6 = ImRaii.TabItem("Alliance Raids"); - if (endObject6) - { - DrawConfigTable(v, _allAllianceRaidNames); - } - } + ImGui.Text("You can override the settings for each individual dungeon/trial:"); + DrawConfigTable(v); DrawEnableAllButton(); ImGui.SameLine(); DrawClipboardButtons(); @@ -202,9 +92,9 @@ internal sealed class DutyConfigComponent : ConfigComponent } } - private void DrawConfigTable(bool runInstancedContentWithAutoDuty, Dictionary> contentByExpansion) + private void DrawConfigTable(bool runInstancedContentWithAutoDuty) { - using ImRaii.IEndObject endObject = ImRaii.Child("DutyConfiguration", new Vector2(725f, 400f), border: true); + using ImRaii.IEndObject endObject = ImRaii.Child("DutyConfiguration", new Vector2(650f, 400f), border: true); if (!endObject) { return; @@ -213,7 +103,7 @@ internal sealed class DutyConfigComponent : ConfigComponent for (int i = 0; i < values.Length; i++) { EExpansionVersion eExpansionVersion = values[i]; - (int enabledCount, int totalCount) dutyCountsForExpansion = GetDutyCountsForExpansion(eExpansionVersion, contentByExpansion); + (int enabledCount, int totalCount) dutyCountsForExpansion = GetDutyCountsForExpansion(eExpansionVersion); int item = dutyCountsForExpansion.enabledCount; int item2 = dutyCountsForExpansion.totalCount; string obj = ((item2 > 0) ? $"{eExpansionVersion.ToFriendlyString()} ({item}/{item2})" : eExpansionVersion.ToFriendlyString()); @@ -229,154 +119,89 @@ internal sealed class DutyConfigComponent : ConfigComponent ImU8String table = new ImU8String(6, 1); table.AppendLiteral("Duties"); table.AppendFormatted(eExpansionVersion); - using ImRaii.IEndObject endObject2 = ImRaii.Table(table, 3, ImGuiTableFlags.SizingFixedFit); + using ImRaii.IEndObject endObject2 = ImRaii.Table(table, 2, ImGuiTableFlags.SizingFixedFit); if (!ImRaii.IEndObject.op_True(endObject2)) { continue; } ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Enabled", ImGuiTableColumnFlags.WidthFixed, 200f); - ImGui.TableSetupColumn("Mode", ImGuiTableColumnFlags.WidthFixed, 150f); - if (!contentByExpansion.TryGetValue(eExpansionVersion, out List value)) + ImGui.TableSetupColumn("Options", ImGuiTableColumnFlags.WidthFixed, 200f); + if (!_contentFinderConditionNames.TryGetValue(eExpansionVersion, out List value)) { continue; } - foreach (DutyInfo item3 in value) + foreach (var (num3, value2, text2) in value) { - item3.Deconstruct(out uint CfcId, out uint TerritoryId, out string Name); - uint num = CfcId; - uint value2 = TerritoryId; - string text = Name; - DutyOptions dutyOptions; - bool flag = _questRegistry.TryGetDutyByContentFinderConditionId(num, out dutyOptions); - ImGui.TableNextRow(); - string[] array; - int currentItem; - if (flag) + if (!_questRegistry.TryGetDutyByContentFinderConditionId(num3, out DutyOptions dutyOptions)) { - array = (dutyOptions.Enabled ? SupportedCfcOptions : UnsupportedCfcOptions); - currentItem = 0; - if (base.Configuration.Duties.WhitelistedDutyCfcIds.Contains(num)) - { - currentItem = 1; - } - if (base.Configuration.Duties.BlacklistedDutyCfcIds.Contains(num)) - { - currentItem = 2; - } + continue; } - else + ImGui.TableNextRow(); + string[] items = (dutyOptions.Enabled ? SupportedCfcOptions : UnsupportedCfcOptions); + int currentItem = 0; + if (base.Configuration.Duties.WhitelistedDutyCfcIds.Contains(num3)) { - array = new string[2] { "Disabled", "Enabled" }; - currentItem = (base.Configuration.Duties.WhitelistedDutyCfcIds.Contains(num) ? 1 : 0); + currentItem = 1; + } + if (base.Configuration.Duties.BlacklistedDutyCfcIds.Contains(num3)) + { + currentItem = 2; } if (ImGui.TableNextColumn()) { ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted(text); + ImGui.TextUnformatted(text2); if (ImGui.IsItemHovered() && base.Configuration.Advanced.AdditionalStatusInformation) { using ImRaii.IEndObject endObject3 = ImRaii.Tooltip(); if (endObject3) { - ImGui.TextUnformatted(text); + ImGui.TextUnformatted(text2); ImGui.Separator(); - ImU8String text2 = new ImU8String(13, 1); - text2.AppendLiteral("TerritoryId: "); - text2.AppendFormatted(value2); - ImGui.BulletText(text2); - ImU8String text3 = new ImU8String(26, 1); - text3.AppendLiteral("ContentFinderConditionId: "); - text3.AppendFormatted(num); - ImGui.BulletText(text3); - if (flag) - { - ImGui.BulletText("Duty Support: Available"); - } + table = new ImU8String(13, 1); + table.AppendLiteral("TerritoryId: "); + table.AppendFormatted(value2); + ImGui.BulletText(table); + table = new ImU8String(26, 1); + table.AppendLiteral("ContentFinderConditionId: "); + table.AppendFormatted(num3); + ImGui.BulletText(table); } } - if (runInstancedContentWithAutoDuty && !_autoDutyIpc.HasPath(num)) + if (runInstancedContentWithAutoDuty && !_autoDutyIpc.HasPath(num3)) { ImGuiComponents.HelpMarker("This duty is not supported by AutoDuty", FontAwesomeIcon.Times, ImGuiColors.DalamudRed); } - else if (flag && dutyOptions.Notes.Count > 0) + else if (dutyOptions.Notes.Count > 0) { ConfigComponent.DrawNotes(dutyOptions.Enabled, dutyOptions.Notes); } } - if (ImGui.TableNextColumn()) - { - ImU8String id = new ImU8String(16, 1); - id.AppendLiteral("##DungeonEnabled"); - id.AppendFormatted(num); - using (ImRaii.PushId(id)) - { - ImGui.SetNextItemWidth(200f); - if (ImGui.Combo((ImU8String)string.Empty, ref currentItem, (ReadOnlySpan)array, array.Length)) - { - base.Configuration.Duties.WhitelistedDutyCfcIds.Remove(num); - base.Configuration.Duties.BlacklistedDutyCfcIds.Remove(num); - if (flag) - { - switch (currentItem) - { - case 1: - base.Configuration.Duties.WhitelistedDutyCfcIds.Add(num); - break; - case 2: - base.Configuration.Duties.BlacklistedDutyCfcIds.Add(num); - break; - } - } - else if (currentItem == 1) - { - base.Configuration.Duties.WhitelistedDutyCfcIds.Add(num); - } - Save(); - } - } - } if (!ImGui.TableNextColumn()) { continue; } - ImU8String id2 = new ImU8String(13, 1); - id2.AppendLiteral("##DungeonMode"); - id2.AppendFormatted(num); - using (ImRaii.PushId(id2)) + table = new ImU8String(9, 1); + table.AppendLiteral("##Dungeon"); + table.AppendFormatted(num3); + using (ImRaii.PushId(table)) { - EDutyMode value3; - bool flag2 = base.Configuration.Duties.DutyModeOverrides.TryGetValue(num, out value3); - EDutyMode num2 = (flag2 ? value3 : ((EDutyMode)(-1))); - Name = "Use Default"; - string[] dutyModeLabels = DutyModeLabels; - int num3 = 0; - string[] array2 = new string[1 + dutyModeLabels.Length]; - array2[num3] = Name; - num3++; - ReadOnlySpan readOnlySpan = new ReadOnlySpan(dutyModeLabels); - readOnlySpan.CopyTo(new Span(array2).Slice(num3, readOnlySpan.Length)); - num3 += readOnlySpan.Length; - string[] array3 = array2; - int currentItem2 = (int)(num2 + 1); - ImGui.SetNextItemWidth(150f); - if (ImGui.Combo((ImU8String)string.Empty, ref currentItem2, (ReadOnlySpan)array3, array3.Length)) + ImGui.SetNextItemWidth(200f); + if (ImGui.Combo(string.Empty, ref currentItem, in items, items.Length)) { - if (currentItem2 == 0) + base.Configuration.Duties.WhitelistedDutyCfcIds.Remove(num3); + base.Configuration.Duties.BlacklistedDutyCfcIds.Remove(num3); + switch (currentItem) { - base.Configuration.Duties.DutyModeOverrides.Remove(num); - } - else - { - base.Configuration.Duties.DutyModeOverrides[num] = (EDutyMode)(currentItem2 - 1); + case 1: + base.Configuration.Duties.WhitelistedDutyCfcIds.Add(num3); + break; + case 2: + base.Configuration.Duties.BlacklistedDutyCfcIds.Add(num3); + break; } Save(); } - if (ImGui.IsItemHovered()) - { - EDutyMode eDutyMode = (flag2 ? value3 : base.Configuration.Duties.DefaultDutyMode); - ImGui.SetTooltip(flag2 ? ("Override: " + DutyModeLabels[(int)eDutyMode]) : ("Using default: " + DutyModeLabels[(int)eDutyMode])); - } } } } @@ -388,9 +213,9 @@ internal sealed class DutyConfigComponent : ConfigComponent } } - private (int enabledCount, int totalCount) GetDutyCountsForExpansion(EExpansionVersion expansion, Dictionary> contentByExpansion) + private (int enabledCount, int totalCount) GetDutyCountsForExpansion(EExpansionVersion expansion) { - if (!contentByExpansion.TryGetValue(expansion, out List value)) + if (!_contentFinderConditionNames.TryGetValue(expansion, out List value)) { return (enabledCount: 0, totalCount: 0); } @@ -406,14 +231,6 @@ internal sealed class DutyConfigComponent : ConfigComponent num++; } } - else - { - num2++; - if (base.Configuration.Duties.WhitelistedDutyCfcIds.Contains(num5)) - { - num++; - } - } } return (enabledCount: num, totalCount: num2); } @@ -424,11 +241,14 @@ internal sealed class DutyConfigComponent : ConfigComponent { base.Configuration.Duties.BlacklistedDutyCfcIds.Clear(); base.Configuration.Duties.WhitelistedDutyCfcIds.Clear(); - foreach (List item2 in _contentFinderConditionNames.Values.Concat>(_allTrialNames.Values).Concat>(_allNormalRaidNames.Values).Concat>(_allAllianceRaidNames.Values)) + foreach (List value in _contentFinderConditionNames.Values) { - foreach (var (item, _, _) in item2) + foreach (var (num3, _, _) in value) { - base.Configuration.Duties.WhitelistedDutyCfcIds.Add(item); + if (_questRegistry.TryGetDutyByContentFinderConditionId(num3, out DutyOptions _)) + { + base.Configuration.Duties.WhitelistedDutyCfcIds.Add(num3); + } } } Save(); @@ -441,14 +261,13 @@ internal sealed class DutyConfigComponent : ConfigComponent private void DrawClipboardButtons() { - using (ImRaii.Disabled(base.Configuration.Duties.WhitelistedDutyCfcIds.Count + base.Configuration.Duties.BlacklistedDutyCfcIds.Count + base.Configuration.Duties.DutyModeOverrides.Count == 0)) + using (ImRaii.Disabled(base.Configuration.Duties.WhitelistedDutyCfcIds.Count + base.Configuration.Duties.BlacklistedDutyCfcIds.Count == 0)) { if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Copy, "Export to clipboard")) { IEnumerable first = base.Configuration.Duties.WhitelistedDutyCfcIds.Select((uint x) => $"{"+"}{x}"); IEnumerable second = base.Configuration.Duties.BlacklistedDutyCfcIds.Select((uint x) => $"{"-"}{x}"); - IEnumerable second2 = base.Configuration.Duties.DutyModeOverrides.Select((KeyValuePair x) => $"{"M:"}{x.Key}:{x.Value}"); - ImGui.SetClipboardText("qst:duty:" + Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Join(";", first.Concat(second).Concat(second2))))); + ImGui.SetClipboardText("qst:duty:" + Convert.ToBase64String(Encoding.UTF8.GetBytes(string.Join(";", first.Concat(second))))); } } ImGui.SameLine(); @@ -463,7 +282,6 @@ internal sealed class DutyConfigComponent : ConfigComponent string text2 = Encoding.UTF8.GetString(Convert.FromBase64String(text)); base.Configuration.Duties.WhitelistedDutyCfcIds.Clear(); base.Configuration.Duties.BlacklistedDutyCfcIds.Clear(); - base.Configuration.Duties.DutyModeOverrides.Clear(); string[] array = text2.Split(";"); foreach (string text3 in array) { @@ -475,22 +293,7 @@ internal sealed class DutyConfigComponent : ConfigComponent { base.Configuration.Duties.BlacklistedDutyCfcIds.Add(result2); } - if (!text3.StartsWith("M:", StringComparison.InvariantCulture)) - { - continue; - } - ReadOnlySpan span = text3.AsSpan("M:".Length); - int num2 = span.IndexOf(':'); - if (num2 > 0 && uint.TryParse(span.Slice(0, num2), CultureInfo.InvariantCulture, out var result3)) - { - int num3 = num2 + 1; - if (int.TryParse(span.Slice(num3, span.Length - num3), CultureInfo.InvariantCulture, out var result4) && Enum.IsDefined(typeof(EDutyMode), result4)) - { - base.Configuration.Duties.DutyModeOverrides[result3] = (EDutyMode)result4; - } - } } - Save(); } } @@ -502,8 +305,6 @@ internal sealed class DutyConfigComponent : ConfigComponent { base.Configuration.Duties.WhitelistedDutyCfcIds.Clear(); base.Configuration.Duties.BlacklistedDutyCfcIds.Clear(); - base.Configuration.Duties.DutyModeOverrides.Clear(); - base.Configuration.Duties.DefaultDutyMode = EDutyMode.Support; Save(); } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs index cb63d08..e649253 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Numerics; using System.Runtime.InteropServices; @@ -35,20 +34,10 @@ internal sealed class GeneralConfigComponent : ConfigComponent private readonly string[] _grandCompanyNames = new string[4] { "None (manually pick quest)", "Maelstrom", "Twin Adder", "Immortal Flames" }; - private readonly string[] _msqPriorityNames = new string[3] { "Always (MSQ first)", "After Tracked (MSQ last)", "Manual (never auto-accept MSQ)" }; - private readonly EClassJob[] _classJobIds; private readonly string[] _classJobNames; - private string _mountSearchText = string.Empty; - - private bool _mountComboJustOpened; - - private string _classJobSearchText = string.Empty; - - private bool _classJobComboJustOpened; - public GeneralConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration, IDataManager dataManager, ClassJobUtils classJobUtils, QuestRegistry questRegistry, TerritoryData territoryData) : base(pluginInterface, configuration) { @@ -56,9 +45,10 @@ internal sealed class GeneralConfigComponent : ConfigComponent _territoryData = territoryData; List<(uint, string)> source = (from x in dataManager.GetExcelSheet() where x.RowId != 0 && x.Icon > 0 - select (MountId: x.RowId, Name: CapitalizeName(x.Singular.ExtractText())) into x + select (MountId: x.RowId, Name: x.Singular.ToString()) into x where !string.IsNullOrEmpty(x.Name) - select x).OrderBy<(uint, string), string>(((uint MountId, string Name) x) => x.Name, StringComparer.OrdinalIgnoreCase).ToList(); + orderby x.Name + select x).ToList(); _mountIds = DefaultMounts.Select<(uint, string), uint>(((uint Id, string Name) x) => x.Id).Concat(source.Select<(uint, string), uint>(((uint MountId, string Name) x) => x.MountId)).ToArray(); _mountNames = DefaultMounts.Select<(uint, string), string>(((uint Id, string Name) x) => x.Name).Concat(source.Select<(uint, string), string>(((uint MountId, string Name) x) => x.Name)).ToArray(); List sortedClassJobs = classJobUtils.SortedClassJobs.Select(((EClassJob ClassJob, int Category) x) => x.ClassJob).ToList(); @@ -72,27 +62,6 @@ internal sealed class GeneralConfigComponent : ConfigComponent _classJobNames = DefaultClassJobs.Select<(EClassJob, string), string>(((EClassJob ClassJob, string Name) x) => x.Name).Concat(list.Select((EClassJob x) => x.ToFriendlyString())).ToArray(); } - private static string CapitalizeName(string text) - { - if (string.IsNullOrEmpty(text)) - { - return text; - } - if (string.Equals(text, text.ToLowerInvariant(), StringComparison.Ordinal)) - { - return CultureInfo.InvariantCulture.TextInfo.ToTitleCase(text); - } - string[] array = text.Split(' '); - for (int i = 0; i < array.Length; i++) - { - if (array[i].Length > 0 && char.IsLower(array[i][0])) - { - array[i] = char.ToUpperInvariant(array[i][0]) + array[i].Substring(1); - } - } - return string.Join(" ", array); - } - public override void DrawTab() { using ImRaii.IEndObject endObject = ImRaii.TabItem("General###General"); @@ -101,136 +70,40 @@ internal sealed class GeneralConfigComponent : ConfigComponent return; } int currentItem = (int)base.Configuration.General.CombatModule; - if (ImGui.Combo((ImU8String)"Preferred Combat Module", ref currentItem, (ReadOnlySpan)_combatModuleNames, _combatModuleNames.Length)) + if (ImGui.Combo("Preferred Combat Module", ref currentItem, in _combatModuleNames, _combatModuleNames.Length)) { base.Configuration.General.CombatModule = (Configuration.ECombatModule)currentItem; Save(); } - int num = Array.FindIndex(_mountIds, (uint x) => x == base.Configuration.General.MountId); - if (num == -1) + int currentItem2 = Array.FindIndex(_mountIds, (uint x) => x == base.Configuration.General.MountId); + if (currentItem2 == -1) { - num = 0; - base.Configuration.General.MountId = _mountIds[num]; + currentItem2 = 0; + base.Configuration.General.MountId = _mountIds[currentItem2]; Save(); } - string text = ((num >= 0 && num < _mountNames.Length) ? _mountNames[num] : "Unknown"); - if (ImGui.BeginCombo("Preferred Mount", text, ImGuiComboFlags.HeightLarge)) + if (ImGui.Combo("Preferred Mount", ref currentItem2, in _mountNames, _mountNames.Length)) { - if (!_mountComboJustOpened) - { - ImGui.SetKeyboardFocusHere(); - _mountComboJustOpened = true; - } - ImGui.SetNextItemWidth(-1f); - ImGui.InputTextWithHint("##MountSearch", "Search mounts...", ref _mountSearchText, 256); - ImGui.Separator(); - using (ImRaii.IEndObject endObject2 = ImRaii.Child("##MountScrollArea", new Vector2(0f, 300f), border: false)) - { - if (endObject2) - { - string value = _mountSearchText.ToUpperInvariant(); - for (int num2 = 0; num2 < _mountNames.Length; num2++) - { - if (string.IsNullOrEmpty(_mountSearchText) || _mountNames[num2].ToUpperInvariant().Contains(value, StringComparison.Ordinal)) - { - bool flag = num2 == num; - if (ImGui.Selectable(_mountNames[num2], flag)) - { - base.Configuration.General.MountId = _mountIds[num2]; - Save(); - _mountSearchText = string.Empty; - ImGui.CloseCurrentPopup(); - } - if (flag) - { - ImGui.SetItemDefaultFocus(); - } - } - } - } - } - ImGui.EndCombo(); - } - else - { - _mountComboJustOpened = false; - } - int currentItem2 = (int)base.Configuration.General.GrandCompany; - if (ImGui.Combo((ImU8String)"Preferred Grand Company", ref currentItem2, (ReadOnlySpan)_grandCompanyNames, _grandCompanyNames.Length)) - { - base.Configuration.General.GrandCompany = (FFXIVClientStructs.FFXIV.Client.UI.Agent.GrandCompany)currentItem2; + base.Configuration.General.MountId = _mountIds[currentItem2]; Save(); } - int currentItem3 = (int)base.Configuration.General.MsqPriority; - if (ImGui.Combo((ImU8String)"MSQ Priority", ref currentItem3, (ReadOnlySpan)_msqPriorityNames, _msqPriorityNames.Length)) + int currentItem3 = (int)base.Configuration.General.GrandCompany; + if (ImGui.Combo("Preferred Grand Company", ref currentItem3, in _grandCompanyNames, _grandCompanyNames.Length)) { - base.Configuration.General.MsqPriority = (Configuration.EMsqPriorityMode)currentItem3; + base.Configuration.General.GrandCompany = (FFXIVClientStructs.FFXIV.Client.UI.Agent.GrandCompany)currentItem3; Save(); } - ImGui.SameLine(); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - using (ImRaii.Tooltip()) - { - ImGui.Text("Controls when the Main Scenario Quest (MSQ) is automatically accepted:"); - ImGui.Spacing(); - ImGui.BulletText("Always: Auto-accept MSQ immediately"); - ImGui.BulletText("After Tracked: Complete accepted quests first, then pick up MSQ"); - ImGui.BulletText("Manual: Never auto-accept MSQ, only do manually accepted quests"); - } - } - int num3 = Array.IndexOf(_classJobIds, base.Configuration.General.CombatJob); - if (num3 == -1) + int currentItem4 = Array.IndexOf(_classJobIds, base.Configuration.General.CombatJob); + if (currentItem4 == -1) { base.Configuration.General.CombatJob = EClassJob.Adventurer; Save(); - num3 = 0; + currentItem4 = 0; } - string text2 = ((num3 >= 0 && num3 < _classJobNames.Length) ? _classJobNames[num3] : "Unknown"); - if (ImGui.BeginCombo("Preferred Combat Job", text2, ImGuiComboFlags.HeightLarge)) + if (ImGui.Combo("Preferred Combat Job", ref currentItem4, in _classJobNames, _classJobNames.Length)) { - if (!_classJobComboJustOpened) - { - ImGui.SetKeyboardFocusHere(); - _classJobComboJustOpened = true; - } - ImGui.SetNextItemWidth(-1f); - ImGui.InputTextWithHint("##CombatJobSearch", "Search combat jobs...", ref _classJobSearchText, 256); - ImGui.Separator(); - using (ImRaii.IEndObject endObject3 = ImRaii.Child("##CombatJobScrollArea", new Vector2(0f, 300f), border: false)) - { - if (endObject3) - { - string value2 = _classJobSearchText.ToUpperInvariant(); - for (int num4 = 0; num4 < _classJobNames.Length; num4++) - { - if (string.IsNullOrEmpty(_classJobSearchText) || _classJobNames[num4].ToUpperInvariant().Contains(value2, StringComparison.Ordinal)) - { - bool flag2 = num4 == num3; - if (ImGui.Selectable(_classJobNames[num4], flag2)) - { - base.Configuration.General.CombatJob = _classJobIds[num4]; - Save(); - _classJobSearchText = string.Empty; - ImGui.CloseCurrentPopup(); - } - if (flag2) - { - ImGui.SetItemDefaultFocus(); - } - } - } - } - } - ImGui.EndCombo(); - } - else - { - _classJobComboJustOpened = false; + base.Configuration.General.CombatJob = _classJobIds[currentItem4]; + Save(); } ImGui.Separator(); ImGui.Text("UI"); @@ -243,33 +116,21 @@ internal sealed class GeneralConfigComponent : ConfigComponent Save(); } bool v2 = base.Configuration.General.UseEscToCancelQuesting; - if (ImGui.Checkbox("Double tap ESC to cancel questing/movement", ref v2)) + if (ImGui.Checkbox("Use ESC to cancel questing/movement", ref v2)) { base.Configuration.General.UseEscToCancelQuesting = v2; Save(); } - bool v3 = base.Configuration.General.StopOnPlayerInput; - if (ImGui.Checkbox("Stop automation when manually moving character", ref v3)) + bool v3 = base.Configuration.General.ShowIncompleteSeasonalEvents; + if (ImGui.Checkbox("Show details for incomplete seasonal events", ref v3)) { - base.Configuration.General.StopOnPlayerInput = v3; + base.Configuration.General.ShowIncompleteSeasonalEvents = v3; Save(); } - bool v4 = base.Configuration.General.ShowIncompleteSeasonalEvents; - if (ImGui.Checkbox("Show details for incomplete seasonal events", ref v4)) + bool v4 = base.Configuration.General.HideSeasonalEventsFromJournalProgress; + if (ImGui.Checkbox("Hide Seasonal Events from Journal Progress", ref v4)) { - base.Configuration.General.ShowIncompleteSeasonalEvents = v4; - Save(); - } - bool v5 = base.Configuration.General.HideSeasonalEventsFromJournalProgress; - if (ImGui.Checkbox("Hide Seasonal Events from Journal Progress", ref v5)) - { - base.Configuration.General.HideSeasonalEventsFromJournalProgress = v5; - Save(); - } - bool v6 = base.Configuration.General.ShowChangelogOnUpdate; - if (ImGui.Checkbox("Show changelog window when plugin updates", ref v6)) - { - base.Configuration.General.ShowChangelogOnUpdate = v6; + base.Configuration.General.HideSeasonalEventsFromJournalProgress = v4; Save(); } } @@ -277,76 +138,16 @@ internal sealed class GeneralConfigComponent : ConfigComponent ImGui.Text("Questing"); using (ImRaii.PushIndent()) { - bool v7 = base.Configuration.General.AutoSolveQte; - if (ImGui.Checkbox("Automatically solve Quick Time Events (QTEs)", ref v7)) + bool v5 = base.Configuration.General.ConfigureTextAdvance; + if (ImGui.Checkbox("Automatically configure TextAdvance with the recommended settings", ref v5)) { - base.Configuration.General.AutoSolveQte = v7; + base.Configuration.General.ConfigureTextAdvance = v5; Save(); } - ImGui.SameLine(); - using (ImRaii.PushFont(UiBuilder.IconFont)) + bool v6 = base.Configuration.General.SkipLowPriorityDuties; + if (ImGui.Checkbox("Unlock certain optional dungeons and raids (instead of waiting for completion)", ref v6)) { - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - using (ImRaii.Tooltip()) - { - ImGui.Text("Automatically mashes the button during Active Time Maneuver (ATM)"); - ImGui.Text("prompts that appear in certain duties and quest battles."); - } - } - bool v8 = base.Configuration.General.AutoSnipe; - if (ImGui.Checkbox("Automatically complete snipe quests", ref v8)) - { - base.Configuration.General.AutoSnipe = v8; - Save(); - } - ImGui.SameLine(); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - using (ImRaii.Tooltip()) - { - ImGui.Text("Automatically completes sniping minigames introduced in Stormblood."); - ImGui.Text("When enabled, snipe targets are instantly hit without manual aiming."); - } - } - bool v9 = base.Configuration.General.CinemaMode; - if (ImGui.Checkbox("Cinema Mode (watch cutscenes)", ref v9)) - { - base.Configuration.General.CinemaMode = v9; - Save(); - } - ImGui.SameLine(); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - using (ImRaii.Tooltip()) - { - ImGui.Text("When enabled, cutscenes will NOT be automatically skipped."); - ImGui.Text("This allows you to experience the story while Questionable"); - ImGui.Text("handles navigation, combat, and other gameplay automation."); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.7f, 1f), "Recommended for first-time story playthroughs."); - } - } - bool v10 = base.Configuration.General.ConfigureTextAdvance; - if (ImGui.Checkbox("Automatically configure TextAdvance with the recommended settings", ref v10)) - { - base.Configuration.General.ConfigureTextAdvance = v10; - Save(); - } - bool v11 = base.Configuration.General.SkipLowPriorityDuties; - if (ImGui.Checkbox("Unlock certain optional dungeons and raids (instead of waiting for completion)", ref v11)) - { - base.Configuration.General.SkipLowPriorityDuties = v11; + base.Configuration.General.SkipLowPriorityDuties = v6; Save(); } ImGui.SameLine(); @@ -366,18 +167,18 @@ internal sealed class GeneralConfigComponent : ConfigComponent { if (_territoryData.TryGetContentFinderCondition(lowPriorityContentFinderConditionQuest.ContentFinderConditionId, out TerritoryData.ContentFinderConditionData contentFinderConditionData)) { - ImU8String text3 = new ImU8String(0, 1); - text3.AppendFormatted(contentFinderConditionData.Name); - ImGui.BulletText(text3); + ImU8String text = new ImU8String(0, 1); + text.AppendFormatted(contentFinderConditionData.Name); + ImGui.BulletText(text); } } } } ImGui.Spacing(); - bool v12 = base.Configuration.General.AutoStepRefreshEnabled; - if (ImGui.Checkbox("Automatically refresh quest steps when stuck", ref v12)) + bool v7 = base.Configuration.General.AutoStepRefreshEnabled; + if (ImGui.Checkbox("Automatically refresh quest steps when stuck", ref v7)) { - base.Configuration.General.AutoStepRefreshEnabled = v12; + base.Configuration.General.AutoStepRefreshEnabled = v7; Save(); } ImGui.SameLine(); @@ -393,69 +194,37 @@ internal sealed class GeneralConfigComponent : ConfigComponent ImGui.Text("This helps resume automated quest completion when interruptions occur."); } } - using (ImRaii.Disabled(!v12)) + using (ImRaii.Disabled(!v7)) { ImGui.Indent(); - int v13 = base.Configuration.General.AutoStepRefreshDelaySeconds; + int v8 = base.Configuration.General.AutoStepRefreshDelaySeconds; ImGui.SetNextItemWidth(150f); - if (ImGui.SliderInt("Refresh delay (seconds)", ref v13, 10, 180)) + if (ImGui.SliderInt("Refresh delay (seconds)", ref v8, 10, 180)) { - base.Configuration.General.AutoStepRefreshDelaySeconds = v13; + base.Configuration.General.AutoStepRefreshDelaySeconds = v8; Save(); } Vector4 col = new Vector4(0.7f, 0.7f, 0.7f, 1f); - ImU8String text4 = new ImU8String(77, 1); - text4.AppendLiteral("Quest steps will refresh automatically after "); - text4.AppendFormatted(v13); - text4.AppendLiteral(" seconds if no progress is made."); - ImGui.TextColored(in col, text4); + ImU8String text = new ImU8String(77, 1); + text.AppendLiteral("Quest steps will refresh automatically after "); + text.AppendFormatted(v8); + text.AppendLiteral(" seconds if no progress is made."); + ImGui.TextColored(in col, text); ImGui.Unindent(); } ImGui.Spacing(); ImGui.Separator(); ImGui.Text("Priority Quest Management"); - bool v14 = base.Configuration.General.PersistPriorityQuestsBetweenSessions; - if (ImGui.Checkbox("Save priority quests between sessions", ref v14)) + bool v9 = base.Configuration.General.ClearPriorityQuestsOnLogout; + if (ImGui.Checkbox("Clear priority quests on character logout", ref v9)) { - base.Configuration.General.PersistPriorityQuestsBetweenSessions = v14; + base.Configuration.General.ClearPriorityQuestsOnLogout = v9; Save(); } - ImGui.SameLine(); - using (ImRaii.PushFont(UiBuilder.IconFont)) + bool v10 = base.Configuration.General.ClearPriorityQuestsOnCompletion; + if (ImGui.Checkbox("Remove priority quests when completed", ref v10)) { - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - using (ImRaii.Tooltip()) - { - ImGui.Text("When enabled, your priority quest list will be saved and restored"); - ImGui.Text("when the plugin reloads or the game restarts."); - } - } - bool v15 = base.Configuration.General.ClearPriorityQuestsOnLogout; - if (ImGui.Checkbox("Clear priority quests on character logout", ref v15)) - { - base.Configuration.General.ClearPriorityQuestsOnLogout = v15; - Save(); - } - ImGui.SameLine(); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - using (ImRaii.Tooltip()) - { - ImGui.Text("Clears the priority queue when your character logs out."); - ImGui.Text("This also clears the saved list if persistence is enabled."); - } - } - bool v16 = base.Configuration.General.ClearPriorityQuestsOnCompletion; - if (ImGui.Checkbox("Remove priority quests when completed", ref v16)) - { - base.Configuration.General.ClearPriorityQuestsOnCompletion = v16; + base.Configuration.General.ClearPriorityQuestsOnCompletion = v10; Save(); } ImGui.SameLine(); @@ -480,12 +249,16 @@ internal sealed class GeneralConfigComponent : ConfigComponent int num = 1; List<(uint, string)> list = new List<(uint, string)>(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = (0u, "Mount Roulette"); + Span<(uint, string)> span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = (0u, "Mount Roulette"); DefaultMounts = list; - num = 1; - List<(EClassJob, string)> list2 = new List<(EClassJob, string)>(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = (EClassJob.Adventurer, "Auto (highest level/item level)"); + index = 1; + List<(EClassJob, string)> list2 = new List<(EClassJob, string)>(index); + CollectionsMarshal.SetCount(list2, index); + Span<(EClassJob, string)> span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = (EClassJob.Adventurer, "Auto (highest level/item level)"); DefaultClassJobs = list2; } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/NotificationConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/NotificationConfigComponent.cs index c39f0db..569d43e 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/NotificationConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/NotificationConfigComponent.cs @@ -1,31 +1,23 @@ using System; using System.Linq; -using System.Numerics; using Dalamud.Bindings.ImGui; using Dalamud.Game.Text; +using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin; using Dalamud.Utility; +using Questionable.External; namespace Questionable.Windows.ConfigComponents; internal sealed class NotificationConfigComponent : ConfigComponent { - private readonly XivChatType[] _xivChatTypes; + private readonly NotificationMasterIpc _notificationMasterIpc; - private readonly string[] _chatTypeNames; - - private string _chatChannelSearchText = string.Empty; - - private bool _chatChannelComboJustOpened; - - public NotificationConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration) + public NotificationConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration, NotificationMasterIpc notificationMasterIpc) : base(pluginInterface, configuration) { - _xivChatTypes = (from x in Enum.GetValues() - where x != XivChatType.StandardEmote - select x).ToArray(); - _chatTypeNames = _xivChatTypes.Select((XivChatType t) => t.GetAttribute()?.FancyName ?? t.ToString()).ToArray(); + _notificationMasterIpc = notificationMasterIpc; } public override void DrawTab() @@ -45,52 +37,34 @@ internal sealed class NotificationConfigComponent : ConfigComponent { using (ImRaii.PushIndent()) { - int num = Array.IndexOf(_xivChatTypes, base.Configuration.Notifications.ChatType); - if (num == -1) + XivChatType[] array = (from x in Enum.GetValues() + where x != XivChatType.StandardEmote + select x).ToArray(); + int currentItem = Array.IndexOf(array, base.Configuration.Notifications.ChatType); + string[] items = array.Select((XivChatType t) => t.GetAttribute()?.FancyName ?? t.ToString()).ToArray(); + if (ImGui.Combo("Chat channel", ref currentItem, in items, items.Length)) { - num = 0; + base.Configuration.Notifications.ChatType = array[currentItem]; + Save(); } - string text = ((num >= 0 && num < _chatTypeNames.Length) ? _chatTypeNames[num] : "Unknown"); - if (ImGui.BeginCombo("Chat channel", text, ImGuiComboFlags.HeightLarge)) + ImGui.Separator(); + ImGui.Text("NotificationMaster settings"); + ImGui.SameLine(); + ImGuiComponents.HelpMarker("Requires the plugin 'NotificationMaster' to be installed."); + using (ImRaii.Disabled(!_notificationMasterIpc.Enabled)) { - if (!_chatChannelComboJustOpened) + bool v2 = base.Configuration.Notifications.ShowTrayMessage; + if (ImGui.Checkbox("Show tray notification", ref v2)) { - ImGui.SetKeyboardFocusHere(); - _chatChannelComboJustOpened = true; + base.Configuration.Notifications.ShowTrayMessage = v2; + Save(); } - ImGui.SetNextItemWidth(-1f); - ImGui.InputTextWithHint("##ChatChannelSearch", "Search chat channels...", ref _chatChannelSearchText, 256); - ImGui.Separator(); - using (ImRaii.IEndObject endObject2 = ImRaii.Child("##ChatChannelScrollArea", new Vector2(0f, 300f), border: false)) + bool v3 = base.Configuration.Notifications.FlashTaskbar; + if (ImGui.Checkbox("Flash taskbar icon", ref v3)) { - if (endObject2) - { - string value = _chatChannelSearchText.ToUpperInvariant(); - for (int i = 0; i < _chatTypeNames.Length; i++) - { - if (string.IsNullOrEmpty(_chatChannelSearchText) || _chatTypeNames[i].ToUpperInvariant().Contains(value, StringComparison.Ordinal)) - { - bool flag = i == num; - if (ImGui.Selectable(_chatTypeNames[i], flag)) - { - base.Configuration.Notifications.ChatType = _xivChatTypes[i]; - Save(); - _chatChannelSearchText = string.Empty; - ImGui.CloseCurrentPopup(); - } - if (flag) - { - ImGui.SetItemDefaultFocus(); - } - } - } - } + base.Configuration.Notifications.FlashTaskbar = v3; + Save(); } - ImGui.EndCombo(); - } - else - { - _chatChannelComboJustOpened = false; } } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs index a77aec5..10ceffd 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Numerics; +using System.Runtime.InteropServices; using Dalamud.Bindings.ImGui; using Dalamud.Interface; using Dalamud.Interface.Colors; @@ -12,6 +13,7 @@ using Dalamud.Plugin; using Dalamud.Plugin.Services; using Dalamud.Utility; using Questionable.Controller; +using Questionable.External; namespace Questionable.Windows.ConfigComponents; @@ -23,9 +25,9 @@ internal sealed class PluginConfigComponent : ConfigComponent private static readonly IReadOnlyList RequiredPlugins = new global::_003C_003Ez__ReadOnlyArray(new PluginInfo[3] { + new PluginInfo("vnavmesh", "vnavmesh", "vnavmesh handles the navigation within a zone, moving\nyour character to the next quest-related objective.", new Uri("https://github.com/awgil/ffxiv_navmesh/"), new Uri("https://puni.sh/api/repository/veyn")), new PluginInfo("Lifestream", "Lifestream", "Used to travel to aethernet shards in cities.", new Uri("https://github.com/NightmareXIV/Lifestream"), new Uri("https://github.com/NightmareXIV/MyDalamudPlugins/raw/main/pluginmaster.json")), - new PluginInfo("TextAdvance", "TextAdvance", "Automatically accepts and turns in quests, skips cutscenes\nand dialogue.", new Uri("https://github.com/NightmareXIV/TextAdvance"), new Uri("https://github.com/NightmareXIV/MyDalamudPlugins/raw/main/pluginmaster.json")), - new PluginInfo("vnavmesh", "vnavmesh", "vnavmesh handles the navigation within a zone, moving\nyour character to the next quest-related objective.", new Uri("https://github.com/awgil/ffxiv_navmesh/"), new Uri("https://puni.sh/api/repository/veyn")) + new PluginInfo("TextAdvance", "TextAdvance", "Automatically accepts and turns in quests, skips cutscenes\nand dialogue.", new Uri("https://github.com/NightmareXIV/TextAdvance"), new Uri("https://github.com/NightmareXIV/MyDalamudPlugins/raw/main/pluginmaster.json")) }); private static readonly ReadOnlyDictionary CombatPlugins = new Dictionary @@ -34,13 +36,13 @@ internal sealed class PluginConfigComponent : ConfigComponent Questionable.Configuration.ECombatModule.BossMod, new PluginInfo("Boss Mod (VBM)", "BossMod", string.Empty, new Uri("https://github.com/awgil/ffxiv_bossmod"), new Uri("https://puni.sh/api/repository/veyn")) }, - { - Questionable.Configuration.ECombatModule.RotationSolverReborn, - new PluginInfo("Rotation Solver Reborn", "RotationSolver", string.Empty, new Uri("https://github.com/FFXIV-CombatReborn/RotationSolverReborn"), new Uri("https://raw.githubusercontent.com/FFXIV-CombatReborn/CombatRebornRepo/main/pluginmaster.json")) - }, { Questionable.Configuration.ECombatModule.WrathCombo, new PluginInfo("Wrath Combo", "WrathCombo", string.Empty, new Uri("https://github.com/PunishXIV/WrathCombo"), new Uri("https://puni.sh/api/plugins")) + }, + { + Questionable.Configuration.ECombatModule.RotationSolverReborn, + new PluginInfo("Rotation Solver Reborn", "RotationSolver", string.Empty, new Uri("https://github.com/FFXIV-CombatReborn/RotationSolverReborn"), new Uri("https://raw.githubusercontent.com/FFXIV-CombatReborn/CombatRebornRepo/main/pluginmaster.json")) } }.AsReadOnly(); @@ -56,7 +58,7 @@ internal sealed class PluginConfigComponent : ConfigComponent private readonly ICommandManager _commandManager; - public PluginConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration, CombatController combatController, UiUtils uiUtils, ICommandManager commandManager) + public PluginConfigComponent(IDalamudPluginInterface pluginInterface, Configuration configuration, CombatController combatController, UiUtils uiUtils, ICommandManager commandManager, AutomatonIpc automatonIpc, PandorasBoxIpc pandorasBoxIpc) : base(pluginInterface, configuration) { _configuration = configuration; @@ -64,12 +66,35 @@ internal sealed class PluginConfigComponent : ConfigComponent _pluginInterface = pluginInterface; _uiUtils = uiUtils; _commandManager = commandManager; - _recommendedPlugins = new global::_003C_003Ez__ReadOnlyArray(new PluginInfo[3] + PluginInfo[] obj = new PluginInfo[5] { new PluginInfo("Artisan", "Artisan", "Handles automatic crafting for quests that require\ncrafted items.", new Uri("https://github.com/PunishXIV/Artisan"), new Uri("https://puni.sh/api/plugins")), - new PluginInfo("AutoDuty", "AutoDuty", "Automatically handles dungeon and trial completion during\nMain Scenario Quest progression.", new Uri("https://github.com/erdelf/AutoDuty"), new Uri("https://puni.sh/api/repository/erdelf")), - new PluginInfo("QuestMap", "QuestMap", "Displays quest objectives and markers on the map for\nbetter navigation and tracking.", new Uri("https://github.com/rreminy/QuestMap"), null) - }); + null, + null, + null, + null + }; + Uri websiteUri = new Uri("https://github.com/Jaksuhn/Automaton"); + Uri dalamudRepositoryUri = new Uri("https://puni.sh/api/repository/croizat"); + int num = 1; + List list = new List(num); + CollectionsMarshal.SetCount(list, num); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new PluginDetailInfo("'Sniper no sniping' enabled", "Automatically completes sniping tasks introduced in Stormblood", () => automatonIpc.IsAutoSnipeEnabled); + obj[1] = new PluginInfo("CBT (formerly known as Automaton)", "Automaton", "Automaton is a collection of automation-related tweaks.", websiteUri, dalamudRepositoryUri, "/cbt", list); + Uri websiteUri2 = new Uri("https://github.com/PunishXIV/PandorasBox"); + Uri dalamudRepositoryUri2 = new Uri("https://puni.sh/api/plugins"); + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + span = CollectionsMarshal.AsSpan(list2); + num = 0; + span[num] = new PluginDetailInfo("'Auto Active Time Maneuver' enabled", "Automatically completes active time maneuvers in\nsingle player instances, trials and raids\"", () => pandorasBoxIpc.IsAutoActiveTimeManeuverEnabled); + obj[2] = new PluginInfo("Pandora's Box", "PandorasBox", "Pandora's Box is a collection of tweaks.", websiteUri2, dalamudRepositoryUri2, "/pandora", list2); + obj[3] = new PluginInfo("QuestMap", "QuestMap", "Displays quest objectives and markers on the map for\nbetter navigation and tracking.", new Uri("https://github.com/rreminy/QuestMap"), null); + obj[4] = new PluginInfo("NotificationMaster", "NotificationMaster", "Sends a configurable out-of-game notification if a quest\nrequires manual actions.", new Uri("https://github.com/NightmareXIV/NotificationMaster"), null); + _recommendedPlugins = new global::_003C_003Ez__ReadOnlyArray(obj); } public override void DrawTab() @@ -122,8 +147,8 @@ internal sealed class PluginConfigComponent : ConfigComponent _pluginInterface.SavePluginConfig(_configuration); } allRequiredInstalled &= DrawCombatPlugin(Questionable.Configuration.ECombatModule.BossMod, checklistPadding); - allRequiredInstalled &= DrawCombatPlugin(Questionable.Configuration.ECombatModule.RotationSolverReborn, checklistPadding); allRequiredInstalled &= DrawCombatPlugin(Questionable.Configuration.ECombatModule.WrathCombo, checklistPadding); + allRequiredInstalled &= DrawCombatPlugin(Questionable.Configuration.ECombatModule.RotationSolverReborn, checklistPadding); } } ImGui.Spacing(); diff --git a/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs index ff24160..000a3eb 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs @@ -265,6 +265,7 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent { if (quest.Root.Disabled) { + _logger.LogDebug("Disabling quest battle for quest {QuestId}, quest is disabled", questId); return (Enabled: false, Options: singlePlayerDutyOptions); } QuestStep questStep = (from x in quest.AllSteps() @@ -276,6 +277,7 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent } return (Enabled: true, Options: questStep.SinglePlayerDutyOptions ?? singlePlayerDutyOptions); } + _logger.LogDebug("Disabling quest battle for quest {QuestId}, unknown quest", questId); return (Enabled: false, Options: singlePlayerDutyOptions); } @@ -639,7 +641,7 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent foreach (SinglePlayerDutyInfo dutyInfo in dutyInfos) { ImGui.TableNextRow(); - string[] array = (dutyInfo.EnabledByDefault ? SupportedCfcOptions : UnsupportedCfcOptions); + string[] items = (dutyInfo.EnabledByDefault ? SupportedCfcOptions : UnsupportedCfcOptions); int currentItem = 0; if (base.Configuration.SinglePlayerDuties.WhitelistedSinglePlayerDutyCfcIds.Contains(dutyInfo.ContentFinderConditionId)) { @@ -649,6 +651,7 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent { currentItem = 2; } + ImU8String text; if (ImGui.TableNextColumn()) { ImGui.AlignTextToFramePadding(); @@ -660,14 +663,14 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent { ImGui.TextUnformatted(dutyInfo.Name); ImGui.Separator(); - ImU8String text = new ImU8String(13, 1); + text = new ImU8String(13, 1); text.AppendLiteral("TerritoryId: "); text.AppendFormatted(dutyInfo.TerritoryId); ImGui.BulletText(text); - ImU8String text2 = new ImU8String(26, 1); - text2.AppendLiteral("ContentFinderConditionId: "); - text2.AppendFormatted(dutyInfo.ContentFinderConditionId); - ImGui.BulletText(text2); + text = new ImU8String(26, 1); + text.AppendLiteral("ContentFinderConditionId: "); + text.AppendFormatted(dutyInfo.ContentFinderConditionId); + ImGui.BulletText(text); } } if (!dutyInfo.Enabled) @@ -683,15 +686,15 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent { continue; } - ImU8String id = new ImU8String(6, 1); - id.AppendLiteral("##Duty"); - id.AppendFormatted(dutyInfo.ContentFinderConditionId); - using (ImRaii.PushId(id)) + text = new ImU8String(6, 1); + text.AppendLiteral("##Duty"); + text.AppendFormatted(dutyInfo.ContentFinderConditionId); + using (ImRaii.PushId(text)) { using (ImRaii.Disabled(!dutyInfo.Enabled)) { ImGui.SetNextItemWidth(200f); - if (ImGui.Combo((ImU8String)string.Empty, ref currentItem, (ReadOnlySpan)array, array.Length)) + if (ImGui.Combo(string.Empty, ref currentItem, in items, items.Length)) { base.Configuration.SinglePlayerDuties.WhitelistedSinglePlayerDutyCfcIds.Remove(dutyInfo.ContentFinderConditionId); base.Configuration.SinglePlayerDuties.BlacklistedSinglePlayerDutyCfcIds.Remove(dutyInfo.ContentFinderConditionId); @@ -713,7 +716,7 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent private static ImRaii.IEndObject BeginChildArea() { - return ImRaii.Child("DutyConfiguration", new Vector2(725f, 400f), border: true); + return ImRaii.Child("DutyConfiguration", new Vector2(675f, 400f), border: true); } private void DrawEnableAllButton() @@ -898,11 +901,16 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent List<(EClassJob, string)> list = new List<(EClassJob, string)>(num); CollectionsMarshal.SetCount(list, num); Span<(EClassJob, string)> span = CollectionsMarshal.AsSpan(list); - span[0] = (EClassJob.Paladin, "Tank Role Quests"); - span[1] = (EClassJob.WhiteMage, "Healer Role Quests"); - span[2] = (EClassJob.Lancer, "Melee Role Quests"); - span[3] = (EClassJob.Bard, "Physical Ranged Role Quests"); - span[4] = (EClassJob.BlackMage, "Magical Ranged Role Quests"); + int num2 = 0; + span[num2] = (EClassJob.Paladin, "Tank Role Quests"); + num2++; + span[num2] = (EClassJob.WhiteMage, "Healer Role Quests"); + num2++; + span[num2] = (EClassJob.Lancer, "Melee Role Quests"); + num2++; + span[num2] = (EClassJob.Bard, "Physical Ranged Role Quests"); + num2++; + span[num2] = (EClassJob.BlackMage, "Magical Ranged Role Quests"); RoleQuestCategories = list; } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/StopConditionComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/StopConditionComponent.cs index cf173f4..f532e5f 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/StopConditionComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/StopConditionComponent.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Numerics; using Dalamud.Bindings.ImGui; using Dalamud.Interface; -using Dalamud.Interface.Colors; using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin; @@ -20,8 +19,6 @@ namespace Questionable.Windows.ConfigComponents; internal sealed class StopConditionComponent : ConfigComponent { - private static readonly string[] StopModeNames = new string[3] { "Off", "Pause", "Stop" }; - private readonly IDalamudPluginInterface _pluginInterface; private readonly QuestSelector _questSelector; @@ -34,15 +31,11 @@ internal sealed class StopConditionComponent : ConfigComponent private readonly UiUtils _uiUtils; - private readonly IObjectTable _objectTable; - private readonly IClientState _clientState; private readonly QuestController _questController; - private ElementId? _draggedItem; - - public StopConditionComponent(IDalamudPluginInterface pluginInterface, QuestSelector questSelector, QuestFunctions questFunctions, QuestRegistry questRegistry, QuestTooltipComponent questTooltipComponent, UiUtils uiUtils, IObjectTable objectTable, IClientState clientState, QuestController questController, Configuration configuration) + public StopConditionComponent(IDalamudPluginInterface pluginInterface, QuestSelector questSelector, QuestFunctions questFunctions, QuestRegistry questRegistry, QuestTooltipComponent questTooltipComponent, UiUtils uiUtils, IClientState clientState, QuestController questController, Configuration configuration) : base(pluginInterface, configuration) { StopConditionComponent stopConditionComponent = this; @@ -52,7 +45,6 @@ internal sealed class StopConditionComponent : ConfigComponent _questFunctions = questFunctions; _questTooltipComponent = questTooltipComponent; _uiUtils = uiUtils; - _objectTable = objectTable; _clientState = clientState; _questController = questController; _questSelector.SuggestionPredicate = (Quest quest) => configuration.Stop.QuestsToStopAfter.All((ElementId x) => x != quest.Id); @@ -60,7 +52,6 @@ internal sealed class StopConditionComponent : ConfigComponent _questSelector.QuestSelected = delegate(Quest quest) { configuration.Stop.QuestsToStopAfter.Add(quest.Id); - configuration.Stop.QuestStopModes[quest.Id.ToString()] = Questionable.Configuration.EStopConditionMode.Stop; stopConditionComponent.Save(); }; } @@ -73,35 +64,31 @@ internal sealed class StopConditionComponent : ConfigComponent return; } bool v = base.Configuration.Stop.Enabled; - if (ImGui.Checkbox("Enable stop conditions", ref v)) + if (ImGui.Checkbox("Stop Questionable when any of the conditions below are met", ref v)) { base.Configuration.Stop.Enabled = v; Save(); } - ImGui.SameLine(); - ImGuiComponents.HelpMarker("Pause: Stops automation when condition is met, but allows resuming past it.\nStop: True stop, blocks automation from starting/resuming if condition is already met."); ImGui.Separator(); using (ImRaii.Disabled(!v)) { ImGui.Text("Stop when character level reaches:"); - int currentItem = (int)base.Configuration.Stop.LevelStopMode; - ImGui.SetNextItemWidth(100f); - if (ImGui.Combo((ImU8String)"##LevelMode", ref currentItem, (ReadOnlySpan)StopModeNames, StopModeNames.Length)) + bool v2 = base.Configuration.Stop.LevelToStopAfter; + if (ImGui.Checkbox("Enable level stop condition", ref v2)) { - base.Configuration.Stop.LevelStopMode = (Configuration.EStopConditionMode)currentItem; + base.Configuration.Stop.LevelToStopAfter = v2; Save(); } - ImGui.SameLine(); - using (ImRaii.Disabled(base.Configuration.Stop.LevelStopMode == Questionable.Configuration.EStopConditionMode.Off)) + using (ImRaii.Disabled(!v2)) { int data = base.Configuration.Stop.TargetLevel; ImGui.SetNextItemWidth(100f); - if (ImGui.InputInt("Target level", ref data, 1, 5)) + if (ImGui.InputInt("Stop at level", ref data, 1, 5)) { base.Configuration.Stop.TargetLevel = Math.Max(1, Math.Min(100, data)); Save(); } - int num = _objectTable.LocalPlayer?.Level ?? 0; + int num = _clientState.LocalPlayer?.Level ?? 0; if (num > 0) { ImGui.SameLine(); @@ -113,20 +100,18 @@ internal sealed class StopConditionComponent : ConfigComponent } } ImGui.Separator(); - ImGui.Text("Stop on quest sequence (global):"); - int currentItem2 = (int)base.Configuration.Stop.SequenceStopMode; - ImGui.SetNextItemWidth(100f); - if (ImGui.Combo((ImU8String)"##SequenceMode", ref currentItem2, (ReadOnlySpan)StopModeNames, StopModeNames.Length)) + ImGui.Text("Stop when quest sequence reaches:"); + bool v3 = base.Configuration.Stop.SequenceToStopAfter; + if (ImGui.Checkbox("Enable quest sequence stop condition", ref v3)) { - base.Configuration.Stop.SequenceStopMode = (Configuration.EStopConditionMode)currentItem2; + base.Configuration.Stop.SequenceToStopAfter = v3; Save(); } - ImGui.SameLine(); - using (ImRaii.Disabled(base.Configuration.Stop.SequenceStopMode == Questionable.Configuration.EStopConditionMode.Off)) + using (ImRaii.Disabled(!v3)) { int data2 = base.Configuration.Stop.TargetSequence; ImGui.SetNextItemWidth(100f); - if (ImGui.InputInt("Target sequence", ref data2, 1, 1)) + if (ImGui.InputInt("Stop at sequence", ref data2, 1, 1)) { base.Configuration.Stop.TargetSequence = Math.Max(0, Math.Min(255, data2)); Save(); @@ -136,16 +121,15 @@ internal sealed class StopConditionComponent : ConfigComponent { int sequence = currentQuest.Sequence; ImGui.SameLine(); - ImU8String text2 = new ImU8String(11, 1); - text2.AppendLiteral("(Current: "); - text2.AppendFormatted(sequence); - text2.AppendLiteral(")"); - ImGui.TextDisabled(text2); + ImU8String text = new ImU8String(11, 1); + text.AppendLiteral("(Current: "); + text.AppendFormatted(sequence); + text.AppendLiteral(")"); + ImGui.TextDisabled(text); } } - ImGui.TextWrapped("Note: Individual quest sequences below override this global setting."); ImGui.Separator(); - ImGui.Text("Stop when completing quests (or reaching specific sequences):"); + ImGui.Text("Stop when completing any of the quests selected below:"); DrawCurrentlyAcceptedQuests(); _questSelector.DrawSelection(); List questsToStopAfter = base.Configuration.Stop.QuestsToStopAfter; @@ -155,12 +139,6 @@ internal sealed class StopConditionComponent : ConfigComponent { if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Trash, "Clear All")) { - foreach (ElementId item in questsToStopAfter) - { - string key = item.ToString(); - base.Configuration.Stop.QuestSequences.Remove(key); - base.Configuration.Stop.QuestStopModes.Remove(key); - } base.Configuration.Stop.QuestsToStopAfter.Clear(); Save(); } @@ -170,172 +148,52 @@ internal sealed class StopConditionComponent : ConfigComponent ImGui.SetTooltip("Hold CTRL to enable this button."); } ImGui.Separator(); - ImGui.Text("(Drag arrow buttons to reorder)"); } - DrawStopQuestList(questsToStopAfter); - } - } - - private void DrawStopQuestList(List questsToStopAfter) - { - Quest quest = null; - Quest quest2 = null; - int index = 0; - float x = ImGui.GetContentRegionAvail().X; - List<(Vector2, Vector2)> list = new List<(Vector2, Vector2)>(); - for (int i = 0; i < questsToStopAfter.Count; i++) - { - Vector2 item = ImGui.GetCursorScreenPos() + new Vector2(0f, (0f - ImGui.GetStyle().ItemSpacing.Y) / 2f); - ElementId elementId = questsToStopAfter[i]; - if (!_questRegistry.TryGetQuest(elementId, out Quest quest3)) + Quest quest = null; + for (int i = 0; i < questsToStopAfter.Count; i++) { - continue; - } - ImU8String id = new ImU8String(5, 1); - id.AppendLiteral("Quest"); - id.AppendFormatted(elementId); - using (ImRaii.PushId(id)) - { - ImGui.AlignTextToFramePadding(); - ImU8String text = new ImU8String(1, 1); - text.AppendFormatted(i + 1); - text.AppendLiteral("."); - ImGui.Text(text); - ImGui.SameLine(); - (Vector4, FontAwesomeIcon, string) questStyle = _uiUtils.GetQuestStyle(elementId); - bool flag; - using (_pluginInterface.UiBuilder.IconFontFixedWidthHandle.Push()) + ElementId elementId = questsToStopAfter[i]; + if (!_questRegistry.TryGetQuest(elementId, out Quest quest2)) { + continue; + } + ImU8String text = new ImU8String(5, 1); + text.AppendLiteral("Quest"); + text.AppendFormatted(elementId); + using (ImRaii.PushId(text)) + { + (Vector4, FontAwesomeIcon, string) questStyle = _uiUtils.GetQuestStyle(elementId); + bool flag; + using (_pluginInterface.UiBuilder.IconFontFixedWidthHandle.Push()) + { + ImGui.AlignTextToFramePadding(); + ImGui.TextColored(in questStyle.Item1, questStyle.Item2.ToIconString()); + flag = ImGui.IsItemHovered(); + } + ImGui.SameLine(); ImGui.AlignTextToFramePadding(); - ImGui.TextColored(in questStyle.Item1, questStyle.Item2.ToIconString()); - flag = ImGui.IsItemHovered(); - } - ImGui.SameLine(); - ImGui.AlignTextToFramePadding(); - ImGui.Text(quest3.Info.Name); - flag |= ImGui.IsItemHovered(); - if (flag) - { - _questTooltipComponent.Draw(quest3.Info); - } - string text2 = elementId.ToString(); - int currentItem = (int)base.Configuration.Stop.QuestStopModes.GetValueOrDefault(text2, Questionable.Configuration.EStopConditionMode.Stop); - ImGui.SameLine(); - ImGui.SetNextItemWidth(70f); - ImU8String label = new ImU8String(6, 1); - label.AppendLiteral("##Mode"); - label.AppendFormatted(text2); - if (ImGui.Combo(label, ref currentItem, (ReadOnlySpan)StopModeNames, StopModeNames.Length)) - { - base.Configuration.Stop.QuestStopModes[text2] = (Configuration.EStopConditionMode)currentItem; - Save(); - } - ImGui.SameLine(); - base.Configuration.Stop.QuestSequences.TryGetValue(text2, out var value); - bool v = value.HasValue; - ImU8String label2 = new ImU8String(8, 1); - label2.AppendLiteral("##UseSeq"); - label2.AppendFormatted(text2); - if (ImGui.Checkbox(label2, ref v)) - { - if (v) + ImGui.Text(quest2.Info.Name); + flag |= ImGui.IsItemHovered(); + if (flag) { - base.Configuration.Stop.QuestSequences[text2] = 1; + _questTooltipComponent.Draw(quest2.Info); } - else - { - base.Configuration.Stop.QuestSequences.Remove(text2); - } - Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Stop at specific sequence (unchecked = stop on quest completion)"); - } - using (ImRaii.Disabled(!v)) - { - ImGui.SameLine(); - ImGui.Text("Seq:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(85f); - int data = value ?? 1; - ImU8String label3 = new ImU8String(10, 1); - label3.AppendLiteral("##SeqValue"); - label3.AppendFormatted(text2); - if (ImGui.InputInt(label3, ref data, 1, 1) && v) - { - base.Configuration.Stop.QuestSequences[text2] = Math.Max(0, Math.Min(255, data)); - Save(); - } - } - if (questsToStopAfter.Count > 1) - { - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.SameLine(ImGui.GetContentRegionAvail().X + ImGui.GetStyle().WindowPadding.X - ImGui.CalcTextSize(FontAwesomeIcon.ArrowsUpDown.ToIconString()).X - ImGui.CalcTextSize(FontAwesomeIcon.Times.ToIconString()).X - ImGui.GetStyle().FramePadding.X * 4f - ImGui.GetStyle().ItemSpacing.X); - } - if (_draggedItem == elementId) - { - ImGuiComponents.IconButton("##Move", FontAwesomeIcon.ArrowsUpDown, ImGui.ColorConvertU32ToFloat4(ImGui.GetColorU32(ImGuiCol.ButtonActive))); - } - else - { - ImGuiComponents.IconButton("##Move", FontAwesomeIcon.ArrowsUpDown); - } - if (_draggedItem == null && ImGui.IsItemActive() && ImGui.IsMouseDragging(ImGuiMouseButton.Left)) - { - _draggedItem = elementId; - } - ImGui.SameLine(); - } - else - { using (ImRaii.PushFont(UiBuilder.IconFont)) { ImGui.SameLine(ImGui.GetContentRegionAvail().X + ImGui.GetStyle().WindowPadding.X - ImGui.CalcTextSize(FontAwesomeIcon.Times.ToIconString()).X - ImGui.GetStyle().FramePadding.X * 2f); } - } - if (ImGuiComponents.IconButton($"##Remove{i}", FontAwesomeIcon.Times)) - { - quest = quest3; + if (ImGuiComponents.IconButton($"##Remove{i}", FontAwesomeIcon.Times)) + { + quest = quest2; + } } } - Vector2 item2 = new Vector2(item.X + x, ImGui.GetCursorScreenPos().Y - ImGui.GetStyle().ItemSpacing.Y + 2f); - list.Add((item, item2)); - } - if (!ImGui.IsMouseDragging(ImGuiMouseButton.Left)) - { - _draggedItem = null; - } - else if (_draggedItem != null) - { - int num = questsToStopAfter.FindIndex((ElementId elementId2) => elementId2 == _draggedItem); - if (num >= 0 && num < list.Count) + if (quest != null) { - var (pMin, pMax) = list[num]; - ImGui.GetWindowDrawList().AddRect(pMin, pMax, ImGui.GetColorU32(ImGuiColors.DalamudGrey), 3f, ImDrawFlags.RoundCornersAll); - int num2 = list.FindIndex(((Vector2 TopLeft, Vector2 BottomRight) tuple2) => ImGui.IsMouseHoveringRect(tuple2.TopLeft, tuple2.BottomRight, clip: true)); - if (num2 >= 0 && num != num2) - { - quest2 = (_questRegistry.TryGetQuest(_draggedItem, out Quest quest4) ? quest4 : null); - index = num2; - } + base.Configuration.Stop.QuestsToStopAfter.Remove(quest.Id); + Save(); } } - if (quest != null) - { - string key = quest.Id.ToString(); - base.Configuration.Stop.QuestsToStopAfter.Remove(quest.Id); - base.Configuration.Stop.QuestSequences.Remove(key); - base.Configuration.Stop.QuestStopModes.Remove(key); - Save(); - } - if (quest2 != null) - { - questsToStopAfter.Remove(quest2.Id); - questsToStopAfter.Insert(index, quest2.Id); - Save(); - } } private void DrawCurrentlyAcceptedQuests() @@ -380,7 +238,6 @@ internal sealed class StopConditionComponent : ConfigComponent if (ImGuiComponents.IconButton($"##Add{item.Id}", FontAwesomeIcon.Plus)) { base.Configuration.Stop.QuestsToStopAfter.Add(item.Id); - base.Configuration.Stop.QuestStopModes[item.Id.ToString()] = Questionable.Configuration.EStopConditionMode.Stop; Save(); } } diff --git a/Questionable/Questionable.Windows.JournalComponents/AlliedSocietyJournalComponent.cs b/Questionable/Questionable.Windows.JournalComponents/AlliedSocietyJournalComponent.cs index 63e18ce..e3c0726 100644 --- a/Questionable/Questionable.Windows.JournalComponents/AlliedSocietyJournalComponent.cs +++ b/Questionable/Questionable.Windows.JournalComponents/AlliedSocietyJournalComponent.cs @@ -1,16 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Numerics; using Dalamud.Bindings.ImGui; -using Dalamud.Game.Text; -using Dalamud.Interface; using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using Microsoft.Extensions.Logging; using Questionable.Controller; using Questionable.Data; using Questionable.Functions; @@ -22,11 +15,7 @@ namespace Questionable.Windows.JournalComponents; internal sealed class AlliedSocietyJournalComponent { - private static readonly string[] RankNames = new string[9] { "Neutral", "Recognized", "Friendly", "Trusted", "Respected", "Honored", "Sworn", "Bloodsworn", "Allied" }; - - private const int DefaultDailyQuestLimit = 3; - - private const int SharedDailyAllowanceLimit = 12; + private static readonly string[] RankNames = new string[8] { "Neutral", "Recognized", "Friendly", "Trusted", "Respected", "Honored", "Sworn", "Allied" }; private readonly AlliedSocietyQuestFunctions _alliedSocietyQuestFunctions; @@ -40,13 +29,7 @@ internal sealed class AlliedSocietyJournalComponent private readonly UiUtils _uiUtils; - private readonly QuestController _questController; - - private readonly IChatGui _chatGui; - - private readonly ILogger _logger; - - public AlliedSocietyJournalComponent(AlliedSocietyQuestFunctions alliedSocietyQuestFunctions, QuestData questData, QuestRegistry questRegistry, QuestJournalUtils questJournalUtils, QuestTooltipComponent questTooltipComponent, UiUtils uiUtils, QuestController questController, IChatGui chatGui, ILogger logger) + public AlliedSocietyJournalComponent(AlliedSocietyQuestFunctions alliedSocietyQuestFunctions, QuestData questData, QuestRegistry questRegistry, QuestJournalUtils questJournalUtils, QuestTooltipComponent questTooltipComponent, UiUtils uiUtils) { _alliedSocietyQuestFunctions = alliedSocietyQuestFunctions; _questData = questData; @@ -54,9 +37,6 @@ internal sealed class AlliedSocietyJournalComponent _questJournalUtils = questJournalUtils; _questTooltipComponent = questTooltipComponent; _uiUtils = uiUtils; - _questController = questController; - _chatGui = chatGui; - _logger = logger; } public void DrawAlliedSocietyQuests() @@ -66,553 +46,40 @@ internal sealed class AlliedSocietyJournalComponent { return; } - DrawDailyAllowanceHeader(); foreach (EAlliedSociety item in from x in Enum.GetValues() where x != EAlliedSociety.None select x) { List list = (from x in _alliedSocietyQuestFunctions.GetAvailableAlliedSocietyQuests(item) select (QuestInfo)_questData.GetQuestInfo(x)).ToList(); - if (list.Count != 0 && DrawAlliedSocietyHeader(item, list)) + if (list.Count == 0 || !ImGui.CollapsingHeader($"{item}###AlliedSociety{item}")) { - using (ImRaii.PushIndent()) + continue; + } + if ((int)item <= 5) + { + byte i = 1; + while (i <= 8) { - DrawAddToPriorityButtons(item, list); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - DrawQuestList(item, list); - } - } - } - } - - private unsafe void DrawDailyAllowanceHeader() - { - QuestManager* ptr = QuestManager.Instance(); - if (ptr != null) - { - byte b = (byte)ptr->GetBeastTribeAllowance(); - int value = 12 - b; - (DateTime ResetTime, TimeSpan TimeUntilReset) tuple = CalculateTimeUntilReset(); - DateTime item = tuple.ResetTime; - string value2 = FormatTimeSpan(tuple.TimeUntilReset); - Vector4 col = ((b > 0) ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed); - ImU8String text = new ImU8String(31, 2); - text.AppendLiteral("Daily Allowances: "); - text.AppendFormatted(b); - text.AppendLiteral(" / "); - text.AppendFormatted(12); - text.AppendLiteral(" remaining"); - ImGui.TextColored(in col, text); - ImGui.SameLine(); - col = ImGuiColors.DalamudGrey3; - ImU8String text2 = new ImU8String(13, 1); - text2.AppendLiteral("(Resets in: "); - text2.AppendFormatted(value2); - text2.AppendLiteral(")"); - ImGui.TextColored(in col, text2); - if (ImGui.IsItemHovered()) - { - ImGui.BeginTooltip(); - ImGui.TextUnformatted("Shared across all allied societies"); - ImU8String text3 = new ImU8String(12, 1); - text3.AppendLiteral("Used today: "); - text3.AppendFormatted(value); - ImGui.TextUnformatted(text3); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - col = ImGuiColors.DalamudGrey3; - ImU8String text4 = new ImU8String(12, 1); - text4.AppendLiteral("Next reset: "); - text4.AppendFormatted(item, "g"); - ImGui.TextColored(in col, text4); - col = ImGuiColors.DalamudGrey3; - ImU8String text5 = new ImU8String(18, 1); - text5.AppendLiteral("Time until reset: "); - text5.AppendFormatted(value2); - ImGui.TextColored(in col, text5); - ImGui.EndTooltip(); - } - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - } - } - - internal static (DateTime ResetTime, TimeSpan TimeUntilReset) CalculateTimeUntilReset() - { - DateTime utcNow = DateTime.UtcNow; - DateTime dateTime = new DateTime(utcNow.Year, utcNow.Month, utcNow.Day, 15, 0, 0, DateTimeKind.Utc); - DateTime dateTime2 = ((utcNow >= dateTime) ? dateTime.AddDays(1.0) : dateTime); - TimeSpan item = dateTime2 - utcNow; - return (ResetTime: dateTime2.ToLocalTime(), TimeUntilReset: item); - } - - private static string FormatTimeSpan(TimeSpan timeSpan) - { - if (timeSpan.TotalMinutes < 1.0) - { - return "< 1m"; - } - if (!(timeSpan.TotalHours < 1.0)) - { - if (!(timeSpan.TotalDays < 1.0)) - { - return $"{(int)timeSpan.TotalDays}d {timeSpan.Hours}h"; - } - return $"{timeSpan.Hours}h {timeSpan.Minutes}m"; - } - return $"{timeSpan.Minutes}m"; - } - - private bool DrawAlliedSocietyHeader(EAlliedSociety alliedSociety, List quests) - { - return ImGui.CollapsingHeader($"{alliedSociety}###AlliedSociety{alliedSociety}"); - } - - private void DrawQuestList(EAlliedSociety alliedSociety, List quests) - { - if ((int)alliedSociety <= 4) - { - byte rank = 1; - while (rank <= 4) - { - List list = quests.Where((QuestInfo x) => x.AlliedSocietyRank == rank).ToList(); - if (list.Count != 0) - { - ImGui.Text(RankNames[rank]); - foreach (QuestInfo item in list) + List list2 = list.Where((QuestInfo x) => x.AlliedSocietyRank == i).ToList(); + if (list2.Count != 0) { - DrawQuest(item); + ImGui.Text(RankNames[i - 1]); + foreach (QuestInfo item2 in list2) + { + DrawQuest(item2); + } } + byte b = (byte)(i + 1); + i = b; } - byte b = (byte)(rank + 1); - rank = b; + continue; } - } - else if (alliedSociety == EAlliedSociety.Ixal) - { - byte rank2 = 1; - while (rank2 <= 8) + foreach (QuestInfo item3 in list) { - List list2 = quests.Where((QuestInfo x) => x.AlliedSocietyRank == rank2).ToList(); - if (list2.Count != 0) - { - ImGui.Text(RankNames[rank2]); - foreach (QuestInfo item2 in list2) - { - DrawQuest(item2); - } - } - byte b = (byte)(rank2 + 1); - rank2 = b; + DrawQuest(item3); } } - else - { - if ((int)alliedSociety < 6) - { - return; - } - byte rank3 = 1; - while (rank3 <= 9) - { - List list3 = quests.Where((QuestInfo x) => x.AlliedSocietyRank == rank3).ToList(); - if (list3.Count != 0) - { - ImGui.Text(RankNames[rank3]); - foreach (QuestInfo item3 in list3) - { - DrawQuest(item3); - } - } - byte b = (byte)(rank3 + 1); - rank3 = b; - } - } - } - - private void DrawAddToPriorityButtons(EAlliedSociety alliedSociety, List quests) - { - bool flag = (int)alliedSociety <= 5; - int dailyLimit = (flag ? 12 : 3); - int remainingAllowances = GetRemainingAllowances(); - Quest quest; - List list = (from q in quests - where _questRegistry.TryGetQuest(q.QuestId, out quest) && !quest.Root.Disabled - where !_questController.ManualPriorityQuests.Any((Quest pq) => pq.Id.Equals(q.QuestId)) - orderby q.AlliedSocietyRank descending - select q).ToList(); - if (list.Count == 0) - { - DrawDisabledAddButton(); - } - else if (flag) - { - DrawArrSocietyButtons(alliedSociety, list, dailyLimit, remainingAllowances); - } - else - { - DrawStandardAddButton(alliedSociety, list, remainingAllowances); - } - } - - private unsafe int GetRemainingAllowances() - { - QuestManager* ptr = QuestManager.Instance(); - if (ptr == null) - { - return 12; - } - return (int)ptr->GetBeastTribeAllowance(); - } - - private static void DrawDisabledAddButton() - { - using (ImRaii.Disabled(disabled: true)) - { - ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, "Add to Priority"); - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("No quests available to add (may be disabled, already in priority, or not available)"); - } - } - - private void DrawArrSocietyButtons(EAlliedSociety alliedSociety, List availableQuests, int dailyLimit, int remainingAllowances) - { - int num = Math.Min(Math.Min(dailyLimit, remainingAllowances), availableQuests.Count); - using (ImRaii.Disabled(remainingAllowances == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, num switch - { - 1 => "Add 1 Quest (Optimal)", - 2 => "Add 2 Quests (Optimal)", - 3 => "Add 3 Quests (Optimal)", - _ => (num != remainingAllowances) ? $"Add {num} (Optimal)" : $"Add {num} (Today's Remaining)", - })) - { - AddQuestsToPriority(alliedSociety, availableQuests.Take(num).ToList()); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - DrawRecommendedButtonTooltip(num, remainingAllowances, dailyLimit, alliedSociety, availableQuests.Count); - } - ImGui.SameLine(); - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.ListOl, $"Add All {availableQuests.Count} Available")) - { - AddQuestsToPriority(alliedSociety, availableQuests); - } - if (ImGui.IsItemHovered()) - { - DrawAddAllButtonTooltip(availableQuests.Count, remainingAllowances, dailyLimit, alliedSociety); - } - } - - private static void DrawRecommendedButtonTooltip(int questsToAddCount, int remainingAllowances, int dailyLimit, EAlliedSociety alliedSociety, int availableCount) - { - ImGui.BeginTooltip(); - if (remainingAllowances == 0) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed)) - { - ImU8String text = new ImU8String(0, 1); - text.AppendFormatted(SeIconChar.Cross.ToIconString()); - ImGui.Text(text); - ImGui.SameLine(); - ImGui.TextUnformatted("No daily allowances remaining"); - } - Vector4 col = ImGuiColors.DalamudGrey3; - ImU8String text2 = new ImU8String(44, 1); - text2.AppendLiteral("You've used all "); - text2.AppendFormatted(12); - text2.AppendLiteral(" shared allowances for today"); - ImGui.TextColored(in col, text2); - } - else if (questsToAddCount == remainingAllowances && questsToAddCount < availableCount) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text3 = new ImU8String(0, 1); - text3.AppendFormatted(SeIconChar.QuestSync.ToIconString()); - ImGui.Text(text3); - ImGui.SameLine(); - ImU8String text4 = new ImU8String(5, 2); - text4.AppendLiteral("Add "); - text4.AppendFormatted(questsToAddCount); - text4.AppendLiteral(" "); - text4.AppendFormatted((questsToAddCount == 1) ? "quest" : "quests"); - ImGui.TextUnformatted(text4); - } - Vector4 col = ImGuiColors.DalamudGrey3; - ImU8String text5 = new ImU8String(44, 2); - text5.AppendLiteral("You can complete "); - text5.AppendFormatted(remainingAllowances); - text5.AppendLiteral(" more allied society "); - text5.AppendFormatted((remainingAllowances == 1) ? "quest" : "quests"); - text5.AppendLiteral(" today"); - ImGui.TextColored(in col, text5); - ImGui.Spacing(); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Prioritises highest rank quests first"); - } - else if (questsToAddCount == dailyLimit) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text6 = new ImU8String(0, 1); - text6.AppendFormatted(SeIconChar.QuestSync.ToIconString()); - ImGui.Text(text6); - ImGui.SameLine(); - ImU8String text7 = new ImU8String(11, 1); - text7.AppendLiteral("Add "); - text7.AppendFormatted(dailyLimit); - text7.AppendLiteral(" quests"); - ImGui.TextUnformatted(text7); - } - Vector4 col = ImGuiColors.DalamudGrey3; - ImU8String text8 = new ImU8String(51, 2); - text8.AppendLiteral("This will use "); - text8.AppendFormatted(dailyLimit); - text8.AppendLiteral(" of your "); - text8.AppendFormatted(remainingAllowances); - text8.AppendLiteral(" remaining shared allowances"); - ImGui.TextColored(in col, text8); - ImGui.Spacing(); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Prioritises highest rank quests first"); - } - else if (questsToAddCount == availableCount) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text9 = new ImU8String(0, 1); - text9.AppendFormatted(SeIconChar.QuestSync.ToIconString()); - ImGui.Text(text9); - ImGui.SameLine(); - ImU8String text10 = new ImU8String(20, 3); - text10.AppendLiteral("Add all "); - text10.AppendFormatted(questsToAddCount); - text10.AppendLiteral(" available "); - text10.AppendFormatted(alliedSociety); - text10.AppendLiteral(" "); - text10.AppendFormatted((questsToAddCount == 1) ? "quest" : "quests"); - ImGui.TextUnformatted(text10); - } - Vector4 col = ImGuiColors.DalamudGrey3; - ImU8String text11 = new ImU8String(37, 2); - text11.AppendLiteral("Uses "); - text11.AppendFormatted(questsToAddCount); - text11.AppendLiteral(" of "); - text11.AppendFormatted(remainingAllowances); - text11.AppendLiteral(" shared allowances remaining"); - ImGui.TextColored(in col, text11); - ImGui.Spacing(); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Prioritises highest rank quests first"); - } - else - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudYellow)) - { - ImU8String text12 = new ImU8String(0, 1); - text12.AppendFormatted(SeIconChar.BoxedLetterQ.ToIconString()); - ImGui.Text(text12); - ImGui.SameLine(); - ImU8String text13 = new ImU8String(6, 3); - text13.AppendLiteral("Add "); - text13.AppendFormatted(questsToAddCount); - text13.AppendLiteral(" "); - text13.AppendFormatted(alliedSociety); - text13.AppendLiteral(" "); - text13.AppendFormatted((questsToAddCount == 1) ? "quest" : "quests"); - ImGui.TextUnformatted(text13); - } - Vector4 col = ImGuiColors.DalamudGrey3; - ImU8String text14 = new ImU8String(55, 2); - text14.AppendLiteral("Limited by available quests ("); - text14.AppendFormatted(availableCount); - text14.AppendLiteral(") and shared allowances ("); - text14.AppendFormatted(remainingAllowances); - text14.AppendLiteral(")"); - ImGui.TextColored(in col, text14); - ImGui.Spacing(); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Prioritises highest rank quests first"); - } - ImGui.EndTooltip(); - } - - private static void DrawAddAllButtonTooltip(int availableCount, int remainingAllowances, int dailyLimit, EAlliedSociety alliedSociety) - { - ImGui.BeginTooltip(); - if (availableCount > remainingAllowances) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange)) - { - ImU8String text = new ImU8String(0, 1); - text.AppendFormatted(SeIconChar.Cross.ToIconString()); - ImGui.Text(text); - ImGui.SameLine(); - ImGui.TextUnformatted("Warning: Exceeds remaining allowances"); - } - ImGui.Spacing(); - ImU8String text2 = new ImU8String(54, 1); - text2.AppendLiteral("This adds all "); - text2.AppendFormatted(availableCount); - text2.AppendLiteral(" available quests to your priority list,"); - ImGui.TextUnformatted(text2); - ImU8String text3 = new ImU8String(37, 2); - text3.AppendLiteral("but you only have "); - text3.AppendFormatted(remainingAllowances); - text3.AppendLiteral(" shared "); - text3.AppendFormatted((remainingAllowances == 1) ? "allowance" : "allowances"); - text3.AppendLiteral(" remaining."); - ImGui.TextUnformatted(text3); - ImGui.Spacing(); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "The excess quests won't be completable until tomorrow."); - } - else if (availableCount > dailyLimit) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange)) - { - ImU8String text4 = new ImU8String(0, 1); - text4.AppendFormatted(SeIconChar.Cross.ToIconString()); - ImGui.Text(text4); - ImGui.SameLine(); - ImGui.TextUnformatted("Warning: Exceeds daily optimal amount"); - } - ImGui.Spacing(); - ImU8String text5 = new ImU8String(32, 1); - text5.AppendLiteral("This adds all "); - text5.AppendFormatted(availableCount); - text5.AppendLiteral(" available quests,"); - ImGui.TextUnformatted(text5); - ImU8String text6 = new ImU8String(48, 1); - text6.AppendLiteral("using more than the typical "); - text6.AppendFormatted(3); - text6.AppendLiteral(" quests per society."); - ImGui.TextUnformatted(text6); - ImGui.Spacing(); - Vector4 col = ImGuiColors.ParsedGreen; - ImU8String text7 = new ImU8String(37, 1); - text7.AppendLiteral("You have "); - text7.AppendFormatted(remainingAllowances); - text7.AppendLiteral(" shared allowances remaining"); - ImGui.TextColored(in col, text7); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "You may want to save allowances for other societies."); - } - else - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text8 = new ImU8String(0, 1); - text8.AppendFormatted(SeIconChar.QuestSync.ToIconString()); - ImGui.Text(text8); - ImGui.SameLine(); - ImU8String text9 = new ImU8String(20, 3); - text9.AppendLiteral("Add all "); - text9.AppendFormatted(availableCount); - text9.AppendLiteral(" available "); - text9.AppendFormatted(alliedSociety); - text9.AppendLiteral(" "); - text9.AppendFormatted((availableCount == 1) ? "quest" : "quests"); - ImGui.TextUnformatted(text9); - } - ImGui.Spacing(); - Vector4 col = ImGuiColors.DalamudGrey3; - ImU8String text10 = new ImU8String(27, 2); - text10.AppendLiteral("Uses "); - text10.AppendFormatted(availableCount); - text10.AppendLiteral(" of "); - text10.AppendFormatted(remainingAllowances); - text10.AppendLiteral(" shared allowances"); - ImGui.TextColored(in col, text10); - ImGui.TextColored(ImGuiColors.DalamudGrey3, "All can be completed today"); - } - ImGui.EndTooltip(); - } - - private void DrawStandardAddButton(EAlliedSociety alliedSociety, List availableQuests, int remainingAllowances) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, availableQuests.Count switch - { - 1 => "Add 1 Quest", - 2 => "Add 2 Quests", - 3 => "Add 3 Quests", - _ => $"Add All {availableQuests.Count} Quests", - })) - { - AddQuestsToPriority(alliedSociety, availableQuests); - } - if (!ImGui.IsItemHovered()) - { - return; - } - ImGui.BeginTooltip(); - ImU8String text = new ImU8String(18, 3); - text.AppendLiteral("Add "); - text.AppendFormatted(availableQuests.Count); - text.AppendLiteral(" "); - text.AppendFormatted(alliedSociety); - text.AppendLiteral(" "); - text.AppendFormatted((availableQuests.Count == 1) ? "quest" : "quests"); - text.AppendLiteral(" to priority"); - ImGui.TextUnformatted(text); - ImGui.Spacing(); - if (availableQuests.Count <= remainingAllowances) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text2 = new ImU8String(0, 1); - text2.AppendFormatted(SeIconChar.QuestSync.ToIconString()); - ImGui.Text(text2); - ImGui.SameLine(); - ImU8String text3 = new ImU8String(17, 3); - text3.AppendLiteral("Uses "); - text3.AppendFormatted(availableQuests.Count); - text3.AppendLiteral(" of "); - text3.AppendFormatted(remainingAllowances); - text3.AppendLiteral(" shared "); - text3.AppendFormatted((remainingAllowances == 1) ? "allowance" : "allowances"); - ImGui.TextUnformatted(text3); - } - ImGui.TextColored(ImGuiColors.DalamudGrey3, "All can be completed today"); - } - else - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange)) - { - ImU8String text4 = new ImU8String(0, 1); - text4.AppendFormatted(SeIconChar.Cross.ToIconString()); - ImGui.Text(text4); - ImGui.SameLine(); - ImU8String text5 = new ImU8String(31, 1); - text5.AppendLiteral("Exceeds remaining allowances ("); - text5.AppendFormatted(remainingAllowances); - text5.AppendLiteral(")"); - ImGui.TextUnformatted(text5); - } - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Some quests won't be completable until tomorrow"); - } - ImGui.EndTooltip(); - } - - private void AddQuestsToPriority(EAlliedSociety alliedSociety, List questsToAdd) - { - int num = 0; - foreach (QuestInfo item in questsToAdd) - { - if (_questController.AddQuestPriority(item.QuestId)) - { - num++; - } - } - if (num > 0) - { - string text = ((num == 1) ? "quest" : "quests"); - _logger.LogInformation("Added {Count} {Society} {QuestWord} to priority list", num, alliedSociety, text); - _chatGui.Print($"Added {num} {alliedSociety} {text} to priority list.", "Questionable", 576); - } } private void DrawQuest(QuestInfo questInfo) diff --git a/Questionable/Questionable.Windows.JournalComponents/DutyJournalComponent.cs b/Questionable/Questionable.Windows.JournalComponents/DutyJournalComponent.cs deleted file mode 100644 index b21e4e1..0000000 --- a/Questionable/Questionable.Windows.JournalComponents/DutyJournalComponent.cs +++ /dev/null @@ -1,369 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Plugin; -using Microsoft.Extensions.Logging; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Windows.JournalComponents; - -internal sealed class DutyJournalComponent -{ - private sealed record DutyCategory(string Name, List Duties); - - private sealed record DutyCounts(int Unlocked, int Completed, int CompletionTrackable, int Total) - { - public DutyCounts() - : this(0, 0, 0, 0) - { - } - } - - private readonly DutyUnlockData _dutyUnlockData; - - private readonly QuestData _questData; - - private readonly QuestFunctions _questFunctions; - - private readonly UiUtils _uiUtils; - - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly ILogger _logger; - - private List _filteredCategories = new List(); - - private Dictionary _categoryCounts = new Dictionary(); - - private string _searchText = string.Empty; - - private bool _showLockedOnly; - - private bool _showUnlockedOnly; - - public DutyJournalComponent(DutyUnlockData dutyUnlockData, QuestData questData, QuestFunctions questFunctions, UiUtils uiUtils, IDalamudPluginInterface pluginInterface, ILogger logger) - { - _dutyUnlockData = dutyUnlockData; - _questData = questData; - _questFunctions = questFunctions; - _uiUtils = uiUtils; - _pluginInterface = pluginInterface; - _logger = logger; - } - - public void DrawDuties() - { - using ImRaii.IEndObject endObject = ImRaii.TabItem("Duties"); - if (!endObject) - { - return; - } - if (ImGui.CollapsingHeader("Explanation", ImGuiTreeNodeFlags.DefaultOpen)) - { - ImGui.Text("The list below shows all duties and their unlock status."); - ImGui.BulletText("'Unlocked' shows duties you have access to."); - ImGui.BulletText("'Completed' shows duties you have finished at least once."); - ImGui.BulletText("Click on a duty to see which quest unlocks it."); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - } - DrawFilterControls(); - if (_filteredCategories.Count > 0) - { - using (ImRaii.IEndObject endObject2 = ImRaii.Table("Duties", 3, ImGuiTableFlags.NoSavedSettings)) - { - if (!endObject2) - { - return; - } - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.NoHide); - ImGui.TableSetupColumn("Unlocked", ImGuiTableColumnFlags.WidthFixed, 120f * ImGui.GetIO().FontGlobalScale); - ImGui.TableSetupColumn("Completed", ImGuiTableColumnFlags.WidthFixed, 120f * ImGui.GetIO().FontGlobalScale); - ImGui.TableHeadersRow(); - foreach (DutyCategory filteredCategory in _filteredCategories) - { - DrawCategory(filteredCategory); - } - return; - } - } - ImGui.Text("No duties match your search."); - } - - private void DrawFilterControls() - { - if (ImGui.Checkbox("Locked Only", ref _showLockedOnly)) - { - if (_showLockedOnly) - { - _showUnlockedOnly = false; - } - UpdateFilter(); - } - ImGui.SameLine(); - if (ImGui.Checkbox("Unlocked Only", ref _showUnlockedOnly)) - { - if (_showUnlockedOnly) - { - _showLockedOnly = false; - } - UpdateFilter(); - } - ImGui.SameLine(); - ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); - if (ImGui.InputTextWithHint(string.Empty, "Search duties...", ref _searchText, 256)) - { - UpdateFilter(); - } - } - - private void DrawCategory(DutyCategory category) - { - DutyCounts valueOrDefault = _categoryCounts.GetValueOrDefault(category.Name, new DutyCounts()); - if (valueOrDefault.Total == 0) - { - return; - } - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - bool num = ImGui.TreeNodeEx(category.Name, ImGuiTreeNodeFlags.SpanFullWidth); - ImGui.TableNextColumn(); - DrawCount(valueOrDefault.Unlocked, valueOrDefault.Total); - ImGui.TableNextColumn(); - DrawCount(valueOrDefault.Completed, valueOrDefault.CompletionTrackable); - if (!num) - { - return; - } - foreach (DutyInfo duty in category.Duties) - { - DrawDuty(duty); - } - ImGui.TreePop(); - } - - private void DrawDuty(DutyInfo duty) - { - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - string text = $"Lv{duty.Level} {duty.Name}"; - if (duty.ItemLevel > 0) - { - text += $" (i{duty.ItemLevel})"; - } - ImGui.TreeNodeEx(text, ImGuiTreeNodeFlags.NoTreePushOnOpen | ImGuiTreeNodeFlags.Leaf | ImGuiTreeNodeFlags.SpanFullWidth); - if (ImGui.IsItemHovered()) - { - DrawDutyTooltip(duty); - } - ImGui.TableNextColumn(); - DrawDutyStatus(duty.IsUnlocked); - ImGui.TableNextColumn(); - DrawDutyStatus(duty.IsCompleted); - } - - private void DrawDutyTooltip(DutyInfo duty) - { - using ImRaii.IEndObject endObject = ImRaii.Tooltip(); - if (!endObject) - { - return; - } - ImGui.TextColored(ImGuiColors.DalamudWhite, duty.Name); - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text = new ImU8String(12, 1); - text.AppendLiteral("Content ID: "); - text.AppendFormatted(duty.ContentFinderConditionId); - ImGui.TextColored(in col, text); - ImGui.Separator(); - ImU8String text2 = new ImU8String(16, 1); - text2.AppendLiteral("Level Required: "); - text2.AppendFormatted(duty.Level); - ImGui.Text(text2); - if (duty.ItemLevel > 0) - { - ImU8String text3 = new ImU8String(21, 1); - text3.AppendLiteral("Item Level Required: "); - text3.AppendFormatted(duty.ItemLevel); - ImGui.Text(text3); - } - ImU8String text4 = new ImU8String(6, 1); - text4.AppendLiteral("Type: "); - text4.AppendFormatted(duty.ContentTypeName); - ImGui.Text(text4); - if (duty.IsHighEndDuty) - { - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.DalamudOrange, "(High-End)"); - } - ImGui.Separator(); - if (duty.IsUnlocked) - { - ImGui.TextColored(ImGuiColors.ParsedGreen, "Status: Unlocked"); - } - else - { - ImGui.TextColored(ImGuiColors.DalamudRed, "Status: Locked"); - } - if (duty.UnlockQuests.Count > 0) - { - ImGui.Separator(); - ImGui.Text("Unlock Quest(s):"); - { - foreach (QuestId unlockQuest in duty.UnlockQuests) - { - if (_questData.TryGetQuestInfo(unlockQuest, out IQuestInfo questInfo)) - { - var (color, icon, _) = _uiUtils.GetQuestStyle(unlockQuest); - _uiUtils.ChecklistItem($"{questInfo.Name} ({unlockQuest})", color, icon); - } - else - { - _uiUtils.ChecklistItem($"Unknown Quest ({unlockQuest})", ImGuiColors.DalamudGrey, FontAwesomeIcon.Question); - } - } - return; - } - } - ImGui.Separator(); - ImGui.TextColored(ImGuiColors.DalamudGrey, "No unlock quest data available."); - } - - private void DrawDutyStatus(bool? status) - { - float num; - using (_pluginInterface.UiBuilder.IconFontFixedWidthHandle.Push()) - { - num = ImGui.GetColumnWidth() / 2f - ImGui.CalcTextSize(FontAwesomeIcon.Check.ToIconString()).X; - } - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + num); - if (!status.HasValue) - { - _uiUtils.ChecklistItem(string.Empty, ImGuiColors.DalamudGrey, FontAwesomeIcon.Minus); - } - else if (status.Value) - { - _uiUtils.ChecklistItem(string.Empty, ImGuiColors.ParsedGreen, FontAwesomeIcon.Check); - } - else - { - _uiUtils.ChecklistItem(string.Empty, ImGuiColors.DalamudRed, FontAwesomeIcon.Times); - } - } - - private static void DrawCount(int count, int total) - { - string text = 9999.ToString(CultureInfo.CurrentCulture); - ImGui.PushFont(UiBuilder.MonoFont); - if (total == 0) - { - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text2 = new ImU8String(3, 2); - text2.AppendFormatted("-".PadLeft(text.Length)); - text2.AppendLiteral(" / "); - text2.AppendFormatted("-".PadLeft(text.Length)); - ImGui.TextColored(in col, text2); - } - else - { - string text3 = count.ToString(CultureInfo.CurrentCulture).PadLeft(text.Length) + " / " + total.ToString(CultureInfo.CurrentCulture).PadLeft(text.Length); - if (count == total) - { - ImGui.TextColored(ImGuiColors.ParsedGreen, text3); - } - else - { - ImGui.TextUnformatted(text3); - } - } - ImGui.PopFont(); - } - - public void UpdateFilter() - { - List list = new List(); - AddCategory(list, "Dungeons", _dutyUnlockData.GetDungeons()); - AddCategory(list, "Hard Dungeons", _dutyUnlockData.GetHardDungeons()); - AddCategory(list, "Guildhests", _dutyUnlockData.GetGuildhests()); - AddCategory(list, "Trials", _dutyUnlockData.GetTrials()); - AddCategory(list, "Hard Trials", _dutyUnlockData.GetHardTrials()); - AddCategory(list, "Extreme Trials", _dutyUnlockData.GetExtremeTrials()); - AddCategory(list, "Unreal Trials", _dutyUnlockData.GetUnrealTrials()); - AddCategory(list, "Normal Raids", _dutyUnlockData.GetNormalRaids()); - AddCategory(list, "Savage Raids", _dutyUnlockData.GetSavageRaids()); - AddCategory(list, "Alliance Raids", _dutyUnlockData.GetAllianceRaids()); - AddCategory(list, "Chaotic Alliance Raids", _dutyUnlockData.GetChaoticAllianceRaids()); - AddCategory(list, "Ultimate Raids", _dutyUnlockData.GetUltimateRaids()); - AddCategory(list, "Deep Dungeons", _dutyUnlockData.GetDeepDungeons()); - AddCategory(list, "Variant Dungeons", _dutyUnlockData.GetVariantDungeons()); - AddCategory(list, "Criterion Dungeons", _dutyUnlockData.GetCriterionDungeons()); - AddCategory(list, "Criterion Savage", _dutyUnlockData.GetCriterionSavageDungeons()); - _filteredCategories = list.Where((DutyCategory c) => c.Duties.Count > 0).ToList(); - RefreshCounts(); - } - - private void AddCategory(List categories, string name, IEnumerable duties) - { - List list = (from d in duties - where MatchesFilter(d) - orderby d.Level, d.ItemLevel, d.ContentFinderConditionId - select d).ToList(); - if (list.Count > 0) - { - categories.Add(new DutyCategory(name, list)); - } - } - - private bool MatchesFilter(DutyInfo duty) - { - if (!string.IsNullOrEmpty(_searchText) && !duty.Name.Contains(_searchText, StringComparison.OrdinalIgnoreCase)) - { - return false; - } - if (_showLockedOnly && duty.IsUnlocked) - { - return false; - } - if (_showUnlockedOnly && !duty.IsUnlocked) - { - return false; - } - return true; - } - - public void RefreshCounts() - { - _categoryCounts.Clear(); - foreach (DutyCategory filteredCategory in _filteredCategories) - { - int unlocked = filteredCategory.Duties.Count((DutyInfo d) => d.IsUnlocked); - int completed = filteredCategory.Duties.Count((DutyInfo d) => d.IsCompleted == true); - int completionTrackable = filteredCategory.Duties.Count((DutyInfo d) => d.IsCompleted.HasValue); - int count = filteredCategory.Duties.Count; - _categoryCounts[filteredCategory.Name] = new DutyCounts(unlocked, completed, completionTrackable, count); - } - } - - public void ClearCounts(int type, int code) - { - foreach (string item in _categoryCounts.Keys.ToList()) - { - _categoryCounts[item] = _categoryCounts[item]with - { - Unlocked = 0, - Completed = 0, - CompletionTrackable = 0 - }; - } - } -} diff --git a/Questionable/Questionable.Windows.JournalComponents/GatheringJournalComponent.cs b/Questionable/Questionable.Windows.JournalComponents/GatheringJournalComponent.cs index f9bba1f..f96ee5f 100644 --- a/Questionable/Questionable.Windows.JournalComponents/GatheringJournalComponent.cs +++ b/Questionable/Questionable.Windows.JournalComponents/GatheringJournalComponent.cs @@ -8,7 +8,7 @@ using Dalamud.Interface.Colors; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin; using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; +using Dalamud.Utility.Signatures; using LLib.GameData; using Lumina.Excel; using Lumina.Excel.Sheets; @@ -84,9 +84,12 @@ internal sealed class GatheringJournalComponent private string _searchText = string.Empty; - private static bool IsGatheringItemGathered(uint item) + [Signature("48 89 5C 24 ?? 57 48 83 EC 20 8B D9 8B F9")] + private GetIsGatheringItemGatheredDelegate _getIsGatheringItemGathered; + + private bool IsGatheringItemGathered(uint item) { - return QuestManager.IsGatheringItemGathered((ushort)item); + return _getIsGatheringItemGathered((ushort)item) != 0; } public GatheringJournalComponent(IDataManager dataManager, IDalamudPluginInterface pluginInterface, UiUtils uiUtils, IGameInteropProvider gameInteropProvider, GatheringPointRegistry gatheringPointRegistry) diff --git a/Questionable/Questionable.Windows.JournalComponents/QuestJournalComponent.cs b/Questionable/Questionable.Windows.JournalComponents/QuestJournalComponent.cs index c921dc9..132fd5d 100644 --- a/Questionable/Questionable.Windows.JournalComponents/QuestJournalComponent.cs +++ b/Questionable/Questionable.Windows.JournalComponents/QuestJournalComponent.cs @@ -96,6 +96,8 @@ internal sealed class QuestJournalComponent private readonly ILogger _logger; + private const uint SeasonalJournalCategoryRowId = 96u; + private List _filteredSections = new List(); private bool _lastHideSeasonalGlobally; @@ -388,18 +390,13 @@ internal sealed class QuestJournalComponent { bool num = IsQuestExpired(questInfo); bool flag = _questFunctions.IsQuestUnobtainable(questInfo.QuestId); - bool flag2 = _questFunctions.IsQuestBlacklisted(questInfo.QuestId); - bool flag3 = _questFunctions.IsQuestLocked(questInfo.QuestId); - bool flag4 = _questFunctions.IsReadyToAcceptQuest(questInfo.QuestId); + bool flag2 = _questFunctions.IsQuestLocked(questInfo.QuestId); + bool flag3 = _questFunctions.IsReadyToAcceptQuest(questInfo.QuestId); if (num || flag) { _uiUtils.ChecklistItem("Unobtainable", ImGuiColors.DalamudGrey, FontAwesomeIcon.Minus); } - else if (flag2) - { - _uiUtils.ChecklistItem("Blacklisted", ImGuiColors.DalamudGrey3, FontAwesomeIcon.Ban); - } - else if (flag3 || !flag4 || !_questRegistry.IsKnownQuest(questInfo.QuestId)) + else if (flag2 || !flag3 || !_questRegistry.IsKnownQuest(questInfo.QuestId)) { _uiUtils.ChecklistItem("Locked", ImGuiColors.DalamudRed, FontAwesomeIcon.Times); } @@ -461,14 +458,14 @@ internal sealed class QuestJournalComponent private FilteredSection FilterSection(JournalData.Section section, FilterConfiguration filter) { IEnumerable enumerable; - if (!_configuration.General.HideSeasonalEventsFromJournalProgress || !_journalData.SeasonalEventsCategoryId.HasValue) + if (!_configuration.General.HideSeasonalEventsFromJournalProgress) { IEnumerable categories = section.Categories; enumerable = categories; } else { - enumerable = section.Categories.Where((JournalData.Category c) => c.Id != _journalData.SeasonalEventsCategoryId.Value); + enumerable = section.Categories.Where((JournalData.Category c) => c.Id != 96); } IEnumerable source = enumerable; return new FilteredSection(Categories: ((!IsCategorySectionGenreMatch(filter, section.Name)) ? source.Select((JournalData.Category category) => FilterCategory(category, filter, section)) : source.Select((JournalData.Category x) => FilterCategory(x, filter.WithoutName(), section))).Where((FilteredCategory x) => x.Genres.Count > 0).ToList(), Section: section); @@ -484,7 +481,7 @@ internal sealed class QuestJournalComponent { bool hideSeasonalEventsFromJournalProgress = _configuration.General.HideSeasonalEventsFromJournalProgress; IEnumerable source = ((!IsCategorySectionGenreMatch(filter, genre.Name)) ? genre.Quests.Where((IQuestInfo x) => IsQuestMatch(filter, x)) : genre.Quests.Where((IQuestInfo x) => IsQuestMatch(filter.WithoutName(), x))); - if (hideSeasonalEventsFromJournalProgress && _journalData.SeasonalEventsCategoryId.HasValue && genre.CategoryId == _journalData.SeasonalEventsCategoryId.Value) + if (hideSeasonalEventsFromJournalProgress && genre.CategoryId == 96) { source = source.Where((IQuestInfo q) => !IsSeasonal(q)); } @@ -497,9 +494,10 @@ internal sealed class QuestJournalComponent _categoryCounts.Clear(); _sectionCounts.Clear(); bool hideSeasonalEventsFromJournalProgress = _configuration.General.HideSeasonalEventsFromJournalProgress; + _logger.LogInformation("Refreshing journal counts. HideSeasonalEventsFromJournalProgress={Hide}", hideSeasonalEventsFromJournalProgress); foreach (JournalData.Genre genre in _journalData.Genres) { - List source = ((hideSeasonalEventsFromJournalProgress && _journalData.SeasonalEventsCategoryId.HasValue && genre.CategoryId == _journalData.SeasonalEventsCategoryId.Value) ? genre.Quests.Where((IQuestInfo q) => !IsSeasonal(q)).ToList() : genre.Quests.ToList()); + List source = ((hideSeasonalEventsFromJournalProgress && genre.CategoryId == 96) ? genre.Quests.Where((IQuestInfo q) => !IsSeasonal(q)).ToList() : genre.Quests.ToList()); Quest quest; int available = source.Count((IQuestInfo x) => _questRegistry.TryGetQuest(x.QuestId, out quest) && !quest.Root.Disabled && !_questFunctions.IsQuestRemoved(x.QuestId)); int total = source.Count((IQuestInfo x) => !_questFunctions.IsQuestRemoved(x.QuestId)); @@ -509,7 +507,7 @@ internal sealed class QuestJournalComponent } foreach (JournalData.Category category in _journalData.Categories) { - if (!hideSeasonalEventsFromJournalProgress || !_journalData.SeasonalEventsCategoryId.HasValue || category.Id != _journalData.SeasonalEventsCategoryId.Value) + if (!hideSeasonalEventsFromJournalProgress || category.Id != 96) { List source2 = _genre_counts_or_default(category); int available2 = source2.Sum((JournalCounts x) => x.Available); diff --git a/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs b/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs index 6db7508..9a82b87 100644 --- a/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs +++ b/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs @@ -44,17 +44,18 @@ internal sealed class QuestJournalUtils public void ShowContextMenu(IQuestInfo questInfo, Quest? quest, string label) { + ImU8String strId; if (ImGui.IsItemClicked(ImGuiMouseButton.Right)) { - ImU8String strId = new ImU8String(12, 1); + strId = new ImU8String(12, 1); strId.AppendLiteral("##QuestPopup"); strId.AppendFormatted(questInfo.QuestId); ImGui.OpenPopup(strId); } - ImU8String id = new ImU8String(12, 1); - id.AppendLiteral("##QuestPopup"); - id.AppendFormatted(questInfo.QuestId); - using ImRaii.IEndObject endObject = ImRaii.Popup(id); + strId = new ImU8String(12, 1); + strId.AppendLiteral("##QuestPopup"); + strId.AppendFormatted(questInfo.QuestId); + using ImRaii.IEndObject endObject = ImRaii.Popup(strId); if (!endObject) { return; @@ -103,7 +104,7 @@ internal sealed class QuestJournalUtils } else { - ImGui.SetTooltip((incompletePrerequisiteQuests.Count == 1) ? "Add this quest to the priority list" : $"Add this quest and {incompletePrerequisiteQuests.Count - 1} required {((incompletePrerequisiteQuests.Count - 1 == 1) ? "quest" : "quests")} to the priority list in completion order"); + ImGui.SetTooltip((incompletePrerequisiteQuests.Count == 1) ? "Add this quest to the priority list" : $"Add this quest and {incompletePrerequisiteQuests.Count - 1} required quest(s) to the priority list in completion order"); } } bool flag = _commandManager.Commands.ContainsKey("/questinfo"); diff --git a/Questionable/Questionable.Windows.JournalComponents/QuestRewardComponent.cs b/Questionable/Questionable.Windows.JournalComponents/QuestRewardComponent.cs index d051d2d..1c2e630 100644 --- a/Questionable/Questionable.Windows.JournalComponents/QuestRewardComponent.cs +++ b/Questionable/Questionable.Windows.JournalComponents/QuestRewardComponent.cs @@ -85,10 +85,10 @@ internal sealed class QuestRewardComponent using ImRaii.IEndObject endObject = ImRaii.Tooltip(); if (!(!endObject)) { - ImU8String text2 = new ImU8String(15, 1); - text2.AppendLiteral("Obtained from: "); - text2.AppendFormatted(questInfo.Name); - ImGui.Text(text2); + label2 = new ImU8String(15, 1); + label2.AppendLiteral("Obtained from: "); + label2.AppendFormatted(questInfo.Name); + ImGui.Text(label2); using (ImRaii.PushIndent()) { _questTooltipComponent.DrawInner(questInfo, showItemRewards: false); diff --git a/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs b/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs index 9848712..d2351f9 100644 --- a/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs @@ -15,7 +15,6 @@ using Dalamud.Plugin.Services; using Microsoft.Extensions.Logging; using Questionable.Controller; using Questionable.Controller.Steps.Shared; -using Questionable.External; using Questionable.Functions; using Questionable.Model; using Questionable.Model.Questing; @@ -32,10 +31,6 @@ internal sealed class ActiveQuestComponent private readonly GatheringController _gatheringController; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - private readonly QuestFunctions _questFunctions; private readonly ICommandManager _commandManager; @@ -48,58 +43,40 @@ internal sealed class ActiveQuestComponent private readonly UiUtils _uiUtils; - private readonly IObjectTable _objectTable; - private readonly IClientState _clientState; private readonly IChatGui _chatGui; - private readonly AutoDutyIpc _autoDutyIpc; - private readonly ILogger _logger; public event EventHandler? Reload; [GeneratedRegex("\\s\\s+", RegexOptions.IgnoreCase, "en-US")] - [GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] + [GeneratedCode("System.Text.RegularExpressions.Generator", "9.0.12.47515")] private static Regex MultipleWhitespaceRegex() { return _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.Instance; } - public ActiveQuestComponent(QuestController questController, MovementController movementController, CombatController combatController, GatheringController gatheringController, FateController fateController, SeasonalDutyController seasonalDutyController, QuestFunctions questFunctions, ICommandManager commandManager, Configuration configuration, QuestRegistry questRegistry, PriorityWindow priorityWindow, UiUtils uiUtils, IObjectTable objectTable, IClientState clientState, IChatGui chatGui, AutoDutyIpc autoDutyIpc, ILogger logger) + public ActiveQuestComponent(QuestController questController, MovementController movementController, CombatController combatController, GatheringController gatheringController, QuestFunctions questFunctions, ICommandManager commandManager, Configuration configuration, QuestRegistry questRegistry, PriorityWindow priorityWindow, UiUtils uiUtils, IClientState clientState, IChatGui chatGui, ILogger logger) { _questController = questController; _movementController = movementController; _combatController = combatController; _gatheringController = gatheringController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _questFunctions = questFunctions; _commandManager = commandManager; _configuration = configuration; _questRegistry = questRegistry; _priorityWindow = priorityWindow; _uiUtils = uiUtils; - _objectTable = objectTable; _clientState = clientState; _chatGui = chatGui; - _autoDutyIpc = autoDutyIpc; _logger = logger; } public void Draw(bool isMinimized) { - if (_fateController.IsRunning) - { - DrawFateActive(isMinimized); - return; - } - if (_seasonalDutyController.IsRunning) - { - DrawDutyActive(isMinimized); - return; - } (QuestController.QuestProgress, QuestController.ECurrentQuestType)? currentQuestDetails = _questController.CurrentQuestDetails; QuestController.QuestProgress questProgress = currentQuestDetails?.Item1; QuestController.ECurrentQuestType? currentQuestType = currentQuestDetails?.Item2; @@ -144,12 +121,12 @@ internal sealed class ActiveQuestComponent if (interactionType == EInteractionType.WaitForManualProgress || interactionType == EInteractionType.Snipe || interactionType == EInteractionType.Instruction) { flag = true; - goto IL_017e; + goto IL_0154; } } flag = false; - goto IL_017e; - IL_017e: + goto IL_0154; + IL_0154: if (flag) { color.Push(ImGuiCol.Text, ImGuiColors.DalamudOrange); @@ -166,149 +143,29 @@ internal sealed class ActiveQuestComponent _logger.LogError(ex, "Could not handle active quest buttons"); } DrawSimulationControls(); - return; - } - (bool isLevelLocked, int levelsNeeded, int requiredLevel, string? questName) msqLevelLockInfo = _questFunctions.GetMsqLevelLockInfo(); - bool item = msqLevelLockInfo.isLevelLocked; - int item2 = msqLevelLockInfo.levelsNeeded; - int item3 = msqLevelLockInfo.requiredLevel; - string item4 = msqLevelLockInfo.questName; - int currentPlayerLevel = _objectTable.LocalPlayer?.Level ?? 0; - if (item && _autoDutyIpc.IsConfiguredToRunLevelingMode(currentPlayerLevel) && item4 != null) - { - Vector4 col = ImGuiColors.DalamudYellow; - ImU8String text = new ImU8String(22, 2); - text.AppendLiteral("MSQ '"); - text.AppendFormatted(item4); - text.AppendLiteral("' requires level "); - text.AppendFormatted(item3); - ImGui.TextColored(in col, text); - col = ImGuiColors.DalamudGrey; - ImU8String text2 = new ImU8String(61, 2); - text2.AppendLiteral("You need "); - text2.AppendFormatted(item2); - text2.AppendLiteral(" more level"); - text2.AppendFormatted((item2 == 1) ? string.Empty : "s"); - text2.AppendLiteral(" - Leveling mode will start automatically"); - ImGui.TextColored(in col, text2); - using (ImRaii.Disabled(_questController.IsRunning || _fateController.IsRunning || _seasonalDutyController.IsRunning || !_autoDutyIpc.IsStopped())) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) - { - _logger.LogInformation("Start button clicked with MSQ level-locked. Starting AutoDuty leveling mode."); - if (_autoDutyIpc.StartLevelingMode()) - { - _chatGui.Print($"Starting AutoDuty Leveling mode to reach level {item3} for MSQ '{item4}'.", "Questionable", 576); - } - else - { - _chatGui.PrintError("Failed to start AutoDuty Leveling mode. Please check that AutoDuty is installed and configured.", "Questionable", 576); - } - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (!_autoDutyIpc.IsStopped()) - { - ImGui.SetTooltip("AutoDuty is currently running."); - } - else - { - ImU8String tooltip = new ImU8String(53, 1); - tooltip.AppendLiteral("Start AutoDuty Leveling mode to reach level "); - tooltip.AppendFormatted(item3); - tooltip.AppendLiteral(" for MSQ."); - ImGui.SetTooltip(tooltip); - } - } } else { ImGui.Text("No active quest"); - } - if (!isMinimized) - { - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text3 = new ImU8String(14, 1); - text3.AppendFormatted(_questRegistry.Count); - text3.AppendLiteral(" quests loaded"); - ImGui.TextColored(in col, text3); - } - ImGui.SameLine(); - if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) - { - _movementController.Stop(); - _questController.Stop("Manual (no active quest)"); - _gatheringController.Stop("Manual (no active quest)"); - _fateController.Stop("Manual (no active quest)"); - if (!_autoDutyIpc.IsStopped()) + if (!isMinimized) { - try - { - _autoDutyIpc.Stop(); - } - catch (Exception exception) - { - _logger.LogWarning(exception, "Failed to stop AutoDuty"); - } + Vector4 col = ImGuiColors.DalamudGrey; + ImU8String text = new ImU8String(14, 1); + text.AppendFormatted(_questRegistry.Count); + text.AppendLiteral(" quests loaded"); + ImGui.TextColored(in col, text); + } + if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) + { + _movementController.Stop(); + _questController.Stop("Manual (no active quest)"); + _gatheringController.Stop("Manual (no active quest)"); + } + ImGui.SameLine(); + if (ImGuiComponents.IconButton(FontAwesomeIcon.SortAmountDown)) + { + _priorityWindow.ToggleOrUncollapse(); } - } - ImGui.SameLine(); - if (ImGuiComponents.IconButton(FontAwesomeIcon.SortAmountDown)) - { - _priorityWindow.ToggleOrUncollapse(); - } - } - - private void DrawFateActive(bool isMinimized) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGold)) - { - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("FATE: "); - text.AppendFormatted(Shorten(_fateController.CurrentFate.Name)); - ImGui.TextUnformatted(text); - } - IList remainingTaskNames = _fateController.GetRemainingTaskNames(); - if (remainingTaskNames.Count > 0) - { - ImGui.TextColored(ImGuiColors.DalamudGrey, remainingTaskNames[0]); - } - if (!isMinimized) - { - string text2 = (_fateController.CycleLimit.HasValue ? $"Cycle {_fateController.CompletedCycles + 1} / {_fateController.CycleLimit}" : $"Cycle {_fateController.CompletedCycles + 1}"); - ImGui.TextColored(ImGuiColors.DalamudGrey3, text2); - } - if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) - { - _fateController.Stop("UI stop"); - _movementController.Stop(); - } - } - - private void DrawDutyActive(bool isMinimized) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("Duty: "); - text.AppendFormatted(Shorten(_seasonalDutyController.CurrentDuty.Name)); - ImGui.TextUnformatted(text); - } - IList remainingTaskNames = _seasonalDutyController.GetRemainingTaskNames(); - if (remainingTaskNames.Count > 0) - { - ImGui.TextColored(ImGuiColors.DalamudGrey, remainingTaskNames[0]); - } - if (!isMinimized) - { - string text2 = (_seasonalDutyController.CycleLimit.HasValue ? $"Cycle {_seasonalDutyController.CompletedCycles + 1} / {_seasonalDutyController.CycleLimit}" : $"Cycle {_seasonalDutyController.CompletedCycles + 1}"); - ImGui.TextColored(ImGuiColors.DalamudGrey3, text2); - } - if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) - { - _seasonalDutyController.Stop("UI stop"); - _movementController.Stop(); } } @@ -335,16 +192,16 @@ internal sealed class ActiveQuestComponent { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGold)) { - ImU8String text2 = new ImU8String(20, 4); - text2.AppendLiteral("Gathering: "); - text2.AppendFormatted(Shorten(currentQuest.Quest.Info.Name)); - text2.AppendLiteral(" ("); - text2.AppendFormatted(currentQuest.Quest.Id); - text2.AppendLiteral(") / "); - text2.AppendFormatted(currentQuest.Sequence); - text2.AppendLiteral(" / "); - text2.AppendFormatted(currentQuest.Step); - ImGui.TextUnformatted(text2); + ImU8String text = new ImU8String(20, 4); + text.AppendLiteral("Gathering: "); + text.AppendFormatted(Shorten(currentQuest.Quest.Info.Name)); + text.AppendLiteral(" ("); + text.AppendFormatted(currentQuest.Quest.Id); + text.AppendLiteral(") / "); + text.AppendFormatted(currentQuest.Sequence); + text.AppendLiteral(" / "); + text.AppendFormatted(currentQuest.Step); + ImGui.TextUnformatted(text); return; } } @@ -362,31 +219,31 @@ internal sealed class ActiveQuestComponent ImGui.SetTooltip("This quest is loaded from your 'pluginConfigs\\Questionable\\Quests' directory.\nThis gets loaded even if Questionable ships with a newer/different version of the quest."); } } - ImU8String text3 = new ImU8String(16, 4); - text3.AppendLiteral("Quest: "); - text3.AppendFormatted(Shorten(startedQuest.Quest.Info.Name)); - text3.AppendLiteral(" ("); - text3.AppendFormatted(startedQuest.Quest.Id); - text3.AppendLiteral(") / "); - text3.AppendFormatted(startedQuest.Sequence); - text3.AppendLiteral(" / "); - text3.AppendFormatted(startedQuest.Step); - ImGui.TextUnformatted(text3); + ImU8String text = new ImU8String(16, 4); + text.AppendLiteral("Quest: "); + text.AppendFormatted(Shorten(startedQuest.Quest.Info.Name)); + text.AppendLiteral(" ("); + text.AppendFormatted(startedQuest.Quest.Id); + text.AppendLiteral(") / "); + text.AppendFormatted(startedQuest.Sequence); + text.AppendLiteral(" / "); + text.AppendFormatted(startedQuest.Step); + ImGui.TextUnformatted(text); if (startedQuest.Quest.Root.Disabled) { ImGui.SameLine(); ImGui.TextColored(ImGuiColors.DalamudRed, "Disabled"); } - bool flag = _configuration.Stop.Enabled && _configuration.Stop.LevelStopMode != Configuration.EStopConditionMode.Off; + bool flag = _configuration.Stop.Enabled && _configuration.Stop.LevelToStopAfter; bool flag2 = _configuration.Stop.Enabled && _configuration.Stop.QuestsToStopAfter.Any((ElementId x) => !_questFunctions.IsQuestComplete(x) && !_questFunctions.IsQuestUnobtainable(x)); - bool flag3 = _configuration.Stop.Enabled && _configuration.Stop.SequenceStopMode != Configuration.EStopConditionMode.Off; + bool flag3 = _configuration.Stop.Enabled && _configuration.Stop.SequenceToStopAfter; if (flag || flag2 || flag3) { ImGui.SameLine(); Vector4 col = ImGuiColors.ParsedPurple; if (flag) { - int num = _objectTable.LocalPlayer?.Level ?? 0; + int num = _clientState.LocalPlayer?.Level ?? 0; if (num > 0 && num >= _configuration.Stop.TargetLevel) { col = ImGuiColors.ParsedGreen; @@ -410,31 +267,31 @@ internal sealed class ActiveQuestComponent ImGui.Separator(); if (flag) { - int num2 = _objectTable.LocalPlayer?.Level ?? 0; - ImU8String text4 = new ImU8String(14, 1); - text4.AppendLiteral("Stop at level "); - text4.AppendFormatted(_configuration.Stop.TargetLevel); - ImGui.BulletText(text4); + int num2 = _clientState.LocalPlayer?.Level ?? 0; + text = new ImU8String(14, 1); + text.AppendLiteral("Stop at level "); + text.AppendFormatted(_configuration.Stop.TargetLevel); + ImGui.BulletText(text); if (num2 > 0) { ImGui.SameLine(); if (num2 >= _configuration.Stop.TargetLevel) { Vector4 col2 = ImGuiColors.ParsedGreen; - ImU8String text5 = new ImU8String(22, 1); - text5.AppendLiteral("(Current: "); - text5.AppendFormatted(num2); - text5.AppendLiteral(" - Reached!)"); - ImGui.TextColored(in col2, text5); + text = new ImU8String(22, 1); + text.AppendLiteral("(Current: "); + text.AppendFormatted(num2); + text.AppendLiteral(" - Reached!)"); + ImGui.TextColored(in col2, text); } else { Vector4 col2 = ImGuiColors.ParsedBlue; - ImU8String text6 = new ImU8String(11, 1); - text6.AppendLiteral("(Current: "); - text6.AppendFormatted(num2); - text6.AppendLiteral(")"); - ImGui.TextColored(in col2, text6); + text = new ImU8String(11, 1); + text.AppendLiteral("(Current: "); + text.AppendFormatted(num2); + text.AppendLiteral(")"); + ImGui.TextColored(in col2, text); } } } @@ -445,28 +302,28 @@ internal sealed class ActiveQuestComponent ImGui.Spacing(); } int sequence = startedQuest.Sequence; - ImU8String text7 = new ImU8String(23, 1); - text7.AppendLiteral("Stop at quest sequence "); - text7.AppendFormatted(_configuration.Stop.TargetSequence); - ImGui.BulletText(text7); + text = new ImU8String(23, 1); + text.AppendLiteral("Stop at quest sequence "); + text.AppendFormatted(_configuration.Stop.TargetSequence); + ImGui.BulletText(text); ImGui.SameLine(); if (sequence >= _configuration.Stop.TargetSequence) { Vector4 col2 = ImGuiColors.ParsedGreen; - ImU8String text8 = new ImU8String(22, 1); - text8.AppendLiteral("(Current: "); - text8.AppendFormatted(sequence); - text8.AppendLiteral(" - Reached!)"); - ImGui.TextColored(in col2, text8); + text = new ImU8String(22, 1); + text.AppendLiteral("(Current: "); + text.AppendFormatted(sequence); + text.AppendLiteral(" - Reached!)"); + ImGui.TextColored(in col2, text); } else { Vector4 col2 = ImGuiColors.ParsedBlue; - ImU8String text9 = new ImU8String(11, 1); - text9.AppendLiteral("(Current: "); - text9.AppendFormatted(sequence); - text9.AppendLiteral(")"); - ImGui.TextColored(in col2, text9); + text = new ImU8String(11, 1); + text.AppendLiteral("(Current: "); + text.AppendFormatted(sequence); + text.AppendLiteral(")"); + ImGui.TextColored(in col2, text); } } if (flag2) @@ -513,12 +370,12 @@ internal sealed class ActiveQuestComponent { if (_questRegistry.TryGetQuest(item2, out Quest quest2)) { - ImU8String text10 = new ImU8String(3, 2); - text10.AppendFormatted(quest2.Info.Name); - text10.AppendLiteral(" ("); - text10.AppendFormatted(item2); - text10.AppendLiteral(")"); - ImGui.BulletText(text10); + text = new ImU8String(3, 2); + text.AppendFormatted(quest2.Info.Name); + text.AppendLiteral(" ("); + text.AppendFormatted(item2); + text.AppendLiteral(")"); + ImGui.BulletText(text); } } } @@ -536,13 +393,13 @@ internal sealed class ActiveQuestComponent { if (_questRegistry.TryGetQuest(elementId2, out Quest quest3)) { - ImU8String text12 = new ImU8String(6, 3); - text12.AppendFormatted(quest3.Info.Name); - text12.AppendLiteral(" ("); - text12.AppendFormatted(elementId2); - text12.AppendLiteral(") - "); - text12.AppendFormatted(value); - ImGui.BulletText(text12); + text = new ImU8String(6, 3); + text.AppendFormatted(quest3.Info.Name); + text.AppendLiteral(" ("); + text.AppendFormatted(elementId2); + text.AppendLiteral(") - "); + text.AppendFormatted(value); + ImGui.BulletText(text); } } } @@ -556,16 +413,16 @@ internal sealed class ActiveQuestComponent { using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudYellow)) { - ImU8String text13 = new ImU8String(21, 4); - text13.AppendLiteral("Next Quest: "); - text13.AppendFormatted(Shorten(nextQuest.Quest.Info.Name)); - text13.AppendLiteral(" ("); - text13.AppendFormatted(nextQuest.Quest.Id); - text13.AppendLiteral(") / "); - text13.AppendFormatted(nextQuest.Sequence); - text13.AppendLiteral(" / "); - text13.AppendFormatted(nextQuest.Step); - ImGui.TextUnformatted(text13); + ImU8String text = new ImU8String(21, 4); + text.AppendLiteral("Next Quest: "); + text.AppendFormatted(Shorten(nextQuest.Quest.Info.Name)); + text.AppendLiteral(" ("); + text.AppendFormatted(nextQuest.Quest.Id); + text.AppendLiteral(") / "); + text.AppendFormatted(nextQuest.Sequence); + text.AppendLiteral(" / "); + text.AppendFormatted(nextQuest.Step); + ImGui.TextUnformatted(text); } } } @@ -602,10 +459,10 @@ internal sealed class ActiveQuestComponent if (currentQuest.Quest.Info.AlliedSociety != EAlliedSociety.None) { ImGui.SameLine(); - ImU8String text3 = new ImU8String(2, 1); - text3.AppendLiteral("/ "); - text3.AppendFormatted(questProgressInfo.ClassJob); - ImGui.Text(text3); + text = new ImU8String(2, 1); + text.AppendLiteral("/ "); + text.AppendFormatted(questProgressInfo.ClassJob); + ImGui.Text(text); } } } @@ -628,7 +485,7 @@ internal sealed class ActiveQuestComponent private void DrawQuestButtons(QuestController.QuestProgress currentQuest, QuestStep? currentStep, QuestProgressInfo? questProgressInfo, bool isMinimized) { - using (ImRaii.Disabled(_questController.IsRunning || _fateController.IsRunning || _seasonalDutyController.IsRunning)) + using (ImRaii.Disabled(_questController.IsRunning)) { if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) { @@ -653,7 +510,6 @@ internal sealed class ActiveQuestComponent _movementController.Stop(); _questController.Stop("UI stop"); _gatheringController.Stop("UI stop"); - _fateController.Stop("UI stop"); } if (isMinimized) { @@ -741,12 +597,12 @@ internal sealed class ActiveQuestComponent } using (ImRaii.PushId("SimulatedStep")) { - ImU8String text2 = new ImU8String(9, 2); - text2.AppendLiteral("Step: "); - text2.AppendFormatted(simulatedQuest.Step); - text2.AppendLiteral(" / "); - text2.AppendFormatted(questSequence.Steps.Count - 1); - ImGui.Text(text2); + text = new ImU8String(9, 2); + text.AppendLiteral("Step: "); + text.AppendFormatted(simulatedQuest.Step); + text.AppendLiteral(" / "); + text.AppendFormatted(questSequence.Steps.Count - 1); + ImGui.Text(text); ImGui.BeginDisabled(simulatedQuest.Step == 0); if (ImGuiComponents.IconButton(FontAwesomeIcon.Minus)) { @@ -782,7 +638,7 @@ internal sealed class ActiveQuestComponent { if (text.Length > 35) { - return string.Concat(text.AsSpan(0, 30).Trim(), ((SeIconChar)57434).ToIconString().AsSpan()); + return string.Concat(text.AsSpan(0, 30).Trim(), ((SeIconChar)57434).ToIconString()); } return text; } diff --git a/Questionable/Questionable.Windows.QuestComponents/CreationUtilsComponent.cs b/Questionable/Questionable.Windows.QuestComponents/CreationUtilsComponent.cs index 7a51ae6..d82c9f8 100644 --- a/Questionable/Questionable.Windows.QuestComponents/CreationUtilsComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/CreationUtilsComponent.cs @@ -4,6 +4,7 @@ using System.Numerics; using System.Runtime.CompilerServices; using Dalamud.Bindings.ImGui; using Dalamud.Game.ClientState.Conditions; +using Dalamud.Game.ClientState.Objects; using Dalamud.Game.ClientState.Objects.Enums; using Dalamud.Game.ClientState.Objects.Types; using Dalamud.Game.Text; @@ -36,8 +37,6 @@ internal sealed class CreationUtilsComponent private readonly QuestSelectionWindow _questSelectionWindow; - private readonly IObjectTable _objectTable; - private readonly IClientState _clientState; private readonly ITargetManager _targetManager; @@ -50,7 +49,7 @@ internal sealed class CreationUtilsComponent private readonly ILogger _logger; - public CreationUtilsComponent(MovementController movementController, GameFunctions gameFunctions, QuestFunctions questFunctions, TerritoryData territoryData, QuestData questData, QuestSelectionWindow questSelectionWindow, IObjectTable objectTable, IClientState clientState, ITargetManager targetManager, ICondition condition, IGameGui gameGui, Configuration configuration, ILogger logger) + public CreationUtilsComponent(MovementController movementController, GameFunctions gameFunctions, QuestFunctions questFunctions, TerritoryData territoryData, QuestData questData, QuestSelectionWindow questSelectionWindow, IClientState clientState, ITargetManager targetManager, ICondition condition, IGameGui gameGui, Configuration configuration, ILogger logger) { _movementController = movementController; _gameFunctions = gameFunctions; @@ -58,7 +57,6 @@ internal sealed class CreationUtilsComponent _territoryData = territoryData; _questData = questData; _questSelectionWindow = questSelectionWindow; - _objectTable = objectTable; _clientState = clientState; _targetManager = targetManager; _condition = condition; @@ -100,24 +98,28 @@ internal sealed class CreationUtilsComponent if (hoveredItem != 0L) { ImGui.Separator(); - ImU8String text2 = new ImU8String(14, 1); - text2.AppendLiteral("Hovered Item: "); - text2.AppendFormatted(hoveredItem); - ImGui.Text(text2); + ImU8String text = new ImU8String(14, 1); + text.AppendLiteral("Hovered Item: "); + text.AppendFormatted(hoveredItem); + ImGui.Text(text); } } private unsafe void DrawTargetDetails(IGameObject target) { string value = string.Empty; + DefaultInterpolatedStringHandler handler; if (target is ICharacter { NameId: not 0u } character) { - value = $"; n={character.NameId}"; + handler = new DefaultInterpolatedStringHandler(4, 1); + handler.AppendLiteral("; n="); + handler.AppendFormatted(character.NameId); + value = handler.ToStringAndClear(); } ImGui.Separator(); IFormatProvider invariantCulture = CultureInfo.InvariantCulture; IFormatProvider provider = invariantCulture; - DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(14, 4, invariantCulture); + handler = new DefaultInterpolatedStringHandler(14, 4, invariantCulture); handler.AppendLiteral("Target: "); handler.AppendFormatted(target.Name); handler.AppendLiteral(" ("); @@ -127,22 +129,22 @@ internal sealed class CreationUtilsComponent handler.AppendFormatted(value); handler.AppendLiteral(")"); ImGui.Text(string.Create(provider, ref handler)); - if (_objectTable.LocalPlayer != null) + if (_clientState.LocalPlayer != null) { invariantCulture = CultureInfo.InvariantCulture; IFormatProvider provider2 = invariantCulture; - DefaultInterpolatedStringHandler handler2 = new DefaultInterpolatedStringHandler(10, 1, invariantCulture); - handler2.AppendLiteral("Distance: "); - handler2.AppendFormatted((target.Position - _objectTable.LocalPlayer.Position).Length(), "F2"); - ImGui.Text(string.Create(provider2, ref handler2)); + handler = new DefaultInterpolatedStringHandler(10, 1, invariantCulture); + handler.AppendLiteral("Distance: "); + handler.AppendFormatted((target.Position - _clientState.LocalPlayer.Position).Length(), "F2"); + ImGui.Text(string.Create(provider2, ref handler)); ImGui.SameLine(); - float value2 = target.Position.Y - _objectTable.LocalPlayer.Position.Y; + float value2 = target.Position.Y - _clientState.LocalPlayer.Position.Y; invariantCulture = CultureInfo.InvariantCulture; IFormatProvider provider3 = invariantCulture; - DefaultInterpolatedStringHandler handler3 = new DefaultInterpolatedStringHandler(3, 1, invariantCulture); - handler3.AppendLiteral("Y: "); - handler3.AppendFormatted(value2, "F2"); - string text = string.Create(provider3, ref handler3); + handler = new DefaultInterpolatedStringHandler(3, 1, invariantCulture); + handler.AppendLiteral("Y: "); + handler.AppendFormatted(value2, "F2"); + string text = string.Create(provider3, ref handler); if (Math.Abs(value2) >= 1.95f) { ImGui.TextColored(ImGuiColors.DalamudOrange, text); @@ -212,9 +214,10 @@ internal sealed class CreationUtilsComponent } if (num) { + ImU8String clipboardText; if (target.ObjectKind == Dalamud.Game.ClientState.Objects.Enums.ObjectKind.GatheringPoint) { - ImU8String clipboardText = new ImU8String(59, 4); + clipboardText = new ImU8String(59, 4); clipboardText.AppendLiteral("\"DataId\": "); clipboardText.AppendFormatted(target.BaseId); clipboardText.AppendLiteral(",\n\"Position\": {\n \"X\": "); @@ -259,30 +262,31 @@ internal sealed class CreationUtilsComponent break; } string value = text; - ImU8String clipboardText2 = new ImU8String(99, 6); - clipboardText2.AppendLiteral("\"DataId\": "); - clipboardText2.AppendFormatted(target.BaseId); - clipboardText2.AppendLiteral(",\n\"Position\": {\n \"X\": "); - clipboardText2.AppendFormatted(target.Position.X.ToString(CultureInfo.InvariantCulture)); - clipboardText2.AppendLiteral(",\n \"Y\": "); - clipboardText2.AppendFormatted(target.Position.Y.ToString(CultureInfo.InvariantCulture)); - clipboardText2.AppendLiteral(",\n \"Z\": "); - clipboardText2.AppendFormatted(target.Position.Z.ToString(CultureInfo.InvariantCulture)); - clipboardText2.AppendLiteral("\n},\n\"TerritoryId\": "); - clipboardText2.AppendFormatted(_clientState.TerritoryType); - clipboardText2.AppendLiteral(",\n\"InteractionType\": \""); - clipboardText2.AppendFormatted(value); - clipboardText2.AppendLiteral("\""); - ImGui.SetClipboardText(clipboardText2); + clipboardText = new ImU8String(99, 6); + clipboardText.AppendLiteral("\"DataId\": "); + clipboardText.AppendFormatted(target.BaseId); + clipboardText.AppendLiteral(",\n\"Position\": {\n \"X\": "); + clipboardText.AppendFormatted(target.Position.X.ToString(CultureInfo.InvariantCulture)); + clipboardText.AppendLiteral(",\n \"Y\": "); + clipboardText.AppendFormatted(target.Position.Y.ToString(CultureInfo.InvariantCulture)); + clipboardText.AppendLiteral(",\n \"Z\": "); + clipboardText.AppendFormatted(target.Position.Z.ToString(CultureInfo.InvariantCulture)); + clipboardText.AppendLiteral("\n},\n\"TerritoryId\": "); + clipboardText.AppendFormatted(_clientState.TerritoryType); + clipboardText.AppendLiteral(",\n\"InteractionType\": \""); + clipboardText.AppendFormatted(value); + clipboardText.AppendLiteral("\""); + ImGui.SetClipboardText(clipboardText); } else if (ImGui.IsItemClicked(ImGuiMouseButton.Right)) { + DefaultInterpolatedStringHandler handler; if (target.ObjectKind == Dalamud.Game.ClientState.Objects.Enums.ObjectKind.Aetheryte) { EAetheryteLocation baseId = (EAetheryteLocation)target.BaseId; IFormatProvider invariantCulture = CultureInfo.InvariantCulture; IFormatProvider provider = invariantCulture; - DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(36, 4, invariantCulture); + handler = new DefaultInterpolatedStringHandler(36, 4, invariantCulture); handler.AppendLiteral("{EAetheryteLocation."); handler.AppendFormatted(baseId); handler.AppendLiteral(", new("); @@ -298,22 +302,22 @@ internal sealed class CreationUtilsComponent { IFormatProvider invariantCulture = CultureInfo.InvariantCulture; IFormatProvider provider2 = invariantCulture; - DefaultInterpolatedStringHandler handler2 = new DefaultInterpolatedStringHandler(12, 3, invariantCulture); - handler2.AppendLiteral("new("); - handler2.AppendFormatted(target.Position.X); - handler2.AppendLiteral("f, "); - handler2.AppendFormatted(target.Position.Y); - handler2.AppendLiteral("f, "); - handler2.AppendFormatted(target.Position.Z); - handler2.AppendLiteral("f)"); - ImGui.SetClipboardText(string.Create(provider2, ref handler2)); + handler = new DefaultInterpolatedStringHandler(12, 3, invariantCulture); + handler.AppendLiteral("new("); + handler.AppendFormatted(target.Position.X); + handler.AppendLiteral("f, "); + handler.AppendFormatted(target.Position.Y); + handler.AppendLiteral("f, "); + handler.AppendFormatted(target.Position.Z); + handler.AppendLiteral("f)"); + ImGui.SetClipboardText(string.Create(provider2, ref handler)); } } } private void DrawCopyButton() { - if (_objectTable.LocalPlayer != null) + if (_clientState.LocalPlayer != null) { bool num = ImGuiComponents.IconButton(FontAwesomeIcon.Copy); if (ImGui.IsItemHovered()) @@ -324,11 +328,11 @@ internal sealed class CreationUtilsComponent { ImU8String clipboardText = new ImU8String(87, 4); clipboardText.AppendLiteral("\"Position\": {\n \"X\": "); - clipboardText.AppendFormatted(_objectTable.LocalPlayer.Position.X.ToString(CultureInfo.InvariantCulture)); + clipboardText.AppendFormatted(_clientState.LocalPlayer.Position.X.ToString(CultureInfo.InvariantCulture)); clipboardText.AppendLiteral(",\n \"Y\": "); - clipboardText.AppendFormatted(_objectTable.LocalPlayer.Position.Y.ToString(CultureInfo.InvariantCulture)); + clipboardText.AppendFormatted(_clientState.LocalPlayer.Position.Y.ToString(CultureInfo.InvariantCulture)); clipboardText.AppendLiteral(",\n \"Z\": "); - clipboardText.AppendFormatted(_objectTable.LocalPlayer.Position.Z.ToString(CultureInfo.InvariantCulture)); + clipboardText.AppendFormatted(_clientState.LocalPlayer.Position.Z.ToString(CultureInfo.InvariantCulture)); clipboardText.AppendLiteral("\n},\n\"TerritoryId\": "); clipboardText.AppendFormatted(_clientState.TerritoryType); clipboardText.AppendLiteral(",\n\"InteractionType\": \"\""); @@ -336,7 +340,7 @@ internal sealed class CreationUtilsComponent } else if (ImGui.IsItemClicked(ImGuiMouseButton.Right)) { - Vector3 position = _objectTable.LocalPlayer.Position; + Vector3 position = _clientState.LocalPlayer.Position; IFormatProvider invariantCulture = CultureInfo.InvariantCulture; DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(12, 3, invariantCulture); handler.AppendLiteral("new("); diff --git a/Questionable/Questionable.Windows.QuestComponents/EventInfoComponent.cs b/Questionable/Questionable.Windows.QuestComponents/EventInfoComponent.cs index a79c19d..4a2bc5d 100644 --- a/Questionable/Questionable.Windows.QuestComponents/EventInfoComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/EventInfoComponent.cs @@ -37,8 +37,6 @@ internal sealed class EventInfoComponent private readonly IDataManager _dataManager; - private readonly JournalData _journalData; - private List _cachedActiveSeasonalQuests = new List(); private DateTime _cachedAtUtc = DateTime.MinValue; @@ -62,7 +60,7 @@ internal sealed class EventInfoComponent } } - public EventInfoComponent(QuestData questData, QuestRegistry questRegistry, QuestFunctions questFunctions, UiUtils uiUtils, QuestController questController, QuestTooltipComponent questTooltipComponent, Configuration configuration, IDataManager dataManager, JournalData journalData, ILogger logger) + public EventInfoComponent(QuestData questData, QuestRegistry questRegistry, QuestFunctions questFunctions, UiUtils uiUtils, QuestController questController, QuestTooltipComponent questTooltipComponent, Configuration configuration, IDataManager dataManager, ILogger logger) { _questData = questData; _questRegistry = questRegistry; @@ -72,7 +70,6 @@ internal sealed class EventInfoComponent _questTooltipComponent = questTooltipComponent; _configuration = configuration; _dataManager = dataManager; - _journalData = journalData; _logger = logger ?? throw new ArgumentNullException("logger"); } @@ -171,10 +168,10 @@ internal sealed class EventInfoComponent { continue; } - ImU8String id = new ImU8String(21, 1); - id.AppendLiteral("##EventQuestSelection"); - id.AppendFormatted(questId); - using (ImRaii.PushId(id)) + ImU8String text3 = new ImU8String(21, 1); + text3.AppendLiteral("##EventQuestSelection"); + text3.AppendFormatted(questId); + using (ImRaii.PushId(text3)) { string name = _questData.GetQuestInfo(questId).Name; if (list.Contains(questId) && _questRegistry.TryGetQuest(questId, out Questionable.Model.Quest quest)) @@ -251,23 +248,53 @@ internal sealed class EventInfoComponent } questInfo = quest.Info; } + try + { + bool flag = false; + DateTime? dateTime = null; + if (questInfo is QuestInfo questInfo2) + { + flag = questInfo2.IsSeasonalQuest || questInfo2.IsSeasonalEvent || questInfo2.SeasonalQuestExpiry is DateTime || (questInfo2.JournalGenre >= 234 && questInfo2.JournalGenre <= 247); + dateTime = questInfo2.SeasonalQuestExpiry; + } + if (flag) + { + if (dateTime.HasValue) + { + DateTime valueOrDefault = dateTime.GetValueOrDefault(); + DateTime dateTime2 = NormalizeExpiry(valueOrDefault); + _logger.LogInformation("Seasonal details: Quest {QuestId} '{Name}' rawExpiry={Raw:o} Kind={Kind} TimeOfDay={TimeOfDay} normalizedUtc={Normalized:o}", questInfo.QuestId, questInfo.Name, valueOrDefault, valueOrDefault.Kind, valueOrDefault.TimeOfDay, dateTime2); + } + else + { + _logger.LogInformation("Seasonal details: Quest {QuestId} '{Name}' has no expiry (seasonal flag present). IsSeasonalEvent={IsSeasonalEvent} IsSeasonalQuest={IsSeasonalQuest} JournalGenre={JournalGenre} SeasonalQuestExpiry={SeasonalQuestExpiry}", questInfo.QuestId, questInfo.Name, questInfo is QuestInfo questInfo3 && questInfo3.IsSeasonalEvent, questInfo is QuestInfo questInfo4 && questInfo4.IsSeasonalQuest, (questInfo is QuestInfo questInfo5) ? questInfo5.JournalGenre : ((uint?)null), (questInfo is QuestInfo questInfo6) ? questInfo6.SeasonalQuestExpiry : ((DateTime?)null)); + } + } + } + catch (Exception exception) + { + _logger.LogDebug(exception, "Failed to log seasonal details for {QuestId}", questInfo.QuestId); + } if (_questFunctions.IsQuestUnobtainable(questInfo.QuestId)) { - continue; + if (_alreadyLoggedActiveSeasonalSkip.Add(questInfo.QuestId.Value)) + { + _logger.LogDebug("Skipping quest {QuestId} '{Name}': marked unobtainable", questInfo.QuestId, questInfo.Name); + } } - if (questInfo is UnlockLinkQuestInfo { QuestExpiry: var questExpiry }) + else if (questInfo is UnlockLinkQuestInfo { QuestExpiry: var questExpiry }) { if (questExpiry.HasValue) { - DateTime valueOrDefault = questExpiry.GetValueOrDefault(); - DateTime dateTime = NormalizeExpiry(valueOrDefault); - if (dateTime > DateTime.UtcNow) + DateTime valueOrDefault2 = questExpiry.GetValueOrDefault(); + DateTime dateTime3 = NormalizeExpiry(valueOrDefault2); + if (dateTime3 > DateTime.UtcNow) { yield return questInfo; } else if (_alreadyLoggedActiveSeasonalSkip.Add(questInfo.QuestId.Value)) { - _logger.LogDebug("Skipping UnlockLink quest {QuestId} '{Name}': expiry {Expiry:o} UTC is not in the future", questInfo.QuestId, questInfo.Name, dateTime); + _logger.LogDebug("Skipping UnlockLink quest {QuestId} '{Name}': expiry {Expiry:o} UTC is not in the future", questInfo.QuestId, questInfo.Name, dateTime3); } } else @@ -277,19 +304,24 @@ internal sealed class EventInfoComponent } else { - if (!(questInfo is QuestInfo { SeasonalQuestExpiry: var seasonalQuestExpiry } questInfo2)) + if (!(questInfo is QuestInfo { SeasonalQuestExpiry: var seasonalQuestExpiry } questInfo7)) { continue; } if (seasonalQuestExpiry.HasValue) { - DateTime valueOrDefault2 = seasonalQuestExpiry.GetValueOrDefault(); - if (NormalizeExpiry(valueOrDefault2) > DateTime.UtcNow) + DateTime valueOrDefault3 = seasonalQuestExpiry.GetValueOrDefault(); + DateTime dateTime4 = NormalizeExpiry(valueOrDefault3); + if (dateTime4 > DateTime.UtcNow) { yield return questInfo; } + else if (_alreadyLoggedActiveSeasonalSkip.Add(questInfo.QuestId.Value)) + { + _logger.LogDebug("Skipping quest {QuestId} '{Name}': seasonal expiry {Expiry:o} UTC is not in the future", questInfo.QuestId, questInfo.Name, dateTime4); + } } - else if (questInfo2.IsSeasonalQuest && !questInfo2.SeasonalQuestExpiry.HasValue) + else if (questInfo7.IsSeasonalQuest && !questInfo7.SeasonalQuestExpiry.HasValue) { yield return questInfo; } @@ -319,12 +351,12 @@ internal sealed class EventInfoComponent return q.JournalGenre.HasValue ? GetJournalGenreName(q.JournalGenre.Value) : q.Name; })) { - item.Select(delegate(IQuestInfo q) + DateTime dateTime = item.Select(delegate(IQuestInfo q) { - DateTime? dateTime = (q as QuestInfo)?.SeasonalQuestExpiry ?? ((q is UnlockLinkQuestInfo unlockLinkQuestInfo) ? unlockLinkQuestInfo.QuestExpiry : ((DateTime?)null)); - if (dateTime.HasValue) + DateTime? dateTime2 = (q as QuestInfo)?.SeasonalQuestExpiry ?? ((q is UnlockLinkQuestInfo unlockLinkQuestInfo) ? unlockLinkQuestInfo.QuestExpiry : ((DateTime?)null)); + if (dateTime2.HasValue) { - DateTime valueOrDefault = dateTime.GetValueOrDefault(); + DateTime valueOrDefault = dateTime2.GetValueOrDefault(); return NormalizeExpiry(valueOrDefault); } return DateTime.MaxValue; @@ -333,9 +365,14 @@ internal sealed class EventInfoComponent select (q as UnlockLinkQuestInfo)?.Patch into p where !string.IsNullOrEmpty(p) select p).Distinct().ToList(); - if (list.Count == 1) + string text = ((list.Count == 1) ? list[0] : null); + if (dateTime != DateTime.MaxValue) { - _ = list[0]; + _logger.LogInformation("Seasonal event '{Name}' ends at {Expiry:o} UTC (patch={Patch})", item.Key, dateTime, text ?? "n/a"); + } + else + { + _logger.LogInformation("Seasonal event '{Name}' has no expiry (patch={Patch})", item.Key, text ?? "n/a"); } } } @@ -351,7 +388,7 @@ internal sealed class EventInfoComponent return new DateTime(date, new TimeOnly(14, 59, 59), DateTimeKind.Utc); } - internal static DateTime NormalizeExpiry(DateTime d) + private static DateTime NormalizeExpiry(DateTime d) { TimeSpan timeOfDay = d.TimeOfDay; TimeSpan timeSpan = new TimeSpan(23, 59, 59); @@ -366,7 +403,7 @@ internal sealed class EventInfoComponent return d; } - internal static string FormatRemainingDays(TimeSpan remaining) + private static string FormatRemainingDays(TimeSpan remaining) { int num = (int)Math.Ceiling(Math.Max(0.0, remaining.TotalSeconds)); int num2 = num / 86400; @@ -384,7 +421,7 @@ internal sealed class EventInfoComponent return $"{value:D2}:{value2:D2}:{value3:D2}"; } - internal static string FormatRemainingFull(TimeSpan remaining) + private static string FormatRemainingFull(TimeSpan remaining) { int num = (int)Math.Ceiling(Math.Max(0.0, remaining.TotalSeconds)); int num2 = num / 86400; diff --git a/Questionable/Questionable.Windows.QuestComponents/ManualPriorityComponent.cs b/Questionable/Questionable.Windows.QuestComponents/ManualPriorityComponent.cs index 6f7bf1c..239aea9 100644 --- a/Questionable/Questionable.Windows.QuestComponents/ManualPriorityComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/ManualPriorityComponent.cs @@ -51,7 +51,6 @@ internal sealed class ManualPriorityComponent _questSelector.QuestSelected = delegate(Quest quest) { manualPriorityComponent._questController.ManualPriorityQuests.Add(quest); - manualPriorityComponent._questController.SavePriorityQuests(); }; } @@ -93,9 +92,9 @@ internal sealed class ManualPriorityComponent ExportToClipboard(); } ImGui.SameLine(); - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Check, "Remove finished Quests") && _questController.ManualPriorityQuests.RemoveAll((Quest q) => _questFunctions.IsQuestComplete(q.Id)) > 0) + if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Check, "Remove finished Quests")) { - _questController.SavePriorityQuests(); + _questController.ManualPriorityQuests.RemoveAll((Quest q) => _questFunctions.IsQuestComplete(q.Id)); } ImGui.SameLine(); using (ImRaii.Disabled(!ImGui.IsKeyDown(ImGuiKey.ModCtrl))) @@ -137,10 +136,10 @@ internal sealed class ManualPriorityComponent using (ImRaii.PushId(id)) { ImGui.AlignTextToFramePadding(); - ImU8String text = new ImU8String(1, 1); - text.AppendFormatted(i + 1); - text.AppendLiteral("."); - ImGui.Text(text); + id = new ImU8String(1, 1); + id.AppendFormatted(i + 1); + id.AppendLiteral("."); + ImGui.Text(id); ImGui.SameLine(); (Vector4, FontAwesomeIcon, string) questStyle = _uiUtils.GetQuestStyle(quest3.Id); bool flag; @@ -213,13 +212,11 @@ internal sealed class ManualPriorityComponent if (quest != null) { manualPriorityQuests.Remove(quest); - _questController.SavePriorityQuests(); } if (quest2 != null) { manualPriorityQuests.Remove(quest2); manualPriorityQuests.Insert(index, quest2); - _questController.SavePriorityQuests(); } } diff --git a/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs b/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs index f52f5fe..d9a5962 100644 --- a/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs @@ -103,12 +103,10 @@ internal sealed class PresetBuilderComponent ImGui.SetTooltip("No preset quests are currently in the priority list."); return; } - ImU8String tooltip = new ImU8String(51, 2); + ImU8String tooltip = new ImU8String(59, 1); tooltip.AppendLiteral("Remove all "); tooltip.AppendFormatted(list.Count); - tooltip.AppendLiteral(" preset-related "); - tooltip.AppendFormatted((list.Count == 1) ? "quest" : "quests"); - tooltip.AppendLiteral(" from the priority list."); + tooltip.AppendLiteral(" preset-related quest(s) from the priority list."); ImGui.SetTooltip(tooltip); } } @@ -333,11 +331,11 @@ internal sealed class PresetBuilderComponent } if (ImGui.IsItemHovered()) { - ImU8String tooltip = new ImU8String(23, 1); - tooltip.AppendLiteral("Add '"); - tooltip.AppendFormatted(questInfo.Name); - tooltip.AppendLiteral("' to priority list"); - ImGui.SetTooltip(tooltip); + label = new ImU8String(23, 1); + label.AppendLiteral("Add '"); + label.AppendFormatted(questInfo.Name); + label.AppendLiteral("' to priority list"); + ImGui.SetTooltip(label); } } } @@ -602,7 +600,7 @@ internal sealed class PresetBuilderComponent EExpansionVersion.Dawntrail => new uint[6] { 1187u, 1188u, 1189u, 1190u, 1191u, 1192u }, _ => Array.Empty(), }; - return QuestData.AetherCurrentQuestsByTerritory.Where>>((KeyValuePair> kvp) => ((ReadOnlySpan)territoryRanges).Contains(kvp.Key)).SelectMany((KeyValuePair> kvp) => kvp.Value).Cast() + return QuestData.AetherCurrentQuestsByTerritory.Where>>((KeyValuePair> kvp) => territoryRanges.Contains(kvp.Key)).SelectMany((KeyValuePair> kvp) => kvp.Value).Cast() .ToList(); } @@ -615,15 +613,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = new AethernetId(1); + Span span = CollectionsMarshal.AsSpan(list15); + int index = 0; + span[index] = new AethernetId(1); return list15; } case "Gridania": { - int num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new AethernetId(2); + int index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span = CollectionsMarshal.AsSpan(list14); + int num = 0; + span[num] = new AethernetId(2); return list14; } case "Uldah": @@ -631,15 +633,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new AethernetId(3); + Span span = CollectionsMarshal.AsSpan(list13); + int index = 0; + span[index] = new AethernetId(3); return list13; } case "GoldSaucer": { - int num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = new AethernetId(4); + int index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span = CollectionsMarshal.AsSpan(list12); + int num = 0; + span[num] = new AethernetId(4); return list12; } case "Ishgard": @@ -647,15 +653,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new AethernetId(5); + Span span = CollectionsMarshal.AsSpan(list11); + int index = 0; + span[index] = new AethernetId(5); return list11; } case "Idyllshire": { - int num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = new AethernetId(6); + int index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span = CollectionsMarshal.AsSpan(list10); + int num = 0; + span[num] = new AethernetId(6); return list10; } case "Rhalgr's Reach": @@ -663,15 +673,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = new AethernetId(7); + Span span = CollectionsMarshal.AsSpan(list9); + int index = 0; + span[index] = new AethernetId(7); return list9; } case "Kugane": { - int num = 1; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = new AethernetId(8); + int index = 1; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span = CollectionsMarshal.AsSpan(list8); + int num = 0; + span[num] = new AethernetId(8); return list8; } case "Doman Enclave": @@ -679,15 +693,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = new AethernetId(9); + Span span = CollectionsMarshal.AsSpan(list7); + int index = 0; + span[index] = new AethernetId(9); return list7; } case "The Crystarium": { - int num = 1; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = new AethernetId(10); + int index = 1; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span = CollectionsMarshal.AsSpan(list6); + int num = 0; + span[num] = new AethernetId(10); return list6; } case "Eulmore": @@ -695,15 +713,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = new AethernetId(11); + Span span = CollectionsMarshal.AsSpan(list5); + int index = 0; + span[index] = new AethernetId(11); return list5; } case "Old Sharlayan": { - int num = 1; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = new AethernetId(12); + int index = 1; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span = CollectionsMarshal.AsSpan(list4); + int num = 0; + span[num] = new AethernetId(12); return list4; } case "Radz-at-Han": @@ -711,15 +733,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - CollectionsMarshal.AsSpan(list3)[0] = new AethernetId(13); + Span span = CollectionsMarshal.AsSpan(list3); + int index = 0; + span[index] = new AethernetId(13); return list3; } case "Tuliyollal": { - int num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new AethernetId(14); + int index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span = CollectionsMarshal.AsSpan(list2); + int num = 0; + span[num] = new AethernetId(14); return list2; } case "Solution Nine": @@ -727,7 +753,9 @@ internal sealed class PresetBuilderComponent int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new AethernetId(15); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new AethernetId(15); return list; } default: diff --git a/Questionable/Questionable.Windows.QuestComponents/QuestSequenceComponent.cs b/Questionable/Questionable.Windows.QuestComponents/QuestSequenceComponent.cs deleted file mode 100644 index b28c9a8..0000000 --- a/Questionable/Questionable.Windows.QuestComponents/QuestSequenceComponent.cs +++ /dev/null @@ -1,648 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Plugin.Services; -using Lumina.Excel.Sheets; -using Microsoft.Extensions.Logging; -using Questionable.Controller; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Windows.QuestComponents; - -internal sealed class QuestSequenceComponent -{ - private readonly QuestData _questData; - - private readonly QuestRegistry _questRegistry; - - private readonly QuestFunctions _questFunctions; - - private readonly IDataManager _dataManager; - - private readonly ILogger _logger; - - private string _questLookupInput = string.Empty; - - private ElementId? _lookedUpQuestId; - - private int _hoveredSequenceId = -1; - - public bool HasLookedUpQuest => _lookedUpQuestId != null; - - public QuestSequenceComponent(QuestData questData, QuestRegistry questRegistry, QuestFunctions questFunctions, IDataManager dataManager, ILogger logger) - { - _questData = questData; - _questRegistry = questRegistry; - _questFunctions = questFunctions; - _dataManager = dataManager; - _logger = logger; - } - - public static void DrawCustomHeader(ref bool isOpen) - { - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X; - float num = ImGui.GetFrameHeightWithSpacing() + ImGui.GetStyle().ItemSpacing.Y * 1.5f; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.22f, 0.2f, 0.28f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.16f, 0.24f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.16f, 0.24f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.22f, 0.2f, 0.28f, 0.85f))); - windowDrawList.AddLine(cursorScreenPos + new Vector2(0f, num), cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.7f, 0.6f, 0.9f, 0.5f)), 2f); - float textLineHeight = ImGui.GetTextLineHeight(); - float num2 = (num - textLineHeight) * 0.5f; - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + num2); - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 10f); - ImGui.TextColored(new Vector4(0.98f, 0.98f, 1f, 1f), "Quest Sequence Viewer"); - ImGui.SameLine(x - 35f); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() - num2 + ImGui.GetStyle().ItemSpacing.Y); - 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.Times)) - { - isOpen = false; - } - } - } - } - ImGui.SetCursorPosY(cursorScreenPos.Y + num - ImGui.GetCursorScreenPos().Y + ImGui.GetCursorPosY()); - } - - public static void DrawWindowBorder() - { - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - Vector2 windowPos = ImGui.GetWindowPos(); - Vector2 windowSize = ImGui.GetWindowSize(); - windowDrawList.AddRect(windowPos - new Vector2(1f, 1f), windowPos + windowSize + new Vector2(1f, 1f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.7f, 0.6f, 0.9f, 0.15f)), 5f, ImDrawFlags.None, 3f); - windowDrawList.AddRect(windowPos, windowPos + windowSize, ImGui.ColorConvertFloat4ToU32(new Vector4(0.7f, 0.6f, 0.9f, 0.4f)), 4f, ImDrawFlags.None, 1.5f); - } - - public void DrawCurrentQuestTab() - { - QuestReference currentQuest = _questFunctions.GetCurrentQuest(); - (ElementId, byte) tuple = (currentQuest.CurrentQuest, currentQuest.Sequence); - if (tuple.Item1 != null) - { - DrawQuestSequences(tuple.Item1, tuple.Item2); - } - else - { - DrawEmptyState(FontAwesomeIcon.QuestionCircle, "No Active Quest", "Accept a quest to view its sequence information.", new Vector4(0.6f, 0.5f, 0.8f, 0.7f)); - } - if (!(tuple.Item1 is QuestId questId)) - { - return; - } - ImGui.Spacing(); - if (ImGui.Button("Copy filename")) - { - if (_questData.TryGetQuestInfo(questId, out IQuestInfo questInfo)) - { - ImGui.SetClipboardText(GetSequenceFilename(questId.Value, questInfo.Name)); - } - else - { - ImGui.SetClipboardText(GetSequenceFilename(questId.Value, questId.Value.ToString(CultureInfo.InvariantCulture))); - } - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Copies filename as QuestID_QuestNameWithSpaces.json"); - } - } - - public void DrawQuestLookupTab() - { - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float y = ImGui.GetFrameHeightWithSpacing() + ImGui.GetStyle().ItemSpacing.Y * 3f; - float x = ImGui.GetContentRegionAvail().X; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, y), ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.1f, 0.16f, 0.6f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.6f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.6f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.1f, 0.16f, 0.6f))); - windowDrawList.AddRect(cursorScreenPos, cursorScreenPos + new Vector2(x, y), ImGui.ColorConvertFloat4ToU32(new Vector4(0.6f, 0.5f, 0.8f, 0.2f)), 4f, ImDrawFlags.None, 1f); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + ImGui.GetStyle().ItemSpacing.Y * 1.5f); - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 10f); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(new Vector4(0.7f, 0.6f, 0.9f, 1f), FontAwesomeIcon.Search.ToIconString()); - } - ImGui.SameLine(); - float x2 = ImGui.GetStyle().ItemSpacing.X; - float num = 10f; - float num2 = 10f; - float num3 = ImGui.CalcTextSize("Search").X + ImGui.CalcTextSize(FontAwesomeIcon.Search.ToIconString()).X + ImGui.GetStyle().FramePadding.X * 4f + x2; - ImGui.SetNextItemWidth(x - num3 - x2 * 3f - num - num2); - using (ImRaii.PushColor(ImGuiCol.FrameBg, new Vector4(0.08f, 0.06f, 0.12f, 0.8f))) - { - using (ImRaii.PushColor(ImGuiCol.FrameBgHovered, new Vector4(0.12f, 0.1f, 0.18f, 0.9f))) - { - using (ImRaii.PushColor(ImGuiCol.FrameBgActive, new Vector4(0.15f, 0.13f, 0.22f, 1f))) - { - bool flag = ImGui.InputTextWithHint("##QuestLookup", "Enter quest ID...", ref _questLookupInput, 10, ImGuiInputTextFlags.EnterReturnsTrue); - ImGui.SameLine(); - using (ImRaii.PushColor(ImGuiCol.Button, new Vector4(0.25f, 0.22f, 0.32f, 0.8f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonHovered, new Vector4(0.35f, 0.3f, 0.45f, 0.9f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonActive, new Vector4(0.4f, 0.35f, 0.5f, 1f))) - { - bool flag2 = ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Search, "Search"); - if (flag || flag2) - { - if (ushort.TryParse(_questLookupInput, out var result)) - { - _lookedUpQuestId = new QuestId(result); - } - else - { - _lookedUpQuestId = null; - } - } - } - } - } - } - } - } - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + ImGui.GetStyle().ItemSpacing.Y * 1.5f); - ImGui.Spacing(); - ImGui.Spacing(); - if (_lookedUpQuestId != null) - { - DrawQuestSequences(_lookedUpQuestId, null); - } - else - { - DrawEmptyState(FontAwesomeIcon.Search, "Enter a Quest ID", "Use the search box above to look up any quest by its ID.", new Vector4(0.6f, 0.5f, 0.8f, 0.7f)); - } - } - - private static void DrawEmptyState(FontAwesomeIcon icon, string title, string message, Vector4 iconColor) - { - float y = ImGui.GetContentRegionAvail().Y; - float x = ImGui.GetContentRegionAvail().X; - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + y * 0.25f); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - ImGui.PushFont(UiBuilder.IconFont); - string text = icon.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 col = new Vector4(iconColor.X, iconColor.Y, iconColor.Z, iconColor.W * 0.1f * (float)num); - ImGui.SetCursorScreenPos(vector2 - vector * 0.5f - new Vector2(num * 2, num * 2)); - ImGui.TextColored(in col, text); - } - ImGui.SetCursorScreenPos(vector2 - vector * 0.5f); - ImGui.TextColored(in iconColor, text); - ImGui.PopFont(); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + vector.Y * 0.5f + 20f); - Vector2 vector3 = ImGui.CalcTextSize(title); - 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)), title); - ImGui.SetCursorPosX((x - vector3.X) * 0.5f); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), title); - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.SetCursorPosX((x - ImGui.CalcTextSize(message).X) * 0.5f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), message); - } - - private void DrawQuestSequences(ElementId questElementId, byte? currentSequence) - { - if (!(questElementId is QuestId questId)) - { - DrawErrorState("Invalid Quest ID Type", "This viewer only supports regular quest IDs."); - return; - } - if (!_questData.TryGetQuestInfo(questElementId, out IQuestInfo questInfo)) - { - DrawErrorState($"Quest {questId.Value} Not Found", "This quest ID does not exist in the game data."); - return; - } - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float num = ImGui.GetFrameHeightWithSpacing() * 1.8f; - float x = ImGui.GetContentRegionAvail().X; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.1f, 0.16f, 0.7f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.7f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.7f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.1f, 0.16f, 0.7f))); - windowDrawList.AddRect(cursorScreenPos, cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.6f, 0.5f, 0.8f, 0.25f)), 4f, ImDrawFlags.None, 1f); - float textLineHeight = ImGui.GetTextLineHeight(); - float num2 = (num - textLineHeight) * 0.5f; - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + num2); - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 10f); - ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextColored(new Vector4(0.7f, 0.6f, 0.9f, 1f), FontAwesomeIcon.Book.ToIconString()); - ImGui.PopFont(); - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.98f, 0.98f, 1f, 1f), questInfo.Name); - ImGui.SameLine(); - Vector4 col = new Vector4(0.7f, 0.7f, 0.8f, 1f); - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("(ID: "); - text.AppendFormatted(questId.Value); - text.AppendLiteral(")"); - ImGui.TextColored(in col, text); - ImGui.SameLine(); - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - using (ImRaii.PushColor(ImGuiCol.Button, new Vector4(0.18f, 0.16f, 0.22f, 0.8f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonHovered, new Vector4(0.28f, 0.24f, 0.32f, 0.95f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonActive, new Vector4(0.35f, 0.3f, 0.45f, 1f))) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Copy)) - { - ImGui.SetClipboardText(GetSequenceFilename(questId.Value, questInfo.Name)); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Copies filename as QuestID_QuestNameWithSpaces.json"); - } - } - } - } - if (currentSequence.HasValue) - { - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.5f, 0.5f, 0.6f, 1f), "—"); - ImGui.SameLine(); - float num3 = (float)ImGui.GetTime(); - float num4 = 0.85f + MathF.Sin(num3 * 3f) * 0.15f; - col = new Vector4(0.5f * num4, 1f * num4, 0.6f * num4, 1f); - ImU8String text2 = new ImU8String(17, 1); - text2.AppendLiteral("Active: Sequence "); - text2.AppendFormatted(currentSequence.Value); - ImGui.TextColored(in col, text2); - } - ImGui.SetCursorPosY(cursorScreenPos.Y + num - ImGui.GetCursorScreenPos().Y + ImGui.GetCursorPosY()); - ImGui.Spacing(); - try - { - Lumina.Excel.Sheets.Quest? quest = _dataManager.GetExcelSheet()?.GetRowOrDefault((uint)(questId.Value + 65536)); - if (!quest.HasValue) - { - DrawErrorState("Quest Not Found in Game Data", "Unable to load quest information from Lumina."); - return; - } - List list = (from result in quest.Value.TodoParams.Where((Lumina.Excel.Sheets.Quest.TodoParamsStruct todoParamsStruct) => todoParamsStruct.ToDoCompleteSeq > 0 && todoParamsStruct.ToDoCompleteSeq < byte.MaxValue).Select((Func)((Lumina.Excel.Sheets.Quest.TodoParamsStruct todoParamsStruct) => todoParamsStruct.ToDoCompleteSeq)).Distinct() - orderby result - select result).ToList(); - if (list.Count == 0) - { - DrawErrorState("No Sequence Data Available", "This quest may not have traditional sequences."); - return; - } - int num5 = list.Max(); - int num6 = num5 + 1; - Questionable.Model.Quest quest2; - bool flag = _questRegistry.TryGetQuest(questElementId, out quest2); - HashSet hashSet = new HashSet(); - Dictionary dictionary = new Dictionary(); - bool flag2 = false; - if (flag && quest2 != null && quest2.Root.QuestSequence.Count > 0) - { - foreach (QuestSequence item in quest2.Root.QuestSequence) - { - if (item.Sequence == byte.MaxValue) - { - flag2 = true; - dictionary[255] = (item.Steps.Count, item.Comment); - } - else - { - hashSet.Add(item.Sequence); - dictionary[item.Sequence] = (item.Steps.Count, item.Comment); - } - } - } - int num7 = hashSet.Count + (flag2 ? 1 : 0); - int num8 = num6 + 1; - float num9 = (flag ? ((float)num7 / (float)num8 * 100f) : 0f); - Vector4 coverageColor = ((num9 >= 100f) ? new Vector4(0.5f, 1f, 0.6f, 1f) : ((num9 >= 50f) ? new Vector4(1f, 0.9f, 0.5f, 1f) : ((num9 < 1f) ? new Vector4(0.6f, 0.5f, 0.8f, 0.7f) : new Vector4(1f, 0.5f, 0.5f, 1f)))); - DrawSummaryCards(num6, num5, flag, num9, coverageColor, num7, num8); - ImGui.Spacing(); - ImGui.Spacing(); - DrawSequenceGrid(num5, currentSequence, hashSet, dictionary, flag2); - } - catch (Exception ex) - { - DrawErrorState("Error Loading Quest Data", ex.Message + "\nCheck logs for details."); - _logger.LogWarning(ex, "Failed to read quest sequence data from Lumina for {QuestId}", questId); - } - } - - private static void DrawErrorState(string title, string message) - { - float y = ImGui.GetContentRegionAvail().Y; - float x = ImGui.GetContentRegionAvail().X; - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + y * 0.25f); - float num = (float)ImGui.GetTime(); - float num2 = 0.7f + MathF.Sin(num * 2f) * 0.3f; - ImGui.PushFont(UiBuilder.IconFont); - string text = FontAwesomeIcon.ExclamationTriangle.ToIconString(); - Vector2 vector = ImGui.CalcTextSize(text); - ImGui.SetCursorPosX((x - (vector * 2f).X) * 0.5f); - ImGui.TextColored(new Vector4(1f * num2, 0.4f * num2, 0.4f * num2, 1f), text); - ImGui.PopFont(); - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.SetCursorPosX((x - ImGui.CalcTextSize(title).X) * 0.5f); - ImGui.TextColored(new Vector4(1f, 0.5f, 0.5f, 1f), title); - ImGui.Spacing(); - ImGui.SetCursorPosX((x - ImGui.CalcTextSize(message).X) * 0.5f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), message); - } - - private static void DrawSummaryCards(int totalSequences, int maxSeq, bool hasQuestPath, float coverage, Vector4 coverageColor, int implementedCount, int expectedCount) - { - using ImRaii.IEndObject endObject = ImRaii.Table("SummaryCards", 2, ImGuiTableFlags.None); - if (!endObject) - { - return; - } - ImGui.TableSetupColumn("GameData", ImGuiTableColumnFlags.WidthStretch, 0.4f); - ImGui.TableSetupColumn("QuestPath", ImGuiTableColumnFlags.WidthStretch, 0.6f); - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - DrawCard(80f, new Vector4(0.6f, 0.85f, 1f, 1f), FontAwesomeIcon.Gamepad, "Expected Sequences", delegate - { - ImGui.Spacing(); - ImGui.Indent(10f); - Vector4 col = new Vector4(0.9f, 0.9f, 0.98f, 1f); - ImU8String text = new ImU8String(6, 0); - text.AppendLiteral("Count:"); - ImGui.TextColored(in col, text); - ImGui.SameLine(); - col = new Vector4(0.7f, 0.9f, 1f, 1f); - ImU8String text2 = new ImU8String(0, 1); - text2.AppendFormatted(totalSequences); - ImGui.TextColored(in col, text2); - ImGui.Spacing(); - col = new Vector4(0.9f, 0.9f, 0.98f, 1f); - ImU8String text3 = new ImU8String(6, 0); - text3.AppendLiteral("Range:"); - ImGui.TextColored(in col, text3); - ImGui.SameLine(); - col = new Vector4(0.7f, 0.9f, 1f, 1f); - ImU8String text4 = new ImU8String(9, 1); - text4.AppendLiteral("0 → "); - text4.AppendFormatted(maxSeq); - text4.AppendLiteral(", 255"); - ImGui.TextColored(in col, text4); - ImGui.Unindent(10f); - }); - ImGui.TableNextColumn(); - DrawCard(80f, new Vector4(0.5f, 1f, 0.6f, 1f), FontAwesomeIcon.Code, "Implementation Status", delegate - { - if (hasQuestPath) - { - ImGui.Indent(10f); - ImGui.TextColored(new Vector4(0.9f, 0.9f, 0.98f, 1f), "Progress:"); - ImGui.SameLine(); - ref Vector4 col = ref coverageColor; - ImU8String text = new ImU8String(0, 1); - text.AppendFormatted(implementedCount); - ImGui.TextColored(in col, text); - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), "/"); - ImGui.SameLine(); - Vector4 col2 = new Vector4(0.9f, 0.9f, 0.98f, 1f); - ImU8String text2 = new ImU8String(0, 1); - text2.AppendFormatted(expectedCount); - ImGui.TextColored(in col2, text2); - ImGui.SameLine(); - ref Vector4 col3 = ref coverageColor; - ImU8String text3 = new ImU8String(3, 1); - text3.AppendLiteral("("); - text3.AppendFormatted(coverage, "F0"); - text3.AppendLiteral("%)"); - ImGui.TextColored(in col3, text3); - ImGui.Spacing(); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X - 10f; - using (ImRaii.PushColor(ImGuiCol.PlotHistogram, coverageColor)) - { - using (ImRaii.PushColor(ImGuiCol.FrameBg, new Vector4(0.08f, 0.06f, 0.12f, 0.8f))) - { - ImGui.ProgressBar(coverage / 100f, new Vector2(x, 16f), ""); - } - } - ImGui.GetWindowDrawList().AddRect(cursorScreenPos, cursorScreenPos + new Vector2(x, 16f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.6f, 0.5f, 0.8f, 0.3f)), 2f); - ImGui.Unindent(10f); - } - else - { - ImGui.Spacing(); - ImGui.Indent(10f); - ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextColored(new Vector4(0.6f, 0.5f, 0.8f, 0.8f), FontAwesomeIcon.Ban.ToIconString()); - ImGui.PopFont(); - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.6f, 0.5f, 0.8f, 0.8f), "Not Implemented"); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), "No quest path data available"); - ImGui.Unindent(10f); - } - }); - } - - private static void DrawCard(float height, Vector4 accentColor, FontAwesomeIcon icon, string title, System.Action content) - { - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, height), ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.1f, 0.16f, 0.7f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.7f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.1f, 0.08f, 0.14f, 0.7f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.1f, 0.16f, 0.7f))); - windowDrawList.AddRect(cursorScreenPos, cursorScreenPos + new Vector2(x, height), ImGui.ColorConvertFloat4ToU32(new Vector4(0.6f, 0.5f, 0.8f, 0.2f)), 4f, ImDrawFlags.None, 1f); - windowDrawList.AddLine(cursorScreenPos, cursorScreenPos + new Vector2(x, 0f), ImGui.ColorConvertFloat4ToU32(accentColor), 3f); - float num = cursorScreenPos.Y + 10f; - ImGui.SetCursorScreenPos(new Vector2(cursorScreenPos.X + 10f, num)); - ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextColored(in accentColor, icon.ToIconString()); - ImGui.PopFont(); - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.98f, 0.98f, 1f, 1f), title); - ImGui.SetCursorScreenPos(new Vector2(cursorScreenPos.X + 10f, num + 24f)); - content(); - ImGui.SetCursorScreenPos(new Vector2(cursorScreenPos.X, cursorScreenPos.Y + height + 4f)); - } - - private void DrawSequenceGrid(int maxSeq, byte? currentSequence, HashSet implementedSequences, Dictionary sequenceDetails, bool hasEndSequence) - { - int val = maxSeq + 2; - float x = ImGui.GetContentRegionAvail().X; - int val2 = Math.Max(4, Math.Min(8, (int)(x / 100f))); - val2 = Math.Min(val2, val); - float y = ImGui.GetContentRegionAvail().Y; - using (ImRaii.PushColor(ImGuiCol.ChildBg, new Vector4(0.08f, 0.06f, 0.12f, 0.6f))) - { - using (ImRaii.PushColor(ImGuiCol.Border, new Vector4(0.6f, 0.5f, 0.8f, 0.2f))) - { - using ImRaii.IEndObject endObject = ImRaii.Child("SequenceGrid", new Vector2(-1f, y), border: true, ImGuiWindowFlags.None); - if (!ImRaii.IEndObject.op_True(endObject)) - { - return; - } - using (ImRaii.PushColor(ImGuiCol.TableBorderStrong, new Vector4(0.6f, 0.5f, 0.8f, 0.2f))) - { - using (ImRaii.PushColor(ImGuiCol.TableBorderLight, new Vector4(0.6f, 0.5f, 0.8f, 0.15f))) - { - using ImRaii.IEndObject endObject2 = ImRaii.Table("SequenceGridTable", val2, ImGuiTableFlags.Borders | ImGuiTableFlags.SizingStretchSame); - if (!ImRaii.IEndObject.op_True(endObject2)) - { - return; - } - int num = 0; - for (int i = 0; i <= maxSeq; i++) - { - if (num % val2 == 0) - { - ImGui.TableNextRow(); - } - ImGui.TableNextColumn(); - DrawSequenceCell(i, currentSequence, implementedSequences, sequenceDetails); - num++; - } - if (num % val2 == 0) - { - ImGui.TableNextRow(); - } - ImGui.TableNextColumn(); - DrawSequenceCell(255, currentSequence, implementedSequences, sequenceDetails, hasEndSequence); - for (num++; num % val2 != 0; num++) - { - ImGui.TableNextColumn(); - } - } - } - } - } - } - - private void DrawSequenceCell(int sequenceId, byte? currentSequence, HashSet implementedSequences, Dictionary sequenceDetails, bool? forcedImplemented = null) - { - bool flag = currentSequence.HasValue && sequenceId == currentSequence.Value; - bool flag2 = forcedImplemented ?? implementedSequences.Contains(sequenceId); - bool flag3 = _hoveredSequenceId == sequenceId; - string text = ((sequenceId == 255) ? "255" : $"{sequenceId}"); - Vector4 input; - Vector4 input2; - if (flag) - { - input = (flag3 ? new Vector4(0.18f, 0.55f, 0.25f, 0.8f) : new Vector4(0.15f, 0.48f, 0.22f, 0.7f)); - input2 = new Vector4(0.5f, 1f, 0.6f, flag3 ? 0.8f : 0.5f); - } - else if (flag2) - { - input = (flag3 ? new Vector4(0.14f, 0.38f, 0.18f, 0.6f) : new Vector4(0.12f, 0.34f, 0.16f, 0.5f)); - input2 = new Vector4(0.5f, 1f, 0.6f, flag3 ? 0.5f : 0.25f); - } - else - { - input = (flag3 ? new Vector4(0.5f, 0.18f, 0.18f, 0.6f) : new Vector4(0.45f, 0.15f, 0.15f, 0.5f)); - input2 = new Vector4(1f, 0.5f, 0.5f, flag3 ? 0.6f : 0.3f); - } - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - Vector2 vector = new Vector2(ImGui.GetContentRegionAvail().X, 75f); - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilled(cursorScreenPos, cursorScreenPos + vector, ImGui.ColorConvertFloat4ToU32(input), 3f); - if (flag3) - { - windowDrawList.AddRect(cursorScreenPos - new Vector2(1f, 1f), cursorScreenPos + vector + new Vector2(1f, 1f), ImGui.ColorConvertFloat4ToU32(new Vector4(input2.X, input2.Y, input2.Z, input2.W * 0.3f)), 3f, ImDrawFlags.None, 3f); - } - windowDrawList.AddRect(cursorScreenPos, cursorScreenPos + vector, ImGui.ColorConvertFloat4ToU32(input2), 3f, ImDrawFlags.None, flag3 ? 2f : 1.5f); - float x = vector.X; - Vector2 vector2 = ImGui.CalcTextSize(text); - Vector4 input3 = (flag ? new Vector4(0.98f, 0.98f, 1f, 1f) : new Vector4(0.9f, 0.9f, 0.98f, 1f)); - float y = cursorScreenPos.Y + (vector.Y - vector2.Y) * 0.5f; - windowDrawList.AddText(new Vector2(cursorScreenPos.X + (x - vector2.X) * 0.5f, y), ImGui.ColorConvertFloat4ToU32(input3), text); - ImGui.SetCursorScreenPos(cursorScreenPos); - ImU8String strId = new ImU8String(5, 1); - strId.AppendLiteral("##Seq"); - strId.AppendFormatted(sequenceId); - ImGui.InvisibleButton(strId, vector); - if (ImGui.IsItemHovered()) - { - _hoveredSequenceId = sequenceId; - using (ImRaii.Tooltip()) - { - using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(0.98f, 0.98f, 1f, 1f))) - { - ImU8String text2 = new ImU8String(9, 1); - text2.AppendLiteral("Sequence "); - text2.AppendFormatted(sequenceId); - ImGui.Text(text2); - } - ImGui.Separator(); - if (flag2 && sequenceDetails.TryGetValue(sequenceId, out (int, string) value)) - { - ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextColored(new Vector4(0.5f, 1f, 0.6f, 1f), FontAwesomeIcon.CheckCircle.ToIconString()); - ImGui.PopFont(); - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.5f, 1f, 0.6f, 1f), "Implemented"); - ImGui.Spacing(); - Vector4 col = new Vector4(0.9f, 0.9f, 0.98f, 1f); - ImU8String text3 = new ImU8String(6, 0); - text3.AppendLiteral("Steps:"); - ImGui.TextColored(in col, text3); - ImGui.SameLine(); - col = new Vector4(0.7f, 0.9f, 1f, 1f); - ImU8String text4 = new ImU8String(0, 1); - text4.AppendFormatted(value.Item1); - ImGui.TextColored(in col, text4); - if (!string.IsNullOrEmpty(value.Item2)) - { - ImGui.Separator(); - ImGui.PushTextWrapPos(250f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), value.Item2); - ImGui.PopTextWrapPos(); - } - } - else if (!flag2) - { - ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextColored(new Vector4(1f, 0.5f, 0.5f, 1f), FontAwesomeIcon.TimesCircle.ToIconString()); - ImGui.PopFont(); - ImGui.SameLine(); - ImGui.TextColored(new Vector4(1f, 0.5f, 0.5f, 1f), "Not Implemented"); - ImGui.Spacing(); - ImGui.PushTextWrapPos(250f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), "This sequence is missing from the quest path."); - ImGui.PopTextWrapPos(); - } - if (flag) - { - ImGui.Separator(); - ImGui.TextColored(new Vector4(1f, 0.85f, 0.5f, 1f), "► Currently Active"); - } - } - } - else if (_hoveredSequenceId == sequenceId) - { - _hoveredSequenceId = -1; - } - ImGui.SetCursorScreenPos(cursorScreenPos + new Vector2(0f, vector.Y)); - } - - private static string GetSequenceFilename(int questId, string questName) - { - string value = (questName ?? string.Empty).Trim(); - return $"{questId}_{value}.json"; - } - - public void SetLookedUpQuest(ElementId? id) - { - _lookedUpQuestId = id; - } -} diff --git a/Questionable/Questionable.Windows.QuestComponents/QuestTooltipComponent.cs b/Questionable/Questionable.Windows.QuestComponents/QuestTooltipComponent.cs index 1fb48de..ee2cb23 100644 --- a/Questionable/Questionable.Windows.QuestComponents/QuestTooltipComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/QuestTooltipComponent.cs @@ -78,17 +78,17 @@ internal sealed class QuestTooltipComponent } if (quest.Root.Author.Count == 1) { - ImU8String text3 = new ImU8String(8, 1); - text3.AppendLiteral("Author: "); - text3.AppendFormatted(quest.Root.Author[0]); - ImGui.Text(text3); + text = new ImU8String(8, 1); + text.AppendLiteral("Author: "); + text.AppendFormatted(quest.Root.Author[0]); + ImGui.Text(text); } else { - ImU8String text4 = new ImU8String(9, 1); - text4.AppendLiteral("Authors: "); - text4.AppendFormatted(string.Join(", ", quest.Root.Author)); - ImGui.Text(text4); + text = new ImU8String(9, 1); + text.AppendLiteral("Authors: "); + text.AppendFormatted(string.Join(", ", quest.Root.Author)); + ImGui.Text(text); } } else diff --git a/Questionable/Questionable.Windows.QuestComponents/QuestValidationComponent.cs b/Questionable/Questionable.Windows.QuestComponents/QuestValidationComponent.cs index 6a632c8..a13a3fc 100644 --- a/Questionable/Questionable.Windows.QuestComponents/QuestValidationComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/QuestValidationComponent.cs @@ -57,10 +57,10 @@ internal sealed class QuestValidationComponent ImGui.SameLine(); using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed)) { - ImU8String text2 = new ImU8String(7, 1); - text2.AppendFormatted(errorCount); - text2.AppendLiteral(" errors"); - ImGui.Text(text2); + text = new ImU8String(7, 1); + text.AppendFormatted(errorCount); + text.AppendLiteral(" errors"); + ImGui.Text(text); } } if (num > 0) @@ -70,11 +70,11 @@ internal sealed class QuestValidationComponent ImGui.SameLine(); using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange)) { - ImU8String text3 = new ImU8String(12, 1); - text3.AppendLiteral(", "); - text3.AppendFormatted(num); - text3.AppendLiteral(" warnings)"); - ImGui.Text(text3); + text = new ImU8String(12, 1); + text.AppendLiteral(", "); + text.AppendFormatted(num); + text.AppendLiteral(" warnings)"); + ImGui.Text(text); return; } } @@ -83,10 +83,10 @@ internal sealed class QuestValidationComponent ImGui.SameLine(); using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange)) { - ImU8String text4 = new ImU8String(10, 1); - text4.AppendFormatted(num); - text4.AppendLiteral(" warnings)"); - ImGui.Text(text4); + text = new ImU8String(10, 1); + text.AppendFormatted(num); + text.AppendLiteral(" warnings)"); + ImGui.Text(text); return; } } diff --git a/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs b/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs index f77829d..772899f 100644 --- a/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs @@ -10,21 +10,15 @@ internal sealed class RemainingTasksComponent private readonly GatheringController _gatheringController; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - - public RemainingTasksComponent(QuestController questController, GatheringController gatheringController, FateController fateController, SeasonalDutyController seasonalDutyController) + public RemainingTasksComponent(QuestController questController, GatheringController gatheringController) { _questController = questController; _gatheringController = gatheringController; - _fateController = fateController; - _seasonalDutyController = seasonalDutyController; } public void Draw() { - IList remainingTaskNames = _seasonalDutyController.GetRemainingTaskNames(); + IList remainingTaskNames = _gatheringController.GetRemainingTaskNames(); if (remainingTaskNames.Count > 0) { ImGui.Separator(); @@ -32,53 +26,23 @@ internal sealed class RemainingTasksComponent foreach (string item in remainingTaskNames) { ImU8String text = new ImU8String(3, 1); - text.AppendLiteral("D: "); + text.AppendLiteral("G: "); text.AppendFormatted(item); ImGui.TextUnformatted(text); } ImGui.EndDisabled(); return; } - IList remainingTaskNames2 = _fateController.GetRemainingTaskNames(); - if (remainingTaskNames2.Count > 0) - { - ImGui.Separator(); - ImGui.BeginDisabled(); - foreach (string item2 in remainingTaskNames2) - { - ImU8String text2 = new ImU8String(3, 1); - text2.AppendLiteral("F: "); - text2.AppendFormatted(item2); - ImGui.TextUnformatted(text2); - } - ImGui.EndDisabled(); - return; - } - IList remainingTaskNames3 = _gatheringController.GetRemainingTaskNames(); - if (remainingTaskNames3.Count > 0) - { - ImGui.Separator(); - ImGui.BeginDisabled(); - foreach (string item3 in remainingTaskNames3) - { - ImU8String text3 = new ImU8String(3, 1); - text3.AppendLiteral("G: "); - text3.AppendFormatted(item3); - ImGui.TextUnformatted(text3); - } - ImGui.EndDisabled(); - return; - } - IList remainingTaskNames4 = _questController.GetRemainingTaskNames(); - if (remainingTaskNames4.Count <= 0) + IList remainingTaskNames2 = _questController.GetRemainingTaskNames(); + if (remainingTaskNames2.Count <= 0) { return; } ImGui.Separator(); ImGui.BeginDisabled(); - foreach (string item4 in remainingTaskNames4) + foreach (string item2 in remainingTaskNames2) { - ImGui.TextUnformatted(item4); + ImGui.TextUnformatted(item2); } ImGui.EndDisabled(); } diff --git a/Questionable/Questionable.Windows.QuestComponents/SavedPresetsComponent.cs b/Questionable/Questionable.Windows.QuestComponents/SavedPresetsComponent.cs deleted file mode 100644 index dd7fa14..0000000 --- a/Questionable/Questionable.Windows.QuestComponents/SavedPresetsComponent.cs +++ /dev/null @@ -1,681 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using System.Text; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Plugin; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Newtonsoft.Json; -using Questionable.Controller; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Windows.QuestComponents; - -internal sealed class SavedPresetsComponent -{ - private sealed class PresetExportData - { - public string Name { get; set; } = string.Empty; - - public string Description { get; set; } = string.Empty; - - public List QuestIds { get; set; } = new List(); - } - - private readonly QuestController _questController; - - private readonly QuestFunctions _questFunctions; - - private readonly QuestData _questData; - - private readonly QuestRegistry _questRegistry; - - private readonly Configuration _configuration; - - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly IChatGui _chatGui; - - private readonly UiUtils _uiUtils; - - private readonly QuestTooltipComponent _questTooltipComponent; - - private readonly ILogger _logger; - - private string _newPresetName = string.Empty; - - private string _newPresetDescription = string.Empty; - - private bool _showSaveDialog; - - private string? _presetToDelete; - - private string? _expandedPreset; - - private string? _renamingPresetKey; - - private string _renamePresetName = string.Empty; - - private string _renamePresetDescription = string.Empty; - - private const string PresetClipboardPrefix = "qst:preset:"; - - private const string AllPresetsClipboardPrefix = "qst:presets:"; - - public SavedPresetsComponent(QuestController questController, QuestFunctions questFunctions, QuestData questData, QuestRegistry questRegistry, Configuration configuration, IDalamudPluginInterface pluginInterface, IChatGui chatGui, UiUtils uiUtils, QuestTooltipComponent questTooltipComponent, ILogger logger) - { - _questController = questController; - _questFunctions = questFunctions; - _questData = questData; - _questRegistry = questRegistry; - _configuration = configuration; - _pluginInterface = pluginInterface; - _chatGui = chatGui; - _uiUtils = uiUtils; - _questTooltipComponent = questTooltipComponent; - _logger = logger; - } - - public void Draw() - { - ImGui.TextWrapped("Save your current priority queue as a preset for quick access later. Saved presets are stored in your configuration and persist between sessions."); - ImGui.Spacing(); - DrawSaveSection(); - ImGui.Spacing(); - using (ImRaii.IEndObject endObject = ImRaii.Child("SavedPresetsList", new Vector2(-1f, -27f), border: true)) - { - if (endObject) - { - DrawSavedPresets(); - } - } - DrawBottomButtons(); - } - - private void DrawSaveSection() - { - int count = _questController.ManualPriorityQuests.Count; - if (_showSaveDialog) - { - ImGui.Text("Save Current Priority Queue as Preset:"); - ImGui.SetNextItemWidth(200f); - ImGui.InputTextWithHint("##PresetName", "Preset name...", ref _newPresetName, 64); - ImGui.SameLine(); - ImGui.SetNextItemWidth(250f); - ImGui.InputTextWithHint("##PresetDescription", "Description (optional)...", ref _newPresetDescription, 256); - ImGui.SameLine(); - using (ImRaii.Disabled(string.IsNullOrWhiteSpace(_newPresetName) || count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Save, "Save")) - { - SaveCurrentPreset(); - } - } - ImGui.SameLine(); - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Times, "Cancel")) - { - _showSaveDialog = false; - _newPresetName = string.Empty; - _newPresetDescription = string.Empty; - } - if (count == 0) - { - ImGui.TextColored(ImGuiColors.DalamudYellow, "Add quests to the priority queue first."); - } - return; - } - using (ImRaii.Disabled(count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, $"Save Current Queue ({count} quests)")) - { - _showSaveDialog = true; - } - } - if (count == 0 && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("Add quests to the priority queue first to save them as a preset."); - } - } - - private void DrawSavedPresets() - { - Dictionary savedPresets = _configuration.General.SavedPresets; - if (savedPresets.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, ImGuiColors.DalamudGrey); - ImGui.TextWrapped("No saved presets yet. Save your current priority queue using the button above."); - ImGui.PopStyleColor(); - return; - } - foreach (var (key, preset) in savedPresets.OrderBy((KeyValuePair x) => x.Value.Name)) - { - DrawPresetEntry(key, preset); - } - if (_presetToDelete != null) - { - if (savedPresets.Remove(_presetToDelete)) - { - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Deleted saved preset '{PresetName}'", _presetToDelete); - } - _presetToDelete = null; - } - } - - private void DrawPresetEntry(string key, Configuration.SavedQuestPreset preset) - { - using (ImRaii.PushId(key)) - { - List availableQuests = GetAvailableQuests(preset.QuestIds); - List completedQuests = GetCompletedQuests(preset.QuestIds); - List alreadyPriorityQuests = GetAlreadyPriorityQuests(preset.QuestIds); - string text = preset.Name; - List list = new List(); - if (availableQuests.Count > 0) - { - list.Add($"{availableQuests.Count} available"); - } - if (alreadyPriorityQuests.Count > 0) - { - list.Add($"{alreadyPriorityQuests.Count} priority"); - } - if (completedQuests.Count > 0) - { - list.Add($"{completedQuests.Count} completed"); - } - if (list.Count > 0) - { - text = text + " (" + string.Join(", ", list) + ")"; - } - bool flag = _expandedPreset == key; - ImU8String label = new ImU8String(3, 2); - label.AppendFormatted(text); - label.AppendLiteral("###"); - label.AppendFormatted(key); - if (ImGui.CollapsingHeader(label, flag ? ImGuiTreeNodeFlags.DefaultOpen : ImGuiTreeNodeFlags.None)) - { - _expandedPreset = key; - using (ImRaii.PushIndent()) - { - if (_renamingPresetKey == key) - { - ImGui.Text("Name:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(300f); - ImGui.InputTextWithHint("##RenamePreset", "Preset name...", ref _renamePresetName, 64); - ImGui.Text("Description:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(300f); - ImGui.InputTextWithHint("##EditDescription", "Description (optional)...", ref _renamePresetDescription, 256); - using (ImRaii.Disabled(string.IsNullOrWhiteSpace(_renamePresetName))) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Check, "Save Changes")) - { - RenamePreset(key, _renamePresetName, _renamePresetDescription); - } - } - ImGui.SameLine(); - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Times, "Cancel")) - { - _renamingPresetKey = null; - _renamePresetName = string.Empty; - _renamePresetDescription = string.Empty; - } - } - else - { - if (!string.IsNullOrEmpty(preset.Description)) - { - ImGui.TextWrapped(preset.Description); - } - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text2 = new ImU8String(26, 2); - text2.AppendLiteral("Created: "); - text2.AppendFormatted(preset.CreatedAt.ToLocalTime(), "g"); - text2.AppendLiteral(" | Total quests: "); - text2.AppendFormatted(preset.QuestIds.Count); - ImGui.TextColored(in col, text2); - } - ImGui.Spacing(); - using (ImRaii.Disabled(availableQuests.Count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Plus, $"Add Available ({availableQuests.Count})")) - { - AddPresetToPriority(availableQuests); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (availableQuests.Count == 0) - { - ImGui.SetTooltip("No available quests to add (all completed or already in priority)."); - } - else - { - ImU8String tooltip = new ImU8String(44, 1); - tooltip.AppendLiteral("Add "); - tooltip.AppendFormatted(availableQuests.Count); - tooltip.AppendLiteral(" available quests to the priority queue."); - ImGui.SetTooltip(tooltip); - } - } - ImGui.SameLine(); - using (ImRaii.Disabled(alreadyPriorityQuests.Count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Minus, $"Remove from Priority ({alreadyPriorityQuests.Count})")) - { - RemovePresetFromPriority(alreadyPriorityQuests); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (alreadyPriorityQuests.Count == 0) - { - ImGui.SetTooltip("No quests from this preset are in the priority queue."); - } - else - { - ImU8String tooltip2 = new ImU8String(39, 1); - tooltip2.AppendLiteral("Remove "); - tooltip2.AppendFormatted(alreadyPriorityQuests.Count); - tooltip2.AppendLiteral(" quests from the priority queue."); - ImGui.SetTooltip(tooltip2); - } - } - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Upload, "Export")) - { - ExportPresetToClipboard(preset); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Export this preset to clipboard for sharing."); - } - ImGui.SameLine(); - using (ImRaii.Disabled(_renamingPresetKey != null)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Pen, "Edit")) - { - _renamingPresetKey = key; - _renamePresetName = preset.Name; - _renamePresetDescription = preset.Description; - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("Edit preset name and description."); - } - ImGui.SameLine(); - int count = _questController.ManualPriorityQuests.Count; - using (ImRaii.Disabled(count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Sync, "Update")) - { - UpdatePresetQuests(key, preset); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (count == 0) - { - ImGui.SetTooltip("Add quests to the priority queue first."); - } - else - { - ImU8String tooltip3 = new ImU8String(71, 1); - tooltip3.AppendLiteral("Replace this preset's quests with the current priority queue ("); - tooltip3.AppendFormatted(count); - tooltip3.AppendLiteral(" quests)."); - ImGui.SetTooltip(tooltip3); - } - } - ImGui.SameLine(); - using (ImRaii.Disabled(!ImGui.IsKeyDown(ImGuiKey.ModCtrl))) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Trash, "Delete")) - { - _presetToDelete = key; - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("Hold CTRL to delete this preset."); - } - ImGui.Spacing(); - ImGui.Separator(); - foreach (ElementId item in availableQuests) - { - if (_questData.TryGetQuestInfo(item, out IQuestInfo questInfo) && _uiUtils.ChecklistItem(questInfo.Name ?? "", ImGuiColors.DalamudYellow, FontAwesomeIcon.Running)) - { - _questTooltipComponent.Draw(questInfo); - } - } - foreach (ElementId item2 in alreadyPriorityQuests) - { - if (_questData.TryGetQuestInfo(item2, out IQuestInfo questInfo2) && _uiUtils.ChecklistItem(questInfo2.Name ?? "", ImGuiColors.DalamudYellow, FontAwesomeIcon.PersonWalkingArrowRight)) - { - _questTooltipComponent.Draw(questInfo2); - } - } - foreach (ElementId item3 in completedQuests) - { - if (_questData.TryGetQuestInfo(item3, out IQuestInfo questInfo3) && _uiUtils.ChecklistItem(questInfo3.Name ?? "", ImGuiColors.ParsedGreen, FontAwesomeIcon.Check)) - { - _questTooltipComponent.Draw(questInfo3); - } - } - foreach (ElementId unknownQuest in GetUnknownQuests(preset.QuestIds)) - { - _uiUtils.ChecklistItem($"Unknown Quest ({unknownQuest})", ImGuiColors.DalamudGrey, FontAwesomeIcon.Question); - } - ImGui.Spacing(); - } - } - else if (_expandedPreset == key) - { - _expandedPreset = null; - } - if (ImGui.IsItemHovered() && !string.IsNullOrEmpty(preset.Description)) - { - ImGui.BeginTooltip(); - ImGui.TextUnformatted(preset.Description); - ImGui.EndTooltip(); - } - } - } - - private void DrawBottomButtons() - { - PresetExportData presetExportData = ParseClipboardPreset(); - List list = ParseClipboardAllPresets(); - using (ImRaii.Disabled(presetExportData == null)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Download, "Import Preset") && presetExportData != null) - { - ImportPresetFromClipboard(presetExportData); - } - } - if (presetExportData == null && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("Copy a valid preset string to clipboard first."); - } - ImGui.SameLine(); - using (ImRaii.Disabled(list == null || list.Count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.FileImport, "Import All" + ((list != null && list.Count > 0) ? $" ({list.Count})" : "")) && list != null) - { - ImportAllPresetsFromClipboard(list); - } - } - if ((list == null || list.Count == 0) && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("Copy a valid 'all presets' export string to clipboard first."); - } - ImGui.SameLine(); - using (ImRaii.Disabled(_configuration.General.SavedPresets.Count == 0)) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.FileExport, $"Export All ({_configuration.General.SavedPresets.Count})")) - { - ExportAllPresetsToClipboard(); - } - } - if (_configuration.General.SavedPresets.Count == 0 && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - ImGui.SetTooltip("No saved presets to export."); - } - ImGui.SameLine(); - using (ImRaii.Disabled(_configuration.General.SavedPresets.Count == 0 || !ImGui.IsKeyDown(ImGuiKey.ModCtrl))) - { - if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Trash, "Clear All")) - { - _configuration.General.SavedPresets.Clear(); - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Cleared all saved presets"); - } - } - if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (_configuration.General.SavedPresets.Count == 0) - { - ImGui.SetTooltip("No saved presets to clear."); - } - else - { - ImGui.SetTooltip("Hold CTRL to clear all saved presets."); - } - } - } - - private void SaveCurrentPreset() - { - List list = _questController.ManualPriorityQuests.Select((Quest q) => q.Id).ToList(); - string key = GeneratePresetKey(_newPresetName); - Configuration.SavedQuestPreset savedQuestPreset = new Configuration.SavedQuestPreset - { - Name = _newPresetName.Trim(), - Description = _newPresetDescription.Trim(), - QuestIds = list, - CreatedAt = DateTime.UtcNow - }; - _configuration.General.SavedPresets[key] = savedQuestPreset; - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Saved preset '{PresetName}' with {Count} quests", savedQuestPreset.Name, list.Count); - _chatGui.Print($"Saved preset '{savedQuestPreset.Name}' with {list.Count} quests.", "Questionable", 576); - _newPresetName = string.Empty; - _newPresetDescription = string.Empty; - _showSaveDialog = false; - } - - private string GeneratePresetKey(string name) - { - string text = "user_" + name.Trim().ToUpperInvariant().Replace(' ', '_'); - string text2 = text; - int num = 1; - while (_configuration.General.SavedPresets.ContainsKey(text2)) - { - text2 = $"{text}_{num}"; - num++; - } - return text2; - } - - private void ExportPresetToClipboard(Configuration.SavedQuestPreset preset) - { - string s = JsonConvert.SerializeObject(new PresetExportData - { - Name = preset.Name, - Description = preset.Description, - QuestIds = preset.QuestIds.Select((ElementId x) => x.ToString()).ToList() - }); - ImGui.SetClipboardText("qst:preset:" + Convert.ToBase64String(Encoding.UTF8.GetBytes(s))); - _chatGui.Print("Exported preset '" + preset.Name + "' to clipboard.", "Questionable", 576); - } - - private void ExportAllPresetsToClipboard() - { - List list = _configuration.General.SavedPresets.Values.Select((Configuration.SavedQuestPreset preset) => new PresetExportData - { - Name = preset.Name, - Description = preset.Description, - QuestIds = preset.QuestIds.Select((ElementId x) => x.ToString()).ToList() - }).ToList(); - string s = JsonConvert.SerializeObject(list); - ImGui.SetClipboardText("qst:presets:" + Convert.ToBase64String(Encoding.UTF8.GetBytes(s))); - _chatGui.Print($"Exported {list.Count} presets to clipboard.", "Questionable", 576); - } - - private static PresetExportData? ParseClipboardPreset() - { - try - { - string text = ImGui.GetClipboardText().Trim(); - if (text.StartsWith("qst:preset:", StringComparison.InvariantCulture)) - { - string text2 = text; - int length = "qst:preset:".Length; - string s = text2.Substring(length, text2.Length - length); - return JsonConvert.DeserializeObject(Encoding.UTF8.GetString(Convert.FromBase64String(s))); - } - } - catch (Exception) - { - } - return null; - } - - private static List? ParseClipboardAllPresets() - { - try - { - string text = ImGui.GetClipboardText().Trim(); - if (text.StartsWith("qst:presets:", StringComparison.InvariantCulture)) - { - string text2 = text; - int length = "qst:presets:".Length; - string s = text2.Substring(length, text2.Length - length); - return JsonConvert.DeserializeObject>(Encoding.UTF8.GetString(Convert.FromBase64String(s))); - } - } - catch (Exception) - { - } - return null; - } - - private void ImportPresetFromClipboard(PresetExportData exportData) - { - List list = exportData.QuestIds.Select((string id) => ElementId.FromString(id)).ToList(); - string key = GeneratePresetKey(exportData.Name); - Configuration.SavedQuestPreset savedQuestPreset = new Configuration.SavedQuestPreset - { - Name = exportData.Name, - Description = exportData.Description, - QuestIds = list, - CreatedAt = DateTime.UtcNow - }; - _configuration.General.SavedPresets[key] = savedQuestPreset; - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Imported preset '{PresetName}' with {Count} quests from clipboard", savedQuestPreset.Name, list.Count); - _chatGui.Print($"Imported preset '{savedQuestPreset.Name}' with {list.Count} quests.", "Questionable", 576); - } - - private void ImportAllPresetsFromClipboard(List allExportData) - { - int num = 0; - foreach (PresetExportData allExportDatum in allExportData) - { - List questIds = allExportDatum.QuestIds.Select((string id) => ElementId.FromString(id)).ToList(); - string key = GeneratePresetKey(allExportDatum.Name); - Configuration.SavedQuestPreset value = new Configuration.SavedQuestPreset - { - Name = allExportDatum.Name, - Description = allExportDatum.Description, - QuestIds = questIds, - CreatedAt = DateTime.UtcNow - }; - _configuration.General.SavedPresets[key] = value; - num++; - } - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Imported {Count} presets from clipboard", num); - _chatGui.Print($"Imported {num} presets from clipboard.", "Questionable", 576); - } - - private void AddPresetToPriority(List questIds) - { - int num = 0; - foreach (ElementId questId in questIds) - { - if (_questController.AddQuestPriority(questId)) - { - num++; - } - } - if (num > 0) - { - _chatGui.Print($"Added {num} quests to priority queue.", "Questionable", 576); - } - _logger.LogInformation("Added {Count} quests from saved preset to priority list", num); - } - - private void RemovePresetFromPriority(List questIds) - { - int num = 0; - foreach (ElementId questId in questIds) - { - Quest quest = _questController.ManualPriorityQuests.FirstOrDefault((Quest q) => q.Id.Equals(questId)); - if (quest != null) - { - _questController.ManualPriorityQuests.Remove(quest); - num++; - } - } - if (num > 0) - { - _questController.SavePriorityQuests(); - _chatGui.Print($"Removed {num} quests from priority queue.", "Questionable", 576); - _logger.LogInformation("Removed {Count} quests from priority list", num); - } - } - - private void UpdatePresetQuests(string key, Configuration.SavedQuestPreset preset) - { - List list = _questController.ManualPriorityQuests.Select((Quest q) => q.Id).ToList(); - int count = preset.QuestIds.Count; - preset.QuestIds = list; - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Updated preset '{PresetName}' from {OldCount} to {NewCount} quests", preset.Name, count, list.Count); - _chatGui.Print($"Updated preset '{preset.Name}' with {list.Count} quests (was {count}).", "Questionable", 576); - } - - private void RenamePreset(string key, string newName, string newDescription) - { - if (_configuration.General.SavedPresets.TryGetValue(key, out Configuration.SavedQuestPreset value)) - { - string name = value.Name; - value.Name = newName.Trim(); - value.Description = newDescription.Trim(); - _pluginInterface.SavePluginConfig(_configuration); - _logger.LogInformation("Updated preset '{OldName}' to '{NewName}'", name, value.Name); - } - _renamingPresetKey = null; - _renamePresetName = string.Empty; - _renamePresetDescription = string.Empty; - } - - private List GetAvailableQuests(List questIds) - { - return (from questId in questIds - where _questFunctions.IsReadyToAcceptQuest(questId) || _questFunctions.IsQuestAccepted(questId) - where !_questController.ManualPriorityQuests.Any((Quest q) => q.Id.Equals(questId)) - where _questRegistry.IsKnownQuest(questId) - select questId).ToList(); - } - - private List GetCompletedQuests(List questIds) - { - return questIds.Where((ElementId questId) => _questFunctions.IsQuestComplete(questId)).ToList(); - } - - private List GetAlreadyPriorityQuests(List questIds) - { - return (from questId in questIds - where _questController.ManualPriorityQuests.Any((Quest q) => q.Id.Equals(questId)) - where !_questFunctions.IsQuestComplete(questId) - select questId).ToList(); - } - - private List GetUnknownQuests(List questIds) - { - IQuestInfo questInfo; - return questIds.Where((ElementId questId) => !_questData.TryGetQuestInfo(questId, out questInfo)).ToList(); - } -} diff --git a/Questionable/Questionable.Windows.QuestComponents/ValidationDetailsRenderer.cs b/Questionable/Questionable.Windows.QuestComponents/ValidationDetailsRenderer.cs index d90dce0..177f822 100644 --- a/Questionable/Questionable.Windows.QuestComponents/ValidationDetailsRenderer.cs +++ b/Questionable/Questionable.Windows.QuestComponents/ValidationDetailsRenderer.cs @@ -133,33 +133,33 @@ internal sealed class ValidationDetailsRenderer if (issue.ElementId != null) { IQuestInfo questInfo = _questData.GetQuestInfo(issue.ElementId); - ImU8String text2 = new ImU8String(10, 2); - text2.AppendLiteral("Quest: "); - text2.AppendFormatted(issue.ElementId); - text2.AppendLiteral(" - "); - text2.AppendFormatted(questInfo.Name); - ImGui.Text(text2); + ImU8String text = new ImU8String(10, 2); + text.AppendLiteral("Quest: "); + text.AppendFormatted(issue.ElementId); + text.AppendLiteral(" - "); + text.AppendFormatted(questInfo.Name); + ImGui.Text(text); } else if (issue.AlliedSociety != EAlliedSociety.None) { - ImU8String text3 = new ImU8String(16, 1); - text3.AppendLiteral("Allied Society: "); - text3.AppendFormatted(issue.AlliedSociety); - ImGui.Text(text3); + ImU8String text = new ImU8String(16, 1); + text.AppendLiteral("Allied Society: "); + text.AppendFormatted(issue.AlliedSociety); + ImGui.Text(text); } if (issue.Sequence.HasValue) { - ImU8String text4 = new ImU8String(10, 1); - text4.AppendLiteral("Sequence: "); - text4.AppendFormatted(issue.Sequence); - ImGui.Text(text4); + ImU8String text = new ImU8String(10, 1); + text.AppendLiteral("Sequence: "); + text.AppendFormatted(issue.Sequence); + ImGui.Text(text); } if (issue.Step.HasValue) { - ImU8String text5 = new ImU8String(6, 1); - text5.AppendLiteral("Step: "); - text5.AppendFormatted(issue.Step); - ImGui.Text(text5); + ImU8String text = new ImU8String(6, 1); + text.AppendLiteral("Step: "); + text.AppendFormatted(issue.Step); + ImGui.Text(text); } ImGui.Separator(); ImGui.Text("Description:"); @@ -270,19 +270,19 @@ internal sealed class ValidationDetailsRenderer } catch { - ImU8String text2 = new ImU8String(18, 1); - text2.AppendLiteral("\ufffd "); - text2.AppendFormatted(value); - text2.AppendLiteral(" (unknown quest)"); - ImGui.TextWrapped(text2); + ImU8String text = new ImU8String(18, 1); + text.AppendLiteral("\ufffd "); + text.AppendFormatted(value); + text.AppendLiteral(" (unknown quest)"); + ImGui.TextWrapped(text); } } else { - ImU8String text3 = new ImU8String(2, 1); - text3.AppendLiteral("\ufffd "); - text3.AppendFormatted(value); - ImGui.TextWrapped(text3); + ImU8String text = new ImU8String(2, 1); + text.AppendLiteral("\ufffd "); + text.AppendFormatted(value); + ImGui.TextWrapped(text); } } } @@ -351,10 +351,10 @@ internal sealed class ValidationDetailsRenderer { text2 = "JSON schema validation failed - check that all properties match the expected format and values"; } - ImU8String text3 = new ImU8String(2, 1); - text3.AppendLiteral("\ufffd "); - text3.AppendFormatted(text2); - ImGui.TextWrapped(text3); + ImU8String text = new ImU8String(2, 1); + text.AppendLiteral("\ufffd "); + text.AppendFormatted(text2); + ImGui.TextWrapped(text); ImGui.Unindent(12f); } } diff --git a/Questionable/Questionable.Windows.Utils/QuestSelector.cs b/Questionable/Questionable.Windows.Utils/QuestSelector.cs index 08aee3b..c969145 100644 --- a/Questionable/Questionable.Windows.Utils/QuestSelector.cs +++ b/Questionable/Questionable.Windows.Utils/QuestSelector.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Numerics; using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Utility.Raii; using Questionable.Controller; using Questionable.Model; using Questionable.Model.Questing; @@ -14,8 +12,6 @@ internal sealed class QuestSelector(QuestRegistry questRegistry) { private string _searchString = string.Empty; - private bool _comboJustOpened; - public Predicate? SuggestionPredicate { private get; set; } public Predicate? DefaultPredicate { private get; set; } @@ -31,18 +27,12 @@ internal sealed class QuestSelector(QuestRegistry questRegistry) ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); if (ImGui.BeginCombo("##QuestSelection", "Add Quest...", ImGuiComboFlags.HeightLarge)) { - if (!_comboJustOpened) - { - ImGui.SetKeyboardFocusHere(); - _comboJustOpened = true; - } - ImGui.SetNextItemWidth(-1f); - bool flag = ImGui.InputTextWithHint("##QuestSearch", "Search quests...", ref _searchString, 256, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.EnterReturnsTrue); - ImGui.Separator(); + ImGui.SetNextItemWidth(ImGui.GetContentRegionAvail().X); + bool flag = ImGui.InputTextWithHint("", "Filter...", ref _searchString, 256, ImGuiInputTextFlags.AutoSelectAll | ImGuiInputTextFlags.EnterReturnsTrue); IEnumerable enumerable; if (!string.IsNullOrEmpty(_searchString)) { - enumerable = Enumerable.Where(predicate: (!ElementId.TryFromString(_searchString, out ElementId elementId)) ? new Func(SearchPredicate) : ((Func)((Quest x) => SearchPredicate(x) || x.Id == elementId)), source: questRegistry.AllQuests.Where(delegate(Quest x) + enumerable = Enumerable.Where(predicate: (!ElementId.TryFromString(_searchString, out ElementId elementId)) ? new Func(DefaultPredicate) : ((Func)((Quest x) => DefaultPredicate(x) || x.Id == elementId)), source: questRegistry.AllQuests.Where(delegate(Quest x) { ElementId id = x.Id; return !(id is SatisfactionSupplyNpcId) && !(id is AlliedSocietyDailyId); @@ -50,35 +40,24 @@ internal sealed class QuestSelector(QuestRegistry questRegistry) } else { - enumerable = questRegistry.AllQuests.Where((Quest x) => DefaultPredicate?.Invoke(x) ?? true); + enumerable = questRegistry.AllQuests.Where((Quest x) => this.DefaultPredicate?.Invoke(x) ?? true); } - using (ImRaii.IEndObject endObject = ImRaii.Child("##QuestScrollArea", new Vector2(0f, 300f), border: false)) + foreach (Quest item in enumerable) { - if (endObject) + if ((SuggestionPredicate == null || SuggestionPredicate(item)) && (ImGui.Selectable(item.Info.Name) || flag)) { - foreach (Quest item in enumerable) + QuestSelected(item); + if (flag) { - if ((SuggestionPredicate == null || SuggestionPredicate(item)) && (ImGui.Selectable(item.Info.Name) || flag)) - { - QuestSelected(item); - _searchString = string.Empty; - if (flag) - { - ImGui.CloseCurrentPopup(); - flag = false; - } - } + ImGui.CloseCurrentPopup(); + flag = false; } } } ImGui.EndCombo(); } - else - { - _comboJustOpened = false; - } ImGui.Spacing(); - bool SearchPredicate(Quest x) + bool DefaultPredicate(Quest x) { return x.Info.Name.Contains(_searchString, StringComparison.CurrentCultureIgnoreCase); } diff --git a/Questionable/Questionable.Windows/ChangelogWindow.cs b/Questionable/Questionable.Windows/ChangelogWindow.cs deleted file mode 100644 index 3b547ca..0000000 --- a/Questionable/Questionable.Windows/ChangelogWindow.cs +++ /dev/null @@ -1,137 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; -using Dalamud.Plugin; -using LLib.ImGui; -using Questionable.Data; -using Questionable.Model.Changelog; -using Questionable.Windows.ChangelogComponents; - -namespace Questionable.Windows; - -internal sealed class ChangelogWindow : LWindow -{ - private readonly Configuration _configuration; - - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly ChangelogHeaderComponent _headerComponent; - - private readonly ChangelogFooterComponent _footerComponent; - - private int _windowOpenCount; - - private bool _hasSetInitialState; - - private float _headerAnimationTime; - - public ChangelogWindow(Configuration configuration, IDalamudPluginInterface pluginInterface) - : base("Questionable Changelog###QuestionableChangelog", ImGuiWindowFlags.NoTitleBar) - { - _configuration = configuration; - _pluginInterface = pluginInterface; - _headerComponent = new ChangelogHeaderComponent(); - _footerComponent = new ChangelogFooterComponent(); - base.Size = new Vector2(900f, 650f); - base.SizeCondition = ImGuiCond.FirstUseEver; - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(700f, 500f), - MaximumSize = new Vector2(float.MaxValue, float.MaxValue) - }; - } - - public override void DrawContent() - { - _headerComponent.Draw(delegate(bool isOpen) - { - base.IsOpen = isOpen; - }); - DrawChangelogEntries(); - ChangelogFooterComponent.Draw(delegate - { - base.IsOpen = false; - }); - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - Vector2 windowPos = ImGui.GetWindowPos(); - Vector2 windowSize = ImGui.GetWindowSize(); - windowDrawList.AddRect(windowPos, windowPos + windowSize, ImGui.ColorConvertFloat4ToU32(new Vector4(0.65f, 0.55f, 0.85f, 0.3f)), 0f, ImDrawFlags.None, 2f); - } - - public override void OnOpen() - { - base.OnOpen(); - _windowOpenCount++; - _hasSetInitialState = false; - _headerAnimationTime = 0f; - _headerComponent.Reset(); - } - - public override void OnClose() - { - base.OnClose(); - MarkAllAsRead(); - } - - private void DrawChangelogEntries() - { - _headerAnimationTime += ImGui.GetIO().DeltaTime; - using (ImRaii.PushColor(ImGuiCol.ScrollbarBg, new Vector4(0.1f, 0.08f, 0.14f, 0.6f))) - { - using (ImRaii.PushColor(ImGuiCol.ScrollbarGrab, new Vector4(0.55f, 0.45f, 0.75f, 0.4f))) - { - using (ImRaii.PushColor(ImGuiCol.ScrollbarGrabHovered, new Vector4(0.65f, 0.55f, 0.85f, 0.6f))) - { - using (ImRaii.PushColor(ImGuiCol.ScrollbarGrabActive, new Vector4(0.75f, 0.55f, 0.95f, 0.8f))) - { - float num = ImGui.GetFrameHeightWithSpacing() + ImGui.GetStyle().ItemSpacing.Y * 2f; - using ImRaii.IEndObject endObject = ImRaii.Child("ChangelogScroll", new Vector2(0f, 0f - num), border: false, ImGuiWindowFlags.NoScrollbar); - if (!endObject) - { - return; - } - using ImRaii.IEndObject endObject2 = ImRaii.Child("ChangelogScrollInner", Vector2.Zero, border: false); - if (!endObject2) - { - return; - } - List changelogs = ChangelogData.Changelogs; - ChangelogEntry changelogEntry = changelogs.FirstOrDefault(); - if (changelogs.Count == 0) - { - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 40f); - Vector2 vector = ImGui.CalcTextSize("No changelog entries available."); - ImGui.SetCursorPosX((ImGui.GetContentRegionAvail().X - vector.X) * 0.5f); - ImGui.TextDisabled("No changelog entries available."); - return; - } - ChangelogEntryComponent changelogEntryComponent = new ChangelogEntryComponent(_configuration, _windowOpenCount, _headerAnimationTime); - foreach (ChangelogEntry item in changelogs) - { - changelogEntryComponent.Draw(item, item == changelogEntry, _hasSetInitialState); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float num2 = ImGui.GetContentRegionAvail().X * 0.5f; - float num3 = (ImGui.GetContentRegionAvail().X - num2) * 0.5f; - ImGui.GetWindowDrawList().AddLine(cursorScreenPos + new Vector2(num3, 0f), cursorScreenPos + new Vector2(num3 + num2, 0f), ImGui.ColorConvertFloat4ToU32(new Vector4(0.55f, 0.45f, 0.75f, 0.1f)), 1f); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 4f); - } - _hasSetInitialState = true; - } - } - } - } - } - - private void MarkAllAsRead() - { - string text = ChangelogData.Changelogs.FirstOrDefault()?.Version; - if (text != null) - { - _configuration.LastViewedChangelogVersion = text; - _pluginInterface.SavePluginConfig(_configuration); - } - } -} diff --git a/Questionable/Questionable.Windows/ConfigWindow.cs b/Questionable/Questionable.Windows/ConfigWindow.cs index ef7f0e0..b1d0813 100644 --- a/Questionable/Questionable.Windows/ConfigWindow.cs +++ b/Questionable/Questionable.Windows/ConfigWindow.cs @@ -1,8 +1,5 @@ -using System.Numerics; using Dalamud.Bindings.ImGui; -using Dalamud.Interface; using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; using Dalamud.Plugin; using LLib.ImGui; using Questionable.Windows.ConfigComponents; @@ -23,8 +20,6 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig private readonly StopConditionComponent _stopConditionComponent; - private readonly BlacklistConfigComponent _blacklistConfigComponent; - private readonly NotificationConfigComponent _notificationConfigComponent; private readonly DebugConfigComponent _debugConfigComponent; @@ -33,7 +28,7 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig public WindowConfig WindowConfig => _configuration.ConfigWindowConfig; - public ConfigWindow(IDalamudPluginInterface pluginInterface, GeneralConfigComponent generalConfigComponent, PluginConfigComponent pluginConfigComponent, DutyConfigComponent dutyConfigComponent, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, StopConditionComponent stopConditionComponent, BlacklistConfigComponent blacklistConfigComponent, NotificationConfigComponent notificationConfigComponent, DebugConfigComponent debugConfigComponent, Configuration configuration, ChangelogWindow changelogWindow) + public ConfigWindow(IDalamudPluginInterface pluginInterface, GeneralConfigComponent generalConfigComponent, PluginConfigComponent pluginConfigComponent, DutyConfigComponent dutyConfigComponent, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, StopConditionComponent stopConditionComponent, NotificationConfigComponent notificationConfigComponent, DebugConfigComponent debugConfigComponent, Configuration configuration) : base("Config - Questionable###QuestionableConfig", ImGuiWindowFlags.AlwaysAutoResize) { _pluginInterface = pluginInterface; @@ -42,25 +37,9 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig _dutyConfigComponent = dutyConfigComponent; _singlePlayerDutyConfigComponent = singlePlayerDutyConfigComponent; _stopConditionComponent = stopConditionComponent; - _blacklistConfigComponent = blacklistConfigComponent; _notificationConfigComponent = notificationConfigComponent; _debugConfigComponent = debugConfigComponent; _configuration = configuration; - base.TitleBarButtons.Add(new TitleBarButton - { - Icon = FontAwesomeIcon.FileAlt, - IconOffset = new Vector2(1.5f, 1f), - Click = delegate - { - changelogWindow.IsOpenAndUncollapsed = true; - }, - ShowTooltip = delegate - { - ImGui.BeginTooltip(); - ImGui.Text("View Changelog"); - ImGui.EndTooltip(); - } - }); } public override void DrawContent() @@ -73,7 +52,6 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig _dutyConfigComponent.DrawTab(); _singlePlayerDutyConfigComponent.DrawTab(); _stopConditionComponent.DrawTab(); - _blacklistConfigComponent.DrawTab(); _notificationConfigComponent.DrawTab(); _debugConfigComponent.DrawTab(); } diff --git a/Questionable/Questionable.Windows/DebugOverlay.cs b/Questionable/Questionable.Windows/DebugOverlay.cs index e41fa59..5344a41 100644 --- a/Questionable/Questionable.Windows/DebugOverlay.cs +++ b/Questionable/Questionable.Windows/DebugOverlay.cs @@ -75,7 +75,7 @@ internal sealed class DebugOverlay : Window return; } IClientState clientState = _clientState; - if (clientState != null && clientState.IsLoggedIn && !clientState.IsPvPExcludingDen && _objectTable.LocalPlayer != null && _questController.IsQuestWindowOpen) + if (clientState != null && clientState.IsLoggedIn && clientState.LocalPlayer != null && !clientState.IsPvPExcludingDen && _questController.IsQuestWindowOpen) { DrawCurrentQuest(); DrawHighlightedQuest(); @@ -103,7 +103,7 @@ internal sealed class DebugOverlay : Window QuestStep questStep = questSequence.FindStep(i); if (questStep != null && TryGetPosition(questStep, out var position)) { - DrawStep(i.ToString(CultureInfo.InvariantCulture), questStep, position.Value, (Vector3.Distance(_objectTable.LocalPlayer.Position, position.Value) < questStep.CalculateActualStopDistance()) ? 4278255360u : 4278190335u); + DrawStep(i.ToString(CultureInfo.InvariantCulture), questStep, position.Value, (Vector3.Distance(_clientState.LocalPlayer.Position, position.Value) < questStep.CalculateActualStopDistance()) ? 4278255360u : 4278190335u); } } } @@ -141,7 +141,7 @@ internal sealed class DebugOverlay : Window text.AppendLiteral("\n"); text.AppendFormatted(position.ToString("G", CultureInfo.InvariantCulture)); text.AppendLiteral(" ["); - text.AppendFormatted((position - _objectTable.LocalPlayer.Position).Length(), "N2"); + text.AppendFormatted((position - _clientState.LocalPlayer.Position).Length(), "N2"); text.AppendLiteral("]\n"); text.AppendFormatted(step.Comment); windowDrawList.AddText(pos, color, text); @@ -175,7 +175,7 @@ internal sealed class DebugOverlay : Window text.AppendLiteral(" - "); text.AppendFormatted(item2); text.AppendLiteral(", "); - text.AppendFormatted(Vector3.Distance(item3.Position, _objectTable.LocalPlayer.Position), "N2"); + text.AppendFormatted(Vector3.Distance(item3.Position, _clientState.LocalPlayer.Position), "N2"); text.AppendLiteral(", "); text.AppendFormatted(item3.IsTargetable); windowDrawList.AddText(pos, (uint)col, text); diff --git a/Questionable/Questionable.Windows/FateSelectionWindow.cs b/Questionable/Questionable.Windows/FateSelectionWindow.cs deleted file mode 100644 index 9385541..0000000 --- a/Questionable/Questionable.Windows/FateSelectionWindow.cs +++ /dev/null @@ -1,428 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Numerics; -using System.Runtime.CompilerServices; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; -using LLib.ImGui; -using Questionable.Controller; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Windows; - -internal sealed class FateSelectionWindow : LWindow -{ - private readonly FateController _fateController; - - private readonly FateDefinitionRegistry _fateDefinitionRegistry; - - private readonly QuestController _questController; - - private readonly MovementController _movementController; - - private readonly QuestFunctions _questFunctions; - - private readonly QuestData _questData; - - private readonly TerritoryData _territoryData; - - private int _cycleLimit; - - public FateSelectionWindow(FateController fateController, FateDefinitionRegistry fateDefinitionRegistry, QuestController questController, MovementController movementController, QuestFunctions questFunctions, QuestData questData, TerritoryData territoryData) - : base("FATE Farming###QuestionableFateFarming") - { - _fateController = fateController; - _fateDefinitionRegistry = fateDefinitionRegistry; - _questController = questController; - _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 (_fateController.IsRunning) - { - DrawRunningHeader(); - } - else - { - DrawControlsStrip(); - } - if (_fateDefinitionRegistry.Definitions.Count == 0) - { - DrawEmptyState(); - } - else - { - DrawFateTable(); - } - } - - 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.22f, 0.2f, 0.28f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.16f, 0.24f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.16f, 0.24f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.22f, 0.2f, 0.28f, 0.85f))); - windowDrawList.AddLine(cursorScreenPos + new Vector2(0f, num), cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.7f, 0.6f, 0.9f, 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(1f * num3, 0.85f * num3, 0f, 1f); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(in col, FontAwesomeIcon.Star.ToIconString()); - } - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.ParsedGold, _fateController.CurrentFate.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)) - { - _fateController.Stop("UI stop"); - _movementController.Stop(); - } - } - } - } - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - string value = (_fateController.CycleLimit.HasValue ? $"Cycle {_fateController.CompletedCycles + 1} / {_fateController.CycleLimit}" : $"Cycle {_fateController.CompletedCycles + 1}"); - string value2 = FormatElapsed(_fateController.ElapsedTime); - IList remainingTaskNames = _fateController.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(_fateController.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.6f, 0.5f, 0.8f, 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 FATE 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 FATE definitions to the FatePaths 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 DrawFateTable() - { - List list = _fateDefinitionRegistry.Definitions.Values.OrderBy(delegate(FateDefinition f) - { - DateTime? eventExpiry = f.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - if (EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow > TimeSpan.Zero) - { - return 0; - } - } - return 1; - }).ThenBy(delegate(FateDefinition f) - { - DateTime? eventExpiry = f.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((FateDefinition f) => f.Name, StringComparer.OrdinalIgnoreCase) - .ToList(); - using ImRaii.IEndObject endObject = ImRaii.Table("FateTable", 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 (FateDefinition item in list) - { - ImGui.TableNextRow(); - bool flag = _fateController.IsRunning && _fateController.CurrentFate == 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(1f, 0.85f, 0f, w))); - } - ImGui.TableNextColumn(); - DrawFateRowName(item, flag); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(_territoryData.GetName(item.TerritoryId) ?? item.Description); - ImGui.TableNextColumn(); - DrawFateRowExpiry(item); - ImGui.TableNextColumn(); - bool disabled = _fateController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual; - DrawFateRowActions(item, disabled); - } - } - - private void DrawFateRowName(FateDefinition fate, bool isActive) - { - if (isActive) - { - float num = (float)ImGui.GetTime(); - float num2 = 0.85f + MathF.Sin(num * 3f) * 0.15f; - ImGui.TextColored(new Vector4(1f * num2, 0.85f * num2, 0f, 1f), fate.Name); - } - else - { - ImGui.TextUnformatted(fate.Name); - } - if (!ImGui.IsItemHovered()) - { - return; - } - using (ImRaii.Tooltip()) - { - ImGui.TextColored(ImGuiColors.DalamudWhite, fate.Name); - ImGui.Separator(); - ImGui.PushTextWrapPos(300f); - ImGui.TextUnformatted(fate.Description); - ImGui.PopTextWrapPos(); - ImGui.Spacing(); - string nameAndId = _territoryData.GetNameAndId(fate.TerritoryId); - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("Zone: "); - text.AppendFormatted(nameAndId); - ImGui.TextColored(in col, text); - col = ImGuiColors.DalamudGrey; - ImU8String text2 = new ImU8String(9, 1); - text2.AppendLiteral("Targets: "); - text2.AppendFormatted(fate.Targets.Count); - ImGui.TextColored(in col, text2); - if (fate.RequiredStatusId.HasValue) - { - ImGui.TextColored(ImGuiColors.DalamudYellow, "Requires transformation"); - } - DateTime? eventExpiry = fate.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - string text3 = EventInfoComponent.FormatRemainingFull(timeSpan); - ImGui.TextColored(ImGuiColors.DalamudOrange, text3); - } - } - } - } - - private static void DrawFateRowExpiry(FateDefinition fate) - { - DateTime? eventExpiry = fate.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 DrawFateRowActions(FateDefinition fate, bool disabled) - { - bool flag = fate.RequiredQuestId.HasValue && !_questFunctions.IsQuestComplete(new QuestId(fate.RequiredQuestId.Value)); - ImU8String id = new ImU8String(5, 1); - id.AppendLiteral("fate_"); - id.AppendFormatted(fate.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(fate.RequiredQuestId.Value), out questInfo) ? questInfo.Name : fate.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("FATE farming start"); - _movementController.Stop(); - int? cycleLimit = ((_cycleLimit > 0) ? new int?(_cycleLimit) : ((int?)null)); - _fateController.Start(fate, cycleLimit); - } - } - if (disabled && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (_fateController.IsRunning) - { - ImGui.SetTooltip("Already farming a FATE"); - } - 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.Windows/JournalProgressWindow.cs b/Questionable/Questionable.Windows/JournalProgressWindow.cs index 2614037..386aefc 100644 --- a/Questionable/Questionable.Windows/JournalProgressWindow.cs +++ b/Questionable/Questionable.Windows/JournalProgressWindow.cs @@ -19,26 +19,21 @@ internal sealed class JournalProgressWindow : LWindow, IDisposable private readonly GatheringJournalComponent _gatheringJournalComponent; - private readonly DutyJournalComponent _dutyJournalComponent; - private readonly QuestRegistry _questRegistry; private readonly IClientState _clientState; - public JournalProgressWindow(QuestJournalComponent questJournalComponent, QuestRewardComponent questRewardComponent, AlliedSocietyJournalComponent alliedSocietyJournalComponent, GatheringJournalComponent gatheringJournalComponent, DutyJournalComponent dutyJournalComponent, QuestRegistry questRegistry, IClientState clientState) + public JournalProgressWindow(QuestJournalComponent questJournalComponent, QuestRewardComponent questRewardComponent, AlliedSocietyJournalComponent alliedSocietyJournalComponent, GatheringJournalComponent gatheringJournalComponent, QuestRegistry questRegistry, IClientState clientState) : base("Journal Progress###QuestionableJournalProgress") { _questJournalComponent = questJournalComponent; _alliedSocietyJournalComponent = alliedSocietyJournalComponent; _questRewardComponent = questRewardComponent; _gatheringJournalComponent = gatheringJournalComponent; - _dutyJournalComponent = dutyJournalComponent; _questRegistry = questRegistry; _clientState = clientState; _clientState.Login += _questJournalComponent.RefreshCounts; - _clientState.Logout += _dutyJournalComponent.ClearCounts; _clientState.Login += _gatheringJournalComponent.RefreshCounts; - _clientState.Login += _dutyJournalComponent.RefreshCounts; _clientState.Logout += _questJournalComponent.ClearCounts; _clientState.Logout += _gatheringJournalComponent.ClearCounts; _questRegistry.Reloaded += OnQuestsReloaded; @@ -51,7 +46,6 @@ internal sealed class JournalProgressWindow : LWindow, IDisposable private void OnQuestsReloaded(object? sender, EventArgs e) { _questJournalComponent.RefreshCounts(); - _dutyJournalComponent.RefreshCounts(); _gatheringJournalComponent.RefreshCounts(); } @@ -59,8 +53,6 @@ internal sealed class JournalProgressWindow : LWindow, IDisposable { _questJournalComponent.UpdateFilter(); _questJournalComponent.RefreshCounts(); - _dutyJournalComponent.UpdateFilter(); - _dutyJournalComponent.RefreshCounts(); _gatheringJournalComponent.UpdateFilter(); _gatheringJournalComponent.RefreshCounts(); } @@ -71,7 +63,6 @@ internal sealed class JournalProgressWindow : LWindow, IDisposable if (!(!endObject)) { _questJournalComponent.DrawQuests(); - _dutyJournalComponent.DrawDuties(); _alliedSocietyJournalComponent.DrawAlliedSocietyQuests(); _questRewardComponent.DrawItemRewards(); _gatheringJournalComponent.DrawGatheringItems(); @@ -83,9 +74,7 @@ internal sealed class JournalProgressWindow : LWindow, IDisposable _questRegistry.Reloaded -= OnQuestsReloaded; _clientState.Logout -= _gatheringJournalComponent.ClearCounts; _clientState.Logout -= _questJournalComponent.ClearCounts; - _clientState.Login -= _dutyJournalComponent.RefreshCounts; _clientState.Login -= _gatheringJournalComponent.RefreshCounts; - _clientState.Logout -= _dutyJournalComponent.ClearCounts; _clientState.Login -= _questJournalComponent.RefreshCounts; } } diff --git a/Questionable/Questionable.Windows/PriorityWindow.cs b/Questionable/Questionable.Windows/PriorityWindow.cs index 5478537..e25e42c 100644 --- a/Questionable/Questionable.Windows/PriorityWindow.cs +++ b/Questionable/Questionable.Windows/PriorityWindow.cs @@ -28,14 +28,11 @@ internal sealed class PriorityWindow : LWindow private readonly PresetBuilderComponent _presetBuilderComponent; - private readonly SavedPresetsComponent _savedPresetsComponent; - - public PriorityWindow(QuestController questController, QuestFunctions questFunctions, QuestSelector questSelector, QuestTooltipComponent questTooltipComponent, PresetBuilderComponent presetBuilderComponent, SavedPresetsComponent savedPresetsComponent, UiUtils uiUtils, IChatGui chatGui, IDalamudPluginInterface pluginInterface) + public PriorityWindow(QuestController questController, QuestFunctions questFunctions, QuestSelector questSelector, QuestTooltipComponent questTooltipComponent, PresetBuilderComponent presetBuilderComponent, UiUtils uiUtils, IChatGui chatGui, IDalamudPluginInterface pluginInterface) : base("Quest Priority###QuestionableQuestPriority") { _manualPriorityComponent = new ManualPriorityComponent(questController, questFunctions, questSelector, questTooltipComponent, uiUtils, chatGui, pluginInterface); _presetBuilderComponent = presetBuilderComponent; - _savedPresetsComponent = savedPresetsComponent; base.Size = new Vector2(500f, 500f); base.SizeCondition = ImGuiCond.Once; base.SizeConstraints = new WindowSizeConstraints @@ -59,17 +56,10 @@ internal sealed class PriorityWindow : LWindow _manualPriorityComponent.Draw(); } } - using (ImRaii.IEndObject endObject3 = ImRaii.TabItem("Quest Presets")) + using ImRaii.IEndObject endObject3 = ImRaii.TabItem("Quest Presets"); + if (endObject3) { - if (endObject3) - { - _presetBuilderComponent.Draw(); - } - } - using ImRaii.IEndObject endObject4 = ImRaii.TabItem("Saved Presets"); - if (endObject4) - { - _savedPresetsComponent.Draw(); + _presetBuilderComponent.Draw(); } } diff --git a/Questionable/Questionable.Windows/QuestSequenceWindow.cs b/Questionable/Questionable.Windows/QuestSequenceWindow.cs deleted file mode 100644 index 7c2e568..0000000 --- a/Questionable/Questionable.Windows/QuestSequenceWindow.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; -using Dalamud.Plugin; -using LLib.ImGui; -using Questionable.Model.Questing; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Windows; - -internal sealed class QuestSequenceWindow : LWindow, IPersistableWindowConfig -{ - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly Configuration _configuration; - - private readonly QuestSequenceComponent _questSequenceComponent; - - private bool _selectLookupTabNextFrame; - - public WindowConfig WindowConfig => _configuration.QuestSequenceWindowConfig; - - public QuestSequenceWindow(IDalamudPluginInterface pluginInterface, Configuration configuration, QuestSequenceComponent questSequenceComponent) - : base("Quest Sequence Viewer###QuestionableQuestSequenceViewer", ImGuiWindowFlags.NoTitleBar) - { - _pluginInterface = pluginInterface; - _configuration = configuration; - _questSequenceComponent = questSequenceComponent; - base.Size = new Vector2(950f, 700f); - base.SizeCondition = ImGuiCond.FirstUseEver; - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(750f, 550f), - MaximumSize = new Vector2(float.MaxValue, float.MaxValue) - }; - } - - public void SaveWindowConfig() - { - _pluginInterface.SavePluginConfig(_configuration); - } - - public void OpenForQuest(ElementId questId) - { - _questSequenceComponent.SetLookedUpQuest(questId); - _selectLookupTabNextFrame = true; - base.IsOpenAndUncollapsed = true; - } - - public override void DrawContent() - { - bool isOpen = base.IsOpen; - QuestSequenceComponent.DrawCustomHeader(ref isOpen); - base.IsOpen = isOpen; - ImGui.Spacing(); - ImGui.Spacing(); - using (ImRaii.PushColor(ImGuiCol.Tab, new Vector4(0.15f, 0.13f, 0.2f, 0.7f))) - { - using (ImRaii.PushColor(ImGuiCol.TabHovered, new Vector4(0.35f, 0.3f, 0.45f, 0.9f))) - { - using (ImRaii.PushColor(ImGuiCol.TabActive, new Vector4(0.28f, 0.24f, 0.35f, 1f))) - { - using ImRaii.IEndObject endObject = ImRaii.TabBar("QuestSequenceTabs", ImGuiTabBarFlags.None); - if (!endObject) - { - return; - } - using (ImRaii.IEndObject endObject2 = ImRaii.TabItem("Current Quest", ImGuiTabItemFlags.None)) - { - if (endObject2) - { - ImGui.Spacing(); - _questSequenceComponent.DrawCurrentQuestTab(); - } - } - ImGuiTabItemFlags flags = (_selectLookupTabNextFrame ? ImGuiTabItemFlags.SetSelected : ImGuiTabItemFlags.None); - using (ImRaii.IEndObject endObject3 = ImRaii.TabItem("Quest Lookup", flags)) - { - if (endObject3) - { - ImGui.Spacing(); - _questSequenceComponent.DrawQuestLookupTab(); - } - } - _selectLookupTabNextFrame = false; - } - } - } - QuestSequenceComponent.DrawWindowBorder(); - } -} diff --git a/Questionable/Questionable.Windows/QuestWindow.cs b/Questionable/Questionable.Windows/QuestWindow.cs index ba096c6..f84c2eb 100644 --- a/Questionable/Questionable.Windows/QuestWindow.cs +++ b/Questionable/Questionable.Windows/QuestWindow.cs @@ -18,14 +18,10 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig { private static readonly Version PluginVersion = typeof(QuestionablePlugin).Assembly.GetName().Version; - private const string TestingSuffix = ""; - private readonly IDalamudPluginInterface _pluginInterface; private readonly QuestController _questController; - private readonly IObjectTable _objectTable; - private readonly IClientState _clientState; private readonly Configuration _configuration; @@ -54,13 +50,12 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig public bool IsMinimized { get; set; } - public QuestWindow(IDalamudPluginInterface pluginInterface, QuestController questController, IObjectTable objectTable, IClientState clientState, Configuration configuration, TerritoryData territoryData, ActiveQuestComponent activeQuestComponent, ARealmRebornComponent aRealmRebornComponent, EventInfoComponent eventInfoComponent, CreationUtilsComponent creationUtilsComponent, QuickAccessButtonsComponent quickAccessButtonsComponent, RemainingTasksComponent remainingTasksComponent, IFramework framework, InteractionUiController interactionUiController, ConfigWindow configWindow) - : base("Questionable v" + PluginVersion.ToString(3) + "###Questionable", ImGuiWindowFlags.AlwaysAutoResize) + public QuestWindow(IDalamudPluginInterface pluginInterface, QuestController questController, IClientState clientState, Configuration configuration, TerritoryData territoryData, ActiveQuestComponent activeQuestComponent, ARealmRebornComponent aRealmRebornComponent, EventInfoComponent eventInfoComponent, CreationUtilsComponent creationUtilsComponent, QuickAccessButtonsComponent quickAccessButtonsComponent, RemainingTasksComponent remainingTasksComponent, IFramework framework, InteractionUiController interactionUiController, ConfigWindow configWindow) + : base("Questionable v" + PluginVersion.ToString(2) + "###Questionable", ImGuiWindowFlags.AlwaysAutoResize) { QuestWindow questWindow = this; _pluginInterface = pluginInterface; _questController = questController; - _objectTable = objectTable; _clientState = clientState; _configuration = configuration; _territoryData = territoryData; @@ -139,7 +134,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig { return false; } - if (!_clientState.IsLoggedIn || _objectTable.LocalPlayer == null || _clientState.IsPvPExcludingDen) + if (!_clientState.IsLoggedIn || _clientState.LocalPlayer == null || _clientState.IsPvPExcludingDen) { return false; } @@ -191,6 +186,6 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig _framework.RunOnTick(delegate { _interactionUiController.HandleCurrentDialogueChoices(); - }, TimeSpan.FromMilliseconds(200L)); + }, TimeSpan.FromMilliseconds(200L, 0L)); } } diff --git a/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs b/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs deleted file mode 100644 index d2c6789..0000000 --- a/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs +++ /dev/null @@ -1,424 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Numerics; -using System.Runtime.CompilerServices; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; -using LLib.ImGui; -using Questionable.Controller; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Windows; - -internal sealed class SeasonalDutySelectionWindow : LWindow -{ - private readonly SeasonalDutyController _seasonalDutyController; - - private readonly SeasonalDutyDefinitionRegistry _seasonalDutyDefinitionRegistry; - - private readonly QuestController _questController; - - private readonly FateController _fateController; - - private readonly MovementController _movementController; - - private readonly QuestFunctions _questFunctions; - - private readonly QuestData _questData; - - private readonly TerritoryData _territoryData; - - private int _cycleLimit; - - public SeasonalDutySelectionWindow(SeasonalDutyController seasonalDutyController, SeasonalDutyDefinitionRegistry seasonalDutyDefinitionRegistry, QuestController questController, FateController fateController, MovementController movementController, QuestFunctions questFunctions, QuestData questData, TerritoryData territoryData) - : base("Seasonal Duty Farming###QuestionableSeasonalDutyFarming") - { - _seasonalDutyController = seasonalDutyController; - _seasonalDutyDefinitionRegistry = seasonalDutyDefinitionRegistry; - _questController = questController; - _fateController = fateController; - _movementController = movementController; - _questFunctions = questFunctions; - _questData = questData; - _territoryData = territoryData; - base.Size = new Vector2(600f, 400f); - base.SizeCondition = ImGuiCond.FirstUseEver; - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(500f, 300f), - MaximumSize = new Vector2(900f, 700f) - }; - } - - public override void DrawContent() - { - if (_seasonalDutyController.IsRunning) - { - DrawRunningHeader(); - } - else - { - DrawControlsStrip(); - } - if (_seasonalDutyDefinitionRegistry.Definitions.Count == 0) - { - DrawEmptyState(); - } - else - { - DrawDutyTable(); - } - } - - private void DrawRunningHeader() - { - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X; - float num = ImGui.GetTextLineHeightWithSpacing() * 3f + ImGui.GetStyle().ItemSpacing.Y * 3f; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.26f, 0.2f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.14f, 0.22f, 0.16f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.14f, 0.22f, 0.16f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.26f, 0.2f, 0.85f))); - windowDrawList.AddLine(cursorScreenPos + new Vector2(0f, num), cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.3f, 0.8f, 0.4f, 0.5f)), 2f); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + ImGui.GetStyle().ItemSpacing.Y); - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - float num2 = (float)ImGui.GetTime(); - float num3 = 0.85f + MathF.Sin(num2 * 3f) * 0.15f; - Vector4 col = new Vector4(0f, 1f * num3, 0.3f * num3, 1f); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(in col, FontAwesomeIcon.Leaf.ToIconString()); - } - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.ParsedGreen, _seasonalDutyController.CurrentDuty.Name); - ImGui.SameLine(x - 35f); - using (ImRaii.PushColor(ImGuiCol.Button, Vector4.Zero)) - { - using (ImRaii.PushColor(ImGuiCol.ButtonHovered, new Vector4(0.8f, 0.3f, 0.3f, 0.4f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonActive, new Vector4(0.9f, 0.2f, 0.2f, 0.6f))) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) - { - _seasonalDutyController.Stop("UI stop"); - _movementController.Stop(); - } - } - } - } - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - string value = (_seasonalDutyController.CycleLimit.HasValue ? $"Cycle {_seasonalDutyController.CompletedCycles + 1} / {_seasonalDutyController.CycleLimit}" : $"Cycle {_seasonalDutyController.CompletedCycles + 1}"); - string value2 = FormatElapsed(_seasonalDutyController.ElapsedTime); - IList remainingTaskNames = _seasonalDutyController.GetRemainingTaskNames(); - string text = ((remainingTaskNames.Count > 0) ? remainingTaskNames.First() : ""); - if (text.Length > 0) - { - Vector4 col2 = ImGuiColors.DalamudGrey3; - ImU8String text2 = new ImU8String(10, 3); - text2.AppendFormatted(value); - text2.AppendLiteral(" · "); - text2.AppendFormatted(value2); - text2.AppendLiteral(" · "); - text2.AppendFormatted(text); - ImGui.TextColored(in col2, text2); - } - else - { - Vector4 col2 = ImGuiColors.DalamudGrey3; - ImU8String text3 = new ImU8String(5, 2); - text3.AppendFormatted(value); - text3.AppendLiteral(" · "); - text3.AppendFormatted(value2); - ImGui.TextColored(in col2, text3); - } - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - using (ImRaii.Disabled(disabled: true)) - { - ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Cycles:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(100f); - ImGui.InputInt("##CycleLimitRunning", ref _cycleLimit, 1, 5); - } - ImGui.SetCursorPosY(cursorScreenPos.Y + num - ImGui.GetCursorScreenPos().Y + ImGui.GetCursorPosY() + 4f); - ImGui.Spacing(); - } - - private void DrawControlsStrip() - { - using (ImRaii.Disabled(_seasonalDutyController.IsRunning)) - { - ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Cycles:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(100f); - ImGui.InputInt("##CycleLimit", ref _cycleLimit, 1, 5); - if (_cycleLimit < 0) - { - _cycleLimit = 0; - } - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.DalamudGrey, (_cycleLimit == 0) ? "(unlimited)" : ""); - } - ImGui.Spacing(); - } - - private static void DrawEmptyState() - { - float y = ImGui.GetContentRegionAvail().Y; - float x = ImGui.GetContentRegionAvail().X; - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + y * 0.25f); - Vector4 col = new Vector4(0.3f, 0.65f, 0.4f, 0.7f); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - ImGui.PushFont(UiBuilder.IconFont); - string text = FontAwesomeIcon.Search.ToIconString(); - Vector2 vector = ImGui.CalcTextSize(text); - vector *= 2.5f; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - Vector2 vector2 = new Vector2(x * 0.5f, 0f) + cursorScreenPos + new Vector2(0f, vector.Y * 0.5f); - for (int num = 3; num > 0; num--) - { - Vector4 col2 = new Vector4(col.X, col.Y, col.Z, col.W * 0.1f * (float)num); - ImGui.SetCursorScreenPos(vector2 - vector * 0.5f - new Vector2(num * 2, num * 2)); - ImGui.TextColored(in col2, text); - } - ImGui.SetCursorScreenPos(vector2 - vector * 0.5f); - ImGui.TextColored(in col, text); - ImGui.PopFont(); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + vector.Y * 0.5f + 20f); - string text2 = "No Seasonal Duty Definitions"; - Vector2 vector3 = ImGui.CalcTextSize(text2); - Vector2 vector4 = new Vector2((x - vector3.X) * 0.5f, 0f) + ImGui.GetCursorScreenPos(); - windowDrawList.AddText(vector4 + new Vector2(1f, 1f), ImGui.ColorConvertFloat4ToU32(new Vector4(0f, 0f, 0f, 0.5f)), text2); - ImGui.SetCursorPosX((x - vector3.X) * 0.5f); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), text2); - ImGui.Spacing(); - ImGui.Spacing(); - string text3 = "Add definitions to the SeasonalDutyPaths folder to get started."; - ImGui.SetCursorPosX((x - ImGui.CalcTextSize(text3).X) * 0.5f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), text3); - } - - private void DrawDutyTable() - { - List list = _seasonalDutyDefinitionRegistry.Definitions.Values.OrderBy(delegate(SeasonalDutyDefinition d) - { - DateTime? eventExpiry = d.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - if (EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow > TimeSpan.Zero) - { - return 0; - } - } - return 1; - }).ThenBy(delegate(SeasonalDutyDefinition d) - { - DateTime? eventExpiry = d.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - return timeSpan.TotalSeconds; - } - } - return double.MaxValue; - }).ThenBy((SeasonalDutyDefinition d) => d.Name, StringComparer.OrdinalIgnoreCase) - .ToList(); - using ImRaii.IEndObject endObject = ImRaii.Table("SeasonalDutyTable", 4, ImGuiTableFlags.SizingStretchProp | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersInnerH | ImGuiTableFlags.ScrollY); - if (!endObject) - { - return; - } - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.None, 3f); - ImGui.TableSetupColumn("Zone", ImGuiTableColumnFlags.None, 2f); - ImGui.TableSetupColumn("Expiry", ImGuiTableColumnFlags.WidthFixed, 80f); - ImGui.TableSetupColumn("##Actions", ImGuiTableColumnFlags.WidthFixed, 30f); - ImGui.TableHeadersRow(); - foreach (SeasonalDutyDefinition item in list) - { - ImGui.TableNextRow(); - bool flag = _seasonalDutyController.IsRunning && _seasonalDutyController.CurrentDuty == item; - if (flag) - { - float num = (float)ImGui.GetTime(); - float w = 0.1f + MathF.Sin(num * 2.5f) * 0.05f; - ImGui.TableSetBgColor(ImGuiTableBgTarget.RowBg1, ImGui.GetColorU32(new Vector4(0f, 0.85f, 0.3f, w))); - } - ImGui.TableNextColumn(); - DrawDutyRowName(item, flag); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(_territoryData.GetName(item.TerritoryId) ?? item.Name); - ImGui.TableNextColumn(); - DrawDutyRowExpiry(item); - ImGui.TableNextColumn(); - bool disabled = _seasonalDutyController.IsRunning || _fateController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual; - DrawDutyRowActions(item, disabled); - } - } - - private void DrawDutyRowName(SeasonalDutyDefinition duty, bool isActive) - { - if (isActive) - { - float num = (float)ImGui.GetTime(); - float num2 = 0.85f + MathF.Sin(num * 3f) * 0.15f; - ImGui.TextColored(new Vector4(0f, 1f * num2, 0.3f * num2, 1f), duty.Name); - } - else - { - ImGui.TextUnformatted(duty.Name); - } - if (!ImGui.IsItemHovered()) - { - return; - } - using (ImRaii.Tooltip()) - { - ImGui.TextColored(ImGuiColors.DalamudWhite, duty.Name); - ImGui.Separator(); - ImGui.Spacing(); - string nameAndId = _territoryData.GetNameAndId(duty.TerritoryId); - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("Zone: "); - text.AppendFormatted(nameAndId); - ImGui.TextColored(in col, text); - DateTime? eventExpiry = duty.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - string text2 = EventInfoComponent.FormatRemainingFull(timeSpan); - ImGui.TextColored(ImGuiColors.DalamudOrange, text2); - } - } - } - } - - private static void DrawDutyRowExpiry(SeasonalDutyDefinition duty) - { - DateTime? eventExpiry = duty.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - string text = EventInfoComponent.FormatRemainingDays(timeSpan); - ImGui.TextColored((timeSpan.TotalDays < 3.0) ? ImGuiColors.DalamudOrange : ImGuiColors.DalamudGrey, text); - } - else - { - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Expired"); - } - } - else - { - ImGui.TextColored(ImGuiColors.DalamudGrey3, "--"); - } - } - - private void DrawDutyRowActions(SeasonalDutyDefinition duty, bool disabled) - { - bool flag = duty.RequiredQuestId.HasValue && !_questFunctions.IsQuestComplete(new QuestId(duty.RequiredQuestId.Value)); - ImU8String id = new ImU8String(5, 1); - id.AppendLiteral("duty_"); - id.AppendFormatted(duty.Name); - using (ImRaii.PushId(id)) - { - if (flag) - { - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(ImGuiColors.DalamudRed, FontAwesomeIcon.Times.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - IQuestInfo questInfo; - string value = (_questData.TryGetQuestInfo(new QuestId(duty.RequiredQuestId.Value), out questInfo) ? questInfo.Name : duty.RequiredQuestId.Value.ToString(CultureInfo.InvariantCulture)); - ImU8String tooltip = new ImU8String(33, 1); - tooltip.AppendLiteral("Requires \""); - tooltip.AppendFormatted(value); - tooltip.AppendLiteral("\" to be completed first"); - ImGui.SetTooltip(tooltip); - } - return; - } - using (ImRaii.Disabled(disabled)) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) - { - _questController.Stop("Seasonal duty farming start"); - _fateController.Stop("Seasonal duty farming start"); - _movementController.Stop(); - int? cycleLimit = ((_cycleLimit > 0) ? new int?(_cycleLimit) : ((int?)null)); - _seasonalDutyController.Start(duty, cycleLimit); - } - } - if (disabled && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (_seasonalDutyController.IsRunning) - { - ImGui.SetTooltip("Already farming a seasonal duty"); - } - else if (_fateController.IsRunning) - { - ImGui.SetTooltip("Stop FATE farming first"); - } - else - { - ImGui.SetTooltip("Stop quest automation first"); - } - } - } - } - - private static string FormatElapsed(TimeSpan elapsed) - { - IFormatProvider invariantCulture; - if (elapsed.TotalHours >= 1.0) - { - invariantCulture = CultureInfo.InvariantCulture; - IFormatProvider provider = invariantCulture; - DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(5, 3, invariantCulture); - handler.AppendFormatted((int)elapsed.TotalHours); - handler.AppendLiteral("h "); - handler.AppendFormatted(elapsed.Minutes, "D2"); - handler.AppendLiteral("m "); - handler.AppendFormatted(elapsed.Seconds, "D2"); - handler.AppendLiteral("s"); - return string.Create(provider, ref handler); - } - if (elapsed.TotalMinutes >= 1.0) - { - invariantCulture = CultureInfo.InvariantCulture; - IFormatProvider provider2 = invariantCulture; - DefaultInterpolatedStringHandler handler2 = new DefaultInterpolatedStringHandler(3, 2, invariantCulture); - handler2.AppendFormatted((int)elapsed.TotalMinutes); - handler2.AppendLiteral("m "); - handler2.AppendFormatted(elapsed.Seconds, "D2"); - handler2.AppendLiteral("s"); - return string.Create(provider2, ref handler2); - } - invariantCulture = CultureInfo.InvariantCulture; - IFormatProvider provider3 = invariantCulture; - DefaultInterpolatedStringHandler handler3 = new DefaultInterpolatedStringHandler(1, 1, invariantCulture); - handler3.AppendFormatted(elapsed.Seconds); - handler3.AppendLiteral("s"); - return string.Create(provider3, ref handler3); - } -} diff --git a/Questionable/Questionable.Windows/UiUtils.cs b/Questionable/Questionable.Windows/UiUtils.cs index 10061ac..a1bb103 100644 --- a/Questionable/Questionable.Windows/UiUtils.cs +++ b/Questionable/Questionable.Windows/UiUtils.cs @@ -33,10 +33,6 @@ internal sealed class UiUtils } if (elementId is QuestId questId && _questFunctions.IsDailyAlliedSocietyQuestAndAvailableToday(questId)) { - if (_questFunctions.IsQuestBlacklisted(questId)) - { - return (Color: ImGuiColors.DalamudGrey3, Icon: FontAwesomeIcon.Ban, Status: "Blacklisted"); - } if (!_questFunctions.IsReadyToAcceptQuest(questId)) { return (Color: ImGuiColors.ParsedGreen, Icon: FontAwesomeIcon.Check, Status: "Complete"); @@ -55,10 +51,6 @@ internal sealed class UiUtils { return (Color: ImGuiColors.DalamudGrey, Icon: FontAwesomeIcon.Minus, Status: "Unobtainable"); } - if (_questFunctions.IsQuestBlacklisted(elementId)) - { - return (Color: ImGuiColors.DalamudGrey3, Icon: FontAwesomeIcon.Ban, Status: "Blacklisted"); - } if (_questFunctions.IsQuestLocked(elementId) || !_questFunctions.IsReadyToAcceptQuest(elementId) || !_questRegistry.IsKnownQuest(elementId)) { return (Color: ImGuiColors.DalamudRed, Icon: FontAwesomeIcon.Times, Status: "Locked"); diff --git a/Questionable/Questionable.csproj b/Questionable/Questionable.csproj index 3b859d7..00d3a38 100644 --- a/Questionable/Questionable.csproj +++ b/Questionable/Questionable.csproj @@ -3,7 +3,7 @@ Questionable False - netcoreapp1.0 + netcoreapp9.0 x64 @@ -38,9 +38,6 @@ ..\..\Microsoft.Extensions.Logging.Abstractions.dll - - C:\Users\Aly\AppData\Roaming\XIVLauncher\addon\Hooks\dev\Serilog.dll - ..\..\Microsoft.Extensions.DependencyInjection.dll @@ -62,20 +59,20 @@ C:\Users\Aly\AppData\Roaming\XIVLauncher\addon\Hooks\dev\InteropGenerator.Runtime.dll + + ..\..\NotificationMasterAPI.dll + ..\..\Microsoft.Extensions.Logging.dll ..\..\QuestPaths.dll - - ..\..\FatePaths.dll - ..\..\GatheringPaths.dll - - ..\..\SeasonalDutyPaths.dll + + ..\..\Dalamud.Extensions.MicrosoftLogging.dll ..\..\JsonPointer.Net.dll diff --git a/Questionable/Questionable/Configuration.cs b/Questionable/Questionable/Configuration.cs index a1b6582..c076f36 100644 --- a/Questionable/Questionable/Configuration.cs +++ b/Questionable/Questionable/Configuration.cs @@ -22,8 +22,6 @@ internal sealed class Configuration : IPluginConfiguration public EClassJob CombatJob { get; set; } - public EMsqPriorityMode MsqPriority { get; set; } - public bool HideInAllInstances { get; set; } = true; public bool UseEscToCancelQuesting { get; set; } = true; @@ -34,47 +32,15 @@ internal sealed class Configuration : IPluginConfiguration public bool ConfigureTextAdvance { get; set; } = true; - public bool CinemaMode { get; set; } - public bool AutoStepRefreshEnabled { get; set; } = true; - public int AutoStepRefreshDelaySeconds { get; set; } = 60; + public int AutoStepRefreshDelaySeconds { get; set; } = 10; public bool HideSeasonalEventsFromJournalProgress { get; set; } public bool ClearPriorityQuestsOnLogout { get; set; } public bool ClearPriorityQuestsOnCompletion { get; set; } - - public bool PersistPriorityQuestsBetweenSessions { get; set; } - - public bool ShowChangelogOnUpdate { get; set; } = true; - - public bool StopOnPlayerInput { get; set; } - - public bool AutoSolveQte { get; set; } = true; - - public bool AutoSnipe { get; set; } = true; - - [JsonProperty(ItemConverterType = typeof(ElementIdNConverter))] - public HashSet BlacklistedQuests { get; set; } = new HashSet(); - - [JsonProperty(ItemConverterType = typeof(ElementIdNConverter))] - public List PriorityQuests { get; set; } = new List(); - - public Dictionary SavedPresets { get; set; } = new Dictionary(); - } - - internal sealed class SavedQuestPreset - { - public string Name { get; set; } = string.Empty; - - public string Description { get; set; } = string.Empty; - - [JsonProperty(ItemConverterType = typeof(ElementIdNConverter))] - public List QuestIds { get; set; } = new List(); - - public DateTime CreatedAt { get; set; } = DateTime.UtcNow; } internal sealed class StopConfiguration @@ -84,15 +50,11 @@ internal sealed class Configuration : IPluginConfiguration [JsonProperty(ItemConverterType = typeof(ElementIdNConverter))] public List QuestsToStopAfter { get; set; } = new List(); - public Dictionary QuestSequences { get; set; } = new Dictionary(); - - public Dictionary QuestStopModes { get; set; } = new Dictionary(); - - public EStopConditionMode LevelStopMode { get; set; } + public bool LevelToStopAfter { get; set; } public int TargetLevel { get; set; } = 50; - public EStopConditionMode SequenceStopMode { get; set; } + public bool SequenceToStopAfter { get; set; } public int TargetSequence { get; set; } = 1; } @@ -105,13 +67,7 @@ internal sealed class Configuration : IPluginConfiguration public HashSet BlacklistedDutyCfcIds { get; set; } = new HashSet(); - public EDutyMode DefaultDutyMode { get; set; } - - public Dictionary DutyModeOverrides { get; set; } = new Dictionary(); - public Dictionary ExpansionHeaderStates { get; set; } = new Dictionary(); - - public bool RunLevelingModeWhenUnderleveled { get; set; } } internal sealed class SinglePlayerDutyConfiguration @@ -132,6 +88,10 @@ internal sealed class Configuration : IPluginConfiguration public bool Enabled { get; set; } = true; public XivChatType ChatType { get; set; } = XivChatType.Debug; + + public bool ShowTrayMessage { get; set; } + + public bool FlashTaskbar { get; set; } } internal sealed class AdvancedConfiguration @@ -144,8 +104,6 @@ internal sealed class Configuration : IPluginConfiguration public bool AdditionalStatusInformation { get; set; } - public bool DisablePartyWatchdog { get; set; } - public bool DisableAutoDutyBareMode { get; set; } public bool SkipAetherCurrents { get; set; } @@ -157,8 +115,6 @@ internal sealed class Configuration : IPluginConfiguration public bool SkipCrystalTowerRaids { get; set; } public bool PreventQuestCompletion { get; set; } - - public string ChocoboName { get; set; } = string.Empty; } internal enum ECombatModule @@ -169,20 +125,6 @@ internal sealed class Configuration : IPluginConfiguration RotationSolverReborn } - internal enum EMsqPriorityMode - { - Always, - AfterTracked, - Manual - } - - internal enum EStopConditionMode - { - Off, - Pause, - Stop - } - public sealed class ElementIdNConverter : JsonConverter { public override void WriteJson(JsonWriter writer, ElementId? value, JsonSerializer serializer) @@ -207,8 +149,6 @@ internal sealed class Configuration : IPluginConfiguration public int PluginSetupCompleteVersion { get; set; } - public string? LastViewedChangelogVersion { get; set; } - public GeneralConfiguration General { get; } = new GeneralConfiguration(); public StopConfiguration Stop { get; } = new StopConfiguration(); @@ -227,8 +167,6 @@ internal sealed class Configuration : IPluginConfiguration public WindowConfig QuestValidationWindowConfig { get; set; } = new WindowConfig(); - public WindowConfig QuestSequenceWindowConfig { get; set; } = new WindowConfig(); - internal bool IsPluginSetupComplete() { return PluginSetupCompleteVersion == 5; diff --git a/Questionable/Questionable/DalamudInitializer.cs b/Questionable/Questionable/DalamudInitializer.cs index 154f2a9..bed0f0c 100644 --- a/Questionable/Questionable/DalamudInitializer.cs +++ b/Questionable/Questionable/DalamudInitializer.cs @@ -33,42 +33,32 @@ internal sealed class DalamudInitializer : IDisposable private readonly Configuration _configuration; - private readonly FateController _fateController; - - private readonly SeasonalDutyController _seasonalDutyController; - - private readonly PartyWatchdog _partyWatchdog; + private readonly PartyWatchDog _partyWatchDog; private readonly ILogger _logger; - public DalamudInitializer(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, MovementController movementController, FateController fateController, SeasonalDutyController seasonalDutyController, WindowSystem windowSystem, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, DebugOverlay debugOverlay, ConfigWindow configWindow, QuestSelectionWindow questSelectionWindow, QuestSequenceWindow questSequenceWindow, QuestValidationWindow questValidationWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, FateSelectionWindow fateSelectionWindow, SeasonalDutySelectionWindow seasonalDutySelectionWindow, ChangelogWindow changelogWindow, IToastGui toastGui, Configuration configuration, PartyWatchdog partyWatchdog, ILogger logger) + public DalamudInitializer(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, MovementController movementController, WindowSystem windowSystem, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, DebugOverlay debugOverlay, ConfigWindow configWindow, QuestSelectionWindow questSelectionWindow, QuestValidationWindow questValidationWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, 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; _configWindow = configWindow; _toastGui = toastGui; _configuration = configuration; - _partyWatchdog = partyWatchdog; + _partyWatchDog = partyWatchDog; _logger = logger; _windowSystem.AddWindow(oneTimeSetupWindow); _windowSystem.AddWindow(questWindow); _windowSystem.AddWindow(configWindow); _windowSystem.AddWindow(debugOverlay); _windowSystem.AddWindow(questSelectionWindow); - _windowSystem.AddWindow(questSequenceWindow); _windowSystem.AddWindow(questValidationWindow); _windowSystem.AddWindow(journalProgressWindow); _windowSystem.AddWindow(priorityWindow); - _windowSystem.AddWindow(fateSelectionWindow); - _windowSystem.AddWindow(seasonalDutySelectionWindow); - _windowSystem.AddWindow(changelogWindow); _pluginInterface.UiBuilder.Draw += _windowSystem.Draw; _pluginInterface.UiBuilder.OpenMainUi += ToggleQuestWindow; _pluginInterface.UiBuilder.OpenConfigUi += _configWindow.Toggle; @@ -80,10 +70,8 @@ internal sealed class DalamudInitializer : IDisposable private void FrameworkUpdate(IFramework framework) { - _partyWatchdog.Update(); + _partyWatchDog.Update(); _questController.Update(); - _fateController.Update(); - _seasonalDutyController.Update(); try { _movementController.Update(); @@ -91,8 +79,6 @@ internal sealed class DalamudInitializer : IDisposable catch (MovementController.PathfindingFailedException) { _questController.Stop("Pathfinding failed"); - _fateController.Stop("Pathfinding failed"); - _seasonalDutyController.Stop("Pathfinding failed"); } } @@ -104,8 +90,6 @@ internal sealed class DalamudInitializer : IDisposable private void OnErrorToast(ref SeString message, ref bool isHandled) { _logger.LogTrace("Error Toast: {Message}", message); - _fateController.OnErrorToast(ref message, ref isHandled); - _seasonalDutyController.OnErrorToast(ref message, ref isHandled); } private void OnQuestToast(ref SeString message, ref QuestToastOptions options, ref bool isHandled) diff --git a/Questionable/Questionable/DalamudLoggerProvider.cs b/Questionable/Questionable/DalamudLoggerProvider.cs deleted file mode 100644 index 0aef319..0000000 --- a/Questionable/Questionable/DalamudLoggerProvider.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Serilog.Events; - -namespace Questionable; - -internal sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISupportExternalScope -{ - private sealed class DalamudLogger : ILogger - { - private sealed class NullScope : IDisposable - { - public static NullScope Instance { get; } = new NullScope(); - - private NullScope() - { - } - - public void Dispose() - { - } - } - - private readonly string? _name; - - private readonly IExternalScopeProvider? _scopeProvider; - - private readonly IPluginLog _pluginLog; - - public DalamudLogger(string? name, IExternalScopeProvider? scopeProvider, IPluginLog pluginLog) - { - _name = name; - _scopeProvider = scopeProvider; - _pluginLog = pluginLog; - } - - public IDisposable BeginScope(TState state) where TState : notnull - { - return _scopeProvider?.Push(state) ?? NullScope.Instance; - } - - public bool IsEnabled(LogLevel logLevel) - { - if (logLevel == LogLevel.None) - { - return false; - } - return ToSerilogLevel(logLevel) >= _pluginLog.MinimumLogLevel; - } - - public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter) - { - if (!IsEnabled(logLevel)) - { - return; - } - ArgumentNullException.ThrowIfNull(formatter, "formatter"); - LogEventLevel level = ToSerilogLevel(logLevel); - StringBuilder stringBuilder = new StringBuilder(); - _scopeProvider?.ForEachScope(delegate(object? scope, StringBuilder builder) - { - if (scope is IEnumerable> enumerable) - { - { - foreach (KeyValuePair item in enumerable) - { - builder.Append('<').Append(item.Key).Append('=') - .Append(item.Value) - .Append("> "); - } - return; - } - } - if (scope != null) - { - builder.Append('<').Append(scope).Append("> "); - } - }, stringBuilder); - if (!string.IsNullOrEmpty(_name)) - { - stringBuilder.Append(_name).Append(": "); - } - stringBuilder.Append(formatter(state, null)); - _pluginLog.Write(level, exception, stringBuilder.ToString()); - } - - private static LogEventLevel ToSerilogLevel(LogLevel logLevel) - { - return logLevel switch - { - LogLevel.Trace => LogEventLevel.Verbose, - LogLevel.Debug => LogEventLevel.Debug, - LogLevel.Information => LogEventLevel.Information, - LogLevel.Warning => LogEventLevel.Warning, - LogLevel.Error => LogEventLevel.Error, - LogLevel.Critical => LogEventLevel.Fatal, - _ => throw new ArgumentOutOfRangeException("logLevel", logLevel, null), - }; - } - } - - private readonly IPluginLog _pluginLog; - - private readonly Func _categoryNameFormatter; - - private IExternalScopeProvider? _scopeProvider; - - public DalamudLoggerProvider(IPluginLog pluginLog, Func? categoryNameFormatter = null) - { - _pluginLog = pluginLog; - _categoryNameFormatter = categoryNameFormatter ?? ((Func)((string t) => t)); - } - - public ILogger CreateLogger(string categoryName) - { - return new DalamudLogger(_categoryNameFormatter(categoryName), _scopeProvider, _pluginLog); - } - - public void SetScopeProvider(IExternalScopeProvider scopeProvider) - { - _scopeProvider = scopeProvider; - } - - public void Dispose() - { - } -} diff --git a/Questionable/Questionable/QuestionablePlugin.cs b/Questionable/Questionable/QuestionablePlugin.cs index fa286be..ce356ca 100644 --- a/Questionable/Questionable/QuestionablePlugin.cs +++ b/Questionable/Questionable/QuestionablePlugin.cs @@ -1,11 +1,16 @@ using System; +using System.IO; using System.Linq; +using System.Text.Json; +using System.Text.Json.Serialization; +using Dalamud.Extensions.MicrosoftLogging; +using Dalamud.Game; +using Dalamud.Game.ClientState.Objects; using Dalamud.Interface.Windowing; using Dalamud.Plugin; using Dalamud.Plugin.Services; using LLib; using LLib.Gear; -using LLib.Shop; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Questionable.Controller; @@ -22,7 +27,7 @@ using Questionable.Controller.Utils; using Questionable.Data; using Questionable.External; using Questionable.Functions; -using Questionable.Model.Changelog; +using Questionable.QuestPaths; using Questionable.Validation; using Questionable.Validation.Validators; using Questionable.Windows; @@ -37,8 +42,11 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable { private readonly ServiceProvider? _serviceProvider; - public QuestionablePlugin(IDalamudPluginInterface pluginInterface, IClientState clientState, ITargetManager targetManager, IFramework framework, IGameGui gameGui, IDataManager dataManager, ISigScanner sigScanner, IObjectTable objectTable, IPluginLog pluginLog, ICondition condition, IChatGui chatGui, ICommandManager commandManager, IAddonLifecycle addonLifecycle, IKeyState keyState, IContextMenu contextMenu, IToastGui toastGui, IGameInteropProvider gameInteropProvider, IAetheryteList aetheryteList, IGameConfig gameConfig) - { + public QuestionablePlugin(IDalamudPluginInterface pluginInterface, IClientState clientState, ITargetManager targetManager, IFramework framework, IGameGui gameGui, IDataManager dataManager, ISigScanner sigScanner, IObjectTable objectTable, IPluginLog pluginLog, ICondition condition, IChatGui chatGui, ICommandManager commandManager, IAddonLifecycle addonLifecycle, IKeyState keyState, IContextMenu contextMenu, IToastGui toastGui, IGameInteropProvider gameInteropProvider, IAetheryteList aetheryteList) +{ + File.WriteAllText(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Quests.json"), JsonSerializer.Serialize(AssemblyQuestLoader.GetQuests().Select(pair => (pair.Key.GetType().Name + ": " + pair.Key.ToString(), pair.Value)).ToList(), new JsonSerializerOptions() + { WriteIndented = true, IgnoreReadOnlyProperties = true, IncludeFields = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault, })); + ArgumentNullException.ThrowIfNull(pluginInterface, "pluginInterface"); ArgumentNullException.ThrowIfNull(chatGui, "chatGui"); try @@ -46,15 +54,11 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable ServiceCollection serviceCollection = new ServiceCollection(); serviceCollection.AddLogging(delegate(ILoggingBuilder builder) { - builder.SetMinimumLevel(LogLevel.Trace).ClearProviders().AddProvider(new DalamudLoggerProvider(pluginLog, delegate(string t) + builder.SetMinimumLevel(LogLevel.Trace).ClearProviders().AddDalamudLogger(pluginLog, delegate(string t) { - if (t == null) - { - return (string?)null; - } int num = t.LastIndexOf('.') + 1; return t.Substring(num, t.Length - num); - })); + }); }); ((IServiceCollection)serviceCollection).AddSingleton((IDalamudPlugin)this); serviceCollection.AddSingleton(pluginInterface); @@ -75,7 +79,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(toastGui); serviceCollection.AddSingleton(gameInteropProvider); serviceCollection.AddSingleton(aetheryteList); - serviceCollection.AddSingleton(gameConfig); serviceCollection.AddSingleton(new WindowSystem("Questionable")); serviceCollection.AddSingleton(((Configuration)pluginInterface.GetPluginConfig()) ?? new Configuration()); AddBasicFunctionsAndData(serviceCollection); @@ -108,7 +111,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); @@ -118,10 +120,11 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); + serviceCollection.AddSingleton(); + serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); } @@ -148,7 +151,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); @@ -158,22 +160,14 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); - serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskFactory(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskFactoryAndExecutor(); - serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactory(); @@ -216,28 +210,19 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable { serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); + serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); @@ -256,7 +241,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); @@ -266,28 +250,21 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); } private static void AddQuestValidators(ServiceCollection serviceCollection) @@ -313,32 +290,15 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceProvider.GetRequiredService().Reload(); serviceProvider.GetRequiredService().Reload(); serviceProvider.GetRequiredService().Reload(); - serviceProvider.GetRequiredService().LoadPriorityQuests(); serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); - serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); - serviceProvider.GetRequiredService(); - serviceProvider.GetRequiredService(); - serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); - serviceProvider.GetRequiredService(); - serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); serviceProvider.GetRequiredService(); - ChangelogWindow requiredService = serviceProvider.GetRequiredService(); - Configuration requiredService2 = serviceProvider.GetRequiredService(); - if (requiredService2.IsPluginSetupComplete() && requiredService2.General.ShowChangelogOnUpdate) - { - ChangelogEntry changelogEntry = ChangelogData.Changelogs.FirstOrDefault(); - if (changelogEntry != null && changelogEntry.IsNewVersion(requiredService2.LastViewedChangelogVersion, ChangelogData.Changelogs)) - { - requiredService.IsOpenAndUncollapsed = true; - } - } } public void Dispose() diff --git a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs index 38e6923..68100a1 100644 --- a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs +++ b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; namespace System.Text.RegularExpressions.Generated; -[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] +[GeneratedCode("System.Text.RegularExpressions.Generator", "9.0.12.47515")] [SkipLocalsInit] internal sealed class _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0 : Regex { diff --git a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs index a6aa892..ad02d79 100644 --- a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs +++ b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs @@ -3,12 +3,12 @@ using System.CodeDom.Compiler; namespace System.Text.RegularExpressions.Generated; -[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] +[GeneratedCode("System.Text.RegularExpressions.Generator", "9.0.12.47515")] 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); internal static readonly bool s_hasTimeout = s_defaultTimeout != Regex.InfiniteMatchTimeout; - internal static readonly SearchValues s_whitespace = SearchValues.Create("\t\n\v\f\r \u0085\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000".AsSpan()); + internal static readonly SearchValues s_whitespace = SearchValues.Create("\t\n\v\f\r \u0085\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000"); } diff --git a/QuestionableCompanion/--y__InlineArray5.cs b/QuestionableCompanion/--y__InlineArray5.cs deleted file mode 100644 index 452839e..0000000 --- a/QuestionableCompanion/--y__InlineArray5.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[StructLayout(LayoutKind.Auto)] -[InlineArray(5)] -internal struct _003C_003Ey__InlineArray5 -{ -} diff --git a/QuestionableCompanion/--y__InlineArray7.cs b/QuestionableCompanion/--y__InlineArray7.cs deleted file mode 100644 index 54c6b1e..0000000 --- a/QuestionableCompanion/--y__InlineArray7.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[StructLayout(LayoutKind.Auto)] -[InlineArray(7)] -internal struct _003C_003Ey__InlineArray7 -{ -} diff --git a/QuestionableCompanion/-PrivateImplementationDetails-.cs b/QuestionableCompanion/-PrivateImplementationDetails-.cs deleted file mode 100644 index e69de29..0000000 diff --git a/QuestionableCompanion/ChauffeurModeService.cs b/QuestionableCompanion/ChauffeurModeService.cs deleted file mode 100644 index a715cb8..0000000 --- a/QuestionableCompanion/ChauffeurModeService.cs +++ /dev/null @@ -1,3084 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Numerics; -using System.Text.RegularExpressions; -using System.Threading; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Game.ClientState.Party; -using Dalamud.Plugin; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.Character; -using FFXIVClientStructs.FFXIV.Client.Game.Control; -using FFXIVClientStructs.FFXIV.Client.Game.Object; -using FFXIVClientStructs.FFXIV.Client.Game.UI; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using Newtonsoft.Json.Linq; -using QuestionableCompanion; -using QuestionableCompanion.Models; -using QuestionableCompanion.Services; - -public class ChauffeurModeService : IDisposable -{ - private readonly Configuration config; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly ICondition condition; - - private readonly IFramework framework; - - private readonly ICommandManager commandManager; - - private readonly IDataManager dataManager; - - private readonly IPartyList partyList; - - private readonly IObjectTable objectTable; - - private readonly QuestionableIPC questionableIPC; - - private readonly CrossProcessIPC crossProcessIPC; - - private readonly PartyInviteService partyInviteService; - - private readonly PartyInviteAutoAccept partyInviteAutoAccept; - - private readonly IDalamudPluginInterface pluginInterface; - - private readonly MemoryHelper memoryHelper; - - private readonly MovementMonitorService? movementMonitor; - - private readonly VNavmeshIPC vnavmeshIPC; - - private bool isWaitingForHelper; - - private bool isTransportingQuester; - - private bool hasExecutedRidePillion; - - private Vector3? targetPosition; - - private uint targetZoneId; - - private string? questerName; - - private DateTime lastZoneUpdate = DateTime.MinValue; - - private bool isDisposed; - - private CancellationTokenSource? helperWorkflowCts; - - private Vector3? lastMoveToPosition; - - private DateTime? lastZoneChangeTime; - - private DateTime lastDutyExitTime = DateTime.MinValue; - - private bool isFollowingQuester; - - private DateTime lastFollowCheck = DateTime.MinValue; - - private Vector3? lastQuesterPosition; - - private uint lastQuesterZone; - - private string? followingQuesterName; - - private static readonly HashSet BLACKLISTED_ZONES = new HashSet { 478u }; - - private static readonly Dictionary FLYING_INDICATOR_QUESTS = new Dictionary { { 1669u, 402u } }; - - private Dictionary helperStatuses = new Dictionary(); - - private Dictionary discoveredQuesters = new Dictionary(); - - private readonly HashSet restrictedZones = new HashSet - { - 128u, 129u, 130u, 131u, 132u, 133u, 418u, 419u, 819u, 820u, - 962u, 963u, 1185u, 1186u, 250u - }; - - public bool IsWaitingForHelper => isWaitingForHelper; - - public bool IsTransportingQuester => isTransportingQuester; - - public void UpdateQuesterPositionFromLAN(float x, float y, float z, uint zoneId, string questerName) - { - lastQuesterPosition = new Vector3(x, y, z); - lastQuesterZone = zoneId; - followingQuesterName = questerName; - discoveredQuesters[questerName] = DateTime.Now; - } - - public string? GetHelperStatus(string helperKey) - { - if (!helperStatuses.TryGetValue(helperKey, out string status)) - { - return null; - } - return status; - } - - public void StartHelperStatusBroadcast() - { - if (config.IsHighLevelHelper) - { - log.Information("[ChauffeurMode] Starting periodic helper status broadcast (Helper mode enabled)"); - framework.RunOnTick(delegate - { - BroadcastHelperStatusPeriodically(); - }, TimeSpan.FromSeconds(1L)); - } - } - - public List GetDiscoveredQuesters() - { - DateTime now = DateTime.Now; - foreach (string stale in (from kvp in discoveredQuesters - where (now - kvp.Value).TotalSeconds > 60.0 - select kvp.Key).ToList()) - { - discoveredQuesters.Remove(stale); - } - List result = discoveredQuesters.Keys.ToList(); - LANHelperServer lanServer = Plugin.Instance?.GetLANHelperServer(); - if (lanServer != null) - { - foreach (string client in lanServer.GetConnectedClientNames()) - { - if (!result.Contains(client)) - { - result.Add(client); - } - } - } - return result; - } - - public ChauffeurModeService(Configuration config, IPluginLog log, IClientState clientState, ICondition condition, IFramework framework, ICommandManager commandManager, IDataManager dataManager, IPartyList partyList, IObjectTable objectTable, QuestionableIPC questionableIPC, CrossProcessIPC crossProcessIPC, PartyInviteService partyInviteService, PartyInviteAutoAccept partyInviteAutoAccept, IDalamudPluginInterface pluginInterface, MemoryHelper memoryHelper, MovementMonitorService? movementMonitor = null) - { - this.config = config; - this.log = log; - this.clientState = clientState; - this.condition = condition; - this.framework = framework; - this.commandManager = commandManager; - this.dataManager = dataManager; - this.partyList = partyList; - this.objectTable = objectTable; - this.questionableIPC = questionableIPC; - this.crossProcessIPC = crossProcessIPC; - this.partyInviteService = partyInviteService; - this.partyInviteAutoAccept = partyInviteAutoAccept; - this.pluginInterface = pluginInterface; - this.memoryHelper = memoryHelper; - this.movementMonitor = movementMonitor; - vnavmeshIPC = new VNavmeshIPC(pluginInterface); - crossProcessIPC.OnChauffeurSummonRequest += OnChauffeurSummonRequest; - crossProcessIPC.OnChauffeurReadyForPickup += OnChauffeurReadyForPickup; - crossProcessIPC.OnChauffeurArrived += OnChauffeurArrived; - crossProcessIPC.OnChauffeurZoneUpdate += OnChauffeurZoneUpdate; - crossProcessIPC.OnChauffeurMountReady += OnChauffeurMountReady; - crossProcessIPC.OnChauffeurPassengerMounted += OnChauffeurPassengerMounted; - crossProcessIPC.OnHelperStatusUpdate += OnHelperStatusUpdate; - crossProcessIPC.OnQuesterPositionUpdate += OnQuesterPositionUpdate; - clientState.TerritoryChanged += OnTerritoryChanged; - condition.ConditionChange += OnConditionChanged; - if (config.IsHighLevelHelper) - { - framework.RunOnTick(delegate - { - BroadcastHelperStatusPeriodically(); - }, TimeSpan.FromSeconds(10L)); - log.Information("[ChauffeurMode] Periodic helper status broadcast enabled (every 10s)"); - } - framework.Update += OnFrameworkUpdate; - log.Information("[ChauffeurMode] Service initialized"); - } - - private void OnConditionChanged(ConditionFlag flag, bool value) - { - if (flag == ConditionFlag.BoundByDuty && !value) - { - lastDutyExitTime = DateTime.Now; - log.Information("[ChauffeurMode] Left duty - starting 10s grace period for zone checks"); - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (config.IsHighLevelHelper && config.EnableHelperFollowing && (DateTime.Now - lastFollowCheck).TotalSeconds >= (double)config.HelperFollowCheckInterval) - { - CheckHelperFollowing(); - } - if (config.IsQuester && !string.IsNullOrEmpty(config.AssignedHelperForFollowing) && config.EnableHelperFollowing) - { - DateTime now = DateTime.Now; - if ((now - lastFollowCheck).TotalSeconds >= 5.0) - { - BroadcastQuesterPosition(); - lastFollowCheck = now; - } - } - } - - public void CheckWaitTerritoryTask() - { - if (!questionableIPC.IsRunning()) - { - return; - } - if (lastZoneChangeTime.HasValue) - { - double timeSinceZoneChange = (DateTime.Now - lastZoneChangeTime.Value).TotalSeconds; - if (timeSinceZoneChange < 8.0) - { - log.Debug($"[WaitTerritory] Territory Load State: Waiting for zone load before checking Wait tasks (elapsed: {timeSinceZoneChange:F1}s / 8.0s)"); - return; - } - } - double timeSinceDutyExit = (DateTime.Now - lastDutyExitTime).TotalSeconds; - if (timeSinceDutyExit < 10.0) - { - if (timeSinceDutyExit < 1.0 || timeSinceDutyExit > 9.0) - { - log.Debug($"[WaitTerritory] Duty Grace Period: Waiting for stabilization after duty exit (elapsed: {timeSinceDutyExit:F1}s / 10.0s)"); - } - } - else - { - if (objectTable.LocalPlayer == null) - { - return; - } - object task = questionableIPC.GetCurrentTask(); - if (task == null) - { - return; - } - try - { - if (!(task is JObject jObject)) - { - return; - } - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken == null) - { - return; - } - string taskName = taskNameToken.ToString(); - if (string.IsNullOrEmpty(taskName)) - { - return; - } - Match waitTerritoryMatch = new Regex("Wait\\(territory:\\s*(.+?)\\s*\\((\\d+)\\)\\)").Match(taskName); - if (!waitTerritoryMatch.Success) - { - return; - } - string territoryName = waitTerritoryMatch.Groups[1].Value.Trim(); - uint territoryId = uint.Parse(waitTerritoryMatch.Groups[2].Value); - if (clientState.TerritoryType == territoryId) - { - log.Debug($"[WaitTerritory] Already in target territory {territoryName} ({territoryId}) - skipping teleport"); - return; - } - string mappedName = MapTerritoryName(territoryName); - log.Information($"[WaitTerritory] Wait(territory) detected: {territoryName} ({territoryId}) → Auto-teleporting to {mappedName}"); - framework.RunOnFrameworkThread(delegate - { - try - { - string content = "/li " + mappedName; - commandManager.ProcessCommand(content); - } - catch (Exception ex2) - { - log.Error("[WaitTerritory] Failed to teleport to " + mappedName + ": " + ex2.Message); - } - }); - } - catch (Exception ex) - { - log.Error("[WaitTerritory] Error checking Wait(territory) task: " + ex.Message); - } - } - } - - public void CheckTaskDistance() - { - if (!config.ChauffeurModeEnabled || !config.IsQuester || !questionableIPC.IsAvailable || !questionableIPC.IsRunning()) - { - return; - } - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return; - } - if (lastZoneChangeTime.HasValue) - { - double timeSinceZoneChange = (DateTime.Now - lastZoneChangeTime.Value).TotalSeconds; - if (timeSinceZoneChange < 8.0) - { - log.Debug($"[ChauffeurMode] Territory Load State: Waiting for zone load before checking summon (elapsed: {timeSinceZoneChange:F1}s / 8.0s)"); - return; - } - } - if ((DateTime.Now - lastDutyExitTime).TotalSeconds < 10.0) - { - return; - } - ushort currentZoneId = clientState.TerritoryType; - if (BLACKLISTED_ZONES.Contains(currentZoneId)) - { - log.Debug($"[ChauffeurMode] Zone {currentZoneId} is blacklisted (no flying), cannot use Chauffeur Mode"); - return; - } - if (IsRestrictedZone(currentZoneId)) - { - log.Debug($"[ChauffeurMode] Zone {currentZoneId} is restricted (Main City), cannot use Chauffeur Mode"); - return; - } - if (IsSoloDutyOrInstance(currentZoneId)) - { - log.Debug($"[ChauffeurMode] Zone {currentZoneId} is a Solo Duty/Instance, cannot use Chauffeur Mode"); - return; - } - if (!IsMountingAllowed(currentZoneId)) - { - log.Debug($"[ChauffeurMode] Zone {currentZoneId} does not allow mounting, cannot use Chauffeur Mode"); - return; - } - if (HasFlyingInZone(currentZoneId)) - { - log.Debug($"[ChauffeurMode] Flying already unlocked in zone {currentZoneId}, no helper needed"); - return; - } - string currentQuestStr = questionableIPC.GetCurrentQuestId(); - if (!string.IsNullOrEmpty(currentQuestStr) && uint.TryParse(currentQuestStr, out var currentQuestId) && FLYING_INDICATOR_QUESTS.TryGetValue(currentQuestId, out var flyingZoneId) && flyingZoneId == currentZoneId) - { - log.Debug($"[ChauffeurMode] Current quest {currentQuestId} indicates flying is already unlocked in zone {currentZoneId} - no helper needed"); - return; - } - object task = questionableIPC.GetCurrentTask(); - if (task == null) - { - log.Debug("[ChauffeurMode] No current task"); - return; - } - var (taskPosition, isAttuneAetheryte) = ParseTaskPositionWithType(task); - if (!taskPosition.HasValue) - { - log.Debug("[ChauffeurMode] Could not parse task position"); - return; - } - Vector3 currentPosition = localPlayer.Position; - float distance = Vector3.Distance(currentPosition, taskPosition.Value); - float threshold = (isAttuneAetheryte ? 10f : config.ChauffeurDistanceThreshold); - log.Information($"[ChauffeurMode] Current Position: ({currentPosition.X:F2}, {currentPosition.Y:F2}, {currentPosition.Z:F2})"); - log.Information($"[ChauffeurMode] Target Position: ({taskPosition.Value.X:F2}, {taskPosition.Value.Y:F2}, {taskPosition.Value.Z:F2})"); - log.Information($"[ChauffeurMode] Distance to task: {distance:F2} yalms (threshold: {threshold})"); - if (distance > threshold) - { - log.Information($"[ChauffeurMode] Task distance ({distance:F2} yalms) exceeds threshold, checking combat status"); - if (condition[ConditionFlag.InCombat]) - { - log.Information("[ChauffeurMode] Player is in combat - waiting for combat to end before summoning helper"); - return; - } - log.Information("[ChauffeurMode] Not in combat - summoning helper"); - SummonHelper(taskPosition.Value, currentZoneId); - } - else - { - log.Debug($"[ChauffeurMode] Task is close enough ({distance:F2} yalms), no helper needed"); - } - } - - private (Vector3? position, bool isAttuneAetheryte) ParseTaskPositionWithType(object task) - { - try - { - if (task is JObject jObject) - { - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken == null) - { - log.Warning("[ChauffeurMode] Task has no TaskName property"); - return (position: null, isAttuneAetheryte: false); - } - string taskName = taskNameToken.ToString(); - if (string.IsNullOrEmpty(taskName)) - { - log.Warning("[ChauffeurMode] TaskName is empty"); - return (position: null, isAttuneAetheryte: false); - } - bool isAttuneAetheryte = taskName.StartsWith("AttuneAetheryte("); - return (position: ParseTaskName(taskName), isAttuneAetheryte: isAttuneAetheryte); - } - log.Warning("[ChauffeurMode] Task is not a JObject"); - return (position: null, isAttuneAetheryte: false); - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Error parsing task position: " + ex.Message); - return (position: null, isAttuneAetheryte: false); - } - } - - private Vector3? ParseTaskPosition(object task) - { - return ParseTaskPositionWithType(task).position; - } - - private string MapTerritoryName(string territoryName) - { - if (territoryName.Contains("Dravanian Hinterlands", StringComparison.OrdinalIgnoreCase)) - { - log.Information("[ChauffeurMode] Mapping 'Dravanian Hinterlands' → 'Epilogue Gate'"); - return "Epilogue Gate"; - } - if (territoryName.Contains("Old Gridania", StringComparison.OrdinalIgnoreCase)) - { - log.Information("[ChauffeurMode] Mapping 'Old Gridania' → 'Mih Khetto'"); - return "Mih Khetto"; - } - if (territoryName.Contains("Upper Decks", StringComparison.OrdinalIgnoreCase)) - { - log.Information("[ChauffeurMode] Mapping 'Upper Decks' → 'Aftcastle'"); - return "Aftcastle"; - } - if (territoryName.Contains("Coerthas Central Highlands", StringComparison.OrdinalIgnoreCase)) - { - log.Information("[ChauffeurMode] Mapping 'Coerthas Central Highlands' → 'Camp Dragonhead'"); - return "Camp Dragonhead"; - } - if (territoryName.Contains("The Pillars", StringComparison.OrdinalIgnoreCase)) - { - log.Information("[ChauffeurMode] Mapping 'The Pillars' → 'The Last Vigil'"); - return "The Last Vigil"; - } - return territoryName; - } - - private Vector3? ParseTaskName(string taskName) - { - try - { - log.Debug("[ChauffeurMode] Parsing task: " + taskName); - Match waitTerritoryMatch = new Regex("Wait\\(territory:\\s*(.+?)\\s*\\((\\d+)\\)\\)").Match(taskName); - if (waitTerritoryMatch.Success) - { - string territoryName = waitTerritoryMatch.Groups[1].Value.Trim(); - uint territoryId = uint.Parse(waitTerritoryMatch.Groups[2].Value); - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === WAIT(TERRITORY) TASK DETECTED ==="); - log.Information("[ChauffeurMode] ========================================"); - log.Information($"[ChauffeurMode] Territory: {territoryName} (ID: {territoryId})"); - log.Information("[ChauffeurMode] This means Questionable has no aetheryte shortcut!"); - log.Information("[ChauffeurMode] Auto-teleporting via Lifestream..."); - string mappedName = MapTerritoryName(territoryName); - framework.RunOnFrameworkThread(delegate - { - try - { - string text = "/li " + mappedName; - commandManager.ProcessCommand(text); - log.Information("[ChauffeurMode] ✓ Teleport command sent: " + text); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] Failed to send teleport command: " + ex2.Message); - } - }); - return null; - } - Match moveToMatch = new Regex("MoveTo\\(<([-\\d.]+),\\s*([-\\d.]+),\\s*([-\\d.]+)>\\)").Match(taskName); - if (moveToMatch.Success) - { - float x = float.Parse(moveToMatch.Groups[1].Value, CultureInfo.InvariantCulture); - float y = float.Parse(moveToMatch.Groups[2].Value, CultureInfo.InvariantCulture); - float z = float.Parse(moveToMatch.Groups[3].Value, CultureInfo.InvariantCulture); - Vector3 position = new Vector3(x, y, z); - lastMoveToPosition = position; - log.Debug($"[ChauffeurMode] Parsed MoveTo position: ({x:F2}, {y:F2}, {z:F2})"); - return position; - } - Match attuneMatch = new Regex("AttuneAetheryte\\((.+?)\\)").Match(taskName); - if (attuneMatch.Success) - { - string aetheryteName = attuneMatch.Groups[1].Value; - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === ATTUNE AETHERYTE TASK DETECTED ==="); - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] Aetheryte: " + aetheryteName); - if (lastMoveToPosition.HasValue) - { - log.Information($"[ChauffeurMode] Using last MoveTo position: ({lastMoveToPosition.Value.X:F2}, {lastMoveToPosition.Value.Y:F2}, {lastMoveToPosition.Value.Z:F2})"); - log.Information("[ChauffeurMode] Using reduced threshold of 10 yalms for AttuneAetheryte"); - return lastMoveToPosition; - } - log.Warning("[ChauffeurMode] No previous MoveTo position found for AttuneAetheryte task"); - return null; - } - Match objectIdMatch = new Regex("(?:Interact|Talk)\\((\\d+)\\)").Match(taskName); - if (objectIdMatch.Success) - { - uint objectId = uint.Parse(objectIdMatch.Groups[1].Value); - log.Debug($"[ChauffeurMode] Parsed ObjectId: {objectId}"); - Vector3? position2 = GetObjectPosition(objectId); - if (position2.HasValue) - { - log.Debug($"[ChauffeurMode] Found object position: ({position2.Value.X}, {position2.Value.Y}, {position2.Value.Z})"); - return position2; - } - } - log.Warning("[ChauffeurMode] Could not parse task format: " + taskName); - return null; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Error parsing task position: " + ex.Message); - return null; - } - } - - private Vector3? GetObjectPosition(uint objectId) - { - try - { - ExcelSheet eObjSheet = dataManager.GetExcelSheet(); - if (eObjSheet != null && eObjSheet.GetRowOrDefault(objectId).HasValue) - { - log.Debug($"[ChauffeurMode] Found EObj: {objectId}"); - } - ExcelSheet levelSheet = dataManager.GetExcelSheet(); - if (levelSheet != null) - { - foreach (Level level in levelSheet) - { - if (level.Object.RowId == objectId) - { - Vector3 position = new Vector3(level.X, level.Y, level.Z); - log.Debug($"[ChauffeurMode] Found Level position for object {objectId}: ({position.X}, {position.Y}, {position.Z})"); - return position; - } - } - } - log.Warning($"[ChauffeurMode] Could not find position for object {objectId}"); - return null; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Error getting object position: " + ex.Message); - return null; - } - } - - private unsafe bool HasFlyingInZone(uint zoneId) - { - try - { - ExcelSheet territorySheet = dataManager.GetExcelSheet(); - if (territorySheet == null) - { - log.Debug("[ChauffeurMode] TerritoryType sheet is null"); - return false; - } - TerritoryType? territory = territorySheet.GetRowOrDefault(zoneId); - if (!territory.HasValue) - { - log.Debug($"[ChauffeurMode] Territory {zoneId} not found"); - return false; - } - if (!territory.Value.Mount) - { - log.Debug($"[ChauffeurMode] Zone {zoneId} does not allow mounting"); - return false; - } - RowRef aetherCurrentCompFlgSet = territory.Value.AetherCurrentCompFlgSet; - if (!aetherCurrentCompFlgSet.IsValid || aetherCurrentCompFlgSet.RowId == 0) - { - log.Debug($"[ChauffeurMode] Zone {zoneId} has no aether currents (AetherCurrentCompFlgSet invalid or 0)"); - return false; - } - PlayerState* playerState = PlayerState.Instance(); - if (playerState == null) - { - log.Debug("[ChauffeurMode] PlayerState is null"); - return false; - } - byte aetherCurrentId = (byte)aetherCurrentCompFlgSet.RowId; - bool hasFlying = playerState->IsAetherCurrentZoneComplete(aetherCurrentId); - log.Debug($"[ChauffeurMode] Zone {zoneId} (AetherCurrentId: {aetherCurrentId}) flying check: {hasFlying}"); - return hasFlying; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Error checking flying availability: " + ex.Message); - return false; - } - } - - private async void SummonHelper(Vector3 targetPos, uint zoneId) - { - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return; - } - if (condition[ConditionFlag.InCombat]) - { - log.Warning("[ChauffeurMode] Still in combat - cannot summon helper yet"); - return; - } - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === SUMMONING HELPER ==="); - log.Information("[ChauffeurMode] ========================================"); - if (config.HelperSelection == HelperSelectionMode.ManualInput) - { - log.Warning("[ChauffeurMode] [QUESTER] Manual Input mode is selected!"); - log.Warning("[ChauffeurMode] [QUESTER] Chauffeur Mode requires IPC communication and cannot work with Manual Input."); - log.Warning("[ChauffeurMode] [QUESTER] Please switch to 'Auto' or 'Dropdown' mode to use Chauffeur."); - log.Warning("[ChauffeurMode] [QUESTER] Walking to destination instead."); - return; - } - if (!string.IsNullOrEmpty(config.PreferredHelper)) - { - string preferredHelper = config.PreferredHelper; - log.Information("[ChauffeurMode] [QUESTER] Preferred Helper: " + preferredHelper); - if (!helperStatuses.TryGetValue(preferredHelper, out string status)) - { - log.Warning("[ChauffeurMode] [QUESTER] No status received from preferred helper yet - walking to destination"); - return; - } - log.Information("[ChauffeurMode] [QUESTER] Helper status: " + status); - if (status != "Available") - { - log.Warning("[ChauffeurMode] [QUESTER] Preferred helper is " + status + " - walking to destination instead"); - log.Warning("[ChauffeurMode] [QUESTER] Continuing quest without helper"); - return; - } - } - log.Information("[ChauffeurMode] Stopping Questionable to wait for helper"); - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - log.Information("[ChauffeurMode] [QUESTER] Stopping Movement Monitor during transport"); - movementMonitor.StopMonitoring(); - } - log.Information("[ChauffeurMode] Stopping Questionable to wait for helper"); - TaskCompletionSource stopTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/qst stop"); - stopTask.SetResult(result: true); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] Error stopping Questionable: " + ex2.Message); - stopTask.SetResult(result: false); - } - }); - await stopTask.Task; - log.Information("[ChauffeurMode] [QUESTER] Enabling auto-accept for party invites"); - log.Information($"[ChauffeurMode] [QUESTER] Current role - IsQuester: {config.IsQuester}, IsHelper: {config.IsHighLevelHelper}"); - partyInviteAutoAccept.EnableAutoAccept(); - log.Information("[ChauffeurMode] [QUESTER] Auto-accept enabled - will accept invites for 30 seconds"); - string questerName = localPlayer.Name.ToString(); - ushort questerWorld = (ushort)localPlayer.HomeWorld.RowId; - targetPosition = targetPos; - targetZoneId = zoneId; - isWaitingForHelper = true; - Vector3 questerPos = localPlayer.Position; - bool isAttuneAetheryte = false; - try - { - StepData stepData = questionableIPC.GetCurrentStepData(); - if (stepData != null && stepData.InteractionType == "AttuneAetheryte") - { - isAttuneAetheryte = true; - log.Information("[ChauffeurMode] Current step is AttuneAetheryte - Helper will find landable spot"); - } - else - { - log.Information("[ChauffeurMode] Current step InteractionType: " + (stepData?.InteractionType ?? "null") + " - Helper will go to exact position"); - } - } - catch (Exception ex) - { - log.Warning("[ChauffeurMode] Failed to get step data: " + ex.Message); - } - log.Information("[ChauffeurMode] Requesting helper pickup"); - log.Information($"[ChauffeurMode] Quester: {questerName}@{questerWorld}"); - log.Information($"[ChauffeurMode] Zone: {zoneId}"); - log.Information($"[ChauffeurMode] Quester Position: ({questerPos.X:F2}, {questerPos.Y:F2}, {questerPos.Z:F2})"); - log.Information($"[ChauffeurMode] Target: ({targetPos.X:F2}, {targetPos.Y:F2}, {targetPos.Z:F2})"); - log.Information($"[ChauffeurMode] AttuneAetheryte: {isAttuneAetheryte}"); - bool isLanHelper = false; - string lanIp = null; - log.Information("[ChauffeurMode] Checking if preferred helper '" + config.PreferredHelper + "' is a LAN helper..."); - LANHelperClient lanClient = Plugin.Instance?.GetLANHelperClient(); - if (lanClient != null) - { - IReadOnlyList lanHelpers = lanClient.DiscoveredHelpers; - log.Information($"[ChauffeurMode] Found {lanHelpers.Count} LAN helpers in discovery list"); - if (!string.IsNullOrEmpty(config.PreferredHelper)) - { - foreach (LANHelperInfo helper in lanHelpers) - { - string helperKey = $"{helper.Name}@{helper.WorldId}"; - log.Information("[ChauffeurMode] Checking LAN helper: " + helperKey + " at " + helper.IPAddress); - if (helperKey == config.PreferredHelper) - { - isLanHelper = true; - lanIp = helper.IPAddress; - log.Information("[ChauffeurMode] ✓ MATCHED! This is a LAN helper at " + lanIp); - break; - } - } - if (!isLanHelper) - { - log.Information("[ChauffeurMode] No match found - PreferredHelper '" + config.PreferredHelper + "' not in LAN list"); - } - } - else if (lanHelpers.Any((LANHelperInfo h) => h.Status == LANHelperStatus.Available)) - { - LANHelperInfo firstAvailable = lanHelpers.FirstOrDefault((LANHelperInfo h) => h.Status == LANHelperStatus.Available); - if (firstAvailable != null) - { - isLanHelper = true; - lanIp = firstAvailable.IPAddress; - string autoSelectedKey = $"{firstAvailable.Name}@{firstAvailable.WorldId}"; - log.Information("[ChauffeurMode] AUTO-SELECTED LAN helper: " + autoSelectedKey + " at " + lanIp); - } - } - else if (lanHelpers.Count > 0) - { - LANHelperInfo firstHelper = lanHelpers.First(); - isLanHelper = true; - lanIp = firstHelper.IPAddress; - string autoSelectedKey2 = $"{firstHelper.Name}@{firstHelper.WorldId}"; - log.Information("[ChauffeurMode] AUTO-SELECTED first LAN helper (no Available status): " + autoSelectedKey2 + " at " + lanIp); - } - else - { - log.Information("[ChauffeurMode] No PreferredHelper configured and no LAN helpers available - using local IPC"); - } - } - else - { - log.Warning("[ChauffeurMode] LANHelperClient is null!"); - log.Information("[ChauffeurMode] Falling back to local IPC"); - } - if (isLanHelper && !string.IsNullOrEmpty(lanIp)) - { - log.Information("[ChauffeurMode] Selected helper is on LAN (" + lanIp + ") - Sending LAN Summon Request"); - if (lanClient != null) - { - LANChauffeurSummon summonData = new LANChauffeurSummon - { - QuesterName = questerName, - QuesterWorldId = questerWorld, - ZoneId = zoneId, - TargetX = targetPos.X, - TargetY = targetPos.Y, - TargetZ = targetPos.Z, - QuesterX = questerPos.X, - QuesterY = questerPos.Y, - QuesterZ = questerPos.Z, - IsAttuneAetheryte = isAttuneAetheryte - }; - lanClient.SendChauffeurSummonAsync(lanIp, summonData); - } - } - else - { - log.Information("[ChauffeurMode] Sending local IPC Summon Request"); - crossProcessIPC.SendChauffeurSummonRequest(questerName, questerWorld, zoneId, targetPos, questerPos, isAttuneAetheryte); - } - } - - public bool IsRestrictedZone(uint zoneId) - { - return restrictedZones.Contains(zoneId); - } - - public bool IsSoloDutyOrInstance(uint zoneId) - { - try - { - ExcelSheet territorySheet = dataManager.GetExcelSheet(); - if (territorySheet == null) - { - return false; - } - TerritoryType? territory = territorySheet.GetRowOrDefault(zoneId); - if (!territory.HasValue) - { - return false; - } - uint intendedUse = territory.Value.TerritoryIntendedUse.RowId; - switch (intendedUse) - { - case 8u: - case 9u: - log.Debug($"[ChauffeurMode] Zone {zoneId} is Solo Duty/Quest Battle (IntendedUse: {intendedUse})"); - return true; - case 2u: - case 3u: - case 4u: - case 5u: - log.Debug($"[ChauffeurMode] Zone {zoneId} is party content (IntendedUse: {intendedUse})"); - return true; - default: - if (intendedUse == 13 || intendedUse == 16 || intendedUse == 17) - { - log.Debug($"[ChauffeurMode] Zone {zoneId} is special content (IntendedUse: {intendedUse})"); - return true; - } - return false; - } - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Error checking solo duty status: " + ex.Message); - return false; - } - } - - public bool IsMountingAllowed(uint zoneId) - { - try - { - ExcelSheet territorySheet = dataManager.GetExcelSheet(); - if (territorySheet == null) - { - return false; - } - TerritoryType? territory = territorySheet.GetRowOrDefault(zoneId); - if (!territory.HasValue) - { - return false; - } - return territory.Value.Mount; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Error checking mount permission: " + ex.Message); - return false; - } - } - - public List<(uint Id, string Name, byte Seats)> GetMultiSeaterMounts() - { - List<(uint, string, byte)> mounts = new List<(uint, string, byte)>(); - try - { - ExcelSheet mountSheet = dataManager.GetExcelSheet(); - if (mountSheet == null) - { - log.Error("[ChauffeurMode] Could not load Mount sheet"); - return mounts; - } - foreach (Mount mount in mountSheet) - { - if (mount.ExtraSeats > 0) - { - string name = mount.Singular.ToString(); - if (!string.IsNullOrEmpty(name)) - { - mounts.Add((mount.RowId, name, mount.ExtraSeats)); - } - } - } - } - catch (Exception) - { - } - return mounts; - } - - public void StartHelperWorkflow(string questerName, ushort questerWorld, uint zoneId, Vector3 targetPos, Vector3 questerPos, bool isAttuneAetheryte) - { - log.Information("[ChauffeurMode] ========================================="); - log.Information("[ChauffeurMode] *** StartHelperWorkflow CALLED ***"); - log.Information("[ChauffeurMode] ========================================="); - log.Information($"[ChauffeurMode] Quester: {questerName}@{questerWorld}"); - log.Information($"[ChauffeurMode] Zone: {zoneId}"); - log.Information($"[ChauffeurMode] Target: ({targetPos.X:F2}, {targetPos.Y:F2}, {targetPos.Z:F2})"); - log.Information($"[ChauffeurMode] AttuneAetheryte: {isAttuneAetheryte}"); - OnChauffeurSummonRequest(questerName, questerWorld, zoneId, targetPos, questerPos, isAttuneAetheryte); - } - - private void OnChauffeurSummonRequest(string questerName, ushort questerWorld, uint zoneId, Vector3 targetPos, Vector3 questerPos, bool isAttuneAetheryte) - { - if (!config.ChauffeurModeEnabled) - { - return; - } - if (!config.IsHighLevelHelper) - { - log.Debug("[ChauffeurMode] Not a helper, ignoring summon"); - return; - } - if (config.CurrentHelperStatus == HelperStatus.Transporting) - { - log.Warning($"[ChauffeurMode] [HELPER] Already transporting {config.AssignedQuester} - rejecting summon from {questerName}@{questerWorld}"); - return; - } - if (config.CurrentHelperStatus == HelperStatus.InDungeon) - { - log.Warning($"[ChauffeurMode] [HELPER] Currently in dungeon - rejecting summon from {questerName}@{questerWorld}"); - return; - } - this.questerName = $"{questerName}@{questerWorld}"; - targetZoneId = zoneId; - targetPosition = targetPos; - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer != null) - { - string myName = localPlayer.Name.ToString(); - ushort myWorld = (ushort)localPlayer.HomeWorld.RowId; - if (myName == questerName && myWorld == questerWorld) - { - log.Debug("[ChauffeurMode] Ignoring own summon request"); - return; - } - } - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === HELPER SUMMON REQUEST ==="); - log.Information("[ChauffeurMode] ========================================"); - log.Information($"[ChauffeurMode] Quester: {questerName}@{questerWorld}"); - log.Information($"[ChauffeurMode] Zone: {zoneId}"); - log.Information($"[ChauffeurMode] Target: ({targetPos.X:F2}, {targetPos.Y:F2}, {targetPos.Z:F2})"); - log.Information($"[ChauffeurMode] Quester Position: ({questerPos.X:F2}, {questerPos.Y:F2}, {questerPos.Z:F2})"); - if (BLACKLISTED_ZONES.Contains(zoneId)) - { - log.Warning($"[ChauffeurMode] Zone {zoneId} is blacklisted (no flying available), cannot use Chauffeur Mode"); - return; - } - if (IsRestrictedZone(zoneId)) - { - log.Warning($"[ChauffeurMode] Zone {zoneId} is restricted (Main City), cannot follow"); - return; - } - if (IsSoloDutyOrInstance(zoneId)) - { - log.Warning($"[ChauffeurMode] Zone {zoneId} is a Solo Duty/Instance, cannot follow"); - return; - } - if (!IsMountingAllowed(zoneId)) - { - log.Warning($"[ChauffeurMode] Zone {zoneId} does not allow mounting, cannot use Chauffeur Mode"); - return; - } - if (config.ChauffeurMountId == 0) - { - log.Error("[ChauffeurMode] No mount configured! Please select a multi-seater mount in settings"); - return; - } - if (isTransportingQuester) - { - log.Warning($"[ChauffeurMode] [HELPER] Already transporting a quester! Ignoring new request from {questerName}@{questerWorld}"); - return; - } - this.questerName = questerName; - targetPosition = targetPos; - targetZoneId = zoneId; - isTransportingQuester = true; - config.AssignedQuester = $"{questerName}@{questerWorld}"; - config.CurrentHelperStatus = HelperStatus.Transporting; - config.Save(); - log.Information("[ChauffeurMode] [HELPER] Assigned to quester: " + config.AssignedQuester + " (Status: Transporting)"); - if (localPlayer != null) - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "Transporting"); - } - helperWorkflowCts?.Cancel(); - helperWorkflowCts?.Dispose(); - helperWorkflowCts = new CancellationTokenSource(); - CancellationTokenSource cts = helperWorkflowCts; - Task.Run(async delegate - { - await HelperWorkflow(questerName, questerWorld, zoneId, targetPos, questerPos, isAttuneAetheryte, cts.Token); - }, cts.Token); - } - - private unsafe async Task HelperWorkflow(string questerName, ushort questerWorld, uint zoneId, Vector3 targetPos, Vector3 questerPos, bool isAttuneAetheryte, CancellationToken cancellationToken) - { - try - { - log.Information("[ChauffeurMode] [WORKFLOW] Starting helper workflow"); - log.Information($"[ChauffeurMode] [WORKFLOW] Thread ID: {Thread.CurrentThread.ManagedThreadId}"); - if (cancellationToken.IsCancellationRequested) - { - log.Information("[ChauffeurMode] [WORKFLOW] Workflow cancelled before start"); - framework.RunOnFrameworkThread(delegate - { - ResetHelperTransportState(); - }); - return; - } - TaskCompletionSource<(bool success, ushort helperWorld, uint helperZone, uint questerZone)> worldCheckTask = new TaskCompletionSource<(bool, ushort, uint, uint)>(); - framework.RunOnFrameworkThread(delegate - { - try - { - IPlayerCharacter localPlayer2 = objectTable.LocalPlayer; - if (localPlayer2 == null) - { - log.Error("[ChauffeurMode] [WORKFLOW] LocalPlayer is null!"); - worldCheckTask.SetResult((false, 0, 0u, 0u)); - } - else - { - ushort item = (ushort)localPlayer2.CurrentWorld.RowId; - ushort territoryType = clientState.TerritoryType; - worldCheckTask.SetResult((true, item, territoryType, zoneId)); - } - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error checking world: " + ex2.Message); - worldCheckTask.SetResult((false, 0, 0u, 0u)); - } - }); - var (flag, helperCurrentWorld, helperCurrentZone, questerTargetZone) = await worldCheckTask.Task; - if (!flag) - { - log.Error("[ChauffeurMode] [WORKFLOW] Failed to check helper world!"); - framework.RunOnFrameworkThread(delegate - { - ResetHelperTransportState(); - }); - return; - } - log.Information($"[ChauffeurMode] [WORKFLOW] Helper on world {helperCurrentWorld}, zone {helperCurrentZone}"); - log.Information($"[ChauffeurMode] [WORKFLOW] Quester needs pickup in zone {questerTargetZone}"); - log.Information($"[ChauffeurMode] [WORKFLOW] Quester invite ID: {questerName}@{questerWorld}"); - ushort currentZone = clientState.TerritoryType; - log.Information("[ChauffeurMode] [WORKFLOW] Step 1: Checking mount status"); - TaskCompletionSource isMountedTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag2 = IsMounted(); - log.Information($"[ChauffeurMode] [WORKFLOW] Currently mounted: {flag2}"); - isMountedTask.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error checking mount: " + ex2.Message); - isMountedTask.SetResult(result: false); - } - }); - if (!(await isMountedTask.Task)) - { - TaskCompletionSource canMountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag2 = !condition[ConditionFlag.InCombat] && !condition[ConditionFlag.Mounted] && !condition[ConditionFlag.Casting] && !condition[ConditionFlag.BetweenAreas] && !condition[ConditionFlag.Jumping] && !condition[ConditionFlag.OccupiedInQuestEvent] && !condition[ConditionFlag.OccupiedInCutSceneEvent] && !condition[ConditionFlag.BoundByDuty] && !condition[ConditionFlag.BoundByDuty56] && !condition[ConditionFlag.BoundByDuty95]; - log.Information($"[ChauffeurMode] [WORKFLOW] Can mount in Helper's zone {helperCurrentZone}: {flag2}"); - canMountTask.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error checking mount conditions: " + ex2.Message); - canMountTask.SetResult(result: false); - } - }); - if (!(await canMountTask.Task)) - { - log.Warning("[ChauffeurMode] [WORKFLOW] Cannot mount in Helper's current zone - will try after teleport"); - } - else - { - log.Information($"[ChauffeurMode] [WORKFLOW] Not mounted, summoning mount {config.ChauffeurMountId}"); - TaskCompletionSource mountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - log.Information("[ChauffeurMode] [WORKFLOW] Executing mount summon on framework thread"); - bool result = SummonMountDirect(config.ChauffeurMountId); - mountTask.SetResult(result); - }); - if (!(await mountTask.Task)) - { - log.Warning("[ChauffeurMode] [WORKFLOW] Failed to summon mount - will try after teleport"); - } - log.Information("[ChauffeurMode] [WORKFLOW] Mount summon command sent, waiting for mount animation"); - await Task.Delay(3000); - TaskCompletionSource verifyTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag2 = IsMounted(); - log.Information($"[ChauffeurMode] [WORKFLOW] Mount verification: {flag2}"); - verifyTask.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error verifying mount: " + ex2.Message); - verifyTask.SetResult(result: false); - } - }); - if (!(await verifyTask.Task)) - { - log.Warning("[ChauffeurMode] [WORKFLOW] Mount verification failed - will try after teleport"); - } - } - log.Information("[ChauffeurMode] [WORKFLOW] Mount verified successfully"); - } - else - { - log.Information("[ChauffeurMode] [WORKFLOW] Already mounted, skipping mount summon"); - } - bool didTeleport = false; - if (currentZone != zoneId) - { - log.Information($"[ChauffeurMode] [WORKFLOW] Step 2: Teleporting to zone {zoneId}"); - if (!(await TeleportToZone(zoneId))) - { - log.Error("[ChauffeurMode] [WORKFLOW] Failed to teleport to zone"); - return; - } - log.Information("[ChauffeurMode] [WORKFLOW] Waiting 10s for zone load and player spawn"); - await Task.Delay(10000); - didTeleport = true; - } - else - { - log.Information($"[ChauffeurMode] [WORKFLOW] Already in zone {zoneId}"); - } - if (didTeleport) - { - log.Information("[ChauffeurMode] [WORKFLOW] Step 2.5: Waiting additional 3s for player spawn and loading screen to complete"); - await Task.Delay(3000); - log.Information("[ChauffeurMode] [WORKFLOW] Verifying zone after teleport"); - TaskCompletionSource verifyZoneTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - ushort territoryType = clientState.TerritoryType; - bool flag2 = territoryType == zoneId; - log.Information($"[ChauffeurMode] [WORKFLOW] Current zone: {territoryType}, Target zone: {zoneId}, Match: {flag2}"); - verifyZoneTask.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error verifying zone: " + ex2.Message); - verifyZoneTask.SetResult(result: false); - } - }); - bool inCorrectZone = await verifyZoneTask.Task; - if (!inCorrectZone) - { - log.Warning("[ChauffeurMode] [WORKFLOW] Not in correct zone yet! Will keep checking for up to 30 seconds..."); - int maxAttempts = 10; - for (int attempt = 1; attempt <= maxAttempts; attempt++) - { - if (inCorrectZone) - { - break; - } - await Task.Delay(3000); - TaskCompletionSource verifyZoneTaskRetry = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - ushort territoryType = clientState.TerritoryType; - bool flag2 = territoryType == zoneId; - log.Information($"[ChauffeurMode] [WORKFLOW] Zone check attempt {attempt}/{maxAttempts} - Current zone: {territoryType}, Target zone: {zoneId}, Match: {flag2}"); - verifyZoneTaskRetry.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error($"[ChauffeurMode] [WORKFLOW] Error verifying zone (attempt {attempt}): {ex2.Message}"); - verifyZoneTaskRetry.SetResult(result: false); - } - }); - inCorrectZone = await verifyZoneTaskRetry.Task; - if (inCorrectZone) - { - log.Information($"[ChauffeurMode] [WORKFLOW] Zone verified after {attempt} attempts!"); - break; - } - } - if (!inCorrectZone) - { - log.Error("[ChauffeurMode] [WORKFLOW] Still not in correct zone after 30 seconds! Aborting."); - framework.RunOnFrameworkThread(delegate - { - ResetHelperTransportState(); - }); - return; - } - } - log.Information("[ChauffeurMode] [WORKFLOW] Zone verified - waiting 2s for loading screen to fully complete"); - await Task.Delay(2000); - log.Information("[ChauffeurMode] [WORKFLOW] In correct zone - checking mount status"); - TaskCompletionSource checkMountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag2 = IsMounted(); - log.Information($"[ChauffeurMode] [WORKFLOW] Mount status after teleport: {flag2}"); - checkMountTask.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error checking mount: " + ex2.Message); - checkMountTask.SetResult(result: false); - } - }); - if (!(await checkMountTask.Task)) - { - log.Information("[ChauffeurMode] [WORKFLOW] Not mounted after teleport - waiting 1s then re-mounting"); - await Task.Delay(1000); - log.Information("[ChauffeurMode] [WORKFLOW] Re-mounting now"); - TaskCompletionSource remountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - log.Information("[ChauffeurMode] [WORKFLOW] Executing re-mount on framework thread"); - bool result = SummonMountDirect(config.ChauffeurMountId); - remountTask.SetResult(result); - }); - if (!(await remountTask.Task)) - { - log.Error("[ChauffeurMode] [WORKFLOW] Failed to re-summon mount after teleport"); - return; - } - log.Information("[ChauffeurMode] [WORKFLOW] Re-mount command sent, waiting for mount animation"); - await Task.Delay(3000); - TaskCompletionSource verifyRemountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag2 = IsMounted(); - log.Information($"[ChauffeurMode] [WORKFLOW] Re-mount verification: {flag2}"); - verifyRemountTask.SetResult(flag2); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error verifying re-mount: " + ex2.Message); - verifyRemountTask.SetResult(result: false); - } - }); - if (!(await verifyRemountTask.Task)) - { - log.Error("[ChauffeurMode] [WORKFLOW] Re-mount verification failed - not mounted after teleport!"); - framework.RunOnFrameworkThread(delegate - { - ResetHelperTransportState(); - }); - return; - } - log.Information("[ChauffeurMode] [WORKFLOW] Re-mount verified successfully"); - } - else - { - log.Information("[ChauffeurMode] [WORKFLOW] Still mounted after teleport - no need to re-mount"); - } - } - Vector3 finalTargetPos = targetPos; - if (isAttuneAetheryte) - { - log.Information("[ChauffeurMode] [WORKFLOW] Step 2.9: AttuneAetheryte detected - finding landable spot"); - if (vnavmeshIPC.IsReady()) - { - log.Information($"[ChauffeurMode] [WORKFLOW] Searching for landable spot near target ({targetPos.X:F2}, {targetPos.Y:F2}, {targetPos.Z:F2})"); - Vector3? landableSpot = vnavmeshIPC.FindPointOnFloor(targetPos, allowUnlandable: false, 15f); - if (landableSpot.HasValue) - { - float distance = Vector3.Distance(targetPos, landableSpot.Value); - log.Information($"[ChauffeurMode] [WORKFLOW] Found landable spot {distance:F2} yalms from target: ({landableSpot.Value.X:F2}, {landableSpot.Value.Y:F2}, {landableSpot.Value.Z:F2})"); - finalTargetPos = landableSpot.Value; - } - else - { - log.Warning("[ChauffeurMode] [WORKFLOW] No landable spot found, using original target position"); - } - } - else - { - log.Warning("[ChauffeurMode] [WORKFLOW] vnavmesh not ready, using original target position"); - } - } - else - { - log.Information("[ChauffeurMode] [WORKFLOW] Step 2.9: Not AttuneAetheryte - using exact target position"); - } - log.Information($"[ChauffeurMode] [WORKFLOW] Step 3: Navigating to quester at ({questerPos.X:F2}, {questerPos.Y:F2}, {questerPos.Z:F2})"); - await NavigateToPosition(questerPos); - log.Information("[ChauffeurMode] [WORKFLOW] Arrived at quester position"); - TaskCompletionSource finalDistTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - IPlayerCharacter localPlayer2 = objectTable.LocalPlayer; - if (localPlayer2 != null) - { - float result = Vector3.Distance(localPlayer2.Position, questerPos); - finalDistTask.SetResult(result); - } - else - { - finalDistTask.SetResult(999f); - } - } - catch - { - finalDistTask.SetResult(999f); - } - }); - float finalDist = await finalDistTask.Task; - if (finalDist > 5f) - { - log.Warning($"[ChauffeurMode] [WORKFLOW] Still too far ({finalDist:F2}y), moving closer manually"); - Vector3 closerPos = new Vector3(questerPos.X, questerPos.Y - 1f, questerPos.Z); - await NavigateToPosition(closerPos); - await Task.Delay(1000); - } - else - { - log.Information($"[ChauffeurMode] [WORKFLOW] Distance OK: {finalDist:F2}y"); - } - if (cancellationToken.IsCancellationRequested) - { - log.Information("[ChauffeurMode] [WORKFLOW] Workflow cancelled before party formation"); - framework.RunOnFrameworkThread(delegate - { - ResetHelperTransportState(); - }); - return; - } - log.Information("[ChauffeurMode] [WORKFLOW] Step 4: Ensuring party formation"); - bool inParty = false; - for (int partyAttempt = 0; partyAttempt < 10; partyAttempt++) - { - TaskCompletionSource partyCheckTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool result = partyList.Length > 0; - partyCheckTask.SetResult(result); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error checking party: " + ex2.Message); - partyCheckTask.SetResult(result: false); - } - }); - inParty = await partyCheckTask.Task; - if (inParty) - { - log.Information($"[ChauffeurMode] [WORKFLOW] Party formed! ({partyList.Length} members)"); - break; - } - log.Information($"[ChauffeurMode] [WORKFLOW] Not in party yet, sending invite (attempt {partyAttempt + 1}/10)"); - TaskCompletionSource inviteTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool result = partyInviteService.InviteToParty(questerName, questerWorld); - inviteTask.SetResult(result); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [WORKFLOW] Error inviting: " + ex2.Message); - inviteTask.SetResult(result: false); - } - }); - await inviteTask.Task; - await Task.Delay(2000); - } - if (!inParty) - { - log.Error("[ChauffeurMode] [WORKFLOW] Failed to form party after 10 attempts (20s)"); - log.Error("[ChauffeurMode] [WORKFLOW] Resetting helper state"); - ResetChauffeurState(); - return; - } - log.Information("[ChauffeurMode] [HELPER] ========================================"); - log.Information("[ChauffeurMode] [HELPER] === SIGNALING MOUNT READY ==="); - log.Information("[ChauffeurMode] [HELPER] ========================================"); - log.Information($"[ChauffeurMode] [HELPER] Sending mount ready signal to: {questerName}@{questerWorld}"); - log.Information($"[ChauffeurMode] [HELPER] Helper is mounted: {IsMounted()}"); - log.Information($"[ChauffeurMode] [HELPER] Helper position: ({objectTable.LocalPlayer?.Position.X:F2}, {objectTable.LocalPlayer?.Position.Y:F2}, {objectTable.LocalPlayer?.Position.Z:F2})"); - crossProcessIPC.SendChauffeurMountReady(questerName, questerWorld); - log.Information("[ChauffeurMode] [HELPER] Mount ready signal sent via IPC"); - LANHelperServer lanServer = Plugin.Instance?.GetLANHelperServer(); - if (lanServer != null) - { - log.Information("[ChauffeurMode] [HELPER] Also sending mount ready via LAN to connected clients"); - lanServer.SendChauffeurMountReady(questerName, questerWorld); - } - log.Information("[ChauffeurMode] [WORKFLOW] Waiting 8 seconds for quester to mount..."); - await Task.Delay(8000); - log.Information($"[ChauffeurMode] [WORKFLOW] Step 6: Transporting to target ({finalTargetPos.X:F2}, {finalTargetPos.Y:F2}, {finalTargetPos.Z:F2})"); - isTransportingQuester = true; - await NavigateToPositionWithPassengerMonitoring(finalTargetPos, questerPos, questerName, questerWorld); - log.Information("[ChauffeurMode] [HELPER] Arrived at destination"); - log.Information("[ChauffeurMode] [HELPER] Dismounting at destination"); - for (int partyAttempt = 0; partyAttempt < 3; partyAttempt++) - { - TaskCompletionSource checkMountTask2 = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - bool result = condition[ConditionFlag.Mounted]; - checkMountTask2.SetResult(result); - }); - if (!(await checkMountTask2.Task)) - { - log.Information("[ChauffeurMode] [HELPER] Already dismounted"); - break; - } - log.Information($"[ChauffeurMode] [HELPER] Dismount attempt {partyAttempt + 1}/3"); - await framework.RunOnFrameworkThread(delegate - { - ActionManager* ptr = ActionManager.Instance(); - if (ptr != null) - { - ptr->UseAction(ActionType.Mount, 0u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null); - log.Information("[ChauffeurMode] [HELPER] Dismount action executed via ActionManager"); - } - else - { - log.Error("[ChauffeurMode] [HELPER] ActionManager is null!"); - } - }); - await Task.Delay(2000); - } - TaskCompletionSource dismountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - bool flag2 = condition[ConditionFlag.Mounted]; - log.Information($"[ChauffeurMode] [HELPER] After dismount - Still mounted: {flag2}"); - dismountTask.SetResult(!flag2); - }); - await dismountTask.Task; - isTransportingQuester = false; - hasExecutedRidePillion = false; - config.AssignedQuester = ""; - config.CurrentHelperStatus = HelperStatus.Available; - config.Save(); - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer != null) - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "Available"); - } - log.Information("[ChauffeurMode] [HELPER] Transport complete - FLAGS RESET + STATUS AVAILABLE (before notification)"); - log.Information($"[ChauffeurMode] [HELPER] Notifying Quester of arrival: {questerName}@{questerWorld}"); - crossProcessIPC.SendChauffeurArrived(questerName, questerWorld); - LANHelperServer lanServerArrival = Plugin.Instance?.GetLANHelperServer(); - if (lanServerArrival != null) - { - log.Information("[ChauffeurMode] [HELPER] Also sending arrival via LAN to connected clients"); - lanServerArrival.SendChauffeurArrived(questerName, questerWorld); - } - log.Information("[ChauffeurMode] [HELPER] Waiting for quester to restart Questionable and checking for AttuneAetheryte task..."); - await Task.Delay(3000); - bool isAttuneAetheryteTask = false; - await framework.RunOnFrameworkThread(delegate - { - try - { - object currentTask = questionableIPC.GetCurrentTask(); - if (currentTask != null && currentTask is JObject jObject) - { - JToken jToken = jObject["TaskName"]; - if (jToken != null) - { - string text = jToken.ToString(); - if (text.StartsWith("AttuneAetheryte(")) - { - isAttuneAetheryteTask = true; - log.Information("[ChauffeurMode] [HELPER] ✓ AttuneAetheryte task detected: " + text); - } - } - } - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [HELPER] Error checking quester task: " + ex2.Message); - } - }); - if (isAttuneAetheryteTask && targetPosition.HasValue) - { - log.Information("[ChauffeurMode] [HELPER] AttuneAetheryte detected - flying 10 yalms away from target before dismount"); - Vector3 direction = Vector3.Normalize(await framework.RunOnFrameworkThread(() => objectTable.LocalPlayer?.Position ?? Vector3.Zero) - targetPosition.Value); - Vector3 flyAwayPosition = targetPosition.Value + direction * 10f; - log.Information($"[ChauffeurMode] [HELPER] Flying to position 10 yalms away: ({flyAwayPosition.X:F2}, {flyAwayPosition.Y:F2}, {flyAwayPosition.Z:F2})"); - await framework.RunOnFrameworkThread(delegate - { - try - { - string text = $"/vnav flyto {flyAwayPosition.X:F2} {flyAwayPosition.Y:F2} {flyAwayPosition.Z:F2}"; - commandManager.ProcessCommand(text); - log.Information("[ChauffeurMode] [HELPER] Sent vnav flyto command: " + text); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [HELPER] Failed to send vnav flyto command: " + ex2.Message); - } - }); - DateTime timeout = DateTime.Now.AddSeconds(10.0); - while (DateTime.Now < timeout) - { - float distanceToTarget = Vector3.Distance(await framework.RunOnFrameworkThread(() => objectTable.LocalPlayer?.Position ?? Vector3.Zero), targetPosition.Value); - if (distanceToTarget >= 10f) - { - log.Information($"[ChauffeurMode] [HELPER] Successfully flew away (distance: {distanceToTarget:F2} yalms)"); - break; - } - await Task.Delay(500); - } - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/vnav stop"); - }); - await Task.Delay(1000); - } - log.Information("[ChauffeurMode] [HELPER] Disbanding party"); - await framework.RunOnFrameworkThread(delegate - { - memoryHelper.SendChatMessage("/leave"); - log.Information("[ChauffeurMode] [HELPER] /leave command sent via UIModule"); - }); - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Helper workflow error: " + ex.Message); - log.Error("[ChauffeurMode] Stack trace: " + ex.StackTrace); - framework.RunOnFrameworkThread(delegate - { - ResetHelperTransportState(); - }); - } - } - - private async Task TeleportToZone(uint zoneId) - { - try - { - ExcelSheet territorySheet = dataManager.GetExcelSheet(); - if (territorySheet == null) - { - return false; - } - TerritoryType? territory = territorySheet.GetRowOrDefault(zoneId); - if (!territory.HasValue) - { - return false; - } - uint aetheryteId = territory.Value.Aetheryte.RowId; - if (aetheryteId == 0) - { - log.Warning($"[ChauffeurMode] No aetheryte found for zone {zoneId}"); - return false; - } - ExcelSheet aetheryteSheet = dataManager.GetExcelSheet(); - if (aetheryteSheet == null) - { - log.Warning("[ChauffeurMode] Could not load Aetheryte sheet"); - return false; - } - Lumina.Excel.Sheets.Aetheryte? aetheryte = aetheryteSheet.GetRowOrDefault(aetheryteId); - if (!aetheryte.HasValue) - { - log.Warning($"[ChauffeurMode] Aetheryte {aetheryteId} not found"); - return false; - } - string aetheryteName = aetheryte.Value.PlaceName.ValueNullable?.Name.ToString() ?? ""; - if (string.IsNullOrEmpty(aetheryteName)) - { - log.Warning($"[ChauffeurMode] Aetheryte {aetheryteId} has no name"); - return false; - } - string territoryName = territory.Value.PlaceName.ValueNullable?.Name.ToString() ?? ""; - string mappedName = MapTerritoryName(territoryName); - log.Information($"[ChauffeurMode] Teleporting to {mappedName} (Territory: {territoryName}, Aetheryte: {aetheryteName}, ID: {aetheryteId})"); - TaskCompletionSource tpTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/li " + mappedName); - tpTask.SetResult(result: true); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] Error teleporting: " + ex2.Message); - tpTask.SetResult(result: false); - } - }); - await tpTask.Task; - return true; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] Teleport error: " + ex.Message); - return false; - } - } - - private unsafe bool SummonMountDirect(uint mountId) - { - try - { - log.Information($"[ChauffeurMode] [MOUNT] Summoning mount ID: {mountId}"); - ActionManager* actionManager = ActionManager.Instance(); - if (actionManager == null) - { - log.Error("[ChauffeurMode] [MOUNT] ActionManager is null"); - return false; - } - bool result = actionManager->UseAction(ActionType.Mount, mountId, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null); - log.Information($"[ChauffeurMode] [MOUNT] ActionManager.UseAction result: {result}"); - if (!result) - { - log.Warning("[ChauffeurMode] [MOUNT] ActionManager failed, trying command fallback"); - string mountName = GetMountName(mountId); - if (!string.IsNullOrEmpty(mountName)) - { - commandManager.ProcessCommand("/mount \"" + mountName + "\""); - log.Information("[ChauffeurMode] [MOUNT] Command sent: /mount \"" + mountName + "\""); - return true; - } - return false; - } - return true; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] [MOUNT] Exception: " + ex.Message); - log.Error("[ChauffeurMode] [MOUNT] StackTrace: " + ex.StackTrace); - return false; - } - } - - private string GetMountName(uint mountId) - { - try - { - ExcelSheet mountSheet = dataManager.GetExcelSheet(); - if (mountSheet == null) - { - return ""; - } - return mountSheet.GetRowOrDefault(mountId)?.Singular.ToString() ?? ""; - } - catch - { - return ""; - } - } - - private bool IsMounted() - { - try - { - if (objectTable.LocalPlayer == null) - { - return false; - } - return condition[ConditionFlag.Mounted]; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] IsMounted error: " + ex.Message); - return false; - } - } - - private async Task NavigateToPosition(Vector3 targetPos) - { - try - { - log.Information("[ChauffeurMode] [NAV] ========================================"); - log.Information($"[ChauffeurMode] [NAV] Starting navigation to ({targetPos.X:F2}, {targetPos.Y:F2}, {targetPos.Z:F2})"); - log.Information($"[ChauffeurMode] [NAV] Thread ID: {Thread.CurrentThread.ManagedThreadId}"); - TaskCompletionSource stopNavTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - log.Information("[ChauffeurMode] [NAV] Stopped any existing navigation"); - stopNavTask.SetResult(result: true); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [NAV] Error stopping nav: " + ex2.Message); - stopNavTask.SetResult(result: false); - } - }); - await stopNavTask.Task; - await Task.Delay(500); - TaskCompletionSource flyTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - string text = $"/vnav flyto {targetPos.X.ToString(CultureInfo.InvariantCulture)} {targetPos.Y.ToString(CultureInfo.InvariantCulture)} {targetPos.Z.ToString(CultureInfo.InvariantCulture)}"; - log.Information("[ChauffeurMode] [NAV] Executing: " + text); - commandManager.ProcessCommand(text); - flyTask.SetResult(result: true); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [NAV] Command error: " + ex2.Message); - flyTask.SetResult(result: false); - } - }); - await flyTask.Task; - await Task.Delay(1000); - DateTime startTime = DateTime.Now; - TimeSpan timeout = TimeSpan.FromMinutes(5L); - DateTime lastLogTime = DateTime.Now; - int stuckCounter = 0; - float lastDistance = float.MaxValue; - while (DateTime.Now - startTime < timeout) - { - if (!isTransportingQuester) - { - log.Information("[ChauffeurMode] [NAV] Transport cancelled, stopping navigation"); - TaskCompletionSource cancelTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - cancelTask.SetResult(result: true); - } - catch - { - cancelTask.SetResult(result: false); - } - }); - await cancelTask.Task; - return; - } - TaskCompletionSource posTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - posTask.SetResult(localPlayer?.Position); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [NAV] Error getting player position: " + ex2.Message); - posTask.SetResult(null); - } - }); - Vector3? playerPos = await posTask.Task; - if (!playerPos.HasValue) - { - log.Warning("[ChauffeurMode] [NAV] Could not get player position"); - break; - } - float distance = Vector3.Distance(playerPos.Value, targetPos); - if (Math.Abs(distance - lastDistance) < 1f) - { - stuckCounter++; - if (stuckCounter > 10) - { - log.Warning($"[ChauffeurMode] [NAV] Stuck at distance {distance:F2}, aborting"); - break; - } - } - else - { - stuckCounter = 0; - } - lastDistance = distance; - float stopDistance = Math.Clamp(config.ChauffeurStopDistance, 2f, 15f); - if (distance < stopDistance) - { - log.Information($"Arrived at destination, distance {distance:F2} yalms"); - TaskCompletionSource arrivedTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - log.Information("[ChauffeurMode] [NAV] Navigation stopped"); - arrivedTask.SetResult(result: true); - } - catch - { - arrivedTask.SetResult(result: false); - } - }); - await arrivedTask.Task; - return; - } - if ((DateTime.Now - lastLogTime).TotalSeconds >= 5.0) - { - log.Information($"[ChauffeurMode] [NAV] Distance to target: {distance:F2} yalms"); - lastLogTime = DateTime.Now; - } - await Task.Delay(1000); - } - log.Warning("[ChauffeurMode] [NAV] Navigation timeout"); - TaskCompletionSource timeoutTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - log.Information("[ChauffeurMode] [NAV] Navigation stopped (timeout)"); - timeoutTask.SetResult(result: true); - } - catch - { - timeoutTask.SetResult(result: false); - } - }); - await timeoutTask.Task; - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] [NAV] Navigation error: " + ex.Message); - log.Error("[ChauffeurMode] [NAV] StackTrace: " + ex.StackTrace); - } - } - - private async Task NavigateToPositionWithPassengerMonitoring(Vector3 targetPos, Vector3 questerStartPos, string questerName, ushort questerWorld) - { - float arrivalThreshold = Math.Clamp(config.ChauffeurStopDistance, 2f, 15f); - int stuckCounter = 0; - float lastDistance = 0f; - for (int attempt = 1; attempt <= 5; attempt++) - { - log.Information($"[ChauffeurMode] [TRANSPORT] === ATTEMPT {attempt}/{5} ==="); - log.Information("[ChauffeurMode] [TRANSPORT] Starting navigation to target"); - TaskCompletionSource startNavTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - Thread.Sleep(500); - string text = $"/vnav flyto {targetPos.X.ToString(CultureInfo.InvariantCulture)} {targetPos.Y.ToString(CultureInfo.InvariantCulture)} {targetPos.Z.ToString(CultureInfo.InvariantCulture)}"; - commandManager.ProcessCommand(text); - log.Information("[ChauffeurMode] [TRANSPORT] Navigation started: " + text); - startNavTask.SetResult(result: true); - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] [TRANSPORT] Failed to start navigation: " + ex.Message); - startNavTask.SetResult(result: false); - } - }); - await startNavTask.Task; - await Task.Delay(2000); - TaskCompletionSource helperStartPosTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - Vector3? result = objectTable.LocalPlayer?.Position; - helperStartPosTask.SetResult(result); - } - catch - { - helperStartPosTask.SetResult(null); - } - }); - Vector3? helperStartPos = await helperStartPosTask.Task; - if (!helperStartPos.HasValue) - { - log.Error("[ChauffeurMode] [TRANSPORT] Could not get helper position"); - continue; - } - log.Information($"[ChauffeurMode] [TRANSPORT] Helper start: ({helperStartPos.Value.X:F2}, {helperStartPos.Value.Y:F2}, {helperStartPos.Value.Z:F2})"); - log.Information("[ChauffeurMode] [TRANSPORT] Waiting 5 seconds to check if helper moved..."); - await Task.Delay(5000); - TaskCompletionSource helperCurrentPosTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - Vector3? result = objectTable.LocalPlayer?.Position; - helperCurrentPosTask.SetResult(result); - } - catch - { - helperCurrentPosTask.SetResult(null); - } - }); - Vector3? helperCurrentPos = await helperCurrentPosTask.Task; - bool questerMovingWithUs = true; - if (helperCurrentPos.HasValue) - { - float helperDistanceMoved = Vector3.Distance(helperStartPos.Value, helperCurrentPos.Value); - log.Information($"[ChauffeurMode] [TRANSPORT] Helper moved {helperDistanceMoved:F2} yalms after 5 seconds"); - if (helperDistanceMoved < 10f) - { - log.Warning($"[ChauffeurMode] [TRANSPORT] ❌ Helper barely moved ({helperDistanceMoved:F2}y) - quester likely not on mount!"); - questerMovingWithUs = false; - } - else - { - log.Information($"[ChauffeurMode] [TRANSPORT] ✓ Helper moved significantly ({helperDistanceMoved:F2}y) - quester is on mount!"); - } - } - if (!questerMovingWithUs) - { - log.Warning("[ChauffeurMode] [TRANSPORT] Quester failed to stay on mount - returning to quester position"); - TaskCompletionSource stopTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - stopTask.SetResult(result: true); - } - catch - { - stopTask.SetResult(result: false); - } - }); - await stopTask.Task; - await Task.Delay(1000); - log.Information("[ChauffeurMode] [TRANSPORT] Returning to quester for retry..."); - await NavigateToPosition(questerStartPos); - await Task.Delay(2000); - log.Information("[ChauffeurMode] [TRANSPORT] Signaling mount ready for retry..."); - crossProcessIPC.SendChauffeurMountReady(questerName, questerWorld); - DateTime waitStart = DateTime.Now; - TimeSpan waitMax = TimeSpan.FromSeconds(30L); - bool mounted = false; - while (DateTime.Now - waitStart < waitMax) - { - TaskCompletionSource checkTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool result = condition[ConditionFlag.RidingPillion]; - checkTask.SetResult(result); - } - catch - { - checkTask.SetResult(result: false); - } - }); - if (await checkTask.Task) - { - log.Information("[ChauffeurMode] [TRANSPORT] ✓ Quester mounted for retry!"); - mounted = true; - break; - } - await Task.Delay(1000); - } - if (!mounted) - { - log.Error("[ChauffeurMode] [TRANSPORT] Quester failed to mount after retry - aborting"); - return; - } - continue; - } - log.Information("[ChauffeurMode] [TRANSPORT] ✓ Quester confirmed on mount - continuing to destination"); - DateTime arrivalStart = DateTime.Now; - TimeSpan arrivalTimeout = TimeSpan.FromMinutes(5L); - while (DateTime.Now - arrivalStart < arrivalTimeout) - { - if (!isTransportingQuester) - { - log.Information("[ChauffeurMode] [TRANSPORT] Transport cancelled"); - TaskCompletionSource cancelTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - cancelTask.SetResult(result: true); - } - catch - { - cancelTask.SetResult(result: false); - } - }); - await cancelTask.Task; - return; - } - TaskCompletionSource posTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - Vector3? result = objectTable.LocalPlayer?.Position; - posTask.SetResult(result); - } - catch - { - posTask.SetResult(null); - } - }); - Vector3? currentPos = await posTask.Task; - if (currentPos.HasValue) - { - float distance = Vector3.Distance(currentPos.Value, targetPos); - if (lastDistance > 0f && Math.Abs(distance - lastDistance) < 1f) - { - stuckCounter++; - if (stuckCounter >= 5) - { - log.Warning($"[ChauffeurMode] [TRANSPORT] Stuck for 5 seconds at distance {distance:F2}"); - log.Information("[ChauffeurMode] [TRANSPORT] Moving 5 yalms backwards to unstuck"); - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/vnav stop"); - }); - await Task.Delay(500); - Vector3 direction = Vector3.Normalize(currentPos.Value - targetPos); - Vector3 backwardsPos = currentPos.Value + direction * 5f; - log.Information($"[ChauffeurMode] [TRANSPORT] Moving to backwards position: ({backwardsPos.X:F2}, {backwardsPos.Y:F2}, {backwardsPos.Z:F2})"); - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand($"/vnav {backwardsPos.X} {backwardsPos.Y} {backwardsPos.Z}"); - }); - await Task.Delay(3000); - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/vnav stop"); - }); - log.Information("[ChauffeurMode] [TRANSPORT] Unstuck complete, considering arrived"); - return; - } - } - else - { - stuckCounter = 0; - } - lastDistance = distance; - if (distance <= arrivalThreshold) - { - log.Information($"[ChauffeurMode] [TRANSPORT] Arrived at destination (distance: {distance:F2} yalms, threshold: {arrivalThreshold:F1})"); - TaskCompletionSource arrivedTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/vnav stop"); - arrivedTask.SetResult(result: true); - } - catch - { - arrivedTask.SetResult(result: false); - } - }); - await arrivedTask.Task; - return; - } - } - await Task.Delay(1000); - } - log.Warning("[ChauffeurMode] [TRANSPORT] Arrival timeout - but quester was on mount, so considering it success"); - return; - } - log.Error($"[ChauffeurMode] [TRANSPORT] Failed after {5} attempts - giving up"); - ResetChauffeurState(); - } - - private void OnChauffeurReadyForPickup(string helperName) - { - if (config.ChauffeurModeEnabled && config.IsQuester && isWaitingForHelper) - { - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === HELPER READY ==="); - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] Helper " + helperName + " is ready for pickup"); - log.Information("[ChauffeurMode] [QUESTER] Waiting for mount ready signal..."); - } - } - - public unsafe void OnChauffeurMountReady(string questerName, ushort questerWorld) - { - if (!config.ChauffeurModeEnabled || !config.IsQuester || !isWaitingForHelper) - { - return; - } - if (hasExecutedRidePillion) - { - log.Debug("[ChauffeurMode] [QUESTER] RidePillion already executed this session, ignoring"); - return; - } - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return; - } - string myName = localPlayer.Name.ToString(); - ushort myWorld = (ushort)localPlayer.HomeWorld.RowId; - if (myName != questerName || myWorld != questerWorld) - { - log.Debug($"[ChauffeurMode] [QUESTER] Mount ready signal is for {questerName}@{questerWorld}, not for me ({myName}@{myWorld}) - ignoring"); - return; - } - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === MOUNT READY FOR RIDEPILLION ==="); - log.Information("[ChauffeurMode] ========================================"); - log.Information($"[ChauffeurMode] [QUESTER] This signal is for ME: {myName}@{myWorld}"); - hasExecutedRidePillion = true; - Task.Run(async delegate - { - _ = 11; - try - { - TaskCompletionSource isMountedTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag = IsMounted(); - log.Information($"[ChauffeurMode] [QUESTER] Currently mounted: {flag}"); - isMountedTask.SetResult(flag); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [QUESTER] Error checking mount: " + ex2.Message); - isMountedTask.SetResult(result: false); - } - }); - if (await isMountedTask.Task) - { - log.Information("[ChauffeurMode] [QUESTER] Dismounting before RidePillion (Condition 4 active)"); - for (int i = 0; i < 3; i++) - { - log.Information($"[ChauffeurMode] [QUESTER] Dismount attempt {i + 1}/3 using ActionManager"); - await framework.RunOnFrameworkThread(delegate - { - ActionManager* ptr = ActionManager.Instance(); - if (ptr != null) - { - ptr->UseAction(ActionType.Mount, 0u, 3758096384uL, 0u, ActionManager.UseActionMode.None, 0u, null); - log.Information("[ChauffeurMode] [QUESTER] Dismount action executed via ActionManager"); - } - else - { - log.Error("[ChauffeurMode] [QUESTER] ActionManager is null!"); - } - }); - await Task.Delay(2000); - TaskCompletionSource checkTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - bool flag = condition[ConditionFlag.Mounted]; - log.Information($"[ChauffeurMode] [QUESTER] After dismount attempt {i + 1} - Still mounted: {flag}"); - checkTask.SetResult(flag); - }); - if (!(await checkTask.Task)) - { - log.Information("[ChauffeurMode] [QUESTER] Successfully dismounted!"); - break; - } - } - } - else - { - log.Information("[ChauffeurMode] [QUESTER] Not mounted, no dismount needed"); - } - log.Information("[ChauffeurMode] [QUESTER] Finding Helper in party using IPartyList"); - TaskCompletionSource helperNameTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - IPlayerCharacter localPlayer2 = objectTable.LocalPlayer; - if (localPlayer2 == null) - { - log.Error("[ChauffeurMode] [QUESTER] Local player is null"); - helperNameTask.SetResult(null); - } - else - { - string text = localPlayer2.Name.ToString(); - log.Information("[ChauffeurMode] [QUESTER] My name: " + text); - if (partyList != null && partyList.Length > 1) - { - log.Information($"[ChauffeurMode] [QUESTER] Party size: {partyList.Length}"); - for (int j = 0; j < partyList.Length; j++) - { - IPartyMember partyMember = partyList[j]; - if (partyMember != null) - { - string text2 = partyMember.Name.ToString(); - log.Information($"[ChauffeurMode] [QUESTER] Party member [{j}]: {text2}"); - if (text2 != text) - { - log.Information("[ChauffeurMode] [QUESTER] Found Helper in party: " + text2); - helperNameTask.SetResult(text2); - return; - } - } - } - } - log.Warning("[ChauffeurMode] [QUESTER] No Helper found in party (only found self)"); - helperNameTask.SetResult(null); - } - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [QUESTER] Error finding Helper: " + ex2.Message); - helperNameTask.SetResult(null); - } - }); - string helperName = await helperNameTask.Task; - if (string.IsNullOrEmpty(helperName)) - { - log.Error("[ChauffeurMode] [QUESTER] Cannot execute RidePillion - Helper not found in party"); - } - else - { - log.Information("[ChauffeurMode] [QUESTER] Targeting Helper: " + helperName); - await framework.RunOnFrameworkThread(delegate - { - TargetSystem* ptr = TargetSystem.Instance(); - if (ptr == null) - { - log.Error("[ChauffeurMode] [QUESTER] TargetSystem is null!"); - } - else - { - if (partyList != null) - { - for (int j = 0; j < partyList.Length; j++) - { - IPartyMember partyMember = partyList[j]; - if (partyMember != null && partyMember.Name.ToString() == helperName) - { - IGameObject gameObject = partyMember.GameObject; - if (gameObject != null) - { - ptr->Target = (GameObject*)gameObject.Address; - log.Information("[ChauffeurMode] [QUESTER] Targeted Helper via TargetSystem: " + helperName); - return; - } - } - } - } - log.Warning("[ChauffeurMode] [QUESTER] Could not find Helper GameObject to target"); - } - }); - await Task.Delay(1000); - log.Information("[ChauffeurMode] [QUESTER] ========================================"); - log.Information("[ChauffeurMode] [QUESTER] === EXECUTING RIDEPILLION ==="); - log.Information("[ChauffeurMode] [QUESTER] ========================================"); - log.Information("[ChauffeurMode] [QUESTER] Helper name: " + helperName); - log.Information($"[ChauffeurMode] [QUESTER] Party size: {partyList.Length}"); - for (int i2 = 0; i2 < 3; i2++) - { - log.Information($"[ChauffeurMode] [QUESTER] --- RidePillion attempt {i2 + 1}/3 ---"); - await framework.RunOnFrameworkThread(delegate - { - log.Information("[ChauffeurMode] [QUESTER] Searching for Helper in party..."); - if (partyList != null) - { - for (int j = 0; j < partyList.Length; j++) - { - IPartyMember partyMember = partyList[j]; - if (partyMember != null) - { - string text = partyMember.Name.ToString(); - log.Information($"[ChauffeurMode] [QUESTER] Party member {j}: {text}"); - if (text == helperName) - { - log.Information("[ChauffeurMode] [QUESTER] Found Helper: " + helperName); - IGameObject gameObject = partyMember.GameObject; - if (gameObject != null) - { - log.Information($"[ChauffeurMode] [QUESTER] Helper GameObject address: 0x{gameObject.Address:X}"); - log.Information($"[ChauffeurMode] [QUESTER] Helper ObjectKind: {gameObject.ObjectKind}"); - log.Information($"[ChauffeurMode] [QUESTER] Helper Position: ({gameObject.Position.X:F2}, {gameObject.Position.Y:F2}, {gameObject.Position.Z:F2})"); - BattleChara* address = (BattleChara*)gameObject.Address; - log.Information($"[ChauffeurMode] [QUESTER] BattleChara pointer: 0x{address:X}"); - log.Information("[ChauffeurMode] [QUESTER] Calling MemoryHelper.ExecuteRidePillion(battleChara, 10)..."); - bool value = memoryHelper.ExecuteRidePillion(address); - log.Information($"[ChauffeurMode] [QUESTER] RidePillion Memory call result: {value}"); - return; - } - log.Warning("[ChauffeurMode] [QUESTER] Helper GameObject is NULL!"); - } - } - } - } - log.Warning("[ChauffeurMode] [QUESTER] Could not find Helper in party to execute RidePillion"); - }); - await Task.Delay(2000); - TaskCompletionSource checkTask2 = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - bool flag = condition[ConditionFlag.RidingPillion]; - log.Information($"[ChauffeurMode] [QUESTER] After RidePillion attempt {i2 + 1} - Mounted as passenger: {flag}"); - checkTask2.SetResult(flag); - }); - if (await checkTask2.Task) - { - log.Information("[ChauffeurMode] [QUESTER] Successfully mounted as passenger!"); - break; - } - } - TaskCompletionSource mountedTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - bool flag = condition[ConditionFlag.RidingPillion]; - log.Information($"[ChauffeurMode] [QUESTER] Mounted as passenger (Condition 10): {flag}"); - mountedTask.SetResult(flag); - }); - if (await mountedTask.Task) - { - log.Information("[ChauffeurMode] [QUESTER] Successfully mounted as passenger!"); - log.Information("[ChauffeurMode] [QUESTER] Sending mounted signal to Helper"); - TaskCompletionSource signalTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - crossProcessIPC.SendChauffeurPassengerMounted(); - log.Information("[ChauffeurMode] [QUESTER] Passenger mounted signal sent"); - signalTask.SetResult(result: true); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [QUESTER] Signal error: " + ex2.Message); - signalTask.SetResult(result: false); - } - }); - await signalTask.Task; - } - else - { - log.Warning("[ChauffeurMode] [QUESTER] RidePillion may have failed - not detected as passenger"); - } - log.Information("[ChauffeurMode] [QUESTER] Waiting for transport to complete..."); - log.Information("[ChauffeurMode] [QUESTER] Movement Monitor is stopped during transport"); - } - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] [QUESTER] Error during mount ready: " + ex.Message); - } - }); - } - - private void OnChauffeurPassengerMounted() - { - log.Debug("[ChauffeurMode] OnChauffeurPassengerMounted event fired (handled inline)"); - } - - private void OnHelperStatusUpdate(string helperName, ushort helperWorld, string status) - { - if (!config.IsQuester) - { - return; - } - ExcelSheet worldSheet = dataManager.GetExcelSheet(); - string worldName = "Unknown"; - if (worldSheet != null) - { - foreach (World world in worldSheet) - { - if (world.RowId == helperWorld) - { - worldName = world.Name.ExtractText(); - break; - } - } - } - string helperKey = helperName + "@" + worldName; - helperStatuses[helperKey] = status; - log.Debug("[ChauffeurMode] [QUESTER] Helper status updated: " + helperKey + " = " + status); - } - - private void BroadcastHelperStatusPeriodically() - { - if (isDisposed) - { - log.Debug("[ChauffeurMode] [HELPER] Periodic broadcast stopped (service disposed)"); - return; - } - if (!config.IsHighLevelHelper) - { - if (!isDisposed) - { - framework.RunOnTick(delegate - { - BroadcastHelperStatusPeriodically(); - }, TimeSpan.FromSeconds(10L)); - } - return; - } - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer != null) - { - try - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - string status = config.CurrentHelperStatus switch - { - HelperStatus.Available => "Available", - HelperStatus.Transporting => "Transporting", - HelperStatus.InDungeon => "InDungeon", - _ => "Available", - }; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, status); - log.Debug("[ChauffeurMode] [HELPER] Periodic status broadcast: " + status); - } - catch (ObjectDisposedException) - { - log.Debug("[ChauffeurMode] [HELPER] Periodic broadcast stopped (IPC disposed)"); - return; - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [HELPER] Error in periodic broadcast: " + ex2.Message); - } - } - if (!isDisposed) - { - framework.RunOnTick(delegate - { - BroadcastHelperStatusPeriodically(); - }, TimeSpan.FromSeconds(10L)); - } - } - - public void OnChauffeurArrived(string questerName, ushort questerWorld) - { - if (!config.ChauffeurModeEnabled || !config.IsQuester || !isWaitingForHelper) - { - return; - } - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return; - } - string myName = localPlayer.Name.ToString(); - ushort myWorld = (ushort)localPlayer.HomeWorld.RowId; - if (myName != questerName || myWorld != questerWorld) - { - log.Debug($"[ChauffeurMode] [QUESTER] Arrived signal is for {questerName}@{questerWorld}, not for me ({myName}@{myWorld}) - ignoring"); - return; - } - log.Information("[ChauffeurMode] ========================================"); - log.Information("[ChauffeurMode] === ARRIVED AT DESTINATION ==="); - log.Information("[ChauffeurMode] ========================================"); - log.Information($"[ChauffeurMode] [QUESTER] This signal is for ME: {myName}@{myWorld}"); - Task.Run(async delegate - { - _ = 6; - try - { - TaskCompletionSource isMountedTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - bool flag = IsMounted(); - log.Information($"[ChauffeurMode] [QUESTER] Currently mounted: {flag}"); - isMountedTask.SetResult(flag); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [QUESTER] Error checking mount: " + ex2.Message); - isMountedTask.SetResult(result: false); - } - }); - bool num = await isMountedTask.Task; - log.Information("[ChauffeurMode] [QUESTER] ========================================"); - log.Information("[ChauffeurMode] [QUESTER] === ARRIVED AT DESTINATION ==="); - log.Information("[ChauffeurMode] [QUESTER] ========================================"); - if (num) - { - log.Information("[ChauffeurMode] [QUESTER] Dismounting from RidePillion (Condition 10 active)"); - TaskCompletionSource dismountTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/ridepillion"); - log.Information("[ChauffeurMode] [QUESTER] /ridepillion command sent to dismount"); - dismountTask.SetResult(result: true); - } - catch (Exception ex2) - { - log.Error("[ChauffeurMode] [QUESTER] Command error: " + ex2.Message); - dismountTask.SetResult(result: false); - } - }); - await dismountTask.Task; - log.Information("[ChauffeurMode] [QUESTER] Waiting 3 seconds for dismount..."); - await Task.Delay(3000); - TaskCompletionSource verifyTask = new TaskCompletionSource(); - framework.RunOnFrameworkThread(delegate - { - bool flag = condition[ConditionFlag.Mounted] || condition[ConditionFlag.RidingPillion]; - log.Information($"[ChauffeurMode] [QUESTER] After dismount - Still mounted: {flag}"); - verifyTask.SetResult(!flag); - }); - await verifyTask.Task; - } - else - { - log.Information("[ChauffeurMode] [QUESTER] Not mounted as passenger, skipping dismount"); - } - log.Information("[ChauffeurMode] [QUESTER] Leaving party"); - await framework.RunOnFrameworkThread(delegate - { - memoryHelper.SendChatMessage("/leave"); - log.Information("[ChauffeurMode] [QUESTER] /leave command sent via UIModule"); - }); - await Task.Delay(1000); - log.Information("[ChauffeurMode] [QUESTER] ========================================"); - log.Information("[ChauffeurMode] [QUESTER] === RESUMING QUESTIONABLE ==="); - log.Information("[ChauffeurMode] [QUESTER] ========================================"); - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - log.Information("[ChauffeurMode] [QUESTER] /qst start command sent"); - }); - isWaitingForHelper = false; - hasExecutedRidePillion = false; - targetPosition = null; - targetZoneId = 0u; - log.Information("[ChauffeurMode] Chauffeur transport complete - FLAGS RESET"); - } - catch (Exception ex) - { - log.Error("[ChauffeurMode] [QUESTER] Error during arrival: " + ex.Message); - } - }); - } - - private void OnTerritoryChanged(ushort territoryId) - { - if (!config.ChauffeurModeEnabled) - { - return; - } - if (isWaitingForHelper && targetZoneId != 0 && targetZoneId != territoryId) - { - log.Information($"[ChauffeurMode] Zone changed ({targetZoneId} -> {territoryId}) while waiting for helper, resetting state"); - ResetChauffeurState(); - } - if (config.IsQuester && !((DateTime.Now - lastZoneUpdate).TotalSeconds < 5.0)) - { - lastZoneUpdate = DateTime.Now; - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer != null) - { - string zoneName = GetZoneName(territoryId); - log.Information($"[ChauffeurMode] Zone changed: {zoneName} ({territoryId})"); - log.Information("[ChauffeurMode] Territory Load State: Zone change detected, starting 8-second broadcast delay"); - lastZoneChangeTime = DateTime.Now; - log.Information("[ChauffeurMode] [QUESTER] Sending zone update to helper"); - crossProcessIPC.SendChauffeurZoneUpdate(localPlayer.Name.ToString(), (ushort)localPlayer.HomeWorld.RowId, territoryId, zoneName); - } - } - } - - private void OnChauffeurZoneUpdate(string questerName, ushort questerWorld, uint zoneId, string zoneName) - { - if (!config.ChauffeurModeEnabled || !config.IsHighLevelHelper) - { - return; - } - log.Debug($"[ChauffeurMode] Zone update received: {questerName}@{questerWorld} -> {zoneName} ({zoneId})"); - log.Debug("[ChauffeurMode] Auto-follow disabled, waiting for explicit summon"); - if (isTransportingQuester) - { - log.Information("[ChauffeurMode] Quester moved to different zone (" + zoneName + "), cancelling transport"); - ResetChauffeurState(); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/vnav stop"); - log.Information("[ChauffeurMode] Navigation stopped"); - }); - } - } - - private string GetZoneName(uint territoryId) - { - try - { - ExcelSheet territorySheet = dataManager.GetExcelSheet(); - if (territorySheet == null) - { - return $"Zone {territoryId}"; - } - TerritoryType? territory = territorySheet.GetRowOrDefault(territoryId); - if (!territory.HasValue) - { - return $"Zone {territoryId}"; - } - return territory.Value.PlaceName.ValueNullable?.Name.ToString() ?? $"Zone {territoryId}"; - } - catch - { - return $"Zone {territoryId}"; - } - } - - private void ResetHelperTransportState() - { - log.Warning("[ChauffeurMode] [HELPER] Resetting transport state due to workflow abort"); - isTransportingQuester = false; - if (config.IsHighLevelHelper && !string.IsNullOrEmpty(config.AssignedQuester)) - { - log.Information("[ChauffeurMode] [HELPER] Clearing assigned quester: " + config.AssignedQuester); - config.AssignedQuester = ""; - config.CurrentHelperStatus = HelperStatus.Available; - config.Save(); - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer != null) - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "Available"); - } - } - } - - public void ResetChauffeurState() - { - log.Warning("[ChauffeurMode] ========================================"); - log.Warning("[ChauffeurMode] === RESETTING CHAUFFEUR STATE ==="); - log.Warning("[ChauffeurMode] ========================================"); - log.Warning($"[ChauffeurMode] IsWaitingForHelper: {isWaitingForHelper}, IsTransportingQuester: {isTransportingQuester}"); - if (helperWorkflowCts != null) - { - log.Information("[ChauffeurMode] Cancelling running helper workflow"); - helperWorkflowCts.Cancel(); - helperWorkflowCts.Dispose(); - helperWorkflowCts = null; - } - isWaitingForHelper = false; - isTransportingQuester = false; - hasExecutedRidePillion = false; - targetPosition = null; - targetZoneId = 0u; - questerName = null; - StopNavigation(); - if (config.IsHighLevelHelper) - { - if (!string.IsNullOrEmpty(config.AssignedQuester)) - { - log.Information("[ChauffeurMode] [HELPER] Clearing assigned quester: " + config.AssignedQuester); - config.AssignedQuester = ""; - } - config.CurrentHelperStatus = HelperStatus.Available; - config.Save(); - log.Information("[ChauffeurMode] [HELPER] Status: Available"); - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer != null) - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "Available"); - } - } - } - - public void CheckHelperFollowing() - { - if (!config.EnableHelperFollowing) - { - if (isFollowingQuester) - { - StopFollowingQuester(); - } - } - else - { - if (!config.IsHighLevelHelper) - { - return; - } - if (string.IsNullOrEmpty(config.AssignedQuesterForFollowing)) - { - if (isFollowingQuester) - { - log.Warning("[HelperFollowing] Stopped - no assigned quester configured!"); - StopFollowingQuester(); - } - return; - } - if (condition[ConditionFlag.BoundByDuty] || condition[ConditionFlag.BoundByDuty56] || condition[ConditionFlag.BoundByDuty95]) - { - log.Debug("[HelperFollowing] Skipping - in duty/dungeon"); - if (isFollowingQuester) - { - log.Information("[HelperFollowing] Stopping - entered duty/dungeon"); - StopFollowingQuester(); - } - return; - } - if (isTransportingQuester) - { - log.Debug("[HelperFollowing] Skipping - currently transporting quester"); - if (isFollowingQuester) - { - log.Information("[HelperFollowing] Stopping - Chauffeur Mode active"); - StopFollowingQuester(); - } - return; - } - ushort currentZone = clientState.TerritoryType; - if (restrictedZones.Contains(currentZone)) - { - log.Debug($"[HelperFollowing] Skipping - in restricted zone {currentZone}"); - if (isFollowingQuester) - { - log.Information($"[HelperFollowing] Stopping - entered restricted zone {currentZone}"); - StopFollowingQuester(); - } - return; - } - if (BLACKLISTED_ZONES.Contains(currentZone)) - { - log.Debug($"[HelperFollowing] Skipping - in blacklisted zone {currentZone}"); - if (isFollowingQuester) - { - log.Information($"[HelperFollowing] Stopping - entered blacklisted zone {currentZone}"); - StopFollowingQuester(); - } - return; - } - DateTime now = DateTime.Now; - if ((now - lastFollowCheck).TotalSeconds < (double)config.HelperFollowCheckInterval) - { - return; - } - lastFollowCheck = now; - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return; - } - if (!lastQuesterPosition.HasValue || lastQuesterZone == 0) - { - if (isFollowingQuester) - { - log.Information("[HelperFollowing] Stopped - no quester position data"); - StopFollowingQuester(); - } - return; - } - if (restrictedZones.Contains(lastQuesterZone)) - { - log.Debug($"[HelperFollowing] Skipping - Quester is in restricted zone {lastQuesterZone}"); - if (isFollowingQuester) - { - log.Information($"[HelperFollowing] Stopping - Quester entered restricted zone {lastQuesterZone}"); - StopFollowingQuester(); - } - return; - } - if (BLACKLISTED_ZONES.Contains(lastQuesterZone)) - { - log.Debug($"[HelperFollowing] Skipping - Quester is in blacklisted zone {lastQuesterZone}"); - if (isFollowingQuester) - { - log.Information($"[HelperFollowing] Stopping - Quester entered blacklisted zone {lastQuesterZone}"); - StopFollowingQuester(); - } - return; - } - uint questerZone = lastQuesterZone; - if (questerZone != currentZone) - { - if (!IsMountingAllowed(questerZone)) - { - log.Debug($"[HelperFollowing] Skipping - Quester's zone {questerZone} does not allow mounting/flying"); - if (isFollowingQuester) - { - log.Information($"[HelperFollowing] Stopping - Quester entered non-flying zone {questerZone}"); - StopFollowingQuester(); - } - return; - } - if (HasFlyingInZone(questerZone)) - { - log.Debug($"[HelperFollowing] Quester can fly in zone {questerZone} - no need to follow"); - if (isFollowingQuester) - { - log.Information("[HelperFollowing] Stopping - Quester can fly in their zone"); - StopFollowingQuester(); - } - return; - } - log.Information($"[HelperFollowing] Quester in different zone ({questerZone} vs {currentZone}) - teleporting"); - Task.Run(async delegate - { - try - { - if (await TeleportToZone(questerZone)) - { - log.Information($"[HelperFollowing] Successfully teleported to zone {questerZone}"); - } - else - { - log.Warning($"[HelperFollowing] Failed to teleport to zone {questerZone}"); - } - } - catch (Exception ex) - { - log.Error("[HelperFollowing] Error teleporting to zone: " + ex.Message); - } - }); - return; - } - Vector3 questerPos = lastQuesterPosition.Value; - float distance = Vector3.Distance(localPlayer.Position, questerPos); - log.Debug($"[HelperFollowing] Distance to quester: {distance:F1} yalms (threshold: {config.HelperFollowDistance})"); - if (distance > config.HelperFollowDistance) - { - log.Information($"[HelperFollowing] Distance {distance:F1} > {config.HelperFollowDistance} - navigating to quester"); - if (!condition[ConditionFlag.Mounted] && config.ChauffeurMountId != 0) - { - log.Information("[HelperFollowing] Not mounted - summoning Chauffeur mount"); - framework.RunOnFrameworkThread(delegate - { - SummonMountDirect(config.ChauffeurMountId); - }); - return; - } - NavigateToQuester(questerPos); - if (!isFollowingQuester) - { - isFollowingQuester = true; - log.Information("[HelperFollowing] Started following " + followingQuesterName); - } - } - else if (isFollowingQuester) - { - log.Debug($"[HelperFollowing] Within range ({distance:F1} yalms) - stopping navigation"); - StopNavigation(); - } - lastQuesterPosition = questerPos; - lastQuesterZone = questerZone; - } - } - - private void BroadcastQuesterPosition() - { - if (!config.IsQuester || string.IsNullOrEmpty(config.AssignedHelperForFollowing)) - { - return; - } - if (condition[ConditionFlag.BoundByDuty] || condition[ConditionFlag.BoundByDuty56] || condition[ConditionFlag.BoundByDuty95]) - { - log.Debug("[HelperFollowing] Skipping broadcast - in duty/dungeon"); - return; - } - if (lastZoneChangeTime.HasValue) - { - double timeSinceZoneChange = (DateTime.Now - lastZoneChangeTime.Value).TotalSeconds; - if (timeSinceZoneChange < 8.0) - { - log.Debug($"[ChauffeurMode] [HelperFollowing] Territory Load State: Waiting for zone load (elapsed: {timeSinceZoneChange:F1}s / 8.0s)"); - return; - } - log.Information($"[ChauffeurMode] [HelperFollowing] Territory Load State: Zone load complete ({timeSinceZoneChange:F1}s) - resuming position broadcasts"); - lastZoneChangeTime = null; - } - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return; - } - string questerName = localPlayer.Name.ToString(); - ushort questerWorld = (ushort)localPlayer.HomeWorld.RowId; - ushort currentZone = clientState.TerritoryType; - Vector3 position = localPlayer.Position; - crossProcessIPC.BroadcastQuesterPosition(questerName, questerWorld, currentZone, position); - LANHelperClient lanClient = Plugin.Instance?.GetLANHelperClient(); - if (lanClient != null) - { - IReadOnlyList lanHelpers = lanClient.DiscoveredHelpers; - if (lanHelpers.Count > 0) - { - LANHelperInfo firstHelper = lanHelpers.First(); - lanClient.SendFollowCommandAsync(firstHelper.IPAddress, position.X, position.Y, position.Z, currentZone); - } - } - } - - private void OnQuesterPositionUpdate(string questerName, ushort questerWorld, uint zoneId, Vector3 position) - { - if (!config.IsHighLevelHelper) - { - return; - } - string worldName = (dataManager.GetExcelSheet()?.GetRowOrDefault(questerWorld))?.Name.ToString() ?? questerWorld.ToString(); - string receivedQuesterKey = questerName + "@" + worldName; - discoveredQuesters[receivedQuesterKey] = DateTime.Now; - if (config.EnableHelperFollowing) - { - if (string.IsNullOrEmpty(config.AssignedQuesterForFollowing)) - { - log.Debug("[HelperFollowing] No assigned quester - ignoring position update"); - return; - } - if (receivedQuesterKey != config.AssignedQuesterForFollowing) - { - log.Debug("[HelperFollowing] Ignoring position from " + receivedQuesterKey + " - assigned quester is " + config.AssignedQuesterForFollowing); - return; - } - lastQuesterPosition = position; - lastQuesterZone = zoneId; - followingQuesterName = receivedQuesterKey; - log.Debug($"[HelperFollowing] Updated position for {followingQuesterName}: zone {zoneId}, pos ({position.X:F1},{position.Y:F1},{position.Z:F1})"); - } - } - - private IPartyMember? FindQuesterInParty() - { - if (partyList == null || partyList.Length == 0) - { - return null; - } - IPlayerCharacter localPlayer = objectTable.LocalPlayer; - if (localPlayer == null) - { - return null; - } - string helperName = localPlayer.Name.ToString(); - uint helperWorld = localPlayer.HomeWorld.RowId; - for (int i = 0; i < partyList.Length; i++) - { - IPartyMember member = partyList[i]; - if (member == null) - { - continue; - } - string memberName = member.Name.ToString(); - uint memberWorld = member.World.RowId; - if (!(memberName == helperName) || memberWorld != helperWorld) - { - if (string.IsNullOrEmpty(config.AssignedQuester)) - { - log.Debug("[HelperFollowing] No assigned quester - following first party member: " + memberName); - return member; - } - string assignedQuester = config.AssignedQuester; - string memberKey = $"{memberName}@{memberWorld}"; - if (assignedQuester == memberKey) - { - log.Debug("[HelperFollowing] Found assigned quester: " + memberName); - return member; - } - } - } - return null; - } - - private void NavigateToQuester(Vector3 position) - { - try - { - string command = $"/vnav flyto {position.X.ToString(CultureInfo.InvariantCulture)} {position.Y.ToString(CultureInfo.InvariantCulture)} {position.Z.ToString(CultureInfo.InvariantCulture)}"; - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand(command); - log.Debug("[HelperFollowing] Sent: " + command); - }); - } - catch (Exception ex) - { - log.Error("[HelperFollowing] Error navigating to quester: " + ex.Message); - } - } - - private void StopNavigation() - { - try - { - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/vnav stop"); - log.Debug("[HelperFollowing] Stopped navigation"); - }); - } - catch (Exception ex) - { - log.Error("[HelperFollowing] Error stopping navigation: " + ex.Message); - } - } - - private void StopFollowingQuester() - { - if (isFollowingQuester) - { - log.Information("[HelperFollowing] Stopped following " + followingQuesterName); - StopNavigation(); - isFollowingQuester = false; - followingQuesterName = null; - lastQuesterPosition = null; - } - } - - public void Dispose() - { - isDisposed = true; - if (isFollowingQuester) - { - StopFollowingQuester(); - } - if (crossProcessIPC != null) - { - crossProcessIPC.OnChauffeurSummonRequest -= OnChauffeurSummonRequest; - crossProcessIPC.OnChauffeurReadyForPickup -= OnChauffeurReadyForPickup; - crossProcessIPC.OnChauffeurArrived -= OnChauffeurArrived; - crossProcessIPC.OnChauffeurZoneUpdate -= OnChauffeurZoneUpdate; - crossProcessIPC.OnChauffeurMountReady -= OnChauffeurMountReady; - crossProcessIPC.OnHelperStatusUpdate -= OnHelperStatusUpdate; - crossProcessIPC.OnQuesterPositionUpdate -= OnQuesterPositionUpdate; - } - if (clientState != null) - { - clientState.TerritoryChanged -= OnTerritoryChanged; - } - vnavmeshIPC?.Dispose(); - if (framework != null) - { - framework.Update -= OnFrameworkUpdate; - } - log.Information("[ChauffeurMode] Service disposed"); - } -} diff --git a/QuestionableCompanion/QSTCompanion.csproj b/QuestionableCompanion/QSTCompanion.csproj deleted file mode 100644 index 1ab981d..0000000 --- a/QuestionableCompanion/QSTCompanion.csproj +++ /dev/null @@ -1,37 +0,0 @@ - - - QSTCompanion - False - netcoreapp9.0 - x64 - - - 12.0 - True - - - - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\Dalamud.dll - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\Newtonsoft.Json.dll - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\Lumina.dll - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\Lumina.Excel.dll - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\FFXIVClientStructs.dll - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\Dalamud.Bindings.ImGui.dll - - - ..\..\..\..\..\ffxiv\alyssile-xivl\addon\Hooks\dev\InteropGenerator.Runtime.dll - - - \ No newline at end of file diff --git a/QuestionableCompanion/QuestionableCompanion.Data/ExpansionProgress.cs b/QuestionableCompanion/QuestionableCompanion.Data/ExpansionProgress.cs deleted file mode 100644 index 63aa157..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Data/ExpansionProgress.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace QuestionableCompanion.Data; - -public class ExpansionProgress -{ - public MSQExpansionData.Expansion Expansion { get; set; } - - public int CompletedCount { get; set; } - - public int ExpectedCount { get; set; } - - public float Percentage { get; set; } - - public bool IsComplete { get; set; } - - public string ExpansionName => MSQExpansionData.GetExpansionName(Expansion); - - public string ExpansionShortName => MSQExpansionData.GetExpansionShortName(Expansion); -} diff --git a/QuestionableCompanion/QuestionableCompanion.Data/MSQExpansionData.cs b/QuestionableCompanion/QuestionableCompanion.Data/MSQExpansionData.cs deleted file mode 100644 index a89dcaf..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Data/MSQExpansionData.cs +++ /dev/null @@ -1,479 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using FFXIVClientStructs.FFXIV.Client.UI.Agent; - -namespace QuestionableCompanion.Data; - -public static class MSQExpansionData -{ - public enum Expansion - { - ARealmReborn, - Heavensward, - Stormblood, - Shadowbringers, - Endwalker, - Dawntrail - } - - private static readonly Dictionary> ExpansionQuests = new Dictionary> - { - { - Expansion.ARealmReborn, - new HashSet() - }, - { - Expansion.Heavensward, - new HashSet() - }, - { - Expansion.Stormblood, - new HashSet() - }, - { - Expansion.Shadowbringers, - new HashSet() - }, - { - Expansion.Endwalker, - new HashSet() - }, - { - Expansion.Dawntrail, - new HashSet() - } - }; - - private static readonly Dictionary ExpectedQuestCounts = new Dictionary - { - { - Expansion.ARealmReborn, - 200 - }, - { - Expansion.Heavensward, - 100 - }, - { - Expansion.Stormblood, - 100 - }, - { - Expansion.Shadowbringers, - 100 - }, - { - Expansion.Endwalker, - 100 - }, - { - Expansion.Dawntrail, - 100 - } - }; - - private static readonly Dictionary ExpansionNames = new Dictionary - { - { - Expansion.ARealmReborn, - "A Realm Reborn" - }, - { - Expansion.Heavensward, - "Heavensward" - }, - { - Expansion.Stormblood, - "Stormblood" - }, - { - Expansion.Shadowbringers, - "Shadowbringers" - }, - { - Expansion.Endwalker, - "Endwalker" - }, - { - Expansion.Dawntrail, - "Dawntrail" - } - }; - - private static readonly Dictionary ExpansionShortNames = new Dictionary - { - { - Expansion.ARealmReborn, - "ARR" - }, - { - Expansion.Heavensward, - "HW" - }, - { - Expansion.Stormblood, - "SB" - }, - { - Expansion.Shadowbringers, - "ShB" - }, - { - Expansion.Endwalker, - "EW" - }, - { - Expansion.Dawntrail, - "DT" - } - }; - - public static void RegisterQuest(uint questId, Expansion expansion) - { - if (ExpansionQuests.TryGetValue(expansion, out HashSet quests)) - { - quests.Add(questId); - } - } - - public static void ClearQuests() - { - foreach (HashSet value in ExpansionQuests.Values) - { - value.Clear(); - } - } - - public static Expansion GetExpansionForQuest(uint questId) - { - foreach (var (expansion2, hashSet2) in ExpansionQuests) - { - if (hashSet2.Contains(questId)) - { - return expansion2; - } - } - return Expansion.ARealmReborn; - } - - public static IReadOnlySet GetQuestsForExpansion(Expansion expansion) - { - if (!ExpansionQuests.TryGetValue(expansion, out HashSet quests)) - { - return new HashSet(); - } - return quests; - } - - public static int GetExpectedQuestCount(Expansion expansion) - { - if (!ExpectedQuestCounts.TryGetValue(expansion, out var count)) - { - return 0; - } - return count; - } - - public static string GetExpansionName(Expansion expansion) - { - if (!ExpansionNames.TryGetValue(expansion, out string name)) - { - return "Unknown"; - } - return name; - } - - public static string GetExpansionShortName(Expansion expansion) - { - if (!ExpansionShortNames.TryGetValue(expansion, out string name)) - { - return "???"; - } - return name; - } - - public static IEnumerable GetAllExpansions() - { - return from e in Enum.GetValues() - orderby (int)e - select e; - } - - public static int GetCompletedQuestCountForExpansion(IEnumerable completedQuestIds, Expansion expansion) - { - IReadOnlySet expansionQuests = GetQuestsForExpansion(expansion); - return completedQuestIds.Count((uint qId) => expansionQuests.Contains(qId)); - } - - public unsafe static (Expansion expansion, string debugInfo) GetCurrentExpansionFromGameWithDebug() - { - StringBuilder debug = new StringBuilder(); - debug.AppendLine("=== AGENT SCENARIO TREE DEBUG ==="); - try - { - AgentScenarioTree* agentScenarioTree = AgentScenarioTree.Instance(); - StringBuilder stringBuilder = debug; - StringBuilder stringBuilder2 = stringBuilder; - StringBuilder.AppendInterpolatedStringHandler handler = new StringBuilder.AppendInterpolatedStringHandler(30, 1, stringBuilder); - handler.AppendLiteral("AgentScenarioTree.Instance(): "); - handler.AppendFormatted((agentScenarioTree != null) ? "OK" : "NULL"); - stringBuilder2.AppendLine(ref handler); - if (agentScenarioTree == null) - { - debug.AppendLine("ERROR: AgentScenarioTree is NULL!"); - return (expansion: Expansion.ARealmReborn, debugInfo: debug.ToString()); - } - stringBuilder = debug; - StringBuilder stringBuilder3 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(25, 1, stringBuilder); - handler.AppendLiteral("AgentScenarioTree->Data: "); - handler.AppendFormatted((agentScenarioTree->Data != null) ? "OK" : "NULL"); - stringBuilder3.AppendLine(ref handler); - if (agentScenarioTree->Data == null) - { - debug.AppendLine("ERROR: AgentScenarioTree->Data is NULL!"); - return (expansion: Expansion.ARealmReborn, debugInfo: debug.ToString()); - } - ushort currentQuest = agentScenarioTree->Data->CurrentScenarioQuest; - ushort completedQuest = agentScenarioTree->Data->CompleteScenarioQuest; - stringBuilder = debug; - StringBuilder stringBuilder4 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(33, 2, stringBuilder); - handler.AppendLiteral("CurrentScenarioQuest (raw): "); - handler.AppendFormatted(currentQuest); - handler.AppendLiteral(" (0x"); - handler.AppendFormatted(currentQuest, "X4"); - handler.AppendLiteral(")"); - stringBuilder4.AppendLine(ref handler); - stringBuilder = debug; - StringBuilder stringBuilder5 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(34, 2, stringBuilder); - handler.AppendLiteral("CompleteScenarioQuest (raw): "); - handler.AppendFormatted(completedQuest); - handler.AppendLiteral(" (0x"); - handler.AppendFormatted(completedQuest, "X4"); - handler.AppendLiteral(")"); - stringBuilder5.AppendLine(ref handler); - ushort questToCheck = ((currentQuest != 0) ? currentQuest : completedQuest); - stringBuilder = debug; - StringBuilder stringBuilder6 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(25, 2, stringBuilder); - handler.AppendLiteral("Quest to check: "); - handler.AppendFormatted(questToCheck); - handler.AppendLiteral(" (using "); - handler.AppendFormatted((currentQuest != 0) ? "Current" : "Completed"); - handler.AppendLiteral(")"); - stringBuilder6.AppendLine(ref handler); - if (questToCheck == 0) - { - debug.AppendLine("WARNING: Both CurrentScenarioQuest and CompleteScenarioQuest are 0!"); - return (expansion: Expansion.ARealmReborn, debugInfo: debug.ToString()); - } - uint questId = (uint)(questToCheck | 0x10000); - stringBuilder = debug; - StringBuilder stringBuilder7 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(25, 2, stringBuilder); - handler.AppendLiteral("Converted Quest ID: "); - handler.AppendFormatted(questId); - handler.AppendLiteral(" (0x"); - handler.AppendFormatted(questId, "X8"); - handler.AppendLiteral(")"); - stringBuilder7.AppendLine(ref handler); - Expansion expansion = GetExpansionForQuest(questId); - stringBuilder = debug; - StringBuilder stringBuilder8 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(22, 2, stringBuilder); - handler.AppendLiteral("Expansion for Quest "); - handler.AppendFormatted(questId); - handler.AppendLiteral(": "); - handler.AppendFormatted(GetExpansionName(expansion)); - stringBuilder8.AppendLine(ref handler); - IReadOnlySet expansionQuests = GetQuestsForExpansion(expansion); - bool isRegistered = expansionQuests.Contains(questId); - stringBuilder = debug; - StringBuilder stringBuilder9 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(23, 3, stringBuilder); - handler.AppendLiteral("Quest "); - handler.AppendFormatted(questId); - handler.AppendLiteral(" registered in "); - handler.AppendFormatted(expansion); - handler.AppendLiteral(": "); - handler.AppendFormatted(isRegistered); - stringBuilder9.AppendLine(ref handler); - if (!isRegistered) - { - stringBuilder = debug; - StringBuilder stringBuilder10 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(48, 1, stringBuilder); - handler.AppendLiteral("WARNING: Quest "); - handler.AppendFormatted(questId); - handler.AppendLiteral(" is NOT in our registered quests!"); - stringBuilder10.AppendLine(ref handler); - stringBuilder = debug; - StringBuilder stringBuilder11 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(30, 2, stringBuilder); - handler.AppendLiteral("Total registered quests for "); - handler.AppendFormatted(expansion); - handler.AppendLiteral(": "); - handler.AppendFormatted(expansionQuests.Count); - stringBuilder11.AppendLine(ref handler); - foreach (Expansion exp in GetAllExpansions()) - { - if (GetQuestsForExpansion(exp).Contains(questId)) - { - stringBuilder = debug; - StringBuilder stringBuilder12 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(10, 1, stringBuilder); - handler.AppendLiteral("FOUND in "); - handler.AppendFormatted(exp); - handler.AppendLiteral("!"); - stringBuilder12.AppendLine(ref handler); - expansion = exp; - break; - } - } - } - stringBuilder = debug; - StringBuilder stringBuilder13 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(25, 1, stringBuilder); - handler.AppendLiteral(">>> FINAL EXPANSION: "); - handler.AppendFormatted(GetExpansionName(expansion)); - handler.AppendLiteral(" <<<"); - stringBuilder13.AppendLine(ref handler); - return (expansion: expansion, debugInfo: debug.ToString()); - } - catch (Exception ex) - { - StringBuilder stringBuilder = debug; - StringBuilder stringBuilder14 = stringBuilder; - StringBuilder.AppendInterpolatedStringHandler handler = new StringBuilder.AppendInterpolatedStringHandler(11, 1, stringBuilder); - handler.AppendLiteral("EXCEPTION: "); - handler.AppendFormatted(ex.Message); - stringBuilder14.AppendLine(ref handler); - stringBuilder = debug; - StringBuilder stringBuilder15 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(7, 1, stringBuilder); - handler.AppendLiteral("Stack: "); - handler.AppendFormatted(ex.StackTrace); - stringBuilder15.AppendLine(ref handler); - return (expansion: Expansion.ARealmReborn, debugInfo: debug.ToString()); - } - } - - public static Expansion GetCurrentExpansionFromGame() - { - return GetCurrentExpansionFromGameWithDebug().expansion; - } - - public static Expansion GetCurrentExpansion(IEnumerable completedQuestIds) - { - List questList = completedQuestIds.ToList(); - if (questList.Count == 0) - { - return Expansion.ARealmReborn; - } - foreach (Expansion expansion in GetAllExpansions().Reverse().ToList()) - { - IReadOnlySet expansionQuests = GetQuestsForExpansion(expansion); - if (questList.Where((uint qId) => expansionQuests.Contains(qId)).ToList().Count > 0) - { - return expansion; - } - } - return Expansion.ARealmReborn; - } - - public static string GetExpansionDetectionDebugInfo(IEnumerable completedQuestIds) - { - List questList = completedQuestIds.ToList(); - StringBuilder result = new StringBuilder(); - result.AppendLine("=== EXPANSION DETECTION DEBUG ==="); - StringBuilder stringBuilder = result; - StringBuilder stringBuilder2 = stringBuilder; - StringBuilder.AppendInterpolatedStringHandler handler = new StringBuilder.AppendInterpolatedStringHandler(24, 1, stringBuilder); - handler.AppendLiteral("Total completed quests: "); - handler.AppendFormatted(questList.Count); - stringBuilder2.AppendLine(ref handler); - result.AppendLine(""); - result.AppendLine("Checking expansions from highest to lowest:"); - result.AppendLine(""); - foreach (Expansion expansion in GetAllExpansions().Reverse()) - { - IReadOnlySet expansionQuests = GetQuestsForExpansion(expansion); - List completedInExpansion = questList.Where((uint qId) => expansionQuests.Contains(qId)).ToList(); - float percentage = ((expansionQuests.Count > 0) ? ((float)completedInExpansion.Count / (float)expansionQuests.Count * 100f) : 0f); - stringBuilder = result; - StringBuilder stringBuilder3 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(4, 2, stringBuilder); - handler.AppendFormatted(GetExpansionName(expansion)); - handler.AppendLiteral(" ("); - handler.AppendFormatted(GetExpansionShortName(expansion)); - handler.AppendLiteral("):"); - stringBuilder3.AppendLine(ref handler); - stringBuilder = result; - StringBuilder stringBuilder4 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(28, 1, stringBuilder); - handler.AppendLiteral(" - Total MSQ in expansion: "); - handler.AppendFormatted(expansionQuests.Count); - stringBuilder4.AppendLine(ref handler); - stringBuilder = result; - StringBuilder stringBuilder5 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(32, 2, stringBuilder); - handler.AppendLiteral(" - Completed by character: "); - handler.AppendFormatted(completedInExpansion.Count); - handler.AppendLiteral(" ("); - handler.AppendFormatted(percentage, "F1"); - handler.AppendLiteral("%)"); - stringBuilder5.AppendLine(ref handler); - if (completedInExpansion.Count > 0) - { - string samples = string.Join(", ", completedInExpansion.OrderByDescending((uint x) => x).Take(5)); - stringBuilder = result; - StringBuilder stringBuilder6 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(22, 1, stringBuilder); - handler.AppendLiteral(" - Sample Quest IDs: "); - handler.AppendFormatted(samples); - stringBuilder6.AppendLine(ref handler); - result.AppendLine(" >>> HAS COMPLETED QUESTS - WOULD SELECT THIS EXPANSION <<<"); - } - else - { - result.AppendLine(" - No quests completed in this expansion"); - } - result.AppendLine(""); - } - Expansion currentExpansion = GetCurrentExpansion(questList); - result.AppendLine("==========================================="); - stringBuilder = result; - StringBuilder stringBuilder7 = stringBuilder; - handler = new StringBuilder.AppendInterpolatedStringHandler(34, 1, stringBuilder); - handler.AppendLiteral(">>> FINAL DETECTED EXPANSION: "); - handler.AppendFormatted(GetExpansionName(currentExpansion)); - handler.AppendLiteral(" <<<"); - stringBuilder7.AppendLine(ref handler); - result.AppendLine("==========================================="); - return result.ToString(); - } - - public static ExpansionProgress GetExpansionProgress(IEnumerable completedQuestIds, Expansion expansion) - { - int completed = GetCompletedQuestCountForExpansion(completedQuestIds, expansion); - int expected = GetExpectedQuestCount(expansion); - return new ExpansionProgress - { - Expansion = expansion, - CompletedCount = completed, - ExpectedCount = expected, - Percentage = ((expected > 0) ? ((float)completed / (float)expected * 100f) : 0f), - IsComplete = (completed >= expected) - }; - } - - public static List GetAllExpansionProgress(IEnumerable completedQuestIds) - { - return (from exp in GetAllExpansions() - select GetExpansionProgress(completedQuestIds, exp)).ToList(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Helpers/ImGuiDragDrop.cs b/QuestionableCompanion/QuestionableCompanion.Helpers/ImGuiDragDrop.cs deleted file mode 100644 index b5c29a9..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Helpers/ImGuiDragDrop.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Dalamud.Bindings.ImGui; - -namespace QuestionableCompanion.Helpers; - -public static class ImGuiDragDrop -{ - public static void SetDragDropPayload(string type, T data, ImGuiCond cond = ImGuiCond.None) where T : struct - { - ReadOnlySpan span = MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(in data, 1)); - ImGui.SetDragDropPayload(type, span, cond); - } - - public unsafe static bool AcceptDragDropPayload(string type, out T payload, ImGuiDragDropFlags flags = ImGuiDragDropFlags.None) where T : struct - { - ImGuiPayload* pload = ImGui.AcceptDragDropPayload(type, flags); - payload = ((pload != null) ? Unsafe.Read(pload->Data) : default(T)); - return pload != null; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyCharacterStatus.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyCharacterStatus.cs deleted file mode 100644 index 46bca3f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyCharacterStatus.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace QuestionableCompanion.Models; - -public class AlliedSocietyCharacterStatus -{ - public required string CharacterId { get; set; } - - public AlliedSocietyRotationStatus Status { get; set; } - - public DateTime? LastCompletionDate { get; set; } - - public List ImportedQuestIds { get; set; } = new List(); -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyConfiguration.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyConfiguration.cs deleted file mode 100644 index 4004e4e..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyConfiguration.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Collections.Generic; - -namespace QuestionableCompanion.Models; - -public class AlliedSocietyConfiguration -{ - public List Priorities { get; set; } = new List(); - - public AlliedSocietyQuestMode QuestMode { get; set; } - - public void InitializeDefaults() - { - Priorities.Clear(); - for (byte i = 1; i <= 20; i++) - { - Priorities.Add(new AlliedSocietyPriority - { - SocietyId = i, - Enabled = true, - Order = i - 1 - }); - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyPriority.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyPriority.cs deleted file mode 100644 index b46d9f6..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyPriority.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class AlliedSocietyPriority -{ - public required byte SocietyId { get; set; } - - public bool Enabled { get; set; } - - public int Order { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyProgress.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyProgress.cs deleted file mode 100644 index 187dcd6..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyProgress.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class AlliedSocietyProgress -{ - public required string CharacterId { get; set; } - - public required byte SocietyId { get; set; } - - public int CurrentRank { get; set; } - - public bool IsMaxRank { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyQuestMode.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyQuestMode.cs deleted file mode 100644 index 9dbca7a..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyQuestMode.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum AlliedSocietyQuestMode -{ - OnlyThreePerSociety, - AllAvailableQuests -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyRotationPhase.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyRotationPhase.cs deleted file mode 100644 index f75c8c0..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyRotationPhase.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum AlliedSocietyRotationPhase -{ - Idle, - StartingRotation, - ImportingQuests, - WaitingForQuestAccept, - MonitoringQuests, - CheckingCompletion, - WaitingForCharacterSwitch, - Completed -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyRotationStatus.cs b/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyRotationStatus.cs deleted file mode 100644 index 3c4f622..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/AlliedSocietyRotationStatus.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum AlliedSocietyRotationStatus -{ - Ready, - InProgress, - Complete -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/CharacterProgressInfo.cs b/QuestionableCompanion/QuestionableCompanion.Models/CharacterProgressInfo.cs deleted file mode 100644 index 3cb90a0..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/CharacterProgressInfo.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class CharacterProgressInfo -{ - public string World { get; set; } = "Unknown"; - - public uint LastQuestId { get; set; } - - public string LastQuestName { get; set; } = "—"; - - public int CompletedQuestCount { get; set; } - - public DateTime LastUpdatedUtc { get; set; } = DateTime.MinValue; - - public uint LastCompletedMSQId { get; set; } - - public string LastCompletedMSQName { get; set; } = "—"; - - public int CompletedMSQCount { get; set; } - - public float MSQCompletionPercentage { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/ExecutionState.cs b/QuestionableCompanion/QuestionableCompanion.Models/ExecutionState.cs deleted file mode 100644 index 38febf1..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/ExecutionState.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class ExecutionState -{ - public string ActiveProfile { get; set; } = string.Empty; - - public string CurrentCharacter { get; set; } = string.Empty; - - public uint CurrentQuestId { get; set; } - - public string CurrentQuestName { get; set; } = string.Empty; - - public string CurrentSequence { get; set; } = string.Empty; - - public ExecutionStatus Status { get; set; } - - public int Progress { get; set; } - - public DateTime LastUpdate { get; set; } = DateTime.Now; -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/ExecutionStatus.cs b/QuestionableCompanion/QuestionableCompanion.Models/ExecutionStatus.cs deleted file mode 100644 index 68bb2f5..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/ExecutionStatus.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum ExecutionStatus -{ - Idle, - Waiting, - Queued, - Running, - Complete, - Failed -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANChauffeurResponse.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANChauffeurResponse.cs deleted file mode 100644 index 00b49ad..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANChauffeurResponse.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class LANChauffeurResponse -{ - public string QuesterName { get; set; } = string.Empty; - - public ushort QuesterWorldId { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANChauffeurSummon.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANChauffeurSummon.cs deleted file mode 100644 index c5a2dc4..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANChauffeurSummon.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class LANChauffeurSummon -{ - public string QuesterName { get; set; } = string.Empty; - - public ushort QuesterWorldId { get; set; } - - public uint ZoneId { get; set; } - - public float TargetX { get; set; } - - public float TargetY { get; set; } - - public float TargetZ { get; set; } - - public float QuesterX { get; set; } - - public float QuesterY { get; set; } - - public float QuesterZ { get; set; } - - public bool IsAttuneAetheryte { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANFollowCommand.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANFollowCommand.cs deleted file mode 100644 index d2310e9..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANFollowCommand.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class LANFollowCommand -{ - public float X { get; set; } - - public float Y { get; set; } - - public float Z { get; set; } - - public uint TerritoryId { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANHeartbeat.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANHeartbeat.cs deleted file mode 100644 index cba7496..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANHeartbeat.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class LANHeartbeat -{ - public string ClientName { get; set; } = string.Empty; - - public ushort ClientWorldId { get; set; } - - public string ClientRole { get; set; } = string.Empty; -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperInfo.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANHelperInfo.cs deleted file mode 100644 index df822d6..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperInfo.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace QuestionableCompanion.Models; - -public class LANHelperInfo -{ - public string Name { get; set; } = string.Empty; - - public ushort WorldId { get; set; } - - public string IPAddress { get; set; } = string.Empty; - - public LANHelperStatus Status { get; set; } - - public DateTime LastSeen { get; set; } = DateTime.Now; -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperRequest.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANHelperRequest.cs deleted file mode 100644 index e7d4499..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperRequest.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class LANHelperRequest -{ - public string QuesterName { get; set; } = string.Empty; - - public ushort QuesterWorldId { get; set; } - - public string DutyName { get; set; } = string.Empty; -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperStatus.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANHelperStatus.cs deleted file mode 100644 index 7ec5a82..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperStatus.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum LANHelperStatus -{ - Available, - Busy, - InParty, - InDuty, - Transporting, - Offline, - Error -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperStatusResponse.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANHelperStatusResponse.cs deleted file mode 100644 index 5e762ae..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANHelperStatusResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace QuestionableCompanion.Models; - -public class LANHelperStatusResponse -{ - public string Name { get; set; } = string.Empty; - - public ushort WorldId { get; set; } - - public LANHelperStatus Status { get; set; } - - public string? CurrentActivity { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANMessage.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANMessage.cs deleted file mode 100644 index ea51fb4..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANMessage.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using Newtonsoft.Json; - -namespace QuestionableCompanion.Models; - -public class LANMessage -{ - public LANMessageType Type { get; set; } - - public DateTime Timestamp { get; set; } = DateTime.Now; - - public string? Data { get; set; } - - public LANMessage() - { - } - - public LANMessage(LANMessageType type, object? data = null) - { - Type = type; - if (data != null) - { - Data = JsonConvert.SerializeObject(data); - } - } - - public T? GetData() - { - if (string.IsNullOrEmpty(Data)) - { - return default(T); - } - return JsonConvert.DeserializeObject(Data); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LANMessageType.cs b/QuestionableCompanion/QuestionableCompanion.Models/LANMessageType.cs deleted file mode 100644 index 3c04d4e..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LANMessageType.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum LANMessageType -{ - DISCOVER_REQUEST, - DISCOVER_RESPONSE, - REQUEST_HELPER, - HELPER_STATUS, - INVITE_NOTIFICATION, - INVITE_ACCEPTED, - HELPER_IN_PARTY, - HELPER_READY, - HELPER_IN_DUTY, - DUTY_COMPLETE, - FOLLOW_COMMAND, - FOLLOW_STARTED, - FOLLOW_ARRIVED, - CHAUFFEUR_PICKUP_REQUEST, - CHAUFFEUR_HELPER_READY_FOR_MOUNT, - CHAUFFEUR_HELPER_ARRIVED_DEST, - ERROR, - DISCONNECT, - HEARTBEAT -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LogEntry.cs b/QuestionableCompanion/QuestionableCompanion.Models/LogEntry.cs deleted file mode 100644 index ec80f8a..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LogEntry.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class LogEntry -{ - public DateTime Timestamp { get; set; } = DateTime.Now; - - public LogLevel Level { get; set; } - - public string Message { get; set; } = string.Empty; - - public string FormattedTimestamp => Timestamp.ToString("HH:mm:ss"); - - public string FormattedMessage => $"[{FormattedTimestamp}] {GetLevelIcon()} {Message}"; - - private string GetLevelIcon() - { - return Level switch - { - LogLevel.Info => "→", - LogLevel.Success => "✓", - LogLevel.Warning => "⏳", - LogLevel.Error => "✗", - LogLevel.Debug => "▶", - _ => "•", - }; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/LogLevel.cs b/QuestionableCompanion/QuestionableCompanion.Models/LogLevel.cs deleted file mode 100644 index 0cf3470..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/LogLevel.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum LogLevel -{ - Info, - Success, - Warning, - Error, - Debug -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/QuestConfig.cs b/QuestionableCompanion/QuestionableCompanion.Models/QuestConfig.cs deleted file mode 100644 index 0956ba5..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/QuestConfig.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class QuestConfig -{ - public uint QuestId { get; set; } - - public string QuestName { get; set; } = string.Empty; - - public TriggerType TriggerType { get; set; } = TriggerType.OnComplete; - - public SequenceConfig SequenceAfterQuest { get; set; } = new SequenceConfig(); - - public string NextCharacter { get; set; } = "auto_next"; - - public string AssignedCharacter { get; set; } = string.Empty; -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/QuestProfile.cs b/QuestionableCompanion/QuestionableCompanion.Models/QuestProfile.cs deleted file mode 100644 index fac0d0c..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/QuestProfile.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class QuestProfile -{ - public string Name { get; set; } = "New Profile"; - - public List Characters { get; set; } = new List(); - - public List Quests { get; set; } = new List(); - - public bool IsActive { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/RotationPhase.cs b/QuestionableCompanion/QuestionableCompanion.Models/RotationPhase.cs deleted file mode 100644 index ba6e1da..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/RotationPhase.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum RotationPhase -{ - Idle, - InitializingFirstCharacter, - WaitingForCharacterLogin, - ScanningQuests, - CheckingQuestCompletion, - DCTraveling, - WaitingForQuestStart, - Questing, - InCombat, - InDungeon, - HandlingSubmarines, - SyncingCharacterData, - WaitingForChauffeur, - TravellingWithChauffeur, - QuestActive, - WaitingForNextCharacterSwitch, - WaitingBeforeCharacterSwitch, - WaitingForHomeworldReturn, - Completed, - Error -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs b/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs deleted file mode 100644 index 99b204b..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs +++ /dev/null @@ -1,269 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace QuestionableCompanion.Models; - -public class RotationState -{ - private readonly object _lock = new object(); - - private uint _currentStopQuestId; - - private List _selectedCharacters = new List(); - - private string _currentCharacter = ""; - - private string _nextCharacter = ""; - - private List _completedCharacters = new List(); - - private List _remainingCharacters = new List(); - - private RotationPhase _phase; - - private DateTime _phaseStartTime = DateTime.Now; - - private string _errorMessage = ""; - - private DateTime? _rotationStartTime; - - private bool _hasQuestBeenAccepted; - - private uint? _lastKnownQuestState; - - private bool _isSyncOnlyMode; - - public uint CurrentStopQuestId - { - get - { - lock (_lock) - { - return _currentStopQuestId; - } - } - set - { - lock (_lock) - { - _currentStopQuestId = value; - } - } - } - - public List SelectedCharacters - { - get - { - lock (_lock) - { - return new List(_selectedCharacters); - } - } - set - { - lock (_lock) - { - _selectedCharacters = new List(value); - } - } - } - - public string CurrentCharacter - { - get - { - lock (_lock) - { - return _currentCharacter; - } - } - set - { - lock (_lock) - { - _currentCharacter = value; - } - } - } - - public string NextCharacter - { - get - { - lock (_lock) - { - return _nextCharacter; - } - } - set - { - lock (_lock) - { - _nextCharacter = value; - } - } - } - - public List CompletedCharacters - { - get - { - lock (_lock) - { - return new List(_completedCharacters); - } - } - set - { - lock (_lock) - { - _completedCharacters = new List(value); - } - } - } - - public List RemainingCharacters - { - get - { - lock (_lock) - { - return new List(_remainingCharacters); - } - } - set - { - lock (_lock) - { - _remainingCharacters = new List(value); - } - } - } - - public RotationPhase Phase - { - get - { - lock (_lock) - { - return _phase; - } - } - set - { - lock (_lock) - { - _phase = value; - } - } - } - - public DateTime PhaseStartTime - { - get - { - lock (_lock) - { - return _phaseStartTime; - } - } - set - { - lock (_lock) - { - _phaseStartTime = value; - } - } - } - - public string ErrorMessage - { - get - { - lock (_lock) - { - return _errorMessage; - } - } - set - { - lock (_lock) - { - _errorMessage = value; - } - } - } - - public DateTime? RotationStartTime - { - get - { - lock (_lock) - { - return _rotationStartTime; - } - } - set - { - lock (_lock) - { - _rotationStartTime = value; - } - } - } - - public bool HasQuestBeenAccepted - { - get - { - lock (_lock) - { - return _hasQuestBeenAccepted; - } - } - set - { - lock (_lock) - { - _hasQuestBeenAccepted = value; - } - } - } - - public uint? LastKnownQuestState - { - get - { - lock (_lock) - { - return _lastKnownQuestState; - } - } - set - { - lock (_lock) - { - _lastKnownQuestState = value; - } - } - } - - public bool IsSyncOnlyMode - { - get - { - lock (_lock) - { - return _isSyncOnlyMode; - } - } - set - { - lock (_lock) - { - _isSyncOnlyMode = value; - } - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/SequenceConfig.cs b/QuestionableCompanion/QuestionableCompanion.Models/SequenceConfig.cs deleted file mode 100644 index cc8f595..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/SequenceConfig.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class SequenceConfig -{ - public SequenceType Type { get; set; } - - public string Value { get; set; } = string.Empty; - - public bool WaitForCompletion { get; set; } = true; -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/SequenceType.cs b/QuestionableCompanion/QuestionableCompanion.Models/SequenceType.cs deleted file mode 100644 index 9c16db1..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/SequenceType.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum SequenceType -{ - QuestionableProfile, - InternalAction -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/StopPoint.cs b/QuestionableCompanion/QuestionableCompanion.Models/StopPoint.cs deleted file mode 100644 index 6d85d84..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/StopPoint.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Text.Json.Serialization; - -namespace QuestionableCompanion.Models; - -[Serializable] -public class StopPoint -{ - public uint QuestId { get; set; } - - [JsonInclude] - [JsonPropertyName("Sequence")] - public byte? Sequence { get; set; } - - public bool IsActive { get; set; } - - public DateTime CreatedAt { get; set; } = DateTime.Now; - - public string DisplayName - { - get - { - if (Sequence.HasValue) - { - return $"Quest {QuestId} (Seq {Sequence.Value})"; - } - return $"Quest {QuestId}"; - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Models/TriggerType.cs b/QuestionableCompanion/QuestionableCompanion.Models/TriggerType.cs deleted file mode 100644 index beced55..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Models/TriggerType.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace QuestionableCompanion.Models; - -public enum TriggerType -{ - OnAccept, - OnComplete -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/ARPostProcessEventQuestService.cs b/QuestionableCompanion/QuestionableCompanion.Services/ARPostProcessEventQuestService.cs deleted file mode 100644 index c0f2f28..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/ARPostProcessEventQuestService.cs +++ /dev/null @@ -1,454 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text.RegularExpressions; -using System.Threading.Tasks; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc; -using Dalamud.Plugin.Services; -using Newtonsoft.Json.Linq; - -namespace QuestionableCompanion.Services; - -public class ARPostProcessEventQuestService : IDisposable -{ - private readonly IDalamudPluginInterface pluginInterface; - - private readonly QuestionableIPC questionableIPC; - - private readonly EventQuestResolver eventQuestResolver; - - private readonly Configuration configuration; - - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly ICommandManager commandManager; - - private readonly LifestreamIPC lifestreamIPC; - - private ICallGateSubscriber? characterAdditionalTaskSubscriber; - - private ICallGateSubscriber? characterPostProcessSubscriber; - - private Action? characterAdditionalTaskHandler; - - private Action? characterPostProcessHandler; - - private bool isProcessingEventQuests; - - private DateTime postProcessStartTime; - - private List currentQuestHierarchy = new List(); - - private string currentPluginName = string.Empty; - - private string lastTerritoryWaitDetected = string.Empty; - - private DateTime lastTerritoryTeleportTime = DateTime.MinValue; - - private const string PLUGIN_NAME = "QuestionableCompanion"; - - private const string AR_CHARACTER_ADDITIONAL_TASK = "AutoRetainer.OnCharacterAdditionalTask"; - - private const string AR_CHARACTER_POST_PROCESS_EVENT = "AutoRetainer.OnCharacterReadyForPostprocess"; - - private const string AR_FINISH_CHARACTER_POST_PROCESS = "AutoRetainer.FinishCharacterPostprocessRequest"; - - private const string AR_REQUEST_CHARACTER_POST_PROCESS = "AutoRetainer.RequestCharacterPostprocess"; - - public ARPostProcessEventQuestService(IDalamudPluginInterface pluginInterface, QuestionableIPC questionableIPC, EventQuestResolver eventQuestResolver, Configuration configuration, IPluginLog log, IFramework framework, ICommandManager commandManager, LifestreamIPC lifestreamIPC) - { - this.pluginInterface = pluginInterface; - this.questionableIPC = questionableIPC; - this.eventQuestResolver = eventQuestResolver; - this.configuration = configuration; - this.log = log; - this.framework = framework; - this.commandManager = commandManager; - this.lifestreamIPC = lifestreamIPC; - InitializeIPC(); - } - - private void InitializeIPC() - { - try - { - characterAdditionalTaskSubscriber = pluginInterface.GetIpcSubscriber("AutoRetainer.OnCharacterAdditionalTask"); - if (characterAdditionalTaskSubscriber == null) - { - return; - } - characterAdditionalTaskHandler = delegate - { - try - { - RegisterWithAutoRetainer(); - } - catch - { - } - }; - characterAdditionalTaskSubscriber.Subscribe(characterAdditionalTaskHandler); - characterPostProcessSubscriber = pluginInterface.GetIpcSubscriber("AutoRetainer.OnCharacterReadyForPostprocess"); - if (characterPostProcessSubscriber == null) - { - return; - } - characterPostProcessHandler = delegate(string pluginName) - { - try - { - OnARCharacterPostProcessStarted(pluginName); - } - catch - { - } - }; - characterPostProcessSubscriber.Subscribe(characterPostProcessHandler); - } - catch - { - } - } - - private void RegisterWithAutoRetainer() - { - try - { - pluginInterface.GetIpcSubscriber("AutoRetainer.RequestCharacterPostprocess").InvokeAction("QuestionableCompanion"); - } - catch - { - } - } - - private void OnARCharacterPostProcessStarted(string pluginName) - { - try - { - if (pluginName != "QuestionableCompanion") - { - return; - } - if (!configuration.RunEventQuestsOnARPostProcess) - { - FinishPostProcess(); - return; - } - currentPluginName = pluginName; - postProcessStartTime = DateTime.Now; - framework.RunOnFrameworkThread(async delegate - { - try - { - await ProcessEventQuestsAsync(); - } - catch - { - FinishPostProcess(); - } - }); - } - catch - { - try - { - FinishPostProcess(); - } - catch - { - } - } - } - - private async Task ProcessEventQuestsAsync() - { - if (isProcessingEventQuests) - { - return; - } - isProcessingEventQuests = true; - bool shouldFinishPostProcess = false; - try - { - _ = 1; - try - { - List detectedEventQuests = DetectActiveEventQuests(); - if (detectedEventQuests.Count == 0) - { - shouldFinishPostProcess = true; - return; - } - currentQuestHierarchy = new List(detectedEventQuests); - await ImportEventQuestsForPostProcess(detectedEventQuests); - await WaitForEventQuestsCompletion(detectedEventQuests); - shouldFinishPostProcess = true; - } - catch - { - shouldFinishPostProcess = true; - } - } - finally - { - if (shouldFinishPostProcess) - { - await ClearPriorityQuests(); - FinishPostProcess(); - } - isProcessingEventQuests = false; - } - } - - private List DetectActiveEventQuests() - { - try - { - return questionableIPC.GetCurrentlyActiveEventQuests() ?? new List(); - } - catch - { - return new List(); - } - } - - private async Task ImportEventQuestsForPostProcess(List detectedEventQuests) - { - List allQuestsToImport = new List(); - try - { - foreach (string questId in detectedEventQuests) - { - foreach (string quest in await GetQuestHierarchy(questId)) - { - if (!allQuestsToImport.Contains(quest)) - { - allQuestsToImport.Add(quest); - } - } - } - if (!questionableIPC.IsAvailable) - { - return; - } - try - { - questionableIPC.ClearQuestPriority(); - await Task.Delay(500); - } - catch - { - } - foreach (string questId2 in allQuestsToImport) - { - try - { - questionableIPC.AddQuestPriority(questId2); - await Task.Delay(100); - } - catch - { - } - } - await Task.Delay(500); - try - { - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }); - } - catch - { - } - } - catch - { - throw; - } - } - - private async Task> GetQuestHierarchy(string questId) - { - List hierarchy = new List(); - HashSet visited = new HashSet(); - await CollectPrerequisitesRecursive(questId, hierarchy, visited); - return hierarchy; - } - - private async Task CollectPrerequisitesRecursive(string questId, List hierarchy, HashSet visited) - { - if (visited.Contains(questId)) - { - return; - } - visited.Add(questId); - try - { - List prerequisites = eventQuestResolver.ResolveEventQuestDependencies(questId); - if (prerequisites.Count > 0) - { - foreach (string prereq in prerequisites) - { - await CollectPrerequisitesRecursive(prereq, hierarchy, visited); - } - } - hierarchy.Add(questId); - } - catch - { - hierarchy.Add(questId); - } - await Task.CompletedTask; - } - - private async Task WaitForEventQuestsCompletion(List originalEventQuests) - { - TimeSpan maxWaitTime = TimeSpan.FromMinutes(configuration.EventQuestPostProcessTimeoutMinutes); - DateTime startTime = DateTime.Now; - TimeSpan checkInterval = TimeSpan.FromSeconds(2L); - while (DateTime.Now - startTime < maxWaitTime) - { - try - { - CheckForTerritoryWait(); - if (!questionableIPC.IsAvailable) - { - await Task.Delay(checkInterval); - continue; - } - bool isRunning = questionableIPC.IsRunning(); - List currentEventQuests = DetectActiveEventQuests(); - if (originalEventQuests.Where((string q) => currentEventQuests.Contains(q)).ToList().Count == 0) - { - if (!isRunning) - { - break; - } - try - { - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst stop"); - }); - await Task.Delay(500); - break; - } - catch - { - break; - } - } - } - catch - { - } - await Task.Delay(checkInterval); - } - } - - private void CheckForTerritoryWait() - { - if (!questionableIPC.IsRunning()) - { - return; - } - object task = questionableIPC.GetCurrentTask(); - if (task == null) - { - return; - } - try - { - if (!(task is JObject jObject)) - { - return; - } - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken == null) - { - return; - } - string taskName = taskNameToken.ToString(); - if (string.IsNullOrEmpty(taskName)) - { - return; - } - Match waitTerritoryMatch = new Regex("Wait\\(territory:\\s*(.+?)\\s*\\((\\d+)\\)\\)").Match(taskName); - if (!waitTerritoryMatch.Success) - { - return; - } - string territoryName = waitTerritoryMatch.Groups[1].Value.Trim(); - uint territoryId = uint.Parse(waitTerritoryMatch.Groups[2].Value); - string territoryKey = $"{territoryName}_{territoryId}"; - double timeSinceLastTeleport = (DateTime.Now - lastTerritoryTeleportTime).TotalSeconds; - if (lastTerritoryWaitDetected == territoryKey && timeSinceLastTeleport < 60.0) - { - return; - } - lastTerritoryWaitDetected = territoryKey; - lastTerritoryTeleportTime = DateTime.Now; - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/li " + territoryName); - } - catch - { - } - }); - } - catch - { - } - } - - private async Task ClearPriorityQuests() - { - try - { - if (questionableIPC.IsAvailable) - { - questionableIPC.ClearQuestPriority(); - await Task.Delay(500); - } - } - catch - { - } - } - - private void FinishPostProcess() - { - try - { - pluginInterface.GetIpcSubscriber("AutoRetainer.FinishCharacterPostprocessRequest").InvokeAction(); - } - catch - { - } - } - - public void Dispose() - { - try - { - if (characterAdditionalTaskHandler != null && characterAdditionalTaskSubscriber != null) - { - characterAdditionalTaskSubscriber.Unsubscribe(characterAdditionalTaskHandler); - } - if (characterPostProcessHandler != null && characterPostProcessSubscriber != null) - { - characterPostProcessSubscriber.Unsubscribe(characterPostProcessHandler); - } - } - catch - { - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/ARRTrialAutomationService.cs b/QuestionableCompanion/QuestionableCompanion.Services/ARRTrialAutomationService.cs deleted file mode 100644 index 223b233..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/ARRTrialAutomationService.cs +++ /dev/null @@ -1,393 +0,0 @@ -using System; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.Text; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using FFXIVClientStructs.FFXIV.Client.Game.UI; - -namespace QuestionableCompanion.Services; - -public class ARRTrialAutomationService : IDisposable -{ - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly ICommandManager commandManager; - - private readonly IChatGui chatGui; - - private readonly Configuration config; - - private readonly QuestionableIPC questionableIPC; - - private readonly SubmarineManager submarineManager; - - private readonly HelperManager helperManager; - - private readonly IPartyList partyList; - - private readonly ICondition condition; - - private readonly MemoryHelper memoryHelper; - - private bool isInDuty; - - private static readonly (uint QuestId, uint TrialId, string ADCommand, string Name)[] Trials = new(uint, uint, string, string)[3] - { - (1048u, 20004u, "/ad run trial 292 1", "Ifrit HM"), - (1157u, 20006u, "/ad run trial 294 1", "Garuda HM"), - (1158u, 20005u, "/ad run trial 293 1", "Titan HM") - }; - - private const uint TRIGGER_QUEST = 89u; - - private const uint TARGET_QUEST = 363u; - - private bool isProcessing; - - private int currentTrialIndex = -1; - - private bool waitingForQuest; - - private bool waitingForParty; - - private bool waitingForTrial; - - private DateTime lastCheckTime = DateTime.MinValue; - - public ARRTrialAutomationService(IPluginLog log, IFramework framework, ICommandManager commandManager, IChatGui chatGui, Configuration config, QuestionableIPC questionableIPC, SubmarineManager submarineManager, HelperManager helperManager, IPartyList partyList, ICondition condition, MemoryHelper memoryHelper) - { - this.log = log; - this.framework = framework; - this.commandManager = commandManager; - this.chatGui = chatGui; - this.config = config; - this.questionableIPC = questionableIPC; - this.submarineManager = submarineManager; - this.helperManager = helperManager; - this.partyList = partyList; - this.condition = condition; - this.memoryHelper = memoryHelper; - framework.Update += OnFrameworkUpdate; - condition.ConditionChange += OnConditionChanged; - log.Information("[ARRTrials] Service initialized"); - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (!isProcessing) - { - return; - } - if (waitingForParty && partyList != null && partyList.Length > 1) - { - if (!((DateTime.Now - lastCheckTime).TotalSeconds < 1.0)) - { - lastCheckTime = DateTime.Now; - log.Information($"[ARRTrials] Party join detected (Size: {partyList.Length}) - Triggering trial..."); - waitingForParty = false; - TriggerCurrentTrial(); - } - } - else if (waitingForQuest && currentTrialIndex >= 0 && currentTrialIndex < Trials.Length && !((DateTime.Now - lastCheckTime).TotalSeconds < 2.0)) - { - lastCheckTime = DateTime.Now; - (uint QuestId, uint TrialId, string ADCommand, string Name) tuple = Trials[currentTrialIndex]; - uint trialId = tuple.TrialId; - string name = tuple.Name; - bool unlocked = IsTrialUnlocked(trialId); - log.Debug($"[ARRTrials] Polling {name} ({trialId}) Unlocked: {unlocked}"); - if (unlocked) - { - log.Information("[ARRTrials] Polling detected " + name + " unlocked - Proceeding..."); - waitingForQuest = false; - helperManager.InviteHelpers(); - waitingForParty = true; - } - } - } - - public bool IsTrialComplete(uint instanceId) - { - return UIState.IsInstanceContentCompleted(instanceId); - } - - public bool IsTrialUnlocked(uint instanceId) - { - return UIState.IsInstanceContentUnlocked(instanceId); - } - - public bool IsTargetQuestAvailableOrComplete() - { - if (QuestManager.IsQuestComplete(363u)) - { - return true; - } - if (questionableIPC.IsReadyToAcceptQuest(363u.ToString())) - { - return true; - } - return false; - } - - public void OnTriggerQuestComplete() - { - if (!config.EnableARRPrimalCheck) - { - log.Debug("[ARRTrials] Feature disabled, skipping check"); - return; - } - log.Information("[ARRTrials] Quest 89 complete, starting ARR Primal check..."); - StartTrialChain(); - } - - public void StartTrialChain() - { - if (isProcessing) - { - log.Debug("[ARRTrials] Already processing trial chain"); - return; - } - isProcessing = true; - submarineManager.SetExternalPause(paused: true); - int startIndex = -1; - for (int i = Trials.Length - 1; i >= 0; i--) - { - if (!IsTrialComplete(Trials[i].TrialId)) - { - for (int j = 0; j <= i; j++) - { - if (!IsTrialComplete(Trials[j].TrialId)) - { - startIndex = j; - break; - } - } - break; - } - } - if (startIndex == -1) - { - log.Information("[ARRTrials] All trials already complete!"); - isProcessing = false; - submarineManager.SetExternalPause(paused: false); - return; - } - currentTrialIndex = startIndex; - log.Information($"[ARRTrials] Starting from trial index {startIndex}: {Trials[startIndex].Name}"); - ProcessCurrentTrial(); - } - - private void ProcessCurrentTrial() - { - if (currentTrialIndex < 0 || currentTrialIndex >= Trials.Length) - { - log.Information("[ARRTrials] Trial chain complete!"); - isProcessing = false; - submarineManager.SetExternalPause(paused: false); - return; - } - var (questId, trialId, _, name) = Trials[currentTrialIndex]; - if (IsTrialComplete(trialId)) - { - log.Information("[ARRTrials] " + name + " already complete, moving to next"); - currentTrialIndex++; - ProcessCurrentTrial(); - } - else if (!QuestManager.IsQuestComplete(questId)) - { - log.Information($"[ARRTrials] Queueing unlock quest {questId} for {name}"); - questionableIPC.AddQuestPriority(questId.ToString()); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }); - waitingForQuest = true; - } - else - { - log.Information("[ARRTrials] " + name + " unlocked, inviting helper and triggering trial..."); - helperManager.InviteHelpers(); - waitingForParty = true; - } - } - - public void OnQuestComplete(uint questId) - { - if (!isProcessing || !waitingForQuest) - { - return; - } - for (int i = currentTrialIndex; i < Trials.Length; i++) - { - if (Trials[i].QuestId == questId) - { - log.Information($"[ARRTrials] Unlock quest {questId} completed, triggering trial"); - waitingForQuest = false; - helperManager.InviteHelpers(); - waitingForParty = true; - break; - } - } - } - - public void OnPartyReady() - { - if (isProcessing && waitingForParty) - { - waitingForParty = false; - TriggerCurrentTrial(); - } - } - - private void TriggerCurrentTrial() - { - if (currentTrialIndex >= 0 && currentTrialIndex < Trials.Length) - { - (uint, uint, string, string) tuple = Trials[currentTrialIndex]; - string adCommand = tuple.Item3; - string name = tuple.Item4; - log.Information("[ARRTrials] Triggering " + name + " via AD command"); - framework.RunOnFrameworkThread(delegate - { - chatGui.Print(new XivChatEntry - { - Message = "[QSTCompanion] Triggering " + name + "...", - Type = XivChatType.Echo - }); - commandManager.ProcessCommand("/ad cfg Unsynced true"); - commandManager.ProcessCommand(adCommand); - }); - waitingForTrial = true; - } - } - - public void OnDutyComplete() - { - if (!isProcessing || !waitingForTrial) - { - return; - } - (uint QuestId, uint TrialId, string ADCommand, string Name) tuple = Trials[currentTrialIndex]; - uint trialId = tuple.TrialId; - string name = tuple.Name; - if (IsTrialComplete(trialId)) - { - log.Information("[ARRTrials] " + name + " completed successfully!"); - waitingForTrial = false; - currentTrialIndex++; - framework.RunOnFrameworkThread(delegate - { - ProcessCurrentTrial(); - }); - } - else - { - log.Warning("[ARRTrials] " + name + " NOT complete after verification. Retrying current step..."); - waitingForTrial = false; - framework.RunOnFrameworkThread(delegate - { - ProcessCurrentTrial(); - }); - } - } - - public string GetStatus() - { - if (!isProcessing) - { - return "Idle"; - } - if (currentTrialIndex >= 0 && currentTrialIndex < Trials.Length) - { - string name = Trials[currentTrialIndex].Name; - if (waitingForQuest) - { - return "Waiting for " + name + " unlock quest"; - } - if (waitingForParty) - { - return "Waiting for party (" + name + ")"; - } - if (waitingForTrial) - { - return "In " + name; - } - return "Processing " + name; - } - return "Processing..."; - } - - public void Reset() - { - isProcessing = false; - currentTrialIndex = -1; - waitingForQuest = false; - waitingForParty = false; - waitingForTrial = false; - submarineManager.SetExternalPause(paused: false); - } - - public void Dispose() - { - framework.Update -= OnFrameworkUpdate; - condition.ConditionChange -= OnConditionChanged; - log.Information("[ARRTrials] Service disposed"); - } - - private void OnConditionChanged(ConditionFlag flag, bool value) - { - if (flag == ConditionFlag.BoundByDuty) - { - if (value && !isInDuty) - { - isInDuty = true; - log.Debug("[ARRTrials] Entered duty"); - } - else if (!value && isInDuty) - { - isInDuty = false; - OnDutyExited(); - } - } - } - - private void OnDutyExited() - { - if (!isProcessing || !waitingForTrial) - { - return; - } - log.Information("[ARRTrials] Exited duty - stopping AD and disbanding..."); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/ad stop"); - }); - Task.Run(async delegate - { - await Task.Delay(2000); - framework.RunOnFrameworkThread(delegate - { - memoryHelper.SendChatMessage("/leave"); - commandManager.ProcessCommand("/ad stop"); - log.Information("[ARRTrials] /leave and safety /ad stop sent"); - }); - log.Information("[ARRTrials] Waiting for completion state check..."); - await Task.Delay(1000); - (uint, uint, string, string) tuple = Trials[currentTrialIndex]; - uint trialId = tuple.Item2; - for (int i = 0; i < 10; i++) - { - if (IsTrialComplete(trialId)) - { - log.Information($"[ARRTrials] Completion verified on attempt {i + 1}"); - break; - } - await Task.Delay(1000); - } - OnDutyComplete(); - }); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyDatabase.cs b/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyDatabase.cs deleted file mode 100644 index a14ef5f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyDatabase.cs +++ /dev/null @@ -1,162 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Plugin.Services; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class AlliedSocietyDatabase -{ - private readonly Configuration configuration; - - private readonly IPluginLog log; - - public AlliedSocietyDatabase(Configuration configuration, IPluginLog log) - { - this.configuration = configuration; - this.log = log; - if (configuration.AlliedSociety.RotationConfig.Priorities.Count == 0) - { - configuration.AlliedSociety.RotationConfig.InitializeDefaults(); - SaveToConfig(); - } - } - - public void SaveToConfig() - { - configuration.Save(); - } - - public void UpdateCharacterProgress(string characterId, byte societyId, int rank, bool isMaxRank) - { - if (!configuration.AlliedSociety.CharacterProgress.ContainsKey(characterId)) - { - configuration.AlliedSociety.CharacterProgress[characterId] = new List(); - } - List progressList = configuration.AlliedSociety.CharacterProgress[characterId]; - AlliedSocietyProgress existing = progressList.FirstOrDefault((AlliedSocietyProgress p) => p.SocietyId == societyId); - if (existing != null) - { - existing.CurrentRank = rank; - existing.IsMaxRank = isMaxRank; - } - else - { - progressList.Add(new AlliedSocietyProgress - { - CharacterId = characterId, - SocietyId = societyId, - CurrentRank = rank, - IsMaxRank = isMaxRank - }); - } - SaveToConfig(); - } - - public AlliedSocietyProgress? GetProgress(string characterId, byte societyId) - { - if (configuration.AlliedSociety.CharacterProgress.TryGetValue(characterId, out List list)) - { - return list.FirstOrDefault((AlliedSocietyProgress p) => p.SocietyId == societyId); - } - return null; - } - - public AlliedSocietyCharacterStatus GetCharacterStatus(string characterId) - { - if (!configuration.AlliedSociety.CharacterStatuses.ContainsKey(characterId)) - { - configuration.AlliedSociety.CharacterStatuses[characterId] = new AlliedSocietyCharacterStatus - { - CharacterId = characterId, - Status = AlliedSocietyRotationStatus.Ready - }; - SaveToConfig(); - } - return configuration.AlliedSociety.CharacterStatuses[characterId]; - } - - public void UpdateCharacterStatus(string characterId, AlliedSocietyRotationStatus status) - { - GetCharacterStatus(characterId).Status = status; - SaveToConfig(); - } - - public void SetCharacterComplete(string characterId, DateTime completionDate) - { - AlliedSocietyCharacterStatus characterStatus = GetCharacterStatus(characterId); - characterStatus.Status = AlliedSocietyRotationStatus.Complete; - characterStatus.LastCompletionDate = completionDate; - characterStatus.ImportedQuestIds.Clear(); - SaveToConfig(); - } - - public void CheckAndResetExpired(DateTime nextResetDate) - { - List charactersToReset = GetCharactersNeedingReset(nextResetDate); - foreach (string charId in charactersToReset) - { - log.Information("[AlliedSociety] Resetting status for character " + charId); - AlliedSocietyCharacterStatus characterStatus = GetCharacterStatus(charId); - characterStatus.Status = AlliedSocietyRotationStatus.Ready; - characterStatus.ImportedQuestIds.Clear(); - } - if (charactersToReset.Count > 0) - { - SaveToConfig(); - } - } - - public List GetCharactersNeedingReset(DateTime nextResetDate) - { - List result = new List(); - DateTime lastResetDate = nextResetDate.AddDays(-1.0); - foreach (KeyValuePair kvp in configuration.AlliedSociety.CharacterStatuses) - { - AlliedSocietyCharacterStatus status = kvp.Value; - if (status.Status == AlliedSocietyRotationStatus.Ready) - { - continue; - } - if (status.LastCompletionDate.HasValue) - { - if (status.LastCompletionDate.Value < lastResetDate) - { - result.Add(kvp.Key); - } - } - else - { - result.Add(kvp.Key); - } - } - return result; - } - - public void ClearAllStatuses() - { - foreach (KeyValuePair kvp in configuration.AlliedSociety.CharacterStatuses) - { - kvp.Value.Status = AlliedSocietyRotationStatus.Ready; - kvp.Value.ImportedQuestIds.Clear(); - } - SaveToConfig(); - } - - public void AddImportedQuest(string characterId, string questId) - { - AlliedSocietyCharacterStatus status = GetCharacterStatus(characterId); - if (!status.ImportedQuestIds.Contains(questId)) - { - status.ImportedQuestIds.Add(questId); - SaveToConfig(); - } - } - - public void ClearImportedQuests(string characterId) - { - GetCharacterStatus(characterId).ImportedQuestIds.Clear(); - SaveToConfig(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyQuestSelector.cs b/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyQuestSelector.cs deleted file mode 100644 index b0b084b..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyQuestSelector.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Dalamud.Plugin.Services; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class AlliedSocietyQuestSelector -{ - private readonly QuestionableIPC questionableIpc; - - private readonly IPluginLog log; - - public AlliedSocietyQuestSelector(QuestionableIPC questionableIpc, IPluginLog log) - { - this.questionableIpc = questionableIpc; - this.log = log; - } - - public List SelectQuestsForCharacter(string characterId, int remainingAllowances, List priorities, AlliedSocietyQuestMode mode) - { - List selectedQuests = new List(); - int currentAllowances = remainingAllowances; - List list = (from p in priorities - where p.Enabled - orderby p.Order - select p).ToList(); - log.Debug($"[AlliedSociety] Selecting quests for {characterId}. Allowances: {remainingAllowances}, Mode: {mode}"); - foreach (AlliedSocietyPriority priority in list) - { - if (currentAllowances <= 0) - { - log.Debug("[AlliedSociety] No allowances left, stopping selection"); - break; - } - byte societyId = priority.SocietyId; - List optimalQuests = questionableIpc.GetAlliedSocietyOptimalQuests(societyId); - if (optimalQuests.Count == 0) - { - continue; - } - List readyQuests = new List(); - foreach (string questId in optimalQuests) - { - if (questionableIpc.IsReadyToAcceptQuest(questId)) - { - readyQuests.Add(questId); - } - } - if (readyQuests.Count == 0) - { - continue; - } - if (mode == AlliedSocietyQuestMode.OnlyThreePerSociety) - { - List questsToTake = readyQuests; - if (questsToTake.Count > 3) - { - questsToTake = questsToTake.Skip(questsToTake.Count - 3).Take(3).ToList(); - } - foreach (string questId2 in questsToTake) - { - if (currentAllowances > 0) - { - selectedQuests.Add(questId2); - currentAllowances--; - continue; - } - break; - } - continue; - } - foreach (string questId3 in readyQuests) - { - if (currentAllowances > 0) - { - selectedQuests.Add(questId3); - currentAllowances--; - continue; - } - break; - } - } - log.Information($"[AlliedSociety] Selected {selectedQuests.Count} quests for {characterId}"); - return selectedQuests; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyRotationService.cs b/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyRotationService.cs deleted file mode 100644 index 29c7a69..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/AlliedSocietyRotationService.cs +++ /dev/null @@ -1,496 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.RegularExpressions; -using Dalamud.Plugin.Services; -using Newtonsoft.Json.Linq; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class AlliedSocietyRotationService : IDisposable -{ - private readonly QuestionableIPC questionableIpc; - - private readonly AlliedSocietyDatabase database; - - private readonly AlliedSocietyQuestSelector questSelector; - - private readonly AutoRetainerIPC autoRetainerIpc; - - private readonly Configuration configuration; - - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly ICommandManager commandManager; - - private readonly ICondition condition; - - private readonly IClientState clientState; - - private bool isRotationActive; - - private AlliedSocietyRotationPhase currentPhase; - - private List rotationCharacters = new List(); - - private int currentCharacterIndex = -1; - - private string currentCharacterId = string.Empty; - - private DateTime phaseStartTime = DateTime.MinValue; - - private int consecutiveNoQuestsCount; - - private DateTime lastTerritoryTeleportTime = DateTime.MinValue; - - private string lastTerritoryName = string.Empty; - - private DateTime lastUpdate = DateTime.MinValue; - - private const double UpdateIntervalMs = 500.0; - - private DateTime characterSwitchStartTime = DateTime.MinValue; - - private const double CharacterSwitchRetrySeconds = 20.0; - - public bool IsRotationActive => isRotationActive; - - public string CurrentCharacterId => currentCharacterId; - - public AlliedSocietyRotationPhase CurrentPhase => currentPhase; - - public AlliedSocietyRotationService(QuestionableIPC questionableIpc, AlliedSocietyDatabase database, AlliedSocietyQuestSelector questSelector, AutoRetainerIPC autoRetainerIpc, Configuration configuration, IPluginLog log, IFramework framework, ICommandManager commandManager, ICondition condition, IClientState clientState) - { - this.questionableIpc = questionableIpc; - this.database = database; - this.questSelector = questSelector; - this.autoRetainerIpc = autoRetainerIpc; - this.configuration = configuration; - this.log = log; - this.framework = framework; - this.commandManager = commandManager; - this.condition = condition; - this.clientState = clientState; - framework.Update += OnFrameworkUpdate; - } - - public void Dispose() - { - framework.Update -= OnFrameworkUpdate; - } - - public void StartRotation(List characters) - { - if (isRotationActive) - { - log.Warning("[AlliedSociety] Rotation already active"); - return; - } - if (characters.Count == 0) - { - log.Warning("[AlliedSociety] No characters selected for rotation"); - return; - } - log.Information($"[AlliedSociety] Starting rotation with {characters.Count} characters"); - rotationCharacters = new List(characters); - isRotationActive = true; - currentCharacterIndex = -1; - AdvanceToNextCharacter(); - } - - public void StopRotation() - { - if (!isRotationActive) - { - return; - } - log.Information("[AlliedSociety] Stopping rotation"); - isRotationActive = false; - currentPhase = AlliedSocietyRotationPhase.Idle; - currentCharacterId = string.Empty; - try - { - commandManager.ProcessCommand("/qst stop"); - } - catch - { - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (!isRotationActive || (DateTime.Now - lastUpdate).TotalMilliseconds < 500.0) - { - return; - } - lastUpdate = DateTime.Now; - try - { - switch (currentPhase) - { - case AlliedSocietyRotationPhase.StartingRotation: - HandleStartingRotation(); - break; - case AlliedSocietyRotationPhase.ImportingQuests: - HandleImportingQuests(); - break; - case AlliedSocietyRotationPhase.WaitingForQuestAccept: - HandleWaitingForQuestAccept(); - break; - case AlliedSocietyRotationPhase.MonitoringQuests: - HandleMonitoringQuests(); - break; - case AlliedSocietyRotationPhase.CheckingCompletion: - HandleCheckingCompletion(); - break; - case AlliedSocietyRotationPhase.WaitingForCharacterSwitch: - HandleWaitingForCharacterSwitch(); - break; - } - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Error in rotation loop: " + ex.Message); - StopRotation(); - } - } - - private void HandleStartingRotation() - { - if (clientState.LocalContentId == 0L) - { - return; - } - string currentLoggedInChar = autoRetainerIpc.GetCurrentCharacter(); - if (string.IsNullOrEmpty(currentLoggedInChar) || currentLoggedInChar != currentCharacterId) - { - double waitTime = (DateTime.Now - characterSwitchStartTime).TotalSeconds; - if (!(waitTime > 20.0)) - { - return; - } - log.Warning($"[AlliedSociety] Character switch timeout ({waitTime:F1}s). Retrying /ar relog for {currentCharacterId}..."); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/ays relog " + currentCharacterId); - log.Information("[AlliedSociety] Retry relog command sent for " + currentCharacterId); - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Failed to send retry relog: " + ex.Message); - } - }); - characterSwitchStartTime = DateTime.Now; - } - else - { - questionableIpc.ForceCheckAvailability(); - if (questionableIpc.IsAvailable) - { - log.Information("[AlliedSociety] ✓ Character logged in (" + currentLoggedInChar + "), Questionable ready"); - SetPhase(AlliedSocietyRotationPhase.ImportingQuests); - } - } - } - - private void HandleImportingQuests() - { - int allowances = questionableIpc.GetAlliedSocietyRemainingAllowances(); - log.Information($"[AlliedSociety] Remaining allowances: {allowances}"); - if (allowances <= 0) - { - log.Information("[AlliedSociety] No allowances left. Checking completion..."); - SetPhase(AlliedSocietyRotationPhase.CheckingCompletion); - return; - } - List quests = questSelector.SelectQuestsForCharacter(currentCharacterId, allowances, configuration.AlliedSociety.RotationConfig.Priorities, configuration.AlliedSociety.RotationConfig.QuestMode); - if (quests.Count == 0) - { - consecutiveNoQuestsCount++; - log.Warning($"[AlliedSociety] No quests selected (attempt {consecutiveNoQuestsCount}/3). Checking completion..."); - if (consecutiveNoQuestsCount >= 3) - { - log.Error("[AlliedSociety] Failed to select quests 3 times consecutively. No quests available for this character."); - log.Information("[AlliedSociety] Marking character as complete and moving to next..."); - consecutiveNoQuestsCount = 0; - database.SetCharacterComplete(currentCharacterId, DateTime.Now); - AdvanceToNextCharacter(); - } - else - { - SetPhase(AlliedSocietyRotationPhase.CheckingCompletion); - } - return; - } - consecutiveNoQuestsCount = 0; - log.Information($"[AlliedSociety] Importing {quests.Count} quests to Questionable..."); - foreach (string questId in quests) - { - log.Debug("[AlliedSociety] Adding quest " + questId + " to priority"); - questionableIpc.AddQuestPriority(questId); - database.AddImportedQuest(currentCharacterId, questId); - } - log.Information("✓ All quests imported to Questionable"); - log.Information("[AlliedSociety] Sending /qst start command..."); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[AlliedSociety] ✓ /qst start command sent successfully"); - } - catch (Exception ex) - { - log.Error("[AlliedSociety] ✗ Failed to send /qst start: " + ex.Message); - } - }); - log.Information("[AlliedSociety] Transitioning to WaitingForQuestAccept phase"); - SetPhase(AlliedSocietyRotationPhase.WaitingForQuestAccept); - } - - private void HandleWaitingForQuestAccept() - { - try - { - object task = questionableIpc.GetCurrentTask(); - if (task != null && task is JObject jObject) - { - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken != null) - { - string taskName = taskNameToken.ToString(); - if (!string.IsNullOrEmpty(taskName) && taskName.Contains("Wait(territory:")) - { - log.Information("[AlliedSociety] [WaitAccept] Territory wait detected: " + taskName); - Match territoryMatch = Regex.Match(taskName, "Wait\\(territory:\\s*(.+?)\\s*\\((\\d+)\\)\\)"); - if (territoryMatch.Success) - { - string territoryName = territoryMatch.Groups[1].Value.Trim(); - TimeSpan timeSinceLastTeleport = DateTime.Now - lastTerritoryTeleportTime; - if (territoryName != lastTerritoryName || timeSinceLastTeleport.TotalSeconds > 10.0) - { - log.Information("[AlliedSociety] [WaitAccept] ▶ Sending Lifestream teleport: /li " + territoryName); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/li " + territoryName); - log.Information("[AlliedSociety] [WaitAccept] ✓ Lifestream command sent successfully"); - } - catch (Exception ex2) - { - log.Error("[AlliedSociety] [WaitAccept] ✗ Failed to send Lifestream command: " + ex2.Message); - } - }); - lastTerritoryTeleportTime = DateTime.Now; - lastTerritoryName = territoryName; - } - else - { - log.Debug("[AlliedSociety] [WaitAccept] Territory teleport debounced for: " + territoryName); - } - } - } - } - } - } - catch (Exception ex) - { - log.Debug("[AlliedSociety] [WaitAccept] Error checking task for teleport: " + ex.Message); - } - AlliedSocietyCharacterStatus characterStatus = database.GetCharacterStatus(currentCharacterId); - bool allAccepted = true; - int acceptedCount = 0; - int totalCount = characterStatus.ImportedQuestIds.Count; - foreach (string questId in characterStatus.ImportedQuestIds) - { - if (questionableIpc.IsReadyToAcceptQuest(questId)) - { - allAccepted = false; - } - else - { - acceptedCount++; - } - } - if (allAccepted) - { - log.Information($"[AlliedSociety] ✓ All {totalCount} quests accepted. Monitoring progress..."); - SetPhase(AlliedSocietyRotationPhase.MonitoringQuests); - } - } - - private void HandleMonitoringQuests() - { - string currentQuestId = questionableIpc.GetCurrentQuestId(); - AlliedSocietyCharacterStatus status = database.GetCharacterStatus(currentCharacterId); - log.Debug("[AlliedSociety] Monitoring - Current Quest: " + (currentQuestId ?? "null")); - if (currentQuestId != null && status.ImportedQuestIds.Contains(currentQuestId)) - { - log.Debug("[AlliedSociety] Working on imported quest: " + currentQuestId); - try - { - object task = questionableIpc.GetCurrentTask(); - log.Debug("[AlliedSociety] Task object type: " + (task?.GetType().Name ?? "null")); - if (task != null && task is JObject jObject) - { - log.Debug("[AlliedSociety] Task JObject: " + jObject.ToString()); - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken != null) - { - string taskName = taskNameToken.ToString(); - log.Information("[AlliedSociety] Current Task Name: '" + taskName + "'"); - if (!string.IsNullOrEmpty(taskName) && taskName.Contains("Wait(territory:")) - { - log.Information("[AlliedSociety] ✓ TERRITORY WAIT DETECTED! Raw task: " + taskName); - Match territoryMatch = Regex.Match(taskName, "Wait\\(territory:\\s*(.+?)\\s*\\((\\d+)\\)\\)"); - if (territoryMatch.Success) - { - string territoryName = territoryMatch.Groups[1].Value.Trim(); - log.Information("[AlliedSociety] ✓ Territory name parsed: '" + territoryName + "'"); - TimeSpan timeSinceLastTeleport = DateTime.Now - lastTerritoryTeleportTime; - if (territoryName != lastTerritoryName || timeSinceLastTeleport.TotalSeconds > 10.0) - { - log.Information("[AlliedSociety] ▶ Territory wait detected: " + territoryName); - log.Information("[AlliedSociety] ▶ Sending Lifestream teleport command: /li " + territoryName); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/li " + territoryName); - log.Information("[AlliedSociety] ✓ Lifestream command sent successfully"); - } - catch (Exception ex2) - { - log.Error("[AlliedSociety] ✗ Failed to send Lifestream command: " + ex2.Message); - } - }); - lastTerritoryTeleportTime = DateTime.Now; - lastTerritoryName = territoryName; - } - else - { - log.Information($"[AlliedSociety] ⏸ Territory teleport debounced for: {territoryName} (last: {timeSinceLastTeleport.TotalSeconds:F1}s ago)"); - } - } - else - { - log.Warning("[AlliedSociety] ✗ Territory wait detected but regex didn't match! Raw: " + taskName); - } - } - else if (!string.IsNullOrEmpty(taskName) && taskName.ToLower().Contains("wait")) - { - log.Debug("[AlliedSociety] Wait task (not territory): " + taskName); - } - } - else - { - log.Debug("[AlliedSociety] Task has no TaskName property"); - } - } - else if (task == null) - { - log.Debug("[AlliedSociety] GetCurrentTask returned null"); - } - else - { - log.Warning("[AlliedSociety] Task is not JObject, type: " + task.GetType().Name); - } - return; - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Error checking task for teleport: " + ex.Message + "\n" + ex.StackTrace); - return; - } - } - if (currentQuestId == null || !status.ImportedQuestIds.Contains(currentQuestId)) - { - log.Information("[AlliedSociety] No longer working on imported quests. Checking completion..."); - SetPhase(AlliedSocietyRotationPhase.CheckingCompletion); - } - } - - private void HandleCheckingCompletion() - { - int allowances = questionableIpc.GetAlliedSocietyRemainingAllowances(); - log.Information($"[AlliedSociety] Checking completion. Allowances: {allowances}"); - if (allowances == 0) - { - string currentQuestId = questionableIpc.GetCurrentQuestId(); - AlliedSocietyCharacterStatus status = database.GetCharacterStatus(currentCharacterId); - if (currentQuestId != null && status.ImportedQuestIds.Contains(currentQuestId)) - { - log.Information("[AlliedSociety] Still working on final quest " + currentQuestId + ". Waiting..."); - return; - } - log.Information("[AlliedSociety] Character " + currentCharacterId + " completed all allowances."); - try - { - commandManager.ProcessCommand("/qst stop"); - log.Information("[AlliedSociety] Sent /qst stop command after quest completion"); - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Failed to send /qst stop: " + ex.Message); - } - questionableIpc.ClearQuestPriority(); - database.SetCharacterComplete(currentCharacterId, DateTime.Now); - SetPhase(AlliedSocietyRotationPhase.WaitingForCharacterSwitch); - } - else - { - log.Information("[AlliedSociety] Allowances remaining. Trying to import more quests..."); - questionableIpc.ClearQuestPriority(); - database.ClearImportedQuests(currentCharacterId); - SetPhase(AlliedSocietyRotationPhase.ImportingQuests); - } - } - - private void HandleWaitingForCharacterSwitch() - { - if (!((DateTime.Now - phaseStartTime).TotalSeconds < 2.0)) - { - AdvanceToNextCharacter(); - } - } - - private void AdvanceToNextCharacter() - { - currentCharacterIndex++; - if (currentCharacterIndex >= rotationCharacters.Count) - { - log.Information("[AlliedSociety] Rotation completed for all characters."); - StopRotation(); - return; - } - string nextChar = rotationCharacters[currentCharacterIndex]; - if (database.GetCharacterStatus(nextChar).Status == AlliedSocietyRotationStatus.Complete) - { - log.Information("[AlliedSociety] Skipping " + nextChar + " (Already Complete)"); - AdvanceToNextCharacter(); - return; - } - log.Information("[AlliedSociety] Switching to " + nextChar); - currentCharacterId = nextChar; - characterSwitchStartTime = DateTime.Now; - if (autoRetainerIpc.SwitchCharacter(nextChar)) - { - SetPhase(AlliedSocietyRotationPhase.StartingRotation); - return; - } - log.Error("[AlliedSociety] Failed to switch to " + nextChar); - StopRotation(); - } - - private void SetPhase(AlliedSocietyRotationPhase phase) - { - log.Information($"[AlliedSociety] Phase: {currentPhase} → {phase}"); - currentPhase = phase; - phaseStartTime = DateTime.Now; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/AutoRetainerIPC.cs b/QuestionableCompanion/QuestionableCompanion.Services/AutoRetainerIPC.cs deleted file mode 100644 index 3c9941a..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/AutoRetainerIPC.cs +++ /dev/null @@ -1,511 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc; -using Dalamud.Plugin.Services; -using Newtonsoft.Json.Linq; - -namespace QuestionableCompanion.Services; - -public class AutoRetainerIPC : IDisposable -{ - private readonly IDalamudPluginInterface pluginInterface; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private ICallGateSubscriber>? getRegisteredCIDsSubscriber; - - private ICallGateSubscriber? getOfflineCharacterDataSubscriber; - - private ICallGateProvider? relogProvider; - - private ICallGateSubscriber? getMultiModeEnabledSubscriber; - - private ICallGateProvider? setMultiModeEnabledProvider; - - private Dictionary characterCache = new Dictionary(); - - private HashSet unknownCIDs = new HashSet(); - - private bool subscribersInitialized; - - private DateTime lastAvailabilityCheck = DateTime.MinValue; - - private const int AvailabilityCheckCooldownSeconds = 5; - - public bool IsAvailable { get; private set; } - - public AutoRetainerIPC(IDalamudPluginInterface pluginInterface, IPluginLog log, IClientState clientState, ICommandManager commandManager, IFramework framework) - { - this.pluginInterface = pluginInterface; - this.log = log; - this.clientState = clientState; - this.commandManager = commandManager; - this.framework = framework; - InitializeIPC(); - } - - public void ClearCache() - { - characterCache.Clear(); - unknownCIDs.Clear(); - log.Information("[AutoRetainerIPC] Cache cleared"); - } - - private void InitializeIPC() - { - try - { - getRegisteredCIDsSubscriber = null; - getOfflineCharacterDataSubscriber = null; - relogProvider = null; - getMultiModeEnabledSubscriber = null; - setMultiModeEnabledProvider = null; - IsAvailable = false; - getRegisteredCIDsSubscriber = pluginInterface.GetIpcSubscriber>("AutoRetainer.GetRegisteredCIDs"); - getOfflineCharacterDataSubscriber = pluginInterface.GetIpcSubscriber("AutoRetainer.GetOfflineCharacterData"); - try - { - relogProvider = pluginInterface.GetIpcProvider("AutoRetainer.Relog"); - log.Debug("[AutoRetainerIPC] Relog IPC provider initialized"); - } - catch (Exception ex) - { - log.Debug("[AutoRetainerIPC] Failed to initialize Relog provider: " + ex.Message); - } - try - { - getMultiModeEnabledSubscriber = pluginInterface.GetIpcSubscriber("AutoRetainer.GetMultiModeEnabled"); - setMultiModeEnabledProvider = pluginInterface.GetIpcProvider("AutoRetainer.SetMultiModeEnabled"); - log.Debug("[AutoRetainerIPC] Multi-Mode IPC initialized"); - } - catch (Exception ex2) - { - log.Debug("[AutoRetainerIPC] Failed to initialize Multi-Mode IPC: " + ex2.Message); - } - subscribersInitialized = true; - log.Debug("[AutoRetainerIPC] IPC subscribers initialized (lazy-loading enabled)"); - } - catch (Exception ex3) - { - IsAvailable = false; - subscribersInitialized = false; - log.Error("[AutoRetainerIPC] Failed to initialize subscribers: " + ex3.Message); - } - } - - private bool TryEnsureAvailable() - { - if (IsAvailable) - { - return true; - } - if (!subscribersInitialized) - { - return false; - } - DateTime now = DateTime.Now; - if ((now - lastAvailabilityCheck).TotalSeconds < 5.0) - { - return false; - } - lastAvailabilityCheck = now; - try - { - if (getRegisteredCIDsSubscriber == null) - { - return false; - } - List testCids = getRegisteredCIDsSubscriber.InvokeFunc(); - if (!IsAvailable) - { - IsAvailable = true; - log.Information($"[AutoRetainerIPC] ✅ AutoRetainer is now available ({testCids?.Count ?? 0} characters)"); - } - return true; - } - catch (Exception ex) - { - log.Debug("[AutoRetainerIPC] AutoRetainer not yet available: " + ex.Message); - IsAvailable = false; - return false; - } - } - - public bool TryReinitialize() - { - log.Information("[AutoRetainerIPC] Manual IPC reinitialization requested"); - lastAvailabilityCheck = DateTime.MinValue; - bool num = TryEnsureAvailable(); - if (num) - { - log.Information("[AutoRetainerIPC] IPC reinitialization successful"); - return num; - } - log.Warning("[AutoRetainerIPC] IPC still unavailable after reinitialization attempt"); - return num; - } - - public List GetRegisteredCharacters() - { - log.Debug("[AutoRetainerIPC] GetRegisteredCharacters called"); - TryEnsureAvailable(); - if (!IsAvailable || getRegisteredCIDsSubscriber == null) - { - log.Warning("[AutoRetainerIPC] Cannot get characters - IPC not available"); - log.Warning($"[AutoRetainerIPC] IsAvailable: {IsAvailable}, Subscriber: {getRegisteredCIDsSubscriber != null}"); - return new List(); - } - try - { - List cids = getRegisteredCIDsSubscriber.InvokeFunc(); - if (cids == null || cids.Count == 0) - { - log.Warning("[AutoRetainerIPC] No CIDs returned from AutoRetainer"); - return new List(); - } - List characters = new List(); - foreach (ulong cid in cids) - { - string charName = GetCharacterNameFromCID(cid); - if (!string.IsNullOrEmpty(charName)) - { - characters.Add(charName); - continue; - } - log.Debug($"[AutoRetainerIPC] Could not resolve name for CID: {cid}"); - } - if (characters.Count == 0) - { - log.Warning("[AutoRetainerIPC] No character names could be resolved from CIDs"); - } - return characters; - } - catch (Exception ex) - { - log.Error("[AutoRetainerIPC] GetRegisteredCharacters failed: " + ex.Message); - log.Error("[AutoRetainerIPC] Stack trace: " + ex.StackTrace); - return new List(); - } - } - - private string GetCharacterNameFromCID(ulong cid) - { - if (characterCache.TryGetValue(cid, out string cachedName)) - { - if (cachedName.Contains("@")) - { - return cachedName; - } - log.Debug($"[AutoRetainerIPC] Removing invalid cache entry for CID {cid}: '{cachedName}'"); - characterCache.Remove(cid); - } - if (unknownCIDs.Contains(cid)) - { - return $"Unknown (CID: {cid})"; - } - if (getOfflineCharacterDataSubscriber == null) - { - log.Debug("[AutoRetainerIPC] OfflineCharacterData subscriber is null"); - return string.Empty; - } - try - { - object data = getOfflineCharacterDataSubscriber.InvokeFunc(cid); - if (data == null) - { - if (!unknownCIDs.Contains(cid)) - { - log.Warning($"[AutoRetainerIPC] No data returned for CID {cid}"); - unknownCIDs.Add(cid); - } - return $"Unknown (CID: {cid})"; - } - string resolvedName = null; - FieldInfo nameField = data.GetType().GetField("Name"); - FieldInfo worldField = data.GetType().GetField("World"); - if (nameField != null && worldField != null) - { - string name = nameField.GetValue(data)?.ToString(); - string world = worldField.GetValue(data)?.ToString(); - log.Warning($"[AutoRetainerIPC] Field values for CID {cid} - Name: '{name}', World: '{world}'"); - if (!string.IsNullOrEmpty(name) && name != "Unknown") - { - if (string.IsNullOrEmpty(world) && clientState.IsLoggedIn && clientState.LocalPlayer != null && clientState.LocalPlayer.Name.ToString() == name) - { - world = clientState.LocalPlayer.HomeWorld.Value.Name.ToString(); - log.Information("[AutoRetainerIPC] Resolved world from ClientState for " + name + ": " + world); - } - if (!string.IsNullOrEmpty(world)) - { - resolvedName = name + "@" + world; - characterCache[cid] = resolvedName; - return resolvedName; - } - log.Warning($"[AutoRetainerIPC] World is empty for CID {cid}, cannot create full name"); - } - else - { - log.Warning($"[AutoRetainerIPC] Name is empty/invalid for CID {cid}"); - } - } - PropertyInfo nameProperty = data.GetType().GetProperty("Name"); - PropertyInfo worldProperty = data.GetType().GetProperty("World"); - if (nameProperty != null && worldProperty != null) - { - string name2 = nameProperty.GetValue(data)?.ToString(); - string world2 = worldProperty.GetValue(data)?.ToString(); - if (!string.IsNullOrEmpty(name2) && !string.IsNullOrEmpty(world2) && name2 != "Unknown") - { - resolvedName = name2 + "@" + world2; - characterCache[cid] = resolvedName; - return resolvedName; - } - } - if (data is JToken jToken) - { - resolvedName = ParseJTokenCharacterData(jToken, cid); - if (!string.IsNullOrEmpty(resolvedName)) - { - characterCache[cid] = resolvedName; - return resolvedName; - } - } - if (!unknownCIDs.Contains(cid)) - { - log.Warning($"[AutoRetainerIPC] Could not resolve name for CID {cid}"); - LogDataStructure(data, cid); - unknownCIDs.Add(cid); - } - return $"Unknown (CID: {cid})"; - } - catch (Exception ex) - { - if (!unknownCIDs.Contains(cid)) - { - log.Warning($"[AutoRetainerIPC] Exception resolving CID {cid}: {ex.Message}"); - log.Debug("[AutoRetainerIPC] Stack trace: " + ex.StackTrace); - unknownCIDs.Add(cid); - } - return $"Unknown (CID: {cid})"; - } - } - - private string? ParseJTokenCharacterData(JToken jToken, ulong cid) - { - try - { - JToken nameToken = jToken.SelectToken("Name") ?? jToken.SelectToken("name") ?? jToken.SelectToken("Value.Name"); - JToken worldToken = jToken.SelectToken("World") ?? jToken.SelectToken("world") ?? jToken.SelectToken("Value.World"); - if (nameToken != null && worldToken != null) - { - string name = nameToken.Value(); - string world = worldToken.Value(); - if (!string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(world)) - { - return name + "@" + world; - } - if (!string.IsNullOrEmpty(name)) - { - log.Warning($"[AutoRetainerIPC] JSON has Name but World is empty for CID {cid}"); - } - } - string[] array = new string[4] { "NameWithWorld", "nameWithWorld", "[\"NameWithWorld\"]", "Value.NameWithWorld" }; - foreach (string path in array) - { - if (string.IsNullOrEmpty(path)) - { - continue; - } - JToken token = jToken.SelectToken(path); - if (token != null && token.Type == JTokenType.String) - { - string value = token.Value(); - if (!string.IsNullOrEmpty(value) && value.Contains("@")) - { - log.Information("[AutoRetainerIPC] Found name via JSON path '" + path + "': " + value); - return value; - } - } - } - } - catch (Exception ex) - { - log.Warning($"[AutoRetainerIPC] Error parsing JToken for CID {cid}: {ex.Message}"); - } - return null; - } - - private void LogDataStructure(object data, ulong cid) - { - try - { - if (data is JToken jToken) - { - log.Debug($"[AutoRetainerIPC] JSON structure for CID {cid}:"); - log.Debug(jToken.ToString()); - return; - } - PropertyInfo[] properties = data.GetType().GetProperties(); - log.Debug($"[AutoRetainerIPC] Object structure for CID {cid}:"); - foreach (PropertyInfo prop in properties.Take(10)) - { - try - { - object value = prop.GetValue(data); - log.Debug($" {prop.Name} = {value ?? "(null)"}"); - } - catch - { - log.Debug(" " + prop.Name + " = (error reading value)"); - } - } - } - catch - { - } - } - - public string? GetCurrentCharacter() - { - try - { - string result = null; - framework.RunOnFrameworkThread(delegate - { - try - { - if (!clientState.IsLoggedIn) - { - result = null; - } - else if (clientState.LocalPlayer == null) - { - result = null; - } - else - { - string text = clientState.LocalPlayer.Name.ToString(); - string text2 = clientState.LocalPlayer.HomeWorld.Value.Name.ToString(); - if (string.IsNullOrEmpty(text) || string.IsNullOrEmpty(text2)) - { - result = null; - } - else - { - result = text + "@" + text2; - } - } - } - catch (Exception ex2) - { - log.Debug("[AutoRetainerIPC] GetCurrentCharacter inner failed: " + ex2.Message); - result = null; - } - }).Wait(); - return result; - } - catch (Exception ex) - { - log.Debug("[AutoRetainerIPC] GetCurrentCharacter failed: " + ex.Message); - return null; - } - } - - public bool SwitchCharacter(string characterNameWithWorld) - { - if (string.IsNullOrEmpty(characterNameWithWorld)) - { - log.Warning("[AutoRetainerIPC] Character name is null or empty"); - return false; - } - TryEnsureAvailable(); - if (!IsAvailable) - { - log.Warning("[AutoRetainerIPC] AutoRetainer not available"); - return false; - } - try - { - log.Information("[AutoRetainerIPC] Requesting relog to: " + characterNameWithWorld); - string command = "/ays relog " + characterNameWithWorld; - bool success = false; - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand(command); - success = true; - log.Information("[AutoRetainerIPC] Relog command executed: " + command); - } - catch (Exception ex2) - { - log.Error("[AutoRetainerIPC] Failed to execute relog command: " + ex2.Message); - success = false; - } - }).Wait(); - return success; - } - catch (Exception ex) - { - log.Error("[AutoRetainerIPC] Failed to switch character: " + ex.Message); - return false; - } - } - - public bool GetMultiModeEnabled() - { - TryEnsureAvailable(); - if (!IsAvailable || getMultiModeEnabledSubscriber == null) - { - log.Debug("[AutoRetainerIPC] Multi-Mode IPC not available"); - return false; - } - try - { - return getMultiModeEnabledSubscriber.InvokeFunc(); - } - catch (Exception ex) - { - log.Error("[AutoRetainerIPC] GetMultiModeEnabled failed: " + ex.Message); - return false; - } - } - - public bool SetMultiModeEnabled(bool enabled) - { - TryEnsureAvailable(); - if (!IsAvailable || setMultiModeEnabledProvider == null) - { - log.Warning("[AutoRetainerIPC] Multi-Mode IPC not available"); - return false; - } - try - { - setMultiModeEnabledProvider.SendMessage(enabled); - log.Information($"[AutoRetainerIPC] Multi-Mode set to: {enabled}"); - return true; - } - catch (Exception ex) - { - log.Error("[AutoRetainerIPC] SetMultiModeEnabled failed: " + ex.Message); - return false; - } - } - - public void Dispose() - { - IsAvailable = false; - characterCache.Clear(); - unknownCIDs.Clear(); - log.Information("[AutoRetainerIPC] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/CharacterSafeWaitService.cs b/QuestionableCompanion/QuestionableCompanion.Services/CharacterSafeWaitService.cs deleted file mode 100644 index 10c9d51..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/CharacterSafeWaitService.cs +++ /dev/null @@ -1,233 +0,0 @@ -using System; -using System.Diagnostics; -using System.Numerics; -using System.Threading; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.Character; -using FFXIVClientStructs.FFXIV.Client.Game.Control; -using FFXIVClientStructs.FFXIV.Common.Math; - -namespace QuestionableCompanion.Services; - -public class CharacterSafeWaitService -{ - private readonly IClientState clientState; - - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly ICondition condition; - - private readonly IGameGui gameGui; - - public CharacterSafeWaitService(IClientState clientState, IPluginLog log, IFramework framework, ICondition condition, IGameGui gameGui) - { - this.clientState = clientState; - this.log = log; - this.framework = framework; - this.condition = condition; - this.gameGui = gameGui; - } - - public unsafe Task WaitForCharacterFullyLoadedAsync(int timeoutSeconds = 5, int checkIntervalMs = 200) - { - return Task.Run(delegate - { - Stopwatch stopwatch = Stopwatch.StartNew(); - log.Information("[CharLoad] Waiting for character to fully load..."); - TimeSpan timeSpan = TimeSpan.FromSeconds(timeoutSeconds); - while (stopwatch.Elapsed < timeSpan) - { - try - { - if (Control.GetLocalPlayer() == null || !clientState.IsLoggedIn) - { - Thread.Sleep(checkIntervalMs); - } - else - { - if (!condition[ConditionFlag.BetweenAreas] && !condition[ConditionFlag.BetweenAreas51] && !condition[ConditionFlag.OccupiedInCutSceneEvent]) - { - stopwatch.Stop(); - log.Information($"[CharLoad] Character fully loaded in {stopwatch.ElapsedMilliseconds}ms!"); - return true; - } - Thread.Sleep(checkIntervalMs); - } - } - catch (Exception ex) - { - log.Error("[CharLoad] Error during load check: " + ex.Message); - Thread.Sleep(checkIntervalMs); - } - } - stopwatch.Stop(); - log.Warning($"[CharLoad] Character load timeout after {stopwatch.ElapsedMilliseconds}ms"); - return false; - }); - } - - public bool WaitForCharacterFullyLoaded(int timeoutSeconds = 5) - { - return WaitForCharacterFullyLoadedAsync(timeoutSeconds).GetAwaiter().GetResult(); - } - - public async Task PerformSafeWaitAsync() - { - Stopwatch sw = Stopwatch.StartNew(); - log.Information("[SafeWait] Starting character stabilization..."); - try - { - if (!(await WaitForCharacterFullyLoadedAsync(120))) - { - log.Warning("[SafeWait] Character not fully loaded, proceeding anyway"); - } - await Task.Delay(250); - await WaitForMovementEndAsync(); - await Task.Delay(250); - await WaitForActionsCompleteAsync(); - await Task.Delay(500); - sw.Stop(); - log.Information($"[SafeWait] Character stabilization complete in {sw.ElapsedMilliseconds}ms"); - } - catch (Exception ex) - { - sw.Stop(); - log.Error($"[SafeWait] Error during safe wait after {sw.ElapsedMilliseconds}ms: {ex.Message}"); - } - } - - public void PerformSafeWait() - { - PerformSafeWaitAsync().GetAwaiter().GetResult(); - } - - private async Task WaitForMovementEndAsync(int maxWaitMs = 5000, int checkIntervalMs = 100) - { - Stopwatch sw = Stopwatch.StartNew(); - while (sw.ElapsedMilliseconds < maxWaitMs) - { - try - { - if (!IsPlayerMoving()) - { - log.Debug($"[SafeWait] Movement ended after {sw.ElapsedMilliseconds}ms"); - return; - } - await Task.Delay(checkIntervalMs); - } - catch (Exception ex) - { - log.Error("[SafeWait] Error checking movement: " + ex.Message); - await Task.Delay(checkIntervalMs); - } - } - log.Warning($"[SafeWait] Movement wait timeout after {sw.ElapsedMilliseconds}ms"); - } - - private void WaitForMovementEnd() - { - WaitForMovementEndAsync().GetAwaiter().GetResult(); - } - - private async Task WaitForActionsCompleteAsync(int maxWaitMs = 10000, int checkIntervalMs = 100) - { - Stopwatch sw = Stopwatch.StartNew(); - while (sw.ElapsedMilliseconds < maxWaitMs) - { - try - { - if (!IsPlayerInAction()) - { - log.Debug($"[SafeWait] Actions completed after {sw.ElapsedMilliseconds}ms"); - return; - } - await Task.Delay(checkIntervalMs); - } - catch (Exception ex) - { - log.Error("[SafeWait] Error checking actions: " + ex.Message); - await Task.Delay(checkIntervalMs); - } - } - log.Warning($"[SafeWait] Action wait timeout after {sw.ElapsedMilliseconds}ms"); - } - - private void WaitForActionsComplete() - { - WaitForActionsCompleteAsync().GetAwaiter().GetResult(); - } - - private unsafe bool IsPlayerMoving() - { - try - { - BattleChara* player = Control.GetLocalPlayer(); - if (player == null) - { - return false; - } - FFXIVClientStructs.FFXIV.Common.Math.Vector3 currentPos = player->Character.GameObject.Position; - Thread.Sleep(50); - player = Control.GetLocalPlayer(); - if (player == null) - { - return false; - } - FFXIVClientStructs.FFXIV.Common.Math.Vector3 newPos = player->Character.GameObject.Position; - return System.Numerics.Vector3.Distance(currentPos, newPos) > 0.01f; - } - catch - { - return false; - } - } - - private unsafe bool IsPlayerInAction() - { - try - { - BattleChara* player = Control.GetLocalPlayer(); - if (player == null) - { - return false; - } - if (player->Character.IsCasting) - { - log.Debug("[SafeWait] Player is casting"); - return true; - } - return false; - } - catch - { - return false; - } - } - - public async Task PerformQuickSafeWaitAsync() - { - Stopwatch sw = Stopwatch.StartNew(); - log.Debug("[SafeWait] Performing quick safe wait..."); - try - { - await WaitForMovementEndAsync(3000); - await Task.Delay(1000); - sw.Stop(); - log.Debug($"[SafeWait] Quick safe wait complete in {sw.ElapsedMilliseconds}ms"); - } - catch (Exception ex) - { - sw.Stop(); - log.Error("[SafeWait] Error during quick safe wait: " + ex.Message); - } - } - - public void PerformQuickSafeWait() - { - PerformQuickSafeWaitAsync().GetAwaiter().GetResult(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/CombatDutyDetectionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/CombatDutyDetectionService.cs deleted file mode 100644 index a63b584..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/CombatDutyDetectionService.cs +++ /dev/null @@ -1,449 +0,0 @@ -using System; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class CombatDutyDetectionService : IDisposable -{ - private enum MultiClientRole - { - None, - Quester, - Helper - } - - private readonly ICondition condition; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private readonly Configuration config; - - private bool wasInCombat; - - private bool wasInDuty; - - private DateTime dutyExitTime = DateTime.MinValue; - - private DateTime dutyEntryTime = DateTime.MinValue; - - private DateTime lastStateChange = DateTime.MinValue; - - private bool combatCommandsActive; - - private bool hasCombatCommandsForDuty; - - private bool isInAutoDutyDungeon; - - private uint currentQuestId; - - private bool isRotationActive; - - public bool JustEnteredDuty { get; private set; } - - public bool JustExitedDuty { get; private set; } - - public DateTime DutyExitTime => dutyExitTime; - - public bool IsInCombat { get; private set; } - - public bool IsInDuty { get; private set; } - - public bool IsInDutyQueue { get; private set; } - - public bool ShouldPauseAutomation - { - get - { - if (!IsInCombat && !IsInDuty) - { - return IsInDutyQueue; - } - return true; - } - } - - public void AcknowledgeDutyEntry() - { - JustEnteredDuty = false; - } - - public void AcknowledgeDutyExit() - { - JustExitedDuty = false; - } - - public CombatDutyDetectionService(ICondition condition, IPluginLog log, IClientState clientState, ICommandManager commandManager, IFramework framework, Configuration config) - { - this.condition = condition; - this.log = log; - this.clientState = clientState; - this.commandManager = commandManager; - this.framework = framework; - this.config = config; - log.Information("[CombatDuty] Service initialized"); - } - - public void SetRotationActive(bool active) - { - isRotationActive = active; - } - - public void SetAutoDutyDungeon(bool isAutoDuty) - { - isInAutoDutyDungeon = isAutoDuty; - } - - public void SetCurrentQuestId(uint questId) - { - currentQuestId = questId; - } - - public void Update() - { - if (clientState.LocalPlayer == null || !clientState.IsLoggedIn) - { - return; - } - if (isRotationActive) - { - bool inCombat = condition[ConditionFlag.InCombat]; - if (inCombat != wasInCombat) - { - IsInCombat = inCombat; - wasInCombat = inCombat; - lastStateChange = DateTime.Now; - if (inCombat) - { - log.Information("[CombatDuty] Combat started - pausing automation"); - if (currentQuestId == 811) - { - log.Information("[CombatDuty] Quest 811 - combat commands DISABLED (RSR off)"); - return; - } - } - else - { - log.Information("[CombatDuty] Combat ended - resuming automation"); - if (combatCommandsActive && !IsInDuty) - { - log.Information("[CombatDuty] Not in duty - disabling combat commands"); - DisableCombatCommands(); - } - else if (combatCommandsActive && IsInDuty) - { - log.Information("[CombatDuty] In duty - keeping combat commands active"); - } - } - } - } - if (isRotationActive && config.EnableCombatHandling && IsInCombat && !combatCommandsActive && currentQuestId != 811) - { - IPlayerCharacter player = clientState.LocalPlayer; - if (player != null) - { - float hpPercent = (float)player.CurrentHp / (float)player.MaxHp * 100f; - if (hpPercent <= (float)config.CombatHPThreshold && CanExecuteCombatAutomation()) - { - log.Warning($"[CombatDuty] HP at {hpPercent:F1}% (threshold: {config.CombatHPThreshold}%) - enabling combat commands"); - EnableCombatCommands(); - } - } - } - bool inDuty = condition[ConditionFlag.BoundByDuty] || condition[ConditionFlag.BoundByDuty56] || condition[ConditionFlag.BoundByDuty95]; - if (inDuty != wasInDuty) - { - IsInDuty = inDuty; - wasInDuty = inDuty; - lastStateChange = DateTime.Now; - if (inDuty) - { - log.Information("[CombatDuty] Duty started - pausing automation"); - JustEnteredDuty = true; - JustExitedDuty = false; - dutyEntryTime = DateTime.Now; - hasCombatCommandsForDuty = false; - } - else - { - log.Information("[CombatDuty] Duty completed - resuming automation"); - JustEnteredDuty = false; - JustExitedDuty = true; - dutyExitTime = DateTime.Now; - dutyEntryTime = DateTime.MinValue; - hasCombatCommandsForDuty = false; - if (combatCommandsActive) - { - log.Information("[CombatDuty] Duty ended - disabling combat commands"); - DisableCombatCommands(); - } - } - } - if (isRotationActive && IsInDuty && !isInAutoDutyDungeon && !hasCombatCommandsForDuty && dutyEntryTime != DateTime.MinValue) - { - if (currentQuestId == 811) - { - log.Information("[CombatDuty] Quest 811 - skipping combat commands (RSR disabled)"); - hasCombatCommandsForDuty = true; - return; - } - if (currentQuestId == 4591) - { - log.Information("[CombatDuty] Quest 4591 (Steps of Faith) - skipping combat commands (handler does it)"); - hasCombatCommandsForDuty = true; - return; - } - if ((DateTime.Now - dutyEntryTime).TotalSeconds >= 8.0) - { - log.Information("[CombatDuty] 8 seconds in Solo Duty - enabling combat commands"); - EnableCombatCommands(); - hasCombatCommandsForDuty = true; - } - } - bool inQueue = condition[ConditionFlag.WaitingForDuty] || condition[ConditionFlag.WaitingForDutyFinder]; - if (inQueue != IsInDutyQueue) - { - IsInDutyQueue = inQueue; - lastStateChange = DateTime.Now; - if (inQueue) - { - log.Information("[CombatDuty] Duty queue active - pausing automation"); - } - else - { - log.Information("[CombatDuty] Duty queue ended - resuming automation"); - } - } - } - - public TimeSpan TimeSinceLastStateChange() - { - if (lastStateChange == DateTime.MinValue) - { - return TimeSpan.Zero; - } - return DateTime.Now - lastStateChange; - } - - private void EnableCombatCommands() - { - if (combatCommandsActive) - { - return; - } - if (!CanExecuteCombatAutomation()) - { - switch (GetCurrentMultiClientRole()) - { - case MultiClientRole.None: - log.Debug("[CombatDuty] Combat blocked: Role is 'None' (Config not Helper/Quester)"); - break; - case MultiClientRole.Quester: - log.Debug("[CombatDuty] Combat blocked: Quester outside Solo Duty (Let D.Automation handle invalid content)"); - break; - } - return; - } - try - { - log.Information("[CombatDuty] ========================================"); - log.Information("[CombatDuty] === ENABLING COMBAT AUTOMATION ==="); - log.Information("[CombatDuty] ========================================"); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/rsr auto"); - log.Information("[CombatDuty] /rsr auto sent"); - } - catch (Exception ex2) - { - log.Error("[CombatDuty] Failed to send /rsr auto: " + ex2.Message); - } - }, TimeSpan.Zero); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/vbmai on"); - log.Information("[CombatDuty] /vbmai on sent"); - } - catch (Exception ex2) - { - log.Error("[CombatDuty] Failed to send /vbmai on: " + ex2.Message); - } - }, TimeSpan.FromMilliseconds(100L, 0L)); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/bmrai on"); - log.Information("[CombatDuty] /bmrai on sent"); - } - catch (Exception ex2) - { - log.Error("[CombatDuty] Failed to send /bmrai on: " + ex2.Message); - } - }, TimeSpan.FromMilliseconds(200L, 0L)); - combatCommandsActive = true; - log.Information("[CombatDuty] Combat automation enabled"); - } - catch (Exception ex) - { - log.Error("[CombatDuty] Error enabling combat commands: " + ex.Message); - } - } - - private void DisableCombatCommands() - { - if (!combatCommandsActive) - { - return; - } - try - { - log.Information("[CombatDuty] ========================================"); - log.Information("[CombatDuty] === DISABLING COMBAT AUTOMATION ==="); - log.Information("[CombatDuty] ========================================"); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/rsr off"); - log.Information("[CombatDuty] /rsr off sent"); - } - catch (Exception ex2) - { - log.Error("[CombatDuty] Failed to send /rsr off: " + ex2.Message); - } - }, TimeSpan.Zero); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/vbmai off"); - log.Information("[CombatDuty] /vbmai off sent"); - } - catch (Exception ex2) - { - log.Error("[CombatDuty] Failed to send /vbmai off: " + ex2.Message); - } - }, TimeSpan.FromMilliseconds(100L, 0L)); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/bmrai off"); - log.Information("[CombatDuty] /bmrai off sent"); - } - catch (Exception ex2) - { - log.Error("[CombatDuty] Failed to send /bmrai off: " + ex2.Message); - } - }, TimeSpan.FromMilliseconds(200L, 0L)); - combatCommandsActive = false; - log.Information("[CombatDuty] Combat automation disabled"); - } - catch (Exception ex) - { - log.Error("[CombatDuty] Error disabling combat commands: " + ex.Message); - } - } - - public void ClearDutyExitFlag() - { - JustExitedDuty = false; - } - - public void Reset() - { - IsInCombat = false; - IsInDuty = false; - IsInDutyQueue = false; - wasInCombat = false; - wasInDuty = false; - combatCommandsActive = false; - hasCombatCommandsForDuty = false; - JustEnteredDuty = false; - JustExitedDuty = false; - dutyExitTime = DateTime.MinValue; - dutyEntryTime = DateTime.MinValue; - log.Information("[CombatDuty] State reset"); - } - - private MultiClientRole GetCurrentMultiClientRole() - { - if (config.IsHighLevelHelper) - { - return MultiClientRole.Helper; - } - if (config.IsQuester) - { - return MultiClientRole.Quester; - } - return MultiClientRole.None; - } - - private bool IsInSoloDuty() - { - if (condition[ConditionFlag.BoundByDuty95]) - { - return true; - } - if (IsInDuty && !isInAutoDutyDungeon) - { - return true; - } - return false; - } - - private bool CanExecuteCombatAutomation() - { - switch (GetCurrentMultiClientRole()) - { - case MultiClientRole.None: - if (!IsInDuty) - { - return true; - } - return false; - case MultiClientRole.Helper: - return true; - case MultiClientRole.Quester: - if (!IsInDuty) - { - return true; - } - if (IsInSoloDuty()) - { - return true; - } - if (currentQuestId == 811) - { - return true; - } - if (currentQuestId == 4591) - { - return true; - } - return false; - default: - return false; - } - } - - public void Dispose() - { - if (combatCommandsActive) - { - DisableCombatCommands(); - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/CrossProcessIPC.cs b/QuestionableCompanion/QuestionableCompanion.Services/CrossProcessIPC.cs deleted file mode 100644 index 147dae2..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/CrossProcessIPC.cs +++ /dev/null @@ -1,514 +0,0 @@ -using System; -using System.Globalization; -using System.IO.MemoryMappedFiles; -using System.Numerics; -using System.Runtime.CompilerServices; -using System.Text; -using System.Threading; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class CrossProcessIPC : IDisposable -{ - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly Configuration configuration; - - private MemoryMappedFile? mmf; - - private Thread? listenerThread; - - private bool isRunning; - - private const string MMF_NAME = "QSTCompanion_IPC"; - - private const int MMF_SIZE = 4096; - - private const int POLLING_INTERVAL_MS = 10; - - public event Action? OnHelperAvailable; - - public event Action? OnHelperRequested; - - public event Action? OnHelperDismissed; - - public event Action? OnChatMessageReceived; - - public event Action? OnCommandReceived; - - public event Action? OnHelperInParty; - - public event Action? OnHelperInDuty; - - public event Action? OnHelperReady; - - public event Action? OnRequestHelperAnnouncements; - - public event Action? OnChauffeurSummonRequest; - - public event Action? OnChauffeurReadyForPickup; - - public event Action? OnChauffeurArrived; - - public event Action? OnChauffeurZoneUpdate; - - public event Action? OnChauffeurMountReady; - - public event Action? OnChauffeurPassengerMounted; - - public event Action? OnHelperStatusUpdate; - - public event Action? OnQuesterPositionUpdate; - - public CrossProcessIPC(IPluginLog log, IFramework framework, Configuration configuration) - { - this.log = log; - this.framework = framework; - this.configuration = configuration; - InitializeIPC(); - } - - private void InitializeIPC() - { - try - { - mmf = MemoryMappedFile.CreateOrOpen("QSTCompanion_IPC", 4096L, MemoryMappedFileAccess.ReadWrite); - isRunning = true; - listenerThread = new Thread(ListenerLoop) - { - IsBackground = true, - Name = "QSTCompanion IPC Listener" - }; - listenerThread.Start(); - log.Information("[CrossProcessIPC] Initialized with Memory-Mapped File"); - if (configuration.IsHighLevelHelper) - { - framework.RunOnFrameworkThread(delegate - { - AnnounceHelper(); - }); - } - } - catch (Exception ex) - { - log.Error("[CrossProcessIPC] Failed to initialize: " + ex.Message); - } - } - - private void ListenerLoop() - { - string lastMessage = ""; - while (isRunning) - { - try - { - if (mmf == null) - { - break; - } - using (MemoryMappedViewAccessor accessor = mmf.CreateViewAccessor(0L, 4096L, MemoryMappedFileAccess.Read)) - { - byte[] buffer = new byte[4096]; - accessor.ReadArray(0L, buffer, 0, 4096); - string message = Encoding.UTF8.GetString(buffer).TrimEnd('\0'); - if (!string.IsNullOrEmpty(message) && message != lastMessage) - { - lastMessage = message; - ProcessMessage(message); - } - } - Thread.Sleep(10); - } - catch (Exception ex) - { - log.Error("[CrossProcessIPC] Listener error: " + ex.Message); - Thread.Sleep(1000); - } - } - } - - private void ProcessMessage(string message) - { - try - { - string[] parts = message.Split('|'); - if (parts.Length < 2) - { - return; - } - string command = parts[0]; - _003C_003Ec__DisplayClass63_0 CS_0024_003C_003E8__locals0; - framework.RunOnFrameworkThread(delegate - { - try - { - string text = command; - if (text != null) - { - switch (text.Length) - { - case 16: - switch (text[0]) - { - case 'H': - if (text == "HELPER_AVAILABLE" && parts.Length >= 3) - { - string text3 = parts[1]; - if (ushort.TryParse(parts[2], out var result8)) - { - log.Information($"[CrossProcessIPC] Helper available: {text3}@{result8}"); - this.OnHelperAvailable?.Invoke(text3, result8); - } - } - break; - case 'C': - if (text == "CHAUFFEUR_SUMMON" && parts.Length >= 11) - { - ushort questerWorld = ushort.Parse(parts[2]); - uint zoneId = uint.Parse(parts[3]); - Vector3 targetPos = new Vector3(float.Parse(parts[4]), float.Parse(parts[5]), float.Parse(parts[6])); - Vector3 questerPos = new Vector3(float.Parse(parts[7]), float.Parse(parts[8]), float.Parse(parts[9])); - bool isAttuneAetheryte = bool.Parse(parts[10]); - framework.RunOnFrameworkThread(delegate - { - this.OnChauffeurSummonRequest?.Invoke((string)(object)CS_0024_003C_003E8__locals0, questerWorld, zoneId, targetPos, questerPos, isAttuneAetheryte); - }); - } - break; - case 'Q': - if (text == "QUESTER_POSITION" && parts.Length >= 7) - { - string arg3 = parts[1]; - if (ushort.TryParse(parts[2], out var result3) && uint.TryParse(parts[3], out var result4) && float.TryParse(parts[4], NumberStyles.Float, CultureInfo.InvariantCulture, out var result5) && float.TryParse(parts[5], NumberStyles.Float, CultureInfo.InvariantCulture, out var result6) && float.TryParse(parts[6], NumberStyles.Float, CultureInfo.InvariantCulture, out var result7)) - { - Vector3 arg4 = new Vector3(result5, result6, result7); - this.OnQuesterPositionUpdate?.Invoke(arg3, result3, result4, arg4); - } - } - break; - } - break; - case 14: - switch (text[7]) - { - case 'R': - if (text == "HELPER_REQUEST" && parts.Length >= 3) - { - string text12 = parts[1]; - if (ushort.TryParse(parts[2], out var result14)) - { - log.Information($"[CrossProcessIPC] Helper request: {text12}@{result14}"); - this.OnHelperRequested?.Invoke(text12, result14); - } - } - break; - case 'D': - if (text == "HELPER_DISMISS") - { - log.Information("[CrossProcessIPC] Helper dismiss"); - this.OnHelperDismissed?.Invoke(); - } - break; - case 'I': - if (text == "HELPER_IN_DUTY" && parts.Length >= 3) - { - string text11 = parts[1]; - if (ushort.TryParse(parts[2], out var result13)) - { - log.Information($"[CrossProcessIPC] Helper in duty: {text11}@{result13}"); - this.OnHelperInDuty?.Invoke(text11, result13); - } - } - break; - } - break; - case 15: - switch (text[0]) - { - case 'H': - if (text == "HELPER_IN_PARTY" && parts.Length >= 3) - { - string text9 = parts[1]; - if (ushort.TryParse(parts[2], out var result12)) - { - log.Information($"[CrossProcessIPC] Helper in party: {text9}@{result12}"); - this.OnHelperInParty?.Invoke(text9, result12); - } - } - break; - case 'C': - if (text == "CHAUFFEUR_READY" && parts.Length >= 2) - { - string text8 = parts[1]; - log.Information("[CrossProcessIPC] Chauffeur ready: " + text8); - this.OnChauffeurReadyForPickup?.Invoke(text8); - } - break; - } - break; - case 21: - switch (text[10]) - { - case 'Z': - if (text == "CHAUFFEUR_ZONE_UPDATE" && parts.Length >= 5) - { - string text5 = parts[1]; - if (ushort.TryParse(parts[2], out var result10) && uint.TryParse(parts[3], out var result11)) - { - string text6 = parts[4]; - log.Information($"[CrossProcessIPC] Zone update: {text5}@{result10} -> {text6} ({result11})"); - this.OnChauffeurZoneUpdate?.Invoke(text5, result10, result11, text6); - } - } - break; - case 'M': - if (text == "CHAUFFEUR_MOUNT_READY" && parts.Length >= 3) - { - string text4 = parts[1]; - if (ushort.TryParse(parts[2], out var result9)) - { - log.Information($"[CrossProcessIPC] Chauffeur mount ready for: {text4}@{result9}"); - IPluginLog pluginLog = log; - DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(53, 1); - defaultInterpolatedStringHandler.AppendLiteral("[CrossProcessIPC] OnChauffeurMountReady subscribers: "); - Action? action = this.OnChauffeurMountReady; - defaultInterpolatedStringHandler.AppendFormatted((action != null) ? action.GetInvocationList().Length : 0); - pluginLog.Information(defaultInterpolatedStringHandler.ToStringAndClear()); - this.OnChauffeurMountReady?.Invoke(text4, result9); - } - } - break; - } - break; - case 4: - if (text == "CHAT" && parts.Length >= 2) - { - string text7 = parts[1]; - log.Information("[CrossProcessIPC] Chat: " + text7); - this.OnChatMessageReceived?.Invoke(text7); - } - break; - case 7: - if (text == "COMMAND" && parts.Length >= 2) - { - string text10 = parts[1]; - log.Information("[CrossProcessIPC] Command: " + text10); - this.OnCommandReceived?.Invoke(text10); - } - break; - case 12: - if (text == "HELPER_READY" && parts.Length >= 3) - { - string text13 = parts[1]; - if (ushort.TryParse(parts[2], out var result15)) - { - log.Information($"[CrossProcessIPC] Helper ready: {text13}@{result15}"); - this.OnHelperReady?.Invoke(text13, result15); - } - } - break; - case 28: - if (text == "REQUEST_HELPER_ANNOUNCEMENTS") - { - log.Information("[CrossProcessIPC] Request for helper announcements received"); - this.OnRequestHelperAnnouncements?.Invoke(); - } - break; - case 17: - if (text == "CHAUFFEUR_ARRIVED" && parts.Length >= 3) - { - string text2 = parts[1]; - if (ushort.TryParse(parts[2], out var result2)) - { - log.Information($"[CrossProcessIPC] Chauffeur arrived for: {text2}@{result2}"); - this.OnChauffeurArrived?.Invoke(text2, result2); - } - } - break; - case 27: - if (text == "CHAUFFEUR_PASSENGER_MOUNTED") - { - log.Information("[CrossProcessIPC] Chauffeur passenger mounted signal received"); - IPluginLog pluginLog2 = log; - DefaultInterpolatedStringHandler defaultInterpolatedStringHandler2 = new DefaultInterpolatedStringHandler(59, 1); - defaultInterpolatedStringHandler2.AppendLiteral("[CrossProcessIPC] OnChauffeurPassengerMounted subscribers: "); - Action? action2 = this.OnChauffeurPassengerMounted; - defaultInterpolatedStringHandler2.AppendFormatted((action2 != null) ? action2.GetInvocationList().Length : 0); - pluginLog2.Information(defaultInterpolatedStringHandler2.ToStringAndClear()); - this.OnChauffeurPassengerMounted?.Invoke(); - } - break; - case 13: - if (text == "HELPER_STATUS" && parts.Length >= 4) - { - string arg = parts[1]; - if (ushort.TryParse(parts[2], out var result)) - { - string arg2 = parts[3]; - this.OnHelperStatusUpdate?.Invoke(arg, result, arg2); - } - } - break; - } - } - } - catch (Exception ex2) - { - log.Error("[CrossProcessIPC] Error in event handler: " + ex2.Message); - } - }); - } - catch (Exception ex) - { - log.Error("[CrossProcessIPC] Error processing message: " + ex.Message); - } - } - - private void SendMessage(string message) - { - try - { - if (mmf == null) - { - return; - } - using MemoryMappedViewAccessor accessor = mmf.CreateViewAccessor(0L, 4096L, MemoryMappedFileAccess.Write); - byte[] buffer = Encoding.UTF8.GetBytes(message); - if (buffer.Length > 4095) - { - log.Warning($"[CrossProcessIPC] Message too large: {buffer.Length} bytes"); - } - else - { - byte[] clearBuffer = new byte[4096]; - accessor.WriteArray(0L, clearBuffer, 0, 4096); - accessor.WriteArray(0L, buffer, 0, buffer.Length); - } - } - catch (Exception ex) - { - log.Error("[CrossProcessIPC] Failed to send message: " + ex.Message); - } - } - - public void AnnounceHelper() - { - if (configuration.IsHighLevelHelper) - { - IPlayerCharacter localPlayer = Plugin.ClientState?.LocalPlayer; - if (localPlayer != null) - { - string name = localPlayer.Name.ToString(); - ushort worldId = (ushort)localPlayer.HomeWorld.RowId; - SendMessage($"HELPER_AVAILABLE|{name}|{worldId}"); - log.Information($"[CrossProcessIPC] Announced as helper: {name}@{worldId}"); - } - } - } - - public void RequestHelper(string characterName, ushort worldId) - { - SendMessage($"HELPER_REQUEST|{characterName}|{worldId}"); - log.Information($"[CrossProcessIPC] Requested helper: {characterName}@{worldId}"); - } - - public void DismissHelper() - { - SendMessage("HELPER_DISMISS"); - log.Information("[CrossProcessIPC] Dismissed helper"); - } - - public void SendChatMessage(string message) - { - SendMessage("CHAT|" + message); - log.Information("[CrossProcessIPC] Chat: " + message); - } - - public void SendCommand(string command) - { - SendMessage("COMMAND|" + command); - log.Information("[CrossProcessIPC] Command: " + command); - } - - public void NotifyHelperInParty(string name, ushort worldId) - { - SendMessage($"HELPER_IN_PARTY|{name}|{worldId}"); - log.Information($"[CrossProcessIPC] Notified: Helper in party {name}@{worldId}"); - } - - public void NotifyHelperInDuty(string name, ushort worldId) - { - SendMessage($"HELPER_IN_DUTY|{name}|{worldId}"); - log.Information($"[CrossProcessIPC] Notified: Helper in duty {name}@{worldId}"); - } - - public void NotifyHelperReady(string name, ushort worldId) - { - SendMessage($"HELPER_READY|{name}|{worldId}"); - log.Information($"[CrossProcessIPC] Notified: Helper ready {name}@{worldId}"); - } - - public void RequestHelperAnnouncements() - { - SendMessage("REQUEST_HELPER_ANNOUNCEMENTS"); - log.Information("[CrossProcessIPC] Requesting helper announcements from all clients"); - } - - public void SendChauffeurSummonRequest(string questerName, ushort questerWorld, uint zoneId, Vector3 targetPos, Vector3 questerPos, bool isAttuneAetheryte) - { - SendMessage($"CHAUFFEUR_SUMMON|{questerName}|{questerWorld}|{zoneId}|{targetPos.X}|{targetPos.Y}|{targetPos.Z}|{questerPos.X}|{questerPos.Y}|{questerPos.Z}|{isAttuneAetheryte}"); - log.Information($"[CrossProcessIPC] Chauffeur summon: {questerName}@{questerWorld} zone {zoneId} quester@({questerPos.X:F2},{questerPos.Y:F2},{questerPos.Z:F2}) AttuneAetheryte={isAttuneAetheryte}"); - } - - public void SendChauffeurMountReady(string questerName, ushort questerWorld) - { - SendMessage($"CHAUFFEUR_MOUNT_READY|{questerName}|{questerWorld}"); - log.Information($"[CrossProcessIPC] Chauffeur mount ready for RidePillion: {questerName}@{questerWorld}"); - } - - public void SendChauffeurPassengerMounted() - { - SendMessage("CHAUFFEUR_PASSENGER_MOUNTED"); - log.Debug("[CrossProcessIPC] Sent: CHAUFFEUR_PASSENGER_MOUNTED"); - } - - public void SendChauffeurReadyForPickup(string helperName) - { - SendMessage("CHAUFFEUR_READY|" + helperName); - log.Information("[CrossProcessIPC] Chauffeur ready: " + helperName); - } - - public void SendChauffeurArrived(string questerName, ushort questerWorld) - { - SendMessage($"CHAUFFEUR_ARRIVED|{questerName}|{questerWorld}"); - log.Information($"[CrossProcessIPC] Chauffeur arrived for: {questerName}@{questerWorld}"); - } - - public void SendChauffeurZoneUpdate(string characterName, ushort worldId, uint zoneId, string zoneName) - { - SendMessage($"CHAUFFEUR_ZONE_UPDATE|{characterName}|{worldId}|{zoneId}|{zoneName}"); - log.Information($"[CrossProcessIPC] Zone update: {characterName}@{worldId} -> {zoneName} ({zoneId})"); - } - - public void BroadcastHelperStatus(string helperName, ushort helperWorld, string status) - { - SendMessage($"HELPER_STATUS|{helperName}|{helperWorld}|{status}"); - } - - public void BroadcastQuesterPosition(string questerName, ushort questerWorld, uint zoneId, Vector3 position) - { - SendMessage($"QUESTER_POSITION|{questerName}|{questerWorld}|{zoneId}|{position.X.ToString(CultureInfo.InvariantCulture)}|{position.Y.ToString(CultureInfo.InvariantCulture)}|{position.Z.ToString(CultureInfo.InvariantCulture)}"); - } - - public void Dispose() - { - isRunning = false; - listenerThread?.Join(1000); - mmf?.Dispose(); - log.Information("[CrossProcessIPC] Disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/CurrentTask.cs b/QuestionableCompanion/QuestionableCompanion.Services/CurrentTask.cs deleted file mode 100644 index b244653..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/CurrentTask.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System.Numerics; - -namespace QuestionableCompanion.Services; - -public class CurrentTask -{ - public required string Type { get; init; } - - public ushort TerritoryId { get; init; } - - public string? InteractionType { get; init; } - - public Vector3? Position { get; init; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/DCTravelService.cs b/QuestionableCompanion/QuestionableCompanion.Services/DCTravelService.cs deleted file mode 100644 index 054bcc0..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/DCTravelService.cs +++ /dev/null @@ -1,380 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class DCTravelService : IDisposable -{ - private readonly IPluginLog log; - - private readonly Configuration config; - - private readonly IClientState clientState; - - private readonly LifestreamIPC lifestreamIPC; - - private readonly QuestionableIPC questionableIPC; - - private readonly CharacterSafeWaitService safeWaitService; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private bool dcTravelCompleted; - - private bool dcTravelInProgress; - - public DCTravelService(IPluginLog log, Configuration config, LifestreamIPC lifestreamIPC, QuestionableIPC questionableIPC, CharacterSafeWaitService safeWaitService, IClientState clientState, ICommandManager commandManager, IFramework framework) - { - this.log = log; - this.config = config; - this.lifestreamIPC = lifestreamIPC; - this.questionableIPC = questionableIPC; - this.safeWaitService = safeWaitService; - this.clientState = clientState; - this.commandManager = commandManager; - this.framework = framework; - } - - public bool ShouldPerformDCTravel() - { - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] === DC TRAVEL CHECK START ==="); - log.Information("[DCTravel] ========================================"); - log.Information($"[DCTravel] Config.EnableDCTravel: {config.EnableDCTravel}"); - log.Information("[DCTravel] Config.DCTravelWorld: '" + config.DCTravelWorld + "'"); - log.Information($"[DCTravel] State.dcTravelCompleted: {dcTravelCompleted}"); - log.Information($"[DCTravel] State.dcTravelInProgress: {dcTravelInProgress}"); - if (!config.EnableDCTravel) - { - log.Warning("[DCTravel] SKIP: DC Travel is DISABLED in config"); - return false; - } - if (string.IsNullOrEmpty(config.DCTravelWorld)) - { - log.Warning("[DCTravel] SKIP: No target world configured"); - return false; - } - if (clientState.LocalPlayer == null) - { - log.Error("[DCTravel] SKIP: LocalPlayer is NULL"); - return false; - } - string currentWorld = clientState.LocalPlayer.CurrentWorld.Value.Name.ToString(); - log.Information("[DCTravel] Current World: '" + currentWorld + "'"); - log.Information("[DCTravel] Target World: '" + config.DCTravelWorld + "'"); - if (currentWorld.Equals(config.DCTravelWorld, StringComparison.OrdinalIgnoreCase)) - { - if (!dcTravelCompleted) - { - log.Information("[DCTravel] Character is already on target world - marking as completed"); - dcTravelCompleted = true; - } - log.Warning("[DCTravel] SKIP: Already on target world '" + config.DCTravelWorld + "'"); - return false; - } - if (dcTravelCompleted) - { - log.Warning("[DCTravel] State says completed but character is NOT on target world!"); - log.Warning("[DCTravel] Resetting state - will perform DC Travel"); - dcTravelCompleted = false; - } - if (dcTravelInProgress) - { - log.Warning("[DCTravel] SKIP: Travel already in progress"); - return false; - } - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] DC TRAVEL WILL BE PERFORMED!"); - log.Information("[DCTravel] ========================================"); - return true; - } - - public async Task PerformDCTravel() - { - if (dcTravelInProgress) - { - log.Warning("[DCTravel] DC Travel already in progress"); - return false; - } - if (string.IsNullOrEmpty(config.DCTravelWorld)) - { - log.Error("[DCTravel] No target world configured"); - return false; - } - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] === CHECKING LIFESTREAM AVAILABILITY ==="); - log.Information("[DCTravel] ========================================"); - log.Information($"[DCTravel] lifestreamIPC.IsAvailable (cached): {lifestreamIPC.IsAvailable}"); - bool isAvailable = lifestreamIPC.ForceCheckAvailability(); - log.Information($"[DCTravel] lifestreamIPC.ForceCheckAvailability() result: {isAvailable}"); - if (!isAvailable) - { - log.Error("[DCTravel] ========================================"); - log.Error("[DCTravel] ======= LIFESTREAM NOT AVAILABLE! ======"); - log.Error("[DCTravel] ========================================"); - log.Error("[DCTravel] Possible reasons:"); - log.Error("[DCTravel] 1. Lifestream plugin is not installed"); - log.Error("[DCTravel] 2. Lifestream plugin is not enabled"); - log.Error("[DCTravel] 3. Lifestream plugin failed to load"); - log.Error("[DCTravel] 4. IPC communication error"); - log.Error("[DCTravel] ========================================"); - return false; - } - log.Information("[DCTravel] Lifestream is available!"); - dcTravelInProgress = true; - try - { - log.Information("[DCTravel] === INITIATING DATA CENTER TRAVEL ==="); - log.Information("[DCTravel] Target World: " + config.DCTravelWorld); - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] === STOPPING QUESTIONABLE ==="); - log.Information("[DCTravel] ========================================"); - log.Information($"[DCTravel] Questionable IsRunning: {questionableIPC.IsRunning()}"); - try - { - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst stop"); - Thread.Sleep(1000); - }); - log.Information("[DCTravel] /qst stop command sent on Framework Thread"); - log.Information($"[DCTravel] Questionable IsRunning after stop: {questionableIPC.IsRunning()}"); - } - catch (Exception ex) - { - log.Error("[DCTravel] Error stopping Questionable: " + ex.Message); - } - log.Information("[DCTravel] Initiating travel to " + config.DCTravelWorld + "..."); - log.Information("[DCTravel] Checking Lifestream status before travel..."); - log.Information($"[DCTravel] Lifestream.IsAvailable: {lifestreamIPC.IsAvailable}"); - log.Information($"[DCTravel] Lifestream.IsBusy(): {lifestreamIPC.IsBusy()}"); - if (lifestreamIPC.IsBusy()) - { - log.Error("[DCTravel] Lifestream is BUSY! Cannot start travel!"); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }).Wait(); - log.Information("[DCTravel] /qst start command sent on Framework Thread (recovery)"); - dcTravelInProgress = false; - return false; - } - log.Information("[DCTravel] Sending /li " + config.DCTravelWorld + " command on Framework Thread..."); - bool commandSuccess = false; - try - { - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/li " + config.DCTravelWorld); - commandSuccess = true; - log.Information("[DCTravel] /li " + config.DCTravelWorld + " command executed on Framework Thread"); - } - catch (Exception ex5) - { - log.Error("[DCTravel] Failed to execute /li command: " + ex5.Message); - commandSuccess = false; - } - }).Wait(); - if (!commandSuccess) - { - log.Error("[DCTravel] Failed to send /li command"); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }).Wait(); - log.Information("[DCTravel] /qst start command sent (recovery)"); - dcTravelInProgress = false; - return false; - } - Thread.Sleep(1000); - bool isBusy = lifestreamIPC.IsBusy(); - log.Information($"[DCTravel] Lifestream.IsBusy() after command: {isBusy}"); - if (!isBusy) - { - log.Warning("[DCTravel] Lifestream did not become busy after command!"); - log.Warning("[DCTravel] Travel may not have started - check Lifestream manually"); - } - } - catch (Exception ex2) - { - log.Error("[DCTravel] Error sending /li command: " + ex2.Message); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }).Wait(); - log.Information("[DCTravel] /qst start command sent (recovery)"); - dcTravelInProgress = false; - return false; - } - log.Information("[DCTravel] Waiting for travel completion..."); - if (!(await WaitForTravelCompletion(120))) - { - log.Warning("[DCTravel] Travel timeout - proceeding anyway"); - } - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] === RESUMING QUESTIONABLE ==="); - log.Information("[DCTravel] ========================================"); - try - { - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }).Wait(); - log.Information("[DCTravel] /qst start command sent on Framework Thread"); - Thread.Sleep(1000); - log.Information($"[DCTravel] Questionable IsRunning after start: {questionableIPC.IsRunning()}"); - } - catch (Exception ex3) - { - log.Error("[DCTravel] Error starting Questionable: " + ex3.Message); - } - dcTravelCompleted = true; - dcTravelInProgress = false; - log.Information("[DCTravel] === DATA CENTER TRAVEL COMPLETE ==="); - return true; - } - catch (Exception ex4) - { - log.Error("[DCTravel] Error during DC travel: " + ex4.Message); - try - { - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst start"); - }).Wait(); - log.Information("[DCTravel] /qst start command sent on Framework Thread (error recovery)"); - } - catch - { - } - dcTravelInProgress = false; - return false; - } - } - - private async Task WaitForTravelCompletion(int timeoutSeconds) - { - DateTime startTime = DateTime.Now; - TimeSpan timeout = TimeSpan.FromSeconds(timeoutSeconds); - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] === WAITING FOR TRAVEL TO START ==="); - log.Information("[DCTravel] ========================================"); - DateTime phase1Start = DateTime.Now; - TimeSpan phase1Timeout = TimeSpan.FromSeconds(30L); - bool travelStarted = false; - log.Information("[DCTravel] Waiting 5 seconds for Lifestream to queue travel tasks..."); - await Task.Delay(5000); - while (DateTime.Now - phase1Start < phase1Timeout) - { - try - { - if (lifestreamIPC.IsBusy()) - { - log.Information("[DCTravel] Lifestream travel has STARTED!"); - travelStarted = true; - break; - } - double elapsed = (DateTime.Now - phase1Start).TotalSeconds; - if (elapsed % 5.0 < 0.5) - { - log.Information($"[DCTravel] Waiting for travel to start... ({elapsed:F1}s)"); - } - } - catch (Exception ex) - { - log.Debug("[DCTravel] Error checking Lifestream status: " + ex.Message); - } - await Task.Delay(1000); - } - if (!travelStarted) - { - log.Error("[DCTravel] ❌ Travel did not start within 30 seconds!"); - return false; - } - log.Information("[DCTravel] ========================================"); - log.Information("[DCTravel] === WAITING FOR TRAVEL TO COMPLETE ==="); - log.Information("[DCTravel] ========================================"); - while (DateTime.Now - startTime < timeout) - { - try - { - if (!lifestreamIPC.IsBusy()) - { - log.Information("[DCTravel] Lifestream is no longer busy!"); - log.Information("[DCTravel] Waiting 30 seconds for character to stabilize..."); - await Task.Delay(30000); - log.Information("[DCTravel] Travel complete!"); - return true; - } - double elapsed2 = (DateTime.Now - startTime).TotalSeconds; - if (elapsed2 % 10.0 < 0.5) - { - log.Information($"[DCTravel] Lifestream is busy (traveling)... ({elapsed2:F0}s)"); - } - } - catch (Exception ex2) - { - log.Debug("[DCTravel] Error checking Lifestream status: " + ex2.Message); - } - await Task.Delay(1000); - } - log.Warning($"[DCTravel] Travel timeout after {timeoutSeconds}s"); - return false; - } - - public async Task ReturnToHomeworld() - { - if (!lifestreamIPC.IsAvailable) - { - log.Warning("[DCTravel] Lifestream not available for homeworld return"); - return false; - } - if (clientState.LocalPlayer == null) - { - return false; - } - string homeWorld = clientState.LocalPlayer.HomeWorld.Value.Name.ToString(); - string currentWorld = clientState.LocalPlayer.CurrentWorld.Value.Name.ToString(); - if (homeWorld.Equals(currentWorld, StringComparison.OrdinalIgnoreCase)) - { - log.Information("[DCTravel] Already on homeworld"); - return true; - } - log.Information("[DCTravel] Returning to homeworld: " + homeWorld); - bool success = lifestreamIPC.ChangeWorld(homeWorld); - if (success) - { - await Task.Delay(2000); - log.Information("[DCTravel] Homeworld return initiated"); - } - return success; - } - - public void ResetDCTravelState() - { - dcTravelCompleted = false; - dcTravelInProgress = false; - log.Information("[DCTravel] DC Travel state reset"); - } - - public bool IsDCTravelCompleted() - { - return dcTravelCompleted; - } - - public bool IsDCTravelInProgress() - { - return dcTravelInProgress; - } - - public void Dispose() - { - log.Information("[DCTravel] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/DataCenterService.cs b/QuestionableCompanion/QuestionableCompanion.Services/DataCenterService.cs deleted file mode 100644 index 207c195..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/DataCenterService.cs +++ /dev/null @@ -1,206 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Plugin.Services; -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace QuestionableCompanion.Services; - -public class DataCenterService -{ - private readonly IDataManager dataManager; - - private readonly IPluginLog log; - - private readonly Dictionary worldToDCCache = new Dictionary(); - - private readonly Dictionary dataCenterToRegion = new Dictionary - { - { "Chaos", "EU" }, - { "Light", "EU" }, - { "Shadow", "EU" }, - { "Aether", "NA" }, - { "Primal", "NA" }, - { "Crystal", "NA" }, - { "Dynamis", "NA" }, - { "Elemental", "JP" }, - { "Gaia", "JP" }, - { "Mana", "JP" }, - { "Meteor", "JP" }, - { "Materia", "OCE" }, - { "陆行鸟", "Others" }, - { "莫古力", "Others" }, - { "猫小胖", "Others" }, - { "豆豆柴", "Others" } - }; - - public DataCenterService(IDataManager dataManager, IPluginLog log) - { - this.dataManager = dataManager; - this.log = log; - } - - public void InitializeWorldMapping() - { - try - { - ExcelSheet worldSheet = dataManager.GetExcelSheet(); - if (worldSheet == null) - { - return; - } - int worldCount = 0; - int skippedCount = 0; - foreach (World world in worldSheet) - { - if (world.RowId == 0) - { - continue; - } - string worldName = world.Name.ExtractText(); - if (string.IsNullOrEmpty(worldName)) - { - skippedCount++; - continue; - } - WorldDCGroupType? dataCenterGroup = world.DataCenter.ValueNullable; - if (!dataCenterGroup.HasValue) - { - skippedCount++; - continue; - } - string dataCenterName = dataCenterGroup.Value.Name.ExtractText(); - if (string.IsNullOrEmpty(dataCenterName)) - { - skippedCount++; - continue; - } - if (!world.IsPublic) - { - skippedCount++; - continue; - } - string region = GetRegionForDataCenter(dataCenterName); - worldToDCCache[worldName.ToLower()] = region; - worldCount++; - if (worldCount > 10) - { - _ = region != "Others"; - } - } - } - catch (Exception) - { - } - } - - private string GetRegionForDataCenter(string dataCenterName) - { - if (dataCenterToRegion.TryGetValue(dataCenterName, out string region)) - { - return region; - } - return "Others"; - } - - public string GetDataCenterForWorld(string worldName) - { - if (string.IsNullOrEmpty(worldName)) - { - return "Unknown"; - } - string key = worldName.ToLower(); - if (worldToDCCache.TryGetValue(key, out string dataCenter)) - { - return dataCenter; - } - return "Unknown"; - } - - public Dictionary> GroupCharactersByDataCenter(List characters) - { - Dictionary> grouped = new Dictionary> - { - { - "EU", - new List() - }, - { - "NA", - new List() - }, - { - "JP", - new List() - }, - { - "OCE", - new List() - }, - { - "Others", - new List() - }, - { - "Unknown", - new List() - } - }; - foreach (string character in characters) - { - try - { - string[] parts = character.Split('@'); - if (parts.Length != 2) - { - grouped["Unknown"].Add(character); - continue; - } - string worldName = parts[1]; - string dataCenter = GetDataCenterForWorld(worldName); - if (!grouped.ContainsKey(dataCenter)) - { - grouped[dataCenter] = new List(); - } - grouped[dataCenter].Add(character); - } - catch (Exception) - { - grouped["Unknown"].Add(character); - } - } - foreach (KeyValuePair> item in grouped.Where((KeyValuePair> g) => g.Value.Count > 0)) - { - _ = item; - } - return grouped; - } - - public List GetAvailableDataCenters(Dictionary> charactersByDataCenter) - { - List dataCenters = new List { "All" }; - string[] array = new string[6] { "EU", "NA", "JP", "OCE", "Others", "Unknown" }; - foreach (string dc in array) - { - if (charactersByDataCenter.TryGetValue(dc, out List chars) && chars.Count > 0) - { - dataCenters.Add(dc); - } - } - return dataCenters; - } - - public List GetCharactersForDataCenter(List allCharacters, string dataCenterName, Dictionary> charactersByDataCenter) - { - if (dataCenterName == "All") - { - return allCharacters; - } - if (charactersByDataCenter.TryGetValue(dataCenterName, out List characters)) - { - return characters; - } - return new List(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/DeathHandlerService.cs b/QuestionableCompanion/QuestionableCompanion.Services/DeathHandlerService.cs deleted file mode 100644 index 3771479..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/DeathHandlerService.cs +++ /dev/null @@ -1,252 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Game.NativeWrapper; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Component.GUI; -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace QuestionableCompanion.Services; - -public class DeathHandlerService : IDisposable -{ - private readonly ICondition condition; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private readonly Configuration config; - - private readonly IGameGui gameGui; - - private readonly IDataManager dataManager; - - private bool wasDead; - - private Vector3 deathPosition = Vector3.Zero; - - private uint deathTerritoryId; - - private DateTime deathTime = DateTime.MinValue; - - private bool hasClickedYesNo; - - private bool needsTeleportBack; - - private bool isRotationActive; - - public bool IsDead { get; private set; } - - public TimeSpan TimeSinceDeath - { - get - { - if (!IsDead || !(deathTime != DateTime.MinValue)) - { - return TimeSpan.Zero; - } - return DateTime.Now - deathTime; - } - } - - public DeathHandlerService(ICondition condition, IPluginLog log, IClientState clientState, ICommandManager commandManager, IFramework framework, Configuration config, IGameGui gameGui, IDataManager dataManager) - { - this.condition = condition; - this.log = log; - this.clientState = clientState; - this.commandManager = commandManager; - this.framework = framework; - this.config = config; - this.gameGui = gameGui; - this.dataManager = dataManager; - log.Information("[DeathHandler] Service initialized"); - } - - public void SetRotationActive(bool active) - { - isRotationActive = active; - } - - public unsafe void Update() - { - if (clientState.LocalPlayer == null || !clientState.IsLoggedIn || !config.EnableDeathHandling) - { - return; - } - IPlayerCharacter player = clientState.LocalPlayer; - uint currentHp = player.CurrentHp; - if (currentHp == 0 && !wasDead) - { - IsDead = true; - wasDead = true; - deathTime = DateTime.Now; - deathPosition = player.Position; - deathTerritoryId = clientState.TerritoryType; - hasClickedYesNo = false; - needsTeleportBack = false; - string territoryName = GetTerritoryName(deathTerritoryId); - log.Warning("[DeathHandler] ========================================"); - log.Warning("[DeathHandler] === PLAYER DIED (0% HP) ==="); - log.Warning("[DeathHandler] ========================================"); - log.Information($"[DeathHandler] Death Position: {deathPosition}"); - log.Information($"[DeathHandler] Death Territory: {territoryName} ({deathTerritoryId})"); - } - if (IsDead && !hasClickedYesNo) - { - try - { - AtkUnitBasePtr addonPtr = gameGui.GetAddonByName("SelectYesno"); - if (addonPtr != IntPtr.Zero) - { - log.Information("[DeathHandler] SelectYesNo addon detected - clicking YES"); - AtkUnitBase* addon = (AtkUnitBase*)(nint)addonPtr; - if (addon != null && addon->IsVisible) - { - AtkValue* values = stackalloc AtkValue[1]; - *values = new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 0 - }; - addon->FireCallback(1u, values); - hasClickedYesNo = true; - log.Information("[DeathHandler] ✓ SelectYesNo callback fired (YES)"); - log.Information("[DeathHandler] Waiting for respawn..."); - } - } - } - catch (Exception ex) - { - log.Error("[DeathHandler] Error clicking SelectYesNo: " + ex.Message); - } - } - if (wasDead && currentHp != 0 && !player.IsDead) - { - log.Information("[DeathHandler] ========================================"); - log.Information("[DeathHandler] === PLAYER RESPAWNED ==="); - log.Information("[DeathHandler] ========================================"); - IsDead = false; - wasDead = false; - needsTeleportBack = true; - log.Information("[DeathHandler] Preparing to teleport back to death location..."); - } - if (needsTeleportBack && !IsDead && currentHp != 0 && (DateTime.Now - deathTime).TotalSeconds >= (double)config.DeathRespawnDelay) - { - TeleportBackToDeathLocation(); - needsTeleportBack = false; - } - } - - private string GetTerritoryName(uint territoryId) - { - try - { - ExcelSheet territorySheet = dataManager.GetExcelSheet(); - if (territorySheet == null) - { - return territoryId.ToString(); - } - if (!territorySheet.HasRow(territoryId)) - { - return territoryId.ToString(); - } - RowRef placeNameRef = territorySheet.GetRow(territoryId).PlaceName; - if (placeNameRef.RowId == 0) - { - return territoryId.ToString(); - } - PlaceName? placeName = placeNameRef.ValueNullable; - if (!placeName.HasValue) - { - return territoryId.ToString(); - } - string name = placeName.Value.Name.ExtractText(); - if (!string.IsNullOrEmpty(name)) - { - return name; - } - } - catch (Exception ex) - { - log.Error("[DeathHandler] Error getting territory name: " + ex.Message); - } - return territoryId.ToString(); - } - - private void TeleportBackToDeathLocation() - { - try - { - string territoryName = GetTerritoryName(deathTerritoryId); - log.Information("[DeathHandler] ========================================"); - log.Information("[DeathHandler] === TELEPORTING BACK TO DEATH LOCATION ==="); - log.Information("[DeathHandler] ========================================"); - log.Information($"[DeathHandler] Target Territory: {territoryName} ({deathTerritoryId})"); - log.Information($"[DeathHandler] Target Position: {deathPosition}"); - if (clientState.TerritoryType == deathTerritoryId) - { - log.Information("[DeathHandler] Already in death territory - using /li to teleport to position"); - framework.RunOnFrameworkThread(delegate - { - try - { - string text = $"/li {deathPosition.X:F2}, {deathPosition.Y:F2}, {deathPosition.Z:F2}"; - commandManager.ProcessCommand(text); - log.Information("[DeathHandler] ✓ Teleport to position: " + text); - } - catch (Exception ex2) - { - log.Error("[DeathHandler] Failed to send teleport command: " + ex2.Message); - } - }).Wait(); - } - else - { - log.Information("[DeathHandler] Different territory - teleporting to death territory"); - framework.RunOnFrameworkThread(delegate - { - try - { - string text = "/li " + territoryName; - commandManager.ProcessCommand(text); - log.Information("[DeathHandler] ✓ Teleport to territory: " + text); - } - catch (Exception ex2) - { - log.Error("[DeathHandler] Failed to send teleport command: " + ex2.Message); - } - }).Wait(); - } - deathPosition = Vector3.Zero; - deathTerritoryId = 0u; - deathTime = DateTime.MinValue; - log.Information("[DeathHandler] Death handling complete"); - } - catch (Exception ex) - { - log.Error("[DeathHandler] Error during teleport: " + ex.Message); - } - } - - public void Reset() - { - IsDead = false; - wasDead = false; - needsTeleportBack = false; - hasClickedYesNo = false; - deathPosition = Vector3.Zero; - deathTerritoryId = 0u; - deathTime = DateTime.MinValue; - log.Information("[DeathHandler] State reset"); - } - - public void Dispose() - { - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/DungeonAutomationService.cs b/QuestionableCompanion/QuestionableCompanion.Services/DungeonAutomationService.cs deleted file mode 100644 index 09268a9..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/DungeonAutomationService.cs +++ /dev/null @@ -1,431 +0,0 @@ -using System; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.Group; -using Newtonsoft.Json.Linq; - -namespace QuestionableCompanion.Services; - -public class DungeonAutomationService : IDisposable -{ - private readonly ICondition condition; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private readonly IGameGui gameGui; - - private readonly Configuration config; - - private readonly HelperManager helperManager; - - private readonly MemoryHelper memoryHelper; - - private readonly QuestionableIPC questionableIPC; - - private readonly CrossProcessIPC crossProcessIPC; - - private readonly MultiClientIPC multiClientIPC; - - private bool isWaitingForParty; - - private DateTime partyInviteTime = DateTime.MinValue; - - private int inviteAttempts; - - private bool isInvitingHelpers; - - private DateTime helperInviteTime = DateTime.MinValue; - - private bool isInDuty; - - private bool hasStoppedAD; - - private DateTime dutyEntryTime = DateTime.MinValue; - - private bool pendingAutomationStop; - - private DateTime lastDutyExitTime = DateTime.MinValue; - - private DateTime lastDutyEntryTime = DateTime.MinValue; - - private bool expectingDutyEntry; - - private bool isAutomationActive; - - private int originalDutyMode; - - private Func? isRotationActiveChecker; - - private bool hasSentAtY; - - public bool IsWaitingForParty => isWaitingForParty; - - public int CurrentPartySize { get; private set; } = 1; - - public bool IsInAutoDutyDungeon => isAutomationActive; - - public void SetRotationActiveChecker(Func checker) - { - isRotationActiveChecker = checker; - } - - private bool CanExecuteAutomation() - { - if (config.IsHighLevelHelper) - { - return true; - } - if (config.IsQuester) - { - Func? func = isRotationActiveChecker; - if (func == null || !func()) - { - return false; - } - return true; - } - return false; - } - - public DungeonAutomationService(ICondition condition, IPluginLog log, IClientState clientState, ICommandManager commandManager, IFramework framework, IGameGui gameGui, Configuration config, HelperManager helperManager, MemoryHelper memoryHelper, QuestionableIPC questionableIPC, CrossProcessIPC crossProcessIPC, MultiClientIPC multiClientIPC) - { - this.condition = condition; - this.log = log; - this.clientState = clientState; - this.commandManager = commandManager; - this.framework = framework; - this.gameGui = gameGui; - this.config = config; - this.helperManager = helperManager; - this.memoryHelper = memoryHelper; - this.questionableIPC = questionableIPC; - this.crossProcessIPC = crossProcessIPC; - this.multiClientIPC = multiClientIPC; - condition.ConditionChange += OnConditionChanged; - log.Information("[DungeonAutomation] Service initialized with ConditionChange event"); - log.Information($"[DungeonAutomation] Config - Required Party Size: {config.AutoDutyPartySize}"); - log.Information($"[DungeonAutomation] Config - Party Wait Time: {config.AutoDutyMaxWaitForParty}s"); - log.Information($"[DungeonAutomation] Config - Dungeon Automation Enabled: {config.EnableAutoDutyUnsynced}"); - SetDutyModeBasedOnConfig(); - } - - public void StartDungeonAutomation() - { - if (!isAutomationActive) - { - if (!CanExecuteAutomation()) - { - log.Information("[DungeonAutomation] Start request ignored - validation failed (Check Role/Rotation)"); - return; - } - log.Information("[DungeonAutomation] ========================================"); - log.Information("[DungeonAutomation] === STARTING DUNGEON AUTOMATION ==="); - log.Information("[DungeonAutomation] ========================================"); - isAutomationActive = true; - expectingDutyEntry = true; - log.Information("[DungeonAutomation] Inviting helpers via HelperManager..."); - helperManager.InviteHelpers(); - isInvitingHelpers = true; - helperInviteTime = DateTime.Now; - inviteAttempts = 0; - } - } - - public void SetDutyModeBasedOnConfig() - { - if (config.EnableAutoDutyUnsynced) - { - questionableIPC.SetDefaultDutyMode(2); - log.Information("[DungeonAutomation] Set Duty Mode to Unsync Party (2) - Automation Enabled"); - } - else - { - questionableIPC.SetDefaultDutyMode(0); - log.Information("[DungeonAutomation] Set Duty Mode to Support (0) - Automation Disabled"); - } - } - - public void StopDungeonAutomation() - { - if (isAutomationActive) - { - log.Information("[DungeonAutomation] ========================================"); - log.Information("[DungeonAutomation] === STOPPING DUNGEON AUTOMATION ==="); - log.Information("[DungeonAutomation] ========================================"); - isAutomationActive = false; - Reset(); - } - } - - private void UpdateHelperInvite() - { - double timeSinceInvite = (DateTime.Now - helperInviteTime).TotalSeconds; - try - { - if (timeSinceInvite >= 2.0) - { - isInvitingHelpers = false; - isWaitingForParty = true; - partyInviteTime = DateTime.Now; - log.Information("[DungeonAutomation] Helper invites sent, waiting for party..."); - } - } - catch (Exception ex) - { - log.Error("[DungeonAutomation] Error in helper invite: " + ex.Message); - isInvitingHelpers = false; - } - } - - public void Update() - { - if (!CanExecuteAutomation() && !isAutomationActive) - { - return; - } - if (config.EnableAutoDutyUnsynced && !isAutomationActive) - { - CheckWaitForPartyTask(); - } - if (!hasStoppedAD && dutyEntryTime != DateTime.MinValue && (DateTime.Now - dutyEntryTime).TotalSeconds >= 1.0) - { - try - { - commandManager.ProcessCommand("/ad stop"); - log.Information("[DungeonAutomation] /ad stop (1s after duty entry)"); - hasStoppedAD = true; - dutyEntryTime = DateTime.MinValue; - } - catch (Exception ex) - { - log.Error("[DungeonAutomation] Failed to stop AD: " + ex.Message); - } - } - if (isInvitingHelpers) - { - UpdateHelperInvite(); - } - else if (pendingAutomationStop && (DateTime.Now - dutyEntryTime).TotalSeconds >= 5.0) - { - log.Information("[DungeonAutomation] 5s delay complete - stopping automation now"); - StopDungeonAutomation(); - pendingAutomationStop = false; - } - else if (isWaitingForParty) - { - UpdatePartySize(); - if (CurrentPartySize >= config.AutoDutyPartySize) - { - log.Information("[DungeonAutomation] ========================================"); - log.Information("[DungeonAutomation] === PARTY FULL ==="); - log.Information("[DungeonAutomation] ========================================"); - log.Information($"[DungeonAutomation] Party Size: {CurrentPartySize}/{config.AutoDutyPartySize}"); - isWaitingForParty = false; - partyInviteTime = DateTime.MinValue; - inviteAttempts = 0; - log.Information("[DungeonAutomation] Party full - ready for dungeon!"); - } - else if ((DateTime.Now - partyInviteTime).TotalSeconds >= (double)config.AutoDutyMaxWaitForParty) - { - log.Warning($"[DungeonAutomation] Party not full after {config.AutoDutyMaxWaitForParty}s - retrying invite (Attempt #{inviteAttempts + 1})"); - log.Information($"[DungeonAutomation] Current Party Size: {CurrentPartySize}/{config.AutoDutyPartySize}"); - log.Information("[DungeonAutomation] Retrying helper invites..."); - helperManager.InviteHelpers(); - partyInviteTime = DateTime.Now; - } - } - } - - private void CheckWaitForPartyTask() - { - if (questionableIPC.GetCurrentTask() is JObject jObject) - { - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken != null && taskNameToken.ToString() == "WaitForParty") - { - StartDungeonAutomation(); - } - } - } - - private unsafe void UpdatePartySize() - { - try - { - int partySize = 0; - GroupManager* groupManager = GroupManager.Instance(); - if (groupManager != null) - { - GroupManager.Group* group = groupManager->GetGroup(); - if (group != null) - { - partySize = group->MemberCount; - } - } - if (partySize == 0) - { - partySize = 1; - } - if (partySize != CurrentPartySize) - { - CurrentPartySize = partySize; - log.Information($"[DungeonAutomation] Party Size updated: {CurrentPartySize}/{config.AutoDutyPartySize}"); - } - } - catch (Exception ex) - { - log.Error("[DungeonAutomation] Error updating party size: " + ex.Message); - } - } - - private void OnConditionChanged(ConditionFlag flag, bool value) - { - if (flag == ConditionFlag.BoundByDuty) - { - if (value && !isInDuty) - { - isInDuty = true; - OnDutyEntered(); - } - else if (!value && isInDuty) - { - isInDuty = false; - OnDutyExited(); - } - } - } - - public void OnDutyEntered() - { - if ((DateTime.Now - lastDutyEntryTime).TotalSeconds < 5.0) - { - log.Debug("[DungeonAutomation] OnDutyEntered called too soon - ignoring spam"); - return; - } - lastDutyEntryTime = DateTime.Now; - log.Debug("[DungeonAutomation] Entered duty"); - if (!CanExecuteAutomation()) - { - log.Debug("[DungeonAutomation] OnDutyEntered ignored - validation failed"); - } - else if (expectingDutyEntry) - { - log.Information("[DungeonAutomation] Duty started by DungeonAutomation - enabling automation commands"); - expectingDutyEntry = false; - hasStoppedAD = false; - dutyEntryTime = DateTime.Now; - if (!hasSentAtY) - { - commandManager.ProcessCommand("/at y"); - log.Information("[DungeonAutomation] Sent /at y (duty entered)"); - hasSentAtY = true; - } - } - else - { - log.Information("[DungeonAutomation] Duty NOT started by DungeonAutomation (Solo Duty/Quest Battle) - skipping automation commands"); - } - } - - public void OnDutyExited() - { - if ((DateTime.Now - lastDutyExitTime).TotalSeconds < 2.0) - { - log.Debug("[DungeonAutomation] OnDutyExited called too soon - ignoring spam"); - return; - } - lastDutyExitTime = DateTime.Now; - log.Information("[DungeonAutomation] Exited duty"); - if (!CanExecuteAutomation() && !isAutomationActive) - { - log.Information("[DungeonAutomation] OnDutyExited ignored - validation failed"); - } - else if (isAutomationActive) - { - commandManager.ProcessCommand("/at n"); - log.Information("[DungeonAutomation] Sent /at n (duty exited)"); - hasSentAtY = false; - log.Information("[DungeonAutomation] Waiting 8s, then disband + restart quest"); - Task.Run(async delegate - { - await EnsureSoloPartyAsync(); - }); - StopDungeonAutomation(); - } - else - { - log.Information("[DungeonAutomation] Exited non-automated duty - no cleanup needed"); - } - } - - private async Task EnsureSoloPartyAsync() - { - TimeSpan timeout = TimeSpan.FromSeconds(60L); - DateTime start = DateTime.Now; - while (CurrentPartySize > 1 && DateTime.Now - start < timeout) - { - await framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/leave"); - }); - log.Information("[DungeonAutomation] Forced /leave sent, rechecking party size..."); - await Task.Delay(1500); - UpdatePartySize(); - } - if (CurrentPartySize > 1) - { - log.Warning("[DungeonAutomation] Still not solo after leave spam!"); - } - else - { - log.Information("[DungeonAutomation] Party reduced to solo after duty exit."); - } - } - - public void DisbandParty() - { - try - { - if (!CanExecuteAutomation()) - { - log.Information("[DungeonAutomation] DisbandParty ignored - validation failed"); - return; - } - log.Information("[DungeonAutomation] Disbanding party"); - framework.RunOnFrameworkThread(delegate - { - memoryHelper.SendChatMessage("/leave"); - log.Information("[DungeonAutomation] /leave command sent via UIModule"); - }); - } - catch (Exception ex) - { - log.Error("[DungeonAutomation] Failed to disband party: " + ex.Message); - } - } - - public void Reset() - { - isWaitingForParty = false; - partyInviteTime = DateTime.MinValue; - inviteAttempts = 0; - CurrentPartySize = 1; - isInvitingHelpers = false; - helperInviteTime = DateTime.MinValue; - isAutomationActive = false; - log.Information("[DungeonAutomation] State reset"); - } - - public void Dispose() - { - Reset(); - condition.ConditionChange -= OnConditionChanged; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/ErrorRecoveryService.cs b/QuestionableCompanion/QuestionableCompanion.Services/ErrorRecoveryService.cs deleted file mode 100644 index cc697a3..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/ErrorRecoveryService.cs +++ /dev/null @@ -1,197 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using Dalamud.Game.NativeWrapper; -using Dalamud.Hooking; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace QuestionableCompanion.Services; - -public class ErrorRecoveryService : IDisposable -{ - private delegate char LobbyErrorHandlerDelegate(long a1, long a2, long a3); - - private readonly IPluginLog log; - - private readonly IGameInteropProvider hookProvider; - - private readonly IClientState clientState; - - private readonly IFramework framework; - - private readonly IGameGui gameGui; - - private readonly AutoRetainerIPC? autoRetainerIPC; - - private Hook? lobbyErrorHandlerHook; - - private DateTime lastDialogClickTime = DateTime.MinValue; - - public bool IsErrorDisconnect { get; private set; } - - public string? LastDisconnectedCharacter { get; private set; } - - public ErrorRecoveryService(IPluginLog log, IGameInteropProvider hookProvider, IClientState clientState, IFramework framework, IGameGui gameGui, AutoRetainerIPC? autoRetainerIPC = null) - { - this.log = log; - this.hookProvider = hookProvider; - this.clientState = clientState; - this.framework = framework; - this.gameGui = gameGui; - this.autoRetainerIPC = autoRetainerIPC; - framework.Update += OnFrameworkUpdate; - InitializeHook(); - } - - private void InitializeHook() - { - try - { - lobbyErrorHandlerHook = hookProvider.HookFromSignature("40 53 48 83 EC 30 48 8B D9 49 8B C8 E8 ?? ?? ?? ?? 8B D0", LobbyErrorHandlerDetour); - if (lobbyErrorHandlerHook != null && lobbyErrorHandlerHook.Address != IntPtr.Zero) - { - lobbyErrorHandlerHook.Enable(); - } - } - catch (Exception) - { - } - } - - private char LobbyErrorHandlerDetour(long a1, long a2, long a3) - { - try - { - nint p3 = new IntPtr(a3); - byte t1 = Marshal.ReadByte(p3); - int num = (((t1 & 0xF) > 0) ? Marshal.ReadInt32(p3 + 8) : 0); - _ = 0; - if (num != 0) - { - try - { - if (autoRetainerIPC != null) - { - string currentChar = autoRetainerIPC.GetCurrentCharacter(); - if (!string.IsNullOrEmpty(currentChar)) - { - LastDisconnectedCharacter = currentChar; - } - } - } - catch (Exception) - { - } - Marshal.WriteInt64(p3 + 8, 16000L); - IsErrorDisconnect = true; - if ((t1 & 0xF) > 0) - { - Marshal.ReadInt32(p3 + 8); - } - else - _ = 0; - } - } - catch (Exception) - { - } - return lobbyErrorHandlerHook.Original(a1, a2, a3); - } - - private unsafe void OnFrameworkUpdate(IFramework framework) - { - try - { - AtkUnitBasePtr dialoguePtr = gameGui.GetAddonByName("Dialogue"); - if (dialoguePtr == IntPtr.Zero) - { - return; - } - AtkUnitBase* dialogueAddon = (AtkUnitBase*)(nint)dialoguePtr; - if (dialogueAddon == null || !dialogueAddon->IsVisible || (DateTime.Now - lastDialogClickTime).TotalMilliseconds < 1000.0) - { - return; - } - AtkTextNode* textNode = dialogueAddon->GetTextNodeById(3u); - if (textNode == null) - { - return; - } - string text = textNode->NodeText.ToString(); - if (string.IsNullOrEmpty(text) || (!text.Contains("server", StringComparison.OrdinalIgnoreCase) && !text.Contains("connection", StringComparison.OrdinalIgnoreCase) && !text.Contains("error", StringComparison.OrdinalIgnoreCase) && !text.Contains("lost", StringComparison.OrdinalIgnoreCase))) - { - return; - } - IsErrorDisconnect = true; - try - { - if (autoRetainerIPC != null) - { - string currentChar = autoRetainerIPC.GetCurrentCharacter(); - if (!string.IsNullOrEmpty(currentChar)) - { - LastDisconnectedCharacter = currentChar; - } - } - } - catch - { - } - try - { - AtkComponentButton* button = dialogueAddon->GetComponentButtonById(4u); - if (button != null) - { - AtkResNode btnRes = button->AtkComponentBase.OwnerNode->AtkResNode; - AtkEvent* evt = btnRes.AtkEventManager.Event; - dialogueAddon->ReceiveEvent(evt->State.EventType, (int)evt->Param, btnRes.AtkEventManager.Event, null); - lastDialogClickTime = DateTime.Now; - } - } - catch (Exception) - { - } - } - catch (Exception) - { - } - } - - public void Reset() - { - IsErrorDisconnect = false; - LastDisconnectedCharacter = null; - } - - public bool RequestRelog() - { - if (autoRetainerIPC == null || !autoRetainerIPC.IsAvailable) - { - log.Warning("[ErrorRecovery] AutoRetainer IPC not available - cannot relog"); - return false; - } - if (string.IsNullOrEmpty(LastDisconnectedCharacter)) - { - log.Warning("[ErrorRecovery] No character to relog to"); - return false; - } - log.Information("[ErrorRecovery] Requesting AutoRetainer relog to: " + LastDisconnectedCharacter); - return autoRetainerIPC.SwitchCharacter(LastDisconnectedCharacter); - } - - public void Dispose() - { - try - { - framework.Update -= OnFrameworkUpdate; - if (lobbyErrorHandlerHook != null) - { - lobbyErrorHandlerHook.Disable(); - lobbyErrorHandlerHook.Dispose(); - } - } - catch (Exception) - { - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestExecutionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/EventQuestExecutionService.cs deleted file mode 100644 index 4008d7f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestExecutionService.cs +++ /dev/null @@ -1,609 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text.RegularExpressions; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using Newtonsoft.Json.Linq; - -namespace QuestionableCompanion.Services; - -public class EventQuestExecutionService : IDisposable -{ - private readonly AutoRetainerIPC autoRetainerIpc; - - private readonly QuestionableIPC questionableIPC; - - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly ICommandManager commandManager; - - private readonly ICondition condition; - - private readonly Configuration configuration; - - private readonly EventQuestResolver eventQuestResolver; - - private EventQuestState currentState = new EventQuestState(); - - private Dictionary> eventQuestCompletionByCharacter = new Dictionary>(); - - private DateTime lastCheckTime = DateTime.MinValue; - - private const double CheckIntervalMs = 250.0; - - private bool isRotationActive; - - private string? lastTerritoryWaitDetected; - - private DateTime lastTerritoryTeleportTime = DateTime.MinValue; - - private Action? onDataChanged; - - public bool IsRotationActive => isRotationActive; - - public EventQuestExecutionService(AutoRetainerIPC autoRetainerIpc, QuestionableIPC questionableIPC, IPluginLog log, IFramework framework, ICommandManager commandManager, ICondition condition, Configuration configuration, IDataManager dataManager, Action? onDataChanged = null) - { - this.autoRetainerIpc = autoRetainerIpc; - this.questionableIPC = questionableIPC; - this.log = log; - this.framework = framework; - this.commandManager = commandManager; - this.condition = condition; - this.configuration = configuration; - this.onDataChanged = onDataChanged; - eventQuestResolver = new EventQuestResolver(dataManager, log); - framework.Update += OnFrameworkUpdate; - log.Information("[EventQuest] Service initialized"); - } - - public bool StartEventQuestRotation(string eventQuestId, List characters) - { - if (characters == null || characters.Count == 0) - { - log.Error("[EventQuest] Cannot start rotation: No characters selected"); - return false; - } - if (string.IsNullOrEmpty(eventQuestId)) - { - log.Error("[EventQuest] Cannot start rotation: Event Quest ID is empty"); - return false; - } - List dependencies = eventQuestResolver.ResolveEventQuestDependencies(eventQuestId); - List remainingChars = new List(); - List completedChars = new List(); - foreach (string character in characters) - { - if (HasCharacterCompletedEventQuest(eventQuestId, character)) - { - completedChars.Add(character); - log.Debug("[EventQuest] " + character + " already completed event quest " + eventQuestId); - } - else - { - remainingChars.Add(character); - log.Debug("[EventQuest] " + character + " needs to complete event quest " + eventQuestId); - } - } - if (remainingChars.Count == 0) - { - log.Information("[EventQuest] All characters have already completed event quest " + eventQuestId); - return false; - } - string currentLoggedInChar = autoRetainerIpc.GetCurrentCharacter(); - bool isAlreadyLoggedIn = !string.IsNullOrEmpty(currentLoggedInChar) && remainingChars.Contains(currentLoggedInChar); - currentState = new EventQuestState - { - EventQuestId = eventQuestId, - EventQuestName = eventQuestResolver.GetQuestName(eventQuestId), - SelectedCharacters = new List(characters), - RemainingCharacters = remainingChars, - CompletedCharacters = completedChars, - DependencyQuests = dependencies, - Phase = ((!isAlreadyLoggedIn) ? EventQuestPhase.InitializingFirstCharacter : EventQuestPhase.CheckingQuestCompletion), - CurrentCharacter = (isAlreadyLoggedIn ? currentLoggedInChar : ""), - PhaseStartTime = DateTime.Now, - RotationStartTime = DateTime.Now - }; - isRotationActive = true; - log.Information("[EventQuest] ═══ Starting Event Quest Rotation ═══"); - log.Information($"[EventQuest] Event Quest: {currentState.EventQuestName} ({eventQuestId})"); - log.Information($"[EventQuest] Total Characters: {characters.Count}"); - log.Information($"[EventQuest] Remaining: {remainingChars.Count} | Completed: {completedChars.Count}"); - log.Information($"[EventQuest] Dependencies to resolve: {dependencies.Count}"); - if (dependencies.Count > 0) - { - log.Information("[EventQuest] Prerequisites: " + string.Join(", ", dependencies.Select((string id) => eventQuestResolver.GetQuestName(id)))); - } - if (isAlreadyLoggedIn) - { - log.Information("[EventQuest] User already logged in as " + currentLoggedInChar + " - starting immediately"); - } - return true; - } - - public EventQuestState GetCurrentState() - { - return currentState; - } - - public void LoadEventQuestCompletionData(Dictionary> data) - { - if (data != null && data.Count > 0) - { - eventQuestCompletionByCharacter = new Dictionary>(data); - log.Information($"[EventQuest] Loaded completion data for {data.Count} event quests"); - } - } - - public Dictionary> GetEventQuestCompletionData() - { - return new Dictionary>(eventQuestCompletionByCharacter); - } - - public void AbortRotation() - { - log.Information("[EventQuest] Aborting Event Quest rotation"); - currentState = new EventQuestState - { - Phase = EventQuestPhase.Idle - }; - isRotationActive = false; - } - - private void MarkEventQuestCompleted(string eventQuestId, string characterName) - { - if (!eventQuestCompletionByCharacter.ContainsKey(eventQuestId)) - { - eventQuestCompletionByCharacter[eventQuestId] = new List(); - } - if (!eventQuestCompletionByCharacter[eventQuestId].Contains(characterName)) - { - eventQuestCompletionByCharacter[eventQuestId].Add(characterName); - log.Debug("[EventQuest] Marked " + characterName + " as completed event quest " + eventQuestId); - onDataChanged?.Invoke(); - } - } - - private bool HasCharacterCompletedEventQuest(string eventQuestId, string characterName) - { - if (eventQuestCompletionByCharacter.TryGetValue(eventQuestId, out List characters)) - { - return characters.Contains(characterName); - } - return false; - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (!isRotationActive) - { - return; - } - DateTime now = DateTime.Now; - if (!((now - lastCheckTime).TotalMilliseconds < 250.0)) - { - lastCheckTime = now; - CheckForTerritoryWait(); - switch (currentState.Phase) - { - case EventQuestPhase.InitializingFirstCharacter: - HandleInitializingFirstCharacter(); - break; - case EventQuestPhase.WaitingForCharacterLogin: - HandleWaitingForCharacterLogin(); - break; - case EventQuestPhase.CheckingQuestCompletion: - HandleCheckingQuestCompletion(); - break; - case EventQuestPhase.ResolvingDependencies: - HandleResolvingDependencies(); - break; - case EventQuestPhase.ExecutingDependencies: - HandleExecutingDependencies(); - break; - case EventQuestPhase.WaitingForQuestStart: - case EventQuestPhase.QuestActive: - HandleQuestMonitoring(); - break; - case EventQuestPhase.WaitingBeforeCharacterSwitch: - HandleWaitingBeforeCharacterSwitch(); - break; - case EventQuestPhase.Completed: - HandleCompleted(); - break; - } - } - } - - private void CheckForTerritoryWait() - { - if (!questionableIPC.IsRunning()) - { - return; - } - object task = questionableIPC.GetCurrentTask(); - if (task == null) - { - return; - } - try - { - if (!(task is JObject jObject)) - { - return; - } - JToken taskNameToken = jObject["TaskName"]; - if (taskNameToken == null) - { - return; - } - string taskName = taskNameToken.ToString(); - if (string.IsNullOrEmpty(taskName)) - { - return; - } - Match waitTerritoryMatch = new Regex("Wait\\(territory:\\s*(.+?)\\s*\\((\\d+)\\)\\)").Match(taskName); - if (!waitTerritoryMatch.Success) - { - return; - } - string territoryName = waitTerritoryMatch.Groups[1].Value.Trim(); - uint territoryId = uint.Parse(waitTerritoryMatch.Groups[2].Value); - string territoryKey = $"{territoryName}_{territoryId}"; - double timeSinceLastTeleport = (DateTime.Now - lastTerritoryTeleportTime).TotalSeconds; - if (lastTerritoryWaitDetected == territoryKey && timeSinceLastTeleport < 60.0) - { - return; - } - log.Information($"[EventQuest] Wait(territory) detected: {territoryName} (ID: {territoryId})"); - log.Information("[EventQuest] Auto-teleporting via Lifestream..."); - lastTerritoryWaitDetected = territoryKey; - lastTerritoryTeleportTime = DateTime.Now; - framework.RunOnFrameworkThread(delegate - { - try - { - string text = "/li " + territoryName; - commandManager.ProcessCommand(text); - log.Information("[EventQuest] Sent teleport command: " + text); - } - catch (Exception ex2) - { - log.Error("[EventQuest] Failed to teleport to " + territoryName + ": " + ex2.Message); - } - }); - } - catch (Exception ex) - { - log.Error("[EventQuest] Error checking Wait(territory) task: " + ex.Message); - } - } - - private void HandleInitializingFirstCharacter() - { - if (currentState.RemainingCharacters.Count == 0) - { - log.Information("[EventQuest] No remaining characters - rotation complete"); - currentState.Phase = EventQuestPhase.Completed; - isRotationActive = false; - return; - } - string firstChar = currentState.RemainingCharacters[0]; - currentState.CurrentCharacter = firstChar; - log.Information("[EventQuest] >>> Initializing first character: " + firstChar); - if (autoRetainerIpc.SwitchCharacter(firstChar)) - { - currentState.Phase = EventQuestPhase.WaitingForCharacterLogin; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[EventQuest] Character switch initiated to " + firstChar); - } - else - { - log.Error("[EventQuest] Failed to switch to " + firstChar); - currentState.Phase = EventQuestPhase.Error; - currentState.ErrorMessage = "Failed to switch to " + firstChar; - } - } - - private void HandleWaitingForCharacterLogin() - { - if ((DateTime.Now - currentState.PhaseStartTime).TotalSeconds > 60.0) - { - log.Error("[EventQuest] Login timeout for " + currentState.CurrentCharacter); - SkipToNextCharacter(); - return; - } - string currentLoggedInChar = autoRetainerIpc.GetCurrentCharacter(); - if (!string.IsNullOrEmpty(currentLoggedInChar) && currentLoggedInChar == currentState.CurrentCharacter && !((DateTime.Now - currentState.PhaseStartTime).TotalSeconds < 5.0)) - { - log.Information("[EventQuest] Successfully logged in as " + currentLoggedInChar); - currentState.Phase = EventQuestPhase.CheckingQuestCompletion; - currentState.PhaseStartTime = DateTime.Now; - } - } - - private void HandleCheckingQuestCompletion() - { - string eventQuestId = currentState.EventQuestId; - string rawId = QuestIdParser.ParseQuestId(eventQuestId).rawId; - QuestIdType questType = QuestIdParser.ClassifyQuestId(eventQuestId); - log.Debug($"[EventQuest] Checking completion for {eventQuestId} (Type: {questType}, RawId: {rawId})"); - if (!uint.TryParse(rawId, out var questIdUint)) - { - log.Error($"[EventQuest] Invalid quest ID: {eventQuestId} (cannot parse numeric part: {rawId})"); - SkipToNextCharacter(); - return; - } - bool isQuestComplete = false; - try - { - isQuestComplete = QuestManager.IsQuestComplete(questIdUint); - } - catch (Exception ex) - { - log.Error("[EventQuest] Error checking quest completion: " + ex.Message); - } - if (isQuestComplete) - { - log.Information("[EventQuest] " + currentState.CurrentCharacter + " already completed event quest " + eventQuestId); - List completedList = currentState.CompletedCharacters; - if (!completedList.Contains(currentState.CurrentCharacter)) - { - completedList.Add(currentState.CurrentCharacter); - currentState.CompletedCharacters = completedList; - } - MarkEventQuestCompleted(eventQuestId, currentState.CurrentCharacter); - SkipToNextCharacter(); - } - else - { - log.Information("[EventQuest] " + currentState.CurrentCharacter + " needs to complete event quest " + eventQuestId); - log.Information($"[EventQuest] >>> Starting event quest with {currentState.DependencyQuests.Count} prerequisites"); - StartEventQuest(); - } - } - - private void HandleResolvingDependencies() - { - log.Information("[EventQuest] All prerequisites completed - starting event quest"); - StartEventQuest(); - } - - private void HandleExecutingDependencies() - { - string depQuestId = currentState.CurrentExecutingQuest; - if (!uint.TryParse(depQuestId, out var questIdUint)) - { - log.Error("[EventQuest] Invalid dependency quest ID: " + depQuestId); - currentState.DependencyIndex++; - currentState.Phase = EventQuestPhase.ResolvingDependencies; - return; - } - bool isDependencyComplete = false; - try - { - isDependencyComplete = QuestManager.IsQuestComplete(questIdUint); - } - catch - { - } - if (isDependencyComplete) - { - log.Information("[EventQuest] Dependency " + eventQuestResolver.GetQuestName(depQuestId) + " already completed"); - currentState.DependencyIndex++; - currentState.Phase = EventQuestPhase.ResolvingDependencies; - return; - } - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[EventQuest] Started dependency quest: " + eventQuestResolver.GetQuestName(depQuestId)); - } - catch (Exception ex) - { - log.Error("[EventQuest] Failed to start dependency: " + ex.Message); - } - currentState.Phase = EventQuestPhase.QuestActive; - currentState.HasEventQuestBeenAccepted = false; - currentState.PhaseStartTime = DateTime.Now; - } - - private void HandleQuestMonitoring() - { - string eventQuestId = currentState.EventQuestId; - try - { - if (questionableIPC.IsQuestComplete(eventQuestId)) - { - log.Information("[EventQuest] Event quest " + eventQuestId + " completed by " + currentState.CurrentCharacter); - MarkEventQuestCompleted(currentState.EventQuestId, currentState.CurrentCharacter); - List completedList = currentState.CompletedCharacters; - if (!completedList.Contains(currentState.CurrentCharacter)) - { - completedList.Add(currentState.CurrentCharacter); - currentState.CompletedCharacters = completedList; - } - try - { - commandManager.ProcessCommand("/qst stop"); - log.Information("[EventQuest] Sent /qst stop"); - } - catch - { - } - currentState.Phase = EventQuestPhase.WaitingBeforeCharacterSwitch; - currentState.PhaseStartTime = DateTime.Now; - } - } - catch (Exception ex) - { - log.Error("[EventQuest] Error checking quest completion via IPC: " + ex.Message); - } - } - - private void HandleWaitingBeforeCharacterSwitch() - { - if (!condition[ConditionFlag.BetweenAreas] && (DateTime.Now - currentState.PhaseStartTime).TotalSeconds >= 2.0) - { - PerformCharacterSwitch(); - } - } - - private void HandleCompleted() - { - log.Information("[EventQuest] ═══ EVENT QUEST ROTATION COMPLETED ═══"); - log.Information($"[EventQuest] All {currentState.CompletedCharacters.Count} characters completed the event quest"); - if (questionableIPC.IsAvailable) - { - try - { - questionableIPC.ClearQuestPriority(); - log.Information("[EventQuest] Cleared quest priority queue after completion"); - } - catch (Exception ex) - { - log.Warning("[EventQuest] Failed to clear quest priority: " + ex.Message); - } - } - isRotationActive = false; - currentState.Phase = EventQuestPhase.Idle; - } - - private void StartEventQuest() - { - List allQuests = new List(); - if (currentState.DependencyQuests.Count > 0) - { - foreach (string dep in currentState.DependencyQuests) - { - allQuests.Add(dep); - QuestIdType questType = QuestIdParser.ClassifyQuestId(dep); - log.Information($"[EventQuest] Adding dependency: {dep} (Type: {questType})"); - } - } - string mainQuestId = currentState.EventQuestId; - allQuests.Add(mainQuestId); - QuestIdType mainQuestType = QuestIdParser.ClassifyQuestId(mainQuestId); - log.Information($"[EventQuest] Adding main event quest: {mainQuestId} (Type: {mainQuestType})"); - log.Information($"[EventQuest] Setting {allQuests.Count} quests as Questionable priority"); - if (questionableIPC.IsAvailable) - { - try - { - questionableIPC.ClearQuestPriority(); - log.Information("[EventQuest] Cleared existing quest priority queue"); - } - catch (Exception ex) - { - log.Warning("[EventQuest] Failed to clear quest priority: " + ex.Message); - } - foreach (string questId in allQuests) - { - try - { - bool result = questionableIPC.AddQuestPriority(questId); - log.Information($"[EventQuest] Added quest {questId} to priority: {result}"); - } - catch (Exception ex2) - { - log.Warning("[EventQuest] Failed to add quest " + questId + " to priority: " + ex2.Message); - } - } - } - else - { - log.Warning("[EventQuest] Questionable IPC not available - cannot set priority"); - } - if (condition[ConditionFlag.BetweenAreas]) - { - log.Debug("[EventQuest] Character is between areas - waiting before starting quest"); - return; - } - if (questionableIPC.IsAvailable && questionableIPC.IsRunning()) - { - log.Debug("[EventQuest] Questionable is busy - waiting before starting quest"); - return; - } - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[EventQuest] Sent /qst start for event quest"); - currentState.Phase = EventQuestPhase.QuestActive; - currentState.CurrentExecutingQuest = currentState.EventQuestId; - currentState.HasEventQuestBeenAccepted = false; - currentState.PhaseStartTime = DateTime.Now; - } - catch (Exception ex3) - { - log.Error("[EventQuest] Failed to start quest: " + ex3.Message); - } - } - - private void SkipToNextCharacter() - { - try - { - commandManager.ProcessCommand("/qst stop"); - log.Information("[EventQuest] Sent /qst stop before character switch"); - } - catch - { - } - List remainingList = currentState.RemainingCharacters; - List completedList = currentState.CompletedCharacters; - if (remainingList.Contains(currentState.CurrentCharacter)) - { - remainingList.Remove(currentState.CurrentCharacter); - currentState.RemainingCharacters = remainingList; - } - if (!completedList.Contains(currentState.CurrentCharacter)) - { - completedList.Add(currentState.CurrentCharacter); - currentState.CompletedCharacters = completedList; - log.Information("[EventQuest] Character " + currentState.CurrentCharacter + " marked as completed (skipped)"); - } - currentState.Phase = EventQuestPhase.WaitingBeforeCharacterSwitch; - currentState.PhaseStartTime = DateTime.Now; - } - - private void PerformCharacterSwitch() - { - List remainingList = currentState.RemainingCharacters; - if (remainingList.Contains(currentState.CurrentCharacter)) - { - remainingList.Remove(currentState.CurrentCharacter); - currentState.RemainingCharacters = remainingList; - } - if (currentState.RemainingCharacters.Count == 0) - { - currentState.Phase = EventQuestPhase.Completed; - return; - } - string nextChar = currentState.RemainingCharacters[0]; - currentState.CurrentCharacter = nextChar; - currentState.NextCharacter = nextChar; - log.Information("[EventQuest] Switching to next character: " + nextChar); - log.Information($"[EventQuest] Progress: {currentState.CompletedCharacters.Count}/{currentState.SelectedCharacters.Count} completed"); - if (autoRetainerIpc.SwitchCharacter(nextChar)) - { - currentState.Phase = EventQuestPhase.WaitingForCharacterLogin; - currentState.PhaseStartTime = DateTime.Now; - } - else - { - log.Error("[EventQuest] Failed to switch to " + nextChar); - currentState.Phase = EventQuestPhase.Error; - currentState.ErrorMessage = "Failed to switch character"; - } - } - - public void Dispose() - { - framework.Update -= OnFrameworkUpdate; - log.Information("[EventQuest] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestPhase.cs b/QuestionableCompanion/QuestionableCompanion.Services/EventQuestPhase.cs deleted file mode 100644 index 735a2d7..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestPhase.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace QuestionableCompanion.Services; - -public enum EventQuestPhase -{ - Idle, - InitializingFirstCharacter, - WaitingForCharacterLogin, - CheckingQuestCompletion, - ResolvingDependencies, - ExecutingDependencies, - WaitingForQuestStart, - QuestActive, - WaitingBeforeCharacterSwitch, - Completed, - Error -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestResolver.cs b/QuestionableCompanion/QuestionableCompanion.Services/EventQuestResolver.cs deleted file mode 100644 index 21824fd..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestResolver.cs +++ /dev/null @@ -1,230 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Plugin.Services; -using Lumina.Excel; -using Lumina.Excel.Sheets; - -namespace QuestionableCompanion.Services; - -public class EventQuestResolver -{ - private readonly IDataManager dataManager; - - private readonly IPluginLog log; - - public EventQuestResolver(IDataManager dataManager, IPluginLog log) - { - this.dataManager = dataManager; - this.log = log; - } - - public List ResolveEventQuestDependencies(string eventQuestId) - { - List dependencies = new List(); - ExcelSheet questSheet = dataManager.GetExcelSheet(); - log.Information("[EventQuestResolver] Searching for quest with ID string: '" + eventQuestId + "'"); - Quest? foundQuest = null; - foreach (Quest q in questSheet) - { - if (q.RowId != 0) - { - string questIdField = q.Id.ExtractText(); - if (questIdField == eventQuestId || questIdField.EndsWith("_" + eventQuestId) || questIdField.EndsWith("_" + eventQuestId.PadLeft(5, '0'))) - { - foundQuest = q; - log.Information($"[EventQuestResolver] Found quest by ID field: '{questIdField}' (searched for '{eventQuestId}')"); - break; - } - } - } - if (!foundQuest.HasValue || foundQuest.Value.RowId == 0) - { - log.Error("[EventQuestResolver] Quest with ID '" + eventQuestId + "' not found in Lumina"); - return dependencies; - } - Quest quest = foundQuest.Value; - string questName = quest.Name.ExtractText(); - log.Information($"[EventQuestResolver] Found quest: RowId={quest.RowId}, Name='{questName}', ID='{quest.Id.ExtractText()}'"); - try - { - foreach (RowRef prevQuestRef in quest.PreviousQuest) - { - if (prevQuestRef.RowId == 0) - { - continue; - } - Quest prevQuest = questSheet.GetRow(prevQuestRef.RowId); - if (prevQuest.RowId != 0) - { - string prevQuestName = prevQuest.Name.ExtractText(); - string prevQuestIdString = prevQuest.Id.ExtractText(); - string[] idParts = prevQuestIdString.Split('_'); - string questIdNumber = ((idParts.Length > 1) ? idParts[1].TrimStart('0') : prevQuestIdString); - if (string.IsNullOrEmpty(questIdNumber)) - { - questIdNumber = "0"; - } - dependencies.Add(questIdNumber); - log.Information($"[EventQuestResolver] Found previous quest: RowId={prevQuestRef.RowId}, Name='{prevQuestName}', ID='{prevQuestIdString}' -> '{questIdNumber}'"); - } - } - } - catch (Exception ex) - { - log.Warning("[EventQuestResolver] Error reading PreviousQuest: " + ex.Message); - } - try - { - foreach (RowRef questLockRef in quest.QuestLock) - { - if (questLockRef.RowId == 0) - { - continue; - } - Quest lockQuest = questSheet.GetRow(questLockRef.RowId); - if (lockQuest.RowId != 0) - { - string lockQuestIdString = lockQuest.Id.ExtractText(); - string[] idParts2 = lockQuestIdString.Split('_'); - string questIdNumber2 = ((idParts2.Length > 1) ? idParts2[1].TrimStart('0') : lockQuestIdString); - if (string.IsNullOrEmpty(questIdNumber2)) - { - questIdNumber2 = "0"; - } - dependencies.Add(questIdNumber2); - log.Information($"[EventQuestResolver] Found quest lock: RowId={questLockRef.RowId}, ID='{lockQuestIdString}' -> '{questIdNumber2}'"); - } - } - } - catch (Exception ex2) - { - log.Warning("[EventQuestResolver] Error reading QuestLock: " + ex2.Message); - } - dependencies = dependencies.Distinct().ToList(); - log.Information($"[EventQuestResolver] Found {dependencies.Count} direct prerequisites"); - if (dependencies.Count > 0) - { - log.Information("[EventQuestResolver] Event Quest " + eventQuestId + " requires: " + string.Join(", ", dependencies)); - } - else - { - log.Information("[EventQuestResolver] Event Quest " + eventQuestId + " has no prerequisites"); - } - return dependencies; - } - - public bool IsValidQuest(string questId, out string classification) - { - string rawId = QuestIdParser.ParseQuestId(questId).rawId; - if (QuestIdParser.ClassifyQuestId(questId) == QuestIdType.EventQuest) - { - classification = "EventQuest"; - log.Debug("[EventQuestResolver] Quest " + questId + " recognized as Event Quest (prefix detected)"); - return true; - } - if (!uint.TryParse(rawId, out var questIdUint)) - { - classification = "Invalid"; - return false; - } - try - { - Quest quest = dataManager.GetExcelSheet().GetRow(questIdUint); - if (quest.RowId != 0) - { - classification = "Standard"; - log.Debug($"[EventQuestResolver] Quest {questId} found in Excel Sheet (RowId: {quest.RowId})"); - return true; - } - classification = "NotFound"; - return false; - } - catch (Exception ex) - { - log.Debug("[EventQuestResolver] Error checking quest availability: " + ex.Message); - classification = "Error"; - return false; - } - } - - public bool IsQuestAvailable(string questId) - { - string classification; - return IsValidQuest(questId, out classification); - } - - public string GetQuestName(string questId) - { - string rawId = QuestIdParser.ParseQuestId(questId).rawId; - QuestIdType questType = QuestIdParser.ClassifyQuestId(questId); - if (!uint.TryParse(rawId, out var questIdUint)) - { - if (questType == QuestIdType.EventQuest) - { - return "Event Quest " + questId; - } - return "Unknown Quest (" + questId + ")"; - } - try - { - Quest quest = dataManager.GetExcelSheet().GetRow(questIdUint); - if (quest.RowId != 0) - { - string name = quest.Name.ExtractText(); - if (!string.IsNullOrEmpty(name)) - { - if (questType == QuestIdType.EventQuest) - { - return name + " (" + questId + ")"; - } - return name; - } - } - if (questType == QuestIdType.EventQuest) - { - return "Event Quest " + questId; - } - return "Quest " + questId; - } - catch (Exception) - { - if (questType == QuestIdType.EventQuest) - { - return "Event Quest " + questId; - } - return "Quest " + questId; - } - } - - public List<(string QuestId, string QuestName)> GetAvailableEventQuests() - { - List<(string, string)> eventQuests = new List<(string, string)>(); - try - { - ExcelSheet questSheet = dataManager.GetExcelSheet(); - if (questSheet == null) - { - log.Error("[EventQuestResolver] Failed to load Quest sheet"); - return eventQuests; - } - foreach (Quest quest in questSheet) - { - if (quest.RowId != 0 && quest.JournalGenre.RowId == 9) - { - string questName = quest.Name.ExtractText(); - if (!string.IsNullOrEmpty(questName)) - { - eventQuests.Add((quest.RowId.ToString(), questName)); - } - } - } - log.Information($"[EventQuestResolver] Found {eventQuests.Count} event quests"); - } - catch (Exception ex) - { - log.Error("[EventQuestResolver] Error getting event quests: " + ex.Message); - } - return eventQuests.OrderBy(((string, string) q) => q.Item2).ToList(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestState.cs b/QuestionableCompanion/QuestionableCompanion.Services/EventQuestState.cs deleted file mode 100644 index a27c5f7..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/EventQuestState.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace QuestionableCompanion.Services; - -public class EventQuestState -{ - public EventQuestPhase Phase { get; set; } - - public string EventQuestId { get; set; } = string.Empty; - - public string EventQuestName { get; set; } = string.Empty; - - public List SelectedCharacters { get; set; } = new List(); - - public List RemainingCharacters { get; set; } = new List(); - - public List CompletedCharacters { get; set; } = new List(); - - public string CurrentCharacter { get; set; } = string.Empty; - - public string NextCharacter { get; set; } = string.Empty; - - public List DependencyQuests { get; set; } = new List(); - - public string CurrentExecutingQuest { get; set; } = string.Empty; - - public int DependencyIndex { get; set; } - - public DateTime PhaseStartTime { get; set; } = DateTime.Now; - - public DateTime RotationStartTime { get; set; } = DateTime.Now; - - public string ErrorMessage { get; set; } = string.Empty; - - public bool HasEventQuestBeenAccepted { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/ExecutionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/ExecutionService.cs deleted file mode 100644 index f2a6940..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/ExecutionService.cs +++ /dev/null @@ -1,662 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Dalamud.Game.NativeWrapper; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.UI; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class ExecutionService : IDisposable -{ - private readonly IPluginLog log; - - private readonly Configuration config; - - private readonly QuestionableIPC questionableIPC; - - private readonly AutoRetainerIPC autoRetainerIPC; - - private readonly QuestDetectionService questDetection; - - private readonly IClientState clientState; - - private readonly IGameGui gameGui; - - private readonly IFramework framework; - - private CharacterSafeWaitService? safeWaitService; - - private QuestPreCheckService? preCheckService; - - private DCTravelService? dcTravelService; - - private int currentCharacterIndex; - - private readonly HashSet completedCharacters = new HashSet(); - - private readonly HashSet failedCharacters = new HashSet(); - - private bool waitingForRelog; - - private string targetRelogCharacter = string.Empty; - - private DateTime relogStartTime = DateTime.MinValue; - - private bool wasLoggedOutDuringRelog; - - public ExecutionState CurrentState { get; private set; } = new ExecutionState(); - - public bool IsRunning { get; private set; } - - public bool IsPaused { get; private set; } - - public List Logs { get; } = new List(); - - public event Action? LogAdded; - - public event Action? StateChanged; - - public ExecutionService(IPluginLog log, Configuration config, QuestionableIPC questionableIPC, AutoRetainerIPC autoRetainerIPC, QuestDetectionService questDetection, IClientState clientState, IGameGui gameGui, IFramework framework) - { - this.log = log; - this.config = config; - this.questionableIPC = questionableIPC; - this.autoRetainerIPC = autoRetainerIPC; - this.questDetection = questDetection; - this.clientState = clientState; - this.gameGui = gameGui; - this.framework = framework; - questDetection.QuestAccepted += OnQuestAccepted; - questDetection.QuestCompleted += OnQuestCompleted; - framework.Update += OnFrameworkUpdate; - AddLog(LogLevel.Info, "Execution service initialized"); - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (!waitingForRelog) - { - return; - } - try - { - if ((DateTime.Now - relogStartTime).TotalSeconds > 60.0) - { - AddLog(LogLevel.Warning, "Relog timeout - moving to next character"); - waitingForRelog = false; - failedCharacters.Add(targetRelogCharacter); - SwitchToNextCharacter(); - } - else if (!clientState.IsLoggedIn) - { - if (!wasLoggedOutDuringRelog) - { - AddLog(LogLevel.Info, "[ExecutionService] Character logged out, waiting for relog..."); - wasLoggedOutDuringRelog = true; - } - } - else - { - if (!clientState.IsLoggedIn || clientState.LocalPlayer == null || !IsNamePlateReady()) - { - return; - } - string currentChar = autoRetainerIPC.GetCurrentCharacter(); - if (string.IsNullOrEmpty(currentChar) || !(currentChar == targetRelogCharacter)) - { - return; - } - AddLog(LogLevel.Success, "[ExecutionService] Relog confirmed: " + currentChar); - AddLog(LogLevel.Info, "[ExecutionService] NamePlate ready, character fully loaded"); - if (config.EnableSafeWaitAfterCharacterSwitch && safeWaitService != null) - { - AddLog(LogLevel.Info, "[SafeWait] Stabilizing after character switch..."); - safeWaitService.PerformQuickSafeWait(); - AddLog(LogLevel.Info, "[SafeWait] Post-switch stabilization complete"); - } - if (config.EnableQuestPreCheck && preCheckService != null) - { - AddLog(LogLevel.Info, "[PreCheck] Scanning quest status for current character..."); - preCheckService.ScanCurrentCharacterQuestStatus(); - } - waitingForRelog = false; - CurrentState.CurrentCharacter = currentChar; - questDetection.ResetTracking(); - AddLog(LogLevel.Info, "[ExecutionService] Refreshing quest cache..."); - questDetection.RefreshQuestCache(); - NotifyStateChanged(); - if (dcTravelService != null && dcTravelService.ShouldPerformDCTravel()) - { - AddLog(LogLevel.Warning, "[DCTravel] DC Travel required for this character!"); - AddLog(LogLevel.Info, "[DCTravel] Initiating DC travel before quest execution..."); - Task.Run(async delegate - { - try - { - if (await dcTravelService.PerformDCTravel()) - { - AddLog(LogLevel.Success, "[DCTravel] DC travel completed - starting quests"); - ExecuteQuestsForCurrentCharacter(); - } - else - { - AddLog(LogLevel.Error, "[DCTravel] DC travel failed - switching character"); - SwitchToNextCharacter(); - } - } - catch (Exception ex2) - { - AddLog(LogLevel.Error, "[DCTravel] Error: " + ex2.Message); - SwitchToNextCharacter(); - } - }); - } - else - { - ExecuteQuestsForCurrentCharacter(); - } - } - } - catch (Exception ex) - { - log.Error("[ExecutionService] Error in relog monitoring: " + ex.Message); - } - } - - public bool Start() - { - QuestProfile profile = config.GetActiveProfile(); - if (profile == null) - { - AddLog(LogLevel.Error, "No active profile selected"); - return false; - } - if (profile.Characters.Count == 0) - { - AddLog(LogLevel.Error, "No characters configured in profile"); - return false; - } - IsRunning = true; - IsPaused = false; - CurrentState.ActiveProfile = profile.Name; - CurrentState.Status = ExecutionStatus.Running; - AddLog(LogLevel.Success, "Started profile: " + profile.Name); - AddLog(LogLevel.Info, $"Characters in rotation: {profile.Characters.Count}"); - currentCharacterIndex = 0; - SwitchToCharacter(profile.Characters[0]); - NotifyStateChanged(); - return true; - } - - public void Stop() - { - IsRunning = false; - IsPaused = false; - waitingForRelog = false; - if (questionableIPC.IsRunning()) - { - questionableIPC.Stop(); - } - CurrentState.Status = ExecutionStatus.Idle; - CurrentState.CurrentQuestId = 0u; - CurrentState.CurrentQuestName = string.Empty; - CurrentState.CurrentSequence = string.Empty; - AddLog(LogLevel.Info, "Execution stopped"); - NotifyStateChanged(); - } - - public void Pause() - { - IsPaused = true; - questionableIPC.Stop(); - CurrentState.Status = ExecutionStatus.Waiting; - AddLog(LogLevel.Warning, "Execution paused"); - NotifyStateChanged(); - } - - public void Resume() - { - IsPaused = false; - CurrentState.Status = ExecutionStatus.Running; - AddLog(LogLevel.Info, "Execution resumed"); - NotifyStateChanged(); - } - - private void OnQuestAccepted(uint questId, string questName) - { - if (!IsRunning || IsPaused) - { - AddLog(LogLevel.Debug, $"Quest {questId} accepted but execution not running"); - return; - } - QuestProfile profile = config.GetActiveProfile(); - if (profile == null) - { - AddLog(LogLevel.Warning, "No active profile found"); - return; - } - QuestConfig questConfig = profile.Quests.FirstOrDefault((QuestConfig q) => q.QuestId == questId && q.TriggerType == TriggerType.OnAccept); - if (questConfig != null) - { - AddLog(LogLevel.Success, $"Quest accepted trigger matched: {questName} (ID: {questId})"); - ExecuteSequence(questConfig); - } - else - { - AddLog(LogLevel.Info, $"Quest {questId} ({questName}) accepted but no OnAccept trigger configured"); - AddLog(LogLevel.Info, "Add this quest to your profile with TriggerType=OnAccept to auto-execute"); - } - } - - private void OnQuestCompleted(uint questId, string questName) - { - if (!IsRunning || IsPaused) - { - return; - } - QuestProfile profile = config.GetActiveProfile(); - if (profile != null) - { - QuestConfig questConfig = profile.Quests.FirstOrDefault((QuestConfig q) => q.QuestId == questId && q.TriggerType == TriggerType.OnComplete); - if (questConfig != null) - { - AddLog(LogLevel.Success, "Quest completed trigger matched: " + questName); - ExecuteSequence(questConfig); - } - } - } - - private async void ExecuteSequence(QuestConfig questConfig) - { - CurrentState.CurrentQuestId = questConfig.QuestId; - CurrentState.CurrentQuestName = questConfig.QuestName; - CurrentState.CurrentSequence = questConfig.SequenceAfterQuest.Value; - CurrentState.Status = ExecutionStatus.Running; - NotifyStateChanged(); - if (config.EnableDryRun) - { - AddLog(LogLevel.Debug, "[DRY RUN] Would execute sequence: " + questConfig.SequenceAfterQuest.Value); - await Task.Delay(2000); - OnSequenceComplete(questConfig); - return; - } - switch (questConfig.SequenceAfterQuest.Type) - { - case SequenceType.QuestionableProfile: - await ExecuteQuestionableProfile(questConfig); - break; - case SequenceType.InternalAction: - await ExecuteInternalAction(questConfig); - break; - } - } - - private async Task ExecuteQuestionableProfile(QuestConfig questConfig) - { - AddLog(LogLevel.Info, $"Monitoring Quest {questConfig.QuestId} for completion..."); - AddLog(LogLevel.Info, "Questionable will handle quest progression automatically"); - CurrentState.CurrentSequence = $"Monitoring Quest {questConfig.QuestId}"; - NotifyStateChanged(); - await WaitForQuestCompletion(questConfig.QuestId); - OnSequenceComplete(questConfig); - } - - private async Task WaitForQuestAcceptanceThenNext(QuestConfig questConfig) - { - int maxWaitSeconds = 3600; - int waited = 0; - AddLog(LogLevel.Info, $"Waiting for quest {questConfig.QuestId} to be accepted..."); - while (waited < maxWaitSeconds && IsRunning) - { - await Task.Delay(5000); - waited += 5; - if (questDetection.IsQuestAccepted(questConfig.QuestId)) - { - AddLog(LogLevel.Success, $"Quest {questConfig.QuestId} accepted!"); - OnSequenceComplete(questConfig); - return; - } - if (questDetection.IsQuestCompletedDirect(questConfig.QuestId)) - { - AddLog(LogLevel.Success, $"Quest {questConfig.QuestId} already completed!"); - OnSequenceComplete(questConfig); - return; - } - if (waited % 60 == 0) - { - AddLog(LogLevel.Debug, $"Still waiting for quest {questConfig.QuestId} acceptance... ({waited}s)"); - } - } - if (!IsRunning) - { - AddLog(LogLevel.Info, "Monitoring stopped - execution not running"); - return; - } - AddLog(LogLevel.Warning, $"Quest {questConfig.QuestId} acceptance timeout after {maxWaitSeconds}s"); - OnSequenceFailed(questConfig); - } - - private async Task WaitForQuestCompletion(uint questId) - { - int maxWaitSeconds = 600; - int waited = 0; - while (waited < maxWaitSeconds && IsRunning) - { - await Task.Delay(5000); - waited += 5; - if (questDetection.IsQuestCompletedDirect(questId)) - { - AddLog(LogLevel.Success, $"Quest {questId} completed!"); - return; - } - if (waited % 30 == 0) - { - AddLog(LogLevel.Debug, $"Still waiting for quest {questId}... ({waited}s)"); - } - } - if (!IsRunning) - { - AddLog(LogLevel.Info, "Monitoring stopped - execution not running"); - return; - } - AddLog(LogLevel.Warning, $"Quest {questId} completion timeout after {maxWaitSeconds}s"); - } - - private async Task WaitForQuestionableCompletion() - { - AddLog(LogLevel.Warning, "Waiting for Questionable to complete..."); - while (questionableIPC.IsRunning()) - { - await Task.Delay(1000); - } - AddLog(LogLevel.Success, "Questionable completed"); - } - - private async Task ExecuteInternalAction(QuestConfig questConfig) - { - AddLog(LogLevel.Warning, "Internal action not yet implemented: " + questConfig.SequenceAfterQuest.Value); - await Task.Delay(1000); - OnSequenceComplete(questConfig); - } - - private void OnSequenceComplete(QuestConfig questConfig) - { - AddLog(LogLevel.Success, "Sequence completed: " + questConfig.SequenceAfterQuest.Value); - CurrentState.Status = ExecutionStatus.Complete; - CurrentState.Progress = 100; - NotifyStateChanged(); - if (questConfig.NextCharacter == "auto_next") - { - SwitchToNextCharacter(); - } - else if (!string.IsNullOrEmpty(questConfig.NextCharacter)) - { - SwitchToCharacter(questConfig.NextCharacter); - } - } - - private void OnSequenceFailed(QuestConfig questConfig) - { - AddLog(LogLevel.Error, "Sequence failed: " + questConfig.SequenceAfterQuest.Value); - CurrentState.Status = ExecutionStatus.Failed; - NotifyStateChanged(); - if (!string.IsNullOrEmpty(CurrentState.CurrentCharacter)) - { - failedCharacters.Add(CurrentState.CurrentCharacter); - } - SwitchToNextCharacter(); - } - - private async Task SwitchToCharacter(string characterName) - { - if (config.EnableDryRun) - { - AddLog(LogLevel.Debug, "[DRY RUN] Would switch to character: " + characterName); - CurrentState.CurrentCharacter = characterName; - NotifyStateChanged(); - return; - } - AddLog(LogLevel.Info, "Switching to character: " + characterName); - if (questionableIPC.IsRunning()) - { - questionableIPC.Stop(); - } - string originalChar = autoRetainerIPC.GetCurrentCharacter(); - AddLog(LogLevel.Debug, "Current character before switch: " + (originalChar ?? "null")); - if (!string.IsNullOrEmpty(originalChar) && originalChar == characterName) - { - AddLog(LogLevel.Info, "Already on character: " + characterName); - AddLog(LogLevel.Info, "Refreshing quest cache..."); - questDetection.RefreshQuestCache(); - CurrentState.CurrentCharacter = characterName; - NotifyStateChanged(); - await Task.Delay(2000); - ExecuteQuestsForCurrentCharacter(); - return; - } - if (string.IsNullOrEmpty(originalChar)) - { - AddLog(LogLevel.Warning, "Could not get current character - might be in transition"); - } - AddLog(LogLevel.Info, "[AutoRetainerIPC] Relog request sent for: " + characterName); - if (autoRetainerIPC.SwitchCharacter(characterName)) - { - waitingForRelog = true; - targetRelogCharacter = characterName; - relogStartTime = DateTime.Now; - wasLoggedOutDuringRelog = false; - AddLog(LogLevel.Info, "Relog command sent, monitoring via Framework.Update..."); - } - else - { - AddLog(LogLevel.Error, "Failed to send relog request for character: " + characterName); - failedCharacters.Add(characterName); - SwitchToNextCharacter(); - } - } - - private void ExecuteQuestsForCurrentCharacter() - { - AddLog(LogLevel.Info, "=== ExecuteQuestsForCurrentCharacter called ==="); - QuestProfile profile = config.GetActiveProfile(); - if (profile == null) - { - AddLog(LogLevel.Error, "No active profile"); - SwitchToNextCharacter(); - return; - } - string currentChar = CurrentState.CurrentCharacter; - if (string.IsNullOrEmpty(currentChar)) - { - AddLog(LogLevel.Warning, "No current character set"); - SwitchToNextCharacter(); - return; - } - AddLog(LogLevel.Info, "Current character: " + currentChar); - AddLog(LogLevel.Info, $"Total quests in profile: {profile.Quests.Count}"); - List characterQuests = (from q in profile.Quests - where string.IsNullOrEmpty(q.AssignedCharacter) || q.AssignedCharacter == currentChar - orderby q.QuestId - select q).ToList(); - if (characterQuests.Count == 0) - { - AddLog(LogLevel.Warning, "No quests configured for " + currentChar); - AddLog(LogLevel.Info, "Please add quests to your profile using /qstcomp"); - completedCharacters.Add(currentChar); - SwitchToNextCharacter(); - return; - } - AddLog(LogLevel.Info, $"Found {characterQuests.Count} quests for {currentChar}"); - foreach (QuestConfig quest in characterQuests) - { - AddLog(LogLevel.Debug, $"Checking quest {quest.QuestId}: {quest.QuestName}"); - bool isCompleted = questDetection.IsQuestCompletedDirect(quest.QuestId); - AddLog(LogLevel.Debug, $"Quest {quest.QuestId} completed status: {isCompleted}"); - if (!isCompleted) - { - AddLog(LogLevel.Success, $"Starting quest {quest.QuestId}: {quest.QuestName}"); - CurrentState.CurrentQuestId = quest.QuestId; - CurrentState.CurrentQuestName = quest.QuestName; - CurrentState.CurrentSequence = $"Quest {quest.QuestId}"; - NotifyStateChanged(); - if (quest.TriggerType == TriggerType.OnAccept) - { - AddLog(LogLevel.Info, $"Quest {quest.QuestId} has OnAccept trigger - waiting for acceptance"); - WaitForQuestAcceptanceThenNext(quest); - } - else - { - AddLog(LogLevel.Info, $"Quest {quest.QuestId} has OnComplete trigger - monitoring for completion"); - ExecuteSequence(quest); - } - return; - } - AddLog(LogLevel.Info, $"Quest {quest.QuestId} already completed, skipping"); - } - AddLog(LogLevel.Success, "All quests completed for " + currentChar + "!"); - completedCharacters.Add(currentChar); - SwitchToNextCharacter(); - } - - public void SetSafeWaitService(CharacterSafeWaitService service) - { - safeWaitService = service; - } - - public void SetPreCheckService(QuestPreCheckService service) - { - preCheckService = service; - } - - public void SetDCTravelService(DCTravelService service) - { - dcTravelService = service; - } - - private void SwitchToNextCharacter() - { - QuestProfile profile = config.GetActiveProfile(); - if (profile == null || profile.Characters.Count == 0) - { - AddLog(LogLevel.Error, "No profile or characters available"); - Stop(); - return; - } - if (config.EnableQuestPreCheck && preCheckService != null) - { - AddLog(LogLevel.Info, "Logging completed quests before logout..."); - preCheckService.LogCompletedQuestsBeforeLogout(); - } - if (dcTravelService != null && dcTravelService.IsDCTravelCompleted()) - { - if (config.ReturnToHomeworldOnStopQuest) - { - AddLog(LogLevel.Info, "[DCTravel] Returning to homeworld before character switch..."); - dcTravelService.ReturnToHomeworld(); - Thread.Sleep(2000); - AddLog(LogLevel.Info, "[DCTravel] Returned to homeworld"); - } - else - { - AddLog(LogLevel.Info, "[DCTravel] Skipping return to homeworld (setting disabled)"); - } - } - if (config.EnableSafeWaitBeforeCharacterSwitch && safeWaitService != null) - { - AddLog(LogLevel.Info, "[SafeWait] Stabilizing character before switch..."); - safeWaitService.PerformSafeWait(); - AddLog(LogLevel.Info, "[SafeWait] Stabilization complete"); - } - if (!string.IsNullOrEmpty(CurrentState.CurrentCharacter)) - { - completedCharacters.Add(CurrentState.CurrentCharacter); - } - int attempts = 0; - while (attempts < profile.Characters.Count) - { - currentCharacterIndex = (currentCharacterIndex + 1) % profile.Characters.Count; - string nextChar = profile.Characters[currentCharacterIndex]; - if (config.EnableQuestPreCheck && preCheckService != null) - { - List stopPoints = config.StopPoints; - if (stopPoints != null && stopPoints.Count > 0) - { - uint firstStopQuest = stopPoints[0].QuestId; - if (preCheckService.ShouldSkipCharacter(nextChar, firstStopQuest)) - { - AddLog(LogLevel.Info, "[PreCheck] Skipping " + nextChar + " - quest already completed"); - completedCharacters.Add(nextChar); - attempts++; - continue; - } - } - } - if (!completedCharacters.Contains(nextChar) && !failedCharacters.Contains(nextChar)) - { - SwitchToCharacter(nextChar); - return; - } - attempts++; - } - AddLog(LogLevel.Success, "All characters completed!"); - Stop(); - } - - private void AddLog(LogLevel level, string message) - { - LogEntry entry = new LogEntry - { - Level = level, - Message = message, - Timestamp = DateTime.Now - }; - Logs.Add(entry); - while (Logs.Count > config.MaxLogEntries) - { - Logs.RemoveAt(0); - } - log.Information("[ExecutionService] " + message); - this.LogAdded?.Invoke(entry); - } - - private void NotifyStateChanged() - { - CurrentState.LastUpdate = DateTime.Now; - this.StateChanged?.Invoke(CurrentState); - } - - private unsafe bool IsNamePlateReady() - { - try - { - AtkUnitBasePtr namePlatePtr = gameGui.GetAddonByName("NamePlate"); - if (namePlatePtr == IntPtr.Zero) - { - return false; - } - AddonNamePlate* namePlate = (AddonNamePlate*)namePlatePtr.Address; - if (namePlate != null && namePlate->AtkUnitBase.IsVisible && namePlate->AtkUnitBase.IsReady) - { - return true; - } - return false; - } - catch - { - return false; - } - } - - public void Dispose() - { - questDetection.QuestAccepted -= OnQuestAccepted; - questDetection.QuestCompleted -= OnQuestCompleted; - framework.Update -= OnFrameworkUpdate; - Stop(); - AddLog(LogLevel.Info, "Execution service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/ExpansionInfo.cs b/QuestionableCompanion/QuestionableCompanion.Services/ExpansionInfo.cs deleted file mode 100644 index 216ef74..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/ExpansionInfo.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace QuestionableCompanion.Services; - -public class ExpansionInfo -{ - public string Name { get; set; } = ""; - - public string ShortName { get; set; } = ""; - - public uint MinQuestId { get; set; } - - public uint MaxQuestId { get; set; } - - public int ExpectedQuestCount { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/ExpansionProgressInfo.cs b/QuestionableCompanion/QuestionableCompanion.Services/ExpansionProgressInfo.cs deleted file mode 100644 index f9407b1..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/ExpansionProgressInfo.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace QuestionableCompanion.Services; - -public class ExpansionProgressInfo -{ - public string ExpansionName { get; set; } = ""; - - public string ShortName { get; set; } = ""; - - public int TotalQuests { get; set; } - - public int CompletedQuests { get; set; } - - public float Percentage { get; set; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/HelperManager.cs b/QuestionableCompanion/QuestionableCompanion.Services/HelperManager.cs deleted file mode 100644 index 3f9e1c9..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/HelperManager.cs +++ /dev/null @@ -1,695 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Game.ClientState.Party; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.Group; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class HelperManager : IDisposable -{ - private readonly Configuration configuration; - - private readonly IPluginLog log; - - private readonly ICommandManager commandManager; - - private readonly ICondition condition; - - private readonly IClientState clientState; - - private readonly IFramework framework; - - private readonly PartyInviteService partyInviteService; - - private readonly MultiClientIPC multiClientIPC; - - private readonly CrossProcessIPC crossProcessIPC; - - private readonly PartyInviteAutoAccept partyInviteAutoAccept; - - private readonly MemoryHelper memoryHelper; - - private readonly LANHelperClient? lanHelperClient; - - private readonly IPartyList partyList; - - private bool isInDuty; - - private List<(string Name, ushort WorldId)> availableHelpers = new List<(string, ushort)>(); - - private Dictionary<(string, ushort), bool> helperReadyStatus = new Dictionary<(string, ushort), bool>(); - - public HelperManager(Configuration configuration, IPluginLog log, ICommandManager commandManager, ICondition condition, IClientState clientState, IFramework framework, PartyInviteService partyInviteService, MultiClientIPC multiClientIPC, CrossProcessIPC crossProcessIPC, PartyInviteAutoAccept partyInviteAutoAccept, MemoryHelper memoryHelper, LANHelperClient? lanHelperClient, IPartyList partyList) - { - this.configuration = configuration; - this.log = log; - this.commandManager = commandManager; - this.condition = condition; - this.clientState = clientState; - this.framework = framework; - this.partyInviteService = partyInviteService; - this.multiClientIPC = multiClientIPC; - this.crossProcessIPC = crossProcessIPC; - this.memoryHelper = memoryHelper; - this.lanHelperClient = lanHelperClient; - this.partyInviteAutoAccept = partyInviteAutoAccept; - this.partyList = partyList; - condition.ConditionChange += OnConditionChanged; - multiClientIPC.OnHelperRequested += OnHelperRequested; - multiClientIPC.OnHelperDismissed += OnHelperDismissed; - multiClientIPC.OnHelperAvailable += OnHelperAvailable; - crossProcessIPC.OnHelperRequested += OnHelperRequested; - crossProcessIPC.OnHelperDismissed += OnHelperDismissed; - crossProcessIPC.OnHelperAvailable += OnHelperAvailable; - crossProcessIPC.OnHelperReady += OnHelperReady; - crossProcessIPC.OnHelperInParty += OnHelperInParty; - crossProcessIPC.OnHelperInDuty += OnHelperInDuty; - crossProcessIPC.OnRequestHelperAnnouncements += OnRequestHelperAnnouncements; - if (configuration.IsHighLevelHelper) - { - log.Information("[HelperManager] Will announce helper availability on next frame"); - } - log.Information("[HelperManager] Initialized"); - } - - public void AnnounceIfHelper() - { - if (configuration.IsHighLevelHelper) - { - IPlayerCharacter localPlayer = clientState.LocalPlayer; - if (localPlayer == null) - { - log.Warning("[HelperManager] LocalPlayer is null, cannot announce helper"); - return; - } - string localName = localPlayer.Name.ToString(); - ushort localWorldId = (ushort)localPlayer.HomeWorld.RowId; - multiClientIPC.AnnounceHelperAvailable(localName, localWorldId); - crossProcessIPC.AnnounceHelper(); - log.Information($"[HelperManager] Announced as helper: {localName}@{localWorldId} (both IPC systems)"); - } - } - - public void InviteHelpers() - { - if (!configuration.IsQuester) - { - log.Debug("[HelperManager] Not a Quester, skipping helper invites"); - return; - } - if (configuration.HelperSelection == HelperSelectionMode.ManualInput) - { - if (string.IsNullOrEmpty(configuration.ManualHelperName)) - { - log.Warning("[HelperManager] Manual Input mode selected but no helper name configured!"); - return; - } - Task.Run(async delegate - { - log.Information("[HelperManager] Manual Input mode: Inviting " + configuration.ManualHelperName); - string[] parts = configuration.ManualHelperName.Split('@'); - if (parts.Length != 2) - { - log.Error("[HelperManager] Invalid manual helper format: " + configuration.ManualHelperName + " (expected: CharacterName@WorldName)"); - } - else - { - string helperName = parts[0].Trim(); - string worldName = parts[1].Trim(); - ushort worldId = 0; - ExcelSheet worldSheet = Plugin.DataManager.GetExcelSheet(); - if (worldSheet != null) - { - foreach (World world in worldSheet) - { - if (world.Name.ExtractText().Equals(worldName, StringComparison.OrdinalIgnoreCase)) - { - worldId = (ushort)world.RowId; - break; - } - } - } - if (worldId == 0) - { - log.Error("[HelperManager] Could not find world ID for: " + worldName); - } - else - { - log.Information($"[HelperManager] Resolved helper: {helperName}@{worldId} ({worldName})"); - bool alreadyInParty = false; - if (partyList != null) - { - foreach (IPartyMember member in partyList) - { - if (member.Name.ToString() == helperName && member.World.RowId == worldId) - { - alreadyInParty = true; - break; - } - } - } - if (alreadyInParty) - { - log.Information("[HelperManager] helper " + helperName + " is ALREADY in party! Skipping disband/invite."); - } - else - { - DisbandParty(); - await Task.Delay(500); - log.Information("[HelperManager] Sending direct invite to " + helperName + " (Manual Input - no IPC wait)"); - if (partyInviteService.InviteToParty(helperName, worldId)) - { - log.Information("[HelperManager] Successfully invited " + helperName); - } - else - { - log.Error("[HelperManager] Failed to invite " + helperName); - } - } - } - } - }); - return; - } - log.Information("[HelperManager] Requesting helper announcements..."); - RequestHelperAnnouncements(); - Task.Run(async delegate - { - await Task.Delay(1000); - List<(string Name, ushort WorldId)> helpersToInvite = new List<(string, ushort)>(); - if (configuration.HelperSelection == HelperSelectionMode.Auto) - { - if (availableHelpers.Count == 0) - { - log.Warning("[HelperManager] No helpers available via IPC!"); - if (lanHelperClient != null) - { - log.Information("[HelperManager] Checking for LAN helpers..."); - LANHelperInfo lanHelper = lanHelperClient.GetFirstAvailableHelper(); - if (lanHelper != null) - { - log.Information("[HelperManager] Found LAN helper: " + lanHelper.Name + " at " + lanHelper.IPAddress); - await InviteLANHelper(lanHelper.IPAddress, lanHelper.Name, lanHelper.WorldId); - return; - } - } - log.Warning("[HelperManager] Make sure helper clients are running with 'I'm a High-Level Helper' enabled"); - return; - } - helpersToInvite.AddRange(availableHelpers); - log.Information($"[HelperManager] Auto mode: Inviting {helpersToInvite.Count} AUTO-DISCOVERED helper(s)..."); - } - else if (configuration.HelperSelection == HelperSelectionMode.Dropdown) - { - if (string.IsNullOrEmpty(configuration.PreferredHelper)) - { - log.Warning("[HelperManager] Dropdown mode selected but no helper chosen!"); - return; - } - string[] parts = configuration.PreferredHelper.Split('@'); - if (parts.Length != 2) - { - log.Error("[HelperManager] Invalid preferred helper format: " + configuration.PreferredHelper); - return; - } - string helperName = parts[0].Trim(); - string worldName = parts[1].Trim(); - (string, ushort) matchingHelper = availableHelpers.FirstOrDefault<(string, ushort)>(delegate((string Name, ushort WorldId) h) - { - ExcelSheet excelSheet = Plugin.DataManager.GetExcelSheet(); - string text2 = "Unknown"; - if (excelSheet != null) - { - foreach (World current in excelSheet) - { - if (current.RowId == h.WorldId) - { - text2 = current.Name.ExtractText(); - break; - } - } - } - return h.Name == helperName && text2 == worldName; - }); - var (text, num) = matchingHelper; - if (text == null && num == 0) - { - log.Warning("[HelperManager] Preferred helper " + configuration.PreferredHelper + " not found in discovered helpers!"); - return; - } - helpersToInvite.Add(matchingHelper); - log.Information("[HelperManager] Dropdown mode: Inviting selected helper " + configuration.PreferredHelper); - } - bool allHelpersPresent = false; - if (partyList != null && partyList.Length > 0 && helpersToInvite.Count > 0) - { - int presentCount = 0; - foreach (var (hName, hWorld) in helpersToInvite) - { - foreach (IPartyMember member in partyList) - { - if (member.Name.ToString() == hName && member.World.RowId == hWorld) - { - presentCount++; - break; - } - } - } - if (presentCount >= helpersToInvite.Count) - { - allHelpersPresent = true; - } - } - if (allHelpersPresent) - { - log.Information("[HelperManager] All desired helpers are ALREADY in party! Skipping disband."); - } - else if (partyList != null && partyList.Length > 1) - { - bool anyHelperPresent = false; - foreach (var (hName2, hWorld2) in helpersToInvite) - { - foreach (IPartyMember member2 in partyList) - { - if (member2.Name.ToString() == hName2 && member2.World.RowId == hWorld2) - { - anyHelperPresent = true; - break; - } - } - } - if (anyHelperPresent) - { - log.Information("[HelperManager] Some helpers already in party - NOT disbanding, simply inviting remaining."); - } - else - { - DisbandParty(); - await Task.Delay(500); - } - } - else - { - DisbandParty(); - await Task.Delay(500); - } - foreach (var (name, worldId) in helpersToInvite) - { - if (string.IsNullOrEmpty(name) || worldId == 0) - { - log.Warning($"[HelperManager] Invalid helper: {name}@{worldId}"); - } - else - { - log.Information($"[HelperManager] Requesting helper: {name}@{worldId}"); - helperReadyStatus[(name, worldId)] = false; - multiClientIPC.RequestHelper(name, worldId); - crossProcessIPC.RequestHelper(name, worldId); - log.Information("[HelperManager] Waiting for " + name + " to be ready..."); - DateTime timeout = DateTime.Now.AddSeconds(10.0); - while (!helperReadyStatus.GetValueOrDefault((name, worldId), defaultValue: false) && DateTime.Now < timeout) - { - await Task.Delay(100); - } - if (!helperReadyStatus.GetValueOrDefault((name, worldId), defaultValue: false)) - { - log.Warning("[HelperManager] Timeout waiting for " + name + " to be ready!"); - } - else - { - log.Information("[HelperManager] " + name + " is ready! Sending invite..."); - if (partyInviteService.InviteToParty(name, worldId)) - { - log.Information("[HelperManager] Successfully invited " + name); - } - else - { - log.Error("[HelperManager] Failed to invite " + name); - } - await Task.Delay(500); - } - } - } - }); - } - - public List<(string Name, ushort WorldId)> GetAvailableHelpers() - { - List<(string, ushort)> allHelpers = new List<(string, ushort)>(availableHelpers); - if (lanHelperClient != null) - { - foreach (LANHelperInfo lanHelper in lanHelperClient.DiscoveredHelpers) - { - if (!allHelpers.Any<(string, ushort)>(((string Name, ushort WorldId) h) => h.Name == lanHelper.Name && h.WorldId == lanHelper.WorldId)) - { - allHelpers.Add((lanHelper.Name, lanHelper.WorldId)); - } - } - } - return allHelpers; - } - - private void LeaveParty() - { - try - { - log.Information("[HelperManager] Leaving party"); - framework.RunOnFrameworkThread(delegate - { - memoryHelper.SendChatMessage("/leave"); - log.Information("[HelperManager] /leave command sent via UIModule"); - }); - } - catch (Exception ex) - { - log.Error("[HelperManager] Failed to leave party: " + ex.Message); - } - } - - public void DisbandParty() - { - try - { - log.Information("[HelperManager] Disbanding party"); - framework.RunOnFrameworkThread(delegate - { - memoryHelper.SendChatMessage("/leave"); - log.Information("[HelperManager] /leave command sent via UIModule"); - }); - multiClientIPC.DismissHelper(); - crossProcessIPC.DismissHelper(); - } - catch (Exception ex) - { - log.Error("[HelperManager] Failed to disband party: " + ex.Message); - } - } - - private void OnConditionChanged(ConditionFlag flag, bool value) - { - if (flag == ConditionFlag.BoundByDuty) - { - if (value && !isInDuty) - { - isInDuty = true; - OnDutyEnter(); - } - else if (!value && isInDuty) - { - isInDuty = false; - OnDutyLeave(); - } - } - } - - private void OnDutyEnter() - { - log.Debug("[HelperManager] Entered duty"); - if (!configuration.IsHighLevelHelper) - { - return; - } - configuration.CurrentHelperStatus = HelperStatus.InDungeon; - configuration.Save(); - log.Information("[HelperManager] Helper status: InDungeon"); - IPlayerCharacter localPlayer = clientState.LocalPlayer; - if (localPlayer != null) - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "InDungeon"); - } - log.Information("[HelperManager] Starting AutoDuty (High-Level Helper)"); - Task.Run(async delegate - { - log.Information("[HelperManager] Waiting 5s before starting AutoDuty..."); - await Task.Delay(5000); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/ad start"); - log.Information("[HelperManager] AutoDuty started"); - } - catch (Exception ex) - { - log.Error("[HelperManager] Failed to start AutoDuty: " + ex.Message); - } - }); - }); - } - - private unsafe void OnDutyLeave() - { - log.Information("[HelperManager] Left duty"); - if (configuration.IsHighLevelHelper) - { - if (configuration.CurrentHelperStatus == HelperStatus.InDungeon) - { - configuration.CurrentHelperStatus = HelperStatus.Available; - configuration.Save(); - log.Information("[HelperManager] Helper status: Available"); - IPlayerCharacter localPlayer = clientState.LocalPlayer; - if (localPlayer != null) - { - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - crossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "Available"); - } - } - log.Information("[HelperManager] Stopping AutoDuty (High-Level Helper)"); - framework.RunOnFrameworkThread(delegate - { - try - { - commandManager.ProcessCommand("/ad stop"); - log.Information("[HelperManager] AutoDuty stopped"); - } - catch (Exception ex) - { - log.Error("[HelperManager] Failed to stop AutoDuty: " + ex.Message); - } - }); - log.Information("[HelperManager] Leaving party after duty (High-Level Helper)"); - Task.Run(async delegate - { - log.Information("[HelperManager] Waiting 4 seconds for duty to fully complete..."); - await Task.Delay(4000); - for (int attempt = 1; attempt <= 3; attempt++) - { - bool inParty = false; - GroupManager* groupManager = GroupManager.Instance(); - if (groupManager != null) - { - GroupManager.Group* group = groupManager->GetGroup(); - if (group != null && group->MemberCount > 1) - { - inParty = true; - } - } - if (!inParty) - { - log.Information("[HelperManager] Successfully left party or already solo"); - break; - } - log.Information($"[HelperManager] Attempt {attempt}/3: Still in party - sending /leave command"); - LeaveParty(); - if (attempt < 3) - { - await Task.Delay(2000); - } - } - }); - } - if (configuration.IsQuester) - { - log.Information("[HelperManager] Disbanding party after duty (Quester)"); - DisbandParty(); - } - } - - private unsafe void OnHelperRequested(string characterName, ushort worldId) - { - if (!configuration.IsHighLevelHelper) - { - log.Debug("[HelperManager] Not a High-Level Helper, ignoring request"); - return; - } - IPlayerCharacter localPlayer = clientState.LocalPlayer; - if (localPlayer == null) - { - log.Warning("[HelperManager] Local player is null!"); - return; - } - string localName = localPlayer.Name.ToString(); - ushort localWorldId = (ushort)localPlayer.HomeWorld.RowId; - if (!(localName == characterName) || localWorldId != worldId) - { - return; - } - log.Information("[HelperManager] Helper request is for me! Checking status..."); - Task.Run(async delegate - { - bool needsToLeaveParty = false; - bool isInDuty = false; - GroupManager* groupManager = GroupManager.Instance(); - if (groupManager != null) - { - GroupManager.Group* group = groupManager->GetGroup(); - if (group != null && group->MemberCount > 0) - { - bool requesterInParty = false; - if (partyList != null) - { - foreach (IPartyMember member in partyList) - { - if (member.Name.ToString() == characterName && member.World.RowId == worldId) - { - requesterInParty = true; - break; - } - } - } - if (requesterInParty) - { - log.Information($"[HelperManager] Request from {characterName}@{worldId} who is ALREADY in my party! Ignoring leave request."); - needsToLeaveParty = false; - } - else - { - needsToLeaveParty = true; - log.Information("[HelperManager] Currently in party (but not with requester), notifying quester..."); - crossProcessIPC.NotifyHelperInParty(localName, localWorldId); - if (condition[ConditionFlag.BoundByDuty]) - { - isInDuty = true; - log.Information("[HelperManager] Currently in duty, notifying quester..."); - crossProcessIPC.NotifyHelperInDuty(localName, localWorldId); - } - } - } - } - if (!isInDuty) - { - if (needsToLeaveParty) - { - LeaveParty(); - await Task.Delay(1000); - } - log.Information("[HelperManager] Ready to accept invite!"); - partyInviteAutoAccept.EnableAutoAccept(); - crossProcessIPC.NotifyHelperReady(localName, localWorldId); - } - }); - } - - private void OnHelperDismissed() - { - if (configuration.IsHighLevelHelper) - { - log.Information("[HelperManager] Received dismiss signal, leaving party..."); - DisbandParty(); - } - } - - private void OnHelperAvailable(string characterName, ushort worldId) - { - if (configuration.IsQuester && !availableHelpers.Any<(string, ushort)>(((string Name, ushort WorldId) h) => h.Name == characterName && h.WorldId == worldId)) - { - availableHelpers.Add((characterName, worldId)); - log.Information($"[HelperManager] Helper discovered: {characterName}@{worldId} (Total: {availableHelpers.Count})"); - } - } - - private void OnHelperReady(string characterName, ushort worldId) - { - if (configuration.IsQuester) - { - log.Information($"[HelperManager] Helper {characterName}@{worldId} is ready!"); - helperReadyStatus[(characterName, worldId)] = true; - } - } - - private void OnHelperInParty(string characterName, ushort worldId) - { - if (configuration.IsQuester) - { - log.Information($"[HelperManager] Helper {characterName}@{worldId} is in a party, waiting for them to leave..."); - } - } - - private void OnHelperInDuty(string characterName, ushort worldId) - { - if (configuration.IsQuester) - { - log.Warning($"[HelperManager] Helper {characterName}@{worldId} is in a duty! Cannot invite until they leave."); - } - } - - private void OnRequestHelperAnnouncements() - { - if (configuration.IsHighLevelHelper) - { - log.Information("[HelperManager] Received request for helper announcements, announcing..."); - AnnounceIfHelper(); - } - } - - public void RequestHelperAnnouncements() - { - crossProcessIPC.RequestHelperAnnouncements(); - } - - private async Task InviteLANHelper(string ipAddress, string helperName, ushort worldId) - { - if (lanHelperClient == null) - { - return; - } - log.Information("[HelperManager] ========================================"); - log.Information("[HelperManager] === INVITING LAN HELPER ==="); - log.Information("[HelperManager] Helper: " + helperName); - log.Information("[HelperManager] IP: " + ipAddress); - log.Information("[HelperManager] ========================================"); - DisbandParty(); - await Task.Delay(500); - log.Information("[HelperManager] Sending helper request to " + ipAddress + "..."); - if (!(await lanHelperClient.RequestHelperAsync(ipAddress, "LAN Dungeon"))) - { - log.Error("[HelperManager] Failed to send helper request to " + ipAddress); - return; - } - await Task.Delay(1000); - log.Information("[HelperManager] Sending party invite to " + helperName + "..."); - if (!partyInviteService.InviteToParty(helperName, worldId)) - { - log.Error("[HelperManager] Failed to invite " + helperName + " to party"); - return; - } - await lanHelperClient.NotifyInviteSentAsync(ipAddress, helperName); - log.Information("[HelperManager] ✓ LAN helper invite complete"); - } - - public void Dispose() - { - condition.ConditionChange -= OnConditionChanged; - multiClientIPC.OnHelperRequested -= OnHelperRequested; - multiClientIPC.OnHelperDismissed -= OnHelperDismissed; - multiClientIPC.OnHelperAvailable -= OnHelperAvailable; - crossProcessIPC.OnHelperRequested -= OnHelperRequested; - crossProcessIPC.OnHelperDismissed -= OnHelperDismissed; - crossProcessIPC.OnHelperAvailable -= OnHelperAvailable; - crossProcessIPC.OnHelperReady -= OnHelperReady; - crossProcessIPC.OnHelperInParty -= OnHelperInParty; - crossProcessIPC.OnHelperInDuty -= OnHelperInDuty; - crossProcessIPC.OnRequestHelperAnnouncements -= OnRequestHelperAnnouncements; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/LANHelperClient.cs b/QuestionableCompanion/QuestionableCompanion.Services/LANHelperClient.cs deleted file mode 100644 index b54ba58..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/LANHelperClient.cs +++ /dev/null @@ -1,489 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net.Sockets; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; -using Newtonsoft.Json; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class LANHelperClient : IDisposable -{ - public class ChauffeurMessageEventArgs : EventArgs - { - public LANMessageType Type { get; } - - public LANChauffeurResponse Data { get; } - - public ChauffeurMessageEventArgs(LANMessageType type, LANChauffeurResponse data) - { - Type = type; - Data = data; - } - } - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly IFramework framework; - - private readonly Configuration config; - - private readonly Dictionary activeConnections = new Dictionary(); - - private readonly Dictionary discoveredHelpers = new Dictionary(); - - private CancellationTokenSource? cancellationTokenSource; - - private string cachedPlayerName = string.Empty; - - private ushort cachedWorldId; - - public IReadOnlyList DiscoveredHelpers => discoveredHelpers.Values.ToList(); - - public event EventHandler? OnChauffeurMessageReceived; - - public LANHelperClient(IPluginLog log, IClientState clientState, IFramework framework, Configuration config) - { - this.log = log; - this.clientState = clientState; - this.framework = framework; - this.config = config; - framework.Update += OnFrameworkUpdate; - } - - private void OnFrameworkUpdate(IFramework fw) - { - IPlayerCharacter player = clientState.LocalPlayer; - if (player != null) - { - cachedPlayerName = player.Name.ToString(); - cachedWorldId = (ushort)player.HomeWorld.RowId; - } - } - - public async Task Initialize() - { - if (!config.EnableLANHelpers) - { - return; - } - cancellationTokenSource = new CancellationTokenSource(); - log.Information("[LANClient] Initializing LAN Helper Client..."); - foreach (string ip in config.LANHelperIPs) - { - await ConnectToHelperAsync(ip); - } - Task.Run(() => HeartbeatMonitorAsync(cancellationTokenSource.Token)); - } - - private async Task HeartbeatMonitorAsync(CancellationToken cancellationToken) - { - log.Information("[LANClient] Heartbeat monitor started (30s interval)"); - while (!cancellationToken.IsCancellationRequested) - { - try - { - await Task.Delay(30000, cancellationToken); - foreach (string ip in config.LANHelperIPs.ToList()) - { - if (!activeConnections.ContainsKey(ip) || !activeConnections[ip].Connected) - { - log.Debug("[LANClient] Heartbeat: " + ip + " disconnected, reconnecting..."); - await ConnectToHelperAsync(ip); - continue; - } - LANHeartbeat heartbeatData = new LANHeartbeat - { - ClientName = (string.IsNullOrEmpty(cachedPlayerName) ? "Unknown" : cachedPlayerName), - ClientWorldId = cachedWorldId, - ClientRole = (config.IsQuester ? "Quester" : "Helper") - }; - await SendMessageAsync(ip, new LANMessage(LANMessageType.HEARTBEAT, heartbeatData)); - log.Debug($"[LANClient] Heartbeat sent to {ip} (as {heartbeatData.ClientName}@{heartbeatData.ClientWorldId})"); - } - foreach (LANHelperInfo helper in discoveredHelpers.Values.ToList()) - { - if (!string.IsNullOrEmpty(helper.IPAddress)) - { - LANHeartbeat heartbeatData = new LANHeartbeat - { - ClientName = (string.IsNullOrEmpty(cachedPlayerName) ? "Unknown" : cachedPlayerName), - ClientWorldId = cachedWorldId, - ClientRole = (config.IsQuester ? "Quester" : "Helper") - }; - await SendMessageAsync(helper.IPAddress, new LANMessage(LANMessageType.HEARTBEAT, heartbeatData)); - log.Information($"[LANClient] Heartbeat sent to discovered helper {helper.Name}@{helper.IPAddress} (as {heartbeatData.ClientName}, Role={heartbeatData.ClientRole})"); - } - } - } - catch (OperationCanceledException) - { - break; - } - catch (Exception ex2) - { - log.Error("[LANClient] Heartbeat monitor error: " + ex2.Message); - } - } - log.Information("[LANClient] Heartbeat monitor stopped"); - } - - public async Task ConnectToHelperAsync(string ipAddress) - { - if (activeConnections.ContainsKey(ipAddress)) - { - log.Debug("[LANClient] Already connected to " + ipAddress); - return true; - } - try - { - log.Information($"[LANClient] Connecting to helper at {ipAddress}:{config.LANServerPort}..."); - TcpClient client = new TcpClient(); - await client.ConnectAsync(ipAddress, config.LANServerPort); - activeConnections[ipAddress] = client; - log.Information("[LANClient] ✓ Connected to " + ipAddress); - LANHelperStatusResponse statusResponse = await RequestHelperStatusAsync(ipAddress); - if (statusResponse != null) - { - discoveredHelpers[ipAddress] = new LANHelperInfo - { - Name = statusResponse.Name, - WorldId = statusResponse.WorldId, - IPAddress = ipAddress, - Status = statusResponse.Status, - LastSeen = DateTime.Now - }; - log.Information($"[LANClient] Helper discovered: {statusResponse.Name} ({statusResponse.Status})"); - } - Task.Run(() => ListenToHelperAsync(ipAddress, client), cancellationTokenSource.Token); - return true; - } - catch (Exception ex) - { - log.Error("[LANClient] Failed to connect to " + ipAddress + ": " + ex.Message); - return false; - } - } - - private async Task ListenToHelperAsync(string ipAddress, TcpClient client) - { - try - { - using NetworkStream stream = client.GetStream(); - using StreamReader reader = new StreamReader(stream, Encoding.UTF8); - while (client.Connected && !cancellationTokenSource.Token.IsCancellationRequested) - { - string line = await reader.ReadLineAsync(cancellationTokenSource.Token); - if (string.IsNullOrEmpty(line)) - { - break; - } - try - { - LANMessage message = JsonConvert.DeserializeObject(line); - if (message != null) - { - HandleHelperMessage(ipAddress, message); - } - } - catch (JsonException ex) - { - log.Error("[LANClient] Invalid message from " + ipAddress + ": " + ex.Message); - } - } - } - catch (Exception ex2) - { - log.Error("[LANClient] Connection to " + ipAddress + " lost: " + ex2.Message); - } - finally - { - log.Information("[LANClient] Disconnected from " + ipAddress); - activeConnections.Remove(ipAddress); - client.Close(); - } - } - - private void HandleHelperMessage(string ipAddress, LANMessage message) - { - log.Debug($"[LANClient] Received {message.Type} from {ipAddress}"); - switch (message.Type) - { - case LANMessageType.HELPER_STATUS: - { - LANHelperStatusResponse status = message.GetData(); - if (status == null) - { - break; - } - if (!discoveredHelpers.ContainsKey(ipAddress)) - { - log.Information($"[LANClient] New helper discovered via status: {status.Name}@{status.WorldId} ({ipAddress})"); - discoveredHelpers[ipAddress] = new LANHelperInfo - { - Name = status.Name, - WorldId = status.WorldId, - IPAddress = ipAddress, - Status = status.Status, - LastSeen = DateTime.Now - }; - } - else - { - discoveredHelpers[ipAddress].Status = status.Status; - discoveredHelpers[ipAddress].LastSeen = DateTime.Now; - if (discoveredHelpers[ipAddress].Name != status.Name) - { - discoveredHelpers[ipAddress].Name = status.Name; - discoveredHelpers[ipAddress].WorldId = status.WorldId; - } - } - break; - } - case LANMessageType.INVITE_ACCEPTED: - log.Information("[LANClient] ✓ Helper at " + ipAddress + " accepted invite"); - break; - case LANMessageType.FOLLOW_STARTED: - log.Information("[LANClient] ✓ Helper at " + ipAddress + " started following"); - break; - case LANMessageType.FOLLOW_ARRIVED: - log.Information("[LANClient] ✓ Helper at " + ipAddress + " arrived at destination"); - break; - case LANMessageType.HELPER_READY: - log.Information("[LANClient] ✓ Helper at " + ipAddress + " is ready"); - break; - case LANMessageType.HELPER_IN_PARTY: - log.Information("[LANClient] ✓ Helper at " + ipAddress + " joined party"); - break; - case LANMessageType.HELPER_IN_DUTY: - log.Information("[LANClient] ✓ Helper at " + ipAddress + " entered duty"); - break; - case LANMessageType.CHAUFFEUR_HELPER_READY_FOR_MOUNT: - { - LANChauffeurResponse readyData = message.GetData(); - if (readyData != null) - { - log.Information($"[LANClient] Received Chauffeur Mount Ready from {readyData.QuesterName}@{readyData.QuesterWorldId}"); - this.OnChauffeurMessageReceived?.Invoke(this, new ChauffeurMessageEventArgs(LANMessageType.CHAUFFEUR_HELPER_READY_FOR_MOUNT, readyData)); - } - break; - } - case LANMessageType.CHAUFFEUR_HELPER_ARRIVED_DEST: - { - LANChauffeurResponse arrivedData = message.GetData(); - if (arrivedData != null) - { - log.Information($"[LANClient] Received Chauffeur Arrived from {arrivedData.QuesterName}@{arrivedData.QuesterWorldId}"); - this.OnChauffeurMessageReceived?.Invoke(this, new ChauffeurMessageEventArgs(LANMessageType.CHAUFFEUR_HELPER_ARRIVED_DEST, arrivedData)); - } - break; - } - case LANMessageType.INVITE_NOTIFICATION: - case LANMessageType.DUTY_COMPLETE: - case LANMessageType.FOLLOW_COMMAND: - case LANMessageType.CHAUFFEUR_PICKUP_REQUEST: - break; - } - } - - public async Task RequestHelperAsync(string ipAddress, string dutyName = "") - { - IPlayerCharacter player = clientState.LocalPlayer; - if (player == null) - { - return false; - } - LANHelperRequest request = new LANHelperRequest - { - QuesterName = player.Name.ToString(), - QuesterWorldId = (ushort)player.HomeWorld.RowId, - DutyName = dutyName - }; - return await SendMessageAsync(ipAddress, new LANMessage(LANMessageType.REQUEST_HELPER, request)); - } - - public async Task RequestHelperStatusAsync(string ipAddress) - { - if (!(await SendMessageAsync(ipAddress, new LANMessage(LANMessageType.HELPER_STATUS)))) - { - return null; - } - await Task.Delay(500); - if (discoveredHelpers.TryGetValue(ipAddress, out LANHelperInfo helper)) - { - return new LANHelperStatusResponse - { - Name = helper.Name, - WorldId = helper.WorldId, - Status = helper.Status - }; - } - return null; - } - - public async Task SendFollowCommandAsync(string ipAddress, float x, float y, float z, uint territoryId) - { - LANFollowCommand followCmd = new LANFollowCommand - { - X = x, - Y = y, - Z = z, - TerritoryId = territoryId - }; - log.Information($"[LANClient] Sending follow command to {ipAddress}: ({x:F2}, {y:F2}, {z:F2})"); - return await SendMessageAsync(ipAddress, new LANMessage(LANMessageType.FOLLOW_COMMAND, followCmd)); - } - - public async Task NotifyInviteSentAsync(string ipAddress, string helperName) - { - log.Information("[LANClient] Notifying " + ipAddress + " of invite sent to " + helperName); - return await SendMessageAsync(ipAddress, new LANMessage(LANMessageType.INVITE_NOTIFICATION, helperName)); - } - - private async Task SendMessageAsync(string ipAddress, LANMessage message) - { - _ = 2; - try - { - if (!activeConnections.ContainsKey(ipAddress) && !(await ConnectToHelperAsync(ipAddress))) - { - return false; - } - TcpClient client = activeConnections[ipAddress]; - if (!client.Connected) - { - log.Warning("[LANClient] Not connected to " + ipAddress + ", reconnecting..."); - activeConnections.Remove(ipAddress); - if (!(await ConnectToHelperAsync(ipAddress))) - { - return false; - } - client = activeConnections[ipAddress]; - } - string json = JsonConvert.SerializeObject(message); - byte[] bytes = Encoding.UTF8.GetBytes(json + "\n"); - await client.GetStream().WriteAsync(bytes, 0, bytes.Length); - log.Debug($"[LANClient] Sent {message.Type} to {ipAddress}"); - return true; - } - catch (Exception ex) - { - log.Error("[LANClient] Failed to send message to " + ipAddress + ": " + ex.Message); - return false; - } - } - - public async Task ScanNetworkAsync(int timeoutSeconds = 5) - { - log.Information($"[LANClient] \ud83d\udce1 Scanning network for helpers (timeout: {timeoutSeconds}s)..."); - int foundCount = 0; - try - { - using UdpClient udpClient = new UdpClient(47789); - udpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, optionValue: true); - CancellationTokenSource cancellation = new CancellationTokenSource(); - cancellation.CancelAfter(TimeSpan.FromSeconds(timeoutSeconds)); - while (!cancellation.Token.IsCancellationRequested) - { - try - { - UdpReceiveResult result = await udpClient.ReceiveAsync(cancellation.Token); - dynamic announcement = JsonConvert.DeserializeObject(Encoding.UTF8.GetString(result.Buffer)); - if (announcement?.Type == "HELPER_ANNOUNCE") - { - string helperIP = result.RemoteEndPoint.Address.ToString(); - string helperName = (string)announcement.Name; - _ = (int)announcement.Port; - log.Information("[LANClient] ✓ Found helper: " + helperName + " at " + helperIP); - if (!config.LANHelperIPs.Contains(helperIP)) - { - config.LANHelperIPs.Add(helperIP); - config.Save(); - log.Information("[LANClient] → Added " + helperIP + " to configuration"); - foundCount++; - } - await ConnectToHelperAsync(helperIP); - } - } - catch (OperationCanceledException) - { - break; - } - catch (Exception ex2) - { - log.Debug("[LANClient] Scan error: " + ex2.Message); - } - } - } - catch (Exception ex3) - { - log.Error("[LANClient] Network scan failed: " + ex3.Message); - } - if (foundCount > 0) - { - log.Information($"[LANClient] ✓ Scan complete: Found {foundCount} new helper(s)"); - } - else - { - log.Information("[LANClient] Scan complete: No new helpers found"); - } - return foundCount; - } - - public LANHelperInfo? GetFirstAvailableHelper() - { - return (from h in discoveredHelpers.Values - where h.Status == LANHelperStatus.Available - orderby h.LastSeen - select h).FirstOrDefault(); - } - - public async Task SendChauffeurSummonAsync(string ipAddress, LANChauffeurSummon summonData) - { - log.Information("[LANClient] *** SENDING CHAUFFEUR_PICKUP_REQUEST to " + ipAddress + " ***"); - log.Information($"[LANClient] Summon data: Quester={summonData.QuesterName}@{summonData.QuesterWorldId}, Zone={summonData.ZoneId}"); - LANMessage message = new LANMessage(LANMessageType.CHAUFFEUR_PICKUP_REQUEST, summonData); - bool num = await SendMessageAsync(ipAddress, message); - if (num) - { - log.Information("[LANClient] ✓ CHAUFFEUR_PICKUP_REQUEST sent successfully to " + ipAddress); - } - else - { - log.Error("[LANClient] ✗ FAILED to send CHAUFFEUR_PICKUP_REQUEST to " + ipAddress); - } - return num; - } - - public void DisconnectAll() - { - log.Information("[LANClient] Disconnecting from all helpers..."); - foreach (KeyValuePair kvp in activeConnections.ToList()) - { - try - { - SendMessageAsync(kvp.Key, new LANMessage(LANMessageType.DISCONNECT)).Wait(1000); - kvp.Value.Close(); - } - catch - { - } - } - activeConnections.Clear(); - discoveredHelpers.Clear(); - } - - public void Dispose() - { - cancellationTokenSource?.Cancel(); - DisconnectAll(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/LANHelperServer.cs b/QuestionableCompanion/QuestionableCompanion.Services/LANHelperServer.cs deleted file mode 100644 index 1f80d62..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/LANHelperServer.cs +++ /dev/null @@ -1,577 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net; -using System.Net.Sockets; -using System.Numerics; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; -using Newtonsoft.Json; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class LANHelperServer : IDisposable -{ - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly IFramework framework; - - private readonly Configuration config; - - private readonly PartyInviteAutoAccept partyInviteAutoAccept; - - private readonly ICommandManager commandManager; - - private readonly Plugin plugin; - - private TcpListener? listener; - - private CancellationTokenSource? cancellationTokenSource; - - private readonly List connectedClients = new List(); - - private readonly Dictionary activeConnections = new Dictionary(); - - private readonly Dictionary knownQuesters = new Dictionary(); - - private bool isRunning; - - private string? cachedPlayerName; - - private ushort cachedWorldId; - - private DateTime lastCacheRefresh = DateTime.MinValue; - - private const int CACHE_REFRESH_SECONDS = 30; - - public bool IsRunning => isRunning; - - public int ConnectedClientCount => connectedClients.Count; - - public List GetConnectedClientNames() - { - DateTime now = DateTime.Now; - foreach (string s in (from kvp in knownQuesters - where (now - kvp.Value).TotalSeconds > 60.0 - select kvp.Key).ToList()) - { - knownQuesters.Remove(s); - } - return knownQuesters.Keys.ToList(); - } - - public LANHelperServer(IPluginLog log, IClientState clientState, IFramework framework, Configuration config, PartyInviteAutoAccept partyInviteAutoAccept, ICommandManager commandManager, Plugin plugin) - { - this.log = log; - this.clientState = clientState; - this.framework = framework; - this.config = config; - this.partyInviteAutoAccept = partyInviteAutoAccept; - this.commandManager = commandManager; - this.plugin = plugin; - } - - public void Start() - { - if (isRunning) - { - log.Warning("[LANServer] Server already running"); - return; - } - Task.Run(async delegate - { - try - { - framework.Update += OnFrameworkUpdate; - int retries = 5; - while (retries > 0) - { - try - { - listener = new TcpListener(IPAddress.Any, config.LANServerPort); - listener.Start(); - } - catch (SocketException ex) when (ex.SocketErrorCode == SocketError.AddressAlreadyInUse) - { - retries--; - if (retries == 0) - { - throw; - } - log.Warning($"[LANServer] Port {config.LANServerPort} in use, retrying in 1s... ({retries} retries left)"); - await Task.Delay(1000); - continue; - } - break; - } - cancellationTokenSource = new CancellationTokenSource(); - isRunning = true; - log.Information("[LANServer] ===== LAN HELPER SERVER STARTED (v2-DEBUG) ====="); - log.Information($"[LANServer] Listening on port {config.LANServerPort}"); - log.Information("[LANServer] Waiting for player info cache... (via framework update)"); - Task.Run(() => AcceptClientsAsync(cancellationTokenSource.Token)); - Task.Run(() => BroadcastPresenceAsync(cancellationTokenSource.Token)); - } - catch (Exception ex2) - { - log.Error("[LANServer] Failed to start server: " + ex2.Message); - isRunning = false; - framework.Update -= OnFrameworkUpdate; - } - }); - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (isRunning) - { - DateTime now = DateTime.Now; - if ((now - lastCacheRefresh).TotalSeconds >= 30.0) - { - log.Debug($"[LANServer] Framework.Update triggered cache refresh (last: {(now - lastCacheRefresh).TotalSeconds:F1}s ago)"); - RefreshPlayerCache(); - } - } - } - - private void RefreshPlayerCache() - { - try - { - log.Debug("[LANServer] RefreshPlayerCache called"); - IPlayerCharacter player = clientState.LocalPlayer; - if (player != null) - { - string newName = player.Name.ToString(); - ushort newWorldId = (ushort)player.HomeWorld.RowId; - if (cachedPlayerName != newName || cachedWorldId != newWorldId) - { - if (cachedPlayerName == null) - { - log.Information($"[LANServer] ✓ Player info cached: {newName}@{newWorldId}"); - } - else - { - log.Information($"[LANServer] Player info updated: {newName}@{newWorldId}"); - } - cachedPlayerName = newName; - cachedWorldId = newWorldId; - } - lastCacheRefresh = DateTime.Now; - } - else - { - log.Warning("[LANServer] RefreshPlayerCache: LocalPlayer is NULL!"); - } - lastCacheRefresh = DateTime.Now; - } - catch (Exception ex) - { - log.Error("[LANServer] RefreshPlayerCache ERROR: " + ex.Message); - log.Error("[LANServer] Stack: " + ex.StackTrace); - } - } - - private async Task BroadcastPresenceAsync(CancellationToken cancellationToken) - { - _ = 3; - try - { - using UdpClient udpClient = new UdpClient(); - udpClient.EnableBroadcast = true; - IPEndPoint broadcastEndpoint = new IPEndPoint(IPAddress.Broadcast, 47789); - if (cachedPlayerName == null) - { - return; - } - string json = JsonConvert.SerializeObject(new - { - Type = "HELPER_ANNOUNCE", - Name = cachedPlayerName, - WorldId = cachedWorldId, - Port = config.LANServerPort - }); - byte[] bytes = Encoding.UTF8.GetBytes(json); - for (int i = 0; i < 3; i++) - { - await udpClient.SendAsync(bytes, bytes.Length, broadcastEndpoint); - log.Information($"[LANServer] \ud83d\udce1 Broadcast announcement sent ({i + 1}/3)"); - await Task.Delay(500, cancellationToken); - } - while (!cancellationToken.IsCancellationRequested) - { - await Task.Delay(30000, cancellationToken); - await udpClient.SendAsync(bytes, bytes.Length, broadcastEndpoint); - log.Debug("[LANServer] Broadcast presence updated"); - } - } - catch (OperationCanceledException) - { - } - catch (Exception ex2) - { - log.Error("[LANServer] UDP broadcast error: " + ex2.Message); - } - } - - public void Stop() - { - if (!isRunning && listener == null) - { - return; - } - log.Information("[LANServer] Stopping server..."); - isRunning = false; - cancellationTokenSource?.Cancel(); - framework.Update -= OnFrameworkUpdate; - lock (connectedClients) - { - foreach (TcpClient client in connectedClients.ToList()) - { - try - { - if (client.Connected) - { - try - { - NetworkStream stream = client.GetStream(); - if (stream.CanWrite) - { - string json = JsonConvert.SerializeObject(new LANMessage(LANMessageType.DISCONNECT)); - byte[] bytes = Encoding.UTF8.GetBytes(json + "\n"); - stream.Write(bytes, 0, bytes.Length); - } - } - catch - { - } - } - client.Close(); - client.Dispose(); - } - catch - { - } - } - connectedClients.Clear(); - } - try - { - listener?.Stop(); - } - catch (Exception ex) - { - log.Warning("[LANServer] Error stopping listener: " + ex.Message); - } - listener = null; - log.Information("[LANServer] Server stopped"); - } - - private async Task AcceptClientsAsync(CancellationToken cancellationToken) - { - while (!cancellationToken.IsCancellationRequested && isRunning) - { - try - { - TcpClient client = await listener.AcceptTcpClientAsync(cancellationToken); - string clientIP = ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString(); - log.Information("[LANServer] Client connected from " + clientIP); - lock (connectedClients) - { - connectedClients.Add(client); - } - Task.Run(() => HandleClientAsync(client, cancellationToken), cancellationToken); - } - catch (OperationCanceledException) - { - break; - } - catch (Exception ex2) - { - log.Error("[LANServer] Error accepting client: " + ex2.Message); - await Task.Delay(1000, cancellationToken); - } - } - } - - private async Task HandleClientAsync(TcpClient client, CancellationToken cancellationToken) - { - string clientIP = ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString(); - try - { - using NetworkStream stream = client.GetStream(); - using StreamReader reader = new StreamReader(stream, Encoding.UTF8); - while (!cancellationToken.IsCancellationRequested && client.Connected) - { - string line = await reader.ReadLineAsync(cancellationToken); - if (string.IsNullOrEmpty(line)) - { - break; - } - try - { - LANMessage message = JsonConvert.DeserializeObject(line); - if (message != null) - { - await HandleMessageAsync(client, message, clientIP); - } - } - catch (JsonException ex) - { - log.Error("[LANServer] Invalid message from " + clientIP + ": " + ex.Message); - } - } - } - catch (Exception ex2) - { - log.Error("[LANServer] Client " + clientIP + " error: " + ex2.Message); - } - finally - { - log.Information("[LANServer] Client " + clientIP + " disconnected"); - lock (connectedClients) - { - connectedClients.Remove(client); - } - client.Close(); - } - } - - private async Task HandleMessageAsync(TcpClient client, LANMessage message, string clientIP) - { - log.Debug($"[LANServer] Received {message.Type} from {clientIP}"); - switch (message.Type) - { - case LANMessageType.REQUEST_HELPER: - await HandleHelperRequest(client, message); - break; - case LANMessageType.HELPER_STATUS: - await HandleStatusRequest(client); - break; - case LANMessageType.INVITE_NOTIFICATION: - await HandleInviteNotification(client, message); - break; - case LANMessageType.FOLLOW_COMMAND: - await HandleFollowCommand(client, message); - break; - case LANMessageType.CHAUFFEUR_PICKUP_REQUEST: - await HandleChauffeurSummon(message); - break; - case LANMessageType.HEARTBEAT: - { - LANHeartbeat heartbeatData = message.GetData(); - if (heartbeatData != null && heartbeatData.ClientRole == "Quester" && !string.IsNullOrEmpty(heartbeatData.ClientName)) - { - string questerKey = $"{heartbeatData.ClientName}@{heartbeatData.ClientWorldId}"; - knownQuesters[questerKey] = DateTime.Now; - } - SendMessage(client, new LANMessage(LANMessageType.HEARTBEAT)); - break; - } - default: - log.Debug($"[LANServer] Unhandled message type: {message.Type}"); - break; - } - } - - private async Task HandleHelperRequest(TcpClient client, LANMessage message) - { - LANHelperRequest request = message.GetData(); - if (request != null) - { - log.Information("[LANServer] Helper requested by " + request.QuesterName + " for duty: " + request.DutyName); - await SendCurrentStatus(client); - partyInviteAutoAccept.EnableForQuester(request.QuesterName); - log.Information("[LANServer] Auto-accept enabled for " + request.QuesterName); - } - } - - private async Task HandleStatusRequest(TcpClient client) - { - await SendCurrentStatus(client); - } - - private async Task SendCurrentStatus(TcpClient client) - { - try - { - log.Debug("[LANServer] SendCurrentStatus: Start"); - if (cachedPlayerName == null) - { - log.Warning("[LANServer] SendCurrentStatus: Player info not cached! Sending NotReady status."); - LANHelperStatusResponse notReadyStatus = new LANHelperStatusResponse - { - Name = "Unknown", - WorldId = 0, - Status = LANHelperStatus.Offline, - CurrentActivity = "Waiting for character login..." - }; - SendMessage(client, new LANMessage(LANMessageType.HELPER_STATUS, notReadyStatus)); - return; - } - log.Debug($"[LANServer] SendCurrentStatus: Cached Name={cachedPlayerName}, World={cachedWorldId}"); - LANHelperStatusResponse status = new LANHelperStatusResponse - { - Name = cachedPlayerName, - WorldId = cachedWorldId, - Status = LANHelperStatus.Available, - CurrentActivity = "Ready" - }; - log.Debug("[LANServer] SendCurrentStatus: Status object created"); - LANMessage msg = new LANMessage(LANMessageType.HELPER_STATUS, status); - log.Debug("[LANServer] SendCurrentStatus: LANMessage created"); - SendMessage(client, msg); - log.Debug("[LANServer] SendCurrentStatus: Message sent"); - } - catch (Exception ex) - { - log.Error("[LANServer] SendCurrentStatus CRASH: " + ex.Message); - log.Error("[LANServer] Stack: " + ex.StackTrace); - } - } - - private async Task HandleInviteNotification(TcpClient client, LANMessage message) - { - string questerName = message.GetData(); - log.Information("[LANServer] Invite notification from " + questerName); - SendMessage(client, new LANMessage(LANMessageType.INVITE_ACCEPTED)); - } - - private async Task HandleFollowCommand(TcpClient client, LANMessage message) - { - LANFollowCommand followCmd = message.GetData(); - if (followCmd != null) - { - ChauffeurModeService chauffeurSvc = plugin.GetChauffeurMode(); - if (chauffeurSvc == null) - { - log.Warning("[LANServer] No ChauffeurModeService available for position update"); - return; - } - if (chauffeurSvc.IsTransportingQuester) - { - log.Debug("[LANServer] Ignoring FOLLOW_COMMAND - Chauffeur Mode is actively transporting"); - return; - } - string questerName = config.AssignedQuesterForFollowing ?? "LAN Quester"; - chauffeurSvc.UpdateQuesterPositionFromLAN(followCmd.X, followCmd.Y, followCmd.Z, followCmd.TerritoryId, questerName); - log.Debug($"[LANServer] Updated quester position: ({followCmd.X:F2}, {followCmd.Y:F2}, {followCmd.Z:F2}) Zone={followCmd.TerritoryId}"); - SendMessage(client, new LANMessage(LANMessageType.FOLLOW_STARTED)); - } - } - - private void SendMessage(TcpClient client, LANMessage message) - { - try - { - if (client.Connected) - { - string json = JsonConvert.SerializeObject(message); - byte[] bytes = Encoding.UTF8.GetBytes(json + "\n"); - client.GetStream().Write(bytes, 0, bytes.Length); - } - } - catch (Exception ex) - { - log.Error("[LANServer] Failed to send message: " + ex.Message); - } - } - - public void BroadcastMessage(LANMessage message) - { - lock (connectedClients) - { - foreach (TcpClient client in connectedClients.ToList()) - { - SendMessage(client, message); - } - } - } - - private async Task HandleChauffeurSummon(LANMessage message) - { - LANChauffeurSummon summonData = message.GetData(); - if (summonData == null) - { - log.Error("[LANServer] HandleChauffeurSummon: Failed to deserialize summon data!"); - return; - } - log.Information("[LANServer] ========================================="); - log.Information("[LANServer] *** CHAUFFEUR PICKUP REQUEST RECEIVED ***"); - log.Information("[LANServer] ========================================="); - log.Information($"[LANServer] Quester: {summonData.QuesterName}@{summonData.QuesterWorldId}"); - log.Information($"[LANServer] Zone: {summonData.ZoneId}"); - log.Information($"[LANServer] Target: ({summonData.TargetX:F2}, {summonData.TargetY:F2}, {summonData.TargetZ:F2})"); - log.Information($"[LANServer] AttuneAetheryte: {summonData.IsAttuneAetheryte}"); - ChauffeurModeService chauffeur = plugin.GetChauffeurMode(); - if (chauffeur != null) - { - Vector3 targetPos = new Vector3(summonData.TargetX, summonData.TargetY, summonData.TargetZ); - Vector3 questerPos = new Vector3(summonData.QuesterX, summonData.QuesterY, summonData.QuesterZ); - log.Information("[LANServer] Calling ChauffeurModeService.StartHelperWorkflow..."); - await framework.RunOnFrameworkThread(delegate - { - chauffeur.StartHelperWorkflow(summonData.QuesterName, summonData.QuesterWorldId, summonData.ZoneId, targetPos, questerPos, summonData.IsAttuneAetheryte); - }); - log.Information("[LANServer] StartHelperWorkflow dispatched to framework thread"); - } - else - { - log.Error("[LANServer] ChauffeurModeService is null! Cannot start helper workflow."); - } - } - - public void SendChauffeurMountReady(string questerName, ushort questerWorldId) - { - LANChauffeurResponse response = new LANChauffeurResponse - { - QuesterName = questerName, - QuesterWorldId = questerWorldId - }; - LANMessage message = new LANMessage(LANMessageType.CHAUFFEUR_HELPER_READY_FOR_MOUNT, response); - log.Information($"[LANServer] Sending Chauffeur Mount Ready to connected clients for {questerName}@{questerWorldId}"); - lock (connectedClients) - { - foreach (TcpClient client in connectedClients.ToList()) - { - if (client.Connected) - { - SendMessage(client, message); - } - } - } - } - - public void SendChauffeurArrived(string questerName, ushort questerWorldId) - { - LANChauffeurResponse response = new LANChauffeurResponse - { - QuesterName = questerName, - QuesterWorldId = questerWorldId - }; - LANMessage message = new LANMessage(LANMessageType.CHAUFFEUR_HELPER_ARRIVED_DEST, response); - log.Information($"[LANServer] Sending Chauffeur Arrived to connected clients for {questerName}@{questerWorldId}"); - lock (connectedClients) - { - foreach (TcpClient client in connectedClients.ToList()) - { - if (client.Connected) - { - SendMessage(client, message); - } - } - } - } - - public void Dispose() - { - Stop(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/LifestreamIPC.cs b/QuestionableCompanion/QuestionableCompanion.Services/LifestreamIPC.cs deleted file mode 100644 index 2ca56d1..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/LifestreamIPC.cs +++ /dev/null @@ -1,262 +0,0 @@ -using System; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class LifestreamIPC : IDisposable -{ - private readonly IPluginLog log; - - private readonly IDalamudPluginInterface pluginInterface; - - private ICallGateSubscriber? isBusySubscriber; - - private ICallGateSubscriber? changeWorldSubscriber; - - private ICallGateSubscriber? changeWorldByIdSubscriber; - - private ICallGateSubscriber? abortSubscriber; - - private bool _isAvailable; - - private bool _ipcInitialized; - - private DateTime lastAvailabilityCheck = DateTime.MinValue; - - private const int AvailabilityCheckCooldownSeconds = 5; - - private bool hasPerformedInitialCheck; - - public bool IsAvailable - { - get - { - return _isAvailable; - } - private set - { - _isAvailable = value; - } - } - - public LifestreamIPC(IPluginLog log, IDalamudPluginInterface pluginInterface) - { - this.log = log; - this.pluginInterface = pluginInterface; - } - - private void InitializeIPC() - { - if (_ipcInitialized) - { - return; - } - try - { - isBusySubscriber = pluginInterface.GetIpcSubscriber("Lifestream.IsBusy"); - changeWorldSubscriber = pluginInterface.GetIpcSubscriber("Lifestream.ChangeWorld"); - changeWorldByIdSubscriber = pluginInterface.GetIpcSubscriber("Lifestream.ChangeWorldById"); - abortSubscriber = pluginInterface.GetIpcSubscriber("Lifestream.Abort"); - _ipcInitialized = true; - log.Debug("[LifestreamIPC] IPC subscribers initialized (lazy-loading enabled)"); - } - catch (Exception ex) - { - log.Error("[LifestreamIPC] Failed to initialize subscribers: " + ex.Message); - _isAvailable = false; - _ipcInitialized = false; - } - } - - private bool TryEnsureAvailable(bool forceCheck = false) - { - if (_isAvailable) - { - return true; - } - if (!_ipcInitialized) - { - InitializeIPC(); - } - if (!_ipcInitialized) - { - return false; - } - DateTime now = DateTime.Now; - if (!forceCheck && hasPerformedInitialCheck && (now - lastAvailabilityCheck).TotalSeconds < 5.0) - { - log.Debug($"[LifestreamIPC] Cooldown active - skipping check (last check: {(now - lastAvailabilityCheck).TotalSeconds:F1}s ago)"); - return false; - } - if (forceCheck) - { - log.Information("[LifestreamIPC] FORCED availability check requested"); - } - lastAvailabilityCheck = now; - hasPerformedInitialCheck = true; - try - { - if (isBusySubscriber == null) - { - log.Debug("[LifestreamIPC] isBusySubscriber is NULL - cannot check availability"); - _isAvailable = false; - return false; - } - log.Debug("[LifestreamIPC] Attempting to invoke Lifestream.IsBusy()..."); - bool testBusy = isBusySubscriber.InvokeFunc(); - if (!_isAvailable) - { - _isAvailable = true; - log.Information($"[LifestreamIPC] Lifestream is now available (Busy: {testBusy})"); - } - else - { - log.Debug($"[LifestreamIPC] Lifestream still available (Busy: {testBusy})"); - } - return true; - } - catch (Exception ex) - { - if (!hasPerformedInitialCheck) - { - log.Warning("[LifestreamIPC] First availability check FAILED: " + ex.GetType().Name + ": " + ex.Message); - } - else - { - log.Debug("[LifestreamIPC] Lifestream not yet available: " + ex.Message); - } - _isAvailable = false; - return false; - } - } - - public bool IsBusy() - { - TryEnsureAvailable(); - if (!_isAvailable || isBusySubscriber == null) - { - return false; - } - try - { - return isBusySubscriber.InvokeFunc(); - } - catch (Exception ex) - { - log.Error("[LifestreamIPC] Error checking busy status: " + ex.Message); - return false; - } - } - - public bool ForceCheckAvailability() - { - log.Information("[LifestreamIPC] ========================================"); - log.Information("[LifestreamIPC] === FORCING AVAILABILITY CHECK ==="); - log.Information("[LifestreamIPC] ========================================"); - bool result = TryEnsureAvailable(forceCheck: true); - log.Information($"[LifestreamIPC] Force check result: {result}"); - return result; - } - - public bool ChangeWorld(string worldName) - { - TryEnsureAvailable(); - log.Information("[LifestreamIPC] ========================================"); - log.Information("[LifestreamIPC] === CHANGE WORLD REQUEST ==="); - log.Information("[LifestreamIPC] ========================================"); - log.Information("[LifestreamIPC] Target World: '" + worldName + "'"); - log.Information($"[LifestreamIPC] IsAvailable: {_isAvailable}"); - log.Information($"[LifestreamIPC] changeWorldSubscriber != null: {changeWorldSubscriber != null}"); - if (!_isAvailable || changeWorldSubscriber == null) - { - log.Error("[LifestreamIPC] CANNOT CHANGE WORLD - Lifestream not available!"); - log.Error("[LifestreamIPC] Make sure Lifestream plugin is installed and enabled!"); - return false; - } - try - { - log.Information("[LifestreamIPC] Invoking Lifestream.ChangeWorld('" + worldName + "')..."); - bool num = changeWorldSubscriber.InvokeFunc(worldName); - if (num) - { - log.Information("[LifestreamIPC] ========================================"); - log.Information("[LifestreamIPC] WORLD CHANGE ACCEPTED: " + worldName); - log.Information("[LifestreamIPC] ========================================"); - } - else - { - log.Warning("[LifestreamIPC] ========================================"); - log.Warning("[LifestreamIPC] WORLD CHANGE REJECTED: " + worldName); - log.Warning("[LifestreamIPC] ========================================"); - log.Warning("[LifestreamIPC] Possible reasons:"); - log.Warning("[LifestreamIPC] - Lifestream is busy"); - log.Warning("[LifestreamIPC] - World name is invalid"); - log.Warning("[LifestreamIPC] - Cannot visit this world"); - } - return num; - } - catch (Exception ex) - { - log.Error("[LifestreamIPC] ========================================"); - log.Error("[LifestreamIPC] ERROR REQUESTING WORLD CHANGE!"); - log.Error("[LifestreamIPC] ========================================"); - log.Error("[LifestreamIPC] Error: " + ex.Message); - log.Error("[LifestreamIPC] Stack: " + ex.StackTrace); - return false; - } - } - - public bool ChangeWorldById(uint worldId) - { - TryEnsureAvailable(); - if (!_isAvailable || changeWorldByIdSubscriber == null) - { - log.Warning("[LifestreamIPC] Lifestream not available for world change"); - return false; - } - try - { - log.Information($"[LifestreamIPC] Requesting world change to ID: {worldId}"); - bool num = changeWorldByIdSubscriber.InvokeFunc(worldId); - if (num) - { - log.Information($"[LifestreamIPC] World change request accepted for ID: {worldId}"); - } - else - { - log.Warning($"[LifestreamIPC] World change request rejected for ID: {worldId}"); - } - return num; - } - catch (Exception ex) - { - log.Error("[LifestreamIPC] Error requesting world change by ID: " + ex.Message); - return false; - } - } - - public void Abort() - { - TryEnsureAvailable(); - if (!_isAvailable || abortSubscriber == null) - { - return; - } - try - { - abortSubscriber.InvokeAction(); - log.Information("[LifestreamIPC] Abort request sent to Lifestream"); - } - catch (Exception ex) - { - log.Error("[LifestreamIPC] Error aborting Lifestream: " + ex.Message); - } - } - - public void Dispose() - { - log.Information("[LifestreamIPC] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/MSQProgressionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/MSQProgressionService.cs deleted file mode 100644 index 91834ee..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/MSQProgressionService.cs +++ /dev/null @@ -1,510 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using QuestionableCompanion.Data; - -namespace QuestionableCompanion.Services; - -public class MSQProgressionService -{ - private readonly IDataManager dataManager; - - private readonly IPluginLog log; - - private readonly QuestDetectionService questDetectionService; - - private readonly IObjectTable objectTable; - - private readonly IFramework framework; - - private List? mainScenarioQuests; - - private Dictionary questNameCache = new Dictionary(); - - private Dictionary> questsByExpansion = new Dictionary>(); - - private static readonly uint[] MSQ_JOURNAL_GENRE_IDS = new uint[14] - { - 1u, 2u, 3u, 4u, 5u, 6u, 7u, 8u, 9u, 10u, - 11u, 12u, 13u, 14u - }; - - private const uint LAST_ARR_QUEST_ID = 65964u; - - private static readonly Dictionary JournalGenreToExpansion = new Dictionary - { - { - 1u, - MSQExpansionData.Expansion.ARealmReborn - }, - { - 2u, - MSQExpansionData.Expansion.ARealmReborn - }, - { - 3u, - MSQExpansionData.Expansion.Heavensward - }, - { - 4u, - MSQExpansionData.Expansion.Heavensward - }, - { - 5u, - MSQExpansionData.Expansion.Heavensward - }, - { - 6u, - MSQExpansionData.Expansion.Stormblood - }, - { - 7u, - MSQExpansionData.Expansion.Stormblood - }, - { - 8u, - MSQExpansionData.Expansion.Shadowbringers - }, - { - 9u, - MSQExpansionData.Expansion.Shadowbringers - }, - { - 10u, - MSQExpansionData.Expansion.Shadowbringers - }, - { - 11u, - MSQExpansionData.Expansion.Endwalker - }, - { - 12u, - MSQExpansionData.Expansion.Endwalker - }, - { - 13u, - MSQExpansionData.Expansion.Dawntrail - }, - { - 14u, - MSQExpansionData.Expansion.Dawntrail - } - }; - - public MSQProgressionService(IDataManager dataManager, IPluginLog log, QuestDetectionService questDetectionService, IObjectTable objectTable, IFramework framework) - { - this.dataManager = dataManager; - this.log = log; - this.questDetectionService = questDetectionService; - this.objectTable = objectTable; - this.framework = framework; - InitializeMSQData(); - framework.RunOnTick(delegate - { - DebugCurrentCharacterQuest(); - }, default(TimeSpan), 60); - } - - private void InitializeMSQData() - { - try - { - ExcelSheet questSheet = dataManager.GetExcelSheet(); - if (questSheet == null) - { - return; - } - questSheet.Count(); - int manualCount = 0; - foreach (Quest item in questSheet) - { - _ = item; - manualCount++; - } - List highIdQuests = questSheet.Where((Quest q) => q.RowId > 66000).ToList(); - if (highIdQuests.Count > 0) - { - highIdQuests.First(); - } - foreach (IGrouping item2 in (from q in questSheet - where q.RowId != 0 - group q by q.JournalGenre.RowId into g - orderby g.Key - select g).Take(10)) - { - _ = item2; - } - mainScenarioQuests = (from q in questSheet - where ((ReadOnlySpan)MSQ_JOURNAL_GENRE_IDS).Contains(q.JournalGenre.RowId) - orderby q.RowId - select q).ToList(); - if (mainScenarioQuests.Count == 0) - { - return; - } - foreach (Quest quest in mainScenarioQuests.Take(20)) - { - try - { - quest.Expansion.Value.Name.ToString(); - } - catch (Exception) - { - } - } - foreach (IGrouping group in from q in mainScenarioQuests - group q by q.JournalGenre.RowId into g - orderby g.Key - select g) - { - uint genreId = group.Key; - JournalGenreToExpansion.GetValueOrDefault(genreId, MSQExpansionData.Expansion.ARealmReborn); - group.First().JournalGenre.Value.Name.ToString(); - string.Join(", ", from q in @group.Take(3) - select q.RowId); - } - foreach (IGrouping item3 in from q in mainScenarioQuests - group q by JournalGenreToExpansion.GetValueOrDefault(q.JournalGenre.RowId, MSQExpansionData.Expansion.ARealmReborn) into g - orderby g.Key - select g) - { - _ = item3; - } - MSQExpansionData.ClearQuests(); - foreach (Quest quest2 in mainScenarioQuests) - { - string name = quest2.Name.ToString(); - if (!string.IsNullOrEmpty(name)) - { - questNameCache[quest2.RowId] = name; - } - MSQExpansionData.Expansion expansion = JournalGenreToExpansion.GetValueOrDefault(quest2.JournalGenre.RowId, MSQExpansionData.Expansion.ARealmReborn); - if (quest2.JournalGenre.RowId != 2 || quest2.RowId <= 65964) - { - MSQExpansionData.RegisterQuest(quest2.RowId, expansion); - string shortName = MSQExpansionData.GetExpansionShortName(expansion); - if (!questsByExpansion.ContainsKey(shortName)) - { - questsByExpansion[shortName] = new List(); - } - questsByExpansion[shortName].Add(quest2); - } - } - foreach (MSQExpansionData.Expansion allExpansion in MSQExpansionData.GetAllExpansions()) - { - string shortName2 = MSQExpansionData.GetExpansionShortName(allExpansion); - List quests = questsByExpansion.GetValueOrDefault(shortName2); - if ((quests?.Count ?? 0) > 0 && quests != null) - { - string.Join(", ", from q in quests.Take(5) - select q.RowId); - } - } - } - catch (Exception) - { - } - } - - public (uint questId, string questName) GetLastCompletedMSQ(string characterName) - { - if (mainScenarioQuests == null || mainScenarioQuests.Count == 0) - { - return (questId: 0u, questName: "—"); - } - try - { - List completedQuests = questDetectionService.GetAllCompletedQuestIds(); - Quest lastMSQ = (from q in mainScenarioQuests - where completedQuests.Contains(q.RowId) - orderby q.RowId descending - select q).FirstOrDefault(); - if (lastMSQ.RowId != 0) - { - string questName = questNameCache.GetValueOrDefault(lastMSQ.RowId, "Unknown Quest"); - return (questId: lastMSQ.RowId, questName: questName); - } - } - catch (Exception) - { - } - return (questId: 0u, questName: "—"); - } - - public float GetMSQCompletionPercentage() - { - if (mainScenarioQuests == null || mainScenarioQuests.Count == 0) - { - return 0f; - } - try - { - List completedQuests = questDetectionService.GetAllCompletedQuestIds(); - return (float)mainScenarioQuests.Count((Quest q) => completedQuests.Contains(q.RowId)) / (float)mainScenarioQuests.Count * 100f; - } - catch (Exception) - { - return 0f; - } - } - - public int GetTotalMSQCount() - { - return mainScenarioQuests?.Count ?? 0; - } - - public int GetCompletedMSQCount() - { - if (mainScenarioQuests == null || mainScenarioQuests.Count == 0) - { - return 0; - } - try - { - List completedQuests = questDetectionService.GetAllCompletedQuestIds(); - return mainScenarioQuests.Count((Quest q) => completedQuests.Contains(q.RowId)); - } - catch (Exception) - { - return 0; - } - } - - public string GetQuestName(uint questId) - { - return questNameCache.GetValueOrDefault(questId, "Unknown Quest"); - } - - public bool IsMSQ(uint questId) - { - return mainScenarioQuests?.Any((Quest q) => q.RowId == questId) ?? false; - } - - public ExpansionInfo? GetExpansionForQuest(uint questId) - { - MSQExpansionData.Expansion expansion = MSQExpansionData.GetExpansionForQuest(questId); - return new ExpansionInfo - { - Name = MSQExpansionData.GetExpansionName(expansion), - ShortName = MSQExpansionData.GetExpansionShortName(expansion), - MinQuestId = 0u, - MaxQuestId = 0u, - ExpectedQuestCount = MSQExpansionData.GetExpectedQuestCount(expansion) - }; - } - - public List GetExpansions() - { - return (from exp in MSQExpansionData.GetAllExpansions() - select new ExpansionInfo - { - Name = MSQExpansionData.GetExpansionName(exp), - ShortName = MSQExpansionData.GetExpansionShortName(exp), - MinQuestId = 0u, - MaxQuestId = 0u, - ExpectedQuestCount = MSQExpansionData.GetExpectedQuestCount(exp) - }).ToList(); - } - - public (int completed, int total) GetExpansionProgress(string expansionShortName) - { - List completedQuests = questDetectionService.GetAllCompletedQuestIds(); - List? obj = questsByExpansion.GetValueOrDefault(expansionShortName) ?? new List(); - int completed = obj.Count((Quest q) => completedQuests.Contains(q.RowId)); - int total = obj.Count; - return (completed: completed, total: total); - } - - public ExpansionInfo? GetCurrentExpansion() - { - try - { - List completedQuests = questDetectionService.GetAllCompletedQuestIds(); - (MSQExpansionData.Expansion expansion, string debugInfo) currentExpansionFromGameWithDebug = MSQExpansionData.GetCurrentExpansionFromGameWithDebug(); - MSQExpansionData.Expansion gameExpansion = currentExpansionFromGameWithDebug.expansion; - string[] array = currentExpansionFromGameWithDebug.debugInfo.Split('\n'); - for (int i = 0; i < array.Length; i++) - { - string.IsNullOrWhiteSpace(array[i]); - } - MSQExpansionData.Expansion analysisExpansion = MSQExpansionData.GetCurrentExpansion(completedQuests); - array = MSQExpansionData.GetExpansionDetectionDebugInfo(completedQuests).Split('\n'); - for (int i = 0; i < array.Length; i++) - { - string.IsNullOrWhiteSpace(array[i]); - } - MSQExpansionData.Expansion finalExpansion = gameExpansion; - if (gameExpansion == MSQExpansionData.Expansion.ARealmReborn && analysisExpansion != MSQExpansionData.Expansion.ARealmReborn) - { - finalExpansion = analysisExpansion; - } - return new ExpansionInfo - { - Name = MSQExpansionData.GetExpansionName(finalExpansion), - ShortName = MSQExpansionData.GetExpansionShortName(finalExpansion), - MinQuestId = 0u, - MaxQuestId = 0u, - ExpectedQuestCount = MSQExpansionData.GetExpectedQuestCount(finalExpansion) - }; - } - catch (Exception) - { - return GetExpansions().FirstOrDefault(); - } - } - - public Dictionary GetExpansionProgressForCharacter(List completedQuestIds) - { - Dictionary result = new Dictionary(); - foreach (ExpansionInfo exp in GetExpansions()) - { - List expansionQuests = questsByExpansion.GetValueOrDefault(exp.ShortName) ?? new List(); - int completed = expansionQuests.Count((Quest q) => completedQuestIds.Contains(q.RowId)); - result[exp.ShortName] = (completed, expansionQuests.Count); - } - return result; - } - - public List GetAllMSQQuests() - { - return mainScenarioQuests ?? new List(); - } - - public Dictionary GetExpansionProgress() - { - Dictionary result = new Dictionary(); - List completedQuests = questDetectionService.GetAllCompletedQuestIds(); - foreach (MSQExpansionData.Expansion expansion in MSQExpansionData.GetAllExpansions()) - { - ExpansionProgress progress = MSQExpansionData.GetExpansionProgress(completedQuests, expansion); - result[progress.ExpansionName] = new ExpansionProgressInfo - { - ExpansionName = progress.ExpansionName, - ShortName = progress.ExpansionShortName, - TotalQuests = progress.ExpectedCount, - CompletedQuests = progress.CompletedCount, - Percentage = progress.Percentage - }; - } - return result; - } - - public Dictionary GetExpansionProgressForCharacter(List completedQuestIds) - { - Dictionary result = new Dictionary(); - uint result2; - List completedQuestIdsUint = (from id in completedQuestIds - select uint.TryParse(id, out result2) ? result2 : 0u into id - where id != 0 - select id).ToList(); - foreach (MSQExpansionData.Expansion expansion in MSQExpansionData.GetAllExpansions()) - { - ExpansionProgress progress = MSQExpansionData.GetExpansionProgress(completedQuestIdsUint, expansion); - result[progress.ExpansionName] = new ExpansionProgressInfo - { - ExpansionName = progress.ExpansionName, - ShortName = progress.ExpansionShortName, - TotalQuests = progress.ExpectedCount, - CompletedQuests = progress.CompletedCount, - Percentage = progress.Percentage - }; - } - return result; - } - - public ExpansionInfo? GetCurrentExpansion(uint lastCompletedQuestId) - { - MSQExpansionData.Expansion expansion = MSQExpansionData.GetExpansionForQuest(lastCompletedQuestId); - return new ExpansionInfo - { - Name = MSQExpansionData.GetExpansionName(expansion), - ShortName = MSQExpansionData.GetExpansionShortName(expansion), - MinQuestId = 0u, - MaxQuestId = 0u, - ExpectedQuestCount = MSQExpansionData.GetExpectedQuestCount(expansion) - }; - } - - private MSQExpansionData.Expansion ConvertLuminaExpansionToOurs(uint luminaExpansionId) - { - return luminaExpansionId switch - { - 0u => MSQExpansionData.Expansion.ARealmReborn, - 1u => MSQExpansionData.Expansion.Heavensward, - 2u => MSQExpansionData.Expansion.Stormblood, - 3u => MSQExpansionData.Expansion.Shadowbringers, - 4u => MSQExpansionData.Expansion.Endwalker, - 5u => MSQExpansionData.Expansion.Dawntrail, - _ => MSQExpansionData.Expansion.ARealmReborn, - }; - } - - public void DebugCurrentCharacterQuest() - { - try - { - IPlayerCharacter player = objectTable.LocalPlayer; - if (player == null) - { - framework.RunOnTick(delegate - { - DebugCurrentCharacterQuest(); - }, default(TimeSpan), 60); - return; - } - _ = player.Name.TextValue; - player.HomeWorld.Value.Name.ToString(); - ExcelSheet questSheet = dataManager.GetExcelSheet(); - if (questSheet == null) - { - return; - } - List completedMSQQuests = new List(); - foreach (Quest quest in questSheet) - { - if (((ReadOnlySpan)MSQ_JOURNAL_GENRE_IDS).Contains(quest.JournalGenre.RowId) && QuestManager.IsQuestComplete((ushort)quest.RowId)) - { - completedMSQQuests.Add(quest); - } - } - if (completedMSQQuests.Count == 0) - { - return; - } - Quest questData = completedMSQQuests.OrderByDescending((Quest q) => q.RowId).First(); - try - { - questData.JournalGenre.Value.Name.ToString(); - } - catch - { - } - try - { - questData.Expansion.Value.Name.ToString(); - } - catch - { - } - foreach (Quest item in completedMSQQuests.OrderByDescending((Quest q) => q.RowId).Take(10).ToList()) - { - _ = item; - } - foreach (IGrouping item2 in from q in completedMSQQuests - group q by JournalGenreToExpansion.GetValueOrDefault(q.JournalGenre.RowId, MSQExpansionData.Expansion.ARealmReborn) into g - orderby g.Key - select g) - { - _ = item2; - } - } - catch (Exception) - { - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/MemoryHelper.cs b/QuestionableCompanion/QuestionableCompanion.Services/MemoryHelper.cs deleted file mode 100644 index 7318241..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/MemoryHelper.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Text; -using Dalamud.Hooking; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.Character; -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI; - -namespace QuestionableCompanion.Services; - -public class MemoryHelper : IDisposable -{ - public unsafe delegate void RidePillionDelegate(BattleChara* target, int seatIndex); - - private readonly IPluginLog log; - - private Hook? ridePillionHook; - - private const string RidePillionSignature = "48 85 C9 0F 84 ?? ?? ?? ?? 48 89 6C 24 ?? 56 48 83 EC"; - - public RidePillionDelegate? RidePillion { get; private set; } - - public unsafe MemoryHelper(IPluginLog log, IGameInteropProvider gameInterop) - { - this.log = log; - try - { - ridePillionHook = gameInterop.HookFromSignature("48 85 C9 0F 84 ?? ?? ?? ?? 48 89 6C 24 ?? 56 48 83 EC", RidePillionDetour); - if (ridePillionHook != null && ridePillionHook.Address != IntPtr.Zero) - { - log.Information($"[MemoryHelper] RidePillion function found at 0x{ridePillionHook.Address:X}"); - RidePillion = ridePillionHook.Original; - log.Information("[MemoryHelper] RidePillion function initialized successfully"); - } - else - { - log.Warning("[MemoryHelper] RidePillion function not found - will fall back to commands"); - } - } - catch (Exception ex) - { - log.Error("[MemoryHelper] Error initializing RidePillion: " + ex.Message); - } - } - - private unsafe void RidePillionDetour(BattleChara* target, int seatIndex) - { - ridePillionHook?.Original(target, seatIndex); - } - - public unsafe bool ExecuteRidePillion(BattleChara* target, int seatIndex = 10) - { - if (RidePillion == null) - { - log.Warning("[MemoryHelper] RidePillion function not available"); - return false; - } - if (target == null) - { - log.Error("[MemoryHelper] RidePillion target is null"); - return false; - } - try - { - log.Information($"[MemoryHelper] Executing RidePillion on target (seat {seatIndex})"); - RidePillion(target, seatIndex); - return true; - } - catch (Exception ex) - { - log.Error("[MemoryHelper] RidePillion execution error: " + ex.Message); - return false; - } - } - - public unsafe bool SendChatMessage(string message) - { - try - { - UIModule* uiModule = UIModule.Instance(); - if (uiModule == null) - { - log.Error("[MemoryHelper] UIModule is null!"); - return false; - } - byte[] bytes = Encoding.UTF8.GetBytes(message); - nint mem1 = Marshal.AllocHGlobal(400); - nint mem2 = Marshal.AllocHGlobal(bytes.Length + 30); - try - { - Marshal.Copy(bytes, 0, mem2, bytes.Length); - Marshal.WriteByte(mem2 + bytes.Length, 0); - Marshal.WriteInt64(mem1, ((IntPtr)mem2).ToInt64()); - Marshal.WriteInt64(mem1 + 8, 64L); - Marshal.WriteInt64(mem1 + 8 + 8, bytes.Length + 1); - Marshal.WriteInt64(mem1 + 8 + 8 + 8, 0L); - uiModule->ProcessChatBoxEntry((Utf8String*)mem1); - log.Information("[MemoryHelper] Chat message sent: " + message); - return true; - } - finally - { - Marshal.FreeHGlobal(mem1); - Marshal.FreeHGlobal(mem2); - } - } - catch (Exception ex) - { - log.Error("[MemoryHelper] SendChatMessage error: " + ex.Message); - return false; - } - } - - public void Dispose() - { - ridePillionHook?.Dispose(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/MovementMonitorService.cs b/QuestionableCompanion/QuestionableCompanion.Services/MovementMonitorService.cs deleted file mode 100644 index f01725c..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/MovementMonitorService.cs +++ /dev/null @@ -1,167 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class MovementMonitorService : IDisposable -{ - private readonly IClientState clientState; - - private readonly IPluginLog log; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private readonly Configuration config; - - private ChauffeurModeService? chauffeurMode; - - private Vector3 lastPosition = Vector3.Zero; - - private DateTime lastMovementTime = DateTime.Now; - - private DateTime lastCheckTime = DateTime.MinValue; - - private bool isMonitoring; - - private const float MovementThreshold = 0.1f; - - public bool IsMonitoring => isMonitoring; - - public MovementMonitorService(IClientState clientState, IPluginLog log, ICommandManager commandManager, IFramework framework, Configuration config) - { - this.clientState = clientState; - this.log = log; - this.commandManager = commandManager; - this.framework = framework; - this.config = config; - log.Information("[MovementMonitor] Service initialized"); - } - - public void SetChauffeurMode(ChauffeurModeService service) - { - chauffeurMode = service; - log.Information("[MovementMonitor] ChauffeurMode service linked for failsafe"); - } - - public void StartMonitoring() - { - if (!isMonitoring) - { - isMonitoring = true; - lastMovementTime = DateTime.Now; - lastCheckTime = DateTime.Now; - lastPosition = Vector3.Zero; - framework.Update += OnFrameworkUpdate; - log.Information("[MovementMonitor] Movement monitoring started"); - } - } - - public void StopMonitoring() - { - if (isMonitoring) - { - isMonitoring = false; - framework.Update -= OnFrameworkUpdate; - log.Information("[MovementMonitor] Movement monitoring stopped"); - } - } - - public void ResetMovementTimer() - { - lastMovementTime = DateTime.Now; - if (clientState.LocalPlayer != null) - { - lastPosition = clientState.LocalPlayer.Position; - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (!isMonitoring) - { - return; - } - DateTime now = DateTime.Now; - if ((now - lastCheckTime).TotalSeconds < (double)config.MovementCheckInterval) - { - return; - } - lastCheckTime = now; - if (clientState.LocalPlayer == null || !clientState.IsLoggedIn) - { - return; - } - try - { - Vector3 currentPosition = clientState.LocalPlayer.Position; - if (lastPosition == Vector3.Zero) - { - lastPosition = currentPosition; - lastMovementTime = now; - return; - } - if (Vector3.Distance(lastPosition, currentPosition) > 0.1f) - { - lastMovementTime = now; - lastPosition = currentPosition; - return; - } - double timeSinceMovement = (now - lastMovementTime).TotalSeconds; - if (!(timeSinceMovement >= (double)config.MovementStuckThreshold)) - { - return; - } - log.Warning("[MovementMonitor] ========================================"); - log.Warning("[MovementMonitor] === PLAYER STUCK DETECTED ==="); - log.Warning("[MovementMonitor] ========================================"); - log.Warning($"[MovementMonitor] No movement for {timeSinceMovement:F1} seconds"); - log.Warning($"[MovementMonitor] Position: {currentPosition}"); - if (chauffeurMode != null && (chauffeurMode.IsWaitingForHelper || chauffeurMode.IsTransportingQuester)) - { - log.Warning("[MovementMonitor] FAILSAFE: Resetting Chauffeur Mode due to stuck detection!"); - chauffeurMode.ResetChauffeurState(); - } - log.Warning("[MovementMonitor] Sending /qst reload command..."); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/qst reload"); - log.Information("[MovementMonitor] /qst reload command sent"); - } - catch (Exception ex2) - { - log.Error("[MovementMonitor] Failed to send reload command: " + ex2.Message); - } - }, TimeSpan.FromMilliseconds(100L, 0L)); - framework.RunOnTick(delegate - { - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[MovementMonitor] /qst start command sent"); - } - catch (Exception ex2) - { - log.Error("[MovementMonitor] Failed to send start command: " + ex2.Message); - } - }, TimeSpan.FromSeconds(1L)); - lastMovementTime = now; - lastPosition = currentPosition; - log.Information("[MovementMonitor] Movement timer reset - monitoring continues..."); - } - catch (Exception ex) - { - log.Error("[MovementMonitor] Error checking movement: " + ex.Message); - } - } - - public void Dispose() - { - StopMonitoring(); - log.Information("[MovementMonitor] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/MultiClientIPC.cs b/QuestionableCompanion/QuestionableCompanion.Services/MultiClientIPC.cs deleted file mode 100644 index eae4473..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/MultiClientIPC.cs +++ /dev/null @@ -1,270 +0,0 @@ -using System; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class MultiClientIPC : IDisposable -{ - private readonly IDalamudPluginInterface pluginInterface; - - private readonly IPluginLog log; - - private readonly ICallGateProvider requestHelperProvider; - - private readonly ICallGateProvider dismissHelperProvider; - - private readonly ICallGateProvider helperAvailableProvider; - - private readonly ICallGateProvider chatMessageProvider; - - private readonly ICallGateProvider passengerMountedProvider; - - private readonly ICallGateProvider helperStatusProvider; - - private readonly ICallGateSubscriber requestHelperSubscriber; - - private readonly ICallGateSubscriber dismissHelperSubscriber; - - private readonly ICallGateSubscriber helperAvailableSubscriber; - - private readonly ICallGateSubscriber chatMessageSubscriber; - - private readonly ICallGateSubscriber passengerMountedSubscriber; - - private readonly ICallGateSubscriber helperStatusSubscriber; - - public event Action? OnHelperRequested; - - public event Action? OnHelperDismissed; - - public event Action? OnHelperAvailable; - - public event Action? OnChatMessageReceived; - - public event Action? OnPassengerMounted; - - public event Action? OnHelperStatusUpdate; - - public MultiClientIPC(IDalamudPluginInterface pluginInterface, IPluginLog log) - { - this.pluginInterface = pluginInterface; - this.log = log; - requestHelperProvider = pluginInterface.GetIpcProvider("QSTCompanion.RequestHelper"); - dismissHelperProvider = pluginInterface.GetIpcProvider("QSTCompanion.DismissHelper"); - helperAvailableProvider = pluginInterface.GetIpcProvider("QSTCompanion.HelperAvailable"); - chatMessageProvider = pluginInterface.GetIpcProvider("QSTCompanion.ChatMessage"); - passengerMountedProvider = pluginInterface.GetIpcProvider("QSTCompanion.PassengerMounted"); - helperStatusProvider = pluginInterface.GetIpcProvider("QSTCompanion.HelperStatus"); - requestHelperSubscriber = pluginInterface.GetIpcSubscriber("QSTCompanion.RequestHelper"); - dismissHelperSubscriber = pluginInterface.GetIpcSubscriber("QSTCompanion.DismissHelper"); - helperAvailableSubscriber = pluginInterface.GetIpcSubscriber("QSTCompanion.HelperAvailable"); - chatMessageSubscriber = pluginInterface.GetIpcSubscriber("QSTCompanion.ChatMessage"); - passengerMountedSubscriber = pluginInterface.GetIpcSubscriber("QSTCompanion.PassengerMounted"); - helperStatusSubscriber = pluginInterface.GetIpcSubscriber("QSTCompanion.HelperStatus"); - requestHelperProvider.RegisterFunc(delegate(string name, ushort worldId) - { - OnRequestHelperReceived(name, worldId); - return (object?)null; - }); - dismissHelperProvider.RegisterFunc(delegate - { - OnDismissHelperReceived(); - return (object?)null; - }); - helperAvailableProvider.RegisterFunc(delegate(string name, ushort worldId) - { - OnHelperAvailableReceived(name, worldId); - return (object?)null; - }); - chatMessageProvider.RegisterFunc(delegate(string message) - { - OnChatMessageReceivedInternal(message); - return (object?)null; - }); - passengerMountedProvider.RegisterFunc(delegate(string questerName, ushort questerWorld) - { - OnPassengerMountedReceived(questerName, questerWorld); - return (object?)null; - }); - helperStatusProvider.RegisterFunc(delegate(string helperName, ushort helperWorld, string status) - { - OnHelperStatusReceived(helperName, helperWorld, status); - return (object?)null; - }); - log.Information("[MultiClientIPC] ✅ IPC initialized successfully"); - } - - public void RequestHelper(string characterName, ushort worldId) - { - try - { - log.Information($"[MultiClientIPC] Broadcasting helper request: {characterName}@{worldId}"); - requestHelperSubscriber.InvokeFunc(characterName, worldId); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Failed to send helper request: " + ex.Message); - } - } - - public void DismissHelper() - { - try - { - log.Information("[MultiClientIPC] Broadcasting helper dismiss"); - dismissHelperSubscriber.InvokeFunc(); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Failed to send helper dismiss: " + ex.Message); - } - } - - private void OnRequestHelperReceived(string characterName, ushort worldId) - { - try - { - log.Information($"[MultiClientIPC] Received helper request: {characterName}@{worldId}"); - this.OnHelperRequested?.Invoke(characterName, worldId); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error handling helper request: " + ex.Message); - } - } - - private void OnDismissHelperReceived() - { - try - { - log.Information("[MultiClientIPC] Received helper dismiss"); - this.OnHelperDismissed?.Invoke(); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error handling helper dismiss: " + ex.Message); - } - } - - public void AnnounceHelperAvailable(string characterName, ushort worldId) - { - try - { - log.Information($"[MultiClientIPC] Broadcasting helper availability: {characterName}@{worldId}"); - helperAvailableSubscriber.InvokeFunc(characterName, worldId); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Failed to announce helper: " + ex.Message); - } - } - - private void OnHelperAvailableReceived(string characterName, ushort worldId) - { - try - { - log.Information($"[MultiClientIPC] Received helper available: {characterName}@{worldId}"); - this.OnHelperAvailable?.Invoke(characterName, worldId); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error handling helper available: " + ex.Message); - } - } - - public void SendChatMessage(string message) - { - try - { - log.Information("[MultiClientIPC] Broadcasting chat message: " + message); - chatMessageSubscriber.InvokeFunc(message); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Failed to send chat message: " + ex.Message); - } - } - - private void OnChatMessageReceivedInternal(string message) - { - try - { - log.Information("[MultiClientIPC] Received chat message: " + message); - this.OnChatMessageReceived?.Invoke(message); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error handling chat message: " + ex.Message); - } - } - - public void SendPassengerMounted(string questerName, ushort questerWorld) - { - try - { - log.Information($"[MultiClientIPC] Broadcasting passenger mounted: {questerName}@{questerWorld}"); - passengerMountedSubscriber.InvokeFunc(questerName, questerWorld); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Failed to send passenger mounted: " + ex.Message); - } - } - - private void OnPassengerMountedReceived(string questerName, ushort questerWorld) - { - try - { - log.Information($"[MultiClientIPC] Received passenger mounted: {questerName}@{questerWorld}"); - this.OnPassengerMounted?.Invoke(questerName, questerWorld); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error handling passenger mounted: " + ex.Message); - } - } - - public void BroadcastHelperStatus(string helperName, ushort worldId, string status) - { - try - { - log.Debug($"[MultiClientIPC] Broadcasting helper status: {helperName}@{worldId} = {status}"); - helperStatusSubscriber.InvokeFunc(helperName, worldId, status); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Failed to broadcast helper status: " + ex.Message); - } - } - - private void OnHelperStatusReceived(string helperName, ushort helperWorld, string status) - { - try - { - log.Debug($"[MultiClientIPC] Received helper status: {helperName}@{helperWorld} = {status}"); - this.OnHelperStatusUpdate?.Invoke(helperName, helperWorld, status); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error handling helper status: " + ex.Message); - } - } - - public void Dispose() - { - try - { - requestHelperProvider.UnregisterFunc(); - dismissHelperProvider.UnregisterFunc(); - helperAvailableProvider.UnregisterFunc(); - chatMessageProvider.UnregisterFunc(); - helperStatusProvider.UnregisterFunc(); - } - catch (Exception ex) - { - log.Error("[MultiClientIPC] Error during dispose: " + ex.Message); - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/PartyInviteAutoAccept.cs b/QuestionableCompanion/QuestionableCompanion.Services/PartyInviteAutoAccept.cs deleted file mode 100644 index eb9f48a..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/PartyInviteAutoAccept.cs +++ /dev/null @@ -1,152 +0,0 @@ -using System; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Component.GUI; - -namespace QuestionableCompanion.Services; - -public class PartyInviteAutoAccept : IDisposable -{ - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly IGameGui gameGui; - - private readonly IPartyList partyList; - - private readonly Configuration configuration; - - private bool shouldAutoAccept; - - private DateTime autoAcceptUntil = DateTime.MinValue; - - private bool hasLoggedAlwaysAccept; - - public PartyInviteAutoAccept(IPluginLog log, IFramework framework, IGameGui gameGui, IPartyList partyList, Configuration configuration) - { - this.log = log; - this.framework = framework; - this.gameGui = gameGui; - this.partyList = partyList; - this.configuration = configuration; - framework.Update += OnFrameworkUpdate; - log.Information("[PartyInviteAutoAccept] Initialized"); - } - - public void EnableAutoAccept() - { - if (!configuration.IsHighLevelHelper && !configuration.IsQuester) - { - log.Debug("[PartyInviteAutoAccept] Not a helper or quester, ignoring auto-accept request"); - return; - } - shouldAutoAccept = true; - autoAcceptUntil = DateTime.Now.AddSeconds(30.0); - string role = (configuration.IsHighLevelHelper ? "Helper" : "Quester"); - log.Information("[PartyInviteAutoAccept] Auto-accept enabled for 30 seconds (" + role + ")"); - log.Information($"[PartyInviteAutoAccept] Will accept until: {autoAcceptUntil:HH:mm:ss}"); - log.Information("[PartyInviteAutoAccept] Will accept ALL party invites during this time!"); - } - - public void EnableForQuester(string questerName) - { - shouldAutoAccept = true; - autoAcceptUntil = DateTime.Now.AddSeconds(60.0); - log.Information("[PartyInviteAutoAccept] Auto-accept enabled for quester: " + questerName); - log.Information("[PartyInviteAutoAccept] Will accept invites for 60 seconds"); - } - - private unsafe void OnFrameworkUpdate(IFramework framework) - { - bool shouldAcceptNow = false; - if (configuration.IsHighLevelHelper && configuration.AlwaysAutoAcceptInvites) - { - if (!hasLoggedAlwaysAccept) - { - log.Information("[PartyInviteAutoAccept] === ALWAYS AUTO-ACCEPT ENABLED ==="); - log.Information("[PartyInviteAutoAccept] Helper will continuously accept ALL party invites"); - log.Information("[PartyInviteAutoAccept] This mode is ALWAYS ON (no timeout)"); - hasLoggedAlwaysAccept = true; - } - shouldAcceptNow = true; - } - else if (shouldAutoAccept) - { - if (hasLoggedAlwaysAccept) - { - log.Information("[PartyInviteAutoAccept] Always auto-accept disabled"); - hasLoggedAlwaysAccept = false; - } - if (DateTime.Now > autoAcceptUntil) - { - shouldAutoAccept = false; - log.Information("[PartyInviteAutoAccept] Auto-accept window expired"); - return; - } - shouldAcceptNow = true; - } - else if (hasLoggedAlwaysAccept) - { - log.Information("[PartyInviteAutoAccept] Always auto-accept disabled"); - hasLoggedAlwaysAccept = false; - } - if (!shouldAcceptNow) - { - return; - } - try - { - string[] obj = new string[6] { "SelectYesno", "SelectYesNo", "_PartyInvite", "PartyInvite", "SelectString", "_Notification" }; - nint addonPtr = IntPtr.Zero; - string[] array = obj; - foreach (string name in array) - { - addonPtr = (nint)gameGui.GetAddonByName(name); - if (addonPtr != IntPtr.Zero) - { - break; - } - } - if (addonPtr != IntPtr.Zero) - { - AtkUnitBase* addon = (AtkUnitBase*)addonPtr; - if (addon == null) - { - log.Warning("[PartyInviteAutoAccept] Addon pointer is null!"); - } - else if (addon->IsVisible) - { - AtkValue* values = stackalloc AtkValue[1]; - *values = new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 0 - }; - addon->FireCallback(1u, values); - AtkValue* values2 = stackalloc AtkValue[2]; - *values2 = new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 0 - }; - values2[1] = new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.UInt, - UInt = 0u - }; - addon->FireCallback(2u, values2); - } - } - } - catch (Exception ex) - { - log.Error("[PartyInviteAutoAccept] Error: " + ex.Message); - log.Error("[PartyInviteAutoAccept] Stack: " + ex.StackTrace); - } - } - - public void Dispose() - { - framework.Update -= OnFrameworkUpdate; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/PartyInviteService.cs b/QuestionableCompanion/QuestionableCompanion.Services/PartyInviteService.cs deleted file mode 100644 index c1a4254..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/PartyInviteService.cs +++ /dev/null @@ -1,193 +0,0 @@ -using System; -using System.Text; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game.Group; -using FFXIVClientStructs.FFXIV.Client.System.String; -using FFXIVClientStructs.FFXIV.Client.UI; -using FFXIVClientStructs.FFXIV.Client.UI.Info; -using FFXIVClientStructs.FFXIV.Client.UI.Shell; - -namespace QuestionableCompanion.Services; - -public class PartyInviteService -{ - private readonly IPluginLog log; - - private readonly IObjectTable objectTable; - - private readonly IClientState clientState; - - public PartyInviteService(IPluginLog log, IObjectTable objectTable, IClientState clientState) - { - this.log = log; - this.objectTable = objectTable; - this.clientState = clientState; - } - - public unsafe bool InviteToParty(string characterName, ushort worldId) - { - if (string.IsNullOrWhiteSpace(characterName)) - { - log.Error("[PartyInvite] Character name is null or empty!"); - return false; - } - if (worldId == 0) - { - log.Error("[PartyInvite] World ID is 0 (invalid)!"); - return false; - } - characterName = characterName.Trim(); - try - { - InfoModule* infoModule = InfoModule.Instance(); - if (infoModule == null) - { - log.Error("[PartyInvite] InfoModule is null!"); - return false; - } - InfoProxyPartyInvite* partyInviteProxy = (InfoProxyPartyInvite*)infoModule->GetInfoProxyById(InfoProxyId.PartyInvite); - if (partyInviteProxy == null) - { - log.Error("[PartyInvite] InfoProxyPartyInvite is null!"); - return false; - } - ulong contentId = 0uL; - log.Information($"[PartyInvite] Using name-based invite (ContentId=0, Name={characterName}, World={worldId})"); - log.Information($"[PartyInvite] Sending invite to {characterName}@{worldId} (ContentId: {contentId})"); - fixed (byte* namePtr = Encoding.UTF8.GetBytes(characterName + "\0")) - { - bool num = partyInviteProxy->InviteToParty(contentId, namePtr, worldId); - if (num) - { - log.Information($"[PartyInvite] ✓ Successfully sent invite to {characterName}@{worldId}"); - } - else - { - log.Warning($"[PartyInvite] ✗ Failed to send invite to {characterName}@{worldId}"); - } - return num; - } - } - catch (Exception ex) - { - log.Error("[PartyInvite] Exception: " + ex.Message); - log.Error("[PartyInvite] StackTrace: " + ex.StackTrace); - return false; - } - } - - public unsafe bool InviteToPartyByContentId(ulong contentId, ushort worldId) - { - try - { - InfoModule* infoModule = InfoModule.Instance(); - if (infoModule == null) - { - log.Error("[PartyInvite] InfoModule is null!"); - return false; - } - InfoProxyPartyInvite* partyInviteProxy = (InfoProxyPartyInvite*)infoModule->GetInfoProxyById(InfoProxyId.PartyInvite); - if (partyInviteProxy == null) - { - log.Error("[PartyInvite] InfoProxyPartyInvite is null!"); - return false; - } - log.Information($"[PartyInvite] Sending invite to ContentID {contentId}@{worldId}"); - bool num = partyInviteProxy->InviteToPartyContentId(contentId, worldId); - if (num) - { - log.Information($"[PartyInvite] Successfully sent invite to ContentID {contentId}@{worldId}"); - } - else - { - log.Warning($"[PartyInvite] Failed to send invite to ContentID {contentId}@{worldId}"); - } - return num; - } - catch (Exception ex) - { - log.Error("[PartyInvite] Exception: " + ex.Message); - log.Error("[PartyInvite] StackTrace: " + ex.StackTrace); - return false; - } - } - - public unsafe bool InviteToPartyInInstanceByContentId(ulong contentId) - { - try - { - InfoModule* infoModule = InfoModule.Instance(); - if (infoModule == null) - { - log.Error("[PartyInvite] InfoModule is null!"); - return false; - } - InfoProxyPartyInvite* partyInviteProxy = (InfoProxyPartyInvite*)infoModule->GetInfoProxyById(InfoProxyId.PartyInvite); - if (partyInviteProxy == null) - { - log.Error("[PartyInvite] InfoProxyPartyInvite is null!"); - return false; - } - log.Information($"[PartyInvite] Sending instance invite to ContentID {contentId}"); - bool num = partyInviteProxy->InviteToPartyInInstanceByContentId(contentId); - if (num) - { - log.Information($"[PartyInvite] Successfully sent instance invite to ContentID {contentId}"); - } - else - { - log.Warning($"[PartyInvite] Failed to send instance invite to ContentID {contentId}"); - } - return num; - } - catch (Exception ex) - { - log.Error("[PartyInvite] Exception: " + ex.Message); - log.Error("[PartyInvite] StackTrace: " + ex.StackTrace); - return false; - } - } - - public unsafe bool LeaveParty() - { - try - { - GroupManager* groupManager = GroupManager.Instance(); - if (groupManager == null) - { - log.Error("[PartyInvite] GroupManager is null!"); - return false; - } - GroupManager.Group* group = groupManager->GetGroup(); - if (group == null || group->MemberCount == 0) - { - log.Debug("[PartyInvite] Not in a party"); - return true; - } - log.Information($"[PartyInvite] Leaving party (Members: {group->MemberCount})"); - RaptureShellModule* shellModule = RaptureShellModule.Instance(); - if (shellModule == null) - { - log.Error("[PartyInvite] RaptureShellModule is null!"); - return false; - } - UIModule* uiModule = UIModule.Instance(); - if (uiModule == null) - { - log.Error("[PartyInvite] UIModule is null!"); - return false; - } - Utf8String* leaveCommand = Utf8String.FromString("/leave"); - shellModule->ExecuteCommandInner(leaveCommand, uiModule); - leaveCommand->Dtor(); - log.Information("[PartyInvite] Leave command executed successfully"); - return true; - } - catch (Exception ex) - { - log.Error("[PartyInvite] Exception: " + ex.Message); - log.Error("[PartyInvite] StackTrace: " + ex.StackTrace); - return false; - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/PluginLogger.cs b/QuestionableCompanion/QuestionableCompanion.Services/PluginLogger.cs deleted file mode 100644 index 55a228f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/PluginLogger.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class PluginLogger -{ - private readonly IPluginLog dalamudLog; - - public PluginLogger(IPluginLog dalamudLog) - { - this.dalamudLog = dalamudLog; - } - - public void Debug(string message, string component = "Plugin") - { - dalamudLog.Debug(message); - } - - public void Information(string message, string component = "Plugin") - { - dalamudLog.Information(message); - } - - public void Warning(string message, string component = "Plugin") - { - dalamudLog.Warning(message); - } - - public void Error(string message, string component = "Plugin") - { - dalamudLog.Error(message); - } - - public void Error(Exception ex, string message, string component = "Plugin") - { - dalamudLog.Error(ex, message); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestDetectionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestDetectionService.cs deleted file mode 100644 index 8f5c2f6..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestDetectionService.cs +++ /dev/null @@ -1,256 +0,0 @@ -using System; -using System.Collections.Generic; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Application.Network.WorkDefinitions; -using FFXIVClientStructs.FFXIV.Client.Game; - -namespace QuestionableCompanion.Services; - -public class QuestDetectionService : IDisposable -{ - private readonly IFramework framework; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly HashSet acceptedQuests = new HashSet(); - - private readonly HashSet completedQuests = new HashSet(); - - private HashSet completedQuestCache = new HashSet(); - - private DateTime lastCacheRefresh = DateTime.MinValue; - - private const int CACHE_REFRESH_MINUTES = 5; - - public event Action? QuestAccepted; - - public event Action? QuestCompleted; - - public QuestDetectionService(IFramework framework, IPluginLog log, IClientState clientState) - { - this.framework = framework; - this.log = log; - this.clientState = clientState; - framework.Update += OnFrameworkUpdate; - log.Information("[QuestDetection] Service initialized"); - } - - private void OnFrameworkUpdate(IFramework framework) - { - if (!clientState.IsLoggedIn) - { - return; - } - try - { - CheckQuestUpdates(); - } - catch (Exception ex) - { - log.Debug("[QuestDetection] Error in framework update: " + ex.Message); - } - } - - private unsafe void CheckQuestUpdates() - { - QuestManager* questManager = QuestManager.Instance(); - if (questManager == null) - { - log.Debug("[QuestDetection] QuestManager instance is null"); - return; - } - try - { - Span normalQuests = questManager->NormalQuests; - if (normalQuests.Length == 0) - { - log.Debug("[QuestDetection] NormalQuests array is empty"); - return; - } - int maxSlots = Math.Min(normalQuests.Length, 30); - for (int i = 0; i < maxSlots; i++) - { - try - { - QuestWork quest = normalQuests[i]; - if (quest.QuestId == 0) - { - continue; - } - uint questId = quest.QuestId; - if (!acceptedQuests.Contains(questId)) - { - if (!IsQuestComplete(questId)) - { - acceptedQuests.Add(questId); - string questName = GetQuestName(questId); - log.Information($"[QuestDetection] Quest Accepted: {questId} - {questName}"); - this.QuestAccepted?.Invoke(questId, questName); - } - } - else if (!completedQuests.Contains(questId) && IsQuestComplete(questId)) - { - completedQuests.Add(questId); - string questName2 = GetQuestName(questId); - log.Information($"[QuestDetection] Quest Completed: {questId} - {questName2}"); - this.QuestCompleted?.Invoke(questId, questName2); - } - } - catch (IndexOutOfRangeException) - { - log.Debug($"[QuestDetection] Index {i} out of range, stopping quest check"); - break; - } - catch (Exception ex2) - { - log.Debug($"[QuestDetection] Error checking quest slot {i}: {ex2.Message}"); - } - } - } - catch (Exception ex3) - { - log.Warning("[QuestDetection] Error accessing quest data: " + ex3.Message); - } - } - - private bool IsQuestComplete(uint questId) - { - try - { - return QuestManager.IsQuestComplete(questId); - } - catch - { - return false; - } - } - - public unsafe bool IsQuestCompletedDirect(uint questId) - { - try - { - if (QuestManager.Instance() == null) - { - log.Warning("[QuestDetection] QuestManager instance not available"); - return false; - } - bool isComplete = QuestManager.IsQuestComplete(questId); - log.Debug($"[QuestDetection] Quest {questId} completion status: {isComplete}"); - return isComplete; - } - catch (Exception ex) - { - log.Error($"[QuestDetection] Failed to check quest {questId}: {ex.Message}"); - return false; - } - } - - public unsafe List GetAllCompletedQuestIds() - { - List completed = new List(); - try - { - if (QuestManager.Instance() == null) - { - log.Warning("[QuestDetection] QuestManager instance not available"); - return completed; - } - log.Information("[QuestDetection] Scanning for completed quests..."); - foreach (var item in new List<(uint, uint)> - { - (1u, 3000u), - (65000u, 71000u) - }) - { - uint start = item.Item1; - uint end = item.Item2; - for (uint i = start; i <= end; i++) - { - try - { - if (QuestManager.IsQuestComplete(i)) - { - completed.Add(i); - } - } - catch - { - } - } - } - log.Information($"[QuestDetection] Retrieved {completed.Count} completed quests"); - } - catch (Exception ex) - { - log.Error("[QuestDetection] Error while fetching completed quests: " + ex.Message); - } - return completed; - } - - public void RefreshQuestCache() - { - try - { - log.Information("[QuestDetection] Refreshing quest cache..."); - List allCompleted = GetAllCompletedQuestIds(); - completedQuestCache = new HashSet(allCompleted); - lastCacheRefresh = DateTime.Now; - log.Information($"[QuestDetection] Quest cache refreshed with {completedQuestCache.Count} completed quests"); - } - catch (Exception ex) - { - log.Error("[QuestDetection] Failed to refresh quest cache: " + ex.Message); - } - } - - public bool IsQuestCompletedCached(uint questId) - { - if (completedQuestCache.Count == 0 || (DateTime.Now - lastCacheRefresh).TotalMinutes > 5.0) - { - RefreshQuestCache(); - } - return completedQuestCache.Contains(questId); - } - - private string GetQuestName(uint questId) - { - try - { - return $"Quest {questId}"; - } - catch - { - return $"Quest {questId}"; - } - } - - public void ResetTracking() - { - acceptedQuests.Clear(); - completedQuests.Clear(); - completedQuestCache.Clear(); - lastCacheRefresh = DateTime.MinValue; - log.Information("[QuestDetection] Tracking reset"); - } - - public bool IsQuestAccepted(uint questId) - { - return acceptedQuests.Contains(questId); - } - - public bool IsQuestCompleted(uint questId) - { - return completedQuests.Contains(questId); - } - - public void Dispose() - { - framework.Update -= OnFrameworkUpdate; - acceptedQuests.Clear(); - completedQuests.Clear(); - completedQuestCache.Clear(); - log.Information("[QuestDetection] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestIdParser.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestIdParser.cs deleted file mode 100644 index 7782c0f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestIdParser.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System.Text.RegularExpressions; - -namespace QuestionableCompanion.Services; - -public static class QuestIdParser -{ - private static readonly Regex EventQuestPattern = new Regex("^([A-Z])(\\d+)$", RegexOptions.Compiled); - - public static (string rawId, string eventQuestId) ParseQuestId(string questInput) - { - if (string.IsNullOrWhiteSpace(questInput)) - { - return (rawId: questInput, eventQuestId: questInput); - } - Match match = EventQuestPattern.Match(questInput); - if (match.Success) - { - _ = match.Groups[1].Value; - return (rawId: match.Groups[2].Value, eventQuestId: questInput); - } - return (rawId: questInput, eventQuestId: questInput); - } - - public static bool HasEventQuestPrefix(string questId) - { - if (string.IsNullOrWhiteSpace(questId)) - { - return false; - } - return EventQuestPattern.IsMatch(questId); - } - - public static string? GetEventQuestPrefix(string questId) - { - if (string.IsNullOrWhiteSpace(questId)) - { - return null; - } - Match match = EventQuestPattern.Match(questId); - if (!match.Success) - { - return null; - } - return match.Groups[1].Value; - } - - public static string GetNumericPart(string questId) - { - return ParseQuestId(questId).rawId; - } - - public static QuestIdType ClassifyQuestId(string questId) - { - if (string.IsNullOrWhiteSpace(questId)) - { - return QuestIdType.Invalid; - } - if (HasEventQuestPrefix(questId)) - { - return QuestIdType.EventQuest; - } - if (uint.TryParse(questId, out var _)) - { - return QuestIdType.Standard; - } - return QuestIdType.Unknown; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestIdType.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestIdType.cs deleted file mode 100644 index e34a782..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestIdType.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace QuestionableCompanion.Services; - -public enum QuestIdType -{ - Standard, - EventQuest, - Unknown, - Invalid -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestPreCheckService.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestPreCheckService.cs deleted file mode 100644 index 45aa18f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestPreCheckService.cs +++ /dev/null @@ -1,317 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using Newtonsoft.Json; - -namespace QuestionableCompanion.Services; - -public class QuestPreCheckService : IDisposable -{ - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly Configuration config; - - private readonly AutoRetainerIPC autoRetainerIPC; - - private Dictionary preCheckResults = new Dictionary(); - - private Dictionary> questDatabase = new Dictionary>(); - - private Dictionary lastRefreshByCharacter = new Dictionary(); - - private readonly TimeSpan refreshInterval = TimeSpan.FromMinutes(30L); - - private string QuestDatabasePath - { - get - { - global::_003C_003Ey__InlineArray5 buffer = default(global::_003C_003Ey__InlineArray5); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 0) = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 1) = "XIVLauncher"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 2) = "pluginConfigs"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 3) = "QuestionableCompanion"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 4) = "QuestDatabase.json"; - return Path.Combine(global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, string>(in buffer, 5)); - } - } - - public QuestPreCheckService(IPluginLog log, IClientState clientState, Configuration config, AutoRetainerIPC autoRetainerIPC) - { - this.log = log; - this.clientState = clientState; - this.config = config; - this.autoRetainerIPC = autoRetainerIPC; - LoadQuestDatabase(); - } - - private void LoadQuestDatabase() - { - try - { - EnsureQuestDatabasePath(); - if (!File.Exists(QuestDatabasePath)) - { - log.Information("[QuestPreCheck] Creating new quest database..."); - questDatabase = new Dictionary>(); - return; - } - string json = File.ReadAllText(QuestDatabasePath); - if (string.IsNullOrEmpty(json)) - { - questDatabase = new Dictionary>(); - return; - } - questDatabase = JsonConvert.DeserializeObject>>(json) ?? new Dictionary>(); - log.Information($"[QuestPreCheck] Loaded quest database for {questDatabase.Count} characters"); - } - catch (Exception ex) - { - log.Error("[QuestPreCheck] Error loading quest database: " + ex.Message); - questDatabase = new Dictionary>(); - } - } - - private void SaveQuestDatabase() - { - try - { - EnsureQuestDatabasePath(); - string json = JsonConvert.SerializeObject(questDatabase, Formatting.Indented); - File.WriteAllText(QuestDatabasePath, json); - log.Information($"[QuestPreCheck] Quest database saved ({questDatabase.Count} characters)"); - } - catch (Exception ex) - { - log.Error("[QuestPreCheck] Error saving quest database: " + ex.Message); - } - } - - private void EnsureQuestDatabasePath() - { - string directory = Path.GetDirectoryName(QuestDatabasePath); - if (!string.IsNullOrEmpty(directory) && !Directory.Exists(directory)) - { - Directory.CreateDirectory(directory); - } - } - - public unsafe void ScanCurrentCharacterQuestStatus(bool verbose = false) - { - if (clientState.LocalPlayer == null) - { - log.Warning("[QuestPreCheck] No local player found"); - return; - } - string worldName = clientState.LocalPlayer.HomeWorld.Value.Name.ToString(); - string charName = $"{clientState.LocalPlayer.Name}@{worldName}"; - if (verbose) - { - log.Information("[QuestPreCheck] Scanning quest status for: " + charName); - } - if (!questDatabase.ContainsKey(charName)) - { - questDatabase[charName] = new Dictionary(); - } - if (QuestManager.Instance() == null) - { - log.Error("[QuestPreCheck] QuestManager not available"); - return; - } - int questsScanned = 0; - int questsCompleted = 0; - int questsChanged = 0; - List newlyCompleted = new List(); - List questsToScan = config.QuestPreCheckRange ?? new List(); - if (questsToScan.Count == 0) - { - for (uint questId = 1u; questId <= 4500; questId++) - { - questsToScan.Add(questId); - } - } - foreach (uint questId2 in questsToScan) - { - try - { - bool num = QuestManager.IsQuestComplete((ushort)(questId2 % 65536)); - questsScanned++; - if (num) - { - questsCompleted++; - if (!questDatabase[charName].GetValueOrDefault(questId2, defaultValue: false)) - { - questDatabase[charName][questId2] = true; - questsChanged++; - newlyCompleted.Add(questId2); - if (verbose) - { - log.Debug($"[QuestPreCheck] {charName} - Quest {questId2}: ✓ NEWLY COMPLETED"); - } - } - else - { - questDatabase[charName][questId2] = true; - } - } - if (verbose && questId2 % 500 == 0) - { - log.Debug($"[QuestPreCheck] Progress: {questId2}/{questsToScan.Count} quests scanned..."); - } - } - catch (Exception ex) - { - log.Error($"[QuestPreCheck] Error checking quest {questId2}: {ex.Message}"); - } - } - if (verbose) - { - log.Information($"[QuestPreCheck] Scan complete: {questsScanned} checked, {questsCompleted} completed, {questsChanged} changed"); - if (newlyCompleted.Count > 0) - { - log.Information("[QuestPreCheck] NEWLY COMPLETED: " + string.Join(", ", newlyCompleted)); - } - } - lastRefreshByCharacter[charName] = DateTime.Now; - SaveQuestDatabase(); - } - - public void RefreshQuestDatabasePeriodic() - { - if (clientState.LocalPlayer != null && clientState.IsLoggedIn) - { - string worldName = clientState.LocalPlayer.HomeWorld.Value.Name.ToString(); - string charName = $"{clientState.LocalPlayer.Name}@{worldName}"; - if (!lastRefreshByCharacter.TryGetValue(charName, out var lastRefresh) || DateTime.Now - lastRefresh >= refreshInterval) - { - log.Information("[QuestDB] === 30-MINUTE REFRESH TRIGGERED ==="); - log.Information("[QuestDB] Updating quest status for: " + charName); - ScanCurrentCharacterQuestStatus(verbose: true); - log.Information("[QuestDB] === 30-MINUTE REFRESH COMPLETE ==="); - } - } - } - - public void LogCompletedQuestsBeforeLogout() - { - if (clientState.LocalPlayer != null) - { - string worldName = clientState.LocalPlayer.HomeWorld.Value.Name.ToString(); - string charName = $"{clientState.LocalPlayer.Name}@{worldName}"; - log.Information("[QuestDB] Logging final quest status before logout: " + charName); - ScanCurrentCharacterQuestStatus(); - log.Information("[QuestDB] Final quest state saved for: " + charName); - } - } - - public Dictionary PerformPreRotationCheck(uint stopQuestId, List characters) - { - log.Information("[QuestPreCheck] === STARTING PRE-ROTATION QUEST VERIFICATION ==="); - log.Information($"[QuestPreCheck] Checking {characters.Count} characters for quest {stopQuestId}..."); - preCheckResults.Clear(); - foreach (string character in characters) - { - try - { - if (questDatabase.ContainsKey(character) && questDatabase[character].ContainsKey(stopQuestId)) - { - bool isCompleted = questDatabase[character][stopQuestId]; - preCheckResults[character] = isCompleted; - string status = (isCompleted ? "✓ COMPLETED" : "○ PENDING"); - log.Information($"[QuestPreCheck] {character}: {status} (from database)"); - } - else - { - log.Debug("[QuestPreCheck] " + character + ": Not in database, will check during rotation"); - preCheckResults[character] = false; - } - } - catch (Exception ex) - { - log.Error("[QuestPreCheck] Error checking " + character + ": " + ex.Message); - preCheckResults[character] = false; - } - } - log.Information("[QuestPreCheck] === PRE-ROTATION CHECK COMPLETE ==="); - return preCheckResults; - } - - public bool ShouldSkipCharacter(string characterName, uint questId) - { - if (preCheckResults.TryGetValue(characterName, out var isCompleted) && isCompleted) - { - log.Information($"[QuestPreCheck] Character {characterName} already completed quest {questId} - SKIPPING"); - return true; - } - bool completed = default(bool); - if (questDatabase.TryGetValue(characterName, out Dictionary quests) && quests.TryGetValue(questId, out completed) && completed) - { - log.Information($"[QuestPreCheck] Character {characterName} already completed quest {questId} (from DB) - SKIPPING"); - return true; - } - return false; - } - - public bool? GetQuestStatus(string characterName, uint questId) - { - if (questDatabase.TryGetValue(characterName, out Dictionary quests) && quests.TryGetValue(questId, out var isCompleted)) - { - return isCompleted; - } - return null; - } - - public List GetCompletedQuests(string characterName) - { - if (!questDatabase.TryGetValue(characterName, out Dictionary quests)) - { - return new List(); - } - return (from kvp in quests - where kvp.Value - select kvp.Key).ToList(); - } - - public void MarkQuestCompleted(string characterName, uint questId) - { - if (!questDatabase.ContainsKey(characterName)) - { - questDatabase[characterName] = new Dictionary(); - } - questDatabase[characterName][questId] = true; - SaveQuestDatabase(); - log.Information($"[QuestPreCheck] Marked quest {questId} as completed for {characterName}"); - } - - public void ClearPreCheckResults() - { - preCheckResults.Clear(); - log.Information("[QuestPreCheck] Pre-check results cleared"); - } - - public void ClearCharacterData(string characterName) - { - if (questDatabase.ContainsKey(characterName)) - { - int questCount = questDatabase[characterName].Count; - questDatabase.Remove(characterName); - SaveQuestDatabase(); - log.Information($"[QuestPreCheck] Cleared {questCount} quests for {characterName}"); - } - else - { - log.Information("[QuestPreCheck] No quest data found for " + characterName); - } - lastRefreshByCharacter.Remove(characterName); - } - - public void Dispose() - { - SaveQuestDatabase(); - log.Information("[QuestPreCheck] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs deleted file mode 100644 index 1b661c2..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs +++ /dev/null @@ -1,1518 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion.Services; - -public class QuestRotationExecutionService : IDisposable -{ - private readonly AutoRetainerIPC autoRetainerIpc; - - private readonly QuestTrackingService questTrackingService; - - private readonly IPluginLog log; - - private readonly IFramework framework; - - private readonly ICommandManager commandManager; - - private readonly ICondition condition; - - private readonly IClientState clientState; - - private readonly SubmarineManager submarineManager; - - private readonly QuestionableIPC questionableIPC; - - private readonly Configuration configuration; - - private DCTravelService? dcTravelService; - - private CharacterSafeWaitService? safeWaitService; - - private QuestPreCheckService? preCheckService; - - private MovementMonitorService? movementMonitor; - - private CombatDutyDetectionService? combatDutyDetection; - - private DeathHandlerService? deathHandler; - - private DungeonAutomationService? dungeonAutomation; - - private StepsOfFaithHandler? stepsOfFaithHandler; - - private ErrorRecoveryService? errorRecoveryService; - - private readonly List stopPoints = new List(); - - private RotationState currentState = new RotationState(); - - private Dictionary> questCompletionByCharacter = new Dictionary>(); - - private Action? onDataChanged; - - private DateTime lastCheckTime = DateTime.MinValue; - - private const double CheckIntervalMs = 250.0; - - private DateTime lastSubmarineCheckTime = DateTime.MinValue; - - private bool waitingForQuestAcceptForSubmarines; - - private uint? lastSoloDutyQuestId; - - private const double CharacterLoginTimeoutSeconds = 60.0; - - private const double PhaseTimeoutSeconds = 120.0; - - private bool isRotationActive; - - public bool IsRotationActive => isRotationActive; - - public QuestRotationExecutionService(AutoRetainerIPC autoRetainerIpc, QuestTrackingService questTrackingService, SubmarineManager submarineManager, QuestionableIPC questionableIPC, Configuration configuration, IPluginLog log, IFramework framework, ICommandManager commandManager, ICondition condition, IClientState clientState, Action? onDataChanged = null) - { - this.autoRetainerIpc = autoRetainerIpc; - this.questTrackingService = questTrackingService; - this.submarineManager = submarineManager; - this.questionableIPC = questionableIPC; - this.configuration = configuration; - this.log = log; - this.framework = framework; - this.commandManager = commandManager; - this.condition = condition; - this.clientState = clientState; - this.onDataChanged = onDataChanged; - framework.Update += OnFrameworkUpdate; - log.Information("[QuestRotation] Service initialized"); - } - - public bool AddStopPoint(uint questId, byte? sequence = null) - { - if (stopPoints.Any((StopPoint sp) => sp.QuestId == questId && sp.Sequence == sequence)) - { - log.Warning($"[QuestRotation] Stop point {questId}" + (sequence.HasValue ? $" Seq {sequence.Value}" : "") + " already exists"); - return false; - } - StopPoint stopPoint = new StopPoint - { - QuestId = questId, - Sequence = sequence, - IsActive = false, - CreatedAt = DateTime.Now - }; - stopPoints.Add(stopPoint); - log.Information($"[QuestRotation] Added stop point: Quest {questId}"); - return true; - } - - public void ImportStopPointsFromQuestionable() - { - try - { - log.Information("[QuestRotation] Importing stop points from Questionable..."); - List stopQuestIds = questionableIPC.GetStopQuestList(); - Dictionary sequenceConditions = null; - try - { - sequenceConditions = questionableIPC.GetAllQuestSequenceStopConditions(); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Wrong Questionable Version "); - log.Error("[QuestRotation] Import failed: " + ex.Message); - return; - } - stopPoints.Clear(); - if (stopQuestIds != null) - { - foreach (string questIdStr in stopQuestIds) - { - if (!uint.TryParse(questIdStr, out var questId)) - { - continue; - } - byte? sequence = null; - if (sequenceConditions != null && sequenceConditions.ContainsKey(questIdStr)) - { - try - { - object seqObj = sequenceConditions[questId.ToString()]; - if (seqObj != null) - { - sequence = Convert.ToByte(seqObj); - } - } - catch - { - } - } - stopPoints.Add(new StopPoint - { - QuestId = questId, - Sequence = sequence, - IsActive = false, - CreatedAt = DateTime.Now - }); - } - } - if (sequenceConditions != null) - { - foreach (KeyValuePair kvp in sequenceConditions) - { - if (uint.TryParse(kvp.Key, out var questId2) && !stopPoints.Any((StopPoint sp) => sp.QuestId == questId2)) - { - byte? sequence2 = null; - try - { - sequence2 = Convert.ToByte(kvp.Value); - } - catch - { - } - stopPoints.Add(new StopPoint - { - QuestId = questId2, - Sequence = sequence2, - IsActive = false, - CreatedAt = DateTime.Now - }); - } - } - } - log.Information($"[QuestRotation] Imported {stopPoints.Count} stop points"); - } - catch (Exception ex2) - { - log.Error("[QuestRotation] Failed to import stop points: " + ex2.Message); - } - } - - public bool RemoveStopPoint(uint questId) - { - if (isRotationActive) - { - log.Error($"[QuestRotation] Cannot remove stop point {questId} during active rotation!"); - return false; - } - StopPoint stopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.QuestId == questId); - if (stopPoint == null) - { - log.Warning($"[QuestRotation] Stop point {questId} not found"); - return false; - } - stopPoints.Remove(stopPoint); - log.Information($"[QuestRotation] Removed stop point: Quest {questId}"); - return true; - } - - public bool StartRotation(uint questId, List characters) - { - if (characters == null || characters.Count == 0) - { - log.Error("[QuestRotation] Cannot start rotation: No characters selected"); - return false; - } - StopPoint stopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.QuestId == questId); - if (stopPoint == null) - { - log.Error($"[QuestRotation] Cannot start rotation: Quest {questId} not in stop points"); - return false; - } - log.Information("[QuestRotation] Found stop point: " + stopPoint.DisplayName); - List remainingChars = new List(); - List completedChars = new List(); - if (questCompletionByCharacter.TryGetValue(questId, out List savedCompletedChars)) - { - log.Debug($"[QuestRotation] Quest {questId} has {savedCompletedChars.Count} characters marked as completed in saved data"); - } - else - { - log.Debug($"[QuestRotation] Quest {questId} has NO saved completion data"); - } - foreach (string character in characters) - { - if (HasCharacterCompletedQuest(questId, character)) - { - completedChars.Add(character); - log.Debug($"[QuestRotation] {character} already completed quest {questId} (from saved data)"); - } - else - { - remainingChars.Add(character); - log.Debug($"[QuestRotation] {character} needs to complete quest {questId}"); - } - } - if (remainingChars.Count == 0) - { - log.Information($"[QuestRotation] All characters have already completed quest {questId}"); - return false; - } - currentState = new RotationState - { - CurrentStopQuestId = questId, - SelectedCharacters = new List(characters), - RemainingCharacters = remainingChars, - CompletedCharacters = completedChars, - Phase = RotationPhase.InitializingFirstCharacter, - PhaseStartTime = DateTime.Now, - RotationStartTime = DateTime.Now, - HasQuestBeenAccepted = false - }; - stopPoint.IsActive = true; - isRotationActive = true; - combatDutyDetection?.SetRotationActive(active: true); - deathHandler?.SetRotationActive(active: true); - if (configuration.EnableMovementMonitor && movementMonitor != null && !movementMonitor.IsMonitoring) - { - movementMonitor.StartMonitoring(); - log.Information("[QuestRotation] Movement monitor started"); - } - log.Information("[QuestRotation] ═══ Starting Rotation ═══"); - log.Information($"[QuestRotation] Quest ID: {questId}"); - log.Information($"[QuestRotation] Total Characters: {characters.Count}"); - log.Information($"[QuestRotation] Remaining: {remainingChars.Count} | Completed: {completedChars.Count}"); - log.Information("[QuestRotation] Characters to process: " + string.Join(", ", remainingChars)); - return true; - } - - public bool StartRotationLevelOnly(List characters) - { - if (characters == null || characters.Count == 0) - { - log.Error("[QuestRotation] Cannot start rotation: No characters selected"); - return false; - } - StopConditionData levelStopCondition = questionableIPC.GetLevelStopCondition(); - if (levelStopCondition == null || !levelStopCondition.Enabled) - { - log.Error("[QuestRotation] Cannot start level-only rotation: Level stop condition not configured"); - return false; - } - log.Information($"[QuestRotation] Starting level-only rotation (target level: {levelStopCondition.TargetValue})"); - List remainingChars = new List(characters); - currentState = new RotationState - { - CurrentStopQuestId = 0u, - SelectedCharacters = new List(characters), - RemainingCharacters = remainingChars, - CompletedCharacters = new List(), - Phase = RotationPhase.InitializingFirstCharacter, - PhaseStartTime = DateTime.Now, - RotationStartTime = DateTime.Now, - HasQuestBeenAccepted = false - }; - isRotationActive = true; - combatDutyDetection?.SetRotationActive(active: true); - deathHandler?.SetRotationActive(active: true); - if (configuration.EnableMovementMonitor && movementMonitor != null && !movementMonitor.IsMonitoring) - { - movementMonitor.StartMonitoring(); - log.Information("[QuestRotation] Movement monitor started"); - } - log.Information("[QuestRotation] ═══ Starting Level-Only Rotation ═══"); - log.Information($"[QuestRotation] Target Level: {levelStopCondition.TargetValue}"); - log.Information($"[QuestRotation] Total Characters: {characters.Count}"); - log.Information("[QuestRotation] Characters to process: " + string.Join(", ", remainingChars)); - return true; - } - - public bool StartSyncRotation(List characters) - { - if (characters == null || characters.Count == 0) - { - log.Error("[QuestRotation] Cannot start sync rotation: No characters provided"); - return false; - } - List charactersToSync = new List(); - foreach (string character in characters) - { - if (GetCompletedQuestsByCharacter(character).Count == 0) - { - charactersToSync.Add(character); - } - } - if (charactersToSync.Count == 0) - { - log.Information("[QuestRotation] No characters need sync - all have existing data"); - return false; - } - log.Information("[QuestRotation] ═══ Starting Sync Rotation ═══"); - log.Information($"[QuestRotation] Characters to sync: {charactersToSync.Count}"); - log.Information("[QuestRotation] Characters: " + string.Join(", ", charactersToSync)); - currentState = new RotationState - { - CurrentStopQuestId = 0u, - SelectedCharacters = new List(charactersToSync), - RemainingCharacters = new List(charactersToSync), - CompletedCharacters = new List(), - Phase = RotationPhase.InitializingFirstCharacter, - PhaseStartTime = DateTime.Now, - RotationStartTime = DateTime.Now, - HasQuestBeenAccepted = false, - IsSyncOnlyMode = true - }; - isRotationActive = true; - log.Information("[QuestRotation] Sync rotation started successfully!"); - return true; - } - - public RotationState GetCurrentState() - { - return currentState; - } - - public (int completed, int total) GetRotationProgress(uint questId) - { - if (currentState.SelectedCharacters.Count == 0) - { - return (completed: 0, total: 0); - } - return GetRotationProgress(questId, currentState.SelectedCharacters); - } - - public (int completed, int total) GetRotationProgress(uint questId, List characters) - { - if (characters == null || characters.Count == 0) - { - return (completed: 0, total: 0); - } - int completed = 0; - foreach (string character in characters) - { - if (HasCharacterCompletedQuest(questId, character)) - { - completed++; - } - } - return (completed: completed, total: characters.Count); - } - - public List GetAllStopPoints() - { - return new List(stopPoints); - } - - public void LoadQuestCompletionData(Dictionary> data) - { - if (data != null && data.Count > 0) - { - questCompletionByCharacter = new Dictionary>(data); - log.Information($"[QuestRotation] Loaded quest completion data for {data.Count} quests"); - int count = 0; - foreach (KeyValuePair> kvp in data) - { - if (count < 5) - { - log.Information($"[QuestRotation] DEBUG: Quest {kvp.Key} -> {kvp.Value.Count} characters: {string.Join(", ", kvp.Value)}"); - count++; - } - } - if (data.Count > 5) - { - log.Information($"[QuestRotation] DEBUG: ... and {data.Count - 5} more quests"); - } - } - else - { - log.Information("[QuestRotation] No quest completion data to load (empty or null)"); - } - } - - public Dictionary> GetQuestCompletionData() - { - return new Dictionary>(questCompletionByCharacter); - } - - public void SetDCTravelService(DCTravelService service) - { - dcTravelService = service; - log.Information("[QuestRotation] DC Travel service linked"); - } - - public void SetSafeWaitService(CharacterSafeWaitService service) - { - safeWaitService = service; - log.Information("[QuestRotation] Safe Wait service linked"); - } - - public void SetPreCheckService(QuestPreCheckService service) - { - preCheckService = service; - log.Information("[QuestRotation] PreCheck service linked"); - } - - public void SetMovementMonitor(MovementMonitorService service) - { - movementMonitor = service; - log.Information("[QuestRotation] Movement Monitor service linked"); - } - - public void SetCombatDutyDetection(CombatDutyDetectionService service) - { - combatDutyDetection = service; - log.Information("[QuestRotation] Combat/Duty Detection service linked"); - } - - public void SetDeathHandler(DeathHandlerService service) - { - deathHandler = service; - log.Information("[QuestRotation] Death Handler service linked"); - } - - public void SetDungeonAutomation(DungeonAutomationService service) - { - dungeonAutomation = service; - log.Information("[QuestRotation] Dungeon Automation service linked"); - } - - public void SetStepsOfFaithHandler(StepsOfFaithHandler service) - { - stepsOfFaithHandler = service; - log.Information("[QuestRotation] Steps of Faith Handler service linked"); - } - - public void SetErrorRecoveryService(ErrorRecoveryService service) - { - errorRecoveryService = service; - log.Information("[QuestRotation] Error Recovery service linked"); - } - - private void MarkQuestCompleted(uint questId, string characterName) - { - if (!questCompletionByCharacter.ContainsKey(questId)) - { - questCompletionByCharacter[questId] = new List(); - } - if (!questCompletionByCharacter[questId].Contains(characterName)) - { - questCompletionByCharacter[questId].Add(characterName); - log.Debug($"[QuestRotation] Marked {characterName} as completed quest {questId}"); - onDataChanged?.Invoke(); - } - } - - public List GetCompletedQuestsByCharacter(string characterName) - { - List completedQuests = new List(); - foreach (KeyValuePair> kvp in questCompletionByCharacter) - { - if (kvp.Value.Contains(characterName)) - { - completedQuests.Add(kvp.Key); - } - } - if (preCheckService != null) - { - foreach (uint questId in preCheckService.GetCompletedQuests(characterName)) - { - if (!completedQuests.Contains(questId)) - { - completedQuests.Add(questId); - } - } - } - return completedQuests; - } - - private bool HasCharacterCompletedQuest(uint questId, string characterName) - { - if (questCompletionByCharacter.TryGetValue(questId, out List characters) && characters.Contains(characterName)) - { - return true; - } - if (preCheckService != null) - { - bool? status = preCheckService.GetQuestStatus(characterName, questId); - if (status.HasValue && status.Value) - { - return true; - } - } - return false; - } - - public void ClearCharacterQuestData(string characterName) - { - log.Information("[QuestRotation] Clearing all quest data for " + characterName); - int questsCleared = 0; - foreach (KeyValuePair> kvp in questCompletionByCharacter.ToList()) - { - if (kvp.Value.Remove(characterName)) - { - questsCleared++; - } - if (kvp.Value.Count == 0) - { - questCompletionByCharacter.Remove(kvp.Key); - } - } - log.Information($"[QuestRotation] Removed {characterName} from {questsCleared} quests in rotation tracking"); - if (preCheckService != null) - { - preCheckService.ClearCharacterData(characterName); - log.Information("[QuestRotation] Cleared " + characterName + " data from PreCheck service"); - } - onDataChanged?.Invoke(); - log.Information("[QuestRotation] Quest data reset complete for " + characterName); - } - - private void ScanAndSaveAllCompletedQuests(string characterName) - { - if (string.IsNullOrEmpty(characterName)) - { - return; - } - int questsScanned = 0; - int questsCompleted = 0; - try - { - for (uint questId = 65536u; questId < 72000; questId++) - { - try - { - if (QuestManager.IsQuestComplete(questId)) - { - MarkQuestCompleted(questId, characterName); - questsCompleted++; - } - questsScanned++; - } - catch - { - } - } - log.Information($"[QuestRotation] Scanned {questsScanned} quests, found {questsCompleted} completed for {characterName}"); - onDataChanged?.Invoke(); - framework.RunOnFrameworkThread(delegate - { - if (currentState.Phase == RotationPhase.ScanningQuests) - { - currentState.Phase = RotationPhase.CheckingQuestCompletion; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[QuestRotation] Quest scan complete - moving to quest check"); - } - }); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Error scanning quests for " + characterName + ": " + ex.Message); - } - } - - public void SyncQuestDataForCurrentCharacter() - { - IPlayerCharacter player = clientState.LocalPlayer; - if (player == null) - { - log.Warning("[QuestRotation] No character logged in - cannot sync quest data"); - return; - } - string characterName = $"{player.Name}@{player.HomeWorld.Value.Name}"; - log.Information("[QuestRotation] Starting quest data sync for " + characterName); - ScanAndSaveAllCompletedQuests(characterName); - } - - public void AbortRotation() - { - log.Information("[QuestRotation] Aborting rotation"); - foreach (StopPoint stopPoint in stopPoints) - { - stopPoint.IsActive = false; - } - currentState = new RotationState - { - Phase = RotationPhase.Idle - }; - isRotationActive = false; - combatDutyDetection?.SetRotationActive(active: false); - combatDutyDetection?.Reset(); - deathHandler?.SetRotationActive(active: false); - deathHandler?.Reset(); - if (dungeonAutomation != null) - { - dungeonAutomation.Reset(); - log.Information("[QuestRotation] Dungeon automation reset"); - } - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Information("[QuestRotation] Movement monitor stopped"); - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - DateTime now = DateTime.Now; - if ((now - lastCheckTime).TotalMilliseconds < 250.0) - { - return; - } - lastCheckTime = now; - if (isRotationActive && errorRecoveryService != null && errorRecoveryService.IsErrorDisconnect) - { - string charToRelog = errorRecoveryService.LastDisconnectedCharacter ?? currentState.CurrentCharacter; - if (!string.IsNullOrEmpty(charToRelog)) - { - log.Warning("[ErrorRecovery] Disconnect detected for " + charToRelog); - log.Information("[ErrorRecovery] Automatically relogging to " + charToRelog + "..."); - if (errorRecoveryService.RequestRelog()) - { - errorRecoveryService.Reset(); - currentState.Phase = RotationPhase.WaitingForCharacterLogin; - currentState.CurrentCharacter = charToRelog; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[ErrorRecovery] Relog initiated for " + charToRelog); - } - else - { - log.Error("[ErrorRecovery] Failed to request relog via AutoRetainer"); - errorRecoveryService.Reset(); - } - return; - } - log.Warning("[ErrorRecovery] Disconnect detected but no character to relog to"); - errorRecoveryService.Reset(); - } - if (deathHandler != null && combatDutyDetection != null && !combatDutyDetection.IsInDuty) - { - deathHandler.Update(); - } - if (dungeonAutomation != null && !submarineManager.IsSubmarinePaused) - { - dungeonAutomation.Update(); - if (isRotationActive && configuration.EnableAutoDutyUnsynced && !dungeonAutomation.IsWaitingForParty && currentState.Phase != RotationPhase.WaitingForCharacterLogin && currentState.Phase != RotationPhase.WaitingBeforeCharacterSwitch && currentState.Phase != RotationPhase.WaitingForHomeworldReturn && currentState.Phase != RotationPhase.ScanningQuests && currentState.Phase != RotationPhase.CheckingQuestCompletion && currentState.Phase != RotationPhase.InitializingFirstCharacter) - { - _ = submarineManager.IsSubmarinePaused; - } - } - if (combatDutyDetection != null) - { - combatDutyDetection.Update(); - if (combatDutyDetection.JustEnteredDuty && isRotationActive) - { - string currentQuestIdStr = questionableIPC.GetCurrentQuestId(); - uint questId = 0u; - if (!string.IsNullOrEmpty(currentQuestIdStr)) - { - uint.TryParse(currentQuestIdStr, out questId); - } - combatDutyDetection.SetCurrentQuestId(questId); - bool isAutoDutyDungeon = dungeonAutomation != null && dungeonAutomation.IsInAutoDutyDungeon; - combatDutyDetection.SetAutoDutyDungeon(isAutoDutyDungeon); - if (isAutoDutyDungeon) - { - log.Information("[QuestRotation] AutoDuty Dungeon entered - /ad stop after 1s"); - dungeonAutomation?.OnDutyEntered(); - } - else if (questId != 0) - { - bool shouldLog = lastSoloDutyQuestId != questId; - if (questId == 811) - { - if (shouldLog) - { - log.Information("[QuestRotation] Quest 811 Solo Duty - stopping RSR, NO combat commands"); - lastSoloDutyQuestId = questId; - } - } - else if (shouldLog) - { - log.Information("[QuestRotation] Solo Duty entered - combat commands will activate after 8s"); - lastSoloDutyQuestId = questId; - } - if (questId == 4591 && stepsOfFaithHandler != null) - { - IPlayerCharacter player = clientState.LocalPlayer; - string characterName = ((player != null) ? $"{player.Name}@{player.HomeWorld.Value.Name}" : string.Empty); - if (stepsOfFaithHandler.ShouldActivate(questId, isInSoloDuty: true)) - { - log.Information("[QuestRotation] Triggering Steps of Faith handler (will wait for conditions inside)..."); - Task.Run(delegate - { - stepsOfFaithHandler.Execute(characterName); - }); - } - } - if (questId == 811) - { - try - { - commandManager.ProcessCommand("/rotation off"); - log.Information("[QuestRotation] ✓ /rotation off sent for Quest 811"); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Failed to stop RSR: " + ex.Message); - } - } - } - } - if (combatDutyDetection.JustExitedDuty && isRotationActive && dungeonAutomation != null) - { - dungeonAutomation.OnDutyExited(); - if ((DateTime.Now - combatDutyDetection.DutyExitTime).TotalSeconds >= 8.0) - { - if (dungeonAutomation.IsInAutoDutyDungeon) - { - dungeonAutomation.DisbandParty(); - } - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[QuestRotation] ✓ /qst start (after duty exit)"); - } - catch (Exception ex2) - { - log.Error("[QuestRotation] Failed to restart quest: " + ex2.Message); - } - combatDutyDetection.ClearDutyExitFlag(); - } - } - if (combatDutyDetection.ShouldPauseAutomation && movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Debug("[QuestRotation] Movement monitor paused for combat/duty"); - } - else if (!combatDutyDetection.ShouldPauseAutomation && movementMonitor != null && !movementMonitor.IsMonitoring && isRotationActive && configuration.EnableMovementMonitor && currentState.Phase != RotationPhase.WaitingForCharacterLogin && currentState.Phase != RotationPhase.WaitingBeforeCharacterSwitch && currentState.Phase != RotationPhase.WaitingForHomeworldReturn && currentState.Phase != RotationPhase.ScanningQuests && currentState.Phase != RotationPhase.CheckingQuestCompletion && currentState.Phase != RotationPhase.InitializingFirstCharacter) - { - movementMonitor.StartMonitoring(); - log.Debug("[QuestRotation] Movement monitor resumed after combat/duty"); - } - } - if (submarineManager.IsSubmarineJustCompleted && !submarineManager.IsSubmarineCooldownActive()) - { - log.Information("[QuestRotation] Submarine cooldown expired - re-enabling submarine checks"); - submarineManager.ClearSubmarineJustCompleted(); - } - if (!isRotationActive) - { - return; - } - CheckLevelStopCondition(); - switch (currentState.Phase) - { - case RotationPhase.InitializingFirstCharacter: - HandleInitializingFirstCharacter(); - break; - case RotationPhase.WaitingForCharacterLogin: - HandleWaitingForCharacterLogin(); - break; - case RotationPhase.ScanningQuests: - HandleScanningQuests(); - break; - case RotationPhase.CheckingQuestCompletion: - HandleCheckingQuestCompletion(); - break; - case RotationPhase.DCTraveling: - if ((DateTime.Now - currentState.PhaseStartTime).TotalMinutes > 3.0) - { - log.Error("[QuestRotation] DC Travel timeout after 3 minutes - skipping character"); - SkipToNextCharacter(); - } - break; - case RotationPhase.WaitingForQuestStart: - case RotationPhase.QuestActive: - HandleQuestMonitoring(); - break; - case RotationPhase.WaitingBeforeCharacterSwitch: - HandleWaitingBeforeCharacterSwitch(); - break; - case RotationPhase.WaitingForHomeworldReturn: - HandleWaitingForHomeworldReturn(); - break; - case RotationPhase.Completed: - HandleCompleted(); - break; - case RotationPhase.Questing: - case RotationPhase.InCombat: - case RotationPhase.InDungeon: - case RotationPhase.HandlingSubmarines: - case RotationPhase.SyncingCharacterData: - case RotationPhase.WaitingForChauffeur: - case RotationPhase.TravellingWithChauffeur: - case RotationPhase.WaitingForNextCharacterSwitch: - case RotationPhase.Error: - break; - } - } - - private void CheckLevelStopCondition() - { - StopConditionData stopLevelData = questionableIPC.GetLevelStopCondition(); - if (stopLevelData == null || !stopLevelData.Enabled) - { - return; - } - int stopLevel = stopLevelData.TargetValue; - int currentLevel = 0; - if (clientState.LocalPlayer != null) - { - currentLevel = clientState.LocalPlayer.Level; - } - if (currentLevel < stopLevel) - { - return; - } - log.Information($"[QuestRotation] Level Stop Condition reached (Level {currentLevel} >= {stopLevel})"); - if (currentState.Phase == RotationPhase.Questing || currentState.Phase == RotationPhase.QuestActive || currentState.Phase == RotationPhase.WaitingForQuestStart) - { - log.Information("[QuestRotation] Level reached - stopping quest and switching character..."); - try - { - commandManager.ProcessCommand("/qst stop"); - log.Information("[QuestRotation] ✓ /qst stop (level stop condition)"); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Failed to send /qst stop: " + ex.Message); - } - MarkCharacterCompleted(currentState.CurrentCharacter, "level reached"); - currentState.Phase = RotationPhase.WaitingForHomeworldReturn; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[QuestRotation] Waiting 5s before homeworld return..."); - } - } - - private unsafe bool IsTerritoryLoaded() - { - GameMain* gameMain = GameMain.Instance(); - if (gameMain == null) - { - return false; - } - return gameMain->TerritoryLoadState == 2; - } - - private void HandleInitializingFirstCharacter() - { - if (currentState.RemainingCharacters.Count == 0) - { - log.Information("[QuestRotation] No remaining characters - rotation complete"); - currentState.Phase = RotationPhase.Completed; - isRotationActive = false; - combatDutyDetection?.SetRotationActive(active: false); - deathHandler?.SetRotationActive(active: false); - return; - } - string firstChar = currentState.RemainingCharacters[0]; - currentState.CurrentCharacter = firstChar; - log.Information("[QuestRotation] >>> Phase 1: Initializing first character: " + firstChar); - if (autoRetainerIpc.SwitchCharacter(firstChar)) - { - currentState.Phase = RotationPhase.WaitingForCharacterLogin; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[QuestRotation] Character switch initiated to " + firstChar); - } - else - { - log.Error("[QuestRotation] Failed to switch to " + firstChar); - currentState.Phase = RotationPhase.Error; - currentState.ErrorMessage = "Failed to switch to " + firstChar; - } - } - - private void HandleWaitingForCharacterLogin() - { - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Debug("[QuestRotation] Movement monitor stopped during character login"); - } - if ((DateTime.Now - currentState.PhaseStartTime).TotalSeconds > 60.0) - { - log.Error("[QuestRotation] Login timeout for " + currentState.CurrentCharacter); - SkipToNextCharacter(); - return; - } - string currentLoggedInChar = autoRetainerIpc.GetCurrentCharacter(); - if (string.IsNullOrEmpty(currentLoggedInChar) || !(currentLoggedInChar == currentState.CurrentCharacter) || (DateTime.Now - currentState.PhaseStartTime).TotalSeconds < 2.0 || (DateTime.Now - currentState.PhaseStartTime).TotalSeconds < 5.0) - { - return; - } - log.Information("[QuestRotation] >>> Phase 2: Successfully logged in as " + currentLoggedInChar); - if (preCheckService != null) - { - log.Information("[QuestRotation] Scanning quest status for current character..."); - try - { - preCheckService.ScanCurrentCharacterQuestStatus(); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Error scanning quest status: " + ex.Message); - } - } - currentState.Phase = RotationPhase.ScanningQuests; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[QuestRotation] Starting quest scan for " + currentState.CurrentCharacter + "..."); - Task.Run(delegate - { - ScanAndSaveAllCompletedQuests(currentState.CurrentCharacter); - }); - } - - private void HandleScanningQuests() - { - if ((DateTime.Now - currentState.PhaseStartTime).TotalSeconds > 30.0) - { - log.Warning("[QuestRotation] Quest scan timeout - proceeding anyway"); - currentState.Phase = RotationPhase.CheckingQuestCompletion; - currentState.PhaseStartTime = DateTime.Now; - } - } - - private void HandleCheckingQuestCompletion() - { - uint questId = currentState.CurrentStopQuestId; - bool isQuestComplete = false; - try - { - isQuestComplete = QuestManager.IsQuestComplete(questId); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Error checking quest completion: " + ex.Message); - } - if (isQuestComplete) - { - log.Information($"[QuestRotation] {currentState.CurrentCharacter} already completed quest {questId} - skipping"); - MarkCharacterCompleted(currentState.CurrentCharacter, $"quest {questId} already complete"); - MarkQuestCompleted(questId, currentState.CurrentCharacter); - SkipToNextCharacter(); - return; - } - if (questId == 0) - { - if (currentState.IsSyncOnlyMode) - { - log.Information("[QuestRotation] Sync-Only Mode: Quest scan complete for " + currentState.CurrentCharacter + " - moving to next character"); - MarkCharacterCompleted(currentState.CurrentCharacter, "quest data synchronized"); - SkipToNextCharacter(); - return; - } - StopConditionData stopLevelData = questionableIPC.GetLevelStopCondition(); - if (stopLevelData != null && stopLevelData.Enabled) - { - byte currentLevel = clientState.LocalPlayer?.Level ?? 0; - if (currentLevel >= stopLevelData.TargetValue) - { - log.Information($"[QuestRotation] {currentState.CurrentCharacter} already at target level ({currentLevel} >= {stopLevelData.TargetValue}) - skipping"); - MarkCharacterCompleted(currentState.CurrentCharacter, "target level reached"); - SkipToNextCharacter(); - return; - } - log.Information($"[QuestRotation] Level-Only Mode: {currentState.CurrentCharacter} at level {currentLevel}, targeting {stopLevelData.TargetValue}"); - } - } - log.Information($"[QuestRotation] {currentState.CurrentCharacter} needs to complete quest {questId}"); - if (configuration.EnableDCTravel && dcTravelService != null && dcTravelService.ShouldPerformDCTravel()) - { - log.Information("[QuestRotation] === DC TRAVEL REQUIRED ==="); - log.Information("[QuestRotation] Performing DC travel before starting quest..."); - currentState.Phase = RotationPhase.DCTraveling; - currentState.PhaseStartTime = DateTime.Now; - PerformDCTravelAndStartQuest(); - return; - } - log.Information("[QuestRotation] >>> Phase 4: Waiting for quest to start..."); - if (configuration.EnableMovementMonitor && movementMonitor != null && !movementMonitor.IsMonitoring) - { - movementMonitor.StartMonitoring(); - log.Information("[QuestRotation] Movement monitor started for quest"); - } - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[QuestRotation] Sent /qst start command"); - } - catch (Exception ex2) - { - log.Error("[QuestRotation] Failed to send /qst start: " + ex2.Message); - } - currentState.Phase = RotationPhase.WaitingForQuestStart; - currentState.HasQuestBeenAccepted = false; - currentState.PhaseStartTime = DateTime.Now; - } - - private void PerformDCTravelAndStartQuest() - { - if (dcTravelService == null) - { - return; - } - Task.Run(async delegate - { - try - { - if (await dcTravelService.PerformDCTravel()) - { - log.Information("[QuestRotation] DC travel completed - starting quest"); - try - { - commandManager.ProcessCommand("/qst start"); - log.Information("[QuestRotation] Sent /qst start command"); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Failed to send /qst start: " + ex.Message); - } - currentState.Phase = RotationPhase.WaitingForQuestStart; - currentState.HasQuestBeenAccepted = false; - currentState.PhaseStartTime = DateTime.Now; - } - else - { - log.Error("[QuestRotation] DC travel failed - skipping character"); - SkipToNextCharacter(); - } - } - catch (Exception ex2) - { - log.Error("[QuestRotation] DC travel error: " + ex2.Message); - SkipToNextCharacter(); - } - }); - } - - private unsafe void HandleQuestMonitoring() - { - uint questId = currentState.CurrentStopQuestId; - bool hasReachedStopSequence = false; - StopPoint stopPointForSubmarine = stopPoints.FirstOrDefault((StopPoint sp) => sp.QuestId == questId && sp.IsActive); - if (stopPointForSubmarine != null && stopPointForSubmarine.Sequence.HasValue) - { - string currentQuestIdStr = questionableIPC.GetCurrentQuestId(); - byte? currentSequence = questionableIPC.GetCurrentSequence(); - if (!string.IsNullOrEmpty(currentQuestIdStr) && currentSequence.HasValue && uint.TryParse(currentQuestIdStr, out var currentQuestId) && currentQuestId == questId && currentSequence.Value >= stopPointForSubmarine.Sequence.Value) - { - hasReachedStopSequence = true; - log.Debug($"[QuestRotation] Stop sequence reached (Quest {questId} Seq {currentSequence.Value} >= {stopPointForSubmarine.Sequence.Value}) - skipping submarine check"); - } - } - if (!hasReachedStopSequence && !submarineManager.IsSubmarinePaused && !submarineManager.IsSubmarineCooldownActive()) - { - TimeSpan submarineCheckInterval = TimeSpan.FromSeconds(configuration.SubmarineCheckInterval); - if (DateTime.Now - lastSubmarineCheckTime >= submarineCheckInterval) - { - lastSubmarineCheckTime = DateTime.Now; - if (submarineManager.CheckSubmarines()) - { - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] === SUBMARINES READY - WAITING FOR QUEST COMPLETION ==="); - log.Information("[QuestRotation] ========================================"); - waitingForQuestAcceptForSubmarines = true; - log.Information("[QuestRotation] Waiting for current quest to complete, then will pause for submarines..."); - return; - } - } - } - if (waitingForQuestAcceptForSubmarines) - { - if (QuestManager.Instance() != null && questionableIPC.GetCurrentSequence() == 0) - { - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] === QUEST ACCEPTED - STOPPING QUESTIONABLE ==="); - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] Stopping Questionable..."); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/qst stop"); - }).Wait(); - log.Information("[QuestRotation] ✓ /qst stop command sent"); - log.Information("[QuestRotation] Enabling Multi-Mode..."); - submarineManager.EnableMultiMode(); - waitingForQuestAcceptForSubmarines = false; - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Information("[QuestRotation] Movement monitor stopped for submarine operations"); - } - log.Information("[QuestRotation] Multi-Mode enabled - submarines will now run"); - } - } - else if (submarineManager.IsSubmarinePaused) - { - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Debug("[QuestRotation] Movement monitor stopped during submarine multi-mode"); - } - log.Debug("[QuestRotation] Submarines running in Multi-Mode..."); - int waitTime = submarineManager.CheckSubmarinesSoon(); - if (waitTime == 0) - { - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] === NO SUBMARINES IN NEXT 2 MINUTES ==="); - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] Disabling Multi-Mode and returning to character..."); - submarineManager.DisableMultiModeAndReturn(); - string currentChar = currentState.CurrentCharacter; - log.Information("[QuestRotation] Relogging to " + currentChar + "..."); - if (autoRetainerIpc.SwitchCharacter(currentChar)) - { - log.Information("[QuestRotation] Relog initiated - waiting for character login..."); - submarineManager.CompleteSubmarineRelog(); - if (configuration.EnableMovementMonitor && movementMonitor != null && !movementMonitor.IsMonitoring) - { - movementMonitor.StartMonitoring(); - log.Information("[QuestRotation] Movement monitor restarted after submarine operations"); - } - log.Information("[QuestRotation] Questionable will auto-resume when character is ready"); - } - else - { - log.Error("[QuestRotation] Failed to relog to " + currentChar + "!"); - } - } - else - { - log.Debug($"[QuestRotation] Submarine ready in {waitTime}s - waiting..."); - } - } - else - { - if (submarineManager.IsSubmarineCooldownActive() || waitingForQuestAcceptForSubmarines) - { - return; - } - questTrackingService.UpdateCurrentCharacterQuests(currentState.CurrentCharacter); - StopPoint activeStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.QuestId == questId && sp.IsActive); - bool shouldRotate = false; - if (activeStopPoint != null && activeStopPoint.Sequence.HasValue) - { - string currentQuestIdStr2 = questionableIPC.GetCurrentQuestId(); - byte? currentSequence2 = questionableIPC.GetCurrentSequence(); - uint currentQuestId2; - if (string.IsNullOrEmpty(currentQuestIdStr2) && currentState.HasQuestBeenAccepted) - { - if (QuestManager.Instance() != null) - { - byte gameQuestSeq = QuestManager.GetQuestSequence((ushort)questId); - if (gameQuestSeq >= activeStopPoint.Sequence.Value) - { - log.Information("[QuestRotation] ✓ Questionable auto-stopped at stop point!"); - log.Information($"[QuestRotation] Quest {questId} Sequence {gameQuestSeq} >= {activeStopPoint.Sequence.Value}"); - shouldRotate = true; - } - else - { - log.Debug($"[QuestRotation] Questionable stopped but not at stop sequence (seq {gameQuestSeq} < {activeStopPoint.Sequence.Value})"); - } - } - } - else if (!string.IsNullOrEmpty(currentQuestIdStr2) && currentSequence2.HasValue && uint.TryParse(currentQuestIdStr2, out currentQuestId2)) - { - if (currentQuestId2 == questId) - { - if (currentSequence2.Value >= activeStopPoint.Sequence.Value) - { - log.Information($"[QuestRotation] ✓ Quest {questId} Sequence {activeStopPoint.Sequence.Value} reached by {currentState.CurrentCharacter}!"); - log.Information($"[QuestRotation] Current Sequence: {currentSequence2.Value} (reached {activeStopPoint.Sequence.Value})"); - shouldRotate = true; - } - } - else - { - bool isQuestComplete = false; - try - { - isQuestComplete = QuestManager.IsQuestComplete(questId); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Error checking quest completion: " + ex.Message); - return; - } - if (isQuestComplete) - { - log.Information($"[QuestRotation] ✓ Quest {questId} completed by {currentState.CurrentCharacter}!"); - shouldRotate = true; - } - } - } - } - else - { - bool isQuestComplete2 = false; - try - { - isQuestComplete2 = QuestManager.IsQuestComplete(questId); - } - catch (Exception ex2) - { - log.Error("[QuestRotation] Error checking quest completion: " + ex2.Message); - return; - } - if (isQuestComplete2) - { - log.Information($"[QuestRotation] ✓ Quest {questId} completed by {currentState.CurrentCharacter}!"); - shouldRotate = true; - } - } - if (shouldRotate) - { - log.Information($"[QuestRotation] ✓ Quest {questId} completed by {currentState.CurrentCharacter}!"); - if (stepsOfFaithHandler != null && questId == 4591) - { - stepsOfFaithHandler.Reset(); - } - try - { - commandManager.ProcessCommand("/qst stop"); - log.Information("[QuestRotation] Sent /qst stop command"); - } - catch (Exception ex3) - { - log.Error("[QuestRotation] Failed to send /qst stop: " + ex3.Message); - } - log.Information("[QuestRotation] Updating quest completion data for " + currentState.CurrentCharacter + "..."); - ScanAndSaveAllCompletedQuests(currentState.CurrentCharacter); - List completed = currentState.CompletedCharacters; - List remaining = currentState.RemainingCharacters; - log.Debug($"[QuestRotation] DEBUG - Before update: CompletedCharacters count = {completed.Count}, RemainingCharacters count = {remaining.Count}"); - if (!completed.Contains(currentState.CurrentCharacter)) - { - completed.Add(currentState.CurrentCharacter); - log.Information("[QuestRotation] ✓ Added " + currentState.CurrentCharacter + " to CompletedCharacters list"); - } - else - { - log.Warning("[QuestRotation] " + currentState.CurrentCharacter + " was already in CompletedCharacters list!"); - } - bool wasRemoved = remaining.Remove(currentState.CurrentCharacter); - log.Information($"[QuestRotation] Removed {currentState.CurrentCharacter} from RemainingCharacters list: {wasRemoved}"); - currentState.CompletedCharacters = completed; - currentState.RemainingCharacters = remaining; - log.Debug($"[QuestRotation] DEBUG - After update: CompletedCharacters count = {currentState.CompletedCharacters.Count}, RemainingCharacters count = {currentState.RemainingCharacters.Count}"); - log.Debug("[QuestRotation] DEBUG - CompletedCharacters: " + string.Join(", ", currentState.CompletedCharacters)); - log.Debug("[QuestRotation] DEBUG - RemainingCharacters: " + string.Join(", ", currentState.RemainingCharacters)); - currentState.Phase = RotationPhase.WaitingForHomeworldReturn; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[QuestRotation] Waiting 5s before homeworld return..."); - } - else - { - if (currentState.Phase != RotationPhase.WaitingForQuestStart) - { - return; - } - bool isQuestAccepted = false; - try - { - QuestManager* questManager = QuestManager.Instance(); - if (questManager != null) - { - isQuestAccepted = questManager->IsQuestAccepted((ushort)questId); - } - } - catch - { - } - if (isQuestAccepted) - { - log.Information($"[QuestRotation] Quest {questId} accepted by {currentState.CurrentCharacter} - now monitoring for completion"); - currentState.Phase = RotationPhase.QuestActive; - currentState.HasQuestBeenAccepted = true; - } - } - } - } - - private void HandleCompleted() - { - log.Information("[QuestRotation] ═══ ROTATION COMPLETED ═══"); - log.Information($"[QuestRotation] All {currentState.CompletedCharacters.Count} characters completed quest {currentState.CurrentStopQuestId}"); - if (dcTravelService != null && dcTravelService.IsDCTravelCompleted()) - { - log.Information("[QuestRotation] DC Travel state reset after rotation completion"); - dcTravelService.ResetDCTravelState(); - } - StopPoint stopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.QuestId == currentState.CurrentStopQuestId); - if (stopPoint != null) - { - stopPoint.IsActive = false; - } - isRotationActive = false; - combatDutyDetection?.SetRotationActive(active: false); - combatDutyDetection?.Reset(); - deathHandler?.SetRotationActive(active: false); - deathHandler?.Reset(); - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Information("[QuestRotation] Movement monitor stopped"); - } - currentState.Phase = RotationPhase.Idle; - } - - private void HandleWaitingForHomeworldReturn() - { - if (!((DateTime.Now - currentState.PhaseStartTime).TotalSeconds >= 5.0)) - { - return; - } - if (configuration.ReturnToHomeworldOnStopQuest) - { - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] === SENDING HOMEWORLD RETURN COMMAND ==="); - log.Information("[QuestRotation] ========================================"); - try - { - commandManager.ProcessCommand("/li"); - log.Information("[QuestRotation] ✓ /li command sent (homeworld return)"); - } - catch (Exception ex) - { - log.Error("[QuestRotation] Failed to send /li command: " + ex.Message); - } - } - else - { - log.Information("[QuestRotation] Skipping homeworld return (setting disabled)"); - } - Task.Delay(2000).ContinueWith(delegate - { - framework.RunOnFrameworkThread(delegate - { - log.Information("[QuestRotation] Homeworld return initiated, moving to next character..."); - SkipToNextCharacter(); - }); - }); - } - - private void SkipToNextCharacter() - { - if (preCheckService != null) - { - log.Information("[QuestRotation] Logging completed quests before logout..."); - preCheckService.LogCompletedQuestsBeforeLogout(); - } - if (dcTravelService != null && dcTravelService.IsDCTravelCompleted()) - { - log.Information("[QuestRotation] DC Travel state reset for next character"); - dcTravelService.ResetDCTravelState(); - } - log.Information("[QuestRotation] Waiting 2s before character switch..."); - currentState.Phase = RotationPhase.WaitingBeforeCharacterSwitch; - currentState.PhaseStartTime = DateTime.Now; - } - - private void MarkCharacterCompleted(string characterName, string reason = "") - { - List completedList = currentState.CompletedCharacters; - if (!completedList.Contains(characterName)) - { - completedList.Add(characterName); - currentState.CompletedCharacters = completedList; - log.Debug("[QuestRotation] Added '" + characterName + "' to completed list" + (string.IsNullOrEmpty(reason) ? "" : (" (" + reason + ")"))); - } - List remainingList = currentState.RemainingCharacters; - bool num = remainingList.Remove(characterName); - currentState.RemainingCharacters = remainingList; - if (num) - { - log.Information("[QuestRotation] Removed '" + characterName + "' from remaining list"); - log.Information($"[QuestRotation] Progress: {currentState.CompletedCharacters.Count}/{currentState.SelectedCharacters.Count} completed"); - } - } - - private void HandleWaitingBeforeCharacterSwitch() - { - if (movementMonitor != null && movementMonitor.IsMonitoring) - { - movementMonitor.StopMonitoring(); - log.Debug("[QuestRotation] Movement monitor stopped during character switch wait"); - } - if (condition[ConditionFlag.BetweenAreas]) - { - log.Debug("[QuestRotation] Character is between areas (Condition 32) - waiting..."); - } - else if ((DateTime.Now - currentState.PhaseStartTime).TotalSeconds >= 2.0) - { - log.Debug("[QuestRotation] 2s wait complete and not between areas, performing character switch..."); - PerformCharacterSwitch(); - } - } - - private void PerformCharacterSwitch() - { - if (currentState.RemainingCharacters.Count == 0) - { - StopPoint currentStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.IsActive); - StopPoint nextStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => !sp.IsActive); - if (currentStopPoint != null && nextStopPoint != null) - { - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] === CURRENT STOP POINT COMPLETED ==="); - log.Information("[QuestRotation] ========================================"); - log.Information("[QuestRotation] Completed: " + currentStopPoint.DisplayName); - log.Information("[QuestRotation] Moving to next stop point: " + nextStopPoint.DisplayName); - currentStopPoint.IsActive = false; - nextStopPoint.IsActive = true; - currentState.CompletedCharacters.Clear(); - currentState.RemainingCharacters = new List(currentState.SelectedCharacters); - currentState.CurrentStopQuestId = nextStopPoint.QuestId; - string firstChar = currentState.RemainingCharacters[0]; - currentState.CurrentCharacter = firstChar; - currentState.NextCharacter = firstChar; - log.Information("[QuestRotation] Starting next stop point with " + firstChar); - if (autoRetainerIpc.SwitchCharacter(firstChar)) - { - currentState.Phase = RotationPhase.WaitingForCharacterLogin; - currentState.PhaseStartTime = DateTime.Now; - } - else - { - log.Error("[QuestRotation] Failed to switch to " + firstChar); - currentState.Phase = RotationPhase.Error; - currentState.ErrorMessage = "Failed to switch to " + firstChar; - } - } - else - { - log.Information("[QuestRotation] No more stop points to process"); - currentState.Phase = RotationPhase.Completed; - } - return; - } - if (dcTravelService != null) - { - dcTravelService.ResetDCTravelState(); - log.Information("[QuestRotation] DC Travel state reset for next character"); - } - log.Debug($"[QuestRotation] DEBUG - RemainingCharacters count: {currentState.RemainingCharacters.Count}"); - log.Debug("[QuestRotation] DEBUG - RemainingCharacters list: " + string.Join(", ", currentState.RemainingCharacters)); - log.Debug($"[QuestRotation] DEBUG - CompletedCharacters count: {currentState.CompletedCharacters.Count}"); - log.Debug("[QuestRotation] DEBUG - CompletedCharacters list: " + string.Join(", ", currentState.CompletedCharacters)); - string nextChar = currentState.RemainingCharacters[0]; - currentState.CurrentCharacter = nextChar; - currentState.NextCharacter = nextChar; - log.Information("[QuestRotation] Switching to next character: " + nextChar); - log.Information($"[QuestRotation] Progress: {currentState.CompletedCharacters.Count}/{currentState.SelectedCharacters.Count} completed"); - if (autoRetainerIpc.SwitchCharacter(nextChar)) - { - currentState.Phase = RotationPhase.WaitingForCharacterLogin; - currentState.PhaseStartTime = DateTime.Now; - log.Information("[QuestRotation] Character switch initiated to " + nextChar); - } - else - { - log.Error("[QuestRotation] Failed to switch to " + nextChar); - currentState.Phase = RotationPhase.Error; - currentState.ErrorMessage = "Failed to switch character"; - } - } - - public void Dispose() - { - framework.Update -= OnFrameworkUpdate; - log.Information("[QuestRotation] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestTrackingService.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestTrackingService.cs deleted file mode 100644 index b82ac1d..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestTrackingService.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System; -using System.Collections.Generic; -using Dalamud.Plugin.Services; -using FFXIVClientStructs.FFXIV.Client.Game; - -namespace QuestionableCompanion.Services; - -public class QuestTrackingService : IDisposable -{ - private readonly IPluginLog log; - - private readonly Dictionary> characterQuestCache = new Dictionary>(); - - public QuestTrackingService(IPluginLog log) - { - this.log = log; - } - - public HashSet GetCharacterCompletedQuests(string characterName) - { - if (string.IsNullOrEmpty(characterName)) - { - return new HashSet(); - } - if (characterQuestCache.TryGetValue(characterName, out HashSet quests)) - { - return quests; - } - return new HashSet(); - } - - public void UpdateCurrentCharacterQuests(string characterName) - { - if (string.IsNullOrEmpty(characterName)) - { - return; - } - try - { - HashSet completedQuests = new HashSet(); - for (uint questId = 66000u; questId < 72000; questId++) - { - try - { - if (QuestManager.IsQuestComplete(questId)) - { - completedQuests.Add(questId); - } - } - catch - { - } - } - characterQuestCache[characterName] = completedQuests; - } - catch (Exception ex) - { - log.Error("[QuestTracking] Failed to update quests for " + characterName + ": " + ex.Message); - } - } - - public bool IsQuestCompleted(string characterName, uint questId) - { - return GetCharacterCompletedQuests(characterName).Contains(questId); - } - - public void ClearCharacterCache(string characterName) - { - if (characterQuestCache.ContainsKey(characterName)) - { - characterQuestCache.Remove(characterName); - log.Debug("[QuestTracking] Cleared cache for " + characterName); - } - } - - public void ClearAllCache() - { - characterQuestCache.Clear(); - log.Information("[QuestTracking] Cleared all cached quest data"); - } - - public void Dispose() - { - characterQuestCache.Clear(); - log.Information("[QuestTracking] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestionableIPC.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestionableIPC.cs deleted file mode 100644 index 83ed02f..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestionableIPC.cs +++ /dev/null @@ -1,959 +0,0 @@ -using System; -using System.Collections.Generic; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class QuestionableIPC : IDisposable -{ - private readonly IDalamudPluginInterface pluginInterface; - - private readonly IPluginLog log; - - private ICallGateSubscriber? importQuestPrioritySubscriber; - - private ICallGateSubscriber? getCurrentQuestIdSubscriber; - - private ICallGateSubscriber? getCurrentStepDataSubscriber; - - private ICallGateSubscriber? isRunningSubscriber; - - private ICallGateSubscriber? getCurrentTaskSubscriber; - - private ICallGateSubscriber? isQuestCompleteSubscriber; - - private ICallGateSubscriber? isReadyToAcceptQuestSubscriber; - - private ICallGateSubscriber? addQuestPrioritySubscriber; - - private ICallGateSubscriber? clearQuestPrioritySubscriber; - - private ICallGateSubscriber>? getCurrentlyActiveEventQuestsSubscriber; - - private ICallGateSubscriber? getAlliedSocietyRemainingAllowancesSubscriber; - - private ICallGateSubscriber>? getAlliedSocietyAvailableQuestIdsSubscriber; - - private ICallGateSubscriber>? getAlliedSocietyAllAvailableQuestCountsSubscriber; - - private ICallGateSubscriber? getAlliedSocietyIsMaxRankSubscriber; - - private ICallGateSubscriber? getAlliedSocietyCurrentRankSubscriber; - - private ICallGateSubscriber>? getAlliedSocietiesWithAvailableQuestsSubscriber; - - private ICallGateSubscriber? addAlliedSocietyOptimalQuestsSubscriber; - - private ICallGateSubscriber>? getAlliedSocietyOptimalQuestsSubscriber; - - private ICallGateSubscriber? getAlliedSocietyTimeUntilResetSubscriber; - - private ICallGateSubscriber? getStopConditionsEnabledSubscriber; - - private ICallGateSubscriber>? getStopQuestListSubscriber; - - private ICallGateSubscriber? getLevelStopConditionSubscriber; - - private ICallGateSubscriber? getSequenceStopConditionSubscriber; - - private ICallGateSubscriber? getQuestSequenceStopConditionSubscriber; - - private ICallGateSubscriber? removeQuestSequenceStopConditionSubscriber; - - private ICallGateSubscriber>? getAllQuestSequenceStopConditionsSubscriber; - - private ICallGateSubscriber? getDefaultDutyModeSubscriber; - - private ICallGateSubscriber? setDefaultDutyModeSubscriber; - - private bool subscribersInitialized; - - private DateTime lastAvailabilityCheck = DateTime.MinValue; - - private const int AvailabilityCheckCooldownSeconds = 5; - - public bool IsAvailable { get; private set; } - - public QuestionableIPC(IDalamudPluginInterface pluginInterface, IPluginLog log) - { - this.pluginInterface = pluginInterface; - this.log = log; - InitializeIPC(); - } - - private void InitializeIPC() - { - try - { - getCurrentQuestIdSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetCurrentQuestId"); - getCurrentStepDataSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetCurrentStepData"); - isRunningSubscriber = pluginInterface.GetIpcSubscriber("Questionable.IsRunning"); - importQuestPrioritySubscriber = pluginInterface.GetIpcSubscriber("Questionable.ImportQuestPriority"); - getCurrentTaskSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetCurrentTask"); - isQuestCompleteSubscriber = pluginInterface.GetIpcSubscriber("Questionable.IsQuestComplete"); - isReadyToAcceptQuestSubscriber = pluginInterface.GetIpcSubscriber("Questionable.IsReadyToAcceptQuest"); - addQuestPrioritySubscriber = pluginInterface.GetIpcSubscriber("Questionable.AddQuestPriority"); - clearQuestPrioritySubscriber = pluginInterface.GetIpcSubscriber("Questionable.ClearQuestPriority"); - getCurrentlyActiveEventQuestsSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.GetCurrentlyActiveEventQuests"); - getAlliedSocietyRemainingAllowancesSubscriber = pluginInterface.GetIpcSubscriber("Questionable.AlliedSociety.GetRemainingAllowances"); - getAlliedSocietyAvailableQuestIdsSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.AlliedSociety.GetAvailableQuestIds"); - getAlliedSocietyAllAvailableQuestCountsSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.AlliedSociety.GetAllAvailableQuestCounts"); - getAlliedSocietyIsMaxRankSubscriber = pluginInterface.GetIpcSubscriber("Questionable.AlliedSociety.IsMaxRank"); - getAlliedSocietyCurrentRankSubscriber = pluginInterface.GetIpcSubscriber("Questionable.AlliedSociety.GetCurrentRank"); - getAlliedSocietiesWithAvailableQuestsSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.AlliedSociety.GetSocietiesWithAvailableQuests"); - addAlliedSocietyOptimalQuestsSubscriber = pluginInterface.GetIpcSubscriber("Questionable.AlliedSociety.AddOptimalQuests"); - getAlliedSocietyOptimalQuestsSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.AlliedSociety.GetOptimalQuests"); - getAlliedSocietyTimeUntilResetSubscriber = pluginInterface.GetIpcSubscriber("Questionable.AlliedSociety.GetTimeUntilReset"); - getStopConditionsEnabledSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetStopConditionsEnabled"); - getStopQuestListSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.GetStopQuestList"); - getLevelStopConditionSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetLevelStopCondition"); - getSequenceStopConditionSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetSequenceStopCondition"); - getQuestSequenceStopConditionSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetQuestSequenceStopCondition"); - removeQuestSequenceStopConditionSubscriber = pluginInterface.GetIpcSubscriber("Questionable.RemoveQuestSequenceStopCondition"); - getAllQuestSequenceStopConditionsSubscriber = pluginInterface.GetIpcSubscriber>("Questionable.GetAllQuestSequenceStopConditions"); - getDefaultDutyModeSubscriber = pluginInterface.GetIpcSubscriber("Questionable.GetDefaultDutyMode"); - setDefaultDutyModeSubscriber = pluginInterface.GetIpcSubscriber("Questionable.SetDefaultDutyMode"); - subscribersInitialized = true; - log.Debug("[QuestionableIPC] IPC subscribers initialized (lazy-loading enabled)"); - } - catch (Exception ex) - { - IsAvailable = false; - subscribersInitialized = false; - log.Error("[QuestionableIPC] Failed to initialize subscribers: " + ex.Message); - } - } - - private bool TryEnsureAvailable() - { - if (IsAvailable) - { - return true; - } - if (!subscribersInitialized) - { - log.Warning("[QuestionableIPC] Subscribers not initialized!"); - return false; - } - DateTime now = DateTime.Now; - if ((now - lastAvailabilityCheck).TotalSeconds < 5.0) - { - return false; - } - lastAvailabilityCheck = now; - try - { - if (isRunningSubscriber == null) - { - log.Error("[QuestionableIPC] isRunningSubscriber is NULL!"); - return false; - } - isRunningSubscriber.InvokeFunc(); - if (!IsAvailable) - { - IsAvailable = true; - } - return true; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] Failed to connect to Questionable:"); - log.Error("[QuestionableIPC] Exception Type: " + ex.GetType().Name); - log.Error("[QuestionableIPC] Message: " + ex.Message); - log.Error("[QuestionableIPC] Stack Trace: " + ex.StackTrace); - IsAvailable = false; - return false; - } - } - - public bool ForceCheckAvailability() - { - try - { - if (!subscribersInitialized) - { - log.Error("[QuestionableIPC] Subscribers not initialized!"); - return false; - } - if (isRunningSubscriber == null) - { - log.Error("[QuestionableIPC] isRunningSubscriber is NULL!"); - return false; - } - log.Information("[QuestionableIPC] Force checking Questionable availability..."); - log.Information("[QuestionableIPC] Attempting to call Questionable.IsRunning..."); - bool testRunning = isRunningSubscriber.InvokeFunc(); - log.Information($"[QuestionableIPC] SUCCESS! Questionable.IsRunning returned: {testRunning}"); - IsAvailable = true; - lastAvailabilityCheck = DateTime.Now; - return true; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] Failed to connect to Questionable:"); - log.Error("[QuestionableIPC] Exception Type: " + ex.GetType().Name); - log.Error("[QuestionableIPC] Message: " + ex.Message); - log.Error("[QuestionableIPC] Stack Trace: " + ex.StackTrace); - IsAvailable = false; - return false; - } - } - - public bool TryEnsureAvailableSilent() - { - if (IsAvailable) - { - return true; - } - if (!subscribersInitialized) - { - return false; - } - lastAvailabilityCheck = DateTime.MinValue; - try - { - if (isRunningSubscriber == null) - { - return false; - } - isRunningSubscriber.InvokeFunc(); - if (!IsAvailable) - { - IsAvailable = true; - } - return true; - } - catch - { - IsAvailable = false; - return false; - } - } - - public string? GetCurrentQuestId() - { - TryEnsureAvailable(); - if (!IsAvailable || getCurrentQuestIdSubscriber == null) - { - return null; - } - try - { - return getCurrentQuestIdSubscriber.InvokeFunc(); - } - catch (Exception ex) - { - log.Debug("[QuestionableIPC] GetCurrentQuestId failed: " + ex.Message); - return null; - } - } - - public StepData? GetCurrentStepData() - { - TryEnsureAvailable(); - if (!IsAvailable || getCurrentStepDataSubscriber == null) - { - return null; - } - try - { - return getCurrentStepDataSubscriber.InvokeFunc(); - } - catch (Exception ex) - { - log.Debug("[QuestionableIPC] GetCurrentStepData failed: " + ex.Message); - return null; - } - } - - public byte? GetCurrentSequence() - { - TryEnsureAvailable(); - if (!IsAvailable || getCurrentStepDataSubscriber == null) - { - return null; - } - try - { - return getCurrentStepDataSubscriber.InvokeFunc()?.Sequence; - } - catch (Exception ex) - { - log.Debug("[QuestionableIPC] GetCurrentSequence failed: " + ex.Message); - return null; - } - } - - public bool IsRunning() - { - TryEnsureAvailable(); - if (isRunningSubscriber == null) - { - return false; - } - try - { - bool result = isRunningSubscriber.InvokeFunc(); - if (!IsAvailable) - { - IsAvailable = true; - log.Information("[QuestionableIPC] Questionable is now available"); - } - return result; - } - catch (Exception ex) - { - if (IsAvailable) - { - IsAvailable = false; - log.Warning("[QuestionableIPC] Questionable is no longer available: " + ex.Message); - } - log.Debug("[QuestionableIPC] IsRunning failed: " + ex.Message); - return false; - } - } - - public object? GetCurrentTask() - { - TryEnsureAvailable(); - if (getCurrentTaskSubscriber == null) - { - return null; - } - try - { - object? result = getCurrentTaskSubscriber.InvokeFunc(); - if (!IsAvailable) - { - IsAvailable = true; - log.Information("[QuestionableIPC] Questionable is now available"); - } - return result; - } - catch (Exception ex) - { - if (IsAvailable) - { - IsAvailable = false; - log.Warning("[QuestionableIPC] Questionable is no longer available: " + ex.Message); - } - log.Debug("[QuestionableIPC] GetCurrentTask failed: " + ex.Message); - return null; - } - } - - public bool Start() - { - log.Warning("[QuestionableIPC] Start() called - NOT AVAILABLE VIA IPC!"); - log.Warning("[QuestionableIPC] Use /qst start command instead"); - return false; - } - - public bool Stop() - { - log.Warning("[QuestionableIPC] Stop() called - NOT AVAILABLE VIA IPC!"); - log.Warning("[QuestionableIPC] Use /qst stop command instead"); - return false; - } - - public bool ImportQuestPriority(string base64QuestData) - { - TryEnsureAvailable(); - if (!IsAvailable || importQuestPrioritySubscriber == null) - { - return false; - } - try - { - bool result = importQuestPrioritySubscriber.InvokeFunc(base64QuestData); - log.Information($"[QuestionableIPC] Imported priority quest: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] ImportQuestPriority failed: " + ex.Message); - return false; - } - } - - public bool AddQuestPriority(string questId) - { - TryEnsureAvailable(); - if (!IsAvailable || addQuestPrioritySubscriber == null) - { - return false; - } - try - { - bool result = addQuestPrioritySubscriber.InvokeFunc(questId); - log.Debug($"[QuestionableIPC] Added quest {questId} to priority: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] AddQuestPriority failed: " + ex.Message); - return false; - } - } - - public bool ClearQuestPriority() - { - TryEnsureAvailable(); - if (!IsAvailable || clearQuestPrioritySubscriber == null) - { - return false; - } - try - { - bool result = clearQuestPrioritySubscriber.InvokeFunc(); - log.Debug($"[QuestionableIPC] Cleared quest priority: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] ClearQuestPriority failed: " + ex.Message); - return false; - } - } - - public bool IsQuestComplete(string questId) - { - TryEnsureAvailable(); - if (!IsAvailable || isQuestCompleteSubscriber == null) - { - return false; - } - try - { - bool result = isQuestCompleteSubscriber.InvokeFunc(questId); - log.Debug($"[QuestionableIPC] Quest {questId} complete: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] IsQuestComplete failed: " + ex.Message); - return false; - } - } - - public bool IsReadyToAcceptQuest(string questId) - { - TryEnsureAvailable(); - if (!IsAvailable || isReadyToAcceptQuestSubscriber == null) - { - return false; - } - try - { - bool result = isReadyToAcceptQuestSubscriber.InvokeFunc(questId); - log.Debug($"[QuestionableIPC] Quest {questId} ready to accept: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] IsReadyToAcceptQuest failed: " + ex.Message); - return false; - } - } - - public bool AddQuestsToQueue(List questIds) - { - TryEnsureAvailable(); - if (!IsAvailable) - { - log.Warning("[QuestionableIPC] Cannot add quests to queue - Questionable not available"); - return false; - } - if (questIds == null || questIds.Count == 0) - { - return true; - } - try - { - log.Information($"[QuestionableIPC] Adding {questIds.Count} quests to priority queue"); - foreach (string questId in questIds) - { - if (!string.IsNullOrEmpty(questId)) - { - try - { - bool? result = addQuestPrioritySubscriber?.InvokeFunc(questId); - log.Debug($"[QuestionableIPC] Added quest {questId} to queue: {result}"); - } - catch (Exception ex) - { - log.Warning("[QuestionableIPC] Failed to add quest " + questId + " to queue: " + ex.Message); - } - } - } - log.Information("[QuestionableIPC] All quests added to priority queue"); - return true; - } - catch (Exception ex2) - { - log.Error("[QuestionableIPC] Error adding quests to queue: " + ex2.Message); - return false; - } - } - - public List GetCurrentlyActiveEventQuests() - { - TryEnsureAvailable(); - if (!IsAvailable || getCurrentlyActiveEventQuestsSubscriber == null) - { - log.Warning("[QuestionableIPC] Cannot get active event quests - Questionable not available"); - return new List(); - } - try - { - List eventQuests = getCurrentlyActiveEventQuestsSubscriber.InvokeFunc(); - log.Debug($"[QuestionableIPC] Retrieved {eventQuests?.Count ?? 0} active event quests"); - return eventQuests ?? new List(); - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] Error getting active event quests: " + ex.Message); - return new List(); - } - } - - public int GetAlliedSocietyRemainingAllowances() - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyRemainingAllowancesSubscriber == null) - { - log.Debug("[AlliedSociety] Cannot get remaining allowances - Questionable not available"); - return 12; - } - try - { - int result = getAlliedSocietyRemainingAllowancesSubscriber.InvokeFunc(); - log.Debug($"[AlliedSociety] Remaining allowances: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Error getting remaining allowances: " + ex.Message); - return 12; - } - } - - public List GetAlliedSocietyAvailableQuestIds(byte societyId) - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyAvailableQuestIdsSubscriber == null) - { - log.Debug($"[AlliedSociety] Cannot get quest IDs for society {societyId} - Questionable not available"); - return new List(); - } - try - { - List result = getAlliedSocietyAvailableQuestIdsSubscriber.InvokeFunc(societyId); - log.Debug($"[AlliedSociety] Society {societyId} has {result?.Count ?? 0} available quests"); - return result ?? new List(); - } - catch (Exception ex) - { - log.Error($"[AlliedSociety] Error getting quest IDs for society {societyId}: {ex.Message}"); - return new List(); - } - } - - public Dictionary GetAlliedSocietyAllAvailableQuestCounts() - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyAllAvailableQuestCountsSubscriber == null) - { - log.Debug("[AlliedSociety] Cannot get quest counts - Questionable not available"); - return new Dictionary(); - } - try - { - Dictionary result = getAlliedSocietyAllAvailableQuestCountsSubscriber.InvokeFunc(); - log.Debug($"[AlliedSociety] Found {result?.Count ?? 0} societies with available quests"); - return result ?? new Dictionary(); - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Error getting quest counts: " + ex.Message); - return new Dictionary(); - } - } - - public bool GetAlliedSocietyIsMaxRank(byte societyId) - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyIsMaxRankSubscriber == null) - { - log.Debug($"[AlliedSociety] Cannot check max rank for society {societyId} - Questionable not available"); - return false; - } - try - { - bool result = getAlliedSocietyIsMaxRankSubscriber.InvokeFunc(societyId); - log.Debug($"[AlliedSociety] Society {societyId} max rank: {result}"); - return result; - } - catch (Exception ex) - { - log.Error($"[AlliedSociety] Error checking max rank for society {societyId}: {ex.Message}"); - return false; - } - } - - public int GetAlliedSocietyCurrentRank(byte societyId) - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyCurrentRankSubscriber == null) - { - log.Debug($"[AlliedSociety] Cannot get rank for society {societyId} - Questionable not available"); - return -1; - } - try - { - int result = getAlliedSocietyCurrentRankSubscriber.InvokeFunc(societyId); - log.Debug($"[AlliedSociety] Society {societyId} current rank: {result}"); - return result; - } - catch (Exception ex) - { - log.Error($"[AlliedSociety] Error getting rank for society {societyId}: {ex.Message}"); - return -1; - } - } - - public List GetAlliedSocietiesWithAvailableQuests() - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietiesWithAvailableQuestsSubscriber == null) - { - log.Debug("[AlliedSociety] Cannot get societies with quests - Questionable not available"); - return new List(); - } - try - { - List result = getAlliedSocietiesWithAvailableQuestsSubscriber.InvokeFunc(); - log.Debug($"[AlliedSociety] Found {result?.Count ?? 0} societies with available quests"); - return result ?? new List(); - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Error getting societies with quests: " + ex.Message); - return new List(); - } - } - - public int AddAlliedSocietyOptimalQuests(byte societyId) - { - TryEnsureAvailable(); - if (!IsAvailable || addAlliedSocietyOptimalQuestsSubscriber == null) - { - log.Debug($"[AlliedSociety] Cannot add optimal quests for society {societyId} - Questionable not available"); - return 0; - } - try - { - int result = addAlliedSocietyOptimalQuestsSubscriber.InvokeFunc(societyId); - log.Information($"[AlliedSociety] Added {result} optimal quests for society {societyId}"); - return result; - } - catch (Exception ex) - { - log.Error($"[AlliedSociety] Error adding optimal quests for society {societyId}: {ex.Message}"); - return 0; - } - } - - public List GetAlliedSocietyOptimalQuests(byte societyId) - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyOptimalQuestsSubscriber == null) - { - log.Debug($"[AlliedSociety] Cannot get optimal quests for society {societyId} - Questionable not available"); - return new List(); - } - try - { - List result = getAlliedSocietyOptimalQuestsSubscriber.InvokeFunc(societyId); - log.Debug($"[AlliedSociety] Found {result?.Count ?? 0} optimal quests for society {societyId}"); - return result ?? new List(); - } - catch (Exception ex) - { - log.Error($"[AlliedSociety] Error getting optimal quests for society {societyId}: {ex.Message}"); - return new List(); - } - } - - public TimeSpan GetAlliedSocietyTimeUntilReset() - { - TryEnsureAvailable(); - if (!IsAvailable || getAlliedSocietyTimeUntilResetSubscriber == null) - { - log.Debug("[AlliedSociety] Cannot get time until reset - Questionable not available"); - return TimeSpan.Zero; - } - try - { - TimeSpan timeSpan = TimeSpan.FromTicks(getAlliedSocietyTimeUntilResetSubscriber.InvokeFunc()); - log.Debug($"[AlliedSociety] Time until reset: {timeSpan}"); - return timeSpan; - } - catch (Exception ex) - { - log.Error("[AlliedSociety] Error getting time until reset: " + ex.Message); - return TimeSpan.Zero; - } - } - - public bool GetStopConditionsEnabled() - { - TryEnsureAvailable(); - if (!IsAvailable || getStopConditionsEnabledSubscriber == null) - { - log.Debug("[StopCondition] Cannot get stop conditions enabled - Questionable not available"); - return false; - } - try - { - bool result = getStopConditionsEnabledSubscriber.InvokeFunc(); - log.Debug($"[StopCondition] Stop conditions enabled: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[StopCondition] Error getting stop conditions enabled: " + ex.Message); - return false; - } - } - - public List GetStopQuestList() - { - TryEnsureAvailable(); - if (!IsAvailable || getStopQuestListSubscriber == null) - { - return new List(); - } - try - { - List result = getStopQuestListSubscriber.InvokeFunc(); - log.Debug($"[StopCondition] Found {result?.Count ?? 0} stop quests"); - return result ?? new List(); - } - catch (Exception ex) - { - log.Error("[StopCondition] Error getting stop quest list: " + ex.Message); - return new List(); - } - } - - public StopConditionData? GetLevelStopCondition() - { - TryEnsureAvailable(); - if (!IsAvailable || getLevelStopConditionSubscriber == null) - { - log.Debug("[StopCondition] Cannot get level stop condition - Questionable not available"); - return null; - } - try - { - return getLevelStopConditionSubscriber.InvokeFunc(); - } - catch (Exception ex) - { - log.Error("[StopCondition] Error getting level stop condition: " + ex.Message); - return null; - } - } - - public StopConditionData? GetSequenceStopCondition() - { - TryEnsureAvailable(); - if (!IsAvailable || getSequenceStopConditionSubscriber == null) - { - log.Debug("[StopCondition] Cannot get sequence stop condition - Questionable not available"); - return null; - } - try - { - StopConditionData result = getSequenceStopConditionSubscriber.InvokeFunc(); - log.Debug($"[StopCondition] Sequence stop condition - Enabled: {result?.Enabled}, Target: {result?.TargetValue}"); - return result; - } - catch (Exception ex) - { - log.Error("[StopCondition] Error getting sequence stop condition: " + ex.Message); - return null; - } - } - - public object? GetQuestSequenceStopCondition(string questId, uint sequence, int step) - { - TryEnsureAvailable(); - if (!IsAvailable || getQuestSequenceStopConditionSubscriber == null) - { - log.Warning("[StopCondition] Cannot get quest sequence stop condition - Questionable not available"); - return null; - } - try - { - object result = getQuestSequenceStopConditionSubscriber.InvokeFunc(questId, sequence, step); - if (result == null) - { - log.Information($"[StopCondition] No quest sequence stop condition found for {questId} at {sequence}-{step}"); - } - else - { - log.Information($"[StopCondition] Quest sequence stop condition for {questId} at {sequence}-{step}: {result}"); - } - return result; - } - catch (Exception ex) - { - log.Error("[StopCondition] Error getting quest sequence stop condition: " + ex.Message); - return null; - } - } - - public bool RemoveQuestSequenceStopCondition(string questId) - { - TryEnsureAvailable(); - if (!IsAvailable || removeQuestSequenceStopConditionSubscriber == null) - { - log.Warning("[StopCondition] Cannot remove quest sequence stop condition - Questionable not available"); - return false; - } - try - { - bool num = removeQuestSequenceStopConditionSubscriber.InvokeFunc(questId); - if (num) - { - log.Information("[StopCondition] ✓ Removed quest sequence stop condition for " + questId); - } - else - { - log.Warning("[StopCondition] ✗ No quest sequence stop condition to remove for " + questId + " (or removal failed)"); - } - return num; - } - catch (Exception ex) - { - log.Error("[StopCondition] Error removing quest sequence stop condition: " + ex.Message); - return false; - } - } - - public Dictionary GetAllQuestSequenceStopConditions() - { - TryEnsureAvailable(); - if (!IsAvailable || getAllQuestSequenceStopConditionsSubscriber == null) - { - return new Dictionary(); - } - try - { - Dictionary result = getAllQuestSequenceStopConditionsSubscriber.InvokeFunc(); - if (result == null || result.Count == 0) - { - log.Information("[StopCondition] No quest sequence stop conditions configured (empty or null result)"); - return new Dictionary(); - } - log.Information($"[StopCondition] Found {result.Count} quest sequence stop condition(s)"); - return result; - } - catch (Exception ex) - { - log.Error("[StopCondition] Error getting all quest sequence stop conditions: " + ex.Message); - return new Dictionary(); - } - } - - public int GetDefaultDutyMode() - { - TryEnsureAvailable(); - if (!IsAvailable || getDefaultDutyModeSubscriber == null) - { - log.Debug("[QuestionableIPC] Cannot get default duty mode - Questionable not available"); - return 0; - } - try - { - int result = getDefaultDutyModeSubscriber.InvokeFunc(); - log.Debug($"[QuestionableIPC] Default Duty Mode: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] GetDefaultDutyMode failed: " + ex.Message); - return 0; - } - } - - public bool SetDefaultDutyMode(int dutyMode) - { - TryEnsureAvailable(); - if (!IsAvailable || setDefaultDutyModeSubscriber == null) - { - log.Debug("[QuestionableIPC] Cannot set default duty mode - Questionable not available"); - return false; - } - try - { - bool result = setDefaultDutyModeSubscriber.InvokeFunc(dutyMode); - log.Information($"[QuestionableIPC] Set Default Duty Mode to {dutyMode}: {result}"); - return result; - } - catch (Exception ex) - { - log.Error("[QuestionableIPC] SetDefaultDutyMode failed: " + ex.Message); - return false; - } - } - - public bool ValidateFeatureCompatibility() - { - if (!IsAvailable) - { - return false; - } - try - { - if (getAllQuestSequenceStopConditionsSubscriber == null) - { - return false; - } - if (getLevelStopConditionSubscriber == null) - { - return false; - } - if (getAlliedSocietyOptimalQuestsSubscriber == null) - { - return false; - } - if (getDefaultDutyModeSubscriber == null) - { - return false; - } - try - { - getAllQuestSequenceStopConditionsSubscriber.InvokeFunc(); - } - catch - { - return false; - } - return true; - } - catch - { - return false; - } - } - - public void Dispose() - { - IsAvailable = false; - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/StepData.cs b/QuestionableCompanion/QuestionableCompanion.Services/StepData.cs deleted file mode 100644 index 69544c9..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/StepData.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Numerics; - -namespace QuestionableCompanion.Services; - -public class StepData -{ - public required string QuestId { get; init; } - - public required byte Sequence { get; init; } - - public required byte Step { get; init; } - - public required string InteractionType { get; init; } - - public Vector3? Position { get; init; } - - public ushort TerritoryId { get; init; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/StepsOfFaithHandler.cs b/QuestionableCompanion/QuestionableCompanion.Services/StepsOfFaithHandler.cs deleted file mode 100644 index 980b68d..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/StepsOfFaithHandler.cs +++ /dev/null @@ -1,161 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using Dalamud.Game.ClientState.Conditions; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Plugin.Services; - -namespace QuestionableCompanion.Services; - -public class StepsOfFaithHandler : IDisposable -{ - private readonly ICondition condition; - - private readonly IPluginLog log; - - private readonly IClientState clientState; - - private readonly ICommandManager commandManager; - - private readonly IFramework framework; - - private readonly Configuration config; - - private bool isActive; - - private readonly Dictionary characterHandledStatus = new Dictionary(); - - private const uint StepsOfFaithQuestId = 4591u; - - public bool IsActive => isActive; - - public bool IsStepsOfFaithQuest(uint questId) - { - return questId == 4591; - } - - public StepsOfFaithHandler(ICondition condition, IPluginLog log, IClientState clientState, ICommandManager commandManager, IFramework framework, Configuration config) - { - this.condition = condition; - this.log = log; - this.clientState = clientState; - this.commandManager = commandManager; - this.framework = framework; - this.config = config; - log.Information("[StepsOfFaith] Handler initialized"); - } - - public bool ShouldActivate(uint questId, bool isInSoloDuty) - { - if (isActive) - { - return false; - } - if (questId != 4591) - { - return false; - } - if (!isInSoloDuty) - { - return false; - } - string characterName = GetCurrentCharacterName(); - if (string.IsNullOrEmpty(characterName)) - { - return false; - } - if (characterHandledStatus.GetValueOrDefault(characterName, defaultValue: false)) - { - log.Debug("[StepsOfFaith] Character " + characterName + " already handled SoF - skipping"); - return false; - } - log.Information("[StepsOfFaith] Handler will activate for " + characterName); - return true; - } - - public void Execute(string characterName) - { - isActive = true; - if (!string.IsNullOrEmpty(characterName)) - { - characterHandledStatus[characterName] = true; - log.Information("[StepsOfFaith] Marked " + characterName + " as handled"); - } - log.Information("[StepsOfFaith] ========================================"); - log.Information("[StepsOfFaith] === STEPS OF FAITH HANDLER ACTIVATED ==="); - log.Information("[StepsOfFaith] ========================================"); - try - { - log.Information("[StepsOfFaith] Waiting for conditions to clear..."); - DateTime startTime = DateTime.Now; - TimeSpan maxWaitTime = TimeSpan.FromSeconds(6000L); - while (DateTime.Now - startTime < maxWaitTime) - { - bool hasCondition29 = condition[ConditionFlag.Occupied]; - bool hasCondition63 = condition[ConditionFlag.SufferingStatusAffliction63]; - if (!hasCondition29 && !hasCondition63) - { - log.Information("[StepsOfFaith] Conditions cleared!"); - break; - } - if ((DateTime.Now - startTime).TotalSeconds % 5.0 < 0.1) - { - log.Information($"[StepsOfFaith] Waiting... (29: {hasCondition29}, 63: {hasCondition63})"); - } - Thread.Sleep(200); - } - log.Information("[StepsOfFaith] Waiting 25s for stabilization..."); - Thread.Sleep(25000); - log.Information("[StepsOfFaith] Moving to target position..."); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/vnav moveto 2.8788917064667 0.0 293.36273193359"); - }); - log.Information("[StepsOfFaith] Enabling combat commands..."); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/rsr auto"); - Thread.Sleep(100); - commandManager.ProcessCommand("/vbmai on"); - Thread.Sleep(100); - commandManager.ProcessCommand("/bmrai on"); - }); - log.Information("[StepsOfFaith] === HANDLER COMPLETE ==="); - } - catch (Exception ex) - { - log.Error("[StepsOfFaith] Error: " + ex.Message); - } - finally - { - isActive = false; - } - } - - public void Reset() - { - isActive = false; - log.Information("[StepsOfFaith] Active state reset (character completion status preserved)"); - } - - private string GetCurrentCharacterName() - { - try - { - IPlayerCharacter player = clientState.LocalPlayer; - if (player != null) - { - return $"{player.Name}@{player.HomeWorld.Value.Name}"; - } - } - catch (Exception ex) - { - log.Error("[StepsOfFaith] Failed to get character name: " + ex.Message); - } - return string.Empty; - } - - public void Dispose() - { - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/StopConditionData.cs b/QuestionableCompanion/QuestionableCompanion.Services/StopConditionData.cs deleted file mode 100644 index 3c8fb66..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/StopConditionData.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace QuestionableCompanion.Services; - -public class StopConditionData -{ - public required bool Enabled { get; init; } - - public required int TargetValue { get; init; } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/SubmarineManager.cs b/QuestionableCompanion/QuestionableCompanion.Services/SubmarineManager.cs deleted file mode 100644 index 53dbed5..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/SubmarineManager.cs +++ /dev/null @@ -1,447 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Text.RegularExpressions; -using Dalamud.Plugin.Services; -using Newtonsoft.Json.Linq; - -namespace QuestionableCompanion.Services; - -public class SubmarineManager : IDisposable -{ - private readonly IPluginLog log; - - private readonly AutoRetainerIPC autoRetainerIPC; - - private readonly Configuration config; - - private readonly ICommandManager? commandManager; - - private readonly IFramework? framework; - - private DateTime lastSubmarineCheck = DateTime.MinValue; - - private DateTime submarineReloginCooldownEnd = DateTime.MinValue; - - private DateTime submarineNoAvailableWaitEnd = DateTime.MinValue; - - private bool submarinesPaused; - - private bool externalPause; - - private bool submarinesWaitingForSeq0; - - private bool submarineReloginInProgress; - - private bool submarineJustCompleted; - - private string? originalCharacterForSubmarines; - - public bool IsSubmarinePaused - { - get - { - if (!submarinesPaused) - { - return externalPause; - } - return true; - } - } - - public bool IsWaitingForSequence0 => submarinesWaitingForSeq0; - - public bool IsReloginInProgress => submarineReloginInProgress; - - public bool IsSubmarineJustCompleted => submarineJustCompleted; - - public void SetExternalPause(bool paused) - { - externalPause = paused; - log.Information($"[SubmarineManager] External pause set to: {paused}"); - } - - public SubmarineManager(IPluginLog log, AutoRetainerIPC autoRetainerIPC, Configuration config, ICommandManager? commandManager = null, IFramework? framework = null) - { - this.log = log; - this.autoRetainerIPC = autoRetainerIPC; - this.config = config; - this.commandManager = commandManager; - this.framework = framework; - log.Information("[SubmarineManager] Service initialized"); - } - - private string? GetConfigPath() - { - try - { - string userProfile = Environment.GetEnvironmentVariable("USERPROFILE"); - if (string.IsNullOrEmpty(userProfile)) - { - string username = Environment.GetEnvironmentVariable("USERNAME"); - if (string.IsNullOrEmpty(username)) - { - log.Warning("[SubmarineManager] Could not resolve USERPROFILE or USERNAME"); - return null; - } - userProfile = "C:\\Users\\" + username; - } - _003C_003Ey__InlineArray7 buffer = default(_003C_003Ey__InlineArray7); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 0) = userProfile; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 1) = "AppData"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 2) = "Roaming"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 3) = "XIVLauncher"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 4) = "pluginConfigs"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 5) = "AutoRetainer"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 6) = "DefaultConfig.json"; - return Path.Combine(global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan<_003C_003Ey__InlineArray7, string>(in buffer, 7)); - } - catch (Exception ex) - { - log.Error("[SubmarineManager] Error resolving config path: " + ex.Message); - return null; - } - } - - public bool CheckSubmarines() - { - if (!config.EnableSubmarineCheck || externalPause) - { - return false; - } - string configPath = GetConfigPath(); - if (string.IsNullOrEmpty(configPath)) - { - log.Warning("[SubmarineManager] Could not resolve config path"); - return false; - } - if (!File.Exists(configPath)) - { - log.Debug("[SubmarineManager] Config file not found: " + configPath); - return false; - } - try - { - string content = File.ReadAllText(configPath); - if (string.IsNullOrEmpty(content)) - { - log.Warning("[SubmarineManager] Config file is empty"); - return false; - } - List returnTimes = ParseReturnTimes(content); - if (returnTimes.Count == 0) - { - return false; - } - long now = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); - int available = 0; - long? minDelta = null; - foreach (long item in returnTimes) - { - long delta = item - now; - if (delta <= 0) - { - available++; - } - else if (!minDelta.HasValue || delta < minDelta.Value) - { - minDelta = delta; - } - } - if (available > 0) - { - string plural = ((available == 1) ? "Sub" : "Subs"); - log.Information($"[SubmarineManager] {available} {plural} available - pausing quest rotation!"); - return true; - } - if (minDelta.HasValue && minDelta.Value > 0) - { - int minutes = Math.Max(0, (int)Math.Ceiling((double)minDelta.Value / 60.0)); - string plural2 = ((minutes == 1) ? "minute" : "minutes"); - log.Debug($"[SubmarineManager] Next submarine in {minutes} {plural2}"); - } - return false; - } - catch (Exception ex) - { - log.Error("[SubmarineManager] Error checking submarines: " + ex.Message); - return false; - } - } - - public int CheckSubmarinesSoon() - { - if (!config.EnableSubmarineCheck || externalPause) - { - return 0; - } - string configPath = GetConfigPath(); - if (string.IsNullOrEmpty(configPath) || !File.Exists(configPath)) - { - return 0; - } - try - { - string content = File.ReadAllText(configPath); - if (string.IsNullOrEmpty(content)) - { - return 0; - } - List returnTimes = ParseReturnTimes(content); - if (returnTimes.Count == 0) - { - return 0; - } - long now = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); - long? minDelta = null; - int availableNow = 0; - foreach (long item in returnTimes) - { - long delta = item - now; - if (delta <= 0) - { - availableNow++; - } - else if (delta <= 120 && (!minDelta.HasValue || delta < minDelta.Value)) - { - minDelta = delta; - } - } - if (availableNow > 0) - { - log.Debug($"[SubmarineManager] {availableNow} submarines ready NOW - continue Multi-Mode"); - return 999; - } - if (minDelta.HasValue) - { - int minutes = (int)Math.Ceiling((double)minDelta.Value / 60.0); - log.Debug($"[SubmarineManager] Submarine will be ready in {minDelta.Value} seconds ({minutes} min) - waiting before character switch"); - return (int)minDelta.Value; - } - if (submarineNoAvailableWaitEnd == DateTime.MinValue) - { - submarineNoAvailableWaitEnd = DateTime.Now.AddSeconds(60.0); - log.Information("[SubmarineManager] No submarines available - waiting 60 seconds before relog"); - return 60; - } - if (DateTime.Now < submarineNoAvailableWaitEnd) - { - int remaining = (int)(submarineNoAvailableWaitEnd - DateTime.Now).TotalSeconds; - log.Debug($"[SubmarineManager] Waiting {remaining}s before relog..."); - return remaining; - } - submarineNoAvailableWaitEnd = DateTime.MinValue; - return 0; - } - catch (Exception ex) - { - log.Error("[SubmarineManager] Error checking submarines soon: " + ex.Message); - return 0; - } - } - - private List ParseReturnTimes(string jsonContent) - { - List returnTimes = new List(); - try - { - JObject json = JObject.Parse(jsonContent); - HashSet enabledSubs = new HashSet(StringComparer.OrdinalIgnoreCase); - IEnumerable enumerable = json.SelectTokens("$..EnabledSubs"); - int arrayCount = 0; - foreach (JToken item in enumerable) - { - if (!(item is JArray enabledSubsArray)) - { - continue; - } - arrayCount++; - foreach (JToken item2 in enabledSubsArray) - { - string subName = item2.Value(); - if (!string.IsNullOrEmpty(subName)) - { - enabledSubs.Add(subName); - } - } - } - if (arrayCount > 0) - { - if (enabledSubs.Count > 0) - { - log.Information($"[SubmarineManager] Found {enabledSubs.Count} unique submarine name(s) across {arrayCount} character(s): {string.Join(", ", enabledSubs)}"); - } - else - { - log.Information($"[SubmarineManager] Found {arrayCount} EnabledSubs array(s) but all empty - NO submarines will be checked"); - } - FindReturnTimes(json, returnTimes, enabledSubs); - if (returnTimes.Count > 0) - { - log.Information($"[SubmarineManager] Total submarines to monitor: {returnTimes.Count} (including same-named subs from different characters)"); - } - } - else - { - log.Information("[SubmarineManager] No EnabledSubs found in config - checking all submarines"); - FindReturnTimes(json, returnTimes); - } - } - catch - { - string pattern = "\"ReturnTime\"\\s*:\\s*(\\d+)"; - foreach (Match match in Regex.Matches(jsonContent, pattern)) - { - if (match.Groups.Count > 1 && long.TryParse(match.Groups[1].Value, out var timestamp)) - { - returnTimes.Add(timestamp); - } - } - } - return returnTimes; - } - - private void FindReturnTimes(JToken token, List returnTimes, HashSet? enabledSubs = null) - { - if (token is JObject obj) - { - if (obj.TryGetValue("Name", out JToken nameToken) && obj.TryGetValue("ReturnTime", out JToken returnTimeToken)) - { - string submarineName = nameToken.Value(); - if ((enabledSubs == null || (submarineName != null && enabledSubs.Contains(submarineName))) && returnTimeToken.Type == JTokenType.Integer) - { - long returnTime = returnTimeToken.Value(); - returnTimes.Add(returnTime); - } - } - { - foreach (JProperty property in obj.Properties()) - { - FindReturnTimes(property.Value, returnTimes, enabledSubs); - } - return; - } - } - if (!(token is JArray array)) - { - return; - } - foreach (JToken item in array) - { - FindReturnTimes(item, returnTimes, enabledSubs); - } - } - - public void StartSubmarineWait(string currentCharacter) - { - submarinesWaitingForSeq0 = true; - originalCharacterForSubmarines = currentCharacter; - log.Information("[SubmarineManager] Waiting for Sequence 0 completion before enabling Multi-Mode"); - } - - public void EnableMultiMode() - { - if (!autoRetainerIPC.IsAvailable) - { - log.Warning("[SubmarineManager] AutoRetainer not available - cannot enable Multi-Mode"); - return; - } - try - { - if (autoRetainerIPC.GetMultiModeEnabled()) - { - log.Information("[SubmarineManager] Multi-Mode is already enabled - skipping activation"); - submarinesPaused = true; - submarinesWaitingForSeq0 = false; - return; - } - if (commandManager != null && framework != null) - { - log.Information("[SubmarineManager] Sending /ays multi e command..."); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/ays multi e"); - }).Wait(); - log.Information("[SubmarineManager] ✓ /ays multi e command sent"); - } - autoRetainerIPC.SetMultiModeEnabled(enabled: true); - submarinesPaused = true; - submarinesWaitingForSeq0 = false; - log.Information("[SubmarineManager] Multi-Mode enabled - quest automation paused"); - } - catch (Exception ex) - { - log.Error("[SubmarineManager] Failed to enable Multi-Mode: " + ex.Message); - } - } - - public void DisableMultiModeAndReturn() - { - if (!autoRetainerIPC.IsAvailable) - { - log.Warning("[SubmarineManager] AutoRetainer not available"); - return; - } - try - { - if (commandManager != null && framework != null) - { - log.Information("[SubmarineManager] Sending /ays multi d command..."); - framework.RunOnFrameworkThread(delegate - { - commandManager.ProcessCommand("/ays multi d"); - }).Wait(); - log.Information("[SubmarineManager] ✓ /ays multi d command sent"); - } - autoRetainerIPC.SetMultiModeEnabled(enabled: false); - log.Information("[SubmarineManager] Multi-Mode disabled - starting return to original character"); - submarineNoAvailableWaitEnd = DateTime.MinValue; - if (!string.IsNullOrEmpty(originalCharacterForSubmarines)) - { - submarineReloginInProgress = true; - log.Information("[SubmarineManager] Returning to original character: " + originalCharacterForSubmarines); - } - } - catch (Exception ex) - { - log.Error("[SubmarineManager] Failed to disable Multi-Mode: " + ex.Message); - } - } - - public void CompleteSubmarineRelog() - { - submarineReloginInProgress = false; - submarinesPaused = false; - submarineJustCompleted = true; - submarineReloginCooldownEnd = DateTime.Now.AddSeconds(config.SubmarineReloginCooldown); - log.Information($"[SubmarineManager] Submarine rotation complete - cooldown active for {config.SubmarineReloginCooldown} seconds"); - } - - public bool IsSubmarineCooldownActive() - { - return DateTime.Now < submarineReloginCooldownEnd; - } - - public void ClearSubmarineJustCompleted() - { - submarineJustCompleted = false; - log.Information("[SubmarineManager] Cooldown expired - submarine checks re-enabled"); - } - - public void Reset() - { - submarinesPaused = false; - submarinesWaitingForSeq0 = false; - submarineReloginInProgress = false; - submarineJustCompleted = false; - originalCharacterForSubmarines = null; - submarineReloginCooldownEnd = DateTime.MinValue; - log.Information("[SubmarineManager] State reset"); - } - - public void Dispose() - { - Reset(); - log.Information("[SubmarineManager] Service disposed"); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Services/VNavmeshIPC.cs b/QuestionableCompanion/QuestionableCompanion.Services/VNavmeshIPC.cs deleted file mode 100644 index ce01469..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Services/VNavmeshIPC.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Plugin; -using Dalamud.Plugin.Ipc; - -namespace QuestionableCompanion.Services; - -public class VNavmeshIPC : IDisposable -{ - private readonly ICallGateSubscriber pointOnFloorSubscriber; - - private readonly ICallGateSubscriber nearestPointSubscriber; - - private readonly ICallGateSubscriber isReadySubscriber; - - public VNavmeshIPC(IDalamudPluginInterface pluginInterface) - { - pointOnFloorSubscriber = pluginInterface.GetIpcSubscriber("vnavmesh.Query.Mesh.PointOnFloor"); - nearestPointSubscriber = pluginInterface.GetIpcSubscriber("vnavmesh.Query.Mesh.NearestPoint"); - isReadySubscriber = pluginInterface.GetIpcSubscriber("vnavmesh.Nav.IsReady"); - } - - public bool IsReady() - { - try - { - return isReadySubscriber.InvokeFunc(); - } - catch - { - return false; - } - } - - public Vector3? FindPointOnFloor(Vector3 position, bool allowUnlandable = false, float searchRadius = 10f) - { - try - { - return pointOnFloorSubscriber.InvokeFunc(position, allowUnlandable, searchRadius); - } - catch (Exception) - { - return null; - } - } - - public Vector3? FindNearestPoint(Vector3 position, float horizontalRadius = 10f, float verticalRadius = 5f) - { - try - { - return nearestPointSubscriber.InvokeFunc(position, horizontalRadius, verticalRadius); - } - catch (Exception) - { - return null; - } - } - - public void Dispose() - { - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Windows/AlliedSocietyPriorityWindow.cs b/QuestionableCompanion/QuestionableCompanion.Windows/AlliedSocietyPriorityWindow.cs deleted file mode 100644 index 3e35ba6..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Windows/AlliedSocietyPriorityWindow.cs +++ /dev/null @@ -1,171 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Windowing; -using QuestionableCompanion.Helpers; -using QuestionableCompanion.Models; -using QuestionableCompanion.Services; - -namespace QuestionableCompanion.Windows; - -public class AlliedSocietyPriorityWindow : Window, IDisposable -{ - private readonly Configuration configuration; - - private readonly AlliedSocietyDatabase database; - - private List editingPriorities = new List(); - - private int? draggedIndex; - - private const string DragDropId = "ALLIED_SOCIETY_PRIORITY"; - - private readonly Dictionary societyNames = new Dictionary - { - { 1, "Amalj'aa" }, - { 2, "Sylphs" }, - { 3, "Kobolds" }, - { 4, "Sahagin" }, - { 5, "Ixal" }, - { 6, "Vanu Vanu" }, - { 7, "Vath" }, - { 8, "Moogles" }, - { 9, "Kojin" }, - { 10, "Ananta" }, - { 11, "Namazu" }, - { 12, "Pixies" }, - { 13, "Qitari" }, - { 14, "Dwarves" }, - { 15, "Arkasodara" }, - { 16, "Omicrons" }, - { 17, "Loporrits" }, - { 18, "Pelupelu" }, - { 19, "Mamool Ja" }, - { 20, "Yok Huy" } - }; - - public AlliedSocietyPriorityWindow(Configuration configuration, AlliedSocietyDatabase database) - : base("Allied Society Priority Configuration", ImGuiWindowFlags.NoCollapse) - { - this.configuration = configuration; - this.database = database; - base.Size = new Vector2(400f, 600f); - base.SizeCondition = ImGuiCond.FirstUseEver; - } - - public void Dispose() - { - } - - public override void OnOpen() - { - if (configuration.AlliedSociety.RotationConfig.Priorities.Count == 0) - { - configuration.AlliedSociety.RotationConfig.InitializeDefaults(); - database.SaveToConfig(); - } - editingPriorities = (from p in configuration.AlliedSociety.RotationConfig.Priorities - orderby p.Order - select new AlliedSocietyPriority - { - SocietyId = p.SocietyId, - Enabled = p.Enabled, - Order = p.Order - }).ToList(); - } - - public override void Draw() - { - ImGui.TextWrapped("Drag societies to reorder priorities. Uncheck to disable specific societies."); - ImGui.Separator(); - float availableHeight = ImGui.GetWindowSize().Y - 120f; - ImGui.BeginChild("PriorityList", new Vector2(0f, availableHeight), border: true); - for (int i = 0; i < editingPriorities.Count; i++) - { - AlliedSocietyPriority priority = editingPriorities[i]; - string name = (societyNames.ContainsKey(priority.SocietyId) ? societyNames[priority.SocietyId] : $"Unknown ({priority.SocietyId})"); - ImGui.PushID(i); - if (draggedIndex == i) - { - uint highlightColor = ImGui.ColorConvertFloat4ToU32(new Vector4(0f, 0.7f, 0f, 0.3f)); - Vector2 cursorPos = ImGui.GetCursorScreenPos(); - Vector2 itemSize = new Vector2(ImGui.GetContentRegionAvail().X, ImGui.GetFrameHeight()); - ImGui.GetWindowDrawList().AddRectFilled(cursorPos, cursorPos + itemSize, highlightColor); - } - ImGui.PushFont(UiBuilder.IconFont); - ImU8String label = new ImU8String(6, 1); - label.AppendFormatted(FontAwesomeIcon.ArrowsUpDownLeftRight.ToIconString()); - label.AppendLiteral("##drag"); - ImGui.Button(label); - ImGui.PopFont(); - if (ImGui.IsItemHovered()) - { - ImGui.SetMouseCursor(ImGuiMouseCursor.ResizeAll); - } - if (ImGui.BeginDragDropSource()) - { - draggedIndex = i; - ImGuiDragDrop.SetDragDropPayload("ALLIED_SOCIETY_PRIORITY", i); - ImGui.Text(name); - ImGui.EndDragDropSource(); - } - else if (draggedIndex == i && !ImGui.IsMouseDown(ImGuiMouseButton.Left)) - { - draggedIndex = null; - } - if (ImGui.BeginDragDropTarget()) - { - if (ImGuiDragDrop.AcceptDragDropPayload("ALLIED_SOCIETY_PRIORITY", out var sourceIndex) && sourceIndex != i) - { - AlliedSocietyPriority item = editingPriorities[sourceIndex]; - editingPriorities.RemoveAt(sourceIndex); - editingPriorities.Insert(i, item); - UpdateOrders(); - draggedIndex = i; - } - ImGui.EndDragDropTarget(); - } - ImGui.SameLine(); - bool enabled = priority.Enabled; - ImU8String label2 = new ImU8String(9, 0); - label2.AppendLiteral("##enabled"); - if (ImGui.Checkbox(label2, ref enabled)) - { - priority.Enabled = enabled; - } - ImGui.SameLine(); - ImGui.Text(name); - ImGui.PopID(); - } - ImGui.EndChild(); - ImGui.Separator(); - if (ImGui.Button("Save")) - { - Save(); - base.IsOpen = false; - } - ImGui.SameLine(); - if (ImGui.Button("Cancel")) - { - base.IsOpen = false; - } - } - - private void UpdateOrders() - { - for (int i = 0; i < editingPriorities.Count; i++) - { - editingPriorities[i].Order = i; - } - } - - private void Save() - { - UpdateOrders(); - configuration.AlliedSociety.RotationConfig.Priorities = editingPriorities; - database.SaveToConfig(); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Windows/ConfigWindow.cs b/QuestionableCompanion/QuestionableCompanion.Windows/ConfigWindow.cs deleted file mode 100644 index 7cb7e59..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Windows/ConfigWindow.cs +++ /dev/null @@ -1,564 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Windowing; -using QuestionableCompanion.Services; - -namespace QuestionableCompanion.Windows; - -public class ConfigWindow : Window, IDisposable -{ - private readonly Configuration configuration; - - private readonly Plugin plugin; - - public ConfigWindow(Plugin plugin) - : base("Questionable Companion Settings###QCSettings") - { - base.Size = new Vector2(600f, 400f); - base.SizeCondition = ImGuiCond.FirstUseEver; - this.plugin = plugin; - configuration = plugin.Configuration; - } - - public void Dispose() - { - } - - public override void PreDraw() - { - if (configuration.IsConfigWindowMovable) - { - base.Flags &= ~ImGuiWindowFlags.NoMove; - } - else - { - base.Flags |= ImGuiWindowFlags.NoMove; - } - } - - public override void Draw() - { - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(1f, 0.8f, 0.2f, 1f)); - ImGui.TextWrapped("Configuration Moved!"); - ImGui.PopStyleColor(); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - ImGui.TextWrapped("The configuration interface has been moved to the new Main Window for a better user experience."); - ImGui.Spacing(); - ImGui.TextWrapped("All settings are now available in the Main Window with improved organization and features:"); - ImGui.Spacing(); - ImGui.BulletText("Quest Rotation Management"); - ImGui.BulletText("Event Quest Automation"); - ImGui.BulletText("MSQ Progress Tracking"); - ImGui.BulletText("DC Travel Configuration"); - ImGui.BulletText("Advanced Settings"); - ImGui.BulletText("And much more!"); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - if (ImGui.Button(size: new Vector2(ImGui.GetContentRegionAvail().X, 50f), label: "Open Main Window (Settings Tab)")) - { - plugin.ToggleMainUi(); - base.IsOpen = false; - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0.7f, 0.7f, 0.7f, 1f)); - ImGui.TextWrapped("This legacy configuration window will be removed in a future update."); - ImGui.TextWrapped("Please use the Main Window for all configuration needs."); - ImGui.PopStyleColor(); - } - - private void DrawGeneralTab() - { - ImGui.Text("General Settings"); - ImGui.Separator(); - ImGui.Spacing(); - bool autoStart = configuration.AutoStartOnLogin; - if (ImGui.Checkbox("Auto-start on login", ref autoStart)) - { - configuration.AutoStartOnLogin = autoStart; - configuration.Save(); - } - bool dryRun = configuration.EnableDryRun; - if (ImGui.Checkbox("Enable Dry Run Mode (simulate without executing)", ref dryRun)) - { - configuration.EnableDryRun = dryRun; - configuration.Save(); - } - bool restoreState = configuration.RestoreStateOnLoad; - if (ImGui.Checkbox("Restore state on plugin load", ref restoreState)) - { - configuration.RestoreStateOnLoad = restoreState; - configuration.Save(); - } - ImGui.Spacing(); - ImGui.Text("Execution Settings"); - ImGui.Separator(); - ImGui.Spacing(); - int maxRetries = configuration.MaxRetryAttempts; - if (ImGui.SliderInt("Max retry attempts", ref maxRetries, 1, 10)) - { - configuration.MaxRetryAttempts = maxRetries; - configuration.Save(); - } - int switchDelay = configuration.CharacterSwitchDelay; - if (ImGui.SliderInt("Character switch delay (seconds)", ref switchDelay, 3, 15)) - { - configuration.CharacterSwitchDelay = switchDelay; - configuration.Save(); - } - ImGui.Spacing(); - ImGui.Text("Logging Settings"); - ImGui.Separator(); - ImGui.Spacing(); - int maxLogs = configuration.MaxLogEntries; - if (ImGui.SliderInt("Max log entries", ref maxLogs, 50, 500)) - { - configuration.MaxLogEntries = maxLogs; - configuration.Save(); - } - bool showDebug = configuration.ShowDebugLogs; - if (ImGui.Checkbox("Show debug logs", ref showDebug)) - { - configuration.ShowDebugLogs = showDebug; - configuration.Save(); - } - bool logToFile = configuration.LogToFile; - if (ImGui.Checkbox("Log to file", ref logToFile)) - { - configuration.LogToFile = logToFile; - configuration.Save(); - } - ImGui.Spacing(); - ImGui.Text("UI Settings"); - ImGui.Separator(); - ImGui.Spacing(); - bool movable = configuration.IsConfigWindowMovable; - if (ImGui.Checkbox("Movable config window", ref movable)) - { - configuration.IsConfigWindowMovable = movable; - configuration.Save(); - } - } - - private void DrawAdvancedFeaturesTab() - { - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Submarine Management"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableSubmarineCheck = configuration.EnableSubmarineCheck; - if (ImGui.Checkbox("Enable Submarine Monitoring", ref enableSubmarineCheck)) - { - configuration.EnableSubmarineCheck = enableSubmarineCheck; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Automatically monitor submarines and pause quest rotation when submarines are ready"); - } - if (configuration.EnableSubmarineCheck) - { - ImGui.Indent(); - int submarineCheckInterval = configuration.SubmarineCheckInterval; - if (ImGui.SliderInt("Check Interval (seconds)", ref submarineCheckInterval, 30, 300)) - { - configuration.SubmarineCheckInterval = submarineCheckInterval; - configuration.Save(); - } - int submarineReloginCooldown = configuration.SubmarineReloginCooldown; - if (ImGui.SliderInt("Cooldown after Relog (seconds)", ref submarineReloginCooldown, 60, 300)) - { - configuration.SubmarineReloginCooldown = submarineReloginCooldown; - configuration.Save(); - } - int submarineWaitTime = configuration.SubmarineWaitTime; - if (ImGui.SliderInt("Wait time before submarine (seconds)", ref submarineWaitTime, 10, 120)) - { - configuration.SubmarineWaitTime = submarineWaitTime; - configuration.Save(); - } - ImGui.Unindent(); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Movement Monitor"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableMovementMonitor = configuration.EnableMovementMonitor; - if (ImGui.Checkbox("Enable Movement Monitor", ref enableMovementMonitor)) - { - configuration.EnableMovementMonitor = enableMovementMonitor; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Automatically detect if player is stuck and send /qst reload"); - } - if (configuration.EnableMovementMonitor) - { - ImGui.Indent(); - int movementCheckInterval = configuration.MovementCheckInterval; - if (ImGui.SliderInt("Check Interval (seconds)##movement", ref movementCheckInterval, 3, 30)) - { - configuration.MovementCheckInterval = movementCheckInterval; - configuration.Save(); - } - int movementStuckThreshold = configuration.MovementStuckThreshold; - if (ImGui.SliderInt("Stuck Threshold (seconds)", ref movementStuckThreshold, 15, 120)) - { - configuration.MovementStuckThreshold = movementStuckThreshold; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Time without movement before sending /qst reload"); - } - ImGui.Unindent(); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(1f, 0.5f, 0.3f, 1f), "Combat Handling"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableCombatHandling = configuration.EnableCombatHandling; - if (ImGui.Checkbox("Enable Combat Handling", ref enableCombatHandling)) - { - configuration.EnableCombatHandling = enableCombatHandling; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Automatically enable RSR/VBMAI/BMRAI when HP drops below threshold during combat"); - } - if (configuration.EnableCombatHandling) - { - ImGui.Indent(); - int combatHPThreshold = configuration.CombatHPThreshold; - if (ImGui.SliderInt("HP Threshold (%)", ref combatHPThreshold, 1, 99)) - { - configuration.CombatHPThreshold = combatHPThreshold; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Enable combat automation when HP drops below this percentage\nCommands: /rsr manual, /vbmai on, /bmrai on"); - } - ImGui.TextWrapped("When HP drops below threshold:"); - ImGui.BulletText("/rsr manual"); - ImGui.BulletText("/vbmai on"); - ImGui.BulletText("/bmrai on"); - ImGui.Spacing(); - ImGui.TextWrapped("When combat ends:"); - ImGui.BulletText("/rsr off"); - ImGui.BulletText("/vbmai off"); - ImGui.BulletText("/bmrai off"); - ImGui.Unindent(); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(1f, 0.3f, 0.3f, 1f), "Death Handling"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableDeathHandling = configuration.EnableDeathHandling; - if (ImGui.Checkbox("Enable Death Handling", ref enableDeathHandling)) - { - configuration.EnableDeathHandling = enableDeathHandling; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Automatically respawn when player dies"); - } - if (configuration.EnableDeathHandling) - { - ImGui.Indent(); - int deathRespawnDelay = configuration.DeathRespawnDelay; - if (ImGui.SliderInt("Teleport Delay (seconds)", ref deathRespawnDelay, 1, 30)) - { - configuration.DeathRespawnDelay = deathRespawnDelay; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Time to wait after respawn before teleporting back to death location"); - } - ImGui.Spacing(); - ImGui.TextWrapped("On Death:"); - ImGui.BulletText("Detect 0% HP"); - ImGui.BulletText("Save position & territory"); - ImGui.BulletText("Auto-click SelectYesNo (respawn)"); - ImU8String text = new ImU8String(13, 1); - text.AppendLiteral("Wait "); - text.AppendFormatted(configuration.DeathRespawnDelay); - text.AppendLiteral(" seconds"); - ImGui.BulletText(text); - ImGui.BulletText("Teleport back to death location"); - ImGui.Unindent(); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Logging Settings"); - ImGui.Separator(); - ImGui.Spacing(); - bool logToDalamud = configuration.LogToDalamud; - if (ImGui.Checkbox("Log to Dalamud Log", ref logToDalamud)) - { - configuration.LogToDalamud = logToDalamud; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Enable to also log to Dalamud log (can cause spam)"); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Dungeon Automation"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableAutoDutyUnsynced = configuration.EnableAutoDutyUnsynced; - if (ImGui.Checkbox("Enable AutoDuty Unsynced", ref enableAutoDutyUnsynced)) - { - configuration.EnableAutoDutyUnsynced = enableAutoDutyUnsynced; - configuration.Save(); - plugin.GetDungeonAutomation()?.SetDutyModeBasedOnConfig(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Run dungeons unsynced for faster completion"); - } - if (configuration.EnableAutoDutyUnsynced) - { - ImGui.Indent(); - int autoDutyPartySize = configuration.AutoDutyPartySize; - if (ImGui.SliderInt("Party Size Check (members)", ref autoDutyPartySize, 1, 8)) - { - configuration.AutoDutyPartySize = autoDutyPartySize; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Minimum party size required before starting dungeon"); - } - int autoDutyMaxWaitForParty = configuration.AutoDutyMaxWaitForParty; - if (ImGui.SliderInt("Max Wait for Party (seconds)", ref autoDutyMaxWaitForParty, 10, 120)) - { - configuration.AutoDutyMaxWaitForParty = autoDutyMaxWaitForParty; - configuration.Save(); - } - int autoDutyReInviteInterval = configuration.AutoDutyReInviteInterval; - if (ImGui.SliderInt("Re-invite Interval (seconds)", ref autoDutyReInviteInterval, 5, 60)) - { - configuration.AutoDutyReInviteInterval = autoDutyReInviteInterval; - configuration.Save(); - } - ImGui.Unindent(); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Quest Automation"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableQSTReloadTracking = configuration.EnableQSTReloadTracking; - if (ImGui.Checkbox("Enable QST Reload Tracking", ref enableQSTReloadTracking)) - { - configuration.EnableQSTReloadTracking = enableQSTReloadTracking; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Track Questionable reloads and switch character if too many reloads occur"); - } - if (configuration.EnableQSTReloadTracking) - { - ImGui.Indent(); - int maxQSTReloadsBeforeSwitch = configuration.MaxQSTReloadsBeforeSwitch; - if (ImGui.SliderInt("Max Reloads before switch", ref maxQSTReloadsBeforeSwitch, 1, 20)) - { - configuration.MaxQSTReloadsBeforeSwitch = maxQSTReloadsBeforeSwitch; - configuration.Save(); - } - ImGui.Unindent(); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Character Management"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableMultiModeAfterRotation = configuration.EnableMultiModeAfterRotation; - if (ImGui.Checkbox("Enable Multi-Mode after Rotation", ref enableMultiModeAfterRotation)) - { - configuration.EnableMultiModeAfterRotation = enableMultiModeAfterRotation; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Enable AutoRetainer Multi-Mode after completing character rotation"); - } - bool returnToHomeworldOnStopQuest = configuration.ReturnToHomeworldOnStopQuest; - if (ImGui.Checkbox("Return to Homeworld on Stop Quest", ref returnToHomeworldOnStopQuest)) - { - configuration.ReturnToHomeworldOnStopQuest = returnToHomeworldOnStopQuest; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Automatically return to homeworld when stop quest is completed"); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Safe Wait Settings"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableSafeWaitBefore = configuration.EnableSafeWaitBeforeCharacterSwitch; - if (ImGui.Checkbox("Enable Safe Wait Before Character Switch", ref enableSafeWaitBefore)) - { - configuration.EnableSafeWaitBeforeCharacterSwitch = enableSafeWaitBefore; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Wait for character to stabilize (movement, actions) before switching"); - } - bool enableSafeWaitAfter = configuration.EnableSafeWaitAfterCharacterSwitch; - if (ImGui.Checkbox("Enable Safe Wait After Character Switch", ref enableSafeWaitAfter)) - { - configuration.EnableSafeWaitAfterCharacterSwitch = enableSafeWaitAfter; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Wait for character to fully load after switching"); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "Quest Pre-Check"); - ImGui.Separator(); - ImGui.Spacing(); - bool enableQuestPreCheck = configuration.EnableQuestPreCheck; - if (ImGui.Checkbox("Enable Quest Pre-Check", ref enableQuestPreCheck)) - { - configuration.EnableQuestPreCheck = enableQuestPreCheck; - configuration.Save(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Check quest completion status before starting rotation to skip completed characters"); - } - ImGui.TextWrapped("Quest Pre-Check scans all characters for completed quests before rotation starts, preventing unnecessary character switches."); - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(0.3f, 0.8f, 1f, 1f), "DC Travel World Selector"); - ImGui.Separator(); - ImGui.Spacing(); - ImGui.TextWrapped("Configure world travel for Data Center travel quests. Requires Lifestream plugin."); - ImGui.Spacing(); - string[] datacenters = configuration.WorldsByDatacenter.Keys.ToArray(); - int currentDCIndex = Array.IndexOf(datacenters, configuration.SelectedDatacenter); - if (currentDCIndex < 0) - { - currentDCIndex = 0; - } - ImGui.Text("Select Datacenter:"); - if (ImGui.Combo((ImU8String)"##DCSelector", ref currentDCIndex, (ReadOnlySpan)datacenters, datacenters.Length)) - { - configuration.SelectedDatacenter = datacenters[currentDCIndex]; - if (configuration.WorldsByDatacenter.TryGetValue(configuration.SelectedDatacenter, out List newWorlds) && newWorlds.Count > 0) - { - configuration.DCTravelWorld = newWorlds[0]; - } - configuration.Save(); - } - ImGui.Spacing(); - if (configuration.WorldsByDatacenter.TryGetValue(configuration.SelectedDatacenter, out List worlds)) - { - string[] worldArray = worlds.ToArray(); - int currentWorldIndex = Array.IndexOf(worldArray, configuration.DCTravelWorld); - if (currentWorldIndex < 0) - { - currentWorldIndex = 0; - } - ImGui.Text("Select Target World:"); - if (ImGui.Combo((ImU8String)"##WorldSelector", ref currentWorldIndex, (ReadOnlySpan)worldArray, worldArray.Length)) - { - configuration.DCTravelWorld = worldArray[currentWorldIndex]; - configuration.EnableDCTravel = !string.IsNullOrEmpty(configuration.DCTravelWorld); - configuration.Save(); - } - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.Spacing(); - LifestreamIPC lifestreamIPC = Plugin.Instance?.LifestreamIPC; - if (lifestreamIPC != null && !lifestreamIPC.IsAvailable) - { - lifestreamIPC.ForceCheckAvailability(); - } - bool lifestreamAvailable = lifestreamIPC?.IsAvailable ?? false; - if (!lifestreamAvailable) - { - ImGui.BeginDisabled(); - } - bool enableDCTravel = configuration.EnableDCTravel; - if (ImGui.Checkbox("Enable DC Travel", ref enableDCTravel)) - { - configuration.EnableDCTravel = enableDCTravel; - configuration.Save(); - } - if (!lifestreamAvailable) - { - ImGui.EndDisabled(); - } - if (ImGui.IsItemHovered()) - { - if (!lifestreamAvailable) - { - ImGui.SetTooltip("Lifestream plugin is required for DC Travel!\nPlease install and enable Lifestream to use this feature."); - } - else - { - ImGui.SetTooltip("Enable automatic DC travel when DC travel quests are detected"); - } - } - if (!lifestreamAvailable) - { - ImGui.Spacing(); - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "⚠\ufe0f Lifestream plugin not available!"); - ImGui.TextWrapped("DC Travel requires Lifestream to be installed and enabled."); - } - ImGui.Spacing(); - if (configuration.EnableDCTravel && !string.IsNullOrEmpty(configuration.DCTravelWorld)) - { - Vector4 col = new Vector4(0.2f, 1f, 0.2f, 1f); - ImU8String text2 = new ImU8String(21, 1); - text2.AppendLiteral("✓ DC Travel ACTIVE → "); - text2.AppendFormatted(configuration.DCTravelWorld); - ImGui.TextColored(in col, text2); - ImU8String text3 = new ImU8String(100, 1); - text3.AppendLiteral("Character will travel to "); - text3.AppendFormatted(configuration.DCTravelWorld); - text3.AppendLiteral(" immediately after login, then return to homeworld before character switch."); - ImGui.TextWrapped(text3); - } - else if (!configuration.EnableDCTravel) - { - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.7f, 1f), "○ DC Travel disabled"); - } - else - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "⚠ DC Travel enabled but no world selected!"); - } - } - else - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "No worlds available for selected datacenter"); - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Windows/DebugWindow.cs b/QuestionableCompanion/QuestionableCompanion.Windows/DebugWindow.cs deleted file mode 100644 index 2fd48be..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Windows/DebugWindow.cs +++ /dev/null @@ -1,161 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface.Windowing; -using QuestionableCompanion.Services; - -namespace QuestionableCompanion.Windows; - -public class DebugWindow : Window, IDisposable -{ - private readonly Plugin plugin; - - private readonly CombatDutyDetectionService? combatDutyDetection; - - private readonly DeathHandlerService? deathHandler; - - private readonly DungeonAutomationService? dungeonAutomation; - - public DebugWindow(Plugin plugin, CombatDutyDetectionService? combatDutyDetection, DeathHandlerService? deathHandler, DungeonAutomationService? dungeonAutomation) - : base("QST Companion Debug###QSTDebug", ImGuiWindowFlags.NoCollapse) - { - this.plugin = plugin; - this.combatDutyDetection = combatDutyDetection; - this.deathHandler = deathHandler; - this.dungeonAutomation = dungeonAutomation; - base.Size = new Vector2(500f, 400f); - base.SizeCondition = ImGuiCond.FirstUseEver; - } - - public void Dispose() - { - } - - public override void Draw() - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), " DEBUG MENU - FOR TESTING ONLY "); - ImGui.Separator(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(1f, 0.3f, 0.3f, 1f), "Combat Handling"); - ImGui.Separator(); - if (combatDutyDetection != null) - { - ImU8String text = new ImU8String(11, 1); - text.AppendLiteral("In Combat: "); - text.AppendFormatted(combatDutyDetection.IsInCombat); - ImGui.Text(text); - ImU8String text2 = new ImU8String(9, 1); - text2.AppendLiteral("In Duty: "); - text2.AppendFormatted(combatDutyDetection.IsInDuty); - ImGui.Text(text2); - ImU8String text3 = new ImU8String(15, 1); - text3.AppendLiteral("In Duty Queue: "); - text3.AppendFormatted(combatDutyDetection.IsInDutyQueue); - ImGui.Text(text3); - ImU8String text4 = new ImU8String(14, 1); - text4.AppendLiteral("Should Pause: "); - text4.AppendFormatted(combatDutyDetection.ShouldPauseAutomation); - ImGui.Text(text4); - ImGui.Spacing(); - if (ImGui.Button("Test Combat Detection")) - { - combatDutyDetection.Update(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Manually trigger combat detection update"); - } - ImGui.SameLine(); - if (ImGui.Button("Reset Combat State")) - { - combatDutyDetection.Reset(); - } - } - else - { - ImGui.TextColored(new Vector4(1f, 0f, 0f, 1f), "Combat Detection Service not available"); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(1f, 0.3f, 0.3f, 1f), "Death Handling"); - ImGui.Separator(); - if (deathHandler != null) - { - ImU8String text5 = new ImU8String(9, 1); - text5.AppendLiteral("Is Dead: "); - text5.AppendFormatted(deathHandler.IsDead); - ImGui.Text(text5); - ImU8String text6 = new ImU8String(19, 1); - text6.AppendLiteral("Time Since Death: "); - text6.AppendFormatted(deathHandler.TimeSinceDeath.TotalSeconds, "F1"); - text6.AppendLiteral("s"); - ImGui.Text(text6); - ImGui.Spacing(); - if (ImGui.Button("Test Death Detection")) - { - deathHandler.Update(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Manually trigger death detection update"); - } - ImGui.SameLine(); - if (ImGui.Button("Reset Death State")) - { - deathHandler.Reset(); - } - } - else - { - ImGui.TextColored(new Vector4(1f, 0f, 0f, 1f), "Death Handler Service not available"); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.TextColored(new Vector4(1f, 0.3f, 0.3f, 1f), "Dungeon Automation"); - ImGui.Separator(); - if (dungeonAutomation != null) - { - ImU8String text7 = new ImU8String(19, 1); - text7.AppendLiteral("Waiting for Party: "); - text7.AppendFormatted(dungeonAutomation.IsWaitingForParty); - ImGui.Text(text7); - ImU8String text8 = new ImU8String(20, 1); - text8.AppendLiteral("Current Party Size: "); - text8.AppendFormatted(dungeonAutomation.CurrentPartySize); - ImGui.Text(text8); - ImGui.Spacing(); - if (ImGui.Button("Test Party Invite")) - { - dungeonAutomation.StartDungeonAutomation(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Test BTB enable + invite + party wait"); - } - ImGui.SameLine(); - if (ImGui.Button("Test Party Disband")) - { - dungeonAutomation.DisbandParty(); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Test party disband with /pcmd breakup"); - } - ImGui.SameLine(); - if (ImGui.Button("Reset Dungeon State")) - { - dungeonAutomation.Reset(); - } - } - else - { - ImGui.TextColored(new Vector4(1f, 0f, 0f, 1f), "Dungeon Automation Service not available"); - } - ImGui.Spacing(); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.TextColored(new Vector4(0.5f, 0.8f, 1f, 1f), "Info"); - ImGui.Text("This debug menu allows testing of individual features."); - ImGui.Text("Use /qstcomp dbg to toggle this window."); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs b/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs deleted file mode 100644 index 4572c83..0000000 --- a/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs +++ /dev/null @@ -1,3673 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using System.Threading.Tasks; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Utility; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; -using Dalamud.Plugin.Services; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using QuestionableCompanion.Data; -using QuestionableCompanion.Models; -using QuestionableCompanion.Services; - -namespace QuestionableCompanion.Windows; - -public class NewMainWindow : Window, IDisposable -{ - private class Particle - { - public Vector2 Position; - - public Vector2 Velocity; - - public float Size; - - public float Alpha; - - public Vector4 Color; - } - - private readonly Plugin plugin; - - private readonly AutoRetainerIPC autoRetainerIpc; - - private readonly QuestTrackingService questTrackingService; - - private readonly QuestRotationExecutionService questRotationService; - - private readonly EventQuestExecutionService eventQuestService; - - private readonly AlliedSocietyRotationService alliedSocietyRotationService; - - private readonly AlliedSocietyPriorityWindow alliedSocietyPriorityWindow; - - private readonly DataCenterService dataCenterService; - - private readonly MSQProgressionService msqProgressionService; - - private readonly Configuration configuration; - - private readonly IPluginLog log; - - private readonly IUiBuilder uiBuilder; - - private readonly IDataManager dataManager; - - private readonly Vector4 colorPrimary = new Vector4(0.478f, 0.686f, 0.878f, 1f); - - private readonly Vector4 colorSecondary = new Vector4(0.949f, 0.769f, 0.388f, 1f); - - private readonly Vector4 colorAccent = new Vector4(0.729f, 0.294f, 0.184f, 1f); - - private readonly Vector4 colorDarkBg = new Vector4(0.12f, 0.12f, 0.12f, 1f); - - private readonly Vector4 colorSidebarBg = new Vector4(0.08f, 0.08f, 0.08f, 1f); - - private readonly Vector4 colorHover = new Vector4(0.2f, 0.2f, 0.2f, 1f); - - private float animTime; - - private float glowPulse; - - private float particleTime; - - private List particles = new List(); - - private int selectedTab; - - private int selectedDCFilter; - - private bool charactersExpanded = true; - - private bool menuExpanded = true; - - private bool isMinimized; - - private List registeredCharacters = new List(); - - private Dictionary characterSelection = new Dictionary(); - - private Dictionary characterProgressCache = new Dictionary(); - - private DateTime lastCharacterRefresh = DateTime.MinValue; - - private bool initialCharacterLoadComplete; - - private DateTime initialLoadStartTime = DateTime.MinValue; - - private int characterLoadAttempts; - - private const int MaxCharacterLoadAttempts = 5; - - private readonly int[] retryDelaysSeconds = new int[5] { 1, 2, 4, 8, 15 }; - - private bool warningMenuRetryCycleComplete; - - private DateTime warningMenuRetryStartTime = DateTime.MinValue; - - private int warningMenuRetryAttempts; - - private const int MaxWarningMenuRetryAttempts = 4; - - private readonly int[] warningMenuRetryDelaysSeconds = new int[4] { 1, 2, 4, 8 }; - - private Dictionary> charactersByDataCenter = new Dictionary>(); - - private List availableDataCenters = new List { "All", "EU", "NA", "JP", "OCE" }; - - private bool showSelectWorldDialog; - - private bool showDeselectWorldDialog; - - private string selectedWorldForBulkAction = ""; - - private List availableWorlds = new List(); - - private string selectedWorldFilter = "All"; - - private string selectedEventQuestId = ""; - - private List<(string QuestId, string QuestName)> availableEventQuests = new List<(string, string)>(); - - private List resolvedPrerequisites = new List(); - - private int eventQuestViewMode; - - private DateTime lastEventQuestRefresh = DateTime.MinValue; - - private string? newLANHelperIP; - - private readonly Dictionary> dataCenterWorlds = new Dictionary> - { - { - "Aether", - new List { "Adamantoise", "Cactuar", "Faerie", "Gilgamesh", "Jenova", "Midgardsormr", "Sargatanas", "Siren" } - }, - { - "Primal", - new List { "Behemoth", "Excalibur", "Exodus", "Hyperion", "Lamia", "Leviathan", "Ultros" } - }, - { - "Crystal", - new List { "Balmung", "Brynhildr", "Coeurl", "Diabolos", "Goblin", "Malboro", "Mateus", "Zalera" } - }, - { - "Dynamis", - new List { "Halicarnassus", "Maduin", "Marilith", "Seraph" } - }, - { - "Chaos", - new List { "Cerberus", "Louisoix", "Moogle", "Omega", "Phantom", "Ragnarok", "Sagittarius", "Spriggan" } - }, - { - "Light", - new List { "Alpha", "Lich", "Odin", "Phoenix", "Raiden", "Shiva", "Twintania", "Zodiark" } - }, - { - "Materia", - new List { "Bismarck", "Ravana", "Sephirot", "Sophia", "Zurvan" } - }, - { - "Elemental", - new List { "Aegis", "Atomos", "Carbuncle", "Garuda", "Gungnir", "Kujata", "Tonberry", "Typhon" } - }, - { - "Gaia", - new List { "Alexander", "Bahamut", "Durandal", "Fenrir", "Ifrit", "Ridill", "Tiamat", "Ultima" } - }, - { - "Mana", - new List { "Anima", "Asura", "Chocobo", "Hades", "Ixion", "Masamune", "Pandaemonium", "Titan" } - }, - { - "Meteor", - new List { "Belias", "Mandragora", "Ramuh", "Shinryu", "Unicorn", "Valefor", "Yojimbo", "Zeromus" } - } - }; - - private string selectedDataCenter = ""; - - private string selectedWorld = ""; - - private void DrawAlliedSocietyTab() - { - ImGui.TextColored(in colorSecondary, "Allied Society Rotation"); - ImGui.Separator(); - if (ImGui.Button("Configure Priorities")) - { - alliedSocietyPriorityWindow.IsOpen = true; - } - ImGui.SameLine(); - ImGui.TextDisabled("(Use Up/Down buttons to reorder)"); - ImGui.Spacing(); - ImGui.Separator(); - ImGui.TextColored(in colorSecondary, "Quest Selection Mode"); - AlliedSocietyConfiguration config = plugin.Configuration.AlliedSociety.RotationConfig; - bool modeChanged = false; - if (ImGui.RadioButton("Only 3 Quests per Society", config.QuestMode == AlliedSocietyQuestMode.OnlyThreePerSociety)) - { - config.QuestMode = AlliedSocietyQuestMode.OnlyThreePerSociety; - modeChanged = true; - } - if (ImGui.RadioButton("All Available Quests (until 0 allowances)", config.QuestMode == AlliedSocietyQuestMode.AllAvailableQuests)) - { - config.QuestMode = AlliedSocietyQuestMode.AllAvailableQuests; - modeChanged = true; - } - if (modeChanged) - { - plugin.Configuration.Save(); - } - ImGui.Spacing(); - ImGui.Separator(); - List selectedCharacters = (from kvp in characterSelection - where kvp.Value - select kvp.Key).ToList(); - ImGui.TextColored(in colorSecondary, "Rotation Control"); - if (alliedSocietyRotationService.IsRotationActive) - { - if (ImGui.Button("Stop Rotation", new Vector2(150f, 30f))) - { - alliedSocietyRotationService.StopRotation(); - } - ImGui.SameLine(); - Vector4 col = ImGuiColors.DalamudYellow; - ImU8String text = new ImU8String(18, 1); - text.AppendLiteral("Running... Phase: "); - text.AppendFormatted(alliedSocietyRotationService.CurrentPhase); - ImGui.TextColored(in col, text); - ImU8String text2 = new ImU8String(19, 1); - text2.AppendLiteral("Current Character: "); - text2.AppendFormatted(alliedSocietyRotationService.CurrentCharacterId); - ImGui.Text(text2); - } - else - { - if (ImGui.Button("Start Rotation", new Vector2(150f, 30f))) - { - if (selectedCharacters.Count == 0) - { - ImGui.OpenPopup("NoCharactersSelected"); - } - else - { - alliedSocietyRotationService.StartRotation(selectedCharacters); - } - } - if (ImGui.BeginPopup("NoCharactersSelected")) - { - ImGui.Text("Please select at least one character from the Characters tab."); - if (ImGui.Button("OK", new Vector2(120f, 0f))) - { - ImGui.CloseCurrentPopup(); - } - ImGui.EndPopup(); - } - } - ImGui.Spacing(); - ImGui.Separator(); - ref readonly Vector4 col2 = ref colorSecondary; - ImU8String text3 = new ImU8String(28, 1); - text3.AppendLiteral("Character Status ("); - text3.AppendFormatted(selectedCharacters.Count); - text3.AppendLiteral(" selected)"); - ImGui.TextColored(in col2, text3); - if (selectedCharacters.Count > 0 && ImGui.BeginTable("AlliedSocietyStatusTable", 3, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg)) - { - ImGui.TableSetupColumn("Character", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Status", ImGuiTableColumnFlags.WidthFixed, 150f); - ImGui.TableSetupColumn("Allowances", ImGuiTableColumnFlags.WidthFixed, 100f); - ImGui.TableHeadersRow(); - foreach (string character in selectedCharacters) - { - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - if (character == alliedSocietyRotationService.CurrentCharacterId) - { - ImGui.TextColored(ImGuiColors.DalamudYellow, character); - } - else - { - ImGui.Text(character); - } - ImGui.TableNextColumn(); - AlliedSocietyCharacterStatus status = (plugin.Configuration.AlliedSociety.CharacterStatuses.ContainsKey(character) ? plugin.Configuration.AlliedSociety.CharacterStatuses[character] : new AlliedSocietyCharacterStatus - { - CharacterId = character - }); - ImGui.TextColored((status.Status == AlliedSocietyRotationStatus.Complete) ? ImGuiColors.HealerGreen : ImGuiColors.DalamudWhite, status.Status.ToString()); - ImGui.TableNextColumn(); - ImGui.Text("-"); - } - ImGui.EndTable(); - } - else if (selectedCharacters.Count == 0) - { - ImGui.TextColored(ImGuiColors.DalamudGrey, "No characters selected. Please select characters in the Characters tab."); - } - } - - public NewMainWindow(Plugin plugin, AutoRetainerIPC autoRetainerIpc, QuestTrackingService questTrackingService, QuestRotationExecutionService questRotationService, EventQuestExecutionService eventQuestService, AlliedSocietyRotationService alliedSocietyRotationService, AlliedSocietyPriorityWindow alliedSocietyPriorityWindow, DataCenterService dataCenterService, MSQProgressionService msqProgressionService, Configuration configuration, IPluginLog log, IUiBuilder uiBuilder, IDataManager dataManager) - : base("Questionable Companion##NewMainWindow", ImGuiWindowFlags.NoTitleBar | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoBackground) - { - this.plugin = plugin; - this.autoRetainerIpc = autoRetainerIpc; - this.questTrackingService = questTrackingService; - this.questRotationService = questRotationService; - this.eventQuestService = eventQuestService; - this.alliedSocietyRotationService = alliedSocietyRotationService; - this.alliedSocietyPriorityWindow = alliedSocietyPriorityWindow; - this.dataCenterService = dataCenterService; - this.msqProgressionService = msqProgressionService; - this.configuration = configuration; - this.log = log; - this.uiBuilder = uiBuilder; - this.dataManager = dataManager; - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(900f, 600f), - MaximumSize = new Vector2(float.MaxValue, float.MaxValue) - }; - base.BgAlpha = 0f; - try - { - dataCenterService.InitializeWorldMapping(); - } - catch (Exception ex) - { - log.Error("[NewMainWindow] Failed to initialize data center mapping: " + ex.Message); - } - initialLoadStartTime = DateTime.Now; - log.Information("[NewMainWindow] Delayed character loading started (will retry with exponential backoff)"); - Random random = new Random(); - for (int i = 0; i < 80; i++) - { - Vector4 particleColor = random.Next(3) switch - { - 0 => colorPrimary, - 1 => colorSecondary, - _ => colorAccent, - }; - particles.Add(new Particle - { - Position = new Vector2(random.Next(0, 900), random.Next(0, 600)), - Velocity = new Vector2((float)(random.NextDouble() - 0.5) * 25f, (float)(random.NextDouble() - 0.5) * 25f), - Size = (float)random.NextDouble() * 3f + 1f, - Alpha = (float)random.NextDouble() * 0.5f + 0.2f, - Color = particleColor - }); - } - } - - public void Dispose() - { - } - - public override void Draw() - { - float deltaTime = ImGui.GetIO().DeltaTime; - animTime += deltaTime; - particleTime += deltaTime * 0.5f; - glowPulse = (MathF.Sin(animTime * 2f) + 1f) * 0.5f; - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - Vector2 windowSize = ImGui.GetWindowSize(); - Vector2 windowPos = ImGui.GetWindowPos(); - float sidebarWidth = 200f; - float titleBarHeight = 30f; - if (isMinimized) - { - float minHeight = titleBarHeight + 5f; - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(400f, minHeight), - MaximumSize = new Vector2(float.MaxValue, minHeight) - }; - DrawCustomTitleBar(drawList, windowPos, windowSize, titleBarHeight); - ImGui.SetWindowSize(new Vector2(windowSize.X, minHeight)); - return; - } - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(900f, 600f), - MaximumSize = new Vector2(float.MaxValue, float.MaxValue) - }; - TryInitialCharacterLoad(); - DrawGradientBackground(); - DrawAnimatedParticles(drawList, windowPos, windowSize, deltaTime); - DrawScanningLine(drawList, windowPos, windowSize); - DrawCustomTitleBar(drawList, windowPos, windowSize, titleBarHeight); - DrawSemiTransparentBackgrounds(windowPos + new Vector2(0f, titleBarHeight), windowSize - new Vector2(0f, titleBarHeight), sidebarWidth); - ImGui.SetCursorPos(new Vector2(0f, titleBarHeight)); - DrawSidebar(sidebarWidth, windowSize.Y - titleBarHeight); - ImGui.SameLine(); - DrawContentArea(windowSize.X - sidebarWidth - 20f, windowSize.Y - titleBarHeight); - DrawWorldSelectionDialogs(); - } - - private void RefreshCharacterList(bool forceIpcCheck = false) - { - try - { - log.Debug($"[NewMainWindow] RefreshCharacterList called (forceIpcCheck: {forceIpcCheck})"); - if (forceIpcCheck) - { - log.Debug("[NewMainWindow] Forcing IPC availability check..."); - autoRetainerIpc.TryReinitialize(); - } - if (!autoRetainerIpc.IsAvailable) - { - log.Warning("[NewMainWindow] AutoRetainer IPC not available during character refresh"); - return; - } - registeredCharacters = autoRetainerIpc.GetRegisteredCharacters(); - lastCharacterRefresh = DateTime.Now; - log.Information($"[NewMainWindow] Loaded {registeredCharacters.Count} characters from AutoRetainer"); - if (registeredCharacters.Count > 0) - { - initialCharacterLoadComplete = true; - } - charactersByDataCenter = dataCenterService.GroupCharactersByDataCenter(registeredCharacters); - availableWorlds = (from w in (from c in registeredCharacters - select c.Split('@') into parts - where parts.Length > 1 - select parts[1]).Distinct() - orderby w - select w).ToList(); - foreach (string character in registeredCharacters) - { - if (!characterSelection.ContainsKey(character)) - { - characterSelection[character] = false; - } - } - foreach (string savedChar in configuration.SelectedCharactersForUI) - { - if (characterSelection.ContainsKey(savedChar)) - { - characterSelection[savedChar] = true; - } - } - } - catch (Exception ex) - { - log.Error("[NewMainWindow] RefreshCharacterList failed: " + ex.Message); - log.Error("[NewMainWindow] Stack trace: " + ex.StackTrace); - } - } - - private void TryInitialCharacterLoad() - { - if (initialCharacterLoadComplete || characterLoadAttempts >= 5) - { - return; - } - double elapsedSeconds = (DateTime.Now - initialLoadStartTime).TotalSeconds; - int requiredDelay = ((characterLoadAttempts < retryDelaysSeconds.Length) ? retryDelaysSeconds[characterLoadAttempts] : retryDelaysSeconds[^1]); - if (!(elapsedSeconds < (double)requiredDelay)) - { - characterLoadAttempts++; - log.Information($"[NewMainWindow] Character load attempt {characterLoadAttempts}/{5} (after {elapsedSeconds:F1}s)"); - RefreshCharacterList(forceIpcCheck: true); - if (!initialCharacterLoadComplete) - { - initialLoadStartTime = DateTime.Now; - log.Debug($"[NewMainWindow] Next retry in {((characterLoadAttempts < retryDelaysSeconds.Length) ? retryDelaysSeconds[characterLoadAttempts] : retryDelaysSeconds[^1])}s"); - } - } - } - - private void TryWarningMenuQuestionableCheck() - { - if (warningMenuRetryCycleComplete) - { - return; - } - if (plugin.QuestionableIPC.TryEnsureAvailableSilent() && plugin.QuestionableIPC.ValidateFeatureCompatibility()) - { - warningMenuRetryCycleComplete = true; - selectedTab = 5; - log.Information("[NewMainWindow] Warning Menu retry cycle complete - Questionable IPC is now available"); - } - else if (warningMenuRetryAttempts < 4) - { - if (warningMenuRetryAttempts == 0) - { - warningMenuRetryStartTime = DateTime.Now; - } - double elapsedSeconds = (DateTime.Now - warningMenuRetryStartTime).TotalSeconds; - int requiredDelay = ((warningMenuRetryAttempts < warningMenuRetryDelaysSeconds.Length) ? warningMenuRetryDelaysSeconds[warningMenuRetryAttempts] : warningMenuRetryDelaysSeconds[^1]); - if (!(elapsedSeconds < (double)requiredDelay)) - { - warningMenuRetryAttempts++; - log.Debug($"[NewMainWindow] Warning Menu retry attempt {warningMenuRetryAttempts}/{4} (after {elapsedSeconds:F1}s)"); - warningMenuRetryStartTime = DateTime.Now; - } - } - } - - private void DrawSidebar(float width, float height) - { - using ImRaii.IEndObject child = ImRaii.Child("Sidebar", new Vector2(width, height - 10f), border: false); - if (!child.Success) - { - return; - } - DrawSidebarCategory("CHARACTERS", ref charactersExpanded, delegate - { - DrawSidebarItem("All", 0, registeredCharacters.Count); - DrawSidebarItem("EU", 1, GetCharacterCountForDC("EU")); - DrawSidebarItem("NA", 2, GetCharacterCountForDC("NA")); - DrawSidebarItem("JP", 3, GetCharacterCountForDC("JP")); - DrawSidebarItem("OCE", 4, GetCharacterCountForDC("OCE")); - }); - ImGuiHelpers.ScaledDummy(5f); - DrawSidebarCategory("MENU", ref menuExpanded, delegate - { - if (plugin.QuestionableIPC.ValidateFeatureCompatibility()) - { - DrawSidebarItem("Stop Points", 5, 0); - DrawSidebarItem("Allied Society", 10, 0); - DrawSidebarItem("Event Quest", 6, 0); - DrawSidebarItem("MSQ Progression", 7, 0); - DrawSidebarItem("Data Center Travel", 8, 0); - DrawSidebarItem("Multiboxing", 12, 0); - DrawSidebarItem("Settings", 9, 0); - } - else - { - DrawSidebarItem("Warning", 11, 0); - } - }); - } - - private void DrawSidebarCategory(string name, ref bool expanded, System.Action drawItems) - { - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float itemWidth = ImGui.GetContentRegionAvail().X - 10f; - float itemHeight = 30f; - Vector4 headerBg = new Vector4(colorPrimary.X * 0.25f, colorPrimary.Y * 0.25f, colorPrimary.Z * 0.25f, 0.7f); - uint borderColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorPrimary.X, colorPrimary.Y, colorPrimary.Z, 0.6f)); - Vector2 boxStart = cursorScreenPos + new Vector2(5f, 0f); - drawList.AddRectFilled(boxStart, boxStart + new Vector2(itemWidth, itemHeight), ImGui.ColorConvertFloat4ToU32(headerBg), 6f); - drawList.AddRect(boxStart, boxStart + new Vector2(itemWidth, itemHeight), borderColor, 6f, ImDrawFlags.None, 1.5f); - string obj = (expanded ? "v" : ">"); - ImGui.SetCursorScreenPos(boxStart + new Vector2(10f, 8f)); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.Text(obj); - ImGui.PopStyleColor(); - ImGui.SameLine(); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + 1f); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.Text(name); - ImGui.PopStyleColor(); - if (ImGui.IsMouseHoveringRect(boxStart, boxStart + new Vector2(itemWidth, itemHeight)) && ImGui.IsMouseClicked(ImGuiMouseButton.Left)) - { - expanded = !expanded; - } - ImGui.Dummy(new Vector2(itemWidth + 10f, itemHeight)); - ImGui.Spacing(); - if (expanded) - { - ImGui.Indent(10f); - drawItems(); - ImGui.Unindent(10f); - ImGui.Spacing(); - } - } - - private void DrawSidebarItem(string label, int tabIndex, int count) - { - bool isSelected = selectedTab == tabIndex; - string obj = ((count > 0) ? $"{label} ({count})" : label); - if (isSelected) - { - ImGui.PushStyleColor(ImGuiCol.Header, colorPrimary); - } - else - { - ImGui.PushStyleColor(ImGuiCol.HeaderHovered, colorHover); - } - if (ImGui.Selectable(obj, isSelected, ImGuiSelectableFlags.None, new Vector2(0f, 22f))) - { - selectedTab = tabIndex; - if (tabIndex <= 4) - { - selectedDCFilter = tabIndex; - } - } - ImGui.PopStyleColor(); - } - - private int GetCharacterCountForDC(string dcName) - { - if (charactersByDataCenter.TryGetValue(dcName, out List chars)) - { - return chars.Count; - } - return 0; - } - - private void DrawCustomTitleBar(ImDrawListPtr drawList, Vector2 windowPos, Vector2 windowSize, float height) - { - uint leftColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorPrimary.X * 0.4f, colorPrimary.Y * 0.4f, colorPrimary.Z * 0.4f, 1f)); - uint rightColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorSecondary.X * 0.3f, colorSecondary.Y * 0.3f, colorSecondary.Z * 0.3f, 1f)); - drawList.AddRectFilledMultiColor(windowPos, windowPos + new Vector2(windowSize.X, height), leftColor, rightColor, rightColor, leftColor); - Vector2 titlePos = windowPos + new Vector2(10f, 7f); - drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V.1.0.6"); - Vector2 minimizeButtonPos = windowPos + new Vector2(windowSize.X - 60f, 3f); - Vector2 minimizeButtonSize = new Vector2(24f, 24f); - if (ImGui.IsMouseHoveringRect(minimizeButtonPos, minimizeButtonPos + minimizeButtonSize)) - { - drawList.AddRectFilled(minimizeButtonPos, minimizeButtonPos + minimizeButtonSize, ImGui.ColorConvertFloat4ToU32(new Vector4(0.4f, 0.4f, 0.4f, 0.8f)), 4f); - if (ImGui.IsMouseClicked(ImGuiMouseButton.Left)) - { - isMinimized = !isMinimized; - } - } - uint arrowColor = ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 1f)); - Vector2 arrowCenter = minimizeButtonPos + new Vector2(12f, 12f); - if (isMinimized) - { - Vector2 p1 = arrowCenter + new Vector2(-4f, -5f); - Vector2 p2 = arrowCenter + new Vector2(-4f, 5f); - Vector2 p3 = arrowCenter + new Vector2(4f, 0f); - drawList.AddTriangleFilled(p1, p2, p3, arrowColor); - } - else - { - Vector2 p4 = arrowCenter + new Vector2(-5f, -4f); - Vector2 p5 = arrowCenter + new Vector2(5f, -4f); - Vector2 p6 = arrowCenter + new Vector2(0f, 4f); - drawList.AddTriangleFilled(p4, p5, p6, arrowColor); - } - Vector2 closeButtonPos = windowPos + new Vector2(windowSize.X - 30f, 3f); - Vector2 closeButtonSize = new Vector2(24f, 24f); - if (ImGui.IsMouseHoveringRect(closeButtonPos, closeButtonPos + closeButtonSize)) - { - drawList.AddRectFilled(closeButtonPos, closeButtonPos + closeButtonSize, ImGui.ColorConvertFloat4ToU32(new Vector4(0.8f, 0.2f, 0.2f, 0.8f)), 4f); - if (ImGui.IsMouseClicked(ImGuiMouseButton.Left)) - { - base.IsOpen = false; - } - } - drawList.AddText(closeButtonPos + new Vector2(7f, 2f), ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 1f)), "X"); - } - - private void DrawSemiTransparentBackgrounds(Vector2 windowPos, Vector2 windowSize, float sidebarWidth) - { - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - drawList.AddRectFilled(col: ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.12f, 0.15f, 0.85f)), pMin: windowPos, pMax: windowPos + new Vector2(sidebarWidth, windowSize.Y)); - float gradientWidth = 20f; - for (int i = 0; i < 20; i++) - { - float alpha = (float)i / 20f; - drawList.AddRectFilled(col: ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f + 0.030000009f * alpha, 0.12f + 0.030000009f * alpha, 0.15f + 0.030000001f * alpha, 0.85f - 0.05f * alpha)), pMin: windowPos + new Vector2(sidebarWidth + (float)i, 0f), pMax: windowPos + new Vector2(sidebarWidth + (float)i + 1f, windowSize.Y)); - } - drawList.AddRectFilled(col: ImGui.ColorConvertFloat4ToU32(new Vector4(0.15f, 0.15f, 0.18f, 0.8f)), pMin: windowPos + new Vector2(sidebarWidth + gradientWidth, 0f), pMax: windowPos + windowSize); - } - - private void DrawGradientBackground() - { - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - Vector2 windowPos = ImGui.GetWindowPos(); - Vector2 windowSize = ImGui.GetWindowSize(); - float extend = 2f; - float colorShift = MathF.Sin(animTime * 0.3f) * 0.15f; - float colorShift2 = MathF.Cos(animTime * 0.25f) * 0.12f; - uint blue = ImGui.ColorConvertFloat4ToU32(new Vector4(0.47843137f + colorShift, 35f / 51f + colorShift2, 0.8784314f - colorShift * 0.5f, 1f)); - uint gold = ImGui.ColorConvertFloat4ToU32(new Vector4(0.9490196f - colorShift2 * 0.5f, 0.76862746f + colorShift, 33f / 85f + colorShift2, 1f)); - uint brown = ImGui.ColorConvertFloat4ToU32(new Vector4(62f / 85f + colorShift2, 0.29411766f - colorShift, 0.18431373f + colorShift * 0.8f, 1f)); - drawList.AddRectFilledMultiColor(windowPos - new Vector2(extend, extend), windowPos + windowSize + new Vector2(extend, extend), blue, gold, brown, blue); - } - - private void DrawContentArea(float width, float height) - { - using ImRaii.IEndObject child = ImRaii.Child("ContentArea", new Vector2(width, height - 10f), border: false); - if (child.Success) - { - switch (selectedTab) - { - case 0: - case 1: - case 2: - case 3: - case 4: - DrawCharactersTab(); - break; - case 5: - DrawStopPointsTab(); - break; - case 6: - DrawEventQuestTab(); - break; - case 7: - DrawMSQProgressionTab(); - break; - case 8: - DrawDCTravelTab(); - break; - case 9: - DrawSettingsTab(); - break; - case 10: - DrawAlliedSocietyTab(); - break; - case 11: - DrawWarningTab(); - break; - case 12: - DrawMultiboxingTab(); - break; - } - } - } - - private void DrawAnimatedParticles(ImDrawListPtr drawList, Vector2 pos, Vector2 size, float deltaTime) - { - foreach (Particle p in particles) - { - if (p.Position.X < pos.X) - { - p.Position.X = pos.X + size.X; - } - if (p.Position.X > pos.X + size.X) - { - p.Position.X = pos.X; - } - if (p.Position.Y < pos.Y) - { - p.Position.Y = pos.Y + size.Y; - } - if (p.Position.Y > pos.Y + size.Y) - { - p.Position.Y = pos.Y; - } - float colorPulse = 0.8f + glowPulse * 0.2f; - float alpha = p.Alpha * (0.6f + glowPulse * 0.4f); - uint color = ImGui.ColorConvertFloat4ToU32(new Vector4(p.Color.X * colorPulse, p.Color.Y * colorPulse, p.Color.Z * colorPulse, alpha)); - float glowAlpha = alpha * 0.3f; - uint glowColor = ImGui.ColorConvertFloat4ToU32(new Vector4(p.Color.X * colorPulse, p.Color.Y * colorPulse, p.Color.Z * colorPulse, glowAlpha)); - drawList.AddCircleFilled(p.Position, p.Size * 2f, glowColor, 12); - drawList.AddCircleFilled(p.Position, p.Size, color, 8); - } - } - - private void DrawScanningLine(ImDrawListPtr drawList, Vector2 pos, Vector2 size) - { - float scan1Y = pos.Y + animTime * 0.3f % 1f * size.Y; - float scan2Y = pos.Y + (animTime * 0.25f + 0.33f) % 1f * size.Y; - float scan3Y = pos.Y + (animTime * 0.2f + 0.66f) % 1f * size.Y; - uint blueColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorPrimary.X, colorPrimary.Y, colorPrimary.Z, 0.15f * glowPulse)); - uint goldColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorSecondary.X, colorSecondary.Y, colorSecondary.Z, 0.15f * glowPulse)); - uint redColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorAccent.X, colorAccent.Y, colorAccent.Z, 0.15f * glowPulse)); - drawList.AddLine(new Vector2(pos.X, scan1Y), new Vector2(pos.X + size.X, scan1Y), blueColor, 2f); - drawList.AddLine(new Vector2(pos.X, scan2Y), new Vector2(pos.X + size.X, scan2Y), goldColor, 2f); - drawList.AddLine(new Vector2(pos.X, scan3Y), new Vector2(pos.X + size.X, scan3Y), redColor, 2f); - } - - private void DrawDCTravelTab() - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Data Center Travel Configuration"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - Configuration config = plugin.Configuration; - if (string.IsNullOrEmpty(selectedDataCenter) && !string.IsNullOrEmpty(config.DCTravelDataCenter)) - { - selectedDataCenter = config.DCTravelDataCenter; - } - if (string.IsNullOrEmpty(selectedWorld) && !string.IsNullOrEmpty(config.DCTravelWorld)) - { - selectedWorld = config.DCTravelWorld; - } - if (string.IsNullOrEmpty(selectedDataCenter)) - { - selectedDataCenter = dataCenterWorlds.Keys.First(); - } - if (string.IsNullOrEmpty(selectedWorld)) - { - List worlds = dataCenterWorlds.GetValueOrDefault(selectedDataCenter) ?? new List(); - if (worlds.Count > 0) - { - selectedWorld = worlds[0]; - } - } - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextWrapped("Configure automatic Data Center travel for quest rotation. The plugin will travel to the specified Data Center and World before starting quests."); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(15f); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Select Data Center:"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.SetNextItemWidth(350f); - ImGui.PushStyleColor(ImGuiCol.FrameBg, new Vector4(0.15f, 0.15f, 0.18f, 0.9f)); - ImGui.PushStyleColor(ImGuiCol.FrameBgHovered, new Vector4(colorPrimary.X * 0.3f, colorPrimary.Y * 0.3f, colorPrimary.Z * 0.3f, 0.9f)); - if (ImGui.BeginCombo("##DataCenterCombo", selectedDataCenter)) - { - foreach (string dc in dataCenterWorlds.Keys.OrderBy((string k) => k)) - { - bool isSelected = selectedDataCenter == dc; - if (ImGui.Selectable(dc, isSelected)) - { - selectedDataCenter = dc; - List worlds2 = dataCenterWorlds.GetValueOrDefault(selectedDataCenter) ?? new List(); - if (worlds2.Count > 0) - { - selectedWorld = worlds2[0]; - } - } - if (isSelected) - { - ImGui.SetItemDefaultFocus(); - } - } - ImGui.EndCombo(); - } - ImGuiHelpers.ScaledDummy(15f); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Select World:"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - List availableWorlds = dataCenterWorlds.GetValueOrDefault(selectedDataCenter) ?? new List(); - ImGui.SetNextItemWidth(350f); - ImGui.PushStyleColor(ImGuiCol.FrameBg, new Vector4(0.15f, 0.15f, 0.18f, 0.9f)); - ImGui.PushStyleColor(ImGuiCol.FrameBgHovered, new Vector4(colorPrimary.X * 0.3f, colorPrimary.Y * 0.3f, colorPrimary.Z * 0.3f, 0.9f)); - if (ImGui.BeginCombo("##WorldCombo", selectedWorld)) - { - foreach (string world in availableWorlds) - { - bool isSelected2 = selectedWorld == world; - if (ImGui.Selectable(world, isSelected2)) - { - selectedWorld = world; - } - if (isSelected2) - { - ImGui.SetItemDefaultFocus(); - } - } - ImGui.EndCombo(); - } - ImGui.PopStyleColor(2); - ImGuiHelpers.ScaledDummy(15f); - LifestreamIPC lifestreamIPC = Plugin.Instance?.LifestreamIPC; - if (lifestreamIPC != null && !lifestreamIPC.IsAvailable) - { - lifestreamIPC.ForceCheckAvailability(); - } - int num; - if (lifestreamIPC == null) - { - num = 0; - } - else - { - num = (lifestreamIPC.IsAvailable ? 1 : 0); - if (num != 0) - { - goto IL_0421; - } - } - ImGui.BeginDisabled(); - goto IL_0421; - IL_0421: - bool enableDCTravel = config.EnableDCTravel; - if (ImGui.Checkbox("Enable Data Center Travel", ref enableDCTravel)) - { - config.EnableDCTravel = enableDCTravel; - config.Save(); - } - if (num == 0) - { - ImGui.EndDisabled(); - } - ImGui.SameLine(); - DrawInfoIcon("Automatically travels to the specified Data Center and World before starting quest rotation.\nRequires Lifestream plugin to be installed and configured.\nImpact: Characters will travel to target DC/World at rotation start."); - if (num == 0) - { - ImGuiHelpers.ScaledDummy(5f); - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(1f, 0.5f, 0f, 1f)); - ImGui.TextWrapped("Lifestream plugin is not available! DC Travel requires Lifestream to be installed and enabled."); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - if (ImGui.Button("Check Lifestream Again") && lifestreamIPC != null) - { - bool result = lifestreamIPC.ForceCheckAvailability(); - log.Information($"[DCTravel UI] Manual Lifestream check result: {result}"); - } - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Manually check if Lifestream is available.\nCheck the logs for detailed information."); - } - } - ImGuiHelpers.ScaledDummy(20f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(15f); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Current Configuration:"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.Indent(10f); - ImU8String text = new ImU8String(13, 0); - text.AppendLiteral("Data Center: "); - ImGui.TextUnformatted(text); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted((config.DCTravelDataCenter.Length > 0) ? config.DCTravelDataCenter : "Not Set"); - ImGui.PopStyleColor(); - ImU8String text2 = new ImU8String(14, 0); - text2.AppendLiteral("Target World: "); - ImGui.TextUnformatted(text2); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted((config.DCTravelWorld.Length > 0) ? config.DCTravelWorld : "Not Set"); - ImGui.PopStyleColor(); - ImU8String text3 = new ImU8String(8, 0); - text3.AppendLiteral("Status: "); - ImGui.TextUnformatted(text3); - ImGui.SameLine(); - if (config.EnableDCTravel) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Enabled"); - ImGui.PopStyleColor(); - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, colorAccent); - ImGui.TextUnformatted("Disabled"); - ImGui.PopStyleColor(); - } - ImGui.Unindent(10f); - ImGuiHelpers.ScaledDummy(20f); - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - if (ImGui.Button("Apply", new Vector2(120f, 30f))) - { - config.DCTravelDataCenter = selectedDataCenter; - config.DCTravelWorld = selectedWorld; - config.Save(); - log.Information("[DCTravel] Configuration saved: " + selectedDataCenter + " -> " + selectedWorld); - } - ImGui.PopStyleColor(2); - ImGui.SameLine(); - if (ImGui.Button("Cancel", new Vector2(120f, 30f))) - { - selectedDataCenter = config.DCTravelDataCenter; - selectedWorld = config.DCTravelWorld; - if (string.IsNullOrEmpty(selectedDataCenter)) - { - selectedDataCenter = dataCenterWorlds.Keys.First(); - } - if (string.IsNullOrEmpty(selectedWorld)) - { - List worlds3 = dataCenterWorlds.GetValueOrDefault(selectedDataCenter) ?? new List(); - if (worlds3.Count > 0) - { - selectedWorld = worlds3[0]; - } - } - } - ImGuiHelpers.ScaledDummy(10f); - if (!config.EnableDCTravel) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextWrapped("Note: Data Center Travel is currently disabled. Enable it above to use this feature."); - ImGui.PopStyleColor(); - } - } - - private void DrawMultiboxingTab() - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Multiboxing Settings"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - using ImRaii.IEndObject child = ImRaii.Child("MultiboxingScrollArea", new Vector2(0f, 0f), border: false, ImGuiWindowFlags.None); - if (!child.Success) - { - return; - } - Configuration config = plugin.Configuration; - DrawSettingSection("Dungeon Automation", delegate - { - bool enableAutoDutyUnsynced = config.EnableAutoDutyUnsynced; - config.EnableAutoDutyUnsynced = DrawSettingWithInfo("Enable Auto Duty (Unsynced)", config.EnableAutoDutyUnsynced, "Automatically handles dungeon entries and party formation.\nUses AutoDuty plugin for unsynced dungeon runs.\nImpact: Dungeons will be automated during quest rotation."); - if (config.EnableAutoDutyUnsynced != enableAutoDutyUnsynced) - { - config.Save(); - plugin.GetDungeonAutomation()?.SetDutyModeBasedOnConfig(); - } - if (config.EnableAutoDutyUnsynced) - { - ImGui.Indent(); - int v = config.AutoDutyPartySize; - if (ImGui.SliderInt("Minimum Party Size", ref v, 1, 4)) - { - config.AutoDutyPartySize = v; - config.Save(); - } - DrawInfoIcon("Minimum number of party members required before entering dungeon."); - int v2 = config.AutoDutyMaxWaitForParty; - if (ImGui.SliderInt("Max Wait for Party (seconds)", ref v2, 10, 120)) - { - config.AutoDutyMaxWaitForParty = v2; - config.Save(); - } - DrawInfoIcon("Maximum time to wait for party members before timing out."); - int v3 = config.AutoDutyReInviteInterval; - if (ImGui.SliderInt("Re-Invite Interval (seconds)", ref v3, 5, 60)) - { - config.AutoDutyReInviteInterval = v3; - config.Save(); - } - DrawInfoIcon("How often to re-send party invites if members don't join."); - ImGuiHelpers.ScaledDummy(5f); - bool v4 = config.EnableARRPrimalCheck; - if (ImGui.Checkbox("Check ARR Primals when hitting flag", ref v4)) - { - config.EnableARRPrimalCheck = v4; - config.Save(); - Plugin.Log.Information("[Multiboxing] ARR Primal Check: " + (v4 ? "ENABLED" : "DISABLED")); - } - DrawInfoIcon("Checks if ARR Hard Mode Primals (Ifrit/Garuda/Titan) are done.\nRequired for Quest 363 (Good Intentions)."); - ImGui.Unindent(); - } - }, config.EnableAutoDutyUnsynced); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Multi-Client Role", delegate - { - ImGui.TextWrapped("Select your role for multi-client features (party management, chauffeur mode):"); - ImGuiHelpers.ScaledDummy(5f); - int num = 0; - if (config.IsQuester) - { - num = 1; - } - else if (config.IsHighLevelHelper) - { - num = 2; - } - if (ImGui.RadioButton("None", num == 0)) - { - config.IsQuester = false; - config.IsHighLevelHelper = false; - config.Save(); - } - ImGui.SameLine(); - DrawInfoIcon("No multi-client features enabled"); - if (ImGui.RadioButton("Quester", num == 1)) - { - config.IsQuester = true; - config.IsHighLevelHelper = false; - config.Save(); - Plugin.Log.Information("[Multiboxing] Role changed to: Quester"); - } - ImGui.SameLine(); - DrawInfoIcon("This client will quest and invite helpers for dungeons"); - if (ImGui.RadioButton("High-Level Helper", num == 2)) - { - config.IsQuester = false; - config.IsHighLevelHelper = true; - Plugin.Framework.RunOnFrameworkThread(delegate - { - Plugin.Instance?.GetHelperManager()?.AnnounceIfHelper(); - Plugin.Instance?.GetChauffeurMode()?.StartHelperStatusBroadcast(); - }); - config.Save(); - Plugin.Log.Information("[Multiboxing] Role changed to: High-Level Helper"); - } - ImGui.SameLine(); - DrawInfoIcon("This client will help with dungeons.\nAutoDuty starts/stops automatically on duty enter/leave"); - if (config.IsHighLevelHelper) - { - ImGuiHelpers.ScaledDummy(5f); - ImGui.Indent(); - bool v = config.AlwaysAutoAcceptInvites; - if (ImGui.Checkbox("Always Auto-Accept Party Invites", ref v)) - { - config.AlwaysAutoAcceptInvites = v; - config.Save(); - } - DrawInfoIcon("Continuously accept ALL party invites (useful for ManualInput mode without IPC)"); - ImGui.Unindent(); - } - ImGuiHelpers.ScaledDummy(10f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextColored(in colorPrimary, "LAN Multi-PC Helper System"); - ImGui.TextWrapped("Connect helpers on different PCs in your HOME NETWORK."); - ImGuiHelpers.ScaledDummy(3f); - config.EnableLANHelpers = DrawSettingWithInfo("Enable LAN Helper System", config.EnableLANHelpers, "Connect to helpers on other PCs in YOUR home network.\nNOT accessible from internet! Only devices in your home can connect."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.EnableLANHelpers) - { - ImGui.Indent(); - if (config.IsHighLevelHelper) - { - bool flag = DrawSettingWithInfo("Start LAN Server on this PC", config.StartLANServer, "Enable so OTHER PCs in your home can connect to THIS PC.\nNOT exposed to internet! Only devices in your home can connect."); - if (flag != config.StartLANServer) - { - config.StartLANServer = flag; - config.Save(); - plugin.ToggleLANServer(flag); - } - } - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextColored(in colorSecondary, "Server Port:"); - ImGui.SetNextItemWidth(150f); - int data = config.LANServerPort; - if (ImGui.InputInt("##LANPort", ref data) && data >= 1024 && data <= 65535) - { - config.LANServerPort = data; - config.Save(); - } - ImGui.SameLine(); - DrawInfoIcon("Port for local network communication (default: 47788).\nFirewall may need to allow this port."); - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextColored(in colorSecondary, "Helper PC IP Addresses:"); - ImGui.TextWrapped("Add IPs of OTHER PCs in your home with helper characters:"); - ImGuiHelpers.ScaledDummy(3f); - if (config.LANHelperIPs == null) - { - config.LANHelperIPs = new List(); - } - for (int num2 = 0; num2 < config.LANHelperIPs.Count; num2++) - { - ImU8String strId = new ImU8String(3, 1); - strId.AppendLiteral("IP_"); - strId.AppendFormatted(num2); - ImGui.PushID(strId); - ImGui.BulletText(config.LANHelperIPs[num2]); - ImGui.SameLine(); - if (ImGui.SmallButton("\ud83d\udd04 Reconnect")) - { - string ip = config.LANHelperIPs[num2]; - LANHelperClient lanClient = plugin.GetLANHelperClient(); - if (lanClient != null) - { - Task.Run(async delegate - { - Plugin.Log.Information("[UI] Manual reconnect to " + ip + "..."); - await lanClient.ConnectToHelperAsync(ip); - }); - } - } - ImGui.SameLine(); - if (ImGui.SmallButton("Remove")) - { - config.LANHelperIPs.RemoveAt(num2); - config.Save(); - num2--; - } - ImGui.PopID(); - } - if (config.LANHelperIPs.Count == 0) - { - ImGui.TextColored(new Vector4(1f, 0.8f, 0.2f, 1f), "No IPs configured"); - ImGui.TextWrapped("Add IPs below (or use 127.0.0.1 for same-PC testing)"); - } - ImGuiHelpers.ScaledDummy(3f); - ImGui.TextColored(in colorSecondary, "Add new IP:"); - ImGui.SetNextItemWidth(200f); - string buf = newLANHelperIP ?? ""; - if (ImGui.InputText("##NewIP", ref buf, 50)) - { - newLANHelperIP = buf; - } - ImGui.SameLine(); - if (ImGui.Button("Add IP") && !string.IsNullOrWhiteSpace(newLANHelperIP)) - { - string trimmedIP = newLANHelperIP.Trim(); - if (!config.LANHelperIPs.Contains(trimmedIP)) - { - config.LANHelperIPs.Add(trimmedIP); - config.Save(); - newLANHelperIP = ""; - LANHelperClient lanClient2 = plugin.GetLANHelperClient(); - if (lanClient2 != null) - { - Task.Run(async delegate - { - await lanClient2.ConnectToHelperAsync(trimmedIP); - }); - } - } - } - ImGui.SameLine(); - if (ImGui.SmallButton("Add Localhost") && !config.LANHelperIPs.Contains("127.0.0.1")) - { - config.LANHelperIPs.Add("127.0.0.1"); - config.Save(); - LANHelperClient lanClient3 = plugin.GetLANHelperClient(); - if (lanClient3 != null) - { - Task.Run(async delegate - { - await lanClient3.ConnectToHelperAsync("127.0.0.1"); - }); - } - } - ImGuiHelpers.ScaledDummy(3f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.7f, 1f), "\ud83d\udca1 Tip: Run 'ipconfig' and use your IPv4-Adresse (like 192.168.x.x)"); - ImGuiHelpers.ScaledDummy(5f); - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0.4f, 0.8f, 0.4f, 1f)); - if (config.StartLANServer) - { - ImU8String text = new ImU8String(48, 1); - text.AppendLiteral("✓ LAN Server enabled (LOCAL network only, port "); - text.AppendFormatted(config.LANServerPort); - text.AppendLiteral(")"); - ImGui.TextWrapped(text); - } - if (config.LANHelperIPs.Count > 0) - { - ImU8String text2 = new ImU8String(37, 1); - text2.AppendLiteral("✓ Will connect to "); - text2.AppendFormatted(config.LANHelperIPs.Count); - text2.AppendLiteral(" local helper PC(s)"); - ImGui.TextWrapped(text2); - } - ImGui.PopStyleColor(); - ImGui.Unindent(); - } - ImGuiHelpers.ScaledDummy(10f); - if (config.IsQuester) - { - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextColored(in colorPrimary, "Auto-Discovered Helpers"); - ImGui.TextWrapped("Helpers are automatically discovered via IPC when they have 'I'm a High-Level Helper' enabled:"); - ImGuiHelpers.ScaledDummy(5f); - List<(string, ushort)> availableHelpers = plugin.GetAvailableHelpers(); - if (availableHelpers.Count == 0) - { - ImGui.TextColored(new Vector4(1f, 0.8f, 0.2f, 1f), "No helpers discovered yet"); - ImGui.TextWrapped("Make sure helper clients are running with 'I'm a High-Level Helper' enabled."); - } - else - { - Vector4 col = new Vector4(0.2f, 1f, 0.2f, 1f); - ImU8String text3 = new ImU8String(20, 1); - text3.AppendFormatted(availableHelpers.Count); - text3.AppendLiteral(" helper(s) available"); - ImGui.TextColored(in col, text3); - } - ImGuiHelpers.ScaledDummy(5f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextColored(in colorPrimary, "Helper Selection Mode"); - ImGuiHelpers.ScaledDummy(3f); - int helperSelection = (int)config.HelperSelection; - if (ImGui.RadioButton("Auto", helperSelection == 0)) - { - config.HelperSelection = HelperSelectionMode.Auto; - config.PreferredHelper = ""; - config.ManualHelperName = ""; - config.Save(); - } - ImGui.SameLine(); - DrawInfoIcon("First available helper via IPC"); - if (ImGui.RadioButton("Dropdown", helperSelection == 1)) - { - config.HelperSelection = HelperSelectionMode.Dropdown; - config.ManualHelperName = ""; - config.Save(); - } - ImGui.SameLine(); - DrawInfoIcon("Select specific helper from list"); - if (config.HelperSelection == HelperSelectionMode.Dropdown && availableHelpers.Count > 0) - { - ImGui.Indent(); - ImGui.SetNextItemWidth(250f); - string text4 = (string.IsNullOrEmpty(config.PreferredHelper) ? "-- Select --" : config.PreferredHelper); - if (ImGui.BeginCombo("##PreferredHelper", text4)) - { - foreach (var item5 in availableHelpers) - { - string item = item5.Item1; - ushort item2 = item5.Item2; - ExcelSheet excelSheet = Plugin.DataManager.GetExcelSheet(); - string text5 = "Unknown"; - if (excelSheet != null) - { - foreach (World current2 in excelSheet) - { - if (current2.RowId == item2) - { - text5 = current2.Name.ExtractText(); - break; - } - } - } - string text6 = item + "@" + text5; - bool selected = config.PreferredHelper == text6; - if (ImGui.Selectable(text6, selected)) - { - config.PreferredHelper = text6; - config.Save(); - } - } - ImGui.EndCombo(); - } - if (!string.IsNullOrEmpty(config.PreferredHelper)) - { - string text7 = (Plugin.Instance?.GetChauffeurMode())?.GetHelperStatus(config.PreferredHelper); - Vector4 col; - Vector4 col2; - ImU8String text8; - switch (text7) - { - case "Available": - col = new Vector4(0.2f, 1f, 0.2f, 1f); - goto IL_0c39; - case "Transporting": - col = new Vector4(1f, 0.8f, 0f, 1f); - goto IL_0c39; - case "InDungeon": - col = new Vector4(1f, 0.3f, 0.3f, 1f); - goto IL_0c39; - default: - col = colorSecondary; - goto IL_0c39; - case null: - break; - IL_0c39: - col2 = col; - ImGui.SameLine(); - text8 = new ImU8String(2, 1); - text8.AppendLiteral("["); - text8.AppendFormatted(text7); - text8.AppendLiteral("]"); - ImGui.TextColored(in col2, text8); - break; - } - } - ImGui.Unindent(); - } - else if (config.HelperSelection == HelperSelectionMode.Dropdown && availableHelpers.Count == 0) - { - ImGui.Indent(); - ImGui.TextColored(new Vector4(1f, 0.8f, 0.2f, 1f), "⚠ No helpers available to select"); - ImGui.Unindent(); - } - if (ImGui.RadioButton("Manual Input", helperSelection == 2)) - { - config.HelperSelection = HelperSelectionMode.ManualInput; - config.PreferredHelper = ""; - config.Save(); - } - ImGui.SameLine(); - DrawInfoIcon("Manual entry (Dungeon invites only - NOT Chauffeur/Following!)"); - if (config.HelperSelection == HelperSelectionMode.ManualInput) - { - ImGui.Indent(); - ImGui.SetNextItemWidth(250f); - string buf2 = config.ManualHelperName; - if (ImGui.InputText("##ManualHelperInput", ref buf2, 100)) - { - config.ManualHelperName = buf2; - config.Save(); - } - ImGui.SameLine(); - DrawInfoIcon("Format: CharacterName@WorldName"); - if (!string.IsNullOrEmpty(config.ManualHelperName)) - { - if (config.ManualHelperName.Contains("@")) - { - ImGui.SameLine(); - ImGui.TextColored(new Vector4(0.2f, 1f, 0.2f, 1f), "✓"); - } - else - { - ImGui.SameLine(); - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "⚠"); - } - } - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(1f, 0.8f, 0.2f, 1f)); - ImGui.TextWrapped("⚠ Cannot be used with Chauffeur/Following (requires IPC)"); - ImGui.PopStyleColor(); - ImGui.Unindent(); - } - if (availableHelpers.Count > 0) - { - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextUnformatted("Available Helpers:"); - ChauffeurModeService chauffeurModeService = Plugin.Instance?.GetChauffeurMode(); - foreach (var item6 in availableHelpers) - { - string item3 = item6.Item1; - ushort item4 = item6.Item2; - ExcelSheet excelSheet2 = Plugin.DataManager.GetExcelSheet(); - string text9 = "Unknown"; - if (excelSheet2 != null) - { - foreach (World current4 in excelSheet2) - { - if (current4.RowId == item4) - { - text9 = current4.Name.ExtractText(); - break; - } - } - } - string text10 = item3 + "@" + text9; - string text11 = chauffeurModeService?.GetHelperStatus(text10); - ImU8String text12 = new ImU8String(4, 1); - text12.AppendLiteral(" • "); - text12.AppendFormatted(text10); - ImGui.TextUnformatted(text12); - if (text11 != null) - { - ImGui.SameLine(); - Vector4 col3 = text11 switch - { - "Available" => new Vector4(0.2f, 1f, 0.2f, 1f), - "Transporting" => new Vector4(1f, 0.8f, 0f, 1f), - "InDungeon" => new Vector4(1f, 0.3f, 0.3f, 1f), - _ => colorSecondary, - }; - ImU8String text13 = new ImU8String(2, 1); - text13.AppendLiteral("["); - text13.AppendFormatted(text11); - text13.AppendLiteral("]"); - ImGui.TextColored(in col3, text13); - } - } - } - } - }, config.IsQuester || config.IsHighLevelHelper); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Chauffeur Mode", delegate - { - ImGui.TextWrapped("Multi-character transport system. Helper transports Quester to quest objectives using multi-seater mounts."); - ImGuiHelpers.ScaledDummy(5f); - if (!config.IsQuester && !config.IsHighLevelHelper) - { - ImGui.TextColored(new Vector4(1f, 0.8f, 0.2f, 1f), "Please select a role above to configure Chauffeur Mode"); - } - else - { - bool v = config.ChauffeurModeEnabled; - if (ImGui.Checkbox("Enable Chauffeur Mode", ref v)) - { - config.ChauffeurModeEnabled = v; - config.Save(); - Plugin.Log.Information("[Multiboxing] Chauffeur Mode: " + (v ? "ENABLED" : "DISABLED")); - } - DrawInfoIcon("Enable automatic helper summoning for long-distance travel in non-flying zones"); - if (config.ChauffeurModeEnabled) - { - ImGuiHelpers.ScaledDummy(5f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(5f); - if (config.IsQuester) - { - ImGui.TextColored(in colorPrimary, "Quester Settings"); - ImGuiHelpers.ScaledDummy(3f); - float v2 = config.ChauffeurDistanceThreshold; - ImGui.SetNextItemWidth(200f); - if (ImGui.SliderFloat("Distance Threshold (yalms)", ref v2, 50f, 300f, "%.0f")) - { - config.ChauffeurDistanceThreshold = v2; - config.Save(); - } - DrawInfoIcon("Helper will be summoned when task is further than this distance\nand flying is not available in the zone"); - ImU8String text = new ImU8String(15, 1); - text.AppendLiteral("Current: "); - text.AppendFormatted(config.ChauffeurDistanceThreshold, "F0"); - text.AppendLiteral(" yalms"); - ImGui.TextWrapped(text); - } - if (config.IsHighLevelHelper) - { - ImGui.TextColored(in colorPrimary, "Helper Settings"); - ImGuiHelpers.ScaledDummy(3f); - Vector4 col = config.CurrentHelperStatus switch - { - HelperStatus.Available => new Vector4(0.2f, 1f, 0.2f, 1f), - HelperStatus.Transporting => new Vector4(1f, 0.8f, 0f, 1f), - HelperStatus.InDungeon => new Vector4(1f, 0.3f, 0.3f, 1f), - _ => colorSecondary, - }; - string value = config.CurrentHelperStatus switch - { - HelperStatus.Available => "Available", - HelperStatus.Transporting => "Transporting", - HelperStatus.InDungeon => "In Dungeon", - _ => "Unknown", - }; - ImU8String text2 = new ImU8String(8, 1); - text2.AppendLiteral("Status: "); - text2.AppendFormatted(value); - ImGui.TextColored(in col, text2); - ImGuiHelpers.ScaledDummy(3f); - if (!string.IsNullOrEmpty(config.AssignedQuester)) - { - Vector4 col2 = new Vector4(0.2f, 1f, 0.2f, 1f); - ImU8String text3 = new ImU8String(18, 1); - text3.AppendLiteral("Assigned Quester: "); - text3.AppendFormatted(config.AssignedQuester); - ImGui.TextColored(in col2, text3); - ImGuiHelpers.ScaledDummy(3f); - } - else - { - ImGui.TextColored(in colorSecondary, "Assigned Quester: None"); - ImGuiHelpers.ScaledDummy(3f); - } - float v3 = config.ChauffeurStopDistance; - ImGui.SetNextItemWidth(200f); - if (ImGui.SliderFloat("Stop Distance (yalms)", ref v3, 2f, 15f, "%.1f")) - { - config.ChauffeurStopDistance = v3; - config.Save(); - } - DrawInfoIcon("How close you bring the quester to their destination\n(2-15 yalms, default: 5)"); - ImU8String text4 = new ImU8String(15, 1); - text4.AppendLiteral("Current: "); - text4.AppendFormatted(config.ChauffeurStopDistance, "F1"); - text4.AppendLiteral(" yalms"); - ImGui.TextWrapped(text4); - ImGuiHelpers.ScaledDummy(5f); - List<(uint, string, byte)> list = (Plugin.Instance?.GetChauffeurMode())?.GetMultiSeaterMounts() ?? new List<(uint, string, byte)>(); - if (list.Count == 0) - { - ImGui.TextColored(new Vector4(1f, 0.3f, 0.3f, 1f), "No multi-seater mounts found!"); - ImGui.TextWrapped("Make sure you have unlocked at least one multi-seater mount."); - } - else - { - ImGui.TextWrapped("Select Multi-Seater Mount:"); - ImGuiHelpers.ScaledDummy(3f); - int num = 0; - List list2 = new List(); - for (int i = 0; i < list.Count; i++) - { - var (num2, value2, value3) = list[i]; - list2.Add($"{value2} (Passengers: {value3})"); - if (num2 == config.ChauffeurMountId) - { - num = i; - } - } - list2.Insert(0, "-- Not Selected --"); - num = ((config.ChauffeurMountId != 0) ? (num + 1) : 0); - ImGui.SetNextItemWidth(300f); - if (ImGui.Combo((ImU8String)"##MountSelect", ref num, (ReadOnlySpan)list2.ToArray(), list2.Count)) - { - if (num == 0) - { - config.ChauffeurMountId = 0u; - } - else - { - (uint, string, byte) tuple2 = list[num - 1]; - config.ChauffeurMountId = tuple2.Item1; - } - config.Save(); - } - DrawInfoIcon("This mount will be used to transport the Quester"); - if (config.ChauffeurMountId == 0) - { - ImGuiHelpers.ScaledDummy(3f); - ImGui.TextColored(new Vector4(1f, 0.8f, 0.2f, 1f), "Please select a mount to enable Chauffeur Mode"); - } - } - } - } - } - }, config.ChauffeurModeEnabled); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Helper Following", delegate - { - ImGui.TextWrapped("Helper passively follows Quester and maintains a configurable distance. Automatically navigates when too far away."); - ImGuiHelpers.ScaledDummy(5f); - if (config.IsQuester) - { - ImGui.TextColored(new Vector4(0.7f, 0.9f, 1f, 1f), "Quester Settings:"); - ImGui.TextWrapped("Select which Helper should follow you. Your position will be broadcasted to this Helper."); - ImGuiHelpers.ScaledDummy(3f); - string assignedHelperForFollowing = config.AssignedHelperForFollowing; - ImGui.Text("Assigned Helper:"); - ImGui.SameLine(); - if (string.IsNullOrEmpty(assignedHelperForFollowing)) - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "None"); - } - else - { - ImGui.TextColored(new Vector4(0.2f, 1f, 0.2f, 1f), assignedHelperForFollowing); - } - ImGuiHelpers.ScaledDummy(3f); - ImGui.Text("Auto-Discovered Helpers:"); - ImGui.SetNextItemWidth(300f); - List<(string, ushort)> availableHelpers = plugin.GetAvailableHelpers(); - if (ImGui.BeginCombo("##HelperDropdown", string.IsNullOrEmpty(assignedHelperForFollowing) ? "Select Helper..." : assignedHelperForFollowing)) - { - if (availableHelpers.Count == 0) - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "No helpers discovered yet"); - ImGui.TextWrapped("Helpers are auto-discovered via IPC when they have 'I'm a High-Level Helper' enabled."); - } - else - { - foreach (var item7 in availableHelpers) - { - string item = item7.Item1; - ushort item2 = item7.Item2; - ExcelSheet excelSheet = Plugin.DataManager.GetExcelSheet(); - string text = "Unknown"; - if (excelSheet != null) - { - foreach (World current2 in excelSheet) - { - if (current2.RowId == item2) - { - text = current2.Name.ToString(); - break; - } - } - } - string text2 = item + "@" + text; - bool selected = assignedHelperForFollowing == text2; - if (ImGui.Selectable(text2, selected)) - { - config.AssignedHelperForFollowing = text2; - config.Save(); - } - } - } - ImGui.EndCombo(); - } - DrawInfoIcon("Select the Helper from auto-discovered helpers.\nHelpers are discovered via IPC when they broadcast their status."); - ImGuiHelpers.ScaledDummy(5f); - bool v = config.EnableHelperFollowing; - if (string.IsNullOrEmpty(config.AssignedHelperForFollowing)) - { - ImGui.BeginDisabled(); - } - if (ImGui.Checkbox("Enable Position Broadcasting", ref v)) - { - config.EnableHelperFollowing = v; - config.Save(); - Plugin.Log.Information("[Multiboxing] Helper Following (Quester): " + (v ? "ENABLED" : "DISABLED")); - } - if (string.IsNullOrEmpty(config.AssignedHelperForFollowing)) - { - ImGui.EndDisabled(); - } - DrawInfoIcon("Enable to broadcast your position to the assigned Helper.\nThe Helper can then follow you automatically."); - ImGuiHelpers.ScaledDummy(3f); - if (config.EnableHelperFollowing && !string.IsNullOrEmpty(config.AssignedHelperForFollowing)) - { - ImGui.TextColored(new Vector4(0.2f, 1f, 0.2f, 1f), "✓ Broadcasting position to Helper"); - } - else if (!string.IsNullOrEmpty(config.AssignedHelperForFollowing)) - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "⚠ Enable broadcasting to start"); - } - else - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "⚠ Select a Helper first"); - } - } - else if (!config.IsHighLevelHelper) - { - ImGui.TextColored(new Vector4(1f, 0.8f, 0.2f, 1f), "Please select a role (Quester or Helper) above"); - } - else - { - ImGui.TextColored(new Vector4(0.7f, 0.9f, 1f, 1f), "Helper Settings:"); - ImGui.TextWrapped("Select which Quester to follow. You will only follow this specific Quester."); - ImGuiHelpers.ScaledDummy(3f); - string assignedQuesterForFollowing = config.AssignedQuesterForFollowing; - ImGui.Text("Assigned Quester:"); - ImGui.SameLine(); - if (string.IsNullOrEmpty(assignedQuesterForFollowing)) - { - ImGui.TextColored(new Vector4(1f, 0.3f, 0.3f, 1f), "⚠ None - Helper Following disabled!"); - } - else - { - ImGui.TextColored(new Vector4(0.2f, 1f, 0.2f, 1f), assignedQuesterForFollowing); - } - ImGuiHelpers.ScaledDummy(3f); - ImGui.Text("Auto-Discovered Questers:"); - ImGui.SetNextItemWidth(300f); - List list = (Plugin.Instance?.GetChauffeurMode())?.GetDiscoveredQuesters() ?? new List(); - if (ImGui.BeginCombo("##QuesterDropdown", string.IsNullOrEmpty(assignedQuesterForFollowing) ? "Select Quester..." : assignedQuesterForFollowing)) - { - if (list.Count == 0) - { - ImGui.TextColored(new Vector4(1f, 0.5f, 0f, 1f), "No questers discovered yet"); - ImGui.TextWrapped("Questers are auto-discovered when they broadcast position."); - ImGui.TextWrapped("Make sure the Quester has Helper Following enabled and has assigned you as Helper."); - } - else - { - foreach (string current3 in list) - { - bool selected2 = assignedQuesterForFollowing == current3; - if (ImGui.Selectable(current3, selected2)) - { - config.AssignedQuesterForFollowing = current3; - config.Save(); - } - } - } - ImGui.EndCombo(); - } - DrawInfoIcon("Questers are automatically discovered via IPC when they broadcast position.\nSelect the Quester you want to follow from the list."); - ImGuiHelpers.ScaledDummy(5f); - bool v2 = config.EnableHelperFollowing; - if (string.IsNullOrEmpty(config.AssignedQuesterForFollowing)) - { - ImGui.BeginDisabled(); - } - if (ImGui.Checkbox("Enable Helper Following", ref v2)) - { - config.EnableHelperFollowing = v2; - config.Save(); - Plugin.Log.Information("[Multiboxing] Helper Following (Helper): " + (v2 ? "ENABLED" : "DISABLED")); - } - if (string.IsNullOrEmpty(config.AssignedQuesterForFollowing)) - { - ImGui.EndDisabled(); - } - DrawInfoIcon("Helper will automatically follow the assigned Quester and maintain distance.\nStops in restricted zones (Main Cities) and when Chauffeur Mode is active."); - if (config.EnableHelperFollowing) - { - ImGuiHelpers.ScaledDummy(5f); - ImGui.Indent(); - float v3 = config.HelperFollowDistance; - if (ImGui.SliderFloat("Follow Distance (yalms)", ref v3, 50f, 200f, "%.0f")) - { - config.HelperFollowDistance = v3; - config.Save(); - } - DrawInfoIcon("Distance to maintain from Quester.\nHelper will navigate when further than this distance.\nRecommended: 80-120 yalms"); - ImGuiHelpers.ScaledDummy(3f); - int v4 = config.HelperFollowCheckInterval; - if (ImGui.SliderInt("Check Interval (seconds)", ref v4, 3, 15)) - { - config.HelperFollowCheckInterval = v4; - config.Save(); - } - DrawInfoIcon("How often to check distance to Quester.\nLower values = more responsive but more CPU usage.\nRecommended: 5 seconds"); - ImGui.Unindent(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(3f); - ImGui.TextColored(new Vector4(0.7f, 0.9f, 1f, 1f), "Status:"); - if (Plugin.Instance?.GetChauffeurMode() != null) - { - ImU8String text3 = new ImU8String(23, 1); - text3.AppendLiteral("Follow Distance: "); - text3.AppendFormatted(config.HelperFollowDistance, "F0"); - text3.AppendLiteral(" yalms"); - ImGui.TextWrapped(text3); - ImU8String text4 = new ImU8String(17, 1); - text4.AppendLiteral("Check Interval: "); - text4.AppendFormatted(config.HelperFollowCheckInterval); - text4.AppendLiteral("s"); - ImGui.TextWrapped(text4); - } - ImGuiHelpers.ScaledDummy(3f); - ImGui.TextColored(new Vector4(0.8f, 0.8f, 0.8f, 1f), "Note: Helper Following automatically stops when:"); - ImGui.BulletText("Entering restricted zones (Main Cities)"); - ImGui.BulletText("Chauffeur Mode summon is active"); - ImGui.BulletText("Quester leaves party"); - ImGui.BulletText("Quester changes to different zone"); - } - } - }, config.EnableHelperFollowing); - } - - private void DrawSettingsTabFull() - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Plugin Settings"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - using ImRaii.IEndObject child = ImRaii.Child("SettingsScrollArea", new Vector2(0f, 0f), border: false, ImGuiWindowFlags.None); - if (!child.Success) - { - return; - } - Configuration config = plugin.Configuration; - DrawSettingSection("Submarine Management", delegate - { - config.EnableSubmarineCheck = DrawSettingWithInfo("Enable Submarine Monitoring", config.EnableSubmarineCheck, "Automatically monitors submarines and pauses quest rotation when submarines are ready.\nPrevents quest progression while submarines need attention.\nImpact: Rotation will pause when submarines are detected."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.EnableSubmarineCheck) - { - ImGui.Indent(); - int v = config.SubmarineCheckInterval; - if (ImGui.SliderInt("Check Interval (seconds)##Submarine", ref v, 30, 300)) - { - config.SubmarineCheckInterval = v; - config.Save(); - } - DrawInfoIcon("How often to check for submarine status.\nLower values = more frequent checks but higher CPU usage."); - int v2 = config.SubmarineReloginCooldown; - if (ImGui.SliderInt("Cooldown after Relog (seconds)", ref v2, 60, 300)) - { - config.SubmarineReloginCooldown = v2; - config.Save(); - } - DrawInfoIcon("Time to wait after character switch before checking submarines again."); - int v3 = config.SubmarineWaitTime; - if (ImGui.SliderInt("Wait time before submarine (seconds)", ref v3, 10, 120)) - { - config.SubmarineWaitTime = v3; - config.Save(); - } - DrawInfoIcon("Delay before starting submarine operations after detection."); - ImGui.Unindent(); - } - }, config.EnableSubmarineCheck); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("AutoRetainer Post Process Event Quests", delegate - { - config.RunEventQuestsOnARPostProcess = DrawSettingWithInfo("Run Event Quests on AR Post Process", config.RunEventQuestsOnARPostProcess, "AUTO-DETECTION: Automatically detects and runs active Event Quests when AutoRetainer completes a character.\nEvent Quests are detected via Questionable IPC (same as manual Event Quest tab).\nAll prerequisites will be automatically resolved and executed.\nAutoRetainer will wait until all Event Quests are completed before proceeding.\nImpact: Extends AR post-process time but ensures Event Quests are completed."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.RunEventQuestsOnARPostProcess) - { - ImGui.Indent(); - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0.4f, 0.8f, 0.4f, 1f)); - ImGui.TextUnformatted("Auto-Detection Enabled"); - ImGui.PopStyleColor(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextWrapped("Event Quests will be automatically detected from Questionable when AR Post Process starts. No manual configuration needed - just enable this setting and the plugin will handle the rest!"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - int v = config.EventQuestPostProcessTimeoutMinutes; - if (ImGui.SliderInt("Timeout (minutes)", ref v, 10, 60)) - { - config.EventQuestPostProcessTimeoutMinutes = v; - config.Save(); - } - DrawInfoIcon("Maximum time to wait for Event Quests to complete.\nAfter timeout, AR will proceed with next character."); - ImGui.Unindent(); - } - }, config.RunEventQuestsOnARPostProcess); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Movement Monitor", delegate - { - config.EnableMovementMonitor = DrawSettingWithInfo("Enable Movement Monitor", config.EnableMovementMonitor, "Automatically detects if player is stuck and sends /qst reload.\nMonitors player position and detects lack of movement.\nImpact: Quest will auto-reload if stuck for too long."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.EnableMovementMonitor) - { - ImGui.Indent(); - int v = config.MovementCheckInterval; - if (ImGui.SliderInt("Check Interval (seconds)", ref v, 3, 30)) - { - config.MovementCheckInterval = v; - config.Save(); - } - DrawInfoIcon("How often to check player position.\nLower values = faster stuck detection."); - int v2 = config.MovementStuckThreshold; - if (ImGui.SliderInt("Stuck Threshold (seconds)", ref v2, 15, 120)) - { - config.MovementStuckThreshold = v2; - config.Save(); - } - DrawInfoIcon("Time without movement before considering player stuck.\nHigher values = less false positives."); - ImGui.Unindent(); - } - }, config.EnableMovementMonitor); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Combat Handling", delegate - { - config.EnableCombatHandling = DrawSettingWithInfo("Enable Combat Handling", config.EnableCombatHandling, "Automatically enables combat automation when HP drops below threshold.\nActivates RSR/VBMAI/BMRAI during dangerous situations.\nImpact: Combat plugins will auto-enable when HP is low."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.EnableCombatHandling) - { - ImGui.Indent(); - int v = config.CombatHPThreshold; - if (ImGui.SliderInt("HP Threshold (%)", ref v, 1, 99)) - { - config.CombatHPThreshold = v; - config.Save(); - } - DrawInfoIcon("Enable combat automation when HP drops below this percentage.\nCommands: /rsr manual, /vbmai on, /bmrai on"); - ImGui.Unindent(); - } - }, config.EnableCombatHandling); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Death Handling", delegate - { - config.EnableDeathHandling = DrawSettingWithInfo("Enable Death Handling", config.EnableDeathHandling, "Automatically respawns and teleports back to death location.\nSaves position before death and returns after respawn.\nImpact: Deaths will be handled automatically during rotation."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.EnableDeathHandling) - { - ImGui.Indent(); - int v = config.DeathRespawnDelay; - if (ImGui.SliderInt("Teleport Delay (seconds)", ref v, 1, 30)) - { - config.DeathRespawnDelay = v; - config.Save(); - } - DrawInfoIcon("Time to wait after respawn before teleporting back to death location.\nAllows time for loading and stabilization."); - ImGui.Unindent(); - } - }, config.EnableDeathHandling); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Quest Automation", delegate - { - config.EnableQSTReloadTracking = DrawSettingWithInfo("Enable QST Reload Tracking", config.EnableQSTReloadTracking, "Tracks how many times /qst reload is called.\nSwitches character if reload count exceeds threshold.\nImpact: Prevents infinite reload loops by switching characters."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - if (config.EnableQSTReloadTracking) - { - ImGui.Indent(); - int v = config.MaxQSTReloadsBeforeSwitch; - if (ImGui.SliderInt("Max Reloads Before Switch", ref v, 3, 20)) - { - config.MaxQSTReloadsBeforeSwitch = v; - config.Save(); - } - DrawInfoIcon("Maximum number of /qst reload commands before switching to next character.\nPrevents getting stuck on problematic quests."); - ImGui.Unindent(); - } - }, config.EnableQSTReloadTracking); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Character Management", delegate - { - config.EnableMultiModeAfterRotation = DrawSettingWithInfo("Enable Multi-Mode After Rotation", config.EnableMultiModeAfterRotation, "Automatically enables AutoRetainer multi-mode after rotation completes.\nAllows retainer/submarine management after quest rotation.\nImpact: Multi-mode will activate when all quests are done."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - config.ReturnToHomeworldOnStopQuest = DrawSettingWithInfo("Return to Homeworld on Stop Quest", config.ReturnToHomeworldOnStopQuest, "Automatically returns character to home world when rotation stops.\nUses /li command to return home.\nImpact: Characters will be sent home after completing their quests."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - }, config.EnableMultiModeAfterRotation); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Safe Wait Settings", delegate - { - config.EnableSafeWaitBeforeCharacterSwitch = DrawSettingWithInfo("Enable Safe Wait Before Character Switch", config.EnableSafeWaitBeforeCharacterSwitch, "Waits for safe conditions before switching characters.\nChecks for combat, cutscenes, and loading screens.\nImpact: Character switches will be delayed until safe."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - config.EnableSafeWaitAfterCharacterSwitch = DrawSettingWithInfo("Enable Safe Wait After Character Switch", config.EnableSafeWaitAfterCharacterSwitch, "Waits for safe conditions after logging in new character.\nEnsures character is fully loaded before starting quests.\nImpact: Quest start will be delayed until character is ready."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - }, config.EnableSafeWaitBeforeCharacterSwitch); - ImGuiHelpers.ScaledDummy(10f); - DrawSettingSection("Quest Pre-Check", delegate - { - config.EnableQuestPreCheck = DrawSettingWithInfo("Enable Quest Pre-Check", config.EnableQuestPreCheck, "Scans completed quests before starting rotation.\nSkips characters who already completed target quests.\nImpact: Saves time by not processing already-completed quests."); - if (ImGui.IsItemDeactivatedAfterEdit()) - { - config.Save(); - } - }, config.EnableQuestPreCheck); - ImGuiHelpers.ScaledDummy(20f); - } - - private void DrawSettingSection(string title, System.Action drawContent, bool isEnabled = false) - { - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float availWidth = ImGui.GetContentRegionAvail().X; - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - ImGui.ColorConvertFloat4ToU32(new Vector4(0.12f, 0.12f, 0.15f, 0.8f)); - Vector4 borderColor; - if (isEnabled) - { - float pulse = (MathF.Sin((float)ImGui.GetTime() * 2f) + 1f) / 2f; - borderColor = new Vector4(0.47f, 0.69f, 0.88f, 0.5f + pulse * 0.5f); - } - else - { - borderColor = new Vector4(colorPrimary.X * 0.5f, colorPrimary.Y * 0.5f, colorPrimary.Z * 0.5f, 0.6f); - } - uint borderColorU32 = ImGui.ColorConvertFloat4ToU32(borderColor); - Vector2 boxStart = cursorScreenPos; - ImGui.PushStyleColor(ImGuiCol.Header, new Vector4(colorPrimary.X * 0.3f, colorPrimary.Y * 0.3f, colorPrimary.Z * 0.3f, 0.5f)); - ImGui.PushStyleColor(ImGuiCol.HeaderHovered, new Vector4(colorPrimary.X * 0.4f, colorPrimary.Y * 0.4f, colorPrimary.Z * 0.4f, 0.6f)); - ImGui.PushStyleColor(ImGuiCol.HeaderActive, new Vector4(colorPrimary.X * 0.5f, colorPrimary.Y * 0.5f, colorPrimary.Z * 0.5f, 0.7f)); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - bool num = ImGui.CollapsingHeader(title, ImGuiTreeNodeFlags.DefaultOpen); - ImGui.PopStyleColor(4); - if (num) - { - ImGui.Indent(10f); - drawContent(); - ImGui.Unindent(10f); - ImGuiHelpers.ScaledDummy(5f); - } - Vector2 boxEnd = ImGui.GetCursorScreenPos(); - drawList.AddRect(boxStart, boxEnd + new Vector2(availWidth, 0f), borderColorU32, 4f, ImDrawFlags.None, isEnabled ? 2.5f : 1.5f); - } - - private bool DrawSettingWithInfo(string label, bool value, string infoText) - { - ImGui.Checkbox(label, ref value); - ImGui.SameLine(); - DrawInfoIcon(infoText); - return value; - } - - private void DrawInfoIcon(string tooltipText) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("[i]"); - ImGui.PopStyleColor(); - if (ImGui.IsItemHovered()) - { - ImGui.PushStyleColor(ImGuiCol.PopupBg, new Vector4(0.1f, 0.1f, 0.1f, 0.95f)); - ImGui.PushStyleColor(ImGuiCol.Border, colorPrimary); - ImGui.BeginTooltip(); - ImGui.PushTextWrapPos(400f); - ImGui.TextUnformatted(tooltipText); - ImGui.PopTextWrapPos(); - ImGui.EndTooltip(); - ImGui.PopStyleColor(2); - } - } - - private void DrawCharactersTab() - { - object obj = selectedDCFilter switch - { - 0 => "All Characters", - 1 => "EU Characters", - 2 => "NA Characters", - 3 => "JP Characters", - 4 => "OCE Characters", - _ => "Characters", - }; - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted((string?)obj); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - List filteredChars = GetFilteredCharacters(); - if (!initialCharacterLoadComplete) - { - if (characterLoadAttempts < 5) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - double elapsedSeconds = (DateTime.Now - initialLoadStartTime).TotalSeconds; - int nextRetryIn = ((characterLoadAttempts < retryDelaysSeconds.Length) ? (retryDelaysSeconds[characterLoadAttempts] - (int)elapsedSeconds) : 0); - if (nextRetryIn > 0) - { - ImU8String text = new ImU8String(36, 3); - text.AppendLiteral("Loading characters... (Retry "); - text.AppendFormatted(characterLoadAttempts); - text.AppendLiteral("/"); - text.AppendFormatted(5); - text.AppendLiteral(" in "); - text.AppendFormatted(nextRetryIn); - text.AppendLiteral("s)"); - ImGui.TextUnformatted(text); - } - else - { - ImU8String text2 = new ImU8String(33, 2); - text2.AppendLiteral("Loading characters... (Attempt "); - text2.AppendFormatted(characterLoadAttempts + 1); - text2.AppendLiteral("/"); - text2.AppendFormatted(5); - text2.AppendLiteral(")"); - ImGui.TextUnformatted(text2); - } - ImGui.PopStyleColor(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Waiting for AutoRetainer to initialize..."); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - if (ImGui.Button("Retry Now")) - { - characterLoadAttempts = 0; - initialLoadStartTime = DateTime.MinValue; - autoRetainerIpc.TryReinitialize(); - RefreshCharacterList(); - } - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(1f, 0.3f, 0.3f, 1f)); - ImGui.TextUnformatted("AutoRetainer not available"); - ImGui.PopStyleColor(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Please ensure AutoRetainer plugin is installed and enabled."); - ImU8String text3 = new ImU8String(29, 1); - text3.AppendLiteral("Tried "); - text3.AppendFormatted(5); - text3.AppendLiteral(" times without success."); - ImGui.TextUnformatted(text3); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - if (ImGui.Button("Retry Connection")) - { - characterLoadAttempts = 0; - initialLoadStartTime = DateTime.Now; - initialCharacterLoadComplete = false; - autoRetainerIpc.TryReinitialize(); - RefreshCharacterList(); - } - } - return; - } - if (!autoRetainerIpc.IsAvailable) - { - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(1f, 0.8f, 0f, 1f)); - ImGui.TextUnformatted("AutoRetainer connection lost"); - ImGui.PopStyleColor(); - ImGui.TextUnformatted("The connection to AutoRetainer was lost."); - if (ImGui.Button("Reconnect")) - { - autoRetainerIpc.TryReinitialize(); - RefreshCharacterList(); - } - return; - } - if (filteredChars.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("No characters found"); - ImGui.PopStyleColor(); - return; - } - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - if (ImGui.Button("Refresh")) - { - RefreshCharacterList(); - characterProgressCache.Clear(); - } - ImGui.PopStyleColor(2); - ImGui.SameLine(); - if (ImGui.Button("Select All")) - { - foreach (string character in filteredChars) - { - characterSelection[character] = true; - } - configuration.SelectedCharactersForUI = (from kvp in characterSelection - where kvp.Value - select kvp.Key).ToList(); - configuration.Save(); - } - ImGui.SameLine(); - if (ImGui.Button("Deselect All")) - { - foreach (string character2 in filteredChars) - { - characterSelection[character2] = false; - } - configuration.SelectedCharactersForUI = (from kvp in characterSelection - where kvp.Value - select kvp.Key).ToList(); - configuration.Save(); - } - ImGui.SameLine(); - ImGui.SetNextItemWidth(150f); - List currentDCWorlds = GetWorldsForCurrentDatacenter(); - if (ImGui.BeginCombo("##WorldFilter", selectedWorldFilter)) - { - if (ImGui.Selectable("All", selectedWorldFilter == "All")) - { - selectedWorldFilter = "All"; - } - foreach (string world in currentDCWorlds.OrderBy((string w) => w)) - { - if (ImGui.Selectable(world, selectedWorldFilter == world)) - { - selectedWorldFilter = world; - } - } - ImGui.EndCombo(); - } - ImGuiHelpers.ScaledDummy(10f); - float cardWidth = (ImGui.GetContentRegionAvail().X - 20f) / 2f; - using ImRaii.IEndObject child = ImRaii.Child("CharacterCards", new Vector2(0f, 0f), border: false); - if (!child.Success) - { - return; - } - int cardIndex = 0; - foreach (string character3 in filteredChars) - { - string[] parts = character3.Split('@'); - string charName = ((parts.Length != 0) ? parts[0] : character3); - string world2 = ((parts.Length > 1) ? parts[1] : "Unknown"); - if (cardIndex % 2 == 1) - { - ImGui.SameLine(); - } - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - Vector2 cursorPos = ImGui.GetCursorScreenPos(); - float cardHeight = 90f; - Vector4 cardBg = new Vector4(0.15f, 0.15f, 0.18f, 0.9f); - uint borderColor = (characterSelection.GetValueOrDefault(character3, defaultValue: false) ? ImGui.ColorConvertFloat4ToU32(new Vector4(colorPrimary.X, colorPrimary.Y, colorPrimary.Z, 0.8f)) : ImGui.ColorConvertFloat4ToU32(new Vector4(colorPrimary.X * 0.3f, colorPrimary.Y * 0.3f, colorPrimary.Z * 0.3f, 0.5f))); - drawList.AddRectFilled(cursorPos, cursorPos + new Vector2(cardWidth, cardHeight), ImGui.ColorConvertFloat4ToU32(cardBg), 6f); - drawList.AddRect(cursorPos, cursorPos + new Vector2(cardWidth, cardHeight), borderColor, 6f, ImDrawFlags.None, 2f); - ImGui.SetCursorScreenPos(cursorPos + new Vector2(10f, 10f)); - using (ImRaii.PushId(character3)) - { - bool isSelected = characterSelection.GetValueOrDefault(character3, defaultValue: false); - if (ImGui.Checkbox("##Select", ref isSelected)) - { - characterSelection[character3] = isSelected; - configuration.SelectedCharactersForUI = (from kvp in characterSelection - where kvp.Value - select kvp.Key).ToList(); - configuration.Save(); - } - } - ImGui.SetCursorScreenPos(cursorPos + new Vector2(40f, 8f)); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.Text(charName); - ImGui.PopStyleColor(); - ImGui.SetCursorScreenPos(cursorPos + new Vector2(40f, 26f)); - ImGui.PushStyleColor(ImGuiCol.Text, colorAccent); - ImGui.Text(world2); - ImGui.PopStyleColor(); - if (characterProgressCache.TryGetValue(character3, out CharacterProgressInfo progressInfo)) - { - ImGui.SetCursorScreenPos(cursorPos + new Vector2(10f, 50f)); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text4 = new ImU8String(7, 1); - text4.AppendFormatted(progressInfo.CompletedQuestCount); - text4.AppendLiteral(" Quests"); - ImGui.Text(text4); - ImGui.PopStyleColor(); - ImGui.SetCursorScreenPos(cursorPos + new Vector2(10f, 68f)); - float barWidth = cardWidth - 20f; - float progress = progressInfo.MSQCompletionPercentage / 100f; - uint barBg = ImGui.ColorConvertFloat4ToU32(new Vector4(0.2f, 0.2f, 0.2f, 0.8f)); - uint barFg = ImGui.ColorConvertFloat4ToU32(new Vector4(colorSecondary.X, colorSecondary.Y, colorSecondary.Z, 0.9f)); - drawList.AddRectFilled(cursorPos + new Vector2(10f, 68f), cursorPos + new Vector2(10f + barWidth, 82f), barBg, 3f); - drawList.AddRectFilled(cursorPos + new Vector2(10f, 68f), cursorPos + new Vector2(10f + barWidth * progress, 82f), barFg, 3f); - string progressText = $"{progressInfo.MSQCompletionPercentage:F0}%"; - Vector2 textSize = ImGui.CalcTextSize(progressText); - drawList.AddText(cursorPos + new Vector2(10f + barWidth / 2f - textSize.X / 2f, 69f), ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 1f)), progressText); - } - else - { - ImGui.SetCursorScreenPos(cursorPos + new Vector2(10f, 50f)); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.Text("Loading..."); - ImGui.PopStyleColor(); - GetCharacterProgress(character3); - } - ImGui.SetCursorScreenPos(cursorPos); - ImGui.Dummy(new Vector2(cardWidth, cardHeight)); - cardIndex++; - } - } - - private void DrawStopPointsTab() - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Quest Rotation System"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - List selectedCharacters = (from kvp in characterSelection - where kvp.Value - select kvp.Key).ToList(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextWrapped("Rotates your selected Characters depending on the Stop Configurations you have enabled in Questionable. Please Configure a Quest and / or Level for a Rotation to be able to start."); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorPrimary); - if (ImGui.Button("Import from Questionable")) - { - questRotationService.ImportStopPointsFromQuestionable(); - log.Information("[StopPoints] Imported stop points from Questionable"); - } - ImGui.PopStyleColor(2); - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Pull stop quests and sequences from Questionable configuration"); - } - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - if (ImGui.Button("Open Questionable Settings")) - { - Plugin.CommandManager.ProcessCommand("/qst config"); - log.Information("[StopPoints] Opened Questionable settings"); - } - ImGui.PopStyleColor(2); - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Open Questionable plugin settings window"); - } - ImGuiHelpers.ScaledDummy(10f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(10f); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Level Stop Condition:"); - ImGui.PopStyleColor(); - StopConditionData levelStopCondition = plugin.QuestionableIPC.GetLevelStopCondition(); - if (levelStopCondition != null && levelStopCondition.Enabled) - { - ImGui.SetWindowFontScale(1.2f); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text = new ImU8String(15, 1); - text.AppendLiteral("Stop at Level: "); - text.AppendFormatted(levelStopCondition.TargetValue); - ImGui.TextUnformatted(text); - ImGui.PopStyleColor(); - ImGui.SetWindowFontScale(1f); - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0.6f, 0.6f, 0.6f, 1f)); - ImGui.TextUnformatted("Not configured"); - ImGui.PopStyleColor(); - } - ImGuiHelpers.ScaledDummy(10f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(10f); - ImGui.TextUnformatted("Active Stop Points:"); - ImGuiHelpers.ScaledDummy(5f); - List stopPoints = questRotationService.GetAllStopPoints(); - if (stopPoints.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("No stop points configured."); - ImGui.PopStyleColor(); - } - else - { - using ImRaii.IEndObject table = ImRaii.Table("StopPointsTable", 5, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg); - if (table.Success) - { - ImGui.TableSetupColumn("Stop Point", ImGuiTableColumnFlags.WidthFixed, 150f); - ImGui.TableSetupColumn("Status", ImGuiTableColumnFlags.WidthFixed, 80f); - ImGui.TableSetupColumn("Remaining", ImGuiTableColumnFlags.WidthFixed, 100f); - ImGui.TableSetupColumn("Progress", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Actions", ImGuiTableColumnFlags.WidthFixed, 60f); - ImGui.TableHeadersRow(); - for (int i = 0; i < stopPoints.Count; i++) - { - StopPoint stopPoint = stopPoints[i]; - (int completed, int total) rotationProgress = questRotationService.GetRotationProgress(stopPoint.QuestId); - int completed = rotationProgress.completed; - int total = rotationProgress.total; - int num = total - completed; - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(stopPoint.DisplayName); - ImGui.TableNextColumn(); - if (stopPoint.IsActive) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Active"); - ImGui.PopStyleColor(); - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Queued"); - ImGui.PopStyleColor(); - } - ImGui.TableNextColumn(); - Vector4 remainingColor = ((num == 0) ? colorPrimary : colorSecondary); - ImGui.PushStyleColor(ImGuiCol.Text, remainingColor); - ImU8String text2 = new ImU8String(1, 2); - text2.AppendFormatted(completed); - text2.AppendLiteral("/"); - text2.AppendFormatted(total); - ImGui.TextUnformatted(text2); - ImGui.PopStyleColor(); - ImGui.TableNextColumn(); - float progress = ((total > 0) ? ((float)completed / (float)total) : 0f); - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - Vector2 cursorPos = ImGui.GetCursorScreenPos(); - float barWidth = ImGui.GetContentRegionAvail().X; - float barHeight = 20f; - uint barBg = ImGui.ColorConvertFloat4ToU32(new Vector4(0.2f, 0.2f, 0.2f, 0.8f)); - drawList.AddRectFilled(cursorPos, cursorPos + new Vector2(barWidth, barHeight), barBg, 4f); - Vector4 barColor = ((progress >= 0.85f) ? colorPrimary : ((progress >= 0.5f) ? colorSecondary : colorAccent)); - uint barFg = ImGui.ColorConvertFloat4ToU32(new Vector4(barColor.X, barColor.Y, barColor.Z, 0.9f)); - drawList.AddRectFilled(cursorPos, cursorPos + new Vector2(barWidth * progress, barHeight), barFg, 4f); - string progressText = $"{(int)(progress * 100f)}%"; - Vector2 textSize = ImGui.CalcTextSize(progressText); - drawList.AddText(cursorPos + new Vector2(barWidth / 2f - textSize.X / 2f, 2f), ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 1f)), progressText); - ImGui.Dummy(new Vector2(barWidth, barHeight)); - ImGui.TableNextColumn(); - using (ImRaii.PushId(i)) - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - if (ImGui.Button("X")) - { - questRotationService.RemoveStopPoint(stopPoint.QuestId); - log.Information($"[StopPoints] Removed stop quest {stopPoint.QuestId}"); - } - ImGui.PopStyleColor(); - } - } - } - } - ImGuiHelpers.ScaledDummy(15f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(10f); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Current Status:"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - RotationState state = questRotationService.GetCurrentState(); - ImU8String text3 = new ImU8String(7, 0); - text3.AppendLiteral("Phase: "); - ImGui.TextUnformatted(text3); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, state.Phase switch - { - RotationPhase.Idle => colorSecondary, - RotationPhase.Questing => colorPrimary, - RotationPhase.QuestActive => colorPrimary, - RotationPhase.InCombat => new Vector4(1f, 0.5f, 0.2f, 1f), - RotationPhase.InDungeon => new Vector4(0.8f, 0.4f, 1f, 1f), - RotationPhase.HandlingSubmarines => new Vector4(0.2f, 0.8f, 1f, 1f), - RotationPhase.WaitingForChauffeur => new Vector4(1f, 1f, 0.4f, 1f), - RotationPhase.TravellingWithChauffeur => new Vector4(0.4f, 1f, 0.4f, 1f), - RotationPhase.DCTraveling => new Vector4(0.5f, 0.5f, 1f, 1f), - RotationPhase.Completed => colorPrimary, - RotationPhase.Error => colorAccent, - _ => colorSecondary, - }); - ImGui.TextUnformatted(state.Phase.ToString()); - ImGui.PopStyleColor(); - if (!string.IsNullOrEmpty(state.CurrentCharacter)) - { - ImU8String text4 = new ImU8String(11, 0); - text4.AppendLiteral("Logged In: "); - ImGui.TextUnformatted(text4); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted(state.CurrentCharacter); - ImGui.PopStyleColor(); - } - if (state.CurrentStopQuestId != 0) - { - ImU8String text5 = new ImU8String(14, 0); - text5.AppendLiteral("Target Quest: "); - ImGui.TextUnformatted(text5); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted(state.CurrentStopQuestId.ToString()); - ImGui.PopStyleColor(); - } - if (!string.IsNullOrEmpty(state.NextCharacter)) - { - ImU8String text6 = new ImU8String(16, 0); - text6.AppendLiteral("Next Character: "); - ImGui.TextUnformatted(text6); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted(state.NextCharacter); - ImGui.PopStyleColor(); - } - if (state.RemainingCharacters.Count > 0) - { - ImU8String text7 = new ImU8String(11, 1); - text7.AppendLiteral("Remaining: "); - text7.AppendFormatted(string.Join(", ", state.RemainingCharacters)); - ImGui.TextUnformatted(text7); - } - if (state.Phase == RotationPhase.Error && !string.IsNullOrEmpty(state.ErrorMessage)) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorAccent); - ImU8String text8 = new ImU8String(7, 1); - text8.AppendLiteral("Error: "); - text8.AppendFormatted(state.ErrorMessage); - ImGui.TextUnformatted(text8); - ImGui.PopStyleColor(); - } - if (state.SelectedCharacters.Count > 0) - { - ImGuiHelpers.ScaledDummy(5f); - float fraction = (float)state.CompletedCharacters.Count / (float)state.SelectedCharacters.Count; - Vector2 sizeArg = new Vector2(-1f, 0f); - ImU8String overlay = new ImU8String(11, 2); - overlay.AppendFormatted(state.CompletedCharacters.Count); - overlay.AppendLiteral("/"); - overlay.AppendFormatted(state.SelectedCharacters.Count); - overlay.AppendLiteral(" completed"); - ImGui.ProgressBar(fraction, sizeArg, overlay); - } - ImGuiHelpers.ScaledDummy(10f); - if (selectedCharacters.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Select characters in the Characters tab to start rotation"); - ImGui.PopStyleColor(); - } - else if (stopPoints.Count == 0 && (levelStopCondition == null || !levelStopCondition.Enabled)) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Configure a Quest or Level stop condition above to start rotation"); - ImGui.PopStyleColor(); - } - else if (state.Phase == RotationPhase.Idle || state.Phase == RotationPhase.Completed || state.Phase == RotationPhase.Error) - { - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - if (ImGui.Button("Start Rotation", new Vector2(200f, 30f))) - { - log.Information("[StopPoints] Start Rotation button clicked!"); - log.Information($"[StopPoints] Selected characters: {selectedCharacters.Count}"); - log.Information($"[StopPoints] Stop points: {stopPoints.Count}"); - if (stopPoints.Count > 0) - { - foreach (StopPoint item in stopPoints) - { - item.IsActive = false; - } - bool foundValidStopPoint = false; - for (int i2 = 0; i2 < stopPoints.Count; i2++) - { - StopPoint stopPoint2 = stopPoints[i2]; - var (completed2, total2) = questRotationService.GetRotationProgress(stopPoint2.QuestId, selectedCharacters); - if (completed2 < total2) - { - log.Information("[StopPoints] Starting rotation with: " + stopPoint2.DisplayName); - log.Information($"[StopPoints] Progress: {completed2}/{total2} completed"); - log.Information($"[StopPoints] Total stop points in queue: {stopPoints.Count - i2}"); - for (int j = i2; j < stopPoints.Count; j++) - { - stopPoints[j].IsActive = j == i2; - } - if (questRotationService.StartRotation(stopPoint2.QuestId, selectedCharacters)) - { - log.Information("[StopPoints] Rotation started successfully!"); - foundValidStopPoint = true; - } - else - { - log.Error("[StopPoints] Failed to start rotation"); - } - break; - } - log.Information($"[StopPoints] Skipping {stopPoint2.DisplayName} - all characters completed ({completed2}/{total2})"); - } - if (!foundValidStopPoint) - { - log.Warning("[StopPoints] All stop points already completed by all characters!"); - } - } - else if (levelStopCondition != null && levelStopCondition.Enabled) - { - log.Information($"[StopPoints] Starting level-only rotation (target level: {levelStopCondition.TargetValue})"); - if (questRotationService.StartRotationLevelOnly(selectedCharacters)) - { - log.Information("[StopPoints] Level-only rotation started successfully!"); - } - else - { - log.Error("[StopPoints] Failed to start level-only rotation"); - } - } - else - { - log.Warning("[StopPoints] No stop points or level condition configured!"); - } - } - ImGui.PopStyleColor(2); - } - else - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - if (ImGui.Button("Stop Rotation", new Vector2(200f, 30f))) - { - questRotationService.AbortRotation(); - log.Information("[StopPoints] Stopped rotation"); - } - ImGui.PopStyleColor(); - } - } - - private void DrawMSQProgressionTab() - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImGui.TextUnformatted("Main Scenario Quest Progression"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - List filteredChars = GetFilteredCharacters(); - Configuration config = plugin.Configuration; - if (filteredChars.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("No characters to display"); - ImGui.PopStyleColor(); - return; - } - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - if (ImGui.Button("Refresh Progress")) - { - characterProgressCache.Clear(); - log.Information("[MSQProgression] Manual progress refresh requested"); - } - ImGui.PopStyleColor(2); - ImGui.SameLine(); - RotationState state = questRotationService.GetCurrentState(); - if (state.Phase == RotationPhase.Idle || state.Phase == RotationPhase.Completed || state.Phase == RotationPhase.Error || state.CurrentStopQuestId != 0) - { - ImGui.PushStyleColor(ImGuiCol.Button, colorSecondary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorPrimary); - if (ImGui.Button("First Time Sync")) - { - log.Information("[MSQProgression] First Time Sync requested"); - if (questRotationService.StartSyncRotation(filteredChars)) - { - log.Information("[MSQProgression] Sync rotation started - will go through all characters without data"); - } - else - { - log.Information("[MSQProgression] No characters need sync or failed to start"); - } - } - ImGui.PopStyleColor(2); - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Automatically sync MSQ data for all characters without existing data"); - } - } - else - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorPrimary); - if (ImGui.Button("Stop Syncing")) - { - log.Information("[MSQProgression] Stop Syncing requested"); - questRotationService.AbortRotation(); - characterProgressCache.Clear(); - } - ImGui.PopStyleColor(2); - if (ImGui.IsItemHovered()) - { - ImGui.SetTooltip("Stop the sync rotation"); - } - } - ImGui.SameLine(); - ImGui.TextUnformatted("Display Mode:"); - ImGui.SameLine(); - int displayMode = (int)config.MSQDisplayMode; - ImGui.SetNextItemWidth(200f); - if (ImGui.Combo("##MSQDisplayMode", ref displayMode, "Current Expansion\0Overall Progress\0Expansion Breakdown\0")) - { - config.MSQDisplayMode = (MSQDisplayMode)displayMode; - config.Save(); - } - ImGuiHelpers.ScaledDummy(10f); - switch (config.MSQDisplayMode) - { - case MSQDisplayMode.CurrentExpansion: - DrawMSQCurrentExpansion(filteredChars); - break; - case MSQDisplayMode.Overall: - DrawMSQOverall(filteredChars); - break; - case MSQDisplayMode.ExpansionBreakdown: - DrawMSQExpansionBreakdown(filteredChars); - break; - } - } - - private void DrawMSQCurrentExpansion(List characters) - { - using ImRaii.IEndObject table = ImRaii.Table("MSQCurrentExpTable", 4, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY); - if (!table.Success) - { - return; - } - ImGui.TableSetupColumn("Character", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Current Expansion", ImGuiTableColumnFlags.WidthFixed, 150f); - ImGui.TableSetupColumn("Progress", ImGuiTableColumnFlags.WidthFixed, 100f); - ImGui.TableSetupColumn("Completion", ImGuiTableColumnFlags.WidthFixed, 120f); - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableHeadersRow(); - foreach (string character in characters) - { - if (!characterProgressCache.TryGetValue(character, out CharacterProgressInfo _)) - { - GetCharacterProgress(character); - continue; - } - List completedQuestsList = questRotationService.GetCompletedQuestsByCharacter(character); - MSQExpansionData.Expansion currentExpansion = MSQExpansionData.GetCurrentExpansion(completedQuestsList); - ExpansionInfo currentExp = new ExpansionInfo - { - Name = MSQExpansionData.GetExpansionName(currentExpansion), - ShortName = MSQExpansionData.GetExpansionShortName(currentExpansion), - MinQuestId = 0u, - MaxQuestId = 0u, - ExpectedQuestCount = MSQExpansionData.GetExpectedQuestCount(currentExpansion) - }; - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - string[] parts = character.Split('@'); - ImGui.TextUnformatted((parts.Length != 0) ? parts[0] : character); - ImGui.TableNextColumn(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted(currentExp?.Name ?? "A Realm Reborn"); - ImGui.PopStyleColor(); - ImGui.TableNextColumn(); - if (currentExp != null) - { - (int completed, int total) valueOrDefault = msqProgressionService.GetExpansionProgressForCharacter(completedQuestsList).GetValueOrDefault(currentExp.ShortName, (0, 0)); - int completed = valueOrDefault.completed; - int total = valueOrDefault.total; - ImU8String text = new ImU8String(1, 2); - text.AppendFormatted(completed); - text.AppendLiteral("/"); - text.AppendFormatted(total); - ImGui.TextUnformatted(text); - } - else - { - ImGui.TextUnformatted("0/0"); - } - ImGui.TableNextColumn(); - if (currentExp != null) - { - (int completed, int total) valueOrDefault2 = msqProgressionService.GetExpansionProgressForCharacter(completedQuestsList).GetValueOrDefault(currentExp.ShortName, (0, 0)); - int completed2 = valueOrDefault2.completed; - int total2 = valueOrDefault2.total; - float percentage = ((total2 > 0) ? ((float)completed2 / (float)total2) : 0f); - Vector2 sizeArg = new Vector2(-1f, 0f); - ImU8String overlay = new ImU8String(1, 1); - overlay.AppendFormatted((int)(percentage * 100f)); - overlay.AppendLiteral("%"); - ImGui.ProgressBar(percentage, sizeArg, overlay); - } - else - { - ImGui.ProgressBar(0f, new Vector2(-1f, 0f), "0%"); - } - } - } - - private void DrawMSQOverall(List characters) - { - using ImRaii.IEndObject table = ImRaii.Table("MSQOverallTable", 5, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY); - if (!table.Success) - { - return; - } - ImGui.TableSetupColumn("Character", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("MSQ Progress", ImGuiTableColumnFlags.WidthFixed, 120f); - ImGui.TableSetupColumn("Current MSQ", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Completion %", ImGuiTableColumnFlags.WidthFixed, 100f); - ImGui.TableSetupColumn("Actions", ImGuiTableColumnFlags.WidthFixed, 70f); - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableHeadersRow(); - for (int charIndex = 0; charIndex < characters.Count; charIndex++) - { - string character = characters[charIndex]; - if (!characterProgressCache.TryGetValue(character, out CharacterProgressInfo progressInfo)) - { - GetCharacterProgress(character); - continue; - } - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - string[] parts = character.Split('@'); - ImGui.TextUnformatted((parts.Length != 0) ? parts[0] : character); - ImGui.TableNextColumn(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text = new ImU8String(3, 2); - text.AppendFormatted(progressInfo.CompletedMSQCount); - text.AppendLiteral(" / "); - text.AppendFormatted(msqProgressionService.GetTotalMSQCount()); - ImGui.TextUnformatted(text); - ImGui.PopStyleColor(); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(progressInfo.LastCompletedMSQName); - ImGui.TableNextColumn(); - float percentage = progressInfo.MSQCompletionPercentage; - float fraction = percentage / 100f; - Vector2 sizeArg = new Vector2(-1f, 0f); - ImU8String overlay = new ImU8String(1, 1); - overlay.AppendFormatted(percentage, "F1"); - overlay.AppendLiteral("%"); - ImGui.ProgressBar(fraction, sizeArg, overlay); - ImGui.TableNextColumn(); - using (ImRaii.PushId(charIndex)) - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, new Vector4(colorAccent.X * 1.2f, colorAccent.Y * 1.2f, colorAccent.Z * 1.2f, 1f)); - if (ImGui.Button("Reset")) - { - questRotationService.ClearCharacterQuestData(character); - characterProgressCache.Remove(character); - log.Information("[MSQProgression] Reset quest data for " + character); - } - ImGui.PopStyleColor(2); - if (ImGui.IsItemHovered()) - { - ImU8String tooltip = new ImU8String(85, 1); - tooltip.AppendLiteral("Reset all quest completion data for "); - tooltip.AppendFormatted(character); - tooltip.AppendLiteral(".\nUse this if data was corrupted during rotation."); - ImGui.SetTooltip(tooltip); - } - } - } - } - - private void DrawMSQExpansionBreakdown(List characters) - { - List expansions = msqProgressionService.GetExpansions(); - foreach (string character in characters) - { - string[] parts = character.Split('@'); - string obj = ((parts.Length != 0) ? parts[0] : character); - string worldName = ((parts.Length > 1) ? parts[1] : "Unknown"); - string displayName = obj + " @ " + worldName; - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImU8String label = new ImU8String(15, 2); - label.AppendFormatted(displayName); - label.AppendLiteral("##MSQBreakdown_"); - label.AppendFormatted(character); - if (ImGui.CollapsingHeader(label)) - { - ImGui.PopStyleColor(); - ImGui.Indent(15f); - List completedQuests = questRotationService.GetCompletedQuestsByCharacter(character); - int currentExpansionIndex = (int)MSQExpansionData.GetCurrentExpansion(completedQuests); - Dictionary expProgress = msqProgressionService.GetExpansionProgressForCharacter(completedQuests); - int totalCompleted = 0; - int totalQuests = 0; - foreach (ExpansionInfo exp in expansions) - { - var (completed, total) = expProgress.GetValueOrDefault(exp.ShortName, (0, 0)); - if ((int)MSQExpansionData.GetAllExpansions().FirstOrDefault((MSQExpansionData.Expansion e) => MSQExpansionData.GetExpansionShortName(e) == exp.ShortName) < currentExpansionIndex) - { - completed = total; - } - totalCompleted += completed; - totalQuests += total; - } - ImU8String text = new ImU8String(13, 0); - text.AppendLiteral("Overall MSQ: "); - ImGui.TextUnformatted(text); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text2 = new ImU8String(1, 2); - text2.AppendFormatted(totalCompleted); - text2.AppendLiteral("/"); - text2.AppendFormatted(totalQuests); - ImGui.TextUnformatted(text2); - ImGui.PopStyleColor(); - float overallPercentage = ((totalQuests > 0) ? ((float)totalCompleted / (float)totalQuests) : 0f); - Vector2 sizeArg = new Vector2(-1f, 0f); - ImU8String overlay = new ImU8String(1, 1); - overlay.AppendFormatted((int)(overallPercentage * 100f)); - overlay.AppendLiteral("%"); - ImGui.ProgressBar(overallPercentage, sizeArg, overlay); - ImGuiHelpers.ScaledDummy(10f); - ImGui.TextUnformatted("Expansion Breakdown:"); - ImGuiHelpers.ScaledDummy(5f); - foreach (ExpansionInfo exp2 in expansions) - { - var (completed2, total2) = expProgress.GetValueOrDefault(exp2.ShortName, (0, 0)); - if ((int)MSQExpansionData.GetAllExpansions().FirstOrDefault((MSQExpansionData.Expansion e) => MSQExpansionData.GetExpansionShortName(e) == exp2.ShortName) < currentExpansionIndex) - { - completed2 = total2; - } - float percentage = ((total2 > 0) ? ((float)completed2 / (float)total2) : 0f); - bool num = completed2 == total2 && total2 > 0; - ImU8String text3 = new ImU8String(6, 2); - text3.AppendLiteral(" "); - text3.AppendFormatted(exp2.Name); - text3.AppendLiteral(" ("); - text3.AppendFormatted(exp2.ShortName); - text3.AppendLiteral("):"); - ImGui.TextUnformatted(text3); - ImGui.SameLine(); - if (num) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - ImU8String text4 = new ImU8String(10, 2); - text4.AppendFormatted(completed2); - text4.AppendLiteral("/"); - text4.AppendFormatted(total2); - text4.AppendLiteral(" Complete"); - ImGui.TextUnformatted(text4); - ImGui.PopStyleColor(); - } - else if (completed2 == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorAccent); - ImU8String text5 = new ImU8String(13, 2); - text5.AppendFormatted(completed2); - text5.AppendLiteral("/"); - text5.AppendFormatted(total2); - text5.AppendLiteral(" Not Started"); - ImGui.TextUnformatted(text5); - ImGui.PopStyleColor(); - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text6 = new ImU8String(1, 2); - text6.AppendFormatted(completed2); - text6.AppendLiteral("/"); - text6.AppendFormatted(total2); - ImGui.TextUnformatted(text6); - ImGui.PopStyleColor(); - } - ImGui.Indent(20f); - Vector2 sizeArg2 = new Vector2(-1f, 0f); - ImU8String overlay2 = new ImU8String(1, 1); - overlay2.AppendFormatted((int)(percentage * 100f)); - overlay2.AppendLiteral("%"); - ImGui.ProgressBar(percentage, sizeArg2, overlay2); - ImGui.Unindent(20f); - } - ImGui.Unindent(15f); - } - else - { - ImGui.PopStyleColor(); - } - ImGuiHelpers.ScaledDummy(5f); - } - } - - private void DrawSettingsTab() - { - DrawSettingsTabFull(); - } - - private List GetWorldsForCurrentDatacenter() - { - if (selectedDCFilter == 0) - { - return availableWorlds; - } - string dcName = selectedDCFilter switch - { - 1 => "EU", - 2 => "NA", - 3 => "JP", - 4 => "OCE", - _ => "All", - }; - List charactersForDataCenter = dataCenterService.GetCharactersForDataCenter(registeredCharacters, dcName, charactersByDataCenter); - HashSet worlds = new HashSet(); - foreach (string item in charactersForDataCenter) - { - string[] parts = item.Split('@'); - if (parts.Length > 1) - { - worlds.Add(parts[1]); - } - } - return worlds.ToList(); - } - - private List GetFilteredCharacters() - { - List dcFiltered; - if (selectedDCFilter == 0) - { - dcFiltered = registeredCharacters; - } - else - { - string dcName = selectedDCFilter switch - { - 1 => "EU", - 2 => "NA", - 3 => "JP", - 4 => "OCE", - _ => "All", - }; - dcFiltered = dataCenterService.GetCharactersForDataCenter(registeredCharacters, dcName, charactersByDataCenter); - } - if (selectedWorldFilter != "All") - { - return dcFiltered.Where((string c) => c.EndsWith("@" + selectedWorldFilter)).ToList(); - } - return dcFiltered; - } - - private CharacterProgressInfo GetCharacterProgress(string characterName) - { - if (characterProgressCache.TryGetValue(characterName, out CharacterProgressInfo cached) && (DateTime.Now - cached.LastUpdatedUtc).TotalSeconds < 300.0) - { - return cached; - } - string[] parts = characterName.Split('@'); - string world = ((parts.Length > 1) ? parts[1] : "Unknown"); - List completedQuests = questRotationService.GetCompletedQuestsByCharacter(characterName); - uint lastQuestId = 0u; - string lastQuestName = "—"; - if (completedQuests.Count > 0) - { - lastQuestId = completedQuests.Max(); - lastQuestName = msqProgressionService.GetQuestName(lastQuestId); - if (lastQuestName == "Unknown Quest") - { - lastQuestName = $"Quest {lastQuestId}"; - } - } - List completedMSQs = completedQuests.Where((uint q) => msqProgressionService.IsMSQ(q)).ToList(); - uint lastMSQId = 0u; - string lastMSQName = "—"; - MSQExpansionData.Expansion currentExpansion = MSQExpansionData.GetCurrentExpansion(completedQuests); - string currentExpansionName = MSQExpansionData.GetExpansionName(currentExpansion); - List completedMSQsInCurrentExpansion = completedMSQs.Where((uint q) => MSQExpansionData.GetExpansionForQuest(q) == currentExpansion).ToList(); - if (completedMSQsInCurrentExpansion.Count > 0) - { - lastMSQId = completedMSQsInCurrentExpansion.Max(); - lastMSQName = msqProgressionService.GetQuestName(lastMSQId); - if (lastMSQName == "Unknown Quest") - { - lastMSQName = $"Quest {lastMSQId}"; - } - lastMSQName = "[" + currentExpansionName + "] " + lastMSQName; - } - else if (completedMSQs.Count > 0) - { - lastMSQId = completedMSQs.Max(); - lastMSQName = msqProgressionService.GetQuestName(lastMSQId); - if (lastMSQName == "Unknown Quest") - { - lastMSQName = $"Quest {lastMSQId}"; - } - } - int totalMSQCount = msqProgressionService.GetTotalMSQCount(); - float msqPercentage = ((totalMSQCount > 0) ? ((float)completedMSQs.Count / (float)totalMSQCount * 100f) : 0f); - CharacterProgressInfo progressInfo = new CharacterProgressInfo - { - World = world, - CompletedQuestCount = completedQuests.Count, - LastQuestId = lastQuestId, - LastQuestName = lastQuestName, - LastCompletedMSQId = lastMSQId, - LastCompletedMSQName = lastMSQName, - CompletedMSQCount = completedMSQs.Count, - MSQCompletionPercentage = msqPercentage, - LastUpdatedUtc = DateTime.UtcNow - }; - characterProgressCache[characterName] = progressInfo; - return progressInfo; - } - - public void DrawWorldSelectionDialogs() - { - if (showSelectWorldDialog) - { - ImGui.OpenPopup("Select World##SelectWorldDialog"); - } - if (ImGui.BeginPopupModal("Select World##SelectWorldDialog", ref showSelectWorldDialog, ImGuiWindowFlags.AlwaysAutoResize)) - { - ImGui.TextUnformatted("Select a world to check all characters:"); - ImGuiHelpers.ScaledDummy(10f); - ImGui.SetNextItemWidth(200f); - if (ImGui.BeginCombo("##WorldSelect", selectedWorldForBulkAction)) - { - foreach (string world in availableWorlds) - { - bool isSelected = selectedWorldForBulkAction == world; - if (ImGui.Selectable(world, isSelected)) - { - selectedWorldForBulkAction = world; - } - if (isSelected) - { - ImGui.SetItemDefaultFocus(); - } - } - ImGui.EndCombo(); - } - ImGuiHelpers.ScaledDummy(10f); - if (ImGui.Button("Cancel", new Vector2(100f, 0f))) - { - showSelectWorldDialog = false; - } - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - if (ImGui.Button("Select", new Vector2(100f, 0f))) - { - foreach (string character in registeredCharacters) - { - if (character.EndsWith("@" + selectedWorldForBulkAction)) - { - characterSelection[character] = true; - } - } - showSelectWorldDialog = false; - log.Information("[NewMainWindow] Selected all characters from " + selectedWorldForBulkAction); - } - ImGui.PopStyleColor(); - ImGui.EndPopup(); - } - if (showDeselectWorldDialog) - { - ImGui.OpenPopup("Deselect World##DeselectWorldDialog"); - } - if (!ImGui.BeginPopupModal("Deselect World##DeselectWorldDialog", ref showDeselectWorldDialog, ImGuiWindowFlags.AlwaysAutoResize)) - { - return; - } - ImGui.TextUnformatted("Select a world to uncheck all characters:"); - ImGuiHelpers.ScaledDummy(10f); - ImGui.SetNextItemWidth(200f); - if (ImGui.BeginCombo("##WorldDeselect", selectedWorldForBulkAction)) - { - foreach (string world2 in availableWorlds) - { - bool isSelected2 = selectedWorldForBulkAction == world2; - if (ImGui.Selectable(world2, isSelected2)) - { - selectedWorldForBulkAction = world2; - } - if (isSelected2) - { - ImGui.SetItemDefaultFocus(); - } - } - ImGui.EndCombo(); - } - ImGuiHelpers.ScaledDummy(10f); - if (ImGui.Button("Cancel", new Vector2(100f, 0f))) - { - showDeselectWorldDialog = false; - } - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - if (ImGui.Button("Deselect", new Vector2(100f, 0f))) - { - foreach (string character2 in registeredCharacters) - { - if (character2.EndsWith("@" + selectedWorldForBulkAction)) - { - characterSelection[character2] = false; - } - } - showDeselectWorldDialog = false; - log.Information("[NewMainWindow] Deselected all characters from " + selectedWorldForBulkAction); - } - ImGui.PopStyleColor(); - ImGui.EndPopup(); - } - - private void DrawEventQuestTab() - { - Vector4 eventQuestColor = new Vector4(0.949f, 0.769f, 0.388f, 1f); - Vector4 eventQuestAccent = new Vector4(1f, 0.6f, 0.2f, 1f); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImGui.TextUnformatted("Event Quest System"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - List selectedCharacters = (from keyValuePair in characterSelection - where keyValuePair.Value - select keyValuePair.Key).ToList(); - if ((DateTime.Now - lastEventQuestRefresh).TotalSeconds > 5.0 || availableEventQuests.Count == 0) - { - List currentlyActiveEventQuests = plugin.QuestionableIPC.GetCurrentlyActiveEventQuests(); - EventQuestResolver resolver = new EventQuestResolver(dataManager, log); - availableEventQuests.Clear(); - foreach (string questId in currentlyActiveEventQuests) - { - log.Information($"[EventQuest] Questionable returned quest ID: '{questId}' (Length: {questId.Length})"); - string questName = resolver.GetQuestName(questId); - availableEventQuests.Add((questId, questName)); - } - lastEventQuestRefresh = DateTime.Now; - log.Debug($"[EventQuest] Loaded {availableEventQuests.Count} active event quests from Questionable"); - } - ImGui.TextUnformatted("Active Event Quests:"); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Select an active Event Quest. Prerequisites will be automatically resolved."); - ImU8String text = new ImU8String(54, 1); - text.AppendLiteral("Currently "); - text.AppendFormatted(availableEventQuests.Count); - text.AppendLiteral(" event quest(s) available from Questionable."); - ImGui.TextUnformatted(text); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.TextUnformatted("Event Quest:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(400f); - string currentQuestDisplay = (string.IsNullOrEmpty(selectedEventQuestId) ? "Select Event Quest..." : (availableEventQuests.FirstOrDefault<(string, string)>(((string QuestId, string QuestName) q) => q.QuestId == selectedEventQuestId).Item2 ?? selectedEventQuestId)); - if (ImGui.BeginCombo("##EventQuestCombo", currentQuestDisplay)) - { - foreach (var availableEventQuest in availableEventQuests) - { - string questId2 = availableEventQuest.QuestId; - string questName2 = availableEventQuest.QuestName; - bool isSelected = selectedEventQuestId == questId2; - ImU8String label = new ImU8String(3, 2); - label.AppendFormatted(questName2); - label.AppendLiteral(" ("); - label.AppendFormatted(questId2); - label.AppendLiteral(")"); - if (ImGui.Selectable(label, isSelected)) - { - selectedEventQuestId = questId2; - EventQuestResolver resolver2 = new EventQuestResolver(dataManager, log); - resolvedPrerequisites = resolver2.ResolveEventQuestDependencies(questId2); - log.Information($"[EventQuest] Selected quest {questId2}, resolved {resolvedPrerequisites.Count} prerequisites"); - } - if (isSelected) - { - ImGui.SetItemDefaultFocus(); - } - } - ImGui.EndCombo(); - } - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Button, eventQuestColor); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, eventQuestAccent); - if (ImGui.Button("Refresh from Questionable")) - { - List currentlyActiveEventQuests2 = plugin.QuestionableIPC.GetCurrentlyActiveEventQuests(); - EventQuestResolver resolver3 = new EventQuestResolver(dataManager, log); - availableEventQuests.Clear(); - foreach (string questId3 in currentlyActiveEventQuests2) - { - string questName3 = resolver3.GetQuestName(questId3); - availableEventQuests.Add((questId3, questName3)); - } - lastEventQuestRefresh = DateTime.Now; - log.Information($"[EventQuest] Refreshed event quest list from Questionable: {availableEventQuests.Count} quests found"); - } - ImGui.PopStyleColor(2); - ImGuiHelpers.ScaledDummy(10f); - if (!string.IsNullOrEmpty(selectedEventQuestId)) - { - string questName4 = availableEventQuests.FirstOrDefault<(string, string)>(((string QuestId, string QuestName) q) => q.QuestId == selectedEventQuestId).Item2 ?? "Unknown"; - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImU8String text2 = new ImU8String(16, 1); - text2.AppendLiteral("Selected Quest: "); - text2.AppendFormatted(questName4); - ImGui.TextUnformatted(text2); - ImGui.PopStyleColor(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text3 = new ImU8String(10, 1); - text3.AppendLiteral("Quest ID: "); - text3.AppendFormatted(selectedEventQuestId); - ImGui.TextUnformatted(text3); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - } - if (!string.IsNullOrEmpty(selectedEventQuestId) && resolvedPrerequisites.Count > 0) - { - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestAccent); - ImU8String text4 = new ImU8String(17, 1); - text4.AppendLiteral("Prerequisites ("); - text4.AppendFormatted(resolvedPrerequisites.Count); - text4.AppendLiteral("):"); - ImGui.TextUnformatted(text4); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(3f); - EventQuestResolver resolver4 = new EventQuestResolver(dataManager, log); - using (ImRaii.IEndObject table = ImRaii.Table("PrerequisitesTable", 2, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg)) - { - if (table.Success) - { - ImGui.TableSetupColumn("Quest Name", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupColumn("Quest ID", ImGuiTableColumnFlags.WidthFixed, 80f); - ImGui.TableHeadersRow(); - foreach (string prereqId in resolvedPrerequisites) - { - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(resolver4.GetQuestName(prereqId)); - ImGui.TableNextColumn(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted(prereqId); - ImGui.PopStyleColor(); - } - } - } - ImGuiHelpers.ScaledDummy(5f); - } - ImGuiHelpers.ScaledDummy(10f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(10f); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImGui.TextUnformatted("Current Status:"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - EventQuestState state = eventQuestService.GetCurrentState(); - ImU8String text5 = new ImU8String(7, 0); - text5.AppendLiteral("Phase: "); - ImGui.TextUnformatted(text5); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, state.Phase switch - { - EventQuestPhase.Idle => colorSecondary, - EventQuestPhase.QuestActive => eventQuestColor, - EventQuestPhase.Completed => colorPrimary, - EventQuestPhase.Error => colorAccent, - _ => colorSecondary, - }); - ImGui.TextUnformatted(state.Phase.ToString()); - ImGui.PopStyleColor(); - if (!string.IsNullOrEmpty(state.CurrentCharacter)) - { - ImU8String text6 = new ImU8String(19, 0); - text6.AppendLiteral("Current Character: "); - ImGui.TextUnformatted(text6); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImGui.TextUnformatted(state.CurrentCharacter); - ImGui.PopStyleColor(); - } - if (!string.IsNullOrEmpty(state.EventQuestName)) - { - ImU8String text7 = new ImU8String(13, 0); - text7.AppendLiteral("Event Quest: "); - ImGui.TextUnformatted(text7); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImU8String text8 = new ImU8String(3, 2); - text8.AppendFormatted(state.EventQuestName); - text8.AppendLiteral(" ("); - text8.AppendFormatted(state.EventQuestId); - text8.AppendLiteral(")"); - ImGui.TextUnformatted(text8); - ImGui.PopStyleColor(); - } - if (state.DependencyQuests.Count > 0) - { - ImU8String text9 = new ImU8String(15, 2); - text9.AppendLiteral("Dependencies: "); - text9.AppendFormatted(state.DependencyIndex + 1); - text9.AppendLiteral("/"); - text9.AppendFormatted(state.DependencyQuests.Count); - ImGui.TextUnformatted(text9); - } - if (!string.IsNullOrEmpty(state.NextCharacter)) - { - ImU8String text10 = new ImU8String(16, 0); - text10.AppendLiteral("Next Character: "); - ImGui.TextUnformatted(text10); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted(state.NextCharacter); - ImGui.PopStyleColor(); - } - if (state.Phase == EventQuestPhase.Error && !string.IsNullOrEmpty(state.ErrorMessage)) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorAccent); - ImU8String text11 = new ImU8String(7, 1); - text11.AppendLiteral("Error: "); - text11.AppendFormatted(state.ErrorMessage); - ImGui.TextUnformatted(text11); - ImGui.PopStyleColor(); - } - if (state.SelectedCharacters.Count > 0) - { - ImGuiHelpers.ScaledDummy(5f); - float progress = (float)state.CompletedCharacters.Count / (float)state.SelectedCharacters.Count; - ImDrawListPtr drawList = ImGui.GetWindowDrawList(); - Vector2 cursorPos = ImGui.GetCursorScreenPos(); - float barWidth = ImGui.GetContentRegionAvail().X; - float barHeight = 25f; - uint barBg = ImGui.ColorConvertFloat4ToU32(new Vector4(0.2f, 0.2f, 0.2f, 0.8f)); - drawList.AddRectFilled(cursorPos, cursorPos + new Vector2(barWidth, barHeight), barBg, 4f); - uint barFg = ImGui.ColorConvertFloat4ToU32(new Vector4(eventQuestColor.X, eventQuestColor.Y, eventQuestColor.Z, 0.9f)); - drawList.AddRectFilled(cursorPos, cursorPos + new Vector2(barWidth * progress, barHeight), barFg, 4f); - string progressText = $"{state.CompletedCharacters.Count}/{state.SelectedCharacters.Count} completed"; - Vector2 textSize = ImGui.CalcTextSize(progressText); - drawList.AddText(cursorPos + new Vector2(barWidth / 2f - textSize.X / 2f, 4f), ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 1f)), progressText); - ImGui.Dummy(new Vector2(barWidth, barHeight)); - } - ImGuiHelpers.ScaledDummy(10f); - if (state.SelectedCharacters.Count > 0) - { - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(5f); - ImGui.PushStyleColor(ImGuiCol.Button, (eventQuestViewMode == 0) ? eventQuestColor : colorDarkBg); - ImU8String label2 = new ImU8String(12, 1); - label2.AppendLiteral("Remaining ("); - label2.AppendFormatted(state.RemainingCharacters.Count); - label2.AppendLiteral(")"); - if (ImGui.Button(label2)) - { - eventQuestViewMode = 0; - } - ImGui.PopStyleColor(); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Button, (eventQuestViewMode == 1) ? eventQuestColor : colorDarkBg); - ImU8String label3 = new ImU8String(12, 1); - label3.AppendLiteral("Completed ("); - label3.AppendFormatted(state.CompletedCharacters.Count); - label3.AppendLiteral(")"); - if (ImGui.Button(label3)) - { - eventQuestViewMode = 1; - } - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - List displayList = ((eventQuestViewMode == 0) ? state.RemainingCharacters : state.CompletedCharacters); - if (displayList.Count > 0) - { - using ImRaii.IEndObject child = ImRaii.Child("CharacterList", new Vector2(0f, 150f), border: true); - if (child.Success) - { - foreach (string character in displayList) - { - string[] parts = character.Split('@'); - string charName = ((parts.Length != 0) ? parts[0] : character); - string world = ((parts.Length > 1) ? parts[1] : "Unknown"); - ImGui.PushStyleColor(ImGuiCol.Text, (eventQuestViewMode == 0) ? colorSecondary : eventQuestColor); - ImU8String text12 = new ImU8String(2, 1); - text12.AppendLiteral("• "); - text12.AppendFormatted(charName); - ImGui.TextUnformatted(text12); - ImGui.PopStyleColor(); - ImGui.SameLine(); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text13 = new ImU8String(2, 1); - text13.AppendLiteral("@ "); - text13.AppendFormatted(world); - ImGui.TextUnformatted(text13); - ImGui.PopStyleColor(); - } - } - } - else - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted((eventQuestViewMode == 0) ? "No remaining characters" : "No completed characters"); - ImGui.PopStyleColor(); - } - ImGuiHelpers.ScaledDummy(10f); - } - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(10f); - if (selectedCharacters.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Select characters in the Characters tab to start Event Quest rotation"); - ImGui.PopStyleColor(); - } - else if (string.IsNullOrEmpty(selectedEventQuestId)) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Select an Event Quest from the dropdown above to start"); - ImGui.PopStyleColor(); - } - else if (!eventQuestService.IsRotationActive) - { - ImGui.PushStyleColor(ImGuiCol.Button, eventQuestColor); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, eventQuestAccent); - ImGui.PushStyleColor(ImGuiCol.ButtonActive, eventQuestAccent); - if (ImGui.Button("▶ Start Event Quest Rotation", new Vector2(250f, 35f))) - { - log.Information("[EventQuest] Start button clicked!"); - log.Information("[EventQuest] Event Quest ID: " + selectedEventQuestId); - log.Information($"[EventQuest] Selected characters: {selectedCharacters.Count}"); - log.Information($"[EventQuest] Prerequisites: {resolvedPrerequisites.Count}"); - if (eventQuestService.StartEventQuestRotation(selectedEventQuestId, selectedCharacters)) - { - log.Information("[EventQuest] Rotation started successfully!"); - } - else - { - log.Error("[EventQuest] Failed to start rotation"); - } - } - ImGui.PopStyleColor(3); - } - else - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorAccent); - ImGui.PushStyleColor(ImGuiCol.ButtonActive, colorAccent); - if (ImGui.Button("⏹ Abort Rotation", new Vector2(200f, 30f))) - { - eventQuestService.AbortRotation(); - log.Information("[EventQuest] Rotation aborted"); - } - ImGui.PopStyleColor(3); - } - ImGuiHelpers.ScaledDummy(5f); - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - if (ImGui.Button("Refresh Characters")) - { - RefreshCharacterList(); - log.Information("[EventQuest] Character list refreshed"); - } - ImGui.PopStyleColor(2); - ImGuiHelpers.ScaledDummy(15f); - ImGui.Separator(); - ImGuiHelpers.ScaledDummy(10f); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImGui.TextUnformatted("Completion Data:"); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(5f); - Dictionary> completionData = plugin.Configuration.EventQuestCompletionByCharacter; - if (completionData.Count == 0) - { - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("No completion data recorded yet."); - ImGui.PopStyleColor(); - } - else - { - using ImRaii.IEndObject table2 = ImRaii.Table("CompletionDataTable", 3, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollY, new Vector2(0f, 150f)); - if (table2.Success) - { - ImGui.TableSetupColumn("Event Quest ID", ImGuiTableColumnFlags.WidthFixed, 120f); - ImGui.TableSetupColumn("Completed", ImGuiTableColumnFlags.WidthFixed, 100f); - ImGui.TableSetupColumn("Actions", ImGuiTableColumnFlags.WidthStretch); - ImGui.TableSetupScrollFreeze(0, 1); - ImGui.TableHeadersRow(); - EventQuestResolver resolver5 = new EventQuestResolver(dataManager, log); - foreach (KeyValuePair> kvp in completionData) - { - string questId4 = kvp.Key; - List completedChars = kvp.Value; - ImGui.TableNextRow(); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(resolver5.GetQuestName(questId4)); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImU8String text14 = new ImU8String(4, 1); - text14.AppendLiteral("ID: "); - text14.AppendFormatted(questId4); - ImGui.TextUnformatted(text14); - ImGui.PopStyleColor(); - ImGui.TableNextColumn(); - ImGui.PushStyleColor(ImGuiCol.Text, eventQuestColor); - ImU8String text15 = new ImU8String(0, 1); - text15.AppendFormatted(completedChars.Count); - ImGui.TextUnformatted(text15); - ImGui.PopStyleColor(); - ImGui.TableNextColumn(); - using (ImRaii.PushId(questId4)) - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - if (ImGui.Button("Clear")) - { - completionData.Remove(questId4); - plugin.Configuration.Save(); - log.Information("[EventQuest] Cleared completion data for quest " + questId4); - } - ImGui.PopStyleColor(); - } - } - } - } - ImGuiHelpers.ScaledDummy(10f); - if (completionData.Count > 0) - { - ImGui.PushStyleColor(ImGuiCol.Button, colorAccent); - if (ImGui.Button("\ud83d\uddd1 Clear All Completion Data")) - { - completionData.Clear(); - plugin.Configuration.Save(); - log.Information("[EventQuest] Cleared all completion data"); - } - ImGui.PopStyleColor(); - } - } - - private void DrawWarningTab() - { - TryWarningMenuQuestionableCheck(); - ImGuiHelpers.ScaledDummy(50f); - float windowWidth = ImGui.GetContentRegionAvail().X; - string text2 = "Please ensure you are using Questionable from WigglyMuffin!"; - ImGui.SetWindowFontScale(2f); - Vector2 textSize = ImGui.CalcTextSize("Incorrect Questionable Version."); - Vector2 textSize2 = ImGui.CalcTextSize(text2); - ImGui.SetCursorPosX((windowWidth - textSize.X) * 0.5f); - ImGui.PushStyleColor(ImGuiCol.Text, colorAccent); - ImGui.TextUnformatted("Incorrect Questionable Version."); - ImGui.PopStyleColor(); - ImGuiHelpers.ScaledDummy(10f); - float flashAlpha = (MathF.Sin((float)ImGui.GetTime() * 5f) + 1f) * 0.5f; - Vector4 flashColor = new Vector4(1f, 0f, 0f, flashAlpha); - ImGui.SetCursorPosX((windowWidth - textSize2.X) * 0.5f); - ImGui.TextColored(in flashColor, text2); - ImGuiHelpers.ScaledDummy(30f); - ImGui.SetWindowFontScale(1f); - if (warningMenuRetryAttempts < 4) - { - double elapsedSeconds = (DateTime.Now - warningMenuRetryStartTime).TotalSeconds; - int nextRetryIn = ((warningMenuRetryAttempts < warningMenuRetryDelaysSeconds.Length) ? (warningMenuRetryDelaysSeconds[warningMenuRetryAttempts] - (int)elapsedSeconds) : 0); - ImGui.PushStyleColor(ImGuiCol.Text, colorPrimary); - if (nextRetryIn > 0) - { - string obj = $"Checking for Questionable... (Retry {warningMenuRetryAttempts}/{4} in {nextRetryIn}s)"; - ImGui.SetCursorPosX((windowWidth - ImGui.CalcTextSize(obj).X) * 0.5f); - ImGui.TextUnformatted(obj); - } - else - { - string obj2 = $"Checking for Questionable... (Attempt {warningMenuRetryAttempts + 1}/{4})"; - ImGui.SetCursorPosX((windowWidth - ImGui.CalcTextSize(obj2).X) * 0.5f); - ImGui.TextUnformatted(obj2); - } - ImGui.PopStyleColor(); - ImGui.SetCursorPosX((windowWidth - ImGui.CalcTextSize("Waiting for Questionable IPC to become available...").X) * 0.5f); - ImGui.PushStyleColor(ImGuiCol.Text, colorSecondary); - ImGui.TextUnformatted("Waiting for Questionable IPC to become available..."); - ImGui.PopStyleColor(); - return; - } - float buttonWidth = 120f; - float buttonHeight = 40f; - ImGui.SetCursorPosX((windowWidth - buttonWidth) * 0.5f); - ImGui.PushStyleColor(ImGuiCol.Button, colorPrimary); - ImGui.PushStyleColor(ImGuiCol.ButtonHovered, colorSecondary); - ImGui.PushStyleColor(ImGuiCol.ButtonActive, colorSecondary); - if (ImGui.Button("Refresh", new Vector2(buttonWidth, buttonHeight))) - { - if (plugin.QuestionableIPC.TryEnsureAvailableSilent() && plugin.QuestionableIPC.ValidateFeatureCompatibility()) - { - selectedTab = 5; - } - else - { - warningMenuRetryAttempts = 0; - warningMenuRetryStartTime = DateTime.MinValue; - warningMenuRetryCycleComplete = false; - } - } - ImGui.PopStyleColor(3); - } -} diff --git a/QuestionableCompanion/QuestionableCompanion/AlliedSocietySettings.cs b/QuestionableCompanion/QuestionableCompanion/AlliedSocietySettings.cs deleted file mode 100644 index 0e5d643..0000000 --- a/QuestionableCompanion/QuestionableCompanion/AlliedSocietySettings.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion; - -[Serializable] -public class AlliedSocietySettings -{ - public AlliedSocietyConfiguration RotationConfig { get; set; } = new AlliedSocietyConfiguration(); - - public Dictionary CharacterStatuses { get; set; } = new Dictionary(); - - public Dictionary> CharacterProgress { get; set; } = new Dictionary>(); - - public DateTime LastResetDate { get; set; } = DateTime.MinValue; -} diff --git a/QuestionableCompanion/QuestionableCompanion/Configuration.cs b/QuestionableCompanion/QuestionableCompanion/Configuration.cs deleted file mode 100644 index e11c327..0000000 --- a/QuestionableCompanion/QuestionableCompanion/Configuration.cs +++ /dev/null @@ -1,229 +0,0 @@ -using System; -using System.Collections.Generic; -using Dalamud.Configuration; -using QuestionableCompanion.Models; - -namespace QuestionableCompanion; - -[Serializable] -public class Configuration : IPluginConfiguration -{ - public int Version { get; set; } = 1; - - public bool IsConfigWindowMovable { get; set; } = true; - - public bool ShowDebugLogs { get; set; } - - public List Profiles { get; set; } = new List(); - - public string ActiveProfileName { get; set; } = string.Empty; - - public AlliedSocietySettings AlliedSociety { get; set; } = new AlliedSocietySettings(); - - public bool AutoStartOnLogin { get; set; } - - public bool EnableDryRun { get; set; } - - public int MaxRetryAttempts { get; set; } = 3; - - public int CharacterSwitchDelay { get; set; } = 5; - - public int MaxLogEntries { get; set; } = 100; - - public bool LogToFile { get; set; } - - public ExecutionState LastExecutionState { get; set; } = new ExecutionState(); - - public bool RestoreStateOnLoad { get; set; } - - public List StopPoints { get; set; } = new List(); - - public RotationState LastRotationState { get; set; } = new RotationState(); - - public List SelectedCharactersForRotation { get; set; } = new List(); - - public List SelectedCharactersForUI { get; set; } = new List(); - - public Dictionary> QuestCompletionByCharacter { get; set; } = new Dictionary>(); - - public Dictionary> EventQuestCompletionByCharacter { get; set; } = new Dictionary>(); - - public string CurrentEventQuestId { get; set; } = string.Empty; - - public List SelectedCharactersForEventQuest { get; set; } = new List(); - - public bool RunEventQuestsOnARPostProcess { get; set; } - - public List EventQuestsToRunOnPostProcess { get; set; } = new List(); - - public int EventQuestPostProcessTimeoutMinutes { get; set; } = 30; - - public bool EnableSubmarineCheck { get; set; } - - public int SubmarineCheckInterval { get; set; } = 90; - - public int SubmarineReloginCooldown { get; set; } = 120; - - public int SubmarineWaitTime { get; set; } = 30; - - public bool EnableAutoDutyUnsynced { get; set; } - - public int AutoDutyPartySize { get; set; } = 2; - - public int AutoDutyMaxWaitForParty { get; set; } = 30; - - public int AutoDutyReInviteInterval { get; set; } = 10; - - public bool EnableQSTReloadTracking { get; set; } - - public int MaxQSTReloadsBeforeSwitch { get; set; } = 5; - - public bool EnableDCTravel { get; set; } - - public string DCTravelWorld { get; set; } = ""; - - public bool EnableMovementMonitor { get; set; } - - public int MovementCheckInterval { get; set; } = 5; - - public int MovementStuckThreshold { get; set; } = 30; - - public bool EnableCombatHandling { get; set; } - - public int CombatHPThreshold { get; set; } = 50; - - public bool EnableDeathHandling { get; set; } - - public int DeathRespawnDelay { get; set; } = 5; - - public bool LogToDalamud { get; set; } - - public MSQDisplayMode MSQDisplayMode { get; set; } = MSQDisplayMode.Overall; - - public bool ShowPatchVersion { get; set; } - - public string DCTravelDataCenter { get; set; } = ""; - - public string DCTravelTargetWorld { get; set; } = ""; - - public bool EnableDCTravelFeature { get; set; } - - public bool EnableMultiModeAfterRotation { get; set; } - - public bool ReturnToHomeworldOnStopQuest { get; set; } - - public bool IsHighLevelHelper { get; set; } - - public bool IsQuester { get; set; } - - public List HighLevelHelpers { get; set; } = new List(); - - public bool ChauffeurModeEnabled { get; set; } - - public float ChauffeurDistanceThreshold { get; set; } = 100f; - - public float ChauffeurStopDistance { get; set; } = 5f; - - public uint ChauffeurMountId { get; set; } - - public string PreferredHelper { get; set; } = ""; - - public string AssignedQuester { get; set; } = ""; - - public HelperStatus CurrentHelperStatus { get; set; } - - public HelperSelectionMode HelperSelection { get; set; } - - public string ManualHelperName { get; set; } = ""; - - public bool AlwaysAutoAcceptInvites { get; set; } - - public bool EnableHelperFollowing { get; set; } - - public float HelperFollowDistance { get; set; } = 100f; - - public int HelperFollowCheckInterval { get; set; } = 5; - - public string AssignedQuesterForFollowing { get; set; } = ""; - - public string AssignedHelperForFollowing { get; set; } = ""; - - public bool EnableARRPrimalCheck { get; set; } - - public bool EnableSafeWaitBeforeCharacterSwitch { get; set; } - - public bool EnableSafeWaitAfterCharacterSwitch { get; set; } - - public bool EnableQuestPreCheck { get; set; } - - public List? QuestPreCheckRange { get; set; } - - public string SelectedDatacenter { get; set; } = "NA"; - - public Dictionary> WorldsByDatacenter { get; set; } = new Dictionary> - { - { - "NA", - new List - { - "Adamantoise", "Cactuar", "Faerie", "Gilgamesh", "Jenova", "Midgardsormr", "Sargatanas", "Siren", "Behemoth", "Excalibur", - "Exodus", "Famfrit", "Hyperion", "Lamia", "Leviathan", "Ultros", "Balmung", "Brynhildr", "Coeurl", "Diabolos", - "Goblin", "Malboro", "Mateus", "Zalera", "Halicarnassus", "Maduin", "Marilith", "Seraph" - } - }, - { - "EU", - new List - { - "Cerberus", "Louisoix", "Moogle", "Omega", "Phantom", "Ragnarok", "Sagittarius", "Spriggan", "Alpha", "Lich", - "Odin", "Phoenix", "Raiden", "Shiva", "Twintania", "Zodiark" - } - }, - { - "JP", - new List - { - "Aegis", "Atomos", "Carbuncle", "Garuda", "Gungnir", "Kujata", "Tonberry", "Typhon", "Alexander", "Bahamut", - "Durandal", "Fenrir", "Ifrit", "Ridill", "Tiamat", "Ultima", "Anima", "Asura", "Chocobo", "Hades", - "Ixion", "Masamune", "Pandaemonium", "Titan", "Gaia", "Belias", "Mandragora", "Ramuh", "Shinryu", "Unicorn", - "Valefor", "Yojimbo", "Zeromus" - } - }, - { - "OCE", - new List { "Bismarck", "Ravana", "Sephirot", "Sophia", "Zurvan" } - } - }; - - public bool EnableLANHelpers { get; set; } - - public int LANServerPort { get; set; } = 47788; - - public List LANHelperIPs { get; set; } = new List(); - - public bool StartLANServer { get; set; } - - public void Save() - { - Plugin.PluginInterface.SavePluginConfig(this); - } - - public QuestProfile? GetActiveProfile() - { - return Profiles.Find((QuestProfile p) => p.Name == ActiveProfileName); - } - - public void EnsureDefaultProfile() - { - if (Profiles.Count == 0) - { - QuestProfile defaultProfile = new QuestProfile - { - Name = "Default Profile", - IsActive = true - }; - Profiles.Add(defaultProfile); - ActiveProfileName = defaultProfile.Name; - } - } -} diff --git a/QuestionableCompanion/QuestionableCompanion/HelperSelectionMode.cs b/QuestionableCompanion/QuestionableCompanion/HelperSelectionMode.cs deleted file mode 100644 index 585278e..0000000 --- a/QuestionableCompanion/QuestionableCompanion/HelperSelectionMode.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace QuestionableCompanion; - -public enum HelperSelectionMode -{ - Auto, - Dropdown, - ManualInput -} diff --git a/QuestionableCompanion/QuestionableCompanion/HelperStatus.cs b/QuestionableCompanion/QuestionableCompanion/HelperStatus.cs deleted file mode 100644 index bce05ae..0000000 --- a/QuestionableCompanion/QuestionableCompanion/HelperStatus.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace QuestionableCompanion; - -public enum HelperStatus -{ - Available, - Transporting, - InDungeon -} diff --git a/QuestionableCompanion/QuestionableCompanion/HighLevelHelperConfig.cs b/QuestionableCompanion/QuestionableCompanion/HighLevelHelperConfig.cs deleted file mode 100644 index d21f186..0000000 --- a/QuestionableCompanion/QuestionableCompanion/HighLevelHelperConfig.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - -namespace QuestionableCompanion; - -[Serializable] -public class HighLevelHelperConfig -{ - public string CharacterName { get; set; } = string.Empty; - - public ushort WorldId { get; set; } - - public string WorldName { get; set; } = string.Empty; -} diff --git a/QuestionableCompanion/QuestionableCompanion/MSQDisplayMode.cs b/QuestionableCompanion/QuestionableCompanion/MSQDisplayMode.cs deleted file mode 100644 index f302c92..0000000 --- a/QuestionableCompanion/QuestionableCompanion/MSQDisplayMode.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace QuestionableCompanion; - -public enum MSQDisplayMode -{ - CurrentExpansion, - Overall, - ExpansionBreakdown -} diff --git a/QuestionableCompanion/QuestionableCompanion/Plugin.cs b/QuestionableCompanion/QuestionableCompanion/Plugin.cs deleted file mode 100644 index 1159440..0000000 --- a/QuestionableCompanion/QuestionableCompanion/Plugin.cs +++ /dev/null @@ -1,1269 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using System.Reflection; -using System.Threading.Tasks; -using Dalamud.Game.ClientState.Objects.SubKinds; -using Dalamud.Game.Command; -using Dalamud.Interface.Windowing; -using Dalamud.IoC; -using Dalamud.Plugin; -using Dalamud.Plugin.Services; -using Lumina.Excel; -using Lumina.Excel.Sheets; -using QuestionableCompanion.Models; -using QuestionableCompanion.Services; -using QuestionableCompanion.Windows; - -namespace QuestionableCompanion; - -public sealed class Plugin : IDalamudPlugin, IDisposable -{ - private const string CommandName = "/qstcomp"; - - private static Plugin? instance; - - public readonly WindowSystem WindowSystem = new WindowSystem("QuestionableCompanion"); - - private DateTime lastChauffeurCheck = DateTime.MinValue; - - [PluginService] - internal static IDalamudPluginInterface PluginInterface { get; private set; } - - [PluginService] - internal static ITextureProvider TextureProvider { get; private set; } - - [PluginService] - internal static ICommandManager CommandManager { get; private set; } - - [PluginService] - internal static IClientState ClientState { get; private set; } - - [PluginService] - internal static IDataManager DataManager { get; private set; } - - [PluginService] - internal static IPluginLog Log { get; private set; } - - [PluginService] - internal static IFramework Framework { get; private set; } - - [PluginService] - internal static IGameGui GameGui { get; private set; } - - [PluginService] - internal static ICondition Condition { get; private set; } - - [PluginService] - internal static IPartyList PartyList { get; private set; } - - [PluginService] - internal static IGameInteropProvider GameInterop { get; private set; } - - [PluginService] - internal static IObjectTable ObjectTable { get; private set; } - - [PluginService] - internal static IChatGui ChatGui { get; private set; } - - public static Plugin? Instance => instance; - - public Configuration Configuration { get; init; } - - public QuestionableIPC QuestionableIPC { get; init; } - - private AutoRetainerIPC AutoRetainerIPC { get; init; } - - public LifestreamIPC LifestreamIPC { get; init; } - - private PartyInviteService PartyInviteService { get; init; } - - private MultiClientIPC MultiClientIPC { get; init; } - - private CrossProcessIPC CrossProcessIPC { get; init; } - - private PartyInviteAutoAccept PartyInviteAutoAccept { get; init; } - - private HelperManager HelperManager { get; init; } - - private QuestDetectionService QuestDetection { get; init; } - - private EventQuestExecutionService EventQuestService { get; init; } - - private QuestTrackingService QuestTrackingService { get; init; } - - private QuestRotationExecutionService QuestRotationService { get; init; } - - private SubmarineManager SubmarineManager { get; init; } - - private CharacterSafeWaitService SafeWaitService { get; init; } - - private QuestPreCheckService PreCheckService { get; init; } - - private DCTravelService DCTravelService { get; init; } - - private MovementMonitorService MovementMonitor { get; init; } - - private CombatDutyDetectionService CombatDutyDetection { get; init; } - - private DeathHandlerService DeathHandler { get; init; } - - private DungeonAutomationService DungeonAutomation { get; init; } - - private StepsOfFaithHandler StepsOfFaithHandler { get; init; } - - private MSQProgressionService MSQProgressionService { get; init; } - - private MemoryHelper MemoryHelper { get; init; } - - private ChauffeurModeService ChauffeurMode { get; init; } - - private ARPostProcessEventQuestService ARPostProcessService { get; init; } - - private AlliedSocietyDatabase AlliedSocietyDatabase { get; init; } - - private AlliedSocietyQuestSelector AlliedSocietyQuestSelector { get; init; } - - private AlliedSocietyRotationService AlliedSocietyRotationService { get; init; } - - private AlliedSocietyPriorityWindow AlliedSocietyPriorityWindow { get; init; } - - private ErrorRecoveryService ErrorRecoveryService { get; init; } - - private LANHelperServer? LANHelperServer { get; set; } - - private LANHelperClient? LANHelperClient { get; set; } - - private ARRTrialAutomationService ARRTrialAutomation { get; init; } - - private ConfigWindow ConfigWindow { get; init; } - - private NewMainWindow NewMainWindow { get; init; } - - private DebugWindow DebugWindow { get; init; } - - public Plugin() - { - instance = this; - try - { - Configuration = (PluginInterface.GetPluginConfig() as Configuration) ?? new Configuration(); - Configuration.EnsureDefaultProfile(); - Log.Debug("[Plugin] Initializing services..."); - QuestionableIPC = new QuestionableIPC(PluginInterface, Log); - AutoRetainerIPC = new AutoRetainerIPC(PluginInterface, Log, ClientState, CommandManager, Framework); - LifestreamIPC = new LifestreamIPC(Log, PluginInterface); - PartyInviteService = new PartyInviteService(Log, ObjectTable, ClientState); - MultiClientIPC = new MultiClientIPC(PluginInterface, Log); - CrossProcessIPC = new CrossProcessIPC(Log, Framework, Configuration); - PartyInviteAutoAccept = new PartyInviteAutoAccept(Log, Framework, GameGui, PartyList, Configuration); - QuestDetection = new QuestDetectionService(Framework, Log, ClientState); - EventQuestService = new EventQuestExecutionService(AutoRetainerIPC, QuestionableIPC, Log, Framework, CommandManager, Condition, Configuration, DataManager, delegate - { - SaveEventQuestCompletionData(); - }); - QuestTrackingService = new QuestTrackingService(Log); - Log.Debug("[Plugin] Initializing SubmarineManager..."); - SubmarineManager = new SubmarineManager(Log, AutoRetainerIPC, Configuration, CommandManager, Framework); - Log.Debug("[Plugin] Initializing QuestRotationService..."); - QuestRotationService = new QuestRotationExecutionService(AutoRetainerIPC, QuestTrackingService, SubmarineManager, QuestionableIPC, Configuration, Log, Framework, CommandManager, Condition, ClientState, delegate - { - SaveQuestCompletionData(); - }); - Log.Debug("[Plugin] Initializing SafeWaitService..."); - SafeWaitService = new CharacterSafeWaitService(ClientState, Log, Framework, Condition, GameGui); - Log.Debug("[Plugin] Initializing QuestPreCheckService..."); - PreCheckService = new QuestPreCheckService(Log, ClientState, Configuration, AutoRetainerIPC); - Log.Debug("[Plugin] Initializing DCTravelService..."); - DCTravelService = new DCTravelService(Log, Configuration, LifestreamIPC, QuestionableIPC, SafeWaitService, ClientState, CommandManager, Framework); - Log.Debug("[Plugin] Initializing MovementMonitor..."); - MovementMonitor = new MovementMonitorService(ClientState, Log, CommandManager, Framework, Configuration); - Log.Debug("[Plugin] Movement monitor initialized (will start with rotation)"); - Log.Debug("[Plugin] Initializing CombatDutyDetection..."); - CombatDutyDetection = new CombatDutyDetectionService(Condition, Log, ClientState, CommandManager, Framework, Configuration); - Log.Debug("[Plugin] Initializing DeathHandler..."); - DeathHandler = new DeathHandlerService(Condition, Log, ClientState, CommandManager, Framework, Configuration, GameGui, DataManager); - Log.Debug("[Plugin] Initializing MemoryHelper..."); - MemoryHelper = new MemoryHelper(Log, GameInterop); - if (Configuration.EnableLANHelpers) - { - Log.Information("[Plugin] LAN Helper System ENABLED - Initializing..."); - LANHelperClient = new LANHelperClient(Log, ClientState, Framework, Configuration); - if (Configuration.StartLANServer) - { - Log.Information("[Plugin] Starting LAN Helper Server..."); - LANHelperServer = new LANHelperServer(Log, ClientState, Framework, Configuration, PartyInviteAutoAccept, CommandManager, this); - LANHelperServer.Start(); - } - Task.Run(async delegate - { - await Task.Delay(2000); - await LANHelperClient.Initialize(); - }); - } - else - { - Log.Debug("[Plugin] LAN Helper System disabled"); - } - Log.Debug("[Plugin] Initializing HelperManager..."); - HelperManager = new HelperManager(Configuration, Log, CommandManager, Condition, ClientState, Framework, PartyInviteService, MultiClientIPC, CrossProcessIPC, PartyInviteAutoAccept, MemoryHelper, LANHelperClient, PartyList); - Log.Debug("[Plugin] Initializing DungeonAutomation..."); - DungeonAutomation = new DungeonAutomationService(Condition, Log, ClientState, CommandManager, Framework, GameGui, Configuration, HelperManager, MemoryHelper, QuestionableIPC, CrossProcessIPC, MultiClientIPC); - Log.Debug("[Plugin] Initializing StepsOfFaithHandler..."); - StepsOfFaithHandler = new StepsOfFaithHandler(Condition, Log, ClientState, CommandManager, Framework, Configuration); - Log.Debug("[Plugin] Initializing MSQProgressionService..."); - MSQProgressionService = new MSQProgressionService(DataManager, Log, QuestDetection, ObjectTable, Framework); - Log.Debug("[Plugin] Initializing ChauffeurMode..."); - ChauffeurMode = new ChauffeurModeService(Configuration, Log, ClientState, Condition, Framework, CommandManager, DataManager, PartyList, ObjectTable, QuestionableIPC, CrossProcessIPC, PartyInviteService, PartyInviteAutoAccept, PluginInterface, MemoryHelper, MovementMonitor); - Log.Debug("[Plugin] Initializing ARRTrialAutomation..."); - ARRTrialAutomation = new ARRTrialAutomationService(Log, Framework, CommandManager, ChatGui, Configuration, QuestionableIPC, SubmarineManager, HelperManager, PartyList, Condition, MemoryHelper); - QuestDetection.QuestCompleted += delegate(uint questId, string questName) - { - if (questId == 89) - { - Log.Information("[Plugin] Quest 89 completed - triggering ARR Primal check"); - ARRTrialAutomation.OnTriggerQuestComplete(); - } - ARRTrialAutomation.OnQuestComplete(questId); - }; - Log.Debug("[Plugin] ARRTrialAutomation wired to QuestDetection.QuestCompleted"); - MovementMonitor.SetChauffeurMode(ChauffeurMode); - if (LANHelperClient != null) - { - LANHelperClient.OnChauffeurMessageReceived += delegate(object? sender, LANHelperClient.ChauffeurMessageEventArgs args) - { - Framework.RunOnFrameworkThread(delegate - { - if (args.Type == LANMessageType.CHAUFFEUR_HELPER_READY_FOR_MOUNT) - { - ChauffeurMode.OnChauffeurMountReady(args.Data.QuesterName, args.Data.QuesterWorldId); - } - else if (args.Type == LANMessageType.CHAUFFEUR_HELPER_ARRIVED_DEST) - { - ChauffeurMode.OnChauffeurArrived(args.Data.QuesterName, args.Data.QuesterWorldId); - } - }); - }; - Log.Debug("[Plugin] LANHelperClient Chauffeur events wired to ChauffeurMode"); - } - Log.Debug("[Plugin] Initializing AR Post Process Event Quest Service..."); - EventQuestResolver eventQuestResolver = new EventQuestResolver(DataManager, Log); - ARPostProcessService = new ARPostProcessEventQuestService(PluginInterface, QuestionableIPC, eventQuestResolver, Configuration, Log, Framework, CommandManager, LifestreamIPC); - Log.Debug("[Plugin] Initializing Allied Society Services..."); - AlliedSocietyDatabase = new AlliedSocietyDatabase(Configuration, Log); - AlliedSocietyQuestSelector = new AlliedSocietyQuestSelector(QuestionableIPC, Log); - AlliedSocietyRotationService = new AlliedSocietyRotationService(QuestionableIPC, AlliedSocietyDatabase, AlliedSocietyQuestSelector, AutoRetainerIPC, Configuration, Log, Framework, CommandManager, Condition, ClientState); - AlliedSocietyPriorityWindow = new AlliedSocietyPriorityWindow(Configuration, AlliedSocietyDatabase); - Log.Debug("[Plugin] Initializing Error Recovery Service..."); - ErrorRecoveryService = new ErrorRecoveryService(Log, GameInterop, ClientState, Framework, GameGui, AutoRetainerIPC); - QuestRotationService.SetErrorRecoveryService(ErrorRecoveryService); - MultiClientIPC.OnChatMessageReceived += OnMultiClientChatReceived; - CrossProcessIPC.OnChatMessageReceived += OnMultiClientChatReceived; - CrossProcessIPC.OnCommandReceived += OnCommandReceived; - QuestRotationService.SetDCTravelService(DCTravelService); - QuestRotationService.SetSafeWaitService(SafeWaitService); - QuestRotationService.SetPreCheckService(PreCheckService); - QuestRotationService.SetMovementMonitor(MovementMonitor); - QuestRotationService.SetCombatDutyDetection(CombatDutyDetection); - QuestRotationService.SetDeathHandler(DeathHandler); - QuestRotationService.SetDungeonAutomation(DungeonAutomation); - QuestRotationService.SetStepsOfFaithHandler(StepsOfFaithHandler); - DungeonAutomation.SetRotationActiveChecker(() => QuestRotationService.IsRotationActive); - Log.Debug("[Plugin] Initializing DataCenterService..."); - DataCenterService dataCenterService = new DataCenterService(DataManager, Log); - Log.Debug($"[Plugin] Loaded {Configuration.StopPoints?.Count ?? 0} stop points from config"); - if (Configuration.QuestCompletionByCharacter != null) - { - QuestRotationService.LoadQuestCompletionData(Configuration.QuestCompletionByCharacter); - } - if (Configuration.EventQuestCompletionByCharacter != null) - { - EventQuestService.LoadEventQuestCompletionData(Configuration.EventQuestCompletionByCharacter); - } - Log.Debug("[Plugin] Initializing windows..."); - ConfigWindow = new ConfigWindow(this); - NewMainWindow = new NewMainWindow(this, AutoRetainerIPC, QuestTrackingService, QuestRotationService, EventQuestService, AlliedSocietyRotationService, AlliedSocietyPriorityWindow, dataCenterService, MSQProgressionService, Configuration, Log, PluginInterface.UiBuilder, DataManager); - DebugWindow = new DebugWindow(this, CombatDutyDetection, DeathHandler, DungeonAutomation); - WindowSystem.AddWindow(ConfigWindow); - WindowSystem.AddWindow(NewMainWindow); - WindowSystem.AddWindow(DebugWindow); - WindowSystem.AddWindow(AlliedSocietyPriorityWindow); - CommandManager.AddHandler("/qstcomp", new CommandInfo(OnCommand) - { - HelpMessage = "Open the Quest Sequence Manager" - }); - string[] array = new string[2] { "/qstc", "/qstcompanion" }; - foreach (string alias in array) - { - CommandManager.AddHandler(alias, new CommandInfo(OnCommand) - { - HelpMessage = "Open the Quest Sequence Manager" - }); - } - CommandManager.AddHandler("/qsthelper", new CommandInfo(OnHelperCommand) - { - HelpMessage = "Helper commands: /qsthelper reset - Reset helper status to Available" - }); - PluginInterface.UiBuilder.Draw += WindowSystem.Draw; - PluginInterface.UiBuilder.OpenConfigUi += ToggleConfigUi; - PluginInterface.UiBuilder.OpenMainUi += ToggleMainUi; - Log.Information("[QuestionableCompanion] Plugin loaded successfully"); - Log.Information("[QuestionableCompanion] IPC services initialized with lazy-loading (will connect when other plugins are ready)"); - Framework.RunOnFrameworkThread(delegate - { - HelperManager.AnnounceIfHelper(); - }); - Framework.Update += OnFrameworkUpdate; - } - catch (Exception ex) - { - Log.Error("[Plugin] Failed to initialize: " + ex.Message); - Log.Error("[Plugin] Stack trace: " + ex.StackTrace); - throw; - } - } - - private void OnFrameworkUpdate(IFramework framework) - { - try - { - if (QuestRotationService != null && QuestRotationService.IsRotationActive && (DateTime.Now - lastChauffeurCheck).TotalSeconds >= 5.0) - { - lastChauffeurCheck = DateTime.Now; - ChauffeurMode?.CheckWaitTerritoryTask(); - if (Configuration.ChauffeurModeEnabled && Configuration.IsQuester) - { - ChauffeurMode?.CheckTaskDistance(); - } - } - } - catch (Exception ex) - { - Log.Error("[Plugin] Framework update error: " + ex.Message); - } - } - - private void SaveQuestCompletionData() - { - if (QuestRotationService != null) - { - Configuration.QuestCompletionByCharacter = QuestRotationService.GetQuestCompletionData(); - Configuration.Save(); - Log.Debug("[Plugin] Quest completion data saved to config"); - } - } - - public LANHelperClient? GetLANHelperClient() - { - return LANHelperClient; - } - - public void ToggleLANServer(bool enable) - { - if (enable) - { - if (LANHelperServer == null) - { - Log.Information("[Plugin] Starting LAN Helper Server (Runtime)..."); - LANHelperServer = new LANHelperServer(Log, ClientState, Framework, Configuration, PartyInviteAutoAccept, CommandManager, this); - LANHelperServer.Start(); - } - else if (!LANHelperServer.IsRunning) - { - LANHelperServer.Start(); - } - } - else if (LANHelperServer != null) - { - Log.Information("[Plugin] Stopping LAN Helper Server (Runtime)..."); - LANHelperServer.Stop(); - LANHelperServer.Dispose(); - LANHelperServer = null; - } - } - - private void SaveEventQuestCompletionData() - { - if (EventQuestService != null) - { - Configuration.EventQuestCompletionByCharacter = EventQuestService.GetEventQuestCompletionData(); - Configuration.Save(); - Log.Debug("[Plugin] Event quest completion data saved to config"); - } - } - - private void OnMultiClientChatReceived(string message) - { - Log.Information("========================================"); - Log.Information("[MULTI-CLIENT] Message received from other client:"); - Log.Information("[MULTI-CLIENT] " + message); - Log.Information("========================================"); - try - { - CommandManager.ProcessCommand("/echo [Multi-Client] " + message); - } - catch (Exception ex) - { - Log.Error("[MULTI-CLIENT] Failed to send to chat: " + ex.Message); - } - } - - private void OnCommandReceived(string command) - { - if (!Configuration.IsHighLevelHelper) - { - Log.Debug("[CHAUFFEUR] Not a helper, ignoring command from other client"); - return; - } - Log.Information("========================================"); - Log.Information("[CHAUFFEUR] Command received from other client:"); - Log.Information("[CHAUFFEUR] " + command); - Log.Information("========================================"); - Framework.RunOnFrameworkThread(delegate - { - try - { - Log.Information("[CHAUFFEUR] Executing: " + command); - CommandManager.ProcessCommand(command); - Log.Information("[CHAUFFEUR] Command executed successfully"); - } - catch (Exception ex) - { - Log.Error("[CHAUFFEUR] Failed to execute command: " + ex.Message); - } - }); - } - - public void Dispose() - { - instance = null; - try - { - try - { - Configuration.StopPoints = QuestRotationService?.GetAllStopPoints() ?? new List(); - Configuration.QuestCompletionByCharacter = QuestRotationService?.GetQuestCompletionData() ?? new Dictionary>(); - Configuration.Save(); - Log.Debug("[Plugin] Configuration saved"); - } - catch (Exception ex) - { - Log.Error("[Plugin] Failed to save configuration: " + ex.Message); - } - try - { - if (Framework != null) - { - Framework.Update -= OnFrameworkUpdate; - } - if (MultiClientIPC != null) - { - MultiClientIPC.OnChatMessageReceived -= OnMultiClientChatReceived; - } - if (CrossProcessIPC != null) - { - CrossProcessIPC.OnChatMessageReceived -= OnMultiClientChatReceived; - CrossProcessIPC.OnCommandReceived -= OnCommandReceived; - } - Log.Debug("[Plugin] Events unsubscribed"); - } - catch (Exception ex2) - { - Log.Error("[Plugin] Failed to unsubscribe events: " + ex2.Message); - } - try - { - ARPostProcessService?.Dispose(); - ChauffeurMode?.Dispose(); - StepsOfFaithHandler?.Dispose(); - DungeonAutomation?.Dispose(); - DeathHandler?.Dispose(); - CombatDutyDetection?.Dispose(); - MovementMonitor?.Dispose(); - DCTravelService?.Dispose(); - PreCheckService?.Dispose(); - QuestRotationService?.Dispose(); - EventQuestService?.Dispose(); - SubmarineManager?.Dispose(); - QuestTrackingService?.Dispose(); - QuestDetection?.Dispose(); - HelperManager?.Dispose(); - LANHelperServer?.Dispose(); - LANHelperClient?.Dispose(); - PartyInviteAutoAccept?.Dispose(); - CrossProcessIPC?.Dispose(); - MultiClientIPC?.Dispose(); - LifestreamIPC?.Dispose(); - AutoRetainerIPC?.Dispose(); - QuestionableIPC?.Dispose(); - ErrorRecoveryService?.Dispose(); - Log.Debug("[Plugin] Services disposed"); - } - catch (Exception ex3) - { - Log.Error("[Plugin] Failed to dispose services: " + ex3.Message); - } - try - { - PluginInterface.UiBuilder.Draw -= WindowSystem.Draw; - PluginInterface.UiBuilder.OpenConfigUi -= ToggleConfigUi; - PluginInterface.UiBuilder.OpenMainUi -= ToggleMainUi; - WindowSystem.RemoveAllWindows(); - ConfigWindow?.Dispose(); - NewMainWindow?.Dispose(); - DebugWindow?.Dispose(); - Log.Debug("[Plugin] UI disposed"); - } - catch (Exception ex4) - { - Log.Error("[Plugin] Failed to dispose UI: " + ex4.Message); - } - try - { - CommandManager.RemoveHandler("/qstcomp"); - CommandManager.RemoveHandler("/qsthelper"); - string[] array = new string[2] { "/qstc", "/qstcompanion" }; - foreach (string alias in array) - { - CommandManager.RemoveHandler(alias); - } - Log.Debug("[Plugin] Command handlers removed"); - } - catch (Exception ex5) - { - Log.Error("[Plugin] Failed to remove command handler: " + ex5.Message); - } - Log.Information("[QuestionableCompanion] Plugin disposed successfully"); - } - catch (Exception ex6) - { - Log.Error("[Plugin] Critical error during disposal: " + ex6.Message); - Log.Error("[Plugin] Stack trace: " + ex6.StackTrace); - } - } - - private void OnCommand(string command, string args) - { - string argLower = args.Trim().ToLower(); - switch (argLower) - { - case "arrtrials": - ARRTrialAutomation.StartTrialChain(); - return; - case "dbg": - DebugWindow.Toggle(); - return; - case "task": - TestGetCurrentTask(); - return; - } - if (argLower.StartsWith("invite ")) - { - TestPartyInvite(args.Substring(7).Trim()); - return; - } - if (argLower == "invitehelpers") - { - TestInviteHelpers(); - return; - } - if (argLower == "disband") - { - TestDisband(); - return; - } - if (argLower.StartsWith("multi ")) - { - string message = args.Substring(6).Trim(); - TestMultiClientChat(message); - return; - } - if (argLower.StartsWith("cmd ")) - { - string cmdText = args.Substring(4).Trim(); - TestSendCommand(cmdText); - return; - } - switch (argLower) - { - case "chauffeur": - TestChauffeurMode(); - break; - case "society": - TestAlliedSociety(); - break; - case "stopcon": - TestStopConditions(); - break; - case "mounts": - TestListMounts(); - break; - case "aetheryte": - TestFindNearestAetheryte(); - break; - default: - NewMainWindow.Toggle(); - break; - } - } - - private void OnHelperCommand(string command, string args) - { - string argLower = args.Trim().ToLower(); - if (argLower == "reset") - { - if (!Configuration.IsHighLevelHelper) - { - ChatGui.Print("[QSTHelper] You are not configured as a Helper!"); - return; - } - IPlayerCharacter localPlayer = ClientState.LocalPlayer; - if (localPlayer == null) - { - ChatGui.Print("[QSTHelper] Not logged in!"); - return; - } - ChauffeurModeService chauffeurMode = ChauffeurMode; - if (chauffeurMode != null) - { - chauffeurMode.ResetChauffeurState(); - ChatGui.Print("[QSTHelper] Status reset to Available (full reset)"); - Log.Information("[QSTHelper] Helper status manually reset to Available (full reset via ChauffeurMode)"); - return; - } - Configuration.CurrentHelperStatus = HelperStatus.Available; - Configuration.AssignedQuester = string.Empty; - Configuration.Save(); - string helperName = localPlayer.Name.ToString(); - ushort helperWorld = (ushort)localPlayer.HomeWorld.RowId; - CrossProcessIPC.BroadcastHelperStatus(helperName, helperWorld, "Available"); - ChatGui.Print("[QSTHelper] Status reset to Available (config only)"); - Log.Information("[QSTHelper] Helper status manually reset to Available (config only)"); - } - else if (argLower == "status") - { - if (!Configuration.IsHighLevelHelper) - { - ChatGui.Print("[QSTHelper] You are not configured as a Helper!"); - return; - } - string status = Configuration.CurrentHelperStatus switch - { - HelperStatus.Available => "Available", - HelperStatus.Transporting => "Transporting", - HelperStatus.InDungeon => "In Dungeon", - _ => "Unknown", - }; - string assigned = (string.IsNullOrEmpty(Configuration.AssignedQuester) ? "None" : Configuration.AssignedQuester); - ChatGui.Print("[QSTHelper] Status: " + status); - ChatGui.Print("[QSTHelper] Assigned Quester: " + assigned); - } - else - { - ChatGui.Print("[QSTHelper] Commands:"); - ChatGui.Print(" /qsthelper reset - Reset status to Available"); - ChatGui.Print(" /qsthelper status - Show current status"); - } - } - - private void TestGetCurrentTask() - { - Log.Information("========================================"); - Log.Information("[TEST] Testing Questionable.GetCurrentTask IPC"); - Log.Information("========================================"); - if (QuestionableIPC == null) - { - Log.Error("[TEST] QuestionableIPC is null!"); - return; - } - QuestionableIPC.ForceCheckAvailability(); - if (!QuestionableIPC.IsAvailable) - { - Log.Warning("[TEST] Questionable is not available!"); - return; - } - bool isRunning = QuestionableIPC.IsRunning(); - Log.Information($"[TEST] Questionable IsRunning: {isRunning}"); - object currentTask = QuestionableIPC.GetCurrentTask(); - if (currentTask == null) - { - Log.Information("[TEST] GetCurrentTask returned NULL (no task active)"); - } - else - { - Log.Information("[TEST] Current Task Found!"); - Log.Information("[TEST] - Type: " + currentTask.GetType().FullName); - Log.Information($"[TEST] - Value: {currentTask}"); - Log.Information("[TEST] - ToString(): " + currentTask.ToString()); - PropertyInfo[] properties = currentTask.GetType().GetProperties(); - if (properties.Length != 0) - { - Log.Information($"[TEST] Properties found: {properties.Length}"); - PropertyInfo[] array = properties; - foreach (PropertyInfo prop in array) - { - try - { - object value = prop.GetValue(currentTask); - Log.Information($"[TEST] - {prop.Name}: {value ?? "null"} (Type: {prop.PropertyType.Name})"); - } - catch (Exception ex) - { - Log.Warning("[TEST] - " + prop.Name + ": ERROR - " + ex.Message); - } - } - } - else - { - Log.Information("[TEST] No properties found - might be a primitive type or string"); - } - } - Log.Information("========================================"); - } - - private void TestPartyInvite(string characterNameWithWorld) - { - Log.Information("========================================"); - Log.Information("[TEST] Testing PartyInvite Service"); - Log.Information("========================================"); - if (string.IsNullOrEmpty(characterNameWithWorld)) - { - Log.Error("[TEST] Usage: /qstcomp invite "); - Log.Error("[TEST] Example: /qstcomp invite Firstname Lastname@Odin"); - Log.Information("========================================"); - return; - } - string[] parts = characterNameWithWorld.Split('@'); - if (parts.Length != 2) - { - Log.Error("[TEST] Invalid format! Use: CharacterName@WorldName"); - Log.Error("[TEST] Example: Firstname Lastname@Odin"); - Log.Information("========================================"); - return; - } - string characterName = parts[0].Trim(); - string worldName = parts[1].Trim(); - Log.Information("[TEST] Character: " + characterName); - Log.Information("[TEST] World: " + worldName); - ExcelSheet worldSheet = DataManager.GetExcelSheet(); - if (worldSheet == null) - { - Log.Error("[TEST] Failed to load World sheet!"); - Log.Information("========================================"); - return; - } - ushort worldId = 0; - foreach (World world in worldSheet) - { - if (world.Name.ExtractText().Equals(worldName, StringComparison.OrdinalIgnoreCase)) - { - worldId = (ushort)world.RowId; - break; - } - } - if (worldId == 0) - { - Log.Error("[TEST] World '" + worldName + "' not found!"); - Log.Information("========================================"); - return; - } - Log.Information($"[TEST] World ID: {worldId}"); - Log.Information("[TEST] Sending party invite..."); - if (PartyInviteService.InviteToParty(characterName, worldId)) - { - Log.Information("[TEST] Party invite sent successfully!"); - } - else - { - Log.Error("[TEST] Failed to send party invite!"); - } - Log.Information("========================================"); - } - - private void TestInviteHelpers() - { - Log.Information("========================================"); - Log.Information("[TEST] Testing Helper Invite System"); - Log.Information("========================================"); - if (!Configuration.IsQuester) - { - Log.Error("[TEST] This client is not configured as a Quester!"); - Log.Error("[TEST] Please enable 'I'm a Quester' in Settings > Multi-Client Role"); - Log.Information("========================================"); - return; - } - string modeText = Configuration.HelperSelection switch - { - HelperSelectionMode.Auto => "Auto (First Available)", - HelperSelectionMode.Dropdown => "Dropdown (Select Specific Helper)", - HelperSelectionMode.ManualInput => "Manual Input", - _ => "Unknown", - }; - Log.Information("[TEST] Current Selection Mode: " + modeText); - Log.Information("[TEST] ----------------------------------------"); - if (Configuration.HelperSelection == HelperSelectionMode.ManualInput) - { - if (string.IsNullOrEmpty(Configuration.ManualHelperName)) - { - Log.Error("[TEST] Manual Input mode selected, but no helper name configured!"); - Log.Error("[TEST] Please configure a helper name in Settings (format: CharacterName@WorldName)"); - } - else - { - Log.Information("[TEST] Manual Helper: " + Configuration.ManualHelperName); - Log.Information("[TEST] This helper will be invited directly (no IPC wait required)"); - } - } - else if (Configuration.HelperSelection == HelperSelectionMode.Dropdown) - { - List<(string, ushort)> availableHelpers = HelperManager.GetAvailableHelpers(); - if (availableHelpers.Count == 0) - { - Log.Warning("[TEST] No helpers discovered via IPC!"); - Log.Warning("[TEST] Make sure helper clients are running with 'I'm a High-Level Helper' enabled"); - } - else - { - Log.Information($"[TEST] Auto-discovered helpers: {availableHelpers.Count}"); - foreach (var (name, worldId) in availableHelpers) - { - Log.Information($"[TEST] - {name}@{worldId}"); - } - } - if (string.IsNullOrEmpty(Configuration.PreferredHelper)) - { - Log.Warning("[TEST] Dropdown mode selected, but no specific helper chosen!"); - Log.Warning("[TEST] Please select a helper from the dropdown in Settings"); - } - else - { - Log.Information("[TEST] Selected Helper: " + Configuration.PreferredHelper); - } - } - else - { - List<(string, ushort)> availableHelpers2 = HelperManager.GetAvailableHelpers(); - if (availableHelpers2.Count == 0) - { - Log.Error("[TEST] No helpers discovered via IPC!"); - Log.Error("[TEST] Make sure helper clients are running with 'I'm a High-Level Helper' enabled"); - Log.Information("========================================"); - return; - } - Log.Information($"[TEST] Auto-discovered helpers: {availableHelpers2.Count}"); - foreach (var (name2, worldId2) in availableHelpers2) - { - Log.Information($"[TEST] - {name2}@{worldId2}"); - } - } - Log.Information("[TEST] Invoking HelperManager.InviteHelpers()..."); - HelperManager.InviteHelpers(); - Log.Information("========================================"); - } - - private void TestDisband() - { - Log.Information("========================================"); - Log.Information("[TEST] Testing Party Disband"); - Log.Information("========================================"); - Log.Information("[TEST] Disbanding party..."); - HelperManager.DisbandParty(); - Log.Information("========================================"); - } - - private void TestMultiClientChat(string message) - { - Log.Information("========================================"); - Log.Information("[TEST] Testing Multi-Client Chat IPC"); - Log.Information("========================================"); - if (string.IsNullOrEmpty(message)) - { - Log.Error("[TEST] Usage: /qstcomp multi "); - Log.Error("[TEST] Example: /qstcomp multi Hello from Client 1!"); - Log.Information("========================================"); - } - else - { - Log.Information("[TEST] Sending message via both IPC systems: " + message); - MultiClientIPC.SendChatMessage(message); - CrossProcessIPC.SendChatMessage(message); - Log.Information("[TEST] Message sent! Check other clients for receipt."); - Log.Information("========================================"); - } - } - - private void TestSendCommand(string command) - { - Log.Information("========================================"); - Log.Information("[TEST] Testing Cross-Process Command (Chauffeur Mode)"); - Log.Information("========================================"); - if (string.IsNullOrEmpty(command)) - { - Log.Error("[TEST] Usage: /qstcomp cmd "); - Log.Error("[TEST] Example: /qstcomp cmd /teleport Limsa Lominsa"); - Log.Information("========================================"); - } - else - { - Log.Information("[TEST] Sending command to other client: " + command); - CrossProcessIPC.SendCommand(command); - Log.Information("[TEST] Command sent! Check other client for execution."); - Log.Information("========================================"); - } - } - - private void TestChauffeurMode() - { - Log.Information("========================================"); - Log.Information("[TEST] Testing Chauffeur Mode"); - Log.Information("========================================"); - if (!Configuration.ChauffeurModeEnabled) - { - Log.Warning("[TEST] Chauffeur Mode is DISABLED in settings!"); - Log.Information("========================================"); - return; - } - if (Configuration.IsQuester) - { - Log.Information("[TEST] Role: QUESTER"); - Log.Information($"[TEST] Distance Threshold: {Configuration.ChauffeurDistanceThreshold} yalms"); - Log.Information("[TEST] Checking current task distance..."); - ChauffeurMode?.CheckTaskDistance(); - } - else if (Configuration.IsHighLevelHelper) - { - Log.Information("[TEST] Role: HELPER"); - Log.Information($"[TEST] Mount ID: {Configuration.ChauffeurMountId}"); - if (Configuration.ChauffeurMountId == 0) - { - Log.Warning("[TEST] No mount configured! Please select a multi-seater mount in settings."); - } - } - else - { - Log.Warning("[TEST] No role configured! Please select Quester or Helper in settings."); - } - Log.Information("========================================"); - } - - private void TestListMounts() - { - Log.Information("========================================"); - Log.Information("[TEST] Listing Multi-Seater Mounts"); - Log.Information("========================================"); - List<(uint, string, byte)> mounts = ChauffeurMode?.GetMultiSeaterMounts() ?? new List<(uint, string, byte)>(); - if (mounts.Count == 0) - { - Log.Warning("[TEST] No multi-seater mounts found!"); - } - else - { - Log.Information($"[TEST] Found {mounts.Count} multi-seater mounts:"); - foreach (var (id, name, seats) in mounts) - { - Log.Information($"[TEST] - {name} (ID: {id}, Seats: {seats})"); - } - } - Log.Information("========================================"); - } - - private void TestFindNearestAetheryte() - { - Log.Information("========================================"); - Log.Information("[TEST] Finding Nearest Aetheryte (Map Data)"); - Log.Information("========================================"); - IPlayerCharacter player = ClientState.LocalPlayer; - if (player == null) - { - Log.Error("[TEST] Player not logged in!"); - Log.Information("========================================"); - return; - } - Vector3 playerPos = player.Position; - ushort territoryId = ClientState.TerritoryType; - Log.Information($"[TEST] Player Position: ({playerPos.X:F2}, {playerPos.Y:F2}, {playerPos.Z:F2})"); - Log.Information($"[TEST] Territory ID: {territoryId}"); - ExcelSheet aetheryteSheet = DataManager.GetExcelSheet(); - ExcelSheet mapSheet = DataManager.GetExcelSheet(); - if (aetheryteSheet == null || mapSheet == null) - { - Log.Error("[TEST] Failed to load sheets!"); - Log.Information("========================================"); - return; - } - float minDistance = float.MaxValue; - string nearestName = "Unknown"; - uint nearestId = 0u; - int aetheryteCount = 0; - foreach (Aetheryte aetheryte in aetheryteSheet) - { - if (aetheryte.Territory.RowId != territoryId || !aetheryte.IsAetheryte) - { - continue; - } - aetheryteCount++; - PlaceName? placeName = aetheryte.PlaceName.ValueNullable; - string nameStr = (placeName.HasValue ? placeName.Value.Name.ExtractText() : $"Aetheryte #{aetheryte.RowId}"); - Map? map = aetheryte.Map.ValueNullable; - if (map.HasValue) - { - float mapX = ConvertMapCoordinateToRawPosition(aetheryte.AetherstreamX, map.Value.SizeFactor); - float mapY = ConvertMapCoordinateToRawPosition(aetheryte.AetherstreamY, map.Value.SizeFactor); - Vector3 aethPos = new Vector3(mapX, 0f, mapY); - float num = playerPos.X - aethPos.X; - float dz = playerPos.Z - aethPos.Z; - float distance = (float)Math.Sqrt(num * num + dz * dz); - Log.Information($"[TEST] Aetheryte #{aetheryteCount}: {nameStr}"); - Log.Information($"[TEST] Position: ({aethPos.X:F2}, ?, {aethPos.Z:F2})"); - Log.Information($"[TEST] Distance (2D): {distance:F2} yalms"); - Log.Information($"[TEST] Aetheryte ID: {aetheryte.RowId}"); - if (distance < minDistance) - { - minDistance = distance; - nearestName = nameStr; - nearestId = aetheryte.RowId; - } - } - } - if (aetheryteCount == 0) - { - Log.Warning("[TEST] No aetherytes found in this territory!"); - } - else - { - Log.Information("========================================"); - Log.Information("[TEST] NEAREST AETHERYTE: " + nearestName); - Log.Information($"[TEST] Distance (2D): {minDistance:F2} yalms"); - Log.Information($"[TEST] Aetheryte ID: {nearestId}"); - Log.Information("========================================"); - } - Log.Information("========================================"); - } - - private float ConvertMapCoordinateToRawPosition(int coordinate, ushort scale) - { - float c = (float)(int)scale / 100f; - return ((((float)coordinate - 1024f) / 2048f + 1f) * c / 2f - 1f) * (2048f / c) * 1000f / 2048f; - } - - private void TestAlliedSociety() - { - Log.Information("========================================"); - Log.Information("[AlliedSociety] Testing Allied Society IPC Methods"); - Log.Information("========================================"); - if (QuestionableIPC == null) - { - Log.Error("[AlliedSociety] QuestionableIPC is null!"); - Log.Information("========================================"); - return; - } - QuestionableIPC.ForceCheckAvailability(); - if (!QuestionableIPC.IsAvailable) - { - Log.Warning("[AlliedSociety] Questionable is not available!"); - Log.Information("========================================"); - return; - } - int remainingAllowances = QuestionableIPC.GetAlliedSocietyRemainingAllowances(); - Log.Information("[AlliedSociety] ========================================"); - Log.Information($"[AlliedSociety] Daily Allowances Remaining: {remainingAllowances}/12"); - Log.Information("[AlliedSociety] ========================================"); - List societiesWithQuests = QuestionableIPC.GetAlliedSocietiesWithAvailableQuests(); - Log.Information($"[AlliedSociety] Societies with available quests: {societiesWithQuests.Count}"); - foreach (byte societyId in societiesWithQuests) - { - Log.Information($"[AlliedSociety] - Society ID: {societyId}"); - } - Log.Information("[AlliedSociety] ========================================"); - Dictionary alliedSocietyAllAvailableQuestCounts = QuestionableIPC.GetAlliedSocietyAllAvailableQuestCounts(); - Log.Information("[AlliedSociety] Quest counts by society:"); - foreach (var (societyId2, count) in alliedSocietyAllAvailableQuestCounts) - { - Log.Information($"[AlliedSociety] - Society {societyId2}: {count} quests"); - } - Log.Information("[AlliedSociety] ========================================"); - string[] societyNames = new string[20] - { - "Amalj'aa", "Sylphs", "Kobolds", "Sahagin", "Ixal", "Vanu Vanu", "Vath", "Moogles", "Kojin", "Ananta", - "Namazu", "Pixies", "Qitari", "Dwarves", "Arkasodara", "Omicrons", "Loporrits", "Pelupelu", "Mamool Ja", "Yok Huy" - }; - for (byte societyId3 = 1; societyId3 <= 20; societyId3++) - { - string societyName = societyNames[societyId3 - 1]; - Log.Information("[AlliedSociety] ----------------------------------------"); - Log.Information($"[AlliedSociety] Testing Society ID {societyId3}: {societyName}"); - Log.Information("[AlliedSociety] ----------------------------------------"); - int currentRank = QuestionableIPC.GetAlliedSocietyCurrentRank(societyId3); - Log.Information($"[AlliedSociety] Current Rank: {currentRank}"); - bool isMaxRank = QuestionableIPC.GetAlliedSocietyIsMaxRank(societyId3); - Log.Information($"[AlliedSociety] Is Max Rank: {isMaxRank}"); - List questIds = QuestionableIPC.GetAlliedSocietyAvailableQuestIds(societyId3); - Log.Information($"[AlliedSociety] Available Quests: {questIds.Count}"); - foreach (string questId in questIds) - { - bool num2 = QuestionableIPC.IsQuestComplete(questId); - bool isReady = QuestionableIPC.IsReadyToAcceptQuest(questId); - string completedStatus = (num2 ? "✓ Completed" : "✗ Not Completed"); - string readyStatus = (isReady ? "✓ Ready" : "✗ Not Ready"); - Log.Information("[AlliedSociety] - Quest ID: " + questId); - Log.Information("[AlliedSociety] Completed: " + completedStatus + " | Ready to Accept: " + readyStatus); - } - List optimalQuestIds = QuestionableIPC.GetAlliedSocietyOptimalQuests(societyId3); - Log.Information($"[AlliedSociety] Optimal Quests: {optimalQuestIds.Count}"); - foreach (string questId2 in optimalQuestIds) - { - bool num3 = QuestionableIPC.IsQuestComplete(questId2); - bool isReady2 = QuestionableIPC.IsReadyToAcceptQuest(questId2); - string completedStatus2 = (num3 ? "✓ Completed" : "✗ Not Completed"); - string readyStatus2 = (isReady2 ? "✓ Ready" : "✗ Not Ready"); - Log.Information("[AlliedSociety] - Optimal Quest ID: " + questId2); - Log.Information("[AlliedSociety] Completed: " + completedStatus2 + " | Ready to Accept: " + readyStatus2); - } - int addedCount = QuestionableIPC.AddAlliedSocietyOptimalQuests(societyId3); - Log.Information($"[AlliedSociety] Added {addedCount} optimal quests to priority queue"); - } - Log.Information("========================================"); - Log.Information("[AlliedSociety] All Allied Society tests completed!"); - Log.Information("========================================"); - } - - private void TestStopConditions() - { - Log.Information("========================================"); - Log.Information("[StopCondition] Testing Stop Condition IPC Methods"); - Log.Information("========================================"); - if (QuestionableIPC == null) - { - Log.Error("[StopCondition] QuestionableIPC is null!"); - Log.Information("========================================"); - return; - } - QuestionableIPC.ForceCheckAvailability(); - if (!QuestionableIPC.IsAvailable) - { - Log.Warning("[StopCondition] Questionable is not available!"); - Log.Information("========================================"); - return; - } - bool stopConditionsEnabled = QuestionableIPC.GetStopConditionsEnabled(); - Log.Information($"[StopCondition] Stop Conditions Enabled: {stopConditionsEnabled}"); - List stopQuests = QuestionableIPC.GetStopQuestList(); - Log.Information($"[StopCondition] Stop Quest Count: {stopQuests.Count}"); - foreach (string questId in stopQuests) - { - Log.Information("[StopCondition] - Quest ID: " + questId); - } - StopConditionData levelStopCondition = QuestionableIPC.GetLevelStopCondition(); - if (levelStopCondition != null) - { - Log.Information("[StopCondition] Level Stop Condition:"); - Log.Information($"[StopCondition] Enabled: {levelStopCondition.Enabled}"); - Log.Information($"[StopCondition] Target Level: {levelStopCondition.TargetValue}"); - } - else - { - Log.Information("[StopCondition] Level Stop Condition: Not configured"); - } - StopConditionData sequenceStopCondition = QuestionableIPC.GetSequenceStopCondition(); - if (sequenceStopCondition != null) - { - Log.Information("[StopCondition] Sequence Stop Condition:"); - Log.Information($"[StopCondition] Enabled: {sequenceStopCondition.Enabled}"); - Log.Information($"[StopCondition] Target Sequence: {sequenceStopCondition.TargetValue}"); - } - else - { - Log.Information("[StopCondition] Sequence Stop Condition: Not configured"); - } - Log.Information("[StopCondition] ========================================"); - Log.Information("[StopCondition] Testing Quest Sequence Stop Conditions"); - Log.Information("[StopCondition] ========================================"); - Log.Information("[StopCondition] Test 1: GetAllQuestSequenceStopConditions"); - Dictionary allQuestSequenceStopConditions = QuestionableIPC.GetAllQuestSequenceStopConditions(); - if (allQuestSequenceStopConditions.Count > 0) - { - Log.Information($"[StopCondition] ✓ Found {allQuestSequenceStopConditions.Count} condition(s)"); - foreach (KeyValuePair kvp in allQuestSequenceStopConditions) - { - Log.Information($"[StopCondition] - Quest: {kvp.Key} => {kvp.Value}"); - } - } - else - { - Log.Information("[StopCondition] ℹ No quest sequence stop conditions configured (this is normal if none are set)"); - } - if (stopQuests.Count > 0) - { - string testQuestId = stopQuests[0]; - Log.Information("[StopCondition] Test 2: GetQuestSequenceStopCondition for quest " + testQuestId); - object getResult = QuestionableIPC.GetQuestSequenceStopCondition(testQuestId, 1u, 1); - if (getResult != null) - { - Log.Information($"[StopCondition] ✓ Found condition: {getResult}"); - } - else - { - Log.Information("[StopCondition] ℹ No condition found for " + testQuestId + " (Seq: 1, Step: 1)"); - } - } - else - { - Log.Information("[StopCondition] Test 2: Skipped (no stop quests available)"); - } - if (allQuestSequenceStopConditions.Count > 0) - { - string firstQuestId = ""; - using (Dictionary.KeyCollection.Enumerator enumerator3 = allQuestSequenceStopConditions.Keys.GetEnumerator()) - { - if (enumerator3.MoveNext()) - { - firstQuestId = enumerator3.Current; - } - } - Log.Information("[StopCondition] Test 3: RemoveQuestSequenceStopCondition for quest " + firstQuestId); - QuestionableIPC.RemoveQuestSequenceStopCondition(firstQuestId); - } - else - { - Log.Information("[StopCondition] Test 3: Skipped (no conditions to remove)"); - } - Log.Information("========================================"); - Log.Information("[StopCondition] All Stop Condition tests completed!"); - Log.Information("========================================"); - } - - public void ToggleConfigUi() - { - ConfigWindow.Toggle(); - } - - public void ToggleMainUi() - { - NewMainWindow.Toggle(); - } - - public List<(string Name, ushort WorldId)> GetAvailableHelpers() - { - return HelperManager?.GetAvailableHelpers() ?? new List<(string, ushort)>(); - } - - public ChauffeurModeService? GetChauffeurMode() - { - return ChauffeurMode; - } - - public HelperManager? GetHelperManager() - { - return HelperManager; - } - - public LANHelperServer? GetLANHelperServer() - { - return LANHelperServer; - } - - public DungeonAutomationService? GetDungeonAutomation() - { - return DungeonAutomation; - } -} diff --git a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema b/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema deleted file mode 100644 index ae5deeb..0000000 --- a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema +++ /dev/null @@ -1,104 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/SeasonalDutyPaths/seasonaldutydefinition-v1.json", - "title": "Seasonal Duty Definition V1", - "description": "A seasonal duty farming definition", - "type": "object", - "properties": { - "$schema": { - "type": "string" - }, - "Name": { - "description": "Display name of the seasonal duty", - "type": "string" - }, - "TerritoryId": { - "description": "Territory ID where the NPC is located", - "type": "integer", - "minimum": 1 - }, - "Aetheryte": { - "description": "Nearest aetheryte for teleporting", - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-aetheryte.json" - }, - "AethernetShortcut": { - "description": "Aethernet shortcut to use after teleporting", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 2, - "maxItems": 2 - }, - "NpcDataId": { - "description": "Data ID of the NPC to interact with", - "type": "integer", - "minimum": 1 - }, - "NpcPosition": { - "description": "Position of the NPC", - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - }, - "DialogueChoices": { - "description": "Dialogue choices when interacting with the NPC to enter the duty", - "type": "array", - "items": { - "type": "object" - } - }, - "DutyTerritoryId": { - "description": "Territory ID of the duty instance", - "type": "integer", - "minimum": 1 - }, - "DataIds": { - "description": "Data IDs of objects to interact with inside the duty", - "type": "array", - "items": { - "type": "integer", - "minimum": 1 - }, - "minItems": 1 - }, - "WaypointPositions": { - "description": "Waypoint positions to navigate through inside the duty", - "type": "array", - "items": { - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - } - }, - "Action": { - "description": "Action to perform on each object", - "type": "string" - }, - "StopDistance": { - "description": "Distance at which to stop and perform the action", - "type": "number", - "minimum": 0 - }, - "RequiredQuestId": { - "description": "Quest ID that must be completed before this duty can be farmed", - "type": "integer", - "minimum": 1 - }, - "EventExpiry": { - "description": "Date and time (in UTC) when the seasonal event ends", - "format": "date-time", - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "$schema", - "Name", - "TerritoryId", - "NpcDataId", - "NpcPosition", - "DutyTerritoryId", - "DataIds", - "Action" - ], - "additionalProperties": false -} diff --git a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs b/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs deleted file mode 100644 index 8b4fd19..0000000 --- a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Numerics; -using System.Runtime.InteropServices; -using Questionable.Model.Common; -using Questionable.Model.Questing; - -namespace Questionable.SeasonalDutyPaths; - -public static class AssemblySeasonalDutyDefinitionLoader -{ - private static Dictionary? _definitions; - - public static Stream SeasonalDutyDefinitionSchema => typeof(AssemblySeasonalDutyDefinitionLoader).Assembly.GetManifestResourceStream("Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema"); - - public static IReadOnlyDictionary GetDefinitions() - { - if (_definitions == null) - { - _definitions = new Dictionary(); - LoadDefinitions(); - } - return _definitions ?? throw new InvalidOperationException("seasonal duty definition data is not initialized"); - } - - private static void AddDefinition(ushort id, SeasonalDutyDefinition definition) - { - _definitions[id] = definition; - } - - private static void LoadDefinitions() - { - LoadDefinition0(); - } - - private static void LoadDefinition0() - { - SeasonalDutyDefinition obj = new SeasonalDutyDefinition - { - Name = "Hatching-tide (2026)", - TerritoryId = 133, - Aetheryte = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - }, - NpcDataId = 1056067u, - NpcPosition = new Vector3(-54.551025f, 6.851239f, -110.948364f) - }; - int num = 1; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "custom/009/FesEst2026Entrance_00960", - Prompt = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_Q1_000_000"), - Answer = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_A1_000_001"), - PromptIsRegularExpression = true - }; - obj.DialogueChoices = list; - obj.DutyTerritoryId = 1336; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - span[0] = 2015072u; - span[1] = 2015073u; - span[2] = 2015074u; - span[3] = 2015075u; - span[4] = 2015076u; - span[5] = 2015077u; - span[6] = 2015078u; - span[7] = 2015079u; - obj.DataIds = list2; - num = 9; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new Vector3(-700.0023f, -0.15729797f, -721.67926f); - span2[1] = new Vector3(-700.1704f, -0.0301615f, 77.54147f); - span2[2] = new Vector3(-699.9926f, -0.021064043f, 877.55304f); - span2[3] = new Vector3(99.99213f, -0.100738764f, -721.9226f); - span2[4] = new Vector3(99.92716f, 4.7683716E-07f, 77.599335f); - span2[5] = new Vector3(100.40486f, 0.20596194f, 877.50397f); - span2[6] = new Vector3(899.93384f, 0.03615737f, -722.4109f); - span2[7] = new Vector3(900.052f, 0.23717809f, 77.897415f); - span2[8] = new Vector3(900.26733f, -0.30200624f, 877.5144f); - obj.WaypointPositions = list3; - obj.Action = EAction.PruningPirouette; - obj.RequiredQuestId = (ushort)5425; - obj.EventExpiry = new DateTime(2026, 4, 6, 14, 59, 0, DateTimeKind.Utc); - AddDefinition(1, obj); - } -} diff --git a/SeasonalDutyPaths/SeasonalDutyPaths.csproj b/SeasonalDutyPaths/SeasonalDutyPaths.csproj deleted file mode 100644 index b873ef9..0000000 --- a/SeasonalDutyPaths/SeasonalDutyPaths.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - SeasonalDutyPaths - False - netcoreapp1.0 - - - 12.0 - True - - - - - - - - - - - ..\..\Questionable.Model.dll - - - \ No newline at end of file